diff --git a/build_vtk_bundle/node_modules/.bin/acorn b/build_vtk_bundle/node_modules/.bin/acorn deleted file mode 120000 index cf767603..00000000 --- a/build_vtk_bundle/node_modules/.bin/acorn +++ /dev/null @@ -1 +0,0 @@ -../acorn/bin/acorn \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/autoprefixer b/build_vtk_bundle/node_modules/.bin/autoprefixer deleted file mode 120000 index e876d81c..00000000 --- a/build_vtk_bundle/node_modules/.bin/autoprefixer +++ /dev/null @@ -1 +0,0 @@ -../autoprefixer/bin/autoprefixer \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/baseline-browser-mapping b/build_vtk_bundle/node_modules/.bin/baseline-browser-mapping deleted file mode 120000 index d2961883..00000000 --- a/build_vtk_bundle/node_modules/.bin/baseline-browser-mapping +++ /dev/null @@ -1 +0,0 @@ -../baseline-browser-mapping/dist/cli.js \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/browserslist b/build_vtk_bundle/node_modules/.bin/browserslist deleted file mode 120000 index 3cd991b2..00000000 --- a/build_vtk_bundle/node_modules/.bin/browserslist +++ /dev/null @@ -1 +0,0 @@ -../browserslist/cli.js \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/envinfo b/build_vtk_bundle/node_modules/.bin/envinfo deleted file mode 120000 index 36d837a6..00000000 --- a/build_vtk_bundle/node_modules/.bin/envinfo +++ /dev/null @@ -1 +0,0 @@ -../envinfo/dist/cli.js \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/esparse b/build_vtk_bundle/node_modules/.bin/esparse deleted file mode 120000 index 7423b18b..00000000 --- a/build_vtk_bundle/node_modules/.bin/esparse +++ /dev/null @@ -1 +0,0 @@ -../esprima/bin/esparse.js \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/esvalidate b/build_vtk_bundle/node_modules/.bin/esvalidate deleted file mode 120000 index 16069eff..00000000 --- a/build_vtk_bundle/node_modules/.bin/esvalidate +++ /dev/null @@ -1 +0,0 @@ -../esprima/bin/esvalidate.js \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/flat b/build_vtk_bundle/node_modules/.bin/flat deleted file mode 120000 index 5fed16be..00000000 --- a/build_vtk_bundle/node_modules/.bin/flat +++ /dev/null @@ -1 +0,0 @@ -../flat/cli.js \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/import-local-fixture b/build_vtk_bundle/node_modules/.bin/import-local-fixture deleted file mode 120000 index ff4b1048..00000000 --- a/build_vtk_bundle/node_modules/.bin/import-local-fixture +++ /dev/null @@ -1 +0,0 @@ -../import-local/fixtures/cli.js \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/js-yaml b/build_vtk_bundle/node_modules/.bin/js-yaml deleted file mode 120000 index 9dbd010d..00000000 --- a/build_vtk_bundle/node_modules/.bin/js-yaml +++ /dev/null @@ -1 +0,0 @@ -../js-yaml/bin/js-yaml.js \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/jsesc b/build_vtk_bundle/node_modules/.bin/jsesc deleted file mode 120000 index 7237604c..00000000 --- a/build_vtk_bundle/node_modules/.bin/jsesc +++ /dev/null @@ -1 +0,0 @@ -../jsesc/bin/jsesc \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/json5 b/build_vtk_bundle/node_modules/.bin/json5 deleted file mode 120000 index 217f3798..00000000 --- a/build_vtk_bundle/node_modules/.bin/json5 +++ /dev/null @@ -1 +0,0 @@ -../json5/lib/cli.js \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/nanoid b/build_vtk_bundle/node_modules/.bin/nanoid deleted file mode 120000 index e2be547b..00000000 --- a/build_vtk_bundle/node_modules/.bin/nanoid +++ /dev/null @@ -1 +0,0 @@ -../nanoid/bin/nanoid.cjs \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/node-which b/build_vtk_bundle/node_modules/.bin/node-which deleted file mode 120000 index 6f8415ec..00000000 --- a/build_vtk_bundle/node_modules/.bin/node-which +++ /dev/null @@ -1 +0,0 @@ -../which/bin/node-which \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/parser b/build_vtk_bundle/node_modules/.bin/parser deleted file mode 120000 index ce7bf97e..00000000 --- a/build_vtk_bundle/node_modules/.bin/parser +++ /dev/null @@ -1 +0,0 @@ -../@babel/parser/bin/babel-parser.js \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/regjsparser b/build_vtk_bundle/node_modules/.bin/regjsparser deleted file mode 120000 index 91cec777..00000000 --- a/build_vtk_bundle/node_modules/.bin/regjsparser +++ /dev/null @@ -1 +0,0 @@ -../regjsparser/bin/parser \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/resolve b/build_vtk_bundle/node_modules/.bin/resolve deleted file mode 120000 index b6afda6c..00000000 --- a/build_vtk_bundle/node_modules/.bin/resolve +++ /dev/null @@ -1 +0,0 @@ -../resolve/bin/resolve \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/semver b/build_vtk_bundle/node_modules/.bin/semver deleted file mode 120000 index 5aaadf42..00000000 --- a/build_vtk_bundle/node_modules/.bin/semver +++ /dev/null @@ -1 +0,0 @@ -../semver/bin/semver.js \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/shjs b/build_vtk_bundle/node_modules/.bin/shjs deleted file mode 120000 index a0449975..00000000 --- a/build_vtk_bundle/node_modules/.bin/shjs +++ /dev/null @@ -1 +0,0 @@ -../shelljs/bin/shjs \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/terser b/build_vtk_bundle/node_modules/.bin/terser deleted file mode 120000 index 0792ff47..00000000 --- a/build_vtk_bundle/node_modules/.bin/terser +++ /dev/null @@ -1 +0,0 @@ -../terser/bin/terser \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/update-browserslist-db b/build_vtk_bundle/node_modules/.bin/update-browserslist-db deleted file mode 120000 index b11e16f3..00000000 --- a/build_vtk_bundle/node_modules/.bin/update-browserslist-db +++ /dev/null @@ -1 +0,0 @@ -../update-browserslist-db/cli.js \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/vtkDataConverter b/build_vtk_bundle/node_modules/.bin/vtkDataConverter deleted file mode 120000 index 9d5ae70d..00000000 --- a/build_vtk_bundle/node_modules/.bin/vtkDataConverter +++ /dev/null @@ -1 +0,0 @@ -../@kitware/vtk.js/Utilities/DataGenerator/convert-cli.js \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/webpack b/build_vtk_bundle/node_modules/.bin/webpack deleted file mode 120000 index d462c1d1..00000000 --- a/build_vtk_bundle/node_modules/.bin/webpack +++ /dev/null @@ -1 +0,0 @@ -../webpack/bin/webpack.js \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/webpack-cli b/build_vtk_bundle/node_modules/.bin/webpack-cli deleted file mode 120000 index 2511f70d..00000000 --- a/build_vtk_bundle/node_modules/.bin/webpack-cli +++ /dev/null @@ -1 +0,0 @@ -../webpack-cli/bin/cli.js \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.bin/xml2json b/build_vtk_bundle/node_modules/.bin/xml2json deleted file mode 120000 index eed4b04b..00000000 --- a/build_vtk_bundle/node_modules/.bin/xml2json +++ /dev/null @@ -1 +0,0 @@ -../@kitware/vtk.js/Utilities/XMLConverter/xml2json-cli.js \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/.package-lock.json b/build_vtk_bundle/node_modules/.package-lock.json deleted file mode 100644 index 050fc1b8..00000000 --- a/build_vtk_bundle/node_modules/.package-lock.json +++ /dev/null @@ -1,4100 +0,0 @@ -{ - "name": "vtk-bundle-builder", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "node_modules/@babel/code-frame": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", - "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.27.1", - "js-tokens": "^4.0.0", - "picocolors": "^1.1.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.5.tgz", - "integrity": "sha512-6uFXyCayocRbqhZOB+6XcuZbkMNimwfVGFji8CTZnCzOHVGvDqzvitu1re2AU5LROliz7eQPhB8CpAMvnx9EjA==", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.5.tgz", - "integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.28.5", - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-module-transforms": "^7.28.3", - "@babel/helpers": "^7.28.4", - "@babel/parser": "^7.28.5", - "@babel/template": "^7.27.2", - "@babel/traverse": "^7.28.5", - "@babel/types": "^7.28.5", - "@jridgewell/remapping": "^2.3.5", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/generator": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.5.tgz", - "integrity": "sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ==", - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.28.5", - "@babel/types": "^7.28.5", - "@jridgewell/gen-mapping": "^0.3.12", - "@jridgewell/trace-mapping": "^0.3.28", - "jsesc": "^3.0.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.27.3", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.27.3.tgz", - "integrity": "sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.27.3" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.27.2", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", - "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.27.2", - "@babel/helper-validator-option": "^7.27.1", - "browserslist": "^4.24.0", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.28.5.tgz", - "integrity": "sha512-q3WC4JfdODypvxArsJQROfupPBq9+lMwjKq7C33GhbFYJsufD0yd/ziwD+hJucLeWsnFPWZjsU2DNFqBPE7jwQ==", - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.27.3", - "@babel/helper-member-expression-to-functions": "^7.28.5", - "@babel/helper-optimise-call-expression": "^7.27.1", - "@babel/helper-replace-supers": "^7.27.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", - "@babel/traverse": "^7.28.5", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.28.5.tgz", - "integrity": "sha512-N1EhvLtHzOvj7QQOUCCS3NrPJP8c5W6ZXCHDn7Yialuy1iu4r5EmIYkXlKNqT99Ciw+W0mDqWoR6HWMZlFP3hw==", - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.27.3", - "regexpu-core": "^6.3.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.5.tgz", - "integrity": "sha512-uJnGFcPsWQK8fvjgGP5LZUZZsYGIoPeRjSF5PGwrelYgq7Q15/Ft9NGFp1zglwgIv//W0uG4BevRuSJRyylZPg==", - "license": "MIT", - "dependencies": { - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-plugin-utils": "^7.27.1", - "debug": "^4.4.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.22.10" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/@babel/helper-globals": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", - "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.28.5.tgz", - "integrity": "sha512-cwM7SBRZcPCLgl8a7cY0soT1SptSzAlMH39vwiRpOQkJlh53r5hdHwLSCZpQdVLT39sZt+CRpNwYG4Y2v77atg==", - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.28.5", - "@babel/types": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", - "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.27.1", - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.28.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz", - "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==", - "license": "MIT", - "dependencies": { - "@babel/helper-module-imports": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1", - "@babel/traverse": "^7.28.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.27.1.tgz", - "integrity": "sha512-URMGH08NzYFhubNSGJrpUEphGKQwMQYBySzat5cAByY1/YgIRkULnIy3tAMeszlL/so2HbeilYloUmSpd7GdVw==", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", - "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.27.1.tgz", - "integrity": "sha512-7fiA521aVw8lSPeI4ZOD3vRFkoqkJcS+z4hFo82bFSH/2tNd6eJ5qCVMS5OzDmZh/kaHQeBaeyxK6wljcPtveA==", - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.27.1", - "@babel/helper-wrap-function": "^7.27.1", - "@babel/traverse": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-replace-supers": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.27.1.tgz", - "integrity": "sha512-7EHz6qDZc8RYS5ElPoShMheWvEgERonFCs7IAonWLLUTXW59DP14bCZt89/GKyreYn8g3S83m21FelHKbeDCKA==", - "license": "MIT", - "dependencies": { - "@babel/helper-member-expression-to-functions": "^7.27.1", - "@babel/helper-optimise-call-expression": "^7.27.1", - "@babel/traverse": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.27.1.tgz", - "integrity": "sha512-Tub4ZKEXqbPjXgWLl2+3JpQAYBJ8+ikpQ2Ocj/q/r0LwE3UhENh7EUabyHjz2kCEsrRY83ew2DQdHluuiDQFzg==", - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.27.1", - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", - "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", - "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", - "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function": { - "version": "7.28.3", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.28.3.tgz", - "integrity": "sha512-zdf983tNfLZFletc0RRXYrHrucBEg95NIFMkn6K9dbeMYnsgHaSBGcQqdsCSStG2PYwRre0Qc2NNSCXbG+xc6g==", - "license": "MIT", - "dependencies": { - "@babel/template": "^7.27.2", - "@babel/traverse": "^7.28.3", - "@babel/types": "^7.28.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.4.tgz", - "integrity": "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==", - "license": "MIT", - "dependencies": { - "@babel/template": "^7.27.2", - "@babel/types": "^7.28.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.5.tgz", - "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==", - "license": "MIT", - "dependencies": { - "@babel/types": "^7.28.5" - }, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.28.5.tgz", - "integrity": "sha512-87GDMS3tsmMSi/3bWOte1UblL+YUTFMV8SZPZ2eSEL17s74Cw/l63rR6NmGVKMYW2GYi85nE+/d6Hw5N0bEk2Q==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/traverse": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.27.1.tgz", - "integrity": "sha512-qNeq3bCKnGgLkEXUuFry6dPlGfCdQNZbn7yUAPCInwAJHMU7THJfrBSozkcWq5sNM6RcF3S8XyQL2A52KNR9IA==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.27.1.tgz", - "integrity": "sha512-g4L7OYun04N1WyqMNjldFwlfPCLVkgB54A/YCXICZYBsvJJE3kByKv9c9+R/nAfmIfjl2rKYLNyMHboYbZaWaA==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.27.1.tgz", - "integrity": "sha512-oO02gcONcD5O1iTLi/6frMJBIwWEHceWGSGqrpCmEL8nogiS6J9PBlE48CaK20/Jx1LuRml9aDftLgdjXT8+Cw==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", - "@babel/plugin-transform-optional-chaining": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.13.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { - "version": "7.28.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.28.3.tgz", - "integrity": "sha512-b6YTX108evsvE4YgWyQ921ZAFFQm3Bn+CA3+ZXlNVnPhx+UfsVURoPjfGAPCjBgrqo30yX/C2nZGX96DxvR9Iw==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/traverse": "^7.28.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.0-placeholder-for-preset-env.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", - "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.27.1.tgz", - "integrity": "sha512-UT/Jrhw57xg4ILHLFnzFpPDlMbcdEicaAtjPQpbj9wa8T4r5KVWCimHcL/460g8Ht0DMxDyjsLgiWSkVjnwPFg==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz", - "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-unicode-sets-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", - "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.27.1.tgz", - "integrity": "sha512-8Z4TGic6xW70FKThA5HYEKKyBpOOsucTOD1DjU3fZxDg+K3zBJcXMFnt/4yQiZnf5+MiOMSXQ9PaEK/Ilh1DeA==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-generator-functions": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.28.0.tgz", - "integrity": "sha512-BEOdvX4+M765icNPZeidyADIvQ1m1gmunXufXxvRESy/jNNyfovIqUyE7MVgGBjWktCoJlzvFA1To2O4ymIO3Q==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-remap-async-to-generator": "^7.27.1", - "@babel/traverse": "^7.28.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.27.1.tgz", - "integrity": "sha512-NREkZsZVJS4xmTr8qzE5y8AfIPqsdQfRuUiLRTEzb7Qii8iFWCyDKaUV2c0rCuh4ljDZ98ALHP/PetiBV2nddA==", - "license": "MIT", - "dependencies": { - "@babel/helper-module-imports": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-remap-async-to-generator": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.27.1.tgz", - "integrity": "sha512-cnqkuOtZLapWYZUYM5rVIdv1nXYuFVIltZ6ZJ7nIj585QsjKM5dhL2Fu/lICXZ1OyIAFc7Qy+bvDAtTXqGrlhg==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.28.5.tgz", - "integrity": "sha512-45DmULpySVvmq9Pj3X9B+62Xe+DJGov27QravQJU1LLcapR6/10i+gYVAucGGJpHBp5mYxIMK4nDAT/QDLr47g==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-properties": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.27.1.tgz", - "integrity": "sha512-D0VcalChDMtuRvJIu3U/fwWjf8ZMykz5iZsg77Nuj821vCKI3zCyRLwRdWbsuJ/uRwZhZ002QtCqIkwC/ZkvbA==", - "license": "MIT", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-static-block": { - "version": "7.28.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.28.3.tgz", - "integrity": "sha512-LtPXlBbRoc4Njl/oh1CeD/3jC+atytbnf/UqLoqTDcEYGUPj022+rvfkbDYieUrSj3CaV4yHDByPE+T2HwfsJg==", - "license": "MIT", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.28.3", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.12.0" - } - }, - "node_modules/@babel/plugin-transform-classes": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.28.4.tgz", - "integrity": "sha512-cFOlhIYPBv/iBoc+KS3M6et2XPtbT2HiCRfBXWtfpc9OAyostldxIf9YAYB6ypURBBbx+Qv6nyrLzASfJe+hBA==", - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.27.3", - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-globals": "^7.28.0", - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-replace-supers": "^7.27.1", - "@babel/traverse": "^7.28.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.27.1.tgz", - "integrity": "sha512-lj9PGWvMTVksbWiDT2tW68zGS/cyo4AkZ/QTp0sQT0mjPopCmrSkzxeXkznjqBxzDI6TclZhOJbBmbBLjuOZUw==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/template": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.28.5.tgz", - "integrity": "sha512-Kl9Bc6D0zTUcFUvkNuQh4eGXPKKNDOJQXVyyM4ZAQPMveniJdxi8XMJwLo+xSoW3MIq81bD33lcUe9kZpl0MCw==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/traverse": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.27.1.tgz", - "integrity": "sha512-gEbkDVGRvjj7+T1ivxrfgygpT7GUd4vmODtYpbs0gZATdkX8/iSnOtZSxiZnsgm1YjTgjI6VKBGSJJevkrclzw==", - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.27.1.tgz", - "integrity": "sha512-MTyJk98sHvSs+cvZ4nOauwTTG1JeonDjSGvGGUNHreGQns+Mpt6WX/dVzWBHgg+dYZhkC4X+zTDfkTU+Vy9y7Q==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.27.1.tgz", - "integrity": "sha512-hkGcueTEzuhB30B3eJCbCYeCaaEQOmQR0AdvzpD4LoN0GXMWzzGSuRrxR2xTnCrvNbVwK9N6/jQ92GSLfiZWoQ==", - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-dynamic-import": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.27.1.tgz", - "integrity": "sha512-MHzkWQcEmjzzVW9j2q8LGjwGWpG2mjwaaB0BNQwst3FIjqsg8Ct/mIZlvSPJvfi9y2AC8mi/ktxbFVL9pZ1I4A==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-explicit-resource-management": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-explicit-resource-management/-/plugin-transform-explicit-resource-management-7.28.0.tgz", - "integrity": "sha512-K8nhUcn3f6iB+P3gwCv/no7OdzOZQcKchW6N389V6PD8NUWKZHzndOd9sPDVbMoBsbmjMqlB4L9fm+fEFNVlwQ==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/plugin-transform-destructuring": "^7.28.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.28.5.tgz", - "integrity": "sha512-D4WIMaFtwa2NizOp+dnoFjRez/ClKiC2BqqImwKd1X28nqBtZEyCYJ2ozQrrzlxAFrcrjxo39S6khe9RNDlGzw==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-export-namespace-from": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.27.1.tgz", - "integrity": "sha512-tQvHWSZ3/jH2xuq/vZDy0jNn+ZdXJeM8gHvX4lnJmsc3+50yPlWdZXIc5ay+umX+2/tJIqHqiEqcJvxlmIvRvQ==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-for-of": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.27.1.tgz", - "integrity": "sha512-BfbWFFEJFQzLCQ5N8VocnCtA8J1CLkNTe2Ms2wocj75dd6VpiqS5Z5quTYcUoo4Yq+DN0rtikODccuv7RU81sw==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-function-name": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.27.1.tgz", - "integrity": "sha512-1bQeydJF9Nr1eBCMMbC+hdwmRlsv5XYOMu03YSWFwNs0HsAmtSxxF1fyuYPqemVldVyFmlCU7w8UE14LupUSZQ==", - "license": "MIT", - "dependencies": { - "@babel/helper-compilation-targets": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/traverse": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-json-strings": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.27.1.tgz", - "integrity": "sha512-6WVLVJiTjqcQauBhn1LkICsR2H+zm62I3h9faTDKt1qP4jn2o72tSvqMwtGFKGTpojce0gJs+76eZ2uCHRZh0Q==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-literals": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.27.1.tgz", - "integrity": "sha512-0HCFSepIpLTkLcsi86GG3mTUzxV5jpmbv97hTETW3yzrAij8aqlD36toB1D0daVFJM8NK6GvKO0gslVQmm+zZA==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-logical-assignment-operators": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.28.5.tgz", - "integrity": "sha512-axUuqnUTBuXyHGcJEVVh9pORaN6wC5bYfE7FGzPiaWa3syib9m7g+/IT/4VgCOe2Upef43PHzeAvcrVek6QuuA==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.27.1.tgz", - "integrity": "sha512-hqoBX4dcZ1I33jCSWcXrP+1Ku7kdqXf1oeah7ooKOIiAdKQ+uqftgCFNOSzA5AMS2XIHEYeGFg4cKRCdpxzVOQ==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.27.1.tgz", - "integrity": "sha512-iCsytMg/N9/oFq6n+gFTvUYDZQOMK5kEdeYxmxt91fcJGycfxVP9CnrxoliM0oumFERba2i8ZtwRUCMhvP1LnA==", - "license": "MIT", - "dependencies": { - "@babel/helper-module-transforms": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.27.1.tgz", - "integrity": "sha512-OJguuwlTYlN0gBZFRPqwOGNWssZjfIUdS7HMYtN8c1KmwpwHFBwTeFZrg9XZa+DFTitWOW5iTAG7tyCUPsCCyw==", - "license": "MIT", - "dependencies": { - "@babel/helper-module-transforms": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.28.5.tgz", - "integrity": "sha512-vn5Jma98LCOeBy/KpeQhXcV2WZgaRUtjwQmjoBuLNlOmkg0fB5pdvYVeWRYI69wWKwK2cD1QbMiUQnoujWvrew==", - "license": "MIT", - "dependencies": { - "@babel/helper-module-transforms": "^7.28.3", - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-validator-identifier": "^7.28.5", - "@babel/traverse": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.27.1.tgz", - "integrity": "sha512-iQBE/xC5BV1OxJbp6WG7jq9IWiD+xxlZhLrdwpPkTX3ydmXdvoCpyfJN7acaIBZaOqTfr76pgzqBJflNbeRK+w==", - "license": "MIT", - "dependencies": { - "@babel/helper-module-transforms": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.27.1.tgz", - "integrity": "sha512-SstR5JYy8ddZvD6MhV0tM/j16Qds4mIpJTOd1Yu9J9pJjH93bxHECF7pgtc28XvkzTD6Pxcm/0Z73Hvk7kb3Ng==", - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-new-target": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.27.1.tgz", - "integrity": "sha512-f6PiYeqXQ05lYq3TIfIDu/MtliKUbNwkGApPUvyo6+tc7uaR4cPjPe7DFPr15Uyycg2lZU6btZ575CuQoYh7MQ==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.27.1.tgz", - "integrity": "sha512-aGZh6xMo6q9vq1JGcw58lZ1Z0+i0xB2x0XaauNIUXd6O1xXc3RwoWEBlsTQrY4KQ9Jf0s5rgD6SiNkaUdJegTA==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-numeric-separator": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.27.1.tgz", - "integrity": "sha512-fdPKAcujuvEChxDBJ5c+0BTaS6revLV7CJL08e4m3de8qJfNIuCc2nc7XJYOjBoTMJeqSmwXJ0ypE14RCjLwaw==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-rest-spread": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.28.4.tgz", - "integrity": "sha512-373KA2HQzKhQCYiRVIRr+3MjpCObqzDlyrM6u4I201wL8Mp2wHf7uB8GhDwis03k2ti8Zr65Zyyqs1xOxUF/Ew==", - "license": "MIT", - "dependencies": { - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/plugin-transform-destructuring": "^7.28.0", - "@babel/plugin-transform-parameters": "^7.27.7", - "@babel/traverse": "^7.28.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-super": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.27.1.tgz", - "integrity": "sha512-SFy8S9plRPbIcxlJ8A6mT/CxFdJx/c04JEctz4jf8YZaVS2px34j7NXRrlGlHkN/M2gnpL37ZpGRGVFLd3l8Ng==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-replace-supers": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-catch-binding": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.27.1.tgz", - "integrity": "sha512-txEAEKzYrHEX4xSZN4kJ+OfKXFVSWKB2ZxM9dpcE3wT7smwkNmXo5ORRlVzMVdJbD+Q8ILTgSD7959uj+3Dm3Q==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-chaining": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.28.5.tgz", - "integrity": "sha512-N6fut9IZlPnjPwgiQkXNhb+cT8wQKFlJNqcZkWlcTqkcqx6/kU4ynGmLFoa4LViBSirn05YAwk+sQBbPfxtYzQ==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-parameters": { - "version": "7.27.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.27.7.tgz", - "integrity": "sha512-qBkYTYCb76RRxUM6CcZA5KRu8K4SM8ajzVeUgVdMVO9NN9uI/GaVmBg/WKJJGnNokV9SY8FxNOVWGXzqzUidBg==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-methods": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.27.1.tgz", - "integrity": "sha512-10FVt+X55AjRAYI9BrdISN9/AQWHqldOeZDUoLyif1Kn05a56xVBXb8ZouL8pZ9jem8QpXaOt8TS7RHUIS+GPA==", - "license": "MIT", - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-property-in-object": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.27.1.tgz", - "integrity": "sha512-5J+IhqTi1XPa0DXF83jYOaARrX+41gOewWbkPyjMNRDqgOCqdffGh8L3f/Ek5utaEBZExjSAzcyjmV9SSAWObQ==", - "license": "MIT", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.27.1", - "@babel/helper-create-class-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.27.1.tgz", - "integrity": "sha512-oThy3BCuCha8kDZ8ZkgOg2exvPYUlprMukKQXI1r1pJ47NCvxfkEy8vK+r/hT9nF0Aa4H1WUPZZjHTFtAhGfmQ==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.28.4.tgz", - "integrity": "sha512-+ZEdQlBoRg9m2NnzvEeLgtvBMO4tkFBw5SQIUgLICgTrumLoU7lr+Oghi6km2PFj+dbUt2u1oby2w3BDO9YQnA==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-regexp-modifiers": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regexp-modifiers/-/plugin-transform-regexp-modifiers-7.27.1.tgz", - "integrity": "sha512-TtEciroaiODtXvLZv4rmfMhkCv8jx3wgKpL68PuiPh2M4fvz5jhsA7697N1gMvkvr/JTF13DrFYyEbY9U7cVPA==", - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.27.1.tgz", - "integrity": "sha512-V2ABPHIJX4kC7HegLkYoDpfg9PVmuWy/i6vUM5eGK22bx4YVFD3M5F0QQnWQoDs6AGsUWTVOopBiMFQgHaSkVw==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.27.1.tgz", - "integrity": "sha512-N/wH1vcn4oYawbJ13Y/FxcQrWk63jhfNa7jef0ih7PHSIHX2LB7GWE1rkPrOnka9kwMxb6hMl19p7lidA+EHmQ==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-spread": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.27.1.tgz", - "integrity": "sha512-kpb3HUqaILBJcRFVhFUs6Trdd4mkrzcGXss+6/mxUd273PfbWqSDHRzMT2234gIg2QYfAjvXLSquP1xECSg09Q==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.27.1.tgz", - "integrity": "sha512-lhInBO5bi/Kowe2/aLdBAawijx+q1pQzicSgnkB6dUPc1+RC8QmJHKf2OjvU+NZWitguJHEaEmbV6VWEouT58g==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.27.1.tgz", - "integrity": "sha512-fBJKiV7F2DxZUkg5EtHKXQdbsbURW3DZKQUWphDum0uRP6eHGGa/He9mc0mypL680pb+e/lDIthRohlv8NCHkg==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.27.1.tgz", - "integrity": "sha512-RiSILC+nRJM7FY5srIyc4/fGIwUhyDuuBSdWn4y6yT6gm652DpCHZjIipgn6B7MQ1ITOUnAKWixEUjQRIBIcLw==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.27.1.tgz", - "integrity": "sha512-Ysg4v6AmF26k9vpfFuTZg8HRfVWzsh1kVfowA23y9j/Gu6dOuahdUVhkLqpObp3JIv27MLSii6noRnuKN8H0Mg==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-property-regex": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.27.1.tgz", - "integrity": "sha512-uW20S39PnaTImxp39O5qFlHLS9LJEmANjMG7SxIhap8rCHqu0Ik+tLEPX5DKmHn6CsWQ7j3lix2tFOa5YtL12Q==", - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.27.1.tgz", - "integrity": "sha512-xvINq24TRojDuyt6JGtHmkVkrfVV3FPT16uytxImLeBZqW3/H52yN+kM1MGuyPkIQxrzKwPHs5U/MP3qKyzkGw==", - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-sets-regex": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.27.1.tgz", - "integrity": "sha512-EtkOujbc4cgvb0mlpQefi4NTPBzhSIevblFevACNLUspmrALgmEBdL/XfnyyITfd8fKBZrZys92zOWcik7j9Tw==", - "license": "MIT", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/preset-env": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.28.5.tgz", - "integrity": "sha512-S36mOoi1Sb6Fz98fBfE+UZSpYw5mJm0NUHtIKrOuNcqeFauy1J6dIvXm2KRVKobOSaGq4t/hBXdN4HGU3wL9Wg==", - "license": "MIT", - "peer": true, - "dependencies": { - "@babel/compat-data": "^7.28.5", - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-validator-option": "^7.27.1", - "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.28.5", - "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.27.1", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.27.1", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.27.1", - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.28.3", - "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", - "@babel/plugin-syntax-import-assertions": "^7.27.1", - "@babel/plugin-syntax-import-attributes": "^7.27.1", - "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.27.1", - "@babel/plugin-transform-async-generator-functions": "^7.28.0", - "@babel/plugin-transform-async-to-generator": "^7.27.1", - "@babel/plugin-transform-block-scoped-functions": "^7.27.1", - "@babel/plugin-transform-block-scoping": "^7.28.5", - "@babel/plugin-transform-class-properties": "^7.27.1", - "@babel/plugin-transform-class-static-block": "^7.28.3", - "@babel/plugin-transform-classes": "^7.28.4", - "@babel/plugin-transform-computed-properties": "^7.27.1", - "@babel/plugin-transform-destructuring": "^7.28.5", - "@babel/plugin-transform-dotall-regex": "^7.27.1", - "@babel/plugin-transform-duplicate-keys": "^7.27.1", - "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.27.1", - "@babel/plugin-transform-dynamic-import": "^7.27.1", - "@babel/plugin-transform-explicit-resource-management": "^7.28.0", - "@babel/plugin-transform-exponentiation-operator": "^7.28.5", - "@babel/plugin-transform-export-namespace-from": "^7.27.1", - "@babel/plugin-transform-for-of": "^7.27.1", - "@babel/plugin-transform-function-name": "^7.27.1", - "@babel/plugin-transform-json-strings": "^7.27.1", - "@babel/plugin-transform-literals": "^7.27.1", - "@babel/plugin-transform-logical-assignment-operators": "^7.28.5", - "@babel/plugin-transform-member-expression-literals": "^7.27.1", - "@babel/plugin-transform-modules-amd": "^7.27.1", - "@babel/plugin-transform-modules-commonjs": "^7.27.1", - "@babel/plugin-transform-modules-systemjs": "^7.28.5", - "@babel/plugin-transform-modules-umd": "^7.27.1", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.27.1", - "@babel/plugin-transform-new-target": "^7.27.1", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.27.1", - "@babel/plugin-transform-numeric-separator": "^7.27.1", - "@babel/plugin-transform-object-rest-spread": "^7.28.4", - "@babel/plugin-transform-object-super": "^7.27.1", - "@babel/plugin-transform-optional-catch-binding": "^7.27.1", - "@babel/plugin-transform-optional-chaining": "^7.28.5", - "@babel/plugin-transform-parameters": "^7.27.7", - "@babel/plugin-transform-private-methods": "^7.27.1", - "@babel/plugin-transform-private-property-in-object": "^7.27.1", - "@babel/plugin-transform-property-literals": "^7.27.1", - "@babel/plugin-transform-regenerator": "^7.28.4", - "@babel/plugin-transform-regexp-modifiers": "^7.27.1", - "@babel/plugin-transform-reserved-words": "^7.27.1", - "@babel/plugin-transform-shorthand-properties": "^7.27.1", - "@babel/plugin-transform-spread": "^7.27.1", - "@babel/plugin-transform-sticky-regex": "^7.27.1", - "@babel/plugin-transform-template-literals": "^7.27.1", - "@babel/plugin-transform-typeof-symbol": "^7.27.1", - "@babel/plugin-transform-unicode-escapes": "^7.27.1", - "@babel/plugin-transform-unicode-property-regex": "^7.27.1", - "@babel/plugin-transform-unicode-regex": "^7.27.1", - "@babel/plugin-transform-unicode-sets-regex": "^7.27.1", - "@babel/preset-modules": "0.1.6-no-external-plugins", - "babel-plugin-polyfill-corejs2": "^0.4.14", - "babel-plugin-polyfill-corejs3": "^0.13.0", - "babel-plugin-polyfill-regenerator": "^0.6.5", - "core-js-compat": "^3.43.0", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-modules": { - "version": "0.1.6-no-external-plugins", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", - "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==", - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/@babel/runtime": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.4.tgz", - "integrity": "sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template": { - "version": "7.27.2", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", - "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/parser": "^7.27.2", - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.5.tgz", - "integrity": "sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ==", - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.28.5", - "@babel/helper-globals": "^7.28.0", - "@babel/parser": "^7.28.5", - "@babel/template": "^7.27.2", - "@babel/types": "^7.28.5", - "debug": "^4.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.5.tgz", - "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==", - "license": "MIT", - "dependencies": { - "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@discoveryjs/json-ext": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", - "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.13", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", - "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/remapping": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", - "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", - "license": "MIT", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/source-map": { - "version": "0.3.11", - "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.11.tgz", - "integrity": "sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==", - "license": "MIT", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", - "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.31", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", - "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@kitware/vtk.js": { - "version": "34.15.1", - "resolved": "https://registry.npmjs.org/@kitware/vtk.js/-/vtk.js-34.15.1.tgz", - "integrity": "sha512-9BH/a++drhclknBKNVzVpcOzDK95nc/OflKpQE8nY+IlaXTB1+Z6WXS6IwkEEUkRRUqSVskcW4ksgWdxihB49w==", - "license": "BSD-3-Clause", - "dependencies": { - "@babel/runtime": "^7.28.2", - "@types/webxr": "^0.5.5", - "commander": "9.2.0", - "d3-scale": "4.0.2", - "fast-deep-equal": "^3.1.3", - "fflate": "0.7.3", - "gl-matrix": "3.4.3", - "globalthis": "1.0.3", - "seedrandom": "3.0.5", - "shader-loader": "1.3.1", - "shelljs": "0.8.5", - "spark-md5": "3.0.2", - "stream-browserify": "3.0.0", - "utif": "3.1.0", - "webworker-promise": "0.5.0", - "worker-loader": "3.0.8", - "xmlbuilder2": "3.0.2" - }, - "bin": { - "vtkDataConverter": "Utilities/DataGenerator/convert-cli.js", - "xml2json": "Utilities/XMLConverter/xml2json-cli.js" - }, - "peerDependencies": { - "@babel/preset-env": "^7.17.10", - "autoprefixer": "^10.4.7", - "wslink": ">=1.1.0 || ^2.0.0" - } - }, - "node_modules/@msgpack/msgpack": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/@msgpack/msgpack/-/msgpack-2.8.0.tgz", - "integrity": "sha512-h9u4u/jiIRKbq25PM+zymTyW6bhTzELvOoUd+AvYriWOAKpLGnIamaET3pnHYoI5iYphAHBI4ayx0MehR+VVPQ==", - "license": "ISC", - "engines": { - "node": ">= 10" - } - }, - "node_modules/@oozcitak/dom": { - "version": "1.15.10", - "resolved": "https://registry.npmjs.org/@oozcitak/dom/-/dom-1.15.10.tgz", - "integrity": "sha512-0JT29/LaxVgRcGKvHmSrUTEvZ8BXvZhGl2LASRUgHqDTC1M5g1pLmVv56IYNyt3bG2CUjDkc67wnyZC14pbQrQ==", - "license": "MIT", - "dependencies": { - "@oozcitak/infra": "1.0.8", - "@oozcitak/url": "1.0.4", - "@oozcitak/util": "8.3.8" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/@oozcitak/infra": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@oozcitak/infra/-/infra-1.0.8.tgz", - "integrity": "sha512-JRAUc9VR6IGHOL7OGF+yrvs0LO8SlqGnPAMqyzOuFZPSZSXI7Xf2O9+awQPSMXgIWGtgUf/dA6Hs6X6ySEaWTg==", - "license": "MIT", - "dependencies": { - "@oozcitak/util": "8.3.8" - }, - "engines": { - "node": ">=6.0" - } - }, - "node_modules/@oozcitak/url": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@oozcitak/url/-/url-1.0.4.tgz", - "integrity": "sha512-kDcD8y+y3FCSOvnBI6HJgl00viO/nGbQoCINmQ0h98OhnGITrWR3bOGfwYCthgcrV8AnTJz8MzslTQbC3SOAmw==", - "license": "MIT", - "dependencies": { - "@oozcitak/infra": "1.0.8", - "@oozcitak/util": "8.3.8" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/@oozcitak/util": { - "version": "8.3.8", - "resolved": "https://registry.npmjs.org/@oozcitak/util/-/util-8.3.8.tgz", - "integrity": "sha512-T8TbSnGsxo6TDBJx/Sgv/BlVJL3tshxZP7Aq5R1mSnM5OcHY2dQaxLMu2+E8u3gN0MLOzdjurqN4ZRVuzQycOQ==", - "license": "MIT", - "engines": { - "node": ">=8.0" - } - }, - "node_modules/@types/eslint": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.1.tgz", - "integrity": "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==", - "license": "MIT", - "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" - } - }, - "node_modules/@types/eslint-scope": { - "version": "3.7.7", - "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", - "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", - "license": "MIT", - "dependencies": { - "@types/eslint": "*", - "@types/estree": "*" - } - }, - "node_modules/@types/estree": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", - "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", - "license": "MIT" - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "24.10.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz", - "integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==", - "license": "MIT", - "dependencies": { - "undici-types": "~7.16.0" - } - }, - "node_modules/@types/webxr": { - "version": "0.5.24", - "resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.5.24.tgz", - "integrity": "sha512-h8fgEd/DpoS9CBrjEQXR+dIDraopAEfu4wYVNY2tEPwk60stPWhvZMf4Foo5FakuQ7HFZoa8WceaWFervK2Ovg==", - "license": "MIT" - }, - "node_modules/@webassemblyjs/ast": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.14.1.tgz", - "integrity": "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==", - "license": "MIT", - "dependencies": { - "@webassemblyjs/helper-numbers": "1.13.2", - "@webassemblyjs/helper-wasm-bytecode": "1.13.2" - } - }, - "node_modules/@webassemblyjs/floating-point-hex-parser": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.13.2.tgz", - "integrity": "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==", - "license": "MIT" - }, - "node_modules/@webassemblyjs/helper-api-error": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.13.2.tgz", - "integrity": "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==", - "license": "MIT" - }, - "node_modules/@webassemblyjs/helper-buffer": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.14.1.tgz", - "integrity": "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==", - "license": "MIT" - }, - "node_modules/@webassemblyjs/helper-numbers": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.13.2.tgz", - "integrity": "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==", - "license": "MIT", - "dependencies": { - "@webassemblyjs/floating-point-hex-parser": "1.13.2", - "@webassemblyjs/helper-api-error": "1.13.2", - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webassemblyjs/helper-wasm-bytecode": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.13.2.tgz", - "integrity": "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==", - "license": "MIT" - }, - "node_modules/@webassemblyjs/helper-wasm-section": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.14.1.tgz", - "integrity": "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==", - "license": "MIT", - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@webassemblyjs/helper-buffer": "1.14.1", - "@webassemblyjs/helper-wasm-bytecode": "1.13.2", - "@webassemblyjs/wasm-gen": "1.14.1" - } - }, - "node_modules/@webassemblyjs/ieee754": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.13.2.tgz", - "integrity": "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==", - "license": "MIT", - "dependencies": { - "@xtuc/ieee754": "^1.2.0" - } - }, - "node_modules/@webassemblyjs/leb128": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.13.2.tgz", - "integrity": "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw==", - "license": "Apache-2.0", - "dependencies": { - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webassemblyjs/utf8": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.13.2.tgz", - "integrity": "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ==", - "license": "MIT" - }, - "node_modules/@webassemblyjs/wasm-edit": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.14.1.tgz", - "integrity": "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==", - "license": "MIT", - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@webassemblyjs/helper-buffer": "1.14.1", - "@webassemblyjs/helper-wasm-bytecode": "1.13.2", - "@webassemblyjs/helper-wasm-section": "1.14.1", - "@webassemblyjs/wasm-gen": "1.14.1", - "@webassemblyjs/wasm-opt": "1.14.1", - "@webassemblyjs/wasm-parser": "1.14.1", - "@webassemblyjs/wast-printer": "1.14.1" - } - }, - "node_modules/@webassemblyjs/wasm-gen": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.14.1.tgz", - "integrity": "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==", - "license": "MIT", - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@webassemblyjs/helper-wasm-bytecode": "1.13.2", - "@webassemblyjs/ieee754": "1.13.2", - "@webassemblyjs/leb128": "1.13.2", - "@webassemblyjs/utf8": "1.13.2" - } - }, - "node_modules/@webassemblyjs/wasm-opt": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.14.1.tgz", - "integrity": "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==", - "license": "MIT", - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@webassemblyjs/helper-buffer": "1.14.1", - "@webassemblyjs/wasm-gen": "1.14.1", - "@webassemblyjs/wasm-parser": "1.14.1" - } - }, - "node_modules/@webassemblyjs/wasm-parser": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.14.1.tgz", - "integrity": "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==", - "license": "MIT", - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@webassemblyjs/helper-api-error": "1.13.2", - "@webassemblyjs/helper-wasm-bytecode": "1.13.2", - "@webassemblyjs/ieee754": "1.13.2", - "@webassemblyjs/leb128": "1.13.2", - "@webassemblyjs/utf8": "1.13.2" - } - }, - "node_modules/@webassemblyjs/wast-printer": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.14.1.tgz", - "integrity": "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==", - "license": "MIT", - "dependencies": { - "@webassemblyjs/ast": "1.14.1", - "@xtuc/long": "4.2.2" - } - }, - "node_modules/@webpack-cli/configtest": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-2.1.1.tgz", - "integrity": "sha512-wy0mglZpDSiSS0XHrVR+BAdId2+yxPSoJW8fsna3ZpYSlufjvxnP4YbKTCBZnNIcGN4r6ZPXV55X4mYExOfLmw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.15.0" - }, - "peerDependencies": { - "webpack": "5.x.x", - "webpack-cli": "5.x.x" - } - }, - "node_modules/@webpack-cli/info": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-2.0.2.tgz", - "integrity": "sha512-zLHQdI/Qs1UyT5UBdWNqsARasIA+AaF8t+4u2aS2nEpBQh2mWIVb8qAklq0eUENnC5mOItrIB4LiS9xMtph18A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.15.0" - }, - "peerDependencies": { - "webpack": "5.x.x", - "webpack-cli": "5.x.x" - } - }, - "node_modules/@webpack-cli/serve": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-2.0.5.tgz", - "integrity": "sha512-lqaoKnRYBdo1UgDX8uF24AfGMifWK19TxPmM5FHc2vAGxrJ/qtyUyFBWoY1tISZdelsQ5fBcOusifo5o5wSJxQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.15.0" - }, - "peerDependencies": { - "webpack": "5.x.x", - "webpack-cli": "5.x.x" - }, - "peerDependenciesMeta": { - "webpack-dev-server": { - "optional": true - } - } - }, - "node_modules/@xtuc/ieee754": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", - "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", - "license": "BSD-3-Clause" - }, - "node_modules/@xtuc/long": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", - "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", - "license": "Apache-2.0" - }, - "node_modules/acorn": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", - "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", - "license": "MIT", - "peer": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-import-phases": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/acorn-import-phases/-/acorn-import-phases-1.0.4.tgz", - "integrity": "sha512-wKmbr/DDiIXzEOiWrTTUcDm24kQ2vGfZQvM2fwg2vXqR5uW6aapr7ObPtj1th32b9u90/Pf4AItvdTh42fBmVQ==", - "license": "MIT", - "engines": { - "node": ">=10.13.0" - }, - "peerDependencies": { - "acorn": "^8.14.0" - } - }, - "node_modules/ajv": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", - "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", - "license": "MIT", - "peer": true, - "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-formats": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", - "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", - "license": "MIT", - "dependencies": { - "ajv": "^8.0.0" - }, - "peerDependencies": { - "ajv": "^8.0.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } - }, - "node_modules/ajv-keywords": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", - "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.3" - }, - "peerDependencies": { - "ajv": "^8.8.2" - } - }, - "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "license": "MIT", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/autoprefixer": { - "version": "10.4.22", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.22.tgz", - "integrity": "sha512-ARe0v/t9gO28Bznv6GgqARmVqcWOV3mfgUPn9becPHMiD3o9BwlRgaeccZnwTpZ7Zwqrm+c1sUSsMxIzQzc8Xg==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/autoprefixer" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "peer": true, - "dependencies": { - "browserslist": "^4.27.0", - "caniuse-lite": "^1.0.30001754", - "fraction.js": "^5.3.4", - "normalize-range": "^0.1.2", - "picocolors": "^1.1.1", - "postcss-value-parser": "^4.2.0" - }, - "bin": { - "autoprefixer": "bin/autoprefixer" - }, - "engines": { - "node": "^10 || ^12 || >=14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/babel-loader": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-10.0.0.tgz", - "integrity": "sha512-z8jt+EdS61AMw22nSfoNJAZ0vrtmhPRVi6ghL3rCeRZI8cdNYFiV5xeV3HbE7rlZZNmGH8BVccwWt8/ED0QOHA==", - "dev": true, - "license": "MIT", - "dependencies": { - "find-up": "^5.0.0" - }, - "engines": { - "node": "^18.20.0 || ^20.10.0 || >=22.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.12.0", - "webpack": ">=5.61.0" - } - }, - "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.4.14", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.14.tgz", - "integrity": "sha512-Co2Y9wX854ts6U8gAAPXfn0GmAyctHuK8n0Yhfjd6t30g7yvKjspvvOo9yG+z52PZRgFErt7Ka2pYnXCjLKEpg==", - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.27.7", - "@babel/helper-define-polyfill-provider": "^0.6.5", - "semver": "^6.3.1" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.13.0.tgz", - "integrity": "sha512-U+GNwMdSFgzVmfhNm8GJUX88AadB3uo9KpJqS3FaqNIPKgySuvMb+bHPsOmmuWyIcuqZj/pzt1RUIUZns4y2+A==", - "license": "MIT", - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.5", - "core-js-compat": "^3.43.0" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.5.tgz", - "integrity": "sha512-ISqQ2frbiNU9vIJkzg7dlPpznPZ4jOiUQ1uSmB0fEHeowtN3COYRsXr/xexn64NpU13P06jc/L5TgiJXOgrbEg==", - "license": "MIT", - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.5" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "license": "MIT" - }, - "node_modules/baseline-browser-mapping": { - "version": "2.8.29", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.29.tgz", - "integrity": "sha512-sXdt2elaVnhpDNRDz+1BDx1JQoJRuNk7oVlAlbGiFkLikHCAQiccexF/9e91zVi6RCgqspl04aP+6Cnl9zRLrA==", - "license": "Apache-2.0", - "bin": { - "baseline-browser-mapping": "dist/cli.js" - } - }, - "node_modules/big.js": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", - "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/browserslist": { - "version": "4.28.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.0.tgz", - "integrity": "sha512-tbydkR/CxfMwelN0vwdP/pLkDwyAASZ+VfWm4EOwlB6SWhx1sYnWLqo8N5j0rAzPfzfRaxt0mM/4wPU/Su84RQ==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "peer": true, - "dependencies": { - "baseline-browser-mapping": "^2.8.25", - "caniuse-lite": "^1.0.30001754", - "electron-to-chromium": "^1.5.249", - "node-releases": "^2.0.27", - "update-browserslist-db": "^1.1.4" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "license": "MIT" - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001756", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001756.tgz", - "integrity": "sha512-4HnCNKbMLkLdhJz3TToeVWHSnfJvPaq6vu/eRP0Ahub/07n484XHhBF5AJoSGHdVrS8tKFauUQz8Bp9P7LVx7A==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "CC-BY-4.0" - }, - "node_modules/chrome-trace-event": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.4.tgz", - "integrity": "sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ==", - "license": "MIT", - "engines": { - "node": ">=6.0" - } - }, - "node_modules/clone-deep": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", - "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-plain-object": "^2.0.4", - "kind-of": "^6.0.2", - "shallow-clone": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/colorette": { - "version": "2.0.20", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz", - "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==", - "dev": true, - "license": "MIT" - }, - "node_modules/commander": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-9.2.0.tgz", - "integrity": "sha512-e2i4wANQiSXgnrBlIatyHtP1odfUp0BbV5Y5nEGbxtIrStkEOAAzCUirvLBNXHLr7kwLvJl6V+4V3XV9x7Wd9w==", - "license": "MIT", - "engines": { - "node": "^12.20.0 || >=14" - } - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "license": "MIT" - }, - "node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "license": "MIT" - }, - "node_modules/core-js-compat": { - "version": "3.47.0", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.47.0.tgz", - "integrity": "sha512-IGfuznZ/n7Kp9+nypamBhvwdwLsW6KC8IOaURw2doAK5e98AG3acVLdh0woOnEqCfUtS+Vu882JE4k/DAm3ItQ==", - "license": "MIT", - "dependencies": { - "browserslist": "^4.28.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/d3-array": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz", - "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==", - "license": "ISC", - "dependencies": { - "internmap": "1 - 2" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-color": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz", - "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-format": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.0.tgz", - "integrity": "sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA==", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-interpolate": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", - "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", - "license": "ISC", - "dependencies": { - "d3-color": "1 - 3" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-scale": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", - "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==", - "license": "ISC", - "dependencies": { - "d3-array": "2.10.0 - 3", - "d3-format": "1 - 3", - "d3-interpolate": "1.2.0 - 3", - "d3-time": "2.1.1 - 3", - "d3-time-format": "2 - 4" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-time": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz", - "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==", - "license": "ISC", - "dependencies": { - "d3-array": "2 - 3" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-time-format": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz", - "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==", - "license": "ISC", - "dependencies": { - "d3-time": "1 - 3" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/debug": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/define-properties": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", - "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", - "license": "MIT", - "dependencies": { - "define-data-property": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/electron-to-chromium": { - "version": "1.5.258", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.258.tgz", - "integrity": "sha512-rHUggNV5jKQ0sSdWwlaRDkFc3/rRJIVnOSe9yR4zrR07m3ZxhP4N27Hlg8VeJGGYgFTxK5NqDmWI4DSH72vIJg==", - "license": "ISC" - }, - "node_modules/emojis-list": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", - "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/enhanced-resolve": { - "version": "5.18.3", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.3.tgz", - "integrity": "sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww==", - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/envinfo": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.20.0.tgz", - "integrity": "sha512-+zUomDcLXsVkQ37vUqWBvQwLaLlj8eZPSi61llaEFAVBY5mhcXdaSw1pSJVl4yTYD5g/gEfpNl28YYk4IPvrrg==", - "dev": true, - "license": "MIT", - "bin": { - "envinfo": "dist/cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-module-lexer": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz", - "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==", - "license": "MIT" - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "license": "BSD-2-Clause", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "license": "BSD-2-Clause", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esrecurse/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "license": "MIT", - "engines": { - "node": ">=0.8.x" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "license": "MIT" - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "license": "MIT" - }, - "node_modules/fast-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", - "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fastify" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fastify" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/fastest-levenshtein": { - "version": "1.0.16", - "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", - "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4.9.1" - } - }, - "node_modules/fflate": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.7.3.tgz", - "integrity": "sha512-0Zz1jOzJWERhyhsimS54VTqOteCNwRtIlh8isdL0AXLo0g7xNTfTL7oWrkmCnPhZGocKIkWHBistBrrpoNH3aw==", - "license": "MIT" - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", - "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", - "dev": true, - "license": "BSD-3-Clause", - "bin": { - "flat": "cli.js" - } - }, - "node_modules/fraction.js": { - "version": "5.3.4", - "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-5.3.4.tgz", - "integrity": "sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==", - "license": "MIT", - "engines": { - "node": "*" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/rawify" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "license": "ISC" - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/gl-matrix": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/gl-matrix/-/gl-matrix-3.4.3.tgz", - "integrity": "sha512-wcCp8vu8FT22BnvKVPjXa/ICBWRq/zjFfdofZy1WSpQZpphblv12/bOQLBC1rMM7SGOFS9ltVmKOHil5+Ml7gA==", - "license": "MIT" - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-to-regexp": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", - "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", - "license": "BSD-2-Clause" - }, - "node_modules/globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", - "license": "MIT", - "dependencies": { - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "license": "ISC" - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/import-local": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", - "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", - "dev": true, - "license": "MIT", - "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "license": "ISC" - }, - "node_modules/internmap": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz", - "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "license": "MIT", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/is-core-module": { - "version": "2.16.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", - "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", - "license": "MIT", - "dependencies": { - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "license": "MIT", - "dependencies": { - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" - }, - "node_modules/isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/jest-worker": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", - "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", - "license": "MIT", - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "license": "MIT" - }, - "node_modules/js-yaml": { - "version": "3.14.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz", - "integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==", - "license": "MIT", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsesc": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", - "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "license": "MIT" - }, - "node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "license": "MIT" - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "license": "MIT", - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/loader-runner": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.1.tgz", - "integrity": "sha512-IWqP2SCPhyVFTBtRcgMHdzlf9ul25NwaFx4wCEH/KjAXuuHY4yNjvPXsBokp8jCB936PyWRaPKUNh8NvylLp2Q==", - "license": "MIT", - "engines": { - "node": ">=6.11.5" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/loader-utils": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.2.tgz", - "integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==", - "license": "MIT", - "dependencies": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^1.0.1" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/loader-utils/node_modules/json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "license": "MIT", - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", - "license": "MIT" - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "license": "ISC", - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "license": "MIT" - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "license": "MIT", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "license": "MIT" - }, - "node_modules/nanoid": { - "version": "3.3.11", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", - "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", - "license": "MIT" - }, - "node_modules/node-releases": { - "version": "2.0.27", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", - "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", - "license": "MIT" - }, - "node_modules/normalize-range": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", - "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/pako": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", - "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", - "license": "(MIT AND Zlib)" - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "license": "MIT" - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "license": "ISC" - }, - "node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pkg-dir/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/postcss": { - "version": "8.5.6", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", - "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "peer": true, - "dependencies": { - "nanoid": "^3.3.11", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/postcss-value-parser": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", - "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", - "license": "MIT" - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "license": "MIT", - "dependencies": { - "safe-buffer": "^5.1.0" - } - }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", - "dependencies": { - "resolve": "^1.1.6" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", - "license": "MIT" - }, - "node_modules/regenerate-unicode-properties": { - "version": "10.2.2", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.2.tgz", - "integrity": "sha512-m03P+zhBeQd1RGnYxrGyDAPpWX/epKirLrp8e3qevZdVkKtnCrjjWczIbYc8+xd6vcTStVlqfycTx1KR4LOr0g==", - "license": "MIT", - "dependencies": { - "regenerate": "^1.4.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regexpu-core": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-6.4.0.tgz", - "integrity": "sha512-0ghuzq67LI9bLXpOX/ISfve/Mq33a4aFRzoQYhnnok1JOFpmE/A2TBGkNVenOGEeSBCjIiWcc6MVOG5HEQv0sA==", - "license": "MIT", - "dependencies": { - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.2.2", - "regjsgen": "^0.8.0", - "regjsparser": "^0.13.0", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.2.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regjsgen": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.8.0.tgz", - "integrity": "sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q==", - "license": "MIT" - }, - "node_modules/regjsparser": { - "version": "0.13.0", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.13.0.tgz", - "integrity": "sha512-NZQZdC5wOE/H3UT28fVGL+ikOZcEzfMGk/c3iN9UGxzWHMa1op7274oyiUVrAG4B2EuFhus8SvkaYnhvW92p9Q==", - "license": "BSD-2-Clause", - "dependencies": { - "jsesc": "~3.1.0" - }, - "bin": { - "regjsparser": "bin/parser" - } - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/resolve": { - "version": "1.22.11", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", - "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", - "license": "MIT", - "dependencies": { - "is-core-module": "^2.16.1", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/schema-utils": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.3.tgz", - "integrity": "sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA==", - "license": "MIT", - "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", - "ajv-keywords": "^5.1.0" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/seedrandom": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/seedrandom/-/seedrandom-3.0.5.tgz", - "integrity": "sha512-8OwmbklUNzwezjGInmZ+2clQmExQPvomqjL7LFqOYqtmuxRgQYqOD3mHaU+MvZn5FLUeVxVfQjwLZW/n/JFuqg==", - "license": "MIT" - }, - "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/serialize-javascript": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", - "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", - "license": "BSD-3-Clause", - "dependencies": { - "randombytes": "^2.1.0" - } - }, - "node_modules/shader-loader": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/shader-loader/-/shader-loader-1.3.1.tgz", - "integrity": "sha512-dt8F9K0x4rjmaFyHh7rNDfpt4LUiR64zhNIEwp2WbE99B3z4ALuvvmhftkElg93dUD6sTmv/aXa/z9SJiEddcA==", - "license": "MIT", - "dependencies": { - "loader-utils": "^1.1.0" - } - }, - "node_modules/shallow-clone": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", - "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", - "dev": true, - "license": "MIT", - "dependencies": { - "kind-of": "^6.0.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/shelljs": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", - "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", - "license": "BSD-3-Clause", - "dependencies": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - }, - "bin": { - "shjs": "bin/shjs" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "license": "MIT", - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/spark-md5": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/spark-md5/-/spark-md5-3.0.2.tgz", - "integrity": "sha512-wcFzz9cDfbuqe0FZzfi2or1sgyIrsDwmPwfZC4hiNidPdPINjeUwNfv5kldczoEAcjl9Y1L3SM7Uz2PUEQzxQw==", - "license": "(WTFPL OR MIT)" - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "license": "BSD-3-Clause" - }, - "node_modules/stream-browserify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-3.0.0.tgz", - "integrity": "sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA==", - "license": "MIT", - "dependencies": { - "inherits": "~2.0.4", - "readable-stream": "^3.5.0" - } - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/tapable": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.0.tgz", - "integrity": "sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==", - "license": "MIT", - "engines": { - "node": ">=6" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/terser": { - "version": "5.44.1", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.44.1.tgz", - "integrity": "sha512-t/R3R/n0MSwnnazuPpPNVO60LX0SKL45pyl9YlvxIdkH0Of7D5qM2EVe+yASRIlY5pZ73nclYJfNANGWPwFDZw==", - "license": "BSD-2-Clause", - "dependencies": { - "@jridgewell/source-map": "^0.3.3", - "acorn": "^8.15.0", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, - "bin": { - "terser": "bin/terser" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/terser-webpack-plugin": { - "version": "5.3.14", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.14.tgz", - "integrity": "sha512-vkZjpUjb6OMS7dhV+tILUW6BhpDR7P2L/aQSAv+Uwk+m8KATX9EccViHTJR2qDtACKPIYndLGCyl3FMo+r2LMw==", - "license": "MIT", - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.25", - "jest-worker": "^27.4.5", - "schema-utils": "^4.3.0", - "serialize-javascript": "^6.0.2", - "terser": "^5.31.1" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^5.1.0" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "uglify-js": { - "optional": true - } - } - }, - "node_modules/terser/node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "license": "MIT" - }, - "node_modules/undici-types": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", - "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", - "license": "MIT" - }, - "node_modules/unicode-canonical-property-names-ecmascript": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz", - "integrity": "sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", - "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", - "license": "MIT", - "dependencies": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-value-ecmascript": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.1.tgz", - "integrity": "sha512-JQ84qTuMg4nVkx8ga4A16a1epI9H6uTXAknqxkGF/aFfRLw1xC/Bp24HNLaZhHSkWd3+84t8iXnp1J0kYcZHhg==", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-property-aliases-ecmascript": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.2.0.tgz", - "integrity": "sha512-hpbDzxUY9BFwX+UeBnxv3Sh1q7HFxj48DTmXchNgRa46lO8uj3/1iEn3MiNUYTg1g9ctIqXCCERn8gYZhHC5lQ==", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.4.tgz", - "integrity": "sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "escalade": "^3.2.0", - "picocolors": "^1.1.1" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/utif": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/utif/-/utif-3.1.0.tgz", - "integrity": "sha512-WEo4D/xOvFW53K5f5QTaTbbiORcm2/pCL9P6qmJnup+17eYfKaEhDeX9PeQkuyEoIxlbGklDuGl8xwuXYMrrXQ==", - "license": "MIT", - "dependencies": { - "pako": "^1.0.5" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "license": "MIT" - }, - "node_modules/watchpack": { - "version": "2.4.4", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.4.tgz", - "integrity": "sha512-c5EGNOiyxxV5qmTtAB7rbiXxi1ooX1pQKMLX/MIabJjRA0SJBQOjKF+KSVfHkr9U1cADPon0mRiVe/riyaiDUA==", - "license": "MIT", - "dependencies": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/webpack": { - "version": "5.103.0", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.103.0.tgz", - "integrity": "sha512-HU1JOuV1OavsZ+mfigY0j8d1TgQgbZ6M+J75zDkpEAwYeXjWSqrGJtgnPblJjd/mAyTNQ7ygw0MiKOn6etz8yw==", - "license": "MIT", - "peer": true, - "dependencies": { - "@types/eslint-scope": "^3.7.7", - "@types/estree": "^1.0.8", - "@types/json-schema": "^7.0.15", - "@webassemblyjs/ast": "^1.14.1", - "@webassemblyjs/wasm-edit": "^1.14.1", - "@webassemblyjs/wasm-parser": "^1.14.1", - "acorn": "^8.15.0", - "acorn-import-phases": "^1.0.3", - "browserslist": "^4.26.3", - "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^5.17.3", - "es-module-lexer": "^1.2.1", - "eslint-scope": "5.1.1", - "events": "^3.2.0", - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.2.11", - "json-parse-even-better-errors": "^2.3.1", - "loader-runner": "^4.3.1", - "mime-types": "^2.1.27", - "neo-async": "^2.6.2", - "schema-utils": "^4.3.3", - "tapable": "^2.3.0", - "terser-webpack-plugin": "^5.3.11", - "watchpack": "^2.4.4", - "webpack-sources": "^3.3.3" - }, - "bin": { - "webpack": "bin/webpack.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependenciesMeta": { - "webpack-cli": { - "optional": true - } - } - }, - "node_modules/webpack-cli": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-5.1.4.tgz", - "integrity": "sha512-pIDJHIEI9LR0yxHXQ+Qh95k2EvXpWzZ5l+d+jIo+RdSm9MiHfzazIxwwni/p7+x4eJZuvG1AJwgC4TNQ7NRgsg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@discoveryjs/json-ext": "^0.5.0", - "@webpack-cli/configtest": "^2.1.1", - "@webpack-cli/info": "^2.0.2", - "@webpack-cli/serve": "^2.0.5", - "colorette": "^2.0.14", - "commander": "^10.0.1", - "cross-spawn": "^7.0.3", - "envinfo": "^7.7.3", - "fastest-levenshtein": "^1.0.12", - "import-local": "^3.0.2", - "interpret": "^3.1.1", - "rechoir": "^0.8.0", - "webpack-merge": "^5.7.3" - }, - "bin": { - "webpack-cli": "bin/cli.js" - }, - "engines": { - "node": ">=14.15.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "5.x.x" - }, - "peerDependenciesMeta": { - "@webpack-cli/generators": { - "optional": true - }, - "webpack-bundle-analyzer": { - "optional": true - }, - "webpack-dev-server": { - "optional": true - } - } - }, - "node_modules/webpack-cli/node_modules/commander": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", - "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14" - } - }, - "node_modules/webpack-cli/node_modules/interpret": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-3.1.1.tgz", - "integrity": "sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/webpack-cli/node_modules/rechoir": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.8.0.tgz", - "integrity": "sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "resolve": "^1.20.0" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "node_modules/webpack-merge": { - "version": "5.10.0", - "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.10.0.tgz", - "integrity": "sha512-+4zXKdx7UnO+1jaN4l2lHVD+mFvnlZQP/6ljaJVb4SZiwIKeUnrT5l0gkT8z+n4hKpC+jpOv6O9R+gLtag7pSA==", - "dev": true, - "license": "MIT", - "dependencies": { - "clone-deep": "^4.0.1", - "flat": "^5.0.2", - "wildcard": "^2.0.0" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/webpack-sources": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.3.3.tgz", - "integrity": "sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg==", - "license": "MIT", - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/webworker-promise": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/webworker-promise/-/webworker-promise-0.5.0.tgz", - "integrity": "sha512-14iR79jHAV7ozwvbfif+3wCaApT3I1g8Lo0rJZrwAu6wxZGx/08Y8KXz6as6ZLNUEEufeiEBBYrqyDBClXOsEw==", - "license": "MIT" - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/wildcard": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", - "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/worker-loader": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/worker-loader/-/worker-loader-3.0.8.tgz", - "integrity": "sha512-XQyQkIFeRVC7f7uRhFdNMe/iJOdO6zxAaR3EWbDp45v3mDhrTi+++oswKNxShUNjPC/1xUp5DB29YKLhFo129g==", - "license": "MIT", - "dependencies": { - "loader-utils": "^2.0.0", - "schema-utils": "^3.0.0" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "peerDependencies": { - "webpack": "^4.0.0 || ^5.0.0" - } - }, - "node_modules/worker-loader/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "license": "MIT", - "peer": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/worker-loader/node_modules/ajv-keywords": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", - "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "license": "MIT", - "peerDependencies": { - "ajv": "^6.9.1" - } - }, - "node_modules/worker-loader/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "license": "MIT" - }, - "node_modules/worker-loader/node_modules/loader-utils": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", - "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", - "license": "MIT", - "dependencies": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - }, - "engines": { - "node": ">=8.9.0" - } - }, - "node_modules/worker-loader/node_modules/schema-utils": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.3.0.tgz", - "integrity": "sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg==", - "license": "MIT", - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "engines": { - "node": ">= 10.13.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "license": "ISC" - }, - "node_modules/wslink": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/wslink/-/wslink-2.5.0.tgz", - "integrity": "sha512-+m7GWH9G3Y2iAN9CP8M5z/Re2u/Q1KEXvUZ2ISGle7CF6T07z2jS8sWfgp4Y8ZRUbUCHp6IJnEL1xkbzeNn18Q==", - "license": "BSD-3-Clause", - "peer": true, - "dependencies": { - "@msgpack/msgpack": "^2.8.0" - } - }, - "node_modules/xmlbuilder2": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/xmlbuilder2/-/xmlbuilder2-3.0.2.tgz", - "integrity": "sha512-h4MUawGY21CTdhV4xm3DG9dgsqyhDkZvVJBx88beqX8wJs3VgyGQgAn5VreHuae6unTQxh115aMK5InCVmOIKw==", - "license": "MIT", - "dependencies": { - "@oozcitak/dom": "1.15.10", - "@oozcitak/infra": "1.0.8", - "@oozcitak/util": "8.3.8", - "@types/node": "*", - "js-yaml": "3.14.0" - }, - "engines": { - "node": ">=12.0" - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "license": "ISC" - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - } -} diff --git a/build_vtk_bundle/node_modules/@babel/code-frame/LICENSE b/build_vtk_bundle/node_modules/@babel/code-frame/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/code-frame/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/code-frame/README.md b/build_vtk_bundle/node_modules/@babel/code-frame/README.md deleted file mode 100644 index 71607551..00000000 --- a/build_vtk_bundle/node_modules/@babel/code-frame/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/code-frame - -> Generate errors that contain a code frame that point to source locations. - -See our website [@babel/code-frame](https://babeljs.io/docs/babel-code-frame) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/code-frame -``` - -or using yarn: - -```sh -yarn add @babel/code-frame --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/code-frame/package.json b/build_vtk_bundle/node_modules/@babel/code-frame/package.json deleted file mode 100644 index c95c2449..00000000 --- a/build_vtk_bundle/node_modules/@babel/code-frame/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "@babel/code-frame", - "version": "7.27.1", - "description": "Generate errors that contain a code frame that point to source locations.", - "author": "The Babel Team (https://babel.dev/team)", - "homepage": "https://babel.dev/docs/en/next/babel-code-frame", - "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-code-frame" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/helper-validator-identifier": "^7.27.1", - "js-tokens": "^4.0.0", - "picocolors": "^1.1.1" - }, - "devDependencies": { - "import-meta-resolve": "^4.1.0", - "strip-ansi": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/compat-data/LICENSE b/build_vtk_bundle/node_modules/@babel/compat-data/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/compat-data/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/compat-data/README.md b/build_vtk_bundle/node_modules/@babel/compat-data/README.md deleted file mode 100644 index c1918987..00000000 --- a/build_vtk_bundle/node_modules/@babel/compat-data/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/compat-data - -> The compat-data to determine required Babel plugins - -See our website [@babel/compat-data](https://babeljs.io/docs/babel-compat-data) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/compat-data -``` - -or using yarn: - -```sh -yarn add @babel/compat-data -``` diff --git a/build_vtk_bundle/node_modules/@babel/compat-data/corejs2-built-ins.js b/build_vtk_bundle/node_modules/@babel/compat-data/corejs2-built-ins.js deleted file mode 100644 index ed19e0b8..00000000 --- a/build_vtk_bundle/node_modules/@babel/compat-data/corejs2-built-ins.js +++ /dev/null @@ -1,2 +0,0 @@ -// Todo (Babel 8): remove this file as Babel 8 drop support of core-js 2 -module.exports = require("./data/corejs2-built-ins.json"); diff --git a/build_vtk_bundle/node_modules/@babel/compat-data/corejs3-shipped-proposals.js b/build_vtk_bundle/node_modules/@babel/compat-data/corejs3-shipped-proposals.js deleted file mode 100644 index 7909b8c4..00000000 --- a/build_vtk_bundle/node_modules/@babel/compat-data/corejs3-shipped-proposals.js +++ /dev/null @@ -1,2 +0,0 @@ -// Todo (Babel 8): remove this file now that it is included in babel-plugin-polyfill-corejs3 -module.exports = require("./data/corejs3-shipped-proposals.json"); diff --git a/build_vtk_bundle/node_modules/@babel/compat-data/data/corejs2-built-ins.json b/build_vtk_bundle/node_modules/@babel/compat-data/data/corejs2-built-ins.json deleted file mode 100644 index ba76060c..00000000 --- a/build_vtk_bundle/node_modules/@babel/compat-data/data/corejs2-built-ins.json +++ /dev/null @@ -1,2106 +0,0 @@ -{ - "es6.array.copy-within": { - "chrome": "45", - "opera": "32", - "edge": "12", - "firefox": "32", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "5", - "rhino": "1.7.13", - "opera_mobile": "32", - "electron": "0.31" - }, - "es6.array.every": { - "chrome": "5", - "opera": "10.10", - "edge": "12", - "firefox": "2", - "safari": "3.1", - "node": "0.4", - "deno": "1", - "ie": "9", - "android": "4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "10.1", - "electron": "0.20" - }, - "es6.array.fill": { - "chrome": "45", - "opera": "32", - "edge": "12", - "firefox": "31", - "safari": "7.1", - "node": "4", - "deno": "1", - "ios": "8", - "samsung": "5", - "rhino": "1.7.13", - "opera_mobile": "32", - "electron": "0.31" - }, - "es6.array.filter": { - "chrome": "51", - "opera": "38", - "edge": "13", - "firefox": "48", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "es6.array.find": { - "chrome": "45", - "opera": "32", - "edge": "12", - "firefox": "25", - "safari": "7.1", - "node": "4", - "deno": "1", - "ios": "8", - "samsung": "5", - "rhino": "1.7.13", - "opera_mobile": "32", - "electron": "0.31" - }, - "es6.array.find-index": { - "chrome": "45", - "opera": "32", - "edge": "12", - "firefox": "25", - "safari": "7.1", - "node": "4", - "deno": "1", - "ios": "8", - "samsung": "5", - "rhino": "1.7.13", - "opera_mobile": "32", - "electron": "0.31" - }, - "es7.array.flat-map": { - "chrome": "69", - "opera": "56", - "edge": "79", - "firefox": "62", - "safari": "12", - "node": "11", - "deno": "1", - "ios": "12", - "samsung": "10", - "rhino": "1.7.15", - "opera_mobile": "48", - "electron": "4.0" - }, - "es6.array.for-each": { - "chrome": "5", - "opera": "10.10", - "edge": "12", - "firefox": "2", - "safari": "3.1", - "node": "0.4", - "deno": "1", - "ie": "9", - "android": "4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "10.1", - "electron": "0.20" - }, - "es6.array.from": { - "chrome": "51", - "opera": "38", - "edge": "15", - "firefox": "36", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.7.15", - "opera_mobile": "41", - "electron": "1.2" - }, - "es7.array.includes": { - "chrome": "47", - "opera": "34", - "edge": "14", - "firefox": "102", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.8", - "opera_mobile": "34", - "electron": "0.36" - }, - "es6.array.index-of": { - "chrome": "5", - "opera": "10.10", - "edge": "12", - "firefox": "2", - "safari": "3.1", - "node": "0.4", - "deno": "1", - "ie": "9", - "android": "4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "10.1", - "electron": "0.20" - }, - "es6.array.is-array": { - "chrome": "5", - "opera": "10.50", - "edge": "12", - "firefox": "4", - "safari": "4", - "node": "0.4", - "deno": "1", - "ie": "9", - "android": "4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "10.1", - "electron": "0.20" - }, - "es6.array.iterator": { - "chrome": "66", - "opera": "53", - "edge": "12", - "firefox": "60", - "safari": "9", - "node": "10", - "deno": "1", - "ios": "9", - "samsung": "9", - "rhino": "1.7.13", - "opera_mobile": "47", - "electron": "3.0" - }, - "es6.array.last-index-of": { - "chrome": "5", - "opera": "10.10", - "edge": "12", - "firefox": "2", - "safari": "3.1", - "node": "0.4", - "deno": "1", - "ie": "9", - "android": "4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "10.1", - "electron": "0.20" - }, - "es6.array.map": { - "chrome": "51", - "opera": "38", - "edge": "13", - "firefox": "48", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "es6.array.of": { - "chrome": "45", - "opera": "32", - "edge": "12", - "firefox": "25", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "5", - "rhino": "1.7.13", - "opera_mobile": "32", - "electron": "0.31" - }, - "es6.array.reduce": { - "chrome": "5", - "opera": "10.50", - "edge": "12", - "firefox": "3", - "safari": "4", - "node": "0.4", - "deno": "1", - "ie": "9", - "android": "4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "10.1", - "electron": "0.20" - }, - "es6.array.reduce-right": { - "chrome": "5", - "opera": "10.50", - "edge": "12", - "firefox": "3", - "safari": "4", - "node": "0.4", - "deno": "1", - "ie": "9", - "android": "4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "10.1", - "electron": "0.20" - }, - "es6.array.slice": { - "chrome": "51", - "opera": "38", - "edge": "13", - "firefox": "48", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "es6.array.some": { - "chrome": "5", - "opera": "10.10", - "edge": "12", - "firefox": "2", - "safari": "3.1", - "node": "0.4", - "deno": "1", - "ie": "9", - "android": "4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "10.1", - "electron": "0.20" - }, - "es6.array.sort": { - "chrome": "63", - "opera": "50", - "edge": "12", - "firefox": "5", - "safari": "12", - "node": "10", - "deno": "1", - "ie": "9", - "ios": "12", - "samsung": "8", - "rhino": "1.7.13", - "opera_mobile": "46", - "electron": "3.0" - }, - "es6.array.species": { - "chrome": "51", - "opera": "38", - "edge": "13", - "firefox": "48", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.7.15", - "opera_mobile": "41", - "electron": "1.2" - }, - "es6.date.now": { - "chrome": "5", - "opera": "10.50", - "edge": "12", - "firefox": "2", - "safari": "4", - "node": "0.4", - "deno": "1", - "ie": "9", - "android": "4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "10.1", - "electron": "0.20" - }, - "es6.date.to-iso-string": { - "chrome": "5", - "opera": "10.50", - "edge": "12", - "firefox": "3.5", - "safari": "4", - "node": "0.4", - "deno": "1", - "ie": "9", - "android": "4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "10.1", - "electron": "0.20" - }, - "es6.date.to-json": { - "chrome": "5", - "opera": "12.10", - "edge": "12", - "firefox": "4", - "safari": "10", - "node": "0.4", - "deno": "1", - "ie": "9", - "android": "4", - "ios": "10", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "12.1", - "electron": "0.20" - }, - "es6.date.to-primitive": { - "chrome": "47", - "opera": "34", - "edge": "15", - "firefox": "44", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.8", - "opera_mobile": "34", - "electron": "0.36" - }, - "es6.date.to-string": { - "chrome": "5", - "opera": "10.50", - "edge": "12", - "firefox": "2", - "safari": "3.1", - "node": "0.4", - "deno": "1", - "ie": "10", - "android": "4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "10.1", - "electron": "0.20" - }, - "es6.function.bind": { - "chrome": "7", - "opera": "12", - "edge": "12", - "firefox": "4", - "safari": "5.1", - "node": "0.4", - "deno": "1", - "ie": "9", - "android": "4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "12", - "electron": "0.20" - }, - "es6.function.has-instance": { - "chrome": "51", - "opera": "38", - "edge": "15", - "firefox": "50", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "es6.function.name": { - "chrome": "5", - "opera": "10.50", - "edge": "14", - "firefox": "2", - "safari": "4", - "node": "0.4", - "deno": "1", - "android": "4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "10.1", - "electron": "0.20" - }, - "es6.map": { - "chrome": "51", - "opera": "38", - "edge": "15", - "firefox": "53", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "es6.math.acosh": { - "chrome": "38", - "opera": "25", - "edge": "12", - "firefox": "25", - "safari": "7.1", - "node": "0.12", - "deno": "1", - "ios": "8", - "samsung": "3", - "rhino": "1.7.13", - "opera_mobile": "25", - "electron": "0.20" - }, - "es6.math.asinh": { - "chrome": "38", - "opera": "25", - "edge": "12", - "firefox": "25", - "safari": "7.1", - "node": "0.12", - "deno": "1", - "ios": "8", - "samsung": "3", - "rhino": "1.7.13", - "opera_mobile": "25", - "electron": "0.20" - }, - "es6.math.atanh": { - "chrome": "38", - "opera": "25", - "edge": "12", - "firefox": "25", - "safari": "7.1", - "node": "0.12", - "deno": "1", - "ios": "8", - "samsung": "3", - "rhino": "1.7.13", - "opera_mobile": "25", - "electron": "0.20" - }, - "es6.math.cbrt": { - "chrome": "38", - "opera": "25", - "edge": "12", - "firefox": "25", - "safari": "7.1", - "node": "0.12", - "deno": "1", - "ios": "8", - "samsung": "3", - "rhino": "1.7.13", - "opera_mobile": "25", - "electron": "0.20" - }, - "es6.math.clz32": { - "chrome": "38", - "opera": "25", - "edge": "12", - "firefox": "31", - "safari": "9", - "node": "0.12", - "deno": "1", - "ios": "9", - "samsung": "3", - "rhino": "1.7.13", - "opera_mobile": "25", - "electron": "0.20" - }, - "es6.math.cosh": { - "chrome": "38", - "opera": "25", - "edge": "12", - "firefox": "25", - "safari": "7.1", - "node": "0.12", - "deno": "1", - "ios": "8", - "samsung": "3", - "rhino": "1.7.13", - "opera_mobile": "25", - "electron": "0.20" - }, - "es6.math.expm1": { - "chrome": "38", - "opera": "25", - "edge": "12", - "firefox": "25", - "safari": "7.1", - "node": "0.12", - "deno": "1", - "ios": "8", - "samsung": "3", - "rhino": "1.7.13", - "opera_mobile": "25", - "electron": "0.20" - }, - "es6.math.fround": { - "chrome": "38", - "opera": "25", - "edge": "12", - "firefox": "26", - "safari": "7.1", - "node": "0.12", - "deno": "1", - "ios": "8", - "samsung": "3", - "rhino": "1.7.13", - "opera_mobile": "25", - "electron": "0.20" - }, - "es6.math.hypot": { - "chrome": "38", - "opera": "25", - "edge": "12", - "firefox": "27", - "safari": "7.1", - "node": "0.12", - "deno": "1", - "ios": "8", - "samsung": "3", - "rhino": "1.7.13", - "opera_mobile": "25", - "electron": "0.20" - }, - "es6.math.imul": { - "chrome": "30", - "opera": "17", - "edge": "12", - "firefox": "23", - "safari": "7", - "node": "0.12", - "deno": "1", - "android": "4.4", - "ios": "7", - "samsung": "2", - "rhino": "1.7.13", - "opera_mobile": "18", - "electron": "0.20" - }, - "es6.math.log1p": { - "chrome": "38", - "opera": "25", - "edge": "12", - "firefox": "25", - "safari": "7.1", - "node": "0.12", - "deno": "1", - "ios": "8", - "samsung": "3", - "rhino": "1.7.13", - "opera_mobile": "25", - "electron": "0.20" - }, - "es6.math.log10": { - "chrome": "38", - "opera": "25", - "edge": "12", - "firefox": "25", - "safari": "7.1", - "node": "0.12", - "deno": "1", - "ios": "8", - "samsung": "3", - "rhino": "1.7.13", - "opera_mobile": "25", - "electron": "0.20" - }, - "es6.math.log2": { - "chrome": "38", - "opera": "25", - "edge": "12", - "firefox": "25", - "safari": "7.1", - "node": "0.12", - "deno": "1", - "ios": "8", - "samsung": "3", - "rhino": "1.7.13", - "opera_mobile": "25", - "electron": "0.20" - }, - "es6.math.sign": { - "chrome": "38", - "opera": "25", - "edge": "12", - "firefox": "25", - "safari": "9", - "node": "0.12", - "deno": "1", - "ios": "9", - "samsung": "3", - "rhino": "1.7.13", - "opera_mobile": "25", - "electron": "0.20" - }, - "es6.math.sinh": { - "chrome": "38", - "opera": "25", - "edge": "12", - "firefox": "25", - "safari": "7.1", - "node": "0.12", - "deno": "1", - "ios": "8", - "samsung": "3", - "rhino": "1.7.13", - "opera_mobile": "25", - "electron": "0.20" - }, - "es6.math.tanh": { - "chrome": "38", - "opera": "25", - "edge": "12", - "firefox": "25", - "safari": "7.1", - "node": "0.12", - "deno": "1", - "ios": "8", - "samsung": "3", - "rhino": "1.7.13", - "opera_mobile": "25", - "electron": "0.20" - }, - "es6.math.trunc": { - "chrome": "38", - "opera": "25", - "edge": "12", - "firefox": "25", - "safari": "7.1", - "node": "0.12", - "deno": "1", - "ios": "8", - "samsung": "3", - "rhino": "1.7.13", - "opera_mobile": "25", - "electron": "0.20" - }, - "es6.number.constructor": { - "chrome": "41", - "opera": "28", - "edge": "12", - "firefox": "36", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "3.4", - "rhino": "1.7.13", - "opera_mobile": "28", - "electron": "0.21" - }, - "es6.number.epsilon": { - "chrome": "34", - "opera": "21", - "edge": "12", - "firefox": "25", - "safari": "9", - "node": "0.12", - "deno": "1", - "ios": "9", - "samsung": "2", - "rhino": "1.7.14", - "opera_mobile": "21", - "electron": "0.20" - }, - "es6.number.is-finite": { - "chrome": "19", - "opera": "15", - "edge": "12", - "firefox": "16", - "safari": "9", - "node": "0.8", - "deno": "1", - "android": "4.1", - "ios": "9", - "samsung": "1.5", - "rhino": "1.7.13", - "opera_mobile": "14", - "electron": "0.20" - }, - "es6.number.is-integer": { - "chrome": "34", - "opera": "21", - "edge": "12", - "firefox": "16", - "safari": "9", - "node": "0.12", - "deno": "1", - "ios": "9", - "samsung": "2", - "rhino": "1.7.13", - "opera_mobile": "21", - "electron": "0.20" - }, - "es6.number.is-nan": { - "chrome": "19", - "opera": "15", - "edge": "12", - "firefox": "15", - "safari": "9", - "node": "0.8", - "deno": "1", - "android": "4.1", - "ios": "9", - "samsung": "1.5", - "rhino": "1.7.13", - "opera_mobile": "14", - "electron": "0.20" - }, - "es6.number.is-safe-integer": { - "chrome": "34", - "opera": "21", - "edge": "12", - "firefox": "32", - "safari": "9", - "node": "0.12", - "deno": "1", - "ios": "9", - "samsung": "2", - "rhino": "1.7.13", - "opera_mobile": "21", - "electron": "0.20" - }, - "es6.number.max-safe-integer": { - "chrome": "34", - "opera": "21", - "edge": "12", - "firefox": "31", - "safari": "9", - "node": "0.12", - "deno": "1", - "ios": "9", - "samsung": "2", - "rhino": "1.7.13", - "opera_mobile": "21", - "electron": "0.20" - }, - "es6.number.min-safe-integer": { - "chrome": "34", - "opera": "21", - "edge": "12", - "firefox": "31", - "safari": "9", - "node": "0.12", - "deno": "1", - "ios": "9", - "samsung": "2", - "rhino": "1.7.13", - "opera_mobile": "21", - "electron": "0.20" - }, - "es6.number.parse-float": { - "chrome": "34", - "opera": "21", - "edge": "12", - "firefox": "25", - "safari": "9", - "node": "0.12", - "deno": "1", - "ios": "9", - "samsung": "2", - "rhino": "1.7.14", - "opera_mobile": "21", - "electron": "0.20" - }, - "es6.number.parse-int": { - "chrome": "34", - "opera": "21", - "edge": "12", - "firefox": "25", - "safari": "9", - "node": "0.12", - "deno": "1", - "ios": "9", - "samsung": "2", - "rhino": "1.7.14", - "opera_mobile": "21", - "electron": "0.20" - }, - "es6.object.assign": { - "chrome": "49", - "opera": "36", - "edge": "13", - "firefox": "36", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.8", - "opera_mobile": "36", - "electron": "0.37" - }, - "es6.object.create": { - "chrome": "5", - "opera": "12", - "edge": "12", - "firefox": "4", - "safari": "4", - "node": "0.4", - "deno": "1", - "ie": "9", - "android": "4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "12", - "electron": "0.20" - }, - "es7.object.define-getter": { - "chrome": "62", - "opera": "49", - "edge": "16", - "firefox": "48", - "safari": "9", - "node": "8.10", - "deno": "1", - "ios": "9", - "samsung": "8", - "opera_mobile": "46", - "electron": "3.0" - }, - "es7.object.define-setter": { - "chrome": "62", - "opera": "49", - "edge": "16", - "firefox": "48", - "safari": "9", - "node": "8.10", - "deno": "1", - "ios": "9", - "samsung": "8", - "opera_mobile": "46", - "electron": "3.0" - }, - "es6.object.define-property": { - "chrome": "5", - "opera": "12", - "edge": "12", - "firefox": "4", - "safari": "5.1", - "node": "0.4", - "deno": "1", - "ie": "9", - "android": "4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "12", - "electron": "0.20" - }, - "es6.object.define-properties": { - "chrome": "5", - "opera": "12", - "edge": "12", - "firefox": "4", - "safari": "4", - "node": "0.4", - "deno": "1", - "ie": "9", - "android": "4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "12", - "electron": "0.20" - }, - "es7.object.entries": { - "chrome": "54", - "opera": "41", - "edge": "14", - "firefox": "47", - "safari": "10.1", - "node": "7", - "deno": "1", - "ios": "10.3", - "samsung": "6", - "rhino": "1.7.14", - "opera_mobile": "41", - "electron": "1.4" - }, - "es6.object.freeze": { - "chrome": "44", - "opera": "31", - "edge": "12", - "firefox": "35", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "4", - "rhino": "1.7.13", - "opera_mobile": "32", - "electron": "0.30" - }, - "es6.object.get-own-property-descriptor": { - "chrome": "44", - "opera": "31", - "edge": "12", - "firefox": "35", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "4", - "rhino": "1.7.13", - "opera_mobile": "32", - "electron": "0.30" - }, - "es7.object.get-own-property-descriptors": { - "chrome": "54", - "opera": "41", - "edge": "15", - "firefox": "50", - "safari": "10.1", - "node": "7", - "deno": "1", - "ios": "10.3", - "samsung": "6", - "rhino": "1.8", - "opera_mobile": "41", - "electron": "1.4" - }, - "es6.object.get-own-property-names": { - "chrome": "40", - "opera": "27", - "edge": "12", - "firefox": "33", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "3.4", - "rhino": "1.7.13", - "opera_mobile": "27", - "electron": "0.21" - }, - "es6.object.get-prototype-of": { - "chrome": "44", - "opera": "31", - "edge": "12", - "firefox": "35", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "4", - "rhino": "1.7.13", - "opera_mobile": "32", - "electron": "0.30" - }, - "es7.object.lookup-getter": { - "chrome": "62", - "opera": "49", - "edge": "79", - "firefox": "36", - "safari": "9", - "node": "8.10", - "deno": "1", - "ios": "9", - "samsung": "8", - "opera_mobile": "46", - "electron": "3.0" - }, - "es7.object.lookup-setter": { - "chrome": "62", - "opera": "49", - "edge": "79", - "firefox": "36", - "safari": "9", - "node": "8.10", - "deno": "1", - "ios": "9", - "samsung": "8", - "opera_mobile": "46", - "electron": "3.0" - }, - "es6.object.prevent-extensions": { - "chrome": "44", - "opera": "31", - "edge": "12", - "firefox": "35", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "4", - "rhino": "1.7.13", - "opera_mobile": "32", - "electron": "0.30" - }, - "es6.object.to-string": { - "chrome": "57", - "opera": "44", - "edge": "15", - "firefox": "51", - "safari": "10", - "node": "8", - "deno": "1", - "ios": "10", - "samsung": "7", - "opera_mobile": "43", - "electron": "1.7" - }, - "es6.object.is": { - "chrome": "19", - "opera": "15", - "edge": "12", - "firefox": "22", - "safari": "9", - "node": "0.8", - "deno": "1", - "android": "4.1", - "ios": "9", - "samsung": "1.5", - "rhino": "1.7.13", - "opera_mobile": "14", - "electron": "0.20" - }, - "es6.object.is-frozen": { - "chrome": "44", - "opera": "31", - "edge": "12", - "firefox": "35", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "4", - "rhino": "1.7.13", - "opera_mobile": "32", - "electron": "0.30" - }, - "es6.object.is-sealed": { - "chrome": "44", - "opera": "31", - "edge": "12", - "firefox": "35", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "4", - "rhino": "1.7.13", - "opera_mobile": "32", - "electron": "0.30" - }, - "es6.object.is-extensible": { - "chrome": "44", - "opera": "31", - "edge": "12", - "firefox": "35", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "4", - "rhino": "1.7.13", - "opera_mobile": "32", - "electron": "0.30" - }, - "es6.object.keys": { - "chrome": "40", - "opera": "27", - "edge": "12", - "firefox": "35", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "3.4", - "rhino": "1.7.13", - "opera_mobile": "27", - "electron": "0.21" - }, - "es6.object.seal": { - "chrome": "44", - "opera": "31", - "edge": "12", - "firefox": "35", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "4", - "rhino": "1.7.13", - "opera_mobile": "32", - "electron": "0.30" - }, - "es6.object.set-prototype-of": { - "chrome": "34", - "opera": "21", - "edge": "12", - "firefox": "31", - "safari": "9", - "node": "0.12", - "deno": "1", - "ie": "11", - "ios": "9", - "samsung": "2", - "rhino": "1.7.13", - "opera_mobile": "21", - "electron": "0.20" - }, - "es7.object.values": { - "chrome": "54", - "opera": "41", - "edge": "14", - "firefox": "47", - "safari": "10.1", - "node": "7", - "deno": "1", - "ios": "10.3", - "samsung": "6", - "rhino": "1.7.14", - "opera_mobile": "41", - "electron": "1.4" - }, - "es6.promise": { - "chrome": "51", - "opera": "38", - "edge": "14", - "firefox": "45", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.7.15", - "opera_mobile": "41", - "electron": "1.2" - }, - "es7.promise.finally": { - "chrome": "63", - "opera": "50", - "edge": "18", - "firefox": "58", - "safari": "11.1", - "node": "10", - "deno": "1", - "ios": "11.3", - "samsung": "8", - "rhino": "1.7.15", - "opera_mobile": "46", - "electron": "3.0" - }, - "es6.reflect.apply": { - "chrome": "49", - "opera": "36", - "edge": "12", - "firefox": "42", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.8", - "opera_mobile": "36", - "electron": "0.37" - }, - "es6.reflect.construct": { - "chrome": "49", - "opera": "36", - "edge": "13", - "firefox": "49", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "36", - "electron": "0.37" - }, - "es6.reflect.define-property": { - "chrome": "49", - "opera": "36", - "edge": "13", - "firefox": "42", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.8", - "opera_mobile": "36", - "electron": "0.37" - }, - "es6.reflect.delete-property": { - "chrome": "49", - "opera": "36", - "edge": "12", - "firefox": "42", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.8", - "opera_mobile": "36", - "electron": "0.37" - }, - "es6.reflect.get": { - "chrome": "49", - "opera": "36", - "edge": "12", - "firefox": "42", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.8", - "opera_mobile": "36", - "electron": "0.37" - }, - "es6.reflect.get-own-property-descriptor": { - "chrome": "49", - "opera": "36", - "edge": "12", - "firefox": "42", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.8", - "opera_mobile": "36", - "electron": "0.37" - }, - "es6.reflect.get-prototype-of": { - "chrome": "49", - "opera": "36", - "edge": "12", - "firefox": "42", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.8", - "opera_mobile": "36", - "electron": "0.37" - }, - "es6.reflect.has": { - "chrome": "49", - "opera": "36", - "edge": "12", - "firefox": "42", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.8", - "opera_mobile": "36", - "electron": "0.37" - }, - "es6.reflect.is-extensible": { - "chrome": "49", - "opera": "36", - "edge": "12", - "firefox": "42", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.8", - "opera_mobile": "36", - "electron": "0.37" - }, - "es6.reflect.own-keys": { - "chrome": "49", - "opera": "36", - "edge": "12", - "firefox": "42", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.8", - "opera_mobile": "36", - "electron": "0.37" - }, - "es6.reflect.prevent-extensions": { - "chrome": "49", - "opera": "36", - "edge": "12", - "firefox": "42", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.8", - "opera_mobile": "36", - "electron": "0.37" - }, - "es6.reflect.set": { - "chrome": "49", - "opera": "36", - "edge": "12", - "firefox": "42", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.8", - "opera_mobile": "36", - "electron": "0.37" - }, - "es6.reflect.set-prototype-of": { - "chrome": "49", - "opera": "36", - "edge": "12", - "firefox": "42", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.8", - "opera_mobile": "36", - "electron": "0.37" - }, - "es6.regexp.constructor": { - "chrome": "50", - "opera": "37", - "edge": "79", - "firefox": "40", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "37", - "electron": "1.1" - }, - "es6.regexp.flags": { - "chrome": "49", - "opera": "36", - "edge": "79", - "firefox": "37", - "safari": "9", - "node": "6", - "deno": "1", - "ios": "9", - "samsung": "5", - "rhino": "1.7.15", - "opera_mobile": "36", - "electron": "0.37" - }, - "es6.regexp.match": { - "chrome": "50", - "opera": "37", - "edge": "79", - "firefox": "49", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.7.13", - "opera_mobile": "37", - "electron": "1.1" - }, - "es6.regexp.replace": { - "chrome": "50", - "opera": "37", - "edge": "79", - "firefox": "49", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "37", - "electron": "1.1" - }, - "es6.regexp.split": { - "chrome": "50", - "opera": "37", - "edge": "79", - "firefox": "49", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "37", - "electron": "1.1" - }, - "es6.regexp.search": { - "chrome": "50", - "opera": "37", - "edge": "79", - "firefox": "49", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.7.13", - "opera_mobile": "37", - "electron": "1.1" - }, - "es6.regexp.to-string": { - "chrome": "50", - "opera": "37", - "edge": "79", - "firefox": "39", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.7.15", - "opera_mobile": "37", - "electron": "1.1" - }, - "es6.set": { - "chrome": "51", - "opera": "38", - "edge": "15", - "firefox": "53", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "es6.symbol": { - "chrome": "51", - "opera": "38", - "edge": "79", - "firefox": "51", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "es7.symbol.async-iterator": { - "chrome": "63", - "opera": "50", - "edge": "79", - "firefox": "57", - "safari": "12", - "node": "10", - "deno": "1", - "ios": "12", - "samsung": "8", - "opera_mobile": "46", - "electron": "3.0" - }, - "es6.string.anchor": { - "chrome": "5", - "opera": "15", - "edge": "12", - "firefox": "17", - "safari": "6", - "node": "0.4", - "deno": "1", - "android": "4", - "ios": "7", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.14", - "opera_mobile": "14", - "electron": "0.20" - }, - "es6.string.big": { - "chrome": "5", - "opera": "15", - "edge": "12", - "firefox": "17", - "safari": "6", - "node": "0.4", - "deno": "1", - "android": "4", - "ios": "7", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.14", - "opera_mobile": "14", - "electron": "0.20" - }, - "es6.string.blink": { - "chrome": "5", - "opera": "15", - "edge": "12", - "firefox": "17", - "safari": "6", - "node": "0.4", - "deno": "1", - "android": "4", - "ios": "7", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.14", - "opera_mobile": "14", - "electron": "0.20" - }, - "es6.string.bold": { - "chrome": "5", - "opera": "15", - "edge": "12", - "firefox": "17", - "safari": "6", - "node": "0.4", - "deno": "1", - "android": "4", - "ios": "7", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.14", - "opera_mobile": "14", - "electron": "0.20" - }, - "es6.string.code-point-at": { - "chrome": "41", - "opera": "28", - "edge": "12", - "firefox": "29", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "3.4", - "rhino": "1.7.13", - "opera_mobile": "28", - "electron": "0.21" - }, - "es6.string.ends-with": { - "chrome": "41", - "opera": "28", - "edge": "12", - "firefox": "29", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "3.4", - "rhino": "1.7.13", - "opera_mobile": "28", - "electron": "0.21" - }, - "es6.string.fixed": { - "chrome": "5", - "opera": "15", - "edge": "12", - "firefox": "17", - "safari": "6", - "node": "0.4", - "deno": "1", - "android": "4", - "ios": "7", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.14", - "opera_mobile": "14", - "electron": "0.20" - }, - "es6.string.fontcolor": { - "chrome": "5", - "opera": "15", - "edge": "12", - "firefox": "17", - "safari": "6", - "node": "0.4", - "deno": "1", - "android": "4", - "ios": "7", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.14", - "opera_mobile": "14", - "electron": "0.20" - }, - "es6.string.fontsize": { - "chrome": "5", - "opera": "15", - "edge": "12", - "firefox": "17", - "safari": "6", - "node": "0.4", - "deno": "1", - "android": "4", - "ios": "7", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.14", - "opera_mobile": "14", - "electron": "0.20" - }, - "es6.string.from-code-point": { - "chrome": "41", - "opera": "28", - "edge": "12", - "firefox": "29", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "3.4", - "rhino": "1.7.13", - "opera_mobile": "28", - "electron": "0.21" - }, - "es6.string.includes": { - "chrome": "41", - "opera": "28", - "edge": "12", - "firefox": "40", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "3.4", - "rhino": "1.7.13", - "opera_mobile": "28", - "electron": "0.21" - }, - "es6.string.italics": { - "chrome": "5", - "opera": "15", - "edge": "12", - "firefox": "17", - "safari": "6", - "node": "0.4", - "deno": "1", - "android": "4", - "ios": "7", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.14", - "opera_mobile": "14", - "electron": "0.20" - }, - "es6.string.iterator": { - "chrome": "38", - "opera": "25", - "edge": "12", - "firefox": "36", - "safari": "9", - "node": "0.12", - "deno": "1", - "ios": "9", - "samsung": "3", - "rhino": "1.7.13", - "opera_mobile": "25", - "electron": "0.20" - }, - "es6.string.link": { - "chrome": "5", - "opera": "15", - "edge": "12", - "firefox": "17", - "safari": "6", - "node": "0.4", - "deno": "1", - "android": "4", - "ios": "7", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.14", - "opera_mobile": "14", - "electron": "0.20" - }, - "es7.string.pad-start": { - "chrome": "57", - "opera": "44", - "edge": "15", - "firefox": "48", - "safari": "10", - "node": "8", - "deno": "1", - "ios": "10", - "samsung": "7", - "rhino": "1.7.13", - "opera_mobile": "43", - "electron": "1.7" - }, - "es7.string.pad-end": { - "chrome": "57", - "opera": "44", - "edge": "15", - "firefox": "48", - "safari": "10", - "node": "8", - "deno": "1", - "ios": "10", - "samsung": "7", - "rhino": "1.7.13", - "opera_mobile": "43", - "electron": "1.7" - }, - "es6.string.raw": { - "chrome": "41", - "opera": "28", - "edge": "12", - "firefox": "34", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "3.4", - "rhino": "1.7.14", - "opera_mobile": "28", - "electron": "0.21" - }, - "es6.string.repeat": { - "chrome": "41", - "opera": "28", - "edge": "12", - "firefox": "24", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "3.4", - "rhino": "1.7.13", - "opera_mobile": "28", - "electron": "0.21" - }, - "es6.string.small": { - "chrome": "5", - "opera": "15", - "edge": "12", - "firefox": "17", - "safari": "6", - "node": "0.4", - "deno": "1", - "android": "4", - "ios": "7", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.14", - "opera_mobile": "14", - "electron": "0.20" - }, - "es6.string.starts-with": { - "chrome": "41", - "opera": "28", - "edge": "12", - "firefox": "29", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "3.4", - "rhino": "1.7.13", - "opera_mobile": "28", - "electron": "0.21" - }, - "es6.string.strike": { - "chrome": "5", - "opera": "15", - "edge": "12", - "firefox": "17", - "safari": "6", - "node": "0.4", - "deno": "1", - "android": "4", - "ios": "7", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.14", - "opera_mobile": "14", - "electron": "0.20" - }, - "es6.string.sub": { - "chrome": "5", - "opera": "15", - "edge": "12", - "firefox": "17", - "safari": "6", - "node": "0.4", - "deno": "1", - "android": "4", - "ios": "7", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.14", - "opera_mobile": "14", - "electron": "0.20" - }, - "es6.string.sup": { - "chrome": "5", - "opera": "15", - "edge": "12", - "firefox": "17", - "safari": "6", - "node": "0.4", - "deno": "1", - "android": "4", - "ios": "7", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.14", - "opera_mobile": "14", - "electron": "0.20" - }, - "es6.string.trim": { - "chrome": "5", - "opera": "10.50", - "edge": "12", - "firefox": "3.5", - "safari": "4", - "node": "0.4", - "deno": "1", - "ie": "9", - "android": "4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "10.1", - "electron": "0.20" - }, - "es7.string.trim-left": { - "chrome": "66", - "opera": "53", - "edge": "79", - "firefox": "61", - "safari": "12", - "node": "10", - "deno": "1", - "ios": "12", - "samsung": "9", - "rhino": "1.7.13", - "opera_mobile": "47", - "electron": "3.0" - }, - "es7.string.trim-right": { - "chrome": "66", - "opera": "53", - "edge": "79", - "firefox": "61", - "safari": "12", - "node": "10", - "deno": "1", - "ios": "12", - "samsung": "9", - "rhino": "1.7.13", - "opera_mobile": "47", - "electron": "3.0" - }, - "es6.typed.array-buffer": { - "chrome": "51", - "opera": "38", - "edge": "13", - "firefox": "48", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "es6.typed.data-view": { - "chrome": "5", - "opera": "12", - "edge": "12", - "firefox": "15", - "safari": "5.1", - "node": "0.4", - "deno": "1", - "ie": "10", - "android": "4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "12", - "electron": "0.20" - }, - "es6.typed.int8-array": { - "chrome": "51", - "opera": "38", - "edge": "13", - "firefox": "48", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "es6.typed.uint8-array": { - "chrome": "51", - "opera": "38", - "edge": "13", - "firefox": "48", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "es6.typed.uint8-clamped-array": { - "chrome": "51", - "opera": "38", - "edge": "13", - "firefox": "48", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "es6.typed.int16-array": { - "chrome": "51", - "opera": "38", - "edge": "13", - "firefox": "48", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "es6.typed.uint16-array": { - "chrome": "51", - "opera": "38", - "edge": "13", - "firefox": "48", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "es6.typed.int32-array": { - "chrome": "51", - "opera": "38", - "edge": "13", - "firefox": "48", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "es6.typed.uint32-array": { - "chrome": "51", - "opera": "38", - "edge": "13", - "firefox": "48", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "es6.typed.float32-array": { - "chrome": "51", - "opera": "38", - "edge": "13", - "firefox": "48", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "es6.typed.float64-array": { - "chrome": "51", - "opera": "38", - "edge": "13", - "firefox": "48", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "es6.weak-map": { - "chrome": "51", - "opera": "38", - "edge": "15", - "firefox": "53", - "safari": "9", - "node": "6.5", - "deno": "1", - "ios": "9", - "samsung": "5", - "rhino": "1.7.15", - "opera_mobile": "41", - "electron": "1.2" - }, - "es6.weak-set": { - "chrome": "51", - "opera": "38", - "edge": "15", - "firefox": "53", - "safari": "9", - "node": "6.5", - "deno": "1", - "ios": "9", - "samsung": "5", - "rhino": "1.7.15", - "opera_mobile": "41", - "electron": "1.2" - } -} diff --git a/build_vtk_bundle/node_modules/@babel/compat-data/data/corejs3-shipped-proposals.json b/build_vtk_bundle/node_modules/@babel/compat-data/data/corejs3-shipped-proposals.json deleted file mode 100644 index d03b698f..00000000 --- a/build_vtk_bundle/node_modules/@babel/compat-data/data/corejs3-shipped-proposals.json +++ /dev/null @@ -1,5 +0,0 @@ -[ - "esnext.promise.all-settled", - "esnext.string.match-all", - "esnext.global-this" -] diff --git a/build_vtk_bundle/node_modules/@babel/compat-data/data/native-modules.json b/build_vtk_bundle/node_modules/@babel/compat-data/data/native-modules.json deleted file mode 100644 index 2328d213..00000000 --- a/build_vtk_bundle/node_modules/@babel/compat-data/data/native-modules.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "es6.module": { - "chrome": "61", - "and_chr": "61", - "edge": "16", - "firefox": "60", - "and_ff": "60", - "node": "13.2.0", - "opera": "48", - "op_mob": "45", - "safari": "10.1", - "ios": "10.3", - "samsung": "8.2", - "android": "61", - "electron": "2.0", - "ios_saf": "10.3" - } -} diff --git a/build_vtk_bundle/node_modules/@babel/compat-data/data/overlapping-plugins.json b/build_vtk_bundle/node_modules/@babel/compat-data/data/overlapping-plugins.json deleted file mode 100644 index 9b884bd4..00000000 --- a/build_vtk_bundle/node_modules/@babel/compat-data/data/overlapping-plugins.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "transform-async-to-generator": [ - "bugfix/transform-async-arrows-in-class" - ], - "transform-parameters": [ - "bugfix/transform-edge-default-parameters", - "bugfix/transform-safari-id-destructuring-collision-in-function-expression" - ], - "transform-function-name": [ - "bugfix/transform-edge-function-name" - ], - "transform-block-scoping": [ - "bugfix/transform-safari-block-shadowing", - "bugfix/transform-safari-for-shadowing" - ], - "transform-template-literals": [ - "bugfix/transform-tagged-template-caching" - ], - "transform-optional-chaining": [ - "bugfix/transform-v8-spread-parameters-in-optional-chaining" - ], - "proposal-optional-chaining": [ - "bugfix/transform-v8-spread-parameters-in-optional-chaining" - ], - "transform-class-properties": [ - "bugfix/transform-v8-static-class-fields-redefine-readonly", - "bugfix/transform-firefox-class-in-computed-class-key", - "bugfix/transform-safari-class-field-initializer-scope" - ], - "proposal-class-properties": [ - "bugfix/transform-v8-static-class-fields-redefine-readonly", - "bugfix/transform-firefox-class-in-computed-class-key", - "bugfix/transform-safari-class-field-initializer-scope" - ] -} diff --git a/build_vtk_bundle/node_modules/@babel/compat-data/data/plugin-bugfixes.json b/build_vtk_bundle/node_modules/@babel/compat-data/data/plugin-bugfixes.json deleted file mode 100644 index 3d1aed6e..00000000 --- a/build_vtk_bundle/node_modules/@babel/compat-data/data/plugin-bugfixes.json +++ /dev/null @@ -1,203 +0,0 @@ -{ - "bugfix/transform-async-arrows-in-class": { - "chrome": "55", - "opera": "42", - "edge": "15", - "firefox": "52", - "safari": "11", - "node": "7.6", - "deno": "1", - "ios": "11", - "samsung": "6", - "opera_mobile": "42", - "electron": "1.6" - }, - "bugfix/transform-edge-default-parameters": { - "chrome": "49", - "opera": "36", - "edge": "18", - "firefox": "52", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "36", - "electron": "0.37" - }, - "bugfix/transform-edge-function-name": { - "chrome": "51", - "opera": "38", - "edge": "79", - "firefox": "53", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "bugfix/transform-safari-block-shadowing": { - "chrome": "49", - "opera": "36", - "edge": "12", - "firefox": "44", - "safari": "11", - "node": "6", - "deno": "1", - "ie": "11", - "ios": "11", - "samsung": "5", - "opera_mobile": "36", - "electron": "0.37" - }, - "bugfix/transform-safari-for-shadowing": { - "chrome": "49", - "opera": "36", - "edge": "12", - "firefox": "4", - "safari": "11", - "node": "6", - "deno": "1", - "ie": "11", - "ios": "11", - "samsung": "5", - "rhino": "1.7.13", - "opera_mobile": "36", - "electron": "0.37" - }, - "bugfix/transform-safari-id-destructuring-collision-in-function-expression": { - "chrome": "49", - "opera": "36", - "edge": "14", - "firefox": "2", - "safari": "16.3", - "node": "6", - "deno": "1", - "ios": "16.3", - "samsung": "5", - "opera_mobile": "36", - "electron": "0.37" - }, - "bugfix/transform-tagged-template-caching": { - "chrome": "41", - "opera": "28", - "edge": "12", - "firefox": "34", - "safari": "13", - "node": "4", - "deno": "1", - "ios": "13", - "samsung": "3.4", - "rhino": "1.7.14", - "opera_mobile": "28", - "electron": "0.21" - }, - "bugfix/transform-v8-spread-parameters-in-optional-chaining": { - "chrome": "91", - "opera": "77", - "edge": "91", - "firefox": "74", - "safari": "13.1", - "node": "16.9", - "deno": "1.9", - "ios": "13.4", - "samsung": "16", - "opera_mobile": "64", - "electron": "13.0" - }, - "transform-optional-chaining": { - "chrome": "80", - "opera": "67", - "edge": "80", - "firefox": "74", - "safari": "13.1", - "node": "14", - "deno": "1", - "ios": "13.4", - "samsung": "13", - "rhino": "1.8", - "opera_mobile": "57", - "electron": "8.0" - }, - "proposal-optional-chaining": { - "chrome": "80", - "opera": "67", - "edge": "80", - "firefox": "74", - "safari": "13.1", - "node": "14", - "deno": "1", - "ios": "13.4", - "samsung": "13", - "rhino": "1.8", - "opera_mobile": "57", - "electron": "8.0" - }, - "transform-parameters": { - "chrome": "49", - "opera": "36", - "edge": "15", - "firefox": "52", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "36", - "electron": "0.37" - }, - "transform-async-to-generator": { - "chrome": "55", - "opera": "42", - "edge": "15", - "firefox": "52", - "safari": "10.1", - "node": "7.6", - "deno": "1", - "ios": "10.3", - "samsung": "6", - "opera_mobile": "42", - "electron": "1.6" - }, - "transform-template-literals": { - "chrome": "41", - "opera": "28", - "edge": "13", - "firefox": "34", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "3.4", - "opera_mobile": "28", - "electron": "0.21" - }, - "transform-function-name": { - "chrome": "51", - "opera": "38", - "edge": "14", - "firefox": "53", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "transform-block-scoping": { - "chrome": "50", - "opera": "37", - "edge": "14", - "firefox": "53", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "37", - "electron": "1.1" - } -} diff --git a/build_vtk_bundle/node_modules/@babel/compat-data/data/plugins.json b/build_vtk_bundle/node_modules/@babel/compat-data/data/plugins.json deleted file mode 100644 index c2ff4592..00000000 --- a/build_vtk_bundle/node_modules/@babel/compat-data/data/plugins.json +++ /dev/null @@ -1,838 +0,0 @@ -{ - "transform-explicit-resource-management": { - "chrome": "134", - "edge": "134", - "firefox": "141", - "node": "24", - "electron": "35.0" - }, - "transform-duplicate-named-capturing-groups-regex": { - "chrome": "126", - "opera": "112", - "edge": "126", - "firefox": "129", - "safari": "17.4", - "node": "23", - "ios": "17.4", - "electron": "31.0" - }, - "transform-regexp-modifiers": { - "chrome": "125", - "opera": "111", - "edge": "125", - "firefox": "132", - "node": "23", - "samsung": "27", - "electron": "31.0" - }, - "transform-unicode-sets-regex": { - "chrome": "112", - "opera": "98", - "edge": "112", - "firefox": "116", - "safari": "17", - "node": "20", - "deno": "1.32", - "ios": "17", - "samsung": "23", - "opera_mobile": "75", - "electron": "24.0" - }, - "bugfix/transform-v8-static-class-fields-redefine-readonly": { - "chrome": "98", - "opera": "84", - "edge": "98", - "firefox": "75", - "safari": "15", - "node": "12", - "deno": "1.18", - "ios": "15", - "samsung": "11", - "opera_mobile": "52", - "electron": "17.0" - }, - "bugfix/transform-firefox-class-in-computed-class-key": { - "chrome": "74", - "opera": "62", - "edge": "79", - "firefox": "126", - "safari": "16", - "node": "12", - "deno": "1", - "ios": "16", - "samsung": "11", - "opera_mobile": "53", - "electron": "6.0" - }, - "bugfix/transform-safari-class-field-initializer-scope": { - "chrome": "74", - "opera": "62", - "edge": "79", - "firefox": "69", - "safari": "16", - "node": "12", - "deno": "1", - "ios": "16", - "samsung": "11", - "opera_mobile": "53", - "electron": "6.0" - }, - "transform-class-static-block": { - "chrome": "94", - "opera": "80", - "edge": "94", - "firefox": "93", - "safari": "16.4", - "node": "16.11", - "deno": "1.14", - "ios": "16.4", - "samsung": "17", - "opera_mobile": "66", - "electron": "15.0" - }, - "proposal-class-static-block": { - "chrome": "94", - "opera": "80", - "edge": "94", - "firefox": "93", - "safari": "16.4", - "node": "16.11", - "deno": "1.14", - "ios": "16.4", - "samsung": "17", - "opera_mobile": "66", - "electron": "15.0" - }, - "transform-private-property-in-object": { - "chrome": "91", - "opera": "77", - "edge": "91", - "firefox": "90", - "safari": "15", - "node": "16.9", - "deno": "1.9", - "ios": "15", - "samsung": "16", - "opera_mobile": "64", - "electron": "13.0" - }, - "proposal-private-property-in-object": { - "chrome": "91", - "opera": "77", - "edge": "91", - "firefox": "90", - "safari": "15", - "node": "16.9", - "deno": "1.9", - "ios": "15", - "samsung": "16", - "opera_mobile": "64", - "electron": "13.0" - }, - "transform-class-properties": { - "chrome": "74", - "opera": "62", - "edge": "79", - "firefox": "90", - "safari": "14.1", - "node": "12", - "deno": "1", - "ios": "14.5", - "samsung": "11", - "opera_mobile": "53", - "electron": "6.0" - }, - "proposal-class-properties": { - "chrome": "74", - "opera": "62", - "edge": "79", - "firefox": "90", - "safari": "14.1", - "node": "12", - "deno": "1", - "ios": "14.5", - "samsung": "11", - "opera_mobile": "53", - "electron": "6.0" - }, - "transform-private-methods": { - "chrome": "84", - "opera": "70", - "edge": "84", - "firefox": "90", - "safari": "15", - "node": "14.6", - "deno": "1", - "ios": "15", - "samsung": "14", - "opera_mobile": "60", - "electron": "10.0" - }, - "proposal-private-methods": { - "chrome": "84", - "opera": "70", - "edge": "84", - "firefox": "90", - "safari": "15", - "node": "14.6", - "deno": "1", - "ios": "15", - "samsung": "14", - "opera_mobile": "60", - "electron": "10.0" - }, - "transform-numeric-separator": { - "chrome": "75", - "opera": "62", - "edge": "79", - "firefox": "70", - "safari": "13", - "node": "12.5", - "deno": "1", - "ios": "13", - "samsung": "11", - "rhino": "1.7.14", - "opera_mobile": "54", - "electron": "6.0" - }, - "proposal-numeric-separator": { - "chrome": "75", - "opera": "62", - "edge": "79", - "firefox": "70", - "safari": "13", - "node": "12.5", - "deno": "1", - "ios": "13", - "samsung": "11", - "rhino": "1.7.14", - "opera_mobile": "54", - "electron": "6.0" - }, - "transform-logical-assignment-operators": { - "chrome": "85", - "opera": "71", - "edge": "85", - "firefox": "79", - "safari": "14", - "node": "15", - "deno": "1.2", - "ios": "14", - "samsung": "14", - "opera_mobile": "60", - "electron": "10.0" - }, - "proposal-logical-assignment-operators": { - "chrome": "85", - "opera": "71", - "edge": "85", - "firefox": "79", - "safari": "14", - "node": "15", - "deno": "1.2", - "ios": "14", - "samsung": "14", - "opera_mobile": "60", - "electron": "10.0" - }, - "transform-nullish-coalescing-operator": { - "chrome": "80", - "opera": "67", - "edge": "80", - "firefox": "72", - "safari": "13.1", - "node": "14", - "deno": "1", - "ios": "13.4", - "samsung": "13", - "rhino": "1.8", - "opera_mobile": "57", - "electron": "8.0" - }, - "proposal-nullish-coalescing-operator": { - "chrome": "80", - "opera": "67", - "edge": "80", - "firefox": "72", - "safari": "13.1", - "node": "14", - "deno": "1", - "ios": "13.4", - "samsung": "13", - "rhino": "1.8", - "opera_mobile": "57", - "electron": "8.0" - }, - "transform-optional-chaining": { - "chrome": "91", - "opera": "77", - "edge": "91", - "firefox": "74", - "safari": "13.1", - "node": "16.9", - "deno": "1.9", - "ios": "13.4", - "samsung": "16", - "opera_mobile": "64", - "electron": "13.0" - }, - "proposal-optional-chaining": { - "chrome": "91", - "opera": "77", - "edge": "91", - "firefox": "74", - "safari": "13.1", - "node": "16.9", - "deno": "1.9", - "ios": "13.4", - "samsung": "16", - "opera_mobile": "64", - "electron": "13.0" - }, - "transform-json-strings": { - "chrome": "66", - "opera": "53", - "edge": "79", - "firefox": "62", - "safari": "12", - "node": "10", - "deno": "1", - "ios": "12", - "samsung": "9", - "rhino": "1.7.14", - "opera_mobile": "47", - "electron": "3.0" - }, - "proposal-json-strings": { - "chrome": "66", - "opera": "53", - "edge": "79", - "firefox": "62", - "safari": "12", - "node": "10", - "deno": "1", - "ios": "12", - "samsung": "9", - "rhino": "1.7.14", - "opera_mobile": "47", - "electron": "3.0" - }, - "transform-optional-catch-binding": { - "chrome": "66", - "opera": "53", - "edge": "79", - "firefox": "58", - "safari": "11.1", - "node": "10", - "deno": "1", - "ios": "11.3", - "samsung": "9", - "opera_mobile": "47", - "electron": "3.0" - }, - "proposal-optional-catch-binding": { - "chrome": "66", - "opera": "53", - "edge": "79", - "firefox": "58", - "safari": "11.1", - "node": "10", - "deno": "1", - "ios": "11.3", - "samsung": "9", - "opera_mobile": "47", - "electron": "3.0" - }, - "transform-parameters": { - "chrome": "49", - "opera": "36", - "edge": "18", - "firefox": "52", - "safari": "16.3", - "node": "6", - "deno": "1", - "ios": "16.3", - "samsung": "5", - "opera_mobile": "36", - "electron": "0.37" - }, - "transform-async-generator-functions": { - "chrome": "63", - "opera": "50", - "edge": "79", - "firefox": "57", - "safari": "12", - "node": "10", - "deno": "1", - "ios": "12", - "samsung": "8", - "opera_mobile": "46", - "electron": "3.0" - }, - "proposal-async-generator-functions": { - "chrome": "63", - "opera": "50", - "edge": "79", - "firefox": "57", - "safari": "12", - "node": "10", - "deno": "1", - "ios": "12", - "samsung": "8", - "opera_mobile": "46", - "electron": "3.0" - }, - "transform-object-rest-spread": { - "chrome": "60", - "opera": "47", - "edge": "79", - "firefox": "55", - "safari": "11.1", - "node": "8.3", - "deno": "1", - "ios": "11.3", - "samsung": "8", - "opera_mobile": "44", - "electron": "2.0" - }, - "proposal-object-rest-spread": { - "chrome": "60", - "opera": "47", - "edge": "79", - "firefox": "55", - "safari": "11.1", - "node": "8.3", - "deno": "1", - "ios": "11.3", - "samsung": "8", - "opera_mobile": "44", - "electron": "2.0" - }, - "transform-dotall-regex": { - "chrome": "62", - "opera": "49", - "edge": "79", - "firefox": "78", - "safari": "11.1", - "node": "8.10", - "deno": "1", - "ios": "11.3", - "samsung": "8", - "rhino": "1.7.15", - "opera_mobile": "46", - "electron": "3.0" - }, - "transform-unicode-property-regex": { - "chrome": "64", - "opera": "51", - "edge": "79", - "firefox": "78", - "safari": "11.1", - "node": "10", - "deno": "1", - "ios": "11.3", - "samsung": "9", - "opera_mobile": "47", - "electron": "3.0" - }, - "proposal-unicode-property-regex": { - "chrome": "64", - "opera": "51", - "edge": "79", - "firefox": "78", - "safari": "11.1", - "node": "10", - "deno": "1", - "ios": "11.3", - "samsung": "9", - "opera_mobile": "47", - "electron": "3.0" - }, - "transform-named-capturing-groups-regex": { - "chrome": "64", - "opera": "51", - "edge": "79", - "firefox": "78", - "safari": "11.1", - "node": "10", - "deno": "1", - "ios": "11.3", - "samsung": "9", - "opera_mobile": "47", - "electron": "3.0" - }, - "transform-async-to-generator": { - "chrome": "55", - "opera": "42", - "edge": "15", - "firefox": "52", - "safari": "11", - "node": "7.6", - "deno": "1", - "ios": "11", - "samsung": "6", - "opera_mobile": "42", - "electron": "1.6" - }, - "transform-exponentiation-operator": { - "chrome": "52", - "opera": "39", - "edge": "14", - "firefox": "52", - "safari": "10.1", - "node": "7", - "deno": "1", - "ios": "10.3", - "samsung": "6", - "rhino": "1.7.14", - "opera_mobile": "41", - "electron": "1.3" - }, - "transform-template-literals": { - "chrome": "41", - "opera": "28", - "edge": "13", - "firefox": "34", - "safari": "13", - "node": "4", - "deno": "1", - "ios": "13", - "samsung": "3.4", - "opera_mobile": "28", - "electron": "0.21" - }, - "transform-literals": { - "chrome": "44", - "opera": "31", - "edge": "12", - "firefox": "53", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "4", - "rhino": "1.7.15", - "opera_mobile": "32", - "electron": "0.30" - }, - "transform-function-name": { - "chrome": "51", - "opera": "38", - "edge": "79", - "firefox": "53", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "transform-arrow-functions": { - "chrome": "47", - "opera": "34", - "edge": "13", - "firefox": "43", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.7.13", - "opera_mobile": "34", - "electron": "0.36" - }, - "transform-block-scoped-functions": { - "chrome": "41", - "opera": "28", - "edge": "12", - "firefox": "46", - "safari": "10", - "node": "4", - "deno": "1", - "ie": "11", - "ios": "10", - "samsung": "3.4", - "opera_mobile": "28", - "electron": "0.21" - }, - "transform-classes": { - "chrome": "46", - "opera": "33", - "edge": "13", - "firefox": "45", - "safari": "10", - "node": "5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "33", - "electron": "0.36" - }, - "transform-object-super": { - "chrome": "46", - "opera": "33", - "edge": "13", - "firefox": "45", - "safari": "10", - "node": "5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "33", - "electron": "0.36" - }, - "transform-shorthand-properties": { - "chrome": "43", - "opera": "30", - "edge": "12", - "firefox": "33", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "4", - "rhino": "1.7.14", - "opera_mobile": "30", - "electron": "0.27" - }, - "transform-duplicate-keys": { - "chrome": "42", - "opera": "29", - "edge": "12", - "firefox": "34", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "3.4", - "opera_mobile": "29", - "electron": "0.25" - }, - "transform-computed-properties": { - "chrome": "44", - "opera": "31", - "edge": "12", - "firefox": "34", - "safari": "7.1", - "node": "4", - "deno": "1", - "ios": "8", - "samsung": "4", - "rhino": "1.8", - "opera_mobile": "32", - "electron": "0.30" - }, - "transform-for-of": { - "chrome": "51", - "opera": "38", - "edge": "15", - "firefox": "53", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "transform-sticky-regex": { - "chrome": "49", - "opera": "36", - "edge": "13", - "firefox": "3", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "rhino": "1.7.15", - "opera_mobile": "36", - "electron": "0.37" - }, - "transform-unicode-escapes": { - "chrome": "44", - "opera": "31", - "edge": "12", - "firefox": "53", - "safari": "9", - "node": "4", - "deno": "1", - "ios": "9", - "samsung": "4", - "rhino": "1.7.15", - "opera_mobile": "32", - "electron": "0.30" - }, - "transform-unicode-regex": { - "chrome": "50", - "opera": "37", - "edge": "13", - "firefox": "46", - "safari": "12", - "node": "6", - "deno": "1", - "ios": "12", - "samsung": "5", - "opera_mobile": "37", - "electron": "1.1" - }, - "transform-spread": { - "chrome": "46", - "opera": "33", - "edge": "13", - "firefox": "45", - "safari": "10", - "node": "5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "33", - "electron": "0.36" - }, - "transform-destructuring": { - "chrome": "51", - "opera": "38", - "edge": "15", - "firefox": "53", - "safari": "10", - "node": "6.5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "41", - "electron": "1.2" - }, - "transform-block-scoping": { - "chrome": "50", - "opera": "37", - "edge": "14", - "firefox": "53", - "safari": "11", - "node": "6", - "deno": "1", - "ios": "11", - "samsung": "5", - "opera_mobile": "37", - "electron": "1.1" - }, - "transform-typeof-symbol": { - "chrome": "48", - "opera": "35", - "edge": "12", - "firefox": "36", - "safari": "9", - "node": "6", - "deno": "1", - "ios": "9", - "samsung": "5", - "rhino": "1.8", - "opera_mobile": "35", - "electron": "0.37" - }, - "transform-new-target": { - "chrome": "46", - "opera": "33", - "edge": "14", - "firefox": "41", - "safari": "10", - "node": "5", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "33", - "electron": "0.36" - }, - "transform-regenerator": { - "chrome": "50", - "opera": "37", - "edge": "13", - "firefox": "53", - "safari": "10", - "node": "6", - "deno": "1", - "ios": "10", - "samsung": "5", - "opera_mobile": "37", - "electron": "1.1" - }, - "transform-member-expression-literals": { - "chrome": "7", - "opera": "12", - "edge": "12", - "firefox": "2", - "safari": "5.1", - "node": "0.4", - "deno": "1", - "ie": "9", - "android": "4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "12", - "electron": "0.20" - }, - "transform-property-literals": { - "chrome": "7", - "opera": "12", - "edge": "12", - "firefox": "2", - "safari": "5.1", - "node": "0.4", - "deno": "1", - "ie": "9", - "android": "4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "12", - "electron": "0.20" - }, - "transform-reserved-words": { - "chrome": "13", - "opera": "10.50", - "edge": "12", - "firefox": "2", - "safari": "3.1", - "node": "0.6", - "deno": "1", - "ie": "9", - "android": "4.4", - "ios": "6", - "phantom": "1.9", - "samsung": "1", - "rhino": "1.7.13", - "opera_mobile": "10.1", - "electron": "0.20" - }, - "transform-export-namespace-from": { - "chrome": "72", - "deno": "1.0", - "edge": "79", - "firefox": "80", - "node": "13.2.0", - "opera": "60", - "opera_mobile": "51", - "safari": "14.1", - "ios": "14.5", - "samsung": "11.0", - "android": "72", - "electron": "5.0" - }, - "proposal-export-namespace-from": { - "chrome": "72", - "deno": "1.0", - "edge": "79", - "firefox": "80", - "node": "13.2.0", - "opera": "60", - "opera_mobile": "51", - "safari": "14.1", - "ios": "14.5", - "samsung": "11.0", - "android": "72", - "electron": "5.0" - } -} diff --git a/build_vtk_bundle/node_modules/@babel/compat-data/native-modules.js b/build_vtk_bundle/node_modules/@babel/compat-data/native-modules.js deleted file mode 100644 index f8c25fa3..00000000 --- a/build_vtk_bundle/node_modules/@babel/compat-data/native-modules.js +++ /dev/null @@ -1,2 +0,0 @@ -// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly -module.exports = require("./data/native-modules.json"); diff --git a/build_vtk_bundle/node_modules/@babel/compat-data/overlapping-plugins.js b/build_vtk_bundle/node_modules/@babel/compat-data/overlapping-plugins.js deleted file mode 100644 index 0dd35f15..00000000 --- a/build_vtk_bundle/node_modules/@babel/compat-data/overlapping-plugins.js +++ /dev/null @@ -1,2 +0,0 @@ -// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly -module.exports = require("./data/overlapping-plugins.json"); diff --git a/build_vtk_bundle/node_modules/@babel/compat-data/package.json b/build_vtk_bundle/node_modules/@babel/compat-data/package.json deleted file mode 100644 index d3a7bc0d..00000000 --- a/build_vtk_bundle/node_modules/@babel/compat-data/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "@babel/compat-data", - "version": "7.28.5", - "author": "The Babel Team (https://babel.dev/team)", - "license": "MIT", - "description": "The compat-data to determine required Babel plugins", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-compat-data" - }, - "publishConfig": { - "access": "public" - }, - "exports": { - "./plugins": "./plugins.js", - "./native-modules": "./native-modules.js", - "./corejs2-built-ins": "./corejs2-built-ins.js", - "./corejs3-shipped-proposals": "./corejs3-shipped-proposals.js", - "./overlapping-plugins": "./overlapping-plugins.js", - "./plugin-bugfixes": "./plugin-bugfixes.js" - }, - "scripts": { - "build-data": "./scripts/download-compat-table.sh && node ./scripts/build-data.mjs && node ./scripts/build-modules-support.mjs && node ./scripts/build-bugfixes-targets.mjs" - }, - "keywords": [ - "babel", - "compat-table", - "compat-data" - ], - "devDependencies": { - "@mdn/browser-compat-data": "^6.0.8", - "core-js-compat": "^3.43.0", - "electron-to-chromium": "^1.5.140" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/compat-data/plugin-bugfixes.js b/build_vtk_bundle/node_modules/@babel/compat-data/plugin-bugfixes.js deleted file mode 100644 index 9aaf3641..00000000 --- a/build_vtk_bundle/node_modules/@babel/compat-data/plugin-bugfixes.js +++ /dev/null @@ -1,2 +0,0 @@ -// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly -module.exports = require("./data/plugin-bugfixes.json"); diff --git a/build_vtk_bundle/node_modules/@babel/compat-data/plugins.js b/build_vtk_bundle/node_modules/@babel/compat-data/plugins.js deleted file mode 100644 index b191017b..00000000 --- a/build_vtk_bundle/node_modules/@babel/compat-data/plugins.js +++ /dev/null @@ -1,2 +0,0 @@ -// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly -module.exports = require("./data/plugins.json"); diff --git a/build_vtk_bundle/node_modules/@babel/core/LICENSE b/build_vtk_bundle/node_modules/@babel/core/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/core/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/core/README.md b/build_vtk_bundle/node_modules/@babel/core/README.md deleted file mode 100644 index 29035434..00000000 --- a/build_vtk_bundle/node_modules/@babel/core/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/core - -> Babel compiler core. - -See our website [@babel/core](https://babeljs.io/docs/babel-core) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20core%22+is%3Aopen) associated with this package. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/core -``` - -or using yarn: - -```sh -yarn add @babel/core --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/core/package.json b/build_vtk_bundle/node_modules/@babel/core/package.json deleted file mode 100644 index 3aed75d6..00000000 --- a/build_vtk_bundle/node_modules/@babel/core/package.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "name": "@babel/core", - "version": "7.28.5", - "description": "Babel compiler core.", - "main": "./lib/index.js", - "author": "The Babel Team (https://babel.dev/team)", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-core" - }, - "homepage": "https://babel.dev/docs/en/next/babel-core", - "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20core%22+is%3Aopen", - "keywords": [ - "6to5", - "babel", - "classes", - "const", - "es6", - "harmony", - "let", - "modules", - "transpile", - "transpiler", - "var", - "babel-core", - "compiler" - ], - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - }, - "browser": { - "./lib/config/files/index.js": "./lib/config/files/index-browser.js", - "./lib/config/resolve-targets.js": "./lib/config/resolve-targets-browser.js", - "./lib/transform-file.js": "./lib/transform-file-browser.js", - "./src/config/files/index.ts": "./src/config/files/index-browser.ts", - "./src/config/resolve-targets.ts": "./src/config/resolve-targets-browser.ts", - "./src/transform-file.ts": "./src/transform-file-browser.ts" - }, - "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.28.5", - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-module-transforms": "^7.28.3", - "@babel/helpers": "^7.28.4", - "@babel/parser": "^7.28.5", - "@babel/template": "^7.27.2", - "@babel/traverse": "^7.28.5", - "@babel/types": "^7.28.5", - "@jridgewell/remapping": "^2.3.5", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "devDependencies": { - "@babel/helper-transform-fixture-test-runner": "^7.28.5", - "@babel/plugin-syntax-flow": "^7.27.1", - "@babel/plugin-transform-flow-strip-types": "^7.27.1", - "@babel/plugin-transform-modules-commonjs": "^7.27.1", - "@babel/preset-env": "^7.28.5", - "@babel/preset-typescript": "^7.28.5", - "@jridgewell/trace-mapping": "^0.3.28", - "@types/convert-source-map": "^2.0.0", - "@types/debug": "^4.1.0", - "@types/resolve": "^1.3.2", - "@types/semver": "^5.4.0", - "rimraf": "^3.0.0", - "ts-node": "^11.0.0-beta.1", - "tsx": "^4.20.3" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/core/src/config/files/index-browser.ts b/build_vtk_bundle/node_modules/@babel/core/src/config/files/index-browser.ts deleted file mode 100644 index 435c0684..00000000 --- a/build_vtk_bundle/node_modules/@babel/core/src/config/files/index-browser.ts +++ /dev/null @@ -1,115 +0,0 @@ -/* c8 ignore start */ - -import type { Handler } from "gensync"; - -import type { - ConfigFile, - IgnoreFile, - RelativeConfig, - FilePackageData, -} from "./types.ts"; - -import type { CallerMetadata } from "../validation/options.ts"; - -export type { ConfigFile, IgnoreFile, RelativeConfig, FilePackageData }; - -export function findConfigUpwards( - // eslint-disable-next-line @typescript-eslint/no-unused-vars - rootDir: string, -): string | null { - return null; -} - -// eslint-disable-next-line require-yield -export function* findPackageData(filepath: string): Handler { - return { - filepath, - directories: [], - pkg: null, - isPackage: false, - }; -} - -// eslint-disable-next-line require-yield -export function* findRelativeConfig( - // eslint-disable-next-line @typescript-eslint/no-unused-vars - pkgData: FilePackageData, - // eslint-disable-next-line @typescript-eslint/no-unused-vars - envName: string, - // eslint-disable-next-line @typescript-eslint/no-unused-vars - caller: CallerMetadata | undefined, -): Handler { - return { config: null, ignore: null }; -} - -// eslint-disable-next-line require-yield -export function* findRootConfig( - // eslint-disable-next-line @typescript-eslint/no-unused-vars - dirname: string, - // eslint-disable-next-line @typescript-eslint/no-unused-vars - envName: string, - // eslint-disable-next-line @typescript-eslint/no-unused-vars - caller: CallerMetadata | undefined, -): Handler { - return null; -} - -// eslint-disable-next-line require-yield -export function* loadConfig( - name: string, - dirname: string, - // eslint-disable-next-line @typescript-eslint/no-unused-vars - envName: string, - // eslint-disable-next-line @typescript-eslint/no-unused-vars - caller: CallerMetadata | undefined, -): Handler { - throw new Error(`Cannot load ${name} relative to ${dirname} in a browser`); -} - -// eslint-disable-next-line require-yield -export function* resolveShowConfigPath( - // eslint-disable-next-line @typescript-eslint/no-unused-vars - dirname: string, -): Handler { - return null; -} - -export const ROOT_CONFIG_FILENAMES: string[] = []; - -type Resolved = - | { loader: "require"; filepath: string } - | { loader: "import"; filepath: string }; - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export function resolvePlugin(name: string, dirname: string): Resolved | null { - return null; -} - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export function resolvePreset(name: string, dirname: string): Resolved | null { - return null; -} - -export function loadPlugin( - name: string, - dirname: string, -): Handler<{ - filepath: string; - value: unknown; -}> { - throw new Error( - `Cannot load plugin ${name} relative to ${dirname} in a browser`, - ); -} - -export function loadPreset( - name: string, - dirname: string, -): Handler<{ - filepath: string; - value: unknown; -}> { - throw new Error( - `Cannot load preset ${name} relative to ${dirname} in a browser`, - ); -} diff --git a/build_vtk_bundle/node_modules/@babel/core/src/config/files/index.ts b/build_vtk_bundle/node_modules/@babel/core/src/config/files/index.ts deleted file mode 100644 index b138e8da..00000000 --- a/build_vtk_bundle/node_modules/@babel/core/src/config/files/index.ts +++ /dev/null @@ -1,29 +0,0 @@ -type indexBrowserType = typeof import("./index-browser"); -type indexType = typeof import("./index"); - -// Kind of gross, but essentially asserting that the exports of this module are the same as the -// exports of index-browser, since this file may be replaced at bundle time with index-browser. -({}) as any as indexBrowserType as indexType; - -export { findPackageData } from "./package.ts"; - -export { - findConfigUpwards, - findRelativeConfig, - findRootConfig, - loadConfig, - resolveShowConfigPath, - ROOT_CONFIG_FILENAMES, -} from "./configuration.ts"; -export type { - ConfigFile, - IgnoreFile, - RelativeConfig, - FilePackageData, -} from "./types.ts"; -export { - loadPlugin, - loadPreset, - resolvePlugin, - resolvePreset, -} from "./plugins.ts"; diff --git a/build_vtk_bundle/node_modules/@babel/core/src/config/resolve-targets-browser.ts b/build_vtk_bundle/node_modules/@babel/core/src/config/resolve-targets-browser.ts deleted file mode 100644 index 89e4194a..00000000 --- a/build_vtk_bundle/node_modules/@babel/core/src/config/resolve-targets-browser.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* c8 ignore start */ - -import type { InputOptions } from "./validation/options.ts"; -import getTargets, { - type InputTargets, -} from "@babel/helper-compilation-targets"; - -import type { Targets } from "@babel/helper-compilation-targets"; - -export function resolveBrowserslistConfigFile( - // eslint-disable-next-line @typescript-eslint/no-unused-vars - browserslistConfigFile: string, - // eslint-disable-next-line @typescript-eslint/no-unused-vars - configFilePath: string, -): string | void { - return undefined; -} - -export function resolveTargets( - options: InputOptions, - // eslint-disable-next-line @typescript-eslint/no-unused-vars - root: string, -): Targets { - const optTargets = options.targets; - let targets: InputTargets; - - if (typeof optTargets === "string" || Array.isArray(optTargets)) { - targets = { browsers: optTargets }; - } else if (optTargets) { - if ("esmodules" in optTargets) { - targets = { ...optTargets, esmodules: "intersect" }; - } else { - // https://github.com/microsoft/TypeScript/issues/17002 - targets = optTargets as InputTargets; - } - } - - return getTargets(targets, { - ignoreBrowserslistConfig: true, - browserslistEnv: options.browserslistEnv, - }); -} diff --git a/build_vtk_bundle/node_modules/@babel/core/src/config/resolve-targets.ts b/build_vtk_bundle/node_modules/@babel/core/src/config/resolve-targets.ts deleted file mode 100644 index d2996fd0..00000000 --- a/build_vtk_bundle/node_modules/@babel/core/src/config/resolve-targets.ts +++ /dev/null @@ -1,53 +0,0 @@ -type browserType = typeof import("./resolve-targets-browser"); -type nodeType = typeof import("./resolve-targets"); - -// Kind of gross, but essentially asserting that the exports of this module are the same as the -// exports of index-browser, since this file may be replaced at bundle time with index-browser. -({}) as any as browserType as nodeType; - -import type { InputOptions } from "./validation/options.ts"; -import path from "node:path"; -import getTargets, { - type InputTargets, -} from "@babel/helper-compilation-targets"; - -import type { Targets } from "@babel/helper-compilation-targets"; - -export function resolveBrowserslistConfigFile( - browserslistConfigFile: string, - configFileDir: string, -): string | undefined { - return path.resolve(configFileDir, browserslistConfigFile); -} - -export function resolveTargets(options: InputOptions, root: string): Targets { - const optTargets = options.targets; - let targets: InputTargets; - - if (typeof optTargets === "string" || Array.isArray(optTargets)) { - targets = { browsers: optTargets }; - } else if (optTargets) { - if ("esmodules" in optTargets) { - targets = { ...optTargets, esmodules: "intersect" }; - } else { - // https://github.com/microsoft/TypeScript/issues/17002 - targets = optTargets as InputTargets; - } - } - - const { browserslistConfigFile } = options; - let configFile; - let ignoreBrowserslistConfig = false; - if (typeof browserslistConfigFile === "string") { - configFile = browserslistConfigFile; - } else { - ignoreBrowserslistConfig = browserslistConfigFile === false; - } - - return getTargets(targets, { - ignoreBrowserslistConfig, - configFile, - configPath: root, - browserslistEnv: options.browserslistEnv, - }); -} diff --git a/build_vtk_bundle/node_modules/@babel/core/src/transform-file-browser.ts b/build_vtk_bundle/node_modules/@babel/core/src/transform-file-browser.ts deleted file mode 100644 index 0a15ca5e..00000000 --- a/build_vtk_bundle/node_modules/@babel/core/src/transform-file-browser.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* c8 ignore start */ - -// duplicated from transform-file so we do not have to import anything here -type TransformFile = { - (filename: string, callback: (error: Error, file: null) => void): void; - ( - filename: string, - opts: any, - callback: (error: Error, file: null) => void, - ): void; -}; - -export const transformFile: TransformFile = function transformFile( - filename, - opts, - callback?: (error: Error, file: null) => void, -) { - if (typeof opts === "function") { - callback = opts; - } - - callback(new Error("Transforming files is not supported in browsers"), null); -}; - -export function transformFileSync(): never { - throw new Error("Transforming files is not supported in browsers"); -} - -export function transformFileAsync() { - return Promise.reject( - new Error("Transforming files is not supported in browsers"), - ); -} diff --git a/build_vtk_bundle/node_modules/@babel/core/src/transform-file.ts b/build_vtk_bundle/node_modules/@babel/core/src/transform-file.ts deleted file mode 100644 index 6bc2f836..00000000 --- a/build_vtk_bundle/node_modules/@babel/core/src/transform-file.ts +++ /dev/null @@ -1,55 +0,0 @@ -import gensync, { type Handler } from "gensync"; - -import loadConfig from "./config/index.ts"; -import type { InputOptions, ResolvedConfig } from "./config/index.ts"; -import { run } from "./transformation/index.ts"; -import type { FileResult, FileResultCallback } from "./transformation/index.ts"; -import * as fs from "./gensync-utils/fs.ts"; - -type transformFileBrowserType = typeof import("./transform-file-browser"); -type transformFileType = typeof import("./transform-file"); - -// Kind of gross, but essentially asserting that the exports of this module are the same as the -// exports of transform-file-browser, since this file may be replaced at bundle time with -// transform-file-browser. -({}) as any as transformFileBrowserType as transformFileType; - -const transformFileRunner = gensync(function* ( - filename: string, - opts?: InputOptions, -): Handler { - const options = { ...opts, filename }; - - const config: ResolvedConfig | null = yield* loadConfig(options); - if (config === null) return null; - - const code = yield* fs.readFile(filename, "utf8"); - return yield* run(config, code); -}); - -// @ts-expect-error TS doesn't detect that this signature is compatible -export function transformFile( - filename: string, - callback: FileResultCallback, -): void; -export function transformFile( - filename: string, - opts: InputOptions | undefined | null, - callback: FileResultCallback, -): void; -export function transformFile( - ...args: Parameters -) { - transformFileRunner.errback(...args); -} - -export function transformFileSync( - ...args: Parameters -) { - return transformFileRunner.sync(...args); -} -export function transformFileAsync( - ...args: Parameters -) { - return transformFileRunner.async(...args); -} diff --git a/build_vtk_bundle/node_modules/@babel/generator/LICENSE b/build_vtk_bundle/node_modules/@babel/generator/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/generator/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/generator/README.md b/build_vtk_bundle/node_modules/@babel/generator/README.md deleted file mode 100644 index d56149a8..00000000 --- a/build_vtk_bundle/node_modules/@babel/generator/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/generator - -> Turns an AST into code. - -See our website [@babel/generator](https://babeljs.io/docs/babel-generator) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20generator%22+is%3Aopen) associated with this package. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/generator -``` - -or using yarn: - -```sh -yarn add @babel/generator --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/generator/package.json b/build_vtk_bundle/node_modules/@babel/generator/package.json deleted file mode 100644 index 245f62dd..00000000 --- a/build_vtk_bundle/node_modules/@babel/generator/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "@babel/generator", - "version": "7.28.5", - "description": "Turns an AST into code.", - "author": "The Babel Team (https://babel.dev/team)", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-generator" - }, - "homepage": "https://babel.dev/docs/en/next/babel-generator", - "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20generator%22+is%3Aopen", - "main": "./lib/index.js", - "files": [ - "lib" - ], - "dependencies": { - "@babel/parser": "^7.28.5", - "@babel/types": "^7.28.5", - "@jridgewell/gen-mapping": "^0.3.12", - "@jridgewell/trace-mapping": "^0.3.28", - "jsesc": "^3.0.2" - }, - "devDependencies": { - "@babel/core": "^7.28.5", - "@babel/helper-fixtures": "^7.28.0", - "@babel/plugin-transform-typescript": "^7.28.5", - "@jridgewell/sourcemap-codec": "^1.5.3", - "charcodes": "^0.2.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helper-annotate-as-pure/LICENSE b/build_vtk_bundle/node_modules/@babel/helper-annotate-as-pure/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-annotate-as-pure/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/helper-annotate-as-pure/README.md b/build_vtk_bundle/node_modules/@babel/helper-annotate-as-pure/README.md deleted file mode 100644 index 302144fb..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-annotate-as-pure/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/helper-annotate-as-pure - -> Helper function to annotate paths and nodes with #__PURE__ comment - -See our website [@babel/helper-annotate-as-pure](https://babeljs.io/docs/babel-helper-annotate-as-pure) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/helper-annotate-as-pure -``` - -or using yarn: - -```sh -yarn add @babel/helper-annotate-as-pure -``` diff --git a/build_vtk_bundle/node_modules/@babel/helper-annotate-as-pure/package.json b/build_vtk_bundle/node_modules/@babel/helper-annotate-as-pure/package.json deleted file mode 100644 index dcf35b28..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-annotate-as-pure/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "@babel/helper-annotate-as-pure", - "version": "7.27.3", - "description": "Helper function to annotate paths and nodes with #__PURE__ comment", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-helper-annotate-as-pure" - }, - "homepage": "https://babel.dev/docs/en/next/babel-helper-annotate-as-pure", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/types": "^7.27.3" - }, - "devDependencies": { - "@babel/traverse": "^7.27.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helper-compilation-targets/LICENSE b/build_vtk_bundle/node_modules/@babel/helper-compilation-targets/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-compilation-targets/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/helper-compilation-targets/README.md b/build_vtk_bundle/node_modules/@babel/helper-compilation-targets/README.md deleted file mode 100644 index cb563002..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-compilation-targets/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/helper-compilation-targets - -> Helper functions on Babel compilation targets - -See our website [@babel/helper-compilation-targets](https://babeljs.io/docs/babel-helper-compilation-targets) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/helper-compilation-targets -``` - -or using yarn: - -```sh -yarn add @babel/helper-compilation-targets -``` diff --git a/build_vtk_bundle/node_modules/@babel/helper-compilation-targets/package.json b/build_vtk_bundle/node_modules/@babel/helper-compilation-targets/package.json deleted file mode 100644 index 79c1e2bf..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-compilation-targets/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "@babel/helper-compilation-targets", - "version": "7.27.2", - "author": "The Babel Team (https://babel.dev/team)", - "license": "MIT", - "description": "Helper functions on Babel compilation targets", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-helper-compilation-targets" - }, - "main": "./lib/index.js", - "exports": { - ".": { - "types": "./lib/index.d.ts", - "default": "./lib/index.js" - }, - "./package.json": "./package.json" - }, - "publishConfig": { - "access": "public" - }, - "keywords": [ - "babel", - "babel-plugin" - ], - "dependencies": { - "@babel/compat-data": "^7.27.2", - "@babel/helper-validator-option": "^7.27.1", - "browserslist": "^4.24.0", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "devDependencies": { - "@babel/helper-plugin-test-runner": "^7.27.1", - "@types/lru-cache": "^5.1.1", - "@types/semver": "^5.5.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helper-create-class-features-plugin/LICENSE b/build_vtk_bundle/node_modules/@babel/helper-create-class-features-plugin/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-create-class-features-plugin/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/helper-create-class-features-plugin/README.md b/build_vtk_bundle/node_modules/@babel/helper-create-class-features-plugin/README.md deleted file mode 100644 index 12ecc65a..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-create-class-features-plugin/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/helper-create-class-features-plugin - -> Compile class public and private fields, private methods and decorators to ES6 - -See our website [@babel/helper-create-class-features-plugin](https://babeljs.io/docs/babel-helper-create-class-features-plugin) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/helper-create-class-features-plugin -``` - -or using yarn: - -```sh -yarn add @babel/helper-create-class-features-plugin -``` diff --git a/build_vtk_bundle/node_modules/@babel/helper-create-class-features-plugin/package.json b/build_vtk_bundle/node_modules/@babel/helper-create-class-features-plugin/package.json deleted file mode 100644 index e0ac27c4..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-create-class-features-plugin/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "@babel/helper-create-class-features-plugin", - "version": "7.28.5", - "author": "The Babel Team (https://babel.dev/team)", - "license": "MIT", - "description": "Compile class public and private fields, private methods and decorators to ES6", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-helper-create-class-features-plugin" - }, - "main": "./lib/index.js", - "publishConfig": { - "access": "public" - }, - "keywords": [ - "babel", - "babel-plugin" - ], - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.27.3", - "@babel/helper-member-expression-to-functions": "^7.28.5", - "@babel/helper-optimise-call-expression": "^7.27.1", - "@babel/helper-replace-supers": "^7.27.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", - "@babel/traverse": "^7.28.5", - "semver": "^6.3.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - }, - "devDependencies": { - "@babel/core": "^7.28.5", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/preset-env": "^7.28.5", - "@types/charcodes": "^0.2.0", - "charcodes": "^0.2.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helper-create-regexp-features-plugin/LICENSE b/build_vtk_bundle/node_modules/@babel/helper-create-regexp-features-plugin/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-create-regexp-features-plugin/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/helper-create-regexp-features-plugin/README.md b/build_vtk_bundle/node_modules/@babel/helper-create-regexp-features-plugin/README.md deleted file mode 100644 index e75d162a..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-create-regexp-features-plugin/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/helper-create-regexp-features-plugin - -> Compile ESNext Regular Expressions to ES5 - -See our website [@babel/helper-create-regexp-features-plugin](https://babeljs.io/docs/babel-helper-create-regexp-features-plugin) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/helper-create-regexp-features-plugin -``` - -or using yarn: - -```sh -yarn add @babel/helper-create-regexp-features-plugin -``` diff --git a/build_vtk_bundle/node_modules/@babel/helper-create-regexp-features-plugin/package.json b/build_vtk_bundle/node_modules/@babel/helper-create-regexp-features-plugin/package.json deleted file mode 100644 index b172ecab..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-create-regexp-features-plugin/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "@babel/helper-create-regexp-features-plugin", - "version": "7.28.5", - "author": "The Babel Team (https://babel.dev/team)", - "license": "MIT", - "description": "Compile ESNext Regular Expressions to ES5", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-helper-create-regexp-features-plugin" - }, - "main": "./lib/index.js", - "publishConfig": { - "access": "public" - }, - "keywords": [ - "babel", - "babel-plugin" - ], - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.27.3", - "regexpu-core": "^6.3.1", - "semver": "^6.3.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - }, - "devDependencies": { - "@babel/core": "^7.28.5", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/LICENSE b/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/LICENSE deleted file mode 100644 index b74971fe..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Nicolò Ribaudo and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/README.md b/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/README.md deleted file mode 100644 index 21989fca..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# @babel/helper-define-polyfill-provider - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/helper-define-polyfill-provider -``` - -or using yarn: - -```sh -yarn add @babel/helper-define-polyfill-provider --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/esm/index.browser.mjs b/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/esm/index.browser.mjs deleted file mode 100644 index b150385e..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/esm/index.browser.mjs +++ /dev/null @@ -1,836 +0,0 @@ -import { declare } from '@babel/helper-plugin-utils'; -import _getTargets, { prettifyTargets, getInclusionReasons, isRequired } from '@babel/helper-compilation-targets'; -import * as _babel from '@babel/core'; - -const { - types: t$1, - template: template -} = _babel.default || _babel; -function intersection(a, b) { - const result = new Set(); - a.forEach(v => b.has(v) && result.add(v)); - return result; -} -function has$1(object, key) { - return Object.prototype.hasOwnProperty.call(object, key); -} -function resolve$1(path, resolved = new Set()) { - if (resolved.has(path)) return; - resolved.add(path); - if (path.isVariableDeclarator()) { - if (path.get("id").isIdentifier()) { - return resolve$1(path.get("init"), resolved); - } - } else if (path.isReferencedIdentifier()) { - const binding = path.scope.getBinding(path.node.name); - if (!binding) return path; - if (!binding.constant) return; - return resolve$1(binding.path, resolved); - } - return path; -} -function resolveId(path) { - if (path.isIdentifier() && !path.scope.hasBinding(path.node.name, /* noGlobals */true)) { - return path.node.name; - } - const resolved = resolve$1(path); - if (resolved != null && resolved.isIdentifier()) { - return resolved.node.name; - } -} -function resolveKey(path, computed = false) { - const { - scope - } = path; - if (path.isStringLiteral()) return path.node.value; - const isIdentifier = path.isIdentifier(); - if (isIdentifier && !(computed || path.parent.computed)) { - return path.node.name; - } - if (computed && path.isMemberExpression() && path.get("object").isIdentifier({ - name: "Symbol" - }) && !scope.hasBinding("Symbol", /* noGlobals */true)) { - const sym = resolveKey(path.get("property"), path.node.computed); - if (sym) return "Symbol." + sym; - } - if (isIdentifier ? scope.hasBinding(path.node.name, /* noGlobals */true) : path.isPure()) { - const { - value - } = path.evaluate(); - if (typeof value === "string") return value; - } -} -function resolveSource(obj) { - if (obj.isMemberExpression() && obj.get("property").isIdentifier({ - name: "prototype" - })) { - const id = resolveId(obj.get("object")); - if (id) { - return { - id, - placement: "prototype" - }; - } - return { - id: null, - placement: null - }; - } - const id = resolveId(obj); - if (id) { - return { - id, - placement: "static" - }; - } - const path = resolve$1(obj); - switch (path == null ? void 0 : path.type) { - case "RegExpLiteral": - return { - id: "RegExp", - placement: "prototype" - }; - case "FunctionExpression": - return { - id: "Function", - placement: "prototype" - }; - case "StringLiteral": - return { - id: "String", - placement: "prototype" - }; - case "NumberLiteral": - return { - id: "Number", - placement: "prototype" - }; - case "BooleanLiteral": - return { - id: "Boolean", - placement: "prototype" - }; - case "ObjectExpression": - return { - id: "Object", - placement: "prototype" - }; - case "ArrayExpression": - return { - id: "Array", - placement: "prototype" - }; - } - return { - id: null, - placement: null - }; -} -function getImportSource({ - node -}) { - if (node.specifiers.length === 0) return node.source.value; -} -function getRequireSource({ - node -}) { - if (!t$1.isExpressionStatement(node)) return; - const { - expression - } = node; - if (t$1.isCallExpression(expression) && t$1.isIdentifier(expression.callee) && expression.callee.name === "require" && expression.arguments.length === 1 && t$1.isStringLiteral(expression.arguments[0])) { - return expression.arguments[0].value; - } -} -function hoist(node) { - // @ts-expect-error - node._blockHoist = 3; - return node; -} -function createUtilsGetter(cache) { - return path => { - const prog = path.findParent(p => p.isProgram()); - return { - injectGlobalImport(url, moduleName) { - cache.storeAnonymous(prog, url, moduleName, (isScript, source) => { - return isScript ? template.statement.ast`require(${source})` : t$1.importDeclaration([], source); - }); - }, - injectNamedImport(url, name, hint = name, moduleName) { - return cache.storeNamed(prog, url, name, moduleName, (isScript, source, name) => { - const id = prog.scope.generateUidIdentifier(hint); - return { - node: isScript ? hoist(template.statement.ast` - var ${id} = require(${source}).${name} - `) : t$1.importDeclaration([t$1.importSpecifier(id, name)], source), - name: id.name - }; - }); - }, - injectDefaultImport(url, hint = url, moduleName) { - return cache.storeNamed(prog, url, "default", moduleName, (isScript, source) => { - const id = prog.scope.generateUidIdentifier(hint); - return { - node: isScript ? hoist(template.statement.ast`var ${id} = require(${source})`) : t$1.importDeclaration([t$1.importDefaultSpecifier(id)], source), - name: id.name - }; - }); - } - }; - }; -} - -const { - types: t -} = _babel.default || _babel; -class ImportsCachedInjector { - constructor(resolver, getPreferredIndex) { - this._imports = new WeakMap(); - this._anonymousImports = new WeakMap(); - this._lastImports = new WeakMap(); - this._resolver = resolver; - this._getPreferredIndex = getPreferredIndex; - } - storeAnonymous(programPath, url, moduleName, getVal) { - const key = this._normalizeKey(programPath, url); - const imports = this._ensure(this._anonymousImports, programPath, Set); - if (imports.has(key)) return; - const node = getVal(programPath.node.sourceType === "script", t.stringLiteral(this._resolver(url))); - imports.add(key); - this._injectImport(programPath, node, moduleName); - } - storeNamed(programPath, url, name, moduleName, getVal) { - const key = this._normalizeKey(programPath, url, name); - const imports = this._ensure(this._imports, programPath, Map); - if (!imports.has(key)) { - const { - node, - name: id - } = getVal(programPath.node.sourceType === "script", t.stringLiteral(this._resolver(url)), t.identifier(name)); - imports.set(key, id); - this._injectImport(programPath, node, moduleName); - } - return t.identifier(imports.get(key)); - } - _injectImport(programPath, node, moduleName) { - var _this$_lastImports$ge; - const newIndex = this._getPreferredIndex(moduleName); - const lastImports = (_this$_lastImports$ge = this._lastImports.get(programPath)) != null ? _this$_lastImports$ge : []; - const isPathStillValid = path => path.node && - // Sometimes the AST is modified and the "last import" - // we have has been replaced - path.parent === programPath.node && path.container === programPath.node.body; - let last; - if (newIndex === Infinity) { - // Fast path: we can always just insert at the end if newIndex is `Infinity` - if (lastImports.length > 0) { - last = lastImports[lastImports.length - 1].path; - if (!isPathStillValid(last)) last = undefined; - } - } else { - for (const [i, data] of lastImports.entries()) { - const { - path, - index - } = data; - if (isPathStillValid(path)) { - if (newIndex < index) { - const [newPath] = path.insertBefore(node); - lastImports.splice(i, 0, { - path: newPath, - index: newIndex - }); - return; - } - last = path; - } - } - } - if (last) { - const [newPath] = last.insertAfter(node); - lastImports.push({ - path: newPath, - index: newIndex - }); - } else { - const [newPath] = programPath.unshiftContainer("body", [node]); - this._lastImports.set(programPath, [{ - path: newPath, - index: newIndex - }]); - } - } - _ensure(map, programPath, Collection) { - let collection = map.get(programPath); - if (!collection) { - collection = new Collection(); - map.set(programPath, collection); - } - return collection; - } - _normalizeKey(programPath, url, name = "") { - const { - sourceType - } = programPath.node; - - // If we rely on the imported binding (the "name" parameter), we also need to cache - // based on the sourceType. This is because the module transforms change the names - // of the import variables. - return `${name && sourceType}::${url}::${name}`; - } -} - -const presetEnvSilentDebugHeader = "#__secret_key__@babel/preset-env__don't_log_debug_header_and_resolved_targets"; -function stringifyTargetsMultiline(targets) { - return JSON.stringify(prettifyTargets(targets), null, 2); -} - -function patternToRegExp(pattern) { - if (pattern instanceof RegExp) return pattern; - try { - return new RegExp(`^${pattern}$`); - } catch { - return null; - } -} -function buildUnusedError(label, unused) { - if (!unused.length) return ""; - return ` - The following "${label}" patterns didn't match any polyfill:\n` + unused.map(original => ` ${String(original)}\n`).join(""); -} -function buldDuplicatesError(duplicates) { - if (!duplicates.size) return ""; - return ` - The following polyfills were matched both by "include" and "exclude" patterns:\n` + Array.from(duplicates, name => ` ${name}\n`).join(""); -} -function validateIncludeExclude(provider, polyfills, includePatterns, excludePatterns) { - let current; - const filter = pattern => { - const regexp = patternToRegExp(pattern); - if (!regexp) return false; - let matched = false; - for (const polyfill of polyfills.keys()) { - if (regexp.test(polyfill)) { - matched = true; - current.add(polyfill); - } - } - return !matched; - }; - - // prettier-ignore - const include = current = new Set(); - const unusedInclude = Array.from(includePatterns).filter(filter); - - // prettier-ignore - const exclude = current = new Set(); - const unusedExclude = Array.from(excludePatterns).filter(filter); - const duplicates = intersection(include, exclude); - if (duplicates.size > 0 || unusedInclude.length > 0 || unusedExclude.length > 0) { - throw new Error(`Error while validating the "${provider}" provider options:\n` + buildUnusedError("include", unusedInclude) + buildUnusedError("exclude", unusedExclude) + buldDuplicatesError(duplicates)); - } - return { - include, - exclude - }; -} -function applyMissingDependenciesDefaults(options, babelApi) { - const { - missingDependencies = {} - } = options; - if (missingDependencies === false) return false; - const caller = babelApi.caller(caller => caller == null ? void 0 : caller.name); - const { - log = "deferred", - inject = caller === "rollup-plugin-babel" ? "throw" : "import", - all = false - } = missingDependencies; - return { - log, - inject, - all - }; -} - -function isRemoved(path) { - if (path.removed) return true; - if (!path.parentPath) return false; - if (path.listKey) { - var _path$parentPath$node; - if (!((_path$parentPath$node = path.parentPath.node) != null && (_path$parentPath$node = _path$parentPath$node[path.listKey]) != null && _path$parentPath$node.includes(path.node))) return true; - } else { - var _path$parentPath$node2; - if (((_path$parentPath$node2 = path.parentPath.node) == null ? void 0 : _path$parentPath$node2[path.key]) !== path.node) return true; - } - return isRemoved(path.parentPath); -} -var usage = callProvider => { - function property(object, key, placement, path) { - return callProvider({ - kind: "property", - object, - key, - placement - }, path); - } - function handleReferencedIdentifier(path) { - const { - node: { - name - }, - scope - } = path; - if (scope.getBindingIdentifier(name)) return; - callProvider({ - kind: "global", - name - }, path); - } - function analyzeMemberExpression(path) { - const key = resolveKey(path.get("property"), path.node.computed); - return { - key, - handleAsMemberExpression: !!key && key !== "prototype" - }; - } - return { - // Symbol(), new Promise - ReferencedIdentifier(path) { - const { - parentPath - } = path; - if (parentPath.isMemberExpression({ - object: path.node - }) && analyzeMemberExpression(parentPath).handleAsMemberExpression) { - return; - } - handleReferencedIdentifier(path); - }, - "MemberExpression|OptionalMemberExpression"(path) { - const { - key, - handleAsMemberExpression - } = analyzeMemberExpression(path); - if (!handleAsMemberExpression) return; - const object = path.get("object"); - let objectIsGlobalIdentifier = object.isIdentifier(); - if (objectIsGlobalIdentifier) { - const binding = object.scope.getBinding(object.node.name); - if (binding) { - if (binding.path.isImportNamespaceSpecifier()) return; - objectIsGlobalIdentifier = false; - } - } - const source = resolveSource(object); - let skipObject = property(source.id, key, source.placement, path); - skipObject || (skipObject = !objectIsGlobalIdentifier || path.shouldSkip || object.shouldSkip || isRemoved(object)); - if (!skipObject) handleReferencedIdentifier(object); - }, - ObjectPattern(path) { - const { - parentPath, - parent - } = path; - let obj; - - // const { keys, values } = Object - if (parentPath.isVariableDeclarator()) { - obj = parentPath.get("init"); - // ({ keys, values } = Object) - } else if (parentPath.isAssignmentExpression()) { - obj = parentPath.get("right"); - // !function ({ keys, values }) {...} (Object) - // resolution does not work after properties transform :-( - } else if (parentPath.isFunction()) { - const grand = parentPath.parentPath; - if (grand.isCallExpression() || grand.isNewExpression()) { - if (grand.node.callee === parent) { - obj = grand.get("arguments")[path.key]; - } - } - } - let id = null; - let placement = null; - if (obj) ({ - id, - placement - } = resolveSource(obj)); - for (const prop of path.get("properties")) { - if (prop.isObjectProperty()) { - const key = resolveKey(prop.get("key")); - if (key) property(id, key, placement, prop); - } - } - }, - BinaryExpression(path) { - if (path.node.operator !== "in") return; - const source = resolveSource(path.get("right")); - const key = resolveKey(path.get("left"), true); - if (!key) return; - callProvider({ - kind: "in", - object: source.id, - key, - placement: source.placement - }, path); - } - }; -}; - -var entry = callProvider => ({ - ImportDeclaration(path) { - const source = getImportSource(path); - if (!source) return; - callProvider({ - kind: "import", - source - }, path); - }, - Program(path) { - path.get("body").forEach(bodyPath => { - const source = getRequireSource(bodyPath); - if (!source) return; - callProvider({ - kind: "import", - source - }, bodyPath); - }); - } -}); - -function resolve(dirname, moduleName, absoluteImports) { - if (absoluteImports === false) return moduleName; - throw new Error(`"absoluteImports" is not supported in bundles prepared for the browser.`); -} - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -function has(basedir, name) { - return true; -} - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -function logMissing(missingDeps) {} - -// eslint-disable-next-line @typescript-eslint/no-unused-vars -function laterLogMissing(missingDeps) {} - -const PossibleGlobalObjects = new Set(["global", "globalThis", "self", "window"]); -function createMetaResolver(polyfills) { - const { - static: staticP, - instance: instanceP, - global: globalP - } = polyfills; - return meta => { - if (meta.kind === "global" && globalP && has$1(globalP, meta.name)) { - return { - kind: "global", - desc: globalP[meta.name], - name: meta.name - }; - } - if (meta.kind === "property" || meta.kind === "in") { - const { - placement, - object, - key - } = meta; - if (object && placement === "static") { - if (globalP && PossibleGlobalObjects.has(object) && has$1(globalP, key)) { - return { - kind: "global", - desc: globalP[key], - name: key - }; - } - if (staticP && has$1(staticP, object) && has$1(staticP[object], key)) { - return { - kind: "static", - desc: staticP[object][key], - name: `${object}$${key}` - }; - } - } - if (instanceP && has$1(instanceP, key)) { - return { - kind: "instance", - desc: instanceP[key], - name: `${key}` - }; - } - } - }; -} - -const getTargets = _getTargets.default || _getTargets; -function resolveOptions(options, babelApi) { - const { - method, - targets: targetsOption, - ignoreBrowserslistConfig, - configPath, - debug, - shouldInjectPolyfill, - absoluteImports, - ...providerOptions - } = options; - if (isEmpty(options)) { - throw new Error(`\ -This plugin requires options, for example: - { - "plugins": [ - ["", { method: "usage-pure" }] - ] - } - -See more options at https://github.com/babel/babel-polyfills/blob/main/docs/usage.md`); - } - let methodName; - if (method === "usage-global") methodName = "usageGlobal";else if (method === "entry-global") methodName = "entryGlobal";else if (method === "usage-pure") methodName = "usagePure";else if (typeof method !== "string") { - throw new Error(".method must be a string"); - } else { - throw new Error(`.method must be one of "entry-global", "usage-global"` + ` or "usage-pure" (received ${JSON.stringify(method)})`); - } - if (typeof shouldInjectPolyfill === "function") { - if (options.include || options.exclude) { - throw new Error(`.include and .exclude are not supported when using the` + ` .shouldInjectPolyfill function.`); - } - } else if (shouldInjectPolyfill != null) { - throw new Error(`.shouldInjectPolyfill must be a function, or undefined` + ` (received ${JSON.stringify(shouldInjectPolyfill)})`); - } - if (absoluteImports != null && typeof absoluteImports !== "boolean" && typeof absoluteImports !== "string") { - throw new Error(`.absoluteImports must be a boolean, a string, or undefined` + ` (received ${JSON.stringify(absoluteImports)})`); - } - let targets; - if ( - // If any browserslist-related option is specified, fallback to the old - // behavior of not using the targets specified in the top-level options. - targetsOption || configPath || ignoreBrowserslistConfig) { - const targetsObj = typeof targetsOption === "string" || Array.isArray(targetsOption) ? { - browsers: targetsOption - } : targetsOption; - targets = getTargets(targetsObj, { - ignoreBrowserslistConfig, - configPath - }); - } else { - targets = babelApi.targets(); - } - return { - method, - methodName, - targets, - absoluteImports: absoluteImports != null ? absoluteImports : false, - shouldInjectPolyfill, - debug: !!debug, - providerOptions: providerOptions - }; -} -function instantiateProvider(factory, options, missingDependencies, dirname, debugLog, babelApi) { - const { - method, - methodName, - targets, - debug, - shouldInjectPolyfill, - providerOptions, - absoluteImports - } = resolveOptions(options, babelApi); - - // eslint-disable-next-line prefer-const - let include, exclude; - let polyfillsSupport; - let polyfillsNames; - let filterPolyfills; - const getUtils = createUtilsGetter(new ImportsCachedInjector(moduleName => resolve(dirname, moduleName, absoluteImports), name => { - var _polyfillsNames$get, _polyfillsNames; - return (_polyfillsNames$get = (_polyfillsNames = polyfillsNames) == null ? void 0 : _polyfillsNames.get(name)) != null ? _polyfillsNames$get : Infinity; - })); - const depsCache = new Map(); - const api = { - babel: babelApi, - getUtils, - method: options.method, - targets, - createMetaResolver, - shouldInjectPolyfill(name) { - if (polyfillsNames === undefined) { - throw new Error(`Internal error in the ${factory.name} provider: ` + `shouldInjectPolyfill() can't be called during initialization.`); - } - if (!polyfillsNames.has(name)) { - console.warn(`Internal error in the ${providerName} provider: ` + `unknown polyfill "${name}".`); - } - if (filterPolyfills && !filterPolyfills(name)) return false; - let shouldInject = isRequired(name, targets, { - compatData: polyfillsSupport, - includes: include, - excludes: exclude - }); - if (shouldInjectPolyfill) { - shouldInject = shouldInjectPolyfill(name, shouldInject); - if (typeof shouldInject !== "boolean") { - throw new Error(`.shouldInjectPolyfill must return a boolean.`); - } - } - return shouldInject; - }, - debug(name) { - var _debugLog, _debugLog$polyfillsSu; - debugLog().found = true; - if (!debug || !name) return; - if (debugLog().polyfills.has(providerName)) return; - debugLog().polyfills.add(name); - (_debugLog$polyfillsSu = (_debugLog = debugLog()).polyfillsSupport) != null ? _debugLog$polyfillsSu : _debugLog.polyfillsSupport = polyfillsSupport; - }, - assertDependency(name, version = "*") { - if (missingDependencies === false) return; - if (absoluteImports) { - // If absoluteImports is not false, we will try resolving - // the dependency and throw if it's not possible. We can - // skip the check here. - return; - } - const dep = version === "*" ? name : `${name}@^${version}`; - const found = missingDependencies.all ? false : mapGetOr(depsCache, `${name} :: ${dirname}`, () => has()); - if (!found) { - debugLog().missingDeps.add(dep); - } - } - }; - const provider = factory(api, providerOptions, dirname); - const providerName = provider.name || factory.name; - if (typeof provider[methodName] !== "function") { - throw new Error(`The "${providerName}" provider doesn't support the "${method}" polyfilling method.`); - } - if (Array.isArray(provider.polyfills)) { - polyfillsNames = new Map(provider.polyfills.map((name, index) => [name, index])); - filterPolyfills = provider.filterPolyfills; - } else if (provider.polyfills) { - polyfillsNames = new Map(Object.keys(provider.polyfills).map((name, index) => [name, index])); - polyfillsSupport = provider.polyfills; - filterPolyfills = provider.filterPolyfills; - } else { - polyfillsNames = new Map(); - } - ({ - include, - exclude - } = validateIncludeExclude(providerName, polyfillsNames, providerOptions.include || [], providerOptions.exclude || [])); - let callProvider; - if (methodName === "usageGlobal") { - callProvider = (payload, path) => { - var _ref; - const utils = getUtils(path); - return (_ref = provider[methodName](payload, utils, path)) != null ? _ref : false; - }; - } else { - callProvider = (payload, path) => { - const utils = getUtils(path); - provider[methodName](payload, utils, path); - return false; - }; - } - return { - debug, - method, - targets, - provider, - providerName, - callProvider - }; -} -function definePolyfillProvider(factory) { - return declare((babelApi, options, dirname) => { - babelApi.assertVersion("^7.0.0 || ^8.0.0-alpha.0"); - const { - traverse - } = babelApi; - let debugLog; - const missingDependencies = applyMissingDependenciesDefaults(options, babelApi); - const { - debug, - method, - targets, - provider, - providerName, - callProvider - } = instantiateProvider(factory, options, missingDependencies, dirname, () => debugLog, babelApi); - const createVisitor = method === "entry-global" ? entry : usage; - const visitor = provider.visitor ? traverse.visitors.merge([createVisitor(callProvider), provider.visitor]) : createVisitor(callProvider); - if (debug && debug !== presetEnvSilentDebugHeader) { - console.log(`${providerName}: \`DEBUG\` option`); - console.log(`\nUsing targets: ${stringifyTargetsMultiline(targets)}`); - console.log(`\nUsing polyfills with \`${method}\` method:`); - } - const { - runtimeName - } = provider; - return { - name: "inject-polyfills", - visitor, - pre(file) { - var _provider$pre; - if (runtimeName) { - if (file.get("runtimeHelpersModuleName") && file.get("runtimeHelpersModuleName") !== runtimeName) { - console.warn(`Two different polyfill providers` + ` (${file.get("runtimeHelpersModuleProvider")}` + ` and ${providerName}) are trying to define two` + ` conflicting @babel/runtime alternatives:` + ` ${file.get("runtimeHelpersModuleName")} and ${runtimeName}.` + ` The second one will be ignored.`); - } else { - file.set("runtimeHelpersModuleName", runtimeName); - file.set("runtimeHelpersModuleProvider", providerName); - } - } - debugLog = { - polyfills: new Set(), - polyfillsSupport: undefined, - found: false, - providers: new Set(), - missingDeps: new Set() - }; - (_provider$pre = provider.pre) == null || _provider$pre.apply(this, arguments); - }, - post() { - var _provider$post; - (_provider$post = provider.post) == null || _provider$post.apply(this, arguments); - if (missingDependencies !== false) { - if (missingDependencies.log === "per-file") { - logMissing(debugLog.missingDeps); - } else { - laterLogMissing(debugLog.missingDeps); - } - } - if (!debug) return; - if (this.filename) console.log(`\n[${this.filename}]`); - if (debugLog.polyfills.size === 0) { - console.log(method === "entry-global" ? debugLog.found ? `Based on your targets, the ${providerName} polyfill did not add any polyfill.` : `The entry point for the ${providerName} polyfill has not been found.` : `Based on your code and targets, the ${providerName} polyfill did not add any polyfill.`); - return; - } - if (method === "entry-global") { - console.log(`The ${providerName} polyfill entry has been replaced with ` + `the following polyfills:`); - } else { - console.log(`The ${providerName} polyfill added the following polyfills:`); - } - for (const name of debugLog.polyfills) { - var _debugLog$polyfillsSu2; - if ((_debugLog$polyfillsSu2 = debugLog.polyfillsSupport) != null && _debugLog$polyfillsSu2[name]) { - const filteredTargets = getInclusionReasons(name, targets, debugLog.polyfillsSupport); - const formattedTargets = JSON.stringify(filteredTargets).replace(/,/g, ", ").replace(/^\{"/, '{ "').replace(/"\}$/, '" }'); - console.log(` ${name} ${formattedTargets}`); - } else { - console.log(` ${name}`); - } - } - } - }; - }); -} -function mapGetOr(map, key, getDefault) { - let val = map.get(key); - if (val === undefined) { - val = getDefault(); - map.set(key, val); - } - return val; -} -function isEmpty(obj) { - return Object.keys(obj).length === 0; -} - -export { definePolyfillProvider as default }; -//# sourceMappingURL=index.browser.mjs.map diff --git a/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/esm/index.browser.mjs.map b/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/esm/index.browser.mjs.map deleted file mode 100644 index b26ebf31..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/esm/index.browser.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.browser.mjs","sources":["../src/utils.ts","../src/imports-injector.ts","../src/debug-utils.ts","../src/normalize-options.ts","../src/visitors/usage.ts","../src/visitors/entry.ts","../src/browser/dependencies.ts","../src/meta-resolver.ts","../src/index.ts"],"sourcesContent":["import { types as t, template } from \"@babel/core\";\nimport type { NodePath } from \"@babel/traverse\";\nimport type { Utils } from \"./types\";\nimport type ImportsCachedInjector from \"./imports-injector\";\n\nexport function intersection(a: Set, b: Set): Set {\n const result = new Set();\n a.forEach(v => b.has(v) && result.add(v));\n return result;\n}\n\nexport function has(object: any, key: string) {\n return Object.prototype.hasOwnProperty.call(object, key);\n}\n\nfunction resolve(\n path: NodePath,\n resolved: Set = new Set(),\n): NodePath | undefined {\n if (resolved.has(path)) return;\n resolved.add(path);\n\n if (path.isVariableDeclarator()) {\n if (path.get(\"id\").isIdentifier()) {\n return resolve(path.get(\"init\"), resolved);\n }\n } else if (path.isReferencedIdentifier()) {\n const binding = path.scope.getBinding(path.node.name);\n if (!binding) return path;\n if (!binding.constant) return;\n return resolve(binding.path, resolved);\n }\n return path;\n}\n\nfunction resolveId(path: NodePath): string {\n if (\n path.isIdentifier() &&\n !path.scope.hasBinding(path.node.name, /* noGlobals */ true)\n ) {\n return path.node.name;\n }\n\n const resolved = resolve(path);\n if (resolved?.isIdentifier()) {\n return resolved.node.name;\n }\n}\n\nexport function resolveKey(\n path: NodePath,\n computed: boolean = false,\n) {\n const { scope } = path;\n if (path.isStringLiteral()) return path.node.value;\n const isIdentifier = path.isIdentifier();\n if (\n isIdentifier &&\n !(computed || (path.parent as t.MemberExpression).computed)\n ) {\n return path.node.name;\n }\n\n if (\n computed &&\n path.isMemberExpression() &&\n path.get(\"object\").isIdentifier({ name: \"Symbol\" }) &&\n !scope.hasBinding(\"Symbol\", /* noGlobals */ true)\n ) {\n const sym = resolveKey(path.get(\"property\"), path.node.computed);\n if (sym) return \"Symbol.\" + sym;\n }\n\n if (\n isIdentifier\n ? scope.hasBinding(path.node.name, /* noGlobals */ true)\n : path.isPure()\n ) {\n const { value } = path.evaluate();\n if (typeof value === \"string\") return value;\n }\n}\n\nexport function resolveSource(obj: NodePath): {\n id: string | null;\n placement: \"prototype\" | \"static\" | null;\n} {\n if (\n obj.isMemberExpression() &&\n obj.get(\"property\").isIdentifier({ name: \"prototype\" })\n ) {\n const id = resolveId(obj.get(\"object\"));\n\n if (id) {\n return { id, placement: \"prototype\" };\n }\n return { id: null, placement: null };\n }\n\n const id = resolveId(obj);\n if (id) {\n return { id, placement: \"static\" };\n }\n\n const path = resolve(obj);\n switch (path?.type) {\n case \"RegExpLiteral\":\n return { id: \"RegExp\", placement: \"prototype\" };\n case \"FunctionExpression\":\n return { id: \"Function\", placement: \"prototype\" };\n case \"StringLiteral\":\n return { id: \"String\", placement: \"prototype\" };\n case \"NumberLiteral\":\n return { id: \"Number\", placement: \"prototype\" };\n case \"BooleanLiteral\":\n return { id: \"Boolean\", placement: \"prototype\" };\n case \"ObjectExpression\":\n return { id: \"Object\", placement: \"prototype\" };\n case \"ArrayExpression\":\n return { id: \"Array\", placement: \"prototype\" };\n }\n\n return { id: null, placement: null };\n}\n\nexport function getImportSource({ node }: NodePath) {\n if (node.specifiers.length === 0) return node.source.value;\n}\n\nexport function getRequireSource({ node }: NodePath) {\n if (!t.isExpressionStatement(node)) return;\n const { expression } = node;\n if (\n t.isCallExpression(expression) &&\n t.isIdentifier(expression.callee) &&\n expression.callee.name === \"require\" &&\n expression.arguments.length === 1 &&\n t.isStringLiteral(expression.arguments[0])\n ) {\n return expression.arguments[0].value;\n }\n}\n\nfunction hoist(node: T): T {\n // @ts-expect-error\n node._blockHoist = 3;\n return node;\n}\n\nexport function createUtilsGetter(cache: ImportsCachedInjector) {\n return (path: NodePath): Utils => {\n const prog = path.findParent(p => p.isProgram()) as NodePath;\n\n return {\n injectGlobalImport(url, moduleName) {\n cache.storeAnonymous(prog, url, moduleName, (isScript, source) => {\n return isScript\n ? template.statement.ast`require(${source})`\n : t.importDeclaration([], source);\n });\n },\n injectNamedImport(url, name, hint = name, moduleName) {\n return cache.storeNamed(\n prog,\n url,\n name,\n moduleName,\n (isScript, source, name) => {\n const id = prog.scope.generateUidIdentifier(hint);\n return {\n node: isScript\n ? hoist(template.statement.ast`\n var ${id} = require(${source}).${name}\n `)\n : t.importDeclaration([t.importSpecifier(id, name)], source),\n name: id.name,\n };\n },\n );\n },\n injectDefaultImport(url, hint = url, moduleName) {\n return cache.storeNamed(\n prog,\n url,\n \"default\",\n moduleName,\n (isScript, source) => {\n const id = prog.scope.generateUidIdentifier(hint);\n return {\n node: isScript\n ? hoist(template.statement.ast`var ${id} = require(${source})`)\n : t.importDeclaration([t.importDefaultSpecifier(id)], source),\n name: id.name,\n };\n },\n );\n },\n };\n };\n}\n","import type { NodePath } from \"@babel/traverse\";\nimport { types as t } from \"@babel/core\";\n\ntype StrMap = Map;\n\nexport default class ImportsCachedInjector {\n _imports: WeakMap, StrMap>;\n _anonymousImports: WeakMap, Set>;\n _lastImports: WeakMap<\n NodePath,\n Array<{ path: NodePath; index: number }>\n >;\n _resolver: (url: string) => string;\n _getPreferredIndex: (url: string) => number;\n\n constructor(\n resolver: (url: string) => string,\n getPreferredIndex: (url: string) => number,\n ) {\n this._imports = new WeakMap();\n this._anonymousImports = new WeakMap();\n this._lastImports = new WeakMap();\n this._resolver = resolver;\n this._getPreferredIndex = getPreferredIndex;\n }\n\n storeAnonymous(\n programPath: NodePath,\n url: string,\n moduleName: string,\n getVal: (\n isScript: boolean,\n source: t.StringLiteral,\n ) => t.Statement | t.Declaration,\n ) {\n const key = this._normalizeKey(programPath, url);\n const imports = this._ensure>(\n this._anonymousImports,\n programPath,\n Set,\n );\n\n if (imports.has(key)) return;\n\n const node = getVal(\n programPath.node.sourceType === \"script\",\n t.stringLiteral(this._resolver(url)),\n );\n imports.add(key);\n this._injectImport(programPath, node, moduleName);\n }\n\n storeNamed(\n programPath: NodePath,\n url: string,\n name: string,\n moduleName: string,\n getVal: (\n isScript: boolean,\n // eslint-disable-next-line no-undef\n source: t.StringLiteral,\n // eslint-disable-next-line no-undef\n name: t.Identifier,\n ) => { node: t.Statement | t.Declaration; name: string },\n ) {\n const key = this._normalizeKey(programPath, url, name);\n const imports = this._ensure>(\n this._imports,\n programPath,\n Map,\n );\n\n if (!imports.has(key)) {\n const { node, name: id } = getVal(\n programPath.node.sourceType === \"script\",\n t.stringLiteral(this._resolver(url)),\n t.identifier(name),\n );\n imports.set(key, id);\n this._injectImport(programPath, node, moduleName);\n }\n\n return t.identifier(imports.get(key));\n }\n\n _injectImport(\n programPath: NodePath,\n node: t.Statement | t.Declaration,\n moduleName: string,\n ) {\n const newIndex = this._getPreferredIndex(moduleName);\n const lastImports = this._lastImports.get(programPath) ?? [];\n\n const isPathStillValid = (path: NodePath) =>\n path.node &&\n // Sometimes the AST is modified and the \"last import\"\n // we have has been replaced\n path.parent === programPath.node &&\n path.container === programPath.node.body;\n\n let last: NodePath;\n\n if (newIndex === Infinity) {\n // Fast path: we can always just insert at the end if newIndex is `Infinity`\n if (lastImports.length > 0) {\n last = lastImports[lastImports.length - 1].path;\n if (!isPathStillValid(last)) last = undefined;\n }\n } else {\n for (const [i, data] of lastImports.entries()) {\n const { path, index } = data;\n if (isPathStillValid(path)) {\n if (newIndex < index) {\n const [newPath] = path.insertBefore(node);\n lastImports.splice(i, 0, { path: newPath, index: newIndex });\n return;\n }\n last = path;\n }\n }\n }\n\n if (last) {\n const [newPath] = last.insertAfter(node);\n lastImports.push({ path: newPath, index: newIndex });\n } else {\n const [newPath] = programPath.unshiftContainer(\"body\", [node]);\n this._lastImports.set(programPath, [{ path: newPath, index: newIndex }]);\n }\n }\n\n _ensure | Set>(\n map: WeakMap, C>,\n programPath: NodePath,\n Collection: { new (...args: any): C },\n ): C {\n let collection = map.get(programPath);\n if (!collection) {\n collection = new Collection();\n map.set(programPath, collection);\n }\n return collection;\n }\n\n _normalizeKey(\n programPath: NodePath,\n url: string,\n name: string = \"\",\n ): string {\n const { sourceType } = programPath.node;\n\n // If we rely on the imported binding (the \"name\" parameter), we also need to cache\n // based on the sourceType. This is because the module transforms change the names\n // of the import variables.\n return `${name && sourceType}::${url}::${name}`;\n }\n}\n","import { prettifyTargets } from \"@babel/helper-compilation-targets\";\n\nimport type { Targets } from \"./types\";\n\nexport const presetEnvSilentDebugHeader =\n \"#__secret_key__@babel/preset-env__don't_log_debug_header_and_resolved_targets\";\n\nexport function stringifyTargetsMultiline(targets: Targets): string {\n return JSON.stringify(prettifyTargets(targets), null, 2);\n}\n\nexport function stringifyTargets(targets: Targets): string {\n return JSON.stringify(targets)\n .replace(/,/g, \", \")\n .replace(/^\\{\"/, '{ \"')\n .replace(/\"\\}$/, '\" }');\n}\n","import { intersection } from \"./utils\";\nimport type {\n Pattern,\n PluginOptions,\n MissingDependenciesOption,\n} from \"./types\";\n\nfunction patternToRegExp(pattern: Pattern): RegExp | null {\n if (pattern instanceof RegExp) return pattern;\n\n try {\n return new RegExp(`^${pattern}$`);\n } catch {\n return null;\n }\n}\n\nfunction buildUnusedError(label, unused) {\n if (!unused.length) return \"\";\n return (\n ` - The following \"${label}\" patterns didn't match any polyfill:\\n` +\n unused.map(original => ` ${String(original)}\\n`).join(\"\")\n );\n}\n\nfunction buldDuplicatesError(duplicates) {\n if (!duplicates.size) return \"\";\n return (\n ` - The following polyfills were matched both by \"include\" and \"exclude\" patterns:\\n` +\n Array.from(duplicates, name => ` ${name}\\n`).join(\"\")\n );\n}\n\nexport function validateIncludeExclude(\n provider: string,\n polyfills: Map,\n includePatterns: Pattern[],\n excludePatterns: Pattern[],\n) {\n let current;\n const filter = pattern => {\n const regexp = patternToRegExp(pattern);\n if (!regexp) return false;\n\n let matched = false;\n for (const polyfill of polyfills.keys()) {\n if (regexp.test(polyfill)) {\n matched = true;\n current.add(polyfill);\n }\n }\n return !matched;\n };\n\n // prettier-ignore\n const include = current = new Set ();\n const unusedInclude = Array.from(includePatterns).filter(filter);\n\n // prettier-ignore\n const exclude = current = new Set ();\n const unusedExclude = Array.from(excludePatterns).filter(filter);\n\n const duplicates = intersection(include, exclude);\n\n if (\n duplicates.size > 0 ||\n unusedInclude.length > 0 ||\n unusedExclude.length > 0\n ) {\n throw new Error(\n `Error while validating the \"${provider}\" provider options:\\n` +\n buildUnusedError(\"include\", unusedInclude) +\n buildUnusedError(\"exclude\", unusedExclude) +\n buldDuplicatesError(duplicates),\n );\n }\n\n return { include, exclude };\n}\n\nexport function applyMissingDependenciesDefaults(\n options: PluginOptions,\n babelApi: any,\n): MissingDependenciesOption {\n const { missingDependencies = {} } = options;\n if (missingDependencies === false) return false;\n\n const caller = babelApi.caller(caller => caller?.name);\n\n const {\n log = \"deferred\",\n inject = caller === \"rollup-plugin-babel\" ? \"throw\" : \"import\",\n all = false,\n } = missingDependencies;\n\n return { log, inject, all };\n}\n","import type { NodePath } from \"@babel/traverse\";\nimport { types as t } from \"@babel/core\";\nimport type { CallProvider } from \"./index\";\n\nimport { resolveKey, resolveSource } from \"../utils\";\n\nfunction isRemoved(path: NodePath) {\n if (path.removed) return true;\n if (!path.parentPath) return false;\n if (path.listKey) {\n if (!path.parentPath.node?.[path.listKey]?.includes(path.node)) return true;\n } else {\n if (path.parentPath.node?.[path.key] !== path.node) return true;\n }\n return isRemoved(path.parentPath);\n}\n\nexport default (callProvider: CallProvider) => {\n function property(object, key, placement, path) {\n return callProvider({ kind: \"property\", object, key, placement }, path);\n }\n\n function handleReferencedIdentifier(path) {\n const {\n node: { name },\n scope,\n } = path;\n if (scope.getBindingIdentifier(name)) return;\n\n callProvider({ kind: \"global\", name }, path);\n }\n\n function analyzeMemberExpression(\n path: NodePath,\n ) {\n const key = resolveKey(path.get(\"property\"), path.node.computed);\n return { key, handleAsMemberExpression: !!key && key !== \"prototype\" };\n }\n\n return {\n // Symbol(), new Promise\n ReferencedIdentifier(path: NodePath) {\n const { parentPath } = path;\n if (\n parentPath.isMemberExpression({ object: path.node }) &&\n analyzeMemberExpression(parentPath).handleAsMemberExpression\n ) {\n return;\n }\n handleReferencedIdentifier(path);\n },\n\n \"MemberExpression|OptionalMemberExpression\"(\n path: NodePath,\n ) {\n const { key, handleAsMemberExpression } = analyzeMemberExpression(path);\n if (!handleAsMemberExpression) return;\n\n const object = path.get(\"object\");\n let objectIsGlobalIdentifier = object.isIdentifier();\n if (objectIsGlobalIdentifier) {\n const binding = object.scope.getBinding(\n (object.node as t.Identifier).name,\n );\n if (binding) {\n if (binding.path.isImportNamespaceSpecifier()) return;\n objectIsGlobalIdentifier = false;\n }\n }\n\n const source = resolveSource(object);\n let skipObject = property(source.id, key, source.placement, path);\n skipObject ||=\n !objectIsGlobalIdentifier ||\n path.shouldSkip ||\n object.shouldSkip ||\n isRemoved(object);\n\n if (!skipObject) handleReferencedIdentifier(object);\n },\n\n ObjectPattern(path: NodePath) {\n const { parentPath, parent } = path;\n let obj;\n\n // const { keys, values } = Object\n if (parentPath.isVariableDeclarator()) {\n obj = parentPath.get(\"init\");\n // ({ keys, values } = Object)\n } else if (parentPath.isAssignmentExpression()) {\n obj = parentPath.get(\"right\");\n // !function ({ keys, values }) {...} (Object)\n // resolution does not work after properties transform :-(\n } else if (parentPath.isFunction()) {\n const grand = parentPath.parentPath;\n if (grand.isCallExpression() || grand.isNewExpression()) {\n if (grand.node.callee === parent) {\n obj = grand.get(\"arguments\")[path.key];\n }\n }\n }\n\n let id = null;\n let placement = null;\n if (obj) ({ id, placement } = resolveSource(obj));\n\n for (const prop of path.get(\"properties\")) {\n if (prop.isObjectProperty()) {\n const key = resolveKey(prop.get(\"key\"));\n if (key) property(id, key, placement, prop);\n }\n }\n },\n\n BinaryExpression(path: NodePath) {\n if (path.node.operator !== \"in\") return;\n\n const source = resolveSource(path.get(\"right\"));\n const key = resolveKey(path.get(\"left\"), true);\n\n if (!key) return;\n\n callProvider(\n {\n kind: \"in\",\n object: source.id,\n key,\n placement: source.placement,\n },\n path,\n );\n },\n };\n};\n","import type { NodePath } from \"@babel/traverse\";\nimport { types as t } from \"@babel/core\";\nimport type { CallProvider } from \"./index\";\n\nimport { getImportSource, getRequireSource } from \"../utils\";\n\nexport default (callProvider: CallProvider) => ({\n ImportDeclaration(path: NodePath) {\n const source = getImportSource(path);\n if (!source) return;\n callProvider({ kind: \"import\", source }, path);\n },\n Program(path: NodePath) {\n path.get(\"body\").forEach(bodyPath => {\n const source = getRequireSource(bodyPath);\n if (!source) return;\n callProvider({ kind: \"import\", source }, bodyPath);\n });\n },\n});\n","export function resolve(\n dirname: string,\n moduleName: string,\n absoluteImports: boolean | string,\n): string {\n if (absoluteImports === false) return moduleName;\n\n throw new Error(\n `\"absoluteImports\" is not supported in bundles prepared for the browser.`,\n );\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function has(basedir: string, name: string) {\n return true;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function logMissing(missingDeps: Set) {}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function laterLogMissing(missingDeps: Set) {}\n","import type {\n MetaDescriptor,\n ResolverPolyfills,\n ResolvedPolyfill,\n} from \"./types\";\n\nimport { has } from \"./utils\";\n\ntype ResolverFn = (meta: MetaDescriptor) => void | ResolvedPolyfill;\n\nconst PossibleGlobalObjects = new Set([\n \"global\",\n \"globalThis\",\n \"self\",\n \"window\",\n]);\n\nexport default function createMetaResolver(\n polyfills: ResolverPolyfills,\n): ResolverFn {\n const { static: staticP, instance: instanceP, global: globalP } = polyfills;\n\n return meta => {\n if (meta.kind === \"global\" && globalP && has(globalP, meta.name)) {\n return { kind: \"global\", desc: globalP[meta.name], name: meta.name };\n }\n\n if (meta.kind === \"property\" || meta.kind === \"in\") {\n const { placement, object, key } = meta;\n\n if (object && placement === \"static\") {\n if (globalP && PossibleGlobalObjects.has(object) && has(globalP, key)) {\n return { kind: \"global\", desc: globalP[key], name: key };\n }\n\n if (staticP && has(staticP, object) && has(staticP[object], key)) {\n return {\n kind: \"static\",\n desc: staticP[object][key],\n name: `${object}$${key}`,\n };\n }\n }\n\n if (instanceP && has(instanceP, key)) {\n return { kind: \"instance\", desc: instanceP[key], name: `${key}` };\n }\n }\n };\n}\n","import { declare } from \"@babel/helper-plugin-utils\";\nimport type { NodePath } from \"@babel/traverse\";\n\nimport _getTargets, {\n isRequired,\n getInclusionReasons,\n} from \"@babel/helper-compilation-targets\";\nconst getTargets = _getTargets.default || _getTargets;\n\nimport { createUtilsGetter } from \"./utils\";\nimport ImportsCachedInjector from \"./imports-injector\";\nimport {\n stringifyTargetsMultiline,\n presetEnvSilentDebugHeader,\n} from \"./debug-utils\";\nimport {\n validateIncludeExclude,\n applyMissingDependenciesDefaults,\n} from \"./normalize-options\";\n\nimport type {\n ProviderApi,\n MethodString,\n Targets,\n MetaDescriptor,\n PolyfillProvider,\n PluginOptions,\n ProviderOptions,\n} from \"./types\";\n\nimport * as v from \"./visitors\";\nimport * as deps from \"./node/dependencies\";\n\nimport createMetaResolver from \"./meta-resolver\";\n\nexport type { PolyfillProvider, MetaDescriptor, Utils, Targets } from \"./types\";\n\nfunction resolveOptions(\n options: PluginOptions,\n babelApi,\n): {\n method: MethodString;\n methodName: \"usageGlobal\" | \"entryGlobal\" | \"usagePure\";\n targets: Targets;\n debug: boolean | typeof presetEnvSilentDebugHeader;\n shouldInjectPolyfill:\n | ((name: string, shouldInject: boolean) => boolean)\n | undefined;\n providerOptions: ProviderOptions;\n absoluteImports: string | boolean;\n} {\n const {\n method,\n targets: targetsOption,\n ignoreBrowserslistConfig,\n configPath,\n debug,\n shouldInjectPolyfill,\n absoluteImports,\n ...providerOptions\n } = options;\n\n if (isEmpty(options)) {\n throw new Error(\n `\\\nThis plugin requires options, for example:\n {\n \"plugins\": [\n [\"\", { method: \"usage-pure\" }]\n ]\n }\n\nSee more options at https://github.com/babel/babel-polyfills/blob/main/docs/usage.md`,\n );\n }\n\n let methodName;\n if (method === \"usage-global\") methodName = \"usageGlobal\";\n else if (method === \"entry-global\") methodName = \"entryGlobal\";\n else if (method === \"usage-pure\") methodName = \"usagePure\";\n else if (typeof method !== \"string\") {\n throw new Error(\".method must be a string\");\n } else {\n throw new Error(\n `.method must be one of \"entry-global\", \"usage-global\"` +\n ` or \"usage-pure\" (received ${JSON.stringify(method)})`,\n );\n }\n\n if (typeof shouldInjectPolyfill === \"function\") {\n if (options.include || options.exclude) {\n throw new Error(\n `.include and .exclude are not supported when using the` +\n ` .shouldInjectPolyfill function.`,\n );\n }\n } else if (shouldInjectPolyfill != null) {\n throw new Error(\n `.shouldInjectPolyfill must be a function, or undefined` +\n ` (received ${JSON.stringify(shouldInjectPolyfill)})`,\n );\n }\n\n if (\n absoluteImports != null &&\n typeof absoluteImports !== \"boolean\" &&\n typeof absoluteImports !== \"string\"\n ) {\n throw new Error(\n `.absoluteImports must be a boolean, a string, or undefined` +\n ` (received ${JSON.stringify(absoluteImports)})`,\n );\n }\n\n let targets;\n\n if (\n // If any browserslist-related option is specified, fallback to the old\n // behavior of not using the targets specified in the top-level options.\n targetsOption ||\n configPath ||\n ignoreBrowserslistConfig\n ) {\n const targetsObj =\n typeof targetsOption === \"string\" || Array.isArray(targetsOption)\n ? { browsers: targetsOption }\n : targetsOption;\n\n targets = getTargets(targetsObj, {\n ignoreBrowserslistConfig,\n configPath,\n });\n } else {\n targets = babelApi.targets();\n }\n\n return {\n method,\n methodName,\n targets,\n absoluteImports: absoluteImports ?? false,\n shouldInjectPolyfill,\n debug: !!debug,\n providerOptions: providerOptions as any as ProviderOptions,\n };\n}\n\nfunction instantiateProvider(\n factory: PolyfillProvider,\n options: PluginOptions,\n missingDependencies,\n dirname,\n debugLog,\n babelApi,\n) {\n const {\n method,\n methodName,\n targets,\n debug,\n shouldInjectPolyfill,\n providerOptions,\n absoluteImports,\n } = resolveOptions(options, babelApi);\n\n // eslint-disable-next-line prefer-const\n let include, exclude;\n let polyfillsSupport;\n let polyfillsNames: Map | undefined;\n let filterPolyfills;\n\n const getUtils = createUtilsGetter(\n new ImportsCachedInjector(\n moduleName => deps.resolve(dirname, moduleName, absoluteImports),\n (name: string) => polyfillsNames?.get(name) ?? Infinity,\n ),\n );\n\n const depsCache = new Map();\n\n const api: ProviderApi = {\n babel: babelApi,\n getUtils,\n method: options.method,\n targets,\n createMetaResolver,\n shouldInjectPolyfill(name) {\n if (polyfillsNames === undefined) {\n throw new Error(\n `Internal error in the ${factory.name} provider: ` +\n `shouldInjectPolyfill() can't be called during initialization.`,\n );\n }\n if (!polyfillsNames.has(name)) {\n console.warn(\n `Internal error in the ${providerName} provider: ` +\n `unknown polyfill \"${name}\".`,\n );\n }\n\n if (filterPolyfills && !filterPolyfills(name)) return false;\n\n let shouldInject = isRequired(name, targets, {\n compatData: polyfillsSupport,\n includes: include,\n excludes: exclude,\n });\n\n if (shouldInjectPolyfill) {\n shouldInject = shouldInjectPolyfill(name, shouldInject);\n if (typeof shouldInject !== \"boolean\") {\n throw new Error(`.shouldInjectPolyfill must return a boolean.`);\n }\n }\n\n return shouldInject;\n },\n debug(name) {\n debugLog().found = true;\n\n if (!debug || !name) return;\n\n if (debugLog().polyfills.has(providerName)) return;\n debugLog().polyfills.add(name);\n debugLog().polyfillsSupport ??= polyfillsSupport;\n },\n assertDependency(name, version = \"*\") {\n if (missingDependencies === false) return;\n if (absoluteImports) {\n // If absoluteImports is not false, we will try resolving\n // the dependency and throw if it's not possible. We can\n // skip the check here.\n return;\n }\n\n const dep = version === \"*\" ? name : `${name}@^${version}`;\n\n const found = missingDependencies.all\n ? false\n : mapGetOr(depsCache, `${name} :: ${dirname}`, () =>\n deps.has(dirname, name),\n );\n\n if (!found) {\n debugLog().missingDeps.add(dep);\n }\n },\n };\n\n const provider = factory(api, providerOptions, dirname);\n const providerName = provider.name || factory.name;\n\n if (typeof provider[methodName] !== \"function\") {\n throw new Error(\n `The \"${providerName}\" provider doesn't support the \"${method}\" polyfilling method.`,\n );\n }\n\n if (Array.isArray(provider.polyfills)) {\n polyfillsNames = new Map(\n provider.polyfills.map((name, index) => [name, index]),\n );\n filterPolyfills = provider.filterPolyfills;\n } else if (provider.polyfills) {\n polyfillsNames = new Map(\n Object.keys(provider.polyfills).map((name, index) => [name, index]),\n );\n polyfillsSupport = provider.polyfills;\n filterPolyfills = provider.filterPolyfills;\n } else {\n polyfillsNames = new Map();\n }\n\n ({ include, exclude } = validateIncludeExclude(\n providerName,\n polyfillsNames,\n providerOptions.include || [],\n providerOptions.exclude || [],\n ));\n\n let callProvider: (payload: MetaDescriptor, path: NodePath) => boolean;\n if (methodName === \"usageGlobal\") {\n callProvider = (payload, path) => {\n const utils = getUtils(path);\n return (\n (provider[methodName](payload, utils, path) satisfies boolean) ?? false\n );\n };\n } else {\n callProvider = (payload, path) => {\n const utils = getUtils(path);\n provider[methodName](payload, utils, path) satisfies void;\n return false;\n };\n }\n\n return {\n debug,\n method,\n targets,\n provider,\n providerName,\n callProvider,\n };\n}\n\nexport default function definePolyfillProvider(\n factory: PolyfillProvider,\n) {\n return declare((babelApi, options: PluginOptions, dirname: string) => {\n babelApi.assertVersion(\"^7.0.0 || ^8.0.0-alpha.0\");\n const { traverse } = babelApi;\n\n let debugLog;\n\n const missingDependencies = applyMissingDependenciesDefaults(\n options,\n babelApi,\n );\n\n const { debug, method, targets, provider, providerName, callProvider } =\n instantiateProvider(\n factory,\n options,\n missingDependencies,\n dirname,\n () => debugLog,\n babelApi,\n );\n\n const createVisitor = method === \"entry-global\" ? v.entry : v.usage;\n\n const visitor = provider.visitor\n ? traverse.visitors.merge([createVisitor(callProvider), provider.visitor])\n : createVisitor(callProvider);\n\n if (debug && debug !== presetEnvSilentDebugHeader) {\n console.log(`${providerName}: \\`DEBUG\\` option`);\n console.log(`\\nUsing targets: ${stringifyTargetsMultiline(targets)}`);\n console.log(`\\nUsing polyfills with \\`${method}\\` method:`);\n }\n\n const { runtimeName } = provider;\n\n return {\n name: \"inject-polyfills\",\n visitor,\n\n pre(file) {\n if (runtimeName) {\n if (\n file.get(\"runtimeHelpersModuleName\") &&\n file.get(\"runtimeHelpersModuleName\") !== runtimeName\n ) {\n console.warn(\n `Two different polyfill providers` +\n ` (${file.get(\"runtimeHelpersModuleProvider\")}` +\n ` and ${providerName}) are trying to define two` +\n ` conflicting @babel/runtime alternatives:` +\n ` ${file.get(\"runtimeHelpersModuleName\")} and ${runtimeName}.` +\n ` The second one will be ignored.`,\n );\n } else {\n file.set(\"runtimeHelpersModuleName\", runtimeName);\n file.set(\"runtimeHelpersModuleProvider\", providerName);\n }\n }\n\n debugLog = {\n polyfills: new Set(),\n polyfillsSupport: undefined,\n found: false,\n providers: new Set(),\n missingDeps: new Set(),\n };\n\n provider.pre?.apply(this, arguments);\n },\n post() {\n provider.post?.apply(this, arguments);\n\n if (missingDependencies !== false) {\n if (missingDependencies.log === \"per-file\") {\n deps.logMissing(debugLog.missingDeps);\n } else {\n deps.laterLogMissing(debugLog.missingDeps);\n }\n }\n\n if (!debug) return;\n\n if (this.filename) console.log(`\\n[${this.filename}]`);\n\n if (debugLog.polyfills.size === 0) {\n console.log(\n method === \"entry-global\"\n ? debugLog.found\n ? `Based on your targets, the ${providerName} polyfill did not add any polyfill.`\n : `The entry point for the ${providerName} polyfill has not been found.`\n : `Based on your code and targets, the ${providerName} polyfill did not add any polyfill.`,\n );\n\n return;\n }\n\n if (method === \"entry-global\") {\n console.log(\n `The ${providerName} polyfill entry has been replaced with ` +\n `the following polyfills:`,\n );\n } else {\n console.log(\n `The ${providerName} polyfill added the following polyfills:`,\n );\n }\n\n for (const name of debugLog.polyfills) {\n if (debugLog.polyfillsSupport?.[name]) {\n const filteredTargets = getInclusionReasons(\n name,\n targets,\n debugLog.polyfillsSupport,\n );\n\n const formattedTargets = JSON.stringify(filteredTargets)\n .replace(/,/g, \", \")\n .replace(/^\\{\"/, '{ \"')\n .replace(/\"\\}$/, '\" }');\n\n console.log(` ${name} ${formattedTargets}`);\n } else {\n console.log(` ${name}`);\n }\n }\n },\n };\n });\n}\n\nfunction mapGetOr(map, key, getDefault) {\n let val = map.get(key);\n if (val === undefined) {\n val = getDefault();\n map.set(key, val);\n }\n return val;\n}\n\nfunction isEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\n"],"names":["types","t","template","_babel","default","intersection","a","b","result","Set","forEach","v","has","add","object","key","Object","prototype","hasOwnProperty","call","resolve","path","resolved","isVariableDeclarator","get","isIdentifier","isReferencedIdentifier","binding","scope","getBinding","node","name","constant","resolveId","hasBinding","resolveKey","computed","isStringLiteral","value","parent","isMemberExpression","sym","isPure","evaluate","resolveSource","obj","id","placement","type","getImportSource","specifiers","length","source","getRequireSource","isExpressionStatement","expression","isCallExpression","callee","arguments","hoist","_blockHoist","createUtilsGetter","cache","prog","findParent","p","isProgram","injectGlobalImport","url","moduleName","storeAnonymous","isScript","statement","ast","importDeclaration","injectNamedImport","hint","storeNamed","generateUidIdentifier","importSpecifier","injectDefaultImport","importDefaultSpecifier","ImportsCachedInjector","constructor","resolver","getPreferredIndex","_imports","WeakMap","_anonymousImports","_lastImports","_resolver","_getPreferredIndex","programPath","getVal","_normalizeKey","imports","_ensure","sourceType","stringLiteral","_injectImport","Map","identifier","set","_this$_lastImports$ge","newIndex","lastImports","isPathStillValid","container","body","last","Infinity","undefined","i","data","entries","index","newPath","insertBefore","splice","insertAfter","push","unshiftContainer","map","Collection","collection","presetEnvSilentDebugHeader","stringifyTargetsMultiline","targets","JSON","stringify","prettifyTargets","patternToRegExp","pattern","RegExp","buildUnusedError","label","unused","original","String","join","buldDuplicatesError","duplicates","size","Array","from","validateIncludeExclude","provider","polyfills","includePatterns","excludePatterns","current","filter","regexp","matched","polyfill","keys","test","include","unusedInclude","exclude","unusedExclude","Error","applyMissingDependenciesDefaults","options","babelApi","missingDependencies","caller","log","inject","all","isRemoved","removed","parentPath","listKey","_path$parentPath$node","includes","_path$parentPath$node2","callProvider","property","kind","handleReferencedIdentifier","getBindingIdentifier","analyzeMemberExpression","handleAsMemberExpression","ReferencedIdentifier","MemberExpression|OptionalMemberExpression","objectIsGlobalIdentifier","isImportNamespaceSpecifier","skipObject","shouldSkip","ObjectPattern","isAssignmentExpression","isFunction","grand","isNewExpression","prop","isObjectProperty","BinaryExpression","operator","ImportDeclaration","Program","bodyPath","dirname","absoluteImports","basedir","logMissing","missingDeps","laterLogMissing","PossibleGlobalObjects","createMetaResolver","static","staticP","instance","instanceP","global","globalP","meta","desc","getTargets","_getTargets","resolveOptions","method","targetsOption","ignoreBrowserslistConfig","configPath","debug","shouldInjectPolyfill","providerOptions","isEmpty","methodName","targetsObj","isArray","browsers","instantiateProvider","factory","debugLog","polyfillsSupport","polyfillsNames","filterPolyfills","getUtils","deps","_polyfillsNames$get","_polyfillsNames","depsCache","api","babel","console","warn","providerName","shouldInject","isRequired","compatData","excludes","_debugLog","_debugLog$polyfillsSu","found","assertDependency","version","dep","mapGetOr","payload","_ref","utils","definePolyfillProvider","declare","assertVersion","traverse","createVisitor","visitor","visitors","merge","runtimeName","pre","file","_provider$pre","providers","apply","post","_provider$post","filename","_debugLog$polyfillsSu2","filteredTargets","getInclusionReasons","formattedTargets","replace","getDefault","val"],"mappings":";;;;;AAASA,EAAAA,KAAK,EAAIC,GAAC;AAAEC,EAAAA,QAAQ,EAARA,QAAAA;AAAQ,CAAA,GAAAC,MAAA,CAAAC,OAAA,IAAAD,MAAA,CAAA;AAKtB,SAASE,YAAYA,CAAIC,CAAS,EAAEC,CAAS,EAAU;AAC5D,EAAA,MAAMC,MAAM,GAAG,IAAIC,GAAG,EAAK,CAAA;AAC3BH,EAAAA,CAAC,CAACI,OAAO,CAACC,CAAC,IAAIJ,CAAC,CAACK,GAAG,CAACD,CAAC,CAAC,IAAIH,MAAM,CAACK,GAAG,CAACF,CAAC,CAAC,CAAC,CAAA;AACzC,EAAA,OAAOH,MAAM,CAAA;AACf,CAAA;AAEO,SAASI,KAAGA,CAACE,MAAW,EAAEC,GAAW,EAAE;EAC5C,OAAOC,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACL,MAAM,EAAEC,GAAG,CAAC,CAAA;AAC1D,CAAA;AAEA,SAASK,SAAOA,CACdC,IAAc,EACdC,QAAuB,GAAG,IAAIb,GAAG,EAAE,EACb;AACtB,EAAA,IAAIa,QAAQ,CAACV,GAAG,CAACS,IAAI,CAAC,EAAE,OAAA;AACxBC,EAAAA,QAAQ,CAACT,GAAG,CAACQ,IAAI,CAAC,CAAA;AAElB,EAAA,IAAIA,IAAI,CAACE,oBAAoB,EAAE,EAAE;IAC/B,IAAIF,IAAI,CAACG,GAAG,CAAC,IAAI,CAAC,CAACC,YAAY,EAAE,EAAE;MACjC,OAAOL,SAAO,CAACC,IAAI,CAACG,GAAG,CAAC,MAAM,CAAC,EAAEF,QAAQ,CAAC,CAAA;AAC5C,KAAA;AACF,GAAC,MAAM,IAAID,IAAI,CAACK,sBAAsB,EAAE,EAAE;AACxC,IAAA,MAAMC,OAAO,GAAGN,IAAI,CAACO,KAAK,CAACC,UAAU,CAACR,IAAI,CAACS,IAAI,CAACC,IAAI,CAAC,CAAA;AACrD,IAAA,IAAI,CAACJ,OAAO,EAAE,OAAON,IAAI,CAAA;AACzB,IAAA,IAAI,CAACM,OAAO,CAACK,QAAQ,EAAE,OAAA;AACvB,IAAA,OAAOZ,SAAO,CAACO,OAAO,CAACN,IAAI,EAAEC,QAAQ,CAAC,CAAA;AACxC,GAAA;AACA,EAAA,OAAOD,IAAI,CAAA;AACb,CAAA;AAEA,SAASY,SAASA,CAACZ,IAAc,EAAU;EACzC,IACEA,IAAI,CAACI,YAAY,EAAE,IACnB,CAACJ,IAAI,CAACO,KAAK,CAACM,UAAU,CAACb,IAAI,CAACS,IAAI,CAACC,IAAI,iBAAkB,IAAI,CAAC,EAC5D;AACA,IAAA,OAAOV,IAAI,CAACS,IAAI,CAACC,IAAI,CAAA;AACvB,GAAA;AAEA,EAAA,MAAMT,QAAQ,GAAGF,SAAO,CAACC,IAAI,CAAC,CAAA;AAC9B,EAAA,IAAIC,QAAQ,IAARA,IAAAA,IAAAA,QAAQ,CAAEG,YAAY,EAAE,EAAE;AAC5B,IAAA,OAAOH,QAAQ,CAACQ,IAAI,CAACC,IAAI,CAAA;AAC3B,GAAA;AACF,CAAA;AAEO,SAASI,UAAUA,CACxBd,IAA4C,EAC5Ce,QAAiB,GAAG,KAAK,EACzB;EACA,MAAM;AAAER,IAAAA,KAAAA;AAAM,GAAC,GAAGP,IAAI,CAAA;EACtB,IAAIA,IAAI,CAACgB,eAAe,EAAE,EAAE,OAAOhB,IAAI,CAACS,IAAI,CAACQ,KAAK,CAAA;AAClD,EAAA,MAAMb,YAAY,GAAGJ,IAAI,CAACI,YAAY,EAAE,CAAA;EACxC,IACEA,YAAY,IACZ,EAAEW,QAAQ,IAAKf,IAAI,CAACkB,MAAM,CAAwBH,QAAQ,CAAC,EAC3D;AACA,IAAA,OAAOf,IAAI,CAACS,IAAI,CAACC,IAAI,CAAA;AACvB,GAAA;AAEA,EAAA,IACEK,QAAQ,IACRf,IAAI,CAACmB,kBAAkB,EAAE,IACzBnB,IAAI,CAACG,GAAG,CAAC,QAAQ,CAAC,CAACC,YAAY,CAAC;AAAEM,IAAAA,IAAI,EAAE,QAAA;AAAS,GAAC,CAAC,IACnD,CAACH,KAAK,CAACM,UAAU,CAAC,QAAQ,iBAAkB,IAAI,CAAC,EACjD;AACA,IAAA,MAAMO,GAAG,GAAGN,UAAU,CAACd,IAAI,CAACG,GAAG,CAAC,UAAU,CAAC,EAAEH,IAAI,CAACS,IAAI,CAACM,QAAQ,CAAC,CAAA;AAChE,IAAA,IAAIK,GAAG,EAAE,OAAO,SAAS,GAAGA,GAAG,CAAA;AACjC,GAAA;EAEA,IACEhB,YAAY,GACRG,KAAK,CAACM,UAAU,CAACb,IAAI,CAACS,IAAI,CAACC,IAAI,iBAAkB,IAAI,CAAC,GACtDV,IAAI,CAACqB,MAAM,EAAE,EACjB;IACA,MAAM;AAAEJ,MAAAA,KAAAA;AAAM,KAAC,GAAGjB,IAAI,CAACsB,QAAQ,EAAE,CAAA;AACjC,IAAA,IAAI,OAAOL,KAAK,KAAK,QAAQ,EAAE,OAAOA,KAAK,CAAA;AAC7C,GAAA;AACF,CAAA;AAEO,SAASM,aAAaA,CAACC,GAAa,EAGzC;AACA,EAAA,IACEA,GAAG,CAACL,kBAAkB,EAAE,IACxBK,GAAG,CAACrB,GAAG,CAAC,UAAU,CAAC,CAACC,YAAY,CAAC;AAAEM,IAAAA,IAAI,EAAE,WAAA;AAAY,GAAC,CAAC,EACvD;IACA,MAAMe,EAAE,GAAGb,SAAS,CAACY,GAAG,CAACrB,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEvC,IAAA,IAAIsB,EAAE,EAAE;MACN,OAAO;QAAEA,EAAE;AAAEC,QAAAA,SAAS,EAAE,WAAA;OAAa,CAAA;AACvC,KAAA;IACA,OAAO;AAAED,MAAAA,EAAE,EAAE,IAAI;AAAEC,MAAAA,SAAS,EAAE,IAAA;KAAM,CAAA;AACtC,GAAA;AAEA,EAAA,MAAMD,EAAE,GAAGb,SAAS,CAACY,GAAG,CAAC,CAAA;AACzB,EAAA,IAAIC,EAAE,EAAE;IACN,OAAO;MAAEA,EAAE;AAAEC,MAAAA,SAAS,EAAE,QAAA;KAAU,CAAA;AACpC,GAAA;AAEA,EAAA,MAAM1B,IAAI,GAAGD,SAAO,CAACyB,GAAG,CAAC,CAAA;AACzB,EAAA,QAAQxB,IAAI,IAAA,IAAA,GAAA,KAAA,CAAA,GAAJA,IAAI,CAAE2B,IAAI;AAChB,IAAA,KAAK,eAAe;MAClB,OAAO;AAAEF,QAAAA,EAAE,EAAE,QAAQ;AAAEC,QAAAA,SAAS,EAAE,WAAA;OAAa,CAAA;AACjD,IAAA,KAAK,oBAAoB;MACvB,OAAO;AAAED,QAAAA,EAAE,EAAE,UAAU;AAAEC,QAAAA,SAAS,EAAE,WAAA;OAAa,CAAA;AACnD,IAAA,KAAK,eAAe;MAClB,OAAO;AAAED,QAAAA,EAAE,EAAE,QAAQ;AAAEC,QAAAA,SAAS,EAAE,WAAA;OAAa,CAAA;AACjD,IAAA,KAAK,eAAe;MAClB,OAAO;AAAED,QAAAA,EAAE,EAAE,QAAQ;AAAEC,QAAAA,SAAS,EAAE,WAAA;OAAa,CAAA;AACjD,IAAA,KAAK,gBAAgB;MACnB,OAAO;AAAED,QAAAA,EAAE,EAAE,SAAS;AAAEC,QAAAA,SAAS,EAAE,WAAA;OAAa,CAAA;AAClD,IAAA,KAAK,kBAAkB;MACrB,OAAO;AAAED,QAAAA,EAAE,EAAE,QAAQ;AAAEC,QAAAA,SAAS,EAAE,WAAA;OAAa,CAAA;AACjD,IAAA,KAAK,iBAAiB;MACpB,OAAO;AAAED,QAAAA,EAAE,EAAE,OAAO;AAAEC,QAAAA,SAAS,EAAE,WAAA;OAAa,CAAA;AAClD,GAAA;EAEA,OAAO;AAAED,IAAAA,EAAE,EAAE,IAAI;AAAEC,IAAAA,SAAS,EAAE,IAAA;GAAM,CAAA;AACtC,CAAA;AAEO,SAASE,eAAeA,CAAC;AAAEnB,EAAAA,IAAAA;AAAoC,CAAC,EAAE;AACvE,EAAA,IAAIA,IAAI,CAACoB,UAAU,CAACC,MAAM,KAAK,CAAC,EAAE,OAAOrB,IAAI,CAACsB,MAAM,CAACd,KAAK,CAAA;AAC5D,CAAA;AAEO,SAASe,gBAAgBA,CAAC;AAAEvB,EAAAA,IAAAA;AAA4B,CAAC,EAAE;AAChE,EAAA,IAAI,CAAC7B,GAAC,CAACqD,qBAAqB,CAACxB,IAAI,CAAC,EAAE,OAAA;EACpC,MAAM;AAAEyB,IAAAA,UAAAA;AAAW,GAAC,GAAGzB,IAAI,CAAA;AAC3B,EAAA,IACE7B,GAAC,CAACuD,gBAAgB,CAACD,UAAU,CAAC,IAC9BtD,GAAC,CAACwB,YAAY,CAAC8B,UAAU,CAACE,MAAM,CAAC,IACjCF,UAAU,CAACE,MAAM,CAAC1B,IAAI,KAAK,SAAS,IACpCwB,UAAU,CAACG,SAAS,CAACP,MAAM,KAAK,CAAC,IACjClD,GAAC,CAACoC,eAAe,CAACkB,UAAU,CAACG,SAAS,CAAC,CAAC,CAAC,CAAC,EAC1C;AACA,IAAA,OAAOH,UAAU,CAACG,SAAS,CAAC,CAAC,CAAC,CAACpB,KAAK,CAAA;AACtC,GAAA;AACF,CAAA;AAEA,SAASqB,KAAKA,CAAmB7B,IAAO,EAAK;AAC3C;EACAA,IAAI,CAAC8B,WAAW,GAAG,CAAC,CAAA;AACpB,EAAA,OAAO9B,IAAI,CAAA;AACb,CAAA;AAEO,SAAS+B,iBAAiBA,CAACC,KAA4B,EAAE;AAC9D,EAAA,OAAQzC,IAAc,IAAY;AAChC,IAAA,MAAM0C,IAAI,GAAG1C,IAAI,CAAC2C,UAAU,CAACC,CAAC,IAAIA,CAAC,CAACC,SAAS,EAAE,CAAwB,CAAA;IAEvE,OAAO;AACLC,MAAAA,kBAAkBA,CAACC,GAAG,EAAEC,UAAU,EAAE;AAClCP,QAAAA,KAAK,CAACQ,cAAc,CAACP,IAAI,EAAEK,GAAG,EAAEC,UAAU,EAAE,CAACE,QAAQ,EAAEnB,MAAM,KAAK;AAChE,UAAA,OAAOmB,QAAQ,GACXrE,QAAQ,CAACsE,SAAS,CAACC,GAAG,CAAWrB,QAAAA,EAAAA,MAAM,CAAG,CAAA,CAAA,GAC1CnD,GAAC,CAACyE,iBAAiB,CAAC,EAAE,EAAEtB,MAAM,CAAC,CAAA;AACrC,SAAC,CAAC,CAAA;OACH;MACDuB,iBAAiBA,CAACP,GAAG,EAAErC,IAAI,EAAE6C,IAAI,GAAG7C,IAAI,EAAEsC,UAAU,EAAE;AACpD,QAAA,OAAOP,KAAK,CAACe,UAAU,CACrBd,IAAI,EACJK,GAAG,EACHrC,IAAI,EACJsC,UAAU,EACV,CAACE,QAAQ,EAAEnB,MAAM,EAAErB,IAAI,KAAK;UAC1B,MAAMe,EAAE,GAAGiB,IAAI,CAACnC,KAAK,CAACkD,qBAAqB,CAACF,IAAI,CAAC,CAAA;UACjD,OAAO;YACL9C,IAAI,EAAEyC,QAAQ,GACVZ,KAAK,CAACzD,QAAQ,CAACsE,SAAS,CAACC,GAAG,CAAA;AAC9C,sBAAA,EAAwB3B,EAAE,CAAA,WAAA,EAAcM,MAAM,CAAA,EAAA,EAAKrB,IAAI,CAAA;AACvD,gBAAA,CAAiB,CAAC,GACA9B,GAAC,CAACyE,iBAAiB,CAAC,CAACzE,GAAC,CAAC8E,eAAe,CAACjC,EAAE,EAAEf,IAAI,CAAC,CAAC,EAAEqB,MAAM,CAAC;YAC9DrB,IAAI,EAAEe,EAAE,CAACf,IAAAA;WACV,CAAA;AACH,SACF,CAAC,CAAA;OACF;MACDiD,mBAAmBA,CAACZ,GAAG,EAAEQ,IAAI,GAAGR,GAAG,EAAEC,UAAU,EAAE;AAC/C,QAAA,OAAOP,KAAK,CAACe,UAAU,CACrBd,IAAI,EACJK,GAAG,EACH,SAAS,EACTC,UAAU,EACV,CAACE,QAAQ,EAAEnB,MAAM,KAAK;UACpB,MAAMN,EAAE,GAAGiB,IAAI,CAACnC,KAAK,CAACkD,qBAAqB,CAACF,IAAI,CAAC,CAAA;UACjD,OAAO;AACL9C,YAAAA,IAAI,EAAEyC,QAAQ,GACVZ,KAAK,CAACzD,QAAQ,CAACsE,SAAS,CAACC,GAAG,CAAO3B,IAAAA,EAAAA,EAAE,cAAcM,MAAM,CAAA,CAAA,CAAG,CAAC,GAC7DnD,GAAC,CAACyE,iBAAiB,CAAC,CAACzE,GAAC,CAACgF,sBAAsB,CAACnC,EAAE,CAAC,CAAC,EAAEM,MAAM,CAAC;YAC/DrB,IAAI,EAAEe,EAAE,CAACf,IAAAA;WACV,CAAA;AACH,SACF,CAAC,CAAA;AACH,OAAA;KACD,CAAA;GACF,CAAA;AACH;;;ACtMS/B,EAAAA,KAAK,EAAIC,CAAAA;AAAC,CAAA,GAAAE,MAAA,CAAAC,OAAA,IAAAD,MAAA,CAAA;AAIJ,MAAM+E,qBAAqB,CAAC;AAUzCC,EAAAA,WAAWA,CACTC,QAAiC,EACjCC,iBAA0C,EAC1C;AACA,IAAA,IAAI,CAACC,QAAQ,GAAG,IAAIC,OAAO,EAAE,CAAA;AAC7B,IAAA,IAAI,CAACC,iBAAiB,GAAG,IAAID,OAAO,EAAE,CAAA;AACtC,IAAA,IAAI,CAACE,YAAY,GAAG,IAAIF,OAAO,EAAE,CAAA;IACjC,IAAI,CAACG,SAAS,GAAGN,QAAQ,CAAA;IACzB,IAAI,CAACO,kBAAkB,GAAGN,iBAAiB,CAAA;AAC7C,GAAA;EAEAf,cAAcA,CACZsB,WAAgC,EAChCxB,GAAW,EACXC,UAAkB,EAClBwB,MAGgC,EAChC;IACA,MAAM9E,GAAG,GAAG,IAAI,CAAC+E,aAAa,CAACF,WAAW,EAAExB,GAAG,CAAC,CAAA;AAChD,IAAA,MAAM2B,OAAO,GAAG,IAAI,CAACC,OAAO,CAC1B,IAAI,CAACR,iBAAiB,EACtBI,WAAW,EACXnF,GACF,CAAC,CAAA;AAED,IAAA,IAAIsF,OAAO,CAACnF,GAAG,CAACG,GAAG,CAAC,EAAE,OAAA;IAEtB,MAAMe,IAAI,GAAG+D,MAAM,CACjBD,WAAW,CAAC9D,IAAI,CAACmE,UAAU,KAAK,QAAQ,EACxChG,CAAC,CAACiG,aAAa,CAAC,IAAI,CAACR,SAAS,CAACtB,GAAG,CAAC,CACrC,CAAC,CAAA;AACD2B,IAAAA,OAAO,CAAClF,GAAG,CAACE,GAAG,CAAC,CAAA;IAChB,IAAI,CAACoF,aAAa,CAACP,WAAW,EAAE9D,IAAI,EAAEuC,UAAU,CAAC,CAAA;AACnD,GAAA;EAEAQ,UAAUA,CACRe,WAAgC,EAChCxB,GAAW,EACXrC,IAAY,EACZsC,UAAkB,EAClBwB,MAMwD,EACxD;IACA,MAAM9E,GAAG,GAAG,IAAI,CAAC+E,aAAa,CAACF,WAAW,EAAExB,GAAG,EAAErC,IAAI,CAAC,CAAA;AACtD,IAAA,MAAMgE,OAAO,GAAG,IAAI,CAACC,OAAO,CAC1B,IAAI,CAACV,QAAQ,EACbM,WAAW,EACXQ,GACF,CAAC,CAAA;AAED,IAAA,IAAI,CAACL,OAAO,CAACnF,GAAG,CAACG,GAAG,CAAC,EAAE;MACrB,MAAM;QAAEe,IAAI;AAAEC,QAAAA,IAAI,EAAEe,EAAAA;AAAG,OAAC,GAAG+C,MAAM,CAC/BD,WAAW,CAAC9D,IAAI,CAACmE,UAAU,KAAK,QAAQ,EACxChG,CAAC,CAACiG,aAAa,CAAC,IAAI,CAACR,SAAS,CAACtB,GAAG,CAAC,CAAC,EACpCnE,CAAC,CAACoG,UAAU,CAACtE,IAAI,CACnB,CAAC,CAAA;AACDgE,MAAAA,OAAO,CAACO,GAAG,CAACvF,GAAG,EAAE+B,EAAE,CAAC,CAAA;MACpB,IAAI,CAACqD,aAAa,CAACP,WAAW,EAAE9D,IAAI,EAAEuC,UAAU,CAAC,CAAA;AACnD,KAAA;IAEA,OAAOpE,CAAC,CAACoG,UAAU,CAACN,OAAO,CAACvE,GAAG,CAACT,GAAG,CAAC,CAAC,CAAA;AACvC,GAAA;AAEAoF,EAAAA,aAAaA,CACXP,WAAgC,EAChC9D,IAAiC,EACjCuC,UAAkB,EAClB;AAAA,IAAA,IAAAkC,qBAAA,CAAA;AACA,IAAA,MAAMC,QAAQ,GAAG,IAAI,CAACb,kBAAkB,CAACtB,UAAU,CAAC,CAAA;AACpD,IAAA,MAAMoC,WAAW,GAAA,CAAAF,qBAAA,GAAG,IAAI,CAACd,YAAY,CAACjE,GAAG,CAACoE,WAAW,CAAC,KAAAW,IAAAA,GAAAA,qBAAA,GAAI,EAAE,CAAA;AAE5D,IAAA,MAAMG,gBAAgB,GAAIrF,IAAc,IACtCA,IAAI,CAACS,IAAI;AACT;AACA;AACAT,IAAAA,IAAI,CAACkB,MAAM,KAAKqD,WAAW,CAAC9D,IAAI,IAChCT,IAAI,CAACsF,SAAS,KAAKf,WAAW,CAAC9D,IAAI,CAAC8E,IAAI,CAAA;AAE1C,IAAA,IAAIC,IAAc,CAAA;IAElB,IAAIL,QAAQ,KAAKM,QAAQ,EAAE;AACzB;AACA,MAAA,IAAIL,WAAW,CAACtD,MAAM,GAAG,CAAC,EAAE;QAC1B0D,IAAI,GAAGJ,WAAW,CAACA,WAAW,CAACtD,MAAM,GAAG,CAAC,CAAC,CAAC9B,IAAI,CAAA;QAC/C,IAAI,CAACqF,gBAAgB,CAACG,IAAI,CAAC,EAAEA,IAAI,GAAGE,SAAS,CAAA;AAC/C,OAAA;AACF,KAAC,MAAM;AACL,MAAA,KAAK,MAAM,CAACC,CAAC,EAAEC,IAAI,CAAC,IAAIR,WAAW,CAACS,OAAO,EAAE,EAAE;QAC7C,MAAM;UAAE7F,IAAI;AAAE8F,UAAAA,KAAAA;AAAM,SAAC,GAAGF,IAAI,CAAA;AAC5B,QAAA,IAAIP,gBAAgB,CAACrF,IAAI,CAAC,EAAE;UAC1B,IAAImF,QAAQ,GAAGW,KAAK,EAAE;YACpB,MAAM,CAACC,OAAO,CAAC,GAAG/F,IAAI,CAACgG,YAAY,CAACvF,IAAI,CAAC,CAAA;AACzC2E,YAAAA,WAAW,CAACa,MAAM,CAACN,CAAC,EAAE,CAAC,EAAE;AAAE3F,cAAAA,IAAI,EAAE+F,OAAO;AAAED,cAAAA,KAAK,EAAEX,QAAAA;AAAS,aAAC,CAAC,CAAA;AAC5D,YAAA,OAAA;AACF,WAAA;AACAK,UAAAA,IAAI,GAAGxF,IAAI,CAAA;AACb,SAAA;AACF,OAAA;AACF,KAAA;AAEA,IAAA,IAAIwF,IAAI,EAAE;MACR,MAAM,CAACO,OAAO,CAAC,GAAGP,IAAI,CAACU,WAAW,CAACzF,IAAI,CAAC,CAAA;MACxC2E,WAAW,CAACe,IAAI,CAAC;AAAEnG,QAAAA,IAAI,EAAE+F,OAAO;AAAED,QAAAA,KAAK,EAAEX,QAAAA;AAAS,OAAC,CAAC,CAAA;AACtD,KAAC,MAAM;AACL,MAAA,MAAM,CAACY,OAAO,CAAC,GAAGxB,WAAW,CAAC6B,gBAAgB,CAAC,MAAM,EAAE,CAAC3F,IAAI,CAAC,CAAC,CAAA;AAC9D,MAAA,IAAI,CAAC2D,YAAY,CAACa,GAAG,CAACV,WAAW,EAAE,CAAC;AAAEvE,QAAAA,IAAI,EAAE+F,OAAO;AAAED,QAAAA,KAAK,EAAEX,QAAAA;AAAS,OAAC,CAAC,CAAC,CAAA;AAC1E,KAAA;AACF,GAAA;AAEAR,EAAAA,OAAOA,CACL0B,GAAoC,EACpC9B,WAAgC,EAChC+B,UAAqC,EAClC;AACH,IAAA,IAAIC,UAAU,GAAGF,GAAG,CAAClG,GAAG,CAACoE,WAAW,CAAC,CAAA;IACrC,IAAI,CAACgC,UAAU,EAAE;AACfA,MAAAA,UAAU,GAAG,IAAID,UAAU,EAAE,CAAA;AAC7BD,MAAAA,GAAG,CAACpB,GAAG,CAACV,WAAW,EAAEgC,UAAU,CAAC,CAAA;AAClC,KAAA;AACA,IAAA,OAAOA,UAAU,CAAA;AACnB,GAAA;EAEA9B,aAAaA,CACXF,WAAgC,EAChCxB,GAAW,EACXrC,IAAY,GAAG,EAAE,EACT;IACR,MAAM;AAAEkE,MAAAA,UAAAA;KAAY,GAAGL,WAAW,CAAC9D,IAAI,CAAA;;AAEvC;AACA;AACA;IACA,OAAO,CAAA,EAAGC,IAAI,IAAIkE,UAAU,KAAK7B,GAAG,CAAA,EAAA,EAAKrC,IAAI,CAAE,CAAA,CAAA;AACjD,GAAA;AACF;;ACxJO,MAAM8F,0BAA0B,GACrC,+EAA+E,CAAA;AAE1E,SAASC,yBAAyBA,CAACC,OAAgB,EAAU;AAClE,EAAA,OAAOC,IAAI,CAACC,SAAS,CAACC,eAAe,CAACH,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;AAC1D;;ACFA,SAASI,eAAeA,CAACC,OAAgB,EAAiB;AACxD,EAAA,IAAIA,OAAO,YAAYC,MAAM,EAAE,OAAOD,OAAO,CAAA;EAE7C,IAAI;AACF,IAAA,OAAO,IAAIC,MAAM,CAAC,CAAID,CAAAA,EAAAA,OAAO,GAAG,CAAC,CAAA;AACnC,GAAC,CAAC,MAAM;AACN,IAAA,OAAO,IAAI,CAAA;AACb,GAAA;AACF,CAAA;AAEA,SAASE,gBAAgBA,CAACC,KAAK,EAAEC,MAAM,EAAE;AACvC,EAAA,IAAI,CAACA,MAAM,CAACrF,MAAM,EAAE,OAAO,EAAE,CAAA;EAC7B,OACE,CAAA,mBAAA,EAAsBoF,KAAK,CAAyC,uCAAA,CAAA,GACpEC,MAAM,CAACd,GAAG,CAACe,QAAQ,IAAI,OAAOC,MAAM,CAACD,QAAQ,CAAC,CAAA,EAAA,CAAI,CAAC,CAACE,IAAI,CAAC,EAAE,CAAC,CAAA;AAEhE,CAAA;AAEA,SAASC,mBAAmBA,CAACC,UAAU,EAAE;AACvC,EAAA,IAAI,CAACA,UAAU,CAACC,IAAI,EAAE,OAAO,EAAE,CAAA;AAC/B,EAAA,OACE,sFAAsF,GACtFC,KAAK,CAACC,IAAI,CAACH,UAAU,EAAE9G,IAAI,IAAI,CAAA,IAAA,EAAOA,IAAI,CAAI,EAAA,CAAA,CAAC,CAAC4G,IAAI,CAAC,EAAE,CAAC,CAAA;AAE5D,CAAA;AAEO,SAASM,sBAAsBA,CACpCC,QAAgB,EAChBC,SAA+B,EAC/BC,eAA0B,EAC1BC,eAA0B,EAC1B;AACA,EAAA,IAAIC,OAAO,CAAA;EACX,MAAMC,MAAM,GAAGnB,OAAO,IAAI;AACxB,IAAA,MAAMoB,MAAM,GAAGrB,eAAe,CAACC,OAAO,CAAC,CAAA;AACvC,IAAA,IAAI,CAACoB,MAAM,EAAE,OAAO,KAAK,CAAA;IAEzB,IAAIC,OAAO,GAAG,KAAK,CAAA;IACnB,KAAK,MAAMC,QAAQ,IAAIP,SAAS,CAACQ,IAAI,EAAE,EAAE;AACvC,MAAA,IAAIH,MAAM,CAACI,IAAI,CAACF,QAAQ,CAAC,EAAE;AACzBD,QAAAA,OAAO,GAAG,IAAI,CAAA;AACdH,QAAAA,OAAO,CAACzI,GAAG,CAAC6I,QAAQ,CAAC,CAAA;AACvB,OAAA;AACF,KAAA;AACA,IAAA,OAAO,CAACD,OAAO,CAAA;GAChB,CAAA;;AAED;AACA,EAAA,MAAMI,OAAO,GAAGP,OAAO,GAAG,IAAI7I,GAAG,EAAW,CAAA;AAC5C,EAAA,MAAMqJ,aAAa,GAAGf,KAAK,CAACC,IAAI,CAACI,eAAe,CAAC,CAACG,MAAM,CAACA,MAAM,CAAC,CAAA;;AAEhE;AACA,EAAA,MAAMQ,OAAO,GAAGT,OAAO,GAAG,IAAI7I,GAAG,EAAW,CAAA;AAC5C,EAAA,MAAMuJ,aAAa,GAAGjB,KAAK,CAACC,IAAI,CAACK,eAAe,CAAC,CAACE,MAAM,CAACA,MAAM,CAAC,CAAA;AAEhE,EAAA,MAAMV,UAAU,GAAGxI,YAAY,CAACwJ,OAAO,EAAEE,OAAO,CAAC,CAAA;AAEjD,EAAA,IACElB,UAAU,CAACC,IAAI,GAAG,CAAC,IACnBgB,aAAa,CAAC3G,MAAM,GAAG,CAAC,IACxB6G,aAAa,CAAC7G,MAAM,GAAG,CAAC,EACxB;IACA,MAAM,IAAI8G,KAAK,CACb,CAA+Bf,4BAAAA,EAAAA,QAAQ,uBAAuB,GAC5DZ,gBAAgB,CAAC,SAAS,EAAEwB,aAAa,CAAC,GAC1CxB,gBAAgB,CAAC,SAAS,EAAE0B,aAAa,CAAC,GAC1CpB,mBAAmB,CAACC,UAAU,CAClC,CAAC,CAAA;AACH,GAAA;EAEA,OAAO;IAAEgB,OAAO;AAAEE,IAAAA,OAAAA;GAAS,CAAA;AAC7B,CAAA;AAEO,SAASG,gCAAgCA,CAC9CC,OAAsB,EACtBC,QAAa,EACc;EAC3B,MAAM;AAAEC,IAAAA,mBAAmB,GAAG,EAAC;AAAE,GAAC,GAAGF,OAAO,CAAA;AAC5C,EAAA,IAAIE,mBAAmB,KAAK,KAAK,EAAE,OAAO,KAAK,CAAA;AAE/C,EAAA,MAAMC,MAAM,GAAGF,QAAQ,CAACE,MAAM,CAACA,MAAM,IAAIA,MAAM,IAAA,IAAA,GAAA,KAAA,CAAA,GAANA,MAAM,CAAEvI,IAAI,CAAC,CAAA;EAEtD,MAAM;AACJwI,IAAAA,GAAG,GAAG,UAAU;AAChBC,IAAAA,MAAM,GAAGF,MAAM,KAAK,qBAAqB,GAAG,OAAO,GAAG,QAAQ;AAC9DG,IAAAA,GAAG,GAAG,KAAA;AACR,GAAC,GAAGJ,mBAAmB,CAAA;EAEvB,OAAO;IAAEE,GAAG;IAAEC,MAAM;AAAEC,IAAAA,GAAAA;GAAK,CAAA;AAC7B;;AC1FA,SAASC,SAASA,CAACrJ,IAAc,EAAE;AACjC,EAAA,IAAIA,IAAI,CAACsJ,OAAO,EAAE,OAAO,IAAI,CAAA;AAC7B,EAAA,IAAI,CAACtJ,IAAI,CAACuJ,UAAU,EAAE,OAAO,KAAK,CAAA;EAClC,IAAIvJ,IAAI,CAACwJ,OAAO,EAAE;AAAA,IAAA,IAAAC,qBAAA,CAAA;AAChB,IAAA,IAAI,EAAAA,CAAAA,qBAAA,GAACzJ,IAAI,CAACuJ,UAAU,CAAC9I,IAAI,KAAAgJ,IAAAA,IAAAA,CAAAA,qBAAA,GAApBA,qBAAA,CAAuBzJ,IAAI,CAACwJ,OAAO,CAAC,KAAA,IAAA,IAApCC,qBAAA,CAAsCC,QAAQ,CAAC1J,IAAI,CAACS,IAAI,CAAC,CAAE,EAAA,OAAO,IAAI,CAAA;AAC7E,GAAC,MAAM;AAAA,IAAA,IAAAkJ,sBAAA,CAAA;IACL,IAAI,CAAA,CAAAA,sBAAA,GAAA3J,IAAI,CAACuJ,UAAU,CAAC9I,IAAI,KAApBkJ,IAAAA,GAAAA,KAAAA,CAAAA,GAAAA,sBAAA,CAAuB3J,IAAI,CAACN,GAAG,CAAC,MAAKM,IAAI,CAACS,IAAI,EAAE,OAAO,IAAI,CAAA;AACjE,GAAA;AACA,EAAA,OAAO4I,SAAS,CAACrJ,IAAI,CAACuJ,UAAU,CAAC,CAAA;AACnC,CAAA;AAEA,YAAgBK,YAA0B,IAAK;EAC7C,SAASC,QAAQA,CAACpK,MAAM,EAAEC,GAAG,EAAEgC,SAAS,EAAE1B,IAAI,EAAE;AAC9C,IAAA,OAAO4J,YAAY,CAAC;AAAEE,MAAAA,IAAI,EAAE,UAAU;MAAErK,MAAM;MAAEC,GAAG;AAAEgC,MAAAA,SAAAA;KAAW,EAAE1B,IAAI,CAAC,CAAA;AACzE,GAAA;EAEA,SAAS+J,0BAA0BA,CAAC/J,IAAI,EAAE;IACxC,MAAM;AACJS,MAAAA,IAAI,EAAE;AAAEC,QAAAA,IAAAA;OAAM;AACdH,MAAAA,KAAAA;AACF,KAAC,GAAGP,IAAI,CAAA;AACR,IAAA,IAAIO,KAAK,CAACyJ,oBAAoB,CAACtJ,IAAI,CAAC,EAAE,OAAA;AAEtCkJ,IAAAA,YAAY,CAAC;AAAEE,MAAAA,IAAI,EAAE,QAAQ;AAAEpJ,MAAAA,IAAAA;KAAM,EAAEV,IAAI,CAAC,CAAA;AAC9C,GAAA;EAEA,SAASiK,uBAAuBA,CAC9BjK,IAA+D,EAC/D;AACA,IAAA,MAAMN,GAAG,GAAGoB,UAAU,CAACd,IAAI,CAACG,GAAG,CAAC,UAAU,CAAC,EAAEH,IAAI,CAACS,IAAI,CAACM,QAAQ,CAAC,CAAA;IAChE,OAAO;MAAErB,GAAG;AAAEwK,MAAAA,wBAAwB,EAAE,CAAC,CAACxK,GAAG,IAAIA,GAAG,KAAK,WAAA;KAAa,CAAA;AACxE,GAAA;EAEA,OAAO;AACL;IACAyK,oBAAoBA,CAACnK,IAA4B,EAAE;MACjD,MAAM;AAAEuJ,QAAAA,UAAAA;AAAW,OAAC,GAAGvJ,IAAI,CAAA;MAC3B,IACEuJ,UAAU,CAACpI,kBAAkB,CAAC;QAAE1B,MAAM,EAAEO,IAAI,CAACS,IAAAA;OAAM,CAAC,IACpDwJ,uBAAuB,CAACV,UAAU,CAAC,CAACW,wBAAwB,EAC5D;AACA,QAAA,OAAA;AACF,OAAA;MACAH,0BAA0B,CAAC/J,IAAI,CAAC,CAAA;KACjC;IAED,2CAA2CoK,CACzCpK,IAA+D,EAC/D;MACA,MAAM;QAAEN,GAAG;AAAEwK,QAAAA,wBAAAA;AAAyB,OAAC,GAAGD,uBAAuB,CAACjK,IAAI,CAAC,CAAA;MACvE,IAAI,CAACkK,wBAAwB,EAAE,OAAA;AAE/B,MAAA,MAAMzK,MAAM,GAAGO,IAAI,CAACG,GAAG,CAAC,QAAQ,CAAC,CAAA;AACjC,MAAA,IAAIkK,wBAAwB,GAAG5K,MAAM,CAACW,YAAY,EAAE,CAAA;AACpD,MAAA,IAAIiK,wBAAwB,EAAE;AAC5B,QAAA,MAAM/J,OAAO,GAAGb,MAAM,CAACc,KAAK,CAACC,UAAU,CACpCf,MAAM,CAACgB,IAAI,CAAkBC,IAChC,CAAC,CAAA;AACD,QAAA,IAAIJ,OAAO,EAAE;AACX,UAAA,IAAIA,OAAO,CAACN,IAAI,CAACsK,0BAA0B,EAAE,EAAE,OAAA;AAC/CD,UAAAA,wBAAwB,GAAG,KAAK,CAAA;AAClC,SAAA;AACF,OAAA;AAEA,MAAA,MAAMtI,MAAM,GAAGR,aAAa,CAAC9B,MAAM,CAAC,CAAA;AACpC,MAAA,IAAI8K,UAAU,GAAGV,QAAQ,CAAC9H,MAAM,CAACN,EAAE,EAAE/B,GAAG,EAAEqC,MAAM,CAACL,SAAS,EAAE1B,IAAI,CAAC,CAAA;AACjEuK,MAAAA,UAAU,KAAVA,UAAU,GACR,CAACF,wBAAwB,IACzBrK,IAAI,CAACwK,UAAU,IACf/K,MAAM,CAAC+K,UAAU,IACjBnB,SAAS,CAAC5J,MAAM,CAAC,CAAA,CAAA;AAEnB,MAAA,IAAI,CAAC8K,UAAU,EAAER,0BAA0B,CAACtK,MAAM,CAAC,CAAA;KACpD;IAEDgL,aAAaA,CAACzK,IAA+B,EAAE;MAC7C,MAAM;QAAEuJ,UAAU;AAAErI,QAAAA,MAAAA;AAAO,OAAC,GAAGlB,IAAI,CAAA;AACnC,MAAA,IAAIwB,GAAG,CAAA;;AAEP;AACA,MAAA,IAAI+H,UAAU,CAACrJ,oBAAoB,EAAE,EAAE;AACrCsB,QAAAA,GAAG,GAAG+H,UAAU,CAACpJ,GAAG,CAAC,MAAM,CAAC,CAAA;AAC5B;AACF,OAAC,MAAM,IAAIoJ,UAAU,CAACmB,sBAAsB,EAAE,EAAE;AAC9ClJ,QAAAA,GAAG,GAAG+H,UAAU,CAACpJ,GAAG,CAAC,OAAO,CAAC,CAAA;AAC7B;AACA;AACF,OAAC,MAAM,IAAIoJ,UAAU,CAACoB,UAAU,EAAE,EAAE;AAClC,QAAA,MAAMC,KAAK,GAAGrB,UAAU,CAACA,UAAU,CAAA;QACnC,IAAIqB,KAAK,CAACzI,gBAAgB,EAAE,IAAIyI,KAAK,CAACC,eAAe,EAAE,EAAE;AACvD,UAAA,IAAID,KAAK,CAACnK,IAAI,CAAC2B,MAAM,KAAKlB,MAAM,EAAE;YAChCM,GAAG,GAAGoJ,KAAK,CAACzK,GAAG,CAAC,WAAW,CAAC,CAACH,IAAI,CAACN,GAAG,CAAC,CAAA;AACxC,WAAA;AACF,SAAA;AACF,OAAA;MAEA,IAAI+B,EAAE,GAAG,IAAI,CAAA;MACb,IAAIC,SAAS,GAAG,IAAI,CAAA;MACpB,IAAIF,GAAG,EAAE,CAAC;QAAEC,EAAE;AAAEC,QAAAA,SAAAA;AAAU,OAAC,GAAGH,aAAa,CAACC,GAAG,CAAC,EAAA;MAEhD,KAAK,MAAMsJ,IAAI,IAAI9K,IAAI,CAACG,GAAG,CAAC,YAAY,CAAC,EAAE;AACzC,QAAA,IAAI2K,IAAI,CAACC,gBAAgB,EAAE,EAAE;UAC3B,MAAMrL,GAAG,GAAGoB,UAAU,CAACgK,IAAI,CAAC3K,GAAG,CAAC,KAAK,CAAC,CAAC,CAAA;UACvC,IAAIT,GAAG,EAAEmK,QAAQ,CAACpI,EAAE,EAAE/B,GAAG,EAAEgC,SAAS,EAAEoJ,IAAI,CAAC,CAAA;AAC7C,SAAA;AACF,OAAA;KACD;IAEDE,gBAAgBA,CAAChL,IAAkC,EAAE;AACnD,MAAA,IAAIA,IAAI,CAACS,IAAI,CAACwK,QAAQ,KAAK,IAAI,EAAE,OAAA;MAEjC,MAAMlJ,MAAM,GAAGR,aAAa,CAACvB,IAAI,CAACG,GAAG,CAAC,OAAO,CAAC,CAAC,CAAA;AAC/C,MAAA,MAAMT,GAAG,GAAGoB,UAAU,CAACd,IAAI,CAACG,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAA;MAE9C,IAAI,CAACT,GAAG,EAAE,OAAA;AAEVkK,MAAAA,YAAY,CACV;AACEE,QAAAA,IAAI,EAAE,IAAI;QACVrK,MAAM,EAAEsC,MAAM,CAACN,EAAE;QACjB/B,GAAG;QACHgC,SAAS,EAAEK,MAAM,CAACL,SAAAA;OACnB,EACD1B,IACF,CAAC,CAAA;AACH,KAAA;GACD,CAAA;AACH,CAAC;;AC/HD,YAAgB4J,YAA0B,KAAM;EAC9CsB,iBAAiBA,CAAClL,IAAmC,EAAE;AACrD,IAAA,MAAM+B,MAAM,GAAGH,eAAe,CAAC5B,IAAI,CAAC,CAAA;IACpC,IAAI,CAAC+B,MAAM,EAAE,OAAA;AACb6H,IAAAA,YAAY,CAAC;AAAEE,MAAAA,IAAI,EAAE,QAAQ;AAAE/H,MAAAA,MAAAA;KAAQ,EAAE/B,IAAI,CAAC,CAAA;GAC/C;EACDmL,OAAOA,CAACnL,IAAyB,EAAE;IACjCA,IAAI,CAACG,GAAG,CAAC,MAAM,CAAC,CAACd,OAAO,CAAC+L,QAAQ,IAAI;AACnC,MAAA,MAAMrJ,MAAM,GAAGC,gBAAgB,CAACoJ,QAAQ,CAAC,CAAA;MACzC,IAAI,CAACrJ,MAAM,EAAE,OAAA;AACb6H,MAAAA,YAAY,CAAC;AAAEE,QAAAA,IAAI,EAAE,QAAQ;AAAE/H,QAAAA,MAAAA;OAAQ,EAAEqJ,QAAQ,CAAC,CAAA;AACpD,KAAC,CAAC,CAAA;AACJ,GAAA;AACF,CAAC,CAAC;;ACnBK,SAASrL,OAAOA,CACrBsL,OAAe,EACfrI,UAAkB,EAClBsI,eAAiC,EACzB;AACR,EAAA,IAAIA,eAAe,KAAK,KAAK,EAAE,OAAOtI,UAAU,CAAA;AAEhD,EAAA,MAAM,IAAI4F,KAAK,CACb,CAAA,uEAAA,CACF,CAAC,CAAA;AACH,CAAA;;AAEA;AACO,SAASrJ,GAAGA,CAACgM,OAAe,EAAE7K,IAAY,EAAE;AACjD,EAAA,OAAO,IAAI,CAAA;AACb,CAAA;;AAEA;AACO,SAAS8K,UAAUA,CAACC,WAAwB,EAAE,EAAC;;AAEtD;AACO,SAASC,eAAeA,CAACD,WAAwB,EAAE;;ACX1D,MAAME,qBAAqB,GAAG,IAAIvM,GAAG,CAAS,CAC5C,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,QAAQ,CACT,CAAC,CAAA;AAEa,SAASwM,kBAAkBA,CACxC9D,SAA+B,EAChB;EACf,MAAM;AAAE+D,IAAAA,MAAM,EAAEC,OAAO;AAAEC,IAAAA,QAAQ,EAAEC,SAAS;AAAEC,IAAAA,MAAM,EAAEC,OAAAA;AAAQ,GAAC,GAAGpE,SAAS,CAAA;AAE3E,EAAA,OAAOqE,IAAI,IAAI;AACb,IAAA,IAAIA,IAAI,CAACrC,IAAI,KAAK,QAAQ,IAAIoC,OAAO,IAAI3M,KAAG,CAAC2M,OAAO,EAAEC,IAAI,CAACzL,IAAI,CAAC,EAAE;MAChE,OAAO;AAAEoJ,QAAAA,IAAI,EAAE,QAAQ;AAAEsC,QAAAA,IAAI,EAAEF,OAAO,CAACC,IAAI,CAACzL,IAAI,CAAC;QAAEA,IAAI,EAAEyL,IAAI,CAACzL,IAAAA;OAAM,CAAA;AACtE,KAAA;IAEA,IAAIyL,IAAI,CAACrC,IAAI,KAAK,UAAU,IAAIqC,IAAI,CAACrC,IAAI,KAAK,IAAI,EAAE;MAClD,MAAM;QAAEpI,SAAS;QAAEjC,MAAM;AAAEC,QAAAA,GAAAA;AAAI,OAAC,GAAGyM,IAAI,CAAA;AAEvC,MAAA,IAAI1M,MAAM,IAAIiC,SAAS,KAAK,QAAQ,EAAE;AACpC,QAAA,IAAIwK,OAAO,IAAIP,qBAAqB,CAACpM,GAAG,CAACE,MAAM,CAAC,IAAIF,KAAG,CAAC2M,OAAO,EAAExM,GAAG,CAAC,EAAE;UACrE,OAAO;AAAEoK,YAAAA,IAAI,EAAE,QAAQ;AAAEsC,YAAAA,IAAI,EAAEF,OAAO,CAACxM,GAAG,CAAC;AAAEgB,YAAAA,IAAI,EAAEhB,GAAAA;WAAK,CAAA;AAC1D,SAAA;AAEA,QAAA,IAAIoM,OAAO,IAAIvM,KAAG,CAACuM,OAAO,EAAErM,MAAM,CAAC,IAAIF,KAAG,CAACuM,OAAO,CAACrM,MAAM,CAAC,EAAEC,GAAG,CAAC,EAAE;UAChE,OAAO;AACLoK,YAAAA,IAAI,EAAE,QAAQ;AACdsC,YAAAA,IAAI,EAAEN,OAAO,CAACrM,MAAM,CAAC,CAACC,GAAG,CAAC;AAC1BgB,YAAAA,IAAI,EAAE,CAAA,EAAGjB,MAAM,CAAA,CAAA,EAAIC,GAAG,CAAA,CAAA;WACvB,CAAA;AACH,SAAA;AACF,OAAA;MAEA,IAAIsM,SAAS,IAAIzM,KAAG,CAACyM,SAAS,EAAEtM,GAAG,CAAC,EAAE;QACpC,OAAO;AAAEoK,UAAAA,IAAI,EAAE,UAAU;AAAEsC,UAAAA,IAAI,EAAEJ,SAAS,CAACtM,GAAG,CAAC;UAAEgB,IAAI,EAAE,GAAGhB,GAAG,CAAA,CAAA;SAAI,CAAA;AACnE,OAAA;AACF,KAAA;GACD,CAAA;AACH;;AC1CA,MAAM2M,UAAU,GAAGC,WAAW,CAACvN,OAAO,IAAIuN,WAAW,CAAA;AA8BrD,SAASC,cAAcA,CACrBzD,OAAsB,EACtBC,QAAQ,EAWR;EACA,MAAM;IACJyD,MAAM;AACN9F,IAAAA,OAAO,EAAE+F,aAAa;IACtBC,wBAAwB;IACxBC,UAAU;IACVC,KAAK;IACLC,oBAAoB;IACpBvB,eAAe;IACf,GAAGwB,eAAAA;AACL,GAAC,GAAGhE,OAAO,CAAA;AAEX,EAAA,IAAIiE,OAAO,CAACjE,OAAO,CAAC,EAAE;IACpB,MAAM,IAAIF,KAAK,CACb,CAAA;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oFAAA,CACI,CAAC,CAAA;AACH,GAAA;AAEA,EAAA,IAAIoE,UAAU,CAAA;AACd,EAAA,IAAIR,MAAM,KAAK,cAAc,EAAEQ,UAAU,GAAG,aAAa,CAAC,KACrD,IAAIR,MAAM,KAAK,cAAc,EAAEQ,UAAU,GAAG,aAAa,CAAC,KAC1D,IAAIR,MAAM,KAAK,YAAY,EAAEQ,UAAU,GAAG,WAAW,CAAC,KACtD,IAAI,OAAOR,MAAM,KAAK,QAAQ,EAAE;AACnC,IAAA,MAAM,IAAI5D,KAAK,CAAC,0BAA0B,CAAC,CAAA;AAC7C,GAAC,MAAM;AACL,IAAA,MAAM,IAAIA,KAAK,CACb,CAAA,qDAAA,CAAuD,GACrD,CAAA,2BAAA,EAA8BjC,IAAI,CAACC,SAAS,CAAC4F,MAAM,CAAC,GACxD,CAAC,CAAA;AACH,GAAA;AAEA,EAAA,IAAI,OAAOK,oBAAoB,KAAK,UAAU,EAAE;AAC9C,IAAA,IAAI/D,OAAO,CAACN,OAAO,IAAIM,OAAO,CAACJ,OAAO,EAAE;AACtC,MAAA,MAAM,IAAIE,KAAK,CACb,CAAwD,sDAAA,CAAA,GACtD,kCACJ,CAAC,CAAA;AACH,KAAA;AACF,GAAC,MAAM,IAAIiE,oBAAoB,IAAI,IAAI,EAAE;AACvC,IAAA,MAAM,IAAIjE,KAAK,CACb,CAAA,sDAAA,CAAwD,GACtD,CAAA,WAAA,EAAcjC,IAAI,CAACC,SAAS,CAACiG,oBAAoB,CAAC,GACtD,CAAC,CAAA;AACH,GAAA;AAEA,EAAA,IACEvB,eAAe,IAAI,IAAI,IACvB,OAAOA,eAAe,KAAK,SAAS,IACpC,OAAOA,eAAe,KAAK,QAAQ,EACnC;AACA,IAAA,MAAM,IAAI1C,KAAK,CACb,CAAA,0DAAA,CAA4D,GAC1D,CAAA,WAAA,EAAcjC,IAAI,CAACC,SAAS,CAAC0E,eAAe,CAAC,GACjD,CAAC,CAAA;AACH,GAAA;AAEA,EAAA,IAAI5E,OAAO,CAAA;AAEX,EAAA;AACE;AACA;AACA+F,EAAAA,aAAa,IACbE,UAAU,IACVD,wBAAwB,EACxB;AACA,IAAA,MAAMO,UAAU,GACd,OAAOR,aAAa,KAAK,QAAQ,IAAI/E,KAAK,CAACwF,OAAO,CAACT,aAAa,CAAC,GAC7D;AAAEU,MAAAA,QAAQ,EAAEV,aAAAA;AAAc,KAAC,GAC3BA,aAAa,CAAA;AAEnB/F,IAAAA,OAAO,GAAG2F,UAAU,CAACY,UAAU,EAAE;MAC/BP,wBAAwB;AACxBC,MAAAA,UAAAA;AACF,KAAC,CAAC,CAAA;AACJ,GAAC,MAAM;AACLjG,IAAAA,OAAO,GAAGqC,QAAQ,CAACrC,OAAO,EAAE,CAAA;AAC9B,GAAA;EAEA,OAAO;IACL8F,MAAM;IACNQ,UAAU;IACVtG,OAAO;AACP4E,IAAAA,eAAe,EAAEA,eAAe,IAAfA,IAAAA,GAAAA,eAAe,GAAI,KAAK;IACzCuB,oBAAoB;IACpBD,KAAK,EAAE,CAAC,CAACA,KAAK;AACdE,IAAAA,eAAe,EAAEA,eAAAA;GAClB,CAAA;AACH,CAAA;AAEA,SAASM,mBAAmBA,CAC1BC,OAAkC,EAClCvE,OAAsB,EACtBE,mBAAmB,EACnBqC,OAAO,EACPiC,QAAQ,EACRvE,QAAQ,EACR;EACA,MAAM;IACJyD,MAAM;IACNQ,UAAU;IACVtG,OAAO;IACPkG,KAAK;IACLC,oBAAoB;IACpBC,eAAe;AACfxB,IAAAA,eAAAA;AACF,GAAC,GAAGiB,cAAc,CAAUzD,OAAO,EAAEC,QAAQ,CAAC,CAAA;;AAE9C;EACA,IAAIP,OAAO,EAAEE,OAAO,CAAA;AACpB,EAAA,IAAI6E,gBAAgB,CAAA;AACpB,EAAA,IAAIC,cAA+C,CAAA;AACnD,EAAA,IAAIC,eAAe,CAAA;EAEnB,MAAMC,QAAQ,GAAGlL,iBAAiB,CAChC,IAAIqB,qBAAqB,CACvBb,UAAU,IAAI2K,OAAY,CAACtC,OAAO,EAAErI,UAAU,EAAEsI,eAAe,CAAC,EAC/D5K,IAAY,IAAA;IAAA,IAAAkN,mBAAA,EAAAC,eAAA,CAAA;AAAA,IAAA,OAAA,CAAAD,mBAAA,GAAA,CAAAC,eAAA,GAAKL,cAAc,KAAdK,IAAAA,GAAAA,KAAAA,CAAAA,GAAAA,eAAA,CAAgB1N,GAAG,CAACO,IAAI,CAAC,KAAAkN,IAAAA,GAAAA,mBAAA,GAAInI,QAAQ,CAAA;AAAA,GACzD,CACF,CAAC,CAAA;AAED,EAAA,MAAMqI,SAAS,GAAG,IAAI/I,GAAG,EAAE,CAAA;AAE3B,EAAA,MAAMgJ,GAAgB,GAAG;AACvBC,IAAAA,KAAK,EAAEjF,QAAQ;IACf2E,QAAQ;IACRlB,MAAM,EAAE1D,OAAO,CAAC0D,MAAM;IACtB9F,OAAO;IACPkF,kBAAkB;IAClBiB,oBAAoBA,CAACnM,IAAI,EAAE;MACzB,IAAI8M,cAAc,KAAK9H,SAAS,EAAE;QAChC,MAAM,IAAIkD,KAAK,CACb,CAAyByE,sBAAAA,EAAAA,OAAO,CAAC3M,IAAI,CAAA,WAAA,CAAa,GAChD,CAAA,6DAAA,CACJ,CAAC,CAAA;AACH,OAAA;AACA,MAAA,IAAI,CAAC8M,cAAc,CAACjO,GAAG,CAACmB,IAAI,CAAC,EAAE;QAC7BuN,OAAO,CAACC,IAAI,CACV,CAAyBC,sBAAAA,EAAAA,YAAY,aAAa,GAChD,CAAA,kBAAA,EAAqBzN,IAAI,CAAA,EAAA,CAC7B,CAAC,CAAA;AACH,OAAA;MAEA,IAAI+M,eAAe,IAAI,CAACA,eAAe,CAAC/M,IAAI,CAAC,EAAE,OAAO,KAAK,CAAA;AAE3D,MAAA,IAAI0N,YAAY,GAAGC,UAAU,CAAC3N,IAAI,EAAEgG,OAAO,EAAE;AAC3C4H,QAAAA,UAAU,EAAEf,gBAAgB;AAC5B7D,QAAAA,QAAQ,EAAElB,OAAO;AACjB+F,QAAAA,QAAQ,EAAE7F,OAAAA;AACZ,OAAC,CAAC,CAAA;AAEF,MAAA,IAAImE,oBAAoB,EAAE;AACxBuB,QAAAA,YAAY,GAAGvB,oBAAoB,CAACnM,IAAI,EAAE0N,YAAY,CAAC,CAAA;AACvD,QAAA,IAAI,OAAOA,YAAY,KAAK,SAAS,EAAE;AACrC,UAAA,MAAM,IAAIxF,KAAK,CAAC,CAAA,4CAAA,CAA8C,CAAC,CAAA;AACjE,SAAA;AACF,OAAA;AAEA,MAAA,OAAOwF,YAAY,CAAA;KACpB;IACDxB,KAAKA,CAAClM,IAAI,EAAE;MAAA,IAAA8N,SAAA,EAAAC,qBAAA,CAAA;AACVnB,MAAAA,QAAQ,EAAE,CAACoB,KAAK,GAAG,IAAI,CAAA;AAEvB,MAAA,IAAI,CAAC9B,KAAK,IAAI,CAAClM,IAAI,EAAE,OAAA;MAErB,IAAI4M,QAAQ,EAAE,CAACxF,SAAS,CAACvI,GAAG,CAAC4O,YAAY,CAAC,EAAE,OAAA;MAC5Cb,QAAQ,EAAE,CAACxF,SAAS,CAACtI,GAAG,CAACkB,IAAI,CAAC,CAAA;AAC9B,MAAA,CAAA+N,qBAAA,GAAAD,CAAAA,SAAA,GAAAlB,QAAQ,EAAE,EAACC,gBAAgB,KAAA,IAAA,GAAAkB,qBAAA,GAA3BD,SAAA,CAAWjB,gBAAgB,GAAKA,gBAAgB,CAAA;KACjD;AACDoB,IAAAA,gBAAgBA,CAACjO,IAAI,EAAEkO,OAAO,GAAG,GAAG,EAAE;MACpC,IAAI5F,mBAAmB,KAAK,KAAK,EAAE,OAAA;AACnC,MAAA,IAAIsC,eAAe,EAAE;AACnB;AACA;AACA;AACA,QAAA,OAAA;AACF,OAAA;AAEA,MAAA,MAAMuD,GAAG,GAAGD,OAAO,KAAK,GAAG,GAAGlO,IAAI,GAAG,CAAGA,EAAAA,IAAI,CAAKkO,EAAAA,EAAAA,OAAO,CAAE,CAAA,CAAA;MAE1D,MAAMF,KAAK,GAAG1F,mBAAmB,CAACI,GAAG,GACjC,KAAK,GACL0F,QAAQ,CAAChB,SAAS,EAAE,CAAA,EAAGpN,IAAI,CAAA,IAAA,EAAO2K,OAAO,CAAA,CAAE,EAAE,MAC3CsC,GAAQ,CAAc,CACxB,CAAC,CAAA;MAEL,IAAI,CAACe,KAAK,EAAE;QACVpB,QAAQ,EAAE,CAAC7B,WAAW,CAACjM,GAAG,CAACqP,GAAG,CAAC,CAAA;AACjC,OAAA;AACF,KAAA;GACD,CAAA;EAED,MAAMhH,QAAQ,GAAGwF,OAAO,CAACU,GAAG,EAAEjB,eAAe,EAAEzB,OAAO,CAAC,CAAA;EACvD,MAAM8C,YAAY,GAAGtG,QAAQ,CAACnH,IAAI,IAAI2M,OAAO,CAAC3M,IAAI,CAAA;AAElD,EAAA,IAAI,OAAOmH,QAAQ,CAACmF,UAAU,CAAC,KAAK,UAAU,EAAE;IAC9C,MAAM,IAAIpE,KAAK,CACb,CAAA,KAAA,EAAQuF,YAAY,CAAmC3B,gCAAAA,EAAAA,MAAM,uBAC/D,CAAC,CAAA;AACH,GAAA;EAEA,IAAI9E,KAAK,CAACwF,OAAO,CAACrF,QAAQ,CAACC,SAAS,CAAC,EAAE;IACrC0F,cAAc,GAAG,IAAIzI,GAAG,CACtB8C,QAAQ,CAACC,SAAS,CAACzB,GAAG,CAAC,CAAC3F,IAAI,EAAEoF,KAAK,KAAK,CAACpF,IAAI,EAAEoF,KAAK,CAAC,CACvD,CAAC,CAAA;IACD2H,eAAe,GAAG5F,QAAQ,CAAC4F,eAAe,CAAA;AAC5C,GAAC,MAAM,IAAI5F,QAAQ,CAACC,SAAS,EAAE;IAC7B0F,cAAc,GAAG,IAAIzI,GAAG,CACtBpF,MAAM,CAAC2I,IAAI,CAACT,QAAQ,CAACC,SAAS,CAAC,CAACzB,GAAG,CAAC,CAAC3F,IAAI,EAAEoF,KAAK,KAAK,CAACpF,IAAI,EAAEoF,KAAK,CAAC,CACpE,CAAC,CAAA;IACDyH,gBAAgB,GAAG1F,QAAQ,CAACC,SAAS,CAAA;IACrC2F,eAAe,GAAG5F,QAAQ,CAAC4F,eAAe,CAAA;AAC5C,GAAC,MAAM;AACLD,IAAAA,cAAc,GAAG,IAAIzI,GAAG,EAAE,CAAA;AAC5B,GAAA;EAEA,CAAC;IAAEyD,OAAO;AAAEE,IAAAA,OAAAA;AAAQ,GAAC,GAAGd,sBAAsB,CAC5CuG,YAAY,EACZX,cAAc,EACdV,eAAe,CAACtE,OAAO,IAAI,EAAE,EAC7BsE,eAAe,CAACpE,OAAO,IAAI,EAC7B,CAAC,EAAA;AAED,EAAA,IAAIkB,YAAkE,CAAA;EACtE,IAAIoD,UAAU,KAAK,aAAa,EAAE;AAChCpD,IAAAA,YAAY,GAAGA,CAACmF,OAAO,EAAE/O,IAAI,KAAK;AAAA,MAAA,IAAAgP,IAAA,CAAA;AAChC,MAAA,MAAMC,KAAK,GAAGvB,QAAQ,CAAC1N,IAAI,CAAC,CAAA;AAC5B,MAAA,OAAA,CAAAgP,IAAA,GACGnH,QAAQ,CAACmF,UAAU,CAAC,CAAC+B,OAAO,EAAEE,KAAK,EAAEjP,IAAI,CAAC,KAAAgP,IAAAA,GAAAA,IAAA,GAAuB,KAAK,CAAA;KAE1E,CAAA;AACH,GAAC,MAAM;AACLpF,IAAAA,YAAY,GAAGA,CAACmF,OAAO,EAAE/O,IAAI,KAAK;AAChC,MAAA,MAAMiP,KAAK,GAAGvB,QAAQ,CAAC1N,IAAI,CAAC,CAAA;MAC5B6H,QAAQ,CAACmF,UAAU,CAAC,CAAC+B,OAAO,EAAEE,KAAK,EAAEjP,IAAI,CAAC,CAAA;AAC1C,MAAA,OAAO,KAAK,CAAA;KACb,CAAA;AACH,GAAA;EAEA,OAAO;IACL4M,KAAK;IACLJ,MAAM;IACN9F,OAAO;IACPmB,QAAQ;IACRsG,YAAY;AACZvE,IAAAA,YAAAA;GACD,CAAA;AACH,CAAA;AAEe,SAASsF,sBAAsBA,CAC5C7B,OAAkC,EAClC;EACA,OAAO8B,OAAO,CAAC,CAACpG,QAAQ,EAAED,OAAsB,EAAEuC,OAAe,KAAK;AACpEtC,IAAAA,QAAQ,CAACqG,aAAa,CAAC,0BAA0B,CAAC,CAAA;IAClD,MAAM;AAAEC,MAAAA,QAAAA;AAAS,KAAC,GAAGtG,QAAQ,CAAA;AAE7B,IAAA,IAAIuE,QAAQ,CAAA;AAEZ,IAAA,MAAMtE,mBAAmB,GAAGH,gCAAgC,CAC1DC,OAAO,EACPC,QACF,CAAC,CAAA;IAED,MAAM;MAAE6D,KAAK;MAAEJ,MAAM;MAAE9F,OAAO;MAAEmB,QAAQ;MAAEsG,YAAY;AAAEvE,MAAAA,YAAAA;AAAa,KAAC,GACpEwD,mBAAmB,CACjBC,OAAO,EACPvE,OAAO,EACPE,mBAAmB,EACnBqC,OAAO,EACP,MAAMiC,QAAQ,EACdvE,QACF,CAAC,CAAA;AAEH,IAAA,MAAMuG,aAAa,GAAG9C,MAAM,KAAK,cAAc,GAAGlN,KAAO,GAAGA,KAAO,CAAA;IAEnE,MAAMiQ,OAAO,GAAG1H,QAAQ,CAAC0H,OAAO,GAC5BF,QAAQ,CAACG,QAAQ,CAACC,KAAK,CAAC,CAACH,aAAa,CAAC1F,YAAY,CAAC,EAAE/B,QAAQ,CAAC0H,OAAO,CAAC,CAAC,GACxED,aAAa,CAAC1F,YAAY,CAAC,CAAA;AAE/B,IAAA,IAAIgD,KAAK,IAAIA,KAAK,KAAKpG,0BAA0B,EAAE;AACjDyH,MAAAA,OAAO,CAAC/E,GAAG,CAAC,CAAGiF,EAAAA,YAAY,oBAAoB,CAAC,CAAA;MAChDF,OAAO,CAAC/E,GAAG,CAAC,CAAA,iBAAA,EAAoBzC,yBAAyB,CAACC,OAAO,CAAC,CAAA,CAAE,CAAC,CAAA;AACrEuH,MAAAA,OAAO,CAAC/E,GAAG,CAAC,CAA4BsD,yBAAAA,EAAAA,MAAM,YAAY,CAAC,CAAA;AAC7D,KAAA;IAEA,MAAM;AAAEkD,MAAAA,WAAAA;AAAY,KAAC,GAAG7H,QAAQ,CAAA;IAEhC,OAAO;AACLnH,MAAAA,IAAI,EAAE,kBAAkB;MACxB6O,OAAO;MAEPI,GAAGA,CAACC,IAAI,EAAE;AAAA,QAAA,IAAAC,aAAA,CAAA;AACR,QAAA,IAAIH,WAAW,EAAE;AACf,UAAA,IACEE,IAAI,CAACzP,GAAG,CAAC,0BAA0B,CAAC,IACpCyP,IAAI,CAACzP,GAAG,CAAC,0BAA0B,CAAC,KAAKuP,WAAW,EACpD;AACAzB,YAAAA,OAAO,CAACC,IAAI,CACV,CAAA,gCAAA,CAAkC,GAChC,CAAK0B,EAAAA,EAAAA,IAAI,CAACzP,GAAG,CAAC,8BAA8B,CAAC,CAAA,CAAE,GAC/C,CAAQgO,KAAAA,EAAAA,YAAY,CAA4B,0BAAA,CAAA,GAChD,CAA2C,yCAAA,CAAA,GAC3C,CAAIyB,CAAAA,EAAAA,IAAI,CAACzP,GAAG,CAAC,0BAA0B,CAAC,CAAQuP,KAAAA,EAAAA,WAAW,CAAG,CAAA,CAAA,GAC9D,kCACJ,CAAC,CAAA;AACH,WAAC,MAAM;AACLE,YAAAA,IAAI,CAAC3K,GAAG,CAAC,0BAA0B,EAAEyK,WAAW,CAAC,CAAA;AACjDE,YAAAA,IAAI,CAAC3K,GAAG,CAAC,8BAA8B,EAAEkJ,YAAY,CAAC,CAAA;AACxD,WAAA;AACF,SAAA;AAEAb,QAAAA,QAAQ,GAAG;AACTxF,UAAAA,SAAS,EAAE,IAAI1I,GAAG,EAAE;AACpBmO,UAAAA,gBAAgB,EAAE7H,SAAS;AAC3BgJ,UAAAA,KAAK,EAAE,KAAK;AACZoB,UAAAA,SAAS,EAAE,IAAI1Q,GAAG,EAAE;UACpBqM,WAAW,EAAE,IAAIrM,GAAG,EAAC;SACtB,CAAA;AAED,QAAA,CAAAyQ,aAAA,GAAAhI,QAAQ,CAAC8H,GAAG,KAAA,IAAA,IAAZE,aAAA,CAAcE,KAAK,CAAC,IAAI,EAAE1N,SAAS,CAAC,CAAA;OACrC;AACD2N,MAAAA,IAAIA,GAAG;AAAA,QAAA,IAAAC,cAAA,CAAA;AACL,QAAA,CAAAA,cAAA,GAAApI,QAAQ,CAACmI,IAAI,KAAA,IAAA,IAAbC,cAAA,CAAeF,KAAK,CAAC,IAAI,EAAE1N,SAAS,CAAC,CAAA;QAErC,IAAI2G,mBAAmB,KAAK,KAAK,EAAE;AACjC,UAAA,IAAIA,mBAAmB,CAACE,GAAG,KAAK,UAAU,EAAE;AAC1CyE,YAAAA,UAAe,CAACL,QAAQ,CAAC7B,WAAW,CAAC,CAAA;AACvC,WAAC,MAAM;AACLkC,YAAAA,eAAoB,CAACL,QAAQ,CAAC7B,WAAW,CAAC,CAAA;AAC5C,WAAA;AACF,SAAA;QAEA,IAAI,CAACmB,KAAK,EAAE,OAAA;AAEZ,QAAA,IAAI,IAAI,CAACsD,QAAQ,EAAEjC,OAAO,CAAC/E,GAAG,CAAC,CAAM,GAAA,EAAA,IAAI,CAACgH,QAAQ,GAAG,CAAC,CAAA;AAEtD,QAAA,IAAI5C,QAAQ,CAACxF,SAAS,CAACL,IAAI,KAAK,CAAC,EAAE;UACjCwG,OAAO,CAAC/E,GAAG,CACTsD,MAAM,KAAK,cAAc,GACrBc,QAAQ,CAACoB,KAAK,GACZ,8BAA8BP,YAAY,CAAA,mCAAA,CAAqC,GAC/E,CAA2BA,wBAAAA,EAAAA,YAAY,+BAA+B,GACxE,CAAA,oCAAA,EAAuCA,YAAY,CAAA,mCAAA,CACzD,CAAC,CAAA;AAED,UAAA,OAAA;AACF,SAAA;QAEA,IAAI3B,MAAM,KAAK,cAAc,EAAE;UAC7ByB,OAAO,CAAC/E,GAAG,CACT,CAAA,IAAA,EAAOiF,YAAY,CAAyC,uCAAA,CAAA,GAC1D,0BACJ,CAAC,CAAA;AACH,SAAC,MAAM;AACLF,UAAAA,OAAO,CAAC/E,GAAG,CACT,CAAOiF,IAAAA,EAAAA,YAAY,0CACrB,CAAC,CAAA;AACH,SAAA;AAEA,QAAA,KAAK,MAAMzN,IAAI,IAAI4M,QAAQ,CAACxF,SAAS,EAAE;AAAA,UAAA,IAAAqI,sBAAA,CAAA;UACrC,IAAAA,CAAAA,sBAAA,GAAI7C,QAAQ,CAACC,gBAAgB,aAAzB4C,sBAAA,CAA4BzP,IAAI,CAAC,EAAE;YACrC,MAAM0P,eAAe,GAAGC,mBAAmB,CACzC3P,IAAI,EACJgG,OAAO,EACP4G,QAAQ,CAACC,gBACX,CAAC,CAAA;AAED,YAAA,MAAM+C,gBAAgB,GAAG3J,IAAI,CAACC,SAAS,CAACwJ,eAAe,CAAC,CACrDG,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CACnBA,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,CACtBA,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;YAEzBtC,OAAO,CAAC/E,GAAG,CAAC,CAAA,EAAA,EAAKxI,IAAI,CAAI4P,CAAAA,EAAAA,gBAAgB,EAAE,CAAC,CAAA;AAC9C,WAAC,MAAM;AACLrC,YAAAA,OAAO,CAAC/E,GAAG,CAAC,CAAKxI,EAAAA,EAAAA,IAAI,EAAE,CAAC,CAAA;AAC1B,WAAA;AACF,SAAA;AACF,OAAA;KACD,CAAA;AACH,GAAC,CAAC,CAAA;AACJ,CAAA;AAEA,SAASoO,QAAQA,CAACzI,GAAG,EAAE3G,GAAG,EAAE8Q,UAAU,EAAE;AACtC,EAAA,IAAIC,GAAG,GAAGpK,GAAG,CAAClG,GAAG,CAACT,GAAG,CAAC,CAAA;EACtB,IAAI+Q,GAAG,KAAK/K,SAAS,EAAE;IACrB+K,GAAG,GAAGD,UAAU,EAAE,CAAA;AAClBnK,IAAAA,GAAG,CAACpB,GAAG,CAACvF,GAAG,EAAE+Q,GAAG,CAAC,CAAA;AACnB,GAAA;AACA,EAAA,OAAOA,GAAG,CAAA;AACZ,CAAA;AAEA,SAAS1D,OAAOA,CAACvL,GAAG,EAAE;EACpB,OAAO7B,MAAM,CAAC2I,IAAI,CAAC9G,GAAG,CAAC,CAACM,MAAM,KAAK,CAAC,CAAA;AACtC;;;;"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/esm/index.node.mjs b/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/esm/index.node.mjs deleted file mode 100644 index c3f8d73c..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/esm/index.node.mjs +++ /dev/null @@ -1,880 +0,0 @@ -import { declare } from '@babel/helper-plugin-utils'; -import _getTargets, { prettifyTargets, getInclusionReasons, isRequired } from '@babel/helper-compilation-targets'; -import * as _babel from '@babel/core'; -import path from 'path'; -import debounce from 'lodash.debounce'; -import requireResolve from 'resolve'; -import { createRequire } from 'module'; - -const { - types: t$1, - template: template -} = _babel.default || _babel; -function intersection(a, b) { - const result = new Set(); - a.forEach(v => b.has(v) && result.add(v)); - return result; -} -function has$1(object, key) { - return Object.prototype.hasOwnProperty.call(object, key); -} -function resolve$1(path, resolved = new Set()) { - if (resolved.has(path)) return; - resolved.add(path); - if (path.isVariableDeclarator()) { - if (path.get("id").isIdentifier()) { - return resolve$1(path.get("init"), resolved); - } - } else if (path.isReferencedIdentifier()) { - const binding = path.scope.getBinding(path.node.name); - if (!binding) return path; - if (!binding.constant) return; - return resolve$1(binding.path, resolved); - } - return path; -} -function resolveId(path) { - if (path.isIdentifier() && !path.scope.hasBinding(path.node.name, /* noGlobals */true)) { - return path.node.name; - } - const resolved = resolve$1(path); - if (resolved != null && resolved.isIdentifier()) { - return resolved.node.name; - } -} -function resolveKey(path, computed = false) { - const { - scope - } = path; - if (path.isStringLiteral()) return path.node.value; - const isIdentifier = path.isIdentifier(); - if (isIdentifier && !(computed || path.parent.computed)) { - return path.node.name; - } - if (computed && path.isMemberExpression() && path.get("object").isIdentifier({ - name: "Symbol" - }) && !scope.hasBinding("Symbol", /* noGlobals */true)) { - const sym = resolveKey(path.get("property"), path.node.computed); - if (sym) return "Symbol." + sym; - } - if (isIdentifier ? scope.hasBinding(path.node.name, /* noGlobals */true) : path.isPure()) { - const { - value - } = path.evaluate(); - if (typeof value === "string") return value; - } -} -function resolveSource(obj) { - if (obj.isMemberExpression() && obj.get("property").isIdentifier({ - name: "prototype" - })) { - const id = resolveId(obj.get("object")); - if (id) { - return { - id, - placement: "prototype" - }; - } - return { - id: null, - placement: null - }; - } - const id = resolveId(obj); - if (id) { - return { - id, - placement: "static" - }; - } - const path = resolve$1(obj); - switch (path == null ? void 0 : path.type) { - case "RegExpLiteral": - return { - id: "RegExp", - placement: "prototype" - }; - case "FunctionExpression": - return { - id: "Function", - placement: "prototype" - }; - case "StringLiteral": - return { - id: "String", - placement: "prototype" - }; - case "NumberLiteral": - return { - id: "Number", - placement: "prototype" - }; - case "BooleanLiteral": - return { - id: "Boolean", - placement: "prototype" - }; - case "ObjectExpression": - return { - id: "Object", - placement: "prototype" - }; - case "ArrayExpression": - return { - id: "Array", - placement: "prototype" - }; - } - return { - id: null, - placement: null - }; -} -function getImportSource({ - node -}) { - if (node.specifiers.length === 0) return node.source.value; -} -function getRequireSource({ - node -}) { - if (!t$1.isExpressionStatement(node)) return; - const { - expression - } = node; - if (t$1.isCallExpression(expression) && t$1.isIdentifier(expression.callee) && expression.callee.name === "require" && expression.arguments.length === 1 && t$1.isStringLiteral(expression.arguments[0])) { - return expression.arguments[0].value; - } -} -function hoist(node) { - // @ts-expect-error - node._blockHoist = 3; - return node; -} -function createUtilsGetter(cache) { - return path => { - const prog = path.findParent(p => p.isProgram()); - return { - injectGlobalImport(url, moduleName) { - cache.storeAnonymous(prog, url, moduleName, (isScript, source) => { - return isScript ? template.statement.ast`require(${source})` : t$1.importDeclaration([], source); - }); - }, - injectNamedImport(url, name, hint = name, moduleName) { - return cache.storeNamed(prog, url, name, moduleName, (isScript, source, name) => { - const id = prog.scope.generateUidIdentifier(hint); - return { - node: isScript ? hoist(template.statement.ast` - var ${id} = require(${source}).${name} - `) : t$1.importDeclaration([t$1.importSpecifier(id, name)], source), - name: id.name - }; - }); - }, - injectDefaultImport(url, hint = url, moduleName) { - return cache.storeNamed(prog, url, "default", moduleName, (isScript, source) => { - const id = prog.scope.generateUidIdentifier(hint); - return { - node: isScript ? hoist(template.statement.ast`var ${id} = require(${source})`) : t$1.importDeclaration([t$1.importDefaultSpecifier(id)], source), - name: id.name - }; - }); - } - }; - }; -} - -const { - types: t -} = _babel.default || _babel; -class ImportsCachedInjector { - constructor(resolver, getPreferredIndex) { - this._imports = new WeakMap(); - this._anonymousImports = new WeakMap(); - this._lastImports = new WeakMap(); - this._resolver = resolver; - this._getPreferredIndex = getPreferredIndex; - } - storeAnonymous(programPath, url, moduleName, getVal) { - const key = this._normalizeKey(programPath, url); - const imports = this._ensure(this._anonymousImports, programPath, Set); - if (imports.has(key)) return; - const node = getVal(programPath.node.sourceType === "script", t.stringLiteral(this._resolver(url))); - imports.add(key); - this._injectImport(programPath, node, moduleName); - } - storeNamed(programPath, url, name, moduleName, getVal) { - const key = this._normalizeKey(programPath, url, name); - const imports = this._ensure(this._imports, programPath, Map); - if (!imports.has(key)) { - const { - node, - name: id - } = getVal(programPath.node.sourceType === "script", t.stringLiteral(this._resolver(url)), t.identifier(name)); - imports.set(key, id); - this._injectImport(programPath, node, moduleName); - } - return t.identifier(imports.get(key)); - } - _injectImport(programPath, node, moduleName) { - var _this$_lastImports$ge; - const newIndex = this._getPreferredIndex(moduleName); - const lastImports = (_this$_lastImports$ge = this._lastImports.get(programPath)) != null ? _this$_lastImports$ge : []; - const isPathStillValid = path => path.node && - // Sometimes the AST is modified and the "last import" - // we have has been replaced - path.parent === programPath.node && path.container === programPath.node.body; - let last; - if (newIndex === Infinity) { - // Fast path: we can always just insert at the end if newIndex is `Infinity` - if (lastImports.length > 0) { - last = lastImports[lastImports.length - 1].path; - if (!isPathStillValid(last)) last = undefined; - } - } else { - for (const [i, data] of lastImports.entries()) { - const { - path, - index - } = data; - if (isPathStillValid(path)) { - if (newIndex < index) { - const [newPath] = path.insertBefore(node); - lastImports.splice(i, 0, { - path: newPath, - index: newIndex - }); - return; - } - last = path; - } - } - } - if (last) { - const [newPath] = last.insertAfter(node); - lastImports.push({ - path: newPath, - index: newIndex - }); - } else { - const [newPath] = programPath.unshiftContainer("body", [node]); - this._lastImports.set(programPath, [{ - path: newPath, - index: newIndex - }]); - } - } - _ensure(map, programPath, Collection) { - let collection = map.get(programPath); - if (!collection) { - collection = new Collection(); - map.set(programPath, collection); - } - return collection; - } - _normalizeKey(programPath, url, name = "") { - const { - sourceType - } = programPath.node; - - // If we rely on the imported binding (the "name" parameter), we also need to cache - // based on the sourceType. This is because the module transforms change the names - // of the import variables. - return `${name && sourceType}::${url}::${name}`; - } -} - -const presetEnvSilentDebugHeader = "#__secret_key__@babel/preset-env__don't_log_debug_header_and_resolved_targets"; -function stringifyTargetsMultiline(targets) { - return JSON.stringify(prettifyTargets(targets), null, 2); -} - -function patternToRegExp(pattern) { - if (pattern instanceof RegExp) return pattern; - try { - return new RegExp(`^${pattern}$`); - } catch { - return null; - } -} -function buildUnusedError(label, unused) { - if (!unused.length) return ""; - return ` - The following "${label}" patterns didn't match any polyfill:\n` + unused.map(original => ` ${String(original)}\n`).join(""); -} -function buldDuplicatesError(duplicates) { - if (!duplicates.size) return ""; - return ` - The following polyfills were matched both by "include" and "exclude" patterns:\n` + Array.from(duplicates, name => ` ${name}\n`).join(""); -} -function validateIncludeExclude(provider, polyfills, includePatterns, excludePatterns) { - let current; - const filter = pattern => { - const regexp = patternToRegExp(pattern); - if (!regexp) return false; - let matched = false; - for (const polyfill of polyfills.keys()) { - if (regexp.test(polyfill)) { - matched = true; - current.add(polyfill); - } - } - return !matched; - }; - - // prettier-ignore - const include = current = new Set(); - const unusedInclude = Array.from(includePatterns).filter(filter); - - // prettier-ignore - const exclude = current = new Set(); - const unusedExclude = Array.from(excludePatterns).filter(filter); - const duplicates = intersection(include, exclude); - if (duplicates.size > 0 || unusedInclude.length > 0 || unusedExclude.length > 0) { - throw new Error(`Error while validating the "${provider}" provider options:\n` + buildUnusedError("include", unusedInclude) + buildUnusedError("exclude", unusedExclude) + buldDuplicatesError(duplicates)); - } - return { - include, - exclude - }; -} -function applyMissingDependenciesDefaults(options, babelApi) { - const { - missingDependencies = {} - } = options; - if (missingDependencies === false) return false; - const caller = babelApi.caller(caller => caller == null ? void 0 : caller.name); - const { - log = "deferred", - inject = caller === "rollup-plugin-babel" ? "throw" : "import", - all = false - } = missingDependencies; - return { - log, - inject, - all - }; -} - -function isRemoved(path) { - if (path.removed) return true; - if (!path.parentPath) return false; - if (path.listKey) { - var _path$parentPath$node; - if (!((_path$parentPath$node = path.parentPath.node) != null && (_path$parentPath$node = _path$parentPath$node[path.listKey]) != null && _path$parentPath$node.includes(path.node))) return true; - } else { - var _path$parentPath$node2; - if (((_path$parentPath$node2 = path.parentPath.node) == null ? void 0 : _path$parentPath$node2[path.key]) !== path.node) return true; - } - return isRemoved(path.parentPath); -} -var usage = callProvider => { - function property(object, key, placement, path) { - return callProvider({ - kind: "property", - object, - key, - placement - }, path); - } - function handleReferencedIdentifier(path) { - const { - node: { - name - }, - scope - } = path; - if (scope.getBindingIdentifier(name)) return; - callProvider({ - kind: "global", - name - }, path); - } - function analyzeMemberExpression(path) { - const key = resolveKey(path.get("property"), path.node.computed); - return { - key, - handleAsMemberExpression: !!key && key !== "prototype" - }; - } - return { - // Symbol(), new Promise - ReferencedIdentifier(path) { - const { - parentPath - } = path; - if (parentPath.isMemberExpression({ - object: path.node - }) && analyzeMemberExpression(parentPath).handleAsMemberExpression) { - return; - } - handleReferencedIdentifier(path); - }, - "MemberExpression|OptionalMemberExpression"(path) { - const { - key, - handleAsMemberExpression - } = analyzeMemberExpression(path); - if (!handleAsMemberExpression) return; - const object = path.get("object"); - let objectIsGlobalIdentifier = object.isIdentifier(); - if (objectIsGlobalIdentifier) { - const binding = object.scope.getBinding(object.node.name); - if (binding) { - if (binding.path.isImportNamespaceSpecifier()) return; - objectIsGlobalIdentifier = false; - } - } - const source = resolveSource(object); - let skipObject = property(source.id, key, source.placement, path); - skipObject || (skipObject = !objectIsGlobalIdentifier || path.shouldSkip || object.shouldSkip || isRemoved(object)); - if (!skipObject) handleReferencedIdentifier(object); - }, - ObjectPattern(path) { - const { - parentPath, - parent - } = path; - let obj; - - // const { keys, values } = Object - if (parentPath.isVariableDeclarator()) { - obj = parentPath.get("init"); - // ({ keys, values } = Object) - } else if (parentPath.isAssignmentExpression()) { - obj = parentPath.get("right"); - // !function ({ keys, values }) {...} (Object) - // resolution does not work after properties transform :-( - } else if (parentPath.isFunction()) { - const grand = parentPath.parentPath; - if (grand.isCallExpression() || grand.isNewExpression()) { - if (grand.node.callee === parent) { - obj = grand.get("arguments")[path.key]; - } - } - } - let id = null; - let placement = null; - if (obj) ({ - id, - placement - } = resolveSource(obj)); - for (const prop of path.get("properties")) { - if (prop.isObjectProperty()) { - const key = resolveKey(prop.get("key")); - if (key) property(id, key, placement, prop); - } - } - }, - BinaryExpression(path) { - if (path.node.operator !== "in") return; - const source = resolveSource(path.get("right")); - const key = resolveKey(path.get("left"), true); - if (!key) return; - callProvider({ - kind: "in", - object: source.id, - key, - placement: source.placement - }, path); - } - }; -}; - -var entry = callProvider => ({ - ImportDeclaration(path) { - const source = getImportSource(path); - if (!source) return; - callProvider({ - kind: "import", - source - }, path); - }, - Program(path) { - path.get("body").forEach(bodyPath => { - const source = getRequireSource(bodyPath); - if (!source) return; - callProvider({ - kind: "import", - source - }, bodyPath); - }); - } -}); - -const nativeRequireResolve = parseFloat(process.versions.node) >= 8.9; -const require = createRequire(import /*::(_)*/.meta.url); // eslint-disable-line - -function myResolve(name, basedir) { - if (nativeRequireResolve) { - return require.resolve(name, { - paths: [basedir] - }).replace(/\\/g, "/"); - } else { - return requireResolve.sync(name, { - basedir - }).replace(/\\/g, "/"); - } -} -function resolve(dirname, moduleName, absoluteImports) { - if (absoluteImports === false) return moduleName; - let basedir = dirname; - if (typeof absoluteImports === "string") { - basedir = path.resolve(basedir, absoluteImports); - } - try { - return myResolve(moduleName, basedir); - } catch (err) { - if (err.code !== "MODULE_NOT_FOUND") throw err; - throw Object.assign(new Error(`Failed to resolve "${moduleName}" relative to "${dirname}"`), { - code: "BABEL_POLYFILL_NOT_FOUND", - polyfill: moduleName, - dirname - }); - } -} -function has(basedir, name) { - try { - myResolve(name, basedir); - return true; - } catch { - return false; - } -} -function logMissing(missingDeps) { - if (missingDeps.size === 0) return; - const deps = Array.from(missingDeps).sort().join(" "); - console.warn("\nSome polyfills have been added but are not present in your dependencies.\n" + "Please run one of the following commands:\n" + `\tnpm install --save ${deps}\n` + `\tyarn add ${deps}\n`); - process.exitCode = 1; -} -let allMissingDeps = new Set(); -const laterLogMissingDependencies = debounce(() => { - logMissing(allMissingDeps); - allMissingDeps = new Set(); -}, 100); -function laterLogMissing(missingDeps) { - if (missingDeps.size === 0) return; - missingDeps.forEach(name => allMissingDeps.add(name)); - laterLogMissingDependencies(); -} - -const PossibleGlobalObjects = new Set(["global", "globalThis", "self", "window"]); -function createMetaResolver(polyfills) { - const { - static: staticP, - instance: instanceP, - global: globalP - } = polyfills; - return meta => { - if (meta.kind === "global" && globalP && has$1(globalP, meta.name)) { - return { - kind: "global", - desc: globalP[meta.name], - name: meta.name - }; - } - if (meta.kind === "property" || meta.kind === "in") { - const { - placement, - object, - key - } = meta; - if (object && placement === "static") { - if (globalP && PossibleGlobalObjects.has(object) && has$1(globalP, key)) { - return { - kind: "global", - desc: globalP[key], - name: key - }; - } - if (staticP && has$1(staticP, object) && has$1(staticP[object], key)) { - return { - kind: "static", - desc: staticP[object][key], - name: `${object}$${key}` - }; - } - } - if (instanceP && has$1(instanceP, key)) { - return { - kind: "instance", - desc: instanceP[key], - name: `${key}` - }; - } - } - }; -} - -const getTargets = _getTargets.default || _getTargets; -function resolveOptions(options, babelApi) { - const { - method, - targets: targetsOption, - ignoreBrowserslistConfig, - configPath, - debug, - shouldInjectPolyfill, - absoluteImports, - ...providerOptions - } = options; - if (isEmpty(options)) { - throw new Error(`\ -This plugin requires options, for example: - { - "plugins": [ - ["", { method: "usage-pure" }] - ] - } - -See more options at https://github.com/babel/babel-polyfills/blob/main/docs/usage.md`); - } - let methodName; - if (method === "usage-global") methodName = "usageGlobal";else if (method === "entry-global") methodName = "entryGlobal";else if (method === "usage-pure") methodName = "usagePure";else if (typeof method !== "string") { - throw new Error(".method must be a string"); - } else { - throw new Error(`.method must be one of "entry-global", "usage-global"` + ` or "usage-pure" (received ${JSON.stringify(method)})`); - } - if (typeof shouldInjectPolyfill === "function") { - if (options.include || options.exclude) { - throw new Error(`.include and .exclude are not supported when using the` + ` .shouldInjectPolyfill function.`); - } - } else if (shouldInjectPolyfill != null) { - throw new Error(`.shouldInjectPolyfill must be a function, or undefined` + ` (received ${JSON.stringify(shouldInjectPolyfill)})`); - } - if (absoluteImports != null && typeof absoluteImports !== "boolean" && typeof absoluteImports !== "string") { - throw new Error(`.absoluteImports must be a boolean, a string, or undefined` + ` (received ${JSON.stringify(absoluteImports)})`); - } - let targets; - if ( - // If any browserslist-related option is specified, fallback to the old - // behavior of not using the targets specified in the top-level options. - targetsOption || configPath || ignoreBrowserslistConfig) { - const targetsObj = typeof targetsOption === "string" || Array.isArray(targetsOption) ? { - browsers: targetsOption - } : targetsOption; - targets = getTargets(targetsObj, { - ignoreBrowserslistConfig, - configPath - }); - } else { - targets = babelApi.targets(); - } - return { - method, - methodName, - targets, - absoluteImports: absoluteImports != null ? absoluteImports : false, - shouldInjectPolyfill, - debug: !!debug, - providerOptions: providerOptions - }; -} -function instantiateProvider(factory, options, missingDependencies, dirname, debugLog, babelApi) { - const { - method, - methodName, - targets, - debug, - shouldInjectPolyfill, - providerOptions, - absoluteImports - } = resolveOptions(options, babelApi); - - // eslint-disable-next-line prefer-const - let include, exclude; - let polyfillsSupport; - let polyfillsNames; - let filterPolyfills; - const getUtils = createUtilsGetter(new ImportsCachedInjector(moduleName => resolve(dirname, moduleName, absoluteImports), name => { - var _polyfillsNames$get, _polyfillsNames; - return (_polyfillsNames$get = (_polyfillsNames = polyfillsNames) == null ? void 0 : _polyfillsNames.get(name)) != null ? _polyfillsNames$get : Infinity; - })); - const depsCache = new Map(); - const api = { - babel: babelApi, - getUtils, - method: options.method, - targets, - createMetaResolver, - shouldInjectPolyfill(name) { - if (polyfillsNames === undefined) { - throw new Error(`Internal error in the ${factory.name} provider: ` + `shouldInjectPolyfill() can't be called during initialization.`); - } - if (!polyfillsNames.has(name)) { - console.warn(`Internal error in the ${providerName} provider: ` + `unknown polyfill "${name}".`); - } - if (filterPolyfills && !filterPolyfills(name)) return false; - let shouldInject = isRequired(name, targets, { - compatData: polyfillsSupport, - includes: include, - excludes: exclude - }); - if (shouldInjectPolyfill) { - shouldInject = shouldInjectPolyfill(name, shouldInject); - if (typeof shouldInject !== "boolean") { - throw new Error(`.shouldInjectPolyfill must return a boolean.`); - } - } - return shouldInject; - }, - debug(name) { - var _debugLog, _debugLog$polyfillsSu; - debugLog().found = true; - if (!debug || !name) return; - if (debugLog().polyfills.has(providerName)) return; - debugLog().polyfills.add(name); - (_debugLog$polyfillsSu = (_debugLog = debugLog()).polyfillsSupport) != null ? _debugLog$polyfillsSu : _debugLog.polyfillsSupport = polyfillsSupport; - }, - assertDependency(name, version = "*") { - if (missingDependencies === false) return; - if (absoluteImports) { - // If absoluteImports is not false, we will try resolving - // the dependency and throw if it's not possible. We can - // skip the check here. - return; - } - const dep = version === "*" ? name : `${name}@^${version}`; - const found = missingDependencies.all ? false : mapGetOr(depsCache, `${name} :: ${dirname}`, () => has(dirname, name)); - if (!found) { - debugLog().missingDeps.add(dep); - } - } - }; - const provider = factory(api, providerOptions, dirname); - const providerName = provider.name || factory.name; - if (typeof provider[methodName] !== "function") { - throw new Error(`The "${providerName}" provider doesn't support the "${method}" polyfilling method.`); - } - if (Array.isArray(provider.polyfills)) { - polyfillsNames = new Map(provider.polyfills.map((name, index) => [name, index])); - filterPolyfills = provider.filterPolyfills; - } else if (provider.polyfills) { - polyfillsNames = new Map(Object.keys(provider.polyfills).map((name, index) => [name, index])); - polyfillsSupport = provider.polyfills; - filterPolyfills = provider.filterPolyfills; - } else { - polyfillsNames = new Map(); - } - ({ - include, - exclude - } = validateIncludeExclude(providerName, polyfillsNames, providerOptions.include || [], providerOptions.exclude || [])); - let callProvider; - if (methodName === "usageGlobal") { - callProvider = (payload, path) => { - var _ref; - const utils = getUtils(path); - return (_ref = provider[methodName](payload, utils, path)) != null ? _ref : false; - }; - } else { - callProvider = (payload, path) => { - const utils = getUtils(path); - provider[methodName](payload, utils, path); - return false; - }; - } - return { - debug, - method, - targets, - provider, - providerName, - callProvider - }; -} -function definePolyfillProvider(factory) { - return declare((babelApi, options, dirname) => { - babelApi.assertVersion("^7.0.0 || ^8.0.0-alpha.0"); - const { - traverse - } = babelApi; - let debugLog; - const missingDependencies = applyMissingDependenciesDefaults(options, babelApi); - const { - debug, - method, - targets, - provider, - providerName, - callProvider - } = instantiateProvider(factory, options, missingDependencies, dirname, () => debugLog, babelApi); - const createVisitor = method === "entry-global" ? entry : usage; - const visitor = provider.visitor ? traverse.visitors.merge([createVisitor(callProvider), provider.visitor]) : createVisitor(callProvider); - if (debug && debug !== presetEnvSilentDebugHeader) { - console.log(`${providerName}: \`DEBUG\` option`); - console.log(`\nUsing targets: ${stringifyTargetsMultiline(targets)}`); - console.log(`\nUsing polyfills with \`${method}\` method:`); - } - const { - runtimeName - } = provider; - return { - name: "inject-polyfills", - visitor, - pre(file) { - var _provider$pre; - if (runtimeName) { - if (file.get("runtimeHelpersModuleName") && file.get("runtimeHelpersModuleName") !== runtimeName) { - console.warn(`Two different polyfill providers` + ` (${file.get("runtimeHelpersModuleProvider")}` + ` and ${providerName}) are trying to define two` + ` conflicting @babel/runtime alternatives:` + ` ${file.get("runtimeHelpersModuleName")} and ${runtimeName}.` + ` The second one will be ignored.`); - } else { - file.set("runtimeHelpersModuleName", runtimeName); - file.set("runtimeHelpersModuleProvider", providerName); - } - } - debugLog = { - polyfills: new Set(), - polyfillsSupport: undefined, - found: false, - providers: new Set(), - missingDeps: new Set() - }; - (_provider$pre = provider.pre) == null || _provider$pre.apply(this, arguments); - }, - post() { - var _provider$post; - (_provider$post = provider.post) == null || _provider$post.apply(this, arguments); - if (missingDependencies !== false) { - if (missingDependencies.log === "per-file") { - logMissing(debugLog.missingDeps); - } else { - laterLogMissing(debugLog.missingDeps); - } - } - if (!debug) return; - if (this.filename) console.log(`\n[${this.filename}]`); - if (debugLog.polyfills.size === 0) { - console.log(method === "entry-global" ? debugLog.found ? `Based on your targets, the ${providerName} polyfill did not add any polyfill.` : `The entry point for the ${providerName} polyfill has not been found.` : `Based on your code and targets, the ${providerName} polyfill did not add any polyfill.`); - return; - } - if (method === "entry-global") { - console.log(`The ${providerName} polyfill entry has been replaced with ` + `the following polyfills:`); - } else { - console.log(`The ${providerName} polyfill added the following polyfills:`); - } - for (const name of debugLog.polyfills) { - var _debugLog$polyfillsSu2; - if ((_debugLog$polyfillsSu2 = debugLog.polyfillsSupport) != null && _debugLog$polyfillsSu2[name]) { - const filteredTargets = getInclusionReasons(name, targets, debugLog.polyfillsSupport); - const formattedTargets = JSON.stringify(filteredTargets).replace(/,/g, ", ").replace(/^\{"/, '{ "').replace(/"\}$/, '" }'); - console.log(` ${name} ${formattedTargets}`); - } else { - console.log(` ${name}`); - } - } - } - }; - }); -} -function mapGetOr(map, key, getDefault) { - let val = map.get(key); - if (val === undefined) { - val = getDefault(); - map.set(key, val); - } - return val; -} -function isEmpty(obj) { - return Object.keys(obj).length === 0; -} - -export { definePolyfillProvider as default }; -//# sourceMappingURL=index.node.mjs.map diff --git a/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/esm/index.node.mjs.map b/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/esm/index.node.mjs.map deleted file mode 100644 index 6a4cc1d6..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/esm/index.node.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.node.mjs","sources":["../src/utils.ts","../src/imports-injector.ts","../src/debug-utils.ts","../src/normalize-options.ts","../src/visitors/usage.ts","../src/visitors/entry.ts","../src/node/dependencies.ts","../src/meta-resolver.ts","../src/index.ts"],"sourcesContent":["import { types as t, template } from \"@babel/core\";\nimport type { NodePath } from \"@babel/traverse\";\nimport type { Utils } from \"./types\";\nimport type ImportsCachedInjector from \"./imports-injector\";\n\nexport function intersection(a: Set, b: Set): Set {\n const result = new Set();\n a.forEach(v => b.has(v) && result.add(v));\n return result;\n}\n\nexport function has(object: any, key: string) {\n return Object.prototype.hasOwnProperty.call(object, key);\n}\n\nfunction resolve(\n path: NodePath,\n resolved: Set = new Set(),\n): NodePath | undefined {\n if (resolved.has(path)) return;\n resolved.add(path);\n\n if (path.isVariableDeclarator()) {\n if (path.get(\"id\").isIdentifier()) {\n return resolve(path.get(\"init\"), resolved);\n }\n } else if (path.isReferencedIdentifier()) {\n const binding = path.scope.getBinding(path.node.name);\n if (!binding) return path;\n if (!binding.constant) return;\n return resolve(binding.path, resolved);\n }\n return path;\n}\n\nfunction resolveId(path: NodePath): string {\n if (\n path.isIdentifier() &&\n !path.scope.hasBinding(path.node.name, /* noGlobals */ true)\n ) {\n return path.node.name;\n }\n\n const resolved = resolve(path);\n if (resolved?.isIdentifier()) {\n return resolved.node.name;\n }\n}\n\nexport function resolveKey(\n path: NodePath,\n computed: boolean = false,\n) {\n const { scope } = path;\n if (path.isStringLiteral()) return path.node.value;\n const isIdentifier = path.isIdentifier();\n if (\n isIdentifier &&\n !(computed || (path.parent as t.MemberExpression).computed)\n ) {\n return path.node.name;\n }\n\n if (\n computed &&\n path.isMemberExpression() &&\n path.get(\"object\").isIdentifier({ name: \"Symbol\" }) &&\n !scope.hasBinding(\"Symbol\", /* noGlobals */ true)\n ) {\n const sym = resolveKey(path.get(\"property\"), path.node.computed);\n if (sym) return \"Symbol.\" + sym;\n }\n\n if (\n isIdentifier\n ? scope.hasBinding(path.node.name, /* noGlobals */ true)\n : path.isPure()\n ) {\n const { value } = path.evaluate();\n if (typeof value === \"string\") return value;\n }\n}\n\nexport function resolveSource(obj: NodePath): {\n id: string | null;\n placement: \"prototype\" | \"static\" | null;\n} {\n if (\n obj.isMemberExpression() &&\n obj.get(\"property\").isIdentifier({ name: \"prototype\" })\n ) {\n const id = resolveId(obj.get(\"object\"));\n\n if (id) {\n return { id, placement: \"prototype\" };\n }\n return { id: null, placement: null };\n }\n\n const id = resolveId(obj);\n if (id) {\n return { id, placement: \"static\" };\n }\n\n const path = resolve(obj);\n switch (path?.type) {\n case \"RegExpLiteral\":\n return { id: \"RegExp\", placement: \"prototype\" };\n case \"FunctionExpression\":\n return { id: \"Function\", placement: \"prototype\" };\n case \"StringLiteral\":\n return { id: \"String\", placement: \"prototype\" };\n case \"NumberLiteral\":\n return { id: \"Number\", placement: \"prototype\" };\n case \"BooleanLiteral\":\n return { id: \"Boolean\", placement: \"prototype\" };\n case \"ObjectExpression\":\n return { id: \"Object\", placement: \"prototype\" };\n case \"ArrayExpression\":\n return { id: \"Array\", placement: \"prototype\" };\n }\n\n return { id: null, placement: null };\n}\n\nexport function getImportSource({ node }: NodePath) {\n if (node.specifiers.length === 0) return node.source.value;\n}\n\nexport function getRequireSource({ node }: NodePath) {\n if (!t.isExpressionStatement(node)) return;\n const { expression } = node;\n if (\n t.isCallExpression(expression) &&\n t.isIdentifier(expression.callee) &&\n expression.callee.name === \"require\" &&\n expression.arguments.length === 1 &&\n t.isStringLiteral(expression.arguments[0])\n ) {\n return expression.arguments[0].value;\n }\n}\n\nfunction hoist(node: T): T {\n // @ts-expect-error\n node._blockHoist = 3;\n return node;\n}\n\nexport function createUtilsGetter(cache: ImportsCachedInjector) {\n return (path: NodePath): Utils => {\n const prog = path.findParent(p => p.isProgram()) as NodePath;\n\n return {\n injectGlobalImport(url, moduleName) {\n cache.storeAnonymous(prog, url, moduleName, (isScript, source) => {\n return isScript\n ? template.statement.ast`require(${source})`\n : t.importDeclaration([], source);\n });\n },\n injectNamedImport(url, name, hint = name, moduleName) {\n return cache.storeNamed(\n prog,\n url,\n name,\n moduleName,\n (isScript, source, name) => {\n const id = prog.scope.generateUidIdentifier(hint);\n return {\n node: isScript\n ? hoist(template.statement.ast`\n var ${id} = require(${source}).${name}\n `)\n : t.importDeclaration([t.importSpecifier(id, name)], source),\n name: id.name,\n };\n },\n );\n },\n injectDefaultImport(url, hint = url, moduleName) {\n return cache.storeNamed(\n prog,\n url,\n \"default\",\n moduleName,\n (isScript, source) => {\n const id = prog.scope.generateUidIdentifier(hint);\n return {\n node: isScript\n ? hoist(template.statement.ast`var ${id} = require(${source})`)\n : t.importDeclaration([t.importDefaultSpecifier(id)], source),\n name: id.name,\n };\n },\n );\n },\n };\n };\n}\n","import type { NodePath } from \"@babel/traverse\";\nimport { types as t } from \"@babel/core\";\n\ntype StrMap = Map;\n\nexport default class ImportsCachedInjector {\n _imports: WeakMap, StrMap>;\n _anonymousImports: WeakMap, Set>;\n _lastImports: WeakMap<\n NodePath,\n Array<{ path: NodePath; index: number }>\n >;\n _resolver: (url: string) => string;\n _getPreferredIndex: (url: string) => number;\n\n constructor(\n resolver: (url: string) => string,\n getPreferredIndex: (url: string) => number,\n ) {\n this._imports = new WeakMap();\n this._anonymousImports = new WeakMap();\n this._lastImports = new WeakMap();\n this._resolver = resolver;\n this._getPreferredIndex = getPreferredIndex;\n }\n\n storeAnonymous(\n programPath: NodePath,\n url: string,\n moduleName: string,\n getVal: (\n isScript: boolean,\n source: t.StringLiteral,\n ) => t.Statement | t.Declaration,\n ) {\n const key = this._normalizeKey(programPath, url);\n const imports = this._ensure>(\n this._anonymousImports,\n programPath,\n Set,\n );\n\n if (imports.has(key)) return;\n\n const node = getVal(\n programPath.node.sourceType === \"script\",\n t.stringLiteral(this._resolver(url)),\n );\n imports.add(key);\n this._injectImport(programPath, node, moduleName);\n }\n\n storeNamed(\n programPath: NodePath,\n url: string,\n name: string,\n moduleName: string,\n getVal: (\n isScript: boolean,\n // eslint-disable-next-line no-undef\n source: t.StringLiteral,\n // eslint-disable-next-line no-undef\n name: t.Identifier,\n ) => { node: t.Statement | t.Declaration; name: string },\n ) {\n const key = this._normalizeKey(programPath, url, name);\n const imports = this._ensure>(\n this._imports,\n programPath,\n Map,\n );\n\n if (!imports.has(key)) {\n const { node, name: id } = getVal(\n programPath.node.sourceType === \"script\",\n t.stringLiteral(this._resolver(url)),\n t.identifier(name),\n );\n imports.set(key, id);\n this._injectImport(programPath, node, moduleName);\n }\n\n return t.identifier(imports.get(key));\n }\n\n _injectImport(\n programPath: NodePath,\n node: t.Statement | t.Declaration,\n moduleName: string,\n ) {\n const newIndex = this._getPreferredIndex(moduleName);\n const lastImports = this._lastImports.get(programPath) ?? [];\n\n const isPathStillValid = (path: NodePath) =>\n path.node &&\n // Sometimes the AST is modified and the \"last import\"\n // we have has been replaced\n path.parent === programPath.node &&\n path.container === programPath.node.body;\n\n let last: NodePath;\n\n if (newIndex === Infinity) {\n // Fast path: we can always just insert at the end if newIndex is `Infinity`\n if (lastImports.length > 0) {\n last = lastImports[lastImports.length - 1].path;\n if (!isPathStillValid(last)) last = undefined;\n }\n } else {\n for (const [i, data] of lastImports.entries()) {\n const { path, index } = data;\n if (isPathStillValid(path)) {\n if (newIndex < index) {\n const [newPath] = path.insertBefore(node);\n lastImports.splice(i, 0, { path: newPath, index: newIndex });\n return;\n }\n last = path;\n }\n }\n }\n\n if (last) {\n const [newPath] = last.insertAfter(node);\n lastImports.push({ path: newPath, index: newIndex });\n } else {\n const [newPath] = programPath.unshiftContainer(\"body\", [node]);\n this._lastImports.set(programPath, [{ path: newPath, index: newIndex }]);\n }\n }\n\n _ensure | Set>(\n map: WeakMap, C>,\n programPath: NodePath,\n Collection: { new (...args: any): C },\n ): C {\n let collection = map.get(programPath);\n if (!collection) {\n collection = new Collection();\n map.set(programPath, collection);\n }\n return collection;\n }\n\n _normalizeKey(\n programPath: NodePath,\n url: string,\n name: string = \"\",\n ): string {\n const { sourceType } = programPath.node;\n\n // If we rely on the imported binding (the \"name\" parameter), we also need to cache\n // based on the sourceType. This is because the module transforms change the names\n // of the import variables.\n return `${name && sourceType}::${url}::${name}`;\n }\n}\n","import { prettifyTargets } from \"@babel/helper-compilation-targets\";\n\nimport type { Targets } from \"./types\";\n\nexport const presetEnvSilentDebugHeader =\n \"#__secret_key__@babel/preset-env__don't_log_debug_header_and_resolved_targets\";\n\nexport function stringifyTargetsMultiline(targets: Targets): string {\n return JSON.stringify(prettifyTargets(targets), null, 2);\n}\n\nexport function stringifyTargets(targets: Targets): string {\n return JSON.stringify(targets)\n .replace(/,/g, \", \")\n .replace(/^\\{\"/, '{ \"')\n .replace(/\"\\}$/, '\" }');\n}\n","import { intersection } from \"./utils\";\nimport type {\n Pattern,\n PluginOptions,\n MissingDependenciesOption,\n} from \"./types\";\n\nfunction patternToRegExp(pattern: Pattern): RegExp | null {\n if (pattern instanceof RegExp) return pattern;\n\n try {\n return new RegExp(`^${pattern}$`);\n } catch {\n return null;\n }\n}\n\nfunction buildUnusedError(label, unused) {\n if (!unused.length) return \"\";\n return (\n ` - The following \"${label}\" patterns didn't match any polyfill:\\n` +\n unused.map(original => ` ${String(original)}\\n`).join(\"\")\n );\n}\n\nfunction buldDuplicatesError(duplicates) {\n if (!duplicates.size) return \"\";\n return (\n ` - The following polyfills were matched both by \"include\" and \"exclude\" patterns:\\n` +\n Array.from(duplicates, name => ` ${name}\\n`).join(\"\")\n );\n}\n\nexport function validateIncludeExclude(\n provider: string,\n polyfills: Map,\n includePatterns: Pattern[],\n excludePatterns: Pattern[],\n) {\n let current;\n const filter = pattern => {\n const regexp = patternToRegExp(pattern);\n if (!regexp) return false;\n\n let matched = false;\n for (const polyfill of polyfills.keys()) {\n if (regexp.test(polyfill)) {\n matched = true;\n current.add(polyfill);\n }\n }\n return !matched;\n };\n\n // prettier-ignore\n const include = current = new Set ();\n const unusedInclude = Array.from(includePatterns).filter(filter);\n\n // prettier-ignore\n const exclude = current = new Set ();\n const unusedExclude = Array.from(excludePatterns).filter(filter);\n\n const duplicates = intersection(include, exclude);\n\n if (\n duplicates.size > 0 ||\n unusedInclude.length > 0 ||\n unusedExclude.length > 0\n ) {\n throw new Error(\n `Error while validating the \"${provider}\" provider options:\\n` +\n buildUnusedError(\"include\", unusedInclude) +\n buildUnusedError(\"exclude\", unusedExclude) +\n buldDuplicatesError(duplicates),\n );\n }\n\n return { include, exclude };\n}\n\nexport function applyMissingDependenciesDefaults(\n options: PluginOptions,\n babelApi: any,\n): MissingDependenciesOption {\n const { missingDependencies = {} } = options;\n if (missingDependencies === false) return false;\n\n const caller = babelApi.caller(caller => caller?.name);\n\n const {\n log = \"deferred\",\n inject = caller === \"rollup-plugin-babel\" ? \"throw\" : \"import\",\n all = false,\n } = missingDependencies;\n\n return { log, inject, all };\n}\n","import type { NodePath } from \"@babel/traverse\";\nimport { types as t } from \"@babel/core\";\nimport type { CallProvider } from \"./index\";\n\nimport { resolveKey, resolveSource } from \"../utils\";\n\nfunction isRemoved(path: NodePath) {\n if (path.removed) return true;\n if (!path.parentPath) return false;\n if (path.listKey) {\n if (!path.parentPath.node?.[path.listKey]?.includes(path.node)) return true;\n } else {\n if (path.parentPath.node?.[path.key] !== path.node) return true;\n }\n return isRemoved(path.parentPath);\n}\n\nexport default (callProvider: CallProvider) => {\n function property(object, key, placement, path) {\n return callProvider({ kind: \"property\", object, key, placement }, path);\n }\n\n function handleReferencedIdentifier(path) {\n const {\n node: { name },\n scope,\n } = path;\n if (scope.getBindingIdentifier(name)) return;\n\n callProvider({ kind: \"global\", name }, path);\n }\n\n function analyzeMemberExpression(\n path: NodePath,\n ) {\n const key = resolveKey(path.get(\"property\"), path.node.computed);\n return { key, handleAsMemberExpression: !!key && key !== \"prototype\" };\n }\n\n return {\n // Symbol(), new Promise\n ReferencedIdentifier(path: NodePath) {\n const { parentPath } = path;\n if (\n parentPath.isMemberExpression({ object: path.node }) &&\n analyzeMemberExpression(parentPath).handleAsMemberExpression\n ) {\n return;\n }\n handleReferencedIdentifier(path);\n },\n\n \"MemberExpression|OptionalMemberExpression\"(\n path: NodePath,\n ) {\n const { key, handleAsMemberExpression } = analyzeMemberExpression(path);\n if (!handleAsMemberExpression) return;\n\n const object = path.get(\"object\");\n let objectIsGlobalIdentifier = object.isIdentifier();\n if (objectIsGlobalIdentifier) {\n const binding = object.scope.getBinding(\n (object.node as t.Identifier).name,\n );\n if (binding) {\n if (binding.path.isImportNamespaceSpecifier()) return;\n objectIsGlobalIdentifier = false;\n }\n }\n\n const source = resolveSource(object);\n let skipObject = property(source.id, key, source.placement, path);\n skipObject ||=\n !objectIsGlobalIdentifier ||\n path.shouldSkip ||\n object.shouldSkip ||\n isRemoved(object);\n\n if (!skipObject) handleReferencedIdentifier(object);\n },\n\n ObjectPattern(path: NodePath) {\n const { parentPath, parent } = path;\n let obj;\n\n // const { keys, values } = Object\n if (parentPath.isVariableDeclarator()) {\n obj = parentPath.get(\"init\");\n // ({ keys, values } = Object)\n } else if (parentPath.isAssignmentExpression()) {\n obj = parentPath.get(\"right\");\n // !function ({ keys, values }) {...} (Object)\n // resolution does not work after properties transform :-(\n } else if (parentPath.isFunction()) {\n const grand = parentPath.parentPath;\n if (grand.isCallExpression() || grand.isNewExpression()) {\n if (grand.node.callee === parent) {\n obj = grand.get(\"arguments\")[path.key];\n }\n }\n }\n\n let id = null;\n let placement = null;\n if (obj) ({ id, placement } = resolveSource(obj));\n\n for (const prop of path.get(\"properties\")) {\n if (prop.isObjectProperty()) {\n const key = resolveKey(prop.get(\"key\"));\n if (key) property(id, key, placement, prop);\n }\n }\n },\n\n BinaryExpression(path: NodePath) {\n if (path.node.operator !== \"in\") return;\n\n const source = resolveSource(path.get(\"right\"));\n const key = resolveKey(path.get(\"left\"), true);\n\n if (!key) return;\n\n callProvider(\n {\n kind: \"in\",\n object: source.id,\n key,\n placement: source.placement,\n },\n path,\n );\n },\n };\n};\n","import type { NodePath } from \"@babel/traverse\";\nimport { types as t } from \"@babel/core\";\nimport type { CallProvider } from \"./index\";\n\nimport { getImportSource, getRequireSource } from \"../utils\";\n\nexport default (callProvider: CallProvider) => ({\n ImportDeclaration(path: NodePath) {\n const source = getImportSource(path);\n if (!source) return;\n callProvider({ kind: \"import\", source }, path);\n },\n Program(path: NodePath) {\n path.get(\"body\").forEach(bodyPath => {\n const source = getRequireSource(bodyPath);\n if (!source) return;\n callProvider({ kind: \"import\", source }, bodyPath);\n });\n },\n});\n","import path from \"path\";\nimport debounce from \"lodash.debounce\";\nimport requireResolve from \"resolve\";\n\nconst nativeRequireResolve = parseFloat(process.versions.node) >= 8.9;\n\nimport { createRequire } from \"module\";\nconst require = createRequire(import /*::(_)*/.meta.url); // eslint-disable-line\n\nfunction myResolve(name: string, basedir: string) {\n if (nativeRequireResolve) {\n return require\n .resolve(name, {\n paths: [basedir],\n })\n .replace(/\\\\/g, \"/\");\n } else {\n return requireResolve.sync(name, { basedir }).replace(/\\\\/g, \"/\");\n }\n}\n\nexport function resolve(\n dirname: string,\n moduleName: string,\n absoluteImports: boolean | string,\n): string {\n if (absoluteImports === false) return moduleName;\n\n let basedir = dirname;\n if (typeof absoluteImports === \"string\") {\n basedir = path.resolve(basedir, absoluteImports);\n }\n\n try {\n return myResolve(moduleName, basedir);\n } catch (err) {\n if (err.code !== \"MODULE_NOT_FOUND\") throw err;\n\n throw Object.assign(\n new Error(`Failed to resolve \"${moduleName}\" relative to \"${dirname}\"`),\n {\n code: \"BABEL_POLYFILL_NOT_FOUND\",\n polyfill: moduleName,\n dirname,\n },\n );\n }\n}\n\nexport function has(basedir: string, name: string) {\n try {\n myResolve(name, basedir);\n return true;\n } catch {\n return false;\n }\n}\n\nexport function logMissing(missingDeps: Set) {\n if (missingDeps.size === 0) return;\n\n const deps = Array.from(missingDeps).sort().join(\" \");\n\n console.warn(\n \"\\nSome polyfills have been added but are not present in your dependencies.\\n\" +\n \"Please run one of the following commands:\\n\" +\n `\\tnpm install --save ${deps}\\n` +\n `\\tyarn add ${deps}\\n`,\n );\n\n process.exitCode = 1;\n}\n\nlet allMissingDeps = new Set();\n\nconst laterLogMissingDependencies = debounce(() => {\n logMissing(allMissingDeps);\n allMissingDeps = new Set();\n}, 100);\n\nexport function laterLogMissing(missingDeps: Set) {\n if (missingDeps.size === 0) return;\n\n missingDeps.forEach(name => allMissingDeps.add(name));\n laterLogMissingDependencies();\n}\n","import type {\n MetaDescriptor,\n ResolverPolyfills,\n ResolvedPolyfill,\n} from \"./types\";\n\nimport { has } from \"./utils\";\n\ntype ResolverFn = (meta: MetaDescriptor) => void | ResolvedPolyfill;\n\nconst PossibleGlobalObjects = new Set([\n \"global\",\n \"globalThis\",\n \"self\",\n \"window\",\n]);\n\nexport default function createMetaResolver(\n polyfills: ResolverPolyfills,\n): ResolverFn {\n const { static: staticP, instance: instanceP, global: globalP } = polyfills;\n\n return meta => {\n if (meta.kind === \"global\" && globalP && has(globalP, meta.name)) {\n return { kind: \"global\", desc: globalP[meta.name], name: meta.name };\n }\n\n if (meta.kind === \"property\" || meta.kind === \"in\") {\n const { placement, object, key } = meta;\n\n if (object && placement === \"static\") {\n if (globalP && PossibleGlobalObjects.has(object) && has(globalP, key)) {\n return { kind: \"global\", desc: globalP[key], name: key };\n }\n\n if (staticP && has(staticP, object) && has(staticP[object], key)) {\n return {\n kind: \"static\",\n desc: staticP[object][key],\n name: `${object}$${key}`,\n };\n }\n }\n\n if (instanceP && has(instanceP, key)) {\n return { kind: \"instance\", desc: instanceP[key], name: `${key}` };\n }\n }\n };\n}\n","import { declare } from \"@babel/helper-plugin-utils\";\nimport type { NodePath } from \"@babel/traverse\";\n\nimport _getTargets, {\n isRequired,\n getInclusionReasons,\n} from \"@babel/helper-compilation-targets\";\nconst getTargets = _getTargets.default || _getTargets;\n\nimport { createUtilsGetter } from \"./utils\";\nimport ImportsCachedInjector from \"./imports-injector\";\nimport {\n stringifyTargetsMultiline,\n presetEnvSilentDebugHeader,\n} from \"./debug-utils\";\nimport {\n validateIncludeExclude,\n applyMissingDependenciesDefaults,\n} from \"./normalize-options\";\n\nimport type {\n ProviderApi,\n MethodString,\n Targets,\n MetaDescriptor,\n PolyfillProvider,\n PluginOptions,\n ProviderOptions,\n} from \"./types\";\n\nimport * as v from \"./visitors\";\nimport * as deps from \"./node/dependencies\";\n\nimport createMetaResolver from \"./meta-resolver\";\n\nexport type { PolyfillProvider, MetaDescriptor, Utils, Targets } from \"./types\";\n\nfunction resolveOptions(\n options: PluginOptions,\n babelApi,\n): {\n method: MethodString;\n methodName: \"usageGlobal\" | \"entryGlobal\" | \"usagePure\";\n targets: Targets;\n debug: boolean | typeof presetEnvSilentDebugHeader;\n shouldInjectPolyfill:\n | ((name: string, shouldInject: boolean) => boolean)\n | undefined;\n providerOptions: ProviderOptions;\n absoluteImports: string | boolean;\n} {\n const {\n method,\n targets: targetsOption,\n ignoreBrowserslistConfig,\n configPath,\n debug,\n shouldInjectPolyfill,\n absoluteImports,\n ...providerOptions\n } = options;\n\n if (isEmpty(options)) {\n throw new Error(\n `\\\nThis plugin requires options, for example:\n {\n \"plugins\": [\n [\"\", { method: \"usage-pure\" }]\n ]\n }\n\nSee more options at https://github.com/babel/babel-polyfills/blob/main/docs/usage.md`,\n );\n }\n\n let methodName;\n if (method === \"usage-global\") methodName = \"usageGlobal\";\n else if (method === \"entry-global\") methodName = \"entryGlobal\";\n else if (method === \"usage-pure\") methodName = \"usagePure\";\n else if (typeof method !== \"string\") {\n throw new Error(\".method must be a string\");\n } else {\n throw new Error(\n `.method must be one of \"entry-global\", \"usage-global\"` +\n ` or \"usage-pure\" (received ${JSON.stringify(method)})`,\n );\n }\n\n if (typeof shouldInjectPolyfill === \"function\") {\n if (options.include || options.exclude) {\n throw new Error(\n `.include and .exclude are not supported when using the` +\n ` .shouldInjectPolyfill function.`,\n );\n }\n } else if (shouldInjectPolyfill != null) {\n throw new Error(\n `.shouldInjectPolyfill must be a function, or undefined` +\n ` (received ${JSON.stringify(shouldInjectPolyfill)})`,\n );\n }\n\n if (\n absoluteImports != null &&\n typeof absoluteImports !== \"boolean\" &&\n typeof absoluteImports !== \"string\"\n ) {\n throw new Error(\n `.absoluteImports must be a boolean, a string, or undefined` +\n ` (received ${JSON.stringify(absoluteImports)})`,\n );\n }\n\n let targets;\n\n if (\n // If any browserslist-related option is specified, fallback to the old\n // behavior of not using the targets specified in the top-level options.\n targetsOption ||\n configPath ||\n ignoreBrowserslistConfig\n ) {\n const targetsObj =\n typeof targetsOption === \"string\" || Array.isArray(targetsOption)\n ? { browsers: targetsOption }\n : targetsOption;\n\n targets = getTargets(targetsObj, {\n ignoreBrowserslistConfig,\n configPath,\n });\n } else {\n targets = babelApi.targets();\n }\n\n return {\n method,\n methodName,\n targets,\n absoluteImports: absoluteImports ?? false,\n shouldInjectPolyfill,\n debug: !!debug,\n providerOptions: providerOptions as any as ProviderOptions,\n };\n}\n\nfunction instantiateProvider(\n factory: PolyfillProvider,\n options: PluginOptions,\n missingDependencies,\n dirname,\n debugLog,\n babelApi,\n) {\n const {\n method,\n methodName,\n targets,\n debug,\n shouldInjectPolyfill,\n providerOptions,\n absoluteImports,\n } = resolveOptions(options, babelApi);\n\n // eslint-disable-next-line prefer-const\n let include, exclude;\n let polyfillsSupport;\n let polyfillsNames: Map | undefined;\n let filterPolyfills;\n\n const getUtils = createUtilsGetter(\n new ImportsCachedInjector(\n moduleName => deps.resolve(dirname, moduleName, absoluteImports),\n (name: string) => polyfillsNames?.get(name) ?? Infinity,\n ),\n );\n\n const depsCache = new Map();\n\n const api: ProviderApi = {\n babel: babelApi,\n getUtils,\n method: options.method,\n targets,\n createMetaResolver,\n shouldInjectPolyfill(name) {\n if (polyfillsNames === undefined) {\n throw new Error(\n `Internal error in the ${factory.name} provider: ` +\n `shouldInjectPolyfill() can't be called during initialization.`,\n );\n }\n if (!polyfillsNames.has(name)) {\n console.warn(\n `Internal error in the ${providerName} provider: ` +\n `unknown polyfill \"${name}\".`,\n );\n }\n\n if (filterPolyfills && !filterPolyfills(name)) return false;\n\n let shouldInject = isRequired(name, targets, {\n compatData: polyfillsSupport,\n includes: include,\n excludes: exclude,\n });\n\n if (shouldInjectPolyfill) {\n shouldInject = shouldInjectPolyfill(name, shouldInject);\n if (typeof shouldInject !== \"boolean\") {\n throw new Error(`.shouldInjectPolyfill must return a boolean.`);\n }\n }\n\n return shouldInject;\n },\n debug(name) {\n debugLog().found = true;\n\n if (!debug || !name) return;\n\n if (debugLog().polyfills.has(providerName)) return;\n debugLog().polyfills.add(name);\n debugLog().polyfillsSupport ??= polyfillsSupport;\n },\n assertDependency(name, version = \"*\") {\n if (missingDependencies === false) return;\n if (absoluteImports) {\n // If absoluteImports is not false, we will try resolving\n // the dependency and throw if it's not possible. We can\n // skip the check here.\n return;\n }\n\n const dep = version === \"*\" ? name : `${name}@^${version}`;\n\n const found = missingDependencies.all\n ? false\n : mapGetOr(depsCache, `${name} :: ${dirname}`, () =>\n deps.has(dirname, name),\n );\n\n if (!found) {\n debugLog().missingDeps.add(dep);\n }\n },\n };\n\n const provider = factory(api, providerOptions, dirname);\n const providerName = provider.name || factory.name;\n\n if (typeof provider[methodName] !== \"function\") {\n throw new Error(\n `The \"${providerName}\" provider doesn't support the \"${method}\" polyfilling method.`,\n );\n }\n\n if (Array.isArray(provider.polyfills)) {\n polyfillsNames = new Map(\n provider.polyfills.map((name, index) => [name, index]),\n );\n filterPolyfills = provider.filterPolyfills;\n } else if (provider.polyfills) {\n polyfillsNames = new Map(\n Object.keys(provider.polyfills).map((name, index) => [name, index]),\n );\n polyfillsSupport = provider.polyfills;\n filterPolyfills = provider.filterPolyfills;\n } else {\n polyfillsNames = new Map();\n }\n\n ({ include, exclude } = validateIncludeExclude(\n providerName,\n polyfillsNames,\n providerOptions.include || [],\n providerOptions.exclude || [],\n ));\n\n let callProvider: (payload: MetaDescriptor, path: NodePath) => boolean;\n if (methodName === \"usageGlobal\") {\n callProvider = (payload, path) => {\n const utils = getUtils(path);\n return (\n (provider[methodName](payload, utils, path) satisfies boolean) ?? false\n );\n };\n } else {\n callProvider = (payload, path) => {\n const utils = getUtils(path);\n provider[methodName](payload, utils, path) satisfies void;\n return false;\n };\n }\n\n return {\n debug,\n method,\n targets,\n provider,\n providerName,\n callProvider,\n };\n}\n\nexport default function definePolyfillProvider(\n factory: PolyfillProvider,\n) {\n return declare((babelApi, options: PluginOptions, dirname: string) => {\n babelApi.assertVersion(\"^7.0.0 || ^8.0.0-alpha.0\");\n const { traverse } = babelApi;\n\n let debugLog;\n\n const missingDependencies = applyMissingDependenciesDefaults(\n options,\n babelApi,\n );\n\n const { debug, method, targets, provider, providerName, callProvider } =\n instantiateProvider(\n factory,\n options,\n missingDependencies,\n dirname,\n () => debugLog,\n babelApi,\n );\n\n const createVisitor = method === \"entry-global\" ? v.entry : v.usage;\n\n const visitor = provider.visitor\n ? traverse.visitors.merge([createVisitor(callProvider), provider.visitor])\n : createVisitor(callProvider);\n\n if (debug && debug !== presetEnvSilentDebugHeader) {\n console.log(`${providerName}: \\`DEBUG\\` option`);\n console.log(`\\nUsing targets: ${stringifyTargetsMultiline(targets)}`);\n console.log(`\\nUsing polyfills with \\`${method}\\` method:`);\n }\n\n const { runtimeName } = provider;\n\n return {\n name: \"inject-polyfills\",\n visitor,\n\n pre(file) {\n if (runtimeName) {\n if (\n file.get(\"runtimeHelpersModuleName\") &&\n file.get(\"runtimeHelpersModuleName\") !== runtimeName\n ) {\n console.warn(\n `Two different polyfill providers` +\n ` (${file.get(\"runtimeHelpersModuleProvider\")}` +\n ` and ${providerName}) are trying to define two` +\n ` conflicting @babel/runtime alternatives:` +\n ` ${file.get(\"runtimeHelpersModuleName\")} and ${runtimeName}.` +\n ` The second one will be ignored.`,\n );\n } else {\n file.set(\"runtimeHelpersModuleName\", runtimeName);\n file.set(\"runtimeHelpersModuleProvider\", providerName);\n }\n }\n\n debugLog = {\n polyfills: new Set(),\n polyfillsSupport: undefined,\n found: false,\n providers: new Set(),\n missingDeps: new Set(),\n };\n\n provider.pre?.apply(this, arguments);\n },\n post() {\n provider.post?.apply(this, arguments);\n\n if (missingDependencies !== false) {\n if (missingDependencies.log === \"per-file\") {\n deps.logMissing(debugLog.missingDeps);\n } else {\n deps.laterLogMissing(debugLog.missingDeps);\n }\n }\n\n if (!debug) return;\n\n if (this.filename) console.log(`\\n[${this.filename}]`);\n\n if (debugLog.polyfills.size === 0) {\n console.log(\n method === \"entry-global\"\n ? debugLog.found\n ? `Based on your targets, the ${providerName} polyfill did not add any polyfill.`\n : `The entry point for the ${providerName} polyfill has not been found.`\n : `Based on your code and targets, the ${providerName} polyfill did not add any polyfill.`,\n );\n\n return;\n }\n\n if (method === \"entry-global\") {\n console.log(\n `The ${providerName} polyfill entry has been replaced with ` +\n `the following polyfills:`,\n );\n } else {\n console.log(\n `The ${providerName} polyfill added the following polyfills:`,\n );\n }\n\n for (const name of debugLog.polyfills) {\n if (debugLog.polyfillsSupport?.[name]) {\n const filteredTargets = getInclusionReasons(\n name,\n targets,\n debugLog.polyfillsSupport,\n );\n\n const formattedTargets = JSON.stringify(filteredTargets)\n .replace(/,/g, \", \")\n .replace(/^\\{\"/, '{ \"')\n .replace(/\"\\}$/, '\" }');\n\n console.log(` ${name} ${formattedTargets}`);\n } else {\n console.log(` ${name}`);\n }\n }\n },\n };\n });\n}\n\nfunction mapGetOr(map, key, getDefault) {\n let val = map.get(key);\n if (val === undefined) {\n val = getDefault();\n map.set(key, val);\n }\n return val;\n}\n\nfunction isEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\n"],"names":["types","t","template","_babel","default","intersection","a","b","result","Set","forEach","v","has","add","object","key","Object","prototype","hasOwnProperty","call","resolve","path","resolved","isVariableDeclarator","get","isIdentifier","isReferencedIdentifier","binding","scope","getBinding","node","name","constant","resolveId","hasBinding","resolveKey","computed","isStringLiteral","value","parent","isMemberExpression","sym","isPure","evaluate","resolveSource","obj","id","placement","type","getImportSource","specifiers","length","source","getRequireSource","isExpressionStatement","expression","isCallExpression","callee","arguments","hoist","_blockHoist","createUtilsGetter","cache","prog","findParent","p","isProgram","injectGlobalImport","url","moduleName","storeAnonymous","isScript","statement","ast","importDeclaration","injectNamedImport","hint","storeNamed","generateUidIdentifier","importSpecifier","injectDefaultImport","importDefaultSpecifier","ImportsCachedInjector","constructor","resolver","getPreferredIndex","_imports","WeakMap","_anonymousImports","_lastImports","_resolver","_getPreferredIndex","programPath","getVal","_normalizeKey","imports","_ensure","sourceType","stringLiteral","_injectImport","Map","identifier","set","_this$_lastImports$ge","newIndex","lastImports","isPathStillValid","container","body","last","Infinity","undefined","i","data","entries","index","newPath","insertBefore","splice","insertAfter","push","unshiftContainer","map","Collection","collection","presetEnvSilentDebugHeader","stringifyTargetsMultiline","targets","JSON","stringify","prettifyTargets","patternToRegExp","pattern","RegExp","buildUnusedError","label","unused","original","String","join","buldDuplicatesError","duplicates","size","Array","from","validateIncludeExclude","provider","polyfills","includePatterns","excludePatterns","current","filter","regexp","matched","polyfill","keys","test","include","unusedInclude","exclude","unusedExclude","Error","applyMissingDependenciesDefaults","options","babelApi","missingDependencies","caller","log","inject","all","isRemoved","removed","parentPath","listKey","_path$parentPath$node","includes","_path$parentPath$node2","callProvider","property","kind","handleReferencedIdentifier","getBindingIdentifier","analyzeMemberExpression","handleAsMemberExpression","ReferencedIdentifier","MemberExpression|OptionalMemberExpression","objectIsGlobalIdentifier","isImportNamespaceSpecifier","skipObject","shouldSkip","ObjectPattern","isAssignmentExpression","isFunction","grand","isNewExpression","prop","isObjectProperty","BinaryExpression","operator","ImportDeclaration","Program","bodyPath","nativeRequireResolve","parseFloat","process","versions","require","createRequire","import","meta","myResolve","basedir","paths","replace","requireResolve","sync","dirname","absoluteImports","err","code","assign","logMissing","missingDeps","deps","sort","console","warn","exitCode","allMissingDeps","laterLogMissingDependencies","debounce","laterLogMissing","PossibleGlobalObjects","createMetaResolver","static","staticP","instance","instanceP","global","globalP","desc","getTargets","_getTargets","resolveOptions","method","targetsOption","ignoreBrowserslistConfig","configPath","debug","shouldInjectPolyfill","providerOptions","isEmpty","methodName","targetsObj","isArray","browsers","instantiateProvider","factory","debugLog","polyfillsSupport","polyfillsNames","filterPolyfills","getUtils","_polyfillsNames$get","_polyfillsNames","depsCache","api","babel","providerName","shouldInject","isRequired","compatData","excludes","_debugLog","_debugLog$polyfillsSu","found","assertDependency","version","dep","mapGetOr","payload","_ref","utils","definePolyfillProvider","declare","assertVersion","traverse","createVisitor","visitor","visitors","merge","runtimeName","pre","file","_provider$pre","providers","apply","post","_provider$post","filename","_debugLog$polyfillsSu2","filteredTargets","getInclusionReasons","formattedTargets","getDefault","val"],"mappings":";;;;;;;;;AAASA,EAAAA,KAAK,EAAIC,GAAC;AAAEC,EAAAA,QAAQ,EAARA,QAAAA;AAAQ,CAAA,GAAAC,MAAA,CAAAC,OAAA,IAAAD,MAAA,CAAA;AAKtB,SAASE,YAAYA,CAAIC,CAAS,EAAEC,CAAS,EAAU;AAC5D,EAAA,MAAMC,MAAM,GAAG,IAAIC,GAAG,EAAK,CAAA;AAC3BH,EAAAA,CAAC,CAACI,OAAO,CAACC,CAAC,IAAIJ,CAAC,CAACK,GAAG,CAACD,CAAC,CAAC,IAAIH,MAAM,CAACK,GAAG,CAACF,CAAC,CAAC,CAAC,CAAA;AACzC,EAAA,OAAOH,MAAM,CAAA;AACf,CAAA;AAEO,SAASI,KAAGA,CAACE,MAAW,EAAEC,GAAW,EAAE;EAC5C,OAAOC,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACL,MAAM,EAAEC,GAAG,CAAC,CAAA;AAC1D,CAAA;AAEA,SAASK,SAAOA,CACdC,IAAc,EACdC,QAAuB,GAAG,IAAIb,GAAG,EAAE,EACb;AACtB,EAAA,IAAIa,QAAQ,CAACV,GAAG,CAACS,IAAI,CAAC,EAAE,OAAA;AACxBC,EAAAA,QAAQ,CAACT,GAAG,CAACQ,IAAI,CAAC,CAAA;AAElB,EAAA,IAAIA,IAAI,CAACE,oBAAoB,EAAE,EAAE;IAC/B,IAAIF,IAAI,CAACG,GAAG,CAAC,IAAI,CAAC,CAACC,YAAY,EAAE,EAAE;MACjC,OAAOL,SAAO,CAACC,IAAI,CAACG,GAAG,CAAC,MAAM,CAAC,EAAEF,QAAQ,CAAC,CAAA;AAC5C,KAAA;AACF,GAAC,MAAM,IAAID,IAAI,CAACK,sBAAsB,EAAE,EAAE;AACxC,IAAA,MAAMC,OAAO,GAAGN,IAAI,CAACO,KAAK,CAACC,UAAU,CAACR,IAAI,CAACS,IAAI,CAACC,IAAI,CAAC,CAAA;AACrD,IAAA,IAAI,CAACJ,OAAO,EAAE,OAAON,IAAI,CAAA;AACzB,IAAA,IAAI,CAACM,OAAO,CAACK,QAAQ,EAAE,OAAA;AACvB,IAAA,OAAOZ,SAAO,CAACO,OAAO,CAACN,IAAI,EAAEC,QAAQ,CAAC,CAAA;AACxC,GAAA;AACA,EAAA,OAAOD,IAAI,CAAA;AACb,CAAA;AAEA,SAASY,SAASA,CAACZ,IAAc,EAAU;EACzC,IACEA,IAAI,CAACI,YAAY,EAAE,IACnB,CAACJ,IAAI,CAACO,KAAK,CAACM,UAAU,CAACb,IAAI,CAACS,IAAI,CAACC,IAAI,iBAAkB,IAAI,CAAC,EAC5D;AACA,IAAA,OAAOV,IAAI,CAACS,IAAI,CAACC,IAAI,CAAA;AACvB,GAAA;AAEA,EAAA,MAAMT,QAAQ,GAAGF,SAAO,CAACC,IAAI,CAAC,CAAA;AAC9B,EAAA,IAAIC,QAAQ,IAARA,IAAAA,IAAAA,QAAQ,CAAEG,YAAY,EAAE,EAAE;AAC5B,IAAA,OAAOH,QAAQ,CAACQ,IAAI,CAACC,IAAI,CAAA;AAC3B,GAAA;AACF,CAAA;AAEO,SAASI,UAAUA,CACxBd,IAA4C,EAC5Ce,QAAiB,GAAG,KAAK,EACzB;EACA,MAAM;AAAER,IAAAA,KAAAA;AAAM,GAAC,GAAGP,IAAI,CAAA;EACtB,IAAIA,IAAI,CAACgB,eAAe,EAAE,EAAE,OAAOhB,IAAI,CAACS,IAAI,CAACQ,KAAK,CAAA;AAClD,EAAA,MAAMb,YAAY,GAAGJ,IAAI,CAACI,YAAY,EAAE,CAAA;EACxC,IACEA,YAAY,IACZ,EAAEW,QAAQ,IAAKf,IAAI,CAACkB,MAAM,CAAwBH,QAAQ,CAAC,EAC3D;AACA,IAAA,OAAOf,IAAI,CAACS,IAAI,CAACC,IAAI,CAAA;AACvB,GAAA;AAEA,EAAA,IACEK,QAAQ,IACRf,IAAI,CAACmB,kBAAkB,EAAE,IACzBnB,IAAI,CAACG,GAAG,CAAC,QAAQ,CAAC,CAACC,YAAY,CAAC;AAAEM,IAAAA,IAAI,EAAE,QAAA;AAAS,GAAC,CAAC,IACnD,CAACH,KAAK,CAACM,UAAU,CAAC,QAAQ,iBAAkB,IAAI,CAAC,EACjD;AACA,IAAA,MAAMO,GAAG,GAAGN,UAAU,CAACd,IAAI,CAACG,GAAG,CAAC,UAAU,CAAC,EAAEH,IAAI,CAACS,IAAI,CAACM,QAAQ,CAAC,CAAA;AAChE,IAAA,IAAIK,GAAG,EAAE,OAAO,SAAS,GAAGA,GAAG,CAAA;AACjC,GAAA;EAEA,IACEhB,YAAY,GACRG,KAAK,CAACM,UAAU,CAACb,IAAI,CAACS,IAAI,CAACC,IAAI,iBAAkB,IAAI,CAAC,GACtDV,IAAI,CAACqB,MAAM,EAAE,EACjB;IACA,MAAM;AAAEJ,MAAAA,KAAAA;AAAM,KAAC,GAAGjB,IAAI,CAACsB,QAAQ,EAAE,CAAA;AACjC,IAAA,IAAI,OAAOL,KAAK,KAAK,QAAQ,EAAE,OAAOA,KAAK,CAAA;AAC7C,GAAA;AACF,CAAA;AAEO,SAASM,aAAaA,CAACC,GAAa,EAGzC;AACA,EAAA,IACEA,GAAG,CAACL,kBAAkB,EAAE,IACxBK,GAAG,CAACrB,GAAG,CAAC,UAAU,CAAC,CAACC,YAAY,CAAC;AAAEM,IAAAA,IAAI,EAAE,WAAA;AAAY,GAAC,CAAC,EACvD;IACA,MAAMe,EAAE,GAAGb,SAAS,CAACY,GAAG,CAACrB,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEvC,IAAA,IAAIsB,EAAE,EAAE;MACN,OAAO;QAAEA,EAAE;AAAEC,QAAAA,SAAS,EAAE,WAAA;OAAa,CAAA;AACvC,KAAA;IACA,OAAO;AAAED,MAAAA,EAAE,EAAE,IAAI;AAAEC,MAAAA,SAAS,EAAE,IAAA;KAAM,CAAA;AACtC,GAAA;AAEA,EAAA,MAAMD,EAAE,GAAGb,SAAS,CAACY,GAAG,CAAC,CAAA;AACzB,EAAA,IAAIC,EAAE,EAAE;IACN,OAAO;MAAEA,EAAE;AAAEC,MAAAA,SAAS,EAAE,QAAA;KAAU,CAAA;AACpC,GAAA;AAEA,EAAA,MAAM1B,IAAI,GAAGD,SAAO,CAACyB,GAAG,CAAC,CAAA;AACzB,EAAA,QAAQxB,IAAI,IAAA,IAAA,GAAA,KAAA,CAAA,GAAJA,IAAI,CAAE2B,IAAI;AAChB,IAAA,KAAK,eAAe;MAClB,OAAO;AAAEF,QAAAA,EAAE,EAAE,QAAQ;AAAEC,QAAAA,SAAS,EAAE,WAAA;OAAa,CAAA;AACjD,IAAA,KAAK,oBAAoB;MACvB,OAAO;AAAED,QAAAA,EAAE,EAAE,UAAU;AAAEC,QAAAA,SAAS,EAAE,WAAA;OAAa,CAAA;AACnD,IAAA,KAAK,eAAe;MAClB,OAAO;AAAED,QAAAA,EAAE,EAAE,QAAQ;AAAEC,QAAAA,SAAS,EAAE,WAAA;OAAa,CAAA;AACjD,IAAA,KAAK,eAAe;MAClB,OAAO;AAAED,QAAAA,EAAE,EAAE,QAAQ;AAAEC,QAAAA,SAAS,EAAE,WAAA;OAAa,CAAA;AACjD,IAAA,KAAK,gBAAgB;MACnB,OAAO;AAAED,QAAAA,EAAE,EAAE,SAAS;AAAEC,QAAAA,SAAS,EAAE,WAAA;OAAa,CAAA;AAClD,IAAA,KAAK,kBAAkB;MACrB,OAAO;AAAED,QAAAA,EAAE,EAAE,QAAQ;AAAEC,QAAAA,SAAS,EAAE,WAAA;OAAa,CAAA;AACjD,IAAA,KAAK,iBAAiB;MACpB,OAAO;AAAED,QAAAA,EAAE,EAAE,OAAO;AAAEC,QAAAA,SAAS,EAAE,WAAA;OAAa,CAAA;AAClD,GAAA;EAEA,OAAO;AAAED,IAAAA,EAAE,EAAE,IAAI;AAAEC,IAAAA,SAAS,EAAE,IAAA;GAAM,CAAA;AACtC,CAAA;AAEO,SAASE,eAAeA,CAAC;AAAEnB,EAAAA,IAAAA;AAAoC,CAAC,EAAE;AACvE,EAAA,IAAIA,IAAI,CAACoB,UAAU,CAACC,MAAM,KAAK,CAAC,EAAE,OAAOrB,IAAI,CAACsB,MAAM,CAACd,KAAK,CAAA;AAC5D,CAAA;AAEO,SAASe,gBAAgBA,CAAC;AAAEvB,EAAAA,IAAAA;AAA4B,CAAC,EAAE;AAChE,EAAA,IAAI,CAAC7B,GAAC,CAACqD,qBAAqB,CAACxB,IAAI,CAAC,EAAE,OAAA;EACpC,MAAM;AAAEyB,IAAAA,UAAAA;AAAW,GAAC,GAAGzB,IAAI,CAAA;AAC3B,EAAA,IACE7B,GAAC,CAACuD,gBAAgB,CAACD,UAAU,CAAC,IAC9BtD,GAAC,CAACwB,YAAY,CAAC8B,UAAU,CAACE,MAAM,CAAC,IACjCF,UAAU,CAACE,MAAM,CAAC1B,IAAI,KAAK,SAAS,IACpCwB,UAAU,CAACG,SAAS,CAACP,MAAM,KAAK,CAAC,IACjClD,GAAC,CAACoC,eAAe,CAACkB,UAAU,CAACG,SAAS,CAAC,CAAC,CAAC,CAAC,EAC1C;AACA,IAAA,OAAOH,UAAU,CAACG,SAAS,CAAC,CAAC,CAAC,CAACpB,KAAK,CAAA;AACtC,GAAA;AACF,CAAA;AAEA,SAASqB,KAAKA,CAAmB7B,IAAO,EAAK;AAC3C;EACAA,IAAI,CAAC8B,WAAW,GAAG,CAAC,CAAA;AACpB,EAAA,OAAO9B,IAAI,CAAA;AACb,CAAA;AAEO,SAAS+B,iBAAiBA,CAACC,KAA4B,EAAE;AAC9D,EAAA,OAAQzC,IAAc,IAAY;AAChC,IAAA,MAAM0C,IAAI,GAAG1C,IAAI,CAAC2C,UAAU,CAACC,CAAC,IAAIA,CAAC,CAACC,SAAS,EAAE,CAAwB,CAAA;IAEvE,OAAO;AACLC,MAAAA,kBAAkBA,CAACC,GAAG,EAAEC,UAAU,EAAE;AAClCP,QAAAA,KAAK,CAACQ,cAAc,CAACP,IAAI,EAAEK,GAAG,EAAEC,UAAU,EAAE,CAACE,QAAQ,EAAEnB,MAAM,KAAK;AAChE,UAAA,OAAOmB,QAAQ,GACXrE,QAAQ,CAACsE,SAAS,CAACC,GAAG,CAAWrB,QAAAA,EAAAA,MAAM,CAAG,CAAA,CAAA,GAC1CnD,GAAC,CAACyE,iBAAiB,CAAC,EAAE,EAAEtB,MAAM,CAAC,CAAA;AACrC,SAAC,CAAC,CAAA;OACH;MACDuB,iBAAiBA,CAACP,GAAG,EAAErC,IAAI,EAAE6C,IAAI,GAAG7C,IAAI,EAAEsC,UAAU,EAAE;AACpD,QAAA,OAAOP,KAAK,CAACe,UAAU,CACrBd,IAAI,EACJK,GAAG,EACHrC,IAAI,EACJsC,UAAU,EACV,CAACE,QAAQ,EAAEnB,MAAM,EAAErB,IAAI,KAAK;UAC1B,MAAMe,EAAE,GAAGiB,IAAI,CAACnC,KAAK,CAACkD,qBAAqB,CAACF,IAAI,CAAC,CAAA;UACjD,OAAO;YACL9C,IAAI,EAAEyC,QAAQ,GACVZ,KAAK,CAACzD,QAAQ,CAACsE,SAAS,CAACC,GAAG,CAAA;AAC9C,sBAAA,EAAwB3B,EAAE,CAAA,WAAA,EAAcM,MAAM,CAAA,EAAA,EAAKrB,IAAI,CAAA;AACvD,gBAAA,CAAiB,CAAC,GACA9B,GAAC,CAACyE,iBAAiB,CAAC,CAACzE,GAAC,CAAC8E,eAAe,CAACjC,EAAE,EAAEf,IAAI,CAAC,CAAC,EAAEqB,MAAM,CAAC;YAC9DrB,IAAI,EAAEe,EAAE,CAACf,IAAAA;WACV,CAAA;AACH,SACF,CAAC,CAAA;OACF;MACDiD,mBAAmBA,CAACZ,GAAG,EAAEQ,IAAI,GAAGR,GAAG,EAAEC,UAAU,EAAE;AAC/C,QAAA,OAAOP,KAAK,CAACe,UAAU,CACrBd,IAAI,EACJK,GAAG,EACH,SAAS,EACTC,UAAU,EACV,CAACE,QAAQ,EAAEnB,MAAM,KAAK;UACpB,MAAMN,EAAE,GAAGiB,IAAI,CAACnC,KAAK,CAACkD,qBAAqB,CAACF,IAAI,CAAC,CAAA;UACjD,OAAO;AACL9C,YAAAA,IAAI,EAAEyC,QAAQ,GACVZ,KAAK,CAACzD,QAAQ,CAACsE,SAAS,CAACC,GAAG,CAAO3B,IAAAA,EAAAA,EAAE,cAAcM,MAAM,CAAA,CAAA,CAAG,CAAC,GAC7DnD,GAAC,CAACyE,iBAAiB,CAAC,CAACzE,GAAC,CAACgF,sBAAsB,CAACnC,EAAE,CAAC,CAAC,EAAEM,MAAM,CAAC;YAC/DrB,IAAI,EAAEe,EAAE,CAACf,IAAAA;WACV,CAAA;AACH,SACF,CAAC,CAAA;AACH,OAAA;KACD,CAAA;GACF,CAAA;AACH;;;ACtMS/B,EAAAA,KAAK,EAAIC,CAAAA;AAAC,CAAA,GAAAE,MAAA,CAAAC,OAAA,IAAAD,MAAA,CAAA;AAIJ,MAAM+E,qBAAqB,CAAC;AAUzCC,EAAAA,WAAWA,CACTC,QAAiC,EACjCC,iBAA0C,EAC1C;AACA,IAAA,IAAI,CAACC,QAAQ,GAAG,IAAIC,OAAO,EAAE,CAAA;AAC7B,IAAA,IAAI,CAACC,iBAAiB,GAAG,IAAID,OAAO,EAAE,CAAA;AACtC,IAAA,IAAI,CAACE,YAAY,GAAG,IAAIF,OAAO,EAAE,CAAA;IACjC,IAAI,CAACG,SAAS,GAAGN,QAAQ,CAAA;IACzB,IAAI,CAACO,kBAAkB,GAAGN,iBAAiB,CAAA;AAC7C,GAAA;EAEAf,cAAcA,CACZsB,WAAgC,EAChCxB,GAAW,EACXC,UAAkB,EAClBwB,MAGgC,EAChC;IACA,MAAM9E,GAAG,GAAG,IAAI,CAAC+E,aAAa,CAACF,WAAW,EAAExB,GAAG,CAAC,CAAA;AAChD,IAAA,MAAM2B,OAAO,GAAG,IAAI,CAACC,OAAO,CAC1B,IAAI,CAACR,iBAAiB,EACtBI,WAAW,EACXnF,GACF,CAAC,CAAA;AAED,IAAA,IAAIsF,OAAO,CAACnF,GAAG,CAACG,GAAG,CAAC,EAAE,OAAA;IAEtB,MAAMe,IAAI,GAAG+D,MAAM,CACjBD,WAAW,CAAC9D,IAAI,CAACmE,UAAU,KAAK,QAAQ,EACxChG,CAAC,CAACiG,aAAa,CAAC,IAAI,CAACR,SAAS,CAACtB,GAAG,CAAC,CACrC,CAAC,CAAA;AACD2B,IAAAA,OAAO,CAAClF,GAAG,CAACE,GAAG,CAAC,CAAA;IAChB,IAAI,CAACoF,aAAa,CAACP,WAAW,EAAE9D,IAAI,EAAEuC,UAAU,CAAC,CAAA;AACnD,GAAA;EAEAQ,UAAUA,CACRe,WAAgC,EAChCxB,GAAW,EACXrC,IAAY,EACZsC,UAAkB,EAClBwB,MAMwD,EACxD;IACA,MAAM9E,GAAG,GAAG,IAAI,CAAC+E,aAAa,CAACF,WAAW,EAAExB,GAAG,EAAErC,IAAI,CAAC,CAAA;AACtD,IAAA,MAAMgE,OAAO,GAAG,IAAI,CAACC,OAAO,CAC1B,IAAI,CAACV,QAAQ,EACbM,WAAW,EACXQ,GACF,CAAC,CAAA;AAED,IAAA,IAAI,CAACL,OAAO,CAACnF,GAAG,CAACG,GAAG,CAAC,EAAE;MACrB,MAAM;QAAEe,IAAI;AAAEC,QAAAA,IAAI,EAAEe,EAAAA;AAAG,OAAC,GAAG+C,MAAM,CAC/BD,WAAW,CAAC9D,IAAI,CAACmE,UAAU,KAAK,QAAQ,EACxChG,CAAC,CAACiG,aAAa,CAAC,IAAI,CAACR,SAAS,CAACtB,GAAG,CAAC,CAAC,EACpCnE,CAAC,CAACoG,UAAU,CAACtE,IAAI,CACnB,CAAC,CAAA;AACDgE,MAAAA,OAAO,CAACO,GAAG,CAACvF,GAAG,EAAE+B,EAAE,CAAC,CAAA;MACpB,IAAI,CAACqD,aAAa,CAACP,WAAW,EAAE9D,IAAI,EAAEuC,UAAU,CAAC,CAAA;AACnD,KAAA;IAEA,OAAOpE,CAAC,CAACoG,UAAU,CAACN,OAAO,CAACvE,GAAG,CAACT,GAAG,CAAC,CAAC,CAAA;AACvC,GAAA;AAEAoF,EAAAA,aAAaA,CACXP,WAAgC,EAChC9D,IAAiC,EACjCuC,UAAkB,EAClB;AAAA,IAAA,IAAAkC,qBAAA,CAAA;AACA,IAAA,MAAMC,QAAQ,GAAG,IAAI,CAACb,kBAAkB,CAACtB,UAAU,CAAC,CAAA;AACpD,IAAA,MAAMoC,WAAW,GAAA,CAAAF,qBAAA,GAAG,IAAI,CAACd,YAAY,CAACjE,GAAG,CAACoE,WAAW,CAAC,KAAAW,IAAAA,GAAAA,qBAAA,GAAI,EAAE,CAAA;AAE5D,IAAA,MAAMG,gBAAgB,GAAIrF,IAAc,IACtCA,IAAI,CAACS,IAAI;AACT;AACA;AACAT,IAAAA,IAAI,CAACkB,MAAM,KAAKqD,WAAW,CAAC9D,IAAI,IAChCT,IAAI,CAACsF,SAAS,KAAKf,WAAW,CAAC9D,IAAI,CAAC8E,IAAI,CAAA;AAE1C,IAAA,IAAIC,IAAc,CAAA;IAElB,IAAIL,QAAQ,KAAKM,QAAQ,EAAE;AACzB;AACA,MAAA,IAAIL,WAAW,CAACtD,MAAM,GAAG,CAAC,EAAE;QAC1B0D,IAAI,GAAGJ,WAAW,CAACA,WAAW,CAACtD,MAAM,GAAG,CAAC,CAAC,CAAC9B,IAAI,CAAA;QAC/C,IAAI,CAACqF,gBAAgB,CAACG,IAAI,CAAC,EAAEA,IAAI,GAAGE,SAAS,CAAA;AAC/C,OAAA;AACF,KAAC,MAAM;AACL,MAAA,KAAK,MAAM,CAACC,CAAC,EAAEC,IAAI,CAAC,IAAIR,WAAW,CAACS,OAAO,EAAE,EAAE;QAC7C,MAAM;UAAE7F,IAAI;AAAE8F,UAAAA,KAAAA;AAAM,SAAC,GAAGF,IAAI,CAAA;AAC5B,QAAA,IAAIP,gBAAgB,CAACrF,IAAI,CAAC,EAAE;UAC1B,IAAImF,QAAQ,GAAGW,KAAK,EAAE;YACpB,MAAM,CAACC,OAAO,CAAC,GAAG/F,IAAI,CAACgG,YAAY,CAACvF,IAAI,CAAC,CAAA;AACzC2E,YAAAA,WAAW,CAACa,MAAM,CAACN,CAAC,EAAE,CAAC,EAAE;AAAE3F,cAAAA,IAAI,EAAE+F,OAAO;AAAED,cAAAA,KAAK,EAAEX,QAAAA;AAAS,aAAC,CAAC,CAAA;AAC5D,YAAA,OAAA;AACF,WAAA;AACAK,UAAAA,IAAI,GAAGxF,IAAI,CAAA;AACb,SAAA;AACF,OAAA;AACF,KAAA;AAEA,IAAA,IAAIwF,IAAI,EAAE;MACR,MAAM,CAACO,OAAO,CAAC,GAAGP,IAAI,CAACU,WAAW,CAACzF,IAAI,CAAC,CAAA;MACxC2E,WAAW,CAACe,IAAI,CAAC;AAAEnG,QAAAA,IAAI,EAAE+F,OAAO;AAAED,QAAAA,KAAK,EAAEX,QAAAA;AAAS,OAAC,CAAC,CAAA;AACtD,KAAC,MAAM;AACL,MAAA,MAAM,CAACY,OAAO,CAAC,GAAGxB,WAAW,CAAC6B,gBAAgB,CAAC,MAAM,EAAE,CAAC3F,IAAI,CAAC,CAAC,CAAA;AAC9D,MAAA,IAAI,CAAC2D,YAAY,CAACa,GAAG,CAACV,WAAW,EAAE,CAAC;AAAEvE,QAAAA,IAAI,EAAE+F,OAAO;AAAED,QAAAA,KAAK,EAAEX,QAAAA;AAAS,OAAC,CAAC,CAAC,CAAA;AAC1E,KAAA;AACF,GAAA;AAEAR,EAAAA,OAAOA,CACL0B,GAAoC,EACpC9B,WAAgC,EAChC+B,UAAqC,EAClC;AACH,IAAA,IAAIC,UAAU,GAAGF,GAAG,CAAClG,GAAG,CAACoE,WAAW,CAAC,CAAA;IACrC,IAAI,CAACgC,UAAU,EAAE;AACfA,MAAAA,UAAU,GAAG,IAAID,UAAU,EAAE,CAAA;AAC7BD,MAAAA,GAAG,CAACpB,GAAG,CAACV,WAAW,EAAEgC,UAAU,CAAC,CAAA;AAClC,KAAA;AACA,IAAA,OAAOA,UAAU,CAAA;AACnB,GAAA;EAEA9B,aAAaA,CACXF,WAAgC,EAChCxB,GAAW,EACXrC,IAAY,GAAG,EAAE,EACT;IACR,MAAM;AAAEkE,MAAAA,UAAAA;KAAY,GAAGL,WAAW,CAAC9D,IAAI,CAAA;;AAEvC;AACA;AACA;IACA,OAAO,CAAA,EAAGC,IAAI,IAAIkE,UAAU,KAAK7B,GAAG,CAAA,EAAA,EAAKrC,IAAI,CAAE,CAAA,CAAA;AACjD,GAAA;AACF;;ACxJO,MAAM8F,0BAA0B,GACrC,+EAA+E,CAAA;AAE1E,SAASC,yBAAyBA,CAACC,OAAgB,EAAU;AAClE,EAAA,OAAOC,IAAI,CAACC,SAAS,CAACC,eAAe,CAACH,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;AAC1D;;ACFA,SAASI,eAAeA,CAACC,OAAgB,EAAiB;AACxD,EAAA,IAAIA,OAAO,YAAYC,MAAM,EAAE,OAAOD,OAAO,CAAA;EAE7C,IAAI;AACF,IAAA,OAAO,IAAIC,MAAM,CAAC,CAAID,CAAAA,EAAAA,OAAO,GAAG,CAAC,CAAA;AACnC,GAAC,CAAC,MAAM;AACN,IAAA,OAAO,IAAI,CAAA;AACb,GAAA;AACF,CAAA;AAEA,SAASE,gBAAgBA,CAACC,KAAK,EAAEC,MAAM,EAAE;AACvC,EAAA,IAAI,CAACA,MAAM,CAACrF,MAAM,EAAE,OAAO,EAAE,CAAA;EAC7B,OACE,CAAA,mBAAA,EAAsBoF,KAAK,CAAyC,uCAAA,CAAA,GACpEC,MAAM,CAACd,GAAG,CAACe,QAAQ,IAAI,OAAOC,MAAM,CAACD,QAAQ,CAAC,CAAA,EAAA,CAAI,CAAC,CAACE,IAAI,CAAC,EAAE,CAAC,CAAA;AAEhE,CAAA;AAEA,SAASC,mBAAmBA,CAACC,UAAU,EAAE;AACvC,EAAA,IAAI,CAACA,UAAU,CAACC,IAAI,EAAE,OAAO,EAAE,CAAA;AAC/B,EAAA,OACE,sFAAsF,GACtFC,KAAK,CAACC,IAAI,CAACH,UAAU,EAAE9G,IAAI,IAAI,CAAA,IAAA,EAAOA,IAAI,CAAI,EAAA,CAAA,CAAC,CAAC4G,IAAI,CAAC,EAAE,CAAC,CAAA;AAE5D,CAAA;AAEO,SAASM,sBAAsBA,CACpCC,QAAgB,EAChBC,SAA+B,EAC/BC,eAA0B,EAC1BC,eAA0B,EAC1B;AACA,EAAA,IAAIC,OAAO,CAAA;EACX,MAAMC,MAAM,GAAGnB,OAAO,IAAI;AACxB,IAAA,MAAMoB,MAAM,GAAGrB,eAAe,CAACC,OAAO,CAAC,CAAA;AACvC,IAAA,IAAI,CAACoB,MAAM,EAAE,OAAO,KAAK,CAAA;IAEzB,IAAIC,OAAO,GAAG,KAAK,CAAA;IACnB,KAAK,MAAMC,QAAQ,IAAIP,SAAS,CAACQ,IAAI,EAAE,EAAE;AACvC,MAAA,IAAIH,MAAM,CAACI,IAAI,CAACF,QAAQ,CAAC,EAAE;AACzBD,QAAAA,OAAO,GAAG,IAAI,CAAA;AACdH,QAAAA,OAAO,CAACzI,GAAG,CAAC6I,QAAQ,CAAC,CAAA;AACvB,OAAA;AACF,KAAA;AACA,IAAA,OAAO,CAACD,OAAO,CAAA;GAChB,CAAA;;AAED;AACA,EAAA,MAAMI,OAAO,GAAGP,OAAO,GAAG,IAAI7I,GAAG,EAAW,CAAA;AAC5C,EAAA,MAAMqJ,aAAa,GAAGf,KAAK,CAACC,IAAI,CAACI,eAAe,CAAC,CAACG,MAAM,CAACA,MAAM,CAAC,CAAA;;AAEhE;AACA,EAAA,MAAMQ,OAAO,GAAGT,OAAO,GAAG,IAAI7I,GAAG,EAAW,CAAA;AAC5C,EAAA,MAAMuJ,aAAa,GAAGjB,KAAK,CAACC,IAAI,CAACK,eAAe,CAAC,CAACE,MAAM,CAACA,MAAM,CAAC,CAAA;AAEhE,EAAA,MAAMV,UAAU,GAAGxI,YAAY,CAACwJ,OAAO,EAAEE,OAAO,CAAC,CAAA;AAEjD,EAAA,IACElB,UAAU,CAACC,IAAI,GAAG,CAAC,IACnBgB,aAAa,CAAC3G,MAAM,GAAG,CAAC,IACxB6G,aAAa,CAAC7G,MAAM,GAAG,CAAC,EACxB;IACA,MAAM,IAAI8G,KAAK,CACb,CAA+Bf,4BAAAA,EAAAA,QAAQ,uBAAuB,GAC5DZ,gBAAgB,CAAC,SAAS,EAAEwB,aAAa,CAAC,GAC1CxB,gBAAgB,CAAC,SAAS,EAAE0B,aAAa,CAAC,GAC1CpB,mBAAmB,CAACC,UAAU,CAClC,CAAC,CAAA;AACH,GAAA;EAEA,OAAO;IAAEgB,OAAO;AAAEE,IAAAA,OAAAA;GAAS,CAAA;AAC7B,CAAA;AAEO,SAASG,gCAAgCA,CAC9CC,OAAsB,EACtBC,QAAa,EACc;EAC3B,MAAM;AAAEC,IAAAA,mBAAmB,GAAG,EAAC;AAAE,GAAC,GAAGF,OAAO,CAAA;AAC5C,EAAA,IAAIE,mBAAmB,KAAK,KAAK,EAAE,OAAO,KAAK,CAAA;AAE/C,EAAA,MAAMC,MAAM,GAAGF,QAAQ,CAACE,MAAM,CAACA,MAAM,IAAIA,MAAM,IAAA,IAAA,GAAA,KAAA,CAAA,GAANA,MAAM,CAAEvI,IAAI,CAAC,CAAA;EAEtD,MAAM;AACJwI,IAAAA,GAAG,GAAG,UAAU;AAChBC,IAAAA,MAAM,GAAGF,MAAM,KAAK,qBAAqB,GAAG,OAAO,GAAG,QAAQ;AAC9DG,IAAAA,GAAG,GAAG,KAAA;AACR,GAAC,GAAGJ,mBAAmB,CAAA;EAEvB,OAAO;IAAEE,GAAG;IAAEC,MAAM;AAAEC,IAAAA,GAAAA;GAAK,CAAA;AAC7B;;AC1FA,SAASC,SAASA,CAACrJ,IAAc,EAAE;AACjC,EAAA,IAAIA,IAAI,CAACsJ,OAAO,EAAE,OAAO,IAAI,CAAA;AAC7B,EAAA,IAAI,CAACtJ,IAAI,CAACuJ,UAAU,EAAE,OAAO,KAAK,CAAA;EAClC,IAAIvJ,IAAI,CAACwJ,OAAO,EAAE;AAAA,IAAA,IAAAC,qBAAA,CAAA;AAChB,IAAA,IAAI,EAAAA,CAAAA,qBAAA,GAACzJ,IAAI,CAACuJ,UAAU,CAAC9I,IAAI,KAAAgJ,IAAAA,IAAAA,CAAAA,qBAAA,GAApBA,qBAAA,CAAuBzJ,IAAI,CAACwJ,OAAO,CAAC,KAAA,IAAA,IAApCC,qBAAA,CAAsCC,QAAQ,CAAC1J,IAAI,CAACS,IAAI,CAAC,CAAE,EAAA,OAAO,IAAI,CAAA;AAC7E,GAAC,MAAM;AAAA,IAAA,IAAAkJ,sBAAA,CAAA;IACL,IAAI,CAAA,CAAAA,sBAAA,GAAA3J,IAAI,CAACuJ,UAAU,CAAC9I,IAAI,KAApBkJ,IAAAA,GAAAA,KAAAA,CAAAA,GAAAA,sBAAA,CAAuB3J,IAAI,CAACN,GAAG,CAAC,MAAKM,IAAI,CAACS,IAAI,EAAE,OAAO,IAAI,CAAA;AACjE,GAAA;AACA,EAAA,OAAO4I,SAAS,CAACrJ,IAAI,CAACuJ,UAAU,CAAC,CAAA;AACnC,CAAA;AAEA,YAAgBK,YAA0B,IAAK;EAC7C,SAASC,QAAQA,CAACpK,MAAM,EAAEC,GAAG,EAAEgC,SAAS,EAAE1B,IAAI,EAAE;AAC9C,IAAA,OAAO4J,YAAY,CAAC;AAAEE,MAAAA,IAAI,EAAE,UAAU;MAAErK,MAAM;MAAEC,GAAG;AAAEgC,MAAAA,SAAAA;KAAW,EAAE1B,IAAI,CAAC,CAAA;AACzE,GAAA;EAEA,SAAS+J,0BAA0BA,CAAC/J,IAAI,EAAE;IACxC,MAAM;AACJS,MAAAA,IAAI,EAAE;AAAEC,QAAAA,IAAAA;OAAM;AACdH,MAAAA,KAAAA;AACF,KAAC,GAAGP,IAAI,CAAA;AACR,IAAA,IAAIO,KAAK,CAACyJ,oBAAoB,CAACtJ,IAAI,CAAC,EAAE,OAAA;AAEtCkJ,IAAAA,YAAY,CAAC;AAAEE,MAAAA,IAAI,EAAE,QAAQ;AAAEpJ,MAAAA,IAAAA;KAAM,EAAEV,IAAI,CAAC,CAAA;AAC9C,GAAA;EAEA,SAASiK,uBAAuBA,CAC9BjK,IAA+D,EAC/D;AACA,IAAA,MAAMN,GAAG,GAAGoB,UAAU,CAACd,IAAI,CAACG,GAAG,CAAC,UAAU,CAAC,EAAEH,IAAI,CAACS,IAAI,CAACM,QAAQ,CAAC,CAAA;IAChE,OAAO;MAAErB,GAAG;AAAEwK,MAAAA,wBAAwB,EAAE,CAAC,CAACxK,GAAG,IAAIA,GAAG,KAAK,WAAA;KAAa,CAAA;AACxE,GAAA;EAEA,OAAO;AACL;IACAyK,oBAAoBA,CAACnK,IAA4B,EAAE;MACjD,MAAM;AAAEuJ,QAAAA,UAAAA;AAAW,OAAC,GAAGvJ,IAAI,CAAA;MAC3B,IACEuJ,UAAU,CAACpI,kBAAkB,CAAC;QAAE1B,MAAM,EAAEO,IAAI,CAACS,IAAAA;OAAM,CAAC,IACpDwJ,uBAAuB,CAACV,UAAU,CAAC,CAACW,wBAAwB,EAC5D;AACA,QAAA,OAAA;AACF,OAAA;MACAH,0BAA0B,CAAC/J,IAAI,CAAC,CAAA;KACjC;IAED,2CAA2CoK,CACzCpK,IAA+D,EAC/D;MACA,MAAM;QAAEN,GAAG;AAAEwK,QAAAA,wBAAAA;AAAyB,OAAC,GAAGD,uBAAuB,CAACjK,IAAI,CAAC,CAAA;MACvE,IAAI,CAACkK,wBAAwB,EAAE,OAAA;AAE/B,MAAA,MAAMzK,MAAM,GAAGO,IAAI,CAACG,GAAG,CAAC,QAAQ,CAAC,CAAA;AACjC,MAAA,IAAIkK,wBAAwB,GAAG5K,MAAM,CAACW,YAAY,EAAE,CAAA;AACpD,MAAA,IAAIiK,wBAAwB,EAAE;AAC5B,QAAA,MAAM/J,OAAO,GAAGb,MAAM,CAACc,KAAK,CAACC,UAAU,CACpCf,MAAM,CAACgB,IAAI,CAAkBC,IAChC,CAAC,CAAA;AACD,QAAA,IAAIJ,OAAO,EAAE;AACX,UAAA,IAAIA,OAAO,CAACN,IAAI,CAACsK,0BAA0B,EAAE,EAAE,OAAA;AAC/CD,UAAAA,wBAAwB,GAAG,KAAK,CAAA;AAClC,SAAA;AACF,OAAA;AAEA,MAAA,MAAMtI,MAAM,GAAGR,aAAa,CAAC9B,MAAM,CAAC,CAAA;AACpC,MAAA,IAAI8K,UAAU,GAAGV,QAAQ,CAAC9H,MAAM,CAACN,EAAE,EAAE/B,GAAG,EAAEqC,MAAM,CAACL,SAAS,EAAE1B,IAAI,CAAC,CAAA;AACjEuK,MAAAA,UAAU,KAAVA,UAAU,GACR,CAACF,wBAAwB,IACzBrK,IAAI,CAACwK,UAAU,IACf/K,MAAM,CAAC+K,UAAU,IACjBnB,SAAS,CAAC5J,MAAM,CAAC,CAAA,CAAA;AAEnB,MAAA,IAAI,CAAC8K,UAAU,EAAER,0BAA0B,CAACtK,MAAM,CAAC,CAAA;KACpD;IAEDgL,aAAaA,CAACzK,IAA+B,EAAE;MAC7C,MAAM;QAAEuJ,UAAU;AAAErI,QAAAA,MAAAA;AAAO,OAAC,GAAGlB,IAAI,CAAA;AACnC,MAAA,IAAIwB,GAAG,CAAA;;AAEP;AACA,MAAA,IAAI+H,UAAU,CAACrJ,oBAAoB,EAAE,EAAE;AACrCsB,QAAAA,GAAG,GAAG+H,UAAU,CAACpJ,GAAG,CAAC,MAAM,CAAC,CAAA;AAC5B;AACF,OAAC,MAAM,IAAIoJ,UAAU,CAACmB,sBAAsB,EAAE,EAAE;AAC9ClJ,QAAAA,GAAG,GAAG+H,UAAU,CAACpJ,GAAG,CAAC,OAAO,CAAC,CAAA;AAC7B;AACA;AACF,OAAC,MAAM,IAAIoJ,UAAU,CAACoB,UAAU,EAAE,EAAE;AAClC,QAAA,MAAMC,KAAK,GAAGrB,UAAU,CAACA,UAAU,CAAA;QACnC,IAAIqB,KAAK,CAACzI,gBAAgB,EAAE,IAAIyI,KAAK,CAACC,eAAe,EAAE,EAAE;AACvD,UAAA,IAAID,KAAK,CAACnK,IAAI,CAAC2B,MAAM,KAAKlB,MAAM,EAAE;YAChCM,GAAG,GAAGoJ,KAAK,CAACzK,GAAG,CAAC,WAAW,CAAC,CAACH,IAAI,CAACN,GAAG,CAAC,CAAA;AACxC,WAAA;AACF,SAAA;AACF,OAAA;MAEA,IAAI+B,EAAE,GAAG,IAAI,CAAA;MACb,IAAIC,SAAS,GAAG,IAAI,CAAA;MACpB,IAAIF,GAAG,EAAE,CAAC;QAAEC,EAAE;AAAEC,QAAAA,SAAAA;AAAU,OAAC,GAAGH,aAAa,CAACC,GAAG,CAAC,EAAA;MAEhD,KAAK,MAAMsJ,IAAI,IAAI9K,IAAI,CAACG,GAAG,CAAC,YAAY,CAAC,EAAE;AACzC,QAAA,IAAI2K,IAAI,CAACC,gBAAgB,EAAE,EAAE;UAC3B,MAAMrL,GAAG,GAAGoB,UAAU,CAACgK,IAAI,CAAC3K,GAAG,CAAC,KAAK,CAAC,CAAC,CAAA;UACvC,IAAIT,GAAG,EAAEmK,QAAQ,CAACpI,EAAE,EAAE/B,GAAG,EAAEgC,SAAS,EAAEoJ,IAAI,CAAC,CAAA;AAC7C,SAAA;AACF,OAAA;KACD;IAEDE,gBAAgBA,CAAChL,IAAkC,EAAE;AACnD,MAAA,IAAIA,IAAI,CAACS,IAAI,CAACwK,QAAQ,KAAK,IAAI,EAAE,OAAA;MAEjC,MAAMlJ,MAAM,GAAGR,aAAa,CAACvB,IAAI,CAACG,GAAG,CAAC,OAAO,CAAC,CAAC,CAAA;AAC/C,MAAA,MAAMT,GAAG,GAAGoB,UAAU,CAACd,IAAI,CAACG,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAA;MAE9C,IAAI,CAACT,GAAG,EAAE,OAAA;AAEVkK,MAAAA,YAAY,CACV;AACEE,QAAAA,IAAI,EAAE,IAAI;QACVrK,MAAM,EAAEsC,MAAM,CAACN,EAAE;QACjB/B,GAAG;QACHgC,SAAS,EAAEK,MAAM,CAACL,SAAAA;OACnB,EACD1B,IACF,CAAC,CAAA;AACH,KAAA;GACD,CAAA;AACH,CAAC;;AC/HD,YAAgB4J,YAA0B,KAAM;EAC9CsB,iBAAiBA,CAAClL,IAAmC,EAAE;AACrD,IAAA,MAAM+B,MAAM,GAAGH,eAAe,CAAC5B,IAAI,CAAC,CAAA;IACpC,IAAI,CAAC+B,MAAM,EAAE,OAAA;AACb6H,IAAAA,YAAY,CAAC;AAAEE,MAAAA,IAAI,EAAE,QAAQ;AAAE/H,MAAAA,MAAAA;KAAQ,EAAE/B,IAAI,CAAC,CAAA;GAC/C;EACDmL,OAAOA,CAACnL,IAAyB,EAAE;IACjCA,IAAI,CAACG,GAAG,CAAC,MAAM,CAAC,CAACd,OAAO,CAAC+L,QAAQ,IAAI;AACnC,MAAA,MAAMrJ,MAAM,GAAGC,gBAAgB,CAACoJ,QAAQ,CAAC,CAAA;MACzC,IAAI,CAACrJ,MAAM,EAAE,OAAA;AACb6H,MAAAA,YAAY,CAAC;AAAEE,QAAAA,IAAI,EAAE,QAAQ;AAAE/H,QAAAA,MAAAA;OAAQ,EAAEqJ,QAAQ,CAAC,CAAA;AACpD,KAAC,CAAC,CAAA;AACJ,GAAA;AACF,CAAC,CAAC;;ACfF,MAAMC,oBAAoB,GAAGC,UAAU,CAACC,OAAO,CAACC,QAAQ,CAAC/K,IAAI,CAAC,IAAI,GAAG,CAAA;AAGrE,MAAMgL,OAAO,GAAGC,aAAa,CAACC,MAAgB,WAACC,IAAI,CAAC7I,GAAG,CAAC,CAAC;;AAEzD,SAAS8I,SAASA,CAACnL,IAAY,EAAEoL,OAAe,EAAE;AAChD,EAAA,IAAIT,oBAAoB,EAAE;AACxB,IAAA,OAAOI,OAAO,CACX1L,OAAO,CAACW,IAAI,EAAE;MACbqL,KAAK,EAAE,CAACD,OAAO,CAAA;AACjB,KAAC,CAAC,CACDE,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;AACxB,GAAC,MAAM;AACL,IAAA,OAAOC,cAAc,CAACC,IAAI,CAACxL,IAAI,EAAE;AAAEoL,MAAAA,OAAAA;AAAQ,KAAC,CAAC,CAACE,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;AACnE,GAAA;AACF,CAAA;AAEO,SAASjM,OAAOA,CACrBoM,OAAe,EACfnJ,UAAkB,EAClBoJ,eAAiC,EACzB;AACR,EAAA,IAAIA,eAAe,KAAK,KAAK,EAAE,OAAOpJ,UAAU,CAAA;EAEhD,IAAI8I,OAAO,GAAGK,OAAO,CAAA;AACrB,EAAA,IAAI,OAAOC,eAAe,KAAK,QAAQ,EAAE;IACvCN,OAAO,GAAG9L,IAAI,CAACD,OAAO,CAAC+L,OAAO,EAAEM,eAAe,CAAC,CAAA;AAClD,GAAA;EAEA,IAAI;AACF,IAAA,OAAOP,SAAS,CAAC7I,UAAU,EAAE8I,OAAO,CAAC,CAAA;GACtC,CAAC,OAAOO,GAAG,EAAE;AACZ,IAAA,IAAIA,GAAG,CAACC,IAAI,KAAK,kBAAkB,EAAE,MAAMD,GAAG,CAAA;AAE9C,IAAA,MAAM1M,MAAM,CAAC4M,MAAM,CACjB,IAAI3D,KAAK,CAAC,CAAA,mBAAA,EAAsB5F,UAAU,CAAA,eAAA,EAAkBmJ,OAAO,CAAA,CAAA,CAAG,CAAC,EACvE;AACEG,MAAAA,IAAI,EAAE,0BAA0B;AAChCjE,MAAAA,QAAQ,EAAErF,UAAU;AACpBmJ,MAAAA,OAAAA;AACF,KACF,CAAC,CAAA;AACH,GAAA;AACF,CAAA;AAEO,SAAS5M,GAAGA,CAACuM,OAAe,EAAEpL,IAAY,EAAE;EACjD,IAAI;AACFmL,IAAAA,SAAS,CAACnL,IAAI,EAAEoL,OAAO,CAAC,CAAA;AACxB,IAAA,OAAO,IAAI,CAAA;AACb,GAAC,CAAC,MAAM;AACN,IAAA,OAAO,KAAK,CAAA;AACd,GAAA;AACF,CAAA;AAEO,SAASU,UAAUA,CAACC,WAAwB,EAAE;AACnD,EAAA,IAAIA,WAAW,CAAChF,IAAI,KAAK,CAAC,EAAE,OAAA;AAE5B,EAAA,MAAMiF,IAAI,GAAGhF,KAAK,CAACC,IAAI,CAAC8E,WAAW,CAAC,CAACE,IAAI,EAAE,CAACrF,IAAI,CAAC,GAAG,CAAC,CAAA;AAErDsF,EAAAA,OAAO,CAACC,IAAI,CACV,8EAA8E,GAC5E,6CAA6C,GAC7C,CAAwBH,qBAAAA,EAAAA,IAAI,CAAI,EAAA,CAAA,GAChC,CAAcA,WAAAA,EAAAA,IAAI,IACtB,CAAC,CAAA;EAEDnB,OAAO,CAACuB,QAAQ,GAAG,CAAC,CAAA;AACtB,CAAA;AAEA,IAAIC,cAAc,GAAG,IAAI3N,GAAG,EAAU,CAAA;AAEtC,MAAM4N,2BAA2B,GAAGC,QAAQ,CAAC,MAAM;EACjDT,UAAU,CAACO,cAAc,CAAC,CAAA;AAC1BA,EAAAA,cAAc,GAAG,IAAI3N,GAAG,EAAU,CAAA;AACpC,CAAC,EAAE,GAAG,CAAC,CAAA;AAEA,SAAS8N,eAAeA,CAACT,WAAwB,EAAE;AACxD,EAAA,IAAIA,WAAW,CAAChF,IAAI,KAAK,CAAC,EAAE,OAAA;EAE5BgF,WAAW,CAACpN,OAAO,CAACqB,IAAI,IAAIqM,cAAc,CAACvN,GAAG,CAACkB,IAAI,CAAC,CAAC,CAAA;AACrDsM,EAAAA,2BAA2B,EAAE,CAAA;AAC/B;;AC3EA,MAAMG,qBAAqB,GAAG,IAAI/N,GAAG,CAAS,CAC5C,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,QAAQ,CACT,CAAC,CAAA;AAEa,SAASgO,kBAAkBA,CACxCtF,SAA+B,EAChB;EACf,MAAM;AAAEuF,IAAAA,MAAM,EAAEC,OAAO;AAAEC,IAAAA,QAAQ,EAAEC,SAAS;AAAEC,IAAAA,MAAM,EAAEC,OAAAA;AAAQ,GAAC,GAAG5F,SAAS,CAAA;AAE3E,EAAA,OAAO8D,IAAI,IAAI;AACb,IAAA,IAAIA,IAAI,CAAC9B,IAAI,KAAK,QAAQ,IAAI4D,OAAO,IAAInO,KAAG,CAACmO,OAAO,EAAE9B,IAAI,CAAClL,IAAI,CAAC,EAAE;MAChE,OAAO;AAAEoJ,QAAAA,IAAI,EAAE,QAAQ;AAAE6D,QAAAA,IAAI,EAAED,OAAO,CAAC9B,IAAI,CAAClL,IAAI,CAAC;QAAEA,IAAI,EAAEkL,IAAI,CAAClL,IAAAA;OAAM,CAAA;AACtE,KAAA;IAEA,IAAIkL,IAAI,CAAC9B,IAAI,KAAK,UAAU,IAAI8B,IAAI,CAAC9B,IAAI,KAAK,IAAI,EAAE;MAClD,MAAM;QAAEpI,SAAS;QAAEjC,MAAM;AAAEC,QAAAA,GAAAA;AAAI,OAAC,GAAGkM,IAAI,CAAA;AAEvC,MAAA,IAAInM,MAAM,IAAIiC,SAAS,KAAK,QAAQ,EAAE;AACpC,QAAA,IAAIgM,OAAO,IAAIP,qBAAqB,CAAC5N,GAAG,CAACE,MAAM,CAAC,IAAIF,KAAG,CAACmO,OAAO,EAAEhO,GAAG,CAAC,EAAE;UACrE,OAAO;AAAEoK,YAAAA,IAAI,EAAE,QAAQ;AAAE6D,YAAAA,IAAI,EAAED,OAAO,CAAChO,GAAG,CAAC;AAAEgB,YAAAA,IAAI,EAAEhB,GAAAA;WAAK,CAAA;AAC1D,SAAA;AAEA,QAAA,IAAI4N,OAAO,IAAI/N,KAAG,CAAC+N,OAAO,EAAE7N,MAAM,CAAC,IAAIF,KAAG,CAAC+N,OAAO,CAAC7N,MAAM,CAAC,EAAEC,GAAG,CAAC,EAAE;UAChE,OAAO;AACLoK,YAAAA,IAAI,EAAE,QAAQ;AACd6D,YAAAA,IAAI,EAAEL,OAAO,CAAC7N,MAAM,CAAC,CAACC,GAAG,CAAC;AAC1BgB,YAAAA,IAAI,EAAE,CAAA,EAAGjB,MAAM,CAAA,CAAA,EAAIC,GAAG,CAAA,CAAA;WACvB,CAAA;AACH,SAAA;AACF,OAAA;MAEA,IAAI8N,SAAS,IAAIjO,KAAG,CAACiO,SAAS,EAAE9N,GAAG,CAAC,EAAE;QACpC,OAAO;AAAEoK,UAAAA,IAAI,EAAE,UAAU;AAAE6D,UAAAA,IAAI,EAAEH,SAAS,CAAC9N,GAAG,CAAC;UAAEgB,IAAI,EAAE,GAAGhB,GAAG,CAAA,CAAA;SAAI,CAAA;AACnE,OAAA;AACF,KAAA;GACD,CAAA;AACH;;AC1CA,MAAMkO,UAAU,GAAGC,WAAW,CAAC9O,OAAO,IAAI8O,WAAW,CAAA;AA8BrD,SAASC,cAAcA,CACrBhF,OAAsB,EACtBC,QAAQ,EAWR;EACA,MAAM;IACJgF,MAAM;AACNrH,IAAAA,OAAO,EAAEsH,aAAa;IACtBC,wBAAwB;IACxBC,UAAU;IACVC,KAAK;IACLC,oBAAoB;IACpBhC,eAAe;IACf,GAAGiC,eAAAA;AACL,GAAC,GAAGvF,OAAO,CAAA;AAEX,EAAA,IAAIwF,OAAO,CAACxF,OAAO,CAAC,EAAE;IACpB,MAAM,IAAIF,KAAK,CACb,CAAA;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oFAAA,CACI,CAAC,CAAA;AACH,GAAA;AAEA,EAAA,IAAI2F,UAAU,CAAA;AACd,EAAA,IAAIR,MAAM,KAAK,cAAc,EAAEQ,UAAU,GAAG,aAAa,CAAC,KACrD,IAAIR,MAAM,KAAK,cAAc,EAAEQ,UAAU,GAAG,aAAa,CAAC,KAC1D,IAAIR,MAAM,KAAK,YAAY,EAAEQ,UAAU,GAAG,WAAW,CAAC,KACtD,IAAI,OAAOR,MAAM,KAAK,QAAQ,EAAE;AACnC,IAAA,MAAM,IAAInF,KAAK,CAAC,0BAA0B,CAAC,CAAA;AAC7C,GAAC,MAAM;AACL,IAAA,MAAM,IAAIA,KAAK,CACb,CAAA,qDAAA,CAAuD,GACrD,CAAA,2BAAA,EAA8BjC,IAAI,CAACC,SAAS,CAACmH,MAAM,CAAC,GACxD,CAAC,CAAA;AACH,GAAA;AAEA,EAAA,IAAI,OAAOK,oBAAoB,KAAK,UAAU,EAAE;AAC9C,IAAA,IAAItF,OAAO,CAACN,OAAO,IAAIM,OAAO,CAACJ,OAAO,EAAE;AACtC,MAAA,MAAM,IAAIE,KAAK,CACb,CAAwD,sDAAA,CAAA,GACtD,kCACJ,CAAC,CAAA;AACH,KAAA;AACF,GAAC,MAAM,IAAIwF,oBAAoB,IAAI,IAAI,EAAE;AACvC,IAAA,MAAM,IAAIxF,KAAK,CACb,CAAA,sDAAA,CAAwD,GACtD,CAAA,WAAA,EAAcjC,IAAI,CAACC,SAAS,CAACwH,oBAAoB,CAAC,GACtD,CAAC,CAAA;AACH,GAAA;AAEA,EAAA,IACEhC,eAAe,IAAI,IAAI,IACvB,OAAOA,eAAe,KAAK,SAAS,IACpC,OAAOA,eAAe,KAAK,QAAQ,EACnC;AACA,IAAA,MAAM,IAAIxD,KAAK,CACb,CAAA,0DAAA,CAA4D,GAC1D,CAAA,WAAA,EAAcjC,IAAI,CAACC,SAAS,CAACwF,eAAe,CAAC,GACjD,CAAC,CAAA;AACH,GAAA;AAEA,EAAA,IAAI1F,OAAO,CAAA;AAEX,EAAA;AACE;AACA;AACAsH,EAAAA,aAAa,IACbE,UAAU,IACVD,wBAAwB,EACxB;AACA,IAAA,MAAMO,UAAU,GACd,OAAOR,aAAa,KAAK,QAAQ,IAAItG,KAAK,CAAC+G,OAAO,CAACT,aAAa,CAAC,GAC7D;AAAEU,MAAAA,QAAQ,EAAEV,aAAAA;AAAc,KAAC,GAC3BA,aAAa,CAAA;AAEnBtH,IAAAA,OAAO,GAAGkH,UAAU,CAACY,UAAU,EAAE;MAC/BP,wBAAwB;AACxBC,MAAAA,UAAAA;AACF,KAAC,CAAC,CAAA;AACJ,GAAC,MAAM;AACLxH,IAAAA,OAAO,GAAGqC,QAAQ,CAACrC,OAAO,EAAE,CAAA;AAC9B,GAAA;EAEA,OAAO;IACLqH,MAAM;IACNQ,UAAU;IACV7H,OAAO;AACP0F,IAAAA,eAAe,EAAEA,eAAe,IAAfA,IAAAA,GAAAA,eAAe,GAAI,KAAK;IACzCgC,oBAAoB;IACpBD,KAAK,EAAE,CAAC,CAACA,KAAK;AACdE,IAAAA,eAAe,EAAEA,eAAAA;GAClB,CAAA;AACH,CAAA;AAEA,SAASM,mBAAmBA,CAC1BC,OAAkC,EAClC9F,OAAsB,EACtBE,mBAAmB,EACnBmD,OAAO,EACP0C,QAAQ,EACR9F,QAAQ,EACR;EACA,MAAM;IACJgF,MAAM;IACNQ,UAAU;IACV7H,OAAO;IACPyH,KAAK;IACLC,oBAAoB;IACpBC,eAAe;AACfjC,IAAAA,eAAAA;AACF,GAAC,GAAG0B,cAAc,CAAUhF,OAAO,EAAEC,QAAQ,CAAC,CAAA;;AAE9C;EACA,IAAIP,OAAO,EAAEE,OAAO,CAAA;AACpB,EAAA,IAAIoG,gBAAgB,CAAA;AACpB,EAAA,IAAIC,cAA+C,CAAA;AACnD,EAAA,IAAIC,eAAe,CAAA;EAEnB,MAAMC,QAAQ,GAAGzM,iBAAiB,CAChC,IAAIqB,qBAAqB,CACvBb,UAAU,IAAI0J,OAAY,CAACP,OAAO,EAAEnJ,UAAU,EAAEoJ,eAAe,CAAC,EAC/D1L,IAAY,IAAA;IAAA,IAAAwO,mBAAA,EAAAC,eAAA,CAAA;AAAA,IAAA,OAAA,CAAAD,mBAAA,GAAA,CAAAC,eAAA,GAAKJ,cAAc,KAAdI,IAAAA,GAAAA,KAAAA,CAAAA,GAAAA,eAAA,CAAgBhP,GAAG,CAACO,IAAI,CAAC,KAAAwO,IAAAA,GAAAA,mBAAA,GAAIzJ,QAAQ,CAAA;AAAA,GACzD,CACF,CAAC,CAAA;AAED,EAAA,MAAM2J,SAAS,GAAG,IAAIrK,GAAG,EAAE,CAAA;AAE3B,EAAA,MAAMsK,GAAgB,GAAG;AACvBC,IAAAA,KAAK,EAAEvG,QAAQ;IACfkG,QAAQ;IACRlB,MAAM,EAAEjF,OAAO,CAACiF,MAAM;IACtBrH,OAAO;IACP0G,kBAAkB;IAClBgB,oBAAoBA,CAAC1N,IAAI,EAAE;MACzB,IAAIqO,cAAc,KAAKrJ,SAAS,EAAE;QAChC,MAAM,IAAIkD,KAAK,CACb,CAAyBgG,sBAAAA,EAAAA,OAAO,CAAClO,IAAI,CAAA,WAAA,CAAa,GAChD,CAAA,6DAAA,CACJ,CAAC,CAAA;AACH,OAAA;AACA,MAAA,IAAI,CAACqO,cAAc,CAACxP,GAAG,CAACmB,IAAI,CAAC,EAAE;QAC7BkM,OAAO,CAACC,IAAI,CACV,CAAyB0C,sBAAAA,EAAAA,YAAY,aAAa,GAChD,CAAA,kBAAA,EAAqB7O,IAAI,CAAA,EAAA,CAC7B,CAAC,CAAA;AACH,OAAA;MAEA,IAAIsO,eAAe,IAAI,CAACA,eAAe,CAACtO,IAAI,CAAC,EAAE,OAAO,KAAK,CAAA;AAE3D,MAAA,IAAI8O,YAAY,GAAGC,UAAU,CAAC/O,IAAI,EAAEgG,OAAO,EAAE;AAC3CgJ,QAAAA,UAAU,EAAEZ,gBAAgB;AAC5BpF,QAAAA,QAAQ,EAAElB,OAAO;AACjBmH,QAAAA,QAAQ,EAAEjH,OAAAA;AACZ,OAAC,CAAC,CAAA;AAEF,MAAA,IAAI0F,oBAAoB,EAAE;AACxBoB,QAAAA,YAAY,GAAGpB,oBAAoB,CAAC1N,IAAI,EAAE8O,YAAY,CAAC,CAAA;AACvD,QAAA,IAAI,OAAOA,YAAY,KAAK,SAAS,EAAE;AACrC,UAAA,MAAM,IAAI5G,KAAK,CAAC,CAAA,4CAAA,CAA8C,CAAC,CAAA;AACjE,SAAA;AACF,OAAA;AAEA,MAAA,OAAO4G,YAAY,CAAA;KACpB;IACDrB,KAAKA,CAACzN,IAAI,EAAE;MAAA,IAAAkP,SAAA,EAAAC,qBAAA,CAAA;AACVhB,MAAAA,QAAQ,EAAE,CAACiB,KAAK,GAAG,IAAI,CAAA;AAEvB,MAAA,IAAI,CAAC3B,KAAK,IAAI,CAACzN,IAAI,EAAE,OAAA;MAErB,IAAImO,QAAQ,EAAE,CAAC/G,SAAS,CAACvI,GAAG,CAACgQ,YAAY,CAAC,EAAE,OAAA;MAC5CV,QAAQ,EAAE,CAAC/G,SAAS,CAACtI,GAAG,CAACkB,IAAI,CAAC,CAAA;AAC9B,MAAA,CAAAmP,qBAAA,GAAAD,CAAAA,SAAA,GAAAf,QAAQ,EAAE,EAACC,gBAAgB,KAAA,IAAA,GAAAe,qBAAA,GAA3BD,SAAA,CAAWd,gBAAgB,GAAKA,gBAAgB,CAAA;KACjD;AACDiB,IAAAA,gBAAgBA,CAACrP,IAAI,EAAEsP,OAAO,GAAG,GAAG,EAAE;MACpC,IAAIhH,mBAAmB,KAAK,KAAK,EAAE,OAAA;AACnC,MAAA,IAAIoD,eAAe,EAAE;AACnB;AACA;AACA;AACA,QAAA,OAAA;AACF,OAAA;AAEA,MAAA,MAAM6D,GAAG,GAAGD,OAAO,KAAK,GAAG,GAAGtP,IAAI,GAAG,CAAGA,EAAAA,IAAI,CAAKsP,EAAAA,EAAAA,OAAO,CAAE,CAAA,CAAA;MAE1D,MAAMF,KAAK,GAAG9G,mBAAmB,CAACI,GAAG,GACjC,KAAK,GACL8G,QAAQ,CAACd,SAAS,EAAE,CAAA,EAAG1O,IAAI,CAAA,IAAA,EAAOyL,OAAO,CAAA,CAAE,EAAE,MAC3CO,GAAQ,CAACP,OAAO,EAAEzL,IAAI,CACxB,CAAC,CAAA;MAEL,IAAI,CAACoP,KAAK,EAAE;QACVjB,QAAQ,EAAE,CAACpC,WAAW,CAACjN,GAAG,CAACyQ,GAAG,CAAC,CAAA;AACjC,OAAA;AACF,KAAA;GACD,CAAA;EAED,MAAMpI,QAAQ,GAAG+G,OAAO,CAACS,GAAG,EAAEhB,eAAe,EAAElC,OAAO,CAAC,CAAA;EACvD,MAAMoD,YAAY,GAAG1H,QAAQ,CAACnH,IAAI,IAAIkO,OAAO,CAAClO,IAAI,CAAA;AAElD,EAAA,IAAI,OAAOmH,QAAQ,CAAC0G,UAAU,CAAC,KAAK,UAAU,EAAE;IAC9C,MAAM,IAAI3F,KAAK,CACb,CAAA,KAAA,EAAQ2G,YAAY,CAAmCxB,gCAAAA,EAAAA,MAAM,uBAC/D,CAAC,CAAA;AACH,GAAA;EAEA,IAAIrG,KAAK,CAAC+G,OAAO,CAAC5G,QAAQ,CAACC,SAAS,CAAC,EAAE;IACrCiH,cAAc,GAAG,IAAIhK,GAAG,CACtB8C,QAAQ,CAACC,SAAS,CAACzB,GAAG,CAAC,CAAC3F,IAAI,EAAEoF,KAAK,KAAK,CAACpF,IAAI,EAAEoF,KAAK,CAAC,CACvD,CAAC,CAAA;IACDkJ,eAAe,GAAGnH,QAAQ,CAACmH,eAAe,CAAA;AAC5C,GAAC,MAAM,IAAInH,QAAQ,CAACC,SAAS,EAAE;IAC7BiH,cAAc,GAAG,IAAIhK,GAAG,CACtBpF,MAAM,CAAC2I,IAAI,CAACT,QAAQ,CAACC,SAAS,CAAC,CAACzB,GAAG,CAAC,CAAC3F,IAAI,EAAEoF,KAAK,KAAK,CAACpF,IAAI,EAAEoF,KAAK,CAAC,CACpE,CAAC,CAAA;IACDgJ,gBAAgB,GAAGjH,QAAQ,CAACC,SAAS,CAAA;IACrCkH,eAAe,GAAGnH,QAAQ,CAACmH,eAAe,CAAA;AAC5C,GAAC,MAAM;AACLD,IAAAA,cAAc,GAAG,IAAIhK,GAAG,EAAE,CAAA;AAC5B,GAAA;EAEA,CAAC;IAAEyD,OAAO;AAAEE,IAAAA,OAAAA;AAAQ,GAAC,GAAGd,sBAAsB,CAC5C2H,YAAY,EACZR,cAAc,EACdV,eAAe,CAAC7F,OAAO,IAAI,EAAE,EAC7B6F,eAAe,CAAC3F,OAAO,IAAI,EAC7B,CAAC,EAAA;AAED,EAAA,IAAIkB,YAAkE,CAAA;EACtE,IAAI2E,UAAU,KAAK,aAAa,EAAE;AAChC3E,IAAAA,YAAY,GAAGA,CAACuG,OAAO,EAAEnQ,IAAI,KAAK;AAAA,MAAA,IAAAoQ,IAAA,CAAA;AAChC,MAAA,MAAMC,KAAK,GAAGpB,QAAQ,CAACjP,IAAI,CAAC,CAAA;AAC5B,MAAA,OAAA,CAAAoQ,IAAA,GACGvI,QAAQ,CAAC0G,UAAU,CAAC,CAAC4B,OAAO,EAAEE,KAAK,EAAErQ,IAAI,CAAC,KAAAoQ,IAAAA,GAAAA,IAAA,GAAuB,KAAK,CAAA;KAE1E,CAAA;AACH,GAAC,MAAM;AACLxG,IAAAA,YAAY,GAAGA,CAACuG,OAAO,EAAEnQ,IAAI,KAAK;AAChC,MAAA,MAAMqQ,KAAK,GAAGpB,QAAQ,CAACjP,IAAI,CAAC,CAAA;MAC5B6H,QAAQ,CAAC0G,UAAU,CAAC,CAAC4B,OAAO,EAAEE,KAAK,EAAErQ,IAAI,CAAC,CAAA;AAC1C,MAAA,OAAO,KAAK,CAAA;KACb,CAAA;AACH,GAAA;EAEA,OAAO;IACLmO,KAAK;IACLJ,MAAM;IACNrH,OAAO;IACPmB,QAAQ;IACR0H,YAAY;AACZ3F,IAAAA,YAAAA;GACD,CAAA;AACH,CAAA;AAEe,SAAS0G,sBAAsBA,CAC5C1B,OAAkC,EAClC;EACA,OAAO2B,OAAO,CAAC,CAACxH,QAAQ,EAAED,OAAsB,EAAEqD,OAAe,KAAK;AACpEpD,IAAAA,QAAQ,CAACyH,aAAa,CAAC,0BAA0B,CAAC,CAAA;IAClD,MAAM;AAAEC,MAAAA,QAAAA;AAAS,KAAC,GAAG1H,QAAQ,CAAA;AAE7B,IAAA,IAAI8F,QAAQ,CAAA;AAEZ,IAAA,MAAM7F,mBAAmB,GAAGH,gCAAgC,CAC1DC,OAAO,EACPC,QACF,CAAC,CAAA;IAED,MAAM;MAAEoF,KAAK;MAAEJ,MAAM;MAAErH,OAAO;MAAEmB,QAAQ;MAAE0H,YAAY;AAAE3F,MAAAA,YAAAA;AAAa,KAAC,GACpE+E,mBAAmB,CACjBC,OAAO,EACP9F,OAAO,EACPE,mBAAmB,EACnBmD,OAAO,EACP,MAAM0C,QAAQ,EACd9F,QACF,CAAC,CAAA;AAEH,IAAA,MAAM2H,aAAa,GAAG3C,MAAM,KAAK,cAAc,GAAGzO,KAAO,GAAGA,KAAO,CAAA;IAEnE,MAAMqR,OAAO,GAAG9I,QAAQ,CAAC8I,OAAO,GAC5BF,QAAQ,CAACG,QAAQ,CAACC,KAAK,CAAC,CAACH,aAAa,CAAC9G,YAAY,CAAC,EAAE/B,QAAQ,CAAC8I,OAAO,CAAC,CAAC,GACxED,aAAa,CAAC9G,YAAY,CAAC,CAAA;AAE/B,IAAA,IAAIuE,KAAK,IAAIA,KAAK,KAAK3H,0BAA0B,EAAE;AACjDoG,MAAAA,OAAO,CAAC1D,GAAG,CAAC,CAAGqG,EAAAA,YAAY,oBAAoB,CAAC,CAAA;MAChD3C,OAAO,CAAC1D,GAAG,CAAC,CAAA,iBAAA,EAAoBzC,yBAAyB,CAACC,OAAO,CAAC,CAAA,CAAE,CAAC,CAAA;AACrEkG,MAAAA,OAAO,CAAC1D,GAAG,CAAC,CAA4B6E,yBAAAA,EAAAA,MAAM,YAAY,CAAC,CAAA;AAC7D,KAAA;IAEA,MAAM;AAAE+C,MAAAA,WAAAA;AAAY,KAAC,GAAGjJ,QAAQ,CAAA;IAEhC,OAAO;AACLnH,MAAAA,IAAI,EAAE,kBAAkB;MACxBiQ,OAAO;MAEPI,GAAGA,CAACC,IAAI,EAAE;AAAA,QAAA,IAAAC,aAAA,CAAA;AACR,QAAA,IAAIH,WAAW,EAAE;AACf,UAAA,IACEE,IAAI,CAAC7Q,GAAG,CAAC,0BAA0B,CAAC,IACpC6Q,IAAI,CAAC7Q,GAAG,CAAC,0BAA0B,CAAC,KAAK2Q,WAAW,EACpD;AACAlE,YAAAA,OAAO,CAACC,IAAI,CACV,CAAA,gCAAA,CAAkC,GAChC,CAAKmE,EAAAA,EAAAA,IAAI,CAAC7Q,GAAG,CAAC,8BAA8B,CAAC,CAAA,CAAE,GAC/C,CAAQoP,KAAAA,EAAAA,YAAY,CAA4B,0BAAA,CAAA,GAChD,CAA2C,yCAAA,CAAA,GAC3C,CAAIyB,CAAAA,EAAAA,IAAI,CAAC7Q,GAAG,CAAC,0BAA0B,CAAC,CAAQ2Q,KAAAA,EAAAA,WAAW,CAAG,CAAA,CAAA,GAC9D,kCACJ,CAAC,CAAA;AACH,WAAC,MAAM;AACLE,YAAAA,IAAI,CAAC/L,GAAG,CAAC,0BAA0B,EAAE6L,WAAW,CAAC,CAAA;AACjDE,YAAAA,IAAI,CAAC/L,GAAG,CAAC,8BAA8B,EAAEsK,YAAY,CAAC,CAAA;AACxD,WAAA;AACF,SAAA;AAEAV,QAAAA,QAAQ,GAAG;AACT/G,UAAAA,SAAS,EAAE,IAAI1I,GAAG,EAAE;AACpB0P,UAAAA,gBAAgB,EAAEpJ,SAAS;AAC3BoK,UAAAA,KAAK,EAAE,KAAK;AACZoB,UAAAA,SAAS,EAAE,IAAI9R,GAAG,EAAE;UACpBqN,WAAW,EAAE,IAAIrN,GAAG,EAAC;SACtB,CAAA;AAED,QAAA,CAAA6R,aAAA,GAAApJ,QAAQ,CAACkJ,GAAG,KAAA,IAAA,IAAZE,aAAA,CAAcE,KAAK,CAAC,IAAI,EAAE9O,SAAS,CAAC,CAAA;OACrC;AACD+O,MAAAA,IAAIA,GAAG;AAAA,QAAA,IAAAC,cAAA,CAAA;AACL,QAAA,CAAAA,cAAA,GAAAxJ,QAAQ,CAACuJ,IAAI,KAAA,IAAA,IAAbC,cAAA,CAAeF,KAAK,CAAC,IAAI,EAAE9O,SAAS,CAAC,CAAA;QAErC,IAAI2G,mBAAmB,KAAK,KAAK,EAAE;AACjC,UAAA,IAAIA,mBAAmB,CAACE,GAAG,KAAK,UAAU,EAAE;AAC1CwD,YAAAA,UAAe,CAACmC,QAAQ,CAACpC,WAAW,CAAC,CAAA;AACvC,WAAC,MAAM;AACLC,YAAAA,eAAoB,CAACmC,QAAQ,CAACpC,WAAW,CAAC,CAAA;AAC5C,WAAA;AACF,SAAA;QAEA,IAAI,CAAC0B,KAAK,EAAE,OAAA;AAEZ,QAAA,IAAI,IAAI,CAACmD,QAAQ,EAAE1E,OAAO,CAAC1D,GAAG,CAAC,CAAM,GAAA,EAAA,IAAI,CAACoI,QAAQ,GAAG,CAAC,CAAA;AAEtD,QAAA,IAAIzC,QAAQ,CAAC/G,SAAS,CAACL,IAAI,KAAK,CAAC,EAAE;UACjCmF,OAAO,CAAC1D,GAAG,CACT6E,MAAM,KAAK,cAAc,GACrBc,QAAQ,CAACiB,KAAK,GACZ,8BAA8BP,YAAY,CAAA,mCAAA,CAAqC,GAC/E,CAA2BA,wBAAAA,EAAAA,YAAY,+BAA+B,GACxE,CAAA,oCAAA,EAAuCA,YAAY,CAAA,mCAAA,CACzD,CAAC,CAAA;AAED,UAAA,OAAA;AACF,SAAA;QAEA,IAAIxB,MAAM,KAAK,cAAc,EAAE;UAC7BnB,OAAO,CAAC1D,GAAG,CACT,CAAA,IAAA,EAAOqG,YAAY,CAAyC,uCAAA,CAAA,GAC1D,0BACJ,CAAC,CAAA;AACH,SAAC,MAAM;AACL3C,UAAAA,OAAO,CAAC1D,GAAG,CACT,CAAOqG,IAAAA,EAAAA,YAAY,0CACrB,CAAC,CAAA;AACH,SAAA;AAEA,QAAA,KAAK,MAAM7O,IAAI,IAAImO,QAAQ,CAAC/G,SAAS,EAAE;AAAA,UAAA,IAAAyJ,sBAAA,CAAA;UACrC,IAAAA,CAAAA,sBAAA,GAAI1C,QAAQ,CAACC,gBAAgB,aAAzByC,sBAAA,CAA4B7Q,IAAI,CAAC,EAAE;YACrC,MAAM8Q,eAAe,GAAGC,mBAAmB,CACzC/Q,IAAI,EACJgG,OAAO,EACPmI,QAAQ,CAACC,gBACX,CAAC,CAAA;AAED,YAAA,MAAM4C,gBAAgB,GAAG/K,IAAI,CAACC,SAAS,CAAC4K,eAAe,CAAC,CACrDxF,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CACnBA,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,CACtBA,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;YAEzBY,OAAO,CAAC1D,GAAG,CAAC,CAAA,EAAA,EAAKxI,IAAI,CAAIgR,CAAAA,EAAAA,gBAAgB,EAAE,CAAC,CAAA;AAC9C,WAAC,MAAM;AACL9E,YAAAA,OAAO,CAAC1D,GAAG,CAAC,CAAKxI,EAAAA,EAAAA,IAAI,EAAE,CAAC,CAAA;AAC1B,WAAA;AACF,SAAA;AACF,OAAA;KACD,CAAA;AACH,GAAC,CAAC,CAAA;AACJ,CAAA;AAEA,SAASwP,QAAQA,CAAC7J,GAAG,EAAE3G,GAAG,EAAEiS,UAAU,EAAE;AACtC,EAAA,IAAIC,GAAG,GAAGvL,GAAG,CAAClG,GAAG,CAACT,GAAG,CAAC,CAAA;EACtB,IAAIkS,GAAG,KAAKlM,SAAS,EAAE;IACrBkM,GAAG,GAAGD,UAAU,EAAE,CAAA;AAClBtL,IAAAA,GAAG,CAACpB,GAAG,CAACvF,GAAG,EAAEkS,GAAG,CAAC,CAAA;AACnB,GAAA;AACA,EAAA,OAAOA,GAAG,CAAA;AACZ,CAAA;AAEA,SAAStD,OAAOA,CAAC9M,GAAG,EAAE;EACpB,OAAO7B,MAAM,CAAC2I,IAAI,CAAC9G,GAAG,CAAC,CAACM,MAAM,KAAK,CAAC,CAAA;AACtC;;;;"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/package.json b/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/package.json deleted file mode 100644 index 4ce3da0a..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-define-polyfill-provider/package.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "name": "@babel/helper-define-polyfill-provider", - "version": "0.6.5", - "description": "Babel helper to create your own polyfill provider", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel-polyfills.git", - "directory": "packages/babel-helper-define-polyfill-provider" - }, - "keywords": [ - "babel-plugin" - ], - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "lib/index.js", - "browser": { - "./lib/node/dependencies.js": "./lib/browser/dependencies.js", - "./src/node/dependencies.js": "./src/browser/dependencies.js" - }, - "exports": { - ".": [ - { - "import": { - "node": "./esm/index.node.mjs", - "browser": "./esm/index.browser.mjs" - }, - "default": "./lib/index.js" - }, - "./lib/index.js" - ], - "./package.json": "./package.json" - }, - "dependencies": { - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-plugin-utils": "^7.27.1", - "debug": "^4.4.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.22.10" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - }, - "devDependencies": { - "@babel/cli": "^7.27.2", - "@babel/core": "^7.27.7", - "@babel/generator": "^7.27.5", - "@babel/plugin-transform-modules-commonjs": "^7.27.1", - "@babel/traverse": "^7.27.7", - "babel-loader": "^8.4.1", - "rollup": "^2.79.2", - "rollup-plugin-babel": "^4.4.0", - "strip-ansi": "^6.0.1", - "webpack": "^4.47.0", - "webpack-cli": "^3.3.12" - }, - "gitHead": "fddd6fc6e7c3c41b1234d82e53faf5de832bbf2b" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helper-globals/LICENSE b/build_vtk_bundle/node_modules/@babel/helper-globals/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-globals/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/helper-globals/README.md b/build_vtk_bundle/node_modules/@babel/helper-globals/README.md deleted file mode 100644 index 3dc9f252..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-globals/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/helper-globals - -> A collection of JavaScript globals for Babel internal usage - -See our website [@babel/helper-globals](https://babeljs.io/docs/babel-helper-globals) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/helper-globals -``` - -or using yarn: - -```sh -yarn add @babel/helper-globals -``` diff --git a/build_vtk_bundle/node_modules/@babel/helper-globals/data/browser-upper.json b/build_vtk_bundle/node_modules/@babel/helper-globals/data/browser-upper.json deleted file mode 100644 index 8a4d6fd4..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-globals/data/browser-upper.json +++ /dev/null @@ -1,911 +0,0 @@ -[ - "AbortController", - "AbortSignal", - "AbsoluteOrientationSensor", - "AbstractRange", - "Accelerometer", - "AI", - "AICreateMonitor", - "AITextSession", - "AnalyserNode", - "Animation", - "AnimationEffect", - "AnimationEvent", - "AnimationPlaybackEvent", - "AnimationTimeline", - "AsyncDisposableStack", - "Attr", - "Audio", - "AudioBuffer", - "AudioBufferSourceNode", - "AudioContext", - "AudioData", - "AudioDecoder", - "AudioDestinationNode", - "AudioEncoder", - "AudioListener", - "AudioNode", - "AudioParam", - "AudioParamMap", - "AudioProcessingEvent", - "AudioScheduledSourceNode", - "AudioSinkInfo", - "AudioWorklet", - "AudioWorkletGlobalScope", - "AudioWorkletNode", - "AudioWorkletProcessor", - "AuthenticatorAssertionResponse", - "AuthenticatorAttestationResponse", - "AuthenticatorResponse", - "BackgroundFetchManager", - "BackgroundFetchRecord", - "BackgroundFetchRegistration", - "BarcodeDetector", - "BarProp", - "BaseAudioContext", - "BatteryManager", - "BeforeUnloadEvent", - "BiquadFilterNode", - "Blob", - "BlobEvent", - "Bluetooth", - "BluetoothCharacteristicProperties", - "BluetoothDevice", - "BluetoothRemoteGATTCharacteristic", - "BluetoothRemoteGATTDescriptor", - "BluetoothRemoteGATTServer", - "BluetoothRemoteGATTService", - "BluetoothUUID", - "BroadcastChannel", - "BrowserCaptureMediaStreamTrack", - "ByteLengthQueuingStrategy", - "Cache", - "CacheStorage", - "CanvasCaptureMediaStream", - "CanvasCaptureMediaStreamTrack", - "CanvasGradient", - "CanvasPattern", - "CanvasRenderingContext2D", - "CaptureController", - "CaretPosition", - "CDATASection", - "ChannelMergerNode", - "ChannelSplitterNode", - "ChapterInformation", - "CharacterBoundsUpdateEvent", - "CharacterData", - "Clipboard", - "ClipboardEvent", - "ClipboardItem", - "CloseEvent", - "CloseWatcher", - "CommandEvent", - "Comment", - "CompositionEvent", - "CompressionStream", - "ConstantSourceNode", - "ContentVisibilityAutoStateChangeEvent", - "ConvolverNode", - "CookieChangeEvent", - "CookieDeprecationLabel", - "CookieStore", - "CookieStoreManager", - "CountQueuingStrategy", - "Credential", - "CredentialsContainer", - "CropTarget", - "Crypto", - "CryptoKey", - "CSPViolationReportBody", - "CSS", - "CSSAnimation", - "CSSConditionRule", - "CSSContainerRule", - "CSSCounterStyleRule", - "CSSFontFaceRule", - "CSSFontFeatureValuesRule", - "CSSFontPaletteValuesRule", - "CSSGroupingRule", - "CSSImageValue", - "CSSImportRule", - "CSSKeyframeRule", - "CSSKeyframesRule", - "CSSKeywordValue", - "CSSLayerBlockRule", - "CSSLayerStatementRule", - "CSSMarginRule", - "CSSMathClamp", - "CSSMathInvert", - "CSSMathMax", - "CSSMathMin", - "CSSMathNegate", - "CSSMathProduct", - "CSSMathSum", - "CSSMathValue", - "CSSMatrixComponent", - "CSSMediaRule", - "CSSNamespaceRule", - "CSSNestedDeclarations", - "CSSNumericArray", - "CSSNumericValue", - "CSSPageDescriptors", - "CSSPageRule", - "CSSPerspective", - "CSSPositionTryDescriptors", - "CSSPositionTryRule", - "CSSPositionValue", - "CSSPropertyRule", - "CSSRotate", - "CSSRule", - "CSSRuleList", - "CSSScale", - "CSSScopeRule", - "CSSSkew", - "CSSSkewX", - "CSSSkewY", - "CSSStartingStyleRule", - "CSSStyleDeclaration", - "CSSStyleRule", - "CSSStyleSheet", - "CSSStyleValue", - "CSSSupportsRule", - "CSSTransformComponent", - "CSSTransformValue", - "CSSTransition", - "CSSTranslate", - "CSSUnitValue", - "CSSUnparsedValue", - "CSSVariableReferenceValue", - "CSSViewTransitionRule", - "CustomElementRegistry", - "CustomEvent", - "CustomStateSet", - "DataTransfer", - "DataTransferItem", - "DataTransferItemList", - "DecompressionStream", - "DelayNode", - "DelegatedInkTrailPresenter", - "DeviceMotionEvent", - "DeviceMotionEventAcceleration", - "DeviceMotionEventRotationRate", - "DeviceOrientationEvent", - "DevicePosture", - "DisposableStack", - "Document", - "DocumentFragment", - "DocumentPictureInPicture", - "DocumentPictureInPictureEvent", - "DocumentTimeline", - "DocumentType", - "DOMError", - "DOMException", - "DOMImplementation", - "DOMMatrix", - "DOMMatrixReadOnly", - "DOMParser", - "DOMPoint", - "DOMPointReadOnly", - "DOMQuad", - "DOMRect", - "DOMRectList", - "DOMRectReadOnly", - "DOMStringList", - "DOMStringMap", - "DOMTokenList", - "DragEvent", - "DynamicsCompressorNode", - "EditContext", - "Element", - "ElementInternals", - "EncodedAudioChunk", - "EncodedVideoChunk", - "ErrorEvent", - "Event", - "EventCounts", - "EventSource", - "EventTarget", - "External", - "EyeDropper", - "FeaturePolicy", - "FederatedCredential", - "Fence", - "FencedFrameConfig", - "FetchLaterResult", - "File", - "FileList", - "FileReader", - "FileSystem", - "FileSystemDirectoryEntry", - "FileSystemDirectoryHandle", - "FileSystemDirectoryReader", - "FileSystemEntry", - "FileSystemFileEntry", - "FileSystemFileHandle", - "FileSystemHandle", - "FileSystemObserver", - "FileSystemWritableFileStream", - "FocusEvent", - "FontData", - "FontFace", - "FontFaceSet", - "FontFaceSetLoadEvent", - "FormData", - "FormDataEvent", - "FragmentDirective", - "GainNode", - "Gamepad", - "GamepadAxisMoveEvent", - "GamepadButton", - "GamepadButtonEvent", - "GamepadEvent", - "GamepadHapticActuator", - "GamepadPose", - "Geolocation", - "GeolocationCoordinates", - "GeolocationPosition", - "GeolocationPositionError", - "GPU", - "GPUAdapter", - "GPUAdapterInfo", - "GPUBindGroup", - "GPUBindGroupLayout", - "GPUBuffer", - "GPUBufferUsage", - "GPUCanvasContext", - "GPUColorWrite", - "GPUCommandBuffer", - "GPUCommandEncoder", - "GPUCompilationInfo", - "GPUCompilationMessage", - "GPUComputePassEncoder", - "GPUComputePipeline", - "GPUDevice", - "GPUDeviceLostInfo", - "GPUError", - "GPUExternalTexture", - "GPUInternalError", - "GPUMapMode", - "GPUOutOfMemoryError", - "GPUPipelineError", - "GPUPipelineLayout", - "GPUQuerySet", - "GPUQueue", - "GPURenderBundle", - "GPURenderBundleEncoder", - "GPURenderPassEncoder", - "GPURenderPipeline", - "GPUSampler", - "GPUShaderModule", - "GPUShaderStage", - "GPUSupportedFeatures", - "GPUSupportedLimits", - "GPUTexture", - "GPUTextureUsage", - "GPUTextureView", - "GPUUncapturedErrorEvent", - "GPUValidationError", - "GravitySensor", - "Gyroscope", - "HashChangeEvent", - "Headers", - "HID", - "HIDConnectionEvent", - "HIDDevice", - "HIDInputReportEvent", - "Highlight", - "HighlightRegistry", - "History", - "HTMLAllCollection", - "HTMLAnchorElement", - "HTMLAreaElement", - "HTMLAudioElement", - "HTMLBaseElement", - "HTMLBodyElement", - "HTMLBRElement", - "HTMLButtonElement", - "HTMLCanvasElement", - "HTMLCollection", - "HTMLDataElement", - "HTMLDataListElement", - "HTMLDetailsElement", - "HTMLDialogElement", - "HTMLDirectoryElement", - "HTMLDivElement", - "HTMLDListElement", - "HTMLDocument", - "HTMLElement", - "HTMLEmbedElement", - "HTMLFencedFrameElement", - "HTMLFieldSetElement", - "HTMLFontElement", - "HTMLFormControlsCollection", - "HTMLFormElement", - "HTMLFrameElement", - "HTMLFrameSetElement", - "HTMLHeadElement", - "HTMLHeadingElement", - "HTMLHRElement", - "HTMLHtmlElement", - "HTMLIFrameElement", - "HTMLImageElement", - "HTMLInputElement", - "HTMLLabelElement", - "HTMLLegendElement", - "HTMLLIElement", - "HTMLLinkElement", - "HTMLMapElement", - "HTMLMarqueeElement", - "HTMLMediaElement", - "HTMLMenuElement", - "HTMLMetaElement", - "HTMLMeterElement", - "HTMLModElement", - "HTMLObjectElement", - "HTMLOListElement", - "HTMLOptGroupElement", - "HTMLOptionElement", - "HTMLOptionsCollection", - "HTMLOutputElement", - "HTMLParagraphElement", - "HTMLParamElement", - "HTMLPictureElement", - "HTMLPreElement", - "HTMLProgressElement", - "HTMLQuoteElement", - "HTMLScriptElement", - "HTMLSelectedContentElement", - "HTMLSelectElement", - "HTMLSlotElement", - "HTMLSourceElement", - "HTMLSpanElement", - "HTMLStyleElement", - "HTMLTableCaptionElement", - "HTMLTableCellElement", - "HTMLTableColElement", - "HTMLTableElement", - "HTMLTableRowElement", - "HTMLTableSectionElement", - "HTMLTemplateElement", - "HTMLTextAreaElement", - "HTMLTimeElement", - "HTMLTitleElement", - "HTMLTrackElement", - "HTMLUListElement", - "HTMLUnknownElement", - "HTMLVideoElement", - "IDBCursor", - "IDBCursorWithValue", - "IDBDatabase", - "IDBFactory", - "IDBIndex", - "IDBKeyRange", - "IDBObjectStore", - "IDBOpenDBRequest", - "IDBRequest", - "IDBTransaction", - "IDBVersionChangeEvent", - "IdentityCredential", - "IdentityCredentialError", - "IdentityProvider", - "IdleDeadline", - "IdleDetector", - "IIRFilterNode", - "Image", - "ImageBitmap", - "ImageBitmapRenderingContext", - "ImageCapture", - "ImageData", - "ImageDecoder", - "ImageTrack", - "ImageTrackList", - "Ink", - "InputDeviceCapabilities", - "InputDeviceInfo", - "InputEvent", - "IntersectionObserver", - "IntersectionObserverEntry", - "Keyboard", - "KeyboardEvent", - "KeyboardLayoutMap", - "KeyframeEffect", - "LanguageDetector", - "LargestContentfulPaint", - "LaunchParams", - "LaunchQueue", - "LayoutShift", - "LayoutShiftAttribution", - "LinearAccelerationSensor", - "Location", - "Lock", - "LockManager", - "MathMLElement", - "MediaCapabilities", - "MediaCapabilitiesInfo", - "MediaDeviceInfo", - "MediaDevices", - "MediaElementAudioSourceNode", - "MediaEncryptedEvent", - "MediaError", - "MediaKeyError", - "MediaKeyMessageEvent", - "MediaKeys", - "MediaKeySession", - "MediaKeyStatusMap", - "MediaKeySystemAccess", - "MediaList", - "MediaMetadata", - "MediaQueryList", - "MediaQueryListEvent", - "MediaRecorder", - "MediaRecorderErrorEvent", - "MediaSession", - "MediaSource", - "MediaSourceHandle", - "MediaStream", - "MediaStreamAudioDestinationNode", - "MediaStreamAudioSourceNode", - "MediaStreamEvent", - "MediaStreamTrack", - "MediaStreamTrackAudioSourceNode", - "MediaStreamTrackAudioStats", - "MediaStreamTrackEvent", - "MediaStreamTrackGenerator", - "MediaStreamTrackProcessor", - "MediaStreamTrackVideoStats", - "MessageChannel", - "MessageEvent", - "MessagePort", - "MIDIAccess", - "MIDIConnectionEvent", - "MIDIInput", - "MIDIInputMap", - "MIDIMessageEvent", - "MIDIOutput", - "MIDIOutputMap", - "MIDIPort", - "MimeType", - "MimeTypeArray", - "ModelGenericSession", - "ModelManager", - "MouseEvent", - "MutationEvent", - "MutationObserver", - "MutationRecord", - "NamedNodeMap", - "NavigateEvent", - "Navigation", - "NavigationActivation", - "NavigationCurrentEntryChangeEvent", - "NavigationDestination", - "NavigationHistoryEntry", - "NavigationPreloadManager", - "NavigationTransition", - "Navigator", - "NavigatorLogin", - "NavigatorManagedData", - "NavigatorUAData", - "NetworkInformation", - "Node", - "NodeFilter", - "NodeIterator", - "NodeList", - "Notification", - "NotifyPaintEvent", - "NotRestoredReasonDetails", - "NotRestoredReasons", - "Observable", - "OfflineAudioCompletionEvent", - "OfflineAudioContext", - "OffscreenCanvas", - "OffscreenCanvasRenderingContext2D", - "Option", - "OrientationSensor", - "OscillatorNode", - "OTPCredential", - "OverconstrainedError", - "PageRevealEvent", - "PageSwapEvent", - "PageTransitionEvent", - "PannerNode", - "PasswordCredential", - "Path2D", - "PaymentAddress", - "PaymentManager", - "PaymentMethodChangeEvent", - "PaymentRequest", - "PaymentRequestUpdateEvent", - "PaymentResponse", - "Performance", - "PerformanceElementTiming", - "PerformanceEntry", - "PerformanceEventTiming", - "PerformanceLongAnimationFrameTiming", - "PerformanceLongTaskTiming", - "PerformanceMark", - "PerformanceMeasure", - "PerformanceNavigation", - "PerformanceNavigationTiming", - "PerformanceObserver", - "PerformanceObserverEntryList", - "PerformancePaintTiming", - "PerformanceResourceTiming", - "PerformanceScriptTiming", - "PerformanceServerTiming", - "PerformanceTiming", - "PeriodicSyncManager", - "PeriodicWave", - "Permissions", - "PermissionStatus", - "PERSISTENT", - "PictureInPictureEvent", - "PictureInPictureWindow", - "Plugin", - "PluginArray", - "PointerEvent", - "PopStateEvent", - "Presentation", - "PresentationAvailability", - "PresentationConnection", - "PresentationConnectionAvailableEvent", - "PresentationConnectionCloseEvent", - "PresentationConnectionList", - "PresentationReceiver", - "PresentationRequest", - "PressureObserver", - "PressureRecord", - "ProcessingInstruction", - "Profiler", - "ProgressEvent", - "PromiseRejectionEvent", - "ProtectedAudience", - "PublicKeyCredential", - "PushManager", - "PushSubscription", - "PushSubscriptionOptions", - "RadioNodeList", - "Range", - "ReadableByteStreamController", - "ReadableStream", - "ReadableStreamBYOBReader", - "ReadableStreamBYOBRequest", - "ReadableStreamDefaultController", - "ReadableStreamDefaultReader", - "RelativeOrientationSensor", - "RemotePlayback", - "ReportBody", - "ReportingObserver", - "Request", - "ResizeObserver", - "ResizeObserverEntry", - "ResizeObserverSize", - "Response", - "RestrictionTarget", - "RTCCertificate", - "RTCDataChannel", - "RTCDataChannelEvent", - "RTCDtlsTransport", - "RTCDTMFSender", - "RTCDTMFToneChangeEvent", - "RTCEncodedAudioFrame", - "RTCEncodedVideoFrame", - "RTCError", - "RTCErrorEvent", - "RTCIceCandidate", - "RTCIceTransport", - "RTCPeerConnection", - "RTCPeerConnectionIceErrorEvent", - "RTCPeerConnectionIceEvent", - "RTCRtpReceiver", - "RTCRtpScriptTransform", - "RTCRtpSender", - "RTCRtpTransceiver", - "RTCSctpTransport", - "RTCSessionDescription", - "RTCStatsReport", - "RTCTrackEvent", - "Scheduler", - "Scheduling", - "Screen", - "ScreenDetailed", - "ScreenDetails", - "ScreenOrientation", - "ScriptProcessorNode", - "ScrollTimeline", - "SecurityPolicyViolationEvent", - "Selection", - "Sensor", - "SensorErrorEvent", - "Serial", - "SerialPort", - "ServiceWorker", - "ServiceWorkerContainer", - "ServiceWorkerRegistration", - "ShadowRoot", - "SharedStorage", - "SharedStorageAppendMethod", - "SharedStorageClearMethod", - "SharedStorageDeleteMethod", - "SharedStorageModifierMethod", - "SharedStorageSetMethod", - "SharedStorageWorklet", - "SharedWorker", - "SnapEvent", - "SourceBuffer", - "SourceBufferList", - "SpeechSynthesis", - "SpeechSynthesisErrorEvent", - "SpeechSynthesisEvent", - "SpeechSynthesisUtterance", - "SpeechSynthesisVoice", - "StaticRange", - "StereoPannerNode", - "Storage", - "StorageBucket", - "StorageBucketManager", - "StorageEvent", - "StorageManager", - "StylePropertyMap", - "StylePropertyMapReadOnly", - "StyleSheet", - "StyleSheetList", - "SubmitEvent", - "Subscriber", - "SubtleCrypto", - "SuppressedError", - "SVGAElement", - "SVGAngle", - "SVGAnimatedAngle", - "SVGAnimatedBoolean", - "SVGAnimatedEnumeration", - "SVGAnimatedInteger", - "SVGAnimatedLength", - "SVGAnimatedLengthList", - "SVGAnimatedNumber", - "SVGAnimatedNumberList", - "SVGAnimatedPreserveAspectRatio", - "SVGAnimatedRect", - "SVGAnimatedString", - "SVGAnimatedTransformList", - "SVGAnimateElement", - "SVGAnimateMotionElement", - "SVGAnimateTransformElement", - "SVGAnimationElement", - "SVGCircleElement", - "SVGClipPathElement", - "SVGComponentTransferFunctionElement", - "SVGDefsElement", - "SVGDescElement", - "SVGElement", - "SVGEllipseElement", - "SVGFEBlendElement", - "SVGFEColorMatrixElement", - "SVGFEComponentTransferElement", - "SVGFECompositeElement", - "SVGFEConvolveMatrixElement", - "SVGFEDiffuseLightingElement", - "SVGFEDisplacementMapElement", - "SVGFEDistantLightElement", - "SVGFEDropShadowElement", - "SVGFEFloodElement", - "SVGFEFuncAElement", - "SVGFEFuncBElement", - "SVGFEFuncGElement", - "SVGFEFuncRElement", - "SVGFEGaussianBlurElement", - "SVGFEImageElement", - "SVGFEMergeElement", - "SVGFEMergeNodeElement", - "SVGFEMorphologyElement", - "SVGFEOffsetElement", - "SVGFEPointLightElement", - "SVGFESpecularLightingElement", - "SVGFESpotLightElement", - "SVGFETileElement", - "SVGFETurbulenceElement", - "SVGFilterElement", - "SVGForeignObjectElement", - "SVGGElement", - "SVGGeometryElement", - "SVGGradientElement", - "SVGGraphicsElement", - "SVGImageElement", - "SVGLength", - "SVGLengthList", - "SVGLinearGradientElement", - "SVGLineElement", - "SVGMarkerElement", - "SVGMaskElement", - "SVGMatrix", - "SVGMetadataElement", - "SVGMPathElement", - "SVGNumber", - "SVGNumberList", - "SVGPathElement", - "SVGPatternElement", - "SVGPoint", - "SVGPointList", - "SVGPolygonElement", - "SVGPolylineElement", - "SVGPreserveAspectRatio", - "SVGRadialGradientElement", - "SVGRect", - "SVGRectElement", - "SVGScriptElement", - "SVGSetElement", - "SVGStopElement", - "SVGStringList", - "SVGStyleElement", - "SVGSVGElement", - "SVGSwitchElement", - "SVGSymbolElement", - "SVGTextContentElement", - "SVGTextElement", - "SVGTextPathElement", - "SVGTextPositioningElement", - "SVGTitleElement", - "SVGTransform", - "SVGTransformList", - "SVGTSpanElement", - "SVGUnitTypes", - "SVGUseElement", - "SVGViewElement", - "SyncManager", - "TaskAttributionTiming", - "TaskController", - "TaskPriorityChangeEvent", - "TaskSignal", - "TEMPORARY", - "Text", - "TextDecoder", - "TextDecoderStream", - "TextEncoder", - "TextEncoderStream", - "TextEvent", - "TextFormat", - "TextFormatUpdateEvent", - "TextMetrics", - "TextTrack", - "TextTrackCue", - "TextTrackCueList", - "TextTrackList", - "TextUpdateEvent", - "TimeEvent", - "TimeRanges", - "ToggleEvent", - "Touch", - "TouchEvent", - "TouchList", - "TrackEvent", - "TransformStream", - "TransformStreamDefaultController", - "TransitionEvent", - "TreeWalker", - "TrustedHTML", - "TrustedScript", - "TrustedScriptURL", - "TrustedTypePolicy", - "TrustedTypePolicyFactory", - "UIEvent", - "URL", - "URLPattern", - "URLSearchParams", - "USB", - "USBAlternateInterface", - "USBConfiguration", - "USBConnectionEvent", - "USBDevice", - "USBEndpoint", - "USBInterface", - "USBInTransferResult", - "USBIsochronousInTransferPacket", - "USBIsochronousInTransferResult", - "USBIsochronousOutTransferPacket", - "USBIsochronousOutTransferResult", - "USBOutTransferResult", - "UserActivation", - "ValidityState", - "VideoColorSpace", - "VideoDecoder", - "VideoEncoder", - "VideoFrame", - "VideoPlaybackQuality", - "ViewTimeline", - "ViewTransition", - "ViewTransitionTypeSet", - "VirtualKeyboard", - "VirtualKeyboardGeometryChangeEvent", - "VisibilityStateEntry", - "VisualViewport", - "VTTCue", - "VTTRegion", - "WakeLock", - "WakeLockSentinel", - "WaveShaperNode", - "WebAssembly", - "WebGL2RenderingContext", - "WebGLActiveInfo", - "WebGLBuffer", - "WebGLContextEvent", - "WebGLFramebuffer", - "WebGLObject", - "WebGLProgram", - "WebGLQuery", - "WebGLRenderbuffer", - "WebGLRenderingContext", - "WebGLSampler", - "WebGLShader", - "WebGLShaderPrecisionFormat", - "WebGLSync", - "WebGLTexture", - "WebGLTransformFeedback", - "WebGLUniformLocation", - "WebGLVertexArrayObject", - "WebSocket", - "WebSocketError", - "WebSocketStream", - "WebTransport", - "WebTransportBidirectionalStream", - "WebTransportDatagramDuplexStream", - "WebTransportError", - "WebTransportReceiveStream", - "WebTransportSendStream", - "WGSLLanguageFeatures", - "WheelEvent", - "Window", - "WindowControlsOverlay", - "WindowControlsOverlayGeometryChangeEvent", - "Worker", - "Worklet", - "WorkletGlobalScope", - "WritableStream", - "WritableStreamDefaultController", - "WritableStreamDefaultWriter", - "XMLDocument", - "XMLHttpRequest", - "XMLHttpRequestEventTarget", - "XMLHttpRequestUpload", - "XMLSerializer", - "XPathEvaluator", - "XPathExpression", - "XPathResult", - "XRAnchor", - "XRAnchorSet", - "XRBoundedReferenceSpace", - "XRCamera", - "XRCPUDepthInformation", - "XRDepthInformation", - "XRDOMOverlayState", - "XRFrame", - "XRHand", - "XRHitTestResult", - "XRHitTestSource", - "XRInputSource", - "XRInputSourceArray", - "XRInputSourceEvent", - "XRInputSourcesChangeEvent", - "XRJointPose", - "XRJointSpace", - "XRLayer", - "XRLightEstimate", - "XRLightProbe", - "XRPose", - "XRRay", - "XRReferenceSpace", - "XRReferenceSpaceEvent", - "XRRenderState", - "XRRigidTransform", - "XRSession", - "XRSessionEvent", - "XRSpace", - "XRSystem", - "XRTransientInputHitTestResult", - "XRTransientInputHitTestSource", - "XRView", - "XRViewerPose", - "XRViewport", - "XRWebGLBinding", - "XRWebGLDepthInformation", - "XRWebGLLayer", - "XSLTProcessor" -] diff --git a/build_vtk_bundle/node_modules/@babel/helper-globals/data/builtin-lower.json b/build_vtk_bundle/node_modules/@babel/helper-globals/data/builtin-lower.json deleted file mode 100644 index ae57bc73..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-globals/data/builtin-lower.json +++ /dev/null @@ -1,15 +0,0 @@ -[ - "decodeURI", - "decodeURIComponent", - "encodeURI", - "encodeURIComponent", - "escape", - "eval", - "globalThis", - "isFinite", - "isNaN", - "parseFloat", - "parseInt", - "undefined", - "unescape" -] diff --git a/build_vtk_bundle/node_modules/@babel/helper-globals/data/builtin-upper.json b/build_vtk_bundle/node_modules/@babel/helper-globals/data/builtin-upper.json deleted file mode 100644 index 4863ce4a..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-globals/data/builtin-upper.json +++ /dev/null @@ -1,51 +0,0 @@ -[ - "AggregateError", - "Array", - "ArrayBuffer", - "Atomics", - "BigInt", - "BigInt64Array", - "BigUint64Array", - "Boolean", - "DataView", - "Date", - "Error", - "EvalError", - "FinalizationRegistry", - "Float16Array", - "Float32Array", - "Float64Array", - "Function", - "Infinity", - "Int16Array", - "Int32Array", - "Int8Array", - "Intl", - "Iterator", - "JSON", - "Map", - "Math", - "NaN", - "Number", - "Object", - "Promise", - "Proxy", - "RangeError", - "ReferenceError", - "Reflect", - "RegExp", - "Set", - "SharedArrayBuffer", - "String", - "Symbol", - "SyntaxError", - "TypeError", - "Uint16Array", - "Uint32Array", - "Uint8Array", - "Uint8ClampedArray", - "URIError", - "WeakMap", - "WeakRef", - "WeakSet" -] diff --git a/build_vtk_bundle/node_modules/@babel/helper-globals/package.json b/build_vtk_bundle/node_modules/@babel/helper-globals/package.json deleted file mode 100644 index 4d559975..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-globals/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@babel/helper-globals", - "version": "7.28.0", - "author": "The Babel Team (https://babel.dev/team)", - "license": "MIT", - "description": "A collection of JavaScript globals for Babel internal usage", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-helper-globals" - }, - "publishConfig": { - "access": "public" - }, - "exports": { - "./data/browser-upper.json": "./data/browser-upper.json", - "./data/builtin-lower.json": "./data/builtin-lower.json", - "./data/builtin-upper.json": "./data/builtin-upper.json", - "./package.json": "./package.json" - }, - "keywords": [ - "babel", - "globals" - ], - "devDependencies": { - "globals": "^16.1.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helper-member-expression-to-functions/LICENSE b/build_vtk_bundle/node_modules/@babel/helper-member-expression-to-functions/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-member-expression-to-functions/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/helper-member-expression-to-functions/README.md b/build_vtk_bundle/node_modules/@babel/helper-member-expression-to-functions/README.md deleted file mode 100644 index 0e880e79..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-member-expression-to-functions/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/helper-member-expression-to-functions - -> Helper function to replace certain member expressions with function calls - -See our website [@babel/helper-member-expression-to-functions](https://babeljs.io/docs/babel-helper-member-expression-to-functions) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/helper-member-expression-to-functions -``` - -or using yarn: - -```sh -yarn add @babel/helper-member-expression-to-functions -``` diff --git a/build_vtk_bundle/node_modules/@babel/helper-member-expression-to-functions/package.json b/build_vtk_bundle/node_modules/@babel/helper-member-expression-to-functions/package.json deleted file mode 100644 index 9d613f31..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-member-expression-to-functions/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "@babel/helper-member-expression-to-functions", - "version": "7.28.5", - "description": "Helper function to replace certain member expressions with function calls", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-helper-member-expression-to-functions" - }, - "homepage": "https://babel.dev/docs/en/next/babel-helper-member-expression-to-functions", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "author": "The Babel Team (https://babel.dev/team)", - "dependencies": { - "@babel/traverse": "^7.28.5", - "@babel/types": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helper-module-imports/LICENSE b/build_vtk_bundle/node_modules/@babel/helper-module-imports/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-module-imports/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/helper-module-imports/README.md b/build_vtk_bundle/node_modules/@babel/helper-module-imports/README.md deleted file mode 100644 index aa47726f..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-module-imports/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/helper-module-imports - -> Babel helper functions for inserting module loads - -See our website [@babel/helper-module-imports](https://babeljs.io/docs/babel-helper-module-imports) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/helper-module-imports -``` - -or using yarn: - -```sh -yarn add @babel/helper-module-imports -``` diff --git a/build_vtk_bundle/node_modules/@babel/helper-module-imports/package.json b/build_vtk_bundle/node_modules/@babel/helper-module-imports/package.json deleted file mode 100644 index f9dee72b..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-module-imports/package.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "@babel/helper-module-imports", - "version": "7.27.1", - "description": "Babel helper functions for inserting module loads", - "author": "The Babel Team (https://babel.dev/team)", - "homepage": "https://babel.dev/docs/en/next/babel-helper-module-imports", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-helper-module-imports" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/traverse": "^7.27.1", - "@babel/types": "^7.27.1" - }, - "devDependencies": { - "@babel/core": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helper-module-transforms/LICENSE b/build_vtk_bundle/node_modules/@babel/helper-module-transforms/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-module-transforms/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/helper-module-transforms/README.md b/build_vtk_bundle/node_modules/@babel/helper-module-transforms/README.md deleted file mode 100644 index d0f82fe0..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-module-transforms/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/helper-module-transforms - -> Babel helper functions for implementing ES6 module transformations - -See our website [@babel/helper-module-transforms](https://babeljs.io/docs/babel-helper-module-transforms) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/helper-module-transforms -``` - -or using yarn: - -```sh -yarn add @babel/helper-module-transforms -``` diff --git a/build_vtk_bundle/node_modules/@babel/helper-module-transforms/package.json b/build_vtk_bundle/node_modules/@babel/helper-module-transforms/package.json deleted file mode 100644 index 5c7241e1..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-module-transforms/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@babel/helper-module-transforms", - "version": "7.28.3", - "description": "Babel helper functions for implementing ES6 module transformations", - "author": "The Babel Team (https://babel.dev/team)", - "homepage": "https://babel.dev/docs/en/next/babel-helper-module-transforms", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-helper-module-transforms" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/helper-module-imports": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1", - "@babel/traverse": "^7.28.3" - }, - "devDependencies": { - "@babel/core": "^7.28.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helper-optimise-call-expression/LICENSE b/build_vtk_bundle/node_modules/@babel/helper-optimise-call-expression/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-optimise-call-expression/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/helper-optimise-call-expression/README.md b/build_vtk_bundle/node_modules/@babel/helper-optimise-call-expression/README.md deleted file mode 100644 index 54732def..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-optimise-call-expression/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/helper-optimise-call-expression - -> Helper function to optimise call expression - -See our website [@babel/helper-optimise-call-expression](https://babeljs.io/docs/babel-helper-optimise-call-expression) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/helper-optimise-call-expression -``` - -or using yarn: - -```sh -yarn add @babel/helper-optimise-call-expression -``` diff --git a/build_vtk_bundle/node_modules/@babel/helper-optimise-call-expression/package.json b/build_vtk_bundle/node_modules/@babel/helper-optimise-call-expression/package.json deleted file mode 100644 index 110fb716..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-optimise-call-expression/package.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "@babel/helper-optimise-call-expression", - "version": "7.27.1", - "description": "Helper function to optimise call expression", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-helper-optimise-call-expression" - }, - "homepage": "https://babel.dev/docs/en/next/babel-helper-optimise-call-expression", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/types": "^7.27.1" - }, - "devDependencies": { - "@babel/generator": "^7.27.1", - "@babel/parser": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helper-plugin-utils/LICENSE b/build_vtk_bundle/node_modules/@babel/helper-plugin-utils/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-plugin-utils/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/helper-plugin-utils/README.md b/build_vtk_bundle/node_modules/@babel/helper-plugin-utils/README.md deleted file mode 100644 index a99070f3..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-plugin-utils/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/helper-plugin-utils - -> General utilities for plugins to use - -See our website [@babel/helper-plugin-utils](https://babeljs.io/docs/babel-helper-plugin-utils) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/helper-plugin-utils -``` - -or using yarn: - -```sh -yarn add @babel/helper-plugin-utils -``` diff --git a/build_vtk_bundle/node_modules/@babel/helper-plugin-utils/package.json b/build_vtk_bundle/node_modules/@babel/helper-plugin-utils/package.json deleted file mode 100644 index 26f793fe..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-plugin-utils/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "@babel/helper-plugin-utils", - "version": "7.27.1", - "description": "General utilities for plugins to use", - "author": "The Babel Team (https://babel.dev/team)", - "homepage": "https://babel.dev/docs/en/next/babel-helper-plugin-utils", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-helper-plugin-utils" - }, - "main": "./lib/index.js", - "engines": { - "node": ">=6.9.0" - }, - "devDependencies": { - "@babel/core": "^7.27.1" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helper-remap-async-to-generator/LICENSE b/build_vtk_bundle/node_modules/@babel/helper-remap-async-to-generator/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-remap-async-to-generator/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/helper-remap-async-to-generator/README.md b/build_vtk_bundle/node_modules/@babel/helper-remap-async-to-generator/README.md deleted file mode 100644 index 0e3e8c0d..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-remap-async-to-generator/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/helper-remap-async-to-generator - -> Helper function to remap async functions to generators - -See our website [@babel/helper-remap-async-to-generator](https://babeljs.io/docs/babel-helper-remap-async-to-generator) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/helper-remap-async-to-generator -``` - -or using yarn: - -```sh -yarn add @babel/helper-remap-async-to-generator -``` diff --git a/build_vtk_bundle/node_modules/@babel/helper-remap-async-to-generator/package.json b/build_vtk_bundle/node_modules/@babel/helper-remap-async-to-generator/package.json deleted file mode 100644 index 440367a5..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-remap-async-to-generator/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@babel/helper-remap-async-to-generator", - "version": "7.27.1", - "description": "Helper function to remap async functions to generators", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-helper-remap-async-to-generator" - }, - "homepage": "https://babel.dev/docs/en/next/babel-helper-remap-async-to-generator", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.27.1", - "@babel/helper-wrap-function": "^7.27.1", - "@babel/traverse": "^7.27.1" - }, - "devDependencies": { - "@babel/core": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helper-replace-supers/LICENSE b/build_vtk_bundle/node_modules/@babel/helper-replace-supers/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-replace-supers/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/helper-replace-supers/README.md b/build_vtk_bundle/node_modules/@babel/helper-replace-supers/README.md deleted file mode 100644 index f00188bb..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-replace-supers/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/helper-replace-supers - -> Helper function to replace supers - -See our website [@babel/helper-replace-supers](https://babeljs.io/docs/babel-helper-replace-supers) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/helper-replace-supers -``` - -or using yarn: - -```sh -yarn add @babel/helper-replace-supers -``` diff --git a/build_vtk_bundle/node_modules/@babel/helper-replace-supers/package.json b/build_vtk_bundle/node_modules/@babel/helper-replace-supers/package.json deleted file mode 100644 index 804c7653..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-replace-supers/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@babel/helper-replace-supers", - "version": "7.27.1", - "description": "Helper function to replace supers", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-helper-replace-supers" - }, - "homepage": "https://babel.dev/docs/en/next/babel-helper-replace-supers", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/helper-member-expression-to-functions": "^7.27.1", - "@babel/helper-optimise-call-expression": "^7.27.1", - "@babel/traverse": "^7.27.1" - }, - "devDependencies": { - "@babel/core": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helper-skip-transparent-expression-wrappers/LICENSE b/build_vtk_bundle/node_modules/@babel/helper-skip-transparent-expression-wrappers/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-skip-transparent-expression-wrappers/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/helper-skip-transparent-expression-wrappers/README.md b/build_vtk_bundle/node_modules/@babel/helper-skip-transparent-expression-wrappers/README.md deleted file mode 100644 index 49664eb8..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-skip-transparent-expression-wrappers/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/helper-skip-transparent-expression-wrappers - -> Helper which skips types and parentheses - -See our website [@babel/helper-skip-transparent-expression-wrappers](https://babeljs.io/docs/babel-helper-skip-transparent-expression-wrappers) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/helper-skip-transparent-expression-wrappers -``` - -or using yarn: - -```sh -yarn add @babel/helper-skip-transparent-expression-wrappers -``` diff --git a/build_vtk_bundle/node_modules/@babel/helper-skip-transparent-expression-wrappers/package.json b/build_vtk_bundle/node_modules/@babel/helper-skip-transparent-expression-wrappers/package.json deleted file mode 100644 index e6a71318..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-skip-transparent-expression-wrappers/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "@babel/helper-skip-transparent-expression-wrappers", - "version": "7.27.1", - "description": "Helper which skips types and parentheses", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-helper-skip-transparent-expression-wrappers" - }, - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "exports": { - ".": { - "types": "./lib/index.d.ts", - "default": "./lib/index.js" - }, - "./package.json": "./package.json" - }, - "dependencies": { - "@babel/traverse": "^7.27.1", - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helper-string-parser/LICENSE b/build_vtk_bundle/node_modules/@babel/helper-string-parser/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-string-parser/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/helper-string-parser/README.md b/build_vtk_bundle/node_modules/@babel/helper-string-parser/README.md deleted file mode 100644 index 771b4700..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-string-parser/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/helper-string-parser - -> A utility package to parse strings - -See our website [@babel/helper-string-parser](https://babeljs.io/docs/babel-helper-string-parser) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/helper-string-parser -``` - -or using yarn: - -```sh -yarn add @babel/helper-string-parser -``` diff --git a/build_vtk_bundle/node_modules/@babel/helper-string-parser/package.json b/build_vtk_bundle/node_modules/@babel/helper-string-parser/package.json deleted file mode 100644 index c4c86e4f..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-string-parser/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "@babel/helper-string-parser", - "version": "7.27.1", - "description": "A utility package to parse strings", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-helper-string-parser" - }, - "homepage": "https://babel.dev/docs/en/next/babel-helper-string-parser", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "devDependencies": { - "charcodes": "^0.2.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "exports": { - ".": { - "types": "./lib/index.d.ts", - "default": "./lib/index.js" - }, - "./package.json": "./package.json" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helper-validator-identifier/LICENSE b/build_vtk_bundle/node_modules/@babel/helper-validator-identifier/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-validator-identifier/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/helper-validator-identifier/README.md b/build_vtk_bundle/node_modules/@babel/helper-validator-identifier/README.md deleted file mode 100644 index 05c19e64..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-validator-identifier/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/helper-validator-identifier - -> Validate identifier/keywords name - -See our website [@babel/helper-validator-identifier](https://babeljs.io/docs/babel-helper-validator-identifier) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/helper-validator-identifier -``` - -or using yarn: - -```sh -yarn add @babel/helper-validator-identifier -``` diff --git a/build_vtk_bundle/node_modules/@babel/helper-validator-identifier/package.json b/build_vtk_bundle/node_modules/@babel/helper-validator-identifier/package.json deleted file mode 100644 index 1aea38db..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-validator-identifier/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "@babel/helper-validator-identifier", - "version": "7.28.5", - "description": "Validate identifier/keywords name", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-helper-validator-identifier" - }, - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "exports": { - ".": { - "types": "./lib/index.d.ts", - "default": "./lib/index.js" - }, - "./package.json": "./package.json" - }, - "devDependencies": { - "@unicode/unicode-17.0.0": "^1.6.10", - "charcodes": "^0.2.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helper-validator-option/LICENSE b/build_vtk_bundle/node_modules/@babel/helper-validator-option/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-validator-option/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/helper-validator-option/README.md b/build_vtk_bundle/node_modules/@babel/helper-validator-option/README.md deleted file mode 100644 index c5c7b5d3..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-validator-option/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/helper-validator-option - -> Validate plugin/preset options - -See our website [@babel/helper-validator-option](https://babeljs.io/docs/babel-helper-validator-option) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/helper-validator-option -``` - -or using yarn: - -```sh -yarn add @babel/helper-validator-option -``` diff --git a/build_vtk_bundle/node_modules/@babel/helper-validator-option/package.json b/build_vtk_bundle/node_modules/@babel/helper-validator-option/package.json deleted file mode 100644 index 1c97a903..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-validator-option/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "@babel/helper-validator-option", - "version": "7.27.1", - "description": "Validate plugin/preset options", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-helper-validator-option" - }, - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "exports": { - ".": { - "types": "./lib/index.d.ts", - "default": "./lib/index.js" - }, - "./package.json": "./package.json" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helper-wrap-function/LICENSE b/build_vtk_bundle/node_modules/@babel/helper-wrap-function/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-wrap-function/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/helper-wrap-function/README.md b/build_vtk_bundle/node_modules/@babel/helper-wrap-function/README.md deleted file mode 100644 index 74158704..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-wrap-function/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/helper-wrap-function - -> Helper to wrap functions inside a function call. - -See our website [@babel/helper-wrap-function](https://babeljs.io/docs/babel-helper-wrap-function) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/helper-wrap-function -``` - -or using yarn: - -```sh -yarn add @babel/helper-wrap-function -``` diff --git a/build_vtk_bundle/node_modules/@babel/helper-wrap-function/package.json b/build_vtk_bundle/node_modules/@babel/helper-wrap-function/package.json deleted file mode 100644 index c5cdf4b2..00000000 --- a/build_vtk_bundle/node_modules/@babel/helper-wrap-function/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "@babel/helper-wrap-function", - "version": "7.28.3", - "description": "Helper to wrap functions inside a function call.", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-helper-wrap-function" - }, - "homepage": "https://babel.dev/docs/en/next/babel-helper-wrap-function", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/template": "^7.27.2", - "@babel/traverse": "^7.28.3", - "@babel/types": "^7.28.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/helpers/LICENSE b/build_vtk_bundle/node_modules/@babel/helpers/LICENSE deleted file mode 100644 index 37b2c998..00000000 --- a/build_vtk_bundle/node_modules/@babel/helpers/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors -Copyright (c) 2014-present, Facebook, Inc. (ONLY ./src/helpers/regenerator* files) - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/helpers/README.md b/build_vtk_bundle/node_modules/@babel/helpers/README.md deleted file mode 100644 index 95fcf29e..00000000 --- a/build_vtk_bundle/node_modules/@babel/helpers/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/helpers - -> Collection of helper functions used by Babel transforms. - -See our website [@babel/helpers](https://babeljs.io/docs/babel-helpers) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/helpers -``` - -or using yarn: - -```sh -yarn add @babel/helpers --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/helpers/package.json b/build_vtk_bundle/node_modules/@babel/helpers/package.json deleted file mode 100644 index 621c19a3..00000000 --- a/build_vtk_bundle/node_modules/@babel/helpers/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "@babel/helpers", - "version": "7.28.4", - "description": "Collection of helper functions used by Babel transforms.", - "author": "The Babel Team (https://babel.dev/team)", - "homepage": "https://babel.dev/docs/en/next/babel-helpers", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-helpers" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/template": "^7.27.2", - "@babel/types": "^7.28.4" - }, - "devDependencies": { - "@babel/generator": "^7.28.3", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/parser": "^7.28.4", - "regenerator-runtime": "^0.14.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/parser/CHANGELOG.md b/build_vtk_bundle/node_modules/@babel/parser/CHANGELOG.md deleted file mode 100644 index b3840ac8..00000000 --- a/build_vtk_bundle/node_modules/@babel/parser/CHANGELOG.md +++ /dev/null @@ -1,1073 +0,0 @@ -# Changelog - -> **Tags:** -> - :boom: [Breaking Change] -> - :eyeglasses: [Spec Compliance] -> - :rocket: [New Feature] -> - :bug: [Bug Fix] -> - :memo: [Documentation] -> - :house: [Internal] -> - :nail_care: [Polish] - -> Semver Policy: https://github.com/babel/babel/tree/main/packages/babel-parser#semver - -_Note: Gaps between patch versions are faulty, broken or test releases._ - -See the [Babel Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) for the pre-6.8.0 version Changelog. - -## 6.17.1 (2017-05-10) - -### :bug: Bug Fix - * Fix typo in flow spread operator error (Brian Ng) - * Fixed invalid number literal parsing ([#473](https://github.com/babel/babylon/pull/473)) (Alex Kuzmenko) - * Fix number parser ([#433](https://github.com/babel/babylon/pull/433)) (Alex Kuzmenko) - * Ensure non pattern shorthand props are checked for reserved words ([#479](https://github.com/babel/babylon/pull/479)) (Brian Ng) - * Remove jsx context when parsing arrow functions ([#475](https://github.com/babel/babylon/pull/475)) (Brian Ng) - * Allow super in class properties ([#499](https://github.com/babel/babylon/pull/499)) (Brian Ng) - * Allow flow class field to be named constructor ([#510](https://github.com/babel/babylon/pull/510)) (Brian Ng) - -## 6.17.0 (2017-04-20) - -### :bug: Bug Fix - * Cherry-pick #418 to 6.x ([#476](https://github.com/babel/babylon/pull/476)) (Sebastian McKenzie) - * Add support for invalid escapes in tagged templates ([#274](https://github.com/babel/babylon/pull/274)) (Kevin Gibbons) - * Throw error if new.target is used outside of a function ([#402](https://github.com/babel/babylon/pull/402)) (Brian Ng) - * Fix parsing of class properties ([#351](https://github.com/babel/babylon/pull/351)) (Kevin Gibbons) - * Fix parsing yield with dynamicImport ([#383](https://github.com/babel/babylon/pull/383)) (Brian Ng) - * Ensure consistent start args for parseParenItem ([#386](https://github.com/babel/babylon/pull/386)) (Brian Ng) - -## 7.0.0-beta.8 (2017-04-04) - -### New Feature -* Add support for flow type spread (#418) (Conrad Buck) -* Allow statics in flow interfaces (#427) (Brian Ng) - -### Bug Fix -* Fix predicate attachment to match flow parser (#428) (Brian Ng) -* Add extra.raw back to JSXText and JSXAttribute (#344) (Alex Rattray) -* Fix rest parameters with array and objects (#424) (Brian Ng) -* Fix number parser (#433) (Alex Kuzmenko) - -### Docs -* Fix CONTRIBUTING.md [skip ci] (#432) (Alex Kuzmenko) - -### Internal -* Use babel-register script when running babel smoke tests (#442) (Brian Ng) - -## 7.0.0-beta.7 (2017-03-22) - -### Spec Compliance -* Remove babylon plugin for template revision since it's stage-4 (#426) (Henry Zhu) - -### Bug Fix - -* Fix push-pop logic in flow (#405) (Daniel Tschinder) - -## 7.0.0-beta.6 (2017-03-21) - -### New Feature -* Add support for invalid escapes in tagged templates (#274) (Kevin Gibbons) - -### Polish -* Improves error message when super is called outside of constructor (#408) (Arshabh Kumar Agarwal) - -### Docs - -* [7.0] Moved value field in spec from ObjectMember to ObjectProperty as ObjectMethod's don't have it (#415) [skip ci] (James Browning) - -## 7.0.0-beta.5 (2017-03-21) - -### Bug Fix -* Throw error if new.target is used outside of a function (#402) (Brian Ng) -* Fix parsing of class properties (#351) (Kevin Gibbons) - -### Other - * Test runner: Detect extra property in 'actual' but not in 'expected'. (#407) (Andy) - * Optimize travis builds (#419) (Daniel Tschinder) - * Update codecov to 2.0 (#412) (Daniel Tschinder) - * Fix spec for ClassMethod: It doesn't have a function, it *is* a function. (#406) [skip ci] (Andy) - * Changed Non-existent RestPattern to RestElement which is what is actually parsed (#409) [skip ci] (James Browning) - * Upgrade flow to 0.41 (Daniel Tschinder) - * Fix watch command (#403) (Brian Ng) - * Update yarn lock (Daniel Tschinder) - * Fix watch command (#403) (Brian Ng) - * chore(package): update flow-bin to version 0.41.0 (#395) (greenkeeper[bot]) - * Add estree test for correct order of directives (Daniel Tschinder) - * Add DoExpression to spec (#364) (Alex Kuzmenko) - * Mention cloning of repository in CONTRIBUTING.md (#391) [skip ci] (Sumedh Nimkarde) - * Explain how to run only one test (#389) [skip ci] (Aaron Ang) - - ## 7.0.0-beta.4 (2017-03-01) - -* Don't consume async when checking for async func decl (#377) (Brian Ng) -* add `ranges` option [skip ci] (Henry Zhu) -* Don't parse class properties without initializers when classProperties is disabled and Flow is enabled (#300) (Andrew Levine) - -## 7.0.0-beta.3 (2017-02-28) - -- [7.0] Change RestProperty/SpreadProperty to RestElement/SpreadElement (#384) -- Merge changes from 6.x - -## 7.0.0-beta.2 (2017-02-20) - -- estree: correctly change literals in all cases (#368) (Daniel Tschinder) - -## 7.0.0-beta.1 (2017-02-20) - -- Fix negative number literal typeannotations (#366) (Daniel Tschinder) -- Update contributing with more test info [skip ci] (#355) (Brian Ng) - -## 7.0.0-beta.0 (2017-02-15) - -- Reintroduce Variance node (#333) (Daniel Tschinder) -- Rename NumericLiteralTypeAnnotation to NumberLiteralTypeAnnotation (#332) (Charles Pick) -- [7.0] Remove ForAwaitStatement, add await flag to ForOfStatement (#349) (Brandon Dail) -- chore(package): update ava to version 0.18.0 (#345) (greenkeeper[bot]) -- chore(package): update babel-plugin-istanbul to version 4.0.0 (#350) (greenkeeper[bot]) -- Change location of ObjectTypeIndexer to match flow (#228) (Daniel Tschinder) -- Rename flow AST Type ExistentialTypeParam to ExistsTypeAnnotation (#322) (Toru Kobayashi) -- Revert "Temporary rollback for erroring on trailing comma with spread (#154)" (#290) (Daniel Tschinder) -- Remove classConstructorCall plugin (#291) (Brian Ng) -- Update yarn.lock (Daniel Tschinder) -- Update cross-env to 3.x (Daniel Tschinder) -- [7.0] Remove node 0.10, 0.12 and 5 from Travis (#284) (Sergey Rubanov) -- Remove `String.fromCodePoint` shim (#279) (Mathias Bynens) - -## 6.16.1 (2017-02-23) - -### :bug: Regression - -- Revert "Fix export default async function to be FunctionDeclaration" ([#375](https://github.com/babel/babylon/pull/375)) - -Need to modify Babel for this AST node change, so moving to 7.0. - -- Revert "Don't parse class properties without initializers when classProperties plugin is disabled, and Flow is enabled" ([#376](https://github.com/babel/babylon/pull/376)) - -[react-native](https://github.com/facebook/react-native/issues/12542) broke with this so we reverted. - -## 6.16.0 (2017-02-23) - -### :rocket: New Feature - -***ESTree*** compatibility as plugin ([#277](https://github.com/babel/babylon/pull/277)) (Daniel Tschinder) - -We finally introduce a new compatibility layer for ESTree. To put babylon into ESTree-compatible mode the new plugin `estree` can be enabled. In this mode the parser will output an AST that is compliant to the specs of [ESTree](https://github.com/estree/estree/) - -We highly recommend everyone who uses babylon outside of babel to use this plugin. This will make it much easier for users to switch between different ESTree-compatible parsers. We so far tested several projects with different parsers and exchanged their parser to babylon and in nearly all cases it worked out of the box. Some other estree-compatible parsers include `acorn`, `esprima`, `espree`, `flow-parser`, etc. - -To enable `estree` mode simply add the plugin in the config: -```json -{ - "plugins": [ "estree" ] -} -``` - -If you want to migrate your project from non-ESTree mode to ESTree, have a look at our [Readme](https://github.com/babel/babylon/#output), where all deviations are mentioned. - -Add a parseExpression public method ([#213](https://github.com/babel/babylon/pull/213)) (jeromew) - -Babylon exports a new function to parse a single expression - -```js -import { parseExpression } from 'babylon'; - -const ast = parseExpression('x || y && z', options); -``` - -The returned AST will only consist of the expression. The options are the same as for `parse()` - -Add startLine option ([#346](https://github.com/babel/babylon/pull/346)) (Raphael Mu) - -A new option was added to babylon allowing to change the initial linenumber for the first line which is usually `1`. -Changing this for example to `100` will make line `1` of the input source to be marked as line `100`, line `2` as `101`, line `3` as `102`, ... - -Function predicate declaration ([#103](https://github.com/babel/babylon/pull/103)) (Panagiotis Vekris) - -Added support for function predicates which flow introduced in version 0.33.0 - -```js -declare function is_number(x: mixed): boolean %checks(typeof x === "number"); -``` - -Allow imports in declare module ([#315](https://github.com/babel/babylon/pull/315)) (Daniel Tschinder) - -Added support for imports within module declarations which flow introduced in version 0.37.0 - -```js -declare module "C" { - import type { DT } from "D"; - declare export type CT = { D: DT }; -} -``` - -### :eyeglasses: Spec Compliance - -Forbid semicolons after decorators in classes ([#352](https://github.com/babel/babylon/pull/352)) (Kevin Gibbons) - -This example now correctly throws an error when there is a semicolon after the decorator: - -```js -class A { -@a; -foo(){} -} -``` - -Keywords are not allowed as local specifier ([#307](https://github.com/babel/babylon/pull/307)) (Daniel Tschinder) - -Using keywords in imports is not allowed anymore: - -```js -import { default } from "foo"; -import { a as debugger } from "foo"; -``` - -Do not allow overwritting of primitive types ([#314](https://github.com/babel/babylon/pull/314)) (Daniel Tschinder) - -In flow it is now forbidden to overwrite the primitive types `"any"`, `"mixed"`, `"empty"`, `"bool"`, `"boolean"`, `"number"`, `"string"`, `"void"` and `"null"` with your own type declaration. - -Disallow import type { type a } from … ([#305](https://github.com/babel/babylon/pull/305)) (Daniel Tschinder) - -The following code now correctly throws an error - -```js -import type { type a } from "foo"; -``` - -Don't parse class properties without initializers when classProperties is disabled and Flow is enabled ([#300](https://github.com/babel/babylon/pull/300)) (Andrew Levine) - -Ensure that you enable the `classProperties` plugin in order to enable correct parsing of class properties. Prior to this version it was possible to parse them by enabling the `flow` plugin but this was not intended the behaviour. - -If you enable the flow plugin you can only define the type of the class properties, but not initialize them. - -Fix export default async function to be FunctionDeclaration ([#324](https://github.com/babel/babylon/pull/324)) (Daniel Tschinder) - -Parsing the following code now returns a `FunctionDeclaration` AST node instead of `FunctionExpression`. - -```js -export default async function bar() {}; -``` - -### :nail_care: Polish - -Improve error message on attempt to destructure named import ([#288](https://github.com/babel/babylon/pull/288)) (Brian Ng) - -### :bug: Bug Fix - -Fix negative number literal typeannotations ([#366](https://github.com/babel/babylon/pull/366)) (Daniel Tschinder) - -Ensure takeDecorators is called on exported class ([#358](https://github.com/babel/babylon/pull/358)) (Brian Ng) - -ESTree: correctly change literals in all cases ([#368](https://github.com/babel/babylon/pull/368)) (Daniel Tschinder) - -Correctly convert RestProperty to Assignable ([#339](https://github.com/babel/babylon/pull/339)) (Daniel Tschinder) - -Fix #321 by allowing question marks in type params ([#338](https://github.com/babel/babylon/pull/338)) (Daniel Tschinder) - -Fix #336 by correctly setting arrow-param ([#337](https://github.com/babel/babylon/pull/337)) (Daniel Tschinder) - -Fix parse error when destructuring `set` with default value ([#317](https://github.com/babel/babylon/pull/317)) (Brian Ng) - -Fix ObjectTypeCallProperty static ([#298](https://github.com/babel/babylon/pull/298)) (Dan Harper) - - -### :house: Internal - -Fix generator-method-with-computed-name spec ([#360](https://github.com/babel/babylon/pull/360)) (Alex Rattray) - -Fix flow type-parameter-declaration test with unintended semantic ([#361](https://github.com/babel/babylon/pull/361)) (Alex Rattray) - -Cleanup and splitup parser functions ([#295](https://github.com/babel/babylon/pull/295)) (Daniel Tschinder) - -chore(package): update flow-bin to version 0.38.0 ([#313](https://github.com/babel/babylon/pull/313)) (greenkeeper[bot]) - -Call inner function instead of 1:1 copy to plugin ([#294](https://github.com/babel/babylon/pull/294)) (Daniel Tschinder) - -Update eslint-config-babel to the latest version 🚀 ([#299](https://github.com/babel/babylon/pull/299)) (greenkeeper[bot]) - -Update eslint-config-babel to the latest version 🚀 ([#293](https://github.com/babel/babylon/pull/293)) (greenkeeper[bot]) - -devDeps: remove eslint-plugin-babel ([#292](https://github.com/babel/babylon/pull/292)) (Kai Cataldo) - -Correct indent eslint rule config ([#276](https://github.com/babel/babylon/pull/276)) (Daniel Tschinder) - -Fail tests that have expected.json and throws-option ([#285](https://github.com/babel/babylon/pull/285)) (Daniel Tschinder) - -### :memo: Documentation - -Update contributing with more test info [skip ci] ([#355](https://github.com/babel/babylon/pull/355)) (Brian Ng) - -Update API documentation ([#330](https://github.com/babel/babylon/pull/330)) (Timothy Gu) - -Added keywords to package.json ([#323](https://github.com/babel/babylon/pull/323)) (Dmytro) - -AST spec: fix casing of `RegExpLiteral` ([#318](https://github.com/babel/babylon/pull/318)) (Mathias Bynens) - -## 6.15.0 (2017-01-10) - -### :eyeglasses: Spec Compliance - -Add support for Flow shorthand import type ([#267](https://github.com/babel/babylon/pull/267)) (Jeff Morrison) - -This change implements flows new shorthand import syntax -and where previously you had to write this code: - -```js -import {someValue} from "blah"; -import type {someType} from "blah"; -import typeof {someOtherValue} from "blah"; -``` - -you can now write it like this: - -```js -import { - someValue, - type someType, - typeof someOtherValue, -} from "blah"; -``` - -For more information look at [this](https://github.com/facebook/flow/pull/2890) pull request. - -flow: allow leading pipes in all positions ([#256](https://github.com/babel/babylon/pull/256)) (Vladimir Kurchatkin) - -This change now allows a leading pipe everywhere types can be used: -```js -var f = (x): | 1 | 2 => 1; -``` - -Throw error when exporting non-declaration ([#241](https://github.com/babel/babylon/pull/241)) (Kai Cataldo) - -Previously babylon parsed the following exports, although they are not valid: -```js -export typeof foo; -export new Foo(); -export function() {}; -export for (;;); -export while(foo); -``` - -### :bug: Bug Fix - -Don't set inType flag when parsing property names ([#266](https://github.com/babel/babylon/pull/266)) (Vladimir Kurchatkin) - -This fixes parsing of this case: - -```js -const map = { - [age <= 17] : 'Too young' -}; -``` - -Fix source location for JSXEmptyExpression nodes (fixes #248) ([#249](https://github.com/babel/babylon/pull/249)) (James Long) - -The following case produced an invalid AST -```js -
{/* foo */}
-``` - -Use fromCodePoint to convert high value unicode entities ([#243](https://github.com/babel/babylon/pull/243)) (Ryan Duffy) - -When high value unicode entities (e.g. 💩) were used in the input source code they are now correctly encoded in the resulting AST. - -Rename folder to avoid Windows-illegal characters ([#281](https://github.com/babel/babylon/pull/281)) (Ryan Plant) - -Allow this.state.clone() when parsing decorators ([#262](https://github.com/babel/babylon/pull/262)) (Alex Rattray) - -### :house: Internal - -User external-helpers ([#254](https://github.com/babel/babylon/pull/254)) (Daniel Tschinder) - -Add watch script for dev ([#234](https://github.com/babel/babylon/pull/234)) (Kai Cataldo) - -Freeze current plugins list for "*" option, and remove from README.md ([#245](https://github.com/babel/babylon/pull/245)) (Andrew Levine) - -Prepare tests for multiple fixture runners. ([#240](https://github.com/babel/babylon/pull/240)) (Daniel Tschinder) - -Add some test coverage for decorators stage-0 plugin ([#250](https://github.com/babel/babylon/pull/250)) (Andrew Levine) - -Refactor tokenizer types file ([#263](https://github.com/babel/babylon/pull/263)) (Sven SAULEAU) - -Update eslint-config-babel to the latest version 🚀 ([#273](https://github.com/babel/babylon/pull/273)) (greenkeeper[bot]) - -chore(package): update rollup to version 0.41.0 ([#272](https://github.com/babel/babylon/pull/272)) (greenkeeper[bot]) - -chore(package): update flow-bin to version 0.37.0 ([#255](https://github.com/babel/babylon/pull/255)) (greenkeeper[bot]) - -## 6.14.1 (2016-11-17) - -### :bug: Bug Fix - -Allow `"plugins": ["*"]` ([#229](https://github.com/babel/babylon/pull/229)) (Daniel Tschinder) - -```js -{ - "plugins": ["*"] -} -``` - -Will include all parser plugins instead of specifying each one individually. Useful for tools like babel-eslint, jscodeshift, and ast-explorer. - -## 6.14.0 (2016-11-16) - -### :eyeglasses: Spec Compliance - -Throw error for reserved words `enum` and `await` ([#195](https://github.com/babel/babylon/pull/195)) (Kai Cataldo) - -[11.6.2.2 Future Reserved Words](http://www.ecma-international.org/ecma-262/6.0/#sec-future-reserved-words) - -Babylon will throw for more reserved words such as `enum` or `await` (in strict mode). - -``` -class enum {} // throws -class await {} // throws in strict mode (module) -``` - -Optional names for function types and object type indexers ([#197](https://github.com/babel/babylon/pull/197)) (Gabe Levi) - -So where you used to have to write - -```js -type A = (x: string, y: boolean) => number; -type B = (z: string) => number; -type C = { [key: string]: number }; -``` - -you can now write (with flow 0.34.0) - -```js -type A = (string, boolean) => number; -type B = string => number; -type C = { [string]: number }; -``` - -Parse flow nested array type annotations like `number[][]` ([#219](https://github.com/babel/babylon/pull/219)) (Bernhard Häussner) - -Supports these form now of specifying array types: - -```js -var a: number[][][][]; -var b: string[][]; -``` - -### :bug: Bug Fix - -Correctly eat semicolon at the end of `DelcareModuleExports` ([#223](https://github.com/babel/babylon/pull/223)) (Daniel Tschinder) - -``` -declare module "foo" { declare module.exports: number } -declare module "foo" { declare module.exports: number; } // also allowed now -``` - -### :house: Internal - - * Count Babel tests towards Babylon code coverage ([#182](https://github.com/babel/babylon/pull/182)) (Moti Zilberman) - * Fix strange line endings ([#214](https://github.com/babel/babylon/pull/214)) (Thomas Grainger) - * Add node 7 (Daniel Tschinder) - * chore(package): update flow-bin to version 0.34.0 ([#204](https://github.com/babel/babylon/pull/204)) (Greenkeeper) - -## v6.13.1 (2016-10-26) - -### :nail_care: Polish - -- Use rollup for bundling to speed up startup time ([#190](https://github.com/babel/babylon/pull/190)) ([@drewml](https://github.com/DrewML)) - -```js -const babylon = require('babylon'); -const ast = babylon.parse('var foo = "lol";'); -``` - -With that test case, there was a ~95ms savings by removing the need for node to build/traverse the dependency graph. - -**Without bundling** -![image](https://cloud.githubusercontent.com/assets/5233399/19420264/3133497e-93ad-11e6-9a6a-2da59c4f5c13.png) - -**With bundling** -![image](https://cloud.githubusercontent.com/assets/5233399/19420267/388f556e-93ad-11e6-813e-7c5c396be322.png) - -- add clean command [skip ci] ([#201](https://github.com/babel/babylon/pull/201)) (Henry Zhu) -- add ForAwaitStatement (async generator already added) [skip ci] ([#196](https://github.com/babel/babylon/pull/196)) (Henry Zhu) - -## v6.13.0 (2016-10-21) - -### :eyeglasses: Spec Compliance - -Property variance type annotations for Flow plugin ([#161](https://github.com/babel/babylon/pull/161)) (Sam Goldman) - -> See https://flowtype.org/docs/variance.html for more information - -```js -type T = { +p: T }; -interface T { -p: T }; -declare class T { +[k:K]: V }; -class T { -[k:K]: V }; -class C2 { +p: T = e }; -``` - -Raise error on duplicate definition of __proto__ ([#183](https://github.com/babel/babylon/pull/183)) (Moti Zilberman) - -```js -({ __proto__: 1, __proto__: 2 }) // Throws an error now -``` - -### :bug: Bug Fix - -Flow: Allow class properties to be named `static` ([#184](https://github.com/babel/babylon/pull/184)) (Moti Zilberman) - -```js -declare class A { - static: T; -} -``` - -Allow "async" as identifier for object literal property shorthand ([#187](https://github.com/babel/babylon/pull/187)) (Andrew Levine) - -```js -var foo = { async, bar }; -``` - -### :nail_care: Polish - -Fix flowtype and add inType to state ([#189](https://github.com/babel/babylon/pull/189)) (Daniel Tschinder) - -> This improves the performance slightly (because of hidden classes) - -### :house: Internal - -Fix .gitattributes line ending setting ([#191](https://github.com/babel/babylon/pull/191)) (Moti Zilberman) - -Increase test coverage ([#175](https://github.com/babel/babylon/pull/175) (Moti Zilberman) - -Readd missin .eslinignore for IDEs (Daniel Tschinder) - -Error on missing expected.json fixture in CI ([#188](https://github.com/babel/babylon/pull/188)) (Moti Zilberman) - -Add .gitattributes and .editorconfig for LF line endings ([#179](https://github.com/babel/babylon/pull/179)) (Moti Zilberman) - -Fixes two tests that are failing after the merge of #172 ([#177](https://github.com/babel/babylon/pull/177)) (Moti Zilberman) - -## v6.12.0 (2016-10-14) - -### :eyeglasses: Spec Compliance - -Implement import() syntax ([#163](https://github.com/babel/babylon/pull/163)) (Jordan Gensler) - -#### Dynamic Import - -- Proposal Repo: https://github.com/domenic/proposal-dynamic-import -- Championed by [@domenic](https://github.com/domenic) -- stage-2 -- [sept-28 tc39 notes](https://github.com/rwaldron/tc39-notes/blob/master/es7/2016-09/sept-28.md#113a-import) - -> This repository contains a proposal for adding a "function-like" import() module loading syntactic form to JavaScript - -```js -import(`./section-modules/${link.dataset.entryModule}.js`) -.then(module => { - module.loadPageInto(main); -}) -``` - -Add EmptyTypeAnnotation ([#171](https://github.com/babel/babylon/pull/171)) (Sam Goldman) - -#### EmptyTypeAnnotation - -Just wasn't covered before. - -```js -type T = empty; -``` - -### :bug: Bug Fix - -Fix crash when exporting with destructuring and sparse array ([#170](https://github.com/babel/babylon/pull/170)) (Jeroen Engels) - -```js -// was failing due to sparse array -export const { foo: [ ,, qux7 ] } = bar; -``` - -Allow keyword in Flow object declaration property names with type parameters ([#146](https://github.com/babel/babylon/pull/146)) (Dan Harper) - -```js -declare class X { - foobar(): void; - static foobar(): void; -} -``` - -Allow keyword in object/class property names with Flow type parameters ([#145](https://github.com/babel/babylon/pull/145)) (Dan Harper) - -```js -class Foo { - delete(item: T): T { - return item; - } -} -``` - -Allow typeAnnotations for yield expressions ([#174](https://github.com/babel/babylon/pull/174))) (Daniel Tschinder) - -```js -function *foo() { - const x = (yield 5: any); -} -``` - -### :nail_care: Polish - -Annotate more errors with expected token ([#172](https://github.com/babel/babylon/pull/172))) (Moti Zilberman) - -```js -// Unexpected token, expected ; (1:6) -{ set 1 } -``` - -### :house: Internal - -Remove kcheck ([#173](https://github.com/babel/babylon/pull/173))) (Daniel Tschinder) - -Also run flow, linting, babel tests on separate instances (add back node 0.10) - -## v6.11.6 (2016-10-12) - -### :bug: Bug Fix/Regression - -Fix crash when exporting with destructuring and sparse array ([#170](https://github.com/babel/babylon/pull/170)) (Jeroen Engels) - -```js -// was failing with `Cannot read property 'type' of null` because of null identifiers -export const { foo: [ ,, qux7 ] } = bar; -``` - -## v6.11.5 (2016-10-12) - -### :eyeglasses: Spec Compliance - -Fix: Check for duplicate named exports in exported destructuring assignments ([#144](https://github.com/babel/babylon/pull/144)) (Kai Cataldo) - -```js -// `foo` has already been exported. Exported identifiers must be unique. (2:20) -export function foo() {}; -export const { a: [{foo}] } = bar; -``` - -Fix: Check for duplicate named exports in exported rest elements/properties ([#164](https://github.com/babel/babylon/pull/164)) (Kai Cataldo) - -```js -// `foo` has already been exported. Exported identifiers must be unique. (2:22) -export const foo = 1; -export const [bar, ...foo] = baz; -``` - -### :bug: Bug Fix - -Fix: Allow identifier `async` for default param in arrow expression ([#165](https://github.com/babel/babylon/pull/165)) (Kai Cataldo) - -```js -// this is ok now -const test = ({async = true}) => {}; -``` - -### :nail_care: Polish - -Babylon will now print out the token it's expecting if there's a `SyntaxError` ([#150](https://github.com/babel/babylon/pull/150)) (Daniel Tschinder) - -```bash -# So in the case of a missing ending curly (`}`) -Module build failed: SyntaxError: Unexpected token, expected } (30:0) - 28 | } - 29 | -> 30 | - | ^ -``` - -## v6.11.4 (2016-10-03) - -Temporary rollback for erroring on trailing comma with spread (#154) (Henry Zhu) - -## v6.11.3 (2016-10-01) - -### :eyeglasses: Spec Compliance - -Add static errors for object rest (#149) ([@danez](https://github.com/danez)) - -> https://github.com/sebmarkbage/ecmascript-rest-spread - -Object rest copies the *rest* of properties from the right hand side `obj` starting from the left to right. - -```js -let { x, y, ...z } = { x: 1, y: 2, z: 3 }; -// x = 1 -// y = 2 -// z = { z: 3 } -``` - -#### New Syntax Errors: - -**SyntaxError**: The rest element has to be the last element when destructuring (1:10) -```bash -> 1 | let { ...x, y, z } = { x: 1, y: 2, z: 3}; - | ^ -# Previous behavior: -# x = { x: 1, y: 2, z: 3 } -# y = 2 -# z = 3 -``` - -Before, this was just a more verbose way of shallow copying `obj` since it doesn't actually do what you think. - -**SyntaxError**: Cannot have multiple rest elements when destructuring (1:13) - -```bash -> 1 | let { x, ...y, ...z } = { x: 1, y: 2, z: 3}; - | ^ -# Previous behavior: -# x = 1 -# y = { y: 2, z: 3 } -# z = { y: 2, z: 3 } -``` - -Before y and z would just be the same value anyway so there is no reason to need to have both. - -**SyntaxError**: A trailing comma is not permitted after the rest element (1:16) - -```js -let { x, y, ...z, } = obj; -``` - -The rationale for this is that the use case for trailing comma is that you can add something at the end without affecting the line above. Since a RestProperty always has to be the last property it doesn't make sense. - ---- - -get / set are valid property names in default assignment (#142) ([@jezell](https://github.com/jezell)) - -```js -// valid -function something({ set = null, get = null }) {} -``` - -## v6.11.2 (2016-09-23) - -### Bug Fix - -- [#139](https://github.com/babel/babylon/issues/139) Don't do the duplicate check if not an identifier (#140) @hzoo - -```js -// regression with duplicate export check -SyntaxError: ./typography.js: `undefined` has already been exported. Exported identifiers must be unique. (22:13) - 20 | - 21 | export const { rhythm } = typography; -> 22 | export const { TypographyStyle } = typography -``` - -Bail out for now, and make a change to account for destructuring in the next release. - -## 6.11.1 (2016-09-22) - -### Bug Fix -- [#137](https://github.com/babel/babylon/pull/137) - Fix a regression with duplicate exports - it was erroring on all keys in `Object.prototype`. @danez - -```javascript -export toString from './toString'; -``` - -```bash -`toString` has already been exported. Exported identifiers must be unique. (1:7) -> 1 | export toString from './toString'; - | ^ - 2 | -``` - -## 6.11.0 (2016-09-22) - -### Spec Compliance (will break CI) - -- Disallow duplicate named exports ([#107](https://github.com/babel/babylon/pull/107)) @kaicataldo - -```js -// Only one default export allowed per module. (2:9) -export default function() {}; -export { foo as default }; - -// Only one default export allowed per module. (2:0) -export default {}; -export default function() {}; - -// `Foo` has already been exported. Exported identifiers must be unique. (2:0) -export { Foo }; -export class Foo {}; -``` - -### New Feature (Syntax) - -- Add support for computed class property names ([#121](https://github.com/babel/babylon/pull/121)) @motiz88 - -```js -// AST -interface ClassProperty <: Node { - type: "ClassProperty"; - key: Identifier; - value: Expression; - computed: boolean; // added -} -``` - -```js -// with "plugins": ["classProperties"] -class Foo { - [x] - ['y'] -} - -class Bar { - [p] - [m] () {} -} - ``` - -### Bug Fix - -- Fix `static` property falling through in the declare class Flow AST ([#135](https://github.com/babel/babylon/pull/135)) @danharper - -```js -declare class X { - a: number; - static b: number; // static - c: number; // this was being marked as static in the AST as well -} -``` - -### Polish - -- Rephrase "assigning/binding to rvalue" errors to include context ([#119](https://github.com/babel/babylon/pull/119)) @motiz88 - -```js -// Used to error with: -// SyntaxError: Assigning to rvalue (1:0) - -// Now: -// Invalid left-hand side in assignment expression (1:0) -3 = 4 - -// Invalid left-hand side in for-in statement (1:5) -for (+i in {}); -``` - -### Internal - -- Fix call to `this.parseMaybeAssign` with correct arguments ([#133](https://github.com/babel/babylon/pull/133)) @danez -- Add semver note to changelog ([#131](https://github.com/babel/babylon/pull/131)) @hzoo - -## 6.10.0 (2016-09-19) - -> We plan to include some spec compliance bugs in patch versions. An example was the multiple default exports issue. - -### Spec Compliance - -* Implement ES2016 check for simple parameter list in strict mode ([#106](https://github.com/babel/babylon/pull/106)) (Timothy Gu) - -> It is a Syntax Error if ContainsUseStrict of FunctionBody is true and IsSimpleParameterList of FormalParameters is false. https://tc39.github.io/ecma262/2016/#sec-function-definitions-static-semantics-early-errors - -More Context: [tc39-notes](https://github.com/rwaldron/tc39-notes/blob/master/es7/2015-07/july-29.md#611-the-scope-of-use-strict-with-respect-to-destructuring-in-parameter-lists) - -For example: - -```js -// this errors because it uses destructuring and default parameters -// in a function with a "use strict" directive -function a([ option1, option2 ] = []) { - "use strict"; -} - ``` - -The solution would be to use a top level "use strict" or to remove the destructuring or default parameters when using a function + "use strict" or to. - -### New Feature - -* Exact object type annotations for Flow plugin ([#104](https://github.com/babel/babylon/pull/104)) (Basil Hosmer) - -Added to flow in https://github.com/facebook/flow/commit/c710c40aa2a115435098d6c0dfeaadb023cd39b8 - -Looks like: - -```js -var a : {| x: number, y: string |} = { x: 0, y: 'foo' }; -``` - -### Bug Fixes - -* Include `typeParameter` location in `ArrowFunctionExpression` ([#126](https://github.com/babel/babylon/pull/126)) (Daniel Tschinder) -* Error on invalid flow type annotation with default assignment ([#122](https://github.com/babel/babylon/pull/122)) (Dan Harper) -* Fix Flow return types on arrow functions ([#124](https://github.com/babel/babylon/pull/124)) (Dan Harper) - -### Misc - -* Add tests for export extensions ([#127](https://github.com/babel/babylon/pull/127)) (Daniel Tschinder) -* Fix Contributing guidelines [skip ci] (Daniel Tschinder) - -## 6.9.2 (2016-09-09) - -The only change is to remove the `babel-runtime` dependency by compiling with Babel's ES2015 loose mode. So using babylon standalone should be smaller. - -## 6.9.1 (2016-08-23) - -This release contains mainly small bugfixes but also updates babylons default mode to es2017. The features for `exponentiationOperator`, `asyncFunctions` and `trailingFunctionCommas` which previously needed to be activated via plugin are now enabled by default and the plugins are now no-ops. - -### Bug Fixes - -- Fix issues with default object params in async functions ([#96](https://github.com/babel/babylon/pull/96)) @danez -- Fix issues with flow-types and async function ([#95](https://github.com/babel/babylon/pull/95)) @danez -- Fix arrow functions with destructuring, types & default value ([#94](https://github.com/babel/babylon/pull/94)) @danharper -- Fix declare class with qualified type identifier ([#97](https://github.com/babel/babylon/pull/97)) @danez -- Remove exponentiationOperator, asyncFunctions, trailingFunctionCommas plugins and enable them by default ([#98](https://github.com/babel/babylon/pull/98)) @danez - -## 6.9.0 (2016-08-16) - -### New syntax support - -- Add JSX spread children ([#42](https://github.com/babel/babylon/pull/42)) @calebmer - -(Be aware that React is not going to support this syntax) - -```js -
- {...todos.map(todo => )} -
-``` - -- Add support for declare module.exports ([#72](https://github.com/babel/babylon/pull/72)) @danez - -```js -declare module "foo" { - declare module.exports: {} -} -``` - -### New Features - -- If supplied, attach filename property to comment node loc. ([#80](https://github.com/babel/babylon/pull/80)) @divmain -- Add identifier name to node loc field ([#90](https://github.com/babel/babylon/pull/90)) @kittens - -### Bug Fixes - -- Fix exponential operator to behave according to spec ([#75](https://github.com/babel/babylon/pull/75)) @danez -- Fix lookahead to not add comments to arrays which are not cloned ([#76](https://github.com/babel/babylon/pull/76)) @danez -- Fix accidental fall-through in Flow type parsing. ([#82](https://github.com/babel/babylon/pull/82)) @xiemaisi -- Only allow declares inside declare module ([#73](https://github.com/babel/babylon/pull/73)) @danez -- Small fix for parsing type parameter declarations ([#83](https://github.com/babel/babylon/pull/83)) @gabelevi -- Fix arrow param locations with flow types ([#57](https://github.com/babel/babylon/pull/57)) @danez -- Fixes SyntaxError position with flow optional type ([#65](https://github.com/babel/babylon/pull/65)) @danez - -### Internal - -- Add codecoverage to tests @danez -- Fix tests to not save expected output if we expect the test to fail @danez -- Make a shallow clone of babel for testing @danez -- chore(package): update cross-env to version 2.0.0 ([#77](https://github.com/babel/babylon/pull/77)) @greenkeeperio-bot -- chore(package): update ava to version 0.16.0 ([#86](https://github.com/babel/babylon/pull/86)) @greenkeeperio-bot -- chore(package): update babel-plugin-istanbul to version 2.0.0 ([#89](https://github.com/babel/babylon/pull/89)) @greenkeeperio-bot -- chore(package): update nyc to version 8.0.0 ([#88](https://github.com/babel/babylon/pull/88)) @greenkeeperio-bot - -## 6.8.4 (2016-07-06) - -### Bug Fixes - -- Fix the location of params, when flow and default value used ([#68](https://github.com/babel/babylon/pull/68)) @danez - -## 6.8.3 (2016-07-02) - -### Bug Fixes - -- Fix performance regression introduced in 6.8.2 with conditionals ([#63](https://github.com/babel/babylon/pull/63)) @danez - -## 6.8.2 (2016-06-24) - -### Bug Fixes - -- Fix parse error with yielding jsx elements in generators `function* it() { yield ; }` ([#31](https://github.com/babel/babylon/pull/31)) @eldereal -- When cloning nodes do not clone its comments ([#24](https://github.com/babel/babylon/pull/24)) @danez -- Fix parse errors when using arrow functions with an spread element and return type `(...props): void => {}` ([#10](https://github.com/babel/babylon/pull/10)) @danez -- Fix leading comments added from previous node ([#23](https://github.com/babel/babylon/pull/23)) @danez -- Fix parse errors with flow's optional arguments `(arg?) => {}` ([#19](https://github.com/babel/babylon/pull/19)) @danez -- Support negative numeric type literals @kittens -- Remove line terminator restriction after await keyword @kittens -- Remove grouped type arrow restriction as it seems flow no longer has it @kittens -- Fix parse error with generic methods that have the name `get` or `set` `class foo { get() {} }` ([#55](https://github.com/babel/babylon/pull/55)) @vkurchatkin -- Fix parse error with arrow functions that have flow type parameter declarations `(x: T): T => x;` ([#54](https://github.com/babel/babylon/pull/54)) @gabelevi - -### Documentation - -- Document AST differences from ESTree ([#41](https://github.com/babel/babylon/pull/41)) @nene -- Move ast spec from babel/babel ([#46](https://github.com/babel/babylon/pull/46)) @hzoo - -### Internal - -- Enable skipped tests ([#16](https://github.com/babel/babylon/pull/16)) @danez -- Add script to test latest version of babylon with babel ([#21](https://github.com/babel/babylon/pull/21)) @danez -- Upgrade test runner ava @kittens -- Add missing generate-identifier-regex script @kittens -- Rename parser context types @kittens -- Add node v6 to travis testing @hzoo -- Update to Unicode v9 ([#45](https://github.com/babel/babylon/pull/45)) @mathiasbynens - -## 6.8.1 (2016-06-06) - -### New Feature - -- Parse type parameter declarations with defaults like `type Foo = T` - -### Bug Fixes -- Type parameter declarations need 1 or more type parameters. -- The existential type `*` is not a valid type parameter. -- The existential type `*` is a primary type - -### Spec Compliance -- The param list for type parameter declarations now consists of `TypeParameter` nodes -- New `TypeParameter` AST Node (replaces using the `Identifier` node before) - -``` -interface TypeParameter <: Node { - bound: TypeAnnotation; - default: TypeAnnotation; - name: string; - variance: "plus" | "minus"; -} -``` - -## 6.8.0 (2016-05-02) - -#### New Feature - -##### Parse Method Parameter Decorators ([#12](https://github.com/babel/babylon/pull/12)) - -> [Method Parameter Decorators](https://goo.gl/8MmCMG) is now a TC39 [stage 0 proposal](https://github.com/tc39/ecma262/blob/master/stage0.md). - -Examples: - -```js -class Foo { - constructor(@foo() x, @bar({ a: 123 }) @baz() y) {} -} - -export default function func(@foo() x, @bar({ a: 123 }) @baz() y) {} - -var obj = { - method(@foo() x, @bar({ a: 123 }) @baz() y) {} -}; -``` - -##### Parse for-await statements (w/ `asyncGenerators` plugin) ([#17](https://github.com/babel/babylon/pull/17)) - -There is also a new node type, `ForAwaitStatement`. - -> [Async generators and for-await](https://github.com/tc39/proposal-async-iteration) are now a [stage 2 proposal](https://github.com/tc39/ecma262#current-proposals). - -Example: - -```js -async function f() { - for await (let x of y); -} -``` diff --git a/build_vtk_bundle/node_modules/@babel/parser/LICENSE b/build_vtk_bundle/node_modules/@babel/parser/LICENSE deleted file mode 100644 index d4c7fc58..00000000 --- a/build_vtk_bundle/node_modules/@babel/parser/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (C) 2012-2014 by various contributors (see AUTHORS) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/parser/README.md b/build_vtk_bundle/node_modules/@babel/parser/README.md deleted file mode 100644 index a9463e81..00000000 --- a/build_vtk_bundle/node_modules/@babel/parser/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/parser - -> A JavaScript parser - -See our website [@babel/parser](https://babeljs.io/docs/babel-parser) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20parser%22+is%3Aopen) associated with this package. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/parser -``` - -or using yarn: - -```sh -yarn add @babel/parser --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/parser/bin/babel-parser.js b/build_vtk_bundle/node_modules/@babel/parser/bin/babel-parser.js deleted file mode 100755 index 4808c5ee..00000000 --- a/build_vtk_bundle/node_modules/@babel/parser/bin/babel-parser.js +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env node -/* eslint-disable no-var, unicorn/prefer-node-protocol */ - -var parser = require(".."); -var fs = require("fs"); - -var filename = process.argv[2]; -if (!filename) { - console.error("no filename specified"); -} else { - var file = fs.readFileSync(filename, "utf8"); - var ast = parser.parse(file); - - console.log(JSON.stringify(ast, null, " ")); -} diff --git a/build_vtk_bundle/node_modules/@babel/parser/package.json b/build_vtk_bundle/node_modules/@babel/parser/package.json deleted file mode 100644 index a9869d68..00000000 --- a/build_vtk_bundle/node_modules/@babel/parser/package.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "name": "@babel/parser", - "version": "7.28.5", - "description": "A JavaScript parser", - "author": "The Babel Team (https://babel.dev/team)", - "homepage": "https://babel.dev/docs/en/next/babel-parser", - "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A+parser+%28babylon%29%22+is%3Aopen", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "keywords": [ - "babel", - "javascript", - "parser", - "tc39", - "ecmascript", - "@babel/parser" - ], - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-parser" - }, - "main": "./lib/index.js", - "types": "./typings/babel-parser.d.ts", - "files": [ - "bin", - "lib", - "typings/babel-parser.d.ts", - "index.cjs" - ], - "engines": { - "node": ">=6.0.0" - }, - "# dependencies": "This package doesn't actually have runtime dependencies. @babel/types is only needed for type definitions.", - "dependencies": { - "@babel/types": "^7.28.5" - }, - "devDependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/helper-check-duplicate-nodes": "^7.27.1", - "@babel/helper-fixtures": "^7.28.0", - "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.28.5", - "charcodes": "^0.2.0" - }, - "bin": "./bin/babel-parser.js", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/parser/typings/babel-parser.d.ts b/build_vtk_bundle/node_modules/@babel/parser/typings/babel-parser.d.ts deleted file mode 100644 index 82c35c16..00000000 --- a/build_vtk_bundle/node_modules/@babel/parser/typings/babel-parser.d.ts +++ /dev/null @@ -1,262 +0,0 @@ -// This file is auto-generated! Do not modify it directly. -// Run `yarn gulp bundle-dts` to re-generate it. -/* eslint-disable @typescript-eslint/consistent-type-imports, @typescript-eslint/no-redundant-type-constituents */ -import { File, Expression } from '@babel/types'; - -declare class Position { - line: number; - column: number; - index: number; - constructor(line: number, col: number, index: number); -} - -type SyntaxPlugin = "flow" | "typescript" | "jsx" | "pipelineOperator" | "placeholders"; -type ParseErrorCode = "BABEL_PARSER_SYNTAX_ERROR" | "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"; -interface ParseErrorSpecification { - code: ParseErrorCode; - reasonCode: string; - syntaxPlugin?: SyntaxPlugin; - missingPlugin?: string | string[]; - loc: Position; - details: ErrorDetails; - pos: number; -} -type ParseError$1 = SyntaxError & ParseErrorSpecification; - -type BABEL_8_BREAKING = false; -type IF_BABEL_7 = false extends BABEL_8_BREAKING ? V : never; - -type Plugin$1 = - | "asyncDoExpressions" - | IF_BABEL_7<"asyncGenerators"> - | IF_BABEL_7<"bigInt"> - | IF_BABEL_7<"classPrivateMethods"> - | IF_BABEL_7<"classPrivateProperties"> - | IF_BABEL_7<"classProperties"> - | IF_BABEL_7<"classStaticBlock"> - | IF_BABEL_7<"decimal"> - | "decorators-legacy" - | "deferredImportEvaluation" - | "decoratorAutoAccessors" - | "destructuringPrivate" - | "deprecatedImportAssert" - | "doExpressions" - | IF_BABEL_7<"dynamicImport"> - | IF_BABEL_7<"explicitResourceManagement"> - | "exportDefaultFrom" - | IF_BABEL_7<"exportNamespaceFrom"> - | "flow" - | "flowComments" - | "functionBind" - | "functionSent" - | "importMeta" - | "jsx" - | IF_BABEL_7<"jsonStrings"> - | IF_BABEL_7<"logicalAssignment"> - | IF_BABEL_7<"importAssertions"> - | IF_BABEL_7<"importReflection"> - | "moduleBlocks" - | IF_BABEL_7<"moduleStringNames"> - | IF_BABEL_7<"nullishCoalescingOperator"> - | IF_BABEL_7<"numericSeparator"> - | IF_BABEL_7<"objectRestSpread"> - | IF_BABEL_7<"optionalCatchBinding"> - | IF_BABEL_7<"optionalChaining"> - | "partialApplication" - | "placeholders" - | IF_BABEL_7<"privateIn"> - | IF_BABEL_7<"regexpUnicodeSets"> - | "sourcePhaseImports" - | "throwExpressions" - | IF_BABEL_7<"topLevelAwait"> - | "v8intrinsic" - | ParserPluginWithOptions[0]; - -type ParserPluginWithOptions = - | ["decorators", DecoratorsPluginOptions] - | ["discardBinding", { syntaxType: "void" }] - | ["estree", { classFeatures?: boolean }] - | IF_BABEL_7<["importAttributes", { deprecatedAssertSyntax: boolean }]> - | IF_BABEL_7<["moduleAttributes", { version: "may-2020" }]> - | ["optionalChainingAssign", { version: "2023-07" }] - | ["pipelineOperator", PipelineOperatorPluginOptions] - | ["recordAndTuple", RecordAndTuplePluginOptions] - | ["flow", FlowPluginOptions] - | ["typescript", TypeScriptPluginOptions]; - -type PluginConfig = Plugin$1 | ParserPluginWithOptions; - -interface DecoratorsPluginOptions { - decoratorsBeforeExport?: boolean; - allowCallParenthesized?: boolean; -} - -interface PipelineOperatorPluginOptions { - proposal: BABEL_8_BREAKING extends false - ? "minimal" | "fsharp" | "hack" | "smart" - : "fsharp" | "hack"; - topicToken?: "%" | "#" | "@@" | "^^" | "^"; -} - -interface RecordAndTuplePluginOptions { - syntaxType: "bar" | "hash"; -} - -type FlowPluginOptions = BABEL_8_BREAKING extends true - ? { - all?: boolean; - enums?: boolean; - } - : { - all?: boolean; - }; - -interface TypeScriptPluginOptions { - dts?: boolean; - disallowAmbiguousJSXLike?: boolean; -} - -type Plugin = PluginConfig; - -type SourceType = "script" | "commonjs" | "module" | "unambiguous"; -interface Options { - /** - * By default, import and export declarations can only appear at a program's top level. - * Setting this option to true allows them anywhere where a statement is allowed. - */ - allowImportExportEverywhere?: boolean; - /** - * By default, await use is not allowed outside of an async function. - * Set this to true to accept such code. - */ - allowAwaitOutsideFunction?: boolean; - /** - * By default, a return statement at the top level raises an error. - * Set this to true to accept such code. - */ - allowReturnOutsideFunction?: boolean; - /** - * By default, new.target use is not allowed outside of a function or class. - * Set this to true to accept such code. - */ - allowNewTargetOutsideFunction?: boolean; - /** - * By default, super calls are not allowed outside of a method. - * Set this to true to accept such code. - */ - allowSuperOutsideMethod?: boolean; - /** - * By default, exported identifiers must refer to a declared variable. - * Set this to true to allow export statements to reference undeclared variables. - */ - allowUndeclaredExports?: boolean; - /** - * By default, yield use is not allowed outside of a generator function. - * Set this to true to accept such code. - */ - allowYieldOutsideFunction?: boolean; - /** - * By default, Babel parser JavaScript code according to Annex B syntax. - * Set this to `false` to disable such behavior. - */ - annexB?: boolean; - /** - * By default, Babel attaches comments to adjacent AST nodes. - * When this option is set to false, comments are not attached. - * It can provide up to 30% performance improvement when the input code has many comments. - * @babel/eslint-parser will set it for you. - * It is not recommended to use attachComment: false with Babel transform, - * as doing so removes all the comments in output code, and renders annotations such as - * /* istanbul ignore next *\/ nonfunctional. - */ - attachComment?: boolean; - /** - * By default, Babel always throws an error when it finds some invalid code. - * When this option is set to true, it will store the parsing error and - * try to continue parsing the invalid input file. - */ - errorRecovery?: boolean; - /** - * Indicate the mode the code should be parsed in. - * Can be one of "script", "commonjs", "module", or "unambiguous". Defaults to "script". - * "unambiguous" will make @babel/parser attempt to guess, based on the presence - * of ES6 import or export statements. - * Files with ES6 imports and exports are considered "module" and are otherwise "script". - * - * Use "commonjs" to parse code that is intended to be run in a CommonJS environment such as Node.js. - */ - sourceType?: SourceType; - /** - * Correlate output AST nodes with their source filename. - * Useful when generating code and source maps from the ASTs of multiple input files. - */ - sourceFilename?: string; - /** - * By default, all source indexes start from 0. - * You can provide a start index to alternatively start with. - * Useful for integration with other source tools. - */ - startIndex?: number; - /** - * By default, the first line of code parsed is treated as line 1. - * You can provide a line number to alternatively start with. - * Useful for integration with other source tools. - */ - startLine?: number; - /** - * By default, the parsed code is treated as if it starts from line 1, column 0. - * You can provide a column number to alternatively start with. - * Useful for integration with other source tools. - */ - startColumn?: number; - /** - * Array containing the plugins that you want to enable. - */ - plugins?: Plugin[]; - /** - * Should the parser work in strict mode. - * Defaults to true if sourceType === 'module'. Otherwise, false. - */ - strictMode?: boolean; - /** - * Adds a ranges property to each node: [node.start, node.end] - */ - ranges?: boolean; - /** - * Adds all parsed tokens to a tokens property on the File node. - */ - tokens?: boolean; - /** - * By default, the parser adds information about parentheses by setting - * `extra.parenthesized` to `true` as needed. - * When this option is `true` the parser creates `ParenthesizedExpression` - * AST nodes instead of using the `extra` property. - */ - createParenthesizedExpressions?: boolean; - /** - * The default is false in Babel 7 and true in Babel 8 - * Set this to true to parse it as an `ImportExpression` node. - * Otherwise `import(foo)` is parsed as `CallExpression(Import, [Identifier(foo)])`. - */ - createImportExpressions?: boolean; -} - -type ParserOptions = Partial; -type ParseError = ParseError$1; -type ParseResult = Result & { - comments: File["comments"]; - errors: null | ParseError[]; - tokens?: File["tokens"]; -}; -/** - * Parse the provided code as an entire ECMAScript program. - */ -declare function parse(input: string, options?: ParserOptions): ParseResult; -declare function parseExpression(input: string, options?: ParserOptions): ParseResult; - -declare const tokTypes: { - // todo(flow->ts) real token type - [name: string]: any; -}; - -export { DecoratorsPluginOptions, FlowPluginOptions, ParseError, ParseResult, ParserOptions, PluginConfig as ParserPlugin, ParserPluginWithOptions, PipelineOperatorPluginOptions, RecordAndTuplePluginOptions, TypeScriptPluginOptions, parse, parseExpression, tokTypes }; diff --git a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key/README.md b/build_vtk_bundle/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key/README.md deleted file mode 100644 index b259f961..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-bugfix-firefox-class-in-computed-class-key - -> Wraps classes defined in computed keys of other classes affected by https://bugzilla.mozilla.org/show_bug.cgi?id=1887677 - -See our website [@babel/plugin-bugfix-firefox-class-in-computed-class-key](https://babeljs.io/docs/babel-plugin-bugfix-firefox-class-in-computed-class-key) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-bugfix-firefox-class-in-computed-class-key -``` - -or using yarn: - -```sh -yarn add @babel/plugin-bugfix-firefox-class-in-computed-class-key --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key/package.json b/build_vtk_bundle/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key/package.json deleted file mode 100644 index 372ff150..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "@babel/plugin-bugfix-firefox-class-in-computed-class-key", - "version": "7.28.5", - "description": "Wraps classes defined in computed keys of other classes affected by https://bugzilla.mozilla.org/show_bug.cgi?id=1887677", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-bugfix-firefox-class-in-computed-class-key" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-bugfix-firefox-class-in-computed-class-key", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "exports": { - ".": { - "types": "./lib/index.d.ts", - "default": "./lib/index.js" - }, - "./package.json": "./package.json" - }, - "keywords": [ - "babel-plugin", - "bugfix" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/traverse": "^7.28.5" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - }, - "devDependencies": { - "@babel/core": "^7.28.5", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope/README.md b/build_vtk_bundle/node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope/README.md deleted file mode 100644 index 3766c7f6..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-bugfix-safari-class-field-initializer-scope - -> Wrap class field initializers with IIFE to workaround https://webkit.org/b/236843 - -See our website [@babel/plugin-bugfix-safari-class-field-initializer-scope](https://babeljs.io/docs/babel-plugin-bugfix-safari-class-field-initializer-scope) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-bugfix-safari-class-field-initializer-scope -``` - -or using yarn: - -```sh -yarn add @babel/plugin-bugfix-safari-class-field-initializer-scope --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope/package.json b/build_vtk_bundle/node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope/package.json deleted file mode 100644 index 602466ce..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "@babel/plugin-bugfix-safari-class-field-initializer-scope", - "version": "7.27.1", - "description": "Wrap class field initializers with IIFE to workaround https://webkit.org/b/236843", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-bugfix-safari-class-field-initializer-scope" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-bugfix-safari-class-field-initializer-scope", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "exports": { - ".": { - "types": "./lib/index.d.ts", - "default": "./lib/index.js" - }, - "./package.json": "./package.json" - }, - "keywords": [ - "babel-plugin", - "bugfix" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/traverse": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/README.md b/build_vtk_bundle/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/README.md deleted file mode 100644 index 5a7986b9..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression - -> Rename destructuring parameter to workaround https://bugs.webkit.org/show_bug.cgi?id=220517 - -See our website [@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression](https://babeljs.io/docs/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression -``` - -or using yarn: - -```sh -yarn add @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/package.json b/build_vtk_bundle/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/package.json deleted file mode 100644 index d2278699..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression", - "version": "7.27.1", - "description": "Rename destructuring parameter to workaround https://bugs.webkit.org/show_bug.cgi?id=220517", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "exports": { - ".": { - "types": "./lib/index.d.ts", - "default": "./lib/index.js" - }, - "./package.json": "./package.json" - }, - "keywords": [ - "babel-plugin", - "bugfix" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/traverse": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/README.md b/build_vtk_bundle/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/README.md deleted file mode 100644 index e1a86552..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining - -> Transform optional chaining operators to workaround https://crbug.com/v8/11558 - -See our website [@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining](https://babeljs.io/docs/babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining -``` - -or using yarn: - -```sh -yarn add @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/package.json b/build_vtk_bundle/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/package.json deleted file mode 100644 index f30e46e8..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/package.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining", - "version": "7.27.1", - "description": "Transform optional chaining operators to workaround https://crbug.com/v8/11558", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "exports": { - ".": { - "types": "./lib/index.d.ts", - "default": "./lib/index.js" - }, - "./package.json": "./package.json" - }, - "keywords": [ - "babel-plugin", - "bugfix" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", - "@babel/plugin-transform-optional-chaining": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.13.0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/traverse": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/README.md b/build_vtk_bundle/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/README.md deleted file mode 100644 index cbd44da2..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly - -> Transform static class fields assignments that are affected by https://crbug.com/v8/12421 - -See our website [@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly](https://babeljs.io/docs/babel-plugin-bugfix-v8-static-class-fields-redefine-readonly) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly -``` - -or using yarn: - -```sh -yarn add @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/package.json b/build_vtk_bundle/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/package.json deleted file mode 100644 index 735552ff..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly", - "version": "7.28.3", - "description": "Transform static class fields assignments that are affected by https://crbug.com/v8/12421", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-bugfix-v8-static-class-fields-redefine-readonly" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-bugfix-v8-static-class-fields-redefine-readonly", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "exports": { - ".": { - "types": "./lib/index.d.ts", - "default": "./lib/index.js" - }, - "./package.json": "./package.json" - }, - "keywords": [ - "babel-plugin", - "bugfix" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/traverse": "^7.28.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - }, - "devDependencies": { - "@babel/core": "^7.28.3", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/traverse": "^7.28.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-proposal-private-property-in-object/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-proposal-private-property-in-object/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-proposal-private-property-in-object/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-proposal-private-property-in-object/README.md b/build_vtk_bundle/node_modules/@babel/plugin-proposal-private-property-in-object/README.md deleted file mode 100644 index d806aee7..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-proposal-private-property-in-object/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# @babel/plugin-proposal-private-property-in-object - -> ⚠️ This version of the package (`v7.21.0-placeholder-for-preset-env.1`) is not meant to -> be imported. Use any other version of this plugin or, even better, the -> [@babel/plugin-transform-private-property-in-object](https://babeljs.io/docs/en/babel-plugin-transform-private-property-in-object) package. - -> This plugin transforms checks for a private property in an object - -See our website [@babel/plugin-proposal-private-property-in-object](https://babeljs.io/docs/en/babel-plugin-proposal-private-property-in-object) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-proposal-private-property-in-object -``` - -or using yarn: - -```sh -yarn add @babel/plugin-proposal-private-property-in-object --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-proposal-private-property-in-object/package.json b/build_vtk_bundle/node_modules/@babel/plugin-proposal-private-property-in-object/package.json deleted file mode 100644 index 69001b90..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-proposal-private-property-in-object/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "@babel/plugin-proposal-private-property-in-object", - "version": "7.21.0-placeholder-for-preset-env.2", - "description": "This plugin transforms checks for a private property in an object", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel-plugin-proposal-private-property-in-object.git" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-proposal-private-property-in-object", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": {}, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} diff --git a/build_vtk_bundle/node_modules/@babel/plugin-syntax-import-assertions/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-syntax-import-assertions/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-syntax-import-assertions/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-syntax-import-assertions/README.md b/build_vtk_bundle/node_modules/@babel/plugin-syntax-import-assertions/README.md deleted file mode 100644 index 9729e242..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-syntax-import-assertions/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-syntax-import-assertions - -> Allow parsing of the module assertion attributes in the import statement - -See our website [@babel/plugin-syntax-import-assertions](https://babeljs.io/docs/babel-plugin-syntax-import-assertions) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-syntax-import-assertions -``` - -or using yarn: - -```sh -yarn add @babel/plugin-syntax-import-assertions --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-syntax-import-assertions/package.json b/build_vtk_bundle/node_modules/@babel/plugin-syntax-import-assertions/package.json deleted file mode 100644 index adb01376..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-syntax-import-assertions/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@babel/plugin-syntax-import-assertions", - "version": "7.27.1", - "description": "Allow parsing of the module assertion attributes in the import statement", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-syntax-import-assertions" - }, - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-syntax-import-attributes/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-syntax-import-attributes/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-syntax-import-attributes/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-syntax-import-attributes/README.md b/build_vtk_bundle/node_modules/@babel/plugin-syntax-import-attributes/README.md deleted file mode 100644 index 91f56a02..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-syntax-import-attributes/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-syntax-import-attributes - -> Allow parsing of the module attributes in the import statement - -See our website [@babel/plugin-syntax-import-attributes](https://babeljs.io/docs/babel-plugin-syntax-import-attributes) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-syntax-import-attributes -``` - -or using yarn: - -```sh -yarn add @babel/plugin-syntax-import-attributes --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-syntax-import-attributes/package.json b/build_vtk_bundle/node_modules/@babel/plugin-syntax-import-attributes/package.json deleted file mode 100644 index 128e87a1..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-syntax-import-attributes/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "@babel/plugin-syntax-import-attributes", - "version": "7.27.1", - "description": "Allow parsing of the module attributes in the import statement", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-syntax-import-attributes" - }, - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "exports": { - ".": { - "types": "./lib/index.d.ts", - "default": "./lib/index.js" - }, - "./package.json": "./package.json" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-syntax-unicode-sets-regex/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-syntax-unicode-sets-regex/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-syntax-unicode-sets-regex/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-syntax-unicode-sets-regex/README.md b/build_vtk_bundle/node_modules/@babel/plugin-syntax-unicode-sets-regex/README.md deleted file mode 100644 index 6d4bae61..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-syntax-unicode-sets-regex/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-syntax-unicode-sets-regex - -> Parse regular expressions' unicodeSets (v) flag. - -See our website [@babel/plugin-syntax-unicode-sets-regex](https://babeljs.io/docs/en/babel-plugin-syntax-unicode-sets-regex) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-syntax-unicode-sets-regex -``` - -or using yarn: - -```sh -yarn add @babel/plugin-syntax-unicode-sets-regex --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-syntax-unicode-sets-regex/package.json b/build_vtk_bundle/node_modules/@babel/plugin-syntax-unicode-sets-regex/package.json deleted file mode 100644 index 715c0e10..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-syntax-unicode-sets-regex/package.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "name": "@babel/plugin-syntax-unicode-sets-regex", - "version": "7.18.6", - "description": "Parse regular expressions' unicodeSets (v) flag.", - "homepage": "https://babel.dev/docs/en/next/babel-plugin-syntax-unicode-sets-regex", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin", - "regex", - "regexp", - "unicode", - "sets", - "properties", - "property", - "string", - "strings", - "regular expressions" - ], - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-syntax-unicode-sets-regex" - }, - "bugs": "https://github.com/babel/babel/issues", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - }, - "devDependencies": { - "@babel/core": "^7.18.6", - "@babel/helper-plugin-test-runner": "^7.18.6" - }, - "author": "The Babel Team (https://babel.dev/team)", - "exports": { - ".": "./lib/index.js", - "./package.json": "./package.json" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-arrow-functions/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-arrow-functions/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-arrow-functions/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-arrow-functions/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-arrow-functions/README.md deleted file mode 100644 index d2c6be31..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-arrow-functions/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-arrow-functions - -> Compile ES2015 arrow functions to ES5 - -See our website [@babel/plugin-transform-arrow-functions](https://babeljs.io/docs/babel-plugin-transform-arrow-functions) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-arrow-functions -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-arrow-functions --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-arrow-functions/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-arrow-functions/package.json deleted file mode 100644 index 2ad2c587..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-arrow-functions/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "@babel/plugin-transform-arrow-functions", - "version": "7.27.1", - "description": "Compile ES2015 arrow functions to ES5", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-arrow-functions" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-arrow-functions", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/traverse": "^7.27.1", - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-async-generator-functions/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-async-generator-functions/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-async-generator-functions/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-async-generator-functions/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-async-generator-functions/README.md deleted file mode 100644 index 6a460d8a..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-async-generator-functions/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-async-generator-functions - -> Turn async generator functions into ES2015 generators - -See our website [@babel/plugin-transform-async-generator-functions](https://babeljs.io/docs/babel-plugin-transform-async-generator-functions) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-async-generator-functions -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-async-generator-functions --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-async-generator-functions/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-async-generator-functions/package.json deleted file mode 100644 index 7f928bd3..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-async-generator-functions/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "@babel/plugin-transform-async-generator-functions", - "version": "7.28.0", - "description": "Turn async generator functions into ES2015 generators", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-async-generator-functions" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-async-generator-functions", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-remap-async-to-generator": "^7.27.1", - "@babel/traverse": "^7.28.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.28.0", - "@babel/helper-plugin-test-runner": "^7.27.1", - "babel-plugin-polyfill-corejs3": "^0.13.0", - "core-js-pure": "^3.43.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-async-to-generator/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-async-to-generator/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-async-to-generator/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-async-to-generator/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-async-to-generator/README.md deleted file mode 100644 index 91f9df3f..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-async-to-generator/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-async-to-generator - -> Turn async functions into ES2015 generators - -See our website [@babel/plugin-transform-async-to-generator](https://babeljs.io/docs/babel-plugin-transform-async-to-generator) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-async-to-generator -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-async-to-generator --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-async-to-generator/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-async-to-generator/package.json deleted file mode 100644 index 7426cdea..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-async-to-generator/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "@babel/plugin-transform-async-to-generator", - "version": "7.27.1", - "description": "Turn async functions into ES2015 generators", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-async-to-generator" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-async-to-generator", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-module-imports": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-remap-async-to-generator": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-block-scoped-functions/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-block-scoped-functions/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-block-scoped-functions/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-block-scoped-functions/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-block-scoped-functions/README.md deleted file mode 100644 index 872e26a8..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-block-scoped-functions/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-block-scoped-functions - -> Babel plugin to ensure function declarations at the block level are block scoped - -See our website [@babel/plugin-transform-block-scoped-functions](https://babeljs.io/docs/babel-plugin-transform-block-scoped-functions) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-block-scoped-functions -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-block-scoped-functions --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-block-scoped-functions/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-block-scoped-functions/package.json deleted file mode 100644 index 81761fb5..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-block-scoped-functions/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@babel/plugin-transform-block-scoped-functions", - "version": "7.27.1", - "description": "Babel plugin to ensure function declarations at the block level are block scoped", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-block-scoped-functions" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-block-scoped-functions", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-block-scoping/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-block-scoping/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-block-scoping/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-block-scoping/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-block-scoping/README.md deleted file mode 100644 index 5750b906..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-block-scoping/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-block-scoping - -> Compile ES2015 block scoping (const and let) to ES5 - -See our website [@babel/plugin-transform-block-scoping](https://babeljs.io/docs/babel-plugin-transform-block-scoping) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-block-scoping -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-block-scoping --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-block-scoping/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-block-scoping/package.json deleted file mode 100644 index 2b30beee..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-block-scoping/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "@babel/plugin-transform-block-scoping", - "version": "7.28.5", - "description": "Compile ES2015 block scoping (const and let) to ES5", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-block-scoping" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-block-scoping", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "keywords": [ - "babel-plugin" - ], - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.28.5", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/traverse": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-class-properties/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-class-properties/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-class-properties/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-class-properties/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-class-properties/README.md deleted file mode 100644 index 7000ec5b..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-class-properties/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-class-properties - -> This plugin transforms static class properties as well as properties declared with the property initializer syntax - -See our website [@babel/plugin-transform-class-properties](https://babeljs.io/docs/babel-plugin-transform-class-properties) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-class-properties -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-class-properties --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-class-properties/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-class-properties/package.json deleted file mode 100644 index 40139773..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-class-properties/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "@babel/plugin-transform-class-properties", - "version": "7.27.1", - "description": "This plugin transforms static class properties as well as properties declared with the property initializer syntax", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-class-properties" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-class-properties", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-class-static-block/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-class-static-block/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-class-static-block/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-class-static-block/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-class-static-block/README.md deleted file mode 100644 index 20481d26..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-class-static-block/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-class-static-block - -> Transform class static blocks - -See our website [@babel/plugin-transform-class-static-block](https://babeljs.io/docs/babel-plugin-transform-class-static-block) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-class-static-block -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-class-static-block --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-class-static-block/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-class-static-block/package.json deleted file mode 100644 index 0d5dce16..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-class-static-block/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "@babel/plugin-transform-class-static-block", - "version": "7.28.3", - "description": "Transform class static blocks", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-class-static-block" - }, - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "exports": { - ".": { - "types": "./lib/index.d.ts", - "default": "./lib/index.js" - }, - "./package.json": "./package.json" - }, - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.28.3", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.12.0" - }, - "devDependencies": { - "@babel/core": "^7.28.3", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/plugin-external-helpers": "^7.27.1", - "@babel/plugin-transform-class-properties": "^7.27.1", - "@babel/traverse": "^7.28.3", - "@babel/types": "^7.28.2" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-class-static-block", - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-classes/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-classes/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-classes/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-classes/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-classes/README.md deleted file mode 100644 index b552b0d7..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-classes/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-classes - -> Compile ES2015 classes to ES5 - -See our website [@babel/plugin-transform-classes](https://babeljs.io/docs/babel-plugin-transform-classes) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-classes -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-classes --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-classes/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-classes/package.json deleted file mode 100644 index 9fd14639..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-classes/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "@babel/plugin-transform-classes", - "version": "7.28.4", - "description": "Compile ES2015 classes to ES5", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-classes" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-classes", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.27.3", - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-globals": "^7.28.0", - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-replace-supers": "^7.27.1", - "@babel/traverse": "^7.28.4" - }, - "keywords": [ - "babel-plugin" - ], - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.28.4", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-computed-properties/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-computed-properties/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-computed-properties/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-computed-properties/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-computed-properties/README.md deleted file mode 100644 index 397c7073..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-computed-properties/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-computed-properties - -> Compile ES2015 computed properties to ES5 - -See our website [@babel/plugin-transform-computed-properties](https://babeljs.io/docs/babel-plugin-transform-computed-properties) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-computed-properties -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-computed-properties --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-computed-properties/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-computed-properties/package.json deleted file mode 100644 index e1683b69..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-computed-properties/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "@babel/plugin-transform-computed-properties", - "version": "7.27.1", - "description": "Compile ES2015 computed properties to ES5", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-computed-properties" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-computed-properties", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/template": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-destructuring/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-destructuring/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-destructuring/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-destructuring/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-destructuring/README.md deleted file mode 100644 index d057a325..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-destructuring/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-destructuring - -> Compile ES2015 destructuring to ES5 - -See our website [@babel/plugin-transform-destructuring](https://babeljs.io/docs/babel-plugin-transform-destructuring) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-destructuring -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-destructuring --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-destructuring/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-destructuring/package.json deleted file mode 100644 index 8a35357d..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-destructuring/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "@babel/plugin-transform-destructuring", - "version": "7.28.5", - "description": "Compile ES2015 destructuring to ES5", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-destructuring" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-destructuring", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/traverse": "^7.28.5" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.28.5", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-dotall-regex/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-dotall-regex/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-dotall-regex/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-dotall-regex/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-dotall-regex/README.md deleted file mode 100644 index ccfbb5e0..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-dotall-regex/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-dotall-regex - -> Compile regular expressions using the `s` (`dotAll`) flag to ES5. - -See our website [@babel/plugin-transform-dotall-regex](https://babeljs.io/docs/babel-plugin-transform-dotall-regex) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-dotall-regex -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-dotall-regex --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-dotall-regex/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-dotall-regex/package.json deleted file mode 100644 index 730e8c07..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-dotall-regex/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "@babel/plugin-transform-dotall-regex", - "version": "7.27.1", - "description": "Compile regular expressions using the `s` (`dotAll`) flag to ES5.", - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-dotall-regex", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin", - "regex", - "regexp", - "regular expressions", - "dotall" - ], - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-dotall-regex" - }, - "bugs": "https://github.com/babel/babel/issues", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-duplicate-keys/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-duplicate-keys/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-duplicate-keys/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-duplicate-keys/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-duplicate-keys/README.md deleted file mode 100644 index 05ca68b6..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-duplicate-keys/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-duplicate-keys - -> Compile objects with duplicate keys to valid strict ES5 - -See our website [@babel/plugin-transform-duplicate-keys](https://babeljs.io/docs/babel-plugin-transform-duplicate-keys) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-duplicate-keys -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-duplicate-keys --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-duplicate-keys/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-duplicate-keys/package.json deleted file mode 100644 index 739734d0..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-duplicate-keys/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@babel/plugin-transform-duplicate-keys", - "version": "7.27.1", - "description": "Compile objects with duplicate keys to valid strict ES5", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-duplicate-keys" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-duplicate-keys", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex/README.md deleted file mode 100644 index 8ff227f4..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-duplicate-named-capturing-groups-regex - -> Compile regular expressions using duplicate named groups to index-based groups. - -See our website [@babel/plugin-transform-duplicate-named-capturing-groups-regex](https://babeljs.io/docs/babel-plugin-transform-duplicate-named-capturing-groups-regex) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-duplicate-named-capturing-groups-regex -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-duplicate-named-capturing-groups-regex --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex/package.json deleted file mode 100644 index 4c3058a8..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex/package.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "@babel/plugin-transform-duplicate-named-capturing-groups-regex", - "version": "7.27.1", - "description": "Compile regular expressions using duplicate named groups to index-based groups.", - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-duplicate-named-capturing-groups-regex", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin", - "regex", - "regexp", - "regular expressions" - ], - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-duplicate-named-capturing-groups-regex" - }, - "bugs": "https://github.com/babel/babel/issues", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1", - "core-js": "^3.30.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "exports": { - ".": { - "types": "./lib/index.d.ts", - "default": "./lib/index.js" - }, - "./package.json": "./package.json" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-dynamic-import/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-dynamic-import/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-dynamic-import/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-dynamic-import/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-dynamic-import/README.md deleted file mode 100644 index ef356d8f..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-dynamic-import/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-dynamic-import - -> Transform import() expressions - -See our website [@babel/plugin-transform-dynamic-import](https://babeljs.io/docs/babel-plugin-transform-dynamic-import) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-dynamic-import -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-dynamic-import --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-dynamic-import/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-dynamic-import/package.json deleted file mode 100644 index 9213f7a7..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-dynamic-import/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "@babel/plugin-transform-dynamic-import", - "version": "7.27.1", - "description": "Transform import() expressions", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-dynamic-import" - }, - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-explicit-resource-management/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-explicit-resource-management/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-explicit-resource-management/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-explicit-resource-management/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-explicit-resource-management/README.md deleted file mode 100644 index c00ba2bb..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-explicit-resource-management/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-explicit-resource-management - -> Compile `using` and `await using` declarations to ES2015 - -See our website [@babel/plugin-transform-explicit-resource-management](https://babeljs.io/docs/babel-plugin-transform-explicit-resource-management) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-explicit-resource-management -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-explicit-resource-management --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-explicit-resource-management/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-explicit-resource-management/package.json deleted file mode 100644 index 9fd369c1..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-explicit-resource-management/package.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "@babel/plugin-transform-explicit-resource-management", - "version": "7.28.0", - "description": "Compile `using` and `await using` declarations to ES2015", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-explicit-resource-management" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-explicit-resource-management", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/plugin-transform-destructuring": "^7.28.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.28.0", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "exports": { - ".": { - "types": "./lib/index.d.ts", - "default": "./lib/index.js" - }, - "./package.json": "./package.json" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-exponentiation-operator/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-exponentiation-operator/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-exponentiation-operator/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-exponentiation-operator/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-exponentiation-operator/README.md deleted file mode 100644 index 4c3899f2..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-exponentiation-operator/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-exponentiation-operator - -> Compile exponentiation operator to ES5 - -See our website [@babel/plugin-transform-exponentiation-operator](https://babeljs.io/docs/babel-plugin-transform-exponentiation-operator) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-exponentiation-operator -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-exponentiation-operator --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-exponentiation-operator/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-exponentiation-operator/package.json deleted file mode 100644 index 92d1f2ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-exponentiation-operator/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@babel/plugin-transform-exponentiation-operator", - "version": "7.28.5", - "description": "Compile exponentiation operator to ES5", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-exponentiation-operator" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-exponentiation-operator", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.28.5", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-export-namespace-from/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-export-namespace-from/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-export-namespace-from/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-export-namespace-from/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-export-namespace-from/README.md deleted file mode 100644 index 33aea24e..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-export-namespace-from/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-export-namespace-from - -> Compile export namespace to ES2015 - -See our website [@babel/plugin-transform-export-namespace-from](https://babeljs.io/docs/babel-plugin-transform-export-namespace-from) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-export-namespace-from -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-export-namespace-from --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-export-namespace-from/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-export-namespace-from/package.json deleted file mode 100644 index d11171c8..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-export-namespace-from/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@babel/plugin-transform-export-namespace-from", - "version": "7.27.1", - "description": "Compile export namespace to ES2015", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-export-namespace-from" - }, - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-export-namespace-from", - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-for-of/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-for-of/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-for-of/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-for-of/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-for-of/README.md deleted file mode 100644 index ae389e10..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-for-of/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-for-of - -> Compile ES2015 for...of to ES5 - -See our website [@babel/plugin-transform-for-of](https://babeljs.io/docs/babel-plugin-transform-for-of) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-for-of -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-for-of --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-for-of/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-for-of/package.json deleted file mode 100644 index 56b86eea..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-for-of/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "@babel/plugin-transform-for-of", - "version": "7.27.1", - "description": "Compile ES2015 for...of to ES5", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-for-of" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-for-of", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-function-name/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-function-name/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-function-name/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-function-name/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-function-name/README.md deleted file mode 100644 index ef8beb1c..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-function-name/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-function-name - -> Apply ES2015 function.name semantics to all functions - -See our website [@babel/plugin-transform-function-name](https://babeljs.io/docs/babel-plugin-transform-function-name) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-function-name -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-function-name --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-function-name/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-function-name/package.json deleted file mode 100644 index 4e78f4c9..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-function-name/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "@babel/plugin-transform-function-name", - "version": "7.27.1", - "description": "Apply ES2015 function.name semantics to all functions", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-function-name" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-function-name", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-compilation-targets": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/traverse": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-json-strings/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-json-strings/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-json-strings/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-json-strings/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-json-strings/README.md deleted file mode 100644 index 7b3cd2c4..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-json-strings/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-json-strings - -> Escape U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR in JS strings - -See our website [@babel/plugin-transform-json-strings](https://babeljs.io/docs/babel-plugin-transform-json-strings) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-json-strings -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-json-strings --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-json-strings/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-json-strings/package.json deleted file mode 100644 index 62208173..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-json-strings/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@babel/plugin-transform-json-strings", - "version": "7.27.1", - "description": "Escape U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR in JS strings", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-json-strings" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-json-strings", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-literals/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-literals/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-literals/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-literals/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-literals/README.md deleted file mode 100644 index f9d7bf90..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-literals/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-literals - -> Compile ES2015 unicode string and number literals to ES5 - -See our website [@babel/plugin-transform-literals](https://babeljs.io/docs/babel-plugin-transform-literals) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-literals -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-literals --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-literals/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-literals/package.json deleted file mode 100644 index 2604dd0b..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-literals/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@babel/plugin-transform-literals", - "version": "7.27.1", - "description": "Compile ES2015 unicode string and number literals to ES5", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-literals" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-literals", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-logical-assignment-operators/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-logical-assignment-operators/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-logical-assignment-operators/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-logical-assignment-operators/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-logical-assignment-operators/README.md deleted file mode 100644 index bf3795d7..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-logical-assignment-operators/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-logical-assignment-operators - -> Transforms logical assignment operators into short-circuited assignments - -See our website [@babel/plugin-transform-logical-assignment-operators](https://babeljs.io/docs/babel-plugin-transform-logical-assignment-operators) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-logical-assignment-operators -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-logical-assignment-operators --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-logical-assignment-operators/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-logical-assignment-operators/package.json deleted file mode 100644 index e353bf3c..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-logical-assignment-operators/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "@babel/plugin-transform-logical-assignment-operators", - "version": "7.28.5", - "description": "Transforms logical assignment operators into short-circuited assignments", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-logical-assignment-operators" - }, - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.28.5", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.27.1" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-logical-assignment-operators", - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-member-expression-literals/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-member-expression-literals/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-member-expression-literals/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-member-expression-literals/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-member-expression-literals/README.md deleted file mode 100644 index 7f8b7f69..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-member-expression-literals/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-member-expression-literals - -> Ensure that reserved words are quoted in property accesses - -See our website [@babel/plugin-transform-member-expression-literals](https://babeljs.io/docs/babel-plugin-transform-member-expression-literals) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-member-expression-literals -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-member-expression-literals --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-member-expression-literals/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-member-expression-literals/package.json deleted file mode 100644 index dff9fa25..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-member-expression-literals/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@babel/plugin-transform-member-expression-literals", - "version": "7.27.1", - "description": "Ensure that reserved words are quoted in property accesses", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-member-expression-literals" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-member-expression-literals", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-amd/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-amd/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-amd/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-amd/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-amd/README.md deleted file mode 100644 index fba7f62d..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-amd/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-modules-amd - -> This plugin transforms ES2015 modules to AMD - -See our website [@babel/plugin-transform-modules-amd](https://babeljs.io/docs/babel-plugin-transform-modules-amd) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-modules-amd -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-modules-amd --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-amd/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-amd/package.json deleted file mode 100644 index 63b64363..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-amd/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "@babel/plugin-transform-modules-amd", - "version": "7.27.1", - "description": "This plugin transforms ES2015 modules to AMD", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-modules-amd" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-modules-amd", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/helper-module-transforms": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "keywords": [ - "babel-plugin" - ], - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/plugin-external-helpers": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-commonjs/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-commonjs/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-commonjs/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-commonjs/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-commonjs/README.md deleted file mode 100644 index 98145c79..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-commonjs/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-modules-commonjs - -> This plugin transforms ES2015 modules to CommonJS - -See our website [@babel/plugin-transform-modules-commonjs](https://babeljs.io/docs/babel-plugin-transform-modules-commonjs) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-modules-commonjs -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-modules-commonjs --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-commonjs/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-commonjs/package.json deleted file mode 100644 index 70bd37df..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-commonjs/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "@babel/plugin-transform-modules-commonjs", - "version": "7.27.1", - "description": "This plugin transforms ES2015 modules to CommonJS", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-modules-commonjs" - }, - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/helper-module-transforms": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "keywords": [ - "babel-plugin" - ], - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/plugin-external-helpers": "^7.27.1" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-modules-commonjs", - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-systemjs/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-systemjs/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-systemjs/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-systemjs/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-systemjs/README.md deleted file mode 100644 index cd4699f4..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-systemjs/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-modules-systemjs - -> This plugin transforms ES2015 modules to SystemJS - -See our website [@babel/plugin-transform-modules-systemjs](https://babeljs.io/docs/babel-plugin-transform-modules-systemjs) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-modules-systemjs -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-modules-systemjs --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-systemjs/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-systemjs/package.json deleted file mode 100644 index ab7d8965..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-systemjs/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "@babel/plugin-transform-modules-systemjs", - "version": "7.28.5", - "description": "This plugin transforms ES2015 modules to SystemJS", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-modules-systemjs" - }, - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/helper-module-transforms": "^7.28.3", - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-validator-identifier": "^7.28.5", - "@babel/traverse": "^7.28.5" - }, - "keywords": [ - "babel-plugin" - ], - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.28.5", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/helper-transform-fixture-test-runner": "^7.28.5", - "core-js": "^3.35.0" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-modules-systemjs", - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-umd/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-umd/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-umd/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-umd/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-umd/README.md deleted file mode 100644 index e9f0358a..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-umd/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-modules-umd - -> This plugin transforms ES2015 modules to UMD - -See our website [@babel/plugin-transform-modules-umd](https://babeljs.io/docs/babel-plugin-transform-modules-umd) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-modules-umd -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-modules-umd --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-umd/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-umd/package.json deleted file mode 100644 index bf98dffb..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-modules-umd/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "@babel/plugin-transform-modules-umd", - "version": "7.27.1", - "description": "This plugin transforms ES2015 modules to UMD", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-modules-umd" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-modules-umd", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/helper-module-transforms": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "keywords": [ - "babel-plugin" - ], - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/plugin-external-helpers": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-named-capturing-groups-regex/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-named-capturing-groups-regex/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-named-capturing-groups-regex/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-named-capturing-groups-regex/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-named-capturing-groups-regex/README.md deleted file mode 100644 index 61fbeb3a..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-named-capturing-groups-regex/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-named-capturing-groups-regex - -> Compile regular expressions using named groups to ES5. - -See our website [@babel/plugin-transform-named-capturing-groups-regex](https://babeljs.io/docs/babel-plugin-transform-named-capturing-groups-regex) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-named-capturing-groups-regex -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-named-capturing-groups-regex --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-named-capturing-groups-regex/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-named-capturing-groups-regex/package.json deleted file mode 100644 index 1ae5986b..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-named-capturing-groups-regex/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "@babel/plugin-transform-named-capturing-groups-regex", - "version": "7.27.1", - "description": "Compile regular expressions using named groups to ES5.", - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-named-capturing-groups-regex", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin", - "regex", - "regexp", - "regular expressions" - ], - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-named-capturing-groups-regex" - }, - "bugs": "https://github.com/babel/babel/issues", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1", - "core-js": "^3.30.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-new-target/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-new-target/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-new-target/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-new-target/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-new-target/README.md deleted file mode 100644 index 6dcbcf70..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-new-target/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-new-target - -> Transforms new.target meta property - -See our website [@babel/plugin-transform-new-target](https://babeljs.io/docs/babel-plugin-transform-new-target) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-new-target -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-new-target --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-new-target/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-new-target/package.json deleted file mode 100644 index 66dd12ff..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-new-target/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "@babel/plugin-transform-new-target", - "version": "7.27.1", - "description": "Transforms new.target meta property", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-new-target" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-new-target", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/plugin-transform-arrow-functions": "^7.27.1", - "@babel/plugin-transform-class-properties": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-nullish-coalescing-operator/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-nullish-coalescing-operator/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-nullish-coalescing-operator/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-nullish-coalescing-operator/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-nullish-coalescing-operator/README.md deleted file mode 100644 index 0d98d92c..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-nullish-coalescing-operator/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-nullish-coalescing-operator - -> Remove nullish coalescing operator - -See our website [@babel/plugin-transform-nullish-coalescing-operator](https://babeljs.io/docs/babel-plugin-transform-nullish-coalescing-operator) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-nullish-coalescing-operator -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-nullish-coalescing-operator --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-nullish-coalescing-operator/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-nullish-coalescing-operator/package.json deleted file mode 100644 index ecdd656e..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-nullish-coalescing-operator/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@babel/plugin-transform-nullish-coalescing-operator", - "version": "7.27.1", - "description": "Remove nullish coalescing operator", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-nullish-coalescing-operator" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-nullish-coalescing-operator", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-numeric-separator/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-numeric-separator/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-numeric-separator/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-numeric-separator/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-numeric-separator/README.md deleted file mode 100644 index 90c4bf48..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-numeric-separator/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-numeric-separator - -> Remove numeric separators from Decimal, Binary, Hex and Octal literals - -See our website [@babel/plugin-transform-numeric-separator](https://babeljs.io/docs/babel-plugin-transform-numeric-separator) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-numeric-separator -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-numeric-separator --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-numeric-separator/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-numeric-separator/package.json deleted file mode 100644 index 57bd152a..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-numeric-separator/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "@babel/plugin-transform-numeric-separator", - "version": "7.27.1", - "description": "Remove numeric separators from Decimal, Binary, Hex and Octal literals", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-numeric-separator" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-numeric-separator", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/traverse": "^7.27.1", - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-object-rest-spread/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-object-rest-spread/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-object-rest-spread/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-object-rest-spread/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-object-rest-spread/README.md deleted file mode 100644 index cef6d821..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-object-rest-spread/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-object-rest-spread - -> Compile object rest and spread to ES5 - -See our website [@babel/plugin-transform-object-rest-spread](https://babeljs.io/docs/babel-plugin-transform-object-rest-spread) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-object-rest-spread -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-object-rest-spread --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-object-rest-spread/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-object-rest-spread/package.json deleted file mode 100644 index e1958999..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-object-rest-spread/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "@babel/plugin-transform-object-rest-spread", - "version": "7.28.4", - "description": "Compile object rest and spread to ES5", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-object-rest-spread" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-object-rest-spread", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/plugin-transform-destructuring": "^7.28.0", - "@babel/plugin-transform-parameters": "^7.27.7", - "@babel/traverse": "^7.28.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.28.4", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/parser": "^7.28.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-object-super/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-object-super/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-object-super/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-object-super/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-object-super/README.md deleted file mode 100644 index 1ab1b4d3..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-object-super/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-object-super - -> Compile ES2015 object super to ES5 - -See our website [@babel/plugin-transform-object-super](https://babeljs.io/docs/babel-plugin-transform-object-super) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-object-super -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-object-super --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-object-super/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-object-super/package.json deleted file mode 100644 index 2eed5e78..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-object-super/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "@babel/plugin-transform-object-super", - "version": "7.27.1", - "description": "Compile ES2015 object super to ES5", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-object-super" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-object-super", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-replace-supers": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-optional-catch-binding/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-optional-catch-binding/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-optional-catch-binding/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-optional-catch-binding/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-optional-catch-binding/README.md deleted file mode 100644 index d2ecd426..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-optional-catch-binding/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-optional-catch-binding - -> Compile optional catch bindings - -See our website [@babel/plugin-transform-optional-catch-binding](https://babeljs.io/docs/babel-plugin-transform-optional-catch-binding) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-optional-catch-binding -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-optional-catch-binding --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-optional-catch-binding/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-optional-catch-binding/package.json deleted file mode 100644 index 2430d9ab..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-optional-catch-binding/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@babel/plugin-transform-optional-catch-binding", - "version": "7.27.1", - "description": "Compile optional catch bindings", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-optional-catch-binding" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-optional-catch-binding", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-optional-chaining/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-optional-chaining/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-optional-chaining/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-optional-chaining/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-optional-chaining/README.md deleted file mode 100644 index 41cdc2b6..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-optional-chaining/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-optional-chaining - -> Transform optional chaining operators into a series of nil checks - -See our website [@babel/plugin-transform-optional-chaining](https://babeljs.io/docs/babel-plugin-transform-optional-chaining) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-optional-chaining -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-optional-chaining --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-optional-chaining/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-optional-chaining/package.json deleted file mode 100644 index b595e58a..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-optional-chaining/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "@babel/plugin-transform-optional-chaining", - "version": "7.28.5", - "description": "Transform optional chaining operators into a series of nil checks", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-optional-chaining" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-optional-chaining", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.28.5", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/plugin-transform-block-scoping": "^7.28.5", - "@babel/traverse": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-parameters/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-parameters/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-parameters/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-parameters/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-parameters/README.md deleted file mode 100644 index e0541a83..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-parameters/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-parameters - -> Compile ES2015 default and rest parameters to ES5 - -See our website [@babel/plugin-transform-parameters](https://babeljs.io/docs/babel-plugin-transform-parameters) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-parameters -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-parameters --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-parameters/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-parameters/package.json deleted file mode 100644 index cc35426b..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-parameters/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@babel/plugin-transform-parameters", - "version": "7.27.7", - "description": "Compile ES2015 default and rest parameters to ES5", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-parameters" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-parameters", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "keywords": [ - "babel-plugin" - ], - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.7", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-private-methods/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-private-methods/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-private-methods/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-private-methods/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-private-methods/README.md deleted file mode 100644 index c7ef0a4a..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-private-methods/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-private-methods - -> This plugin transforms private class methods - -See our website [@babel/plugin-transform-private-methods](https://babeljs.io/docs/babel-plugin-transform-private-methods) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-private-methods -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-private-methods --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-private-methods/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-private-methods/package.json deleted file mode 100644 index 38f561c1..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-private-methods/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "@babel/plugin-transform-private-methods", - "version": "7.27.1", - "description": "This plugin transforms private class methods", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-private-methods" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-private-methods", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-private-property-in-object/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-private-property-in-object/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-private-property-in-object/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-private-property-in-object/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-private-property-in-object/README.md deleted file mode 100644 index 59a234da..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-private-property-in-object/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-private-property-in-object - -> This plugin transforms checks for a private property in an object - -See our website [@babel/plugin-transform-private-property-in-object](https://babeljs.io/docs/babel-plugin-transform-private-property-in-object) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-private-property-in-object -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-private-property-in-object --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-private-property-in-object/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-private-property-in-object/package.json deleted file mode 100644 index 2228cb22..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-private-property-in-object/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "@babel/plugin-transform-private-property-in-object", - "version": "7.27.1", - "description": "This plugin transforms checks for a private property in an object", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-private-property-in-object" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-private-property-in-object", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.27.1", - "@babel/helper-create-class-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-property-literals/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-property-literals/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-property-literals/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-property-literals/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-property-literals/README.md deleted file mode 100644 index 8e490aba..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-property-literals/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-property-literals - -> Ensure that reserved words are quoted in object property keys - -See our website [@babel/plugin-transform-property-literals](https://babeljs.io/docs/babel-plugin-transform-property-literals) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-property-literals -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-property-literals --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-property-literals/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-property-literals/package.json deleted file mode 100644 index 4b0a3a29..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-property-literals/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@babel/plugin-transform-property-literals", - "version": "7.27.1", - "description": "Ensure that reserved words are quoted in object property keys", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-property-literals" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-property-literals", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-regenerator/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-regenerator/LICENSE deleted file mode 100644 index 79267c5e..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-regenerator/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors -Copyright (c) 2014-present Facebook, Inc. - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-regenerator/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-regenerator/README.md deleted file mode 100644 index 0b1fedd9..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-regenerator/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-regenerator - -> Explode async and generator functions into a state machine. - -See our website [@babel/plugin-transform-regenerator](https://babeljs.io/docs/babel-plugin-transform-regenerator) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-regenerator -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-regenerator --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-regenerator/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-regenerator/package.json deleted file mode 100644 index 81e645dc..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-regenerator/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "@babel/plugin-transform-regenerator", - "author": "The Babel Team (https://babel.dev/team)", - "description": "Explode async and generator functions into a state machine.", - "version": "7.28.4", - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-regenerator", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-regenerator" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.28.4", - "@babel/helper-check-duplicate-nodes": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/plugin-proposal-function-sent": "^7.27.1", - "@babel/plugin-transform-arrow-functions": "^7.27.1", - "@babel/plugin-transform-block-scoping": "^7.28.4", - "@babel/plugin-transform-classes": "^7.28.4", - "@babel/plugin-transform-for-of": "^7.27.1", - "@babel/plugin-transform-modules-commonjs": "^7.27.1", - "@babel/plugin-transform-parameters": "^7.27.7", - "@babel/plugin-transform-runtime": "^7.28.3", - "babel-plugin-polyfill-regenerator": "^0.6.5", - "mocha": "^10.0.0", - "recast": "^0.23.3", - "uglify-js": "^3.14.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-regexp-modifiers/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-regexp-modifiers/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-regexp-modifiers/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-regexp-modifiers/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-regexp-modifiers/README.md deleted file mode 100644 index f3b8723f..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-regexp-modifiers/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-regexp-modifiers - -> Compile inline regular expression modifiers - -See our website [@babel/plugin-transform-regexp-modifiers](https://babeljs.io/docs/babel-plugin-transform-regexp-modifiers) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-regexp-modifiers -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-regexp-modifiers --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-regexp-modifiers/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-regexp-modifiers/package.json deleted file mode 100644 index 30c2c4cb..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-regexp-modifiers/package.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "@babel/plugin-transform-regexp-modifiers", - "version": "7.27.1", - "description": "Compile inline regular expression modifiers", - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-regexp-modifiers", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin", - "regex", - "regexp", - "regular expressions" - ], - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-regexp-modifiers" - }, - "bugs": "https://github.com/babel/babel/issues", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - }, - "devDependencies": { - "@babel/core": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "exports": { - ".": { - "types": "./lib/index.d.ts", - "default": "./lib/index.js" - }, - "./package.json": "./package.json" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-reserved-words/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-reserved-words/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-reserved-words/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-reserved-words/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-reserved-words/README.md deleted file mode 100644 index ff4b776e..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-reserved-words/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-reserved-words - -> Ensure that no reserved words are used. - -See our website [@babel/plugin-transform-reserved-words](https://babeljs.io/docs/babel-plugin-transform-reserved-words) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-reserved-words -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-reserved-words --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-reserved-words/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-reserved-words/package.json deleted file mode 100644 index 76ca29d5..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-reserved-words/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@babel/plugin-transform-reserved-words", - "version": "7.27.1", - "description": "Ensure that no reserved words are used.", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-reserved-words" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-reserved-words", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-shorthand-properties/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-shorthand-properties/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-shorthand-properties/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-shorthand-properties/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-shorthand-properties/README.md deleted file mode 100644 index 39f34291..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-shorthand-properties/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-shorthand-properties - -> Compile ES2015 shorthand properties to ES5 - -See our website [@babel/plugin-transform-shorthand-properties](https://babeljs.io/docs/babel-plugin-transform-shorthand-properties) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-shorthand-properties -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-shorthand-properties --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-shorthand-properties/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-shorthand-properties/package.json deleted file mode 100644 index 84656c24..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-shorthand-properties/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@babel/plugin-transform-shorthand-properties", - "version": "7.27.1", - "description": "Compile ES2015 shorthand properties to ES5", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-shorthand-properties" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-shorthand-properties", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-spread/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-spread/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-spread/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-spread/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-spread/README.md deleted file mode 100644 index c964617f..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-spread/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-spread - -> Compile ES2015 spread to ES5 - -See our website [@babel/plugin-transform-spread](https://babeljs.io/docs/babel-plugin-transform-spread) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-spread -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-spread --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-spread/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-spread/package.json deleted file mode 100644 index 0df679ac..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-spread/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "@babel/plugin-transform-spread", - "version": "7.27.1", - "description": "Compile ES2015 spread to ES5", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-spread" - }, - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-spread", - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-sticky-regex/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-sticky-regex/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-sticky-regex/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-sticky-regex/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-sticky-regex/README.md deleted file mode 100644 index 16c9fe29..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-sticky-regex/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-sticky-regex - -> Compile ES2015 sticky regex to an ES5 RegExp constructor - -See our website [@babel/plugin-transform-sticky-regex](https://babeljs.io/docs/babel-plugin-transform-sticky-regex) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-sticky-regex -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-sticky-regex --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-sticky-regex/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-sticky-regex/package.json deleted file mode 100644 index 06609df5..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-sticky-regex/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@babel/plugin-transform-sticky-regex", - "version": "7.27.1", - "description": "Compile ES2015 sticky regex to an ES5 RegExp constructor", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-sticky-regex" - }, - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-sticky-regex", - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-template-literals/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-template-literals/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-template-literals/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-template-literals/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-template-literals/README.md deleted file mode 100644 index c4441a16..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-template-literals/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-template-literals - -> Compile ES2015 template literals to ES5 - -See our website [@babel/plugin-transform-template-literals](https://babeljs.io/docs/babel-plugin-transform-template-literals) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-template-literals -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-template-literals --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-template-literals/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-template-literals/package.json deleted file mode 100644 index 55d90283..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-template-literals/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@babel/plugin-transform-template-literals", - "version": "7.27.1", - "description": "Compile ES2015 template literals to ES5", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-template-literals" - }, - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "keywords": [ - "babel-plugin" - ], - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-template-literals", - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-typeof-symbol/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-typeof-symbol/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-typeof-symbol/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-typeof-symbol/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-typeof-symbol/README.md deleted file mode 100644 index 60eb36aa..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-typeof-symbol/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-typeof-symbol - -> This transformer wraps all typeof expressions with a method that replicates native behaviour. (ie. returning “symbol” for symbols) - -See our website [@babel/plugin-transform-typeof-symbol](https://babeljs.io/docs/babel-plugin-transform-typeof-symbol) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-typeof-symbol -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-typeof-symbol --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-typeof-symbol/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-typeof-symbol/package.json deleted file mode 100644 index b9a2a3eb..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-typeof-symbol/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "@babel/plugin-transform-typeof-symbol", - "version": "7.27.1", - "description": "This transformer wraps all typeof expressions with a method that replicates native behaviour. (ie. returning “symbol” for symbols)", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-typeof-symbol" - }, - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/runtime": "^7.27.1", - "@babel/runtime-corejs2": "^7.24.0", - "@babel/runtime-corejs3": "^7.27.1" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-typeof-symbol", - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-escapes/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-escapes/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-escapes/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-escapes/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-escapes/README.md deleted file mode 100644 index 5bfb0729..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-escapes/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-unicode-escapes - -> Compile ES2015 Unicode escapes to ES5 - -See our website [@babel/plugin-transform-unicode-escapes](https://babeljs.io/docs/babel-plugin-transform-unicode-escapes) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-unicode-escapes -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-unicode-escapes --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-escapes/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-escapes/package.json deleted file mode 100644 index bbf3fbbe..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-escapes/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "@babel/plugin-transform-unicode-escapes", - "version": "7.27.1", - "description": "Compile ES2015 Unicode escapes to ES5", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-unicode-escapes" - }, - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-unicode-escapes", - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-property-regex/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-property-regex/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-property-regex/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-property-regex/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-property-regex/README.md deleted file mode 100644 index 5f4b4149..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-property-regex/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-unicode-property-regex - -> Compile Unicode property escapes in Unicode regular expressions to ES5. - -See our website [@babel/plugin-transform-unicode-property-regex](https://babeljs.io/docs/babel-plugin-transform-unicode-property-regex) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-unicode-property-regex -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-unicode-property-regex --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-property-regex/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-property-regex/package.json deleted file mode 100644 index b4e301a1..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-property-regex/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@babel/plugin-transform-unicode-property-regex", - "version": "7.27.1", - "description": "Compile Unicode property escapes in Unicode regular expressions to ES5.", - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-unicode-property-regex", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "engines": { - "node": ">=6.9.0" - }, - "keywords": [ - "babel-plugin", - "regex", - "regexp", - "regular expressions", - "unicode properties", - "unicode" - ], - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-unicode-property-regex" - }, - "bugs": "https://github.com/babel/babel/issues", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-regex/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-regex/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-regex/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-regex/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-regex/README.md deleted file mode 100644 index 606f039b..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-regex/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-unicode-regex - -> Compile ES2015 Unicode regex to ES5 - -See our website [@babel/plugin-transform-unicode-regex](https://babeljs.io/docs/babel-plugin-transform-unicode-regex) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-unicode-regex -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-unicode-regex --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-regex/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-regex/package.json deleted file mode 100644 index c9abb95a..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-regex/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "@babel/plugin-transform-unicode-regex", - "version": "7.27.1", - "description": "Compile ES2015 Unicode regex to ES5", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-unicode-regex" - }, - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-unicode-regex", - "engines": { - "node": ">=6.9.0" - }, - "author": "The Babel Team (https://babel.dev/team)", - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-sets-regex/LICENSE b/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-sets-regex/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-sets-regex/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-sets-regex/README.md b/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-sets-regex/README.md deleted file mode 100644 index 67d59dce..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-sets-regex/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-transform-unicode-sets-regex - -> Compile regular expressions' unicodeSets (v) flag. - -See our website [@babel/plugin-transform-unicode-sets-regex](https://babeljs.io/docs/babel-plugin-transform-unicode-sets-regex) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-transform-unicode-sets-regex -``` - -or using yarn: - -```sh -yarn add @babel/plugin-transform-unicode-sets-regex --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-sets-regex/package.json b/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-sets-regex/package.json deleted file mode 100644 index 645ef9b6..00000000 --- a/build_vtk_bundle/node_modules/@babel/plugin-transform-unicode-sets-regex/package.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "@babel/plugin-transform-unicode-sets-regex", - "version": "7.27.1", - "description": "Compile regular expressions' unicodeSets (v) flag.", - "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-unicode-sets-regex", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "./lib/index.js", - "keywords": [ - "babel-plugin", - "regex", - "regexp", - "unicode", - "sets", - "properties", - "property", - "string", - "strings", - "regular expressions" - ], - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-plugin-transform-unicode-sets-regex" - }, - "bugs": "https://github.com/babel/babel/issues", - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.27.1", - "@babel/helper-plugin-utils": "^7.27.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - }, - "devDependencies": { - "@babel/core": "^7.27.1", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "author": "The Babel Team (https://babel.dev/team)", - "exports": { - ".": { - "types": "./lib/index.d.ts", - "default": "./lib/index.js" - }, - "./package.json": "./package.json" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/preset-env/CONTRIBUTING.md b/build_vtk_bundle/node_modules/@babel/preset-env/CONTRIBUTING.md deleted file mode 100644 index 53fc57b6..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-env/CONTRIBUTING.md +++ /dev/null @@ -1,94 +0,0 @@ -# Contributing - -## Adding a new plugin or polyfill to support (when approved in the next ECMAScript version) - -### Update [`plugin-features.js`](https://github.com/babel/babel/blob/main/packages/babel-compat-data/scripts/data/plugin-features.js) - -*Example:* - -If you were going to add `**` which is in ES2016: - -Find the relevant entries on [compat-table](https://kangax.github.io/compat-table/es2016plus/#test-exponentiation_(**)_operator): - -`exponentiation (**) operator` - -Find the corresponding babel plugin: - -`@babel/plugin-transform-exponentiation-operator` - -And add them in this structure: - -```js -// es2016 -"@babel/plugin-transform-exponentiation-operator": { - features: [ - "exponentiation (**) operator", - ], -}, -``` - -### Update data for `core-js@2` polyfilling - -*Example:* - -In case you want to add `Object.values` which is in ES2017: - -Find the relevant feature and subfeature on [compat-table](https://kangax.github.io/compat-table/es2016plus/#test-Object_static_methods_Object.values) -and split it with `/`: - -`Object static methods / Object.values` - -Find the corresponding module on [`core-js@2`](https://github.com/zloirock/core-js/tree/v2/modules): - -`es7.object.values.js` - -Find required ES version in [`corejs2-built-in-features.js`](https://github.com/babel/babel/blob/main/packages/babel-preset-env/data/corejs2-built-in-features.js) and add the new feature: - -```js -const es = { - //... - "es7.object.values": "Object static methods / Object.values" -} -``` - -If you want to transform a new built-in by `useBuiltIns: 'usage'`, add mapping to related `core-js` modules to [this file](https://github.com/babel/babel/blob/main/packages/babel-preset-env/polyfills/corejs2/built-in-definitions.js). - -### Update data for `core-js@3` polyfilling - -Just update the version of [`core-js-compat`](https://github.com/zloirock/core-js/tree/main/packages/core-js-compat) in dependencies. - -If you want to transform a new built-in by `useBuiltIns: 'usage'`, add mapping to related [`core-js`](https://github.com/zloirock/core-js/tree/main/packages/core-js/modules) modules to [this file](https://github.com/babel/babel/blob/main/packages/babel-preset-env/polyfills/corejs3/built-in-definitions.js). - -If you want to mark a new proposal as shipped, add it to [this list](https://github.com/babel/babel/blob/main/packages/babel-preset-env/polyfills/corejs3/shipped-proposals.js). - -### Update [`plugins.json`](https://github.com/babel/babel/blob/main/packages/babel-preset-env/data/plugins.json) - -Until `compat-table` is a standalone npm module for data we are using the git commit in `packages/babel-compat-data/scripts/download-compat-table.sh` - -`COMPAT_TABLE_COMMIT=[latest-commit-hash]`, - -So we update and then run `npm run build-data`. If there are no changes, then `plugins.json` will be the same. - -## Tests - -### Running tests -See general [CONTRIBUTING.md](https://github.com/babel/babel/blob/main/CONTRIBUTING.md#running-lintingtests). - -### Writing tests - -#### General - -All the tests for `@babel/preset-env` exist in the `test/fixtures` folder. The -test setup and conventions are exactly the same as testing a Babel plugin, so -please read our [documentation on writing tests](https://github.com/babel/babel/blob/main/CONTRIBUTING.md#babel-plugin-x). - -#### Testing the `debug` option - -Testing debug output to `stdout` is similar. Under the `test/debug-fixtures`, -create a folder with a descriptive name of your test, and add the following: - -* Add a `options.json` file (just as the other tests, this is essentially a -`.babelrc`) with the desired test configuration (required) -* Add a `stdout.txt` file with the expected debug output. For added -convenience, if there is no `stdout.txt` present, the test runner will -generate one for you. diff --git a/build_vtk_bundle/node_modules/@babel/preset-env/LICENSE b/build_vtk_bundle/node_modules/@babel/preset-env/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-env/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/preset-env/README.md b/build_vtk_bundle/node_modules/@babel/preset-env/README.md deleted file mode 100644 index 159c37b1..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-env/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/preset-env - -> A Babel preset for each environment. - -See our website [@babel/preset-env](https://babeljs.io/docs/babel-preset-env) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20preset-env%22+is%3Aopen) associated with this package. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/preset-env -``` - -or using yarn: - -```sh -yarn add @babel/preset-env --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/preset-env/data/built-in-modules.js b/build_vtk_bundle/node_modules/@babel/preset-env/data/built-in-modules.js deleted file mode 100644 index 161ddb8e..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-env/data/built-in-modules.js +++ /dev/null @@ -1,3 +0,0 @@ -// TODO: Remove in Babel 8 - -module.exports = require("@babel/compat-data/native-modules"); diff --git a/build_vtk_bundle/node_modules/@babel/preset-env/data/built-in-modules.json.js b/build_vtk_bundle/node_modules/@babel/preset-env/data/built-in-modules.json.js deleted file mode 100644 index 161ddb8e..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-env/data/built-in-modules.json.js +++ /dev/null @@ -1,3 +0,0 @@ -// TODO: Remove in Babel 8 - -module.exports = require("@babel/compat-data/native-modules"); diff --git a/build_vtk_bundle/node_modules/@babel/preset-env/data/built-ins.js b/build_vtk_bundle/node_modules/@babel/preset-env/data/built-ins.js deleted file mode 100644 index 38f8a09a..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-env/data/built-ins.js +++ /dev/null @@ -1,4 +0,0 @@ -// TODO: Remove in Babel 8 -// https://github.com/vuejs/vue-cli/issues/3671 - -module.exports = require("./corejs2-built-ins.json"); diff --git a/build_vtk_bundle/node_modules/@babel/preset-env/data/built-ins.json.js b/build_vtk_bundle/node_modules/@babel/preset-env/data/built-ins.json.js deleted file mode 100644 index 38f8a09a..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-env/data/built-ins.json.js +++ /dev/null @@ -1,4 +0,0 @@ -// TODO: Remove in Babel 8 -// https://github.com/vuejs/vue-cli/issues/3671 - -module.exports = require("./corejs2-built-ins.json"); diff --git a/build_vtk_bundle/node_modules/@babel/preset-env/data/core-js-compat.js b/build_vtk_bundle/node_modules/@babel/preset-env/data/core-js-compat.js deleted file mode 100644 index cbfc4a0e..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-env/data/core-js-compat.js +++ /dev/null @@ -1,3 +0,0 @@ -// TODO: Remove in Babel 8 - -module.exports = require("core-js-compat/data.json"); diff --git a/build_vtk_bundle/node_modules/@babel/preset-env/data/corejs2-built-ins.js b/build_vtk_bundle/node_modules/@babel/preset-env/data/corejs2-built-ins.js deleted file mode 100644 index 486f3b1e..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-env/data/corejs2-built-ins.js +++ /dev/null @@ -1,3 +0,0 @@ -// TODO: Remove in Babel 8 - -module.exports = require("@babel/compat-data/corejs2-built-ins"); diff --git a/build_vtk_bundle/node_modules/@babel/preset-env/data/corejs2-built-ins.json.js b/build_vtk_bundle/node_modules/@babel/preset-env/data/corejs2-built-ins.json.js deleted file mode 100644 index 486f3b1e..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-env/data/corejs2-built-ins.json.js +++ /dev/null @@ -1,3 +0,0 @@ -// TODO: Remove in Babel 8 - -module.exports = require("@babel/compat-data/corejs2-built-ins"); diff --git a/build_vtk_bundle/node_modules/@babel/preset-env/data/package.json b/build_vtk_bundle/node_modules/@babel/preset-env/data/package.json deleted file mode 100644 index 6acf458e..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-env/data/package.json +++ /dev/null @@ -1 +0,0 @@ -{ "type": "commonjs" } \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/preset-env/data/plugins.js b/build_vtk_bundle/node_modules/@babel/preset-env/data/plugins.js deleted file mode 100644 index b5d6b436..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-env/data/plugins.js +++ /dev/null @@ -1,3 +0,0 @@ -// TODO: Remove in Babel 8 - -module.exports = require("@babel/compat-data/plugins"); diff --git a/build_vtk_bundle/node_modules/@babel/preset-env/data/plugins.json.js b/build_vtk_bundle/node_modules/@babel/preset-env/data/plugins.json.js deleted file mode 100644 index b5d6b436..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-env/data/plugins.json.js +++ /dev/null @@ -1,3 +0,0 @@ -// TODO: Remove in Babel 8 - -module.exports = require("@babel/compat-data/plugins"); diff --git a/build_vtk_bundle/node_modules/@babel/preset-env/data/shipped-proposals.js b/build_vtk_bundle/node_modules/@babel/preset-env/data/shipped-proposals.js deleted file mode 100644 index e38ffacd..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-env/data/shipped-proposals.js +++ /dev/null @@ -1,4 +0,0 @@ -// TODO: Remove in Babel 8 - -const { pluginSyntaxMap, proposalPlugins, proposalSyntaxPlugins } = require("../lib/shipped-proposals"); -module.exports = { pluginSyntaxMap, proposalPlugins, proposalSyntaxPlugins }; diff --git a/build_vtk_bundle/node_modules/@babel/preset-env/data/unreleased-labels.js b/build_vtk_bundle/node_modules/@babel/preset-env/data/unreleased-labels.js deleted file mode 100644 index 112d8599..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-env/data/unreleased-labels.js +++ /dev/null @@ -1,3 +0,0 @@ -// TODO: Remove in Babel 8 - -module.exports = require("@babel/helper-compilation-targets").unreleasedLabels; diff --git a/build_vtk_bundle/node_modules/@babel/preset-env/package.json b/build_vtk_bundle/node_modules/@babel/preset-env/package.json deleted file mode 100644 index e6cb945e..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-env/package.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "name": "@babel/preset-env", - "version": "7.28.5", - "description": "A Babel preset for each environment.", - "author": "The Babel Team (https://babel.dev/team)", - "homepage": "https://babel.dev/docs/en/next/babel-preset-env", - "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20preset-env%22+is%3Aopen", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-preset-env" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/compat-data": "^7.28.5", - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-plugin-utils": "^7.27.1", - "@babel/helper-validator-option": "^7.27.1", - "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.28.5", - "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.27.1", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.27.1", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.27.1", - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.28.3", - "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", - "@babel/plugin-syntax-import-assertions": "^7.27.1", - "@babel/plugin-syntax-import-attributes": "^7.27.1", - "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.27.1", - "@babel/plugin-transform-async-generator-functions": "^7.28.0", - "@babel/plugin-transform-async-to-generator": "^7.27.1", - "@babel/plugin-transform-block-scoped-functions": "^7.27.1", - "@babel/plugin-transform-block-scoping": "^7.28.5", - "@babel/plugin-transform-class-properties": "^7.27.1", - "@babel/plugin-transform-class-static-block": "^7.28.3", - "@babel/plugin-transform-classes": "^7.28.4", - "@babel/plugin-transform-computed-properties": "^7.27.1", - "@babel/plugin-transform-destructuring": "^7.28.5", - "@babel/plugin-transform-dotall-regex": "^7.27.1", - "@babel/plugin-transform-duplicate-keys": "^7.27.1", - "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.27.1", - "@babel/plugin-transform-dynamic-import": "^7.27.1", - "@babel/plugin-transform-explicit-resource-management": "^7.28.0", - "@babel/plugin-transform-exponentiation-operator": "^7.28.5", - "@babel/plugin-transform-export-namespace-from": "^7.27.1", - "@babel/plugin-transform-for-of": "^7.27.1", - "@babel/plugin-transform-function-name": "^7.27.1", - "@babel/plugin-transform-json-strings": "^7.27.1", - "@babel/plugin-transform-literals": "^7.27.1", - "@babel/plugin-transform-logical-assignment-operators": "^7.28.5", - "@babel/plugin-transform-member-expression-literals": "^7.27.1", - "@babel/plugin-transform-modules-amd": "^7.27.1", - "@babel/plugin-transform-modules-commonjs": "^7.27.1", - "@babel/plugin-transform-modules-systemjs": "^7.28.5", - "@babel/plugin-transform-modules-umd": "^7.27.1", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.27.1", - "@babel/plugin-transform-new-target": "^7.27.1", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.27.1", - "@babel/plugin-transform-numeric-separator": "^7.27.1", - "@babel/plugin-transform-object-rest-spread": "^7.28.4", - "@babel/plugin-transform-object-super": "^7.27.1", - "@babel/plugin-transform-optional-catch-binding": "^7.27.1", - "@babel/plugin-transform-optional-chaining": "^7.28.5", - "@babel/plugin-transform-parameters": "^7.27.7", - "@babel/plugin-transform-private-methods": "^7.27.1", - "@babel/plugin-transform-private-property-in-object": "^7.27.1", - "@babel/plugin-transform-property-literals": "^7.27.1", - "@babel/plugin-transform-regenerator": "^7.28.4", - "@babel/plugin-transform-regexp-modifiers": "^7.27.1", - "@babel/plugin-transform-reserved-words": "^7.27.1", - "@babel/plugin-transform-shorthand-properties": "^7.27.1", - "@babel/plugin-transform-spread": "^7.27.1", - "@babel/plugin-transform-sticky-regex": "^7.27.1", - "@babel/plugin-transform-template-literals": "^7.27.1", - "@babel/plugin-transform-typeof-symbol": "^7.27.1", - "@babel/plugin-transform-unicode-escapes": "^7.27.1", - "@babel/plugin-transform-unicode-property-regex": "^7.27.1", - "@babel/plugin-transform-unicode-regex": "^7.27.1", - "@babel/plugin-transform-unicode-sets-regex": "^7.27.1", - "@babel/preset-modules": "0.1.6-no-external-plugins", - "babel-plugin-polyfill-corejs2": "^0.4.14", - "babel-plugin-polyfill-corejs3": "^0.13.0", - "babel-plugin-polyfill-regenerator": "^0.6.5", - "core-js-compat": "^3.43.0", - "semver": "^6.3.1" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - }, - "devDependencies": { - "@babel/core": "^7.28.5", - "@babel/core-7.12": "npm:@babel/core@7.12.9", - "@babel/helper-plugin-test-runner": "^7.27.1", - "@babel/traverse": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/preset-modules/LICENSE b/build_vtk_bundle/node_modules/@babel/preset-modules/LICENSE deleted file mode 100644 index d83eaafe..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-modules/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2020 Babel - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/preset-modules/README.md b/build_vtk_bundle/node_modules/@babel/preset-modules/README.md deleted file mode 100644 index eb7517c5..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-modules/README.md +++ /dev/null @@ -1,171 +0,0 @@ -# `@babel/preset-modules` - -> ℹ️ Starting from `@babel/preset-env` 7.9.0, you can enable the [`bugfixes: true` option](https://babeljs.io/docs/en/babel-preset-env#bugfixes) to get the same behavior as using `@babel/preset-modules`, but with support for custom `targets`. -> If you need to target browsers with native modules support (like this preset does), you can use `targets: { esmodules: true }`. - -A Babel preset that enables async/await, Tagged Templates, arrow functions, destructured and rest parameters, and more **in all modern browsers** ([88% of traffic](https://caniuse.com/#feat=es6-module)). - -It works around bugs and inconsistencies in modern JavaScript engines by converting broken syntax to the _closest non-broken modern syntax_. Use this in place of `@babel/preset-env`'s [target.esmodules](https://babeljs.io/docs/en/babel-preset-env#targetsesmodules) option for smaller bundle size and improved performance. - -This preset is only useful for browsers. You can serve the output to modern browsers while still supporting older browsers using the [module/nomodule pattern](https://philipwalton.com/articles/deploying-es2015-code-in-production-today/): - -```html - - - - -``` - -### Features Supported - -- JSX spread attributes are compiled to Object.assign() instead of a helper. -- Default, destructured and optional parameters are all natively supported. -- Tagged Templates are fully supported, patched for Safari 10+ and Edge 16+. -- async/await is supported without being transpiled to generators. -- Function name inference works as expected, including Arrow Functions. - -### Installation & Usage - -Install the preset from [npm](https://www.npmjs.com/package/@babel/preset-modules): - -```sh -npm install @babel/preset-modules --save-dev -``` - -To use the preset, add it to your [Babel Configuration](https://babeljs.io/docs/en/configuration): - -```js -{ - "presets": [ - "@babel/preset-modules" - ] -} -``` - -If you're implementing the module/nomodule pattern, your configuration might look something like this: - -```js -{ - "env": { - "modern": { - "presets": [ - "@babel/preset-modules" - ] - }, - "legacy": { - "presets": [ - "@babel/preset-env" - ] - } - } -} -``` - -### Options - -There's a single Boolean `loose` option, which defaults to `false`. Passing `true` further reduces output size. - -The `loose` setting turns off a rarely-needed function name workaround for older versions of Edge. If you're not relying on `Function.prototype.name`, it's worth enabling loose mode. - -### How does it work? - -Babel’s `preset-env` is great, since it lets you define which Babel features are needed based on a browser support target. In order to make that plumbing work automatically, the preset has configuration that groups all of the new JavaScript syntax features into collections of related syntax transforms. These groups are fairly large, for example "function arguments" includes destructured, default and rest parameters. The groupings come from the fact that Babel’s transforms often rely on other transforms, so they can’t always be applied in isolation. - -From this grouping information, Babel enables or disables each group based on the browser support target you specify to preset-env’s [targets](https://babeljs.io/docs/en/babel-preset-env#targets) option. For modern output, the [targets.esmodules](https://babeljs.io/docs/en/babel-preset-env#targetsesmodules) option is effectively an alias for the set of browsers that support ES Modules: Edge 16+, Safari 10.1+, Firefox 60+ and Chrome 61+. - -Here's the problem: if any version of any browser in that list contains a bug triggered by modern syntax, the only solution we have is to enable the corresponding transform group that fixes that bug. This means that fundamentally, preset-env converts code to ES5 in order to get around syntax bugs in ES2017. Since that's the only solution at our disposal, eventually it becomes overused. - -For example, all of the new syntax features relating to function parameters are grouped into the same Babel plugin (`@babel/plugin-transform-function-parameters`). That means because Edge 16 & 17 support ES Modules but have a bug related to parsing shorthand destructured parameters with default values within arrow functions, all functions get compiled from the new compact argument syntaxes down to ES5: - -```js -// this breaks in Edge 16: -const foo = ({ a = 1 }) => {}; - -// .. but this doesn't: -function foo({ a = 1, b }, ...args) {} - -// ... and neither does this: -const foo = ({ a: a = 1 }) => {}; -``` - -In fact, there are 23 syntax improvements for function parameters in ES2017, and only one of them is broken in ES Modules-supporting browsers. It seems unfortunate to transpile all those great features down to ES5 just for one browser! - -This plugin takes a different approach than we've historically taken with JavaScript: it transpiles the broken syntax to the closest _non-broken modern syntax_. In the above case, here's what is generated to fix all ES Modules-supporting browsers: - -**input:** - -```js -const foo = ({ a = 1 }, b = 2, ...args) => [a,b,args]; -``` - -**output:** - -```js -const foo = ({ a: a = 1 }, b = 2, ...args) => [a,b,args]; -``` - -That output works in all ES Modules-supporting browsers, and is only **59 bytes** minified & gzipped. - -> Compare this to `@babel/preset-env`'s `targets.esmodules` output (**147 bytes** minified & gzipped): -> -> ```js ->const foo = function foo(_ref, b) { -> let { a = 1 } = _ref; -> -> if (b === void 0) { b = 2; } -> -> for ( -> var _len = arguments.length, -> args = new Array(_len > 2 ? _len - 2 : 0), -> _key = 2; _key < _len; _key++ -> ) { -> args[_key - 2] = arguments[_key]; -> } -> -> return [a, b, args]; ->}; ->```` - -The result is improved bundle size and performance, while supporting the same browsers. - - -### Important: Minification - -The output generated by this preset includes workarounds for Safari 10, however minifiers like Terser sometimes remove these workarounds. In order to avoid shipping broken code, it's important to tell Terser to preserve the workarounds, which can be done via the `safari10` option. - -It's also generally the case that minifiers are configured to output ES5 by default, so you'll want to change the output syntax to ES2017. - -With [Terser's Node API](https://github.com/terser/terser#minify-options): - -```js -terser.minify({ - ecma: 2017, - safari10: true -}) -``` - -With [Terser CLI](https://npm.im/terser): - -```sh -terser --ecma 2017 --safari10 ... -``` - -With [terser-webpack-plugin](https://webpack.js.org/plugins/terser-webpack-plugin/): - -```js -module.exports = { - optimization: { - minimizer: [ - new TerserPlugin({ - terserOptions: { - ecma: 2017, - safari10: true - } - }) - ] - } -}; -``` - -All of the above configurations also apply to [uglify-es](https://github.com/mishoo/UglifyJS2/tree/harmony). -UglifyJS (2.x and prior) does not support modern JavaScript, so it cannot be used in conjunction with this preset. diff --git a/build_vtk_bundle/node_modules/@babel/preset-modules/package.json b/build_vtk_bundle/node_modules/@babel/preset-modules/package.json deleted file mode 100644 index 76c97627..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-modules/package.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "name": "@babel/preset-modules", - "version": "0.1.6-no-external-plugins", - "description": "A Babel preset that targets modern browsers by fixing engine bugs.", - "main": "lib/index.js", - "license": "MIT", - "scripts": { - "start": "concurrently -r 'npm:watch:* -s'", - "build": "babel src -d lib --ignore '**/*.test.js'", - "test": "eslint src test && jest --colors", - "test:browser": "cd test/browser && karmatic --no-coverage --browsers chrome:headless,sauce-chrome-61,sauce-firefox-60,sauce-safari-10,sauce-safari-11,sauce-edge-16,sauce-edge-17 '**/*.js'", - "test:local": "cd test/browser && karmatic --no-coverage '**/*.js'", - "test:safari": "npm run test:local -- --browsers sauce-safari-10", - "test:edge": "npm run test:local -- --browsers sauce-edge-16", - "watch:test": "jest --watch", - "watch:build": "npm run -s build -- -w" - }, - "repository": { - "type": "git", - "url": "https://github.com/babel/preset-modules.git" - }, - "keywords": [ - "babel", - "preset", - "preset-env", - "modern", - "modules", - "ES Modules", - "module/nomodule" - ], - "files": [ - "src", - "lib" - ], - "lint-staged": { - "*.js": [ - "eslint --format=codeframe" - ] - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, - "jest": { - "testEnvironment": "node", - "roots": [ - "src", - "test" - ] - }, - "eslintConfig": { - "extends": "developit", - "rules": { - "no-console": 0, - "new-cap": 0 - } - }, - "eslintIgnore": [ - "test/fixtures/**/*", - "test/integration/**/*" - ], - "authors": [ - "Jason Miller " - ], - "peerDependencies": { - "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" - }, - "devDependencies": { - "@babel/cli": "^7.7.0", - "@babel/core": "^7.7.2", - "@babel/helper-fixtures": "^7.6.3", - "@babel/helper-plugin-test-runner": "^7.14.5", - "@babel/plugin-transform-modules-commonjs": "^7.5.0", - "@babel/plugin-transform-react-jsx": "^7.7.0", - "@babel/preset-env": "^7.9.6", - "acorn-jsx": "^5.0.1", - "babel-eslint": "^10.0.3", - "babel-plugin-add-module-exports": "^1.0.2", - "chalk": "^2.4.2", - "concurrently": "^4.1.0", - "eslint": "^6.6.0", - "eslint-config-babel": "^9.0.0", - "eslint-plugin-flowtype": "3", - "eslint-plugin-import": "^2.18.2", - "eslint-plugin-prettier": "^3.1.1", - "gzip-size": "^5.1.1", - "if-env": "^1.0.4", - "jest": "^24.8.0", - "karmatic": "^1.4.0", - "prettier": "^1.19.1", - "pretty-bytes": "^5.2.0", - "rollup": "^1.16.3", - "rollup-plugin-babel": "^4.3.3", - "rollup-plugin-node-resolve": "^5.2.0", - "terser": "^4.0.2", - "webpack": "^4.35.0" - }, - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - } -} diff --git a/build_vtk_bundle/node_modules/@babel/preset-modules/src/index.js b/build_vtk_bundle/node_modules/@babel/preset-modules/src/index.js deleted file mode 100644 index d2139897..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-modules/src/index.js +++ /dev/null @@ -1,26 +0,0 @@ -import path from "path"; -import { declare } from "@babel/helper-plugin-utils"; - -/** - * @babel/preset-modules produces clean, minimal output for ES Modules-supporting browsers. - * @param {Object} [options] - * @param {boolean} [options.loose=false] Loose mode skips seldom-needed transforms that increase output size. - */ -export default declare((api, opts) => { - api.assertVersion(7); - - const loose = opts.loose === true; - - return { - plugins: [ - path.resolve(__dirname, "./plugins/transform-edge-default-parameters"), - path.resolve(__dirname, "./plugins/transform-tagged-template-caching"), - path.resolve(__dirname, "./plugins/transform-jsx-spread"), - path.resolve(__dirname, "./plugins/transform-safari-for-shadowing"), - path.resolve(__dirname, "./plugins/transform-safari-block-shadowing"), - path.resolve(__dirname, "./plugins/transform-async-arrows-in-class"), - !loose && - path.resolve(__dirname, "./plugins/transform-edge-function-name"), - ].filter(Boolean), - }; -}); diff --git a/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-async-arrows-in-class/index.js b/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-async-arrows-in-class/index.js deleted file mode 100644 index b0594777..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-async-arrows-in-class/index.js +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Safari 10.3 had an issue where async arrow function expressions within any class method would throw. - * After an initial fix, any references to the instance via `this` within those methods would also throw. - * This is fixed by converting arrow functions in class methods into equivalent function expressions. - * @see https://bugs.webkit.org/show_bug.cgi?id=166879 - * - * @example - * class X{ a(){ async () => {}; } } // throws - * class X{ a(){ async function() {}; } } // works - * - * @example - * class X{ a(){ - * async () => this.a; // throws - * } } - * class X{ a(){ - * var _this=this; - * async function() { return _this.a }; // works - * } } - */ - -const OPTS = { - allowInsertArrow: false, - specCompliant: false, -}; - -export default ({ types: t }) => ({ - name: "transform-async-arrows-in-class", - visitor: { - ArrowFunctionExpression(path) { - if (path.node.async && path.findParent(t.isClassMethod)) { - path.arrowFunctionToExpression(OPTS); - } - }, - }, -}); diff --git a/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-edge-default-parameters/index.js b/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-edge-default-parameters/index.js deleted file mode 100644 index fff50f19..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-edge-default-parameters/index.js +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Converts destructured parameters with default values to non-shorthand syntax. - * This fixes the only arguments-related bug in ES Modules-supporting browsers (Edge 16 & 17). - * Use this plugin instead of @babel/plugin-transform-parameters when targeting ES Modules. - */ - -export default ({ types: t }) => { - const isArrowParent = p => - p.parentKey === "params" && - p.parentPath && - t.isArrowFunctionExpression(p.parentPath); - - return { - name: "transform-edge-default-parameters", - visitor: { - AssignmentPattern(path) { - const arrowArgParent = path.find(isArrowParent); - if (arrowArgParent && path.parent.shorthand) { - // In Babel 7+, there is no way to force non-shorthand properties. - path.parent.shorthand = false; - (path.parent.extra || {}).shorthand = false; - - // So, to ensure non-shorthand, rename the local identifier so it no longer matches: - path.scope.rename(path.parent.key.name); - } - }, - }, - }; -}; diff --git a/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-edge-function-name/index.js b/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-edge-function-name/index.js deleted file mode 100644 index f6873283..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-edge-function-name/index.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Edge 16 & 17 do not infer function.name from variable assignment. - * All other `function.name` behavior works fine, so we can skip most of @babel/transform-function-name. - * @see https://kangax.github.io/compat-table/es6/#test-function_name_property_variables_(function) - * - * Note: contrary to various Github issues, Edge 16+ *does* correctly infer the name of Arrow Functions. - * The variable declarator name inference issue only affects function expressions, so that's all we fix here. - * - * A Note on Minification: Terser undoes this transform *by default* unless `keep_fnames` is set to true. - * There is by design - if Function.name is critical to your application, you must configure - * your minifier to preserve function names. - */ - -export default ({ types: t }) => ({ - name: "transform-edge-function-name", - visitor: { - FunctionExpression: { - exit(path) { - if (!path.node.id && t.isIdentifier(path.parent.id)) { - const id = t.cloneNode(path.parent.id); - const binding = path.scope.getBinding(id.name); - // if the binding gets reassigned anywhere, rename it - if (binding?.constantViolations.length) { - path.scope.rename(id.name); - } - path.node.id = id; - } - }, - }, - }, -}); diff --git a/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-jsx-spread/index.js b/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-jsx-spread/index.js deleted file mode 100644 index ef015245..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-jsx-spread/index.js +++ /dev/null @@ -1,111 +0,0 @@ -import esutils from "esutils"; - -/** - * Converts JSX Spread arguments into Object Spread, avoiding Babel's helper or Object.assign injection. - * Input: - *
- * Output: - *
- * ...which Babel converts to: - * h("div", { a: "1", ...b }) - */ -export default ({ types: t }) => { - // converts a set of JSXAttributes to an Object.assign() call - function convertAttributesAssign(attributes) { - const args = []; - for (let i = 0, current; i < attributes.length; i++) { - const node = attributes[i]; - if (t.isJSXSpreadAttribute(node)) { - // the first attribute is a spread, avoid copying all other attributes onto it - if (i === 0) { - args.push(t.objectExpression([])); - } - current = null; - args.push(node.argument); - } else { - const name = getAttributeName(node); - const value = getAttributeValue(node); - if (!current) { - current = t.objectExpression([]); - args.push(current); - } - current.properties.push(t.objectProperty(name, value)); - } - } - return t.callExpression( - t.memberExpression(t.identifier("Object"), t.identifier("assign")), - args - ); - } - - // Converts a JSXAttribute to the equivalent ObjectExpression property - function convertAttributeSpread(node) { - if (t.isJSXSpreadAttribute(node)) { - return t.spreadElement(node.argument); - } - - const name = getAttributeName(node); - const value = getAttributeValue(node); - return t.inherits(t.objectProperty(name, value), node); - } - - // Convert a JSX attribute name to an Object expression property name - function getAttributeName(node) { - if (t.isJSXNamespacedName(node.name)) { - return t.stringLiteral( - node.name.namespace.name + ":" + node.name.name.name - ); - } - if (esutils.keyword.isIdentifierNameES6(node.name.name)) { - return t.identifier(node.name.name); - } - return t.stringLiteral(node.name.name); - } - - // Convert a JSX attribute value to a JavaScript expression value - function getAttributeValue(node) { - let value = node.value || t.booleanLiteral(true); - - if (t.isJSXExpressionContainer(value)) { - value = value.expression; - } else if (t.isStringLiteral(value)) { - value.value = value.value.replace(/\n\s+/g, " "); - - // "raw" JSXText should not be used from a StringLiteral because it needs to be escaped. - if (value.extra && value.extra.raw) { - delete value.extra.raw; - } - } - - return value; - } - - return { - name: "transform-jsx-spread", - visitor: { - JSXOpeningElement(path, state) { - const useSpread = state.opts.useSpread === true; - const hasSpread = path.node.attributes.some(attr => - t.isJSXSpreadAttribute(attr) - ); - - // ignore JSX Elements without spread or with lone spread: - if (!hasSpread || path.node.attributes.length === 1) return; - - if (useSpread) { - path.node.attributes = [ - t.jsxSpreadAttribute( - t.objectExpression( - path.node.attributes.map(convertAttributeSpread) - ) - ), - ]; - } else { - path.node.attributes = [ - t.jsxSpreadAttribute(convertAttributesAssign(path.node.attributes)), - ]; - } - }, - }, - }; -}; diff --git a/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-safari-block-shadowing/index.js b/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-safari-block-shadowing/index.js deleted file mode 100644 index f509c6b6..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-safari-block-shadowing/index.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Fixes block-shadowed let/const bindings in Safari 10/11. - * https://kangax.github.io/compat-table/es6/#test-let_scope_shadow_resolution - */ -export default function({ types: t }) { - return { - name: "transform-safari-block-shadowing", - visitor: { - VariableDeclarator(path) { - // the issue only affects let and const bindings: - const kind = path.parent.kind; - if (kind !== "let" && kind !== "const") return; - - // ignore non-block-scoped bindings: - const block = path.scope.block; - if (t.isFunction(block) || t.isProgram(block)) return; - - const bindings = t.getOuterBindingIdentifiers(path.node.id); - for (const name of Object.keys(bindings)) { - let scope = path.scope; - - // ignore parent bindings (note: impossible due to let/const?) - if (!scope.hasOwnBinding(name)) continue; - - // check if shadowed within the nearest function/program boundary - while ((scope = scope.parent)) { - if (scope.hasOwnBinding(name)) { - path.scope.rename(name); - break; - } - if (t.isFunction(scope.block) || t.isProgram(scope.block)) { - break; - } - } - } - }, - }, - }; -} diff --git a/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-safari-for-shadowing/index.js b/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-safari-for-shadowing/index.js deleted file mode 100644 index 83b4eafd..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-safari-for-shadowing/index.js +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Safari ~11 has an issue where variable declarations in a For statement throw if they shadow parameters. - * This is fixed by renaming any declarations in the left/init part of a For* statement so they don't shadow. - * @see https://bugs.webkit.org/show_bug.cgi?id=171041 - * - * @example - * e => { for (let e of []) e } // throws - * e => { for (let _e of []) _e } // works - */ - -function handle(declaration) { - if (!declaration.isVariableDeclaration()) return; - - const fn = declaration.getFunctionParent(); - const { name } = declaration.node.declarations[0].id; - - // check if there is a shadowed binding coming from a parameter - if ( - fn && - fn.scope.hasOwnBinding(name) && - fn.scope.getOwnBinding(name).kind === "param" - ) { - declaration.scope.rename(name); - } -} - -export default () => ({ - name: "transform-safari-for-shadowing", - visitor: { - ForXStatement(path) { - handle(path.get("left")); - }, - - ForStatement(path) { - handle(path.get("init")); - }, - }, -}); diff --git a/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-tagged-template-caching/index.js b/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-tagged-template-caching/index.js deleted file mode 100644 index 65d03999..00000000 --- a/build_vtk_bundle/node_modules/@babel/preset-modules/src/plugins/transform-tagged-template-caching/index.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Converts destructured parameters with default values to non-shorthand syntax. - * This fixes the only Tagged Templates-related bug in ES Modules-supporting browsers (Safari 10 & 11). - * Use this plugin instead of `@babel/plugin-transform-template-literals` when targeting ES Modules. - * - * @example - * // Bug 1: Safari 10/11 doesn't reliably return the same Strings value. - * // The value changes depending on invocation and function optimization state. - * function f() { return Object`` } - * f() === new f() // false, should be true. - * - * @example - * // Bug 2: Safari 10/11 use the same cached strings value when the string parts are the same. - * // This behavior comes from an earlier version of the spec, and can cause tricky bugs. - * Object``===Object`` // true, should be false. - * - * Benchmarks: https://jsperf.com/compiled-tagged-template-performance - */ -export default ({ types: t }) => ({ - name: "transform-tagged-template-caching", - visitor: { - TaggedTemplateExpression(path, state) { - // tagged templates we've already dealt with - let processed = state.get("processed"); - if (!processed) { - processed = new WeakSet(); - state.set("processed", processed); - } - - if (processed.has(path.node)) return path.skip(); - - // Grab the expressions from the original tag. - // tag`a${'hello'}` // ['hello'] - const expressions = path.node.quasi.expressions; - - // Create an identity function helper: - // identity = t => t - let identity = state.get("identity"); - if (!identity) { - identity = path.scope - .getProgramParent() - .generateDeclaredUidIdentifier("_"); - state.set("identity", identity); - const binding = path.scope.getBinding(identity.name); - binding.path.get("init").replaceWith( - t.arrowFunctionExpression( - // re-use the helper identifier for compressability - [t.identifier("t")], - t.identifier("t") - ) - ); - } - - // Use the identity function helper to get a reference to the template's Strings. - // We replace all expressions with `0` ensure Strings has the same shape. - // identity`a${0}` - const template = t.taggedTemplateExpression( - t.cloneNode(identity), - t.templateLiteral( - path.node.quasi.quasis, - expressions.map(() => t.numericLiteral(0)) - ) - ); - processed.add(template); - - // Install an inline cache at the callsite using the global variable: - // _t || (_t = identity`a${0}`) - const ident = path.scope - .getProgramParent() - .generateDeclaredUidIdentifier("t"); - path.scope.getBinding(ident.name).path.parent.kind = "let"; - const inlineCache = t.logicalExpression( - "||", - ident, - t.assignmentExpression("=", t.cloneNode(ident), template) - ); - - // The original tag function becomes a plain function call. - // The expressions omitted from the cached Strings tag are directly applied as arguments. - // tag(_t || (_t = Object`a${0}`), 'hello') - const node = t.callExpression(path.node.tag, [ - inlineCache, - ...expressions, - ]); - path.replaceWith(node); - }, - }, -}); diff --git a/build_vtk_bundle/node_modules/@babel/runtime/LICENSE b/build_vtk_bundle/node_modules/@babel/runtime/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/runtime/README.md b/build_vtk_bundle/node_modules/@babel/runtime/README.md deleted file mode 100644 index 2f3368ef..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/runtime - -> babel's modular runtime helpers - -See our website [@babel/runtime](https://babeljs.io/docs/babel-runtime) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/runtime -``` - -or using yarn: - -```sh -yarn add @babel/runtime -``` diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/AwaitValue.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/AwaitValue.js deleted file mode 100644 index 52a7e69a..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/AwaitValue.js +++ /dev/null @@ -1,4 +0,0 @@ -function _AwaitValue(t) { - this.wrapped = t; -} -module.exports = _AwaitValue, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/OverloadYield.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/OverloadYield.js deleted file mode 100644 index 0eca88c7..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/OverloadYield.js +++ /dev/null @@ -1,4 +0,0 @@ -function _OverloadYield(e, d) { - this.v = e, this.k = d; -} -module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js deleted file mode 100644 index 0ff780eb..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +++ /dev/null @@ -1,9 +0,0 @@ -function _applyDecoratedDescriptor(i, e, r, n, l) { - var a = {}; - return Object.keys(n).forEach(function (i) { - a[i] = n[i]; - }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { - return n(i, e, r) || r; - }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; -} -module.exports = _applyDecoratedDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecs.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecs.js deleted file mode 100644 index 3770c5ae..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecs.js +++ /dev/null @@ -1,236 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var setFunctionName = require("./setFunctionName.js"); -var toPropertyKey = require("./toPropertyKey.js"); -function old_createMetadataMethodsForProperty(e, t, a, r) { - return { - getMetadata: function getMetadata(o) { - old_assertNotFinished(r, "getMetadata"), old_assertMetadataKey(o); - var i = e[o]; - if (void 0 !== i) if (1 === t) { - var n = i["public"]; - if (void 0 !== n) return n[a]; - } else if (2 === t) { - var l = i["private"]; - if (void 0 !== l) return l.get(a); - } else if (Object.hasOwnProperty.call(i, "constructor")) return i.constructor; - }, - setMetadata: function setMetadata(o, i) { - old_assertNotFinished(r, "setMetadata"), old_assertMetadataKey(o); - var n = e[o]; - if (void 0 === n && (n = e[o] = {}), 1 === t) { - var l = n["public"]; - void 0 === l && (l = n["public"] = {}), l[a] = i; - } else if (2 === t) { - var s = n.priv; - void 0 === s && (s = n["private"] = new Map()), s.set(a, i); - } else n.constructor = i; - } - }; -} -function old_convertMetadataMapToFinal(e, t) { - var a = e[Symbol.metadata || Symbol["for"]("Symbol.metadata")], - r = Object.getOwnPropertySymbols(t); - if (0 !== r.length) { - for (var o = 0; o < r.length; o++) { - var i = r[o], - n = t[i], - l = a ? a[i] : null, - s = n["public"], - c = l ? l["public"] : null; - s && c && Object.setPrototypeOf(s, c); - var d = n["private"]; - if (d) { - var u = Array.from(d.values()), - f = l ? l["private"] : null; - f && (u = u.concat(f)), n["private"] = u; - } - l && Object.setPrototypeOf(n, l); - } - a && Object.setPrototypeOf(t, a), e[Symbol.metadata || Symbol["for"]("Symbol.metadata")] = t; - } -} -function old_createAddInitializerMethod(e, t) { - return function (a) { - old_assertNotFinished(t, "addInitializer"), old_assertCallable(a, "An initializer"), e.push(a); - }; -} -function old_memberDec(e, t, a, r, o, i, n, l, s) { - var c; - switch (i) { - case 1: - c = "accessor"; - break; - case 2: - c = "method"; - break; - case 3: - c = "getter"; - break; - case 4: - c = "setter"; - break; - default: - c = "field"; - } - var d, - u, - f = { - kind: c, - name: l ? "#" + t : toPropertyKey(t), - isStatic: n, - isPrivate: l - }, - p = { - v: !1 - }; - if (0 !== i && (f.addInitializer = old_createAddInitializerMethod(o, p)), l) { - d = 2, u = Symbol(t); - var v = {}; - 0 === i ? (v.get = a.get, v.set = a.set) : 2 === i ? v.get = function () { - return a.value; - } : (1 !== i && 3 !== i || (v.get = function () { - return a.get.call(this); - }), 1 !== i && 4 !== i || (v.set = function (e) { - a.set.call(this, e); - })), f.access = v; - } else d = 1, u = t; - try { - return e(s, Object.assign(f, old_createMetadataMethodsForProperty(r, d, u, p))); - } finally { - p.v = !0; - } -} -function old_assertNotFinished(e, t) { - if (e.v) throw Error("attempted to call " + t + " after decoration was finished"); -} -function old_assertMetadataKey(e) { - if ("symbol" != _typeof(e)) throw new TypeError("Metadata keys must be symbols, received: " + e); -} -function old_assertCallable(e, t) { - if ("function" != typeof e) throw new TypeError(t + " must be a function"); -} -function old_assertValidReturnValue(e, t) { - var a = _typeof(t); - if (1 === e) { - if ("object" !== a || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== t.get && old_assertCallable(t.get, "accessor.get"), void 0 !== t.set && old_assertCallable(t.set, "accessor.set"), void 0 !== t.init && old_assertCallable(t.init, "accessor.init"), void 0 !== t.initializer && old_assertCallable(t.initializer, "accessor.initializer"); - } else if ("function" !== a) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); -} -function old_getInit(e) { - var t; - return null == (t = e.init) && (t = e.initializer) && void 0 !== console && console.warn(".initializer has been renamed to .init as of March 2022"), t; -} -function old_applyMemberDec(e, t, a, r, o, i, n, l, s) { - var c, - d, - u, - f, - p, - v, - y, - h = a[0]; - if (n ? (0 === o || 1 === o ? (c = { - get: a[3], - set: a[4] - }, u = "get") : 3 === o ? (c = { - get: a[3] - }, u = "get") : 4 === o ? (c = { - set: a[3] - }, u = "set") : c = { - value: a[3] - }, 0 !== o && (1 === o && setFunctionName(a[4], "#" + r, "set"), setFunctionName(a[3], "#" + r, u))) : 0 !== o && (c = Object.getOwnPropertyDescriptor(t, r)), 1 === o ? f = { - get: c.get, - set: c.set - } : 2 === o ? f = c.value : 3 === o ? f = c.get : 4 === o && (f = c.set), "function" == typeof h) void 0 !== (p = old_memberDec(h, r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? d = p : 1 === o ? (d = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = { - get: v, - set: y - }) : f = p);else for (var m = h.length - 1; m >= 0; m--) { - var b; - void 0 !== (p = old_memberDec(h[m], r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? b = p : 1 === o ? (b = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = { - get: v, - set: y - }) : f = p, void 0 !== b && (void 0 === d ? d = b : "function" == typeof d ? d = [d, b] : d.push(b))); - } - if (0 === o || 1 === o) { - if (void 0 === d) d = function d(e, t) { - return t; - };else if ("function" != typeof d) { - var g = d; - d = function d(e, t) { - for (var a = t, r = 0; r < g.length; r++) a = g[r].call(e, a); - return a; - }; - } else { - var _ = d; - d = function d(e, t) { - return _.call(e, t); - }; - } - e.push(d); - } - 0 !== o && (1 === o ? (c.get = f.get, c.set = f.set) : 2 === o ? c.value = f : 3 === o ? c.get = f : 4 === o && (c.set = f), n ? 1 === o ? (e.push(function (e, t) { - return f.get.call(e, t); - }), e.push(function (e, t) { - return f.set.call(e, t); - })) : 2 === o ? e.push(f) : e.push(function (e, t) { - return f.call(e, t); - }) : Object.defineProperty(t, r, c)); -} -function old_applyMemberDecs(e, t, a, r, o) { - for (var i, n, l = new Map(), s = new Map(), c = 0; c < o.length; c++) { - var d = o[c]; - if (Array.isArray(d)) { - var u, - f, - p, - v = d[1], - y = d[2], - h = d.length > 3, - m = v >= 5; - if (m ? (u = t, f = r, 0 != (v -= 5) && (p = n = n || [])) : (u = t.prototype, f = a, 0 !== v && (p = i = i || [])), 0 !== v && !h) { - var b = m ? s : l, - g = b.get(y) || 0; - if (!0 === g || 3 === g && 4 !== v || 4 === g && 3 !== v) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + y); - !g && v > 2 ? b.set(y, v) : b.set(y, !0); - } - old_applyMemberDec(e, u, d, y, v, m, h, f, p); - } - } - old_pushInitializers(e, i), old_pushInitializers(e, n); -} -function old_pushInitializers(e, t) { - t && e.push(function (e) { - for (var a = 0; a < t.length; a++) t[a].call(e); - return e; - }); -} -function old_applyClassDecs(e, t, a, r) { - if (r.length > 0) { - for (var o = [], i = t, n = t.name, l = r.length - 1; l >= 0; l--) { - var s = { - v: !1 - }; - try { - var c = Object.assign({ - kind: "class", - name: n, - addInitializer: old_createAddInitializerMethod(o, s) - }, old_createMetadataMethodsForProperty(a, 0, n, s)), - d = r[l](i, c); - } finally { - s.v = !0; - } - void 0 !== d && (old_assertValidReturnValue(10, d), i = d); - } - e.push(i, function () { - for (var e = 0; e < o.length; e++) o[e].call(i); - }); - } -} -function applyDecs(e, t, a) { - var r = [], - o = {}, - i = {}; - return old_applyMemberDecs(r, e, i, o, t), old_convertMetadataMapToFinal(e.prototype, i), old_applyClassDecs(r, e, o, a), old_convertMetadataMapToFinal(e, o), r; -} -module.exports = applyDecs, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecs2203.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecs2203.js deleted file mode 100644 index 5af267c9..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecs2203.js +++ /dev/null @@ -1,184 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -function applyDecs2203Factory() { - function createAddInitializerMethod(e, t) { - return function (r) { - !function (e) { - if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); - }(t), assertCallable(r, "An initializer"), e.push(r); - }; - } - function memberDec(e, t, r, a, n, i, s, o) { - var c; - switch (n) { - case 1: - c = "accessor"; - break; - case 2: - c = "method"; - break; - case 3: - c = "getter"; - break; - case 4: - c = "setter"; - break; - default: - c = "field"; - } - var l, - u, - f = { - kind: c, - name: s ? "#" + t : t, - "static": i, - "private": s - }, - p = { - v: !1 - }; - 0 !== n && (f.addInitializer = createAddInitializerMethod(a, p)), 0 === n ? s ? (l = r.get, u = r.set) : (l = function l() { - return this[t]; - }, u = function u(e) { - this[t] = e; - }) : 2 === n ? l = function l() { - return r.value; - } : (1 !== n && 3 !== n || (l = function l() { - return r.get.call(this); - }), 1 !== n && 4 !== n || (u = function u(e) { - r.set.call(this, e); - })), f.access = l && u ? { - get: l, - set: u - } : l ? { - get: l - } : { - set: u - }; - try { - return e(o, f); - } finally { - p.v = !0; - } - } - function assertCallable(e, t) { - if ("function" != typeof e) throw new TypeError(t + " must be a function"); - } - function assertValidReturnValue(e, t) { - var r = _typeof(t); - if (1 === e) { - if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); - } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); - } - function applyMemberDec(e, t, r, a, n, i, s, o) { - var c, - l, - u, - f, - p, - d, - h = r[0]; - if (s ? c = 0 === n || 1 === n ? { - get: r[3], - set: r[4] - } : 3 === n ? { - get: r[3] - } : 4 === n ? { - set: r[3] - } : { - value: r[3] - } : 0 !== n && (c = Object.getOwnPropertyDescriptor(t, a)), 1 === n ? u = { - get: c.get, - set: c.set - } : 2 === n ? u = c.value : 3 === n ? u = c.get : 4 === n && (u = c.set), "function" == typeof h) void 0 !== (f = memberDec(h, a, c, o, n, i, s, u)) && (assertValidReturnValue(n, f), 0 === n ? l = f : 1 === n ? (l = f.init, p = f.get || u.get, d = f.set || u.set, u = { - get: p, - set: d - }) : u = f);else for (var v = h.length - 1; v >= 0; v--) { - var g; - void 0 !== (f = memberDec(h[v], a, c, o, n, i, s, u)) && (assertValidReturnValue(n, f), 0 === n ? g = f : 1 === n ? (g = f.init, p = f.get || u.get, d = f.set || u.set, u = { - get: p, - set: d - }) : u = f, void 0 !== g && (void 0 === l ? l = g : "function" == typeof l ? l = [l, g] : l.push(g))); - } - if (0 === n || 1 === n) { - if (void 0 === l) l = function l(e, t) { - return t; - };else if ("function" != typeof l) { - var y = l; - l = function l(e, t) { - for (var r = t, a = 0; a < y.length; a++) r = y[a].call(e, r); - return r; - }; - } else { - var m = l; - l = function l(e, t) { - return m.call(e, t); - }; - } - e.push(l); - } - 0 !== n && (1 === n ? (c.get = u.get, c.set = u.set) : 2 === n ? c.value = u : 3 === n ? c.get = u : 4 === n && (c.set = u), s ? 1 === n ? (e.push(function (e, t) { - return u.get.call(e, t); - }), e.push(function (e, t) { - return u.set.call(e, t); - })) : 2 === n ? e.push(u) : e.push(function (e, t) { - return u.call(e, t); - }) : Object.defineProperty(t, a, c)); - } - function pushInitializers(e, t) { - t && e.push(function (e) { - for (var r = 0; r < t.length; r++) t[r].call(e); - return e; - }); - } - return function (e, t, r) { - var a = []; - return function (e, t, r) { - for (var a, n, i = new Map(), s = new Map(), o = 0; o < r.length; o++) { - var c = r[o]; - if (Array.isArray(c)) { - var l, - u, - f = c[1], - p = c[2], - d = c.length > 3, - h = f >= 5; - if (h ? (l = t, 0 != (f -= 5) && (u = n = n || [])) : (l = t.prototype, 0 !== f && (u = a = a || [])), 0 !== f && !d) { - var v = h ? s : i, - g = v.get(p) || 0; - if (!0 === g || 3 === g && 4 !== f || 4 === g && 3 !== f) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p); - !g && f > 2 ? v.set(p, f) : v.set(p, !0); - } - applyMemberDec(e, l, c, p, f, h, d, u); - } - } - pushInitializers(e, a), pushInitializers(e, n); - }(a, e, t), function (e, t, r) { - if (r.length > 0) { - for (var a = [], n = t, i = t.name, s = r.length - 1; s >= 0; s--) { - var o = { - v: !1 - }; - try { - var c = r[s](n, { - kind: "class", - name: i, - addInitializer: createAddInitializerMethod(a, o) - }); - } finally { - o.v = !0; - } - void 0 !== c && (assertValidReturnValue(10, c), n = c); - } - e.push(n, function () { - for (var e = 0; e < a.length; e++) a[e].call(n); - }); - } - }(a, e, r), a; - }; -} -var applyDecs2203Impl; -function applyDecs2203(e, t, r) { - return (applyDecs2203Impl = applyDecs2203Impl || applyDecs2203Factory())(e, t, r); -} -module.exports = applyDecs2203, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecs2203R.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecs2203R.js deleted file mode 100644 index 1be7f5ed..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecs2203R.js +++ /dev/null @@ -1,191 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var setFunctionName = require("./setFunctionName.js"); -var toPropertyKey = require("./toPropertyKey.js"); -function applyDecs2203RFactory() { - function createAddInitializerMethod(e, t) { - return function (r) { - !function (e) { - if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); - }(t), assertCallable(r, "An initializer"), e.push(r); - }; - } - function memberDec(e, t, r, n, a, i, o, s) { - var c; - switch (a) { - case 1: - c = "accessor"; - break; - case 2: - c = "method"; - break; - case 3: - c = "getter"; - break; - case 4: - c = "setter"; - break; - default: - c = "field"; - } - var l, - u, - f = { - kind: c, - name: o ? "#" + t : toPropertyKey(t), - "static": i, - "private": o - }, - p = { - v: !1 - }; - 0 !== a && (f.addInitializer = createAddInitializerMethod(n, p)), 0 === a ? o ? (l = r.get, u = r.set) : (l = function l() { - return this[t]; - }, u = function u(e) { - this[t] = e; - }) : 2 === a ? l = function l() { - return r.value; - } : (1 !== a && 3 !== a || (l = function l() { - return r.get.call(this); - }), 1 !== a && 4 !== a || (u = function u(e) { - r.set.call(this, e); - })), f.access = l && u ? { - get: l, - set: u - } : l ? { - get: l - } : { - set: u - }; - try { - return e(s, f); - } finally { - p.v = !0; - } - } - function assertCallable(e, t) { - if ("function" != typeof e) throw new TypeError(t + " must be a function"); - } - function assertValidReturnValue(e, t) { - var r = _typeof(t); - if (1 === e) { - if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); - } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); - } - function applyMemberDec(e, t, r, n, a, i, o, s) { - var c, - l, - u, - f, - p, - d, - h, - v = r[0]; - if (o ? (0 === a || 1 === a ? (c = { - get: r[3], - set: r[4] - }, u = "get") : 3 === a ? (c = { - get: r[3] - }, u = "get") : 4 === a ? (c = { - set: r[3] - }, u = "set") : c = { - value: r[3] - }, 0 !== a && (1 === a && setFunctionName(r[4], "#" + n, "set"), setFunctionName(r[3], "#" + n, u))) : 0 !== a && (c = Object.getOwnPropertyDescriptor(t, n)), 1 === a ? f = { - get: c.get, - set: c.set - } : 2 === a ? f = c.value : 3 === a ? f = c.get : 4 === a && (f = c.set), "function" == typeof v) void 0 !== (p = memberDec(v, n, c, s, a, i, o, f)) && (assertValidReturnValue(a, p), 0 === a ? l = p : 1 === a ? (l = p.init, d = p.get || f.get, h = p.set || f.set, f = { - get: d, - set: h - }) : f = p);else for (var g = v.length - 1; g >= 0; g--) { - var y; - void 0 !== (p = memberDec(v[g], n, c, s, a, i, o, f)) && (assertValidReturnValue(a, p), 0 === a ? y = p : 1 === a ? (y = p.init, d = p.get || f.get, h = p.set || f.set, f = { - get: d, - set: h - }) : f = p, void 0 !== y && (void 0 === l ? l = y : "function" == typeof l ? l = [l, y] : l.push(y))); - } - if (0 === a || 1 === a) { - if (void 0 === l) l = function l(e, t) { - return t; - };else if ("function" != typeof l) { - var m = l; - l = function l(e, t) { - for (var r = t, n = 0; n < m.length; n++) r = m[n].call(e, r); - return r; - }; - } else { - var b = l; - l = function l(e, t) { - return b.call(e, t); - }; - } - e.push(l); - } - 0 !== a && (1 === a ? (c.get = f.get, c.set = f.set) : 2 === a ? c.value = f : 3 === a ? c.get = f : 4 === a && (c.set = f), o ? 1 === a ? (e.push(function (e, t) { - return f.get.call(e, t); - }), e.push(function (e, t) { - return f.set.call(e, t); - })) : 2 === a ? e.push(f) : e.push(function (e, t) { - return f.call(e, t); - }) : Object.defineProperty(t, n, c)); - } - function applyMemberDecs(e, t) { - for (var r, n, a = [], i = new Map(), o = new Map(), s = 0; s < t.length; s++) { - var c = t[s]; - if (Array.isArray(c)) { - var l, - u, - f = c[1], - p = c[2], - d = c.length > 3, - h = f >= 5; - if (h ? (l = e, 0 != (f -= 5) && (u = n = n || [])) : (l = e.prototype, 0 !== f && (u = r = r || [])), 0 !== f && !d) { - var v = h ? o : i, - g = v.get(p) || 0; - if (!0 === g || 3 === g && 4 !== f || 4 === g && 3 !== f) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p); - !g && f > 2 ? v.set(p, f) : v.set(p, !0); - } - applyMemberDec(a, l, c, p, f, h, d, u); - } - } - return pushInitializers(a, r), pushInitializers(a, n), a; - } - function pushInitializers(e, t) { - t && e.push(function (e) { - for (var r = 0; r < t.length; r++) t[r].call(e); - return e; - }); - } - return function (e, t, r) { - return { - e: applyMemberDecs(e, t), - get c() { - return function (e, t) { - if (t.length > 0) { - for (var r = [], n = e, a = e.name, i = t.length - 1; i >= 0; i--) { - var o = { - v: !1 - }; - try { - var s = t[i](n, { - kind: "class", - name: a, - addInitializer: createAddInitializerMethod(r, o) - }); - } finally { - o.v = !0; - } - void 0 !== s && (assertValidReturnValue(10, s), n = s); - } - return [n, function () { - for (var e = 0; e < r.length; e++) r[e].call(n); - }]; - } - }(e, r); - } - }; - }; -} -function applyDecs2203R(e, t, r) { - return (module.exports = applyDecs2203R = applyDecs2203RFactory(), module.exports.__esModule = true, module.exports["default"] = module.exports)(e, t, r); -} -module.exports = applyDecs2203R, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecs2301.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecs2301.js deleted file mode 100644 index 577eee8d..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecs2301.js +++ /dev/null @@ -1,222 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var checkInRHS = require("./checkInRHS.js"); -var setFunctionName = require("./setFunctionName.js"); -var toPropertyKey = require("./toPropertyKey.js"); -function applyDecs2301Factory() { - function createAddInitializerMethod(e, t) { - return function (r) { - !function (e) { - if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); - }(t), assertCallable(r, "An initializer"), e.push(r); - }; - } - function assertInstanceIfPrivate(e, t) { - if (!e(t)) throw new TypeError("Attempted to access private element on non-instance"); - } - function memberDec(e, t, r, n, a, i, s, o, c) { - var u; - switch (a) { - case 1: - u = "accessor"; - break; - case 2: - u = "method"; - break; - case 3: - u = "getter"; - break; - case 4: - u = "setter"; - break; - default: - u = "field"; - } - var l, - f, - p = { - kind: u, - name: s ? "#" + t : toPropertyKey(t), - "static": i, - "private": s - }, - d = { - v: !1 - }; - if (0 !== a && (p.addInitializer = createAddInitializerMethod(n, d)), s || 0 !== a && 2 !== a) { - if (2 === a) l = function l(e) { - return assertInstanceIfPrivate(c, e), r.value; - };else { - var h = 0 === a || 1 === a; - (h || 3 === a) && (l = s ? function (e) { - return assertInstanceIfPrivate(c, e), r.get.call(e); - } : function (e) { - return r.get.call(e); - }), (h || 4 === a) && (f = s ? function (e, t) { - assertInstanceIfPrivate(c, e), r.set.call(e, t); - } : function (e, t) { - r.set.call(e, t); - }); - } - } else l = function l(e) { - return e[t]; - }, 0 === a && (f = function f(e, r) { - e[t] = r; - }); - var v = s ? c.bind() : function (e) { - return t in e; - }; - p.access = l && f ? { - get: l, - set: f, - has: v - } : l ? { - get: l, - has: v - } : { - set: f, - has: v - }; - try { - return e(o, p); - } finally { - d.v = !0; - } - } - function assertCallable(e, t) { - if ("function" != typeof e) throw new TypeError(t + " must be a function"); - } - function assertValidReturnValue(e, t) { - var r = _typeof(t); - if (1 === e) { - if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); - } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); - } - function curryThis2(e) { - return function (t) { - e(this, t); - }; - } - function applyMemberDec(e, t, r, n, a, i, s, o, c) { - var u, - l, - f, - p, - d, - h, - v, - y, - g = r[0]; - if (s ? (0 === a || 1 === a ? (u = { - get: (d = r[3], function () { - return d(this); - }), - set: curryThis2(r[4]) - }, f = "get") : 3 === a ? (u = { - get: r[3] - }, f = "get") : 4 === a ? (u = { - set: r[3] - }, f = "set") : u = { - value: r[3] - }, 0 !== a && (1 === a && setFunctionName(u.set, "#" + n, "set"), setFunctionName(u[f || "value"], "#" + n, f))) : 0 !== a && (u = Object.getOwnPropertyDescriptor(t, n)), 1 === a ? p = { - get: u.get, - set: u.set - } : 2 === a ? p = u.value : 3 === a ? p = u.get : 4 === a && (p = u.set), "function" == typeof g) void 0 !== (h = memberDec(g, n, u, o, a, i, s, p, c)) && (assertValidReturnValue(a, h), 0 === a ? l = h : 1 === a ? (l = h.init, v = h.get || p.get, y = h.set || p.set, p = { - get: v, - set: y - }) : p = h);else for (var m = g.length - 1; m >= 0; m--) { - var b; - void 0 !== (h = memberDec(g[m], n, u, o, a, i, s, p, c)) && (assertValidReturnValue(a, h), 0 === a ? b = h : 1 === a ? (b = h.init, v = h.get || p.get, y = h.set || p.set, p = { - get: v, - set: y - }) : p = h, void 0 !== b && (void 0 === l ? l = b : "function" == typeof l ? l = [l, b] : l.push(b))); - } - if (0 === a || 1 === a) { - if (void 0 === l) l = function l(e, t) { - return t; - };else if ("function" != typeof l) { - var I = l; - l = function l(e, t) { - for (var r = t, n = 0; n < I.length; n++) r = I[n].call(e, r); - return r; - }; - } else { - var w = l; - l = function l(e, t) { - return w.call(e, t); - }; - } - e.push(l); - } - 0 !== a && (1 === a ? (u.get = p.get, u.set = p.set) : 2 === a ? u.value = p : 3 === a ? u.get = p : 4 === a && (u.set = p), s ? 1 === a ? (e.push(function (e, t) { - return p.get.call(e, t); - }), e.push(function (e, t) { - return p.set.call(e, t); - })) : 2 === a ? e.push(p) : e.push(function (e, t) { - return p.call(e, t); - }) : Object.defineProperty(t, n, u)); - } - function applyMemberDecs(e, t, r) { - for (var n, a, i, s = [], o = new Map(), c = new Map(), u = 0; u < t.length; u++) { - var l = t[u]; - if (Array.isArray(l)) { - var f, - p, - d = l[1], - h = l[2], - v = l.length > 3, - y = d >= 5, - g = r; - if (y ? (f = e, 0 != (d -= 5) && (p = a = a || []), v && !i && (i = function i(t) { - return checkInRHS(t) === e; - }), g = i) : (f = e.prototype, 0 !== d && (p = n = n || [])), 0 !== d && !v) { - var m = y ? c : o, - b = m.get(h) || 0; - if (!0 === b || 3 === b && 4 !== d || 4 === b && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); - !b && d > 2 ? m.set(h, d) : m.set(h, !0); - } - applyMemberDec(s, f, l, h, d, y, v, p, g); - } - } - return pushInitializers(s, n), pushInitializers(s, a), s; - } - function pushInitializers(e, t) { - t && e.push(function (e) { - for (var r = 0; r < t.length; r++) t[r].call(e); - return e; - }); - } - return function (e, t, r, n) { - return { - e: applyMemberDecs(e, t, n), - get c() { - return function (e, t) { - if (t.length > 0) { - for (var r = [], n = e, a = e.name, i = t.length - 1; i >= 0; i--) { - var s = { - v: !1 - }; - try { - var o = t[i](n, { - kind: "class", - name: a, - addInitializer: createAddInitializerMethod(r, s) - }); - } finally { - s.v = !0; - } - void 0 !== o && (assertValidReturnValue(10, o), n = o); - } - return [n, function () { - for (var e = 0; e < r.length; e++) r[e].call(n); - }]; - } - }(e, r); - } - }; - }; -} -function applyDecs2301(e, t, r, n) { - return (module.exports = applyDecs2301 = applyDecs2301Factory(), module.exports.__esModule = true, module.exports["default"] = module.exports)(e, t, r, n); -} -module.exports = applyDecs2301, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecs2305.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecs2305.js deleted file mode 100644 index 744c3521..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecs2305.js +++ /dev/null @@ -1,133 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var checkInRHS = require("./checkInRHS.js"); -var setFunctionName = require("./setFunctionName.js"); -var toPropertyKey = require("./toPropertyKey.js"); -function applyDecs2305(e, t, r, n, o, a) { - function i(e, t, r) { - return function (n, o) { - return r && r(n), e[t].call(n, o); - }; - } - function c(e, t) { - for (var r = 0; r < e.length; r++) e[r].call(t); - return t; - } - function s(e, t, r, n) { - if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); - return e; - } - function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { - function m(e) { - if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); - } - var y, - v = t[0], - g = t[3], - b = !u; - if (!b) { - r || Array.isArray(v) || (v = [v]); - var w = {}, - S = [], - A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; - f ? (p || d ? w = { - get: setFunctionName(function () { - return g(this); - }, n, "get"), - set: function set(e) { - t[4](this, e); - } - } : w[A] = g, p || setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); - } - for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { - var D = v[j], - E = r ? v[j - 1] : void 0, - I = {}, - O = { - kind: ["field", "accessor", "method", "getter", "setter", "class"][o], - name: n, - metadata: a, - addInitializer: function (e, t) { - if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); - s(t, "An initializer", "be", !0), c.push(t); - }.bind(null, I) - }; - try { - if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { - var k, F; - O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { - return m(e), w.value; - } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { - return e[n]; - }, (o < 2 || 4 === o) && (F = function F(e, t) { - e[n] = t; - })); - var N = O.access = { - has: f ? h.bind() : function (e) { - return n in e; - } - }; - if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { - get: w.get, - set: w.set - } : w[A], O), d) { - if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); - } - } finally { - I.v = !0; - } - } - return (p || d) && u.push(function (e, t) { - for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); - return t; - }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; - } - function u(e, t) { - return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { - configurable: !0, - enumerable: !0, - value: t - }); - } - if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; - var f = Object.create(null == l ? null : l), - p = function (e, t, r, n) { - var o, - a, - i = [], - s = function s(t) { - return checkInRHS(t) === e; - }, - u = new Map(); - function l(e) { - e && i.push(c.bind(null, e)); - } - for (var f = 0; f < t.length; f++) { - var p = t[f]; - if (Array.isArray(p)) { - var d = p[1], - h = p[2], - m = p.length > 3, - y = 16 & d, - v = !!(8 & d), - g = 0 == (d &= 7), - b = h + "/" + v; - if (!g && !m) { - var w = u.get(b); - if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); - u.set(b, !(d > 2) || d); - } - applyDec(v ? e : e.prototype, p, y, m ? "#" + h : toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); - } - } - return l(o), l(a), i; - }(e, t, o, f); - return r.length || u(e, f), { - e: p, - get c() { - var t = []; - return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; - } - }; -} -module.exports = applyDecs2305, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecs2311.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecs2311.js deleted file mode 100644 index 5c7ed771..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/applyDecs2311.js +++ /dev/null @@ -1,124 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var checkInRHS = require("./checkInRHS.js"); -var setFunctionName = require("./setFunctionName.js"); -var toPropertyKey = require("./toPropertyKey.js"); -function applyDecs2311(e, t, n, r, o, i) { - var a, - c, - u, - s, - f, - l, - p, - d = Symbol.metadata || Symbol["for"]("Symbol.metadata"), - m = Object.defineProperty, - h = Object.create, - y = [h(null), h(null)], - v = t.length; - function g(t, n, r) { - return function (o, i) { - n && (i = o, o = e); - for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []); - return r ? i : o; - }; - } - function b(e, t, n, r) { - if ("function" != typeof e && (r || void 0 !== e)) throw new TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined")); - return e; - } - function applyDec(e, t, n, r, o, i, u, s, f, l, p) { - function d(e) { - if (!p(e)) throw new TypeError("Attempted to access private element on non-instance"); - } - var h = [].concat(t[0]), - v = t[3], - w = !u, - D = 1 === o, - S = 3 === o, - j = 4 === o, - E = 2 === o; - function I(t, n, r) { - return function (o, i) { - return n && (i = o, o = e), r && r(o), P[t].call(o, i); - }; - } - if (!w) { - var P = {}, - k = [], - F = S ? "get" : j || D ? "set" : "value"; - if (f ? (l || D ? P = { - get: setFunctionName(function () { - return v(this); - }, r, "get"), - set: function set(e) { - t[4](this, e); - } - } : P[F] = v, l || setFunctionName(P[F], r, E ? "" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) { - if ((c = y[+s][r]) && 7 !== (c ^ o)) throw Error("Decorating two elements with the same name (" + P[F].name + ") is not supported yet"); - y[+s][r] = o < 3 ? 1 : o; - } - } - for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) { - var T = b(h[O], "A decorator", "be", !0), - z = n ? h[O - 1] : void 0, - A = {}, - H = { - kind: ["field", "accessor", "method", "getter", "setter", "class"][o], - name: r, - metadata: a, - addInitializer: function (e, t) { - if (e.v) throw new TypeError("attempted to call addInitializer after decoration was finished"); - b(t, "An initializer", "be", !0), i.push(t); - }.bind(null, A) - }; - if (w) c = T.call(z, N, H), A.v = 1, b(c, "class decorators", "return") && (N = c);else if (H["static"] = s, H["private"] = f, c = H.access = { - has: f ? p.bind() : function (e) { - return r in e; - } - }, j || (c.get = f ? E ? function (e) { - return d(e), P.value; - } : I("get", 0, d) : function (e) { - return e[r]; - }), E || S || (c.set = f ? I("set", 0, d) : function (e, t) { - e[r] = t; - }), N = T.call(z, D ? { - get: P.get, - set: P.set - } : P[F], H), A.v = 1, D) { - if ("object" == _typeof(N) && N) (c = b(N.get, "accessor.get")) && (P.get = c), (c = b(N.set, "accessor.set")) && (P.set = c), (c = b(N.init, "accessor.init")) && k.unshift(c);else if (void 0 !== N) throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined"); - } else b(N, (l ? "field" : "method") + " decorators", "return") && (l ? k.unshift(N) : P[F] = N); - } - return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I("get", s), I("set", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N; - } - function w(e) { - return m(e, d, { - configurable: !0, - enumerable: !0, - value: a - }); - } - return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function l(e) { - e && f.push(g(e)); - }, p = function p(t, r) { - for (var i = 0; i < n.length; i++) { - var a = n[i], - c = a[1], - l = 7 & c; - if ((8 & c) == t && !l == r) { - var p = a[2], - d = !!a[3], - m = 16 & c; - applyDec(t ? e : e.prototype, a, m, d ? "#" + p : toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) { - return checkInRHS(t) === e; - } : o); - } - } - }, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), { - e: c, - get c() { - var n = []; - return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)]; - } - }; -} -module.exports = applyDecs2311, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/arrayLikeToArray.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/arrayLikeToArray.js deleted file mode 100644 index 19787e31..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +++ /dev/null @@ -1,6 +0,0 @@ -function _arrayLikeToArray(r, a) { - (null == a || a > r.length) && (a = r.length); - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; - return n; -} -module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/arrayWithHoles.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/arrayWithHoles.js deleted file mode 100644 index 78bdd931..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/arrayWithHoles.js +++ /dev/null @@ -1,4 +0,0 @@ -function _arrayWithHoles(r) { - if (Array.isArray(r)) return r; -} -module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js deleted file mode 100644 index 42218f54..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +++ /dev/null @@ -1,5 +0,0 @@ -var arrayLikeToArray = require("./arrayLikeToArray.js"); -function _arrayWithoutHoles(r) { - if (Array.isArray(r)) return arrayLikeToArray(r); -} -module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/assertClassBrand.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/assertClassBrand.js deleted file mode 100644 index e63ed8f4..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/assertClassBrand.js +++ /dev/null @@ -1,5 +0,0 @@ -function _assertClassBrand(e, t, n) { - if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; - throw new TypeError("Private element is not present on this object"); -} -module.exports = _assertClassBrand, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/assertThisInitialized.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/assertThisInitialized.js deleted file mode 100644 index 02594fbe..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/assertThisInitialized.js +++ /dev/null @@ -1,5 +0,0 @@ -function _assertThisInitialized(e) { - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return e; -} -module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js deleted file mode 100644 index 023568e0..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +++ /dev/null @@ -1,24 +0,0 @@ -var OverloadYield = require("./OverloadYield.js"); -function _asyncGeneratorDelegate(t) { - var e = {}, - n = !1; - function pump(e, r) { - return n = !0, r = new Promise(function (n) { - n(t[e](r)); - }), { - done: !1, - value: new OverloadYield(r, 1) - }; - } - return e["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () { - return this; - }, e.next = function (t) { - return n ? (n = !1, t) : pump("next", t); - }, "function" == typeof t["throw"] && (e["throw"] = function (t) { - if (n) throw n = !1, t; - return pump("throw", t); - }), "function" == typeof t["return"] && (e["return"] = function (t) { - return n ? (n = !1, t) : pump("return", t); - }), e; -} -module.exports = _asyncGeneratorDelegate, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/asyncIterator.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/asyncIterator.js deleted file mode 100644 index 9c0c95cf..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/asyncIterator.js +++ /dev/null @@ -1,45 +0,0 @@ -function _asyncIterator(r) { - var n, - t, - o, - e = 2; - for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { - if (t && null != (n = r[t])) return n.call(r); - if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); - t = "@@asyncIterator", o = "@@iterator"; - } - throw new TypeError("Object is not async iterable"); -} -function AsyncFromSyncIterator(r) { - function AsyncFromSyncIteratorContinuation(r) { - if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); - var n = r.done; - return Promise.resolve(r.value).then(function (r) { - return { - value: r, - done: n - }; - }); - } - return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { - this.s = r, this.n = r.next; - }, AsyncFromSyncIterator.prototype = { - s: null, - n: null, - next: function next() { - return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); - }, - "return": function _return(r) { - var n = this.s["return"]; - return void 0 === n ? Promise.resolve({ - value: r, - done: !0 - }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); - }, - "throw": function _throw(r) { - var n = this.s["return"]; - return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); - } - }, new AsyncFromSyncIterator(r); -} -module.exports = _asyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/asyncToGenerator.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/asyncToGenerator.js deleted file mode 100644 index a080339b..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/asyncToGenerator.js +++ /dev/null @@ -1,26 +0,0 @@ -function asyncGeneratorStep(n, t, e, r, o, a, c) { - try { - var i = n[a](c), - u = i.value; - } catch (n) { - return void e(n); - } - i.done ? t(u) : Promise.resolve(u).then(r, o); -} -function _asyncToGenerator(n) { - return function () { - var t = this, - e = arguments; - return new Promise(function (r, o) { - var a = n.apply(t, e); - function _next(n) { - asyncGeneratorStep(a, r, o, _next, _throw, "next", n); - } - function _throw(n) { - asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); - } - _next(void 0); - }); - }; -} -module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js deleted file mode 100644 index 2d6fab91..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +++ /dev/null @@ -1,5 +0,0 @@ -var OverloadYield = require("./OverloadYield.js"); -function _awaitAsyncGenerator(e) { - return new OverloadYield(e, 0); -} -module.exports = _awaitAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/callSuper.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/callSuper.js deleted file mode 100644 index 38eaf7f8..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/callSuper.js +++ /dev/null @@ -1,7 +0,0 @@ -var getPrototypeOf = require("./getPrototypeOf.js"); -var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); -var possibleConstructorReturn = require("./possibleConstructorReturn.js"); -function _callSuper(t, o, e) { - return o = getPrototypeOf(o), possibleConstructorReturn(t, isNativeReflectConstruct() ? Reflect.construct(o, e || [], getPrototypeOf(t).constructor) : o.apply(t, e)); -} -module.exports = _callSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/checkInRHS.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/checkInRHS.js deleted file mode 100644 index 4eea13d9..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/checkInRHS.js +++ /dev/null @@ -1,6 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -function _checkInRHS(e) { - if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); - return e; -} -module.exports = _checkInRHS, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js deleted file mode 100644 index 33ad54c9..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +++ /dev/null @@ -1,4 +0,0 @@ -function _checkPrivateRedeclaration(e, t) { - if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); -} -module.exports = _checkPrivateRedeclaration, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js deleted file mode 100644 index 9998b835..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +++ /dev/null @@ -1,10 +0,0 @@ -function _classApplyDescriptorDestructureSet(e, t) { - if (t.set) return "__destrObj" in t || (t.__destrObj = { - set value(r) { - t.set.call(e, r); - } - }), t.__destrObj; - if (!t.writable) throw new TypeError("attempted to set read only private field"); - return t; -} -module.exports = _classApplyDescriptorDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js deleted file mode 100644 index ab627245..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +++ /dev/null @@ -1,4 +0,0 @@ -function _classApplyDescriptorGet(e, t) { - return t.get ? t.get.call(e) : t.value; -} -module.exports = _classApplyDescriptorGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js deleted file mode 100644 index 0975f95f..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +++ /dev/null @@ -1,7 +0,0 @@ -function _classApplyDescriptorSet(e, t, l) { - if (t.set) t.set.call(e, l);else { - if (!t.writable) throw new TypeError("attempted to set read only private field"); - t.value = l; - } -} -module.exports = _classApplyDescriptorSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classCallCheck.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classCallCheck.js deleted file mode 100644 index 21b8390f..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classCallCheck.js +++ /dev/null @@ -1,4 +0,0 @@ -function _classCallCheck(a, n) { - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); -} -module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js deleted file mode 100644 index 7520f74d..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +++ /dev/null @@ -1,5 +0,0 @@ -var assertClassBrand = require("./assertClassBrand.js"); -function _classCheckPrivateStaticAccess(s, a, r) { - return assertClassBrand(a, s, r); -} -module.exports = _classCheckPrivateStaticAccess, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js deleted file mode 100644 index 7f70395e..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +++ /dev/null @@ -1,4 +0,0 @@ -function _classCheckPrivateStaticFieldDescriptor(t, e) { - if (void 0 === t) throw new TypeError("attempted to " + e + " private static field before its declaration"); -} -module.exports = _classCheckPrivateStaticFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js deleted file mode 100644 index be855be9..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +++ /dev/null @@ -1,5 +0,0 @@ -var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js"); -function _classExtractFieldDescriptor(e, t) { - return classPrivateFieldGet2(t, e); -} -module.exports = _classExtractFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classNameTDZError.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classNameTDZError.js deleted file mode 100644 index 8141ff89..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classNameTDZError.js +++ /dev/null @@ -1,4 +0,0 @@ -function _classNameTDZError(e) { - throw new ReferenceError('Class "' + e + '" cannot be referenced in computed property keys.'); -} -module.exports = _classNameTDZError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js deleted file mode 100644 index 97c764d0..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +++ /dev/null @@ -1,7 +0,0 @@ -var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js"); -var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js"); -function _classPrivateFieldDestructureSet(e, t) { - var r = classPrivateFieldGet2(t, e); - return classApplyDescriptorDestructureSet(e, r); -} -module.exports = _classPrivateFieldDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js deleted file mode 100644 index bbee142a..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +++ /dev/null @@ -1,7 +0,0 @@ -var classApplyDescriptorGet = require("./classApplyDescriptorGet.js"); -var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js"); -function _classPrivateFieldGet(e, t) { - var r = classPrivateFieldGet2(t, e); - return classApplyDescriptorGet(e, r); -} -module.exports = _classPrivateFieldGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js deleted file mode 100644 index d4c271c7..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js +++ /dev/null @@ -1,5 +0,0 @@ -var assertClassBrand = require("./assertClassBrand.js"); -function _classPrivateFieldGet2(s, a) { - return s.get(assertClassBrand(s, a)); -} -module.exports = _classPrivateFieldGet2, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js deleted file mode 100644 index a290c19a..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +++ /dev/null @@ -1,5 +0,0 @@ -var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js"); -function _classPrivateFieldInitSpec(e, t, a) { - checkPrivateRedeclaration(e, t), t.set(e, a); -} -module.exports = _classPrivateFieldInitSpec, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js deleted file mode 100644 index f9e46f26..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +++ /dev/null @@ -1,5 +0,0 @@ -function _classPrivateFieldBase(e, t) { - if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); - return e; -} -module.exports = _classPrivateFieldBase, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js deleted file mode 100644 index 5dc687fe..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +++ /dev/null @@ -1,5 +0,0 @@ -var id = 0; -function _classPrivateFieldKey(e) { - return "__private_" + id++ + "_" + e; -} -module.exports = _classPrivateFieldKey, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js deleted file mode 100644 index f3746e74..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +++ /dev/null @@ -1,7 +0,0 @@ -var classApplyDescriptorSet = require("./classApplyDescriptorSet.js"); -var classPrivateFieldGet2 = require("./classPrivateFieldGet2.js"); -function _classPrivateFieldSet(e, t, r) { - var s = classPrivateFieldGet2(t, e); - return classApplyDescriptorSet(e, s, r), r; -} -module.exports = _classPrivateFieldSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js deleted file mode 100644 index 25c60caa..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js +++ /dev/null @@ -1,5 +0,0 @@ -var assertClassBrand = require("./assertClassBrand.js"); -function _classPrivateFieldSet2(s, a, r) { - return s.set(assertClassBrand(s, a), r), r; -} -module.exports = _classPrivateFieldSet2, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateGetter.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateGetter.js deleted file mode 100644 index 1b3cf30a..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateGetter.js +++ /dev/null @@ -1,5 +0,0 @@ -var assertClassBrand = require("./assertClassBrand.js"); -function _classPrivateGetter(s, r, a) { - return a(assertClassBrand(s, r)); -} -module.exports = _classPrivateGetter, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js deleted file mode 100644 index e4af3878..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +++ /dev/null @@ -1,5 +0,0 @@ -var assertClassBrand = require("./assertClassBrand.js"); -function _classPrivateMethodGet(s, a, r) { - return assertClassBrand(a, s), r; -} -module.exports = _classPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js deleted file mode 100644 index 821c8ed0..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +++ /dev/null @@ -1,5 +0,0 @@ -var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js"); -function _classPrivateMethodInitSpec(e, a) { - checkPrivateRedeclaration(e, a), a.add(e); -} -module.exports = _classPrivateMethodInitSpec, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js deleted file mode 100644 index a44fd785..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +++ /dev/null @@ -1,4 +0,0 @@ -function _classPrivateMethodSet() { - throw new TypeError("attempted to reassign private method"); -} -module.exports = _classPrivateMethodSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateSetter.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateSetter.js deleted file mode 100644 index 494f81f0..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classPrivateSetter.js +++ /dev/null @@ -1,5 +0,0 @@ -var assertClassBrand = require("./assertClassBrand.js"); -function _classPrivateSetter(s, r, a, t) { - return r(assertClassBrand(s, a), t), t; -} -module.exports = _classPrivateSetter, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js deleted file mode 100644 index 2bb6e8b1..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +++ /dev/null @@ -1,7 +0,0 @@ -var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js"); -var assertClassBrand = require("./assertClassBrand.js"); -var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js"); -function _classStaticPrivateFieldDestructureSet(t, r, s) { - return assertClassBrand(r, t), classCheckPrivateStaticFieldDescriptor(s, "set"), classApplyDescriptorDestructureSet(t, s); -} -module.exports = _classStaticPrivateFieldDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js deleted file mode 100644 index eb2365f3..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +++ /dev/null @@ -1,7 +0,0 @@ -var classApplyDescriptorGet = require("./classApplyDescriptorGet.js"); -var assertClassBrand = require("./assertClassBrand.js"); -var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js"); -function _classStaticPrivateFieldSpecGet(t, s, r) { - return assertClassBrand(s, t), classCheckPrivateStaticFieldDescriptor(r, "get"), classApplyDescriptorGet(t, r); -} -module.exports = _classStaticPrivateFieldSpecGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js deleted file mode 100644 index 7783cd8d..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +++ /dev/null @@ -1,7 +0,0 @@ -var classApplyDescriptorSet = require("./classApplyDescriptorSet.js"); -var assertClassBrand = require("./assertClassBrand.js"); -var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js"); -function _classStaticPrivateFieldSpecSet(s, t, r, e) { - return assertClassBrand(t, s), classCheckPrivateStaticFieldDescriptor(r, "set"), classApplyDescriptorSet(s, r, e), e; -} -module.exports = _classStaticPrivateFieldSpecSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js deleted file mode 100644 index c895be5c..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +++ /dev/null @@ -1,5 +0,0 @@ -var assertClassBrand = require("./assertClassBrand.js"); -function _classStaticPrivateMethodGet(s, a, t) { - return assertClassBrand(a, s), t; -} -module.exports = _classStaticPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js deleted file mode 100644 index 72560e66..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +++ /dev/null @@ -1,4 +0,0 @@ -function _classStaticPrivateMethodSet() { - throw new TypeError("attempted to set read only static private field"); -} -module.exports = _classStaticPrivateMethodSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/construct.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/construct.js deleted file mode 100644 index aee8e704..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/construct.js +++ /dev/null @@ -1,10 +0,0 @@ -var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); -var setPrototypeOf = require("./setPrototypeOf.js"); -function _construct(t, e, r) { - if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); - var o = [null]; - o.push.apply(o, e); - var p = new (t.bind.apply(t, o))(); - return r && setPrototypeOf(p, r.prototype), p; -} -module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/createClass.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/createClass.js deleted file mode 100644 index 8757f9ee..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/createClass.js +++ /dev/null @@ -1,13 +0,0 @@ -var toPropertyKey = require("./toPropertyKey.js"); -function _defineProperties(e, r) { - for (var t = 0; t < r.length; t++) { - var o = r[t]; - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); - } -} -function _createClass(e, r, t) { - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { - writable: !1 - }), e; -} -module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js deleted file mode 100644 index 27783079..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +++ /dev/null @@ -1,50 +0,0 @@ -var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); -function _createForOfIteratorHelper(r, e) { - var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; - if (!t) { - if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { - t && (r = t); - var _n = 0, - F = function F() {}; - return { - s: F, - n: function n() { - return _n >= r.length ? { - done: !0 - } : { - done: !1, - value: r[_n++] - }; - }, - e: function e(r) { - throw r; - }, - f: F - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - var o, - a = !0, - u = !1; - return { - s: function s() { - t = t.call(r); - }, - n: function n() { - var r = t.next(); - return a = r.done, r; - }, - e: function e(r) { - u = !0, o = r; - }, - f: function f() { - try { - a || null == t["return"] || t["return"](); - } finally { - if (u) throw o; - } - } - }; -} -module.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js deleted file mode 100644 index bc81b1cd..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +++ /dev/null @@ -1,19 +0,0 @@ -var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); -function _createForOfIteratorHelperLoose(r, e) { - var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; - if (t) return (t = t.call(r)).next.bind(t); - if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { - t && (r = t); - var o = 0; - return function () { - return o >= r.length ? { - done: !0 - } : { - done: !1, - value: r[o++] - }; - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -module.exports = _createForOfIteratorHelperLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/createSuper.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/createSuper.js deleted file mode 100644 index b1869e61..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/createSuper.js +++ /dev/null @@ -1,16 +0,0 @@ -var getPrototypeOf = require("./getPrototypeOf.js"); -var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); -var possibleConstructorReturn = require("./possibleConstructorReturn.js"); -function _createSuper(t) { - var r = isNativeReflectConstruct(); - return function () { - var e, - o = getPrototypeOf(t); - if (r) { - var s = getPrototypeOf(this).constructor; - e = Reflect.construct(o, arguments, s); - } else e = o.apply(this, arguments); - return possibleConstructorReturn(this, e); - }; -} -module.exports = _createSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/decorate.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/decorate.js deleted file mode 100644 index bc22acf4..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/decorate.js +++ /dev/null @@ -1,250 +0,0 @@ -var toArray = require("./toArray.js"); -var toPropertyKey = require("./toPropertyKey.js"); -function _decorate(e, r, t, i) { - var o = _getDecoratorsApi(); - if (i) for (var n = 0; n < i.length; n++) o = i[n](o); - var s = r(function (e) { - o.initializeInstanceElements(e, a.elements); - }, t), - a = o.decorateClass(_coalesceClassElements(s.d.map(_createElementDescriptor)), e); - return o.initializeClassElements(s.F, a.elements), o.runClassFinishers(s.F, a.finishers); -} -function _getDecoratorsApi() { - _getDecoratorsApi = function _getDecoratorsApi() { - return e; - }; - var e = { - elementsDefinitionOrder: [["method"], ["field"]], - initializeInstanceElements: function initializeInstanceElements(e, r) { - ["method", "field"].forEach(function (t) { - r.forEach(function (r) { - r.kind === t && "own" === r.placement && this.defineClassElement(e, r); - }, this); - }, this); - }, - initializeClassElements: function initializeClassElements(e, r) { - var t = e.prototype; - ["method", "field"].forEach(function (i) { - r.forEach(function (r) { - var o = r.placement; - if (r.kind === i && ("static" === o || "prototype" === o)) { - var n = "static" === o ? e : t; - this.defineClassElement(n, r); - } - }, this); - }, this); - }, - defineClassElement: function defineClassElement(e, r) { - var t = r.descriptor; - if ("field" === r.kind) { - var i = r.initializer; - t = { - enumerable: t.enumerable, - writable: t.writable, - configurable: t.configurable, - value: void 0 === i ? void 0 : i.call(e) - }; - } - Object.defineProperty(e, r.key, t); - }, - decorateClass: function decorateClass(e, r) { - var t = [], - i = [], - o = { - "static": [], - prototype: [], - own: [] - }; - if (e.forEach(function (e) { - this.addElementPlacement(e, o); - }, this), e.forEach(function (e) { - if (!_hasDecorators(e)) return t.push(e); - var r = this.decorateElement(e, o); - t.push(r.element), t.push.apply(t, r.extras), i.push.apply(i, r.finishers); - }, this), !r) return { - elements: t, - finishers: i - }; - var n = this.decorateConstructor(t, r); - return i.push.apply(i, n.finishers), n.finishers = i, n; - }, - addElementPlacement: function addElementPlacement(e, r, t) { - var i = r[e.placement]; - if (!t && -1 !== i.indexOf(e.key)) throw new TypeError("Duplicated element (" + e.key + ")"); - i.push(e.key); - }, - decorateElement: function decorateElement(e, r) { - for (var t = [], i = [], o = e.decorators, n = o.length - 1; n >= 0; n--) { - var s = r[e.placement]; - s.splice(s.indexOf(e.key), 1); - var a = this.fromElementDescriptor(e), - l = this.toElementFinisherExtras((0, o[n])(a) || a); - e = l.element, this.addElementPlacement(e, r), l.finisher && i.push(l.finisher); - var c = l.extras; - if (c) { - for (var p = 0; p < c.length; p++) this.addElementPlacement(c[p], r); - t.push.apply(t, c); - } - } - return { - element: e, - finishers: i, - extras: t - }; - }, - decorateConstructor: function decorateConstructor(e, r) { - for (var t = [], i = r.length - 1; i >= 0; i--) { - var o = this.fromClassDescriptor(e), - n = this.toClassDescriptor((0, r[i])(o) || o); - if (void 0 !== n.finisher && t.push(n.finisher), void 0 !== n.elements) { - e = n.elements; - for (var s = 0; s < e.length - 1; s++) for (var a = s + 1; a < e.length; a++) if (e[s].key === e[a].key && e[s].placement === e[a].placement) throw new TypeError("Duplicated element (" + e[s].key + ")"); - } - } - return { - elements: e, - finishers: t - }; - }, - fromElementDescriptor: function fromElementDescriptor(e) { - var r = { - kind: e.kind, - key: e.key, - placement: e.placement, - descriptor: e.descriptor - }; - return Object.defineProperty(r, Symbol.toStringTag, { - value: "Descriptor", - configurable: !0 - }), "field" === e.kind && (r.initializer = e.initializer), r; - }, - toElementDescriptors: function toElementDescriptors(e) { - if (void 0 !== e) return toArray(e).map(function (e) { - var r = this.toElementDescriptor(e); - return this.disallowProperty(e, "finisher", "An element descriptor"), this.disallowProperty(e, "extras", "An element descriptor"), r; - }, this); - }, - toElementDescriptor: function toElementDescriptor(e) { - var r = e.kind + ""; - if ("method" !== r && "field" !== r) throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "' + r + '"'); - var t = toPropertyKey(e.key), - i = e.placement + ""; - if ("static" !== i && "prototype" !== i && "own" !== i) throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "' + i + '"'); - var o = e.descriptor; - this.disallowProperty(e, "elements", "An element descriptor"); - var n = { - kind: r, - key: t, - placement: i, - descriptor: Object.assign({}, o) - }; - return "field" !== r ? this.disallowProperty(e, "initializer", "A method descriptor") : (this.disallowProperty(o, "get", "The property descriptor of a field descriptor"), this.disallowProperty(o, "set", "The property descriptor of a field descriptor"), this.disallowProperty(o, "value", "The property descriptor of a field descriptor"), n.initializer = e.initializer), n; - }, - toElementFinisherExtras: function toElementFinisherExtras(e) { - return { - element: this.toElementDescriptor(e), - finisher: _optionalCallableProperty(e, "finisher"), - extras: this.toElementDescriptors(e.extras) - }; - }, - fromClassDescriptor: function fromClassDescriptor(e) { - var r = { - kind: "class", - elements: e.map(this.fromElementDescriptor, this) - }; - return Object.defineProperty(r, Symbol.toStringTag, { - value: "Descriptor", - configurable: !0 - }), r; - }, - toClassDescriptor: function toClassDescriptor(e) { - var r = e.kind + ""; - if ("class" !== r) throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "' + r + '"'); - this.disallowProperty(e, "key", "A class descriptor"), this.disallowProperty(e, "placement", "A class descriptor"), this.disallowProperty(e, "descriptor", "A class descriptor"), this.disallowProperty(e, "initializer", "A class descriptor"), this.disallowProperty(e, "extras", "A class descriptor"); - var t = _optionalCallableProperty(e, "finisher"); - return { - elements: this.toElementDescriptors(e.elements), - finisher: t - }; - }, - runClassFinishers: function runClassFinishers(e, r) { - for (var t = 0; t < r.length; t++) { - var i = (0, r[t])(e); - if (void 0 !== i) { - if ("function" != typeof i) throw new TypeError("Finishers must return a constructor."); - e = i; - } - } - return e; - }, - disallowProperty: function disallowProperty(e, r, t) { - if (void 0 !== e[r]) throw new TypeError(t + " can't have a ." + r + " property."); - } - }; - return e; -} -function _createElementDescriptor(e) { - var r, - t = toPropertyKey(e.key); - "method" === e.kind ? r = { - value: e.value, - writable: !0, - configurable: !0, - enumerable: !1 - } : "get" === e.kind ? r = { - get: e.value, - configurable: !0, - enumerable: !1 - } : "set" === e.kind ? r = { - set: e.value, - configurable: !0, - enumerable: !1 - } : "field" === e.kind && (r = { - configurable: !0, - writable: !0, - enumerable: !0 - }); - var i = { - kind: "field" === e.kind ? "field" : "method", - key: t, - placement: e["static"] ? "static" : "field" === e.kind ? "own" : "prototype", - descriptor: r - }; - return e.decorators && (i.decorators = e.decorators), "field" === e.kind && (i.initializer = e.value), i; -} -function _coalesceGetterSetter(e, r) { - void 0 !== e.descriptor.get ? r.descriptor.get = e.descriptor.get : r.descriptor.set = e.descriptor.set; -} -function _coalesceClassElements(e) { - for (var r = [], isSameElement = function isSameElement(e) { - return "method" === e.kind && e.key === o.key && e.placement === o.placement; - }, t = 0; t < e.length; t++) { - var i, - o = e[t]; - if ("method" === o.kind && (i = r.find(isSameElement))) { - if (_isDataDescriptor(o.descriptor) || _isDataDescriptor(i.descriptor)) { - if (_hasDecorators(o) || _hasDecorators(i)) throw new ReferenceError("Duplicated methods (" + o.key + ") can't be decorated."); - i.descriptor = o.descriptor; - } else { - if (_hasDecorators(o)) { - if (_hasDecorators(i)) throw new ReferenceError("Decorators can't be placed on different accessors with for the same property (" + o.key + ")."); - i.decorators = o.decorators; - } - _coalesceGetterSetter(o, i); - } - } else r.push(o); - } - return r; -} -function _hasDecorators(e) { - return e.decorators && e.decorators.length; -} -function _isDataDescriptor(e) { - return void 0 !== e && !(void 0 === e.value && void 0 === e.writable); -} -function _optionalCallableProperty(e, r) { - var t = e[r]; - if (void 0 !== t && "function" != typeof t) throw new TypeError("Expected '" + r + "' to be a function"); - return t; -} -module.exports = _decorate, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/defaults.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/defaults.js deleted file mode 100644 index dfdbbb03..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/defaults.js +++ /dev/null @@ -1,9 +0,0 @@ -function _defaults(e, r) { - for (var t = Object.getOwnPropertyNames(r), o = 0; o < t.length; o++) { - var n = t[o], - a = Object.getOwnPropertyDescriptor(r, n); - a && a.configurable && void 0 === e[n] && Object.defineProperty(e, n, a); - } - return e; -} -module.exports = _defaults, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/defineAccessor.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/defineAccessor.js deleted file mode 100644 index dc065f01..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/defineAccessor.js +++ /dev/null @@ -1,8 +0,0 @@ -function _defineAccessor(e, r, n, t) { - var c = { - configurable: !0, - enumerable: !0 - }; - return c[e] = t, Object.defineProperty(r, n, c); -} -module.exports = _defineAccessor, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js deleted file mode 100644 index ab9f43c1..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +++ /dev/null @@ -1,12 +0,0 @@ -function _defineEnumerableProperties(e, r) { - for (var t in r) { - var n = r[t]; - n.configurable = n.enumerable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, t, n); - } - if (Object.getOwnPropertySymbols) for (var a = Object.getOwnPropertySymbols(r), b = 0; b < a.length; b++) { - var i = a[b]; - (n = r[i]).configurable = n.enumerable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, i, n); - } - return e; -} -module.exports = _defineEnumerableProperties, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/defineProperty.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/defineProperty.js deleted file mode 100644 index 2c2ff1e9..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/defineProperty.js +++ /dev/null @@ -1,10 +0,0 @@ -var toPropertyKey = require("./toPropertyKey.js"); -function _defineProperty(e, r, t) { - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { - value: t, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[r] = t, e; -} -module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/dispose.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/dispose.js deleted file mode 100644 index c20193ca..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/dispose.js +++ /dev/null @@ -1,28 +0,0 @@ -function dispose_SuppressedError(r, e) { - return "undefined" != typeof SuppressedError ? dispose_SuppressedError = SuppressedError : (dispose_SuppressedError = function dispose_SuppressedError(r, e) { - this.suppressed = e, this.error = r, this.stack = Error().stack; - }, dispose_SuppressedError.prototype = Object.create(Error.prototype, { - constructor: { - value: dispose_SuppressedError, - writable: !0, - configurable: !0 - } - })), new dispose_SuppressedError(r, e); -} -function _dispose(r, e, s) { - function next() { - for (; r.length > 0;) try { - var o = r.pop(), - p = o.d.call(o.v); - if (o.a) return Promise.resolve(p).then(next, err); - } catch (r) { - return err(r); - } - if (s) throw e; - } - function err(r) { - return e = s ? new dispose_SuppressedError(e, r) : r, s = !0, next(); - } - return next(); -} -module.exports = _dispose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/AwaitValue.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/AwaitValue.js deleted file mode 100644 index 6f210c9c..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +++ /dev/null @@ -1,4 +0,0 @@ -function _AwaitValue(t) { - this.wrapped = t; -} -export { _AwaitValue as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/OverloadYield.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/OverloadYield.js deleted file mode 100644 index d7753a66..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +++ /dev/null @@ -1,4 +0,0 @@ -function _OverloadYield(e, d) { - this.v = e, this.k = d; -} -export { _OverloadYield as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js deleted file mode 100644 index 0f33483d..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +++ /dev/null @@ -1,9 +0,0 @@ -function _applyDecoratedDescriptor(i, e, r, n, l) { - var a = {}; - return Object.keys(n).forEach(function (i) { - a[i] = n[i]; - }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { - return n(i, e, r) || r; - }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; -} -export { _applyDecoratedDescriptor as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecs.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecs.js deleted file mode 100644 index 2b75dfd7..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecs.js +++ /dev/null @@ -1,236 +0,0 @@ -import _typeof from "./typeof.js"; -import setFunctionName from "./setFunctionName.js"; -import toPropertyKey from "./toPropertyKey.js"; -function old_createMetadataMethodsForProperty(e, t, a, r) { - return { - getMetadata: function getMetadata(o) { - old_assertNotFinished(r, "getMetadata"), old_assertMetadataKey(o); - var i = e[o]; - if (void 0 !== i) if (1 === t) { - var n = i["public"]; - if (void 0 !== n) return n[a]; - } else if (2 === t) { - var l = i["private"]; - if (void 0 !== l) return l.get(a); - } else if (Object.hasOwnProperty.call(i, "constructor")) return i.constructor; - }, - setMetadata: function setMetadata(o, i) { - old_assertNotFinished(r, "setMetadata"), old_assertMetadataKey(o); - var n = e[o]; - if (void 0 === n && (n = e[o] = {}), 1 === t) { - var l = n["public"]; - void 0 === l && (l = n["public"] = {}), l[a] = i; - } else if (2 === t) { - var s = n.priv; - void 0 === s && (s = n["private"] = new Map()), s.set(a, i); - } else n.constructor = i; - } - }; -} -function old_convertMetadataMapToFinal(e, t) { - var a = e[Symbol.metadata || Symbol["for"]("Symbol.metadata")], - r = Object.getOwnPropertySymbols(t); - if (0 !== r.length) { - for (var o = 0; o < r.length; o++) { - var i = r[o], - n = t[i], - l = a ? a[i] : null, - s = n["public"], - c = l ? l["public"] : null; - s && c && Object.setPrototypeOf(s, c); - var d = n["private"]; - if (d) { - var u = Array.from(d.values()), - f = l ? l["private"] : null; - f && (u = u.concat(f)), n["private"] = u; - } - l && Object.setPrototypeOf(n, l); - } - a && Object.setPrototypeOf(t, a), e[Symbol.metadata || Symbol["for"]("Symbol.metadata")] = t; - } -} -function old_createAddInitializerMethod(e, t) { - return function (a) { - old_assertNotFinished(t, "addInitializer"), old_assertCallable(a, "An initializer"), e.push(a); - }; -} -function old_memberDec(e, t, a, r, o, i, n, l, s) { - var c; - switch (i) { - case 1: - c = "accessor"; - break; - case 2: - c = "method"; - break; - case 3: - c = "getter"; - break; - case 4: - c = "setter"; - break; - default: - c = "field"; - } - var d, - u, - f = { - kind: c, - name: l ? "#" + t : toPropertyKey(t), - isStatic: n, - isPrivate: l - }, - p = { - v: !1 - }; - if (0 !== i && (f.addInitializer = old_createAddInitializerMethod(o, p)), l) { - d = 2, u = Symbol(t); - var v = {}; - 0 === i ? (v.get = a.get, v.set = a.set) : 2 === i ? v.get = function () { - return a.value; - } : (1 !== i && 3 !== i || (v.get = function () { - return a.get.call(this); - }), 1 !== i && 4 !== i || (v.set = function (e) { - a.set.call(this, e); - })), f.access = v; - } else d = 1, u = t; - try { - return e(s, Object.assign(f, old_createMetadataMethodsForProperty(r, d, u, p))); - } finally { - p.v = !0; - } -} -function old_assertNotFinished(e, t) { - if (e.v) throw Error("attempted to call " + t + " after decoration was finished"); -} -function old_assertMetadataKey(e) { - if ("symbol" != _typeof(e)) throw new TypeError("Metadata keys must be symbols, received: " + e); -} -function old_assertCallable(e, t) { - if ("function" != typeof e) throw new TypeError(t + " must be a function"); -} -function old_assertValidReturnValue(e, t) { - var a = _typeof(t); - if (1 === e) { - if ("object" !== a || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== t.get && old_assertCallable(t.get, "accessor.get"), void 0 !== t.set && old_assertCallable(t.set, "accessor.set"), void 0 !== t.init && old_assertCallable(t.init, "accessor.init"), void 0 !== t.initializer && old_assertCallable(t.initializer, "accessor.initializer"); - } else if ("function" !== a) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); -} -function old_getInit(e) { - var t; - return null == (t = e.init) && (t = e.initializer) && void 0 !== console && console.warn(".initializer has been renamed to .init as of March 2022"), t; -} -function old_applyMemberDec(e, t, a, r, o, i, n, l, s) { - var c, - d, - u, - f, - p, - v, - y, - h = a[0]; - if (n ? (0 === o || 1 === o ? (c = { - get: a[3], - set: a[4] - }, u = "get") : 3 === o ? (c = { - get: a[3] - }, u = "get") : 4 === o ? (c = { - set: a[3] - }, u = "set") : c = { - value: a[3] - }, 0 !== o && (1 === o && setFunctionName(a[4], "#" + r, "set"), setFunctionName(a[3], "#" + r, u))) : 0 !== o && (c = Object.getOwnPropertyDescriptor(t, r)), 1 === o ? f = { - get: c.get, - set: c.set - } : 2 === o ? f = c.value : 3 === o ? f = c.get : 4 === o && (f = c.set), "function" == typeof h) void 0 !== (p = old_memberDec(h, r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? d = p : 1 === o ? (d = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = { - get: v, - set: y - }) : f = p);else for (var m = h.length - 1; m >= 0; m--) { - var b; - void 0 !== (p = old_memberDec(h[m], r, c, l, s, o, i, n, f)) && (old_assertValidReturnValue(o, p), 0 === o ? b = p : 1 === o ? (b = old_getInit(p), v = p.get || f.get, y = p.set || f.set, f = { - get: v, - set: y - }) : f = p, void 0 !== b && (void 0 === d ? d = b : "function" == typeof d ? d = [d, b] : d.push(b))); - } - if (0 === o || 1 === o) { - if (void 0 === d) d = function d(e, t) { - return t; - };else if ("function" != typeof d) { - var g = d; - d = function d(e, t) { - for (var a = t, r = 0; r < g.length; r++) a = g[r].call(e, a); - return a; - }; - } else { - var _ = d; - d = function d(e, t) { - return _.call(e, t); - }; - } - e.push(d); - } - 0 !== o && (1 === o ? (c.get = f.get, c.set = f.set) : 2 === o ? c.value = f : 3 === o ? c.get = f : 4 === o && (c.set = f), n ? 1 === o ? (e.push(function (e, t) { - return f.get.call(e, t); - }), e.push(function (e, t) { - return f.set.call(e, t); - })) : 2 === o ? e.push(f) : e.push(function (e, t) { - return f.call(e, t); - }) : Object.defineProperty(t, r, c)); -} -function old_applyMemberDecs(e, t, a, r, o) { - for (var i, n, l = new Map(), s = new Map(), c = 0; c < o.length; c++) { - var d = o[c]; - if (Array.isArray(d)) { - var u, - f, - p, - v = d[1], - y = d[2], - h = d.length > 3, - m = v >= 5; - if (m ? (u = t, f = r, 0 != (v -= 5) && (p = n = n || [])) : (u = t.prototype, f = a, 0 !== v && (p = i = i || [])), 0 !== v && !h) { - var b = m ? s : l, - g = b.get(y) || 0; - if (!0 === g || 3 === g && 4 !== v || 4 === g && 3 !== v) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + y); - !g && v > 2 ? b.set(y, v) : b.set(y, !0); - } - old_applyMemberDec(e, u, d, y, v, m, h, f, p); - } - } - old_pushInitializers(e, i), old_pushInitializers(e, n); -} -function old_pushInitializers(e, t) { - t && e.push(function (e) { - for (var a = 0; a < t.length; a++) t[a].call(e); - return e; - }); -} -function old_applyClassDecs(e, t, a, r) { - if (r.length > 0) { - for (var o = [], i = t, n = t.name, l = r.length - 1; l >= 0; l--) { - var s = { - v: !1 - }; - try { - var c = Object.assign({ - kind: "class", - name: n, - addInitializer: old_createAddInitializerMethod(o, s) - }, old_createMetadataMethodsForProperty(a, 0, n, s)), - d = r[l](i, c); - } finally { - s.v = !0; - } - void 0 !== d && (old_assertValidReturnValue(10, d), i = d); - } - e.push(i, function () { - for (var e = 0; e < o.length; e++) o[e].call(i); - }); - } -} -function applyDecs(e, t, a) { - var r = [], - o = {}, - i = {}; - return old_applyMemberDecs(r, e, i, o, t), old_convertMetadataMapToFinal(e.prototype, i), old_applyClassDecs(r, e, o, a), old_convertMetadataMapToFinal(e, o), r; -} -export { applyDecs as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js deleted file mode 100644 index 8a9d7c54..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +++ /dev/null @@ -1,184 +0,0 @@ -import _typeof from "./typeof.js"; -function applyDecs2203Factory() { - function createAddInitializerMethod(e, t) { - return function (r) { - !function (e) { - if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); - }(t), assertCallable(r, "An initializer"), e.push(r); - }; - } - function memberDec(e, t, r, a, n, i, s, o) { - var c; - switch (n) { - case 1: - c = "accessor"; - break; - case 2: - c = "method"; - break; - case 3: - c = "getter"; - break; - case 4: - c = "setter"; - break; - default: - c = "field"; - } - var l, - u, - f = { - kind: c, - name: s ? "#" + t : t, - "static": i, - "private": s - }, - p = { - v: !1 - }; - 0 !== n && (f.addInitializer = createAddInitializerMethod(a, p)), 0 === n ? s ? (l = r.get, u = r.set) : (l = function l() { - return this[t]; - }, u = function u(e) { - this[t] = e; - }) : 2 === n ? l = function l() { - return r.value; - } : (1 !== n && 3 !== n || (l = function l() { - return r.get.call(this); - }), 1 !== n && 4 !== n || (u = function u(e) { - r.set.call(this, e); - })), f.access = l && u ? { - get: l, - set: u - } : l ? { - get: l - } : { - set: u - }; - try { - return e(o, f); - } finally { - p.v = !0; - } - } - function assertCallable(e, t) { - if ("function" != typeof e) throw new TypeError(t + " must be a function"); - } - function assertValidReturnValue(e, t) { - var r = _typeof(t); - if (1 === e) { - if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); - } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); - } - function applyMemberDec(e, t, r, a, n, i, s, o) { - var c, - l, - u, - f, - p, - d, - h = r[0]; - if (s ? c = 0 === n || 1 === n ? { - get: r[3], - set: r[4] - } : 3 === n ? { - get: r[3] - } : 4 === n ? { - set: r[3] - } : { - value: r[3] - } : 0 !== n && (c = Object.getOwnPropertyDescriptor(t, a)), 1 === n ? u = { - get: c.get, - set: c.set - } : 2 === n ? u = c.value : 3 === n ? u = c.get : 4 === n && (u = c.set), "function" == typeof h) void 0 !== (f = memberDec(h, a, c, o, n, i, s, u)) && (assertValidReturnValue(n, f), 0 === n ? l = f : 1 === n ? (l = f.init, p = f.get || u.get, d = f.set || u.set, u = { - get: p, - set: d - }) : u = f);else for (var v = h.length - 1; v >= 0; v--) { - var g; - void 0 !== (f = memberDec(h[v], a, c, o, n, i, s, u)) && (assertValidReturnValue(n, f), 0 === n ? g = f : 1 === n ? (g = f.init, p = f.get || u.get, d = f.set || u.set, u = { - get: p, - set: d - }) : u = f, void 0 !== g && (void 0 === l ? l = g : "function" == typeof l ? l = [l, g] : l.push(g))); - } - if (0 === n || 1 === n) { - if (void 0 === l) l = function l(e, t) { - return t; - };else if ("function" != typeof l) { - var y = l; - l = function l(e, t) { - for (var r = t, a = 0; a < y.length; a++) r = y[a].call(e, r); - return r; - }; - } else { - var m = l; - l = function l(e, t) { - return m.call(e, t); - }; - } - e.push(l); - } - 0 !== n && (1 === n ? (c.get = u.get, c.set = u.set) : 2 === n ? c.value = u : 3 === n ? c.get = u : 4 === n && (c.set = u), s ? 1 === n ? (e.push(function (e, t) { - return u.get.call(e, t); - }), e.push(function (e, t) { - return u.set.call(e, t); - })) : 2 === n ? e.push(u) : e.push(function (e, t) { - return u.call(e, t); - }) : Object.defineProperty(t, a, c)); - } - function pushInitializers(e, t) { - t && e.push(function (e) { - for (var r = 0; r < t.length; r++) t[r].call(e); - return e; - }); - } - return function (e, t, r) { - var a = []; - return function (e, t, r) { - for (var a, n, i = new Map(), s = new Map(), o = 0; o < r.length; o++) { - var c = r[o]; - if (Array.isArray(c)) { - var l, - u, - f = c[1], - p = c[2], - d = c.length > 3, - h = f >= 5; - if (h ? (l = t, 0 != (f -= 5) && (u = n = n || [])) : (l = t.prototype, 0 !== f && (u = a = a || [])), 0 !== f && !d) { - var v = h ? s : i, - g = v.get(p) || 0; - if (!0 === g || 3 === g && 4 !== f || 4 === g && 3 !== f) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p); - !g && f > 2 ? v.set(p, f) : v.set(p, !0); - } - applyMemberDec(e, l, c, p, f, h, d, u); - } - } - pushInitializers(e, a), pushInitializers(e, n); - }(a, e, t), function (e, t, r) { - if (r.length > 0) { - for (var a = [], n = t, i = t.name, s = r.length - 1; s >= 0; s--) { - var o = { - v: !1 - }; - try { - var c = r[s](n, { - kind: "class", - name: i, - addInitializer: createAddInitializerMethod(a, o) - }); - } finally { - o.v = !0; - } - void 0 !== c && (assertValidReturnValue(10, c), n = c); - } - e.push(n, function () { - for (var e = 0; e < a.length; e++) a[e].call(n); - }); - } - }(a, e, r), a; - }; -} -var applyDecs2203Impl; -function applyDecs2203(e, t, r) { - return (applyDecs2203Impl = applyDecs2203Impl || applyDecs2203Factory())(e, t, r); -} -export { applyDecs2203 as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js deleted file mode 100644 index bccc42e4..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js +++ /dev/null @@ -1,191 +0,0 @@ -import _typeof from "./typeof.js"; -import setFunctionName from "./setFunctionName.js"; -import toPropertyKey from "./toPropertyKey.js"; -function applyDecs2203RFactory() { - function createAddInitializerMethod(e, t) { - return function (r) { - !function (e) { - if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); - }(t), assertCallable(r, "An initializer"), e.push(r); - }; - } - function memberDec(e, t, r, n, a, i, o, s) { - var c; - switch (a) { - case 1: - c = "accessor"; - break; - case 2: - c = "method"; - break; - case 3: - c = "getter"; - break; - case 4: - c = "setter"; - break; - default: - c = "field"; - } - var l, - u, - f = { - kind: c, - name: o ? "#" + t : toPropertyKey(t), - "static": i, - "private": o - }, - p = { - v: !1 - }; - 0 !== a && (f.addInitializer = createAddInitializerMethod(n, p)), 0 === a ? o ? (l = r.get, u = r.set) : (l = function l() { - return this[t]; - }, u = function u(e) { - this[t] = e; - }) : 2 === a ? l = function l() { - return r.value; - } : (1 !== a && 3 !== a || (l = function l() { - return r.get.call(this); - }), 1 !== a && 4 !== a || (u = function u(e) { - r.set.call(this, e); - })), f.access = l && u ? { - get: l, - set: u - } : l ? { - get: l - } : { - set: u - }; - try { - return e(s, f); - } finally { - p.v = !0; - } - } - function assertCallable(e, t) { - if ("function" != typeof e) throw new TypeError(t + " must be a function"); - } - function assertValidReturnValue(e, t) { - var r = _typeof(t); - if (1 === e) { - if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); - } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); - } - function applyMemberDec(e, t, r, n, a, i, o, s) { - var c, - l, - u, - f, - p, - d, - h, - v = r[0]; - if (o ? (0 === a || 1 === a ? (c = { - get: r[3], - set: r[4] - }, u = "get") : 3 === a ? (c = { - get: r[3] - }, u = "get") : 4 === a ? (c = { - set: r[3] - }, u = "set") : c = { - value: r[3] - }, 0 !== a && (1 === a && setFunctionName(r[4], "#" + n, "set"), setFunctionName(r[3], "#" + n, u))) : 0 !== a && (c = Object.getOwnPropertyDescriptor(t, n)), 1 === a ? f = { - get: c.get, - set: c.set - } : 2 === a ? f = c.value : 3 === a ? f = c.get : 4 === a && (f = c.set), "function" == typeof v) void 0 !== (p = memberDec(v, n, c, s, a, i, o, f)) && (assertValidReturnValue(a, p), 0 === a ? l = p : 1 === a ? (l = p.init, d = p.get || f.get, h = p.set || f.set, f = { - get: d, - set: h - }) : f = p);else for (var g = v.length - 1; g >= 0; g--) { - var y; - void 0 !== (p = memberDec(v[g], n, c, s, a, i, o, f)) && (assertValidReturnValue(a, p), 0 === a ? y = p : 1 === a ? (y = p.init, d = p.get || f.get, h = p.set || f.set, f = { - get: d, - set: h - }) : f = p, void 0 !== y && (void 0 === l ? l = y : "function" == typeof l ? l = [l, y] : l.push(y))); - } - if (0 === a || 1 === a) { - if (void 0 === l) l = function l(e, t) { - return t; - };else if ("function" != typeof l) { - var m = l; - l = function l(e, t) { - for (var r = t, n = 0; n < m.length; n++) r = m[n].call(e, r); - return r; - }; - } else { - var b = l; - l = function l(e, t) { - return b.call(e, t); - }; - } - e.push(l); - } - 0 !== a && (1 === a ? (c.get = f.get, c.set = f.set) : 2 === a ? c.value = f : 3 === a ? c.get = f : 4 === a && (c.set = f), o ? 1 === a ? (e.push(function (e, t) { - return f.get.call(e, t); - }), e.push(function (e, t) { - return f.set.call(e, t); - })) : 2 === a ? e.push(f) : e.push(function (e, t) { - return f.call(e, t); - }) : Object.defineProperty(t, n, c)); - } - function applyMemberDecs(e, t) { - for (var r, n, a = [], i = new Map(), o = new Map(), s = 0; s < t.length; s++) { - var c = t[s]; - if (Array.isArray(c)) { - var l, - u, - f = c[1], - p = c[2], - d = c.length > 3, - h = f >= 5; - if (h ? (l = e, 0 != (f -= 5) && (u = n = n || [])) : (l = e.prototype, 0 !== f && (u = r = r || [])), 0 !== f && !d) { - var v = h ? o : i, - g = v.get(p) || 0; - if (!0 === g || 3 === g && 4 !== f || 4 === g && 3 !== f) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + p); - !g && f > 2 ? v.set(p, f) : v.set(p, !0); - } - applyMemberDec(a, l, c, p, f, h, d, u); - } - } - return pushInitializers(a, r), pushInitializers(a, n), a; - } - function pushInitializers(e, t) { - t && e.push(function (e) { - for (var r = 0; r < t.length; r++) t[r].call(e); - return e; - }); - } - return function (e, t, r) { - return { - e: applyMemberDecs(e, t), - get c() { - return function (e, t) { - if (t.length > 0) { - for (var r = [], n = e, a = e.name, i = t.length - 1; i >= 0; i--) { - var o = { - v: !1 - }; - try { - var s = t[i](n, { - kind: "class", - name: a, - addInitializer: createAddInitializerMethod(r, o) - }); - } finally { - o.v = !0; - } - void 0 !== s && (assertValidReturnValue(10, s), n = s); - } - return [n, function () { - for (var e = 0; e < r.length; e++) r[e].call(n); - }]; - } - }(e, r); - } - }; - }; -} -function applyDecs2203R(e, t, r) { - return (applyDecs2203R = applyDecs2203RFactory())(e, t, r); -} -export { applyDecs2203R as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js deleted file mode 100644 index 8d110f78..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js +++ /dev/null @@ -1,222 +0,0 @@ -import _typeof from "./typeof.js"; -import checkInRHS from "./checkInRHS.js"; -import setFunctionName from "./setFunctionName.js"; -import toPropertyKey from "./toPropertyKey.js"; -function applyDecs2301Factory() { - function createAddInitializerMethod(e, t) { - return function (r) { - !function (e) { - if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); - }(t), assertCallable(r, "An initializer"), e.push(r); - }; - } - function assertInstanceIfPrivate(e, t) { - if (!e(t)) throw new TypeError("Attempted to access private element on non-instance"); - } - function memberDec(e, t, r, n, a, i, s, o, c) { - var u; - switch (a) { - case 1: - u = "accessor"; - break; - case 2: - u = "method"; - break; - case 3: - u = "getter"; - break; - case 4: - u = "setter"; - break; - default: - u = "field"; - } - var l, - f, - p = { - kind: u, - name: s ? "#" + t : toPropertyKey(t), - "static": i, - "private": s - }, - d = { - v: !1 - }; - if (0 !== a && (p.addInitializer = createAddInitializerMethod(n, d)), s || 0 !== a && 2 !== a) { - if (2 === a) l = function l(e) { - return assertInstanceIfPrivate(c, e), r.value; - };else { - var h = 0 === a || 1 === a; - (h || 3 === a) && (l = s ? function (e) { - return assertInstanceIfPrivate(c, e), r.get.call(e); - } : function (e) { - return r.get.call(e); - }), (h || 4 === a) && (f = s ? function (e, t) { - assertInstanceIfPrivate(c, e), r.set.call(e, t); - } : function (e, t) { - r.set.call(e, t); - }); - } - } else l = function l(e) { - return e[t]; - }, 0 === a && (f = function f(e, r) { - e[t] = r; - }); - var v = s ? c.bind() : function (e) { - return t in e; - }; - p.access = l && f ? { - get: l, - set: f, - has: v - } : l ? { - get: l, - has: v - } : { - set: f, - has: v - }; - try { - return e(o, p); - } finally { - d.v = !0; - } - } - function assertCallable(e, t) { - if ("function" != typeof e) throw new TypeError(t + " must be a function"); - } - function assertValidReturnValue(e, t) { - var r = _typeof(t); - if (1 === e) { - if ("object" !== r || null === t) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== t.get && assertCallable(t.get, "accessor.get"), void 0 !== t.set && assertCallable(t.set, "accessor.set"), void 0 !== t.init && assertCallable(t.init, "accessor.init"); - } else if ("function" !== r) throw new TypeError((0 === e ? "field" : 10 === e ? "class" : "method") + " decorators must return a function or void 0"); - } - function curryThis2(e) { - return function (t) { - e(this, t); - }; - } - function applyMemberDec(e, t, r, n, a, i, s, o, c) { - var u, - l, - f, - p, - d, - h, - v, - y, - g = r[0]; - if (s ? (0 === a || 1 === a ? (u = { - get: (d = r[3], function () { - return d(this); - }), - set: curryThis2(r[4]) - }, f = "get") : 3 === a ? (u = { - get: r[3] - }, f = "get") : 4 === a ? (u = { - set: r[3] - }, f = "set") : u = { - value: r[3] - }, 0 !== a && (1 === a && setFunctionName(u.set, "#" + n, "set"), setFunctionName(u[f || "value"], "#" + n, f))) : 0 !== a && (u = Object.getOwnPropertyDescriptor(t, n)), 1 === a ? p = { - get: u.get, - set: u.set - } : 2 === a ? p = u.value : 3 === a ? p = u.get : 4 === a && (p = u.set), "function" == typeof g) void 0 !== (h = memberDec(g, n, u, o, a, i, s, p, c)) && (assertValidReturnValue(a, h), 0 === a ? l = h : 1 === a ? (l = h.init, v = h.get || p.get, y = h.set || p.set, p = { - get: v, - set: y - }) : p = h);else for (var m = g.length - 1; m >= 0; m--) { - var b; - void 0 !== (h = memberDec(g[m], n, u, o, a, i, s, p, c)) && (assertValidReturnValue(a, h), 0 === a ? b = h : 1 === a ? (b = h.init, v = h.get || p.get, y = h.set || p.set, p = { - get: v, - set: y - }) : p = h, void 0 !== b && (void 0 === l ? l = b : "function" == typeof l ? l = [l, b] : l.push(b))); - } - if (0 === a || 1 === a) { - if (void 0 === l) l = function l(e, t) { - return t; - };else if ("function" != typeof l) { - var I = l; - l = function l(e, t) { - for (var r = t, n = 0; n < I.length; n++) r = I[n].call(e, r); - return r; - }; - } else { - var w = l; - l = function l(e, t) { - return w.call(e, t); - }; - } - e.push(l); - } - 0 !== a && (1 === a ? (u.get = p.get, u.set = p.set) : 2 === a ? u.value = p : 3 === a ? u.get = p : 4 === a && (u.set = p), s ? 1 === a ? (e.push(function (e, t) { - return p.get.call(e, t); - }), e.push(function (e, t) { - return p.set.call(e, t); - })) : 2 === a ? e.push(p) : e.push(function (e, t) { - return p.call(e, t); - }) : Object.defineProperty(t, n, u)); - } - function applyMemberDecs(e, t, r) { - for (var n, a, i, s = [], o = new Map(), c = new Map(), u = 0; u < t.length; u++) { - var l = t[u]; - if (Array.isArray(l)) { - var f, - p, - d = l[1], - h = l[2], - v = l.length > 3, - y = d >= 5, - g = r; - if (y ? (f = e, 0 != (d -= 5) && (p = a = a || []), v && !i && (i = function i(t) { - return checkInRHS(t) === e; - }), g = i) : (f = e.prototype, 0 !== d && (p = n = n || [])), 0 !== d && !v) { - var m = y ? c : o, - b = m.get(h) || 0; - if (!0 === b || 3 === b && 4 !== d || 4 === b && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); - !b && d > 2 ? m.set(h, d) : m.set(h, !0); - } - applyMemberDec(s, f, l, h, d, y, v, p, g); - } - } - return pushInitializers(s, n), pushInitializers(s, a), s; - } - function pushInitializers(e, t) { - t && e.push(function (e) { - for (var r = 0; r < t.length; r++) t[r].call(e); - return e; - }); - } - return function (e, t, r, n) { - return { - e: applyMemberDecs(e, t, n), - get c() { - return function (e, t) { - if (t.length > 0) { - for (var r = [], n = e, a = e.name, i = t.length - 1; i >= 0; i--) { - var s = { - v: !1 - }; - try { - var o = t[i](n, { - kind: "class", - name: a, - addInitializer: createAddInitializerMethod(r, s) - }); - } finally { - s.v = !0; - } - void 0 !== o && (assertValidReturnValue(10, o), n = o); - } - return [n, function () { - for (var e = 0; e < r.length; e++) r[e].call(n); - }]; - } - }(e, r); - } - }; - }; -} -function applyDecs2301(e, t, r, n) { - return (applyDecs2301 = applyDecs2301Factory())(e, t, r, n); -} -export { applyDecs2301 as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js deleted file mode 100644 index a11b2b90..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js +++ /dev/null @@ -1,133 +0,0 @@ -import _typeof from "./typeof.js"; -import checkInRHS from "./checkInRHS.js"; -import setFunctionName from "./setFunctionName.js"; -import toPropertyKey from "./toPropertyKey.js"; -function applyDecs2305(e, t, r, n, o, a) { - function i(e, t, r) { - return function (n, o) { - return r && r(n), e[t].call(n, o); - }; - } - function c(e, t) { - for (var r = 0; r < e.length; r++) e[r].call(t); - return t; - } - function s(e, t, r, n) { - if ("function" != typeof e && (n || void 0 !== e)) throw new TypeError(t + " must " + (r || "be") + " a function" + (n ? "" : " or undefined")); - return e; - } - function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) { - function m(e) { - if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); - } - var y, - v = t[0], - g = t[3], - b = !u; - if (!b) { - r || Array.isArray(v) || (v = [v]); - var w = {}, - S = [], - A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; - f ? (p || d ? w = { - get: setFunctionName(function () { - return g(this); - }, n, "get"), - set: function set(e) { - t[4](this, e); - } - } : w[A] = g, p || setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); - } - for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { - var D = v[j], - E = r ? v[j - 1] : void 0, - I = {}, - O = { - kind: ["field", "accessor", "method", "getter", "setter", "class"][o], - name: n, - metadata: a, - addInitializer: function (e, t) { - if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); - s(t, "An initializer", "be", !0), c.push(t); - }.bind(null, I) - }; - try { - if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { - var k, F; - O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { - return m(e), w.value; - } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { - return e[n]; - }, (o < 2 || 4 === o) && (F = function F(e, t) { - e[n] = t; - })); - var N = O.access = { - has: f ? h.bind() : function (e) { - return n in e; - } - }; - if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { - get: w.get, - set: w.set - } : w[A], O), d) { - if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); - } - } finally { - I.v = !0; - } - } - return (p || d) && u.push(function (e, t) { - for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); - return t; - }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; - } - function u(e, t) { - return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { - configurable: !0, - enumerable: !0, - value: t - }); - } - if (arguments.length >= 6) var l = a[Symbol.metadata || Symbol["for"]("Symbol.metadata")]; - var f = Object.create(null == l ? null : l), - p = function (e, t, r, n) { - var o, - a, - i = [], - s = function s(t) { - return checkInRHS(t) === e; - }, - u = new Map(); - function l(e) { - e && i.push(c.bind(null, e)); - } - for (var f = 0; f < t.length; f++) { - var p = t[f]; - if (Array.isArray(p)) { - var d = p[1], - h = p[2], - m = p.length > 3, - y = 16 & d, - v = !!(8 & d), - g = 0 == (d &= 7), - b = h + "/" + v; - if (!g && !m) { - var w = u.get(b); - if (!0 === w || 3 === w && 4 !== d || 4 === w && 3 !== d) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h); - u.set(b, !(d > 2) || d); - } - applyDec(v ? e : e.prototype, p, y, m ? "#" + h : toPropertyKey(h), d, n, v ? a = a || [] : o = o || [], i, v, m, g, 1 === d, v && m ? s : r); - } - } - return l(o), l(a), i; - }(e, t, o, f); - return r.length || u(e, f), { - e: p, - get c() { - var t = []; - return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; - } - }; -} -export { applyDecs2305 as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js deleted file mode 100644 index ab8c0fd5..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js +++ /dev/null @@ -1,124 +0,0 @@ -import _typeof from "./typeof.js"; -import checkInRHS from "./checkInRHS.js"; -import setFunctionName from "./setFunctionName.js"; -import toPropertyKey from "./toPropertyKey.js"; -function applyDecs2311(e, t, n, r, o, i) { - var a, - c, - u, - s, - f, - l, - p, - d = Symbol.metadata || Symbol["for"]("Symbol.metadata"), - m = Object.defineProperty, - h = Object.create, - y = [h(null), h(null)], - v = t.length; - function g(t, n, r) { - return function (o, i) { - n && (i = o, o = e); - for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []); - return r ? i : o; - }; - } - function b(e, t, n, r) { - if ("function" != typeof e && (r || void 0 !== e)) throw new TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined")); - return e; - } - function applyDec(e, t, n, r, o, i, u, s, f, l, p) { - function d(e) { - if (!p(e)) throw new TypeError("Attempted to access private element on non-instance"); - } - var h = [].concat(t[0]), - v = t[3], - w = !u, - D = 1 === o, - S = 3 === o, - j = 4 === o, - E = 2 === o; - function I(t, n, r) { - return function (o, i) { - return n && (i = o, o = e), r && r(o), P[t].call(o, i); - }; - } - if (!w) { - var P = {}, - k = [], - F = S ? "get" : j || D ? "set" : "value"; - if (f ? (l || D ? P = { - get: setFunctionName(function () { - return v(this); - }, r, "get"), - set: function set(e) { - t[4](this, e); - } - } : P[F] = v, l || setFunctionName(P[F], r, E ? "" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) { - if ((c = y[+s][r]) && 7 !== (c ^ o)) throw Error("Decorating two elements with the same name (" + P[F].name + ") is not supported yet"); - y[+s][r] = o < 3 ? 1 : o; - } - } - for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) { - var T = b(h[O], "A decorator", "be", !0), - z = n ? h[O - 1] : void 0, - A = {}, - H = { - kind: ["field", "accessor", "method", "getter", "setter", "class"][o], - name: r, - metadata: a, - addInitializer: function (e, t) { - if (e.v) throw new TypeError("attempted to call addInitializer after decoration was finished"); - b(t, "An initializer", "be", !0), i.push(t); - }.bind(null, A) - }; - if (w) c = T.call(z, N, H), A.v = 1, b(c, "class decorators", "return") && (N = c);else if (H["static"] = s, H["private"] = f, c = H.access = { - has: f ? p.bind() : function (e) { - return r in e; - } - }, j || (c.get = f ? E ? function (e) { - return d(e), P.value; - } : I("get", 0, d) : function (e) { - return e[r]; - }), E || S || (c.set = f ? I("set", 0, d) : function (e, t) { - e[r] = t; - }), N = T.call(z, D ? { - get: P.get, - set: P.set - } : P[F], H), A.v = 1, D) { - if ("object" == _typeof(N) && N) (c = b(N.get, "accessor.get")) && (P.get = c), (c = b(N.set, "accessor.set")) && (P.set = c), (c = b(N.init, "accessor.init")) && k.unshift(c);else if (void 0 !== N) throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined"); - } else b(N, (l ? "field" : "method") + " decorators", "return") && (l ? k.unshift(N) : P[F] = N); - } - return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I("get", s), I("set", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N; - } - function w(e) { - return m(e, d, { - configurable: !0, - enumerable: !0, - value: a - }); - } - return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function l(e) { - e && f.push(g(e)); - }, p = function p(t, r) { - for (var i = 0; i < n.length; i++) { - var a = n[i], - c = a[1], - l = 7 & c; - if ((8 & c) == t && !l == r) { - var p = a[2], - d = !!a[3], - m = 16 & c; - applyDec(t ? e : e.prototype, a, m, d ? "#" + p : toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) { - return checkInRHS(t) === e; - } : o); - } - } - }, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), { - e: c, - get c() { - var n = []; - return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)]; - } - }; -} -export { applyDecs2311 as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js deleted file mode 100644 index 9ace7724..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +++ /dev/null @@ -1,6 +0,0 @@ -function _arrayLikeToArray(r, a) { - (null == a || a > r.length) && (a = r.length); - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; - return n; -} -export { _arrayLikeToArray as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js deleted file mode 100644 index 99fa7154..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +++ /dev/null @@ -1,4 +0,0 @@ -function _arrayWithHoles(r) { - if (Array.isArray(r)) return r; -} -export { _arrayWithHoles as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js deleted file mode 100644 index 1ce6f214..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +++ /dev/null @@ -1,5 +0,0 @@ -import arrayLikeToArray from "./arrayLikeToArray.js"; -function _arrayWithoutHoles(r) { - if (Array.isArray(r)) return arrayLikeToArray(r); -} -export { _arrayWithoutHoles as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js deleted file mode 100644 index ae7b7126..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js +++ /dev/null @@ -1,5 +0,0 @@ -function _assertClassBrand(e, t, n) { - if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; - throw new TypeError("Private element is not present on this object"); -} -export { _assertClassBrand as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js deleted file mode 100644 index 4a41bde6..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +++ /dev/null @@ -1,5 +0,0 @@ -function _assertThisInitialized(e) { - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return e; -} -export { _assertThisInitialized as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js deleted file mode 100644 index e0266897..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +++ /dev/null @@ -1,24 +0,0 @@ -import OverloadYield from "./OverloadYield.js"; -function _asyncGeneratorDelegate(t) { - var e = {}, - n = !1; - function pump(e, r) { - return n = !0, r = new Promise(function (n) { - n(t[e](r)); - }), { - done: !1, - value: new OverloadYield(r, 1) - }; - } - return e["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () { - return this; - }, e.next = function (t) { - return n ? (n = !1, t) : pump("next", t); - }, "function" == typeof t["throw"] && (e["throw"] = function (t) { - if (n) throw n = !1, t; - return pump("throw", t); - }), "function" == typeof t["return"] && (e["return"] = function (t) { - return n ? (n = !1, t) : pump("return", t); - }), e; -} -export { _asyncGeneratorDelegate as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/asyncIterator.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/asyncIterator.js deleted file mode 100644 index 2ed00b79..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +++ /dev/null @@ -1,45 +0,0 @@ -function _asyncIterator(r) { - var n, - t, - o, - e = 2; - for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { - if (t && null != (n = r[t])) return n.call(r); - if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); - t = "@@asyncIterator", o = "@@iterator"; - } - throw new TypeError("Object is not async iterable"); -} -function AsyncFromSyncIterator(r) { - function AsyncFromSyncIteratorContinuation(r) { - if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); - var n = r.done; - return Promise.resolve(r.value).then(function (r) { - return { - value: r, - done: n - }; - }); - } - return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { - this.s = r, this.n = r.next; - }, AsyncFromSyncIterator.prototype = { - s: null, - n: null, - next: function next() { - return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); - }, - "return": function _return(r) { - var n = this.s["return"]; - return void 0 === n ? Promise.resolve({ - value: r, - done: !0 - }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); - }, - "throw": function _throw(r) { - var n = this.s["return"]; - return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); - } - }, new AsyncFromSyncIterator(r); -} -export { _asyncIterator as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js deleted file mode 100644 index 00f29b1f..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +++ /dev/null @@ -1,26 +0,0 @@ -function asyncGeneratorStep(n, t, e, r, o, a, c) { - try { - var i = n[a](c), - u = i.value; - } catch (n) { - return void e(n); - } - i.done ? t(u) : Promise.resolve(u).then(r, o); -} -function _asyncToGenerator(n) { - return function () { - var t = this, - e = arguments; - return new Promise(function (r, o) { - var a = n.apply(t, e); - function _next(n) { - asyncGeneratorStep(a, r, o, _next, _throw, "next", n); - } - function _throw(n) { - asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); - } - _next(void 0); - }); - }; -} -export { _asyncToGenerator as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js deleted file mode 100644 index 097c88c9..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +++ /dev/null @@ -1,5 +0,0 @@ -import OverloadYield from "./OverloadYield.js"; -function _awaitAsyncGenerator(e) { - return new OverloadYield(e, 0); -} -export { _awaitAsyncGenerator as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/callSuper.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/callSuper.js deleted file mode 100644 index 6d17a4ee..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/callSuper.js +++ /dev/null @@ -1,7 +0,0 @@ -import getPrototypeOf from "./getPrototypeOf.js"; -import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; -import possibleConstructorReturn from "./possibleConstructorReturn.js"; -function _callSuper(t, o, e) { - return o = getPrototypeOf(o), possibleConstructorReturn(t, isNativeReflectConstruct() ? Reflect.construct(o, e || [], getPrototypeOf(t).constructor) : o.apply(t, e)); -} -export { _callSuper as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/checkInRHS.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/checkInRHS.js deleted file mode 100644 index 12f59b4c..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/checkInRHS.js +++ /dev/null @@ -1,6 +0,0 @@ -import _typeof from "./typeof.js"; -function _checkInRHS(e) { - if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); - return e; -} -export { _checkInRHS as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js deleted file mode 100644 index e9e6b3b4..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +++ /dev/null @@ -1,4 +0,0 @@ -function _checkPrivateRedeclaration(e, t) { - if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); -} -export { _checkPrivateRedeclaration as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js deleted file mode 100644 index 56234195..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +++ /dev/null @@ -1,10 +0,0 @@ -function _classApplyDescriptorDestructureSet(e, t) { - if (t.set) return "__destrObj" in t || (t.__destrObj = { - set value(r) { - t.set.call(e, r); - } - }), t.__destrObj; - if (!t.writable) throw new TypeError("attempted to set read only private field"); - return t; -} -export { _classApplyDescriptorDestructureSet as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js deleted file mode 100644 index b9259d3e..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +++ /dev/null @@ -1,4 +0,0 @@ -function _classApplyDescriptorGet(e, t) { - return t.get ? t.get.call(e) : t.value; -} -export { _classApplyDescriptorGet as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js deleted file mode 100644 index d9c4fbd2..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +++ /dev/null @@ -1,7 +0,0 @@ -function _classApplyDescriptorSet(e, t, l) { - if (t.set) t.set.call(e, l);else { - if (!t.writable) throw new TypeError("attempted to set read only private field"); - t.value = l; - } -} -export { _classApplyDescriptorSet as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classCallCheck.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classCallCheck.js deleted file mode 100644 index bf972193..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +++ /dev/null @@ -1,4 +0,0 @@ -function _classCallCheck(a, n) { - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); -} -export { _classCallCheck as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js deleted file mode 100644 index 366ed05e..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +++ /dev/null @@ -1,5 +0,0 @@ -import assertClassBrand from "./assertClassBrand.js"; -function _classCheckPrivateStaticAccess(s, a, r) { - return assertClassBrand(a, s, r); -} -export { _classCheckPrivateStaticAccess as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js deleted file mode 100644 index 844be91a..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +++ /dev/null @@ -1,4 +0,0 @@ -function _classCheckPrivateStaticFieldDescriptor(t, e) { - if (void 0 === t) throw new TypeError("attempted to " + e + " private static field before its declaration"); -} -export { _classCheckPrivateStaticFieldDescriptor as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js deleted file mode 100644 index 652689d1..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +++ /dev/null @@ -1,5 +0,0 @@ -import classPrivateFieldGet2 from "./classPrivateFieldGet2.js"; -function _classExtractFieldDescriptor(e, t) { - return classPrivateFieldGet2(t, e); -} -export { _classExtractFieldDescriptor as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js deleted file mode 100644 index 68e76ff7..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +++ /dev/null @@ -1,4 +0,0 @@ -function _classNameTDZError(e) { - throw new ReferenceError('Class "' + e + '" cannot be referenced in computed property keys.'); -} -export { _classNameTDZError as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js deleted file mode 100644 index 93033663..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +++ /dev/null @@ -1,7 +0,0 @@ -import classApplyDescriptorDestructureSet from "./classApplyDescriptorDestructureSet.js"; -import classPrivateFieldGet2 from "./classPrivateFieldGet2.js"; -function _classPrivateFieldDestructureSet(e, t) { - var r = classPrivateFieldGet2(t, e); - return classApplyDescriptorDestructureSet(e, r); -} -export { _classPrivateFieldDestructureSet as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js deleted file mode 100644 index ce7ebcb7..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +++ /dev/null @@ -1,7 +0,0 @@ -import classApplyDescriptorGet from "./classApplyDescriptorGet.js"; -import classPrivateFieldGet2 from "./classPrivateFieldGet2.js"; -function _classPrivateFieldGet(e, t) { - var r = classPrivateFieldGet2(t, e); - return classApplyDescriptorGet(e, r); -} -export { _classPrivateFieldGet as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js deleted file mode 100644 index 4aa3da6b..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js +++ /dev/null @@ -1,5 +0,0 @@ -import assertClassBrand from "./assertClassBrand.js"; -function _classPrivateFieldGet2(s, a) { - return s.get(assertClassBrand(s, a)); -} -export { _classPrivateFieldGet2 as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js deleted file mode 100644 index 5dcdbe04..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +++ /dev/null @@ -1,5 +0,0 @@ -import checkPrivateRedeclaration from "./checkPrivateRedeclaration.js"; -function _classPrivateFieldInitSpec(e, t, a) { - checkPrivateRedeclaration(e, t), t.set(e, a); -} -export { _classPrivateFieldInitSpec as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js deleted file mode 100644 index 4bd662ca..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +++ /dev/null @@ -1,5 +0,0 @@ -function _classPrivateFieldBase(e, t) { - if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); - return e; -} -export { _classPrivateFieldBase as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js deleted file mode 100644 index 90d21937..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +++ /dev/null @@ -1,5 +0,0 @@ -var id = 0; -function _classPrivateFieldKey(e) { - return "__private_" + id++ + "_" + e; -} -export { _classPrivateFieldKey as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js deleted file mode 100644 index b5161bdb..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +++ /dev/null @@ -1,7 +0,0 @@ -import classApplyDescriptorSet from "./classApplyDescriptorSet.js"; -import classPrivateFieldGet2 from "./classPrivateFieldGet2.js"; -function _classPrivateFieldSet(e, t, r) { - var s = classPrivateFieldGet2(t, e); - return classApplyDescriptorSet(e, s, r), r; -} -export { _classPrivateFieldSet as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js deleted file mode 100644 index 337b01a4..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js +++ /dev/null @@ -1,5 +0,0 @@ -import assertClassBrand from "./assertClassBrand.js"; -function _classPrivateFieldSet2(s, a, r) { - return s.set(assertClassBrand(s, a), r), r; -} -export { _classPrivateFieldSet2 as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js deleted file mode 100644 index ff3e9851..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js +++ /dev/null @@ -1,5 +0,0 @@ -import assertClassBrand from "./assertClassBrand.js"; -function _classPrivateGetter(s, r, a) { - return a(assertClassBrand(s, r)); -} -export { _classPrivateGetter as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js deleted file mode 100644 index 4832fc6f..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +++ /dev/null @@ -1,5 +0,0 @@ -import assertClassBrand from "./assertClassBrand.js"; -function _classPrivateMethodGet(s, a, r) { - return assertClassBrand(a, s), r; -} -export { _classPrivateMethodGet as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js deleted file mode 100644 index 61e23e26..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +++ /dev/null @@ -1,5 +0,0 @@ -import checkPrivateRedeclaration from "./checkPrivateRedeclaration.js"; -function _classPrivateMethodInitSpec(e, a) { - checkPrivateRedeclaration(e, a), a.add(e); -} -export { _classPrivateMethodInitSpec as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js deleted file mode 100644 index d181b513..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +++ /dev/null @@ -1,4 +0,0 @@ -function _classPrivateMethodSet() { - throw new TypeError("attempted to reassign private method"); -} -export { _classPrivateMethodSet as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js deleted file mode 100644 index 9a80d59b..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js +++ /dev/null @@ -1,5 +0,0 @@ -import assertClassBrand from "./assertClassBrand.js"; -function _classPrivateSetter(s, r, a, t) { - return r(assertClassBrand(s, a), t), t; -} -export { _classPrivateSetter as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js deleted file mode 100644 index 747e639d..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +++ /dev/null @@ -1,7 +0,0 @@ -import classApplyDescriptorDestructureSet from "./classApplyDescriptorDestructureSet.js"; -import assertClassBrand from "./assertClassBrand.js"; -import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js"; -function _classStaticPrivateFieldDestructureSet(t, r, s) { - return assertClassBrand(r, t), classCheckPrivateStaticFieldDescriptor(s, "set"), classApplyDescriptorDestructureSet(t, s); -} -export { _classStaticPrivateFieldDestructureSet as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js deleted file mode 100644 index 23684b74..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +++ /dev/null @@ -1,7 +0,0 @@ -import classApplyDescriptorGet from "./classApplyDescriptorGet.js"; -import assertClassBrand from "./assertClassBrand.js"; -import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js"; -function _classStaticPrivateFieldSpecGet(t, s, r) { - return assertClassBrand(s, t), classCheckPrivateStaticFieldDescriptor(r, "get"), classApplyDescriptorGet(t, r); -} -export { _classStaticPrivateFieldSpecGet as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js deleted file mode 100644 index 3a314682..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +++ /dev/null @@ -1,7 +0,0 @@ -import classApplyDescriptorSet from "./classApplyDescriptorSet.js"; -import assertClassBrand from "./assertClassBrand.js"; -import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js"; -function _classStaticPrivateFieldSpecSet(s, t, r, e) { - return assertClassBrand(t, s), classCheckPrivateStaticFieldDescriptor(r, "set"), classApplyDescriptorSet(s, r, e), e; -} -export { _classStaticPrivateFieldSpecSet as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js deleted file mode 100644 index 047b177b..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +++ /dev/null @@ -1,5 +0,0 @@ -import assertClassBrand from "./assertClassBrand.js"; -function _classStaticPrivateMethodGet(s, a, t) { - return assertClassBrand(a, s), t; -} -export { _classStaticPrivateMethodGet as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js deleted file mode 100644 index a61ae63e..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +++ /dev/null @@ -1,4 +0,0 @@ -function _classStaticPrivateMethodSet() { - throw new TypeError("attempted to set read only static private field"); -} -export { _classStaticPrivateMethodSet as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/construct.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/construct.js deleted file mode 100644 index 91609ff7..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/construct.js +++ /dev/null @@ -1,10 +0,0 @@ -import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; -import setPrototypeOf from "./setPrototypeOf.js"; -function _construct(t, e, r) { - if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); - var o = [null]; - o.push.apply(o, e); - var p = new (t.bind.apply(t, o))(); - return r && setPrototypeOf(p, r.prototype), p; -} -export { _construct as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/createClass.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/createClass.js deleted file mode 100644 index 9b178515..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/createClass.js +++ /dev/null @@ -1,13 +0,0 @@ -import toPropertyKey from "./toPropertyKey.js"; -function _defineProperties(e, r) { - for (var t = 0; t < r.length; t++) { - var o = r[t]; - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); - } -} -function _createClass(e, r, t) { - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { - writable: !1 - }), e; -} -export { _createClass as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js deleted file mode 100644 index 93b97f91..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +++ /dev/null @@ -1,50 +0,0 @@ -import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; -function _createForOfIteratorHelper(r, e) { - var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; - if (!t) { - if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { - t && (r = t); - var _n = 0, - F = function F() {}; - return { - s: F, - n: function n() { - return _n >= r.length ? { - done: !0 - } : { - done: !1, - value: r[_n++] - }; - }, - e: function e(r) { - throw r; - }, - f: F - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - var o, - a = !0, - u = !1; - return { - s: function s() { - t = t.call(r); - }, - n: function n() { - var r = t.next(); - return a = r.done, r; - }, - e: function e(r) { - u = !0, o = r; - }, - f: function f() { - try { - a || null == t["return"] || t["return"](); - } finally { - if (u) throw o; - } - } - }; -} -export { _createForOfIteratorHelper as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js deleted file mode 100644 index 3deaae44..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +++ /dev/null @@ -1,19 +0,0 @@ -import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; -function _createForOfIteratorHelperLoose(r, e) { - var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; - if (t) return (t = t.call(r)).next.bind(t); - if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { - t && (r = t); - var o = 0; - return function () { - return o >= r.length ? { - done: !0 - } : { - done: !1, - value: r[o++] - }; - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -export { _createForOfIteratorHelperLoose as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/createSuper.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/createSuper.js deleted file mode 100644 index dfabf711..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/createSuper.js +++ /dev/null @@ -1,16 +0,0 @@ -import getPrototypeOf from "./getPrototypeOf.js"; -import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; -import possibleConstructorReturn from "./possibleConstructorReturn.js"; -function _createSuper(t) { - var r = isNativeReflectConstruct(); - return function () { - var e, - o = getPrototypeOf(t); - if (r) { - var s = getPrototypeOf(this).constructor; - e = Reflect.construct(o, arguments, s); - } else e = o.apply(this, arguments); - return possibleConstructorReturn(this, e); - }; -} -export { _createSuper as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/decorate.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/decorate.js deleted file mode 100644 index f76b6a6a..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/decorate.js +++ /dev/null @@ -1,250 +0,0 @@ -import toArray from "./toArray.js"; -import toPropertyKey from "./toPropertyKey.js"; -function _decorate(e, r, t, i) { - var o = _getDecoratorsApi(); - if (i) for (var n = 0; n < i.length; n++) o = i[n](o); - var s = r(function (e) { - o.initializeInstanceElements(e, a.elements); - }, t), - a = o.decorateClass(_coalesceClassElements(s.d.map(_createElementDescriptor)), e); - return o.initializeClassElements(s.F, a.elements), o.runClassFinishers(s.F, a.finishers); -} -function _getDecoratorsApi() { - _getDecoratorsApi = function _getDecoratorsApi() { - return e; - }; - var e = { - elementsDefinitionOrder: [["method"], ["field"]], - initializeInstanceElements: function initializeInstanceElements(e, r) { - ["method", "field"].forEach(function (t) { - r.forEach(function (r) { - r.kind === t && "own" === r.placement && this.defineClassElement(e, r); - }, this); - }, this); - }, - initializeClassElements: function initializeClassElements(e, r) { - var t = e.prototype; - ["method", "field"].forEach(function (i) { - r.forEach(function (r) { - var o = r.placement; - if (r.kind === i && ("static" === o || "prototype" === o)) { - var n = "static" === o ? e : t; - this.defineClassElement(n, r); - } - }, this); - }, this); - }, - defineClassElement: function defineClassElement(e, r) { - var t = r.descriptor; - if ("field" === r.kind) { - var i = r.initializer; - t = { - enumerable: t.enumerable, - writable: t.writable, - configurable: t.configurable, - value: void 0 === i ? void 0 : i.call(e) - }; - } - Object.defineProperty(e, r.key, t); - }, - decorateClass: function decorateClass(e, r) { - var t = [], - i = [], - o = { - "static": [], - prototype: [], - own: [] - }; - if (e.forEach(function (e) { - this.addElementPlacement(e, o); - }, this), e.forEach(function (e) { - if (!_hasDecorators(e)) return t.push(e); - var r = this.decorateElement(e, o); - t.push(r.element), t.push.apply(t, r.extras), i.push.apply(i, r.finishers); - }, this), !r) return { - elements: t, - finishers: i - }; - var n = this.decorateConstructor(t, r); - return i.push.apply(i, n.finishers), n.finishers = i, n; - }, - addElementPlacement: function addElementPlacement(e, r, t) { - var i = r[e.placement]; - if (!t && -1 !== i.indexOf(e.key)) throw new TypeError("Duplicated element (" + e.key + ")"); - i.push(e.key); - }, - decorateElement: function decorateElement(e, r) { - for (var t = [], i = [], o = e.decorators, n = o.length - 1; n >= 0; n--) { - var s = r[e.placement]; - s.splice(s.indexOf(e.key), 1); - var a = this.fromElementDescriptor(e), - l = this.toElementFinisherExtras((0, o[n])(a) || a); - e = l.element, this.addElementPlacement(e, r), l.finisher && i.push(l.finisher); - var c = l.extras; - if (c) { - for (var p = 0; p < c.length; p++) this.addElementPlacement(c[p], r); - t.push.apply(t, c); - } - } - return { - element: e, - finishers: i, - extras: t - }; - }, - decorateConstructor: function decorateConstructor(e, r) { - for (var t = [], i = r.length - 1; i >= 0; i--) { - var o = this.fromClassDescriptor(e), - n = this.toClassDescriptor((0, r[i])(o) || o); - if (void 0 !== n.finisher && t.push(n.finisher), void 0 !== n.elements) { - e = n.elements; - for (var s = 0; s < e.length - 1; s++) for (var a = s + 1; a < e.length; a++) if (e[s].key === e[a].key && e[s].placement === e[a].placement) throw new TypeError("Duplicated element (" + e[s].key + ")"); - } - } - return { - elements: e, - finishers: t - }; - }, - fromElementDescriptor: function fromElementDescriptor(e) { - var r = { - kind: e.kind, - key: e.key, - placement: e.placement, - descriptor: e.descriptor - }; - return Object.defineProperty(r, Symbol.toStringTag, { - value: "Descriptor", - configurable: !0 - }), "field" === e.kind && (r.initializer = e.initializer), r; - }, - toElementDescriptors: function toElementDescriptors(e) { - if (void 0 !== e) return toArray(e).map(function (e) { - var r = this.toElementDescriptor(e); - return this.disallowProperty(e, "finisher", "An element descriptor"), this.disallowProperty(e, "extras", "An element descriptor"), r; - }, this); - }, - toElementDescriptor: function toElementDescriptor(e) { - var r = e.kind + ""; - if ("method" !== r && "field" !== r) throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "' + r + '"'); - var t = toPropertyKey(e.key), - i = e.placement + ""; - if ("static" !== i && "prototype" !== i && "own" !== i) throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "' + i + '"'); - var o = e.descriptor; - this.disallowProperty(e, "elements", "An element descriptor"); - var n = { - kind: r, - key: t, - placement: i, - descriptor: Object.assign({}, o) - }; - return "field" !== r ? this.disallowProperty(e, "initializer", "A method descriptor") : (this.disallowProperty(o, "get", "The property descriptor of a field descriptor"), this.disallowProperty(o, "set", "The property descriptor of a field descriptor"), this.disallowProperty(o, "value", "The property descriptor of a field descriptor"), n.initializer = e.initializer), n; - }, - toElementFinisherExtras: function toElementFinisherExtras(e) { - return { - element: this.toElementDescriptor(e), - finisher: _optionalCallableProperty(e, "finisher"), - extras: this.toElementDescriptors(e.extras) - }; - }, - fromClassDescriptor: function fromClassDescriptor(e) { - var r = { - kind: "class", - elements: e.map(this.fromElementDescriptor, this) - }; - return Object.defineProperty(r, Symbol.toStringTag, { - value: "Descriptor", - configurable: !0 - }), r; - }, - toClassDescriptor: function toClassDescriptor(e) { - var r = e.kind + ""; - if ("class" !== r) throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "' + r + '"'); - this.disallowProperty(e, "key", "A class descriptor"), this.disallowProperty(e, "placement", "A class descriptor"), this.disallowProperty(e, "descriptor", "A class descriptor"), this.disallowProperty(e, "initializer", "A class descriptor"), this.disallowProperty(e, "extras", "A class descriptor"); - var t = _optionalCallableProperty(e, "finisher"); - return { - elements: this.toElementDescriptors(e.elements), - finisher: t - }; - }, - runClassFinishers: function runClassFinishers(e, r) { - for (var t = 0; t < r.length; t++) { - var i = (0, r[t])(e); - if (void 0 !== i) { - if ("function" != typeof i) throw new TypeError("Finishers must return a constructor."); - e = i; - } - } - return e; - }, - disallowProperty: function disallowProperty(e, r, t) { - if (void 0 !== e[r]) throw new TypeError(t + " can't have a ." + r + " property."); - } - }; - return e; -} -function _createElementDescriptor(e) { - var r, - t = toPropertyKey(e.key); - "method" === e.kind ? r = { - value: e.value, - writable: !0, - configurable: !0, - enumerable: !1 - } : "get" === e.kind ? r = { - get: e.value, - configurable: !0, - enumerable: !1 - } : "set" === e.kind ? r = { - set: e.value, - configurable: !0, - enumerable: !1 - } : "field" === e.kind && (r = { - configurable: !0, - writable: !0, - enumerable: !0 - }); - var i = { - kind: "field" === e.kind ? "field" : "method", - key: t, - placement: e["static"] ? "static" : "field" === e.kind ? "own" : "prototype", - descriptor: r - }; - return e.decorators && (i.decorators = e.decorators), "field" === e.kind && (i.initializer = e.value), i; -} -function _coalesceGetterSetter(e, r) { - void 0 !== e.descriptor.get ? r.descriptor.get = e.descriptor.get : r.descriptor.set = e.descriptor.set; -} -function _coalesceClassElements(e) { - for (var r = [], isSameElement = function isSameElement(e) { - return "method" === e.kind && e.key === o.key && e.placement === o.placement; - }, t = 0; t < e.length; t++) { - var i, - o = e[t]; - if ("method" === o.kind && (i = r.find(isSameElement))) { - if (_isDataDescriptor(o.descriptor) || _isDataDescriptor(i.descriptor)) { - if (_hasDecorators(o) || _hasDecorators(i)) throw new ReferenceError("Duplicated methods (" + o.key + ") can't be decorated."); - i.descriptor = o.descriptor; - } else { - if (_hasDecorators(o)) { - if (_hasDecorators(i)) throw new ReferenceError("Decorators can't be placed on different accessors with for the same property (" + o.key + ")."); - i.decorators = o.decorators; - } - _coalesceGetterSetter(o, i); - } - } else r.push(o); - } - return r; -} -function _hasDecorators(e) { - return e.decorators && e.decorators.length; -} -function _isDataDescriptor(e) { - return void 0 !== e && !(void 0 === e.value && void 0 === e.writable); -} -function _optionalCallableProperty(e, r) { - var t = e[r]; - if (void 0 !== t && "function" != typeof t) throw new TypeError("Expected '" + r + "' to be a function"); - return t; -} -export { _decorate as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/defaults.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/defaults.js deleted file mode 100644 index d3041a3d..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/defaults.js +++ /dev/null @@ -1,9 +0,0 @@ -function _defaults(e, r) { - for (var t = Object.getOwnPropertyNames(r), o = 0; o < t.length; o++) { - var n = t[o], - a = Object.getOwnPropertyDescriptor(r, n); - a && a.configurable && void 0 === e[n] && Object.defineProperty(e, n, a); - } - return e; -} -export { _defaults as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/defineAccessor.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/defineAccessor.js deleted file mode 100644 index a8292dea..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/defineAccessor.js +++ /dev/null @@ -1,8 +0,0 @@ -function _defineAccessor(e, r, n, t) { - var c = { - configurable: !0, - enumerable: !0 - }; - return c[e] = t, Object.defineProperty(r, n, c); -} -export { _defineAccessor as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js deleted file mode 100644 index 3d31d980..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +++ /dev/null @@ -1,12 +0,0 @@ -function _defineEnumerableProperties(e, r) { - for (var t in r) { - var n = r[t]; - n.configurable = n.enumerable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, t, n); - } - if (Object.getOwnPropertySymbols) for (var a = Object.getOwnPropertySymbols(r), b = 0; b < a.length; b++) { - var i = a[b]; - (n = r[i]).configurable = n.enumerable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, i, n); - } - return e; -} -export { _defineEnumerableProperties as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/defineProperty.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/defineProperty.js deleted file mode 100644 index 05ec32b7..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/defineProperty.js +++ /dev/null @@ -1,10 +0,0 @@ -import toPropertyKey from "./toPropertyKey.js"; -function _defineProperty(e, r, t) { - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { - value: t, - enumerable: !0, - configurable: !0, - writable: !0 - }) : e[r] = t, e; -} -export { _defineProperty as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/dispose.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/dispose.js deleted file mode 100644 index a87ab202..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/dispose.js +++ /dev/null @@ -1,28 +0,0 @@ -function dispose_SuppressedError(r, e) { - return "undefined" != typeof SuppressedError ? dispose_SuppressedError = SuppressedError : (dispose_SuppressedError = function dispose_SuppressedError(r, e) { - this.suppressed = e, this.error = r, this.stack = Error().stack; - }, dispose_SuppressedError.prototype = Object.create(Error.prototype, { - constructor: { - value: dispose_SuppressedError, - writable: !0, - configurable: !0 - } - })), new dispose_SuppressedError(r, e); -} -function _dispose(r, e, s) { - function next() { - for (; r.length > 0;) try { - var o = r.pop(), - p = o.d.call(o.v); - if (o.a) return Promise.resolve(p).then(next, err); - } catch (r) { - return err(r); - } - if (s) throw e; - } - function err(r) { - return e = s ? new dispose_SuppressedError(e, r) : r, s = !0, next(); - } - return next(); -} -export { _dispose as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/extends.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/extends.js deleted file mode 100644 index 53f118ca..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/extends.js +++ /dev/null @@ -1,10 +0,0 @@ -function _extends() { - return _extends = Object.assign ? Object.assign.bind() : function (n) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e]; - for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); - } - return n; - }, _extends.apply(null, arguments); -} -export { _extends as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/get.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/get.js deleted file mode 100644 index 8124bc02..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/get.js +++ /dev/null @@ -1,11 +0,0 @@ -import superPropBase from "./superPropBase.js"; -function _get() { - return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { - var p = superPropBase(e, t); - if (p) { - var n = Object.getOwnPropertyDescriptor(p, t); - return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; - } - }, _get.apply(null, arguments); -} -export { _get as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js deleted file mode 100644 index 9073c456..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +++ /dev/null @@ -1,6 +0,0 @@ -function _getPrototypeOf(t) { - return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { - return t.__proto__ || Object.getPrototypeOf(t); - }, _getPrototypeOf(t); -} -export { _getPrototypeOf as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/identity.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/identity.js deleted file mode 100644 index 6b564ac5..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/identity.js +++ /dev/null @@ -1,4 +0,0 @@ -function _identity(t) { - return t; -} -export { _identity as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js deleted file mode 100644 index 6d35b526..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js +++ /dev/null @@ -1,27 +0,0 @@ -function _importDeferProxy(e) { - var t = null, - constValue = function constValue(e) { - return function () { - return e; - }; - }, - proxy = function proxy(r) { - return function (n, o, f) { - return null === t && (t = e()), r(t, o, f); - }; - }; - return new Proxy({}, { - defineProperty: constValue(!1), - deleteProperty: constValue(!1), - get: proxy(Reflect.get), - getOwnPropertyDescriptor: proxy(Reflect.getOwnPropertyDescriptor), - getPrototypeOf: constValue(null), - isExtensible: constValue(!1), - has: proxy(Reflect.has), - ownKeys: proxy(Reflect.ownKeys), - preventExtensions: constValue(!0), - set: constValue(!1), - setPrototypeOf: constValue(!1) - }); -} -export { _importDeferProxy as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/inherits.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/inherits.js deleted file mode 100644 index 78f6e4e3..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/inherits.js +++ /dev/null @@ -1,14 +0,0 @@ -import setPrototypeOf from "./setPrototypeOf.js"; -function _inherits(t, e) { - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); - t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - writable: !0, - configurable: !0 - } - }), Object.defineProperty(t, "prototype", { - writable: !1 - }), e && setPrototypeOf(t, e); -} -export { _inherits as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js deleted file mode 100644 index 0bd13306..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +++ /dev/null @@ -1,5 +0,0 @@ -import setPrototypeOf from "./setPrototypeOf.js"; -function _inheritsLoose(t, o) { - t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o); -} -export { _inheritsLoose as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js deleted file mode 100644 index 68bcc2cd..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +++ /dev/null @@ -1,9 +0,0 @@ -function _initializerDefineProperty(e, i, r, l) { - r && Object.defineProperty(e, i, { - enumerable: r.enumerable, - configurable: r.configurable, - writable: r.writable, - value: r.initializer ? r.initializer.call(l) : void 0 - }); -} -export { _initializerDefineProperty as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js deleted file mode 100644 index 0a658e39..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +++ /dev/null @@ -1,4 +0,0 @@ -function _initializerWarningHelper(r, e) { - throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform."); -} -export { _initializerWarningHelper as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/instanceof.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/instanceof.js deleted file mode 100644 index 316539ee..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/instanceof.js +++ /dev/null @@ -1,4 +0,0 @@ -function _instanceof(n, e) { - return null != e && "undefined" != typeof Symbol && e[Symbol.hasInstance] ? !!e[Symbol.hasInstance](n) : n instanceof e; -} -export { _instanceof as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js deleted file mode 100644 index 365d2481..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +++ /dev/null @@ -1,6 +0,0 @@ -function _interopRequireDefault(e) { - return e && e.__esModule ? e : { - "default": e - }; -} -export { _interopRequireDefault as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js deleted file mode 100644 index ed9ca318..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +++ /dev/null @@ -1,22 +0,0 @@ -import _typeof from "./typeof.js"; -function _interopRequireWildcard(e, t) { - if ("function" == typeof WeakMap) var r = new WeakMap(), - n = new WeakMap(); - return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { - if (!t && e && e.__esModule) return e; - var o, - i, - f = { - __proto__: null, - "default": e - }; - if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; - if (o = t ? n : r) { - if (o.has(e)) return o.get(e); - o.set(e, f); - } - for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); - return f; - })(e, t); -} -export { _interopRequireWildcard as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js deleted file mode 100644 index 0cfe276f..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +++ /dev/null @@ -1,8 +0,0 @@ -function _isNativeFunction(t) { - try { - return -1 !== Function.toString.call(t).indexOf("[native code]"); - } catch (n) { - return "function" == typeof t; - } -} -export { _isNativeFunction as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js deleted file mode 100644 index 0eb5e395..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +++ /dev/null @@ -1,9 +0,0 @@ -function _isNativeReflectConstruct() { - try { - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); - } catch (t) {} - return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { - return !!t; - })(); -} -export { _isNativeReflectConstruct as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/iterableToArray.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/iterableToArray.js deleted file mode 100644 index b7de3396..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +++ /dev/null @@ -1,4 +0,0 @@ -function _iterableToArray(r) { - if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); -} -export { _iterableToArray as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js deleted file mode 100644 index 473f0678..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +++ /dev/null @@ -1,28 +0,0 @@ -function _iterableToArrayLimit(r, l) { - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; - if (null != t) { - var e, - n, - i, - u, - a = [], - f = !0, - o = !1; - try { - if (i = (t = t.call(r)).next, 0 === l) { - if (Object(t) !== t) return; - f = !1; - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); - } catch (r) { - o = !0, n = r; - } finally { - try { - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; - } finally { - if (o) throw n; - } - } - return a; - } -} -export { _iterableToArrayLimit as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/jsx.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/jsx.js deleted file mode 100644 index a120e5b6..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/jsx.js +++ /dev/null @@ -1,22 +0,0 @@ -var REACT_ELEMENT_TYPE; -function _createRawReactElement(e, r, E, l) { - REACT_ELEMENT_TYPE || (REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol["for"] && Symbol["for"]("react.element") || 60103); - var o = e && e.defaultProps, - n = arguments.length - 3; - if (r || 0 === n || (r = { - children: void 0 - }), 1 === n) r.children = l;else if (n > 1) { - for (var t = Array(n), f = 0; f < n; f++) t[f] = arguments[f + 3]; - r.children = t; - } - if (r && o) for (var i in o) void 0 === r[i] && (r[i] = o[i]);else r || (r = o || {}); - return { - $$typeof: REACT_ELEMENT_TYPE, - type: e, - key: void 0 === E ? null : "" + E, - ref: null, - props: r, - _owner: null - }; -} -export { _createRawReactElement as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js deleted file mode 100644 index 527c682b..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +++ /dev/null @@ -1,9 +0,0 @@ -import arrayLikeToArray from "./arrayLikeToArray.js"; -function _maybeArrayLike(r, a, e) { - if (a && !Array.isArray(a) && "number" == typeof a.length) { - var y = a.length; - return arrayLikeToArray(a, void 0 !== e && e < y ? e : y); - } - return r(a, e); -} -export { _maybeArrayLike as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js deleted file mode 100644 index 5f70e0d7..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +++ /dev/null @@ -1,4 +0,0 @@ -function _newArrowCheck(n, r) { - if (n !== r) throw new TypeError("Cannot instantiate an arrow function"); -} -export { _newArrowCheck as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js deleted file mode 100644 index 9050250b..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +++ /dev/null @@ -1,4 +0,0 @@ -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -export { _nonIterableRest as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js deleted file mode 100644 index fb03235a..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +++ /dev/null @@ -1,4 +0,0 @@ -function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -export { _nonIterableSpread as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js deleted file mode 100644 index d8c30604..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js +++ /dev/null @@ -1,4 +0,0 @@ -function _nullishReceiverError(r) { - throw new TypeError("Cannot set property of null or undefined."); -} -export { _nullishReceiverError as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js deleted file mode 100644 index a92eac8f..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +++ /dev/null @@ -1,4 +0,0 @@ -function _objectDestructuringEmpty(t) { - if (null == t) throw new TypeError("Cannot destructure " + t); -} -export { _objectDestructuringEmpty as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/objectSpread.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/objectSpread.js deleted file mode 100644 index 0f82f069..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/objectSpread.js +++ /dev/null @@ -1,14 +0,0 @@ -import defineProperty from "./defineProperty.js"; -function _objectSpread(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? Object(arguments[r]) : {}, - o = Object.keys(t); - "function" == typeof Object.getOwnPropertySymbols && o.push.apply(o, Object.getOwnPropertySymbols(t).filter(function (e) { - return Object.getOwnPropertyDescriptor(t, e).enumerable; - })), o.forEach(function (r) { - defineProperty(e, r, t[r]); - }); - } - return e; -} -export { _objectSpread as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/objectSpread2.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/objectSpread2.js deleted file mode 100644 index 0035bc76..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +++ /dev/null @@ -1,23 +0,0 @@ -import defineProperty from "./defineProperty.js"; -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function _objectSpread2(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -export { _objectSpread2 as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js deleted file mode 100644 index 598fb9ad..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +++ /dev/null @@ -1,13 +0,0 @@ -import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js"; -function _objectWithoutProperties(e, t) { - if (null == e) return {}; - var o, - r, - i = objectWithoutPropertiesLoose(e, t); - if (Object.getOwnPropertySymbols) { - var n = Object.getOwnPropertySymbols(e); - for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); - } - return i; -} -export { _objectWithoutProperties as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js deleted file mode 100644 index 90f68f3d..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +++ /dev/null @@ -1,10 +0,0 @@ -function _objectWithoutPropertiesLoose(r, e) { - if (null == r) return {}; - var t = {}; - for (var n in r) if ({}.hasOwnProperty.call(r, n)) { - if (-1 !== e.indexOf(n)) continue; - t[n] = r[n]; - } - return t; -} -export { _objectWithoutPropertiesLoose as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/package.json b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/package.json deleted file mode 100644 index aead43de..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "module" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js deleted file mode 100644 index d84e1e6f..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +++ /dev/null @@ -1,8 +0,0 @@ -import _typeof from "./typeof.js"; -import assertThisInitialized from "./assertThisInitialized.js"; -function _possibleConstructorReturn(t, e) { - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); - return assertThisInitialized(t); -} -export { _possibleConstructorReturn as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/readOnlyError.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/readOnlyError.js deleted file mode 100644 index fcc3e339..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +++ /dev/null @@ -1,4 +0,0 @@ -function _readOnlyError(r) { - throw new TypeError('"' + r + '" is read-only'); -} -export { _readOnlyError as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regenerator.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regenerator.js deleted file mode 100644 index 6f2f2a17..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regenerator.js +++ /dev/null @@ -1,89 +0,0 @@ -import regeneratorDefine from "./regeneratorDefine.js"; -function _regenerator() { - /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ - var e, - t, - r = "function" == typeof Symbol ? Symbol : {}, - n = r.iterator || "@@iterator", - o = r.toStringTag || "@@toStringTag"; - function i(r, n, o, i) { - var c = n && n.prototype instanceof Generator ? n : Generator, - u = Object.create(c.prototype); - return regeneratorDefine(u, "_invoke", function (r, n, o) { - var i, - c, - u, - f = 0, - p = o || [], - y = !1, - G = { - p: 0, - n: 0, - v: e, - a: d, - f: d.bind(e, 4), - d: function d(t, r) { - return i = t, c = 0, u = e, G.n = r, a; - } - }; - function d(r, n) { - for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { - var o, - i = p[t], - d = G.p, - l = i[2]; - r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); - } - if (o || r > 1) return a; - throw y = !0, n; - } - return function (o, p, l) { - if (f > 1) throw TypeError("Generator is already running"); - for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { - i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); - try { - if (f = 2, i) { - if (c || (o = "next"), t = i[o]) { - if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); - if (!t.done) return t; - u = t.value, c < 2 && (c = 0); - } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); - i = e; - } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; - } catch (t) { - i = e, c = 1, u = t; - } finally { - f = 1; - } - } - return { - value: t, - done: y - }; - }; - }(r, o, i), !0), u; - } - var a = {}; - function Generator() {} - function GeneratorFunction() {} - function GeneratorFunctionPrototype() {} - t = Object.getPrototypeOf; - var c = [][n] ? t(t([][n]())) : (regeneratorDefine(t = {}, n, function () { - return this; - }), t), - u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); - function f(e) { - return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; - } - return GeneratorFunction.prototype = GeneratorFunctionPrototype, regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), regeneratorDefine(u), regeneratorDefine(u, o, "Generator"), regeneratorDefine(u, n, function () { - return this; - }), regeneratorDefine(u, "toString", function () { - return "[object Generator]"; - }), (_regenerator = function _regenerator() { - return { - w: i, - m: f - }; - })(); -} -export { _regenerator as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js deleted file mode 100644 index f73d4e65..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js +++ /dev/null @@ -1,8 +0,0 @@ -import regeneratorAsyncGen from "./regeneratorAsyncGen.js"; -function _regeneratorAsync(n, e, r, t, o) { - var a = regeneratorAsyncGen(n, e, r, t, o); - return a.next().then(function (n) { - return n.done ? n.value : a.next(); - }); -} -export { _regeneratorAsync as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js deleted file mode 100644 index 1932bcde..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js +++ /dev/null @@ -1,6 +0,0 @@ -import regenerator from "./regenerator.js"; -import regeneratorAsyncIterator from "./regeneratorAsyncIterator.js"; -function _regeneratorAsyncGen(r, e, t, o, n) { - return new regeneratorAsyncIterator(regenerator().w(r, e, t, o), n || Promise); -} -export { _regeneratorAsyncGen as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js deleted file mode 100644 index 90d84cc7..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js +++ /dev/null @@ -1,33 +0,0 @@ -import OverloadYield from "./OverloadYield.js"; -import regeneratorDefine from "./regeneratorDefine.js"; -function AsyncIterator(t, e) { - function n(r, o, i, f) { - try { - var c = t[r](o), - u = c.value; - return u instanceof OverloadYield ? e.resolve(u.v).then(function (t) { - n("next", t, i, f); - }, function (t) { - n("throw", t, i, f); - }) : e.resolve(u).then(function (t) { - c.value = t, i(c); - }, function (t) { - return n("throw", t, i, f); - }); - } catch (t) { - f(t); - } - } - var r; - this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () { - return this; - })), regeneratorDefine(this, "_invoke", function (t, o, i) { - function f() { - return new e(function (e, r) { - n(t, i, e, r); - }); - } - return r = r ? r.then(f, f) : f(); - }, !0); -} -export { AsyncIterator as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js deleted file mode 100644 index 71404706..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +++ /dev/null @@ -1,22 +0,0 @@ -function _regeneratorDefine(e, r, n, t) { - var i = Object.defineProperty; - try { - i({}, "", {}); - } catch (e) { - i = 0; - } - _regeneratorDefine = function regeneratorDefine(e, r, n, t) { - function o(r, n) { - _regeneratorDefine(e, r, function (e) { - return this._invoke(r, n, e); - }); - } - r ? i ? i(e, r, { - value: n, - enumerable: !t, - configurable: !t, - writable: !t - }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); - }, _regeneratorDefine(e, r, n, t); -} -export { _regeneratorDefine as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js deleted file mode 100644 index 5d0d48ba..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js +++ /dev/null @@ -1,10 +0,0 @@ -function _regeneratorKeys(e) { - var n = Object(e), - r = []; - for (var t in n) r.unshift(t); - return function e() { - for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e; - return e.done = !0, e; - }; -} -export { _regeneratorKeys as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js deleted file mode 100644 index 33501884..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +++ /dev/null @@ -1,77 +0,0 @@ -import OverloadYield from "./OverloadYield.js"; -import regenerator from "./regenerator.js"; -import regeneratorAsync from "./regeneratorAsync.js"; -import regeneratorAsyncGen from "./regeneratorAsyncGen.js"; -import regeneratorAsyncIterator from "./regeneratorAsyncIterator.js"; -import regeneratorKeys from "./regeneratorKeys.js"; -import regeneratorValues from "./regeneratorValues.js"; -function _regeneratorRuntime() { - "use strict"; - - var r = regenerator(), - e = r.m(_regeneratorRuntime), - t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor; - function n(r) { - var e = "function" == typeof r && r.constructor; - return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name)); - } - var o = { - "throw": 1, - "return": 2, - "break": 3, - "continue": 3 - }; - function a(r) { - var e, t; - return function (n) { - e || (e = { - stop: function stop() { - return t(n.a, 2); - }, - "catch": function _catch() { - return n.v; - }, - abrupt: function abrupt(r, e) { - return t(n.a, o[r], e); - }, - delegateYield: function delegateYield(r, o, a) { - return e.resultName = o, t(n.d, regeneratorValues(r), a); - }, - finish: function finish(r) { - return t(n.f, r); - } - }, t = function t(r, _t, o) { - n.p = e.prev, n.n = e.next; - try { - return r(_t, o); - } finally { - e.next = n.n; - } - }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n; - try { - return r.call(this, e); - } finally { - n.p = e.prev, n.n = e.next; - } - }; - } - return (_regeneratorRuntime = function _regeneratorRuntime() { - return { - wrap: function wrap(e, t, n, o) { - return r.w(a(e), t, n, o && o.reverse()); - }, - isGeneratorFunction: n, - mark: r.m, - awrap: function awrap(r, e) { - return new OverloadYield(r, e); - }, - AsyncIterator: regeneratorAsyncIterator, - async: function async(r, e, t, o, u) { - return (n(e) ? regeneratorAsyncGen : regeneratorAsync)(a(r), e, t, o, u); - }, - keys: regeneratorKeys, - values: regeneratorValues - }; - })(); -} -export { _regeneratorRuntime as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js deleted file mode 100644 index 99968525..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js +++ /dev/null @@ -1,19 +0,0 @@ -import _typeof from "./typeof.js"; -function _regeneratorValues(e) { - if (null != e) { - var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], - r = 0; - if (t) return t.call(e); - if ("function" == typeof e.next) return e; - if (!isNaN(e.length)) return { - next: function next() { - return e && r >= e.length && (e = void 0), { - value: e && e[r++], - done: !e - }; - } - }; - } - throw new TypeError(_typeof(e) + " is not iterable"); -} -export { _regeneratorValues as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/set.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/set.js deleted file mode 100644 index ed0a8039..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/set.js +++ /dev/null @@ -1,22 +0,0 @@ -import superPropBase from "./superPropBase.js"; -import defineProperty from "./defineProperty.js"; -function set(e, r, t, o) { - return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { - var f, - i = superPropBase(e, r); - if (i) { - if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; - if (!f.writable) return !1; - } - if (f = Object.getOwnPropertyDescriptor(o, r)) { - if (!f.writable) return !1; - f.value = t, Object.defineProperty(o, r, f); - } else defineProperty(o, r, t); - return !0; - }, set(e, r, t, o); -} -function _set(e, r, t, o, f) { - if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); - return t; -} -export { _set as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/setFunctionName.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/setFunctionName.js deleted file mode 100644 index 82213cea..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/setFunctionName.js +++ /dev/null @@ -1,12 +0,0 @@ -import _typeof from "./typeof.js"; -function setFunctionName(e, t, n) { - "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); - try { - Object.defineProperty(e, "name", { - configurable: !0, - value: n ? n + " " + t : t - }); - } catch (e) {} - return e; -} -export { setFunctionName as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js deleted file mode 100644 index c30983c9..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +++ /dev/null @@ -1,6 +0,0 @@ -function _setPrototypeOf(t, e) { - return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { - return t.__proto__ = e, t; - }, _setPrototypeOf(t, e); -} -export { _setPrototypeOf as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js deleted file mode 100644 index 41d5738c..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +++ /dev/null @@ -1,7 +0,0 @@ -function _skipFirstGeneratorNext(t) { - return function () { - var r = t.apply(this, arguments); - return r.next(), r; - }; -} -export { _skipFirstGeneratorNext as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/slicedToArray.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/slicedToArray.js deleted file mode 100644 index c044c2a6..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +++ /dev/null @@ -1,8 +0,0 @@ -import arrayWithHoles from "./arrayWithHoles.js"; -import iterableToArrayLimit from "./iterableToArrayLimit.js"; -import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; -import nonIterableRest from "./nonIterableRest.js"; -function _slicedToArray(r, e) { - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); -} -export { _slicedToArray as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/superPropBase.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/superPropBase.js deleted file mode 100644 index a5fa3861..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/superPropBase.js +++ /dev/null @@ -1,6 +0,0 @@ -import getPrototypeOf from "./getPrototypeOf.js"; -function _superPropBase(t, o) { - for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t));); - return t; -} -export { _superPropBase as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/superPropGet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/superPropGet.js deleted file mode 100644 index b2b60a87..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/superPropGet.js +++ /dev/null @@ -1,9 +0,0 @@ -import get from "./get.js"; -import getPrototypeOf from "./getPrototypeOf.js"; -function _superPropGet(t, o, e, r) { - var p = get(getPrototypeOf(1 & r ? t.prototype : t), o, e); - return 2 & r && "function" == typeof p ? function (t) { - return p.apply(e, t); - } : p; -} -export { _superPropGet as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/superPropSet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/superPropSet.js deleted file mode 100644 index e182f386..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/superPropSet.js +++ /dev/null @@ -1,6 +0,0 @@ -import set from "./set.js"; -import getPrototypeOf from "./getPrototypeOf.js"; -function _superPropSet(t, e, o, r, p, f) { - return set(getPrototypeOf(f ? t.prototype : t), e, o, r, p); -} -export { _superPropSet as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js deleted file mode 100644 index 3d842cda..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +++ /dev/null @@ -1,8 +0,0 @@ -function _taggedTemplateLiteral(e, t) { - return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { - raw: { - value: Object.freeze(t) - } - })); -} -export { _taggedTemplateLiteral as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js deleted file mode 100644 index 741aeb85..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +++ /dev/null @@ -1,4 +0,0 @@ -function _taggedTemplateLiteralLoose(e, t) { - return t || (t = e.slice(0)), e.raw = t, e; -} -export { _taggedTemplateLiteralLoose as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/tdz.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/tdz.js deleted file mode 100644 index 58df493f..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/tdz.js +++ /dev/null @@ -1,4 +0,0 @@ -function _tdzError(e) { - throw new ReferenceError(e + " is not defined - temporal dead zone"); -} -export { _tdzError as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/temporalRef.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/temporalRef.js deleted file mode 100644 index 8dbf014d..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/temporalRef.js +++ /dev/null @@ -1,6 +0,0 @@ -import temporalUndefined from "./temporalUndefined.js"; -import tdz from "./tdz.js"; -function _temporalRef(r, e) { - return r === temporalUndefined ? tdz(e) : r; -} -export { _temporalRef as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js deleted file mode 100644 index 2ec0b0da..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +++ /dev/null @@ -1,2 +0,0 @@ -function _temporalUndefined() {} -export { _temporalUndefined as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/toArray.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/toArray.js deleted file mode 100644 index e5f0f52a..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/toArray.js +++ /dev/null @@ -1,8 +0,0 @@ -import arrayWithHoles from "./arrayWithHoles.js"; -import iterableToArray from "./iterableToArray.js"; -import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; -import nonIterableRest from "./nonIterableRest.js"; -function _toArray(r) { - return arrayWithHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableRest(); -} -export { _toArray as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js deleted file mode 100644 index f7338e4d..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +++ /dev/null @@ -1,8 +0,0 @@ -import arrayWithoutHoles from "./arrayWithoutHoles.js"; -import iterableToArray from "./iterableToArray.js"; -import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; -import nonIterableSpread from "./nonIterableSpread.js"; -function _toConsumableArray(r) { - return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread(); -} -export { _toConsumableArray as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/toPrimitive.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/toPrimitive.js deleted file mode 100644 index 9a3de46b..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +++ /dev/null @@ -1,12 +0,0 @@ -import _typeof from "./typeof.js"; -function toPrimitive(t, r) { - if ("object" != _typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != _typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} -export { toPrimitive as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js deleted file mode 100644 index b3274d87..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +++ /dev/null @@ -1,7 +0,0 @@ -import _typeof from "./typeof.js"; -import toPrimitive from "./toPrimitive.js"; -function toPropertyKey(t) { - var i = toPrimitive(t, "string"); - return "symbol" == _typeof(i) ? i : i + ""; -} -export { toPropertyKey as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/toSetter.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/toSetter.js deleted file mode 100644 index b1dbf7ae..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/toSetter.js +++ /dev/null @@ -1,10 +0,0 @@ -function _toSetter(t, e, n) { - e || (e = []); - var r = e.length++; - return Object.defineProperty({}, "_", { - set: function set(o) { - e[r] = o, t.apply(n, e); - } - }); -} -export { _toSetter as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/tsRewriteRelativeImportExtensions.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/tsRewriteRelativeImportExtensions.js deleted file mode 100644 index 28ffc0b9..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/tsRewriteRelativeImportExtensions.js +++ /dev/null @@ -1,6 +0,0 @@ -function tsRewriteRelativeImportExtensions(t, e) { - return "string" == typeof t && /^\.\.?\//.test(t) ? t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i, function (t, s, r, n, o) { - return s ? e ? ".jsx" : ".js" : !r || n && o ? r + n + "." + o.toLowerCase() + "js" : t; - }) : t; -} -export { tsRewriteRelativeImportExtensions as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/typeof.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/typeof.js deleted file mode 100644 index 5b0bc9b0..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/typeof.js +++ /dev/null @@ -1,10 +0,0 @@ -function _typeof(o) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, _typeof(o); -} -export { _typeof as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js deleted file mode 100644 index 33adc493..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +++ /dev/null @@ -1,9 +0,0 @@ -import arrayLikeToArray from "./arrayLikeToArray.js"; -function _unsupportedIterableToArray(r, a) { - if (r) { - if ("string" == typeof r) return arrayLikeToArray(r, a); - var t = {}.toString.call(r).slice(8, -1); - return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0; - } -} -export { _unsupportedIterableToArray as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/using.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/using.js deleted file mode 100644 index 9bda17b5..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/using.js +++ /dev/null @@ -1,12 +0,0 @@ -function _using(o, n, e) { - if (null == n) return n; - if (Object(n) !== n) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined."); - if (e) var r = n[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")]; - if (null == r && (r = n[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof r) throw new TypeError("Property [Symbol.dispose] is not a function."); - return o.push({ - v: n, - d: r, - a: e - }), n; -} -export { _using as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/usingCtx.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/usingCtx.js deleted file mode 100644 index 1464379f..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/usingCtx.js +++ /dev/null @@ -1,59 +0,0 @@ -function _usingCtx() { - var r = "function" == typeof SuppressedError ? SuppressedError : function (r, e) { - var n = Error(); - return n.name = "SuppressedError", n.error = r, n.suppressed = e, n; - }, - e = {}, - n = []; - function using(r, e) { - if (null != e) { - if (Object(e) !== e) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined."); - if (r) var o = e[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")]; - if (void 0 === o && (o = e[Symbol.dispose || Symbol["for"]("Symbol.dispose")], r)) var t = o; - if ("function" != typeof o) throw new TypeError("Object is not disposable."); - t && (o = function o() { - try { - t.call(e); - } catch (r) { - return Promise.reject(r); - } - }), n.push({ - v: e, - d: o, - a: r - }); - } else r && n.push({ - d: e, - a: r - }); - return e; - } - return { - e: e, - u: using.bind(null, !1), - a: using.bind(null, !0), - d: function d() { - var o, - t = this.e, - s = 0; - function next() { - for (; o = n.pop();) try { - if (!o.a && 1 === s) return s = 0, n.push(o), Promise.resolve().then(next); - if (o.d) { - var r = o.d.call(o.v); - if (o.a) return s |= 2, Promise.resolve(r).then(next, err); - } else s |= 1; - } catch (r) { - return err(r); - } - if (1 === s) return t !== e ? Promise.reject(t) : Promise.resolve(); - if (t !== e) throw t; - } - function err(n) { - return t = t !== e ? new r(n, t) : n, next(); - } - return next(); - } - }; -} -export { _usingCtx as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js deleted file mode 100644 index ffeea5d9..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +++ /dev/null @@ -1,69 +0,0 @@ -import OverloadYield from "./OverloadYield.js"; -function _wrapAsyncGenerator(e) { - return function () { - return new AsyncGenerator(e.apply(this, arguments)); - }; -} -function AsyncGenerator(e) { - var r, t; - function resume(r, t) { - try { - var n = e[r](t), - o = n.value, - u = o instanceof OverloadYield; - Promise.resolve(u ? o.v : o).then(function (t) { - if (u) { - var i = "return" === r ? "return" : "next"; - if (!o.k || t.done) return resume(i, t); - t = e[i](t).value; - } - settle(n.done ? "return" : "normal", t); - }, function (e) { - resume("throw", e); - }); - } catch (e) { - settle("throw", e); - } - } - function settle(e, n) { - switch (e) { - case "return": - r.resolve({ - value: n, - done: !0 - }); - break; - case "throw": - r.reject(n); - break; - default: - r.resolve({ - value: n, - done: !1 - }); - } - (r = r.next) ? resume(r.key, r.arg) : t = null; - } - this._invoke = function (e, n) { - return new Promise(function (o, u) { - var i = { - key: e, - arg: n, - resolve: o, - reject: u, - next: null - }; - t ? t = t.next = i : (r = t = i, resume(e, n)); - }); - }, "function" != typeof e["return"] && (this["return"] = void 0); -} -AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () { - return this; -}, AsyncGenerator.prototype.next = function (e) { - return this._invoke("next", e); -}, AsyncGenerator.prototype["throw"] = function (e) { - return this._invoke("throw", e); -}, AsyncGenerator.prototype["return"] = function (e) { - return this._invoke("return", e); -}; -export { _wrapAsyncGenerator as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js deleted file mode 100644 index 15bf78f5..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +++ /dev/null @@ -1,27 +0,0 @@ -import getPrototypeOf from "./getPrototypeOf.js"; -import setPrototypeOf from "./setPrototypeOf.js"; -import isNativeFunction from "./isNativeFunction.js"; -import construct from "./construct.js"; -function _wrapNativeSuper(t) { - var r = "function" == typeof Map ? new Map() : void 0; - return _wrapNativeSuper = function _wrapNativeSuper(t) { - if (null === t || !isNativeFunction(t)) return t; - if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function"); - if (void 0 !== r) { - if (r.has(t)) return r.get(t); - r.set(t, Wrapper); - } - function Wrapper() { - return construct(t, arguments, getPrototypeOf(this).constructor); - } - return Wrapper.prototype = Object.create(t.prototype, { - constructor: { - value: Wrapper, - enumerable: !1, - writable: !0, - configurable: !0 - } - }), setPrototypeOf(Wrapper, t); - }, _wrapNativeSuper(t); -} -export { _wrapNativeSuper as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js deleted file mode 100644 index c455faa4..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +++ /dev/null @@ -1,52 +0,0 @@ -import _typeof from "./typeof.js"; -import setPrototypeOf from "./setPrototypeOf.js"; -import inherits from "./inherits.js"; -function _wrapRegExp() { - _wrapRegExp = function _wrapRegExp(e, r) { - return new BabelRegExp(e, void 0, r); - }; - var e = RegExp.prototype, - r = new WeakMap(); - function BabelRegExp(e, t, p) { - var o = RegExp(e, t); - return r.set(o, p || r.get(e)), setPrototypeOf(o, BabelRegExp.prototype); - } - function buildGroups(e, t) { - var p = r.get(t); - return Object.keys(p).reduce(function (r, t) { - var o = p[t]; - if ("number" == typeof o) r[t] = e[o];else { - for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; - r[t] = e[o[i]]; - } - return r; - }, Object.create(null)); - } - return inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { - var t = e.exec.call(this, r); - if (t) { - t.groups = buildGroups(t, this); - var p = t.indices; - p && (p.groups = buildGroups(p, this)); - } - return t; - }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { - if ("string" == typeof p) { - var o = r.get(this); - return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)(>|$)/g, function (e, r, t) { - if ("" === t) return e; - var p = o[r]; - return Array.isArray(p) ? "$" + p.join("$") : "number" == typeof p ? "$" + p : ""; - })); - } - if ("function" == typeof p) { - var i = this; - return e[Symbol.replace].call(this, t, function () { - var e = arguments; - return "object" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); - }); - } - return e[Symbol.replace].call(this, t, p); - }, _wrapRegExp.apply(this, arguments); -} -export { _wrapRegExp as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js deleted file mode 100644 index 250c2869..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +++ /dev/null @@ -1,4 +0,0 @@ -function _writeOnlyError(r) { - throw new TypeError('"' + r + '" is write-only'); -} -export { _writeOnlyError as default }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/extends.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/extends.js deleted file mode 100644 index eee4a1f4..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/extends.js +++ /dev/null @@ -1,10 +0,0 @@ -function _extends() { - return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) { - for (var e = 1; e < arguments.length; e++) { - var t = arguments[e]; - for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); - } - return n; - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments); -} -module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/get.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/get.js deleted file mode 100644 index 15428ded..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/get.js +++ /dev/null @@ -1,11 +0,0 @@ -var superPropBase = require("./superPropBase.js"); -function _get() { - return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { - var p = superPropBase(e, t); - if (p) { - var n = Object.getOwnPropertyDescriptor(p, t); - return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; - } - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments); -} -module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/getPrototypeOf.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/getPrototypeOf.js deleted file mode 100644 index 90707481..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/getPrototypeOf.js +++ /dev/null @@ -1,6 +0,0 @@ -function _getPrototypeOf(t) { - return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { - return t.__proto__ || Object.getPrototypeOf(t); - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t); -} -module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/identity.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/identity.js deleted file mode 100644 index 54de5b5b..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/identity.js +++ /dev/null @@ -1,4 +0,0 @@ -function _identity(t) { - return t; -} -module.exports = _identity, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/importDeferProxy.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/importDeferProxy.js deleted file mode 100644 index cffaae65..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/importDeferProxy.js +++ /dev/null @@ -1,27 +0,0 @@ -function _importDeferProxy(e) { - var t = null, - constValue = function constValue(e) { - return function () { - return e; - }; - }, - proxy = function proxy(r) { - return function (n, o, f) { - return null === t && (t = e()), r(t, o, f); - }; - }; - return new Proxy({}, { - defineProperty: constValue(!1), - deleteProperty: constValue(!1), - get: proxy(Reflect.get), - getOwnPropertyDescriptor: proxy(Reflect.getOwnPropertyDescriptor), - getPrototypeOf: constValue(null), - isExtensible: constValue(!1), - has: proxy(Reflect.has), - ownKeys: proxy(Reflect.ownKeys), - preventExtensions: constValue(!0), - set: constValue(!1), - setPrototypeOf: constValue(!1) - }); -} -module.exports = _importDeferProxy, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/inherits.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/inherits.js deleted file mode 100644 index 715a78ef..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/inherits.js +++ /dev/null @@ -1,14 +0,0 @@ -var setPrototypeOf = require("./setPrototypeOf.js"); -function _inherits(t, e) { - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); - t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - writable: !0, - configurable: !0 - } - }), Object.defineProperty(t, "prototype", { - writable: !1 - }), e && setPrototypeOf(t, e); -} -module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/inheritsLoose.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/inheritsLoose.js deleted file mode 100644 index a27baf01..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/inheritsLoose.js +++ /dev/null @@ -1,5 +0,0 @@ -var setPrototypeOf = require("./setPrototypeOf.js"); -function _inheritsLoose(t, o) { - t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o); -} -module.exports = _inheritsLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/initializerDefineProperty.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/initializerDefineProperty.js deleted file mode 100644 index f9fa3173..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +++ /dev/null @@ -1,9 +0,0 @@ -function _initializerDefineProperty(e, i, r, l) { - r && Object.defineProperty(e, i, { - enumerable: r.enumerable, - configurable: r.configurable, - writable: r.writable, - value: r.initializer ? r.initializer.call(l) : void 0 - }); -} -module.exports = _initializerDefineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/initializerWarningHelper.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/initializerWarningHelper.js deleted file mode 100644 index e14ce59a..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +++ /dev/null @@ -1,4 +0,0 @@ -function _initializerWarningHelper(r, e) { - throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform."); -} -module.exports = _initializerWarningHelper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/instanceof.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/instanceof.js deleted file mode 100644 index 9952301d..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/instanceof.js +++ /dev/null @@ -1,4 +0,0 @@ -function _instanceof(n, e) { - return null != e && "undefined" != typeof Symbol && e[Symbol.hasInstance] ? !!e[Symbol.hasInstance](n) : n instanceof e; -} -module.exports = _instanceof, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/interopRequireDefault.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/interopRequireDefault.js deleted file mode 100644 index 69447158..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/interopRequireDefault.js +++ /dev/null @@ -1,6 +0,0 @@ -function _interopRequireDefault(e) { - return e && e.__esModule ? e : { - "default": e - }; -} -module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/interopRequireWildcard.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/interopRequireWildcard.js deleted file mode 100644 index d5f10543..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +++ /dev/null @@ -1,22 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -function _interopRequireWildcard(e, t) { - if ("function" == typeof WeakMap) var r = new WeakMap(), - n = new WeakMap(); - return (module.exports = _interopRequireWildcard = function _interopRequireWildcard(e, t) { - if (!t && e && e.__esModule) return e; - var o, - i, - f = { - __proto__: null, - "default": e - }; - if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; - if (o = t ? n : r) { - if (o.has(e)) return o.get(e); - o.set(e, f); - } - for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); - return f; - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(e, t); -} -module.exports = _interopRequireWildcard, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/isNativeFunction.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/isNativeFunction.js deleted file mode 100644 index f0eb49e3..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/isNativeFunction.js +++ /dev/null @@ -1,8 +0,0 @@ -function _isNativeFunction(t) { - try { - return -1 !== Function.toString.call(t).indexOf("[native code]"); - } catch (n) { - return "function" == typeof t; - } -} -module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js deleted file mode 100644 index b677e107..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +++ /dev/null @@ -1,9 +0,0 @@ -function _isNativeReflectConstruct() { - try { - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); - } catch (t) {} - return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() { - return !!t; - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); -} -module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/iterableToArray.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/iterableToArray.js deleted file mode 100644 index c839a321..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/iterableToArray.js +++ /dev/null @@ -1,4 +0,0 @@ -function _iterableToArray(r) { - if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); -} -module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js deleted file mode 100644 index 2671778b..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +++ /dev/null @@ -1,28 +0,0 @@ -function _iterableToArrayLimit(r, l) { - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; - if (null != t) { - var e, - n, - i, - u, - a = [], - f = !0, - o = !1; - try { - if (i = (t = t.call(r)).next, 0 === l) { - if (Object(t) !== t) return; - f = !1; - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); - } catch (r) { - o = !0, n = r; - } finally { - try { - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; - } finally { - if (o) throw n; - } - } - return a; - } -} -module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/jsx.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/jsx.js deleted file mode 100644 index 3415eead..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/jsx.js +++ /dev/null @@ -1,22 +0,0 @@ -var REACT_ELEMENT_TYPE; -function _createRawReactElement(e, r, E, l) { - REACT_ELEMENT_TYPE || (REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol["for"] && Symbol["for"]("react.element") || 60103); - var o = e && e.defaultProps, - n = arguments.length - 3; - if (r || 0 === n || (r = { - children: void 0 - }), 1 === n) r.children = l;else if (n > 1) { - for (var t = Array(n), f = 0; f < n; f++) t[f] = arguments[f + 3]; - r.children = t; - } - if (r && o) for (var i in o) void 0 === r[i] && (r[i] = o[i]);else r || (r = o || {}); - return { - $$typeof: REACT_ELEMENT_TYPE, - type: e, - key: void 0 === E ? null : "" + E, - ref: null, - props: r, - _owner: null - }; -} -module.exports = _createRawReactElement, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/maybeArrayLike.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/maybeArrayLike.js deleted file mode 100644 index 9873cc76..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/maybeArrayLike.js +++ /dev/null @@ -1,9 +0,0 @@ -var arrayLikeToArray = require("./arrayLikeToArray.js"); -function _maybeArrayLike(r, a, e) { - if (a && !Array.isArray(a) && "number" == typeof a.length) { - var y = a.length; - return arrayLikeToArray(a, void 0 !== e && e < y ? e : y); - } - return r(a, e); -} -module.exports = _maybeArrayLike, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/newArrowCheck.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/newArrowCheck.js deleted file mode 100644 index 8e74d991..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/newArrowCheck.js +++ /dev/null @@ -1,4 +0,0 @@ -function _newArrowCheck(n, r) { - if (n !== r) throw new TypeError("Cannot instantiate an arrow function"); -} -module.exports = _newArrowCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/nonIterableRest.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/nonIterableRest.js deleted file mode 100644 index 95265ba3..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/nonIterableRest.js +++ /dev/null @@ -1,4 +0,0 @@ -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/nonIterableSpread.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/nonIterableSpread.js deleted file mode 100644 index 3fcf23f0..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/nonIterableSpread.js +++ /dev/null @@ -1,4 +0,0 @@ -function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/nullishReceiverError.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/nullishReceiverError.js deleted file mode 100644 index 970e0231..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/nullishReceiverError.js +++ /dev/null @@ -1,4 +0,0 @@ -function _nullishReceiverError(r) { - throw new TypeError("Cannot set property of null or undefined."); -} -module.exports = _nullishReceiverError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js deleted file mode 100644 index 9f62a1b0..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +++ /dev/null @@ -1,4 +0,0 @@ -function _objectDestructuringEmpty(t) { - if (null == t) throw new TypeError("Cannot destructure " + t); -} -module.exports = _objectDestructuringEmpty, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/objectSpread.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/objectSpread.js deleted file mode 100644 index a3676438..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/objectSpread.js +++ /dev/null @@ -1,14 +0,0 @@ -var defineProperty = require("./defineProperty.js"); -function _objectSpread(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? Object(arguments[r]) : {}, - o = Object.keys(t); - "function" == typeof Object.getOwnPropertySymbols && o.push.apply(o, Object.getOwnPropertySymbols(t).filter(function (e) { - return Object.getOwnPropertyDescriptor(t, e).enumerable; - })), o.forEach(function (r) { - defineProperty(e, r, t[r]); - }); - } - return e; -} -module.exports = _objectSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/objectSpread2.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/objectSpread2.js deleted file mode 100644 index 4f3b9fa0..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/objectSpread2.js +++ /dev/null @@ -1,23 +0,0 @@ -var defineProperty = require("./defineProperty.js"); -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function _objectSpread2(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -module.exports = _objectSpread2, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/objectWithoutProperties.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/objectWithoutProperties.js deleted file mode 100644 index 3a40f9e4..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +++ /dev/null @@ -1,13 +0,0 @@ -var objectWithoutPropertiesLoose = require("./objectWithoutPropertiesLoose.js"); -function _objectWithoutProperties(e, t) { - if (null == e) return {}; - var o, - r, - i = objectWithoutPropertiesLoose(e, t); - if (Object.getOwnPropertySymbols) { - var n = Object.getOwnPropertySymbols(e); - for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); - } - return i; -} -module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js deleted file mode 100644 index c243acdf..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +++ /dev/null @@ -1,10 +0,0 @@ -function _objectWithoutPropertiesLoose(r, e) { - if (null == r) return {}; - var t = {}; - for (var n in r) if ({}.hasOwnProperty.call(r, n)) { - if (-1 !== e.indexOf(n)) continue; - t[n] = r[n]; - } - return t; -} -module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js deleted file mode 100644 index 06e6e6d8..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +++ /dev/null @@ -1,8 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var assertThisInitialized = require("./assertThisInitialized.js"); -function _possibleConstructorReturn(t, e) { - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); - return assertThisInitialized(t); -} -module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/readOnlyError.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/readOnlyError.js deleted file mode 100644 index 1bf3e092..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/readOnlyError.js +++ /dev/null @@ -1,4 +0,0 @@ -function _readOnlyError(r) { - throw new TypeError('"' + r + '" is read-only'); -} -module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/regenerator.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/regenerator.js deleted file mode 100644 index 0cf8710a..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/regenerator.js +++ /dev/null @@ -1,89 +0,0 @@ -var regeneratorDefine = require("./regeneratorDefine.js"); -function _regenerator() { - /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ - var e, - t, - r = "function" == typeof Symbol ? Symbol : {}, - n = r.iterator || "@@iterator", - o = r.toStringTag || "@@toStringTag"; - function i(r, n, o, i) { - var c = n && n.prototype instanceof Generator ? n : Generator, - u = Object.create(c.prototype); - return regeneratorDefine(u, "_invoke", function (r, n, o) { - var i, - c, - u, - f = 0, - p = o || [], - y = !1, - G = { - p: 0, - n: 0, - v: e, - a: d, - f: d.bind(e, 4), - d: function d(t, r) { - return i = t, c = 0, u = e, G.n = r, a; - } - }; - function d(r, n) { - for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { - var o, - i = p[t], - d = G.p, - l = i[2]; - r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); - } - if (o || r > 1) return a; - throw y = !0, n; - } - return function (o, p, l) { - if (f > 1) throw TypeError("Generator is already running"); - for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { - i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); - try { - if (f = 2, i) { - if (c || (o = "next"), t = i[o]) { - if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); - if (!t.done) return t; - u = t.value, c < 2 && (c = 0); - } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); - i = e; - } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; - } catch (t) { - i = e, c = 1, u = t; - } finally { - f = 1; - } - } - return { - value: t, - done: y - }; - }; - }(r, o, i), !0), u; - } - var a = {}; - function Generator() {} - function GeneratorFunction() {} - function GeneratorFunctionPrototype() {} - t = Object.getPrototypeOf; - var c = [][n] ? t(t([][n]())) : (regeneratorDefine(t = {}, n, function () { - return this; - }), t), - u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); - function f(e) { - return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; - } - return GeneratorFunction.prototype = GeneratorFunctionPrototype, regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), regeneratorDefine(u), regeneratorDefine(u, o, "Generator"), regeneratorDefine(u, n, function () { - return this; - }), regeneratorDefine(u, "toString", function () { - return "[object Generator]"; - }), (module.exports = _regenerator = function _regenerator() { - return { - w: i, - m: f - }; - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); -} -module.exports = _regenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorAsync.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorAsync.js deleted file mode 100644 index d1e4c3f9..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorAsync.js +++ /dev/null @@ -1,8 +0,0 @@ -var regeneratorAsyncGen = require("./regeneratorAsyncGen.js"); -function _regeneratorAsync(n, e, r, t, o) { - var a = regeneratorAsyncGen(n, e, r, t, o); - return a.next().then(function (n) { - return n.done ? n.value : a.next(); - }); -} -module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js deleted file mode 100644 index f0212e32..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js +++ /dev/null @@ -1,6 +0,0 @@ -var regenerator = require("./regenerator.js"); -var regeneratorAsyncIterator = require("./regeneratorAsyncIterator.js"); -function _regeneratorAsyncGen(r, e, t, o, n) { - return new regeneratorAsyncIterator(regenerator().w(r, e, t, o), n || Promise); -} -module.exports = _regeneratorAsyncGen, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js deleted file mode 100644 index afcb0601..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js +++ /dev/null @@ -1,33 +0,0 @@ -var OverloadYield = require("./OverloadYield.js"); -var regeneratorDefine = require("./regeneratorDefine.js"); -function AsyncIterator(t, e) { - function n(r, o, i, f) { - try { - var c = t[r](o), - u = c.value; - return u instanceof OverloadYield ? e.resolve(u.v).then(function (t) { - n("next", t, i, f); - }, function (t) { - n("throw", t, i, f); - }) : e.resolve(u).then(function (t) { - c.value = t, i(c); - }, function (t) { - return n("throw", t, i, f); - }); - } catch (t) { - f(t); - } - } - var r; - this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () { - return this; - })), regeneratorDefine(this, "_invoke", function (t, o, i) { - function f() { - return new e(function (e, r) { - n(t, i, e, r); - }); - } - return r = r ? r.then(f, f) : f(); - }, !0); -} -module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorDefine.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorDefine.js deleted file mode 100644 index 8d7ffe09..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorDefine.js +++ /dev/null @@ -1,22 +0,0 @@ -function _regeneratorDefine(e, r, n, t) { - var i = Object.defineProperty; - try { - i({}, "", {}); - } catch (e) { - i = 0; - } - module.exports = _regeneratorDefine = function regeneratorDefine(e, r, n, t) { - function o(r, n) { - _regeneratorDefine(e, r, function (e) { - return this._invoke(r, n, e); - }); - } - r ? i ? i(e, r, { - value: n, - enumerable: !t, - configurable: !t, - writable: !t - }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _regeneratorDefine(e, r, n, t); -} -module.exports = _regeneratorDefine, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorKeys.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorKeys.js deleted file mode 100644 index 99442bdd..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorKeys.js +++ /dev/null @@ -1,10 +0,0 @@ -function _regeneratorKeys(e) { - var n = Object(e), - r = []; - for (var t in n) r.unshift(t); - return function e() { - for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e; - return e.done = !0, e; - }; -} -module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorRuntime.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorRuntime.js deleted file mode 100644 index 24baaa05..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +++ /dev/null @@ -1,77 +0,0 @@ -var OverloadYield = require("./OverloadYield.js"); -var regenerator = require("./regenerator.js"); -var regeneratorAsync = require("./regeneratorAsync.js"); -var regeneratorAsyncGen = require("./regeneratorAsyncGen.js"); -var regeneratorAsyncIterator = require("./regeneratorAsyncIterator.js"); -var regeneratorKeys = require("./regeneratorKeys.js"); -var regeneratorValues = require("./regeneratorValues.js"); -function _regeneratorRuntime() { - "use strict"; - - var r = regenerator(), - e = r.m(_regeneratorRuntime), - t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor; - function n(r) { - var e = "function" == typeof r && r.constructor; - return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name)); - } - var o = { - "throw": 1, - "return": 2, - "break": 3, - "continue": 3 - }; - function a(r) { - var e, t; - return function (n) { - e || (e = { - stop: function stop() { - return t(n.a, 2); - }, - "catch": function _catch() { - return n.v; - }, - abrupt: function abrupt(r, e) { - return t(n.a, o[r], e); - }, - delegateYield: function delegateYield(r, o, a) { - return e.resultName = o, t(n.d, regeneratorValues(r), a); - }, - finish: function finish(r) { - return t(n.f, r); - } - }, t = function t(r, _t, o) { - n.p = e.prev, n.n = e.next; - try { - return r(_t, o); - } finally { - e.next = n.n; - } - }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n; - try { - return r.call(this, e); - } finally { - n.p = e.prev, n.n = e.next; - } - }; - } - return (module.exports = _regeneratorRuntime = function _regeneratorRuntime() { - return { - wrap: function wrap(e, t, n, o) { - return r.w(a(e), t, n, o && o.reverse()); - }, - isGeneratorFunction: n, - mark: r.m, - awrap: function awrap(r, e) { - return new OverloadYield(r, e); - }, - AsyncIterator: regeneratorAsyncIterator, - async: function async(r, e, t, o, u) { - return (n(e) ? regeneratorAsyncGen : regeneratorAsync)(a(r), e, t, o, u); - }, - keys: regeneratorKeys, - values: regeneratorValues - }; - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); -} -module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorValues.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorValues.js deleted file mode 100644 index 1335a23d..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/regeneratorValues.js +++ /dev/null @@ -1,19 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -function _regeneratorValues(e) { - if (null != e) { - var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], - r = 0; - if (t) return t.call(e); - if ("function" == typeof e.next) return e; - if (!isNaN(e.length)) return { - next: function next() { - return e && r >= e.length && (e = void 0), { - value: e && e[r++], - done: !e - }; - } - }; - } - throw new TypeError(_typeof(e) + " is not iterable"); -} -module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/set.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/set.js deleted file mode 100644 index 6421470a..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/set.js +++ /dev/null @@ -1,22 +0,0 @@ -var superPropBase = require("./superPropBase.js"); -var defineProperty = require("./defineProperty.js"); -function set(e, r, t, o) { - return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { - var f, - i = superPropBase(e, r); - if (i) { - if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; - if (!f.writable) return !1; - } - if (f = Object.getOwnPropertyDescriptor(o, r)) { - if (!f.writable) return !1; - f.value = t, Object.defineProperty(o, r, f); - } else defineProperty(o, r, t); - return !0; - }, set(e, r, t, o); -} -function _set(e, r, t, o, f) { - if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); - return t; -} -module.exports = _set, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/setFunctionName.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/setFunctionName.js deleted file mode 100644 index 9664076a..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/setFunctionName.js +++ /dev/null @@ -1,12 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -function setFunctionName(e, t, n) { - "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); - try { - Object.defineProperty(e, "name", { - configurable: !0, - value: n ? n + " " + t : t - }); - } catch (e) {} - return e; -} -module.exports = setFunctionName, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/setPrototypeOf.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/setPrototypeOf.js deleted file mode 100644 index 7d991ffa..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/setPrototypeOf.js +++ /dev/null @@ -1,6 +0,0 @@ -function _setPrototypeOf(t, e) { - return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { - return t.__proto__ = e, t; - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e); -} -module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js deleted file mode 100644 index 2aed548e..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +++ /dev/null @@ -1,7 +0,0 @@ -function _skipFirstGeneratorNext(t) { - return function () { - var r = t.apply(this, arguments); - return r.next(), r; - }; -} -module.exports = _skipFirstGeneratorNext, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/slicedToArray.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/slicedToArray.js deleted file mode 100644 index 3d752c42..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/slicedToArray.js +++ /dev/null @@ -1,8 +0,0 @@ -var arrayWithHoles = require("./arrayWithHoles.js"); -var iterableToArrayLimit = require("./iterableToArrayLimit.js"); -var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); -var nonIterableRest = require("./nonIterableRest.js"); -function _slicedToArray(r, e) { - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); -} -module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/superPropBase.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/superPropBase.js deleted file mode 100644 index 5cad4595..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/superPropBase.js +++ /dev/null @@ -1,6 +0,0 @@ -var getPrototypeOf = require("./getPrototypeOf.js"); -function _superPropBase(t, o) { - for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t));); - return t; -} -module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/superPropGet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/superPropGet.js deleted file mode 100644 index baf8b102..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/superPropGet.js +++ /dev/null @@ -1,9 +0,0 @@ -var get = require("./get.js"); -var getPrototypeOf = require("./getPrototypeOf.js"); -function _superPropGet(t, o, e, r) { - var p = get(getPrototypeOf(1 & r ? t.prototype : t), o, e); - return 2 & r && "function" == typeof p ? function (t) { - return p.apply(e, t); - } : p; -} -module.exports = _superPropGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/superPropSet.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/superPropSet.js deleted file mode 100644 index e0578c04..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/superPropSet.js +++ /dev/null @@ -1,6 +0,0 @@ -var set = require("./set.js"); -var getPrototypeOf = require("./getPrototypeOf.js"); -function _superPropSet(t, e, o, r, p, f) { - return set(getPrototypeOf(f ? t.prototype : t), e, o, r, p); -} -module.exports = _superPropSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js deleted file mode 100644 index 38d6065a..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +++ /dev/null @@ -1,8 +0,0 @@ -function _taggedTemplateLiteral(e, t) { - return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { - raw: { - value: Object.freeze(t) - } - })); -} -module.exports = _taggedTemplateLiteral, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js deleted file mode 100644 index 2f8c146a..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +++ /dev/null @@ -1,4 +0,0 @@ -function _taggedTemplateLiteralLoose(e, t) { - return t || (t = e.slice(0)), e.raw = t, e; -} -module.exports = _taggedTemplateLiteralLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/tdz.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/tdz.js deleted file mode 100644 index c66f476c..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/tdz.js +++ /dev/null @@ -1,4 +0,0 @@ -function _tdzError(e) { - throw new ReferenceError(e + " is not defined - temporal dead zone"); -} -module.exports = _tdzError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/temporalRef.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/temporalRef.js deleted file mode 100644 index 54c9190c..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/temporalRef.js +++ /dev/null @@ -1,6 +0,0 @@ -var temporalUndefined = require("./temporalUndefined.js"); -var tdz = require("./tdz.js"); -function _temporalRef(r, e) { - return r === temporalUndefined ? tdz(e) : r; -} -module.exports = _temporalRef, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/temporalUndefined.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/temporalUndefined.js deleted file mode 100644 index f8def800..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/temporalUndefined.js +++ /dev/null @@ -1,2 +0,0 @@ -function _temporalUndefined() {} -module.exports = _temporalUndefined, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/toArray.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/toArray.js deleted file mode 100644 index 2be1d2bd..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/toArray.js +++ /dev/null @@ -1,8 +0,0 @@ -var arrayWithHoles = require("./arrayWithHoles.js"); -var iterableToArray = require("./iterableToArray.js"); -var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); -var nonIterableRest = require("./nonIterableRest.js"); -function _toArray(r) { - return arrayWithHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableRest(); -} -module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/toConsumableArray.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/toConsumableArray.js deleted file mode 100644 index 698f9c69..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/toConsumableArray.js +++ /dev/null @@ -1,8 +0,0 @@ -var arrayWithoutHoles = require("./arrayWithoutHoles.js"); -var iterableToArray = require("./iterableToArray.js"); -var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); -var nonIterableSpread = require("./nonIterableSpread.js"); -function _toConsumableArray(r) { - return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread(); -} -module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/toPrimitive.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/toPrimitive.js deleted file mode 100644 index ef9d249b..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/toPrimitive.js +++ /dev/null @@ -1,12 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -function toPrimitive(t, r) { - if ("object" != _typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != _typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/toPropertyKey.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/toPropertyKey.js deleted file mode 100644 index 3ca3d4fc..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/toPropertyKey.js +++ /dev/null @@ -1,7 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var toPrimitive = require("./toPrimitive.js"); -function toPropertyKey(t) { - var i = toPrimitive(t, "string"); - return "symbol" == _typeof(i) ? i : i + ""; -} -module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/toSetter.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/toSetter.js deleted file mode 100644 index e0012a8f..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/toSetter.js +++ /dev/null @@ -1,10 +0,0 @@ -function _toSetter(t, e, n) { - e || (e = []); - var r = e.length++; - return Object.defineProperty({}, "_", { - set: function set(o) { - e[r] = o, t.apply(n, e); - } - }); -} -module.exports = _toSetter, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/tsRewriteRelativeImportExtensions.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/tsRewriteRelativeImportExtensions.js deleted file mode 100644 index 4de0e4de..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/tsRewriteRelativeImportExtensions.js +++ /dev/null @@ -1,6 +0,0 @@ -function tsRewriteRelativeImportExtensions(t, e) { - return "string" == typeof t && /^\.\.?\//.test(t) ? t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i, function (t, s, r, n, o) { - return s ? e ? ".jsx" : ".js" : !r || n && o ? r + n + "." + o.toLowerCase() + "js" : t; - }) : t; -} -module.exports = tsRewriteRelativeImportExtensions, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/typeof.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/typeof.js deleted file mode 100644 index b6fbfaf8..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/typeof.js +++ /dev/null @@ -1,10 +0,0 @@ -function _typeof(o) { - "@babel/helpers - typeof"; - - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); -} -module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js deleted file mode 100644 index 8fb1a71d..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +++ /dev/null @@ -1,9 +0,0 @@ -var arrayLikeToArray = require("./arrayLikeToArray.js"); -function _unsupportedIterableToArray(r, a) { - if (r) { - if ("string" == typeof r) return arrayLikeToArray(r, a); - var t = {}.toString.call(r).slice(8, -1); - return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0; - } -} -module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/using.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/using.js deleted file mode 100644 index 37c79e2c..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/using.js +++ /dev/null @@ -1,12 +0,0 @@ -function _using(o, n, e) { - if (null == n) return n; - if (Object(n) !== n) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined."); - if (e) var r = n[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")]; - if (null == r && (r = n[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof r) throw new TypeError("Property [Symbol.dispose] is not a function."); - return o.push({ - v: n, - d: r, - a: e - }), n; -} -module.exports = _using, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/usingCtx.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/usingCtx.js deleted file mode 100644 index 652ab15d..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/usingCtx.js +++ /dev/null @@ -1,59 +0,0 @@ -function _usingCtx() { - var r = "function" == typeof SuppressedError ? SuppressedError : function (r, e) { - var n = Error(); - return n.name = "SuppressedError", n.error = r, n.suppressed = e, n; - }, - e = {}, - n = []; - function using(r, e) { - if (null != e) { - if (Object(e) !== e) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined."); - if (r) var o = e[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")]; - if (void 0 === o && (o = e[Symbol.dispose || Symbol["for"]("Symbol.dispose")], r)) var t = o; - if ("function" != typeof o) throw new TypeError("Object is not disposable."); - t && (o = function o() { - try { - t.call(e); - } catch (r) { - return Promise.reject(r); - } - }), n.push({ - v: e, - d: o, - a: r - }); - } else r && n.push({ - d: e, - a: r - }); - return e; - } - return { - e: e, - u: using.bind(null, !1), - a: using.bind(null, !0), - d: function d() { - var o, - t = this.e, - s = 0; - function next() { - for (; o = n.pop();) try { - if (!o.a && 1 === s) return s = 0, n.push(o), Promise.resolve().then(next); - if (o.d) { - var r = o.d.call(o.v); - if (o.a) return s |= 2, Promise.resolve(r).then(next, err); - } else s |= 1; - } catch (r) { - return err(r); - } - if (1 === s) return t !== e ? Promise.reject(t) : Promise.resolve(); - if (t !== e) throw t; - } - function err(n) { - return t = t !== e ? new r(n, t) : n, next(); - } - return next(); - } - }; -} -module.exports = _usingCtx, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js deleted file mode 100644 index b818e2e4..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +++ /dev/null @@ -1,69 +0,0 @@ -var OverloadYield = require("./OverloadYield.js"); -function _wrapAsyncGenerator(e) { - return function () { - return new AsyncGenerator(e.apply(this, arguments)); - }; -} -function AsyncGenerator(e) { - var r, t; - function resume(r, t) { - try { - var n = e[r](t), - o = n.value, - u = o instanceof OverloadYield; - Promise.resolve(u ? o.v : o).then(function (t) { - if (u) { - var i = "return" === r ? "return" : "next"; - if (!o.k || t.done) return resume(i, t); - t = e[i](t).value; - } - settle(n.done ? "return" : "normal", t); - }, function (e) { - resume("throw", e); - }); - } catch (e) { - settle("throw", e); - } - } - function settle(e, n) { - switch (e) { - case "return": - r.resolve({ - value: n, - done: !0 - }); - break; - case "throw": - r.reject(n); - break; - default: - r.resolve({ - value: n, - done: !1 - }); - } - (r = r.next) ? resume(r.key, r.arg) : t = null; - } - this._invoke = function (e, n) { - return new Promise(function (o, u) { - var i = { - key: e, - arg: n, - resolve: o, - reject: u, - next: null - }; - t ? t = t.next = i : (r = t = i, resume(e, n)); - }); - }, "function" != typeof e["return"] && (this["return"] = void 0); -} -AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () { - return this; -}, AsyncGenerator.prototype.next = function (e) { - return this._invoke("next", e); -}, AsyncGenerator.prototype["throw"] = function (e) { - return this._invoke("throw", e); -}, AsyncGenerator.prototype["return"] = function (e) { - return this._invoke("return", e); -}; -module.exports = _wrapAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/wrapNativeSuper.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/wrapNativeSuper.js deleted file mode 100644 index acd87aba..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +++ /dev/null @@ -1,27 +0,0 @@ -var getPrototypeOf = require("./getPrototypeOf.js"); -var setPrototypeOf = require("./setPrototypeOf.js"); -var isNativeFunction = require("./isNativeFunction.js"); -var construct = require("./construct.js"); -function _wrapNativeSuper(t) { - var r = "function" == typeof Map ? new Map() : void 0; - return module.exports = _wrapNativeSuper = function _wrapNativeSuper(t) { - if (null === t || !isNativeFunction(t)) return t; - if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function"); - if (void 0 !== r) { - if (r.has(t)) return r.get(t); - r.set(t, Wrapper); - } - function Wrapper() { - return construct(t, arguments, getPrototypeOf(this).constructor); - } - return Wrapper.prototype = Object.create(t.prototype, { - constructor: { - value: Wrapper, - enumerable: !1, - writable: !0, - configurable: !0 - } - }), setPrototypeOf(Wrapper, t); - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t); -} -module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/wrapRegExp.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/wrapRegExp.js deleted file mode 100644 index 3d6e6ce5..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/wrapRegExp.js +++ /dev/null @@ -1,52 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var setPrototypeOf = require("./setPrototypeOf.js"); -var inherits = require("./inherits.js"); -function _wrapRegExp() { - module.exports = _wrapRegExp = function _wrapRegExp(e, r) { - return new BabelRegExp(e, void 0, r); - }, module.exports.__esModule = true, module.exports["default"] = module.exports; - var e = RegExp.prototype, - r = new WeakMap(); - function BabelRegExp(e, t, p) { - var o = RegExp(e, t); - return r.set(o, p || r.get(e)), setPrototypeOf(o, BabelRegExp.prototype); - } - function buildGroups(e, t) { - var p = r.get(t); - return Object.keys(p).reduce(function (r, t) { - var o = p[t]; - if ("number" == typeof o) r[t] = e[o];else { - for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; - r[t] = e[o[i]]; - } - return r; - }, Object.create(null)); - } - return inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { - var t = e.exec.call(this, r); - if (t) { - t.groups = buildGroups(t, this); - var p = t.indices; - p && (p.groups = buildGroups(p, this)); - } - return t; - }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { - if ("string" == typeof p) { - var o = r.get(this); - return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)(>|$)/g, function (e, r, t) { - if ("" === t) return e; - var p = o[r]; - return Array.isArray(p) ? "$" + p.join("$") : "number" == typeof p ? "$" + p : ""; - })); - } - if ("function" == typeof p) { - var i = this; - return e[Symbol.replace].call(this, t, function () { - var e = arguments; - return "object" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); - }); - } - return e[Symbol.replace].call(this, t, p); - }, _wrapRegExp.apply(this, arguments); -} -module.exports = _wrapRegExp, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/helpers/writeOnlyError.js b/build_vtk_bundle/node_modules/@babel/runtime/helpers/writeOnlyError.js deleted file mode 100644 index c98ee825..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/helpers/writeOnlyError.js +++ /dev/null @@ -1,4 +0,0 @@ -function _writeOnlyError(r) { - throw new TypeError('"' + r + '" is write-only'); -} -module.exports = _writeOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/package.json b/build_vtk_bundle/node_modules/@babel/runtime/package.json deleted file mode 100644 index 1a8098a7..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/package.json +++ /dev/null @@ -1,1107 +0,0 @@ -{ - "name": "@babel/runtime", - "version": "7.28.4", - "description": "babel's modular runtime helpers", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-runtime" - }, - "homepage": "https://babel.dev/docs/en/next/babel-runtime", - "author": "The Babel Team (https://babel.dev/team)", - "exports": { - "./helpers/OverloadYield": [ - { - "node": "./helpers/OverloadYield.js", - "import": "./helpers/esm/OverloadYield.js", - "default": "./helpers/OverloadYield.js" - }, - "./helpers/OverloadYield.js" - ], - "./helpers/esm/OverloadYield": "./helpers/esm/OverloadYield.js", - "./helpers/applyDecoratedDescriptor": [ - { - "node": "./helpers/applyDecoratedDescriptor.js", - "import": "./helpers/esm/applyDecoratedDescriptor.js", - "default": "./helpers/applyDecoratedDescriptor.js" - }, - "./helpers/applyDecoratedDescriptor.js" - ], - "./helpers/esm/applyDecoratedDescriptor": "./helpers/esm/applyDecoratedDescriptor.js", - "./helpers/applyDecs2311": [ - { - "node": "./helpers/applyDecs2311.js", - "import": "./helpers/esm/applyDecs2311.js", - "default": "./helpers/applyDecs2311.js" - }, - "./helpers/applyDecs2311.js" - ], - "./helpers/esm/applyDecs2311": "./helpers/esm/applyDecs2311.js", - "./helpers/arrayLikeToArray": [ - { - "node": "./helpers/arrayLikeToArray.js", - "import": "./helpers/esm/arrayLikeToArray.js", - "default": "./helpers/arrayLikeToArray.js" - }, - "./helpers/arrayLikeToArray.js" - ], - "./helpers/esm/arrayLikeToArray": "./helpers/esm/arrayLikeToArray.js", - "./helpers/arrayWithHoles": [ - { - "node": "./helpers/arrayWithHoles.js", - "import": "./helpers/esm/arrayWithHoles.js", - "default": "./helpers/arrayWithHoles.js" - }, - "./helpers/arrayWithHoles.js" - ], - "./helpers/esm/arrayWithHoles": "./helpers/esm/arrayWithHoles.js", - "./helpers/arrayWithoutHoles": [ - { - "node": "./helpers/arrayWithoutHoles.js", - "import": "./helpers/esm/arrayWithoutHoles.js", - "default": "./helpers/arrayWithoutHoles.js" - }, - "./helpers/arrayWithoutHoles.js" - ], - "./helpers/esm/arrayWithoutHoles": "./helpers/esm/arrayWithoutHoles.js", - "./helpers/assertClassBrand": [ - { - "node": "./helpers/assertClassBrand.js", - "import": "./helpers/esm/assertClassBrand.js", - "default": "./helpers/assertClassBrand.js" - }, - "./helpers/assertClassBrand.js" - ], - "./helpers/esm/assertClassBrand": "./helpers/esm/assertClassBrand.js", - "./helpers/assertThisInitialized": [ - { - "node": "./helpers/assertThisInitialized.js", - "import": "./helpers/esm/assertThisInitialized.js", - "default": "./helpers/assertThisInitialized.js" - }, - "./helpers/assertThisInitialized.js" - ], - "./helpers/esm/assertThisInitialized": "./helpers/esm/assertThisInitialized.js", - "./helpers/asyncGeneratorDelegate": [ - { - "node": "./helpers/asyncGeneratorDelegate.js", - "import": "./helpers/esm/asyncGeneratorDelegate.js", - "default": "./helpers/asyncGeneratorDelegate.js" - }, - "./helpers/asyncGeneratorDelegate.js" - ], - "./helpers/esm/asyncGeneratorDelegate": "./helpers/esm/asyncGeneratorDelegate.js", - "./helpers/asyncIterator": [ - { - "node": "./helpers/asyncIterator.js", - "import": "./helpers/esm/asyncIterator.js", - "default": "./helpers/asyncIterator.js" - }, - "./helpers/asyncIterator.js" - ], - "./helpers/esm/asyncIterator": "./helpers/esm/asyncIterator.js", - "./helpers/asyncToGenerator": [ - { - "node": "./helpers/asyncToGenerator.js", - "import": "./helpers/esm/asyncToGenerator.js", - "default": "./helpers/asyncToGenerator.js" - }, - "./helpers/asyncToGenerator.js" - ], - "./helpers/esm/asyncToGenerator": "./helpers/esm/asyncToGenerator.js", - "./helpers/awaitAsyncGenerator": [ - { - "node": "./helpers/awaitAsyncGenerator.js", - "import": "./helpers/esm/awaitAsyncGenerator.js", - "default": "./helpers/awaitAsyncGenerator.js" - }, - "./helpers/awaitAsyncGenerator.js" - ], - "./helpers/esm/awaitAsyncGenerator": "./helpers/esm/awaitAsyncGenerator.js", - "./helpers/callSuper": [ - { - "node": "./helpers/callSuper.js", - "import": "./helpers/esm/callSuper.js", - "default": "./helpers/callSuper.js" - }, - "./helpers/callSuper.js" - ], - "./helpers/esm/callSuper": "./helpers/esm/callSuper.js", - "./helpers/checkInRHS": [ - { - "node": "./helpers/checkInRHS.js", - "import": "./helpers/esm/checkInRHS.js", - "default": "./helpers/checkInRHS.js" - }, - "./helpers/checkInRHS.js" - ], - "./helpers/esm/checkInRHS": "./helpers/esm/checkInRHS.js", - "./helpers/checkPrivateRedeclaration": [ - { - "node": "./helpers/checkPrivateRedeclaration.js", - "import": "./helpers/esm/checkPrivateRedeclaration.js", - "default": "./helpers/checkPrivateRedeclaration.js" - }, - "./helpers/checkPrivateRedeclaration.js" - ], - "./helpers/esm/checkPrivateRedeclaration": "./helpers/esm/checkPrivateRedeclaration.js", - "./helpers/classCallCheck": [ - { - "node": "./helpers/classCallCheck.js", - "import": "./helpers/esm/classCallCheck.js", - "default": "./helpers/classCallCheck.js" - }, - "./helpers/classCallCheck.js" - ], - "./helpers/esm/classCallCheck": "./helpers/esm/classCallCheck.js", - "./helpers/classNameTDZError": [ - { - "node": "./helpers/classNameTDZError.js", - "import": "./helpers/esm/classNameTDZError.js", - "default": "./helpers/classNameTDZError.js" - }, - "./helpers/classNameTDZError.js" - ], - "./helpers/esm/classNameTDZError": "./helpers/esm/classNameTDZError.js", - "./helpers/classPrivateFieldGet2": [ - { - "node": "./helpers/classPrivateFieldGet2.js", - "import": "./helpers/esm/classPrivateFieldGet2.js", - "default": "./helpers/classPrivateFieldGet2.js" - }, - "./helpers/classPrivateFieldGet2.js" - ], - "./helpers/esm/classPrivateFieldGet2": "./helpers/esm/classPrivateFieldGet2.js", - "./helpers/classPrivateFieldInitSpec": [ - { - "node": "./helpers/classPrivateFieldInitSpec.js", - "import": "./helpers/esm/classPrivateFieldInitSpec.js", - "default": "./helpers/classPrivateFieldInitSpec.js" - }, - "./helpers/classPrivateFieldInitSpec.js" - ], - "./helpers/esm/classPrivateFieldInitSpec": "./helpers/esm/classPrivateFieldInitSpec.js", - "./helpers/classPrivateFieldLooseBase": [ - { - "node": "./helpers/classPrivateFieldLooseBase.js", - "import": "./helpers/esm/classPrivateFieldLooseBase.js", - "default": "./helpers/classPrivateFieldLooseBase.js" - }, - "./helpers/classPrivateFieldLooseBase.js" - ], - "./helpers/esm/classPrivateFieldLooseBase": "./helpers/esm/classPrivateFieldLooseBase.js", - "./helpers/classPrivateFieldLooseKey": [ - { - "node": "./helpers/classPrivateFieldLooseKey.js", - "import": "./helpers/esm/classPrivateFieldLooseKey.js", - "default": "./helpers/classPrivateFieldLooseKey.js" - }, - "./helpers/classPrivateFieldLooseKey.js" - ], - "./helpers/esm/classPrivateFieldLooseKey": "./helpers/esm/classPrivateFieldLooseKey.js", - "./helpers/classPrivateFieldSet2": [ - { - "node": "./helpers/classPrivateFieldSet2.js", - "import": "./helpers/esm/classPrivateFieldSet2.js", - "default": "./helpers/classPrivateFieldSet2.js" - }, - "./helpers/classPrivateFieldSet2.js" - ], - "./helpers/esm/classPrivateFieldSet2": "./helpers/esm/classPrivateFieldSet2.js", - "./helpers/classPrivateGetter": [ - { - "node": "./helpers/classPrivateGetter.js", - "import": "./helpers/esm/classPrivateGetter.js", - "default": "./helpers/classPrivateGetter.js" - }, - "./helpers/classPrivateGetter.js" - ], - "./helpers/esm/classPrivateGetter": "./helpers/esm/classPrivateGetter.js", - "./helpers/classPrivateMethodInitSpec": [ - { - "node": "./helpers/classPrivateMethodInitSpec.js", - "import": "./helpers/esm/classPrivateMethodInitSpec.js", - "default": "./helpers/classPrivateMethodInitSpec.js" - }, - "./helpers/classPrivateMethodInitSpec.js" - ], - "./helpers/esm/classPrivateMethodInitSpec": "./helpers/esm/classPrivateMethodInitSpec.js", - "./helpers/classPrivateSetter": [ - { - "node": "./helpers/classPrivateSetter.js", - "import": "./helpers/esm/classPrivateSetter.js", - "default": "./helpers/classPrivateSetter.js" - }, - "./helpers/classPrivateSetter.js" - ], - "./helpers/esm/classPrivateSetter": "./helpers/esm/classPrivateSetter.js", - "./helpers/classStaticPrivateMethodGet": [ - { - "node": "./helpers/classStaticPrivateMethodGet.js", - "import": "./helpers/esm/classStaticPrivateMethodGet.js", - "default": "./helpers/classStaticPrivateMethodGet.js" - }, - "./helpers/classStaticPrivateMethodGet.js" - ], - "./helpers/esm/classStaticPrivateMethodGet": "./helpers/esm/classStaticPrivateMethodGet.js", - "./helpers/construct": [ - { - "node": "./helpers/construct.js", - "import": "./helpers/esm/construct.js", - "default": "./helpers/construct.js" - }, - "./helpers/construct.js" - ], - "./helpers/esm/construct": "./helpers/esm/construct.js", - "./helpers/createClass": [ - { - "node": "./helpers/createClass.js", - "import": "./helpers/esm/createClass.js", - "default": "./helpers/createClass.js" - }, - "./helpers/createClass.js" - ], - "./helpers/esm/createClass": "./helpers/esm/createClass.js", - "./helpers/createForOfIteratorHelper": [ - { - "node": "./helpers/createForOfIteratorHelper.js", - "import": "./helpers/esm/createForOfIteratorHelper.js", - "default": "./helpers/createForOfIteratorHelper.js" - }, - "./helpers/createForOfIteratorHelper.js" - ], - "./helpers/esm/createForOfIteratorHelper": "./helpers/esm/createForOfIteratorHelper.js", - "./helpers/createForOfIteratorHelperLoose": [ - { - "node": "./helpers/createForOfIteratorHelperLoose.js", - "import": "./helpers/esm/createForOfIteratorHelperLoose.js", - "default": "./helpers/createForOfIteratorHelperLoose.js" - }, - "./helpers/createForOfIteratorHelperLoose.js" - ], - "./helpers/esm/createForOfIteratorHelperLoose": "./helpers/esm/createForOfIteratorHelperLoose.js", - "./helpers/createSuper": [ - { - "node": "./helpers/createSuper.js", - "import": "./helpers/esm/createSuper.js", - "default": "./helpers/createSuper.js" - }, - "./helpers/createSuper.js" - ], - "./helpers/esm/createSuper": "./helpers/esm/createSuper.js", - "./helpers/decorate": [ - { - "node": "./helpers/decorate.js", - "import": "./helpers/esm/decorate.js", - "default": "./helpers/decorate.js" - }, - "./helpers/decorate.js" - ], - "./helpers/esm/decorate": "./helpers/esm/decorate.js", - "./helpers/defaults": [ - { - "node": "./helpers/defaults.js", - "import": "./helpers/esm/defaults.js", - "default": "./helpers/defaults.js" - }, - "./helpers/defaults.js" - ], - "./helpers/esm/defaults": "./helpers/esm/defaults.js", - "./helpers/defineAccessor": [ - { - "node": "./helpers/defineAccessor.js", - "import": "./helpers/esm/defineAccessor.js", - "default": "./helpers/defineAccessor.js" - }, - "./helpers/defineAccessor.js" - ], - "./helpers/esm/defineAccessor": "./helpers/esm/defineAccessor.js", - "./helpers/defineProperty": [ - { - "node": "./helpers/defineProperty.js", - "import": "./helpers/esm/defineProperty.js", - "default": "./helpers/defineProperty.js" - }, - "./helpers/defineProperty.js" - ], - "./helpers/esm/defineProperty": "./helpers/esm/defineProperty.js", - "./helpers/extends": [ - { - "node": "./helpers/extends.js", - "import": "./helpers/esm/extends.js", - "default": "./helpers/extends.js" - }, - "./helpers/extends.js" - ], - "./helpers/esm/extends": "./helpers/esm/extends.js", - "./helpers/get": [ - { - "node": "./helpers/get.js", - "import": "./helpers/esm/get.js", - "default": "./helpers/get.js" - }, - "./helpers/get.js" - ], - "./helpers/esm/get": "./helpers/esm/get.js", - "./helpers/getPrototypeOf": [ - { - "node": "./helpers/getPrototypeOf.js", - "import": "./helpers/esm/getPrototypeOf.js", - "default": "./helpers/getPrototypeOf.js" - }, - "./helpers/getPrototypeOf.js" - ], - "./helpers/esm/getPrototypeOf": "./helpers/esm/getPrototypeOf.js", - "./helpers/identity": [ - { - "node": "./helpers/identity.js", - "import": "./helpers/esm/identity.js", - "default": "./helpers/identity.js" - }, - "./helpers/identity.js" - ], - "./helpers/esm/identity": "./helpers/esm/identity.js", - "./helpers/importDeferProxy": [ - { - "node": "./helpers/importDeferProxy.js", - "import": "./helpers/esm/importDeferProxy.js", - "default": "./helpers/importDeferProxy.js" - }, - "./helpers/importDeferProxy.js" - ], - "./helpers/esm/importDeferProxy": "./helpers/esm/importDeferProxy.js", - "./helpers/inherits": [ - { - "node": "./helpers/inherits.js", - "import": "./helpers/esm/inherits.js", - "default": "./helpers/inherits.js" - }, - "./helpers/inherits.js" - ], - "./helpers/esm/inherits": "./helpers/esm/inherits.js", - "./helpers/inheritsLoose": [ - { - "node": "./helpers/inheritsLoose.js", - "import": "./helpers/esm/inheritsLoose.js", - "default": "./helpers/inheritsLoose.js" - }, - "./helpers/inheritsLoose.js" - ], - "./helpers/esm/inheritsLoose": "./helpers/esm/inheritsLoose.js", - "./helpers/initializerDefineProperty": [ - { - "node": "./helpers/initializerDefineProperty.js", - "import": "./helpers/esm/initializerDefineProperty.js", - "default": "./helpers/initializerDefineProperty.js" - }, - "./helpers/initializerDefineProperty.js" - ], - "./helpers/esm/initializerDefineProperty": "./helpers/esm/initializerDefineProperty.js", - "./helpers/initializerWarningHelper": [ - { - "node": "./helpers/initializerWarningHelper.js", - "import": "./helpers/esm/initializerWarningHelper.js", - "default": "./helpers/initializerWarningHelper.js" - }, - "./helpers/initializerWarningHelper.js" - ], - "./helpers/esm/initializerWarningHelper": "./helpers/esm/initializerWarningHelper.js", - "./helpers/instanceof": [ - { - "node": "./helpers/instanceof.js", - "import": "./helpers/esm/instanceof.js", - "default": "./helpers/instanceof.js" - }, - "./helpers/instanceof.js" - ], - "./helpers/esm/instanceof": "./helpers/esm/instanceof.js", - "./helpers/interopRequireDefault": [ - { - "node": "./helpers/interopRequireDefault.js", - "import": "./helpers/esm/interopRequireDefault.js", - "default": "./helpers/interopRequireDefault.js" - }, - "./helpers/interopRequireDefault.js" - ], - "./helpers/esm/interopRequireDefault": "./helpers/esm/interopRequireDefault.js", - "./helpers/interopRequireWildcard": [ - { - "node": "./helpers/interopRequireWildcard.js", - "import": "./helpers/esm/interopRequireWildcard.js", - "default": "./helpers/interopRequireWildcard.js" - }, - "./helpers/interopRequireWildcard.js" - ], - "./helpers/esm/interopRequireWildcard": "./helpers/esm/interopRequireWildcard.js", - "./helpers/isNativeFunction": [ - { - "node": "./helpers/isNativeFunction.js", - "import": "./helpers/esm/isNativeFunction.js", - "default": "./helpers/isNativeFunction.js" - }, - "./helpers/isNativeFunction.js" - ], - "./helpers/esm/isNativeFunction": "./helpers/esm/isNativeFunction.js", - "./helpers/isNativeReflectConstruct": [ - { - "node": "./helpers/isNativeReflectConstruct.js", - "import": "./helpers/esm/isNativeReflectConstruct.js", - "default": "./helpers/isNativeReflectConstruct.js" - }, - "./helpers/isNativeReflectConstruct.js" - ], - "./helpers/esm/isNativeReflectConstruct": "./helpers/esm/isNativeReflectConstruct.js", - "./helpers/iterableToArray": [ - { - "node": "./helpers/iterableToArray.js", - "import": "./helpers/esm/iterableToArray.js", - "default": "./helpers/iterableToArray.js" - }, - "./helpers/iterableToArray.js" - ], - "./helpers/esm/iterableToArray": "./helpers/esm/iterableToArray.js", - "./helpers/iterableToArrayLimit": [ - { - "node": "./helpers/iterableToArrayLimit.js", - "import": "./helpers/esm/iterableToArrayLimit.js", - "default": "./helpers/iterableToArrayLimit.js" - }, - "./helpers/iterableToArrayLimit.js" - ], - "./helpers/esm/iterableToArrayLimit": "./helpers/esm/iterableToArrayLimit.js", - "./helpers/jsx": [ - { - "node": "./helpers/jsx.js", - "import": "./helpers/esm/jsx.js", - "default": "./helpers/jsx.js" - }, - "./helpers/jsx.js" - ], - "./helpers/esm/jsx": "./helpers/esm/jsx.js", - "./helpers/maybeArrayLike": [ - { - "node": "./helpers/maybeArrayLike.js", - "import": "./helpers/esm/maybeArrayLike.js", - "default": "./helpers/maybeArrayLike.js" - }, - "./helpers/maybeArrayLike.js" - ], - "./helpers/esm/maybeArrayLike": "./helpers/esm/maybeArrayLike.js", - "./helpers/newArrowCheck": [ - { - "node": "./helpers/newArrowCheck.js", - "import": "./helpers/esm/newArrowCheck.js", - "default": "./helpers/newArrowCheck.js" - }, - "./helpers/newArrowCheck.js" - ], - "./helpers/esm/newArrowCheck": "./helpers/esm/newArrowCheck.js", - "./helpers/nonIterableRest": [ - { - "node": "./helpers/nonIterableRest.js", - "import": "./helpers/esm/nonIterableRest.js", - "default": "./helpers/nonIterableRest.js" - }, - "./helpers/nonIterableRest.js" - ], - "./helpers/esm/nonIterableRest": "./helpers/esm/nonIterableRest.js", - "./helpers/nonIterableSpread": [ - { - "node": "./helpers/nonIterableSpread.js", - "import": "./helpers/esm/nonIterableSpread.js", - "default": "./helpers/nonIterableSpread.js" - }, - "./helpers/nonIterableSpread.js" - ], - "./helpers/esm/nonIterableSpread": "./helpers/esm/nonIterableSpread.js", - "./helpers/nullishReceiverError": [ - { - "node": "./helpers/nullishReceiverError.js", - "import": "./helpers/esm/nullishReceiverError.js", - "default": "./helpers/nullishReceiverError.js" - }, - "./helpers/nullishReceiverError.js" - ], - "./helpers/esm/nullishReceiverError": "./helpers/esm/nullishReceiverError.js", - "./helpers/objectDestructuringEmpty": [ - { - "node": "./helpers/objectDestructuringEmpty.js", - "import": "./helpers/esm/objectDestructuringEmpty.js", - "default": "./helpers/objectDestructuringEmpty.js" - }, - "./helpers/objectDestructuringEmpty.js" - ], - "./helpers/esm/objectDestructuringEmpty": "./helpers/esm/objectDestructuringEmpty.js", - "./helpers/objectSpread2": [ - { - "node": "./helpers/objectSpread2.js", - "import": "./helpers/esm/objectSpread2.js", - "default": "./helpers/objectSpread2.js" - }, - "./helpers/objectSpread2.js" - ], - "./helpers/esm/objectSpread2": "./helpers/esm/objectSpread2.js", - "./helpers/objectWithoutProperties": [ - { - "node": "./helpers/objectWithoutProperties.js", - "import": "./helpers/esm/objectWithoutProperties.js", - "default": "./helpers/objectWithoutProperties.js" - }, - "./helpers/objectWithoutProperties.js" - ], - "./helpers/esm/objectWithoutProperties": "./helpers/esm/objectWithoutProperties.js", - "./helpers/objectWithoutPropertiesLoose": [ - { - "node": "./helpers/objectWithoutPropertiesLoose.js", - "import": "./helpers/esm/objectWithoutPropertiesLoose.js", - "default": "./helpers/objectWithoutPropertiesLoose.js" - }, - "./helpers/objectWithoutPropertiesLoose.js" - ], - "./helpers/esm/objectWithoutPropertiesLoose": "./helpers/esm/objectWithoutPropertiesLoose.js", - "./helpers/possibleConstructorReturn": [ - { - "node": "./helpers/possibleConstructorReturn.js", - "import": "./helpers/esm/possibleConstructorReturn.js", - "default": "./helpers/possibleConstructorReturn.js" - }, - "./helpers/possibleConstructorReturn.js" - ], - "./helpers/esm/possibleConstructorReturn": "./helpers/esm/possibleConstructorReturn.js", - "./helpers/readOnlyError": [ - { - "node": "./helpers/readOnlyError.js", - "import": "./helpers/esm/readOnlyError.js", - "default": "./helpers/readOnlyError.js" - }, - "./helpers/readOnlyError.js" - ], - "./helpers/esm/readOnlyError": "./helpers/esm/readOnlyError.js", - "./helpers/regenerator": [ - { - "node": "./helpers/regenerator.js", - "import": "./helpers/esm/regenerator.js", - "default": "./helpers/regenerator.js" - }, - "./helpers/regenerator.js" - ], - "./helpers/esm/regenerator": "./helpers/esm/regenerator.js", - "./helpers/regeneratorAsync": [ - { - "node": "./helpers/regeneratorAsync.js", - "import": "./helpers/esm/regeneratorAsync.js", - "default": "./helpers/regeneratorAsync.js" - }, - "./helpers/regeneratorAsync.js" - ], - "./helpers/esm/regeneratorAsync": "./helpers/esm/regeneratorAsync.js", - "./helpers/regeneratorAsyncGen": [ - { - "node": "./helpers/regeneratorAsyncGen.js", - "import": "./helpers/esm/regeneratorAsyncGen.js", - "default": "./helpers/regeneratorAsyncGen.js" - }, - "./helpers/regeneratorAsyncGen.js" - ], - "./helpers/esm/regeneratorAsyncGen": "./helpers/esm/regeneratorAsyncGen.js", - "./helpers/regeneratorKeys": [ - { - "node": "./helpers/regeneratorKeys.js", - "import": "./helpers/esm/regeneratorKeys.js", - "default": "./helpers/regeneratorKeys.js" - }, - "./helpers/regeneratorKeys.js" - ], - "./helpers/esm/regeneratorKeys": "./helpers/esm/regeneratorKeys.js", - "./helpers/regeneratorValues": [ - { - "node": "./helpers/regeneratorValues.js", - "import": "./helpers/esm/regeneratorValues.js", - "default": "./helpers/regeneratorValues.js" - }, - "./helpers/regeneratorValues.js" - ], - "./helpers/esm/regeneratorValues": "./helpers/esm/regeneratorValues.js", - "./helpers/set": [ - { - "node": "./helpers/set.js", - "import": "./helpers/esm/set.js", - "default": "./helpers/set.js" - }, - "./helpers/set.js" - ], - "./helpers/esm/set": "./helpers/esm/set.js", - "./helpers/setFunctionName": [ - { - "node": "./helpers/setFunctionName.js", - "import": "./helpers/esm/setFunctionName.js", - "default": "./helpers/setFunctionName.js" - }, - "./helpers/setFunctionName.js" - ], - "./helpers/esm/setFunctionName": "./helpers/esm/setFunctionName.js", - "./helpers/setPrototypeOf": [ - { - "node": "./helpers/setPrototypeOf.js", - "import": "./helpers/esm/setPrototypeOf.js", - "default": "./helpers/setPrototypeOf.js" - }, - "./helpers/setPrototypeOf.js" - ], - "./helpers/esm/setPrototypeOf": "./helpers/esm/setPrototypeOf.js", - "./helpers/skipFirstGeneratorNext": [ - { - "node": "./helpers/skipFirstGeneratorNext.js", - "import": "./helpers/esm/skipFirstGeneratorNext.js", - "default": "./helpers/skipFirstGeneratorNext.js" - }, - "./helpers/skipFirstGeneratorNext.js" - ], - "./helpers/esm/skipFirstGeneratorNext": "./helpers/esm/skipFirstGeneratorNext.js", - "./helpers/slicedToArray": [ - { - "node": "./helpers/slicedToArray.js", - "import": "./helpers/esm/slicedToArray.js", - "default": "./helpers/slicedToArray.js" - }, - "./helpers/slicedToArray.js" - ], - "./helpers/esm/slicedToArray": "./helpers/esm/slicedToArray.js", - "./helpers/superPropBase": [ - { - "node": "./helpers/superPropBase.js", - "import": "./helpers/esm/superPropBase.js", - "default": "./helpers/superPropBase.js" - }, - "./helpers/superPropBase.js" - ], - "./helpers/esm/superPropBase": "./helpers/esm/superPropBase.js", - "./helpers/superPropGet": [ - { - "node": "./helpers/superPropGet.js", - "import": "./helpers/esm/superPropGet.js", - "default": "./helpers/superPropGet.js" - }, - "./helpers/superPropGet.js" - ], - "./helpers/esm/superPropGet": "./helpers/esm/superPropGet.js", - "./helpers/superPropSet": [ - { - "node": "./helpers/superPropSet.js", - "import": "./helpers/esm/superPropSet.js", - "default": "./helpers/superPropSet.js" - }, - "./helpers/superPropSet.js" - ], - "./helpers/esm/superPropSet": "./helpers/esm/superPropSet.js", - "./helpers/taggedTemplateLiteral": [ - { - "node": "./helpers/taggedTemplateLiteral.js", - "import": "./helpers/esm/taggedTemplateLiteral.js", - "default": "./helpers/taggedTemplateLiteral.js" - }, - "./helpers/taggedTemplateLiteral.js" - ], - "./helpers/esm/taggedTemplateLiteral": "./helpers/esm/taggedTemplateLiteral.js", - "./helpers/taggedTemplateLiteralLoose": [ - { - "node": "./helpers/taggedTemplateLiteralLoose.js", - "import": "./helpers/esm/taggedTemplateLiteralLoose.js", - "default": "./helpers/taggedTemplateLiteralLoose.js" - }, - "./helpers/taggedTemplateLiteralLoose.js" - ], - "./helpers/esm/taggedTemplateLiteralLoose": "./helpers/esm/taggedTemplateLiteralLoose.js", - "./helpers/tdz": [ - { - "node": "./helpers/tdz.js", - "import": "./helpers/esm/tdz.js", - "default": "./helpers/tdz.js" - }, - "./helpers/tdz.js" - ], - "./helpers/esm/tdz": "./helpers/esm/tdz.js", - "./helpers/temporalRef": [ - { - "node": "./helpers/temporalRef.js", - "import": "./helpers/esm/temporalRef.js", - "default": "./helpers/temporalRef.js" - }, - "./helpers/temporalRef.js" - ], - "./helpers/esm/temporalRef": "./helpers/esm/temporalRef.js", - "./helpers/temporalUndefined": [ - { - "node": "./helpers/temporalUndefined.js", - "import": "./helpers/esm/temporalUndefined.js", - "default": "./helpers/temporalUndefined.js" - }, - "./helpers/temporalUndefined.js" - ], - "./helpers/esm/temporalUndefined": "./helpers/esm/temporalUndefined.js", - "./helpers/toArray": [ - { - "node": "./helpers/toArray.js", - "import": "./helpers/esm/toArray.js", - "default": "./helpers/toArray.js" - }, - "./helpers/toArray.js" - ], - "./helpers/esm/toArray": "./helpers/esm/toArray.js", - "./helpers/toConsumableArray": [ - { - "node": "./helpers/toConsumableArray.js", - "import": "./helpers/esm/toConsumableArray.js", - "default": "./helpers/toConsumableArray.js" - }, - "./helpers/toConsumableArray.js" - ], - "./helpers/esm/toConsumableArray": "./helpers/esm/toConsumableArray.js", - "./helpers/toPrimitive": [ - { - "node": "./helpers/toPrimitive.js", - "import": "./helpers/esm/toPrimitive.js", - "default": "./helpers/toPrimitive.js" - }, - "./helpers/toPrimitive.js" - ], - "./helpers/esm/toPrimitive": "./helpers/esm/toPrimitive.js", - "./helpers/toPropertyKey": [ - { - "node": "./helpers/toPropertyKey.js", - "import": "./helpers/esm/toPropertyKey.js", - "default": "./helpers/toPropertyKey.js" - }, - "./helpers/toPropertyKey.js" - ], - "./helpers/esm/toPropertyKey": "./helpers/esm/toPropertyKey.js", - "./helpers/toSetter": [ - { - "node": "./helpers/toSetter.js", - "import": "./helpers/esm/toSetter.js", - "default": "./helpers/toSetter.js" - }, - "./helpers/toSetter.js" - ], - "./helpers/esm/toSetter": "./helpers/esm/toSetter.js", - "./helpers/tsRewriteRelativeImportExtensions": [ - { - "node": "./helpers/tsRewriteRelativeImportExtensions.js", - "import": "./helpers/esm/tsRewriteRelativeImportExtensions.js", - "default": "./helpers/tsRewriteRelativeImportExtensions.js" - }, - "./helpers/tsRewriteRelativeImportExtensions.js" - ], - "./helpers/esm/tsRewriteRelativeImportExtensions": "./helpers/esm/tsRewriteRelativeImportExtensions.js", - "./helpers/typeof": [ - { - "node": "./helpers/typeof.js", - "import": "./helpers/esm/typeof.js", - "default": "./helpers/typeof.js" - }, - "./helpers/typeof.js" - ], - "./helpers/esm/typeof": "./helpers/esm/typeof.js", - "./helpers/unsupportedIterableToArray": [ - { - "node": "./helpers/unsupportedIterableToArray.js", - "import": "./helpers/esm/unsupportedIterableToArray.js", - "default": "./helpers/unsupportedIterableToArray.js" - }, - "./helpers/unsupportedIterableToArray.js" - ], - "./helpers/esm/unsupportedIterableToArray": "./helpers/esm/unsupportedIterableToArray.js", - "./helpers/usingCtx": [ - { - "node": "./helpers/usingCtx.js", - "import": "./helpers/esm/usingCtx.js", - "default": "./helpers/usingCtx.js" - }, - "./helpers/usingCtx.js" - ], - "./helpers/esm/usingCtx": "./helpers/esm/usingCtx.js", - "./helpers/wrapAsyncGenerator": [ - { - "node": "./helpers/wrapAsyncGenerator.js", - "import": "./helpers/esm/wrapAsyncGenerator.js", - "default": "./helpers/wrapAsyncGenerator.js" - }, - "./helpers/wrapAsyncGenerator.js" - ], - "./helpers/esm/wrapAsyncGenerator": "./helpers/esm/wrapAsyncGenerator.js", - "./helpers/wrapNativeSuper": [ - { - "node": "./helpers/wrapNativeSuper.js", - "import": "./helpers/esm/wrapNativeSuper.js", - "default": "./helpers/wrapNativeSuper.js" - }, - "./helpers/wrapNativeSuper.js" - ], - "./helpers/esm/wrapNativeSuper": "./helpers/esm/wrapNativeSuper.js", - "./helpers/wrapRegExp": [ - { - "node": "./helpers/wrapRegExp.js", - "import": "./helpers/esm/wrapRegExp.js", - "default": "./helpers/wrapRegExp.js" - }, - "./helpers/wrapRegExp.js" - ], - "./helpers/esm/wrapRegExp": "./helpers/esm/wrapRegExp.js", - "./helpers/writeOnlyError": [ - { - "node": "./helpers/writeOnlyError.js", - "import": "./helpers/esm/writeOnlyError.js", - "default": "./helpers/writeOnlyError.js" - }, - "./helpers/writeOnlyError.js" - ], - "./helpers/esm/writeOnlyError": "./helpers/esm/writeOnlyError.js", - "./helpers/AwaitValue": [ - { - "node": "./helpers/AwaitValue.js", - "import": "./helpers/esm/AwaitValue.js", - "default": "./helpers/AwaitValue.js" - }, - "./helpers/AwaitValue.js" - ], - "./helpers/esm/AwaitValue": "./helpers/esm/AwaitValue.js", - "./helpers/applyDecs": [ - { - "node": "./helpers/applyDecs.js", - "import": "./helpers/esm/applyDecs.js", - "default": "./helpers/applyDecs.js" - }, - "./helpers/applyDecs.js" - ], - "./helpers/esm/applyDecs": "./helpers/esm/applyDecs.js", - "./helpers/applyDecs2203": [ - { - "node": "./helpers/applyDecs2203.js", - "import": "./helpers/esm/applyDecs2203.js", - "default": "./helpers/applyDecs2203.js" - }, - "./helpers/applyDecs2203.js" - ], - "./helpers/esm/applyDecs2203": "./helpers/esm/applyDecs2203.js", - "./helpers/applyDecs2203R": [ - { - "node": "./helpers/applyDecs2203R.js", - "import": "./helpers/esm/applyDecs2203R.js", - "default": "./helpers/applyDecs2203R.js" - }, - "./helpers/applyDecs2203R.js" - ], - "./helpers/esm/applyDecs2203R": "./helpers/esm/applyDecs2203R.js", - "./helpers/applyDecs2301": [ - { - "node": "./helpers/applyDecs2301.js", - "import": "./helpers/esm/applyDecs2301.js", - "default": "./helpers/applyDecs2301.js" - }, - "./helpers/applyDecs2301.js" - ], - "./helpers/esm/applyDecs2301": "./helpers/esm/applyDecs2301.js", - "./helpers/applyDecs2305": [ - { - "node": "./helpers/applyDecs2305.js", - "import": "./helpers/esm/applyDecs2305.js", - "default": "./helpers/applyDecs2305.js" - }, - "./helpers/applyDecs2305.js" - ], - "./helpers/esm/applyDecs2305": "./helpers/esm/applyDecs2305.js", - "./helpers/classApplyDescriptorDestructureSet": [ - { - "node": "./helpers/classApplyDescriptorDestructureSet.js", - "import": "./helpers/esm/classApplyDescriptorDestructureSet.js", - "default": "./helpers/classApplyDescriptorDestructureSet.js" - }, - "./helpers/classApplyDescriptorDestructureSet.js" - ], - "./helpers/esm/classApplyDescriptorDestructureSet": "./helpers/esm/classApplyDescriptorDestructureSet.js", - "./helpers/classApplyDescriptorGet": [ - { - "node": "./helpers/classApplyDescriptorGet.js", - "import": "./helpers/esm/classApplyDescriptorGet.js", - "default": "./helpers/classApplyDescriptorGet.js" - }, - "./helpers/classApplyDescriptorGet.js" - ], - "./helpers/esm/classApplyDescriptorGet": "./helpers/esm/classApplyDescriptorGet.js", - "./helpers/classApplyDescriptorSet": [ - { - "node": "./helpers/classApplyDescriptorSet.js", - "import": "./helpers/esm/classApplyDescriptorSet.js", - "default": "./helpers/classApplyDescriptorSet.js" - }, - "./helpers/classApplyDescriptorSet.js" - ], - "./helpers/esm/classApplyDescriptorSet": "./helpers/esm/classApplyDescriptorSet.js", - "./helpers/classCheckPrivateStaticAccess": [ - { - "node": "./helpers/classCheckPrivateStaticAccess.js", - "import": "./helpers/esm/classCheckPrivateStaticAccess.js", - "default": "./helpers/classCheckPrivateStaticAccess.js" - }, - "./helpers/classCheckPrivateStaticAccess.js" - ], - "./helpers/esm/classCheckPrivateStaticAccess": "./helpers/esm/classCheckPrivateStaticAccess.js", - "./helpers/classCheckPrivateStaticFieldDescriptor": [ - { - "node": "./helpers/classCheckPrivateStaticFieldDescriptor.js", - "import": "./helpers/esm/classCheckPrivateStaticFieldDescriptor.js", - "default": "./helpers/classCheckPrivateStaticFieldDescriptor.js" - }, - "./helpers/classCheckPrivateStaticFieldDescriptor.js" - ], - "./helpers/esm/classCheckPrivateStaticFieldDescriptor": "./helpers/esm/classCheckPrivateStaticFieldDescriptor.js", - "./helpers/classExtractFieldDescriptor": [ - { - "node": "./helpers/classExtractFieldDescriptor.js", - "import": "./helpers/esm/classExtractFieldDescriptor.js", - "default": "./helpers/classExtractFieldDescriptor.js" - }, - "./helpers/classExtractFieldDescriptor.js" - ], - "./helpers/esm/classExtractFieldDescriptor": "./helpers/esm/classExtractFieldDescriptor.js", - "./helpers/classPrivateFieldDestructureSet": [ - { - "node": "./helpers/classPrivateFieldDestructureSet.js", - "import": "./helpers/esm/classPrivateFieldDestructureSet.js", - "default": "./helpers/classPrivateFieldDestructureSet.js" - }, - "./helpers/classPrivateFieldDestructureSet.js" - ], - "./helpers/esm/classPrivateFieldDestructureSet": "./helpers/esm/classPrivateFieldDestructureSet.js", - "./helpers/classPrivateFieldGet": [ - { - "node": "./helpers/classPrivateFieldGet.js", - "import": "./helpers/esm/classPrivateFieldGet.js", - "default": "./helpers/classPrivateFieldGet.js" - }, - "./helpers/classPrivateFieldGet.js" - ], - "./helpers/esm/classPrivateFieldGet": "./helpers/esm/classPrivateFieldGet.js", - "./helpers/classPrivateFieldSet": [ - { - "node": "./helpers/classPrivateFieldSet.js", - "import": "./helpers/esm/classPrivateFieldSet.js", - "default": "./helpers/classPrivateFieldSet.js" - }, - "./helpers/classPrivateFieldSet.js" - ], - "./helpers/esm/classPrivateFieldSet": "./helpers/esm/classPrivateFieldSet.js", - "./helpers/classPrivateMethodGet": [ - { - "node": "./helpers/classPrivateMethodGet.js", - "import": "./helpers/esm/classPrivateMethodGet.js", - "default": "./helpers/classPrivateMethodGet.js" - }, - "./helpers/classPrivateMethodGet.js" - ], - "./helpers/esm/classPrivateMethodGet": "./helpers/esm/classPrivateMethodGet.js", - "./helpers/classPrivateMethodSet": [ - { - "node": "./helpers/classPrivateMethodSet.js", - "import": "./helpers/esm/classPrivateMethodSet.js", - "default": "./helpers/classPrivateMethodSet.js" - }, - "./helpers/classPrivateMethodSet.js" - ], - "./helpers/esm/classPrivateMethodSet": "./helpers/esm/classPrivateMethodSet.js", - "./helpers/classStaticPrivateFieldDestructureSet": [ - { - "node": "./helpers/classStaticPrivateFieldDestructureSet.js", - "import": "./helpers/esm/classStaticPrivateFieldDestructureSet.js", - "default": "./helpers/classStaticPrivateFieldDestructureSet.js" - }, - "./helpers/classStaticPrivateFieldDestructureSet.js" - ], - "./helpers/esm/classStaticPrivateFieldDestructureSet": "./helpers/esm/classStaticPrivateFieldDestructureSet.js", - "./helpers/classStaticPrivateFieldSpecGet": [ - { - "node": "./helpers/classStaticPrivateFieldSpecGet.js", - "import": "./helpers/esm/classStaticPrivateFieldSpecGet.js", - "default": "./helpers/classStaticPrivateFieldSpecGet.js" - }, - "./helpers/classStaticPrivateFieldSpecGet.js" - ], - "./helpers/esm/classStaticPrivateFieldSpecGet": "./helpers/esm/classStaticPrivateFieldSpecGet.js", - "./helpers/classStaticPrivateFieldSpecSet": [ - { - "node": "./helpers/classStaticPrivateFieldSpecSet.js", - "import": "./helpers/esm/classStaticPrivateFieldSpecSet.js", - "default": "./helpers/classStaticPrivateFieldSpecSet.js" - }, - "./helpers/classStaticPrivateFieldSpecSet.js" - ], - "./helpers/esm/classStaticPrivateFieldSpecSet": "./helpers/esm/classStaticPrivateFieldSpecSet.js", - "./helpers/classStaticPrivateMethodSet": [ - { - "node": "./helpers/classStaticPrivateMethodSet.js", - "import": "./helpers/esm/classStaticPrivateMethodSet.js", - "default": "./helpers/classStaticPrivateMethodSet.js" - }, - "./helpers/classStaticPrivateMethodSet.js" - ], - "./helpers/esm/classStaticPrivateMethodSet": "./helpers/esm/classStaticPrivateMethodSet.js", - "./helpers/defineEnumerableProperties": [ - { - "node": "./helpers/defineEnumerableProperties.js", - "import": "./helpers/esm/defineEnumerableProperties.js", - "default": "./helpers/defineEnumerableProperties.js" - }, - "./helpers/defineEnumerableProperties.js" - ], - "./helpers/esm/defineEnumerableProperties": "./helpers/esm/defineEnumerableProperties.js", - "./helpers/dispose": [ - { - "node": "./helpers/dispose.js", - "import": "./helpers/esm/dispose.js", - "default": "./helpers/dispose.js" - }, - "./helpers/dispose.js" - ], - "./helpers/esm/dispose": "./helpers/esm/dispose.js", - "./helpers/objectSpread": [ - { - "node": "./helpers/objectSpread.js", - "import": "./helpers/esm/objectSpread.js", - "default": "./helpers/objectSpread.js" - }, - "./helpers/objectSpread.js" - ], - "./helpers/esm/objectSpread": "./helpers/esm/objectSpread.js", - "./helpers/regeneratorRuntime": [ - { - "node": "./helpers/regeneratorRuntime.js", - "import": "./helpers/esm/regeneratorRuntime.js", - "default": "./helpers/regeneratorRuntime.js" - }, - "./helpers/regeneratorRuntime.js" - ], - "./helpers/esm/regeneratorRuntime": "./helpers/esm/regeneratorRuntime.js", - "./helpers/using": [ - { - "node": "./helpers/using.js", - "import": "./helpers/esm/using.js", - "default": "./helpers/using.js" - }, - "./helpers/using.js" - ], - "./helpers/esm/using": "./helpers/esm/using.js", - "./package": "./package.json", - "./package.json": "./package.json", - "./regenerator": "./regenerator/index.js", - "./regenerator/*.js": "./regenerator/*.js", - "./regenerator/": "./regenerator/" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/runtime/regenerator/index.js b/build_vtk_bundle/node_modules/@babel/runtime/regenerator/index.js deleted file mode 100644 index 58813573..00000000 --- a/build_vtk_bundle/node_modules/@babel/runtime/regenerator/index.js +++ /dev/null @@ -1,15 +0,0 @@ -// TODO(Babel 8): Remove this file. - -var runtime = require("../helpers/regeneratorRuntime")(); -module.exports = runtime; - -// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736= -try { - regeneratorRuntime = runtime; -} catch (accidentalStrictMode) { - if (typeof globalThis === "object") { - globalThis.regeneratorRuntime = runtime; - } else { - Function("r", "regeneratorRuntime = r")(runtime); - } -} diff --git a/build_vtk_bundle/node_modules/@babel/template/LICENSE b/build_vtk_bundle/node_modules/@babel/template/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/template/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/template/README.md b/build_vtk_bundle/node_modules/@babel/template/README.md deleted file mode 100644 index c2980fd9..00000000 --- a/build_vtk_bundle/node_modules/@babel/template/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/template - -> Generate an AST from a string template. - -See our website [@babel/template](https://babeljs.io/docs/babel-template) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20template%22+is%3Aopen) associated with this package. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/template -``` - -or using yarn: - -```sh -yarn add @babel/template --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/template/package.json b/build_vtk_bundle/node_modules/@babel/template/package.json deleted file mode 100644 index ef9e3d2f..00000000 --- a/build_vtk_bundle/node_modules/@babel/template/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "@babel/template", - "version": "7.27.2", - "description": "Generate an AST from a string template.", - "author": "The Babel Team (https://babel.dev/team)", - "homepage": "https://babel.dev/docs/en/next/babel-template", - "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20template%22+is%3Aopen", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-template" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/parser": "^7.27.2", - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/traverse/LICENSE b/build_vtk_bundle/node_modules/@babel/traverse/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/traverse/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/traverse/README.md b/build_vtk_bundle/node_modules/@babel/traverse/README.md deleted file mode 100644 index 0bf77444..00000000 --- a/build_vtk_bundle/node_modules/@babel/traverse/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/traverse - -> The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes - -See our website [@babel/traverse](https://babeljs.io/docs/babel-traverse) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20traverse%22+is%3Aopen) associated with this package. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/traverse -``` - -or using yarn: - -```sh -yarn add @babel/traverse --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/traverse/package.json b/build_vtk_bundle/node_modules/@babel/traverse/package.json deleted file mode 100644 index da1c1cc9..00000000 --- a/build_vtk_bundle/node_modules/@babel/traverse/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "@babel/traverse", - "version": "7.28.5", - "description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes", - "author": "The Babel Team (https://babel.dev/team)", - "homepage": "https://babel.dev/docs/en/next/babel-traverse", - "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20traverse%22+is%3Aopen", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-traverse" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.28.5", - "@babel/helper-globals": "^7.28.0", - "@babel/parser": "^7.28.5", - "@babel/template": "^7.27.2", - "@babel/types": "^7.28.5", - "debug": "^4.3.1" - }, - "devDependencies": { - "@babel/core": "^7.28.5", - "@babel/helper-plugin-test-runner": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/traverse/tsconfig.overrides.json b/build_vtk_bundle/node_modules/@babel/traverse/tsconfig.overrides.json deleted file mode 100644 index a9d7089b..00000000 --- a/build_vtk_bundle/node_modules/@babel/traverse/tsconfig.overrides.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "compilerOptions": { - "strictNullChecks": true, - "strictPropertyInitialization": true - } -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@babel/types/LICENSE b/build_vtk_bundle/node_modules/@babel/types/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/types/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@babel/types/README.md b/build_vtk_bundle/node_modules/@babel/types/README.md deleted file mode 100644 index 54c9f819..00000000 --- a/build_vtk_bundle/node_modules/@babel/types/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/types - -> Babel Types is a Lodash-esque utility library for AST nodes - -See our website [@babel/types](https://babeljs.io/docs/babel-types) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20types%22+is%3Aopen) associated with this package. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/types -``` - -or using yarn: - -```sh -yarn add @babel/types --dev -``` diff --git a/build_vtk_bundle/node_modules/@babel/types/package.json b/build_vtk_bundle/node_modules/@babel/types/package.json deleted file mode 100644 index 0c7da7ec..00000000 --- a/build_vtk_bundle/node_modules/@babel/types/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "@babel/types", - "version": "7.28.5", - "description": "Babel Types is a Lodash-esque utility library for AST nodes", - "author": "The Babel Team (https://babel.dev/team)", - "homepage": "https://babel.dev/docs/en/next/babel-types", - "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20types%22+is%3Aopen", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-types" - }, - "main": "./lib/index.js", - "dependencies": { - "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.28.5" - }, - "devDependencies": { - "@babel/generator": "^7.28.5", - "@babel/parser": "^7.28.5", - "glob": "^7.2.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs", - "types": "./lib/index-legacy.d.ts", - "typesVersions": { - ">=4.1": { - "lib/index-legacy.d.ts": [ - "lib/index.d.ts" - ] - } - } -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/LICENSE b/build_vtk_bundle/node_modules/@discoveryjs/json-ext/LICENSE deleted file mode 100644 index 44f551a6..00000000 --- a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2020 Roman Dvornov - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/README.md b/build_vtk_bundle/node_modules/@discoveryjs/json-ext/README.md deleted file mode 100644 index f155a9d9..00000000 --- a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/README.md +++ /dev/null @@ -1,256 +0,0 @@ -# json-ext - -[![NPM version](https://img.shields.io/npm/v/@discoveryjs/json-ext.svg)](https://www.npmjs.com/package/@discoveryjs/json-ext) -[![Build Status](https://github.com/discoveryjs/json-ext/actions/workflows/ci.yml/badge.svg)](https://github.com/discoveryjs/json-ext/actions/workflows/ci.yml) -[![Coverage Status](https://coveralls.io/repos/github/discoveryjs/json-ext/badge.svg?branch=master)](https://coveralls.io/github/discoveryjs/json-ext?) -[![NPM Downloads](https://img.shields.io/npm/dm/@discoveryjs/json-ext.svg)](https://www.npmjs.com/package/@discoveryjs/json-ext) - -A set of utilities that extend the use of JSON. Designed to be fast and memory efficient - -Features: - -- [x] `parseChunked()` – Parse JSON that comes by chunks (e.g. FS readable stream or fetch response stream) -- [x] `stringifyStream()` – Stringify stream (Node.js) -- [x] `stringifyInfo()` – Get estimated size and other facts of JSON.stringify() without converting a value to string -- [ ] **TBD** Support for circular references -- [ ] **TBD** Binary representation [branch](https://github.com/discoveryjs/json-ext/tree/binary) -- [ ] **TBD** WHATWG [Streams](https://streams.spec.whatwg.org/) support - -## Install - -```bash -npm install @discoveryjs/json-ext -``` - -## API - -- [parseChunked(chunkEmitter)](#parsechunkedchunkemitter) -- [stringifyStream(value[, replacer[, space]])](#stringifystreamvalue-replacer-space) -- [stringifyInfo(value[, replacer[, space[, options]]])](#stringifyinfovalue-replacer-space-options) - - [Options](#options) - - [async](#async) - - [continueOnCircular](#continueoncircular) -- [version](#version) - -### parseChunked(chunkEmitter) - -Works the same as [`JSON.parse()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse) but takes `chunkEmitter` instead of string and returns [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise). - -> NOTE: `reviver` parameter is not supported yet, but will be added in next releases. -> NOTE: WHATWG streams aren't supported yet - -When to use: -- It's required to avoid freezing the main thread during big JSON parsing, since this process can be distributed in time -- Huge JSON needs to be parsed (e.g. >500MB on Node.js) -- Needed to reduce memory pressure. `JSON.parse()` needs to receive the entire JSON before parsing it. With `parseChunked()` you may parse JSON as first bytes of it comes. This approach helps to avoid storing a huge string in the memory at a single time point and following GC. - -[Benchmark](https://github.com/discoveryjs/json-ext/tree/master/benchmarks#parse-chunked) - -Usage: - -```js -const { parseChunked } = require('@discoveryjs/json-ext'); - -// as a regular Promise -parseChunked(chunkEmitter) - .then(data => { - /* data is parsed JSON */ - }); - -// using await (keep in mind that not every runtime has a support for top level await) -const data = await parseChunked(chunkEmitter); -``` - -Parameter `chunkEmitter` can be: -- [`ReadableStream`](https://nodejs.org/dist/latest-v14.x/docs/api/stream.html#stream_readable_streams) (Node.js only) -```js -const fs = require('fs'); -const { parseChunked } = require('@discoveryjs/json-ext'); - -parseChunked(fs.createReadStream('path/to/file.json')) -``` -- Generator, async generator or function that returns iterable (chunks). Chunk might be a `string`, `Uint8Array` or `Buffer` (Node.js only): -```js -const { parseChunked } = require('@discoveryjs/json-ext'); -const encoder = new TextEncoder(); - -// generator -parseChunked(function*() { - yield '{ "hello":'; - yield Buffer.from(' "wor'); // Node.js only - yield encoder.encode('ld" }'); // returns Uint8Array(5) [ 108, 100, 34, 32, 125 ] -}); - -// async generator -parseChunked(async function*() { - for await (const chunk of someAsyncSource) { - yield chunk; - } -}); - -// function that returns iterable -parseChunked(() => ['{ "hello":', ' "world"}']) -``` - -Using with [fetch()](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API): - -```js -async function loadData(url) { - const response = await fetch(url); - const reader = response.body.getReader(); - - return parseChunked(async function*() { - while (true) { - const { done, value } = await reader.read(); - - if (done) { - break; - } - - yield value; - } - }); -} - -loadData('https://example.com/data.json') - .then(data => { - /* data is parsed JSON */ - }) -``` - -### stringifyStream(value[, replacer[, space]]) - -Works the same as [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify), but returns an instance of [`ReadableStream`](https://nodejs.org/dist/latest-v14.x/docs/api/stream.html#stream_readable_streams) instead of string. - -> NOTE: WHATWG Streams aren't supported yet, so function available for Node.js only for now - -Departs from JSON.stringify(): -- Outputs `null` when `JSON.stringify()` returns `undefined` (since streams may not emit `undefined`) -- A promise is resolving and the resulting value is stringifying as a regular one -- A stream in non-object mode is piping to output as is -- A stream in object mode is piping to output as an array of objects - -When to use: -- Huge JSON needs to be generated (e.g. >500MB on Node.js) -- Needed to reduce memory pressure. `JSON.stringify()` needs to generate the entire JSON before send or write it to somewhere. With `stringifyStream()` you may send a result to somewhere as first bytes of the result appears. This approach helps to avoid storing a huge string in the memory at a single time point. -- The object being serialized contains Promises or Streams (see Usage for examples) - -[Benchmark](https://github.com/discoveryjs/json-ext/tree/master/benchmarks#stream-stringifying) - -Usage: - -```js -const { stringifyStream } = require('@discoveryjs/json-ext'); - -// handle events -stringifyStream(data) - .on('data', chunk => console.log(chunk)) - .on('error', error => consold.error(error)) - .on('finish', () => console.log('DONE!')); - -// pipe into a stream -stringifyStream(data) - .pipe(writableStream); -``` - -Using Promise or ReadableStream in serializing object: - -```js -const fs = require('fs'); -const { stringifyStream } = require('@discoveryjs/json-ext'); - -// output will be -// {"name":"example","willSerializeResolvedValue":42,"fromFile":[1, 2, 3],"at":{"any":{"level":"promise!"}}} -stringifyStream({ - name: 'example', - willSerializeResolvedValue: Promise.resolve(42), - fromFile: fs.createReadStream('path/to/file.json'), // support file content is "[1, 2, 3]", it'll be inserted as it - at: { - any: { - level: new Promise(resolve => setTimeout(() => resolve('promise!'), 100)) - } - } -}) - -// in case several async requests are used in object, it's prefered -// to put fastest requests first, because in this case -stringifyStream({ - foo: fetch('http://example.com/request_takes_2s').then(req => req.json()), - bar: fetch('http://example.com/request_takes_5s').then(req => req.json()) -}); -``` - -Using with [`WritableStream`](https://nodejs.org/dist/latest-v14.x/docs/api/stream.html#stream_writable_streams) (Node.js only): - -```js -const fs = require('fs'); -const { stringifyStream } = require('@discoveryjs/json-ext'); - -// pipe into a console -stringifyStream(data) - .pipe(process.stdout); - -// pipe into a file -stringifyStream(data) - .pipe(fs.createWriteStream('path/to/file.json')); - -// wrapping into a Promise -new Promise((resolve, reject) => { - stringifyStream(data) - .on('error', reject) - .pipe(stream) - .on('error', reject) - .on('finish', resolve); -}); -``` - -### stringifyInfo(value[, replacer[, space[, options]]]) - -`value`, `replacer` and `space` arguments are the same as for `JSON.stringify()`. - -Result is an object: - -```js -{ - minLength: Number, // minimal bytes when values is stringified - circular: [...], // list of circular references - duplicate: [...], // list of objects that occur more than once - async: [...] // list of async values, i.e. promises and streams -} -``` - -Example: - -```js -const { stringifyInfo } = require('@discoveryjs/json-ext'); - -console.log( - stringifyInfo({ test: true }).minLength -); -// > 13 -// that equals '{"test":true}'.length -``` - -#### Options - -##### async - -Type: `Boolean` -Default: `false` - -Collect async values (promises and streams) or not. - -##### continueOnCircular - -Type: `Boolean` -Default: `false` - -Stop collecting info for a value or not whenever circular reference is found. Setting option to `true` allows to find all circular references. - -### version - -The version of library, e.g. `"0.3.1"`. - -## License - -MIT diff --git a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/index.d.ts b/build_vtk_bundle/node_modules/@discoveryjs/json-ext/index.d.ts deleted file mode 100644 index 8b1d7c9b..00000000 --- a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/index.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -declare module '@discoveryjs/json-ext' { - import { Readable } from 'stream'; - - type TReplacer = - | ((this: any, key: string, value: any) => any) - | string[] - | number[] - | null; - type TSpace = string | number | null; - type TChunk = string | Buffer | Uint8Array; - - export function parseChunked(input: Readable): Promise; - export function parseChunked(input: () => (Iterable | AsyncIterable)): Promise; - - export function stringifyStream(value: any, replacer?: TReplacer, space?: TSpace): Readable; - - export function stringifyInfo( - value: any, - replacer?: TReplacer, - space?: TSpace, - options?: { - async?: boolean; - continueOnCircular?: boolean; - } - ): { - minLength: number; - circular: any[]; - duplicate: any[]; - async: any[]; - }; -} diff --git a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/package.json b/build_vtk_bundle/node_modules/@discoveryjs/json-ext/package.json deleted file mode 100644 index f6ccde56..00000000 --- a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "@discoveryjs/json-ext", - "version": "0.5.7", - "description": "A set of utilities that extend the use of JSON", - "keywords": [ - "json", - "utils", - "stream", - "async", - "promise", - "stringify", - "info" - ], - "author": "Roman Dvornov (https://github.com/lahmatiy)", - "license": "MIT", - "repository": "discoveryjs/json-ext", - "main": "./src/index", - "browser": { - "./src/stringify-stream.js": "./src/stringify-stream-browser.js", - "./src/text-decoder.js": "./src/text-decoder-browser.js", - "./src/version.js": "./dist/version.js" - }, - "types": "./index.d.ts", - "scripts": { - "test": "mocha --reporter progress", - "lint": "eslint src test", - "lint-and-test": "npm run lint && npm test", - "build": "rollup --config", - "test:all": "npm run test:src && npm run test:dist", - "test:src": "npm test", - "test:dist": "cross-env MODE=dist npm test && cross-env MODE=dist-min npm test", - "build-and-test": "npm run build && npm run test:dist", - "coverage": "c8 --reporter=lcovonly npm test", - "prepublishOnly": "npm run lint && npm test && npm run build-and-test" - }, - "devDependencies": { - "@rollup/plugin-commonjs": "^15.1.0", - "@rollup/plugin-json": "^4.1.0", - "@rollup/plugin-node-resolve": "^9.0.0", - "c8": "^7.10.0", - "chalk": "^4.1.0", - "cross-env": "^7.0.3", - "eslint": "^8.10.0", - "mocha": "^8.4.0", - "rollup": "^2.28.2", - "rollup-plugin-terser": "^7.0.2" - }, - "engines": { - "node": ">=10.0.0" - }, - "files": [ - "dist", - "src", - "index.d.ts" - ] -} diff --git a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/index.js b/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/index.js deleted file mode 100644 index ae05057d..00000000 --- a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/index.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - version: require('./version'), - stringifyInfo: require('./stringify-info'), - stringifyStream: require('./stringify-stream'), - parseChunked: require('./parse-chunked') -}; diff --git a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/parse-chunked.js b/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/parse-chunked.js deleted file mode 100644 index 87f72094..00000000 --- a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/parse-chunked.js +++ /dev/null @@ -1,384 +0,0 @@ -const { isReadableStream } = require('./utils'); -const TextDecoder = require('./text-decoder'); - -const STACK_OBJECT = 1; -const STACK_ARRAY = 2; -const decoder = new TextDecoder(); - -function isObject(value) { - return value !== null && typeof value === 'object'; -} - -function adjustPosition(error, parser) { - if (error.name === 'SyntaxError' && parser.jsonParseOffset) { - error.message = error.message.replace(/at position (\d+)/, (_, pos) => - 'at position ' + (Number(pos) + parser.jsonParseOffset) - ); - } - - return error; -} - -function append(array, elements) { - // Note: Avoid to use array.push(...elements) since it may lead to - // "RangeError: Maximum call stack size exceeded" for a long arrays - const initialLength = array.length; - array.length += elements.length; - - for (let i = 0; i < elements.length; i++) { - array[initialLength + i] = elements[i]; - } -} - -module.exports = function(chunkEmitter) { - let parser = new ChunkParser(); - - if (isObject(chunkEmitter) && isReadableStream(chunkEmitter)) { - return new Promise((resolve, reject) => { - chunkEmitter - .on('data', chunk => { - try { - parser.push(chunk); - } catch (e) { - reject(adjustPosition(e, parser)); - parser = null; - } - }) - .on('error', (e) => { - parser = null; - reject(e); - }) - .on('end', () => { - try { - resolve(parser.finish()); - } catch (e) { - reject(adjustPosition(e, parser)); - } finally { - parser = null; - } - }); - }); - } - - if (typeof chunkEmitter === 'function') { - const iterator = chunkEmitter(); - - if (isObject(iterator) && (Symbol.iterator in iterator || Symbol.asyncIterator in iterator)) { - return new Promise(async (resolve, reject) => { - try { - for await (const chunk of iterator) { - parser.push(chunk); - } - - resolve(parser.finish()); - } catch (e) { - reject(adjustPosition(e, parser)); - } finally { - parser = null; - } - }); - } - } - - throw new Error( - 'Chunk emitter should be readable stream, generator, ' + - 'async generator or function returning an iterable object' - ); -}; - -class ChunkParser { - constructor() { - this.value = undefined; - this.valueStack = null; - - this.stack = new Array(100); - this.lastFlushDepth = 0; - this.flushDepth = 0; - this.stateString = false; - this.stateStringEscape = false; - this.pendingByteSeq = null; - this.pendingChunk = null; - this.chunkOffset = 0; - this.jsonParseOffset = 0; - } - - parseAndAppend(fragment, wrap) { - // Append new entries or elements - if (this.stack[this.lastFlushDepth - 1] === STACK_OBJECT) { - if (wrap) { - this.jsonParseOffset--; - fragment = '{' + fragment + '}'; - } - - Object.assign(this.valueStack.value, JSON.parse(fragment)); - } else { - if (wrap) { - this.jsonParseOffset--; - fragment = '[' + fragment + ']'; - } - - append(this.valueStack.value, JSON.parse(fragment)); - } - } - - prepareAddition(fragment) { - const { value } = this.valueStack; - const expectComma = Array.isArray(value) - ? value.length !== 0 - : Object.keys(value).length !== 0; - - if (expectComma) { - // Skip a comma at the beginning of fragment, otherwise it would - // fail to parse - if (fragment[0] === ',') { - this.jsonParseOffset++; - return fragment.slice(1); - } - - // When value (an object or array) is not empty and a fragment - // doesn't start with a comma, a single valid fragment starting - // is a closing bracket. If it's not, a prefix is adding to fail - // parsing. Otherwise, the sequence of chunks can be successfully - // parsed, although it should not, e.g. ["[{}", "{}]"] - if (fragment[0] !== '}' && fragment[0] !== ']') { - this.jsonParseOffset -= 3; - return '[[]' + fragment; - } - } - - return fragment; - } - - flush(chunk, start, end) { - let fragment = chunk.slice(start, end); - - // Save position correction an error in JSON.parse() if any - this.jsonParseOffset = this.chunkOffset + start; - - // Prepend pending chunk if any - if (this.pendingChunk !== null) { - fragment = this.pendingChunk + fragment; - this.jsonParseOffset -= this.pendingChunk.length; - this.pendingChunk = null; - } - - if (this.flushDepth === this.lastFlushDepth) { - // Depth didn't changed, so it's a root value or entry/element set - if (this.flushDepth > 0) { - this.parseAndAppend(this.prepareAddition(fragment), true); - } else { - // That's an entire value on a top level - this.value = JSON.parse(fragment); - this.valueStack = { - value: this.value, - prev: null - }; - } - } else if (this.flushDepth > this.lastFlushDepth) { - // Add missed closing brackets/parentheses - for (let i = this.flushDepth - 1; i >= this.lastFlushDepth; i--) { - fragment += this.stack[i] === STACK_OBJECT ? '}' : ']'; - } - - if (this.lastFlushDepth === 0) { - // That's a root value - this.value = JSON.parse(fragment); - this.valueStack = { - value: this.value, - prev: null - }; - } else { - this.parseAndAppend(this.prepareAddition(fragment), true); - } - - // Move down to the depths to the last object/array, which is current now - for (let i = this.lastFlushDepth || 1; i < this.flushDepth; i++) { - let value = this.valueStack.value; - - if (this.stack[i - 1] === STACK_OBJECT) { - // find last entry - let key; - // eslint-disable-next-line curly - for (key in value); - value = value[key]; - } else { - // last element - value = value[value.length - 1]; - } - - this.valueStack = { - value, - prev: this.valueStack - }; - } - } else /* this.flushDepth < this.lastFlushDepth */ { - fragment = this.prepareAddition(fragment); - - // Add missed opening brackets/parentheses - for (let i = this.lastFlushDepth - 1; i >= this.flushDepth; i--) { - this.jsonParseOffset--; - fragment = (this.stack[i] === STACK_OBJECT ? '{' : '[') + fragment; - } - - this.parseAndAppend(fragment, false); - - for (let i = this.lastFlushDepth - 1; i >= this.flushDepth; i--) { - this.valueStack = this.valueStack.prev; - } - } - - this.lastFlushDepth = this.flushDepth; - } - - push(chunk) { - if (typeof chunk !== 'string') { - // Suppose chunk is Buffer or Uint8Array - - // Prepend uncompleted byte sequence if any - if (this.pendingByteSeq !== null) { - const origRawChunk = chunk; - chunk = new Uint8Array(this.pendingByteSeq.length + origRawChunk.length); - chunk.set(this.pendingByteSeq); - chunk.set(origRawChunk, this.pendingByteSeq.length); - this.pendingByteSeq = null; - } - - // In case Buffer/Uint8Array, an input is encoded in UTF8 - // Seek for parts of uncompleted UTF8 symbol on the ending - // This makes sense only if we expect more chunks and last char is not multi-bytes - if (chunk[chunk.length - 1] > 127) { - for (let seqLength = 0; seqLength < chunk.length; seqLength++) { - const byte = chunk[chunk.length - 1 - seqLength]; - - // 10xxxxxx - 2nd, 3rd or 4th byte - // 110xxxxx – first byte of 2-byte sequence - // 1110xxxx - first byte of 3-byte sequence - // 11110xxx - first byte of 4-byte sequence - if (byte >> 6 === 3) { - seqLength++; - - // If the sequence is really incomplete, then preserve it - // for the future chunk and cut off it from the current chunk - if ((seqLength !== 4 && byte >> 3 === 0b11110) || - (seqLength !== 3 && byte >> 4 === 0b1110) || - (seqLength !== 2 && byte >> 5 === 0b110)) { - this.pendingByteSeq = chunk.slice(chunk.length - seqLength); - chunk = chunk.slice(0, -seqLength); - } - - break; - } - } - } - - // Convert chunk to a string, since single decode per chunk - // is much effective than decode multiple small substrings - chunk = decoder.decode(chunk); - } - - const chunkLength = chunk.length; - let lastFlushPoint = 0; - let flushPoint = 0; - - // Main scan loop - scan: for (let i = 0; i < chunkLength; i++) { - if (this.stateString) { - for (; i < chunkLength; i++) { - if (this.stateStringEscape) { - this.stateStringEscape = false; - } else { - switch (chunk.charCodeAt(i)) { - case 0x22: /* " */ - this.stateString = false; - continue scan; - - case 0x5C: /* \ */ - this.stateStringEscape = true; - } - } - } - - break; - } - - switch (chunk.charCodeAt(i)) { - case 0x22: /* " */ - this.stateString = true; - this.stateStringEscape = false; - break; - - case 0x2C: /* , */ - flushPoint = i; - break; - - case 0x7B: /* { */ - // Open an object - flushPoint = i + 1; - this.stack[this.flushDepth++] = STACK_OBJECT; - break; - - case 0x5B: /* [ */ - // Open an array - flushPoint = i + 1; - this.stack[this.flushDepth++] = STACK_ARRAY; - break; - - case 0x5D: /* ] */ - case 0x7D: /* } */ - // Close an object or array - flushPoint = i + 1; - this.flushDepth--; - - if (this.flushDepth < this.lastFlushDepth) { - this.flush(chunk, lastFlushPoint, flushPoint); - lastFlushPoint = flushPoint; - } - - break; - - case 0x09: /* \t */ - case 0x0A: /* \n */ - case 0x0D: /* \r */ - case 0x20: /* space */ - // Move points forward when they points on current position and it's a whitespace - if (lastFlushPoint === i) { - lastFlushPoint++; - } - - if (flushPoint === i) { - flushPoint++; - } - - break; - } - } - - if (flushPoint > lastFlushPoint) { - this.flush(chunk, lastFlushPoint, flushPoint); - } - - // Produce pendingChunk if something left - if (flushPoint < chunkLength) { - if (this.pendingChunk !== null) { - // When there is already a pending chunk then no flush happened, - // appending entire chunk to pending one - this.pendingChunk += chunk; - } else { - // Create a pending chunk, it will start with non-whitespace since - // flushPoint was moved forward away from whitespaces on scan - this.pendingChunk = chunk.slice(flushPoint, chunkLength); - } - } - - this.chunkOffset += chunkLength; - } - - finish() { - if (this.pendingChunk !== null) { - this.flush('', 0, 0); - this.pendingChunk = null; - } - - return this.value; - } -}; diff --git a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/stringify-info.js b/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/stringify-info.js deleted file mode 100644 index 2678f11a..00000000 --- a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/stringify-info.js +++ /dev/null @@ -1,231 +0,0 @@ -const { - normalizeReplacer, - normalizeSpace, - replaceValue, - getTypeNative, - getTypeAsync, - isLeadingSurrogate, - isTrailingSurrogate, - escapableCharCodeSubstitution, - type: { - PRIMITIVE, - OBJECT, - ARRAY, - PROMISE, - STRING_STREAM, - OBJECT_STREAM - } -} = require('./utils'); -const charLength2048 = Array.from({ length: 2048 }).map((_, code) => { - if (escapableCharCodeSubstitution.hasOwnProperty(code)) { - return 2; // \X - } - - if (code < 0x20) { - return 6; // \uXXXX - } - - return code < 128 ? 1 : 2; // UTF8 bytes -}); - -function stringLength(str) { - let len = 0; - let prevLeadingSurrogate = false; - - for (let i = 0; i < str.length; i++) { - const code = str.charCodeAt(i); - - if (code < 2048) { - len += charLength2048[code]; - } else if (isLeadingSurrogate(code)) { - len += 6; // \uXXXX since no pair with trailing surrogate yet - prevLeadingSurrogate = true; - continue; - } else if (isTrailingSurrogate(code)) { - len = prevLeadingSurrogate - ? len - 2 // surrogate pair (4 bytes), since we calculate prev leading surrogate as 6 bytes, substruct 2 bytes - : len + 6; // \uXXXX - } else { - len += 3; // code >= 2048 is 3 bytes length for UTF8 - } - - prevLeadingSurrogate = false; - } - - return len + 2; // +2 for quotes -} - -function primitiveLength(value) { - switch (typeof value) { - case 'string': - return stringLength(value); - - case 'number': - return Number.isFinite(value) ? String(value).length : 4 /* null */; - - case 'boolean': - return value ? 4 /* true */ : 5 /* false */; - - case 'undefined': - case 'object': - return 4; /* null */ - - default: - return 0; - } -} - -function spaceLength(space) { - space = normalizeSpace(space); - return typeof space === 'string' ? space.length : 0; -} - -module.exports = function jsonStringifyInfo(value, replacer, space, options) { - function walk(holder, key, value) { - if (stop) { - return; - } - - value = replaceValue(holder, key, value, replacer); - - let type = getType(value); - - // check for circular structure - if (type !== PRIMITIVE && stack.has(value)) { - circular.add(value); - length += 4; // treat as null - - if (!options.continueOnCircular) { - stop = true; - } - - return; - } - - switch (type) { - case PRIMITIVE: - if (value !== undefined || Array.isArray(holder)) { - length += primitiveLength(value); - } else if (holder === root) { - length += 9; // FIXME: that's the length of undefined, should we normalize behaviour to convert it to null? - } - break; - - case OBJECT: { - if (visited.has(value)) { - duplicate.add(value); - length += visited.get(value); - break; - } - - const valueLength = length; - let entries = 0; - - length += 2; // {} - - stack.add(value); - - for (const key in value) { - if (hasOwnProperty.call(value, key) && (allowlist === null || allowlist.has(key))) { - const prevLength = length; - walk(value, key, value[key]); - - if (prevLength !== length) { - // value is printed - length += stringLength(key) + 1; // "key": - entries++; - } - } - } - - if (entries > 1) { - length += entries - 1; // commas - } - - stack.delete(value); - - if (space > 0 && entries > 0) { - length += (1 + (stack.size + 1) * space + 1) * entries; // for each key-value: \n{space} - length += 1 + stack.size * space; // for } - } - - visited.set(value, length - valueLength); - - break; - } - - case ARRAY: { - if (visited.has(value)) { - duplicate.add(value); - length += visited.get(value); - break; - } - - const valueLength = length; - - length += 2; // [] - - stack.add(value); - - for (let i = 0; i < value.length; i++) { - walk(value, i, value[i]); - } - - if (value.length > 1) { - length += value.length - 1; // commas - } - - stack.delete(value); - - if (space > 0 && value.length > 0) { - length += (1 + (stack.size + 1) * space) * value.length; // for each element: \n{space} - length += 1 + stack.size * space; // for ] - } - - visited.set(value, length - valueLength); - - break; - } - - case PROMISE: - case STRING_STREAM: - async.add(value); - break; - - case OBJECT_STREAM: - length += 2; // [] - async.add(value); - break; - } - } - - let allowlist = null; - replacer = normalizeReplacer(replacer); - - if (Array.isArray(replacer)) { - allowlist = new Set(replacer); - replacer = null; - } - - space = spaceLength(space); - options = options || {}; - - const visited = new Map(); - const stack = new Set(); - const duplicate = new Set(); - const circular = new Set(); - const async = new Set(); - const getType = options.async ? getTypeAsync : getTypeNative; - const root = { '': value }; - let stop = false; - let length = 0; - - walk(root, '', value); - - return { - minLength: isNaN(length) ? Infinity : length, - circular: [...circular], - duplicate: [...duplicate], - async: [...async] - }; -}; diff --git a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/stringify-stream-browser.js b/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/stringify-stream-browser.js deleted file mode 100644 index e11ccb65..00000000 --- a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/stringify-stream-browser.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = () => { - throw new Error('Method is not supported'); -}; diff --git a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/stringify-stream.js b/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/stringify-stream.js deleted file mode 100644 index 4f983a75..00000000 --- a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/stringify-stream.js +++ /dev/null @@ -1,408 +0,0 @@ -const { Readable } = require('stream'); -const { - normalizeReplacer, - normalizeSpace, - replaceValue, - getTypeAsync, - type: { - PRIMITIVE, - OBJECT, - ARRAY, - PROMISE, - STRING_STREAM, - OBJECT_STREAM - } -} = require('./utils'); -const noop = () => {}; -const hasOwnProperty = Object.prototype.hasOwnProperty; - -// TODO: Remove when drop support for Node.js 10 -// Node.js 10 has no well-formed JSON.stringify() -// https://github.com/tc39/proposal-well-formed-stringify -// Adopted code from https://bugs.chromium.org/p/v8/issues/detail?id=7782#c12 -const wellformedStringStringify = JSON.stringify('\ud800') === '"\\ud800"' - ? JSON.stringify - : s => JSON.stringify(s).replace( - /\p{Surrogate}/gu, - m => `\\u${m.charCodeAt(0).toString(16)}` - ); - -function push() { - this.push(this._stack.value); - this.popStack(); -} - -function pushPrimitive(value) { - switch (typeof value) { - case 'string': - this.push(this.encodeString(value)); - break; - - case 'number': - this.push(Number.isFinite(value) ? this.encodeNumber(value) : 'null'); - break; - - case 'boolean': - this.push(value ? 'true' : 'false'); - break; - - case 'undefined': - case 'object': // typeof null === 'object' - this.push('null'); - break; - - default: - this.destroy(new TypeError(`Do not know how to serialize a ${value.constructor && value.constructor.name || typeof value}`)); - } -} - -function processObjectEntry(key) { - const current = this._stack; - - if (!current.first) { - current.first = true; - } else { - this.push(','); - } - - if (this.space) { - this.push(`\n${this.space.repeat(this._depth)}${this.encodeString(key)}: `); - } else { - this.push(this.encodeString(key) + ':'); - } -} - -function processObject() { - const current = this._stack; - - // when no keys left, remove obj from stack - if (current.index === current.keys.length) { - if (this.space && current.first) { - this.push(`\n${this.space.repeat(this._depth - 1)}}`); - } else { - this.push('}'); - } - - this.popStack(); - return; - } - - const key = current.keys[current.index]; - - this.processValue(current.value, key, current.value[key], processObjectEntry); - current.index++; -} - -function processArrayItem(index) { - if (index !== 0) { - this.push(','); - } - - if (this.space) { - this.push(`\n${this.space.repeat(this._depth)}`); - } -} - -function processArray() { - const current = this._stack; - - if (current.index === current.value.length) { - if (this.space && current.index > 0) { - this.push(`\n${this.space.repeat(this._depth - 1)}]`); - } else { - this.push(']'); - } - - this.popStack(); - return; - } - - this.processValue(current.value, current.index, current.value[current.index], processArrayItem); - current.index++; -} - -function createStreamReader(fn) { - return function() { - const current = this._stack; - const data = current.value.read(this._readSize); - - if (data !== null) { - current.first = false; - fn.call(this, data, current); - } else { - if ((current.first && !current.value._readableState.reading) || current.ended) { - this.popStack(); - } else { - current.first = true; - current.awaiting = true; - } - } - }; -} - -const processReadableObject = createStreamReader(function(data, current) { - this.processValue(current.value, current.index, data, processArrayItem); - current.index++; -}); - -const processReadableString = createStreamReader(function(data) { - this.push(data); -}); - -class JsonStringifyStream extends Readable { - constructor(value, replacer, space) { - super({ - autoDestroy: true - }); - - this.getKeys = Object.keys; - this.replacer = normalizeReplacer(replacer); - - if (Array.isArray(this.replacer)) { - const allowlist = this.replacer; - - this.getKeys = (value) => allowlist.filter(key => hasOwnProperty.call(value, key)); - this.replacer = null; - } - - this.space = normalizeSpace(space); - this._depth = 0; - - this.error = null; - this._processing = false; - this._ended = false; - - this._readSize = 0; - this._buffer = ''; - - this._stack = null; - this._visited = new WeakSet(); - - this.pushStack({ - handler: () => { - this.popStack(); - this.processValue({ '': value }, '', value, noop); - } - }); - } - - encodeString(value) { - if (/[^\x20-\uD799]|[\x22\x5c]/.test(value)) { - return wellformedStringStringify(value); - } - - return '"' + value + '"'; - } - - encodeNumber(value) { - return value; - } - - processValue(holder, key, value, callback) { - value = replaceValue(holder, key, value, this.replacer); - - let type = getTypeAsync(value); - - switch (type) { - case PRIMITIVE: - if (callback !== processObjectEntry || value !== undefined) { - callback.call(this, key); - pushPrimitive.call(this, value); - } - break; - - case OBJECT: - callback.call(this, key); - - // check for circular structure - if (this._visited.has(value)) { - return this.destroy(new TypeError('Converting circular structure to JSON')); - } - - this._visited.add(value); - this._depth++; - this.push('{'); - this.pushStack({ - handler: processObject, - value, - index: 0, - first: false, - keys: this.getKeys(value) - }); - break; - - case ARRAY: - callback.call(this, key); - - // check for circular structure - if (this._visited.has(value)) { - return this.destroy(new TypeError('Converting circular structure to JSON')); - } - - this._visited.add(value); - - this.push('['); - this.pushStack({ - handler: processArray, - value, - index: 0 - }); - this._depth++; - break; - - case PROMISE: - this.pushStack({ - handler: noop, - awaiting: true - }); - - Promise.resolve(value) - .then(resolved => { - this.popStack(); - this.processValue(holder, key, resolved, callback); - this.processStack(); - }) - .catch(error => { - this.destroy(error); - }); - break; - - case STRING_STREAM: - case OBJECT_STREAM: - callback.call(this, key); - - // TODO: Remove when drop support for Node.js 10 - // Used `_readableState.endEmitted` as fallback, since Node.js 10 has no `readableEnded` getter - if (value.readableEnded || value._readableState.endEmitted) { - return this.destroy(new Error('Readable Stream has ended before it was serialized. All stream data have been lost')); - } - - if (value.readableFlowing) { - return this.destroy(new Error('Readable Stream is in flowing mode, data may have been lost. Trying to pause stream.')); - } - - if (type === OBJECT_STREAM) { - this.push('['); - this.pushStack({ - handler: push, - value: this.space ? '\n' + this.space.repeat(this._depth) + ']' : ']' - }); - this._depth++; - } - - const self = this.pushStack({ - handler: type === OBJECT_STREAM ? processReadableObject : processReadableString, - value, - index: 0, - first: false, - ended: false, - awaiting: !value.readable || value.readableLength === 0 - }); - const continueProcessing = () => { - if (self.awaiting) { - self.awaiting = false; - this.processStack(); - } - }; - - value.once('error', error => this.destroy(error)); - value.once('end', () => { - self.ended = true; - continueProcessing(); - }); - value.on('readable', continueProcessing); - break; - } - } - - pushStack(node) { - node.prev = this._stack; - return this._stack = node; - } - - popStack() { - const { handler, value } = this._stack; - - if (handler === processObject || handler === processArray || handler === processReadableObject) { - this._visited.delete(value); - this._depth--; - } - - this._stack = this._stack.prev; - } - - processStack() { - if (this._processing || this._ended) { - return; - } - - try { - this._processing = true; - - while (this._stack !== null && !this._stack.awaiting) { - this._stack.handler.call(this); - - if (!this._processing) { - return; - } - } - - this._processing = false; - } catch (error) { - this.destroy(error); - return; - } - - if (this._stack === null && !this._ended) { - this._finish(); - this.push(null); - } - } - - push(data) { - if (data !== null) { - this._buffer += data; - - // check buffer overflow - if (this._buffer.length < this._readSize) { - return; - } - - // flush buffer - data = this._buffer; - this._buffer = ''; - this._processing = false; - } - - super.push(data); - } - - _read(size) { - // start processing - this._readSize = size || this.readableHighWaterMark; - this.processStack(); - } - - _finish() { - this._ended = true; - this._processing = false; - this._stack = null; - this._visited = null; - - if (this._buffer && this._buffer.length) { - super.push(this._buffer); // flush buffer - } - - this._buffer = ''; - } - - _destroy(error, cb) { - this.error = this.error || error; - this._finish(); - cb(error); - } -} - -module.exports = function createJsonStringifyStream(value, replacer, space) { - return new JsonStringifyStream(value, replacer, space); -}; diff --git a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/text-decoder-browser.js b/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/text-decoder-browser.js deleted file mode 100644 index 11befa2a..00000000 --- a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/text-decoder-browser.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = TextDecoder; diff --git a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/text-decoder.js b/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/text-decoder.js deleted file mode 100644 index 99fa6d5c..00000000 --- a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/text-decoder.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('util').TextDecoder; diff --git a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/utils.js b/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/utils.js deleted file mode 100644 index b79bc72b..00000000 --- a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/utils.js +++ /dev/null @@ -1,149 +0,0 @@ -const PrimitiveType = 1; -const ObjectType = 2; -const ArrayType = 3; -const PromiseType = 4; -const ReadableStringType = 5; -const ReadableObjectType = 6; -// https://tc39.es/ecma262/#table-json-single-character-escapes -const escapableCharCodeSubstitution = { // JSON Single Character Escape Sequences - 0x08: '\\b', - 0x09: '\\t', - 0x0a: '\\n', - 0x0c: '\\f', - 0x0d: '\\r', - 0x22: '\\\"', - 0x5c: '\\\\' -}; - -function isLeadingSurrogate(code) { - return code >= 0xD800 && code <= 0xDBFF; -} - -function isTrailingSurrogate(code) { - return code >= 0xDC00 && code <= 0xDFFF; -} - -function isReadableStream(value) { - return ( - typeof value.pipe === 'function' && - typeof value._read === 'function' && - typeof value._readableState === 'object' && value._readableState !== null - ); -} - -function replaceValue(holder, key, value, replacer) { - if (value && typeof value.toJSON === 'function') { - value = value.toJSON(); - } - - if (replacer !== null) { - value = replacer.call(holder, String(key), value); - } - - switch (typeof value) { - case 'function': - case 'symbol': - value = undefined; - break; - - case 'object': - if (value !== null) { - const cls = value.constructor; - if (cls === String || cls === Number || cls === Boolean) { - value = value.valueOf(); - } - } - break; - } - - return value; -} - -function getTypeNative(value) { - if (value === null || typeof value !== 'object') { - return PrimitiveType; - } - - if (Array.isArray(value)) { - return ArrayType; - } - - return ObjectType; -} - -function getTypeAsync(value) { - if (value === null || typeof value !== 'object') { - return PrimitiveType; - } - - if (typeof value.then === 'function') { - return PromiseType; - } - - if (isReadableStream(value)) { - return value._readableState.objectMode ? ReadableObjectType : ReadableStringType; - } - - if (Array.isArray(value)) { - return ArrayType; - } - - return ObjectType; -} - -function normalizeReplacer(replacer) { - if (typeof replacer === 'function') { - return replacer; - } - - if (Array.isArray(replacer)) { - const allowlist = new Set(replacer - .map(item => { - const cls = item && item.constructor; - return cls === String || cls === Number ? String(item) : null; - }) - .filter(item => typeof item === 'string') - ); - - return [...allowlist]; - } - - return null; -} - -function normalizeSpace(space) { - if (typeof space === 'number') { - if (!Number.isFinite(space) || space < 1) { - return false; - } - - return ' '.repeat(Math.min(space, 10)); - } - - if (typeof space === 'string') { - return space.slice(0, 10) || false; - } - - return false; -} - -module.exports = { - escapableCharCodeSubstitution, - isLeadingSurrogate, - isTrailingSurrogate, - type: { - PRIMITIVE: PrimitiveType, - PROMISE: PromiseType, - ARRAY: ArrayType, - OBJECT: ObjectType, - STRING_STREAM: ReadableStringType, - OBJECT_STREAM: ReadableObjectType - }, - - isReadableStream, - replaceValue, - getTypeNative, - getTypeAsync, - normalizeReplacer, - normalizeSpace -}; diff --git a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/version.js b/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/version.js deleted file mode 100644 index 81f6e78b..00000000 --- a/build_vtk_bundle/node_modules/@discoveryjs/json-ext/src/version.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../package.json').version; diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/LICENSE b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/LICENSE deleted file mode 100644 index 1f6ce94c..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright 2024 Justin Ridgewell - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/README.md b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/README.md deleted file mode 100644 index 93692b10..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/README.md +++ /dev/null @@ -1,227 +0,0 @@ -# @jridgewell/gen-mapping - -> Generate source maps - -`gen-mapping` allows you to generate a source map during transpilation or minification. -With a source map, you're able to trace the original location in the source file, either in Chrome's -DevTools or using a library like [`@jridgewell/trace-mapping`][trace-mapping]. - -You may already be familiar with the [`source-map`][source-map] package's `SourceMapGenerator`. This -provides the same `addMapping` and `setSourceContent` API. - -## Installation - -```sh -npm install @jridgewell/gen-mapping -``` - -## Usage - -```typescript -import { GenMapping, addMapping, setSourceContent, toEncodedMap, toDecodedMap } from '@jridgewell/gen-mapping'; - -const map = new GenMapping({ - file: 'output.js', - sourceRoot: 'https://example.com/', -}); - -setSourceContent(map, 'input.js', `function foo() {}`); - -addMapping(map, { - // Lines start at line 1, columns at column 0. - generated: { line: 1, column: 0 }, - source: 'input.js', - original: { line: 1, column: 0 }, -}); - -addMapping(map, { - generated: { line: 1, column: 9 }, - source: 'input.js', - original: { line: 1, column: 9 }, - name: 'foo', -}); - -assert.deepEqual(toDecodedMap(map), { - version: 3, - file: 'output.js', - names: ['foo'], - sourceRoot: 'https://example.com/', - sources: ['input.js'], - sourcesContent: ['function foo() {}'], - mappings: [ - [ [0, 0, 0, 0], [9, 0, 0, 9, 0] ] - ], -}); - -assert.deepEqual(toEncodedMap(map), { - version: 3, - file: 'output.js', - names: ['foo'], - sourceRoot: 'https://example.com/', - sources: ['input.js'], - sourcesContent: ['function foo() {}'], - mappings: 'AAAA,SAASA', -}); -``` - -### Smaller Sourcemaps - -Not everything needs to be added to a sourcemap, and needless markings can cause signficantly -larger file sizes. `gen-mapping` exposes `maybeAddSegment`/`maybeAddMapping` APIs that will -intelligently determine if this marking adds useful information. If not, the marking will be -skipped. - -```typescript -import { maybeAddMapping } from '@jridgewell/gen-mapping'; - -const map = new GenMapping(); - -// Adding a sourceless marking at the beginning of a line isn't useful. -maybeAddMapping(map, { - generated: { line: 1, column: 0 }, -}); - -// Adding a new source marking is useful. -maybeAddMapping(map, { - generated: { line: 1, column: 0 }, - source: 'input.js', - original: { line: 1, column: 0 }, -}); - -// But adding another marking pointing to the exact same original location isn't, even if the -// generated column changed. -maybeAddMapping(map, { - generated: { line: 1, column: 9 }, - source: 'input.js', - original: { line: 1, column: 0 }, -}); - -assert.deepEqual(toEncodedMap(map), { - version: 3, - names: [], - sources: ['input.js'], - sourcesContent: [null], - mappings: 'AAAA', -}); -``` - -## Benchmarks - -``` -node v18.0.0 - -amp.js.map -Memory Usage: -gen-mapping: addSegment 5852872 bytes -gen-mapping: addMapping 7716042 bytes -source-map-js 6143250 bytes -source-map-0.6.1 6124102 bytes -source-map-0.8.0 6121173 bytes -Smallest memory usage is gen-mapping: addSegment - -Adding speed: -gen-mapping: addSegment x 441 ops/sec ±2.07% (90 runs sampled) -gen-mapping: addMapping x 350 ops/sec ±2.40% (86 runs sampled) -source-map-js: addMapping x 169 ops/sec ±2.42% (80 runs sampled) -source-map-0.6.1: addMapping x 167 ops/sec ±2.56% (80 runs sampled) -source-map-0.8.0: addMapping x 168 ops/sec ±2.52% (80 runs sampled) -Fastest is gen-mapping: addSegment - -Generate speed: -gen-mapping: decoded output x 150,824,370 ops/sec ±0.07% (102 runs sampled) -gen-mapping: encoded output x 663 ops/sec ±0.22% (98 runs sampled) -source-map-js: encoded output x 197 ops/sec ±0.45% (84 runs sampled) -source-map-0.6.1: encoded output x 198 ops/sec ±0.33% (85 runs sampled) -source-map-0.8.0: encoded output x 197 ops/sec ±0.06% (93 runs sampled) -Fastest is gen-mapping: decoded output - - -*** - - -babel.min.js.map -Memory Usage: -gen-mapping: addSegment 37578063 bytes -gen-mapping: addMapping 37212897 bytes -source-map-js 47638527 bytes -source-map-0.6.1 47690503 bytes -source-map-0.8.0 47470188 bytes -Smallest memory usage is gen-mapping: addMapping - -Adding speed: -gen-mapping: addSegment x 31.05 ops/sec ±8.31% (43 runs sampled) -gen-mapping: addMapping x 29.83 ops/sec ±7.36% (51 runs sampled) -source-map-js: addMapping x 20.73 ops/sec ±6.22% (38 runs sampled) -source-map-0.6.1: addMapping x 20.03 ops/sec ±10.51% (38 runs sampled) -source-map-0.8.0: addMapping x 19.30 ops/sec ±8.27% (37 runs sampled) -Fastest is gen-mapping: addSegment - -Generate speed: -gen-mapping: decoded output x 381,379,234 ops/sec ±0.29% (96 runs sampled) -gen-mapping: encoded output x 95.15 ops/sec ±2.98% (72 runs sampled) -source-map-js: encoded output x 15.20 ops/sec ±7.41% (33 runs sampled) -source-map-0.6.1: encoded output x 16.36 ops/sec ±10.46% (31 runs sampled) -source-map-0.8.0: encoded output x 16.06 ops/sec ±6.45% (31 runs sampled) -Fastest is gen-mapping: decoded output - - -*** - - -preact.js.map -Memory Usage: -gen-mapping: addSegment 416247 bytes -gen-mapping: addMapping 419824 bytes -source-map-js 1024619 bytes -source-map-0.6.1 1146004 bytes -source-map-0.8.0 1113250 bytes -Smallest memory usage is gen-mapping: addSegment - -Adding speed: -gen-mapping: addSegment x 13,755 ops/sec ±0.15% (98 runs sampled) -gen-mapping: addMapping x 13,013 ops/sec ±0.11% (101 runs sampled) -source-map-js: addMapping x 4,564 ops/sec ±0.21% (98 runs sampled) -source-map-0.6.1: addMapping x 4,562 ops/sec ±0.11% (99 runs sampled) -source-map-0.8.0: addMapping x 4,593 ops/sec ±0.11% (100 runs sampled) -Fastest is gen-mapping: addSegment - -Generate speed: -gen-mapping: decoded output x 379,864,020 ops/sec ±0.23% (93 runs sampled) -gen-mapping: encoded output x 14,368 ops/sec ±4.07% (82 runs sampled) -source-map-js: encoded output x 5,261 ops/sec ±0.21% (99 runs sampled) -source-map-0.6.1: encoded output x 5,124 ops/sec ±0.58% (99 runs sampled) -source-map-0.8.0: encoded output x 5,434 ops/sec ±0.33% (96 runs sampled) -Fastest is gen-mapping: decoded output - - -*** - - -react.js.map -Memory Usage: -gen-mapping: addSegment 975096 bytes -gen-mapping: addMapping 1102981 bytes -source-map-js 2918836 bytes -source-map-0.6.1 2885435 bytes -source-map-0.8.0 2874336 bytes -Smallest memory usage is gen-mapping: addSegment - -Adding speed: -gen-mapping: addSegment x 4,772 ops/sec ±0.15% (100 runs sampled) -gen-mapping: addMapping x 4,456 ops/sec ±0.13% (97 runs sampled) -source-map-js: addMapping x 1,618 ops/sec ±0.24% (97 runs sampled) -source-map-0.6.1: addMapping x 1,622 ops/sec ±0.12% (99 runs sampled) -source-map-0.8.0: addMapping x 1,631 ops/sec ±0.12% (100 runs sampled) -Fastest is gen-mapping: addSegment - -Generate speed: -gen-mapping: decoded output x 379,107,695 ops/sec ±0.07% (99 runs sampled) -gen-mapping: encoded output x 5,421 ops/sec ±1.60% (89 runs sampled) -source-map-js: encoded output x 2,113 ops/sec ±1.81% (98 runs sampled) -source-map-0.6.1: encoded output x 2,126 ops/sec ±0.10% (100 runs sampled) -source-map-0.8.0: encoded output x 2,176 ops/sec ±0.39% (98 runs sampled) -Fastest is gen-mapping: decoded output -``` - -[source-map]: https://www.npmjs.com/package/source-map -[trace-mapping]: https://github.com/jridgewell/sourcemaps/tree/main/packages/trace-mapping diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/package.json b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/package.json deleted file mode 100644 index 036f9b79..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/package.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "name": "@jridgewell/gen-mapping", - "version": "0.3.13", - "description": "Generate source maps", - "keywords": [ - "source", - "map" - ], - "main": "dist/gen-mapping.umd.js", - "module": "dist/gen-mapping.mjs", - "types": "types/gen-mapping.d.cts", - "files": [ - "dist", - "src", - "types" - ], - "exports": { - ".": [ - { - "import": { - "types": "./types/gen-mapping.d.mts", - "default": "./dist/gen-mapping.mjs" - }, - "default": { - "types": "./types/gen-mapping.d.cts", - "default": "./dist/gen-mapping.umd.js" - } - }, - "./dist/gen-mapping.umd.js" - ], - "./package.json": "./package.json" - }, - "scripts": { - "benchmark": "run-s build:code benchmark:*", - "benchmark:install": "cd benchmark && npm install", - "benchmark:only": "node --expose-gc benchmark/index.js", - "build": "run-s -n build:code build:types", - "build:code": "node ../../esbuild.mjs gen-mapping.ts", - "build:types": "run-s build:types:force build:types:emit build:types:mts", - "build:types:force": "rimraf tsconfig.build.tsbuildinfo", - "build:types:emit": "tsc --project tsconfig.build.json", - "build:types:mts": "node ../../mts-types.mjs", - "clean": "run-s -n clean:code clean:types", - "clean:code": "tsc --build --clean tsconfig.build.json", - "clean:types": "rimraf dist types", - "test": "run-s -n test:types test:only test:format", - "test:format": "prettier --check '{src,test}/**/*.ts'", - "test:only": "mocha", - "test:types": "eslint '{src,test}/**/*.ts'", - "lint": "run-s -n lint:types lint:format", - "lint:format": "npm run test:format -- --write", - "lint:types": "npm run test:types -- --fix", - "prepublishOnly": "npm run-s -n build test" - }, - "homepage": "https://github.com/jridgewell/sourcemaps/tree/main/packages/gen-mapping", - "repository": { - "type": "git", - "url": "git+https://github.com/jridgewell/sourcemaps.git", - "directory": "packages/gen-mapping" - }, - "author": "Justin Ridgewell ", - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0", - "@jridgewell/trace-mapping": "^0.3.24" - } -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/src/gen-mapping.ts b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/src/gen-mapping.ts deleted file mode 100644 index ecc878c5..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/src/gen-mapping.ts +++ /dev/null @@ -1,614 +0,0 @@ -import { SetArray, put, remove } from './set-array'; -import { - encode, - // encodeGeneratedRanges, - // encodeOriginalScopes -} from '@jridgewell/sourcemap-codec'; -import { TraceMap, decodedMappings } from '@jridgewell/trace-mapping'; - -import { - COLUMN, - SOURCES_INDEX, - SOURCE_LINE, - SOURCE_COLUMN, - NAMES_INDEX, -} from './sourcemap-segment'; - -import type { SourceMapInput } from '@jridgewell/trace-mapping'; -// import type { OriginalScope, GeneratedRange } from '@jridgewell/sourcemap-codec'; -import type { SourceMapSegment } from './sourcemap-segment'; -import type { - DecodedSourceMap, - EncodedSourceMap, - Pos, - Mapping, - // BindingExpressionRange, - // OriginalPos, - // OriginalScopeInfo, - // GeneratedRangeInfo, -} from './types'; - -export type { DecodedSourceMap, EncodedSourceMap, Mapping }; - -export type Options = { - file?: string | null; - sourceRoot?: string | null; -}; - -const NO_NAME = -1; - -/** - * Provides the state to generate a sourcemap. - */ -export class GenMapping { - declare private _names: SetArray; - declare private _sources: SetArray; - declare private _sourcesContent: (string | null)[]; - declare private _mappings: SourceMapSegment[][]; - // private declare _originalScopes: OriginalScope[][]; - // private declare _generatedRanges: GeneratedRange[]; - declare private _ignoreList: SetArray; - declare file: string | null | undefined; - declare sourceRoot: string | null | undefined; - - constructor({ file, sourceRoot }: Options = {}) { - this._names = new SetArray(); - this._sources = new SetArray(); - this._sourcesContent = []; - this._mappings = []; - // this._originalScopes = []; - // this._generatedRanges = []; - this.file = file; - this.sourceRoot = sourceRoot; - this._ignoreList = new SetArray(); - } -} - -interface PublicMap { - _names: GenMapping['_names']; - _sources: GenMapping['_sources']; - _sourcesContent: GenMapping['_sourcesContent']; - _mappings: GenMapping['_mappings']; - // _originalScopes: GenMapping['_originalScopes']; - // _generatedRanges: GenMapping['_generatedRanges']; - _ignoreList: GenMapping['_ignoreList']; -} - -/** - * Typescript doesn't allow friend access to private fields, so this just casts the map into a type - * with public access modifiers. - */ -function cast(map: unknown): PublicMap { - return map as any; -} - -/** - * A low-level API to associate a generated position with an original source position. Line and - * column here are 0-based, unlike `addMapping`. - */ -export function addSegment( - map: GenMapping, - genLine: number, - genColumn: number, - source?: null, - sourceLine?: null, - sourceColumn?: null, - name?: null, - content?: null, -): void; -export function addSegment( - map: GenMapping, - genLine: number, - genColumn: number, - source: string, - sourceLine: number, - sourceColumn: number, - name?: null, - content?: string | null, -): void; -export function addSegment( - map: GenMapping, - genLine: number, - genColumn: number, - source: string, - sourceLine: number, - sourceColumn: number, - name: string, - content?: string | null, -): void; -export function addSegment( - map: GenMapping, - genLine: number, - genColumn: number, - source?: string | null, - sourceLine?: number | null, - sourceColumn?: number | null, - name?: string | null, - content?: string | null, -): void { - return addSegmentInternal( - false, - map, - genLine, - genColumn, - source, - sourceLine, - sourceColumn, - name, - content, - ); -} - -/** - * A high-level API to associate a generated position with an original source position. Line is - * 1-based, but column is 0-based, due to legacy behavior in `source-map` library. - */ -export function addMapping( - map: GenMapping, - mapping: { - generated: Pos; - source?: null; - original?: null; - name?: null; - content?: null; - }, -): void; -export function addMapping( - map: GenMapping, - mapping: { - generated: Pos; - source: string; - original: Pos; - name?: null; - content?: string | null; - }, -): void; -export function addMapping( - map: GenMapping, - mapping: { - generated: Pos; - source: string; - original: Pos; - name: string; - content?: string | null; - }, -): void; -export function addMapping( - map: GenMapping, - mapping: { - generated: Pos; - source?: string | null; - original?: Pos | null; - name?: string | null; - content?: string | null; - }, -): void { - return addMappingInternal(false, map, mapping as Parameters[2]); -} - -/** - * Same as `addSegment`, but will only add the segment if it generates useful information in the - * resulting map. This only works correctly if segments are added **in order**, meaning you should - * not add a segment with a lower generated line/column than one that came before. - */ -export const maybeAddSegment: typeof addSegment = ( - map, - genLine, - genColumn, - source, - sourceLine, - sourceColumn, - name, - content, -) => { - return addSegmentInternal( - true, - map, - genLine, - genColumn, - source, - sourceLine, - sourceColumn, - name, - content, - ); -}; - -/** - * Same as `addMapping`, but will only add the mapping if it generates useful information in the - * resulting map. This only works correctly if mappings are added **in order**, meaning you should - * not add a mapping with a lower generated line/column than one that came before. - */ -export const maybeAddMapping: typeof addMapping = (map, mapping) => { - return addMappingInternal(true, map, mapping as Parameters[2]); -}; - -/** - * Adds/removes the content of the source file to the source map. - */ -export function setSourceContent(map: GenMapping, source: string, content: string | null): void { - const { - _sources: sources, - _sourcesContent: sourcesContent, - // _originalScopes: originalScopes, - } = cast(map); - const index = put(sources, source); - sourcesContent[index] = content; - // if (index === originalScopes.length) originalScopes[index] = []; -} - -export function setIgnore(map: GenMapping, source: string, ignore = true) { - const { - _sources: sources, - _sourcesContent: sourcesContent, - _ignoreList: ignoreList, - // _originalScopes: originalScopes, - } = cast(map); - const index = put(sources, source); - if (index === sourcesContent.length) sourcesContent[index] = null; - // if (index === originalScopes.length) originalScopes[index] = []; - if (ignore) put(ignoreList, index); - else remove(ignoreList, index); -} - -/** - * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ -export function toDecodedMap(map: GenMapping): DecodedSourceMap { - const { - _mappings: mappings, - _sources: sources, - _sourcesContent: sourcesContent, - _names: names, - _ignoreList: ignoreList, - // _originalScopes: originalScopes, - // _generatedRanges: generatedRanges, - } = cast(map); - removeEmptyFinalLines(mappings); - - return { - version: 3, - file: map.file || undefined, - names: names.array, - sourceRoot: map.sourceRoot || undefined, - sources: sources.array, - sourcesContent, - mappings, - // originalScopes, - // generatedRanges, - ignoreList: ignoreList.array, - }; -} - -/** - * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ -export function toEncodedMap(map: GenMapping): EncodedSourceMap { - const decoded = toDecodedMap(map); - return Object.assign({}, decoded, { - // originalScopes: decoded.originalScopes.map((os) => encodeOriginalScopes(os)), - // generatedRanges: encodeGeneratedRanges(decoded.generatedRanges as GeneratedRange[]), - mappings: encode(decoded.mappings as SourceMapSegment[][]), - }); -} - -/** - * Constructs a new GenMapping, using the already present mappings of the input. - */ -export function fromMap(input: SourceMapInput): GenMapping { - const map = new TraceMap(input); - const gen = new GenMapping({ file: map.file, sourceRoot: map.sourceRoot }); - - putAll(cast(gen)._names, map.names); - putAll(cast(gen)._sources, map.sources as string[]); - cast(gen)._sourcesContent = map.sourcesContent || map.sources.map(() => null); - cast(gen)._mappings = decodedMappings(map) as GenMapping['_mappings']; - // TODO: implement originalScopes/generatedRanges - if (map.ignoreList) putAll(cast(gen)._ignoreList, map.ignoreList); - - return gen; -} - -/** - * Returns an array of high-level mapping objects for every recorded segment, which could then be - * passed to the `source-map` library. - */ -export function allMappings(map: GenMapping): Mapping[] { - const out: Mapping[] = []; - const { _mappings: mappings, _sources: sources, _names: names } = cast(map); - - for (let i = 0; i < mappings.length; i++) { - const line = mappings[i]; - for (let j = 0; j < line.length; j++) { - const seg = line[j]; - - const generated = { line: i + 1, column: seg[COLUMN] }; - let source: string | undefined = undefined; - let original: Pos | undefined = undefined; - let name: string | undefined = undefined; - - if (seg.length !== 1) { - source = sources.array[seg[SOURCES_INDEX]]; - original = { line: seg[SOURCE_LINE] + 1, column: seg[SOURCE_COLUMN] }; - - if (seg.length === 5) name = names.array[seg[NAMES_INDEX]]; - } - - out.push({ generated, source, original, name } as Mapping); - } - } - - return out; -} - -// This split declaration is only so that terser can elminiate the static initialization block. -function addSegmentInternal( - skipable: boolean, - map: GenMapping, - genLine: number, - genColumn: number, - source: S, - sourceLine: S extends string ? number : null | undefined, - sourceColumn: S extends string ? number : null | undefined, - name: S extends string ? string | null | undefined : null | undefined, - content: S extends string ? string | null | undefined : null | undefined, -): void { - const { - _mappings: mappings, - _sources: sources, - _sourcesContent: sourcesContent, - _names: names, - // _originalScopes: originalScopes, - } = cast(map); - const line = getIndex(mappings, genLine); - const index = getColumnIndex(line, genColumn); - - if (!source) { - if (skipable && skipSourceless(line, index)) return; - return insert(line, index, [genColumn]); - } - - // Sigh, TypeScript can't figure out sourceLine and sourceColumn aren't nullish if source - // isn't nullish. - assert(sourceLine); - assert(sourceColumn); - - const sourcesIndex = put(sources, source); - const namesIndex = name ? put(names, name) : NO_NAME; - if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content ?? null; - // if (sourcesIndex === originalScopes.length) originalScopes[sourcesIndex] = []; - - if (skipable && skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex)) { - return; - } - - return insert( - line, - index, - name - ? [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex] - : [genColumn, sourcesIndex, sourceLine, sourceColumn], - ); -} - -function assert(_val: unknown): asserts _val is T { - // noop. -} - -function getIndex(arr: T[][], index: number): T[] { - for (let i = arr.length; i <= index; i++) { - arr[i] = []; - } - return arr[index]; -} - -function getColumnIndex(line: SourceMapSegment[], genColumn: number): number { - let index = line.length; - for (let i = index - 1; i >= 0; index = i--) { - const current = line[i]; - if (genColumn >= current[COLUMN]) break; - } - return index; -} - -function insert(array: T[], index: number, value: T) { - for (let i = array.length; i > index; i--) { - array[i] = array[i - 1]; - } - array[index] = value; -} - -function removeEmptyFinalLines(mappings: SourceMapSegment[][]) { - const { length } = mappings; - let len = length; - for (let i = len - 1; i >= 0; len = i, i--) { - if (mappings[i].length > 0) break; - } - if (len < length) mappings.length = len; -} - -function putAll(setarr: SetArray, array: T[]) { - for (let i = 0; i < array.length; i++) put(setarr, array[i]); -} - -function skipSourceless(line: SourceMapSegment[], index: number): boolean { - // The start of a line is already sourceless, so adding a sourceless segment to the beginning - // doesn't generate any useful information. - if (index === 0) return true; - - const prev = line[index - 1]; - // If the previous segment is also sourceless, then adding another sourceless segment doesn't - // genrate any new information. Else, this segment will end the source/named segment and point to - // a sourceless position, which is useful. - return prev.length === 1; -} - -function skipSource( - line: SourceMapSegment[], - index: number, - sourcesIndex: number, - sourceLine: number, - sourceColumn: number, - namesIndex: number, -): boolean { - // A source/named segment at the start of a line gives position at that genColumn - if (index === 0) return false; - - const prev = line[index - 1]; - - // If the previous segment is sourceless, then we're transitioning to a source. - if (prev.length === 1) return false; - - // If the previous segment maps to the exact same source position, then this segment doesn't - // provide any new position information. - return ( - sourcesIndex === prev[SOURCES_INDEX] && - sourceLine === prev[SOURCE_LINE] && - sourceColumn === prev[SOURCE_COLUMN] && - namesIndex === (prev.length === 5 ? prev[NAMES_INDEX] : NO_NAME) - ); -} - -function addMappingInternal( - skipable: boolean, - map: GenMapping, - mapping: { - generated: Pos; - source: S; - original: S extends string ? Pos : null | undefined; - name: S extends string ? string | null | undefined : null | undefined; - content: S extends string ? string | null | undefined : null | undefined; - }, -) { - const { generated, source, original, name, content } = mapping; - if (!source) { - return addSegmentInternal( - skipable, - map, - generated.line - 1, - generated.column, - null, - null, - null, - null, - null, - ); - } - assert(original); - return addSegmentInternal( - skipable, - map, - generated.line - 1, - generated.column, - source as string, - original.line - 1, - original.column, - name, - content, - ); -} - -/* -export function addOriginalScope( - map: GenMapping, - data: { - start: Pos; - end: Pos; - source: string; - kind: string; - name?: string; - variables?: string[]; - }, -): OriginalScopeInfo { - const { start, end, source, kind, name, variables } = data; - const { - _sources: sources, - _sourcesContent: sourcesContent, - _originalScopes: originalScopes, - _names: names, - } = cast(map); - const index = put(sources, source); - if (index === sourcesContent.length) sourcesContent[index] = null; - if (index === originalScopes.length) originalScopes[index] = []; - - const kindIndex = put(names, kind); - const scope: OriginalScope = name - ? [start.line - 1, start.column, end.line - 1, end.column, kindIndex, put(names, name)] - : [start.line - 1, start.column, end.line - 1, end.column, kindIndex]; - if (variables) { - scope.vars = variables.map((v) => put(names, v)); - } - const len = originalScopes[index].push(scope); - return [index, len - 1, variables]; -} -*/ - -// Generated Ranges -/* -export function addGeneratedRange( - map: GenMapping, - data: { - start: Pos; - isScope: boolean; - originalScope?: OriginalScopeInfo; - callsite?: OriginalPos; - }, -): GeneratedRangeInfo { - const { start, isScope, originalScope, callsite } = data; - const { - _originalScopes: originalScopes, - _sources: sources, - _sourcesContent: sourcesContent, - _generatedRanges: generatedRanges, - } = cast(map); - - const range: GeneratedRange = [ - start.line - 1, - start.column, - 0, - 0, - originalScope ? originalScope[0] : -1, - originalScope ? originalScope[1] : -1, - ]; - if (originalScope?.[2]) { - range.bindings = originalScope[2].map(() => [[-1]]); - } - if (callsite) { - const index = put(sources, callsite.source); - if (index === sourcesContent.length) sourcesContent[index] = null; - if (index === originalScopes.length) originalScopes[index] = []; - range.callsite = [index, callsite.line - 1, callsite.column]; - } - if (isScope) range.isScope = true; - generatedRanges.push(range); - - return [range, originalScope?.[2]]; -} - -export function setEndPosition(range: GeneratedRangeInfo, pos: Pos) { - range[0][2] = pos.line - 1; - range[0][3] = pos.column; -} - -export function addBinding( - map: GenMapping, - range: GeneratedRangeInfo, - variable: string, - expression: string | BindingExpressionRange, -) { - const { _names: names } = cast(map); - const bindings = (range[0].bindings ||= []); - const vars = range[1]; - - const index = vars!.indexOf(variable); - const binding = getIndex(bindings, index); - - if (typeof expression === 'string') binding[0] = [put(names, expression)]; - else { - const { start } = expression; - binding.push([put(names, expression.expression), start.line - 1, start.column]); - } -} -*/ diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/src/set-array.ts b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/src/set-array.ts deleted file mode 100644 index a2a73a52..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/src/set-array.ts +++ /dev/null @@ -1,82 +0,0 @@ -type Key = string | number | symbol; - -/** - * SetArray acts like a `Set` (allowing only one occurrence of a string `key`), but provides the - * index of the `key` in the backing array. - * - * This is designed to allow synchronizing a second array with the contents of the backing array, - * like how in a sourcemap `sourcesContent[i]` is the source content associated with `source[i]`, - * and there are never duplicates. - */ -export class SetArray { - declare private _indexes: Record; - declare array: readonly T[]; - - constructor() { - this._indexes = { __proto__: null } as any; - this.array = []; - } -} - -interface PublicSet { - array: T[]; - _indexes: SetArray['_indexes']; -} - -/** - * Typescript doesn't allow friend access to private fields, so this just casts the set into a type - * with public access modifiers. - */ -function cast(set: SetArray): PublicSet { - return set as any; -} - -/** - * Gets the index associated with `key` in the backing array, if it is already present. - */ -export function get(setarr: SetArray, key: T): number | undefined { - return cast(setarr)._indexes[key]; -} - -/** - * Puts `key` into the backing array, if it is not already present. Returns - * the index of the `key` in the backing array. - */ -export function put(setarr: SetArray, key: T): number { - // The key may or may not be present. If it is present, it's a number. - const index = get(setarr, key); - if (index !== undefined) return index; - - const { array, _indexes: indexes } = cast(setarr); - - const length = array.push(key); - return (indexes[key] = length - 1); -} - -/** - * Pops the last added item out of the SetArray. - */ -export function pop(setarr: SetArray): void { - const { array, _indexes: indexes } = cast(setarr); - if (array.length === 0) return; - - const last = array.pop()!; - indexes[last] = undefined; -} - -/** - * Removes the key, if it exists in the set. - */ -export function remove(setarr: SetArray, key: T): void { - const index = get(setarr, key); - if (index === undefined) return; - - const { array, _indexes: indexes } = cast(setarr); - for (let i = index + 1; i < array.length; i++) { - const k = array[i]; - array[i - 1] = k; - indexes[k]!--; - } - indexes[key] = undefined; - array.pop(); -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/src/sourcemap-segment.ts b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/src/sourcemap-segment.ts deleted file mode 100644 index fb296dd3..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/src/sourcemap-segment.ts +++ /dev/null @@ -1,16 +0,0 @@ -type GeneratedColumn = number; -type SourcesIndex = number; -type SourceLine = number; -type SourceColumn = number; -type NamesIndex = number; - -export type SourceMapSegment = - | [GeneratedColumn] - | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] - | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex]; - -export const COLUMN = 0; -export const SOURCES_INDEX = 1; -export const SOURCE_LINE = 2; -export const SOURCE_COLUMN = 3; -export const NAMES_INDEX = 4; diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/src/types.ts b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/src/types.ts deleted file mode 100644 index b087f706..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/src/types.ts +++ /dev/null @@ -1,61 +0,0 @@ -// import type { GeneratedRange, OriginalScope } from '@jridgewell/sourcemap-codec'; -import type { SourceMapSegment } from './sourcemap-segment'; - -export interface SourceMapV3 { - file?: string | null; - names: readonly string[]; - sourceRoot?: string; - sources: readonly (string | null)[]; - sourcesContent?: readonly (string | null)[]; - version: 3; - ignoreList?: readonly number[]; -} - -export interface EncodedSourceMap extends SourceMapV3 { - mappings: string; - // originalScopes: string[]; - // generatedRanges: string; -} - -export interface DecodedSourceMap extends SourceMapV3 { - mappings: readonly SourceMapSegment[][]; - // originalScopes: readonly OriginalScope[][]; - // generatedRanges: readonly GeneratedRange[]; -} - -export interface Pos { - line: number; // 1-based - column: number; // 0-based -} - -export interface OriginalPos extends Pos { - source: string; -} - -export interface BindingExpressionRange { - start: Pos; - expression: string; -} - -// export type OriginalScopeInfo = [number, number, string[] | undefined]; -// export type GeneratedRangeInfo = [GeneratedRange, string[] | undefined]; - -export type Mapping = - | { - generated: Pos; - source: undefined; - original: undefined; - name: undefined; - } - | { - generated: Pos; - source: string; - original: Pos; - name: string; - } - | { - generated: Pos; - source: string; - original: Pos; - name: undefined; - }; diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.cts b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.cts deleted file mode 100644 index 7618d857..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.cts +++ /dev/null @@ -1,89 +0,0 @@ -import type { SourceMapInput } from '@jridgewell/trace-mapping'; -import type { DecodedSourceMap, EncodedSourceMap, Pos, Mapping } from './types.cts'; -export type { DecodedSourceMap, EncodedSourceMap, Mapping }; -export type Options = { - file?: string | null; - sourceRoot?: string | null; -}; -/** - * Provides the state to generate a sourcemap. - */ -export declare class GenMapping { - private _names; - private _sources; - private _sourcesContent; - private _mappings; - private _ignoreList; - file: string | null | undefined; - sourceRoot: string | null | undefined; - constructor({ file, sourceRoot }?: Options); -} -/** - * A low-level API to associate a generated position with an original source position. Line and - * column here are 0-based, unlike `addMapping`. - */ -export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source?: null, sourceLine?: null, sourceColumn?: null, name?: null, content?: null): void; -export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source: string, sourceLine: number, sourceColumn: number, name?: null, content?: string | null): void; -export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source: string, sourceLine: number, sourceColumn: number, name: string, content?: string | null): void; -/** - * A high-level API to associate a generated position with an original source position. Line is - * 1-based, but column is 0-based, due to legacy behavior in `source-map` library. - */ -export declare function addMapping(map: GenMapping, mapping: { - generated: Pos; - source?: null; - original?: null; - name?: null; - content?: null; -}): void; -export declare function addMapping(map: GenMapping, mapping: { - generated: Pos; - source: string; - original: Pos; - name?: null; - content?: string | null; -}): void; -export declare function addMapping(map: GenMapping, mapping: { - generated: Pos; - source: string; - original: Pos; - name: string; - content?: string | null; -}): void; -/** - * Same as `addSegment`, but will only add the segment if it generates useful information in the - * resulting map. This only works correctly if segments are added **in order**, meaning you should - * not add a segment with a lower generated line/column than one that came before. - */ -export declare const maybeAddSegment: typeof addSegment; -/** - * Same as `addMapping`, but will only add the mapping if it generates useful information in the - * resulting map. This only works correctly if mappings are added **in order**, meaning you should - * not add a mapping with a lower generated line/column than one that came before. - */ -export declare const maybeAddMapping: typeof addMapping; -/** - * Adds/removes the content of the source file to the source map. - */ -export declare function setSourceContent(map: GenMapping, source: string, content: string | null): void; -export declare function setIgnore(map: GenMapping, source: string, ignore?: boolean): void; -/** - * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ -export declare function toDecodedMap(map: GenMapping): DecodedSourceMap; -/** - * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ -export declare function toEncodedMap(map: GenMapping): EncodedSourceMap; -/** - * Constructs a new GenMapping, using the already present mappings of the input. - */ -export declare function fromMap(input: SourceMapInput): GenMapping; -/** - * Returns an array of high-level mapping objects for every recorded segment, which could then be - * passed to the `source-map` library. - */ -export declare function allMappings(map: GenMapping): Mapping[]; -//# sourceMappingURL=gen-mapping.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.cts.map deleted file mode 100644 index 8a2b1835..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gen-mapping.d.ts","sourceRoot":"","sources":["../src/gen-mapping.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAGhE,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,GAAG,EACH,OAAO,EAKR,MAAM,SAAS,CAAC;AAEjB,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,EAAE,CAAC;AAE5D,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B,CAAC;AAIF;;GAEG;AACH,qBAAa,UAAU;IACrB,QAAgB,MAAM,CAAmB;IACzC,QAAgB,QAAQ,CAAmB;IAC3C,QAAgB,eAAe,CAAoB;IACnD,QAAgB,SAAS,CAAuB;IAGhD,QAAgB,WAAW,CAAmB;IACtC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAChC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;gBAElC,EAAE,IAAI,EAAE,UAAU,EAAE,GAAE,OAAY;CAW/C;AAoBD;;;GAGG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,IAAI,EACb,UAAU,CAAC,EAAE,IAAI,EACjB,YAAY,CAAC,EAAE,IAAI,EACnB,IAAI,CAAC,EAAE,IAAI,EACX,OAAO,CAAC,EAAE,IAAI,GACb,IAAI,CAAC;AACR,wBAAgB,UAAU,CACxB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,IAAI,EACX,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GACtB,IAAI,CAAC;AACR,wBAAgB,UAAU,CACxB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GACtB,IAAI,CAAC;AAwBR;;;GAGG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE;IACP,SAAS,EAAE,GAAG,CAAC;IACf,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB,GACA,IAAI,CAAC;AACR,wBAAgB,UAAU,CACxB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE;IACP,SAAS,EAAE,GAAG,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,GAAG,CAAC;IACd,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,GACA,IAAI,CAAC;AACR,wBAAgB,UAAU,CACxB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE;IACP,SAAS,EAAE,GAAG,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,GAAG,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,GACA,IAAI,CAAC;AAcR;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,OAAO,UAqBpC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,OAAO,UAEpC,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAS9F;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAO,QAYvE;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,UAAU,GAAG,gBAAgB,CAwB9D;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,UAAU,GAAG,gBAAgB,CAO9D;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,cAAc,GAAG,UAAU,CAYzD;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,EAAE,CA0BtD"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts deleted file mode 100644 index bbc0d89c..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts +++ /dev/null @@ -1,89 +0,0 @@ -import type { SourceMapInput } from '@jridgewell/trace-mapping'; -import type { DecodedSourceMap, EncodedSourceMap, Pos, Mapping } from './types.mts'; -export type { DecodedSourceMap, EncodedSourceMap, Mapping }; -export type Options = { - file?: string | null; - sourceRoot?: string | null; -}; -/** - * Provides the state to generate a sourcemap. - */ -export declare class GenMapping { - private _names; - private _sources; - private _sourcesContent; - private _mappings; - private _ignoreList; - file: string | null | undefined; - sourceRoot: string | null | undefined; - constructor({ file, sourceRoot }?: Options); -} -/** - * A low-level API to associate a generated position with an original source position. Line and - * column here are 0-based, unlike `addMapping`. - */ -export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source?: null, sourceLine?: null, sourceColumn?: null, name?: null, content?: null): void; -export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source: string, sourceLine: number, sourceColumn: number, name?: null, content?: string | null): void; -export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source: string, sourceLine: number, sourceColumn: number, name: string, content?: string | null): void; -/** - * A high-level API to associate a generated position with an original source position. Line is - * 1-based, but column is 0-based, due to legacy behavior in `source-map` library. - */ -export declare function addMapping(map: GenMapping, mapping: { - generated: Pos; - source?: null; - original?: null; - name?: null; - content?: null; -}): void; -export declare function addMapping(map: GenMapping, mapping: { - generated: Pos; - source: string; - original: Pos; - name?: null; - content?: string | null; -}): void; -export declare function addMapping(map: GenMapping, mapping: { - generated: Pos; - source: string; - original: Pos; - name: string; - content?: string | null; -}): void; -/** - * Same as `addSegment`, but will only add the segment if it generates useful information in the - * resulting map. This only works correctly if segments are added **in order**, meaning you should - * not add a segment with a lower generated line/column than one that came before. - */ -export declare const maybeAddSegment: typeof addSegment; -/** - * Same as `addMapping`, but will only add the mapping if it generates useful information in the - * resulting map. This only works correctly if mappings are added **in order**, meaning you should - * not add a mapping with a lower generated line/column than one that came before. - */ -export declare const maybeAddMapping: typeof addMapping; -/** - * Adds/removes the content of the source file to the source map. - */ -export declare function setSourceContent(map: GenMapping, source: string, content: string | null): void; -export declare function setIgnore(map: GenMapping, source: string, ignore?: boolean): void; -/** - * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ -export declare function toDecodedMap(map: GenMapping): DecodedSourceMap; -/** - * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ -export declare function toEncodedMap(map: GenMapping): EncodedSourceMap; -/** - * Constructs a new GenMapping, using the already present mappings of the input. - */ -export declare function fromMap(input: SourceMapInput): GenMapping; -/** - * Returns an array of high-level mapping objects for every recorded segment, which could then be - * passed to the `source-map` library. - */ -export declare function allMappings(map: GenMapping): Mapping[]; -//# sourceMappingURL=gen-mapping.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts.map deleted file mode 100644 index 8a2b1835..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gen-mapping.d.ts","sourceRoot":"","sources":["../src/gen-mapping.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAGhE,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,GAAG,EACH,OAAO,EAKR,MAAM,SAAS,CAAC;AAEjB,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,EAAE,CAAC;AAE5D,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B,CAAC;AAIF;;GAEG;AACH,qBAAa,UAAU;IACrB,QAAgB,MAAM,CAAmB;IACzC,QAAgB,QAAQ,CAAmB;IAC3C,QAAgB,eAAe,CAAoB;IACnD,QAAgB,SAAS,CAAuB;IAGhD,QAAgB,WAAW,CAAmB;IACtC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAChC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;gBAElC,EAAE,IAAI,EAAE,UAAU,EAAE,GAAE,OAAY;CAW/C;AAoBD;;;GAGG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,IAAI,EACb,UAAU,CAAC,EAAE,IAAI,EACjB,YAAY,CAAC,EAAE,IAAI,EACnB,IAAI,CAAC,EAAE,IAAI,EACX,OAAO,CAAC,EAAE,IAAI,GACb,IAAI,CAAC;AACR,wBAAgB,UAAU,CACxB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,IAAI,CAAC,EAAE,IAAI,EACX,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GACtB,IAAI,CAAC;AACR,wBAAgB,UAAU,CACxB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GACtB,IAAI,CAAC;AAwBR;;;GAGG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE;IACP,SAAS,EAAE,GAAG,CAAC;IACf,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB,GACA,IAAI,CAAC;AACR,wBAAgB,UAAU,CACxB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE;IACP,SAAS,EAAE,GAAG,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,GAAG,CAAC;IACd,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,GACA,IAAI,CAAC;AACR,wBAAgB,UAAU,CACxB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE;IACP,SAAS,EAAE,GAAG,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,GAAG,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,GACA,IAAI,CAAC;AAcR;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,OAAO,UAqBpC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,OAAO,UAEpC,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAS9F;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAO,QAYvE;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,UAAU,GAAG,gBAAgB,CAwB9D;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,UAAU,GAAG,gBAAgB,CAO9D;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,cAAc,GAAG,UAAU,CAYzD;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,EAAE,CA0BtD"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/set-array.d.cts b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/set-array.d.cts deleted file mode 100644 index 5d8cda35..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/set-array.d.cts +++ /dev/null @@ -1,33 +0,0 @@ -type Key = string | number | symbol; -/** - * SetArray acts like a `Set` (allowing only one occurrence of a string `key`), but provides the - * index of the `key` in the backing array. - * - * This is designed to allow synchronizing a second array with the contents of the backing array, - * like how in a sourcemap `sourcesContent[i]` is the source content associated with `source[i]`, - * and there are never duplicates. - */ -export declare class SetArray { - private _indexes; - array: readonly T[]; - constructor(); -} -/** - * Gets the index associated with `key` in the backing array, if it is already present. - */ -export declare function get(setarr: SetArray, key: T): number | undefined; -/** - * Puts `key` into the backing array, if it is not already present. Returns - * the index of the `key` in the backing array. - */ -export declare function put(setarr: SetArray, key: T): number; -/** - * Pops the last added item out of the SetArray. - */ -export declare function pop(setarr: SetArray): void; -/** - * Removes the key, if it exists in the set. - */ -export declare function remove(setarr: SetArray, key: T): void; -export {}; -//# sourceMappingURL=set-array.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/set-array.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/set-array.d.cts.map deleted file mode 100644 index c52b8bce..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/set-array.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"set-array.d.ts","sourceRoot":"","sources":["../src/set-array.ts"],"names":[],"mappings":"AAAA,KAAK,GAAG,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpC;;;;;;;GAOG;AACH,qBAAa,QAAQ,CAAC,CAAC,SAAS,GAAG,GAAG,GAAG;IACvC,QAAgB,QAAQ,CAAgC;IAChD,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;;CAM7B;AAeD;;GAEG;AACH,wBAAgB,GAAG,CAAC,CAAC,SAAS,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,MAAM,GAAG,SAAS,CAElF;AAED;;;GAGG;AACH,wBAAgB,GAAG,CAAC,CAAC,SAAS,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,MAAM,CAStE;AAED;;GAEG;AACH,wBAAgB,GAAG,CAAC,CAAC,SAAS,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,CAM5D;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,IAAI,CAYvE"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts deleted file mode 100644 index 5d8cda35..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts +++ /dev/null @@ -1,33 +0,0 @@ -type Key = string | number | symbol; -/** - * SetArray acts like a `Set` (allowing only one occurrence of a string `key`), but provides the - * index of the `key` in the backing array. - * - * This is designed to allow synchronizing a second array with the contents of the backing array, - * like how in a sourcemap `sourcesContent[i]` is the source content associated with `source[i]`, - * and there are never duplicates. - */ -export declare class SetArray { - private _indexes; - array: readonly T[]; - constructor(); -} -/** - * Gets the index associated with `key` in the backing array, if it is already present. - */ -export declare function get(setarr: SetArray, key: T): number | undefined; -/** - * Puts `key` into the backing array, if it is not already present. Returns - * the index of the `key` in the backing array. - */ -export declare function put(setarr: SetArray, key: T): number; -/** - * Pops the last added item out of the SetArray. - */ -export declare function pop(setarr: SetArray): void; -/** - * Removes the key, if it exists in the set. - */ -export declare function remove(setarr: SetArray, key: T): void; -export {}; -//# sourceMappingURL=set-array.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts.map deleted file mode 100644 index c52b8bce..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"set-array.d.ts","sourceRoot":"","sources":["../src/set-array.ts"],"names":[],"mappings":"AAAA,KAAK,GAAG,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpC;;;;;;;GAOG;AACH,qBAAa,QAAQ,CAAC,CAAC,SAAS,GAAG,GAAG,GAAG;IACvC,QAAgB,QAAQ,CAAgC;IAChD,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;;CAM7B;AAeD;;GAEG;AACH,wBAAgB,GAAG,CAAC,CAAC,SAAS,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,MAAM,GAAG,SAAS,CAElF;AAED;;;GAGG;AACH,wBAAgB,GAAG,CAAC,CAAC,SAAS,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,MAAM,CAStE;AAED;;GAEG;AACH,wBAAgB,GAAG,CAAC,CAAC,SAAS,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,CAM5D;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,IAAI,CAYvE"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.cts b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.cts deleted file mode 100644 index 68862952..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.cts +++ /dev/null @@ -1,13 +0,0 @@ -type GeneratedColumn = number; -type SourcesIndex = number; -type SourceLine = number; -type SourceColumn = number; -type NamesIndex = number; -export type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex]; -export declare const COLUMN = 0; -export declare const SOURCES_INDEX = 1; -export declare const SOURCE_LINE = 2; -export declare const SOURCE_COLUMN = 3; -export declare const NAMES_INDEX = 4; -export {}; -//# sourceMappingURL=sourcemap-segment.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.cts.map deleted file mode 100644 index 23cdc452..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sourcemap-segment.d.ts","sourceRoot":"","sources":["../src/sourcemap-segment.ts"],"names":[],"mappings":"AAAA,KAAK,eAAe,GAAG,MAAM,CAAC;AAC9B,KAAK,YAAY,GAAG,MAAM,CAAC;AAC3B,KAAK,UAAU,GAAG,MAAM,CAAC;AACzB,KAAK,YAAY,GAAG,MAAM,CAAC;AAC3B,KAAK,UAAU,GAAG,MAAM,CAAC;AAEzB,MAAM,MAAM,gBAAgB,GACxB,CAAC,eAAe,CAAC,GACjB,CAAC,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,CAAC,GACzD,CAAC,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;AAE1E,eAAO,MAAM,MAAM,IAAI,CAAC;AACxB,eAAO,MAAM,aAAa,IAAI,CAAC;AAC/B,eAAO,MAAM,WAAW,IAAI,CAAC;AAC7B,eAAO,MAAM,aAAa,IAAI,CAAC;AAC/B,eAAO,MAAM,WAAW,IAAI,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts deleted file mode 100644 index 68862952..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts +++ /dev/null @@ -1,13 +0,0 @@ -type GeneratedColumn = number; -type SourcesIndex = number; -type SourceLine = number; -type SourceColumn = number; -type NamesIndex = number; -export type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex]; -export declare const COLUMN = 0; -export declare const SOURCES_INDEX = 1; -export declare const SOURCE_LINE = 2; -export declare const SOURCE_COLUMN = 3; -export declare const NAMES_INDEX = 4; -export {}; -//# sourceMappingURL=sourcemap-segment.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts.map deleted file mode 100644 index 23cdc452..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sourcemap-segment.d.ts","sourceRoot":"","sources":["../src/sourcemap-segment.ts"],"names":[],"mappings":"AAAA,KAAK,eAAe,GAAG,MAAM,CAAC;AAC9B,KAAK,YAAY,GAAG,MAAM,CAAC;AAC3B,KAAK,UAAU,GAAG,MAAM,CAAC;AACzB,KAAK,YAAY,GAAG,MAAM,CAAC;AAC3B,KAAK,UAAU,GAAG,MAAM,CAAC;AAEzB,MAAM,MAAM,gBAAgB,GACxB,CAAC,eAAe,CAAC,GACjB,CAAC,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,CAAC,GACzD,CAAC,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;AAE1E,eAAO,MAAM,MAAM,IAAI,CAAC;AACxB,eAAO,MAAM,aAAa,IAAI,CAAC;AAC/B,eAAO,MAAM,WAAW,IAAI,CAAC;AAC7B,eAAO,MAAM,aAAa,IAAI,CAAC;AAC/B,eAAO,MAAM,WAAW,IAAI,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/types.d.cts b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/types.d.cts deleted file mode 100644 index 58da00a9..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/types.d.cts +++ /dev/null @@ -1,44 +0,0 @@ -import type { SourceMapSegment } from './sourcemap-segment.cts'; -export interface SourceMapV3 { - file?: string | null; - names: readonly string[]; - sourceRoot?: string; - sources: readonly (string | null)[]; - sourcesContent?: readonly (string | null)[]; - version: 3; - ignoreList?: readonly number[]; -} -export interface EncodedSourceMap extends SourceMapV3 { - mappings: string; -} -export interface DecodedSourceMap extends SourceMapV3 { - mappings: readonly SourceMapSegment[][]; -} -export interface Pos { - line: number; - column: number; -} -export interface OriginalPos extends Pos { - source: string; -} -export interface BindingExpressionRange { - start: Pos; - expression: string; -} -export type Mapping = { - generated: Pos; - source: undefined; - original: undefined; - name: undefined; -} | { - generated: Pos; - source: string; - original: Pos; - name: string; -} | { - generated: Pos; - source: string; - original: Pos; - name: undefined; -}; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/types.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/types.d.cts.map deleted file mode 100644 index 159e734d..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/types.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IACpC,cAAc,CAAC,EAAE,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IAC5C,OAAO,EAAE,CAAC,CAAC;IACX,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,QAAQ,EAAE,MAAM,CAAC;CAGlB;AAED,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,QAAQ,EAAE,SAAS,gBAAgB,EAAE,EAAE,CAAC;CAGzC;AAED,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAY,SAAQ,GAAG;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,GAAG,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;CACpB;AAKD,MAAM,MAAM,OAAO,GACf;IACE,SAAS,EAAE,GAAG,CAAC;IACf,MAAM,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,EAAE,SAAS,CAAC;CACjB,GACD;IACE,SAAS,EAAE,GAAG,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,GAAG,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,GACD;IACE,SAAS,EAAE,GAAG,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,GAAG,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/types.d.mts b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/types.d.mts deleted file mode 100644 index e9837ebe..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/types.d.mts +++ /dev/null @@ -1,44 +0,0 @@ -import type { SourceMapSegment } from './sourcemap-segment.mts'; -export interface SourceMapV3 { - file?: string | null; - names: readonly string[]; - sourceRoot?: string; - sources: readonly (string | null)[]; - sourcesContent?: readonly (string | null)[]; - version: 3; - ignoreList?: readonly number[]; -} -export interface EncodedSourceMap extends SourceMapV3 { - mappings: string; -} -export interface DecodedSourceMap extends SourceMapV3 { - mappings: readonly SourceMapSegment[][]; -} -export interface Pos { - line: number; - column: number; -} -export interface OriginalPos extends Pos { - source: string; -} -export interface BindingExpressionRange { - start: Pos; - expression: string; -} -export type Mapping = { - generated: Pos; - source: undefined; - original: undefined; - name: undefined; -} | { - generated: Pos; - source: string; - original: Pos; - name: string; -} | { - generated: Pos; - source: string; - original: Pos; - name: undefined; -}; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/types.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/types.d.mts.map deleted file mode 100644 index 159e734d..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/gen-mapping/types/types.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IACpC,cAAc,CAAC,EAAE,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IAC5C,OAAO,EAAE,CAAC,CAAC;IACX,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,QAAQ,EAAE,MAAM,CAAC;CAGlB;AAED,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,QAAQ,EAAE,SAAS,gBAAgB,EAAE,EAAE,CAAC;CAGzC;AAED,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAY,SAAQ,GAAG;IACtC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,GAAG,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;CACpB;AAKD,MAAM,MAAM,OAAO,GACf;IACE,SAAS,EAAE,GAAG,CAAC;IACf,MAAM,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,EAAE,SAAS,CAAC;CACjB,GACD;IACE,SAAS,EAAE,GAAG,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,GAAG,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd,GACD;IACE,SAAS,EAAE,GAAG,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,GAAG,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;CACjB,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/LICENSE b/build_vtk_bundle/node_modules/@jridgewell/remapping/LICENSE deleted file mode 100644 index 1f6ce94c..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright 2024 Justin Ridgewell - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/README.md b/build_vtk_bundle/node_modules/@jridgewell/remapping/README.md deleted file mode 100644 index 6d092d7e..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/README.md +++ /dev/null @@ -1,218 +0,0 @@ -# @jridgewell/remapping - -> Remap sequential sourcemaps through transformations to point at the original source code - -Remapping allows you to take the sourcemaps generated through transforming your code and "remap" -them to the original source locations. Think "my minified code, transformed with babel and bundled -with webpack", all pointing to the correct location in your original source code. - -With remapping, none of your source code transformations need to be aware of the input's sourcemap, -they only need to generate an output sourcemap. This greatly simplifies building custom -transformations (think a find-and-replace). - -## Installation - -```sh -npm install @jridgewell/remapping -``` - -## Usage - -```typescript -function remapping( - map: SourceMap | SourceMap[], - loader: (file: string, ctx: LoaderContext) => (SourceMap | null | undefined), - options?: { excludeContent: boolean, decodedMappings: boolean } -): SourceMap; - -// LoaderContext gives the loader the importing sourcemap, tree depth, the ability to override the -// "source" location (where child sources are resolved relative to, or the location of original -// source), and the ability to override the "content" of an original source for inclusion in the -// output sourcemap. -type LoaderContext = { - readonly importer: string; - readonly depth: number; - source: string; - content: string | null | undefined; -} -``` - -`remapping` takes the final output sourcemap, and a `loader` function. For every source file pointer -in the sourcemap, the `loader` will be called with the resolved path. If the path itself represents -a transformed file (it has a sourcmap associated with it), then the `loader` should return that -sourcemap. If not, the path will be treated as an original, untransformed source code. - -```js -// Babel transformed "helloworld.js" into "transformed.js" -const transformedMap = JSON.stringify({ - file: 'transformed.js', - // 1st column of 2nd line of output file translates into the 1st source - // file, line 3, column 2 - mappings: ';CAEE', - sources: ['helloworld.js'], - version: 3, -}); - -// Uglify minified "transformed.js" into "transformed.min.js" -const minifiedTransformedMap = JSON.stringify({ - file: 'transformed.min.js', - // 0th column of 1st line of output file translates into the 1st source - // file, line 2, column 1. - mappings: 'AACC', - names: [], - sources: ['transformed.js'], - version: 3, -}); - -const remapped = remapping( - minifiedTransformedMap, - (file, ctx) => { - - // The "transformed.js" file is an transformed file. - if (file === 'transformed.js') { - // The root importer is empty. - console.assert(ctx.importer === ''); - // The depth in the sourcemap tree we're currently loading. - // The root `minifiedTransformedMap` is depth 0, and its source children are depth 1, etc. - console.assert(ctx.depth === 1); - - return transformedMap; - } - - // Loader will be called to load transformedMap's source file pointers as well. - console.assert(file === 'helloworld.js'); - // `transformed.js`'s sourcemap points into `helloworld.js`. - console.assert(ctx.importer === 'transformed.js'); - // This is a source child of `transformed`, which is a source child of `minifiedTransformedMap`. - console.assert(ctx.depth === 2); - return null; - } -); - -console.log(remapped); -// { -// file: 'transpiled.min.js', -// mappings: 'AAEE', -// sources: ['helloworld.js'], -// version: 3, -// }; -``` - -In this example, `loader` will be called twice: - -1. `"transformed.js"`, the first source file pointer in the `minifiedTransformedMap`. We return the - associated sourcemap for it (its a transformed file, after all) so that sourcemap locations can - be traced through it into the source files it represents. -2. `"helloworld.js"`, our original, unmodified source code. This file does not have a sourcemap, so - we return `null`. - -The `remapped` sourcemap now points from `transformed.min.js` into locations in `helloworld.js`. If -you were to read the `mappings`, it says "0th column of the first line output line points to the 1st -column of the 2nd line of the file `helloworld.js`". - -### Multiple transformations of a file - -As a convenience, if you have multiple single-source transformations of a file, you may pass an -array of sourcemap files in the order of most-recent transformation sourcemap first. Note that this -changes the `importer` and `depth` of each call to our loader. So our above example could have been -written as: - -```js -const remapped = remapping( - [minifiedTransformedMap, transformedMap], - () => null -); - -console.log(remapped); -// { -// file: 'transpiled.min.js', -// mappings: 'AAEE', -// sources: ['helloworld.js'], -// version: 3, -// }; -``` - -### Advanced control of the loading graph - -#### `source` - -The `source` property can overridden to any value to change the location of the current load. Eg, -for an original source file, it allows us to change the location to the original source regardless -of what the sourcemap source entry says. And for transformed files, it allows us to change the -relative resolving location for child sources of the loaded sourcemap. - -```js -const remapped = remapping( - minifiedTransformedMap, - (file, ctx) => { - - if (file === 'transformed.js') { - // We pretend the transformed.js file actually exists in the 'src/' directory. When the nested - // source files are loaded, they will now be relative to `src/`. - ctx.source = 'src/transformed.js'; - return transformedMap; - } - - console.assert(file === 'src/helloworld.js'); - // We could futher change the source of this original file, eg, to be inside a nested directory - // itself. This will be reflected in the remapped sourcemap. - ctx.source = 'src/nested/transformed.js'; - return null; - } -); - -console.log(remapped); -// { -// …, -// sources: ['src/nested/helloworld.js'], -// }; -``` - - -#### `content` - -The `content` property can be overridden when we encounter an original source file. Eg, this allows -you to manually provide the source content of the original file regardless of whether the -`sourcesContent` field is present in the parent sourcemap. It can also be set to `null` to remove -the source content. - -```js -const remapped = remapping( - minifiedTransformedMap, - (file, ctx) => { - - if (file === 'transformed.js') { - // transformedMap does not include a `sourcesContent` field, so usually the remapped sourcemap - // would not include any `sourcesContent` values. - return transformedMap; - } - - console.assert(file === 'helloworld.js'); - // We can read the file to provide the source content. - ctx.content = fs.readFileSync(file, 'utf8'); - return null; - } -); - -console.log(remapped); -// { -// …, -// sourcesContent: [ -// 'console.log("Hello world!")', -// ], -// }; -``` - -### Options - -#### excludeContent - -By default, `excludeContent` is `false`. Passing `{ excludeContent: true }` will exclude the -`sourcesContent` field from the returned sourcemap. This is mainly useful when you want to reduce -the size out the sourcemap. - -#### decodedMappings - -By default, `decodedMappings` is `false`. Passing `{ decodedMappings: true }` will leave the -`mappings` field in a [decoded state](https://github.com/rich-harris/sourcemap-codec) instead of -encoding into a VLQ string. diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/package.json b/build_vtk_bundle/node_modules/@jridgewell/remapping/package.json deleted file mode 100644 index ed00441e..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/package.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "name": "@jridgewell/remapping", - "version": "2.3.5", - "description": "Remap sequential sourcemaps through transformations to point at the original source code", - "keywords": [ - "source", - "map", - "remap" - ], - "main": "dist/remapping.umd.js", - "module": "dist/remapping.mjs", - "types": "types/remapping.d.cts", - "files": [ - "dist", - "src", - "types" - ], - "exports": { - ".": [ - { - "import": { - "types": "./types/remapping.d.mts", - "default": "./dist/remapping.mjs" - }, - "default": { - "types": "./types/remapping.d.cts", - "default": "./dist/remapping.umd.js" - } - }, - "./dist/remapping.umd.js" - ], - "./package.json": "./package.json" - }, - "scripts": { - "benchmark": "run-s build:code benchmark:*", - "benchmark:install": "cd benchmark && npm install", - "benchmark:only": "node --expose-gc benchmark/index.js", - "build": "run-s -n build:code build:types", - "build:code": "node ../../esbuild.mjs remapping.ts", - "build:types": "run-s build:types:force build:types:emit build:types:mts", - "build:types:force": "rimraf tsconfig.build.tsbuildinfo", - "build:types:emit": "tsc --project tsconfig.build.json", - "build:types:mts": "node ../../mts-types.mjs", - "clean": "run-s -n clean:code clean:types", - "clean:code": "tsc --build --clean tsconfig.build.json", - "clean:types": "rimraf dist types", - "test": "run-s -n test:types test:only test:format", - "test:format": "prettier --check '{src,test}/**/*.ts'", - "test:only": "mocha", - "test:types": "eslint '{src,test}/**/*.ts'", - "lint": "run-s -n lint:types lint:format", - "lint:format": "npm run test:format -- --write", - "lint:types": "npm run test:types -- --fix", - "prepublishOnly": "npm run-s -n build test" - }, - "homepage": "https://github.com/jridgewell/sourcemaps/tree/main/packages/remapping", - "repository": { - "type": "git", - "url": "git+https://github.com/jridgewell/sourcemaps.git", - "directory": "packages/remapping" - }, - "author": "Justin Ridgewell ", - "license": "MIT", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "devDependencies": { - "source-map": "0.6.1" - } -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/src/build-source-map-tree.ts b/build_vtk_bundle/node_modules/@jridgewell/remapping/src/build-source-map-tree.ts deleted file mode 100644 index 3e0262bd..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/src/build-source-map-tree.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { TraceMap } from '@jridgewell/trace-mapping'; - -import { OriginalSource, MapSource } from './source-map-tree'; - -import type { Sources, MapSource as MapSourceType } from './source-map-tree'; -import type { SourceMapInput, SourceMapLoader, LoaderContext } from './types'; - -function asArray(value: T | T[]): T[] { - if (Array.isArray(value)) return value; - return [value]; -} - -/** - * Recursively builds a tree structure out of sourcemap files, with each node - * being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of - * `OriginalSource`s and `SourceMapTree`s. - * - * Every sourcemap is composed of a collection of source files and mappings - * into locations of those source files. When we generate a `SourceMapTree` for - * the sourcemap, we attempt to load each source file's own sourcemap. If it - * does not have an associated sourcemap, it is considered an original, - * unmodified source file. - */ -export default function buildSourceMapTree( - input: SourceMapInput | SourceMapInput[], - loader: SourceMapLoader, -): MapSourceType { - const maps = asArray(input).map((m) => new TraceMap(m, '')); - const map = maps.pop()!; - - for (let i = 0; i < maps.length; i++) { - if (maps[i].sources.length > 1) { - throw new Error( - `Transformation map ${i} must have exactly one source file.\n` + - 'Did you specify these with the most recent transformation maps first?', - ); - } - } - - let tree = build(map, loader, '', 0); - for (let i = maps.length - 1; i >= 0; i--) { - tree = MapSource(maps[i], [tree]); - } - return tree; -} - -function build( - map: TraceMap, - loader: SourceMapLoader, - importer: string, - importerDepth: number, -): MapSourceType { - const { resolvedSources, sourcesContent, ignoreList } = map; - - const depth = importerDepth + 1; - const children = resolvedSources.map((sourceFile: string | null, i: number): Sources => { - // The loading context gives the loader more information about why this file is being loaded - // (eg, from which importer). It also allows the loader to override the location of the loaded - // sourcemap/original source, or to override the content in the sourcesContent field if it's - // an unmodified source file. - const ctx: LoaderContext = { - importer, - depth, - source: sourceFile || '', - content: undefined, - ignore: undefined, - }; - - // Use the provided loader callback to retrieve the file's sourcemap. - // TODO: We should eventually support async loading of sourcemap files. - const sourceMap = loader(ctx.source, ctx); - - const { source, content, ignore } = ctx; - - // If there is a sourcemap, then we need to recurse into it to load its source files. - if (sourceMap) return build(new TraceMap(sourceMap, source), loader, source, depth); - - // Else, it's an unmodified source file. - // The contents of this unmodified source file can be overridden via the loader context, - // allowing it to be explicitly null or a string. If it remains undefined, we fall back to - // the importing sourcemap's `sourcesContent` field. - const sourceContent = - content !== undefined ? content : sourcesContent ? sourcesContent[i] : null; - const ignored = ignore !== undefined ? ignore : ignoreList ? ignoreList.includes(i) : false; - return OriginalSource(source, sourceContent, ignored); - }); - - return MapSource(map, children); -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/src/remapping.ts b/build_vtk_bundle/node_modules/@jridgewell/remapping/src/remapping.ts deleted file mode 100644 index c0f8b0de..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/src/remapping.ts +++ /dev/null @@ -1,42 +0,0 @@ -import buildSourceMapTree from './build-source-map-tree'; -import { traceMappings } from './source-map-tree'; -import SourceMap from './source-map'; - -import type { SourceMapInput, SourceMapLoader, Options } from './types'; -export type { - SourceMapSegment, - EncodedSourceMap, - EncodedSourceMap as RawSourceMap, - DecodedSourceMap, - SourceMapInput, - SourceMapLoader, - LoaderContext, - Options, -} from './types'; -export type { SourceMap }; - -/** - * Traces through all the mappings in the root sourcemap, through the sources - * (and their sourcemaps), all the way back to the original source location. - * - * `loader` will be called every time we encounter a source file. If it returns - * a sourcemap, we will recurse into that sourcemap to continue the trace. If - * it returns a falsey value, that source file is treated as an original, - * unmodified source file. - * - * Pass `excludeContent` to exclude any self-containing source file content - * from the output sourcemap. - * - * Pass `decodedMappings` to receive a SourceMap with decoded (instead of - * VLQ encoded) mappings. - */ -export default function remapping( - input: SourceMapInput | SourceMapInput[], - loader: SourceMapLoader, - options?: boolean | Options, -): SourceMap { - const opts = - typeof options === 'object' ? options : { excludeContent: !!options, decodedMappings: false }; - const tree = buildSourceMapTree(input, loader); - return new SourceMap(traceMappings(tree), opts); -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/src/source-map-tree.ts b/build_vtk_bundle/node_modules/@jridgewell/remapping/src/source-map-tree.ts deleted file mode 100644 index 935240f9..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/src/source-map-tree.ts +++ /dev/null @@ -1,172 +0,0 @@ -import { GenMapping, maybeAddSegment, setIgnore, setSourceContent } from '@jridgewell/gen-mapping'; -import { traceSegment, decodedMappings } from '@jridgewell/trace-mapping'; - -import type { TraceMap } from '@jridgewell/trace-mapping'; - -export type SourceMapSegmentObject = { - column: number; - line: number; - name: string; - source: string; - content: string | null; - ignore: boolean; -}; - -export type OriginalSource = { - map: null; - sources: Sources[]; - source: string; - content: string | null; - ignore: boolean; -}; - -export type MapSource = { - map: TraceMap; - sources: Sources[]; - source: string; - content: null; - ignore: false; -}; - -export type Sources = OriginalSource | MapSource; - -const SOURCELESS_MAPPING = /* #__PURE__ */ SegmentObject('', -1, -1, '', null, false); -const EMPTY_SOURCES: Sources[] = []; - -function SegmentObject( - source: string, - line: number, - column: number, - name: string, - content: string | null, - ignore: boolean, -): SourceMapSegmentObject { - return { source, line, column, name, content, ignore }; -} - -function Source( - map: TraceMap, - sources: Sources[], - source: '', - content: null, - ignore: false, -): MapSource; -function Source( - map: null, - sources: Sources[], - source: string, - content: string | null, - ignore: boolean, -): OriginalSource; -function Source( - map: TraceMap | null, - sources: Sources[], - source: string | '', - content: string | null, - ignore: boolean, -): Sources { - return { - map, - sources, - source, - content, - ignore, - } as any; -} - -/** - * MapSource represents a single sourcemap, with the ability to trace mappings into its child nodes - * (which may themselves be SourceMapTrees). - */ -export function MapSource(map: TraceMap, sources: Sources[]): MapSource { - return Source(map, sources, '', null, false); -} - -/** - * A "leaf" node in the sourcemap tree, representing an original, unmodified source file. Recursive - * segment tracing ends at the `OriginalSource`. - */ -export function OriginalSource( - source: string, - content: string | null, - ignore: boolean, -): OriginalSource { - return Source(null, EMPTY_SOURCES, source, content, ignore); -} - -/** - * traceMappings is only called on the root level SourceMapTree, and begins the process of - * resolving each mapping in terms of the original source files. - */ -export function traceMappings(tree: MapSource): GenMapping { - // TODO: Eventually support sourceRoot, which has to be removed because the sources are already - // fully resolved. We'll need to make sources relative to the sourceRoot before adding them. - const gen = new GenMapping({ file: tree.map.file }); - const { sources: rootSources, map } = tree; - const rootNames = map.names; - const rootMappings = decodedMappings(map); - - for (let i = 0; i < rootMappings.length; i++) { - const segments = rootMappings[i]; - - for (let j = 0; j < segments.length; j++) { - const segment = segments[j]; - const genCol = segment[0]; - let traced: SourceMapSegmentObject | null = SOURCELESS_MAPPING; - - // 1-length segments only move the current generated column, there's no source information - // to gather from it. - if (segment.length !== 1) { - const source = rootSources[segment[1]]; - traced = originalPositionFor( - source, - segment[2], - segment[3], - segment.length === 5 ? rootNames[segment[4]] : '', - ); - - // If the trace is invalid, then the trace ran into a sourcemap that doesn't contain a - // respective segment into an original source. - if (traced == null) continue; - } - - const { column, line, name, content, source, ignore } = traced; - - maybeAddSegment(gen, i, genCol, source, line, column, name); - if (source && content != null) setSourceContent(gen, source, content); - if (ignore) setIgnore(gen, source, true); - } - } - - return gen; -} - -/** - * originalPositionFor is only called on children SourceMapTrees. It recurses down into its own - * child SourceMapTrees, until we find the original source map. - */ -export function originalPositionFor( - source: Sources, - line: number, - column: number, - name: string, -): SourceMapSegmentObject | null { - if (!source.map) { - return SegmentObject(source.source, line, column, name, source.content, source.ignore); - } - - const segment = traceSegment(source.map, line, column); - - // If we couldn't find a segment, then this doesn't exist in the sourcemap. - if (segment == null) return null; - // 1-length segments only move the current generated column, there's no source information - // to gather from it. - if (segment.length === 1) return SOURCELESS_MAPPING; - - return originalPositionFor( - source.sources[segment[1]], - segment[2], - segment[3], - segment.length === 5 ? source.map.names[segment[4]] : name, - ); -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/src/source-map.ts b/build_vtk_bundle/node_modules/@jridgewell/remapping/src/source-map.ts deleted file mode 100644 index 5156086f..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/src/source-map.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { toDecodedMap, toEncodedMap } from '@jridgewell/gen-mapping'; - -import type { GenMapping } from '@jridgewell/gen-mapping'; -import type { DecodedSourceMap, EncodedSourceMap, Options } from './types'; - -/** - * A SourceMap v3 compatible sourcemap, which only includes fields that were - * provided to it. - */ -export default class SourceMap { - declare file?: string | null; - declare mappings: EncodedSourceMap['mappings'] | DecodedSourceMap['mappings']; - declare sourceRoot?: string; - declare names: string[]; - declare sources: (string | null)[]; - declare sourcesContent?: (string | null)[]; - declare version: 3; - declare ignoreList: number[] | undefined; - - constructor(map: GenMapping, options: Options) { - const out = options.decodedMappings ? toDecodedMap(map) : toEncodedMap(map); - this.version = out.version; // SourceMap spec says this should be first. - this.file = out.file; - this.mappings = out.mappings as SourceMap['mappings']; - this.names = out.names as SourceMap['names']; - this.ignoreList = out.ignoreList as SourceMap['ignoreList']; - this.sourceRoot = out.sourceRoot; - - this.sources = out.sources as SourceMap['sources']; - if (!options.excludeContent) { - this.sourcesContent = out.sourcesContent as SourceMap['sourcesContent']; - } - } - - toString(): string { - return JSON.stringify(this); - } -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/src/types.ts b/build_vtk_bundle/node_modules/@jridgewell/remapping/src/types.ts deleted file mode 100644 index 384961d2..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/src/types.ts +++ /dev/null @@ -1,27 +0,0 @@ -import type { SourceMapInput } from '@jridgewell/trace-mapping'; - -export type { - SourceMapSegment, - DecodedSourceMap, - EncodedSourceMap, -} from '@jridgewell/trace-mapping'; - -export type { SourceMapInput }; - -export type LoaderContext = { - readonly importer: string; - readonly depth: number; - source: string; - content: string | null | undefined; - ignore: boolean | undefined; -}; - -export type SourceMapLoader = ( - file: string, - ctx: LoaderContext, -) => SourceMapInput | null | undefined | void; - -export type Options = { - excludeContent?: boolean; - decodedMappings?: boolean; -}; diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.cts b/build_vtk_bundle/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.cts deleted file mode 100644 index e089aeaa..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.cts +++ /dev/null @@ -1,15 +0,0 @@ -import type { MapSource as MapSourceType } from './source-map-tree.cts'; -import type { SourceMapInput, SourceMapLoader } from './types.cts'; -/** - * Recursively builds a tree structure out of sourcemap files, with each node - * being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of - * `OriginalSource`s and `SourceMapTree`s. - * - * Every sourcemap is composed of a collection of source files and mappings - * into locations of those source files. When we generate a `SourceMapTree` for - * the sourcemap, we attempt to load each source file's own sourcemap. If it - * does not have an associated sourcemap, it is considered an original, - * unmodified source file. - */ -export = function buildSourceMapTree(input: SourceMapInput | SourceMapInput[], loader: SourceMapLoader): MapSourceType; -//# sourceMappingURL=build-source-map-tree.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.cts.map deleted file mode 100644 index 38e4290d..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"build-source-map-tree.d.ts","sourceRoot":"","sources":["../src/build-source-map-tree.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAW,SAAS,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAiB,MAAM,SAAS,CAAC;AAO9E;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,KAAK,EAAE,cAAc,GAAG,cAAc,EAAE,EACxC,MAAM,EAAE,eAAe,GACtB,aAAa,CAkBf"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.mts b/build_vtk_bundle/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.mts deleted file mode 100644 index 746ac5f7..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.mts +++ /dev/null @@ -1,15 +0,0 @@ -import type { MapSource as MapSourceType } from './source-map-tree.mts'; -import type { SourceMapInput, SourceMapLoader } from './types.mts'; -/** - * Recursively builds a tree structure out of sourcemap files, with each node - * being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of - * `OriginalSource`s and `SourceMapTree`s. - * - * Every sourcemap is composed of a collection of source files and mappings - * into locations of those source files. When we generate a `SourceMapTree` for - * the sourcemap, we attempt to load each source file's own sourcemap. If it - * does not have an associated sourcemap, it is considered an original, - * unmodified source file. - */ -export default function buildSourceMapTree(input: SourceMapInput | SourceMapInput[], loader: SourceMapLoader): MapSourceType; -//# sourceMappingURL=build-source-map-tree.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.mts.map deleted file mode 100644 index 38e4290d..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"build-source-map-tree.d.ts","sourceRoot":"","sources":["../src/build-source-map-tree.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAW,SAAS,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAiB,MAAM,SAAS,CAAC;AAO9E;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,KAAK,EAAE,cAAc,GAAG,cAAc,EAAE,EACxC,MAAM,EAAE,eAAe,GACtB,aAAa,CAkBf"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/remapping.d.cts b/build_vtk_bundle/node_modules/@jridgewell/remapping/types/remapping.d.cts deleted file mode 100644 index 20227847..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/remapping.d.cts +++ /dev/null @@ -1,21 +0,0 @@ -import SourceMap from './source-map.cts'; -import type { SourceMapInput, SourceMapLoader, Options } from './types.cts'; -export type { SourceMapSegment, EncodedSourceMap, EncodedSourceMap as RawSourceMap, DecodedSourceMap, SourceMapInput, SourceMapLoader, LoaderContext, Options, } from './types.cts'; -export type { SourceMap }; -/** - * Traces through all the mappings in the root sourcemap, through the sources - * (and their sourcemaps), all the way back to the original source location. - * - * `loader` will be called every time we encounter a source file. If it returns - * a sourcemap, we will recurse into that sourcemap to continue the trace. If - * it returns a falsey value, that source file is treated as an original, - * unmodified source file. - * - * Pass `excludeContent` to exclude any self-containing source file content - * from the output sourcemap. - * - * Pass `decodedMappings` to receive a SourceMap with decoded (instead of - * VLQ encoded) mappings. - */ -export = function remapping(input: SourceMapInput | SourceMapInput[], loader: SourceMapLoader, options?: boolean | Options): SourceMap; -//# sourceMappingURL=remapping.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/remapping.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/remapping/types/remapping.d.cts.map deleted file mode 100644 index 9f2fd0ef..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/remapping.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"remapping.d.ts","sourceRoot":"","sources":["../src/remapping.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACxE,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,IAAI,YAAY,EAChC,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,aAAa,EACb,OAAO,GACR,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,SAAS,EAAE,CAAC;AAE1B;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,KAAK,EAAE,cAAc,GAAG,cAAc,EAAE,EACxC,MAAM,EAAE,eAAe,EACvB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAC1B,SAAS,CAKX"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/remapping.d.mts b/build_vtk_bundle/node_modules/@jridgewell/remapping/types/remapping.d.mts deleted file mode 100644 index 95c40669..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/remapping.d.mts +++ /dev/null @@ -1,21 +0,0 @@ -import SourceMap from './source-map.mts'; -import type { SourceMapInput, SourceMapLoader, Options } from './types.mts'; -export type { SourceMapSegment, EncodedSourceMap, EncodedSourceMap as RawSourceMap, DecodedSourceMap, SourceMapInput, SourceMapLoader, LoaderContext, Options, } from './types.mts'; -export type { SourceMap }; -/** - * Traces through all the mappings in the root sourcemap, through the sources - * (and their sourcemaps), all the way back to the original source location. - * - * `loader` will be called every time we encounter a source file. If it returns - * a sourcemap, we will recurse into that sourcemap to continue the trace. If - * it returns a falsey value, that source file is treated as an original, - * unmodified source file. - * - * Pass `excludeContent` to exclude any self-containing source file content - * from the output sourcemap. - * - * Pass `decodedMappings` to receive a SourceMap with decoded (instead of - * VLQ encoded) mappings. - */ -export default function remapping(input: SourceMapInput | SourceMapInput[], loader: SourceMapLoader, options?: boolean | Options): SourceMap; -//# sourceMappingURL=remapping.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/remapping.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/remapping/types/remapping.d.mts.map deleted file mode 100644 index 9f2fd0ef..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/remapping.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"remapping.d.ts","sourceRoot":"","sources":["../src/remapping.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACxE,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,IAAI,YAAY,EAChC,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,aAAa,EACb,OAAO,GACR,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,SAAS,EAAE,CAAC;AAE1B;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,KAAK,EAAE,cAAc,GAAG,cAAc,EAAE,EACxC,MAAM,EAAE,eAAe,EACvB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAC1B,SAAS,CAKX"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map-tree.d.cts b/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map-tree.d.cts deleted file mode 100644 index 440f65b8..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map-tree.d.cts +++ /dev/null @@ -1,46 +0,0 @@ -import { GenMapping } from '@jridgewell/gen-mapping'; -import type { TraceMap } from '@jridgewell/trace-mapping'; -export type SourceMapSegmentObject = { - column: number; - line: number; - name: string; - source: string; - content: string | null; - ignore: boolean; -}; -export type OriginalSource = { - map: null; - sources: Sources[]; - source: string; - content: string | null; - ignore: boolean; -}; -export type MapSource = { - map: TraceMap; - sources: Sources[]; - source: string; - content: null; - ignore: false; -}; -export type Sources = OriginalSource | MapSource; -/** - * MapSource represents a single sourcemap, with the ability to trace mappings into its child nodes - * (which may themselves be SourceMapTrees). - */ -export declare function MapSource(map: TraceMap, sources: Sources[]): MapSource; -/** - * A "leaf" node in the sourcemap tree, representing an original, unmodified source file. Recursive - * segment tracing ends at the `OriginalSource`. - */ -export declare function OriginalSource(source: string, content: string | null, ignore: boolean): OriginalSource; -/** - * traceMappings is only called on the root level SourceMapTree, and begins the process of - * resolving each mapping in terms of the original source files. - */ -export declare function traceMappings(tree: MapSource): GenMapping; -/** - * originalPositionFor is only called on children SourceMapTrees. It recurses down into its own - * child SourceMapTrees, until we find the original source map. - */ -export declare function originalPositionFor(source: Sources, line: number, column: number, name: string): SourceMapSegmentObject | null; -//# sourceMappingURL=source-map-tree.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map-tree.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map-tree.d.cts.map deleted file mode 100644 index e7cbfb95..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map-tree.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"source-map-tree.d.ts","sourceRoot":"","sources":["../src/source-map-tree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAgD,MAAM,yBAAyB,CAAC;AAGnG,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAE1D,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,IAAI,CAAC;IACV,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,GAAG,EAAE,QAAQ,CAAC;IACd,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,IAAI,CAAC;IACd,MAAM,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,cAAc,GAAG,SAAS,CAAC;AA8CjD;;;GAGG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,SAAS,CAEtE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,MAAM,EAAE,OAAO,GACd,cAAc,CAEhB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,GAAG,UAAU,CAyCzD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,GACX,sBAAsB,GAAG,IAAI,CAmB/B"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map-tree.d.mts b/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map-tree.d.mts deleted file mode 100644 index 440f65b8..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map-tree.d.mts +++ /dev/null @@ -1,46 +0,0 @@ -import { GenMapping } from '@jridgewell/gen-mapping'; -import type { TraceMap } from '@jridgewell/trace-mapping'; -export type SourceMapSegmentObject = { - column: number; - line: number; - name: string; - source: string; - content: string | null; - ignore: boolean; -}; -export type OriginalSource = { - map: null; - sources: Sources[]; - source: string; - content: string | null; - ignore: boolean; -}; -export type MapSource = { - map: TraceMap; - sources: Sources[]; - source: string; - content: null; - ignore: false; -}; -export type Sources = OriginalSource | MapSource; -/** - * MapSource represents a single sourcemap, with the ability to trace mappings into its child nodes - * (which may themselves be SourceMapTrees). - */ -export declare function MapSource(map: TraceMap, sources: Sources[]): MapSource; -/** - * A "leaf" node in the sourcemap tree, representing an original, unmodified source file. Recursive - * segment tracing ends at the `OriginalSource`. - */ -export declare function OriginalSource(source: string, content: string | null, ignore: boolean): OriginalSource; -/** - * traceMappings is only called on the root level SourceMapTree, and begins the process of - * resolving each mapping in terms of the original source files. - */ -export declare function traceMappings(tree: MapSource): GenMapping; -/** - * originalPositionFor is only called on children SourceMapTrees. It recurses down into its own - * child SourceMapTrees, until we find the original source map. - */ -export declare function originalPositionFor(source: Sources, line: number, column: number, name: string): SourceMapSegmentObject | null; -//# sourceMappingURL=source-map-tree.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map-tree.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map-tree.d.mts.map deleted file mode 100644 index e7cbfb95..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map-tree.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"source-map-tree.d.ts","sourceRoot":"","sources":["../src/source-map-tree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAgD,MAAM,yBAAyB,CAAC;AAGnG,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAE1D,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,EAAE,IAAI,CAAC;IACV,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,GAAG,EAAE,QAAQ,CAAC;IACd,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,IAAI,CAAC;IACd,MAAM,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,cAAc,GAAG,SAAS,CAAC;AA8CjD;;;GAGG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,SAAS,CAEtE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,MAAM,EAAE,OAAO,GACd,cAAc,CAEhB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,SAAS,GAAG,UAAU,CAyCzD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,GACX,sBAAsB,GAAG,IAAI,CAmB/B"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map.d.cts b/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map.d.cts deleted file mode 100644 index fdb7eede..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map.d.cts +++ /dev/null @@ -1,19 +0,0 @@ -import type { GenMapping } from '@jridgewell/gen-mapping'; -import type { DecodedSourceMap, EncodedSourceMap, Options } from './types.cts'; -/** - * A SourceMap v3 compatible sourcemap, which only includes fields that were - * provided to it. - */ -export = class SourceMap { - file?: string | null; - mappings: EncodedSourceMap['mappings'] | DecodedSourceMap['mappings']; - sourceRoot?: string; - names: string[]; - sources: (string | null)[]; - sourcesContent?: (string | null)[]; - version: 3; - ignoreList: number[] | undefined; - constructor(map: GenMapping, options: Options); - toString(): string; -} -//# sourceMappingURL=source-map.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map.d.cts.map deleted file mode 100644 index 593daf8e..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"source-map.d.ts","sourceRoot":"","sources":["../src/source-map.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAE3E;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,SAAS;IACpB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,gBAAgB,CAAC,UAAU,CAAC,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IAC3B,cAAc,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC;IACX,UAAU,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;gBAE7B,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO;IAe7C,QAAQ,IAAI,MAAM;CAGnB"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map.d.mts b/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map.d.mts deleted file mode 100644 index 52ebba2f..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map.d.mts +++ /dev/null @@ -1,19 +0,0 @@ -import type { GenMapping } from '@jridgewell/gen-mapping'; -import type { DecodedSourceMap, EncodedSourceMap, Options } from './types.mts'; -/** - * A SourceMap v3 compatible sourcemap, which only includes fields that were - * provided to it. - */ -export default class SourceMap { - file?: string | null; - mappings: EncodedSourceMap['mappings'] | DecodedSourceMap['mappings']; - sourceRoot?: string; - names: string[]; - sources: (string | null)[]; - sourcesContent?: (string | null)[]; - version: 3; - ignoreList: number[] | undefined; - constructor(map: GenMapping, options: Options); - toString(): string; -} -//# sourceMappingURL=source-map.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map.d.mts.map deleted file mode 100644 index 593daf8e..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/source-map.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"source-map.d.ts","sourceRoot":"","sources":["../src/source-map.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAE3E;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,SAAS;IACpB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,gBAAgB,CAAC,UAAU,CAAC,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IAC3B,cAAc,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC;IACX,UAAU,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;gBAE7B,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO;IAe7C,QAAQ,IAAI,MAAM;CAGnB"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/types.d.cts b/build_vtk_bundle/node_modules/@jridgewell/remapping/types/types.d.cts deleted file mode 100644 index eeb320f8..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/types.d.cts +++ /dev/null @@ -1,16 +0,0 @@ -import type { SourceMapInput } from '@jridgewell/trace-mapping'; -export type { SourceMapSegment, DecodedSourceMap, EncodedSourceMap, } from '@jridgewell/trace-mapping'; -export type { SourceMapInput }; -export type LoaderContext = { - readonly importer: string; - readonly depth: number; - source: string; - content: string | null | undefined; - ignore: boolean | undefined; -}; -export type SourceMapLoader = (file: string, ctx: LoaderContext) => SourceMapInput | null | undefined | void; -export type Options = { - excludeContent?: boolean; - decodedMappings?: boolean; -}; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/types.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/remapping/types/types.d.cts.map deleted file mode 100644 index 4f8647e4..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/types.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AAEnC,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,CAC5B,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,aAAa,KACf,cAAc,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC;AAE9C,MAAM,MAAM,OAAO,GAAG;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/types.d.mts b/build_vtk_bundle/node_modules/@jridgewell/remapping/types/types.d.mts deleted file mode 100644 index eeb320f8..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/types.d.mts +++ /dev/null @@ -1,16 +0,0 @@ -import type { SourceMapInput } from '@jridgewell/trace-mapping'; -export type { SourceMapSegment, DecodedSourceMap, EncodedSourceMap, } from '@jridgewell/trace-mapping'; -export type { SourceMapInput }; -export type LoaderContext = { - readonly importer: string; - readonly depth: number; - source: string; - content: string | null | undefined; - ignore: boolean | undefined; -}; -export type SourceMapLoader = (file: string, ctx: LoaderContext) => SourceMapInput | null | undefined | void; -export type Options = { - excludeContent?: boolean; - decodedMappings?: boolean; -}; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/types.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/remapping/types/types.d.mts.map deleted file mode 100644 index 4f8647e4..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/remapping/types/types.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AAEnC,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,CAC5B,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,aAAa,KACf,cAAc,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC;AAE9C,MAAM,MAAM,OAAO,GAAG;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/resolve-uri/LICENSE b/build_vtk_bundle/node_modules/@jridgewell/resolve-uri/LICENSE deleted file mode 100644 index 0a81b2ad..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/resolve-uri/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright 2019 Justin Ridgewell - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/resolve-uri/README.md b/build_vtk_bundle/node_modules/@jridgewell/resolve-uri/README.md deleted file mode 100644 index 2fe70df7..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/resolve-uri/README.md +++ /dev/null @@ -1,40 +0,0 @@ -# @jridgewell/resolve-uri - -> Resolve a URI relative to an optional base URI - -Resolve any combination of absolute URIs, protocol-realtive URIs, absolute paths, or relative paths. - -## Installation - -```sh -npm install @jridgewell/resolve-uri -``` - -## Usage - -```typescript -function resolve(input: string, base?: string): string; -``` - -```js -import resolve from '@jridgewell/resolve-uri'; - -resolve('foo', 'https://example.com'); // => 'https://example.com/foo' -``` - -| Input | Base | Resolution | Explanation | -|-----------------------|-------------------------|--------------------------------|--------------------------------------------------------------| -| `https://example.com` | _any_ | `https://example.com/` | Input is normalized only | -| `//example.com` | `https://base.com/` | `https://example.com/` | Input inherits the base's protocol | -| `//example.com` | _rest_ | `//example.com/` | Input is normalized only | -| `/example` | `https://base.com/` | `https://base.com/example` | Input inherits the base's origin | -| `/example` | `//base.com/` | `//base.com/example` | Input inherits the base's host and remains protocol relative | -| `/example` | _rest_ | `/example` | Input is normalized only | -| `example` | `https://base.com/dir/` | `https://base.com/dir/example` | Input is joined with the base | -| `example` | `https://base.com/file` | `https://base.com/example` | Input is joined with the base without its file | -| `example` | `//base.com/dir/` | `//base.com/dir/example` | Input is joined with the base's last directory | -| `example` | `//base.com/file` | `//base.com/example` | Input is joined with the base without its file | -| `example` | `/base/dir/` | `/base/dir/example` | Input is joined with the base's last directory | -| `example` | `/base/file` | `/base/example` | Input is joined with the base without its file | -| `example` | `base/dir/` | `base/dir/example` | Input is joined with the base's last directory | -| `example` | `base/file` | `base/example` | Input is joined with the base without its file | diff --git a/build_vtk_bundle/node_modules/@jridgewell/resolve-uri/package.json b/build_vtk_bundle/node_modules/@jridgewell/resolve-uri/package.json deleted file mode 100644 index 02a4c518..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/resolve-uri/package.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "name": "@jridgewell/resolve-uri", - "version": "3.1.2", - "description": "Resolve a URI relative to an optional base URI", - "keywords": [ - "resolve", - "uri", - "url", - "path" - ], - "author": "Justin Ridgewell ", - "license": "MIT", - "repository": "https://github.com/jridgewell/resolve-uri", - "main": "dist/resolve-uri.umd.js", - "module": "dist/resolve-uri.mjs", - "types": "dist/types/resolve-uri.d.ts", - "exports": { - ".": [ - { - "types": "./dist/types/resolve-uri.d.ts", - "browser": "./dist/resolve-uri.umd.js", - "require": "./dist/resolve-uri.umd.js", - "import": "./dist/resolve-uri.mjs" - }, - "./dist/resolve-uri.umd.js" - ], - "./package.json": "./package.json" - }, - "files": [ - "dist" - ], - "engines": { - "node": ">=6.0.0" - }, - "scripts": { - "prebuild": "rm -rf dist", - "build": "run-s -n build:*", - "build:rollup": "rollup -c rollup.config.js", - "build:ts": "tsc --project tsconfig.build.json", - "lint": "run-s -n lint:*", - "lint:prettier": "npm run test:lint:prettier -- --write", - "lint:ts": "npm run test:lint:ts -- --fix", - "pretest": "run-s build:rollup", - "test": "run-s -n test:lint test:only", - "test:debug": "mocha --inspect-brk", - "test:lint": "run-s -n test:lint:*", - "test:lint:prettier": "prettier --check '{src,test}/**/*.ts'", - "test:lint:ts": "eslint '{src,test}/**/*.ts'", - "test:only": "mocha", - "test:coverage": "c8 mocha", - "test:watch": "mocha --watch", - "prepublishOnly": "npm run preversion", - "preversion": "run-s test build" - }, - "devDependencies": { - "@jridgewell/resolve-uri-latest": "npm:@jridgewell/resolve-uri@*", - "@rollup/plugin-typescript": "8.3.0", - "@typescript-eslint/eslint-plugin": "5.10.0", - "@typescript-eslint/parser": "5.10.0", - "c8": "7.11.0", - "eslint": "8.7.0", - "eslint-config-prettier": "8.3.0", - "mocha": "9.2.0", - "npm-run-all": "4.1.5", - "prettier": "2.5.1", - "rollup": "2.66.0", - "typescript": "4.5.5" - } -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/source-map/LICENSE b/build_vtk_bundle/node_modules/@jridgewell/source-map/LICENSE deleted file mode 100644 index 1f6ce94c..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/source-map/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright 2024 Justin Ridgewell - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@jridgewell/source-map/README.md b/build_vtk_bundle/node_modules/@jridgewell/source-map/README.md deleted file mode 100644 index f73a326c..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/source-map/README.md +++ /dev/null @@ -1,184 +0,0 @@ -# @jridgewell/source-map - -> Packages `@jridgewell/trace-mapping` and `@jridgewell/gen-mapping` into the familiar source-map API - -This isn't the full API, but it's the core functionality. This wraps -[@jridgewell/trace-mapping][trace-mapping] and [@jridgewell/gen-mapping][gen-mapping] -implementations. - -## Installation - -```sh -npm install @jridgewell/source-map -``` - -## Usage - -TODO - -### SourceMapConsumer - -```typescript -import { SourceMapConsumer } from '@jridgewell/source-map'; -const smc = new SourceMapConsumer({ - version: 3, - names: ['foo'], - sources: ['input.js'], - mappings: 'AAAAA', -}); -``` - -#### SourceMapConsumer.fromSourceMap(mapGenerator[, mapUrl]) - -Transforms a `SourceMapGenerator` into a `SourceMapConsumer`. - -```typescript -const smg = new SourceMapGenerator(); - -const smc = SourceMapConsumer.fromSourceMap(map); -smc.originalPositionFor({ line: 1, column: 0 }); -``` - -#### SourceMapConsumer.prototype.originalPositionFor(generatedPosition) - -```typescript -const smc = new SourceMapConsumer(map); -smc.originalPositionFor({ line: 1, column: 0 }); -``` - -#### SourceMapConsumer.prototype.mappings - -```typescript -const smc = new SourceMapConsumer(map); -smc.mappings; // AAAA -``` - -#### SourceMapConsumer.prototype.allGeneratedPositionsFor(originalPosition) - -```typescript -const smc = new SourceMapConsumer(map); -smc.allGeneratedpositionsfor({ line: 1, column: 5, source: "baz.ts" }); -// [ -// { line: 2, column: 8 } -// ] -``` - -#### SourceMapConsumer.prototype.eachMapping(callback[, context[, order]]) - -> This implementation currently does not support the "order" parameter. -> This function can only iterate in Generated order. - -```typescript -const smc = new SourceMapConsumer(map); -smc.eachMapping((mapping) => { -// { source: 'baz.ts', -// generatedLine: 4, -// generatedColumn: 5, -// originalLine: 4, -// originalColumn: 5, -// name: null } -}); -``` - -#### SourceMapConsumer.prototype.generatedPositionFor(originalPosition) - -```typescript -const smc = new SourceMapConsumer(map); -smc.generatedPositionFor({ line: 1, column: 5, source: "baz.ts" }); -// { line: 2, column: 8 } -``` - -#### SourceMapConsumer.prototype.hasContentsOfAllSources() - -```typescript -const smc = new SourceMapConsumer(map); -smc.hasContentsOfAllSources(); -// true -``` - -#### SourceMapConsumer.prototype.sourceContentFor(source[, returnNullOnMissing]) - -```typescript -const smc = new SourceMapConsumer(map); -smc.generatedPositionFor("baz.ts"); -// "export default ..." -``` - -#### SourceMapConsumer.prototype.version - -Returns the source map's version - -### SourceMapGenerator - -```typescript -import { SourceMapGenerator } from '@jridgewell/source-map'; -const smg = new SourceMapGenerator({ - file: 'output.js', - sourceRoot: 'https://example.com/', -}); -``` - -#### SourceMapGenerator.fromSourceMap(map) - -Transform a `SourceMapConsumer` into a `SourceMapGenerator`. - -```typescript -const smc = new SourceMapConsumer(); -const smg = SourceMapGenerator.fromSourceMap(smc); -``` - -#### SourceMapGenerator.prototype.applySourceMap(sourceMapConsumer[, sourceFile[, sourceMapPath]]) - -> This method is not implemented yet - -#### SourceMapGenerator.prototype.addMapping(mapping) - -```typescript -const smg = new SourceMapGenerator(); -smg.addMapping({ - generated: { line: 1, column: 0 }, - source: 'input.js', - original: { line: 1, column: 0 }, - name: 'foo', -}); -``` - -#### SourceMapGenerator.prototype.setSourceContent(sourceFile, sourceContent) - -```typescript -const smg = new SourceMapGenerator(); -smg.setSourceContent('input.js', 'foobar'); -``` - -#### SourceMapGenerator.prototype.toJSON() - -```typescript -const smg = new SourceMapGenerator(); -smg.toJSON(); // { version: 3, names: [], sources: [], mappings: '' } -``` - -#### SourceMapGenerator.prototype.toString() - -```typescript -const smg = new SourceMapGenerator(); -smg.toJSON(); // "{version:3,names:[],sources:[],mappings:''}" -``` - -#### SourceMapGenerator.prototype.toDecodedMap() - -```typescript -const smg = new SourceMapGenerator(); -smg.toDecodedMap(); // { version: 3, names: [], sources: [], mappings: [] } -``` - -## Known differences with other implementations - -This implementation has some differences with `source-map` and `source-map-js`. - -- `SourceMapConsumer.prototype.eachMapping()` - - Does not support the `order` argument -- `SourceMapGenerator.prototype.applySourceMap()` - - Not implemented - -[trace-mapping]: https://github.com/jridgewell/sourcemaps/tree/main/packages/trace-mapping/ -[gen-mapping]: https://github.com/jridgewell/sourcemaps/tree/main/packages/gen-mapping/ diff --git a/build_vtk_bundle/node_modules/@jridgewell/source-map/package.json b/build_vtk_bundle/node_modules/@jridgewell/source-map/package.json deleted file mode 100644 index 03ca7df0..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/source-map/package.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "name": "@jridgewell/source-map", - "version": "0.3.11", - "description": "Packages @jridgewell/trace-mapping and @jridgewell/gen-mapping into the familiar source-map API", - "keywords": [ - "sourcemap", - "source", - "map" - ], - "main": "dist/source-map.umd.js", - "module": "dist/source-map.mjs", - "types": "types/source-map.d.cts", - "files": [ - "dist", - "src", - "types" - ], - "exports": { - ".": [ - { - "import": { - "types": "./types/source-map.d.mts", - "default": "./dist/source-map.mjs" - }, - "default": { - "types": "./types/source-map.d.cts", - "default": "./dist/source-map.umd.js" - } - }, - "./dist/source-map.umd.js" - ], - "./package.json": "./package.json" - }, - "scripts": { - "benchmark": "run-s build:code benchmark:*", - "benchmark:install": "cd benchmark && npm install", - "benchmark:only": "node --expose-gc benchmark/index.js", - "build": "run-s -n build:code build:types", - "build:code": "node ../../esbuild.mjs source-map.ts", - "build:types": "run-s build:types:force build:types:emit build:types:mts", - "build:types:force": "rimraf tsconfig.build.tsbuildinfo", - "build:types:emit": "tsc --project tsconfig.build.json", - "build:types:mts": "node ../../mts-types.mjs", - "clean": "run-s -n clean:code clean:types", - "clean:code": "tsc --build --clean tsconfig.build.json", - "clean:types": "rimraf dist types", - "test": "run-s -n test:types test:only test:format", - "test:format": "prettier --check '{src,test}/**/*.ts'", - "test:only": "mocha", - "test:types": "eslint '{src,test}/**/*.ts'", - "lint": "run-s -n lint:types lint:format", - "lint:format": "npm run test:format -- --write", - "lint:types": "npm run test:types -- --fix", - "prepublishOnly": "npm run-s -n build test" - }, - "homepage": "https://github.com/jridgewell/sourcemaps/tree/main/packages/source-map", - "repository": { - "type": "git", - "url": "git+https://github.com/jridgewell/sourcemaps.git", - "directory": "packages/source-map" - }, - "author": "Justin Ridgewell ", - "license": "MIT", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25" - } -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/source-map/src/source-map.ts b/build_vtk_bundle/node_modules/@jridgewell/source-map/src/source-map.ts deleted file mode 100644 index 67a18ad0..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/source-map/src/source-map.ts +++ /dev/null @@ -1,159 +0,0 @@ -import { - AnyMap, - originalPositionFor, - generatedPositionFor, - allGeneratedPositionsFor, - eachMapping, - encodedMappings, - sourceContentFor, -} from '@jridgewell/trace-mapping'; -import { - GenMapping, - maybeAddMapping, - toDecodedMap, - toEncodedMap, - setSourceContent, - fromMap, -} from '@jridgewell/gen-mapping'; - -import type { - TraceMap, - SourceMapInput, - SectionedSourceMapInput, - DecodedSourceMap, -} from '@jridgewell/trace-mapping'; -export type { TraceMap, SourceMapInput, SectionedSourceMapInput, DecodedSourceMap }; - -import type { Mapping, EncodedSourceMap } from '@jridgewell/gen-mapping'; -export type { Mapping, EncodedSourceMap }; - -export class SourceMapConsumer { - declare private _map: TraceMap; - declare file: TraceMap['file']; - declare names: TraceMap['names']; - declare sourceRoot: TraceMap['sourceRoot']; - declare sources: TraceMap['sources']; - declare sourcesContent: TraceMap['sourcesContent']; - declare version: TraceMap['version']; - - constructor( - map: ConstructorParameters[0], - mapUrl?: ConstructorParameters[1], - ) { - const trace = (this._map = new AnyMap(map, mapUrl)); - - this.file = trace.file; - this.names = trace.names; - this.sourceRoot = trace.sourceRoot; - this.sources = trace.resolvedSources; - this.sourcesContent = trace.sourcesContent; - this.version = trace.version; - } - - static fromSourceMap(map: SourceMapGenerator, mapUrl?: Parameters[1]) { - // This is more performant if we receive - // a @jridgewell/source-map SourceMapGenerator - if (map.toDecodedMap) { - return new SourceMapConsumer(map.toDecodedMap() as SectionedSourceMapInput, mapUrl); - } - - // This is a fallback for `source-map` and `source-map-js` - return new SourceMapConsumer(map.toJSON() as SectionedSourceMapInput, mapUrl); - } - - get mappings(): string { - return encodedMappings(this._map); - } - - originalPositionFor( - needle: Parameters[1], - ): ReturnType { - return originalPositionFor(this._map, needle); - } - - generatedPositionFor( - originalPosition: Parameters[1], - ): ReturnType { - return generatedPositionFor(this._map, originalPosition); - } - - allGeneratedPositionsFor( - originalPosition: Parameters[1], - ): ReturnType[] { - return allGeneratedPositionsFor(this._map, originalPosition); - } - - hasContentsOfAllSources(): boolean { - if (!this.sourcesContent || this.sourcesContent.length !== this.sources.length) { - return false; - } - - for (const content of this.sourcesContent) { - if (content == null) { - return false; - } - } - - return true; - } - - sourceContentFor(source: string, nullOnMissing?: boolean): string | null { - const sourceContent = sourceContentFor(this._map, source); - if (sourceContent != null) { - return sourceContent; - } - - if (nullOnMissing) { - return null; - } - throw new Error(`"${source}" is not in the SourceMap.`); - } - - eachMapping( - callback: Parameters[1], - context?: any /*, order?: number*/, - ): void { - // order is ignored as @jridgewell/trace-map doesn't implement it - eachMapping(this._map, context ? callback.bind(context) : callback); - } - - destroy() { - // noop. - } -} - -export class SourceMapGenerator { - declare private _map: GenMapping; - - constructor(opts: ConstructorParameters[0] | GenMapping) { - // TODO :: should this be duck-typed ? - this._map = opts instanceof GenMapping ? opts : new GenMapping(opts); - } - - static fromSourceMap(consumer: SourceMapConsumer) { - return new SourceMapGenerator(fromMap(consumer)); - } - - addMapping(mapping: Parameters[1]): ReturnType { - maybeAddMapping(this._map, mapping); - } - - setSourceContent( - source: Parameters[1], - content: Parameters[2], - ): ReturnType { - setSourceContent(this._map, source, content); - } - - toJSON(): ReturnType { - return toEncodedMap(this._map); - } - - toString(): string { - return JSON.stringify(this.toJSON()); - } - - toDecodedMap(): ReturnType { - return toDecodedMap(this._map); - } -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/source-map/types/source-map.d.cts b/build_vtk_bundle/node_modules/@jridgewell/source-map/types/source-map.d.cts deleted file mode 100644 index f8c3d20c..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/source-map/types/source-map.d.cts +++ /dev/null @@ -1,36 +0,0 @@ -import { AnyMap, originalPositionFor, generatedPositionFor, eachMapping } from '@jridgewell/trace-mapping'; -import { GenMapping, maybeAddMapping, toDecodedMap, toEncodedMap, setSourceContent } from '@jridgewell/gen-mapping'; -import type { TraceMap, SourceMapInput, SectionedSourceMapInput, DecodedSourceMap } from '@jridgewell/trace-mapping'; -export type { TraceMap, SourceMapInput, SectionedSourceMapInput, DecodedSourceMap }; -import type { Mapping, EncodedSourceMap } from '@jridgewell/gen-mapping'; -export type { Mapping, EncodedSourceMap }; -export declare class SourceMapConsumer { - private _map; - file: TraceMap['file']; - names: TraceMap['names']; - sourceRoot: TraceMap['sourceRoot']; - sources: TraceMap['sources']; - sourcesContent: TraceMap['sourcesContent']; - version: TraceMap['version']; - constructor(map: ConstructorParameters[0], mapUrl?: ConstructorParameters[1]); - static fromSourceMap(map: SourceMapGenerator, mapUrl?: Parameters[1]): SourceMapConsumer; - get mappings(): string; - originalPositionFor(needle: Parameters[1]): ReturnType; - generatedPositionFor(originalPosition: Parameters[1]): ReturnType; - allGeneratedPositionsFor(originalPosition: Parameters[1]): ReturnType[]; - hasContentsOfAllSources(): boolean; - sourceContentFor(source: string, nullOnMissing?: boolean): string | null; - eachMapping(callback: Parameters[1], context?: any): void; - destroy(): void; -} -export declare class SourceMapGenerator { - private _map; - constructor(opts: ConstructorParameters[0] | GenMapping); - static fromSourceMap(consumer: SourceMapConsumer): SourceMapGenerator; - addMapping(mapping: Parameters[1]): ReturnType; - setSourceContent(source: Parameters[1], content: Parameters[2]): ReturnType; - toJSON(): ReturnType; - toString(): string; - toDecodedMap(): ReturnType; -} -//# sourceMappingURL=source-map.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/source-map/types/source-map.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/source-map/types/source-map.d.cts.map deleted file mode 100644 index 50289f95..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/source-map/types/source-map.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"source-map.d.ts","sourceRoot":"","sources":["../src/source-map.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,mBAAmB,EACnB,oBAAoB,EAEpB,WAAW,EAGZ,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,UAAU,EACV,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAEjB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,EACd,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,2BAA2B,CAAC;AACnC,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,CAAC;AAEpF,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACzE,YAAY,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAE1C,qBAAa,iBAAiB;IAC5B,QAAgB,IAAI,CAAW;IACvB,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACvB,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IACzB,UAAU,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;IACnC,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC7B,cAAc,EAAE,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IAC3C,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;gBAGnC,GAAG,EAAE,qBAAqB,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,EAC5C,MAAM,CAAC,EAAE,qBAAqB,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;IAYlD,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,kBAAkB,EAAE,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;IAWnF,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,mBAAmB,CACjB,MAAM,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,GAChD,UAAU,CAAC,OAAO,mBAAmB,CAAC;IAIzC,oBAAoB,CAClB,gBAAgB,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAC3D,UAAU,CAAC,OAAO,oBAAoB,CAAC;IAI1C,wBAAwB,CACtB,gBAAgB,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAC3D,UAAU,CAAC,OAAO,oBAAoB,CAAC,EAAE;IAI5C,uBAAuB,IAAI,OAAO;IAclC,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI;IAYxE,WAAW,CACT,QAAQ,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,EAC3C,OAAO,CAAC,EAAE,GAAG,GACZ,IAAI;IAKP,OAAO;CAGR;AAED,qBAAa,kBAAkB;IAC7B,QAAgB,IAAI,CAAa;gBAErB,IAAI,EAAE,qBAAqB,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU;IAK1E,MAAM,CAAC,aAAa,CAAC,QAAQ,EAAE,iBAAiB;IAIhD,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC;IAI9F,gBAAgB,CACd,MAAM,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,EAC9C,OAAO,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAC9C,UAAU,CAAC,OAAO,gBAAgB,CAAC;IAItC,MAAM,IAAI,UAAU,CAAC,OAAO,YAAY,CAAC;IAIzC,QAAQ,IAAI,MAAM;IAIlB,YAAY,IAAI,UAAU,CAAC,OAAO,YAAY,CAAC;CAGhD"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/source-map/types/source-map.d.mts b/build_vtk_bundle/node_modules/@jridgewell/source-map/types/source-map.d.mts deleted file mode 100644 index f8c3d20c..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/source-map/types/source-map.d.mts +++ /dev/null @@ -1,36 +0,0 @@ -import { AnyMap, originalPositionFor, generatedPositionFor, eachMapping } from '@jridgewell/trace-mapping'; -import { GenMapping, maybeAddMapping, toDecodedMap, toEncodedMap, setSourceContent } from '@jridgewell/gen-mapping'; -import type { TraceMap, SourceMapInput, SectionedSourceMapInput, DecodedSourceMap } from '@jridgewell/trace-mapping'; -export type { TraceMap, SourceMapInput, SectionedSourceMapInput, DecodedSourceMap }; -import type { Mapping, EncodedSourceMap } from '@jridgewell/gen-mapping'; -export type { Mapping, EncodedSourceMap }; -export declare class SourceMapConsumer { - private _map; - file: TraceMap['file']; - names: TraceMap['names']; - sourceRoot: TraceMap['sourceRoot']; - sources: TraceMap['sources']; - sourcesContent: TraceMap['sourcesContent']; - version: TraceMap['version']; - constructor(map: ConstructorParameters[0], mapUrl?: ConstructorParameters[1]); - static fromSourceMap(map: SourceMapGenerator, mapUrl?: Parameters[1]): SourceMapConsumer; - get mappings(): string; - originalPositionFor(needle: Parameters[1]): ReturnType; - generatedPositionFor(originalPosition: Parameters[1]): ReturnType; - allGeneratedPositionsFor(originalPosition: Parameters[1]): ReturnType[]; - hasContentsOfAllSources(): boolean; - sourceContentFor(source: string, nullOnMissing?: boolean): string | null; - eachMapping(callback: Parameters[1], context?: any): void; - destroy(): void; -} -export declare class SourceMapGenerator { - private _map; - constructor(opts: ConstructorParameters[0] | GenMapping); - static fromSourceMap(consumer: SourceMapConsumer): SourceMapGenerator; - addMapping(mapping: Parameters[1]): ReturnType; - setSourceContent(source: Parameters[1], content: Parameters[2]): ReturnType; - toJSON(): ReturnType; - toString(): string; - toDecodedMap(): ReturnType; -} -//# sourceMappingURL=source-map.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/source-map/types/source-map.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/source-map/types/source-map.d.mts.map deleted file mode 100644 index 50289f95..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/source-map/types/source-map.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"source-map.d.ts","sourceRoot":"","sources":["../src/source-map.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,mBAAmB,EACnB,oBAAoB,EAEpB,WAAW,EAGZ,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,UAAU,EACV,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAEjB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,EACd,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,2BAA2B,CAAC;AACnC,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,CAAC;AAEpF,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACzE,YAAY,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAE1C,qBAAa,iBAAiB;IAC5B,QAAgB,IAAI,CAAW;IACvB,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACvB,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IACzB,UAAU,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;IACnC,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC7B,cAAc,EAAE,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IAC3C,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;gBAGnC,GAAG,EAAE,qBAAqB,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,EAC5C,MAAM,CAAC,EAAE,qBAAqB,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;IAYlD,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,kBAAkB,EAAE,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;IAWnF,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,mBAAmB,CACjB,MAAM,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,GAChD,UAAU,CAAC,OAAO,mBAAmB,CAAC;IAIzC,oBAAoB,CAClB,gBAAgB,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAC3D,UAAU,CAAC,OAAO,oBAAoB,CAAC;IAI1C,wBAAwB,CACtB,gBAAgB,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAC3D,UAAU,CAAC,OAAO,oBAAoB,CAAC,EAAE;IAI5C,uBAAuB,IAAI,OAAO;IAclC,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI;IAYxE,WAAW,CACT,QAAQ,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,EAC3C,OAAO,CAAC,EAAE,GAAG,GACZ,IAAI;IAKP,OAAO;CAGR;AAED,qBAAa,kBAAkB;IAC7B,QAAgB,IAAI,CAAa;gBAErB,IAAI,EAAE,qBAAqB,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU;IAK1E,MAAM,CAAC,aAAa,CAAC,QAAQ,EAAE,iBAAiB;IAIhD,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC;IAI9F,gBAAgB,CACd,MAAM,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,EAC9C,OAAO,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAC9C,UAAU,CAAC,OAAO,gBAAgB,CAAC;IAItC,MAAM,IAAI,UAAU,CAAC,OAAO,YAAY,CAAC;IAIzC,QAAQ,IAAI,MAAM;IAIlB,YAAY,IAAI,UAAU,CAAC,OAAO,YAAY,CAAC;CAGhD"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/LICENSE b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/LICENSE deleted file mode 100644 index 1f6ce94c..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright 2024 Justin Ridgewell - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/README.md b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/README.md deleted file mode 100644 index b3e0708b..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/README.md +++ /dev/null @@ -1,264 +0,0 @@ -# @jridgewell/sourcemap-codec - -Encode/decode the `mappings` property of a [sourcemap](https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit). - - -## Why? - -Sourcemaps are difficult to generate and manipulate, because the `mappings` property – the part that actually links the generated code back to the original source – is encoded using an obscure method called [Variable-length quantity](https://en.wikipedia.org/wiki/Variable-length_quantity). On top of that, each segment in the mapping contains offsets rather than absolute indices, which means that you can't look at a segment in isolation – you have to understand the whole sourcemap. - -This package makes the process slightly easier. - - -## Installation - -```bash -npm install @jridgewell/sourcemap-codec -``` - - -## Usage - -```js -import { encode, decode } from '@jridgewell/sourcemap-codec'; - -var decoded = decode( ';EAEEA,EAAE,EAAC,CAAE;ECQY,UACC' ); - -assert.deepEqual( decoded, [ - // the first line (of the generated code) has no mappings, - // as shown by the starting semi-colon (which separates lines) - [], - - // the second line contains four (comma-separated) segments - [ - // segments are encoded as you'd expect: - // [ generatedCodeColumn, sourceIndex, sourceCodeLine, sourceCodeColumn, nameIndex ] - - // i.e. the first segment begins at column 2, and maps back to the second column - // of the second line (both zero-based) of the 0th source, and uses the 0th - // name in the `map.names` array - [ 2, 0, 2, 2, 0 ], - - // the remaining segments are 4-length rather than 5-length, - // because they don't map a name - [ 4, 0, 2, 4 ], - [ 6, 0, 2, 5 ], - [ 7, 0, 2, 7 ] - ], - - // the final line contains two segments - [ - [ 2, 1, 10, 19 ], - [ 12, 1, 11, 20 ] - ] -]); - -var encoded = encode( decoded ); -assert.equal( encoded, ';EAEEA,EAAE,EAAC,CAAE;ECQY,UACC' ); -``` - -## Benchmarks - -``` -node v20.10.0 - -amp.js.map - 45120 segments - -Decode Memory Usage: -local code 5815135 bytes -@jridgewell/sourcemap-codec 1.4.15 5868160 bytes -sourcemap-codec 5492584 bytes -source-map-0.6.1 13569984 bytes -source-map-0.8.0 6390584 bytes -chrome dev tools 8011136 bytes -Smallest memory usage is sourcemap-codec - -Decode speed: -decode: local code x 492 ops/sec ±1.22% (90 runs sampled) -decode: @jridgewell/sourcemap-codec 1.4.15 x 499 ops/sec ±1.16% (89 runs sampled) -decode: sourcemap-codec x 376 ops/sec ±1.66% (89 runs sampled) -decode: source-map-0.6.1 x 34.99 ops/sec ±0.94% (48 runs sampled) -decode: source-map-0.8.0 x 351 ops/sec ±0.07% (95 runs sampled) -chrome dev tools x 165 ops/sec ±0.91% (86 runs sampled) -Fastest is decode: @jridgewell/sourcemap-codec 1.4.15 - -Encode Memory Usage: -local code 444248 bytes -@jridgewell/sourcemap-codec 1.4.15 623024 bytes -sourcemap-codec 8696280 bytes -source-map-0.6.1 8745176 bytes -source-map-0.8.0 8736624 bytes -Smallest memory usage is local code - -Encode speed: -encode: local code x 796 ops/sec ±0.11% (97 runs sampled) -encode: @jridgewell/sourcemap-codec 1.4.15 x 795 ops/sec ±0.25% (98 runs sampled) -encode: sourcemap-codec x 231 ops/sec ±0.83% (86 runs sampled) -encode: source-map-0.6.1 x 166 ops/sec ±0.57% (86 runs sampled) -encode: source-map-0.8.0 x 203 ops/sec ±0.45% (88 runs sampled) -Fastest is encode: local code,encode: @jridgewell/sourcemap-codec 1.4.15 - - -*** - - -babel.min.js.map - 347793 segments - -Decode Memory Usage: -local code 35424960 bytes -@jridgewell/sourcemap-codec 1.4.15 35424696 bytes -sourcemap-codec 36033464 bytes -source-map-0.6.1 62253704 bytes -source-map-0.8.0 43843920 bytes -chrome dev tools 45111400 bytes -Smallest memory usage is @jridgewell/sourcemap-codec 1.4.15 - -Decode speed: -decode: local code x 38.18 ops/sec ±5.44% (52 runs sampled) -decode: @jridgewell/sourcemap-codec 1.4.15 x 38.36 ops/sec ±5.02% (52 runs sampled) -decode: sourcemap-codec x 34.05 ops/sec ±4.45% (47 runs sampled) -decode: source-map-0.6.1 x 4.31 ops/sec ±2.76% (15 runs sampled) -decode: source-map-0.8.0 x 55.60 ops/sec ±0.13% (73 runs sampled) -chrome dev tools x 16.94 ops/sec ±3.78% (46 runs sampled) -Fastest is decode: source-map-0.8.0 - -Encode Memory Usage: -local code 2606016 bytes -@jridgewell/sourcemap-codec 1.4.15 2626440 bytes -sourcemap-codec 21152576 bytes -source-map-0.6.1 25023928 bytes -source-map-0.8.0 25256448 bytes -Smallest memory usage is local code - -Encode speed: -encode: local code x 127 ops/sec ±0.18% (83 runs sampled) -encode: @jridgewell/sourcemap-codec 1.4.15 x 128 ops/sec ±0.26% (83 runs sampled) -encode: sourcemap-codec x 29.31 ops/sec ±2.55% (53 runs sampled) -encode: source-map-0.6.1 x 18.85 ops/sec ±3.19% (36 runs sampled) -encode: source-map-0.8.0 x 19.34 ops/sec ±1.97% (36 runs sampled) -Fastest is encode: @jridgewell/sourcemap-codec 1.4.15 - - -*** - - -preact.js.map - 1992 segments - -Decode Memory Usage: -local code 261696 bytes -@jridgewell/sourcemap-codec 1.4.15 244296 bytes -sourcemap-codec 302816 bytes -source-map-0.6.1 939176 bytes -source-map-0.8.0 336 bytes -chrome dev tools 587368 bytes -Smallest memory usage is source-map-0.8.0 - -Decode speed: -decode: local code x 17,782 ops/sec ±0.32% (97 runs sampled) -decode: @jridgewell/sourcemap-codec 1.4.15 x 17,863 ops/sec ±0.40% (100 runs sampled) -decode: sourcemap-codec x 12,453 ops/sec ±0.27% (101 runs sampled) -decode: source-map-0.6.1 x 1,288 ops/sec ±1.05% (96 runs sampled) -decode: source-map-0.8.0 x 9,289 ops/sec ±0.27% (101 runs sampled) -chrome dev tools x 4,769 ops/sec ±0.18% (100 runs sampled) -Fastest is decode: @jridgewell/sourcemap-codec 1.4.15 - -Encode Memory Usage: -local code 262944 bytes -@jridgewell/sourcemap-codec 1.4.15 25544 bytes -sourcemap-codec 323048 bytes -source-map-0.6.1 507808 bytes -source-map-0.8.0 507480 bytes -Smallest memory usage is @jridgewell/sourcemap-codec 1.4.15 - -Encode speed: -encode: local code x 24,207 ops/sec ±0.79% (95 runs sampled) -encode: @jridgewell/sourcemap-codec 1.4.15 x 24,288 ops/sec ±0.48% (96 runs sampled) -encode: sourcemap-codec x 6,761 ops/sec ±0.21% (100 runs sampled) -encode: source-map-0.6.1 x 5,374 ops/sec ±0.17% (99 runs sampled) -encode: source-map-0.8.0 x 5,633 ops/sec ±0.32% (99 runs sampled) -Fastest is encode: @jridgewell/sourcemap-codec 1.4.15,encode: local code - - -*** - - -react.js.map - 5726 segments - -Decode Memory Usage: -local code 678816 bytes -@jridgewell/sourcemap-codec 1.4.15 678816 bytes -sourcemap-codec 816400 bytes -source-map-0.6.1 2288864 bytes -source-map-0.8.0 721360 bytes -chrome dev tools 1012512 bytes -Smallest memory usage is local code - -Decode speed: -decode: local code x 6,178 ops/sec ±0.19% (98 runs sampled) -decode: @jridgewell/sourcemap-codec 1.4.15 x 6,261 ops/sec ±0.22% (100 runs sampled) -decode: sourcemap-codec x 4,472 ops/sec ±0.90% (99 runs sampled) -decode: source-map-0.6.1 x 449 ops/sec ±0.31% (95 runs sampled) -decode: source-map-0.8.0 x 3,219 ops/sec ±0.13% (100 runs sampled) -chrome dev tools x 1,743 ops/sec ±0.20% (99 runs sampled) -Fastest is decode: @jridgewell/sourcemap-codec 1.4.15 - -Encode Memory Usage: -local code 140960 bytes -@jridgewell/sourcemap-codec 1.4.15 159808 bytes -sourcemap-codec 969304 bytes -source-map-0.6.1 930520 bytes -source-map-0.8.0 930248 bytes -Smallest memory usage is local code - -Encode speed: -encode: local code x 8,013 ops/sec ±0.19% (100 runs sampled) -encode: @jridgewell/sourcemap-codec 1.4.15 x 7,989 ops/sec ±0.20% (101 runs sampled) -encode: sourcemap-codec x 2,472 ops/sec ±0.21% (99 runs sampled) -encode: source-map-0.6.1 x 2,200 ops/sec ±0.17% (99 runs sampled) -encode: source-map-0.8.0 x 2,220 ops/sec ±0.37% (99 runs sampled) -Fastest is encode: local code - - -*** - - -vscode.map - 2141001 segments - -Decode Memory Usage: -local code 198955264 bytes -@jridgewell/sourcemap-codec 1.4.15 199175352 bytes -sourcemap-codec 199102688 bytes -source-map-0.6.1 386323432 bytes -source-map-0.8.0 244116432 bytes -chrome dev tools 293734280 bytes -Smallest memory usage is local code - -Decode speed: -decode: local code x 3.90 ops/sec ±22.21% (15 runs sampled) -decode: @jridgewell/sourcemap-codec 1.4.15 x 3.95 ops/sec ±23.53% (15 runs sampled) -decode: sourcemap-codec x 3.82 ops/sec ±17.94% (14 runs sampled) -decode: source-map-0.6.1 x 0.61 ops/sec ±7.81% (6 runs sampled) -decode: source-map-0.8.0 x 9.54 ops/sec ±0.28% (28 runs sampled) -chrome dev tools x 2.18 ops/sec ±10.58% (10 runs sampled) -Fastest is decode: source-map-0.8.0 - -Encode Memory Usage: -local code 13509880 bytes -@jridgewell/sourcemap-codec 1.4.15 13537648 bytes -sourcemap-codec 32540104 bytes -source-map-0.6.1 127531040 bytes -source-map-0.8.0 127535312 bytes -Smallest memory usage is local code - -Encode speed: -encode: local code x 20.10 ops/sec ±0.19% (38 runs sampled) -encode: @jridgewell/sourcemap-codec 1.4.15 x 20.26 ops/sec ±0.32% (38 runs sampled) -encode: sourcemap-codec x 5.44 ops/sec ±1.64% (18 runs sampled) -encode: source-map-0.6.1 x 2.30 ops/sec ±4.79% (10 runs sampled) -encode: source-map-0.8.0 x 2.46 ops/sec ±6.53% (10 runs sampled) -Fastest is encode: @jridgewell/sourcemap-codec 1.4.15 -``` - -# License - -MIT diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/package.json b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/package.json deleted file mode 100644 index da551376..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/package.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "name": "@jridgewell/sourcemap-codec", - "version": "1.5.5", - "description": "Encode/decode sourcemap mappings", - "keywords": [ - "sourcemap", - "vlq" - ], - "main": "dist/sourcemap-codec.umd.js", - "module": "dist/sourcemap-codec.mjs", - "types": "types/sourcemap-codec.d.cts", - "files": [ - "dist", - "src", - "types" - ], - "exports": { - ".": [ - { - "import": { - "types": "./types/sourcemap-codec.d.mts", - "default": "./dist/sourcemap-codec.mjs" - }, - "default": { - "types": "./types/sourcemap-codec.d.cts", - "default": "./dist/sourcemap-codec.umd.js" - } - }, - "./dist/sourcemap-codec.umd.js" - ], - "./package.json": "./package.json" - }, - "scripts": { - "benchmark": "run-s build:code benchmark:*", - "benchmark:install": "cd benchmark && npm install", - "benchmark:only": "node --expose-gc benchmark/index.js", - "build": "run-s -n build:code build:types", - "build:code": "node ../../esbuild.mjs sourcemap-codec.ts", - "build:types": "run-s build:types:force build:types:emit build:types:mts", - "build:types:force": "rimraf tsconfig.build.tsbuildinfo", - "build:types:emit": "tsc --project tsconfig.build.json", - "build:types:mts": "node ../../mts-types.mjs", - "clean": "run-s -n clean:code clean:types", - "clean:code": "tsc --build --clean tsconfig.build.json", - "clean:types": "rimraf dist types", - "test": "run-s -n test:types test:only test:format", - "test:format": "prettier --check '{src,test}/**/*.ts'", - "test:only": "mocha", - "test:types": "eslint '{src,test}/**/*.ts'", - "lint": "run-s -n lint:types lint:format", - "lint:format": "npm run test:format -- --write", - "lint:types": "npm run test:types -- --fix", - "prepublishOnly": "npm run-s -n build test" - }, - "homepage": "https://github.com/jridgewell/sourcemaps/tree/main/packages/sourcemap-codec", - "repository": { - "type": "git", - "url": "git+https://github.com/jridgewell/sourcemaps.git", - "directory": "packages/sourcemap-codec" - }, - "author": "Justin Ridgewell ", - "license": "MIT" -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts deleted file mode 100644 index d194c2f0..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts +++ /dev/null @@ -1,345 +0,0 @@ -import { StringReader, StringWriter } from './strings'; -import { comma, decodeInteger, encodeInteger, hasMoreVlq, semicolon } from './vlq'; - -const EMPTY: any[] = []; - -type Line = number; -type Column = number; -type Kind = number; -type Name = number; -type Var = number; -type SourcesIndex = number; -type ScopesIndex = number; - -type Mix = (A & O) | (B & O); - -export type OriginalScope = Mix< - [Line, Column, Line, Column, Kind], - [Line, Column, Line, Column, Kind, Name], - { vars: Var[] } ->; - -export type GeneratedRange = Mix< - [Line, Column, Line, Column], - [Line, Column, Line, Column, SourcesIndex, ScopesIndex], - { - callsite: CallSite | null; - bindings: Binding[]; - isScope: boolean; - } ->; -export type CallSite = [SourcesIndex, Line, Column]; -type Binding = BindingExpressionRange[]; -export type BindingExpressionRange = [Name] | [Name, Line, Column]; - -export function decodeOriginalScopes(input: string): OriginalScope[] { - const { length } = input; - const reader = new StringReader(input); - const scopes: OriginalScope[] = []; - const stack: OriginalScope[] = []; - let line = 0; - - for (; reader.pos < length; reader.pos++) { - line = decodeInteger(reader, line); - const column = decodeInteger(reader, 0); - - if (!hasMoreVlq(reader, length)) { - const last = stack.pop()!; - last[2] = line; - last[3] = column; - continue; - } - - const kind = decodeInteger(reader, 0); - const fields = decodeInteger(reader, 0); - const hasName = fields & 0b0001; - - const scope: OriginalScope = ( - hasName ? [line, column, 0, 0, kind, decodeInteger(reader, 0)] : [line, column, 0, 0, kind] - ) as OriginalScope; - - let vars: Var[] = EMPTY; - if (hasMoreVlq(reader, length)) { - vars = []; - do { - const varsIndex = decodeInteger(reader, 0); - vars.push(varsIndex); - } while (hasMoreVlq(reader, length)); - } - scope.vars = vars; - - scopes.push(scope); - stack.push(scope); - } - - return scopes; -} - -export function encodeOriginalScopes(scopes: OriginalScope[]): string { - const writer = new StringWriter(); - - for (let i = 0; i < scopes.length; ) { - i = _encodeOriginalScopes(scopes, i, writer, [0]); - } - - return writer.flush(); -} - -function _encodeOriginalScopes( - scopes: OriginalScope[], - index: number, - writer: StringWriter, - state: [ - number, // GenColumn - ], -): number { - const scope = scopes[index]; - const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope; - - if (index > 0) writer.write(comma); - - state[0] = encodeInteger(writer, startLine, state[0]); - encodeInteger(writer, startColumn, 0); - encodeInteger(writer, kind, 0); - - const fields = scope.length === 6 ? 0b0001 : 0; - encodeInteger(writer, fields, 0); - if (scope.length === 6) encodeInteger(writer, scope[5], 0); - - for (const v of vars) { - encodeInteger(writer, v, 0); - } - - for (index++; index < scopes.length; ) { - const next = scopes[index]; - const { 0: l, 1: c } = next; - if (l > endLine || (l === endLine && c >= endColumn)) { - break; - } - index = _encodeOriginalScopes(scopes, index, writer, state); - } - - writer.write(comma); - state[0] = encodeInteger(writer, endLine, state[0]); - encodeInteger(writer, endColumn, 0); - - return index; -} - -export function decodeGeneratedRanges(input: string): GeneratedRange[] { - const { length } = input; - const reader = new StringReader(input); - const ranges: GeneratedRange[] = []; - const stack: GeneratedRange[] = []; - - let genLine = 0; - let definitionSourcesIndex = 0; - let definitionScopeIndex = 0; - let callsiteSourcesIndex = 0; - let callsiteLine = 0; - let callsiteColumn = 0; - let bindingLine = 0; - let bindingColumn = 0; - - do { - const semi = reader.indexOf(';'); - let genColumn = 0; - - for (; reader.pos < semi; reader.pos++) { - genColumn = decodeInteger(reader, genColumn); - - if (!hasMoreVlq(reader, semi)) { - const last = stack.pop()!; - last[2] = genLine; - last[3] = genColumn; - continue; - } - - const fields = decodeInteger(reader, 0); - const hasDefinition = fields & 0b0001; - const hasCallsite = fields & 0b0010; - const hasScope = fields & 0b0100; - - let callsite: CallSite | null = null; - let bindings: Binding[] = EMPTY; - let range: GeneratedRange; - if (hasDefinition) { - const defSourcesIndex = decodeInteger(reader, definitionSourcesIndex); - definitionScopeIndex = decodeInteger( - reader, - definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0, - ); - - definitionSourcesIndex = defSourcesIndex; - range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex] as GeneratedRange; - } else { - range = [genLine, genColumn, 0, 0] as GeneratedRange; - } - - range.isScope = !!hasScope; - - if (hasCallsite) { - const prevCsi = callsiteSourcesIndex; - const prevLine = callsiteLine; - callsiteSourcesIndex = decodeInteger(reader, callsiteSourcesIndex); - const sameSource = prevCsi === callsiteSourcesIndex; - callsiteLine = decodeInteger(reader, sameSource ? callsiteLine : 0); - callsiteColumn = decodeInteger( - reader, - sameSource && prevLine === callsiteLine ? callsiteColumn : 0, - ); - - callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn]; - } - range.callsite = callsite; - - if (hasMoreVlq(reader, semi)) { - bindings = []; - do { - bindingLine = genLine; - bindingColumn = genColumn; - const expressionsCount = decodeInteger(reader, 0); - let expressionRanges: BindingExpressionRange[]; - if (expressionsCount < -1) { - expressionRanges = [[decodeInteger(reader, 0)]]; - for (let i = -1; i > expressionsCount; i--) { - const prevBl = bindingLine; - bindingLine = decodeInteger(reader, bindingLine); - bindingColumn = decodeInteger(reader, bindingLine === prevBl ? bindingColumn : 0); - const expression = decodeInteger(reader, 0); - expressionRanges.push([expression, bindingLine, bindingColumn]); - } - } else { - expressionRanges = [[expressionsCount]]; - } - bindings.push(expressionRanges); - } while (hasMoreVlq(reader, semi)); - } - range.bindings = bindings; - - ranges.push(range); - stack.push(range); - } - - genLine++; - reader.pos = semi + 1; - } while (reader.pos < length); - - return ranges; -} - -export function encodeGeneratedRanges(ranges: GeneratedRange[]): string { - if (ranges.length === 0) return ''; - - const writer = new StringWriter(); - - for (let i = 0; i < ranges.length; ) { - i = _encodeGeneratedRanges(ranges, i, writer, [0, 0, 0, 0, 0, 0, 0]); - } - - return writer.flush(); -} - -function _encodeGeneratedRanges( - ranges: GeneratedRange[], - index: number, - writer: StringWriter, - state: [ - number, // GenLine - number, // GenColumn - number, // DefSourcesIndex - number, // DefScopesIndex - number, // CallSourcesIndex - number, // CallLine - number, // CallColumn - ], -): number { - const range = ranges[index]; - const { - 0: startLine, - 1: startColumn, - 2: endLine, - 3: endColumn, - isScope, - callsite, - bindings, - } = range; - - if (state[0] < startLine) { - catchupLine(writer, state[0], startLine); - state[0] = startLine; - state[1] = 0; - } else if (index > 0) { - writer.write(comma); - } - - state[1] = encodeInteger(writer, range[1], state[1]); - - const fields = - (range.length === 6 ? 0b0001 : 0) | (callsite ? 0b0010 : 0) | (isScope ? 0b0100 : 0); - encodeInteger(writer, fields, 0); - - if (range.length === 6) { - const { 4: sourcesIndex, 5: scopesIndex } = range; - if (sourcesIndex !== state[2]) { - state[3] = 0; - } - state[2] = encodeInteger(writer, sourcesIndex, state[2]); - state[3] = encodeInteger(writer, scopesIndex, state[3]); - } - - if (callsite) { - const { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite!; - if (sourcesIndex !== state[4]) { - state[5] = 0; - state[6] = 0; - } else if (callLine !== state[5]) { - state[6] = 0; - } - state[4] = encodeInteger(writer, sourcesIndex, state[4]); - state[5] = encodeInteger(writer, callLine, state[5]); - state[6] = encodeInteger(writer, callColumn, state[6]); - } - - if (bindings) { - for (const binding of bindings) { - if (binding.length > 1) encodeInteger(writer, -binding.length, 0); - const expression = binding[0][0]; - encodeInteger(writer, expression, 0); - let bindingStartLine = startLine; - let bindingStartColumn = startColumn; - for (let i = 1; i < binding.length; i++) { - const expRange = binding[i]; - bindingStartLine = encodeInteger(writer, expRange[1]!, bindingStartLine); - bindingStartColumn = encodeInteger(writer, expRange[2]!, bindingStartColumn); - encodeInteger(writer, expRange[0]!, 0); - } - } - } - - for (index++; index < ranges.length; ) { - const next = ranges[index]; - const { 0: l, 1: c } = next; - if (l > endLine || (l === endLine && c >= endColumn)) { - break; - } - index = _encodeGeneratedRanges(ranges, index, writer, state); - } - - if (state[0] < endLine) { - catchupLine(writer, state[0], endLine); - state[0] = endLine; - state[1] = 0; - } else { - writer.write(comma); - } - state[1] = encodeInteger(writer, endColumn, state[1]); - - return index; -} - -function catchupLine(writer: StringWriter, lastLine: number, line: number) { - do { - writer.write(semicolon); - } while (++lastLine < line); -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts deleted file mode 100644 index a81f894d..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +++ /dev/null @@ -1,111 +0,0 @@ -import { comma, decodeInteger, encodeInteger, hasMoreVlq, semicolon } from './vlq'; -import { StringWriter, StringReader } from './strings'; - -export { - decodeOriginalScopes, - encodeOriginalScopes, - decodeGeneratedRanges, - encodeGeneratedRanges, -} from './scopes'; -export type { OriginalScope, GeneratedRange, CallSite, BindingExpressionRange } from './scopes'; - -export type SourceMapSegment = - | [number] - | [number, number, number, number] - | [number, number, number, number, number]; -export type SourceMapLine = SourceMapSegment[]; -export type SourceMapMappings = SourceMapLine[]; - -export function decode(mappings: string): SourceMapMappings { - const { length } = mappings; - const reader = new StringReader(mappings); - const decoded: SourceMapMappings = []; - let genColumn = 0; - let sourcesIndex = 0; - let sourceLine = 0; - let sourceColumn = 0; - let namesIndex = 0; - - do { - const semi = reader.indexOf(';'); - const line: SourceMapLine = []; - let sorted = true; - let lastCol = 0; - genColumn = 0; - - while (reader.pos < semi) { - let seg: SourceMapSegment; - - genColumn = decodeInteger(reader, genColumn); - if (genColumn < lastCol) sorted = false; - lastCol = genColumn; - - if (hasMoreVlq(reader, semi)) { - sourcesIndex = decodeInteger(reader, sourcesIndex); - sourceLine = decodeInteger(reader, sourceLine); - sourceColumn = decodeInteger(reader, sourceColumn); - - if (hasMoreVlq(reader, semi)) { - namesIndex = decodeInteger(reader, namesIndex); - seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex]; - } else { - seg = [genColumn, sourcesIndex, sourceLine, sourceColumn]; - } - } else { - seg = [genColumn]; - } - - line.push(seg); - reader.pos++; - } - - if (!sorted) sort(line); - decoded.push(line); - reader.pos = semi + 1; - } while (reader.pos <= length); - - return decoded; -} - -function sort(line: SourceMapSegment[]) { - line.sort(sortComparator); -} - -function sortComparator(a: SourceMapSegment, b: SourceMapSegment): number { - return a[0] - b[0]; -} - -export function encode(decoded: SourceMapMappings): string; -export function encode(decoded: Readonly): string; -export function encode(decoded: Readonly): string { - const writer = new StringWriter(); - let sourcesIndex = 0; - let sourceLine = 0; - let sourceColumn = 0; - let namesIndex = 0; - - for (let i = 0; i < decoded.length; i++) { - const line = decoded[i]; - if (i > 0) writer.write(semicolon); - if (line.length === 0) continue; - - let genColumn = 0; - - for (let j = 0; j < line.length; j++) { - const segment = line[j]; - if (j > 0) writer.write(comma); - - genColumn = encodeInteger(writer, segment[0], genColumn); - - if (segment.length === 1) continue; - sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex); - sourceLine = encodeInteger(writer, segment[2], sourceLine); - sourceColumn = encodeInteger(writer, segment[3], sourceColumn); - - if (segment.length === 4) continue; - namesIndex = encodeInteger(writer, segment[4], namesIndex); - } - } - - return writer.flush(); -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/src/strings.ts b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/src/strings.ts deleted file mode 100644 index d1619650..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/src/strings.ts +++ /dev/null @@ -1,65 +0,0 @@ -const bufLength = 1024 * 16; - -// Provide a fallback for older environments. -const td = - typeof TextDecoder !== 'undefined' - ? /* #__PURE__ */ new TextDecoder() - : typeof Buffer !== 'undefined' - ? { - decode(buf: Uint8Array): string { - const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength); - return out.toString(); - }, - } - : { - decode(buf: Uint8Array): string { - let out = ''; - for (let i = 0; i < buf.length; i++) { - out += String.fromCharCode(buf[i]); - } - return out; - }, - }; - -export class StringWriter { - pos = 0; - private out = ''; - private buffer = new Uint8Array(bufLength); - - write(v: number): void { - const { buffer } = this; - buffer[this.pos++] = v; - if (this.pos === bufLength) { - this.out += td.decode(buffer); - this.pos = 0; - } - } - - flush(): string { - const { buffer, out, pos } = this; - return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out; - } -} - -export class StringReader { - pos = 0; - declare private buffer: string; - - constructor(buffer: string) { - this.buffer = buffer; - } - - next(): number { - return this.buffer.charCodeAt(this.pos++); - } - - peek(): number { - return this.buffer.charCodeAt(this.pos); - } - - indexOf(char: string): number { - const { buffer, pos } = this; - const idx = buffer.indexOf(char, pos); - return idx === -1 ? buffer.length : idx; - } -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts deleted file mode 100644 index a42c6815..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts +++ /dev/null @@ -1,55 +0,0 @@ -import type { StringReader, StringWriter } from './strings'; - -export const comma = ','.charCodeAt(0); -export const semicolon = ';'.charCodeAt(0); - -const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; -const intToChar = new Uint8Array(64); // 64 possible chars. -const charToInt = new Uint8Array(128); // z is 122 in ASCII - -for (let i = 0; i < chars.length; i++) { - const c = chars.charCodeAt(i); - intToChar[i] = c; - charToInt[c] = i; -} - -export function decodeInteger(reader: StringReader, relative: number): number { - let value = 0; - let shift = 0; - let integer = 0; - - do { - const c = reader.next(); - integer = charToInt[c]; - value |= (integer & 31) << shift; - shift += 5; - } while (integer & 32); - - const shouldNegate = value & 1; - value >>>= 1; - - if (shouldNegate) { - value = -0x80000000 | -value; - } - - return relative + value; -} - -export function encodeInteger(builder: StringWriter, num: number, relative: number): number { - let delta = num - relative; - - delta = delta < 0 ? (-delta << 1) | 1 : delta << 1; - do { - let clamped = delta & 0b011111; - delta >>>= 5; - if (delta > 0) clamped |= 0b100000; - builder.write(intToChar[clamped]); - } while (delta > 0); - - return num; -} - -export function hasMoreVlq(reader: StringReader, max: number) { - if (reader.pos >= max) return false; - return reader.peek() !== comma; -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts deleted file mode 100644 index c583c756..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts +++ /dev/null @@ -1,50 +0,0 @@ -type Line = number; -type Column = number; -type Kind = number; -type Name = number; -type Var = number; -type SourcesIndex = number; -type ScopesIndex = number; -type Mix = (A & O) | (B & O); -export type OriginalScope = Mix<[ - Line, - Column, - Line, - Column, - Kind -], [ - Line, - Column, - Line, - Column, - Kind, - Name -], { - vars: Var[]; -}>; -export type GeneratedRange = Mix<[ - Line, - Column, - Line, - Column -], [ - Line, - Column, - Line, - Column, - SourcesIndex, - ScopesIndex -], { - callsite: CallSite | null; - bindings: Binding[]; - isScope: boolean; -}>; -export type CallSite = [SourcesIndex, Line, Column]; -type Binding = BindingExpressionRange[]; -export type BindingExpressionRange = [Name] | [Name, Line, Column]; -export declare function decodeOriginalScopes(input: string): OriginalScope[]; -export declare function encodeOriginalScopes(scopes: OriginalScope[]): string; -export declare function decodeGeneratedRanges(input: string): GeneratedRange[]; -export declare function encodeGeneratedRanges(ranges: GeneratedRange[]): string; -export {}; -//# sourceMappingURL=scopes.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map deleted file mode 100644 index 630e6477..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAKA,KAAK,IAAI,GAAG,MAAM,CAAC;AACnB,KAAK,MAAM,GAAG,MAAM,CAAC;AACrB,KAAK,IAAI,GAAG,MAAM,CAAC;AACnB,KAAK,IAAI,GAAG,MAAM,CAAC;AACnB,KAAK,GAAG,GAAG,MAAM,CAAC;AAClB,KAAK,YAAY,GAAG,MAAM,CAAC;AAC3B,KAAK,WAAW,GAAG,MAAM,CAAC;AAE1B,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AAEtC,MAAM,MAAM,aAAa,GAAG,GAAG,CAC7B;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;IAAE,IAAI;CAAC,EAClC;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,IAAI;CAAC,EACxC;IAAE,IAAI,EAAE,GAAG,EAAE,CAAA;CAAE,CAChB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,GAAG,CAC9B;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;CAAC,EAC5B;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;IAAE,YAAY;IAAE,WAAW;CAAC,EACvD;IACE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CAClB,CACF,CAAC;AACF,MAAM,MAAM,QAAQ,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AACpD,KAAK,OAAO,GAAG,sBAAsB,EAAE,CAAC;AACxC,MAAM,MAAM,sBAAsB,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAEnE,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,EAAE,CAyCnE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAQpE;AA2CD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,EAAE,CAoGrE;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,CAUtE"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts deleted file mode 100644 index c583c756..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +++ /dev/null @@ -1,50 +0,0 @@ -type Line = number; -type Column = number; -type Kind = number; -type Name = number; -type Var = number; -type SourcesIndex = number; -type ScopesIndex = number; -type Mix = (A & O) | (B & O); -export type OriginalScope = Mix<[ - Line, - Column, - Line, - Column, - Kind -], [ - Line, - Column, - Line, - Column, - Kind, - Name -], { - vars: Var[]; -}>; -export type GeneratedRange = Mix<[ - Line, - Column, - Line, - Column -], [ - Line, - Column, - Line, - Column, - SourcesIndex, - ScopesIndex -], { - callsite: CallSite | null; - bindings: Binding[]; - isScope: boolean; -}>; -export type CallSite = [SourcesIndex, Line, Column]; -type Binding = BindingExpressionRange[]; -export type BindingExpressionRange = [Name] | [Name, Line, Column]; -export declare function decodeOriginalScopes(input: string): OriginalScope[]; -export declare function encodeOriginalScopes(scopes: OriginalScope[]): string; -export declare function decodeGeneratedRanges(input: string): GeneratedRange[]; -export declare function encodeGeneratedRanges(ranges: GeneratedRange[]): string; -export {}; -//# sourceMappingURL=scopes.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map deleted file mode 100644 index 630e6477..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAKA,KAAK,IAAI,GAAG,MAAM,CAAC;AACnB,KAAK,MAAM,GAAG,MAAM,CAAC;AACrB,KAAK,IAAI,GAAG,MAAM,CAAC;AACnB,KAAK,IAAI,GAAG,MAAM,CAAC;AACnB,KAAK,GAAG,GAAG,MAAM,CAAC;AAClB,KAAK,YAAY,GAAG,MAAM,CAAC;AAC3B,KAAK,WAAW,GAAG,MAAM,CAAC;AAE1B,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AAEtC,MAAM,MAAM,aAAa,GAAG,GAAG,CAC7B;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;IAAE,IAAI;CAAC,EAClC;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,IAAI;CAAC,EACxC;IAAE,IAAI,EAAE,GAAG,EAAE,CAAA;CAAE,CAChB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,GAAG,CAC9B;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;CAAC,EAC5B;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;IAAE,YAAY;IAAE,WAAW;CAAC,EACvD;IACE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CAClB,CACF,CAAC;AACF,MAAM,MAAM,QAAQ,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AACpD,KAAK,OAAO,GAAG,sBAAsB,EAAE,CAAC;AACxC,MAAM,MAAM,sBAAsB,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAEnE,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,EAAE,CAyCnE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAQpE;AA2CD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,EAAE,CAoGrE;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,CAUtE"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts deleted file mode 100644 index 5f35e22f..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts +++ /dev/null @@ -1,9 +0,0 @@ -export { decodeOriginalScopes, encodeOriginalScopes, decodeGeneratedRanges, encodeGeneratedRanges, } from './scopes.cts'; -export type { OriginalScope, GeneratedRange, CallSite, BindingExpressionRange } from './scopes.cts'; -export type SourceMapSegment = [number] | [number, number, number, number] | [number, number, number, number, number]; -export type SourceMapLine = SourceMapSegment[]; -export type SourceMapMappings = SourceMapLine[]; -export declare function decode(mappings: string): SourceMapMappings; -export declare function encode(decoded: SourceMapMappings): string; -export declare function encode(decoded: Readonly): string; -//# sourceMappingURL=sourcemap-codec.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map deleted file mode 100644 index 7123d520..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sourcemap-codec.d.ts","sourceRoot":"","sources":["../src/sourcemap-codec.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEhG,MAAM,MAAM,gBAAgB,GACxB,CAAC,MAAM,CAAC,GACR,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAChC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAC7C,MAAM,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;AAC/C,MAAM,MAAM,iBAAiB,GAAG,aAAa,EAAE,CAAC;AAEhD,wBAAgB,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAiD1D;AAUD,wBAAgB,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAAC;AAC3D,wBAAgB,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts deleted file mode 100644 index 199fb9f5..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +++ /dev/null @@ -1,9 +0,0 @@ -export { decodeOriginalScopes, encodeOriginalScopes, decodeGeneratedRanges, encodeGeneratedRanges, } from './scopes.mts'; -export type { OriginalScope, GeneratedRange, CallSite, BindingExpressionRange } from './scopes.mts'; -export type SourceMapSegment = [number] | [number, number, number, number] | [number, number, number, number, number]; -export type SourceMapLine = SourceMapSegment[]; -export type SourceMapMappings = SourceMapLine[]; -export declare function decode(mappings: string): SourceMapMappings; -export declare function encode(decoded: SourceMapMappings): string; -export declare function encode(decoded: Readonly): string; -//# sourceMappingURL=sourcemap-codec.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map deleted file mode 100644 index 7123d520..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sourcemap-codec.d.ts","sourceRoot":"","sources":["../src/sourcemap-codec.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEhG,MAAM,MAAM,gBAAgB,GACxB,CAAC,MAAM,CAAC,GACR,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAChC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAC7C,MAAM,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;AAC/C,MAAM,MAAM,iBAAiB,GAAG,aAAa,EAAE,CAAC;AAEhD,wBAAgB,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAiD1D;AAUD,wBAAgB,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAAC;AAC3D,wBAAgB,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts deleted file mode 100644 index 62faceb3..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts +++ /dev/null @@ -1,16 +0,0 @@ -export declare class StringWriter { - pos: number; - private out; - private buffer; - write(v: number): void; - flush(): string; -} -export declare class StringReader { - pos: number; - private buffer; - constructor(buffer: string); - next(): number; - peek(): number; - indexOf(char: string): number; -} -//# sourceMappingURL=strings.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map deleted file mode 100644 index d3602da4..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../src/strings.ts"],"names":[],"mappings":"AAuBA,qBAAa,YAAY;IACvB,GAAG,SAAK;IACR,OAAO,CAAC,GAAG,CAAM;IACjB,OAAO,CAAC,MAAM,CAA6B;IAE3C,KAAK,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI;IAStB,KAAK,IAAI,MAAM;CAIhB;AAED,qBAAa,YAAY;IACvB,GAAG,SAAK;IACR,QAAgB,MAAM,CAAS;gBAEnB,MAAM,EAAE,MAAM;IAI1B,IAAI,IAAI,MAAM;IAId,IAAI,IAAI,MAAM;IAId,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAK9B"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts deleted file mode 100644 index 62faceb3..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +++ /dev/null @@ -1,16 +0,0 @@ -export declare class StringWriter { - pos: number; - private out; - private buffer; - write(v: number): void; - flush(): string; -} -export declare class StringReader { - pos: number; - private buffer; - constructor(buffer: string); - next(): number; - peek(): number; - indexOf(char: string): number; -} -//# sourceMappingURL=strings.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map deleted file mode 100644 index d3602da4..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../src/strings.ts"],"names":[],"mappings":"AAuBA,qBAAa,YAAY;IACvB,GAAG,SAAK;IACR,OAAO,CAAC,GAAG,CAAM;IACjB,OAAO,CAAC,MAAM,CAA6B;IAE3C,KAAK,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI;IAStB,KAAK,IAAI,MAAM;CAIhB;AAED,qBAAa,YAAY;IACvB,GAAG,SAAK;IACR,QAAgB,MAAM,CAAS;gBAEnB,MAAM,EAAE,MAAM;IAI1B,IAAI,IAAI,MAAM;IAId,IAAI,IAAI,MAAM;IAId,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAK9B"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts deleted file mode 100644 index dbd6602d..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts +++ /dev/null @@ -1,7 +0,0 @@ -import type { StringReader, StringWriter } from './strings.cts'; -export declare const comma: number; -export declare const semicolon: number; -export declare function decodeInteger(reader: StringReader, relative: number): number; -export declare function encodeInteger(builder: StringWriter, num: number, relative: number): number; -export declare function hasMoreVlq(reader: StringReader, max: number): boolean; -//# sourceMappingURL=vlq.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map deleted file mode 100644 index 6fdc3569..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vlq.d.ts","sourceRoot":"","sources":["../src/vlq.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE5D,eAAO,MAAM,KAAK,QAAoB,CAAC;AACvC,eAAO,MAAM,SAAS,QAAoB,CAAC;AAY3C,wBAAgB,aAAa,CAAC,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAoB5E;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAY1F;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,WAG3D"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts deleted file mode 100644 index 2c739bc9..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +++ /dev/null @@ -1,7 +0,0 @@ -import type { StringReader, StringWriter } from './strings.mts'; -export declare const comma: number; -export declare const semicolon: number; -export declare function decodeInteger(reader: StringReader, relative: number): number; -export declare function encodeInteger(builder: StringWriter, num: number, relative: number): number; -export declare function hasMoreVlq(reader: StringReader, max: number): boolean; -//# sourceMappingURL=vlq.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map deleted file mode 100644 index 6fdc3569..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"vlq.d.ts","sourceRoot":"","sources":["../src/vlq.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE5D,eAAO,MAAM,KAAK,QAAoB,CAAC;AACvC,eAAO,MAAM,SAAS,QAAoB,CAAC;AAY3C,wBAAgB,aAAa,CAAC,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAoB5E;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAY1F;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,WAG3D"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/LICENSE b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/LICENSE deleted file mode 100644 index 1f6ce94c..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright 2024 Justin Ridgewell - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/README.md b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/README.md deleted file mode 100644 index 9fc0ed09..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/README.md +++ /dev/null @@ -1,348 +0,0 @@ -# @jridgewell/trace-mapping - -> Trace the original position through a source map - -`trace-mapping` allows you to take the line and column of an output file and trace it to the -original location in the source file through a source map. - -You may already be familiar with the [`source-map`][source-map] package's `SourceMapConsumer`. This -provides the same `originalPositionFor` and `generatedPositionFor` API, without requiring WASM. - -## Installation - -```sh -npm install @jridgewell/trace-mapping -``` - -## Usage - -```typescript -import { - TraceMap, - originalPositionFor, - generatedPositionFor, - sourceContentFor, - isIgnored, -} from '@jridgewell/trace-mapping'; - -const tracer = new TraceMap({ - version: 3, - sources: ['input.js'], - sourcesContent: ['content of input.js'], - names: ['foo'], - mappings: 'KAyCIA', - ignoreList: [], -}); - -// Lines start at line 1, columns at column 0. -const traced = originalPositionFor(tracer, { line: 1, column: 5 }); -assert.deepEqual(traced, { - source: 'input.js', - line: 42, - column: 4, - name: 'foo', -}); - -const content = sourceContentFor(tracer, traced.source); -assert.strictEqual(content, 'content for input.js'); - -const generated = generatedPositionFor(tracer, { - source: 'input.js', - line: 42, - column: 4, -}); -assert.deepEqual(generated, { - line: 1, - column: 5, -}); - -const ignored = isIgnored(tracer, 'input.js'); -assert.equal(ignored, false); -``` - -We also provide a lower level API to get the actual segment that matches our line and column. Unlike -`originalPositionFor`, `traceSegment` uses a 0-base for `line`: - -```typescript -import { traceSegment } from '@jridgewell/trace-mapping'; - -// line is 0-base. -const traced = traceSegment(tracer, /* line */ 0, /* column */ 5); - -// Segments are [outputColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex] -// Again, line is 0-base and so is sourceLine -assert.deepEqual(traced, [5, 0, 41, 4, 0]); -``` - -### SectionedSourceMaps - -The sourcemap spec defines a special `sections` field that's designed to handle concatenation of -output code with associated sourcemaps. This type of sourcemap is rarely used (no major build tool -produces it), but if you are hand coding a concatenation you may need it. We provide an `AnyMap` -helper that can receive either a regular sourcemap or a `SectionedSourceMap` and returns a -`TraceMap` instance: - -```typescript -import { AnyMap } from '@jridgewell/trace-mapping'; -const fooOutput = 'foo'; -const barOutput = 'bar'; -const output = [fooOutput, barOutput].join('\n'); - -const sectioned = new AnyMap({ - version: 3, - sections: [ - { - // 0-base line and column - offset: { line: 0, column: 0 }, - // fooOutput's sourcemap - map: { - version: 3, - sources: ['foo.js'], - names: ['foo'], - mappings: 'AAAAA', - }, - }, - { - // barOutput's sourcemap will not affect the first line, only the second - offset: { line: 1, column: 0 }, - map: { - version: 3, - sources: ['bar.js'], - names: ['bar'], - mappings: 'AAAAA', - }, - }, - ], -}); - -const traced = originalPositionFor(sectioned, { - line: 2, - column: 0, -}); - -assert.deepEqual(traced, { - source: 'bar.js', - line: 1, - column: 0, - name: 'bar', -}); -``` - -## Benchmarks - -``` -node v20.10.0 - -amp.js.map - 45120 segments - -Memory Usage: -trace-mapping decoded 414164 bytes -trace-mapping encoded 6274352 bytes -source-map-js 10968904 bytes -source-map-0.6.1 17587160 bytes -source-map-0.8.0 8812155 bytes -Chrome dev tools 8672912 bytes -Smallest memory usage is trace-mapping decoded - -Init speed: -trace-mapping: decoded JSON input x 205 ops/sec ±0.19% (88 runs sampled) -trace-mapping: encoded JSON input x 405 ops/sec ±1.47% (88 runs sampled) -trace-mapping: decoded Object input x 4,645 ops/sec ±0.15% (98 runs sampled) -trace-mapping: encoded Object input x 458 ops/sec ±1.63% (91 runs sampled) -source-map-js: encoded Object input x 75.48 ops/sec ±1.64% (67 runs sampled) -source-map-0.6.1: encoded Object input x 39.37 ops/sec ±1.44% (53 runs sampled) -Chrome dev tools: encoded Object input x 150 ops/sec ±1.76% (79 runs sampled) -Fastest is trace-mapping: decoded Object input - -Trace speed (random): -trace-mapping: decoded originalPositionFor x 44,946 ops/sec ±0.16% (99 runs sampled) -trace-mapping: encoded originalPositionFor x 37,995 ops/sec ±1.81% (89 runs sampled) -source-map-js: encoded originalPositionFor x 9,230 ops/sec ±1.36% (93 runs sampled) -source-map-0.6.1: encoded originalPositionFor x 8,057 ops/sec ±0.84% (96 runs sampled) -source-map-0.8.0: encoded originalPositionFor x 28,198 ops/sec ±1.12% (91 runs sampled) -Chrome dev tools: encoded originalPositionFor x 46,276 ops/sec ±1.35% (95 runs sampled) -Fastest is Chrome dev tools: encoded originalPositionFor - -Trace speed (ascending): -trace-mapping: decoded originalPositionFor x 204,406 ops/sec ±0.19% (97 runs sampled) -trace-mapping: encoded originalPositionFor x 196,695 ops/sec ±0.24% (99 runs sampled) -source-map-js: encoded originalPositionFor x 11,948 ops/sec ±0.94% (99 runs sampled) -source-map-0.6.1: encoded originalPositionFor x 10,730 ops/sec ±0.36% (100 runs sampled) -source-map-0.8.0: encoded originalPositionFor x 51,427 ops/sec ±0.21% (98 runs sampled) -Chrome dev tools: encoded originalPositionFor x 162,615 ops/sec ±0.18% (98 runs sampled) -Fastest is trace-mapping: decoded originalPositionFor - - -*** - - -babel.min.js.map - 347793 segments - -Memory Usage: -trace-mapping decoded 18504 bytes -trace-mapping encoded 35428008 bytes -source-map-js 51676808 bytes -source-map-0.6.1 63367136 bytes -source-map-0.8.0 43158400 bytes -Chrome dev tools 50721552 bytes -Smallest memory usage is trace-mapping decoded - -Init speed: -trace-mapping: decoded JSON input x 17.82 ops/sec ±6.35% (35 runs sampled) -trace-mapping: encoded JSON input x 31.57 ops/sec ±7.50% (43 runs sampled) -trace-mapping: decoded Object input x 867 ops/sec ±0.74% (94 runs sampled) -trace-mapping: encoded Object input x 33.83 ops/sec ±7.66% (46 runs sampled) -source-map-js: encoded Object input x 6.58 ops/sec ±3.31% (20 runs sampled) -source-map-0.6.1: encoded Object input x 4.23 ops/sec ±3.43% (15 runs sampled) -Chrome dev tools: encoded Object input x 22.14 ops/sec ±3.79% (41 runs sampled) -Fastest is trace-mapping: decoded Object input - -Trace speed (random): -trace-mapping: decoded originalPositionFor x 78,234 ops/sec ±1.48% (29 runs sampled) -trace-mapping: encoded originalPositionFor x 60,761 ops/sec ±1.35% (21 runs sampled) -source-map-js: encoded originalPositionFor x 51,448 ops/sec ±2.17% (89 runs sampled) -source-map-0.6.1: encoded originalPositionFor x 47,221 ops/sec ±1.99% (15 runs sampled) -source-map-0.8.0: encoded originalPositionFor x 84,002 ops/sec ±1.45% (27 runs sampled) -Chrome dev tools: encoded originalPositionFor x 106,457 ops/sec ±1.38% (37 runs sampled) -Fastest is Chrome dev tools: encoded originalPositionFor - -Trace speed (ascending): -trace-mapping: decoded originalPositionFor x 930,943 ops/sec ±0.25% (99 runs sampled) -trace-mapping: encoded originalPositionFor x 843,545 ops/sec ±0.34% (97 runs sampled) -source-map-js: encoded originalPositionFor x 114,510 ops/sec ±1.37% (36 runs sampled) -source-map-0.6.1: encoded originalPositionFor x 87,412 ops/sec ±0.72% (92 runs sampled) -source-map-0.8.0: encoded originalPositionFor x 197,709 ops/sec ±0.89% (59 runs sampled) -Chrome dev tools: encoded originalPositionFor x 688,983 ops/sec ±0.33% (98 runs sampled) -Fastest is trace-mapping: decoded originalPositionFor - - -*** - - -preact.js.map - 1992 segments - -Memory Usage: -trace-mapping decoded 33136 bytes -trace-mapping encoded 254240 bytes -source-map-js 837488 bytes -source-map-0.6.1 961928 bytes -source-map-0.8.0 54384 bytes -Chrome dev tools 709680 bytes -Smallest memory usage is trace-mapping decoded - -Init speed: -trace-mapping: decoded JSON input x 3,709 ops/sec ±0.13% (99 runs sampled) -trace-mapping: encoded JSON input x 6,447 ops/sec ±0.22% (101 runs sampled) -trace-mapping: decoded Object input x 83,062 ops/sec ±0.23% (100 runs sampled) -trace-mapping: encoded Object input x 14,980 ops/sec ±0.28% (100 runs sampled) -source-map-js: encoded Object input x 2,544 ops/sec ±0.16% (99 runs sampled) -source-map-0.6.1: encoded Object input x 1,221 ops/sec ±0.37% (97 runs sampled) -Chrome dev tools: encoded Object input x 4,241 ops/sec ±0.39% (93 runs sampled) -Fastest is trace-mapping: decoded Object input - -Trace speed (random): -trace-mapping: decoded originalPositionFor x 91,028 ops/sec ±0.14% (94 runs sampled) -trace-mapping: encoded originalPositionFor x 84,348 ops/sec ±0.26% (98 runs sampled) -source-map-js: encoded originalPositionFor x 26,998 ops/sec ±0.23% (98 runs sampled) -source-map-0.6.1: encoded originalPositionFor x 18,049 ops/sec ±0.26% (100 runs sampled) -source-map-0.8.0: encoded originalPositionFor x 41,916 ops/sec ±0.28% (98 runs sampled) -Chrome dev tools: encoded originalPositionFor x 88,616 ops/sec ±0.14% (98 runs sampled) -Fastest is trace-mapping: decoded originalPositionFor - -Trace speed (ascending): -trace-mapping: decoded originalPositionFor x 319,960 ops/sec ±0.16% (100 runs sampled) -trace-mapping: encoded originalPositionFor x 302,153 ops/sec ±0.18% (100 runs sampled) -source-map-js: encoded originalPositionFor x 35,574 ops/sec ±0.19% (100 runs sampled) -source-map-0.6.1: encoded originalPositionFor x 19,943 ops/sec ±0.12% (101 runs sampled) -source-map-0.8.0: encoded originalPositionFor x 54,648 ops/sec ±0.20% (99 runs sampled) -Chrome dev tools: encoded originalPositionFor x 278,319 ops/sec ±0.17% (102 runs sampled) -Fastest is trace-mapping: decoded originalPositionFor - - -*** - - -react.js.map - 5726 segments - -Memory Usage: -trace-mapping decoded 10872 bytes -trace-mapping encoded 681512 bytes -source-map-js 2563944 bytes -source-map-0.6.1 2150864 bytes -source-map-0.8.0 88680 bytes -Chrome dev tools 1149576 bytes -Smallest memory usage is trace-mapping decoded - -Init speed: -trace-mapping: decoded JSON input x 1,887 ops/sec ±0.28% (99 runs sampled) -trace-mapping: encoded JSON input x 4,749 ops/sec ±0.48% (97 runs sampled) -trace-mapping: decoded Object input x 74,236 ops/sec ±0.11% (99 runs sampled) -trace-mapping: encoded Object input x 5,752 ops/sec ±0.38% (100 runs sampled) -source-map-js: encoded Object input x 806 ops/sec ±0.19% (97 runs sampled) -source-map-0.6.1: encoded Object input x 418 ops/sec ±0.33% (94 runs sampled) -Chrome dev tools: encoded Object input x 1,524 ops/sec ±0.57% (92 runs sampled) -Fastest is trace-mapping: decoded Object input - -Trace speed (random): -trace-mapping: decoded originalPositionFor x 620,201 ops/sec ±0.33% (96 runs sampled) -trace-mapping: encoded originalPositionFor x 579,548 ops/sec ±0.35% (97 runs sampled) -source-map-js: encoded originalPositionFor x 230,983 ops/sec ±0.62% (54 runs sampled) -source-map-0.6.1: encoded originalPositionFor x 158,145 ops/sec ±0.80% (46 runs sampled) -source-map-0.8.0: encoded originalPositionFor x 343,801 ops/sec ±0.55% (96 runs sampled) -Chrome dev tools: encoded originalPositionFor x 659,649 ops/sec ±0.49% (98 runs sampled) -Fastest is Chrome dev tools: encoded originalPositionFor - -Trace speed (ascending): -trace-mapping: decoded originalPositionFor x 2,368,079 ops/sec ±0.32% (98 runs sampled) -trace-mapping: encoded originalPositionFor x 2,134,039 ops/sec ±2.72% (87 runs sampled) -source-map-js: encoded originalPositionFor x 290,120 ops/sec ±2.49% (82 runs sampled) -source-map-0.6.1: encoded originalPositionFor x 187,613 ops/sec ±0.86% (49 runs sampled) -source-map-0.8.0: encoded originalPositionFor x 479,569 ops/sec ±0.65% (96 runs sampled) -Chrome dev tools: encoded originalPositionFor x 2,048,414 ops/sec ±0.24% (98 runs sampled) -Fastest is trace-mapping: decoded originalPositionFor - - -*** - - -vscode.map - 2141001 segments - -Memory Usage: -trace-mapping decoded 5206584 bytes -trace-mapping encoded 208370336 bytes -source-map-js 278493008 bytes -source-map-0.6.1 391564048 bytes -source-map-0.8.0 257508787 bytes -Chrome dev tools 291053000 bytes -Smallest memory usage is trace-mapping decoded - -Init speed: -trace-mapping: decoded JSON input x 1.63 ops/sec ±33.88% (9 runs sampled) -trace-mapping: encoded JSON input x 3.29 ops/sec ±36.13% (13 runs sampled) -trace-mapping: decoded Object input x 103 ops/sec ±0.93% (77 runs sampled) -trace-mapping: encoded Object input x 5.42 ops/sec ±28.54% (19 runs sampled) -source-map-js: encoded Object input x 1.07 ops/sec ±13.84% (7 runs sampled) -source-map-0.6.1: encoded Object input x 0.60 ops/sec ±2.43% (6 runs sampled) -Chrome dev tools: encoded Object input x 2.61 ops/sec ±22.00% (11 runs sampled) -Fastest is trace-mapping: decoded Object input - -Trace speed (random): -trace-mapping: decoded originalPositionFor x 257,019 ops/sec ±0.97% (93 runs sampled) -trace-mapping: encoded originalPositionFor x 179,163 ops/sec ±0.83% (92 runs sampled) -source-map-js: encoded originalPositionFor x 73,337 ops/sec ±1.35% (87 runs sampled) -source-map-0.6.1: encoded originalPositionFor x 38,797 ops/sec ±1.66% (88 runs sampled) -source-map-0.8.0: encoded originalPositionFor x 107,758 ops/sec ±1.94% (45 runs sampled) -Chrome dev tools: encoded originalPositionFor x 188,550 ops/sec ±1.85% (79 runs sampled) -Fastest is trace-mapping: decoded originalPositionFor - -Trace speed (ascending): -trace-mapping: decoded originalPositionFor x 447,621 ops/sec ±3.64% (94 runs sampled) -trace-mapping: encoded originalPositionFor x 323,698 ops/sec ±5.20% (88 runs sampled) -source-map-js: encoded originalPositionFor x 78,387 ops/sec ±1.69% (89 runs sampled) -source-map-0.6.1: encoded originalPositionFor x 41,016 ops/sec ±3.01% (25 runs sampled) -source-map-0.8.0: encoded originalPositionFor x 124,204 ops/sec ±0.90% (92 runs sampled) -Chrome dev tools: encoded originalPositionFor x 230,087 ops/sec ±2.61% (93 runs sampled) -Fastest is trace-mapping: decoded originalPositionFor -``` - -[source-map]: https://www.npmjs.com/package/source-map diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/package.json b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/package.json deleted file mode 100644 index 9d3a1c08..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/package.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "name": "@jridgewell/trace-mapping", - "version": "0.3.31", - "description": "Trace the original position through a source map", - "keywords": [ - "source", - "map" - ], - "main": "dist/trace-mapping.umd.js", - "module": "dist/trace-mapping.mjs", - "types": "types/trace-mapping.d.cts", - "files": [ - "dist", - "src", - "types" - ], - "exports": { - ".": [ - { - "import": { - "types": "./types/trace-mapping.d.mts", - "default": "./dist/trace-mapping.mjs" - }, - "default": { - "types": "./types/trace-mapping.d.cts", - "default": "./dist/trace-mapping.umd.js" - } - }, - "./dist/trace-mapping.umd.js" - ], - "./package.json": "./package.json" - }, - "scripts": { - "benchmark": "run-s build:code benchmark:*", - "benchmark:install": "cd benchmark && npm install", - "benchmark:only": "node --expose-gc benchmark/index.mjs", - "build": "run-s -n build:code build:types", - "build:code": "node ../../esbuild.mjs trace-mapping.ts", - "build:types": "run-s build:types:force build:types:emit build:types:mts", - "build:types:force": "rimraf tsconfig.build.tsbuildinfo", - "build:types:emit": "tsc --project tsconfig.build.json", - "build:types:mts": "node ../../mts-types.mjs", - "clean": "run-s -n clean:code clean:types", - "clean:code": "tsc --build --clean tsconfig.build.json", - "clean:types": "rimraf dist types", - "test": "run-s -n test:types test:only test:format", - "test:format": "prettier --check '{src,test}/**/*.ts'", - "test:only": "mocha", - "test:types": "eslint '{src,test}/**/*.ts'", - "lint": "run-s -n lint:types lint:format", - "lint:format": "npm run test:format -- --write", - "lint:types": "npm run test:types -- --fix", - "prepublishOnly": "npm run-s -n build test" - }, - "homepage": "https://github.com/jridgewell/sourcemaps/tree/main/packages/trace-mapping", - "repository": { - "type": "git", - "url": "git+https://github.com/jridgewell/sourcemaps.git", - "directory": "packages/trace-mapping" - }, - "author": "Justin Ridgewell ", - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/binary-search.ts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/binary-search.ts deleted file mode 100644 index c1144ad1..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/binary-search.ts +++ /dev/null @@ -1,115 +0,0 @@ -import type { SourceMapSegment, ReverseSegment } from './sourcemap-segment'; -import { COLUMN } from './sourcemap-segment'; - -export type MemoState = { - lastKey: number; - lastNeedle: number; - lastIndex: number; -}; - -export let found = false; - -/** - * A binary search implementation that returns the index if a match is found. - * If no match is found, then the left-index (the index associated with the item that comes just - * before the desired index) is returned. To maintain proper sort order, a splice would happen at - * the next index: - * - * ```js - * const array = [1, 3]; - * const needle = 2; - * const index = binarySearch(array, needle, (item, needle) => item - needle); - * - * assert.equal(index, 0); - * array.splice(index + 1, 0, needle); - * assert.deepEqual(array, [1, 2, 3]); - * ``` - */ -export function binarySearch( - haystack: SourceMapSegment[] | ReverseSegment[], - needle: number, - low: number, - high: number, -): number { - while (low <= high) { - const mid = low + ((high - low) >> 1); - const cmp = haystack[mid][COLUMN] - needle; - - if (cmp === 0) { - found = true; - return mid; - } - - if (cmp < 0) { - low = mid + 1; - } else { - high = mid - 1; - } - } - - found = false; - return low - 1; -} - -export function upperBound( - haystack: SourceMapSegment[] | ReverseSegment[], - needle: number, - index: number, -): number { - for (let i = index + 1; i < haystack.length; index = i++) { - if (haystack[i][COLUMN] !== needle) break; - } - return index; -} - -export function lowerBound( - haystack: SourceMapSegment[] | ReverseSegment[], - needle: number, - index: number, -): number { - for (let i = index - 1; i >= 0; index = i--) { - if (haystack[i][COLUMN] !== needle) break; - } - return index; -} - -export function memoizedState(): MemoState { - return { - lastKey: -1, - lastNeedle: -1, - lastIndex: -1, - }; -} - -/** - * This overly complicated beast is just to record the last tested line/column and the resulting - * index, allowing us to skip a few tests if mappings are monotonically increasing. - */ -export function memoizedBinarySearch( - haystack: SourceMapSegment[] | ReverseSegment[], - needle: number, - state: MemoState, - key: number, -): number { - const { lastKey, lastNeedle, lastIndex } = state; - - let low = 0; - let high = haystack.length - 1; - if (key === lastKey) { - if (needle === lastNeedle) { - found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle; - return lastIndex; - } - - if (needle >= lastNeedle) { - // lastIndex may be -1 if the previous needle was not found. - low = lastIndex === -1 ? 0 : lastIndex; - } else { - high = lastIndex; - } - } - state.lastKey = key; - state.lastNeedle = needle; - - return (state.lastIndex = binarySearch(haystack, needle, low, high)); -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/by-source.ts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/by-source.ts deleted file mode 100644 index 1da6af05..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/by-source.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { COLUMN, SOURCES_INDEX, SOURCE_LINE, SOURCE_COLUMN } from './sourcemap-segment'; -import { sortComparator } from './sort'; - -import type { ReverseSegment, SourceMapSegment } from './sourcemap-segment'; - -export type Source = ReverseSegment[][]; - -// Rebuilds the original source files, with mappings that are ordered by source line/column instead -// of generated line/column. -export default function buildBySources( - decoded: readonly SourceMapSegment[][], - memos: unknown[], -): Source[] { - const sources: Source[] = memos.map(() => []); - - for (let i = 0; i < decoded.length; i++) { - const line = decoded[i]; - for (let j = 0; j < line.length; j++) { - const seg = line[j]; - if (seg.length === 1) continue; - - const sourceIndex = seg[SOURCES_INDEX]; - const sourceLine = seg[SOURCE_LINE]; - const sourceColumn = seg[SOURCE_COLUMN]; - - const source = sources[sourceIndex]; - const segs = (source[sourceLine] ||= []); - segs.push([sourceColumn, i, seg[COLUMN]]); - } - } - - for (let i = 0; i < sources.length; i++) { - const source = sources[i]; - for (let j = 0; j < source.length; j++) { - const line = source[j]; - if (line) line.sort(sortComparator); - } - } - - return sources; -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/flatten-map.ts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/flatten-map.ts deleted file mode 100644 index 61ac40ca..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/flatten-map.ts +++ /dev/null @@ -1,192 +0,0 @@ -import { TraceMap, presortedDecodedMap, decodedMappings } from './trace-mapping'; -import { - COLUMN, - SOURCES_INDEX, - SOURCE_LINE, - SOURCE_COLUMN, - NAMES_INDEX, -} from './sourcemap-segment'; -import { parse } from './types'; - -import type { - DecodedSourceMap, - DecodedSourceMapXInput, - EncodedSourceMapXInput, - SectionedSourceMapXInput, - SectionedSourceMapInput, - SectionXInput, - Ro, -} from './types'; -import type { SourceMapSegment } from './sourcemap-segment'; - -type FlattenMap = { - new (map: Ro, mapUrl?: string | null): TraceMap; - (map: Ro, mapUrl?: string | null): TraceMap; -}; - -export const FlattenMap: FlattenMap = function (map, mapUrl) { - const parsed = parse(map as SectionedSourceMapInput); - - if (!('sections' in parsed)) { - return new TraceMap(parsed as DecodedSourceMapXInput | EncodedSourceMapXInput, mapUrl); - } - - const mappings: SourceMapSegment[][] = []; - const sources: string[] = []; - const sourcesContent: (string | null)[] = []; - const names: string[] = []; - const ignoreList: number[] = []; - - recurse( - parsed, - mapUrl, - mappings, - sources, - sourcesContent, - names, - ignoreList, - 0, - 0, - Infinity, - Infinity, - ); - - const joined: DecodedSourceMap = { - version: 3, - file: parsed.file, - names, - sources, - sourcesContent, - mappings, - ignoreList, - }; - - return presortedDecodedMap(joined); -} as FlattenMap; - -function recurse( - input: SectionedSourceMapXInput, - mapUrl: string | null | undefined, - mappings: SourceMapSegment[][], - sources: string[], - sourcesContent: (string | null)[], - names: string[], - ignoreList: number[], - lineOffset: number, - columnOffset: number, - stopLine: number, - stopColumn: number, -) { - const { sections } = input; - for (let i = 0; i < sections.length; i++) { - const { map, offset } = sections[i]; - - let sl = stopLine; - let sc = stopColumn; - if (i + 1 < sections.length) { - const nextOffset = sections[i + 1].offset; - sl = Math.min(stopLine, lineOffset + nextOffset.line); - - if (sl === stopLine) { - sc = Math.min(stopColumn, columnOffset + nextOffset.column); - } else if (sl < stopLine) { - sc = columnOffset + nextOffset.column; - } - } - - addSection( - map, - mapUrl, - mappings, - sources, - sourcesContent, - names, - ignoreList, - lineOffset + offset.line, - columnOffset + offset.column, - sl, - sc, - ); - } -} - -function addSection( - input: SectionXInput['map'], - mapUrl: string | null | undefined, - mappings: SourceMapSegment[][], - sources: string[], - sourcesContent: (string | null)[], - names: string[], - ignoreList: number[], - lineOffset: number, - columnOffset: number, - stopLine: number, - stopColumn: number, -) { - const parsed = parse(input); - if ('sections' in parsed) return recurse(...(arguments as unknown as Parameters)); - - const map = new TraceMap(parsed, mapUrl); - const sourcesOffset = sources.length; - const namesOffset = names.length; - const decoded = decodedMappings(map); - const { resolvedSources, sourcesContent: contents, ignoreList: ignores } = map; - - append(sources, resolvedSources); - append(names, map.names); - - if (contents) append(sourcesContent, contents); - else for (let i = 0; i < resolvedSources.length; i++) sourcesContent.push(null); - - if (ignores) for (let i = 0; i < ignores.length; i++) ignoreList.push(ignores[i] + sourcesOffset); - - for (let i = 0; i < decoded.length; i++) { - const lineI = lineOffset + i; - - // We can only add so many lines before we step into the range that the next section's map - // controls. When we get to the last line, then we'll start checking the segments to see if - // they've crossed into the column range. But it may not have any columns that overstep, so we - // still need to check that we don't overstep lines, too. - if (lineI > stopLine) return; - - // The out line may already exist in mappings (if we're continuing the line started by a - // previous section). Or, we may have jumped ahead several lines to start this section. - const out = getLine(mappings, lineI); - // On the 0th loop, the section's column offset shifts us forward. On all other lines (since the - // map can be multiple lines), it doesn't. - const cOffset = i === 0 ? columnOffset : 0; - - const line = decoded[i]; - for (let j = 0; j < line.length; j++) { - const seg = line[j]; - const column = cOffset + seg[COLUMN]; - - // If this segment steps into the column range that the next section's map controls, we need - // to stop early. - if (lineI === stopLine && column >= stopColumn) return; - - if (seg.length === 1) { - out.push([column]); - continue; - } - - const sourcesIndex = sourcesOffset + seg[SOURCES_INDEX]; - const sourceLine = seg[SOURCE_LINE]; - const sourceColumn = seg[SOURCE_COLUMN]; - out.push( - seg.length === 4 - ? [column, sourcesIndex, sourceLine, sourceColumn] - : [column, sourcesIndex, sourceLine, sourceColumn, namesOffset + seg[NAMES_INDEX]], - ); - } - } -} - -function append(arr: T[], other: T[]) { - for (let i = 0; i < other.length; i++) arr.push(other[i]); -} - -function getLine(arr: T[][], index: number): T[] { - for (let i = arr.length; i <= index; i++) arr[i] = []; - return arr[index]; -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/resolve.ts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/resolve.ts deleted file mode 100644 index 30bfa3b2..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/resolve.ts +++ /dev/null @@ -1,16 +0,0 @@ -import resolveUri from '@jridgewell/resolve-uri'; -import stripFilename from './strip-filename'; - -type Resolve = (source: string | null) => string; -export default function resolver( - mapUrl: string | null | undefined, - sourceRoot: string | undefined, -): Resolve { - const from = stripFilename(mapUrl); - // The sourceRoot is always treated as a directory, if it's not empty. - // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327 - // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401 - const prefix = sourceRoot ? sourceRoot + '/' : ''; - - return (source) => resolveUri(prefix + (source || ''), from); -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/sort.ts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/sort.ts deleted file mode 100644 index 5d016cb7..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/sort.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { COLUMN } from './sourcemap-segment'; - -import type { ReverseSegment, SourceMapSegment } from './sourcemap-segment'; - -export default function maybeSort( - mappings: SourceMapSegment[][], - owned: boolean, -): SourceMapSegment[][] { - const unsortedIndex = nextUnsortedSegmentLine(mappings, 0); - if (unsortedIndex === mappings.length) return mappings; - - // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If - // not, we do not want to modify the consumer's input array. - if (!owned) mappings = mappings.slice(); - - for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) { - mappings[i] = sortSegments(mappings[i], owned); - } - return mappings; -} - -function nextUnsortedSegmentLine(mappings: SourceMapSegment[][], start: number): number { - for (let i = start; i < mappings.length; i++) { - if (!isSorted(mappings[i])) return i; - } - return mappings.length; -} - -function isSorted(line: SourceMapSegment[]): boolean { - for (let j = 1; j < line.length; j++) { - if (line[j][COLUMN] < line[j - 1][COLUMN]) { - return false; - } - } - return true; -} - -function sortSegments(line: SourceMapSegment[], owned: boolean): SourceMapSegment[] { - if (!owned) line = line.slice(); - return line.sort(sortComparator); -} - -export function sortComparator(a: T, b: T): number { - return a[COLUMN] - b[COLUMN]; -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/sourcemap-segment.ts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/sourcemap-segment.ts deleted file mode 100644 index 94f1b6ab..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/sourcemap-segment.ts +++ /dev/null @@ -1,23 +0,0 @@ -type GeneratedColumn = number; -type SourcesIndex = number; -type SourceLine = number; -type SourceColumn = number; -type NamesIndex = number; - -type GeneratedLine = number; - -export type SourceMapSegment = - | [GeneratedColumn] - | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] - | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex]; - -export type ReverseSegment = [SourceColumn, GeneratedLine, GeneratedColumn]; - -export const COLUMN = 0; -export const SOURCES_INDEX = 1; -export const SOURCE_LINE = 2; -export const SOURCE_COLUMN = 3; -export const NAMES_INDEX = 4; - -export const REV_GENERATED_LINE = 1; -export const REV_GENERATED_COLUMN = 2; diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/strip-filename.ts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/strip-filename.ts deleted file mode 100644 index 2c889800..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/strip-filename.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Removes everything after the last "/", but leaves the slash. - */ -export default function stripFilename(path: string | undefined | null): string { - if (!path) return ''; - const index = path.lastIndexOf('/'); - return path.slice(0, index + 1); -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/trace-mapping.ts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/trace-mapping.ts deleted file mode 100644 index 0b793d5b..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/trace-mapping.ts +++ /dev/null @@ -1,502 +0,0 @@ -import { encode, decode } from '@jridgewell/sourcemap-codec'; - -import resolver from './resolve'; -import maybeSort from './sort'; -import buildBySources from './by-source'; -import { - memoizedState, - memoizedBinarySearch, - upperBound, - lowerBound, - found as bsFound, -} from './binary-search'; -import { - COLUMN, - SOURCES_INDEX, - SOURCE_LINE, - SOURCE_COLUMN, - NAMES_INDEX, - REV_GENERATED_LINE, - REV_GENERATED_COLUMN, -} from './sourcemap-segment'; -import { parse } from './types'; - -import type { SourceMapSegment, ReverseSegment } from './sourcemap-segment'; -import type { - SourceMapV3, - DecodedSourceMap, - EncodedSourceMap, - InvalidOriginalMapping, - OriginalMapping, - InvalidGeneratedMapping, - GeneratedMapping, - SourceMapInput, - Needle, - SourceNeedle, - SourceMap, - EachMapping, - Bias, - XInput, - SectionedSourceMap, - Ro, -} from './types'; -import type { Source } from './by-source'; -import type { MemoState } from './binary-search'; - -export type { SourceMapSegment } from './sourcemap-segment'; -export type { - SourceMap, - DecodedSourceMap, - EncodedSourceMap, - Section, - SectionedSourceMap, - SourceMapV3, - Bias, - EachMapping, - GeneratedMapping, - InvalidGeneratedMapping, - InvalidOriginalMapping, - Needle, - OriginalMapping, - OriginalMapping as Mapping, - SectionedSourceMapInput, - SourceMapInput, - SourceNeedle, - XInput, - EncodedSourceMapXInput, - DecodedSourceMapXInput, - SectionedSourceMapXInput, - SectionXInput, -} from './types'; - -interface PublicMap { - _encoded: TraceMap['_encoded']; - _decoded: TraceMap['_decoded']; - _decodedMemo: TraceMap['_decodedMemo']; - _bySources: TraceMap['_bySources']; - _bySourceMemos: TraceMap['_bySourceMemos']; -} - -const LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)'; -const COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)'; - -export const LEAST_UPPER_BOUND = -1; -export const GREATEST_LOWER_BOUND = 1; - -export { FlattenMap, FlattenMap as AnyMap } from './flatten-map'; - -export class TraceMap implements SourceMap { - declare version: SourceMapV3['version']; - declare file: SourceMapV3['file']; - declare names: SourceMapV3['names']; - declare sourceRoot: SourceMapV3['sourceRoot']; - declare sources: SourceMapV3['sources']; - declare sourcesContent: SourceMapV3['sourcesContent']; - declare ignoreList: SourceMapV3['ignoreList']; - - declare resolvedSources: string[]; - declare private _encoded: string | undefined; - - declare private _decoded: SourceMapSegment[][] | undefined; - declare private _decodedMemo: MemoState; - - declare private _bySources: Source[] | undefined; - declare private _bySourceMemos: MemoState[] | undefined; - - constructor(map: Ro, mapUrl?: string | null) { - const isString = typeof map === 'string'; - if (!isString && (map as unknown as { _decodedMemo: any })._decodedMemo) return map as TraceMap; - - const parsed = parse(map as Exclude); - - const { version, file, names, sourceRoot, sources, sourcesContent } = parsed; - this.version = version; - this.file = file; - this.names = names || []; - this.sourceRoot = sourceRoot; - this.sources = sources; - this.sourcesContent = sourcesContent; - this.ignoreList = parsed.ignoreList || (parsed as XInput).x_google_ignoreList || undefined; - - const resolve = resolver(mapUrl, sourceRoot); - this.resolvedSources = sources.map(resolve); - - const { mappings } = parsed; - if (typeof mappings === 'string') { - this._encoded = mappings; - this._decoded = undefined; - } else if (Array.isArray(mappings)) { - this._encoded = undefined; - this._decoded = maybeSort(mappings, isString); - } else if ((parsed as unknown as SectionedSourceMap).sections) { - throw new Error(`TraceMap passed sectioned source map, please use FlattenMap export instead`); - } else { - throw new Error(`invalid source map: ${JSON.stringify(parsed)}`); - } - - this._decodedMemo = memoizedState(); - this._bySources = undefined; - this._bySourceMemos = undefined; - } -} - -/** - * Typescript doesn't allow friend access to private fields, so this just casts the map into a type - * with public access modifiers. - */ -function cast(map: unknown): PublicMap { - return map as any; -} - -/** - * Returns the encoded (VLQ string) form of the SourceMap's mappings field. - */ -export function encodedMappings(map: TraceMap): EncodedSourceMap['mappings'] { - return (cast(map)._encoded ??= encode(cast(map)._decoded!)); -} - -/** - * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field. - */ -export function decodedMappings(map: TraceMap): Readonly { - return (cast(map)._decoded ||= decode(cast(map)._encoded!)); -} - -/** - * A low-level API to find the segment associated with a generated line/column (think, from a - * stack trace). Line and column here are 0-based, unlike `originalPositionFor`. - */ -export function traceSegment( - map: TraceMap, - line: number, - column: number, -): Readonly | null { - const decoded = decodedMappings(map); - - // It's common for parent source maps to have pointers to lines that have no - // mapping (like a "//# sourceMappingURL=") at the end of the child file. - if (line >= decoded.length) return null; - - const segments = decoded[line]; - const index = traceSegmentInternal( - segments, - cast(map)._decodedMemo, - line, - column, - GREATEST_LOWER_BOUND, - ); - - return index === -1 ? null : segments[index]; -} - -/** - * A higher-level API to find the source/line/column associated with a generated line/column - * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in - * `source-map` library. - */ -export function originalPositionFor( - map: TraceMap, - needle: Needle, -): OriginalMapping | InvalidOriginalMapping { - let { line, column, bias } = needle; - line--; - if (line < 0) throw new Error(LINE_GTR_ZERO); - if (column < 0) throw new Error(COL_GTR_EQ_ZERO); - - const decoded = decodedMappings(map); - - // It's common for parent source maps to have pointers to lines that have no - // mapping (like a "//# sourceMappingURL=") at the end of the child file. - if (line >= decoded.length) return OMapping(null, null, null, null); - - const segments = decoded[line]; - const index = traceSegmentInternal( - segments, - cast(map)._decodedMemo, - line, - column, - bias || GREATEST_LOWER_BOUND, - ); - - if (index === -1) return OMapping(null, null, null, null); - - const segment = segments[index]; - if (segment.length === 1) return OMapping(null, null, null, null); - - const { names, resolvedSources } = map; - return OMapping( - resolvedSources[segment[SOURCES_INDEX]], - segment[SOURCE_LINE] + 1, - segment[SOURCE_COLUMN], - segment.length === 5 ? names[segment[NAMES_INDEX]] : null, - ); -} - -/** - * Finds the generated line/column position of the provided source/line/column source position. - */ -export function generatedPositionFor( - map: TraceMap, - needle: SourceNeedle, -): GeneratedMapping | InvalidGeneratedMapping { - const { source, line, column, bias } = needle; - return generatedPosition(map, source, line, column, bias || GREATEST_LOWER_BOUND, false); -} - -/** - * Finds all generated line/column positions of the provided source/line/column source position. - */ -export function allGeneratedPositionsFor(map: TraceMap, needle: SourceNeedle): GeneratedMapping[] { - const { source, line, column, bias } = needle; - // SourceMapConsumer uses LEAST_UPPER_BOUND for some reason, so we follow suit. - return generatedPosition(map, source, line, column, bias || LEAST_UPPER_BOUND, true); -} - -/** - * Iterates each mapping in generated position order. - */ -export function eachMapping(map: TraceMap, cb: (mapping: EachMapping) => void): void { - const decoded = decodedMappings(map); - const { names, resolvedSources } = map; - - for (let i = 0; i < decoded.length; i++) { - const line = decoded[i]; - for (let j = 0; j < line.length; j++) { - const seg = line[j]; - - const generatedLine = i + 1; - const generatedColumn = seg[0]; - let source = null; - let originalLine = null; - let originalColumn = null; - let name = null; - if (seg.length !== 1) { - source = resolvedSources[seg[1]]; - originalLine = seg[2] + 1; - originalColumn = seg[3]; - } - if (seg.length === 5) name = names[seg[4]]; - - cb({ - generatedLine, - generatedColumn, - source, - originalLine, - originalColumn, - name, - } as EachMapping); - } - } -} - -function sourceIndex(map: TraceMap, source: string): number { - const { sources, resolvedSources } = map; - let index = sources.indexOf(source); - if (index === -1) index = resolvedSources.indexOf(source); - return index; -} - -/** - * Retrieves the source content for a particular source, if its found. Returns null if not. - */ -export function sourceContentFor(map: TraceMap, source: string): string | null { - const { sourcesContent } = map; - if (sourcesContent == null) return null; - const index = sourceIndex(map, source); - return index === -1 ? null : sourcesContent[index]; -} - -/** - * Determines if the source is marked to ignore by the source map. - */ -export function isIgnored(map: TraceMap, source: string): boolean { - const { ignoreList } = map; - if (ignoreList == null) return false; - const index = sourceIndex(map, source); - return index === -1 ? false : ignoreList.includes(index); -} - -/** - * A helper that skips sorting of the input map's mappings array, which can be expensive for larger - * maps. - */ -export function presortedDecodedMap(map: DecodedSourceMap, mapUrl?: string): TraceMap { - const tracer = new TraceMap(clone(map, []), mapUrl); - cast(tracer)._decoded = map.mappings; - return tracer; -} - -/** - * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ -export function decodedMap( - map: TraceMap, -): Omit & { mappings: readonly SourceMapSegment[][] } { - return clone(map, decodedMappings(map)); -} - -/** - * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ -export function encodedMap(map: TraceMap): EncodedSourceMap { - return clone(map, encodedMappings(map)); -} - -function clone( - map: TraceMap | DecodedSourceMap, - mappings: T, -): T extends string ? EncodedSourceMap : DecodedSourceMap { - return { - version: map.version, - file: map.file, - names: map.names, - sourceRoot: map.sourceRoot, - sources: map.sources, - sourcesContent: map.sourcesContent, - mappings, - ignoreList: map.ignoreList || (map as XInput).x_google_ignoreList, - } as any; -} - -function OMapping(source: null, line: null, column: null, name: null): InvalidOriginalMapping; -function OMapping( - source: string, - line: number, - column: number, - name: string | null, -): OriginalMapping; -function OMapping( - source: string | null, - line: number | null, - column: number | null, - name: string | null, -): OriginalMapping | InvalidOriginalMapping { - return { source, line, column, name } as any; -} - -function GMapping(line: null, column: null): InvalidGeneratedMapping; -function GMapping(line: number, column: number): GeneratedMapping; -function GMapping( - line: number | null, - column: number | null, -): GeneratedMapping | InvalidGeneratedMapping { - return { line, column } as any; -} - -function traceSegmentInternal( - segments: SourceMapSegment[], - memo: MemoState, - line: number, - column: number, - bias: Bias, -): number; -function traceSegmentInternal( - segments: ReverseSegment[], - memo: MemoState, - line: number, - column: number, - bias: Bias, -): number; -function traceSegmentInternal( - segments: SourceMapSegment[] | ReverseSegment[], - memo: MemoState, - line: number, - column: number, - bias: Bias, -): number { - let index = memoizedBinarySearch(segments, column, memo, line); - if (bsFound) { - index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index); - } else if (bias === LEAST_UPPER_BOUND) index++; - - if (index === -1 || index === segments.length) return -1; - return index; -} - -function sliceGeneratedPositions( - segments: ReverseSegment[], - memo: MemoState, - line: number, - column: number, - bias: Bias, -): GeneratedMapping[] { - let min = traceSegmentInternal(segments, memo, line, column, GREATEST_LOWER_BOUND); - - // We ignored the bias when tracing the segment so that we're guarnateed to find the first (in - // insertion order) segment that matched. Even if we did respect the bias when tracing, we would - // still need to call `lowerBound()` to find the first segment, which is slower than just looking - // for the GREATEST_LOWER_BOUND to begin with. The only difference that matters for us is when the - // binary search didn't match, in which case GREATEST_LOWER_BOUND just needs to increment to - // match LEAST_UPPER_BOUND. - if (!bsFound && bias === LEAST_UPPER_BOUND) min++; - - if (min === -1 || min === segments.length) return []; - - // We may have found the segment that started at an earlier column. If this is the case, then we - // need to slice all generated segments that match _that_ column, because all such segments span - // to our desired column. - const matchedColumn = bsFound ? column : segments[min][COLUMN]; - - // The binary search is not guaranteed to find the lower bound when a match wasn't found. - if (!bsFound) min = lowerBound(segments, matchedColumn, min); - const max = upperBound(segments, matchedColumn, min); - - const result = []; - for (; min <= max; min++) { - const segment = segments[min]; - result.push(GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN])); - } - return result; -} - -function generatedPosition( - map: TraceMap, - source: string, - line: number, - column: number, - bias: Bias, - all: false, -): GeneratedMapping | InvalidGeneratedMapping; -function generatedPosition( - map: TraceMap, - source: string, - line: number, - column: number, - bias: Bias, - all: true, -): GeneratedMapping[]; -function generatedPosition( - map: TraceMap, - source: string, - line: number, - column: number, - bias: Bias, - all: boolean, -): GeneratedMapping | InvalidGeneratedMapping | GeneratedMapping[] { - line--; - if (line < 0) throw new Error(LINE_GTR_ZERO); - if (column < 0) throw new Error(COL_GTR_EQ_ZERO); - - const { sources, resolvedSources } = map; - let sourceIndex = sources.indexOf(source); - if (sourceIndex === -1) sourceIndex = resolvedSources.indexOf(source); - if (sourceIndex === -1) return all ? [] : GMapping(null, null); - - const bySourceMemos = (cast(map)._bySourceMemos ||= sources.map(memoizedState)); - const generated = (cast(map)._bySources ||= buildBySources(decodedMappings(map), bySourceMemos)); - - const segments = generated[sourceIndex][line]; - if (segments == null) return all ? [] : GMapping(null, null); - - const memo = bySourceMemos[sourceIndex]; - - if (all) return sliceGeneratedPositions(segments, memo, line, column, bias); - - const index = traceSegmentInternal(segments, memo, line, column, bias); - if (index === -1) return GMapping(null, null); - - const segment = segments[index]; - return GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]); -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/types.ts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/types.ts deleted file mode 100644 index 730a61fb..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/src/types.ts +++ /dev/null @@ -1,114 +0,0 @@ -import type { SourceMapSegment } from './sourcemap-segment'; -import type { GREATEST_LOWER_BOUND, LEAST_UPPER_BOUND, TraceMap } from './trace-mapping'; - -export interface SourceMapV3 { - file?: string | null; - names: string[]; - sourceRoot?: string; - sources: (string | null)[]; - sourcesContent?: (string | null)[]; - version: 3; - ignoreList?: number[]; -} - -export interface EncodedSourceMap extends SourceMapV3 { - mappings: string; -} - -export interface DecodedSourceMap extends SourceMapV3 { - mappings: SourceMapSegment[][]; -} - -export interface Section { - offset: { line: number; column: number }; - map: EncodedSourceMap | DecodedSourceMap | SectionedSourceMap; -} - -export interface SectionedSourceMap { - file?: string | null; - sections: Section[]; - version: 3; -} - -export type OriginalMapping = { - source: string | null; - line: number; - column: number; - name: string | null; -}; - -export type InvalidOriginalMapping = { - source: null; - line: null; - column: null; - name: null; -}; - -export type GeneratedMapping = { - line: number; - column: number; -}; -export type InvalidGeneratedMapping = { - line: null; - column: null; -}; - -export type Bias = typeof GREATEST_LOWER_BOUND | typeof LEAST_UPPER_BOUND; - -export type XInput = { x_google_ignoreList?: SourceMapV3['ignoreList'] }; -export type EncodedSourceMapXInput = EncodedSourceMap & XInput; -export type DecodedSourceMapXInput = DecodedSourceMap & XInput; -export type SectionedSourceMapXInput = Omit & { - sections: SectionXInput[]; -}; -export type SectionXInput = Omit & { - map: SectionedSourceMapInput; -}; - -export type SourceMapInput = string | EncodedSourceMapXInput | DecodedSourceMapXInput | TraceMap; -export type SectionedSourceMapInput = SourceMapInput | SectionedSourceMapXInput; - -export type Needle = { line: number; column: number; bias?: Bias }; -export type SourceNeedle = { source: string; line: number; column: number; bias?: Bias }; - -export type EachMapping = - | { - generatedLine: number; - generatedColumn: number; - source: null; - originalLine: null; - originalColumn: null; - name: null; - } - | { - generatedLine: number; - generatedColumn: number; - source: string | null; - originalLine: number; - originalColumn: number; - name: string | null; - }; - -export abstract class SourceMap { - declare version: SourceMapV3['version']; - declare file: SourceMapV3['file']; - declare names: SourceMapV3['names']; - declare sourceRoot: SourceMapV3['sourceRoot']; - declare sources: SourceMapV3['sources']; - declare sourcesContent: SourceMapV3['sourcesContent']; - declare resolvedSources: SourceMapV3['sources']; - declare ignoreList: SourceMapV3['ignoreList']; -} - -export type Ro = - T extends Array - ? V[] | Readonly | RoArray | Readonly> - : T extends object - ? T | Readonly | RoObject | Readonly> - : T; -type RoArray = Ro[]; -type RoObject = { [K in keyof T]: T[K] | Ro }; - -export function parse(map: T): Exclude { - return typeof map === 'string' ? JSON.parse(map) : (map as Exclude); -} diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/binary-search.d.cts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/binary-search.d.cts deleted file mode 100644 index b7bb85c9..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/binary-search.d.cts +++ /dev/null @@ -1,33 +0,0 @@ -import type { SourceMapSegment, ReverseSegment } from './sourcemap-segment.cts'; -export type MemoState = { - lastKey: number; - lastNeedle: number; - lastIndex: number; -}; -export declare let found: boolean; -/** - * A binary search implementation that returns the index if a match is found. - * If no match is found, then the left-index (the index associated with the item that comes just - * before the desired index) is returned. To maintain proper sort order, a splice would happen at - * the next index: - * - * ```js - * const array = [1, 3]; - * const needle = 2; - * const index = binarySearch(array, needle, (item, needle) => item - needle); - * - * assert.equal(index, 0); - * array.splice(index + 1, 0, needle); - * assert.deepEqual(array, [1, 2, 3]); - * ``` - */ -export declare function binarySearch(haystack: SourceMapSegment[] | ReverseSegment[], needle: number, low: number, high: number): number; -export declare function upperBound(haystack: SourceMapSegment[] | ReverseSegment[], needle: number, index: number): number; -export declare function lowerBound(haystack: SourceMapSegment[] | ReverseSegment[], needle: number, index: number): number; -export declare function memoizedState(): MemoState; -/** - * This overly complicated beast is just to record the last tested line/column and the resulting - * index, allowing us to skip a few tests if mappings are monotonically increasing. - */ -export declare function memoizedBinarySearch(haystack: SourceMapSegment[] | ReverseSegment[], needle: number, state: MemoState, key: number): number; -//# sourceMappingURL=binary-search.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/binary-search.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/binary-search.d.cts.map deleted file mode 100644 index 648e84c1..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/binary-search.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"binary-search.d.ts","sourceRoot":"","sources":["../src/binary-search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG5E,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,IAAI,KAAK,SAAQ,CAAC;AAEzB;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,gBAAgB,EAAE,GAAG,cAAc,EAAE,EAC/C,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,GACX,MAAM,CAmBR;AAED,wBAAgB,UAAU,CACxB,QAAQ,EAAE,gBAAgB,EAAE,GAAG,cAAc,EAAE,EAC/C,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GACZ,MAAM,CAKR;AAED,wBAAgB,UAAU,CACxB,QAAQ,EAAE,gBAAgB,EAAE,GAAG,cAAc,EAAE,EAC/C,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GACZ,MAAM,CAKR;AAED,wBAAgB,aAAa,IAAI,SAAS,CAMzC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,gBAAgB,EAAE,GAAG,cAAc,EAAE,EAC/C,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,MAAM,GACV,MAAM,CAsBR"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts deleted file mode 100644 index 19e1e6b9..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts +++ /dev/null @@ -1,33 +0,0 @@ -import type { SourceMapSegment, ReverseSegment } from './sourcemap-segment.mts'; -export type MemoState = { - lastKey: number; - lastNeedle: number; - lastIndex: number; -}; -export declare let found: boolean; -/** - * A binary search implementation that returns the index if a match is found. - * If no match is found, then the left-index (the index associated with the item that comes just - * before the desired index) is returned. To maintain proper sort order, a splice would happen at - * the next index: - * - * ```js - * const array = [1, 3]; - * const needle = 2; - * const index = binarySearch(array, needle, (item, needle) => item - needle); - * - * assert.equal(index, 0); - * array.splice(index + 1, 0, needle); - * assert.deepEqual(array, [1, 2, 3]); - * ``` - */ -export declare function binarySearch(haystack: SourceMapSegment[] | ReverseSegment[], needle: number, low: number, high: number): number; -export declare function upperBound(haystack: SourceMapSegment[] | ReverseSegment[], needle: number, index: number): number; -export declare function lowerBound(haystack: SourceMapSegment[] | ReverseSegment[], needle: number, index: number): number; -export declare function memoizedState(): MemoState; -/** - * This overly complicated beast is just to record the last tested line/column and the resulting - * index, allowing us to skip a few tests if mappings are monotonically increasing. - */ -export declare function memoizedBinarySearch(haystack: SourceMapSegment[] | ReverseSegment[], needle: number, state: MemoState, key: number): number; -//# sourceMappingURL=binary-search.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts.map deleted file mode 100644 index 648e84c1..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"binary-search.d.ts","sourceRoot":"","sources":["../src/binary-search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG5E,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,IAAI,KAAK,SAAQ,CAAC;AAEzB;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,gBAAgB,EAAE,GAAG,cAAc,EAAE,EAC/C,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,GACX,MAAM,CAmBR;AAED,wBAAgB,UAAU,CACxB,QAAQ,EAAE,gBAAgB,EAAE,GAAG,cAAc,EAAE,EAC/C,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GACZ,MAAM,CAKR;AAED,wBAAgB,UAAU,CACxB,QAAQ,EAAE,gBAAgB,EAAE,GAAG,cAAc,EAAE,EAC/C,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,GACZ,MAAM,CAKR;AAED,wBAAgB,aAAa,IAAI,SAAS,CAMzC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,gBAAgB,EAAE,GAAG,cAAc,EAAE,EAC/C,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,MAAM,GACV,MAAM,CAsBR"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/by-source.d.cts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/by-source.d.cts deleted file mode 100644 index da496939..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/by-source.d.cts +++ /dev/null @@ -1,4 +0,0 @@ -import type { ReverseSegment, SourceMapSegment } from './sourcemap-segment.cts'; -export type Source = ReverseSegment[][]; -export = function buildBySources(decoded: readonly SourceMapSegment[][], memos: unknown[]): Source[]; -//# sourceMappingURL=by-source.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/by-source.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/by-source.d.cts.map deleted file mode 100644 index 32d2a7a1..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/by-source.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"by-source.d.ts","sourceRoot":"","sources":["../src/by-source.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,MAAM,MAAM,MAAM,GAAG,cAAc,EAAE,EAAE,CAAC;AAIxC,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,OAAO,EAAE,SAAS,gBAAgB,EAAE,EAAE,EACtC,KAAK,EAAE,OAAO,EAAE,GACf,MAAM,EAAE,CA4BV"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts deleted file mode 100644 index f3610495..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts +++ /dev/null @@ -1,4 +0,0 @@ -import type { ReverseSegment, SourceMapSegment } from './sourcemap-segment.mts'; -export type Source = ReverseSegment[][]; -export default function buildBySources(decoded: readonly SourceMapSegment[][], memos: unknown[]): Source[]; -//# sourceMappingURL=by-source.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts.map deleted file mode 100644 index 32d2a7a1..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"by-source.d.ts","sourceRoot":"","sources":["../src/by-source.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,MAAM,MAAM,MAAM,GAAG,cAAc,EAAE,EAAE,CAAC;AAIxC,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,OAAO,EAAE,SAAS,gBAAgB,EAAE,EAAE,EACtC,KAAK,EAAE,OAAO,EAAE,GACf,MAAM,EAAE,CA4BV"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.cts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.cts deleted file mode 100644 index 433d849b..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.cts +++ /dev/null @@ -1,9 +0,0 @@ -import { TraceMap } from './trace-mapping.cts'; -import type { SectionedSourceMapInput, Ro } from './types.cts'; -type FlattenMap = { - new (map: Ro, mapUrl?: string | null): TraceMap; - (map: Ro, mapUrl?: string | null): TraceMap; -}; -export declare const FlattenMap: FlattenMap; -export {}; -//# sourceMappingURL=flatten-map.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.cts.map deleted file mode 100644 index 994b208a..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"flatten-map.d.ts","sourceRoot":"","sources":["../src/flatten-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAwC,MAAM,iBAAiB,CAAC;AAUjF,OAAO,KAAK,EAKV,uBAAuB,EAEvB,EAAE,EACH,MAAM,SAAS,CAAC;AAGjB,KAAK,UAAU,GAAG;IAChB,KAAK,GAAG,EAAE,EAAE,CAAC,uBAAuB,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,QAAQ,CAAC;IACzE,CAAC,GAAG,EAAE,EAAE,CAAC,uBAAuB,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,QAAQ,CAAC;CACtE,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAsCV,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts deleted file mode 100644 index 444a1bed..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts +++ /dev/null @@ -1,9 +0,0 @@ -import { TraceMap } from './trace-mapping.mts'; -import type { SectionedSourceMapInput, Ro } from './types.mts'; -type FlattenMap = { - new (map: Ro, mapUrl?: string | null): TraceMap; - (map: Ro, mapUrl?: string | null): TraceMap; -}; -export declare const FlattenMap: FlattenMap; -export {}; -//# sourceMappingURL=flatten-map.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts.map deleted file mode 100644 index 994b208a..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"flatten-map.d.ts","sourceRoot":"","sources":["../src/flatten-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAwC,MAAM,iBAAiB,CAAC;AAUjF,OAAO,KAAK,EAKV,uBAAuB,EAEvB,EAAE,EACH,MAAM,SAAS,CAAC;AAGjB,KAAK,UAAU,GAAG;IAChB,KAAK,GAAG,EAAE,EAAE,CAAC,uBAAuB,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,QAAQ,CAAC;IACzE,CAAC,GAAG,EAAE,EAAE,CAAC,uBAAuB,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,QAAQ,CAAC;CACtE,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAsCV,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/resolve.d.cts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/resolve.d.cts deleted file mode 100644 index 62aeedb5..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/resolve.d.cts +++ /dev/null @@ -1,4 +0,0 @@ -type Resolve = (source: string | null) => string; -export = function resolver(mapUrl: string | null | undefined, sourceRoot: string | undefined): Resolve; -export {}; -//# sourceMappingURL=resolve.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/resolve.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/resolve.d.cts.map deleted file mode 100644 index 9f155ace..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/resolve.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../src/resolve.ts"],"names":[],"mappings":"AAGA,KAAK,OAAO,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,MAAM,CAAC;AACjD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAC9B,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,UAAU,EAAE,MAAM,GAAG,SAAS,GAC7B,OAAO,CAQT"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts deleted file mode 100644 index e2798a19..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts +++ /dev/null @@ -1,4 +0,0 @@ -type Resolve = (source: string | null) => string; -export default function resolver(mapUrl: string | null | undefined, sourceRoot: string | undefined): Resolve; -export {}; -//# sourceMappingURL=resolve.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts.map deleted file mode 100644 index 9f155ace..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../src/resolve.ts"],"names":[],"mappings":"AAGA,KAAK,OAAO,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,MAAM,CAAC;AACjD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAC9B,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,UAAU,EAAE,MAAM,GAAG,SAAS,GAC7B,OAAO,CAQT"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sort.d.cts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sort.d.cts deleted file mode 100644 index aa14c129..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sort.d.cts +++ /dev/null @@ -1,4 +0,0 @@ -import type { ReverseSegment, SourceMapSegment } from './sourcemap-segment.cts'; -export = function maybeSort(mappings: SourceMapSegment[][], owned: boolean): SourceMapSegment[][]; -export declare function sortComparator(a: T, b: T): number; -//# sourceMappingURL=sort.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sort.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sort.d.cts.map deleted file mode 100644 index 48b8e674..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sort.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../src/sort.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,QAAQ,EAAE,gBAAgB,EAAE,EAAE,EAC9B,KAAK,EAAE,OAAO,GACb,gBAAgB,EAAE,EAAE,CAYtB;AAuBD,wBAAgB,cAAc,CAAC,CAAC,SAAS,gBAAgB,GAAG,cAAc,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,MAAM,CAE9F"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sort.d.mts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sort.d.mts deleted file mode 100644 index c5b94e64..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sort.d.mts +++ /dev/null @@ -1,4 +0,0 @@ -import type { ReverseSegment, SourceMapSegment } from './sourcemap-segment.mts'; -export default function maybeSort(mappings: SourceMapSegment[][], owned: boolean): SourceMapSegment[][]; -export declare function sortComparator(a: T, b: T): number; -//# sourceMappingURL=sort.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sort.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sort.d.mts.map deleted file mode 100644 index 48b8e674..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sort.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../src/sort.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,QAAQ,EAAE,gBAAgB,EAAE,EAAE,EAC9B,KAAK,EAAE,OAAO,GACb,gBAAgB,EAAE,EAAE,CAYtB;AAuBD,wBAAgB,cAAc,CAAC,CAAC,SAAS,gBAAgB,GAAG,cAAc,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,MAAM,CAE9F"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.cts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.cts deleted file mode 100644 index 8d3cabc1..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.cts +++ /dev/null @@ -1,17 +0,0 @@ -type GeneratedColumn = number; -type SourcesIndex = number; -type SourceLine = number; -type SourceColumn = number; -type NamesIndex = number; -type GeneratedLine = number; -export type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex]; -export type ReverseSegment = [SourceColumn, GeneratedLine, GeneratedColumn]; -export declare const COLUMN = 0; -export declare const SOURCES_INDEX = 1; -export declare const SOURCE_LINE = 2; -export declare const SOURCE_COLUMN = 3; -export declare const NAMES_INDEX = 4; -export declare const REV_GENERATED_LINE = 1; -export declare const REV_GENERATED_COLUMN = 2; -export {}; -//# sourceMappingURL=sourcemap-segment.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.cts.map deleted file mode 100644 index 0c94a461..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sourcemap-segment.d.ts","sourceRoot":"","sources":["../src/sourcemap-segment.ts"],"names":[],"mappings":"AAAA,KAAK,eAAe,GAAG,MAAM,CAAC;AAC9B,KAAK,YAAY,GAAG,MAAM,CAAC;AAC3B,KAAK,UAAU,GAAG,MAAM,CAAC;AACzB,KAAK,YAAY,GAAG,MAAM,CAAC;AAC3B,KAAK,UAAU,GAAG,MAAM,CAAC;AAEzB,KAAK,aAAa,GAAG,MAAM,CAAC;AAE5B,MAAM,MAAM,gBAAgB,GACxB,CAAC,eAAe,CAAC,GACjB,CAAC,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,CAAC,GACzD,CAAC,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;AAE1E,MAAM,MAAM,cAAc,GAAG,CAAC,YAAY,EAAE,aAAa,EAAE,eAAe,CAAC,CAAC;AAE5E,eAAO,MAAM,MAAM,IAAI,CAAC;AACxB,eAAO,MAAM,aAAa,IAAI,CAAC;AAC/B,eAAO,MAAM,WAAW,IAAI,CAAC;AAC7B,eAAO,MAAM,aAAa,IAAI,CAAC;AAC/B,eAAO,MAAM,WAAW,IAAI,CAAC;AAE7B,eAAO,MAAM,kBAAkB,IAAI,CAAC;AACpC,eAAO,MAAM,oBAAoB,IAAI,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts deleted file mode 100644 index 8d3cabc1..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts +++ /dev/null @@ -1,17 +0,0 @@ -type GeneratedColumn = number; -type SourcesIndex = number; -type SourceLine = number; -type SourceColumn = number; -type NamesIndex = number; -type GeneratedLine = number; -export type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex]; -export type ReverseSegment = [SourceColumn, GeneratedLine, GeneratedColumn]; -export declare const COLUMN = 0; -export declare const SOURCES_INDEX = 1; -export declare const SOURCE_LINE = 2; -export declare const SOURCE_COLUMN = 3; -export declare const NAMES_INDEX = 4; -export declare const REV_GENERATED_LINE = 1; -export declare const REV_GENERATED_COLUMN = 2; -export {}; -//# sourceMappingURL=sourcemap-segment.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts.map deleted file mode 100644 index 0c94a461..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sourcemap-segment.d.ts","sourceRoot":"","sources":["../src/sourcemap-segment.ts"],"names":[],"mappings":"AAAA,KAAK,eAAe,GAAG,MAAM,CAAC;AAC9B,KAAK,YAAY,GAAG,MAAM,CAAC;AAC3B,KAAK,UAAU,GAAG,MAAM,CAAC;AACzB,KAAK,YAAY,GAAG,MAAM,CAAC;AAC3B,KAAK,UAAU,GAAG,MAAM,CAAC;AAEzB,KAAK,aAAa,GAAG,MAAM,CAAC;AAE5B,MAAM,MAAM,gBAAgB,GACxB,CAAC,eAAe,CAAC,GACjB,CAAC,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,CAAC,GACzD,CAAC,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;AAE1E,MAAM,MAAM,cAAc,GAAG,CAAC,YAAY,EAAE,aAAa,EAAE,eAAe,CAAC,CAAC;AAE5E,eAAO,MAAM,MAAM,IAAI,CAAC;AACxB,eAAO,MAAM,aAAa,IAAI,CAAC;AAC/B,eAAO,MAAM,WAAW,IAAI,CAAC;AAC7B,eAAO,MAAM,aAAa,IAAI,CAAC;AAC/B,eAAO,MAAM,WAAW,IAAI,CAAC;AAE7B,eAAO,MAAM,kBAAkB,IAAI,CAAC;AACpC,eAAO,MAAM,oBAAoB,IAAI,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.cts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.cts deleted file mode 100644 index 8b3c0e9b..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.cts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Removes everything after the last "/", but leaves the slash. - */ -export = function stripFilename(path: string | undefined | null): string; -//# sourceMappingURL=strip-filename.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.cts.map deleted file mode 100644 index 17a25da0..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"strip-filename.d.ts","sourceRoot":"","sources":["../src/strip-filename.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,CAI7E"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts deleted file mode 100644 index cbbaee0d..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Removes everything after the last "/", but leaves the slash. - */ -export default function stripFilename(path: string | undefined | null): string; -//# sourceMappingURL=strip-filename.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts.map deleted file mode 100644 index 17a25da0..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"strip-filename.d.ts","sourceRoot":"","sources":["../src/strip-filename.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,CAI7E"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.cts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.cts deleted file mode 100644 index a40f3054..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.cts +++ /dev/null @@ -1,80 +0,0 @@ -import type { SourceMapSegment } from './sourcemap-segment.cts'; -import type { SourceMapV3, DecodedSourceMap, EncodedSourceMap, InvalidOriginalMapping, OriginalMapping, InvalidGeneratedMapping, GeneratedMapping, SourceMapInput, Needle, SourceNeedle, SourceMap, EachMapping, Ro } from './types.cts'; -export type { SourceMapSegment } from './sourcemap-segment.cts'; -export type { SourceMap, DecodedSourceMap, EncodedSourceMap, Section, SectionedSourceMap, SourceMapV3, Bias, EachMapping, GeneratedMapping, InvalidGeneratedMapping, InvalidOriginalMapping, Needle, OriginalMapping, OriginalMapping as Mapping, SectionedSourceMapInput, SourceMapInput, SourceNeedle, XInput, EncodedSourceMapXInput, DecodedSourceMapXInput, SectionedSourceMapXInput, SectionXInput, } from './types.cts'; -export declare const LEAST_UPPER_BOUND = -1; -export declare const GREATEST_LOWER_BOUND = 1; -export { FlattenMap, FlattenMap as AnyMap } from './flatten-map.cts'; -export declare class TraceMap implements SourceMap { - version: SourceMapV3['version']; - file: SourceMapV3['file']; - names: SourceMapV3['names']; - sourceRoot: SourceMapV3['sourceRoot']; - sources: SourceMapV3['sources']; - sourcesContent: SourceMapV3['sourcesContent']; - ignoreList: SourceMapV3['ignoreList']; - resolvedSources: string[]; - private _encoded; - private _decoded; - private _decodedMemo; - private _bySources; - private _bySourceMemos; - constructor(map: Ro, mapUrl?: string | null); -} -/** - * Returns the encoded (VLQ string) form of the SourceMap's mappings field. - */ -export declare function encodedMappings(map: TraceMap): EncodedSourceMap['mappings']; -/** - * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field. - */ -export declare function decodedMappings(map: TraceMap): Readonly; -/** - * A low-level API to find the segment associated with a generated line/column (think, from a - * stack trace). Line and column here are 0-based, unlike `originalPositionFor`. - */ -export declare function traceSegment(map: TraceMap, line: number, column: number): Readonly | null; -/** - * A higher-level API to find the source/line/column associated with a generated line/column - * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in - * `source-map` library. - */ -export declare function originalPositionFor(map: TraceMap, needle: Needle): OriginalMapping | InvalidOriginalMapping; -/** - * Finds the generated line/column position of the provided source/line/column source position. - */ -export declare function generatedPositionFor(map: TraceMap, needle: SourceNeedle): GeneratedMapping | InvalidGeneratedMapping; -/** - * Finds all generated line/column positions of the provided source/line/column source position. - */ -export declare function allGeneratedPositionsFor(map: TraceMap, needle: SourceNeedle): GeneratedMapping[]; -/** - * Iterates each mapping in generated position order. - */ -export declare function eachMapping(map: TraceMap, cb: (mapping: EachMapping) => void): void; -/** - * Retrieves the source content for a particular source, if its found. Returns null if not. - */ -export declare function sourceContentFor(map: TraceMap, source: string): string | null; -/** - * Determines if the source is marked to ignore by the source map. - */ -export declare function isIgnored(map: TraceMap, source: string): boolean; -/** - * A helper that skips sorting of the input map's mappings array, which can be expensive for larger - * maps. - */ -export declare function presortedDecodedMap(map: DecodedSourceMap, mapUrl?: string): TraceMap; -/** - * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ -export declare function decodedMap(map: TraceMap): Omit & { - mappings: readonly SourceMapSegment[][]; -}; -/** - * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ -export declare function encodedMap(map: TraceMap): EncodedSourceMap; -//# sourceMappingURL=trace-mapping.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.cts.map deleted file mode 100644 index b5a874c0..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"trace-mapping.d.ts","sourceRoot":"","sources":["../src/trace-mapping.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,qBAAqB,CAAC;AAC5E,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,cAAc,EACd,MAAM,EACN,YAAY,EACZ,SAAS,EACT,WAAW,EAIX,EAAE,EACH,MAAM,SAAS,CAAC;AAIjB,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,YAAY,EACV,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,OAAO,EACP,kBAAkB,EAClB,WAAW,EACX,IAAI,EACJ,WAAW,EACX,gBAAgB,EAChB,uBAAuB,EACvB,sBAAsB,EACtB,MAAM,EACN,eAAe,EACf,eAAe,IAAI,OAAO,EAC1B,uBAAuB,EACvB,cAAc,EACd,YAAY,EACZ,MAAM,EACN,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,aAAa,GACd,MAAM,SAAS,CAAC;AAajB,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,UAAU,IAAI,MAAM,EAAE,MAAM,eAAe,CAAC;AAEjE,qBAAa,QAAS,YAAW,SAAS;IAChC,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAChC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC1B,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC5B,UAAU,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IACtC,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAChC,cAAc,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAC9C,UAAU,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IAEtC,eAAe,EAAE,MAAM,EAAE,CAAC;IAClC,QAAgB,QAAQ,CAAqB;IAE7C,QAAgB,QAAQ,CAAmC;IAC3D,QAAgB,YAAY,CAAY;IAExC,QAAgB,UAAU,CAAuB;IACjD,QAAgB,cAAc,CAA0B;gBAE5C,GAAG,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;CAmC5D;AAUD;;GAEG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,QAAQ,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAE3E;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,QAAQ,GAAG,QAAQ,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAErF;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,GAAG,EAAE,QAAQ,EACb,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACb,QAAQ,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAiBnC;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,QAAQ,EACb,MAAM,EAAE,MAAM,GACb,eAAe,GAAG,sBAAsB,CAiC1C;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,QAAQ,EACb,MAAM,EAAE,YAAY,GACnB,gBAAgB,GAAG,uBAAuB,CAG5C;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,GAAG,gBAAgB,EAAE,CAIhG;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,GAAG,IAAI,CAgCnF;AASD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAK7E;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAKhE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,CAIpF;AAED;;;GAGG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,QAAQ,GACZ,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,GAAG;IAAE,QAAQ,EAAE,SAAS,gBAAgB,EAAE,EAAE,CAAA;CAAE,CAElF;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,QAAQ,GAAG,gBAAgB,CAE1D"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts deleted file mode 100644 index bc2ff0f1..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts +++ /dev/null @@ -1,80 +0,0 @@ -import type { SourceMapSegment } from './sourcemap-segment.mts'; -import type { SourceMapV3, DecodedSourceMap, EncodedSourceMap, InvalidOriginalMapping, OriginalMapping, InvalidGeneratedMapping, GeneratedMapping, SourceMapInput, Needle, SourceNeedle, SourceMap, EachMapping, Ro } from './types.mts'; -export type { SourceMapSegment } from './sourcemap-segment.mts'; -export type { SourceMap, DecodedSourceMap, EncodedSourceMap, Section, SectionedSourceMap, SourceMapV3, Bias, EachMapping, GeneratedMapping, InvalidGeneratedMapping, InvalidOriginalMapping, Needle, OriginalMapping, OriginalMapping as Mapping, SectionedSourceMapInput, SourceMapInput, SourceNeedle, XInput, EncodedSourceMapXInput, DecodedSourceMapXInput, SectionedSourceMapXInput, SectionXInput, } from './types.mts'; -export declare const LEAST_UPPER_BOUND = -1; -export declare const GREATEST_LOWER_BOUND = 1; -export { FlattenMap, FlattenMap as AnyMap } from './flatten-map.mts'; -export declare class TraceMap implements SourceMap { - version: SourceMapV3['version']; - file: SourceMapV3['file']; - names: SourceMapV3['names']; - sourceRoot: SourceMapV3['sourceRoot']; - sources: SourceMapV3['sources']; - sourcesContent: SourceMapV3['sourcesContent']; - ignoreList: SourceMapV3['ignoreList']; - resolvedSources: string[]; - private _encoded; - private _decoded; - private _decodedMemo; - private _bySources; - private _bySourceMemos; - constructor(map: Ro, mapUrl?: string | null); -} -/** - * Returns the encoded (VLQ string) form of the SourceMap's mappings field. - */ -export declare function encodedMappings(map: TraceMap): EncodedSourceMap['mappings']; -/** - * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field. - */ -export declare function decodedMappings(map: TraceMap): Readonly; -/** - * A low-level API to find the segment associated with a generated line/column (think, from a - * stack trace). Line and column here are 0-based, unlike `originalPositionFor`. - */ -export declare function traceSegment(map: TraceMap, line: number, column: number): Readonly | null; -/** - * A higher-level API to find the source/line/column associated with a generated line/column - * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in - * `source-map` library. - */ -export declare function originalPositionFor(map: TraceMap, needle: Needle): OriginalMapping | InvalidOriginalMapping; -/** - * Finds the generated line/column position of the provided source/line/column source position. - */ -export declare function generatedPositionFor(map: TraceMap, needle: SourceNeedle): GeneratedMapping | InvalidGeneratedMapping; -/** - * Finds all generated line/column positions of the provided source/line/column source position. - */ -export declare function allGeneratedPositionsFor(map: TraceMap, needle: SourceNeedle): GeneratedMapping[]; -/** - * Iterates each mapping in generated position order. - */ -export declare function eachMapping(map: TraceMap, cb: (mapping: EachMapping) => void): void; -/** - * Retrieves the source content for a particular source, if its found. Returns null if not. - */ -export declare function sourceContentFor(map: TraceMap, source: string): string | null; -/** - * Determines if the source is marked to ignore by the source map. - */ -export declare function isIgnored(map: TraceMap, source: string): boolean; -/** - * A helper that skips sorting of the input map's mappings array, which can be expensive for larger - * maps. - */ -export declare function presortedDecodedMap(map: DecodedSourceMap, mapUrl?: string): TraceMap; -/** - * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ -export declare function decodedMap(map: TraceMap): Omit & { - mappings: readonly SourceMapSegment[][]; -}; -/** - * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ -export declare function encodedMap(map: TraceMap): EncodedSourceMap; -//# sourceMappingURL=trace-mapping.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts.map deleted file mode 100644 index b5a874c0..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"trace-mapping.d.ts","sourceRoot":"","sources":["../src/trace-mapping.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,gBAAgB,EAAkB,MAAM,qBAAqB,CAAC;AAC5E,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,cAAc,EACd,MAAM,EACN,YAAY,EACZ,SAAS,EACT,WAAW,EAIX,EAAE,EACH,MAAM,SAAS,CAAC;AAIjB,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,YAAY,EACV,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,OAAO,EACP,kBAAkB,EAClB,WAAW,EACX,IAAI,EACJ,WAAW,EACX,gBAAgB,EAChB,uBAAuB,EACvB,sBAAsB,EACtB,MAAM,EACN,eAAe,EACf,eAAe,IAAI,OAAO,EAC1B,uBAAuB,EACvB,cAAc,EACd,YAAY,EACZ,MAAM,EACN,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,aAAa,GACd,MAAM,SAAS,CAAC;AAajB,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,UAAU,IAAI,MAAM,EAAE,MAAM,eAAe,CAAC;AAEjE,qBAAa,QAAS,YAAW,SAAS;IAChC,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAChC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC1B,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC5B,UAAU,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IACtC,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAChC,cAAc,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAC9C,UAAU,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IAEtC,eAAe,EAAE,MAAM,EAAE,CAAC;IAClC,QAAgB,QAAQ,CAAqB;IAE7C,QAAgB,QAAQ,CAAmC;IAC3D,QAAgB,YAAY,CAAY;IAExC,QAAgB,UAAU,CAAuB;IACjD,QAAgB,cAAc,CAA0B;gBAE5C,GAAG,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;CAmC5D;AAUD;;GAEG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,QAAQ,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAE3E;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,QAAQ,GAAG,QAAQ,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAErF;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,GAAG,EAAE,QAAQ,EACb,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACb,QAAQ,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAiBnC;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,QAAQ,EACb,MAAM,EAAE,MAAM,GACb,eAAe,GAAG,sBAAsB,CAiC1C;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,QAAQ,EACb,MAAM,EAAE,YAAY,GACnB,gBAAgB,GAAG,uBAAuB,CAG5C;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,GAAG,gBAAgB,EAAE,CAIhG;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,GAAG,IAAI,CAgCnF;AASD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAK7E;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAKhE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,CAIpF;AAED;;;GAGG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,QAAQ,GACZ,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,GAAG;IAAE,QAAQ,EAAE,SAAS,gBAAgB,EAAE,EAAE,CAAA;CAAE,CAElF;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,QAAQ,GAAG,gBAAgB,CAE1D"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/types.d.cts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/types.d.cts deleted file mode 100644 index 729c2c32..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/types.d.cts +++ /dev/null @@ -1,107 +0,0 @@ -import type { SourceMapSegment } from './sourcemap-segment.cts'; -import type { GREATEST_LOWER_BOUND, LEAST_UPPER_BOUND, TraceMap } from './trace-mapping.cts'; -export interface SourceMapV3 { - file?: string | null; - names: string[]; - sourceRoot?: string; - sources: (string | null)[]; - sourcesContent?: (string | null)[]; - version: 3; - ignoreList?: number[]; -} -export interface EncodedSourceMap extends SourceMapV3 { - mappings: string; -} -export interface DecodedSourceMap extends SourceMapV3 { - mappings: SourceMapSegment[][]; -} -export interface Section { - offset: { - line: number; - column: number; - }; - map: EncodedSourceMap | DecodedSourceMap | SectionedSourceMap; -} -export interface SectionedSourceMap { - file?: string | null; - sections: Section[]; - version: 3; -} -export type OriginalMapping = { - source: string | null; - line: number; - column: number; - name: string | null; -}; -export type InvalidOriginalMapping = { - source: null; - line: null; - column: null; - name: null; -}; -export type GeneratedMapping = { - line: number; - column: number; -}; -export type InvalidGeneratedMapping = { - line: null; - column: null; -}; -export type Bias = typeof GREATEST_LOWER_BOUND | typeof LEAST_UPPER_BOUND; -export type XInput = { - x_google_ignoreList?: SourceMapV3['ignoreList']; -}; -export type EncodedSourceMapXInput = EncodedSourceMap & XInput; -export type DecodedSourceMapXInput = DecodedSourceMap & XInput; -export type SectionedSourceMapXInput = Omit & { - sections: SectionXInput[]; -}; -export type SectionXInput = Omit & { - map: SectionedSourceMapInput; -}; -export type SourceMapInput = string | EncodedSourceMapXInput | DecodedSourceMapXInput | TraceMap; -export type SectionedSourceMapInput = SourceMapInput | SectionedSourceMapXInput; -export type Needle = { - line: number; - column: number; - bias?: Bias; -}; -export type SourceNeedle = { - source: string; - line: number; - column: number; - bias?: Bias; -}; -export type EachMapping = { - generatedLine: number; - generatedColumn: number; - source: null; - originalLine: null; - originalColumn: null; - name: null; -} | { - generatedLine: number; - generatedColumn: number; - source: string | null; - originalLine: number; - originalColumn: number; - name: string | null; -}; -export declare abstract class SourceMap { - version: SourceMapV3['version']; - file: SourceMapV3['file']; - names: SourceMapV3['names']; - sourceRoot: SourceMapV3['sourceRoot']; - sources: SourceMapV3['sources']; - sourcesContent: SourceMapV3['sourcesContent']; - resolvedSources: SourceMapV3['sources']; - ignoreList: SourceMapV3['ignoreList']; -} -export type Ro = T extends Array ? V[] | Readonly | RoArray | Readonly> : T extends object ? T | Readonly | RoObject | Readonly> : T; -type RoArray = Ro[]; -type RoObject = { - [K in keyof T]: T[K] | Ro; -}; -export declare function parse(map: T): Exclude; -export {}; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/types.d.cts.map b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/types.d.cts.map deleted file mode 100644 index 92247839..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/types.d.cts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEzF,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IAC3B,cAAc,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,QAAQ,EAAE,gBAAgB,EAAE,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,GAAG,EAAE,gBAAgB,GAAG,gBAAgB,GAAG,kBAAkB,CAAC;CAC/D;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,OAAO,EAAE,CAAC,CAAC;CACZ;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,IAAI,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,IAAI,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,IAAI,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG,OAAO,oBAAoB,GAAG,OAAO,iBAAiB,CAAC;AAE1E,MAAM,MAAM,MAAM,GAAG;IAAE,mBAAmB,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;CAAE,CAAC;AACzE,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,GAAG,MAAM,CAAC;AAC/D,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,GAAG,MAAM,CAAC;AAC/D,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,GAAG;IAC5E,QAAQ,EAAE,aAAa,EAAE,CAAC;CAC3B,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,GAAG;IACjD,GAAG,EAAE,uBAAuB,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,sBAAsB,GAAG,sBAAsB,GAAG,QAAQ,CAAC;AACjG,MAAM,MAAM,uBAAuB,GAAG,cAAc,GAAG,wBAAwB,CAAC;AAEhF,MAAM,MAAM,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,IAAI,CAAA;CAAE,CAAC;AACnE,MAAM,MAAM,YAAY,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,IAAI,CAAA;CAAE,CAAC;AAEzF,MAAM,MAAM,WAAW,GACnB;IACE,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,IAAI,CAAC;IACb,YAAY,EAAE,IAAI,CAAC;IACnB,cAAc,EAAE,IAAI,CAAC;IACrB,IAAI,EAAE,IAAI,CAAC;CACZ,GACD;IACE,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB,CAAC;AAEN,8BAAsB,SAAS;IACrB,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAChC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC1B,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC5B,UAAU,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IACtC,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAChC,cAAc,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAC9C,eAAe,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACxC,UAAU,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;CAC/C;AAED,MAAM,MAAM,EAAE,CAAC,CAAC,IACd,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,CAAC,GACpB,CAAC,EAAE,GAAG,QAAQ,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GACvD,CAAC,SAAS,MAAM,GACd,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GACrD,CAAC,CAAC;AACV,KAAK,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAC1B,KAAK,QAAQ,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAEvD,wBAAgB,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,MAAM,CAAC,CAEnD"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/types.d.mts b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/types.d.mts deleted file mode 100644 index a26d1866..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/types.d.mts +++ /dev/null @@ -1,107 +0,0 @@ -import type { SourceMapSegment } from './sourcemap-segment.mts'; -import type { GREATEST_LOWER_BOUND, LEAST_UPPER_BOUND, TraceMap } from './trace-mapping.mts'; -export interface SourceMapV3 { - file?: string | null; - names: string[]; - sourceRoot?: string; - sources: (string | null)[]; - sourcesContent?: (string | null)[]; - version: 3; - ignoreList?: number[]; -} -export interface EncodedSourceMap extends SourceMapV3 { - mappings: string; -} -export interface DecodedSourceMap extends SourceMapV3 { - mappings: SourceMapSegment[][]; -} -export interface Section { - offset: { - line: number; - column: number; - }; - map: EncodedSourceMap | DecodedSourceMap | SectionedSourceMap; -} -export interface SectionedSourceMap { - file?: string | null; - sections: Section[]; - version: 3; -} -export type OriginalMapping = { - source: string | null; - line: number; - column: number; - name: string | null; -}; -export type InvalidOriginalMapping = { - source: null; - line: null; - column: null; - name: null; -}; -export type GeneratedMapping = { - line: number; - column: number; -}; -export type InvalidGeneratedMapping = { - line: null; - column: null; -}; -export type Bias = typeof GREATEST_LOWER_BOUND | typeof LEAST_UPPER_BOUND; -export type XInput = { - x_google_ignoreList?: SourceMapV3['ignoreList']; -}; -export type EncodedSourceMapXInput = EncodedSourceMap & XInput; -export type DecodedSourceMapXInput = DecodedSourceMap & XInput; -export type SectionedSourceMapXInput = Omit & { - sections: SectionXInput[]; -}; -export type SectionXInput = Omit & { - map: SectionedSourceMapInput; -}; -export type SourceMapInput = string | EncodedSourceMapXInput | DecodedSourceMapXInput | TraceMap; -export type SectionedSourceMapInput = SourceMapInput | SectionedSourceMapXInput; -export type Needle = { - line: number; - column: number; - bias?: Bias; -}; -export type SourceNeedle = { - source: string; - line: number; - column: number; - bias?: Bias; -}; -export type EachMapping = { - generatedLine: number; - generatedColumn: number; - source: null; - originalLine: null; - originalColumn: null; - name: null; -} | { - generatedLine: number; - generatedColumn: number; - source: string | null; - originalLine: number; - originalColumn: number; - name: string | null; -}; -export declare abstract class SourceMap { - version: SourceMapV3['version']; - file: SourceMapV3['file']; - names: SourceMapV3['names']; - sourceRoot: SourceMapV3['sourceRoot']; - sources: SourceMapV3['sources']; - sourcesContent: SourceMapV3['sourcesContent']; - resolvedSources: SourceMapV3['sources']; - ignoreList: SourceMapV3['ignoreList']; -} -export type Ro = T extends Array ? V[] | Readonly | RoArray | Readonly> : T extends object ? T | Readonly | RoObject | Readonly> : T; -type RoArray = Ro[]; -type RoObject = { - [K in keyof T]: T[K] | Ro; -}; -export declare function parse(map: T): Exclude; -export {}; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/types.d.mts.map b/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/types.d.mts.map deleted file mode 100644 index 92247839..00000000 --- a/build_vtk_bundle/node_modules/@jridgewell/trace-mapping/types/types.d.mts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEzF,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IAC3B,cAAc,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,QAAQ,EAAE,gBAAgB,EAAE,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,GAAG,EAAE,gBAAgB,GAAG,gBAAgB,GAAG,kBAAkB,CAAC;CAC/D;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,OAAO,EAAE,CAAC,CAAC;CACZ;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,IAAI,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,IAAI,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,IAAI,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG,OAAO,oBAAoB,GAAG,OAAO,iBAAiB,CAAC;AAE1E,MAAM,MAAM,MAAM,GAAG;IAAE,mBAAmB,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;CAAE,CAAC;AACzE,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,GAAG,MAAM,CAAC;AAC/D,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,GAAG,MAAM,CAAC;AAC/D,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,GAAG;IAC5E,QAAQ,EAAE,aAAa,EAAE,CAAC;CAC3B,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,GAAG;IACjD,GAAG,EAAE,uBAAuB,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,sBAAsB,GAAG,sBAAsB,GAAG,QAAQ,CAAC;AACjG,MAAM,MAAM,uBAAuB,GAAG,cAAc,GAAG,wBAAwB,CAAC;AAEhF,MAAM,MAAM,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,IAAI,CAAA;CAAE,CAAC;AACnE,MAAM,MAAM,YAAY,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,IAAI,CAAA;CAAE,CAAC;AAEzF,MAAM,MAAM,WAAW,GACnB;IACE,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,IAAI,CAAC;IACb,YAAY,EAAE,IAAI,CAAC;IACnB,cAAc,EAAE,IAAI,CAAC;IACrB,IAAI,EAAE,IAAI,CAAC;CACZ,GACD;IACE,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB,CAAC;AAEN,8BAAsB,SAAS;IACrB,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAChC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC1B,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC5B,UAAU,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IACtC,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAChC,cAAc,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAC9C,eAAe,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACxC,UAAU,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;CAC/C;AAED,MAAM,MAAM,EAAE,CAAC,CAAC,IACd,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,CAAC,GACpB,CAAC,EAAE,GAAG,QAAQ,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GACvD,CAAC,SAAS,MAAM,GACd,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GACrD,CAAC,CAAC;AACV,KAAK,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAC1B,KAAK,QAAQ,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAEvD,wBAAgB,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,MAAM,CAAC,CAEnD"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/BREAKING_CHANGES.md b/build_vtk_bundle/node_modules/@kitware/vtk.js/BREAKING_CHANGES.md deleted file mode 100644 index d3d8e847..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/BREAKING_CHANGES.md +++ /dev/null @@ -1,282 +0,0 @@ -## From 33.x to 34 - -- **vtkMapper**: many properties have moved to `vtkVolumeProperty`. The full list of changed methods is: `getAnisotropy`, `getComputeNormalFromOpacity`, `getFilterMode`, `getFilterModeAsString`, `getGlobalIlluminationReach`, `getIpScalarRange`, `getIpScalarRangeByReference`, `getLAOKernelRadius`, `getLAOKernelSize`, `getLocalAmbientOcclusion`, `getPreferSizeOverAccuracy`, `getVolumetricScatteringBlending`, `setAnisotropy`, `setAverageIPScalarRange`, `setComputeNormalFromOpacity`, `setFilterMode`, `setFilterModeToNormalized`, `setFilterModeToOff`, `setFilterModeToRaw`, `setGlobalIlluminationReach`, `setIpScalarRange`, `setIpScalarRangeFrom`, `setLAOKernelRadius`, `setLAOKernelSize`, `setLocalAmbientOcclusion`, `setPreferSizeOverAccuracy`, `setVolumetricScatteringBlending`. -- **vtkRenderWindowInteractor**: KeyPress, KeyDown and KeyUp events are now observed on the container and no longer on the document. "tabIndex=0" is now automatically added on RWI containers to give focus on your render windows and catch key events. Check the KeyPressEvents example for usage. -- **vtkOpenGLTexture**: The public `create2D*` and `create3D*` methods used to have positional parameters. These methods now use named parameters via passing in an object record. - -## From 32.x to 33 - -- **vtkColorTransferFunction**, **vtkMapper**: Previous log scaling was disabled but functionality is now quite different from what it maybe was before it was disabled. ColorTransfer function now maps the model.nodes in logarithmic scales so there's an even spacing between powers of ten. - -## From 31.x to 32 - -- **vtkMapper**: remove `mapScalarsToTexture` from the public API. The function becomes protected and its API changes. This shouldn't cause any issue in most cases. - -## From 30.x to 31 - -- **Picking**: write to depth buffer for translucent pass when picking. This change fixes a picking issue with multiple translucent actors overlaid on top of each other. The hardware selector would just register the propID of the last rendered prop. This was because we explicitly turn off writing to the depth buffer when rendering translucent props as OIT doesn't need it. This change enables writing to the depth buffer when picking in the translucent pass. Applications relying on picked propID would see a difference in the IDs returned by the hardware selector. - -## From 29.x to 30 - -- **ResliceCursorWidget.interactionEvent**: no longer pass an object of `{computeFocalPointOffset, canUpdateFocalPoint}` but simply the type of the handle that triggers the event (e.g. `InteractionMethodsName.RotateLine`). The removed values can easily be recomputed by the consumers of the event by checking the type of the handle. Regarding `computeFocalPointOffset`, it is no longer advised to compute focal point offset for each interaction, instead observing `startInteraction()` should be considered (see ResliceCursorWidget example). -- **ResliceCursorWidget.invokeInternalInteractionEvent(methodName)**: has been removed and should be replaced by `ResliceCursorWidget.invokeInteractionEvent(methodName)`. -- **ResliceCursorWidget.updateCameraPoints(renderer, viewType, resetFocalPoint, keepCenterFocalDistance, computeFocalPointOffset)** has lost the `keepCenterFocalDistance` parameter (because it was ALWAYS the negate of `computeFocalPointOffset`). The new signature is `ResliceCursorWidget.updateCameraPoints(renderer, viewType, resetFocalPoint, keepCenterFocalDistance, computeFocalPointOffset)` - -- **vtkAxesActor**: `setXAxisColor`, `setYAxisColor`, `setZAxisColor` now take a single `RGBColor` (array of 3 numbers) instead of 3 numbers for each color component. The `get*AxisColor` methods now return an array of 3 numbers instead of an object with `r`, `g`, `b` properties. - -## From 28.x to 29 - -- **getOpenGLRenderWindow**: `getOpenGLRenderWindow` has been renamed to `getApiSpecificRenderWindow` in `vtkFullScreenRenderWindow`, `vtkGenericRenderWindow` and `vtkViewProxy` to support WebGL and WebGPU backend. ([#2816](https://github.com/Kitware/vtk-js/pull/2816)) -- **WidgetManager**: Deprecated APIs have been fully removed. ([#2910](https://github.com/Kitware/vtk-js/pull/2910)) -- **OpenGLRenderWindow**: WebXR API has been moved into a WebXR RenderWindowHelper. ([#2924](https://github.com/Kitware/vtk-js/pull/2924)) -- **DistanceWidget**: Removed from vtk.js in favor of vtkLineWidget ([#2945](https://github.com/Kitware/vtk-js/pull/2945)) - -## From 27.x to 28 - -- **vtkManipulator.handleEvent**: Change all `handleEvent` signatures of manipulators. Used to be `handleEvent(callData, glRenderWindow): vec3`, it is now `handleEvent(callData, glRenderWindow): { worldCoords: Nullable, worldDirection?: mat3 }`. - - To upgrade: all instances of `const coords = manipulator.handleEvent(...)` must now be `const { worldCoords } = manipulator.handleEvent(...)`. - -## From 26.x to 27 - -- **abstractimagemapper**: Before this change, the vtkAbstractImageMapper extended vtkAbstractMapper. Now, it extends vtkAbstractMapper3D. Applications with custom sub-classes of vtkAbstractImageMapper that have their own overrides for {set/get}Bounds and {set/get}Center would shadow the superclass methods. - -## From 25.x to 26 - -- **ResliceCursorWidget**: vtkResliceCursorContextRepresentation is deprecated and removed. -Instead, a `vtkSphereHandleRepresentation` is used for `rotation` and `center` handles, -and a `vtkLineHandleRepresenttion` is used for the axes. `rotateLineInView()` now -takes an axis name (string, e.g. 'XinY') instead of a substate. `enableRotation`, `enableTranslation` and `keepOrthogonality` in widgetState are replaced by widget behavior accessors (e.g. `widgetInView.setEnableRotation(false)`). See RCW example. - - `widgetState.setShowCenter()` is replaced by `widgetState.getCenterHandle.setVisible()` - - `widgetState.setSphereRadius()` is replaced by `widgetState.getCenterHandle().setScale1()` and `widgetState.getStatesWithLabel('rotation').forEach((handle) => handle.setScale1())` - - `widgetState.setLineThickness(t)` is replaced by `widgetState.getStatesWithLabel('line').forEach((handle) => handle.setScale3(t,t,t))` - - `setScaleInPixels()` should now be set on the widget instead of the `widgetInView`. - - `widgetState.setOpacity()` is replaced by `widgetState.getStatesWithLabel('handles').forEach((handle) => handle.setOpacity())` -- SVGRepresentation and SVG widget support has been fully removed. - -## From 24.x to 25 - -- **math**: For functions calling math functions for computations with matrices, the format must now be number[] or Matrix as defined in the typescript definitions. -- All widgets handles inheriting from vtkHandleRepresentation now scale up automatically. - -## From 23.x to 24 - -- All old-style widgets except OrientationMarkerWidget and PiecewiseGaussianWidget have been removed. - -| **Old-style/deprecated widget** | **New-style widget** | -|-----------------------------------|---------------------------------| -| `Sources/Interaction/Widgets/...` | `Sources/Widgets/Widgets3D/...` | -| DistanceWidget | DistanceWidget | -| HandleWidget | PolyLineWidget | -| ImageCroppingRegionsWidget | ImageCroppingWidget | -| LabelWidget | LabelWidget | -| LineWidget | LineWidget | -| OrientationMarkerWidget (kept) | *not implemented* | -| PiecewiseGaussianWidget (kept) | *not implemented* | -| ResliceCursor | ResliceCursorWidget | - -- In SVGLandmarkRepresentation: `model.showCircle` is replaced by `model.circleProps.visible` -- In vtk.js subclasses, prefix with '_' the following "protected" model variables: - - vtk*: model.openglRenderWindow -> model._openglRenderWindow - - vtk*: model.openglRenderer -> model._openglRenderer - - vtkInteractorObserver, vtkOrientationMarkerWidget : model.interactor -> model._interactor - - vtkAbstractWidget, vtkViewNode: model.parent -> model._parent - - vtkProp: model.parentProp -> model._parentProp - - vtkRenderWindowInteractor: model.view -> model._view - - vtkRenderer: model.renderWindow -> model._renderWindow - - vtkHardwareSelector: model.renderer -> model._renderer - - vtkAbstractWidget: model.widgetManager -> model._widgetManager - -## From 22.x to 23 - -- **imagemapper**: The original behavior of the image mapper was that if a lookup table is provided, -it mapped the lookup table's scalar range by default. The new behavior disables using the lookup -table scalar range by default. Instead, the window/level values are used. - -## From 21.x to 22 - -- `config/rules-linter.js` is now gone. -- **AbstractMapper**: Changed removeClippingPlane to use instance instead of index. - -## From 20.x to 21 - -SplineWidget's handles now scale up automatically. - -## From 19.x to 20 - -In ShapeWidget: -- `setLabelTextCallback` is replaced by `text` substate. -- `setPixelScale` has been removed. It should be replaced by point handle `scale1` mixin and `scaleInPixels`. -- `useHandles` has been removed. It should be replaced by `setHandleVisibility`. -- `resetAfterPointPlacement` is now false by default. - -RectangleWidget and EllipseWidget handles now scale up automatically. - -## From 19.2 to 19.3 - -Node >=12 is required - -## From 18.x to 19 - -vtkWidgetRepresentation.updateActorVisibility(...) lost the widgetVisibility parameter. -Overrides should no longer define that parameter. - -## From 17.x to 18 - -Explicit import needs to be performed to enable rendering implementation. Profiles -have been created to simplify that task. See vtk.js/Sources/Rendering/OpenGL|WebGPU/Profiles/*. - -## From 16.x to 17 - -vtkBoundingBox has been redesigned to be more light weight with static methods. -A simple class has been created for backward compatibility. - -## From 15.x to 16 - -Deprecation of kw-web-suite and using a newer version of webpack for building vtk.js. - -## From 14.x to 15 - -Semantic release messed up? - -## From 13.x to 14 - -css-loader update means we need to change how css modules are -configured. - -## From 12.x to 13 - -manipulators: No breaking changes internally. But the CompositeMouseManipulator no longer -receives key down and key up events. I don't know of anything that this could break, but it might. - -## From 11.x to 12 - -Manipulators: manipulator lists are now actually modified by removing -the manipulator from the list of manipulators, and not just replacing them -by null value for a certain index. This affects the resulting size of the -manipulator list, and users should not rely on an index that needed to -remain constant. Getters were also removed. - -## From 10.x to 11 - -vtkPlane: return result is changed if the line intersects the plane but outside of the -provided points. Previously would return intersect:false, but now intersect:true and -betweenPoints:false - -## From 9.x to 10 - -PiecewiseGaussianWidget: The optional arguments of setDataArray have been gathered inside a single options -object since we added to that list component and numberOfComponents - -## From 8.x to 9 - -MatrixBuilder: Remove getVTKMatrix function as it had a side-effect, was poorly named, and was not -referenced anywhere else. If the user wants to transpose the matrix, they can do it after calling -getMatrix() - -## From 7.x to 8 - -ToolChain: Webpack rules may differ with babel 7 - -## From 6.x to 7 - -RenderWindow: OpenGL/RenderWindow::captureNextImage returns a promise with the imageURL instead of returing it -directly. Core/RenderWindow::captureImages returns an array of promise. -## From 5.x to 6 - -This switch focuses on simplifying the interactor observers, and forwarding events data to the callbacks: -- Remove `set/getAnimationState` and `start/stopState` in InteractorStyle. Instead, use `start/stop${stateName}`. -- Remove `CharEvent` which was a duplicate of `KeyPressEvent`. -- Rename `setEnable*(` to `setEnabled()` in AbstractWidget. -- Remove `get2DPointerPosition()` from AbstractWidget: the position will now be properly positioned based on the canvas bounds as soon as it is caught by the Interactor. -- Rename `Pinch` events to `MouseWheel` events when those events are triggered by the mouse wheel, and use the wheel delta instead of a scale. -- The interaction state is now passed through the callbacks to the events instead of being stored within the RenderWindowInteractor. That means the following API is replaced as such: - - `i.getEventPosition` -> `callData.position` (no need for an index) - - `i.getScale` -> `callData.scale` if pinching, or use `callData.wheelDelta` if you are in a MouseWheel event instead - - `i.getTranslation` -> `callData.translation` - - `i.getRotation` -> `callData.rotation` - - for multitouch, touch positions are forwarded in `callData.positions` as `{touchid1: {x:x1, y:y1, z:z1}, touchid2: {x:x2, y:y2, z:z2}`} - - every "previous" state (`lastEventPosition`, `lastScale`...) needs to be stored from the observer, for example initialized in a `handleStart${event}` callback and updated in the `handle${event}` callback - - every callback data also holds `type` which is the event name -- Remove `findPokedRenderer` from the InteractorStyle/Observer. Instead, the latest poked renderer is passed through the callback as `callData.pokedRenderer`. That renderer is never `null` within callbacks since the event won't forward if it is. _You can also query the renderer through `RenderWindowInteractor.getCurrentRenderer()` but this is not recommended._ -- Add `renderer` as a parameter to `computeWorldToDisplay` and `computeDisplayToWorld` in InteractorObserver - -Add more consistency in Readers -- Readers should have the following set of API - - setURL(url, options) - - fetchData(options) // OPTIONAL and should not be required - - parseAsArrayBuffer(ArrayBuffer) or parseAsText(String) -- Affected readers: - - STLReader - - Legacy/PolyDataReader - - ElevationReader - - MTLReader - - OBJReader - - PDBReader - - XMLReader - -Refactor InteractorStyleManipulator with its manipulator -- Rename all the classes to make them consistent -- Update API to distinguish mode vs state (mode[drag/scroll], state[button,alt,control,shift]) -- Update impacted code and example - -## From 4.x to 5 - -Improve and normalize methods inside DataAccessHelper to allow network progress monitoring: -- Refactor fetchText(instance = {}, url, compression, progressCallback) into fetchText(instance = {}, url, options = { compression, progressCallback: fn() }) -- Refactor fetchJSON(instance = {}, url, compression) into fetchJSON(instance = {}, baseURL, array, options = { compression, progressCallback: fn() }) -- Refactor fetchArray(instance = {}, baseURL, array, fetchGzip = false) into fetchArray(instance = {}, baseURL, array, options = { compression: 'gz', progressCallback: fn() }) -- Rename HttpDataSetReader.fetchZipFile(url) to HttpDataSetReader.fetchBinary(url, options) - -## From 3.x to 4 - -The representation module as been removed and a better approach has been taken for OBJ/MTL loading. - -## From 2.x to 3 - -Migrate to Webpack 2+ which changed the way rules are defined and how to intgrate vtk.js into your project. The following [documentation](https://kitware.github.io/vtk-js/docs/intro_vtk_as_es6_dependency.html) has been updated accordingly. - -## From 1.x to 2 - -### vtkDataSetAttributes - -vtkDataSetAttributes has been reimplemented to follow the VTK model. By doing so the data model structure as changed and any code that was using it as input will need to be updated. - -Before: - -{ - "ArrayName": { vtkDataArray instance ... } -} - -After: - -{ - "activeTCoords": -1, - "activeScalars": -1, - "vtkClass": "vtkDataSetAttributes", - "arrays": [ - { "data": { vtkDataArray instance ... } } - ], - "activeNormals": -1, - "activeGlobalIds": -1, - "activeTensors": -1, - "activePedigreeIds": -1, - "activeVectors": -1 -} - -### vtkPoints - -points used to be simple vtkDataArray. -Now we have a vtkPoint class that contains a vtkDataArray in its data. - -Before: - -const coordsAsTypedArray = dataset.getPoints().getData(); - -After: - -const dataArray = dataset.getPoints().getData(); -const coordsAsTypedArray = dataArray.getData(); - -### vtk() - -Serialization model changed from { type: 'vtkPolyData', ... } to { vtkClass: 'vtkPolyData', ... }. diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/CONTRIBUTING.md b/build_vtk_bundle/node_modules/@kitware/vtk.js/CONTRIBUTING.md deleted file mode 100644 index 388b7bb1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/CONTRIBUTING.md +++ /dev/null @@ -1,133 +0,0 @@ -# Contributing to vtk.js ---- - -We welcome you to join the development of vtk.js. This document will help you through the process. - -## Before You Start - -Please follow the coding style: - -- Follow [Airbnb JavaScript Style Guide](https://github.com/airbnb/javascript). -- Use soft-tabs with a two space indent. -- Don't put commas first. - -## Workflow - -1. The vtk.js source is maintained [on GitHub](https://github.com/kitware/vtk-js). -2. [Fork vtk.js](https://help.github.com/articles/fork-a-repo/) into your user's namespace on GitHub. -3. Clone the repository to your computer. - - ```sh - $ git clone https://github.com//vtk-js.git - $ cd vtk-js - ``` - -4. Run the install script for vtk.js dependencies: - ```sh - $ npm install - ``` - -5. Create a feature branch. - - ``` - $ git checkout -b new_feature - ``` - -4. Start hacking. Additional information on how to create class/test/example can be found - [here](https://kitware.github.io/vtk-js/docs/) in the __Development__ section. - - ```sh - $ edit file1 file2 file3 - $ git add file1 file2 file3 - ``` - -5. Use Commitizen to create commits - - ```sh - $ npm run commit - ``` - -6. Push commits in your feature branch to your fork in GitHub: - - ```sh - $ git push origin new_feature - ``` - -7. Visit your fork in Github, browse to the "**Pull Requests**" link on the left, and use the - "**New Pull Request**" button in the upper right to create a Pull Request. - - For more information see: - [Create a Pull Request](https://help.github.com/articles/creating-a-pull-request/) - -If committing changes to `vtk.js@next` or `vtk.js@next-major`, then set your base branch to be `next` -or `next-major`, respectively. For more info see the section on release channels below. - -8. vtk.js uses GitHub for code review and Github Actions to validate proposed patches before they are merged. - -## Release Channels - -vtk.js currently has semantic-release configured with three release channels: -- `master` publishes to `vtk.js` on npm -- `next` publishes to `vtk.js@next` on npm -- `next-major` publishes to `vtk.js@next-major` on npm - -When creating a Pull Request, it is recommended to understand which base branch you choose to merge into. -That way, code that needs more testing in downstream projects can pull from one of the `next` or `next-major` -channels without impacting the primary `master` release channel. - -If you are unsure as to which branch you want to merge into, below outlines some general tips. -- If you are committing bug fixes or other minor fixes, then you can merge into `master`. -- If you are committing features that you want to test before merging into the primary release, then - use `next`. -- If you are committing breaking changes, then it is best to merge into `next-major`. That way you - can test any relevant downstream applications by targeting `vtk.js@next-major` before merging those - changes into master. - -For folks with merge permissions: when you are satisfied with `next` or `next-major`, you can merge the -branch into `master`. This will simply make the version at `vtk.js@next` or `vtk.js@next-major` available -via `npm install vtk.js`. - -### Merging and handling multiple PRs - -If you are merging multiple PRs, but you only want to increment the major/minor/patch number by one, -then you should *not* merge into any of `master`, `next`, or `next-major`. Instead, create a staging -branch off of master, and then merge the PRs into that staging branch. (Note semantic-release will not -run for the staging branch, since it is only configured to run for the three aforementioned branches.) Once -you are satisfied with the staging branch changes, you can then merge into either `master`, `next`, or -`next-major` as you see fit. - -## Notice - -- Don't modify the version number in `package.json`. -- Your pull request will only get merged when tests passed. Don't forget to run tests before - submission. - - ``` - $ npm run test - ``` - -## Tests - -To create and debug a test: -- Create a testFuncNameToTest.js in a "test" folder of the class to test. -- If you want to run just your test, use `test.only(...)` instead of `test(...)`. -- Run `npm run test:debug` -- In the opened window, click the Debug button and place breakpoints in browser debugger. - -## Updating Documentation - -The vtk.js documentation is part of the code repository and is entirely written in -[markdown](https://daringfireball.net/projects/markdown/). - -If you create an example, please list it in the [examples landing page](Documentation/content/examples/index.md). - -Images and GIF videos added to the [gallery](Documentation/content/docs/gallery) must be compressed as much as possible (e.g. 432px by 300px with 50% JPEG compression). You may want to use [ezgif.com](https://ezgif.com/). - -## Reporting Issues - -If you encounter problems using vtk.js you may be able to find the solutions in the -[troubleshooting docs](https://kitware.github.io/vtk-js/docs/misc_troubleshooting.html), in an -existing [GitHub issue](https://github.com/kitware/vtk-js/issues), or via the -[mailing list](http://www.vtk.org/VTK/help/mailing.html). -If you can't find the answer, please -[report a new issue on GitHub](https://github.com/Kitware/vtk-js/issues/new). diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core.js deleted file mode 100644 index 08c85fa3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core.js +++ /dev/null @@ -1,35 +0,0 @@ -import Base64 from './Core/Base64.js'; -import vtkCellArray from './Core/CellArray.js'; -import vtkDataArray from './Core/DataArray.js'; -import Endian from './Core/Endian.js'; -import HalfFloat from './Core/HalfFloat.js'; -import ImageHelper from './Core/ImageHelper.js'; -import vtkLookupTable from './Core/LookupTable.js'; -import { v as vtkMath } from './Core/Math/index.js'; -import vtkMatrixBuilder from './Core/MatrixBuilder.js'; -import vtkPoints from './Core/Points.js'; -import vtkProgressHandler from './Core/ProgressHandler.js'; -import vtkScalarsToColors from './Core/ScalarsToColors.js'; -import vtkStringArray from './Core/StringArray.js'; -import vtkURLExtract from './Core/URLExtract.js'; -import vtkVariantArray from './Core/VariantArray.js'; - -var Core = { - vtkBase64: Base64, - vtkCellArray, - vtkDataArray, - vtkEndian: Endian, - vtkHalfFloat: HalfFloat, - vtkImageHelper: ImageHelper, - vtkLookupTable, - vtkMath, - vtkMatrixBuilder, - vtkPoints, - vtkProgressHandler, - vtkScalarsToColors, - vtkStringArray, - vtkURLExtract, - vtkVariantArray -}; - -export { Core as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Base64.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Base64.d.ts deleted file mode 100644 index ec2c6448..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Base64.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Base64 helper to process base64 strings. - */ - -/** - * Convert a Base64 string to an ArrayBuffer. - * @param {string} b64Str - * @return An ArrayBuffer object. - */ -export function toArrayBuffer(b64Str: string): ArrayBuffer; - -/** - * Convert a Base64 string to an ArrayBuffer. - * @param {string} b64Str - * @return An ArrayBuffer object. - */ -export function fromArrayBuffer(ab: ArrayBuffer): string; - -interface Base64 { - toArrayBuffer: typeof toArrayBuffer; - fromArrayBuffer: typeof fromArrayBuffer; -} - -declare const Base64: Base64; -export default Base64; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Base64.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Base64.js deleted file mode 100644 index 35b98bc6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Base64.js +++ /dev/null @@ -1,159 +0,0 @@ -/* eslint-disable no-bitwise */ - -// ---------------------------------------------------------------------------- -// Decoding infrastructure -// ---------------------------------------------------------------------------- - -const REVERSE_LOOKUP = []; -REVERSE_LOOKUP['-'.charCodeAt(0)] = 62; -REVERSE_LOOKUP['_'.charCodeAt(0)] = 63; -const BASE64_CODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; -for (let i = 0; i < BASE64_CODE.length; i++) { - REVERSE_LOOKUP[BASE64_CODE.charCodeAt(i)] = i; -} - -// ---------------------------------------------------------------------------- -// Base64 analysis -// ---------------------------------------------------------------------------- - -function isValidChar(c) { - return REVERSE_LOOKUP[c.charCodeAt(0)] !== undefined; -} -function extractChunks(b64Str) { - const strSize = b64Str.length; - const chunks = []; - let currentChunk = null; - for (let i = 0; i < strSize; i++) { - if (isValidChar(b64Str[i])) { - if (!currentChunk) { - currentChunk = { - start: i, - count: 0 - }; - } - currentChunk.count++; - currentChunk.end = i; - } else if (b64Str[i] === '=' && currentChunk) { - // End of chunk (found padding char) - chunks.push(currentChunk); - currentChunk = null; - } - } - if (currentChunk) { - chunks.push(currentChunk); - } - return chunks; -} -function writeChunk(b64Str, chunk, dstOffset, uint8) { - const { - start, - count - } = chunk; - const remain = count % 4; - const fourCharProcessCount = Math.floor(count / 4); - let charIdx = start; - let tmp = null; - let offset = dstOffset; - - // Handle 4=>3 - for (let i = 0; i < fourCharProcessCount; i++) { - while (!isValidChar(b64Str[charIdx])) { - charIdx++; - } - tmp = REVERSE_LOOKUP[b64Str.charCodeAt(charIdx++)] << 18; - while (!isValidChar(b64Str[charIdx])) { - charIdx++; - } - tmp |= REVERSE_LOOKUP[b64Str.charCodeAt(charIdx++)] << 12; - while (!isValidChar(b64Str[charIdx])) { - charIdx++; - } - tmp |= REVERSE_LOOKUP[b64Str.charCodeAt(charIdx++)] << 6; - while (!isValidChar(b64Str[charIdx])) { - charIdx++; - } - tmp |= REVERSE_LOOKUP[b64Str.charCodeAt(charIdx++)]; - uint8[offset++] = tmp >> 16 & 0xff; - uint8[offset++] = tmp >> 8 & 0xff; - uint8[offset++] = tmp & 0xff; - } - - // Handle remain - switch (remain) { - case 3: - while (!isValidChar(b64Str[charIdx])) { - charIdx++; - } - tmp = REVERSE_LOOKUP[b64Str.charCodeAt(charIdx++)] << 10; - while (!isValidChar(b64Str[charIdx])) { - charIdx++; - } - tmp |= REVERSE_LOOKUP[b64Str.charCodeAt(charIdx++)] << 4; - while (!isValidChar(b64Str[charIdx])) { - charIdx++; - } - tmp |= REVERSE_LOOKUP[b64Str.charCodeAt(charIdx++)] >> 2; - uint8[offset++] = tmp >> 8 & 0xff; - uint8[offset++] = tmp & 0xff; - break; - case 2: - while (!isValidChar(b64Str[charIdx])) { - charIdx++; - } - tmp = REVERSE_LOOKUP[b64Str.charCodeAt(charIdx++)] << 2; - while (!isValidChar(b64Str[charIdx])) { - charIdx++; - } - tmp |= REVERSE_LOOKUP[b64Str.charCodeAt(charIdx++)] >> 4; - uint8[offset++] = tmp & 0xff; - break; - case 1: - throw new Error('BASE64: remain 1 should not happen'); - } - return offset; -} -function toArrayBuffer(b64Str) { - const chunks = extractChunks(b64Str); - const totalEncodedLength = chunks[chunks.length - 1].end + 1; - const padding = (4 - totalEncodedLength % 4) % 4; // -length mod 4 - // Any padding chars in the middle of b64Str is to be interpreted as \x00, - // whereas the terminating padding chars are to be interpreted as literal padding. - const totalSize = (totalEncodedLength + padding) * 3 / 4 - padding; - const arrayBuffer = new ArrayBuffer(totalSize); - const view = new Uint8Array(arrayBuffer); - let dstOffset = 0; - for (let i = 0; i < chunks.length; i++) { - dstOffset += writeChunk(b64Str, chunks[i], dstOffset, view); - dstOffset += (4 - chunks[i].count % 4) % 4; - } - return arrayBuffer; -} -function encodeTriplet(v1, v2, v3) { - const triplet = (v1 << 16) + (v2 << 8) + v3; - return BASE64_CODE[triplet >> 18] + BASE64_CODE[triplet >> 12 & 0x3f] + BASE64_CODE[triplet >> 6 & 0x3f] + BASE64_CODE[triplet & 0x3f]; -} -function fromArrayBuffer(ab) { - const uint8 = new Uint8Array(ab); - const leftoverLength = ab.byteLength % 3; - const maxTripletIndex = ab.byteLength - leftoverLength; - const segments = Array(maxTripletIndex / 3); - for (let i = 0; i < segments.length; i++) { - const bufOffset = i * 3; - segments[i] = encodeTriplet(uint8[bufOffset], uint8[bufOffset + 1], uint8[bufOffset + 2]); - } - if (leftoverLength > 0) { - const segment = encodeTriplet(uint8[maxTripletIndex], uint8[maxTripletIndex + 1] || 0, uint8[maxTripletIndex + 2] || 0); - if (leftoverLength === 1) { - segments.push(`${segment.substr(0, 2)}==`); - } else if (leftoverLength === 2) { - segments.push(`${segment.substr(0, 3)}=`); - } - } - return segments.join(''); -} -var Base64 = { - toArrayBuffer, - fromArrayBuffer -}; - -export { Base64 as default, fromArrayBuffer, toArrayBuffer }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/CellArray.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/CellArray.d.ts deleted file mode 100644 index 85559a18..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/CellArray.d.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { TypedArray } from './../../types'; -import vtkDataArray, { IDataArrayInitialValues } from './DataArray'; - -/** - * The inital values of a vtkCellArray. - */ -export interface ICellArrayInitialValues extends IDataArrayInitialValues { - empty?: boolean; -} - -/** - * You are NOT allowed to modify the cell array via `getData()`. - * Only via `setData` or `insertNextCell` - */ -export interface vtkCellArray extends vtkDataArray { - /** - * Get the number of cells in the array. - * @param {Boolean} [recompute] Recompute the number of cells. - */ - getNumberOfCells(recompute?: boolean): number; - - /** - * Get the sizes of the cells in this array. - * @param {Boolean} [recompute] Recompute the cell sizes. - */ - getCellSizes(recompute?: boolean): any; - - /** - * Set the data of this array. - * @param {Number[]|TypedArray} typedArray The Array value. - */ - setData(typedArray: number[] | TypedArray): void; - - /** - * Returns the point indices at the given location as a subarray. - * @param loc - */ - getCell(loc: any): void; - - /** - * Insert a cell to this array in the next available slot. - * This may re-allocate a new typed array if the current one is not large enough. - * If the final size of the array is known up-front, it is more efficient to call - * `allocate()` before calling `insertNextCell()` multiple times. - * @param {Number[]} cellPointIds The list of point ids (NOT prefixed with the number of points) - * @returns {Number} Idx of where the cell was inserted - */ - insertNextCell(cellPointIds: number[]): number; - - /** - * Get the maximum cell size. - */ - getMaxCellSize(): number; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkCellArray characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ICellArrayInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ICellArrayInitialValues -): void; - -/** - * Method used to create a new instance of vtkCellArray - * @param {ICellArrayInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ICellArrayInitialValues -): vtkCellArray; - -/** - * @static - * @param cellArray - */ -export function extractCellSizes(cellArray: any): any; - -/** - * @static - * @param cellArray - */ -export function getNumberOfCells(cellArray: any): any; - -/** - * vtkCellArray stores dataset topologies as an explicit connectivity table - * listing the point ids that make up each cell. - * - * @see [vtkDataArray](./Common_Core_DataArray.html) - */ -export declare const vtkCellArray: { - newInstance: typeof newInstance; - extend: typeof extend; - extractCellSizes: typeof extractCellSizes; - getNumberOfCells: typeof getNumberOfCells; -}; -export default vtkCellArray; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/CellArray.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/CellArray.js deleted file mode 100644 index 03095adc..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/CellArray.js +++ /dev/null @@ -1,152 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkDataArray from './DataArray.js'; -import { VtkDataTypes } from './DataArray/Constants.js'; - -const { - isVtkObject -} = macro; -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -function extractCellSizes(cellArray) { - let currentIdx = 0; - return cellArray.filter((value, index) => { - if (index === currentIdx) { - currentIdx += value + 1; - return true; - } - return false; - }); -} -function getNumberOfCells(cellArray) { - let cellId = 0; - for (let cellArrayIndex = 0; cellArrayIndex < cellArray.length;) { - cellArrayIndex += cellArray[cellArrayIndex] + 1; - cellId++; - } - return cellId; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = { - extractCellSizes, - getNumberOfCells -}; - -// ---------------------------------------------------------------------------- -// vtkCellArray methods -// ---------------------------------------------------------------------------- - -function vtkCellArray(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCellArray'); - const superClass = { - ...publicAPI - }; - publicAPI.getNumberOfCells = recompute => { - if (model.numberOfCells !== undefined && !recompute) { - return model.numberOfCells; - } - if (model.cellSizes) { - model.numberOfCells = model.cellSizes.length; - } else { - model.numberOfCells = getNumberOfCells(publicAPI.getData()); - } - return model.numberOfCells; - }; - publicAPI.getCellSizes = recompute => { - if (model.cellSizes !== undefined && !recompute) { - return model.cellSizes; - } - model.cellSizes = extractCellSizes(publicAPI.getData()); - return model.cellSizes; - }; - - /** - * When `resize()` is being used, you then MUST use `insertNextCell()`. - * @see vtkCellArray#insertNextCell - * @see vtkDataArray#allocate - */ - publicAPI.resize = requestedNumTuples => { - const oldNumTuples = publicAPI.getNumberOfTuples(); - superClass.resize(requestedNumTuples); - const newNumTuples = publicAPI.getNumberOfTuples(); - if (newNumTuples < oldNumTuples) { - if (newNumTuples === 0) { - model.numberOfCells = 0; - model.cellSizes = []; - } else { - // We do not know how many cells are left. - // Set to undefined to ensure insertNextCell works correctly. - model.numberOfCells = undefined; - model.cellSizes = undefined; - } - } - }; - publicAPI.setData = typedArray => { - superClass.setData(typedArray, 1); - model.numberOfCells = undefined; - model.cellSizes = undefined; - }; - publicAPI.getCell = loc => { - let cellLoc = loc; - const numberOfPoints = model.values[cellLoc++]; - return model.values.subarray(cellLoc, cellLoc + numberOfPoints); - }; - publicAPI.insertNextCell = cell => { - let cellPointIds; - if (isVtkObject(cell)) { - cellPointIds = cell.getPointsIds(); - } else { - cellPointIds = cell; - } - const cellId = publicAPI.getNumberOfCells(); - publicAPI.insertNextTuples([cellPointIds.length, ...cellPointIds]); - // By computing the number of cells earlier, we made sure that numberOfCells is defined - ++model.numberOfCells; - if (model.cellSizes != null) { - model.cellSizes.push(cellPointIds.length); - } - return cellId; - }; - publicAPI.getMaxCellSize = () => publicAPI.getCellSizes().reduce((a, b) => Math.max(a, b), 0); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - return { - empty: true, - numberOfComponents: 1, - dataType: VtkDataTypes.UNSIGNED_INT, - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - vtkDataArray.extend(publicAPI, model, defaultValues(initialValues)); - vtkCellArray(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCellArray'); - -// ---------------------------------------------------------------------------- - -var vtkCellArray$1 = { - newInstance, - extend, - ...STATIC -}; - -export { STATIC, vtkCellArray$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ClassHierarchy.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ClassHierarchy.js deleted file mode 100644 index 3207f352..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ClassHierarchy.js +++ /dev/null @@ -1,13 +0,0 @@ -/* eslint-disable prefer-rest-params */ -class ClassHierarchy extends Array { - push() { - for (let i = 0; i < arguments.length; i++) { - if (!this.includes(arguments[i])) { - super.push(arguments[i]); - } - } - return this.length; - } -} - -export { ClassHierarchy as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/DataArray.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/DataArray.d.ts deleted file mode 100644 index 036c80dd..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/DataArray.d.ts +++ /dev/null @@ -1,501 +0,0 @@ -import { vtkObject, vtkRange } from './../../interfaces'; -import { float, int, Nullable, Range, TypedArray } from './../../types'; - -/** - * Output of the rangeHelper instance - */ -interface VtkStatisticInformation { - min: number; - max: number; - count: number; - sum: number; - mean: number; -} - -/** - * Helper class used to compute data range of a set of numbers - */ -interface vtkRangeHelper { - add(value: number): void; - get(): VtkStatisticInformation; - getRange(): vtkRange; -} - -/** - * The inital values of a vtkDataArray. - */ -export interface IDataArrayInitialValues { - dataType?: string; - empty?: boolean; - name?: string; - numberOfComponents?: number; - rangeTuple?: Range; - size?: number; - values?: Array | TypedArray; -} - -export interface vtkDataArray extends vtkObject { - /** - * Get the size, in bytes, of the lowest-level element of an array. - */ - getElementComponentSize(): number; - - /** - * Get the component for a given tupleIdx. - * @param {Number} tupleIdx - * @param {Number} [componentIndex] (default: 0) - */ - getComponent(tupleIdx: number, componentIndex?: number): number; - - /** - * Set the component value for a given tupleIdx and componentIndex. - * @param {Number} tupleIdx - * @param {Number} componentIndex - * @param {Number} value - */ - setComponent(tupleIdx: number, componentIndex: number, value: number): void; - - /** - * - */ - getData(): number[] | TypedArray; - - /** - * Call this method when the underlying data has changed - * This method calls `modified()` - * For example, when you need to modify chunks of the array, it is faster - * to get the underlying array with `getData()`, modify it, and then call - * `dataChange()`. - */ - dataChange(): void; - - /** - * Get the range of the given component. - * - * @param {Number} componentIndex (default: -1) - */ - getRange(componentIndex?: number): Range; - - /** - * - * @param {vtkRange} rangeValue - * @param {Number} componentIndex - */ - setRange(rangeValue: vtkRange, componentIndex: number): Range; - - /** - * Returns an array of the ranges for each component of the DataArray. - * Defaults to computing all the ranges if they aren't already computed. - * - * If the number of components is greater than 1, the last element in the - * ranges array is the min,max magnitude of the dataset. This is the same as - * calling `getRange(-1)`. - * - * Passing `getRanges(false)` will return a clone of the ranges that have - * already been computed. This is useful when you want to avoid recomputing - * the ranges, which can be expensive. - * - * @param {boolean} [computeRanges] (default: true) - * @returns {vtkRange[]} - */ - getRanges(computeRanges: boolean): vtkRange[]; - - /** - * Set the given tuple at the given index. - * @param {Number} idx - * @param {Array|TypedArray} tuple - */ - setTuple(idx: number, tuple: Array | TypedArray): void; - - /** - * Set the given tuples starting at the given index. - * @param {Number} idx - * @param {Array|TypedArray} tuples - */ - setTuples(idx: number, tuples: Array | TypedArray): void; - - /** - * Get the tuple at the given index. - * - * For performance reasons, it is advised to pass a 'tupleToFill': - * `const x = [];` - * `for (int i = 0; i < N; ++i) { - * ` dataArray.getTuple(idx, x);` - * ` ...` - * instead of: - * `for (int i = 0; i < N; ++i) { - * ` const x = dataArray.getTuple(idx);` - * `...` - * @param {Number} idx - * @param {Number[]|TypedArray} [tupleToFill] (default []) - * @returns {Number[]|TypedArray} - */ - getTuple( - idx: number, - tupleToFill?: number[] | TypedArray - ): number[] | TypedArray; - - /** - * Get the tuples between fromId (inclusive) and toId (exclusive). - * - * If fromId or toId is negative, it refers to a tuple index from the - * end of the underlying typedArray. - * If the range between fromId and toId is invalid, getTuples returns - * null. - * - * NOTE: Any changes to the returned TypedArray will result in changes to - * this DataArray's underlying TypedArray. - * - * @param {Number} [fromId] (default: 0) - * @param {Number} [toId] (default: publicAPI.getNumberOfTuples()) - * @returns {Nullable} - */ - getTuples(fromId?: number, toId?: number): Nullable; - - /** - * Insert the given tuple at the given index. - * NOTE: May resize the data values array. "Safe" version of setTuple. - * - * A typical usage is when `vtkDataArray` is initialized with - * `initialValues = { size: 0, values: new Uint8Array(1000) }`, where - * an empty but pre-allocated array with 1'000 components is created. - * The component values can then be inserted with `insertTuple()` or - * `insertNextTuple()` without requiring new memory allocation until - * the size of 1'000 is exceeded (e.g. after inserting the 250th - * 4-component tuple). - * - * `insertTuple` increases the number of tuples (`getNumberOfTuples()`). - * - * @see insertNextTuple - * @see getNumberOfTuples - * @see allocate - * - * @param {Number} idx - * @param {Array|TypedArray} tuple - * @returns {Number} Index of the inserted tuple - */ - insertTuple(idx: number, tuple: Array | TypedArray): number; - - /** - * Insert tuples starting at the given idx. - * - * @param {Number} idx - * @param {Array|TypedArray} tuples Flat array of tuples to insert - * @returns The index of the last inserted tuple - */ - insertTuples(idx: number, tuples: Array | TypedArray): number; - - /** - * Insert the given tuple at the next available slot and return the index of the insertion. - * NOTE: May resize the data values array. "Safe" version of setTuple. - * - * @see insertTuple - * @see allocate - * - * @param {Array|TypedArray} tuple - * @returns {Number} Index of the inserted tuple. - */ - insertNextTuple(tuple: Array | TypedArray): number; - - /** - * Convenience function to insert an array of tuples with insertNextTuple. - * NOTE: tuples.length must be a multiple of `getNumberOfComponents`. - * @param {Array|TypedArray} tuples - * @returns The index of the last inserted tuple - */ - insertNextTuples(tuples: Array | TypedArray): number; - - /** - * - * @param {Number} [idx] (default: 1) - * @returns {Number} - */ - getTupleLocation(idx?: number): number; - - /** - * Get the dimension (n) of the components. - * @returns {Number} - */ - getNumberOfComponents(): number; - - /** - * Get the actual number of values in the array, which is equal to `getNumberOfTuples() * getNumberOfComponents()`. - * @returns {Number} - */ - getNumberOfValues(): number; - - /** - * Get the actual number of complete tuples (a component group) in the array. - * @returns {Number} - */ - getNumberOfTuples(): number; - - /** - * Convenient method to search the index of the first matching tuple in the array. - * This is a naïve search, consider using a "locator" instead. - * @param {Array|TypedArray} tupleToSearch - * @param {Number} precision (1e-6 by default) - * @returns {Number} the index of the tuple if found, -1 otherwise. - */ - findTuple( - tupleToSearch: Array | TypedArray, - precision?: number - ): number; - - /** - * Get the data type of this array as a string. - * @returns {String} - */ - getDataType(): string; - - /** - * Return a clone of this array. - * @returns {vtkDataArray} - */ - newClone(): vtkDataArray; - - /** - * Get the name of the array. - * @returns {String} - */ - getName(): string; - - /** - * Set the data of this array. - * Optionally pass ´numberOfComponents´ to overwrite this dataArray's - * numberOfComponents. - * If this dataArray's numberOfComponents doesn't divide the given array's - * length, this dataArray's numberOfComponents is set to 1. - * - * @param {Number[]|TypedArray} typedArray The Array value. - * @param {Number} [numberOfComponents] - */ - setData(typedArray: number[] | TypedArray, numberOfComponents?: number): void; - - /** - * Get the state of this array. - * @returns {object} - */ - getState(): object; - - /** - * Deep copy of another vtkDataArray into this one. - * @param {vtkDataArray} other - */ - deepCopy(other: vtkDataArray): void; - - /** - * Interpolate between the tuples retrieved from source1 - * and source2 with the resp. indices and set the - * resulting tuple to the idx of this DataArray. - * - * @param {int} idx, - * @param {vtkDataArray} source1, - * @param {int} source1Idx, - * @param {vtkDataArray} source2, - * @param {int} source2Idx, - * @param {float} t - */ - interpolateTuple( - idx: int, - source1: vtkDataArray, - source1Idx: int, - source2: vtkDataArray, - source2Idx: int, - t: float - ): void; - - /** - * Resize the array to the requested number of extra tuples - * (added to the current number of tuples) and preserve data. - * model.size WILL NOT be modified. - * This is useful before multiple calls to `insertNextTuple()` or `insertNextTuples()`. - * @param {Number} extraNumTuples Number of tuples to allocate memory wise. - * @see insertNextTuple - * @see insertNextTuples - * @see allocate - */ - allocate(extraNumTuples: number): void; - - /** - * Resize the array to the requested number of tuples and preserve data. - * Increasing the array size may allocate extra memory beyond what was - * requested. - * Decreasing the array size will trim memory to the requested size. - * model.size WILL be modified according ot the new size. - * If requestedNumTuples > getNumberOfTuples(), - * it creates a new typed array and copies the old values to the new array. - * If requestedNumTuples < getNumberOfTuples(), the typed array is untouched, - * only model.size is modified. - * @param {Number} requestedNumTuples Final expected number of tuples; must be >= 0 - * @returns {Boolean} True if a resize occured, false otherwise - * @see insertNextTuple - * @see insertNextTuples - * @see initialize - * @see allocate - */ - resize(requestedNumTuples: number): boolean; - - /** - * Reset this array. - * NOTE: This won't touch the actual memory of the underlying typedArray. - * @see insertNextTuple - * @see insertNextTuples - */ - initialize(): void; - - // --- via macro -- - - /** - * Set the name of this array. - * @param {String} name - * @returns {Boolean} - */ - setName(name: string): boolean; - - /** - * Set the dimension (n) of the components. - * @param {Number} numberOfComponents - */ - setNumberOfComponents(numberOfComponents: number): boolean; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -/** - * Compute range of a given array. The array could be composed of tuples and - * individual component range could be computed as well as magnitude. - * - * ```js - * const array = [x0, y0, z0, x1, y1, z1, ..., xn, yn, zn]; - * const { min: yMin, max: yMax } = computeRange(array, 1, 3); - * const { min: minMagnitude, max: maxMagnitude } = computeRange(array, -1, 3); - * ``` - * - * @param {Number[]} values Array to go through to extract the range from - * @param {Number} [component] (default: 0) indice to use inside tuple size - * @param {Number} [numberOfComponents] (default: 1) size of the tuple - */ -export function computeRange( - values: ArrayLike, - component?: number, - numberOfComponents?: number -): vtkRange; - -/** - * Compute range of a given array, it only supports 1D arrays. - * - * @param {Number[]} values Array to go through to extract the range from - * @param {Number} offset offset index to select the desired component in the tuple - * @param {Number} numberOfComponents size of tuple in a multi-channel array - */ -export function fastComputeRange( - values: ArrayLike, - offset: number, - numberOfComponents: number -): vtkRange; - -/** - * @deprecated please use `fastComputeRange` instead - * Create helper object that can be used to gather min, max, count, sum of - * a set of values. - */ -export function createRangeHelper(): vtkRangeHelper; - -/** - * Return the name of a typed array - * - * ```js - * const isFloat32 = ('Float32Array' === getDataType(array)); - * const clone = new macro.TYPED_ARRAYS[getDataType(array)](array.length); - * ``` - * - * @param typedArray to extract its type from - */ -export function getDataType(typedArray: TypedArray): string; - -/** - * Return the max norm of a given vtkDataArray - * - * @param dataArray to process - */ -export function getMaxNorm(dataArray: vtkDataArray): number; - -/** - * Method use to decorate a given object (publicAPI+model) with vtkDataArray characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {object} [initialValues] (default: {}) Must pass a number > 0 for `size` except if `empty: true` is also passed or a non-empty typed array for `values`. - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IDataArrayInitialValues -): void; - -// ---------------------------------------------------------------------------- - -/** - * Method use to create a new instance of vtkDataArray - * - * If the provided `values` is a plain Array and `dataType` is not explicitly provided, - * then the vtkDataArray data type will be a Float32Array. - * - * @param {object} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: object): vtkDataArray; - -/** - * Constants capturing the number of bytes per element based on its data type. - */ -export enum DataTypeByteSize { - Int8Array, - Uint8Array, - Uint8ClampedArray, - Int16Array, - Uint16Array, - Int32Array, - Uint32Array, - Float32Array, - Float64Array, -} - -/** - * Constants capturing the various VTK data types. - */ -export enum VtkDataTypes { - VOID, - CHAR, - SIGNED_CHAR, - UNSIGNED_CHAR, - SHORT, - UNSIGNED_SHORT, - INT, - UNSIGNED_INT, - FLOAT, - DOUBLE, -} - -/** - * vtkDataArray is an abstract superclass for data array objects containing - * numeric data. - */ -export declare const vtkDataArray: { - newInstance: typeof newInstance; - extend: typeof extend; - // static - computeRange: typeof computeRange; - createRangeHelper: typeof createRangeHelper; - fastComputeRange: typeof fastComputeRange; - getDataType: typeof getDataType; - getMaxNorm: typeof getMaxNorm; - // constants - DataTypeByteSize: typeof DataTypeByteSize; - VtkDataTypes: typeof VtkDataTypes; - DefaultDataType: VtkDataTypes; -}; - -export default vtkDataArray; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/DataArray.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/DataArray.js deleted file mode 100644 index c9297c4d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/DataArray.js +++ /dev/null @@ -1,582 +0,0 @@ -import Constants from './DataArray/Constants.js'; -import { n as newInstance$1, a as newTypedArray, b as newTypedArrayFrom, o as obj, s as set, c as macro } from '../../macros2.js'; -import { n as norm } from './Math/index.js'; - -const { - vtkErrorMacro -} = macro; -const { - DefaultDataType -} = Constants; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- -const EPSILON = 1e-6; - -// Original source from https://www.npmjs.com/package/compute-range -// Modified to accept type arrays -function fastComputeRange(arr, offset, numberOfComponents) { - const len = arr.length; - let min = Number.MAX_VALUE; - let max = -Number.MAX_VALUE; - let x; - let i; - - // find first non-NaN value - for (i = offset; i < len; i += numberOfComponents) { - if (!Number.isNaN(arr[i])) { - min = arr[i]; - max = min; - break; - } - } - for (; i < len; i += numberOfComponents) { - x = arr[i]; - if (x < min) { - min = x; - } else if (x > max) { - max = x; - } - } - return { - min, - max - }; -} - -/** - * @deprecated please use fastComputeRange instead - */ -function createRangeHelper() { - let min = Number.MAX_VALUE; - let max = -Number.MAX_VALUE; - let count = 0; - let sum = 0; - return { - add(value) { - if (min > value) { - min = value; - } - if (max < value) { - max = value; - } - count++; - sum += value; - }, - get() { - return { - min, - max, - count, - sum, - mean: sum / count - }; - }, - getRange() { - return { - min, - max - }; - } - }; -} -function computeRange(values) { - let component = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - let numberOfComponents = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - if (component < 0 && numberOfComponents > 1) { - // Compute magnitude - const size = values.length; - const numberOfValues = size / numberOfComponents; - const data = new Float64Array(numberOfValues); - for (let i = 0, j = 0; i < numberOfValues; ++i) { - for (let nextJ = j + numberOfComponents; j < nextJ; ++j) { - data[i] += values[j] * values[j]; - } - data[i] **= 0.5; - } - return fastComputeRange(data, 0, 1); - } - return fastComputeRange(values, component < 0 ? 0 : component, numberOfComponents); -} -function ensureRangeSize(rangeArray) { - let size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - const ranges = rangeArray || []; - // Pad ranges with null value to get the - while (ranges.length <= size) { - ranges.push(null); - } - return ranges; -} -function getDataType(typedArray) { - // Expects toString() to return "[object ...Array]" - return Object.prototype.toString.call(typedArray).slice(8, -1); -} -function getMaxNorm(normArray) { - const numComps = normArray.getNumberOfComponents(); - let maxNorm = 0.0; - const tuple = new Array(numComps); - for (let i = 0; i < normArray.getNumberOfTuples(); ++i) { - normArray.getTuple(i, tuple); - const norm$1 = norm(tuple, numComps); - if (norm$1 > maxNorm) { - maxNorm = norm$1; - } - } - return maxNorm; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = { - computeRange, - createRangeHelper, - fastComputeRange, - getDataType, - getMaxNorm -}; - -// ---------------------------------------------------------------------------- -// vtkDataArray methods -// ---------------------------------------------------------------------------- - -function vtkDataArray(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkDataArray'); - - /** - * Resize model.values and copy the old values to the new array. - * @param {Number} requestedNumTuples Final expected number of tuples; must be >= 0 - * @returns {Boolean} True if a resize occured, false otherwise - */ - function resize(requestedNumTuples) { - if (requestedNumTuples < 0) { - return false; - } - const numComps = publicAPI.getNumberOfComponents(); - const numAllocatedTuples = model.values.length / (numComps > 0 ? numComps : 1); - if (requestedNumTuples === numAllocatedTuples) { - return true; - } - if (requestedNumTuples > numAllocatedTuples) { - // Requested size is bigger than current size. Allocate enough - // memory to fit the requested size and be more than double the - // currently allocated memory. - const oldValues = model.values; - model.values = newTypedArray(model.dataType, (requestedNumTuples + numAllocatedTuples) * numComps); - model.values.set(oldValues); - // The actual number of tuples is not increased, only memory is allocated. - return true; - } - - // Requested size is smaller than currently allocated size - if (model.size > requestedNumTuples * numComps) { - model.size = requestedNumTuples * numComps; - publicAPI.dataChange(); - } - return true; - } - publicAPI.dataChange = () => { - model.ranges = null; - publicAPI.modified(); - }; - publicAPI.allocate = extraNumTuples => { - resize(publicAPI.getNumberOfTuples() + extraNumTuples); - }; - publicAPI.resize = requestedNumTuples => { - resize(requestedNumTuples); - const newSize = requestedNumTuples * publicAPI.getNumberOfComponents(); - if (model.size !== newSize) { - model.size = newSize; - publicAPI.dataChange(); - return true; - } - return false; - }; - - // Restore the array to initial state - publicAPI.initialize = () => { - publicAPI.resize(0); - return publicAPI; - }; - publicAPI.getElementComponentSize = () => model.values.BYTES_PER_ELEMENT; - - // Description: - // Return the data component at the location specified by tupleIdx and - // compIdx. - publicAPI.getComponent = function (tupleIdx) { - let compIdx = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - return model.values[tupleIdx * model.numberOfComponents + compIdx]; - }; - - // Description: - // Set the data component at the location specified by tupleIdx and compIdx - // to value. - // Note that i is less than NumberOfTuples and j is less than - // NumberOfComponents. Make sure enough memory has been allocated - // (use SetNumberOfTuples() and SetNumberOfComponents()). - publicAPI.setComponent = (tupleIdx, compIdx, value) => { - if (value !== model.values[tupleIdx * model.numberOfComponents + compIdx]) { - model.values[tupleIdx * model.numberOfComponents + compIdx] = value; - publicAPI.dataChange(); - } - }; - publicAPI.getValue = valueIdx => { - const idx = valueIdx / model.numberOfComponents; - const comp = valueIdx % model.numberOfComponents; - return publicAPI.getComponent(idx, comp); - }; - publicAPI.setValue = (valueIdx, value) => { - const idx = valueIdx / model.numberOfComponents; - const comp = valueIdx % model.numberOfComponents; - publicAPI.setComponent(idx, comp, value); - }; - publicAPI.getData = () => model.size === model.values.length ? model.values : model.values.subarray(0, model.size); - publicAPI.getRange = function () { - let componentIndex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1; - let rangeIdx = componentIndex; - if (rangeIdx < 0) { - // If scalar data, then store in slot 0 (same as componentIndex = 0). - // If vector data, then store in last slot. - rangeIdx = model.numberOfComponents === 1 ? 0 : model.numberOfComponents; - } - let range = null; - if (!model.ranges) { - model.ranges = ensureRangeSize(model.ranges, model.numberOfComponents); - } - range = model.ranges[rangeIdx]; - if (range) { - model.rangeTuple[0] = range.min; - model.rangeTuple[1] = range.max; - return model.rangeTuple; - } - - // Need to compute ranges... - range = computeRange(publicAPI.getData(), componentIndex, model.numberOfComponents); - model.ranges[rangeIdx] = range; - model.rangeTuple[0] = range.min; - model.rangeTuple[1] = range.max; - return model.rangeTuple; - }; - publicAPI.setRange = (rangeValue, componentIndex) => { - if (!model.ranges) { - model.ranges = ensureRangeSize(model.ranges, model.numberOfComponents); - } - const range = { - min: rangeValue.min, - max: rangeValue.max - }; - model.ranges[componentIndex] = range; - model.rangeTuple[0] = range.min; - model.rangeTuple[1] = range.max; - return model.rangeTuple; - }; - publicAPI.getRanges = function () { - let computeRanges = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - if (!computeRanges) { - return structuredClone(model.ranges); - } - /** @type {import('../../../interfaces').vtkRange[]} */ - const ranges = []; - for (let i = 0; i < model.numberOfComponents; i++) { - const [min, max] = publicAPI.getRange(i); - /** @type {import('../../../interfaces').vtkRange} */ - const range = { - min, - max - }; - ranges.push(range); - } - // where the number of components is greater than 1, the last element in - // the range array is the min,max magnitude of the entire dataset. - if (model.numberOfComponents > 1) { - const [min, max] = publicAPI.getRange(-1); - /** @type {import('../../../interfaces').vtkRange} */ - const range = { - min, - max - }; - ranges.push(range); - } - return ranges; - }; - publicAPI.setTuple = (idx, tuple) => { - const offset = idx * model.numberOfComponents; - for (let i = 0; i < model.numberOfComponents; i++) { - model.values[offset + i] = tuple[i]; - } - }; - publicAPI.setTuples = (idx, tuples) => { - let i = idx * model.numberOfComponents; - const last = Math.min(tuples.length, model.size - i); - for (let j = 0; j < last;) { - model.values[i++] = tuples[j++]; - } - }; - publicAPI.insertTuple = (idx, tuple) => { - if (model.size <= idx * model.numberOfComponents) { - model.size = (idx + 1) * model.numberOfComponents; - resize(idx + 1); - } - publicAPI.setTuple(idx, tuple); - return idx; - }; - publicAPI.insertTuples = (idx, tuples) => { - const end = idx + tuples.length / model.numberOfComponents; - if (model.size < end * model.numberOfComponents) { - model.size = end * model.numberOfComponents; - resize(end); - } - publicAPI.setTuples(idx, tuples); - return end; - }; - publicAPI.insertNextTuple = tuple => { - const idx = model.size / model.numberOfComponents; - return publicAPI.insertTuple(idx, tuple); - }; - publicAPI.insertNextTuples = tuples => { - const idx = model.size / model.numberOfComponents; - return publicAPI.insertTuples(idx, tuples); - }; - publicAPI.findTuple = function (tuple) { - let precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : EPSILON; - for (let i = 0; i < model.size; i += model.numberOfComponents) { - if (Math.abs(tuple[0] - model.values[i]) <= precision) { - let match = true; - for (let j = 1; j < model.numberOfComponents; ++j) { - if (Math.abs(tuple[j] - model.values[i + j]) > precision) { - match = false; - break; - } - } - if (match) { - return i / model.numberOfComponents; - } - } - } - return -1; - }; - publicAPI.getTuple = function (idx) { - let tupleToFill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - const numberOfComponents = model.numberOfComponents || 1; - const offset = idx * numberOfComponents; - // Check most common component sizes first - // to avoid doing a for loop if possible - switch (numberOfComponents) { - case 4: - tupleToFill[3] = model.values[offset + 3]; - // eslint-disable-next-line no-fallthrough - case 3: - tupleToFill[2] = model.values[offset + 2]; - // eslint-disable-next-line no-fallthrough - case 2: - tupleToFill[1] = model.values[offset + 1]; - // eslint-disable-next-line no-fallthrough - case 1: - tupleToFill[0] = model.values[offset]; - break; - default: - for (let i = numberOfComponents - 1; i >= 0; --i) { - tupleToFill[i] = model.values[offset + i]; - } - } - return tupleToFill; - }; - publicAPI.getTuples = (fromId, toId) => { - const from = (fromId ?? 0) * model.numberOfComponents; - const to = (toId ?? publicAPI.getNumberOfTuples()) * model.numberOfComponents; - const arr = publicAPI.getData().subarray(from, to); - return arr.length > 0 ? arr : null; - }; - publicAPI.getTupleLocation = function () { - let idx = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; - return idx * model.numberOfComponents; - }; - publicAPI.getNumberOfComponents = () => model.numberOfComponents; - publicAPI.getNumberOfValues = () => model.size; - publicAPI.getNumberOfTuples = () => model.size / model.numberOfComponents; - publicAPI.getDataType = () => model.dataType; - /* eslint-disable no-use-before-define */ - publicAPI.newClone = () => newInstance({ - empty: true, - name: model.name, - dataType: model.dataType, - numberOfComponents: model.numberOfComponents - }); - /* eslint-enable no-use-before-define */ - - publicAPI.getName = () => { - if (!model.name) { - publicAPI.modified(); - model.name = `vtkDataArray${publicAPI.getMTime()}`; - } - return model.name; - }; - publicAPI.setData = (typedArray, numberOfComponents) => { - model.values = typedArray; - model.size = typedArray.length; - model.dataType = getDataType(typedArray); - if (numberOfComponents) { - model.numberOfComponents = numberOfComponents; - } - if (model.size % model.numberOfComponents !== 0) { - model.numberOfComponents = 1; - } - publicAPI.dataChange(); - }; - - // Override serialization support - publicAPI.getState = () => { - if (model.deleted) { - return null; - } - const jsonArchive = { - ...model, - vtkClass: publicAPI.getClassName() - }; - - // Convert typed array to regular array - jsonArchive.values = Array.from(jsonArchive.values); - delete jsonArchive.buffer; - - // Clean any empty data - Object.keys(jsonArchive).forEach(keyName => { - if (!jsonArchive[keyName]) { - delete jsonArchive[keyName]; - } - }); - - // Sort resulting object by key name - const sortedObj = {}; - Object.keys(jsonArchive).sort().forEach(name => { - sortedObj[name] = jsonArchive[name]; - }); - - // Remove mtime - if (sortedObj.mtime) { - delete sortedObj.mtime; - } - return sortedObj; - }; - - /** - * @param {import("./index").vtkDataArray} other - */ - publicAPI.deepCopy = other => { - // Retain current dataType and array reference before shallowCopy call. - const currentType = publicAPI.getDataType(); - const currentArray = model.values; - publicAPI.shallowCopy(other); - - // set the ranges - model.ranges = structuredClone(other.getRanges()); - - // Avoid array reallocation if size already sufficient - // and dataTypes match. - if (currentArray?.length >= other.getNumberOfValues() && currentType === other.getDataType()) { - currentArray.set(other.getData()); - model.values = currentArray; - publicAPI.dataChange(); - } else { - publicAPI.setData(other.getData().slice()); - } - }; - publicAPI.interpolateTuple = (idx, source1, source1Idx, source2, source2Idx, t) => { - const numberOfComponents = model.numberOfComponents || 1; - if (numberOfComponents !== source1.getNumberOfComponents() || numberOfComponents !== source2.getNumberOfComponents()) { - vtkErrorMacro('numberOfComponents must match'); - } - const tuple1 = source1.getTuple(source1Idx); - const tuple2 = source2.getTuple(source2Idx); - const out = []; - out.length = numberOfComponents; - - // Check most common component sizes first - // to avoid doing a for loop if possible - switch (numberOfComponents) { - case 4: - out[3] = tuple1[3] + (tuple2[3] - tuple1[3]) * t; - // eslint-disable-next-line no-fallthrough - case 3: - out[2] = tuple1[2] + (tuple2[2] - tuple1[2]) * t; - // eslint-disable-next-line no-fallthrough - case 2: - out[1] = tuple1[1] + (tuple2[1] - tuple1[1]) * t; - // eslint-disable-next-line no-fallthrough - case 1: - out[0] = tuple1[0] + (tuple2[0] - tuple1[0]) * t; - break; - default: - for (let i = 0; i < numberOfComponents; i++) { - out[i] = tuple1[i] + (tuple2[i] - tuple1[i]) * t; - } - } - return publicAPI.insertTuple(idx, out); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -// size: The current size of the dataArray. -// NOTE: The underlying typed array may be larger than 'size'. -const DEFAULT_VALUES = { - name: '', - numberOfComponents: 1, - dataType: DefaultDataType, - rangeTuple: [0, 0] - // size: undefined, - // values: null, - // ranges: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - if (Array.isArray(initialValues.values) && initialValues.dataType === undefined) { - console.warn('vtkDataArray.newInstance: no dataType provided, converting to Float32Array'); - } - if (!model.empty && !model.values && !model.size) { - throw new TypeError('Cannot create vtkDataArray object without: size > 0, values'); - } - if (!model.values) { - model.values = newTypedArray(model.dataType, model.size); - } else if (Array.isArray(model.values)) { - model.values = newTypedArrayFrom(model.dataType, model.values); - } - if (model.values) { - // Takes the size if provided (can be lower than `model.values`) otherwise the actual length of `values`. - model.size = model.size ?? model.values.length; - model.dataType = getDataType(model.values); - } - - // Object methods - obj(publicAPI, model); - set(publicAPI, model, ['name', 'numberOfComponents']); - if (model.size % model.numberOfComponents !== 0) { - throw new RangeError('model.size is not a multiple of model.numberOfComponents'); - } - - // Object specific methods - vtkDataArray(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkDataArray'); - -// ---------------------------------------------------------------------------- - -var vtkDataArray$1 = { - newInstance, - extend, - ...STATIC, - ...Constants -}; - -export { STATIC, vtkDataArray$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/DataArray/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/DataArray/Constants.js deleted file mode 100644 index f2681e88..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/DataArray/Constants.js +++ /dev/null @@ -1,34 +0,0 @@ -const DataTypeByteSize = { - Int8Array: 1, - Uint8Array: 1, - Uint8ClampedArray: 1, - Int16Array: 2, - Uint16Array: 2, - Int32Array: 4, - Uint32Array: 4, - Float32Array: 4, - Float64Array: 8 -}; -const VtkDataTypes = { - VOID: '', - // not sure to know what that should be - CHAR: 'Int8Array', - SIGNED_CHAR: 'Int8Array', - UNSIGNED_CHAR: 'Uint8Array', - UNSIGNED_CHAR_CLAMPED: 'Uint8ClampedArray', - // should be used for VTK.js internal purpose only - SHORT: 'Int16Array', - UNSIGNED_SHORT: 'Uint16Array', - INT: 'Int32Array', - UNSIGNED_INT: 'Uint32Array', - FLOAT: 'Float32Array', - DOUBLE: 'Float64Array' -}; -const DefaultDataType = VtkDataTypes.FLOAT; -var Constants = { - DefaultDataType, - DataTypeByteSize, - VtkDataTypes -}; - -export { DataTypeByteSize, DefaultDataType, VtkDataTypes, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Endian.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Endian.d.ts deleted file mode 100644 index 16feb1c3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Endian.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Nullable } from './../../types'; - -/** - * Get the endianness - */ -export function getEndianness(): Nullable; - -export const ENDIANNESS: string; - -/** - * - * @param {ArrayBuffer} buffer - * @param {Number} wordSize - */ -export function swapBytes(buffer: ArrayBuffer, wordSize: number): void; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Endian.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Endian.js deleted file mode 100644 index 9380e648..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Endian.js +++ /dev/null @@ -1,36 +0,0 @@ -function getEndianness() { - const a = new ArrayBuffer(4); - const b = new Uint8Array(a); - const c = new Uint32Array(a); - b[0] = 0xa1; - b[1] = 0xb2; - b[2] = 0xc3; - b[3] = 0xd4; - if (c[0] === 0xd4c3b2a1) return 'LittleEndian'; - if (c[0] === 0xa1b2c3d4) return 'BigEndian'; - return null; -} -const ENDIANNESS = getEndianness(); -function swapBytes(buffer, wordSize) { - if (wordSize < 2) { - return; - } - const bytes = new Int8Array(buffer); - const size = bytes.length; - const tempBuffer = []; - for (let i = 0; i < size; i += wordSize) { - for (let j = 0; j < wordSize; j++) { - tempBuffer.push(bytes[i + j]); - } - for (let j = 0; j < wordSize; j++) { - bytes[i + j] = tempBuffer.pop(); - } - } -} -var Endian = { - ENDIANNESS, - getEndianness, - swapBytes -}; - -export { ENDIANNESS, Endian as default, getEndianness, swapBytes }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/HalfFloat.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/HalfFloat.d.ts deleted file mode 100644 index 2f943fbe..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/HalfFloat.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Helper class to convert to/from half float - */ - -/** - * Convert a number to half float representation - * @param {number} input - * @return encoded half float number (16 bits) - */ -export function toHalf(input: number): number; - -/** - * Convert a half float representation to a number - * @param {number} input - * @return decoded half float number - */ -export function fromHalf(input: number): number; - -export declare const HalfFloat: { - toHalf: typeof toHalf; - fromHalf: typeof fromHalf; -}; - -export default HalfFloat; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/HalfFloat.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/HalfFloat.js deleted file mode 100644 index ca8c7bd0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/HalfFloat.js +++ /dev/null @@ -1,63 +0,0 @@ -/* eslint-disable no-bitwise */ - -const floatView = new Float32Array(1); -const int32View = new Int32Array(floatView.buffer); - -/* eslint-disable no-bitwise */ -/* This method is faster than the OpenEXR implementation (very often - * used, eg. in Ogre), with the additional benefit of rounding, inspired - * by James Tursa?s half-precision code. */ -function toHalf(val) { - floatView[0] = val; - const x = int32View[0]; - let bits = x >> 16 & 0x8000; /* Get the sign */ - let m = x >> 12 & 0x07ff; /* Keep one extra bit for rounding */ - const e = x >> 23 & 0xff; /* Using int is faster here */ - - /* If zero, or denormal, or exponent underflows too much for a denormal - * half, return signed zero. */ - if (e < 103) { - return bits; - } - - /* If NaN, return NaN. If Inf or exponent overflow, return Inf. */ - if (e > 142) { - bits |= 0x7c00; - /* If exponent was 0xff and one mantissa bit was set, it means NaN, - * not Inf, so make sure we set one mantissa bit too. */ - bits |= (e === 255 ? 0 : 1) && x & 0x007fffff; - return bits; - } - - /* If exponent underflows but not too much, return a denormal */ - if (e < 113) { - m |= 0x0800; - /* Extra rounding may overflow and set mantissa to 0 and exponent - * to 1, which is OK. */ - bits |= (m >> 114 - e) + (m >> 113 - e & 1); - return bits; - } - bits |= e - 112 << 10 | m >> 1; - /* Extra rounding. An overflow will set mantissa to 0 and increment - * the exponent, which is OK. */ - bits += m & 1; - return bits; -} -function fromHalf(h) { - const s = (h & 0x8000) >> 15; - const e = (h & 0x7c00) >> 10; - const f = h & 0x03ff; - if (e === 0) { - return (s ? -1 : 1) * 2 ** -14 * (f / 2 ** 10); - } - if (e === 0x1f) { - return f ? NaN : (s ? -1 : 1) * Infinity; - } - return (s ? -1 : 1) * 2 ** (e - 15) * (1 + f / 2 ** 10); -} -var HalfFloat = { - fromHalf, - toHalf -}; - -export { HalfFloat as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ImageHelper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ImageHelper.d.ts deleted file mode 100644 index 92c4cc7f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ImageHelper.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import vtkImageData from './../DataModel/ImageData'; - -interface ITransform { - flipX: boolean; - flipY: boolean; - rotate: number; -} - -/** - * Takes a canvas and converts it to a vtkImageData. - * - * Optionally supply a bounding box to get a particular subset of the canvas. - * - * @param {HTMLCanvasElement} canvas The HTML canvas to convert. - * @param {Number[]} [boundingBox] A bounding box of type [top, left, width, height] - */ -export function canvasToImageData( - canvas: HTMLCanvasElement, - boundingBox?: number[] -): vtkImageData; - -/** - * Converts an Image object to a vtkImageData. - * @param {HTMLImageElement} image The HTML image to convert. - * @param {ITransform} [transform] default={flipX: false, flipY: false, rotate: 0} - */ -export function imageToImageData( - image: HTMLImageElement, - transform?: ITransform -): vtkImageData; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ImageHelper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ImageHelper.js deleted file mode 100644 index 9855fd74..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ImageHelper.js +++ /dev/null @@ -1,61 +0,0 @@ -import vtkImageData from '../DataModel/ImageData.js'; -import vtkDataArray from './DataArray.js'; - -/** - * Takes a canvas and converts it to a vtkImageData. - * - * Optionally supply a bounding box to get a particular subset of the canvas. - * - * @param canvas The HTML canvas to convert - * @param boundingBox A bounding box of type [top, left, width, height] - */ -function canvasToImageData(canvas) { - let boundingBox = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [0, 0, 0, 0]; - const [top, left, width, height] = boundingBox; - const ctxt = canvas.getContext('2d'); - const idata = ctxt.getImageData(top, left, width || canvas.width, height || canvas.height); - const imageData = vtkImageData.newInstance({ - type: 'vtkImageData' - }); - imageData.setOrigin(0, 0, 0); - imageData.setSpacing(1, 1, 1); - imageData.setExtent(0, (width || canvas.width) - 1, 0, (height || canvas.height) - 1, 0, 0); - const scalars = vtkDataArray.newInstance({ - numberOfComponents: 4, - values: new Uint8Array(idata.data.buffer) - }); - scalars.setName('scalars'); - imageData.getPointData().setScalars(scalars); - return imageData; -} - -/** - * Converts an Image object to a vtkImageData. - */ -function imageToImageData(image) { - let transform = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { - flipX: false, - flipY: false, - rotate: 0 - }; - const canvas = document.createElement('canvas'); - canvas.width = image.width; - canvas.height = image.height; - const ctx = canvas.getContext('2d'); - const { - flipX, - flipY, - rotate - } = transform; - ctx.translate(canvas.width / 2, canvas.height / 2); - ctx.scale(flipX ? -1 : 1, flipY ? -1 : 1); - ctx.rotate(rotate * Math.PI / 180); - ctx.drawImage(image, -image.width / 2, -image.height / 2); - return canvasToImageData(canvas); -} -var ImageHelper = { - canvasToImageData, - imageToImageData -}; - -export { ImageHelper as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/LookupTable.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/LookupTable.d.ts deleted file mode 100644 index df8a4142..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/LookupTable.d.ts +++ /dev/null @@ -1,287 +0,0 @@ -import { Range, RGBAColor } from './../../types'; -import vtkScalarsToColors from './ScalarsToColors'; - -/** - * - */ -export interface ILookupTableInitialValues {} - -export interface vtkLookupTable extends vtkScalarsToColors { - /** - * - */ - buildSpecialColors(): void; - - /** - * - */ - forceBuild(): void; - - /** - * - */ - getAboveRangeColor(): RGBAColor; - - /** - * - */ - getAboveRangeColorByReference(): RGBAColor; - - /** - * - */ - getAlphaRange(): Range; - - /** - * - */ - getAlphaRangeByReference(): Range; - - /** - * - */ - getBelowRangeColor(): RGBAColor; - - /** - * - */ - getBelowRangeColorByReference(): RGBAColor; - - /** - * - */ - getHueRange(): Range; - - /** - * - */ - getHueRangeByReference(): Range; - - /** - * - */ - getNanColor(): RGBAColor; - - /** - * - */ - getNanColorByReference(): RGBAColor; - - /** - * - */ - getNumberOfAnnotatedValues(): number; - - /** - * - */ - getNumberOfAvailableColors(): number; - - /** - * - */ - getNumberOfColors(): number; - - /** - * - */ - getRange(): Range; - - /** - * - */ - getSaturationRange(): Range; - - /** - * - */ - getSaturationRangeByReference(): Range; - - /** - * - */ - getUseAboveRangeColor(): boolean; - - /** - * - */ - getUseBelowRangeColor(): boolean; - - /** - * - */ - getValueRange(): Range; - - /** - * - */ - getValueRangeByReference(): Range; - - /** - * - * @param v - * @param table - * @param p - */ - indexedLookupFunction(v: number, table: any, p: object): RGBAColor; - - /** - * - * @param v - * @param p - */ - linearIndexLookup(v: number, p: object): number; - - /** - * - * @param v - * @param table - * @param p - */ - linearLookup(v: number, table: any, p: object): RGBAColor; - - /** - * - * @param range - * @param p - */ - lookupShiftAndScale(range: Range, p: object): boolean; - - /** - * - * @param aboveRangeColor - */ - setAboveRangeColor(aboveRangeColor: RGBAColor): boolean; - - /** - * - * @param aboveRangeColor - */ - setAboveRangeColorFrom(aboveRangeColor: RGBAColor): boolean; - - /** - * - * @param alphaRange - */ - setAlphaRange(alphaRange: Range): boolean; - - /** - * - * @param alphaRange - */ - setAlphaRangeFrom(alphaRange: Range): boolean; - - /** - * - * @param belowRangeColor - */ - setBelowRangeColor(belowRangeColor: RGBAColor): boolean; - - /** - * - * @param belowRangeColor - */ - setBelowRangeColorFrom(belowRangeColor: RGBAColor): boolean; - - /** - * - * @param hueRange - */ - setHueRange(hueRange: Range): boolean; - - /** - * - * @param hueRange - */ - setHueRangeFrom(hueRange: Range): boolean; - - /** - * - * @param nanColor - */ - setNanColor(nanColor: RGBAColor): boolean; - - /** - * - * @param nanColor - */ - setNanColorFrom(nanColor: RGBAColor): boolean; - - /** - * - * @param numberOfColors - */ - setNumberOfColors(numberOfColors: number): boolean; - - /** - * - * @param saturationRange - */ - setSaturationRange(saturationRange: Range): boolean; - - /** - * - * @param saturationRange - */ - setSaturationRangeFrom(saturationRange: Range): boolean; - - /** - * - * @param table - */ - setTable(table: any): boolean; - - /** - * - * @param useAboveRangeColor - */ - setUseAboveRangeColor(useAboveRangeColor: boolean): boolean; - - /** - * - * @param useBelowRangeColor - */ - setUseBelowRangeColor(useBelowRangeColor: boolean): boolean; - - /** - * - * @param valueRange - */ - setValueRange(valueRange: Range): boolean; - - /** - * - * @param valueRange - */ - setValueRangeFrom(valueRange: Range): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkLookupTable characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ILookupTableInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ILookupTableInitialValues -): void; - -/** - * Method used to create a new instance of vtkLookupTable - * @param {ILookupTableInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ILookupTableInitialValues -): vtkLookupTable; - -/** - * vtkLookupTable is a 2D widget for manipulating a marker prop - */ -export declare const vtkLookupTable: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkLookupTable; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/LookupTable.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/LookupTable.js deleted file mode 100644 index a36b4885..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/LookupTable.js +++ /dev/null @@ -1,369 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { i as isNan, h as hsv2rgb } from './Math/index.js'; -import vtkScalarsToColors from './ScalarsToColors.js'; -import { ScalarMappingTarget } from './ScalarsToColors/Constants.js'; -import { VtkDataTypes } from './DataArray/Constants.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -// Add module-level functions or api that you want to expose statically via -// the next section... - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const BELOW_RANGE_COLOR_INDEX = 0; -const ABOVE_RANGE_COLOR_INDEX = 1; -const NAN_COLOR_INDEX = 2; - -// ---------------------------------------------------------------------------- -// vtkMyClass methods -// ---------------------------------------------------------------------------- - -function vtkLookupTable(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkLookupTable'); - - //---------------------------------------------------------------------------- - // Description: - // Return true if all of the values defining the mapping have an opacity - // equal to 1. Default implementation return true. - publicAPI.isOpaque = () => { - if (model.opaqueFlagBuildTime.getMTime() < publicAPI.getMTime()) { - let opaque = true; - if (model.nanColor[3] < 1.0) { - opaque = 0; - } - if (model.useBelowRangeColor && model.belowRangeColor[3] < 1.0) { - opaque = 0; - } - if (model.useAboveRangeColor && model.aboveRangeColor[3] < 1.0) { - opaque = 0; - } - for (let i = 3; i < model.table.length && opaque; i += 4) { - if (model.table[i] < 255) { - opaque = false; - } - } - model.opaqueFlag = opaque; - model.opaqueFlagBuildTime.modified(); - } - return model.opaqueFlag; - }; - publicAPI.usingLogScale = () => false; - - //---------------------------------------------------------------------------- - // Don't count special colors (min, max, NaN) as available colors - publicAPI.getNumberOfAvailableColors = () => model.table.length / 4 - 3; - - //---------------------------------------------------------------------------- - // Apply shift/scale to the scalar value v and return the index. - publicAPI.linearIndexLookup = (v, p) => { - let dIndex = 0; - const nv = Number(v); - if (nv < p.range[0]) { - dIndex = p.maxIndex + BELOW_RANGE_COLOR_INDEX + 1.5; - } else if (nv > p.range[1]) { - dIndex = p.maxIndex + ABOVE_RANGE_COLOR_INDEX + 1.5; - } else { - dIndex = (nv + p.shift) * p.scale; - - // This conditional is needed because when v is very close to - // p.Range[1], it may map above p.MaxIndex in the linear mapping - // above. - dIndex = dIndex < p.maxIndex ? dIndex : p.maxIndex; - } - return Math.floor(dIndex); - }; - publicAPI.linearLookup = (v, table, p) => { - let index = 0; - if (isNan(v)) { - index = Math.floor(p.maxIndex + 1.5 + NAN_COLOR_INDEX); - } else { - index = publicAPI.linearIndexLookup(v, p); - } - const offset = 4 * index; - return table.slice(offset, offset + 4); - }; - publicAPI.indexedLookupFunction = (v, table, p) => { - let index = publicAPI.getAnnotatedValueIndexInternal(v); - if (index === -1) { - index = model.numberOfColors + NAN_COLOR_INDEX; - } - const offset = 4 * index; - return [table[offset], table[offset + 1], table[offset + 2], table[offset + 3]]; - }; - - //---------------------------------------------------------------------------- - publicAPI.lookupShiftAndScale = (range, p) => { - p.shift = -range[0]; - p.scale = Number.MAX_VALUE; - if (range[1] > range[0]) { - p.scale = (p.maxIndex + 1) / (range[1] - range[0]); - } - }; - - // Public API methods - publicAPI.mapScalarsThroughTable = (input, output, outFormat, inputOffset) => { - let lookupFunc = publicAPI.linearLookup; - if (model.indexedLookup) { - lookupFunc = publicAPI.indexedLookupFunction; - } - const trange = publicAPI.getMappingRange(); - const p = { - maxIndex: publicAPI.getNumberOfColors() - 1, - range: trange, - shift: 0.0, - scale: 0.0 - }; - publicAPI.lookupShiftAndScale(trange, p); - const alpha = publicAPI.getAlpha(); - const length = input.getNumberOfTuples(); - const inIncr = input.getNumberOfComponents(); - const outputV = output.getData(); - const inputV = input.getData(); - if (alpha >= 1.0) { - if (outFormat === ScalarMappingTarget.RGBA) { - for (let i = 0; i < length; i++) { - const cptr = lookupFunc(inputV[i * inIncr + inputOffset], model.table, p); - outputV[i * 4] = cptr[0]; - outputV[i * 4 + 1] = cptr[1]; - outputV[i * 4 + 2] = cptr[2]; - outputV[i * 4 + 3] = cptr[3]; - } - } - } else { - /* eslint-disable no-lonely-if */ - if (outFormat === ScalarMappingTarget.RGBA) { - for (let i = 0; i < length; i++) { - const cptr = lookupFunc(inputV[i * inIncr + inputOffset], model.table, p); - outputV[i * 4] = cptr[0]; - outputV[i * 4 + 1] = cptr[1]; - outputV[i * 4 + 2] = cptr[2]; - outputV[i * 4 + 3] = Math.floor(cptr[3] * alpha + 0.5); - } - } - } // alpha blending - }; - - publicAPI.forceBuild = () => { - let hinc = 0.0; - let sinc = 0.0; - let vinc = 0.0; - let ainc = 0.0; - const maxIndex = model.numberOfColors - 1; - if (maxIndex) { - hinc = (model.hueRange[1] - model.hueRange[0]) / maxIndex; - sinc = (model.saturationRange[1] - model.saturationRange[0]) / maxIndex; - vinc = (model.valueRange[1] - model.valueRange[0]) / maxIndex; - ainc = (model.alphaRange[1] - model.alphaRange[0]) / maxIndex; - } - model.table.length = 4 * maxIndex + 16; - const hsv = []; - const rgba = []; - for (let i = 0; i <= maxIndex; i++) { - hsv[0] = model.hueRange[0] + i * hinc; - hsv[1] = model.saturationRange[0] + i * sinc; - hsv[2] = model.valueRange[0] + i * vinc; - hsv2rgb(hsv, rgba); - rgba[3] = model.alphaRange[0] + i * ainc; - - // case VTK_RAMP_LINEAR: - model.table[i * 4] = rgba[0] * 255.0 + 0.5; - model.table[i * 4 + 1] = rgba[1] * 255.0 + 0.5; - model.table[i * 4 + 2] = rgba[2] * 255.0 + 0.5; - model.table[i * 4 + 3] = rgba[3] * 255.0 + 0.5; - } - publicAPI.buildSpecialColors(); - model.buildTime.modified(); - }; - publicAPI.setTable = table => { - // Handle JS array (assume 2D array) - if (Array.isArray(table)) { - const nbComponents = table[0].length; - model.numberOfColors = table.length; - const colorOffset = 4 - nbComponents; - let offset = 0; - // fill table - for (let i = 0; i < model.numberOfColors; i++) { - model.table[i * 4] = 255; - model.table[i * 4 + 1] = 255; - model.table[i * 4 + 2] = 255; - model.table[i * 4 + 3] = 255; - } - // extract colors - for (let i = 0; i < table.length; i++) { - const color = table[i]; - for (let j = 0; j < nbComponents; j++) { - model.table[offset++] = color[j]; - } - offset += colorOffset; - } - publicAPI.buildSpecialColors(); - model.insertTime.modified(); - publicAPI.modified(); - return true; - } - if (table.getNumberOfComponents() !== 4) { - vtkErrorMacro('Expected 4 components for RGBA colors'); - return false; - } - if (table.getDataType() !== VtkDataTypes.UNSIGNED_CHAR) { - vtkErrorMacro('Expected unsigned char values for RGBA colors'); - return false; - } - model.numberOfColors = table.getNumberOfTuples(); - const data = table.getData(); - model.table.length = data.length; - for (let i = 0; i < data.length; i++) { - model.table[i] = data[i]; - } - publicAPI.buildSpecialColors(); - model.insertTime.modified(); - publicAPI.modified(); - return true; - }; - publicAPI.buildSpecialColors = () => { - // Add "special" colors (NaN, below range, above range) to table here. - const { - numberOfColors - } = model; - const tptr = model.table; - let base = (numberOfColors + BELOW_RANGE_COLOR_INDEX) * 4; - - // Below range color - if (model.useBelowRangeColor || numberOfColors === 0) { - tptr[base] = model.belowRangeColor[0] * 255.0 + 0.5; - tptr[base + 1] = model.belowRangeColor[1] * 255.0 + 0.5; - tptr[base + 2] = model.belowRangeColor[2] * 255.0 + 0.5; - tptr[base + 3] = model.belowRangeColor[3] * 255.0 + 0.5; - } else { - // Duplicate the first color in the table. - tptr[base] = tptr[0]; - tptr[base + 1] = tptr[1]; - tptr[base + 2] = tptr[2]; - tptr[base + 3] = tptr[3]; - } - - // Above range color - base = (numberOfColors + ABOVE_RANGE_COLOR_INDEX) * 4; - if (model.useAboveRangeColor || numberOfColors === 0) { - tptr[base] = model.aboveRangeColor[0] * 255.0 + 0.5; - tptr[base + 1] = model.aboveRangeColor[1] * 255.0 + 0.5; - tptr[base + 2] = model.aboveRangeColor[2] * 255.0 + 0.5; - tptr[base + 3] = model.aboveRangeColor[3] * 255.0 + 0.5; - } else { - // Duplicate the last color in the table. - tptr[base] = tptr[4 * (numberOfColors - 1) + 0]; - tptr[base + 1] = tptr[4 * (numberOfColors - 1) + 1]; - tptr[base + 2] = tptr[4 * (numberOfColors - 1) + 2]; - tptr[base + 3] = tptr[4 * (numberOfColors - 1) + 3]; - } - - // Always use NanColor - base = (numberOfColors + NAN_COLOR_INDEX) * 4; - tptr[base] = model.nanColor[0] * 255.0 + 0.5; - tptr[base + 1] = model.nanColor[1] * 255.0 + 0.5; - tptr[base + 2] = model.nanColor[2] * 255.0 + 0.5; - tptr[base + 3] = model.nanColor[3] * 255.0 + 0.5; - }; - publicAPI.build = () => { - if (model.table.length < 1 || publicAPI.getMTime() > model.buildTime.getMTime() && model.insertTime.getMTime() <= model.buildTime.getMTime()) { - publicAPI.forceBuild(); - } - }; - if (model.table.length > 0) { - // Ensure that special colors are properly included in the table - publicAPI.buildSpecialColors(); - - // ensure insertTime is more recently modified than buildTime if - // a table is provided via the constructor - model.insertTime.modified(); - } -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - numberOfColors: 256, - // table: null, - - hueRange: [0.0, 0.66667], - saturationRange: [1.0, 1.0], - valueRange: [1.0, 1.0], - alphaRange: [1.0, 1.0], - nanColor: [0.5, 0.0, 0.0, 1.0], - belowRangeColor: [0.0, 0.0, 0.0, 1.0], - aboveRangeColor: [1.0, 1.0, 1.0, 1.0], - useAboveRangeColor: false, - useBelowRangeColor: false, - alpha: 1.0 - // buildTime: null, - // opaqueFlagBuildTime: null, - // insertTime: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkScalarsToColors.extend(publicAPI, model, initialValues); - - // Internal objects initialization - if (!model.table) { - model.table = []; - } - model.buildTime = {}; - macro.obj(model.buildTime); - model.opaqueFlagBuildTime = {}; - macro.obj(model.opaqueFlagBuildTime, { - mtime: 0 - }); - model.insertTime = {}; - macro.obj(model.insertTime, { - mtime: 0 - }); - - // Create get-only macros - macro.get(publicAPI, model, ['buildTime']); - - // Create get-set macros - macro.setGet(publicAPI, model, ['numberOfColors', 'useAboveRangeColor', 'useBelowRangeColor']); - - // Create set macros for array (needs to know size) - macro.setArray(publicAPI, model, ['alphaRange', 'hueRange', 'saturationRange', 'valueRange'], 2); - macro.setArray(publicAPI, model, ['nanColor', 'belowRangeColor', 'aboveRangeColor'], 4); - - // Create get macros for array - macro.getArray(publicAPI, model, ['hueRange', 'saturationRange', 'valueRange', 'alphaRange', 'nanColor', 'belowRangeColor', 'aboveRangeColor']); - - // For more macro methods, see "Sources/macros.js" - - // Object specific methods - vtkLookupTable(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkLookupTable'); - -// ---------------------------------------------------------------------------- - -var vtkLookupTable$1 = { - newInstance, - extend -}; - -export { vtkLookupTable$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Math.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Math.d.ts deleted file mode 100644 index 5f80850a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Math.d.ts +++ /dev/null @@ -1,1257 +0,0 @@ -import { - Bounds, - Extent, - HSVColor, - RGBAColor, - RGBColor, - Matrix, - Matrix3x3, - Range, - Vector2, - Vector3, - Vector4, -} from './../../types'; - -/** - * - * @param {Number} size The size of the array. - */ -export function createArray(size?: number): number[]; - -/** - * Given two rows indices, swap the two rows of a nxn matrix - * @param {Number[]} matrix The n by n matrix in wich we want to swap the vectors. - * @param {Number} n size of the matrix. - * @param {Number} row1 index of first row to swap with the other. - * @param {Number} row2 index of second row to swap with the other. - */ -export function swapRowsMatrix_nxn( - matrix: number[], - n: number, - row1: number, - row2: number -): void; - -/** - * Given two columns indices, swap the two columns of a nxn matrix - * @param {Number[]} matrix The n by n matrix in wich we want to swap the vectors. - * @param {Number} n size of the matrix. - * @param {Number} column1 index of first col to swap with the other. - * @param {Number} column2 index of second col to swap with the other. - */ -export function swapColumnsMatrix_nxn( - matrix: number[], - n: number, - column1: number, - column2: number -): void; - -/** - * Get the number π. - */ -export function Pi(): number; - -/** - * Calculates x times (2 to the power of exponent). - */ -export function ldexp(x: number, exponent: number): number; - -/** - * Convert degrees to radians. - * @param {Number} deg The value in degrees. - */ -export function radiansFromDegrees(deg: number): number; - -/** - * Convert radians to degrees. - * @param {Number} rad The value in radians. - */ -export function degreesFromRadians(rad: number): number; - -/** - * Same as Math.round(). - * @param {Number} param1 The value to be rounded to the nearest integer. - */ -export function round(param1: number): number; - -/** - * Same as Math.floor(). - * @param {Number} param1 A numeric expression. - */ -export function floor(param1: number): number; - -/** - * Same as Math.ceil(). - * @param {Number} param1 A numeric expression. - */ -export function ceil(param1: number): number; - -/** - * Get the minimum of the two arguments provided. If either argument is NaN, - * the first argument will always be returned. - * @param {Number} param1 The first numeric expression. - * @param {Number} param2 The second numeric expression. - */ -export function min(param1: number, param2: number): number; - -/** - * Get the maximum of the two arguments provided. If either argument is NaN, - * the first argument will always be returned. - * @param {Number} param1 The first numeric expression. - * @param {Number} param2 The second numeric expression. - */ -export function max(param1: number, param2: number): number; - -/** - * Get the minimum of the array. - * @param {Number[]} arr The array. - * @param {Number} offset The offset. - * @param {Number} stride The stride. - */ -export function arrayMin(arr: number[], offset: number, stride: number): number; - -/** - * Get the maximum of the array. - * @param {Number[]} arr The array. - * @param {Number} offset The offset. - * @param {Number} stride The stride. - */ -export function arrayMax(arr: number[], offset: number, stride: number): number; - -/** - * - * @param {Number[]} arr The array. - * @param {Number} offset The offset. - * @param {Number} stride The stride. - */ -export function arrayRange( - arr: number[], - offset: number, - stride: number -): number[]; - -/** - * Gives the exponent of the lowest power of two not less than x. - * - */ -export function ceilLog2(): void; - -/** - * Compute N factorial, N! = N*(N-1) * (N-2)...*3*2*1. - */ -export function factorial(): void; - -/** - * Generate pseudo-random numbers distributed according to the standard normal - * distribution. - */ -export function gaussian(): void; - -/** - * Compute the nearest power of two that is not less than x. - * @param {Number} xi A numeric expression. - */ -export function nearestPowerOfTwo(xi: number): number; - -/** - * Returns true if integer is a power of two. - * @param {Number} x A numeric expression. - */ -export function isPowerOfTwo(x: number): boolean; - -/** - * The number of combinations of n objects from a pool of m objects (m>n). - * @param {Number} m The first numeric expression. - * @param {Number} n The second numeric expression. - */ -export function binomial(m: number, n: number): number; - -/** - * Start iterating over "m choose n" objects. - * @param {Number} [m] The first numeric expression. - * @param {Number} [n] The second numeric expression. - */ -export function beginCombination(m?: number, n?: number): number; - -/** - * Given m, n, and a valid combination of n integers in the range [0,m[, this - * function alters the integers into the next combination in a sequence of all - * combinations of n items from a pool of m. - * @param {Number} m The first numeric expression. - * @param {Number} n The second numeric expression. - * @param {Number[]} r - */ -export function nextCombination(m: number, n: number, r: number[]): number; - -/** - * Initialize seed value. - * @param {Number} seed - */ -export function randomSeed(seed: number): void; - -/** - * Return the current seed used by the random number generator. - */ -export function getSeed(): number; - -/** - * Generate pseudo-random numbers distributed according to the uniform - * distribution between min and max. - * @param {Number} minValue - * @param {Number} maxValue - */ -export function random(minValue: number, maxValue: number): number; - -/** - * Add two 3-vectors. - * @param {Vector3} a The first 3D vector. - * @param {Vector3} b The second 3D vector. - * @param {Vector3} out The output 3D vector. - * @example - * ```js - * a[3] + b[3] => out[3] - * ``` - */ -export function add(a: Vector3, b: Vector3, out: Vector3): Vector3; - -/** - * Substract two 3-vectors. - * @param {Vector3} a The first 3D vector. - * @param {Vector3} b The second 3D vector. - * @param {Vector3} out The output 3D vector. - * @example - * ```js - * a[3] - b[3] => out[3] - * ``` - */ -export function subtract(a: Vector3, b: Vector3, out: Vector3): Vector3; - -/** - * Multiply a 3-vector by a scalar. - * @param {Vector3} vec - * @param {Number} scalar - * @example - * ```js - * vec[3] * scalar => vec[3] - * ``` - */ -export function multiplyScalar(vec: Vector3, scalar: number): Vector3; - -/** - * Multiply a 3-vector by a scalar. - * @param {Vector2} vec - * @param {Number} scalar - * @example - * ```js - * vec[3] * scalar => vec[3] - * ``` - */ -export function multiplyScalar2D(vec: Vector2, scalar: number): Vector2; - -/** - * Multiply two 3-vectors. - * @param {Vector3} a - * @param {Vector3} b - * @param {Number} scalar - * @param {Vector3} out - * @example - * ```js - * a[3] + b[3] * scalar => out[3] - * ``` - */ -export function multiplyAccumulate( - a: Vector3, - b: Vector3, - scalar: number, - out: Vector3 -): Vector3; - -/** - * Multiply two 2-vectors. - * @param {Vector2} a - * @param {Vector2} b - * @param {Number} scalar - * @param {Vector2} out - * @example - * ```js - * a[2] + b[2] * scalar => out[2] - * ``` - */ -export function multiplyAccumulate2D( - a: Vector2, - b: Vector2, - scalar: number, - out: Vector2 -): Vector2; - -/** - * Dot product of two 3-vectors. - * @param {Vector3} x - * @param {Vector3} y - * @example - * ```js - * a[2] + b[2] * scalar => out[2] - * ``` - */ -export function dot(x: Vector3, y: Vector3): number; - -/** - * Outer product of two 3-vectors. - * @param {Vector3} x The first 3D vector. - * @param {Vector3} y The second 3D vector. - * @param {Matrix3x3} out_3x3 The output 3x3 matrix. - */ -export function outer(x: Vector3, y: Vector3, out_3x3: Matrix3x3): void; - -/** - * Computes cross product of 3D vectors x and y. - * @param {Vector3} x The first 3D vector. - * @param {Vector3} y The second 3D vector. - * @param {Vector3} out The output 3D vector. - */ -export function cross(x: Vector3, y: Vector3, out: Vector3): Vector3; - -/** - * Compute the norm of a vector. - * @param {Number[]} x The vector to compute the norm of. - * @param {Number} [n] The number of components to consider (default is 3). - */ -export function norm(x: number[], n?: number): number; - -/** - * Normalize in place. Returns norm. - * @param {Number[]} x The vector to normalize. - */ -export function normalize(x: number[]): number; - -/** - * Normalize in place. Returns norm. - * @param {Number[]} x The vector to normalize. - */ -export function normalize4D(x: number[]): number; - -/** - * Given a unit vector v1, find two unit vectors v2 and v3 such that v1 cross v2 = v3 - * @param {Vector3} x The first vector. - * @param {Vector3} y The second vector. - * @param {Vector3} z The third vector. - * @param {Number} theta - */ -export function perpendiculars( - x: Vector3, - y: Vector3, - z: Vector3, - theta: number -): void; - -/** - * Project vector `a` onto vector `b` and returns the result in projection vector. - * @param {Vector3} a The first 3D vector. - * @param {Vector3} b The second 3D vector. - * @param {Vector3} projection The projection 3D vector. - */ -export function projectVector( - a: Vector3, - b: Vector3, - projection: Vector3 -): boolean; - -/** - * Compute the dot product of two 2D vectors. - * @param {Vector2} x - * @param {Vector2} y - */ -export function dot2D(x: Vector2, y: Vector2): number; - -/** - * Compute the projection of 2D vector `a` on 2D vector `b` and returns the - * result in projection vector. - * @param {Vector2} a The first 2D vector. - * @param {Vector2} b The second 2D vector. - * @param {Vector2} projection The projection 2D vector. - */ -export function projectVector2D( - a: Vector2, - b: Vector2, - projection: Vector2 -): boolean; - -/** - * Compute distance squared between two points p1 and p2. - * @param {Vector3} x The first 3D vector. - * @param {Vector3} y The second 3D vector. - */ -export function distance2BetweenPoints(x: Vector3, y: Vector3): number; - -/** - * Angle between 3D vectors. - * @param {Vector3} v1 The first 3D vector. - * @param {Vector3} v2 The second 3D vector. - */ -export function angleBetweenVectors(v1: Vector3, v2: Vector3): number; - -/** - * Signed angle between v1 and v2 with regards to plane defined by normal vN. - * angle between v1 and v2 with regards to plane defined by normal vN.Signed - * angle between v1 and v2 with regards to plane defined by normal - * vN.t3(mat_3x3, in_3, out_3) - * @param {Vector3} v1 The first 3D vector. - * @param {Vector3} v2 The second 3D vector. - * @param {Vector3} vN - */ -export function signedAngleBetweenVectors( - v1: Vector3, - v2: Vector3, - vN: Vector3 -): number; - -/** - * Compute the amplitude of a Gaussian function with mean=0 and specified variance. - * @param {Number} mean The mean value. - * @param {Number} variance The variance value. - * @param {Number} position The position value. - */ -export function gaussianAmplitude( - mean: number, - variance: number, - position: number -): number; - -/** - * Compute the amplitude of an unnormalized Gaussian function with mean=0 and - * specified variance. - * @param {Number} mean The mean value. - * @param {Number} variance The variance value. - * @param {Number} position The position value. - */ -export function gaussianWeight( - mean: number, - variance: number, - position: number -): number; - -/** - * Outer product of two 2-vectors. - * @param {Vector2} x The first 2D vector. - * @param {Vector2} y The second 2D vector. - * @param {Matrix} out_2x2 The output 2x2 matrix. - */ -export function outer2D(x: Vector2, y: Vector2, out_2x2: Matrix): void; - -/** - * Compute the norm of a 2-vector. - * @param {Vector2} x2D x The 2D vector. - */ -export function norm2D(x2D: Vector2): number; - -/** - * Normalize (in place) a 2-vector. - * @param {Vector2} x The 2D vector. - */ -export function normalize2D(x: Vector2): number; - -/** - * - * @param {Number[]} args - */ -export function determinant2x2(args: number[]): number; - -/** - * Fill a 4x4 matrix with the given row vectors - * @param {Vector4} row0 - * @param {Vector4} row1 - * @param {Vector4} row2 - * @param {Vector4} row3 - * @param {Matrix} mat - */ -export function rowsToMat4( - row0: Vector4, - row1: Vector4, - row2: Vector4, - row3: Vector4, - mat: Matrix -): Matrix; - -/** - * Fill a 4x4 matrix with the given column vectors - * @param {Vector4} column0 - * @param {Vector4} column1 - * @param {Vector4} column2 - * @param {Vector4} column3 - * @param {Matrix} mat - */ -export function columnsToMat4( - column0: Vector4, - column1: Vector4, - column2: Vector4, - column3: Vector4, - mat: Matrix -): Matrix; - -/** - * Fill a 3x3 matrix with the given row vectors - * @param {Vector3} row0 - * @param {Vector3} row1 - * @param {Vector3} row2 - * @param {Matrix} mat - */ -export function rowsToMat3( - row0: Vector3, - row1: Vector3, - row2: Vector3, - mat: Matrix -): Matrix; - -/** - * Fill a 3x3 matrix with the given column vectors - * @param {Vector3} column0 - * @param {Vector3} column1 - * @param {Vector3} column2 - * @param {Matrix} mat - */ -export function columnsToMat3( - column0: Vector3, - column1: Vector3, - column2: Vector3, - mat: Matrix -): Matrix; - -/** - * LU Factorization of a 3x3 matrix. - * @param {Matrix3x3} mat_3x3 - * @param {Vector3} index_3 - */ -export function LUFactor3x3(mat_3x3: Matrix3x3, index_3: Vector3): void; - -/** - * LU back substitution for a 3x3 matrix. - * @param {Matrix3x3} mat_3x3 - * @param {Vector3} index_3 - * @param {Vector3} x_3 - */ -export function LUSolve3x3( - mat_3x3: Matrix3x3, - index_3: Vector3, - x_3: Vector3 -): void; - -/** - * Solve mat_3x3y_3 = x_3 for y and place the result in y. - * @param {Matrix3x3} mat_3x3 - * @param {Vector3} x_3 - * @param {Vector3} y_3 - */ -export function linearSolve3x3( - mat_3x3: Matrix3x3, - x_3: Vector3, - y_3: Vector3 -): void; - -/** - * - * @param {Matrix3x3} mat_3x3 - * @param {Vector3} in_3 - * @param {Vector3} out_3 - */ -export function multiply3x3_vect3( - mat_3x3: Matrix3x3, - in_3: Vector3, - out_3: Vector3 -): void; - -/** - * - * @param {Matrix3x3} a_3x3 - * @param {Matrix3x3} b_3x3 - * @param {Matrix3x3} out_3x3 - */ -export function multiply3x3_mat3( - a_3x3: Matrix3x3, - b_3x3: Matrix3x3, - out_3x3: Matrix3x3 -): void; - -/** - * Multiply two matrices. - * @param {Matrix} a - * @param {Matrix} b - * @param {Number} rowA - * @param {Number} colA - * @param {Number} rowB - * @param {Number} colB - * @param {Matrix} outRowAColB - */ -export function multiplyMatrix( - a: Matrix, - b: Matrix, - rowA: number, - colA: number, - rowB: number, - colB: number, - outRowAColB: Matrix -): void; - -/** - * Transpose a 3x3 matrix. - * @param {Matrix3x3} in_3x3 The input 3x3 matrix. - * @param {Matrix3x3} outT_3x3 The output 3x3 matrix. - */ -export function transpose3x3(in_3x3: Matrix3x3, outT_3x3: Matrix3x3): void; - -/** - * Invert a 3x3 matrix. - * @param {Matrix3x3} in_3x3 The input 3x3 matrix. - * @param {Matrix3x3} outI_3x3 The output 3x3 matrix. - */ -export function invert3x3(in_3x3: Matrix3x3, outI_3x3: Matrix3x3): void; - -/** - * Set mat to the identity matrix. - * @param {Number} n The size of the matrix. - * @param {Number[]} mat The output matrix. - * @see isIdentity() - * @see identity3x3() - */ -export function identity(n: number, mat: number[]): void; - -/** - * Set mat_3x3 to the identity matrix. - * @param {Matrix3x3} mat_3x3 The input 3x3 matrix. - * @see isIdentity3x3() - * @see identity() - */ -export function identity3x3(mat_3x3: Matrix3x3): void; - -/** - * Returns true if provided matrix is the identity matrix. - * @param {Number[]} mat The 3x3 matrix to check - * @param {Number} [eps] The tolerance value. - * @see isIdentity() - * @see identity() - */ -export function isIdentity(mat: Matrix3x3, eps?: number): boolean; - -/** - * Returns true if provided 3x3 matrix is the identity matrix. - * @param {Matrix3x3} mat The 3x3 matrix to check - * @param {Number} [eps] The tolerance value. - * @see isIdentity() - * @see identity3x3() - */ -export function isIdentity3x3(mat: Matrix3x3, eps?: number): boolean; - -/** - * Calculate the determinant of a 3x3 matrix. - * @param {Matrix3x3} mat_3x3 The input 3x3 matrix. - */ -export function determinant3x3(mat_3x3: Matrix3x3): number; - -/** - * - * @param {Vector4} quat_4 - * @param {Matrix3x3} mat_3x3 - */ -export function quaternionToMatrix3x3( - quat_4: Vector4, - mat_3x3: Matrix3x3 -): void; - -/** - * Returns true if elements of both arrays are equals. - * @param {Number[]} a An array of numbers (vector, point, matrix...) - * @param {Number[]} b An array of numbers (vector, point, matrix...) - * @param {Number} [eps] The tolerance value. - */ -export function areEquals(a: number[], b: number[], eps?: number): boolean; - -/** - * - * @param {Number} num - * @param {Number} [digits] - */ -export function roundNumber(num: number, digits?: number): number; - -/** - * - * @param {Vector3} vector - * @param {Vector3} [out] - * @param {Number} [digits] - */ -export function roundVector( - vector: Vector3, - out?: Vector3, - digits?: number -): Vector3; - -/** - * Jacobi iteration for the solution of eigenvectors/eigenvalues. Input matrix a is modified (the upper triangle is filled with zeros) - * @param {Matrix} a real symetric nxn matrix - * @param {Number} n matrix size - * @param {Number[]} w vector of size n to store eigenvalues (stored in decreasing order) - * @param {Number[]} v matrix of size nxn to store eigenvectors (stored in decreasing order, normalized) - */ -export function jacobiN(a: Matrix, n: number, w: number[], v: number[]): number; - -/** - * - * @param {Matrix3x3} mat_3x3 - * @param {Vector4} quat_4 - */ -export function matrix3x3ToQuaternion( - mat_3x3: Matrix3x3, - quat_4: Vector4 -): void; - -/** - * - * @param {Vector4} quat_1 - * @param {Vector4} quat_2 - * @param {Vector4} quat_out - */ -export function multiplyQuaternion( - quat_1: Vector4, - quat_2: Vector4, - quat_out: Vector4 -): void; - -/** - * - * @param {Matrix3x3} a_3x3 - * @param {Matrix3x3} out_3x3 - */ -export function orthogonalize3x3(a_3x3: Matrix3x3, out_3x3: Matrix3x3): void; - -/** - * - * @param {Matrix3x3} a_3x3 - * @param {Vector3} w_3 - * @param {Matrix3x3} v_3x3 - */ -export function diagonalize3x3( - a_3x3: Matrix3x3, - w_3: Vector3, - v_3x3: Matrix3x3 -): void; - -/** - * - * @param {Matrix3x3} a_3x3 - * @param {Matrix3x3} u_3x3 - * @param {Vector3} w_3 - * @param {Matrix3x3} vT_3x3 - */ -export function singularValueDecomposition3x3( - a_3x3: Matrix3x3, - u_3x3: Matrix3x3, - w_3: Vector3, - vT_3x3: Matrix3x3 -): void; - -/** - * - * @param {Matrix} A - * @param {Number[]} index - * @param {Number} size - */ -export function luFactorLinearSystem( - A: Matrix, - index: number[], - size: number -): number; - -/** - * - * @param {Matrix} A - * @param {Number[]} index - * @param {Number[]} x - * @param {Number} size - */ -export function luSolveLinearSystem( - A: Matrix, - index: number[], - x: number[], - size: number -): void; - -/** - * - * @param {Matrix} A - * @param {Number[]} x - * @param {Number} size - */ -export function solveLinearSystem(A: Matrix, x: number[], size: number): number; - -/** - * - * @param {Matrix} A The input matrix. It is modified during the inversion. - * @param {Matrix} AI The output inverse matrix. Can be the same as input matrix. - * @param {Number} [size] The square size of the matrix to invert : 4 for a 4x4 - * @param {Number[]} [index] - * @param {Number[]} [column] - * @returns AI on success, null otherwise - */ -export function invertMatrix( - A: Matrix, - AI: Matrix, - size?: number, - index?: number[], - column?: number[] -): Matrix | null; - -/** - * - * @param {Matrix} A - * @param {Number} size - */ -export function estimateMatrixCondition(A: Matrix, size: number): number; - -/** - * - * @param {Matrix3x3} a_3x3 - * @param {Number[]} w - * @param {Number[]} v - */ -export function jacobi(a_3x3: Matrix3x3, w: number[], v: number[]): number; - -/** - * Solves for the least squares best fit matrix for the homogeneous equation - * X'M' = 0'. Uses the method described on pages 40-41 of Computer Vision by - * Forsyth and Ponce, which is that the solution is the eigenvector associated - * with the minimum eigenvalue of T(X)X, where T(X) is the transpose of X. The - * inputs and output are transposed matrices. Dimensions: X' is numberOfSamples - * by xOrder, M' dimension is xOrder by yOrder. M' should be pre-allocated. All - * matrices are row major. The resultant matrix M' should be pre-multiplied to - * X' to get 0', or transposed and then post multiplied to X to get 0 - * @param {Number} numberOfSamples - * @param {Matrix} xt - * @param {Number} xOrder - * @param {Matrix} mt - */ -export function solveHomogeneousLeastSquares( - numberOfSamples: number, - xt: Matrix, - xOrder: number, - mt: Matrix -): number; - -/** - * Solves for the least squares best fit matrix for the equation X'M' = Y'. Uses - * pseudoinverse to get the ordinary least squares. The inputs and output are - * transposed matrices. Dimensions: X' is numberOfSamples by xOrder, Y' is - * numberOfSamples by yOrder, M' dimension is xOrder by yOrder. M' should be - * pre-allocated. All matrices are row major. The resultant matrix M' should be - * pre-multiplied to X' to get Y', or transposed and then post multiplied to X - * to get Y By default, this method checks for the homogeneous condition where - * Y==0, and if so, invokes SolveHomogeneousLeastSquares. For better performance - * when the system is known not to be homogeneous, invoke with - * checkHomogeneous=0. - * @param {Number} numberOfSamples - * @param {Matrix} xt - * @param {Number} xOrder - * @param {Matrix} yt - * @param {Number} yOrder - * @param {Matrix} mt - * @param {Boolean} [checkHomogeneous] - */ -export function solveLeastSquares( - numberOfSamples: number, - xt: Matrix, - xOrder: number, - yt: Matrix, - yOrder: number, - mt: Matrix, - checkHomogeneous?: boolean -): number; - -/** - * - * @param {String} hexStr - * @param {Number[]} [outFloatArray] - */ -export function hex2float(hexStr: string, outFloatArray?: number[]): number[]; - -/** - * - * @param {RGBColor} rgb An Array of the RGB color. - * @param {HSVColor} hsv An Array of the HSV color. - */ -export function rgb2hsv(rgb: RGBColor, hsv: HSVColor): void; - -/** - * - * @param {HSVColor} hsv An Array of the HSV color. - * @param {RGBColor} rgb An Array of the RGB color. - */ -export function hsv2rgb(hsv: HSVColor, rgb: RGBColor): void; - -/** - * - * @param {Vector3} lab - * @param {Vector3} xyz - */ -export function lab2xyz(lab: Vector3, xyz: Vector3): void; - -/** - * - * @param {Vector3} xyz - * @param {Vector3} lab - */ -export function xyz2lab(xyz: Vector3, lab: Vector3): void; - -/** - * - * @param {Vector3} xyz - * @param {RGBColor} rgb An Array of the RGB color. - */ -export function xyz2rgb(xyz: Vector3, rgb: RGBColor): void; - -/** - * - * @param {RGBColor} rgb An Array of the RGB color. - * @param {Vector3} xyz - */ -export function rgb2xyz(rgb: RGBColor, xyz: Vector3): void; - -/** - * - * @param {RGBColor} rgb - * @param {Vector3} lab - */ -export function rgb2lab(rgb: RGBColor, lab: Vector3): void; - -/** - * - * @param {Vector3} lab - * @param {RGBColor} rgb An Array of the RGB color. - */ -export function lab2rgb(lab: Vector3, rgb: RGBColor): void; - -/** - * Returns bounds. - * @param {Bounds} bounds Output array that hold bounds, optionally empty. - */ -export function uninitializeBounds(bounds: Bounds): Bounds; - -/** - * - * @param {Bounds} bounds The bounds to check. - */ -export function areBoundsInitialized(bounds: Bounds): boolean; - -/** - * Compute the bounds from points. - * @param {Vector3} point1 The coordinate of the first point. - * @param {Vector3} point2 The coordinate of the second point. - * @param {Bounds} bounds Output array that hold bounds, optionally empty. - * @deprecated please use vtkBoundingBox.addPoints(vtkBoundingBox.reset([]), points) - */ -export function computeBoundsFromPoints( - point1: Vector3, - point2: Vector3, - bounds: Bounds -): Bounds; - -/** - * Clamp some value against a range. - * @param {Number} value The value to clamp. - * @param {Number} minValue The minimum value. - * @param {Number} maxValue The maximum value. - */ -export function clampValue( - value: number, - minValue: number, - maxValue: number -): number; - -/** - * Clamp some vector against a range. - * @param {Vector3} vector The vector to clamp. - * @param {Vector3} minVector The minimum vector. - * @param {Vector3} maxVector The maximum vector. - * @param {Vector3} out The output vector. - */ -export function clampVector( - vector: Vector3, - minVector: Vector3, - maxVector: Vector3, - out: Vector3 -): Vector3; - -/** - * - * @param {Vector3} vector - * @param {Vector3} out - */ -export function roundVector(vector: Vector3, out: Vector3): Vector3; - -/** - * - * @param {Number} value - * @param {Range} range - */ -export function clampAndNormalizeValue(value: number, range: Range): number; - -/** - * Get the scalar type that is most likely to have enough precision to store a - * given range of data once it has been scaled and shifted - */ -export function getScalarTypeFittingRange(): void; - -/** - * - */ -export function getAdjustedScalarRange(): void; - -/** - * Check if first 3D extent is within second 3D extent. - * @param {Extent} extent1 The first extent. - * @param {Extent} extent2 The second extent. - */ -export function extentIsWithinOtherExtent( - extent1: Extent, - extent2: Extent -): number; - -/** - * Check if first 3D bounds is within the second 3D bounds. - * @param {Bounds} bounds1_6 The first bounds. - * @param {Bounds} bounds2_6 The second bounds. - * @param {Vector3} delta_3 The error margin along each axis. - */ -export function boundsIsWithinOtherBounds( - bounds1_6: Bounds, - bounds2_6: Bounds, - delta_3: Vector3 -): number; - -/** - * Check if point is within the given 3D bounds. - * @param {Vector3} point_3 The coordinate of the point. - * @param {Bounds} bounds_6 The bounds. - * @param {Vector3} delta_3 The error margin along each axis. - */ -export function pointIsWithinBounds( - point_3: Vector3, - bounds_6: Bounds, - delta_3: Vector3 -): number; - -/** - * In Euclidean space, there is a unique circle passing through any given three - * non-collinear points P1, P2, and P3. - * - * Using Cartesian coordinates to represent these points as spatial vectors, it - * is possible to use the dot product and cross product to calculate the radius - * and center of the circle. See: - * http://en.wikipedia.org/wiki/Circumscribed_circle and more specifically the - * section Barycentric coordinates from cross- and dot-products - * @param {Vector3} p1 The coordinate of the first point. - * @param {Vector3} p2 The coordinate of the second point. - * @param {Vector3} p3 The coordinate of the third point. - * @param {Vector3} center The coordinate of the center point. - */ -export function solve3PointCircle( - p1: Vector3, - p2: Vector3, - p3: Vector3, - center: Vector3 -): number; - -/** - * Determines whether the passed value is a infinite number. - * @param {Number} value The value to check. - */ -export function isInf(value: number): boolean; - -/** - * - */ -export function createUninitializedBounds(): Bounds; - -/** - * - * @param {Number[]} vector - */ -export function getMajorAxisIndex(vector: number[]): number; - -/** - * Return the closest orthogonal matrix of 1, -1 and 0 - * It works for both column major and row major matrices - * This function iteratively associate a column with a row by choosing - * the greatest absolute value from the remaining row and columns - * For each association, a -1 or a 1 is set in the output, depending on - * the sign of the value in the original matrix - * - * @param {Number[]} matrix The matrix of size nxn - * @param {Number[]} n The size of the square matrix, defaults to 3 - */ -export function getSparseOrthogonalMatrix( - matrix: number[], - n: number -): number[]; - -/** - * - * @param {Number} value The value to convert. - */ -export function floatToHex2(value: number): string; - -/** - * - * @param {RGBColor} rgbArray - * @param {string} [prefix] - */ -export function floatRGB2HexCode( - rgbArray: RGBColor | RGBAColor, - prefix?: string -): string; - -/** - * Convert RGB or RGBA color array to CSS representation - * @param {RGBColor|RGBAColor} rgbArray The color array. - */ -export function float2CssRGBA(rgbArray: RGBColor | RGBAColor): string; - -/** - * Determines whether the passed value is a NaN. - * @param {Number} value The value to check. - */ -export function isNan(value: number): boolean; - -/** - * Determines whether the passed value is a NaN. - * @param {Number} value The value to check. - */ -export function isNaN(value: number): boolean; - -/** - * Determines whether the passed value is a finite number. - * @param value The value to check. - */ -export function isFinite(value: any): boolean; - -/** - * vtkMath provides methods to perform common math operations. These include - * providing constants such as Pi; conversion from degrees to radians; vector - * operations such as dot and cross products and vector norm; matrix determinant - * for 2x2 and 3x3 matrices; univariate polynomial solvers; and for random - * number generation (for backward compatibility only). - * **Contrary to the rest of vtk.js, vtkMath is in row-major format (similar to VTK C++).** - */ -export declare const vtkMath: { - createArray: typeof createArray; - swapRowsMatrix_nxn: typeof swapRowsMatrix_nxn; - swapColumnsMatrix_nxn: typeof swapColumnsMatrix_nxn; - Pi: typeof Pi; - radiansFromDegrees: typeof radiansFromDegrees; - degreesFromRadians: typeof degreesFromRadians; - round: typeof round; - floor: typeof floor; - ceil: typeof ceil; - min: typeof min; - max: typeof max; - arrayMin: typeof arrayMin; - arrayMax: typeof arrayMax; - arrayRange: typeof arrayRange; - ceilLog2: typeof ceilLog2; - factorial: typeof factorial; - gaussian: typeof gaussian; - nearestPowerOfTwo: typeof nearestPowerOfTwo; - isPowerOfTwo: typeof isPowerOfTwo; - binomial: typeof binomial; - beginCombination: typeof beginCombination; - nextCombination: typeof nextCombination; - randomSeed: typeof randomSeed; - getSeed: typeof getSeed; - random: typeof random; - add: typeof add; - subtract: typeof subtract; - multiplyScalar: typeof multiplyScalar; - multiplyScalar2D: typeof multiplyScalar2D; - multiplyAccumulate: typeof multiplyAccumulate; - multiplyAccumulate2D: typeof multiplyAccumulate2D; - dot: typeof dot; - outer: typeof outer; - cross: typeof cross; - norm: typeof norm; - normalize: typeof normalize; - perpendiculars: typeof perpendiculars; - projectVector: typeof projectVector; - dot2D: typeof dot2D; - projectVector2D: typeof projectVector2D; - distance2BetweenPoints: typeof distance2BetweenPoints; - angleBetweenVectors: typeof angleBetweenVectors; - gaussianAmplitude: typeof gaussianAmplitude; - gaussianWeight: typeof gaussianWeight; - outer2D: typeof outer2D; - norm2D: typeof norm2D; - normalize2D: typeof normalize2D; - determinant2x2: typeof determinant2x2; - rowsToMat4: typeof rowsToMat4; - columnsToMat4: typeof columnsToMat4; - rowsToMat3: typeof rowsToMat3; - columnsToMat3: typeof columnsToMat3; - LUFactor3x3: typeof LUFactor3x3; - LUSolve3x3: typeof LUSolve3x3; - linearSolve3x3: typeof linearSolve3x3; - multiply3x3_vect3: typeof multiply3x3_vect3; - multiply3x3_mat3: typeof multiply3x3_mat3; - multiplyMatrix: typeof multiplyMatrix; - transpose3x3: typeof transpose3x3; - invert3x3: typeof invert3x3; - identity3x3: typeof identity3x3; - determinant3x3: typeof determinant3x3; - quaternionToMatrix3x3: typeof quaternionToMatrix3x3; - areEquals: typeof areEquals; - areMatricesEqual: typeof areEquals; - roundNumber: typeof roundNumber; - roundVector: typeof roundVector; - jacobiN: typeof jacobiN; - matrix3x3ToQuaternion: typeof matrix3x3ToQuaternion; - multiplyQuaternion: typeof multiplyQuaternion; - orthogonalize3x3: typeof orthogonalize3x3; - diagonalize3x3: typeof diagonalize3x3; - singularValueDecomposition3x3: typeof singularValueDecomposition3x3; - luFactorLinearSystem: typeof luFactorLinearSystem; - luSolveLinearSystem: typeof luSolveLinearSystem; - solveLinearSystem: typeof solveLinearSystem; - invertMatrix: typeof invertMatrix; - estimateMatrixCondition: typeof estimateMatrixCondition; - jacobi: typeof jacobi; - solveHomogeneousLeastSquares: typeof solveHomogeneousLeastSquares; - solveLeastSquares: typeof solveLeastSquares; - hex2float: typeof hex2float; - rgb2hsv: typeof rgb2hsv; - hsv2rgb: typeof hsv2rgb; - lab2xyz: typeof lab2xyz; - xyz2lab: typeof xyz2lab; - xyz2rgb: typeof xyz2rgb; - rgb2xyz: typeof rgb2xyz; - rgb2lab: typeof rgb2lab; - lab2rgb: typeof lab2rgb; - uninitializeBounds: typeof uninitializeBounds; - areBoundsInitialized: typeof areBoundsInitialized; - computeBoundsFromPoints: typeof computeBoundsFromPoints; - clampValue: typeof clampValue; - clampVector: typeof clampVector; - clampAndNormalizeValue: typeof clampAndNormalizeValue; - getScalarTypeFittingRange: typeof getScalarTypeFittingRange; - getAdjustedScalarRange: typeof getAdjustedScalarRange; - extentIsWithinOtherExtent: typeof extentIsWithinOtherExtent; - boundsIsWithinOtherBounds: typeof boundsIsWithinOtherBounds; - pointIsWithinBounds: typeof pointIsWithinBounds; - solve3PointCircle: typeof solve3PointCircle; - isInf: typeof isInf; - createUninitializedBounds: typeof createUninitializedBounds; - getMajorAxisIndex: typeof getMajorAxisIndex; - getSparseOrthogonalMatrix: typeof getSparseOrthogonalMatrix; - floatToHex2: typeof floatToHex2; - floatRGB2HexCode: typeof floatRGB2HexCode; - float2CssRGBA: typeof float2CssRGBA; - inf: number; - negInf: number; - isNan: typeof isNaN; - isNaN: typeof isNaN; - isFinite: typeof isFinite; -}; -export default vtkMath; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Math.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Math.js deleted file mode 100644 index 5b3497f3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Math.js +++ /dev/null @@ -1,4 +0,0 @@ -import 'seedrandom'; -import '../../macros2.js'; -import './Math/Constants.js'; -export { ar as LUFactor3x3, as as LUSolve3x3, a0 as Pi, k as add, Z as angleBetweenVectors, W as areBoundsInitialized, E as areEquals, a as areMatricesEqual, a5 as arrayMax, a4 as arrayMin, G as arrayRange, a9 as beginCombination, a8 as binomial, aV as boundsIsWithinOtherBounds, a1 as ceil, a6 as ceilLog2, aR as clampAndNormalizeValue, F as clampValue, e as clampVector, aq as columnsToMat3, ap as columnsToMat4, aQ as computeBoundsFromPoints, $ as createArray, I as createUninitializedBounds, j as cross, b as default, B as degreesFromRadians, o as determinant2x2, z as determinant3x3, aF as diagonalize3x3, f as distance2BetweenPoints, d as dot, ai as dot2D, aJ as estimateMatrixCondition, aU as extentIsWithinOtherExtent, a7 as factorial, b1 as float2CssRGBA, X as floatRGB2HexCode, b0 as floatToHex2, M as floor, ad as gaussian, ak as gaussianAmplitude, al as gaussianWeight, aT as getAdjustedScalarRange, H as getMajorAxisIndex, aS as getScalarTypeFittingRange, ac as getSeed, V as getSparseOrthogonalMatrix, aM as hex2float, h as hsv2rgb, K as identity, ax as identity3x3, aY as inf, aw as invert3x3, p as invertMatrix, a_ as isFinite, ay as isIdentity, az as isIdentity3x3, N as isInf, a$ as isNaN, i as isNan, Y as isPowerOfTwo, w as jacobi, q as jacobiN, Q as lab2rgb, aN as lab2xyz, C as ldexp, at as linearSolve3x3, aH as luFactorLinearSystem, aI as luSolveLinearSystem, aC as matrix3x3ToQuaternion, a3 as max, a2 as min, au as multiply3x3_mat3, U as multiply3x3_vect3, m as multiplyAccumulate, af as multiplyAccumulate2D, L as multiplyMatrix, aD as multiplyQuaternion, x as multiplyScalar, ae as multiplyScalar2D, T as nearestPowerOfTwo, aZ as negInf, aa as nextCombination, n as norm, an as norm2D, l as normalize, S as normalize2D, J as normalize4D, aE as orthogonalize3x3, ag as outer, am as outer2D, t as perpendiculars, aW as pointIsWithinBounds, ah as projectVector, aj as projectVector2D, aA as quaternionToMatrix3x3, r as radiansFromDegrees, y as random, ab as randomSeed, O as rgb2hsv, P as rgb2lab, aP as rgb2xyz, R as round, aB as roundNumber, c as roundVector, A as rowsToMat3, ao as rowsToMat4, _ as signedAngleBetweenVectors, aG as singularValueDecomposition3x3, aX as solve3PointCircle, aK as solveHomogeneousLeastSquares, aL as solveLeastSquares, g as solveLinearSystem, s as subtract, av as transpose3x3, u as uninitializeBounds, aO as xyz2lab, D as xyz2rgb } from './Math/index.js'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Math/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Math/Constants.js deleted file mode 100644 index c99f4e43..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Math/Constants.js +++ /dev/null @@ -1,12 +0,0 @@ -const IDENTITY = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]; -const IDENTITY_3X3 = [1, 0, 0, 0, 1, 0, 0, 0, 1]; -const EPSILON = 1e-6; -const VTK_SMALL_NUMBER = 1.0e-12; -var Constants = { - IDENTITY, - IDENTITY_3X3, - EPSILON, - VTK_SMALL_NUMBER -}; - -export { EPSILON, IDENTITY, IDENTITY_3X3, VTK_SMALL_NUMBER, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Math/index.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Math/index.js deleted file mode 100644 index 4aeca798..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Math/index.js +++ /dev/null @@ -1,2270 +0,0 @@ -import seedrandom from 'seedrandom'; -import { m as macro } from '../../../macros2.js'; -import { IDENTITY, IDENTITY_3X3, VTK_SMALL_NUMBER, EPSILON } from './Constants.js'; - -const { - vtkErrorMacro, - vtkWarningMacro -} = macro; - -// ---------------------------------------------------------------------------- -/* eslint-disable camelcase */ -/* eslint-disable no-cond-assign */ -/* eslint-disable no-bitwise */ -/* eslint-disable no-multi-assign */ -// ---------------------------------------------------------------------------- -let randomSeedValue = 0; -const VTK_MAX_ROTATIONS = 20; -function notImplemented(method) { - return () => vtkErrorMacro(`vtkMath::${method} - NOT IMPLEMENTED`); -} - -// Swap rows for n by n matrix -function swapRowsMatrix_nxn(matrix, n, row1, row2) { - let tmp; - for (let i = 0; i < n; i++) { - tmp = matrix[row1 * n + i]; - matrix[row1 * n + i] = matrix[row2 * n + i]; - matrix[row2 * n + i] = tmp; - } -} - -// Swap columns for n by n matrix -function swapColumnsMatrix_nxn(matrix, n, column1, column2) { - let tmp; - for (let i = 0; i < n; i++) { - tmp = matrix[i * n + column1]; - matrix[i * n + column1] = matrix[i * n + column2]; - matrix[i * n + column2] = tmp; - } -} - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -function createArray() { - let size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 3; - // faster than Array.from and/or while loop - const res = Array(size); - for (let i = 0; i < size; ++i) { - res[i] = 0; - } - return res; -} -const Pi = () => Math.PI; -function ldexp(x, exponent) { - if (exponent > 1023) { - return x * 2 ** 1023 * 2 ** (exponent - 1023); - } - if (exponent < -1074) { - return x * 2 ** -1074 * 2 ** (exponent + 1074); - } - return x * 2 ** exponent; -} -function radiansFromDegrees(deg) { - return deg / 180 * Math.PI; -} -function degreesFromRadians(rad) { - return rad * 180 / Math.PI; -} -const { - round, - floor, - ceil, - min, - max -} = Math; -function arrayMin(arr) { - let offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - let stride = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - let minValue = Infinity; - for (let i = offset, len = arr.length; i < len; i += stride) { - if (arr[i] < minValue) { - minValue = arr[i]; - } - } - return minValue; -} -function arrayMax(arr) { - let offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - let stride = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - let maxValue = -Infinity; - for (let i = offset, len = arr.length; i < len; i += stride) { - if (maxValue < arr[i]) { - maxValue = arr[i]; - } - } - return maxValue; -} -function arrayRange(arr) { - let offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - let stride = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - let minValue = Infinity; - let maxValue = -Infinity; - for (let i = offset, len = arr.length; i < len; i += stride) { - if (arr[i] < minValue) { - minValue = arr[i]; - } - if (maxValue < arr[i]) { - maxValue = arr[i]; - } - } - return [minValue, maxValue]; -} -const ceilLog2 = notImplemented('ceilLog2'); -const factorial = notImplemented('factorial'); -function nearestPowerOfTwo(xi) { - let v = 1; - while (v < xi) { - v *= 2; - } - return v; -} -function isPowerOfTwo(x) { - return x === nearestPowerOfTwo(x); -} -function binomial(m, n) { - let r = 1; - for (let i = 1; i <= n; ++i) { - r *= (m - i + 1) / i; - } - return Math.floor(r); -} -function beginCombination(m, n) { - if (m < n) { - return 0; - } - const r = createArray(n); - for (let i = 0; i < n; ++i) { - r[i] = i; - } - return r; -} -function nextCombination(m, n, r) { - let status = 0; - for (let i = n - 1; i >= 0; --i) { - if (r[i] < m - n + i) { - let j = r[i] + 1; - while (i < n) { - r[i++] = j++; - } - status = 1; - break; - } - } - return status; -} -function randomSeed(seed) { - seedrandom(`${seed}`, { - global: true - }); - randomSeedValue = seed; -} -function getSeed() { - return randomSeedValue; -} -function random() { - let minValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - let maxValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1; - const delta = maxValue - minValue; - return minValue + delta * Math.random(); -} -const gaussian = notImplemented('gaussian'); - -// Vect3 operations -function add(a, b, out) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - return out; -} -function subtract(a, b, out) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - out[2] = a[2] - b[2]; - return out; -} -function multiplyScalar(vec, scalar) { - vec[0] *= scalar; - vec[1] *= scalar; - vec[2] *= scalar; - return vec; -} -function multiplyScalar2D(vec, scalar) { - vec[0] *= scalar; - vec[1] *= scalar; - return vec; -} -function multiplyAccumulate(a, b, scalar, out) { - out[0] = a[0] + b[0] * scalar; - out[1] = a[1] + b[1] * scalar; - out[2] = a[2] + b[2] * scalar; - return out; -} -function multiplyAccumulate2D(a, b, scalar, out) { - out[0] = a[0] + b[0] * scalar; - out[1] = a[1] + b[1] * scalar; - return out; -} -function dot(x, y) { - return x[0] * y[0] + x[1] * y[1] + x[2] * y[2]; -} -function outer(x, y, out_3x3) { - out_3x3[0] = x[0] * y[0]; - out_3x3[1] = x[0] * y[1]; - out_3x3[2] = x[0] * y[2]; - out_3x3[3] = x[1] * y[0]; - out_3x3[4] = x[1] * y[1]; - out_3x3[5] = x[1] * y[2]; - out_3x3[6] = x[2] * y[0]; - out_3x3[7] = x[2] * y[1]; - out_3x3[8] = x[2] * y[2]; -} -function cross(x, y, out) { - const Zx = x[1] * y[2] - x[2] * y[1]; - const Zy = x[2] * y[0] - x[0] * y[2]; - const Zz = x[0] * y[1] - x[1] * y[0]; - out[0] = Zx; - out[1] = Zy; - out[2] = Zz; - return out; -} -function norm(x) { - let n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3; - switch (n) { - case 1: - return Math.abs(x); - case 2: - return Math.sqrt(x[0] * x[0] + x[1] * x[1]); - case 3: - return Math.sqrt(x[0] * x[0] + x[1] * x[1] + x[2] * x[2]); - default: - { - let sum = 0; - for (let i = 0; i < n; i++) { - sum += x[i] * x[i]; - } - return Math.sqrt(sum); - } - } -} -function normalize(x) { - const den = norm(x); - if (den !== 0.0) { - x[0] /= den; - x[1] /= den; - x[2] /= den; - } - return den; -} -function normalize4D(x) { - const den = norm(x, 3); - if (den !== 0.0) { - x[0] /= den; - x[1] /= den; - x[2] /= den; - x[3] /= den; - } - return den; -} -function perpendiculars(x, y, z, theta) { - const x2 = x[0] * x[0]; - const y2 = x[1] * x[1]; - const z2 = x[2] * x[2]; - const r = Math.sqrt(x2 + y2 + z2); - let dx; - let dy; - let dz; - - // transpose the vector to avoid divide-by-zero error - if (x2 > y2 && x2 > z2) { - dx = 0; - dy = 1; - dz = 2; - } else if (y2 > z2) { - dx = 1; - dy = 2; - dz = 0; - } else { - dx = 2; - dy = 0; - dz = 1; - } - const a = x[dx] / r; - const b = x[dy] / r; - const c = x[dz] / r; - const tmp = Math.sqrt(a * a + c * c); - if (theta !== 0) { - const sintheta = Math.sin(theta); - const costheta = Math.cos(theta); - if (y) { - y[dx] = (c * costheta - a * b * sintheta) / tmp; - y[dy] = sintheta * tmp; - y[dz] = (-(a * costheta) - b * c * sintheta) / tmp; - } - if (z) { - z[dx] = (-(c * sintheta) - a * b * costheta) / tmp; - z[dy] = costheta * tmp; - z[dz] = (a * sintheta - b * c * costheta) / tmp; - } - } else { - if (y) { - y[dx] = c / tmp; - y[dy] = 0; - y[dz] = -a / tmp; - } - if (z) { - z[dx] = -a * b / tmp; - z[dy] = tmp; - z[dz] = -b * c / tmp; - } - } -} -function projectVector(a, b, projection) { - const bSquared = dot(b, b); - if (bSquared === 0) { - projection[0] = 0; - projection[1] = 0; - projection[2] = 0; - return false; - } - const scale = dot(a, b) / bSquared; - for (let i = 0; i < 3; i++) { - projection[i] = b[i]; - } - multiplyScalar(projection, scale); - return true; -} -function dot2D(x, y) { - return x[0] * y[0] + x[1] * y[1]; -} -function projectVector2D(a, b, projection) { - const bSquared = dot2D(b, b); - if (bSquared === 0) { - projection[0] = 0; - projection[1] = 0; - return false; - } - const scale = dot2D(a, b) / bSquared; - for (let i = 0; i < 2; i++) { - projection[i] = b[i]; - } - multiplyScalar2D(projection, scale); - return true; -} -function distance2BetweenPoints(x, y) { - return (x[0] - y[0]) * (x[0] - y[0]) + (x[1] - y[1]) * (x[1] - y[1]) + (x[2] - y[2]) * (x[2] - y[2]); -} -function angleBetweenVectors(v1, v2) { - const crossVect = [0, 0, 0]; - cross(v1, v2, crossVect); - return Math.atan2(norm(crossVect), dot(v1, v2)); -} -function signedAngleBetweenVectors(v1, v2, vN) { - const crossVect = [0, 0, 0]; - cross(v1, v2, crossVect); - const angle = Math.atan2(norm(crossVect), dot(v1, v2)); - return dot(crossVect, vN) >= 0 ? angle : -angle; -} -function gaussianAmplitude(mean, variance, position) { - const distanceFromMean = Math.abs(mean - position); - return 1 / Math.sqrt(2 * Math.PI * variance) * Math.exp(-(distanceFromMean ** 2) / (2 * variance)); -} -function gaussianWeight(mean, variance, position) { - const distanceFromMean = Math.abs(mean - position); - return Math.exp(-(distanceFromMean ** 2) / (2 * variance)); -} -function outer2D(x, y, out_2x2) { - out_2x2[0] = x[0] * y[0]; - out_2x2[1] = x[0] * y[1]; - out_2x2[2] = x[1] * y[0]; - out_2x2[3] = x[1] * y[1]; -} -function norm2D(x2D) { - return Math.sqrt(x2D[0] * x2D[0] + x2D[1] * x2D[1]); -} -function normalize2D(x) { - const den = norm2D(x); - if (den !== 0.0) { - x[0] /= den; - x[1] /= den; - } - return den; -} -function rowsToMat4(row0, row1, row2, row3, mat) { - for (let i = 0; i < 4; i++) { - mat[i] = row0[i]; - mat[4 + i] = row1[i]; - mat[8 + i] = row2[i]; - mat[12 + i] = row3[i]; - } - return mat; -} -function columnsToMat4(column0, column1, column2, column3, mat) { - for (let i = 0; i < 4; i++) { - mat[4 * i] = column0[i]; - mat[4 * i + 1] = column1[i]; - mat[4 * i + 2] = column2[i]; - mat[4 * i + 3] = column3[i]; - } - return mat; -} -function rowsToMat3(row0, row1, row2, mat) { - for (let i = 0; i < 3; i++) { - mat[i] = row0[i]; - mat[3 + i] = row1[i]; - mat[6 + i] = row2[i]; - } - return mat; -} -function columnsToMat3(column0, column1, column2, mat) { - for (let i = 0; i < 3; i++) { - mat[3 * i] = column0[i]; - mat[3 * i + 1] = column1[i]; - mat[3 * i + 2] = column2[i]; - } - return mat; -} -function determinant2x2() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - if (args.length === 2) { - return args[0][0] * args[1][1] - args[1][0] * args[0][1]; - } - if (args.length === 4) { - return args[0] * args[3] - args[1] * args[2]; - } - return Number.NaN; -} -function LUFactor3x3(mat_3x3, index_3) { - let maxI; - let tmp; - let largest; - const scale = [0, 0, 0]; - - // Loop over rows to get implicit scaling information - for (let i = 0; i < 3; i++) { - largest = Math.abs(mat_3x3[i * 3]); - if ((tmp = Math.abs(mat_3x3[i * 3 + 1])) > largest) { - largest = tmp; - } - if ((tmp = Math.abs(mat_3x3[i * 3 + 2])) > largest) { - largest = tmp; - } - scale[i] = 1 / largest; - } - - // Loop over all columns using Crout's method - - // first column - largest = scale[0] * Math.abs(mat_3x3[0]); - maxI = 0; - if ((tmp = scale[1] * Math.abs(mat_3x3[3])) >= largest) { - largest = tmp; - maxI = 1; - } - if ((tmp = scale[2] * Math.abs(mat_3x3[6])) >= largest) { - maxI = 2; - } - if (maxI !== 0) { - swapRowsMatrix_nxn(mat_3x3, 3, maxI, 0); - scale[maxI] = scale[0]; - } - index_3[0] = maxI; - mat_3x3[3] /= mat_3x3[0]; - mat_3x3[6] /= mat_3x3[0]; - - // second column - mat_3x3[4] -= mat_3x3[3] * mat_3x3[1]; - mat_3x3[7] -= mat_3x3[6] * mat_3x3[1]; - largest = scale[1] * Math.abs(mat_3x3[4]); - maxI = 1; - if ((tmp = scale[2] * Math.abs(mat_3x3[7])) >= largest) { - maxI = 2; - swapRowsMatrix_nxn(mat_3x3, 3, 1, 2); - scale[2] = scale[1]; - } - index_3[1] = maxI; - mat_3x3[7] /= mat_3x3[4]; - - // third column - mat_3x3[5] -= mat_3x3[3] * mat_3x3[2]; - mat_3x3[8] -= mat_3x3[6] * mat_3x3[2] + mat_3x3[7] * mat_3x3[5]; - index_3[2] = 2; -} -function LUSolve3x3(mat_3x3, index_3, x_3) { - // forward substitution - let sum = x_3[index_3[0]]; - x_3[index_3[0]] = x_3[0]; - x_3[0] = sum; - sum = x_3[index_3[1]]; - x_3[index_3[1]] = x_3[1]; - x_3[1] = sum - mat_3x3[3] * x_3[0]; - sum = x_3[index_3[2]]; - x_3[index_3[2]] = x_3[2]; - x_3[2] = sum - mat_3x3[6] * x_3[0] - mat_3x3[7] * x_3[1]; - - // back substitution - x_3[2] /= mat_3x3[8]; - x_3[1] = (x_3[1] - mat_3x3[5] * x_3[2]) / mat_3x3[4]; - x_3[0] = (x_3[0] - mat_3x3[1] * x_3[1] - mat_3x3[2] * x_3[2]) / mat_3x3[0]; -} -function linearSolve3x3(mat_3x3, x_3, y_3) { - const a1 = mat_3x3[0]; - const b1 = mat_3x3[1]; - const c1 = mat_3x3[2]; - const a2 = mat_3x3[3]; - const b2 = mat_3x3[4]; - const c2 = mat_3x3[5]; - const a3 = mat_3x3[6]; - const b3 = mat_3x3[7]; - const c3 = mat_3x3[8]; - - // Compute the adjoint - const d1 = +determinant2x2(b2, b3, c2, c3); - const d2 = -determinant2x2(a2, a3, c2, c3); - const d3 = +determinant2x2(a2, a3, b2, b3); - const e1 = -determinant2x2(b1, b3, c1, c3); - const e2 = +determinant2x2(a1, a3, c1, c3); - const e3 = -determinant2x2(a1, a3, b1, b3); - const f1 = +determinant2x2(b1, b2, c1, c2); - const f2 = -determinant2x2(a1, a2, c1, c2); - const f3 = +determinant2x2(a1, a2, b1, b2); - - // Compute the determinant - const det = a1 * d1 + b1 * d2 + c1 * d3; - - // Multiply by the adjoint - const v1 = d1 * x_3[0] + e1 * x_3[1] + f1 * x_3[2]; - const v2 = d2 * x_3[0] + e2 * x_3[1] + f2 * x_3[2]; - const v3 = d3 * x_3[0] + e3 * x_3[1] + f3 * x_3[2]; - - // Divide by the determinant - y_3[0] = v1 / det; - y_3[1] = v2 / det; - y_3[2] = v3 / det; -} -function multiply3x3_vect3(mat_3x3, in_3, out_3) { - const x = mat_3x3[0] * in_3[0] + mat_3x3[1] * in_3[1] + mat_3x3[2] * in_3[2]; - const y = mat_3x3[3] * in_3[0] + mat_3x3[4] * in_3[1] + mat_3x3[5] * in_3[2]; - const z = mat_3x3[6] * in_3[0] + mat_3x3[7] * in_3[1] + mat_3x3[8] * in_3[2]; - out_3[0] = x; - out_3[1] = y; - out_3[2] = z; -} -function multiply3x3_mat3(a_3x3, b_3x3, out_3x3) { - const copyA = [...a_3x3]; - const copyB = [...b_3x3]; - for (let i = 0; i < 3; i++) { - out_3x3[i] = copyA[0] * copyB[i] + copyA[1] * copyB[i + 3] + copyA[2] * copyB[i + 6]; - out_3x3[i + 3] = copyA[3] * copyB[i] + copyA[4] * copyB[i + 3] + copyA[5] * copyB[i + 6]; - out_3x3[i + 6] = copyA[6] * copyB[i] + copyA[7] * copyB[i + 3] + copyA[8] * copyB[i + 6]; - } -} -function multiplyMatrix(a, b, rowA, colA, rowB, colB, outRowAColB) { - // we need colA == rowB - if (colA !== rowB) { - vtkErrorMacro('Number of columns of A must match number of rows of B.'); - } - - // If a or b is used to store the result, copying them is required - const copyA = [...a]; - const copyB = [...b]; - // output matrix is rowA*colB - // output row - for (let i = 0; i < rowA; i++) { - // output col - for (let j = 0; j < colB; j++) { - outRowAColB[i * colB + j] = 0; - // sum for this point - for (let k = 0; k < colA; k++) { - outRowAColB[i * colB + j] += copyA[i * colA + k] * copyB[j + colB * k]; - } - } - } -} -function transpose3x3(in_3x3, outT_3x3) { - let tmp; - - // off-diagonal elements - tmp = in_3x3[3]; - outT_3x3[3] = in_3x3[1]; - outT_3x3[1] = tmp; - tmp = in_3x3[6]; - outT_3x3[6] = in_3x3[2]; - outT_3x3[2] = tmp; - tmp = in_3x3[7]; - outT_3x3[7] = in_3x3[5]; - outT_3x3[5] = tmp; - - // on-diagonal elements - outT_3x3[0] = in_3x3[0]; - outT_3x3[4] = in_3x3[4]; - outT_3x3[8] = in_3x3[8]; -} -function invert3x3(in_3x3, outI_3x3) { - const a1 = in_3x3[0]; - const b1 = in_3x3[1]; - const c1 = in_3x3[2]; - const a2 = in_3x3[3]; - const b2 = in_3x3[4]; - const c2 = in_3x3[5]; - const a3 = in_3x3[6]; - const b3 = in_3x3[7]; - const c3 = in_3x3[8]; - - // Compute the adjoint - const d1 = +determinant2x2(b2, b3, c2, c3); - const d2 = -determinant2x2(a2, a3, c2, c3); - const d3 = +determinant2x2(a2, a3, b2, b3); - const e1 = -determinant2x2(b1, b3, c1, c3); - const e2 = +determinant2x2(a1, a3, c1, c3); - const e3 = -determinant2x2(a1, a3, b1, b3); - const f1 = +determinant2x2(b1, b2, c1, c2); - const f2 = -determinant2x2(a1, a2, c1, c2); - const f3 = +determinant2x2(a1, a2, b1, b2); - - // Divide by the determinant - const det = a1 * d1 + b1 * d2 + c1 * d3; - if (det === 0) { - vtkWarningMacro('Matrix has 0 determinant'); - } - outI_3x3[0] = d1 / det; - outI_3x3[3] = d2 / det; - outI_3x3[6] = d3 / det; - outI_3x3[1] = e1 / det; - outI_3x3[4] = e2 / det; - outI_3x3[7] = e3 / det; - outI_3x3[2] = f1 / det; - outI_3x3[5] = f2 / det; - outI_3x3[8] = f3 / det; -} -function determinant3x3(mat_3x3) { - return mat_3x3[0] * mat_3x3[4] * mat_3x3[8] + mat_3x3[3] * mat_3x3[7] * mat_3x3[2] + mat_3x3[6] * mat_3x3[1] * mat_3x3[5] - mat_3x3[0] * mat_3x3[7] * mat_3x3[5] - mat_3x3[3] * mat_3x3[1] * mat_3x3[8] - mat_3x3[6] * mat_3x3[4] * mat_3x3[2]; -} - -/** - * Returns true if elements of both arrays are equals. - * @param {Array} a an array of numbers (vector, point, matrix...) - * @param {Array} b an array of numbers (vector, point, matrix...) - * @param {Number} eps tolerance - */ -function areEquals(a, b) { - let eps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : EPSILON; - if (a.length !== b.length) { - return false; - } - function isEqual(element, index) { - return Math.abs(element - b[index]) <= eps; - } - return a.every(isEqual); -} -const areMatricesEqual = areEquals; -function identity3x3(mat_3x3) { - for (let i = 0; i < 3; i++) { - /* eslint-disable-next-line no-multi-assign */ - mat_3x3[i * 3] = mat_3x3[i * 3 + 1] = mat_3x3[i * 3 + 2] = 0; - mat_3x3[i * 3 + i] = 1; - } -} -function identity(n, mat) { - for (let i = 0; i < n; i++) { - for (let j = 0; j < n; j++) { - mat[i * n + j] = 0; - } - mat[i * n + i] = 1; - } - return mat; -} -function isIdentity(mat) { - let eps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : EPSILON; - return areMatricesEqual(mat, IDENTITY, eps); -} -function isIdentity3x3(mat) { - let eps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : EPSILON; - return areMatricesEqual(mat, IDENTITY_3X3, eps); -} -function quaternionToMatrix3x3(quat_4, mat_3x3) { - const ww = quat_4[0] * quat_4[0]; - const wx = quat_4[0] * quat_4[1]; - const wy = quat_4[0] * quat_4[2]; - const wz = quat_4[0] * quat_4[3]; - const xx = quat_4[1] * quat_4[1]; - const yy = quat_4[2] * quat_4[2]; - const zz = quat_4[3] * quat_4[3]; - const xy = quat_4[1] * quat_4[2]; - const xz = quat_4[1] * quat_4[3]; - const yz = quat_4[2] * quat_4[3]; - const rr = xx + yy + zz; - // normalization factor, just in case quaternion was not normalized - let f = 1 / (ww + rr); - const s = (ww - rr) * f; - f *= 2; - mat_3x3[0] = xx * f + s; - mat_3x3[3] = (xy + wz) * f; - mat_3x3[6] = (xz - wy) * f; - mat_3x3[1] = (xy - wz) * f; - mat_3x3[4] = yy * f + s; - mat_3x3[7] = (yz + wx) * f; - mat_3x3[2] = (xz + wy) * f; - mat_3x3[5] = (yz - wx) * f; - mat_3x3[8] = zz * f + s; -} -function roundNumber(num) { - let digits = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - if (!`${num}`.includes('e')) { - return +`${Math.round(`${num}e+${digits}`)}e-${digits}`; - } - const arr = `${num}`.split('e'); - let sig = ''; - if (+arr[1] + digits > 0) { - sig = '+'; - } - return +`${Math.round(`${+arr[0]}e${sig}${+arr[1] + digits}`)}e-${digits}`; -} -function roundVector(vector) { - let out = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [0, 0, 0]; - let digits = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; - out[0] = roundNumber(vector[0], digits); - out[1] = roundNumber(vector[1], digits); - out[2] = roundNumber(vector[2], digits); - return out; -} -function jacobiN(a, n, w, v) { - let i; - let j; - let k; - let iq; - let ip; - let numPos; - let tresh; - let theta; - let t; - let tau; - let sm; - let s; - let h; - let g; - let c; - let tmp; - const b = createArray(n); - const z = createArray(n); - const vtkROTATE = (aa, ii, jj) => { - g = aa[ii]; - h = aa[jj]; - aa[ii] = g - s * (h + g * tau); - aa[jj] = h + s * (g - h * tau); - }; - - // initialize - identity(n, v); - for (ip = 0; ip < n; ip++) { - b[ip] = w[ip] = a[ip + ip * n]; - z[ip] = 0.0; - } - - // begin rotation sequence - for (i = 0; i < VTK_MAX_ROTATIONS; i++) { - sm = 0.0; - for (ip = 0; ip < n - 1; ip++) { - for (iq = ip + 1; iq < n; iq++) { - sm += Math.abs(a[ip * n + iq]); - } - } - if (sm === 0.0) { - break; - } - - // first 3 sweeps - if (i < 3) { - tresh = 0.2 * sm / (n * n); - } else { - tresh = 0.0; - } - for (ip = 0; ip < n - 1; ip++) { - for (iq = ip + 1; iq < n; iq++) { - g = 100.0 * Math.abs(a[ip * n + iq]); - - // after 4 sweeps - if (i > 3 && Math.abs(w[ip]) + g === Math.abs(w[ip]) && Math.abs(w[iq]) + g === Math.abs(w[iq])) { - a[ip * n + iq] = 0.0; - } else if (Math.abs(a[ip * n + iq]) > tresh) { - h = w[iq] - w[ip]; - if (Math.abs(h) + g === Math.abs(h)) { - t = a[ip * n + iq] / h; - } else { - theta = 0.5 * h / a[ip * n + iq]; - t = 1.0 / (Math.abs(theta) + Math.sqrt(1.0 + theta * theta)); - if (theta < 0.0) { - t = -t; - } - } - c = 1.0 / Math.sqrt(1 + t * t); - s = t * c; - tau = s / (1.0 + c); - h = t * a[ip * n + iq]; - z[ip] -= h; - z[iq] += h; - w[ip] -= h; - w[iq] += h; - a[ip * n + iq] = 0.0; - - // ip already shifted left by 1 unit - for (j = 0; j <= ip - 1; j++) { - vtkROTATE(a, j * n + ip, j * n + iq); - } - // ip and iq already shifted left by 1 unit - for (j = ip + 1; j <= iq - 1; j++) { - vtkROTATE(a, ip * n + j, j * n + iq); - } - // iq already shifted left by 1 unit - for (j = iq + 1; j < n; j++) { - vtkROTATE(a, ip * n + j, iq * n + j); - } - for (j = 0; j < n; j++) { - vtkROTATE(v, j * n + ip, j * n + iq); - } - } - } - } - for (ip = 0; ip < n; ip++) { - b[ip] += z[ip]; - w[ip] = b[ip]; - z[ip] = 0.0; - } - } - - // this is NEVER called - if (i >= VTK_MAX_ROTATIONS) { - vtkWarningMacro('vtkMath::Jacobi: Error extracting eigenfunctions'); - return 0; - } - - // sort eigenfunctions: these changes do not affect accuracy - for (j = 0; j < n - 1; j++) { - // boundary incorrect - k = j; - tmp = w[k]; - for (i = j + 1; i < n; i++) { - // boundary incorrect, shifted already - if (w[i] >= tmp || Math.abs(w[i] - tmp) < VTK_SMALL_NUMBER) { - // why exchange if same? - k = i; - tmp = w[k]; - } - } - if (k !== j) { - w[k] = w[j]; - w[j] = tmp; - swapColumnsMatrix_nxn(v, n, j, k); - } - } - // ensure eigenvector consistency (i.e., Jacobi can compute vectors that - // are negative of one another (.707,.707,0) and (-.707,-.707,0). This can - // reek havoc in hyperstreamline/other stuff. We will select the most - // positive eigenvector. - const ceil_half_n = (n >> 1) + (n & 1); - for (numPos = 0, i = 0; i < n * n; i++) { - if (v[i] >= 0.0) { - numPos++; - } - } - // if ( numPos < ceil(double(n)/double(2.0)) ) - if (numPos < ceil_half_n) { - for (i = 0; i < n; i++) { - v[i * n + j] *= -1.0; - } - } - return 1; -} -function matrix3x3ToQuaternion(mat_3x3, quat_4) { - const tmp = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; - - // on-diagonal elements - tmp[0] = mat_3x3[0] + mat_3x3[4] + mat_3x3[8]; - tmp[5] = mat_3x3[0] - mat_3x3[4] - mat_3x3[8]; - tmp[10] = -mat_3x3[0] + mat_3x3[4] - mat_3x3[8]; - tmp[15] = -mat_3x3[0] - mat_3x3[4] + mat_3x3[8]; - - // off-diagonal elements - tmp[1] = tmp[4] = mat_3x3[7] - mat_3x3[5]; - tmp[2] = tmp[8] = mat_3x3[2] - mat_3x3[6]; - tmp[3] = tmp[12] = mat_3x3[3] - mat_3x3[1]; - tmp[6] = tmp[9] = mat_3x3[3] + mat_3x3[1]; - tmp[7] = tmp[13] = mat_3x3[2] + mat_3x3[6]; - tmp[11] = tmp[14] = mat_3x3[7] + mat_3x3[5]; - const eigenvectors = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; - const eigenvalues = [0, 0, 0, 0]; - - // convert into format that JacobiN can use, - // then use Jacobi to find eigenvalues and eigenvectors - // tmp is copied because jacobiN may modify it - const NTemp = [...tmp]; - jacobiN(NTemp, 4, eigenvalues, eigenvectors); - - // the first eigenvector is the one we want - quat_4[0] = eigenvectors[0]; - quat_4[1] = eigenvectors[4]; - quat_4[2] = eigenvectors[8]; - quat_4[3] = eigenvectors[12]; -} -function multiplyQuaternion(quat_1, quat_2, quat_out) { - const ww = quat_1[0] * quat_2[0]; - const wx = quat_1[0] * quat_2[1]; - const wy = quat_1[0] * quat_2[2]; - const wz = quat_1[0] * quat_2[3]; - const xw = quat_1[1] * quat_2[0]; - const xx = quat_1[1] * quat_2[1]; - const xy = quat_1[1] * quat_2[2]; - const xz = quat_1[1] * quat_2[3]; - const yw = quat_1[2] * quat_2[0]; - const yx = quat_1[2] * quat_2[1]; - const yy = quat_1[2] * quat_2[2]; - const yz = quat_1[2] * quat_2[3]; - const zw = quat_1[3] * quat_2[0]; - const zx = quat_1[3] * quat_2[1]; - const zy = quat_1[3] * quat_2[2]; - const zz = quat_1[3] * quat_2[3]; - quat_out[0] = ww - xx - yy - zz; - quat_out[1] = wx + xw + yz - zy; - quat_out[2] = wy - xz + yw + zx; - quat_out[3] = wz + xy - yx + zw; -} -function orthogonalize3x3(a_3x3, out_3x3) { - // copy the matrix - for (let i = 0; i < 9; i++) { - out_3x3[i] = a_3x3[i]; - } - - // Pivot the matrix to improve accuracy - const scale = createArray(3); - const index = createArray(3); - let largest; - - // Loop over rows to get implicit scaling information - for (let i = 0; i < 3; i++) { - const x1 = Math.abs(out_3x3[i * 3]); - const x2 = Math.abs(out_3x3[i * 3 + 1]); - const x3 = Math.abs(out_3x3[i * 3 + 2]); - largest = x2 > x1 ? x2 : x1; - largest = x3 > largest ? x3 : largest; - scale[i] = 1; - if (largest !== 0) { - scale[i] /= largest; - } - } - - // first column - const x1 = Math.abs(out_3x3[0]) * scale[0]; - const x2 = Math.abs(out_3x3[3]) * scale[1]; - const x3 = Math.abs(out_3x3[6]) * scale[2]; - index[0] = 0; - largest = x1; - if (x2 >= largest) { - largest = x2; - index[0] = 1; - } - if (x3 >= largest) { - index[0] = 2; - } - if (index[0] !== 0) { - // swap vectors - swapColumnsMatrix_nxn(out_3x3, 3, index[0], 0); - scale[index[0]] = scale[0]; - } - - // second column - const y2 = Math.abs(out_3x3[4]) * scale[1]; - const y3 = Math.abs(out_3x3[7]) * scale[2]; - index[1] = 1; - largest = y2; - if (y3 >= largest) { - index[1] = 2; - // swap vectors - swapColumnsMatrix_nxn(out_3x3, 3, 1, 2); - } - - // third column - index[2] = 2; - - // A quaternion can only describe a pure rotation, not - // a rotation with a flip, therefore the flip must be - // removed before the matrix is converted to a quaternion. - let flip = 0; - if (determinant3x3(out_3x3) < 0) { - flip = 1; - for (let i = 0; i < 9; i++) { - out_3x3[i] = -out_3x3[i]; - } - } - - // Do orthogonalization using a quaternion intermediate - // (this, essentially, does the orthogonalization via - // diagonalization of an appropriately constructed symmetric - // 4x4 matrix rather than by doing SVD of the 3x3 matrix) - const quat = createArray(4); - matrix3x3ToQuaternion(out_3x3, quat); - quaternionToMatrix3x3(quat, out_3x3); - - // Put the flip back into the orthogonalized matrix. - if (flip) { - for (let i = 0; i < 9; i++) { - out_3x3[i] = -out_3x3[i]; - } - } - - // Undo the pivoting - if (index[1] !== 1) { - swapColumnsMatrix_nxn(out_3x3, 3, index[1], 1); - } - if (index[0] !== 0) { - swapColumnsMatrix_nxn(out_3x3, 3, index[0], 0); - } -} -function diagonalize3x3(a_3x3, w_3, v_3x3) { - let i; - let j; - let k; - let maxI; - let tmp; - let maxVal; - - // a is copied because jacobiN may modify it - const copyA = [...a_3x3]; - - // diagonalize using Jacobi - jacobiN(copyA, 3, w_3, v_3x3); - - // if all the eigenvalues are the same, return identity matrix - if (w_3[0] === w_3[1] && w_3[0] === w_3[2]) { - identity3x3(v_3x3); - return; - } - - // transpose temporarily, it makes it easier to sort the eigenvectors - transpose3x3(v_3x3, v_3x3); - - // if two eigenvalues are the same, re-orthogonalize to optimally line - // up the eigenvectors with the x, y, and z axes - for (i = 0; i < 3; i++) { - // two eigenvalues are the same - if (w_3[(i + 1) % 3] === w_3[(i + 2) % 3]) { - // find maximum element of the independent eigenvector - maxVal = Math.abs(v_3x3[i * 3]); - maxI = 0; - for (j = 1; j < 3; j++) { - if (maxVal < (tmp = Math.abs(v_3x3[i * 3 + j]))) { - maxVal = tmp; - maxI = j; - } - } - // swap the eigenvector into its proper position - if (maxI !== i) { - tmp = w_3[maxI]; - w_3[maxI] = w_3[i]; - w_3[i] = tmp; - swapRowsMatrix_nxn(v_3x3, 3, i, maxI); - } - // maximum element of eigenvector should be positive - if (v_3x3[maxI * 3 + maxI] < 0) { - v_3x3[maxI * 3] = -v_3x3[maxI * 3]; - v_3x3[maxI * 3 + 1] = -v_3x3[maxI * 3 + 1]; - v_3x3[maxI * 3 + 2] = -v_3x3[maxI * 3 + 2]; - } - - // re-orthogonalize the other two eigenvectors - j = (maxI + 1) % 3; - k = (maxI + 2) % 3; - v_3x3[j * 3] = 0.0; - v_3x3[j * 3 + 1] = 0.0; - v_3x3[j * 3 + 2] = 0.0; - v_3x3[j * 3 + j] = 1.0; - const vectTmp1 = cross([v_3x3[maxI * 3], v_3x3[maxI * 3 + 1], v_3x3[maxI * 3 + 2]], [v_3x3[j * 3], v_3x3[j * 3 + 1], v_3x3[j * 3 + 2]], []); - normalize(vectTmp1); - const vectTmp2 = cross(vectTmp1, [v_3x3[maxI * 3], v_3x3[maxI * 3 + 1], v_3x3[maxI * 3 + 2]], []); - for (let t = 0; t < 3; t++) { - v_3x3[k * 3 + t] = vectTmp1[t]; - v_3x3[j * 3 + t] = vectTmp2[t]; - } - - // transpose vectors back to columns - transpose3x3(v_3x3, v_3x3); - return; - } - } - - // the three eigenvalues are different, just sort the eigenvectors - // to align them with the x, y, and z axes - - // find the vector with the largest x element, make that vector - // the first vector - maxVal = Math.abs(v_3x3[0]); - maxI = 0; - for (i = 1; i < 3; i++) { - if (maxVal < (tmp = Math.abs(v_3x3[i * 3]))) { - maxVal = tmp; - maxI = i; - } - } - // swap eigenvalue and eigenvector - if (maxI !== 0) { - const eigenValTmp = w_3[maxI]; - w_3[maxI] = w_3[0]; - w_3[0] = eigenValTmp; - swapRowsMatrix_nxn(v_3x3, 3, maxI, 0); - } - // do the same for the y element - if (Math.abs(v_3x3[4]) < Math.abs(v_3x3[7])) { - const eigenValTmp = w_3[2]; - w_3[2] = w_3[1]; - w_3[1] = eigenValTmp; - swapRowsMatrix_nxn(v_3x3, 3, 1, 2); - } - - // ensure that the sign of the eigenvectors is correct - for (i = 0; i < 2; i++) { - if (v_3x3[i * 3 + i] < 0) { - v_3x3[i * 3] = -v_3x3[i * 3]; - v_3x3[i * 3 + 1] = -v_3x3[i * 3 + 1]; - v_3x3[i * 3 + 2] = -v_3x3[i * 3 + 2]; - } - } - // set sign of final eigenvector to ensure that determinant is positive - if (determinant3x3(v_3x3) < 0) { - v_3x3[6] = -v_3x3[6]; - v_3x3[7] = -v_3x3[7]; - v_3x3[8] = -v_3x3[8]; - } - - // transpose the eigenvectors back again - transpose3x3(v_3x3, v_3x3); -} -function singularValueDecomposition3x3(a_3x3, u_3x3, w_3, vT_3x3) { - let i; - // copy so that A can be used for U or VT without risk - const B = [...a_3x3]; - - // temporarily flip if determinant is negative - const d = determinant3x3(B); - if (d < 0) { - for (i = 0; i < 9; i++) { - B[i] = -B[i]; - } - } - - // orthogonalize, diagonalize, etc. - orthogonalize3x3(B, u_3x3); - transpose3x3(B, B); - multiply3x3_mat3(B, u_3x3, vT_3x3); - diagonalize3x3(vT_3x3, w_3, vT_3x3); - multiply3x3_mat3(u_3x3, vT_3x3, u_3x3); - transpose3x3(vT_3x3, vT_3x3); - - // re-create the flip - if (d < 0) { - w_3[0] = -w_3[0]; - w_3[1] = -w_3[1]; - w_3[2] = -w_3[2]; - } -} - -/** - * Factor linear equations Ax = b using LU decomposition A = LU. Output factorization LU is in matrix A. - * @param {Matrix} A square matrix - * @param {Number} index integer array of pivot indices index[0->n-1] - * @param {Number} size matrix size - */ -function luFactorLinearSystem(A, index, size) { - let i; - let j; - let k; - let largest; - let maxI = 0; - let sum; - let temp1; - let temp2; - const scale = createArray(size); - - // - // Loop over rows to get implicit scaling information - // - for (i = 0; i < size; i++) { - for (largest = 0.0, j = 0; j < size; j++) { - if ((temp2 = Math.abs(A[i * size + j])) > largest) { - largest = temp2; - } - } - if (largest === 0.0) { - vtkWarningMacro('Unable to factor linear system'); - return 0; - } - scale[i] = 1.0 / largest; - } - // - // Loop over all columns using Crout's method - // - for (j = 0; j < size; j++) { - for (i = 0; i < j; i++) { - sum = A[i * size + j]; - for (k = 0; k < i; k++) { - sum -= A[i * size + k] * A[k * size + j]; - } - A[i * size + j] = sum; - } - // - // Begin search for largest pivot element - // - for (largest = 0.0, i = j; i < size; i++) { - sum = A[i * size + j]; - for (k = 0; k < j; k++) { - sum -= A[i * size + k] * A[k * size + j]; - } - A[i * size + j] = sum; - if ((temp1 = scale[i] * Math.abs(sum)) >= largest) { - largest = temp1; - maxI = i; - } - } - // - // Check for row interchange - // - if (j !== maxI) { - for (k = 0; k < size; k++) { - temp1 = A[maxI * size + k]; - A[maxI * size + k] = A[j * size + k]; - A[j * size + k] = temp1; - } - scale[maxI] = scale[j]; - } - // - // Divide by pivot element and perform elimination - // - index[j] = maxI; - if (Math.abs(A[j * size + j]) <= VTK_SMALL_NUMBER) { - vtkWarningMacro('Unable to factor linear system'); - return 0; - } - if (j !== size - 1) { - temp1 = 1.0 / A[j * size + j]; - for (i = j + 1; i < size; i++) { - A[i * size + j] *= temp1; - } - } - } - return 1; -} -function luSolveLinearSystem(A, index, x, size) { - let i; - let j; - let ii; - let idx; - let sum; - // - // Proceed with forward and backsubstitution for L and U - // matrices. First, forward substitution. - // - for (ii = -1, i = 0; i < size; i++) { - idx = index[i]; - sum = x[idx]; - x[idx] = x[i]; - if (ii >= 0) { - for (j = ii; j <= i - 1; j++) { - sum -= A[i * size + j] * x[j]; - } - } else if (sum !== 0.0) { - ii = i; - } - x[i] = sum; - } - // - // Now, back substitution - // - for (i = size - 1; i >= 0; i--) { - sum = x[i]; - for (j = i + 1; j < size; j++) { - sum -= A[i * size + j] * x[j]; - } - x[i] = sum / A[i * size + i]; - } -} -function solveLinearSystem(A, x, size) { - // if we solving something simple, just solve it - if (size === 2) { - const y = createArray(2); - const det = determinant2x2(A[0], A[1], A[2], A[3]); - if (det === 0.0) { - // Unable to solve linear system - return 0; - } - y[0] = (A[3] * x[0] - A[1] * x[1]) / det; - y[1] = (-(A[2] * x[0]) + A[0] * x[1]) / det; - x[0] = y[0]; - x[1] = y[1]; - return 1; - } - if (size === 1) { - if (A[0] === 0.0) { - // Unable to solve linear system - return 0; - } - x[0] /= A[0]; - return 1; - } - - // - // System of equations is not trivial, use Crout's method - // - - // Check on allocation of working vectors - const index = createArray(size); - - // Factor and solve matrix - if (luFactorLinearSystem(A, index, size) === 0) { - return 0; - } - luSolveLinearSystem(A, index, x, size); - return 1; -} - -// Note that A is modified during the inversion ! -function invertMatrix(A, AI, size) { - let index = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; - let column = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null; - const tmp1Size = index || createArray(size); - const tmp2Size = column || createArray(size); - - // Factor matrix; then begin solving for inverse one column at a time. - // Note: tmp1Size returned value is used later, tmp2Size is just working - // memory whose values are not used in LUSolveLinearSystem - if (luFactorLinearSystem(A, tmp1Size, size) === 0) { - return null; - } - for (let j = 0; j < size; j++) { - for (let i = 0; i < size; i++) { - tmp2Size[i] = 0.0; - } - tmp2Size[j] = 1.0; - luSolveLinearSystem(A, tmp1Size, tmp2Size, size); - for (let i = 0; i < size; i++) { - AI[i * size + j] = tmp2Size[i]; - } - } - return AI; -} -function estimateMatrixCondition(A, size) { - let minValue = +Number.MAX_VALUE; - let maxValue = -Number.MAX_VALUE; - - // find the maximum value - for (let i = 0; i < size; i++) { - for (let j = i; j < size; j++) { - if (Math.abs(A[i * size + j]) > maxValue) { - maxValue = Math.abs(A[i * size + j]); - } - } - } - - // find the minimum diagonal value - for (let i = 0; i < size; i++) { - if (Math.abs(A[i * size + i]) < minValue) { - minValue = Math.abs(A[i * size + i]); - } - } - if (minValue === 0.0) { - return Number.MAX_VALUE; - } - return maxValue / minValue; -} -function jacobi(a_3x3, w, v) { - return jacobiN(a_3x3, 3, w, v); -} -function solveHomogeneousLeastSquares(numberOfSamples, xt, xOrder, mt) { - // check dimensional consistency - if (numberOfSamples < xOrder) { - vtkWarningMacro('Insufficient number of samples. Underdetermined.'); - return 0; - } - let i; - let j; - let k; - - // set up intermediate variables - // Allocate matrix to hold X times transpose of X - const XXt = createArray(xOrder * xOrder); // size x by x - // Allocate the array of eigenvalues and eigenvectors - const eigenvals = createArray(xOrder); - const eigenvecs = createArray(xOrder * xOrder); - - // Calculate XXt upper half only, due to symmetry - for (k = 0; k < numberOfSamples; k++) { - for (i = 0; i < xOrder; i++) { - for (j = i; j < xOrder; j++) { - XXt[i * xOrder + j] += xt[k * xOrder + i] * xt[k * xOrder + j]; - } - } - } - - // now fill in the lower half of the XXt matrix - for (i = 0; i < xOrder; i++) { - for (j = 0; j < i; j++) { - XXt[i * xOrder + j] = XXt[j * xOrder + i]; - } - } - - // Compute the eigenvectors and eigenvalues - jacobiN(XXt, xOrder, eigenvals, eigenvecs); - - // Smallest eigenval is at the end of the list (xOrder-1), and solution is - // corresponding eigenvec. - for (i = 0; i < xOrder; i++) { - mt[i] = eigenvecs[i * xOrder + xOrder - 1]; - } - return 1; -} -function solveLeastSquares(numberOfSamples, xt, xOrder, yt, yOrder, mt) { - let checkHomogeneous = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : true; - // check dimensional consistency - if (numberOfSamples < xOrder || numberOfSamples < yOrder) { - vtkWarningMacro('Insufficient number of samples. Underdetermined.'); - return 0; - } - const homogenFlags = createArray(yOrder); - let allHomogeneous = 1; - let hmt; - let homogRC = 0; - let i; - let j; - let k; - let someHomogeneous = 0; - - // Ok, first init some flags check and see if all the systems are homogeneous - if (checkHomogeneous) { - // If Y' is zero, it's a homogeneous system and can't be solved via - // the pseudoinverse method. Detect this case, warn the user, and - // invoke SolveHomogeneousLeastSquares instead. Note that it doesn't - // really make much sense for yOrder to be greater than one in this case, - // since that's just yOrder occurrences of a 0 vector on the RHS, but - // we allow it anyway. N - - // Initialize homogeneous flags on a per-right-hand-side basis - for (j = 0; j < yOrder; j++) { - homogenFlags[j] = 1; - } - for (i = 0; i < numberOfSamples; i++) { - for (j = 0; j < yOrder; j++) { - if (Math.abs(yt[i * yOrder + j]) > VTK_SMALL_NUMBER) { - allHomogeneous = 0; - homogenFlags[j] = 0; - } - } - } - - // If we've got one system, and it's homogeneous, do it and bail out quickly. - if (allHomogeneous && yOrder === 1) { - vtkWarningMacro('Detected homogeneous system (Y=0), calling SolveHomogeneousLeastSquares()'); - return solveHomogeneousLeastSquares(numberOfSamples, xt, xOrder, mt); - } - - // Ok, we've got more than one system of equations. - // Figure out if we need to calculate the homogeneous equation solution for - // any of them. - if (allHomogeneous) { - someHomogeneous = 1; - } else { - for (j = 0; j < yOrder; j++) { - if (homogenFlags[j]) { - someHomogeneous = 1; - } - } - } - } - - // If necessary, solve the homogeneous problem - if (someHomogeneous) { - // hmt is the homogeneous equation version of mt, the general solution. - // hmt should be xOrder x yOrder, but since we are solving only the homogeneous part, here it is xOrder x 1 - hmt = createArray(xOrder); - - // Ok, solve the homogeneous problem - homogRC = solveHomogeneousLeastSquares(numberOfSamples, xt, xOrder, hmt); - } - - // set up intermediate variables - const XXt = createArray(xOrder * xOrder); // size x by x - const XXtI = createArray(xOrder * xOrder); // size x by x - const XYt = createArray(xOrder * yOrder); // size x by y - - // first find the pseudoinverse matrix - for (k = 0; k < numberOfSamples; k++) { - for (i = 0; i < xOrder; i++) { - // first calculate the XXt matrix, only do the upper half (symmetrical) - for (j = i; j < xOrder; j++) { - XXt[i * xOrder + j] += xt[k * xOrder + i] * xt[k * xOrder + j]; - } - - // now calculate the XYt matrix - for (j = 0; j < yOrder; j++) { - XYt[i * yOrder + j] += xt[k * xOrder + i] * yt[k * yOrder + j]; - } - } - } - - // now fill in the lower half of the XXt matrix - for (i = 0; i < xOrder; i++) { - for (j = 0; j < i; j++) { - XXt[i * xOrder + j] = XXt[j * xOrder + i]; - } - } - const successFlag = invertMatrix(XXt, XXtI, xOrder); - - // next get the inverse of XXt - if (successFlag) { - for (i = 0; i < xOrder; i++) { - for (j = 0; j < yOrder; j++) { - mt[i * yOrder + j] = 0.0; - for (k = 0; k < xOrder; k++) { - mt[i * yOrder + j] += XXtI[i * xOrder + k] * XYt[k * yOrder + j]; - } - } - } - } - - // Fix up any of the solutions that correspond to the homogeneous equation - // problem. - if (someHomogeneous) { - for (j = 0; j < yOrder; j++) { - if (homogenFlags[j]) { - // Fix this one - for (i = 0; i < xOrder; i++) { - mt[i * yOrder + j] = hmt[i * yOrder]; - } - } - } - } - if (someHomogeneous) { - return homogRC && successFlag; - } - return successFlag; -} -function hex2float(hexStr) { - let outFloatArray = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [0, 0.5, 1]; - switch (hexStr.length) { - case 3: - // abc => #aabbcc - outFloatArray[0] = parseInt(hexStr[0], 16) * 17 / 255; - outFloatArray[1] = parseInt(hexStr[1], 16) * 17 / 255; - outFloatArray[2] = parseInt(hexStr[2], 16) * 17 / 255; - return outFloatArray; - case 4: - // #abc => #aabbcc - outFloatArray[0] = parseInt(hexStr[1], 16) * 17 / 255; - outFloatArray[1] = parseInt(hexStr[2], 16) * 17 / 255; - outFloatArray[2] = parseInt(hexStr[3], 16) * 17 / 255; - return outFloatArray; - case 6: - // ab01df => #ab01df - outFloatArray[0] = parseInt(hexStr.substr(0, 2), 16) / 255; - outFloatArray[1] = parseInt(hexStr.substr(2, 2), 16) / 255; - outFloatArray[2] = parseInt(hexStr.substr(4, 2), 16) / 255; - return outFloatArray; - case 7: - // #ab01df - outFloatArray[0] = parseInt(hexStr.substr(1, 2), 16) / 255; - outFloatArray[1] = parseInt(hexStr.substr(3, 2), 16) / 255; - outFloatArray[2] = parseInt(hexStr.substr(5, 2), 16) / 255; - return outFloatArray; - case 9: - // #ab01df00 - outFloatArray[0] = parseInt(hexStr.substr(1, 2), 16) / 255; - outFloatArray[1] = parseInt(hexStr.substr(3, 2), 16) / 255; - outFloatArray[2] = parseInt(hexStr.substr(5, 2), 16) / 255; - outFloatArray[3] = parseInt(hexStr.substr(7, 2), 16) / 255; - return outFloatArray; - default: - return outFloatArray; - } -} -function rgb2hsv(rgb, hsv) { - let h; - let s; - const [r, g, b] = rgb; - const onethird = 1.0 / 3.0; - const onesixth = 1.0 / 6.0; - const twothird = 2.0 / 3.0; - let cmax = r; - let cmin = r; - if (g > cmax) { - cmax = g; - } else if (g < cmin) { - cmin = g; - } - if (b > cmax) { - cmax = b; - } else if (b < cmin) { - cmin = b; - } - const v = cmax; - if (v > 0.0) { - s = (cmax - cmin) / cmax; - } else { - s = 0.0; - } - if (s > 0) { - if (r === cmax) { - h = onesixth * (g - b) / (cmax - cmin); - } else if (g === cmax) { - h = onethird + onesixth * (b - r) / (cmax - cmin); - } else { - h = twothird + onesixth * (r - g) / (cmax - cmin); - } - if (h < 0.0) { - h += 1.0; - } - } else { - h = 0.0; - } - - // Set the values back to the array - hsv[0] = h; - hsv[1] = s; - hsv[2] = v; -} -function hsv2rgb(hsv, rgb) { - const [h, s, v] = hsv; - const onethird = 1.0 / 3.0; - const onesixth = 1.0 / 6.0; - const twothird = 2.0 / 3.0; - const fivesixth = 5.0 / 6.0; - let r; - let g; - let b; - - // compute RGB from HSV - if (h > onesixth && h <= onethird) { - // green/red - g = 1.0; - r = (onethird - h) / onesixth; - b = 0.0; - } else if (h > onethird && h <= 0.5) { - // green/blue - g = 1.0; - b = (h - onethird) / onesixth; - r = 0.0; - } else if (h > 0.5 && h <= twothird) { - // blue/green - b = 1.0; - g = (twothird - h) / onesixth; - r = 0.0; - } else if (h > twothird && h <= fivesixth) { - // blue/red - b = 1.0; - r = (h - twothird) / onesixth; - g = 0.0; - } else if (h > fivesixth && h <= 1.0) { - // red/blue - r = 1.0; - b = (1.0 - h) / onesixth; - g = 0.0; - } else { - // red/green - r = 1.0; - g = h / onesixth; - b = 0.0; - } - - // add Saturation to the equation. - r = s * r + (1.0 - s); - g = s * g + (1.0 - s); - b = s * b + (1.0 - s); - r *= v; - g *= v; - b *= v; - - // Assign back to the array - rgb[0] = r; - rgb[1] = g; - rgb[2] = b; -} -function lab2xyz(lab, xyz) { - // LAB to XYZ - const [L, a, b] = lab; - let var_Y = (L + 16) / 116; - let var_X = a / 500 + var_Y; - let var_Z = var_Y - b / 200; - if (var_Y ** 3 > 0.008856) { - var_Y **= 3; - } else { - var_Y = (var_Y - 16.0 / 116.0) / 7.787; - } - if (var_X ** 3 > 0.008856) { - var_X **= 3; - } else { - var_X = (var_X - 16.0 / 116.0) / 7.787; - } - if (var_Z ** 3 > 0.008856) { - var_Z **= 3; - } else { - var_Z = (var_Z - 16.0 / 116.0) / 7.787; - } - const ref_X = 0.9505; - const ref_Y = 1.0; - const ref_Z = 1.089; - xyz[0] = ref_X * var_X; // ref_X = 0.9505 Observer= 2 deg Illuminant= D65 - xyz[1] = ref_Y * var_Y; // ref_Y = 1.000 - xyz[2] = ref_Z * var_Z; // ref_Z = 1.089 -} - -function xyz2lab(xyz, lab) { - const [x, y, z] = xyz; - const ref_X = 0.9505; - const ref_Y = 1.0; - const ref_Z = 1.089; - let var_X = x / ref_X; // ref_X = 0.9505 Observer= 2 deg, Illuminant= D65 - let var_Y = y / ref_Y; // ref_Y = 1.000 - let var_Z = z / ref_Z; // ref_Z = 1.089 - - if (var_X > 0.008856) var_X **= 1.0 / 3.0;else var_X = 7.787 * var_X + 16.0 / 116.0; - if (var_Y > 0.008856) var_Y **= 1.0 / 3.0;else var_Y = 7.787 * var_Y + 16.0 / 116.0; - if (var_Z > 0.008856) var_Z **= 1.0 / 3.0;else var_Z = 7.787 * var_Z + 16.0 / 116.0; - lab[0] = 116 * var_Y - 16; - lab[1] = 500 * (var_X - var_Y); - lab[2] = 200 * (var_Y - var_Z); -} -function xyz2rgb(xyz, rgb) { - const [x, y, z] = xyz; - let r = x * 3.2406 + y * -1.5372 + z * -0.4986; - let g = x * -0.9689 + y * 1.8758 + z * 0.0415; - let b = x * 0.0557 + y * -0.204 + z * 1.057; - - // The following performs a "gamma correction" specified by the sRGB color - // space. sRGB is defined by a canonical definition of a display monitor and - // has been standardized by the International Electrotechnical Commission (IEC - // 61966-2-1). The nonlinearity of the correction is designed to make the - // colors more perceptually uniform. This color space has been adopted by - // several applications including Adobe Photoshop and Microsoft Windows color - // management. OpenGL is agnostic on its RGB color space, but it is reasonable - // to assume it is close to this one. - if (r > 0.0031308) r = 1.055 * r ** (1 / 2.4) - 0.055;else r *= 12.92; - if (g > 0.0031308) g = 1.055 * g ** (1 / 2.4) - 0.055;else g *= 12.92; - if (b > 0.0031308) b = 1.055 * b ** (1 / 2.4) - 0.055;else b *= 12.92; - - // Clip colors. ideally we would do something that is perceptually closest - // (since we can see colors outside of the display gamut), but this seems to - // work well enough. - let maxVal = r; - if (maxVal < g) maxVal = g; - if (maxVal < b) maxVal = b; - if (maxVal > 1.0) { - r /= maxVal; - g /= maxVal; - b /= maxVal; - } - if (r < 0) r = 0; - if (g < 0) g = 0; - if (b < 0) b = 0; - - // Push values back to array - rgb[0] = r; - rgb[1] = g; - rgb[2] = b; -} -function rgb2xyz(rgb, xyz) { - let [r, g, b] = rgb; - // The following performs a "gamma correction" specified by the sRGB color - // space. sRGB is defined by a canonical definition of a display monitor and - // has been standardized by the International Electrotechnical Commission (IEC - // 61966-2-1). The nonlinearity of the correction is designed to make the - // colors more perceptually uniform. This color space has been adopted by - // several applications including Adobe Photoshop and Microsoft Windows color - // management. OpenGL is agnostic on its RGB color space, but it is reasonable - // to assume it is close to this one. - if (r > 0.04045) r = ((r + 0.055) / 1.055) ** 2.4;else r /= 12.92; - if (g > 0.04045) g = ((g + 0.055) / 1.055) ** 2.4;else g /= 12.92; - if (b > 0.04045) b = ((b + 0.055) / 1.055) ** 2.4;else b /= 12.92; - - // Observer. = 2 deg, Illuminant = D65 - xyz[0] = r * 0.4124 + g * 0.3576 + b * 0.1805; - xyz[1] = r * 0.2126 + g * 0.7152 + b * 0.0722; - xyz[2] = r * 0.0193 + g * 0.1192 + b * 0.9505; -} -function rgb2lab(rgb, lab) { - const xyz = [0, 0, 0]; - rgb2xyz(rgb, xyz); - xyz2lab(xyz, lab); -} -function lab2rgb(lab, rgb) { - const xyz = [0, 0, 0]; - lab2xyz(lab, xyz); - xyz2rgb(xyz, rgb); -} -function uninitializeBounds(bounds) { - bounds[0] = 1.0; - bounds[1] = -1.0; - bounds[2] = 1.0; - bounds[3] = -1.0; - bounds[4] = 1.0; - bounds[5] = -1.0; - return bounds; -} -function areBoundsInitialized(bounds) { - return !(bounds[1] - bounds[0] < 0.0); -} - -/** - * @deprecated please use vtkBoundingBox.addPoints(vtkBoundingBox.reset([]), points) - */ -function computeBoundsFromPoints(point1, point2, bounds) { - bounds[0] = Math.min(point1[0], point2[0]); - bounds[1] = Math.max(point1[0], point2[0]); - bounds[2] = Math.min(point1[1], point2[1]); - bounds[3] = Math.max(point1[1], point2[1]); - bounds[4] = Math.min(point1[2], point2[2]); - bounds[5] = Math.max(point1[2], point2[2]); - return bounds; -} -function clampValue(value, minValue, maxValue) { - if (value < minValue) { - return minValue; - } - if (value > maxValue) { - return maxValue; - } - return value; -} -function clampVector(vector, minVector, maxVector) { - let out = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [0, 0, 0]; - out[0] = clampValue(vector[0], minVector[0], maxVector[0]); - out[1] = clampValue(vector[1], minVector[1], maxVector[1]); - out[2] = clampValue(vector[2], minVector[2], maxVector[2]); - return out; -} -function clampAndNormalizeValue(value, range) { - let result = 0; - if (range[0] !== range[1]) { - // clamp - if (value < range[0]) { - result = range[0]; - } else if (value > range[1]) { - result = range[1]; - } else { - result = value; - } - // normalize - result = (result - range[0]) / (range[1] - range[0]); - } - return result; -} -const getScalarTypeFittingRange = notImplemented('GetScalarTypeFittingRange'); -const getAdjustedScalarRange = notImplemented('GetAdjustedScalarRange'); -function extentIsWithinOtherExtent(extent1, extent2) { - if (!extent1 || !extent2) { - return 0; - } - for (let i = 0; i < 6; i += 2) { - if (extent1[i] < extent2[i] || extent1[i] > extent2[i + 1] || extent1[i + 1] < extent2[i] || extent1[i + 1] > extent2[i + 1]) { - return 0; - } - } - return 1; -} -function boundsIsWithinOtherBounds(bounds1_6, bounds2_6, delta_3) { - if (!bounds1_6 || !bounds2_6) { - return 0; - } - for (let i = 0; i < 6; i += 2) { - if (bounds1_6[i] + delta_3[i / 2] < bounds2_6[i] || bounds1_6[i] - delta_3[i / 2] > bounds2_6[i + 1] || bounds1_6[i + 1] + delta_3[i / 2] < bounds2_6[i] || bounds1_6[i + 1] - delta_3[i / 2] > bounds2_6[i + 1]) { - return 0; - } - } - return 1; -} -function pointIsWithinBounds(point_3, bounds_6, delta_3) { - if (!point_3 || !bounds_6 || !delta_3) { - return 0; - } - for (let i = 0; i < 3; i++) { - if (point_3[i] + delta_3[i] < bounds_6[2 * i] || point_3[i] - delta_3[i] > bounds_6[2 * i + 1]) { - return 0; - } - } - return 1; -} -function solve3PointCircle(p1, p2, p3, center) { - const v21 = createArray(3); - const v32 = createArray(3); - const v13 = createArray(3); - const v12 = createArray(3); - const v23 = createArray(3); - const v31 = createArray(3); - for (let i = 0; i < 3; ++i) { - v21[i] = p1[i] - p2[i]; - v32[i] = p2[i] - p3[i]; - v13[i] = p3[i] - p1[i]; - v12[i] = -v21[i]; - v23[i] = -v32[i]; - v31[i] = -v13[i]; - } - const norm12 = norm(v12); - const norm23 = norm(v23); - const norm13 = norm(v13); - const crossv21v32 = createArray(3); - cross(v21, v32, crossv21v32); - const normCross = norm(crossv21v32); - const radius = norm12 * norm23 * norm13 / (2 * normCross); - const normCross22 = 2 * normCross * normCross; - const alpha = norm23 * norm23 * dot(v21, v31) / normCross22; - const beta = norm13 * norm13 * dot(v12, v32) / normCross22; - const gamma = norm12 * norm12 * dot(v13, v23) / normCross22; - for (let i = 0; i < 3; ++i) { - center[i] = alpha * p1[i] + beta * p2[i] + gamma * p3[i]; - } - return radius; -} -const inf = Infinity; -const negInf = -Infinity; -const isInf = value => !Number.isFinite(value); -const { - isFinite, - isNaN -} = Number; -const isNan = isNaN; - -// JavaScript - add-on ---------------------- - -function createUninitializedBounds() { - return [].concat([Number.MAX_VALUE, -Number.MAX_VALUE, - // X - Number.MAX_VALUE, -Number.MAX_VALUE, - // Y - Number.MAX_VALUE, -Number.MAX_VALUE // Z - ]); -} - -function getMajorAxisIndex(vector) { - let maxValue = -1; - let axisIndex = -1; - for (let i = 0; i < vector.length; i++) { - const value = Math.abs(vector[i]); - if (value > maxValue) { - axisIndex = i; - maxValue = value; - } - } - return axisIndex; -} - -// Return the closest orthogonal matrix of 1, -1 and 0 -// It works for both column major and row major matrices -// This function iteratively associate a column with a row by choosing -// the greatest absolute value from the remaining row and columns -// For each association, a -1 or a 1 is set in the output, depending on -// the sign of the value in the original matrix -function getSparseOrthogonalMatrix(matrix) { - let n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3; - // Initialize rows and columns to available indices - const rows = new Array(n); - const cols = new Array(n); - for (let i = 0; i < n; ++i) { - rows[i] = i; - cols[i] = i; - } - // No need for the last iteration: i = 0 - for (let i = n - 1; i > 0; i--) { - // Loop invariant: - // rows[0:i] and cols[0:i] contain the remaining rows and columns - // rows]i:n[ and cols]i:n[ contain the associations found (rows[k] is associated with cols[k]) - let bestValue = -Infinity; - let bestRowI = 0; - let bestColI = 0; - for (let rowI = 0; rowI <= i; ++rowI) { - const row = rows[rowI]; - for (let colI = 0; colI <= i; ++colI) { - const col = cols[colI]; - const absVal = Math.abs(matrix[row + n * col]); - if (absVal > bestValue) { - bestValue = absVal; - bestRowI = rowI; - bestColI = colI; - } - } - } - // Found an association between rows[bestRowI] and cols[bestColI] - // Put both at the end of their array by swapping with i - [rows[i], rows[bestRowI]] = [rows[bestRowI], rows[i]]; - [cols[i], cols[bestColI]] = [cols[bestColI], cols[i]]; - } - - // Convert row/column association to a matrix - const output = new Array(n * n).fill(0); - for (let i = 0; i < n; ++i) { - const matIdx = rows[i] + n * cols[i]; - output[matIdx] = matrix[matIdx] < 0 ? -1 : 1; - } - return output; -} -function floatToHex2(value) { - const integer = Math.floor(value * 255); - if (integer > 15) { - return integer.toString(16); - } - return `0${integer.toString(16)}`; -} -function floatRGB2HexCode(rgbArray) { - let prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '#'; - return `${prefix}${rgbArray.map(floatToHex2).join('')}`; -} -function floatToChar(f) { - return Math.round(f * 255); -} -function float2CssRGBA(rgbArray) { - if (rgbArray.length === 3) { - return `rgb(${rgbArray.map(floatToChar).join(', ')})`; - } - return `rgba(${floatToChar(rgbArray[0] || 0)}, ${floatToChar(rgbArray[1] || 0)}, ${floatToChar(rgbArray[2] || 0)}, ${rgbArray[3] || 0})`; -} - -// ---------------------------------------------------------------------------- -// Only Static API -// ---------------------------------------------------------------------------- - -var vtkMath = { - Pi, - ldexp, - radiansFromDegrees, - degreesFromRadians, - round, - floor, - ceil, - ceilLog2, - min, - max, - arrayMin, - arrayMax, - arrayRange, - isPowerOfTwo, - nearestPowerOfTwo, - factorial, - binomial, - beginCombination, - nextCombination, - randomSeed, - getSeed, - random, - gaussian, - add, - subtract, - multiplyScalar, - multiplyScalar2D, - multiplyAccumulate, - multiplyAccumulate2D, - dot, - outer, - cross, - norm, - normalize, - perpendiculars, - projectVector, - projectVector2D, - distance2BetweenPoints, - angleBetweenVectors, - gaussianAmplitude, - gaussianWeight, - dot2D, - outer2D, - norm2D, - normalize2D, - determinant2x2, - LUFactor3x3, - LUSolve3x3, - linearSolve3x3, - multiply3x3_vect3, - multiply3x3_mat3, - multiplyMatrix, - transpose3x3, - invert3x3, - identity3x3, - identity, - isIdentity, - isIdentity3x3, - determinant3x3, - quaternionToMatrix3x3, - areEquals, - areMatricesEqual, - roundNumber, - roundVector, - matrix3x3ToQuaternion, - multiplyQuaternion, - orthogonalize3x3, - diagonalize3x3, - singularValueDecomposition3x3, - solveLinearSystem, - invertMatrix, - luFactorLinearSystem, - luSolveLinearSystem, - estimateMatrixCondition, - jacobi, - jacobiN, - solveHomogeneousLeastSquares, - solveLeastSquares, - hex2float, - rgb2hsv, - hsv2rgb, - lab2xyz, - xyz2lab, - xyz2rgb, - rgb2xyz, - rgb2lab, - lab2rgb, - uninitializeBounds, - areBoundsInitialized, - computeBoundsFromPoints, - clampValue, - clampVector, - clampAndNormalizeValue, - getScalarTypeFittingRange, - getAdjustedScalarRange, - extentIsWithinOtherExtent, - boundsIsWithinOtherBounds, - pointIsWithinBounds, - solve3PointCircle, - inf, - negInf, - isInf, - isNan: isNaN, - isNaN, - isFinite, - // JS add-on - createUninitializedBounds, - getMajorAxisIndex, - getSparseOrthogonalMatrix, - floatToHex2, - floatRGB2HexCode, - float2CssRGBA -}; - -var vtkMath$1 = /*#__PURE__*/Object.freeze({ - __proto__: null, - createArray: createArray, - Pi: Pi, - ldexp: ldexp, - radiansFromDegrees: radiansFromDegrees, - degreesFromRadians: degreesFromRadians, - round: round, - floor: floor, - ceil: ceil, - min: min, - max: max, - arrayMin: arrayMin, - arrayMax: arrayMax, - arrayRange: arrayRange, - ceilLog2: ceilLog2, - factorial: factorial, - nearestPowerOfTwo: nearestPowerOfTwo, - isPowerOfTwo: isPowerOfTwo, - binomial: binomial, - beginCombination: beginCombination, - nextCombination: nextCombination, - randomSeed: randomSeed, - getSeed: getSeed, - random: random, - gaussian: gaussian, - add: add, - subtract: subtract, - multiplyScalar: multiplyScalar, - multiplyScalar2D: multiplyScalar2D, - multiplyAccumulate: multiplyAccumulate, - multiplyAccumulate2D: multiplyAccumulate2D, - dot: dot, - outer: outer, - cross: cross, - norm: norm, - normalize: normalize, - normalize4D: normalize4D, - perpendiculars: perpendiculars, - projectVector: projectVector, - dot2D: dot2D, - projectVector2D: projectVector2D, - distance2BetweenPoints: distance2BetweenPoints, - angleBetweenVectors: angleBetweenVectors, - signedAngleBetweenVectors: signedAngleBetweenVectors, - gaussianAmplitude: gaussianAmplitude, - gaussianWeight: gaussianWeight, - outer2D: outer2D, - norm2D: norm2D, - normalize2D: normalize2D, - rowsToMat4: rowsToMat4, - columnsToMat4: columnsToMat4, - rowsToMat3: rowsToMat3, - columnsToMat3: columnsToMat3, - determinant2x2: determinant2x2, - LUFactor3x3: LUFactor3x3, - LUSolve3x3: LUSolve3x3, - linearSolve3x3: linearSolve3x3, - multiply3x3_vect3: multiply3x3_vect3, - multiply3x3_mat3: multiply3x3_mat3, - multiplyMatrix: multiplyMatrix, - transpose3x3: transpose3x3, - invert3x3: invert3x3, - determinant3x3: determinant3x3, - areEquals: areEquals, - areMatricesEqual: areMatricesEqual, - identity3x3: identity3x3, - identity: identity, - isIdentity: isIdentity, - isIdentity3x3: isIdentity3x3, - quaternionToMatrix3x3: quaternionToMatrix3x3, - roundNumber: roundNumber, - roundVector: roundVector, - jacobiN: jacobiN, - matrix3x3ToQuaternion: matrix3x3ToQuaternion, - multiplyQuaternion: multiplyQuaternion, - orthogonalize3x3: orthogonalize3x3, - diagonalize3x3: diagonalize3x3, - singularValueDecomposition3x3: singularValueDecomposition3x3, - luFactorLinearSystem: luFactorLinearSystem, - luSolveLinearSystem: luSolveLinearSystem, - solveLinearSystem: solveLinearSystem, - invertMatrix: invertMatrix, - estimateMatrixCondition: estimateMatrixCondition, - jacobi: jacobi, - solveHomogeneousLeastSquares: solveHomogeneousLeastSquares, - solveLeastSquares: solveLeastSquares, - hex2float: hex2float, - rgb2hsv: rgb2hsv, - hsv2rgb: hsv2rgb, - lab2xyz: lab2xyz, - xyz2lab: xyz2lab, - xyz2rgb: xyz2rgb, - rgb2xyz: rgb2xyz, - rgb2lab: rgb2lab, - lab2rgb: lab2rgb, - uninitializeBounds: uninitializeBounds, - areBoundsInitialized: areBoundsInitialized, - computeBoundsFromPoints: computeBoundsFromPoints, - clampValue: clampValue, - clampVector: clampVector, - clampAndNormalizeValue: clampAndNormalizeValue, - getScalarTypeFittingRange: getScalarTypeFittingRange, - getAdjustedScalarRange: getAdjustedScalarRange, - extentIsWithinOtherExtent: extentIsWithinOtherExtent, - boundsIsWithinOtherBounds: boundsIsWithinOtherBounds, - pointIsWithinBounds: pointIsWithinBounds, - solve3PointCircle: solve3PointCircle, - inf: inf, - negInf: negInf, - isInf: isInf, - isFinite: isFinite, - isNaN: isNaN, - isNan: isNan, - createUninitializedBounds: createUninitializedBounds, - getMajorAxisIndex: getMajorAxisIndex, - getSparseOrthogonalMatrix: getSparseOrthogonalMatrix, - floatToHex2: floatToHex2, - floatRGB2HexCode: floatRGB2HexCode, - float2CssRGBA: float2CssRGBA, - 'default': vtkMath -}); - -export { createArray as $, rowsToMat3 as A, degreesFromRadians as B, ldexp as C, xyz2rgb as D, areEquals as E, clampValue as F, arrayRange as G, getMajorAxisIndex as H, createUninitializedBounds as I, normalize4D as J, identity as K, multiplyMatrix as L, floor as M, isInf as N, rgb2hsv as O, rgb2lab as P, lab2rgb as Q, round as R, normalize2D as S, nearestPowerOfTwo as T, multiply3x3_vect3 as U, getSparseOrthogonalMatrix as V, areBoundsInitialized as W, floatRGB2HexCode as X, isPowerOfTwo as Y, angleBetweenVectors as Z, signedAngleBetweenVectors as _, areMatricesEqual as a, isNaN as a$, Pi as a0, ceil as a1, min as a2, max as a3, arrayMin as a4, arrayMax as a5, ceilLog2 as a6, factorial as a7, binomial as a8, beginCombination as a9, quaternionToMatrix3x3 as aA, roundNumber as aB, matrix3x3ToQuaternion as aC, multiplyQuaternion as aD, orthogonalize3x3 as aE, diagonalize3x3 as aF, singularValueDecomposition3x3 as aG, luFactorLinearSystem as aH, luSolveLinearSystem as aI, estimateMatrixCondition as aJ, solveHomogeneousLeastSquares as aK, solveLeastSquares as aL, hex2float as aM, lab2xyz as aN, xyz2lab as aO, rgb2xyz as aP, computeBoundsFromPoints as aQ, clampAndNormalizeValue as aR, getScalarTypeFittingRange as aS, getAdjustedScalarRange as aT, extentIsWithinOtherExtent as aU, boundsIsWithinOtherBounds as aV, pointIsWithinBounds as aW, solve3PointCircle as aX, inf as aY, negInf as aZ, isFinite as a_, nextCombination as aa, randomSeed as ab, getSeed as ac, gaussian as ad, multiplyScalar2D as ae, multiplyAccumulate2D as af, outer as ag, projectVector as ah, dot2D as ai, projectVector2D as aj, gaussianAmplitude as ak, gaussianWeight as al, outer2D as am, norm2D as an, rowsToMat4 as ao, columnsToMat4 as ap, columnsToMat3 as aq, LUFactor3x3 as ar, LUSolve3x3 as as, linearSolve3x3 as at, multiply3x3_mat3 as au, transpose3x3 as av, invert3x3 as aw, identity3x3 as ax, isIdentity as ay, isIdentity3x3 as az, vtkMath as b, floatToHex2 as b0, float2CssRGBA as b1, roundVector as c, dot as d, clampVector as e, distance2BetweenPoints as f, solveLinearSystem as g, hsv2rgb as h, isNan as i, cross as j, add as k, normalize as l, multiplyAccumulate as m, norm as n, determinant2x2 as o, invertMatrix as p, jacobiN as q, radiansFromDegrees as r, subtract as s, perpendiculars as t, uninitializeBounds as u, vtkMath$1 as v, jacobi as w, multiplyScalar as x, random as y, determinant3x3 as z }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/MatrixBuilder.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/MatrixBuilder.d.ts deleted file mode 100644 index 70555369..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/MatrixBuilder.d.ts +++ /dev/null @@ -1,153 +0,0 @@ -import { mat3, mat4 } from 'gl-matrix'; -import { TypedArray, Vector3 } from './../../types'; - -declare interface Transform { - /** - * - * @param {Boolean} [useDegree] - */ - new (useDegree?: boolean); - - /** - * Multiplies the current matrix with a transformation matrix created by - * normalizing both direction vectors and rotating around the axis of the - * crossProduct by the angle from the dotProduct of the two directions. - * @param {Number[]} originDirection - * @param {Number[]} targetDirection - */ - rotateFromDirections( - originDirection: number[], - targetDirection: number[] - ): Transform; - - /** - * Normalizes the axis of rotation then rotates the current matrix `angle` - * degrees/radians around the provided axis. - * @param {Number} angle - * @param {Vector3} axis - */ - rotate(angle: number, axis: Vector3): Transform; - - /** - * Rotates `angle` degrees/radians around the X axis. - * @param {Number} angle - */ - rotateX(angle: number): Transform; - - /** - * Rotates `angle` degrees/radians around the Y axis. - * @param {Number} angle - */ - rotateY(angle: number): Transform; - - /** - * Rotates `angle` degrees/radians around the Z axis. - * @param {Number} angle - */ - rotateZ(angle: number): Transform; - - /** - * Translates the matrix by x, y, z. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - translate(x: number, y: number, z: number): Transform; - - /** - * Scales the matrix by sx, sy, sz. - * @param {Number} sx - * @param {Number} sy - * @param {Number} sz - */ - scale(sx: number, sy: number, sz: number): Transform; - - /** - * - * @param {mat4} mat4x4 - */ - multiply(mat4x4: mat4): Transform; - - /** - * Multiply the current matrix with the provided 3x3 matrix. - * @param {mat3} mat3x3 column-first matrix - */ - multiply3x3(mat3x3: mat3): Transform; - - /** - * Resets the MatrixBuilder to the Identity matrix. - */ - identity(): Transform; - - /** - * Inverts the MatrixBuilder matrix. - */ - invert(): Transform; - - /** - * Multiplies the array by the MatrixBuilder's internal matrix, in sets of - * 3. Updates the array in place. If specified, `offset` starts at a given - * position in the array, and `nbIterations` will determine the number of - * iterations (sets of 3) to loop through. Assumes the `typedArray` is an - * array of multiples of 3, unless specifically handling with offset and - * iterations. Returns the instance for chaining. - * @param {Number[]|TypedArray} typedArray The Array value. - * @param {Number} [offset] - * @param {Number} [nbIterations] - */ - apply( - typedArray: number[] | TypedArray, - offset?: number, - nbIterations?: number - ): Transform; - - /** - * Returns the internal `mat4` matrix. - */ - getMatrix(): mat4; - - /** - * Copies the given `mat4` into the builder. Useful if you already have a - * transformation matrix and want to transform it further. Returns the - * instance for chaining. - * @param {mat4} mat4x4 - */ - setMatrix(mat4x4: mat4): Transform; -} - -/** - * - * @return {Transform} - */ -declare function buildFromDegree(): Transform; - -/** - * - * @return {Transform} - */ -declare function buildFromRadian(): Transform; - -/** - * The `vtkMatrixBuilder` class provides a system to create a mat4 - * transformation matrix. All functions return the MatrixBuilder Object - * instance, allowing transformations to be chained. - * **Note**: Contrary to vtkMath, vtkMatrixBuilder uses column-major format. - * - * @example - * ```js - * let point = [2,5,12]; - * vtkMatrixBuilder.buildFromDegree().translate(1,0,2).rotateZ(45).apply(point); - * ``` - * - * The vtkMatrixBuilder class has two functions, `vtkMatrixBuilder.buildFromDegree()` and - * `vtkMatrixbuilder.buildFromRadian()`, predefining the angle format used for - * transformations and returning a MatrixBuilder instance. The matrix is - * initialized with the Identity Matrix. - * - */ -export declare const vtkMatrixBuilder: { - buildFromDegree: typeof buildFromDegree; - buildFromRadian: typeof buildFromRadian; -}; - -export default vtkMatrixBuilder; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/MatrixBuilder.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/MatrixBuilder.js deleted file mode 100644 index 34e8cb86..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/MatrixBuilder.js +++ /dev/null @@ -1,126 +0,0 @@ -import { mat4, glMatrix, vec3 } from 'gl-matrix'; -import { a as areMatricesEqual } from './Math/index.js'; -import { IDENTITY } from './Math/Constants.js'; - -const NoOp = v => v; -const EPSILON = 1e-6; -class Transform { - constructor() { - let useDegree = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - this.matrix = mat4.identity(new Float64Array(16)); - this.tmp = new Float64Array(3); - this.angleConv = useDegree ? glMatrix.toRadian : NoOp; - } - rotateFromDirections(originDirection, targetDirection) { - const src = new Float64Array(3); - const dst = new Float64Array(3); - const transf = new Float64Array(16); - vec3.set(src, originDirection[0], originDirection[1], originDirection[2]); - vec3.set(dst, targetDirection[0], targetDirection[1], targetDirection[2]); - vec3.normalize(src, src); - vec3.normalize(dst, dst); - const cosAlpha = vec3.dot(src, dst); - if (cosAlpha >= 1) { - return this; - } - vec3.cross(this.tmp, src, dst); - if (vec3.length(this.tmp) < EPSILON) { - // cross product is 0, so pick arbitrary axis perpendicular - // to originDirection. - vec3.cross(this.tmp, [1, 0, 0], originDirection); - if (vec3.length(this.tmp) < EPSILON) { - vec3.cross(this.tmp, [0, 1, 0], originDirection); - } - } - mat4.fromRotation(transf, Math.acos(cosAlpha), this.tmp); - mat4.multiply(this.matrix, this.matrix, transf); - return this; - } - rotate(angle, axis) { - vec3.set(this.tmp, ...axis); - vec3.normalize(this.tmp, this.tmp); - mat4.rotate(this.matrix, this.matrix, this.angleConv(angle), this.tmp); - return this; - } - rotateX(angle) { - mat4.rotateX(this.matrix, this.matrix, this.angleConv(angle)); - return this; - } - rotateY(angle) { - mat4.rotateY(this.matrix, this.matrix, this.angleConv(angle)); - return this; - } - rotateZ(angle) { - mat4.rotateZ(this.matrix, this.matrix, this.angleConv(angle)); - return this; - } - translate(x, y, z) { - vec3.set(this.tmp, x, y, z); - mat4.translate(this.matrix, this.matrix, this.tmp); - return this; - } - scale(sx, sy, sz) { - vec3.set(this.tmp, sx, sy, sz); - mat4.scale(this.matrix, this.matrix, this.tmp); - return this; - } - multiply(mat4x4) { - mat4.multiply(this.matrix, this.matrix, mat4x4); - return this; - } - multiply3x3(mat3x3) { - mat4.multiply(this.matrix, this.matrix, [mat3x3[0], mat3x3[1], mat3x3[2], 0, mat3x3[3], mat3x3[4], mat3x3[5], 0, mat3x3[6], mat3x3[7], mat3x3[8], 0, 0, 0, 0, 1]); - return this; - } - invert() { - mat4.invert(this.matrix, this.matrix); - return this; - } - identity() { - mat4.identity(this.matrix); - return this; - } - - //----------- - - apply(typedArray) { - let offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - let nbIterations = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1; - if (areMatricesEqual(IDENTITY, this.matrix)) { - // Make sure we can chain apply... - return this; - } - const size = nbIterations === -1 ? typedArray.length : offset + nbIterations * 3; - for (let i = offset; i < size; i += 3) { - vec3.set(this.tmp, typedArray[i], typedArray[i + 1], typedArray[i + 2]); - vec3.transformMat4(this.tmp, this.tmp, this.matrix); - typedArray[i] = this.tmp[0]; - typedArray[i + 1] = this.tmp[1]; - typedArray[i + 2] = this.tmp[2]; - } - - // Make sure we can chain apply... - return this; - } - getMatrix() { - return this.matrix; - } - setMatrix(mat4x4) { - if (!!mat4x4 && mat4x4.length === 16) { - mat4.copy(this.matrix, mat4x4); - } - return this; - } -} -function buildFromDegree() { - return new Transform(true); -} -function buildFromRadian() { - return new Transform(false); -} -var vtkMatrixBuilder = { - buildFromDegree, - buildFromRadian -}; - -export { vtkMatrixBuilder as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Points.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Points.d.ts deleted file mode 100644 index 62040f4d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Points.d.ts +++ /dev/null @@ -1,132 +0,0 @@ -import vtkDataArray from './DataArray'; -import { Bounds, TypedArray } from './../../types'; - -/** - * - */ -export interface IPointsInitialValues { - empty?: boolean; - numberOfComponents?: number; - bounds?: Bounds; -} - -export interface vtkPoints extends vtkDataArray { - /** - * Trigger the computation of bounds - */ - computeBounds(): Bounds; - - /** - * Get a copy of the bounds of the array. - * Bounds are [xmin, xmax, ymin, ymax,zmin, zmax]. - * Will recompute the bounds if necessary. - * @return {Bounds} The bounds for the mapper. - */ - getBounds(): Bounds; - - /** - * Get a reference to the model bounds of the array. - * Bounds are [xmin, xmax, ymin, ymax,zmin, zmax]. - * Will recompute the bounds if necessary. - * @return {Bounds} The bounds for the mapper. - */ - getBoundsByReference(): Bounds; - - /** - * Get the coordinate of a point. - * @param {Number} idx The index of point. - * @param {Number[]|TypedArray} [tupleToFill] (default []) - * @returns {Number[]|TypedArray} - */ - getPoint( - idx: number, - tupleToFill?: number[] | TypedArray - ): number[] | TypedArray; - - /** - * Convenient method to search a point in the array. - * This is a naïve search. Consider using a "locator" instead. - * @param {Array|TypedArray} pointToSearch - * @param {Number} precision (1e-6 by default) - * @returns {Number} the index of the point if found, -1 otherwise. - */ - findPoint( - pointToSearch: Array | TypedArray, - precision?: number - ): number; - - /** - * Get the number of points for this object can hold. - */ - getNumberOfPoints(): number; - - /** - * Set the number of points for this object to hold. - * - * ```js - * points.getData()[0] = x; - * points.getData()[1] = y; - * points.getData()[2] = z; - * ``` - * - * @param {Number} nbPoints - * @param {Number} [dimension] - */ - setNumberOfPoints(nbPoints: number, dimension?: number): void; - - /** - * Set the (x,y,z) coordinates of a point based on its index. - * @param {Number} idx The index of point. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setPoint(idx: number, x: number, y: number, z: number): void; - - /** - * Insert the (x,y,z) coordinates of a point at the next available slot. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - * @returns {Number} Index of the inserted point. - */ - insertNextPoint(x: number, y: number, z: number): number; - - /** - * Insert the [x,y,z] coordinates of a point at the given index. - * @param {Number} ptId The index of point. - * @param {Number[]} point The [x, y, z] coordinates of the point. - * @returns {Number} The index of the inserted point. - */ - insertPoint(ptId: number, point: number[]): number; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkPoints characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPointsInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPointsInitialValues -): void; - -/** - * Method used to create a new instance of vtkPoints - * @param {IPointsInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: IPointsInitialValues): vtkPoints; - -/** - * vtkPoints represents 3D points. The data model for vtkPoints is an array - * of vx-vy-vz triplets accessible by (point or cell) id. - */ - -export declare const vtkPoints: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkPoints; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Points.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Points.js deleted file mode 100644 index 591e5afe..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/Points.js +++ /dev/null @@ -1,120 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkDataArray from './DataArray.js'; -import { VtkDataTypes } from './DataArray/Constants.js'; -import { u as uninitializeBounds } from './Math/index.js'; - -const { - vtkErrorMacro -} = macro; -// ---------------------------------------------------------------------------- -// vtkPoints methods -// ---------------------------------------------------------------------------- - -function vtkPoints(publicAPI, model) { - // Keep track of modified time for bounds computation - let boundMTime = 0; - - // Set our className - model.classHierarchy.push('vtkPoints'); - - // Forwarding methods - publicAPI.getNumberOfPoints = publicAPI.getNumberOfTuples; - publicAPI.setNumberOfPoints = function (nbPoints) { - let dimension = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3; - if (publicAPI.getNumberOfPoints() !== nbPoints) { - model.size = nbPoints * dimension; - model.values = macro.newTypedArray(model.dataType, model.size); - publicAPI.setNumberOfComponents(dimension); - publicAPI.modified(); - } - }; - publicAPI.setPoint = function (idx) { - for (var _len = arguments.length, xyz = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - xyz[_key - 1] = arguments[_key]; - } - publicAPI.setTuple(idx, xyz); - }; - publicAPI.getPoint = publicAPI.getTuple; - publicAPI.findPoint = publicAPI.findTuple; - publicAPI.insertNextPoint = (x, y, z) => publicAPI.insertNextTuple([x, y, z]); - publicAPI.insertPoint = (ptId, point) => publicAPI.insertTuple(ptId, point); - const superGetBounds = publicAPI.getBounds; - publicAPI.getBounds = () => { - if (boundMTime < model.mtime) { - publicAPI.computeBounds(); - } - return superGetBounds(); - }; - const superGetBoundsByReference = publicAPI.getBoundsByReference; - publicAPI.getBoundsByReference = () => { - if (boundMTime < model.mtime) { - publicAPI.computeBounds(); - } - return superGetBoundsByReference(); - }; - - // Trigger the computation of bounds - publicAPI.computeBounds = () => { - if (publicAPI.getNumberOfComponents() === 3) { - const xRange = publicAPI.getRange(0); - model.bounds[0] = xRange[0]; - model.bounds[1] = xRange[1]; - const yRange = publicAPI.getRange(1); - model.bounds[2] = yRange[0]; - model.bounds[3] = yRange[1]; - const zRange = publicAPI.getRange(2); - model.bounds[4] = zRange[0]; - model.bounds[5] = zRange[1]; - } else if (publicAPI.getNumberOfComponents() === 2) { - const xRange = publicAPI.getRange(0); - model.bounds[0] = xRange[0]; - model.bounds[1] = xRange[1]; - const yRange = publicAPI.getRange(1); - model.bounds[2] = yRange[0]; - model.bounds[3] = yRange[1]; - model.bounds[4] = 0; - model.bounds[5] = 0; - } else { - vtkErrorMacro(`getBounds called on an array with components of ${publicAPI.getNumberOfComponents()}`); - uninitializeBounds(model.bounds); - } - boundMTime = macro.getCurrentGlobalMTime(); - }; - - // Initialize - publicAPI.setNumberOfComponents(model.numberOfComponents < 2 ? 3 : model.numberOfComponents); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - empty: true, - numberOfComponents: 3, - dataType: VtkDataTypes.FLOAT, - bounds: [1, -1, 1, -1, 1, -1] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkDataArray.extend(publicAPI, model, initialValues); - macro.getArray(publicAPI, model, ['bounds'], 6); - vtkPoints(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPoints'); - -// ---------------------------------------------------------------------------- - -var vtkPoints$1 = { - newInstance, - extend -}; - -export { vtkPoints$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/PriorityQueue.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/PriorityQueue.d.ts deleted file mode 100644 index bfef01b3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/PriorityQueue.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { vtkObject } from './../../interfaces'; - -/** - * - */ -export interface IPriorityQueueInitialValues { - elements?: Array; -} - -export interface vtkPriorityQueue extends vtkObject { - /** - * Push an element to the queue while defining a priority. - * @param {Number} priority The priority of the element. - * @param element - */ - push(priority: number, element: any): void; - - /** - * - */ - pop(): any | null; - - /** - * Delete an element from the queue by its ID. - * @param {Number} id The id of the element. - */ - deleteById(id: number): void; - - /** - * Get the length of the queue. - */ - length(): number; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkPriorityQueue characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPriorityQueueInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPriorityQueueInitialValues -): void; - -/** - * Method used to create a new instance of vtkPriorityQueue - * @param {IPriorityQueueInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IPriorityQueueInitialValues -): vtkPriorityQueue; - -/** - * vtkPriorityQueue is a general object for creating and manipulating lists of - * object ids (e.g., point or cell ids). Object ids are sorted according to a - * user-specified priority, where entries at the top of the queue have the - * smallest values. - */ -export declare const vtkPriorityQueue: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkPriorityQueue; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/PriorityQueue.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/PriorityQueue.js deleted file mode 100644 index d965e375..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/PriorityQueue.js +++ /dev/null @@ -1,65 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkPriorityQueue methods -// ---------------------------------------------------------------------------- - -function vtkPriorityQueue(publicAPI, model) { - // Set our classname - model.classHierarchy.push('vtkPriorityQueue'); - publicAPI.push = (priority, element) => { - // naive algo - const i = model.elements.findIndex(e => e.priority > priority); - model.elements.splice(i, 0, { - priority, - element - }); - }; - publicAPI.pop = () => { - if (model.elements.length > 0) { - return model.elements.shift().element; - } - return null; - }; - publicAPI.deleteById = id => { - model.elements = model.elements.filter(_ref => { - let { - element - } = _ref; - return element.id !== id; - }); - }; - publicAPI.length = () => model.elements.length; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - elements: [] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - vtkPriorityQueue(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPriorityQueue'); - -// ---------------------------------------------------------------------------- - -var vtkPriorityQueue$1 = { - newInstance, - extend -}; - -export { vtkPriorityQueue$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ProgressHandler.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ProgressHandler.d.ts deleted file mode 100644 index f0c2124a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ProgressHandler.d.ts +++ /dev/null @@ -1,75 +0,0 @@ -import { vtkObject } from './../../interfaces'; - -/** - * - */ -export interface IProgressHandlerInitialValues { - workCount?: number; -} - -export interface vtkProgressHandler extends vtkObject { - /** - * - */ - getWorkCount(): number; - - /** - * - */ - startWork(): void; - - /** - * - */ - stopWork(): void; - - /** - * - */ - isWorking(): boolean; - - /** - * - * @param promise - */ - wrapPromise(promise: any): Promise; - - /** - * - * @param fn - */ - wrapPromiseFunction(fn: any): any; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkProgressHandler characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IProgressHandlerInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IProgressHandlerInitialValues -): void; - -/** - * Method used to create a new instance of vtkProgressHandler - * @param {IProgressHandlerInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IProgressHandlerInitialValues -): vtkProgressHandler; - -/** - * vtkProgressHandler stores dataset topologies as an explicit connectivity table - * listing the point ids that make up each cell. - * - * @see vtkDataArray - */ -export declare const vtkProgressHandler: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkProgressHandler; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ProgressHandler.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ProgressHandler.js deleted file mode 100644 index 9151e443..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ProgressHandler.js +++ /dev/null @@ -1,74 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkProgressHandler methods -// ---------------------------------------------------------------------------- - -function vtkProgressHandler(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkProgressHandler'); - publicAPI.startWork = () => { - model.workCount += 1; - if (model.workCount === 1) { - publicAPI.invokeChange(true); - } - }; - publicAPI.stopWork = () => { - model.workCount -= 1; - if (model.workCount === 0) { - publicAPI.invokeChange(false); - } - }; - publicAPI.isWorking = () => !!model.workCount; - publicAPI.wrapPromise = promise => { - publicAPI.startWork(); - return new Promise((resolve, reject) => { - promise.then(function () { - publicAPI.stopWork(); - resolve(...arguments); - }, rejectError => { - publicAPI.stopWork(); - reject(rejectError); - }); - }); - }; - publicAPI.wrapPromiseFunction = fn => function () { - return publicAPI.wrapPromise(fn(...arguments)); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - workCount: 0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.event(publicAPI, model, 'change'); - macro.get(publicAPI, model, ['workCount']); - - // Object specific methods - vtkProgressHandler(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkProgressHandler'); - -// ---------------------------------------------------------------------------- - -var vtkProgressHandler$1 = { - newInstance, - extend -}; - -export { vtkProgressHandler$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ScalarsToColors.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ScalarsToColors.d.ts deleted file mode 100644 index d2e871d5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ScalarsToColors.d.ts +++ /dev/null @@ -1,402 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { ColorMode } from './../../Rendering/Core/Mapper/Constants'; -import { Range } from './../../types'; -import vtkDataArray from './DataArray'; -import { ScalarMappingTarget, VectorMode } from './ScalarsToColors/Constants'; - -/** - * - */ -export interface IScalarsToColorsInitialValues { - alpha?: number; - vectorComponent?: number; - vectorSize?: number; - indexedLookup?: boolean; -} - -export interface vtkScalarsToColors extends vtkObject { - /** - * Perform any processing required (if any) before processing scalars. - */ - build(): void; - - /** - * - * @param value - */ - checkForAnnotatedValue(value: any): number; - - /** - * - * @param colors - * @param numComp - * @param numTuples - */ - convertToRGBA(colors: any, numComp: number, numTuples: number): void; - - /** - * Specify an additional opacity (alpha) value to blend with. - */ - getAlpha(): number; - - /** - * - * @param {Number} idx - */ - getAnnotatedValue(idx: number): void; - - /** - * - * @param val - */ - getAnnotatedValueIndex(val: any): number; - - /** - * An unsafe version of vtkScalarsToColors.checkForAnnotatedValue for - * internal use (no pointer checks performed) - * @param value - */ - getAnnotatedValueIndexInternal(value: any): number; - - /** - * - * @param {Number} idx - */ - getAnnotation(idx: number): string; - - /** - * - * @param val - * @param rgba - */ - getAnnotationColor(val: any, rgba: any): void; - - /** - * - * @param val - * @param rgba - */ - getIndexedColor(val: number, rgba: any): void; - - /** - * - */ - getIndexedLookup(): boolean; - - /** - * - */ - getMappingRange(): Range; - - /** - * - */ - getMappingRangeByReference(): Range; - - /** - * Return the annotated value at a particular index in the list of annotations. - */ - getNumberOfAnnotatedValues(): number; - - /** - * Get the number of available colors for mapping to. - */ - getNumberOfAvailableColors(): number; - - /** - * - */ - getRange(): Range; - - /** - * Get which component of a vector to map to colors. - */ - getVectorComponent(): number; - - /** - * - */ - getVectorMode(): VectorMode; - - /** - * - */ - getVectorSize(): number; - - /** - * @see areScalarsOpaque - */ - isOpaque(): boolean; - - /** - * Returns false if scalars are Uint8 LA or RGBA with A < 255, - * otherwise rely on getAlpha() in case of direct mapping, - * otherwise return isOpaque() - * - * @see isOpaque, getAlpha - * - * @param {vtkDataArray} scalars - * @param {ColorMode} colorMode - * @param {Number} componentIn - * - */ - areScalarsOpaque( - scalars: vtkDataArray, - colorMode: ColorMode, - componentIn: number - ): boolean; - - /** - * - * @param newColors - * @param colors - * @param {Number} alpha - * @param convtFun - */ - luminanceAlphaToRGBA( - newColors: any, - colors: any, - alpha: number, - convtFun: any - ): void; - - /** - * - * @param newColors - * @param colors - * @param {Number} alpha - * @param convtFun - */ - luminanceToRGBA( - newColors: any, - colors: any, - alpha: number, - convtFun: any - ): void; - - /** - * Internal methods that map a data array into a 4-component, unsigned char - * RGBA array. The color mode determines the behavior of mapping. If - * ColorMode.DEFAULT is set, then unsigned char data arrays are treated as - * colors (and converted to RGBA if necessary); If ColorMode.DIRECT_SCALARS - * is set, then all arrays are treated as colors (integer types are clamped - * in the range 0-255, floating point arrays are clamped in the range - * 0.0-1.0. Note 'char' does not have enough values to represent a color so - * mapping this type is considered an error); otherwise, the data is mapped - * through this instance of ScalarsToColors. The component argument is used - * for data arrays with more than one component; it indicates which - * component to use to do the blending. When the component argument is -1, - * then the this object uses its own selected technique to change a vector - * into a scalar to map. - * @param scalars - * @param {ColorMode} colorMode - * @param {Number} componentIn - */ - mapScalars(scalars: any, colorMode: ColorMode, componentIn: number): void; - - /** - * Map a set of vector values through the table - * @param input - * @param output - * @param {ScalarMappingTarget} outputFormat - * @param vectorComponentIn - * @param {Number} vectorSizeIn - */ - mapVectorsThroughTable( - input: any, - output: any, - outputFormat: ScalarMappingTarget, - vectorComponentIn: number, - vectorSizeIn: number - ): void; - - /** - * - * @param input - * @param output - * @param {Number} compsToUse - */ - mapVectorsToMagnitude(input: any, output: any, compsToUse: number): void; - - /** - * - * @param newColors - * @param colors - * @param {Number} alpha - * @param convtFun - */ - rGBAToRGBA(newColors: any, colors: any, alpha: number, convtFun: any): void; - - /** - * - * @param newColors - * @param colors - * @param {Number} alpha - * @param convtFun - */ - rGBToRGBA(newColors: any, colors: any, alpha: number, convtFun: any): void; - - /** - * Remove an existing entry from the list of annotated values. - * @param value - */ - removeAnnotation(value: any): boolean; - - /** - * Remove all existing values and their annotations. - */ - resetAnnotations(): void; - - /** - * - * @param {Number} alpha - */ - setAlpha(alpha: number): boolean; - - /** - * - * @param value - * @param annotation - */ - setAnnotation(value: any, annotation: any): number; - - /** - * - * @param values - * @param annotations - */ - setAnnotations(values: any, annotations: any): void; - - /** - * - * @param {Boolean} indexedLookup - */ - setIndexedLookup(indexedLookup: boolean): boolean; - - /** - * - * @param {Range} mappingRange - */ - setMappingRange(mappingRange: Range): boolean; - - /** - * - * @param {Number} min - * @param {Number} max - */ - setMappingRange(min: number, max: number): boolean; - - /** - * - * @param {Range} mappingRange - */ - setMappingRangeFrom(mappingRange: Range): boolean; - - /** - * - * @param {Number} min - * @param {Number} max - */ - setRange(min: number, max: number): boolean; - - /** - * If the mapper does not select which component of a vector to map to - * colors, you can specify it here. - * @param {Number} vectorComponent The value of the vector mode. - */ - setVectorComponent(vectorComponent: number): boolean; - - /** - * Change mode that maps vectors by magnitude vs. component. If the mode is - * "RGBColors", then the vectors components are scaled to the range and - * passed directly as the colors. - * @param {VectorMode} vectorMode The value of the vector mode. - */ - setVectorMode(vectorMode: VectorMode): boolean; - - /** - * Set vectorMode to `VectorMode.MAGNITUDE` - */ - setVectorModeToMagnitude(): boolean; - - /** - * Set vectorMode to `VectorMode.COMPONENT` - */ - setVectorModeToComponent(): boolean; - - /** - * When mapping vectors, consider only the number of components selected by - * `vectorSize` to be part of the vector, and ignore any other components. Set - * to -1 to map all components. If this is not set to -1, then you can use - * `setVectorComponent` to set which scalar component will be the first - * component in the vector to be mapped. - */ - setVectorModeToRGBColors(): boolean; - - /** - * When mapping vectors, consider only the number of components selected by - * VectorSize to be part of the vector, and ignore any other components. - * @param {Number} vectorSize The value of the vectorSize. - */ - setVectorSize(vectorSize: number): boolean; - - /** - * Update the map from annotated values to indices in the array of annotations. - */ - updateAnnotatedValueMap(): boolean; - - /** - * - */ - usingLogScale(): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkScalarsToColors characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IScalarsToColorsInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IScalarsToColorsInitialValues -): void; - -/** - * Method used to create a new instance of vtkScalarsToColors - * @param {IScalarsToColorsInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IScalarsToColorsInitialValues -): vtkScalarsToColors; - -/** - * vtkScalarsToColors is a general-purpose base class for objects that convert - * scalars to colors. This include vtkLookupTable classes and color transfer - * functions. By itself, this class will simply rescale the scalars. - * - * The scalar-to-color mapping can be augmented with an additional uniform alpha - * blend. This is used, for example, to blend a vtkActor's opacity with the - * lookup table values. - * - * Specific scalar values may be annotated with text strings that will be - * included in color legends using `setAnnotations`, `setAnnotation`, - * `getNumberOfAnnotatedValues`, `getAnnotatedValue`, `getAnnotation`, - * `removeAnnotation`, and `resetAnnotations`. - * - * This class also has a method for indicating that the set of annotated values - * form a categorical color map; by setting IndexedLookup to true, you indicate - * that the annotated values are the only valid values for which entries in the - * color table should be returned. In this mode, subclasses should then assign - * colors to annotated values by taking the modulus of an annotated value's - * index in the list of annotations with the number of colors in the table. - */ -export declare const vtkScalarsToColors: { - newInstance: typeof newInstance; - extend: typeof extend; - VectorMode: typeof VectorMode; - ScalarMappingTarget: typeof VectorMode; -}; -export default vtkScalarsToColors; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ScalarsToColors.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ScalarsToColors.js deleted file mode 100644 index ffa7fc28..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ScalarsToColors.js +++ /dev/null @@ -1,516 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkDataArray from './DataArray.js'; -import vtkScalarsToColors$2 from './ScalarsToColors/Constants.js'; -import Constants from '../../Rendering/Core/Mapper/Constants.js'; - -const { - ScalarMappingTarget, - Scale, - VectorMode -} = vtkScalarsToColors$2; -const { - VtkDataTypes -} = vtkDataArray; -const { - ColorMode -} = Constants; -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -// Add module-level functions or api that you want to expose statically via -// the next section... - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -function intColorToUChar(c) { - return c; -} -function floatColorToUChar(c) { - return Math.floor(c * 255.0 + 0.5); -} - -// ---------------------------------------------------------------------------- -// vtkScalarsToColors methods -// ---------------------------------------------------------------------------- - -function vtkScalarsToColors(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkScalarsToColors'); - publicAPI.setVectorModeToMagnitude = () => publicAPI.setVectorMode(VectorMode.MAGNITUDE); - publicAPI.setVectorModeToComponent = () => publicAPI.setVectorMode(VectorMode.COMPONENT); - publicAPI.setVectorModeToRGBColors = () => publicAPI.setVectorMode(VectorMode.RGBCOLORS); - publicAPI.build = () => {}; - publicAPI.isOpaque = () => true; - - //---------------------------------------------------------------------------- - publicAPI.setAnnotations = (values, annotations) => { - if (values && !annotations || !values && annotations) { - return; - } - if (values && annotations && values.length !== annotations.length) { - vtkErrorMacro('Values and annotations do not have the same number of tuples so ignoring'); - return; - } - model.annotationArray = []; - if (annotations && values) { - const num = annotations.length; - for (let i = 0; i < num; i++) { - model.annotationArray.push({ - value: values[i], - annotation: String(annotations[i]) - }); - } - } - publicAPI.updateAnnotatedValueMap(); - publicAPI.modified(); - }; - - //---------------------------------------------------------------------------- - publicAPI.setAnnotation = (value, annotation) => { - let i = publicAPI.checkForAnnotatedValue(value); - let modified = false; - if (i >= 0) { - if (model.annotationArray[i].annotation !== annotation) { - model.annotationArray[i].annotation = annotation; - modified = true; - } - } else { - model.annotationArray.push({ - value, - annotation - }); - i = model.annotationArray.length - 1; - modified = true; - } - if (modified) { - publicAPI.updateAnnotatedValueMap(); - publicAPI.modified(); - } - return i; - }; - - //---------------------------------------------------------------------------- - publicAPI.getNumberOfAnnotatedValues = () => model.annotationArray.length; - - //---------------------------------------------------------------------------- - publicAPI.getAnnotatedValue = idx => { - if (idx < 0 || idx >= model.annotationArray.length) { - return null; - } - return model.annotationArray[idx].value; - }; - - //---------------------------------------------------------------------------- - publicAPI.getAnnotation = idx => { - if (model.annotationArray[idx] === undefined) { - return null; - } - return model.annotationArray[idx].annotation; - }; - - //---------------------------------------------------------------------------- - publicAPI.getAnnotatedValueIndex = val => model.annotationArray.length ? publicAPI.checkForAnnotatedValue(val) : -1; - - //---------------------------------------------------------------------------- - publicAPI.removeAnnotation = value => { - const i = publicAPI.checkForAnnotatedValue(value); - const needToRemove = i >= 0; - if (needToRemove) { - model.annotationArray.splice(i, 1); - publicAPI.updateAnnotatedValueMap(); - publicAPI.modified(); - } - return needToRemove; - }; - - //---------------------------------------------------------------------------- - publicAPI.resetAnnotations = () => { - model.annotationArray = []; - model.annotatedValueMap = []; - publicAPI.modified(); - }; - - //---------------------------------------------------------------------------- - publicAPI.getAnnotationColor = (val, rgba) => { - if (model.indexedLookup) { - const i = publicAPI.getAnnotatedValueIndex(val); - publicAPI.getIndexedColor(i, rgba); - } else { - publicAPI.getColor(parseFloat(val), rgba); - rgba[3] = 1.0; - } - }; - - //---------------------------------------------------------------------------- - publicAPI.checkForAnnotatedValue = value => publicAPI.getAnnotatedValueIndexInternal(value); - - //---------------------------------------------------------------------------- - // An unsafe version of vtkScalarsToColors::CheckForAnnotatedValue for - // internal use (no pointer checks performed) - publicAPI.getAnnotatedValueIndexInternal = value => { - if (model.annotatedValueMap[value] !== undefined) { - const na = model.annotationArray.length; - return model.annotatedValueMap[value] % na; - } - // Treat as a NaN - return -1; - }; - - //---------------------------------------------------------------------------- - publicAPI.getIndexedColor = (val, rgba) => { - rgba[0] = 0.0; - rgba[1] = 0.0; - rgba[2] = 0.0; - rgba[3] = 0.0; - }; - - //---------------------------------------------------------------------------- - publicAPI.updateAnnotatedValueMap = () => { - model.annotatedValueMap = []; - const na = model.annotationArray.length; - for (let i = 0; i < na; i++) { - model.annotatedValueMap[model.annotationArray[i].value] = i; - } - }; - - // Description: - // Internal methods that map a data array into a 4-component, - // unsigned char RGBA array. The color mode determines the behavior - // of mapping. If ColorMode.DEFAULT is set, then unsigned char - // data arrays are treated as colors (and converted to RGBA if - // necessary); If ColorMode.DIRECT_SCALARS is set, then all arrays - // are treated as colors (integer types are clamped in the range 0-255, - // floating point arrays are clamped in the range 0.0-1.0. Note 'char' does - // not have enough values to represent a color so mapping this type is - // considered an error); - // otherwise, the data is mapped through this instance - // of ScalarsToColors. The component argument is used for data - // arrays with more than one component; it indicates which component - // to use to do the blending. When the component argument is -1, - // then the this object uses its own selected technique to change a - // vector into a scalar to map. - publicAPI.mapScalars = (scalars, colorMode, componentIn) => { - const numberOfComponents = scalars.getNumberOfComponents(); - let newColors = null; - - // map scalars through lookup table only if needed - if (colorMode === ColorMode.DEFAULT && (scalars.getDataType() === VtkDataTypes.UNSIGNED_CHAR || scalars.getDataType() === VtkDataTypes.UNSIGNED_CHAR_CLAMPED) || colorMode === ColorMode.DIRECT_SCALARS && scalars) { - newColors = publicAPI.convertToRGBA(scalars, numberOfComponents, scalars.getNumberOfTuples()); - } else { - const newscalars = { - type: 'vtkDataArray', - name: 'temp', - numberOfComponents: 4, - dataType: VtkDataTypes.UNSIGNED_CHAR - }; - const s = macro.newTypedArray(newscalars.dataType, 4 * scalars.getNumberOfTuples()); - newscalars.values = s; - newscalars.size = s.length; - newColors = vtkDataArray.newInstance(newscalars); - let component = componentIn; - - // If mapper did not specify a component, use the VectorMode - if (component < 0 && numberOfComponents > 1) { - publicAPI.mapVectorsThroughTable(scalars, newColors, ScalarMappingTarget.RGBA, -1, -1); - } else { - if (component < 0) { - component = 0; - } - if (component >= numberOfComponents) { - component = numberOfComponents - 1; - } - - // Map the scalars to colors - publicAPI.mapScalarsThroughTable(scalars, newColors, ScalarMappingTarget.RGBA, component); - } - } - return newColors; - }; - publicAPI.mapVectorsToMagnitude = (input, output, compsToUse) => { - const length = input.getNumberOfTuples(); - const inIncr = input.getNumberOfComponents(); - const outputV = output.getData(); - const inputV = input.getData(); - for (let i = 0; i < length; i++) { - let sum = 0.0; - for (let j = 0; j < compsToUse; j++) { - sum += inputV[i * inIncr + j] * inputV[i * inIncr + j]; - } - outputV[i] = Math.sqrt(sum); - } - }; - - //---------------------------------------------------------------------------- - // Map a set of vector values through the table - publicAPI.mapVectorsThroughTable = (input, output, outputFormat, vectorComponentIn, vectorSizeIn) => { - let vectorMode = publicAPI.getVectorMode(); - let vectorSize = vectorSizeIn; - let vectorComponent = vectorComponentIn; - const inComponents = input.getNumberOfComponents(); - if (vectorMode === VectorMode.COMPONENT) { - // make sure vectorComponent is within allowed range - if (vectorComponent === -1) { - // if set to -1, use default value provided by table - vectorComponent = publicAPI.getVectorComponent(); - } - if (vectorComponent < 0) { - vectorComponent = 0; - } - if (vectorComponent >= inComponents) { - vectorComponent = inComponents - 1; - } - } else { - // make sure vectorSize is within allowed range - if (vectorSize === -1) { - // if set to -1, use default value provided by table - vectorSize = publicAPI.getVectorSize(); - } - if (vectorSize <= 0) { - vectorComponent = 0; - vectorSize = inComponents; - } else { - if (vectorComponent < 0) { - vectorComponent = 0; - } - if (vectorComponent >= inComponents) { - vectorComponent = inComponents - 1; - } - if (vectorComponent + vectorSize > inComponents) { - vectorSize = inComponents - vectorComponent; - } - } - if (vectorMode === VectorMode.MAGNITUDE && (inComponents === 1 || vectorSize === 1)) { - vectorMode = VectorMode.COMPONENT; - } - } - - // increment input pointer to the first component to map - let inputOffset = 0; - if (vectorComponent > 0) { - inputOffset = vectorComponent; - } - - // map according to the current vector mode - switch (vectorMode) { - case VectorMode.COMPONENT: - { - publicAPI.mapScalarsThroughTable(input, output, outputFormat, inputOffset); - break; - } - case VectorMode.RGBCOLORS: - { - // publicAPI.mapColorsToColors( - // input, output, inComponents, vectorSize, - // outputFormat); - break; - } - - // MAGNITUDE is considered default - case VectorMode.MAGNITUDE: - default: - { - const magValues = vtkDataArray.newInstance({ - numberOfComponents: 1, - values: new Float32Array(input.getNumberOfTuples()) - }); - publicAPI.mapVectorsToMagnitude(input, magValues, vectorSize); - publicAPI.mapScalarsThroughTable(magValues, output, outputFormat, 0); - break; - } - } - }; - publicAPI.luminanceToRGBA = (newColors, colors, alpha, convtFun) => { - const a = convtFun(alpha); - const values = colors.getData(); - const newValues = newColors.getData(); - const size = values.length; - const component = 0; - const tuple = 1; - let count = 0; - for (let i = component; i < size; i += tuple) { - const l = convtFun(values[i]); - newValues[count * 4] = l; - newValues[count * 4 + 1] = l; - newValues[count * 4 + 2] = l; - newValues[count * 4 + 3] = a; - count++; - } - }; - publicAPI.luminanceAlphaToRGBA = (newColors, colors, alpha, convtFun) => { - const values = colors.getData(); - const newValues = newColors.getData(); - const size = values.length; - const component = 0; - const tuple = 2; - let count = 0; - for (let i = component; i < size; i += tuple) { - const l = convtFun(values[i]); - newValues[count] = l; - newValues[count + 1] = l; - newValues[count + 2] = l; - newValues[count + 3] = convtFun(values[i + 1]) * alpha; - count += 4; - } - }; - publicAPI.rGBToRGBA = (newColors, colors, alpha, convtFun) => { - const a = floatColorToUChar(alpha); - const values = colors.getData(); - const newValues = newColors.getData(); - const size = values.length; - const component = 0; - const tuple = 3; - let count = 0; - for (let i = component; i < size; i += tuple) { - newValues[count * 4] = convtFun(values[i]); - newValues[count * 4 + 1] = convtFun(values[i + 1]); - newValues[count * 4 + 2] = convtFun(values[i + 2]); - newValues[count * 4 + 3] = a; - count++; - } - }; - publicAPI.rGBAToRGBA = (newColors, colors, alpha, convtFun) => { - const values = colors.getData(); - const newValues = newColors.getData(); - const size = values.length; - const component = 0; - const tuple = 4; - let count = 0; - for (let i = component; i < size; i += tuple) { - newValues[count * 4] = convtFun(values[i]); - newValues[count * 4 + 1] = convtFun(values[i + 1]); - newValues[count * 4 + 2] = convtFun(values[i + 2]); - newValues[count * 4 + 3] = convtFun(values[i + 3]) * alpha; - count++; - } - }; - - //---------------------------------------------------------------------------- - publicAPI.convertToRGBA = (colors, numComp, numTuples) => { - let { - alpha - } = model; - if (numComp === 4 && alpha >= 1.0 && colors.getDataType() === VtkDataTypes.UNSIGNED_CHAR) { - return colors; - } - const newColors = vtkDataArray.newInstance({ - numberOfComponents: 4, - empty: true, - size: 4 * numTuples, - dataType: VtkDataTypes.UNSIGNED_CHAR - }); - if (numTuples <= 0) { - return newColors; - } - alpha = alpha > 0 ? alpha : 0; - alpha = alpha < 1 ? alpha : 1; - let convtFun = intColorToUChar; - if (colors.getDataType() === VtkDataTypes.FLOAT || colors.getDataType() === VtkDataTypes.DOUBLE) { - convtFun = floatColorToUChar; - } - switch (numComp) { - case 1: - publicAPI.luminanceToRGBA(newColors, colors, alpha, convtFun); - break; - case 2: - publicAPI.luminanceAlphaToRGBA(newColors, colors, convtFun); - break; - case 3: - publicAPI.rGBToRGBA(newColors, colors, alpha, convtFun); - break; - case 4: - publicAPI.rGBAToRGBA(newColors, colors, alpha, convtFun); - break; - default: - vtkErrorMacro('Cannot convert colors'); - return null; - } - return newColors; - }; - publicAPI.usingLogScale = () => false; - publicAPI.getNumberOfAvailableColors = () => 256 * 256 * 256; - publicAPI.setRange = (min, max) => publicAPI.setMappingRange(min, max); - publicAPI.getRange = () => publicAPI.getMappingRange(); - publicAPI.areScalarsOpaque = (scalars, colorMode, componentIn) => { - if (!scalars) { - return publicAPI.isOpaque(); - } - const numberOfComponents = scalars.getNumberOfComponents(); - - // map scalars through lookup table only if needed - if (colorMode === ColorMode.DEFAULT && scalars.getDataType() === VtkDataTypes.UNSIGNED_CHAR || colorMode === ColorMode.DIRECT_SCALARS) { - // we will be using the scalars directly, so look at the number of - // components and the range - if (numberOfComponents === 3 || numberOfComponents === 1) { - return model.alpha >= 1.0; - } - // otherwise look at the range of the alpha channel - const range = scalars.getRange(numberOfComponents - 1); - return range[0] === 255; - } - return true; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - alpha: 1.0, - vectorComponent: 0, - vectorSize: -1, - vectorMode: VectorMode.COMPONENT, - mappingRange: null, - annotationArray: null, - annotatedValueMap: null, - indexedLookup: false, - scale: Scale.LINEAR -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - model.mappingRange = [0, 255]; - model.annotationArray = []; - model.annotatedValueMap = []; - - // Create get-set macros - macro.setGet(publicAPI, model, ['vectorSize', 'vectorComponent', 'vectorMode', 'alpha', 'indexedLookup']); - - // Create set macros for array (needs to know size) - macro.setArray(publicAPI, model, ['mappingRange'], 2); - - // Create get macros for array - macro.getArray(publicAPI, model, ['mappingRange']); - - // For more macro methods, see "Sources/macros.js" - - // Object specific methods - vtkScalarsToColors(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkScalarsToColors'); - -// ---------------------------------------------------------------------------- - -var vtkScalarsToColors$1 = { - newInstance, - extend, - ...vtkScalarsToColors$2 -}; - -export { vtkScalarsToColors$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ScalarsToColors/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ScalarsToColors/Constants.d.ts deleted file mode 100644 index e62cd1bc..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ScalarsToColors/Constants.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export declare enum VectorMode { - MAGNITUDE = 0, - COMPONENT = 1, - RGBCOLORS = 2, -} - -export declare enum ScalarMappingTarget { - LUMINANCE = 1, - LUMINANCE_ALPHA = 2, - RGB = 3, - RGBA = 4, -} - -declare const _default: { - VectorMode: typeof VectorMode; - ScalarMappingTarget: typeof ScalarMappingTarget; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ScalarsToColors/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ScalarsToColors/Constants.js deleted file mode 100644 index 161a144b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/ScalarsToColors/Constants.js +++ /dev/null @@ -1,22 +0,0 @@ -const VectorMode = { - MAGNITUDE: 0, - COMPONENT: 1, - RGBCOLORS: 2 -}; -const ScalarMappingTarget = { - LUMINANCE: 1, - LUMINANCE_ALPHA: 2, - RGB: 3, - RGBA: 4 -}; -const Scale = { - LINEAR: 0, - LOG10: 1 -}; -var vtkScalarsToColors = { - VectorMode, - ScalarMappingTarget, - Scale -}; - -export { ScalarMappingTarget, Scale, VectorMode, vtkScalarsToColors as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/StringArray.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/StringArray.d.ts deleted file mode 100644 index cdf26be0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/StringArray.d.ts +++ /dev/null @@ -1,124 +0,0 @@ -import { vtkObject } from './../../interfaces'; - -/** - * - */ -export interface IStringArrayInitialValues { - name?: string; - numberOfComponents?: number; - size: number; - dataType?: string; -} - -export interface vtkStringArray extends vtkObject { - /** - * Get the data component at the location specified by tupleIdx and compIdx. - * @param {Number} tupleIdx - * @param {Number} [compIdx] - */ - getComponent(tupleIdx: number, compIdx?: number): void; - - /** - * - */ - getData(): string[]; - - /** - * - */ - getDataType(): string; - - /** - * - */ - getName(): string; - - /** - * - */ - getNumberOfComponents(): number; - - /** - * - */ - getNumberOfValues(): number; - - /** - * - */ - getNumberOfTuples(): number; - - /** - * - * @param {Number} idx - * @param {String[]} [tupleToFill] - */ - getTuple(idx: number, tupleToFill?: string[]): string[]; - - /** - * - * @param {Number} [idx] - */ - getTupleLocation(idx?: number): number; - - /** - * - */ - newClone(): void; - - /** - * Set the data component at the location specified by tupleIdx and compIdx - * to value. - * Note that i is less than NumberOfTuples and j is less than - * NumberOfComponents. Make sure enough memory has been allocated - * (use SetNumberOfTuples() and SetNumberOfComponents()). - * @param {Number} tupleIdx - * @param {Number} compIdx - * @param {String} value - */ - setComponent(tupleIdx: number, compIdx: number, value: string): void; - - /** - * - * @param {String[]} array - * @param {Number} numberOfComponents - */ - setData(array: string[], numberOfComponents: number): void; - - /** - * - */ - setName(name: string): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkStringArray characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IStringArrayInitialValues} initialValues (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues: IStringArrayInitialValues -): void; - -/** - * Method used to create a new instance of vtkStringArray - * @param {IStringArrayInitialValues} initialValues for pre-setting some of its content - */ -export function newInstance( - initialValues: IStringArrayInitialValues -): vtkStringArray; - -/** - * Points and cells may sometimes have associated data that are stored as - * strings, e.g. labels for information visualization projects. This class - * provides a clean way to store and access those strings. - */ -export declare const vtkStringArray: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkStringArray; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/StringArray.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/StringArray.js deleted file mode 100644 index 403a9770..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/StringArray.js +++ /dev/null @@ -1,127 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkStringArray methods -// ---------------------------------------------------------------------------- - -function vtkStringArray(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkStringArray'); - - // Description: - // Return the data component at the location specified by tupleIdx and - // compIdx. - publicAPI.getComponent = function (tupleIdx) { - let compIdx = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - return model.values[tupleIdx * model.numberOfComponents + compIdx]; - }; - - // Description: - // Set the data component at the location specified by tupleIdx and compIdx - // to value. - // Note that i is less than NumberOfTuples and j is less than - // NumberOfComponents. Make sure enough memory has been allocated - // (use SetNumberOfTuples() and SetNumberOfComponents()). - publicAPI.setComponent = (tupleIdx, compIdx, value) => { - if (value !== model.values[tupleIdx * model.numberOfComponents + compIdx]) { - model.values[tupleIdx * model.numberOfComponents + compIdx] = value; - publicAPI.modified(); - } - }; - publicAPI.getData = () => model.values; - publicAPI.getTuple = function (idx) { - let tupleToFill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - const numberOfComponents = model.numberOfComponents || 1; - if (tupleToFill.length) { - tupleToFill.length = numberOfComponents; - } - const offset = idx * numberOfComponents; - for (let i = 0; i < numberOfComponents; i++) { - tupleToFill[i] = model.values[offset + i]; - } - return tupleToFill; - }; - publicAPI.getTupleLocation = function () { - let idx = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; - return idx * model.numberOfComponents; - }; - publicAPI.getNumberOfComponents = () => model.numberOfComponents; - publicAPI.getNumberOfValues = () => model.values.length; - publicAPI.getNumberOfTuples = () => model.values.length / model.numberOfComponents; - publicAPI.getDataType = () => model.dataType; - /* eslint-disable no-use-before-define */ - publicAPI.newClone = () => newInstance({ - name: model.name, - numberOfComponents: model.numberOfComponents, - empty: true - }); - /* eslint-enable no-use-before-define */ - - publicAPI.getName = () => { - if (!model.name) { - publicAPI.setName(`vtkStringArray${publicAPI.getMTime()}`); - } - return model.name; - }; - publicAPI.setData = (array, numberOfComponents) => { - model.values = array; - model.size = array.length; - if (numberOfComponents) { - model.numberOfComponents = numberOfComponents; - } - if (model.size % model.numberOfComponents !== 0) { - model.numberOfComponents = 1; - } - publicAPI.modified(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - name: '', - numberOfComponents: 1, - size: 0, - // values: null, - dataType: 'string' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - if (!model.empty && !model.values && !model.size) { - throw new TypeError('Cannot create vtkStringArray object without: size > 0, values'); - } - if (!model.values) { - model.values = []; - } else if (Array.isArray(model.values)) { - model.values = [...model.values]; - } - if (model.values) { - model.size = model.values.length; - } - - // Object methods - macro.obj(publicAPI, model); - macro.set(publicAPI, model, ['name']); - - // Object specific methods - vtkStringArray(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkStringArray'); - -// ---------------------------------------------------------------------------- - -var vtkStringArray$1 = { - newInstance, - extend -}; - -export { vtkStringArray$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/URLExtract.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/URLExtract.d.ts deleted file mode 100644 index 715f1917..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/URLExtract.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * @param {Boolean} [castToNativeType] - * @param {String} [query] - */ -export function extractURLParameters( - castToNativeType?: boolean, - query?: string -): object; - -/** - * - * @param {String} str The type value as string. - */ -export function toNativeType(str: string): void; - -declare const _default: { - toNativeType: typeof toNativeType; - extractURLParameters: typeof extractURLParameters; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/URLExtract.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/URLExtract.js deleted file mode 100644 index dcc759fb..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/URLExtract.js +++ /dev/null @@ -1,43 +0,0 @@ -function identity(i) { - return i; -} -function toNativeType(str) { - if (str === null || str === 'null') { - return null; - } - if (str === 'true') { - return true; - } - if (str === 'false') { - return false; - } - if (str === undefined || str === 'undefined') { - return undefined; - } - if (str[0] === '[' && str[str.length - 1] === ']') { - return str.substring(1, str.length - 1).split(',').map(s => toNativeType(s.trim())); - } - if (str === '' || Number.isNaN(Number(str))) { - return str; - } - return Number(str); -} -function extractURLParameters() { - let castToNativeType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - let query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.search; - const summary = {}; - const convert = castToNativeType ? toNativeType : identity; - const params = new URLSearchParams(query); - params.forEach((value, key) => { - if (key) { - summary[key] = value ? convert(value) : true; - } - }); - return summary; -} -var vtkURLExtract = { - toNativeType, - extractURLParameters -}; - -export { vtkURLExtract as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/VariantArray.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/VariantArray.d.ts deleted file mode 100644 index b7d76e4c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/VariantArray.d.ts +++ /dev/null @@ -1,122 +0,0 @@ -import { vtkObject } from './../../interfaces'; - -/** - * - */ -export interface IVariantArrayInitialValues { - name?: string; - numberOfComponents?: number; - size: number; - dataType?: string; -} - -export interface vtkVariantArray extends vtkObject { - /** - * Get the data component at the location specified by tupleIdx and compIdx. - * @param {Number} tupleIdx - * @param {Number} [compIdx] - */ - getComponent(tupleIdx: number, compIdx?: number): void; - - /** - * - */ - getData(): Array; - - /** - * - */ - getDataType(): string; - - /** - * - */ - getName(): string; - - /** - * - */ - getNumberOfComponents(): number; - - /** - * - */ - getNumberOfValues(): number; - - /** - * - */ - getNumberOfTuples(): number; - - /** - * - * @param {Number} idx - * @param {Array} [tupleToFill] - */ - getTuple(idx: number, tupleToFill?: Array): Array; - - /** - * - * @param {Number} [idx] - */ - getTupleLocation(idx?: number): number; - - /** - * - */ - newClone(): void; - - /** - * Set the data component at the location specified by tupleIdx and compIdx - * to value. - * Note that i is less than NumberOfTuples and j is less than - * NumberOfComponents. Make sure enough memory has been allocated - * (use SetNumberOfTuples() and SetNumberOfComponents()). - * @param {Number} tupleIdx - * @param {Number} compIdx - * @param {String} value - */ - setComponent(tupleIdx: number, compIdx: number, value: string): void; - - /** - * - * @param {Array} array - * @param {Number} numberOfComponents - */ - setData(array: Array, numberOfComponents: number): void; - - /** - * - */ - setName(name: string): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkVariantArray characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IVariantArrayInitialValues} initialValues (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues: IVariantArrayInitialValues -): void; - -/** - * Method used to create a new instance of vtkVariantArray - * @param {IVariantArrayInitialValues} initialValues for pre-setting some of its content - */ -export function newInstance( - initialValues: IVariantArrayInitialValues -): vtkVariantArray; - -/** - * An array holding vtkVariants. - */ -export declare const vtkVariantArray: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkVariantArray; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/VariantArray.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/VariantArray.js deleted file mode 100644 index 010d3d9f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Core/VariantArray.js +++ /dev/null @@ -1,127 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkVariantArray methods -// ---------------------------------------------------------------------------- - -function vtkVariantArray(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkVariantArray'); - - // Description: - // Return the data component at the location specified by tupleIdx and - // compIdx. - publicAPI.getComponent = function (tupleIdx) { - let compIdx = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - return model.values[tupleIdx * model.numberOfComponents + compIdx]; - }; - - // Description: - // Set the data component at the location specified by tupleIdx and compIdx - // to value. - // Note that i is less than NumberOfTuples and j is less than - // NumberOfComponents. Make sure enough memory has been allocated - // (use SetNumberOfTuples() and SetNumberOfComponents()). - publicAPI.setComponent = (tupleIdx, compIdx, value) => { - if (value !== model.values[tupleIdx * model.numberOfComponents + compIdx]) { - model.values[tupleIdx * model.numberOfComponents + compIdx] = value; - publicAPI.modified(); - } - }; - publicAPI.getData = () => model.values; - publicAPI.getTuple = function (idx) { - let tupleToFill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - const numberOfComponents = model.numberOfComponents || 1; - if (tupleToFill.length) { - tupleToFill.length = numberOfComponents; - } - const offset = idx * numberOfComponents; - for (let i = 0; i < numberOfComponents; i++) { - tupleToFill[i] = model.values[offset + i]; - } - return tupleToFill; - }; - publicAPI.getTupleLocation = function () { - let idx = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; - return idx * model.numberOfComponents; - }; - publicAPI.getNumberOfComponents = () => model.numberOfComponents; - publicAPI.getNumberOfValues = () => model.values.length; - publicAPI.getNumberOfTuples = () => model.values.length / model.numberOfComponents; - publicAPI.getDataType = () => model.dataType; - /* eslint-disable no-use-before-define */ - publicAPI.newClone = () => newInstance({ - name: model.name, - numberOfComponents: model.numberOfComponents - }); - /* eslint-enable no-use-before-define */ - - publicAPI.getName = () => { - if (!model.name) { - publicAPI.modified(); - model.name = `vtkVariantArray${publicAPI.getMTime()}`; - } - return model.name; - }; - publicAPI.setData = (array, numberOfComponents) => { - model.values = array; - model.size = array.length; - if (numberOfComponents) { - model.numberOfComponents = numberOfComponents; - } - if (model.size % model.numberOfComponents !== 0) { - model.numberOfComponents = 1; - } - publicAPI.modified(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - name: '', - numberOfComponents: 1, - size: 0, - // values: null, - dataType: 'JSON' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - if (!model.empty && !model.values && !model.size) { - throw new TypeError('Cannot create vtkVariantArray object without: size > 0, values'); - } - if (!model.values) { - model.values = []; - } else if (Array.isArray(model.values)) { - model.values = [...model.values]; - } - if (model.values) { - model.size = model.values.length; - } - - // Object methods - macro.obj(publicAPI, model); - macro.set(publicAPI, model, ['name']); - - // Object specific methods - vtkVariantArray(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkVariantArray'); - -// ---------------------------------------------------------------------------- - -var vtkVariantArray$1 = { - newInstance, - extend -}; - -export { vtkVariantArray$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel.js deleted file mode 100644 index 124a86d9..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel.js +++ /dev/null @@ -1,49 +0,0 @@ -import vtkBoundingBox from './DataModel/BoundingBox.js'; -import vtkBox from './DataModel/Box.js'; -import vtkCell from './DataModel/Cell.js'; -import vtkCone from './DataModel/Cone.js'; -import vtkCylinder from './DataModel/Cylinder.js'; -import vtkDataSet from './DataModel/DataSet.js'; -import vtkDataSetAttributes from './DataModel/DataSetAttributes.js'; -import ITKHelper from './DataModel/ITKHelper.js'; -import vtkImageData from './DataModel/ImageData.js'; -import vtkImplicitBoolean from './DataModel/ImplicitBoolean.js'; -import vtkLine from './DataModel/Line.js'; -import vtkMolecule from './DataModel/Molecule.js'; -import vtkPiecewiseFunction from './DataModel/PiecewiseFunction.js'; -import vtkPlane from './DataModel/Plane.js'; -import vtkPlanes from './DataModel/Planes.js'; -import vtkPointSet from './DataModel/PointSet.js'; -import vtkPolyData from './DataModel/PolyData.js'; -import vtkSelectionNode from './DataModel/SelectionNode.js'; -import vtkSphere from './DataModel/Sphere.js'; -import vtkStructuredData from './DataModel/StructuredData.js'; -import vtkTriangle from './DataModel/Triangle.js'; -import vtkTriangleStrip from './DataModel/TriangleStrip.js'; - -var DataModel = { - vtkBoundingBox, - vtkBox, - vtkCell, - vtkCone, - vtkCylinder, - vtkDataSet, - vtkDataSetAttributes, - vtkITKHelper: ITKHelper, - vtkImageData, - vtkImplicitBoolean, - vtkLine, - vtkMolecule, - vtkPiecewiseFunction, - vtkPlane, - vtkPlanes, - vtkPointSet, - vtkPolyData, - vtkSelectionNode, - vtkSphere, - vtkStructuredData, - vtkTriangle, - vtkTriangleStrip -}; - -export { DataModel as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/AbstractPointLocator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/AbstractPointLocator.d.ts deleted file mode 100644 index 6aeea642..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/AbstractPointLocator.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { Bounds } from './../../types'; -import vtkLocator, { ILocatorInitialValues } from './Locator'; - -/** - * - */ -export interface IAbstractPointLocatorInitialValues - extends ILocatorInitialValues { - bounds?: Bounds; - numberOfBuckets: number; -} - -export interface vtkAbstractPointLocator extends vtkLocator { - /** - * Set the bounds of this object. - * @param {Bounds} input - */ - setBounds(input: Bounds): void; - - /** - * Get the bounds of this object. - * @returns {Bounds} - */ - getBounds(): Bounds; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -/** - * Method use to decorate a given object (publicAPI+model) with vtkAbstractPointLocator characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IAbstractPointLocatorInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IAbstractPointLocatorInitialValues -): void; - -// ---------------------------------------------------------------------------- - -/** - * vtkAbstractPointLocator - */ -export declare const vtkAbstractPointLocator: { - extend: typeof extend; -}; - -export default vtkAbstractPointLocator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/AbstractPointLocator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/AbstractPointLocator.js deleted file mode 100644 index 08f3f61e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/AbstractPointLocator.js +++ /dev/null @@ -1,42 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkLocator from './Locator.js'; - -function vtkAbstractPointLocator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkAbstractPointLocator'); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - return { - bounds: null, - numberOfBuckets: 0, - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - vtkLocator.extend(publicAPI, model, defaultValues(initialValues)); - - // Make this a VTK object - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['numberOfBuckets']); - macro.setGetArray(publicAPI, model, ['bounds'], 6); - - // Object specific methods - vtkAbstractPointLocator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -var vtkAbstractPointLocator$1 = { - extend -}; - -export { vtkAbstractPointLocator$1 as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/BoundingBox.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/BoundingBox.d.ts deleted file mode 100644 index 2a1a1e7d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/BoundingBox.d.ts +++ /dev/null @@ -1,712 +0,0 @@ -import { mat4 } from 'gl-matrix'; -import { Bounds, Vector2, Vector3 } from './../../types'; -import vtkPoints from './../Core/Points'; -import { Nullable } from './../../types'; - -/** - * Tests whether two bounds equal. - * @param {Bounds} a - * @param {Bounds} b - */ -export function equals(a: Bounds, b: Bounds): boolean; - -/** - * Tests whether a given bounds is valid. - * @param {Bounds} bounds - */ -export function isValid(bounds: Bounds): boolean; - -/** - * Sets a bounding box from another bounding box. - * @param {Bounds} bounds - * @param {Bounds} other - */ -export function setBounds(bounds: Bounds, other: Bounds): Bounds; - -/** - * Resets a bounds to infinity. - * @param {Bounds} bounds - */ -export function reset(bounds: Bounds): Bounds; - -/** - * Adds points to a bounding box. - * @param {Bounds} bounds - * @param {number} x - * @param {number} y - * @param {number} z - */ -export function addPoint( - bounds: Bounds, - x: number, - y: number, - z: number -): Bounds; - -/** - * Adds points to a bounding box. - * @param {Bounds} bounds - * @param {number[]} points A flattened array of 3D coordinates. - */ -export function addPoints(bounds: Bounds, points: number[]): Bounds; - -/** - * Adds two bounding boxes together. - * @param {Bounds} bounds - * @param {number} xMin - * @param {number} xMax - * @param {number} yMin - * @param {number} yMax - * @param {number} zMin - * @param {number} zMax - */ -export function addBounds( - bounds: Bounds, - xMin: number, - xMax: number, - yMin: number, - yMax: number, - zMin: number, - zMax: number -): Bounds; - -/** - * Sets the min point of a bounding box. - * @param {Bounds} bounds - * @param {number} x - * @param {number} y - * @param {number} z - */ -export function setMinPoint( - bounds: Bounds, - x: number, - y: number, - z: number -): boolean; - -/** - * Sets the max point of a bounding box. - * @param {Bounds} bounds - * @param {number} x - * @param {number} y - * @param {number} z - */ -export function setMaxPoint( - bounds: Bounds, - x: number, - y: number, - z: number -): boolean; - -/** - * Inflates a bounding box. - * @param {Bounds} bounds - * @param {number} delta - */ -export function inflate(bounds: Bounds, delta: number): Bounds; - -/** - * Scales a bounding box. - * @param {Bounds} bounds - * @param {number} sx - * @param {number} sy - * @param {number} sz - */ -export function scale( - bounds: Bounds, - sx: number, - sy: number, - sz: number -): boolean; - -/** - * Gets the center of a bounding box. - * @param {Bounds} bounds - */ -export function getCenter(bounds: Bounds): Vector3; - -/** - * Scales a bounding box around its center. - * @param {Bounds} bounds - * @param {number} sx - * @param {number} sy - * @param {number} sz - */ -export function scaleAboutCenter( - bounds: Bounds, - sx: number, - sy: number, - sz: number -): boolean; - -/** - * Gets the bounding box side length. - * @param {Bounds} bounds - * @param {number} index - */ -export function getLength(bounds: Bounds, index: number): number; - -/** - * Gets the lengths of all sides. - * @param {Bounds} bounds - */ -export function getLengths(bounds: Bounds): Vector3; - -/** - * Gets the x range of a bounding box. - * @param {Bounds} bounds - */ -export function getXRange(bounds: Bounds): Vector2; - -/** - * Gets the y range of a bounding box. - * @param {Bounds} bounds - */ -export function getYRange(bounds: Bounds): Vector2; - -/** - * Gets the z range of a bounding box. - * @param {Bounds} bounds - */ -export function getZRange(bounds: Bounds): Vector2; - -/** - * Gets the maximum side length of the bounding box. - * @param {Bounds} bounds - */ -export function getMaxLength(bounds: Bounds): number; - -/** - * Gets the diagonal length of the bounding box. - * @param {Bounds} bounds - */ -export function getDiagonalLength(bounds: Bounds): Nullable; - -/** - * Gets the squared diagonal length of the bounding box. - * @param {Bounds} bounds - */ -export function getDiagonalLength2(bounds: Bounds): Nullable; - -/** - * Gets the min point. - * @param {Bounds} bounds - */ - -export function getMinPoint(bounds: Bounds): Vector3; - -/** - * Gets the max point. - * @param {Bounds} bounds - */ -export function getMaxPoint(bounds: Bounds): Vector3; - -/** - * Gets the corners of a bounding box. - * @param {Bounds} bounds - * @param {Vector3[]} corners - */ -export function getCorners(bounds: Bounds, corners: Vector3[]): Vector3[]; - -/** - * Computes the two corner points with min and max coords. - * @param {Bounds} bounds - * @param {Vector3} point1 - * @param {Vector3} point2 - */ -export function computeCornerPoints( - bounds: Bounds, - point1: Vector3, - point2: Vector3 -): Vector3; - -/** - * Transforms a bounding box. - * @param {Bounds} bounds - * @param {mat4} transform - * @param {Bounds} out - */ -export function transformBounds( - bounds: Bounds, - transform: mat4, - out: Bounds -): ReturnType; - -export function computeScale3(bounds: Bounds, scale3: Vector3): Vector3; - -/** - * Compute local bounds. - * Not as fast as vtkPoints.getBounds() if u, v, w form a natural basis. - * @param {vtkPoints} points - * @param {array} u first vector - * @param {array} v second vector - * @param {array} w third vector - */ - -export function computeLocalBounds( - points: vtkPoints, - u: Vector3, - v: Vector3, - w: Vector3 -): Bounds; - -/** - * The method returns a non-zero value if the bounding box is hit. - * Origin[3] starts the ray, dir[3] is the vector components of the ray in the x-y-z - * directions, coord[3] is the location of hit, and t is the parametric - * coordinate along line. (Notes: the intersection ray dir[3] is NOT - * normalized. Valid intersections will only occur between 0<=t<=1.) - * @param {Bounds} bounds - * @param {Vector3} origin - * @param {Vector3} dir - * @param {Vector3} coord - * @param {number} tolerance - */ -export function intersectBox( - bounds: Bounds, - origin: Vector3, - dir: Vector3, - coord: Vector3, - tolerance: number -): boolean; - -/** - * Plane intersection with box - * The plane is infinite in extent and defined by an origin and normal.The function indicates - * whether the plane intersects, not the particulars of intersection points and such - * The function returns non-zero if the plane and box intersect; zero otherwise. - * @param {Bounds} bounds - * @param {Vector3} origin - * @param {Vector3} normal - */ -export function intersectPlane( - bounds: Bounds, - origin: Vector3, - normal: Vector3 -): boolean; - -/** - * Do two bounding boxes intersect. - * @param {Bounds} bounds - * @param bBounds - */ -export function intersect(bounds: Bounds, bBounds: Bounds): boolean; - -/** - * Do two bounding boxes intersect. - * @param {Bounds} bounds - * @param {Bounds} bBounds - */ -export function intersects(bounds: Bounds, bBounds: Bounds): boolean; - -/** - * Does the bbox contain a given point. - * @param {Bounds} bounds - * @param {number} x - * @param {number} y - * @param {number} z - */ -export function containsPoint( - bounds: Bounds, - x: number, - y: number, - z: number -): boolean; - -/** - * Is a bbox contained in another bbox. - * @param {Bounds} bounds - * @param {Bounds} other - */ -export function contains(bounds: Bounds, other: Bounds): boolean; - -/** - * Does a plane intersect a boox. - * @param {Bounds} bounds - * @param {Vector3} origin - * @param {Vector3} normal - */ -export function cutWithPlane( - bounds: Bounds, - origin: Vector3, - normal: Vector3 -): boolean; - -/** - * Clamp the divisions to ensure the total number doesn't exceed targetBins - * @param {Number} targetBins - Maximum number of bins allowed - * @param {Number[]} divs - Divisions array to adjust [divX, divY, divZ] - */ -export function clampDivisions(targetBins: number, divs: number[]): void; - -/** - * Compute the number of divisions given the current bounding box and a - * target number of buckets/bins. Handles degenerate bounding boxes properly. - * @param {Bounds} bounds - The bounding box - * @param {Number} totalBins - Target number of bins - * @param {Number[]} divs - Output array to store divisions [divX, divY, divZ] - * @param {Bounds} [adjustedBounds] - Output array to store adjusted bounds if needed - * @returns {Number} The actual total number of bins - */ -export function computeDivisions( - bounds: Bounds, - totalBins: number, - divs: number[], - adjustedBounds?: Bounds -): number; - -/** - * Calculate the squared distance from point x to the specified bounds. - * @param {Vector3} x The point coordinates - * @param {Bounds} bounds The bounding box coordinates - * @returns {Number} The squared distance to the bounds - */ -export function distance2ToBounds(x: Vector3, bounds: Bounds): number; - -declare class BoundingBox { - getBounds(): Bounds; - /** - * Tests whether two bounds equal. - * @param {Bounds} a - * @param {Bounds} b - */ - equals(a: Bounds, b: Bounds): boolean; - - /** - * Tests whether a given bounds is valid. - * @param {Bounds} bounds - */ - isValid(bounds: Bounds): boolean; - - /** - * Sets a bounding box from another bounding box. - * @param {Bounds} bounds - * @param {Bounds} other - */ - setBounds(bounds: Bounds, other: Bounds): Bounds; - - /** - * Resets a bounds to infinity. - * @param {Bounds} bounds - */ - reset(bounds: Bounds): Bounds; - - /** - * Adds points to a bounding box. - * @param {Bounds} bounds - * @param {number} x - * @param {number} y - * @param {number} z - */ - addPoint(bounds: Bounds, x: number, y: number, z: number): Bounds; - - /** - * Adds points to a bounding box. - * @param {Bounds} bounds - * @param {number[]} points A flattened array of 3D coordinates. - */ - addPoints(bounds: Bounds, points: number[]): Bounds; - - /** - * Adds two bounding boxes together. - * @param {Bounds} bounds - * @param {number} xMin - * @param {number} xMax - * @param {number} yMin - * @param {number} yMax - * @param {number} zMin - * @param {number} zMax - */ - addBounds( - bounds: Bounds, - xMin: number, - xMax: number, - yMin: number, - yMax: number, - zMin: number, - zMax: number - ): Bounds; - - /** - * Sets the min point of a bounding box. - * @param {Bounds} bounds - * @param {number} x - * @param {number} y - * @param {number} z - */ - setMinPoint(bounds: Bounds, x: number, y: number, z: number): boolean; - - /** - * Sets the max point of a bounding box. - * @param {Bounds} bounds - * @param {number} x - * @param {number} y - * @param {number} z - */ - setMaxPoint(bounds: Bounds, x: number, y: number, z: number): boolean; - - /** - * Inflates a bounding box. - * @param {number} [delta] The amount to inflate the bounding box by. - */ - inflate(delta?: number): Bounds; - - /** - * Scales a bounding box. - * @param {Bounds} bounds - * @param {number} sx - * @param {number} sy - * @param {number} sz - */ - scale(bounds: Bounds, sx: number, sy: number, sz: number): boolean; - - /** - * Gets the center of a bounding box. - * @param {Bounds} bounds - */ - getCenter(bounds: Bounds): Vector3; - - /** - * Scales a bounding box around its center. - * @param {Bounds} bounds - * @param {number} sx - * @param {number} sy - * @param {number} sz - */ - scaleAboutCenter(bounds: Bounds, sx: number, sy: number, sz: number): boolean; - - /** - * Gets the bounding box side length. - * @param {Bounds} bounds - * @param {number} index - */ - getLength(bounds: Bounds, index: number): number; - - /** - * Gets the lengths of all sides. - * @param {Bounds} bounds - */ - getLengths(bounds: Bounds): Vector3; - - /** - * Gets the x range of a bounding box. - * @param {Bounds} bounds - */ - getXRange(bounds: Bounds): Vector2; - - /** - * Gets the y range of a bounding box. - * @param {Bounds} bounds - */ - getYRange(bounds: Bounds): Vector2; - - /** - * Gets the z range of a bounding box. - * @param {Bounds} bounds - */ - getZRange(bounds: Bounds): Vector2; - - /** - * Gets the maximum side length of the bounding box. - * @param {Bounds} bounds - */ - getMaxLength(bounds: Bounds): number; - - /** - * Gets the diagonal length of the bounding box. - * @param {Bounds} bounds - */ - getDiagonalLength(bounds: Bounds): Nullable; - - /** - * Gets the squared diagonal length of the bounding box. - * @param {Bounds} bounds - */ - getDiagonalLength2(bounds: Bounds): Nullable; - - /** - * Gets the min point. - * @param {Bounds} bounds - */ - - getMinPoint(bounds: Bounds): Vector3; - - /** - * Gets the max point. - * @param {Bounds} bounds - */ - getMaxPoint(bounds: Bounds): Vector3; - - /** - * Gets the corners of a bounding box. - * @param {Bounds} bounds - * @param {Vector3[]} corners - */ - getCorners(bounds: Bounds, corners: Vector3[]): Vector3[]; - - /** - * Computes the two corner points with min and max coords. - * @param {Bounds} bounds - * @param {Vector3} point1 - * @param {Vector3} point2 - */ - computeCornerPoints( - bounds: Bounds, - point1: Vector3, - point2: Vector3 - ): Vector3; - - /** - * Transforms a bounding box. - * @param {Bounds} bounds - * @param {mat4} transform - * @param {Bounds} out - */ - transformBounds( - bounds: Bounds, - transform: mat4, - out: Bounds - ): ReturnType; - - computeScale3(bounds: Bounds, scale3: Vector3): Vector3; - - /** - * Compute local bounds. - * Not as fast as vtkPoints.getBounds() if u, v, w form a natural basis. - * @param {vtkPoints} points - * @param {array} u first vector - * @param {array} v second vector - * @param {array} w third vector - */ - - computeLocalBounds( - points: vtkPoints, - u: Vector3, - v: Vector3, - w: Vector3 - ): Bounds; - - /** - * The method returns a non-zero value if the bounding box is hit. - * Origin[3] starts the ray, dir[3] is the vector components of the ray in the x-y-z - * directions, coord[3] is the location of hit, and t is the parametric - * coordinate along line. (Notes: the intersection ray dir[3] is NOT - * normalized. Valid intersections will only occur between 0<=t<=1.) - * @param {Bounds} bounds - * @param {Vector3} origin - * @param {Vector3} dir - * @param {Vector3} coord - * @param {number} tolerance - */ - intersectBox( - bounds: Bounds, - origin: Vector3, - dir: Vector3, - coord: Vector3, - tolerance: number - ): boolean; - - /** - * Plane intersection with box - * The plane is infinite in extent and defined by an origin and normal.The function indicates - * whether the plane intersects, not the particulars of intersection points and such - * The function returns non-zero if the plane and box intersect; zero otherwise. - * @param {Bounds} bounds - * @param {Vector3} origin - * @param {Vector3} normal - */ - intersectPlane(bounds: Bounds, origin: Vector3, normal: Vector3): boolean; - - /** - * Do two bounding boxes intersect. - * @param {Bounds} bounds - * @param bBounds - */ - intersect(bounds: Bounds, bBounds: Bounds): boolean; - - /** - * Do two bounding boxes intersect. - * @param {Bounds} bounds - * @param {Bounds} bBounds - */ - intersects(bounds: Bounds, bBounds: Bounds): boolean; - - /** - * Does the bbox contain a given point. - * @param {Bounds} bounds - * @param {number} x - * @param {number} y - * @param {number} z - */ - containsPoint(bounds: Bounds, x: number, y: number, z: number): boolean; - - /** - * Is a bbox contained in another bbox. - * @param {Bounds} bounds - * @param {Bounds} other - */ - contains(bounds: Bounds, other: Bounds): boolean; - - /** - * Does a plane intersect a boox. - * @param {Bounds} bounds - * @param {Vector3} origin - * @param {Vector3} normal - */ - cutWithPlane(bounds: Bounds, origin: Vector3, normal: Vector3): boolean; - - /** - * Calculate the squared distance from point x to the specified bounds. - * @param {Vector3} x The point coordinates - * @param {Bounds} bounds The bounding box coordinates - * @returns {Number} The squared distance to the bounds - */ - distance2ToBounds(x: Vector3, bounds: Bounds): number; -} - -export interface IBoundingBoxInitialValues { - bounds?: Bounds; -} - -declare const vtkBoundingBox: { - newInstance: (initialValues: IBoundingBoxInitialValues) => BoundingBox; - equals: typeof equals; - isValid: typeof isValid; - setBounds: typeof setBounds; - reset: typeof reset; - addPoint: typeof addPoint; - addPoints: typeof addPoints; - addBounds: typeof addBounds; - setMinPoint: typeof setMinPoint; - setMaxPoint: typeof setMaxPoint; - inflate: typeof inflate; - scale: typeof scale; - scaleAboutCenter: typeof scaleAboutCenter; - getCenter: typeof getCenter; - getLength: typeof getLength; - getLengths: typeof getLengths; - getMaxLength: typeof getMaxLength; - getDiagonalLength: typeof getDiagonalLength; - getDiagonalLength2: typeof getDiagonalLength2; - getMinPoint: typeof getMinPoint; - getMaxPoint: typeof getMaxPoint; - getXRange: typeof getXRange; - getYRange: typeof getYRange; - getZRange: typeof getZRange; - getCorners: typeof getCorners; - computeCornerPoints: typeof computeCornerPoints; - computeLocalBounds: typeof computeLocalBounds; - transformBounds: typeof transformBounds; - computeScale3: typeof computeScale3; - cutWithPlane: typeof cutWithPlane; - intersectBox: typeof intersectBox; - intersectPlane: typeof intersectPlane; - intersect: typeof intersect; - intersects: typeof intersects; - containsPoint: typeof containsPoint; - contains: typeof contains; - distance2ToBounds: typeof distance2ToBounds; - INIT_BOUNDS: Bounds; -}; - -export default vtkBoundingBox; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/BoundingBox.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/BoundingBox.js deleted file mode 100644 index 2f57ce50..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/BoundingBox.js +++ /dev/null @@ -1,873 +0,0 @@ -import { d as dot } from '../Core/Math/index.js'; -import { vec3 } from 'gl-matrix'; -import vtkPlane from './Plane.js'; - -const INIT_BOUNDS = [Number.MAX_VALUE, -Number.MAX_VALUE, -// X -Number.MAX_VALUE, -Number.MAX_VALUE, -// Y -Number.MAX_VALUE, -Number.MAX_VALUE // Z -]; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -function equals(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5]; -} -function isValid(bounds) { - return bounds?.length >= 6 && bounds[0] <= bounds[1] && bounds[2] <= bounds[3] && bounds[4] <= bounds[5]; -} -function setBounds(bounds, otherBounds) { - bounds[0] = otherBounds[0]; - bounds[1] = otherBounds[1]; - bounds[2] = otherBounds[2]; - bounds[3] = otherBounds[3]; - bounds[4] = otherBounds[4]; - bounds[5] = otherBounds[5]; - return bounds; -} -function reset(bounds) { - return setBounds(bounds, INIT_BOUNDS); -} -function addPoint(bounds, x, y, z) { - const [xMin, xMax, yMin, yMax, zMin, zMax] = bounds; - bounds[0] = xMin < x ? xMin : x; - bounds[1] = xMax > x ? xMax : x; - bounds[2] = yMin < y ? yMin : y; - bounds[3] = yMax > y ? yMax : y; - bounds[4] = zMin < z ? zMin : z; - bounds[5] = zMax > z ? zMax : z; - return bounds; -} -function addPoints(bounds, points) { - if (points.length === 0) { - return bounds; - } - if (Array.isArray(points[0])) { - for (let i = 0; i < points.length; ++i) { - addPoint(bounds, ...points[i]); - } - } else { - for (let i = 0; i < points.length; i += 3) { - addPoint(bounds, ...points.slice(i, i + 3)); - } - } - return bounds; -} -function addBounds(bounds, xMin, xMax, yMin, yMax, zMin, zMax) { - const [_xMin, _xMax, _yMin, _yMax, _zMin, _zMax] = bounds; - if (zMax === undefined) { - bounds[0] = Math.min(xMin[0], _xMin); - bounds[1] = Math.max(xMin[1], _xMax); - bounds[2] = Math.min(xMin[2], _yMin); - bounds[3] = Math.max(xMin[3], _yMax); - bounds[4] = Math.min(xMin[4], _zMin); - bounds[5] = Math.max(xMin[5], _zMax); - } else { - bounds[0] = Math.min(xMin, _xMin); - bounds[1] = Math.max(xMax, _xMax); - bounds[2] = Math.min(yMin, _yMin); - bounds[3] = Math.max(yMax, _yMax); - bounds[4] = Math.min(zMin, _zMin); - bounds[5] = Math.max(zMax, _zMax); - } - return bounds; -} -function setMinPoint(bounds, x, y, z) { - const [xMin, xMax, yMin, yMax, zMin, zMax] = bounds; - bounds[0] = x; - bounds[1] = x > xMax ? x : xMax; - bounds[2] = y; - bounds[3] = y > yMax ? y : yMax; - bounds[4] = z; - bounds[5] = z > zMax ? z : zMax; - return xMin !== x || yMin !== y || zMin !== z; -} -function setMaxPoint(bounds, x, y, z) { - const [xMin, xMax, yMin, yMax, zMin, zMax] = bounds; - bounds[0] = x < xMin ? x : xMin; - bounds[1] = x; - bounds[2] = y < yMin ? y : yMin; - bounds[3] = y; - bounds[4] = z < zMin ? z : zMin; - bounds[5] = z; - return xMax !== x || yMax !== y || zMax !== z; -} -function inflate(bounds, delta) { - if (delta == null) { - // eslint-disable-next-line no-use-before-define - return minInflate(bounds); - } - bounds[0] -= delta; - bounds[1] += delta; - bounds[2] -= delta; - bounds[3] += delta; - bounds[4] -= delta; - bounds[5] += delta; - return bounds; -} -function minInflate(bounds) { - const nonZero = [0, 0, 0]; - let maxIdx = -1; - let max = 0.0; - let w = 0.0; - for (let i = 0; i < 3; ++i) { - w = bounds[i * 2 + 1] - bounds[i * 2]; - if (w > max) { - max = w; - maxIdx = i; - } - nonZero[i] = w > 0.0 ? 1 : 0; - } - if (maxIdx < 0) { - return inflate(bounds, 0.5); - } - - // Any zero width sides are bumped out 1% of max side - for (let i = 0; i < 3; ++i) { - if (!nonZero[i]) { - const d = 0.005 * max; - bounds[i * 2] -= d; - bounds[i * 2 + 1] += d; - } - } - return bounds; -} -function scale(bounds, sx, sy, sz) { - if (!isValid(bounds)) { - return false; - } - if (sx >= 0.0) { - bounds[0] *= sx; - bounds[1] *= sx; - } else { - bounds[0] = sx * bounds[1]; - bounds[1] = sx * bounds[0]; - } - if (sy >= 0.0) { - bounds[2] *= sy; - bounds[3] *= sy; - } else { - bounds[2] = sy * bounds[3]; - bounds[3] = sy * bounds[2]; - } - if (sz >= 0.0) { - bounds[4] *= sz; - bounds[5] *= sz; - } else { - bounds[4] = sz * bounds[5]; - bounds[5] = sz * bounds[4]; - } - return true; -} -function getCenter(bounds) { - return [0.5 * (bounds[0] + bounds[1]), 0.5 * (bounds[2] + bounds[3]), 0.5 * (bounds[4] + bounds[5])]; -} -function scaleAboutCenter(bounds, sx, sy, sz) { - if (!isValid(bounds)) { - return false; - } - const center = getCenter(bounds); - bounds[0] -= center[0]; - bounds[1] -= center[0]; - bounds[2] -= center[1]; - bounds[3] -= center[1]; - bounds[4] -= center[2]; - bounds[5] -= center[2]; - scale(bounds, sx, sy, sz); - bounds[0] += center[0]; - bounds[1] += center[0]; - bounds[2] += center[1]; - bounds[3] += center[1]; - bounds[4] += center[2]; - bounds[5] += center[2]; - return true; -} -function getLength(bounds, index) { - return bounds[index * 2 + 1] - bounds[index * 2]; -} -function getLengths(bounds) { - return [getLength(bounds, 0), getLength(bounds, 1), getLength(bounds, 2)]; -} -function getXRange(bounds) { - return bounds.slice(0, 2); -} -function getYRange(bounds) { - return bounds.slice(2, 4); -} -function getZRange(bounds) { - return bounds.slice(4, 6); -} -function getMaxLength(bounds) { - const l = getLengths(bounds); - if (l[0] > l[1]) { - if (l[0] > l[2]) { - return l[0]; - } - return l[2]; - } - if (l[1] > l[2]) { - return l[1]; - } - return l[2]; -} -function getDiagonalLength2(bounds) { - if (isValid(bounds)) { - const l = getLengths(bounds); - return l[0] * l[0] + l[1] * l[1] + l[2] * l[2]; - } - return null; -} -function getDiagonalLength(bounds) { - const lenght2 = getDiagonalLength2(bounds); - return lenght2 !== null ? Math.sqrt(lenght2) : null; -} -function getMinPoint(bounds) { - return [bounds[0], bounds[2], bounds[4]]; -} -function getMaxPoint(bounds) { - return [bounds[1], bounds[3], bounds[5]]; -} -function oppositeSign(a, b) { - return a <= 0 && b >= 0 || a >= 0 && b <= 0; -} -function getCorners(bounds, corners) { - corners[0] = [bounds[0], bounds[2], bounds[4]]; - corners[1] = [bounds[0], bounds[2], bounds[5]]; - corners[2] = [bounds[0], bounds[3], bounds[4]]; - corners[3] = [bounds[0], bounds[3], bounds[5]]; - corners[4] = [bounds[1], bounds[2], bounds[4]]; - corners[5] = [bounds[1], bounds[2], bounds[5]]; - corners[6] = [bounds[1], bounds[3], bounds[4]]; - corners[7] = [bounds[1], bounds[3], bounds[5]]; - return corners; -} - -// Computes the two corners with minimal and maximal coordinates -function computeCornerPoints(bounds, point1, point2) { - point1[0] = bounds[0]; - point1[1] = bounds[2]; - point1[2] = bounds[4]; - point2[0] = bounds[1]; - point2[1] = bounds[3]; - point2[2] = bounds[5]; - return point1; -} -function transformBounds(bounds, transform) { - let out = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; - const corners = getCorners(bounds, []); - for (let i = 0; i < corners.length; ++i) { - vec3.transformMat4(corners[i], corners[i], transform); - } - reset(out); - return addPoints(out, corners); -} -function computeScale3(bounds) { - let scale3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - scale3[0] = 0.5 * (bounds[1] - bounds[0]); - scale3[1] = 0.5 * (bounds[3] - bounds[2]); - scale3[2] = 0.5 * (bounds[5] - bounds[4]); - return scale3; -} - -/** - * Compute local bounds. - * Not as fast as vtkPoints.getBounds() if u, v, w form a natural basis. - * @param {vtkPoints} points - * @param {array} u first vector - * @param {array} v second vector - * @param {array} w third vector - */ -function computeLocalBounds(points, u, v, w) { - const bounds = [].concat(INIT_BOUNDS); - const pointsData = points.getData(); - for (let i = 0; i < pointsData.length; i += 3) { - const point = [pointsData[i], pointsData[i + 1], pointsData[i + 2]]; - const du = dot(point, u); - bounds[0] = Math.min(du, bounds[0]); - bounds[1] = Math.max(du, bounds[1]); - const dv = dot(point, v); - bounds[2] = Math.min(dv, bounds[2]); - bounds[3] = Math.max(dv, bounds[3]); - const dw = dot(point, w); - bounds[4] = Math.min(dw, bounds[4]); - bounds[5] = Math.max(dw, bounds[5]); - } - return bounds; -} - -// The method returns a non-zero value if the bounding box is hit. -// Origin[3] starts the ray, dir[3] is the vector components of the ray in the x-y-z -// directions, coord[3] is the location of hit, and t is the parametric -// coordinate along line. (Notes: the intersection ray dir[3] is NOT -// normalized. Valid intersections will only occur between 0<=t<=1.) -function intersectBox(bounds, origin, dir, coord, tolerance) { - let inside = true; - const quadrant = []; - let whichPlane = 0; - const maxT = []; - const candidatePlane = [0.0, 0.0, 0.0]; - const RIGHT = 0; - const LEFT = 1; - const MIDDLE = 2; - - // First find closest planes - for (let i = 0; i < 3; i++) { - if (origin[i] < bounds[2 * i]) { - quadrant[i] = LEFT; - candidatePlane[i] = bounds[2 * i]; - inside = false; - } else if (origin[i] > bounds[2 * i + 1]) { - quadrant[i] = RIGHT; - candidatePlane[i] = bounds[2 * i + 1]; - inside = false; - } else { - quadrant[i] = MIDDLE; - } - } - - // Check whether origin of ray is inside bbox - if (inside) { - coord[0] = origin[0]; - coord[1] = origin[1]; - coord[2] = origin[2]; - tolerance[0] = 0; - return 1; - } - - // Calculate parametric distance to plane - for (let i = 0; i < 3; i++) { - if (quadrant[i] !== MIDDLE && dir[i] !== 0.0) { - maxT[i] = (candidatePlane[i] - origin[i]) / dir[i]; - } else { - maxT[i] = -1.0; - } - } - - // Find the largest parametric value of intersection - for (let i = 0; i < 3; i++) { - if (maxT[whichPlane] < maxT[i]) { - whichPlane = i; - } - } - - // Check for value intersection along line - if (maxT[whichPlane] > 1.0 || maxT[whichPlane] < 0.0) { - return 0; - } - tolerance[0] = maxT[whichPlane]; - - // Intersection point along line is okay. Check bbox. - for (let i = 0; i < 3; i++) { - if (whichPlane !== i) { - coord[i] = origin[i] + maxT[whichPlane] * dir[i]; - if (coord[i] < bounds[2 * i] || coord[i] > bounds[2 * i + 1]) { - return 0; - } - } else { - coord[i] = candidatePlane[i]; - } - } - return 1; -} - -// Plane intersection with box -// The plane is infinite in extent and defined by an origin and normal.The function indicates -// whether the plane intersects, not the particulars of intersection points and such -// The function returns non-zero if the plane and box intersect; zero otherwise. -function intersectPlane(bounds, origin, normal) { - const p = []; - let d = 0; - let sign = 1; - let firstOne = 1; - - // Evaluate the eight points. If there is a sign change, there is an intersection - for (let z = 4; z <= 5; ++z) { - p[2] = bounds[z]; - for (let y = 2; y <= 3; ++y) { - p[1] = bounds[y]; - for (let x = 0; x <= 1; ++x) { - p[0] = bounds[x]; - d = vtkPlane.evaluate(normal, origin, p); - if (firstOne) { - sign = d >= 0 ? 1 : -1; - firstOne = 0; - } - if (d === 0.0 || sign > 0 && d < 0.0 || sign < 0 && d > 0.0) { - return 1; - } - } - } - } - return 0; // no intersection -} - -function intersect(bounds, bBounds) { - if (!(isValid(bounds) && isValid(bBounds))) { - return false; - } - const newBounds = [0, 0, 0, 0, 0, 0]; - let intersection; - for (let i = 0; i < 3; i++) { - intersection = false; - if (bBounds[i * 2] >= bounds[i * 2] && bBounds[i * 2] <= bounds[i * 2 + 1]) { - intersection = true; - newBounds[i * 2] = bBounds[i * 2]; - } else if (bounds[i * 2] >= bBounds[i * 2] && bounds[i * 2] <= bBounds[i * 2 + 1]) { - intersection = true; - newBounds[i * 2] = bounds[i * 2]; - } - if (bBounds[i * 2 + 1] >= bounds[i * 2] && bBounds[i * 2 + 1] <= bounds[i * 2 + 1]) { - intersection = true; - newBounds[i * 2 + 1] = bBounds[2 * i + 1]; - } else if (bounds[i * 2 + 1] >= bBounds[i * 2] && bounds[i * 2 + 1] <= bBounds[i * 2 + 1]) { - intersection = true; - newBounds[i * 2 + 1] = bounds[i * 2 + 1]; - } - if (!intersection) { - return false; - } - } - - // OK they did intersect - set the box to be the result - bounds[0] = newBounds[0]; - bounds[1] = newBounds[1]; - bounds[2] = newBounds[2]; - bounds[3] = newBounds[3]; - bounds[4] = newBounds[4]; - bounds[5] = newBounds[5]; - return true; -} -function intersects(bounds, bBounds) { - if (!(isValid(bounds) && isValid(bBounds))) { - return false; - } - /* eslint-disable no-continue */ - for (let i = 0; i < 3; i++) { - if (bBounds[i * 2] >= bounds[i * 2] && bBounds[i * 2] <= bounds[i * 2 + 1]) { - continue; - } else if (bounds[i * 2] >= bBounds[i * 2] && bounds[i * 2] <= bBounds[i * 2 + 1]) { - continue; - } - if (bBounds[i * 2 + 1] >= bounds[i * 2] && bBounds[i * 2 + 1] <= bounds[i * 2 + 1]) { - continue; - } else if (bounds[i * 2 + 1] >= bBounds[i * 2] && bounds[i * 2 + 1] <= bBounds[i * 2 + 1]) { - continue; - } - return false; - } - /* eslint-enable no-continue */ - - return true; -} -function containsPoint(bounds, x, y, z) { - if (x < bounds[0] || x > bounds[1]) { - return false; - } - if (y < bounds[2] || y > bounds[3]) { - return false; - } - if (z < bounds[4] || z > bounds[5]) { - return false; - } - return true; -} -function contains(bounds, otherBounds) { - // if either box is not valid or they don't intersect - if (!intersects(bounds, otherBounds)) { - return false; - } - if (!containsPoint(bounds, ...getMinPoint(otherBounds))) { - return false; - } - if (!containsPoint(bounds, ...getMaxPoint(otherBounds))) { - return false; - } - return true; -} - -/** - * Returns true if plane intersects bounding box. - * If so, the box is cut by the plane - * @param {array} origin - * @param {array} normal - */ -function cutWithPlane(bounds, origin, normal) { - // Index[0..2] represents the order of traversing the corners of a cube - // in (x,y,z), (y,x,z) and (z,x,y) ordering, respectively - const index = [[0, 1, 2, 3, 4, 5, 6, 7], [0, 1, 4, 5, 2, 3, 6, 7], [0, 2, 4, 6, 1, 3, 5, 7]]; - - // stores the signed distance to a plane - const d = [0, 0, 0, 0, 0, 0, 0, 0]; - let idx = 0; - for (let ix = 0; ix < 2; ix++) { - for (let iy = 2; iy < 4; iy++) { - for (let iz = 4; iz < 6; iz++) { - const x = [bounds[ix], bounds[iy], bounds[iz]]; - d[idx++] = vtkPlane.evaluate(normal, origin, x); - } - } - } - let dir = 2; - while (dir--) { - // in each direction, we test if the vertices of two orthogonal faces - // are on either side of the plane - if (oppositeSign(d[index[dir][0]], d[index[dir][4]]) && oppositeSign(d[index[dir][1]], d[index[dir][5]]) && oppositeSign(d[index[dir][2]], d[index[dir][6]]) && oppositeSign(d[index[dir][3]], d[index[dir][7]])) { - break; - } - } - if (dir < 0) { - return false; - } - const sign = Math.sign(normal[dir]); - const size = Math.abs((bounds[dir * 2 + 1] - bounds[dir * 2]) * normal[dir]); - let t = sign > 0 ? 1 : 0; - /* eslint-disable no-continue */ - for (let i = 0; i < 4; i++) { - if (size === 0) { - continue; // shouldn't happen - } - - const ti = Math.abs(d[index[dir][i]]) / size; - if (sign > 0 && ti < t) { - t = ti; - } - if (sign < 0 && ti > t) { - t = ti; - } - } - /* eslint-enable no-continue */ - const bound = (1.0 - t) * bounds[dir * 2] + t * bounds[dir * 2 + 1]; - if (sign > 0) { - bounds[dir * 2] = bound; - } else { - bounds[dir * 2 + 1] = bound; - } - return true; -} - -/** - * Clamp the divisions to ensure the total number doesn't exceed targetBins - * @param {Number} targetBins - Maximum number of bins allowed - * @param {Array} divs - Divisions array to adjust [divX, divY, divZ] - */ -function clampDivisions(targetBins, divs) { - for (let i = 0; i < 3; ++i) { - divs[i] = divs[i] < 1 ? 1 : divs[i]; - } - let numBins = divs[0] * divs[1] * divs[2]; - while (numBins > targetBins) { - for (let i = 0; i < 3; ++i) { - divs[i] = divs[i] > 1 ? divs[i] - 1 : 1; - } - numBins = divs[0] * divs[1] * divs[2]; - } -} - -/** - * Compute the number of divisions given the current bounding box and a - * target number of buckets/bins. Handles degenerate bounding boxes properly. - * @param {Bounds} bounds - The bounding box - * @param {Number} totalBins - Target number of bins - * @param {Array} divs - Output array to store divisions [divX, divY, divZ] - * @param {Array} [adjustedBounds] - Output array to store adjusted bounds if needed - * @returns {Number} The actual total number of bins - */ -function computeDivisions(bounds, totalBins, divs) { - let adjustedBounds = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : []; - // This will always produce at least one bin - // eslint-disable-next-line no-param-reassign - totalBins = totalBins <= 0 ? 1 : totalBins; - - // First determine the maximum length of the side of the bounds. Keep track - // of zero width sides of the bounding box. - let numNonZero = 0; - const nonZero = [0, 0, 0]; - let maxIdx = -1; - let max = 0.0; - const lengths = getLengths(bounds); - - // Use a finite tolerance when detecting zero width sides - const totLen = lengths[0] + lengths[1] + lengths[2]; - const zeroDetectionTolerance = totLen * (0.001 / 3.0); - for (let i = 0; i < 3; ++i) { - if (lengths[i] > max) { - maxIdx = i; - max = lengths[i]; - } - if (lengths[i] > zeroDetectionTolerance) { - nonZero[i] = 1; - numNonZero++; - } else { - nonZero[i] = 0; - } - } - - // Get min and max points - const minPoint = getMinPoint(bounds); - const maxPoint = getMaxPoint(bounds); - - // If the bounding box is degenerate, then one bin of arbitrary size - if (numNonZero < 1) { - divs[0] = 1; - divs[1] = 1; - divs[2] = 1; - adjustedBounds[0] = minPoint[0] - 0.5; - adjustedBounds[1] = maxPoint[0] + 0.5; - adjustedBounds[2] = minPoint[1] - 0.5; - adjustedBounds[3] = maxPoint[1] + 0.5; - adjustedBounds[4] = minPoint[2] - 0.5; - adjustedBounds[5] = maxPoint[2] + 0.5; - return 1; - } - - // Compute the divisions roughly in proportion to the bounding box edge lengths - let f = totalBins; - f /= nonZero[0] ? lengths[0] / totLen : 1.0; - f /= nonZero[1] ? lengths[1] / totLen : 1.0; - f /= nonZero[2] ? lengths[2] / totLen : 1.0; - f **= 1.0 / numNonZero; - for (let i = 0; i < 3; ++i) { - divs[i] = nonZero[i] ? Math.floor(f * lengths[i] / totLen) : 1; - divs[i] = divs[i] < 1 ? 1 : divs[i]; - } - - // Make sure that we do not exceed the totalBins - clampDivisions(totalBins, divs); - - // Now compute the final bounds, making sure it is a non-zero volume - const delta = 0.5 * lengths[maxIdx] / divs[maxIdx]; - for (let i = 0; i < 3; ++i) { - if (nonZero[i]) { - adjustedBounds[2 * i] = minPoint[i]; - adjustedBounds[2 * i + 1] = maxPoint[i]; - } else { - adjustedBounds[2 * i] = minPoint[i] - delta; - adjustedBounds[2 * i + 1] = maxPoint[i] + delta; - } - } - return divs[0] * divs[1] * divs[2]; -} - -/** - * Calculate the squared distance from point x to the specified bounds. - * @param {Vector3} x The point coordinates - * @param {Bounds} bounds The bounding box coordinates - * @returns {Number} The squared distance to the bounds - */ -function distance2ToBounds(x, bounds) { - // Are we within the bounds? - if (x[0] >= bounds[0] && x[0] <= bounds[1] && x[1] >= bounds[2] && x[1] <= bounds[3] && x[2] >= bounds[4] && x[2] <= bounds[5]) { - return 0.0; - } - const deltas = [0.0, 0.0, 0.0]; - - // dx - if (x[0] < bounds[0]) { - deltas[0] = bounds[0] - x[0]; - } else if (x[0] > bounds[1]) { - deltas[0] = x[0] - bounds[1]; - } - - // dy - if (x[1] < bounds[2]) { - deltas[1] = bounds[2] - x[1]; - } else if (x[1] > bounds[3]) { - deltas[1] = x[1] - bounds[3]; - } - - // dz - if (x[2] < bounds[4]) { - deltas[2] = bounds[4] - x[2]; - } else if (x[2] > bounds[5]) { - deltas[2] = x[2] - bounds[5]; - } - return dot(deltas, deltas); -} - -// ---------------------------------------------------------------------------- -// Light Weight class -// ---------------------------------------------------------------------------- - -class BoundingBox { - constructor(refBounds) { - this.bounds = refBounds; - if (!this.bounds) { - this.bounds = new Float64Array(INIT_BOUNDS); - } - } - getBounds() { - return this.bounds; - } - equals(otherBounds) { - return equals(this.bounds, otherBounds); - } - isValid() { - return isValid(this.bounds); - } - setBounds(otherBounds) { - return setBounds(this.bounds, otherBounds); - } - reset() { - return reset(this.bounds); - } - addPoint() { - for (var _len = arguments.length, xyz = new Array(_len), _key = 0; _key < _len; _key++) { - xyz[_key] = arguments[_key]; - } - return addPoint(this.bounds, ...xyz); - } - addPoints(points) { - return addPoints(this.bounds, points); - } - addBounds(xMin, xMax, yMin, yMax, zMin, zMax) { - return addBounds(this.bounds, xMin, xMax, yMin, yMax, zMin, zMax); - } - setMinPoint(x, y, z) { - return setMinPoint(this.bounds, x, y, z); - } - setMaxPoint(x, y, z) { - return setMaxPoint(this.bounds, x, y, z); - } - inflate(delta) { - return inflate(this.bounds, delta); - } - scale(sx, sy, sz) { - return scale(this.bounds, sx, sy, sz); - } - getCenter() { - return getCenter(this.bounds); - } - getLength(index) { - return getLength(this.bounds, index); - } - getLengths() { - return getLengths(this.bounds); - } - getMaxLength() { - return getMaxLength(this.bounds); - } - getDiagonalLength() { - return getDiagonalLength(this.bounds); - } - getDiagonalLength2() { - return getDiagonalLength2(this.bounds); - } - getMinPoint() { - return getMinPoint(this.bounds); - } - getMaxPoint() { - return getMaxPoint(this.bounds); - } - getXRange() { - return getXRange(this.bounds); - } - getYRange() { - return getYRange(this.bounds); - } - getZRange() { - return getZRange(this.bounds); - } - getCorners(corners) { - return getCorners(this.bounds, corners); - } - computeCornerPoints(point1, point2) { - return computeCornerPoints(this.bounds, point1, point2); - } - computeLocalBounds(u, v, w) { - return computeLocalBounds(this.bounds, u, v, w); - } - transformBounds(transform) { - let out = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - return transformBounds(this.bounds, transform, out); - } - computeScale3(scale3) { - return computeScale3(this.bounds, scale3); - } - cutWithPlane(origin, normal) { - return cutWithPlane(this.bounds, origin, normal); - } - intersectBox(origin, dir, coord, tolerance) { - return intersectBox(this.bounds, origin, dir, coord, tolerance); - } - intersectPlane(origin, normal) { - return intersectPlane(this.bounds, origin, normal); - } - intersect(otherBounds) { - return intersect(this.bounds, otherBounds); - } - intersects(otherBounds) { - return intersects(this.bounds, otherBounds); - } - containsPoint(x, y, z) { - return containsPoint(this.bounds, x, y, z); - } - contains(otherBounds) { - return intersects(this.bounds, otherBounds); - } - computeDivisions(totalBins, divs) { - let adjustedBounds = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; - return computeDivisions(this.bounds, totalBins, divs, adjustedBounds); - } - distance2ToBounds(x) { - return distance2ToBounds(x, this.bounds); - } -} -function newInstance(initialValues) { - const bounds = initialValues && initialValues.bounds; - return new BoundingBox(bounds); -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = { - equals, - isValid, - setBounds, - reset, - addPoint, - addPoints, - addBounds, - setMinPoint, - setMaxPoint, - inflate, - scale, - scaleAboutCenter, - getCenter, - getLength, - getLengths, - getMaxLength, - getDiagonalLength, - getDiagonalLength2, - getMinPoint, - getMaxPoint, - getXRange, - getYRange, - getZRange, - getCorners, - computeCornerPoints, - computeLocalBounds, - transformBounds, - computeScale3, - cutWithPlane, - intersectBox, - intersectPlane, - intersect, - intersects, - containsPoint, - contains, - computeDivisions, - clampDivisions, - distance2ToBounds, - INIT_BOUNDS -}; -var vtkBoundingBox = { - newInstance, - ...STATIC -}; - -export { STATIC, addBounds, addPoint, addPoints, clampDivisions, computeCornerPoints, computeDivisions, computeLocalBounds, computeScale3, contains, containsPoint, cutWithPlane, vtkBoundingBox as default, distance2ToBounds, equals, getCenter, getCorners, getDiagonalLength, getDiagonalLength2, getLength, getLengths, getMaxLength, getMaxPoint, getMinPoint, getXRange, getYRange, getZRange, intersect, intersectBox, intersectPlane, intersects, isValid, reset, scale, scaleAboutCenter, setBounds, setMaxPoint, setMinPoint, transformBounds }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Box.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Box.d.ts deleted file mode 100644 index 83f3301a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Box.d.ts +++ /dev/null @@ -1,104 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { Bounds, Vector3 } from './../../types'; -import vtkImplicitFunction from './ImplicitFunction'; - -export interface IBoxInitialValues { - bbox?: Bounds; -} - -export interface IBoxIntersections { - t1; - t2: number; - x1; - x2: Vector3; -} - -export interface vtkBox extends vtkImplicitFunction { - /** - * Add the bounds for the box. - * @param {Bounds} bounds - */ - addBounds(bounds: Bounds): void; - - /** - * - * @param other - */ - addBox(other: any): void; - - /** - * - * @param {Vector3} x The point coordinate. - */ - evaluateFunction(x: Vector3): number; - - /** - * Intersect box with line and return the parametric values and points of the two intercepts - * @param bounds - * @param p1 - * @param p2 - * returns @object IBoxIntersections {t1, t2, x1, x2} object containing the t1, t2 parametric values and - * x1, x2 coordinates of the line intercept points in the bounding box or undefined - */ - intersectWithLine(p1: Vector3, p2: Vector3): IBoxIntersections | undefined; - - /** - * - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - evaluateFunction(x: number, y: number, z: number): number; - - /** - * Get the bounds for the box. - */ - getBounds(): Bounds; - - /** - * Set the bounds for the box. - * @param {Bounds} bounds The bounds for the box. - */ - setBounds(bounds: Bounds): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkBox characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IBoxInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IBoxInitialValues -): void; - -/** - * Method used to create a new instance of vtkBox. - * @param {IBoxInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: IBoxInitialValues): vtkBox; - -//------------------------------------------------------------------------------ -// Bounding box intersection code from David Gobbi. Go through the -// bounding planes one at a time and compute the parametric coordinate -// of each intersection and return the parametric values and the calculated points -export function intersectWithLine( - bounds, - p1, - p2 -): IBoxIntersections | undefined; - -/** - * vtkBox provides methods for creating a 1D cubic spline object from given - * parameters, and allows for the calculation of the spline value and derivative - * at any given point inside the spline intervals. - */ -export declare const vtkBox: { - newInstance: typeof newInstance; - extend: typeof extend; - intersectWithLine: typeof intersectWithLine; -}; -export default vtkBox; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Box.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Box.js deleted file mode 100644 index 3dba885c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Box.js +++ /dev/null @@ -1,223 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkBoundingBox from './BoundingBox.js'; -import vtkImplicitFunction from './ImplicitFunction.js'; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -//------------------------------------------------------------------------------ -// Bounding box intersection code from David Gobbi. Go through the -// bounding planes one at a time and compute the parametric coordinate -// of each intersection and return the parametric values and the calculated points -function intersectWithLine(bounds, p1, p2) { - let plane1 = -1; - let plane2 = -1; - let t1 = 0.0; - let t2 = 1.0; - for (let j = 0; j < 3; j++) { - for (let k = 0; k < 2; k++) { - // Compute distances of p1 and p2 from the plane along the plane normal - const i = 2 * j + k; - const d1 = (bounds[i] - p1[j]) * (1 - 2 * k); - const d2 = (bounds[i] - p2[j]) * (1 - 2 * k); - - // If both distances are positive, both points are outside - if (d1 > 0 && d2 > 0) { - return; - } - // If one of the distances is positive, the line crosses the plane - if (d1 > 0 || d2 > 0) { - // Compute fractional distance "t" of the crossing between p1 & p2 - let t = 0.0; - if (d1 !== 0) { - t = d1 / (d1 - d2); - } - - // If point p1 was clipped, adjust t1 - if (d1 > 0) { - if (t >= t1) { - t1 = t; - plane1 = i; - } - } - // else point p2 was clipped, so adjust t2 - else if (t <= t2) { - t2 = t; - plane2 = i; - } - // If this happens, there's no line left - if (t1 > t2) { - // Allow for planes that are coincident or slightly inverted - if (plane1 < 0 || plane2 < 0) { - return; - } - } - } - } - } - function getValues(plane, t) { - const x = [0, 0, 0]; - for (let count = 0; count < 2; count++) { - for (let i = 0; i < 3; i++) { - if (plane === 2 * i || plane === 2 * i + 1) { - x[i] = bounds[plane]; - } else { - x[i] = p1[i] * (1.0 - t) + p2[i] * t; - if (x[i] < bounds[2 * i]) { - x[i] = bounds[2 * i]; - } - if (x[i] > bounds[2 * i + 1]) { - x[i] = bounds[2 * i + 1]; - } - } - } - } - return x; - } - const x1 = getValues(plane1, t1); - const x2 = getValues(plane2, t2); - const outObject = { - t1, - t2, - x1, - x2 - }; - - // eslint-disable-next-line consistent-return - return outObject; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = {}; - -// ---------------------------------------------------------------------------- -// vtkBox methods -// ---------------------------------------------------------------------------- -function vtkBox(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkBox'); - - // TODO: replace with macro.setArray ? - publicAPI.setBounds = function () { - let boundsArray = []; - for (var _len = arguments.length, bounds = new Array(_len), _key = 0; _key < _len; _key++) { - bounds[_key] = arguments[_key]; - } - if (Array.isArray(bounds[0])) { - boundsArray = bounds[0]; - } else { - for (let i = 0; i < bounds.length; i++) { - boundsArray.push(bounds[i]); - } - } - if (boundsArray.length !== 6) { - console.log('vtkBox.setBounds', boundsArray, bounds); - return; - } - vtkBoundingBox.setBounds(model.bbox, boundsArray); - }; - publicAPI.getBounds = () => model.bbox; - publicAPI.evaluateFunction = (x, y, z) => { - const point = Array.isArray(x) ? x : [x, y, z]; - let diff; - let dist; - let t; - let minDistance = -Number.MAX_VALUE; - let distance = 0; - const minPoint = vtkBoundingBox.getMinPoint(model.bbox); - const maxPoint = vtkBoundingBox.getMaxPoint(model.bbox); - let inside = 1; - for (let i = 0; i < 3; i++) { - diff = vtkBoundingBox.getLength(model.bbox, i); - if (diff !== 0.0) { - t = (point[i] - minPoint[i]) / diff; - if (t < 0.0) { - inside = 0; - dist = minPoint[i] - point[i]; - } else if (t > 1.0) { - inside = 0; - dist = point[i] - maxPoint[i]; - } else { - // want negative distance, we are inside - if (t <= 0.5) { - dist = minPoint[i] - point[i]; - } else { - dist = point[i] - maxPoint[i]; - } - if (dist > minDistance) { - // remember, it's negative - minDistance = dist; - } - } // end if inside - } else { - dist = Math.abs(point[i] - minPoint[i]); - if (dist > 0.0) { - inside = 0; - } - } - if (dist > 0.0) { - distance += dist * dist; - } - } // end for i - distance = Math.sqrt(distance); - if (inside) { - return minDistance; - } - return distance; - }; - publicAPI.addBounds = function () { - let boundsArray = []; - if (Array.isArray(arguments.length <= 0 ? undefined : arguments[0])) { - boundsArray = arguments.length <= 0 ? undefined : arguments[0]; - } else { - for (let i = 0; i < arguments.length; i++) { - boundsArray.push(i < 0 || arguments.length <= i ? undefined : arguments[i]); - } - } - if (boundsArray.length !== 6) { - return; - } - vtkBoundingBox.addBounds(model.bbox, ...boundsArray); - publicAPI.modified(); - }; - publicAPI.addBox = other => publicAPI.addBounds(other.getBounds()); - publicAPI.intersectWithLine = (p1, p2) => intersectWithLine(model.bbox, p1, p2); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - bbox: [...vtkBoundingBox.INIT_BOUNDS] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - vtkImplicitFunction.extend(publicAPI, model, initialValues); - vtkBox(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkBox'); - -// ---------------------------------------------------------------------------- - -var vtkBox$1 = { - newInstance, - extend, - intersectWithLine, - ...STATIC -}; - -export { STATIC, vtkBox$1 as default, extend, intersectWithLine, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/CardinalSpline1D.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/CardinalSpline1D.d.ts deleted file mode 100644 index 0547e777..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/CardinalSpline1D.d.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { Vector3 } from './../../types'; -import vtkSpline1D, { - ISpline1DInitialValues, - BoundaryCondition, -} from './Spline1D'; - -export interface ICardinalSpline1DInitialValues - extends ISpline1DInitialValues {} - -export interface vtkCardinalSpline1D extends vtkSpline1D { - /** - * - * @param {Number} size - * @param {Float32Array} work - * @param {Vector3} x - * @param {Vector3} y - */ - computeCloseCoefficients( - size: number, - work: Float32Array, - x: Vector3, - y: Vector3 - ): void; - - /** - * - * @param {Number} size - * @param {Float32Array} work - * @param {Vector3} x - * @param {Vector3} y - * @param {Object} options - * @param {BoundaryCondition} options.leftConstraint - * @param {Number} options.leftValue - * @param {BoundaryCondition} options.rightConstraint - * @param {Number} options.rightValue - */ - computeOpenCoefficients( - size: number, - work: Float32Array, - x: Vector3, - y: Vector3, - options: { - leftConstraint: BoundaryCondition; - leftValue: number; - rightConstraint: BoundaryCondition; - rightValue: Number; - } - ): void; - - /** - * - * @param {Number} intervalIndex - * @param {Number} t - */ - getValue(intervalIndex: number, t: number): number; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkCardinalSpline1D characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ICardinalSpline1DInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ICardinalSpline1DInitialValues -): void; - -/** - * Method used to create a new instance of vtkCardinalSpline1D. - * @param {ICardinalSpline1DInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ICardinalSpline1DInitialValues -): vtkCardinalSpline1D; - -/** - * vtkCardinalSpline1D provides methods for creating a 1D cubic spline object - * from given parameters, and allows for the calculation of the spline value and - * derivative at any given point inside the spline intervals. - */ -export declare const vtkCardinalSpline1D: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkCardinalSpline1D; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/CardinalSpline1D.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/CardinalSpline1D.js deleted file mode 100644 index 22d4d3c8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/CardinalSpline1D.js +++ /dev/null @@ -1,240 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkSpline1D from './Spline1D.js'; -import { BoundaryCondition } from './Spline1D/Constants.js'; - -const VTK_EPSILON = 0.0001; - -// ---------------------------------------------------------------------------- -// vtkCardinalSpline1D methods -// ---------------------------------------------------------------------------- - -function vtkCardinalSpline1D(publicAPI, model) { - // Set our classname - model.classHierarchy.push('vtkCardinalSpline1D'); - - // -------------------------------------------------------------------------- - - publicAPI.computeCloseCoefficients = (size, work, x, y) => { - if (!model.coefficients || model.coefficients.length !== 4 * size) { - model.coefficients = new Float32Array(4 * size); - } - const N = size - 1; - for (let k = 1; k < N; k++) { - const xlk = x[k] - x[k - 1]; - const xlkp = x[k + 1] - x[k]; - model.coefficients[4 * k + 0] = xlkp; - model.coefficients[4 * k + 1] = 2 * (xlkp + xlk); - model.coefficients[4 * k + 2] = xlk; - work[k] = 3.0 * (xlkp * (y[k] - y[k - 1]) / xlk + xlk * (y[k + 1] - y[k]) / xlkp); - } - const xlk = x[N] - x[N - 1]; - const xlkp = x[1] - x[0]; - model.coefficients[4 * N + 0] = xlkp; - model.coefficients[4 * N + 1] = 2 * (xlkp + xlk); - model.coefficients[4 * N + 2] = xlk; - work[N] = 3 * (xlkp * (y[N] - y[N - 1]) / xlk + xlk * (y[1] - y[0]) / xlkp); - const aN = model.coefficients[4 * N + 0]; - const bN = model.coefficients[4 * N + 1]; - const cN = model.coefficients[4 * N + 2]; - const dN = work[N]; - - // solve resulting set of equations. - model.coefficients[4 * 0 + 2] = 0; - work[0] = 0; - model.coefficients[4 * 0 + 3] = 1; - for (let k = 1; k <= N; k++) { - model.coefficients[4 * k + 1] -= model.coefficients[4 * k + 0] * model.coefficients[4 * (k - 1) + 2]; - model.coefficients[4 * k + 2] = model.coefficients[4 * k + 2] / model.coefficients[4 * k + 1]; - work[k] = (work[k] - model.coefficients[4 * k + 0] * work[k - 1]) / model.coefficients[4 * k + 1]; - model.coefficients[4 * k + 3] = -model.coefficients[4 * k + 0] * model.coefficients[4 * (k - 1) + 3] / model.coefficients[4 * k + 1]; - } - model.coefficients[4 * N + 0] = 1; - model.coefficients[4 * N + 1] = 0; - for (let k = N - 1; k > 0; k--) { - model.coefficients[4 * k + 0] = model.coefficients[4 * k + 3] - model.coefficients[4 * k + 2] * model.coefficients[4 * (k + 1) + 0]; - model.coefficients[4 * k + 1] = work[k] - model.coefficients[4 * k + 2] * model.coefficients[4 * (k + 1) + 1]; - } - work[0] = (dN - cN * model.coefficients[4 * 1 + 1] - aN * model.coefficients[4 * (N - 1) + 1]) / (bN + cN * model.coefficients[4 * 1 + 0] + aN * model.coefficients[4 * (N - 1) + 0]); - work[N] = work[0]; - for (let k = 1; k < N; k++) { - work[k] = model.coefficients[4 * k + 0] * work[N] + model.coefficients[4 * k + 1]; - } - - // the column vector work now contains the first - // derivative of the spline function at each joint. - // compute the coefficients of the cubic between - // each pair of joints. - for (let k = 0; k < N; k++) { - const b = x[k + 1] - x[k]; - model.coefficients[4 * k + 0] = y[k]; - model.coefficients[4 * k + 1] = work[k]; - model.coefficients[4 * k + 2] = 3 * (y[k + 1] - y[k]) / (b * b) - (work[k + 1] + 2 * work[k]) / b; - model.coefficients[4 * k + 3] = 2 * (y[k] - y[k + 1]) / (b * b * b) + (work[k + 1] + work[k]) / (b * b); - } - - // the coefficients of a fictitious nth cubic - // are the same as the coefficients in the first interval - model.coefficients[4 * N + 0] = y[N]; - model.coefficients[4 * N + 1] = work[N]; - model.coefficients[4 * N + 2] = model.coefficients[4 * 0 + 2]; - model.coefficients[4 * N + 3] = model.coefficients[4 * 0 + 3]; - }; - - // -------------------------------------------------------------------------- - - publicAPI.computeOpenCoefficients = function (size, work, x, y) { - let options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {}; - if (!model.coefficients || model.coefficients.length !== 4 * size) { - model.coefficients = new Float32Array(4 * size); - } - const N = size - 1; - // develop constraint at leftmost point. - switch (options.leftConstraint) { - case BoundaryCondition.DERIVATIVE: - // desired slope at leftmost point is leftValue. - model.coefficients[4 * 0 + 1] = 1.0; - model.coefficients[4 * 0 + 2] = 0.0; - work[0] = options.leftValue; - break; - case BoundaryCondition.SECOND_DERIVATIVE: - // desired second derivative at leftmost point is leftValue. - model.coefficients[4 * 0 + 1] = 2.0; - model.coefficients[4 * 0 + 2] = 1.0; - work[0] = 3.0 * ((y[1] - y[0]) / (x[1] - x[0])) - 0.5 * (x[1] - x[0]) * options.leftValue; - break; - case BoundaryCondition.SECOND_DERIVATIVE_INTERIOR_POINT: - // desired second derivative at leftmost point is - // leftValue times second derivative at first interior point. - model.coefficients[4 * 0 + 1] = 2.0; - if (Math.abs(options.leftValue + 2) > VTK_EPSILON) { - model.coefficients[4 * 0 + 2] = 4.0 * ((0.5 + options.leftValue) / (2.0 + options.leftValue)); - work[0] = 6.0 * ((1.0 + options.leftValue) / (2.0 + options.leftValue)) * ((y[1] - y[0]) / (x[1] - x[0])); - } else { - model.coefficients[4 * 0 + 2] = 0; - work[0] = 0; - } - break; - case BoundaryCondition.DEFAULT: - default: - // desired slope at leftmost point is derivative from two points - model.coefficients[4 * 0 + 1] = 1.0; - model.coefficients[4 * 0 + 2] = 0.0; - work[0] = y[2] - y[0]; - break; - } - for (let k = 1; k < N; k++) { - const xlk = x[k] - x[k - 1]; - const xlkp = x[k + 1] - x[k]; - model.coefficients[4 * k + 0] = xlkp; - model.coefficients[4 * k + 1] = 2 * (xlkp + xlk); - model.coefficients[4 * k + 2] = xlk; - work[k] = 3.0 * (xlkp * (y[k] - y[k - 1]) / xlk + xlk * (y[k + 1] - y[k]) / xlkp); - } - - // develop constraint at rightmost point. - switch (options.rightConstraint) { - case BoundaryCondition.DERIVATIVE: - // desired slope at rightmost point is rightValue - model.coefficients[4 * N + 0] = 0.0; - model.coefficients[4 * N + 1] = 1.0; - work[N] = options.rightValue; - break; - case BoundaryCondition.SECOND_DERIVATIVE: - // desired second derivative at rightmost point is rightValue. - model.coefficients[4 * N + 0] = 1.0; - model.coefficients[4 * N + 1] = 2.0; - work[N] = 3.0 * ((y[N] - y[N - 1]) / (x[N] - x[N - 1])) + 0.5 * (x[N] - x[N - 1]) * options.rightValue; - break; - case BoundaryCondition.SECOND_DERIVATIVE_INTERIOR_POINT: - // desired second derivative at rightmost point is - // rightValue times second derivative at last interior point. - model.coefficients[4 * N + 1] = 2.0; - if (Math.abs(options.rightValue + 2) > VTK_EPSILON) { - model.coefficients[4 * N + 0] = 4.0 * ((0.5 + options.rightValue) / (2.0 + options.rightValue)); - work[N] = 6.0 * ((1.0 + options.rightValue) / (2.0 + options.rightValue)) * ((y[N] - y[size - 2]) / (x[N] - x[size - 2])); - } else { - model.coefficients[4 * N + 0] = 0; - work[N] = 0; - } - break; - case BoundaryCondition.DEFAULT: - default: - // desired slope at rightmost point is derivative from two points - model.coefficients[4 * N + 0] = 0.0; - model.coefficients[4 * N + 1] = 1.0; - work[N] = y[N] - y[N - 2]; - break; - } - - // solve resulting set of equations. - model.coefficients[4 * 0 + 2] /= model.coefficients[4 * 0 + 1]; - work[0] /= model.coefficients[4 * N + 1]; - model.coefficients[4 * N + 3] = 1; - for (let k = 1; k <= N; k++) { - model.coefficients[4 * k + 1] -= model.coefficients[4 * k + 0] * model.coefficients[4 * (k - 1) + 2]; - model.coefficients[4 * k + 2] /= model.coefficients[4 * k + 1]; - work[k] = (work[k] - model.coefficients[4 * k + 0] * work[k - 1]) / model.coefficients[4 * k + 1]; - } - for (let k = N - 1; k >= 0; k--) { - work[k] -= model.coefficients[4 * k + 2] * work[k + 1]; - } - - // the column vector work now contains the first - // derivative of the spline function at each joint. - // compute the coefficients of the cubic between - // each pair of joints. - for (let k = 0; k < N; k++) { - const b = x[k + 1] - x[k]; - model.coefficients[4 * k + 0] = y[k]; - model.coefficients[4 * k + 1] = work[k]; - model.coefficients[4 * k + 2] = 3 * (y[k + 1] - y[k]) / (b * b) - (work[k + 1] + 2 * work[k]) / b; - model.coefficients[4 * k + 3] = 2 * (y[k] - y[k + 1]) / (b * b * b) + (work[k + 1] + work[k]) / (b * b); - } - - // the coefficients of a fictitious nth cubic - // are the same as the coefficients in the first interval - model.coefficients[4 * N + 0] = y[N]; - model.coefficients[4 * N + 1] = work[N]; - model.coefficients[4 * N + 2] = model.coefficients[4 * 0 + 2]; - model.coefficients[4 * N + 3] = model.coefficients[4 * 0 + 3]; - }; - - // -------------------------------------------------------------------------- - - publicAPI.getValue = (intervalIndex, t) => { - const t2 = t * t; - const t3 = t * t * t; - return model.coefficients[4 * intervalIndex + 3] * t3 + model.coefficients[4 * intervalIndex + 2] * t2 + model.coefficients[4 * intervalIndex + 1] * t + model.coefficients[4 * intervalIndex + 0]; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkSpline1D.extend(publicAPI, model, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - vtkCardinalSpline1D(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCardinalSpline1D'); - -// ---------------------------------------------------------------------------- - -var vtkCardinalSpline1D$1 = { - newInstance, - extend -}; - -export { vtkCardinalSpline1D$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Cell.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Cell.d.ts deleted file mode 100644 index d11aea4f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Cell.d.ts +++ /dev/null @@ -1,107 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { Bounds, Vector3 } from './../../types'; -import vtkPoints from './../Core/Points'; - -export interface ICellInitialValues { - bounds?: Bounds; - pointsIds?: number[]; -} - -export interface vtkCell extends vtkObject { - /** - * Copy this cell by completely copying internal data structures. - * @param {vtkCell} cell The cell you want to use. - */ - deepCopy(cell: vtkCell): void; - - /** - * Initialize the cell with point coordinates and cell point ids, example : - * - * ```js - * const points = vtkPoints.newInstance(); - * points.setData(Float32Array.from([0, 0, 0, 0, 0, 1, ..., 255, 255, 255])); - * const pointIdsList = [13, 10, 235]; - * // Create cell - * const triangle = vtkTriangle.newInstance(); - * // Initialize cell - * triangle.initialize(points, pointIdsList); - * ``` - * - * If pointIdsList is null, points are shallow copied and pointIdsList is - * generated as such: [0, 1, ..., N-1] where N is the number of points. If - * pointIdsList is not null, only pointIdsList point coordinates are copied into - * the cell. pointIdsList is shallow copied. - * @param {vtkPoints} points - * @param {Number[]} [pointIdsList] - */ - initialize(points: vtkPoints, pointIdsList?: number[]): void; - - /** - * Get the bounds for this mapper as [xmin, xmax, ymin, ymax,zmin, zmax]. - * @return {Bounds} The bounds for the mapper. - */ - getBounds(): Bounds; - - /** - * Compute Length squared of cell (i.e., bounding box diagonal squared). - */ - getLength2(): number; - - /** - * Get the distance of the parametric coordinate provided to the cell. If - * inside the cell, a distance of zero is returned. This is used during - * picking to get the correct cell picked. (The tolerance will occasionally - * allow cells to be picked who are not really intersected "inside" the - * cell.) - * @param {Vector3} pcoords The coordinates of the point. - * - */ - getParametricDistance(pcoords: Vector3): number; - - /** - * - */ - getPoints(): vtkPoints; - - /** - * - */ - getPointsIds(): number[]; - - /** - * Get the number of points in the cell. - */ - getNumberOfPoints(): number; - - // getCellDimension(): void; - // intersectWithLine(p1: any, p2: any, tol: any, t: any, x: any, pcoords: any, subId: any): void; - // evaluatePosition(x: Vector3, closestPoint: Vector3, subId: number, pcoords: Vector3, dist2: number, weights: any): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkCell characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ICellInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ICellInitialValues -): void; - -/** - * Method used to create a new instance of vtkCell. - * @param {ICellInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: ICellInitialValues): vtkCell; - -/** - * vtkCell is an abstract method to define a cell - */ -export declare const vtkCell: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkCell; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Cell.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Cell.js deleted file mode 100644 index 6f3cee4e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Cell.js +++ /dev/null @@ -1,106 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkBoundingBox from './BoundingBox.js'; -import vtkPoints from '../Core/Points.js'; - -// ---------------------------------------------------------------------------- -// vtkCell methods -// ---------------------------------------------------------------------------- - -function vtkCell(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCell'); - publicAPI.initialize = function (points) { - let pointIdsList = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - if (!pointIdsList) { - model.points = points; - model.pointsIds = new Array(points.getNumberOfPoints()); - for (let i = points.getNumberOfPoints() - 1; i >= 0; --i) { - model.pointsIds[i] = i; - } - } else { - model.pointsIds = pointIdsList; - let triangleData = model.points.getData(); - if (triangleData.length !== 3 * model.pointsIds.length) { - triangleData = macro.newTypedArray(points.getDataType(), 3 * model.pointsIds.length); - } - const pointsData = points.getData(); - model.pointsIds.forEach((pointId, index) => { - // const start = 3 * pointId; - // pointsData.set(p.subarray(start, start + 3), 3 * index); - let pointOffset = 3 * pointId; - let trianglePointOffset = 3 * index; - triangleData[trianglePointOffset] = pointsData[pointOffset]; - triangleData[++trianglePointOffset] = pointsData[++pointOffset]; - triangleData[++trianglePointOffset] = pointsData[++pointOffset]; - }); - model.points.setData(triangleData); - } - }; - publicAPI.getBounds = () => model.points.getBounds(); - publicAPI.getLength2 = () => { - const lengths = vtkBoundingBox.getLengths(publicAPI.getBounds()); - return lengths[0] * lengths[0] + lengths[1] * lengths[1] + lengths[2] * lengths[2]; - }; - publicAPI.getParametricDistance = pcoords => { - let pDist; - let pDistMax = 0.0; - for (let i = 0; i < 3; i++) { - if (pcoords[i] < 0.0) { - pDist = -pcoords[i]; - } else if (pcoords[i] > 1.0) { - pDist = pcoords[i] - 1.0; - } else { - // inside the cell in the parametric direction - pDist = 0.0; - } - if (pDist > pDistMax) { - pDistMax = pDist; - } - } - return pDistMax; - }; - publicAPI.getNumberOfPoints = () => model.points.getNumberOfPoints(); - publicAPI.deepCopy = cell => { - cell.initialize(model.points, model.pointsIds); - }; - publicAPI.getCellDimension = () => {}; // virtual - publicAPI.intersectWithLine = (p1, p2, tol, t, x, pcoords, subId) => {}; // virtual - publicAPI.evaluatePosition = (x, closestPoint, subId, pcoords, dist2, weights) => { - macro.vtkErrorMacro('vtkCell.evaluatePosition is not implemented.'); - }; // virtual -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - bounds: [-1, -1, -1, -1, -1, -1], - pointsIds: [] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - if (!model.points) { - model.points = vtkPoints.newInstance(); - } - macro.get(publicAPI, model, ['points', 'pointsIds']); - vtkCell(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCell'); - -// ---------------------------------------------------------------------------- - -var vtkCell$1 = { - newInstance, - extend -}; - -export { vtkCell$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/CellLinks.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/CellLinks.js deleted file mode 100644 index b867be00..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/CellLinks.js +++ /dev/null @@ -1,258 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCell from './Cell.js'; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- -const InitLink = { - ncells: 0, - cells: null -}; -function resize(model, sz) { - let newSize = sz; - if (sz >= model.array.length) { - newSize += model.array.length; - } - while (newSize > model.array.length) model.array.push({ - ncells: 0, - cells: null - }); - model.array.length = newSize; -} - -// ---------------------------------------------------------------------------- -// vtkCellLinks methods -// ---------------------------------------------------------------------------- - -function vtkCellLinks(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCellLinks'); - - /** - * Build the link list array. All subclasses of vtkAbstractCellLinks - * must support this method. - */ - publicAPI.buildLinks = data => { - const numPts = data.getPoints().getNumberOfPoints(); - const numCells = data.getNumberOfCells(); - - // fill out lists with number of references to cells - const linkLoc = new Uint32Array(numPts); - - // Use fast path if polydata - if (data.isA('vtkPolyData')) { - // traverse data to determine number of uses of each point - for (let cellId = 0; cellId < numCells; ++cellId) { - const { - cellPointIds - } = data.getCellPoints(cellId); - cellPointIds.forEach(cellPointId => { - publicAPI.incrementLinkCount(cellPointId); - }); - } - - // now allocate storage for the links - publicAPI.allocateLinks(numPts); - model.maxId = numPts - 1; - for (let cellId = 0; cellId < numCells; ++cellId) { - const { - cellPointIds - } = data.getCellPoints(cellId); - cellPointIds.forEach(cellPointId => { - publicAPI.insertCellReference(cellPointId, linkLoc[cellPointId]++, cellId); - }); - } - } // any other type of dataset - else { - // traverse data to determine number of uses of each point - for (let cellId = 0; cellId < numCells; cellId++) { - // TODO: Currently not supported: const cell = data.getCell(cellId); - const cell = vtkCell.newInstance(); - cell.getPointsIds().forEach(cellPointId => { - publicAPI.incrementLinkCount(cellPointId); - }); - } - - // now allocate storage for the links - publicAPI.allocateLinks(numPts); - model.maxId = numPts - 1; - for (let cellId = 0; cellId < numCells; ++cellId) { - // TODO: Currently not supported: const cell = data.getCell(cellId); - const cell = vtkCell.newInstance(); - cell.getPointsIds().forEach(cellPointId => { - publicAPI.insertCellReference(cellPointId, linkLoc[cellPointId]++, cellId); - }); - } - } // end else - }; - - /** - * Build the link list array with a provided connectivity array. - */ - // publicAPI.buildLinks = (data, connectivity) => {}; - - /** - * Allocate the specified number of links (i.e., number of points) that - * will be built. - */ - publicAPI.allocate = function (numLinks) { - let ext = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1000; - model.array = Array(numLinks).fill().map(() => ({ - ncells: 0, - cells: null - })); - model.extend = ext; - model.maxId = -1; - }; - publicAPI.initialize = () => { - model.array = null; - }; - - /** - * Get a link structure given a point id. - */ - publicAPI.getLink = ptId => model.array[ptId]; - - /** - * Get the number of cells using the point specified by ptId. - */ - publicAPI.getNcells = ptId => model.array[ptId].ncells; - - /** - * Return a list of cell ids using the point. - */ - publicAPI.getCells = ptId => model.array[ptId].cells; - - /** - * Insert a new point into the cell-links data structure. The size parameter - * is the initial size of the list. - */ - publicAPI.insertNextPoint = numLinks => { - model.array.push({ - ncells: numLinks, - cells: Array(numLinks) - }); - ++model.maxId; - }; - - /** - * Insert a cell id into the list of cells (at the end) using the cell id - * provided. (Make sure to extend the link list (if necessary) using the - * method resizeCellList().) - */ - publicAPI.insertNextCellReference = (ptId, cellId) => { - model.array[ptId].cells[model.array[ptId].ncells++] = cellId; - }; - - /** - * Delete point (and storage) by destroying links to using cells. - */ - publicAPI.deletePoint = ptId => { - model.array[ptId].ncells = 0; - model.array[ptId].cells = null; - }; - - /** - * Delete the reference to the cell (cellId) from the point (ptId). This - * removes the reference to the cellId from the cell list, but does not - * resize the list (recover memory with resizeCellList(), if necessary). - */ - publicAPI.removeCellReference = (cellId, ptId) => { - model.array[ptId].cells = model.array[ptId].cells.filter(cell => cell !== cellId); - model.array[ptId].ncells = model.array[ptId].cells.length; - }; - - /** - * Add the reference to the cell (cellId) from the point (ptId). This - * adds a reference to the cellId from the cell list, but does not resize - * the list (extend memory with resizeCellList(), if necessary). - */ - publicAPI.addCellReference = (cellId, ptId) => { - model.array[ptId].cells[model.array[ptId].ncells++] = cellId; - }; - - /** - * Change the length of a point's link list (i.e., list of cells using a - * point) by the size specified. - */ - publicAPI.resizeCellList = (ptId, size) => { - model.array[ptId].cells.length = size; - }; - - /** - * Reclaim any unused memory. - */ - publicAPI.squeeze = () => { - resize(model, model.maxId + 1); - }; - - /** - * Reset to a state of no entries without freeing the memory. - */ - publicAPI.reset = () => { - model.maxId = -1; - }; - - /** - * Standard DeepCopy method. Since this object contains no reference - * to other objects, there is no ShallowCopy. - */ - publicAPI.deepCopy = src => { - model.array = [...src.array]; - model.extend = src.extend; - model.maxId = src.maxId; - }; - - /** - * Increment the count of the number of cells using the point. - */ - publicAPI.incrementLinkCount = ptId => { - ++model.array[ptId].ncells; - }; - publicAPI.allocateLinks = n => { - for (let i = 0; i < n; ++i) { - model.array[i].cells = new Array(model.array[i].ncells); - } - }; - - /** - * Insert a cell id into the list of cells using the point. - */ - publicAPI.insertCellReference = (ptId, pos, cellId) => { - model.array[ptId].cells[pos] = cellId; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - array: null, - // pointer to data - maxId: 0, - // maximum index inserted thus far - extend: 0 // grow array by this point -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - vtkCellLinks(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCellLinks'); - -// ---------------------------------------------------------------------------- - -var vtkCellLinks$1 = { - newInstance, - extend -}; - -export { InitLink, vtkCellLinks$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/CellTypes.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/CellTypes.js deleted file mode 100644 index 389edcb3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/CellTypes.js +++ /dev/null @@ -1,200 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { CellTypesStrings, CellType } from './CellTypes/Constants.js'; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -/** - * Given an int (as defined in vtkCellType.h) identifier for a class - * return it's classname. - */ -function getClassNameFromTypeId(typeId) { - return typeId < CellTypesStrings.length ? CellTypesStrings[typeId] : 'UnknownClass'; -} - -/** - * Given a data object classname, return it's int identified (as - * defined in vtkCellType.h) - */ -function getTypeIdFromClassName(cellTypeString) { - return CellTypesStrings.findIndex(cellTypeString); -} - -/** - * This convenience method is a fast check to determine if a cell type - * represents a linear or nonlinear cell. This is generally much more - * efficient than getting the appropriate vtkCell and checking its IsLinear - * method. - */ -function isLinear(type) { - return type < CellType.VTK_QUADRATIC_EDGE || type === CellType.VTK_CONVEX_POINT_SET || type === CellType.VTK_POLYHEDRON; -} -function hasSubCells(cellType) { - return cellType === CellType.VTK_TRIANGLE_STRIP || cellType === CellType.VTK_POLY_LINE || cellType === CellType.VTK_POLY_VERTEX; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = { - getClassNameFromTypeId, - getTypeIdFromClassName, - isLinear, - hasSubCells -}; - -// ---------------------------------------------------------------------------- -// vtkCellTypes methods -// ---------------------------------------------------------------------------- - -function vtkCellTypes(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCellTypes'); - - /** - * Allocate memory for this array. Delete old storage only if necessary. - */ - publicAPI.allocate = function () { - let sz = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 512; - let ext = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1000; - model.size = sz > 0 ? sz : 1; - model.extend = ext > 0 ? ext : 1; - model.maxId = -1; - model.typeArray = new Uint8Array(sz); - model.locationArray = new Uint32Array(sz); - }; - - /** - * Add a cell at specified id. - */ - publicAPI.insertCell = (cellId, type, loc) => { - model.typeArray[cellId] = type; - model.locationArray[cellId] = loc; - if (cellId > model.maxId) { - model.maxId = cellId; - } - }; - - /** - * Add a cell to the object in the next available slot. - */ - publicAPI.insertNextCell = (type, loc) => { - publicAPI.insertCell(++model.maxId, type, loc); - return model.maxId; - }; - - /** - * Specify a group of cell types. This version is provided to maintain - * backwards compatibility and does a copy of the cellLocations - */ - publicAPI.setCellTypes = (ncells, cellTypes, cellLocations) => { - model.size = ncells; - model.typeArray = cellTypes; - model.locationArray = cellLocations; - model.maxId = ncells - 1; - }; - - /** - * Return the location of the cell in the associated vtkCellArray. - */ - publicAPI.getCellLocation = cellId => model.locationArray[cellId]; - - /** - * Delete cell by setting to nullptr cell type. - */ - publicAPI.deleteCell = cellId => { - model.typeArray[cellId] = CellType.VTK_EMPTY_CELL; - }; - - /** - * Return the number of types in the list. - */ - publicAPI.getNumberOfTypes = () => model.maxId + 1; - - /** - * Return true if type specified is contained in list; false otherwise. - */ - publicAPI.isType = type => { - const numTypes = publicAPI.getNumberOfTypes(); - for (let i = 0; i < numTypes; ++i) { - if (type === publicAPI.getCellType(i)) { - return true; - } - } - return false; - }; - - /** - * Add the type specified to the end of the list. Range checking is performed. - */ - publicAPI.insertNextType = type => publicAPI.insertNextCell(type, -1); - - /** - * Return the type of cell. - */ - publicAPI.getCellType = cellId => model.typeArray[cellId]; - - /** - * Reclaim any extra memory. - */ - // TODO: publicAPI.squeeze = () => {}; - - /** - * Initialize object without releasing memory. - */ - publicAPI.reset = () => { - model.maxId = -1; - }; - - /** - * Standard DeepCopy method. Since this object contains no reference - * to other objects, there is no ShallowCopy. - */ - publicAPI.deepCopy = src => { - publicAPI.allocate(src.getSize(), src.getExtend()); - model.typeArray.set(src.getTypeArray()); - model.locationArray.set(src.getLocationArray()); - model.maxId = src.getMaxId(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // typeArray: null, // pointer to types array - // locationArray: null; // pointer to array of offsets - size: 0, - // allocated size of data - maxId: -1, - // maximum index inserted thus far - extend: 1000 // grow array by this point -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['size', 'maxId', 'extend']); - macro.getArray(publicAPI, model, ['typeArray', 'locationArray']); - vtkCellTypes(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCellTypes'); - -// ---------------------------------------------------------------------------- - -var vtkCellTypes$1 = { - newInstance, - extend, - ...STATIC -}; - -export { STATIC, vtkCellTypes$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/CellTypes/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/CellTypes/Constants.js deleted file mode 100644 index 33d331b2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/CellTypes/Constants.js +++ /dev/null @@ -1,77 +0,0 @@ -const CellType = { - // Linear cells - VTK_EMPTY_CELL: 0, - VTK_VERTEX: 1, - VTK_POLY_VERTEX: 2, - VTK_LINE: 3, - VTK_POLY_LINE: 4, - VTK_TRIANGLE: 5, - VTK_TRIANGLE_STRIP: 6, - VTK_POLYGON: 7, - VTK_PIXEL: 8, - VTK_QUAD: 9, - VTK_TETRA: 10, - VTK_VOXEL: 11, - VTK_HEXAHEDRON: 12, - VTK_WEDGE: 13, - VTK_PYRAMID: 14, - VTK_PENTAGONAL_PRISM: 15, - VTK_HEXAGONAL_PRISM: 16, - // Quadratic, isoparametric cells - VTK_QUADRATIC_EDGE: 21, - VTK_QUADRATIC_TRIANGLE: 22, - VTK_QUADRATIC_QUAD: 23, - VTK_QUADRATIC_POLYGON: 36, - VTK_QUADRATIC_TETRA: 24, - VTK_QUADRATIC_HEXAHEDRON: 25, - VTK_QUADRATIC_WEDGE: 26, - VTK_QUADRATIC_PYRAMID: 27, - VTK_BIQUADRATIC_QUAD: 28, - VTK_TRIQUADRATIC_HEXAHEDRON: 29, - VTK_QUADRATIC_LINEAR_QUAD: 30, - VTK_QUADRATIC_LINEAR_WEDGE: 31, - VTK_BIQUADRATIC_QUADRATIC_WEDGE: 32, - VTK_BIQUADRATIC_QUADRATIC_HEXAHEDRON: 33, - VTK_BIQUADRATIC_TRIANGLE: 34, - // Cubic, isoparametric cell - VTK_CUBIC_LINE: 35, - // Special class of cells formed by convex group of points - VTK_CONVEX_POINT_SET: 41, - // Polyhedron cell (consisting of polygonal faces) - VTK_POLYHEDRON: 42, - // Higher order cells in parametric form - VTK_PARAMETRIC_CURVE: 51, - VTK_PARAMETRIC_SURFACE: 52, - VTK_PARAMETRIC_TRI_SURFACE: 53, - VTK_PARAMETRIC_QUAD_SURFACE: 54, - VTK_PARAMETRIC_TETRA_REGION: 55, - VTK_PARAMETRIC_HEX_REGION: 56, - // Higher order cells - VTK_HIGHER_ORDER_EDGE: 60, - VTK_HIGHER_ORDER_TRIANGLE: 61, - VTK_HIGHER_ORDER_QUAD: 62, - VTK_HIGHER_ORDER_POLYGON: 63, - VTK_HIGHER_ORDER_TETRAHEDRON: 64, - VTK_HIGHER_ORDER_WEDGE: 65, - VTK_HIGHER_ORDER_PYRAMID: 66, - VTK_HIGHER_ORDER_HEXAHEDRON: 67, - // Arbitrary order Lagrange elements (formulated separated from generic higher order cells) - VTK_LAGRANGE_CURVE: 68, - VTK_LAGRANGE_TRIANGLE: 69, - VTK_LAGRANGE_QUADRILATERAL: 70, - VTK_LAGRANGE_TETRAHEDRON: 71, - VTK_LAGRANGE_HEXAHEDRON: 72, - VTK_LAGRANGE_WEDGE: 73, - VTK_LAGRANGE_PYRAMID: 74, - VTK_NUMBER_OF_CELL_TYPES: 75 -}; - -// This list should contain the cell class names in -// the same order as in CellType. -const CellTypesStrings = ['vtkEmptyCell', 'vtkVertex', 'vtkPolyVertex', 'vtkLine', 'vtkPolyLine', 'vtkTriangle', 'vtkTriangleStrip', 'vtkPolygon', 'vtkPixel', 'vtkQuad', 'vtkTetra', 'vtkVoxel', 'vtkHexahedron', 'vtkWedge', 'vtkPyramid', 'vtkPentagonalPrism', 'vtkHexagonalPrism', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'vtkQuadraticEdge', 'vtkQuadraticTriangle', 'vtkQuadraticQuad', 'vtkQuadraticTetra', 'vtkQuadraticHexahedron', 'vtkQuadraticWedge', 'vtkQuadraticPyramid', 'vtkBiQuadraticQuad', 'vtkTriQuadraticHexahedron', 'vtkQuadraticLinearQuad', 'vtkQuadraticLinearWedge', 'vtkBiQuadraticQuadraticWedge', 'vtkBiQuadraticQuadraticHexahedron', 'vtkBiQuadraticTriangle', 'vtkCubicLine', 'vtkQuadraticPolygon', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'vtkConvexPointSet', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'vtkParametricCurve', 'vtkParametricSurface', 'vtkParametricTriSurface', 'vtkParametricQuadSurface', 'vtkParametricTetraRegion', 'vtkParametricHexRegion', 'UnknownClass', 'UnknownClass', 'UnknownClass', 'vtkHigherOrderEdge', 'vtkHigherOrderTriangle', 'vtkHigherOrderQuad', 'vtkHigherOrderPolygon', 'vtkHigherOrderTetrahedron', 'vtkHigherOrderWedge', 'vtkHigherOrderPyramid', 'vtkHigherOrderHexahedron']; -var Constants = { - CellType, - CellTypesStrings -}; - -export { CellType, CellTypesStrings, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Collection.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Collection.d.ts deleted file mode 100644 index a4bf2c1c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Collection.d.ts +++ /dev/null @@ -1,134 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { Nullable } from './../../types'; - -/** - * - */ -export interface ICollectionInitialValues { - collection?: vtkObject[]; -} - -export interface vtkCollection extends vtkObject { - /** - * Add item (vtkObject) to the collection - * @param {vtkObject} item item to be added to the collection - */ - addItem(item: vtkObject): void; - - /** - * Add item (vtkObject) to the collection _at_ the given index. - * This differs from VTK-C++ where insertItem inserts at position - * after the provided index value. - * @param {number} idx index where the new item should be inserted. - * @param {vtkObject} item item to be inserted - */ - insertItem(idx: number, item: vtkObject): void; - - /** - * Replace an existing item (vtkObject) with a new one - * @param {number} idx index of item to be replaced - * @param {vtkObject} item - */ - replaceItem(idx: number, item: vtkObject): void; - - /** - * Remove an existing item from the collection - * @param {number|vtkObject} inValue index or reference of an item to be removed - */ - removeItem(inValue: number | vtkObject): void; - - /** - * Remove all items from the collection - */ - removeAllItems(): void; - - /** - * Check if a provided item is already present in the collection - */ - isItemPresent(item: vtkObject): boolean; - - /** - * Get the total number of items in the collection - */ - getNumberOfItems(): number; - - /** - * Check if the collection is empty - */ - empty(): boolean; - - /** - * get the current item and provided index, returns null if index is out of bounds - */ - getItem(idx: number): Nullable; - - /** - * Execute a passed function on every item in the collection - * @param callbackfn callback function to be executed on every item in the collection - */ - forEach( - callbackfn: (value: T, index: number, array: readonly T[]) => void - ): void; - - /** - * Execute a passed function on every item in the collection, in order to calculate an aggregated return value. - * @param callbackfn callback function to be used for aggregating a single value from each item in the collection - * @param initialValue starting value to calculate aggregation - */ - reduce( - callbackfn: ( - previousValue: T, - currentValue: T, - currentIndex: number, - array: readonly T[] - ) => T, - initialValue: T - ): T; - - /** - * Similar to forEach, but returns an array of resulting values. - * @param callbackfn callback function to execute on each item in the collection, that returns a value. - */ - map( - callbackfn: (value: T, index: number, array: readonly T[]) => void - ): void; - - /** - * Check each element for modified time and update the collection's - * MTime to the latest timestamp from individual items in the collection. - */ - updateMTimeWithElements(): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkCollection characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ICollectionInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ICollectionInitialValues -): void; - -/** - * Method used to create a new instance of vtkCollection. - * @param {ICollectionInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ICollectionInitialValues -): vtkCollection; - -/** - * vtkCollection is a container of multiple vtkObject items. - * This can be useful for encapsulating multiple vtkObjects such as images - * into a single vtkObject (vtkCollection instance) to be passed as input - * to other filters and mappers as a single unit. - */ -export declare const vtkCollection: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkCollection; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Collection.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Collection.js deleted file mode 100644 index 03b60961..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Collection.js +++ /dev/null @@ -1,97 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkCollection methods -// ---------------------------------------------------------------------------- - -function vtkCollection(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCollection'); - publicAPI.addItem = item => { - model.collection.push(item); - publicAPI.modified(); - }; - publicAPI.insertItem = (idx, item) => { - if (idx < 0 || model.collection.length < idx) { - vtkErrorMacro('idx out of bounds for insertion.'); - } - model.collection.splice(idx, 0, item); - publicAPI.modified(); - }; - publicAPI.replaceItem = (idx, item) => { - model.collection.splice(idx, 1, item); - publicAPI.modified(); - }; - publicAPI.removeItem = inValue => { - const idx = typeof inValue === 'number' ? inValue : model.collection.indexOf(inValue); - if (idx >= 0 && idx < model.collection.length) { - model.collection.splice(idx, 1); - publicAPI.modified(); - } else { - vtkErrorMacro('idx out of bounds for removeItem.'); - } - }; - publicAPI.removeAllItems = () => { - model.collection = []; - publicAPI.modified(); - }; - publicAPI.isItemPresent = item => model.collection.includes(item); - publicAPI.getNumberOfItems = () => model.collection.length; - publicAPI.empty = () => model.collection.length === 0; - publicAPI.getItem = idx => model.collection[idx]; - publicAPI.forEach = ftor => { - model.collection.forEach(ftor); - // Call modified() for the collection, since ftor could have modified the elements. - publicAPI.updateMTimeWithElements(); - }; - publicAPI.reduce = (ftor, initialValue) => model.collection.reduce(ftor, initialValue); - publicAPI.map = ftor => model.collection.map(ftor); - publicAPI.updateMTimeWithElements = () => { - let maxMTimeOfItems = 0; // we expect time values to be positive numbers - for (let i = 0; i < model.collection.length; ++i) { - const elem = model.collection[i]; - maxMTimeOfItems = Math.max(maxMTimeOfItems, elem.getMTime()); - } - if (maxMTimeOfItems > publicAPI.getMTime()) { - publicAPI.modified(); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - collection: [] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - - // Object specific methods - vtkCollection(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCollection'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Cone.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Cone.d.ts deleted file mode 100644 index ecff2a84..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Cone.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { Vector3 } from './../../types'; - -/** - * - */ -export interface IConeInitialValues { - angle?: number; -} - -export interface vtkCone extends vtkObject { - /** - * Given the point x evaluate the cone equation. - * @param {Vector3} x The point coordinate. - */ - evaluateFunction(x: Vector3): number; - - /** - * Given the point x evaluate the equation for the cone gradient. - * @param {Vector3} x The point coordinate. - */ - evaluateGradient(x: Vector3): number[]; - - /** - * Get the angle of the cone. - */ - getAngle(): number; - - /** - * Set the value representing the angle of the cone. - * @param {Number} angle The angle of the cone. - */ - setAngle(angle: number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkCone characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IConeInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IConeInitialValues -): void; - -/** - * Method used to create a new instance of vtkCone. - * @param {IConeInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: IConeInitialValues): vtkCone; - -/** - * vtkCone computes the implicit function and/or gradient for a cone. vtkCone is - * a concrete implementation of vtkImplicitFunction. - */ -export declare const vtkCone: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkCone; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Cone.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Cone.js deleted file mode 100644 index 14fb66eb..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Cone.js +++ /dev/null @@ -1,62 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { r as radiansFromDegrees } from '../Core/Math/index.js'; -import vtkImplicitFunction from './ImplicitFunction.js'; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -// vtkCone methods -// ---------------------------------------------------------------------------- - -function vtkCone(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCone'); - publicAPI.evaluateFunction = x => { - const tanTheta = Math.tan(radiansFromDegrees(model.angle)); - const retVal = x[1] * x[1] + x[2] * x[2] - x[0] * x[0] * tanTheta * tanTheta; - return retVal; - }; - publicAPI.evaluateGradient = x => { - const tanTheta = Math.tan(radiansFromDegrees(model.angle)); - const retVal = [-2.0 * x[0] * tanTheta * tanTheta, 2.0 * x[1], 2.0 * x[2]]; - return retVal; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- -const DEFAULT_VALUES = { - angle: 15.0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - vtkImplicitFunction.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['angle']); - vtkCone(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCone'); - -// ---------------------------------------------------------------------------- - -var vtkCone$1 = { - newInstance, - extend -}; - -export { vtkCone$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Cylinder.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Cylinder.d.ts deleted file mode 100644 index 57231ac0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Cylinder.d.ts +++ /dev/null @@ -1,157 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { Vector3 } from './../../types'; -import vtkImplicitFunction from './ImplicitFunction'; - -/** - * - */ -export interface ICylinderInitialValues { - radius?: number; - center?: number[]; - axis?: number[]; -} - -export interface vtkCylinder extends vtkImplicitFunction { - /** - * Given the point xyz (three floating value) evaluate the cylinder - * equation. - * @param {Vector3} xyz The point coordinate. - */ - evaluateFunction(xyz: Vector3): number; - - /** - * Given the point xyz (three floating values) evaluate the equation for the - * cylinder gradient. - * @param {Vector3} xyz The point coordinate. - */ - evaluateGradient(xyz: Vector3): number[]; - - /** - * Get the angle of the cone. - */ - getAngle(): number; - - /** - * Get the axis of the cylinder. - */ - getAxis(): number[]; - - /** - * Get the axis of the cylinder. - */ - getAxisByReference(): number[]; - - /** - * Get the center of the cylinder. - */ - getCenter(): number[]; - - /** - * Get the center of the cylinder. - */ - getCenterByReference(): number[]; - - /** - * Get the radius of the cylinder. - */ - getRadius(): number; - - /** - * Set the value representing the angle of the cone. - * @param {Number} angle The angle of the cone. - */ - setAngle(angle: number): boolean; - - /** - * Set the axis of the cylinder. - * @param {Number[]} axis The axis coordinate. - */ - setAxis(axis: number[]): boolean; - - /** - * Set the axis of the cylinder. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setAxis(x: number, y: number, z: number): boolean; - - /** - * Set the axis of the cylinder. - * @param {Number[]} axis The axis coordinate. - */ - setAxisFrom(axis: number[]): boolean; - - /** - * Set the center of the cylinder. - * @param {Number[]} center The center coordinate. - */ - setCenter(center: number[]): boolean; - - /** - * Set the center of the cylinder. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setCenter(x: number, y: number, z: number): boolean; - - /** - * Set the center of the cylinder. - * @param {Number[]} center The center coordinate. - */ - setCenterFrom(center: number[]): boolean; - - /** - * Set the radius of the cylinder. - * @param {Number} radius The radius of the cylinder. - */ - setRadius(radius: number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkCylinder characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ICylinderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ICylinderInitialValues -): void; - -/** - * Method used to create a new instance of vtkCylinder. - * @param {ICylinderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ICylinderInitialValues -): vtkCylinder; - -/** - * Evaluate of the cylinder equation without setting the data members center and - * radius. - * @param {Number} radius - * @param {Number} center - * @param {Number[]} axis - * @param {Number[]} x - */ -export function evaluate( - radius: number, - center: number[], - axis: number[], - x: number[] -): number; - -/** - * vtkCylinder computes the implicit function and/or gradient for a cylinder. - * vtkCylinder is a concrete implementation of vtkImplicitFunction. - */ -export declare const vtkCylinder: { - newInstance: typeof newInstance; - extend: typeof extend; - evaluate: typeof evaluate; -}; -export default vtkCylinder; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Cylinder.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Cylinder.js deleted file mode 100644 index 93d4f122..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Cylinder.js +++ /dev/null @@ -1,82 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { d as dot } from '../Core/Math/index.js'; -import vtkImplicitFunction from './ImplicitFunction.js'; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -function evaluate(radius, center, axis, x) { - const x2C = new Float32Array(3); - x2C[0] = x[0] - center[0]; - x2C[1] = x[1] - center[1]; - x2C[2] = x[2] - center[2]; - const proj = dot(axis, x2C); - const retVal = dot(x2C, x2C) - proj * proj - radius * radius; - return retVal; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = { - evaluate -}; - -// ---------------------------------------------------------------------------- -// vtkCylinder methods -// ---------------------------------------------------------------------------- - -function vtkCylinder(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCylinder'); - publicAPI.evaluateFunction = xyz => { - const x2C = [xyz[0] - model.center[0], xyz[1] - model.center[1], xyz[2] - model.center[2]]; - const proj = dot(model.axis, x2C); - const retVal = dot(x2C, x2C) - proj * proj - model.radius * model.radius; - return retVal; - }; - publicAPI.evaluateGradient = xyz => { - const t = model.axis[0] * (xyz[0] - model.center[0]) + model.axis[1] * (xyz[1] - model.center[1]) + model.axis[2] * (xyz[2] - model.center[2]); - const cp = [model.center[0] + t * model.axis[0], model.center[1] + t * model.axis[1], model.center[2] + t * model.axis[2]]; - const retVal = [2.0 * (xyz[0] - cp[0]), 2.0 * (xyz[1] - cp[1]), 2.0 * (xyz[2] - cp[2])]; - return retVal; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- -const DEFAULT_VALUES = { - radius: 0.5, - center: [0.0, 0.0, 0.0], - axis: [0.0, 1.0, 0.0] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - vtkImplicitFunction.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['radius']); - macro.setGetArray(publicAPI, model, ['center', 'axis'], 3); - vtkCylinder(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCylinder'); - -// ---------------------------------------------------------------------------- - -var vtkCylinder$1 = { - newInstance, - extend, - ...STATIC -}; - -export { STATIC, vtkCylinder$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSet.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSet.d.ts deleted file mode 100644 index d1aeee8a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSet.d.ts +++ /dev/null @@ -1,93 +0,0 @@ -import vtkDataSetAttributes from './DataSetAttributes'; -import { vtkObject } from './../../interfaces'; -import { FieldAssociations, FieldDataTypes } from './DataSet/Constants'; - -/** - * - */ -export interface IDataSetInitialValues {} - -export interface vtkDataSet extends vtkObject { - /** - * Initialize the field, cell and point data. - * @see vtkDataSetAttributes::initialize() - * @see vtkFieldData::initialize() - */ - initialize(): void; - - /** - * Get dataset's cell data - */ - getCellData(): vtkDataSetAttributes; - - /** - * Get dataset's field data - */ - getFieldData(): vtkDataSetAttributes; - - /** - * Get dataset's point data. - */ - getPointData(): vtkDataSetAttributes; - - /** - * Set dataset's cell data - * @param {vtkDataSetAttributes} cellData - */ - setCellData(cellData: vtkDataSetAttributes): boolean; - - /** - * Set dataset's field data - * @param {vtkDataSetAttributes} fieldData - */ - setFieldData(fieldData: vtkDataSetAttributes): boolean; - - /** - * Set dataset's point data. - * @param {vtkDataSetAttributes} pointData - */ - setPointData(pointData: vtkDataSetAttributes): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkDataSet characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IDataSetInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IDataSetInitialValues -): void; - -/** - * Method used to create a new instance of vtkDataSet. - * @param {IDataSetInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: IDataSetInitialValues): vtkDataSet; - -/** - * vtkDataSet is an abstract class that specifies an interface for dataset - * objects. vtkDataSet also provides methods to provide information about - * the data, such as center, bounding box, and representative length. - * - * In vtk a dataset consists of a structure (geometry and topology) and - * attribute data. The structure is defined implicitly or explicitly as - * a collection of cells. The geometry of the structure is contained in - * point coordinates plus the cell interpolation functions. The topology - * of the dataset structure is defined by cell types and how the cells - * share their defining points. - * - * Attribute data in vtk is either point data (data at points) or cell data - * (data at cells). Typically filters operate on point data, but some may - * operate on cell data, both cell and point data, either one, or none. - */ -export declare const vtkDataSet: { - newInstance: typeof newInstance; - extend: typeof extend; - FieldAssociation: typeof FieldAssociations; - FieldDataTypes: typeof FieldDataTypes; -}; -export default vtkDataSet; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSet.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSet.js deleted file mode 100644 index cdfa38d2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSet.js +++ /dev/null @@ -1,137 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtk from '../../vtk.js'; -import vtkBoundingBox from './BoundingBox.js'; -import vtkDataSetAttributes from './DataSetAttributes.js'; -import { b as vtkMath } from '../Core/Math/index.js'; -import Constants from './DataSet/Constants.js'; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -const DATASET_FIELDS = ['pointData', 'cellData', 'fieldData']; - -// ---------------------------------------------------------------------------- -// vtkDataSet methods -// ---------------------------------------------------------------------------- - -function vtkDataSet(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkDataSet'); - - // Add dataset attributes - DATASET_FIELDS.forEach(fieldName => { - if (!model[fieldName]) { - model[fieldName] = vtkDataSetAttributes.newInstance(); - } else { - model[fieldName] = vtk(model[fieldName]); - } - }); - - //------------------------------------------------------------------------------ - // Compute the data bounding box from data points. - publicAPI.computeBounds = () => { - if (model.modifiedTime && model.computeTime && model.modifiedTime > model.computeTime || !model.computeTime) { - const points = publicAPI.getPoints(); - if (points?.getNumberOfPoints()) { - // Compute bounds from points - vtkBoundingBox.setBounds(model.bounds, points.getBoundsByReference()); - } else { - model.bounds = vtkMath.createUninitializedBounds(); - } - // Update computeTime - model.computeTime = macro.getCurrentGlobalMTime(); - } - }; - - /** - * Returns the squared length of the diagonal of the bounding box - */ - publicAPI.getLength2 = () => { - const bounds = publicAPI.getBoundsByReference(); - if (!bounds || bounds.length !== 6) return 0; - return vtkBoundingBox.getDiagonalLength2(bounds); - }; - - /** - * Returns the length of the diagonal of the bounding box - */ - publicAPI.getLength = () => Math.sqrt(publicAPI.getLength2()); - - /** - * Returns the center of the bounding box as [x, y, z] - */ - publicAPI.getCenter = () => { - const bounds = publicAPI.getBoundsByReference(); - if (!bounds || bounds.length !== 6) return [0, 0, 0]; - return vtkBoundingBox.getCenter(bounds); - }; - - /** - * Get the bounding box of a cell with the given cellId - * @param {Number} cellId - The id of the cell - * @returns {Number[]} - The bounds as [xmin, xmax, ymin, ymax, zmin, zmax] - */ - publicAPI.getCellBounds = cellId => { - const cell = publicAPI.getCell(cellId); - if (cell) { - return cell.getBounds(); - } - return vtkMath.createUninitializedBounds(); - }; - publicAPI.getBounds = macro.chain(() => publicAPI.computeBounds, publicAPI.getBounds); - publicAPI.getBoundsByReference = macro.chain(() => publicAPI.computeBounds, publicAPI.getBoundsByReference); - const superShallowCopy = publicAPI.shallowCopy; - publicAPI.shallowCopy = function (other) { - let debug = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - superShallowCopy(other, debug); - DATASET_FIELDS.forEach(fieldName => { - model[fieldName] = vtkDataSetAttributes.newInstance(); - model[fieldName].shallowCopy(other.getReferenceByName(fieldName)); - }); - }; - const superGetMTime = publicAPI.getMTime; - publicAPI.getMTime = () => DATASET_FIELDS.reduce((mTime, fieldName) => Math.max(mTime, model[fieldName]?.getMTime() ?? mTime), superGetMTime()); - publicAPI.initialize = () => { - DATASET_FIELDS.forEach(fieldName => model[fieldName]?.initialize()); - return publicAPI; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // pointData: null, - // cellData: null, - // fieldData: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, DATASET_FIELDS); - macro.getArray(publicAPI, model, ['bounds'], 6); - // Object specific methods - vtkDataSet(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkDataSet'); - -// ---------------------------------------------------------------------------- - -var vtkDataSet$1 = { - newInstance, - extend, - ...Constants -}; - -export { vtkDataSet$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSet/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSet/Constants.d.ts deleted file mode 100644 index 16921ce7..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSet/Constants.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -export declare enum FieldAssociations { - FIELD_ASSOCIATION_POINTS = 0, - FIELD_ASSOCIATION_CELLS = 1, - FIELD_ASSOCIATION_NONE = 2, - FIELD_ASSOCIATION_POINTS_THEN_CELLS = 3, - FIELD_ASSOCIATION_VERTICES = 4, - FIELD_ASSOCIATION_EDGES = 5, - FIELD_ASSOCIATION_ROWS = 6, - NUMBER_OF_ASSOCIATIONS = 7, -} - -export declare enum FieldDataTypes { - UNIFORM = 0, - DATA_OBJECT_FIELD = 0, - COORDINATE = 1, - POINT_DATA = 1, - POINT = 2, - POINT_FIELD_DATA = 2, - CELL = 3, - CELL_FIELD_DATA = 3, - VERTEX = 4, - VERTEX_FIELD_DATA = 4, - EDGE = 5, - EDGE_FIELD_DATA = 5, - ROW = 6, - ROW_DATA = 6, -} diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSet/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSet/Constants.js deleted file mode 100644 index 3abe7ae3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSet/Constants.js +++ /dev/null @@ -1,53 +0,0 @@ -// Specify how data arrays can be used by data objects -const FieldDataTypes = { - UNIFORM: 0, - // data that does not vary over points/cells/etc. - DATA_OBJECT_FIELD: 0, - // to match VTK - - COORDINATE: 1, - // data that specifies the location of each point - POINT_DATA: 1, - // to match VTK - - POINT: 2, - // data defined at each point, but that does not specify the point location - POINT_FIELD_DATA: 2, - // to match VTK - - CELL: 3, - // data defined at each cell, but that does not specify the cell - CELL_FIELD_DATA: 3, - // to match VTK - - VERTEX: 4, - // data defined at each graph vertex, but that does not specify the graph vertex - VERTEX_FIELD_DATA: 4, - // to match VTK - - EDGE: 5, - // data defined at each graph edge, but that does not specify the graph edge - EDGE_FIELD_DATA: 5, - // to match VTK - - ROW: 6, - // data specifying a table row - ROW_DATA: 6 // to match VTK -}; - -const FieldAssociations = { - FIELD_ASSOCIATION_POINTS: 0, - FIELD_ASSOCIATION_CELLS: 1, - FIELD_ASSOCIATION_NONE: 2, - FIELD_ASSOCIATION_POINTS_THEN_CELLS: 3, - FIELD_ASSOCIATION_VERTICES: 4, - FIELD_ASSOCIATION_EDGES: 5, - FIELD_ASSOCIATION_ROWS: 6, - NUMBER_OF_ASSOCIATIONS: 7 -}; -var Constants = { - FieldDataTypes, - FieldAssociations -}; - -export { FieldAssociations, FieldDataTypes, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSetAttributes.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSetAttributes.d.ts deleted file mode 100644 index 919bee15..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSetAttributes.d.ts +++ /dev/null @@ -1,493 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { IFieldDataInitialValues, vtkFieldData } from './DataSetAttributes/FieldData'; -import vtkDataArray from './../Core/DataArray'; - -export enum AttributeTypes { - SCALARS, - VECTORS, - NORMALS, - TCOORDS, - TENSORS, - GLOBALIDS, - PEDIGREEIDS, - EDGEFLAG, - NUM_ATTRIBUTES, -} - -export enum AttributeLimitTypes { - MAX, - EXACT, - NOLIMIT, -} - -export enum CellGhostTypes { - /** - * The cell is present on multiple processors - */ - DUPLICATECELL, - /** - * The cell has more neighbors than in a regular mesh - */ - HIGHCONNECTIVITYCELL, - /** - * The cell has less neighbors than in a regular mesh - */ - LOWCONNECTIVITYCELL, - /** - * Tther cells are present that refines it. - */ - REFINEDCELL, - /** - * The cell is on the exterior of the data set - */ - EXTERIORCELL, - /** - * The cell is needed to maintain connectivity, but the data values should be ignored. - */ - HIDDENCELL, -} - -export enum PointGhostTypes { - /** - * The cell is present on multiple processors - */ - DUPLICATEPOINT, - /** - * The point is needed to maintain connectivity, but the data values should be ignored. - */ - HIDDENPOINT, -} - -export enum AttributeCopyOperations { - COPYTUPLE, - INTERPOLATE, - PASSDATA, - /** - * All of the above - */ - ALLCOPY, -} - -export const ghostArrayName: string; - -export enum DesiredOutputPrecision { - /** - * Use the point type that does not truncate any data - */ - DEFAULT, - /** - * Use Float32Array - */ - SINGLE, - /** - * Use Float64Array - */ - DOUBLE, -} - -/** - * - */ -export interface IDataSetAttributesInitialValues - extends IFieldDataInitialValues { - activeScalars?: number; - activeVectors?: number; - activeTensors?: number; - activeNormals?: number; - activeTCoords?: number; - activeGlobalIds?: number; - activePedigreeIds?: number; -} - -export interface vtkDataSetAttributes extends vtkFieldData { - /** - * @todo No yet Implemented - * @param x - */ - checkNumberOfComponents(x: any): boolean; - - /** - * - * @param {string} attType - */ - getActiveAttribute(attType: string): any; - - /** - * Get a list of attribute names that the given array - * is for this vtkDataSetAttributes. - * @param {vtkDataArray} arr - * @returns {String[]} - */ - getAttributes(arr: vtkDataArray): string[]; - - /** - * - */ - getActiveScalars(): number; - - /** - * - */ - getActiveVectors(): number; - - /** - * - */ - getActiveTensors(): number; - - /** - * - */ - getActiveNormals(): number; - - /** - * - */ - getActiveTCoords(): number; - - /** - * - */ - getActiveGlobalIds(): number; - - /** - * - */ - getActivePedigreeIds(): number; - - /** - * Get the scalar data. - */ - getScalars(): vtkDataArray; - - /** - * Get the vectors data. - */ - getVectors(): vtkDataArray; - - /** - * Get the normal data. - */ - getNormals(): vtkDataArray; - - /** - * Get the texture coordinate data. - */ - getTCoords(): vtkDataArray; - - /** - * Get the tensors data. - */ - getTensors(): vtkDataArray; - - /** - * Get the global id data. - */ - getGlobalIds(): vtkDataArray; - - /** - * Get the pedigree id data. - */ - getPedigreeIds(): vtkDataArray; - - /** - * - * @param arr - * @param uncleanAttType - */ - setAttribute(arr: any, uncleanAttType: string): number; - - /** - * - * @param {string} arrayName - * @param attType - */ - setActiveAttributeByName(arrayName: string, attType: any): number; - - /** - * - * @param {Number} arrayIdx - * @param uncleanAttType - */ - setActiveAttributeByIndex(arrayIdx: number, uncleanAttType: string): number; - - /** - * Override to allow proper handling of active attributes - */ - removeAllArrays(): void; - - /** - * Override to allow proper handling of active attributes - * @param {string} arrayName The name of the array. - */ - removeArray(arrayName: string): void; - - /** - * Override to allow proper handling of active attributes - * @param {Number} arrayIdx The index of the array. - */ - removeArrayByIndex(arrayIdx: number): void; - - /** - * Called when initialize() is called. - * @see initialize - */ - initializeAttributeCopyFlags(): void; - - /** - * - * @param {Number} activeScalars - */ - setActiveScalars(activeScalars: number): boolean; - - /** - * - * @param {Number} activeVectors - */ - setActiveVectors(activeVectors: number): boolean; - - /** - * - * @param {Number} activeTensors - */ - setActiveTensors(activeTensors: number): boolean; - - /** - * - * @param {Number} activeNormals - */ - setActiveNormals(activeNormals: number): boolean; - - /** - * - * @param {Number} activeTCoords - */ - setActiveTCoords(activeTCoords: number): boolean; - - /** - * - * @param {Number} activeGlobalIds - */ - setActiveGlobalIds(activeGlobalIds: number): boolean; - - /** - * - * @param {Number} activePedigreeIds - */ - setActivePedigreeIds(activePedigreeIds: number): boolean; - - /** - * Try to copy the state of the other to ourselves by just using references. - * - * @param other instance to copy the reference from - * @param debug (default: false) if true feedback will be provided when mismatch happen - * @override - */ - shallowCopy(other: vtkObject, debug?: boolean): void; - - /** - * - * @param {string} arrayName The name of the array to activate. - */ - setActiveScalars(arrayName: string): boolean; - - /** - * - * @param {string} arrayName The name of the array to activate. - */ - setActiveVectors(arrayName: string): boolean; - - /** - * - * @param {string} arrayName The name of the array to activate. - */ - setActiveNormals(arrayName: string): boolean; - - /** - * - * @param {string} arrayName The name of the array to activate. - */ - setActiveTCoords(arrayName: string): boolean; - - /** - * - * @param {string} arrayName The name of the array to activate. - */ - setActiveTensors(arrayName: string): boolean; - - /** - * - * @param {string} arrayName The name of the array to activate. - */ - setActiveGlobalIds(arrayName: string): boolean; - - /** - * - * @param {string} arrayName The name of the array to activate. - */ - setActivePedigreeIds(arrayName: string): boolean; - - /** - * Set the scalar data. - * @param {vtkDataArray} scalars The scalar data. - */ - setScalars(scalars: vtkDataArray): boolean; - - /** - * Set the vector data. - * @param {vtkDataArray} vectors The vector data. - */ - setVectors(vectors: vtkDataArray): boolean; - - /** - * Set the normal data. - * @param {vtkDataArray} normals The normal data. - */ - setNormals(normals: vtkDataArray): boolean; - - /** - * Set the texture coordinate data. - * @param {vtkDataArray} tcoords The texture coordinate data. - */ - setTCoords(tcoords: vtkDataArray): boolean; - - /** - * Set the tensor data. - * @param {vtkDataArray} tensors The tensor data. - */ - setTensors(tensors: vtkDataArray): boolean; - - /** - * Set the global id data. - * @param {vtkDataArray} globalIds The global id data. - */ - setGlobalIds(globalIds: vtkDataArray): boolean; - - /** - * Set the pedigree id data. - * @param {vtkDataArray} pedigreeids The pedigree id data. - */ - setPedigreeIds(pedigreeIds: vtkDataArray): boolean; - - /** - * - */ - copyScalarsOn(): void; - - /** - * - */ - copyVectorsOn(): void; - - /** - * - */ - copyNormalsOn(): void; - - /** - * - */ - copyTCoordsOn(): void; - - /** - * - */ - copyTensorsOn(): void; - - /** - * - */ - copyGlobalIdsOn(): void; - - /** - * - */ - copyPedigreeIdsOn(): void; - - /** - * - */ - copyScalarsOff(): void; - - /** - * - */ - copyVectorsOff(): void; - - /** - * - */ - copyNormalsOff(): void; - - /** - * - */ - copyTCoordsOff(): void; - - /** - * - */ - copyTensorsOff(): void; - - /** - * - */ - copyGlobalIdsOff(): void; - - /** - * - */ - copyPedigreeIdsOff(): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkDataSetAttributes characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IDataSetAttributesInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IDataSetAttributesInitialValues -): void; - -/** - * Method used to create a new instance of vtkDataSetAttributes. - * @param {IDataSetAttributesInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IDataSetAttributesInitialValues -): vtkDataSetAttributes; - -/** - * vtkDataSetAttributes is a class that is used to represent and manipulate - * attribute data (e.g., scalars, vectors, normals, texture coordinates, - * tensors, global ids, pedigree ids, and field data). - * - * This adds to vtkFieldData the ability to pick one of the arrays from the - * field as the currently active array for each attribute type. In other words, - * you pick one array to be called "THE" Scalars, and then filters down the - * pipeline will treat that array specially. For example vtkContourFilter will - * contour "THE" Scalar array unless a different array is asked for. - * - * Additionally vtkDataSetAttributes provides methods that filters call to pass - * data through, copy data into, and interpolate from Fields. PassData passes - * entire arrays from the source to the destination. Copy passes through some - * subset of the tuples from the source to the destination. Interpolate - * interpolates from the chosen tuple(s) in the source data, using the provided - * weights, to produce new tuples in the destination. Each attribute type has - * pass, copy and interpolate "copy" flags that can be set in the destination to - * choose which attribute arrays will be transferred from the source to the - * destination. - * - * Finally this class provides a mechanism to determine which attributes a group - * of sources have in common, and to copy tuples from a source into the - * destination, for only those attributes that are held by all. - */ -export declare const vtkDataSetAttributes: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkDataSetAttributes; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSetAttributes.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSetAttributes.js deleted file mode 100644 index 6ac8376c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSetAttributes.js +++ /dev/null @@ -1,214 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkFieldData from './DataSetAttributes/FieldData.js'; -import Constants from './DataSetAttributes/Constants.js'; -import vtkDataArray from '../Core/DataArray.js'; - -const { - AttributeTypes, - AttributeCopyOperations -} = Constants; -const { - vtkWarningMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkDataSetAttributes methods -// ---------------------------------------------------------------------------- - -function vtkDataSetAttributes(publicAPI, model) { - const attrTypes = ['Scalars', 'Vectors', 'Normals', 'TCoords', 'Tensors', 'GlobalIds', 'PedigreeIds']; - function cleanAttributeType(attType) { - // Given an integer or string, convert the result to one of the - // strings in the "attrTypes" array above or null (if - // no match is found) - let cleanAttType = attrTypes.find(ee => AttributeTypes[ee.toUpperCase()] === attType || typeof attType !== 'number' && ee.toLowerCase() === attType.toLowerCase()); - if (typeof cleanAttType === 'undefined') { - cleanAttType = null; - } - return cleanAttType; - } - - // Set our className - model.classHierarchy.push('vtkDataSetAttributes'); - const superClass = { - ...publicAPI - }; - publicAPI.checkNumberOfComponents = x => true; // TODO - - publicAPI.setAttribute = (arr, uncleanAttType) => { - const attType = cleanAttributeType(uncleanAttType); - if (arr && attType.toUpperCase() === 'PEDIGREEIDS' && !arr.isA('vtkDataArray')) { - vtkWarningMacro(`Cannot set attribute ${attType}. The attribute must be a vtkDataArray.`); - return -1; - } - if (arr && !publicAPI.checkNumberOfComponents(arr, attType)) { - vtkWarningMacro(`Cannot set attribute ${attType}. Incorrect number of components.`); - return -1; - } - let currentAttribute = model[`active${attType}`]; - if (currentAttribute >= 0 && currentAttribute < model.arrays.length) { - if (model.arrays[currentAttribute] === arr) { - return currentAttribute; - } - // FIXME setting an array actually changes its index - publicAPI.removeArrayByIndex(currentAttribute); - } - if (arr) { - currentAttribute = publicAPI.addArray(arr); - model[`active${attType}`] = currentAttribute; - } else { - model[`active${attType}`] = -1; - } - publicAPI.modified(); - return model[`active${attType}`]; - }; - publicAPI.getAttributes = arr => attrTypes.filter(attrType => publicAPI[`get${attrType}`]() === arr); - publicAPI.setActiveAttributeByName = (arrayName, attType) => publicAPI.setActiveAttributeByIndex(publicAPI.getArrayWithIndex(arrayName).index, attType); - publicAPI.setActiveAttributeByIndex = (arrayIdx, uncleanAttType) => { - const attType = cleanAttributeType(uncleanAttType); - if (arrayIdx >= 0 && arrayIdx < model.arrays.length) { - if (attType.toUpperCase() !== 'PEDIGREEIDS') { - const arr = publicAPI.getArrayByIndex(arrayIdx); - if (!arr.isA('vtkDataArray')) { - vtkWarningMacro(`Cannot set attribute ${attType}. Only vtkDataArray subclasses can be set as active attributes.`); - return -1; - } - if (!publicAPI.checkNumberOfComponents(arr, attType)) { - vtkWarningMacro(`Cannot set attribute ${attType}. Incorrect number of components.`); - return -1; - } - } - model[`active${attType}`] = arrayIdx; - publicAPI.modified(); - return arrayIdx; - } - if (arrayIdx === -1) { - model[`active${attType}`] = arrayIdx; - publicAPI.modified(); - } - return -1; - }; - publicAPI.getActiveAttribute = attType => { - // Given an integer enum value or a string (with random capitalization), - // find the matching string in attrTypes. - const cleanAttType = cleanAttributeType(attType); - return publicAPI[`get${cleanAttType}`](); - }; - - // Override to allow proper handling of active attributes - publicAPI.removeAllArrays = () => { - attrTypes.forEach(attType => { - model[`active${attType}`] = -1; - }); - superClass.removeAllArrays(); - }; - - // Override to allow proper handling of active attributes - publicAPI.removeArrayByIndex = arrayIdx => { - if (arrayIdx !== -1) { - attrTypes.forEach(attType => { - if (arrayIdx === model[`active${attType}`]) { - model[`active${attType}`] = -1; - } else if (arrayIdx < model[`active${attType}`]) { - model[`active${attType}`] -= 1; - } - }); - } - return superClass.removeArrayByIndex(arrayIdx); - }; - attrTypes.forEach(value => { - const activeVal = `active${value}`; - publicAPI[`get${value}`] = () => publicAPI.getArrayByIndex(model[activeVal]); - publicAPI[`set${value}`] = da => publicAPI.setAttribute(da, value); - publicAPI[`setActive${value}`] = arrayName => publicAPI.setActiveAttributeByIndex(publicAPI.getArrayWithIndex(arrayName).index, value); - publicAPI[`copy${value}Off`] = () => { - const attType = value.toUpperCase(); - model.copyAttributeFlags[AttributeCopyOperations.PASSDATA][AttributeTypes[attType]] = false; - }; - publicAPI[`copy${value}On`] = () => { - const attType = value.toUpperCase(); - model.copyAttributeFlags[AttributeCopyOperations.PASSDATA][AttributeTypes[attType]] = true; - }; - }); - publicAPI.initializeAttributeCopyFlags = () => { - // Default to copying all attributes in every circumstance: - model.copyAttributeFlags = []; - Object.keys(AttributeCopyOperations).filter(op => op !== 'ALLCOPY').forEach(attCopyOp => { - model.copyAttributeFlags[AttributeCopyOperations[attCopyOp]] = Object.keys(AttributeTypes).filter(ty => ty !== 'NUM_ATTRIBUTES').reduce((a, b) => { - a[AttributeTypes[b]] = true; - return a; - }, []); - }); - // Override some operations where we don't want to copy: - model.copyAttributeFlags[AttributeCopyOperations.COPYTUPLE][AttributeTypes.GLOBALIDS] = false; - model.copyAttributeFlags[AttributeCopyOperations.INTERPOLATE][AttributeTypes.GLOBALIDS] = false; - model.copyAttributeFlags[AttributeCopyOperations.COPYTUPLE][AttributeTypes.PEDIGREEIDS] = false; - }; - publicAPI.initialize = macro.chain(publicAPI.initialize, publicAPI.initializeAttributeCopyFlags); - - // Process dataArrays if any - if (model.dataArrays && Object.keys(model.dataArrays).length) { - Object.keys(model.dataArrays).forEach(name => { - if (!model.dataArrays[name].ref && model.dataArrays[name].type === 'vtkDataArray') { - publicAPI.addArray(vtkDataArray.newInstance(model.dataArrays[name])); - } - }); - } - const superShallowCopy = publicAPI.shallowCopy; - publicAPI.shallowCopy = (other, debug) => { - superShallowCopy(other, debug); - model.arrays = other.getArrays().map(arr => { - const arrNew = arr.newClone(); - arrNew.shallowCopy(arr, debug); - return { - data: arrNew - }; - }); - }; - publicAPI.initializeAttributeCopyFlags(); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - activeScalars: -1, - activeVectors: -1, - activeTensors: -1, - activeNormals: -1, - activeTCoords: -1, - activeGlobalIds: -1, - activePedigreeIds: -1 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - vtkFieldData.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['activeScalars', 'activeNormals', 'activeTCoords', 'activeVectors', 'activeTensors', 'activeGlobalIds', 'activePedigreeIds']); - if (!model.arrays) { - model.arrays = {}; - } - - // Object specific methods - vtkDataSetAttributes(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkDataSetAttributes'); - -// ---------------------------------------------------------------------------- - -var vtkDataSetAttributes$1 = { - newInstance, - extend, - ...Constants -}; - -export { vtkDataSetAttributes$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSetAttributes/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSetAttributes/Constants.js deleted file mode 100644 index 676d52ba..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSetAttributes/Constants.js +++ /dev/null @@ -1,63 +0,0 @@ -const AttributeTypes = { - SCALARS: 0, - VECTORS: 1, - NORMALS: 2, - TCOORDS: 3, - TENSORS: 4, - GLOBALIDS: 5, - PEDIGREEIDS: 6, - EDGEFLAG: 7, - NUM_ATTRIBUTES: 8 -}; -const AttributeLimitTypes = { - MAX: 0, - EXACT: 1, - NOLIMIT: 2 -}; -const CellGhostTypes = { - DUPLICATECELL: 1, - // the cell is present on multiple processors - HIGHCONNECTIVITYCELL: 2, - // the cell has more neighbors than in a regular mesh - LOWCONNECTIVITYCELL: 4, - // the cell has less neighbors than in a regular mesh - REFINEDCELL: 8, - // other cells are present that refines it. - EXTERIORCELL: 16, - // the cell is on the exterior of the data set - HIDDENCELL: 32 // the cell is needed to maintain connectivity, but the data values should be ignored. -}; - -const PointGhostTypes = { - DUPLICATEPOINT: 1, - // the cell is present on multiple processors - HIDDENPOINT: 2 // the point is needed to maintain connectivity, but the data values should be ignored. -}; - -const AttributeCopyOperations = { - COPYTUPLE: 0, - INTERPOLATE: 1, - PASSDATA: 2, - ALLCOPY: 3 // all of the above -}; - -const ghostArrayName = 'vtkGhostType'; -const DesiredOutputPrecision = { - DEFAULT: 0, - // use the point type that does not truncate any data - SINGLE: 1, - // use Float32Array - DOUBLE: 2 // use Float64Array -}; - -var Constants = { - AttributeCopyOperations, - AttributeLimitTypes, - AttributeTypes, - CellGhostTypes, - DesiredOutputPrecision, - PointGhostTypes, - ghostArrayName -}; - -export { AttributeCopyOperations, AttributeLimitTypes, AttributeTypes, CellGhostTypes, DesiredOutputPrecision, PointGhostTypes, Constants as default, ghostArrayName }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSetAttributes/FieldData.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSetAttributes/FieldData.d.ts deleted file mode 100644 index c197848f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSetAttributes/FieldData.d.ts +++ /dev/null @@ -1,255 +0,0 @@ -import { vtkObject } from '../../../interfaces'; -import { Nullable } from '../../../types'; -import type vtkDataArray from '../../Core/DataArray'; - -/** - * - */ -export interface IFieldDataInitialValues { - arrays?: vtkDataArray[]; - copyFieldFlags?: Array; - doCopyAllOn?: boolean; - doCopyAllOff?: boolean; -} - -/** - * - */ -interface IArrayWithIndex { - array: vtkDataArray; - index: number; -} - -export interface vtkFieldData extends vtkObject { - /** - * Initialize fields, clear flags and restore copy beahvior. - * @see initializeFields - * @see clearFieldFlags - * @see copyAllOn - */ - initialize(): void; - - /** - * Delete all arrays and clear flags. - * @see initialize - */ - initializeFields(): void; - - /** - * - * @param {vtkFieldData} other - */ - copyStructure(other: vtkFieldData): void; - - /** - * Get the number of arrays. - */ - getNumberOfArrays(): number; - - /** - * Get the number of active arrays. - */ - getNumberOfActiveArrays(): number; - - /** - * Add a new array. - * If an array with the same name already exists, it is replaced instead. - * @param {vtkDataArray} arr - */ - addArray(arr: vtkDataArray): number; - - /** - * Remove all the arrays. - */ - removeAllArrays(): void; - - /** - * Remove an array. - * @param {String} arrayName The name of the array. - */ - removeArray(arrayName: string): void; - - /** - * Remove an array by its index. - * @param {Number} arrayIdx The index of the array to remove. - */ - removeArrayByIndex(arrayIdx: number): void; - - /** - * Get all arrays. - */ - getArrays(): vtkDataArray[]; - - /** - * - * @param {number | string} arraySpec index or name of the array - */ - getArray(arraySpec: number | string): Nullable; - - /** - * Get an array by its name. - * @param {String} arrayName The name of the array. - */ - getArrayByName(arrayName: string): Nullable; - - /** - * - * @param {String} arrayName The name of the array. - */ - getArrayWithIndex(arrayName: string): IArrayWithIndex; - - /** - * Get an array by its index. - * @param {Number} idx The index of the array. - */ - getArrayByIndex(idx: number): Nullable; - - /** - * Return true if there exists an array with the given arraName. False otherwise. - * @param {String} arrayName The name of the array. - */ - hasArray(arrayName: string): boolean; - - /** - * Get the name of an array at the given index. - * @param {Number} idx The index of the array. - */ - getArrayName(idx: number): string; - - /** - * - */ - getCopyFieldFlags(): object; - - /** - * Get the flag of the array that has the given name. - * @param {String} arrayName The name of the array. - */ - getFlag(arrayName: string): boolean; - - /** - * Pass data from one fieldData to another at the given index. - * @param {vtkFieldData} other - * @param {Number} [fromId] (default: -1) - * @param {Number} [toId] (default: -1) - */ - passData(other: vtkFieldData, fromId?: number, toId?: number): void; - - /** - * Works like passData, but interpolates the values between the two given fromIds. - * @param {vtkFieldData} other - * @param {Number} [fromId1] (default: -1) - * @param {Number} [fromId2] (default: -1) - * @param {Number} [toId] (default: -1) - * @param {Number} [t] (default: 0.5) - */ - interpolateData( - other: vtkFieldData, - fromId1?: number, - fromId2?: number, - toId?: number, - t?: number - ): void; - - /** - * - * @param {String} arrayName The name of the array. - */ - copyFieldOn(arrayName: string): void; - - /** - * - * @param {String} arrayName The name of the array. - */ - copyFieldOff(arrayName: string): void; - - /** - * - */ - copyAllOn(): void; - - /** - * - */ - copyAllOff(): void; - - /** - * - */ - clearFieldFlags(): void; - - /** - * - * @param {vtkFieldData} other - */ - deepCopy(other: vtkFieldData): void; - - /** - * - * @param {vtkFieldData} other - */ - copyFlags(other: vtkFieldData): void; - - /** - * TODO: publicAPI.squeeze = () => model.arrays.forEach(entry => entry.data.squeeze()); - */ - reset(): void; - - /** - * Return the `Modified Time` which is a monotonic increasing integer - * global for all vtkObjects. - * - * This allow to solve a question such as: - * - Is that object created/modified after another one? - * - Do I need to re-execute this filter, or not? ... - * - * @return {Number} the global modified time. - */ - getMTime(): number; - - /** - * TODO: publicAPI.getField = (ids, other) => { copy ids from other into this model's arrays } - * TODO: publicAPI.getArrayContainingComponent = (component) => ... - */ - getNumberOfComponents(): number; - - /** - * - */ - getNumberOfTuples(): number; - - /** - * - */ - getState(): object; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkFieldData characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IFieldDataInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IFieldDataInitialValues -): void; - -/** - * Method used to create a new instance of vtkFieldData. - * @param {IFieldDataInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IFieldDataInitialValues -): vtkFieldData; - -/** - * - */ -export declare const vtkFieldData: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkFieldData; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSetAttributes/FieldData.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSetAttributes/FieldData.js deleted file mode 100644 index 570ef7e8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/DataSetAttributes/FieldData.js +++ /dev/null @@ -1,273 +0,0 @@ -import vtk from '../../../vtk.js'; -import { m as macro } from '../../../macros2.js'; -import vtkDataArray from '../../Core/DataArray.js'; - -const { - vtkErrorMacro, - vtkWarningMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkFieldData methods -// ---------------------------------------------------------------------------- - -function vtkFieldData(publicAPI, model) { - model.classHierarchy.push('vtkFieldData'); - const superGetState = publicAPI.getState; - - // Decode serialized data if any - if (model.arrays) { - model.arrays = model.arrays.map(item => ({ - data: vtk(item.data) - })); - } - publicAPI.initialize = () => { - publicAPI.initializeFields(); - publicAPI.copyAllOn(); - publicAPI.clearFieldFlags(); - }; - publicAPI.initializeFields = () => { - model.arrays = []; - model.copyFieldFlags = {}; - publicAPI.modified(); - }; - publicAPI.copyStructure = other => { - publicAPI.initializeFields(); - model.copyFieldFlags = other.getCopyFieldFlags().map(x => x); // Deep-copy - model.arrays = other.getArrays().map(x => ({ - data: x - })); // Deep-copy - // TODO: Copy array information objects (once we support information objects) - }; - - publicAPI.getNumberOfArrays = () => model.arrays.length; - publicAPI.getNumberOfActiveArrays = () => model.arrays.length; - publicAPI.addArray = arr => { - const name = arr.getName(); - const { - array, - index - } = publicAPI.getArrayWithIndex(name); - if (array != null) { - model.arrays[index] = { - data: arr - }; - return index; - } - model.arrays = [].concat(model.arrays, { - data: arr - }); - return model.arrays.length - 1; - }; - publicAPI.removeAllArrays = () => { - model.arrays = []; - }; - publicAPI.removeArray = arrayName => { - const index = model.arrays.findIndex(array => array.data.getName() === arrayName); - return publicAPI.removeArrayByIndex(index); - }; - publicAPI.removeArrayByIndex = arrayIdx => { - if (arrayIdx !== -1 && arrayIdx < model.arrays.length) { - model.arrays.splice(arrayIdx, 1); - // TBD modified() ? - return true; - } - return false; - }; - publicAPI.getArrays = () => model.arrays.map(entry => entry.data); - publicAPI.getArray = arraySpec => typeof arraySpec === 'number' ? publicAPI.getArrayByIndex(arraySpec) : publicAPI.getArrayByName(arraySpec); - publicAPI.getArrayByName = arrayName => model.arrays.reduce((a, b, i) => b.data.getName() === arrayName ? b.data : a, null); - publicAPI.getArrayWithIndex = arrayName => { - const index = model.arrays.findIndex(array => array.data.getName() === arrayName); - return { - array: index !== -1 ? model.arrays[index].data : null, - index - }; - }; - publicAPI.getArrayByIndex = idx => idx >= 0 && idx < model.arrays.length ? model.arrays[idx].data : null; - publicAPI.hasArray = arrayName => publicAPI.getArrayWithIndex(arrayName).index >= 0; - publicAPI.getArrayName = idx => { - const arr = model.arrays[idx]; - return arr ? arr.data.getName() : ''; - }; - publicAPI.getCopyFieldFlags = () => model.copyFieldFlags; - publicAPI.getFlag = arrayName => model.copyFieldFlags[arrayName]; - publicAPI.passData = function (other) { - let fromId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1; - let toId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1; - other.getArrays().forEach(arr => { - const copyFlag = publicAPI.getFlag(arr.getName()); - if (copyFlag !== false && !(model.doCopyAllOff && copyFlag !== true) && arr) { - let destArr = publicAPI.getArrayByName(arr.getName()); - if (!destArr) { - if (fromId < 0 || fromId > arr.getNumberOfTuples()) { - // TBD: should this be a deep or a shallow copy? - publicAPI.addArray(arr); - other.getAttributes(arr).forEach(attrType => { - publicAPI.setAttribute(arr, attrType); - }); - } else { - const ncomps = arr.getNumberOfComponents(); - let newSize = arr.getNumberOfValues(); - const tId = toId > -1 ? toId : fromId; - if (newSize <= tId * ncomps) { - newSize = (tId + 1) * ncomps; - } - destArr = vtkDataArray.newInstance({ - name: arr.getName(), - dataType: arr.getDataType(), - numberOfComponents: ncomps, - values: macro.newTypedArray(arr.getDataType(), newSize), - size: 0 - }); - destArr.insertTuple(tId, arr.getTuple(fromId)); - publicAPI.addArray(destArr); - other.getAttributes(arr).forEach(attrType => { - publicAPI.setAttribute(destArr, attrType); - }); - } - } else if (arr.getNumberOfComponents() === destArr.getNumberOfComponents()) { - if (fromId > -1 && fromId < arr.getNumberOfTuples()) { - const tId = toId > -1 ? toId : fromId; - destArr.insertTuple(tId, arr.getTuple(fromId)); - } else { - // if `fromId` is not provided, just copy all (or as much possible) - // from `arr` to `destArr`. - destArr.insertTuples(0, arr.getTuples()); - } - } else { - vtkErrorMacro('Unhandled case in passData'); - } - } - }); - }; - publicAPI.interpolateData = function (other) { - let fromId1 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1; - let fromId2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1; - let toId = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : -1; - let t = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0.5; - other.getArrays().forEach(arr => { - const copyFlag = publicAPI.getFlag(arr.getName()); - if (copyFlag !== false && !(model.doCopyAllOff && copyFlag !== true) && arr) { - let destArr = publicAPI.getArrayByName(arr.getName()); - if (!destArr) { - if (fromId1 < 0 || fromId2 < 0 || fromId1 > arr.getNumberOfTuples()) { - // TBD: should this be a deep or a shallow copy? - publicAPI.addArray(arr); - other.getAttributes(arr).forEach(attrType => { - publicAPI.setAttribute(arr, attrType); - }); - } else { - const ncomps = arr.getNumberOfComponents(); - let newSize = arr.getNumberOfValues(); - // TODO: Is this supposed to happen? - const tId = toId > -1 ? toId : fromId1; - if (newSize <= tId * ncomps) { - newSize = (tId + 1) * ncomps; - } - destArr = vtkDataArray.newInstance({ - name: arr.getName(), - dataType: arr.getDataType(), - numberOfComponents: ncomps, - values: macro.newTypedArray(arr.getDataType(), newSize), - size: 0 - }); - destArr.interpolateTuple(tId, arr, fromId1, arr, fromId2, t); - publicAPI.addArray(destArr); - other.getAttributes(arr).forEach(attrType => { - publicAPI.setAttribute(destArr, attrType); - }); - } - } else if (arr.getNumberOfComponents() === destArr.getNumberOfComponents()) { - if (fromId1 > -1 && fromId1 < arr.getNumberOfTuples()) { - const tId = toId > -1 ? toId : fromId1; - destArr.interpolateTuple(tId, arr, fromId1, arr, fromId2, t); - vtkWarningMacro('Unexpected case in interpolateData'); - } else { - // if `fromId` is not provided, just copy all (or as much possible) - // from `arr` to `destArr`. - destArr.insertTuples(arr.getTuples()); - } - } else { - vtkErrorMacro('Unhandled case in interpolateData'); - } - } - }); - }; - publicAPI.copyFieldOn = arrayName => { - model.copyFieldFlags[arrayName] = true; - }; - publicAPI.copyFieldOff = arrayName => { - model.copyFieldFlags[arrayName] = false; - }; - publicAPI.copyAllOn = () => { - if (!model.doCopyAllOn || model.doCopyAllOff) { - model.doCopyAllOn = true; - model.doCopyAllOff = false; - publicAPI.modified(); - } - }; - publicAPI.copyAllOff = () => { - if (model.doCopyAllOn || !model.doCopyAllOff) { - model.doCopyAllOn = false; - model.doCopyAllOff = true; - publicAPI.modified(); - } - }; - publicAPI.clearFieldFlags = () => { - model.copyFieldFlags = {}; - }; - publicAPI.deepCopy = other => { - model.arrays = other.getArrays().map(arr => { - const arrNew = arr.newClone(); - arrNew.deepCopy(arr); - return { - data: arrNew - }; - }); - }; - publicAPI.copyFlags = other => other.getCopyFieldFlags().map(x => x); - // TODO: publicAPI.squeeze = () => model.arrays.forEach(entry => entry.data.squeeze()); - publicAPI.reset = () => model.arrays.forEach(entry => entry.data.reset()); - // TODO: getActualMemorySize - publicAPI.getMTime = () => model.arrays.reduce((a, b) => b.data.getMTime() > a ? b.data.getMTime() : a, model.mtime); - // TODO: publicAPI.getField = (ids, other) => { copy ids from other into this model's arrays } - // TODO: publicAPI.getArrayContainingComponent = (component) => ... - publicAPI.getNumberOfComponents = () => model.arrays.reduce((a, b) => a + b.data.getNumberOfComponents(), 0); - publicAPI.getNumberOfTuples = () => model.arrays.length > 0 ? model.arrays[0].getNumberOfTuples() : 0; - publicAPI.getState = () => { - const result = superGetState(); - if (result) { - result.arrays = model.arrays.map(item => ({ - data: item.data.getState() - })); - } - return result; - }; -} -const DEFAULT_VALUES = { - arrays: [], - copyFieldFlags: [], - // fields not to copy - doCopyAllOn: true, - doCopyAllOff: false -}; -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - vtkFieldData(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkFieldData'); - -// ---------------------------------------------------------------------------- - -var vtkFieldData$1 = { - newInstance, - extend -}; - -export { vtkFieldData$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/EdgeLocator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/EdgeLocator.d.ts deleted file mode 100644 index f9b80187..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/EdgeLocator.d.ts +++ /dev/null @@ -1,82 +0,0 @@ -import { Nullable } from './../../types'; - -/** - * - */ -export interface IEdgeLocatorInitialValues { - oriented?: boolean; -} - -export interface IEdge { - key: number; - edgeId: number; - value?: T; -} - -export interface vtkEdgeLocator { - /** - * Remove all the edges previously added. - */ - initialize(): void; - - /** - * Returns the inserted edge or null if no edge was inserted. - * @param {Number} pointId0 Edge first point id - * @param {Number} pointId1 Edge last point id - * @return {IEdge|null} an edge object ({ key, edgeId, value }) or null - */ - isInsertedEdge( - pointId0: number, - pointId1: number - ): Nullable>; - - /** - * Insert edge if it does not already exist. - * Returns the existing or newly inserted edge. - * - * @param {Number} pointId0 Edge first point id - * @param {Number} pointId1 Edge last point id - * @param {unknown} value Optional value option - * @return {IEdge|null} an edge object ({ key, edgeId, value }) or null - * @see insertEdge() - * @see isInsertedEdge() - */ - insertUniqueEdge(pointId0: number, pointId1: number, value?: T): IEdge; - - /** - * Insert edge. If the edge already exists, it is overwritten by this - * new edge. You may verify that the edge did not previously exist with - * `isInsertedEdge()`. - * Returns the newly inserted edge. - * @param {Number} pointId0 Edge first point id - * @param {Number} pointId1 Edge last point id - * @param {unknown} value Optional value option - * @return {Edge|null} an edge object ({ key, edgeId, value }) or null - * @see isInsertedEdge - * @see insertUniqueEdge - */ - insertEdge(pointId0: number, pointId1: number, value?: T): IEdge; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- - -/** - * Method use to create a new instance of vtkEdgeLocator - * @param {IEdgeLocatorInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IEdgeLocatorInitialValues -): vtkEdgeLocator; - -/** - * vtkEdgeLocator - */ -export declare const vtkEdgeLocator: { - newInstance: typeof newInstance; -}; - -export default vtkEdgeLocator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/EdgeLocator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/EdgeLocator.js deleted file mode 100644 index c370bae9..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/EdgeLocator.js +++ /dev/null @@ -1,60 +0,0 @@ -class EdgeLocator { - constructor() { - let oriented = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - this.oriented = oriented; - this.edgeMap = new Map(); - } - initialize() { - this.edgeMap.clear(); - } - computeEdgeKey(pointId0, pointId1) { - return this.oriented || pointId0 < pointId1 ? - // Cantor pairing function: - 0.5 * (pointId0 * pointId1) * (pointId0 * pointId1 + 1) + pointId1 : 0.5 * (pointId1 * pointId0) * (pointId1 * pointId0 + 1) + pointId0; - } - insertUniqueEdge(pointId0, pointId1, newEdgeValue) { - // Generate a unique key - const key = this.computeEdgeKey(pointId0, pointId1); - let node = this.edgeMap.get(key); - if (!node) { - // Didn't find key, so add a new edge entry - node = { - key, - edgeId: this.edgeMap.size, - value: newEdgeValue - }; - this.edgeMap.set(key, node); - } - return node; - } - insertEdge(pointId0, pointId1, newEdgeValue) { - // Generate a unique key - const key = this.computeEdgeKey(pointId0, pointId1); - const node = { - key, - edgeId: this.edgeMap.size, - value: newEdgeValue - }; - this.edgeMap.set(key, node); - return node; - } - isInsertedEdge(pointId0, pointId1) { - const key = this.computeEdgeKey(pointId0, pointId1); - return this.edgeMap.get(key); - } - static getEdgePointIds(node) { - const n = 0.5 * (-1 + Math.sqrt(8 * node.key + 1)); - const pointId0 = node.key - 0.5 * (n + 1) * n; - const pointId1 = n - pointId0; - return [pointId0, pointId1]; - } -} -function newInstance() { - let initialValues = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return new EdgeLocator(initialValues.oriented); -} -var vtkEdgeLocator = { - newInstance -}; - -export { vtkEdgeLocator as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ITKHelper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ITKHelper.d.ts deleted file mode 100644 index 371d41b3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ITKHelper.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -import vtkPolyData from './PolyData'; -import vtkImageData from './ImageData'; - -export interface IOptions { - pointDataName?: string; - scalarArrayName?: string; - cellDataName?: string; -} - -/** - * Converts an itk-wasm Image to a vtk.js vtkImageData. - * Requires an itk-wasm Image as input. - * @param itkImage - * @param {IOptions} [options] - */ -export function convertItkToVtkImage( - itkImage: any, - options?: IOptions -): vtkImageData; - -/** - * Converts a vtk.js vtkImageData to an itk-wasm Image. - * Requires a vtk.js vtkImageData as input. - * @param {vtkImageData} vtkImage - * @param {IOptions} [options] - */ -export function convertVtkToItkImage( - vtkImage: vtkImageData, - options?: IOptions -): any; - -/** - * Converts an itk-wasm PolyData to a vtk.js vtkPolyData. - * Requires an itk-wasm PolyData as input. - * @param itkPolyData - * @param {IOptions} [options] - */ -export function convertItkToVtkPolyData( - itkPolyData: any, - options?: IOptions -): vtkPolyData; - -/** - * Converts a vtk.js vtkPolyData to an itk-wasm PolyData. - * Requires a vtk.js vtkPolyData as input. - * - * @param {vtkPolyData} polyData - * @param {IOptions} [options] - */ -export function convertVtkToItkPolyData( - polyData: vtkPolyData, - options?: IOptions -): any; - -/** - * vtkITKHelper is a helper which provides a set of functions to work with - * itk-wasm module. - */ -export declare const vtkITKHelper: { - convertItkToVtkImage: typeof convertItkToVtkImage; - convertVtkToItkImage: typeof convertVtkToItkImage; - convertItkToVtkPolyData: typeof convertItkToVtkPolyData; - convertVtkToItkPolyData: typeof convertVtkToItkPolyData; -}; -export default vtkITKHelper; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ITKHelper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ITKHelper.js deleted file mode 100644 index e6e67efe..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ITKHelper.js +++ /dev/null @@ -1,497 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkImageData from './ImageData.js'; -import vtkPolyData from './PolyData.js'; -import vtkDataArray from '../Core/DataArray.js'; - -const { - vtkErrorMacro -} = macro; - -// see itk.js PixelTypes.js -const ITKJSPixelTypes = { - Unknown: 0, - Scalar: 1, - RGB: 2, - RGBA: 3, - Offset: 4, - Vector: 5, - Point: 6, - CovariantVector: 7, - SymmetricSecondRankTensor: 8, - DiffusionTensor3D: 9, - Complex: 10, - FixedArray: 11, - Array: 12, - Matrix: 13, - VariableLengthVector: 14, - VariableSizeMatrix: 15 -}; - -// itk-wasm pixel types from https://github.com/InsightSoftwareConsortium/itk-wasm/blob/master/src/core/PixelTypes.ts -const ITKWASMPixelTypes = { - Unknown: 'Unknown', - Scalar: 'Scalar', - RGB: 'RGB', - RGBA: 'RGBA', - Offset: 'Offset', - Vector: 'Vector', - Point: 'Point', - CovariantVector: 'CovariantVector', - SymmetricSecondRankTensor: 'SymmetricSecondRankTensor', - DiffusionTensor3D: 'DiffusionTensor3D', - Complex: 'Complex', - FixedArray: 'FixedArray', - Array: 'Array', - Matrix: 'Matrix', - VariableLengthVector: 'VariableLengthVector', - VariableSizeMatrix: 'VariableSizeMatrix' -}; -const vtkArrayTypeToItkComponentType = new Map([['Uint8Array', 'uint8'], ['Int8Array', 'int8'], ['Uint16Array', 'uint16'], ['Int16Array', 'int16'], ['Uint32Array', 'uint32'], ['Int32Array', 'int32'], ['Float32Array', 'float32'], ['Float64Array', 'float64']]); -const itkComponentTypeToVtkArrayType = new Map([['uint8', 'Uint8Array'], ['int8', 'Int8Array'], ['uint16', 'Uint16Array'], ['int16', 'Int16Array'], ['uint32', 'Uint32Array'], ['int32', 'Int32Array'], ['float32', 'Float32Array'], ['float64', 'Float64Array']]); - -/** - * Converts an itk-wasm Image to a vtk.js vtkImageData. - * - * Requires an itk-wasm Image as input. - */ -function convertItkToVtkImage(itkImage) { - let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - const vtkImage = { - origin: [0, 0, 0], - spacing: [1, 1, 1] - }; - const dimensions = [1, 1, 1]; - const direction = [1, 0, 0, 0, 1, 0, 0, 0, 1]; - - // Check whether itkImage is an itk.js Image or an itk-wasm Image? - const isITKWasm = itkImage.direction.data === undefined; - const ITKPixelTypes = isITKWasm ? ITKWASMPixelTypes : ITKJSPixelTypes; - for (let idx = 0; idx < itkImage.imageType.dimension; ++idx) { - vtkImage.origin[idx] = itkImage.origin[idx]; - vtkImage.spacing[idx] = itkImage.spacing[idx]; - dimensions[idx] = itkImage.size[idx]; - for (let col = 0; col < itkImage.imageType.dimension; ++col) { - // ITK (and VTKMath) use a row-major index axis, but the direction - // matrix on the vtkImageData is a webGL matrix, which uses a - // column-major data layout. Transpose the direction matrix from - // itkImage when instantiating that vtkImageData direction matrix. - if (isITKWasm) { - direction[col + idx * 3] = itkImage.direction[idx + col * itkImage.imageType.dimension]; - } else { - direction[col + idx * 3] = itkImage.direction.data[idx + col * itkImage.imageType.dimension]; - } - } - } - - // Create VTK Image Data - const imageData = vtkImageData.newInstance(vtkImage); - - // Create VTK point data -- the data associated with the pixels / voxels - const pointData = vtkDataArray.newInstance({ - name: options.scalarArrayName || 'Scalars', - values: itkImage.data, - numberOfComponents: itkImage.imageType.components - }); - imageData.setDirection(direction); - imageData.setDimensions(...dimensions); - // Always associate multi-component pixel types with vtk.js point data - // scalars to facilitate multi-component volume rendering - imageData.getPointData().setScalars(pointData); - - // Associate the point data that are 3D vectors / tensors - // Refer to itk-js/src/PixelTypes.js for numerical values - switch (isITKWasm ? ITKPixelTypes[itkImage.imageType.pixelType] : itkImage.imageType.pixelType) { - case ITKPixelTypes.Scalar: - break; - case ITKPixelTypes.RGB: - break; - case ITKPixelTypes.RGBA: - break; - case ITKPixelTypes.Offset: - break; - case ITKPixelTypes.Vector: - if (itkImage.imageType.dimension === 3 && itkImage.imageType.components === 3) { - imageData.getPointData().setVectors(pointData); - } - break; - case ITKPixelTypes.Point: - break; - case ITKPixelTypes.CovariantVector: - if (itkImage.imageType.dimension === 3 && itkImage.imageType.components === 3) { - imageData.getPointData().setVectors(pointData); - } - break; - case ITKPixelTypes.SymmetricSecondRankTensor: - if (itkImage.imageType.dimension === 3 && itkImage.imageType.components === 6) { - imageData.getPointData().setTensors(pointData); - } - break; - case ITKPixelTypes.DiffusionTensor3D: - if (itkImage.imageType.dimension === 3 && itkImage.imageType.components === 6) { - imageData.getPointData().setTensors(pointData); - } - break; - case ITKPixelTypes.Complex: - break; - case ITKPixelTypes.FixedArray: - break; - case ITKPixelTypes.Array: - break; - case ITKPixelTypes.Matrix: - break; - case ITKPixelTypes.VariableLengthVector: - break; - case ITKPixelTypes.VariableSizeMatrix: - break; - default: - vtkErrorMacro(`Cannot handle unexpected itk-wasm pixel type ${itkImage.imageType.pixelType}`); - return null; - } - return imageData; -} - -/** - * Converts a vtk.js vtkImageData to an itk-wasm Image. - * - * Requires a vtk.js vtkImageData as input. - * - */ -function convertVtkToItkImage(vtkImage) { - let copyData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - const dimension = 3; - const itkImage = { - imageType: { - dimension, - pixelType: ITKWASMPixelTypes.Scalar, - componentType: '', - components: 1 - }, - name: 'vtkImageData', - origin: vtkImage.getOrigin(), - spacing: vtkImage.getSpacing(), - direction: new Float64Array(9), - size: vtkImage.getDimensions() - }; - const direction = vtkImage.getDirection(); - - // Transpose the direction matrix from column-major to row-major - for (let idx = 0; idx < dimension; ++idx) { - for (let idy = 0; idy < dimension; ++idy) { - itkImage.direction[idx + idy * dimension] = direction[idy + idx * dimension]; - } - } - const pointData = vtkImage.getPointData(); - let vtkArray; - if (pointData.getTensors() !== null) { - itkImage.imageType.pixelType = ITKWASMPixelTypes.DiffusionTensor3D; - vtkArray = pointData.getTensors(); - } else if (pointData.getVectors() != null) { - itkImage.imageType.pixelType = ITKWASMPixelTypes.Vector; - vtkArray = pointData.getVectors(); - } else { - vtkArray = pointData.getScalars(); - } - itkImage.imageType.componentType = vtkArrayTypeToItkComponentType.get(vtkArray.getDataType()); - if (copyData) { - // Copy the data array - itkImage.data = vtkArray.getData().slice(0); - } else { - itkImage.data = vtkArray.getData(); - } - return itkImage; -} - -/** - * Converts an itk-wasm PolyData to a vtk.js vtkPolyData. - * - * Requires an itk-wasm PolyData as input. - */ -function convertItkToVtkPolyData(itkPolyData) { - let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - const pointDataArrays = []; - if (itkPolyData.pointData.length) { - pointDataArrays.push({ - data: { - vtkClass: 'vtkDataArray', - name: options.pointDataName || 'PointData', - numberOfComponents: itkPolyData.polyDataType.pointPixelComponents, - size: itkPolyData.pointData.length, - dataType: itkComponentTypeToVtkArrayType.get(itkPolyData.polyDataType.pointPixelComponentType), - buffer: itkPolyData.pointData.buffer, - values: itkPolyData.pointData - } - }); - } - const cellDataArrays = []; - if (itkPolyData.cellData.length) { - cellDataArrays.push({ - data: { - vtkClass: 'vtkDataArray', - name: options.cellDataName || 'CellData', - numberOfComponents: itkPolyData.polyDataType.pointPixelComponents, - size: itkPolyData.cellData.length, - dataType: itkComponentTypeToVtkArrayType.get(itkPolyData.polyDataType.pointPixelComponentType), - buffer: itkPolyData.cellData.buffer, - values: itkPolyData.cellData - } - }); - } - const vtkPolyDataModel = { - points: { - vtkClass: 'vtkPoints', - name: '_points', - numberOfComponents: 3, - size: itkPolyData.points.length, - dataType: 'Float32Array', - buffer: itkPolyData.points.buffer, - values: itkPolyData.points - }, - verts: { - vtkClass: 'vtkCellArray', - name: '_verts', - numberOfComponents: 1, - size: itkPolyData.verticesBufferSize, - dataType: 'Uint32Array', - buffer: itkPolyData.vertices.buffer, - values: itkPolyData.vertices - }, - lines: { - vtkClass: 'vtkCellArray', - name: '_lines', - numberOfComponents: 1, - size: itkPolyData.linesBufferSize, - dataType: 'Uint32Array', - buffer: itkPolyData.lines.buffer, - values: itkPolyData.lines - }, - polys: { - vtkClass: 'vtkCellArray', - name: '_polys', - numberOfComponents: 1, - size: itkPolyData.polygonsBufferSize, - dataType: 'Uint32Array', - buffer: itkPolyData.polygons.buffer, - values: itkPolyData.polygons - }, - strips: { - vtkClass: 'vtkCellArray', - name: '_strips', - numberOfComponents: 1, - size: itkPolyData.triangleStripsBufferSize, - dataType: 'Uint32Array', - buffer: itkPolyData.triangleStrips.buffer, - values: itkPolyData.triangleStrips - }, - pointData: { - vtkClass: 'vtkDataSetAttributes', - activeGlobalIds: -1, - activeNormals: -1, - activePedigreeIds: -1, - activeScalars: -1, - activeTCoords: -1, - activeTensors: -1, - activeVectors: -1, - copyFieldFlags: [], - doCopyAllOff: false, - doCopyAllOn: true, - arrays: pointDataArrays - }, - cellData: { - vtkClass: 'vtkDataSetAttributes', - activeGlobalIds: -1, - activeNormals: -1, - activePedigreeIds: -1, - activeScalars: -1, - activeTCoords: -1, - activeTensors: -1, - activeVectors: -1, - copyFieldFlags: [], - doCopyAllOff: false, - doCopyAllOn: true, - arrays: cellDataArrays - } - }; - - // Create VTK PolyData - const polyData = vtkPolyData.newInstance(vtkPolyDataModel); - const pd = polyData.getPointData(); - const cd = polyData.getCellData(); - if (itkPolyData.pointData.length) { - // Associate the point data that are 3D vectors / tensors - switch (ITKWASMPixelTypes[itkPolyData.polyDataType.pointPixelType]) { - case ITKWASMPixelTypes.Scalar: - pd.setScalars(pd.getArrayByIndex(0)); - break; - case ITKWASMPixelTypes.RGB: - break; - case ITKWASMPixelTypes.RGBA: - break; - case ITKWASMPixelTypes.Offset: - break; - case ITKWASMPixelTypes.Vector: - if (itkPolyData.polyDataType.pointPixelComponents === 3) { - pd.setVectors(pd.getArrayByIndex(0)); - } - break; - case ITKWASMPixelTypes.Point: - break; - case ITKWASMPixelTypes.CovariantVector: - if (itkPolyData.polyDataType.pointPixelComponents === 3) { - pd.setVectors(pd.getArrayByIndex(0)); - } - break; - case ITKWASMPixelTypes.SymmetricSecondRankTensor: - if (itkPolyData.polyDataType.pointPixelComponents === 6) { - pd.setTensors(pd.getArrayByIndex(0)); - } - break; - case ITKWASMPixelTypes.DiffusionTensor3D: - if (itkPolyData.polyDataType.pointPixelComponents === 6) { - pd.setTensors(pd.getArrayByIndex(0)); - } - break; - case ITKWASMPixelTypes.Complex: - break; - case ITKWASMPixelTypes.FixedArray: - break; - case ITKWASMPixelTypes.Array: - break; - case ITKWASMPixelTypes.Matrix: - break; - case ITKWASMPixelTypes.VariableLengthVector: - break; - case ITKWASMPixelTypes.VariableSizeMatrix: - break; - default: - vtkErrorMacro(`Cannot handle unexpected itk-wasm pixel type ${itkPolyData.polyDataType.pointPixelType}`); - return null; - } - } - if (itkPolyData.cellData.length) { - // Associate the cell data that are 3D vectors / tensors - switch (ITKWASMPixelTypes[itkPolyData.polyDataType.cellPixelType]) { - case ITKWASMPixelTypes.Scalar: - cd.setScalars(cd.getArrayByIndex(0)); - break; - case ITKWASMPixelTypes.RGB: - break; - case ITKWASMPixelTypes.RGBA: - break; - case ITKWASMPixelTypes.Offset: - break; - case ITKWASMPixelTypes.Vector: - if (itkPolyData.polyDataType.pointPixelComponents === 3) { - cd.setVectors(cd.getArrayByIndex(0)); - } - break; - case ITKWASMPixelTypes.Point: - break; - case ITKWASMPixelTypes.CovariantVector: - if (itkPolyData.polyDataType.pointPixelComponents === 3) { - cd.setVectors(cd.getArrayByIndex(0)); - } - break; - case ITKWASMPixelTypes.SymmetricSecondRankTensor: - if (itkPolyData.polyDataType.pointPixelComponents === 6) { - cd.setTensors(cd.getArrayByIndex(0)); - } - break; - case ITKWASMPixelTypes.DiffusionTensor3D: - if (itkPolyData.polyDataType.pointPixelComponents === 6) { - cd.setTensors(cd.getArrayByIndex(0)); - } - break; - case ITKWASMPixelTypes.Complex: - break; - case ITKWASMPixelTypes.FixedArray: - break; - case ITKWASMPixelTypes.Array: - break; - case ITKWASMPixelTypes.Matrix: - break; - case ITKWASMPixelTypes.VariableLengthVector: - break; - case ITKWASMPixelTypes.VariableSizeMatrix: - break; - default: - vtkErrorMacro(`Cannot handle unexpected itk-wasm pixel type ${itkPolyData.polyDataType.pointPixelType}`); - return null; - } - } - return polyData; -} - -/** - * Converts a vtk.js vtkPolyData to an itk-wasm PolyData. - * - * Requires a vtk.js vtkPolyData as input. - * - */ -function convertVtkToItkPolyData(polyData) { - let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - const itkPolyData = { - polyDataType: { - pointPixelComponentType: 'float32', - pointPixelComponents: 1, - pointPixelType: 'Scalar', - cellPixelComponentType: 'float32', - cellPixelComponents: 1, - cellPixelType: 'Scalar' - }, - numberOfPoints: polyData.getNumberOfPoints(), - points: polyData.getPoints().getData(), - verticesBufferSize: polyData.getVerts().getNumberOfValues(), - vertices: polyData.getVerts().getData(), - linesBufferSize: polyData.getLines().getNumberOfValues(), - lines: polyData.getLines().getData(), - polygonsBufferSize: polyData.getPolys().getNumberOfValues(), - polygons: polyData.getPolys().getData(), - triangleStripsBufferSize: polyData.getStrips().getNumberOfValues(), - triangleStrips: polyData.getStrips().getData(), - numberOfPointPixels: 0, - pointData: new Float32Array(), - numberOfCellPixels: 0, - cellData: new Float32Array() - }; - const pd = polyData.getPointData(); - if (pd.getNumberOfArrays()) { - const pdArray = options.pointDataName ? pd.getArrayByName(options.pointDataName) : pd.getArrayByIndex(0); - itkPolyData.numberOfPointPixels = pdArray.getNumberOfTuples(); - itkPolyData.pointData = pdArray.getData(); - itkPolyData.polyDataType.pointPixelComponentType = vtkArrayTypeToItkComponentType.get(pdArray.getDataType()); - // default to the same type - itkPolyData.polyDataType.cellPixelComponentType = itkPolyData.polyDataType.pointPixelComponentType; - itkPolyData.polyDataType.pointPixelComponents = pdArray.getNumberOfComponents(); - itkPolyData.polyDataType.cellPixelComponents = itkPolyData.polyDataType.pointPixelComponents; - if (pd.getTensors() === pdArray) { - itkPolyData.polyDataType.pointPixelType = ITKWASMPixelTypes.SymmetricSecondRankTensor; - } else if (pd.getVectors() === pdArray) { - itkPolyData.polyDataType.pointPixelType = ITKWASMPixelTypes.Vector; - } - itkPolyData.polyDataType.cellPixelType = itkPolyData.polyDataType.pointPixelType; - } - const cd = polyData.getCellData(); - if (cd.getNumberOfArrays()) { - const cdArray = options.cellDataName ? pd.getArrayByName(options.cellDataName) : pd.getArrayByIndex(0); - itkPolyData.numberOfCellPixels = cdArray.getNumberOfTuples(); - itkPolyData.cellData = cdArray.getData(); - itkPolyData.polyDataType.cellPixelComponentType = vtkArrayTypeToItkComponentType.get(cdArray.getDataType()); - itkPolyData.polyDataType.cellPixelComponents = cdArray.getNumberOfComponents(); - if (cd.getTensors() === cdArray) { - itkPolyData.polyDataType.cellPixelType = ITKWASMPixelTypes.SymmetricSecondRankTensor; - } else if (cd.getVectors() === cdArray) { - itkPolyData.polyDataType.cellPixelType = ITKWASMPixelTypes.Vector; - } else { - itkPolyData.polyDataType.cellPixelType = ITKWASMPixelTypes.Scalar; - } - } - return itkPolyData; -} -var ITKHelper = { - convertItkToVtkImage, - convertVtkToItkImage, - convertItkToVtkPolyData, - convertVtkToItkPolyData -}; - -export { convertItkToVtkImage, convertItkToVtkPolyData, convertVtkToItkImage, convertVtkToItkPolyData, ITKHelper as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ImageData.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ImageData.d.ts deleted file mode 100644 index 3b15b40e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ImageData.d.ts +++ /dev/null @@ -1,407 +0,0 @@ -import { mat3, mat4, ReadonlyVec3, vec3 } from 'gl-matrix'; -import { Bounds, Extent, Vector3 } from './../../types'; -import vtkDataSet, { IDataSetInitialValues } from './DataSet'; - -/** - * - */ -export interface IImageDataInitialValues extends IDataSetInitialValues { - spacing?: number[]; - origin?: number[]; - extent?: number[]; - direction?: number[]; -} - -interface IComputeHistogram { - minimum: number; - maximum: number; - average: number; - variance: number; - sigma: number; -} - -export interface vtkImageData extends vtkDataSet { - /** - * Reinitialize the state (direction, spacing, origin, extent, etc.) - * and the data set. - * @see vtkDataSet::initialize() - */ - initialize(): void; - - /** - * Returns an object with `{ minimum, maximum, average, variance, sigma, count }` - * of the imageData points found within the provided `worldBounds`. - * - * `voxelFunc(index, bounds)` is an optional function that is called with - * the `[i,j,k]` index and index `bounds`, expected to return truthy if the - * data point should be counted in the histogram, and falsey if not. - * @param [voxelFunc] - */ - computeHistogram(worldBounds: Bounds, voxelFunc?: any): IComputeHistogram; - - /** - * Returns an `array[3]` of values to multiply an `[i,j,k]` index to convert - * into the actual data array index, from the provided extent. - * `numberOfComponents` should match the Scalar components. - * @internal - * @param {Extent} extent - * @param {Number} [numberOfComponents] - */ - computeIncrements(extent: Extent, numberOfComponents?: number): number[]; - - /** - * Converts an `[i,j,k]` index to the flat data array index. Returns `NaN` - * if any of the i,j,k bounds are outside the data Extent. - * @internal - * @param {Vector3} ijk The localized `[i,j,k]` pixel array position. Float values will be rounded. - * @return {Number} the corresponding flattened index in the scalar array - */ - computeOffsetIndex(ijk: Vector3): number; - - /** - * Calculates the `indexToWorld` and `worldToIndex` conversion matrices from - * the origin, direction, and spacing. Shouldn't need to call this as it is - * handled internally, and updated whenever the vtkImageData is modified. - * @internal - */ - computeTransforms(): void; - - /** - * Returns a bounds array from a given Extent, useful if you need to - * calculate the world bounds of a subset of the imageData's data. - * @internal - * @param {Extent} ex - */ - extentToBounds(ex: Extent): Bounds; - - /** - * Get image extents without translation (i.e. with origin set to [0,0,0]) and under unit spacing - * (i.e. spacing = [1, 1, 1]). - * This includes a padding of 0.5 pixel/voxel in each principal direction. - * The padding is necessary for conventional images (textures, png, bmp) - * as well as medical images and volumes, since each pixel/voxel has a pre-defined width - * (based on specified spacing) including the ones on the boundary of the image. - * @internal - */ - getSpatialExtent(): Extent; - - /** - * Returns the axis-aligned bounds of vtkImageData in world coordinates. - * The axis-aligned Bounds of a vtkImage are returned as pairs of world coordinates - * ```[x_min, x_max, y_min, y_max, z_min, z_max]``` these are calculated - * from the Extent, Origin, and Spacing, defined - * through - * ```js - * [ - * (i_min - 0.5)*Spacing[0] + Origin[0], (i_max + 0.5)*Spacing[0] + Origin[0], - * (j_min - 0.5)*Spacing[1] + Origin[1], (j_max + 0.5)*Spacing[1] + Origin[1], - * (k_min - 0.5)*Spacing[2] + Origin[2], (k_max + 0.5)*Spacing[2] + Origin[2] - * ]; - * ``` - * Note that this includes a padding of 0.5 voxel spacing in each principal direction, - * as well as any orientation of the image. - * You can't directly set the bounds. First you need to decide how many - * pixels across your image will be (i.e. what the extent should be), and - * then you must find the origin and spacing that will produce the bounds - * that you need from the extent that you have. This is simple algebra. In - * general, always set the extent to start at zero, e.g. `[0, 9, 0, 9, 0, - * 9]` for a 10x10x10 image. Calling `setDimensions(10,10,10)` does exactly - * the same thing as `setExtent(0,9,0,9,0,9)` but you should always do the - * latter to be explicit about where your extent starts. - * Such an image of dimensions [10, 10, 10], origin [0, 0, 0] and voxel-spacing of 1.0, - * will result in bounds equal to [-0.5, 9.5, -0.5, 9.5, -0.5, 9.5]. - * @return {Bounds} The bounds for the mapper. - */ - getBounds(): Bounds; - - /** - * Get the `[x,y,z]` location of the center of the imageData. - */ - getCenter(): Vector3; - - /** - * Get dimensions of this structured points dataset. It is the number of - * points on each axis. Dimensions are computed from Extents during this - * call. - */ - getDimensions(): Vector3; - - /** - * Direction is a `mat3` matrix corresponding to the axes directions in - * world coordinates for the I, J, K axes of the image. Direction must form - * an orthonormal basis. - */ - getDirection(): mat3; - - /** - * The maximal extent of the projection. - * @default [0, -1, 0, -1, 0, -1] - */ - getExtent(): Extent; - - /** - * - * @default [0, -1, 0, -1, 0, -1] - */ - getExtentByReference(): Extent; - - /** - * Returns the data array index for the point at the provided world position. - * @param {Vector3} xyz The [x,y,z] array in world coordinates. - * @return {number} the corresponding pixel's index in the scalar array. - */ - getOffsetIndexFromWorld(xyz: Vector3): number; - - /** - * - */ - getNumberOfCells(): number; - - /** - * Get the number of points composing the dataset. - */ - getNumberOfPoints(): number; - - /** - * Get the world position of a data point. Index is the point's index in the - * 1D data array. - * @param {Number} index - */ - getPoint(index: number): Vector3; - - /** - * Get the origin of the dataset. The origin is the position in world - * coordinates of the point of extent (0,0,0). This point does not have to - * be part of the dataset, in other words, the dataset extent does not have - * to start at (0,0,0) and the origin can be outside of the dataset bounding - * box. The origin plus spacing determine the position in space of the - * points. - */ - getOrigin(): Vector3; - - /** - * Get the origin of the dataset. The origin is the position in world - */ - getOriginByReference(): Vector3; - - /** - * Returns the scalar value for the point at the provided world position, or - * `NaN` if the world bounds are outside the volumeData bounds. `comp` is - * the scalar component index, for multi-component scalar data. - * @param {Vector3} xyz The [x,y,z] array in world coordinates. - * @param {Number} [comp] The scalar component index for multi-component scalars. - * @return {number|NaN} The corresponding pixel's scalar value. - */ - getScalarValueFromWorld(xyz: Vector3, comp?: number): number; - - /** - * Set the spacing [width, height, length] of the cubical cells that compose - * the data set. - */ - getSpacing(): Vector3; - - /** - * - */ - getSpacingByReference(): Vector3; - - /** - * Returns the `mat4` matrices used to convert between world and index. - * `worldToIndex` is the inverse matrix of `indexToWorld`. Both are made - * with `Float64Array`. - */ - getIndexToWorld(): mat4; - - /** - * Returns the `mat4` matrices used to convert between world and index. - * `worldToIndex` is the inverse matrix of `indexToWorld`. Both are made - * with `Float64Array`. - */ - getWorldToIndex(): mat4; - - /** - * this is the fast version, requires vec3 arguments - * @param {ReadonlyVec3} vin - * @param {vec3} [vout] - */ - indexToWorldVec3(vin: ReadonlyVec3, vout?: vec3): vec3; - - /** - * Converts the input index vector `[i,j,k]` to world values `[x,y,z]`. - * If an out vector is not provided, a new one is created. If provided, it - * modifies the out vector array in place, but also returns it. - * @param {ReadonlyVec3} ain - * @param {vec3} [aout] - */ - indexToWorld(ain: ReadonlyVec3, aout?: vec3): vec3; - - /** - * Calculate the corresponding world bounds for the given index bounds - * `[i_min, i_max, j_min, j_max, k_min, k_max]`. Modifies `out` in place if - * provided, or returns a new array. Returned bounds are NOT padded based - * on voxel spacing (see getBounds). The output is merely a bounding box - * calculated considering voxels as grid points. - * @param {Bounds} bin - * @param {Bounds} [bout] - */ - indexToWorldBounds(bin: Bounds, bout?: Bounds): Bounds; - - /** - * Set the values of the extent, from `0` to `(i-1)`, etc. - * @param dims - */ - setDimensions(dims: number[]): void; - - /** - * Set the values of the extent, from `0` to `(i-1)`, etc. - * @param {Number} i - * @param {Number} j - * @param {Number} k - */ - setDimensions(i: number, j: number, k: number): void; - - /** - * The direction matrix is a 3x3 basis for the I, J, K axes - * of the image. The rows of the matrix correspond to the - * axes directions in world coordinates. Direction must - * form an orthonormal basis, results are undefined if - * it is not. - * @param {mat3} direction - */ - setDirection(direction: mat3): boolean; - - /** - * The direction matrix is a 3x3 basis for the I, J, K axes - * of the image. The rows of the matrix correspond to the - * axes directions in world coordinates. Direction must - * form an orthonormal basis, results are undefined if - * it is not. - * @param e00 - * @param e01 - * @param e02 - * @param e10 - * @param e11 - * @param e12 - * @param e20 - * @param e21 - * @param e22 - */ - setDirection( - e00: number, - e01: number, - e02: number, - e10: number, - e11: number, - e12: number, - e20: number, - e21: number, - e22: number - ): boolean; - - /** - * Set the extent. - * @param {Extent} extent - */ - setExtent(extent: Extent): boolean; - - /** - * - * @param {Number} x1 The x coordinate of the first point. - * @param {Number} x2 The x coordinate of the second point. - * @param {Number} y1 The y coordinate of the first point. - * @param {Number} y2 The y coordinate of the second point. - * @param {Number} z1 The z coordinate of the first point. - * @param {Number} z2 The z coordinate of the second point. - */ - setExtent( - x1: number, - x2: number, - y1: number, - y2: number, - z1: number, - z2: number - ): void; - - /** - * Set the origin of the image. - * @param {Vector3} origin The coordinate of the origin point. - */ - setOrigin(origin: Vector3): boolean; - - /** - * Set the origin of the image. - * @param {Vector3} origin The coordinate of the origin point. - */ - setOriginFrom(origin: Vector3): boolean; - - /** - * - * @param spacing - */ - setSpacing(spacing: number[]): boolean; - - /** - * - * @param spacing - */ - setSpacingFrom(spacing: number[]): boolean; - - /** - * this is the fast version, requires vec3 arguments - * @param vin - * @param [vout] - */ - worldToIndexVec3(vin: ReadonlyVec3, vout?: vec3): vec3; - - /** - * Converts the input world vector `[x,y,z]` to approximate index values - * `[i,j,k]`. Should be rounded to integers before attempting to access the - * index. If an out vector is not provided, a new one is created. If provided, it - * modifies the out vector array in place, but also returns it. - * @param ain - * @param [aout] - */ - worldToIndex(ain: ReadonlyVec3, aout?: vec3): vec3; - - /** - * Calculate the corresponding index bounds for the given world bounds - * `[x_min, x_max, y_min, y_max, z_min, z_max]`. Modifies `out` in place if - * provided, or returns a new array. - * @param {Bounds} bin - * @param {Bounds} [bout] - */ - worldToIndexBounds(bin: Bounds, bout?: Bounds): number[]; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkImageData characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IImageDataInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IImageDataInitialValues -): void; - -/** - * Method used to create a new instance of vtkImageData. - * @param {IImageDataInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IImageDataInitialValues -): vtkImageData; - -/** - * vtkImageData is a data object that is a concrete implementation of - * vtkDataSet. vtkImageData represents a geometric structure that is a - * topological and geometrical regular array of points. Examples include volumes - * (voxel data) and pixmaps. All vtkDataSet functions are inherited. - */ -export declare const vtkImageData: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkImageData; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ImageData.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ImageData.js deleted file mode 100644 index ef3794f8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ImageData.js +++ /dev/null @@ -1,386 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { c as roundVector, e as clampVector } from '../Core/Math/index.js'; -import vtkBoundingBox from './BoundingBox.js'; -import vtkDataSet from './DataSet.js'; -import vtkStructuredData from './StructuredData.js'; -import { StructuredType } from './StructuredData/Constants.js'; -import { mat3, mat4, vec3 } from 'gl-matrix'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkImageData methods -// ---------------------------------------------------------------------------- - -function vtkImageData(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkImageData'); - publicAPI.setExtent = function () { - if (model.deleted) { - vtkErrorMacro('instance deleted - cannot call any method'); - return false; - } - for (var _len = arguments.length, inExtent = new Array(_len), _key = 0; _key < _len; _key++) { - inExtent[_key] = arguments[_key]; - } - const extentArray = inExtent.length === 1 ? inExtent[0] : inExtent; - if (extentArray.length !== 6) { - return false; - } - const changeDetected = model.extent.some((item, index) => item !== extentArray[index]); - if (changeDetected) { - model.extent = extentArray.slice(); - model.dataDescription = vtkStructuredData.getDataDescriptionFromExtent(model.extent); - publicAPI.modified(); - } - return changeDetected; - }; - publicAPI.setDimensions = function () { - let i; - let j; - let k; - if (model.deleted) { - vtkErrorMacro('instance deleted - cannot call any method'); - return; - } - if (arguments.length === 1) { - const array = arguments.length <= 0 ? undefined : arguments[0]; - i = array[0]; - j = array[1]; - k = array[2]; - } else if (arguments.length === 3) { - i = arguments.length <= 0 ? undefined : arguments[0]; - j = arguments.length <= 1 ? undefined : arguments[1]; - k = arguments.length <= 2 ? undefined : arguments[2]; - } else { - vtkErrorMacro('Bad dimension specification'); - return; - } - publicAPI.setExtent(0, i - 1, 0, j - 1, 0, k - 1); - }; - publicAPI.getDimensions = () => [model.extent[1] - model.extent[0] + 1, model.extent[3] - model.extent[2] + 1, model.extent[5] - model.extent[4] + 1]; - publicAPI.getNumberOfCells = () => { - const dims = publicAPI.getDimensions(); - let nCells = 1; - for (let i = 0; i < 3; i++) { - if (dims[i] === 0) { - return 0; - } - if (dims[i] > 1) { - nCells *= dims[i] - 1; - } - } - return nCells; - }; - publicAPI.getNumberOfPoints = () => { - const dims = publicAPI.getDimensions(); - return dims[0] * dims[1] * dims[2]; - }; - publicAPI.getPoint = index => { - const dims = publicAPI.getDimensions(); - if (dims[0] === 0 || dims[1] === 0 || dims[2] === 0) { - vtkErrorMacro('Requesting a point from an empty image.'); - return null; - } - const ijk = new Float64Array(3); - switch (model.dataDescription) { - case StructuredType.EMPTY: - return null; - case StructuredType.SINGLE_POINT: - break; - case StructuredType.X_LINE: - ijk[0] = index; - break; - case StructuredType.Y_LINE: - ijk[1] = index; - break; - case StructuredType.Z_LINE: - ijk[2] = index; - break; - case StructuredType.XY_PLANE: - ijk[0] = index % dims[0]; - ijk[1] = index / dims[0]; - break; - case StructuredType.YZ_PLANE: - ijk[1] = index % dims[1]; - ijk[2] = index / dims[1]; - break; - case StructuredType.XZ_PLANE: - ijk[0] = index % dims[0]; - ijk[2] = index / dims[0]; - break; - case StructuredType.XYZ_GRID: - ijk[0] = index % dims[0]; - ijk[1] = index / dims[0] % dims[1]; - ijk[2] = index / (dims[0] * dims[1]); - break; - default: - vtkErrorMacro('Invalid dataDescription'); - break; - } - const coords = [0, 0, 0]; - publicAPI.indexToWorld(ijk, coords); - return coords; - }; - - // vtkCell *GetCell(vtkIdType cellId) VTK_OVERRIDE; - // void GetCell(vtkIdType cellId, vtkGenericCell *cell) VTK_OVERRIDE; - // void GetCellBounds(vtkIdType cellId, double bounds[6]) VTK_OVERRIDE; - // virtual vtkIdType FindPoint(double x, double y, double z) - // { - // return this->vtkDataSet::FindPoint(x, y, z); - // } - // vtkIdType FindPoint(double x[3]) VTK_OVERRIDE; - // vtkIdType FindCell( - // double x[3], vtkCell *cell, vtkIdType cellId, double tol2, - // int& subId, double pcoords[3], double *weights) VTK_OVERRIDE; - // vtkIdType FindCell( - // double x[3], vtkCell *cell, vtkGenericCell *gencell, - // vtkIdType cellId, double tol2, int& subId, - // double pcoords[3], double *weights) VTK_OVERRIDE; - // vtkCell *FindAndGetCell(double x[3], vtkCell *cell, vtkIdType cellId, - // double tol2, int& subId, double pcoords[3], - // double *weights) VTK_OVERRIDE; - // int GetCellType(vtkIdType cellId) VTK_OVERRIDE; - // void GetCellPoints(vtkIdType cellId, vtkIdList *ptIds) VTK_OVERRIDE - // {vtkStructuredData::GetCellPoints(cellId,ptIds,this->DataDescription, - // this->GetDimensions());} - // void GetPointCells(vtkIdType ptId, vtkIdList *cellIds) VTK_OVERRIDE - // {vtkStructuredData::GetPointCells(ptId,cellIds,this->GetDimensions());} - // void ComputeBounds() VTK_OVERRIDE; - // int GetMaxCellSize() VTK_OVERRIDE {return 8;}; //voxel is the largest - - publicAPI.getBounds = () => publicAPI.extentToBounds(publicAPI.getSpatialExtent()); - publicAPI.extentToBounds = ex => vtkBoundingBox.transformBounds(ex, model.indexToWorld); - publicAPI.getSpatialExtent = () => vtkBoundingBox.inflate([...model.extent], 0.5); - - // Internal, shouldn't need to call this manually. - publicAPI.computeTransforms = () => { - mat4.fromTranslation(model.indexToWorld, model.origin); - model.indexToWorld[0] = model.direction[0]; - model.indexToWorld[1] = model.direction[1]; - model.indexToWorld[2] = model.direction[2]; - model.indexToWorld[4] = model.direction[3]; - model.indexToWorld[5] = model.direction[4]; - model.indexToWorld[6] = model.direction[5]; - model.indexToWorld[8] = model.direction[6]; - model.indexToWorld[9] = model.direction[7]; - model.indexToWorld[10] = model.direction[8]; - mat4.scale(model.indexToWorld, model.indexToWorld, model.spacing); - mat4.invert(model.worldToIndex, model.indexToWorld); - }; - publicAPI.indexToWorld = function (ain) { - let aout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - vec3.transformMat4(aout, ain, model.indexToWorld); - return aout; - }; - publicAPI.indexToWorldVec3 = publicAPI.indexToWorld; - publicAPI.worldToIndex = function (ain) { - let aout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - vec3.transformMat4(aout, ain, model.worldToIndex); - return aout; - }; - publicAPI.worldToIndexVec3 = publicAPI.worldToIndex; - publicAPI.indexToWorldBounds = function (bin) { - let bout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - return vtkBoundingBox.transformBounds(bin, model.indexToWorld, bout); - }; - publicAPI.worldToIndexBounds = function (bin) { - let bout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - return vtkBoundingBox.transformBounds(bin, model.worldToIndex, bout); - }; - - // Make sure the transform is correct - model._onOriginChanged = publicAPI.computeTransforms; - model._onDirectionChanged = publicAPI.computeTransforms; - model._onSpacingChanged = publicAPI.computeTransforms; - publicAPI.computeTransforms(); - publicAPI.getCenter = () => vtkBoundingBox.getCenter(publicAPI.getBounds()); - publicAPI.computeHistogram = function (worldBounds) { - let voxelFunction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - const bounds = [0, 0, 0, 0, 0, 0]; - publicAPI.worldToIndexBounds(worldBounds, bounds); - const point1 = [0, 0, 0]; - const point2 = [0, 0, 0]; - vtkBoundingBox.computeCornerPoints(bounds, point1, point2); - roundVector(point1, point1); - roundVector(point2, point2); - const dimensions = publicAPI.getDimensions(); - clampVector(point1, [0, 0, 0], [dimensions[0] - 1, dimensions[1] - 1, dimensions[2] - 1], point1); - clampVector(point2, [0, 0, 0], [dimensions[0] - 1, dimensions[1] - 1, dimensions[2] - 1], point2); - const yStride = dimensions[0]; - const zStride = dimensions[0] * dimensions[1]; - const pixels = publicAPI.getPointData().getScalars().getData(); - let maximum = -Infinity; - let minimum = Infinity; - let sumOfSquares = 0; - let isum = 0; - let inum = 0; - for (let z = point1[2]; z <= point2[2]; z++) { - for (let y = point1[1]; y <= point2[1]; y++) { - let index = point1[0] + y * yStride + z * zStride; - for (let x = point1[0]; x <= point2[0]; x++) { - if (!voxelFunction || voxelFunction([x, y, z], bounds)) { - const pixel = pixels[index]; - if (pixel > maximum) maximum = pixel; - if (pixel < minimum) minimum = pixel; - sumOfSquares += pixel * pixel; - isum += pixel; - inum += 1; - } - ++index; - } - } - } - const average = inum > 0 ? isum / inum : 0; - const variance = inum ? Math.abs(sumOfSquares / inum - average * average) : 0; - const sigma = Math.sqrt(variance); - return { - minimum, - maximum, - average, - variance, - sigma, - count: inum - }; - }; - - // TODO: use the unimplemented `vtkDataSetAttributes` for scalar length, that is currently also a TODO (GetNumberOfComponents). - // Scalar data could be tuples for color information? - publicAPI.computeIncrements = function (extent) { - let numberOfComponents = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1; - const increments = []; - let incr = numberOfComponents; - - // Calculate array increment offsets - // similar to c++ vtkImageData::ComputeIncrements - for (let idx = 0; idx < 3; ++idx) { - increments[idx] = incr; - incr *= extent[idx * 2 + 1] - extent[idx * 2] + 1; - } - return increments; - }; - - /** - * @param {Number[]} index the localized `[i,j,k]` pixel array position. Float values will be rounded. - * @return {Number} the corresponding flattened index in the scalar array - */ - publicAPI.computeOffsetIndex = _ref => { - let [i, j, k] = _ref; - const extent = publicAPI.getExtent(); - const numberOfComponents = publicAPI.getPointData().getScalars().getNumberOfComponents(); - const increments = publicAPI.computeIncrements(extent, numberOfComponents); - // Use the array increments to find the pixel index - // similar to c++ vtkImageData::GetArrayPointer - // Math.floor to catch "practically 0" e^-15 scenarios. - return Math.floor((Math.round(i) - extent[0]) * increments[0] + (Math.round(j) - extent[2]) * increments[1] + (Math.round(k) - extent[4]) * increments[2]); - }; - - /** - * @param {Number[]} xyz the [x,y,z] Array in world coordinates - * @return {Number|NaN} the corresponding pixel's index in the scalar array - */ - publicAPI.getOffsetIndexFromWorld = xyz => { - const extent = publicAPI.getExtent(); - const index = publicAPI.worldToIndex(xyz); - - // Confirm indexed i,j,k coords are within the bounds of the volume - for (let idx = 0; idx < 3; ++idx) { - if (index[idx] < extent[idx * 2] || index[idx] > extent[idx * 2 + 1]) { - vtkErrorMacro(`GetScalarPointer: Pixel ${index} is not in memory. Current extent = ${extent}`); - return NaN; - } - } - - // Assumed the index here is within 0 <-> scalarData.length, but doesn't hurt to check upstream - return publicAPI.computeOffsetIndex(index); - }; - /** - * @param {Number[]} xyz the [x,y,z] Array in world coordinates - * @param {Number?} comp the scalar component index for multi-component scalars - * @return {Number|NaN} the corresponding pixel's scalar value - */ - publicAPI.getScalarValueFromWorld = function (xyz) { - let comp = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - const numberOfComponents = publicAPI.getPointData().getScalars().getNumberOfComponents(); - if (comp < 0 || comp >= numberOfComponents) { - vtkErrorMacro(`GetScalarPointer: Scalar Component ${comp} is not within bounds. Current Scalar numberOfComponents: ${numberOfComponents}`); - return NaN; - } - const offsetIndex = publicAPI.getOffsetIndexFromWorld(xyz); - if (Number.isNaN(offsetIndex)) { - // VTK Error Macro will have been tripped already, no need to do it again, - return offsetIndex; - } - return publicAPI.getPointData().getScalars().getComponent(offsetIndex, comp); - }; - const superInitialize = publicAPI.initialize; - publicAPI.initialize = () => { - publicAPI.set({ - direction: mat3.identity(model.direction), - spacing: [1.0, 1.0, 1.0], - origin: [0.0, 0.0, 0.0], - extent: [0, -1, 0, -1, 0, -1], - dataDescription: StructuredType.EMPTY - }); - return superInitialize(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - direction: null, - // a mat3 - indexToWorld: null, - // a mat4 - worldToIndex: null, - // a mat4 - spacing: [1.0, 1.0, 1.0], - origin: [0.0, 0.0, 0.0], - extent: [0, -1, 0, -1, 0, -1], - dataDescription: StructuredType.EMPTY -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkDataSet.extend(publicAPI, model, initialValues); - if (!model.direction) { - model.direction = mat3.identity(new Float64Array(9)); - } else if (Array.isArray(model.direction)) { - model.direction = new Float64Array(model.direction.slice(0, 9)); - } - model.indexToWorld = new Float64Array(16); - model.worldToIndex = new Float64Array(16); - - // Set/Get methods - macro.get(publicAPI, model, ['indexToWorld', 'worldToIndex']); - macro.setGetArray(publicAPI, model, ['origin', 'spacing'], 3); - macro.setGetArray(publicAPI, model, ['direction'], 9); - macro.getArray(publicAPI, model, ['extent'], 6); - - // Object specific methods - vtkImageData(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImageData'); - -// ---------------------------------------------------------------------------- - -var vtkImageData$1 = { - newInstance, - extend -}; - -export { vtkImageData$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ImplicitBoolean.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ImplicitBoolean.js deleted file mode 100644 index d85e4a34..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ImplicitBoolean.js +++ /dev/null @@ -1,138 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import Constants from './ImplicitBoolean/Constants.js'; -import vtkImplicitFunction from './ImplicitFunction.js'; - -const { - Operation -} = Constants; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -// vtkImplicitBoolean methods -// ---------------------------------------------------------------------------- - -function vtkImplicitBoolean(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkImplicitBoolean'); - - // Capture "parentClass" api for internal use - const superClass = { - ...publicAPI - }; - publicAPI.getMTime = () => { - let mTime = superClass.getMTime(); - if (!model.functions || model.functions.length <= 0) { - return mTime; - } - for (let i = 0; i < model.functions.length; ++i) { - mTime = Math.max(mTime, model.functions[i].getMTime()); - } - return mTime; - }; - publicAPI.getOperationAsString = () => macro.enumToString(Operation, model.operation); - publicAPI.setOperationToUnion = () => publicAPI.setOperation(0); - publicAPI.setOperationToIntersection = () => publicAPI.setOperation(1); - publicAPI.setOperationToDifference = () => publicAPI.setOperation(2); - publicAPI.getFunctions = () => model.functions; - publicAPI.hasFunction = f => !!model.functions.filter(item => item === f).length; - publicAPI.addFunction = f => { - if (f && !publicAPI.hasFunction(f)) { - model.functions = model.functions.concat(f); - } - }; - publicAPI.removeFunction = f => { - const newFunctionList = model.functions.filter(item => item !== f); - if (model.functions.length !== newFunctionList.length) { - model.functions = newFunctionList; - } - }; - publicAPI.removeAllFunctions = () => { - model.functions = []; - }; - publicAPI.evaluateFunction = xyz => { - let value = 0.0; - if (model.functions.length <= 0) { - return value; - } - if (model.operation === Operation.UNION) { - value = Number.MAX_VALUE; - for (let i = 0; i < model.functions.length; ++i) { - const f = model.functions[i]; - const v = f.functionValue(xyz); - if (v < value) { - value = v; - } - } - } else if (model.operation === Operation.INTERSECTION) { - value = -Number.MAX_VALUE; - for (let i = 0; i < model.functions.length; ++i) { - const f = model.functions[i]; - const v = f.functionValue(xyz); - if (v > value) { - value = v; - } - } - } else { - const firstF = model.functions[0]; - value = firstF.functionValue(xyz); - for (let i = 1; i < model.functions.length; ++i) { - const f = model.functions[i]; - const v = -1.0 * f.evaluateFunction(xyz); - if (v > value) { - value = v; - } - } - } - return value; - }; - publicAPI.evaluateGradient = xyz => { - const t = model.axis[0] * (xyz[0] - model.center[0]) + model.axis[1] * (xyz[1] - model.center[1]) + model.axis[2] * (xyz[2] - model.center[2]); - const cp = new Float32Array(3); - cp[0] = model.center[0] + t * model.axis[0]; - cp[1] = model.center[1] + t * model.axis[1]; - cp[2] = model.center[2] + t * model.axis[2]; - const retVal = [2.0 * (xyz[0] - cp[0]), 2.0 * (xyz[1] - cp[1]), 2.0 * (xyz[2] - cp[2])]; - return retVal; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- -const DEFAULT_VALUES = { - operation: 0, - functions: [] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - vtkImplicitFunction.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['operation']); - vtkImplicitBoolean(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImplicitBoolean'); - -// ---------------------------------------------------------------------------- - -var vtkImplicitBoolean$1 = { - newInstance, - extend, - ...Constants -}; - -export { vtkImplicitBoolean$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ImplicitBoolean/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ImplicitBoolean/Constants.js deleted file mode 100644 index 17bdad1b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ImplicitBoolean/Constants.js +++ /dev/null @@ -1,12 +0,0 @@ -// Constants in support of ImplicitBoolean -// -const Operation = { - UNION: 0, - INTERSECTION: 1, - DIFFERENCE: 2 -}; -var Constants = { - Operation -}; - -export { Operation, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ImplicitFunction.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ImplicitFunction.d.ts deleted file mode 100644 index 3a2ad1b3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ImplicitFunction.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { Vector3 } from './../../types'; -import { vtkTransform } from './../Transform/Transform'; - -/** - * - */ -export interface IImplicitFunctionInitialValues { - transform?: vtkTransform; -} - -export interface vtkImplicitFunction extends vtkObject { - /** - * Given the point x evaluate the function. - * @see functionValue - * @param {Vector3} x The point coordinate. - */ - evaluateFunction(x: Vector3): number; - - /** - * Evaluate function at position x-y-z and return value. Point x[3] is - * transformed through transform (if provided). - * @see evaluateFunction - * @param {Vector3} x The point coordinate. - */ - functionValue(x: Vector3): number; - - /** - * Get the transform. undefined by default - */ - getTransform(): vtkTransform; - - /** - * Set the transform to apply on all points. - * @param {vtkTransform} transform The transform to apply - */ - setTransform(transform: vtkTransform): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkImplicitFunction characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IImplicitFunctionInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IImplicitFunctionInitialValues -): void; - -/** - * Method used to create a new instance of vtkImplicitFunction. - * @param {IImplicitFunctionInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IImplicitFunctionInitialValues -): vtkImplicitFunction; - -/** - * vtkImplicitFunction computes the implicit function and/or gradient for a function. - */ -export declare const vtkImplicitFunction: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkImplicitFunction; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ImplicitFunction.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ImplicitFunction.js deleted file mode 100644 index cce99c43..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/ImplicitFunction.js +++ /dev/null @@ -1,60 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -// vtkImplicitFunction methods -// ---------------------------------------------------------------------------- - -function vtkImplicitFunction(publicAPI, model) { - model.classHierarchy.push('vtkImplicitFunction'); - publicAPI.functionValue = xyz => { - if (!model.transform) { - return publicAPI.evaluateFunction(xyz); - } - const transformedXYZ = []; - model.transform.transformPoint(xyz, transformedXYZ); - return publicAPI.evaluateFunction(transformedXYZ); - }; - publicAPI.evaluateFunction = _xyz => { - macro.vtkErrorMacro('not implemented'); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- -const DEFAULT_VALUES = { - // transform : null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['transform']); - vtkImplicitFunction(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImplicitFunction'); - -// ---------------------------------------------------------------------------- - -var vtkImplicitFunction$1 = { - newInstance, - extend -}; - -export { vtkImplicitFunction$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/IncrementalOctreeNode.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/IncrementalOctreeNode.d.ts deleted file mode 100644 index fdb06dde..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/IncrementalOctreeNode.d.ts +++ /dev/null @@ -1,297 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { Bounds, Vector3 } from './../../types'; -import vtkPoints from './../Core/Points'; -/** - * - */ -export interface IIncrementalOctreeNodeInitialValues { - pointIdSet?: number[]; - minBounds?: Bounds; - maxBounds?: Bounds; - minDataBounds?: Bounds; - maxDataBounds?: Bounds; - parent?: vtkIncrementalOctreeNode; - children?: vtkIncrementalOctreeNode[]; -} - -export interface vtkIncrementalOctreeNode extends vtkObject { - /** - * Create a list object for storing point indices. - */ - createPointIdSet(): void; - - /** - * Set the spatial bounding box of the node. This function sets a default - * data bounding box. - * - * @param {Number} x1 - * @param {Number} x2 - * @param {Number} y1 - * @param {Number} y2 - * @param {Number} z1 - * @param {Number} z2 - */ - setBounds( - x1: number, - x2: number, - y1: number, - y2: number, - z1: number, - z2: number - ): void; - - /** - * Get the spatial bounding box of the node. The values are returned via - * an array in order of: x_min, x_max, y_min, y_max, z_min, z_max. - * - * @param {Bounds} bounds - */ - getBounds(bounds: Bounds): void; - - /** - * @param {Vector3} point - */ - getChildIndex(point: Vector3): number; - - /** - * @param {Vector3} point - */ - containsPoint(point: Vector3): boolean; - - /** - * @param {Vector3} point - */ - containsPointByData(point: Vector3): boolean; - - /** - * Given a point inserted to either this node (a leaf node) or a descendant - * leaf (of this node --- when this node is a non-leaf node), update the - * counter and the data bounding box for this node only. The data bounding box - * is considered only if updateData is non-zero. The returned value indicates - * whether (1) or not (0) the data bounding box is actually updated. Note that - * argument nHits must be 1 unless this node is updated with a number (nHits) - * of exactly duplicate points as a whole via a single call to this function. - * - * @param {Vector3} point - * @param {Number} nHits - * @param {Boolean} updateData - */ - updateCounterAndDataBounds( - point: Vector3, - nHits: number, - updateData: boolean - ): boolean; - - /** - * Given a point inserted to either this node (a leaf node) or a descendant - * leaf (of this node --- when this node is a non-leaf node), update the - * counter and the data bounding box recursively bottom-up until a specified - * node. The data bounding box is considered only if updateData is non-zero. - * The returned value indicates whether (true) or not (false) the data bounding box - * is actually updated. Note that argument nHits must be 1 unless this node - * is updated with a number (nHits) of exactly duplicate points as a whole - * via a single call to this function. - * - * @param {Vector3} point - * @param {Number} nHits - * @param {Boolean} updateData - * @param {vtkIncrementalOctreeNode} endNode - */ - updateCounterAndDataBoundsRecursively( - point: Vector3, - nHits: number, - updateData: boolean, - endNode: vtkIncrementalOctreeNode - ): boolean; - - /** - * Given a point, determine whether (true) or not (false) it is an exact duplicate - * of all the points, if any, maintained in this node. In other words, to - * check if this given point and all existing points, if any, of this node - * are exactly duplicate with one another. - * - * @param {Vector3} point - */ - containsDuplicatePointsOnly(point: Vector3): boolean; - - /** - * Determine whether or not this node is a leaf. - */ - isLeaf(): boolean; - - /** - * Get the child at the given index i. - * i must be an int between 0 and 7. - * - * @param {Number} i - */ - getChild(i: number): vtkIncrementalOctreeNode; - - /** - * Given a number (>= threshold) of all exactly duplicate points (accessible - * via points and pntIds, but with exactly the same 3D coordinate) maintained - * in this leaf node and a point (absolutely not a duplicate any more, with - * pntIdx storing the index in points)) to be inserted to this node, separate - * all the duplicate points from this new point by means of usually recursive - * node sub-division such that the former points are inserted to a descendant - * leaf while the new point is inserted to a sibling of this descendant leaf. - * Argument ptMode specifies whether the point is not inserted at all but only - * the point index is provided upon 0, the point is inserted via vtkPoints:: - * InsertPoint() upon 1, or this point is instead inserted through vtkPoints:: - * InsertNextPoint() upon 2. - * - * @param {vtkPoints} points - * @param {Number[]} pntIds - * @param {Vector3} newPnt - * @param {Number} pntIdx - * @param {Number} maxPts - * @param {Number} ptMode - */ - separateExactlyDuplicatePointsFromNewInsertion( - points: vtkPoints, - pntIds: number[], - newPnt: Vector3, - pntIdx: number, - maxPts: number, - ptMode: number - ): void; - - /** - * Divide this LEAF node into eight child nodes as the number of points - * maintained by this leaf node has reached the threshold maxPts while - * another point newPnt is just going to be inserted to it. The available - * point-indices pntIds are distributed to the child nodes based on the - * point coordinates (available through points). Note that this function - * can incur recursive node-division to determine the specific leaf node - * for accepting the new point (with pntIdx storing the index in points) - * because the existing maxPts points may fall within only one of the eight - * child nodes to make a radically imbalanced layout within the node (to - * be divided). Argument ptMode specifies whether the point is not inserted - * at all but instead only the point index is provided upon 0, the point is - * inserted via vtkPoints.InsertPoint() upon 1, or the point is inserted by - * vtkPoints.InsertNextPoint() upon 2. The returned value of this function - * indicates whether pntIds needs to be destroyed (1) or just unregistered - * from this node as it has been attached to another node (0). - * numberOfNodes in the tree is updated with new created nodes - * - * @param {vtkPoints} points - * @param {Number[]} pntIds - * @param {Vector3} newPnt - * @param {Number} pntIdx - * @param {Number} maxPts - * @param {Number} ptMode - * @param {Number} numberOfNodes - */ - createChildNodes( - points: vtkPoints, - pntIds: number[], - newPnt: Vector3, - pntIdx: number, - maxPts: number, - ptMode: number, - numberOfNodes: number - ): { success: boolean; numberOfNodes: number; pointIdx: number }; - - /** - * This function is called after a successful point-insertion check and - * only applies to a leaf node. Prior to a call to this function, the - * octree should have been retrieved top-down to find the specific leaf - * node in which this new point (newPt) will be inserted. The actual index - * of the new point (to be inserted to points) is stored in pntId. Argument - * ptMode specifies whether the point is not inserted at all but instead only - * the point index is provided upon 0, the point is inserted via vtkPoints. - * insertPoint() upon 1, or it is inserted via vtkPoints.insertNextPoint() - * upon 2. For case 0, pntId needs to be specified. For cases 1 and 2, the - * actual point index is returned via pntId. Note that this function always - * returns 1 to indicate the success of point insertion. - * numberOfNodes is the number of nodes present in the tree at this time. - * it is used to assign an ID to each node which can be used to associate - * application specific information with each node. It is updated if new nodes - * are added to the tree. - * - * @param {Number} points - * @param {Number} newPnt - * @param {Number} maxPts - * @param {Number} pntId - * @param {Number} ptMode - * @param {Number} numberOfNodes - */ - insertPoint( - points: number, - newPnt: number, - maxPts: number, - pntId: number, - ptMode: number, - numberOfNodes: number - ): { numberOfNodes: number; pointIdx: number }; - - /** - * Compute the minimum squared distance from a point to this node, with all - * six boundaries considered. The data bounding box is checked if checkData - * is non-zero. The closest on-boundary point is returned via closest. - * - * @param {Vector3} point - * @param {Vector3} closest - * @param {Boolean} innerOnly - * @param {vtkIncrementalOctreeNode} rootNode - * @param {Boolean} checkData - * @returns {Number} - */ - getDistance2ToBoundary( - point: Vector3, - closest: Vector3, - innerOnly: boolean, - rootNode: vtkIncrementalOctreeNode, - checkData: boolean - ): number; - - /** - * Given a point inside this node, get the minimum squared distance to all - * inner boundaries. An inner boundary is a node's face that is shared by - * another non-root node. - * - * @param {Vector3} point - * @param {vtkIncrementalOctreeNode} rootNode - */ - getDistance2ToInnerBoundary( - point: Vector3, - rootNode: vtkIncrementalOctreeNode - ): number; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -/** - * Method use to decorate a given object (publicAPI+model) with vtkIncrementalOctreeNode characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {object} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: object -): void; - -// ---------------------------------------------------------------------------- - -/** - * Method use to create a new instance of vtkIncrementalOctreeNode - * @param {IIncrementalOctreeNodeInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IIncrementalOctreeNodeInitialValues -): vtkIncrementalOctreeNode; - -/** - * vtkIncrementalOctreeNode - */ -export declare const vtkIncrementalOctreeNode: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkIncrementalOctreeNode; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/IncrementalOctreeNode.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/IncrementalOctreeNode.js deleted file mode 100644 index 82d512df..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/IncrementalOctreeNode.js +++ /dev/null @@ -1,610 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { f as distance2BetweenPoints } from '../Core/Math/index.js'; - -const { - vtkErrorMacro -} = macro; -const OCTREENODE_INSERTPOINT = [(points, pointIdx, coords) => pointIdx, (points, pointIdx, coords) => { - points.setTuple(pointIdx, coords); - return pointIdx; -}, (points, pointIdx, coords) => points.insertNextTuple(coords)]; - -// Given the index (0 ~ 7) of a child node, the spatial bounding axis (0 ~ 2 -// for x, y, and z), and the value (0 ~ 1 for min and max) to access, this LUT -// allows for rapid assignment of its spatial bounding box --- MinBounds[3] -// and MaxBounds[3], with each specific value or entry of this LUT pointing to -// MinBounds[3] for 0, center point for 1, or MaxBounds[3] for 2. -const OCTREE_CHILD_BOUNDS_LUT = [[[0, 1], [0, 1], [0, 1]], [[1, 2], [0, 1], [0, 1]], [[0, 1], [1, 2], [0, 1]], [[1, 2], [1, 2], [0, 1]], [[0, 1], [0, 1], [1, 2]], [[1, 2], [0, 1], [1, 2]], [[0, 1], [1, 2], [1, 2]], [[1, 2], [1, 2], [1, 2]]]; -function vtkIncrementalOctreeNode(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkIncrementalOctreeNode'); - - //------------------------------------------------------------------------------ - publicAPI.createPointIdSet = (initSize, growSize) => { - if (model.pointIdSet == null) { - model.pointIdSet = []; - // TODO: use initSize and growSize. - // model.pointIdSet.allocate(initSize, growSize); - } - }; - - //------------------------------------------------------------------------------ - publicAPI.setBounds = (x1, x2, y1, y2, z1, z2) => { - if (model.minBounds == null) model.minBounds = []; - if (model.maxBounds == null) model.maxBounds = []; - if (model.minDataBounds == null) model.minDataBounds = []; - if (model.maxDataBounds == null) model.maxDataBounds = []; - model.minBounds[0] = x1; - model.maxBounds[0] = x2; - model.minBounds[1] = y1; - model.maxBounds[1] = y2; - model.minBounds[2] = z1; - model.maxBounds[2] = z2; - model.minDataBounds[0] = x2; - model.maxDataBounds[0] = x1; - model.minDataBounds[1] = y2; - model.maxDataBounds[1] = y1; - model.minDataBounds[2] = z2; - model.maxDataBounds[2] = z1; - }; - - //------------------------------------------------------------------------------ - publicAPI.getBounds = bounds => { - bounds[0] = model.minBounds[0]; - bounds[1] = model.maxBounds[0]; - bounds[2] = model.minBounds[1]; - bounds[3] = model.maxBounds[1]; - bounds[4] = model.minBounds[2]; - bounds[5] = model.maxBounds[2]; - }; - publicAPI.getChildIndex = point => Number(point[0] > model.children[0].getMaxBoundsByReference()[0]) + ( - // eslint-disable-next-line no-bitwise - Number(point[1] > model.children[0].getMaxBoundsByReference()[1]) << 1) + ( - // eslint-disable-next-line no-bitwise - Number(point[2] > model.children[0].getMaxBoundsByReference()[2]) << 2); - publicAPI.containsPoint = pnt => model.minBounds[0] < pnt[0] && pnt[0] <= model.maxBounds[0] && model.minBounds[1] < pnt[1] && pnt[1] <= model.maxBounds[1] && model.minBounds[2] < pnt[2] && pnt[2] <= model.maxBounds[2] ? 1 : 0; - publicAPI.containsPointByData = pnt => model.minDataBounds[0] <= pnt[0] && pnt[0] <= model.maxDataBounds[0] && model.minDataBounds[1] <= pnt[1] && pnt[1] <= model.maxDataBounds[1] && model.minDataBounds[2] <= pnt[2] && pnt[2] <= model.maxDataBounds[2] ? 1 : 0; - - //------------------------------------------------------------------------------ - publicAPI.updateCounterAndDataBounds = (point, nHits, updateData) => { - model.numberOfPoints += nHits; - if (!updateData) return false; - let updated = false; - if (point[0] < model.minDataBounds[0]) { - updated = true; - model.minDataBounds[0] = point[0]; - } - if (point[0] > model.maxDataBounds[0]) { - updated = true; - model.maxDataBounds[0] = point[0]; - } - if (point[1] < model.minDataBounds[1]) { - updated = true; - model.minDataBounds[1] = point[1]; - } - if (point[1] > model.maxDataBounds[1]) { - updated = true; - model.maxDataBounds[1] = point[1]; - } - if (point[2] < model.minDataBounds[2]) { - updated = true; - model.minDataBounds[2] = point[2]; - } - if (point[2] > model.maxDataBounds[2]) { - updated = true; - model.maxDataBounds[2] = point[2]; - } - return updated; - }; - - //------------------------------------------------------------------------------ - publicAPI.updateCounterAndDataBoundsRecursively = (point, nHits, updateData, endNode) => { - const updated = publicAPI.updateCounterAndDataBounds(point, nHits, updateData); - return model.parent === endNode ? updated : model.parent.updateCounterAndDataBoundsRecursively(point, nHits, updated, endNode); - }; - - //------------------------------------------------------------------------------ - publicAPI.containsDuplicatePointsOnly = point => model.minDataBounds[0] === point[0] && point[0] === model.maxDataBounds[0] && model.minDataBounds[1] === point[1] && point[1] === model.maxDataBounds[1] && model.minDataBounds[2] === point[2] && point[2] === model.maxDataBounds[2]; - - //------------------------------------------------------------------------------ - publicAPI.isLeaf = () => model.children == null; - - //------------------------------------------------------------------------------ - publicAPI.getChild = i => model.children[i]; - - //------------------------------------------------------------------------------ - /* eslint-disable no-use-before-define */ - publicAPI.separateExactlyDuplicatePointsFromNewInsertion = (points, pntIds, newPnt, pntIdx, maxPts, ptMode) => { - // the number of points already maintained in this leaf node - // >= maxPts AND all of them are exactly duplicate with one another - // BUT the new point is not a duplicate of them any more - let pointIdx = pntIdx; - let i; - const dupPnt = [0.0, 0.0, 0.0]; - const octMin = [0.0, 0.0, 0.0]; - const octMid = [0.0, 0.0, 0.0]; - const octMax = [0.0, 0.0, 0.0]; - const boxPtr = [null, null, null]; - let ocNode = null; - let duplic = publicAPI; - let single = publicAPI; - - // the coordinate of the duplicate points: note pntIds == model.pointIdSet - points.getPoint(pntIds[0], dupPnt); - while (duplic === single) { - // as long as separation has not been achieved - // update the current (in recursion) node and access the bounding box info - ocNode = duplic; - octMid[0] = (ocNode.minBounds[0] + ocNode.maxBounds[0]) * 0.5; - octMid[1] = (ocNode.minBounds[1] + ocNode.maxBounds[1]) * 0.5; - octMid[2] = (ocNode.minBounds[2] + ocNode.maxBounds[2]) * 0.5; - boxPtr[0] = ocNode.minBounds; - boxPtr[1] = octMid; - boxPtr[2] = ocNode.maxBounds; - - // create eight child nodes - // FIXME: May be too slow to use vtk newInstance() - ocNode.children = [newInstance(), newInstance(), newInstance(), newInstance(), newInstance(), newInstance(), newInstance(), newInstance()]; - for (i = 0; i < 8; i++) { - // x-bound: axis 0 - octMin[0] = boxPtr[OCTREE_CHILD_BOUNDS_LUT[i][0][0]][0]; - octMax[0] = boxPtr[OCTREE_CHILD_BOUNDS_LUT[i][0][1]][0]; - - // y-bound: axis 1 - octMin[1] = boxPtr[OCTREE_CHILD_BOUNDS_LUT[i][1][0]][1]; - octMax[1] = boxPtr[OCTREE_CHILD_BOUNDS_LUT[i][1][1]][1]; - - // z-bound: axis 2 - octMin[2] = boxPtr[OCTREE_CHILD_BOUNDS_LUT[i][2][0]][2]; - octMax[2] = boxPtr[OCTREE_CHILD_BOUNDS_LUT[i][2][1]][2]; - ocNode.children[i] = newInstance(); - ocNode.children[i].setParent(ocNode); - ocNode.children[i].setBounds(octMin[0], octMax[0], octMin[1], octMax[1], octMin[2], octMax[2]); - } - - // determine the leaf node of the duplicate points & that of the new point - duplic = ocNode.children[ocNode.getChildIndex(dupPnt)]; - single = ocNode.children[ocNode.getChildIndex(newPnt)]; - } - // Now the duplicate points have been separated from the new point // - - // create a vtkIdList object for the new point - // update the counter and the data bounding box until the root node - // (including the root node) - pointIdx = OCTREENODE_INSERTPOINT[ptMode](points, pointIdx, newPnt); - // eslint-disable-next-line no-bitwise - single.createPointIdSet(maxPts >> 2, maxPts >> 1); - single.getPointIdSet().push(pointIdx); - single.updateCounterAndDataBoundsRecursively(newPnt, 1, 1, null); - - // We just need to reference pntIds while un-registering it from 'this'. - // This avoids deep-copying point ids from pntIds to duplic's PointIdSet. - // update the counter and the data bounding box, but until 'this' node - // (excluding 'this' node) - duplic.setPointIdSet(pntIds); - duplic.updateCounterAndDataBoundsRecursively(dupPnt, pntIds.length, 1, publicAPI); - return pointIdx; - }; - /* eslint-enable no-use-before-define */ - - //------------------------------------------------------------------------------ - publicAPI.createChildNodes = (points, pntIds, newPnt, pntIdx, maxPts, ptMode, numberOfNodes) => { - // There are two scenarios for which this function is invoked. - // - // (1) the number of points already maintained in this leaf node - // == maxPts AND not all of them are exactly duplicate - // AND the new point is not a duplicate of them all - // (2) the number of points already maintained in this leaf node - // >= maxPts AND all of them are exactly duplicate with one another - // BUT the new point is not a duplicate of them any more - - // address case (2) first if necessary - let nbNodes = numberOfNodes; - let pointIdx = pntIdx; - const sample = []; - points.getPoint(pntIds[0], sample); - if (publicAPI.containsDuplicatePointsOnly(sample)) { - pointIdx = publicAPI.separateExactlyDuplicatePointsFromNewInsertion(points, pntIds, newPnt, pointIdx, maxPts, ptMode); - return { - success: false, - nbNodes, - pointIdx - }; - } - - // then address case (1) below - let i; - let target; - let dvidId = -1; // index of the sub-dividing octant, if any - let fullId = -1; // index of the full octant, if any - const numIds = [0, 0, 0, 0, 0, 0, 0, 0]; - const octMin = []; - const octMax = []; - const tempPt = []; - let tempId; - const octMid = [(model.minBounds[0] + model.maxBounds[0]) * 0.5, (model.minBounds[1] + model.maxBounds[1]) * 0.5, (model.minBounds[2] + model.maxBounds[2]) * 0.5]; - const boxPtr = [model.minBounds, octMid, model.maxBounds]; - - // create eight child nodes - model.children = []; - for (i = 0; i < 8; i++) { - // x-bound: axis 0 - octMin[0] = boxPtr[OCTREE_CHILD_BOUNDS_LUT[i][0][0]][0]; - octMax[0] = boxPtr[OCTREE_CHILD_BOUNDS_LUT[i][0][1]][0]; - - // y-bound: axis 1 - octMin[1] = boxPtr[OCTREE_CHILD_BOUNDS_LUT[i][1][0]][1]; - octMax[1] = boxPtr[OCTREE_CHILD_BOUNDS_LUT[i][1][1]][1]; - - // z-bound: axis 2 - octMin[2] = boxPtr[OCTREE_CHILD_BOUNDS_LUT[i][2][0]][2]; - octMax[2] = boxPtr[OCTREE_CHILD_BOUNDS_LUT[i][2][1]][2]; - - // This call internally sets the cener and default data bounding box, too. - // eslint-disable-next-line no-use-before-define - model.children[i] = newInstance(); - // model.children[i].iD = nbNodes++; - model.children[i].setParent(publicAPI); - model.children[i].setBounds(octMin[0], octMax[0], octMin[1], octMax[1], octMin[2], octMax[2]); - - // allocate a list of point-indices (size = 2^n) for index registration - // eslint-disable-next-line no-bitwise - model.children[i].createPointIdSet(maxPts >> 2, maxPts >> 1); - } - boxPtr[0] = null; - boxPtr[1] = null; - boxPtr[2] = null; - - // distribute the available point-indices to the eight child nodes - for (i = 0; i < maxPts; i++) { - tempId = pntIds[i]; - points.getPoint(tempId, tempPt); - target = publicAPI.getChildIndex(tempPt); - model.children[target].getPointIdSet().push(tempId); - model.children[target].updateCounterAndDataBounds(tempPt); - numIds[target]++; - } - - // locate the full child, just if any - for (i = 0; i < 8; i++) { - if (numIds[i] === maxPts) { - fullId = i; - break; - } - } - target = publicAPI.getChildIndex(newPnt); - if (fullId === target) { - // The fact is that we are going to insert the new point to an already - // full octant (child node). Thus we need to further divide this child - // to avoid the overflow problem. - ({ - numberOfNodes: nbNodes, - pointIdx - } = model.children[target].createChildNodes(points, pntIds, newPnt, pointIdx, maxPts, ptMode, nbNodes)); - dvidId = fullId; - } else { - // the initial division is a success - pointIdx = OCTREENODE_INSERTPOINT[ptMode](points, pointIdx, newPnt); - model.children[target].getPointIdSet().push(pointIdx); - model.children[target].updateCounterAndDataBoundsRecursively(newPnt, 1, 1, null); - - // NOTE: The counter below might reach the threshold, though we delay the - // sub-division of this child node until the next point insertion occurs. - numIds[target]++; - } - - // Now it is time to reclaim those un-used vtkIdList objects, of which each - // either is empty or still needs to be deleted due to further division of - // the child node. This post-deallocation of the un-used vtkIdList objects - // (of some child nodes) is based on the assumption that retrieving the - // 'maxPts' points from vtkPoints and the associated 'maxPts' point-indices - // from vtkIdList is more expensive than reclaiming at most 8 vtkIdList - // objects at hand. - for (i = 0; i < 8; i++) { - if (numIds[i] === 0 || i === dvidId) { - model.children[i].getPointIdSet().length = 0; - } - } - - // notify vtkIncrementalOctreeNode::InsertPoint() to destroy pntIds - return { - success: true, - numberOfNodes: nbNodes, - pointIdx - }; - }; - - //------------------------------------------------------------------------------ - publicAPI.insertPoint = (points, newPnt, maxPts, pntId, ptMode, numberOfNodes) => { - let nbNodes = 0; - let pointIdx = pntId; - if (model.pointIdSet) { - // there has been at least one point index - if (model.pointIdSet.length < maxPts || publicAPI.containsDuplicatePointsOnly(newPnt)) { - // this leaf node is not full or - // this leaf node is full, but of all exactly duplicate points - // and the point under check is another duplicate of these points - pointIdx = OCTREENODE_INSERTPOINT[ptMode](points, pointIdx, newPnt); - model.pointIdSet.push(pointIdx); - publicAPI.updateCounterAndDataBoundsRecursively(newPnt, 1, 1, null); - } else { - // overflow: divide this node and delete the list of point-indices. - // Note that the number of exactly duplicate points might be greater - // than or equal to maxPts. - ({ - numberOfNodes: nbNodes, - pointIdx - } = publicAPI.createChildNodes(points, model.pointIdSet, newPnt, pointIdx, maxPts, ptMode, numberOfNodes)); - model.pointIdSet = null; - } - } else { - // There has been no any point index registered in this leaf node - pointIdx = OCTREENODE_INSERTPOINT[ptMode](points, pointIdx, newPnt); - model.pointIdSet = []; - model.pointIdSet.push(pointIdx); - publicAPI.updateCounterAndDataBoundsRecursively(newPnt, 1, 1, null); - } - return { - numberOfNodes: numberOfNodes + nbNodes, - pointIdx - }; - }; - - //------------------------------------------------------------------------------ - publicAPI.getDistance2ToBoundary = (point, closest, innerOnly, rootNode, checkData) => { - // It is mandatory that GetMinDataBounds() and GetMaxDataBounds() be used. - // Direct access to MinDataBounds and MaxDataBounds might incur problems. - let thisMin = null; - let thisMax = null; - let rootMin = null; - let rootMax = null; - // TODO: Check - // let minDist = VTK_DOUBLE_MAX; - let minDist = Number.MAX_VALUE; // minimum distance to the boundaries - if (checkData) { - thisMin = publicAPI.getMinDataBounds(); - thisMax = publicAPI.getMaxDataBounds(); - rootMin = rootNode.getMinDataBounds(); - rootMax = rootNode.getMaxDataBounds(); - } else { - thisMin = model.minBounds; - thisMax = model.maxBounds; - rootMin = rootNode.getMinBounds(); - rootMax = rootNode.getMaxBounds(); - } - let minFace = 0; // index of the face with min distance to the point - const beXless = Number(point[0] < thisMin[0]); - const beXmore = Number(point[0] > thisMax[0]); - const beYless = Number(point[1] < thisMin[1]); - const beYmore = Number(point[1] > thisMax[1]); - const beZless = Number(point[2] < thisMin[2]); - const beZmore = Number(point[2] > thisMax[2]); - const withinX = Number(!beXless && !beXmore); - const withinY = Number(!beYless && !beYmore); - const withinZ = Number(!beZless && !beZmore); - // eslint-disable-next-line no-bitwise - const xyzFlag = (withinZ << 2) + (withinY << 1) + withinX; - switch (xyzFlag) { - case 0: - { - // withinZ = 0; withinY = 0; withinX = 0 - // closest to a corner - - closest[0] = beXless ? thisMin[0] : thisMax[0]; - closest[1] = beYless ? thisMin[1] : thisMax[1]; - closest[2] = beZless ? thisMin[2] : thisMax[2]; - minDist = distance2BetweenPoints(point, closest); - break; - } - case 1: - { - // withinZ = 0; withinY = 0; withinX = 1 - // closest to an x-aligned edge - - closest[0] = point[0]; - closest[1] = beYless ? thisMin[1] : thisMax[1]; - closest[2] = beZless ? thisMin[2] : thisMax[2]; - minDist = distance2BetweenPoints(point, closest); - break; - } - case 2: - { - // withinZ = 0; withinY = 1; withinX = 0 - // closest to a y-aligned edge - - closest[0] = beXless ? thisMin[0] : thisMax[0]; - closest[1] = point[1]; - closest[2] = beZless ? thisMin[2] : thisMax[2]; - minDist = distance2BetweenPoints(point, closest); - break; - } - case 3: - { - // withinZ = 0; withinY = 1; withinX = 1 - // closest to a z-face - - if (beZless) { - minDist = thisMin[2] - point[2]; - closest[2] = thisMin[2]; - } else { - minDist = point[2] - thisMax[2]; - closest[2] = thisMax[2]; - } - minDist *= minDist; - closest[0] = point[0]; - closest[1] = point[1]; - break; - } - case 4: - { - // withinZ = 1; withinY = 0; withinX = 0 - // cloest to a z-aligned edge - - closest[0] = beXless ? thisMin[0] : thisMax[0]; - closest[1] = beYless ? thisMin[1] : thisMax[1]; - closest[2] = point[2]; - minDist = distance2BetweenPoints(point, closest); - break; - } - case 5: - { - // withinZ = 1; withinY = 0; withinX = 1 - // closest to a y-face - - if (beYless) { - minDist = thisMin[1] - point[1]; - closest[1] = thisMin[1]; - } else { - minDist = point[1] - thisMax[1]; - closest[1] = thisMax[1]; - } - minDist *= minDist; - closest[0] = point[0]; - closest[2] = point[2]; - break; - } - case 6: - { - // withinZ = 1; withinY = 1; withinX = 0 - // closest to an x-face - - if (beXless) { - minDist = thisMin[0] - point[0]; - closest[0] = thisMin[0]; - } else { - minDist = point[0] - thisMax[0]; - closest[0] = thisMax[0]; - } - minDist *= minDist; - closest[1] = point[1]; - closest[2] = point[2]; - break; - } - case 7: - { - // withinZ = 1; withinY = 1; withinZ = 1 - // point is inside the box - - if (innerOnly) { - // check only inner boundaries - let faceDst; - faceDst = point[0] - thisMin[0]; // x-min face - if (thisMin[0] !== rootMin[0] && faceDst < minDist) { - minFace = 0; - minDist = faceDst; - } - faceDst = thisMax[0] - point[0]; // x-max face - if (thisMax[0] !== rootMax[0] && faceDst < minDist) { - minFace = 1; - minDist = faceDst; - } - faceDst = point[1] - thisMin[1]; // y-min face - if (thisMin[1] !== rootMin[1] && faceDst < minDist) { - minFace = 2; - minDist = faceDst; - } - faceDst = thisMax[1] - point[1]; // y-max face - if (thisMax[1] !== rootMax[1] && faceDst < minDist) { - minFace = 3; - minDist = faceDst; - } - faceDst = point[2] - thisMin[2]; // z-min face - if (thisMin[2] !== rootMin[2] && faceDst < minDist) { - minFace = 4; - minDist = faceDst; - } - faceDst = thisMax[2] - point[2]; // z-max face - if (thisMax[2] !== rootMax[2] && faceDst < minDist) { - minFace = 5; - minDist = faceDst; - } - } else { - // check all boundaries - const tmpDist = [point[0] - thisMin[0], thisMax[0] - point[0], point[1] - thisMin[1], thisMax[1] - point[1], point[2] - thisMin[2], thisMax[2] - point[2]]; - for (let i = 0; i < 6; i++) { - if (tmpDist[i] < minDist) { - minFace = i; - minDist = tmpDist[i]; - } - } - } - - // no square operation if no any inner boundary - if (minDist !== Number.MAX_VALUE) { - minDist *= minDist; - } - closest[0] = point[0]; - closest[1] = point[1]; - closest[2] = point[2]; - - // minFace: the quad with the min distance to the point - // 0: x-min face ===> xyzIndx = 0: x and minFace & 1 = 0: thisMin - // 1: x-max face ===> xyzIndx = 0: x and minFace & 1 = 1: thisMax - // 2: y-min face ===> xyzIndx = 1: y and minFace & 1 = 0: thisMin - // 3: y-max face ===> xyzIndx = 1: y and minFace & 1 = 1: thisMax - // 4: z-min face ===> xyzIndx = 2: z and minFace & 1 = 0: thisMin - // 5: z-max face ===> xyzIndx = 2: z and minFace & 1 = 1: thisMax - const pMinMax = [thisMin, thisMax]; - // eslint-disable-next-line no-bitwise - const xyzIndx = minFace >> 1; - // eslint-disable-next-line no-bitwise - closest[xyzIndx] = pMinMax[minFace & 1][xyzIndx]; - break; - } - default: - vtkErrorMacro('unexpected case in getDistance2ToBoundary'); - } - return minDist; - }; - - //------------------------------------------------------------------------------ - publicAPI.getDistance2ToInnerBoundary = (point, rootNode) => { - const dummy = []; - return publicAPI.getDistance2ToBoundary(point, dummy, 0, rootNode, 0); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - pointIdSet: null, - minBounds: null, - maxBounds: null, - minDataBounds: null, - maxDataBounds: null, - parent: null, - children: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - macro.setGetArray(publicAPI, model, ['minBounds', 'maxBounds', 'minDataBounds', 'maxDataBounds'], 6); - macro.get(publicAPI, model, ['pointIdSet', 'numberOfPoints']); - - // TODO: No get? - macro.set(publicAPI, model, ['parent']); - - // Object specific methods - vtkIncrementalOctreeNode(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkIncrementalOctreeNode'); - -// ---------------------------------------------------------------------------- - -var vtkIncrementalOctreeNode$1 = { - newInstance, - extend -}; - -export { vtkIncrementalOctreeNode$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/IncrementalOctreePointLocator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/IncrementalOctreePointLocator.d.ts deleted file mode 100644 index 0868a40f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/IncrementalOctreePointLocator.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import vtkPoints from './../Core/Points'; -import vtkIncrementalOctreeNode from './IncrementalOctreeNode'; -import { IAbstractPointLocatorInitialValues } from './AbstractPointLocator'; - -/** - * - */ -export interface IIncrementalOctreePointLocatorInitialValues - extends IAbstractPointLocatorInitialValues { - fudgeFactor: number; - octreeMaxDimSize: number; - buildCubicOctree: boolean; - maxPointsPerLeaf: number; - insertTolerance2: number; - locatorPoints: vtkPoints; - octreeRootNode: vtkIncrementalOctreeNode; - numberOfNodes: number; -} - -type vtkIncrementalOctreePointLocatorBase = vtkObject; - -export interface vtkIncrementalOctreePointLocator - extends vtkIncrementalOctreePointLocatorBase {} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -/** - * Method use to decorate a given object (publicAPI+model) with vtkIncrementalOctreePointLocator characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {object} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IIncrementalOctreePointLocatorInitialValues -): void; - -// ---------------------------------------------------------------------------- - -/** - * Method use to create a new instance of vtkIncrementalOctreePointLocator - * @param {IIncrementalOctreePointLocatorInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IIncrementalOctreePointLocatorInitialValues -): vtkIncrementalOctreePointLocator; - -/** - * vtkIncrementalOctreePointLocator - */ -export declare const vtkIncrementalOctreePointLocator: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkIncrementalOctreePointLocator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/IncrementalOctreePointLocator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/IncrementalOctreePointLocator.js deleted file mode 100644 index a6b2e7ad..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/IncrementalOctreePointLocator.js +++ /dev/null @@ -1,360 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { b as vtkMath } from '../Core/Math/index.js'; -import vtkBoundingBox from './BoundingBox.js'; -import vtkIncrementalOctreeNode from './IncrementalOctreeNode.js'; -import vtkAbstractPointLocator from './AbstractPointLocator.js'; -import { VtkDataTypes } from '../Core/DataArray/Constants.js'; - -const { - vtkErrorMacro -} = macro; -function vtkIncrementalOctreePointLocator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkIncrementalOctreePointLocator'); - function getLeafContainer(node, pnt) { - return node.isLeaf() ? node : getLeafContainer(node.getChild(node.getChildIndex(pnt)), pnt); - } - - //------------------------------------------------------------------------------ - publicAPI.freeSearchStructure = () => { - model.octreeRootNode = null; - model.numberOfNodes = 0; - model.locatorPoints = null; - }; - - //------------------------------------------------------------------------------ - publicAPI.findClosestPointInLeafNode = (leafNode, point) => { - // NOTE: dist2 MUST be initiated with a very huge value below, but instead of - // model.octreeMaxDimSize * model.octreeMaxDimSize * 4.0, because the point - // under check may be outside the octree and hence the squared distance can - // be greater than the latter or other similar octree-based specific values. - let dist2 = Number.MAX_VALUE; - if (leafNode.getPointIdSet() == null) { - return [-1, dist2]; - } - let numPts = 0; - let tmpDst = 0.0; - const tmpPnt = []; - let tmpIdx = -1; - let pntIdx = -1; - let idList = leafNode.getPointIdSet(); - numPts = idList.length; - for (let i = 0; i < numPts; i++) { - tmpIdx = idList[i]; - model.locatorPoints.getPoint(tmpIdx, tmpPnt); - tmpDst = vtkMath.distance2BetweenPoints(tmpPnt, point); - if (tmpDst < dist2) { - dist2 = tmpDst; - pntIdx = tmpIdx; - } - if (dist2 === 0.0) { - break; - } - } - idList = null; - return [pntIdx, dist2]; - }; - publicAPI.findClosestPointInSphere = (point, radius2, maskNode, refDist2) => { - let pointIndx = -1; - let minDist2 = Number.MAX_VALUE; - const nodesBase = []; - nodesBase.push(model.octreeRootNode); - let checkNode; - let childNode; - let distToData; - let tempDist2; - let tempPntId; - while (!nodesBase.length === 0 && minDist2 > 0.0) { - checkNode = nodesBase.top(); - nodesBase.pop(); - if (!checkNode.isLeaf()) { - for (let i = 0; i < 8; i++) { - childNode = checkNode.getChild(i); - - // use ( radius2 + radius2 ) to skip empty nodes - distToData = childNode.getNumberOfPoints() ? childNode.getDistance2ToBoundary(point, model.octreeRootNode, 1) : radius2 + radius2; - - // If a child node is not the mask node AND its distance, specifically - // the data bounding box (determined by the points inside or under) to - // the point, is less than the threshold radius (one exception is the - // point's container nodes), it is pushed to the stack as a suspect. - if (childNode !== maskNode && (distToData <= refDist2 || childNode.containsPoint(point) === 1)) { - nodesBase.push(childNode); - } - childNode = null; - } - } else { - // now that the node under check is a leaf, let's find the closest - // point therein and the minimum distance - - [tempPntId, tempDist2] = publicAPI.findClosestPointInLeafNode(checkNode, point); - if (tempDist2 < minDist2) { - minDist2 = tempDist2; - pointIndx = tempPntId; - } - } - checkNode = null; - } - return [minDist2 <= radius2 ? pointIndx : -1, minDist2]; - }; - - //------------------------------------------------------------------------------ - publicAPI.initPointInsertion = function (points, bounds) { - let i = 0; - let bbIndex = 0; - if (points == null) { - vtkErrorMacro('a valid vtkPoints object required for point insertion'); - return false; - } - - // destroy the existing octree, if any - publicAPI.freeSearchStructure(); - model.locatorPoints = points; - - // obtain the threshold squared distance - model.insertTolerance2 = model.tolerance * model.tolerance; - - // Fix bounds - // (1) push out a little bit if the original volume is too flat --- a slab - // (2) pull back the x, y, and z's lower bounds a little bit such that - // points are clearly "inside" the spatial region. Point p is taken as - // "inside" range r = [r1, r2] if and only if r1 < p <= r2. - model.octreeMaxDimSize = 0.0; - const tmpBbox = [...bounds]; - const dimDiff = vtkBoundingBox.getLengths(bounds); - model.octreeMaxDimSize = Math.max(...dimDiff); - if (model.buildCubicOctree) { - // make the bounding box a cube and hence descendant octants cubes too - for (i = 0; i < 3; i++) { - if (dimDiff[i] !== model.octreeMaxDimSize) { - const delta = model.octreeMaxDimSize - dimDiff[i]; - tmpBbox[2 * i] -= 0.5 * delta; - tmpBbox[2 * i + 1] += 0.5 * delta; - dimDiff[i] = model.octreeMaxDimSize; - } - } - } - model.fudgeFactor = model.octreeMaxDimSize * 10e-6; - const minSideSize = model.octreeMaxDimSize * 10e-2; - for (i = 0; i < 3; i++) { - if (dimDiff[i] < minSideSize) { - // case (1) above - bbIndex = 2 * i; - const tempVal = tmpBbox[bbIndex]; - tmpBbox[bbIndex] = tmpBbox[bbIndex + 1] - minSideSize; - tmpBbox[bbIndex + 1] = tempVal + minSideSize; - } else { - // case (2) above - tmpBbox[2 * i] -= model.fudgeFactor; - } - } - - // init the octree with an empty leaf node - model.octreeRootNode = vtkIncrementalOctreeNode.newInstance(); - ++model.numberOfNodes; - - // this call internally inits the middle (center) and data range, too - model.octreeRootNode.setBounds(...tmpBbox); - return true; - }; - publicAPI.findClosestPointInSphereWithTolerance = (point, radius2, maskNode) => publicAPI.findClosestPointInSphere(point, radius2, maskNode, model.octreeMaxDimSize * model.octreeMaxDimSize * 4.0, radius2); - - //------------------------------------------------------------------------------ - publicAPI.findDuplicateFloatTypePointInVisitedLeafNode = (leafNode, point) => { - let tmpPnt; - let tmpIdx = -1; - let pntIdx = -1; - - // float thePnt[3]; // TODO - // thePnt[0] = static_cast(point[0]); - // thePnt[1] = static_cast(point[1]); - // thePnt[2] = static_cast(point[2]); - - const idList = leafNode.getPointIdSet(); - // float* pFloat = (static_cast(model.locatorPoints.getData())).getPointer(0); - const values = model.locatorPoints.getData(); - for (let i = 0; i < idList.length; i++) { - tmpIdx = idList[i]; - // eslint-disable-next-line no-bitwise - tmpPnt = (tmpIdx << 1) + tmpIdx; - if (point[0] === values[tmpPnt] && point[1] === values[tmpPnt + 1] && point[2] === values[tmpPnt + 2]) { - pntIdx = tmpIdx; - break; - } - } - return pntIdx; - }; - - //------------------------------------------------------------------------------ - publicAPI.findDuplicateDoubleTypePointInVisitedLeafNode = (leafNode, point) => { - let tmpPnt; - let tmpIdx = -1; - let pntIdx = -1; - const idList = leafNode.getPointIdSet(); - const values = model.locatorPoints.getData(); - for (let i = 0; i < idList.length; i++) { - tmpIdx = idList[i]; - // eslint-disable-next-line no-bitwise - tmpPnt = (tmpIdx << 1) + tmpIdx; - if (point[0] === values[tmpPnt] && point[1] === values[tmpPnt + 1] && point[2] === values[tmpPnt + 2]) { - pntIdx = tmpIdx; - break; - } - } - return pntIdx; - }; - - //------------------------------------------------------------------------------ - publicAPI.findDuplicatePointInLeafNode = (leafNode, point) => { - if (leafNode.getPointIdSet() == null) { - return -1; - } - return model.locatorPoints.getDataType() === VtkDataTypes.FLOAT ? publicAPI.findDuplicateFloatTypePointInVisitedLeafNode(leafNode, point) : publicAPI.findDuplicateDoubleTypePointInVisitedLeafNode(leafNode, point); - }; - - //------------------------------------------------------------------------------ - publicAPI.insertPoint = (ptId, x) => { - const leafcontainer = getLeafContainer(model.octreeRootNode, x); - ({ - numberOfNodes: model.numberOfNodes - } = leafcontainer.insertPoint(model.locatorPoints, x, model.maxPointsPerLeaf, ptId, 1, model.numberOfNodes)); - }; - - //------------------------------------------------------------------------------ - publicAPI.insertUniquePoint = point => { - // TODO: We have a mix of let and const here. - // eslint-disable-next-line prefer-const - let { - pointIdx, - leafContainer - } = publicAPI.isInsertedPoint(point); - if (pointIdx > -1) { - return { - success: false, - idx: pointIdx - }; - } - // TODO: pointIdx - let numberOfNodes; - // eslint-disable-next-line prefer-const - ({ - numberOfNodes, - pointIdx - } = leafContainer.insertPoint(model.locatorPoints, point, model.maxPointsPerLeaf, pointIdx, 2, model.numberOfNodes)); - model.numberOfNodes = numberOfNodes; - return { - success: true, - idx: pointIdx - }; - }; - - //------------------------------------------------------------------------------ - publicAPI.insertNextPoint = x => { - const leafContainer = getLeafContainer(model.octreeRootNode, x); - const { - numberOfNodes, - pointIdx - } = leafContainer.insertPoint(model.locatorPoints, x, model.maxPointsPerLeaf, -1, 2, model.numberOfNodes); - model.numberOfNodes = numberOfNodes; - return pointIdx; - }; - - //------------------------------------------------------------------------------ - publicAPI.isInsertedPointForZeroTolerance = x => { - // the target leaf node always exists there since the root node of the - // octree has been initialized to cover all possible points to be inserted - // and therefore we do not need to check it here - const leafContainer = getLeafContainer(model.octreeRootNode, x); - const pointIdx = publicAPI.findDuplicatePointInLeafNode(leafContainer, x); - return { - pointIdx, - leafContainer - }; - }; - - //------------------------------------------------------------------------------ - publicAPI.isInsertedPointForNonZeroTolerance = x => { - // minDist2 // min distance to ALL existing points - // elseDst2 // min distance to other nodes (inner boundaries) - let dist2Ext; // min distance to an EXTended set of nodes - let pntIdExt; - - // the target leaf node always exists there since the root node of the - // octree has been initialized to cover all possible points to be inserted - // and therefore we do not need to check it here - const leafContainer = getLeafContainer(model.octreeRootNode, x); - let [pointIdx, minDist2] = publicAPI.findClosestPointInLeafNode(leafContainer, x); - if (minDist2 === 0.0) { - return { - pointIdx, - leafContainer - }; - } - - // As no any 'duplicate' point exists in this leaf node, we need to expand - // the search scope to capture possible closer points in other nodes. - const elseDst2 = leafContainer.getDistance2ToInnerBoundary(x, model.octreeRootNode); - if (elseDst2 < model.insertTolerance2) { - // one or multiple closer points might exist in the neighboring nodes - // TODO: dist2Ext - pntIdExt = publicAPI.findClosestPointInSphereWithTolerance(x, model.insertTolerance2, leafContainer, dist2Ext); - if (dist2Ext < minDist2) { - minDist2 = dist2Ext; - pointIdx = pntIdExt; - } - } - pointIdx = minDist2 <= model.insertTolerance2 ? pointIdx : -1; - return { - pointIdx, - leafContainer - }; - }; - - //------------------------------------------------------------------------------ - publicAPI.isInsertedPoint = (x, leafContainer) => model.insertTolerance2 === 0.0 ? publicAPI.isInsertedPointForZeroTolerance(x, leafContainer) : publicAPI.isInsertedPointForNonZeroTolerance(x, leafContainer); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - return { - fudgeFactor: 0, - octreeMaxDimSize: 0, - buildCubicOctree: false, - maxPointsPerLeaf: 128, - insertTolerance2: 0.000001, - locatorPoints: null, - octreeRootNode: null, - numberOfNodes: 0, - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - vtkAbstractPointLocator.extend(publicAPI, model, defaultValues(initialValues)); - - // Make this a VTK object - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['fudgeFactor', 'octreeMaxDimSize', 'buildCubicOctree', 'maxPointsPerLeaf', 'insertTolerance2', 'locatorPoints', 'octreeRootNode', 'numberOfNodes']); - - // Object specific methods - vtkIncrementalOctreePointLocator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkIncrementalOctreePointLocator'); - -// ---------------------------------------------------------------------------- - -var vtkIncrementalOctreePointLocator$1 = { - newInstance, - extend -}; - -export { vtkIncrementalOctreePointLocator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/KochanekSpline1D.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/KochanekSpline1D.d.ts deleted file mode 100644 index 2cd512f5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/KochanekSpline1D.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -import vtkSpline1D, { - ISpline1DInitialValues, - BoundaryCondition, -} from './Spline1D'; - -export interface IKochanekSpline1DInitialValues extends ISpline1DInitialValues { - tension?: number; - bias?: number; - continuity?: number; -} - -export interface vtkKochanekSpline1D extends vtkSpline1D { - /** - * - * @param {Number} size - * @param {Float32Array} work - * @param {Number[]} x - * @param {Number[]} y - */ - computeCloseCoefficients( - size: number, - work: Float32Array, - x: number[], - y: number[] - ): void; - - /** - * - * @param {Number} size - * @param {Float32Array} work - * @param {Number[]} x - * @param {Number[]} y - * @param {Object} options - * @param {BoundaryCondition} options.leftConstraint - * @param {Number} options.leftValue - * @param {BoundaryCondition} options.rightConstraint - * @param {Number} options.rightValue - */ - computeOpenCoefficients( - size: number, - work: Float32Array, - x: number[], - y: number[], - options: { - leftConstraint: BoundaryCondition; - leftValue: number; - rightConstraint: BoundaryCondition; - rightValue: Number; - } - ): void; - - /** - * - * @param {Number} intervalIndex - * @param {Number} t - */ - getValue(intervalIndex: number, t: number): number; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkKochanekSpline1D characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IKochanekSpline1DInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IKochanekSpline1DInitialValues -): void; - -/** - * Method used to create a new instance of vtkKochanekSpline1D. - * @param {IKochanekSpline1DInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IKochanekSpline1DInitialValues -): vtkKochanekSpline1D; - -/** - * vtkKochanekSpline1D provides methods for creating a Kochanek interpolating - * spline object from given parameters, and allows for the calculation of the - * spline value and derivative at any given point inside the spline intervals. - */ - -export declare const vtkKochanekSpline1D: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkKochanekSpline1D; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/KochanekSpline1D.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/KochanekSpline1D.js deleted file mode 100644 index 84d3c483..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/KochanekSpline1D.js +++ /dev/null @@ -1,216 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkSpline1D from './Spline1D.js'; -import { BoundaryCondition } from './Spline1D/Constants.js'; - -const VTK_EPSILON = 0.0001; - -// ---------------------------------------------------------------------------- -// vtkKochanekSpline1D methods -// ---------------------------------------------------------------------------- - -function vtkKochanekSpline1D(publicAPI, model) { - // Set our classname - model.classHierarchy.push('vtkKochanekSpline1D'); - - // -------------------------------------------------------------------------- - - publicAPI.computeCloseCoefficients = (size, work, x, y) => { - if (!model.coefficients || model.coefficients.length !== 4 * size) { - model.coefficients = new Float32Array(4 * size); - } - const N = size - 1; - for (let i = 1; i < N; i++) { - const cs = y[i] - y[i - 1]; - const cd = y[i + 1] - y[i]; - let ds = cs * ((1 - model.tension) * (1 - model.continuity) * (1 + model.bias)) + cd * ((1 - model.tension) * (1 + model.continuity) * (1 - model.bias)); - let dd = cs * ((1 - model.tension) * (1 + model.continuity) * (1 + model.bias)) + cd * ((1 - model.tension) * (1 - model.continuity) * (1 - model.bias)); - - // adjust deriviatives for non uniform spacing between nodes - const n1 = x[i + 1] - x[i]; - const n0 = x[i] - x[i - 1]; - ds *= n0 / (n0 + n1); - dd *= n1 / (n0 + n1); - model.coefficients[4 * i + 0] = y[i]; - model.coefficients[4 * i + 1] = dd; - model.coefficients[4 * i + 2] = ds; - } - - // Calculate the deriviatives at the end points - model.coefficients[4 * 0 + 0] = y[0]; - model.coefficients[4 * N + 0] = y[N]; - model.coefficients[4 * N + 1] = 0; - model.coefficients[4 * N + 2] = 0; - model.coefficients[4 * N + 3] = 0; - - // The curve is continuous and closed at P0=Pn - const cs = y[N] - y[N - 1]; - const cd = y[1] - y[0]; - let ds = cs * ((1 - model.tension) * (1 - model.continuity) * (1 + model.bias)) + cd * ((1 - model.tension) * (1 + model.continuity) * (1 - model.bias)); - let dd = cs * ((1 - model.tension) * (1 + model.continuity) * (1 + model.bias)) + cd * ((1 - model.tension) * (1 - model.continuity) * (1 - model.bias)); - - // adjust deriviatives for non uniform spacing between nodes - const n1 = x[1] - x[0]; - const n0 = x[N] - x[N - 1]; - ds *= n0 / (n0 + n1); - dd *= n1 / (n0 + n1); - model.coefficients[4 * 0 + 1] = dd; - model.coefficients[4 * 0 + 2] = ds; - model.coefficients[4 * N + 1] = dd; - model.coefficients[4 * N + 2] = ds; - for (let i = 0; i < N; i++) { - // - // c0 = P ; c1 = DD ; - // i i i i - // - // c1 = P ; c2 = DS ; - // i+1 i+1 i+1 i+1 - // - // c2 = -3P + 3P - 2DD - DS ; - // i i i+1 i i+1 - // - // c3 = 2P - 2P + DD + DS ; - // i i i+1 i i+1 - // - model.coefficients[4 * i + 2] = -3 * y[i] + 3 * y[i + 1] + -2 * model.coefficients[4 * i + 1] + -1 * model.coefficients[4 * (i + 1) + 2]; - model.coefficients[4 * i + 3] = 2 * y[i] + -2 * y[i + 1] + 1 * model.coefficients[4 * i + 1] + 1 * model.coefficients[4 * (i + 1) + 2]; - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.computeOpenCoefficients = function (size, work, x, y) { - let options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {}; - if (!model.coefficients || model.coefficients.length !== 4 * size) { - model.coefficients = new Float32Array(4 * size); - } - const N = size - 1; - for (let i = 1; i < N; i++) { - const cs = y[i] - y[i - 1]; - const cd = y[i + 1] - y[i]; - let ds = cs * ((1 - model.tension) * (1 - model.continuity) * (1 + model.bias)) + cd * ((1 - model.tension) * (1 + model.continuity) * (1 - model.bias)); - let dd = cs * ((1 - model.tension) * (1 + model.continuity) * (1 + model.bias)) + cd * ((1 - model.tension) * (1 - model.continuity) * (1 - model.bias)); - - // adjust deriviatives for non uniform spacing between nodes - const n1 = x[i + 1] - x[i]; - const n0 = x[i] - x[i - 1]; - ds *= n0 / (n0 + n1); - dd *= n1 / (n0 + n1); - model.coefficients[4 * i + 0] = y[i]; - model.coefficients[4 * i + 1] = dd; - model.coefficients[4 * i + 2] = ds; - } - model.coefficients[4 * 0 + 0] = y[0]; - model.coefficients[4 * N + 0] = y[N]; - - // Calculate the deriviatives at the end points - - switch (options.leftConstraint) { - // desired slope at leftmost point is leftValue - case BoundaryCondition.DERIVATIVE: - model.coefficients[4 * 0 + 1] = options.leftValue; - break; - case BoundaryCondition.SECOND_DERIVATIVE: - // desired second derivative at leftmost point is leftValue - model.coefficients[4 * 0 + 1] = (6 * (y[1] - y[0]) - 2 * model.coefficients[4 * 1 + 2] - options.leftValue) / 4; - break; - case BoundaryCondition.SECOND_DERIVATIVE_INTERIOR_POINT: - // desired second derivative at leftmost point is leftValue - // times second derivative at first interior point - if (Math.abs(options.leftValue + 2) > VTK_EPSILON) { - model.coefficients[4 * 0 + 1] = (3 * (1 + options.leftValue) * (y[1] - y[0]) - (1 + 2 * options.leftValue) * model.coefficients[4 * 1 + 2]) / (2 + options.leftValue); - } else { - model.coefficients[4 * 0 + 1] = 0.0; - } - break; - case BoundaryCondition.DEFAULT: - default: - // desired slope at leftmost point is derivative from two points - model.coefficients[4 * 0 + 1] = y[2] - y[0]; - break; - } - switch (options.rightConstraint) { - case BoundaryCondition.DERIVATIVE: - // desired slope at rightmost point is leftValue - model.coefficients[4 * N + 2] = options.leftValue; - break; - case BoundaryCondition.SECOND_DERIVATIVE: - // desired second derivative at rightmost point is leftValue - model.coefficients[4 * N + 2] = (6 * (y[N] - y[N - 1]) - 2 * model.coefficients[4 * (N - 1) + 1] + options.leftValue) / 4.0; - break; - case BoundaryCondition.SECOND_DERIVATIVE_INTERIOR_POINT: - // desired second derivative at rightmost point is leftValue - // times second derivative at last interior point - if (Math.abs(options.leftValue + 2) > VTK_EPSILON) { - model.coefficients[4 * N + 2] = (3 * (1 + options.leftValue) * (y[N] - y[N - 1]) - (1 + 2 * options.leftValue) * model.coefficients[4 * (N - 1) + 1]) / (2 + options.leftValue); - } else { - model.coefficients[4 * N + 2] = 0.0; - } - break; - case BoundaryCondition.DEFAULT: - default: - // desired slope at rightmost point is rightValue - model.coefficients[4 * N + 2] = y[N] - y[N - 2]; - break; - } - for (let i = 0; i < N; i++) { - // - // c0 = P ; c1 = DD ; - // i i i i - // - // c1 = P ; c2 = DS ; - // i+1 i+1 i+1 i+1 - // - // c2 = -3P + 3P - 2DD - DS ; - // i i i+1 i i+1 - // - // c3 = 2P - 2P + DD + DS ; - // i i i+1 i i+1 - // - model.coefficients[4 * i + 2] = -3 * y[i] + 3 * y[i + 1] + -2 * model.coefficients[4 * i + 1] + -1 * model.coefficients[4 * (i + 1) + 2]; - model.coefficients[4 * i + 3] = 2 * y[i] + -2 * y[i + 1] + 1 * model.coefficients[4 * i + 1] + 1 * model.coefficients[4 * (i + 1) + 2]; - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.getValue = (intervalIndex, t) => { - const t2 = t * t; - const t3 = t * t * t; - return model.coefficients[4 * intervalIndex + 3] * t3 + model.coefficients[4 * intervalIndex + 2] * t2 + model.coefficients[4 * intervalIndex + 1] * t + model.coefficients[4 * intervalIndex + 0]; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - tension: 0, - bias: 0, - continuity: 0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkSpline1D.extend(publicAPI, model, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - vtkKochanekSpline1D(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkKochanekSpline1D'); - -// ---------------------------------------------------------------------------- - -var vtkKochanekSpline1D$1 = { - newInstance, - extend -}; - -export { vtkKochanekSpline1D$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Line.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Line.d.ts deleted file mode 100644 index 23d7566b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Line.d.ts +++ /dev/null @@ -1,175 +0,0 @@ -import { quat } from 'gl-matrix'; -import { Vector3, Vector2, Nullable } from './../../types'; -import vtkCell from './Cell'; - -export enum IntersectionState { - NO_INTERSECTION, - YES_INTERSECTION, - ON_LINE, -} - -export interface ILineInitialValues { - orientations: Nullable; -} - -export interface IIntersectWithLine { - intersect: number; - t: number; - subId: number; - evaluation?: number; - betweenPoints?: boolean; -} - -interface IDistanceToLine { - t: number; - distance: number; -} - -export interface vtkLine extends vtkCell { - /** - * Get the topological dimensional of the cell (0, 1, 2 or 3). - */ - getCellDimension(): number; - - /** - * Get the list of orientations (a list of quat) for each point of the line. - * Can be null if the line is not oriented - */ - getOrientations(): Nullable; - - /** - * @see getOrientations - * @param orientations The list of orientation per point of the centerline - */ - setOrientations(orientations: Nullable): boolean; - - /** - * Compute the intersection point of the intersection between line and line - * defined by p1 and p2. tol Tolerance use for the position evaluation x is - * the point which intersect triangle (computed in function) pcoords - * parametric coordinates (computed in function) A javascript object is - * returned : - * - * ```js - * { - * evaluation: define if the line has been intersected or not - * subId: always set to 0 - * t: tolerance of the intersection - * } - * ``` - * @param {Vector3} p1 The first point coordinate. - * @param {Vector3} p2 The second point coordinate. - * @param {Number} tol The tolerance to use. - * @param {Vector3} x The point which intersect triangle. - * @param {Vector3} pcoords The parametric coordinates. - */ - intersectWithLine( - p1: Vector3, - p2: Vector3, - tol: number, - x: Vector3, - pcoords: Vector3 - ): IIntersectWithLine; - - /** - * Determine the global coordinates `x' and parametric coordinates `pcoords' in the cell. - */ - evaluateLocation(pcoords: Vector3, x: Vector3, weights: Vector2): void; - - /** - * Determine the global orientation `q' and parametric coordinates `pcoords' in the cell. - * Use slerp to interpolate orientation - * Returns wether the orientation has been set in `q' - */ - evaluateOrientation(pcoords: Vector3, q: quat, weights: Vector2): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkLine characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ILineInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ILineInitialValues -): void; - -/** - * Method used to create a new instance of vtkLine. - * @param {ILineInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: ILineInitialValues): vtkLine; - -/** - * Compute the distance from x to the line composed by p1 and p2. If an object - * is set as a fourth argument, then the closest point on the line from x will - * be set into it. - * - * ```js - * { - * t: tolerance of the distance - * distance: quared distance between closest point and x - * } - * ``` - * @static - * @param {Vector3} x - * @param {Vector3} p1 - * @param {Vector3} p2 - * @param {Vector3} [closestPoint] - */ -export function distanceToLine( - x: Vector3, - p1: Vector3, - p2: Vector3, - closestPoint?: Vector3 -): IDistanceToLine; - -/** - * Performs intersection of two finite 3D lines. An intersection is found if the - * projection of the two lines onto the plane perpendicular to the cross product - * of the two lines intersect, and if the distance between the closest * points - * of approach are within a relative tolerance. The parameters (u,v) are the - * parametric coordinates of the lines at the position of closest approach. - * Careful, u and v are filled inside the function. Outside the function, they - * have to be access with : u[0] and v[0] return IntersectionState enum : - * - * ```js - * enum IntersectionState { - * NO_INTERSECTION, - * YES_INTERSECTION, - * ON_LINE - * } - * ``` - * @static - * @param {Vector3} a1 - * @param {Vector3} a2 - * @param {Vector3} b1 - * @param {Vector3} b2 - * @param {Vector3} u - * @param {Vector3} v - */ -export function intersection( - a1: Vector3, - a2: Vector3, - b1: Vector3, - b2: Vector3, - u: Vector3, - v: Vector3 -): IntersectionState; - -/** - * vtkLine is a cell which representant a line. - * It contains static method to make some computations directly link to line. - * - * @see vtkCell - */ -export declare const vtkLine: { - newInstance: typeof newInstance; - extend: typeof extend; - distanceToLine: typeof distanceToLine; - intersection: typeof intersection; -}; -export default vtkLine; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Line.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Line.js deleted file mode 100644 index 27f28cd2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Line.js +++ /dev/null @@ -1,260 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import Constants from './Line/Constants.js'; -import vtkCell from './Cell.js'; -import { d as dot, f as distance2BetweenPoints, s as subtract, g as solveLinearSystem } from '../Core/Math/index.js'; -import { quat } from 'gl-matrix'; - -const { - IntersectionState -} = Constants; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- -function distanceToLine(x, p1, p2) { - let closestPoint = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; - const outObj = { - t: Number.MIN_VALUE, - distance: 0 - }; - const p21 = []; - let closest; - // Determine appropriate vector - p21[0] = p2[0] - p1[0]; - p21[1] = p2[1] - p1[1]; - p21[2] = p2[2] - p1[2]; - - // Get parametric location - const num = p21[0] * (x[0] - p1[0]) + p21[1] * (x[1] - p1[1]) + p21[2] * (x[2] - p1[2]); - const denom = dot(p21, p21); - - // trying to avoid an expensive fabs - let tolerance = 1e-5 * num; - if (denom !== 0.0) { - outObj.t = num / denom; - } - if (tolerance < 0.0) { - tolerance = -tolerance; - } - if (-tolerance < denom && denom < tolerance) { - closest = p1; - } else if (denom <= 0.0 || outObj.t < 0.0) { - // If parametric coordinate is within 0<=p<=1, then the point is closest to - // the line. Otherwise, it's closest to a point at the end of the line. - closest = p1; - } else if (outObj.t > 1.0) { - closest = p2; - } else { - closest = p21; - p21[0] = p1[0] + outObj.t * p21[0]; - p21[1] = p1[1] + outObj.t * p21[1]; - p21[2] = p1[2] + outObj.t * p21[2]; - } - if (closestPoint) { - closestPoint[0] = closest[0]; - closestPoint[1] = closest[1]; - closestPoint[2] = closest[2]; - } - outObj.distance = distance2BetweenPoints(closest, x); - return outObj; -} -function intersection(a1, a2, b1, b2, u, v) { - const a21 = []; - const b21 = []; - const b1a1 = []; - u[0] = 0.0; - v[0] = 0.0; - - // Determine line vectors. - subtract(a2, a1, a21); - subtract(b2, b1, b21); - subtract(b1, a1, b1a1); - - // Compute the system (least squares) matrix. - const A = [dot(a21, a21), -dot(a21, b21), -dot(a21, b21), dot(b21, b21)]; - - // Compute the least squares system constant term. - const c = []; - c[0] = dot(a21, b1a1); - c[1] = -dot(b21, b1a1); - // Solve the system of equations - if (solveLinearSystem(A, c, 2) === 0) { - // The lines are colinear. Therefore, one of the four endpoints is the - // point of closest approach - let minDist = Number.MAX_VALUE; - const p = [a1, a2, b1, b2]; - const l1 = [b1, b1, a1, a1]; - const l2 = [b2, b2, a2, a2]; - [v[0], v[0], u[0], u[0]]; - [u[0], u[0], v[0], v[0]]; - let obj; - for (let i = 0; i < 4; i++) { - obj = distanceToLine(p[i], l1[i], l2[i]); - if (obj.distance < minDist) { - minDist = obj.distance; - obj.t; - } - } - return IntersectionState.ON_LINE; - } - u[0] = c[0]; - v[0] = c[1]; - - // Check parametric coordinates for intersection. - if (u[0] >= 0.0 && u[0] <= 1.0 && v[0] >= 0.0 && v[0] <= 1.0) { - return IntersectionState.YES_INTERSECTION; - } - return IntersectionState.NO_INTERSECTION; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = { - distanceToLine, - intersection -}; - -// ---------------------------------------------------------------------------- -// vtkLine methods -// ---------------------------------------------------------------------------- - -function vtkLine(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkLine'); - function isBetweenPoints(t) { - return t >= 0.0 && t <= 1.0; - } - publicAPI.getCellDimension = () => 1; - publicAPI.intersectWithLine = (p1, p2, tol, x, pcoords) => { - const outObj = { - intersect: 0, - t: Number.MAX_VALUE, - subId: 0, - betweenPoints: null - }; - pcoords[1] = 0.0; - pcoords[2] = 0.0; - const projXYZ = []; - const a1 = []; - const a2 = []; - model.points.getPoint(0, a1); - model.points.getPoint(1, a2); - const u = []; - const v = []; - const intersect = intersection(p1, p2, a1, a2, u, v); - outObj.t = u[0]; - outObj.betweenPoints = isBetweenPoints(outObj.t); - pcoords[0] = v[0]; - if (intersect === IntersectionState.YES_INTERSECTION) { - // make sure we are within tolerance - for (let i = 0; i < 3; i++) { - x[i] = a1[i] + pcoords[0] * (a2[i] - a1[i]); - projXYZ[i] = p1[i] + outObj.t * (p2[i] - p1[i]); - } - if (distance2BetweenPoints(x, projXYZ) <= tol * tol) { - outObj.intersect = 1; - return outObj; - } - } else { - let outDistance; - // check to see if it lies within tolerance - // one of the parametric coords must be outside 0-1 - if (outObj.t < 0.0) { - outDistance = distanceToLine(p1, a1, a2, x); - if (outDistance.distance <= tol * tol) { - outObj.t = 0.0; - outObj.intersect = 1; - outObj.betweenPoints = true; // Intersection is near p1 - return outObj; - } - return outObj; - } - if (outObj.t > 1.0) { - outDistance = distanceToLine(p2, a1, a2, x); - if (outDistance.distance <= tol * tol) { - outObj.t = 1.0; - outObj.intersect = 1; - outObj.betweenPoints = true; // Intersection is near p2 - return outObj; - } - return outObj; - } - if (pcoords[0] < 0.0) { - pcoords[0] = 0.0; - outDistance = distanceToLine(a1, p1, p2, x); - outObj.t = outDistance.t; - if (outDistance.distance <= tol * tol) { - outObj.intersect = 1; - return outObj; - } - return outObj; - } - if (pcoords[0] > 1.0) { - pcoords[0] = 1.0; - outDistance = distanceToLine(a2, p1, p2, x); - outObj.t = outDistance.t; - if (outDistance.distance <= tol * tol) { - outObj.intersect = 1; - return outObj; - } - return outObj; - } - } - return outObj; - }; - publicAPI.evaluateLocation = (pcoords, x, weights) => { - const a1 = []; - const a2 = []; - model.points.getPoint(0, a1); - model.points.getPoint(1, a2); - for (let i = 0; i < 3; i++) { - x[i] = a1[i] + pcoords[0] * (a2[i] - a1[i]); - } - weights[0] = 1.0 - pcoords[0]; - weights[1] = pcoords[0]; - }; - publicAPI.evaluateOrientation = (pcoords, q, weights) => { - if (model.orientations) { - quat.slerp(q, model.orientations[0], model.orientations[1], pcoords[0]); - weights[0] = 1.0 - pcoords[0]; - weights[1] = pcoords[0]; - return true; - } - return false; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - orientations: null // an array of two quat or null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkCell.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['orientations']); - vtkLine(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkLine'); - -// ---------------------------------------------------------------------------- - -var vtkLine$1 = { - newInstance, - extend, - ...STATIC, - ...Constants -}; - -export { STATIC, vtkLine$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Line/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Line/Constants.js deleted file mode 100644 index 01a07832..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Line/Constants.js +++ /dev/null @@ -1,10 +0,0 @@ -const IntersectionState = { - NO_INTERSECTION: 0, - YES_INTERSECTION: 1, - ON_LINE: 2 -}; -var Constants = { - IntersectionState -}; - -export { IntersectionState, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Locator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Locator.d.ts deleted file mode 100644 index 20f95526..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Locator.d.ts +++ /dev/null @@ -1,135 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import vtkDataSet from './DataSet'; - -/** - * - */ -export interface ILocatorInitialValues { - dataSet?: vtkDataSet; - maxLevel?: number; - level?: number; - automatic?: boolean; - tolerance?: number; - useExistingSearchStructure?: boolean; -} - -export interface vtkLocator extends vtkObject { - /** - * Get whether locator depth/resolution of locator is computed automatically - * from average number of entities in bucket. - */ - getAutomatic(): boolean; - - /** - * Get the dataset associated with this locator. - * - * @returns {vtkDataSet} The dataset associated with this locator. - */ - getDataSet(): vtkDataSet; - - /** - * Get the current level of the locator. - * - * @returns {Number} The current level of the locator. - */ - getLevel(): number; - - /** - * Get the maximum level of the locator. - * - * @returns {Number} The maximum level of the locator. - */ - getMaxLevel(): number; - - /** - * Get the tolerance used for the locator. - * - * @returns {Number} The tolerance value. - */ - getTolerance(): number; - - /** - * Get whether to use an existing search structure. - * - * @returns {Boolean} Whether an existing search structure is used. - */ - getUseExistingSearchStructure(): boolean; - - /** - * Set whether locator depth/resolution of locator is computed automatically - * from average number of entities in bucket. - * - * @param {Boolean} automatic - The automatic flag. - * @returns {Boolean} Whether the operation was successful. - */ - setAutomatic(automatic: boolean): boolean; - - /** - * Set the dataset associated with this locator. - * - * @param {vtkDataSet} dataSet - The dataset to associate with this locator. - * @returns {Boolean} Whether the operation was successful. - */ - setDataSet(dataSet: vtkDataSet): boolean; - - /** - * Set the current level of the locator. - * - * @param {Number} level - The level to set. - * @returns {Boolean} Whether the operation was successful. - */ - setLevel(level: number): boolean; - - /** - * Set the maximum level of the locator. - * - * @param {Number} maxLevel - The maximum level to set. - * @returns {Boolean} Whether the operation was successful. - */ - setMaxLevel(maxLevel: number): boolean; - - /** - * Set the tolerance used for the locator. - * - * @param {Number} tolerance - The tolerance value to set. - * @returns {Boolean} Whether the operation was successful. - */ - setTolerance(tolerance: number): boolean; - - /** - * Set whether to use an existing search structure. - * - * @param {Boolean} useExistingSearchStructure - Whether to use an existing search structure. - * @returns {Boolean} Whether the operation was successful. - */ - setUseExistingSearchStructure(useExistingSearchStructure: boolean): boolean; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -/** - * Method use to decorate a given object (publicAPI+model) with vtkLocator characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ILocatorInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ILocatorInitialValues -): void; - -/** - * vtkLocator is an abstract base class for spatial search objects, or locators. - * The principle behind locators is that they divide 3-space into small regions - * (or "buckets") that can be quickly found in response to queries about point - * location, line intersection, or object-object intersection. - */ -export declare const vtkLocator: { - extend: typeof extend; -}; - -export default vtkLocator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Locator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Locator.js deleted file mode 100644 index c7bf0575..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Locator.js +++ /dev/null @@ -1,44 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -function vtkLocator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkLocator'); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - dataSet: null, - maxLevel: 8, - // TODO: clamp 0, Number.MAX_VALUE - level: 8, - automatic: false, - tolerance: 0.0, - // TODO: clamp 0.0, Number.MAX_VALUE - useExistingSearchStructure: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['level']); - macro.setGet(publicAPI, model, ['dataSet', 'maxLevel', 'automatic', 'tolerance', 'useExistingSearchStructure']); - - // Object specific methods - vtkLocator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -var vtkLocator$1 = { - extend -}; - -export { vtkLocator$1 as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/MergePoints.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/MergePoints.d.ts deleted file mode 100644 index 4ad338eb..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/MergePoints.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { Vector3 } from './../../types'; -import vtkPointLocator, { - IInsertPointResult, - IPointLocatorInitialValues, -} from './PointLocator'; - -/** - * Initial values for vtkMergePoints. - */ -export interface IMergePointsInitialValues extends IPointLocatorInitialValues { - bucketSize?: number; -} - -export interface vtkMergePoints extends vtkPointLocator { - /** - * Check if a point is already inserted in the merge points structure. - * - * @param {Vector3} x The point to check. - * @returns {Number} The ID of the point if it exists, otherwise -1. - */ - isInsertedPoint(x: Vector3): number; - - /** - * Insert a point into the merge points structure. - * If the point is already present, it returns the existing ID. - * Otherwise, it inserts the point and returns a new ID. - * - * @param {Vector3} x The point to insert as an array of 3 numbers. - * @returns {IInsertPointResult} An object indicating if the point was inserted and its ID. - */ - insertUniquePoint(x: Vector3): IInsertPointResult; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkMergePoints characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IMergePointsInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IMergePointsInitialValues -): void; - -/** - * Method used to create a new instance of vtkMergePoints. - * @param {IMergePointsInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IMergePointsInitialValues -): vtkMergePoints; - -/** - * vtkMergePoints merge exactly coincident points. - * - * vtkMergePoints is a locator object to quickly locate points in 3D. - */ -export declare const vtkMergePoints: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkMergePoints; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/MergePoints.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/MergePoints.js deleted file mode 100644 index 6fec0e75..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/MergePoints.js +++ /dev/null @@ -1,130 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPointLocator from './PointLocator.js'; - -const { - vtkErrorMacro -} = macro; - -/** - * Search for a point in the array using indices from bucketIds - * @param {Number[]} bucketIds - The list of point IDs in the bucket. - * @param {vtkPoints} points - The vtkPoints object containing the points. - * @param {Vector3} x - The point to check. - * @returns {Number} - The ID of the point if it exists, otherwise -1. - */ -function findPointInBucket(bucketIds, points, x) { - const data = points.getData(); - for (let i = 0; i < bucketIds.length; ++i) { - const ptId = bucketIds[i]; - const idx = ptId * 3; - if (x[0] === data[idx] && x[1] === data[idx + 1] && x[2] === data[idx + 2]) { - return ptId; - } - } - return -1; -} - -// ---------------------------------------------------------------------------- -// vtkMergePoints methods -// ---------------------------------------------------------------------------- - -function vtkMergePoints(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkMergePoints'); - - /** - * Check if a point is already inserted in the merge points structure. - * - * @param {Vector3} x The point to check. - * @returns {Number} The ID of the point if it exists, otherwise -1. - */ - publicAPI.isInsertedPoint = x => { - const idx = publicAPI.getBucketIndex(x); - const bucketIds = model.hashTable.get(idx); - if (bucketIds) { - return findPointInBucket(bucketIds, model.points, x); - } - return -1; - }; - - /** - * Insert a point into the merge points structure. - * If the point is already present, it returns the existing ID. - * Otherwise, it inserts the point and returns a new ID. - * - * @param {Vector3} x The point to insert as an array of 3 numbers. - * @returns {IInsertPointResult} An object indicating if the point was inserted and its ID. - */ - publicAPI.insertUniquePoint = x => { - if (!x || x.length !== 3) { - vtkErrorMacro('Point must be a Vector3.'); - return { - inserted: false, - id: -1 - }; - } - const idx = publicAPI.getBucketIndex(x); - let bucketIds = model.hashTable.get(idx); - let id = null; - if (bucketIds !== undefined) { - const ptId = findPointInBucket(bucketIds, model.points, x); - if (ptId !== -1) { - id = ptId; - return { - inserted: false, - id - }; - } - } else { - bucketIds = []; - model.hashTable.set(idx, bucketIds); - } - - // Insert new point - bucketIds.push(model.insertionPointId); - model.points.insertNextPoint(...x); - id = model.insertionPointId++; - return { - inserted: true, - id - }; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - return { - // points: null, - // hashTable: null, - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - vtkPointLocator.extend(publicAPI, model, defaultValues(initialValues)); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Object specific methods - vtkMergePoints(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkMergePoints'); - -// ---------------------------------------------------------------------------- - -var vtkMergePoints$1 = { - newInstance, - extend -}; - -export { vtkMergePoints$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Molecule.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Molecule.js deleted file mode 100644 index d44ae540..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Molecule.js +++ /dev/null @@ -1,64 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- - -const MOLECULE_FIELDS = ['chemical json', 'name', 'inchi', 'formula', 'atoms', 'bonds', 'properties']; - -// ---------------------------------------------------------------------------- -// vtkMolecule methods -// ---------------------------------------------------------------------------- - -function vtkMolecule(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkMolecule'); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - 'chemical json': 0, - name: '', - inchi: '', - formula: '', - atoms: null, - bonds: null, - properties: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - if (!model.atoms) { - model.atoms = {}; - } - if (!model.bonds) { - model.bonds = {}; - } - if (!model.properties) { - model.properties = {}; - } - macro.setGet(publicAPI, model, MOLECULE_FIELDS); - - // Object specific methods - vtkMolecule(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkMolecule'); - -// ---------------------------------------------------------------------------- - -var vtkMolecule$1 = { - newInstance, - extend -}; - -export { vtkMolecule$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PiecewiseFunction.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PiecewiseFunction.d.ts deleted file mode 100644 index 5e3dfaf7..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PiecewiseFunction.d.ts +++ /dev/null @@ -1,269 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { Range } from './../../types'; - -export interface IPiecewiseFunctionInitialValues { - range?: Range; - clamping?: boolean; - allowDuplicateScalars?: boolean; -} - -export interface vtkPiecewiseFunction extends vtkObject { - /** - * Add points to the function. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - */ - addPoint(x: number, y: number): void; - - /** - * Add points to the function. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} midpoint - * @param {Number} sharpness - */ - addPointLong( - x: number, - y: number, - midpoint: number, - sharpness: number - ): number; - - /** - * Add a line segment to the function. - * @param {Number} x1 The first point x coordinate. - * @param {Number} y1 The first point y coordinate. - * @param {Number} x2 The second point x coordinate. - * @param {Number} y2 The second point y coordinate. - */ - addSegment(x1: number, y1: number, x2: number, y2: number): void; - - /** - * Remove all points out of the new range, and make sure there is a point at - * each end of that range. - * @param {Range} range - */ - adjustRange(range: Range): number; - - /** - * Estimates the minimum size of a table such that it would correctly sample - * this function. - */ - estimateMinNumberOfSamples(): number; - - /** - * Traverses the nodes to find the minimum distance. - */ - findMinimumXDistance(): number; - - /** - * Toggle whether to allow duplicate scalar values in the piecewise function - * (off by default). - */ - getAllowDuplicateScalars(): boolean; - - /** - * When zero range clamping is Off, GetValue() returns 0.0 when a value is - * requested outside of the points specified. - * - * When zero range clamping is On, GetValue() returns the value at the value - * at the lowest point for a request below all points specified and returns - * the value at the highest point for a request above all points specified. - * On is the default. - */ - getClamping(): boolean; - - /** - * Returns a pointer to the data stored in the table. - */ - getDataPointer(): any[]; - - /** - * Returns the first point location which precedes a non-zero segment of the - * function. - */ - getFirstNonZeroValue(): number; - - /** - * For the node specified by index, set/get the location (X), value (Y), - * midpoint, and sharpness values at the node. - * @param {Number} index - * @param val - */ - getNodeValue(index: number, val: any[]): void; - - /** - * Returns the min and max node locations of the function. - */ - getRange(): Range; - - /** - * Returns the min and max node locations of the function. - */ - getRangeByReference(): Range; - - /** - * Get the number of points used to specify the function. - */ - getSize(): number; - - /** - * Fills in an array of function values evaluated at regular intervals. - * @param {Number} xStart - * @param {Number} xEnd - * @param {Number} size - * @param table - * @param {Number} [stride] - */ - getTable( - xStart: number, - xEnd: number, - size: number, - table: any, - stride?: number - ): void; - - /** - * Return the type of function: Function Types: - * * 0 : Constant (No change in slope between end points) - * * 1 : NonDecreasing (Always increasing or zero slope) - * * 2 : NonIncreasing (Always decreasing or zero slope) - * * 3 : Varied (Contains both decreasing and increasing slopes) - */ - getType(): 'Constant' | 'NonDecreasing' | 'NonIncreasing' | 'Varied'; - - /** - * Returns the value of the function at the specified location using the - * specified interpolation. - */ - getValue(): any; - - /** - * Removes all points from the function. - */ - removeAllPoints(): void; - - /** - * Remove the first point found at the given x location Return the index of - * the remove point if any, -1 otherwise. - * @param {Number} x - */ - removePoint(x: number): number; - - /** - * - * @param {Boolean} allowDuplicateScalars - */ - setAllowDuplicateScalars(allowDuplicateScalars: boolean): boolean; - - /** - * When zero range clamping is Off, GetValue() returns 0.0 when a value is - * requested outside of the points specified. - * - * When zero range clamping is On, GetValue() returns the value at the value - * at the lowest point for a request below all points specified and returns - * the value at the highest point for a request above all points specified. - * On is the default. - * @param {Boolean} clamping - */ - setClamping(clamping: boolean): boolean; - - /** - * - * @param {Number} index - * @param val - */ - setNodeValue(index: number, val: any[]): number; - - /** - * - * @param nodes - */ - setNodes(nodes: any[]): void; - - /** - * - * @param {Range} range - */ - setRange(range: Range): boolean; - - /** - * - * @param {Number} min - * @param {Number} max - */ - setRange(min: number, max: number): boolean; - - /** - * - * @param {Range} range - */ - setRangeFrom(range: Range): boolean; - - /** - * Internal method to sort the vector and update the Range whenever a node - * is added, edited or removed. - - */ - sortAndUpdateRange(): void; - - /** - * Returns true if the range has been updated and Modified() has been - * called. - */ - updateRange(): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkPiecewiseFunction characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPiecewiseFunctionInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPiecewiseFunctionInitialValues -): void; - -/** - * Method used to create a new instance of vtkPiecewiseFunction. - * @param {IPiecewiseFunctionInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IPiecewiseFunctionInitialValues -): vtkPiecewiseFunction; - -/** - * vtkPiecewiseFunction Defines a piecewise function mapping. This mapping - * allows the addition of control points, and allows the user to control the - * function between the control points. A piecewise hermite curve is used - * between control points, based on the sharpness and midpoint parameters. A - * sharpness of 0 yields a piecewise linear function and a sharpness of 1 yields - * a piecewise constant function. The midpoint is the normalized distance - * between control points at which the curve reaches the median Y value. - * - * The midpoint and sharpness values specified when adding a node are used to - * control the transition to the next node (the last node's values are ignored) - * Outside the range of nodes, the values are 0 if Clamping is off, or the - * nearest node point if Clamping is on. Using the legacy methods for adding - * points (which do not have Sharpness and Midpoint parameters) will default to - * Midpoint = 0.5 (halfway between the control points) and Sharpness = 0.0 - * (linear). - * - * @example - * ```js - * const ofun = vtkPiecewiseFunction.newInstance(); - * ofun.addPoint(200.0, 0.0); - * ofun.addPoint(1200.0, 0.2); - * ofun.addPoint(4000.0, 0.4); - * ``` - * - * @see [vtkColorTransferFunction](./Rendering_Core_ColorTransferFunction.html) - */ -export declare const vtkPiecewiseFunction: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkPiecewiseFunction; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PiecewiseFunction.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PiecewiseFunction.js deleted file mode 100644 index 7ecd8ba8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PiecewiseFunction.js +++ /dev/null @@ -1,580 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkPiecewiseFunction methods -// ---------------------------------------------------------------------------- - -function vtkPiecewiseFunction(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPiecewiseFunction'); - - // Return the number of points which specify this function - publicAPI.getSize = () => model.nodes.length; - - // Return the type of function stored in object: - // Function Types: - // 0 : Constant (No change in slope between end points) - // 1 : NonDecreasing (Always increasing or zero slope) - // 2 : NonIncreasing (Always decreasing or zero slope) - // 3 : Varied (Contains both decreasing and increasing slopes) - // 4 : Unknown (Error condition) - // - publicAPI.getType = () => { - let value; - let prevValue = 0.0; - let functionType = 0; - if (model.nodes.length > 0) { - prevValue = model.nodes[0].y; - } - for (let i = 1; i < model.nodes.length; i++) { - value = model.nodes[i].y; - - // Do not change the function type if equal - if (value !== prevValue) { - if (value > prevValue) { - switch (functionType) { - case 0: - case 1: - // NonDecreasing - functionType = 1; - break; - case 2: - default: - // Varied - functionType = 3; - break; - } - } else { - // value < prev_value - switch (functionType) { - case 0: - case 2: - // NonIncreasing - functionType = 2; - break; - case 1: - default: - // Varied - functionType = 3; - break; - } - } - } - prevValue = value; - - // Exit loop if we find a Varied function - if (functionType === 3) { - break; - } - } - switch (functionType) { - case 0: - return 'Constant'; - case 1: - return 'NonDecreasing'; - case 2: - return 'NonIncreasing'; - case 3: - default: - return 'Varied'; - } - }; - - // Since we no longer store the data in an array, we must - // copy out of the vector into an array. No modified check - - // could be added if performance is a problem - publicAPI.getDataPointer = () => { - const size = model.nodes.length; - model.function = null; - if (size > 0) { - model.function = []; - for (let i = 0; i < size; i++) { - model.function[2 * i] = model.nodes[i].x; - model.function[2 * i + 1] = model.nodes[i].y; - } - } - return model.function; - }; - - // Returns the first point location which starts a non-zero segment of the - // function. Note that the value at this point may be zero. - publicAPI.getFirstNonZeroValue = () => { - // Check if no points specified - if (model.nodes.length === 0) { - return 0; - } - let allZero = 1; - let x = 0.0; - let i = 0; - for (; i < model.nodes.length; i++) { - if (model.nodes[i].y !== 0.0) { - allZero = 0; - break; - } - } - - // If every specified point has a zero value then return - // a large value - if (allZero) { - x = Number.MAX_VALUE; - } else if (i > 0) { - // A point was found with a non-zero value - // Return the value of the point that precedes this one - x = model.nodes[i - 1].x; - } else if (model.clamping) { - // If this is the first point in the function, return its - // value is clamping is off, otherwise VTK_DOUBLE_MIN if - // clamping is on. - x = -Number.MAX_VALUE; - } else { - x = model.nodes[0].x; - } - return x; - }; - - // For a specified index value, get the node parameters - publicAPI.getNodeValue = (index, val) => { - const size = model.nodes.length; - if (index < 0 || index >= size) { - vtkErrorMacro('Index out of range!'); - return -1; - } - val[0] = model.nodes[index].x; - val[1] = model.nodes[index].y; - val[2] = model.nodes[index].midpoint; - val[3] = model.nodes[index].sharpness; - return 1; - }; - - // For a specified index value, get the node parameters - publicAPI.setNodeValue = (index, val) => { - const size = model.nodes.length; - if (index < 0 || index >= size) { - vtkErrorMacro('Index out of range!'); - return -1; - } - const oldX = model.nodes[index].x; - model.nodes[index].x = val[0]; - model.nodes[index].y = val[1]; - model.nodes[index].midpoint = val[2]; - model.nodes[index].sharpness = val[3]; - if (oldX !== val[0]) { - // The point has been moved, the order of points or the range might have - // been modified. - publicAPI.sortAndUpdateRange(); - // No need to call Modified() here because SortAndUpdateRange() has done it - // already. - } else { - publicAPI.modified(); - } - return 1; - }; - - // Adds a point to the function. If a duplicate point is inserted - // then the function value at that location is set to the new value. - // This is the legacy version that assumes midpoint = 0.5 and - // sharpness = 0.0 - publicAPI.addPoint = (x, y) => publicAPI.addPointLong(x, y, 0.5, 0.0); - - // Adds a point to the function and returns the array index of the point. - publicAPI.addPointLong = (x, y, midpoint, sharpness) => { - // Error check - if (midpoint < 0.0 || midpoint > 1.0) { - vtkErrorMacro('Midpoint outside range [0.0, 1.0]'); - return -1; - } - if (sharpness < 0.0 || sharpness > 1.0) { - vtkErrorMacro('Sharpness outside range [0.0, 1.0]'); - return -1; - } - - // remove any node already at this X location - if (!model.allowDuplicateScalars) { - publicAPI.removePoint(x); - } - - // Create the new node - const node = { - x, - y, - midpoint, - sharpness - }; - - // Add it, then sort to get everything in order - model.nodes.push(node); - publicAPI.sortAndUpdateRange(); - - // Now find this node so we can return the index - let i; - for (i = 0; i < model.nodes.length; i++) { - if (model.nodes[i].x === x) { - break; - } - } - - // If we didn't find it, something went horribly wrong so - // return -1 - if (i < model.nodes.length) { - return i; - } - return -1; - }; - publicAPI.setNodes = nodes => { - if (model.nodes !== nodes) { - model.nodes = nodes; - publicAPI.sortAndUpdateRange(); - } - }; - - // Sort the vector in increasing order, then fill in - // the Range - publicAPI.sortAndUpdateRange = () => { - model.nodes.sort((a, b) => a.x - b.x); - const modifiedInvoked = publicAPI.updateRange(); - // If range is updated, Modified() has been called, don't call it again. - if (!modifiedInvoked) { - publicAPI.modified(); - } - }; - - //---------------------------------------------------------------------------- - publicAPI.updateRange = () => { - const oldRange = model.range.slice(); - const size = model.nodes.length; - if (size) { - model.range[0] = model.nodes[0].x; - model.range[1] = model.nodes[size - 1].x; - } else { - model.range[0] = 0; - model.range[1] = 0; - } - // If the rage is the same, then no need to call Modified() - if (oldRange[0] === model.range[0] && oldRange[1] === model.range[1]) { - return false; - } - publicAPI.modified(); - return true; - }; - - // Removes a point from the function. If no point is found then function - // remains the same. - publicAPI.removePoint = x => { - // First find the node since we need to know its - // index as our return value - let i; - for (i = 0; i < model.nodes.length; i++) { - if (model.nodes[i].x === x) { - break; - } - } - - // If the node doesn't exist, we return -1 - if (i >= model.nodes.length) { - return -1; - } - const retVal = i; - - // If the first or last point has been removed, then we update the range - // No need to sort here as the order of points hasn't changed. - let modifiedInvoked = false; - model.nodes.splice(i, 1); - if (i === 0 || i === model.nodes.length) { - modifiedInvoked = publicAPI.updateRange(); - } - if (!modifiedInvoked) { - publicAPI.modified(); - } - return retVal; - }; - - // Removes all points from the function. - publicAPI.removeAllPoints = () => { - model.nodes = []; - publicAPI.sortAndUpdateRange(); - }; - - // Add in end points of line and remove any points between them - // Legacy method with no way to specify midpoint and sharpness - publicAPI.addSegment = (x1, y1, x2, y2) => { - // First, find all points in this range and remove them - publicAPI.sortAndUpdateRange(); - for (let i = 0; i < model.nodes.length;) { - if (model.nodes[i].x >= x1 && model.nodes[i].x <= x2) { - model.nodes.splice(i, 1); - } else { - i++; - } - } - - // Now add the points - publicAPI.addPoint(x1, y1, 0.5, 0.0); - publicAPI.addPoint(x2, y2, 0.5, 0.0); - }; - - // Return the value of the function at a position - publicAPI.getValue = x => { - const table = []; - publicAPI.getTable(x, x, 1, table); - return table[0]; - }; - - // Remove all points outside the range, and make sure a point - // exists at each end of the range. Used as a convenience method - // for transfer function editors - publicAPI.adjustRange = range => { - if (range.length < 2) { - return 0; - } - const functionRange = publicAPI.getRange(); - - // Make sure we have points at each end of the range - if (functionRange[0] < range[0]) { - publicAPI.addPoint(range[0], publicAPI.getValue(range[0])); - } else { - publicAPI.addPoint(range[0], publicAPI.getValue(functionRange[0])); - } - if (functionRange[1] > range[1]) { - publicAPI.addPoint(range[1], publicAPI.getValue(range[1])); - } else { - publicAPI.addPoint(range[1], publicAPI.getValue(functionRange[1])); - } - - // Remove all points out-of-range - publicAPI.sortAndUpdateRange(); - for (let i = 0; i < model.nodes.length;) { - if (model.nodes[i].x >= range[0] && model.nodes[i].x <= range[1]) { - model.nodes.splice(i, 1); - } else { - ++i; - } - } - publicAPI.sortAndUpdateRange(); - return 1; - }; - - //-------------------------------------------------------------------------- - publicAPI.estimateMinNumberOfSamples = (x1, x2) => { - const d = publicAPI.findMinimumXDistance(); - return Math.ceil((x2 - x1) / d); - }; - - //---------------------------------------------------------------------------- - publicAPI.findMinimumXDistance = () => { - const size = model.nodes.length; - if (size < 2) { - return -1.0; - } - let distance = model.nodes[1].x - model.nodes[0].x; - for (let i = 0; i < size - 1; i++) { - const currentDist = model.nodes[i + 1].x - model.nodes[i].x; - if (currentDist < distance) { - distance = currentDist; - } - } - return distance; - }; - - // Returns a table of function values evaluated at regular intervals - /* eslint-disable prefer-destructuring */ - /* eslint-disable no-continue */ - publicAPI.getTable = function (xStart, xEnd, size, table) { - let stride = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1; - let i; - let idx = 0; - const numNodes = model.nodes.length; - - // Need to keep track of the last value so that - // we can fill in table locations past this with - // this value if Clamping is On. - let lastValue = 0.0; - if (numNodes !== 0) { - lastValue = model.nodes[numNodes - 1].y; - } - let x = 0.0; - let x1 = 0.0; - let x2 = 0.0; - let y1 = 0.0; - let y2 = 0.0; - let midpoint = 0.0; - let sharpness = 0.0; - - // For each table entry - for (i = 0; i < size; i++) { - // Find our location in the table - const tidx = stride * i; - - // Find our X location. If we are taking only 1 sample, make - // it halfway between start and end (usually start and end will - // be the same in this case) - if (size > 1) { - x = xStart + i / (size - 1.0) * (xEnd - xStart); - } else { - x = 0.5 * (xStart + xEnd); - } - - // Do we need to move to the next node? - while (idx < numNodes && x > model.nodes[idx].x) { - idx++; - // If we are at a valid point index, fill in - // the value at this node, and the one before (the - // two that surround our current sample location) - // idx cannot be 0 since we just incremented it. - if (idx < numNodes) { - x1 = model.nodes[idx - 1].x; - x2 = model.nodes[idx].x; - y1 = model.nodes[idx - 1].y; - y2 = model.nodes[idx].y; - - // We only need the previous midpoint and sharpness - // since these control this region - midpoint = model.nodes[idx - 1].midpoint; - sharpness = model.nodes[idx - 1].sharpness; - - // Move midpoint away from extreme ends of range to avoid - // degenerate math - if (midpoint < 0.00001) { - midpoint = 0.00001; - } - if (midpoint > 0.99999) { - midpoint = 0.99999; - } - } - } - - // Are we at the end? If so, just use the last value - if (idx >= numNodes) { - table[tidx] = model.clamping ? lastValue : 0.0; - } else if (idx === 0) { - // Are we before the first node? If so, duplicate this nodes values - table[tidx] = model.clamping ? model.nodes[0].y : 0.0; - } else { - // Otherwise, we are between two nodes - interpolate - // Our first attempt at a normalized location [0,1] - - // we will be modifying this based on midpoint and - // sharpness to get the curve shape we want and to have - // it pass through (y1+y2)/2 at the midpoint. - let s = (x - x1) / (x2 - x1); - - // Readjust based on the midpoint - linear adjustment - if (s < midpoint) { - s = 0.5 * s / midpoint; - } else { - s = 0.5 + 0.5 * (s - midpoint) / (1.0 - midpoint); - } - - // override for sharpness > 0.99 - // In this case we just want piecewise constant - if (sharpness > 0.99) { - // Use the first value since we are below the midpoint - if (s < 0.5) { - table[tidx] = y1; - continue; - } else { - // Use the second value at or above the midpoint - table[tidx] = y2; - continue; - } - } - - // Override for sharpness < 0.01 - // In this case we want piecewise linear - if (sharpness < 0.01) { - // Simple linear interpolation - table[tidx] = (1 - s) * y1 + s * y2; - continue; - } - - // We have a sharpness between [0.01, 0.99] - we will - // used a modified hermite curve interpolation where we - // derive the slope based on the sharpness, and we compress - // the curve non-linearly based on the sharpness - - // First, we will adjust our position based on sharpness in - // order to make the curve sharper (closer to piecewise constant) - if (s < 0.5) { - s = 0.5 * (s * 2) ** (1.0 + 10 * sharpness); - } else if (s > 0.5) { - s = 1.0 - 0.5 * ((1.0 - s) * 2) ** (1 + 10 * sharpness); - } - - // Compute some coefficients we will need for the hermite curve - const ss = s * s; - const sss = ss * s; - const h1 = 2 * sss - 3 * ss + 1; - const h2 = -2 * sss + 3 * ss; - const h3 = sss - 2 * ss + s; - const h4 = sss - ss; - - // Use one slope for both end points - const slope = y2 - y1; - const t = (1.0 - sharpness) * slope; - - // Compute the value - table[tidx] = h1 * y1 + h2 * y2 + h3 * t + h4 * t; - - // Final error check to make sure we don't go outside - // the Y range - const min = y1 < y2 ? y1 : y2; - const max = y1 > y2 ? y1 : y2; - table[tidx] = table[tidx] < min ? min : table[tidx]; - table[tidx] = table[tidx] > max ? max : table[tidx]; - } - } - }; -} -/* eslint-enable prefer-destructuring */ -/* eslint-enable no-continue */ - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // model.function = NULL; - range: [0, 0], - clamping: true, - allowDuplicateScalars: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - macro.obj(publicAPI, model); - - // Internal objects initialization - model.nodes = []; - - // Create get-set macros - macro.setGet(publicAPI, model, ['allowDuplicateScalars', 'clamping']); - macro.setArray(publicAPI, model, ['range'], 2); - - // Create get macros for array - macro.getArray(publicAPI, model, ['range']); - - // For more macro methods, see "Sources/macros.js" - - // Object specific methods - vtkPiecewiseFunction(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPiecewiseFunction'); - -// ---------------------------------------------------------------------------- - -var vtkPiecewiseFunction$1 = { - newInstance, - extend -}; - -export { vtkPiecewiseFunction$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Plane.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Plane.d.ts deleted file mode 100644 index 9ae38f05..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Plane.d.ts +++ /dev/null @@ -1,379 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { Vector3 } from './../../types'; -import vtkImplicitFunction from './ImplicitFunction'; - -/** - * - */ -export interface IPlaneInitialValues { - normal?: Vector3; - origin?: Vector3; -} - -interface IIntersectWithLine { - intersection: boolean; - betweenPoints: boolean; - t: number; - x: Vector3; -} - -export interface vtkPlane extends vtkImplicitFunction { - /** - * Get the distance of a point x to a plane defined by n (x-p0) = 0. - * The normal n must be magnitude = 1. - * @param {Vector3} x The point coordiante. - */ - distanceToPlane(x: Vector3): number; - - /** - * Get plane normal. - * Plane is defined by point and normal. - */ - getNormal(): Vector3; - - /** - * Get plane normal. - * Plane is defined by point and normal. - */ - getNormalByReference(): Vector3; - - /** - * Get the origin of the plane - */ - getOrigin(): Vector3; - - /** - * Get the origin of the plane - */ - getOriginByReference(): Vector3; - - /** - * - * @param {Vector3} x The point coordinate. - * @param {Vector3} xproj The projection point's coordinate. - */ - projectPoint(x: Vector3, xproj: Vector3): void; - - /** - * Project a vector v onto plane. The projected vector is returned in vproj. - * @param {Vector3} v The vector coordinate. - * @param {Vector3} vproj The projection vector's coordinate.. - */ - projectVector(v: Vector3, vproj: Vector3): void; - - /** - * Translate the plane in the direction of the normal by the distance - * specified. Negative values move the plane in the opposite direction. - * @param {Number} distance - */ - push(distance: number): void; - - /** - * - * @param {Vector3} x The point coordinate. - * @param {Vector3} xproj The projection point's coordinate. - */ - generalizedProjectPoint(x: Vector3, xproj: Vector3): void; - - /** - * Evaluate plane equation for point x. - * - * Accepts both an array point representation and individual xyz arguments. - * - * ```js - * plane.evaluateFunction([0.0, 0.0, 0.0]); - * plane.evaluateFunction(0.0, 0.0, 0.0); - * ``` - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - evaluateFunction(x: number, y: number, z: number): number; - - /** - * Evaluate plane equation for point x. - * - * Accepts both an array point representation and individual xyz arguments. - * - * ```js - * plane.evaluateFunction([0.0, 0.0, 0.0]); - * plane.evaluateFunction(0.0, 0.0, 0.0); - * ``` - * @param {Vector3} value - */ - evaluateFunction(value: Vector3): number; - - /** - * Given the point xyz (three floating values) evaluate the equation for the - * plane gradient. Note that the normal and origin must have already been - * specified. The method returns an array of three floats. - * @param xyz - */ - evaluateGradient(xyz: any): Vector3; - - /** - * Given a line defined by the two points p1,p2; and a plane defined by the - * normal n and point p0, compute an intersection. Return an object: - * - * ```js - * let obj = {intersection: ..., betweenPoints: ..., t: ..., x: ...}; - * ``` - * - * where: - * - **intersection** (_boolean_): indicates if the plane and line - * intersect. - * - **betweenPoints** (_boolean_): indicates if the intersection is between - * the provided points. True if (0 <= t <= 1), and false otherwise. - * - **t** (_Number_): parametric coordinate along the line. - * - **x** (_Array_): coordinates of intersection. - * - * If the plane and line are parallel, intersection is false and t is set to - * Number.MAX_VALUE. - * @param {Vector3} p1 The first point coordiante. - * @param {Vector3} p2 The second point coordiante. - */ - intersectWithLine(p1: Vector3, p2: Vector3): IIntersectWithLine; - - /** - * Given a planes defined by the normals n0 & n1 and origin points p0 & p1, - * compute the line representing the plane intersection. Return an object: - * - * ```js - * let obj = {intersection: ..., error: ..., l0: ..., l1: ...}; - * ``` - * - * where: - * - * - **intersection** (_boolean_): indicates if the two planes intersect. - * Intersection is true if (0 <= t <= 1), and false otherwise. - * - **l0** (_Array_): coordinates of point 0 of the intersection line. - * - **l1** (_Array_): coordinates of point 1 of the intersection line. - * - **error** (_String|null_): Conditional, if the planes do not intersect, - * is it because they are coplanar (`COINCIDE`) or parallel (`DISJOINT`). - * @param {Vector3} planeOrigin - * @param {Vector3} planeNormal - */ - intersectWithPlane( - planeOrigin: Vector3, - planeNormal: Vector3 - ): IIntersectWithLine; - - /** - * Set the normal of the plane. - * @param {Vector3} normal The normal coordinate. - */ - setNormal(normal: Vector3): boolean; - - /** - * Set the normal of the plane. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setNormal(x: number, y: number, z: number): boolean; - - /** - * Set the normal object. - * @param {Vector3} normal The normal coordinate. - */ - setNormalFrom(normal: Vector3): boolean; - - /** - * Set the origin of the plane. - * @param {Vector3} origin The coordinate of the origin point. - */ - setOrigin(origin: Vector3): boolean; - - /** - * Set the origin of the plane. - * @param {Number} x The x coordinate of the origin point. - * @param {Number} y The y coordinate of the origin point. - * @param {Number} z The z coordinate of the origin point. - */ - setOrigin(x: number, y: number, z: number): boolean; - - /** - * Set the origin of the plane. - * @param {Vector3} origin The coordinate of the origin point. - */ - setOriginFrom(origin: Vector3): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkPlane characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPlaneInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPlaneInitialValues -): void; - -/** - * Method used to create a new instance of vtkPlane. - * @param {IPlaneInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: IPlaneInitialValues): vtkPlane; - -/** - * Quick evaluation of plane equation n(x-origin) = 0. - * @static - * @param {Vector3} normal - * @param {Vector3} origin The coordinate of the origin point. - * @param {Vector3} x - */ -export function evaluate(normal: Vector3, origin: Vector3, x: Vector3): number; - -/** - * Return the distance of a point x to a plane defined by n (x-p0) = 0. - * The normal n must be magnitude = 1. - * @static - * @param {Vector3} x - * @param {Vector3} origin The coordinate of the origin point. - * @param {Vector3} normal - */ -export function distanceToPlane( - x: Vector3, - origin: Vector3, - normal: Vector3 -): number; - -/** - * Project a point x onto plane defined by origin and normal. The projected point - * is returned in xproj. - * !!! note - * normal assumed to have magnitude 1. - * @static - * @param {Vector3} x - * @param {Vector3} origin The coordinate of the origin point. - * @param {Vector3} normal - * @param {Vector3} xproj - */ -export function projectPoint( - x: any, - origin: Vector3, - normal: Vector3, - xproj: Vector3 -): void; - -/** - * Project a vector v onto a plane defined by a normal. The projected vector is - * returned in vproj. - * @static - * @param {Vector3} v The vector coordinate. - * @param {Vector3} normal - * @param {Vector3} vproj The projection vector's coordinate.. - */ -export function projectVector( - v: Vector3, - normal: Vector3, - vproj: Vector3 -): void; - -/** - * Project a point x onto plane defined by origin and normal. The projected - point is returned in xproj. - * - * !!! note - * normal does NOT have to have magnitude 1. - * @static - * @param {Vector3} x - * @param {Vector3} origin The coordinate of the origin point. - * @param {Vector3} normal - * @param {Vector3} xproj - */ -export function generalizedProjectPoint( - x: any, - origin: Vector3, - normal: Vector3, - xproj: Vector3 -): void; - -/** - * Given a line defined by the two points p1,p2; and a plane defined by the normal n and point p0, compute an intersection. - * Return an object: - * - * ```js - * let obj = {intersection: ..., betweenPoints: ..., t: ..., x: ...}; - * ``` - * - * where: - * - **intersection** (_boolean_): indicates if the plane and line intersect. - * - **betweenPoints** (_boolean_): indicates if the intersection is between the provided points. True if (0 <= t <= 1), and false otherwise. - * - **t** (_Number_): parametric coordinate along the line. - * - **x** (_Array_): coordinates of intersection. - * - * If the plane and line are parallel, intersection is false and t is set to - * Number.MAX_VALUE. - * @static - * @param {Vector3} p1 - * @param {Vector3} p2 - * @param {Vector3} origin The coordinate of the origin point. - * @param {Vector3} normal - */ -export function intersectWithLine( - p1: Vector3, - p2: Vector3, - origin: Vector3, - normal: Vector3 -): IIntersectWithLine; - -/** - * Given a planes defined by the normals n0 & n1 and origin points p0 & p1, - * compute the line representing the plane intersection. Return an object: - * - * ```js - * let obj = {intersection: ..., error: ..., l0: ..., l1: ...}; - * ``` - * - * where: - * - * - **intersection** (_boolean_): indicates if the two planes intersect. - * Intersection is true if (0 <= t <= 1), and false otherwise. - * - **l0** (_Array_): coordinates of point 0 of the intersection line. - * - **l1** (_Array_): coordinates of point 1 of the intersection line. - * - **error** (_String|null_): Conditional, if the planes do not intersect, - * is it because they are coplanar (`COINCIDE`) or parallel (`DISJOINT`). - * @static - * @param {Vector3} plane1Origin - * @param {Vector3} plane1Normal - * @param {Vector3} plane2Origin - * @param {Vector3} plane2Normal - */ -export function intersectWithPlane( - plane1Origin: Vector3, - plane1Normal: Vector3, - plane2Origin: Vector3, - plane2Normal: Vector3 -): IIntersectWithLine; - -/** - * Constants for the `intersectWithPlane` function. - */ -export declare const COINCIDE: string; - -/** - * Constants for the `intersectWithPlane` function. - */ -export declare const DISJOINT: string; - -/** - * vtkPlane provides methods for various plane computations. These include - * projecting points onto a plane, evaluating the plane equation, and returning - * plane normal. - */ -export declare const vtkPlane: { - newInstance: typeof newInstance; - extend: typeof extend; - evaluate: typeof evaluate; - distanceToPlane: typeof distanceToPlane; - projectPoint: typeof projectPoint; - projectVector: typeof projectVector; - generalizedProjectPoint: typeof generalizedProjectPoint; - intersectWithLine: typeof intersectWithLine; - intersectWithPlane: typeof intersectWithPlane; -}; -export default vtkPlane; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Plane.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Plane.js deleted file mode 100644 index 744ef25f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Plane.js +++ /dev/null @@ -1,256 +0,0 @@ -import { s as subtract, d as dot, j as cross, k as add } from '../Core/Math/index.js'; -import { m as macro } from '../../macros2.js'; -import vtkImplicitFunction from './ImplicitFunction.js'; - -const PLANE_TOLERANCE = 1.0e-6; -const COINCIDE = 'coincide'; -const DISJOINT = 'disjoint'; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -function evaluate(normal, origin, x) { - return normal[0] * (x[0] - origin[0]) + normal[1] * (x[1] - origin[1]) + normal[2] * (x[2] - origin[2]); -} -function distanceToPlane(x, origin, normal) { - const distance = normal[0] * (x[0] - origin[0]) + normal[1] * (x[1] - origin[1]) + normal[2] * (x[2] - origin[2]); - return Math.abs(distance); -} -function projectPoint(x, origin, normal, xproj) { - const xo = []; - subtract(x, origin, xo); - const t = dot(normal, xo); - xproj[0] = x[0] - t * normal[0]; - xproj[1] = x[1] - t * normal[1]; - xproj[2] = x[2] - t * normal[2]; -} -function projectVector(v, normal, vproj) { - const t = dot(v, normal); - let n2 = dot(normal, normal); - if (n2 === 0) { - n2 = 1.0; - } - vproj[0] = v[0] - t * normal[0] / n2; - vproj[1] = v[1] - t * normal[1] / n2; - vproj[2] = v[2] - t * normal[2] / n2; - return vproj; -} -function generalizedProjectPoint(x, origin, normal, xproj) { - const xo = []; - subtract(x, origin, xo); - const t = dot(normal, xo); - const n2 = dot(normal, normal); - if (n2 !== 0) { - xproj[0] = x[0] - t * normal[0] / n2; - xproj[1] = x[1] - t * normal[1] / n2; - xproj[2] = x[2] - t * normal[2] / n2; - } else { - xproj[0] = x[0]; - xproj[1] = x[1]; - xproj[2] = x[2]; - } -} -function intersectWithLine(p1, p2, origin, normal) { - const outObj = { - intersection: false, - betweenPoints: false, - t: Number.MAX_VALUE, - x: [] - }; - const p21 = []; - const p1Origin = []; - // Compute line vector - subtract(p2, p1, p21); - subtract(origin, p1, p1Origin); - - // Compute denominator. If ~0, line and plane are parallel. - // const num = vtkMath.dot(normal, origin) - vtkMath.dot(normal, p1); - const num = dot(normal, p1Origin); - const den = dot(normal, p21); - - // If denominator with respect to numerator is "zero", then the line and - // plane are considered parallel. - let fabsden; - let fabstolerance; - - // Trying to avoid an expensive call to fabs() - if (den < 0.0) { - fabsden = -den; - } else { - fabsden = den; - } - if (num < 0.0) { - fabstolerance = -num * PLANE_TOLERANCE; - } else { - fabstolerance = num * PLANE_TOLERANCE; - } - if (fabsden <= fabstolerance) { - return outObj; - } - - // Where on the line between p1 and p2 is the intersection - // If between 0 and 1, it is between the two points. If < 0 it's before p1, if > 1 it's after p2 - outObj.t = num / den; - outObj.x[0] = p1[0] + outObj.t * p21[0]; - outObj.x[1] = p1[1] + outObj.t * p21[1]; - outObj.x[2] = p1[2] + outObj.t * p21[2]; - outObj.intersection = true; - outObj.betweenPoints = outObj.t >= 0.0 && outObj.t <= 1.0; - return outObj; -} -function intersectWithPlane(plane1Origin, plane1Normal, plane2Origin, plane2Normal) { - const outObj = { - intersection: false, - l0: [], - l1: [], - error: null - }; - const cross$1 = []; - cross(plane1Normal, plane2Normal, cross$1); - const absCross = cross$1.map(n => Math.abs(n)); - - // test if the two planes are parallel - if (absCross[0] + absCross[1] + absCross[2] < PLANE_TOLERANCE) { - // test if disjoint or coincide - const v = []; - subtract(plane1Origin, plane2Origin, v); - if (dot(plane1Normal, v) === 0) { - outObj.error = COINCIDE; - } else { - outObj.error = DISJOINT; - } - return outObj; - } - - // Plane1 and Plane2 intersect in a line - // first determine max abs coordinate of the cross product - let maxc; - if (absCross[0] > absCross[1] && absCross[0] > absCross[2]) { - maxc = 'x'; - } else if (absCross[1] > absCross[2]) { - maxc = 'y'; - } else { - maxc = 'z'; - } - - // To get a point on the intersect line, zero the max coord, and solve for the other two - const iP = []; // intersectionPoint - // the constants in the 2 plane equations - const d1 = -dot(plane1Normal, plane1Origin); - const d2 = -dot(plane2Normal, plane2Origin); - - // eslint-disable-next-line default-case - switch (maxc) { - case 'x': - // intersect with x=0 - iP[0] = 0; - iP[1] = (d2 * plane1Normal[2] - d1 * plane2Normal[2]) / cross$1[0]; - iP[2] = (d1 * plane2Normal[1] - d2 * plane1Normal[1]) / cross$1[0]; - break; - case 'y': - // intersect with y=0 - iP[0] = (d1 * plane2Normal[2] - d2 * plane1Normal[2]) / cross$1[1]; - iP[1] = 0; - iP[2] = (d2 * plane1Normal[0] - d1 * plane2Normal[0]) / cross$1[1]; - break; - case 'z': - // intersect with z=0 - iP[0] = (d2 * plane1Normal[1] - d1 * plane2Normal[1]) / cross$1[2]; - iP[1] = (d1 * plane2Normal[0] - d2 * plane1Normal[0]) / cross$1[2]; - iP[2] = 0; - break; - } - outObj.l0 = iP; - add(iP, cross$1, outObj.l1); - outObj.intersection = true; - return outObj; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = { - evaluate, - distanceToPlane, - projectPoint, - projectVector, - generalizedProjectPoint, - intersectWithLine, - intersectWithPlane, - DISJOINT, - COINCIDE -}; - -// ---------------------------------------------------------------------------- -// vtkPlane methods -// ---------------------------------------------------------------------------- - -function vtkPlane(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPlane'); - publicAPI.distanceToPlane = x => distanceToPlane(x, model.origin, model.normal); - publicAPI.projectPoint = (x, xproj) => { - projectPoint(x, model.origin, model.normal, xproj); - }; - publicAPI.projectVector = (v, vproj) => projectVector(v, model.normal, vproj); - publicAPI.push = distance => { - if (distance === 0.0) { - return; - } - for (let i = 0; i < 3; i++) { - model.origin[i] += distance * model.normal[i]; - } - }; - publicAPI.generalizedProjectPoint = (x, xproj) => { - generalizedProjectPoint(x, model.origin, model.normal, xproj); - }; - publicAPI.evaluateFunction = (x, y, z) => { - if (!Array.isArray(x)) { - return model.normal[0] * (x - model.origin[0]) + model.normal[1] * (y - model.origin[1]) + model.normal[2] * (z - model.origin[2]); - } - return model.normal[0] * (x[0] - model.origin[0]) + model.normal[1] * (x[1] - model.origin[1]) + model.normal[2] * (x[2] - model.origin[2]); - }; - publicAPI.evaluateGradient = xyz => { - const retVal = [model.normal[0], model.normal[1], model.normal[2]]; - return retVal; - }; - publicAPI.intersectWithLine = (p1, p2) => intersectWithLine(p1, p2, model.origin, model.normal); - publicAPI.intersectWithPlane = (planeOrigin, planeNormal) => intersectWithPlane(planeOrigin, planeNormal, model.origin, model.normal); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - normal: [0.0, 0.0, 1.0], - origin: [0.0, 0.0, 0.0] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - vtkImplicitFunction.extend(publicAPI, model, initialValues); - macro.setGetArray(publicAPI, model, ['normal', 'origin'], 3); - vtkPlane(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPlane'); - -// ---------------------------------------------------------------------------- - -var vtkPlane$1 = { - newInstance, - extend, - ...STATIC -}; - -export { STATIC, vtkPlane$1 as default, extend, newInstance, vtkPlane }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Planes.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Planes.d.ts deleted file mode 100644 index ec9d3880..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Planes.d.ts +++ /dev/null @@ -1,120 +0,0 @@ -import { Bounds, Vector3 } from './../../types'; -import vtkDataArray from './../Core/DataArray'; -import vtkImplicitFunction, { - IImplicitFunctionInitialValues, -} from './ImplicitFunction'; -import vtkPlane from './Plane'; -import vtkPoints from './../Core/Points'; - -/** - * - */ -export interface IPlanesInitialValues extends IImplicitFunctionInitialValues { - points?: vtkPoints; - normals?: vtkDataArray; - bounds?: Bounds; - planes?: number[]; -} - -export interface vtkPlanes extends vtkImplicitFunction { - /** - * Evaluate the function at a point x - * @param x The point at which to evaluate the function - * @returns The function value at the point x - */ - evaluateFunction(x: Vector3): number; - - /** - * Evaluate the gradient at a point x - * @param x The point at which to evaluate the gradient - * @returns The gradient at the point x - */ - evaluateGradient(x: Vector3): Vector3; - - /** - * Get the bounds of the planes. - * @returns {Bounds} The bounds of the planes. - */ - getBounds(): Bounds; - - /** - * Get the number of planes in the set of planes. - */ - getNumberOfPlanes(): number; - - /** - * Get the normals of the plane. - * @returns {vtkDataArray} The normals of the plane. - */ - getNormals(): vtkDataArray; - - /** - * Get the points of the plane. - * @returns {vtkPoints} The points of the plane. - */ - getPoints(): vtkPoints; - - /** - * Get the i-th plane - * @param {Number} i The index of the plane to get. - * @param {vtkPlane} [plane] The vtkPlane instance to fill (optional). - * @returns {vtkPlane} The plane instance at the specified index. - * If no plane is provided, a new vtkPlane instance will be created. - */ - getPlane(i: number, plane?: vtkPlane): vtkPlane; - - /** - * Set the bounds of the planes. - * @param {Bounds} bounds The bounds to set. - * @returns {Boolean} true if bounds were set, false if they were already set - * @see getBounds - */ - setBounds(bounds: Bounds): boolean; - - /** - * Set the Frustum planes. - * @param {Vector3[]} planes The coordinates of the frustum planes. - */ - setFrustumPlanes(planes: Vector3[]): boolean; - - /** - * Set the normals of the plane. - * @param {vtkDataArray} normals The normals to set. - */ - setNormals(normals: vtkDataArray): boolean; - - /** - * Set the points of the plane. - * @param points The points to set. - */ - setPoints(points: vtkPoints): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkPlane characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPlanesInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPlanesInitialValues -): void; - -/** - * Method used to create a new instance of vtkPlane. - * @param {IPlanesInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: IPlanesInitialValues): vtkPlanes; - -/** - * vtkPlanes computes the implicit function and function gradient for a set of - * planes. The planes must define a convex space. - */ -export declare const vtkPlanes: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkPlanes; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Planes.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Planes.js deleted file mode 100644 index 3689d9c2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Planes.js +++ /dev/null @@ -1,281 +0,0 @@ -import { m as macro, T as TYPED_ARRAYS } from '../../macros2.js'; -import vtkDataArray from '../Core/DataArray.js'; -import vtkImplicitFunction from './ImplicitFunction.js'; -import { b as vtkMath } from '../Core/Math/index.js'; -import vtkPlane from './Plane.js'; -import vtkPoints from '../Core/Points.js'; -import { VtkDataTypes } from '../Core/DataArray/Constants.js'; - -const { - vtkErrorMacro, - vtkWarningMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkPlanes methods -// ---------------------------------------------------------------------------- - -function vtkPlanes(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPlanes'); - - // Initialize internal variables - model.planes = model.planes || macro.newTypedArray(TYPED_ARRAYS.Float64Array, 24); - model.bounds = model.bounds || macro.newTypedArray(TYPED_ARRAYS.Float64Array, 6); - model.plane = vtkPlane.newInstance(); - - // Public API methods - publicAPI.setNormals = normals => { - if (normals && normals.getNumberOfComponents() !== 3) { - vtkWarningMacro('This array does not have 3 components. Ignoring normals.'); - } - model.normals = normals; - publicAPI.modified(); - return true; - }; - - /** - * Evaluate the function at a point x - * @param {*} x The point at which to evaluate the function - * @returns The function value at the point x - */ - publicAPI.evaluateFunction = x => { - if (!model.points || !model.normals) { - vtkErrorMacro('Please define points and/or normals!'); - return Number.MAX_VALUE; - } - const numPlanes = model.points.getNumberOfPoints(); - if (numPlanes !== model.normals.getNumberOfTuples()) { - vtkErrorMacro('Number of normals/points inconsistent!'); - return Number.MAX_VALUE; - } - let maxVal = -Number.MAX_VALUE; - const normal = []; - const point = []; - for (let i = 0; i < numPlanes; i++) { - model.normals.getTuple(i, normal); - model.points.getPoint(i, point); - const val = vtkPlane.evaluate(normal, point, x); - if (val > maxVal) { - maxVal = val; - } - } - return maxVal; - }; - - /** - * Evaluate the gradient at a point x - * @param {*} x The point at which to evaluate the gradient - * @returns The gradient at the point x - */ - publicAPI.evaluateGradient = x => { - const retVal = [0, 0, 0]; - if (!model.points || !model.normals) { - vtkErrorMacro('Define points and/or normals first!'); - return retVal; - } - const numPlanes = model.points.getNumberOfPoints(); - if (numPlanes !== model.normals.getNumberOfTuples()) { - vtkErrorMacro('The number of normals/points is inconsistent!'); - return retVal; - } - let maxVal = -Number.MAX_VALUE; - const nTemp = []; - const pTemp = []; - for (let i = 0; i < numPlanes; i++) { - model.normals.getTuple(i, nTemp); - model.points.getPoint(i, pTemp); - const val = vtkPlane.evaluate(nTemp, pTemp, x); - if (val > maxVal) { - maxVal = val; - retVal[0] = nTemp[0]; - retVal[1] = nTemp[1]; - retVal[2] = nTemp[2]; - } - } - return retVal; - }; - - /** - * Set the frustum planes - * @param {Number[]} planes The planes to set - * @returns {Boolean} true if planes were set, false if they were already set - */ - publicAPI.setFrustumPlanes = planes => { - if (vtkMath.areEquals(model.planes, planes)) { - return false; - } - model.planes = [...planes]; - const pts = vtkPoints.newInstance({ - dataType: VtkDataTypes.DOUBLE - }); - const normals = vtkDataArray.newInstance({ - numberOfComponents: 3, - size: 6 * 3, - // 6 planes, each with a normal - dataType: VtkDataTypes.DOUBLE - }); - pts.setNumberOfPoints(6); - publicAPI.setPoints(pts); - publicAPI.setNormals(normals); - const n = []; - const x = []; - for (let i = 0; i < 6; i++) { - const planeOffset = 4 * i; - n[0] = -planes[planeOffset]; - n[1] = -planes[planeOffset + 1]; - n[2] = -planes[planeOffset + 2]; - x[0] = 0.0; - x[1] = 0.0; - x[2] = 0.0; - if (n[0] !== 0.0) { - x[0] = planes[planeOffset + 3] / n[0]; - } else if (n[1] !== 0.0) { - x[1] = planes[planeOffset + 3] / n[1]; - } else { - x[2] = planes[planeOffset + 3] / n[2]; - } - pts.setPoint(i, ...x); - normals.setTuple(i, n); - } - publicAPI.modified(); - return true; - }; - - /** - * Set the bounds of the planes - * @param {*} bounds The bounds to set - * @returns {Boolean} true if bounds were set, false if they were already set - */ - publicAPI.setBounds = bounds => { - if (vtkMath.areEquals(model.bounds, bounds)) { - return false; - } - model.bounds = [...bounds]; - const pts = vtkPoints.newInstance(); - const normals = vtkDataArray.newInstance({ - numberOfComponents: 3, - size: 6 * 3, - // 6 planes, each with a normal - dataType: VtkDataTypes.DOUBLE - }); - pts.setNumberOfPoints(6); - publicAPI.setPoints(pts); - publicAPI.setNormals(normals); - const n = []; - const x = []; - - // The x planes - n[0] = -1.0; - n[1] = 0.0; - n[2] = 0.0; - x[0] = bounds[0]; - x[1] = 0.0; - x[2] = 0.0; - pts.setPoint(0, ...x); - normals.setTuple(0, n); - n[0] = 1.0; - x[0] = bounds[1]; - pts.setPoint(1, ...x); - normals.setTuple(1, n); - - // The y planes - n[0] = 0.0; - n[1] = -1.0; - n[2] = 0.0; - x[0] = 0.0; - x[1] = bounds[2]; - x[2] = 0.0; - pts.setPoint(2, ...x); - normals.setTuple(2, n); - n[1] = 1.0; - x[1] = bounds[3]; - pts.setPoint(3, ...x); - normals.setTuple(3, n); - - // The z planes - n[0] = 0.0; - n[1] = 0.0; - n[2] = -1.0; - x[0] = 0.0; - x[1] = 0.0; - x[2] = bounds[4]; - pts.setPoint(4, ...x); - normals.setTuple(4, n); - n[2] = 1.0; - x[2] = bounds[5]; - pts.setPoint(5, ...x); - normals.setTuple(5, n); - publicAPI.modified(); - return true; - }; - - /** - * Get the number of planes - * @returns {Number} the number of planes - */ - publicAPI.getNumberOfPlanes = () => { - if (model.points && model.normals) { - const npts = model.points.getNumberOfPoints(); - const nnormals = model.normals.getNumberOfTuples(); - return Math.min(npts, nnormals); - } - return 0; - }; - - /** - * Get the i-th plane - * @param {*} i - * @param {vtkPlane} plane the vtkPlane instance to fill - * @returns {vtkPlane} the plane instance - */ - publicAPI.getPlane = function (i) { - let plane = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : model.plane; - if (i >= 0 && i < publicAPI.getNumberOfPlanes()) { - const normal = model.normals.getTuple(i); - const point = model.points.getPoint(i); - plane.setNormal(normal); - plane.setOrigin(point); - } - return plane; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - points: null, - normals: null, - planes: null, - bounds: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - vtkImplicitFunction.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['points', 'normals']); - macro.get(publicAPI, model, ['bounds', 'planes']); - - // Object methods - vtkPlanes(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPlanes'); - -// ---------------------------------------------------------------------------- - -var vtkPlanes$1 = { - newInstance, - extend -}; - -export { vtkPlanes$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PointLocator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PointLocator.d.ts deleted file mode 100644 index b6661864..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PointLocator.d.ts +++ /dev/null @@ -1,217 +0,0 @@ -import { Bounds, Nullable, Vector3 } from './../../types'; -import vtkPoints from './../Core/Points'; -import vtkAbstractPointLocator, { - IAbstractPointLocatorInitialValues, -} from './AbstractPointLocator'; -import vtkPolyData from './PolyData'; - -/** - * - */ -export interface IPointLocatorInitialValues - extends IAbstractPointLocatorInitialValues { - numberOfPointsPerBucket?: number; - bucketSize?: number; -} - -export interface IInsertPointResult { - inserted: boolean; - id: number; -} - -interface IFindClosestPointResult { - id: number; - dist2: number; -} - -export interface vtkPointLocator extends vtkAbstractPointLocator { - /** - * Find the closest inserted point to the given coordinates. - * - * @param {Vector3} x The query point - * @returns {Number} The id of the closest inserted point or -1 if not found - */ - findClosestInsertedPoint(x: Vector3): number; - - /** - * Find the closest point to a given point. - * - * @param {Vector3} x The point coordinates - * @returns The id of the closest point or -1 if not found - */ - findClosestPoint(x: Vector3): number; - - /** - * Find the closest point within a specified radius. - * - * @param {Number} radius The search radius - * @param {Vector3} x The point coordinates - * @param {Number} inputDataLength The length of the input data - * @returns {IFindClosestPointResult} The closest point result - */ - findClosestPointWithinRadius( - radius: number, - x: Vector3, - inputDataLength?: number - ): IFindClosestPointResult; - - /** - * Free the search structure and reset the locator. - */ - freeSearchStructure(): void; - - /** - * Generate a polydata representation of the point locator. - * - * @param {vtkPolyData} polydata The polydata to generate representation for - * @returns - */ - generateRepresentation(polydata: vtkPolyData): boolean; - - /** - * Get the number of points per bucket. - * - * @returns {Number} The number of points per bucket. - */ - getNumberOfPointsPerBucket(): number; - - /** - * Get the points in the specified bucket. - * @param {Vector3} x The point coordinates - * @returns {Number[]} The points in the bucket - */ - getPointsInBucket(x: Vector3): number[]; - - /** - * Get the points stored in the point locator. - * - * @returns {Nullable} The vtkPoints object containing the points. - */ - getPoints(): Nullable; - - /** - * Initialize point insertion. - * - * @param {vtkPoints} points The points to insert - * @param {Bounds} bounds The bounds for the points - * @param {Number} estNumPts Estimated number of points for insertion - */ - initPointInsertion( - points: vtkPoints, - bounds: Bounds, - estNumPts?: number - ): boolean; - - /** - * Insert a point into the point locator. - * If the point is already present, it returns the existing ID. - * Otherwise, it inserts the point and returns a new ID. - * - * @param {Number} ptId The index of the point to insert. - * @param {Vector3} x The point to insert. - * @returns {IInsertPointResult} An object indicating if the point was inserted and its ID. - */ - insertPoint(ptId: number, x: Vector3): IInsertPointResult; - - /** - * Insert a point into the point locator. - * If the point is already present, it returns the existing ID. - * Otherwise, it inserts the point and returns a new ID. - * - * @param {Vector3} x The point to insert. - * @returns {IInsertPointResult} An object indicating if the point was inserted and its ID. - */ - insertNextPoint(x: Vector3): IInsertPointResult; - - /** - * Insert a point into the point locator. - * If the point is already present, it returns the existing ID. - * Otherwise, it inserts the point and returns a new ID. - * - * @param {Vector3} x The point to insert. - * @returns {IInsertPointResult} An object indicating if the point was inserted and its ID. - */ - insertUniquePoint(x: Vector3): IInsertPointResult; - - /** - * Check if a point is already inserted in the point locator. - * - * @param {Vector3} x The point to check. - * @returns {Number} The ID of the point if it exists, otherwise -1. - */ - isInsertedPoint(x: Vector3): number; - - /** - * Set the divisions of the point locator. - * @param {Vector3} divisions The number of divisions in each dimension. - * @returns {Boolean} True if the divisions were set successfully, false otherwise. - */ - setDivisions(divisions: Vector3): boolean; - - /** - * Set the divisions of the point locator. - * @param {Number} x The number of divisions in the x dimension. - * @param {Number} y The number of divisions in the y dimension. - * @param {Number} z The number of divisions in the z dimension. - * @returns {Boolean} True if the divisions were set successfully, false otherwise. - */ - setDivisions(x: number, y: number, z: number): boolean; - - /** - * Set the number of points per bucket. - * - * @param {Number} numberOfPointsPerBucket The number of points per bucket. - */ - setNumberOfPointsPerBucket(numberOfPointsPerBucket: number): boolean; - - /** - * Set the points for this point locator. - * This is typically used to initialize the locator with a set of points. - * - * @param {vtkPoints} points The vtkPoints object containing the points. - */ - setPoints(points: vtkPoints): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkPointLocator characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {object} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPointLocatorInitialValues -): void; - -// ---------------------------------------------------------------------------- - -/** - * Method use to create a new instance of vtkPointLocator - * @param {IPointLocatorInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IPointLocatorInitialValues -): vtkPointLocator; - -/** - * vtkPointLocator is a spatial search object to quickly locate points in 3D. - * - * vtkPointLocator works by dividing a specified region of space into a regular - * array of "rectangular" buckets, and then keeping a list of points that lie in - * each bucket. Typical operation involves giving a position in 3D and finding - * the closest point. - * - * vtkPointLocator has two distinct methods of interaction. In the first method, - * you supply it with a dataset, and it operates on the points in the dataset. - * In the second method, you supply it with an array of points, and the object - * operates on the array. - */ -export declare const vtkPointLocator: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkPointLocator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PointLocator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PointLocator.js deleted file mode 100644 index eaeb8598..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PointLocator.js +++ /dev/null @@ -1,751 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCellArray from '../Core/CellArray.js'; -import { b as vtkMath } from '../Core/Math/index.js'; -import vtkPoints from '../Core/Points.js'; -import vtkAbstractPointLocator from './AbstractPointLocator.js'; -import vtkBoundingBox from './BoundingBox.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkPointLocator methods -// ---------------------------------------------------------------------------- - -function vtkPointLocator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPointLocator'); - - /** - * Calculate the squared distance from point x to the bucket "nei". - * @param {Vector3} x The point coordinates - * @param {Vector3} nei The bucket coordinates - * @returns {Number} The squared distance to the bucket - */ - function distance2ToBucket(x, nei) { - // Compute bucket bounds - const bounds = [nei[0] * model.HX + model.BX, (nei[0] + 1) * model.HX + model.BX, nei[1] * model.HY + model.BY, (nei[1] + 1) * model.HY + model.BY, nei[2] * model.HZ + model.BZ, (nei[2] + 1) * model.HZ + model.BZ]; - return vtkBoundingBox.distance2ToBounds(x, bounds); - } - - /** - * Get the neighboring buckets for a given bucket index. - * @param {Number[]} ijk The bucket index - * @param {Number[]} ndivs The number of divisions in each dimension - * @param {Number} level The level of neighbors to retrieve - * @returns An array of neighboring bucket indices - */ - function getBucketNeighbors(ijk, ndivs, level) { - const buckets = []; - if (level === 0) { - buckets.push([...ijk]); - return buckets; - } - const minLevel = []; - const maxLevel = []; - for (let i = 0; i < 3; i++) { - const min = ijk[i] - level; - const max = ijk[i] + level; - minLevel[i] = min > 0 ? min : 0; - maxLevel[i] = max < ndivs[i] - 1 ? max : ndivs[i] - 1; - } - for (let i = minLevel[0]; i <= maxLevel[0]; i++) { - for (let j = minLevel[1]; j <= maxLevel[1]; j++) { - for (let k = minLevel[2]; k <= maxLevel[2]; k++) { - if (i === ijk[0] + level || i === ijk[0] - level || j === ijk[1] + level || j === ijk[1] - level || k === ijk[2] + level || k === ijk[2] - level) { - buckets.push([i, j, k]); - } - } - } - } - return buckets; - } - - /** - * Calculate the overlapping buckets for a given point and distance. - * @param {Vector3} x The point coordinates - * @param {*} ijk The bucket index - * @param {*} dist The search distance - * @param {*} level The level of detail - * @returns An array of overlapping bucket indices - */ - function getOverlappingBuckets(x, ijk, dist, level) { - const buckets = []; - const xBounds = [x[0], x[0], x[1], x[1], x[2], x[2]]; - const bbox = vtkBoundingBox.newInstance(); - bbox.setBounds(xBounds); - bbox.inflate(dist); - const ijkBounds = [ijk[0], ijk[0], ijk[1], ijk[1], ijk[2], ijk[2]]; - const ijkBox = vtkBoundingBox.newInstance(); - ijkBox.setBounds(ijkBounds); - ijkBox.inflate(level); - const minLevel = publicAPI.getBucketIndices([bbox.getBounds()[0], bbox.getBounds()[2], bbox.getBounds()[4]]); - const maxLevel = publicAPI.getBucketIndices([bbox.getBounds()[1], bbox.getBounds()[3], bbox.getBounds()[5]]); - - // Iterate through potential buckets - for (let i = minLevel[0]; i <= maxLevel[0]; i++) { - for (let j = minLevel[1]; j <= maxLevel[1]; j++) { - for (let k = minLevel[2]; k <= maxLevel[2]; k++) { - if (!ijkBox.containsPoint(i, j, k)) { - buckets.push([i, j, k]); - } - } - } - } - return buckets; - } - - /** - * Get the bucket index for a given bucket coordinate. - * @param {Number[]} ijk The bucket index - * @returns The bucket index - */ - function getBucketIndex(ijk) { - return ijk[0] + ijk[1] * model.XD + ijk[2] * model.sliceSize; - } - - /** - * Get the bucket indices for a given point. - * @param {Vector3} point The point coordinates - * @returns The bucket indices - */ - publicAPI.getBucketIndices = point => { - const ix = Math.floor((point[0] - model.BX) * model.FX); - const iy = Math.floor((point[1] - model.BY) * model.FY); - const iz = Math.floor((point[2] - model.BZ) * model.FZ); - const ijk = []; - ijk[0] = Math.max(0, Math.min(ix, model.XD - 1)); - ijk[1] = Math.max(0, Math.min(iy, model.YD - 1)); - ijk[2] = Math.max(0, Math.min(iz, model.ZD - 1)); - return ijk; - }; - - /** - * Get the bucket index for a given point. - * @param {Vector3} point The point coordinates - * @returns The bucket index - */ - publicAPI.getBucketIndex = point => { - const ijk = publicAPI.getBucketIndices(point); - return getBucketIndex(ijk); - }; - - /** - * Build the locator from the input dataset. - */ - publicAPI.buildLocator = () => { - model.level = 1; - const bounds = model.dataSet.getBounds(); - const numPts = model.dataSet.getNumberOfPoints(); - let numBuckets = Math.ceil(numPts / model.numberOfPointsPerBucket); - const ndivs = [0, 0, 0]; - const bbox = vtkBoundingBox.newInstance(); - bbox.setBounds(bounds); - if (model.automatic) { - bbox.computeDivisions(numBuckets, ndivs, model.bounds); - } else { - model.bounds = bbox.inflate(); - for (let i = 0; i < 3; i++) { - ndivs[i] = Math.max(1, model.divisions[i]); - } - } - model.divisions = ndivs; - numBuckets = ndivs[0] * ndivs[1] * ndivs[2]; - model.numberOfBuckets = numBuckets; - - // Compute width of bucket in three directions - for (let i = 0; i < 3; ++i) { - model.H[i] = (model.bounds[2 * i + 1] - model.bounds[2 * i]) / ndivs[i]; - } - model.hashTable.clear(); - publicAPI.computePerformanceFactors(); - for (let i = 0; i < numPts; ++i) { - const pt = model.dataSet.getPoints().getPoint(i); - const key = publicAPI.getBucketIndex(pt); - if (!model.hashTable.has(key)) { - model.hashTable.set(key, []); // Initialize bucket if it doesn't exist - } - - const bucket = model.hashTable.get(key); - bucket.push(i); - } - }; - publicAPI.initialize = () => { - model.points = null; - publicAPI.freeSearchStructure(); - }; - - /** - * Initialize point insertion. - * @param {*} points The points to insert - * @param {Bounds} bounds The bounds for the points - * @param {Number} estNumPts Estimated number of points for insertion - */ - publicAPI.initPointInsertion = function (points, bounds) { - let estNumPts = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; - if (points == null) { - vtkErrorMacro('A valid vtkPoints object is required for point insertion'); - return false; - } - if (!bounds || bounds.length !== 6) { - vtkErrorMacro('A valid bounds array of length 6 is required'); - return false; - } - if (!points) { - vtkErrorMacro('A valid vtkPoints is required for point insertion'); - return false; - } - publicAPI.freeSearchStructure(); - model.insertionPointId = 0; - model.points = points; - model.points.setNumberOfComponents(3); - model.points.initialize(); - let numBuckets = 0; - const ndivs = [0, 0, 0]; - const bbox = vtkBoundingBox.newInstance(); - bbox.setBounds(bounds); - if (model.automatic && estNumPts > 0) { - numBuckets = Math.ceil(estNumPts / model.numberOfPointsPerBucket); - bbox.computeDivisions(numBuckets, ndivs, model.bounds); - } else { - model.bounds = bbox.inflate(); - for (let i = 0; i < 3; i++) { - ndivs[i] = Math.max(1, model.divisions[i]); - } - } - model.divisions = ndivs; - numBuckets = ndivs[0] * ndivs[1] * ndivs[2]; - model.numberOfBuckets = numBuckets; - - // Compute width of bucket in three directions - for (let i = 0; i < 3; ++i) { - model.H[i] = (model.bounds[2 * i + 1] - model.bounds[2 * i]) / ndivs[i]; - } - model.insertionTol2 = model.tolerance * model.tolerance; - let maxDivs = 0; - let hmin = Number.MAX_VALUE; - for (let i = 0; i < 3; i++) { - hmin = model.H[i] < hmin ? model.H[i] : hmin; - maxDivs = maxDivs > model.divisions[i] ? maxDivs : model.divisions[i]; - } - model.insertionLevel = Math.ceil(model.tolerance / hmin); - model.insertionLevel = model.insertionLevel > maxDivs ? maxDivs : model.insertionLevel; - publicAPI.computePerformanceFactors(); - return true; - }; - - /** - * Insert a point into the point locator. - * If the point is already present, it returns the existing ID. - * Otherwise, it inserts the point and returns a new ID. - * - * @param {Number} ptId The index of the point to insert. - * @param {Vector3} x The point to insert. - * @returns {IInsertPointResult} An object indicating if the point was inserted and its ID. - */ - publicAPI.insertPoint = (ptId, x) => { - const key = publicAPI.getBucketIndex(x); - if (!model.hashTable.has(key)) { - model.hashTable.set(key, []); - } - const bucket = model.hashTable.get(key); - bucket.push(ptId); - model.points.insertPoint(ptId, x); - return { - inserted: true, - id: ptId - }; - }; - - /** - * Insert a point into the point locator. - * If the point is already present, it returns the existing ID. - * Otherwise, it inserts the point and returns a new ID. - * - * @param {Vector3} x The point to insert. - * @returns {IInsertPointResult} An object indicating if the point was inserted and its ID. - */ - publicAPI.insertNextPoint = x => { - const key = publicAPI.getBucketIndex(x); - if (!model.hashTable.has(key)) { - model.hashTable.set(key, []); - } - const bucket = model.hashTable.get(key); - bucket.push(model.insertionPointId); - model.points.insertPoint(model.insertionPointId, x); - return { - inserted: true, - id: model.insertionPointId++ - }; - }; - - /** - * Insert a point into the point locator. - * If the point is already present, it returns the existing ID. - * Otherwise, it inserts the point and returns a new ID. - * - * @param {Vector3} x The point to insert. - * @returns {IInsertPointResult} An object indicating if the point was inserted and its ID. - */ - publicAPI.insertUniquePoint = x => { - const ptId = publicAPI.isInsertedPoint(x); - if (ptId > -1) { - // Point already exists - return { - inserted: false, - id: ptId - }; - } - // Insert new point - const ret = publicAPI.insertNextPoint(x); - return ret; - }; - - /** - * Check if a point is already inserted in the point locator. - * - * @param {Vector3} x The point to check. - * @returns {Number} The ID of the point if it exists, otherwise -1. - */ - publicAPI.isInsertedPoint = x => { - const ijk = publicAPI.getBucketIndices(x); - - // The number and level of neighbors to search depends upon the tolerance and the bucket width. - // Here, we use InsertionLevel (default to 1 if not set) - const insertionLevel = model.insertionLevel ?? 1; - const numDivs = model.divisions; - for (let lvtk = 0; lvtk <= insertionLevel; lvtk++) { - const buckets = getBucketNeighbors(ijk, numDivs, lvtk); - for (let i = 0; i < buckets.length; i++) { - const nei = buckets[i]; - const key = getBucketIndex(nei); - const bucket = model.hashTable.get(key); - if (bucket) { - for (let j = 0; j < bucket.length; j++) { - const ptId = bucket[j]; - const pt = model.points.getPoint(ptId); - if (vtkMath.distance2BetweenPoints(x, pt) <= model.insertionTol2) { - return ptId; - } - } - } - } - } - return -1; - }; - - /** - * Find the closest point to a given point. - * - * @param {Vector3} x The point coordinates - * @returns The id of the closest point or -1 if not found - */ - publicAPI.findClosestPoint = x => { - publicAPI.buildLocator(); - const ijk = publicAPI.getBucketIndices(x); - const numDivs = model.divisions; - let minDist2 = Number.MAX_VALUE; - let closest = -1; - const maxLevel = Math.max(...numDivs); - for (let level = 0; level < maxLevel && closest === -1; level++) { - const neighbors = getBucketNeighbors(ijk, numDivs, level); - for (let n = 0; n < neighbors.length; n++) { - const key = getBucketIndex(neighbors[n]); - const bucket = model.hashTable.get(key); - if (bucket) { - for (let b = 0; b < bucket.length; b++) { - const ptId = bucket[b]; - const pt = model.dataSet.getPoints().getPoint(ptId); - const dist2 = vtkMath.distance2BetweenPoints(x, pt); - if (dist2 < minDist2) { - minDist2 = dist2; - closest = ptId; - } - } - } - } - } - return closest; - }; - - /** - * Find the closest point within a specified radius. - * - * @param {Number} radius The search radius - * @param {Vector3} x The point coordinates - * @param {Number} inputDataLength The length of the input data - * @returns {IFindClosestPointResult} The closest point result - */ - publicAPI.findClosestPointWithinRadius = function (radius, x) { - let inputDataLength = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; - publicAPI.buildLocator(); - let closest = -1; - const radius2 = radius * radius; - let minDist2 = 1.01 * radius2; - let dist2 = -1.0; - const ijk = publicAPI.getBucketIndices(x); - const key = getBucketIndex(ijk); - const bucket = model.hashTable.get(key); - if (bucket) { - for (let j = 0; j < bucket.length; j++) { - const ptId = bucket[j]; - const pt = model.dataSet.getPoints().getPoint(ptId); - const d2 = vtkMath.distance2BetweenPoints(x, pt); - if (d2 < minDist2) { - closest = ptId; - minDist2 = d2; - dist2 = d2; - } - } - } - - // Now, search only those buckets that are within a radius. - let refinedRadius; - let refinedRadius2; - if (minDist2 < radius2) { - refinedRadius = Math.sqrt(dist2); - refinedRadius2 = dist2; - } else { - refinedRadius = radius; - refinedRadius2 = radius2; - } - - // Optionally restrict radius by inputDataLength and bounds - if (inputDataLength !== 0.0) { - const distance2ToDataBounds = vtkBoundingBox.distance2ToBounds(x, model.bounds); - const maxDistance = Math.sqrt(distance2ToDataBounds) + inputDataLength; - if (refinedRadius > maxDistance) { - refinedRadius = maxDistance; - refinedRadius2 = maxDistance * maxDistance; - } - } - - // Compute radius levels for each dimension - const radiusLevels = [0, 0, 0]; - for (let i = 0; i < 3; i++) { - radiusLevels[i] = Math.floor(refinedRadius / model.H[i]); - if (radiusLevels[i] > model.divisions[i] / 2) { - radiusLevels[i] = Math.floor(model.divisions[i] / 2); - } - } - let radiusLevel = Math.max(...radiusLevels); - if (radiusLevel === 0) { - radiusLevel = 1; - } - for (let ii = radiusLevel; ii >= 1; ii--) { - const currentRadius = refinedRadius; - - // Build up a list of buckets that are arranged in rings - const buckets = getOverlappingBuckets(x, ijk, refinedRadius / ii, ii); - for (let i = 0; i < buckets.length; i++) { - const nei = buckets[i]; - const d2ToBucket = distance2ToBucket(x, nei); - if (d2ToBucket < refinedRadius2) { - const key1 = getBucketIndex(nei); - const bucket1 = model.hashTable.get(key1); - if (bucket1) { - for (let j = 0; j < bucket1.length; j++) { - const ptId = bucket1[j]; - const pt = model.dataSet.getPoints().getPoint(ptId); - if (pt) { - const d2 = vtkMath.distance2BetweenPoints(x, pt); - if (d2 < minDist2) { - closest = ptId; - minDist2 = d2; - refinedRadius = Math.sqrt(minDist2); - refinedRadius2 = minDist2; - dist2 = d2; - } - } - } - } - } - } - - // Update ii according to refined radius - if (refinedRadius < currentRadius && ii > 2) { - ii = Math.floor(ii * (refinedRadius / currentRadius)) + 1; - if (ii < 2) { - ii = 2; - } - } - } - if (closest !== -1 && minDist2 <= radius * radius) { - dist2 = minDist2; - } else { - closest = -1; - } - return { - id: closest, - dist2 - }; - }; - - /** - * Find the closest inserted point to the given coordinates. - * @param {Vector3} x The query point - * @returns {Number} The id of the closest inserted point or -1 if not found - */ - publicAPI.findClosestInsertedPoint = x => { - // Check if point is within bounds - for (let i = 0; i < 3; i++) { - if (x[i] < model.bounds[2 * i] || x[i] > model.bounds[2 * i + 1]) { - return -1; - } - } - const ijk = publicAPI.getBucketIndices(x); - const numDivs = model.divisions; - let closest = -1; - let minDist2 = Number.MAX_VALUE; - let level = 0; - const maxLevel = Math.max(numDivs[0], numDivs[1], numDivs[2]); - const points = model.points; - - // Search buckets and neighbors until closest found - for (; closest === -1 && level < maxLevel; level++) { - const neighbors = getBucketNeighbors(ijk, numDivs, level); - for (let i = 0; i < neighbors.length; i++) { - const nei = neighbors[i]; - const cno = nei[0] + nei[1] * model.XD + nei[2] * model.sliceSize; - const bucket = model.hashTable.get(cno); - if (bucket) { - for (let j = 0; j < bucket.length; j++) { - const ptId = bucket[j]; - const pt = points.getPoint(ptId); - const dist2 = vtkMath.distance2BetweenPoints(x, pt); - if (dist2 < minDist2) { - closest = ptId; - minDist2 = dist2; - } - } - } - } - } - - // Refine: search next level neighbors that could be closer - const refineNeighbors = getBucketNeighbors(ijk, numDivs, level); - for (let i = 0; i < refineNeighbors.length; i++) { - const nei = refineNeighbors[i]; - // Only consider neighbors that could possibly be closer - let dist2 = 0; - for (let j = 0; j < 3; j++) { - if (ijk[j] !== nei[j]) { - const MULTIPLES = ijk[j] > nei[j] ? nei[j] + 1 : nei[j]; - const diff = model.bounds[2 * j] + MULTIPLES * model.H[j] - x[j]; - dist2 += diff * diff; - } - } - if (dist2 < minDist2) { - const cno = nei[0] + nei[1] * model.XD + nei[2] * model.sliceSize; - const bucket = model.hashTable.get(cno); - if (bucket) { - for (let j = 0; j < bucket.length; j++) { - const ptId = bucket[j]; - const pt = points.getPoint(ptId); - const d2 = vtkMath.distance2BetweenPoints(x, pt); - if (d2 < minDist2) { - closest = ptId; - minDist2 = d2; - } - } - } - } - } - return closest; - }; - - /** - * Get the points in the specified bucket. - * @param {*} x The point coordinates - * @returns {Number[]} The points in the bucket - */ - publicAPI.getPointsInBucket = x => { - publicAPI.buildLocator(); - const key = publicAPI.getBucketIndex(x); - const bucket = model.hashTable.get(key); - if (!bucket) return []; // No points in this bucket - return bucket; - }; - - /** - * Free the search structure and reset the locator. - */ - publicAPI.freeSearchStructure = () => { - model.hashTable.clear(); - model.points = vtkPoints.newInstance(); - model.divisions = [50, 50, 50]; - vtkMath.uninitializeBounds(model.bounds); - }; - - /** - * Compute performance factors based on the current model state. - */ - publicAPI.computePerformanceFactors = () => { - model.HX = model.H[0]; - model.HY = model.H[1]; - model.HZ = model.H[2]; - model.FX = 1.0 / model.H[0]; - model.FY = 1.0 / model.H[1]; - model.FZ = 1.0 / model.H[2]; - model.BX = model.bounds[0]; - model.BY = model.bounds[2]; - model.BZ = model.bounds[4]; - model.XD = model.divisions[0]; - model.YD = model.divisions[1]; - model.ZD = model.divisions[2]; - model.sliceSize = model.divisions[0] * model.divisions[1]; - }; - - /** - * Generate a polydata representation of the point locator. - * - * @param {vtkPolyData} polydata The polydata to generate representation for - */ - publicAPI.generateRepresentation = polydata => { - if (!model.hashTable || model.hashTable.size === 0) { - vtkErrorMacro("Can't build representation, no data provided!"); - return; - } - const facePts = []; - facePts.length = 4; - - // Helper to add a face to polydata - function generateFace(face, i, j, k, pts, polys) { - // Compute the 8 corners of the bucket - const x0 = model.bounds[0] + i * model.HX; - const y0 = model.bounds[2] + j * model.HY; - const z0 = model.bounds[4] + k * model.HZ; - const x1 = x0 + model.HX; - const y1 = y0 + model.HY; - const z1 = z0 + model.HZ; - - // Each face is defined by 4 points (quad) - // axis: 0=x, 1=y, 2=z - if (face === 0) { - // yz plane - facePts[0] = [x0, y0, z0]; - facePts[1] = [x0, y1, z0]; - facePts[2] = [x0, y1, z1]; - facePts[3] = [x0, y0, z1]; - } else if (face === 1) { - // xz plane - facePts[0] = [x0, y0, z0]; - facePts[1] = [x1, y0, z0]; - facePts[2] = [x1, y0, z1]; - facePts[3] = [x0, y0, z1]; - } else if (face === 2) { - // xy plane - facePts[0] = [x0, y0, z0]; - facePts[1] = [x1, y0, z0]; - facePts[2] = [x1, y1, z0]; - facePts[3] = [x0, y1, z0]; - } - - // Add points to pts and get their ids - const ptIds = facePts.map(pt => pts.insertNextPoint(...pt)); - // Add quad to polys - polys.insertNextCell([ptIds[0], ptIds[1], ptIds[2], ptIds[3]]); - } - - // Prepare points and polys - const pts = vtkPoints.newInstance(); - pts.allocate(5000); - const polys = vtkCellArray.newInstance(); - polys.allocate(2048); - // We'll use a Set to avoid duplicate faces - const divisions = model.divisions; - const sliceSize = divisions[0] * divisions[1]; - - // Helper to check if a bucket exists - function hasBucket(i, j, k) { - if (i < 0 || i >= divisions[0] || j < 0 || j >= divisions[1] || k < 0 || k >= divisions[2]) { - return false; - } - const idx = i + j * divisions[0] + k * sliceSize; - return model.hashTable.has(idx); - } - - // Loop over all buckets, creating appropriate faces - for (let k = 0; k < divisions[2]; k++) { - for (let j = 0; j < divisions[1]; j++) { - for (let i = 0; i < divisions[0]; i++) { - const idx = i + j * divisions[0] + k * sliceSize; - const inside = model.hashTable.has(idx); - - // For each axis (0=x, 1=y, 2=z) - for (let axis = 0; axis < 3; axis++) { - let ni = i; - let nj = j; - let nk = k; - if (axis === 0) ni = i - 1; - if (axis === 1) nj = j - 1; - if (axis === 2) nk = k - 1; - const neighborInside = hasBucket(ni, nj, nk); - - // If neighbor is out of bounds - if (ni < 0 || nj < 0 || nk < 0) { - if (inside) { - generateFace(axis, i, j, k, pts, polys); - } - } else if (neighborInside && !inside || !neighborInside && inside) { - generateFace(axis, i, j, k, pts, polys); - } - } - - // Positive boundary faces - if (i + 1 >= divisions[0] && inside) { - generateFace(0, i + 1, j, k, pts, polys); - } - if (j + 1 >= divisions[1] && inside) { - generateFace(1, i, j + 1, k, pts, polys); - } - if (k + 1 >= divisions[2] && inside) { - generateFace(2, i, j, k + 1, pts, polys); - } - } - } - } - polydata.setPoints(pts); - polydata.setPolys(polys); - // polydata.squeeze(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - return { - divisions: [50, 50, 50], - numberOfPointsPerBucket: 3, - bounds: [0, 0, 0, 0, 0, 0], - tolerance: 0.001, - automatic: true, - ...initialValues - }; -} -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - vtkAbstractPointLocator.extend(publicAPI, model, defaultValues(initialValues)); - macro.setGet(publicAPI, model, ['numberOfPointsPerBucket', 'points']); - macro.setGetArray(publicAPI, model, ['divisions'], 3); - vtkMath.uninitializeBounds(model.bounds); - model.points = model.points || vtkPoints.newInstance(); - model.hashTable = new Map(); - model.H = [0, 0, 0]; // Bucket sizes in three dimensions - model.insertionPointId = 0; // ID for next point to be inserted - model.insertionTol2 = 0.0001; // Tolerance squared for point insertion - model.insertionLevel = 0; // Level of neighbors to search for insertion - vtkPointLocator(publicAPI, model); -} -const newInstance = macro.newInstance(extend, 'vtkPointLocator'); - -// ---------------------------------------------------------------------------- -var vtkPointLocator$1 = { - newInstance, - extend -}; - -export { vtkPointLocator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PointSet.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PointSet.d.ts deleted file mode 100644 index a59bffe4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PointSet.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -import { Bounds } from './../../types'; -import vtkPoints from './../Core/Points'; -import vtkDataSet, { IDataSetInitialValues } from './DataSet'; - -/** - * - */ -export interface IPointSetInitialValues extends IDataSetInitialValues {} - -export interface vtkPointSet extends vtkDataSet { - /** - * Empty the points and initialize the data set and . - * @see vtkDataSet::initialize() - */ - initialize(): void; - - /** - * Compute the (X, Y, Z) bounds of the data. - */ - computeBounds(): void; - - /** - * Get the bounds for this mapper as [xmin, xmax, ymin, ymax,zmin, zmax]. - * @return {Bounds} The bounds for the mapper. - */ - getBounds(): Bounds; - - /** - * - */ - getNumberOfPoints(): number; - - /** - * - */ - getPoints(): vtkPoints; - - /** - * - */ - setPoints(points: vtkPoints): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkPointSet characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPointSetInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPointSetInitialValues -): void; - -/** - * Method used to create a new instance of vtkPointSet. - * @param {IPointSetInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IPointSetInitialValues -): vtkPointSet; - -/** - * vtkPointSet is an abstract class that specifies the interface for - * datasets that explicitly use "point" arrays to represent geometry. - * - * For example, vtkPolyData and vtkUnstructuredGrid require point arrays - * to specify point position, while vtkStructuredPoints generates point - * positions implicitly. - */ -export declare const vtkPointSet: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkPointSet; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PointSet.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PointSet.js deleted file mode 100644 index 120b0de3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PointSet.js +++ /dev/null @@ -1,81 +0,0 @@ -import vtk from '../../vtk.js'; -import { m as macro } from '../../macros2.js'; -import vtkDataSet from './DataSet.js'; -import vtkPoints from '../Core/Points.js'; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -// vtkPointSet methods -// ---------------------------------------------------------------------------- - -function vtkPointSet(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPointSet'); - - // Create empty points - if (!model.points) { - model.points = vtkPoints.newInstance(); - } else { - model.points = vtk(model.points); - } - publicAPI.getNumberOfPoints = () => model.points.getNumberOfPoints(); - publicAPI.getBounds = () => model.points.getBounds(); - publicAPI.computeBounds = () => { - publicAPI.getBounds(); - }; - const superShallowCopy = publicAPI.shallowCopy; - publicAPI.shallowCopy = function (other) { - let debug = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - superShallowCopy(other, debug); - model.points = vtkPoints.newInstance(); - model.points.shallowCopy(other.getPoints()); - }; - const superGetMTime = publicAPI.getMTime; - publicAPI.getMTime = () => { - const mTime = superGetMTime(); - return Math.max(mTime, model.points?.getMTime() ?? mTime); - }; - const superInitialize = publicAPI.initialize; - publicAPI.initialize = () => { - model.points?.initialize(); - return superInitialize(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // points: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkDataSet.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['points']); - - // Object specific methods - vtkPointSet(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPointSet'); - -// ---------------------------------------------------------------------------- - -var vtkPointSet$1 = { - newInstance, - extend -}; - -export { vtkPointSet$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PolyData.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PolyData.d.ts deleted file mode 100644 index aad5fd75..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PolyData.d.ts +++ /dev/null @@ -1,185 +0,0 @@ -import { CellType, Vector3 } from './../../types'; -import vtkCellArray from './../Core/CellArray'; -import vtkPointSet, { IPointSetInitialValues } from './PointSet'; - -/** - * - */ -export interface IPolyDataInitialValues extends IPointSetInitialValues {} - -export interface vtkPolyData extends vtkPointSet { - /** - * Empty the cells and initialize the point set. - * @see vtkPointSet::initialize() - */ - initialize(): void; - - /** - * Create data structure that allows random access of cells. - */ - buildCells(): void; - - /** - * Create upward links from points to cells that use each point. Enables - * topologically complex queries. - * @param {Number} initialSize - */ - buildLinks(initialSize?: number): void; - - /** - * If you know the type of cell, you may provide it to improve performances. - * @param {Number} cellId - * @param cellHint - */ - getCell(cellId: number, cellHint: any): void; - - /** - * Get the neighbors at an edge. - * @param {Number} cellId The Id of the cell. - * @param {Vector3} point1 The first point coordinate. - * @param {Vector3} point2 The second point coordinate. - */ - getCellEdgeNeighbors(cellId: number, point1: Vector3, point2: Vector3): void; - - /** - * Get a list of point ids that define a cell. - * @param {Number} cellId The Id of the cell. - * @return an object made of the cellType and a subarray `cellPointIds` of the cell points. - */ - getCellPoints(cellId: number): object; - - /** - * Get the type of the cell - * @param {Number} cellId The Id of the cell. - * @return CellType The type of the cell. - */ - getCellType(cellId: number): CellType; - - /** - * Get the cell array defining cells. - */ - getCells(): vtkCellArray; - - /** - * Get the cell array defining lines. - */ - getLines(): vtkCellArray; - - /** - * Get the links between points and cells. - */ - getLinks(): any; // vtkCellLinks - - /** - * Get the maximum cell size. - * Returns 0 if there is no cell. - */ - getMaxCellSize(): number; - - /** - * Determine the number of cells composing the polydata. - */ - getNumberOfCells(): number; - - /** - * Determine the number of lines composing the polydata. - */ - getNumberOfLines(): number; - - /** - * Determine the number of points composing the polydata. - */ - getNumberOfPoints(): number; - - /** - * Determine the number of polys composing the polydata. - */ - getNumberOfPolys(): number; - - /** - * Determine the number of strips composing the polydata. - */ - getNumberOfStrips(): number; - - /** - * Determine the number of vertices composing the polydata. - */ - getNumberOfVerts(): number; - - /** - * Topological inquiry to get cells using point. - * @param ptId - */ - getPointCells(ptId: number): void; - - /** - * Get the cell array defining polys. - */ - getPolys(): vtkCellArray; - - /** - * Get the cell array defining strips. - */ - getStrips(): vtkCellArray; - - /** - * Get the cell array defining vertices. - * If there are no vertices, an empty array will be returned (convenience to - * simplify traversal). - */ - getVerts(): vtkCellArray; - - /** - * Set the cell array defining lines. - * @param {vtkCellArray} lines The cell array defining lines. - */ - setLines(lines: vtkCellArray): boolean; - - /** - * Set the cell array defining polys. - * @param {vtkCellArray} polys The cell array defining polys. - */ - setPolys(polys: vtkCellArray): boolean; - - /** - * Set the cell array defining strips. - * @param {vtkCellArray} strips The cell array defining strips. - */ - setStrips(strips: vtkCellArray): boolean; - - /** - * Set the cell array defining vertices. - * @param {vtkCellArray} verts The cell array defining vertices. - */ - setVerts(verts: vtkCellArray): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkPolyData characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPolyDataInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPolyDataInitialValues -): void; - -/** - * Method used to create a new instance of vtkPolyData. - * @param {IPolyDataInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IPolyDataInitialValues -): vtkPolyData; - -/** - * vtkPolyData is a dataset that represents a geometric structure consisting of vertices, lines, polygons, and/or strips. - */ -export declare const vtkPolyData: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkPolyData; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PolyData.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PolyData.js deleted file mode 100644 index b8a1e55e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PolyData.js +++ /dev/null @@ -1,265 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtk from '../../vtk.js'; -import vtkCellArray from '../Core/CellArray.js'; -import vtkCellLinks from './CellLinks.js'; -import vtkCellTypes from './CellTypes.js'; -import vtkLine from './Line.js'; -import vtkPointSet from './PointSet.js'; -import vtkPolyLine from './PolyLine.js'; -import vtkPolygon from './Polygon.js'; -import vtkQuad from './Quad.js'; -import vtkTriangle from './Triangle.js'; -import vtkTriangleStrip from './TriangleStrip.js'; -import { CellType } from './CellTypes/Constants.js'; -import { POLYDATA_FIELDS } from './PolyData/Constants.js'; - -const { - vtkWarningMacro -} = macro; -const CELL_FACTORY = { - [CellType.VTK_LINE]: vtkLine, - [CellType.VTK_QUAD]: vtkQuad, - [CellType.VTK_POLY_LINE]: vtkLine, - [CellType.VTK_TRIANGLE]: vtkTriangle, - [CellType.VTK_TRIANGLE_STRIP]: vtkTriangleStrip, - [CellType.VTK_POLY_LINE]: vtkPolyLine, - [CellType.VTK_POLYGON]: vtkPolygon -}; - -// ---------------------------------------------------------------------------- -// vtkPolyData methods -// ---------------------------------------------------------------------------- - -function vtkPolyData(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPolyData'); - function camelize(str) { - return str.replace(/(?:^\w|[A-Z]|\b\w)/g, letter => letter.toUpperCase()).replace(/\s+/g, ''); - } - function clearCells() { - model.cells = undefined; - model.links = undefined; - } - - // build empty cell arrays and set methods - POLYDATA_FIELDS.forEach(type => { - publicAPI[`getNumberOf${camelize(type)}`] = () => model[type].getNumberOfCells(); - if (!model[type]) { - model[type] = vtkCellArray.newInstance(); - } else { - model[type] = vtk(model[type]); - } - model[`_on${camelize(type)}Changed`] = clearCells; - }); - publicAPI.getNumberOfCells = () => POLYDATA_FIELDS.reduce((num, cellType) => num + model[cellType].getNumberOfCells(), 0); - const superShallowCopy = publicAPI.shallowCopy; - publicAPI.shallowCopy = function (other) { - let debug = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - superShallowCopy(other, debug); - POLYDATA_FIELDS.forEach(type => { - model[type] = vtkCellArray.newInstance(); - model[type].shallowCopy(other.getReferenceByName(type)); - }); - }; - const superGetMTime = publicAPI.getMTime; - publicAPI.getMTime = () => POLYDATA_FIELDS.reduce((mTime, type) => Math.max(mTime, model[type]?.getMTime() ?? mTime), superGetMTime()); - const superInitialize = publicAPI.initialize; - publicAPI.initialize = () => { - POLYDATA_FIELDS.forEach(type => model[type]?.initialize()); - clearCells(); - return superInitialize(); - }; - publicAPI.buildCells = () => { - // here are the number of cells we have - const nVerts = publicAPI.getNumberOfVerts(); - const nLines = publicAPI.getNumberOfLines(); - const nPolys = publicAPI.getNumberOfPolys(); - const nStrips = publicAPI.getNumberOfStrips(); - - // pre-allocate the space we need - const nCells = nVerts + nLines + nPolys + nStrips; - const types = new Uint8Array(nCells); - let pTypes = types; - const locs = new Uint32Array(nCells); - let pLocs = locs; - - // record locations and type of each cell. - // verts - if (nVerts) { - let nextCellPts = 0; - model.verts.getCellSizes().forEach((numCellPts, index) => { - pLocs[index] = nextCellPts; - pTypes[index] = numCellPts > 1 ? CellType.VTK_POLY_VERTEX : CellType.VTK_VERTEX; - nextCellPts += numCellPts + 1; - }); - pLocs = pLocs.subarray(nVerts); - pTypes = pTypes.subarray(nVerts); - } - - // lines - if (nLines) { - let nextCellPts = 0; - model.lines.getCellSizes().forEach((numCellPts, index) => { - pLocs[index] = nextCellPts; - pTypes[index] = numCellPts > 2 ? CellType.VTK_POLY_LINE : CellType.VTK_LINE; - if (numCellPts === 1) { - vtkWarningMacro('Building VTK_LINE ', index, ' with only one point, but VTK_LINE needs at least two points. Check the input.'); - } - nextCellPts += numCellPts + 1; - }); - pLocs = pLocs.subarray(nLines); - pTypes = pTypes.subarray(nLines); - } - - // polys - if (nPolys) { - let nextCellPts = 0; - model.polys.getCellSizes().forEach((numCellPts, index) => { - pLocs[index] = nextCellPts; - switch (numCellPts) { - case 3: - pTypes[index] = CellType.VTK_TRIANGLE; - break; - case 4: - pTypes[index] = CellType.VTK_QUAD; - break; - default: - pTypes[index] = CellType.VTK_POLYGON; - break; - } - if (numCellPts < 3) { - vtkWarningMacro('Building VTK_TRIANGLE ', index, ' with less than three points, but VTK_TRIANGLE needs at least three points. Check the input.'); - } - nextCellPts += numCellPts + 1; - }); - pLocs += pLocs.subarray(nPolys); - pTypes += pTypes.subarray(nPolys); - } - - // strips - if (nStrips) { - let nextCellPts = 0; - pTypes.fill(CellType.VTK_TRIANGLE_STRIP, 0, nStrips); - model.strips.getCellSizes().forEach((numCellPts, index) => { - pLocs[index] = nextCellPts; - nextCellPts += numCellPts + 1; - }); - } - - // set up the cell types data structure - model.cells = vtkCellTypes.newInstance(); - model.cells.setCellTypes(nCells, types, locs); - }; - - /** - * Create upward links from points to cells that use each point. Enables - * topologically complex queries. - */ - publicAPI.buildLinks = function () { - let initialSize = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - if (model.cells == null) { - publicAPI.buildCells(); - } - model.links = vtkCellLinks.newInstance(); - if (initialSize > 0) { - model.links.allocate(initialSize); - } else { - model.links.allocate(publicAPI.getPoints().getNumberOfPoints()); - } - model.links.buildLinks(publicAPI); - }; - publicAPI.getCellType = cellId => model.cells.getCellType(cellId); - publicAPI.getCellPoints = cellId => { - const cellType = publicAPI.getCellType(cellId); - let cells = null; - switch (cellType) { - case CellType.VTK_VERTEX: - case CellType.VTK_POLY_VERTEX: - cells = model.verts; - break; - case CellType.VTK_LINE: - case CellType.VTK_POLY_LINE: - cells = model.lines; - break; - case CellType.VTK_TRIANGLE: - case CellType.VTK_QUAD: - case CellType.VTK_POLYGON: - cells = model.polys; - break; - case CellType.VTK_TRIANGLE_STRIP: - cells = model.strips; - break; - default: - cells = null; - return { - type: 0, - cellPointIds: null - }; - } - const loc = model.cells.getCellLocation(cellId); - const cellPointIds = cells.getCell(loc); - return { - cellType, - cellPointIds - }; - }; - publicAPI.getPointCells = ptId => model.links.getCells(ptId); - publicAPI.getCellEdgeNeighbors = (cellId, point1, point2) => { - const link1 = model.links.getLink(point1); - const link2 = model.links.getLink(point2); - return link1.cells.filter(cell => cell !== cellId && link2.cells.indexOf(cell) !== -1); - }; - - /** - * If you know the type of cell, you may provide it to improve performances. - */ - publicAPI.getCell = function (cellId) { - let cellHint = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - const cellInfo = publicAPI.getCellPoints(cellId); - const cell = cellHint || CELL_FACTORY[cellInfo.cellType].newInstance(); - cell.initialize(publicAPI.getPoints(), cellInfo.cellPointIds); - return cell; - }; - publicAPI.getMaxCellSize = () => POLYDATA_FIELDS.reduce((max, type) => Math.max(max, model[type]?.getMaxCellSize?.() ?? 0), 0); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // verts: null, - // lines: null, - // polys: null, - // strips: null, - // cells: null, - // links: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkPointSet.extend(publicAPI, model, initialValues); - macro.get(publicAPI, model, ['cells', 'links']); - macro.setGet(publicAPI, model, ['verts', 'lines', 'polys', 'strips']); - - // Object specific methods - vtkPolyData(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPolyData'); - -// ---------------------------------------------------------------------------- - -var vtkPolyData$1 = { - newInstance, - extend -}; - -export { CELL_FACTORY, vtkPolyData$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PolyData/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PolyData/Constants.d.ts deleted file mode 100644 index 16bf84c9..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PolyData/Constants.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export declare const POLYDATA_FIELDS: string[]; - -declare const _default: { - POLYDATA_FIELDS: typeof POLYDATA_FIELDS; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PolyData/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PolyData/Constants.js deleted file mode 100644 index 5e19e775..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PolyData/Constants.js +++ /dev/null @@ -1,6 +0,0 @@ -const POLYDATA_FIELDS = ['verts', 'lines', 'polys', 'strips']; -var Constants = { - POLYDATA_FIELDS -}; - -export { POLYDATA_FIELDS, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PolyLine.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PolyLine.d.ts deleted file mode 100644 index 65bf1f19..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PolyLine.d.ts +++ /dev/null @@ -1,145 +0,0 @@ -import { quat, vec3 } from 'gl-matrix'; -import { Nullable, Vector2, Vector3 } from './../../types'; -import vtkCell, { ICellInitialValues } from './Cell'; -import { IIntersectWithLine } from './Line'; - -export interface IPolyLineInitialValues extends ICellInitialValues {} - -export interface vtkPolyLine extends vtkCell { - /** - * Get the topological dimensional of the cell (0, 1, 2 or 3). - */ - getCellDimension(): number; - - /** - * @param {number} t1 - * @param {number} t2 - * @param {Vector3} p1 The first point coordinate. - * @param {Vector3} p2 The second point coordinate. - * @param {Number} tol The tolerance to use. - * @param {Vector3} x The point which intersect the line. - * @param {Vector3} pcoords The parametric coordinates. - */ - intersectWithLine( - t1: number, - t2: number, - p1: Vector3, - p2: Vector3, - tol: number, - x: Vector3, - pcoords: Vector3 - ): IIntersectWithLine; - - /** - * Determine global coordinate (x[3]) from subId and parametric coordinates. - * Also set interpolation weights. (There are two weights for the two - * points of the line segment specified by subId) - * - * @param {number} subId - * @param {Vector3} pcoords The parametric coordinates - * @param {Vector3} x The global coordinate - * @param {Vector2} weights The interpolation weights - */ - evaluateLocation( - subId: number, - pcoords: Vector3, - x: Vector3, - weights: Vector2 - ): void; - - /** - * Determine global orientation (q[3]) from subId and parametric coordinates. - * This uses the same algorithm as vtkLine (interpolates using slerp). - * Also set interpolation weights. (There are two weights for the two - * points of the line segment specified by subId) - * - * @param {number} subId - * @param {Vector3} pcoords The parametric coordinates - * @param {Vector3} q The global orientation - * @param {Vector2} weights The interpolation weights - * @returns {boolean} Wether the orientation has been set in `q' - */ - evaluateOrientation( - subId: number, - pcoords: Vector3, - q: quat, - weights: Vector2 - ): boolean; - - /** - * Returns an array containing for each pointIdx between 0 (included) and - * numberOfPoints (excluded) the distance from the first point of the - * polyline to the point at pointIdx - * In particular if tda = publicAPI.getDistancesToFirstPoint(), then tda[0] = 0 - * and tda[tda.length - 1] is the total length of the polyline - */ - getDistancesToFirstPoint(): number[]; - - /** - * Returns the subId of the segment at the given distance from the first - * point of the polyline - * If the distance is negative or greater than the total length of the - * polyline, returns -1 - * - * @param distance The distance from the first point of the polyline - */ - findPointIdAtDistanceFromFirstPoint(distance: number): number; - - /** - * An array of quaternions used to orient the polyline at each of its point - * The length of the array has to be the same size as the number of points - * Defaults to null. - */ - getOrientations(): Nullable; - - /** - * @see getOrientations - * @param orientations - */ - setOrientations(orientations: Nullable): boolean; - - /** - * The function used in getDistancesToFirstPoint and in findPointIdAtDistanceFromFirstPoint - * Defaults to vec3.dist of gl-matrix - */ - getDistanceFunction(): (a: vec3, b: vec3) => number; - - /** - * @see getDistanceFunction - * @param f - */ - setDistanceFunction(f: (a: vec3, b: vec3) => number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkPolyLine characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPolyLineInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPolyLineInitialValues -): void; - -/** - * Method used to create a new instance of vtkPolyLine. - * @param {IPolyLineInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IPolyLineInitialValues -): vtkPolyLine; - -/** - * vtkPolyLine is a cell which representant a poly line. - * - * @see vtkCell - */ -export declare const vtkPolyLine: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkPolyLine; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PolyLine.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PolyLine.js deleted file mode 100644 index 76cc888b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/PolyLine.js +++ /dev/null @@ -1,137 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCell from './Cell.js'; -import vtkLine from './Line.js'; -import { vec3 } from 'gl-matrix'; - -function vtkPolyLine(publicAPI, model) { - model.classHierarchy.push('vtkPolyLine'); - const line = vtkLine.newInstance(); - line.getPoints().setNumberOfPoints(2); - publicAPI.getCellDimension = () => 1; - publicAPI.intersectWithLine = (t1, t2, p1, p2, tol, x, pcoords) => { - const outObj = { - intersect: 0, - t: Number.MAX_VALUE, - subId: 0, - betweenPoints: null - }; - const numLines = publicAPI.getNumberOfPoints() - 1; - let pDistMin = Number.MAX_VALUE; - for (let subId = 0; subId < numLines; subId++) { - const pCoords = [0, 0, 0]; - line.getPoints().getData().set(model.points.getData().subarray(3 * subId, 3 * (subId + 2))); - const lineIntersected = line.intersectWithLine(p1, p2, tol, x, pcoords); - if (lineIntersected.intersect === 1 && lineIntersected.t <= outObj.t + tol && lineIntersected.t >= t1 && lineIntersected.t <= t2) { - outObj.intersect = 1; - const pDist = line.getParametricDistance(pCoords); - if (pDist < pDistMin || pDist === pDistMin && lineIntersected.t < outObj.t) { - outObj.subId = subId; - outObj.t = lineIntersected.t; - pDistMin = pDist; - for (let k = 0; k < 3; k++) { - x[k]; - pCoords[k]; - } - } - } - } - return outObj; - }; - publicAPI.evaluateLocation = (subId, pcoords, x, weights) => { - line.getPoints().getData().set(model.points.getData().subarray(3 * subId, 3 * (subId + 2))); - return line.evaluateLocation(pcoords, x, weights); - }; - publicAPI.evaluateOrientation = (subId, pcoords, q, weights) => { - if (model.orientations) { - line.setOrientations([model.orientations[subId], model.orientations[subId + 1]]); - } else { - line.setOrientations(null); - } - return line.evaluateOrientation(pcoords, q, weights); - }; - publicAPI.getDistancesToFirstPoint = () => { - const dTime = model.distancesTime.getMTime(); - if (dTime < model.points.getMTime() || dTime < publicAPI.getMTime()) { - const numPoints = publicAPI.getNumberOfPoints(); - if (!model.distances) { - model.distances = new Array(numPoints); - } else { - model.distances.length = numPoints; - } - if (numPoints > 0) { - const previousPoint = new Array(3); - const currentPoint = new Array(3); - let totalDistance = 0; - model.distances[0] = totalDistance; - model.points.getPoint(0, previousPoint); - for (let i = 1; i < numPoints; ++i) { - model.points.getPoint(i, currentPoint); - totalDistance += model.distanceFunction(previousPoint, currentPoint); - model.distances[i] = totalDistance; - vec3.copy(previousPoint, currentPoint); - } - } - model.distancesTime.modified(); - } - return model.distances; - }; - publicAPI.findPointIdAtDistanceFromFirstPoint = distance => { - const distances = publicAPI.getDistancesToFirstPoint(); - // At least two points to return an ID - if (distances.length < 2) { - return -1; - } - // Binary search in the distance array - let minId = 0; - let maxId = distances.length - 1; - if (distance < distances[minId] || distance > distances[maxId] || distances[maxId] === 0) { - return -1; - } - while (maxId - minId > 1) { - const midId = Math.floor((minId + maxId) / 2); - if (distances[midId] <= distance) { - minId = midId; - } else { - maxId = midId; - } - } - return minId; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - orientations: null, - // an array of quat or null - distanceFunction: vec3.dist -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkCell.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['orientations', 'distanceFunction']); - model.distancesTime = {}; - macro.obj(model.distancesTime, { - mtime: 0 - }); - vtkPolyLine(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPolyLine'); - -// ---------------------------------------------------------------------------- - -var vtkPolyLine$1 = { - newInstance, - extend -}; - -export { vtkPolyLine$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Polygon.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Polygon.d.ts deleted file mode 100644 index e8fad31c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Polygon.d.ts +++ /dev/null @@ -1,107 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { Bounds, TypedArray, Vector3 } from './../../types'; - -export interface IPolygonInitialValues { - firstPoint?: Vector3; - pointCount?: number; - tris?: Vector3[]; -} - -/** - * Different states which pointInPolygon could return. - */ -export enum PolygonIntersectionState { - FAILURE, - OUTSIDE, - INSIDE, - INTERSECTION, - ON_LINE, -} - -export interface vtkPolygon extends vtkObject { - /** - * Get the array of triangles that triangulate the polygon. - */ - getPointArray(): Vector3[]; - - /** - * Set the polygon's points. - * @param {Vector3[]} points The polygon's points. - */ - setPoints(points: Vector3[]): void; - - /** - * Triangulate this polygon. - * The output data must be accessed through `getPointArray`. - * The output data contains points by group of three: each three-group - * defines one triangle. - */ - triangulate(): void; -} - -/** - * Determine whether a point is inside a polygon. The function uses a winding - * number calculation generalized to the 3D plane one which the polygon - * resides. Returns 0 if point is not in the polygon; 1 if it is inside. Can - * also return -1 to indicate a degenerate polygon. This implementation is - * inspired by Dan Sunday's algorithm found in the book Practical Geometry - * Algorithms. - * - * @param {Vector3} point Point to check - * @param {Array|TypedArray} vertices Vertices of the polygon - * @param {Bounds} bounds Bounds of the vertices - * @param {Vector3} normal Normal vector of the polygon - * @returns {PolygonIntersectionState} Integer indicating the type of intersection - */ -export function pointInPolygon( - point: Vector3, - vertices: Array | TypedArray, - bounds: Bounds, - normal: Vector3 -): PolygonIntersectionState; - -/** - * Compute the centroid of a polygon. - * @param {Array} poly - Array of point indices for the polygon - * @param {vtkPoints} points - vtkPoints instance - * @param {Vector3} [centroid] - Optional output array (length 3) - * @returns {Vector3} The centroid as [x, y, z] - */ -export function computeCentroid( - poly: Array, - points: TypedArray, - centroid?: Vector3 -): Vector3; - -/** - * Method used to decorate a given object (publicAPI+model) with vtkPolygon characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPolygonInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPolygonInitialValues -): void; - -/** - * Method used to create a new instance of vtkPolygon. - * @param {IPolygonInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: IPolygonInitialValues): vtkPolygon; - -/** - * vtkPolygon represents a 2D n-sided polygon. - * - * The polygons cannot have any internal holes, and cannot self-intersect. - * Define the polygon with n-points ordered in the counter-clockwise direction. - * Do not repeat the last point. - */ -export declare const vtkPolygon: { - newInstance: typeof newInstance; - extend: typeof extend; - // static -}; -export default vtkPolygon; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Polygon.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Polygon.js deleted file mode 100644 index a1d92e31..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Polygon.js +++ /dev/null @@ -1,414 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { d as dot, s as subtract, j as cross, k as add, l as normalize, f as distance2BetweenPoints, n as norm } from '../Core/Math/index.js'; -import vtkLine from './Line.js'; -import vtkPlane from './Plane.js'; -import vtkPriorityQueue from '../Core/PriorityQueue.js'; -import vtkBoundingBox from './BoundingBox.js'; -import { IntersectionState } from './Line/Constants.js'; -import { PolygonWithPointIntersectionState, FLOAT_EPSILON, TOLERANCE, EPSILON } from './Polygon/Constants.js'; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -// Given the line (p0,p1), determine if the given point is located to the left -// of, on, or to the right of a line (with the function returning >0, ==0, or -// <0 respectively). The points are assumed 3D points, but projected into -// one of x-y-z planes; hence the indices axis0 and axis1 specify which plane -// the computation is to be performed on. -function pointLocation(axis0, axis1, p0, p1, point) { - return (p1[axis0] - p0[axis0]) * (point[axis1] - p0[axis1]) - (point[axis0] - p0[axis0]) * (p1[axis1] - p0[axis1]); -} - -//------------------------------------------------------------------------------ - -function pointInPolygon(point, vertices, bounds, normal) { - // Do a quick bounds check to throw out trivial cases. - // winding plane. - if (point[0] < bounds[0] || point[0] > bounds[1] || point[1] < bounds[2] || point[1] > bounds[3] || point[2] < bounds[4] || point[2] > bounds[5]) { - return PolygonWithPointIntersectionState.OUTSIDE; - } - - // Check that the normal is non-zero. - if (normalize(normal) <= FLOAT_EPSILON) { - return PolygonWithPointIntersectionState.FAILURE; - } - - // Assess whether the point lies on the boundary of the polygon. Points on - // the boundary are considered inside the polygon. Need to define a small - // tolerance relative to the bounding box diagonal length of the polygon. - let tol2 = TOLERANCE * ((bounds[1] - bounds[0]) * (bounds[1] - bounds[0]) + (bounds[3] - bounds[2]) * (bounds[3] - bounds[2]) + (bounds[5] - bounds[4]) * (bounds[5] - bounds[4])); - tol2 *= tol2; - tol2 = tol2 === 0.0 ? FLOAT_EPSILON : tol2; - const p0 = []; - const p1 = []; - for (let i = 0; i < vertices.length;) { - // Check coincidence to polygon vertices - p0[0] = vertices[i++]; - p0[1] = vertices[i++]; - p0[2] = vertices[i++]; - if (distance2BetweenPoints(point, p0) <= tol2) { - return PolygonWithPointIntersectionState.INSIDE; - } - - // Check coincidence to polygon edges - const { - distance, - t - } = vtkLine.distanceToLine(point, p0, p1); - if (distance <= tol2 && t > 0.0 && t < 1.0) { - return PolygonWithPointIntersectionState.INSIDE; - } - } - - // If here, begin computation of the winding number. This method works for - // points/polygons arbitrarily oriented in 3D space. Hence a projection - // onto one of the x-y-z coordinate planes using the maximum normal - // component. The computation will be performed in the (axis0, axis1) plane. - let axis0; - let axis1; - if (Math.abs(normal[0]) > Math.abs(normal[1])) { - if (Math.abs(normal[0]) > Math.abs(normal[2])) { - axis0 = 1; - axis1 = 2; - } else { - axis0 = 0; - axis1 = 1; - } - } else if (Math.abs(normal[1]) > Math.abs(normal[2])) { - axis0 = 0; - axis1 = 2; - } else { - axis0 = 0; - axis1 = 1; - } - - // Compute the winding number wn. If after processing all polygon edges - // wn == 0, then the point is outside. Otherwise, the point is inside the - // polygon. Process all polygon edges determining if there are ascending or - // descending crossings of the line axis1=constant. - let wn = 0; - for (let i = 0; i < vertices.length;) { - p0[0] = vertices[i++]; - p0[1] = vertices[i++]; - p0[2] = vertices[i++]; - if (i < vertices.length) { - p1[0] = vertices[i]; - p1[1] = vertices[i + 1]; - p1[2] = vertices[i + 2]; - } else { - p1[0] = vertices[0]; - p1[1] = vertices[1]; - p1[2] = vertices[2]; - } - if (p0[axis1] <= point[axis1]) { - if (p1[axis1] > point[axis1]) { - // if an upward crossing - if (pointLocation(axis0, axis1, p0, p1, point) > 0) { - // if x left of edge - ++wn; // a valid up intersect, increment the winding number - } - } - } else if (p1[axis1] <= point[axis1]) { - // if a downward crossing - if (pointLocation(axis0, axis1, p0, p1, point) < 0) { - // if x right of edge - --wn; // a valid down intersect, decrement the winding number - } - } - } // Over all polygon edges - - // A winding number == 0 is outside the polygon - return wn === 0 ? PolygonWithPointIntersectionState.OUTSIDE : PolygonWithPointIntersectionState.INSIDE; -} - -// --------------------------------------------------- -/** - * Simple utility method for computing polygon bounds. - * Returns the sum of the squares of the dimensions. - * Requires a poly with at least one point. - * - * @param {Array|TypedArray} poly - * @param {vtkPoints} points - * @param {Bound} bounds - */ -function getBounds(poly, points, bounds) { - const n = poly.length; - const p = []; - points.getPoint(poly[0], p); - bounds[0] = p[0]; - bounds[1] = p[0]; - bounds[2] = p[1]; - bounds[3] = p[1]; - bounds[4] = p[2]; - bounds[5] = p[2]; - for (let j = 1; j < n; j++) { - points.getPoint(poly[j], p); - vtkBoundingBox.addPoint(bounds, ...p); - } - const length = vtkBoundingBox.getLengths(bounds); - return dot(length, length); -} - -// --------------------------------------------------- -/** - * Compute the normal of a polygon and return its norm. - * - * TBD: This does the same thing as vtkPolygon.computeNormal, - * but in a more generic way. Maybe we can keep the public - * static method somehow and have the private method use it instead. - * - * @param {Array|TypedArray} poly - * @param {vtkPoints} points - * @param {Vector3} normal - * @returns {Number} - */ -function getNormal(poly, points, normal) { - normal.length = 3; - normal[0] = 0.0; - normal[1] = 0.0; - normal[2] = 0.0; - const p0 = []; - let p1 = []; - let p2 = []; - const v1 = []; - const v2 = []; - points.getPoint(poly[0], p0); - points.getPoint(poly[1], p1); - for (let j = 2; j < poly.length; j++) { - points.getPoint(poly[j], p2); - subtract(p2, p1, v1); - subtract(p0, p1, v2); - const n = [0, 0, 0]; - cross(v1, v2, n); - add(normal, n, normal); - [p1, p2] = [p2, p1]; - } - return normalize(normal); -} - -/** - * Compute the centroid of a polygon. - * @param {Array} poly - Array of point indices for the polygon - * @param {vtkPoints} points - vtkPoints instance - * @param {Vector3} [centroid] - Optional output array (length 3) - * @returns {Vector3} The centroid as [x, y, z] - */ -function computeCentroid(poly, points) { - let centroid = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [0, 0, 0]; - centroid[0] = 0; - centroid[1] = 0; - centroid[2] = 0; - const n = poly.length; - const p = []; - for (let i = 0; i < n; i++) { - points.getPoint(poly[i], p); - centroid[0] += p[0]; - centroid[1] += p[1]; - centroid[2] += p[2]; - } - centroid[0] /= n; - centroid[1] /= n; - centroid[2] /= n; - return centroid; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = { - PolygonWithPointIntersectionState, - pointInPolygon, - getBounds, - getNormal, - computeCentroid -}; - -// ---------------------------------------------------------------------------- -// vtkPolygon methods -// ---------------------------------------------------------------------------- - -function vtkPolygon(publicAPI, model) { - // Set our classname - model.classHierarchy.push('vtkPolygon'); - function computeNormal() { - const v1 = [0, 0, 0]; - const v2 = [0, 0, 0]; - model.normal = [0, 0, 0]; - const anchor = [...model.firstPoint.point]; - let point = model.firstPoint; - for (let i = 0; i < model.pointCount; i++) { - subtract(point.point, anchor, v1); - subtract(point.next.point, anchor, v2); - const n = [0, 0, 0]; - cross(v1, v2, n); - add(model.normal, n, model.normal); - point = point.next; - } - return normalize(model.normal); - } - function computeMeasure(point) { - const v1 = [0, 0, 0]; - const v2 = [0, 0, 0]; - const v3 = [0, 0, 0]; - const v4 = [0, 0, 0]; - subtract(point.point, point.previous.point, v1); - subtract(point.next.point, point.point, v2); - subtract(point.previous.point, point.next.point, v3); - cross(v1, v2, v4); - const area = dot(v4, model.normal); - if (area <= 0) { - return -1; - } - const perimeter = norm(v1) + norm(v2) + norm(v3); - return perimeter * perimeter / area; - } - function canRemoveVertex(point) { - if (model.pointCount <= 3) { - return true; - } - const previous = point.previous; - const next = point.next; - const v = [0, 0, 0]; - subtract(next.point, previous.point, v); - const sN = [0, 0, 0]; - cross(v, model.normal, sN); - normalize(sN); - if (norm(sN) === 0) { - return false; - } - let val = vtkPlane.evaluate(sN, previous.point, next.next.point); - // eslint-disable-next-line no-nested-ternary - let currentSign = val > EPSILON ? 1 : val < -EPSILON ? -1 : 0; - let oneNegative = currentSign < 0 ? 1 : 0; - for (let vertex = next.next.next; vertex.id !== previous.id; vertex = vertex.next) { - const previousVertex = vertex.previous; - val = vtkPlane.evaluate(sN, previous.point, vertex.point); - // eslint-disable-next-line no-nested-ternary - const sign = val > EPSILON ? 1 : val < -EPSILON ? -1 : 0; - if (sign !== currentSign) { - if (!oneNegative) { - oneNegative = sign <= 0 ? 1 : 0; - } - if (vtkLine.intersection(previous.point, next.point, vertex.point, previousVertex.point, [0], [0]) === IntersectionState.YES_INTERSECTION) { - return false; - } - currentSign = sign; - } - } - return oneNegative === 1; - } - function removePoint(point, queue) { - model.pointCount -= 1; - const previous = point.previous; - const next = point.next; - model.tris = model.tris.concat(point.point); - model.tris = model.tris.concat(next.point); - model.tris = model.tris.concat(previous.point); - previous.next = next; - next.previous = previous; - queue.deleteById(previous.id); - queue.deleteById(next.id); - const previousMeasure = computeMeasure(previous); - if (previousMeasure > 0) { - queue.push(previousMeasure, previous); - } - const nextMeasure = computeMeasure(next); - if (nextMeasure > 0) { - queue.push(nextMeasure, next); - } - if (point.id === model.firstPoint.id) { - model.firstPoint = next; - } - } - function earCutTriangulation() { - computeNormal(); - const vertexQueue = vtkPriorityQueue.newInstance(); - let point = model.firstPoint; - for (let i = 0; i < model.pointCount; i++) { - const measure = computeMeasure(point); - if (measure > 0) { - vertexQueue.push(measure, point); - } - point = point.next; - } - while (model.pointCount > 2 && vertexQueue.length() > 0) { - if (model.pointCount === vertexQueue.length()) { - // convex - const pointToRemove = vertexQueue.pop(); - removePoint(pointToRemove, vertexQueue); - } else { - // concave - const pointToRemove = vertexQueue.pop(); - if (canRemoveVertex(pointToRemove)) { - removePoint(pointToRemove, vertexQueue); - } - } - } - return model.pointCount <= 2; - } - publicAPI.triangulate = () => { - if (!model.firstPoint) { - return null; - } - return earCutTriangulation(); - }; - publicAPI.setPoints = points => { - model.pointCount = points.length; - model.firstPoint = { - id: 0, - point: points[0], - next: null, - previous: null - }; - let currentPoint = model.firstPoint; - for (let i = 1; i < model.pointCount; i++) { - currentPoint.next = { - id: i, - point: points[i], - next: null, - previous: currentPoint - }; - currentPoint = currentPoint.next; - } - model.firstPoint.previous = currentPoint; - currentPoint.next = model.firstPoint; - }; - publicAPI.getPointArray = () => model.tris; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - firstPoint: null, - pointCount: 0, - tris: [] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - vtkPolygon(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPolygon'); - -// ---------------------------------------------------------------------------- - -var vtkPolygon$1 = { - newInstance, - extend, - ...STATIC -}; - -export { computeCentroid, vtkPolygon$1 as default, extend, getBounds, getNormal, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Polygon/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Polygon/Constants.js deleted file mode 100644 index 0a795eea..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Polygon/Constants.js +++ /dev/null @@ -1,12 +0,0 @@ -const EPSILON = 1e-6; -const FLOAT_EPSILON = 1.1920929e-7; -const TOLERANCE = 1e-8; -const PolygonWithPointIntersectionState = { - FAILURE: -1, - OUTSIDE: 0, - INSIDE: 1, - INTERSECTION: 2, - ON_LINE: 3 -}; - -export { EPSILON, FLOAT_EPSILON, PolygonWithPointIntersectionState, TOLERANCE }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Quad.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Quad.d.ts deleted file mode 100644 index 71eb7ebc..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Quad.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -import { Vector3, Vector4 } from './../../types'; -import vtkCell, { ICellInitialValues } from './Cell'; -import { IIntersectWithLine } from './Triangle'; - -export interface IQuadInitialValues extends ICellInitialValues {} - -export interface vtkQuad extends vtkCell { - getCellType(): number; - /** - * Get the topological dimensional of the cell (0, 1, 2 or 3). - */ - getCellDimension(): number; - getNumberOfEdges(): number; - getNumberOfFaces(): number; - - /** - * Compute the intersection point of the intersection between quad and - * line defined by p1 and p2. tol Tolerance use for the position evaluation - * x is the point which intersect triangle (computed in function) pcoords - * parametric coordinates (computed in function) A javascript object is - * returned : - * - * ```js - * { - * evaluation: define if the triangle has been intersected or not - * subId: always set to 0 - * t: parametric coordinate along the line. - * betweenPoints: Define if the intersection is between input points - * } - * ``` - * - * @param {Vector3} p1 The first point coordinate. - * @param {Vector3} p2 The second point coordinate. - * @param {Number} tol The tolerance to use. - * @param {Vector3} x The point which intersect triangle. - * @param {Vector3} pcoords The parametric coordinates. - */ - intersectWithLine( - p1: Vector3, - p2: Vector3, - tol: number, - x: Vector3, - pcoords: Vector3 - ): IIntersectWithLine; - - /** - * Determine global coordinate (x]) from subId and parametric coordinates. - * @param {Vector3} pcoords The parametric coordinates. - * @param {Vector3} x The x point coordinate. - * @param {Number[]} weights The number of weights. - */ - evaluateLocation(pcoords: Vector3, x: Vector3, weights: number[]): void; - - /* - * Compute iso-parametric interpolation functions - * @param {Vector3} pcoords The parametric coordinates. - * @param {Vector4} sf out weights. - */ - interpolationFunctions(pcoords: Vector3, sf: Vector4); -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkQuad characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IQuadInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IQuadInitialValues -): void; - -/** - * Method used to create a new instance of vtkQuad. - * @param {IQuadInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: IQuadInitialValues): vtkQuad; - -/** - * vtkQuad is a cell which represents a quadrilateral. It may contain static - * methods to make some computations directly link to quads. - * - * @see vtkCell - */ -export declare const vtkQuad: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkQuad; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Quad.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Quad.js deleted file mode 100644 index a53a3e19..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Quad.js +++ /dev/null @@ -1,196 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCell from './Cell.js'; -import { f as distance2BetweenPoints } from '../Core/Math/index.js'; -import { CellType } from './CellTypes/Constants.js'; -import vtkTriangle from './Triangle.js'; -import vtkPoints from '../Core/Points.js'; - -function intersectionStruct() { - return { - intersected: false, - subId: -1, - x: [0.0, 0.0, 0.0], - pCoords: [0.0, 0.0, 0.0], - t: -1 - }; -} -function vtkQuad(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkQuad'); - publicAPI.getCellDimension = () => 2; - publicAPI.getCellType = () => CellType.VTK_QUAD; - publicAPI.getNumberOfEdges = () => 4; - publicAPI.getNumberOfFaces = () => 0; - publicAPI.intersectWithLine = (p1, p2, tol, x, pcoords) => { - let outObj = { - subId: 0, - t: Number.MAX_VALUE, - intersect: 0, - betweenPoints: false - }; - let diagonalCase; - const point0 = model.points.getPoint(0, []); - const point1 = model.points.getPoint(1, []); - const point2 = model.points.getPoint(2, []); - const point3 = model.points.getPoint(3, []); - const d1 = distance2BetweenPoints(point0, point2); - const d2 = distance2BetweenPoints(point1, point3); - - /* Figure out how to uniquely tessellate the quad. Watch out for - * equivalent triangulations (i.e., the triangulation is equivalent - * no matter where the diagonal). In this case use the point ids as - * a tie breaker to ensure unique triangulation across the quad. - */ - - // rare case; discriminate based on point id - if (d1 === d2) { - // find the maximum id - let id; - let maxId = 0; - let maxIdx = 0; - for (let i = 0; i < 4; i++) { - id = model.pointsIds[i]; - if (id > maxId) { - maxId = id; - maxIdx = i; - } - } - if (maxIdx === 0 || maxIdx === 2) { - diagonalCase = 0; - } else { - diagonalCase = 1; - } - } else if (d1 < d2) { - diagonalCase = 0; - } else { - diagonalCase = 1; - } - let points = null; - if (!model.triangle) { - model.triangle = vtkTriangle.newInstance(); - points = vtkPoints.newInstance(); - points.setNumberOfPoints(3); - model.triangle.initialize(points); - } else { - points = model.triangle.getPoints(); - } - let firstIntersect; - const firstIntersectTmpObj = intersectionStruct(); - let secondIntersect; - const secondIntersectTmpObj = intersectionStruct(); - let useFirstIntersection; - let useSecondIntersection; - switch (diagonalCase) { - case 0: - points.setPoint(0, ...point0); - points.setPoint(1, ...point1); - points.setPoint(2, ...point2); - firstIntersect = model.triangle.intersectWithLine(p1, p2, tol, firstIntersectTmpObj.x, firstIntersectTmpObj.pCoords); - points.setPoint(0, ...point2); - points.setPoint(1, ...point3); - points.setPoint(2, ...point0); - secondIntersect = model.triangle.intersectWithLine(p1, p2, tol, secondIntersectTmpObj.x, secondIntersectTmpObj.pCoords); - useFirstIntersection = firstIntersect.intersect && secondIntersect.intersect ? firstIntersect.t <= secondIntersect.t : firstIntersect.intersect; - useSecondIntersection = firstIntersect.intersect && secondIntersect.intersect ? secondIntersect.t < firstIntersect.t : secondIntersect.intersect; - if (useFirstIntersection) { - outObj = firstIntersect; - x[0] = firstIntersectTmpObj.x[0]; - x[1] = firstIntersectTmpObj.x[1]; - x[2] = firstIntersectTmpObj.x[2]; - pcoords[0] = firstIntersectTmpObj.pCoords[0] + firstIntersectTmpObj.pCoords[1]; - pcoords[1] = firstIntersectTmpObj.pCoords[1]; - pcoords[2] = firstIntersectTmpObj.pCoords[2]; - } else if (useSecondIntersection) { - outObj = secondIntersect; - x[0] = secondIntersectTmpObj.x[0]; - x[1] = secondIntersectTmpObj.x[1]; - x[2] = secondIntersectTmpObj.x[2]; - pcoords[0] = 1.0 - (secondIntersectTmpObj.pCoords[0] + secondIntersectTmpObj.pCoords[1]); - pcoords[1] = 1 - secondIntersectTmpObj.pCoords[1]; - pcoords[2] = secondIntersectTmpObj.pCoords[2]; - } - break; - case 1: - points.setPoint(0, ...point0); - points.setPoint(1, ...point1); - points.setPoint(2, ...point3); - firstIntersect = model.triangle.intersectWithLine(p1, p2, tol, firstIntersectTmpObj.x, firstIntersectTmpObj.pCoords); - points.setPoint(0, ...point2); - points.setPoint(1, ...point3); - points.setPoint(2, ...point1); - secondIntersect = model.triangle.intersectWithLine(p1, p2, tol, secondIntersectTmpObj.x, secondIntersectTmpObj.pCoords); - useFirstIntersection = firstIntersect.intersect && secondIntersect.intersect ? firstIntersect.t <= secondIntersect.t : firstIntersect.intersect; - useSecondIntersection = firstIntersect.intersect && secondIntersect.intersect ? secondIntersect.t < firstIntersect.t : secondIntersect.intersect; - if (useFirstIntersection) { - outObj = firstIntersect; - x[0] = firstIntersectTmpObj.x[0]; - x[1] = firstIntersectTmpObj.x[1]; - x[2] = firstIntersectTmpObj.x[2]; - pcoords[0] = firstIntersectTmpObj.pCoords[0]; - pcoords[1] = firstIntersectTmpObj.pCoords[1]; - pcoords[2] = firstIntersectTmpObj.pCoords[2]; - } else if (useSecondIntersection) { - outObj = secondIntersect; - x[0] = secondIntersectTmpObj.x[0]; - x[1] = secondIntersectTmpObj.x[1]; - x[2] = secondIntersectTmpObj.x[2]; - pcoords[0] = 1 - secondIntersectTmpObj.pCoords[0]; - pcoords[1] = 1 - secondIntersectTmpObj.pCoords[1]; - pcoords[2] = secondIntersectTmpObj.pCoords[2]; - } - break; - } - return outObj; - }; - publicAPI.interpolationFunctions = (pcoords, weights) => { - const rm = 1 - pcoords[0]; - const sm = 1 - pcoords[1]; - weights[0] = rm * sm; - weights[1] = pcoords[0] * sm; - weights[2] = pcoords[0] * pcoords[1]; - weights[3] = rm * pcoords[1]; - }; - publicAPI.evaluateLocation = (pcoords, x, weights) => { - const point = []; - - // Calculate the weights - publicAPI.interpolationFunctions(pcoords, weights); - x[0] = 0.0; - x[1] = 0.0; - x[2] = 0.0; - for (let i = 0; i < 4; i++) { - model.points.getPoint(i, point); - for (let j = 0; j < 3; j++) { - x[j] += point[j] * weights[i]; - } - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkCell.extend(publicAPI, model, initialValues); - vtkQuad(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkQuad'); - -// ---------------------------------------------------------------------------- - -var vtkQuad$1 = { - newInstance, - extend -}; - -export { vtkQuad$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Quad/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Quad/Constants.js deleted file mode 100644 index fcf3a214..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Quad/Constants.js +++ /dev/null @@ -1,9 +0,0 @@ -const QuadWithLineIntersectionState = { - NO_INTERSECTION: 0, - YES_INTERSECTION: 1 -}; -var Constants = { - QuadWithLineIntersectionState -}; - -export { QuadWithLineIntersectionState, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/SelectionNode.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/SelectionNode.d.ts deleted file mode 100644 index 7a836e3f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/SelectionNode.d.ts +++ /dev/null @@ -1,104 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { Bounds } from './../../types'; -import { SelectionContent, SelectionField } from './SelectionNode/Constants'; -import vtkProp from './../../Rendering/Core/Prop'; - -export interface ISelectionNodeInitialValues { - contentType?: SelectionContent; - fieldType?: SelectionField; - properties?: ISelectionNodeProperties; - selectionList?: number[]; -} - -export interface ISelectionNodeProperties { - propID?: number; - prop?: vtkProp; - compositeID?: number; - attributeID?: number; - pixelCount?: number; - displayPosition?: [number, number, number]; - worldPosition?: [number, number, number]; -} - -export interface vtkSelectionNode extends vtkObject { - /** - * Get the bounds of the selection points. - */ - getBounds(): Bounds; - - /** - * Returns -1 if not initialized. - */ - getContentType(): SelectionContent | -1; - - /** - * This functions is called internally by VTK.js and is not intended for public use. - */ - setContentType(contentType: SelectionContent): void; - - /** - * Returns -1 if not initialized. - */ - getFieldType(): SelectionField | -1; - - /** - * This functions is called internally by VTK.js and is not intended for public use. - */ - setFieldType(fieldType: SelectionField): void; - - /** - * Get the selection properties. - */ - getProperties(): ISelectionNodeProperties; - - /** - * This functions is called internally by VTK.js and is not intended for public use. - */ - setProperties(properties: ISelectionNodeProperties): boolean; - - /** - * Get the list of the underlying selected attribute IDs. - */ - getSelectionList(): number[]; - - /** - * This functions is called internally by VTK.js and is not intended for public use. - */ - setSelectionList(selectionAttributeIDs: ISelectionNodeProperties): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkSelectionNode characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ISelectionNodeInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ISelectionNodeInitialValues -): void; - -/** - * Method used to create a new instance of vtkSelectionNode. - * @param {ISelectionNodeInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ISelectionNodeInitialValues -): vtkSelectionNode; - -/** - * vtkSelectionNode represents a 2D n-sided polygon. - * - * The polygons cannot have any internal holes, and cannot self-intersect. - * Define the polygon with n-points ordered in the counter-clockwise direction. - * Do not repeat the last point. - */ -export declare const vtkSelectionNode: { - newInstance: typeof newInstance; - extend: typeof extend; - SelectionContent: typeof SelectionContent; - SelectionField: typeof SelectionField; -}; -export default vtkSelectionNode; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/SelectionNode.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/SelectionNode.js deleted file mode 100644 index 1c15fb5b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/SelectionNode.js +++ /dev/null @@ -1,52 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import Constants from './SelectionNode/Constants.js'; - -// ---------------------------------------------------------------------------- -// vtkSelectionNode methods -// ---------------------------------------------------------------------------- - -function vtkSelectionNode(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkSelectionNode'); - publicAPI.getBounds = () => model.points.getBounds(); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - contentType: -1, - fieldType: -1, - properties: null, - selectionList: [] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - macro.obj(publicAPI, model); - model.properties = {}; - macro.setGet(publicAPI, model, ['contentType', 'fieldType', 'properties', 'selectionList']); - - // Object specific methods - vtkSelectionNode(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSelectionNode'); - -// ---------------------------------------------------------------------------- - -var vtkSelectionNode$1 = { - newInstance, - extend, - ...Constants -}; - -export { vtkSelectionNode$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/SelectionNode/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/SelectionNode/Constants.d.ts deleted file mode 100644 index e00a8db2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/SelectionNode/Constants.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -export declare enum SelectionContent { - GLOBALIDS = 0, - PEDIGREEIDS = 1, - VALUES = 2, - INDICES = 3, - FRUSTUM = 4, - LOCATIONS = 5, - THRESHOLDS = 6, - BLOCKS = 7, - QUERY = 8, -} - -export declare enum SelectionField { - CELL = 0, - POINT = 1, - FIELD = 2, - VERTEX = 3, - EDGE = 4, - ROW = 5, -} - -declare const _default: { - SelectionContent: typeof SelectionContent; - SelectionField: typeof SelectionField; -}; - -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/SelectionNode/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/SelectionNode/Constants.js deleted file mode 100644 index 90bc03ef..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/SelectionNode/Constants.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * The (primary) property that describes the content of a selection - * node's data. Other auxiliary description properties follow. - * GLOBALIDS means that the selection list contains values from the - * vtkDataSetAttribute array of the same name. - * PEDIGREEIDS means that the selection list contains values from the - * vtkDataSetAttribute array of the same name. - * VALUES means the the selection list contains values from an - * arbitrary attribute array (ignores any globalids attribute) - * INDICES means that the selection list contains indexes into the - * cell or point arrays. - * FRUSTUM means the set of points and cells inside a frustum - * LOCATIONS means the set of points and cells near a set of positions - * THRESHOLDS means the points and cells with values within a set of ranges - * getContentType() returns -1 if the content type is not set. - */ - -// Specify how data arrays can be used by data objects -const SelectionContent = { - GLOBALIDS: 0, - PEDIGREEIDS: 1, - VALUES: 2, - INDICES: 3, - FRUSTUM: 4, - LOCATIONS: 5, - THRESHOLDS: 6, - BLOCKS: 7, - QUERY: 8 -}; -const SelectionField = { - CELL: 0, - POINT: 1, - FIELD: 2, - VERTEX: 3, - EDGE: 4, - ROW: 5 -}; -var Constants = { - SelectionContent, - SelectionField -}; - -export { SelectionContent, SelectionField, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Sphere.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Sphere.d.ts deleted file mode 100644 index 327cc84a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Sphere.d.ts +++ /dev/null @@ -1,103 +0,0 @@ -import { Vector3 } from './../../types'; -import vtkImplicitFunction from './ImplicitFunction'; - -export interface ISphereInitialValues { - radius?: number | Vector3; - center?: Vector3; -} - -export interface vtkSphere extends vtkImplicitFunction { - /** - * Given the point xyz (three floating value) evaluate the sphere - * equation. - * @param {Vector3} xyz The point coordinate. - */ - evaluateFunction(xyz: Vector3): number; - - /** - * Given the point xyz (three floating values) evaluate the equation for the - * sphere gradient. - * @param {Vector3} xyz The point coordinate. - */ - evaluateGradient(xyz: Vector3): number[]; - - /** - * Get the center of the sphere. - */ - getCenter(): Vector3; - - /** - * Get the center of the sphere. - */ - getCenterByReference(): Vector3; - - /** - * Get the radius of the sphere. - */ - getRadius(): number | Vector3; - - /** - * Set the center of the sphere. - * @param {Vector3} center The center coordinate. - */ - setCenter(center: Vector3): boolean; - - /** - * Set the center of the sphere. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setCenter(x: number, y: number, z: number): boolean; - - /** - * Set the center of the sphere. - * @param {Vector3} center The center coordinate. - */ - setCenterFrom(center: Vector3): boolean; - - /** - * Set the radius of the sphere. Radius must be > 0. - * It can also be an array of 3 positive values for ellipsoids - * @param {Number|Vector3} radius The radius of the sphere. - */ - setRadius(radius: number | Vector3): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkSphere characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ISphereInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ISphereInitialValues -): void; - -/** - * Method used to create a new instance of vtkSphere. - * @param {ISphereInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: ISphereInitialValues): vtkSphere; - -/** - * @param {Number} radius - * @param {Vector3} center - * @param {Vector3} x - */ -declare function evaluate(radius: number, center: Vector3, x: Vector3): number; - -/** - * vtkSphere provides methods for creating a 1D cubic spline object from given - * parameters, and allows for the calculation of the spline value and derivative - * at any given point inside the spline intervals. - */ -export declare const vtkSphere: { - newInstance: typeof newInstance; - extend: typeof extend; - evaluate: typeof evaluate; -}; -export default vtkSphere; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Sphere.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Sphere.js deleted file mode 100644 index 71fa9589..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Sphere.js +++ /dev/null @@ -1,73 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkImplicitFunction from './ImplicitFunction.js'; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -function evaluate(radius, center, xyz) { - if (!Array.isArray(radius)) { - const retVal = (xyz[0] - center[0]) * (xyz[0] - center[0]) + (xyz[1] - center[1]) * (xyz[1] - center[1]) + (xyz[2] - center[2]) * (xyz[2] - center[2]) - radius * radius; - return retVal; - } - const r = [(xyz[0] - center[0]) / radius[0], (xyz[1] - center[1]) / radius[1], (xyz[2] - center[2]) / radius[2]]; - return r[0] * r[0] + r[1] * r[1] + r[2] * r[2] - 1; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = { - evaluate -}; - -// ---------------------------------------------------------------------------- -// vtkSphere methods -// ---------------------------------------------------------------------------- - -function vtkSphere(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkSphere'); - publicAPI.evaluateFunction = xyz => evaluate(model.radius, model.center, xyz); - publicAPI.evaluateGradient = xyz => { - const retVal = [2.0 - (xyz[0] - model.center[0]), 2.0 - (xyz[1] - model.center[1]), 2.0 - (xyz[2] - model.center[2])]; - return retVal; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - radius: 0.5, - center: [0.0, 0.0, 0.0] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - vtkImplicitFunction.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['radius']); - macro.setGetArray(publicAPI, model, ['center'], 3); - vtkSphere(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSphere'); - -// ---------------------------------------------------------------------------- - -var vtkSphere$1 = { - newInstance, - extend, - ...STATIC -}; - -export { STATIC, vtkSphere$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline1D.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline1D.d.ts deleted file mode 100644 index 58fe7631..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline1D.d.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { vtkObject } from './../../interfaces'; - -export interface ISpline1DInitialValues {} - -// Boundary conditions available to compute open splines -// DEFAULT : desired slope at boundary point is derivative from two points (boundary and second interior) -// DERIVATIVE : desired slope at boundary point is the boundary value given. -// SECOND_DERIVATIVE : second derivative at boundary point is the boundary value given. -// SECOND_DERIVATIVE_INTERIOR_POINT : desired second derivative at boundary point is the boundary value given times second derivative -// at first interior point. -export enum BoundaryCondition { - DEFAULT, - DERIVATIVE, - SECOND_DERIVATIVE, - SECOND_DERIVATIVE_INTERIOR_POINT, -} - -export interface vtkSpline1D extends vtkObject { - /** - * - * @param {Number} size - * @param {Float32Array} work - * @param {Number[]} x - * @param {Number[]} y - */ - computeCloseCoefficients( - size: number, - work: Float32Array, - x: number[], - y: number[] - ): void; - - /** - * - * @param {Number} size - * @param {Float32Array} work - * @param {Number[]} x - * @param {Number[]} y - * @param {Object} options - * @param {BoundaryCondition} options.leftConstraint - * @param {Number} options.leftValue - * @param {BoundaryCondition} options.rightConstraint - * @param {Number} options.rightValue - */ - computeOpenCoefficients( - size: number, - work: Float32Array, - x: number[], - y: number[], - options: { - leftConstraint: BoundaryCondition; - leftValue: number; - rightConstraint: BoundaryCondition; - rightValue: Number; - } - ): void; - - /** - * - * @param {Number} intervalIndex - * @param {Number} t - */ - getValue(intervalIndex: number, t: number): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkSpline1D characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ISpline1DInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ISpline1DInitialValues -): void; - -/** - * Method used to create a new instance of vtkSpline1D. - * @param {ISpline1DInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ISpline1DInitialValues -): vtkSpline1D; - -/** - * vtkSpline1D provides methods for creating a 1D cubic spline object from given - * parameters, and allows for the calculation of the spline value and derivative - * at any given point inside the spline intervals. - */ -export declare const vtkSpline1D: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkSpline1D; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline1D.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline1D.js deleted file mode 100644 index 53cc96da..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline1D.js +++ /dev/null @@ -1,62 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkSpline1D methods -// ---------------------------------------------------------------------------- - -function vtkSpline1D(publicAPI, model) { - // Set our classname - model.classHierarchy.push('vtkSpline1D'); - - // -------------------------------------------------------------------------- - - publicAPI.computeCloseCoefficients = (size, work, x, y) => { - vtkErrorMacro(`${model.classHierarchy.slice(-1)[0]} should implement computeCloseCoefficients`); - }; - - // -------------------------------------------------------------------------- - - publicAPI.computeOpenCoefficients = function (size, work, x, y) { - vtkErrorMacro(`${model.classHierarchy.slice(-1)[0]} should implement computeOpenCoefficients`); - }; - - // -------------------------------------------------------------------------- - - publicAPI.getValue = (intervalIndex, t) => { - vtkErrorMacro(`${model.classHierarchy.slice(-1)[0]} should implement getValue`); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - vtkSpline1D(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSpline1D'); - -// ---------------------------------------------------------------------------- - -var vtkSpline1D$1 = { - newInstance, - extend -}; - -export { vtkSpline1D$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline1D/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline1D/Constants.js deleted file mode 100644 index 0835e2a0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline1D/Constants.js +++ /dev/null @@ -1,18 +0,0 @@ -// Boundary conditions available to compute open splines -// DEFAULT : desired slope at boundary point is derivative from two points (boundary and second interior) -// DERIVATIVE : desired slope at boundary point is the boundary value given. -// SECOND_DERIVATIVE : second derivative at boundary point is the boundary value given. -// SECOND_DERIVATIVE_INTERIOR_POINT : desired second derivative at boundary point is the boundary value given times second derivative -// at first interior point. - -const BoundaryCondition = { - DEFAULT: 0, - DERIVATIVE: 1, - SECOND_DERIVATIVE: 2, - SECOND_DERIVATIVE_INTERIOR_POINT: 3 -}; -var Constants = { - BoundaryCondition -}; - -export { BoundaryCondition, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline3D.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline3D.d.ts deleted file mode 100644 index 797d270c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline3D.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { splineKind } from './Spline3D/Constants'; - -export interface ISpline3DInitialValues { - close?: boolean; - intervals?: any; - kind?: splineKind; - tension?: number; - continuity?: number; - bias?: number; -} - -export interface vtkSpline3D extends vtkObject { - /** - * - * @param points - */ - computeCoefficients(points: number[]): void; - - /** - * - * @param {Number} intervalIndex - * @param {Number} t - */ - getPoint(intervalIndex: number, t: number): number[]; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkSpline3D characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ISpline3DInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ISpline3DInitialValues -): void; - -/** - * Method used to create a new instance of vtkSpline3D. - * @param {ISpline3DInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ISpline3DInitialValues -): vtkSpline3D; - -/** - * vtkSpline3D provides methods for creating a 1D cubic spline object from given - * parameters, and allows for the calculation of the spline value and derivative - * at any given point inside the spline intervals. - */ -export declare const vtkSpline3D: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkSpline3D; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline3D.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline3D.js deleted file mode 100644 index 0168cb6a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline3D.js +++ /dev/null @@ -1,136 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCardinalSpline1D from './CardinalSpline1D.js'; -import vtkKochanekSpline1D from './KochanekSpline1D.js'; -import { splineKind } from './Spline3D/Constants.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkSpline3D methods -// ---------------------------------------------------------------------------- - -function vtkSpline3D(publicAPI, model) { - // Set our classname - model.classHierarchy.push('vtkSpline3D'); - - // -------------------------------------------------------------------------- - - function computeCoefficients1D(spline, points, boundaryConditionValue) { - if (points.length === 0) { - vtkErrorMacro('Splines require at least one points'); - } - - // If we have only one point we create a spline - // which two extremities are the same point - if (points.length === 1) { - points.push(points[0]); - } - const size = points.length; - let work = null; - let intervals = null; - work = new Float32Array(size); - if (model.intervals.length === 0) { - intervals = new Float32Array(size); - for (let i = 0; i < intervals.length; i++) { - intervals[i] = i; - } - } else { - intervals = model.intervals; - } - if (model.close) { - spline.computeCloseCoefficients(size, work, intervals, points); - } else { - spline.computeOpenCoefficients(size, work, intervals, points, { - leftConstraint: model.boundaryCondition, - leftValue: boundaryConditionValue, - rightConstraint: model.boundaryCondition, - rightValue: boundaryConditionValue - }); - } - } - - // -------------------------------------------------------------------------- - - publicAPI.computeCoefficients = points => { - const x = points.map(pt => pt[0]); - const y = points.map(pt => pt[1]); - const z = points.map(pt => pt[2]); - computeCoefficients1D(model.splineX, x, model.boundaryConditionValues[0]); - computeCoefficients1D(model.splineY, y, model.boundaryConditionValues[1]); - computeCoefficients1D(model.splineZ, z, model.boundaryConditionValues[2]); - }; - - // -------------------------------------------------------------------------- - - publicAPI.getPoint = (intervalIndex, t) => [model.splineX.getValue(intervalIndex, t), model.splineY.getValue(intervalIndex, t), model.splineZ.getValue(intervalIndex, t)]; - - // -------------------------------------------------------------------------- - // initialization - // -------------------------------------------------------------------------- - - if (model.kind === splineKind.KOCHANEK_SPLINE) { - model.splineX = vtkKochanekSpline1D.newInstance({ - tension: model.tension, - continuity: model.continuity, - bias: model.bias - }); - model.splineY = vtkKochanekSpline1D.newInstance({ - tension: model.tension, - continuity: model.continuity, - bias: model.bias - }); - model.splineZ = vtkKochanekSpline1D.newInstance({ - tension: model.tension, - continuity: model.continuity, - bias: model.bias - }); - } else if (model.kind === splineKind.CARDINAL_SPLINE) { - model.splineX = vtkCardinalSpline1D.newInstance(); - model.splineY = vtkCardinalSpline1D.newInstance(); - model.splineZ = vtkCardinalSpline1D.newInstance(); - } else { - vtkErrorMacro(`Unknown spline type ${model.kind}`); - } -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - close: false, - intervals: [], - kind: splineKind.KOCHANEK_SPLINE, - boundaryConditionValues: [0, 0, 0], - // Passed to the vtkKochanekSpline1D - tension: 0, - continuity: 0, - bias: 0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['close', 'intervals']); - vtkSpline3D(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSpline3D'); - -// ---------------------------------------------------------------------------- - -var vtkSpline3D$1 = { - newInstance, - extend -}; - -export { vtkSpline3D$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline3D/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline3D/Constants.d.ts deleted file mode 100644 index d4f23cd3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline3D/Constants.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export declare enum splineKind { - CARDINAL_SPLINE = 'CARDINAL_SPLINE', - KOCHANEK_SPLINE = 'KOCHANEK_SPLINE', -} - -declare const _default: { - splineKind: typeof splineKind; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline3D/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline3D/Constants.js deleted file mode 100644 index 7fac40b0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Spline3D/Constants.js +++ /dev/null @@ -1,9 +0,0 @@ -const splineKind = { - CARDINAL_SPLINE: 'CARDINAL_SPLINE', - KOCHANEK_SPLINE: 'KOCHANEK_SPLINE' -}; -var Constants = { - splineKind -}; - -export { Constants as default, splineKind }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/StructuredData.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/StructuredData.js deleted file mode 100644 index 00a839f3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/StructuredData.js +++ /dev/null @@ -1,44 +0,0 @@ -import Constants from './StructuredData/Constants.js'; - -const { - StructuredType -} = Constants; -function getDataDescriptionFromExtent(inExt) { - let dataDim = 0; - for (let i = 0; i < 3; ++i) { - if (inExt[i * 2] < inExt[i * 2 + 1]) { - dataDim++; - } - } - if (inExt[0] > inExt[1] || inExt[2] > inExt[3] || inExt[4] > inExt[5]) { - return StructuredType.EMPTY; - } - if (dataDim === 3) { - return StructuredType.XYZ_GRID; - } - if (dataDim === 2) { - if (inExt[0] === inExt[1]) { - return StructuredType.YZ_PLANE; - } - if (inExt[2] === inExt[3]) { - return StructuredType.XZ_PLANE; - } - return StructuredType.XY_PLANE; - } - if (dataDim === 1) { - if (inExt[0] < inExt[1]) { - return StructuredType.X_LINE; - } - if (inExt[2] < inExt[3]) { - return StructuredType.Y_LINE; - } - return StructuredType.Z_LINE; - } - return StructuredType.SINGLE_POINT; -} -var vtkStructuredData = { - getDataDescriptionFromExtent, - ...Constants -}; - -export { vtkStructuredData as default, getDataDescriptionFromExtent }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/StructuredData/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/StructuredData/Constants.js deleted file mode 100644 index a37d86c3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/StructuredData/Constants.js +++ /dev/null @@ -1,17 +0,0 @@ -const StructuredType = { - UNCHANGED: 0, - SINGLE_POINT: 1, - X_LINE: 2, - Y_LINE: 3, - Z_LINE: 4, - XY_PLANE: 5, - YZ_PLANE: 6, - XZ_PLANE: 7, - XYZ_GRID: 8, - EMPTY: 9 -}; -var Constants = { - StructuredType -}; - -export { StructuredType, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Triangle.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Triangle.d.ts deleted file mode 100644 index f43f0f8e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Triangle.d.ts +++ /dev/null @@ -1,208 +0,0 @@ -import { Vector2, Vector3 } from './../../types'; -import vtkCell, { ICellInitialValues } from './Cell'; - -export interface ITriangleInitialValues extends ICellInitialValues {} - -export interface IIntersectWithLine { - intersect: number; - t: number; - subId: number; - evaluation?: number; - betweenPoints?: boolean; -} - -export interface IIntersectWithTriangle { - intersect: boolean; - coplanar: boolean; - pt1: Vector3; - pt2: Vector3; - surfaceId: number; -} - -export interface vtkTriangle extends vtkCell { - /** - * Get the topological dimensional of the cell (0, 1, 2 or 3). - */ - getCellDimension(): number; - - /** - * Compute the intersection point of the intersection between triangle and - * line defined by p1 and p2. tol Tolerance use for the position evaluation - * x is the point which intersect triangle (computed in function) pcoords - * parametric coordinates (computed in function) A javascript object is - * returned : - * - * ```js - * { - * evaluation: define if the triangle has been intersected or not - * subId: always set to 0 - * t: parametric coordinate along the line. - * betweenPoints: Define if the intersection is between input points - * } - * ``` - * - * @param {Vector3} p1 The first point coordinate. - * @param {Vector3} p2 The second point coordinate. - * @param {Number} tol The tolerance to use. - * @param {Vector3} x The point which intersect triangle. - * @param {Vector3} pcoords The parametric coordinates. - */ - intersectWithLine( - p1: Vector3, - p2: Vector3, - tol: number, - x: Vector3, - pcoords: Vector3 - ): IIntersectWithLine; - - /** - * Get the nearest cell boundary to the specified parametric - * coordinates and whether the point is inside or outside the cell. - * @param {Number} subId The sub-id of the cell. - * @param {Vector3} pcoords The parametric coordinates. - * @param {Vector2} pts The points of the cell. - */ - cellBoundary(subId: number, pcoords: Vector3, pts: Vector2): boolean; - - /** - * Get the derivatives of the triangle at the specified parametric - * coordinates. - * @param {Number} subId - The sub-id of the triangle. - * @param {Vector3} pcoords - The parametric coordinates. - * @param {Number[]} values - The values at the points. - * @param {Number} dim - The dimension. - * @param {Number[]} derivs - The derivatives. - */ - derivatives( - subId: number, - pcoords: Vector3, - values: any, - dim: number, - derivs: number[] - ): void; - - /** - * Evaluates whether the specified point is inside (1), outside (0), or - * indeterminate (-1) for the cell; computes parametric coordinates, sub-cell - * ID (if applicable), squared distance to the cell (and closest point if - * requested), and interpolation weights for the cell. - * - * @param {Vector3} x The x point coordinate. - * @param {Vector3} closestPoint The closest point coordinate. - * @param {Vector3} pcoords The parametric coordinates. - * @param {Number[]} weights The number of weights. - */ - evaluatePosition( - x: Vector3, - closestPoint: Vector3, - pcoords: Vector3, - weights: number[] - ): IIntersectWithLine; - - /** - * Determine global coordinates (x) from the given subId and parametric - * coordinates. - * @param {Vector3} pcoords The parametric coordinates. - * @param {Vector3} x The x point coordinate. - * @param {Number[]} weights The number of weights. - */ - evaluateLocation(pcoords: Vector3, x: Vector3, weights: number[]): void; - - /** - * Get the distance of the parametric coordinate provided to the cell. - * @param {Vector3} pcoords The parametric coordinates. - */ - getParametricDistance(pcoords: Vector3): number; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkTriangle characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ITriangleInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ITriangleInitialValues -): void; - -/** - * Method used to create a new instance of vtkTriangle. - * @param {ITriangleInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ITriangleInitialValues -): vtkTriangle; - -/** - * Compute the normal direction according to the three vertex which composed a - * triangle. The normal is not normalized. The normal is returned in normal. - * @param {Vector3} v1 The first point coordinate. - * @param {Vector3} v2 The second point coordinate. - * @param {Vector3} v3 The third point coordinate. - * @param {Vector3} n The normal coordinate. - */ -export function computeNormalDirection( - v1: Vector3, - v2: Vector3, - v3: Vector3, - n: Vector3 -): void; - -/** - * Compute the normalized normal of a triangle composed of three points. The - * normal is returned in normal. - * @param {Vector3} v1 The first point coordinate. - * @param {Vector3} v2 The second point coordinate. - * @param {Vector3} v3 The third point coordinate. - * @param {Vector3} n The normal coordinate. - */ -export function computeNormal( - v1: Vector3, - v2: Vector3, - v3: Vector3, - n: Vector3 -): void; - -/** - * Compute the interpolation functions/derivatives - * @param {Number[]} derivs - The derivatives. - */ -export function interpolationDerivs(derivs: number[]): void; - -/** - * Compute the intersection between two triangles. - * @param {Vector3} p1 The first point coordinate of the first triangle. - * @param {Vector3} q1 The second point coordinate of the first triangle. - * @param {Vector3} r1 The third point coordinate of the first triangle. - * @param {Vector3} p2 The first point coordinate of the second triangle. - * @param {Vector3} q2 The second point coordinate of the second triangle. - * @param {Vector3} r2 The third point coordinate of the second triangle. - */ -export function intersectWithTriangle( - p1: Vector3, - q1: Vector3, - r1: Vector3, - p2: Vector3, - q2: Vector3, - r2: Vector3, - tolerance?: number -): IIntersectWithTriangle; - -/** - * vtkTriangle is a cell which representant a triangle. It contains static - * method to make some computations directly link to triangle. - * - * @see vtkCell - */ -export declare const vtkTriangle: { - newInstance: typeof newInstance; - extend: typeof extend; - computeNormalDirection: typeof computeNormalDirection; - computeNormal: typeof computeNormal; - interpolationDerivs: typeof interpolationDerivs; - intersectWithTriangle: typeof intersectWithTriangle; -}; -export default vtkTriangle; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Triangle.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Triangle.js deleted file mode 100644 index 45c6e2be..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/Triangle.js +++ /dev/null @@ -1,708 +0,0 @@ -import { m as macro, T as TYPED_ARRAYS } from '../../macros2.js'; -import vtkCell from './Cell.js'; -import { d as dot, j as cross, l as normalize, m as multiplyAccumulate, f as distance2BetweenPoints, o as determinant2x2, s as subtract, p as invertMatrix } from '../Core/Math/index.js'; -import vtkLine from './Line.js'; -import vtkPlane from './Plane.js'; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -function computeNormalDirection(v1, v2, v3, n) { - // order is important!!! maintain consistency with triangle vertex order - const ax = v3[0] - v2[0]; - const ay = v3[1] - v2[1]; - const az = v3[2] - v2[2]; - const bx = v1[0] - v2[0]; - const by = v1[1] - v2[1]; - const bz = v1[2] - v2[2]; - n[0] = ay * bz - az * by; - n[1] = az * bx - ax * bz; - n[2] = ax * by - ay * bx; -} -function computeNormal(v1, v2, v3, n) { - computeNormalDirection(v1, v2, v3, n); - const length = Math.sqrt(n[0] * n[0] + n[1] * n[1] + n[2] * n[2]); - if (length !== 0.0) { - n[0] /= length; - n[1] /= length; - n[2] /= length; - } -} -function interpolationDerivs(derivs) { - // Order: [dN1/dr, dN2/dr, dN3/dr, dN1/ds, dN2/ds, dN3/ds] - // r-derivatives - derivs[0] = -1.0; - derivs[1] = 1.0; - derivs[2] = 0.0; - - // s-derivatives - derivs[3] = -1.0; - derivs[4] = 0.0; - derivs[5] = 1.0; -} -function intersectWithTriangle(p1, q1, r1, p2, q2, r2) { - let tolerance = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : 1e-6; - let coplanar = false; - const pt1 = []; - const pt2 = []; - const surfaceId = []; - const n1 = []; - const n2 = []; - - // Compute supporting plane normals. - computeNormal(p1, q1, r1, n1); - computeNormal(p2, q2, r2, n2); - const s1 = -dot(n1, p1); - const s2 = -dot(n2, p2); - - // Compute signed distances of points p1, q1, r1 from supporting - // plane of second triangle. - const dist1 = [dot(n2, p1) + s2, dot(n2, q1) + s2, dot(n2, r1) + s2]; - - // If signs of all points are the same, all the points lie on the - // same side of the supporting plane, and we can exit early. - if (dist1[0] * dist1[1] > tolerance && dist1[0] * dist1[2] > tolerance) { - // vtkDebugMacro(<<"Same side supporting plane 1!"); - return { - intersect: false, - coplanar, - pt1, - pt2, - surfaceId - }; - } - // Do the same for p2, q2, r2 and supporting plane of first - // triangle. - const dist2 = [dot(n1, p2) + s1, dot(n1, q2) + s1, dot(n1, r2) + s1]; - - // If signs of all points are the same, all the points lie on the - // same side of the supporting plane, and we can exit early. - if (dist2[0] * dist2[1] > tolerance && dist2[0] * dist2[2] > tolerance) { - // vtkDebugMacro(<<"Same side supporting plane 2!"); - return { - intersect: false, - coplanar, - pt1, - pt2, - surfaceId - }; - } - // Check for coplanarity of the supporting planes. - if (Math.abs(n1[0] - n2[0]) < 1e-9 && Math.abs(n1[1] - n2[1]) < 1e-9 && Math.abs(n1[2] - n2[2]) < 1e-9 && Math.abs(s1 - s2) < 1e-9) { - coplanar = true; - // vtkDebugMacro(<<"Coplanar!"); - return { - intersect: false, - coplanar, - pt1, - pt2, - surfaceId - }; - } - - // There are more efficient ways to find the intersection line (if - // it exists), but this is clear enough. - const pts1 = [p1, q1, r1]; - const pts2 = [p2, q2, r2]; - - // Find line of intersection (L = p + t*v) between two planes. - const n1n2 = dot(n1, n2); - const a = (s1 - s2 * n1n2) / (n1n2 * n1n2 - 1.0); - const b = (s2 - s1 * n1n2) / (n1n2 * n1n2 - 1.0); - const p = [a * n1[0] + b * n2[0], a * n1[1] + b * n2[1], a * n1[2] + b * n2[2]]; - const v = cross(n1, n2, []); - normalize(v); - let index1 = 0; - let index2 = 0; - const t1 = []; - const t2 = []; - let ts1 = 50; - let ts2 = 50; - for (let i = 0; i < 3; i++) { - const id1 = i; - const id2 = (i + 1) % 3; - - // Find t coordinate on line of intersection between two planes. - const val1 = vtkPlane.intersectWithLine(pts1[id1], pts1[id2], p2, n2); - if (val1.intersection && val1.t > 0 - tolerance && val1.t < 1 + tolerance) { - if (val1.t < 1 + tolerance && val1.t > 1 - tolerance) { - ts1 = index1; - } - t1[index1++] = dot(val1.x, v) - dot(p, v); - } - const val2 = vtkPlane.intersectWithLine(pts2[id1], pts2[id2], p1, n1); - if (val2.intersection && val2.t > 0 - tolerance && val2.t < 1 + tolerance) { - if (val2.t < 1 + tolerance && val2.t > 1 - tolerance) { - ts2 = index2; - } - t2[index2++] = dot(val2.x, v) - dot(p, v); - } - } - - // If the value of the index is greater than 2, the intersecting point - // actually is intersected by all three edges. In this case, set the two - // edges to the two edges where the intersecting point is not the end point - if (index1 > 2) { - index1--; - // swap - const t12 = t1[2]; - t1[2] = t1[ts1]; - t1[ts1] = t12; - } - if (index2 > 2) { - index2--; - const t22 = t2[2]; - t2[2] = t2[ts2]; - t2[ts2] = t22; - } - // Check if only one edge or all edges intersect the supporting - // planes intersection. - if (index1 !== 2 || index2 !== 2) { - // vtkDebugMacro(<<"Only one edge intersecting!"); - return { - intersect: false, - coplanar, - pt1, - pt2, - surfaceId - }; - } - - // Check for NaNs - if (Number.isNaN(t1[0]) || Number.isNaN(t1[1]) || Number.isNaN(t2[0]) || Number.isNaN(t2[1])) { - // vtkWarningMacro(<<"NaNs!"); - return { - intersect: false, - coplanar, - pt1, - pt2, - surfaceId - }; - } - if (t1[0] > t1[1]) { - // swap - const t11 = t1[1]; - t1[1] = t1[0]; - t1[0] = t11; - } - if (t2[0] > t2[1]) { - // swap - const t21 = t2[1]; - t2[1] = t2[0]; - t2[0] = t21; - } - // Handle the different interval configuration cases. - let tt1; - let tt2; - if (t1[1] < t2[0] || t2[1] < t1[0]) { - // vtkDebugMacro(<<"No Overlap!"); - return { - intersect: false, - coplanar, - pt1, - pt2, - surfaceId - }; // No overlap - } - - if (t1[0] < t2[0]) { - if (t1[1] < t2[1]) { - // First point on surface 2, second point on surface 1 - surfaceId[0] = 2; - surfaceId[1] = 1; - tt1 = t2[0]; - tt2 = t1[1]; - } else { - // Both points belong to lines on surface 2 - surfaceId[0] = 2; - surfaceId[1] = 2; - tt1 = t2[0]; - tt2 = t2[1]; - } - } // t1[0] >= t2[0] - else if (t1[1] < t2[1]) { - // Both points belong to lines on surface 1 - surfaceId[0] = 1; - surfaceId[1] = 1; - tt1 = t1[0]; - tt2 = t1[1]; - } else { - // First point on surface 1, second point on surface 2 - surfaceId[0] = 1; - surfaceId[1] = 2; - tt1 = t1[0]; - tt2 = t2[1]; - } - - // Create actual intersection points. - multiplyAccumulate(p, v, tt1, pt1); - multiplyAccumulate(p, v, tt2, pt2); - return { - intersect: true, - coplanar, - pt1, - pt2, - surfaceId - }; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = { - computeNormalDirection, - computeNormal, - interpolationDerivs, - intersectWithTriangle -}; - -// ---------------------------------------------------------------------------- -// vtkTriangle methods -// ---------------------------------------------------------------------------- - -function vtkTriangle(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkTriangle'); - publicAPI.getCellDimension = () => 2; - publicAPI.intersectWithLine = (p1, p2, tol, x, pcoords) => { - const outObj = { - subId: 0, - t: Number.MAX_VALUE, - intersect: 0, - betweenPoints: false - }; - pcoords[2] = 0.0; - const closestPoint = []; - const tol2 = tol * tol; - - // Get normal for triangle - const pt1 = []; - const pt2 = []; - const pt3 = []; - model.points.getPoint(0, pt1); - model.points.getPoint(1, pt2); - model.points.getPoint(2, pt3); - const n = []; - const weights = []; - computeNormal(pt1, pt2, pt3, n); - if (n[0] !== 0 || n[1] !== 0 || n[2] !== 0) { - // Intersect plane of triangle with line - const plane = vtkPlane.intersectWithLine(p1, p2, pt1, n); - outObj.betweenPoints = plane.betweenPoints; - outObj.t = plane.t; - x[0] = plane.x[0]; - x[1] = plane.x[1]; - x[2] = plane.x[2]; - if (!plane.intersection) { - pcoords[0] = 0.0; - pcoords[1] = 0.0; - outObj.intersect = 0; - return outObj; - } - - // Evaluate position - const inside = publicAPI.evaluatePosition(x, closestPoint, pcoords, weights); - if (inside.evaluation >= 0) { - if (inside.dist2 <= tol2) { - outObj.intersect = 1; - return outObj; - } - outObj.intersect = inside.evaluation; - return outObj; - } - } - - // Normals are null, so the triangle is degenerated and - // we still need to check intersection between line and - // the longest edge. - const dist2Pt1Pt2 = distance2BetweenPoints(pt1, pt2); - const dist2Pt2Pt3 = distance2BetweenPoints(pt2, pt3); - const dist2Pt3Pt1 = distance2BetweenPoints(pt3, pt1); - if (!model.line) { - model.line = vtkLine.newInstance(); - } - if (dist2Pt1Pt2 > dist2Pt2Pt3 && dist2Pt1Pt2 > dist2Pt3Pt1) { - model.line.getPoints().setPoint(0, pt1); - model.line.getPoints().setPoint(1, pt2); - } else if (dist2Pt2Pt3 > dist2Pt3Pt1 && dist2Pt2Pt3 > dist2Pt1Pt2) { - model.line.getPoints().setPoint(0, pt2); - model.line.getPoints().setPoint(1, pt3); - } else { - model.line.getPoints().setPoint(0, pt3); - model.line.getPoints().setPoint(1, pt1); - } - const intersectLine = model.line.intersectWithLine(p1, p2, tol, x, pcoords); - outObj.betweenPoints = intersectLine.betweenPoints; - outObj.t = intersectLine.t; - if (intersectLine.intersect) { - const pt3Pt1 = []; - const pt3Pt2 = []; - const pt3X = []; - // Compute r and s manually, using dot and norm. - for (let i = 0; i < 3; i++) { - pt3Pt1[i] = pt1[i] - pt3[i]; - pt3Pt2[i] = pt2[i] - pt3[i]; - pt3X[i] = x[i] - pt3[i]; - } - pcoords[0] = dot(pt3X, pt3Pt1) / dist2Pt3Pt1; - pcoords[1] = dot(pt3X, pt3Pt2) / dist2Pt2Pt3; - outObj.intersect = 1; - return outObj; - } - pcoords[0] = 0.0; - pcoords[1] = 0.0; - outObj.intersect = 0; - return outObj; - }; - - /** - * Evaluates whether the specified point is inside (1), outside (0), or - * indeterminate (-1) for the cell; computes parametric coordinates, sub-cell - * ID (if applicable), squared distance to the cell (and closest point if - * requested), and interpolation weights for the cell. - * - * @param {Vector3} x The x point coordinate. - * @param {Vector3} closestPoint The closest point coordinate. - * @param {Vector3} pcoords The parametric coordinates. - * @param {Number[]} weights The number of weights. - */ - publicAPI.evaluatePosition = (x, closestPoint, pcoords, weights) => { - // will return obj - const outObj = { - subId: 0, - dist2: 0, - evaluation: -1 - }; - let i; - let j; - const pt1 = []; - const pt2 = []; - const pt3 = []; - const n = []; - let fabsn; - const rhs = []; - const c1 = []; - const c2 = []; - let det = 0; - let idx = 0; - const indices = []; - let dist2Point; - let dist2Line1; - let dist2Line2; - let closest = []; - const closestPoint1 = []; - const closestPoint2 = []; - const cp = []; - outObj.subId = 0; - pcoords[2] = 0.0; - - // Get normal for triangle, only the normal direction is needed, i.e. the - // normal need not be normalized (unit length) - // - model.points.getPoint(1, pt1); - model.points.getPoint(2, pt2); - model.points.getPoint(0, pt3); - computeNormalDirection(pt1, pt2, pt3, n); - - // Project point to plane - vtkPlane.generalizedProjectPoint(x, pt1, n, cp); - - // Construct matrices. Since we have over determined system, need to find - // which 2 out of 3 equations to use to develop equations. (Any 2 should - // work since we've projected point to plane.) - let maxComponent = 0.0; - for (i = 0; i < 3; i++) { - // trying to avoid an expensive call to fabs() - if (n[i] < 0) { - fabsn = -n[i]; - } else { - fabsn = n[i]; - } - if (fabsn > maxComponent) { - maxComponent = fabsn; - idx = i; - } - } - for (j = 0, i = 0; i < 3; i++) { - if (i !== idx) { - indices[j++] = i; - } - } - for (i = 0; i < 2; i++) { - rhs[i] = cp[indices[i]] - pt3[indices[i]]; - c1[i] = pt1[indices[i]] - pt3[indices[i]]; - c2[i] = pt2[indices[i]] - pt3[indices[i]]; - } - det = determinant2x2(c1, c2); - if (det === 0.0) { - pcoords[0] = 0.0; - pcoords[1] = 0.0; - outObj.evaluation = -1; - return outObj; - } - pcoords[0] = determinant2x2(rhs, c2) / det; - pcoords[1] = determinant2x2(c1, rhs) / det; - - // Okay, now find closest point to element - weights[0] = 1 - (pcoords[0] + pcoords[1]); - weights[1] = pcoords[0]; - weights[2] = pcoords[1]; - if (weights[0] >= 0.0 && weights[0] <= 1.0 && weights[1] >= 0.0 && weights[1] <= 1.0 && weights[2] >= 0.0 && weights[2] <= 1.0) { - // projection distance - if (closestPoint) { - outObj.dist2 = distance2BetweenPoints(cp, x); - closestPoint[0] = cp[0]; - closestPoint[1] = cp[1]; - closestPoint[2] = cp[2]; - } - outObj.evaluation = 1; - } else { - let t; - if (closestPoint) { - if (weights[1] < 0.0 && weights[2] < 0.0) { - dist2Point = distance2BetweenPoints(x, pt3); - dist2Line1 = vtkLine.distanceToLine(x, pt1, pt3, t, closestPoint1); - dist2Line2 = vtkLine.distanceToLine(x, pt3, pt2, t, closestPoint2); - if (dist2Point < dist2Line1) { - outObj.dist2 = dist2Point; - closest = pt3; - } else { - outObj.dist2 = dist2Line1; - closest = closestPoint1; - } - if (dist2Line2 < outObj.dist2) { - outObj.dist2 = dist2Line2; - closest = closestPoint2; - } - for (i = 0; i < 3; i++) { - closestPoint[i] = closest[i]; - } - } else if (weights[2] < 0.0 && weights[0] < 0.0) { - dist2Point = distance2BetweenPoints(x, pt1); - dist2Line1 = vtkLine.distanceToLine(x, pt1, pt3, t, closestPoint1); - dist2Line2 = vtkLine.distanceToLine(x, pt1, pt2, t, closestPoint2); - if (dist2Point < dist2Line1) { - outObj.dist2 = dist2Point; - closest = pt1; - } else { - outObj.dist2 = dist2Line1; - closest = closestPoint1; - } - if (dist2Line2 < outObj.dist2) { - outObj.dist2 = dist2Line2; - closest = closestPoint2; - } - for (i = 0; i < 3; i++) { - closestPoint[i] = closest[i]; - } - } else if (weights[1] < 0.0 && weights[0] < 0.0) { - dist2Point = distance2BetweenPoints(x, pt2); - dist2Line1 = vtkLine.distanceToLine(x, pt2, pt3, t, closestPoint1); - dist2Line2 = vtkLine.distanceToLine(x, pt1, pt2, t, closestPoint2); - if (dist2Point < dist2Line1) { - outObj.dist2 = dist2Point; - closest = pt2; - } else { - outObj.dist2 = dist2Line1; - closest = closestPoint1; - } - if (dist2Line2 < outObj.dist2) { - outObj.dist2 = dist2Line2; - closest = closestPoint2; - } - for (i = 0; i < 3; i++) { - closestPoint[i] = closest[i]; - } - } else if (weights[0] < 0.0) { - const lineDistance = vtkLine.distanceToLine(x, pt1, pt2, closestPoint); - outObj.dist2 = lineDistance.distance; - } else if (weights[1] < 0.0) { - const lineDistance = vtkLine.distanceToLine(x, pt2, pt3, closestPoint); - outObj.dist2 = lineDistance.distance; - } else if (weights[2] < 0.0) { - const lineDistance = vtkLine.distanceToLine(x, pt1, pt3, closestPoint); - outObj.dist2 = lineDistance.distance; - } - } - outObj.evaluation = 0; - } - return outObj; - }; - - /** - * Determine global coordinates (x) from the given subId and parametric - * coordinates. - * @param {Vector3} pcoords The parametric coordinates. - * @param {Vector3} x The x point coordinate. - * @param {Number[]} weights The number of weights. - */ - publicAPI.evaluateLocation = (pcoords, x, weights) => { - const p0 = []; - const p1 = []; - const p2 = []; - model.points.getPoint(0, p0); - model.points.getPoint(1, p1); - model.points.getPoint(2, p2); - const u3 = 1.0 - pcoords[0] - pcoords[1]; - for (let i = 0; i < 3; i++) { - x[i] = p0[i] * u3 + p1[i] * pcoords[0] + p2[i] * pcoords[1]; - } - weights[0] = u3; - weights[1] = pcoords[0]; - weights[2] = pcoords[1]; - }; - - /** - * Get the distance of the parametric coordinate provided to the cell. - * @param {Vector3} pcoords The parametric coordinates. - */ - publicAPI.getParametricDistance = pcoords => { - let pDist; - let pDistMax = 0.0; - const pc = []; - pc[0] = pcoords[0]; - pc[1] = pcoords[1]; - pc[2] = 1.0 - pcoords[0] - pcoords[1]; - for (let i = 0; i < 3; i++) { - if (pc[i] < 0.0) { - pDist = -pc[i]; - } else if (pc[i] > 1.0) { - pDist = pc[i] - 1.0; - } else { - // inside the cell in the parametric direction - pDist = 0.0; - } - if (pDist > pDistMax) { - pDistMax = pDist; - } - } - return pDistMax; - }; - - /** - * Get the derivatives of the triangle strip. - * @param {Number} subId - The sub-id of the triangle. - * @param {Vector3} pcoords - The parametric coordinates. - * @param {Number[]} values - The values at the points. - * @param {Number} dim - The dimension. - * @param {Number[]} derivs - The derivatives. - */ - publicAPI.derivatives = (subId, pcoords, values, dim, derivs) => { - const x0 = model.points.getPoint(0); - const x1 = model.points.getPoint(1); - const x2 = model.points.getPoint(2); - const n = []; - const v10 = []; - const v20 = []; - const v = []; - computeNormal(x0, x1, x2, n); - subtract(x1, x0, v10); - subtract(x2, x0, v); - cross(n, v10, v20); - const lenX = normalize(v10); // check for degenerate triangle - - if (lenX <= 0.0 || normalize(v20) <= 0.0) { - // degenerate - for (let j = 0; j < dim; j++) { - for (let i = 0; i < 3; i++) { - derivs[j * dim + i] = 0.0; - } - } - return; - } - - // 2D coordinates - const v0 = [0, 0]; - const v1 = [lenX, 0]; - const v2 = [dot(v, v10), dot(v, v20)]; - const functionDerivs = new Array(6); - interpolationDerivs(functionDerivs); - - // Compute Jacobian: Jacobian is constant for a triangle. - const J = [v1[0] - v0[0], v1[1] - v0[1], v2[0] - v0[0], v2[1] - v0[1]]; - - // Compute inverse Jacobian (expects flat array) - const JI = macro.newTypedArray(TYPED_ARRAYS.Float64Array, 4); - invertMatrix(J, JI, 2); // returns flat array [JI00, JI01, JI10, JI11] - - // Compute derivatives - for (let j = 0; j < dim; j++) { - let sum0 = 0.0; - let sum1 = 0.0; - for (let i = 0; i < 3; i++) { - sum0 += functionDerivs[i] * values[dim * i + j]; - sum1 += functionDerivs[3 + i] * values[dim * i + j]; - } - const dBydx = sum0 * JI[0] + sum1 * JI[1]; - const dBydy = sum0 * JI[2] + sum1 * JI[3]; - - // Transform into global system (dot product with global axes) - derivs[3 * j] = dBydx * v10[0] + dBydy * v20[0]; - derivs[3 * j + 1] = dBydx * v10[1] + dBydy * v20[1]; - derivs[3 * j + 2] = dBydx * v10[2] + dBydy * v20[2]; - } - }; - - /** - * Get the nearest cell boundary to the specified parametric - * coordinates and whether the point is inside or outside the cell. - * @param {Number} subId The sub-id of the cell. - * @param {Vector3} pcoords The parametric coordinates. - * @param {Vector2} pts The points of the cell. - */ - publicAPI.cellBoundary = (subId, pcoords, pts) => { - const t1 = pcoords[0] - pcoords[1]; - const t2 = 0.5 * (1.0 - pcoords[0]) - pcoords[1]; - const t3 = 2.0 * pcoords[0] + pcoords[1] - 1.0; - - // compare against three lines in parametric space that divide element - // into three pieces - if (t1 >= 0.0 && t2 >= 0.0) { - pts[0] = model.pointsIds[0]; - pts[1] = model.pointsIds[1]; - } else if (t2 < 0.0 && t3 >= 0.0) { - pts[0] = model.pointsIds[1]; - pts[1] = model.pointsIds[2]; - } // ( t1 < 0.0 && t3 < 0.0 ) - else { - pts[0] = model.pointsIds[2]; - pts[1] = model.pointsIds[0]; - } - if (pcoords[0] < 0.0 || pcoords[1] < 0.0 || pcoords[0] > 1.0 || pcoords[1] > 1.0 || 1.0 - pcoords[0] - pcoords[1] < 0.0) { - return false; // outside of triangle - } - - return true; // inside triangle - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkCell.extend(publicAPI, model, initialValues); - vtkTriangle(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkTriangle'); - -// ---------------------------------------------------------------------------- - -var vtkTriangle$1 = { - newInstance, - extend, - ...STATIC -}; - -export { STATIC, vtkTriangle$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/TriangleStrip.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/TriangleStrip.d.ts deleted file mode 100644 index c1397d5e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/TriangleStrip.d.ts +++ /dev/null @@ -1,180 +0,0 @@ -import { CellType, Vector3 } from './../../types'; -import vtkCellArray from './../Core/CellArray'; -import vtkPoints from './../Core/Points'; -import vtkCell, { ICellInitialValues } from './Cell'; -import vtkLine from './Line'; -import vtkTriangle from './Triangle'; - -export interface ITriangleStripInitialValues extends ICellInitialValues { - line?: vtkLine; - triangle?: vtkTriangle; -} - -export interface vtkTriangleStrip extends vtkCell { - /** - * Get the cell boundary of the triangle strip. - * @param {Number} subId The sub-id of the cell. - * @param {Vector3} pcoords The parametric coordinates. - * @param {Vector3[]} pts The points of the cell. - */ - cellBoundary(subId: number, pcoords: Vector3, pts: Vector3[]): boolean; - - /** - * Derivatives of the triangle strip. - * @param {Number} subId - The sub-id of the triangle. - * @param {Vector3} pcoords - The parametric coordinates. - * @param {Number[]} values - The values at the points. - * @param {Number} dim - The dimension. - * @param {Number[]} derivs - The derivatives. - */ - derivatives( - subId: number, - pcoords: Vector3, - values: number[], - dim: number, - derivs: number[] - ): void; - - /** - * Evaluate the location of a point in the triangle strip. - * @param {Vector3} pcoords The parametric coordinates of the point. - * @param {Vector3} closestPoint The closest point on the triangle strip. - * @param {Number[]} weights The interpolation weights. - */ - evaluateLocation( - pcoords: Vector3, - closestPoint: Vector3, - weights: number[] - ): number; - - /** - * Evaluate the position of a point in the triangle strip. - * @param {Vector3} x The point to evaluate. - * @param {Vector3} closestPoint The closest point on the triangle strip. - * @param {Vector3} pcoords The parametric coordinates. - * @param {Number[]} dist2 The squared distance from the point to the triangle strip. - * @param {Number[]} weights The interpolation weights. - */ - evaluatePosition( - x: Vector3, - closestPoint: Vector3, - pcoords: Vector3, - dist2: number[], - weights: number[] - ): number; - - /** - * Get the cell type. - */ - getCellType(): CellType; - - /** - * Get the topological dimensional of the cell (0, 1, 2 or 3). - */ - getCellDimension(): number; - - /** - * Get the edge of the triangle strip. - * @param {Number} edgeId The edge ID to retrieve. - * @returns {vtkLine} The edge corresponding to the edge ID. - */ - getEdge(edgeId: number): vtkLine; - - /** - * Get the number of edges in the triangle strip. - */ - getNumberOfEdges(): number; - - /** - * Get the number of faces in the triangle strip. - */ - getNumberOfFaces(): number; - - /** - * Get the parametric center of the triangle strip. - * @param {Vector3} pcoords - The parametric coordinates. - * @returns {Number} The parametric center. - */ - getParametricCenter(pcoords: Vector3): number; - - /** - * Get the point array of the triangle strip. - * @returns {Number[]} The point array. - */ - getPointArray(): number[]; - - /** - * Initialize the triangle strip with points and point IDs. - * @param {vtkPoints} points The points of the triangle strip. - * @param {Number[]} pointsIds The point IDs of the triangle strip. - */ - initialize(points: vtkPoints, pointsIds: number[]): void; - - /** - * Intersects a line with the triangle strip. - * @param {Vector3} p1 Start point of the line - * @param {Vector3} p2 End point of the line - * @param {Number} tol Tolerance for intersection - * @param {Vector3} x Intersection point - * @param {Vector3} pcoords Parametric coordinates of the intersection - * @returns {Boolean} True if the line intersects the triangle strip - */ - intersectWithLine( - p1: Vector3, - p2: Vector3, - tol: number, - x: Vector3, - pcoords: Vector3 - ): boolean; - - /** - * Triangulate the triangle strip. - * @returns {Boolean} True if the triangulation is successful. - */ - triangulate(): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkTriangle characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ITriangleStripInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ITriangleStripInitialValues -): void; - -/** - * Method used to create a new instance of vtkTriangle. - * @param {ITriangleStripInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ITriangleStripInitialValues -): vtkTriangleStrip; - -/** - * Decomposes a triangle strip into individual triangles. - * @param {vtkPoints} pts Points of the triangle strip - * @param {vtkCellArray} polys Cell array to store the resulting triangles - */ -export function decomposeStrip(pts: vtkPoints, polys: vtkCellArray): void; - -/** - * vtkTriangleStrip is a concrete implementation of vtkCell to represent a 2D - * triangle strip. A triangle strip is a compact representation of triangles - * connected edge to edge in strip fashion. The connectivity of a triangle strip - * is three points defining an initial triangle, then for each additional - * triangle, a single point that, combined with the previous two points, defines - * the next triangle. - * - * @see vtkCell - */ -export declare const vtkTriangleStrip: { - newInstance: typeof newInstance; - extend: typeof extend; - decomposeStrip: typeof decomposeStrip; -}; -export default vtkTriangleStrip; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/TriangleStrip.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/TriangleStrip.js deleted file mode 100644 index 28523fa1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/DataModel/TriangleStrip.js +++ /dev/null @@ -1,396 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCell from './Cell.js'; -import vtkLine from './Line.js'; -import vtkTriangle from './Triangle.js'; -import { CellType } from './CellTypes/Constants.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -function notImplemented(method) { - return () => vtkErrorMacro(`vtkTriangleStrip.${method} - NOT IMPLEMENTED`); -} - -/** - * Decomposes a triangle strip into individual triangles. - * @param {*} pts Points of the triangle strip - * @param {*} polys Cell array to store the resulting triangles - */ -function decomposeStrip(pts, polys) { - if (!Array.isArray(pts) || pts.length < 3) { - vtkErrorMacro('decomposeStrip - Invalid points array'); - return; - } - let p1 = pts[0]; - let p2 = pts[1]; - for (let i = 0; i < pts.length - 2; i++) { - const p3 = pts[i + 2]; - if (i % 2) { - // Flip ordering to preserve consistency - polys.insertNextCell([p2, p1, p3]); - } else { - polys.insertNextCell([p1, p2, p3]); - } - p1 = p2; - p2 = p3; - } -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = { - decomposeStrip -}; - -// ---------------------------------------------------------------------------- -// vtkTriangleStrip methods -// ---------------------------------------------------------------------------- - -function vtkTriangleStrip(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkTriangleStrip'); - const superInitialize = publicAPI.initialize; - publicAPI.initialize = (points, pointsIds) => { - model.triangle.initialize(points, pointsIds); - superInitialize(points, pointsIds); - }; - - /** - * Get the cell type. - * @returns {number} Cell type - */ - publicAPI.getCellType = () => CellType.VTK_TRIANGLE_STRIP; - - /** - * Get the cell dimension. - * The dimension of a triangle strip is always 2. - * @returns {number} Cell dimension - */ - publicAPI.getCellDimension = () => 2; - - /** - * Get the number of edges. - * @returns {number} Number of edges - */ - publicAPI.getNumberOfEdges = () => model.pointsIds.length; - - /** - * Get the number of faces. - * @returns {number} Number of faces - */ - publicAPI.getNumberOfFaces = () => 0; - - /** - * Evaluate the position within the triangle strip. - * @param {*} x Intersection point - * @param {*} closestPoint Closest point on the triangle - * @param {*} pcoords Parametric coordinates - * @param {*} dist2 Squared distance to the closest point - * @param {*} weights Weights for interpolation - * @returns {number} Evaluation status - */ - publicAPI.evaluatePosition = (x, closestPoint, pcoords, dist2, weights) => { - const pc = [0, 0, 0]; - let minDist2 = Number.MAX_VALUE; - let returnStatus = 0; - const tempWeights = []; - const activeWeights = []; - const closest = []; - pcoords[2] = 0.0; - activeWeights[0] = 0.0; - activeWeights[1] = 0.0; - activeWeights[2] = 0.0; - const points = model.triangle.getPoints(); - points.setNumberOfPoints(3); - const pointsIds = model.triangle.getPointsIds(); - const numPoints = pointsIds.length; - - // Initialize weights - for (let i = 0; i < numPoints; i++) { - weights[i] = 0.0; - } - - // Iterate through triangles in the strip - for (let i = 0; i < numPoints - 2; i++) { - // Set triangle points - const pt0 = []; - points.getPoint(i, pt0); - const pt1 = []; - points.getPoint(i + 1, pt1); - const pt2 = []; - points.getPoint(i + 2, pt2); - points.setData(Float32Array.from([...pt0, ...pt1, ...pt2]), 3); - - // Use dist2 from triangle's evaluatePosition return value - const status = model.triangle.evaluatePosition(x, closest, pc, tempWeights); - const currentDist2 = status.dist2; - if (status.evaluation >= 0 && (currentDist2 < minDist2 || currentDist2 === minDist2 && returnStatus === 0)) { - returnStatus = status; - if (closestPoint) { - closestPoint[0] = closest[0]; - closestPoint[1] = closest[1]; - closestPoint[2] = closest[2]; - } - pcoords[0] = pc[0]; - pcoords[1] = pc[1]; - minDist2 = currentDist2; - activeWeights[0] = tempWeights[0]; - activeWeights[1] = tempWeights[1]; - activeWeights[2] = tempWeights[2]; - } - } - dist2[0] = minDist2; - weights[0] = activeWeights[0]; - weights[1] = activeWeights[1]; - weights[2] = activeWeights[2]; - return returnStatus; - }; - - /** - * Evaluate the location within the triangle strip. - * @param {*} subId Sub-Id of the triangle - * @param {*} pcoords Parametric coordinates - * @param {*} x Intersection point - * @param {*} weights Weights for interpolation - */ - publicAPI.evaluateLocation = (subId, pcoords, x, weights) => { - const idx = [[0, 1, 2], [1, 0, 2]]; - const order = subId % 2; - const numPoints = model.pointsIds.length; - - // Initialize weights - for (let i = 0; i < numPoints; i++) { - weights[i] = 0.0; - } - const u3 = 1.0 - pcoords[0] - pcoords[1]; - weights[subId] = u3; - weights[subId + 1] = pcoords[0]; - weights[subId + 2] = pcoords[1]; - - // Get points - const pt1 = []; - model.points.getPoint(subId + idx[order][0], pt1); - const pt2 = []; - model.points.getPoint(subId + idx[order][1], pt2); - const pt3 = []; - model.points.getPoint(subId + idx[order][2], pt3); - - // Interpolate position - for (let i = 0; i < 3; i++) { - x[i] = pt1[i] * weights[subId] + pt2[i] * weights[subId + 1] + pt3[i] * weights[subId + 2]; - } - }; - - /** - * Get the cell boundary of the triangle strip. - * @param {Number} subId The sub-id of the cell. - * @param {Vector3} pcoords The parametric coordinates. - * @param {Vector2} pts The points of the cell. - */ - publicAPI.cellBoundary = (subId, pcoords, pts) => { - const idx = [[0, 1, 2], [1, 0, 2]]; - const order = subId % 2; - const pointsIds = model.triangle.getPointsIds(); - pointsIds[0] = model.pointsIds[idx[order][0]]; - pointsIds[1] = model.pointsIds[idx[order][1]]; - pointsIds[2] = model.pointsIds[idx[order][2]]; - return model.triangle.cellBoundary(0, pcoords, pts); - }; - - /** - * Get the edge of the triangle strip. - * @param {Number} edgeId Edge index (0 to n-1) - * @returns {vtkLine} The edge as a vtkLine instance - */ - publicAPI.getEdge = edgeId => { - let id1; - let id2; - const numPoints = model.pointsIds.length; - if (edgeId === 0) { - id1 = 0; - id2 = 1; - } else if (edgeId === numPoints - 1) { - id1 = edgeId - 1; - id2 = edgeId; - } else { - id1 = edgeId - 1; - id2 = edgeId + 1; - } - model.line.getPointsIds()[0] = model.pointsIds[id1]; - model.line.getPointsIds()[1] = model.pointsIds[id2]; - model.line.getPoints().setPoint(0, model.points.getPoint(id1)); - model.line.getPoints().setPoint(1, model.points.getPoint(id2)); - return model.line; - }; - - /** - * Intersects a line with the triangle strip. - * @param {Vector3} p1 Start point of the line - * @param {Vector3} p2 End point of the line - * @param {number} tol Tolerance for intersection - * @param {Vector3} x Intersection point - * @param {Vector3} pcoords Parametric coordinates of the intersection - * @returns {Boolean} True if the line intersects the triangle strip - */ - publicAPI.intersectWithLine = (p1, p2, tol, x, pcoords) => { - const numTris = model.pointsIds.length - 2; - const points = model.triangle.getPoints(); - points.setNumberOfPoints(3); - for (let i = 0; i < numTris; i++) { - const pt0 = []; - model.points.getPoint(model.pointsIds[i], pt0); - const pt1 = []; - model.points.getPoint(model.pointsIds[i + 1], pt1); - const pt2 = []; - model.points.getPoint(model.pointsIds[i + 2], pt2); - points.setData(Float32Array.from([...pt0, ...pt1, ...pt2]), 3); - const ret = model.triangle.intersectWithLine(p1, p2, tol, x, pcoords); - if (ret.intersect) { - return ret; - } - } - return false; - }; - - // Triangulate - /** - * Triangulate the triangle strip. - * @returns {Boolean} True if the triangulation is successful. - */ - publicAPI.triangulate = () => { - const numTris = model.points.getNumberOfPoints() - 2; - model.tris = new Array(3 * numTris); - const idx = [[0, 1, 2], [1, 0, 2]]; - for (let subId = 0; subId < numTris; subId++) { - const order = subId % 2; - for (let i = 0; i < 3; i++) { - model.tris[subId * 3 + i] = subId + idx[order][i]; - } - } - return true; - }; - - /** - * Get the point array of the triangle strip. - * @returns {Array} The point array. - */ - publicAPI.getPointArray = () => model.tris; - - // Derivatives - /** - * Get the derivatives of the triangle strip. - * @param {Number} subId - The sub-id of the triangle. - * @param {Vector3} pcoords - The parametric coordinates. - * @param {Number[]} values - The values at the points. - * @param {Number} dim - The dimension. - * @param {Number[]} derivs - The derivatives. - */ - publicAPI.derivatives = (subId, pcoords, values, dim, derivs) => { - const pt0 = []; - model.points.getPoint(subId, pt0); - const pt1 = []; - model.points.getPoint(subId + 1, pt1); - const pt2 = []; - model.points.getPoint(subId + 2, pt2); - const points = model.triangle.getPoints(); - points.setPoint(0, ...pt0); - points.setPoint(1, ...pt1); - points.setPoint(2, ...pt2); - model.triangle.derivatives(0, pcoords, values, dim, derivs); - }; - - /** - * Get the parametric center of the triangle strip. - * @param {Vector3} pcoords - The parametric coordinates. - * @returns {Number} The parametric center. - */ - publicAPI.getParametricCenter = pcoords => { - pcoords[0] = 0.333333; - pcoords[1] = 0.333333; - pcoords[2] = 0.0; - return Math.floor((model.pointsIds.length - 2) / 2); - }; - - /** - * Contour the triangle strip. - * @param {*} value - * @param {*} cellScalars - * @param {*} locator - * @param {*} verts - * @param {*} lines - * @param {*} polys - * @param {*} inPd - * @param {*} outPd - * @param {*} inCd - * @param {*} cellId - * @param {*} outCd - * @returns - */ - publicAPI.contour = (value, cellScalars, locator, verts, lines, polys, inPd, outPd, inCd, cellId, outCd) => notImplemented('contour')(); - - /** - * Clip the triangle strip. - * @param {*} value Clipping value - * @param {*} cellScalars Cell scalars - * @param {*} locator Locator - * @param {*} tris Triangle indices - * @param {*} inPd Input point data - * @param {*} outPd Output point data - * @param {*} inCd - * @param {*} cellId - * @param {*} outCd - * @param {*} insideOut - * @returns - */ - publicAPI.clip = (value, cellScalars, locator, tris, inPd, outPd, inCd, cellId, outCd, insideOut) => notImplemented('clip')(); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - line: null, - triangle: null, - tris: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkCell.extend(publicAPI, model, initialValues); - if (!model.line) { - model.line = vtkLine.newInstance(); - } - if (!model.triangle) { - model.triangle = vtkTriangle.newInstance(); - } - - // Build VTK API - vtkTriangleStrip(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkTriangleStrip'); - -// ---------------------------------------------------------------------------- - -var vtkTriangleStrip$1 = { - newInstance, - extend, - ...STATIC -}; - -export { STATIC, vtkTriangleStrip$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/System.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/System.js deleted file mode 100644 index 6c9cf934..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/System.js +++ /dev/null @@ -1,9 +0,0 @@ -import vtkMobileVR from './System/MobileVR.js'; -import vtkTimerLog from './System/TimerLog.js'; - -var System = { - vtkMobileVR, - vtkTimerLog -}; - -export { System as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/System/MobileVR.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/System/MobileVR.js deleted file mode 100644 index 100778f6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/System/MobileVR.js +++ /dev/null @@ -1,124 +0,0 @@ -import { d as dpdb } from './MobileVR/dpdb.json.js'; -import headsets from './MobileVR/headsets.js'; - -// Inspired from https://github.com/immersive-web/cardboard-vr-display/blob/master/src/dpdb.js -const userAgent = navigator.userAgent || navigator.vendor || window.opera; - -/* eslint-disable */ -const isMobile = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(userAgent) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(userAgent.substr(0, 4)); -/* eslint-enable */ - -const isIOS = /iPad|iPhone|iPod/.test(navigator.platform); -const isWebViewAndroid = userAgent.indexOf('Version') !== -1 && userAgent.indexOf('Android') !== -1 && userAgent.indexOf('Chrome') !== -1; -const isSafari = /^((?!chrome|android).)*safari/i.test(userAgent); -const isFirefoxAndroid = userAgent.indexOf('Firefox') !== -1 && userAgent.indexOf('Android') !== -1; -const width = Math.max(window.screen.width, window.screen.height) * window.devicePixelRatio; -const height = Math.min(window.screen.width, window.screen.height) * window.devicePixelRatio; -const hardware = { - width, - height -}; - -// ---------------------------------------------------------------------------- - -function matchRules(rule, ua, screenWidth, screenHeight) { - // We can only match 'ua' and 'res' rules, not other types like 'mdmh' - // (which are meant for native platforms). - if (!rule.ua && !rule.res) return false; - - // If our user agent string doesn't contain the indicated user agent string, - // the match fails. - if (rule.ua && ua.indexOf(rule.ua) < 0) return false; - - // If the rule specifies screen dimensions that don't correspond to ours, - // the match fails. - if (rule.res) { - if (!rule.res[0] || !rule.res[1]) return false; - const [resX, resY] = rule.res; - - // Compare min and max so as to make the order not matter, i.e., it should - // be true that 640x480 == 480x640. - if (Math.min(screenWidth, screenHeight) !== Math.min(resX, resY) || Math.max(screenWidth, screenHeight) !== Math.max(resX, resY)) { - return false; - } - } - return true; -} - -// ---------------------------------------------------------------------------- - -/* eslint-disable no-continue */ -function extractDeviceParameters() { - for (let i = 0; i < dpdb.devices.length; i++) { - const device = dpdb.devices[i]; - if (!device.rules) { - console.warn(`Device[${i}] has no rules section.`); - continue; - } - if (device.type !== 'ios' && device.type !== 'android') { - console.warn(`Device[${i}] has invalid type.`); - continue; - } - - // See if this device is of the appropriate type. - if (isIOS !== (device.type === 'ios')) { - continue; - } - - // See if this device matches any of the rules: - let matched = false; - for (let j = 0; j < device.rules.length; j++) { - const rule = device.rules[j]; - if (matchRules(rule, userAgent, width, height)) { - matched = true; - break; - } - } - if (!matched) { - continue; - } - - // device.dpi might be an array of [ xdpi, ydpi] or just a scalar. - hardware.xdpi = device.dpi[0] || device.dpi; - hardware.ydpi = device.dpi[1] || device.dpi; - hardware.bevelMm = device.bw; - } -} -/* eslint-enable no-continue */ - -// Apply rules -extractDeviceParameters(); - -// ---------------------------------------------------------------------------- - -function getVRHeadset() { - return new Promise((resolve, reject) => { - const body = document.querySelector('body'); - const selector = document.createElement('select'); - selector.innerHTML = headsets.map((headset, idx) => ``).join(''); - selector.style.zIndex = 1000; - selector.style.position = 'absolute'; - selector.style.left = '50%'; - selector.style.top = '50%'; - selector.style.transform = 'translate(-50%, -50%)'; - selector.addEventListener('change', e => { - body.removeChild(selector); - resolve(headsets[Number(e.target.value)]); - }); - body.appendChild(selector); - }); -} - -// ---------------------------------------------------------------------------- - -var vtkMobileVR = { - isMobile, - isIOS, - isWebViewAndroid, - isSafari, - isFirefoxAndroid, - hardware, - getVRHeadset -}; - -export { vtkMobileVR as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/System/MobileVR/dpdb.json.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/System/MobileVR/dpdb.json.js deleted file mode 100644 index 2097d5b0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/System/MobileVR/dpdb.json.js +++ /dev/null @@ -1,1688 +0,0 @@ -var format = 1; -var last_updated = "2018-02-20T22:55:10Z"; -var devices = [ - { - type: "android", - rules: [ - { - mdmh: "asus/*/Nexus 7/*" - }, - { - ua: "Nexus 7" - } - ], - dpi: [ - 320.8, - 323 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "asus/*/ASUS_Z00AD/*" - }, - { - ua: "ASUS_Z00AD" - } - ], - dpi: [ - 403, - 404.6 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "Google/*/Pixel XL/*" - }, - { - ua: "Pixel XL" - } - ], - dpi: [ - 537.9, - 533 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "Google/*/Pixel/*" - }, - { - ua: "Pixel" - } - ], - dpi: [ - 432.6, - 436.7 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "HTC/*/HTC6435LVW/*" - }, - { - ua: "HTC6435LVW" - } - ], - dpi: [ - 449.7, - 443.3 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "HTC/*/HTC One XL/*" - }, - { - ua: "HTC One XL" - } - ], - dpi: [ - 315.3, - 314.6 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "htc/*/Nexus 9/*" - }, - { - ua: "Nexus 9" - } - ], - dpi: 289, - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "HTC/*/HTC One M9/*" - }, - { - ua: "HTC One M9" - } - ], - dpi: [ - 442.5, - 443.3 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "HTC/*/HTC One_M8/*" - }, - { - ua: "HTC One_M8" - } - ], - dpi: [ - 449.7, - 447.4 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "HTC/*/HTC One/*" - }, - { - ua: "HTC One" - } - ], - dpi: 472.8, - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "Huawei/*/Nexus 6P/*" - }, - { - ua: "Nexus 6P" - } - ], - dpi: [ - 515.1, - 518 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "LENOVO/*/Lenovo PB2-690Y/*" - }, - { - ua: "Lenovo PB2-690Y" - } - ], - dpi: [ - 457.2, - 454.713 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "LGE/*/Nexus 5X/*" - }, - { - ua: "Nexus 5X" - } - ], - dpi: [ - 422, - 419.9 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "LGE/*/LGMS345/*" - }, - { - ua: "LGMS345" - } - ], - dpi: [ - 221.7, - 219.1 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "LGE/*/LG-D800/*" - }, - { - ua: "LG-D800" - } - ], - dpi: [ - 422, - 424.1 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "LGE/*/LG-D850/*" - }, - { - ua: "LG-D850" - } - ], - dpi: [ - 537.9, - 541.9 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "LGE/*/VS985 4G/*" - }, - { - ua: "VS985 4G" - } - ], - dpi: [ - 537.9, - 535.6 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "LGE/*/Nexus 5/*" - }, - { - ua: "Nexus 5 B" - } - ], - dpi: [ - 442.4, - 444.8 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "LGE/*/Nexus 4/*" - }, - { - ua: "Nexus 4" - } - ], - dpi: [ - 319.8, - 318.4 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "LGE/*/LG-P769/*" - }, - { - ua: "LG-P769" - } - ], - dpi: [ - 240.6, - 247.5 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "LGE/*/LGMS323/*" - }, - { - ua: "LGMS323" - } - ], - dpi: [ - 206.6, - 204.6 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "LGE/*/LGLS996/*" - }, - { - ua: "LGLS996" - } - ], - dpi: [ - 403.4, - 401.5 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "Micromax/*/4560MMX/*" - }, - { - ua: "4560MMX" - } - ], - dpi: [ - 240, - 219.4 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "Micromax/*/A250/*" - }, - { - ua: "Micromax A250" - } - ], - dpi: [ - 480, - 446.4 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "Micromax/*/Micromax AQ4501/*" - }, - { - ua: "Micromax AQ4501" - } - ], - dpi: 240, - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "motorola/*/G5/*" - }, - { - ua: "Moto G (5) Plus" - } - ], - dpi: [ - 403.4, - 403 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "motorola/*/DROID RAZR/*" - }, - { - ua: "DROID RAZR" - } - ], - dpi: [ - 368.1, - 256.7 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "motorola/*/XT830C/*" - }, - { - ua: "XT830C" - } - ], - dpi: [ - 254, - 255.9 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "motorola/*/XT1021/*" - }, - { - ua: "XT1021" - } - ], - dpi: [ - 254, - 256.7 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "motorola/*/XT1023/*" - }, - { - ua: "XT1023" - } - ], - dpi: [ - 254, - 256.7 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "motorola/*/XT1028/*" - }, - { - ua: "XT1028" - } - ], - dpi: [ - 326.6, - 327.6 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "motorola/*/XT1034/*" - }, - { - ua: "XT1034" - } - ], - dpi: [ - 326.6, - 328.4 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "motorola/*/XT1053/*" - }, - { - ua: "XT1053" - } - ], - dpi: [ - 315.3, - 316.1 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "motorola/*/XT1562/*" - }, - { - ua: "XT1562" - } - ], - dpi: [ - 403.4, - 402.7 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "motorola/*/Nexus 6/*" - }, - { - ua: "Nexus 6 B" - } - ], - dpi: [ - 494.3, - 489.7 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "motorola/*/XT1063/*" - }, - { - ua: "XT1063" - } - ], - dpi: [ - 295, - 296.6 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "motorola/*/XT1064/*" - }, - { - ua: "XT1064" - } - ], - dpi: [ - 295, - 295.6 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "motorola/*/XT1092/*" - }, - { - ua: "XT1092" - } - ], - dpi: [ - 422, - 424.1 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "motorola/*/XT1095/*" - }, - { - ua: "XT1095" - } - ], - dpi: [ - 422, - 423.4 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "motorola/*/G4/*" - }, - { - ua: "Moto G (4)" - } - ], - dpi: 401, - bw: 4, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "OnePlus/*/A0001/*" - }, - { - ua: "A0001" - } - ], - dpi: [ - 403.4, - 401 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "OnePlus/*/ONE E1005/*" - }, - { - ua: "ONE E1005" - } - ], - dpi: [ - 442.4, - 441.4 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "OnePlus/*/ONE A2005/*" - }, - { - ua: "ONE A2005" - } - ], - dpi: [ - 391.9, - 405.4 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "OnePlus/*/ONEPLUS A5000/*" - }, - { - ua: "ONEPLUS A5000 " - } - ], - dpi: [ - 403.411, - 399.737 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "OnePlus/*/ONE A5010/*" - }, - { - ua: "ONEPLUS A5010" - } - ], - dpi: [ - 403, - 400 - ], - bw: 2, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "OPPO/*/X909/*" - }, - { - ua: "X909" - } - ], - dpi: [ - 442.4, - 444.1 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/GT-I9082/*" - }, - { - ua: "GT-I9082" - } - ], - dpi: [ - 184.7, - 185.4 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-G360P/*" - }, - { - ua: "SM-G360P" - } - ], - dpi: [ - 196.7, - 205.4 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/Nexus S/*" - }, - { - ua: "Nexus S" - } - ], - dpi: [ - 234.5, - 229.8 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/GT-I9300/*" - }, - { - ua: "GT-I9300" - } - ], - dpi: [ - 304.8, - 303.9 - ], - bw: 5, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-T230NU/*" - }, - { - ua: "SM-T230NU" - } - ], - dpi: 216, - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SGH-T399/*" - }, - { - ua: "SGH-T399" - } - ], - dpi: [ - 217.7, - 231.4 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SGH-M919/*" - }, - { - ua: "SGH-M919" - } - ], - dpi: [ - 440.8, - 437.7 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-N9005/*" - }, - { - ua: "SM-N9005" - } - ], - dpi: [ - 386.4, - 387 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SAMSUNG-SM-N900A/*" - }, - { - ua: "SAMSUNG-SM-N900A" - } - ], - dpi: [ - 386.4, - 387.7 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/GT-I9500/*" - }, - { - ua: "GT-I9500" - } - ], - dpi: [ - 442.5, - 443.3 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/GT-I9505/*" - }, - { - ua: "GT-I9505" - } - ], - dpi: 439.4, - bw: 4, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-G900F/*" - }, - { - ua: "SM-G900F" - } - ], - dpi: [ - 415.6, - 431.6 - ], - bw: 5, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-G900M/*" - }, - { - ua: "SM-G900M" - } - ], - dpi: [ - 415.6, - 431.6 - ], - bw: 5, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-G800F/*" - }, - { - ua: "SM-G800F" - } - ], - dpi: 326.8, - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-G906S/*" - }, - { - ua: "SM-G906S" - } - ], - dpi: [ - 562.7, - 572.4 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/GT-I9300/*" - }, - { - ua: "GT-I9300" - } - ], - dpi: [ - 306.7, - 304.8 - ], - bw: 5, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-T535/*" - }, - { - ua: "SM-T535" - } - ], - dpi: [ - 142.6, - 136.4 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-N920C/*" - }, - { - ua: "SM-N920C" - } - ], - dpi: [ - 515.1, - 518.4 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-N920P/*" - }, - { - ua: "SM-N920P" - } - ], - dpi: [ - 386.3655, - 390.144 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-N920W8/*" - }, - { - ua: "SM-N920W8" - } - ], - dpi: [ - 515.1, - 518.4 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/GT-I9300I/*" - }, - { - ua: "GT-I9300I" - } - ], - dpi: [ - 304.8, - 305.8 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/GT-I9195/*" - }, - { - ua: "GT-I9195" - } - ], - dpi: [ - 249.4, - 256.7 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SPH-L520/*" - }, - { - ua: "SPH-L520" - } - ], - dpi: [ - 249.4, - 255.9 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SAMSUNG-SGH-I717/*" - }, - { - ua: "SAMSUNG-SGH-I717" - } - ], - dpi: 285.8, - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SPH-D710/*" - }, - { - ua: "SPH-D710" - } - ], - dpi: [ - 217.7, - 204.2 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/GT-N7100/*" - }, - { - ua: "GT-N7100" - } - ], - dpi: 265.1, - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SCH-I605/*" - }, - { - ua: "SCH-I605" - } - ], - dpi: 265.1, - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/Galaxy Nexus/*" - }, - { - ua: "Galaxy Nexus" - } - ], - dpi: [ - 315.3, - 314.2 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-N910H/*" - }, - { - ua: "SM-N910H" - } - ], - dpi: [ - 515.1, - 518 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-N910C/*" - }, - { - ua: "SM-N910C" - } - ], - dpi: [ - 515.2, - 520.2 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-G130M/*" - }, - { - ua: "SM-G130M" - } - ], - dpi: [ - 165.9, - 164.8 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-G928I/*" - }, - { - ua: "SM-G928I" - } - ], - dpi: [ - 515.1, - 518.4 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-G920F/*" - }, - { - ua: "SM-G920F" - } - ], - dpi: 580.6, - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-G920P/*" - }, - { - ua: "SM-G920P" - } - ], - dpi: [ - 522.5, - 577 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-G925F/*" - }, - { - ua: "SM-G925F" - } - ], - dpi: 580.6, - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-G925V/*" - }, - { - ua: "SM-G925V" - } - ], - dpi: [ - 522.5, - 576.6 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-G930F/*" - }, - { - ua: "SM-G930F" - } - ], - dpi: 576.6, - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-G935F/*" - }, - { - ua: "SM-G935F" - } - ], - dpi: 533, - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-G950F/*" - }, - { - ua: "SM-G950F" - } - ], - dpi: [ - 562.707, - 565.293 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "samsung/*/SM-G955U/*" - }, - { - ua: "SM-G955U" - } - ], - dpi: [ - 522.514, - 525.762 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "Sony/*/C6903/*" - }, - { - ua: "C6903" - } - ], - dpi: [ - 442.5, - 443.3 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "Sony/*/D6653/*" - }, - { - ua: "D6653" - } - ], - dpi: [ - 428.6, - 427.6 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "Sony/*/E6653/*" - }, - { - ua: "E6653" - } - ], - dpi: [ - 428.6, - 425.7 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "Sony/*/E6853/*" - }, - { - ua: "E6853" - } - ], - dpi: [ - 403.4, - 401.9 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "Sony/*/SGP321/*" - }, - { - ua: "SGP321" - } - ], - dpi: [ - 224.7, - 224.1 - ], - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "TCT/*/ALCATEL ONE TOUCH Fierce/*" - }, - { - ua: "ALCATEL ONE TOUCH Fierce" - } - ], - dpi: [ - 240, - 247.5 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "THL/*/thl 5000/*" - }, - { - ua: "thl 5000" - } - ], - dpi: [ - 480, - 443.3 - ], - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "Fly/*/IQ4412/*" - }, - { - ua: "IQ4412" - } - ], - dpi: 307.9, - bw: 3, - ac: 1000 - }, - { - type: "android", - rules: [ - { - mdmh: "ZTE/*/ZTE Blade L2/*" - }, - { - ua: "ZTE Blade L2" - } - ], - dpi: 240, - bw: 3, - ac: 500 - }, - { - type: "android", - rules: [ - { - mdmh: "BENEVE/*/VR518/*" - }, - { - ua: "VR518" - } - ], - dpi: 480, - bw: 3, - ac: 500 - }, - { - type: "ios", - rules: [ - { - res: [ - 640, - 960 - ] - } - ], - dpi: [ - 325.1, - 328.4 - ], - bw: 4, - ac: 1000 - }, - { - type: "ios", - rules: [ - { - res: [ - 640, - 1136 - ] - } - ], - dpi: [ - 317.1, - 320.2 - ], - bw: 3, - ac: 1000 - }, - { - type: "ios", - rules: [ - { - res: [ - 750, - 1334 - ] - } - ], - dpi: 326.4, - bw: 4, - ac: 1000 - }, - { - type: "ios", - rules: [ - { - res: [ - 1242, - 2208 - ] - } - ], - dpi: [ - 453.6, - 458.4 - ], - bw: 4, - ac: 1000 - }, - { - type: "ios", - rules: [ - { - res: [ - 1125, - 2001 - ] - } - ], - dpi: [ - 410.9, - 415.4 - ], - bw: 4, - ac: 1000 - }, - { - type: "ios", - rules: [ - { - res: [ - 1125, - 2436 - ] - } - ], - dpi: 458, - bw: 4, - ac: 1000 - } -]; -var dpdb = { - format: format, - last_updated: last_updated, - devices: devices -}; - -export { dpdb as d }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/System/MobileVR/headsets.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/System/MobileVR/headsets.js deleted file mode 100644 index c9a50c0a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/System/MobileVR/headsets.js +++ /dev/null @@ -1,23 +0,0 @@ -var headsets = [{ - label: 'Choose a headset' -}, { - id: 'CardboardV1', - label: 'Cardboard I/O 2014', - fov: 40, - interLensDistance: 0.06, - baselineLensDistance: 0.035, - screenLensDistance: 0.042, - distortionCoefficients: [0.441, 0.156], - inverseCoefficients: [-0.4410035, 0.42756155, -0.4804439, 0.5460139, -0.58821183, 0.5733938, -0.48303202, 0.33299083, -0.17573841, 0.0651772, -0.01488963, 0.001559834] -}, { - id: 'CardboardV2', - label: 'Cardboard I/O 2015', - fov: 60, - interLensDistance: 0.064, - baselineLensDistance: 0.035, - screenLensDistance: 0.039, - distortionCoefficients: [0.34, 0.55], - inverseCoefficients: [-0.33836704, -0.18162185, 0.862655, -1.2462051, 1.0560602, -0.58208317, 0.21609078, -0.05444823, 0.009177956, -9.904169e-4, 6.183535e-5, -1.6981803e-6] -}]; - -export { headsets as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/System/TimerLog.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/System/TimerLog.js deleted file mode 100644 index 6973386b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/System/TimerLog.js +++ /dev/null @@ -1,8 +0,0 @@ -function getUniversalTime() { - return +new Date(); -} -var vtkTimerLog = { - getUniversalTime -}; - -export { vtkTimerLog as default, getUniversalTime }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Transform.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Transform.js deleted file mode 100644 index 23706456..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Transform.js +++ /dev/null @@ -1,9 +0,0 @@ -import vtkLandmarkTransform from './Transform/LandmarkTransform.js'; -import vtkTransform from './Transform/Transform.js'; - -var Transform = { - vtkLandmarkTransform, - vtkTransform -}; - -export { Transform as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Transform/LandmarkTransform.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Transform/LandmarkTransform.d.ts deleted file mode 100644 index 9eb9f353..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Transform/LandmarkTransform.d.ts +++ /dev/null @@ -1,109 +0,0 @@ -import { mat4 } from 'gl-matrix'; -import { vtkObject } from './../../interfaces'; -import vtkPoints from './../Core/Points'; - -export enum Mode { - RIGID_BODY, - SIMILARITY, - AFFINE, -} - -export interface ILandmarkTransformInitialValues { - mode?: Mode; -} - -export interface vtkLandmarkTransform extends vtkObject { - /** - * Mat4 matrix, result of the landmark transform. - * If vtkLandmarkTransformed failed, default is identity. - */ - getMatrix(): mat4; - - /** - * Get the number of degrees of freedom to constrain the solution to. - */ - getMode(): Mode; - - /** - * Get list of 3D points which defines the source points. - */ - getSourceLandmark(): vtkPoints; - - /** - * Get list of 3D points which defines the target points. - */ - getTargetLandmark(): vtkPoints; - - /** - * Set the number of degrees of freedom to constrain the solution to: - * - * - `Mode.RIGID_BODY` : Rotation and translation onlu - * - `Mode.SIMILARITY` : rotation, translation and isotropic scaling - * - `Mode.AFFINE` : collinearity is preserved. Ratios of distances along a line are preserved. - * - * @param {Mode} mode The value of mode. - * @default SIMILARITY - */ - setMode(mode: Mode): boolean; - - /** - * Set list of 3D points which defines the source points. - * @param {vtkPoints} sourceLandmark - */ - setSourceLandmark(sourceLandmark: vtkPoints): boolean; - - /** - * Set list of 3D points which defines the target points. - * @param {vtkPoints} targetLandmark - */ - setTargetLandmark(targetLandmark: vtkPoints): boolean; - - /** - * Launch the computation of the matrix according to target and source - * points. - */ - update(): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkLandmarkTransform characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ILandmarkTransformInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ILandmarkTransformInitialValues -): void; - -/** - * Method used to create a new instance of vtkLandmarkTransform. - * @param {ILandmarkTransformInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ILandmarkTransformInitialValues -): vtkLandmarkTransform; - -/** - * vtkLandmarkTransform is a cell which representant a triangle. It contains static - * method to make some computations directly link to triangle. - * - * @example - * '''js - * import vtkLandmarkTransform from '@kitware/vtk.js/Common/Transform/LandmarkTransform'; - * - * const transform = LandmarkTransform.New(); - * transform.setMode(Mode.RIGID_BODY); - * transform.setSourceLandmark(...); // vtkPoints - * transform.setTargetLandmark(...); // vtkPoints - * transform.update(); - * const transformMatrix = transform.getMatrix(); - * ''' - */ -export declare const vtkLandmarkTransform: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkLandmarkTransform; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Transform/LandmarkTransform.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Transform/LandmarkTransform.js deleted file mode 100644 index 33977f77..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Transform/LandmarkTransform.js +++ /dev/null @@ -1,294 +0,0 @@ -import { mat4, mat3 } from 'gl-matrix'; -import Constants from './LandmarkTransform/Constants.js'; -import { m as macro } from '../../macros2.js'; -import { q as jacobiN, t as perpendiculars } from '../Core/Math/index.js'; - -const { - Mode -} = Constants; - -// ---------------------------------------------------------------------------- -// vtkLandmarkTransform methods -// ---------------------------------------------------------------------------- - -function vtkLandmarkTransform(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkLandmarkTransform'); - function update() { - mat4.identity(model.matrix); - const N_PTS = model.sourceLandmark.getNumberOfPoints(); - if (model.targetLandmark.getNumberOfPoints() !== N_PTS || model.sourceLandmark === null || model.targetLandmark === null || N_PTS === 0) { - console.error('Error : Bad inputs of vtkLandmarkTransform'); - return model.matrix; - } - - // -- find the centroid of each set -- - - const sourceCentroid = [0, 0, 0]; - const targetCentroid = [0, 0, 0]; - const p = [0, 0, 0]; - for (let i = 0; i < N_PTS; i++) { - model.sourceLandmark.getPoint(i, p); - sourceCentroid[0] += p[0]; - sourceCentroid[1] += p[1]; - sourceCentroid[2] += p[2]; - model.targetLandmark.getPoint(i, p); - targetCentroid[0] += p[0]; - targetCentroid[1] += p[1]; - targetCentroid[2] += p[2]; - } - sourceCentroid[0] /= N_PTS; - sourceCentroid[1] /= N_PTS; - sourceCentroid[2] /= N_PTS; - targetCentroid[0] /= N_PTS; - targetCentroid[1] /= N_PTS; - targetCentroid[2] /= N_PTS; - - // -- if only one point, stop right here - - if (N_PTS === 1) { - mat4.identity(model.matrix); - model.matrix[12] = targetCentroid[0] - sourceCentroid[0]; - model.matrix[13] = targetCentroid[1] - sourceCentroid[1]; - model.matrix[14] = targetCentroid[2] - sourceCentroid[2]; - return model.matrix; - } - - // -- build the 3x3 matrix M -- - - const M = new Float64Array(9); - const AAT = new Float64Array(9); - const a = [0, 0, 0]; - const b = [0, 0, 0]; - let sa = 0.0; - let sb = 0.0; - for (let pt = 0; pt < N_PTS; pt++) { - // get the origin-centred point (a) in the source set - model.sourceLandmark.getPoint(pt, a); - a[0] -= sourceCentroid[0]; - a[1] -= sourceCentroid[1]; - a[2] -= sourceCentroid[2]; - - // get the origin-centred point (b) in the target set - model.targetLandmark.getPoint(pt, b); - b[0] -= targetCentroid[0]; - b[1] -= targetCentroid[1]; - b[2] -= targetCentroid[2]; - - // accumulate the products a*T(b) into the matrix M - for (let i = 0; i < 3; i++) { - M[3 * 0 + i] += a[i] * b[0]; - M[3 * 1 + i] += a[i] * b[1]; - M[3 * 2 + i] += a[i] * b[2]; - - // for the affine transform, compute ((a.a^t)^-1 . a.b^t)^t. - // a.b^t is already in M. here we put a.a^t in AAT. - if (model.mode === Mode.AFFINE) { - AAT[3 * 0 + i] += a[i] * a[0]; - AAT[3 * 1 + i] += a[i] * a[1]; - AAT[3 * 2 + i] += a[i] * a[2]; - } - } - // accumulate scale factors (if desired) - sa += a[0] * a[0] + a[1] * a[1] + a[2] * a[2]; - sb += b[0] * b[0] + b[1] * b[1] + b[2] * b[2]; - } - if (model.mode === Mode.AFFINE) { - // AAT = (a.a^t)^-1 - mat3.invert(AAT, AAT); - - // M = (a.a^t)^-1 . a.b^t - mat3.multiply(M, AAT, M); - - // this->Matrix = M^t - for (let i = 0; i < 3; ++i) { - for (let j = 0; j < 3; ++j) { - model.matrix[4 * j + i] = M[4 * i + j]; - } - } - } else { - const scale = Math.sqrt(sb / sa); - - // -- build the 4x4 matrix N -- - - const N = new Float64Array(16); - // on-diagonal elements - N[0] = M[0] + M[4] + M[8]; - N[5] = M[0] - M[4] - M[8]; - N[10] = -M[0] + M[4] - M[8]; - N[15] = -M[0] - M[4] + M[8]; - // off-diagonal elements - /* eslint-disable no-multi-assign */ - N[4] = N[1] = M[7] - M[5]; - N[8] = N[2] = M[2] - M[6]; - N[12] = N[3] = M[3] - M[1]; - N[9] = N[6] = M[3] + M[1]; - N[13] = N[7] = M[2] + M[6]; - N[14] = N[11] = M[7] + M[5]; - /* eslint-enable no-multi-assign */ - - // -- eigen-decompose N (is symmetric) -- - // prettier-ignore - const eigenVectors = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]; - const eigenValues = [0.0, 0.0, 0.0, 0.0]; - jacobiN(N, 4, eigenValues, eigenVectors); - - // The eigenvector with the largest eigenvalue is the quaternion we want - // (they are sorted in decreasing order for us by JacobiN) - let w; - let x; - let y; - let z; - - // first; if points are collinear, choose the quaternion that - // results in the smallest rotation - if (eigenValues[0] === eigenValues[1] || N_PTS === 2) { - const s0 = [0, 0, 0]; - const t0 = [0, 0, 0]; - const s1 = [0, 0, 0]; - const t1 = [0, 0, 0]; - model.sourceLandmark.getPoint(0, s0); - model.targetLandmark.getPoint(0, t0); - model.sourceLandmark.getPoint(1, s1); - model.targetLandmark.getPoint(1, t1); - const ds = [0, 0, 0]; - const dt = [0, 0, 0]; - let rs = 0; - let rt = 0; - for (let i = 0; i < 3; i++) { - ds[i] = s1[i] - s0[i]; // vector between points - rs = ds[i] * ds[i] + rs; - dt[i] = t1[i] - t0[i]; - rt = dt[i] * dt[i] + rt; - } - - // normalize the two vectors - rs = Math.sqrt(rs); - ds[0] /= rs; - ds[1] /= rs; - ds[2] /= rs; - rt = Math.sqrt(rt); - dt[0] /= rt; - dt[1] /= rt; - dt[2] /= rt; - - // take dot & cross product - w = ds[0] * dt[0] + ds[1] * dt[1] + ds[2] * dt[2]; - x = ds[1] * dt[2] - ds[2] * dt[1]; - y = ds[2] * dt[0] - ds[0] * dt[2]; - z = ds[0] * dt[1] - ds[1] * dt[0]; - let r = Math.sqrt(x * x + y * y + z * z); - const theta = Math.atan2(r, w); - - // construct quaternion - w = Math.cos(theta / 2); - if (r !== 0) { - r = Math.sin(theta / 2) / r; - x *= r; - y *= r; - z *= r; - } else { - // rotation by 180 degrees : special case - // Rotate around a vector perpendicular to ds - perpendiculars(ds, dt, 0, 0); - r = Math.sin(theta / 2); - x = dt[0] * r; - y = dt[1] * r; - z = dt[2] * r; - } - } else { - // points are not collinear - w = eigenVectors[0]; - x = eigenVectors[4]; - y = eigenVectors[8]; - z = eigenVectors[12]; - } - - // convert quaternion to a rotation matrix - - const ww = w * w; - const wx = w * x; - const wy = w * y; - const wz = w * z; - const xx = x * x; - const yy = y * y; - const zz = z * z; - const xy = x * y; - const xz = x * z; - const yz = y * z; - model.matrix[0] = ww + xx - yy - zz; - model.matrix[1] = 2.0 * (wz + xy); - model.matrix[2] = 2.0 * (-wy + xz); - model.matrix[4] = 2.0 * (-wz + xy); - model.matrix[5] = ww - xx + yy - zz; - model.matrix[6] = 2.0 * (wx + yz); - model.matrix[8] = 2.0 * (wy + xz); - model.matrix[9] = 2.0 * (-wx + yz); - model.matrix[10] = ww - xx - yy + zz; - - // add in the scale factor (if desired) - if (model.mode !== Mode.RIGID_BODY) { - for (let i = 0; i < 3; i++) { - model.matrix[4 * 0 + i] = model.matrix[4 * 0 + i] * scale; - model.matrix[4 * 1 + i] = model.matrix[4 * 1 + i] * scale; - model.matrix[4 * 2 + i] = model.matrix[4 * 2 + i] * scale; - } - } - } - - // the translation is given by the difference in the transformed source - // centroid and the target centroid - const sx = model.matrix[0] * sourceCentroid[0] + model.matrix[4] * sourceCentroid[1] + model.matrix[8] * sourceCentroid[2]; - const sy = model.matrix[1] * sourceCentroid[0] + model.matrix[5] * sourceCentroid[1] + model.matrix[9] * sourceCentroid[2]; - const sz = model.matrix[2] * sourceCentroid[0] + model.matrix[6] * sourceCentroid[1] + model.matrix[10] * sourceCentroid[2]; - model.matrix[12] = targetCentroid[0] - sx; - model.matrix[13] = targetCentroid[1] - sy; - model.matrix[14] = targetCentroid[2] - sz; - - // fill the bottom row of the 4x4 matrix - model.matrix[3] = 0.0; - model.matrix[7] = 0.0; - model.matrix[11] = 0.0; - model.matrix[15] = 1.0; - return model.matrix; - } - - // Expose method - publicAPI.update = update; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - mode: Mode.SIMILARITY -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - - // Internal objects initialization - model.matrix = mat4.identity(new Float64Array(16)); - macro.setGet(publicAPI, model, ['sourceLandmark', 'targetLandmark', 'mode']); - macro.get(publicAPI, model, ['matrix']); - vtkLandmarkTransform(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkLandmarkTransform'); - -// ---------------------------------------------------------------------------- - -var vtkLandmarkTransform$1 = { - newInstance, - extend, - ...Constants -}; - -export { vtkLandmarkTransform$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Transform/LandmarkTransform/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Transform/LandmarkTransform/Constants.js deleted file mode 100644 index 37c6a4b3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Transform/LandmarkTransform/Constants.js +++ /dev/null @@ -1,10 +0,0 @@ -const Mode = { - RIGID_BODY: 0, - SIMILARITY: 1, - AFFINE: 2 -}; -var Constants = { - Mode -}; - -export { Mode, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Transform/Transform.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Transform/Transform.d.ts deleted file mode 100644 index 98b29ee8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Transform/Transform.d.ts +++ /dev/null @@ -1,311 +0,0 @@ -import { mat3, mat4, vec3 } from 'gl-matrix'; -import { vtkObject } from './../../interfaces'; -import { TypedArray } from './../../types'; -import vtkDataArray from './../Core/DataArray'; -import vtkPoints from './../Core/Points'; - -export interface ITransformInitialValues { - preMultiplyFlag?: boolean; - matrix?: number[]; -} - -type TSlicableArray = number[] | TypedArray; - -export interface vtkTransform extends vtkObject { - /** - * Mat4 matrix, used by vtkTransform to transform points, vertices, matrices... - * Default is identity. - */ - getMatrix(): mat4; - - /** - * @see getMatrix - * @param {mat4} matrix - */ - setMatrix(matrix: mat4): boolean; - - /** - * @see getMatrix - * Matrix is stored using gl-matrix conventions: column major - * @param e00 - * @param e01 - * @param e02 - * @param e03 - * @param e10 - * @param e11 - * @param e12 - * @param e13 - * @param e20 - * @param e21 - * @param e22 - * @param e23 - * @param e30 - * @param e31 - * @param e32 - * @param e33 - */ - setMatrix( - e00: number, - e01: number, - e02: number, - e03: number, - e10: number, - e11: number, - e12: number, - e13: number, - e20: number, - e21: number, - e22: number, - e23: number, - e30: number, - e31: number, - e32: number, - e33: number - ): boolean; - - /** - * The value of preMultiplyFlag indicates how matrix multiplications should occur. - * - * When in premultiply mode: - * All subsequent operations will occur before those already represented in the current transformation. - * In homogeneous matrix notation, M = M*A where M is the current transformation matrix and A is the applied matrix. - * - * When in postmultiply mode: - * All subsequent operations will occur after those already represented in the current transformation. - * In homogeneous matrix notation, M = A*M where M is the current transformation matrix and A is the applied matrix. - * - * This flag is also used in @see transformMatrix and @see transformMatrices to indicate how transform is applied to matrices: - * Premultiply: O_i = M * A_i - * Postmultiply: O_i = A_i * M - * where M is the current transformation matrix, A_i are the matrices in argument, O_i are the output matrices. - * - * The default is PreMultiply. - */ - getPreMultiplyFlag(): boolean; - - /** - * @see getPreMultiplyFlag - * @param preMultiplyFlag - */ - setPreMultiplyFlag(preMultiplyFlag: boolean): boolean; - - /** - * Set preMultiplyFlag to true - * @see getPreMultiplyFlag - */ - preMultiply(): void; - - /** - * Set preMultiplyFlag to false - * @see getPreMultiplyFlag - */ - postMultiply(): void; - - /** - * Transform a single point using the internal transform matrix - * The resulting point is: Pout = M * Pin where M is the internal matrix, Pin and Pout the in and out points - * @param point The point to transform, is not modified (except if point === out) - * @param out The receiving output point, is modified, can be the same as point - * @returns The out parameter - */ - transformPoint(point: vec3, out: vec3): vec3; - - /** - * Transform multiple points using the internal transform matrix - * See @see transformPoint for more info - * Modify the out array only - * @param points An array (typed or not) containing n*3 elements or of shape (n, 3) - * @param out An array (typed or not) containing n*3 elements or of shape (n, 3) - */ - transformPoints(points: TSlicableArray, out: TSlicableArray): TSlicableArray; - - /** - * Transform a single matrix using the internal transform matrix - * The resulting matrix is: - * Mout = M * Min when in premultiply mode - * Mout = Min * M when in postmultiply mode - * @param matrix The matrix to transform, is not modified (except if matrix === out) - * @param out The receiving output matrix, is modified, can be the same as matrix - * @returns The out parameter - */ - transformMatrix(matrix: mat4, out: mat4): mat4; - - /** - * Transform multiple matrices using the internal transform matrix - * See @see transformMatrix for more info - * Modify the out array only - * @param matrices An array (typed or not) containing n*16 elements or of shape (n, 16) - * @param out An array (typed or not) containing n*16 elements or of shape (n, 16) - */ - transformMatrices( - matrices: TSlicableArray, - out: TSlicableArray - ): TSlicableArray; - - /** - * @returns A new transform with an inversed internal matrix. Also copy the premultiply flag @see getPreMultiplyFlag. - */ - getInverse(): vtkTransform; - - /** - * Create a translation matrix and concatenate it with the current - * transformation according to preMultiply or postMultiply semantics. - * @param {Number} x X component of the translation - * @param {Number} y Y component of the translation - * @param {Number} z Z component of the translation - */ - translate(x: number, y: number, z: number): void; - - /** - * Create a rotation matrix and concatenate it with the current transformation - * according to preMultiply or postMultiply semantics. - * The angle is expressed in degrees. - * @param {Number} angle Angle in degrees - * @param {Number} x X component of the rotation axis - * @param {Number} y Y component of the rotation axis - * @param {Number} z Z component of the rotation axis - */ - rotateWXYZ(angle: number, x: number, y: number, z: number): void; - - /** - * Create a rotation matrix and concatenate it with the current transformation - * according to preMultiply or postMultiply semantics. - * The angle is expressed in degrees. - * @param {Number} angle Angle in degrees - */ - rotateX(angle: number): void; - - /** - * Create a rotation matrix about the X, Y, or Z axis and concatenate it with - * the current transformation according to preMultiply or postMultiply - * semantics. - * @param {Number} angle Angle in degrees - */ - rotateY(angle: number): void; - - /** - * Create a rotation matrix about the X, Y, or Z axis and concatenate it with - * the current transformation according to preMultiply or postMultiply - * semantics. - * @param {Number} angle Angle in degrees - */ - rotateZ(angle: number): void; - - /** - * Create a scale matrix (i.e. set the diagonal elements to x, y, z) and - * concatenate it with the current transformation according to preMultiply or - * postMultiply semantics. - * @param {Number} x Diagonal element for X axis - * @param {Number} y Diagonal element for Y axis - * @param {Number} z Diagonal element for Z axis - */ - scale(x: number, y: number, z: number): void; - - /** - * Apply the transformation to a normal. - * @param {vec3} inNormal The normal vector to transform - * @param {vec3} outNormal The output vector - * @returns {vec3} The transformed normal vector - */ - transformNormal(inNormal: vec3, outNormal?: vec3): vec3; - - /** - * Apply the transformation to a series of normals, and append the results to - * outNormals. - * @param {vtkDataArray} inNormals The normal vectors to transform - * @param {vtkDataArray} outNormals The output array - */ - transformNormals(inNormals: vtkDataArray, outNormals: vtkDataArray): void; - - /** - * Transform points, normals, and vectors simultaneously. - * @param {vtkPoints} inPoints Input points - * @param {vtkPoints} outPoints Output points - * @param {vtkDataArray} inNormals Input normals - * @param {vtkDataArray} outNormals Output normals - * @param {vtkDataArray} inVectors Input vectors - * @param {vtkDataArray} outVectors Output vectors - * @param {Array} inVectorsArr Optional input vectors arrays - * @param {Array} outVectorsArr Optional output vectors arrays - */ - transformPointsNormalsVectors( - inPoints: vtkPoints, - outPoints: vtkPoints, - inNormals: vtkDataArray, - outNormals: vtkDataArray, - inVectors: vtkDataArray, - outVectors: vtkDataArray, - inVectorsArr?: Array, - outVectorsArr?: Array - ): void; - - /** - * Apply the transformation to a vector. - * @param {vec3} inVector The vector to transform - * @param {vec3} outVector The output vector - * @param {mat3} [matrix=null] if null (default), the Transform matrix is being used. - * @returns {vec3} The transformed vector - */ - transformVector(inVector: vec3, outVector?: vec3, matrix?: mat3): vec3; - - /** - * Apply the transformation to a series of vectors, and append the results to - * outVectors. - * @param {vtkDataArray} inVectors The vectors to transform - * @param {vtkDataArray} outVectors The output array - */ - transformVectors(inVectors: vtkDataArray, outVectors: vtkDataArray): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkTransform characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ITransformInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ITransformInitialValues -): void; - -/** - * Method used to create a new instance of vtkTransform. - * @param {ITransformInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ITransformInitialValues -): vtkTransform; - -/** - * vtkTransform describes linear transformations via a 4x4 matrix. - * - * A vtkTransform can be used to describe the full range of linear (also known as affine) coordinate transformations in three dimensions, which are internally represented as a 4x4 homogeneous transformation matrix. When you create a new vtkTransform, it is always initialized to the identity transformation. - * - * Most of the methods for manipulating this transformation (e.g. transformMatrices, transformMatrix) (TODO: Translate, Rotate, Concatenate...) can operate in either PreMultiply (the default) or PostMultiply mode. In PreMultiply mode, the translation, concatenation, etc. will occur before any transformations which are represented by the current matrix. In PostMultiply mode, the additional transformation will occur after any transformations represented by the current matrix. - * - * This class performs all of its operations in a right handed coordinate system with right handed rotations. Some other graphics libraries use left handed coordinate systems and rotations. - * **Note**: vtkTransform uses column-major format. - * - * @example - * ```js - * import vtkTransform from '@kitware/vtk.js/Common/Transform/Transform'; - * import vtkMatrixBuilder from '@kitware/vtk.js/Common/Core/MatrixBuilder'; - * - * const transform = vtkTransform.newInstance(); - * const matrix = vtkMatrixBuilder - * .buildFromDegree() - * .rotateZ(45) - * .getMatrix(); - * transform.setMatrix(matrix); - * const pointsIn = [[1, 2, 3], [4, 5, 6]]; - * const pointsOut = new Float32Array(6); - * transform.transformPoints(pointsIn, pointsOut); - * ``` - */ -export declare const vtkTransform: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkTransform; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Transform/Transform.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Transform/Transform.js deleted file mode 100644 index 737ac2ec..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/Transform/Transform.js +++ /dev/null @@ -1,413 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { b as vtkMath } from '../Core/Math/index.js'; -import { IDENTITY } from '../Core/Math/Constants.js'; -import { vec3, mat4, quat, mat3 } from 'gl-matrix'; - -const { - vtkWarningMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkTransform methods -// ---------------------------------------------------------------------------- -// eslint-disable-next-line import/no-mutable-exports -let newInstance; -function vtkTransform(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkAbstractTransform', 'vtkHomogeneousTransform', 'vtkTransform'); - publicAPI.transformPoint = (point, out) => { - vec3.transformMat4(out, point, model.matrix); - return out; - }; - publicAPI.transformPoints = (points, out) => { - const inPoint = new Float64Array(3); - const outPoint = new Float64Array(3); - for (let i = 0; i < points.length; i += 3) { - inPoint[0] = points[i]; - inPoint[1] = points[i + 1]; - inPoint[2] = points[i + 2]; - vec3.transformMat4(outPoint, inPoint, model.matrix); - out[i] = outPoint[0]; - out[i + 1] = outPoint[1]; - out[i + 2] = outPoint[2]; - } - return out; - }; - - /** - * Sets the internal state of the transform to PreMultiply. - * All subsequent operations will occur before those already represented in the current transformation. - * In homogeneous matrix notation, M = M*A where M is the current transformation matrix and A is the applied matrix. - * The default is PreMultiply. - */ - publicAPI.preMultiply = () => { - publicAPI.setPreMultiplyFlag(true); - }; - - /** - * Sets the internal state of the transform to PostMultiply. - * All subsequent operations will occur after those already represented in the current transformation. - * In homogeneous matrix notation, M = A*M where M is the current transformation matrix and A is the applied matrix. - * The default is PreMultiply. - */ - publicAPI.postMultiply = () => { - publicAPI.setPreMultiplyFlag(false); - }; - publicAPI.transformMatrix = (matrix, out) => { - if (model.preMultiplyFlag) { - mat4.multiply(out, model.matrix, matrix); - } else { - mat4.multiply(out, matrix, model.matrix); - } - return out; - }; - - // Apply the transform to each matrix in the same way as transformMatrix - // `matrices` can be a contiguous array of float or an array of array - publicAPI.transformMatrices = (matrices, out) => { - const inMat = new Float64Array(16); - const outMat = new Float64Array(16); - const transform = model.preMultiplyFlag ? () => mat4.multiply(outMat, model.matrix, inMat) : () => mat4.multiply(outMat, inMat, model.matrix); - for (let i = 0; i < matrices.length; i += 16) { - for (let j = 0; j < 16; ++j) { - inMat[j] = matrices[i + j]; - } - transform(); - for (let j = 0; j < 16; ++j) { - out[i + j] = outMat[j]; - } - } - return out; - }; - publicAPI.getInverse = () => newInstance({ - matrix: vtkMath.invertMatrix(Array.from(model.matrix), [], 4), - preMultiplyFlag: model.preMultiplyFlag - }); - - /** - * Create a translation matrix and concatenate it with the current - * transformation according to preMultiply or postMultiply semantics. - * @param {Number} x X component of the translation - * @param {Number} y Y component of the translation - * @param {Number} z Z component of the translation - */ - publicAPI.translate = (x, y, z) => { - if (x === 0 && y === 0 && z === 0) { - return; - } - const tMat = mat4.create(); - mat4.fromTranslation(tMat, [x, y, z]); - if (model.preMultiplyFlag) { - mat4.multiply(model.matrix, model.matrix, tMat); - } else { - mat4.multiply(model.matrix, tMat, model.matrix); - } - publicAPI.modified(); - }; - - /** - * Create a rotation matrix and concatenate it with the current transformation - * according to preMultiply or postMultiply semantics. - * The angle is expressed in degrees. - * @param {Number} angle Angle in degrees - * @param {Number} x X component of the rotation axis - * @param {Number} y Y component of the rotation axis - * @param {Number} z Z component of the rotation axis - */ - publicAPI.rotateWXYZ = (degrees, x, y, z) => { - if (x === 0.0 && y === 0.0 && z === 0.0) { - vtkWarningMacro('No rotation applied, axis is zero vector.'); - return; - } - if (degrees === 0.0) { - return; - } - - // convert to radians - const angle = vtkMath.radiansFromDegrees(degrees); - const q = quat.create(); - quat.setAxisAngle(q, [x, y, z], angle); - const quatMat = new Float64Array(16); - mat4.fromQuat(quatMat, q); - if (model.preMultiplyFlag) { - mat4.multiply(model.matrix, model.matrix, quatMat); - } else { - mat4.multiply(model.matrix, quatMat, model.matrix); - } - publicAPI.modified(); - }; - - /** - * Create a rotation matrix about the X, Y, or Z axis and concatenate it with - * the current transformation according to preMultiply or postMultiply - * semantics. - * The angle is expressed in degrees. - * @param {Number} angle Angle in degrees - */ - publicAPI.rotateX = angle => { - publicAPI.rotateWXYZ(angle, 1, 0, 0); - }; - - /** - * Create a rotation matrix about the X, Y, or Z axis and concatenate it with - * the current transformation according to preMultiply or postMultiply - * semantics. - * @param {Number} angle Angle in degrees - */ - publicAPI.rotateY = angle => { - publicAPI.rotateWXYZ(angle, 0, 1, 0); - }; - - /** - * Create a rotation matrix about the X, Y, or Z axis and concatenate it with - * the current transformation according to preMultiply or postMultiply - * semantics. - * @param {Number} angle Angle in degrees - */ - publicAPI.rotateZ = angle => { - publicAPI.rotateWXYZ(angle, 0, 0, 1); - }; - - /** - * Create a scale matrix (i.e. set the diagonal elements to x, y, z) and - * concatenate it with the current transformation according to preMultiply or - * postMultiply semantics. - * @param {Number} x Diagonal element for X axis - * @param {Number} y Diagonal element for Y axis - * @param {Number} z Diagonal element for Z axis - */ - publicAPI.scale = (x, y, z) => { - if (x === 1 && y === 1 && z === 1) { - return; - } - const sMat = mat4.create(); - mat4.fromScaling(sMat, [x, y, z]); - if (model.preMultiplyFlag) { - mat4.multiply(model.matrix, model.matrix, sMat); - } else { - mat4.multiply(model.matrix, sMat, model.matrix); - } - publicAPI.modified(); - }; - - /** - * Apply the transformation to a normal. - * @param {vec3} inNormal The normal vector to transform - * @param {vec3} outNormal The output vector - * @returns {vec3} The transformed normal vector - */ - publicAPI.transformNormal = function (inNormal) { - let outNormal = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - const matrix3x3 = mat3.fromMat4(mat3.create(), model.matrix); - // Invert the upper 3x3 part of the matrix - const invMat3 = mat3.create(); - mat3.invert(invMat3, matrix3x3); - // Transpose - const tMat3 = mat3.create(); - mat3.transpose(tMat3, invMat3); - // Multiply normal - publicAPI.transformVector(inNormal, outNormal, tMat3); - // Ensure the output normal is normalized - vtkMath.normalize(outNormal); - return outNormal; - }; - - /** - * Apply the transformation to a series of normals, and append the results to - * outNormals. - * @param {vtkDataArray} inNormals The normal vectors to transform - * @param {vtkDataArray} outNormals The output array - */ - publicAPI.transformNormals = (inNormals, outNormals) => { - const inArr = inNormals.getData(); - const outArr = outNormals.getData(); - const tmp = [0, 0, 0]; - const matrix3x3 = mat3.fromMat4(mat3.create(), model.matrix); - // Invert the upper 3x3 part of the matrix - const invMat3 = mat3.create(); - mat3.invert(invMat3, matrix3x3); - // Transpose - const tMat3 = mat3.create(); - mat3.transpose(tMat3, invMat3); - for (let i = 0; i < inArr.length; i += 3) { - tmp[0] = inArr[i]; - tmp[1] = inArr[i + 1]; - tmp[2] = inArr[i + 2]; - // matrix has been transposed & inverted, so use transformVector directly - // to apply the transformation - publicAPI.transformVector(tmp, tmp, tMat3); - vtkMath.normalize(tmp); - outArr[i] = tmp[0]; - outArr[i + 1] = tmp[1]; - outArr[i + 2] = tmp[2]; - } - }; - - /** - * Apply the transformation to a vector. - * @param {vec3} inVector The vector to transform - * @param {vec3} outVector The output vector - * @param {mat3} [matrix=null] if null (default), the Transform matrix is being used. - * @returns {vec3} The transformed vector - */ - publicAPI.transformVector = function (inVector) { - let outVector = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - let matrix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - const matrix3x3 = matrix || mat3.fromMat4(mat3.create(), model.matrix); - vec3.transformMat3(outVector, inVector, matrix3x3); - return outVector; - }; - - /** - * Apply the transformation to a series of vectors, and append the results to - * outVectors. - * @param {vtkDataArray} inVectors The vectors to transform - * @param {vtkDataArray} outVectors The output array - */ - publicAPI.transformVectors = (inVectors, outVectors) => { - const inArr = inVectors.getData(); - const outArr = outVectors.getData(); - const tmp = [0, 0, 0]; - for (let i = 0; i < inArr.length; i += 3) { - tmp[0] = inArr[i]; - tmp[1] = inArr[i + 1]; - tmp[2] = inArr[i + 2]; - publicAPI.transformVector(tmp, tmp); - vtkMath.normalize(tmp); - outArr[i] = tmp[0]; - outArr[i + 1] = tmp[1]; - outArr[i + 2] = tmp[2]; - } - }; - - /** - * Transform points, normals, and vectors simultaneously. - * @param {vtkPoints} inPoints Input points - * @param {vtkPoints} outPoints Output points - * @param {vtkDataArray} inNormals Input normals - * @param {vtkDataArray} outNormals Output normals - * @param {vtkDataArray} inVectors Input vectors - * @param {vtkDataArray} outVectors Output vectors - * @param {Array} inVectorsArr Optional input vector arrays - * @param {Array} outVectorsArr Optional output vector arrays - */ - publicAPI.transformPointsNormalsVectors = function (inPoints, outPoints, inNormals, outNormals, inVectors, outVectors) { - let inVectorsArr = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null; - let outVectorsArr = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : null; - const n = inPoints.getNumberOfPoints(); - const nOptionalVectors = inVectorsArr?.length ?? 0; - const point = new Float64Array(3); - const oldPoint = new Float64Array(3); - const oldVector = new Float64Array(3); - const oldNormal = new Float64Array(3); - let modifiedPoint = false; - let modifiedVector = false; - let modifiedNormal = false; - const modifiedVectorsArr = []; - for (let ptId = 0; ptId < n; ptId++) { - // Transform point - inPoints.getPoint(ptId, point); - oldPoint.set(point); - publicAPI.transformPoint(point, point); - outPoints.setPoint(ptId, ...point); - if (!vtkMath.areEquals(oldPoint, point)) { - modifiedPoint = true; - } - - // Transform vectors - if (inVectors) { - const inData = inVectors.getData(); - const outData = outVectors.getData(); - point[0] = inData[ptId * 3]; - point[1] = inData[ptId * 3 + 1]; - point[2] = inData[ptId * 3 + 2]; - oldVector.set(point); - publicAPI.transformVector(point, point); - outData[ptId * 3] = point[0]; - outData[ptId * 3 + 1] = point[1]; - outData[ptId * 3 + 2] = point[2]; - if (!vtkMath.areEquals(oldVector, point)) { - modifiedVector = true; - } - } - - // Transform normals - if (inNormals) { - const inData = inNormals.getData(); - const outData = outNormals.getData(); - point[0] = inData[ptId * 3]; - point[1] = inData[ptId * 3 + 1]; - point[2] = inData[ptId * 3 + 2]; - oldNormal.set(point); - publicAPI.transformNormal(point, point); - outData[ptId * 3] = point[0]; - outData[ptId * 3 + 1] = point[1]; - outData[ptId * 3 + 2] = point[2]; - if (!vtkMath.areEquals(oldNormal, point)) { - modifiedNormal = true; - } - } - - // Transform optional vectors - if (inVectorsArr) { - for (let iArr = 0; iArr < nOptionalVectors; iArr++) { - const inData = inVectorsArr[iArr].getData(); - const outData = outVectorsArr[iArr].getData(); - point[0] = inData[ptId * 3]; - point[1] = inData[ptId * 3 + 1]; - point[2] = inData[ptId * 3 + 2]; - oldVector.set(point); - publicAPI.transformVector(point, point); - outData[ptId * 3] = point[0]; - outData[ptId * 3 + 1] = point[1]; - outData[ptId * 3 + 2] = point[2]; - if (!vtkMath.arrayEqual(oldVector, point) && !modifiedVectorsArr.includes(iArr)) { - modifiedVectorsArr.push(iArr); - } - } - } - } - if (modifiedPoint) { - outPoints.modified(); - } - if (modifiedVector) { - outVectors.modified(); - } - if (modifiedNormal) { - outNormals.modified(); - } - modifiedVectorsArr.forEach(idx => outVectorsArr[idx].modified()); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - preMultiplyFlag: false, - matrix: [...IDENTITY] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['preMultiplyFlag']); - macro.setGetArray(publicAPI, model, ['matrix'], 16); - vtkTransform(publicAPI, model); -} - -// ---------------------------------------------------------------------------- -newInstance = macro.newInstance(extend, 'vtkTransform'); - -// ---------------------------------------------------------------------------- - -var vtkTransform$1 = { - newInstance, - extend -}; - -export { vtkTransform$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/index.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/index.js deleted file mode 100644 index 07638ce7..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Common/index.js +++ /dev/null @@ -1,13 +0,0 @@ -import Core from './Core.js'; -import DataModel from './DataModel.js'; -import Transform from './Transform.js'; -import System from './System.js'; - -var Common = { - Core, - DataModel, - Transform, - System -}; - -export { Common as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Copyright.txt b/build_vtk_bundle/node_modules/@kitware/vtk.js/Copyright.txt deleted file mode 100644 index f928fc1b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Copyright.txt +++ /dev/null @@ -1,34 +0,0 @@ -/*========================================================================= - - Program: Visualization Toolkit - JS - Module: Copyright.txt - -Copyright (c) 2016 Ken Martin, Will Schroeder, Bill Lorensen -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * Neither name of Ken Martin, Will Schroeder, or Bill Lorensen nor the names - of any contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -=========================================================================*/ diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core.js deleted file mode 100644 index fbccb280..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core.js +++ /dev/null @@ -1,13 +0,0 @@ -import vtkCleanPolyData from './Core/CleanPolyData.js'; -import vtkCutter from './Core/Cutter.js'; -import vtkPolyDataNormals from './Core/PolyDataNormals.js'; -import vtkThresholdPoints from './Core/ThresholdPoints.js'; - -var Core = { - vtkCleanPolyData, - vtkCutter, - vtkPolyDataNormals, - vtkThresholdPoints -}; - -export { Core as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core/CleanPolyData.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core/CleanPolyData.d.ts deleted file mode 100644 index 519b6a99..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core/CleanPolyData.d.ts +++ /dev/null @@ -1,208 +0,0 @@ -import { DesiredOutputPrecision } from './../../Common/DataModel/DataSetAttributes'; -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { Bounds, Vector3 } from './../../types'; - -/** - * Initial values for vtkCleanPolyData. - */ -export interface ICleanPolyDataInitialValues { - /** - * The tolerance used for point merging. - */ - tolerance?: number; - - /** - * Whether the tolerance is absolute or relative. - */ - toleranceIsAbsolute?: boolean; - - /** - * The absolute tolerance value. - */ - absoluteTolerance?: number; - - /** - * The desired output precision for points. - */ - outputPointsPrecision?: DesiredOutputPrecision; - - /** - * Whether to merge points. - */ - pointMerging?: boolean; - - /** - * Whether to convert lines to points. - */ - convertLinesToPoints?: boolean; - - /** - * Whether to convert polygons to lines. - */ - convertPolysToLines?: boolean; - - /** - * Whether to convert strips to polygons. - */ - convertStripsToPolys?: boolean; -} - -type vtkCleanPolyDataBase = vtkObject & vtkAlgorithm; - -export interface vtkCleanPolyData extends vtkCleanPolyDataBase { - /** - * Create default locator. - */ - createDefaultLocator(): void; - - /** - * Get the absolute tolerance value. - */ - getAbsoluteTolerance(): number; - - /** - * Get whether to convert lines to points. - */ - getConvertLinesToPoints(): boolean; - - /** - * Get whether to convert polygons to lines. - */ - getConvertPolysToLines(): boolean; - - /** - * Get whether to convert strips to polygons. - */ - getConvertStripsToPolys(): boolean; - - /** - * Get the output points precision. - */ - getOutputPointsPrecision(): DesiredOutputPrecision; - - /** - * Get whether to merge points. - */ - getPointMerging(): boolean; - - /** - * Get the tolerance used for point merging. - */ - getTolerance(): number; - - /** - * Get whether the tolerance is absolute or relative. - */ - getToleranceIsAbsolute(): boolean; - - /** - * Operate on a bounding box by applying a transformation. - * - * @param {Bounds} inBounds The input bounding box. - * @param {Bounds} outBounds The output bounding box. - */ - operateOnBounds(inBounds: Bounds, outBounds: Bounds): void; - - /** - * Operate on a point by applying a transformation. - * - * @param {Vector3} point The point to operate on. - */ - operateOnPoint(point: Vector3): void; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Set the absolute tolerance value. - * This is only used if ToleranceIsAbsolute is true. - * Initial value is 0.0 - * @param {Number} absoluteTolerance The absolute tolerance value. - */ - setAbsoluteTolerance(absoluteTolerance: number): boolean; - - /** - * Set whether to convert lines to points. - * @param {Boolean} convertLinesToPoints - */ - setConvertLinesToPoints(convertLinesToPoints: boolean): boolean; - - /** - * Set whether to convert polygons to lines. - * @param {Boolean} convertPolysToLines - */ - setConvertPolysToLines(convertPolysToLines: boolean): boolean; - - /** - * Set whether to convert strips to polygons. - * @param {Boolean} convertStripsToPolys - */ - setConvertStripsToPolys(convertStripsToPolys: boolean): boolean; - - /** - * Set the desired output precision for points. - * Initial value is DEFAULT_PRECISION. - * @param {DesiredOutputPrecision} outputPointsPrecision The outputPointsPrecision value. - */ - setOutputPointsPrecision( - outputPointsPrecision: DesiredOutputPrecision - ): boolean; - - /** - * Set whether to merge points. - * Initial value is false. - * @param {Boolean} pointMerging The pointMerging value. - */ - setPointMerging(pointMerging: boolean): boolean; - - /** - * Set the tolerance used for point merging. - * This is ignored if ToleranceIsAbsolute is true. - * Initial value is 0.0 - * @param {Number} tolerance The tolerance value. - */ - setTolerance(tolerance: number): boolean; - - /** - * Set whether the tolerance is absolute or relative. - * Initial value is false (relative). - * @param {Boolean} toleranceIsAbsolute The toleranceIsAbsolute value. - */ - setToleranceIsAbsolute(toleranceIsAbsolute: boolean): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkCleanPolyData characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ICleanPolyDataInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ICleanPolyDataInitialValues -): void; - -/** - * Method used to create a new instance of vtkCleanPolyData. - * @param {ICleanPolyDataInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ICleanPolyDataInitialValues -): vtkCleanPolyData; - -/** - * vtkCleanPolyData merge exactly coincident points. - * - * vtkCleanPolyData is a locator object to quickly locate points in 3D. - */ -export declare const vtkCleanPolyData: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkCleanPolyData; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core/CleanPolyData.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core/CleanPolyData.js deleted file mode 100644 index 78c88e8b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core/CleanPolyData.js +++ /dev/null @@ -1,399 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import vtkMergePoints from '../../Common/DataModel/MergePoints.js'; -import vtkPointLocator from '../../Common/DataModel/PointLocator.js'; -import vtkPoints from '../../Common/Core/Points.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import { DesiredOutputPrecision } from '../../Common/DataModel/DataSetAttributes/Constants.js'; -import { VtkDataTypes } from '../../Common/Core/DataArray/Constants.js'; - -// ---------------------------------------------------------------------------- -// vtkCleanPolyData methods -// ---------------------------------------------------------------------------- - -function vtkCleanPolyData(publicAPI, model) { - // Set our classname - model.classHierarchy.push('vtkCleanPolyData'); - const tempX = []; - - // Point processing - function processPoint(ptId, inPts, newPts, inputPD, outputPD, pointMap, numUsedPts) { - const newX = [0, 0, 0]; - inPts.getPoint(ptId, tempX); - publicAPI.operateOnPoint(tempX, newX); - if (!model.pointMerging) { - if (pointMap[ptId] === -1) { - pointMap[ptId] = numUsedPts.value++; - newPts.setPoint(pointMap[ptId], newX); - outputPD.passData(inputPD, ptId, pointMap[ptId]); - } - return pointMap[ptId]; - } - const newPtId = model._locator.insertUniquePoint(newX).id; - if (!model.copiedPoints.has(newPtId)) { - model.copiedPoints.add(newPtId); - outputPD.passData(inputPD, ptId, newPtId); - } - return newPtId; - } - publicAPI.operateOnPoint = (inPt, outPt) => { - outPt[0] = inPt[0]; - outPt[1] = inPt[1]; - outPt[2] = inPt[2]; - }; - publicAPI.operateOnBounds = (inBounds, outBounds) => { - vtkBoundingBox.setBounds(outBounds, inBounds); - }; - publicAPI.createDefaultLocator = input => { - let tol; - if (model.toleranceIsAbsolute) { - tol = model.absoluteTolerance; - } else if (input) { - tol = model.tolerance * input.getLength(); - } else { - tol = model.tolerance; - } - if (!model._locator) { - model._locator = tol === 0.0 ? vtkMergePoints.newInstance() : vtkPointLocator.newInstance(); - return; - } - if (tol === 0.0 && model._locator?.getTolerance() !== 0.0) { - model._locator = vtkMergePoints.newInstance(); - } else if (tol > 0.0 && !(model._locator?.getTolerance() > 0.0)) { - model._locator = vtkPointLocator.newInstance(); - } - }; - publicAPI.requestData = (inData, outData) => { - const input = inData[0]; - const output = outData[0]?.initialize() || vtkPolyData.newInstance(); - outData[0] = output; - const inPts = input.getPoints(); - const numPts = input.getNumberOfPoints(); - if (!inPts || numPts < 1) { - return; - } - const updatedPts = new Array(input.getMaxCellSize()); - const numUsedPts = { - value: 0 - }; - const precision = model.outputPointsPrecision; - let pointType = inPts.getDataType(); - if (precision) { - pointType = precision === DesiredOutputPrecision.DOUBLE ? VtkDataTypes.DOUBLE : VtkDataTypes.FLOAT; - } - const newPts = vtkPoints.newInstance({ - dataType: pointType - }); - const inVerts = input.getVerts(); - const inLines = input.getLines(); - const inPolys = input.getPolys(); - const inStrips = input.getStrips(); - let newVerts = null; - let newLines = null; - let newPolys = null; - let newStrips = null; - const inputPD = input.getPointData(); - const inputCD = input.getCellData(); - const outputPD = output.getPointData(); - const outputCD = output.getCellData(); - let pointMap = null; - if (model.pointMerging) { - publicAPI.createDefaultLocator(input); - if (model.toleranceIsAbsolute) { - model._locator.setTolerance(model.absoluteTolerance); - } else { - model._locator.setTolerance(model.tolerance * input.getLength()); - } - const originalBounds = input.getBounds(); - const mappedBounds = []; - publicAPI.operateOnBounds(originalBounds, mappedBounds); - model._locator.initPointInsertion(newPts, mappedBounds); - } else { - pointMap = new Array(numPts).fill(-1); - } - - // Copy data attributes setup - outputPD.copyStructure(inputPD); - outputCD.copyStructure(inputCD); - model.copiedPoints.clear(); - let outLineData = null; - let outPolyData = null; - let outStrpData = null; - let vertIDcounter = 0; - let lineIDcounter = 0; - let polyIDcounter = 0; - let strpIDcounter = 0; - - // Process vertices - let inCellID = 0; - if (inVerts && inVerts.getNumberOfCells() > 0) { - newVerts = vtkCellArray.newInstance(); - let currentIdx = 0; - const cellData = inVerts.getData(); - while (currentIdx < cellData.length) { - const npts = cellData[currentIdx++]; - const inputPointIds = cellData.slice(currentIdx, currentIdx + npts); - currentIdx += npts; - let numNewPts = 0; - for (let i = 0; i < inputPointIds.length; i++) { - const ptId = inputPointIds[i]; - const newPtId = processPoint(ptId, inPts, newPts, inputPD, outputPD, pointMap, numUsedPts); - updatedPts[numNewPts++] = newPtId; - } - if (numNewPts > 0) { - newVerts.insertNextCell(updatedPts.slice(0, numNewPts)); - outputCD.passData(inputCD, inCellID, vertIDcounter); - vertIDcounter++; - } - inCellID++; - } - } - - // Process lines - if (inLines && inLines.getNumberOfCells() > 0) { - newLines = vtkCellArray.newInstance(); - let currentIdx = 0; - const cellData = inLines.getData(); - while (currentIdx < cellData.length) { - const npts = cellData[currentIdx++]; - const inputPointIds = cellData.slice(currentIdx, currentIdx + npts); - currentIdx += npts; - let numNewPts = 0; - for (let i = 0; i < inputPointIds.length; i++) { - const ptId = inputPointIds[i]; - const newPtId = processPoint(ptId, inPts, newPts, inputPD, outputPD, pointMap, numUsedPts); - if (i === 0 || newPtId !== updatedPts[numNewPts - 1]) { - updatedPts[numNewPts++] = newPtId; - } - } - if (numNewPts >= 2) { - newLines.insertNextCell(updatedPts.slice(0, numNewPts)); - if (!outLineData) { - outLineData = []; - } - outLineData.push({ - inputId: inCellID, - outputId: lineIDcounter - }); - lineIDcounter++; - } else if (numNewPts === 1 && (inputPointIds.length === numNewPts || model.convertLinesToPoints)) { - if (!newVerts) { - newVerts = vtkCellArray.newInstance(); - } - newVerts.insertNextCell(updatedPts.slice(0, numNewPts)); - outputCD.passData(inputCD, inCellID, vertIDcounter); - vertIDcounter++; - } - inCellID++; - } - } - - // Process polygons - if (inPolys && inPolys.getNumberOfCells() > 0) { - newPolys = vtkCellArray.newInstance(); - let currentIdx = 0; - const cellData = inPolys.getData(); - while (currentIdx < cellData.length) { - const npts = cellData[currentIdx++]; - const inputPointIds = cellData.slice(currentIdx, currentIdx + npts); - currentIdx += npts; - let numNewPts = 0; - for (let i = 0; i < inputPointIds.length; i++) { - const ptId = inputPointIds[i]; - const newPtId = processPoint(ptId, inPts, newPts, inputPD, outputPD, pointMap, numUsedPts); - if (i === 0 || newPtId !== updatedPts[numNewPts - 1]) { - updatedPts[numNewPts++] = newPtId; - } - } - - // Remove duplicate last point if it matches first - if (numNewPts > 2 && updatedPts[0] === updatedPts[numNewPts - 1]) { - numNewPts--; - } - if (numNewPts > 2) { - newPolys.insertNextCell(updatedPts.slice(0, numNewPts)); - if (!outPolyData) { - outPolyData = []; - } - outPolyData.push({ - inputId: inCellID, - outputId: polyIDcounter - }); - polyIDcounter++; - } else if (numNewPts === 2 && (inputPointIds.length === numNewPts || model.convertPolysToLines)) { - if (!newLines) { - newLines = vtkCellArray.newInstance(); - outLineData = []; - } - newLines.insertNextCell(updatedPts.slice(0, numNewPts)); - outLineData.push({ - inputId: inCellID, - outputId: lineIDcounter - }); - lineIDcounter++; - } else if (numNewPts === 1 && (inputPointIds.length === numNewPts || model.convertLinesToPoints)) { - if (!newVerts) { - newVerts = vtkCellArray.newInstance(); - } - newVerts.insertNextCell(updatedPts.slice(0, numNewPts)); - outputCD.passData(inputCD, inCellID, vertIDcounter); - vertIDcounter++; - } - inCellID++; - } - } - - // Process triangle strips - if (inStrips && inStrips.getNumberOfCells() > 0) { - newStrips = vtkCellArray.newInstance(); - let currentIdx = 0; - const cellData = inStrips.getData(); - while (currentIdx < cellData.length) { - const npts = cellData[currentIdx++]; - const inputPointIds = cellData.slice(currentIdx, currentIdx + npts); - currentIdx += npts; - let numNewPts = 0; - for (let i = 0; i < inputPointIds.length; i++) { - const ptId = inputPointIds[i]; - const newPtId = processPoint(ptId, inPts, newPts, inputPD, outputPD, pointMap, numUsedPts); - if (i === 0 || newPtId !== updatedPts[numNewPts - 1]) { - updatedPts[numNewPts++] = newPtId; - } - } - - // Remove duplicate last point if it matches first - if (numNewPts > 1 && updatedPts[0] === updatedPts[numNewPts - 1]) { - numNewPts--; - } - if (numNewPts > 3) { - newStrips.insertNextCell(updatedPts.slice(0, numNewPts)); - if (!outStrpData) { - outStrpData = []; - } - outStrpData.push({ - inputId: inCellID, - outputId: strpIDcounter - }); - strpIDcounter++; - } else if (numNewPts === 3 && (inputPointIds.length === numNewPts || model.convertStripsToPolys)) { - if (!newPolys) { - newPolys = vtkCellArray.newInstance(); - outPolyData = []; - } - newPolys.insertNextCell(updatedPts.slice(0, numNewPts)); - outPolyData.push({ - inputId: inCellID, - outputId: polyIDcounter - }); - polyIDcounter++; - } else if (numNewPts === 2 && (inputPointIds.length === numNewPts || model.convertPolysToLines)) { - if (!newLines) { - newLines = vtkCellArray.newInstance(); - outLineData = []; - } - newLines.insertNextCell(updatedPts.slice(0, numNewPts)); - outLineData.push({ - inputId: inCellID, - outputId: lineIDcounter - }); - lineIDcounter++; - } else if (numNewPts === 1 && (inputPointIds.length === numNewPts || model.convertLinesToPoints)) { - if (!newVerts) { - newVerts = vtkCellArray.newInstance(); - } - newVerts.insertNextCell(updatedPts.slice(0, numNewPts)); - outputCD.passData(inputCD, inCellID, vertIDcounter); - vertIDcounter++; - } - inCellID++; - } - } - - // Clean up - if (model.pointMerging) { - model._locator.initialize(); - } else { - newPts.setNumberOfPoints(numUsedPts.value); - } - - // Copy cell data in correct order - let combinedCellID = vertIDcounter; - if (outLineData) { - outLineData.forEach(item => { - outputCD.passData(inputCD, item.inputId, combinedCellID); - combinedCellID++; - }); - } - if (outPolyData) { - outPolyData.forEach(item => { - outputCD.passData(inputCD, item.inputId, combinedCellID); - combinedCellID++; - }); - } - if (outStrpData) { - outStrpData.forEach(item => { - outputCD.passData(inputCD, item.inputId, combinedCellID); - combinedCellID++; - }); - } - - // Set output - output.setPoints(newPts); - if (newVerts) output.setVerts(newVerts); - if (newLines) output.setLines(newLines); - if (newPolys) output.setPolys(newPolys); - if (newStrips) output.setStrips(newStrips); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - pointMerging: true, - toleranceIsAbsolute: false, - tolerance: 0.0, - absoluteTolerance: 1.0, - convertLinesToPoints: true, - convertPolysToLines: true, - convertStripsToPolys: true, - locator: null, - outputPointsPrecision: DesiredOutputPrecision.DEFAULT -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - - // Generate macros for properties - macro.setGet(publicAPI, model, ['pointMerging', 'toleranceIsAbsolute', 'tolerance', 'absoluteTolerance', 'convertPolysToLines', 'convertLinesToPoints', 'convertStripsToPolys', 'outputPointsPrecision']); - - // Internal state - model.copiedPoints = new Set(); - - // Object methods - vtkCleanPolyData(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCleanPolyData'); - -// ---------------------------------------------------------------------------- - -var vtkCleanPolyData$1 = { - newInstance, - extend -}; - -export { vtkCleanPolyData$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core/Cutter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core/Cutter.js deleted file mode 100644 index af7f0b89..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core/Cutter.js +++ /dev/null @@ -1,337 +0,0 @@ -import { n as newInstance$1, o as obj, d as algo, e as setGet, c as macro, b as newTypedArrayFrom } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; - -const { - vtkErrorMacro -} = macro; -function initPolyIterator(pd) { - const polys = pd.getPolys().getData(); - const strips = pd.getStrips().getData(); - const it = { - cellSize: 0, - cell: [], - done: false, - polyIdx: 0, - stripIdx: 0, - remainingStripLength: 0, - // returns a single poly cell - next() { - if (it.polyIdx < polys.length) { - it.cellSize = polys[it.polyIdx]; - const start = it.polyIdx + 1; - const end = start + it.cellSize; - it.polyIdx = end; - let p = 0; - for (let i = start; i < end; ++i) { - it.cell[p++] = polys[i]; - } - } else if (it.stripIdx < strips.length) { - it.cellSize = 3; - if (it.remainingStripLength === 0) { - it.remainingStripLength = strips[it.stripIdx] - 2; // sliding window of 3 points - // stripIdx points to the last point in a triangle 3-tuple - it.stripIdx += 3; - } - const start = it.stripIdx - 2; - const end = it.stripIdx + 1; - it.stripIdx++; - it.remainingStripLength--; - let p = 0; - for (let i = start; i < end; ++i) { - it.cell[p++] = strips[i]; - } - } else if (!it.done) { - it.done = true; - } else { - throw new Error('Iterator is done'); - } - } - }; - it.next(); - return it; -} - -// ---------------------------------------------------------------------------- -// vtkCutter methods -// ---------------------------------------------------------------------------- - -function vtkCutter(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCutter'); - - // Capture "parentClass" api for internal use - const superClass = { - ...publicAPI - }; - publicAPI.getMTime = () => { - let mTime = superClass.getMTime(); - if (!model.cutFunction) { - return mTime; - } - mTime = Math.max(mTime, model.cutFunction.getMTime()); - return mTime; - }; - function dataSetCutter(input, output) { - const points = input.getPoints(); - const pointsData = points.getData(); - const pointData = input.getPointData(); - const numPts = points.getNumberOfPoints(); - const newPointsData = []; - const newLinesData = []; - const newPolysData = []; - const newPointData = {}; // TODO: cell data must also be processed - - // Initialize arrays - const numberOfArrays = pointData.getNumberOfArrays(); - for (let arrayIdx = 0; arrayIdx < numberOfArrays; arrayIdx++) { - newPointData[pointData.getArrayName(arrayIdx)] = []; - } - if (!model.cutScalars || model.cutScalars.length < numPts) { - model.cutScalars = new Float32Array(numPts); - } - - // Loop over all points evaluating scalar function at each point - let inOffset = 0; - let outOffset = 0; - while (inOffset < pointsData.length) { - model.cutScalars[outOffset++] = model.cutFunction.evaluateFunction(pointsData[inOffset++], pointsData[inOffset++], pointsData[inOffset++]); - } - const crossedEdges = []; - const x1 = new Array(3); - const x2 = new Array(3); - const cellPointsScalars = []; - - // Loop over all cells; get scalar values for all cell points - // and process each cell. - /* eslint-disable no-continue */ - for (const it = initPolyIterator(input); !it.done; it.next()) { - // cell contains the point IDs/indices - - // Check that cells have at least 3 points - if (it.cellSize <= 2) { - continue; - } - - // Get associated scalar of points that constitute the current cell - for (let i = 0; i < it.cellSize;) { - cellPointsScalars[i] = model.cutScalars[it.cell[i++]]; - } - - // Check if all cell points are on same side (same side == cell not crossed by cut function) - // TODO: won't work if one point scalar is = 0 ? - const sideFirstPoint = cellPointsScalars[0] > 0; - let allPointsSameSide = true; - for (let i = 1; i < it.cell.length; i++) { - const sideCurrentPoint = cellPointsScalars[i] > 0; - if (sideCurrentPoint !== sideFirstPoint) { - allPointsSameSide = false; - break; - } - } - - // Go to next cell if cell is not crossed by cut function - if (allPointsSameSide) { - continue; - } - - // Find and compute edges which intersect cells - const intersectedEdgesList = []; - for (let i = 0; i < it.cellSize; i++) { - const idNext = i + 1 === it.cellSize ? 0 : i + 1; - - // Go to next edge if edge is not crossed - // TODO: in most come cases, (numberOfPointsInCell - 1) or 0 edges of the cell - // will be crossed, but if it crosses right at a point, it could be intersecting - // with (numberOfPoints) or 1 edge(s). Do we account for that? - const signPoint0 = cellPointsScalars[i] > 0; - const signPoint1 = cellPointsScalars[idNext] > 0; - if (signPoint1 === signPoint0) { - continue; - } - - // Compute preferred interpolation direction - let e1 = i; - let e2 = idNext; - let deltaScalar = cellPointsScalars[e2] - cellPointsScalars[e1]; - if (deltaScalar <= 0) { - e1 = idNext; - e2 = i; - deltaScalar *= -1; - } - - // linear interpolation - let t = 0.0; - if (deltaScalar !== 0.0) { - t = (model.cutValue - cellPointsScalars[e1]) / deltaScalar; - } - - // points position - const pointID1 = it.cell[e1]; - const pointID2 = it.cell[e2]; - x1[0] = pointsData[pointID1 * 3]; - x1[1] = pointsData[pointID1 * 3 + 1]; - x1[2] = pointsData[pointID1 * 3 + 2]; - x2[0] = pointsData[pointID2 * 3]; - x2[1] = pointsData[pointID2 * 3 + 1]; - x2[2] = pointsData[pointID2 * 3 + 2]; - - // Compute the intersected point on edge - const computedIntersectedPoint = [x1[0] + t * (x2[0] - x1[0]), x1[1] + t * (x2[1] - x1[1]), x1[2] + t * (x2[2] - x1[2])]; - const computedIntersectedArrays = {}; - for (let arrayIdx = 0; arrayIdx < numberOfArrays; arrayIdx++) { - const array = pointData.getArrayByIndex(arrayIdx); - const name = pointData.getArrayName(arrayIdx); - const data = array.getData(); - const n = array.getNumberOfComponents(); - const computedIntersectedArray = new Array(n); - for (let j = 0; j < n; j++) { - const scalar1 = data[n * pointID1 + j]; - const scalar2 = data[n * pointID2 + j]; - computedIntersectedArray.push(scalar1 + t * (scalar2 - scalar1)); // FIXME: won't work when the array contains "normals" or "IDs" - } - - computedIntersectedArrays[name] = computedIntersectedArray; - } - - // Keep track of it - intersectedEdgesList.push({ - pointEdge1: pointID1, - // id of one point of the edge - pointEdge2: pointID2, - // id of one point of the edge - intersectedPoint: computedIntersectedPoint, - // 3D coordinate of points that intersected edge - intersectedArrays: computedIntersectedArrays, - // value(s) of the intersected arrays - newPointID: -1 // id of the intersected point when it will be added into vtkPoints - }); - } - - // Add points into newPointList - for (let i = 0; i < intersectedEdgesList.length; i++) { - const intersectedEdge = intersectedEdgesList[i]; - let alreadyAdded = false; - // Check if point/edge already added - for (let j = 0; j < crossedEdges.length; j++) { - const crossedEdge = crossedEdges[j]; - const sameEdge = intersectedEdge.pointEdge1 === crossedEdge.pointEdge1 && intersectedEdge.pointEdge2 === crossedEdge.pointEdge2; - const samePoint = intersectedEdge.intersectedPoint[0] === crossedEdge.intersectedPoint[0] && intersectedEdge.intersectedPoint[1] === crossedEdge.intersectedPoint[1] && intersectedEdge.intersectedPoint[2] === crossedEdge.intersectedPoint[2]; - if (sameEdge || samePoint) { - alreadyAdded = true; - intersectedEdgesList[i].newPointID = crossedEdges[j].newPointID; - break; - } - } - if (!alreadyAdded) { - newPointsData.push(intersectedEdge.intersectedPoint[0]); - newPointsData.push(intersectedEdge.intersectedPoint[1]); - newPointsData.push(intersectedEdge.intersectedPoint[2]); - Object.keys(intersectedEdge.intersectedArrays).forEach(name => { - newPointData[name].push(...intersectedEdge.intersectedArrays[name]); - }); - intersectedEdgesList[i].newPointID = newPointsData.length / 3 - 1; - crossedEdges.push(intersectedEdgesList[i]); - } - } - - // Store cells - const cellSize = intersectedEdgesList.length; - if (cellSize === 2) { - newLinesData.push(cellSize, intersectedEdgesList[0].newPointID, intersectedEdgesList[1].newPointID); - } else if (cellSize > 2) { - newPolysData.push(cellSize); - intersectedEdgesList.forEach(edge => { - newPolysData.push(edge.newPointID); - }); - } - } - - // Set points - const outputPoints = output.getPoints(); - outputPoints.setData(newTypedArrayFrom(points.getDataType(), newPointsData), 3); - - // Set scalars - const outputPointData = output.getPointData(); - for (let arrayIdx = 0; arrayIdx < numberOfArrays; arrayIdx++) { - const name = pointData.getArrayName(arrayIdx); - const array = vtkDataArray.newInstance({ - name, - dataType: pointData.getArrayByIndex(arrayIdx).getDataType(), - values: newPointData[name], - numberOfComponents: pointData.getArrayByIndex(arrayIdx).getNumberOfComponents() - }); - outputPointData.addArray(array); - } - - // Set lines - if (newLinesData.length !== 0) { - output.getLines().setData(Uint16Array.from(newLinesData)); - } - - // Set polys - if (newPolysData.length !== 0) { - output.getPolys().setData(Uint16Array.from(newPolysData)); - } - } - - // expose requestData - publicAPI.requestData = (inData, outData) => { - // implement requestData - const input = inData[0]; - if (!input) { - vtkErrorMacro('Invalid or missing input'); - return; - } - if (!model.cutFunction) { - vtkErrorMacro('Missing cut function'); - return; - } - const output = outData[0]?.initialize() || vtkPolyData.newInstance(); - dataSetCutter(input, output); - outData[0] = output; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - cutFunction: null, - // support method with evaluateFunction method - cutScalars: null, - cutValue: 0.0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - algo(publicAPI, model, 1, 1); - - // Set implicit function use to cut the input data (is vtkPlane) - setGet(publicAPI, model, ['cutFunction', 'cutValue']); - - // Object specific methods - vtkCutter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkCutter'); - -// ---------------------------------------------------------------------------- - -var vtkCutter$1 = { - newInstance, - extend -}; - -export { vtkCutter$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core/PolyDataNormals.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core/PolyDataNormals.js deleted file mode 100644 index 1cf721dd..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core/PolyDataNormals.js +++ /dev/null @@ -1,144 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import { b as vtkMath } from '../../Common/Core/Math/index.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkTriangle from '../../Common/DataModel/Triangle.js'; - -// ---------------------------------------------------------------------------- -// vtkPolyDataNormals methods -// ---------------------------------------------------------------------------- - -function vtkPolyDataNormals(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPolyDataNormals'); - publicAPI.vtkPolyDataNormalsExecute = (numberOfPolys, polysData, pointsData) => { - if (!pointsData) { - return null; - } - const pointNormals = new Float32Array(pointsData.length); - const cellNormals = new Float32Array(3 * numberOfPolys); - let cellNormalComponent = 0; - let numberOfPoints = 0; - const polysDataLength = polysData.length; - const cellPointIds = [0, 0, 0]; - const cellNormal = [0, 0, 0]; - for (let c = 0; c < polysDataLength; c += numberOfPoints + 1) { - numberOfPoints = polysData[c]; - if (numberOfPoints < 3) { - continue; // eslint-disable-line - } - - for (let i = 1; i <= 3; ++i) { - cellPointIds[i - 1] = 3 * polysData[c + i]; - } - vtkTriangle.computeNormal(pointsData.slice(cellPointIds[0], cellPointIds[0] + 3), pointsData.slice(cellPointIds[1], cellPointIds[1] + 3), pointsData.slice(cellPointIds[2], cellPointIds[2] + 3), cellNormal); - cellNormals[cellNormalComponent++] = cellNormal[0]; - cellNormals[cellNormalComponent++] = cellNormal[1]; - cellNormals[cellNormalComponent++] = cellNormal[2]; - if (model.computePointNormals) { - for (let i = 1; i <= numberOfPoints; ++i) { - let pointId = 3 * polysData[c + i]; - pointNormals[pointId] += cellNormal[0]; - pointNormals[++pointId] += cellNormal[1]; - pointNormals[++pointId] += cellNormal[2]; - } - } - } - - // Normalize point normals. - // A point normal is the sum of all the cell normals the point belongs to - if (model.computePointNormals) { - const pointNormal = [0, 0, 0]; - for (let i = 0; i < pointsData.length;) { - pointNormal[0] = pointNormals[i]; - pointNormal[1] = pointNormals[i + 1]; - pointNormal[2] = pointNormals[i + 2]; - vtkMath.normalize(pointNormal); - pointNormals[i++] = pointNormal[0]; - pointNormals[i++] = pointNormal[1]; - pointNormals[i++] = pointNormal[2]; - } - } - return [cellNormals, pointNormals]; - }; - publicAPI.requestData = (inData, outData) => { - const numberOfInputs = publicAPI.getNumberOfInputPorts(); - if (!numberOfInputs) { - return; - } - const input = inData[0]; - if (!input) { - return; - } - const output = outData[0]?.initialize() || vtkPolyData.newInstance(); - output.setPoints(input.getPoints()); - output.setVerts(input.getVerts()); - output.setLines(input.getLines()); - output.setPolys(input.getPolys()); - output.setStrips(input.getStrips()); - output.getPointData().passData(input.getPointData()); - output.getCellData().passData(input.getCellData()); - output.getFieldData().passData(input.getFieldData()); - const [cellNormals, pointNormals] = publicAPI.vtkPolyDataNormalsExecute(input.getNumberOfPolys(), input.getPolys().getData(), input.getPoints().getData()); - if (model.computePointNormals) { - const outputPointNormals = vtkDataArray.newInstance({ - numberOfComponents: 3, - name: 'Normals', - values: pointNormals - }); - output.getPointData().setNormals(outputPointNormals); - } - if (model.computeCellNormals) { - const outputCellNormals = vtkDataArray.newInstance({ - numberOfComponents: 3, - name: 'Normals', - values: cellNormals - }); - output.getCellData().setNormals(outputCellNormals); - } - outData[0] = output; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- -function defaultValues(initialValues) { - return { - computeCellNormals: false, - computePointNormals: true, - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - - /* Make this a VTK object */ - - macro.obj(publicAPI, model); - - /* Also make it an algorithm with one input and one output */ - - macro.algo(publicAPI, model, 1, 1); - macro.setGet(publicAPI, model, ['computeCellNormals', 'computePointNormals']); - - /* Object specific methods */ - - vtkPolyDataNormals(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPolyDataNormals'); - -// ---------------------------------------------------------------------------- - -var vtkPolyDataNormals$1 = { - newInstance, - extend -}; - -export { vtkPolyDataNormals$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core/ThresholdPoints.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core/ThresholdPoints.d.ts deleted file mode 100644 index bfd34eab..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core/ThresholdPoints.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; - -export interface ThresholdCriteria { - arrayName: string; - fieldAssociation: string; - operation: string; - value: number; -} - -/** - * - */ -export interface IThresholdPointsInitialValues { - criterias?: ThresholdCriteria[]; -} - -type vtkThresholdPointsBase = vtkObject & vtkAlgorithm; - -export interface vtkThresholdPoints extends vtkThresholdPointsBase { - /** - * Get the desired precision for the output types. - */ - getCriterias(): ThresholdCriteria[]; - - /** - * Set the desired precision for the output types. - * @param outputPointsPrecision - */ - setCriterias(criterias: ThresholdCriteria[]): boolean; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkThresholdPoints characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IThresholdPointsInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IThresholdPointsInitialValues -): void; - -/** - * Method used to create a new instance of vtkThresholdPoints - * @param {IThresholdPointsInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IThresholdPointsInitialValues -): vtkThresholdPoints; - -/** - * vtkThresholdPoints - extracts points whose scalar value satisfies threshold criterion - * - * vtkThresholdPoints is a filter that extracts points from a dataset that - * satisfy a threshold criterion. The criterion can take three forms: - * 1) greater than a particular value; 2) less than a particular value; or - * 3) between a particular value. The output of the filter is polygonal data. - */ -export declare const vtkThresholdPoints: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkThresholdPoints; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core/ThresholdPoints.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core/ThresholdPoints.js deleted file mode 100644 index e3931c59..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Core/ThresholdPoints.js +++ /dev/null @@ -1,218 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkPoints from '../../Common/Core/Points.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import { POLYDATA_FIELDS } from '../../Common/DataModel/PolyData/Constants.js'; - -const { - vtkErrorMacro -} = macro; -const OperationType = { - Below: 'Below', - Above: 'Above' -}; - -// Function to perform binary search on a sorted array -function binarySearch(items, value) { - let firstIndex = 0; - let lastIndex = items.length - 1; - let middleIndex = Math.floor((lastIndex + firstIndex) / 2); - while (items[middleIndex] !== value && firstIndex < lastIndex) { - if (value < items[middleIndex]) { - lastIndex = middleIndex - 1; - } else if (value > items[middleIndex]) { - firstIndex = middleIndex + 1; - } - middleIndex = Math.floor((lastIndex + firstIndex) / 2); - } - return { - found: items[middleIndex] === value, - index: Math.max(items[middleIndex] < value ? middleIndex + 1 : middleIndex, 0) - }; -} -function camelize(str) { - return str.replace(/(?:^\w|[A-Z]|\b\w)/g, letter => letter.toUpperCase()).replace(/\s+/g, ''); -} -// ---------------------------------------------------------------------------- -// vtkThresholdPoints methods -// ---------------------------------------------------------------------------- - -function vtkThresholdPoints(publicAPI, model) { - // Set our classname - model.classHierarchy.push('vtkThresholdPoints'); - publicAPI.requestData = (inData, outData) => { - const input = inData[0]; - const output = outData[0]?.initialize() || vtkPolyData.newInstance(); - outData[0] = output; - if (model.criterias.length === 0) { - output.shallowCopy(input); - return; - } - const oldPoints = input.getPoints(); - const oldPointCount = oldPoints.getNumberOfPoints(); - const oldPointData = input.getPointData(); - const oldPointsData = oldPoints.getData(); - const newPointsData = macro.newTypedArray(input.getPoints().getDataType(), 3 * oldPointCount); - const oldArrays = []; - const newArraysData = []; - const numArrays = oldPointData.getNumberOfArrays(); - for (let i = 0; i < numArrays; ++i) { - const oldArray = oldPointData.getArrayByIndex(i); - oldArrays.push(oldArray); - newArraysData.push(macro.newTypedArray(oldArray.getDataType(), oldPointCount * oldArray.getNumberOfComponents())); - } - const pointAcceptanceFunctions = model.criterias.map(criteria => { - let inputArray = null; - let component = 0; - let numberOfComponents = 1; - if (criteria.fieldAssociation === 'PointData') { - inputArray = oldArrays.find(oldArray => oldArray.getName() === criteria.arrayName); - numberOfComponents = inputArray.getNumberOfComponents(); - } else if (criteria.fieldAssociation === 'Points') { - inputArray = oldPoints; - if (criteria.arrayName === 'z') { - component = 2; - } else { - component = criteria.arrayName === 'y' ? 1 : 0; - } - numberOfComponents = 3; - } else { - vtkErrorMacro('No field association'); - } - const inputArrayData = inputArray.getData(); - const operation = criteria.operation === OperationType.Below ? (a, b) => a < b : (a, b) => a > b; - const pointAcceptanceFunction = pointId => operation(inputArrayData[numberOfComponents * pointId + component], criteria.value); - return pointAcceptanceFunction; - }); - const thresholdedPointIds = []; // sorted list - let newI = 0; - for (let i = 0; i < oldPointCount; ++i) { - const keepPoint = pointAcceptanceFunctions.reduce((keep, pointAcceptanceFunction) => keep && pointAcceptanceFunction(i), true); - if (keepPoint) { - let ii = 3 * i; - let newII = 3 * newI; - for (let c = 0; c < 3; ++c) { - newPointsData[newII++] = oldPointsData[ii++]; - } - for (let j = 0; j < numArrays; ++j) { - const oldArrayData = oldArrays[j].getData(); - const newArrayData = newArraysData[j]; - const cc = oldArrays[j].getNumberOfComponents(); - ii = cc * i; - newII = cc * newI; - for (let c = 0; c < cc; ++c) { - newArrayData[newII++] = oldArrayData[ii++]; - } - } - ++newI; - } else { - thresholdedPointIds.push(i); - } - } - if (thresholdedPointIds.length === 0) { - output.shallowCopy(input); - return; - } - output.setPoints(vtkPoints.newInstance({ - values: newPointsData, - size: 3 * newI - })); - for (let i = 0; i < numArrays; ++i) { - const oldArray = oldArrays[i]; - const newArray = vtkDataArray.newInstance({ - name: oldArray.getName(), - values: newArraysData[i], - dataType: oldArray.getDataType(), - numberOfComponents: oldArray.getNumberOfComponents(), - size: newI * oldArray.getNumberOfComponents() - }); - output.getPointData().addArray(newArray); - oldPointData.getAttributes(oldArray).forEach(attrType => { - output.getPointData().setAttribute(newArray, attrType); - }); - } - POLYDATA_FIELDS.forEach(cellType => { - const oldPolysData = input[`get${camelize(cellType)}`]().getData(); - const newCellData = macro.newTypedArray(input.getPolys().getDataType(), oldPolysData.length); - const newPointIds = []; // first point starts at [1] - const firstPointIndex = cellType === 'verts' ? 0 : 1; - let numberOfPoints = 1; - let newP = 0; - for (let c = 0; c < oldPolysData.length; c += numberOfPoints + firstPointIndex) { - if (firstPointIndex === 1) { - // not for verts - numberOfPoints = oldPolysData[c]; - } - let keepCell = true; - for (let p = firstPointIndex; p <= numberOfPoints; ++p) { - const { - found, - index - } = binarySearch(thresholdedPointIds, oldPolysData[c + p]); - if (found) { - keepCell = false; - break; - } - newPointIds[p] = oldPolysData[c + p] - index; - } - if (keepCell) { - newCellData[newP++] = numberOfPoints; - for (let p = firstPointIndex; p <= numberOfPoints;) { - newCellData[newP++] = newPointIds[p++]; - } - } - } - output[`set${camelize(cellType)}`](vtkCellArray.newInstance({ - values: newCellData, - size: newP, - // it may shorter than original array if cells are not kept - dataType: input.getPolys().getDataType() - })); - }); - }; -} - -// ---------------------------------------------------------------------------- - -function defaultValues(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - return { - criterias: [], - // arrayName: string, fieldAssociation: string, operation: string, value: number - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(publicAPI, model, initialValues)); - - // Build VTK API - macro.setGet(publicAPI, model, []); - macro.get(publicAPI, model, []); - macro.setGetArray(publicAPI, model, ['criterias']); - - // Make this a VTK object - macro.obj(publicAPI, model); - macro.algo(publicAPI, model, 1, 1); - - // Object specific methods - vtkThresholdPoints(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkThresholdPoints'); - -// ---------------------------------------------------------------------------- - -var vtkThresholdPoints$1 = { - newInstance, - extend, - OperationType -}; - -export { vtkThresholdPoints$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Cornerstone.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Cornerstone.js deleted file mode 100644 index 5f85262f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Cornerstone.js +++ /dev/null @@ -1,7 +0,0 @@ -import vtkImageDataToCornerstoneImage from './Cornerstone/ImageDataToCornerstoneImage.js'; - -var Cornerstone = { - vtkImageDataToCornerstoneImage -}; - -export { Cornerstone as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Cornerstone/ImageDataToCornerstoneImage.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Cornerstone/ImageDataToCornerstoneImage.js deleted file mode 100644 index 3307f186..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Cornerstone/ImageDataToCornerstoneImage.js +++ /dev/null @@ -1,109 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -const { - vtkErrorMacro -} = macro; - -// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -// TODO: -// - Support image stack -// - Support slice orientation (see stack?) -// - may need some data conversion -// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - -// ---------------------------------------------------------------------------- -// vtkImageDataToCornerstoneImage methods -// ---------------------------------------------------------------------------- - -function vtkImageDataToCornerstoneImage(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkImageDataToCornerstoneImage'); - publicAPI.requestData = (inData, outData) => { - // implement requestData - const input = inData[0]; - if (!input) { - vtkErrorMacro('Invalid or missing input'); - return; - } - - // Retrieve output and volume data - // const origin = input.getOrigin(); - const spacing = input.getSpacing(); - const dims = input.getDimensions(); - const scalars = input.getPointData().getScalars(); - const dataRange = scalars.getRange(0); - const rawData = scalars.getData(); - - // FIXME probably need to expand to RGBA - let pixelData = null; - if (dims[2] === 1) { - pixelData = !scalars.data ? rawData : scalars.data; - } else { - const offset = model.sliceIndex * dims[0] * dims[1] * rawData.BYTES_PER_ELEMENT; - pixelData = macro.newTypedArray(scalars.getDataType(), rawData.buffer, offset, dims[0] * dims[1]); - } - const cornerstoneImage = { - imageId: model.imageId, - color: scalars.getNumberOfComponents() > 1, - columnPixelSpacing: spacing[0], - columns: dims[0], - width: dims[0], - rowPixelSpacing: spacing[1], - rows: dims[1], - height: dims[1], - intercept: 0, - invert: false, - minPixelValue: dataRange[0], - maxPixelValue: dataRange[1], - sizeInBytes: pixelData.length * pixelData.BYTES_PER_ELEMENT, - slope: 1, - windowCenter: Math.round((dataRange[0] + dataRange[1]) / 2), - windowWidth: dataRange[1] - dataRange[0], - decodeTimeInMS: 0, - getPixelData() { - return pixelData; - } - }; - outData[0] = cornerstoneImage; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - imageId: 'default-image-id', - sliceIndex: 0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - macro.setGet(publicAPI, model, ['imageId', 'sliceIndex']); - - // Object specific methods - macro.algo(publicAPI, model, 1, 1); - vtkImageDataToCornerstoneImage(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImageDataToCornerstoneImage'); - -// ---------------------------------------------------------------------------- - -var vtkImageDataToCornerstoneImage$1 = { - newInstance, - extend -}; - -export { vtkImageDataToCornerstoneImage$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General.js deleted file mode 100644 index e2ee6e33..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General.js +++ /dev/null @@ -1,51 +0,0 @@ -import vtkAppendPolyData from './General/AppendPolyData.js'; -import vtkCalculator from './General/Calculator.js'; -import vtkClipClosedSurface from './General/ClipClosedSurface.js'; -import vtkClosedPolyLineToSurfaceFilter from './General/ClosedPolyLineToSurfaceFilter.js'; -import vtkContourTriangulator from './General/ContourTriangulator.js'; -import vtkImageCropFilter from './General/ImageCropFilter.js'; -import vtkImageMarchingCubes from './General/ImageMarchingCubes.js'; -import vtkImageMarchingSquares from './General/ImageMarchingSquares.js'; -import vtkImageOutlineFilter from './General/ImageOutlineFilter.js'; -import vtkImageSliceFilter from './General/ImageSliceFilter.js'; -import vtkImageStreamline from './General/ImageStreamline.js'; -import vtkLineFilter from './General/LineFilter.js'; -import vtkMoleculeToRepresentation from './General/MoleculeToRepresentation.js'; -import vtkOBBTree from './General/OBBTree.js'; -import vtkOutlineFilter from './General/OutlineFilter.js'; -import vtkPaintFilter from './General/PaintFilter.js'; -import vtkScalarToRGBA from './General/ScalarToRGBA.js'; -import vtkShrinkPolyData from './General/ShrinkPolyData.js'; -import vtkTransformPolyDataFilter from './General/TransformPolyDataFilter.js'; -import vtkTriangleFilter from './General/TriangleFilter.js'; -import vtkTubeFilter from './General/TubeFilter.js'; -import vtkWarpScalar from './General/WarpScalar.js'; -import vtkWindowedSincPolyDataFilter from './General/WindowedSincPolyDataFilter.js'; - -var General = { - vtkAppendPolyData, - vtkCalculator, - vtkClipClosedSurface, - vtkClosedPolyLineToSurfaceFilter, - vtkContourTriangulator, - vtkImageCropFilter, - vtkImageMarchingCubes, - vtkImageMarchingSquares, - vtkImageOutlineFilter, - vtkImageSliceFilter, - vtkImageStreamline, - vtkLineFilter, - vtkMoleculeToRepresentation, - vtkOBBTree, - vtkOutlineFilter, - vtkPaintFilter, - vtkScalarToRGBA, - vtkShrinkPolyData, - vtkTransformPolyDataFilter, - vtkTriangleFilter, - vtkTubeFilter, - vtkWarpScalar, - vtkWindowedSincPolyDataFilter -}; - -export { General as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/AppendPolyData.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/AppendPolyData.d.ts deleted file mode 100644 index 555e04bb..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/AppendPolyData.d.ts +++ /dev/null @@ -1,103 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; - -export enum DesiredOutputPrecision { - /** - * Output precision should match the input precision - */ - DEFAULT, - - /** - * Output single-precision floating-point (i.e. float32) - */ - SINGLE, - - /** - * Output double-precision floating point (i.e. float64) - */ - DOUBLE, -} - -/** - * - */ -export interface IAppendPolyDataInitialValues { - outputPointsPrecision?: DesiredOutputPrecision; -} - -type vtkAppendPolyDataBase = vtkObject & vtkAlgorithm; - -export interface vtkAppendPolyData extends vtkAppendPolyDataBase { - /** - * Get the desired precision for the output types. - */ - getOutputPointsPrecision(): DesiredOutputPrecision; - - /** - * Set the desired precision for the output types. - * @param outputPointsPrecision - */ - setOutputPointsPrecision( - outputPointsPrecision: DesiredOutputPrecision - ): boolean; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkAppendPolyData characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IAppendPolyDataInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IAppendPolyDataInitialValues -): void; - -/** - * Method used to create a new instance of vtkAppendPolyData - * @param {IAppendPolyDataInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IAppendPolyDataInitialValues -): vtkAppendPolyData; - -/** - * vtkAppendPolyData - append one or more polygonal datasets together - * - * vtkAppendPolyData is a filter that appends one of more polygonal datasets into a - * single polygonal dataset. All geometry is extracted and appended, but point and - * cell attributes (i.e., scalars, vectors, normals) are extracted and appended - * only if all datasets have the point and/or cell attributes available. (For - * example, if one dataset has point scalars but another does not, point scalars - * will not be appended.) - * - * @example - * Provide the first input to the filter via the standard - * `setInput(Data/Connection)` methods. Any additional inputs can be provided via - * the `addInput(Data/Connection)` methods. When only a single input is provided, - * it is passed through as is to the output. - * - * ```js - * const cone = vtkConeSource.newInstance(); - * const cylinder = vtkCylinderSource.newInstance(); - * - * const appendPolyData = vtkAppendPolyData.newInstance(); - * appendPolyData.setInputConnection(cone.getOutputPort()); - * appendPolyData.addInputConnection(cylinder.getOutputPort()); - * - * const appendedData = appendPolyData.getOutputData(); - * ``` - */ -export declare const vtkAppendPolyData: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkAppendPolyData; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/AppendPolyData.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/AppendPolyData.js deleted file mode 100644 index 7b1e5895..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/AppendPolyData.js +++ /dev/null @@ -1,226 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkPoints from '../../Common/Core/Points.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import { DesiredOutputPrecision } from '../../Common/DataModel/DataSetAttributes/Constants.js'; -import { VtkDataTypes } from '../../Common/Core/DataArray/Constants.js'; - -const { - vtkErrorMacro -} = macro; -function offsetCellArray(typedArray, offset) { - let currentIdx = 0; - return typedArray.map((value, index) => { - if (index === currentIdx) { - currentIdx += value + 1; - return value; - } - return value + offset; - }); -} -function appendCellData(dest, src, ptOffset, cellOffset) { - dest.set(offsetCellArray(src, ptOffset), cellOffset); -} - -// ---------------------------------------------------------------------------- -// vtkAppendPolyData methods -// ---------------------------------------------------------------------------- - -function vtkAppendPolyData(publicAPI, model) { - // Set our classname - model.classHierarchy.push('vtkAppendPolyData'); - publicAPI.requestData = (inData, outData) => { - // implement requestData - const numberOfInputs = publicAPI.getNumberOfInputPorts(); - if (!numberOfInputs) { - vtkErrorMacro('No input specified.'); - return; - } - if (numberOfInputs === 1) { - // pass through filter - outData[0] = inData[0]; - return; - } - - // Allocate output - const output = outData[0] && inData[0] !== outData[0] ? outData[0].initialize() : vtkPolyData.newInstance(); - let numPts = 0; - let pointType = 0; - let ttype = 1; - let firstType = 1; - let numVerts = 0; - let numLines = 0; - let numStrips = 0; - let numPolys = 0; - - // Field data is propagated to output only if present in all inputs - let hasPtNormals = true; // assume present by default - let hasPtTCoords = true; - let hasPtScalars = true; - for (let i = 0; i < numberOfInputs; i++) { - const ds = inData[i]; - if (!ds) { - // eslint-disable-next-line - continue; - } - const dsNumPts = ds.getPoints().getNumberOfPoints(); - numPts += dsNumPts; - numVerts += ds.getVerts().getNumberOfValues(); - numLines += ds.getLines().getNumberOfValues(); - numStrips += ds.getStrips().getNumberOfValues(); - numPolys += ds.getPolys().getNumberOfValues(); - if (dsNumPts) { - if (firstType) { - firstType = 0; - pointType = ds.getPoints().getDataType(); - } - ttype = ds.getPoints().getDataType(); - pointType = pointType > ttype ? pointType : ttype; - } - const ptD = ds.getPointData(); - if (ptD) { - hasPtNormals = hasPtNormals && ptD.getNormals() !== null; - hasPtTCoords = hasPtTCoords && ptD.getTCoords() !== null; - hasPtScalars = hasPtScalars && ptD.getScalars() !== null; - } else { - hasPtNormals = false; - hasPtTCoords = false; - hasPtScalars = false; - } - } - if (model.outputPointsPrecision === DesiredOutputPrecision.SINGLE) { - pointType = VtkDataTypes.FLOAT; - } else if (model.outputPointsPrecision === DesiredOutputPrecision.DOUBLE) { - pointType = VtkDataTypes.DOUBLE; - } - const points = vtkPoints.newInstance({ - dataType: pointType - }); - points.setNumberOfPoints(numPts); - const pointData = points.getData(); - const vertData = new Uint32Array(numVerts); - const lineData = new Uint32Array(numLines); - const stripData = new Uint32Array(numStrips); - const polyData = new Uint32Array(numPolys); - let newPtNormals = null; - let newPtTCoords = null; - let newPtScalars = null; - const lds = inData[numberOfInputs - 1]; - if (hasPtNormals) { - const dsNormals = lds.getPointData().getNormals(); - newPtNormals = vtkDataArray.newInstance({ - numberOfComponents: 3, - numberOfTuples: numPts, - size: 3 * numPts, - dataType: dsNormals.getDataType(), - name: dsNormals.getName() - }); - } - if (hasPtTCoords) { - const dsTCoords = lds.getPointData().getTCoords(); - newPtTCoords = vtkDataArray.newInstance({ - numberOfComponents: 2, - numberOfTuples: numPts, - size: 2 * numPts, - dataType: dsTCoords.getDataType(), - name: dsTCoords.getName() - }); - } - if (hasPtScalars) { - const dsScalars = lds.getPointData().getScalars(); - newPtScalars = vtkDataArray.newInstance({ - numberOfComponents: dsScalars.getNumberOfComponents(), - numberOfTuples: numPts, - size: numPts * dsScalars.getNumberOfComponents(), - dataType: dsScalars.getDataType(), - name: dsScalars.getName() - }); - } - numPts = 0; - numVerts = 0; - numLines = 0; - numStrips = 0; - numPolys = 0; - for (let i = 0; i < numberOfInputs; i++) { - const ds = inData[i]; - pointData.set(ds.getPoints().getData(), numPts * 3); - appendCellData(vertData, ds.getVerts().getData(), numPts, numVerts); - numVerts += ds.getVerts().getNumberOfValues(); - appendCellData(lineData, ds.getLines().getData(), numPts, numLines); - numLines += ds.getLines().getNumberOfValues(); - appendCellData(stripData, ds.getStrips().getData(), numPts, numStrips); - numStrips += ds.getStrips().getNumberOfValues(); - appendCellData(polyData, ds.getPolys().getData(), numPts, numPolys); - numPolys += ds.getPolys().getNumberOfValues(); - const dsPD = ds.getPointData(); - if (hasPtNormals) { - const ptNorms = dsPD.getNormals(); - newPtNormals.getData().set(ptNorms.getData(), numPts * 3); - } - if (hasPtTCoords) { - const ptTCoords = dsPD.getTCoords(); - newPtTCoords.getData().set(ptTCoords.getData(), numPts * 2); - } - if (hasPtScalars) { - const ptScalars = dsPD.getScalars(); - newPtScalars.getData().set(ptScalars.getData(), numPts * newPtScalars.getNumberOfComponents()); - } - numPts += ds.getPoints().getNumberOfPoints(); - } - output.setPoints(points); - output.getVerts().setData(vertData); - output.getLines().setData(lineData); - output.getStrips().setData(stripData); - output.getPolys().setData(polyData); - if (newPtNormals) { - output.getPointData().setNormals(newPtNormals); - } - if (newPtTCoords) { - output.getPointData().setTCoords(newPtTCoords); - } - if (newPtScalars) { - output.getPointData().setScalars(newPtScalars); - } - outData[0] = output; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - outputPointsPrecision: DesiredOutputPrecision.DEFAULT -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.setGet(publicAPI, model, ['outputPointsPrecision']); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - - // Object specific methods - vtkAppendPolyData(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkAppendPolyData'); - -// ---------------------------------------------------------------------------- - -var vtkAppendPolyData$1 = { - newInstance, - extend -}; - -export { vtkAppendPolyData$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/Calculator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/Calculator.js deleted file mode 100644 index 39c2f281..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/Calculator.js +++ /dev/null @@ -1,227 +0,0 @@ -import vtk from '../../vtk.js'; -import { m as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkPoints from '../../Common/Core/Points.js'; -import { FieldDataTypes } from '../../Common/DataModel/DataSet/Constants.js'; -import { AttributeTypes } from '../../Common/DataModel/DataSetAttributes/Constants.js'; - -const { - vtkWarningMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkCalculator methods -// ---------------------------------------------------------------------------- - -function vtkCalculator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCalculator'); - publicAPI.setFormula = formula => { - if (formula === model.formula) { - return false; - } - model.formula = formula; - publicAPI.modified(); - return true; - }; - publicAPI.getFormula = () => model.formula; - publicAPI.augmentInputArrays = (locn, arraysIn) => { - const arraysOut = arraysIn.slice(0); // shallow-copy the inputs - // Make point coordinates available whenever the field-data is associated with - // points or graph vertices: - if (locn === FieldDataTypes.POINT || locn === FieldDataTypes.VERTEX) { - arraysOut.push({ - location: FieldDataTypes.COORDINATE - }); - } - // TODO: Make cell connectivity available when field-data is associated with - // cells or graph edges. - return arraysOut; - }; - publicAPI.createSimpleFormulaObject = function (locn, arrNames, resultName, singleValueFormula) { - let options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {}; - return { - getArrays: inData => ({ - // don't augment input data array in case of structured input dataset - input: inData[0]?.isA('vtkImageData') ? arrNames.map(x => ({ - location: locn, - name: x - })) : publicAPI.augmentInputArrays(locn, arrNames.map(x => ({ - location: locn, - name: x - }))), - output: [{ - location: locn, - name: resultName, - attribute: 'outputAttributeType' in options ? options.outputAttributeType : AttributeTypes.SCALARS, - numberOfComponents: 'numberOfOutputComponents' in options ? options.numberOfOutputComponents : 1 - }] - }), - evaluate: (arraysIn, arraysOut) => { - const tuples = new Array(arraysIn.length); - const arrayInAccessors = arraysIn.map((x, jj) => { - const nc = x.getNumberOfComponents(); - const rawData = x.getData(); - return nc === 1 ? ii => rawData[ii] : ii => x.getTuple(ii, tuples[jj]); - }); - const arrayOut = arraysOut[0]; - const arrayOutRaw = arrayOut.getData(); - const nc = arrayOut.getNumberOfComponents(); - let tupleOut = new Array(nc); - if (nc === 1) { - arrayOutRaw.forEach((xxx, ii) => { - arrayOutRaw[ii] = singleValueFormula(...arrayInAccessors.map(x => x(ii)), ii, tupleOut); - }); - } else { - const nt = arrayOut.getNumberOfTuples(); - for (let ii = 0; ii < nt; ++ii) { - tupleOut = singleValueFormula(...arrayInAccessors.map(x => x(ii)), ii, tupleOut); - arrayOut.setTuple(ii, tupleOut); - } - } - } - }; - }; - publicAPI.setFormulaSimple = function (locn, arrNames, resultName, formula) { - let options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {}; - return publicAPI.setFormula(publicAPI.createSimpleFormulaObject(locn, arrNames, resultName, formula, options)); - }; - publicAPI.prepareArrays = (arraySpec, inData, outData) => { - const arraysIn = []; - const arraysOut = []; - arraySpec.input.forEach(spec => { - if (spec.location === FieldDataTypes.COORDINATE) { - arraysIn.push(inData.getPoints()); - } else { - const fetchArrayContainer = [[FieldDataTypes.UNIFORM, x => x.getFieldData()], [FieldDataTypes.POINT, x => x.getPointData()], [FieldDataTypes.CELL, x => x.getCellData()], [FieldDataTypes.VERTEX, x => x.getVertexData()], [FieldDataTypes.EDGE, x => x.getEdgeData()], [FieldDataTypes.ROW, x => x.getRowData()]].reduce((result, value) => { - result[value[0]] = value[1]; - return result; - }, {}); - const dsa = 'location' in spec && spec.location in fetchArrayContainer ? fetchArrayContainer[spec.location](inData) : null; - if (dsa) { - if (spec.name) { - arraysIn.push(dsa.getArrayByName(spec.name)); - } else if ('index' in spec) { - arraysIn.push(dsa.getArrayByIndex(spec.index)); - } else if ('attribute' in spec && spec.location !== FieldDataTypes.UNIFORM) { - arraysIn.push(dsa.getActiveAttribute(spec.attribute)); - } else { - vtkWarningMacro(`No matching array for specifier "${JSON.stringify(spec)}".`); - arraysIn.push(null); - } - } else { - vtkWarningMacro(`Specifier "${JSON.stringify(spec)}" did not provide a usable location.`); - arraysIn.push(null); - } - } - }); - arraySpec.output.forEach(spec => { - const fullSpec = { - ...spec - }; - const ncomp = 'numberOfComponents' in fullSpec ? fullSpec.numberOfComponents : 1; - if (spec.location === FieldDataTypes.UNIFORM && 'tuples' in fullSpec) { - fullSpec.size = ncomp * fullSpec.tuples; - } - if (spec.location === FieldDataTypes.COORDINATE) { - const inPts = inData.getPoints(); - const pts = vtkPoints.newInstance({ - dataType: inPts.getDataType() - }); - pts.setNumberOfPoints(inPts.getNumberOfPoints(), inPts.getNumberOfComponents()); - outData.setPoints(pts); - arraysOut.push(pts); - } else { - const fetchArrayContainer = [[FieldDataTypes.UNIFORM, x => x.getFieldData(), (x, y) => 'tuples' in y ? y.tuples : 0], [FieldDataTypes.POINT, x => x.getPointData(), x => x.getNumberOfPoints()], [FieldDataTypes.CELL, x => x.getCellData(), x => x.getNumberOfCells()], [FieldDataTypes.VERTEX, x => x.getVertexData(), x => x.getNumberOfVertices()], [FieldDataTypes.EDGE, x => x.getEdgeData(), x => x.getNumberOfEdges()], [FieldDataTypes.ROW, x => x.getRowData(), x => x.getNumberOfRows()]].reduce((result, value) => { - result[value[0]] = { - getData: value[1], - getSize: value[2] - }; - return result; - }, {}); - let dsa = null; - let tuples = 0; - if ('location' in spec && spec.location in fetchArrayContainer) { - dsa = fetchArrayContainer[spec.location].getData(outData); - tuples = fetchArrayContainer[spec.location].getSize(inData, fullSpec); - } - if (tuples <= 0) { - vtkWarningMacro(`Output array size could not be determined for ${JSON.stringify(spec)}.`); - arraysOut.push(null); - } else if (dsa) { - fullSpec.size = ncomp * tuples; - const arrOut = vtkDataArray.newInstance(fullSpec); - const arrIdx = dsa.addArray(arrOut); - if ('attribute' in fullSpec && spec.location !== FieldDataTypes.UNIFORM) { - dsa.setActiveAttributeByIndex(arrIdx, fullSpec.attribute); - } - arraysOut.push(arrOut); - } else { - vtkWarningMacro(`Specifier "${JSON.stringify(spec)}" did not provide a usable location.`); - arraysOut.push(null); - } - } - }); - return { - arraysIn, - arraysOut - }; - }; - publicAPI.requestData = (inData, outData) => { - if (!model.formula) { - return 0; - } - const arraySpec = model.formula.getArrays(inData); - const newDataSet = outData[0]?.initialize() || vtk({ - vtkClass: inData[0].getClassName() - }); - newDataSet.shallowCopy(inData[0]); - outData[0] = newDataSet; - const arrays = publicAPI.prepareArrays(arraySpec, inData[0], outData[0]); - model.formula.evaluate(arrays.arraysIn, arrays.arraysOut); - return 1; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - formula: { - getArrays: () => ({ - input: [], - output: [] - }), - evaluate: () => null - } -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - - // Object specific methods - vtkCalculator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCalculator'); - -// ---------------------------------------------------------------------------- - -var vtkCalculator$1 = { - newInstance, - extend -}; - -export { vtkCalculator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ClipClosedSurface.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ClipClosedSurface.d.ts deleted file mode 100644 index 5c647b30..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ClipClosedSurface.d.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { Vector3 } from './../../types'; -import vtkPlane from './../../Common/DataModel/Plane'; - -/** - * - */ -export enum ScalarMode { - NONE, - COLORS, - LABELS, -} - -/** - * - */ -export interface IClipClosedSurfaceInitialValues { - clippingPlanes?: vtkPlane[]; - tolerance?: number; - passPointData?: boolean; - triangulatePolys?: boolean; - scalarMode?: ScalarMode; - generateOutline?: boolean; - generateFaces?: boolean; - activePlaneId?: number; - baseColor?: Vector3; - clipColor?: Vector3; - activePlaneColor?: Vector3; - triangulationErrorDisplay?: boolean; -} - -type vtkClipClosedSurfaceBase = vtkObject & vtkAlgorithm; - -export interface vtkClipClosedSurface extends vtkClipClosedSurfaceBase { - /** - * - * @param {any} inData - * @param {any} outData - */ - requestData(inData: any, outData: any): void; - - /** - * Set scalarMode to NONE. - */ - setScalarModeToNone(): void; - - /** - * Set scalarMode to COLOR. - */ - setScalarModeToColor(): void; - - /** - * Set scalarMode to LABEL. - */ - setScalarModeToLabel(): void; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -/** - * Method use to decorate a given object (publicAPI+model) with vtkClipClosedSurface characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {object} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IClipClosedSurfaceInitialValues -): void; - -// ---------------------------------------------------------------------------- - -/** - * Method use to create a new instance of vtkClipClosedSurface - * @param {IClipClosedSurfaceInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IClipClosedSurfaceInitialValues -): vtkClipClosedSurface; - -/** - * vtkClipClosedSurface - */ -export declare const vtkClipClosedSurface: { - newInstance: typeof newInstance; - extend: typeof extend; - // constants - ScalarMode: typeof ScalarMode; -}; - -export default vtkClipClosedSurface; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ClipClosedSurface.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ClipClosedSurface.js deleted file mode 100644 index 44439ac1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ClipClosedSurface.js +++ /dev/null @@ -1,897 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { d as dot, f as distance2BetweenPoints } from '../../Common/Core/Math/index.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import { VtkDataTypes } from '../../Common/Core/DataArray/Constants.js'; -import vtkPoints from '../../Common/Core/Points.js'; -import vtkDataSetAttributes from '../../Common/DataModel/DataSetAttributes.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkContourTriangulator from './ContourTriangulator.js'; -import vtkEdgeLocator from '../../Common/DataModel/EdgeLocator.js'; -import Constants from './ClipClosedSurface/Constants.js'; - -const { - vtkErrorMacro, - capitalize -} = macro; -const { - ScalarMode -} = Constants; -function vtkClipClosedSurface(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkClipClosedSurface'); - publicAPI.getMTime = () => model.clippingPlanes.reduce((a, b) => b.getMTime() > a ? b.getMTime() : a, model.mtime); - - /** - * Take three colors as doubles, and convert to unsigned char. - * - * @param {Number} color1 - * @param {Number} color2 - * @param {Number} color3 - * @param {Number[3][3]} colors - */ - function createColorValues(color1, color2, color3, colors) { - const dcolors = [color1, color2, color3]; - const clamp = (n, min, max) => Math.min(Math.max(n, min), max); - for (let i = 0; i < 3; i++) { - for (let j = 0; j < 3; j++) { - colors[i][j] = Math.round(clamp(dcolors[i][j], 0, 1) * 255); - } - } - } - - /** - * Point interpolation for clipping and contouring, given the scalar - * values (v0, v1) for the two endpoints (p0, p1). The use of this - * function guarantees perfect consistency in the results. - * - * @param {vtkPoints} points - * @param {vtkDataArray} pointData - * @param {CCSEdgeLocator} locator - * @param {Number} tol - * @param {Number} i0 - * @param {Number} i1 - * @param {Number} v0 - * @param {Number} v1 - * @param {Number} i - * @returns {Number} - */ - function interpolateEdge(points, pointData, locator, tol, i0, i1, v0, v1) { - // This swap guarantees that exactly the same point is computed - // for both line directions, as long as the endpoints are the same. - if (v1 > 0) { - // eslint-disable-next-line no-param-reassign - [i0, i1] = [i1, i0]; - // eslint-disable-next-line no-param-reassign - [v0, v1] = [v1, v0]; - } - // After the above swap, i0 will be kept, and i1 will be clipped - - // Check to see if this point has already been computed - const edge = locator.insertUniqueEdge(i0, i1); - if (edge.value != null) { - return edge.value; - } - - // Get the edge and interpolate the new point - const p0 = points.getPoint(i0); - const p1 = points.getPoint(i1); - const f = v0 / (v0 - v1); - const s = 1.0 - f; - const t = 1.0 - s; - const p = [s * p0[0] + t * p1[0], s * p0[1] + t * p1[1], s * p0[2] + t * p1[2]]; - const tol2 = tol * tol; - - // Make sure that new point is far enough from kept point - if (distance2BetweenPoints(p, p0) < tol2) { - edge.value = i0; - return i0; - } - if (distance2BetweenPoints(p, p1) < tol2) { - edge.value = i1; - return i1; - } - edge.value = points.insertNextTuple(p); - pointData.interpolateData(pointData, i0, i1, edge.value, t); - return edge.value; - } - - /** - * Method for clipping lines and copying the scalar data. - * - * @param {vtkPoints} points - * @param {vtkDataArray} pointScalars - * @param {vtkDataSetAttributesk} pointData - * @param {vtkEdgeLocator} edgeLocator - * @param {vtkCellArray} inputLines - * @param {vtkCellArray} outputLines - * @param {vtkDataSetAttributes} inLineData - * @param {vtkDataSetAttributes} outLineData - */ - function clipLines(points, pointScalars, pointData, edgeLocator, inputLines, outputLines, inLineData, outLineData) { - let numPts; - let i0; - let i1; - let v0; - let v1; - let c0; - let c1; - const linePts = []; - const values = inputLines.getData(); - let cellId = 0; - for (let i = 0; i < values.length; i += numPts + 1, cellId++) { - numPts = values[i]; - i1 = values[i + 1]; - v1 = pointScalars.getData()[i1]; - c1 = v1 > 0; - for (let j = 2; j <= numPts; j++) { - i0 = i1; - v0 = v1; - c0 = c1; - i1 = values[i + j]; - v1 = pointScalars.getData()[i1]; - c1 = v1 > 0; - - // If at least one point wasn't clipped - if (c0 || c1) { - // If only one end was clipped, interpolate new point - if (c0 ? !c1 : c1) { - linePts[c0 ? 1 : 0] = interpolateEdge(points, pointData, edgeLocator, model.tolerance, i0, i1, v0, v1); - } - - // If endpoints are different, insert the line segment - if (i0 !== i1) { - linePts[0] = i0; - linePts[1] = i1; - const newCellId = outputLines.insertNextCell(linePts); - // outLineData.copyData(inLineData, cellId, newCellId); - outLineData.passData(inLineData, cellId, newCellId); - } - } - } - } - } - - /** - * Break polylines into individual lines, copying scalar values from - * inputScalars starting at firstLineScalar. If inputScalars is zero, - * then scalars will be set to color. If scalars is zero, then no - * scalars will be generated. - * - * @param {vtkCellArray} inputLines - * @param {vtkCellArray} outputLines - * @param {vtkDataArray} inputScalars - * @param {Number} firstLineScalar - * @param {vtkDataArray} scalars - * @param {Vector3} color - */ - function breakPolylines(inputLines, outputLines, inputScalars, firstLineScalar, scalars, color) { - const cellColor = [...color]; - let cellId = 0; - const values = inputLines.getData(); - let numPts; - for (let i = 0; i < values.length; i += numPts + 1) { - numPts = values[i]; - if (inputScalars) { - inputScalars.getTuple(firstLineScalar + cellId++, cellColor); - } - for (let j = 1; j < numPts; j++) { - outputLines.insertNextCell([values[i + j], values[i + j + 1]]); - if (scalars) { - scalars.insertNextTuple(cellColor); - } - } - } - } - - /** - * Copy polygons and their associated scalars to a new array. - * If inputScalars is set to zero, set polyScalars to color instead. - * If polyScalars is set to zero, don't generate scalars. - * - * @param {vtkCellArray} inputPolys - * @param {vtkCellArray} outputPolys - * @param {vtkDataArray} inputScalars - * @param {Number} firstPolyScalar - * @param {vtkDataArray} polyScalars - * @param {Vector3} color - */ - function copyPolygons(inputPolys, outputPolys, inputScalars, firstPolyScalar, polyScalars, color) { - if (!inputPolys) { - return; - } - outputPolys.deepCopy(inputPolys); - if (polyScalars) { - const scalarValue = [...color]; - const n = outputPolys.getNumberOfCells(); - polyScalars.insertTuple(n - 1, scalarValue); - if (inputScalars) { - for (let i = 0; i < n; i++) { - inputScalars.getTuple(i + firstPolyScalar, scalarValue); - polyScalars.setTuple(i, scalarValue); - } - } else { - for (let i = 0; i < n; i++) { - polyScalars.setTuple(i, scalarValue); - } - } - } - } - function breakTriangleStrips(inputStrips, polys, inputScalars, firstStripScalar, polyScalars, color) { - if (inputStrips.getNumberOfCells() === 0) { - return; - } - const values = inputStrips.getData(); - let cellId = firstStripScalar; - let numPts; - for (let i = 0; i < values.length; i += numPts + 1, cellId++) { - numPts = values[i]; - // vtkTriangleStrip.decomposeStrip(numPts, values, polys); - let p1 = values[i + 1]; - let p2 = values[i + 2]; - for (let j = 0; j < numPts - 2; j++) { - const p3 = values[i + j + 3]; - if (j % 2) { - polys.insertNextCell([p2, p1, p3]); - } else { - polys.insertNextCell([p1, p2, p3]); - } - p1 = p2; - p2 = p3; - } - if (polyScalars) { - const scalarValue = [...color]; - if (inputScalars) { - // If there are input scalars, use them instead of "color" - inputScalars.getTuple(cellId, scalarValue); - } - const n = numPts - 3; - const m = polyScalars.getNumberOfTuples(); - if (n >= 0) { - // First insert is just to allocate space - polyScalars.insertTuple(m + n, scalarValue); - for (let k = 0; k < n; k++) { - polyScalars.setTuple(m + k, scalarValue); - } - } - } - } - } - - /** - * Given some closed contour lines, create a triangle mesh that - * fills those lines. The input lines must be single-segment lines, - * not polylines. The input lines do not have to be in order. - * Only lines from firstLine to will be used. Specify the normal - * of the clip plane, which will be opposite the normals - * of the polys that will be produced. If outCD has scalars, then color - * scalars will be added for each poly that is created. - * - * @param {vtkPolyData} polyData - * @param {Number} firstLine - * @param {Number} numLines - * @param {vtkCellArray} outputPolys - * @param {Vector3} normal - */ - function triangulateContours(polyData, firstLine, numLines, outputPolys, normal) { - // If no cut lines were generated, there's nothing to do - if (numLines <= 0) { - return; - } - const triangulationError = !vtkContourTriangulator.triangulateContours(polyData, firstLine, numLines, outputPolys, [-normal[0], -normal[1], -normal[2]]); - if (triangulationError && model.triangulationErrorDisplay) { - vtkErrorMacro('Triangulation failed, polyData may not be watertight.'); - } - } - - /** - * Break polylines into individual lines, copying scalar values from - * inputScalars starting at firstLineScalar. If inputScalars is zero, - * then scalars will be set to color. If scalars is zero, then no - * scalars will be generated. - * - * @param {Number[]} polygon - * @param {vtkPoints} points - * @param {vtkCellArray} triangles - * @returns {Boolean} - */ - function triangulatePolygon(polygon, points, triangles) { - return vtkContourTriangulator.triangulatePolygon(polygon, points, triangles); - } - - /** - * Clip and contour polys in one step, in order to guarantee - * that the contour lines exactly match the new free edges of - * the clipped polygons. This exact correspondence is necessary - * in order to guarantee that the surface remains closed. - * - * @param {vtkPoints} points - * @param {vtkDataArray} pointScalars - * @param {vtkDataSetAttributes} pointData - * @param {vtkEdgeLocator} edgeLocator - * @param {Number} triangulate - * @param {vtkCellArray} inputPolys - * @param {vtkCellArray} outputPolys - * @param {vtkCellArray} outputLines - * @param {vtkDataSetAttributes} inCellData - * @param {vtkDataSetAttributes} outPolyData - * @param {vtkDataSetAttributes} outLineData - */ - function clipAndContourPolys(points, pointScalars, pointData, edgeLocator, triangulate, inputPolys, outputPolys, outputLines, inCellData, outPolyData, outLineData) { - const idList = model._idList; - // How many sides for output polygons? - let polyMax = Number.MAX_VALUE; - if (triangulate) { - if (triangulate < 4) { - // triangles only - polyMax = 3; - } else if (triangulate === 4) { - // allow triangles and quads - polyMax = 4; - } - } - - // eslint-disable-next-line prefer-const - let triangulationFailure = false; - - // Go through all cells and clip them - const values = inputPolys.getData(); - const linePts = []; - let cellId = 0; - let numPts; - for (let i = 0; i < values.length; i += numPts + 1, cellId++) { - numPts = values[i]; - let i1 = values[i + numPts]; - let v1 = pointScalars.getData()[i1]; - let c1 = v1 > 0; - - // The ids for the current edge: init j0 to -1 if i1 will be clipped - let j0 = c1 ? i1 : -1; - let j1 = 0; - - // To store the ids of the contour line - linePts[0] = 0; - linePts[1] = 0; - let idListIdx = 0; - for (let j = 1; j <= numPts; j++) { - // Save previous point info - const i0 = i1; - const v0 = v1; - const c0 = c1; - - // Generate new point info - i1 = values[i + j]; - v1 = pointScalars.getData()[i1]; - c1 = v1 > 0; - - // If at least one edge end point wasn't clipped - if (c0 || c1) { - // If only one end was clipped, interpolate new point - if (c0 ? !c1 : c1) { - j1 = interpolateEdge(points, pointData, edgeLocator, model.tolerance, i0, i1, v0, v1); - if (j1 !== j0) { - idList[idListIdx++] = j1; - j0 = j1; - } - - // Save as one end of the contour line - linePts[c0 ? 1 : 0] = j1; - } - if (c1) { - j1 = i1; - if (j1 !== j0) { - idList[idListIdx++] = j1; - j0 = j1; - } - } - } - } - - // Insert the clipped poly - const numPoints = idListIdx; - idList.length = numPoints; - if (model.triangulatePolys && numPoints > polyMax) { - // TODO: Support triangulatePolygon - let newCellId = outputPolys.getNumberOfCells(); - // Triangulate the poly and insert triangles into output. - const success = triangulatePolygon(idList, points, outputPolys); - if (!success) { - triangulationFailure = true; - } - - // Copy the attribute data to the triangle cells - const ncells = outputPolys.getNumberOfCells(); - for (; newCellId < ncells; newCellId++) { - outPolyData.passData(inCellData, cellId, newCellId); - } - } else if (numPoints > 2) { - // Insert the polygon without triangulating it - const newCellId = outputPolys.insertNextCell(idList); - outPolyData.passData(inCellData, cellId, newCellId); - } - - // Insert the contour line if one was created - if (linePts[0] !== linePts[1]) { - const newCellId = outputLines.insertNextCell(linePts); - outLineData.passData(inCellData, cellId, newCellId); - } - } - if (triangulationFailure && model.triangulationErrorDisplay) { - vtkErrorMacro('Triangulation failed, output may not be watertight'); - } - } - - /** - * Squeeze the points and store them in the output. Only the points that - * are used by the cells will be saved, and the pointIds of the cells will - * be modified. - * - * @param {vtkPolyData} output - * @param {vtkPoints} points - * @param {vtkDataSetAttributes} pointData - * @param {String} outputPointDataType - */ - function squeezeOutputPoints(output, points, pointData, outputPointDataType) { - // Create a list of points used by cells - const n = points.getNumberOfPoints(); - let numNewPoints = 0; - const outPointData = output.getPointData(); - const pointMap = []; - pointMap.length = n; - const cellArrays = [output.getVerts(), output.getLines(), output.getPolys(), output.getStrips()]; - - // Find all the newPoints that are used by cells - cellArrays.forEach(cellArray => { - if (!cellArray) { - return; - } - const values = cellArray.getData(); - let numPts; - let pointId; - for (let i = 0; i < values.length; i += numPts + 1) { - numPts = values[i]; - for (let j = 1; j <= numPts; j++) { - pointId = values[i + j]; - if (pointMap[pointId] === undefined) { - pointMap[pointId] = numNewPoints++; - } - } - } - }); - - // Create exactly the number of points that are required - const newPoints = vtkPoints.newInstance({ - size: numNewPoints * 3, - dataType: outputPointDataType - }); - // outPointData.copyAllocate(pointData, numNewPoints, 0); - - const p = []; - let newPointId; - for (let pointId = 0; pointId < n; pointId++) { - newPointId = pointMap[pointId]; - if (newPointId !== undefined) { - points.getPoint(pointId, p); - newPoints.setTuple(newPointId, p); - outPointData.passData(pointData, pointId, newPointId); - // outPointData.copyData(pointData, pointId, newPointId); - } - } - - // Change the cell pointIds to reflect the new point array - cellArrays.forEach(cellArray => { - if (!cellArray) { - return; - } - const values = cellArray.getData(); - let numPts; - let pointId; - for (let i = 0; i < values.length; i += numPts + 1) { - numPts = values[i]; - for (let j = 1; j <= numPts; j++) { - pointId = values[i + j]; - values[i + j] = pointMap[pointId]; - } - } - }); - output.setPoints(newPoints); - } - publicAPI.requestData = (inData, outData) => { - // implement requestData - const input = inData[0]; - const output = outData[0]?.initialize() || vtkPolyData.newInstance(); - outData[0] = output; - if (!input) { - vtkErrorMacro('Invalid or missing input'); - return; - } - if (model._idList == null) { - model._idList = []; - } else { - model._idList.length = 0; - } - - // Get the input points - const inputPoints = input.getPoints(); - let numPts = 0; - let inputPointsType = VtkDataTypes.FLOAT; - if (inputPoints) { - numPts = inputPoints.getNumberOfPoints(); - inputPointsType = inputPoints.getDataType(); - } - - // Force points to double precision, copy the point attributes - const points = vtkPoints.newInstance({ - size: numPts * 3, - dataType: VtkDataTypes.DOUBLE - }); - const pointData = vtkDataSetAttributes.newInstance(); - let inPointData = null; - if (model.passPointData) { - inPointData = input.getPointData(); - // pointData.interpolateAllocate(inPointData, numPts, 0); - } - - const point = []; - for (let ptId = 0; ptId < numPts; ptId++) { - inputPoints.getPoint(ptId, point); - points.setTuple(ptId, point); - if (inPointData) { - // pointData.copyData(inPointData, ptId, ptId); - pointData.passData(inPointData, ptId, ptId); - } - } - - // An edge locator to avoid point duplication while clipping - const edgeLocator = vtkEdgeLocator.newInstance(); - - // A temporary polydata for the contour lines that are triangulated - const tmpContourData = vtkPolyData.newInstance(); - - // The cell scalars - let lineScalars; - let polyScalars; - let inputScalars; - - // For input scalars: the offsets to the various cell types - let firstLineScalar = 0; - let firstPolyScalar = 0; - let firstStripScalar = 0; - - // Make the colors to be used on the data - let numberOfScalarComponents = 1; - const colors = [[0, 0, 0], [0, 0, 0], [0, 0, 0]]; - if (model.scalarMode === ScalarMode.COLORS) { - numberOfScalarComponents = 3; - createColorValues(model.baseColor, model.clipColor, model.activePlaneColor, colors); - } else if (model.scalarMode === ScalarMode.LABELS) { - colors[0][0] = 0; - colors[1][0] = 1; - colors[2][0] = 2; - } - - // This is set if we have to work with scalars. The input scalars - // will be copied if they are unsigned char with 3 components, otherwise - // new scalars will be generated. - const numVerts = input.getVerts()?.getNumberOfCells() || 0; - const inputLines = input.getLines(); - const numLines = inputLines?.getNumberOfCells() || 0; - const inputPolys = input.getPolys(); - const numPolys = inputPolys?.getNumberOfCells() || 0; - const numStrips = input.getStrips()?.getNumberOfCells() || 0; - if (model.scalarMode !== ScalarMode.NONE) { - lineScalars = vtkDataArray.newInstance({ - dataType: VtkDataTypes.UNSIGNED_CHAR, - empty: true, - // size: 0, - // values: new Uint8Array(numLines * 3), - numberOfComponents: numberOfScalarComponents - }); - const tryInputScalars = input.getCellData().getScalars(); - // Get input scalars if they are RGB color scalars - if (tryInputScalars && tryInputScalars.getDataType() === VtkDataTypes.UNSIGNED_CHAR && numberOfScalarComponents === 3 && tryInputScalars.getNumberOfComponents() === 3) { - inputScalars = input.getCellData().getScalars(); - firstLineScalar = numVerts; - firstPolyScalar = numVerts + numLines; - firstStripScalar = numVerts + numLines + numPolys; - } - } - - // Break the input lines into segments, generate scalars for lines - let lines; - if (numLines > 0) { - lines = vtkCellArray.newInstance({ - dataType: inputLines.getDataType(), - values: new Uint8Array(numLines * 3), - // we will have at least that amount of lines - size: 0 - }); - breakPolylines(inputLines, lines, inputScalars, firstLineScalar, lineScalars, colors[0]); - } else { - lines = vtkCellArray.newInstance({ - empty: true - }); - } - let polys = null; - let polyMax = 3; - if (numPolys > 0 || numStrips > 0) { - // If there are line scalars, then poly scalars are needed too - if (lineScalars) { - polyScalars = vtkDataArray.newInstance({ - dataType: VtkDataTypes.UNSIGNED_CHAR, - empty: true, - // size: 0, - // values: new Uint8Array(inputPolys.getNumberOfCells(false) * 3), - numberOfComponents: numberOfScalarComponents - }); - } - polys = vtkCellArray.newInstance(); - copyPolygons(inputPolys, polys, inputScalars, firstPolyScalar, polyScalars, colors[0]); - // TODO: Support triangle strips - breakTriangleStrips(input.getStrips(), polys, inputScalars, firstStripScalar, polyScalars, colors[0]); - - // Check if the input has polys and quads or just triangles - polyMax = inputPolys.getCellSizes().reduce((a, b) => a > b ? a : b, 0); - } - - // Arrays for storing the clipped lines and polys - let newLines = vtkCellArray.newInstance({ - dataType: lines.getDataType(), - empty: true - }); - let newPolys = null; - if (polys) { - newPolys = vtkCellArray.newInstance({ - dataType: polys.getDataType(), - empty: true - }); - } - - // The line scalars, for coloring the outline - let inLineData = vtkDataSetAttributes.newInstance(); - inLineData.copyScalarsOn(); - inLineData.setScalars(lineScalars); - - // The poly scalars, for coloring the faces - let inPolyData = vtkDataSetAttributes.newInstance(); - inPolyData.copyScalarsOn(); - inPolyData.setScalars(polyScalars); - - // Also create output attribute data - let outLineData = vtkDataSetAttributes.newInstance(); - outLineData.copyScalarsOn(); - let outPolyData = vtkDataSetAttributes.newInstance(); - outPolyData.copyScalarsOn(); - const planes = model.clippingPlanes; - - // Go through the clipping planes and clip the input with each plane - for (let planeId = 0; planeId < planes.length; planeId++) { - const plane = planes[planeId]; - let triangulate = 5; - if (planeId === planes.length - 1) { - triangulate = polyMax; - } - const active = planeId === model.activePlaneId; - - // Convert the plane into an easy-to-evaluate function - const pc = plane.getNormal(); - // OK to modify pc because vtkPlane.getNormal() returns a copy - pc[3] = -dot(pc, plane.getOrigin()); - - // Create the clip scalars by evaluating the plane at each point - const numPoints = points.getNumberOfPoints(); - - // The point scalars, needed for clipping (not for the output!) - const pointScalars = vtkDataArray.newInstance({ - dataType: VtkDataTypes.DOUBLE, - size: numPoints - }); - const pointScalarsData = pointScalars.getData(); - const pointsData = points.getData(); - let i = 0; - for (let pointId = 0; pointId < numPoints; pointId) { - pointScalarsData[pointId++] = pointsData[i++] * pc[0] + pointsData[i++] * pc[1] + pointsData[i++] * pc[2] + pc[3]; - } - - // Prepare the output scalars - // outLineData.copyAllocate(inLineData, 0, 0); - // outPolyData.copyAllocate(inPolyData, 0, 0); - - // Reset the locator - edgeLocator.initialize(); - - // Clip the lines - clipLines(points, pointScalars, pointData, edgeLocator, lines, newLines, inLineData, outLineData); - - // Clip the polys - if (polys) { - // Get the number of lines remaining after the clipping - const numClipLines = newLines.getNumberOfCells(); - - // Cut the polys to generate more lines - clipAndContourPolys(points, pointScalars, pointData, edgeLocator, triangulate, polys, newPolys, newLines, inPolyData, outPolyData, outLineData); - - // Add scalars for the newly-created contour lines - let scalars = outLineData.getScalars(); - if (scalars) { - // Set the color to the active color if plane is active - const color = colors[1 + (active ? 1 : 0)]; - const activeColor = colors[2]; - const numNewLines = newLines.getNumberOfCells(); - const oldColor = []; - for (let lineId = numClipLines; lineId < numNewLines; lineId++) { - scalars.getTuple(lineId, oldColor); - if (numberOfScalarComponents !== 3 || oldColor[0] !== activeColor[0] || oldColor[1] !== activeColor[1] || oldColor[2] !== activeColor[2]) { - scalars.setTuple(lineId, color); - } - } - } - - // Generate new polys from the cut lines - let cellId = newPolys.getNumberOfCells(); - const numClipAndContourLines = newLines.getNumberOfCells(); - - // Create a polydata for the lines - tmpContourData.setPoints(points); - tmpContourData.setLines(newLines); - tmpContourData.buildCells(); - triangulateContours(tmpContourData, numClipLines, numClipAndContourLines - numClipLines, newPolys, pc); - - // Add scalars for the newly-created polys - scalars = outPolyData.getScalars(); - if (scalars) { - const color = colors[1 + (active ? 1 : 0)]; - const numCells = newPolys.getNumberOfCells(); - if (numCells > cellId) { - // The insert allocates space up to numCells - 1 - scalars.insertTuple(numCells - 1, color); - for (; cellId < numCells; cellId++) { - scalars.setTuple(cellId, color); - } - } - } - - // Add scalars to any diagnostic lines that added by - // triangulateContours(). In usual operation, no lines are added. - scalars = outLineData.getScalars(); - if (scalars) { - const color = [0, 255, 255]; - const numCells = newLines.getNumberOfCells(); - if (numCells > numClipAndContourLines) { - // The insert allocates space up to numCells - 1 - scalars.insertTuple(numCells - 1, color); - for (let lineCellId = numClipAndContourLines; lineCellId < numCells; lineCellId++) { - scalars.setTuple(lineCellId, color); - } - } - } - } - - // Swap the lines, points, etcetera: old output becomes new input - [lines, newLines] = [newLines, lines]; - newLines.initialize(); - if (polys) { - [polys, newPolys] = [newPolys, polys]; - newPolys.initialize(); - } - [inLineData, outLineData] = [outLineData, inLineData]; - outLineData.initialize(); - [inPolyData, outPolyData] = [outPolyData, inPolyData]; - outPolyData.initialize(); - } - - // Get the line scalars - const scalars = inLineData.getScalars(); - if (model.generateOutline) { - output.setLines(lines); - } else if (scalars) { - scalars.initialize(); - } - if (model.generateFaces) { - output.setPolys(polys); - if (polys && scalars) { - const pScalars = inPolyData.getScalars(); - const m = scalars.getNumberOfTuples(); - const n = pScalars.getNumberOfTuples(); - if (n > 0) { - const color = [0, 0, 0]; - - // This is just to expand the array - scalars.insertTuple(n + m - 1, color); - - // Fill in the poly scalars - for (let i = 0; i < n; i++) { - pScalars.getTuple(i, color); - scalars.setTuple(i + m, color); - } - } - } - } - if (scalars && model.scalarMode === ScalarMode.COLORS) { - scalars.setName('Colors'); - output.getCellData().setScalars(scalars); - } else if (model.scalarMode === ScalarMode.LABELS) { - // Don't use VTK_UNSIGNED_CHAR or they will look like color scalars - // const categories = vtkSignedCharArray.newInstance(); - // categories.deepCopy(scalars); - // categories.setName("Labels"); - // output.getCellData().setScalars(categories); - // categories.delete(); - // TODO: Check - const categories = scalars.newClone(); - categories.setData(scalars.getData().slice()); - categories.setName('Labels'); - output.getCellData().setScalars(categories); - } else { - output.getCellData().setScalars(null); - } - - // Finally, store the points in the output - squeezeOutputPoints(output, points, pointData, inputPointsType); - // TODO: Check - // output.squeeze(); - }; - - Object.keys(ScalarMode).forEach(key => { - const name = capitalize(key.toLowerCase()); - publicAPI[`setScalarModeTo${name}`] = () => { - model.scalarMode = ScalarMode[key]; - }; - }); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - clippingPlanes: null, - tolerance: 1e-6, - passPointData: false, - triangulatePolys: false, - scalarMode: ScalarMode.NONE, - generateOutline: false, - generateFaces: true, - activePlaneId: -1, - baseColor: [255 / 255, 99 / 255, 71 / 255], - // Tomato - clipColor: [244 / 255, 164 / 255, 96 / 255], - // Sandy brown - activePlaneColor: [227 / 255, 207 / 255, 87 / 255], - // Banana - - triangulationErrorDisplay: false - // _idList: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - macro.setGet(publicAPI, model, ['clippingPlanes', 'tolerance', 'passPointData', 'triangulatePolys', 'scalarMode', 'generateOutline', 'generateFaces', 'activePlaneId', 'triangulationErrorDisplay']); - macro.setGetArray(publicAPI, model, ['baseColor', 'clipColor', 'activePlaneColor'], 3); - - // Object specific methods - vtkClipClosedSurface(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkClipClosedSurface'); - -// ---------------------------------------------------------------------------- - -var vtkClipClosedSurface$1 = { - newInstance, - extend, - ...Constants -}; - -export { vtkClipClosedSurface$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ClipClosedSurface/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ClipClosedSurface/Constants.js deleted file mode 100644 index 78ae70aa..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ClipClosedSurface/Constants.js +++ /dev/null @@ -1,10 +0,0 @@ -const ScalarMode = { - NONE: 0, - COLORS: 1, - LABELS: 2 -}; -var Constants = { - ScalarMode -}; - -export { ScalarMode, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ClosedPolyLineToSurfaceFilter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ClosedPolyLineToSurfaceFilter.js deleted file mode 100644 index 0bd28ea1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ClosedPolyLineToSurfaceFilter.js +++ /dev/null @@ -1,203 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; - -const { - vtkErrorMacro -} = macro; -class SegmentAgregator { - constructor() { - this.segmentMapping = {}; - this.segments = [null]; // to force first id to be 1 - this.faces = []; - } - addSegment(segment) { - const first = segment[0]; - const last = segment[segment.length - 1]; - if (first === last || segment.length < 2) { - return; - } - const mappingFirst = this.segmentMapping[first]; - const mappingLast = this.segmentMapping[last]; - if (mappingFirst !== undefined && mappingLast !== undefined) { - if (Math.abs(mappingFirst) === Math.abs(mappingLast)) { - // This make a closing loop - const idx = mappingFirst < mappingLast ? mappingLast : mappingFirst; - const seg = this.segments[idx]; - if (mappingFirst > 0) { - for (let i = 1; i < segment.length - 1; i++) { - seg.push(segment[i]); - } - } else { - for (let i = 1; i < segment.length - 1; i++) { - seg.unshift(segment[segment.length - 1 - i]); - } - } - this.faces.push(seg); - this.segments[idx] = null; - this.segmentMapping[first] = undefined; - this.segmentMapping[last] = undefined; - } else { - // we need to merge segments - // strategie: - // => remove and add them again in special order to induce merge - const idxHead = Math.abs(mappingFirst); - const idxTail = Math.abs(mappingLast); - const segHead = this.segments[idxHead]; - const segTail = this.segments[idxTail]; - this.segments[idxHead] = null; - this.segments[idxTail] = null; - this.segmentMapping[segHead[0]] = undefined; - this.segmentMapping[segTail[0]] = undefined; - this.segmentMapping[segHead[segHead.length - 1]] = undefined; - this.segmentMapping[segTail[segTail.length - 1]] = undefined; - - // This will lead to a single segment - this.addSegment(segment); - this.addSegment(segHead); - this.addSegment(segTail); - } - } else if (mappingFirst !== undefined) { - if (mappingFirst > 0) { - // The head of our segment match the tail of the existing one - const seg = this.segments[mappingFirst]; - for (let i = 1; i < segment.length; i++) { - seg.push(segment[i]); - } - // record new tail - this.segmentMapping[last] = mappingFirst; - } else { - // our segment should be reverted and put on the front of the existing one - const seg = this.segments[-mappingFirst]; - // record new head - this.segmentMapping[last] = mappingFirst; - for (let i = 1; i < segment.length; i++) { - seg.unshift(segment[i]); - } - } - // Erase used connection - this.segmentMapping[first] = undefined; - } else if (mappingLast !== undefined) { - if (mappingLast > 0) { - // The tail of our segment match the tail of the existing one - const seg = this.segments[mappingLast]; - for (let i = 1; i < segment.length; i++) { - seg.push(segment[segment.length - 1 - i]); - } - // record new tail - this.segmentMapping[first] = mappingLast; - } else { - // our segment should be reverted and put on the front of the existing one - const seg = this.segments[-mappingLast]; - - // record new head - this.segmentMapping[first] = mappingLast; - for (let i = 1; i < segment.length; i++) { - seg.unshift(segment[segment.length - i - 1]); - } - } - // Erase used connection - this.segmentMapping[last] = undefined; - } else { - // store segment for now - const id = this.segments.length; - this.segments.push(segment); - this.segmentMapping[first] = -id; - this.segmentMapping[last] = id; - } - } -} - -// ---------------------------------------------------------------------------- -// vtkClosedPolyLineToSurfaceFilter methods -// ---------------------------------------------------------------------------- - -function vtkClosedPolyLineToSurfaceFilter(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkClosedPolyLineToSurfaceFilter'); - - // -------------------------------------------------------------------------- - - publicAPI.requestData = (inData, outData) => { - // implement requestData - const input = inData[0]; - if (!input) { - vtkErrorMacro('Invalid or missing input'); - return; - } - const output = outData[0]?.initialize() || vtkPolyData.newInstance(); - output.shallowCopy(input); - - // Extract faces - const agregator = new SegmentAgregator(); - const lines = input.getLines().getData(); - let offset = 0; - while (offset < lines.length) { - const lineSize = lines[offset++]; - const lineSegment = []; - for (let i = 0; i < lineSize; i++) { - lineSegment.push(lines[offset + i]); - } - agregator.addSegment(lineSegment); - offset += lineSize; - } - - // Create CellArray for polys - const { - faces - } = agregator; - let cellArraySize = faces.length; - for (let i = 0; i < faces.length; i++) { - cellArraySize += faces[i].length; - } - const cellArray = new Uint16Array(cellArraySize); - offset = 0; - for (let i = 0; i < faces.length; i++) { - const face = faces[i]; - cellArray[offset++] = face.length; - for (let j = 0; j < face.length; j++) { - cellArray[offset++] = face[j]; - } - } - output.setPolys(vtkCellArray.newInstance({ - values: cellArray, - name: 'faces' - })); - outData[0] = output; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - - // Object specific methods - vtkClosedPolyLineToSurfaceFilter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkClosedPolyLineToSurfaceFilter'); - -// ---------------------------------------------------------------------------- - -var vtkClosedPolyLineToSurfaceFilter$1 = { - newInstance, - extend -}; - -export { vtkClosedPolyLineToSurfaceFilter$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ContourLoopExtraction.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ContourLoopExtraction.d.ts deleted file mode 100644 index c4447d8e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ContourLoopExtraction.d.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import vtkPolyData from './../../Common/DataModel/PolyData'; -/** - * Initial configuration values for vtkContourLoopExtraction instances. - */ -export interface IContourLoopExtractionInitialValues {} - -type vtkContourLoopExtractionBase = vtkObject & vtkAlgorithm; - -export interface vtkContourLoopExtraction extends vtkContourLoopExtractionBase { - /** - * Runs the contour extraction algorithm with the given input and output data. - * @param inData - The input data for the contour extraction. - * @param outData - The output data where the extracted contours will be stored. - */ - requestData(inData: vtkPolyData[], outData: vtkPolyData[]): void; - - /** - * Extracts contour loops from the given polydata input and populates the given output. - * @param input - The input polydata - * @param output - The output polydata - */ - extractContours(input: vtkPolyData, output: vtkPolyData): void; - - /** - * Traverses a loop starting from a given line and point, in a specified direction. - * @param pd - The polydata which to traverse. - * @param dir - The direction of traversal. - * @param startLineId - The ID of the starting line. - * @param startPtId - The ID of the starting point. - * @param loopPoints - The array to store the traversed points of the loop. - * @returns The last point ID after traversal. - */ - traverseLoop( - pd: vtkPolyData, - dir: number, - startLineId: number, - startPtId: number, - loopPoints: Array<{ t: number; ptId: number }> - ): number; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -/** - * Method use to decorate a given object (publicAPI+model) with vtkContourLoopExtraction characteristics. - * - * @param publicAPI - Object on which methods will be bound (public). - * @param model - Object on which data structure will be bound (protected). - * @param initialValues - (Optional) Initial values to assign to the model. - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IContourLoopExtractionInitialValues -): void; - -/** - * Method used to create a new instance of vtkContourLoopExtraction. - * - * @param initialValues - (Optional) Initial values for the instance. - */ -export function newInstance( - initialValues?: IContourLoopExtractionInitialValues -): vtkContourLoopExtraction; - -// ---------------------------------------------------------------------------- - -/** - * vtkContourLoopExtraction specific static methods. - */ -export declare const vtkContourLoopExtraction: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkContourLoopExtraction; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ContourLoopExtraction.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ContourLoopExtraction.js deleted file mode 100644 index 78c6daf1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ContourLoopExtraction.js +++ /dev/null @@ -1,135 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; - -const Dir = { - Forward: 1, - Backward: -1 -}; -const visited = new Set(); -function vtkContourLoopExtraction(publicAPI, model) { - publicAPI.requestData = (inData, outData) => { - const [input] = inData; - const output = outData[0]?.initialize() || vtkPolyData.newInstance(); - outData[0] = output; - publicAPI.extractContours(input, output); - output.modified(); - }; - publicAPI.traverseLoop = (pd, dir, startLineId, startPtId, loopPoints) => { - let lineId = startLineId; - let lastPtId = startPtId; - let terminated = false; - let numInserted = 0; - while (!terminated) { - const { - cellPointIds - } = pd.getCellPoints(lineId); - if (!cellPointIds) { - // eslint-disable-next-line no-continue - continue; - } - lastPtId = cellPointIds[0] !== lastPtId ? cellPointIds[0] : cellPointIds[1]; - numInserted++; - - // parametric point value - const t = dir * numInserted; - loopPoints.push({ - t, - ptId: lastPtId - }); - const lineCell = pd.getPointCells(lastPtId); - if (lineCell.length !== 2 || lastPtId === startPtId) { - // looped - return lastPtId; - } - if (lineCell.length === 2) { - // continue along loop - lineId = lineCell[0] !== lineId ? lineCell[0] : lineCell[1]; - visited.add(lineId); - } else { - // empty or invalid cell - terminated = true; - } - } - return lastPtId; - }; - publicAPI.extractContours = (input, output) => { - const loops = []; - visited.clear(); - const inLines = input.getLines(); - output.getPoints().setData(Float32Array.from(input.getPoints().getData())); - - // TODO skip if cached input mtime hasn't changed. - // iterate over input lines - for (let li = 0; li < inLines.getNumberOfCells(); li++) { - if (visited.has(li)) { - // eslint-disable-next-line no-continue - continue; - } - const { - cellPointIds - } = input.getCellPoints(li); - if (!cellPointIds) { - // eslint-disable-next-line no-continue - continue; - } - visited.add(li); - const startPtId = cellPointIds[0]; - const loopPoints = []; - loopPoints.push({ - t: 0, - ptId: startPtId - }); - const endPtId = publicAPI.traverseLoop(input, Dir.Forward, li, startPtId, loopPoints); - if (startPtId !== endPtId) { - // didn't find a loop. Go other direction to see where we end up - publicAPI.traverseLoop(input, Dir.Backward, li, startPtId, loopPoints); - loopPoints.sort((a, b) => a.t < b.t ? -1 : 1); - // make closed contour - if (loopPoints.length && loopPoints[0].ptId !== loopPoints[loopPoints.length - 1]?.ptId) { - loopPoints.push({ - ...loopPoints[loopPoints.length - 1] - }); - } - } - if (loopPoints.length) { - loops.push(loopPoints); - } - } - - // clear output lines - const outLines = output.getLines(); - outLines.resize(0); - loops.forEach(loop => { - outLines.insertNextCell(loop.map(pt => pt.ptId)); - }); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - macro.algo(publicAPI, model, 1, 1); - vtkContourLoopExtraction(publicAPI); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkContourLoopExtraction'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ContourTriangulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ContourTriangulator.d.ts deleted file mode 100644 index 539eb294..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ContourTriangulator.d.ts +++ /dev/null @@ -1,136 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { Nullable, TypedArray, Vector3 } from './../../types'; -import vtkCellArray from './../../Common/Core/CellArray'; -import vtkPolyData from './../../Common/DataModel/PolyData'; -import vtkPoints from './../../Common/Core/Points'; - -/** - * - */ -export interface IContourTriangulatorInitialValues { - triangulatePolys?: boolean; -} - -type vtkContourTriangulatorBase = vtkObject & vtkAlgorithm; - -export interface vtkContourTriangulator extends vtkContourTriangulatorBase { - /** - * - * @param {any} inData - * @param {any} outData - */ - requestData(inData: any, outData: any): void; - - /** - * Sets the behavior of the filter regarding polys. - * @param {boolean} triangulate whether the filter should triangulate polys - * or leave them untouched. True by default - * @return {boolean} true if it changes - */ - setTriangulatePolys(triangulate: boolean): boolean; - - /** - * Returns the behavior of the filter regarding polys. - * @return {boolean} True if the filter triangulates polys, false otherwise. - */ - getTriangulatePolys(): boolean; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -/** - * This is a complex subroutine that takes a collection of lines that - * were formed by cutting a polydata with a plane, and generates - * a face that has those lines as its edges. The lines must form one - * or more closed contours, but they need not be sorted. - * - * Only "numLine" lines starting from "firstLine" are used to create new - * polygons, and the new polygons are appended to "polys". The normal of - * the cut plane must be provided so that polys will be correctly oriented. - * - * Given some closed contour lines, create a triangle mesh that fills - * those lines. The input lines do not have to be in tail-to-tip order. - * Only numLines starting from firstLine will be used. Note that holes - * can be indicated by contour loops whose normals are in the opposite - * direction to the provided normal. - * - * @param {vtkPolyData} polyData - * @param {Number} firstLine - * @param {Number} numLines - * @param {vtkCellArray} polys - * @param {Nullable} normal If null, the function will compute - * the normal of the polys. - * @param {Boolean} [triangulatePolys] (default: true) If set to true - * the resulting polygons will be triangulated, otherwise the polygons - * themselves will be added to the output. - * @param {Boolean} [diagnoseOnTriangulationError] (default: false) - * If this option is set to true and there was a triangulation error - * this will add the polys as outlines to the output. - * @returns {Boolean} Returns true if triangulation was successful, - * false otherwise. - */ -export function triangulateContours( - polyData: vtkPolyData, - firstLine: number, - numLines: number, - polys: vtkCellArray, - normal: Nullable, - triangulatePolys?: boolean, - diagnoseOnTriangulationError?: boolean -): boolean; - -/** - * A robust method for triangulating a polygon. It cleans up the polygon - * and then applies the ear-cut triangulation. A zero return value - * indicates that triangulation failed. - * - * @param {Array|TypedArray} polygon Array of point indices defining the polygon - * @param {vtkPoints} points The point coordinates of the polygon - * @param {vtkCellArray} triangles The cell array that is going to be - * filled with the triangulation - * @returns {Boolean} Returns true if triangulation was successful, - * false otherwise. - */ -export function triangulatePolygon( - polygon: Array | TypedArray, - points: vtkPoints, - triangles: vtkCellArray -): boolean; - -/** - * Method use to decorate a given object (publicAPI+model) with vtkContourTriangulator characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IContourTriangulatorInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IContourTriangulatorInitialValues -): void; - -// ---------------------------------------------------------------------------- - -/** - * Method use to create a new instance of vtkContourTriangulator - * @param {IContourTriangulatorInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IContourTriangulatorInitialValues -): vtkContourTriangulator; - -/** - * vtkContourTriangulator - */ -export declare const vtkContourTriangulator: { - newInstance: typeof newInstance; - extend: typeof extend; - // static - triangulateContours: typeof triangulateContours; - triangulatePolygon: typeof triangulatePolygon; -}; - -export default vtkContourTriangulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ContourTriangulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ContourTriangulator.js deleted file mode 100644 index 8a9d40cc..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ContourTriangulator.js +++ /dev/null @@ -1,204 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import vtkPolygon from '../../Common/DataModel/Polygon.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import { VtkDataTypes } from '../../Common/Core/DataArray/Constants.js'; -import { vtkCCSMakePolysFromLines, vtkCCSJoinLooseEnds, vtkCCSFindTrueEdges, vtkCCSMakeHoleyPolys, vtkCCSCutHoleyPolys, vtkCCSSplitAtPinchPoints, vtkCCSTriangulate } from './ContourTriangulator/helper.js'; - -const { - vtkErrorMacro -} = macro; -const TRIANGULATION_ERROR_DISPLAY = false; - -//------------------------------------------------------------------------------ -function triangulateContours(polyData, firstLine, numLines, polys, normal) { - let triangulatePolys = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true; - let triangulationFailure = false; - - // If no cut lines were generated, there's nothing to do - if (numLines <= 0) { - return false; - } - const points = polyData.getPoints(); - - // Join all the new lines into connected groups, i.e. polygons. - // If we are lucky these will be simple, convex polygons. But - // we can't count on that. - - const newPolys = []; - const incompletePolys = []; - const oriented = normal?.length < 3; - vtkCCSMakePolysFromLines(polyData, firstLine, firstLine + numLines, oriented, newPolys, incompletePolys); - - // if no normal specified, then compute one from largest contour - let computedNormal = normal; - if (!oriented) { - computedNormal = [0, 0, 1]; - let maxnorm = 0; - const n = []; - for (let i = 0; i < newPolys.length; i++) { - const norm = vtkPolygon.getNormal(newPolys[i], points, n); - if (norm > maxnorm) { - maxnorm = norm; - computedNormal[0] = n[0]; - computedNormal[1] = n[1]; - computedNormal[2] = n[2]; - } - } - } - - // Join any loose ends. If the input was a closed surface then there - // will not be any loose ends, so this is provided as a service to users - // who want to clip a non-closed surface. - vtkCCSJoinLooseEnds(newPolys, incompletePolys, points, computedNormal); - - // Some points might be in the middle of straight line segments. - // These points can be removed without changing the shape of the - // polys, and removing them makes triangulation more stable. - // Unfortunately removing these points also means that the polys - // will no longer form a watertight cap over the cut. - - const polyEdges = []; - const originalEdges = []; - vtkCCSFindTrueEdges(newPolys, points, polyEdges, originalEdges); - - // Next we have to check for polygons with holes, i.e. polygons that - // have other polygons inside. Each polygon is "grouped" with the - // polygons that make up its holes. - - // Initialize each group to hold just one polygon. - const numNewPolys = newPolys.length; - const polyGroups = new Array(numNewPolys); - for (let i = 0; i < numNewPolys; i++) { - polyGroups[i] = [i]; - } - - // Find out which polys are holes in larger polys. Create a group - // for each poly where the first member of the group is the larger - // poly, and all other members are the holes. The number of polyGroups - // will be the same as the number of polys, and any polys that are - // holes will have a matching empty group. - - vtkCCSMakeHoleyPolys(newPolys, points, polyGroups, polyEdges, originalEdges, computedNormal, oriented); - - // Make cuts to create simple polygons out of the holey polys. - // After this is done, each polyGroup will have exactly 1 polygon, - // and no polys will be holes. This is currently the most computationally - // expensive part of the process. - - if (!vtkCCSCutHoleyPolys(newPolys, points, polyGroups, polyEdges, computedNormal)) { - triangulationFailure = true; - } - - // Some polys might be self-intersecting. Split the polys at each intersection point. - vtkCCSSplitAtPinchPoints(newPolys, points, polyGroups, polyEdges, computedNormal, oriented); - - // ------ Triangulation code ------ - - // Go through all polys and triangulate them - for (let polyId = 0; polyId < polyGroups.length; polyId++) { - // If group is empty, then poly was a hole without a containing poly - if (polyGroups[polyId].length === 0) { - // eslint-disable-next-line no-continue - continue; - } - if (!triangulatePolys) { - polys.insertNextCell(originalEdges.slice(1, originalEdges.length)); - } else if (!vtkCCSTriangulate(newPolys[polyId], points, polyEdges[polyId], originalEdges, polys, computedNormal)) { - triangulationFailure = false; - } - } - return !triangulationFailure; -} - -// --------------------------------------------------- -function triangulatePolygon(polygon, points, triangles) { - const poly = [...polygon]; - const polys = [poly]; - const originalEdges = []; - const polyEdges = []; - vtkCCSFindTrueEdges(polys, points, polyEdges, originalEdges); - const edges = polyEdges[0]; - let success = true; - const normal = []; - const norm = vtkPolygon.getNormal(poly, points, normal); - if (norm !== 0) { - success = vtkCCSTriangulate(poly, points, edges, originalEdges, triangles, normal); - } - return success; -} -const STATIC = { - triangulateContours, - triangulatePolygon -}; -function vtkContourTriangulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkContourTriangulator'); - publicAPI.requestData = (inData, outData) => { - // implement requestData - const input = inData[0]; - const output = outData[0]?.initialize() || vtkPolyData.newInstance(); - outData[0] = output; - if (!input) { - vtkErrorMacro('Invalid or missing input'); - return false; - } - let triangulationError = false; - const lines = input.getLines(); - if (lines == null || lines.getNumberOfCells() === 0) { - return true; - } - input.buildCells(); - const polysArray = vtkCellArray.newInstance({ - dataType: VtkDataTypes.DOUBLE, - empty: true - }); - output.setPolys(polysArray); - output.setPoints(input.getPoints()); - output.getPointData().passData(input.getPointData()); - triangulationError = !triangulateContours(input, input.getNumberOfVerts(), lines.getNumberOfCells(), polysArray, null, model.triangulatePolys); - if (triangulationError && TRIANGULATION_ERROR_DISPLAY) { - vtkErrorMacro('Triangulation failed, output might have holes.'); - } - return true; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - triangulatePolys: true -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - macro.setGet(publicAPI, model, ['triangulatePolys']); - - // Object specific methods - vtkContourTriangulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkContourTriangulator'); - -// ---------------------------------------------------------------------------- - -var vtkContourTriangulator$1 = { - newInstance, - extend, - ...STATIC -}; - -export { STATIC, vtkContourTriangulator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ContourTriangulator/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ContourTriangulator/Constants.js deleted file mode 100644 index 4016c308..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ContourTriangulator/Constants.js +++ /dev/null @@ -1,6 +0,0 @@ -const CCS_POLYGON_TOLERANCE = 1e-5; -var Constants = { - CCS_POLYGON_TOLERANCE -}; - -export { CCS_POLYGON_TOLERANCE, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ContourTriangulator/helper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ContourTriangulator/helper.js deleted file mode 100644 index e969176a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ContourTriangulator/helper.js +++ /dev/null @@ -1,1823 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import vtkPoints from '../../../Common/Core/Points.js'; -import { s as subtract, j as cross, d as dot, n as norm, f as distance2BetweenPoints, k as add, l as normalize } from '../../../Common/Core/Math/index.js'; -import vtkLine from '../../../Common/DataModel/Line.js'; -import vtkPolygon from '../../../Common/DataModel/Polygon.js'; -import vtkIncrementalOctreePointLocator from '../../../Common/DataModel/IncrementalOctreePointLocator.js'; -import { VtkDataTypes } from '../../../Common/Core/DataArray/Constants.js'; -import { CCS_POLYGON_TOLERANCE } from './Constants.js'; -import { PolygonWithPointIntersectionState } from '../../../Common/DataModel/Polygon/Constants.js'; - -const { - vtkErrorMacro -} = macro; - -/** - * Reverse the elements between the indices firstIdx and lastIdx of the given array arr. - * - * @param {Array|TypedArray} arr - * @param {Number} firstIdx - * @param {Number} lastIdx - */ -function reverseElements(arr) { - let firstIdx = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; - let lastIdx = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; - const first = firstIdx ?? 0; - const last = lastIdx ?? arr.length - 1; - const mid = first + Math.floor((last - first) / 2); - for (let i = first; i <= mid; ++i) { - [arr[i], arr[last - (i - first)]] = [arr[last - (i - first)], arr[i]]; - } -} - -// --------------------------------------------------- -/** - * Compute the quality of a triangle. - * - * @param {Vector3} p0 - * @param {Vector3} p1 - * @param {Vector3} p2 - * @param {Vector3} normal - * @returns {Number} - */ -function vtkCCSTriangleQuality(p0, p1, p2, normal) { - const u = []; - const v = []; - const w = []; - subtract(p1, p0, u); - subtract(p2, p1, v); - subtract(p0, p2, w); - const area2 = (u[1] * v[2] - u[2] * v[1]) * normal[0] + (u[2] * v[0] - u[0] * v[2]) * normal[1] + (u[0] * v[1] - u[1] * v[0]) * normal[2]; - let perim = Math.sqrt(u[0] * u[0] + u[1] * u[1] + u[2] * u[2]) + Math.sqrt(v[0] * v[0] + v[1] * v[1] + v[2] * v[2]) + Math.sqrt(w[0] * w[0] + w[1] * w[1] + w[2] * w[2]); - perim *= perim; // square the perimeter - perim = perim !== 0 ? perim : 1.0; - - // use a normalization factor so equilateral quality is 1.0 - return area2 / perim * 10.392304845413264; -} - -// --------------------------------------------------- -/** - * Insert a triangle, and subdivide that triangle if one of - * its edges originally had more than two points before - * vtkCCSFindTrueEdges was called. Is called by vtkCCSTriangulate. - * - * @param {vtkCellArray} polys - * @param {Array|TypedArray} poly - * @param {Vector3} trids - * @param {Array|TypedArray} polyEdges - * @param {Array|TypedArray} originalEdges - */ -function vtkCCSInsertTriangle(polys, poly, trids, polyEdges, originalEdges) { - const nextVert = [1, 2, 0]; - - // To store how many of originalEdges match - let edgeCount = 0; - const edgeLocs = [-1, -1, -1]; - - // Check for original edge matches - for (let vert = 0; vert < 3; vert++) { - const currId = trids[vert]; - const edgeLoc = polyEdges[currId]; - if (edgeLoc >= 0) { - let nextId = currId + 1; - if (nextId === poly.length) { - nextId = 0; - } - - // Is the triangle edge a polygon edge? - if (nextId === trids[nextVert[vert]]) { - edgeLocs[vert] = edgeLoc; - edgeCount++; - } - } - } - if (edgeCount === 0) { - // No special edge handling, so just do one triangle - polys.insertNextCell([poly[trids[0]], poly[trids[1]], poly[trids[2]]]); - } else { - // Make triangle fans for edges with extra points - const edgePts = [[poly[trids[0]], poly[trids[1]]], [poly[trids[1]], poly[trids[2]]], [poly[trids[2]], poly[trids[0]]]]; - - // Find out which edge has the most extra points - let maxPoints = 0; - let currSide = 0; - for (let i = 0; i < 3; i++) { - if (edgeLocs[i] >= 0) { - const edgeLoc = edgeLocs[i]; - const npts = originalEdges[edgeLoc]; - const pts = originalEdges.slice(edgeLoc + 1, edgeLoc + 1 + npts); - if (!(edgePts[i][0] === pts[0] || edgePts[i][1] === pts[npts - 1])) { - vtkErrorMacro('assertion error in vtkCCSInsertTriangle'); - } - if (npts > maxPoints) { - maxPoints = npts; - currSide = i; - } - edgePts[i] = pts; - } - } - - // Find the edges before/after the edge with most points - const prevSide = (currSide + 2) % 3; - const nextSide = (currSide + 1) % 3; - - // If other edges have only 2 points, nothing to do with them - const prevNeeded = edgePts[prevSide].length > 2; - const nextNeeded = edgePts[nextSide].length > 2; - - // The tail is the common point in the triangle fan - const tailPtIds = []; - tailPtIds[prevSide] = edgePts[currSide][1]; - tailPtIds[currSide] = edgePts[prevSide][0]; - tailPtIds[nextSide] = edgePts[currSide][edgePts[currSide].length - 2]; - - // Go through the sides and make the fans - for (let side = 0; side < 3; side++) { - if ((side !== prevSide || prevNeeded) && (side !== nextSide || nextNeeded)) { - let m = 0; - let n = edgePts[side].length - 1; - if (side === currSide) { - m += prevNeeded; - n -= nextNeeded; - } - for (let k = m; k < n; k++) { - polys.insertNextCell([edgePts[side][k], edgePts[side][k + 1], tailPtIds[side]]); - } - } - } - } -} - -// --------------------------------------------------- -/** - * Triangulate a polygon that has been simplified by FindTrueEdges. - * This will re-insert the original edges. The output triangles are - * appended to "polys" and, for each stored triangle, "color" will - * be added to "scalars". The final two arguments (polygon and - * triangles) are only for temporary storage. - * The return value is true if triangulation was successful. - * - * @param {Array} poly - * @param {vtkPoints} points - * @param {Array} polyEdges - * @param {Array} originalEdges - * @param {vtkCellArray} polys - * @param {Vector3} normal - * @returns {boolean} - */ -function vtkCCSTriangulate(poly, points, polyEdges, originalEdges, polys, normal) { - let n = poly.length; - - // If the poly is a line, then skip it - if (n < 3) { - return true; - } - - // If the poly is a triangle, then pass it - if (n === 3) { - const trids = [0, 1, 2]; - vtkCCSInsertTriangle(polys, poly, trids, polyEdges, originalEdges); - return true; - } - - // If the poly has 4 or more points, triangulate it - let triangulationFailure = false; - let ppoint = []; - let point = []; - let npoint = []; - let i = 0; - let j = 0; - let k = 0; - const verts = []; - verts.length = n; - for (i = 0; i < n; i++) { - verts[i] = [i, 0]; - } - - // compute the triangle quality for each vert - k = n - 2; - points.getPoint(poly[verts[k][0]], point); - i = n - 1; - points.getPoint(poly[verts[i][0]], npoint); - let concave = 0; - let maxq = 0; - let maxi = 0; - for (j = 0; j < n; j++) { - [ppoint, point, npoint] = [point, npoint, ppoint]; - points.getPoint(poly[verts[j][0]], npoint); - const q = vtkCCSTriangleQuality(ppoint, point, npoint, normal); - if (q > maxq) { - maxi = i; - maxq = q; - } - concave += q < 0; - verts[i][1] = q; - i = j; - } - let foundEar; - // perform the ear-cut triangulation - for (;;) { - // if no potential ears were found, then fail - if (maxq <= Number.MIN_VALUE) { - triangulationFailure = true; - break; - } - i = maxi; - j = i + 1 !== n ? i + 1 : 0; - k = i !== 0 ? i - 1 : n - 1; - if (verts[i][1] > 0) { - foundEar = true; - points.getPoint(poly[verts[j][0]], npoint); - points.getPoint(poly[verts[k][0]], ppoint); - - // only do ear check if there are concave vertices - if (concave) { - // get the normal of the split plane - const v = []; - const u = []; - subtract(npoint, ppoint, v); - cross(v, normal, u); - const d = dot(ppoint, u); - let jj = j + 1 !== n ? j + 1 : 0; - let x = []; - points.getPoint(poly[verts[jj][0]], x); - let side = dot(x, u) < d; - let foundNegative = side; - - // check for crossings of the split plane - jj = jj + 1 !== n ? jj + 1 : 0; - let y = []; - const s = []; - const t = []; - for (; foundEar && jj !== k; jj = jj + 1 !== n ? jj + 1 : 0) { - [x, y] = [y, x]; - points.getPoint(poly[verts[jj][0]], x); - const sside = dot(x, u) < d; - // XOR - if (side ? !sside : sside) { - side = !side; - foundNegative = true; - foundEar = vtkLine.intersection(ppoint, npoint, x, y, s, t) === vtkLine.IntersectionState.NO_INTERSECTION; - } - } - foundEar &&= foundNegative; - } - if (!foundEar) { - // don't try again until it is split - verts[i][1] = Number.MIN_VALUE; - } else { - // create a triangle from vertex and neighbors - const trids = [verts[i][0], verts[j][0], verts[k][0]]; - vtkCCSInsertTriangle(polys, poly, trids, polyEdges, originalEdges); - - // remove the vertex i - verts.splice(i, 1); - k -= i === 0; - j -= j !== 0; - - // break if this was final triangle - if (--n < 3) { - break; - } - - // re-compute quality of previous point - const kk = k !== 0 ? k - 1 : n - 1; - points.getPoint(poly[verts[kk][0]], point); - const kq = vtkCCSTriangleQuality(point, ppoint, npoint, normal); - concave -= verts[k][1] < 0 && kq >= 0; - verts[k][1] = kq; - - // re-compute quality of next point - const jj = j + 1 !== n ? j + 1 : 0; - points.getPoint(poly[verts[jj][0]], point); - const jq = vtkCCSTriangleQuality(ppoint, npoint, point, normal); - concave -= verts[j][1] < 0 && jq >= 0; - verts[j][1] = jq; - } - } - - // find the highest-quality ear candidate - maxi = 0; - maxq = verts[0][1]; - for (i = 1; i < n; i++) { - const q = verts[i][1]; - if (q > maxq) { - maxi = i; - maxq = q; - } - } - } - return !triangulationFailure; -} - -// --------------------------------------------------- -/** - * Create polygons from line segments. - * - * @param {vtkPolyData} polyData - * @param {Number} firstLine - * @param {Number} endLine - * @param {Boolean} oriented - * @param {Array} newPolys - * @param {Array} incompletePolys - */ -function vtkCCSMakePolysFromLines(polyData, firstLine, endLine, oriented, newPolys, incompletePolys) { - let npts = 0; - let pts = []; - - // Bitfield for marking lines as used - const usedLines = new Uint8Array(endLine - firstLine); // defaults to 0 - - // Require cell links to get lines from pointIds - polyData.buildLinks(polyData.getPoints().getNumberOfPoints()); - let numNewPolys = 0; - let remainingLines = endLine - firstLine; - while (remainingLines > 0) { - // Create a new poly - const polyId = numNewPolys++; - const poly = []; - newPolys.push(poly); - let lineId = 0; - let completePoly = false; - - // start the poly - for (lineId = firstLine; lineId < endLine; lineId++) { - if (!usedLines[lineId - firstLine]) { - pts = polyData.getCellPoints(lineId).cellPointIds; - npts = pts.length; - let n = npts; - if (npts > 2 && pts[0] === pts[npts - 1]) { - n = npts - 1; - completePoly = true; - } - poly.length = n; - for (let i = 0; i < n; i++) { - poly[i] = pts[i]; - } - break; - } - } - usedLines[lineId - firstLine] = 1; - remainingLines--; - let noLinesMatch = remainingLines === 0 && !completePoly; - while (!completePoly && !noLinesMatch && remainingLines > 0) { - // This is cleared if a match is found - noLinesMatch = true; - - // Number of points in the poly - const npoly = poly.length; - const lineEndPts = []; - const endPts = [poly[npoly - 1], poly[0]]; - - // For both open ends of the polygon - for (let endIdx = 0; endIdx < 2; endIdx++) { - const matches = []; - const cells = polyData.getPointCells(endPts[endIdx]); - - // Go through all lines that contain this endpoint - for (let icell = 0; icell < cells.length; icell++) { - lineId = cells[icell]; - if (lineId >= firstLine && lineId < endLine && !usedLines[lineId - firstLine]) { - pts = polyData.getCellPoints(lineId).cellPointIds; - npts = pts.length; - lineEndPts[0] = pts[0]; - lineEndPts[1] = pts[npts - 1]; - - // Check that poly end matches line end - if (endPts[endIdx] === lineEndPts[endIdx] || !oriented && endPts[endIdx] === lineEndPts[1 - endIdx]) { - matches.push(lineId); - } - } - } - if (matches.length > 0) { - // Multiple matches mean we need to decide which path to take - if (matches.length > 1) { - // Remove double-backs - let k = matches.length; - do { - lineId = matches[--k]; - pts = polyData.getCellPoints(lineId).cellPointIds; - npts = pts.length; - lineEndPts[0] = pts[0]; - lineEndPts[1] = pts[npts - 1]; - // check if line is reversed - const r = endPts[endIdx] !== lineEndPts[endIdx]; - if (!r && (endIdx === 0 && poly[npoly - 2] === pts[1] || endIdx === 1 && poly[1] === pts[npts - 2]) || r && (endIdx === 0 && poly[npoly - 2] === pts[npts - 2] || endIdx === 1 && poly[1] === pts[1])) { - matches.splice(k, 1); - } - } while (k > 0 && matches.length > 1); - - // If there are multiple matches due to intersections, - // they should be dealt with here. - } - - lineId = matches[0]; - pts = polyData.getCellPoints(lineId).cellPointIds; - npts = pts.length; - lineEndPts[0] = pts[0]; - lineEndPts[1] = pts[npts - 1]; - - // Do both ends match? - if (endPts[endIdx] === lineEndPts[endIdx]) { - completePoly = endPts[1 - endIdx] === lineEndPts[1 - endIdx]; - } else { - completePoly = endPts[1 - endIdx] === lineEndPts[endIdx]; - } - if (endIdx === 0) { - for (let i = 1; i < npts - (completePoly ? 1 : 0); i++) { - poly.push(pts[i]); - } - } else { - for (let i = completePoly ? 1 : 0; i < npts - 1; i++) { - poly.unshift(pts[i]); - } - } - if (endPts[endIdx] !== lineEndPts[endIdx]) { - // reverse the ids in the added line - let pit = poly.length; - let ptsIt = completePoly ? 1 : 0; - let ptsEnd = npts - 1; - if (endIdx === 1) { - pit = npts - 1 - (completePoly ? 1 : 0); - ptsIt = 1; - ptsEnd = npts - (completePoly ? 1 : 0); - } - while (ptsIt !== ptsEnd) { - poly[--pit] = poly[ptsIt++]; - } - } - usedLines[lineId - firstLine] = 1; - remainingLines--; - noLinesMatch = false; - } - } - } - - // Check for incomplete polygons - if (noLinesMatch) { - incompletePolys.push(polyId); - } - } -} - -// --------------------------------------------------- -/** - * Join polys that have loose ends, as indicated by incompletePolys. - * Any polys created will have a normal opposite to the supplied normal, - * and any new edges that are created will be on the hull of the point set. - * Shorter edges will be preferred over long edges. - * - * @param {Array[]} polys - * @param {Array} incompletePolys - * @param {vtkPoints} points - * @param {Vector3} normal - */ -function vtkCCSJoinLooseEnds(polys, incompletePolys, points, normal) { - // Relative tolerance for checking whether an edge is on the hull - const tol = CCS_POLYGON_TOLERANCE; - - // A list of polys to remove when everything is done - const removePolys = []; - const p1 = []; - const p2 = []; - let poly1; - let poly2; - let pt1; - let pt2; - let dMin; - let iMin; - let v; - let d; - let n = incompletePolys.length; - while (n !== 0) { - poly1 = polys[incompletePolys[n - 1]]; - pt1 = poly1[poly1.length - 1]; - points.getPoint(pt1, p1); - dMin = Number.MAX_VALUE; - iMin = 0; - for (let i = 0; i < n; i++) { - poly2 = polys[incompletePolys[i]]; - pt2 = poly2[0]; - points.getPoint(pt2, p2); - - // The next few steps verify that edge [p1, p2] is on the hull - v = [p2[0] - p1[0], p2[1] - p1[1], p2[2] - p1[2]]; - d = norm(v); - if (d !== 0) { - v[0] /= d; - v[1] /= d; - v[2] /= d; - } - - // Compute the midpoint of the edge - const pm = [0.5 * (p1[0] + p2[0]), 0.5 * (p1[1] + p2[1]), 0.5 * (p1[2] + p2[2])]; - - // Create a plane equation - const pc = []; - cross(normal, v, pc); - pc[3] = -dot(pc, pm); - - // Check that all points are inside the plane. If they aren't, then - // the edge is not on the hull of the pointset. - let badPoint = false; - const m = polys.length; - const p = []; - for (let j = 0; j < m && !badPoint; j++) { - const poly = polys[j]; - const npts = poly.length; - for (let k = 0; k < npts; k++) { - const ptId = poly[k]; - if (ptId !== pt1 && ptId !== pt2) { - points.getPoint(ptId, p); - const val = p[0] * pc[0] + p[1] * pc[1] + p[2] * pc[2] + pc[3]; - const r2 = distance2BetweenPoints(p, pm); - - // Check distance from plane against the tolerance - if (val < 0 && val * val > tol * tol * r2) { - badPoint = true; - break; - } - } - } - - // If no bad points, then this edge is a candidate - if (!badPoint && d < dMin) { - dMin = d; - iMin = i; - } - } - } - - // If a match was found, append the polys - if (dMin < Number.MAX_VALUE) { - // Did the poly match with itself? - if (iMin === n - 1) { - // Mark the poly as closed - incompletePolys.pop(); - } else { - const id2 = incompletePolys[iMin]; - - // Combine the polys - // for (let i = 1; i < polys[id2].length; i++) { - // poly1.push(polys[id2][i]); - // } - poly1.push(...polys[id2]); - - // Erase the second poly - removePolys.push(id2); - incompletePolys.splice(iMin, 1); - } - } else { - // If no match, erase this poly from consideration - removePolys.push(incompletePolys[n - 1]); - incompletePolys.pop(); - } - n = incompletePolys.length; - } - - // Remove polys that couldn't be completed - removePolys.sort((a, b) => a - b); - let i = removePolys.length; - while (i > 0) { - // Remove items in reverse order - polys.splice(removePolys[--i], 1); - } - - // Clear the incompletePolys vector, it's indices are no longer valid - incompletePolys.length = 0; -} - -// --------------------------------------------------- -/** - * Given three vectors p.p1, p.p2, and p.p3, this routine - * checks to see if progressing from p1 to p2 to p3 is a clockwise - * or counterclockwise progression with respect to the normal. - * The return value is -1 for clockwise, +1 for counterclockwise, - * and 0 if any two of the vectors are coincident. - * - * @param {Vector3} p - * @param {Vector3} p1 - * @param {Vector3} p2 - * @param {Vector3} p3 - * @param {Vector3} normal - * @returns {Number} - */ -function vtkCCSVectorProgression(p, p1, p2, p3, normal) { - const v1 = [p1[0] - p[0], p1[1] - p[1], p1[2] - p[2]]; - const v2 = [p2[0] - p[0], p2[1] - p[1], p2[2] - p[2]]; - const v3 = [p3[0] - p[0], p3[1] - p[1], p3[2] - p[2]]; - const w1 = []; - const w2 = []; - cross(v2, v1, w1); - cross(v2, v3, w2); - const s1 = dot(w1, normal); - const s2 = dot(w2, normal); - if (s1 !== 0 && s2 !== 0) { - const sb1 = s1 < 0; - const sb2 = s2 < 0; - - // if sines have different signs - // XOR - if (sb1 ? !sb2 : sb2) { - // return -1 if s2 is -ve - return 1 - 2 * sb2; - } - const c1 = dot(v2, v1); - const l1 = norm(v1); - const c2 = dot(v2, v3); - const l2 = norm(v3); - - // ck is the difference of the cosines, flipped in sign if sines are +ve - const ck = (c2 * l2 - c1 * l1) * (1 - sb1 * 2); - if (ck !== 0) { - // return the sign of ck - return 1 - 2 * (ck < 0); - } - } - return 0; -} - -// --------------------------------------------------- -/** - * Check for self-intersection. Split the figure-eights. - * This assumes that all intersections occur at existing - * vertices, i.e. no new vertices will be created. Returns - * the number of splits made. - * - * @param {Array[]} polys - * @param {vtkPoints} points - * @param {Array} polyGroups - * @param {Array} polyEdges - * @param {Vector3} normal - * @param {Boolean} oriented - */ -function vtkCCSSplitAtPinchPoints(polys, points, polyGroups, polyEdges, normal, oriented) { - const tryPoints = vtkPoints.newInstance({ - dataType: VtkDataTypes.DOUBLE, - empty: true - }); - const locator = vtkIncrementalOctreePointLocator.newInstance(); - let splitCount = 0; - let poly; - let n; - let bounds; - let tol; - for (let i = 0; i < polys.length; i++) { - poly = polys[i]; - n = poly.length; - bounds = []; - tol = CCS_POLYGON_TOLERANCE * Math.sqrt(vtkPolygon.getBounds(poly, points, bounds)); - if (tol === 0) { - // eslint-disable-next-line no-continue - continue; - } - tryPoints.initialize(); - locator.setTolerance(tol); - locator.initPointInsertion(tryPoints, bounds); - let foundMatch = false; - let idx1 = 0; - let idx2 = 0; - let unique = 0; - const point = []; - const p1 = []; - const p2 = []; - const p3 = []; - for (idx2 = 0; idx2 < n; idx2++) { - points.getPoint(poly[idx2], point); - const { - success, - pointIdx - } = locator.insertUniquePoint(point, 0); - if (!success) { - // Need vertIdx to match poly indices, so force point insertion - locator.insertNextPoint(point); - - // Do the points have different pointIds? - idx1 = pointIdx; - unique = poly[idx2] !== poly[idx1]; - if (idx2 > idx1 + 2 - unique && n + idx1 > idx2 + 2 - unique) { - if (oriented) { - // Make sure that splitting this poly won't create a hole poly - let prevIdx = n + idx1 - 1; - let midIdx = idx1 + 1; - let nextIdx = idx2 + 1; - if (prevIdx >= n) { - prevIdx -= n; - } - if (midIdx >= n) { - midIdx -= n; - } - if (nextIdx >= n) { - nextIdx -= n; - } - points.getPoint(poly[prevIdx], p1); - points.getPoint(poly[midIdx], p2); - points.getPoint(poly[nextIdx], p3); - if (vtkCCSVectorProgression(point, p1, p2, p3, normal) > 0) { - foundMatch = true; - break; - } - } else { - foundMatch = true; - break; - } - } - } - } - if (foundMatch) { - splitCount++; - - // Split off a new poly - const m = idx2 - idx1; - const oldPoly = polys[i]; - const oldEdges = polyEdges[i]; - const newPoly1 = oldPoly.slice(idx1, idx1 + m + unique); - const newEdges1 = oldEdges.slice(idx1, idx1 + m + unique); - const newPoly2 = new Array(n - m + unique); - const newEdges2 = new Array(n - m + unique); - if (unique) { - newEdges1[m] = -1; - } - - // The poly that is split off, which might have more intersections - for (let j = 0; j < idx1 + unique; j++) { - newPoly2[j] = oldPoly[j]; - newEdges2[j] = oldEdges[j]; - } - if (unique) { - newEdges2[idx1] = -1; - } - for (let k = idx2; k < n; k++) { - newPoly2[k - m + unique] = oldPoly[k]; - newEdges2[k - m + unique] = oldEdges[k]; - } - polys[i] = newPoly1; - polyEdges[i] = newEdges1; - polys.push(newPoly2); - polyEdges.push(newEdges2); - - // Unless polygroup was clear (because poly was reversed), - // make a group with one entry for the new poly - polyGroups.length = polys.length; - if (polyGroups[i].length > 0) { - polyGroups[polys.length - 1].push(polys.length - 1); - } - } - } - return splitCount; -} - -// --------------------------------------------------- -/** - * The polygons might have a lot of extra points, i.e. points - * in the middle of the edges. Remove those points, but keep - * the original edges as polylines in the originalEdges array. - * Only original edges with more than two points will be kept. - * - * @param {Array[]} polys - * @param {vtkPoints} points - * @param {Array} polyEdges - * @param {Array} originalEdges - */ -function vtkCCSFindTrueEdges(polys, points, polyEdges, originalEdges) { - // Tolerance^2 for angle to see if line segments are parallel - const atol2 = CCS_POLYGON_TOLERANCE * CCS_POLYGON_TOLERANCE; - const p0 = []; - const p1 = []; - const p2 = []; - const v1 = []; - const v2 = []; - let l1; - let l2; - for (let polyId = 0; polyId < polys.length; polyId++) { - const oldPoly = polys[polyId]; - const n = oldPoly.length; - const newEdges = []; - polyEdges.push(newEdges); - - // Only useful if poly has more than three sides - if (n < 4) { - newEdges[0] = -1; - newEdges[1] = -1; - newEdges[2] = -1; - // eslint-disable-next-line no-continue - continue; - } - - // While we remove points, m keeps track of how many points are left - let m = n; - - // Compute bounds for tolerance - const bounds = []; - const tol2 = vtkPolygon.getBounds(oldPoly, points, bounds) * atol2; - - // The new poly - const newPoly = []; - let cornerPointId = 0; - let oldOriginalId = -1; - - // Keep the partial edge from before the first corner is found - const partialEdge = []; - let cellCount = 0; - points.getPoint(oldPoly[n - 1], p0); - points.getPoint(oldPoly[0], p1); - subtract(p1, p0, v1); - l1 = dot(v1, v1); - for (let j = 0; j < n; j++) { - let k = j + 1; - if (k >= n) { - k -= n; - } - points.getPoint(oldPoly[k], p2); - subtract(p2, p1, v2); - l2 = dot(v2, v2); - - // Dot product is |v1||v2|cos(theta) - const c = dot(v1, v2); - // sin^2(theta) = (1 - cos^2(theta)) - // and c*c = l1*l2*cos^2(theta) - const s2 = l1 * l2 - c * c; - - // In the small angle approximation, sin(theta) == theta, so - // s2/(l1*l2) is the angle that we want to check, but it's not - // a valid check if l1 or l2 is very close to zero. - - const pointId = oldPoly[j]; - - // Keep the point if: - // 1) removing it would create a 2-point poly OR - // 2) it's more than "tol" distance from the prev point AND - // 3) the angle is greater than atol: - if (m <= 3 || l1 > tol2 && (c < 0 || l1 < tol2 || l2 < tol2 || s2 > l1 * l2 * atol2)) { - // Complete the previous edge only if the final point count - // will be greater than two - if (cellCount > 1) { - if (pointId !== oldOriginalId) { - originalEdges.push(pointId); - cellCount++; - } - // Update the number of segments in the edge - const countLocation = originalEdges.length - cellCount - 1; - originalEdges[countLocation] = cellCount; - newEdges.push(countLocation); - } else if (cellCount === 0) { - partialEdge.push(pointId); - } else { - newEdges.push(-1); - } - newPoly.push(pointId); - - // Start a new edge with cornerPointId as a "virtual" point - cornerPointId = pointId; - oldOriginalId = pointId; - cellCount = 1; - - // Rotate to the next point - p0[0] = p2[0]; - p0[1] = p2[1]; - p0[2] = p2[2]; - p1[0] = p2[0]; - p1[1] = p2[1]; - p1[2] = p2[2]; - v1[0] = v2[0]; - v1[1] = v2[1]; - v1[2] = v2[2]; - l1 = l2; - } else { - if (cellCount > 0 && pointId !== oldOriginalId) { - // First check to see if we have to add cornerPointId - if (cellCount === 1) { - originalEdges.push(1); // new edge - originalEdges.push(cornerPointId); - } - // Then add the new point - originalEdges.push(pointId); - oldOriginalId = pointId; - cellCount++; - } else { - // No corner yet, so save the point - partialEdge.push(pointId); - } - - // Reduce the count - m--; - - // Join the previous two segments, since the point was removed - p1[0] = p2[0]; - p1[1] = p2[1]; - p1[2] = p2[2]; - subtract(p2, p0, v1); - l1 = dot(v1, v1); - } - } - - // Add the partial edge to the end - for (let ii = 0; ii < partialEdge.length; ii++) { - const pointId = partialEdge[ii]; - if (pointId !== oldOriginalId) { - if (cellCount === 1) { - originalEdges.push(1); // new edge - originalEdges.push(cornerPointId); - } - originalEdges.push(pointId); - oldOriginalId = pointId; - cellCount++; - } - } - - // Finalize - if (cellCount > 1) { - // Update the number of segments in the edge - const countLocation = originalEdges.length - cellCount - 1; - originalEdges[countLocation] = cellCount; - newEdges.push(countLocation); - } - polys[polyId] = newPoly; - } -} - -// --------------------------------------------------- -/** - * Reverse a cleaned-up polygon along with the info about - * all of its original vertices. - * - * @param {Array} poly - * @param {Array} edges - * @param {Array} originalEdges - */ -function vtkCCSReversePoly(poly, edges, originalEdges) { - reverseElements(poly, 1, poly.length - 1); - edges.reverse(); - for (let i = 0; i < edges.length; i++) { - if (edges[i] >= 0) { - const firstPtsIdx = edges[i] + 1; - const npts = originalEdges[edges[i]]; - reverseElements(originalEdges, firstPtsIdx, firstPtsIdx + npts - 1); - } - } -} - -// --------------------------------------------------- -/** - * Check the sense of the polygon against the given normal. Returns - * zero if the normal is zero. - * - * @param {Array} poly - * @param {vtkPoints} points - * @param {Vector3} normal - */ -function vtkCCSCheckPolygonSense(poly, points, normal) { - // Compute the normal - const pnormal = [0.0, 0.0, 0.0]; - const p0 = []; - const p1 = []; - const p2 = []; - const v1 = []; - const v2 = []; - const v = []; - points.getPoint(poly[0], p0); - points.getPoint(poly[1], p1); - subtract(p1, p0, v1); - for (let jj = 2; jj < poly.length; jj++) { - points.getPoint(poly[jj], p2); - subtract(p2, p0, v2); - cross(v1, v2, v); - add(pnormal, v, pnormal); - p1[0] = p2[0]; - p1[1] = p2[1]; - p1[2] = p2[2]; - v1[0] = v2[0]; - v1[1] = v2[1]; - v1[2] = v2[2]; - } - - // Check the normal - const d = dot(pnormal, normal); - return { - isNormalNotZero: d !== 0, - sense: d > 0 - }; -} - -// --------------------------------------------------- -/** - * Check whether innerPoly is inside outerPoly. - * The normal is needed to verify the polygon orientation. - * The values of pp, bounds, and tol2 must be precomputed - * by calling vtkCCSPrepareForPolyInPoly() on outerPoly. - * - * @param {Array} outerPoly - * @param {Array} innerPoly - * @param {vtkPoints} points - * @param {Vector3} normal - * @param {Float64Array} pp - * @param {Bounds} bounds - * @param {Number} tol2 - */ -function vtkCCSPolyInPoly(outerPoly, innerPoly, points, normal, pp, bounds, tol2) { - // Find a vertex of poly "j" that isn't on the edge of poly "i". - // This is necessary or the PointInPolygon might return "true" - // based only on roundoff error. - const n = outerPoly.length; - const m = innerPoly.length; - const p = []; - const q1 = []; - const q2 = []; - for (let jj = 0; jj < m; jj++) { - // Semi-randomize the point order - // eslint-disable-next-line no-bitwise - const kk = (jj >> 1) + (jj & 1) * (m + 1 >> 1); - points.getPoint(innerPoly[kk], p); - const intersectionState = vtkPolygon.pointInPolygon(p, pp, bounds, normal); - if (intersectionState === PolygonWithPointIntersectionState.FAILURE) { - vtkErrorMacro('Error finding point in polygon in vtkCCSPolyInPoly'); - } - if (intersectionState !== PolygonWithPointIntersectionState.OUTSIDE) { - let pointOnEdge = 0; - points.getPoint(outerPoly[n - 1], q1); - for (let ii = 0; ii < n; ii++) { - points.getPoint(outerPoly[ii], q2); - // This method returns distance squared - const { - distance - } = vtkLine.distanceToLine(p, q1, q2); - if (distance < tol2) { - pointOnEdge = 1; - break; - } - q1[0] = q2[0]; - q1[1] = q2[1]; - q1[2] = q2[2]; - } - if (!pointOnEdge) { - // Good result, point is in polygon - return true; - } - } - } - - // No matches found - return false; -} - -// --------------------------------------------------- -/** - * Precompute values needed for the PolyInPoly check. - * The values that are returned are as follows: - * pp: an array of the polygon vertices - * bounds: the polygon bounds - * tol2: a tolerance value based on the size of the polygon - * (note: pp must be pre-allocated to the 3*outerPoly.length) - * - * @param {Array} outerPoly - * @param {vtkPoints} points - * @param {Float64Array} pp - * @param {Bounds} bounds - */ -function vtkCCSPrepareForPolyInPoly(outerPoly, points, pp, bounds) { - const n = outerPoly.length; - if (n === 0) { - return 0.0; // to avoid false positive warning about uninitialized value - } - - // Pull out the points - const point = []; - let j = 0; - for (let i = 0; i < n; i++) { - points.getPoint(outerPoly[i], point); - pp[j++] = point[0]; - pp[j++] = point[1]; - pp[j++] = point[2]; - } - - // Find the bounding box and tolerance for the polygon - return vtkPolygon.getBounds(outerPoly, points, bounds) * (CCS_POLYGON_TOLERANCE * CCS_POLYGON_TOLERANCE); -} - -// --------------------------------------------------- -/** - * Check for polygons within polygons. Group the polygons - * if they are within each other. Reverse the sense of - * the interior "hole" polygons. A hole within a hole - * will be reversed twice and will become its own group. - * - * @param {Array} newPolys - * @param {vtkPoints} points - * @param {Array} polyGroups - * @param {Array} polyEdges - * @param {Array} originalEdges - * @param {Vector3} normal - * @param {Boolean} oriented - */ -function vtkCCSMakeHoleyPolys(newPolys, points, polyGroups, polyEdges, originalEdges, normal, oriented) { - const numNewPolys = newPolys.length; - if (numNewPolys <= 1) { - return; - } - - // Use bit arrays to keep track of inner polys - const polyReversed = []; - const innerPolys = []; - - // GroupCount is an array only needed for unoriented polys - let groupCount; - if (!oriented) { - groupCount = new Int32Array(numNewPolys); - } - - // Find the maximum poly size - let nmax = 1; - for (let kk = 0; kk < numNewPolys; kk++) { - nmax = Math.max(nmax, newPolys[kk].length); - } - - // These are some values needed for poly-in-poly checks - const pp = new Float64Array(3 * nmax); - const bounds = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0]; - let tol2; - - // Go through all polys - for (let i = 0; i < numNewPolys; i++) { - const n = newPolys[i].length; - if (n < 3) { - // eslint-disable-next-line no-continue - continue; - } - - // Check if poly is reversed - const { - isNormalNotZero, - sense - } = vtkCCSCheckPolygonSense(newPolys[i], points, normal); - if (isNormalNotZero) { - polyReversed[i] = !sense; - } - - // Precompute some values needed for poly-in-poly checks - tol2 = vtkCCSPrepareForPolyInPoly(newPolys[i], points, pp, bounds); - - // Look for polygons inside of this one - for (let j = 0; j < numNewPolys; j++) { - if (j !== i && newPolys[j].length >= 3) { - // Make sure polygon i is not in polygon j - const pg = polyGroups[j]; - if (!pg.includes(i)) { - if (vtkCCSPolyInPoly(newPolys[i], newPolys[j], points, normal, pp.subarray(3 * n), bounds, tol2)) { - // Add to group - polyGroups[i].push(j); - if (groupCount) { - groupCount[j] += 1; - } - } - } - } - } - } - if (!oriented) { - // build a stack of polys that aren't inside other polys= - const outerPolyStack = []; - for (let ll = 0; ll < numNewPolys; ll++) { - if (groupCount[ll] === 0) { - outerPolyStack.push(ll); - } - } - let j; - while (outerPolyStack.length > 0) { - j = outerPolyStack.length - 1; - outerPolyStack.pop(); - if (polyReversed[j]) { - vtkCCSReversePoly(newPolys[j], polyEdges[j], originalEdges); - polyReversed[j] = false; - } - if (polyGroups[j].length > 1) { - // Convert the group into a bit array, to make manipulation easier - innerPolys.length = 0; - for (let k = 1; k < polyGroups[j].length; k++) { - const jj = polyGroups[j][k]; - if (groupCount[jj] > 1) { - groupCount[jj] -= 2; - if (groupCount[jj] === 0) { - outerPolyStack.push(jj); - } - } else { - innerPolys[jj] = 1; - polyGroups[jj].length = 0; - if (!polyReversed[jj]) { - vtkCCSReversePoly(newPolys[jj], polyEdges[jj], originalEdges); - polyReversed[jj] = false; - } - } - } - - // Use the bit array to recreate the polyGroup - polyGroups[j].length = 0; - polyGroups[j].push(j); - for (let jj = 0; jj < numNewPolys; jj++) { - if (innerPolys[jj]) { - polyGroups[j].push(jj); - } - } - } - } - } else { - // oriented - for (let j = 0; j < numNewPolys; j++) { - // Remove the groups for reversed polys - if (polyReversed[j]) { - polyGroups[j].length = 0; - } - // Polys inside the interior polys have their own groups, so remove - // them from this group - else if (polyGroups[j].length > 1) { - // Convert the group into a bit array, to make manipulation easier - innerPolys.length = 0; - for (let k = 1; k < polyGroups[j].length; k++) { - innerPolys[polyGroups[j][k]] = true; - } - - // Look for non-reversed polys inside this one - for (let kk = 1; kk < polyGroups[j].length; kk++) { - // jj is the index of the inner poly - const jj = polyGroups[j][kk]; - // If inner poly is not reversed then - if (!polyReversed[jj]) { - // Remove that poly and all polys inside of it from the group - for (let ii = 0; ii < polyGroups[jj].length; ii++) { - innerPolys[polyGroups[jj][ii]] = false; - } - } - } - - // Use the bit array to recreate the polyGroup - polyGroups[j].length = 0; - polyGroups[j].push(j); - for (let jj = 0; jj < numNewPolys; jj++) { - if (innerPolys[jj]) { - polyGroups[j].push(jj); - } - } - } - } - } - - // delete[] groupCount; -} - -// --------------------------------------------------- -/** - * Check line segment with point Ids (i, j) to make sure that it - * doesn't cut through the edges of any polys in the group. - * Return value of zero means check failed and the cut is not - * usable. - * - * @param {Array[]} polys - * @param {vtkPoints} points - * @param {Vector3} normal - * @param {Array} polyGroup - * @param {Number} outerPolyId - * @param {Number} innerPolyId - * @param {Number} outerIdx - * @param {Number} innerIdx - */ -function vtkCCSCheckCut(polys, points, normal, polyGroup, outerPolyId, innerPolyId, outerIdx, innerIdx) { - const ptId1 = polys[outerPolyId][outerIdx]; - const ptId2 = polys[innerPolyId][innerIdx]; - const tol = CCS_POLYGON_TOLERANCE; - const p1 = []; - const p2 = []; - points.getPoint(ptId1, p1); - points.getPoint(ptId2, p2); - const w = []; - subtract(p2, p1, w); - const l = normalize(w); - - // Cuts between coincident points are good - if (l === 0) { - return true; - } - - // Define a tolerance with units of distance squared - const tol2 = l * l * tol * tol; - - // Check the sense of the cut: it must be pointing "in" for both polys. - let polyId = outerPolyId; - let polyIdx = outerIdx; - let r = p1; - const r1 = []; - let r2 = p2; - const r3 = []; - for (let ii = 0; ii < 2; ii++) { - const poly = polys[polyId]; - const n = poly.length; - let prevIdx = n - polyIdx - 1; - let nextIdx = polyIdx + 1; - if (prevIdx >= n) { - prevIdx -= n; - } - if (nextIdx >= n) { - nextIdx -= n; - } - points.getPoint(poly[prevIdx], r1); - points.getPoint(poly[nextIdx], r3); - if (vtkCCSVectorProgression(r, r1, r2, r3, normal) > 0) { - return false; - } - polyId = innerPolyId; - polyIdx = innerIdx; - r = p2; - r2 = p1; - } - - // Check for intersections of the cut with polygon edges. - // First, create a cut plane that divides space at the cut line. - const pc = []; - cross(normal, w, pc); - pc[3] = -dot(pc, p1); - for (let i = 0; i < polyGroup.length; i++) { - const poly = polys[polyGroup[i]]; - const n = poly.length; - const q1 = []; - const q2 = []; - let qtId1 = poly[n - 1]; - points.getPoint(qtId1, q1); - let v1 = pc[0] * q1[0] + pc[1] * q1[1] + pc[2] * q1[2] + pc[3]; - let c1 = v1 > 0; - for (let j = 0; j < n; j++) { - const qtId2 = poly[j]; - points.getPoint(qtId2, q2); - const v2 = pc[0] * q2[0] + pc[1] * q2[1] + pc[2] * q2[2] + pc[3]; - const c2 = v2 > 0; - - // If lines share an endpoint, they can't intersect, - // so don't bother with the check. - if (ptId1 !== qtId1 && ptId1 !== qtId2 && ptId2 !== qtId1 && ptId2 !== qtId2) { - // Check for intersection - if ((c1 ? !c2 : c2) || v1 * v1 < tol2 || v2 * v2 < tol2) { - subtract(q2, q1, w); - if (dot(w, w) > 0) { - const qc = []; - cross(w, normal, qc); - qc[3] = -dot(qc, q1); - const u1 = qc[0] * p1[0] + qc[1] * p1[1] + qc[2] * p1[2] + qc[3]; - const u2 = qc[0] * p2[0] + qc[1] * p2[1] + qc[2] * p2[2] + qc[3]; - const d1 = u1 > 0; - const d2 = u2 > 0; - if (d1 ? !d2 : d2) { - // One final check to make sure endpoints aren't coincident - let p = p1; - let q = q1; - if (v2 * v2 < v1 * v1) { - p = p2; - } - if (u2 * u2 < u1 * u1) { - q = q2; - } - if (distance2BetweenPoints(p, q) > tol2) { - return false; - } - } - } - } - } - qtId1 = qtId2; - q1[0] = q2[0]; - q1[1] = q2[1]; - q1[2] = q2[2]; - v1 = v2; - c1 = c2; - } - } - return true; -} - -// --------------------------------------------------- -/** - * Check the quality of a cut between an outer and inner polygon. - * An ideal cut is one that forms a 90 degree angle with each - * line segment that it joins to. Smaller values indicate a - * higher quality cut. - * - * @param {Array} outerPoly - * @param {Array} innerPoly - * @param {Number} i - * @param {Number} j - * @param {vtkPoints} points - */ -function vtkCCSCutQuality(outerPoly, innerPoly, i, j, points) { - const n = outerPoly.length; - const m = innerPoly.length; - const a = i > 0 ? i - 1 : n - 1; - const b = i < n - 1 ? i + 1 : 0; - const c = j > 0 ? j - 1 : m - 1; - const d = j < m - 1 ? j + 1 : 0; - const p0 = []; - const p1 = []; - const p2 = []; - points.getPoint(outerPoly[i], p1); - points.getPoint(innerPoly[j], p2); - const v1 = []; - const v2 = []; - subtract(p2, p1, v1); - const l1 = dot(v1, v1); - let l2; - let qmax = 0; - let q; - points.getPoint(outerPoly[a], p0); - subtract(p0, p1, v2); - l2 = dot(v2, v2); - if (l2 > 0) { - q = dot(v1, v2); - q *= q / l2; - if (q > qmax) { - qmax = q; - } - } - points.getPoint(outerPoly[b], p0); - subtract(p0, p1, v2); - l2 = dot(v2, v2); - if (l2 > 0) { - q = dot(v1, v2); - q *= q / l2; - if (q > qmax) { - qmax = q; - } - } - points.getPoint(innerPoly[c], p0); - subtract(p2, p0, v2); - l2 = dot(v2, v2); - if (l2 > 0) { - q = dot(v1, v2); - q *= q / l2; - if (q > qmax) { - qmax = q; - } - } - points.getPoint(innerPoly[d], p0); - subtract(p2, p0, v2); - l2 = dot(v2, v2); - if (l2 > 0) { - q = dot(v1, v2); - q *= q / l2; - if (q > qmax) { - qmax = q; - } - } - if (l1 > 0) { - return qmax / l1; // also l1 + qmax, incorporates distance; - } - - return Number.MAX_VALUE; -} - -// --------------------------------------------------- -/** - * Find the two sharpest verts on an inner (i.e. inside-out) poly. - * - * @param {Array} poly - * @param {vtkPoints} points - * @param {Vector3} normal - * @param {[Number, Number]} verts - */ -function vtkCCSFindSharpestVerts(poly, points, normal, verts) { - const p1 = []; - const p2 = []; - const v1 = []; - const v2 = []; - const v = []; - let l1; - let l2; - const minVal = [0, 0]; - verts[0] = 0; - verts[1] = 0; - const n = poly.length; - points.getPoint(poly[n - 1], p2); - points.getPoint(poly[0], p1); - subtract(p1, p2, v1); - l1 = Math.sqrt(dot(v1, v1)); - for (let j = 0; j < n; j++) { - let k = j + 1; - if (k === n) { - k = 0; - } - points.getPoint(poly[k], p2); - subtract(p2, p1, v2); - l2 = Math.sqrt(dot(v2, v2)); - cross(v1, v2, v); - const b = dot(v, normal); - if (b < 0 && l1 * l2 > 0) { - // Dot product is |v1||v2|cos(theta), range [-1, +1] - const val = dot(v1, v2) / (l1 * l2); - if (val < minVal[0]) { - minVal[1] = minVal[0]; - minVal[0] = val; - verts[1] = verts[0]; - verts[0] = j; - } - } - - // Rotate to the next point - p1[0] = p2[0]; - p1[1] = p2[1]; - p1[2] = p2[2]; - v1[0] = v2[0]; - v1[1] = v2[1]; - v1[2] = v2[2]; - l1 = l2; - } -} - -// --------------------------------------------------- -/** - * Find two valid cuts between outerPoly and innerPoly. - * Used by vtkCCSCutHoleyPolys. - * - * @param {Array} polys - * @param {Array} polyGroup - * @param {Number} outerPolyId - * @param {Number} innerPolyId - * @param {vtkPoints} points - * @param {Vector3} normal - * @param {Array[]} cuts - * @param {Boolean} exhaustive - */ -function vtkCCSFindCuts(polys, polyGroup, outerPolyId, innerPolyId, points, normal, cuts, exhaustive) { - const outerPoly = polys[outerPolyId]; - const innerPoly = polys[innerPolyId]; - const innerSize = innerPoly.length; - // Find the two sharpest points on the inner poly - const verts = []; - vtkCCSFindSharpestVerts(innerPoly, points, normal, verts); - - // A list of cut locations according to quality - const cutlist = []; - cutlist.length = outerPoly.length; - - // Search for potential cuts (need to find two cuts) - let cutId = 0; - cuts[0][0] = 0; - cuts[0][1] = 0; - cuts[1][0] = 0; - cuts[1][1] = 0; - let foundCut = false; - for (cutId = 0; cutId < 2; cutId++) { - const count = exhaustive ? innerSize : 3; - for (let i = 0; i < count && !foundCut; i++) { - // Semi-randomize the search order - // TODO: Does this do the same as in C++? - // eslint-disable-next-line no-bitwise - let j = (i >> 1) + (i & 1) * (innerSize + 1 >> 1); - // Start at the best first point - j = (j + verts[cutId]) % innerSize; - for (let kk = 0; kk < outerPoly.length; kk++) { - const q = vtkCCSCutQuality(outerPoly, innerPoly, kk, j, points); - cutlist[kk] = [q, kk]; - } - cutlist.sort((a, b) => a[0] - b[0]); - for (let lid = 0; lid < cutlist.length; lid++) { - const k = cutlist[lid][1]; - - // If this is the second cut, do extra checks - if (cutId > 0) { - // Make sure cuts don't share an endpoint - if (j === cuts[0][1] || k === cuts[0][0]) { - // eslint-disable-next-line no-continue - continue; - } - - // Make sure cuts don't intersect - const p1 = []; - const p2 = []; - points.getPoint(outerPoly[cuts[0][0]], p1); - points.getPoint(innerPoly[cuts[0][1]], p2); - const q1 = []; - const q2 = []; - points.getPoint(outerPoly[k], q1); - points.getPoint(innerPoly[j], q2); - let u; - let v; - if (vtkLine.intersection(p1, p2, q1, q2, u, v) === vtkLine.IntersectionState.YES_INTERSECTION) { - // eslint-disable-next-line no-continue - continue; - } - } - - // This check is done for both cuts - if (vtkCCSCheckCut(polys, points, normal, polyGroup, outerPolyId, innerPolyId, k, j)) { - cuts[cutId][0] = k; - cuts[cutId][1] = j; - foundCut = true; - break; - } - } - } - if (!foundCut) { - return false; - } - } - return true; -} - -// --------------------------------------------------- -/** - * Helper for vtkCCSCutHoleyPolys. Change a polygon and a hole - * into two separate polygons by making two cuts between them. - * - * @param {Array[]} polys - * @param {Array} polyEdges - * @param {Number} outerPolyId - * @param {Number} innerPolyId - * @param {vtkPoints} points - * @param {Array[]} cuts - */ -function vtkCCSMakeCuts(polys, polyEdges, outerPolyId, innerPolyId, points, cuts) { - const q = []; - const r = []; - for (let bb = 0; bb < 2; bb++) { - const ptId1 = polys[outerPolyId][cuts[bb][0]]; - const ptId2 = polys[innerPolyId][cuts[bb][1]]; - points.getPoint(ptId1, q); - points.getPoint(ptId2, r); - } - const outerPoly = polys[outerPolyId]; - const innerPoly = polys[innerPolyId]; - const outerEdges = polyEdges[outerPolyId]; - const innerEdges = polyEdges[innerPolyId]; - - // Generate new polys from the cuts - const n = outerPoly.length; - const m = innerPoly.length; - let idx; - - // Generate poly1 - const n1 = n * (cuts[1][0] < cuts[0][0]) + cuts[1][0] - cuts[0][0] + 1; - const n2 = n1 + m * (cuts[0][1] < cuts[1][1]) + cuts[0][1] - cuts[1][1] + 1; - const poly1 = []; - poly1.length = n2; - const edges1 = new Array(n2); - idx = cuts[0][0]; - for (let i1 = 0; i1 < n1; i1++) { - const k = idx++; - poly1[i1] = outerPoly[k]; - edges1[i1] = outerEdges[k]; - idx *= idx !== n; - } - edges1[n1 - 1] = -1; - idx = cuts[1][1]; - for (let i2 = n1; i2 < n2; i2++) { - const k = idx++; - poly1[i2] = innerPoly[k]; - edges1[i2] = innerEdges[k]; - idx *= idx !== m; - } - edges1[n2 - 1] = -1; - - // Generate poly2 - const m1 = n * (cuts[0][0] < cuts[1][0]) + cuts[0][0] - cuts[1][0] + 1; - const m2 = m1 + m * (cuts[1][1] < cuts[0][1]) + cuts[1][1] - cuts[0][1] + 1; - const poly2 = []; - poly2.length = m2; - const edges2 = new Array(m2); - idx = cuts[1][0]; - for (let j1 = 0; j1 < m1; j1++) { - const k = idx++; - poly2[j1] = outerPoly[k]; - edges2[j1] = outerEdges[k]; - idx *= idx !== n; - } - edges2[m1 - 1] = -1; - idx = cuts[0][1]; - for (let j2 = m1; j2 < m2; j2++) { - const k = idx++; - poly2[j2] = innerPoly[k]; - edges2[j2] = innerEdges[k]; - idx *= idx !== m; - } - edges2[m2 - 1] = -1; - - // Replace outerPoly and innerPoly with these new polys - polys[outerPolyId] = poly1; - polys[innerPolyId] = poly2; - polyEdges[outerPolyId] = edges1; - polyEdges[innerPolyId] = edges2; -} - -// --------------------------------------------------- -/** - * After the holes have been identified, make cuts between the - * outer poly and each hole. Make two cuts per hole. The only - * strict requirement is that the cut must not intersect any - * edges, but it's best to make sure that no really sharp angles - * are created. - * - * @param {Array[]} polys - * @param {vtkPoints} points - * @param {Array[]} polyGroups - * @param {Array} polyEdges - * @param {Vector3} normal - * @returns {boolean} - */ -function vtkCCSCutHoleyPolys(polys, points, polyGroups, polyEdges, normal) { - let cutFailure = 0; - - // Go through all groups and cut out the first inner poly that is - // found. Every time an inner poly is cut out, the groupId counter - // is reset because cutting a poly creates a new group. - let groupId = 0; - while (groupId < polyGroups.length) { - const polyGroup = polyGroups[groupId]; - - // Only need to make a cut if the group size is greater than 1 - if (polyGroup.length > 1) { - // The first member of the group is the outer poly - const outerPolyId = polyGroup[0]; - - // The second member of the group is the first inner poly - let innerPolyId = polyGroup[1]; - - // Sort the group by size, do largest holes first - let innerBySize = new Array(polyGroup.length); - for (let i = 1; i < polyGroup.length; i++) { - innerBySize[i] = [polys[polyGroup[i]].length, i]; - } - innerBySize = [innerBySize[0], ...innerBySize.splice(1).sort((a, b) => a[0] - b[0])]; - reverseElements(innerBySize, 1, innerBySize.length - 1); - - // Need to check all inner polys in sequence, until one succeeds. - // Do a quick search first, then do an exhaustive search. - let madeCut = 0; - let inner = 0; - const cuts = [[0, 0], [0, 0]]; - for (let exhaustive = 0; exhaustive < 2 && !madeCut; exhaustive++) { - for (let j = 1; j < polyGroup.length; j++) { - inner = innerBySize[j][1]; - innerPolyId = polyGroup[inner]; - if (vtkCCSFindCuts(polys, polyGroup, outerPolyId, innerPolyId, points, normal, cuts, exhaustive)) { - vtkCCSMakeCuts(polys, polyEdges, outerPolyId, innerPolyId, points, cuts); - madeCut = 1; - break; - } - } - } - if (madeCut) { - // Move successfully cut innerPolyId into its own group - polyGroup.splice(inner, 1); - // Only add if innerPolyId hasn't been set already. - // Having the same poly occur as both polyGroup and - // innerPoly would cause an infinite loop. - if (polyGroups[innerPolyId].length === 0) { - polyGroups[innerPolyId].push(innerPolyId); - } - } else { - // Remove all failed inner polys from the group - for (let k = 1; k < polyGroup.length; k++) { - innerPolyId = polyGroup[k]; - // Only add if innerPolyId hasn't been set already. - // Having the same poly occur as both polyGroup and - // innerPoly would cause an infinite loop. - if (polyGroups[innerPolyId].length === 0) { - polyGroups[innerPolyId].push(innerPolyId); - } - } - polyGroup.length = 1; - cutFailure = 1; - } - - // If there are other interior polys in the group, find out whether - // they are in poly1 or poly2 - if (polyGroup.length > 1) { - const poly1 = polys[outerPolyId]; - const pp = new Float64Array(3 * poly1.length); - const bounds = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0]; - const tol2 = vtkCCSPrepareForPolyInPoly(poly1, points, pp, bounds); - let nextGroupId = groupId; - let ii = 1; - while (ii < polyGroup.length) { - if (vtkCCSPolyInPoly(poly1, polys[polyGroup[ii]], points, normal, pp, bounds, tol2)) { - // Keep this poly in polyGroup - ii++; - } else { - // Move this poly to poly2 group - polyGroups[innerPolyId].push(polyGroup[ii]); - polyGroup.splice(ii, 1); - - // Reduce the groupId to ensure that this new group will get cut - if (innerPolyId < nextGroupId) { - nextGroupId = innerPolyId; - } - } - } - - // Set the groupId for the next iteration - groupId = nextGroupId; - // eslint-disable-next-line no-continue - continue; - } - } - // Increment to the next group - groupId++; - } - return !cutFailure; -} - -export { reverseElements, vtkCCSCheckCut, vtkCCSCheckPolygonSense, vtkCCSCutHoleyPolys, vtkCCSCutQuality, vtkCCSFindCuts, vtkCCSFindSharpestVerts, vtkCCSFindTrueEdges, vtkCCSInsertTriangle, vtkCCSJoinLooseEnds, vtkCCSMakeCuts, vtkCCSMakeHoleyPolys, vtkCCSMakePolysFromLines, vtkCCSPolyInPoly, vtkCCSPrepareForPolyInPoly, vtkCCSReversePoly, vtkCCSSplitAtPinchPoints, vtkCCSTriangleQuality, vtkCCSTriangulate, vtkCCSVectorProgression }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageCropFilter.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageCropFilter.d.ts deleted file mode 100644 index b1cae819..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageCropFilter.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; - -type CroppingPlanes = number[]; - -/** - * - */ -export interface IImageCropFilterInitialValues { - croppingPlanes?: CroppingPlanes; -} - -type vtkImageCropFilterBase = vtkObject & vtkAlgorithm; - -export interface vtkImageCropFilter extends vtkImageCropFilterBase { - /** - * Get The cropping planes, in IJK space. - * @default [0, 0, 0, 0, 0, 0]. - */ - getCroppingPlanes(): CroppingPlanes; - - /** - * Get The cropping planes, in IJK space. - * @default [0, 0, 0, 0, 0, 0]. - */ - getCroppingPlanesByReference(): CroppingPlanes; - - /** - * - */ - isResetAvailable(): boolean; - - /** - * - */ - reset(): void; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * - * @param croppingPlanes - */ - setCroppingPlanes(croppingPlanes: CroppingPlanes): boolean; - - /** - * - * @param croppingPlanes - */ - setCroppingPlanesFrom(croppingPlanes: CroppingPlanes): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkImageCropFilter characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IImageCropFilterInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IImageCropFilterInitialValues -): void; - -/** - * Method used to create a new instance of vtkImageCropFilter - * @param {IImageCropFilterInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IImageCropFilterInitialValues -): vtkImageCropFilter; - -/** - * The vtkImageCropFilter will crop a vtkImageData. This will only crop against - * IJK-aligned planes. - * - * Note this is slow on large datasets due to CPU-bound - * cropping. - */ -export declare const vtkImageCropFilter: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkImageCropFilter; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageCropFilter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageCropFilter.js deleted file mode 100644 index a356f736..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageCropFilter.js +++ /dev/null @@ -1,154 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkImageData from '../../Common/DataModel/ImageData.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkImageCropFilter methods -// ---------------------------------------------------------------------------- - -function vtkImageCropFilter(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkImageCropFilter'); - - // -------------------------------------------------------------------------- - - publicAPI.reset = () => { - const data = publicAPI.getInputData(); - if (data) { - publicAPI.setCroppingPlanes(...data.getExtent()); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.requestData = (inData, outData) => { - // implement requestData - const input = inData[0]; - if (!input) { - vtkErrorMacro('Invalid or missing input'); - return; - } - const outImage = outData[0]?.initialize() || vtkImageData.newInstance(); - outData[0] = outImage; - const scalars = input.getPointData().getScalars(); - if (!scalars) { - vtkErrorMacro('No scalars from input'); - return; - } - const extent = input.getExtent(); - const cropped = model.croppingPlanes && model.croppingPlanes.length === 6 ? extent.map((e, i) => { - if (i % 2 === 0) { - // min plane - return Math.max(e, Math.round(model.croppingPlanes[i])); - } - // max plane - return Math.min(e, Math.round(model.croppingPlanes[i])); - }) : extent.slice(); - if (cropped[0] === extent[0] && cropped[1] === extent[1] && cropped[2] === extent[2] && cropped[3] === extent[3] && cropped[4] === extent[4] && cropped[5] === extent[5]) { - outImage.shallowCopy(input); // Force new mtime - return; - } - - // reorder if needed - for (let i = 0; i < 3; ++i) { - if (cropped[i * 2] > cropped[i * 2 + 1]) { - [cropped[i * 2], cropped[i * 2 + 1]] = [cropped[i * 2 + 1], cropped[i * 2]]; - } - } - - // restrict crop bounds based on extent bounds - for (let i = 0; i < 6; i += 2) { - // min case - cropped[i] = Math.max(cropped[i], extent[i]); - // max case - cropped[i + 1] = Math.min(cropped[i + 1], extent[i + 1]); - } - const numberOfComponents = scalars.getNumberOfComponents(); - const componentSize = (cropped[1] - cropped[0] + 1) * (cropped[3] - cropped[2] + 1) * (cropped[5] - cropped[4] + 1) * numberOfComponents; - const scalarsData = scalars.getData(); - const dims = input.getDimensions(); - const jStride = numberOfComponents * dims[0]; - const kStride = numberOfComponents * dims[0] * dims[1]; - const beginOffset = (cropped[0] - extent[0]) * numberOfComponents; - const stripSize = (cropped[1] - cropped[0] + 1) * numberOfComponents; // +1 because subarray end is exclusive - - // crop image - const croppedArray = new scalarsData.constructor(componentSize); - let index = 0; - for (let k = cropped[4]; k <= cropped[5]; ++k) { - for (let j = cropped[2]; j <= cropped[3]; ++j) { - const begin = beginOffset + (j - extent[2]) * jStride + (k - extent[4]) * kStride; - const end = begin + stripSize; - const slice = scalarsData.subarray(begin, end); - croppedArray.set(slice, index); - index += slice.length; - } - } - outImage.setExtent(cropped); - outImage.setOrigin(input.getOrigin()); - outImage.setSpacing(input.getSpacing()); - outImage.setDirection(input.getDirection()); - const croppedScalars = vtkDataArray.newInstance({ - name: scalars.getName(), - numberOfComponents, - values: croppedArray - }); - outImage.getPointData().setScalars(croppedScalars); - }; - publicAPI.isResetAvailable = () => { - if (model.croppingPlanes == null || model.croppingPlanes.length === 0) { - return false; - } - const data = publicAPI.getInputData(); - if (data) { - const originalExtent = data.getExtent(); - const findDifference = originalExtent.find((v, i) => Math.abs(model.croppingPlanes[i] - v) > Number.EPSILON); - return findDifference !== undefined; - } - return false; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // croppingPlanes: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - - // no orientation support yet - macro.setGetArray(publicAPI, model, ['croppingPlanes'], 6); - - // Object specific methods - vtkImageCropFilter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImageCropFilter'); - -// ---------------------------------------------------------------------------- - -var vtkImageCropFilter$1 = { - newInstance, - extend -}; - -export { vtkImageCropFilter$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageDataOutlineFilter.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageDataOutlineFilter.d.ts deleted file mode 100644 index 72318d7d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageDataOutlineFilter.d.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import vtkImageData from './../../Common/DataModel/ImageData'; -import vtkPolyData from './../../Common/DataModel/PolyData'; - -export const LINE_ARRAY: number[]; - -export interface IImageDataOutlineFilterInitialValues {} - -type vtkImageDataOutlineFilterBase = vtkObject & vtkAlgorithm; - -export interface vtkImageDataOutlineFilter - extends vtkImageDataOutlineFilterBase { - /** - * - * @param inData - * @param outData - */ - requestData(inData: vtkImageData, outData: vtkPolyData): void; - - /** - * Flag that indicates whether the output will generate faces of the outline. - * @returns {boolean} - */ - getGenerateFaces(): boolean; - - /** - * Flag that indicates whether the output will generate wireframe lines of the outline. - * @returns {boolean} - */ - getGenerateLines(): boolean; - - /** - * Flag to indicate that the output should generate wireframe of the outline. - * @param {boolean} generateLines - */ - setGenerateLines(generateLines: boolean): boolean; - - /** - * Flag to indicate that the output should generate triangulated faces of the outline. - * @param {boolean} generateFaces - */ - setGenerateFaces(generateFaces: boolean): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with - * vtkImageDataOutlineFilter characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IImageDataOutlineFilterInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IImageDataOutlineFilterInitialValues -): void; - -/** - * Method used to create a new instance of vtkImageDataOutlineFilter - * @param {IImageDataOutlineFilterInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IImageDataOutlineFilterInitialValues -): vtkImageDataOutlineFilter; - -/** - * vtkImageDataOutlineFilter - A filter that generates oriented outline for - * vtkImageData. - * - * vtkImageDataOutlineFilter is a filter that generates a wireframe or - * triangulated rectangular-cuboid as an outline of an input vtkImageData. - * It takes into account the orientation / DirectionMatrix of the image, so the - * output outline may not be axes aligned. - * - */ -export declare const vtkImageDataOutlineFilter: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkImageDataOutlineFilter; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageDataOutlineFilter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageDataOutlineFilter.js deleted file mode 100644 index ad94f4a9..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageDataOutlineFilter.js +++ /dev/null @@ -1,88 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCubeSource from '../Sources/CubeSource.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkImageDataOutlineFilter methods -// ---------------------------------------------------------------------------- - -function vtkImageDataOutlineFilter(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkImageDataOutlineFilter'); - - // Capture "parentClass" api for internal use - const superClass = { - ...publicAPI - }; - publicAPI.requestData = (inData, outData) => { - // implement requestData - const input = inData[0]; - if (!input || !input.isA('vtkImageData')) { - vtkErrorMacro('Invalid or missing input'); - return; - } - - // First create a cube polydata in the index-space of the image. - // The benefit of using `getSpatialExtent` call is that it automatically - // takes care of 0.5 voxel padding as required by an vtkImageData representation. - const spatialExt = input.getSpatialExtent(); - if (!spatialExt) { - vtkErrorMacro('Unable to fetch spatial extents of input image.'); - return; - } - model._cubeSource.setBounds(spatialExt); - - // Then apply index-to-world transform to the cube to create the outline. - model._cubeSource.setMatrix(input.getIndexToWorld()); - outData[0] = model._cubeSource.getOutputData(); - }; - publicAPI.getMTime = () => Math.max(superClass.getMTime(), model._cubeSource.getMTime()); - - // Forward calls for [set/get]Generate[Faces/Lines] functions to cubeSource: - publicAPI.setGenerateFaces = model._cubeSource.setGenerateFaces; - publicAPI.setGenerateLines = model._cubeSource.setGenerateLines; - publicAPI.getGenerateFaces = model._cubeSource.getGenerateFaces; - publicAPI.getGenerateLines = model._cubeSource.getGenerateLines; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - - // Internal persistent objects - model._cubeSource = vtkCubeSource.newInstance(); - macro.moveToProtected(publicAPI, model, ['cubeSource', 'tmpOut']); - - // Object specific methods - vtkImageDataOutlineFilter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImageDataOutlineFilter'); - -// ---------------------------------------------------------------------------- - -var vtkImageDataOutlineFilter$1 = { - newInstance, - extend -}; - -export { vtkImageDataOutlineFilter$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageMarchingCubes.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageMarchingCubes.js deleted file mode 100644 index 5c22b5e6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageMarchingCubes.js +++ /dev/null @@ -1,311 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkEdgeLocator from '../../Common/DataModel/EdgeLocator.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import { l as normalize } from '../../Common/Core/Math/index.js'; -import vtkCaseTable from './ImageMarchingCubes/caseTable.js'; - -const { - vtkErrorMacro, - vtkDebugMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkImageMarchingCubes methods -// ---------------------------------------------------------------------------- - -function vtkImageMarchingCubes(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkImageMarchingCubes'); - const ids = []; - const voxelScalars = []; - const voxelGradients = []; - const voxelPts = []; - const edgeLocator = vtkEdgeLocator.newInstance(); - - // Retrieve scalars and voxel coordinates. i-j-k is origin of voxel. - publicAPI.getVoxelScalars = (i, j, k, slice, dims, origin, spacing, s) => { - // First get the indices for the voxel - ids[0] = k * slice + j * dims[0] + i; // i, j, k - ids[1] = ids[0] + 1; // i+1, j, k - ids[2] = ids[0] + dims[0]; // i, j+1, k - ids[3] = ids[2] + 1; // i+1, j+1, k - ids[4] = ids[0] + slice; // i, j, k+1 - ids[5] = ids[4] + 1; // i+1, j, k+1 - ids[6] = ids[4] + dims[0]; // i, j+1, k+1 - ids[7] = ids[6] + 1; // i+1, j+1, k+1 - - // Now retrieve the scalars - for (let ii = 0; ii < 8; ++ii) { - voxelScalars[ii] = s[ids[ii]]; - } - }; - - // Retrieve voxel coordinates. i-j-k is origin of voxel. - publicAPI.getVoxelPoints = (i, j, k, origin, spacing) => { - // (i,i+1),(j,j+1),(k,k+1) - i varies fastest; then j; then k - voxelPts[0] = origin[0] + i * spacing[0]; // 0 - voxelPts[1] = origin[1] + j * spacing[1]; - voxelPts[2] = origin[2] + k * spacing[2]; - voxelPts[3] = voxelPts[0] + spacing[0]; // 1 - voxelPts[4] = voxelPts[1]; - voxelPts[5] = voxelPts[2]; - voxelPts[6] = voxelPts[0]; // 2 - voxelPts[7] = voxelPts[1] + spacing[1]; - voxelPts[8] = voxelPts[2]; - voxelPts[9] = voxelPts[3]; // 3 - voxelPts[10] = voxelPts[7]; - voxelPts[11] = voxelPts[2]; - voxelPts[12] = voxelPts[0]; // 4 - voxelPts[13] = voxelPts[1]; - voxelPts[14] = voxelPts[2] + spacing[2]; - voxelPts[15] = voxelPts[3]; // 5 - voxelPts[16] = voxelPts[1]; - voxelPts[17] = voxelPts[14]; - voxelPts[18] = voxelPts[0]; // 6 - voxelPts[19] = voxelPts[7]; - voxelPts[20] = voxelPts[14]; - voxelPts[21] = voxelPts[3]; // 7 - voxelPts[22] = voxelPts[7]; - voxelPts[23] = voxelPts[14]; - }; - - // Compute point gradient at i-j-k location - publicAPI.getPointGradient = (i, j, k, dims, slice, spacing, s, g) => { - let sp; - let sm; - - // x-direction - if (i === 0) { - sp = s[i + 1 + j * dims[0] + k * slice]; - sm = s[i + j * dims[0] + k * slice]; - g[0] = (sm - sp) / spacing[0]; - } else if (i === dims[0] - 1) { - sp = s[i + j * dims[0] + k * slice]; - sm = s[i - 1 + j * dims[0] + k * slice]; - g[0] = (sm - sp) / spacing[0]; - } else { - sp = s[i + 1 + j * dims[0] + k * slice]; - sm = s[i - 1 + j * dims[0] + k * slice]; - g[0] = 0.5 * (sm - sp) / spacing[0]; - } - - // y-direction - if (j === 0) { - sp = s[i + (j + 1) * dims[0] + k * slice]; - sm = s[i + j * dims[0] + k * slice]; - g[1] = (sm - sp) / spacing[1]; - } else if (j === dims[1] - 1) { - sp = s[i + j * dims[0] + k * slice]; - sm = s[i + (j - 1) * dims[0] + k * slice]; - g[1] = (sm - sp) / spacing[1]; - } else { - sp = s[i + (j + 1) * dims[0] + k * slice]; - sm = s[i + (j - 1) * dims[0] + k * slice]; - g[1] = 0.5 * (sm - sp) / spacing[1]; - } - - // z-direction - if (k === 0) { - sp = s[i + j * dims[0] + (k + 1) * slice]; - sm = s[i + j * dims[0] + k * slice]; - g[2] = (sm - sp) / spacing[2]; - } else if (k === dims[2] - 1) { - sp = s[i + j * dims[0] + k * slice]; - sm = s[i + j * dims[0] + (k - 1) * slice]; - g[2] = (sm - sp) / spacing[2]; - } else { - sp = s[i + j * dims[0] + (k + 1) * slice]; - sm = s[i + j * dims[0] + (k - 1) * slice]; - g[2] = 0.5 * (sm - sp) / spacing[2]; - } - }; - - // Compute voxel gradient values. I-j-k is origin point of voxel. - publicAPI.getVoxelGradients = (i, j, k, dims, slice, spacing, scalars) => { - const g = []; - publicAPI.getPointGradient(i, j, k, dims, slice, spacing, scalars, g); - voxelGradients[0] = g[0]; - voxelGradients[1] = g[1]; - voxelGradients[2] = g[2]; - publicAPI.getPointGradient(i + 1, j, k, dims, slice, spacing, scalars, g); - voxelGradients[3] = g[0]; - voxelGradients[4] = g[1]; - voxelGradients[5] = g[2]; - publicAPI.getPointGradient(i, j + 1, k, dims, slice, spacing, scalars, g); - voxelGradients[6] = g[0]; - voxelGradients[7] = g[1]; - voxelGradients[8] = g[2]; - publicAPI.getPointGradient(i + 1, j + 1, k, dims, slice, spacing, scalars, g); - voxelGradients[9] = g[0]; - voxelGradients[10] = g[1]; - voxelGradients[11] = g[2]; - publicAPI.getPointGradient(i, j, k + 1, dims, slice, spacing, scalars, g); - voxelGradients[12] = g[0]; - voxelGradients[13] = g[1]; - voxelGradients[14] = g[2]; - publicAPI.getPointGradient(i + 1, j, k + 1, dims, slice, spacing, scalars, g); - voxelGradients[15] = g[0]; - voxelGradients[16] = g[1]; - voxelGradients[17] = g[2]; - publicAPI.getPointGradient(i, j + 1, k + 1, dims, slice, spacing, scalars, g); - voxelGradients[18] = g[0]; - voxelGradients[19] = g[1]; - voxelGradients[20] = g[2]; - publicAPI.getPointGradient(i + 1, j + 1, k + 1, dims, slice, spacing, scalars, g); - voxelGradients[21] = g[0]; - voxelGradients[22] = g[1]; - voxelGradients[23] = g[2]; - }; - publicAPI.produceTriangles = (cVal, i, j, k, extent, slice, dims, origin, spacing, scalars, points, tris, normals) => { - const CASE_MASK = [1, 2, 4, 8, 16, 32, 64, 128]; - const VERT_MAP = [0, 1, 3, 2, 4, 5, 7, 6]; - const xyz = []; - const n = []; - let pId; - publicAPI.getVoxelScalars(i, j, k, slice, dims, origin, spacing, scalars); - let index = 0; - for (let idx = 0; idx < 8; idx++) { - if (voxelScalars[VERT_MAP[idx]] >= cVal) { - index |= CASE_MASK[idx]; // eslint-disable-line no-bitwise - } - } - - const voxelTris = vtkCaseTable.getCase(index); - if (voxelTris[0] < 0) { - return; // don't get the voxel coordinates, nothing to do - } - - publicAPI.getVoxelPoints(i + extent[0], j + extent[2], k + extent[4], origin, spacing); - if (model.computeNormals) { - publicAPI.getVoxelGradients(i, j, k, dims, slice, spacing, scalars); - } - for (let idx = 0; voxelTris[idx] >= 0; idx += 3) { - tris.push(3); - for (let eid = 0; eid < 3; eid++) { - const edgeVerts = vtkCaseTable.getEdge(voxelTris[idx + eid]); - pId = undefined; - if (model.mergePoints) { - pId = edgeLocator.isInsertedEdge(ids[edgeVerts[0]], ids[edgeVerts[1]])?.value; - } - if (pId === undefined) { - const t = (cVal - voxelScalars[edgeVerts[0]]) / (voxelScalars[edgeVerts[1]] - voxelScalars[edgeVerts[0]]); - const x0 = voxelPts.slice(edgeVerts[0] * 3, (edgeVerts[0] + 1) * 3); - const x1 = voxelPts.slice(edgeVerts[1] * 3, (edgeVerts[1] + 1) * 3); - xyz[0] = x0[0] + t * (x1[0] - x0[0]); - xyz[1] = x0[1] + t * (x1[1] - x0[1]); - xyz[2] = x0[2] + t * (x1[2] - x0[2]); - pId = points.length / 3; - points.push(xyz[0], xyz[1], xyz[2]); - if (model.computeNormals) { - const n0 = voxelGradients.slice(edgeVerts[0] * 3, (edgeVerts[0] + 1) * 3); - const n1 = voxelGradients.slice(edgeVerts[1] * 3, (edgeVerts[1] + 1) * 3); - n[0] = n0[0] + t * (n1[0] - n0[0]); - n[1] = n0[1] + t * (n1[1] - n0[1]); - n[2] = n0[2] + t * (n1[2] - n0[2]); - normalize(n); - normals.push(n[0], n[1], n[2]); - } - if (model.mergePoints) { - edgeLocator.insertEdge(ids[edgeVerts[0]], ids[edgeVerts[1]], pId); - } - } - tris.push(pId); - } - } - }; - publicAPI.requestData = (inData, outData) => { - // implement requestData - const input = inData[0]; - if (!input) { - vtkErrorMacro('Invalid or missing input'); - return; - } - console.time('mcubes'); - - // Retrieve output and volume data - const origin = input.getOrigin(); - const spacing = input.getSpacing(); - const dims = input.getDimensions(); - const s = input.getPointData().getScalars().getData(); - - // Points - dynamic array - const pBuffer = []; - - // Cells - dynamic array - const tBuffer = []; - - // Normals - const nBuffer = []; - - // Loop over all voxels, determine case and process - const extent = input.getExtent(); - const slice = dims[0] * dims[1]; - for (let k = 0; k < dims[2] - 1; ++k) { - for (let j = 0; j < dims[1] - 1; ++j) { - for (let i = 0; i < dims[0] - 1; ++i) { - publicAPI.produceTriangles(model.contourValue, i, j, k, extent, slice, dims, origin, spacing, s, pBuffer, tBuffer, nBuffer); - } - } - } - edgeLocator.initialize(); - - // Update output - const polydata = outData[0]?.initialize() || vtkPolyData.newInstance(); - polydata.getPoints().setData(new Float32Array(pBuffer), 3); - polydata.getPolys().setData(new Uint32Array(tBuffer)); - if (model.computeNormals) { - const nData = new Float32Array(nBuffer); - const normals = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: nData, - name: 'Normals' - }); - polydata.getPointData().setNormals(normals); - } - outData[0] = polydata; - vtkDebugMacro('Produced output'); - console.timeEnd('mcubes'); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - contourValue: 0, - computeNormals: false, - mergePoints: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - macro.setGet(publicAPI, model, ['contourValue', 'computeNormals', 'mergePoints']); - - // Object specific methods - macro.algo(publicAPI, model, 1, 1); - vtkImageMarchingCubes(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImageMarchingCubes'); - -// ---------------------------------------------------------------------------- - -var vtkImageMarchingCubes$1 = { - newInstance, - extend -}; - -export { vtkImageMarchingCubes$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageMarchingCubes/caseTable.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageMarchingCubes/caseTable.js deleted file mode 100644 index 604d347f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageMarchingCubes/caseTable.js +++ /dev/null @@ -1,27 +0,0 @@ -// ---------------------------------------------------------------------------- -// Marching cubes case functions (using triangles to complete tessellation). -// For each case, a list of edge ids that form the triangles. A -1 marks the -// end of the list of edges. Edges are taken three at a time to generate -// triangle points. -// ---------------------------------------------------------------------------- -const MARCHING_CUBE_CASES = [[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 0 0 */, [0, 3, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 1 1 */, [0, 9, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 2 1 */, [1, 3, 8, 9, 1, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 3 2 */, [1, 11, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 4 1 */, [0, 3, 8, 1, 11, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 5 3 */, [9, 11, 2, 0, 9, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 6 2 */, [2, 3, 8, 2, 8, 11, 11, 8, 9, -1, -1, -1, -1, -1, -1, -1] /* 7 5 */, [3, 2, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 8 1 */, [0, 2, 10, 8, 0, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 9 2 */, [1, 0, 9, 2, 10, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 10 3 */, [1, 2, 10, 1, 10, 9, 9, 10, 8, -1, -1, -1, -1, -1, -1, -1] /* 11 5 */, [3, 1, 11, 10, 3, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 12 2 */, [0, 1, 11, 0, 11, 8, 8, 11, 10, -1, -1, -1, -1, -1, -1, -1] /* 13 5 */, [3, 0, 9, 3, 9, 10, 10, 9, 11, -1, -1, -1, -1, -1, -1, -1] /* 14 5 */, [9, 11, 8, 11, 10, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 15 8 */, [4, 8, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 16 1 */, [4, 0, 3, 7, 4, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 17 2 */, [0, 9, 1, 8, 7, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 18 3 */, [4, 9, 1, 4, 1, 7, 7, 1, 3, -1, -1, -1, -1, -1, -1, -1] /* 19 5 */, [1, 11, 2, 8, 7, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 20 4 */, [3, 7, 4, 3, 4, 0, 1, 11, 2, -1, -1, -1, -1, -1, -1, -1] /* 21 7 */, [9, 11, 2, 9, 2, 0, 8, 7, 4, -1, -1, -1, -1, -1, -1, -1] /* 22 7 */, [2, 9, 11, 2, 7, 9, 2, 3, 7, 7, 4, 9, -1, -1, -1, -1] /* 23 14 */, [8, 7, 4, 3, 2, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 24 3 */, [10, 7, 4, 10, 4, 2, 2, 4, 0, -1, -1, -1, -1, -1, -1, -1] /* 25 5 */, [9, 1, 0, 8, 7, 4, 2, 10, 3, -1, -1, -1, -1, -1, -1, -1] /* 26 6 */, [4, 10, 7, 9, 10, 4, 9, 2, 10, 9, 1, 2, -1, -1, -1, -1] /* 27 9 */, [3, 1, 11, 3, 11, 10, 7, 4, 8, -1, -1, -1, -1, -1, -1, -1] /* 28 7 */, [1, 11, 10, 1, 10, 4, 1, 4, 0, 7, 4, 10, -1, -1, -1, -1] /* 29 11 */, [4, 8, 7, 9, 10, 0, 9, 11, 10, 10, 3, 0, -1, -1, -1, -1] /* 30 12 */, [4, 10, 7, 4, 9, 10, 9, 11, 10, -1, -1, -1, -1, -1, -1, -1] /* 31 5 */, [9, 4, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 32 1 */, [9, 4, 5, 0, 3, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 33 3 */, [0, 4, 5, 1, 0, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 34 2 */, [8, 4, 5, 8, 5, 3, 3, 5, 1, -1, -1, -1, -1, -1, -1, -1] /* 35 5 */, [1, 11, 2, 9, 4, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 36 3 */, [3, 8, 0, 1, 11, 2, 4, 5, 9, -1, -1, -1, -1, -1, -1, -1] /* 37 6 */, [5, 11, 2, 5, 2, 4, 4, 2, 0, -1, -1, -1, -1, -1, -1, -1] /* 38 5 */, [2, 5, 11, 3, 5, 2, 3, 4, 5, 3, 8, 4, -1, -1, -1, -1] /* 39 9 */, [9, 4, 5, 2, 10, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 40 4 */, [0, 2, 10, 0, 10, 8, 4, 5, 9, -1, -1, -1, -1, -1, -1, -1] /* 41 7 */, [0, 4, 5, 0, 5, 1, 2, 10, 3, -1, -1, -1, -1, -1, -1, -1] /* 42 7 */, [2, 5, 1, 2, 8, 5, 2, 10, 8, 4, 5, 8, -1, -1, -1, -1] /* 43 11 */, [11, 10, 3, 11, 3, 1, 9, 4, 5, -1, -1, -1, -1, -1, -1, -1] /* 44 7 */, [4, 5, 9, 0, 1, 8, 8, 1, 11, 8, 11, 10, -1, -1, -1, -1] /* 45 12 */, [5, 0, 4, 5, 10, 0, 5, 11, 10, 10, 3, 0, -1, -1, -1, -1] /* 46 14 */, [5, 8, 4, 5, 11, 8, 11, 10, 8, -1, -1, -1, -1, -1, -1, -1] /* 47 5 */, [9, 8, 7, 5, 9, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 48 2 */, [9, 0, 3, 9, 3, 5, 5, 3, 7, -1, -1, -1, -1, -1, -1, -1] /* 49 5 */, [0, 8, 7, 0, 7, 1, 1, 7, 5, -1, -1, -1, -1, -1, -1, -1] /* 50 5 */, [1, 3, 5, 3, 7, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 51 8 */, [9, 8, 7, 9, 7, 5, 11, 2, 1, -1, -1, -1, -1, -1, -1, -1] /* 52 7 */, [11, 2, 1, 9, 0, 5, 5, 0, 3, 5, 3, 7, -1, -1, -1, -1] /* 53 12 */, [8, 2, 0, 8, 5, 2, 8, 7, 5, 11, 2, 5, -1, -1, -1, -1] /* 54 11 */, [2, 5, 11, 2, 3, 5, 3, 7, 5, -1, -1, -1, -1, -1, -1, -1] /* 55 5 */, [7, 5, 9, 7, 9, 8, 3, 2, 10, -1, -1, -1, -1, -1, -1, -1] /* 56 7 */, [9, 7, 5, 9, 2, 7, 9, 0, 2, 2, 10, 7, -1, -1, -1, -1] /* 57 14 */, [2, 10, 3, 0, 8, 1, 1, 8, 7, 1, 7, 5, -1, -1, -1, -1] /* 58 12 */, [10, 1, 2, 10, 7, 1, 7, 5, 1, -1, -1, -1, -1, -1, -1, -1] /* 59 5 */, [9, 8, 5, 8, 7, 5, 11, 3, 1, 11, 10, 3, -1, -1, -1, -1] /* 60 10 */, [5, 0, 7, 5, 9, 0, 7, 0, 10, 1, 11, 0, 10, 0, 11, -1] /* 61 7 */, [10, 0, 11, 10, 3, 0, 11, 0, 5, 8, 7, 0, 5, 0, 7, -1] /* 62 7 */, [10, 5, 11, 7, 5, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 63 2 */, [11, 5, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 64 1 */, [0, 3, 8, 5, 6, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 65 4 */, [9, 1, 0, 5, 6, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 66 3 */, [1, 3, 8, 1, 8, 9, 5, 6, 11, -1, -1, -1, -1, -1, -1, -1] /* 67 7 */, [1, 5, 6, 2, 1, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 68 2 */, [1, 5, 6, 1, 6, 2, 3, 8, 0, -1, -1, -1, -1, -1, -1, -1] /* 69 7 */, [9, 5, 6, 9, 6, 0, 0, 6, 2, -1, -1, -1, -1, -1, -1, -1] /* 70 5 */, [5, 8, 9, 5, 2, 8, 5, 6, 2, 3, 8, 2, -1, -1, -1, -1] /* 71 11 */, [2, 10, 3, 11, 5, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 72 3 */, [10, 8, 0, 10, 0, 2, 11, 5, 6, -1, -1, -1, -1, -1, -1, -1] /* 73 7 */, [0, 9, 1, 2, 10, 3, 5, 6, 11, -1, -1, -1, -1, -1, -1, -1] /* 74 6 */, [5, 6, 11, 1, 2, 9, 9, 2, 10, 9, 10, 8, -1, -1, -1, -1] /* 75 12 */, [6, 10, 3, 6, 3, 5, 5, 3, 1, -1, -1, -1, -1, -1, -1, -1] /* 76 5 */, [0, 10, 8, 0, 5, 10, 0, 1, 5, 5, 6, 10, -1, -1, -1, -1] /* 77 14 */, [3, 6, 10, 0, 6, 3, 0, 5, 6, 0, 9, 5, -1, -1, -1, -1] /* 78 9 */, [6, 9, 5, 6, 10, 9, 10, 8, 9, -1, -1, -1, -1, -1, -1, -1] /* 79 5 */, [5, 6, 11, 4, 8, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 80 3 */, [4, 0, 3, 4, 3, 7, 6, 11, 5, -1, -1, -1, -1, -1, -1, -1] /* 81 7 */, [1, 0, 9, 5, 6, 11, 8, 7, 4, -1, -1, -1, -1, -1, -1, -1] /* 82 6 */, [11, 5, 6, 1, 7, 9, 1, 3, 7, 7, 4, 9, -1, -1, -1, -1] /* 83 12 */, [6, 2, 1, 6, 1, 5, 4, 8, 7, -1, -1, -1, -1, -1, -1, -1] /* 84 7 */, [1, 5, 2, 5, 6, 2, 3, 4, 0, 3, 7, 4, -1, -1, -1, -1] /* 85 10 */, [8, 7, 4, 9, 5, 0, 0, 5, 6, 0, 6, 2, -1, -1, -1, -1] /* 86 12 */, [7, 9, 3, 7, 4, 9, 3, 9, 2, 5, 6, 9, 2, 9, 6, -1] /* 87 7 */, [3, 2, 10, 7, 4, 8, 11, 5, 6, -1, -1, -1, -1, -1, -1, -1] /* 88 6 */, [5, 6, 11, 4, 2, 7, 4, 0, 2, 2, 10, 7, -1, -1, -1, -1] /* 89 12 */, [0, 9, 1, 4, 8, 7, 2, 10, 3, 5, 6, 11, -1, -1, -1, -1] /* 90 13 */, [9, 1, 2, 9, 2, 10, 9, 10, 4, 7, 4, 10, 5, 6, 11, -1] /* 91 6 */, [8, 7, 4, 3, 5, 10, 3, 1, 5, 5, 6, 10, -1, -1, -1, -1] /* 92 12 */, [5, 10, 1, 5, 6, 10, 1, 10, 0, 7, 4, 10, 0, 10, 4, -1] /* 93 7 */, [0, 9, 5, 0, 5, 6, 0, 6, 3, 10, 3, 6, 8, 7, 4, -1] /* 94 6 */, [6, 9, 5, 6, 10, 9, 4, 9, 7, 7, 9, 10, -1, -1, -1, -1] /* 95 3 */, [11, 9, 4, 6, 11, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 96 2 */, [4, 6, 11, 4, 11, 9, 0, 3, 8, -1, -1, -1, -1, -1, -1, -1] /* 97 7 */, [11, 1, 0, 11, 0, 6, 6, 0, 4, -1, -1, -1, -1, -1, -1, -1] /* 98 5 */, [8, 1, 3, 8, 6, 1, 8, 4, 6, 6, 11, 1, -1, -1, -1, -1] /* 99 14 */, [1, 9, 4, 1, 4, 2, 2, 4, 6, -1, -1, -1, -1, -1, -1, -1] /* 100 5 */, [3, 8, 0, 1, 9, 2, 2, 9, 4, 2, 4, 6, -1, -1, -1, -1] /* 101 12 */, [0, 4, 2, 4, 6, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 102 8 */, [8, 2, 3, 8, 4, 2, 4, 6, 2, -1, -1, -1, -1, -1, -1, -1] /* 103 5 */, [11, 9, 4, 11, 4, 6, 10, 3, 2, -1, -1, -1, -1, -1, -1, -1] /* 104 7 */, [0, 2, 8, 2, 10, 8, 4, 11, 9, 4, 6, 11, -1, -1, -1, -1] /* 105 10 */, [3, 2, 10, 0, 6, 1, 0, 4, 6, 6, 11, 1, -1, -1, -1, -1] /* 106 12 */, [6, 1, 4, 6, 11, 1, 4, 1, 8, 2, 10, 1, 8, 1, 10, -1] /* 107 7 */, [9, 4, 6, 9, 6, 3, 9, 3, 1, 10, 3, 6, -1, -1, -1, -1] /* 108 11 */, [8, 1, 10, 8, 0, 1, 10, 1, 6, 9, 4, 1, 6, 1, 4, -1] /* 109 7 */, [3, 6, 10, 3, 0, 6, 0, 4, 6, -1, -1, -1, -1, -1, -1, -1] /* 110 5 */, [6, 8, 4, 10, 8, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 111 2 */, [7, 6, 11, 7, 11, 8, 8, 11, 9, -1, -1, -1, -1, -1, -1, -1] /* 112 5 */, [0, 3, 7, 0, 7, 11, 0, 11, 9, 6, 11, 7, -1, -1, -1, -1] /* 113 11 */, [11, 7, 6, 1, 7, 11, 1, 8, 7, 1, 0, 8, -1, -1, -1, -1] /* 114 9 */, [11, 7, 6, 11, 1, 7, 1, 3, 7, -1, -1, -1, -1, -1, -1, -1] /* 115 5 */, [1, 6, 2, 1, 8, 6, 1, 9, 8, 8, 7, 6, -1, -1, -1, -1] /* 116 14 */, [2, 9, 6, 2, 1, 9, 6, 9, 7, 0, 3, 9, 7, 9, 3, -1] /* 117 7 */, [7, 0, 8, 7, 6, 0, 6, 2, 0, -1, -1, -1, -1, -1, -1, -1] /* 118 5 */, [7, 2, 3, 6, 2, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 119 2 */, [2, 10, 3, 11, 8, 6, 11, 9, 8, 8, 7, 6, -1, -1, -1, -1] /* 120 12 */, [2, 7, 0, 2, 10, 7, 0, 7, 9, 6, 11, 7, 9, 7, 11, -1] /* 121 7 */, [1, 0, 8, 1, 8, 7, 1, 7, 11, 6, 11, 7, 2, 10, 3, -1] /* 122 6 */, [10, 1, 2, 10, 7, 1, 11, 1, 6, 6, 1, 7, -1, -1, -1, -1] /* 123 3 */, [8, 6, 9, 8, 7, 6, 9, 6, 1, 10, 3, 6, 1, 6, 3, -1] /* 124 7 */, [0, 1, 9, 10, 7, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 125 4 */, [7, 0, 8, 7, 6, 0, 3, 0, 10, 10, 0, 6, -1, -1, -1, -1] /* 126 3 */, [7, 6, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 127 1 */, [7, 10, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 128 1 */, [3, 8, 0, 10, 6, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 129 3 */, [0, 9, 1, 10, 6, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 130 4 */, [8, 9, 1, 8, 1, 3, 10, 6, 7, -1, -1, -1, -1, -1, -1, -1] /* 131 7 */, [11, 2, 1, 6, 7, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 132 3 */, [1, 11, 2, 3, 8, 0, 6, 7, 10, -1, -1, -1, -1, -1, -1, -1] /* 133 6 */, [2, 0, 9, 2, 9, 11, 6, 7, 10, -1, -1, -1, -1, -1, -1, -1] /* 134 7 */, [6, 7, 10, 2, 3, 11, 11, 3, 8, 11, 8, 9, -1, -1, -1, -1] /* 135 12 */, [7, 3, 2, 6, 7, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 136 2 */, [7, 8, 0, 7, 0, 6, 6, 0, 2, -1, -1, -1, -1, -1, -1, -1] /* 137 5 */, [2, 6, 7, 2, 7, 3, 0, 9, 1, -1, -1, -1, -1, -1, -1, -1] /* 138 7 */, [1, 2, 6, 1, 6, 8, 1, 8, 9, 8, 6, 7, -1, -1, -1, -1] /* 139 14 */, [11, 6, 7, 11, 7, 1, 1, 7, 3, -1, -1, -1, -1, -1, -1, -1] /* 140 5 */, [11, 6, 7, 1, 11, 7, 1, 7, 8, 1, 8, 0, -1, -1, -1, -1] /* 141 9 */, [0, 7, 3, 0, 11, 7, 0, 9, 11, 6, 7, 11, -1, -1, -1, -1] /* 142 11 */, [7, 11, 6, 7, 8, 11, 8, 9, 11, -1, -1, -1, -1, -1, -1, -1] /* 143 5 */, [6, 4, 8, 10, 6, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 144 2 */, [3, 10, 6, 3, 6, 0, 0, 6, 4, -1, -1, -1, -1, -1, -1, -1] /* 145 5 */, [8, 10, 6, 8, 6, 4, 9, 1, 0, -1, -1, -1, -1, -1, -1, -1] /* 146 7 */, [9, 6, 4, 9, 3, 6, 9, 1, 3, 10, 6, 3, -1, -1, -1, -1] /* 147 11 */, [6, 4, 8, 6, 8, 10, 2, 1, 11, -1, -1, -1, -1, -1, -1, -1] /* 148 7 */, [1, 11, 2, 3, 10, 0, 0, 10, 6, 0, 6, 4, -1, -1, -1, -1] /* 149 12 */, [4, 8, 10, 4, 10, 6, 0, 9, 2, 2, 9, 11, -1, -1, -1, -1] /* 150 10 */, [11, 3, 9, 11, 2, 3, 9, 3, 4, 10, 6, 3, 4, 3, 6, -1] /* 151 7 */, [8, 3, 2, 8, 2, 4, 4, 2, 6, -1, -1, -1, -1, -1, -1, -1] /* 152 5 */, [0, 2, 4, 4, 2, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 153 8 */, [1, 0, 9, 2, 4, 3, 2, 6, 4, 4, 8, 3, -1, -1, -1, -1] /* 154 12 */, [1, 4, 9, 1, 2, 4, 2, 6, 4, -1, -1, -1, -1, -1, -1, -1] /* 155 5 */, [8, 3, 1, 8, 1, 6, 8, 6, 4, 6, 1, 11, -1, -1, -1, -1] /* 156 14 */, [11, 0, 1, 11, 6, 0, 6, 4, 0, -1, -1, -1, -1, -1, -1, -1] /* 157 5 */, [4, 3, 6, 4, 8, 3, 6, 3, 11, 0, 9, 3, 11, 3, 9, -1] /* 158 7 */, [11, 4, 9, 6, 4, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 159 2 */, [4, 5, 9, 7, 10, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 160 3 */, [0, 3, 8, 4, 5, 9, 10, 6, 7, -1, -1, -1, -1, -1, -1, -1] /* 161 6 */, [5, 1, 0, 5, 0, 4, 7, 10, 6, -1, -1, -1, -1, -1, -1, -1] /* 162 7 */, [10, 6, 7, 8, 4, 3, 3, 4, 5, 3, 5, 1, -1, -1, -1, -1] /* 163 12 */, [9, 4, 5, 11, 2, 1, 7, 10, 6, -1, -1, -1, -1, -1, -1, -1] /* 164 6 */, [6, 7, 10, 1, 11, 2, 0, 3, 8, 4, 5, 9, -1, -1, -1, -1] /* 165 13 */, [7, 10, 6, 5, 11, 4, 4, 11, 2, 4, 2, 0, -1, -1, -1, -1] /* 166 12 */, [3, 8, 4, 3, 4, 5, 3, 5, 2, 11, 2, 5, 10, 6, 7, -1] /* 167 6 */, [7, 3, 2, 7, 2, 6, 5, 9, 4, -1, -1, -1, -1, -1, -1, -1] /* 168 7 */, [9, 4, 5, 0, 6, 8, 0, 2, 6, 6, 7, 8, -1, -1, -1, -1] /* 169 12 */, [3, 2, 6, 3, 6, 7, 1, 0, 5, 5, 0, 4, -1, -1, -1, -1] /* 170 10 */, [6, 8, 2, 6, 7, 8, 2, 8, 1, 4, 5, 8, 1, 8, 5, -1] /* 171 7 */, [9, 4, 5, 11, 6, 1, 1, 6, 7, 1, 7, 3, -1, -1, -1, -1] /* 172 12 */, [1, 11, 6, 1, 6, 7, 1, 7, 0, 8, 0, 7, 9, 4, 5, -1] /* 173 6 */, [4, 11, 0, 4, 5, 11, 0, 11, 3, 6, 7, 11, 3, 11, 7, -1] /* 174 7 */, [7, 11, 6, 7, 8, 11, 5, 11, 4, 4, 11, 8, -1, -1, -1, -1] /* 175 3 */, [6, 5, 9, 6, 9, 10, 10, 9, 8, -1, -1, -1, -1, -1, -1, -1] /* 176 5 */, [3, 10, 6, 0, 3, 6, 0, 6, 5, 0, 5, 9, -1, -1, -1, -1] /* 177 9 */, [0, 8, 10, 0, 10, 5, 0, 5, 1, 5, 10, 6, -1, -1, -1, -1] /* 178 14 */, [6, 3, 10, 6, 5, 3, 5, 1, 3, -1, -1, -1, -1, -1, -1, -1] /* 179 5 */, [1, 11, 2, 9, 10, 5, 9, 8, 10, 10, 6, 5, -1, -1, -1, -1] /* 180 12 */, [0, 3, 10, 0, 10, 6, 0, 6, 9, 5, 9, 6, 1, 11, 2, -1] /* 181 6 */, [10, 5, 8, 10, 6, 5, 8, 5, 0, 11, 2, 5, 0, 5, 2, -1] /* 182 7 */, [6, 3, 10, 6, 5, 3, 2, 3, 11, 11, 3, 5, -1, -1, -1, -1] /* 183 3 */, [5, 9, 8, 5, 8, 2, 5, 2, 6, 3, 2, 8, -1, -1, -1, -1] /* 184 11 */, [9, 6, 5, 9, 0, 6, 0, 2, 6, -1, -1, -1, -1, -1, -1, -1] /* 185 5 */, [1, 8, 5, 1, 0, 8, 5, 8, 6, 3, 2, 8, 6, 8, 2, -1] /* 186 7 */, [1, 6, 5, 2, 6, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 187 2 */, [1, 6, 3, 1, 11, 6, 3, 6, 8, 5, 9, 6, 8, 6, 9, -1] /* 188 7 */, [11, 0, 1, 11, 6, 0, 9, 0, 5, 5, 0, 6, -1, -1, -1, -1] /* 189 3 */, [0, 8, 3, 5, 11, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 190 4 */, [11, 6, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 191 1 */, [10, 11, 5, 7, 10, 5, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 192 2 */, [10, 11, 5, 10, 5, 7, 8, 0, 3, -1, -1, -1, -1, -1, -1, -1] /* 193 7 */, [5, 7, 10, 5, 10, 11, 1, 0, 9, -1, -1, -1, -1, -1, -1, -1] /* 194 7 */, [11, 5, 7, 11, 7, 10, 9, 1, 8, 8, 1, 3, -1, -1, -1, -1] /* 195 10 */, [10, 2, 1, 10, 1, 7, 7, 1, 5, -1, -1, -1, -1, -1, -1, -1] /* 196 5 */, [0, 3, 8, 1, 7, 2, 1, 5, 7, 7, 10, 2, -1, -1, -1, -1] /* 197 12 */, [9, 5, 7, 9, 7, 2, 9, 2, 0, 2, 7, 10, -1, -1, -1, -1] /* 198 14 */, [7, 2, 5, 7, 10, 2, 5, 2, 9, 3, 8, 2, 9, 2, 8, -1] /* 199 7 */, [2, 11, 5, 2, 5, 3, 3, 5, 7, -1, -1, -1, -1, -1, -1, -1] /* 200 5 */, [8, 0, 2, 8, 2, 5, 8, 5, 7, 11, 5, 2, -1, -1, -1, -1] /* 201 11 */, [9, 1, 0, 5, 3, 11, 5, 7, 3, 3, 2, 11, -1, -1, -1, -1] /* 202 12 */, [9, 2, 8, 9, 1, 2, 8, 2, 7, 11, 5, 2, 7, 2, 5, -1] /* 203 7 */, [1, 5, 3, 3, 5, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 204 8 */, [0, 7, 8, 0, 1, 7, 1, 5, 7, -1, -1, -1, -1, -1, -1, -1] /* 205 5 */, [9, 3, 0, 9, 5, 3, 5, 7, 3, -1, -1, -1, -1, -1, -1, -1] /* 206 5 */, [9, 7, 8, 5, 7, 9, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 207 2 */, [5, 4, 8, 5, 8, 11, 11, 8, 10, -1, -1, -1, -1, -1, -1, -1] /* 208 5 */, [5, 4, 0, 5, 0, 10, 5, 10, 11, 10, 0, 3, -1, -1, -1, -1] /* 209 14 */, [0, 9, 1, 8, 11, 4, 8, 10, 11, 11, 5, 4, -1, -1, -1, -1] /* 210 12 */, [11, 4, 10, 11, 5, 4, 10, 4, 3, 9, 1, 4, 3, 4, 1, -1] /* 211 7 */, [2, 1, 5, 2, 5, 8, 2, 8, 10, 4, 8, 5, -1, -1, -1, -1] /* 212 11 */, [0, 10, 4, 0, 3, 10, 4, 10, 5, 2, 1, 10, 5, 10, 1, -1] /* 213 7 */, [0, 5, 2, 0, 9, 5, 2, 5, 10, 4, 8, 5, 10, 5, 8, -1] /* 214 7 */, [9, 5, 4, 2, 3, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 215 4 */, [2, 11, 5, 3, 2, 5, 3, 5, 4, 3, 4, 8, -1, -1, -1, -1] /* 216 9 */, [5, 2, 11, 5, 4, 2, 4, 0, 2, -1, -1, -1, -1, -1, -1, -1] /* 217 5 */, [3, 2, 11, 3, 11, 5, 3, 5, 8, 4, 8, 5, 0, 9, 1, -1] /* 218 6 */, [5, 2, 11, 5, 4, 2, 1, 2, 9, 9, 2, 4, -1, -1, -1, -1] /* 219 3 */, [8, 5, 4, 8, 3, 5, 3, 1, 5, -1, -1, -1, -1, -1, -1, -1] /* 220 5 */, [0, 5, 4, 1, 5, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 221 2 */, [8, 5, 4, 8, 3, 5, 9, 5, 0, 0, 5, 3, -1, -1, -1, -1] /* 222 3 */, [9, 5, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 223 1 */, [4, 7, 10, 4, 10, 9, 9, 10, 11, -1, -1, -1, -1, -1, -1, -1] /* 224 5 */, [0, 3, 8, 4, 7, 9, 9, 7, 10, 9, 10, 11, -1, -1, -1, -1] /* 225 12 */, [1, 10, 11, 1, 4, 10, 1, 0, 4, 7, 10, 4, -1, -1, -1, -1] /* 226 11 */, [3, 4, 1, 3, 8, 4, 1, 4, 11, 7, 10, 4, 11, 4, 10, -1] /* 227 7 */, [4, 7, 10, 9, 4, 10, 9, 10, 2, 9, 2, 1, -1, -1, -1, -1] /* 228 9 */, [9, 4, 7, 9, 7, 10, 9, 10, 1, 2, 1, 10, 0, 3, 8, -1] /* 229 6 */, [10, 4, 7, 10, 2, 4, 2, 0, 4, -1, -1, -1, -1, -1, -1, -1] /* 230 5 */, [10, 4, 7, 10, 2, 4, 8, 4, 3, 3, 4, 2, -1, -1, -1, -1] /* 231 3 */, [2, 11, 9, 2, 9, 7, 2, 7, 3, 7, 9, 4, -1, -1, -1, -1] /* 232 14 */, [9, 7, 11, 9, 4, 7, 11, 7, 2, 8, 0, 7, 2, 7, 0, -1] /* 233 7 */, [3, 11, 7, 3, 2, 11, 7, 11, 4, 1, 0, 11, 4, 11, 0, -1] /* 234 7 */, [1, 2, 11, 8, 4, 7, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 235 4 */, [4, 1, 9, 4, 7, 1, 7, 3, 1, -1, -1, -1, -1, -1, -1, -1] /* 236 5 */, [4, 1, 9, 4, 7, 1, 0, 1, 8, 8, 1, 7, -1, -1, -1, -1] /* 237 3 */, [4, 3, 0, 7, 3, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 238 2 */, [4, 7, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 239 1 */, [9, 8, 11, 11, 8, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 240 8 */, [3, 9, 0, 3, 10, 9, 10, 11, 9, -1, -1, -1, -1, -1, -1, -1] /* 241 5 */, [0, 11, 1, 0, 8, 11, 8, 10, 11, -1, -1, -1, -1, -1, -1, -1] /* 242 5 */, [3, 11, 1, 10, 11, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 243 2 */, [1, 10, 2, 1, 9, 10, 9, 8, 10, -1, -1, -1, -1, -1, -1, -1] /* 244 5 */, [3, 9, 0, 3, 10, 9, 1, 9, 2, 2, 9, 10, -1, -1, -1, -1] /* 245 3 */, [0, 10, 2, 8, 10, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 246 2 */, [3, 10, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 247 1 */, [2, 8, 3, 2, 11, 8, 11, 9, 8, -1, -1, -1, -1, -1, -1, -1] /* 248 5 */, [9, 2, 11, 0, 2, 9, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 249 2 */, [2, 8, 3, 2, 11, 8, 0, 8, 1, 1, 8, 11, -1, -1, -1, -1] /* 250 3 */, [1, 2, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 251 1 */, [1, 8, 3, 9, 8, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 252 2 */, [0, 1, 9, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 253 1 */, [0, 8, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 254 1 */, [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] /* 255 0 */]; - -const EDGES = [[0, 1], [1, 3], [2, 3], [0, 2], [4, 5], [5, 7], [6, 7], [4, 6], [0, 4], [1, 5], [2, 6], [3, 7]]; -function getCase(index) { - return MARCHING_CUBE_CASES[index]; -} - -// Define the twelve edges of the voxel by the following pairs of vertices -function getEdge(eid) { - return EDGES[eid]; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- -var vtkCaseTable = { - getCase, - getEdge -}; - -export { vtkCaseTable as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageMarchingSquares.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageMarchingSquares.js deleted file mode 100644 index 4aad6d34..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageMarchingSquares.js +++ /dev/null @@ -1,259 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkEdgeLocator from '../../Common/DataModel/EdgeLocator.js'; -import vtkCaseTable from './ImageMarchingSquares/caseTable.js'; - -const { - vtkErrorMacro, - vtkDebugMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkImageMarchingSquares methods -// ---------------------------------------------------------------------------- - -function vtkImageMarchingSquares(publicAPI, model) { - /** - * Get the X,Y kernels based on the set slicing mode. - * @returns {[number, number]} - */ - function getKernels() { - let kernelX = 0; // default K slicing mode - let kernelY = 1; - if (model.slicingMode === 1) { - kernelX = 0; - kernelY = 2; - } else if (model.slicingMode === 0) { - kernelX = 1; - kernelY = 2; - } - return [kernelX, kernelY]; - } - - // Set our className - model.classHierarchy.push('vtkImageMarchingSquares'); - - /** - * Get the list of contour values. - * @returns {number[]} - */ - publicAPI.getContourValues = () => model.contourValues; - - /** - * Set the list contour values. - * @param {number[]} cValues - */ - publicAPI.setContourValues = cValues => { - model.contourValues = cValues; - publicAPI.modified(); - }; - const ids = []; - const pixelScalars = []; - const pixelPts = []; - const edgeLocator = vtkEdgeLocator.newInstance(); - - /** - * Retrieve scalars and pixel coordinates. - * @param {Vector3} ijk origin of the pixel - * @param {Vector3} dims dimensions of the image - * @param {TypedArray} scalars list of scalar values - * @param {Vector3} increments IJK slice increments - * @param {number} kernelX index of the X element - * @param {number} kernelY index of the Y element - */ - publicAPI.getPixelScalars = (ijk, dims, scalars, increments, kernelX, kernelY) => { - const [i, j, k] = ijk; - - // First get the indices for the pixel - ids[0] = k * dims[1] * dims[0] + j * dims[0] + i; // i, j, k - ids[1] = ids[0] + increments[kernelX]; // i+1, j, k - ids[2] = ids[0] + increments[kernelY]; // i, j+1, k - ids[3] = ids[2] + increments[kernelX]; // i+1, j+1, k - - // Now retrieve the scalars - for (let ii = 0; ii < 4; ++ii) { - pixelScalars[ii] = scalars[ids[ii]]; - } - }; - - /** - * Retrieve pixel coordinates. - * @param {Vector3} ijk origin of the pixel - * @param {Vector3} origin origin of the image - * @param {Vector3} spacing spacing of the image - * @param {number} kernelX index of the X element - * @param {number} kernelY index of the Y element - */ - publicAPI.getPixelPoints = (ijk, origin, spacing, kernelX, kernelY) => { - const i = ijk[kernelX]; - const j = ijk[kernelY]; - - // (i,i+1),(j,j+1),(k,k+1) - i varies fastest; then j; then k - pixelPts[0] = origin[kernelX] + i * spacing[kernelX]; // 0 - pixelPts[1] = origin[kernelY] + j * spacing[kernelY]; - pixelPts[2] = pixelPts[0] + spacing[kernelX]; // 1 - pixelPts[3] = pixelPts[1]; - pixelPts[4] = pixelPts[0]; // 2 - pixelPts[5] = pixelPts[1] + spacing[kernelY]; - pixelPts[6] = pixelPts[2]; // 3 - pixelPts[7] = pixelPts[5]; - }; - - /** - * Produce points and lines for the polydata. - * @param {number[]} cVal list of contour values - * @param {Vector3} ijk origin of the pixel - * @param {Vector3} dims dimensions of the image - * @param {Vector3} origin origin of the image - * @param {Vector3} spacing sapcing of the image - * @param {TypedArray} scalars list of scalar values - * @param {number[]} points list of points - * @param {number[]} lines list of lines - * @param {Vector3} increments IJK slice increments - * @param {number} kernelX index of the X element - * @param {number} kernelY index of the Y element - */ - publicAPI.produceLines = (cVal, ijk, dims, origin, spacing, scalars, points, lines, increments, kernelX, kernelY) => { - const k = ijk[model.slicingMode]; - const CASE_MASK = [1, 2, 8, 4]; // case table is actually for quad - const xyz = []; - let pId; - publicAPI.getPixelScalars(ijk, dims, scalars, increments, kernelX, kernelY); - let index = 0; - for (let idx = 0; idx < 4; idx++) { - if (pixelScalars[idx] >= cVal) { - index |= CASE_MASK[idx]; // eslint-disable-line no-bitwise - } - } - - const pixelLines = vtkCaseTable.getCase(index); - if (pixelLines[0] < 0) { - return; // don't get the pixel coordinates, nothing to do - } - - publicAPI.getPixelPoints(ijk, origin, spacing, kernelX, kernelY); - const z = origin[model.slicingMode] + k * spacing[model.slicingMode]; - for (let idx = 0; pixelLines[idx] >= 0; idx += 2) { - lines.push(2); - for (let eid = 0; eid < 2; eid++) { - const edgeVerts = vtkCaseTable.getEdge(pixelLines[idx + eid]); - pId = undefined; - if (model.mergePoints) { - pId = edgeLocator.isInsertedEdge(ids[edgeVerts[0]], ids[edgeVerts[1]])?.value; - } - if (pId === undefined) { - const t = (cVal - pixelScalars[edgeVerts[0]]) / (pixelScalars[edgeVerts[1]] - pixelScalars[edgeVerts[0]]); - const x0 = pixelPts.slice(edgeVerts[0] * 2, (edgeVerts[0] + 1) * 2); - const x1 = pixelPts.slice(edgeVerts[1] * 2, (edgeVerts[1] + 1) * 2); - xyz[kernelX] = x0[0] + t * (x1[0] - x0[0]); - xyz[kernelY] = x0[1] + t * (x1[1] - x0[1]); - xyz[model.slicingMode] = z; - pId = points.length / 3; - points.push(xyz[0], xyz[1], xyz[2]); - if (model.mergePoints) { - edgeLocator.insertEdge(ids[edgeVerts[0]], ids[edgeVerts[1]], pId); - } - } - lines.push(pId); - } - } - }; - publicAPI.requestData = (inData, outData) => { - // implement requestData - const input = inData[0]; - if (!input) { - vtkErrorMacro('Invalid or missing input'); - return; - } - if (model.slicingMode == null || model.slicingMode < 0 || model.slicingMode > 2) { - vtkErrorMacro('Invalid or missing slicing mode'); - return; - } - console.time('msquares'); - - // Retrieve output and volume data - const origin = input.getOrigin(); - const spacing = input.getSpacing(); - const dims = input.getDimensions(); - const extent = input.getExtent(); - const increments = input.computeIncrements(extent); - const scalars = input.getPointData().getScalars().getData(); - const [kernelX, kernelY] = getKernels(); - - // Points - dynamic array - const points = []; - - // Cells - dynamic array - const lines = []; - - // Ensure slice is valid - let k = Math.round(model.slice); - if (k >= dims[model.slicingMode]) { - k = 0; - } - - // Loop over all contour values, and then pixels, determine case and process - const ijk = [0, 0, 0]; - ijk[model.slicingMode] = k; - for (let cv = 0; cv < model.contourValues.length; ++cv) { - for (let j = 0; j < dims[kernelY] - 1; ++j) { - ijk[kernelY] = j; - for (let i = 0; i < dims[kernelX] - 1; ++i) { - ijk[kernelX] = i; - publicAPI.produceLines(model.contourValues[cv], ijk, dims, origin, spacing, scalars, points, lines, increments, kernelX, kernelY); - } - } - edgeLocator.initialize(); - } - - // Update output - const polydata = outData[0]?.initialize() || vtkPolyData.newInstance(); - polydata.getPoints().setData(new Float32Array(points), 3); - polydata.getLines().setData(new Uint32Array(lines)); - outData[0] = polydata; - vtkDebugMacro('Produced output'); - console.timeEnd('msquares'); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - contourValues: [], - slicingMode: 2, - slice: 0, - mergePoints: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - macro.setGet(publicAPI, model, ['slicingMode', 'slice', 'mergePoints']); - - // Object specific methods - macro.algo(publicAPI, model, 1, 1); - vtkImageMarchingSquares(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImageMarchingSquares'); - -// ---------------------------------------------------------------------------- - -var vtkImageMarchingSquares$1 = { - newInstance, - extend -}; - -export { vtkImageMarchingSquares$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageMarchingSquares/caseTable.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageMarchingSquares/caseTable.js deleted file mode 100644 index ea7e113d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageMarchingSquares/caseTable.js +++ /dev/null @@ -1,27 +0,0 @@ -// ---------------------------------------------------------------------------- -// Marching squares case functions (using lines to generate the 2D tessellation). -// For each case, a list of edge ids that form the triangles. A -1 marks the -// end of the list of edges. Edges are taken three at a time to generate -// triangle points. -// ---------------------------------------------------------------------------- -const MARCHING_SQUARES_CASES = [[-1, -1, -1, -1, -1] /* 0 */, [0, 3, -1, -1, -1] /* 1 */, [1, 0, -1, -1, -1] /* 2 */, [1, 3, -1, -1, -1] /* 3 */, [2, 1, -1, -1, -1] /* 4 */, [0, 3, 2, 1, -1] /* 5 */, [2, 0, -1, -1, -1] /* 6 */, [2, 3, -1, -1, -1] /* 7 */, [3, 2, -1, -1, -1] /* 8 */, [0, 2, -1, -1, -1] /* 9 */, [1, 0, 3, 2, -1] /* 10 */, [1, 2, -1, -1, -1] /* 11 */, [3, 1, -1, -1, -1] /* 12 */, [0, 1, -1, -1, -1] /* 13 */, [3, 0, -1, -1, -1] /* 14 */, [-1, -1, -1, -1, -1] /* 15 */]; - -const EDGES = [[0, 1], [1, 3], [2, 3], [0, 2]]; -function getCase(index) { - return MARCHING_SQUARES_CASES[index]; -} - -// Define the four edges of the pixel by the following pairs of vertices -function getEdge(eid) { - return EDGES[eid]; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- -var vtkCaseTable = { - getCase, - getEdge -}; - -export { vtkCaseTable as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageOutlineFilter.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageOutlineFilter.d.ts deleted file mode 100644 index d9d87db8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageOutlineFilter.d.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; - -/** - * - */ -export interface IImageOutlineFilterInitialValues { - slicingMode?: number; - background?: number; -} - -type vtkImageOutlineFilterBase = vtkObject & vtkAlgorithm; - -export interface vtkImageOutlineFilter extends vtkImageOutlineFilterBase { - /** - * - * @default 0 - */ - getBackground(): number; - - /** - * - * @default 2 - */ - getSlicingMode(): number; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * - * @param background - */ - setBackground(background: number): boolean; - - /** - * - * @param slicingMode - */ - setSlicingMode(slicingMode: number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkImageOutlineFilter characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IImageOutlineFilterInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IImageOutlineFilterInitialValues -): void; - -/** - * Method used to create a new instance of vtkImageOutlineFilter - * @param {IImageOutlineFilterInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IImageOutlineFilterInitialValues -): vtkImageOutlineFilter; - -/** - * vtkImageOutlineFilter - generates outline of labelmap from an vtkImageData - * input in a given direction (slicing mode). - * - * vtkImageOutlineFilter creates a region (labelmap) outline based on input data - * given . The output is a vtkImageData object containing only boundary voxels. - */ -export declare const vtkImageOutlineFilter: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkImageOutlineFilter; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageOutlineFilter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageOutlineFilter.js deleted file mode 100644 index bbe73725..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageOutlineFilter.js +++ /dev/null @@ -1,124 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkImageData from '../../Common/DataModel/ImageData.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkImageOutlineFilter methods -// ---------------------------------------------------------------------------- - -function vtkImageOutlineFilter(publicAPI, model) { - model.classHierarchy.push('vtkImageOutlineFilter'); - publicAPI.requestData = (inData, outData) => { - // implement requestData - const input = inData[0]; - if (!input || input.getClassName() !== 'vtkImageData') { - vtkErrorMacro('Invalid or missing input'); - return; - } - const output = outData[0]?.initialize() || vtkImageData.newInstance(); - output.set(input.get('spacing', 'origin', 'direction')); - const getIndex = (point, dims) => point[0] + point[1] * dims[0] + point[2] * dims[0] * dims[1]; - const getIJK = (index, dims) => { - const ijk = [0, 0, 0]; - ijk[0] = index % dims[0]; - ijk[1] = Math.floor(index / dims[0]) % dims[1]; - ijk[2] = Math.floor(index / (dims[0] * dims[1])); - return ijk; - }; - const dims = input.getDimensions(); - output.setDimensions(dims); - output.computeTransforms(); - const values = new Uint8Array(input.getNumberOfPoints()); - const inputDataArray = input.getPointData().getScalars().getData(); - let kernelX = 0; // default K slicing mode - let kernelY = 1; - if (model.slicingMode === 1) { - kernelX = 0; - kernelY = 2; - } else if (model.slicingMode === 0) { - kernelX = 1; - kernelY = 2; - } - inputDataArray.forEach((el, index) => { - if (el !== model.background) { - const ijk = getIJK(index, dims); - let isBorder = false; - for (let x = -1; x <= 1 && !isBorder; x++) { - for (let y = -1; y <= 1 && !isBorder; y++) { - let dx = x; - let dy = y; - let dz = 0; - if (model.slicingMode === 1) { - dx = x; - dy = 0; - dz = y; - } else if (model.slicingMode === 0) { - dx = 0; - dy = y; - dz = x; - } - const evalX = ijk[kernelX] + dx; - const evalY = ijk[kernelY] + dy; - // check boundaries - if (evalX >= 0 && evalX < dims[kernelX] && evalY >= 0 && evalY < dims[kernelY]) { - const hoodValue = inputDataArray[getIndex([ijk[0] + dx, ijk[1] + dy, ijk[2] + dz], dims)]; - if (hoodValue !== el) isBorder = true; - } - } - } - if (isBorder) values[index] = el;else values[index] = model.background; - } else { - values[index] = model.background; - } - }); - const dataArray = vtkDataArray.newInstance({ - numberOfComponents: 1, - values - }); - output.getPointData().setScalars(dataArray); - outData[0] = output; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - slicingMode: 2, - background: 0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - macro.setGet(publicAPI, model, ['slicingMode', 'background']); - - // Object specific methods - vtkImageOutlineFilter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImageOutlineFilter'); - -// ---------------------------------------------------------------------------- - -var vtkImageOutlineFilter$1 = { - newInstance, - extend -}; - -export { vtkImageOutlineFilter$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageSliceFilter.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageSliceFilter.d.ts deleted file mode 100644 index 342c8a9b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageSliceFilter.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; - -/** - * - */ -export interface IImageSliceFilterInitialValues { - sliceIndex?: number; -} - -type vtkImageSliceFilterBase = vtkObject & vtkAlgorithm; - -export interface vtkImageSliceFilter extends vtkImageSliceFilterBase { - /** - * - */ - getOrientation(): any; - - /** - * - * @default 0 - */ - getSliceIndex(): number; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * - * @param orientation - */ - setOrientation(orientation: any): boolean; - - /** - * - * @param sliceIndex - */ - setSliceIndex(sliceIndex: number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkImageSliceFilter characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IImageSliceFilterInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IImageSliceFilterInitialValues -): void; - -/** - * Method used to create a new instance of vtkImageSliceFilter - * @param {IImageSliceFilterInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IImageSliceFilterInitialValues -): vtkImageSliceFilter; - -/** - * - */ -export declare const vtkImageSliceFilter: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkImageSliceFilter; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageSliceFilter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageSliceFilter.js deleted file mode 100644 index db8fe260..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageSliceFilter.js +++ /dev/null @@ -1,83 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkImageData from '../../Common/DataModel/ImageData.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkImageSliceFilter methods -// ---------------------------------------------------------------------------- - -function vtkImageSliceFilter(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkImageSliceFilter'); - publicAPI.requestData = (inData, outData) => { - // implement requestData - const input = inData[0]; - if (!input) { - vtkErrorMacro('Invalid or missing input'); - return; - } - const scalars = input.getPointData().getScalars(); - if (!scalars) { - vtkErrorMacro('No scalars from input'); - return; - } - const datasetDefinition = input.get('extent', 'spacing', 'origin'); - datasetDefinition.extent[4] = model.sliceIndex; - datasetDefinition.extent[5] = datasetDefinition.extent[4]; - const numberOfComponents = scalars.getNumberOfComponents(); - const sliceSize = (datasetDefinition.extent[1] - datasetDefinition.extent[0] + 1) * (datasetDefinition.extent[3] - datasetDefinition.extent[2] + 1) * numberOfComponents; - const offset = sliceSize * model.sliceIndex; - const sliceRawArray = scalars.getData().slice(offset, offset + sliceSize); - const sliceArray = vtkDataArray.newInstance({ - name: scalars.getName(), - numberOfComponents, - values: sliceRawArray - }); - const output = outData[0]?.initialize() || vtkImageData.newInstance(); - output.set(datasetDefinition); - output.getPointData().setScalars(sliceArray); - outData[0] = output; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - sliceIndex: 0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - macro.setGet(publicAPI, model, ['sliceIndex', 'orientation']); - - // Object specific methods - vtkImageSliceFilter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImageSliceFilter'); - -// ---------------------------------------------------------------------------- - -var vtkImageSliceFilter$1 = { - newInstance, - extend -}; - -export { vtkImageSliceFilter$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageStreamline.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageStreamline.d.ts deleted file mode 100644 index 5fbe085c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageStreamline.d.ts +++ /dev/null @@ -1,162 +0,0 @@ -import vtkImageData from './../../Common/DataModel/ImageData'; -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { Bounds, Extent, Vector2, Vector3 } from './../../types'; - -/** - * - */ -export interface IImageStreamlineInitialValues { - integrationStep?: number; - maximumNumberOfSteps?: number; -} - -type vtkImageStreamlineBase = vtkObject & vtkAlgorithm; - -export interface vtkImageStreamline extends vtkImageStreamlineBase { - /** - * - * @param velArray - * @param image - * @param {Number} delT - * @param {Number[]} xyz - */ - computeNextStep( - velArray: any, - image: any, - delT: number, - xyz: number[] - ): boolean; - - /** - * - * @param {Vector3} x - * @param {Vector3} ijk - * @param {Vector3} pcoords - * @param {Extent} extent - * @param {Vector3} spacing - * @param {Vector3} origin - * @param {Bounds} bounds - */ - computeStructuredCoordinates( - x: Vector3, - ijk: Vector3, - pcoords: Vector3, - extent: Extent, - spacing: Vector3, - origin: Vector3, - bounds: Bounds - ): boolean; - - /** - * Get the step length (delT) used during integration. - */ - getIntegrationStep(): number; - - /** - * Get the number of steps to be used in the integration. - */ - getMaximumNumberOfSteps(): number; - - /** - * - * @param {Vector3} ijk - * @param {Vector2} dims - * @param {Number[]} ids - */ - getVoxelIndices(ijk: Vector3, dims: Vector2, ids: number[]): void; - - /** - * - * @param {Vector3} pcoords - * @param {Number[]} sf - */ - interpolationFunctions(pcoords: Vector3, sf: number[]): void; - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Set the step length (delT) used during integration. - * @param {Number} integrationStep - */ - setIntegrationStep(integrationStep: number): boolean; - - /** - * Set the number of steps to be used in the integration. - * Integration can terminal earlier if the streamline leaves the domain. - * @param {Number} maximumNumberOfSteps - */ - setMaximumNumberOfSteps(maximumNumberOfSteps: number): boolean; - - /** - * - * @param velArray - * @param {vtkImageData} image - * @param {Number[]} seed - * @param {Number} offset - */ - streamIntegrate( - velArray: any, - image: vtkImageData, - seed: number[], - offset: number - ): any[]; - - /** - * - * @param {Number[]} xyz - * @param velArray - * @param {vtkImageData} image - * @param velAtArg - */ - vectorAt( - xyz: number[], - velArray: any, - image: vtkImageData, - velAtArg: any - ): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkImageStreamline characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IImageStreamlineInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IImageStreamlineInitialValues -): void; - -/** - * Method used to create a new instance of vtkImageStreamline - * @param {IImageStreamlineInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IImageStreamlineInitialValues -): vtkImageStreamline; - -/** - * vtkImageStreamline - integrate streamlines in a vtkImageData - * - * vtkImageStreamline is a filter that generates streamlines from a vtkImageData - * input over which a vector field is defined. This filter will look for vectors - * (i.e. getVectors()) in the input. It will then integrate these vectors, using - * Runge-Kutta 2, from a starting set of seeds defined by the points of the 2nd - * input until a specified maximum number of steps is reached or until the - * streamline leaves the domain. - * - * The output will be a vtkPolyData which contains a polyline for each - * streamline. Currently, this filter does not interpolate any input fields to - * the points of the streamline. - */ -export declare const vtkImageStreamline: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkImageStreamline; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageStreamline.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageStreamline.js deleted file mode 100644 index 714ca725..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ImageStreamline.js +++ /dev/null @@ -1,259 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkImageStreamline methods -// ---------------------------------------------------------------------------- - -function vtkImageStreamline(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkImageStreamline'); - const indices = new Int32Array(3); - const paramCoords = new Float32Array(3); - const weights = new Float32Array(8); - const voxelIndices = new Uint32Array(8); - const dimensions = new Uint32Array(3); - const velAt = new Float32Array(3); - const xtmp = new Float32Array(3); - publicAPI.interpolationFunctions = (pcoords, sf) => { - const r = pcoords[0]; - const s = pcoords[1]; - const t = pcoords[2]; - const rm = 1.0 - r; - const sm = 1.0 - s; - const tm = 1.0 - t; - sf[0] = rm * sm * tm; - sf[1] = r * sm * tm; - sf[2] = rm * s * tm; - sf[3] = r * s * tm; - sf[4] = rm * sm * t; - sf[5] = r * sm * t; - sf[6] = rm * s * t; - sf[7] = r * s * t; - }; - publicAPI.computeStructuredCoordinates = (x, ijk, pcoords, extent, spacing, origin, bounds) => { - // tolerance is needed for 2D data (this is squared tolerance) - const tol2 = 1e-12; - // - // Compute the ijk location - // - let isInBounds = true; - for (let i = 0; i < 3; i++) { - const d = x[i] - origin[i]; - const doubleLoc = d / spacing[i]; - // Floor for negative indexes. - ijk[i] = Math.floor(doubleLoc); - pcoords[i] = doubleLoc - ijk[i]; - let tmpInBounds = false; - const minExt = extent[i * 2]; - const maxExt = extent[i * 2 + 1]; - - // check if data is one pixel thick - if (minExt === maxExt) { - const dist = x[i] - bounds[2 * i]; - if (dist * dist <= spacing[i] * spacing[i] * tol2) { - pcoords[i] = 0.0; - ijk[i] = minExt; - tmpInBounds = true; - } - } else if (ijk[i] < minExt) { - if (spacing[i] >= 0 && x[i] >= bounds[i * 2] || spacing[i] < 0 && x[i] <= bounds[i * 2 + 1]) { - pcoords[i] = 0.0; - ijk[i] = minExt; - tmpInBounds = true; - } - } else if (ijk[i] >= maxExt) { - if (spacing[i] >= 0 && x[i] <= bounds[i * 2 + 1] || spacing[i] < 0 && x[i] >= bounds[i * 2]) { - // make sure index is within the allowed cell index range - pcoords[i] = 1.0; - ijk[i] = maxExt - 1; - tmpInBounds = true; - } - } else { - tmpInBounds = true; - } - - // clear isInBounds if out of bounds for this dimension - isInBounds = isInBounds && tmpInBounds; - } - return isInBounds; - }; - publicAPI.getVoxelIndices = (ijk, dims, ids) => { - ids[0] = ijk[2] * dims[0] * dims[1] + ijk[1] * dims[0] + ijk[0]; - ids[1] = ids[0] + 1; // i+1, j, k - ids[2] = ids[0] + dims[0]; // i, j+1, k - ids[3] = ids[2] + 1; // i+1, j+1, k - ids[4] = ids[0] + dims[0] * dims[1]; // i, j, k+1 - ids[5] = ids[4] + 1; // i+1, j, k+1 - ids[6] = ids[4] + dims[0]; // i, j+1, k+1 - ids[7] = ids[6] + 1; // i+1, j+1, k+1 - }; - - publicAPI.vectorAt = (xyz, velArray, image, velAtArg) => { - if (!publicAPI.computeStructuredCoordinates(xyz, indices, paramCoords, image.getExtent(), image.getSpacing(), image.getOrigin(), image.getBounds())) { - return false; - } - publicAPI.interpolationFunctions(paramCoords, weights); - const extent = image.getExtent(); - dimensions[0] = extent[1] - extent[0] + 1; - dimensions[1] = extent[3] - extent[2] + 1; - dimensions[2] = extent[5] - extent[4] + 1; - publicAPI.getVoxelIndices(indices, dimensions, voxelIndices); - velAtArg[0] = 0.0; - velAtArg[1] = 0.0; - velAtArg[2] = 0.0; - const vel = new Array(3); - for (let i = 0; i < 8; i++) { - velArray.getTuple(voxelIndices[i], vel); - for (let j = 0; j < 3; j++) { - velAtArg[j] += weights[i] * vel[j]; - } - } - return true; - }; - publicAPI.computeNextStep = (velArray, image, delT, xyz) => { - // This does Runge-Kutta 2 - - // Start with evaluating velocity @ initial point - if (!publicAPI.vectorAt(xyz, velArray, image, velAt)) { - return false; - } - // Now find the mid point - for (let i = 0; i < 3; i++) { - xtmp[i] = xyz[i] + delT / 2.0 * velAt[i]; - } - // Use the velocity @ that point to project - if (!publicAPI.vectorAt(xtmp, velArray, image, velAt)) { - return false; - } - for (let i = 0; i < 3; i++) { - xyz[i] += delT * velAt[i]; - } - if (!publicAPI.vectorAt(xyz, velArray, image, velAt)) { - return false; - } - return true; - }; - publicAPI.streamIntegrate = (velArray, image, seed, offset) => { - const retVal = []; - const maxSteps = model.maximumNumberOfSteps; - const delT = model.integrationStep; - const xyz = new Float32Array(3); - xyz[0] = seed[0]; - xyz[1] = seed[1]; - xyz[2] = seed[2]; - const pointsBuffer = []; - let step = 0; - for (step = 0; step < maxSteps; step++) { - if (!publicAPI.computeNextStep(velArray, image, delT, xyz)) { - break; - } - for (let i = 0; i < 3; i++) { - pointsBuffer[3 * step + i] = xyz[i]; - } - } - const pd = vtkPolyData.newInstance(); - const points = new Float32Array(pointsBuffer); - retVal[0] = points; - pd.getPoints().setData(points, 3); - const npts = points.length / 3; - const line = new Uint32Array(npts + 1); - line[0] = npts; - for (let i = 0; i < npts; i++) { - line[i + 1] = i + offset; - } - retVal[1] = line; - pd.getLines().setData(line); - return retVal; - }; - publicAPI.requestData = (inData, outData) => { - // implement requestData - const input = inData[0]; - const seeds = inData[1]; - if (!input) { - vtkErrorMacro('Invalid or missing input'); - return; - } - if (!seeds) { - vtkErrorMacro('Invalid or missing seeds'); - return; - } - const seedPts = seeds.getPoints(); - const nSeeds = seedPts.getNumberOfPoints(); - let offset = 0; - const datas = []; - const vectors = input.getPointData().getVectors(); - const point = []; - for (let i = 0; i < nSeeds; i++) { - seedPts.getTuple(i, point); - const retVal = publicAPI.streamIntegrate(vectors, input, point, offset); - offset += retVal[0].length / 3; - datas.push(retVal); - } - let cellArrayLength = 0; - let pointArrayLength = 0; - datas.forEach(data => { - cellArrayLength += data[1].length; - pointArrayLength += data[0].length; - }); - offset = 0; - let offset2 = 0; - const cellArray = new Uint32Array(cellArrayLength); - const pointArray = new Float32Array(pointArrayLength); - datas.forEach(data => { - cellArray.set(data[1], offset); - offset += data[1].length; - pointArray.set(data[0], offset2); - offset2 += data[0].length; - }); - const output = outData[0]?.initialize() || vtkPolyData.newInstance(); - output.getPoints().setData(pointArray, 3); - output.getLines().setData(cellArray); - outData[0] = output; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - integrationStep: 1, - maximumNumberOfSteps: 1000 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 2, 1); - - // Generate macros for properties - macro.setGet(publicAPI, model, ['integrationStep', 'maximumNumberOfSteps']); - - // Object specific methods - vtkImageStreamline(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImageStreamline'); - -// ---------------------------------------------------------------------------- - -var vtkImageStreamline$1 = { - newInstance, - extend -}; - -export { vtkImageStreamline$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/LineFilter.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/LineFilter.d.ts deleted file mode 100644 index 78d8215e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/LineFilter.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; - -/** - * - */ -export interface ILineFilterInitialValues {} - -type vtkLineFilterBase = vtkObject & vtkAlgorithm; - -export interface vtkLineFilter extends vtkLineFilterBase { - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkLineFilter characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ILineFilterInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ILineFilterInitialValues -): void; - -/** - * Method used to create a new instance of vtkLineFilter - * @param {ILineFilterInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ILineFilterInitialValues -): vtkLineFilter; - -/** - * vtkLineFilter - filters lines in polydata - * - * vtkLineFilter is a filter that only let's through lines of a vtkPolydata. - */ -export declare const vtkLineFilter: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkLineFilter; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/LineFilter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/LineFilter.js deleted file mode 100644 index 3dd99193..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/LineFilter.js +++ /dev/null @@ -1,53 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; - -// ---------------------------------------------------------------------------- -// vtkLineFilter methods -// ---------------------------------------------------------------------------- - -function vtkLineFilter(publicAPI, model) { - // Set our classname - model.classHierarchy.push('vtkLineFilter'); - publicAPI.requestData = (inData, outData) => { - const dataset = outData[0]?.initialize() || vtkPolyData.newInstance(); - dataset.getPoints().setData(inData[0].getPoints().getData()); - dataset.getLines().setData(inData[0].getLines().getData()); - outData[0] = dataset; - }; -} - -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.setGet(publicAPI, model, []); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - - // Object specific methods - vtkLineFilter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkLineFilter'); - -// ---------------------------------------------------------------------------- - -var vtkLineFilter$1 = { - newInstance, - extend -}; - -export { vtkLineFilter$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/MoleculeToRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/MoleculeToRepresentation.js deleted file mode 100644 index 9611eef1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/MoleculeToRepresentation.js +++ /dev/null @@ -1,343 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import { l as normalize } from '../../Common/Core/Math/index.js'; -import { a as atomElem } from '../../Utilities/XMLConverter/chemistry/elements.json.js'; - -const { - vtkErrorMacro, - vtkDebugMacro -} = macro; - -// ---------------------------------------------------------------------------- -// Globals -// ---------------------------------------------------------------------------- - -const ATOMS = {}; -atomElem.atoms.forEach(a => { - ATOMS[a.atomicNumber] = a; -}); - -// ---------------------------------------------------------------------------- -// vtkMoleculeToRepresentation methods -// ---------------------------------------------------------------------------- - -function vtkMoleculeToRepresentation(publicAPI, model) { - const bondPositionData = []; - const bondScaleData = []; - const bondOrientationData = []; - const bondColorData = []; - - // Set our className - model.classHierarchy.push('vtkMoleculeToRepresentation'); - function addBond(position, orientation, length) { - let color = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [1.0, 1.0, 1.0]; - let radius = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : model.bondRadius; - bondScaleData.push(length); - bondScaleData.push(radius); - bondOrientationData.push(orientation[0]); - bondOrientationData.push(orientation[1]); - bondOrientationData.push(orientation[2]); - bondPositionData.push(position[0]); - bondPositionData.push(position[1]); - bondPositionData.push(position[2]); - for (let i = 0; i < color.length; ++i) { - bondColorData.push(color[i] * 255); - } - } - publicAPI.requestData = (inData, outData) => { - // input - const moleculedata = inData[0]; - if (!moleculedata) { - vtkErrorMacro('Invalid or missing input'); - return 1; - } - - // output - const SphereData = outData[0]?.initialize() || vtkPolyData.newInstance(); - const StickData = outData[1]?.initialize() || vtkPolyData.newInstance(); - - // Fetch from input molecule data - let numPts = 0; - let numBonds = 0; - let pointsArray = null; - let atomicNumber = null; - let bondIndex = null; - let bondOrder = null; - - // Empty arrays - bondPositionData.length = 0; - bondScaleData.length = 0; - bondOrientationData.length = 0; - bondColorData.length = 0; - if (moleculedata.getAtoms()) { - if (moleculedata.getAtoms().coords !== undefined) { - if (moleculedata.getAtoms().coords['3d'] !== undefined) { - pointsArray = moleculedata.getAtoms().coords['3d']; - numPts = pointsArray.length / 3; - } - } - if (moleculedata.getAtoms().elements !== undefined) { - if (moleculedata.getAtoms().elements.number !== undefined) { - atomicNumber = moleculedata.getAtoms().elements.number; - } - } - } - if (moleculedata.getBonds()) { - if (moleculedata.getBonds().connections !== undefined) { - if (moleculedata.getBonds().connections.index !== undefined) { - bondIndex = moleculedata.getBonds().connections.index; - numBonds = bondIndex.length / 2; - } - } - if (moleculedata.getBonds().order !== undefined) { - bondOrder = moleculedata.getBonds().order; - } - } - const pointsData = []; - const scaleData = []; - const colorData = []; - const radiusArray = []; - const covalentArray = []; - const colorArray = []; - vtkDebugMacro('Checking for bonds with tolerance ', model.tolerance); - - // go through each points and fill from elements.json - /* eslint-disable no-continue */ - let ptsIdx = 0; - for (let i = 0; i < numPts; i++) { - // fetch from elements.json - if (atomicNumber) { - radiusArray.push(ATOMS[atomicNumber[i]][model.radiusType]); - covalentArray.push(ATOMS[atomicNumber[i]].radiusCovalent); - colorArray.push(ATOMS[atomicNumber[i]].elementColor[0]); - colorArray.push(ATOMS[atomicNumber[i]].elementColor[1]); - colorArray.push(ATOMS[atomicNumber[i]].elementColor[2]); - } - - // skip atoms specified by hideElements - // model.hideHydrogen = false; // show hydrogen - if (model.hideElements.indexOf(ATOMS[atomicNumber[i]].id) !== -1) { - continue; - } - - // points - ptsIdx = i * 3; - pointsData.push(pointsArray[ptsIdx]); - pointsData.push(pointsArray[ptsIdx + 1]); - pointsData.push(pointsArray[ptsIdx + 2]); - - // radius - if (radiusArray.length > 0) { - scaleData.push(radiusArray[i] * model.atomicRadiusScaleFactor); - } - - // colors - if (colorArray.length > 0) { - ptsIdx = i * 3; - colorData.push(colorArray[ptsIdx] * 255); - colorData.push(colorArray[ptsIdx + 1] * 255); - colorData.push(colorArray[ptsIdx + 2] * 255); - } - } - - // if we don't have Bonds provided - // we fill up a bondIndex and a bondOrder - if (!bondIndex) { - bondIndex = []; - bondOrder = []; - // default bond display - /* eslint-disable no-continue */ - for (let i = 0; i < numPts; i++) { - for (let j = i + 1; j < numPts; j++) { - const cutoff = covalentArray[i] + covalentArray[j] + model.tolerance; - const jPtsIdx = j * 3; - const iPtsIdx = i * 3; - const diff = [pointsArray[jPtsIdx], pointsArray[jPtsIdx + 1], pointsArray[jPtsIdx + 2]]; - diff[0] -= pointsArray[iPtsIdx]; - diff[1] -= pointsArray[iPtsIdx + 1]; - diff[2] -= pointsArray[iPtsIdx + 2]; - if (Math.abs(diff[0]) > cutoff || Math.abs(diff[1]) > cutoff || Math.abs(diff[2]) > cutoff) { - continue; - } - - // Check radius and add bond if needed - const cutoffSq = cutoff * cutoff; - const diffsq = diff[0] * diff[0] + diff[1] * diff[1] + diff[2] * diff[2]; - if (diffsq < cutoffSq && diffsq > 0.1) { - // appendBond between i and j - bondIndex.push(i); - bondIndex.push(j); - bondOrder.push(1); - } - } - } - numBonds = bondIndex.length / 2; - } - - // now we have the bonds, draw them - for (let index = 0; index < numBonds; index++) { - // appendBond between i and j - const i = bondIndex[index * 2]; - const j = bondIndex[index * 2 + 1]; - - // Do not append if i or j belong to element to not display - if (model.hideElements.indexOf(ATOMS[atomicNumber[i]].id) !== -1 || model.hideElements.indexOf(ATOMS[atomicNumber[j]].id) !== -1) { - continue; - } - const jPtsIdx = j * 3; - const iPtsIdx = i * 3; - const diff = [pointsArray[jPtsIdx], pointsArray[jPtsIdx + 1], pointsArray[jPtsIdx + 2]]; - diff[0] -= pointsArray[iPtsIdx]; - diff[1] -= pointsArray[iPtsIdx + 1]; - diff[2] -= pointsArray[iPtsIdx + 2]; - const diffsq = diff[0] * diff[0] + diff[1] * diff[1] + diff[2] * diff[2]; - let bondDelta = (2 + model.deltaBondFactor) * model.bondRadius; // distance between 2 bonds - - // scale bonds if total distance from bonds is bigger than 2r*factor with r = min(r_i, r_j) - const r = Math.min(radiusArray[i] * model.atomicRadiusScaleFactor, radiusArray[j] * model.atomicRadiusScaleFactor); - const t = (bondOrder[index] - 1) * bondDelta + 2 * model.bondRadius; - if (t > 2 * r * 0.6) { - model.bondRadius *= 2 * r * 0.6 / t; - // recompute bondDelta - bondDelta = (2 + model.deltaBondFactor) * model.bondRadius; // distance between 2 bonds - } - - // Display multiple bond - // loop such as 0 11 22 if odd order / 00 11 22 33 if even order - // To make: 0 22 44 66 88 ... 11 33 55 77 .... - // because the offset has to be: - // (with bd= bondDelta. Note the minus is added just before creating bondPos) - // - odd order: 0 2bd/2 -2bd/2 4bd/2 -4bd/2 ... - // - even order: 1bd/2 -1bd/2 3bd/2 -3bd/2 ... - // Then, to transform loop to offset we have: - // - odd order: x * 2 <=> x * 2 + 1 - 1 - // - even order: x * 2 + 1 - // (with x the loop <=> floor(k/2)) - const oddOrEven = bondOrder[index] % 2; // zero if even order / one if odd order - for (let k = oddOrEven; k < bondOrder[index] + oddOrEven; k++) { - // dist from center to bond depending of number of bond - let offset = (Math.floor(k / 2) * 2 + 1 - oddOrEven) * bondDelta / 2; - const vectUnitJI = [diff[0] / Math.sqrt(diffsq), diff[1] / Math.sqrt(diffsq), diff[2] / Math.sqrt(diffsq)]; - const vectUnitJIperp = [0, 0, 0]; - // Search perp to vectUnitJI: find axis != 0 to create vectUnitJIperp such as dot(vectUnitJIperp,vectUnitJI) = 0 - for (let coord = 0; coord < 3; coord++) { - if (Math.abs(vectUnitJI[coord]) < 0.000001) { - continue; - } - vectUnitJIperp[coord] = -(vectUnitJI[(coord + 2) % 3] * vectUnitJI[(coord + 2) % 3] + vectUnitJI[(coord + 1) % 3] * vectUnitJI[(coord + 1) % 3]) / vectUnitJI[coord]; - vectUnitJIperp[(coord + 1) % 3] = vectUnitJI[(coord + 1) % 3]; - vectUnitJIperp[(coord + 2) % 3] = vectUnitJI[(coord + 2) % 3]; - normalize(vectUnitJIperp); - break; - } - offset *= (-1) ** (k % 2); - /* - If atoms have a color associated, and if the atoms involved in the bond - are different species, then each bond will be represented by - two sticks, so that they can be colored with the same color as the atoms - involved in the bond. - */ - let bondPos; - if (atomicNumber && atomicNumber[i] !== atomicNumber[j] && colorArray.length > 0) { - const bondLength = Math.sqrt(diffsq) / 2.0; - bondPos = [pointsArray[jPtsIdx] - bondLength * vectUnitJI[0] / 2.0 + offset * vectUnitJIperp[0], pointsArray[jPtsIdx + 1] - bondLength * vectUnitJI[1] / 2.0 + offset * vectUnitJIperp[1], pointsArray[jPtsIdx + 2] - bondLength * vectUnitJI[2] / 2.0 + offset * vectUnitJIperp[2]]; - addBond(bondPos, vectUnitJI, bondLength, colorArray.slice(jPtsIdx, jPtsIdx + 3)); - bondPos = [pointsArray[iPtsIdx] + bondLength * vectUnitJI[0] / 2.0 + offset * vectUnitJIperp[0], pointsArray[iPtsIdx + 1] + bondLength * vectUnitJI[1] / 2.0 + offset * vectUnitJIperp[1], pointsArray[iPtsIdx + 2] + bondLength * vectUnitJI[2] / 2.0 + offset * vectUnitJIperp[2]]; - addBond(bondPos, vectUnitJI, bondLength, colorArray.slice(iPtsIdx, iPtsIdx + 3)); - } else { - const bondLength = Math.sqrt(diffsq); - bondPos = [pointsArray[jPtsIdx] - diff[0] / 2.0 + offset * vectUnitJIperp[0], pointsArray[jPtsIdx + 1] - diff[1] / 2.0 + offset * vectUnitJIperp[1], pointsArray[jPtsIdx + 2] - diff[2] / 2.0 + offset * vectUnitJIperp[2]]; - if (colorArray.length > 0) { - addBond(bondPos, vectUnitJI, bondLength, colorArray.slice(iPtsIdx, iPtsIdx + 3)); - } else { - addBond(bondPos, vectUnitJI, bondLength); - } - } - } - } - SphereData.getPoints().setData(pointsData, 3); - if (radiusArray) { - const scales = vtkDataArray.newInstance({ - numberOfComponents: 1, - values: scaleData, - name: publicAPI.getSphereScaleArrayName() - }); - SphereData.getPointData().addArray(scales); - } - if (colorArray.length > 0) { - const colors = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: Uint8Array.from(colorData), - name: 'colors' - }); - SphereData.getPointData().setScalars(colors); - } - StickData.getPoints().setData(bondPositionData, 3); - const stickScales = vtkDataArray.newInstance({ - numberOfComponents: 2, - values: bondScaleData, - name: 'stickScales' - }); - StickData.getPointData().addArray(stickScales); - const orientation = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: bondOrientationData, - name: 'orientation' - }); - StickData.getPointData().addArray(orientation); - if (colorArray.length > 0) { - const bondColors = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: Uint8Array.from(bondColorData), - name: 'colors' - }); - StickData.getPointData().setScalars(bondColors); - } - - // Update output - outData[0] = SphereData; - outData[1] = StickData; - return 1; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - sphereScaleArrayName: 'radius', - tolerance: 0.45, - atomicRadiusScaleFactor: 0.3, - bondRadius: 0.075, - deltaBondFactor: 0.6, - radiusType: 'radiusVDW', - hideElements: '' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['atomicRadiusScaleFactor', 'bondRadius', 'deltaBondFactor', 'hideElements', 'radiusType', 'sphereScaleArrayName', 'tolerance']); - macro.algo(publicAPI, model, 1, 2); - vtkMoleculeToRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkMoleculeToRepresentation'); - -// ---------------------------------------------------------------------------- - -var vtkMoleculeToRepresentation$1 = { - newInstance, - extend -}; - -export { vtkMoleculeToRepresentation$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/OBBTree.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/OBBTree.js deleted file mode 100644 index 3ca92fa0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/OBBTree.js +++ /dev/null @@ -1,1151 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import vtkLine from '../../Common/DataModel/Line.js'; -import { d as dot, j as cross, n as norm, w as jacobi, l as normalize, k as add } from '../../Common/Core/Math/index.js'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; -import vtkOBBNode from './OBBTree/OBBNode.js'; -import vtkPoints from '../../Common/Core/Points.js'; -import { CellType } from '../../Common/DataModel/CellTypes/Constants.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkTriangle from '../../Common/DataModel/Triangle.js'; -import { pushArray, getCellTriangles } from './OBBTree/helper.js'; -import { mat4, vec4 } from 'gl-matrix'; - -const { - vtkErrorMacro -} = macro; -const VTK_DOUBLE_MAX = Number.MAX_SAFE_INTEGER; - -// ---------------------------------------------------------------------------- -// vtkOBBTree methods -// ---------------------------------------------------------------------------- - -function vtkOBBTree(publicAPI, model) { - // Set our classname - model.classHierarchy.push('vtkOBBTree'); - - /** - * Compute an OBB from the list of cells given. This used to be - * public but should not have been. A public call has been added - * so that the functionality can be accessed. - * @param {Array} cells - * @param {Array[3]} corner - * @param {Array[3]} max - * @param {Array[3]} mid - * @param {Array[3]} min - * @param {Array[3]} size - */ - function computeOBB(cells, corner, max, mid, min, size) { - model.OBBCount++; - model.pointsList = []; - // - // Compute mean & moments - // - - const numCells = cells.length; - const mean = [0, 0, 0]; - let totMass = 0.0; - const a0 = [0, 0, 0]; - const a1 = [0, 0, 0]; - const a2 = [0, 0, 0]; - let a = [0, 0, 0, 0, 0, 0, 0, 0, 0]; - const dp0 = [0, 0, 0]; - const dp1 = [0, 0, 0]; - const c = [0, 0, 0]; - let triMass = 0; - if (!model.dataset.getCells()) { - model.dataset.buildCells(); - } - for (let i = 0; i < numCells; i++) { - const cellId = cells[i]; - const type = model.dataset.getCells().getCellType(cellId); - const ptIds = model.dataset.getCellPoints(cellId).cellPointIds; - const numPts = ptIds.length; - for (let j = 0; j < numPts - 2; j++) { - const cellsIds = getCellTriangles(ptIds, type, j); - const pId = cellsIds.ptId0; - const qId = cellsIds.ptId1; - const rId = cellsIds.ptId2; - if (pId < 0) { - // eslint-disable-next-line no-continue - continue; - } - const p = []; - const q = []; - const r = []; - model.dataset.getPoints().getPoint(pId, p); - model.dataset.getPoints().getPoint(qId, q); - model.dataset.getPoints().getPoint(rId, r); - - // p, q, and r are the oriented triangle points. - // Compute the components of the moment of inertia tensor. - for (let k = 0; k < 3; k++) { - // two edge vectors - dp0[k] = q[k] - p[k]; - dp1[k] = r[k] - p[k]; - // centroid - c[k] = (p[k] + q[k] + r[k]) / 3; - } - const xp = cross(dp0, dp1, []); - triMass = 0.5 * norm(xp); - totMass += triMass; - for (let k = 0; k < 3; k++) { - mean[k] += triMass * c[k]; - } - - // on-diagonal terms - a0[0] += triMass * (9 * c[0] * c[0] + p[0] * p[0] + q[0] * q[0] + r[0] * r[0]) / 12; - a1[1] += triMass * (9 * c[1] * c[1] + p[1] * p[1] + q[1] * q[1] + r[1] * r[1]) / 12; - a2[2] += triMass * (9 * c[2] * c[2] + p[2] * p[2] + q[2] * q[2] + r[2] * r[2]) / 12; - - // off-diagonal terms - a0[1] += triMass * (9 * c[0] * c[1] + p[0] * p[1] + q[0] * q[1] + r[0] * r[1]) / 12; - a0[2] += triMass * (9 * c[0] * c[2] + p[0] * p[2] + q[0] * q[2] + r[0] * r[2]) / 12; - a1[2] += triMass * (9 * c[1] * c[2] + p[1] * p[2] + q[1] * q[2] + r[1] * r[2]) / 12; - } // end foreach triangle - - // While computing cell moments, gather all the cell's - // point coordinates into a single list. - for (let j = 0; j < numPts; j++) { - if (model.insertedPoints[ptIds[j]] !== model.OBBCount) { - model.insertedPoints[ptIds[j]] = model.OBBCount; - const pt = []; - model.dataset.getPoints().getPoint(ptIds[j], pt); - model.pointsList.push(pt); - } - } // for all points of this cell - } // end foreach cell - - // normalize data - for (let i = 0; i < 3; i++) { - mean[i] /= totMass; - } - - // matrix is symmetric - a1[0] = a0[1]; - a2[0] = a0[2]; - a2[1] = a1[2]; - a = [a0[0], a0[1], a0[2], a1[0], a1[1], a1[2], a2[0], a2[1], a2[2]]; - // get covariance from moments - for (let i = 0; i < 3; i++) { - for (let j = 0; j < 3; j++) { - a[i * 3 + j] = a[i * 3 + j] / totMass - mean[i] * mean[j]; - } - } - - // - // Extract axes (i.e., eigenvectors) from covariance matrix. - // - const v = [0, 0, 0, 0, 0, 0, 0, 0, 0]; - jacobi(a, size, v); - max[0] = v[0]; - max[1] = v[3]; - max[2] = v[6]; - mid[0] = v[1]; - mid[1] = v[4]; - mid[2] = v[7]; - min[0] = v[2]; - min[1] = v[5]; - min[2] = v[8]; - for (let i = 0; i < 3; i++) { - a[i] = mean[i] + max[i]; - a[3 + i] = mean[i] + mid[i]; - a[6 + i] = mean[i] + min[i]; - } - - // - // Create oriented bounding box by projecting points onto eigenvectors. - // - const tMin = [VTK_DOUBLE_MAX, VTK_DOUBLE_MAX, VTK_DOUBLE_MAX]; - const tMax = [-VTK_DOUBLE_MAX, -VTK_DOUBLE_MAX, -VTK_DOUBLE_MAX]; - const numPts = model.pointsList.length; - for (let ptId = 0; ptId < numPts; ptId++) { - const p = model.pointsList[ptId]; - for (let i = 0; i < 3; i++) { - const out = vtkLine.distanceToLine(p, mean, a.slice(3 * i, 3 * (i + 1)), []); - if (out.t < tMin[i]) { - tMin[i] = out.t; - } - if (out.t > tMax[i]) { - tMax[i] = out.t; - } - } - } // for all points - - for (let i = 0; i < 3; i++) { - corner[i] = mean[i] + tMin[0] * max[i] + tMin[1] * mid[i] + tMin[2] * min[i]; - max[i] *= tMax[0] - tMin[0]; - mid[i] *= tMax[1] - tMin[1]; - min[i] *= tMax[2] - tMin[2]; - } - } - - /** - * Build the OBB tree - * @param {Array} cells - * @param {vtkOBBNode} obbNode - * @param {Number} level - */ - function buildTree(cells, obbNode, level) { - const numCells = cells.length; - if (level > model.level) { - model.level = level; - } - const axes = obbNode.getAxes(); - const corner = obbNode.getCorner(); - const size = [0, 0, 0]; - computeOBB(cells, corner, axes[0], axes[1], axes[2], size); - obbNode.setAxes(axes); - obbNode.setCorner(corner); - - // Check whether to continue recursing; if so, create two children and - // assign cells to appropriate child. - if (level < model.maxLevel && numCells > model.numberOfCellsPerNode) { - let LHlist = []; - let RHlist = []; - const p = [0, 0, 0]; - const n = [0, 0, 0]; - - // loop over three split planes to find acceptable one - for (let i = 0; i < 3; i++) { - // compute split point - p[i] = corner[i] + axes[0][i] / 2 + axes[1][i] / 2 + axes[2][i] / 2; - } - let splitPlane = 0; - let splitAcceptable = 0; - let bestRatio = 1; - let foundBestSplit = 0; - let bestPlane = 0; - for (; !splitAcceptable && splitPlane < 3;) { - // compute split normal - for (let i = 0; i < 3; i++) { - n[i] = axes[splitPlane][i]; - } - normalize(n); - - // traverse cells, assigning to appropriate child list as necessary - for (let i = 0; i < numCells; i++) { - const cellId = cells[i]; - const pointsIDs = model.dataset.getCellPoints(cellId).cellPointIds; - const cellPts = []; - pointsIDs.forEach(id => { - const pt = []; - model.dataset.getPoints().getPoint(pointsIDs[id], pt); - cellPts.push(pt); - }); - const c = [0, 0, 0]; - const numPts = cellPts.length; - let negative = 0; - let positive = 0; - for (let j = 0; j < numPts; j++) { - const ptId = pointsIDs[j]; - const x = model.dataset.getPoints().getPoint(ptId); - const val = n[0] * (x[0] - p[0]) + n[1] * (x[1] - p[1]) + n[2] * (x[2] - p[2]); - c[0] += x[0]; - c[1] += x[1]; - c[2] += x[2]; - if (val < 0.0) { - negative = 1; - } else { - positive = 1; - } - } - if (negative && positive) { - // Use centroid to decide straddle cases - c[0] /= numPts; - c[1] /= numPts; - c[2] /= numPts; - const val = n[0] * (c[0] - p[0]) + n[1] * (c[1] - p[1]) + n[2] * (c[2] - p[2]); - if (val < 0.0) { - LHlist.push(cellId); - } else { - RHlist.push(cellId); - } - } else if (negative) { - LHlist.push(cellId); - } else { - RHlist.push(cellId); - } - } // for all cells - - // evaluate this split - const numInLHnode = LHlist.length; - const numInRHnode = RHlist.length; - const ratio = Math.abs((numInRHnode - numInLHnode) / numCells); - - // see whether we've found acceptable split plane - if (ratio < 0.6 || foundBestSplit) { - // accept right off the bat - splitAcceptable = 1; - } else { - // not a great split try another - LHlist = []; - RHlist = []; - if (ratio < bestRatio) { - bestRatio = ratio; - bestPlane = splitPlane; - } - if (++splitPlane === 3 && bestRatio < 0.95) { - // at closing time, even the ugly ones look good - splitPlane = bestPlane; - foundBestSplit = 1; - } - } // try another split - } // for each split - - if (splitAcceptable) { - // otherwise recursion terminates - const LHnode = vtkOBBNode.newInstance(); - const RHnode = vtkOBBNode.newInstance(); - obbNode.setKids([LHnode, RHnode]); - LHnode.setParent(obbNode); - RHnode.setParent(obbNode); - cells.length = 0; - buildTree(LHlist, LHnode, level + 1); - buildTree(RHlist, RHnode, level + 1); - } else { - // free up local objects - LHlist = []; - RHlist = []; - } - } // if should build tree - - if (cells && model.retainCellLists) { - obbNode.setCells(cells); - } else if (cells) { - cells.length = 0; - } - } - function generatePolygons(obbNode, level, repLevel, points, cells) { - if (level === repLevel || repLevel < 0 && obbNode.getKids()) { - let nbPoints = points.getNumberOfPoints(); - const newPoints = []; - const newCells = []; - const cubeIds = []; - newPoints.push(...obbNode.getCorner()); - cubeIds[0] = nbPoints++; - const x = []; - newPoints.push(...add(obbNode.getCorner(), obbNode.getAxis(0), x)); - cubeIds[1] = nbPoints++; - const y = []; - newPoints.push(...add(obbNode.getCorner(), obbNode.getAxis(1), y)); - cubeIds[2] = nbPoints++; - const xy = []; - newPoints.push(...add(x, obbNode.getAxis(1), xy)); - cubeIds[3] = nbPoints++; - const z = []; - newPoints.push(...add(obbNode.getCorner(), obbNode.getAxis(2), z)); - cubeIds[4] = nbPoints++; - const xz = []; - newPoints.push(...add(x, obbNode.getAxis(2), xz)); - cubeIds[5] = nbPoints++; - const yz = []; - newPoints.push(...add(y, obbNode.getAxis(2), yz)); - cubeIds[6] = nbPoints++; - const xyz = []; - newPoints.push(...add(xy, obbNode.getAxis(2), xyz)); - cubeIds[7] = nbPoints++; - newCells.push(4, cubeIds[0], cubeIds[2], cubeIds[3], cubeIds[1]); - newCells.push(4, cubeIds[0], cubeIds[1], cubeIds[5], cubeIds[4]); - newCells.push(4, cubeIds[0], cubeIds[4], cubeIds[6], cubeIds[2]); - newCells.push(4, cubeIds[1], cubeIds[3], cubeIds[7], cubeIds[5]); - newCells.push(4, cubeIds[4], cubeIds[5], cubeIds[7], cubeIds[6]); - newCells.push(4, cubeIds[2], cubeIds[6], cubeIds[7], cubeIds[3]); - points.setData(pushArray(points.getData(), newPoints)); - cells.setData(pushArray(cells.getData(), newCells)); - } else if ((level < repLevel || repLevel < 0) && obbNode.getKids()) { - generatePolygons(obbNode.getKids()[0], level + 1, repLevel, points, cells); - generatePolygons(obbNode.getKids()[1], level + 1, repLevel, points, cells); - } - } - - /** - * Transform the whole OBB tree by using input transform - * @param {Transform} transform vtkjs Transform object - */ - publicAPI.transform = transform => { - // Setup matrix used to transform vectors - const matrix = mat4.create(); - mat4.copy(matrix, transform.getMatrix()); - matrix[12] = 0; - matrix[13] = 0; - matrix[14] = 0; - matrix[15] = 1; - const transformVector = vtkMatrixBuilder.buildFromRadian().setMatrix(matrix); - const obbStack = new Array(model.level + 1); - obbStack[0] = model.tree; - let depth = 1; - while (depth > 0) { - depth -= 1; - const node = obbStack[depth]; - const corner = node.getCorner(); - const max = node.getAxis(0); - const mid = node.getAxis(1); - const min = node.getAxis(2); - transform.apply(corner); - transformVector.apply(max); - transformVector.apply(mid); - transformVector.apply(min); - node.setCorner(corner); - node.setAxes([max, mid, min]); - if (node.getKids() !== null) { - // push kids onto stack - obbStack[depth] = node.getKids()[0]; - obbStack[depth + 1] = node.getKids()[1]; - depth += 2; - } - } - }; - - /** - * Deep copy input node into class attribute tree - * @param {vtkOBBNode} tree - * @returns - */ - publicAPI.deepCopy = tree => { - if (!tree) { - return; - } - publicAPI.setLevel(tree.getLevel()); - publicAPI.setRetainCellLists(tree.getRetainCellLists()); - publicAPI.setDataset(tree.getDataset()); - publicAPI.setAutomatic(tree.getAutomatic()); - publicAPI.setNumberOfCellsPerNode(tree.getNumberOfCellsPerNode()); - publicAPI.setTolerance(tree.getTolerance()); - const root = tree.getTree(); - if (root) { - model.tree = vtkOBBNode.newInstance(); - model.tree.deepCopy(root); - } - }; - - /** - * A method to compute the OBB of a dataset without having to go through the - * Execute method; It does set - * @param {vtkPolyData} input - * @param {Array[3]} corner - * @param {Array[3]} max - * @param {Array[3]} mid - * @param {Array[3]} min - * @param {Array[3]} size - */ - publicAPI.computeOBBFromDataset = (input, corner, max, mid, min, size) => { - if (!input) { - return; - } - const numPts = input.getPoints().getNumberOfPoints(); - const numCells = input.getNumberOfCells(); - if (numPts < 1 || numCells < 1) { - vtkErrorMacro("Can't compute OBB - no data available!"); - return; - } - model.dataset = input; - model.OBBCount = 0; - model.insertedPoints = Array.from({ - length: numPts - }, _ => 0); - model.pointsList = []; - const cellList = Array.from({ - length: numCells - }, (_, i) => i); - computeOBB(cellList, corner, max, mid, min, size); - }; - - /** - * Returns true if nodeB and nodeA are disjoint after optional - * transformation of nodeB with matrix XformBtoA - * @param {vtkOBBNode} nodeA - * @param {vtkOBBNode} nodeB - * @param {mat4} XformBtoA - */ - publicAPI.disjointOBBNodes = (nodeA, nodeB, XformBtoA) => { - if (!nodeA || !nodeB) { - return 5; // A and B are disjoint - } - - const input = new Array(4); - const output = new Array(4); - const eps = model.tolerance; - const pA = nodeA; - let pB = vtkOBBNode.newInstance(); - const dotAB = [0, 0, 0, 0, 0, 0, 0, 0, 0]; - if (XformBtoA) { - // Here we assume that XformBtoA is an orthogonal matrix - input[0] = nodeB.getCorner()[0]; - input[1] = nodeB.getCorner()[1]; - input[2] = nodeB.getCorner()[2]; - input[3] = 1.0; - vec4.transformMat4(output, input, XformBtoA); - pB.setCorner([output[0] / output[3], output[1] / output[3], output[2] / output[3]]); - // Clean this up when the bug input MultiplyVectors is fixed! - for (let ii = 0; ii < 3; ii++) { - pB.getAxis(0)[ii] = nodeB.getCorner()[ii] + nodeB.getAxis(0)[ii]; - pB.getAxis(1)[ii] = nodeB.getCorner()[ii] + nodeB.getAxis(1)[ii]; - pB.getAxis(2)[ii] = nodeB.getCorner()[ii] + nodeB.getAxis(2)[ii]; - } - for (let ii = 0; ii < 3; ii++) { - input[0] = pB.getAxis(ii)[0]; - input[1] = pB.getAxis(ii)[1]; - input[2] = pB.getAxis(ii)[2]; - input[3] = 1.0; - vec4.transformMat4(output, input, XformBtoA); - pB.getAxis(ii)[0] = output[0] / output[3]; - pB.getAxis(ii)[1] = output[1] / output[3]; - pB.getAxis(ii)[2] = output[2] / output[3]; - } - for (let ii = 0; ii < 3; ii++) { - pB.getAxis(0)[ii] = pB.getAxis(0)[ii] - pB.getCorner()[ii]; - pB.getAxis(1)[ii] = pB.getAxis(1)[ii] - pB.getCorner()[ii]; - pB.getAxis(2)[ii] = pB.getAxis(2)[ii] - pB.getCorner()[ii]; - } - } else { - pB = nodeB; - } - const centerA = [0, 0, 0]; - const centerB = [0, 0, 0]; - const AtoB = [0, 0, 0]; - for (let ii = 0; ii < 3; ii++) { - centerA[ii] = pA.getCorner()[ii] + 0.5 * (pA.getAxis(0)[ii] + pA.getAxis(1)[ii] + pA.getAxis(2)[ii]); - centerB[ii] = pB.getCorner()[ii] + 0.5 * (pB.getAxis(0)[ii] + pB.getAxis(1)[ii] + pB.getAxis(2)[ii]); - AtoB[ii] = centerB[ii] - centerA[ii]; - } - - // Project maximal and minimal corners onto line between centers - let rangeAmin = dot(pA.getCorner(), AtoB); - let rangeAmax = rangeAmin; - let rangeBmin = dot(pB.getCorner(), AtoB); - let rangeBmax = rangeBmin; - let dotA = 0; - let dotB = 0; - for (let ii = 0; ii < 3; ii++) { - // compute A range - dotA = dot(pA.getAxis(ii), AtoB); - if (dotA > 0) { - rangeAmax += dotA; - } else { - rangeAmin += dotA; - } - - // compute B range - dotB = dot(pB.getAxis(ii), AtoB); - if (dotB > 0) { - rangeBmax += dotB; - } else { - rangeBmin += dotB; - } - } - if (rangeAmax + eps < rangeBmin || rangeBmax + eps < rangeAmin) { - return 1; // A and B are Disjoint by the 1st test. - } - - // now check for a separation plane parallel to the faces of B - for (let ii = 0; ii < 3; ii++) { - // plane is normal to pB.getAxis(ii) - // computing B range is easy... - rangeBmin = dot(pB.getCorner(), pB.getAxis(ii)); - rangeBmax = rangeBmin; - rangeBmax += dot(pB.getAxis(ii), pB.getAxis(ii)); - - // compute A range... - rangeAmin = dot(pA.getCorner(), pB.getAxis(ii)); - rangeAmax = rangeAmin; - for (let jj = 0; jj < 3; jj++) { - // (note: we are saving all 9 dotproducts for future use) - dotA = dot(pB.getAxis(ii), pA.getAxis(jj)); - dotAB[ii * 3 + jj] = dotA; - if (dotA > 0) { - rangeAmax += dotA; - } else { - rangeAmin += dotA; - } - } - if (rangeAmax + eps < rangeBmin || rangeBmax + eps < rangeAmin) { - return 2; // A and B are Disjoint by the 3rd test. - } - } - - // now check for a separation plane parallel to the faces of A - for (let ii = 0; ii < 3; ii++) { - // plane is normal to pA.getAxis(ii) - // computing A range is easy... - rangeAmin = dot(pA.getCorner(), pA.getAxis(ii)); - rangeAmax = rangeAmin; - rangeAmax += dot(pA.getAxis(ii), pA.getAxis(ii)); - - // compute B range... - rangeBmin = dot(pB.getCorner(), pA.getAxis(ii)); - rangeBmax = rangeBmin; - for (let jj = 0; jj < 3; jj++) { - // (note: we are using the 9 dotproducts computed earlier) - dotB = dotAB[jj * 3 + ii]; - if (dotB > 0) { - rangeBmax += dotB; - } else { - rangeBmin += dotB; - } - } - if (rangeAmax + eps < rangeBmin || rangeBmax + eps < rangeAmin) { - return 3; // A and B are Disjoint by the 2nd test. - } - } - - // Bad luck: now we must look for a separation plane parallel - // to one edge from A and one edge from B. - for (let ii = 0; ii < 3; ii++) { - for (let jj = 0; jj < 3; jj++) { - // the plane is normal to pA.getAxis(ii) X pB.getAxis(jj) - cross(pA.getAxis(ii), pB.getAxis(jj), AtoB); - rangeAmin = dot(pA.getCorner(), AtoB); - rangeAmax = rangeAmin; - rangeBmin = dot(pB.getCorner(), AtoB); - rangeBmax = rangeBmin; - for (let kk = 0; kk < 3; kk++) { - // compute A range - dotA = dot(pA.getAxis(kk), AtoB); - if (dotA > 0) { - rangeAmax += dotA; - } else { - rangeAmin += dotA; - } - - // compute B range - dotB = dot(pB.getAxis(kk), AtoB); - if (dotB > 0) { - rangeBmax += dotB; - } else { - rangeBmin += dotB; - } - } - if (rangeAmax + eps < rangeBmin || rangeBmax + eps < rangeAmin) { - return 4; // A and B are Disjoint by the 4th test. - } - } - } - // if we fall through to here, the OBB's overlap - return 0; - }; - - /** - * Intersect this OBBTree with OBBTreeB (as transformed) and - * call processing function for each intersecting leaf node pair. - * If the processing function returns a negative integer, terminate. - * For each intersecting leaf node pair, call callback. - * OBBTreeB is optionally transformed by XformBtoA before testing - * @param {vtkOBBTree} obbTreeB - * @param {mat4|null|undefined} XformBtoA - * @param {function|null|undefined} callback Compared function that takes in argument: - * nodeA (vtkOBBNode), nodeB (vtkOBBNode), XForm (mat4), arg - */ - publicAPI.intersectWithOBBTree = function (obbTreeB, XformBtoA) { - let onIntersect = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : () => -1; - let maxDepth = model.level; - let minDepth = obbTreeB.getLevel(); - if (minDepth > maxDepth) { - minDepth = maxDepth; - maxDepth = obbTreeB.getLevel(); - } - const maxStackDepth = 3 * minDepth + 2 * (maxDepth - minDepth) + 1; - const OBBStackA = new Array(maxStackDepth); - const OBBStackB = new Array(maxStackDepth); - OBBStackA[0] = model.tree; - OBBStackB[0] = obbTreeB.getTree(); - let depth = 1; - let count = 0; - let returnValue = 0; - // simulate recursion without overhead of real recursion. - while (depth > 0 && returnValue > -1) { - depth--; - const nodeA = OBBStackA[depth]; - const nodeB = OBBStackB[depth]; - if (!publicAPI.disjointOBBNodes(nodeA, nodeB, XformBtoA)) { - // Collision - if (!nodeA.getKids()) { - if (!nodeB.getKids()) { - returnValue = onIntersect(nodeA, nodeB, XformBtoA); - count += Math.abs(returnValue); - } else { - // A is a leaf, but B goes deeper. - OBBStackA[depth] = nodeA; - OBBStackB[depth] = nodeB.getKids()[0]; - OBBStackA[depth + 1] = nodeA; - OBBStackB[depth + 1] = nodeB.getKids()[1]; - depth += 2; - } - } else if (!nodeB.getKids()) { - // B is a leaf, but A goes deeper. - OBBStackB[depth] = nodeB; - OBBStackA[depth] = nodeA.getKids()[0]; - OBBStackB[depth + 1] = nodeB; - OBBStackA[depth + 1] = nodeA.getKids()[1]; - depth += 2; - } else { - // neither A nor B are leaves. Go to the next level. - OBBStackA[depth] = nodeA.getKids()[0]; - OBBStackB[depth] = nodeB.getKids()[0]; - OBBStackA[depth + 1] = nodeA.getKids()[1]; - OBBStackB[depth + 1] = nodeB.getKids()[0]; - OBBStackA[depth + 2] = nodeA.getKids()[0]; - OBBStackB[depth + 2] = nodeB.getKids()[1]; - OBBStackA[depth + 3] = nodeA.getKids()[1]; - OBBStackB[depth + 3] = nodeB.getKids()[1]; - depth += 4; - } - } - } - return count; - }; - publicAPI.triangleIntersectsNode = (nodeA, p0, p1, p2, XformBtoA) => { - const eps = model.tolerance; - const pA = nodeA; - const pB = [[...p0], [...p1], [...p2]]; - if (XformBtoA) { - // Here we assume that XformBtoA is an orthogonal matrix - const input = [0, 0, 0, 1]; - const output = []; - for (let ii = 0; ii < 3; ii++) { - input[0] = pB[ii][0]; - input[1] = pB[ii][1]; - input[2] = pB[ii][2]; - vec4.transformMat4(output, input, XformBtoA); - pB[ii][0] = output[0] / output[3]; - pB[ii][1] = output[1] / output[3]; - pB[ii][2] = output[2] / output[3]; - } - } - - // now check for a separation plane parallel to the triangle - const v0 = []; - const v1 = []; - for (let ii = 0; ii < 3; ii++) { - // plane is normal to the triangle - v0[ii] = pB[1][ii] - pB[0][ii]; - v1[ii] = pB[2][ii] - pB[0][ii]; - } - const xprod = cross(v0, v1, []); - // computing B range is easy... - let rangeBmax = dot(pB[0], xprod); - let rangeBmin = rangeBmax; - // compute A range... - let rangeAmax = dot(pA.getCorner(), xprod); - let rangeAmin = rangeAmax; - let dotA; - for (let jj = 0; jj < 3; jj++) { - dotA = dot(xprod, pA.getAxis(jj)); - if (dotA > 0) { - rangeAmax += dotA; - } else { - rangeAmin += dotA; - } - } - if (rangeAmax + eps < rangeBmin || rangeBmax + eps < rangeAmin) { - return 0; // A and B are Disjoint by the 1st test. - } - - // now check for a separation plane parallel to the faces of A - for (let ii = 0; ii < 3; ii++) { - // plane is normal to pA->Axes[ii] - // computing A range is easy... - rangeAmax = dot(pA.getCorner(), pA.getAxis(ii)); - rangeAmin = rangeAmax; - rangeAmax += dot(pA.getAxis(ii), pA.getAxis(ii)); - - // compute B range... - rangeBmax = dot(pB[0], pA.getAxis(ii)); - rangeBmin = rangeBmax; - let dotB = dot(pB[1], pA.getAxis(ii)); - if (dotB > rangeBmax) { - rangeBmax = dotB; - } else { - rangeBmin = dotB; - } - dotB = dot(pB[2], pA.getAxis(ii)); - if (dotB > rangeBmax) { - rangeBmax = dotB; - } else if (dotB < rangeBmin) { - rangeBmin = dotB; - } - if (rangeAmax + eps < rangeBmin || rangeBmax + eps < rangeAmin) { - return 0; // A and B are Disjoint by the 2nd test. - } - } - - // Bad luck: now we must look for a separation plane parallel - // to one edge from A and one edge from B. - const AtoB = []; - let dotB; - for (let ii = 0; ii < 3; ii++) { - for (let jj = 0; jj < 3; jj++) { - // the plane is normal to pA->Axes[ii] X (pB[jj+1]-pB[jj]) - v0[0] = pB[(jj + 1) % 3][0] - pB[jj][0]; - v0[1] = pB[(jj + 1) % 3][1] - pB[jj][1]; - v0[2] = pB[(jj + 1) % 3][2] - pB[jj][2]; - cross(pA.getAxis(ii), v0, AtoB); - rangeAmax = dot(pA.getCorner(), AtoB); - rangeAmin = rangeAmax; - rangeBmax = dot(pB[jj], AtoB); - rangeBmin = rangeBmax; - for (let kk = 0; kk < 3; kk++) { - // compute A range - dotA = dot(pA.getAxis(kk), AtoB); - if (dotA > 0) { - rangeAmax += dotA; - } else { - rangeAmin += dotA; - } - } - // compute B range - dotB = dot(pB[(jj + 2) % 3], AtoB); - if (dotB > rangeBmax) { - rangeBmax = dotB; - } else { - rangeBmin = dotB; - } - if (rangeAmax + eps < rangeBmin || rangeBmax + eps < rangeAmin) { - return 0; // A and B are Disjoint by the 3rd test. - } - } - } - - // if we fall through to here, the OBB overlaps the triangle. - return 1; - }; - - /** - * - * @param {*} info must be an object with { obbTree1, intersectionLines } - * @param {*} node0 - * @param {*} node1 - * @param {*} transform - * @returns the number of intersection lines found - */ - publicAPI.findTriangleIntersections = (info, node0, node1, transform) => { - // Set up local structures to hold Impl array information - // vtkOBBTree* obbTree1 = info->OBBTree1; - // vtkCellArray* intersectionLines = info->IntersectionLines; - // vtkIdTypeArray* intersectionSurfaceId = info->SurfaceId; - // vtkIdTypeArray* intersectionCellIds0 = info->CellIds[0]; - // vtkIdTypeArray* intersectionCellIds1 = info->CellIds[1]; - // vtkPointLocator* pointMerger = info->PointMerger; - // double tolerance = info->Tolerance; - const mesh0 = publicAPI.getDataset(); - const mesh1 = info.obbTree1.getDataset(); - const pointOffset = info.intersectionLines.getPoints().getNumberOfPoints(); - const intersectionPoints = []; - const intersectionLines = []; - - // The number of cells in OBBTree - const numCells0 = node0.getCells().length; - for (let id0 = 0; id0 < numCells0; id0++) { - const cellId0 = node0.getCells()[id0]; - const type0 = mesh0.getCellType(cellId0); - - // Make sure the cell is a triangle - if (type0 === CellType.VTK_TRIANGLE) { - const { - cellPointIds: triPtIds0 - } = mesh0.getCellPoints(cellId0); - const triPts0 = [[], [], []]; - for (let id = 0; id < triPtIds0.length; id++) { - mesh0.getPoints().getPoint(triPtIds0[id], triPts0[id]); - } - if (info.obbTree1.triangleIntersectsNode(node1, triPts0[0], triPts0[1], triPts0[2], transform)) { - const numCells1 = node1.getCells().length; - for (let id1 = 0; id1 < numCells1; id1++) { - const cellId1 = node1.getCells()[id1]; - const type1 = mesh1.getCellType(cellId1); - if (type1 === CellType.VTK_TRIANGLE) { - // See if the two cells actually intersect. If they do, - // add an entry into the intersection maps and add an - // intersection line. - const { - cellPointIds: triPtIds1 - } = mesh1.getCellPoints(cellId1); - const triPts1 = [[], [], []]; - for (let id = 0; id < triPtIds1.length; id++) { - mesh1.getPoints().getPoint(triPtIds1[id], triPts1[id]); - } - const { - intersect, - coplanar, - pt1: outpt0, - pt2: outpt1 - // surfaceId, - } = vtkTriangle.intersectWithTriangle(...triPts0, ...triPts1, model.tolerance); - if (intersect && !coplanar) { - const pointId = intersectionPoints.length / 3; - intersectionPoints.push(...outpt0, ...outpt1); - intersectionLines.push(2, pointOffset + pointId, pointOffset + pointId + 1); - } - - // If actual intersection, add point and cell to edge, line, - // and surface maps! - /* - if (coplanar) { - // Coplanar triangle intersection is not handled. - // This intersection will not be included in the output. TODO - // vtkDebugMacro(<<"Coplanar"); - intersects = false; - continue; - } - if (intersects) - { - vtkIdType lineId = info.intersectionLines->GetNumberOfCells(); - vtkIdType ptId0, ptId1; - int unique[2]; - unique[0] = pointMerger->InsertUniquePoint(outpt0, ptId0); - unique[1] = pointMerger->InsertUniquePoint(outpt1, ptId1); - int addline = 1; - if (ptId0 == ptId1) - { - addline = 0; - } - if (ptId0 == ptId1 && surfaceid[0] != surfaceid[1]) - { - intersectionSurfaceId->InsertValue(ptId0, 3); - } - else - { - if (unique[0]) - { - intersectionSurfaceId->InsertValue(ptId0, surfaceid[0]); - } - else - { - if (intersectionSurfaceId->GetValue(ptId0) != 3) - { - intersectionSurfaceId->InsertValue(ptId0, surfaceid[0]); - } - } - if (unique[1]) - { - intersectionSurfaceId->InsertValue(ptId1, surfaceid[1]); - } - else - { - if (intersectionSurfaceId->GetValue(ptId1) != 3) - { - intersectionSurfaceId->InsertValue(ptId1, surfaceid[1]); - } - } - } - info->IntersectionPtsMap[0]->insert(std::make_pair(ptId0, cellId0)); - info->IntersectionPtsMap[1]->insert(std::make_pair(ptId0, cellId1)); - info->IntersectionPtsMap[0]->insert(std::make_pair(ptId1, cellId0)); - info->IntersectionPtsMap[1]->insert(std::make_pair(ptId1, cellId1)); - // Check to see if duplicate line. Line can only be a duplicate - // line if both points are not unique and they don't - // equal each other - if (!unique[0] && !unique[1] && ptId0 != ptId1) - { - vtkSmartPointer lineTest = vtkSmartPointer::New(); - lineTest->SetPoints(pointMerger->GetPoints()); - lineTest->SetLines(intersectionLines); - lineTest->BuildLinks(); - int newLine = info->CheckLine(lineTest, ptId0, ptId1); - if (newLine == 0) - { - addline = 0; - } - } - if (addline) - { - // If the line is new and does not consist of two identical - // points, add the line to the intersection and update - // mapping information - intersectionLines->InsertNextCell(2); - intersectionLines->InsertCellPoint(ptId0); - intersectionLines->InsertCellPoint(ptId1); - intersectionCellIds0->InsertNextValue(cellId0); - intersectionCellIds1->InsertNextValue(cellId1); - info->PointCellIds[0]->InsertValue(ptId0, cellId0); - info->PointCellIds[0]->InsertValue(ptId1, cellId0); - info->PointCellIds[1]->InsertValue(ptId0, cellId1); - info->PointCellIds[1]->InsertValue(ptId1, cellId1); - info->IntersectionMap[0]->insert(std::make_pair(cellId0, lineId)); - info->IntersectionMap[1]->insert(std::make_pair(cellId1, lineId)); - // Check which edges of cellId0 and cellId1 outpt0 and - // outpt1 are on, if any. - int isOnEdge = 0; - int m0p0 = 0, m0p1 = 0, m1p0 = 0, m1p1 = 0; - for (vtkIdType edgeId = 0; edgeId < 3; edgeId++) - { - isOnEdge = info->AddToPointEdgeMap( - 0, ptId0, outpt0, mesh0, cellId0, edgeId, lineId, triPtIds0); - if (isOnEdge != -1) - { - m0p0++; - } - isOnEdge = info->AddToPointEdgeMap( - 0, ptId1, outpt1, mesh0, cellId0, edgeId, lineId, triPtIds0); - if (isOnEdge != -1) - { - m0p1++; - } - isOnEdge = info->AddToPointEdgeMap( - 1, ptId0, outpt0, mesh1, cellId1, edgeId, lineId, triPtIds1); - if (isOnEdge != -1) - { - m1p0++; - } - isOnEdge = info->AddToPointEdgeMap( - 1, ptId1, outpt1, mesh1, cellId1, edgeId, lineId, triPtIds1); - if (isOnEdge != -1) - { - m1p1++; - } - } - // Special cases caught by tolerance and not from the Point - // Merger - if (m0p0 > 0 && m1p0 > 0) - { - intersectionSurfaceId->InsertValue(ptId0, 3); - } - if (m0p1 > 0 && m1p1 > 0) - { - intersectionSurfaceId->InsertValue(ptId1, 3); - } - } - // Add information about origin surface to std::maps for - // checks later - if (intersectionSurfaceId->GetValue(ptId0) == 1) - { - info->IntersectionPtsMap[0]->insert(std::make_pair(ptId0, cellId0)); - } - else if (intersectionSurfaceId->GetValue(ptId0) == 2) - { - info->IntersectionPtsMap[1]->insert(std::make_pair(ptId0, cellId1)); - } - else - { - info->IntersectionPtsMap[0]->insert(std::make_pair(ptId0, cellId0)); - info->IntersectionPtsMap[1]->insert(std::make_pair(ptId0, cellId1)); - } - if (intersectionSurfaceId->GetValue(ptId1) == 1) - { - info->IntersectionPtsMap[0]->insert(std::make_pair(ptId1, cellId0)); - } - else if (intersectionSurfaceId->GetValue(ptId1) == 2) - { - info->IntersectionPtsMap[1]->insert(std::make_pair(ptId1, cellId1)); - } - else - { - info->IntersectionPtsMap[0]->insert(std::make_pair(ptId1, cellId0)); - info->IntersectionPtsMap[1]->insert(std::make_pair(ptId1, cellId1)); - } - } - */ - } - } - } - } - } - - if (intersectionPoints.length) { - const points = vtkPoints.newInstance(); - points.setData(pushArray(info.intersectionLines.getPoints().getData(), intersectionPoints)); - info.intersectionLines.setPoints(points); - const lines = vtkCellArray.newInstance(); - lines.setData(pushArray(info.intersectionLines.getLines().getData(), intersectionLines)); - info.intersectionLines.setLines(lines); - } - return intersectionLines.length / 3; - }; - - /** - * Create polygonal representation for OBB tree at specified level. If - * level < 0, then the leaf OBB nodes will be gathered. The aspect ratio (ar) - * and line diameter (d) are used to control the building of the - * representation. If a OBB node edge ratio's are greater than ar, then the - * dimension of the OBB is collapsed (OBB->plane->line). A "line" OBB will be - * represented either as two crossed polygons, or as a line, depending on - * the relative diameter of the OBB compared to the diameter (d). - * @param {Number} level Level of the representation - * @returns {vtkPolyData} - */ - publicAPI.generateRepresentation = level => { - if (!model.tree) { - vtkErrorMacro('No tree to generate representation for'); - return null; - } - const points = vtkPoints.newInstance(); - const polys = vtkCellArray.newInstance(); - generatePolygons(model.tree, 0, level, points, polys); - const output = vtkPolyData.newInstance(); - output.setPoints(points); - output.setPolys(polys); - return output; - }; - publicAPI.buildLocator = () => { - if (model.dataset === null) { - vtkErrorMacro("Can't build OBB tree - no data available!"); - return; - } - const numPts = model.dataset.getPoints().getNumberOfPoints(); - const numCells = model.dataset.getNumberOfCells(); - if (numPts < 1 || numCells < 1) { - vtkErrorMacro("Can't build OBB tree - no data available!"); - return; - } - model.OBBCount = 0; - // Initialize an array of numPts elements set to value 0 - model.insertedPoints = Array.from({ - length: numPts - }, _ => 0); - model.pointsList = []; - const cellList = Array.from({ - length: numCells - }, (_, i) => i); - model.tree = vtkOBBNode.newInstance(); - model.level = 0; - buildTree(cellList, model.tree, 0); - model.insertedPoints = []; - model.pointsList = []; - publicAPI.modified(); - }; -} - -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - tolerance: 0.01, - automatic: true, - numberOfCellsPerNode: 32, - dataset: null, - tree: null, - pointsList: [], - insertedPoints: [], - OBBCount: 0, - level: 8, - maxLevel: 8, - retainCellLists: 1 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.setGet(publicAPI, model, ['tolerance', 'automatic', 'numberOfCellsPerNode', 'dataset', 'tree', 'maxLevel', 'level', 'retainCellLists']); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Object specific methods - vtkOBBTree(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkOBBTree'); - -// ---------------------------------------------------------------------------- - -var vtkOBBTree$1 = { - newInstance, - extend -}; - -export { vtkOBBTree$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/OBBTree/OBBNode.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/OBBTree/OBBNode.js deleted file mode 100644 index 30dee922..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/OBBTree/OBBNode.js +++ /dev/null @@ -1,84 +0,0 @@ -import { m as macro } from '../../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkOBBNode methods -// ---------------------------------------------------------------------------- - -function vtkOBBNode(publicAPI, model) { - // Set our classname - model.classHierarchy.push('vtkOBBNode'); - - /** - * Copy a vtkOBBNode into an other one - * @param {vtkOBBNode} nodeSource - * @param {vtkOBBNode} nodeTarget - */ - publicAPI.deepCopy = nodeSource => { - publicAPI.setCorner(nodeSource.getCorner()); - const axes = nodeSource.getAxes(); - publicAPI.setAxes([[...axes[0]], [...axes[1]], [...axes[2]]]); - publicAPI.setCells([...nodeSource.getCells()]); - if (nodeSource.getKids()) { - const kids0 = vtkOBBNode.newInstance(); - kids0.setParent(publicAPI); - const kids1 = vtkOBBNode.newInstance(); - kids1.setParent(publicAPI); - kids0.deepCopy(nodeSource.getKids()[0]); - kids1.deepCopy(nodeSource.getKids()[1], kids1); - publicAPI.setKids(kids0, kids1); - } - }; - publicAPI.getAxis = axis => model.axes[axis]; -} - -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - return { - corner: [0, 0, 0], - // center point of this node - axes: [[0, 0, 0], [0, 0, 0], [0, 0, 0]], - // the axes defining the OBB - ordered from long->short - cells: [], - // list of cells in node - // parent: null, null if root - // kids: null, two children of this node; null if leaf - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - model.corner = [0, 0, 0]; - model.axes = [[0, 0, 0], [0, 0, 0], [0, 0, 0]]; - model.parent = null; // parent node; null if root - model.kids = null; // two children of this node; nullptr if leaf - model.cells = []; // list of cells in node - - // Build VTK API - macro.setGet(publicAPI, model, ['parent', 'cells', 'kids']); - // macro.setGetArray(publicAPI, model, ['kids'], 2); - macro.setGetArray(publicAPI, model, ['corner', 'axes'], 3); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Object specific methods - vtkOBBNode(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkOBBNode'); - -// ---------------------------------------------------------------------------- - -var vtkOBBNode$1 = { - newInstance, - extend -}; - -export { vtkOBBNode$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/OBBTree/helper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/OBBTree/helper.js deleted file mode 100644 index e2b55a33..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/OBBTree/helper.js +++ /dev/null @@ -1,87 +0,0 @@ -import { CellType } from '../../../Common/DataModel/CellTypes/Constants.js'; -import vtkOBJReader from '../../../IO/Misc/OBJReader.js'; - -/** - * Get the correct point ID from a cell id - * @param {Array} cellPtsIds - * @param {CellType} type - * @param {Number} idx - * @returns {Object} Contains three point's id of cells as 'ptId0', 'ptId1', 'ptId2' - */ -function getCellTriangles(cellPtsIds, type, idx) { - let ptId0 = -1; - let ptId1 = -1; - let ptId2 = -1; - const cellListLength = cellPtsIds.length; - switch (type) { - case CellType.VTK_TRIANGLE: - case CellType.VTK_POLYGON: - case CellType.VTK_QUAD: - { - if (idx > cellListLength) break; - ptId0 = cellPtsIds[0]; - ptId1 = cellPtsIds[idx + 1]; - ptId2 = cellPtsIds[idx + 2]; - break; - } - case CellType.VTK_TRIANGLE_STRIP: - { - // eslint-disable-next-line no-bitwise - const idx1 = idx + 1 + (idx & 1); - // eslint-disable-next-line no-bitwise - const idx2 = idx + 2 - (idx & 1); - if (idx1 > cellListLength || idx2 > cellListLength) break; - ptId0 = cellPtsIds[idx]; - ptId1 = cellPtsIds[idx1]; - ptId2 = cellPtsIds[idx2]; - break; - } - default: - ptId0 = -1; - ptId1 = -1; - ptId2 = -1; - break; - } - return { - ptId0, - ptId1, - ptId2 - }; -} - -/** - * Concatenate second typed array to the first typed array. - * @param {TypedArray} first - * @param {TypedArray} second Must be of the same type as first - * @return {TypedArray} - */ -function pushArray(first, second) { - const firstLength = first.length; - const result = new first.constructor(firstLength + second.length); - result.set(first); - result.set(second, firstLength); - return result; -} - -/** - * Load an obj with point's colors - * - * @param {string} url path to the OBJ file - * @return Promise - * ---> success : Return vtkPolyData - * ---> failed : Error message - */ -function loadOBJ(url) { - return new Promise((resolve, reject) => { - const reader = vtkOBJReader.newInstance(); - reader.setUrl(url).then(() => { - const data = reader.getOutputData(); - resolve(data); - }, () => { - // eslint-disable-next-line prefer-promise-reject-errors - reject('Error when loading ', url); - }); - }); -} - -export { getCellTriangles, loadOBJ, pushArray }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/OutlineFilter.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/OutlineFilter.d.ts deleted file mode 100644 index faf88d8e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/OutlineFilter.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; - -export const BOUNDS_MAP: number[]; - -export const LINE_ARRAY: number[]; - -/* - * - */ -export interface IOutlineFilterInitialValues {} - -type vtkOutlineFilterBase = vtkObject & vtkAlgorithm; - -export interface vtkOutlineFilter extends vtkOutlineFilterBase { - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkOutlineFilter characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IOutlineFilterInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IOutlineFilterInitialValues -): void; - -/** - * Method used to create a new instance of vtkOutlineFilter - * @param {IOutlineFilterInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IOutlineFilterInitialValues -): vtkOutlineFilter; - -/** - * vtkOutlineFilter - A filter that generates triangles for larger cells - * - * vtkOutlineFilter is a filter that converts cells wih more than 3 points into - * triangles. - */ -export declare const vtkOutlineFilter: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkOutlineFilter; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/OutlineFilter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/OutlineFilter.js deleted file mode 100644 index 6ad27712..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/OutlineFilter.js +++ /dev/null @@ -1,86 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; - -const { - vtkErrorMacro -} = macro; - -// prettier-ignore -const BOUNDS_MAP = [0, 2, 4, -// pt 0 -1, 2, 4, -// pt 1 -0, 3, 4, -// pt 2 -1, 3, 4, -// pt 3 -0, 2, 5, -// pt 4 -1, 2, 5, -// pt 5 -0, 3, 5, -// pt 6 -1, 3, 5 // pt 7 -]; - -// prettier-ignore -const LINE_ARRAY = [2, 0, 1, 2, 2, 3, 2, 4, 5, 2, 6, 7, 2, 0, 2, 2, 1, 3, 2, 4, 6, 2, 5, 7, 2, 0, 4, 2, 1, 5, 2, 2, 6, 2, 3, 7]; - -// ---------------------------------------------------------------------------- -// vtkOutlineFilter methods -// ---------------------------------------------------------------------------- - -function vtkOutlineFilter(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOutlineFilter'); - publicAPI.requestData = (inData, outData) => { - // implement requestData - const input = inData[0]; - if (!input) { - vtkErrorMacro('Invalid or missing input'); - return; - } - const bounds = input.getBounds(); - const output = outData[0]?.initialize() || vtkPolyData.newInstance(); - output.getPoints().setData(Float32Array.from(BOUNDS_MAP.map(idx => bounds[idx])), 3); - output.getLines().setData(Uint16Array.from(LINE_ARRAY)); - outData[0] = output; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - - // Object specific methods - vtkOutlineFilter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkOutlineFilter'); - -// ---------------------------------------------------------------------------- - -var vtkOutlineFilter$1 = { - newInstance, - extend, - BOUNDS_MAP, - LINE_ARRAY -}; - -export { BOUNDS_MAP, LINE_ARRAY, vtkOutlineFilter$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/PaintFilter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/PaintFilter.js deleted file mode 100644 index fb3cf799..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/PaintFilter.js +++ /dev/null @@ -1,378 +0,0 @@ -import { vec3 } from 'gl-matrix'; -import WebworkerPromise from 'webworker-promise'; -import { m as macro } from '../../macros2.js'; -import vtkImageData from '../../Common/DataModel/ImageData.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkPolygon from '../../Common/DataModel/Polygon.js'; -import { W as WorkerFactory } from '../../_virtual/rollup-plugin-worker-loader__module_Sources/Filters/General/PaintFilter/PaintFilter.worker.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkPaintFilter methods -// ---------------------------------------------------------------------------- - -function vtkPaintFilter(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPaintFilter'); - let worker = null; - let workerPromise = null; - const history = {}; - - // -------------------------------------------------------------------------- - - function resetHistory() { - history.index = -1; - history.snapshots = []; - history.labels = []; - } - function pushToHistory(snapshot, label) { - // Clear any "redo" info - const spliceIndex = history.index + 1; - const spliceLength = history.snapshots.length - history.index; - history.snapshots.splice(spliceIndex, spliceLength); - history.labels.splice(spliceIndex, spliceLength); - - // Push new snapshot - history.snapshots.push(snapshot); - history.labels.push(label); - history.index++; - } - - // -------------------------------------------------------------------------- - - publicAPI.startStroke = () => { - if (model.labelMap) { - if (!workerPromise) { - worker = new WorkerFactory(); - workerPromise = new WebworkerPromise(worker); - } - workerPromise.exec('start', { - bufferType: 'Uint8Array', - dimensions: model.labelMap.getDimensions(), - slicingMode: model.slicingMode - }); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.endStroke = () => { - let endStrokePromise; - if (workerPromise) { - endStrokePromise = workerPromise.exec('end'); - endStrokePromise.then(strokeBuffer => { - publicAPI.applyBinaryMask(strokeBuffer); - worker.terminate(); - worker = null; - workerPromise = null; - }); - } - return endStrokePromise; - }; - publicAPI.applyBinaryMask = maskBuffer => { - const scalars = model.labelMap.getPointData().getScalars(); - const data = scalars.getData(); - const maskLabelMap = new Uint8Array(maskBuffer); - let diffCount = 0; - for (let i = 0; i < maskLabelMap.length; i++) { - // maskLabelMap is a binary mask - diffCount += maskLabelMap[i]; - } - - // Format: [ [index, oldLabel], ...] - // I could use an ArrayBuffer, which would place limits - // on the values of index/old, but will be more efficient. - const snapshot = new Array(diffCount); - const label = model.label; - let diffIdx = 0; - if (model.voxelFunc) { - const bgScalars = model.backgroundImage.getPointData().getScalars(); - const voxel = []; - for (let i = 0; i < maskLabelMap.length; i++) { - if (maskLabelMap[i]) { - bgScalars.getTuple(i, voxel); - // might not fill up snapshot - if (model.voxelFunc(voxel, i, label)) { - snapshot[diffIdx++] = [i, data[i]]; - data[i] = label; - } - } - } - } else { - for (let i = 0; i < maskLabelMap.length; i++) { - if (maskLabelMap[i]) { - if (data[i] !== label) { - snapshot[diffIdx++] = [i, data[i]]; - data[i] = label; - } - } - } - } - pushToHistory(snapshot, label); - scalars.setData(data); - scalars.modified(); - model.labelMap.modified(); - publicAPI.modified(); - }; - - // -------------------------------------------------------------------------- - - publicAPI.addPoint = point => { - if (workerPromise) { - const worldPt = [point[0], point[1], point[2]]; - const indexPt = [0, 0, 0]; - vec3.transformMat4(indexPt, worldPt, model.maskWorldToIndex); - indexPt[0] = Math.round(indexPt[0]); - indexPt[1] = Math.round(indexPt[1]); - indexPt[2] = Math.round(indexPt[2]); - const spacing = model.labelMap.getSpacing(); - const radius = spacing.map(s => model.radius / s); - workerPromise.exec('paint', { - point: indexPt, - radius - }); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.paintRectangle = (point1, point2) => { - if (workerPromise) { - const index1 = [0, 0, 0]; - const index2 = [0, 0, 0]; - vec3.transformMat4(index1, point1, model.maskWorldToIndex); - vec3.transformMat4(index2, point2, model.maskWorldToIndex); - index1[0] = Math.round(index1[0]); - index1[1] = Math.round(index1[1]); - index1[2] = Math.round(index1[2]); - index2[0] = Math.round(index2[0]); - index2[1] = Math.round(index2[1]); - index2[2] = Math.round(index2[2]); - workerPromise.exec('paintRectangle', { - point1: index1, - point2: index2 - }); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.paintEllipse = (center, scale3) => { - if (workerPromise) { - const realCenter = [0, 0, 0]; - const origin = [0, 0, 0]; - let realScale3 = [0, 0, 0]; - vec3.transformMat4(realCenter, center, model.maskWorldToIndex); - vec3.transformMat4(origin, origin, model.maskWorldToIndex); - vec3.transformMat4(realScale3, scale3, model.maskWorldToIndex); - vec3.subtract(realScale3, realScale3, origin); - realScale3 = realScale3.map(s => s === 0 ? 0.25 : Math.abs(s)); - workerPromise.exec('paintEllipse', { - center: realCenter, - scale3: realScale3 - }); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.canUndo = () => history.index > -1; - - // -------------------------------------------------------------------------- - - publicAPI.paintPolygon = pointList => { - if (workerPromise && pointList.length > 0) { - const polygon = vtkPolygon.newInstance(); - const poly = []; - for (let i = 0; i < pointList.length / 3; i++) { - poly.push([pointList[3 * i + 0], pointList[3 * i + 1], pointList[3 * i + 2]]); - } - polygon.setPoints(poly); - if (!polygon.triangulate()) { - console.log('triangulation failed!'); - } - const points = polygon.getPointArray(); - const triangleList = new Float32Array(points.length); - const numPoints = Math.floor(triangleList.length / 3); - for (let i = 0; i < numPoints; i++) { - const point = points.slice(3 * i, 3 * i + 3); - const voxel = triangleList.subarray(3 * i, 3 * i + 3); - vec3.transformMat4(voxel, point, model.maskWorldToIndex); - } - workerPromise.exec('paintTriangles', { - triangleList - }); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.applyLabelMap = labelMap => { - const currentMapData = model.labelMap.getPointData().getScalars().getData(); - const newMapData = labelMap.getPointData().getScalars().getData(); - - // Compute snapshot - const snapshot = []; - for (let i = 0; i < newMapData.length; ++i) { - if (currentMapData[i] !== newMapData[i]) { - snapshot.push([i, currentMapData[i]]); - } - } - pushToHistory(snapshot, model.label); - model.labelMap = labelMap; - publicAPI.modified(); - }; - - // -------------------------------------------------------------------------- - - publicAPI.undo = () => { - if (history.index > -1) { - const scalars = model.labelMap.getPointData().getScalars(); - const data = scalars.getData(); - const snapshot = history.snapshots[history.index]; - for (let i = 0; i < snapshot.length; i++) { - if (!snapshot[i]) { - break; - } - const [index, oldLabel] = snapshot[i]; - data[index] = oldLabel; - } - history.index--; - scalars.setData(data); - scalars.modified(); - model.labelMap.modified(); - publicAPI.modified(); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.canRedo = () => history.index < history.labels.length - 1; - - // -------------------------------------------------------------------------- - - publicAPI.redo = () => { - if (history.index < history.labels.length - 1) { - const scalars = model.labelMap.getPointData().getScalars(); - const data = scalars.getData(); - const redoLabel = history.labels[history.index + 1]; - const snapshot = history.snapshots[history.index + 1]; - for (let i = 0; i < snapshot.length; i++) { - if (!snapshot[i]) { - break; - } - const [index] = snapshot[i]; - data[index] = redoLabel; - } - history.index++; - scalars.setData(data); - scalars.modified(); - model.labelMap.modified(); - publicAPI.modified(); - } - }; - - // -------------------------------------------------------------------------- - - const superSetLabelMap = publicAPI.setLabelMap; - publicAPI.setLabelMap = lm => { - if (superSetLabelMap(lm)) { - model.maskWorldToIndex = model.labelMap.getWorldToIndex(); - resetHistory(); - return true; - } - return false; - }; - - // -------------------------------------------------------------------------- - - publicAPI.requestData = (inData, outData) => { - if (!model.backgroundImage) { - vtkErrorMacro('No background image'); - return; - } - if (!model.backgroundImage.getPointData().getScalars()) { - vtkErrorMacro('Background image has no scalars'); - return; - } - if (!model.labelMap) { - // clone background image properties - const labelMap = vtkImageData.newInstance(model.backgroundImage.get('spacing', 'origin', 'direction')); - labelMap.setDimensions(model.backgroundImage.getDimensions()); - labelMap.computeTransforms(); - - // right now only support 256 labels - const values = new Uint8Array(model.backgroundImage.getNumberOfPoints()); - const dataArray = vtkDataArray.newInstance({ - numberOfComponents: 1, - // labelmap with single component - values - }); - labelMap.getPointData().setScalars(dataArray); - publicAPI.setLabelMap(labelMap); - } - if (!model.maskWorldToIndex) { - model.maskWorldToIndex = model.labelMap.getWorldToIndex(); - } - const scalars = model.labelMap.getPointData().getScalars(); - if (!scalars) { - vtkErrorMacro('Mask image has no scalars'); - return; - } - model.labelMap.modified(); - outData[0] = model.labelMap; - }; - - // -------------------------------------------------------------------------- - // Initialization - // -------------------------------------------------------------------------- - - resetHistory(); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - backgroundImage: null, - labelMap: null, - maskWorldToIndex: null, - voxelFunc: null, - radius: 1, - label: 0, - slicingMode: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with no input and one output - macro.algo(publicAPI, model, 0, 1); - macro.setGet(publicAPI, model, ['backgroundImage', 'labelMap', 'maskWorldToIndex', 'voxelFunc', 'label', 'radius', 'slicingMode']); - - // Object specific methods - vtkPaintFilter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPaintFilter'); - -// ---------------------------------------------------------------------------- - -var vtkPaintFilter$1 = { - newInstance, - extend -}; - -export { vtkPaintFilter$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/PaintFilter/PaintFilter.worker.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/PaintFilter/PaintFilter.worker.js deleted file mode 100644 index 4c17a4c5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/PaintFilter/PaintFilter.worker.js +++ /dev/null @@ -1,198 +0,0 @@ -import registerWebworker from 'webworker-promise/lib/register'; -import { SlicingMode } from '../../../Rendering/Core/ImageMapper/Constants.js'; -import { vec3 } from 'gl-matrix'; - -const globals = { - // single-component labelmap - buffer: null, - dimensions: [0, 0, 0], - prevPoint: null, - slicingMode: null // 2D or 3D painting -}; - -// -------------------------------------------------------------------------- - -function handlePaintRectangle(_ref) { - let { - point1, - point2 - } = _ref; - const [x1, y1, z1] = point1; - const [x2, y2, z2] = point2; - const xstart = Math.max(Math.min(x1, x2), 0); - const xend = Math.min(Math.max(x1, x2), globals.dimensions[0] - 1); - if (xstart <= xend) { - const ystart = Math.max(Math.min(y1, y2), 0); - const yend = Math.min(Math.max(y1, y2), globals.dimensions[1] - 1); - const zstart = Math.max(Math.min(z1, z2), 0); - const zend = Math.min(Math.max(z1, z2), globals.dimensions[2] - 1); - const jStride = globals.dimensions[0]; - const kStride = globals.dimensions[0] * globals.dimensions[1]; - for (let k = zstart; k <= zend; k++) { - for (let j = ystart; j <= yend; j++) { - const index = j * jStride + k * kStride; - globals.buffer.fill(1, index + xstart, index + xend + 1); - } - } - } -} - -// -------------------------------------------------------------------------- -// center and scale3 are in IJK coordinates -function handlePaintEllipse(_ref2) { - let { - center, - scale3 - } = _ref2; - const radius3 = [...scale3]; - const indexCenter = center.map(val => Math.round(val)); - let sliceAxis = -1; - if (globals.slicingMode != null && globals.slicingMode !== SlicingMode.NONE) { - sliceAxis = globals.slicingMode % 3; - } - const yStride = globals.dimensions[0]; - const zStride = globals.dimensions[0] * globals.dimensions[1]; - let [xmin, ymin, zmin] = indexCenter; - let [xmax, ymax, zmax] = indexCenter; - if (sliceAxis !== 2) { - zmin = Math.round(Math.max(indexCenter[2] - radius3[2], 0)); - zmax = Math.round(Math.min(indexCenter[2] + radius3[2], globals.dimensions[2] - 1)); - } - for (let z = zmin; z <= zmax; z++) { - let dz = 0; - if (sliceAxis !== 2) { - dz = (indexCenter[2] - z) / radius3[2]; - } - const dzSquared = dz * dz; - if (dzSquared <= 1) { - const ay = radius3[1] * Math.sqrt(1 - dzSquared); - if (sliceAxis !== 1) { - ymin = Math.round(Math.max(indexCenter[1] - ay, 0)); - ymax = Math.round(Math.min(indexCenter[1] + ay, globals.dimensions[1] - 1)); - } - for (let y = ymin; y <= ymax; y++) { - let dy = 0; - if (sliceAxis !== 1) { - dy = (indexCenter[1] - y) / radius3[1]; - } - const dySquared = dy * dy; - if (dySquared + dzSquared <= 1) { - if (sliceAxis !== 0) { - const ax = radius3[0] * Math.sqrt(1 - dySquared - dzSquared); - xmin = Math.round(Math.max(indexCenter[0] - ax, 0)); - xmax = Math.round(Math.min(indexCenter[0] + ax, globals.dimensions[0] - 1)); - } - if (xmin <= xmax) { - const index = y * yStride + z * zStride; - globals.buffer.fill(1, index + xmin, index + xmax + 1); - } - } - } - } - } -} - -// -------------------------------------------------------------------------- - -function handlePaint(_ref3) { - let { - point, - radius - } = _ref3; - if (!globals.prevPoint) { - globals.prevPoint = point; - } - - // DDA params - const delta = [point[0] - globals.prevPoint[0], point[1] - globals.prevPoint[1], point[2] - globals.prevPoint[2]]; - const inc = [1, 1, 1]; - for (let i = 0; i < 3; i++) { - if (delta[i] < 0) { - delta[i] = -delta[i]; - inc[i] = -1; - } - } - const step = Math.max(...delta); - - // DDA - const thresh = [step, step, step]; - const pt = [...globals.prevPoint]; - for (let s = 0; s <= step; s++) { - handlePaintEllipse({ - center: pt, - scale3: radius - }); - for (let ii = 0; ii < 3; ii++) { - thresh[ii] -= delta[ii]; - if (thresh[ii] <= 0) { - thresh[ii] += step; - pt[ii] += inc[ii]; - } - } - } - globals.prevPoint = point; -} - -// -------------------------------------------------------------------------- - -function handlePaintTriangles(_ref4) { - let { - triangleList - } = _ref4; - // debugger; - - const triangleCount = Math.floor(triangleList.length / 9); - for (let i = 0; i < triangleCount; i++) { - const point0 = triangleList.subarray(9 * i + 0, 9 * i + 3); - const point1 = triangleList.subarray(9 * i + 3, 9 * i + 6); - const point2 = triangleList.subarray(9 * i + 6, 9 * i + 9); - const v1 = [0, 0, 0]; - const v2 = [0, 0, 0]; - vec3.subtract(v1, point1, point0); - vec3.subtract(v2, point2, point0); - const step1 = [0, 0, 0]; - const numStep1 = 2 * Math.max(Math.abs(v1[0]), Math.abs(v1[1]), Math.abs(v1[2])); - vec3.scale(step1, v1, 1 / numStep1); - const step2 = [0, 0, 0]; - const numStep2 = 2 * Math.max(Math.abs(v2[0]), Math.abs(v2[1]), Math.abs(v2[2])); - vec3.scale(step2, v2, 1 / numStep2); - const jStride = globals.dimensions[0]; - const kStride = globals.dimensions[0] * globals.dimensions[1]; - for (let u = 0; u <= numStep1 + 1; u++) { - const maxV = numStep2 - u * (numStep2 / numStep1); - for (let v = 0; v <= maxV + 1; v++) { - const point = [...point0]; - vec3.scaleAndAdd(point, point, step1, u); - vec3.scaleAndAdd(point, point, step2, v); - point[0] = Math.round(point[0]); - point[1] = Math.round(point[1]); - point[2] = Math.round(point[2]); - if (point[0] >= 0 && point[0] < globals.dimensions[0] && point[1] >= 0 && point[1] < globals.dimensions[1] && point[2] >= 0 && point[2] < globals.dimensions[2]) { - globals.buffer[point[0] + jStride * point[1] + kStride * point[2]] = 1; - } - } - } - } -} - -// -------------------------------------------------------------------------- - -registerWebworker().operation('start', _ref5 => { - let { - bufferType, - dimensions, - slicingMode - } = _ref5; - if (!globals.buffer) { - const bufferSize = dimensions[0] * dimensions[1] * dimensions[2]; - /* eslint-disable-next-line */ - globals.buffer = new self[bufferType](bufferSize); - globals.dimensions = dimensions; - globals.prevPoint = null; - globals.slicingMode = slicingMode; - } -}).operation('paint', handlePaint).operation('paintRectangle', handlePaintRectangle).operation('paintEllipse', handlePaintEllipse).operation('paintTriangles', handlePaintTriangles).operation('end', () => { - const response = new registerWebworker.TransferableResponse(globals.buffer.buffer, [globals.buffer.buffer]); - globals.buffer = null; - return response; -}); diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ScalarToRGBA.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ScalarToRGBA.js deleted file mode 100644 index dd9fdc15..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ScalarToRGBA.js +++ /dev/null @@ -1,96 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkImageData from '../../Common/DataModel/ImageData.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkScalarToRGBA methods -// ---------------------------------------------------------------------------- - -function vtkScalarToRGBA(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkScalarToRGBA'); - publicAPI.requestData = (inData, outData) => { - // implement requestData - const input = inData[0]; - if (!input) { - vtkErrorMacro('Invalid or missing input'); - return; - } - const scalars = input.getPointData().getScalars(); - if (!scalars) { - vtkErrorMacro('No scalars from input'); - return; - } - if (!model.lookupTable) { - vtkErrorMacro('No lookupTable available'); - return; - } - if (!model.piecewiseFunction) { - vtkErrorMacro('No piecewiseFunction available'); - return; - } - const rgba = [0, 0, 0, 0]; - const data = scalars.getData(); - const rgbaArray = new Uint8ClampedArray(data.length * 4); - let offset = 0; - for (let idx = 0; idx < data.length; idx++) { - const x = data[idx]; - model.lookupTable.getColor(x, rgba); - rgba[3] = model.piecewiseFunction.getValue(x); - rgbaArray[offset++] = 255 * rgba[0]; - rgbaArray[offset++] = 255 * rgba[1]; - rgbaArray[offset++] = 255 * rgba[2]; - rgbaArray[offset++] = 255 * rgba[3]; - } - const colorArray = vtkDataArray.newInstance({ - name: 'rgba', - numberOfComponents: 4, - values: rgbaArray - }); - const datasetDefinition = input.get('extent', 'spacing', 'origin', 'direction'); - const output = outData[0]?.initialize() || vtkImageData.newInstance(); - output.set(datasetDefinition); - output.getPointData().setScalars(colorArray); - outData[0] = output; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - macro.setGet(publicAPI, model, ['lookupTable', 'piecewiseFunction']); - - // Object specific methods - vtkScalarToRGBA(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkScalarToRGBA'); - -// ---------------------------------------------------------------------------- - -var vtkScalarToRGBA$1 = { - newInstance, - extend -}; - -export { vtkScalarToRGBA$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ShrinkPolyData.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ShrinkPolyData.d.ts deleted file mode 100644 index d177b2fc..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ShrinkPolyData.d.ts +++ /dev/null @@ -1,85 +0,0 @@ -import { DesiredOutputPrecision } from './../../Common/DataModel/DataSetAttributes'; -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { Vector3 } from './../../types'; - -/** - * - */ -export interface IShrinkPolyDataInitialValues { - shrinkFactor?: number; -} - -type vtkShrinkPolyDataBase = vtkObject & vtkAlgorithm; - -export interface vtkShrinkPolyData extends vtkShrinkPolyDataBase { - /** - * Expose methods - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Get the shrink factor. - */ - getShrinkFactor(): number; - - /** - * Set the shrink factor. - * @param {Number} shrinkFactor - */ - setShrinkFactor(shrinkFactor: number): boolean; - - /** - * Shrink two points towards their midpoint by a shrink factor. - * @param {Vector3} p1 - The [x, y, z] coordinates of the first point - * @param {Vector3} p2 - The [x, y, z] coordinates of the second point - * @param {number} shrinkFactor - The shrink factor (0.0 to 1.0) - * @param {Number[]} [shrunkPoints] - Optional array to store the shrunk points - * @returns {Number[]} Array containing the two new points - */ - shrinkLine( - p1: Vector3, - p2: Vector3, - shrinkFactor: number, - shrunkPoints?: Number[] - ): Number[]; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkShrinkPolyData characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IShrinkPolyDataInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IShrinkPolyDataInitialValues -): void; - -/** - * Method used to create a new instance of vtkShrinkPolyData. - * @param {IShrinkPolyDataInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IShrinkPolyDataInitialValues -): vtkShrinkPolyData; - -/** - * vtkShrinkPolyData shrinks cells composing a polygonal dataset (e.g., - * vertices, lines, polygons, and triangle strips) towards their centroid. The - * centroid of a cell is computed as the average position of the cell points. - * Shrinking results in disconnecting the cells from one another. The output - * dataset type of this filter is polygonal data. - * - * During execution the filter passes its input cell data to its output. Point - * data attributes are copied to the points created during the shrinking - * process. - */ -export declare const vtkShrinkPolyData: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkShrinkPolyData; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ShrinkPolyData.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ShrinkPolyData.js deleted file mode 100644 index 6d62e6de..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/ShrinkPolyData.js +++ /dev/null @@ -1,317 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkPoints from '../../Common/Core/Points.js'; -import vtkPolygon from '../../Common/DataModel/Polygon.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkShrinkPolyData methods -// ---------------------------------------------------------------------------- - -function vtkShrinkPolyData(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkShrinkPolyData'); - - /** - * Shrink a point towards a given center by a shrink factor. - * @param {Vector3} point - The [x, y, z] coordinates of the point to shrink - * @param {Vector3} center - The [x, y, z] coordinates of the center - * @param {number} shrinkFactor - The shrink factor (0.0 to 1.0) - * @param {Vector3} [shrunkPoint] - Optional array to store the shrunk point - * @returns {Vector3} The shrunk point [x, y, z] coordinates - */ - function shrinkTowardsPoint(point, center, shrinkFactor) { - let shrunkPoint = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : []; - shrunkPoint[0] = center[0] + shrinkFactor * (point[0] - center[0]); - shrunkPoint[1] = center[1] + shrinkFactor * (point[1] - center[1]); - shrunkPoint[2] = center[2] + shrinkFactor * (point[2] - center[2]); - return shrunkPoint; - } - - /** - * Shrinks a cell towards its center by a shrink factor. - * @param {number[]} cellPointIds - Array of point indices that define the cell - * @param {vtkPoints} inPoints - Input points - * @param {number} shrinkFactor - The shrink factor (0.0 to 1.0) - * @param {Float32Array} newPointsData - Output array to store new point coordinates - * @param {number} outCount - Current index in the output points array - * @returns {Object} Object containing newPointIds array and updated outCount - */ - function shrinkCell(cellPointIds, inPoints, shrinkFactor, newPointsData, outCount) { - const inPts = inPoints.getData(); - const center = [0, 0, 0]; - const newPointIds = []; - const shrunkPoint = [0, 0, 0]; - const currentPoint = [0, 0, 0]; - let nextOutCount = outCount; - const numPoints = cellPointIds.length; - if (numPoints === 0) { - return { - newPointIds, - outCount: nextOutCount - }; - } - if (numPoints === 1) { - // vertex - no shrinking needed, just copy the point - const ptId = cellPointIds[0]; - newPointsData[nextOutCount * 3] = inPts[ptId * 3]; - newPointsData[nextOutCount * 3 + 1] = inPts[ptId * 3 + 1]; - newPointsData[nextOutCount * 3 + 2] = inPts[ptId * 3 + 2]; - newPointIds.push(nextOutCount); - nextOutCount++; - } else if (numPoints === 2) { - // line - shrink towards midpoint - - // Calculate midpoint as center - vtkPolygon.computeCentroid(cellPointIds, inPoints, center); - - // Shrink both points towards center - for (let i = 0; i < 2; i++) { - const ptId = cellPointIds[i]; - currentPoint[0] = inPts[ptId * 3]; - currentPoint[1] = inPts[ptId * 3 + 1]; - currentPoint[2] = inPts[ptId * 3 + 2]; - shrinkTowardsPoint(currentPoint, center, shrinkFactor, shrunkPoint); - newPointsData[nextOutCount * 3] = shrunkPoint[0]; - newPointsData[nextOutCount * 3 + 1] = shrunkPoint[1]; - newPointsData[nextOutCount * 3 + 2] = shrunkPoint[2]; - newPointIds.push(nextOutCount); - nextOutCount++; - } - } else { - // polygon/triangle - shrink towards centroid - vtkPolygon.computeCentroid(cellPointIds, inPoints, center); - - // Shrink each point towards centroid - for (let i = 0; i < numPoints; i++) { - const ptId = cellPointIds[i]; - currentPoint[0] = inPts[ptId * 3]; - currentPoint[1] = inPts[ptId * 3 + 1]; - currentPoint[2] = inPts[ptId * 3 + 2]; - shrinkTowardsPoint(currentPoint, center, shrinkFactor, shrunkPoint); - newPointsData[nextOutCount * 3] = shrunkPoint[0]; - newPointsData[nextOutCount * 3 + 1] = shrunkPoint[1]; - newPointsData[nextOutCount * 3 + 2] = shrunkPoint[2]; - newPointIds.push(nextOutCount); - nextOutCount++; - } - } - return { - newPointIds, - outCount: nextOutCount - }; - } - - // Internal method to process the shrinking - function shrinkData(input, output) { - const inPoints = input.getPoints(); - const inVerts = input.getVerts(); - const inLines = input.getLines(); - const inPolys = input.getPolys(); - const inStrips = input.getStrips(); - const shrinkFactor = model.shrinkFactor; - let numNewPts = 0; - if (inVerts) { - const cellSizes = inVerts.getCellSizes(); - for (let i = 0; i < cellSizes.length; i++) { - numNewPts += cellSizes[i]; - } - } - if (inLines) { - const cellSizes = inLines.getCellSizes(); - for (let i = 0; i < cellSizes.length; i++) { - numNewPts += (cellSizes[i] - 1) * 2; - } - } - if (inPolys) { - const cellSizes = inPolys.getCellSizes(); - for (let i = 0; i < cellSizes.length; i++) { - numNewPts += cellSizes[i]; - } - } - if (inStrips) { - const cellSizes = inStrips.getCellSizes(); - for (let i = 0; i < cellSizes.length; i++) { - numNewPts += (cellSizes[i] - 2) * 3; - } - } - const newPointsData = new Float32Array(numNewPts * 3); - const newPoints = vtkPoints.newInstance(); - newPoints.setData(newPointsData, 3); - const newVerts = vtkCellArray.newInstance(); - const newLines = vtkCellArray.newInstance(); - const newPolys = vtkCellArray.newInstance(); - let outCount = 0; - - // Process vertices - if (inVerts) { - const vertData = inVerts.getData(); - const newVertData = []; - const cellPointIds = []; - for (let i = 0; i < vertData.length;) { - cellPointIds.length = 0; // Clear previous point IDs - const npts = vertData[i]; - for (let j = 1; j <= npts; j++) { - cellPointIds.push(vertData[i + j]); - } - const result = shrinkCell(cellPointIds, inPoints, shrinkFactor, newPointsData, outCount); - outCount = result.outCount; - newVertData.push(npts); - newVertData.push(...result.newPointIds); - i += npts + 1; - } - newVerts.setData(new Uint32Array(newVertData)); - } - - // Process lines - if (inLines) { - const lineData = inLines.getData(); - const newLineData = []; - for (let i = 0; i < lineData.length;) { - const npts = lineData[i]; - - // Process each line segment - for (let j = 0; j < npts - 1; j++) { - const cellPointIds = [lineData[i + j + 1], lineData[i + j + 2]]; - const result = shrinkCell(cellPointIds, inPoints, shrinkFactor, newPointsData, outCount); - outCount = result.outCount; - newLineData.push(2, result.newPointIds[0], result.newPointIds[1]); - } - i += npts + 1; - } - newLines.setData(new Uint32Array(newLineData)); - } - - // Process polygons - if (inPolys) { - const polyData = inPolys.getData(); - const newPolyData = []; - const cellPointIds = []; - for (let i = 0; i < polyData.length;) { - cellPointIds.length = 0; // Clear previous point IDs - const npts = polyData[i]; - for (let j = 1; j <= npts; j++) { - cellPointIds.push(polyData[i + j]); - } - const result = shrinkCell(cellPointIds, inPoints, shrinkFactor, newPointsData, outCount); - outCount = result.outCount; - newPolyData.push(npts); - newPolyData.push(...result.newPointIds); - i += npts + 1; - } - newPolys.setData(new Uint32Array(newPolyData)); - } - - // Process triangle strips (convert to triangles and shrink) - if (inStrips) { - const stripData = inStrips.getData(); - const newPolyData = []; - for (let i = 0; i < stripData.length;) { - const npts = stripData[i]; - for (let j = 0; j < npts - 2; j++) { - const cellPointIds = [stripData[i + j + 1], stripData[i + j + 2], stripData[i + j + 3]]; - const result = shrinkCell(cellPointIds, inPoints, shrinkFactor, newPointsData, outCount); - outCount = result.outCount; - - // Triangle strips alternate the winding order of each triangle as you - // move along the strip. This means that the orientation - // (clockwise/counter-clockwise) flips for every new triangle. To - // ensure consistent face orientation (so normals and rendering are - // correct), we reverse the vertex order for every odd triangle. - // Example strip with vertices [0,1,2,3,4,5] produces these triangles: - // - // 0───2───4 Triangle 0: (0,1,2) [CCW] - // │ ╱ │ ╱ │ Triangle 1: (1,3,2) [CW -> reversed to (2,3,1) for CCW] - // │╱ │╱ │ Triangle 2: (2,3,4) [CCW] - // 1───3───5 Triangle 3: (3,5,4) [CW -> reversed to (4,5,3) for CCW] - const newIds = [...result.newPointIds]; - if (j % 2) { - const tmp = newIds[0]; - newIds[0] = newIds[2]; - newIds[2] = tmp; - } - newPolyData.push(3, newIds[0], newIds[1], newIds[2]); - } - i += npts + 1; - } - if (newPolyData.length > 0) { - const existingPolyData = newPolys.getData(); - const combinedPolyData = new Uint32Array(existingPolyData.length + newPolyData.length); - combinedPolyData.set(existingPolyData); - combinedPolyData.set(newPolyData, existingPolyData.length); - newPolys.setData(combinedPolyData); - } - } - - // Set output - output.setPoints(newPoints); - output.setVerts(newVerts); - output.setLines(newLines); - output.setPolys(newPolys); - - // Copy cell data - output.getCellData().passData(input.getCellData()); - } - publicAPI.requestData = (inData, outData) => { - const input = inData[0]; - const output = outData[0]?.initialize() || vtkPolyData.newInstance(); - if (!input) { - vtkErrorMacro('No input!'); - return; - } - if (!input.getPoints()) { - vtkErrorMacro('Input has no points!'); - return; - } - shrinkData(input, output); - outData[0] = output; - }; - - // Set the shrink factor - publicAPI.setShrinkFactor = shrinkFactor => { - if (shrinkFactor !== model.shrinkFactor) { - model.shrinkFactor = Math.max(0.0, Math.min(1.0, shrinkFactor)); - publicAPI.modified(); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - shrinkFactor: 0.5 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - macro.setGet(publicAPI, model, ['shrinkFactor']); - vtkShrinkPolyData(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkShrinkPolyData'); - -// ---------------------------------------------------------------------------- - -var vtkShrinkPolyData$1 = { - newInstance, - extend -}; - -export { vtkShrinkPolyData$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TransformPolyDataFilter.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TransformPolyDataFilter.d.ts deleted file mode 100644 index 2365b7fa..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TransformPolyDataFilter.d.ts +++ /dev/null @@ -1,75 +0,0 @@ -import { DesiredOutputPrecision } from './../../Common/DataModel/DataSetAttributes'; -import vtkTransform from './../../Common/Transform/Transform'; -import { vtkAlgorithm, vtkObject } from './../../interfaces'; - -export interface ITransformPolyDataFilterInitialValues { - transform?: vtkTransform; - outputPointsPrecision?: DesiredOutputPrecision; -} - -type vtkTransformPolyDataFilterBase = vtkObject & vtkAlgorithm; - -export interface vtkTransformPolyDataFilter - extends vtkTransformPolyDataFilterBase { - /** - * Get the transform used by this filter. - */ - getTransform(): vtkTransform; - - /** - * Get the output points precision. - */ - getOutputPointsPrecision(): DesiredOutputPrecision; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Set the output points precision. - * @param {DesiredOutputPrecision} precision - */ - setOutputPointsPrecision(precision: DesiredOutputPrecision): boolean; - - /** - * Set the transform used by this filter. - * @param {vtkTransform} transform - */ - setTransform(transform: vtkTransform): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkTransformPolyDataFilter characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ITransformPolyDataFilterInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ITransformPolyDataFilterInitialValues -): void; - -/** - * Method used to create a new instance of vtkTransformPolyDataFilter. - * @param {ITransformPolyDataFilterInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ITransformPolyDataFilterInitialValues -): vtkTransformPolyDataFilter; - -/** - * vtkTransformPolyDataFilter is a filter to transform point coordinates and - * associated point and cell normals and vectors. Other point and cell data is - * passed through the filter unchanged. This filter is specialized for polygonal - * data. - */ -export declare const vtkTransformPolyDataFilter: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkTransformPolyDataFilter; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TransformPolyDataFilter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TransformPolyDataFilter.js deleted file mode 100644 index 68baf771..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TransformPolyDataFilter.js +++ /dev/null @@ -1,194 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkPoints from '../../Common/Core/Points.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import { DesiredOutputPrecision } from '../../Common/DataModel/DataSetAttributes/Constants.js'; -import { VtkDataTypes } from '../../Common/Core/DataArray/Constants.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkTransformPolyDataFilter methods -// ---------------------------------------------------------------------------- - -function vtkTransformPolyDataFilter(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkTransformPolyDataFilter'); - - // Internal method to handle the actual transformation - function transformPolyData(input, output) { - if (!model.transform) { - vtkErrorMacro('No transform defined!'); - return false; - } - const inPts = input.getPoints(); - const inPtData = input.getPointData(); - const outPD = output.getPointData(); - const inCellData = input.getCellData(); - const outCD = output.getCellData(); - if (!inPts) { - // Input polydata is empty. This is not an error, the output will be just empty, too. - return true; - } - const numPoints = inPts.getNumberOfPoints(); - - // Get input vectors and normals (points and cells) - const inVectors = inPtData.getVectors(); - const inNormals = inPtData.getNormals(); - const inCellVectors = inCellData.getVectors(); - const inCellNormals = inCellData.getNormals(); - - // Set the desired precision for the points in the output - let pointType = inPts.getDataType(); - if (model.outputPointsPrecision === DesiredOutputPrecision.SINGLE) { - pointType = VtkDataTypes.FLOAT; - } else if (model.outputPointsPrecision === DesiredOutputPrecision.DOUBLE) { - pointType = VtkDataTypes.DOUBLE; - } - - // Create output points with appropriate precision - const outPts = vtkPoints.newInstance({ - dataType: pointType - }); - - // Transform points - const inPtsData = inPts.getData(); - outPts.setNumberOfPoints(numPoints); - const outPtsData = outPts.getData(); - - // Transform vectors if present - let outVectors = null; - if (inVectors) { - outVectors = vtkDataArray.newInstance({ - name: inVectors.getName(), - numberOfComponents: 3, - size: numPoints * 3 - }); - } - - // Transform normals if present - let outNormals = null; - if (inNormals) { - outNormals = vtkDataArray.newInstance({ - name: inNormals.getName(), - numberOfComponents: 3, - size: numPoints * 3 - }); - } - if (inVectors || inNormals) { - model.transform.transformPointsNormalsVectors(inPts, outPts, inNormals, outNormals, inVectors, outVectors); - } else { - model.transform.transformPoints(inPtsData, outPtsData); - } - - // Transform cell vectors if present - let outCellVectors = null; - if (inCellVectors) { - const numCells = inCellVectors.getNumberOfTuples(); - outCellVectors = vtkDataArray.newInstance({ - name: inCellVectors.getName(), - numberOfComponents: 3, - size: numCells * 3 - }); - model.transform.transformVectors(inCellVectors, outCellVectors); - } - - // Transform cell normals if present - let outCellNormals = null; - if (inCellNormals) { - const numCells = inCellNormals.getNumberOfTuples(); - outCellNormals = vtkDataArray.newInstance({ - name: inCellNormals.getName(), - numberOfComponents: 3, - size: numCells * 3 - }); - model.transform.transformNormals(inCellNormals, outCellNormals); - } - - // Set output data - output.setPoints(outPts); - - // Copy cell topology - output.setVerts(input.getVerts()); - output.setLines(input.getLines()); - output.setPolys(input.getPolys()); - output.setStrips(input.getStrips()); - - // Set transformed point data - if (outNormals) { - outPD.setNormals(outNormals); - outPD.copyFieldOff(outNormals.getName()); - } - if (outVectors) { - outPD.setVectors(outVectors); - outPD.copyFieldOff(outVectors.getName()); - } - - // Set transformed cell data - if (outCellNormals) { - outCD.setNormals(outCellNormals); - outCD.copyFieldOff(outCellNormals.getName()); - } - if (outCellVectors) { - outCD.setVectors(outCellVectors); - outCD.copyFieldOff(outCellVectors.getName()); - } - - // Pass through other data - outPD.passData(inPtData); - outCD.passData(inCellData); - return true; - } - publicAPI.requestData = (inData, outData) => { - const input = inData[0]; - const output = outData[0]?.initialize() || vtkPolyData.newInstance(); - if (transformPolyData(input, output)) { - outData[0] = output; - } else { - vtkErrorMacro('TransformPolyDataFilter failed to transform input data.'); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - transform: null, - outputPointsPrecision: DesiredOutputPrecision.DEFAULT -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - - // Set/Get methods - macro.setGet(publicAPI, model, ['transform', 'outputPointsPrecision']); - - // Object specific methods - vtkTransformPolyDataFilter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkTransformPolyDataFilter'); - -// ---------------------------------------------------------------------------- - -var vtkTransformPolyDataFilter$1 = { - newInstance, - extend -}; - -export { vtkTransformPolyDataFilter$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TriangleFilter.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TriangleFilter.d.ts deleted file mode 100644 index 44c1f1d0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TriangleFilter.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; - -/** - * - */ -export interface ITriangleFilterInitialValues { - errorCount?: number; -} - -type vtkTriangleFilterBase = vtkObject & vtkAlgorithm; - -export interface vtkTriangleFilter extends vtkTriangleFilterBase { - /** - * Get the desired precision for the output types. - */ - getErrorCount(): number; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkTriangleFilter characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ITriangleFilterInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ITriangleFilterInitialValues -): void; - -/** - * Method used to create a new instance of vtkTriangleFilter - * @param {ITriangleFilterInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ITriangleFilterInitialValues -): vtkTriangleFilter; - -/** - * vtkTriangleFilter - A filter that generates triangles for larger cells - * - * vtkTriangleFilter is a filter that converts cells wih more than 3 points into - * triangles. - */ -export declare const vtkTriangleFilter: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkTriangleFilter; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TriangleFilter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TriangleFilter.js deleted file mode 100644 index a4bb4005..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TriangleFilter.js +++ /dev/null @@ -1,119 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPolygon from '../../Common/DataModel/Polygon.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; - -const { - vtkWarningMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkTriangleFilter methods -// ---------------------------------------------------------------------------- - -function vtkTriangleFilter(publicAPI, model) { - // Set our classname - model.classHierarchy.push('vtkTriangleFilter'); - - // requestData only supports polys for now. - publicAPI.requestData = (inData, outData) => { - const input = inData[0]; - const points = input.getPoints().getData(); - const polys = input.getPolys().getData(); - const cellsDataType = input.getPolys().getDataType(); - const pointsDataType = input.getPoints().getDataType(); - // Todo: instantiate TypedArray of the final size - const newCells = []; - const newPoints = []; - model.errorCount = 0; - if (polys) { - let npts = 0; - let isLastPointDuplicated = false; - for (let c = 0; c < polys.length; c += npts + 1) { - npts = polys[c]; - // If the first point is duplicated at the end of the cell, ignore it - isLastPointDuplicated = polys[c + 1] === polys[c + npts]; - if (isLastPointDuplicated) { - --npts; - } - - // We can't use cell.map here, it doesn't seems to work properly with Uint32Arrays ... - const cellPoints = []; - cellPoints.length = npts; - for (let i = 0; i < npts; i++) { - const pointId = polys[c + i + 1]; - cellPoints[i] = [points[3 * pointId], points[3 * pointId + 1], points[3 * pointId + 2]]; - } - if (npts === 3) { - const newIdStart = newPoints.length / 3; - newCells.push(3, newIdStart, newIdStart + 1, newIdStart + 2); - newPoints.push(...cellPoints[0], ...cellPoints[1], ...cellPoints[2]); - } else if (npts > 3) { - const polygon = vtkPolygon.newInstance(); - polygon.setPoints(cellPoints); - if (!polygon.triangulate()) { - vtkWarningMacro(`Triangulation failed at cellOffset ${c}`); - ++model.errorCount; - } - const newCellPoints = polygon.getPointArray(); - const numSimplices = Math.floor(newCellPoints.length / 9); - const triPts = []; - triPts.length = 9; - for (let i = 0; i < numSimplices; i++) { - for (let j = 0; j < 9; j++) { - triPts[j] = newCellPoints[9 * i + j]; - } - const newIdStart = newPoints.length / 3; - newCells.push(3, newIdStart, newIdStart + 1, newIdStart + 2); - newPoints.push(...triPts); - } - } - if (isLastPointDuplicated) { - ++npts; - } - } - } - const dataset = outData[0]?.initialize() || vtkPolyData.newInstance(); - dataset.getPoints().setData(macro.newTypedArrayFrom(pointsDataType, newPoints)); - dataset.getPolys().setData(macro.newTypedArrayFrom(cellsDataType, newCells)); - outData[0] = dataset; - }; -} - -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - errorCount: 0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.setGet(publicAPI, model, []); - macro.get(publicAPI, model, ['errorCount']); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - - // Object specific methods - vtkTriangleFilter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkTriangleFilter'); - -// ---------------------------------------------------------------------------- - -var vtkTriangleFilter$1 = { - newInstance, - extend -}; - -export { vtkTriangleFilter$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TubeFilter.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TubeFilter.d.ts deleted file mode 100644 index 59518530..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TubeFilter.d.ts +++ /dev/null @@ -1,257 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { DesiredOutputPrecision } from './../../Common/DataModel/DataSetAttributes'; - -export enum VaryRadius { - VARY_RADIUS_OFF, - VARY_RADIUS_BY_SCALAR, - VARY_RADIUS_BY_VECTOR, - VARY_RADIUS_BY_ABSOLUTE_SCALAR, -} - -export enum GenerateTCoords { - TCOORDS_OFF, - TCOORDS_FROM_NORMALIZED_LENGTH, - TCOORDS_FROM_LENGTH, - TCOORDS_FROM_SCALARS, -} - -/** - * - */ -export interface ITubeFilterInitialValues { - outputPointsPrecision?: DesiredOutputPrecision; - radius?: number; - varyRadius?: VaryRadius; - numberOfSides?: number; - radiusFactor?: number; - defaultNormal?: number[]; - useDefaultNormal?: boolean; - sidesShareVertices?: boolean; - capping?: boolean; - onRatio?: number; - offset?: number; - generateTCoords?: GenerateTCoords; - textureLength?: number; -} - -type vtkTubeFilterBase = vtkObject & vtkAlgorithm; - -export interface vtkTubeFilter extends vtkTubeFilterBase { - /** - * Get the desired precision for the output types. - */ - getOutputPointsPrecision(): DesiredOutputPrecision; - - /** - * Get the minimum tube radius. - */ - getRadius(): number; - - /** - * Get variation of tube radius with scalar or vector values. - */ - getVaryRadius(): VaryRadius; - - /** - * Get the number of sides for the tube. - */ - getNumberOfSides(): number; - - /** - * Get the maximum tube radius in terms of a multiple of the minimum radius. - */ - getRadiusFactor(): number; - - /** - * Get the default normal value. - */ - getDefaultNormal(): number[]; - - /** - * Get useDefaultNormal value. - */ - getUseDefaultNormal(): boolean; - - /** - * Get sidesShareVertices value. - */ - getSidesShareVertices(): boolean; - - /** - * Get whether the capping is enabled or not. - */ - getCapping(): boolean; - - /** - * Get onRatio value. - */ - getOnRatio(): number; - - /** - * Get offset value. - */ - getOffset(): number; - - /** - * Get generateTCoords value. - */ - getGenerateTCoords(): GenerateTCoords; - - /** - * Get textureLength value. - */ - getTextureLength(): number; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Set the desired precision for the output types. - * @param {DesiredOutputPrecision} outputPointsPrecision - */ - setOutputPointsPrecision( - outputPointsPrecision: DesiredOutputPrecision - ): boolean; - - /** - * Set the minimum tube radius (minimum because the tube radius may vary). - * @param {Number} radius - */ - setRadius(radius: number): boolean; - - /** - * Enable or disable variation of tube radius with scalar or vector values. - * @param {VaryRadius} varyRadius - */ - setVaryRadius(varyRadius: VaryRadius): boolean; - - /** - * Set the number of sides for the tube. At a minimum, number of sides is 3. - * @param {Number} numberOfSides - */ - setNumberOfSides(numberOfSides: number): boolean; - - /** - * Set the maximum tube radius in terms of a multiple of the minimum radius. - * @param {Number} radiusFactor - */ - setRadiusFactor(radiusFactor: number): boolean; - - /** - * Set the default normal to use if no normals are supplied. Requires that - * useDefaultNormal is set. - * @param defaultNormal - */ - setDefaultNormal(defaultNormal: number[]): boolean; - - /** - * Control whether to use the defaultNormal. - * @param {Boolean} useDefaultNormal - */ - setUseDefaultNormal(useDefaultNormal: boolean): boolean; - - /** - * Control whether the tube sides should share vertices. This creates - * independent strips, with constant normals so the tube is always faceted - * in appearance. - * @param {Boolean} sidesShareVertices - */ - setSidesShareVertices(sidesShareVertices: boolean): boolean; - - /** - * Enable / disable capping the ends of the tube with polygons. - * @param {Boolean} capping - */ - setCapping(capping: boolean): boolean; - - /** - * Control the stripping of tubes. If OnRatio is greater than 1, then every - * nth tube side is turned on, beginning with the offset side. - * @param {Number} onRatio - */ - setOnRatio(onRatio: number): boolean; - - /** - * Control the stripping of tubes. The offset sets the first tube side that - * is visible. Offset is generally used with onRatio to create nifty - * stripping effects. - * @param {Number} offset - */ - setOffset(offset: number): boolean; - - /** - * Control whether and how texture coordinates are produced. This is useful - * for stripping the tube with length textures, etc. If you use scalars to - * create the texture, the scalars are assumed to be monotonically - * increasing (or decreasing). - * @param {GenerateTCoords} generateTCoords - */ - setGenerateTCoords(generateTCoords: GenerateTCoords): boolean; - - /** - * Control the conversion of units during texture coordinates calculation. - * The texture length indicates what length (whether calculated from scalars - * or length) is mapped to [0, 1) texture space. - * @param {Number} textureLength - */ - setTextureLength(textureLength: number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkTubeFilter characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ITubeFilterInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ITubeFilterInitialValues -): void; - -/** - * Method used to create a new instance of vtkTubeFilter - * @param {ITubeFilterInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ITubeFilterInitialValues -): vtkTubeFilter; - -/** - * vtkTubeFilter - A filter that generates tubes around lines - * - * vtkTubeFilter is a filter that generates a tube around each input line. The - * tubes are made up of triangle strips and rotate around the tube with the - * rotation of the line normals. (If no normals are present, they are computed - * automatically.) The radius of the tube can be set to vary with scalar or - * vector value. If the radius varies with scalar value the radius is linearly - * adjusted. If the radius varies with vector value, a mass flux preserving - * variation is used. The number of sides for the tube also can be specified. - * You can also specify which of the sides are visible. This is useful for - * generating interesting striping effects. Other options include the ability to - * cap the tube and generate texture coordinates. Texture coordinates can be - * used with an associated texture map to create interesting effects such as - * marking the tube with stripes corresponding to length or time. - * - * This filter is typically used to create thick or dramatic lines. Another - * common use is to combine this filter with vtkStreamTracer to generate - * streamtubes. - * - * !!! warning - * The number of tube sides must be greater than 3. - * - * !!! warning - * The input line must not have duplicate points, or normals at points that are - * parallel to the incoming/outgoing line segments. If a line does not meet this - * criteria, then that line is not tubed. - */ -export declare const vtkTubeFilter: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkTubeFilter; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TubeFilter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TubeFilter.js deleted file mode 100644 index 65abf426..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TubeFilter.js +++ /dev/null @@ -1,789 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import { l as normalize, j as cross, n as norm, d as dot, f as distance2BetweenPoints } from '../../Common/Core/Math/index.js'; -import vtkPoints from '../../Common/Core/Points.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import { DesiredOutputPrecision } from '../../Common/DataModel/DataSetAttributes/Constants.js'; -import { VtkDataTypes } from '../../Common/Core/DataArray/Constants.js'; -import Constants from './TubeFilter/Constants.js'; - -const { - VaryRadius, - GenerateTCoords -} = Constants; -const { - vtkDebugMacro, - vtkErrorMacro, - vtkWarningMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkTubeFilter methods -// ---------------------------------------------------------------------------- - -function vtkTubeFilter(publicAPI, model) { - // Set our classname - model.classHierarchy.push('vtkTubeFilter'); - function computeOffset(offset, npts) { - let newOffset = offset; - if (model.sidesShareVertices) { - newOffset += model.numberOfSides * npts; - } else { - // points are duplicated - newOffset += 2 * model.numberOfSides * npts; - } - if (model.capping) { - // cap points are duplicated - newOffset += 2 * model.numberOfSides; - } - return newOffset; - } - function findNextValidSegment(points, pointIds, start) { - const ptId = pointIds[start]; - const ps = points.slice(3 * ptId, 3 * (ptId + 1)); - let end = start + 1; - while (end < pointIds.length) { - const endPtId = pointIds[end]; - const pe = points.slice(3 * endPtId, 3 * (endPtId + 1)); - if (ps !== pe) { - return end - 1; - } - ++end; - } - return pointIds.length; - } - function generateSlidingNormals(pts, lines, normals) { - let firstNormal = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; - let normal = [0.0, 0.0, 1.0]; - const lineData = lines; - // lid = 0; - let npts = lineData[0]; - for (let i = 0; i < lineData.length; i += npts + 1) { - npts = lineData[i]; - if (npts === 1) { - // return arbitrary - normals.setTuple(lineData[i + 1], normal); - } else if (npts > 1) { - let sNextId = 0; - let sPrev = [0, 0, 0]; - const sNext = [0, 0, 0]; - const linePts = lineData.slice(i + 1, i + 1 + npts); - sNextId = findNextValidSegment(pts, linePts, 0); - if (sNextId !== npts) { - // at least one valid segment - let pt1Id = linePts[sNextId]; - let pt1 = pts.slice(3 * pt1Id, 3 * (pt1Id + 1)); - let pt2Id = linePts[sNextId + 1]; - let pt2 = pts.slice(3 * pt2Id, 3 * (pt2Id + 1)); - sPrev = pt2.map((elem, idx) => elem - pt1[idx]); - normalize(sPrev); - - // compute first normal - if (firstNormal) { - normal = firstNormal; - } else { - // find the next valid, non-parallel segment - while (++sNextId < npts) { - sNextId = findNextValidSegment(pts, linePts, sNextId); - if (sNextId !== npts) { - pt1Id = linePts[sNextId]; - pt1 = pts.slice(3 * pt1Id, 3 * (pt1Id + 1)); - pt2Id = linePts[sNextId + 1]; - pt2 = pts.slice(3 * pt2Id, 3 * (pt2Id + 1)); - for (let j = 0; j < 3; ++j) { - sNext[j] = pt2[j] - pt1[j]; - } - normalize(sNext); - - // now the starting normal should simply be the cross product. - // In the following if statement, we check for the case where - // the two segments are parallel, in which case, continue - // searching for the next valid segment - const n = [0.0, 0.0, 0.0]; - cross(sPrev, sNext, n); - if (norm(n) > 1.0e-3) { - normal = n; - sPrev = sNext; - break; - } - } - } - if (sNextId >= npts) { - // only one valid segment - // a little trick to find orthogonal normal - for (let j = 0; j < 3; ++j) { - if (sPrev[j] !== 0.0) { - normal[(j + 2) % 3] = 0.0; - normal[(j + 1) % 3] = 1.0; - normal[j] = -sPrev[(j + 1) % 3] / sPrev[j]; - break; - } - } - } - } - normalize(normal); - - // compute remaining normals - let lastNormalId = 0; - while (++sNextId < npts) { - sNextId = findNextValidSegment(pts, linePts, sNextId); - if (sNextId === npts) { - break; - } - pt1Id = linePts[sNextId]; - pt1 = pts.slice(3 * pt1Id, 3 * (pt1Id + 1)); - pt2Id = linePts[sNextId + 1]; - pt2 = pts.slice(3 * pt2Id, 3 * (pt2Id + 1)); - for (let j = 0; j < 3; ++j) { - sNext[j] = pt2[j] - pt1[j]; - } - normalize(sNext); - - // compute rotation vector - const w = [0.0, 0.0, 0.0]; - cross(sPrev, normal, w); - if (normalize(w) !== 0.0) { - // can't use this segment otherwise - const q = [0.0, 0.0, 0.0]; - cross(sNext, sPrev, q); - if (normalize(q) !== 0.0) { - // can't use this segment otherwise - const f1 = dot(q, normal); - let f2 = 1.0 - f1 * f1; - if (f2 > 0.0) { - f2 = Math.sqrt(f2); - } else { - f2 = 0.0; - } - const c = [0, 0, 0]; - for (let j = 0; j < 3; ++j) { - c[j] = sNext[j] + sPrev[j]; - } - normalize(c); - cross(c, q, w); - cross(sPrev, q, c); - if (dot(normal, c) * dot(w, c) < 0.0) { - f2 *= -1.0; - } - - // insert current normal before updating - for (let j = lastNormalId; j < sNextId; ++j) { - normals.setTuple(linePts[j], normal); - } - lastNormalId = sNextId; - sPrev = sNext; - - // compute next normal - normal = f1 * q + f2 * w; - } - } - } - - // insert last normal for the remaining points - for (let j = lastNormalId; j < npts; ++j) { - normals.setTuple(linePts[j], normal); - } - } else { - // no valid segments - for (let j = 0; j < npts; ++j) { - normals.setTuple(linePts[j], normal); - } - } - } - } - return 1; - } - function generatePoints(offset, npts, pts, inPts, newPts, pd, outPD, newNormals, inScalars, range, inVectors, maxSpeed, inNormals, theta) { - // Use averaged segment to create beveled effect. - const sNext = [0.0, 0.0, 0.0]; - const sPrev = [0.0, 0.0, 0.0]; - const startCapNorm = [0.0, 0.0, 0.0]; - const endCapNorm = [0.0, 0.0, 0.0]; - let p = [0.0, 0.0, 0.0]; - let pNext = [0.0, 0.0, 0.0]; - let s = [0.0, 0.0, 0.0]; - let n = [0.0, 0.0, 0.0]; - const w = [0.0, 0.0, 0.0]; - const nP = [0.0, 0.0, 0.0]; - const normal = [0.0, 0.0, 0.0]; - let sFactor = 1.0; - let ptId = offset; - const vector = []; - for (let j = 0; j < npts; ++j) { - // First point - if (j === 0) { - p = inPts.slice(3 * pts[0], 3 * (pts[0] + 1)); - pNext = inPts.slice(3 * pts[1], 3 * (pts[1] + 1)); - for (let i = 0; i < 3; ++i) { - sNext[i] = pNext[i] - p[i]; - sPrev[i] = sNext[i]; - startCapNorm[i] = -sPrev[i]; - } - normalize(startCapNorm); - } else if (j === npts - 1) { - for (let i = 0; i < 3; ++i) { - sPrev[i] = sNext[i]; - p[i] = pNext[i]; - endCapNorm[i] = sNext[i]; - } - normalize(endCapNorm); - } else { - for (let i = 0; i < 3; ++i) { - p[i] = pNext[i]; - } - pNext = inPts.slice(3 * pts[j + 1], 3 * (pts[j + 1] + 1)); - for (let i = 0; i < 3; ++i) { - sPrev[i] = sNext[i]; - sNext[i] = pNext[i] - p[i]; - } - } - if (normalize(sNext) === 0.0) { - vtkWarningMacro('Coincident points!'); - return 0; - } - for (let i = 0; i < 3; ++i) { - s[i] = (sPrev[i] + sNext[i]) / 2.0; // average vector - } - - n = inNormals.slice(3 * pts[j], 3 * (pts[j] + 1)); - // if s is zero then just use sPrev cross n - if (normalize(s) === 0.0) { - cross(sPrev, n, s); - if (normalize(s) === 0.0) { - vtkDebugMacro('Using alternate bevel vector'); - } - } - cross(s, n, w); - if (normalize(w) === 0.0) { - let msg = 'Bad normal: s = '; - msg += `${s[0]}, ${s[1]}, ${s[2]}`; - msg += ` n = ${n[0]}, ${n[1]}, ${n[2]}`; - vtkWarningMacro(msg); - return 0; - } - cross(w, s, nP); // create orthogonal coordinate system - normalize(nP); - - // Compute a scalar factor based on scalars or vectors - if (inScalars && model.varyRadius === VaryRadius.VARY_RADIUS_BY_SCALAR) { - sFactor = 1.0 + (model.radiusFactor - 1.0) * (inScalars.getComponent(pts[j], 0) - range[0]) / (range[1] - range[0]); - } else if (inVectors && model.varyRadius === VaryRadius.VARY_RADIUS_BY_VECTOR) { - sFactor = Math.sqrt(maxSpeed / norm(inVectors.getTuple(pts[j], vector))); - if (sFactor > model.radiusFactor) { - sFactor = model.radiusFactor; - } - } else if (inScalars && model.varyRadius === VaryRadius.VARY_RADIUS_BY_ABSOLUTE_SCALAR) { - sFactor = inScalars.getComponent(pts[j], 0); - if (sFactor < 0.0) { - vtkWarningMacro('Scalar value less than zero, skipping line'); - return 0; - } - } - - // create points around line - if (model.sidesShareVertices) { - for (let k = 0; k < model.numberOfSides; ++k) { - for (let i = 0; i < 3; ++i) { - normal[i] = w[i] * Math.cos(k * theta) + nP[i] * Math.sin(k * theta); - s[i] = p[i] + model.radius * sFactor * normal[i]; - newPts[3 * ptId + i] = s[i]; - newNormals[3 * ptId + i] = normal[i]; - } - outPD.passData(pd, pts[j], ptId); - ptId++; - } // for each side - } else { - const nRight = [0, 0, 0]; - const nLeft = [0, 0, 0]; - for (let k = 0; k < model.numberOfSides; ++k) { - for (let i = 0; i < 3; ++i) { - // Create duplicate vertices at each point - // and adjust the associated normals so that they are - // oriented with the facets. This preserves the tube's - // polygonal appearance, as if by flat-shading around the tube, - // while still allowing smooth (gouraud) shading along the - // tube as it bends. - normal[i] = w[i] * Math.cos(k * theta) + nP[i] * Math.sin(k * theta); - nRight[i] = w[i] * Math.cos((k - 0.5) * theta) + nP[i] * Math.sin((k - 0.5) * theta); - nLeft[i] = w[i] * Math.cos((k + 0.5) * theta) + nP[i] * Math.sin((k + 0.5) * theta); - s[i] = p[i] + model.radius * sFactor * normal[i]; - newPts[3 * ptId + i] = s[i]; - newNormals[3 * ptId + i] = nRight[i]; - newPts[3 * (ptId + 1) + i] = s[i]; - newNormals[3 * (ptId + 1) + i] = nLeft[i]; - } - outPD.passData(pd, pts[j], ptId + 1); - ptId += 2; - } // for each side - } // else separate vertices - } // for all points in the polyline - - // Produce end points for cap. They are placed at tail end of points. - if (model.capping) { - let numCapSides = model.numberOfSides; - let capIncr = 1; - if (!model.sidesShareVertices) { - numCapSides = 2 * model.numberOfSides; - capIncr = 2; - } - - // the start cap - for (let k = 0; k < numCapSides; k += capIncr) { - s = newPts.slice(3 * (offset + k), 3 * (offset + k + 1)); - for (let i = 0; i < 3; ++i) { - newPts[3 * ptId + i] = s[i]; - newNormals[3 * ptId + i] = startCapNorm[i]; - } - outPD.passData(pd, pts[0], ptId); - ptId++; - } - - // the end cap - let endOffset = offset + (npts - 1) * model.numberOfSides; - if (!model.sidesShareVertices) { - endOffset = offset + 2 * (npts - 1) * model.numberOfSides; - } - for (let k = 0; k < numCapSides; k += capIncr) { - s = newPts.slice(3 * (endOffset + k), 3 * (endOffset + k + 1)); - for (let i = 0; i < 3; ++i) { - newPts[3 * ptId + i] = s[i]; - newNormals[3 * ptId + i] = endCapNorm[i]; - } - outPD.passData(pd, pts[npts - 1], ptId); - ptId++; - } - } // if capping - - return 1; - } - function generateStrips(offset, npts, inCellId, outCellId, inCD, outCD, newStrips) { - let i1 = 0; - let i2 = 0; - let i3 = 0; - let newOutCellId = outCellId; - let outCellIdx = 0; - const newStripsData = newStrips.getData(); - let cellId = 0; - while (outCellIdx < newStripsData.length) { - if (cellId === outCellId) { - break; - } - outCellIdx += newStripsData[outCellIdx] + 1; - cellId++; - } - if (model.sidesShareVertices) { - for (let k = offset; k < model.numberOfSides + offset; k += model.onRatio) { - i1 = k % model.numberOfSides; - i2 = (k + 1) % model.numberOfSides; - newStripsData[outCellIdx++] = npts * 2; - for (let i = 0; i < npts; ++i) { - i3 = i * model.numberOfSides; - newStripsData[outCellIdx++] = offset + i2 + i3; - newStripsData[outCellIdx++] = offset + i1 + i3; - } - outCD.passData(inCD, inCellId, newOutCellId++); - } // for each side of the tube - } else { - for (let k = offset; k < model.numberOfSides + offset; k += model.onRatio) { - i1 = 2 * (k % model.numberOfSides) + 1; - i2 = 2 * ((k + 1) % model.numberOfSides); - // outCellId = newStrips.getNumberOfCells(true); - newStripsData[outCellIdx] = npts * 2; - outCellIdx++; - for (let i = 0; i < npts; ++i) { - i3 = i * 2 * model.numberOfSides; - newStripsData[outCellIdx++] = offset + i2 + i3; - newStripsData[outCellIdx++] = offset + i1 + i3; - } - outCD.passData(inCD, inCellId, newOutCellId++); - } // for each side of the tube - } - - // Take care of capping. The caps are n-sided polygons that can be easily - // triangle stripped. - if (model.capping) { - let startIdx = offset + npts * model.numberOfSides; - let idx = 0; - if (!model.sidesShareVertices) { - startIdx = offset + 2 * npts * model.numberOfSides; - } - - // The start cap - newStripsData[outCellIdx++] = model.numberOfSides; - newStripsData[outCellIdx++] = startIdx; - newStripsData[outCellIdx++] = startIdx + 1; - let k = 0; - for (i1 = model.numberOfSides - 1, i2 = 2, k = 0; k < model.numberOfSides - 2; ++k) { - if (k % 2) { - idx = startIdx + i2; - newStripsData[outCellIdx++] = idx; - i2++; - } else { - idx = startIdx + i1; - newStripsData[outCellIdx++] = idx; - i1--; - } - } - outCD.passData(inCD, inCellId, newOutCellId++); - - // The end cap - reversed order to be consistent with normal - startIdx += model.numberOfSides; - newStripsData[outCellIdx++] = model.numberOfSides; - newStripsData[outCellIdx++] = startIdx; - newStripsData[outCellIdx++] = startIdx + model.numberOfSides - 1; - for (i1 = model.numberOfSides - 2, i2 = 1, k = 0; k < model.numberOfSides - 2; ++k) { - if (k % 2) { - idx = startIdx + i1; - newStripsData[outCellIdx++] = idx; - i1--; - } else { - idx = startIdx + i2; - newStripsData[outCellIdx++] = idx; - i2++; - } - } - outCD.passData(inCD, inCellId, newOutCellId++); - } - return newOutCellId; - } - function generateTCoords(offset, npts, pts, inPts, inScalars, newTCoords) { - let numSides = model.numberOfSides; - if (!model.sidesShareVertices) { - numSides = 2 * model.numberOfSides; - } - let tc = 0.0; - let s0 = 0.0; - let s = 0.0; - const inScalarsData = inScalars.getData(); - if (model.generateTCoords === GenerateTCoords.TCOORDS_FROM_SCALARS) { - s0 = inScalarsData[pts[0]]; - for (let i = 0; i < npts; ++i) { - s = inScalarsData[pts[i]]; - tc = (s - s0) / model.textureLength; - for (let k = 0; k < numSides; ++k) { - const tcy = k / (numSides - 1); - const tcId = 2 * (offset + i * numSides + k); - newTCoords[tcId] = tc; - newTCoords[tcId + 1] = tcy; - } - } - } else if (model.generateTCoords === GenerateTCoords.TCOORDS_FROM_LENGTH) { - let len = 0.0; - const xPrev = inPts.slice(3 * pts[0], 3 * (pts[0] + 1)); - for (let i = 0; i < npts; ++i) { - const x = inPts.slice(3 * pts[i], 3 * (pts[i] + 1)); - len += Math.sqrt(distance2BetweenPoints(x, xPrev)); - tc = len / model.textureLength; - for (let k = 0; k < numSides; ++k) { - const tcy = k / (numSides - 1); - const tcId = 2 * (offset + i * numSides + k); - newTCoords[tcId] = tc; - newTCoords[tcId + 1] = tcy; - } - for (let k = 0; k < 3; ++k) { - xPrev[k] = x[k]; - } - } - } else if (model.generateTCoords === GenerateTCoords.TCOORDS_FROM_NORMALIZED_LENGTH) { - let len = 0.0; - let len1 = 0.0; - let xPrev = inPts.slice(3 * pts[0], 3 * (pts[0] + 1)); - for (let i = 0; i < npts; ++i) { - const x = inPts.slice(3 * pts[i], 3 * (pts[i] + 1)); - len1 += Math.sqrt(distance2BetweenPoints(x, xPrev)); - for (let k = 0; k < 3; ++k) { - xPrev[k] = x[k]; - } - } - xPrev = inPts.slice(3 * pts[0], 3 * (pts[0] + 1)); - for (let i = 0; i < npts; ++i) { - const x = inPts.slice(3 * pts[i], 3 * (pts[i] + 1)); - len += Math.sqrt(distance2BetweenPoints(x, xPrev)); - tc = len / len1; - for (let k = 0; k < numSides; ++k) { - const tcy = k / (numSides - 1); - const tcId = 2 * (offset + i * numSides + k); - newTCoords[tcId] = tc; - newTCoords[tcId + 1] = tcy; - } - for (let k = 0; k < 3; ++k) { - xPrev[k] = x[k]; - } - } - } - - // Capping, set the endpoints as appropriate - if (model.capping) { - const startIdx = offset + npts * numSides; - - // start cap - for (let ik = 0; ik < model.numberOfSides; ++ik) { - const tcId = 2 * (startIdx + ik); - newTCoords[tcId] = 0.0; - newTCoords[tcId + 1] = 0.0; - } - - // end cap - for (let ik = 0; ik < model.numberOfSides; ++ik) { - const tcId = 2 * (startIdx + model.numberOfSides + ik); - newTCoords[tcId] = 0.0; - newTCoords[tcId + 1] = 0.0; - } - } - } - publicAPI.requestData = (inData, outData) => { - // implement requestData - // pass through for now - const output = outData[0]?.initialize() || vtkPolyData.newInstance(); - outData[0] = output; - const input = inData[0]; - if (!input) { - vtkErrorMacro('Invalid or missing input'); - return; - } - - // Allocate output - const inPts = input.getPoints(); - if (!inPts) { - return; - } - const numPts = inPts.getNumberOfPoints(); - if (numPts < 1) { - return; - } - const inLines = input.getLines(); - if (!inLines) { - return; - } - const numLines = inLines.getNumberOfCells(); - if (numLines < 1) { - return; - } - let numNewPts = 0; - let numStrips = 0; - const inLinesData = inLines.getData(); - let npts = inLinesData[0]; - for (let i = 0; i < inLinesData.length; i += npts + 1) { - npts = inLinesData[i]; - numNewPts = computeOffset(numNewPts, npts); - numStrips += (2 * npts + 1) * Math.ceil(model.numberOfSides / model.onRatio); - if (model.capping) { - numStrips += 2 * (model.numberOfSides + 1); - } - } - let pointType = inPts.getDataType(); - if (model.outputPointsPrecision === DesiredOutputPrecision.SINGLE) { - pointType = VtkDataTypes.FLOAT; - } else if (model.outputPointsPrecision === DesiredOutputPrecision.DOUBLE) { - pointType = VtkDataTypes.DOUBLE; - } - const newPts = vtkPoints.newInstance({ - dataType: pointType, - size: numNewPts * 3, - numberOfComponents: 3 - }); - const numNormals = 3 * numNewPts; - const newNormalsData = new Float32Array(numNormals); - const newNormals = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: newNormalsData, - name: 'TubeNormals' - }); - const newStripsData = new Uint32Array(numStrips); - const newStrips = vtkCellArray.newInstance({ - values: newStripsData - }); - let newStripId = 0; - let inNormals = input.getPointData().getNormals(); - let inNormalsData = null; - let generateNormals = false; - if (!inNormals || model.useDefaultNormal) { - inNormalsData = new Float32Array(3 * numPts); - inNormals = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: inNormalsData, - name: 'Normals' - }); - if (model.useDefaultNormal) { - inNormalsData = inNormalsData.map((elem, index) => { - const i = index % 3; - return model.defaultNormal[i]; - }); - } else { - generateNormals = true; - } - } - - // loop over pointData arrays and resize based on numNewPts - const numArrays = input.getPointData().getNumberOfArrays(); - let oldArray = null; - let newArray = null; - for (let i = 0; i < numArrays; i++) { - oldArray = input.getPointData().getArrayByIndex(i); - newArray = vtkDataArray.newInstance({ - name: oldArray.getName(), - dataType: oldArray.getDataType(), - numberOfComponents: oldArray.getNumberOfComponents(), - size: numNewPts * oldArray.getNumberOfComponents() - }); - output.getPointData().addArray(newArray); // concat newArray to end - } - - // loop over cellData arrays and resize based on numNewCells - let numNewCells = inLines.getNumberOfCells() * model.numberOfSides; - if (model.capping) { - numNewCells += 2; - } - const numCellArrays = input.getCellData().getNumberOfArrays(); - for (let i = 0; i < numCellArrays; i++) { - oldArray = input.getCellData().getArrayByIndex(i); - newArray = vtkDataArray.newInstance({ - name: oldArray.getName(), - dataType: oldArray.getDataType(), - numberOfComponents: oldArray.getNumberOfComponents(), - size: numNewCells * oldArray.getNumberOfComponents() - }); - output.getCellData().addArray(newArray); // concat newArray to end - } - - const inScalars = publicAPI.getInputArrayToProcess(0); - let outScalars = null; - let range = []; - if (inScalars) { - // allocate output scalar array - // assuming point scalars for now - outScalars = vtkDataArray.newInstance({ - name: inScalars.getName(), - dataType: inScalars.getDataType(), - numberOfComponents: inScalars.getNumberOfComponents(), - size: numNewPts * inScalars.getNumberOfComponents() - }); - range = inScalars.getRange(); - if (range[1] - range[0] === 0.0) { - if (model.varyRadius === VaryRadius.VARY_RADIUS_BY_SCALAR) { - vtkWarningMacro('Scalar range is zero!'); - } - range[1] = range[0] + 1.0; - } - } - const inVectors = publicAPI.getInputArrayToProcess(1); - let maxSpeed = 0; - if (inVectors) { - maxSpeed = inVectors.getMaxNorm(); - } - const outCD = output.getCellData(); - outCD.copyNormalsOff(); - outCD.passData(input.getCellData()); - const outPD = output.getPointData(); - if (outPD.getNormals() !== null) { - outPD.copyNormalsOff(); - } - if (inScalars && outScalars) { - outPD.setScalars(outScalars); - } - - // TCoords - let newTCoords = null; - if (model.generateTCoords === GenerateTCoords.TCOORDS_FROM_SCALARS && inScalars || model.generateTCoords === GenerateTCoords.TCOORDS_FROM_LENGTH || model.generateTCoords === GenerateTCoords.TCOORDS_FROM_NORMALIZED_LENGTH) { - const newTCoordsData = new Float32Array(2 * numNewPts); - newTCoords = vtkDataArray.newInstance({ - numberOfComponents: 2, - values: newTCoordsData, - name: 'TCoords' - }); - outPD.copyTCoordsOff(); - } - outPD.passData(input.getPointData()); - - // Create points along each polyline that are connected into numberOfSides - // triangle strips. - const theta = 2.0 * Math.PI / model.numberOfSides; - npts = inLinesData[0]; - let offset = 0; - let inCellId = input.getVerts().getNumberOfCells(); - for (let i = 0; i < inLinesData.length; i += npts + 1) { - npts = inLinesData[i]; - const pts = inLinesData.slice(i + 1, i + 1 + npts); - if (npts > 1) { - // if not, skip tubing this line - if (generateNormals) { - const polyLine = inLinesData.slice(i, i + npts + 1); - generateSlidingNormals(inPts.getData(), polyLine, inNormals); - } - } - // generate points - if (generatePoints(offset, npts, pts, inPts.getData(), newPts.getData(), input.getPointData(), outPD, newNormalsData, inScalars, range, inVectors, maxSpeed, inNormalsData, theta)) { - // generate strips for the polyline - newStripId = generateStrips(offset, npts, inCellId, newStripId, input.getCellData(), outCD, newStrips); - // generate texture coordinates for the polyline - if (newTCoords) { - generateTCoords(offset, npts, pts, inPts.getData(), inScalars, newTCoords.getData()); - } - } else { - // skip tubing this line - vtkWarningMacro('Could not generate points'); - } - // lineIdx += npts; - // Compute the new offset for the next polyline - offset = computeOffset(offset, npts); - inCellId++; - } - output.setPoints(newPts); - output.setStrips(newStrips); - output.setPointData(outPD); - outPD.setNormals(newNormals); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - outputPointsPrecision: DesiredOutputPrecision.DEFAULT, - radius: 0.5, - varyRadius: VaryRadius.VARY_RADIUS_OFF, - numberOfSides: 3, - radiusFactor: 10, - defaultNormal: [0, 0, 1], - useDefaultNormal: false, - sidesShareVertices: true, - capping: false, - onRatio: 1, - offset: 0, - generateTCoords: GenerateTCoords.TCOORDS_OFF, - textureLength: 1.0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.setGet(publicAPI, model, ['outputPointsPrecision', 'radius', 'varyRadius', 'numberOfSides', 'radiusFactor', 'defaultNormal', 'useDefaultNormal', 'sidesShareVertices', 'capping', 'onRatio', 'offset', 'generateTCoords', 'textureLength']); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - - // Object specific methods - vtkTubeFilter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkTubeFilter'); - -// ---------------------------------------------------------------------------- - -var vtkTubeFilter$1 = { - newInstance, - extend -}; - -export { vtkTubeFilter$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TubeFilter/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TubeFilter/Constants.js deleted file mode 100644 index 9e89366c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/TubeFilter/Constants.js +++ /dev/null @@ -1,20 +0,0 @@ -const VaryRadius = { - VARY_RADIUS_OFF: 0, - // default - VARY_RADIUS_BY_SCALAR: 1, - VARY_RADIUS_BY_VECTOR: 2, - VARY_RADIUS_BY_ABSOLUTE_SCALAR: 3 -}; -const GenerateTCoords = { - TCOORDS_OFF: 0, - // default - TCOORDS_FROM_NORMALIZED_LENGTH: 1, - TCOORDS_FROM_LENGTH: 2, - TCOORDS_FROM_SCALARS: 3 -}; -var Constants = { - VaryRadius, - GenerateTCoords -}; - -export { GenerateTCoords, VaryRadius, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/WarpScalar.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/WarpScalar.js deleted file mode 100644 index 07cbf391..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/WarpScalar.js +++ /dev/null @@ -1,126 +0,0 @@ -import vtk from '../../vtk.js'; -import { m as macro } from '../../macros2.js'; -import vtkPoints from '../../Common/Core/Points.js'; - -const { - vtkDebugMacro, - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkWarpScalar methods -// ---------------------------------------------------------------------------- - -function vtkWarpScalar(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWarpScalar'); - publicAPI.requestData = (inData, outData) => { - // implement requestData - const input = inData[0]; - if (!input) { - vtkErrorMacro('Invalid or missing input'); - return 1; - } - - // First, copy the input to the output as a starting point - // output->CopyStructure( input ); - - const inPts = input.getPoints(); - const pd = input.getPointData(); - const inNormals = pd.getNormals(); - const inScalars = publicAPI.getInputArrayToProcess(0); - if (!inPts || !inScalars) { - vtkDebugMacro('No data to warp', !!inPts, !!inScalars); - outData[0] = inData[0]; - return 1; - } - const numPts = inPts.getNumberOfPoints(); - let pointNormal = null; - const normal = [0, 0, 1]; - if (inNormals && !model.useNormal) { - pointNormal = (id, array) => [array.getData()[id * 3], array.getData()[id * 3 + 1], array.getData()[id * 3 + 2]]; - vtkDebugMacro('Using data normals'); - } else if (publicAPI.getXyPlane()) { - pointNormal = (id, array) => normal; - vtkDebugMacro('Using x-y plane normal'); - } else { - pointNormal = (id, array) => model.normal; - vtkDebugMacro('Using Normal instance variable'); - } - const newPtsData = new Float32Array(numPts * 3); - const inPoints = inPts.getData(); - let ptOffset = 0; - let n = [0, 0, 1]; - let s = 1; - - // Loop over all points, adjusting locations - const scalarDataArray = inScalars.getData(); - const nc = inScalars.getNumberOfComponents(); - for (let ptId = 0; ptId < numPts; ++ptId) { - ptOffset = ptId * 3; - n = pointNormal(ptId, inNormals); - if (model.xyPlane) { - s = inPoints[ptOffset + 2]; - } else { - // Use component 0 of array if there are multiple components - s = scalarDataArray[ptId * nc]; - } - newPtsData[ptOffset] = inPoints[ptOffset] + model.scaleFactor * s * n[0]; - newPtsData[ptOffset + 1] = inPoints[ptOffset + 1] + model.scaleFactor * s * n[1]; - newPtsData[ptOffset + 2] = inPoints[ptOffset + 2] + model.scaleFactor * s * n[2]; - } - const newDataSet = outData[0] && outData[0] !== inData[0] ? outData[0].initialize() : vtk({ - vtkClass: input.getClassName() - }); - newDataSet.shallowCopy(input); - const points = vtkPoints.newInstance(); - points.setData(newPtsData, 3); - newDataSet.setPoints(points); - outData[0] = newDataSet; - return 1; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - scaleFactor: 1, - useNormal: false, - normal: [0, 0, 1], - xyPlane: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - - // Generate macros for properties - macro.setGet(publicAPI, model, ['scaleFactor', 'useNormal', 'xyPlane']); - macro.setGetArray(publicAPI, model, ['normal'], 3); - - // Object specific methods - vtkWarpScalar(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWarpScalar'); - -// ---------------------------------------------------------------------------- - -var vtkWarpScalar$1 = { - newInstance, - extend -}; - -export { vtkWarpScalar$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/WindowedSincPolyDataFilter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/WindowedSincPolyDataFilter.js deleted file mode 100644 index 760ae0fa..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/General/WindowedSincPolyDataFilter.js +++ /dev/null @@ -1,578 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import { b as vtkMath } from '../../Common/Core/Math/index.js'; -import { AttributeTypes } from '../../Common/DataModel/DataSetAttributes/Constants.js'; -import vtkPoints from '../../Common/Core/Points.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkTriangle from '../../Common/DataModel/Triangle.js'; - -const VertexType = { - VTK_SIMPLE_VERTEX: 0, - VTK_FIXED_VERTEX: 1, - VTK_FEATURE_EDGE_VERTEX: 2, - VTK_BOUNDARY_EDGE_VERTEX: 3 -}; - -// ---------------------------------------------------------------------------- -// vtkWindowedSincPolyDataFilter methods -// ---------------------------------------------------------------------------- - -function vtkWindowedSincPolyDataFilter(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWindowedSincPolyDataFilter'); - publicAPI.vtkWindowedSincPolyDataFilterExecute = (inPts, inputPolyData, output) => { - if (!inPts || model.numberOfIterations <= 0) { - return inPts; - } - const inPtsData = inPts.getData(); - const inVerts = inputPolyData.getVerts().getData(); - const inLines = inputPolyData.getLines().getData(); - const inPolys = inputPolyData.getPolys().getData(); - const inStrips = inputPolyData.getStrips().getData(); - const cosFeatureAngle = Math.cos(vtkMath.radiansFromDegrees(model.featureAngle)); - const cosEdgeAngle = Math.cos(vtkMath.radiansFromDegrees(model.edgeAngle)); - const numPts = inPts.getNumberOfPoints(); - - // Perform topological analysis. What we're going to do is build a connectivity - // array of connected vertices. The outcome will be one of three - // classifications for a vertex: VTK_SIMPLE_VERTEX, VTK_FIXED_VERTEX. or - // VTK_EDGE_VERTEX. Simple vertices are smoothed using all connected - // vertices. FIXED vertices are never smoothed. Edge vertices are smoothed - // using a subset of the attached vertices. - const verts = new Array(numPts); - for (let i = 0; i < numPts; ++i) { - verts[i] = { - type: VertexType.VTK_SIMPLE_VERTEX, - edges: null - }; - } - - // check vertices first. Vertices are never smoothed_-------------- - let npts = 0; - for (let i = 0; i < inVerts.length; i += npts + 1) { - npts = inVerts[i]; - const pts = inVerts.slice(i + 1, i + 1 + npts); - for (let j = 0; j < pts.length; ++j) { - verts[pts[j]].type = VertexType.VTK_FIXED_VERTEX; - } - } - - // now check lines. Only manifold lines can be smoothed------------ - for (let i = 0; i < inLines.length; i += npts + 1) { - npts = inLines[i]; - const pts = inLines.slice(i + 1, i + 1 + npts); - - // Check for closed loop which are treated specially. Basically the - // last point is ignored (set to fixed). - const closedLoop = pts[0] === pts[npts - 1] && npts > 3; - for (let j = 0; j < npts; ++j) { - if (verts[pts[j]].type === VertexType.VTK_SIMPLE_VERTEX) { - // First point - if (j === 0) { - if (!closedLoop) { - verts[pts[0]].type = VertexType.VTK_FIXED_VERTEX; - } else { - verts[pts[0]].type = VertexType.VTK_FEATURE_EDGE_VERTEX; - verts[pts[0]].edges = [pts[npts - 2], pts[1]]; - } - } - // Last point - else if (j === npts - 1 && !closedLoop) { - verts[pts[j]].type = VertexType.VTK_FIXED_VERTEX; - } - // In between point // is edge vertex (unless already edge vertex!) - else { - verts[pts[j]].type = VertexType.VTK_FEATURE_EDGE_VERTEX; - verts[pts[j]].edges = [pts[j - 1], pts[closedLoop && j === npts - 2 ? 0 : j + 1]]; - } - } // if simple vertex - - // Vertex has been visited before, need to fix it. Special case - // when working on closed loop. - else if (verts[pts[j]].type === VertexType.VTK_FEATURE_EDGE_VERTEX && !(closedLoop && j === npts - 1)) { - verts[pts[j]].type = VertexType.VTK_FIXED_VERTEX; - verts[pts[j]].edges = null; - } - } // for all points in this line - } // for all lines - - // now polygons and triangle strips------------------------------- - const numPolys = inPolys.length; - const numStrips = inStrips.length; - if (numPolys > 0 || numStrips > 0) { - const inMesh = vtkPolyData.newInstance(); - inMesh.setPoints(inputPolyData.getPoints()); - inMesh.setPolys(inputPolyData.getPolys()); - const mesh = inMesh; - let neighbors = []; - let nei = 0; - // const numNeiPts = 0; - const normal = []; - const neiNormal = []; - - /* TODO: Add vtkTriangleFilter - if ( (numStrips = inputPolyData.getStrips().GetNumberOfCells()) > 0 ) - { // convert data to triangles - inMesh.setStrips(inputPolyData.getStrips()); - const toTris = vtkTriangleFilter.newInstance(); - toTris.setInputData(inMesh); - toTris.update(); - mesh = toTris.getOutput(); - } - */ - - mesh.buildLinks(); // to do neighborhood searching - const polys = mesh.getPolys().getData(); - let cellId = 0; - for (let c = 0; c < polys.length; c += npts + 1, ++cellId) { - npts = polys[c]; - const pts = polys.slice(c + 1, c + 1 + npts); - for (let i = 0; i < npts; ++i) { - const p1 = pts[i]; - const p2 = pts[(i + 1) % npts]; - if (verts[p1].edges === null) { - verts[p1].edges = []; - } - if (verts[p2].edges == null) { - verts[p2].edges = []; - } - neighbors = mesh.getCellEdgeNeighbors(cellId, p1, p2); - const numNei = neighbors.length; // neighbors->GetNumberOfIds(); - - let edge = VertexType.VTK_SIMPLE_VERTEX; - if (numNei === 0) { - edge = VertexType.VTK_BOUNDARY_EDGE_VERTEX; - } else if (numNei >= 2) { - // non-manifold case, check nonmanifold smoothing state - if (!model.nonManifoldSmoothing) { - // check to make sure that this edge hasn't been marked already - let j = 0; - for (; j < numNei; ++j) { - if (neighbors[j] < cellId) { - break; - } - } - if (j >= numNei) { - edge = VertexType.VTK_FEATURE_EDGE_VERTEX; - } - } - /* eslint-disable no-cond-assign */ - } else if (numNei === 1 && (nei = neighbors[0]) > cellId) { - if (model.featureEdgeSmoothing) { - // TODO: support polygons - // vtkPolygon::ComputeNormal(inPts,npts,pts,normal); - vtkTriangle.computeNormal(inPts.getPoint(pts[0]), inPts.getPoint(pts[1]), inPts.getPoint(pts[2]), normal); - const { - cellPointIds - } = mesh.getCellPoints(nei); - // vtkPolygon::ComputeNormal(inPts,numNeiPts,neiPts,neiNormal); - vtkTriangle.computeNormal(inPts.getPoint(cellPointIds[0]), inPts.getPoint(cellPointIds[1]), inPts.getPoint(cellPointIds[2]), neiNormal); - if (vtkMath.dot(normal, neiNormal) <= cosFeatureAngle) { - edge = VertexType.VTK_FEATURE_EDGE_VERTEX; - } - } - } // a visited edge; skip rest of analysis - else { - /* eslint-disable no-continue */ - continue; - } - if (edge && verts[p1].type === VertexType.VTK_SIMPLE_VERTEX) { - verts[p1].edges = [p2]; - verts[p1].type = edge; - } else if (edge && verts[p1].type === VertexType.VTK_BOUNDARY_EDGE_VERTEX || edge && verts[p1].type === VertexType.VTK_FEATURE_EDGE_VERTEX || !edge && verts[p1].type === VertexType.VTK_SIMPLE_VERTEX) { - verts[p1].edges.push(p2); - if (verts[p1].type && edge === VertexType.VTK_BOUNDARY_EDGE_VERTEX) { - verts[p1].type = VertexType.VTK_BOUNDARY_EDGE_VERTEX; - } - } - if (edge && verts[p2].type === VertexType.VTK_SIMPLE_VERTEX) { - verts[p2].edges = [p1]; - verts[p2].type = edge; - } else if (edge && verts[p2].type === VertexType.VTK_BOUNDARY_EDGE_VERTEX || edge && verts[p2].type === VertexType.VTK_FEATURE_EDGE_VERTEX || !edge && verts[p2].type === VertexType.VTK_SIMPLE_VERTEX) { - verts[p2].edges.push(p1); - if (verts[p2].type && edge === VertexType.VTK_BOUNDARY_EDGE_VERTEX) { - verts[p2].type = VertexType.VTK_BOUNDARY_EDGE_VERTEX; - } - } - } - } - } // if strips or polys - for (let i = 0; i < numPts; ++i) { - if (verts[i].type === VertexType.VTK_SIMPLE_VERTEX) ; else if (verts[i].type === VertexType.VTK_FIXED_VERTEX) ; else if (verts[i].type === VertexType.VTK_FEATURE_EDGE_VERTEX || verts[i].type === VertexType.VTK_BOUNDARY_EDGE_VERTEX) { - // see how many edges; if two, what the angle is - - if (!model.boundarySmoothing && verts[i].type === VertexType.VTK_BOUNDARY_EDGE_VERTEX) { - verts[i].type = VertexType.VTK_FIXED_VERTEX; - } else if ((npts = verts[i].edges.length) !== 2) { - // can only smooth edges on 2-manifold surfaces - verts[i].type = VertexType.VTK_FIXED_VERTEX; - } // check angle between edges - else { - const x1 = inPts.getPoint(verts[i].edges[0]); - const x2 = inPts.getPoint(i); - const x3 = inPts.getPoint(verts[i].edges[1]); - const l1 = [0, 0, 0]; - const l2 = [0, 0, 0]; - for (let k = 0; k < 3; ++k) { - l1[k] = x2[k] - x1[k]; - l2[k] = x3[k] - x2[k]; - } - if (vtkMath.normalize(l1) >= 0.0 && vtkMath.normalize(l2) >= 0.0 && vtkMath.dot(l1, l2) < cosEdgeAngle) { - verts[i].type = VertexType.VTK_FIXED_VERTEX; - } else if (verts[i].type === VertexType.VTK_FEATURE_EDGE_VERTEX) ; else ; - } // if along edge - } // if edge vertex - } // for all points - - // Perform Windowed Sinc function interpolation - // - // console.log('Beginning smoothing iterations...'); - // need 4 vectors of points - let zero = 0; - let one = 1; - let two = 2; - const three = 3; - const newPts = []; - newPts.push(vtkPoints.newInstance()); - newPts[zero].setNumberOfPoints(numPts); - newPts.push(vtkPoints.newInstance()); - newPts[one].setNumberOfPoints(numPts); - newPts.push(vtkPoints.newInstance()); - newPts[two].setNumberOfPoints(numPts); - newPts.push(vtkPoints.newInstance()); - newPts[three].setNumberOfPoints(numPts); - - // Get the center and length of the input dataset - const inCenter = vtkBoundingBox.getCenter(inputPolyData.getBounds()); - const inLength = vtkBoundingBox.getDiagonalLength(inputPolyData.getBounds()); - if (!model.normalizeCoordinates) { - // initialize to old coordinates - // for (let i = 0; i < numPts; ++i) { - // newPts[zero].setPoint(i, inPts.subarray(i)); - // } - const copy = macro.newTypedArray(newPts[zero].getDataType(), inPtsData); - newPts[zero].setData(copy, 3); - } else { - // center the data and scale to be within unit cube [-1, 1] - // initialize to old coordinates - const normalizedPoint = [0, 0, 0]; - for (let i = 0; i < numPts; ++i) { - inPts.getPoint(i, normalizedPoint); - normalizedPoint[0] = (normalizedPoint[0] - inCenter[0]) / inLength; - normalizedPoint[1] = (normalizedPoint[1] - inCenter[1]) / inLength; - normalizedPoint[2] = (normalizedPoint[2] - inCenter[2]) / inLength; - newPts[zero].setPoint(i, ...normalizedPoint); - } - } - - // Smooth with a low pass filter defined as a windowed sinc function. - // Taubin describes this methodology is the IBM tech report RC-20404 - // (#90237, dated 3/12/96) "Optimal Surface Smoothing as Filter Design" - // G. Taubin, T. Zhang and G. Golub. (Zhang and Golub are at Stanford - // University) - - // The formulas here follow the notation of Taubin's TR, i.e. - // newPts[zero], newPts[one], etc. - - // calculate weights and filter coefficients - const kPb = model.passBand; // reasonable default for kPb in [0, 2] is 0.1 - const thetaPb = Math.acos(1.0 - 0.5 * kPb); // thetaPb in [0, M_PI/2] - - // vtkDebugMacro(<< "thetaPb = " << thetaPb); - - const w = new Array(model.numberOfIterations + 1); - const c = new Array(model.numberOfIterations + 1); - const cprime = new Array(model.numberOfIterations + 1); - const zerovector = [0, 0, 0]; - - // Calculate the weights and the Chebychev coefficients c. - // - - // Windowed sinc function weights. This is for a Hamming window. Other - // windowing function could be implemented here. - for (let i = 0; i <= model.numberOfIterations; ++i) { - w[i] = 0.54 + 0.46 * Math.cos(i * Math.PI / (model.numberOfIterations + 1)); - } - - // Calculate the optimal sigma (offset or fudge factor for the filter). - // This is a Newton-Raphson Search. - let fKpb = 0; - let fPrimeKpb = 0; - let done = false; - let sigma = 0.0; - for (let j = 0; !done && j < 500; ++j) { - // Chebyshev coefficients - c[0] = w[0] * (thetaPb + sigma) / Math.PI; - for (let i = 1; i <= model.numberOfIterations; ++i) { - c[i] = 2.0 * w[i] * Math.sin(i * (thetaPb + sigma)) / (i * Math.PI); - } - - // calculate the Chebyshev coefficients for the derivative of the filter - cprime[model.numberOfIterations] = 0.0; - cprime[model.numberOfIterations - 1] = 0.0; - if (model.numberOfIterations > 1) { - cprime[model.numberOfIterations - 2] = 2.0 * (model.numberOfIterations - 1) * c[model.numberOfIterations - 1]; - } - for (let i = model.numberOfIterations - 3; i >= 0; --i) { - cprime[i] = cprime[i + 2] + 2.0 * (i + 1) * c[i + 1]; - } - // Evaluate the filter and its derivative at kPb (note the discrepancy - // of calculating the c's based on thetaPb + sigma and evaluating the - // filter at kPb (which is equivalent to thetaPb) - fKpb = 0.0; - fPrimeKpb = 0.0; - fKpb += c[0]; - fPrimeKpb += cprime[0]; - for (let i = 1; i <= model.numberOfIterations; ++i) { - if (i === 1) { - fKpb += c[i] * (1.0 - 0.5 * kPb); - fPrimeKpb += cprime[i] * (1.0 - 0.5 * kPb); - } else { - fKpb += c[i] * Math.cos(i * Math.acos(1.0 - 0.5 * kPb)); - fPrimeKpb += cprime[i] * Math.cos(i * Math.acos(1.0 - 0.5 * kPb)); - } - } - // if fKpb is not close enough to 1.0, then adjust sigma - if (model.numberOfIterations > 1) { - if (Math.abs(fKpb - 1.0) >= 1e-3) { - sigma -= (fKpb - 1.0) / fPrimeKpb; // Newton-Rhapson (want f=1) - } else { - done = true; - } - } else { - // Order of Chebyshev is 1. Can't use Newton-Raphson to find an - // optimal sigma. Object will most likely shrink. - done = true; - sigma = 0.0; - } - } - if (Math.abs(fKpb - 1.0) >= 1e-3) { - console.log('An optimal offset for the smoothing filter could not be found. Unpredictable smoothing/shrinkage may result.'); - } - const x = [0, 0, 0]; - const y = [0, 0, 0]; - const deltaX = [0, 0, 0]; - const xNew = [0, 0, 0]; - const x1 = [0, 0, 0]; - const x2 = [0, 0, 0]; - - // first iteration - for (let i = 0; i < numPts; ++i) { - if (verts[i].edges != null && (npts = verts[i].edges.length) > 0) { - // point is allowed to move - newPts[zero].getPoint(i, x); // use current points - deltaX[0] = 0.0; - deltaX[1] = 0.0; - deltaX[2] = 0.0; - - // calculate the negative of the laplacian - // for all connected points - for (let j = 0; j < npts; ++j) { - newPts[zero].getPoint(verts[i].edges[j], y); - for (let k = 0; k < 3; ++k) { - deltaX[k] += (x[k] - y[k]) / npts; - } - } - // newPts[one] = newPts[zero] - 0.5 newPts[one] - for (let k = 0; k < 3; ++k) { - deltaX[k] = x[k] - 0.5 * deltaX[k]; - } - newPts[one].setPoint(i, ...deltaX); - if (verts[i].type === VertexType.VTK_FIXED_VERTEX) { - newPts[zero].getPoint(i, deltaX); - } else { - // calculate newPts[three] = c0 newPts[zero] + c1 newPts[one] - for (let k = 0; k < 3; ++k) { - deltaX[k] = c[0] * x[k] + c[1] * deltaX[k]; - } - } - newPts[three].setPoint(i, ...deltaX); - } // if can move point - else { - // point is not allowed to move, just use the old point... - // (zero out the Laplacian) - newPts[one].setPoint(i, ...zerovector); - newPts[zero].getPoint(i, deltaX); - newPts[three].setPoint(i, ...deltaX); - } - } // for all points - - // for the rest of the iterations - const pX0 = [0, 0, 0]; - const pX1 = [0, 0, 0]; - const pX3 = [0, 0, 0]; - let iterationNumber = 2; - for (; iterationNumber <= model.numberOfIterations; iterationNumber++) { - for (let i = 0; i < numPts; ++i) { - npts = verts[i].edges != null ? verts[i].edges.length : 0; - if (npts > 0) { - // point is allowed to move - newPts[zero].getPoint(i, pX0); // use current points - newPts[one].getPoint(i, pX1); - deltaX[0] = 0.0; - deltaX[1] = 0.0; - deltaX[2] = 0.0; - - // calculate the negative laplacian of x1 - for (let j = 0; j < npts; ++j) { - newPts[one].getPoint(verts[i].edges[j], y); - for (let k = 0; k < 3; ++k) { - deltaX[k] += (pX1[k] - y[k]) / npts; - } - } // for all connected points - - // Taubin: x2 = (x1 - x0) + (x1 - x2) - for (let k = 0; k < 3; ++k) { - deltaX[k] = pX1[k] - pX0[k] + pX1[k] - deltaX[k]; - } - newPts[two].setPoint(i, ...deltaX); - - // smooth the vertex (x3 = x3 + cj x2) - newPts[three].getPoint(i, pX3); - for (let k = 0; k < 3; ++k) { - xNew[k] = pX3[k] + c[iterationNumber] * deltaX[k]; - } - if (verts[i].type !== VertexType.VTK_FIXED_VERTEX) { - newPts[three].setPoint(i, ...xNew); - } - } // if can move point - else { - // point is not allowed to move, just use the old point... - // (zero out the Laplacian) - newPts[one].setPoint(i, ...zerovector); - newPts[two].setPoint(i, ...zerovector); - } - } // for all points - - // update the pointers. three is always three. all other pointers - // shift by one and wrap. - zero = (1 + zero) % 3; - one = (1 + one) % 3; - two = (1 + two) % 3; - } // for all iterations or until converge - - // move the iteration count back down so that it matches the - // actual number of iterations executed - --iterationNumber; - - // set zero to three so the correct set of positions is outputted - zero = three; - - // console.log('Performed', iterationNumber, 'smoothing passes'); - // if we scaled the data down to the unit cube, then scale data back - // up to the original space - if (model.normalizeCoordinates) { - // Re-position the coordinated - const repositionedPoint = [0, 0, 0]; - for (let i = 0; i < numPts; ++i) { - newPts[zero].getPoint(i, repositionedPoint); - for (let j = 0; j < 3; ++j) { - repositionedPoint[j] = repositionedPoint[j] * inLength + inCenter[j]; - } - newPts[zero].setPoint(i, ...repositionedPoint); - } - } - if (model.generateErrorScalars) { - const newScalars = new Float32Array(numPts); - for (let i = 0; i < numPts; ++i) { - inPts.getPoint(i, x1); - newPts[zero].getPoint(i, x2); - newScalars[i] = Math.sqrt(Math.distance2BetweenPoints(x1, x2)); - } - const newScalarsArray = vtkDataArray.newInstance({ - numberOfComponents: 1, - values: newScalars - }); - const idx = output.getPointData().addArray(newScalarsArray); - output.getPointData().setActiveAttribute(idx, AttributeTypes.SCALARS); - } - if (model.generateErrorVectors) { - const newVectors = new Float32Array(3 * numPts); - for (let i = 0; i < numPts; ++i) { - inPts.getPoint(i, x1); - newPts[zero].getPoint(i, x2); - for (let j = 0; j < 3; ++j) { - newVectors[3 * i + j] = x2[j] - x1[j]; - } - } - const newVectorsArray = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: newVectors - }); - output.getPointData().setVectors(newVectorsArray); - } - return newPts[zero]; - }; - publicAPI.requestData = (inData, outData) => { - const numberOfInputs = publicAPI.getNumberOfInputPorts(); - if (!numberOfInputs) { - return; - } - const input = inData[0]; - if (!input) { - return; - } - const output = outData[0]?.initialize() || vtkPolyData.newInstance(); - const outputPoints = publicAPI.vtkWindowedSincPolyDataFilterExecute(input.getPoints(), input, output); - output.setPointData(input.getPointData()); - output.setCellData(input.getCellData()); - output.setFieldData(input.getFieldData()); - output.setPoints(outputPoints); - output.setVerts(input.getVerts()); - output.setLines(input.getLines()); - output.setPolys(input.getPolys()); - output.setStrips(input.getStrips()); - outData[0] = output; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- -const DEFAULT_VALUES = { - numberOfIterations: 20, - passBand: 0.1, - featureAngle: 45.0, - edgeAngle: 15.0, - featureEdgeSmoothing: 0, - boundarySmoothing: 1, - nonManifoldSmoothing: 0, - generateErrorScalars: 0, - generateErrorVectors: 0, - normalizeCoordinates: 0 -}; - -// ---------------------------------------------------------------------------- -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - /* Make this a VTK object */ - - macro.obj(publicAPI, model); - - /* Also make it an algorithm with one input and one output */ - - macro.algo(publicAPI, model, 1, 1); - - /* Setters */ - macro.setGet(publicAPI, model, ['numberOfIterations', 'passBand', 'featureAngle', 'edgeAngle', 'featureEdgeSmoothing', 'boundarySmoothing', 'nonManifoldSmoothing', 'generateErrorScalars', 'generateErrorVectors', 'normalizeCoordinates']); - - /* Object specific methods */ - - vtkWindowedSincPolyDataFilter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWindowedSincPolyDataFilter'); - -// ---------------------------------------------------------------------------- - -var vtkWindowedSincPolyDataFilter$1 = { - newInstance, - extend -}; - -export { vtkWindowedSincPolyDataFilter$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources.js deleted file mode 100644 index c0eac6e9..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources.js +++ /dev/null @@ -1,43 +0,0 @@ -import vtkArcSource from './Sources/ArcSource.js'; -import vtkArrowSource from './Sources/ArrowSource.js'; -import vtkCircleSource from './Sources/CircleSource.js'; -import vtkConcentricCylinderSource from './Sources/ConcentricCylinderSource.js'; -import vtkConeSource from './Sources/ConeSource.js'; -import vtkCubeSource from './Sources/CubeSource.js'; -import vtkCursor3D from './Sources/Cursor3D.js'; -import vtkCylinderSource from './Sources/CylinderSource.js'; -import vtkDiskSource from './Sources/DiskSource.js'; -import vtkEllipseArcSource from './Sources/EllipseArcSource.js'; -import vtkImageGridSource from './Sources/ImageGridSource.js'; -import vtkLineSource from './Sources/LineSource.js'; -import vtkPlaneSource from './Sources/PlaneSource.js'; -import vtkPlatonicSolidSource from './Sources/PlatonicSolidSource.js'; -import vtkPointSource from './Sources/PointSource.js'; -import vtkRTAnalyticSource from './Sources/RTAnalyticSource.js'; -import vtkSLICSource from './Sources/SLICSource.js'; -import vtkSphereSource from './Sources/SphereSource.js'; -import vtkTorusSource from './Sources/TorusSource.js'; - -var Sources = { - vtkArcSource, - vtkArrowSource, - vtkCircleSource, - vtkConcentricCylinderSource, - vtkConeSource, - vtkCubeSource, - vtkCursor3D, - vtkCylinderSource, - vtkDiskSource, - vtkEllipseArcSource, - vtkImageGridSource, - vtkLineSource, - vtkPlaneSource, - vtkPlatonicSolidSource, - vtkPointSource, - vtkRTAnalyticSource, - vtkSLICSource, - vtkSphereSource, - vtkTorusSource -}; - -export { Sources as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ArcSource.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ArcSource.d.ts deleted file mode 100644 index 119460db..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ArcSource.d.ts +++ /dev/null @@ -1,244 +0,0 @@ -import { DesiredOutputPrecision } from './../../Common/DataModel/DataSetAttributes'; -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { Vector3 } from './../../types'; - -/** - * - */ -export interface IArcSourceInitialValues { - point1?: Vector3; - point2?: Vector3; - center?: Vector3; - normal?: Vector3; - polarVector?: Vector3; - angle?: number; - resolution?: number; - negative?: boolean; - useNormalAndAngle?: boolean; - outputPointsPrecision?: DesiredOutputPrecision; -} - -type vtkArcSourceBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkArcSource extends vtkArcSourceBase { - /** - * Get the angle of the arc. - */ - getAngle(): number; - - /** - * Get the center of the arc. - */ - getCenter(): Vector3; - - /** - * Get the center of the arc by reference. - */ - getCenterByReference(): Vector3; - - /** - * Get the first point of the arc. - */ - getPoint1(): Vector3; - - /** - * Get the first point of the arc by reference. - */ - getPoint1ByReference(): Vector3; - - /** - * Get the second point of the arc. - */ - getPoint2(): Vector3; - - /** - * Get the second point of the arc by reference. - */ - getPoint2ByReference(): Vector3; - - /** - * Get the normal vector of the arc. - */ - getNormal(): Vector3; - - /** - * Get the normal vector of the arc by reference. - */ - getNormalByReference(): Vector3; - - /** - * Get the polar vector of the arc. - */ - getPolarVector(): Vector3; - - /** - * Get the polar vector of the arc by reference. - */ - getPolarVectorByReference(): Vector3; - - /** - * Get the resolution of the arc. - */ - getResolution(): number; - - /** - * Get the negative flag of the arc. - */ - getNegative(): boolean; - - /** - * Get the output points precision. - */ - getOutputPointsPrecision(): DesiredOutputPrecision; - - /** - * Get the use normal and angle flag. - */ - getUseNormalAndAngle(): boolean; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Set the first point of the arc. - * @param {Vector3} point1 The first point's coordinates. - */ - setPoint1(point1: Vector3): boolean; - - /** - * Set the first point of the arc by reference. - * @param {Vector3} point1 The first point's coordinates. - */ - setPoint1From(point1: Vector3): boolean; - - /** - * Set the second point of the arc. - * @param {Vector3} point2 The second point's coordinates. - */ - setPoint2(point2: Vector3): boolean; - - /** - * Set the second point of the arc by reference. - * @param {Vector3} point2 The second point's coordinates. - */ - setPoint2From(point2: Vector3): boolean; - - /** - * Set the center of the arc. - * @param {Vector3} center The center point's coordinates. - */ - setCenter(center: Vector3): boolean; - - /** - * Set the center of the arc by reference. - * @param {Vector3} center The center point's coordinates. - */ - setCenterFrom(center: Vector3): boolean; - - /** - * Set the normal vector of the arc. - * @param {Vector3} normal The normal vector's coordinates. - */ - setNormal(normal: Vector3): boolean; - - /** - * Set the normal vector of the arc by reference. - * @param {Vector3} normal The normal vector's coordinates. - */ - setNormalFrom(normal: Vector3): boolean; - - /** - * Set the polar vector of the arc. - * @param {Vector3} polarVector The polar vector's coordinates. - */ - setPolarVector(polarVector: Vector3): boolean; - - /** - * Set the polar vector of the arc by reference. - * @param {Vector3} polarVector The polar vector's coordinates. - */ - setPolarVectorFrom(polarVector: Vector3): boolean; - - /** - * Set the angle of the arc. - * @param {Number} angle The angle in radians. - */ - setAngle(angle: number): boolean; - - /** - * Set the resolution of the arc. - * @param {Number} resolution The number of points in the arc. - */ - setResolution(resolution: number): boolean; - - /** - * Set the negative flag of the arc. - * @param {Boolean} negative If true, the arc will be drawn in the negative direction. - */ - setNegative(negative: boolean): boolean; - - /** - * Set the use normal and angle flag. - * @param {Boolean} useNormalAndAngle If true, the normal and angle will be used to define the arc. - */ - setUseNormalAndAngle(useNormalAndAngle: boolean): boolean; - - /** - * Set the output points precision. - * @param {DesiredOutputPrecision} precision The desired output precision. - */ - setOutputPointsPrecision(precision: DesiredOutputPrecision): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkArcSource characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IArcSourceInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IArcSourceInitialValues -): void; - -/** - * Method used to create a new instance of vtkArcSource. - * @param {IArcSourceInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IArcSourceInitialValues -): vtkArcSource; - -/** - * vtkArcSource is a source object that creates an arc defined by two endpoints - * and a center. The number of segments composing the polyline is controlled by - * setting the object resolution. - * - * @example - * ```js - * import vtkArcSource from '@kitware/vtk.js/Filters/Sources/ArcSource'; - * - * const arc = vtkArcSource.newInstance(); - * const polydata = arc.getOutputData(); - * ``` - */ -export declare const vtkArcSource: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkArcSource; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ArcSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ArcSource.js deleted file mode 100644 index cc62538a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ArcSource.js +++ /dev/null @@ -1,138 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import { b as vtkMath } from '../../Common/Core/Math/index.js'; -import vtkPoints from '../../Common/Core/Points.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import { DesiredOutputPrecision } from '../../Common/DataModel/DataSetAttributes/Constants.js'; - -const { - VtkDataTypes -} = vtkDataArray; - -// ---------------------------------------------------------------------------- -// vtkArcSource methods -// ---------------------------------------------------------------------------- - -function vtkArcSource(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkArcSource'); - publicAPI.requestData = (inData, outData) => { - const numLines = model.resolution; - const numPts = model.resolution + 1; - const tc = [0.0, 0.0]; - const output = outData[0]?.initialize() || vtkPolyData.newInstance(); - let angle = 0.0; - let radius = 0.5; - const perpendicular = [0, 0, 0]; - const v1 = [0, 0, 0]; - if (model.useNormalAndAngle) { - angle = vtkMath.radiansFromDegrees(model.angle); - v1[0] = model.polarVector[0]; - v1[1] = model.polarVector[1]; - v1[2] = model.polarVector[2]; - vtkMath.cross(model.normal, model.polarVector, perpendicular); - radius = vtkMath.normalize(v1); - } else { - vtkMath.subtract(model.point1, model.center, v1); - const v2 = [0, 0, 0]; - vtkMath.subtract(model.point2, model.center, v2); - const normal = [0, 0, 0]; - vtkMath.cross(v1, v2, normal); - vtkMath.cross(normal, v1, perpendicular); - const dotProduct = vtkMath.dot(v1, v2) / (vtkMath.norm(v1) * vtkMath.norm(v2)); - angle = Math.acos(dotProduct); - if (model.negative) { - angle -= 2.0 * Math.PI; - } - radius = vtkMath.normalize(v1); - } - const angleInc = angle / model.resolution; - vtkMath.normalize(perpendicular); - let pointType = 0; - if (model.outputPointsPrecision === DesiredOutputPrecision.SINGLE) { - pointType = VtkDataTypes.FLOAT; - } else if (model.outputPointsPrecision === DesiredOutputPrecision.DOUBLE) { - pointType = VtkDataTypes.DOUBLE; - } - const points = vtkPoints.newInstance({ - dataType: pointType - }); - points.setNumberOfPoints(numPts); - const tcoords = vtkDataArray.newInstance({ - numberOfComponents: 2, - size: numPts * 2, - dataType: VtkDataTypes.FLOAT, - name: 'TextureCoordinates' - }); - const lines = vtkCellArray.newInstance(); - lines.allocate(numLines); - let theta = 0.0; - for (let i = 0; i <= model.resolution; ++i, theta += angleInc) { - const cosine = Math.cos(theta); - const sine = Math.sin(theta); - const p = [model.center[0] + cosine * radius * v1[0] + sine * radius * perpendicular[0], model.center[1] + cosine * radius * v1[1] + sine * radius * perpendicular[1], model.center[2] + cosine * radius * v1[2] + sine * radius * perpendicular[2]]; - tc[0] = i / model.resolution; - tc[1] = 0.0; - points.setPoint(i, ...p); - tcoords.setTuple(i, tc); - } - const pointIds = Array.from({ - length: numPts - }, (_, i) => i); - lines.insertNextCell(pointIds); - output.setPoints(points); - output.getPointData().setTCoords(tcoords); - output.setLines(lines); - outData[0] = output; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - point1: [0.0, 0.5, 0.0], - point2: [0.5, 0.0, 0.0], - center: [0.0, 0.0, 0.0], - normal: [0.0, 0.0, 1.0], - polarVector: [1.0, 0.0, 0.0], - angle: 90.0, - resolution: 6, - negative: false, - useNormalAndAngle: false, - outputPointsPrecision: DesiredOutputPrecision.SINGLE -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Ensure resolution is at least 1 - if (model.resolution < 1) { - model.resolution = 1; - } - - // Build VTK API - macro.obj(publicAPI, model); - macro.algo(publicAPI, model, 0, 1); - macro.setGet(publicAPI, model, ['resolution', 'angle', 'negative', 'useNormalAndAngle', 'outputPointsPrecision']); - macro.setGetArray(publicAPI, model, ['point1', 'point2', 'center', 'normal', 'polarVector'], 3); - vtkArcSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkArcSource'); - -// ---------------------------------------------------------------------------- - -var vtkArcSource$1 = { - newInstance, - extend -}; - -export { vtkArcSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/Arrow2DSource.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/Arrow2DSource.d.ts deleted file mode 100644 index 0962ab17..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/Arrow2DSource.d.ts +++ /dev/null @@ -1,191 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { Vector3 } from './../../types'; - -export enum ShapeType { - TRIANGLE, - STAR, - ARROW_4, - ARROW_6, -} - -/** - * - */ -export interface IArrow2DSourceInitialValues { - base?: number; - height?: number; - width?: number; - thickness?: number; - center?: Vector3; - pointType?: string; - origin?: Vector3; - direction?: Vector3; -} - -type vtkArrow2DSourceBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkArrow2DSource extends vtkArrow2DSourceBase { - /** - * Get the cap the base of the cone with a polygon. - * @default 0 - */ - getBase(): number; - - /** - * Get the center of the cone. - * @default [0, 0, 0] - */ - getCenter(): Vector3; - - /** - * Get the center of the cone. - */ - getCenterByReference(): Vector3; - - /** - * Get the orientation vector of the cone. - * @default [1.0, 0.0, 0.0] - */ - getDirection(): Vector3; - - /** - * Get the orientation vector of the cone. - */ - getDirectionByReference(): Vector3; - - /** - * Get the height of the cone. - * @default 1.0 - */ - getHeight(): number; - - /** - * Get the base thickness of the cone. - * @default 0.5 - */ - getThickness(): number; - - /** - * Get the number of facets used to represent the cone. - * @default 6 - */ - getWidth(): number; - - /** - * Expose methods - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Turn on/off whether to cap the base of the cone with a polygon. - * @param {Number} base The value of the - */ - setBase(base: number): boolean; - - /** - * Set the center of the cone. - * It is located at the middle of the axis of the cone. - * !!! warning - * This is not the center of the base of the cone! - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - * @default [0, 0, 0] - */ - setCenter(x: number, y: number, z: number): boolean; - - /** - * Set the center of the cone. - * It is located at the middle of the axis of the cone. - * !!! warning - * This is not the center of the base of the cone! - * @param {Vector3} center The center of the cone coordinates. - * @default [0, 0, 0] - */ - setCenterFrom(center: Vector3): boolean; - - /** - * Set the direction for the arrow. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setDirection(x: number, y: number, z: number): boolean; - - /** - * Set the direction for the arrow 2D. - * @param {Vector3} direction The direction coordinates. - */ - setDirection(direction: Vector3): boolean; - - /** - * Set the direction for the arrow 2D. - * @param {Vector3} direction The direction coordinates. - */ - setDirectionFrom(direction: Vector3): boolean; - - /** - * Set the height of the cone. - * This is the height along the cone in its specified direction. - * @param {Number} height The height value. - */ - setHeight(height: number): boolean; - - /** - * Set the base thickness of the cone. - * @param {Number} thickness The thickness value. - */ - setThickness(thickness: number): boolean; - - /** - * Set the number of facets used to represent the cone. - * @param {Number} width The width value. - */ - setWidth(width: number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkArrow2DSource characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IArrow2DSourceInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IArrow2DSourceInitialValues -): void; - -/** - * Method used to create a new instance of vtkArrow2DSource. - * @param {IArrow2DSourceInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IArrow2DSourceInitialValues -): vtkArrow2DSource; - -/** - * vtkArrow2DSource creates a cone centered at a specified point and pointing in a specified direction. - * (By default, the center is the origin and the direction is the x-axis.) Depending upon the resolution of this object, - * different representations are created. If resolution=0 a line is created; if resolution=1, a single triangle is created; - * if resolution=2, two crossed triangles are created. For resolution > 2, a 3D cone (with resolution number of sides) - * is created. It also is possible to control whether the bottom of the cone is capped with a (resolution-sided) polygon, - * and to specify the height and thickness of the cone. - */ -export declare const vtkArrow2DSource: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkArrow2DSource; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/Arrow2DSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/Arrow2DSource.js deleted file mode 100644 index b5514e90..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/Arrow2DSource.js +++ /dev/null @@ -1,164 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import Constants from './Arrow2DSource/Constants.js'; - -const { - ShapeType -} = Constants; - -// ---------------------------------------------------------------------------- -// vtkArrow2DSource methods -// ---------------------------------------------------------------------------- - -function vtkStarSource(publicAPI, model, dataset) { - const points = macro.newTypedArray(model.pointType, 10 * 3); - const edges = new Uint32Array(11); - edges[0] = 10; - for (let i = 0; i < 10; i++) { - const radius = i % 2 === 1 ? model.height : model.height * 0.4; - points[3 * i + 0] = radius * Math.cos((2 * i - 1) * Math.PI / 10); - points[3 * i + 1] = radius * Math.sin((2 * i - 1) * Math.PI / 10); - points[3 * i + 2] = 0; - edges[1 + i] = i; - } - dataset.getPoints().setData(points, 3); - dataset.getPolys().setData(edges, 1); - return dataset; -} -function vtk6PointsArrow(publicAPI, model, dataset) { - const points = macro.newTypedArray(model.pointType, 6 * 3); - const thickOp = model.height * 0.5 * model.thickness; - const offsetOp = model.height * 0.5 - thickOp; - const baseOffsetOp = (model.height * 0.9 + thickOp - offsetOp - (model.height * 0.5 - thickOp - offsetOp)) * (1 - model.base); - points[0] = model.width / 2 * -1 - thickOp; - points[1] = model.height / 4 - offsetOp - baseOffsetOp; - points[2] = 0.0; - points[3] = 0.0; - points[4] = model.height * 0.9 + thickOp - offsetOp - baseOffsetOp; - points[5] = 0.0; - points[6] = model.width / 2 + thickOp; - points[7] = model.height / 4 - offsetOp - baseOffsetOp; - points[8] = 0.0; - points[9] = model.width / 3; - points[10] = model.height * 0.1 - thickOp - offsetOp - baseOffsetOp; - points[11] = 0.0; - points[12] = 0.0; - points[13] = model.height * 0.5 - thickOp - offsetOp - baseOffsetOp; - points[14] = 0.0; - points[15] = model.width / 3 * -1; - points[16] = model.height * 0.1 - thickOp - offsetOp - baseOffsetOp; - points[17] = 0.0; - - // prettier-ignore - const cells = Uint8Array.from([3, 0, 1, 5, 3, 1, 4, 5, 3, 1, 4, 3, 3, 1, 2, 3]); - dataset.getPoints().setData(points, 3); - dataset.getPolys().setData(cells, 1); - return dataset; -} -function vtk4PointsArrow(publicAPI, model, dataset) { - const points = macro.newTypedArray(model.pointType, 4 * 3); - const thickOp = model.height / 3 * model.thickness; - const offsetOp = model.height / 3 - thickOp; - const baseOffsetOp = (model.height - offsetOp - (model.height / 3 - thickOp - offsetOp)) * (1 - model.base); - points[0] = model.width / 2 * -1; - points[1] = 0.0 - offsetOp - baseOffsetOp; - points[2] = 0.0; - points[3] = 0.0; - points[4] = model.height - offsetOp - baseOffsetOp; - points[5] = 0.0; - points[6] = model.width / 2; - points[7] = 0.0 - offsetOp - baseOffsetOp; - points[8] = 0.0; - points[9] = 0.0; - points[10] = model.height / 3 - thickOp - offsetOp - baseOffsetOp; - points[11] = 0.0; - const cells = Uint8Array.from([3, 0, 1, 3, 3, 1, 2, 3]); - dataset.getPoints().setData(points, 3); - dataset.getPolys().setData(cells, 1); - return dataset; -} -function vtkTriangleSource(publicAPI, model, dataset) { - const points = macro.newTypedArray(model.pointType, 3 * 3); - const baseOffsetOp = model.height * (1 - model.base); - points[0] = model.width / 2 * -1; - points[1] = 0.0 - baseOffsetOp; - points[2] = 0.0; - points[3] = 0.0; - points[4] = model.height - baseOffsetOp; - points[5] = 0.0; - points[6] = model.width / 2; - points[7] = 0.0 - baseOffsetOp; - points[8] = 0.0; - const cells = Uint8Array.from([3, 0, 1, 2]); - dataset.getPoints().setData(points, 3); - dataset.getPolys().setData(cells, 1); - return dataset; -} -function vtkArrow2DSource(publicAPI, model) { - const shapeToSource = { - [ShapeType.TRIANGLE]: vtkTriangleSource, - [ShapeType.STAR]: vtkStarSource, - [ShapeType.ARROW_4]: vtk4PointsArrow, - [ShapeType.ARROW_6]: vtk6PointsArrow - }; - publicAPI.requestData = (inData, outData) => { - const dataset = outData[0]?.initialize() || vtkPolyData.newInstance(); - outData[0] = shapeToSource[model.shape](publicAPI, model, dataset); - vtkMatrixBuilder.buildFromRadian().translate(...model.center).rotateFromDirections([1, 0, 0], model.direction).apply(outData[0].getPoints().getData()); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -/** - * height modifies the size of the source along x axis - * width modifies the size of the source along y axis - - * thickness modifies the shape of the source, which becomes wider on - * y axis - - * base modifies the position which lowers the source on x axis for 0 and moves - * the source up on x axis for 1 - */ -function defaultValues(initialValues) { - return { - base: 0, - center: [0, 0, 0], - height: 1.0, - direction: [1, 0, 0], - pointType: 'Float64Array', - thickness: 0, - width: 1.0, - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['height', 'width', 'thickness', 'base']); - macro.setGetArray(publicAPI, model, ['center', 'direction'], 3); - macro.algo(publicAPI, model, 0, 1); - vtkArrow2DSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkArrow2DSource'); - -// ---------------------------------------------------------------------------- - -var vtkArrow2DSource$1 = { - newInstance, - extend -}; - -export { vtkArrow2DSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/Arrow2DSource/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/Arrow2DSource/Constants.js deleted file mode 100644 index deab4cab..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/Arrow2DSource/Constants.js +++ /dev/null @@ -1,11 +0,0 @@ -const ShapeType = { - TRIANGLE: 'triangle', - STAR: 'star', - ARROW_4: 'arrow4points', - ARROW_6: 'arrow6points' -}; -var Constants = { - ShapeType -}; - -export { ShapeType, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ArrowSource.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ArrowSource.d.ts deleted file mode 100644 index 55c54cd1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ArrowSource.d.ts +++ /dev/null @@ -1,197 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { Vector3 } from './../../types'; - -export enum ShapeType { - TRIANGLE, - STAR, - ARROW_4, - ARROW_6, -} - -/** - * - */ -export interface IArrowSourceInitialValues { - tipResolution?: number; - tipRadius?: number; - tipLength?: number; - shaftResolution?: number; - shaftRadius?: number; - invert?: boolean; - direction?: Vector3; - pointType?: string; -} - -type vtkArrowSourceBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkArrowSource extends vtkArrowSourceBase { - /** - * Get the orientation vector of the cone. - * @default [1.0, 0.0, 0.0] - */ - getDirection(): Vector3; - - /** - * Get the orientation vector of the cone. - */ - getDirectionByReference(): Vector3; - - /** - * - * @default false - */ - getInvert(): boolean; - - /** - * Get the resolution of the shaft. - * @default 0.03 - */ - getShaftRadius(): number; - - /** - * Get the resolution of the shaft. - * @default 6 - */ - getShaftResolution(): number; - - /** - * Get the length of the tip. - * @default 0.35 - */ - getTipLength(): number; - - /** - * Get the radius of the tip. - * @default 0.1 - */ - getTipRadius(): number; - - /** - * Get the resolution of the tip. - * @default 6 - */ - getTipResolution(): number; - - /** - * Expose methods - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Set the direction for the arrow. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setDirection(x: number, y: number, z: number): boolean; - - /** - * Set the direction for the arrow. - * @param {Vector3} direction The direction coordinates. - */ - setDirection(direction: Vector3): boolean; - - /** - * Set the direction for the arrow. - * @param {Vector3} direction The direction coordinates. - */ - setDirectionFrom(direction: Vector3): boolean; - - /** - * Inverts the arrow direction. - * When set to true, base is at [1, 0, 0] while the tip is at [0, 0, 0]. - * @param {Booolean} invert - */ - setInvert(invert: boolean): boolean; - - /** - * Set the radius of the shaft. - * @param {Number} shaftRadius - */ - setShaftRadius(shaftRadius: number): boolean; - - /** - * Set the resolution of the shaft. - * @param {Number} shaftResolution - */ - setShaftResolution(shaftResolution: number): boolean; - - /** - * Set the length of the tip. - * @param {Number} tipLength - */ - setTipLength(tipLength: number): boolean; - - /** - * Set the radius of the tip. - * @param {Number} tipRadius - */ - setTipRadius(tipRadius: number): boolean; - - /** - * Set the resolution of the tip. - * @param {Number} tipResolution - */ - setTipResolution(tipResolution: number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkArrowSource characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IArrowSourceInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IArrowSourceInitialValues -): void; - -/** - * Method used to create a new instance of vtkArrowSource. - * @param {IArrowSourceInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IArrowSourceInitialValues -): vtkArrowSource; - -/** - * vtkArrowSource was intended to be used as the source for a glyph. - * The shaft base is always at (0,0,0). The arrow tip is always at (1,0,0). - * If "Invert" is true, then the ends are flipped i.e. tip is at (0,0,0) while base is at (1, 0, 0). - * The resolution of the cone and shaft can be set and default to 6. - * The radius of the cone and shaft can be set and default to 0.03 and 0.1. - * The length of the tip can also be set, and defaults to 0.35. - * - * @example - * ```js - * import vtkArrowSource from '@kitware/vtk.js/Filters/Sources/ArrowSource'; - * - * const arrow = vtkArrowSource.newInstance({ - * tipResolution: 6, - * tipRadius: 0.1, - * tipLength: 0.35, - * shaftResolution: 6, - * shaftRadius: 0.03, - * invert: false, - * direction: [1.0, 0.0, 0.0]}); - * const polydata = arrow.getOutputData(); - * ``` - */ -export declare const vtkArrowSource: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkArrowSource; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ArrowSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ArrowSource.js deleted file mode 100644 index d0656fc6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ArrowSource.js +++ /dev/null @@ -1,100 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkAppendPolyData from '../General/AppendPolyData.js'; -import vtkConeSource from './ConeSource.js'; -import vtkCylinderSource from './CylinderSource.js'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; - -// ---------------------------------------------------------------------------- -// vtkArrowSource methods -// ---------------------------------------------------------------------------- - -function vtkArrowSource(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkArrowSource'); - publicAPI.requestData = (inData, outData) => { - const cylinder = vtkCylinderSource.newInstance({ - capping: true - }); - cylinder.setResolution(model.shaftResolution); - cylinder.setRadius(model.shaftRadius); - cylinder.setHeight(1.0 - model.tipLength); - cylinder.setCenter(0, (1.0 - model.tipLength) * 0.5, 0.0); - const cylinderPD = cylinder.getOutputData(); - const cylinderPts = cylinderPD.getPoints().getData(); - const cylinderNormals = cylinderPD.getPointData().getNormals().getData(); - - // Apply transformation to the cylinder - vtkMatrixBuilder.buildFromDegree().rotateZ(-90).apply(cylinderPts).apply(cylinderNormals); - const cone = vtkConeSource.newInstance(); - cone.setResolution(model.tipResolution); - cone.setHeight(model.tipLength); - cone.setRadius(model.tipRadius); - const conePD = cone.getOutputData(); - const conePts = conePD.getPoints().getData(); - - // Apply transformation to the cone - vtkMatrixBuilder.buildFromRadian().translate(1.0 - model.tipLength * 0.5, 0.0, 0.0).apply(conePts); - const append = vtkAppendPolyData.newInstance(); - append.setInputData(cylinderPD); - append.addInputData(conePD); - const appendPD = append.getOutputData(); - const appendPts = appendPD.getPoints().getData(); - // Center the arrow about [0, 0, 0] - vtkMatrixBuilder.buildFromRadian().translate(-0.5 + model.tipLength * 0.5, 0.0, 0.0).apply(appendPts); - if (model.invert) { - // Apply transformation to the arrow - vtkMatrixBuilder.buildFromRadian().rotateFromDirections([1, 0, 0], model.direction).scale(-1, -1, -1).apply(appendPts); - - // Update output - outData[0] = appendPD; - } else { - // Apply transformation to the arrow - vtkMatrixBuilder.buildFromRadian().rotateFromDirections([1, 0, 0], model.direction).scale(1, 1, 1).apply(appendPts); - - // Update output - outData[0] = append.getOutputData(); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - tipResolution: 6, - tipRadius: 0.1, - tipLength: 0.35, - shaftResolution: 6, - shaftRadius: 0.03, - invert: false, - direction: [1.0, 0.0, 0.0], - pointType: 'Float64Array' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['tipResolution', 'tipRadius', 'tipLength', 'shaftResolution', 'shaftRadius', 'invert']); - macro.setGetArray(publicAPI, model, ['direction'], 3); - macro.algo(publicAPI, model, 0, 1); - vtkArrowSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkArrowSource'); - -// ---------------------------------------------------------------------------- - -var vtkArrowSource$1 = { - newInstance, - extend -}; - -export { vtkArrowSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/CircleSource.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/CircleSource.d.ts deleted file mode 100644 index 68c77388..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/CircleSource.d.ts +++ /dev/null @@ -1,179 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { Vector3 } from './../../types'; - -/** - * - */ -export interface ICircleSourceInitialValues { - radius?: number; - resolution?: number; - center?: Vector3; - pointType?: string; - lines?: boolean; - face?: boolean; -} - -type vtkCircleSourceBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkCircleSource extends vtkCircleSourceBase { - /** - * Get the center of the cone. - * @default [0, 0, 0] - */ - getCenter(): Vector3; - - /** - * Get the center of the cone. - */ - getCenterByReference(): Vector3; - - /** - * Get the orientation vector of the cone. - * @default [1.0, 0.0, 0.0] - */ - getDirection(): Vector3; - - /** - * Get the orientation vector of the cone. - */ - getDirectionByReference(): Vector3; - - /** - * - * @default true - */ - getFace(): boolean; - - /** - * - * @default false - */ - getLines(): boolean; - - /** - * Get the radius of the cylinder base. - * @default 1.0 - */ - getRadius(): number; - - /** - * Get the number of facets used to define cylinder. - * @default 6 - */ - getResolution(): number; - - /** - * Expose methods - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Set the direction for the circle. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setDirection(x: number, y: number, z: number): boolean; - - /** - * Set the direction for the circle. - * @param {Vector3} direction The direction coordinates. - */ - setDirection(direction: Vector3): boolean; - - /** - * Set the direction for the circle. - * @param {Vector3} direction The direction coordinates. - */ - setDirectionFrom(direction: Vector3): boolean; - - /** - * Set the center of the circle. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - * @default [0, 0, 0] - */ - setCenter(x: number, y: number, z: number): boolean; - - /** - * Set the center of the circle. - * @param {Vector3} center - * @default [0, 0, 0] - */ - setCenterFrom(center: Vector3): boolean; - - /** - * - * @param {Boolean} face - */ - setFace(face: boolean): boolean; - - /** - * - * @param {Boolean} lines - */ - setLines(lines: boolean): boolean; - - /** - * Set the radius of the circle. - * @param {Number} radius The radius of the circle. - */ - setRadius(radius: number): boolean; - - /** - * Set the resolution of the circle. - * @param {Number} resolution The resolution of the circle. - */ - setResolution(resolution: number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkCircleSource characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ICircleSourceInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ICircleSourceInitialValues -): void; - -/** - * Method used to create a new instance of vtkCircleSource. - * @param {ICircleSourceInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ICircleSourceInitialValues -): vtkCircleSource; - -/** -/** - * vtkCircleSource creates a circle. - * - * @example - * ```js - * import vtkCircleSource from '@kitware/vtk.js/Filters/Sources/CircleSource'; - * - * const circle = vtkCircleSource.newInstance({ radius: 1, resolution: 80 }); - * const polydata = circle.getOutputData(); - * ``` - */ -export declare const vtkCircleSource: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkCircleSource; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/CircleSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/CircleSource.js deleted file mode 100644 index 815c6efb..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/CircleSource.js +++ /dev/null @@ -1,94 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; -import { x as multiplyScalar } from '../../Common/Core/Math/index.js'; - -// ---------------------------------------------------------------------------- -// vtkCircleSource methods -// ---------------------------------------------------------------------------- - -function vtkCircleSource(publicAPI, model) { - // Set our classname - model.classHierarchy.push('vtkCircleSource'); - publicAPI.requestData = (inData, outData) => { - const dataset = outData[0]?.initialize() || vtkPolyData.newInstance(); - - // Points - const points = macro.newTypedArray(model.pointType, model.resolution * 3); - - // Lines/cells - // [# of points in line, vert_index_0, vert_index_1, ..., vert_index_0] - const edges = new Uint32Array(model.resolution + 2); - edges[0] = model.resolution + 1; - - // generate polydata - const angle = 2.0 * Math.PI / model.resolution; - for (let i = 0; i < model.resolution; i++) { - const x = model.center[0]; - const y = model.radius * Math.cos(i * angle) + model.center[1]; - const z = model.radius * Math.sin(i * angle) + model.center[2]; - points.set([x, y, z], i * 3); - edges[i + 1] = i; - } - - // connect endpoints - edges[edges.length - 1] = edges[1]; - dataset.getPoints().setData(points, 3); - if (model.lines) { - dataset.getLines().setData(edges, 1); - } - if (model.face) { - dataset.getPolys().setData(edges, 1); - } - - // translate an eventual center different to [0, 0, 0] to ensure rotation is correct - vtkMatrixBuilder.buildFromRadian().translate(...model.center).rotateFromDirections([1, 0, 0], model.direction).translate(...multiplyScalar([...model.center], -1)).apply(points); - - // Update output - outData[0] = dataset; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - return { - face: true, - center: [0, 0, 0], - lines: false, - direction: [1, 0, 0], - pointType: 'Float64Array', - radius: 1.0, - resolution: 6, - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['radius', 'resolution', 'lines', 'face']); - macro.setGetArray(publicAPI, model, ['center', 'direction'], 3); - macro.algo(publicAPI, model, 0, 1); - vtkCircleSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCircleSource'); - -// ---------------------------------------------------------------------------- - -var vtkCircleSource$1 = { - newInstance, - extend -}; - -export { vtkCircleSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ConcentricCylinderSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ConcentricCylinderSource.js deleted file mode 100644 index 93b3d88e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ConcentricCylinderSource.js +++ /dev/null @@ -1,385 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; - -// ---------------------------------------------------------------------------- -// vtkConcentricCylinderSource methods -// ---------------------------------------------------------------------------- - -function vtkConcentricCylinderSource(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkConcentricCylinderSource'); - - // Internal private function - function validateCellFields() { - while (model.cellFields.length < model.radius.length) { - model.cellFields.push(model.cellFields.length); - } - } - publicAPI.clearRadius = () => { - model.radius = []; - model.cellFields = []; - publicAPI.modified(); - }; - publicAPI.addRadius = (radius, cellField) => { - model.radius.push(radius); - if (cellField !== undefined) { - model.cellFields.push(cellField); - } - validateCellFields(); - publicAPI.modified(); - }; - publicAPI.getNumberOfRadius = () => model.radius.length; - publicAPI.getRadius = function () { - let index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - return model.radius[index]; - }; - publicAPI.setRadius = (index, radius) => { - model.radius[index] = radius; - publicAPI.modified(); - }; - publicAPI.setCellField = (index, field) => { - model.cellFields[index] = field; - publicAPI.modified(); - }; - publicAPI.removeMask = () => { - model.mask = null; - publicAPI.modified(); - }; - publicAPI.setMaskLayer = (index, hidden) => { - let changeDetected = false; - if (!model.mask && hidden) { - changeDetected = true; - model.mask = []; - } - if (model.mask) { - if (!model.mask[index] !== !hidden) { - changeDetected = true; - } - model.mask[index] = hidden; - } - if (changeDetected) { - publicAPI.modified(); - } - }; - publicAPI.getMaskLayer = index => index === undefined ? model.mask : model.mask[index]; - publicAPI.requestData = (inData, outData) => { - if (!model.radius.length) { - macro.vtkErrorMacro('No radius defined'); - return; - } - - // Make sure we have consistency - validateCellFields(); - const numLayers = model.radius.length; - const zRef = model.height / 2.0; - - // Compute cell count - let cellArraySize = 0; - let numCells = 0; - let startTheta = model.startTheta < model.endTheta ? model.startTheta : model.endTheta; - startTheta *= Math.PI / 180.0; - let endTheta = model.endTheta > model.startTheta ? model.endTheta : model.startTheta; - endTheta *= Math.PI / 180.0; - let thetaResolution = model.resolution; - let partialDisk = false; - if (endTheta >= startTheta + 2 * Math.PI) { - // complete, closed cylinder - endTheta = startTheta + 2 * Math.PI; - } else { - // We add an extra point at endTheta, since the cylinder isn't closed. - // We cap the sides of the partial cylinder, so set the partialDisk flag. - ++thetaResolution; - partialDisk = true; - } - const deltaTheta = (endTheta - startTheta) / model.resolution; - const numberOfPoints = thetaResolution * numLayers * 2 + 2; - - // 5 entries per poly, 4 polys (top, bottom, in, out) per resolution - if (!model.skipInnerFaces && !model.mask) { - // We keep everything - cellArraySize = 2 * (thetaResolution + 1) + 5 * thetaResolution + (numLayers - 1) * thetaResolution * 20 + (partialDisk ? 10 * numLayers : 0); - numCells = 2 + thetaResolution + (numLayers - 1) * 4 * thetaResolution + (partialDisk ? 2 * numLayers : 0); - } else if (!model.skipInnerFaces && model.mask) { - // We skip some cylinders - // Handle core - if (!model.mask[0]) { - cellArraySize += 2 * (thetaResolution + 1) + 5 * thetaResolution + (partialDisk ? 10 : 0); - numCells += 2 + thetaResolution + (partialDisk ? 2 : 0); - } - // Handle inside cylinders - for (let layer = 1; layer < numLayers; layer++) { - if (!model.mask[layer]) { - // Add inside cylinder count - cellArraySize += thetaResolution * 20 + (partialDisk ? 10 : 0); - numCells += 4 * thetaResolution + (partialDisk ? 2 : 0); - } - } - } else { - // We skip cylinders and internal faces - if (!model.skipInnerFaces || !model.mask || !model.mask[0]) { - // core handling - cellArraySize += 2 * (thetaResolution + 1) + (partialDisk ? 10 : 0); - numCells += 2 + (partialDisk ? 2 : 0); - if (model.radius.length === 1 || !model.skipInnerFaces || model.mask && model.mask[1]) { - // add side faces - cellArraySize += 5 * thetaResolution; - numCells += thetaResolution; - } - } - - // Handle inside cylinders - for (let layer = 1; layer < numLayers; layer++) { - if (!model.skipInnerFaces || !model.mask || !model.mask[layer]) { - const lastLayer = numLayers - 1 === layer; - - // Add inside cylinder - cellArraySize += thetaResolution * 10 + (partialDisk ? 10 : 0); - numCells += thetaResolution * 2 + (partialDisk ? 2 : 0); // top + bottom + side caps - - // Do we add innerFaces - if (!model.skipInnerFaces || model.mask && model.mask[layer - 1]) { - cellArraySize += thetaResolution * 5; - numCells += thetaResolution; - } - - // Do we add outerFaces - if (lastLayer || !model.skipInnerFaces || model.mask && model.mask[layer + 1]) { - cellArraySize += thetaResolution * 5; - numCells += thetaResolution; - } - } - } - } - - // Points - let pointIdx = 0; - const points = macro.newTypedArray(model.pointType, numberOfPoints * 3); - - // Cells - let cellLocation = 0; - const polys = new Uint32Array(cellArraySize); - - // CellFields - let fieldLocation = 0; - const field = new Float32Array(numCells); - - // Create points - // First two are centered, top and bottom. Used only if partialDisk is true. - points[pointIdx * 3 + 0] = 0; - points[pointIdx * 3 + 1] = 0; - points[pointIdx * 3 + 2] = zRef; - pointIdx++; - points[pointIdx * 3 + 0] = 0; - points[pointIdx * 3 + 1] = 0; - points[pointIdx * 3 + 2] = -zRef; - pointIdx++; - for (let layer = 0; layer < numLayers; layer++) { - const radius = model.radius[layer]; - // Create top - for (let i = 0; i < thetaResolution; i++) { - const theta = startTheta + i * deltaTheta; - points[pointIdx * 3 + 0] = radius * Math.cos(theta); - points[pointIdx * 3 + 1] = radius * Math.sin(theta); - points[pointIdx * 3 + 2] = zRef; - pointIdx++; - } - - // Create bottom - for (let i = 0; i < thetaResolution; i++) { - const theta = startTheta + i * deltaTheta; - points[pointIdx * 3 + 0] = radius * Math.cos(theta); - points[pointIdx * 3 + 1] = radius * Math.sin(theta); - points[pointIdx * 3 + 2] = -zRef; - pointIdx++; - } - } - - // Create cells for the core - let currentField = model.cellFields[0]; - - // Core: filtering - if (!model.mask || !model.mask[0]) { - // Core: Top disk - field[fieldLocation++] = currentField; - // partial adds the center point and the last point. - polys[cellLocation++] = thetaResolution + (partialDisk ? 1 : 0); - if (partialDisk) polys[cellLocation++] = 0; - for (let i = 0; i < thetaResolution; i++) { - polys[cellLocation++] = i + 2; - } - - // Core: Bottom disk - field[fieldLocation++] = currentField; - polys[cellLocation++] = thetaResolution + (partialDisk ? 1 : 0); - if (partialDisk) polys[cellLocation++] = 1; - for (let i = 0; i < thetaResolution; i++) { - polys[cellLocation++] = 2 * thetaResolution - i - 1 + 2; - } - - // Core: sides - if (!model.skipInnerFaces || model.mask && model.mask[1] || numLayers === 1) { - for (let i = 0; i < model.resolution; i++) { - polys[cellLocation++] = 4; - polys[cellLocation++] = (i + 1) % thetaResolution + 2; - polys[cellLocation++] = i + 2; - polys[cellLocation++] = i + thetaResolution + 2; - polys[cellLocation++] = (i + 1) % thetaResolution + thetaResolution + 2; - field[fieldLocation++] = currentField; - } - } - if (partialDisk) { - polys[cellLocation++] = 4; - polys[cellLocation++] = 2; - polys[cellLocation++] = 0; - polys[cellLocation++] = 1; - polys[cellLocation++] = thetaResolution + 2; - field[fieldLocation++] = currentField; - polys[cellLocation++] = 4; - polys[cellLocation++] = 0; - polys[cellLocation++] = thetaResolution + 1; - polys[cellLocation++] = 2 * thetaResolution + 1; - polys[cellLocation++] = 1; - field[fieldLocation++] = currentField; - } - } - - // Create cells for the layers - for (let layer = 1; layer < numLayers; layer++) { - // Skip layer if masked - if (model.mask && model.mask[layer]) { - /* eslint-disable no-continue */ - continue; - /* eslint-enable no-continue */ - } - - // two for center points, then skip previous layer's points - const offset = thetaResolution * 2 * (layer - 1) + 2; - const a = offset + 2 * thetaResolution; // next layer offset - const lastLayer = numLayers - 1 === layer; - currentField = model.cellFields[layer]; - - // Create top - for (let i = 0; i < model.resolution; i++) { - polys[cellLocation++] = 4; - polys[cellLocation++] = i + offset; - polys[cellLocation++] = (i + 1) % thetaResolution + offset; - polys[cellLocation++] = (i + 1) % thetaResolution + a; - polys[cellLocation++] = i + a; - field[fieldLocation++] = currentField; - } - - // Create bottom - for (let i = 0; i < model.resolution; i++) { - polys[cellLocation++] = 4; - polys[cellLocation++] = (i + 1) % thetaResolution + offset + thetaResolution; - polys[cellLocation++] = i + offset + thetaResolution; - polys[cellLocation++] = i + a + thetaResolution; - polys[cellLocation++] = (i + 1) % thetaResolution + a + thetaResolution; - field[fieldLocation++] = currentField; - } - - // Create inner - if (!model.skipInnerFaces || model.mask && model.mask[layer - 1]) { - for (let i = 0; i < model.resolution; i++) { - polys[cellLocation++] = 4; - polys[cellLocation++] = i + offset; - polys[cellLocation++] = (i + 1) % thetaResolution + offset; - polys[cellLocation++] = (i + 1) % thetaResolution + thetaResolution + offset; - polys[cellLocation++] = i + thetaResolution + offset; - field[fieldLocation++] = currentField; - } - } - - // Create outer - if (!model.skipInnerFaces || lastLayer || model.mask && (model.mask[layer + 1] || lastLayer)) { - for (let i = 0; i < model.resolution; i++) { - polys[cellLocation++] = 4; - polys[cellLocation++] = (i + 1) % thetaResolution + a; - polys[cellLocation++] = i + a; - polys[cellLocation++] = i + thetaResolution + a; - polys[cellLocation++] = (i + 1) % thetaResolution + thetaResolution + a; - field[fieldLocation++] = currentField; - } - } - // create caps - if (partialDisk) { - polys[cellLocation++] = 4; - polys[cellLocation++] = a; // from first outer - polys[cellLocation++] = offset; // first inner - polys[cellLocation++] = thetaResolution + offset; // first inner - polys[cellLocation++] = thetaResolution + a; // first outer - - field[fieldLocation++] = currentField; - polys[cellLocation++] = 4; - polys[cellLocation++] = model.resolution + a; // last outer - polys[cellLocation++] = model.resolution + offset; // last inner - polys[cellLocation++] = model.resolution + thetaResolution + offset; // last inner - polys[cellLocation++] = model.resolution + thetaResolution + a; // last outer - - field[fieldLocation++] = currentField; - } - } - - // Apply transformation to the point coordinates - vtkMatrixBuilder.buildFromRadian().translate(...model.center).rotateFromDirections([0, 0, 1], model.direction).apply(points); - const dataset = outData[0]?.initialize() || vtkPolyData.newInstance(); - dataset.getPoints().setData(points, 3); - dataset.getPolys().setData(polys, 1); - dataset.getCellData().setScalars(vtkDataArray.newInstance({ - name: 'layer', - values: field - })); - - // Update output - outData[0] = dataset; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - height: 1.0, - radius: [0.5], - cellFields: [1], - resolution: 6, - startTheta: 0.0, - endTheta: 360.0, - center: [0, 0, 0], - direction: [0.0, 0.0, 1.0], - skipInnerFaces: true, - mask: null, - // If present, array to know if a layer should be skipped(=true) - pointType: 'Float64Array' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['height', 'resolution', 'startTheta', 'endTheta', 'skipInnerFaces']); - macro.setGetArray(publicAPI, model, ['center', 'direction'], 3); - macro.getArray(publicAPI, model, ['cellFields']); - macro.algo(publicAPI, model, 0, 1); - vtkConcentricCylinderSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkConcentricCylinderSource'); - -// ---------------------------------------------------------------------------- - -var vtkConcentricCylinderSource$1 = { - newInstance, - extend -}; - -export { vtkConcentricCylinderSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ConeSource.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ConeSource.d.ts deleted file mode 100644 index c95e745e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ConeSource.d.ts +++ /dev/null @@ -1,210 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { Vector3 } from './../../types'; - -/** - * - */ -export interface IConeSourceInitialValues { - height?: number; - radius?: number; - resolution?: number; - center?: Vector3; - direction?: Vector3; - capping?: boolean; - pointType?: string; -} - -type vtkConeSourceBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkConeSource extends vtkConeSourceBase { - /** - * Get the cap the base of the cone with a polygon. - * @default true - */ - getCapping(): boolean; - - /** - * Get the center of the cone. - * @default [0, 0, 0] - */ - getCenter(): Vector3; - - /** - * Get the center of the cone. - */ - getCenterByReference(): Vector3; - - /** - * Get the orientation vector of the cone. - * @default [1.0, 0.0, 0.0] - */ - getDirection(): Vector3; - - /** - * Get the orientation vector of the cone. - */ - getDirectionByReference(): Vector3; - - /** - * Get the height of the cone. - * @default 1.0 - */ - getHeight(): number; - - /** - * Get the base radius of the cone. - * @default 0.5 - */ - getRadius(): number; - - /** - * Get the number of facets used to represent the cone. - * @default 6 - */ - getResolution(): number; - - /** - * Expose methods - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Turn on/off whether to cap the base of the cone with a polygon. - * @param {Boolean} capping - */ - setCapping(capping: boolean): boolean; - - /** - * Set the center of the cone. - * It is located at the middle of the axis of the cone. - * !!! warning - * This is not the center of the base of the cone! - * @param {Number} x - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - * @default [0, 0, 0] - */ - setCenter(x: number, y: number, z: number): boolean; - - /** - * Set the center of the cone. - * It is located at the middle of the axis of the cone. - * !!! warning - * This is not the center of the base of the cone! - * @param {Vector3} center - * @default [0, 0, 0] - */ - setCenter(center: Vector3): boolean; - - /** - * Set the center of the cone. - * It is located at the middle of the axis of the cone. - * !!! warning - * This is not the center of the base of the cone! - * @param {Vector3} center - * @default [0, 0, 0] - */ - setCenterFrom(center: Vector3): boolean; - - /** - * Set the direction for the cone. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - * @default [1, 0, 0] - */ - setDirection(x: number, y: number, z: number): boolean; - - /** - * Set the direction for the cone. - * @param {Vector3} direction The direction coordinates. - */ - setDirection(direction: Vector3): boolean; - - /** - * Set the direction for the cone. - * @param {Vector3} direction - * @default [1, 0, 0] - */ - setDirection(direction: Vector3): boolean; - - /** - * Set the direction for the cone. - * @param {Vector3} direction - * @default [1, 0, 0] - */ - setDirectionFrom(direction: Vector3): boolean; - - /** - * Set the height of the cone. - * This is the height along the cone in its specified direction. - * @param {Number} height - */ - setHeight(height: number): boolean; - - /** - * Set the base radius of the cone. - * @param {Number} radius - */ - setRadius(radius: number): boolean; - - /** - * Set the number of facets used to represent the cone. - * @param resolution - */ - setResolution(resolution: number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkConeSource characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IConeSourceInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IConeSourceInitialValues -): void; - -/** - * Method used to create a new instance of vtkConeSource. - * @param {IConeSourceInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IConeSourceInitialValues -): vtkConeSource; - -/** - * vtkConeSource creates a cone centered at a specified point and pointing in a specified direction. - * (By default, the center is the origin and the direction is the x-axis.) Depending upon the resolution of this object, - * different representations are created. If resolution=0 a line is created; if resolution=1, a single triangle is created; - * if resolution=2, two crossed triangles are created. For resolution > 2, a 3D cone (with resolution number of sides) - * is created. It also is possible to control whether the bottom of the cone is capped with a (resolution-sided) polygon, - * and to specify the height and radius of the cone. - * - * @example - * ```js - * import vtkConeSource from '@kitware/vtk.js/Filters/Sources/ConeSource'; - * - * const cone = vtkConeSource.newInstance({ height: 2, radius: 1, resolution: 80 }); - * const polydata = cone.getOutputData(); - * ``` - */ -export declare const vtkConeSource: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkConeSource; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ConeSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ConeSource.js deleted file mode 100644 index 56403fea..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ConeSource.js +++ /dev/null @@ -1,107 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; - -// ---------------------------------------------------------------------------- -// vtkConeSource methods -// ---------------------------------------------------------------------------- - -function vtkConeSource(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkConeSource'); - publicAPI.requestData = (inData, outData) => { - const angle = 2 * Math.PI / model.resolution; - const xbot = -model.height / 2.0; - const numberOfPoints = model.resolution + 1; - const cellArraySize = 4 * model.resolution + 1 + model.resolution; - - // Points - let pointIdx = 0; - const points = macro.newTypedArray(model.pointType, numberOfPoints * 3); - - // Cells - let cellLocation = 0; - const polys = new Uint32Array(cellArraySize); - - // Add summit point - points[0] = model.height / 2.0; - points[1] = 0.0; - points[2] = 0.0; - - // Create bottom cell - if (model.capping) { - polys[cellLocation++] = model.resolution; - } - - // Add all points - for (let i = 0; i < model.resolution; i++) { - pointIdx++; - points[pointIdx * 3 + 0] = xbot; - points[pointIdx * 3 + 1] = model.radius * Math.cos(i * angle); - points[pointIdx * 3 + 2] = model.radius * Math.sin(i * angle); - - // Add points to bottom cell in reverse order - if (model.capping) { - polys[model.resolution - cellLocation++ + 1] = pointIdx; - } - } - - // Add all triangle cells - for (let i = 0; i < model.resolution; i++) { - polys[cellLocation++] = 3; - polys[cellLocation++] = 0; - polys[cellLocation++] = i + 1; - polys[cellLocation++] = i + 2 > model.resolution ? 1 : i + 2; - } - - // Apply transformation to the points coordinates - vtkMatrixBuilder.buildFromRadian().translate(...model.center).rotateFromDirections([1, 0, 0], model.direction).apply(points); - const dataset = outData[0]?.initialize() || vtkPolyData.newInstance(); - dataset.getPoints().setData(points, 3); - dataset.getPolys().setData(polys, 1); - - // Update output - outData[0] = dataset; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - height: 1.0, - radius: 0.5, - resolution: 6, - center: [0, 0, 0], - direction: [1.0, 0.0, 0.0], - capping: true, - pointType: 'Float64Array' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['height', 'radius', 'resolution', 'capping']); - macro.setGetArray(publicAPI, model, ['center', 'direction'], 3); - macro.algo(publicAPI, model, 0, 1); - vtkConeSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkConeSource'); - -// ---------------------------------------------------------------------------- - -var vtkConeSource$1 = { - newInstance, - extend -}; - -export { vtkConeSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/CubeSource.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/CubeSource.d.ts deleted file mode 100644 index 028e4d40..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/CubeSource.d.ts +++ /dev/null @@ -1,238 +0,0 @@ -import { mat4 } from 'gl-matrix'; -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { Bounds, Vector3 } from './../../types'; - -/** - * - */ -export interface ICircleSourceInitialValues { - xLength?: number; - yLength?: number; - zLength?: number; - center?: Vector3; - rotations?: Vector3; - pointType?: string; - generate3DTextureCoordinates?: boolean; -} - -type vtkCubeSourceBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkCubeSource extends vtkCubeSourceBase { - /** - * Get the center of the cube. - * @default [0.0, 0.0, 0.0] - */ - getCenter(): Vector3; - - /** - * Get the center of the cube. - */ - getCenterByReference(): Vector3; - - /** - * - * @default false - */ - getGenerate3DTextureCoordinates(): boolean; - - /** - * Flag that indicates whether the output will generate faces of the outline. - * @returns {boolean} - */ - getGenerateFaces(): boolean; - - /** - * Flag that indicates whether the output will generate wireframe lines of the outline. - * @returns {boolean} - */ - getGenerateLines(): boolean; - - /** - * Get the 4x4 transformation set to apply as a final trasformation to the output. - * @param matrix - */ - getMatrix(): mat4; - - /** - * - * @default [0.0, 0.0, 0.0] - */ - getRotations(): Vector3; - - /** - * - * @default [0.0, 0.0, 0.0] - */ - getRotationsByReference(): Vector3; - - /** - * Get the length of the cube in the x-direction. - * @default 1.0 - */ - getXLength(): number; - - /** - * Get the length of the cube in the y-direction. - * @default 1.0 - */ - getYLength(): number; - - /** - * Get the length of the cube in the z-direction. - * @default 1.0 - */ - getZLength(): number; - - /** - * Expose methods - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Convenience methods allows creation of cube by specifying bounding box. - * @param {Number} xMin - * @param {Number} xMax - * @param {Number} yMin - * @param {Number} yMax - * @param {Number} zMin - * @param {Number} zMax - */ - setBounds( - xMin: number, - xMax: number, - yMin: number, - yMax: number, - zMin: number, - zMax: number - ): boolean; - - /** - * Convenience methods allows creation of cube by specifying bounding box. - * @param {Bounds} bounds The bounds for the cube. - */ - setBounds(bounds: Bounds): boolean; - - /** - * Set the center of the cube. - * @param x - * @param y - * @param z - * @default [0, 0, 0] - */ - setCenter(x: number, y: number, z: number): boolean; - - /** - * Set the center of the cube. - * @param center - * @default [0, 0, 0] - */ - setCenterFrom(center: Vector3): boolean; - - /** - * - * @param generate3DTextureCoordinates - */ - setGenerate3DTextureCoordinates( - generate3DTextureCoordinates: boolean - ): boolean; - - /** - * Flag to indicate that the output should generate wireframe of the outline. - * @param {boolean} generateLines - */ - setGenerateLines(generateLines: boolean): boolean; - - /** - * Flag to indicate that the output should generate triangulated faces of the outline. - * @param {boolean} generateFaces - */ - setGenerateFaces(generateFaces: boolean): boolean; - - /** - * Set a 4x4 transformation that will be applied as a final trasformation to the output. - * @param matrix - */ - setMatrix(matrix: mat4): boolean; - - /** - * Float array of size 3 representing the angles, in degrees, of rotation for the cube. - * @param xAngle - * @param yAngle - * @param zAngle - */ - setRotations(xAngle: number, yAngle: number, zAngle: number): boolean; - - /** - * - * @param {Vector3} rotations - */ - setRotationsFrom(rotations: Vector3): boolean; - - /** - * Set the length of the cube in the x-direction. - * @param xLength - */ - setXLength(xLength: number): boolean; - - /** - * Set the length of the cube in the y-direction. - * @param yLength - */ - setYLength(yLength: number): boolean; - - /** - * Set the length of the cube in the z-direction. - * @param zLength - */ - setZLength(zLength: number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkCubeSource characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ICircleSourceInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ICircleSourceInitialValues -): void; - -/** - * Method used to create a new instance of vtkCubeSource. - * @param {ICircleSourceInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ICircleSourceInitialValues -): vtkCubeSource; - -/** - * vtkCubeSource creates a cube centered at origin. The cube is represented with four-sided polygons. - * It is possible to specify the length, width, and height of the cube independently. - * - * @example - * ```js - * import vtkCubeSource from '@kitware/vtk.js/Filters/Sources/CubeSource'; - * - * const cubeSource = vtkCubeSource.newInstance({ xLength: 5, yLength: 5, zLength: 5 }); - * const polydata = cubeSource.getOutputData(); - * ``` - */ -export declare const vtkCubeSource: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkCubeSource; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/CubeSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/CubeSource.js deleted file mode 100644 index 3058f04a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/CubeSource.js +++ /dev/null @@ -1,252 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; - -// prettier-ignore -const LINE_ARRAY = [2, 0, 1, 2, 2, 3, 2, 4, 5, 2, 6, 7, 2, 0, 2, 2, 1, 3, 2, 4, 6, 2, 5, 7, 2, 0, 4, 2, 1, 5, 2, 2, 6, 2, 3, 7]; - -// prettier-ignore -const POLY_ARRAY = [4, 0, 1, 3, 2, 4, 4, 6, 7, 5, 4, 8, 10, 11, 9, 4, 12, 13, 15, 14, 4, 16, 18, 19, 17, 4, 20, 21, 23, 22]; - -// ---------------------------------------------------------------------------- -// vtkCubeSource methods -// ---------------------------------------------------------------------------- - -function vtkCubeSource(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCubeSource'); - publicAPI.requestData = (inData, outData) => { - const polyData = outData[0]?.initialize() || vtkPolyData.newInstance(); - outData[0] = polyData; - const numberOfPoints = 24; - - // Define points - const points = macro.newTypedArray(model.pointType, numberOfPoints * 3); - polyData.getPoints().setData(points, 3); - const normals = macro.newTypedArray(model.pointType, numberOfPoints * 3); - const normalArray = vtkDataArray.newInstance({ - name: 'Normals', - values: normals, - numberOfComponents: 3 - }); - polyData.getPointData().setNormals(normalArray); - let tcdim = 2; - if (model.generate3DTextureCoordinates === true) { - tcdim = 3; - } - const textureCoords = macro.newTypedArray(model.pointType, numberOfPoints * tcdim); - const tcoords = vtkDataArray.newInstance({ - name: 'TextureCoordinates', - values: textureCoords, - numberOfComponents: tcdim - }); - polyData.getPointData().setTCoords(tcoords); - const x = [0.0, 0.0, 0.0]; - const n = [0.0, 0.0, 0.0]; - const tc = [0.0, 0.0]; - let pointIndex = 0; - x[0] = -model.xLength / 2.0; - n[0] = -1.0; - n[1] = 0.0; - n[2] = 0.0; - for (let i = 0; i < 2; i++) { - x[1] = -model.yLength / 2.0; - for (let j = 0; j < 2; j++) { - tc[1] = x[1] + 0.5; - x[2] = -model.zLength / 2.0; - for (let k = 0; k < 2; k++) { - tc[0] = (x[2] + 0.5) * (1 - 2 * i); - points[pointIndex * 3] = x[0]; - points[pointIndex * 3 + 1] = x[1]; - points[pointIndex * 3 + 2] = x[2]; - normals[pointIndex * 3] = n[0]; - normals[pointIndex * 3 + 1] = n[1]; - normals[pointIndex * 3 + 2] = n[2]; - if (tcdim === 2) { - textureCoords[pointIndex * tcdim] = tc[0]; - textureCoords[pointIndex * tcdim + 1] = tc[1]; - } else { - textureCoords[pointIndex * tcdim] = 2 * i - 1; - textureCoords[pointIndex * tcdim + 1] = 2 * j - 1; - textureCoords[pointIndex * tcdim + 2] = 2 * k - 1; - } - pointIndex++; - x[2] += model.zLength; - } - x[1] += model.yLength; - } - x[0] += model.xLength; - n[0] += 2.0; - } - x[1] = -model.yLength / 2.0; - n[1] = -1.0; - n[0] = 0.0; - n[2] = 0.0; - for (let i = 0; i < 2; i++) { - x[0] = -model.xLength / 2.0; - for (let j = 0; j < 2; j++) { - tc[0] = (x[0] + 0.5) * (2 * i - 1); - x[2] = -model.zLength / 2.0; - for (let k = 0; k < 2; k++) { - tc[1] = (x[2] + 0.5) * -1; - points[pointIndex * 3] = x[0]; - points[pointIndex * 3 + 1] = x[1]; - points[pointIndex * 3 + 2] = x[2]; - normals[pointIndex * 3] = n[0]; - normals[pointIndex * 3 + 1] = n[1]; - normals[pointIndex * 3 + 2] = n[2]; - if (tcdim === 2) { - textureCoords[pointIndex * tcdim] = tc[0]; - textureCoords[pointIndex * tcdim + 1] = tc[1]; - } else { - textureCoords[pointIndex * tcdim] = 2 * j - 1; - textureCoords[pointIndex * tcdim + 1] = 2 * i - 1; - textureCoords[pointIndex * tcdim + 2] = 2 * k - 1; - } - pointIndex++; - x[2] += model.zLength; - } - x[0] += model.xLength; - } - x[1] += model.yLength; - n[1] += 2.0; - } - x[2] = -model.zLength / 2.0; - n[2] = -1.0; - n[0] = 0.0; - n[1] = 0.0; - for (let i = 0; i < 2; i++) { - x[1] = -model.yLength / 2.0; - for (let j = 0; j < 2; j++) { - tc[1] = x[1] + 0.5; - x[0] = -model.xLength / 2.0; - for (let k = 0; k < 2; k++) { - tc[0] = (x[0] + 0.5) * (2 * i - 1); - points[pointIndex * 3] = x[0]; - points[pointIndex * 3 + 1] = x[1]; - points[pointIndex * 3 + 2] = x[2]; - normals[pointIndex * 3] = n[0]; - normals[pointIndex * 3 + 1] = n[1]; - normals[pointIndex * 3 + 2] = n[2]; - if (tcdim === 2) { - textureCoords[pointIndex * tcdim] = tc[0]; - textureCoords[pointIndex * tcdim + 1] = tc[1]; - } else { - textureCoords[pointIndex * tcdim] = 2 * k - 1; - textureCoords[pointIndex * tcdim + 1] = 2 * j - 1; - textureCoords[pointIndex * tcdim + 2] = 2 * i - 1; - } - pointIndex++; - x[0] += model.xLength; - } - x[1] += model.yLength; - } - x[2] += model.zLength; - n[2] += 2.0; - } - - // Apply rotation to the points coordinates and normals - if (model.rotations) { - vtkMatrixBuilder.buildFromDegree().rotateX(model.rotations[0]).rotateY(model.rotations[1]).rotateZ(model.rotations[2]).apply(points).apply(normals); - } - - // Apply transformation to the points coordinates - if (model.center) { - vtkMatrixBuilder.buildFromRadian().translate(...model.center).apply(points); - } - - // Apply optional additionally specified matrix transformation - if (model.matrix) { - vtkMatrixBuilder.buildFromRadian().setMatrix(model.matrix).apply(points); - - // prettier-ignore - const rotMatrix = [model.matrix[0], model.matrix[1], model.matrix[2], 0, model.matrix[4], model.matrix[5], model.matrix[6], 0, model.matrix[8], model.matrix[9], model.matrix[10], 0, 0, 0, 0, 1]; - vtkMatrixBuilder.buildFromRadian().setMatrix(rotMatrix).apply(normals); - } - - // Lastly, generate the necessary cell arrays. - if (model.generateFaces) { - polyData.getPolys().deepCopy(model._polys); - } else { - polyData.getPolys().initialize(); - } - if (model.generateLines) { - polyData.getLines().deepCopy(model._lineCells); - // only set normals for faces, not for lines. - polyData.getPointData().setNormals(null); - } else { - polyData.getLines().initialize(); - } - polyData.modified(); - }; - publicAPI.setBounds = function () { - let boundsArray = []; - if (Array.isArray(arguments.length <= 0 ? undefined : arguments[0])) { - boundsArray = arguments.length <= 0 ? undefined : arguments[0]; - } else { - for (let i = 0; i < arguments.length; i++) { - boundsArray.push(i < 0 || arguments.length <= i ? undefined : arguments[i]); - } - } - if (boundsArray.length !== 6) { - return; - } - publicAPI.setXLength(boundsArray[1] - boundsArray[0]); - publicAPI.setYLength(boundsArray[3] - boundsArray[2]); - publicAPI.setZLength(boundsArray[5] - boundsArray[4]); - publicAPI.setCenter([(boundsArray[0] + boundsArray[1]) / 2.0, (boundsArray[2] + boundsArray[3]) / 2.0, (boundsArray[4] + boundsArray[5]) / 2.0]); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - xLength: 1.0, - yLength: 1.0, - zLength: 1.0, - pointType: 'Float64Array', - generate3DTextureCoordinates: false, - generateFaces: true, - generateLines: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['xLength', 'yLength', 'zLength', 'generate3DTextureCoordinates', 'generateFaces', 'generateLines']); - macro.setGetArray(publicAPI, model, ['center', 'rotations'], 3); - macro.setGetArray(publicAPI, model, ['matrix'], 16); - - // Internal persistent/static objects - model._polys = vtkCellArray.newInstance({ - values: Uint16Array.from(POLY_ARRAY) - }); - model._lineCells = vtkCellArray.newInstance({ - values: Uint16Array.from(LINE_ARRAY) - }); - macro.moveToProtected(publicAPI, model, ['polys', 'lineCells']); - macro.algo(publicAPI, model, 0, 1); - vtkCubeSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCubeSource'); - -// ---------------------------------------------------------------------------- - -var vtkCubeSource$1 = { - newInstance, - extend -}; - -export { vtkCubeSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/Cursor3D.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/Cursor3D.d.ts deleted file mode 100644 index 6b88de1f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/Cursor3D.d.ts +++ /dev/null @@ -1,224 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import vtkPolyData from './../../Common/DataModel/PolyData'; -import { Bounds, Vector3 } from './../../types'; - -/** - * - */ -export interface ICursor3DInitialValues { - modelBounds?: Bounds; - focalPoint?: Vector3; - outline?: boolean; - axes?: boolean; - xShadows?: boolean; - yShadows?: boolean; - zShadows?: boolean; - wrap?: boolean; - translationMode?: boolean; -} - -type vtkCursor3DBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkCursor3D extends vtkCursor3DBase { - /** - * Turn every part of the 3D cursor off. - */ - allOff(): void; - - /** - * Turn every part of the 3D cursor on. - */ - allOn(): void; - - /** - * - */ - getAxes(): boolean; - - /** - * Get the position of cursor focus. - */ - getFocalPoint(): Vector3; - - /** - * - */ - getFocalPointByReference(): Vector3; - - /** - * - * @default null - */ - getFocus(): null | vtkPolyData; - - /** - * Set the boundary of the 3D cursor. - * @default [-1.0, 1.0, -1.0, 1.0, -1.0, 1.0] - */ - getModelBounds(): Bounds; - - /** - * - * @default [-1.0, 1.0, -1.0, 1.0, -1.0, 1.0] - */ - getModelBoundsByReference(): Bounds; - - /** - * - * @default true - */ - getOutline(): boolean; - - /** - * Get the translation mode. - * @default false - */ - getTranslationMode(): boolean; - - /** - * Get the state of the cursor wrapping. - * @default false - */ - getWrap(): boolean; - - /** - * Get the state of the wireframe x-shadows. - * @default true - */ - getXShadows(): boolean; - - /** - * Get the state of the wireframe y-shadows. - * @default true - */ - getYShadows(): boolean; - - /** - * Get the state of the wireframe z-shadows. - * @default true - */ - getZShadows(): boolean; - - /** - * Expose methods - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - /** - * - * @param {Boolean} flag - */ - setAll(flag: boolean): void; - - /** - * Turn on/off the wireframe axes. - * @param {Boolean} axes - */ - setAxes(axes: boolean): boolean; - - /** - * Set the position of cursor focus. - * If translation mode is on, then the entire cursor (including bounding - * box, cursor, and shadows) is translated. Otherwise, the focal point will - * either be clamped to the bounding box, or wrapped, if Wrap is on. (Note: - * this behavior requires that the bounding box is set prior to the focal - * point.) - * @param {Vector3} points - */ - setFocalPoint(points: Vector3): boolean; - - /** - * Set the boundary of the 3D cursor. - * @param {Bounds} bounds The bounds of the 3D cursor. - */ - setModelBounds(bounds: Bounds): boolean; - - /** - * Enable/disable the translation mode. - * If on, changes in cursor position cause the entire widget to translate - * along with the cursor. - * @param {Boolean} translationMode - */ - setTranslationMode(translationMode: boolean): boolean; - - /** - * Turn on/off cursor wrapping. - * If the cursor focus moves outside the specified bounds, - * the cursor will either be restrained against the nearest "wall" (Wrap=off), - * or it will wrap around (Wrap=on). - * @param {Number} wrap - */ - setWrap(wrap: number): boolean; - - /** - * Turn on/off the wireframe x-shadows. - - * @param {Number} xLength - */ - setXShadows(xLength: number): boolean; - - /** - * Turn on/off the wireframe y-shadows. - - * @param {Number} yLength - */ - setYShadows(yLength: number): boolean; - - /** - * Turn on/off the wireframe z-shadows. - * @param {Number} zLength - */ - setZShadows(zLength: number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkCursor3D characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ICursor3DInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ICursor3DInitialValues -): void; - -/** - * Method used to create a new instance of vtkCursor3D. - * @param {ICursor3DInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ICursor3DInitialValues -): vtkCursor3D; - -/** - * vtkCursor3D is an object that generates a 3D representation of a cursor. The - * cursor consists of a wireframe bounding box, three intersecting axes lines - * that meet at the cursor focus, and "shadows" or projections of the axes - * against the sides of the bounding box. Each of these components can be turned - * on/off. - * - * @example - * ```js - * import vtkCursor3D from '@kitware/vtk.js/Filters/Sources/vtkCursor3D'; - * - * const cursor = vtkCursor3D.newInstance({focalPoint: [0, 0, 0], modelBounds: [-100, 100, -100, 100, -100, 100]}); - * const polyData = cursor.getOutputData(); - * ``` - */ -export declare const vtkCursor3D: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkCursor3D; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/Cursor3D.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/Cursor3D.js deleted file mode 100644 index e4fe4de7..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/Cursor3D.js +++ /dev/null @@ -1,408 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import vtkPoints from '../../Common/Core/Points.js'; - -// ---------------------------------------------------------------------------- -// vtkCursor3D methods -// ---------------------------------------------------------------------------- - -function vtkCursor3D(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCursor3D'); - // Public API methods - publicAPI.setModelBounds = bounds => { - if (!Array.isArray(bounds) || bounds.length < 6) { - return; - } - if (model.modelBounds[0] === bounds[0] && model.modelBounds[1] === bounds[1] && model.modelBounds[2] === bounds[2] && model.modelBounds[3] === bounds[3] && model.modelBounds[4] === bounds[4] && model.modelBounds[5] === bounds[5]) { - return; - } - publicAPI.modified(); - // Doing type convert, make sure it is a number array. - // Without correct coversion, the array may contains string which cause - // the wrapping and clampping works incorrectly. - model.modelBounds = bounds.map(v => Number(v)); - for (let i = 0; i < 3; ++i) { - model.modelBounds[2 * i] = Math.min(model.modelBounds[2 * i], model.modelBounds[2 * i + 1]); - } - }; - publicAPI.setFocalPoint = points => { - if (!Array.isArray(points) || points.length < 3) { - return; - } - if (points[0] === model.focalPoint[0] && points[1] === model.focalPoint[1] && points[2] === model.focalPoint[2]) { - return; - } - publicAPI.modified(); - const v = []; - for (let i = 0; i < 3; i++) { - v[i] = points[i] - model.focalPoint[i]; - model.focalPoint[i] = Number(points[i]); - if (model.translationMode) { - model.modelBounds[2 * i] += v[i]; - model.modelBounds[2 * i + 1] += v[i]; - } - // wrap - else if (model.wrap) { - model.focalPoint[i] = model.modelBounds[2 * i] + (model.focalPoint[i] - model.modelBounds[2 * i]) * 1.0 % ((model.modelBounds[2 * i + 1] - model.modelBounds[2 * i]) * 1.0); - } - // clamp - else { - if (points[i] < model.modelBounds[2 * i]) { - model.focalPoint[i] = model.modelBounds[2 * i]; - } - if (points[i] > model.modelBounds[2 * i + 1]) { - model.focalPoint[i] = model.modelBounds[2 * i + 1]; - } - } - } - }; - publicAPI.setAll = flag => { - publicAPI.setOutline(flag); - publicAPI.setAxes(flag); - publicAPI.setXShadows(flag); - publicAPI.setYShadows(flag); - publicAPI.setZShadows(flag); - }; - publicAPI.allOn = () => { - publicAPI.setAll(true); - }; - publicAPI.allOff = () => { - publicAPI.setAll(false); - }; - publicAPI.requestData = (inData, outData) => { - let numPts = 0; - let numLines = 0; - // Check bounding box and origin - if (model.wrap) { - for (let i = 0; i < model.focalPoint.length; ++i) { - model.focalPoint[i] = model.modelBounds[2 * i] + (model.focalPoint[i] - model.modelBounds[2 * i]) * 1.0 % (model.modelBounds[2 * i + 1] - model.modelBounds[2 * i]); - } - } else { - for (let i = 0; i < model.focalPoint.length; ++i) { - model.focalPoint[i] = Math.max(model.focalPoint[i], model.modelBounds[2 * i]); - model.focalPoint[i] = Math.min(model.focalPoint[i], model.modelBounds[2 * i + 1]); - } - } - // allocate storage - if (model.axes) { - numPts += 6; - numLines += 3; - } - if (model.outline) { - numPts += 8; - numLines += 12; - } - if (model.xShadows) { - numPts += 8; - numLines += 4; - } - if (model.yShadows) { - numPts += 8; - numLines += 4; - } - if (model.zShadows) { - numPts += 8; - numLines += 4; - } - if (numPts === 0) { - return; - } - const polyData = outData[0]?.initialize() || vtkPolyData.newInstance(); - const newPts = vtkPoints.newInstance({ - size: numPts * 3 - }); - // vtkCellArray is a supporting object that explicitly represents cell - // connectivity. The cell array structure is a raw integer list - // of the form: (n,id1,id2,...,idn, n,id1,id2,...,idn, ...) - // where n is the number of points in the cell, and id is a zero-offset index - // into an associated point list. - const newLines = vtkCellArray.newInstance({ - size: numLines * (2 + 1) - }); - let pid = 0; - let cid = 0; - // Create axes - if (model.axes) { - newPts.getData()[pid * 3 + 0] = model.modelBounds[0]; - newPts.getData()[pid * 3 + 1] = model.focalPoint[1]; - newPts.getData()[pid * 3 + 2] = model.focalPoint[2]; - ++pid; - newPts.getData()[pid * 3 + 0] = model.modelBounds[1]; - newPts.getData()[pid * 3 + 1] = model.focalPoint[1]; - newPts.getData()[pid * 3 + 2] = model.focalPoint[2]; - ++pid; - newLines.getData()[cid * 3 + 0] = 2; - newLines.getData()[cid * 3 + 1] = pid - 2; - newLines.getData()[cid * 3 + 2] = pid - 1; - ++cid; - newPts.getData()[pid * 3 + 0] = model.focalPoint[0]; - newPts.getData()[pid * 3 + 1] = model.modelBounds[2]; - newPts.getData()[pid * 3 + 2] = model.focalPoint[2]; - ++pid; - newPts.getData()[pid * 3 + 0] = model.focalPoint[0]; - newPts.getData()[pid * 3 + 1] = model.modelBounds[3]; - newPts.getData()[pid * 3 + 2] = model.focalPoint[2]; - ++pid; - newLines.getData()[cid * 3 + 0] = 2; - newLines.getData()[cid * 3 + 1] = pid - 2; - newLines.getData()[cid * 3 + 2] = pid - 1; - ++cid; - newPts.getData()[pid * 3 + 0] = model.focalPoint[0]; - newPts.getData()[pid * 3 + 1] = model.focalPoint[1]; - newPts.getData()[pid * 3 + 2] = model.modelBounds[4]; - ++pid; - newPts.getData()[pid * 3 + 0] = model.focalPoint[0]; - newPts.getData()[pid * 3 + 1] = model.focalPoint[1]; - newPts.getData()[pid * 3 + 2] = model.modelBounds[5]; - ++pid; - newLines.getData()[cid * 3 + 0] = 2; - newLines.getData()[cid * 3 + 1] = pid - 2; - newLines.getData()[cid * 3 + 2] = pid - 1; - ++cid; - } - // create outline - if (model.outline) { - // first traid - newPts.getData()[pid * 3 + 0] = model.modelBounds[0]; - newPts.getData()[pid * 3 + 1] = model.modelBounds[2]; - newPts.getData()[pid * 3 + 2] = model.modelBounds[4]; - const corner024 = pid; - ++pid; - newPts.getData()[pid * 3 + 0] = model.modelBounds[1]; - newPts.getData()[pid * 3 + 1] = model.modelBounds[2]; - newPts.getData()[pid * 3 + 2] = model.modelBounds[4]; - const corner124 = pid; - ++pid; - newPts.getData()[pid * 3 + 0] = model.modelBounds[0]; - newPts.getData()[pid * 3 + 1] = model.modelBounds[3]; - newPts.getData()[pid * 3 + 2] = model.modelBounds[4]; - const corner034 = pid; - ++pid; - newPts.getData()[pid * 3 + 0] = model.modelBounds[0]; - newPts.getData()[pid * 3 + 1] = model.modelBounds[2]; - newPts.getData()[pid * 3 + 2] = model.modelBounds[5]; - const corner025 = pid; - ++pid; - newLines.getData()[(cid + 0) * 3 + 0] = 2; - newLines.getData()[(cid + 0) * 3 + 1] = corner024; - newLines.getData()[(cid + 0) * 3 + 2] = corner124; - newLines.getData()[(cid + 1) * 3 + 0] = 2; - newLines.getData()[(cid + 1) * 3 + 1] = corner024; - newLines.getData()[(cid + 1) * 3 + 2] = corner034; - newLines.getData()[(cid + 2) * 3 + 0] = 2; - newLines.getData()[(cid + 2) * 3 + 1] = corner024; - newLines.getData()[(cid + 2) * 3 + 2] = corner025; - cid += 3; - // second triad - newPts.getData()[pid * 3 + 0] = model.modelBounds[1]; - newPts.getData()[pid * 3 + 1] = model.modelBounds[3]; - newPts.getData()[pid * 3 + 2] = model.modelBounds[5]; - const corner135 = pid; - ++pid; - newPts.getData()[pid * 3 + 0] = model.modelBounds[0]; - newPts.getData()[pid * 3 + 1] = model.modelBounds[3]; - newPts.getData()[pid * 3 + 2] = model.modelBounds[5]; - const corner035 = pid; - ++pid; - newPts.getData()[pid * 3 + 0] = model.modelBounds[1]; - newPts.getData()[pid * 3 + 1] = model.modelBounds[2]; - newPts.getData()[pid * 3 + 2] = model.modelBounds[5]; - const corner125 = pid; - ++pid; - newPts.getData()[pid * 3 + 0] = model.modelBounds[1]; - newPts.getData()[pid * 3 + 1] = model.modelBounds[3]; - newPts.getData()[pid * 3 + 2] = model.modelBounds[4]; - const corner134 = pid; - ++pid; - newLines.getData()[(cid + 0) * 3 + 0] = 2; - newLines.getData()[(cid + 0) * 3 + 1] = corner135; - newLines.getData()[(cid + 0) * 3 + 2] = corner035; - newLines.getData()[(cid + 1) * 3 + 0] = 2; - newLines.getData()[(cid + 1) * 3 + 1] = corner135; - newLines.getData()[(cid + 1) * 3 + 2] = corner125; - newLines.getData()[(cid + 2) * 3 + 0] = 2; - newLines.getData()[(cid + 2) * 3 + 1] = corner135; - newLines.getData()[(cid + 2) * 3 + 2] = corner134; - cid += 3; - // Fill in remaining lines - // vtk.js do not support checking repeating insertion - newLines.getData()[(cid + 0) * 3 + 0] = 2; - newLines.getData()[(cid + 0) * 3 + 1] = corner124; - newLines.getData()[(cid + 0) * 3 + 2] = corner134; - newLines.getData()[(cid + 1) * 3 + 0] = 2; - newLines.getData()[(cid + 1) * 3 + 1] = corner124; - newLines.getData()[(cid + 1) * 3 + 2] = corner125; - cid += 2; - newLines.getData()[(cid + 0) * 3 + 0] = 2; - newLines.getData()[(cid + 0) * 3 + 1] = corner034; - newLines.getData()[(cid + 0) * 3 + 2] = corner134; - newLines.getData()[(cid + 1) * 3 + 0] = 2; - newLines.getData()[(cid + 1) * 3 + 1] = corner034; - newLines.getData()[(cid + 1) * 3 + 2] = corner035; - cid += 2; - newLines.getData()[(cid + 0) * 3 + 0] = 2; - newLines.getData()[(cid + 0) * 3 + 1] = corner025; - newLines.getData()[(cid + 0) * 3 + 2] = corner125; - newLines.getData()[(cid + 1) * 3 + 0] = 2; - newLines.getData()[(cid + 1) * 3 + 1] = corner025; - newLines.getData()[(cid + 1) * 3 + 2] = corner035; - cid += 2; - } - // create x-shadows - if (model.xShadows) { - for (let i = 0; i < 2; ++i) { - newPts.getData()[pid * 3 + 0] = model.modelBounds[i]; - newPts.getData()[pid * 3 + 1] = model.modelBounds[2]; - newPts.getData()[pid * 3 + 2] = model.focalPoint[2]; - ++pid; - newPts.getData()[pid * 3 + 0] = model.modelBounds[i]; - newPts.getData()[pid * 3 + 1] = model.modelBounds[3]; - newPts.getData()[pid * 3 + 2] = model.focalPoint[2]; - ++pid; - newLines.getData()[cid * 3 + 0] = 2; - newLines.getData()[cid * 3 + 1] = pid - 2; - newLines.getData()[cid * 3 + 2] = pid - 1; - ++cid; - newPts.getData()[pid * 3 + 0] = model.modelBounds[i]; - newPts.getData()[pid * 3 + 1] = model.focalPoint[1]; - newPts.getData()[pid * 3 + 2] = model.modelBounds[4]; - ++pid; - newPts.getData()[pid * 3 + 0] = model.modelBounds[i]; - newPts.getData()[pid * 3 + 1] = model.focalPoint[1]; - newPts.getData()[pid * 3 + 2] = model.modelBounds[5]; - ++pid; - newLines.getData()[cid * 3 + 0] = 2; - newLines.getData()[cid * 3 + 1] = pid - 2; - newLines.getData()[cid * 3 + 2] = pid - 1; - ++cid; - } - } - - // create y-shadows - if (model.yShadows) { - for (let i = 0; i < 2; ++i) { - newPts.getData()[pid * 3 + 0] = model.modelBounds[0]; - newPts.getData()[pid * 3 + 1] = model.modelBounds[i + 2]; - newPts.getData()[pid * 3 + 2] = model.focalPoint[2]; - ++pid; - newPts.getData()[pid * 3 + 0] = model.modelBounds[1]; - newPts.getData()[pid * 3 + 1] = model.modelBounds[i + 2]; - newPts.getData()[pid * 3 + 2] = model.focalPoint[2]; - ++pid; - newLines.getData()[cid * 3 + 0] = 2; - newLines.getData()[cid * 3 + 1] = pid - 2; - newLines.getData()[cid * 3 + 2] = pid - 1; - ++cid; - newPts.getData()[pid * 3 + 0] = model.focalPoint[0]; - newPts.getData()[pid * 3 + 1] = model.modelBounds[i + 2]; - newPts.getData()[pid * 3 + 2] = model.modelBounds[4]; - ++pid; - newPts.getData()[pid * 3 + 0] = model.focalPoint[0]; - newPts.getData()[pid * 3 + 1] = model.modelBounds[i + 2]; - newPts.getData()[pid * 3 + 2] = model.modelBounds[5]; - ++pid; - newLines.getData()[cid * 3 + 0] = 2; - newLines.getData()[cid * 3 + 1] = pid - 2; - newLines.getData()[cid * 3 + 2] = pid - 1; - ++cid; - } - } - - // create z-shadows - if (model.zShadows) { - for (let i = 0; i < 2; ++i) { - newPts.getData()[pid * 3 + 0] = model.modelBounds[0]; - newPts.getData()[pid * 3 + 1] = model.focalPoint[1]; - newPts.getData()[pid * 3 + 2] = model.modelBounds[i + 4]; - ++pid; - newPts.getData()[pid * 3 + 0] = model.modelBounds[1]; - newPts.getData()[pid * 3 + 1] = model.focalPoint[1]; - newPts.getData()[pid * 3 + 2] = model.modelBounds[i + 4]; - ++pid; - newLines.getData()[cid * 3 + 0] = 2; - newLines.getData()[cid * 3 + 1] = pid - 2; - newLines.getData()[cid * 3 + 2] = pid - 1; - ++cid; - newPts.getData()[pid * 3 + 0] = model.focalPoint[0]; - newPts.getData()[pid * 3 + 1] = model.modelBounds[2]; - newPts.getData()[pid * 3 + 2] = model.modelBounds[i + 4]; - ++pid; - newPts.getData()[pid * 3 + 0] = model.focalPoint[0]; - newPts.getData()[pid * 3 + 1] = model.modelBounds[3]; - newPts.getData()[pid * 3 + 2] = model.modelBounds[i + 4]; - ++pid; - newLines.getData()[cid * 3 + 0] = 2; - newLines.getData()[cid * 3 + 1] = pid - 2; - newLines.getData()[cid * 3 + 2] = pid - 1; - ++cid; - } - } - const pts = vtkPoints.newInstance({ - size: 3 - }); - pts.getData()[0] = model.focalPoint[0]; - pts.getData()[1] = model.focalPoint[1]; - pts.getData()[2] = model.focalPoint[2]; - // update ourseleves - model.focus = vtkPolyData.newInstance(); - model.focus.setPoints(pts); - polyData.setPoints(newPts); - polyData.setLines(newLines); - outData[0] = polyData; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - focus: null, - modelBounds: [-1.0, 1.0, -1.0, 1.0, -1.0, 1.0], - focalPoint: [0.0, 0.0, 0.0], - outline: true, - axes: true, - xShadows: true, - yShadows: true, - zShadows: true, - wrap: false, - translationMode: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - // Cursor3D - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['focus']); - macro.getArray(publicAPI, model, ['modelBounds'], 6); - macro.getArray(publicAPI, model, ['focalPoint'], 3); - macro.setGet(publicAPI, model, ['outline']); - macro.setGet(publicAPI, model, ['axes']); - macro.setGet(publicAPI, model, ['xShadows']); - macro.setGet(publicAPI, model, ['yShadows']); - macro.setGet(publicAPI, model, ['zShadows']); - macro.setGet(publicAPI, model, ['wrap']); - macro.setGet(publicAPI, model, ['translationMode']); - macro.algo(publicAPI, model, 0, 1); - vtkCursor3D(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCursor3D'); - -// ---------------------------------------------------------------------------- - -var vtkCursor3D$1 = { - newInstance, - extend -}; - -export { vtkCursor3D$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/CylinderSource.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/CylinderSource.d.ts deleted file mode 100644 index 062c09e1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/CylinderSource.d.ts +++ /dev/null @@ -1,215 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { Vector3 } from './../../types'; - -/** - * - */ -export interface ICylinderSourceInitialValues { - height?: number; - initAngle?: number; - otherRadius?: number; - radius?: number; - resolution?: number; - center?: Vector3; - direction?: Vector3; - capping?: boolean; - pointType?: string; -} - -type vtkCylinderSourceBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkCylinderSource extends vtkCylinderSourceBase { - /** - * Get the cap the base of the cylinder with a polygon. - * @default true - */ - getCapping(): boolean; - - /** - * Get the center of the cylinder. - * @default [0, 0, 0] - */ - getCenter(): Vector3; - - /** - * Get the center of the cylinder. - */ - getCenterByReference(): Vector3; - - /** - * Get the orientation vector of the cylinder. - * @default [1.0, 0.0, 0.0] - */ - getDirection(): Vector3; - - /** - * Get the orientation vector of the cylinder. - */ - getDirectionByReference(): Vector3; - - /** - * Get the height of the cylinder. - * @default 1.0 - */ - getHeight(): number; - - /** - * Get the initial angle along direction - * @default 0 - * @see getDirection - */ - getInitAngle(): number; - - /** - * Get the radius on Z axis. If not null and different from radius, - * the cylinder base becomes an ellipse instead of a circle. - * @default null - * @see getRadius() - */ - getOtherRadius(): number; - - /** - * Get the base radius of the cylinder. - * @default 0.5 - * @see getOtherRadius() - */ - getRadius(): number; - - /** - * Get the number of facets used to represent the cylinder. - * @default 6 - */ - getResolution(): number; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Turn on/off whether to cap the base of the cone with a polygon. - * @param {Boolean} capping The capping value. - */ - setCapping(capping: boolean): boolean; - - /** - * Set the center of the cylinder. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - * @default [0, 0, 0] - */ - setCenter(x: number, y: number, z: number): boolean; - - /** - * Set the center of the cylinder. - * @param {Vector3} center The center point's coordinates. - * @default [0, 0, 0] - */ - setCenterFrom(center: Vector3): boolean; - - /** - * Set the direction for the cylinder. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setDirection(x: number, y: number, z: number): boolean; - - /** - * Set the direction for the cylinder. - * @param {Vector3} direction The direction coordinates. - */ - setDirection(direction: Vector3): boolean; - - /** - * Set the direction for the cylinder. - * @param {Vector3} direction The direction coordinates. - */ - setDirectionFrom(direction: Vector3): boolean; - - /** - * Set the height of the cylinder. - * @param {Number} height The height along the cylinder in its specified direction. - */ - setHeight(height: number): boolean; - - /** - * Set the initial angle along direction. - * @param {Number} initAngle The initial angle in radian. - */ - setInitAngle(initAngle: number): boolean; - - /** - * Set the base Z radius of the cylinder. - * @param {Number} radius The radius of the cylinder in Z. - * @see setRadius() - */ - setOtherRadius(radius: number): boolean; - - /** - * Set the base radius of the cylinder. - * @param {Number} radius The radius of the cylinder. - * @see setOtherRadius() - */ - setRadius(radius: number): boolean; - - /** - * Set the number of facets used to represent the cylinder. - * @param {Number} resolution The number of facets used to represent the cylinder. - */ - setResolution(resolution: number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkCylinderSource characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ICylinderSourceInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ICylinderSourceInitialValues -): void; - -/** - * Method used to create a new instance of vtkCylinderSource. - * @param {ICylinderSourceInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ICylinderSourceInitialValues -): vtkCylinderSource; - -/** - * vtkCylinderSource creates a polygonal cylinder centered at Center; - * The axis of the cylinder is aligned along the global y-axis. - * The height and radius of the cylinder can be specified, as well as the number of sides. - * It is also possible to control whether the cylinder is open-ended or capped. - * If you have the end points of the cylinder, you should use a vtkLineSource followed by a vtkTubeFilter instead of the vtkCylinderSource. - * - * @example - * ```js - * import vtkCylinderSource from '@kitware/vtk.js/Filters/Sources/CylinderSource'; - * - * const cylinder = vtkCylinderSource.newInstance({ height: 2, radius: 1, resolution: 80 }); - * const polydata = cylinder.getOutputData(); - * ``` - */ -export declare const vtkCylinderSource: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkCylinderSource; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/CylinderSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/CylinderSource.js deleted file mode 100644 index d2dc3d9d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/CylinderSource.js +++ /dev/null @@ -1,197 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; - -// ---------------------------------------------------------------------------- -// vtkCylinderSource methods -// ---------------------------------------------------------------------------- - -function vtkCylinderSource(publicAPI, model) { - // Set our classname - model.classHierarchy.push('vtkCylinderSource'); - publicAPI.requestData = (inData, outData) => { - const angle = 2.0 * Math.PI / model.resolution; - let numberOfPoints = 2 * model.resolution; - let numberOfPolys = 5 * model.resolution; - if (model.capping) { - numberOfPoints = 4 * model.resolution; - numberOfPolys = 7 * model.resolution + 2; - } - - // Points - const points = macro.newTypedArray(model.pointType, numberOfPoints * 3); - - // Cells - let cellLocation = 0; - const polys = new Uint32Array(numberOfPolys); - - // Normals - const normalsData = new Float32Array(numberOfPoints * 3); - const normals = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: normalsData, - name: 'Normals' - }); - - // Texture coords - const tcData = new Float32Array(numberOfPoints * 2); - const tcoords = vtkDataArray.newInstance({ - numberOfComponents: 2, - values: tcData, - name: 'TCoords' - }); - - // Generate points for all sides - const nbot = [0.0, 0.0, 0.0]; - const ntop = [0.0, 0.0, 0.0]; - const xbot = [0.0, 0.0, 0.0]; - const xtop = [0.0, 0.0, 0.0]; - const tcbot = [0.0, 0.0]; - const tctop = [0.0, 0.0]; - const otherRadius = model.otherRadius == null ? model.radius : model.otherRadius; - for (let i = 0; i < model.resolution; i++) { - // x coordinate - nbot[0] = Math.cos(i * angle + model.initAngle); - ntop[0] = nbot[0]; - xbot[0] = model.radius * nbot[0] + model.center[0]; - xtop[0] = xbot[0]; - tcbot[0] = Math.abs(2.0 * i / model.resolution - 1.0); - tctop[0] = tcbot[0]; - - // y coordinate - xbot[1] = 0.5 * model.height + model.center[1]; - xtop[1] = -0.5 * model.height + model.center[1]; - tcbot[1] = 0.0; - tctop[1] = 1.0; - - // z coordinate - nbot[2] = -Math.sin(i * angle + model.initAngle); - ntop[2] = nbot[2]; - xbot[2] = otherRadius * nbot[2] + model.center[2]; - xtop[2] = xbot[2]; - const pointIdx = 2 * i; - for (let j = 0; j < 3; j++) { - normalsData[pointIdx * 3 + j] = nbot[j]; - normalsData[(pointIdx + 1) * 3 + j] = ntop[j]; - points[pointIdx * 3 + j] = xbot[j]; - points[(pointIdx + 1) * 3 + j] = xtop[j]; - if (j < 2) { - tcData[pointIdx * 2 + j] = tcbot[j]; - tcData[(pointIdx + 1) * 2 + j] = tctop[j]; - } - } - } - - // Generate polygons for sides - for (let i = 0; i < model.resolution; i++) { - polys[cellLocation++] = 4; - polys[cellLocation++] = 2 * i; - polys[cellLocation++] = 2 * i + 1; - const pt = (2 * i + 3) % (2 * model.resolution); - polys[cellLocation++] = pt; - polys[cellLocation++] = pt - 1; - } - if (model.capping) { - // Generate points for top/bottom polygons - for (let i = 0; i < model.resolution; i++) { - // x coordinate - xbot[0] = model.radius * Math.cos(i * angle + model.initAngle); - xtop[0] = xbot[0]; - tcbot[0] = xbot[0]; - tctop[0] = xbot[0]; - xbot[0] += model.center[0]; - xtop[0] += model.center[0]; - - // y coordinate - nbot[1] = 1.0; - ntop[1] = -1.0; - xbot[1] = 0.5 * model.height + model.center[1]; - xtop[1] = -0.5 * model.height + model.center[1]; - - // z coordinate - xbot[2] = -otherRadius * Math.sin(i * angle + model.initAngle); - xtop[2] = xbot[2]; - tcbot[1] = xbot[2]; - tctop[1] = xbot[2]; - xbot[2] += model.center[2]; - xtop[2] += model.center[2]; - const botIdx = 2 * model.resolution + i; - const topIdx = 3 * model.resolution + model.resolution - i - 1; - for (let j = 0; j < 3; j++) { - normalsData[3 * botIdx + j] = nbot[j]; - normalsData[3 * topIdx + j] = ntop[j]; - points[3 * botIdx + j] = xbot[j]; - points[3 * topIdx + j] = xtop[j]; - if (j < 2) { - tcData[2 * botIdx + j] = tcbot[j]; - tcData[2 * topIdx + j] = tctop[j]; - } - } - } - - // Generate polygons for top/bottom - polys[cellLocation++] = model.resolution; - for (let i = 0; i < model.resolution; i++) { - polys[cellLocation++] = 2 * model.resolution + i; - } - polys[cellLocation++] = model.resolution; - for (let i = 0; i < model.resolution; i++) { - polys[cellLocation++] = 3 * model.resolution + i; - } - } - - // Apply transformation to the points coordinates - vtkMatrixBuilder.buildFromRadian().translate(...model.center).rotateFromDirections([0, 1, 0], model.direction).translate(...model.center.map(c => c * -1)).apply(points); - const dataset = outData[0]?.initialize() || vtkPolyData.newInstance(); - dataset.getPoints().setData(points, 3); - dataset.getPolys().setData(polys, 1); - dataset.getPointData().setNormals(normals); - dataset.getPointData().setTCoords(tcoords); - - // Update output - outData[0] = dataset; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - height: 1.0, - initAngle: 0, - radius: 1.0, - resolution: 6, - center: [0, 0, 0], - direction: [0.0, 1.0, 0.0], - capping: true, - pointType: 'Float64Array' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['height', 'initAngle', 'otherRadius', 'radius', 'resolution', 'capping']); - macro.setGetArray(publicAPI, model, ['center', 'direction'], 3); - macro.algo(publicAPI, model, 0, 1); - vtkCylinderSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCylinderSource'); - -// ---------------------------------------------------------------------------- - -var vtkCylinderSource$1 = { - newInstance, - extend -}; - -export { vtkCylinderSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/DiskSource.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/DiskSource.d.ts deleted file mode 100644 index 4981f918..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/DiskSource.d.ts +++ /dev/null @@ -1,154 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { Vector3 } from './../../types'; - -/** - * - */ -export interface IDiskSourceInitialValues { - innerRadius?: number; - outerRadius?: number; - center?: Vector3; - normal?: Vector3; - radialResolution?: number; - circumferentialResolution?: number; - pointType?: string; -} - -type vtkDiskSourceBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkDiskSource extends vtkDiskSourceBase { - /** - * Get the center of the disk. - */ - getCenter(): Vector3; - - /** - * Get the circumferential resolution of the disk. - */ - getCircumferentialResolution(): number; - - /** - * Get the inner radius of the disk. - */ - getInnerRadius(): number; - - /** - * Get the normal of the disk. - */ - getNormal(): Vector3; - - /** - * Get the outer radius of the disk. - */ - getOuterRadius(): number; - - /** - * Get the point type used for the disk. - */ - getPointType(): string; - - /** - * Get the radial resolution of the disk. - */ - getRadialResolution(): number; - - /** - * Expose methods - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Set the center of the disk. - * @param {Vector3} center - */ - setCenter(center: Vector3): boolean; - - /** - * Set the circumferential resolution of the disk. - * @param {number} resolution - */ - setCircumferentialResolution(resolution: number): boolean; - - /** - * Set the inner radius of the disk. - * @param {number} radius - */ - setInnerRadius(radius: number): boolean; - - /** - * Set the normal of the disk. - * @param {Vector3} normal - */ - setNormal(normal: Vector3): boolean; - - /** - * Set the outer radius of the disk. - * @param {number} radius - */ - setOuterRadius(radius: number): boolean; - - /** - * Set the point type used for the disk. - * @param {string} type - */ - setPointType(type: string): boolean; - - /** - * Set the radial resolution of the disk. - * @param {number} resolution - */ - setRadialResolution(resolution: number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkDiskSource characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IDiskSourceInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IDiskSourceInitialValues -): void; - -/** - * Method used to create a new instance of vtkDiskSource. - * @param {IDiskSourceInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IDiskSourceInitialValues -): vtkDiskSource; - -/** - * vtkDiskSource creates a polygonal disk with a hole in the center. The disk - * has zero height. The user can specify the inner and outer radius of the disk, - * the radial and circumferential resolution of the polygonal representation, - * and the center and plane normal of the disk (i.e., the center and disk normal - * control the position and orientation of the disk). - * - * @example - * ```js - * import vtkDiskSource from '@kitware/vtk.js/Filters/Sources/DiskSource'; - * - * const disk = vtkDiskSource.newInstance({ radius: 1, resolution: 80 }); - * const polydata = disk.getOutputData(); - * ``` - */ -export declare const vtkDiskSource: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkDiskSource; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/DiskSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/DiskSource.js deleted file mode 100644 index 561672f2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/DiskSource.js +++ /dev/null @@ -1,133 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkPoints from '../../Common/Core/Points.js'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkDiskSource methods -// ---------------------------------------------------------------------------- - -function vtkDiskSource(publicAPI, model) { - // Set our classname - model.classHierarchy.push('vtkDiskSource'); - publicAPI.requestData = (inData, outData) => { - const { - innerRadius, - outerRadius, - center, - normal, - radialResolution, - circumferentialResolution, - pointType - } = model; - - // Points - const points = vtkPoints.newInstance({ - dataType: pointType - }); - const n = [normal[0], normal[1], normal[2]]; - const length = Math.hypot(n[0], n[1], n[2]); - if (length === 0) { - vtkErrorMacro('Normal vector cannot be zero-length'); - return; - } - n[0] /= length; - n[1] /= length; - n[2] /= length; - const matrix = vtkMatrixBuilder.buildFromDegree().identity().translate(-center[0], -center[1], -center[2]).rotateFromDirections([0, 0, 1], n).translate(center[0], center[1], center[2]).getMatrix(); - const polys = vtkCellArray.newInstance(); - - // Generate points - const deltaR = (outerRadius - innerRadius) / radialResolution; - const thetaStep = 2.0 * Math.PI / circumferentialResolution; - for (let i = 0; i < circumferentialResolution; i++) { - const theta = i * thetaStep; - const cosT = Math.cos(theta); - const sinT = Math.sin(theta); - for (let j = 0; j <= radialResolution; j++) { - const r = innerRadius + j * deltaR; - // point in XY plane before transform - const localPoint = [center[0] + r * cosT, center[1] + r * sinT, center[2]]; - // apply matrix transform - const x = matrix[0] * localPoint[0] + matrix[4] * localPoint[1] + matrix[8] * localPoint[2] + matrix[12]; - const y = matrix[1] * localPoint[0] + matrix[5] * localPoint[1] + matrix[9] * localPoint[2] + matrix[13]; - const z = matrix[2] * localPoint[0] + matrix[6] * localPoint[1] + matrix[10] * localPoint[2] + matrix[14]; - points.insertNextPoint(x, y, z); - } - } - - // Generate cell connectivity (quads) - const cellCount = radialResolution * circumferentialResolution; - const cellData = new Uint8Array(cellCount * 5); - let offset = 0; - for (let i = 0; i < model.circumferentialResolution; i++) { - for (let j = 0; j < model.radialResolution; j++) { - const p0 = i * (model.radialResolution + 1) + j; - const p1 = p0 + 1; - const p2 = i < model.circumferentialResolution - 1 ? p1 + (model.radialResolution + 1) : j + 1; // wrap around - const p3 = p2 - 1; - cellData[offset++] = 4; - cellData[offset++] = p0; - cellData[offset++] = p1; - cellData[offset++] = p2; - cellData[offset++] = p3; - } - } - polys.setData(cellData, cellCount, 1); - const dataset = outData[0]?.initialize() || vtkPolyData.newInstance(); - dataset.setPoints(points); - dataset.setPolys(polys); - - // Update output - outData[0] = dataset; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - return { - innerRadius: 0.25, - outerRadius: 0.5, - center: [0, 0, 0], - normal: [0, 0, 1], - radialResolution: 1, - circumferentialResolution: 6, - pointType: 'Float64Array', - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['innerRadius', 'outerRadius', 'radialResolution', 'circumferentialResolution', 'pointType']); - macro.setGetArray(publicAPI, model, ['center', 'normal'], 3); - macro.algo(publicAPI, model, 0, 1); - vtkDiskSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkDiskSource'); - -// ---------------------------------------------------------------------------- - -var vtkDiskSource$1 = { - newInstance, - extend -}; - -export { vtkDiskSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/EllipseArcSource.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/EllipseArcSource.d.ts deleted file mode 100644 index 97899870..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/EllipseArcSource.d.ts +++ /dev/null @@ -1,212 +0,0 @@ -import { DesiredOutputPrecision } from './../../Common/DataModel/DataSetAttributes'; -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { Vector3 } from './../../types'; - -/** - * - */ -export interface IEllipseArcSourceInitialValues { - center?: Vector3; - normal?: Vector3; - majorRadiusVector?: Vector3; - startAngle?: number; - segmentAngle?: number; - resolution?: number; - close?: boolean; - outputPointsPrecision?: DesiredOutputPrecision; - ratio?: number; -} - -type vtkEllipseArcSourceBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkEllipseArcSource extends vtkEllipseArcSourceBase { - /** - * Get whether the arc is closed. - */ - getClose(): boolean; - - /** - * Get the center of the arc. - */ - getCenter(): Vector3; - - /** - * Get the center of the arc by reference. - */ - getCenterByReference(): Vector3; - - /** - * Get the major radius vector of the arc. - */ - getMajorRadiusVector(): Vector3; - - /** - * Get the major radius vector of the arc by reference. - */ - getMajorRadiusVectorByReference(): Vector3; - - /** - * Get the normal vector of the arc. - */ - getNormal(): Vector3; - - /** - * Get the normal vector of the arc by reference. - */ - getNormalByReference(): Vector3; - - /** - * Get the output points precision. - */ - getOutputPointsPrecision(): DesiredOutputPrecision; - - /** - * Get the ratio of the arc. - */ - getRatio(): number; - - /** - * Get the resolution of the arc. - */ - getResolution(): number; - - /** - * Get the segment angle of the arc. - */ - getSegmentAngle(): number; - - /** - * Get the start angle of the arc. - */ - getStartAngle(): number; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Set whether the arc is closed. - * @param {Boolean} close Whether the arc is closed. - */ - setClose(close: boolean): boolean; - - /** - * Set the center of the arc. - * @param {Vector3} center The center's coordinates. - */ - setCenter(center: Vector3): boolean; - - /** - * Set the center of the arc by reference. - * @param {Vector3} center The center's coordinates. - */ - setCenterFrom(center: Vector3): boolean; - - /** - * Set the major radius vector of the arc. - * @param {Vector3} majorRadiusVector The major radius vector's coordinates. - */ - setMajorRadiusVector(majorRadiusVector: Vector3): boolean; - - /** - * Set the major radius vector of the arc by reference. - * @param {Vector3} majorRadiusVector The major radius vector's coordinates. - */ - setMajorRadiusVectorFrom(majorRadiusVector: Vector3): boolean; - - /** - * Set the normal vector of the arc. - * @param {Vector3} normal The normal vector's coordinates. - */ - setNormal(normal: Vector3): boolean; - - /** - * Set the normal vector of the arc by reference. - * @param {Vector3} normal The normal vector's coordinates. - */ - setNormalFrom(normal: Vector3): boolean; - - /** - * Set the output points precision. - * @param {DesiredOutputPrecision} precision The desired output precision. - */ - setOutputPointsPrecision(precision: DesiredOutputPrecision): boolean; - - /** - * Set the ratio of the arc. - * @param {Number} ratio The ratio of the arc. - */ - setRatio(ratio: number): boolean; - - /** - * Set the resolution of the arc. - * @param {Number} resolution The number of points in the arc. - */ - setResolution(resolution: number): boolean; - - /** - * Set the segment angle of the arc. - * @param {Number} segmentAngle The segment angle in degrees. - */ - setSegmentAngle(segmentAngle: number): boolean; - - /** - * Set the start angle of the arc. - * @param {Number} startAngle The start angle in degrees. - */ - setStartAngle(startAngle: number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with - * vtkEllipseArcSource characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IEllipseArcSourceInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IEllipseArcSourceInitialValues -): void; - -/** - * Method used to create a new instance of vtkEllipseArcSource. - * @param {IEllipseArcSourceInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IEllipseArcSourceInitialValues -): vtkEllipseArcSource; - -/** - * vtkEllipseArcSource is a source object that creates an elliptical arc defined - * by a normal, a center and the major radius vector. You can define an angle to - * draw only a section of the ellipse. The number of segments composing the - * polyline is controlled by setting the object resolution. - * - * @example - * ```js - * import vtkEllipseArcSource from '@kitware/vtk.js/Filters/Sources/EllipseArcSource'; - * - * const arc = vtkEllipseArcSource.newInstance(); - * const polydata = arc.getOutputData(); - * ``` - */ -export declare const vtkEllipseArcSource: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkEllipseArcSource; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/EllipseArcSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/EllipseArcSource.js deleted file mode 100644 index da658c47..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/EllipseArcSource.js +++ /dev/null @@ -1,159 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import { b as vtkMath } from '../../Common/Core/Math/index.js'; -import vtkPoints from '../../Common/Core/Points.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import { DesiredOutputPrecision } from '../../Common/DataModel/DataSetAttributes/Constants.js'; - -const { - vtkErrorMacro -} = macro; -const { - VtkDataTypes -} = vtkDataArray; - -// ---------------------------------------------------------------------------- -// vtkEllipseArcSource methods -// ---------------------------------------------------------------------------- - -function vtkEllipseArcSource(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkEllipseArcSource'); - publicAPI.requestData = (inData, outData) => { - const isClosedShape = Math.abs(model.segmentAngle - 360.0) < 1e-5; - const resolution = model.close && !isClosedShape ? model.resolution + 1 : model.resolution; - const numLines = resolution; - const numPts = resolution + 1; - const tc = [0.0, 0.0]; - const output = outData[0]?.initialize() || vtkPolyData.newInstance(); - - // Make sure the normal vector is normalized - const normal = [...model.normal]; - vtkMath.normalize(normal); - - // Get orthogonal vector between user-defined major radius and normal - const orthogonalVect = [0, 0, 0]; - vtkMath.cross(normal, model.majorRadiusVector, orthogonalVect); - if (vtkMath.norm(orthogonalVect) < 1e-10) { - vtkErrorMacro('Ellipse normal vector and major radius axis are collinear'); - return; - } - vtkMath.normalize(orthogonalVect); - const majorRadiusVect = [0, 0, 0]; - vtkMath.cross(orthogonalVect, normal, majorRadiusVect); - vtkMath.normalize(majorRadiusVect); - const a = vtkMath.norm(model.majorRadiusVector); - const b = a * model.ratio; - let startAngleRad = vtkMath.radiansFromDegrees(model.startAngle); - if (startAngleRad < 0) { - startAngleRad += 2.0 * Math.PI; - } - const segmentAngleRad = vtkMath.radiansFromDegrees(model.segmentAngle); - const angleIncRad = segmentAngleRad / model.resolution; - let pointType = VtkDataTypes.FLOAT; - if (model.outputPointsPrecision === DesiredOutputPrecision.SINGLE) { - pointType = VtkDataTypes.FLOAT; - } else if (model.outputPointsPrecision === DesiredOutputPrecision.DOUBLE) { - pointType = VtkDataTypes.DOUBLE; - } - const points = vtkPoints.newInstance({ - dataType: pointType - }); - points.setNumberOfPoints(numPts); - const tcoords = vtkDataArray.newInstance({ - numberOfComponents: 2, - size: numPts * 2, - dataType: VtkDataTypes.FLOAT, - name: 'TextureCoordinates' - }); - const lines = vtkCellArray.newInstance(); - lines.allocate(numLines); - const skipLastPoint = model.close && isClosedShape; - let theta = startAngleRad; - let pointIndex = 0; - for (let i = 0; i <= resolution; ++i, theta += angleIncRad) { - const quotient = Math.floor(theta / (2.0 * Math.PI)); - const normalizedTheta = theta - quotient * 2.0 * Math.PI; - let thetaEllipse = Math.atan(Math.tan(normalizedTheta) * model.ratio); - if (normalizedTheta > Math.PI / 2 && normalizedTheta <= Math.PI) { - thetaEllipse += Math.PI; - } else if (normalizedTheta > Math.PI && normalizedTheta <= 1.5 * Math.PI) { - thetaEllipse -= Math.PI; - } - const cosTheta = Math.cos(thetaEllipse); - const sinTheta = Math.sin(thetaEllipse); - const p = [model.center[0] + a * cosTheta * majorRadiusVect[0] + b * sinTheta * orthogonalVect[0], model.center[1] + a * cosTheta * majorRadiusVect[1] + b * sinTheta * orthogonalVect[1], model.center[2] + a * cosTheta * majorRadiusVect[2] + b * sinTheta * orthogonalVect[2]]; - tc[0] = i / resolution; - tc[1] = 0.0; - if (i !== resolution || !skipLastPoint) { - points.setPoint(pointIndex, ...p); - tcoords.setTuple(pointIndex, tc); - pointIndex++; - } - } - const actualNumPts = pointIndex; - const pointIds = []; - for (let k = 0; k < actualNumPts - 1; ++k) { - pointIds.push(k); - } - if (model.close) { - pointIds.push(0); - } else { - pointIds.push(actualNumPts - 1); - } - lines.insertNextCell(pointIds); - output.setPoints(points); - output.getPointData().setTCoords(tcoords); - output.setLines(lines); - outData[0] = output; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - center: [0.0, 0.0, 0.0], - normal: [0.0, 0.0, 1.0], - majorRadiusVector: [1.0, 0.0, 0.0], - startAngle: 0.0, - segmentAngle: 90.0, - resolution: 100, - close: false, - outputPointsPrecision: DesiredOutputPrecision.SINGLE, - ratio: 1.0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Ensure resolution is at least 1 - if (model.resolution < 1) { - model.resolution = 1; - } - - // Build VTK API - macro.obj(publicAPI, model); - macro.algo(publicAPI, model, 0, 1); - macro.setGet(publicAPI, model, ['resolution', 'startAngle', 'segmentAngle', 'close', 'outputPointsPrecision', 'ratio']); - macro.setGetArray(publicAPI, model, ['center', 'normal', 'majorRadiusVector'], 3); - vtkEllipseArcSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkEllipseArcSource'); - -// ---------------------------------------------------------------------------- - -var vtkEllipseArcSource$1 = { - newInstance, - extend -}; - -export { vtkEllipseArcSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/FrustumSource.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/FrustumSource.d.ts deleted file mode 100644 index b75898b2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/FrustumSource.d.ts +++ /dev/null @@ -1,111 +0,0 @@ -import { DesiredOutputPrecision } from './../../Common/DataModel/DataSetAttributes'; -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import vtkPlanes from './../../Common/DataModel/Planes'; - -/** - * - */ -export interface IFrustumSourceInitialValues { - planes?: vtkPlanes; - showLines?: boolean; - outputPointsPrecision?: DesiredOutputPrecision; -} - -type vtkFrustumSourceBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkFrustumSource extends vtkFrustumSourceBase { - /** - * Get the output points precision. - */ - getOutputPointsPrecision(): DesiredOutputPrecision; - - /** - * Get the planes defining the frustum. - */ - getPlanes(): vtkPlanes; - - /** - * Get whether to show lines. - */ - getShowLines(): boolean; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Set the output points precision. - * @param {DesiredOutputPrecision} precision - */ - setOutputPointsPrecision(precision: DesiredOutputPrecision): boolean; - - /** - * Set the planes defining the frustum. - * @param {vtkPlanes} planes - */ - setPlanes(planes: vtkPlanes): boolean; - - /** - * Set whether to show lines. - * @param {Boolean} showLines - */ - setShowLines(showLines: boolean): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkFrustumSource characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IFrustumSourceInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IFrustumSourceInitialValues -): void; - -/** - * Method used to create a new instance of vtkFrustumSource. - * @param {IFrustumSourceInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IFrustumSourceInitialValues -): vtkFrustumSource; - -/** - * vtkFrustumSource creates a frustum defines by a set of planes. The frustum is - * represented with four-sided polygons. It is possible to specify extra lines - * to better visualize the field of view. - * - * @example - * ```js - * import vtkFrustumSource from '@kitware/vtk.js/Filters/Sources/FrustumSource'; - * - * const frustum = vtkFrustumSource.newInstance(); - * const camera = vtkCamera.newInstance(); - * camera.setClippingRange(0.1, 0.4); - * const planesArray = camera.getFrustumPlanes(1.0); - * const planes = vtkPlanes.newInstance(); - * planes.setFrustumPlanes(planesArray); - * frustum.setPlanes(planes); - * frustum.setShowLines(false); - * ``` - */ -export declare const vtkFrustumSource: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkFrustumSource; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/FrustumSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/FrustumSource.js deleted file mode 100644 index 92891395..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/FrustumSource.js +++ /dev/null @@ -1,248 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { b as vtkMath } from '../../Common/Core/Math/index.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import vtkPoints from '../../Common/Core/Points.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import { DesiredOutputPrecision } from '../../Common/DataModel/DataSetAttributes/Constants.js'; -import { VtkDataTypes } from '../../Common/Core/DataArray/Constants.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkFrustumSource methods -// ---------------------------------------------------------------------------- - -function vtkFrustumSource(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkFrustumSource'); - function computePoint(planeIndices, pt) { - // Get planes and their normals/origins - const plane0 = model.planes.getPlane(planeIndices[0]); - const n0 = plane0.getNormal(); - const p0 = plane0.getOrigin(); - const plane1 = model.planes.getPlane(planeIndices[1]); - const n1 = plane1.getNormal(); - const p1 = plane1.getOrigin(); - const plane2 = model.planes.getPlane(planeIndices[2]); - const n2 = plane2.getNormal(); - const p2 = plane2.getOrigin(); - - // Dot products - const d0 = vtkMath.dot(p0, n0); - const d1 = vtkMath.dot(p1, n1); - const d2 = vtkMath.dot(p2, n2); - - // Cross products - const c12 = [0, 0, 0]; - vtkMath.cross(n1, n2, c12); - const c20 = [0, 0, 0]; - vtkMath.cross(n2, n0, c20); - const c01 = [0, 0, 0]; - vtkMath.cross(n0, n1, c01); - - // Determinant - const d = vtkMath.determinant3x3([...n0, ...n1, ...n2]); - - // Intersection point - for (let i = 0; i < 3; ++i) { - pt[i] = (d0 * c12[i] + d1 * c20[i] + d2 * c01[i]) / d; - } - } - publicAPI.requestData = (inData, outData) => { - const output = outData[0] || vtkPolyData.newInstance(); - if (!model.planes || model.planes.getNumberOfPlanes() !== 6) { - vtkErrorMacro('vtkFrustum requires 6 planes.'); - return; - } - let nbPts = 8; - let leftRightNull = false; - let bottomTopNull = false; - let parallelFrustum = false; - - // angle between left and right planes - const n0 = model.planes.getPlane(0).getNormal().slice(); - const n1 = model.planes.getPlane(1).getNormal().slice(); - const c = [0, 0, 0]; - vtkMath.normalize(n0); - vtkMath.normalize(n1); - vtkMath.dot(n0, n1); - vtkMath.cross(n0, n1, c); - vtkMath.norm(c); - - // angle between bottom and top planes - n0.splice(0, 3, ...model.planes.getPlane(2).getNormal()); - n1.splice(0, 3, ...model.planes.getPlane(3).getNormal()); - vtkMath.normalize(n0); - vtkMath.normalize(n1); - vtkMath.dot(n0, n1); - vtkMath.cross(n0, n1, c); - vtkMath.norm(c); - if (model.showLines) { - const left = model.planes.getPlane(0).getNormal(); - const right = model.planes.getPlane(1).getNormal(); - const bottom = model.planes.getPlane(2).getNormal(); - const top = model.planes.getPlane(3).getNormal(); - const leftRight = [0, 0, 0]; - vtkMath.cross(left, right, leftRight); - leftRightNull = leftRight[0] === 0.0 && leftRight[1] === 0.0 && leftRight[2] === 0.0; - const bottomTop = [0, 0, 0]; - vtkMath.cross(bottom, top, bottomTop); - bottomTopNull = bottomTop[0] === 0.0 && bottomTop[1] === 0.0 && bottomTop[2] === 0.0; - parallelFrustum = leftRightNull && bottomTopNull; - if (parallelFrustum) { - // start at near points, just add the 4 extra far points. - nbPts += 4; - } else if (leftRightNull || bottomTopNull) { - // two extra starting points, and 4 extra far points. - nbPts += 6; - } else { - // there is an apex, and 4 extra far points - nbPts += 5; - } - } - let pointType = 0; - if (model.outputPointsPrecision === DesiredOutputPrecision.SINGLE) { - pointType = VtkDataTypes.FLOAT; - } else if (model.outputPointsPrecision === DesiredOutputPrecision.DOUBLE) { - pointType = VtkDataTypes.DOUBLE; - } - const newPoints = vtkPoints.newInstance({ - dataType: pointType - }); - newPoints.setNumberOfPoints(nbPts); - const pt = [0.0, 0.0, 0.0]; - const planes = [0, 0, 0]; - planes[0] = 0; // left - planes[1] = 2; // bottom - planes[2] = 5; // near - computePoint(planes, pt); - newPoints.setPoint(0, ...pt); - planes[0] = 1; - computePoint(planes, pt); - newPoints.setPoint(1, ...pt); - planes[1] = 3; - computePoint(planes, pt); - newPoints.setPoint(2, ...pt); - planes[0] = 0; - computePoint(planes, pt); - newPoints.setPoint(3, ...pt); - planes[1] = 2; - planes[2] = 4; // far - computePoint(planes, pt); - newPoints.setPoint(4, ...pt); - planes[0] = 1; - computePoint(planes, pt); - newPoints.setPoint(5, ...pt); - planes[1] = 3; - computePoint(planes, pt); - newPoints.setPoint(6, ...pt); - planes[0] = 0; - computePoint(planes, pt); - newPoints.setPoint(7, ...pt); - const numPolys = 6; - const newPolys = vtkCellArray.newInstance(); - newPolys.allocate(numPolys * 5); - - // left - newPolys.insertNextCell([4, 0, 3, 7]); - - // right - newPolys.insertNextCell([1, 5, 6, 2]); - - // bottom - newPolys.insertNextCell([0, 4, 5, 1]); - - // top - newPolys.insertNextCell([3, 2, 6, 7]); - - // near - newPolys.insertNextCell([0, 1, 2, 3]); - - // far - newPolys.insertNextCell([4, 7, 6, 5]); - let newLines = null; - if (model.showLines) { - const numLines = 4; - newLines = vtkCellArray.newInstance(); - newLines.allocate(numLines * 3); - const pts = [12, 8]; // apex, or first of the two extra near points. - - // line from lower-left corner - if (parallelFrustum) { - pts[0] = 0; - } - newLines.insertNextCell(pts); - - // line from lower-right corner - if (parallelFrustum) { - pts[0]++; - } else if (leftRightNull) { - pts[0] = 13; - } - pts[1]++; - newLines.insertNextCell(pts); - - // line from upper-right corner - if (parallelFrustum) { - pts[0]++; - } else if (bottomTopNull) { - pts[0] = 13; - } - pts[1]++; - newLines.insertNextCell(pts); - - // line from upper-left corner - if (parallelFrustum) { - pts[0]++; - } else if (leftRightNull) { - pts[0] = 12; - } - pts[1]++; - newLines.insertNextCell(pts); - output.setLines(newLines); - } - output.setPoints(newPoints); - output.setPolys(newPolys); - outData[0] = output; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - planes: null, - showLines: true, - outputPointsPrecision: DesiredOutputPrecision.DEFAULT -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - - // Also make it an algorithm with no input and one output - macro.algo(publicAPI, model, 0, 1); - macro.setGet(publicAPI, model, ['showLines', 'outputPointsPrecision', 'planes']); - vtkFrustumSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkFrustumSource'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ImageGridSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ImageGridSource.js deleted file mode 100644 index 02f01415..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ImageGridSource.js +++ /dev/null @@ -1,117 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkImageData from '../../Common/DataModel/ImageData.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; - -// ---------------------------------------------------------------------------- -// vtkImageGridSource methods -// ---------------------------------------------------------------------------- - -function vtkImageGridSource(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkImageGridSource'); - publicAPI.requestData = (inData, outData) => { - const state = {}; - const dataset = { - type: 'vtkImageData', - mtime: model.mtime, - metadata: { - source: 'vtkImageGridSource', - state - } - }; - - // Add parameter used to create dataset as metadata.state[*] - ['gridSpacing', 'gridOrigin', 'dataSpacing', 'dataOrigin'].forEach(field => { - state[field] = [].concat(model[field]); - }); - const id = vtkImageData.newInstance(dataset); - id.setOrigin(model.dataOrigin[0], model.dataOrigin[1], model.dataOrigin[2]); - id.setSpacing(model.dataSpacing[0], model.dataSpacing[1], model.dataSpacing[2]); - id.setExtent.apply(this, model.dataExtent); - id.setDirection(model.dataDirection); - let dims = [0, 0, 0]; - dims = dims.map((_, i) => model.dataExtent[i * 2 + 1] - model.dataExtent[i * 2] + 1); - const newArray = new Uint8Array(dims[0] * dims[1] * dims[2]); - let xval = 0; - let yval = 0; - let zval = 0; - let i = 0; - for (let z = model.dataExtent[4]; z <= model.dataExtent[5]; z++) { - if (model.gridSpacing[2]) { - zval = z % model.gridSpacing[2] === model.gridOrigin[2]; - } else { - zval = 0; - } - for (let y = model.dataExtent[2]; y <= model.dataExtent[3]; y++) { - if (model.gridSpacing[1]) { - yval = y % model.gridSpacing[1] === model.gridOrigin[1]; - } else { - yval = 0; - } - for (let x = model.dataExtent[0]; x <= model.dataExtent[1]; x++) { - if (model.gridSpacing[0]) { - xval = x % model.gridSpacing[0] === model.gridOrigin[0]; - } else { - xval = 0; - } - newArray[i] = zval || yval || xval ? model.lineValue : model.fillValue; - i++; - } - } - } - const da = vtkDataArray.newInstance({ - numberOfComponents: 1, - values: newArray - }); - da.setName('scalars'); - const cpd = id.getPointData(); - cpd.setScalars(da); - - // Update output - outData[0] = id; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - lineValue: 0, - fillValue: 255, - gridSpacing: [10, 10, 0], - gridOrigin: [0, 0, 0], - dataSpacing: [1.0, 1.0, 1.0], - dataOrigin: [0.0, 0.0, 0.0], - dataExtent: [0, 255, 0, 255, 0, 0], - dataDirection: [1, 0, 0, 0, 1, 0, 0, 0, 1] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['lineValue', 'fillValue']); - macro.setGetArray(publicAPI, model, ['gridOrigin', 'gridSpacing', 'dataOrigin', 'dataSpacing'], 3); - macro.setGetArray(publicAPI, model, ['dataExtent'], 6); - macro.setGetArray(publicAPI, model, ['dataDirection'], 9); - macro.algo(publicAPI, model, 0, 1); - vtkImageGridSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImageGridSource'); - -// ---------------------------------------------------------------------------- - -var vtkImageGridSource$1 = { - newInstance, - extend -}; - -export { vtkImageGridSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/LineSource.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/LineSource.d.ts deleted file mode 100644 index 992eba51..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/LineSource.d.ts +++ /dev/null @@ -1,140 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { Vector3 } from './../../types'; - -/** - * - */ -export interface ILineSourceInitialValues { - resolution?: number; - point1?: Vector3; - point2?: Vector3; - pointType?: string; -} - -type vtkLineSourceBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkLineSource extends vtkLineSourceBase { - /** - * Get the starting point of the line. - * @default [-1, 0, 0] - */ - getPoint1(): Vector3; - - /** - * Get the starting point of the line. - */ - getPoint1ByReference(): Vector3; - - /** - * Get the ending point of the line. - * @default [1, 0, 0] - */ - getPoint2(): Vector3; - - /** - * Get the ending point of the line. - */ - getPoint2ByReference(): Vector3; - - /** - * Get the resolution of the line. - * @default 6 - */ - getResolution(): number; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Set the starting point of the line. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setPoint1(x: number, y: number, z: number): boolean; - - /** - * Set the starting point of the line. - * @param {Vector3} point1 The starting point's coordinates. - */ - setPoint1(point1: Vector3): boolean; - - /** - * Set the starting point of the line. - * @param {Vector3} point1 The starting point's coordinates. - */ - setPoint1From(point1: Vector3): boolean; - - /** - * Set the ending point of the line. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setPoint2(x: number, y: number, z: number): boolean; - - /** - * Set the ending point of the line. - * @param {Vector3} point2 The ending point's coordinates. - */ - setPoint2From(point2: Vector3): boolean; - - /** - * Set the number of segments used to represent the line. - * @param {Number} resolution The number of segments. - */ - setResolution(resolution: number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkLineSource characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ILineSourceInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ILineSourceInitialValues -): void; - -/** - * Method used to create a new instance of vtkLineSource. - * @param {ILineSourceInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ILineSourceInitialValues -): vtkLineSource; - -/** - * vtkLineSource creates a line segment from point1 to point2; - * The resolution can be specified, which determines the number of points along the line. - * Following a vtkLineSource by a vtkTubeFilter is a convenient way to create a cylinder based on endpoints. - * - * @example - * ```js - * import vtkLineSource from '@kitware/vtk.js/Filters/Sources/LineSource'; - * - * const line = vtkLineSource.newInstance({ resolution: 10 }); - * const polydata = line.getOutputData(); - * ``` - */ -export declare const vtkLineSource: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkLineSource; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/LineSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/LineSource.js deleted file mode 100644 index f1d318ad..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/LineSource.js +++ /dev/null @@ -1,99 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import { s as subtract, n as norm } from '../../Common/Core/Math/index.js'; - -const { - vtkWarningMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkLineSource methods -// ---------------------------------------------------------------------------- - -function vtkLineSource(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkLineSource'); - publicAPI.requestData = (inData, outData) => { - const dataset = outData[0]; - - // Check input - const pointDataType = dataset ? dataset.getPoints().getDataType() : model.pointType; - const pd = dataset?.initialize() || vtkPolyData.newInstance(); - const v21 = []; - subtract(model.point2, model.point1, v21); - if (norm(v21) <= 0.0) { - vtkWarningMacro('Zero-length line definition'); - return; - } - - // hand create a line with special scalars - const res = model.resolution; - const numPts = res + 1; - - // Points - const points = macro.newTypedArray(pointDataType, numPts * 3); - pd.getPoints().setData(points, 3); - - // Cells - const lines = new Uint32Array(numPts + 1); - pd.getLines().setData(lines, 1); - let idx = 0; - let t = 0.0; - for (let i = 0; i < res + 1; i++) { - t = i / res; - points[idx * 3] = model.point1[0] + t * v21[0]; - points[idx * 3 + 1] = model.point1[1] + t * v21[1]; - points[idx * 3 + 2] = model.point1[2] + t * v21[2]; - idx++; - } - - // Generate line connectivity - // - idx = 0; - lines[0] = numPts; - for (let i = 0; i < numPts; i++) { - lines[i + 1] = i; - } - - // Update output - outData[0] = pd; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - resolution: 10, - point1: [-1, 0, 0], - point2: [1, 0, 0], - pointType: 'Float64Array' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['resolution']); - macro.setGetArray(publicAPI, model, ['point1', 'point2'], 3); - macro.algo(publicAPI, model, 0, 1); - vtkLineSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkLineSource'); - -// ---------------------------------------------------------------------------- - -var vtkLineSource$1 = { - newInstance, - extend -}; - -export { vtkLineSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PlaneSource.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PlaneSource.d.ts deleted file mode 100644 index 81f336c2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PlaneSource.d.ts +++ /dev/null @@ -1,256 +0,0 @@ -import { vec3 } from 'gl-matrix'; -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { Vector3 } from './../../types'; - -/** - * - */ -export interface IPlaneSourceInitialValues { - xResolution?: number; - yResolution?: number; - origin?: Vector3; - point1?: Vector3; - point2?: Vector3; - pointType?: string; -} - -type vtkPlaneSourceBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkPlaneSource extends vtkPlaneSourceBase { - /** - * Get the center of the plane. - * @default [0, 0, 0] - */ - getCenter(): Vector3; - - /** - * Get the center of the plane. - */ - getCenterByReference(): Vector3; - - /** - * Get the normal of the plane. - * @default [0, 0, 1] - */ - getNormal(): Vector3; - - /** - * Get the normal of the plane. - */ - getNormalByReference(): Vector3; - - /** - * Get the origin of the plane, lower-left corner. - * @default [0, 0, 0] - */ - getOrigin(): Vector3; - - /** - * Get the origin of the plane, lower-left corner. - */ - getOriginByReference(): Vector3; - - /** - * Get the x axes of the plane. - * @default [1, 0, 0] - */ - getPoint1(): Vector3; - - /** - * Get the x axes of the plane. - */ - getPoint1ByReference(): Vector3; - - /** - * Get the y axes of the plane. - * @default [0, 1, 0] - */ - getPoint2(): Vector3; - - /** - * Get the y axes of the plane. - */ - getPoint2ByReference(): Vector3; - - /** - * Get the x resolution of the plane. - * @default 10 - */ - getXResolution(): number; - - /** - * Get the y resolution of the plane. - * @default 10 - */ - getYResolution(): number; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Rotate plane around a given axis - * @param angle theta Angle (radian) to rotate about - * @param rotationAxis Axis to rotate around - */ - rotate(angle: number, rotationAxis: vec3): void; - - /** - * Set the center of the plane. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setCenter(x: number, y: number, z: number): void; - - /** - * Set the center of the plane. - * @param {Vector3} center The coordinate of the center point. - */ - setCenter(center: Vector3): void; - - /** - * Set the normal of the plane. - * @param {Vector3} normal The normal coordinate. - */ - setNormal(normal: Vector3): boolean; - - /** - * Set the normal of the plane. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setNormal(x: number, y: number, z: number): boolean; - - /** - * Set the normal of the plane. - * @param {Vector3} normal The normal coordinate. - */ - setNormalFrom(normal: Vector3): boolean; - - /** - * Set the origin of the plane. - * @param {Vector3} origin The coordinate of the origin point. - */ - setOrigin(origin: Vector3): boolean; - - /** - * Set the origin of the plane. - * @param {Number} x The x coordinate of the origin point. - * @param {Number} y The y coordinate of the origin point. - * @param {Number} z The z coordinate of the origin point. - */ - setOrigin(x: number, y: number, z: number): boolean; - - /** - * Set the origin of the plane. - * @param {Vector3} origin The coordinate of the origin point. - */ - setOriginFrom(origin: Vector3): boolean; - - /** - * Specify a point defining the first axis of the plane. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setPoint1(x: number, y: number, z: number): boolean; - - /** - * Specify a point defining the first axis of the plane. - * @param {Vector3} point1 - */ - setPoint1(point1: Vector3): boolean; - - /** - * Specify a point defining the second axis of the plane. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setPoint2(x: number, y: number, z: number): boolean; - - /** - * Specify a point defining the second axis of the plane. - * @param {Vector3} point2 - */ - setPoint2(point2: Vector3): boolean; - - /** - * Set the number of facets used to represent the cone. - * @param {Number} xResolution - */ - setXResolution(xResolution: number): boolean; - - /** - * Set the number of facets used to represent the cone. - * @param {Number} yResolution - */ - setYResolution(yResolution: number): boolean; - - /** - * - * @param {vec3} v1 - * @param {vec3} v2 - */ - updatePlane(v1: vec3, v2: vec3): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkPlaneSource characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPlaneSourceInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPlaneSourceInitialValues -): void; - -/** - * Method used to create a new instance of vtkPlaneSource. - * @param {IPlaneSourceInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IPlaneSourceInitialValues -): vtkPlaneSource; - -/** - * vtkPlaneSource creates an m x n array of quadrilaterals arranged as a regular - * tiling in a plane. The plane is defined by specifying an origin point, and then - * two other points that, together with the origin, define two axes for the plane. - * These axes do not have to be orthogonal - so you can create a parallelogram. - * (The axes must not be parallel.) The resolution of the plane (i.e., number of - * subdivisions) is controlled by the ivars XResolution and YResolution. - * - * By default, the plane is centered at the origin and perpendicular to the z-axis, - * with width and height of length 1 and resolutions set to 1. - * - * @example - * ```js - * import vtkPlaneSource from '@kitware/vtk.js/Filters/Sources/PlaneSource'; - * - * const plane = vtkPlaneSource.newInstance({ xResolution: 10, yResolution: 10 }); - * const polydata = plane.getOutputData(); - * ``` - */ -export declare const vtkPlaneSource: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkPlaneSource; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PlaneSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PlaneSource.js deleted file mode 100644 index 3f3e68d1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PlaneSource.js +++ /dev/null @@ -1,261 +0,0 @@ -import { mat4, vec3 } from 'gl-matrix'; -import { m as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import { s as subtract, l as normalize, d as dot, j as cross, r as radiansFromDegrees } from '../../Common/Core/Math/index.js'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; - -const { - vtkWarningMacro -} = macro; -const EPSILON = 1e-6; - -// ---------------------------------------------------------------------------- -// vtkPlaneSource methods -// ---------------------------------------------------------------------------- - -function vtkPlaneSource(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPlaneSource'); - publicAPI.requestData = (inData, outData) => { - const dataset = outData[0]; - - // Check input - const pointDataType = dataset ? dataset.getPoints().getDataType() : model.pointType; - const pd = dataset?.initialize() || vtkPolyData.newInstance(); - const v10 = []; - const v20 = []; - subtract(model.point1, model.origin, v10); - subtract(model.point2, model.origin, v20); - if (!publicAPI.updatePlane(v10, v20)) { - vtkWarningMacro('Bad plane definition'); - return; - } - - // hand create a plane with special scalars - const xres = model.xResolution; - const yres = model.yResolution; - const numPts = (xres + 1) * (yres + 1); - const numPolys = xres * yres; - - // Points - const points = macro.newTypedArray(pointDataType, numPts * 3); - pd.getPoints().setData(points, 3); - - // Cells - const polys = new Uint32Array(5 * numPolys); - pd.getPolys().setData(polys, 1); - - // Normals - const normalsData = new Float32Array(numPts * 3); - const normals = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: normalsData, - name: 'Normals' - }); - pd.getPointData().setNormals(normals); - - // Texture coords - const tcData = new Float32Array(numPts * 2); - const tcoords = vtkDataArray.newInstance({ - numberOfComponents: 2, - values: tcData, - name: 'TextureCoordinates' - }); - pd.getPointData().setTCoords(tcoords); - const tc = new Float32Array(2); - let idx = 0; - for (let j = 0; j < yres + 1; j++) { - tc[1] = j / yres; - for (let i = 0; i < xres + 1; i++) { - tc[0] = i / xres; - points[idx * 3] = model.origin[0] + tc[0] * v10[0] + tc[1] * v20[0]; - points[idx * 3 + 1] = model.origin[1] + tc[0] * v10[1] + tc[1] * v20[1]; - points[idx * 3 + 2] = model.origin[2] + tc[0] * v10[2] + tc[1] * v20[2]; - tcData[idx * 2] = tc[0]; - tcData[idx * 2 + 1] = tc[1]; - normalsData[idx * 3] = model.normal[0]; - normalsData[idx * 3 + 1] = model.normal[1]; - normalsData[idx * 3 + 2] = model.normal[2]; - idx++; - } - } - - // Generate polygon connectivity - // - idx = 0; - for (let j = 0; j < yres; j++) { - for (let i = 0; i < xres; i++) { - polys[idx * 5 + 0] = 4; - polys[idx * 5 + 1] = i + j * (xres + 1); - polys[idx * 5 + 2] = polys[idx * 5 + 1] + 1; - polys[idx * 5 + 3] = polys[idx * 5 + 1] + xres + 2; - polys[idx * 5 + 4] = polys[idx * 5 + 1] + xres + 1; - idx++; - } - } - - // Update output - outData[0] = pd; - }; - publicAPI.setNormal = function () { - let n = []; - if (arguments.length === 1 || Array.isArray(arguments.length <= 0 ? undefined : arguments[0])) { - n = [...(arguments.length <= 0 ? undefined : arguments[0])]; - } else if (arguments.length === 3) { - n = [arguments.length <= 0 ? undefined : arguments[0], arguments.length <= 1 ? undefined : arguments[1], arguments.length <= 2 ? undefined : arguments[2]]; - } - if (normalize(n) !== 0) { - const dp = dot(model.normal, n); - let theta = 0; - const rotationVector = []; - if (dp < 1.0) { - if (dp <= -1.0) { - theta = radiansFromDegrees(180.0); - subtract(model.point1, model.origin, rotationVector); - } else { - cross(model.normal, n, rotationVector); - theta = Math.acos(dp); - } - publicAPI.rotate(theta, rotationVector); - } - } - }; - - /** - * Rotate plane around a given axis - * @param {float} theta Angle (radian) to rotate about - * @param {vec3} rotationAxis Axis to rotate around - */ - publicAPI.rotate = (angle, rotationAxis) => { - if (Math.abs(angle) < EPSILON) { - return; - } - // Create rotation matrix - const transform = mat4.identity(new Float64Array(16)); - const negCenter = []; - vec3.negate(negCenter, model.center); - mat4.translate(transform, transform, model.center); - mat4.rotate(transform, transform, angle, rotationAxis); - mat4.translate(transform, transform, negCenter); - vec3.transformMat4(model.origin, model.origin, transform); - vec3.transformMat4(model.point1, model.point1, transform); - vec3.transformMat4(model.point2, model.point2, transform); - vtkMatrixBuilder.buildFromRadian().rotate(angle, rotationAxis).apply(model.normal); - publicAPI.modified(); - }; - publicAPI.setCenter = function () { - let c = []; - if (arguments.length === 1 || Array.isArray(arguments.length <= 0 ? undefined : arguments[0])) { - c = [...(arguments.length <= 0 ? undefined : arguments[0])]; - } else if (arguments.length === 3) { - c = [arguments.length <= 0 ? undefined : arguments[0], arguments.length <= 1 ? undefined : arguments[1], arguments.length <= 2 ? undefined : arguments[2]]; - } - if (!vec3.exactEquals(c, model.center)) { - const v1 = []; - subtract(model.point1, model.origin, v1); - const v2 = []; - subtract(model.point2, model.origin, v2); - for (let i = 0; i < 3; i++) { - model.center[i] = c[i]; - model.origin[i] = model.center[i] - 0.5 * (v1[i] + v2[i]); - model.point1[i] = model.origin[i] + v1[i]; - model.point2[i] = model.origin[i] + v2[i]; - } - publicAPI.modified(); - } - }; - publicAPI.setPoint1 = function () { - let point1 = []; - if (arguments.length === 1 || Array.isArray(arguments.length <= 0 ? undefined : arguments[0])) { - point1 = [...(arguments.length <= 0 ? undefined : arguments[0])]; - } else if (arguments.length === 3) { - point1 = [arguments.length <= 0 ? undefined : arguments[0], arguments.length <= 1 ? undefined : arguments[1], arguments.length <= 2 ? undefined : arguments[2]]; - } - if (!vec3.exactEquals(point1, model.point1)) { - const v1 = []; - const v2 = []; - model.point1 = [...point1]; - subtract(model.point1, model.origin, v1); - subtract(model.point2, model.origin, v2); - - // set plane normal - publicAPI.updatePlane(v1, v2); - publicAPI.modified(); - } - }; - publicAPI.setPoint2 = function () { - let point2 = []; - if (arguments.length === 1 || Array.isArray(arguments.length <= 0 ? undefined : arguments[0])) { - point2 = [...(arguments.length <= 0 ? undefined : arguments[0])]; - } else if (arguments.length === 3) { - point2 = [arguments.length <= 0 ? undefined : arguments[0], arguments.length <= 1 ? undefined : arguments[1], arguments.length <= 2 ? undefined : arguments[2]]; - } - if (!vec3.exactEquals(point2, model.point2)) { - const v1 = []; - const v2 = []; - model.point2 = [...point2]; - subtract(model.point1, model.origin, v1); - subtract(model.point2, model.origin, v2); - - // set plane normal - publicAPI.updatePlane(v1, v2); - publicAPI.modified(); - } - }; - publicAPI.updatePlane = (v1, v2) => { - // set plane center - for (let i = 0; i < 3; i++) { - model.center[i] = model.origin[i] + 0.5 * (v1[i] + v2[i]); - } - - // set plane normal - cross(v1, v2, model.normal); - return normalize(model.normal) !== 0.0; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - xResolution: 10, - yResolution: 10, - origin: [0, 0, 0], - point1: [1, 0, 0], - point2: [0, 1, 0], - pointType: 'Float64Array' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - model.normal = [0, 0, 1]; - model.center = [0, 0, 0]; - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['xResolution', 'yResolution']); - macro.setGetArray(publicAPI, model, ['origin'], 3); - macro.getArray(publicAPI, model, ['point1', 'point2', 'normal', 'center'], 3); - macro.algo(publicAPI, model, 0, 1); - vtkPlaneSource(publicAPI, model); - publicAPI.setPoint1(model.point1); - publicAPI.setPoint2(model.point2); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPlaneSource'); - -// ---------------------------------------------------------------------------- - -var vtkPlaneSource$1 = { - newInstance, - extend -}; - -export { vtkPlaneSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PlatonicSolidSource.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PlatonicSolidSource.d.ts deleted file mode 100644 index 72f6e81c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PlatonicSolidSource.d.ts +++ /dev/null @@ -1,109 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { DesiredOutputPrecision } from './../../Common/DataModel/DataSetAttributes'; -import { SolidType } from './PlatonicSolidSource/Constants'; - -/** - * - */ -export interface IPlatonicSolidSourceInitialValues { - solidType?: SolidType; - outputPointsPrecision?: DesiredOutputPrecision; - scale?: number; -} - -type vtkPlatonicSolidSourceBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkPlatonicSolidSource extends vtkPlatonicSolidSourceBase { - /** - * Get the desired output precision. - * @returns {DesiredOutputPrecision} - */ - getOutputPointsPrecision(): DesiredOutputPrecision; - - /** - * Get the scale factor of the source. - */ - getScale(): number; - - /** - * Get the solid type of the source. - * @returns {SolidType} - */ - getSolidType(): SolidType; - - /** - * Request data for the source. - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Set the desired output precision. - * @param {DesiredOutputPrecision} outputPointsPrecision - */ - setOutputPointsPrecision( - outputPointsPrecision: DesiredOutputPrecision - ): boolean; - - /** - * Set the scale factor of the source. - * @param {Number} scale The scale factor. - */ - setScale(scale: number): boolean; - - /** - * Set the solid type of the source. - * @param {SolidType} solidType - */ - setSolidType(solidType: SolidType): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkPlatonicSolidSource characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPlatonicSolidSourceInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPlatonicSolidSourceInitialValues -): void; - -/** - * Method used to create a new instance of vtkPlatonicSolidSource. - * @param {IPlatonicSolidSourceInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IPlatonicSolidSourceInitialValues -): vtkPlatonicSolidSource; - -/** - * vtkPlatonicSolidSource can generate each of the five Platonic solids: - * tetrahedron, cube, octahedron, icosahedron, and dodecahedron. Each of the - * solids is placed inside a sphere centered at the origin with radius 1.0. - * - * @example - * ```js - * import vtkPlatonicSolidSource from '@kitware/vtk.js/Filters/Sources/RegularPolygonSource'; - * - * const regularPolygonSource = vtkPlatonicSolidSource.newInstance(); - * const polydata = regularPolygonSource.getOutputData(); - * ``` - */ -export declare const vtkPlatonicSolidSource: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkPlatonicSolidSource; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PlatonicSolidSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PlatonicSolidSource.js deleted file mode 100644 index f1aa59af..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PlatonicSolidSource.js +++ /dev/null @@ -1,149 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkPoints from '../../Common/Core/Points.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import { SolidType } from './PlatonicSolidSource/Constants.js'; -import { DesiredOutputPrecision } from '../../Common/DataModel/DataSetAttributes/Constants.js'; -import { VtkDataTypes } from '../../Common/Core/DataArray/Constants.js'; - -const a = 0.61803398875; -const b = 0.38196601125; -const c = 0.5; -const d = 0.30901699; -const e = Math.sqrt(2); -const f = Math.sqrt(3.0); -const geometries = { - tetrahedron: { - points: [1, 1, 1, -1, 1, -1, 1, -1, -1, -1, -1, 1], - cells: [0, 2, 1, 1, 2, 3, 0, 3, 2, 0, 1, 3], - numPoints: 4, - cellSize: 3, - numCells: 4, - scale: 1.0 / f - }, - cube: { - points: [-1, -1, -1, 1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, 1, 1, -1, 1, 1, 1, 1, -1, 1, 1], - cells: [0, 1, 5, 4, 0, 4, 7, 3, 4, 5, 6, 7, 3, 7, 6, 2, 1, 2, 6, 5, 0, 3, 2, 1], - numPoints: 8, - cellSize: 4, - numCells: 6, - scale: 1.0 / f - }, - octahedron: { - points: [-1, -1, 0, 1, -1, 0, 1, 1, 0, -1, 1, 0, 0, 0, -e, 0, 0, e], - cells: [4, 1, 0, 4, 2, 1, 4, 3, 2, 4, 0, 3, 0, 1, 5, 1, 2, 5, 2, 3, 5, 3, 0, 5], - numPoints: 6, - cellSize: 3, - numCells: 8, - scale: 1.0 / e - }, - icosahedron: { - points: [0, d, -c, 0, d, c, 0, -d, c, -d, c, 0, -d, -c, 0, d, c, 0, d, -c, 0, 0, -d, -c, c, 0, d, -c, 0, d, -c, 0, -d, c, 0, -d], - cells: [0, 3, 5, 1, 5, 3, 1, 9, 2, 1, 2, 8, 0, 11, 7, 0, 7, 10, 2, 4, 6, 7, 6, 4, 3, 10, 9, 4, 9, 10, 5, 8, 11, 6, 11, 8, 1, 3, 9, 1, 8, 5, 0, 10, 3, 0, 5, 11, 7, 4, 10, 7, 11, 6, 2, 9, 4, 2, 6, 8], - numPoints: 12, - cellSize: 3, - numCells: 20, - scale: 1.0 / 0.58778524999243 - }, - dodecahedron: { - points: [b, 0, 1, -b, 0, 1, b, 0, -1, -b, 0, -1, 0, 1, -b, 0, 1, b, 0, -1, -b, 0, -1, b, 1, b, 0, 1, -b, 0, -1, b, 0, -1, -b, 0, -a, a, a, a, -a, a, -a, -a, -a, a, a, -a, a, a, a, -a, a, -a, -a, -a, a, a, -a, -a], - cells: [0, 16, 5, 12, 1, 1, 18, 7, 13, 0, 2, 19, 6, 14, 3, 3, 17, 4, 15, 2, 4, 5, 16, 8, 15, 5, 4, 17, 10, 12, 6, 7, 18, 11, 14, 7, 6, 19, 9, 13, 8, 16, 0, 13, 9, 9, 19, 2, 15, 8, 10, 17, 3, 14, 11, 11, 18, 1, 12, 10], - numPoints: 20, - cellSize: 5, - numCells: 12, - scale: 1.0 / 1.070466269319 - } -}; - -// ---------------------------------------------------------------------------- -// vtkPlatonicSolidSource methods -// ---------------------------------------------------------------------------- - -function vtkPlatonicSolidSource(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPlatonicSolidSource'); - publicAPI.requestData = (inData, outData) => { - const output = outData[0]?.initialize() || vtkPolyData.newInstance(); - let solidData; - switch (model.solidType) { - case SolidType.VTK_SOLID_TETRAHEDRON: - solidData = geometries.tetrahedron; - break; - case SolidType.VTK_SOLID_CUBE: - solidData = geometries.cube; - break; - case SolidType.VTK_SOLID_OCTAHEDRON: - solidData = geometries.octahedron; - break; - case SolidType.VTK_SOLID_ICOSAHEDRON: - solidData = geometries.icosahedron; - break; - case SolidType.VTK_SOLID_DODECAHEDRON: - solidData = geometries.dodecahedron; - break; - default: - solidData = geometries.tetrahedron; - break; - } - let pointType; - if (model.outputPointsPrecision === DesiredOutputPrecision.SINGLE) { - pointType = VtkDataTypes.FLOAT; - } else if (model.outputPointsPrecision === DesiredOutputPrecision.DOUBLE) { - pointType = VtkDataTypes.DOUBLE; - } - const points = vtkPoints.newInstance({ - dataType: pointType, - numberOfPoints: solidData.numPoints - }); - for (let i = 0; i < solidData.points.length; i += 3) { - points.insertNextPoint(solidData.scale * solidData.points[i] * model.scale, solidData.scale * solidData.points[i + 1] * model.scale, solidData.scale * solidData.points[i + 2] * model.scale); - } - const polys = vtkCellArray.newInstance(); - for (let i = 0; i < solidData.cells.length; i += solidData.cellSize) { - const cell = solidData.cells.slice(i, i + solidData.cellSize); - polys.insertNextCell(cell); - } - output.setPoints(points); - output.setPolys(polys); - outData[0] = output; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - solidType: SolidType.VTK_SOLID_TETRAHEDRON, - outputPointsPrecision: DesiredOutputPrecision.DEFAULT, - scale: 1 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['solidType', 'outputPointsPrecision', 'scale']); - macro.algo(publicAPI, model, 0, 1); - - // Object methods - vtkPlatonicSolidSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPlatonicSolidSource'); - -// ---------------------------------------------------------------------------- - -var vtkPlatonicSolidSource$1 = { - newInstance, - extend, - SolidType -}; - -export { vtkPlatonicSolidSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PlatonicSolidSource/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PlatonicSolidSource/Constants.d.ts deleted file mode 100644 index 9b69e18a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PlatonicSolidSource/Constants.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export declare enum SolidType { - VTK_SOLID_TETRAHEDRON = 0, - VTK_SOLID_CUBE = 1, - VTK_SOLID_OCTAHEDRON = 2, - VTK_SOLID_ICOSAHEDRON = 3, - VTK_SOLID_DODECAHEDRON = 4, -} - -declare const _default: { - SolidType: typeof SolidType; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PlatonicSolidSource/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PlatonicSolidSource/Constants.js deleted file mode 100644 index 6f48288a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PlatonicSolidSource/Constants.js +++ /dev/null @@ -1,12 +0,0 @@ -const SolidType = { - VTK_SOLID_TETRAHEDRON: 0, - VTK_SOLID_CUBE: 1, - VTK_SOLID_OCTAHEDRON: 2, - VTK_SOLID_ICOSAHEDRON: 3, - VTK_SOLID_DODECAHEDRON: 4 -}; -var Constants = { - SolidType -}; - -export { SolidType, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PointSource.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PointSource.d.ts deleted file mode 100644 index 1b35f3ee..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PointSource.d.ts +++ /dev/null @@ -1,132 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { Vector3 } from './../../types'; - -/** - * - */ -export interface IPointSourceInitialValues { - numberOfPoints?: number; - center?: Vector3; - radius?: number; - pointType?: string; -} - -type vtkPointSourceBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkPointSource extends vtkPointSourceBase { - /** - * Get the center of the plane. - * @default [0, 0, 0] - */ - getCenter(): Vector3; - - /** - * Get the center of the plane. - */ - getCenterByReference(): Vector3; - - /** - * Get the number of points to generate. - * @default 10 - */ - getNumberOfPoints(): number; - - /** - * Get the radius of the point cloud. - * @default 0.5 - */ - getRadius(): number; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Set the center of the point cloud. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setCenter(x: number, y: number, z: number): boolean; - - /** - * Set the center of the point cloud. - * @param {Vector3} center The center point's coordinates. - */ - setCenter(center: Vector3): boolean; - - /** - * Set the center of the point cloud. - * @param {Vector3} center The center point's coordinates. - */ - setCenterFrom(center: Vector3): boolean; - - /** - * Set the number of points to generate. - * @param {Number} numberOfPoints The number of points to generate. - */ - setNumberOfPoints(numberOfPoints: number): boolean; - - /** - * Set the radius of the point cloud. If you are generating a Gaussian - * distribution, then this is the standard deviation for each of x, y, and - * z. - * @param {Number} radius The radius value. - */ - setRadius(radius: number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkPointSource characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPointSourceInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPointSourceInitialValues -): void; - -/** - * Method used to create a new instance of vtkPointSource. - * @param {IPointSourceInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IPointSourceInitialValues -): vtkPointSource; - -/** - * vtkPointSource is a source object that creates a user-specified number of - * points within a specified radius about a specified center point. By default - * location of the points is random within the sphere. It is also possible to - * generate random points only on the surface of the sphere. The output PolyData - * has the specified number of points and 1 cell - a vtkPolyVertex containing - * all of the points. - * - * @example - * ```js - * import vtkPointSource from '@kitware/vtk.js/Filters/Sources/PointSource'; - * - * const point = vtkPointSource.newInstance({ numberOfPoints: 10 }); - * const polydata = point.getOutputData(); - * ``` - */ -export declare const vtkPointSource: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkPointSource; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PointSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PointSource.js deleted file mode 100644 index 57a0e294..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/PointSource.js +++ /dev/null @@ -1,93 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { y as random } from '../../Common/Core/Math/index.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; - -// ---------------------------------------------------------------------------- -// vtkPointSource methods -// ---------------------------------------------------------------------------- - -function vtkPointSource(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPointSource'); - publicAPI.requestData = (inData, outData) => { - const dataset = outData[0]; - - // Check input - const pointDataType = dataset ? dataset.getPoints().getDataType() : model.pointType; - const pd = dataset?.initialize() || vtkPolyData.newInstance(); - - // hand create a point cloud - const numPts = model.numberOfPoints; - - // Points - const points = macro.newTypedArray(pointDataType, numPts * 3); - pd.getPoints().setData(points, 3); - - // Cells - const verts = new Uint32Array(numPts + 1); - pd.getVerts().setData(verts, 1); - let cosphi; - let sinphi; - let rho; - let radius; - let theta; - for (let i = 0; i < numPts; i++) { - cosphi = 1 - 2.0 * random(); - sinphi = Math.sqrt(1 - cosphi * cosphi); - rho = model.radius * random() ** 0.33333333; - radius = rho * sinphi; - theta = 2.0 * Math.PI * random(); - points[i * 3] = model.center[0] + radius * Math.cos(theta); - points[i * 3 + 1] = model.center[1] + radius * Math.sin(theta); - points[i * 3 + 2] = model.center[2] + rho * cosphi; - } - - // Generate point connectivity - // - verts[0] = numPts; - for (let i = 0; i < numPts; i++) { - verts[i + 1] = i; - } - - // Update output - outData[0] = pd; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - numberOfPoints: 10, - center: [0, 0, 0], - radius: 0.5, - pointType: 'Float64Array' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['numberOfPoints', 'radius']); - macro.setGetArray(publicAPI, model, ['center'], 3); - macro.algo(publicAPI, model, 0, 1); - vtkPointSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPointSource'); - -// ---------------------------------------------------------------------------- - -var vtkPointSource$1 = { - newInstance, - extend -}; - -export { vtkPointSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/RTAnalyticSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/RTAnalyticSource.js deleted file mode 100644 index 5a2d3cb0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/RTAnalyticSource.js +++ /dev/null @@ -1,111 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkImageData from '../../Common/DataModel/ImageData.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; - -// ---------------------------------------------------------------------------- - -function vtkRTAnalyticSource(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkRTAnalyticSource'); - publicAPI.requestData = (inData, outData) => { - const state = {}; - const dataset = { - type: 'vtkImageData', - mtime: model.mtime, - metadata: { - source: 'vtkRTAnalyticSource', - state - } - }; - - // Add parameter used to create dataset as metadata.state[*] - ['standardDeviation', 'center', 'frequency', 'magnitude', 'maximum'].forEach(field => { - state[field] = [].concat(model[field]); - }); - const id = vtkImageData.newInstance(dataset); - id.setSpacing(1.0, 1.0, 1.0); - id.setExtent.apply(this, model.wholeExtent); - id.setOrigin(0.0, 0.0, 0.0); - id.setDirection(model.dataDirection); - let dims = [0, 0, 0]; - dims = dims.map((_, i) => model.wholeExtent[i * 2 + 1] - model.wholeExtent[i * 2] + 1); - const newArray = new Uint8Array(dims[0] * dims[1] * dims[2]); - const temp2 = 1.0 / (2.0 * model.standardDeviation * model.standardDeviation); - let xval = 0; - let yval = 0; - let zval = 0; - const scale = [1.0 / (model.wholeExtent[1] - model.wholeExtent[0]), 1.0 / (model.wholeExtent[3] - model.wholeExtent[2]), 1.0 / (model.wholeExtent[5] - model.wholeExtent[4])]; - let i = 0; - for (let z = model.wholeExtent[4]; z <= model.wholeExtent[5]; z++) { - zval = (model.center[2] - z) * scale[2]; - const zfactor = model.magnitude[2] * Math.cos(model.frequency[2] * zval); - zval *= zval; - for (let y = model.wholeExtent[2]; y <= model.wholeExtent[3]; y++) { - yval = (model.center[1] - y) * scale[1]; - const yfactor = model.magnitude[1] * Math.sin(model.frequency[1] * yval); - yval *= yval; - for (let x = model.wholeExtent[0]; x <= model.wholeExtent[1]; x++) { - xval = (model.center[0] - x) * scale[0]; - const sum = zval + yval + xval * xval; - const xfactor = model.magnitude[0] * Math.sin(model.frequency[0] * xval); - newArray[i] = model.maximum * Math.exp(-sum * temp2) + xfactor + yfactor + zfactor + model.offset; - i++; - } - } - } - const da = vtkDataArray.newInstance({ - numberOfComponents: 1, - values: newArray - }); - da.setName('scalars'); - const cpd = id.getPointData(); - cpd.setScalars(da); - - // Update output - outData[0] = id; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - offset: 40, - maximum: 120, - center: [0, 0, 0], - frequency: [60, 30, 40], - magnitude: [10, 18, 5], - standardDeviation: 0.5, - wholeExtent: [-10, 10, -10, 10, -10, 10], - dataDirection: [1, 0, 0, 0, 1, 0, 0, 0, 1] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['offset', 'maximum', 'standardDeviation']); - macro.setGetArray(publicAPI, model, ['center', 'frequency', 'magnitude'], 3); - macro.setGetArray(publicAPI, model, ['wholeExtent'], 6); - macro.setGetArray(publicAPI, model, ['dataDirection'], 9); - macro.algo(publicAPI, model, 0, 1); - vtkRTAnalyticSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkRTAnalyticSource'); - -// ---------------------------------------------------------------------------- - -var vtkRTAnalyticSource$1 = { - newInstance, - extend -}; - -export { vtkRTAnalyticSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/SLICSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/SLICSource.js deleted file mode 100644 index 954ab7c5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/SLICSource.js +++ /dev/null @@ -1,148 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkImageData from '../../Common/DataModel/ImageData.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -function generateCoordinates(origin, dimensions, spacing) { - const coordinates = new Float64Array(dimensions[0] * dimensions[1] * dimensions[2] * 3); - let offset = 0; - for (let k = 0; k < dimensions[2]; k++) { - const z = origin[2] + spacing[2] * k; - for (let j = 0; j < dimensions[1]; j++) { - const y = origin[1] + spacing[1] * j; - for (let i = 0; i < dimensions[0]; i++) { - const x = origin[0] + spacing[0] * i; - coordinates[offset++] = x; - coordinates[offset++] = y; - coordinates[offset++] = z; - } - } - } - return coordinates; -} - -// ---------------------------------------------------------------------------- -// vtkSLICSource methods -// ---------------------------------------------------------------------------- - -function vtkSLICSource(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkSLICSource'); - publicAPI.addCluster = (centerX, centerY, centerZ, fnConst, fnDfDx, fnDfDy, fnDfDz) => { - const id = model.clusters.length; - model.clusters.push(new Float64Array([centerX, centerY, centerZ, fnConst, fnDfDx, fnDfDy, fnDfDz])); - publicAPI.modified(); - return id; - }; - publicAPI.removeCluster = id => { - model.clusters.splice(id, 1); - publicAPI.modified(); - }; - publicAPI.removeAllClusters = () => { - model.clusters = []; - publicAPI.modified(); - }; - publicAPI.updateCluster = (id, centerX, centerY, centerZ, fnConst, fnDfDx, fnDfDy, fnDfDz) => { - if (!model.clusters[id]) { - model.clusters[id] = new Float64Array(7); - } - model.clusters[id][0] = centerX; - model.clusters[id][1] = centerY; - model.clusters[id][2] = centerZ; - model.clusters[id][3] = fnConst; - model.clusters[id][4] = fnDfDx; - model.clusters[id][5] = fnDfDy; - model.clusters[id][6] = fnDfDz; - publicAPI.modified(); - }; - publicAPI.getNumberOfClusters = () => model.clusters.length; - publicAPI.requestData = (inData, outData) => { - const dataSize = model.dimensions[0] * model.dimensions[1] * model.dimensions[2]; - const imageData = outData[0]?.initialize() || vtkImageData.newInstance(); - imageData.setSpacing(...model.spacing); - imageData.setExtent(0, model.dimensions[0] - 1, 0, model.dimensions[1] - 1, 0, model.dimensions[2] - 1); - imageData.setOrigin(...model.origin); - - // Pixel centers - const centers = generateCoordinates(model.origin, model.dimensions, model.spacing); - - // Fill clusterIdxValues - const nbBytes = (model.clusters.length < 256 ? 8 : 0) || (model.clusters.length < 65536 ? 16 : 32); - const clusterIdxValues = macro.newTypedArray(`Uint${nbBytes}Array`, dataSize); - for (let i = 0; i < dataSize; i++) { - let clusterDistance = Number.MAX_VALUE; - model.clusters.forEach((cluster, idx) => { - const dist = (cluster[0] - centers[i * 3]) * (cluster[0] - centers[i * 3]) + (cluster[1] - centers[i * 3 + 1]) * (cluster[1] - centers[i * 3 + 1]) + (cluster[2] - centers[i * 3 + 2]) * (cluster[2] - centers[i * 3 + 2]); - if (dist < clusterDistance) { - clusterDistance = dist; - clusterIdxValues[i] = idx; - } - }); - } - const clusters = vtkDataArray.newInstance({ - name: model.clusterArrayName, - numberOfComponents: 1, - values: clusterIdxValues - }); - imageData.getPointData().addArray(clusters); - - // Fill scalarValues - const scalarValues = new Float32Array(dataSize); - for (let i = 0; i < dataSize; i++) { - const cluster = model.clusters[clusterIdxValues[i]]; - scalarValues[i] = cluster[3] + cluster[4] * (centers[i * 3 + 0] - cluster[0]) + cluster[5] * (centers[i * 3 + 1] - cluster[1]) + cluster[6] * (centers[i * 3 + 2] - cluster[2]); - } - const scalars = vtkDataArray.newInstance({ - name: model.scalarArrayName, - numberOfComponents: 1, - values: scalarValues - }); - imageData.getPointData().addArray(scalars); - - // Update output - outData[0] = imageData; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - clusters: [], - spacing: [1.0, 1.0, 1.0], - origin: [0.0, 0.0, 0.0], - dimensions: [10, 10, 10], - clusterArrayName: 'cluster', - scalarArrayName: 'field' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['clusterArrayName', 'scalarArrayName']); - macro.setGetArray(publicAPI, model, ['origin', 'spacing', 'dimensions'], 3); - macro.algo(publicAPI, model, 0, 1); - vtkSLICSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSLICSource'); - -// ---------------------------------------------------------------------------- - -var vtkSLICSource$1 = { - newInstance, - extend -}; - -export { vtkSLICSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/SphereSource.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/SphereSource.d.ts deleted file mode 100644 index 91f46787..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/SphereSource.d.ts +++ /dev/null @@ -1,213 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { Vector3 } from './../../types'; - -/** - * - */ -export interface ISphereSourceInitialValues { - radius?: number; - latLongTessellation?: boolean; - thetaResolution?: number; - startTheta?: number; - endTheta?: number; - phiResolution?: number; - startPhi?: number; - endPhi?: number; - center?: Vector3; - pointType?: string; -} - -type vtkSphereSourceBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkSphereSource extends vtkSphereSourceBase { - /** - * Get the center of the sphere. - * @default [0, 0, 0] - */ - getCenter(): Vector3; - - /** - * Get the center of the sphere. - */ - getCenterByReference(): Vector3; - - /** - * Get the ending latitude angle. - * @default 180.0 - */ - getEndPhi(): number; - - /** - * Set the ending longitude angle. - * @default 360.0 - */ - getEndTheta(): number; - - /** - * - * @default false - */ - getLatLongTessellation(): boolean; - - /** - * Get the number of points in the latitude direction (ranging from StartPhi to EndPhi). - * @default 8 - */ - getPhiResolution(): number; - - /** - * Get the radius of sphere. - * @default 0.5 - */ - getRadius(): number; - - /** - * Get the starting latitude angle in degrees (0 is at north pole). - * @default 0.0 - */ - getStartPhi(): number; - - /** - * Get the starting longitude angle. - * @default 0.0 - */ - getStartTheta(): number; - - /** - * Get the number of points in the longitude direction (ranging from StartTheta to EndTheta). - * @default 8 - */ - getThetaResolution(): number; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Set the center of the sphere. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setCenter(x: number, y: number, z: number): boolean; - - /** - * Set the center of the sphere. - * @param {Vector3} center The center point's coordinates. - */ - setCenter(center: Vector3): boolean; - - /** - * Set the center of the sphere. - * @param {Vector3} center The center point's coordinates. - */ - setCenterFrom(center: Vector3): boolean; - - /** - * Set the ending latitude angle. - * @param {Number} endPhi The ending latitude angle in degrees. - */ - setEndPhi(endPhi: number): boolean; - - /** - * Set the ending longitude angle. - * @param {Number} endTheta The ending latitude longitude in degrees. - */ - setEndTheta(endTheta: number): boolean; - - /** - * Cause the sphere to be tessellated with edges along the latitude and - * longitude lines. If off, triangles are generated at non-polar regions, - * which results in edges that are not parallel to latitude and longitude - * lines. If on, quadrilaterals are generated everywhere except at the - * poles. This can be useful for generating a wireframe sphere with natural - * latitude and longitude lines. - * @param {Boolean} latLongTessellation - */ - setLatLongTessellation(latLongTessellation: boolean): boolean; - - /** - * Set the number of points in the latitude direction (ranging from StartPhi to EndPhi). - * @param {Number} phiResolution The number of points. - */ - setPhiResolution(phiResolution: number): boolean; - - /** - * Set the radius of sphere. - * @param {Number} radius The radius of sphere. - */ - setRadius(radius: number): boolean; - - /** - * Set the starting longitude angle. - * @param {Number} startTheta The starting longitude angle in degrees. - */ - setStartTheta(startTheta: number): boolean; - - /** - * Set the starting latitude angle (0 is at north pole). - * @param {Number} startPhi The starting latitude angle in degrees. - */ - setStartPhi(startPhi: number): boolean; - - /** - * Set the number of points in the longitude direction (ranging from StartTheta to EndTheta). - * @param {Number} thetaResolution The number of points. - */ - setThetaResolution(thetaResolution: number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkSphereSource characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ISphereSourceInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ISphereSourceInitialValues -): void; - -/** - * Method used to create a new instance of vtkSphereSource. - * @param {ISphereSourceInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ISphereSourceInitialValues -): vtkSphereSource; - -/** - * vtkSphereSource is a source object that creates a user-specified number of - * points within a specified radius about a specified center point. By default - * location of the points is random within the sphere. It is also possible to - * generate random points only on the surface of the sphere. The output PolyData - * has the specified number of points and 1 cell - a vtkPolyVertex containing - * all of the points. - * - * @example - * ```js - * import vtkSphereSource from '@kitware/vtk.js/Filters/Sources/SphereSource'; - * - * const sphere = vtkSphereSource.newInstance(); - * const polydata = sphere.getOutputData(); - * ``` - */ -export declare const vtkSphereSource: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkSphereSource; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/SphereSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/SphereSource.js deleted file mode 100644 index 81be15ae..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/SphereSource.js +++ /dev/null @@ -1,211 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; - -// ---------------------------------------------------------------------------- -// vtkSphereSource methods -// ---------------------------------------------------------------------------- - -function vtkSphereSource(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkSphereSource'); - publicAPI.requestData = (inData, outData) => { - let dataset = outData[0]; - const pointDataType = dataset ? dataset.getPoints().getDataType() : model.pointType; - dataset = dataset?.initialize() || vtkPolyData.newInstance(); - - // ---------------------------------------------------------------------- - let numPoles = 0; - - // Check data, determine increments, and convert to radians - let { - thetaResolution - } = model; - let startTheta = model.startTheta < model.endTheta ? model.startTheta : model.endTheta; - startTheta *= Math.PI / 180.0; - let endTheta = model.endTheta > model.startTheta ? model.endTheta : model.startTheta; - endTheta *= Math.PI / 180.0; - let startPhi = model.startPhi < model.endPhi ? model.startPhi : model.endPhi; - startPhi *= Math.PI / 180.0; - let endPhi = model.endPhi > model.startPhi ? model.endPhi : model.startPhi; - endPhi *= Math.PI / 180.0; - if (Math.abs(startTheta - endTheta) < 2.0 * Math.PI) { - ++thetaResolution; - } - const deltaTheta = (endTheta - startTheta) / model.thetaResolution; - const jStart = model.startPhi <= 0.0 ? 1 : 0; - const jEnd = model.phiResolution + (model.endPhi >= 180.0 ? -1 : 0); - const numPts = model.phiResolution * thetaResolution + 2; - const numPolys = model.phiResolution * 2 * model.thetaResolution; - - // Points - let pointIdx = 0; - let points = macro.newTypedArray(pointDataType, numPts * 3); - - // Normals - let normals = new Float32Array(numPts * 3); - - // Cells - let cellLocation = 0; - let polys = new Uint32Array(numPolys * 5); - - // Create north pole if needed - if (model.startPhi <= 0.0) { - points[pointIdx * 3 + 0] = model.center[0]; - points[pointIdx * 3 + 1] = model.center[1]; - points[pointIdx * 3 + 2] = model.center[2] + model.radius; - normals[pointIdx * 3 + 0] = 0; - normals[pointIdx * 3 + 1] = 0; - normals[pointIdx * 3 + 2] = 1; - pointIdx++; - numPoles++; - } - - // Create south pole if needed - if (model.endPhi >= 180.0) { - points[pointIdx * 3 + 0] = model.center[0]; - points[pointIdx * 3 + 1] = model.center[1]; - points[pointIdx * 3 + 2] = model.center[2] - model.radius; - normals[pointIdx * 3 + 0] = 0; - normals[pointIdx * 3 + 1] = 0; - normals[pointIdx * 3 + 2] = -1; - pointIdx++; - numPoles++; - } - const phiResolution = model.phiResolution - numPoles; - const deltaPhi = (endPhi - startPhi) / (model.phiResolution - 1); - - // Create intermediate points - for (let i = 0; i < thetaResolution; i++) { - const theta = startTheta + i * deltaTheta; - for (let j = jStart; j < jEnd; j++) { - const phi = startPhi + j * deltaPhi; - const radius = model.radius * Math.sin(phi); - normals[pointIdx * 3 + 0] = radius * Math.cos(theta); - normals[pointIdx * 3 + 1] = radius * Math.sin(theta); - normals[pointIdx * 3 + 2] = model.radius * Math.cos(phi); - points[pointIdx * 3 + 0] = normals[pointIdx * 3 + 0] + model.center[0]; - points[pointIdx * 3 + 1] = normals[pointIdx * 3 + 1] + model.center[1]; - points[pointIdx * 3 + 2] = normals[pointIdx * 3 + 2] + model.center[2]; - let norm = Math.sqrt(normals[pointIdx * 3 + 0] * normals[pointIdx * 3 + 0] + normals[pointIdx * 3 + 1] * normals[pointIdx * 3 + 1] + normals[pointIdx * 3 + 2] * normals[pointIdx * 3 + 2]); - norm = norm === 0 ? 1 : norm; - normals[pointIdx * 3 + 0] /= norm; - normals[pointIdx * 3 + 1] /= norm; - normals[pointIdx * 3 + 2] /= norm; - pointIdx++; - } - } - - // Generate mesh connectivity - const base = phiResolution * thetaResolution; - if (Math.abs(startTheta - endTheta) < 2.0 * Math.PI) { - --thetaResolution; - } - - // around north pole - if (model.startPhi <= 0.0) { - for (let i = 0; i < thetaResolution; i++) { - polys[cellLocation++] = 3; - polys[cellLocation++] = phiResolution * i + numPoles; - polys[cellLocation++] = phiResolution * (i + 1) % base + numPoles; - polys[cellLocation++] = 0; - } - } - - // around south pole - if (model.endPhi >= 180.0) { - const numOffset = phiResolution - 1 + numPoles; - for (let i = 0; i < thetaResolution; i++) { - polys[cellLocation++] = 3; - polys[cellLocation++] = phiResolution * i + numOffset; - polys[cellLocation++] = numPoles - 1; - polys[cellLocation++] = phiResolution * (i + 1) % base + numOffset; - } - } - - // bands in-between poles - for (let i = 0; i < thetaResolution; i++) { - for (let j = 0; j < phiResolution - 1; j++) { - const a = phiResolution * i + j + numPoles; - const b = a + 1; - const c = (phiResolution * (i + 1) + j) % base + numPoles + 1; - if (!model.latLongTessellation) { - polys[cellLocation++] = 3; - polys[cellLocation++] = a; - polys[cellLocation++] = b; - polys[cellLocation++] = c; - polys[cellLocation++] = 3; - polys[cellLocation++] = a; - polys[cellLocation++] = c; - polys[cellLocation++] = c - 1; - } else { - polys[cellLocation++] = 4; - polys[cellLocation++] = a; - polys[cellLocation++] = b; - polys[cellLocation++] = c; - polys[cellLocation++] = c - 1; - } - } - } - - // Squeeze - points = points.subarray(0, pointIdx * 3); - dataset.getPoints().setData(points, 3); - normals = normals.subarray(0, pointIdx * 3); - const normalArray = vtkDataArray.newInstance({ - name: 'Normals', - values: normals, - numberOfComponents: 3 - }); - dataset.getPointData().setNormals(normalArray); - polys = polys.subarray(0, cellLocation); - dataset.getPolys().setData(polys, 1); - - // Update output - outData[0] = dataset; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - radius: 0.5, - latLongTessellation: false, - thetaResolution: 8, - startTheta: 0.0, - endTheta: 360.0, - phiResolution: 8, - startPhi: 0.0, - endPhi: 180.0, - center: [0, 0, 0], - pointType: 'Float64Array' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['radius', 'latLongTessellation', 'thetaResolution', 'startTheta', 'endTheta', 'phiResolution', 'startPhi', 'endPhi']); - macro.setGetArray(publicAPI, model, ['center'], 3); - macro.algo(publicAPI, model, 0, 1); - vtkSphereSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSphereSource'); - -// ---------------------------------------------------------------------------- - -var vtkSphereSource$1 = { - newInstance, - extend -}; - -export { vtkSphereSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/TorusSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/TorusSource.js deleted file mode 100644 index fe4a1423..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/TorusSource.js +++ /dev/null @@ -1,107 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; - -// ---------------------------------------------------------------------------- -// vtkTorusSource methods -// Adapted from three.js TorusGeometry -// ---------------------------------------------------------------------------- - -const TAU = Math.PI * 2; -function vtkTorusSource(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkTorusSource'); - function requestData(inData, outData) { - let dataset = outData[0]; - - // Points - const points = macro.newTypedArray(model.pointType, 3 * (model.resolution + 1) * (model.tubeResolution + 1)); - let pointIdx = 0; - for (let ti = 0; ti <= model.tubeResolution; ti++) { - const v = ti / model.tubeResolution * TAU; - const cosV = Math.cos(v); - const sinV = Math.sin(v); - for (let ri = 0; ri <= model.resolution; ri++) { - const u = ri / model.resolution * model.arcLength; - points[pointIdx++] = (model.radius + model.tubeRadius * cosV) * Math.cos(u); - points[pointIdx++] = (model.radius + model.tubeRadius * cosV) * Math.sin(u); - points[pointIdx++] = model.tubeRadius * sinV; - } - } - - // Cells - const cellArraySize = 4 * 2 * (model.resolution * model.tubeResolution); - let cellLocation = 0; - const polys = new Uint32Array(cellArraySize); - for (let ti = 1; ti <= model.tubeResolution; ti++) { - for (let ri = 1; ri <= model.resolution; ri++) { - const a = (model.resolution + 1) * ti + ri - 1; - const b = (model.resolution + 1) * (ti - 1) + ri - 1; - const c = (model.resolution + 1) * (ti - 1) + ri; - const d = (model.resolution + 1) * ti + ri; - polys[cellLocation++] = 3; - polys[cellLocation++] = a; - polys[cellLocation++] = b; - polys[cellLocation++] = d; - polys[cellLocation++] = 3; - polys[cellLocation++] = b; - polys[cellLocation++] = c; - polys[cellLocation++] = d; - } - } - - // Apply transformation to the points coordinates - vtkMatrixBuilder.buildFromRadian().translate(...model.center).rotateFromDirections([1, 0, 0], model.direction).apply(points); - dataset = vtkPolyData.newInstance(); - dataset.getPoints().setData(points, 3); - dataset.getPolys().setData(polys, 1); - - // Update output - outData[0] = dataset; - } - - // Expose methods - publicAPI.requestData = requestData; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - radius: 0.5, - tubeRadius: 0.01, - resolution: 64, - tubeResolution: 64, - arcLength: TAU, - center: [0, 0, 0], - direction: [1.0, 0.0, 0.0], - pointType: 'Float64Array' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['radius', 'tubeRadius', 'resolution', 'tubeResolution', 'arcLength']); - macro.setGetArray(publicAPI, model, ['center', 'direction'], 3); - macro.algo(publicAPI, model, 0, 1); - vtkTorusSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkTorusSource'); - -// ---------------------------------------------------------------------------- - -var vtkTorusSource$1 = { - newInstance, - extend -}; - -export { vtkTorusSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ViewFinderSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ViewFinderSource.js deleted file mode 100644 index 8498b16d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Sources/ViewFinderSource.js +++ /dev/null @@ -1,104 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; - -function vtkViewFinderSource(publicAPI, model) { - publicAPI.requestData = (inData, outData) => { - const dataset = outData[0]?.initialize() || vtkPolyData.newInstance(); - const points = macro.newTypedArray(model.pointType, 3 * 16); - points[0] = model.radius; - points[1] = model.radius / model.width; - points[2] = 0; - points[3] = model.radius + model.spacing; - points[4] = model.radius / model.width; - points[5] = 0; - points[6] = model.radius; - points[7] = model.radius / model.width * -1; - points[8] = 0; - points[9] = model.radius + model.spacing; - points[10] = model.radius / model.width * -1; - points[11] = 0; - points[12] = model.radius * -1; - points[13] = model.radius / model.width; - points[14] = 0; - points[15] = (model.radius + model.spacing) * -1; - points[16] = model.radius / model.width; - points[17] = 0; - points[18] = model.radius * -1; - points[19] = model.radius / model.width * -1; - points[20] = 0; - points[21] = (model.radius + model.spacing) * -1; - points[22] = model.radius / model.width * -1; - points[23] = 0; - points[24] = model.radius / model.width; - points[25] = model.radius; - points[26] = 0; - points[27] = model.radius / model.width; - points[28] = model.radius + model.spacing; - points[29] = 0; - points[30] = model.radius / model.width * -1; - points[31] = model.radius; - points[32] = 0; - points[33] = model.radius / model.width * -1; - points[34] = model.radius + model.spacing; - points[35] = 0; - points[36] = model.radius / model.width; - points[37] = model.radius * -1; - points[38] = 0; - points[39] = model.radius / model.width; - points[40] = (model.radius + model.spacing) * -1; - points[41] = 0; - points[42] = model.radius / model.width * -1; - points[43] = model.radius * -1; - points[44] = 0; - points[45] = model.radius / model.width * -1; - points[46] = (model.radius + model.spacing) * -1; - points[47] = 0; - - // prettier-ignore - const cells = Uint8Array.from([3, 0, 1, 2, 3, 2, 1, 3, 3, 4, 6, 5, 3, 6, 5, 7, 3, 8, 11, 9, 3, 8, 10, 11, 3, 12, 13, 15, 3, 12, 15, 14]); - vtkMatrixBuilder.buildFromRadian().translate(...model.center).rotateFromDirections([1, 0, 0], model.orientation).apply(points); - dataset.getPoints().setData(points, 3); - dataset.getPolys().setData(cells, 1); - outData[0] = dataset; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- -const DEFAULT_VALUES = { - radius: 1, - spacing: 2, - width: 4, - pointType: 'Float64Array' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - model.center = [0, 0, 0]; - model.orientation = [1, 0, 0]; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['radius', 'spacing', 'width']); - macro.setGetArray(publicAPI, model, ['center', 'orientation'], 3); - macro.algo(publicAPI, model, 0, 1); - vtkViewFinderSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkArrow2DSource'); - -// ---------------------------------------------------------------------------- - -var vtkViewFinderSource$1 = { - newInstance, - extend -}; - -export { vtkViewFinderSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Texture.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Texture.js deleted file mode 100644 index 1fa5228d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Texture.js +++ /dev/null @@ -1,9 +0,0 @@ -import vtkTextureMapToSphere from './Texture/TextureMapToSphere.js'; -import vtkTextureMapToPlane from './Texture/TextureMapToPlane.js'; - -var Texture = { - vtkTextureMapToPlane, - vtkTextureMapToSphere -}; - -export { Texture as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Texture/TextureMapToPlane.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Texture/TextureMapToPlane.d.ts deleted file mode 100644 index 0909667c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Texture/TextureMapToPlane.d.ts +++ /dev/null @@ -1,245 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; - -/** - * - */ -interface ITextureMapToPlane { - origin?: number[]; - point1?: number[]; - point2?: number[]; - normal?: number[]; - sRange?: number[]; - tRange?: number[]; - automaticPlaneGeneration?: number; -} - -type vtkTextureMapToPlaneBase = vtkObject & vtkAlgorithm; - -export interface vtkTextureMapToPlane extends vtkTextureMapToPlaneBase { - /** - * Get whether the automatic plane generation is set. - */ - getAutomaticPlaneGeneration(): number; - - /** - * Get the normal object. - */ - getNormal(): number[]; - - /** - * Get the normal object. - */ - getNormalByReference(): number[]; - - /** - * Get the origin of the plane. - */ - getOrigin(): number[]; - - /** - * Get the origin of the plane. - */ - getOriginByReference(): number[]; - - /** - * Get the point which defines the first axis of the plane. - */ - getPoint1(): number[]; - - /** - * Get the point which defines the first axis of the plane. - */ - getPoint1ByReference(): number[]; - - /** - * Get the point which defines the second axis of the plane - */ - getPoint2(): number[]; - - /** - * Get the point which defines the second axis of the plane - */ - getPoint2ByReference(): number[]; - - /** - * Get the s-coordinate range for texture s-t coordinate pair. - */ - getSRange(): number[]; - - /** - * Get the s-coordinate range for texture s-t coordinate pair. - */ - getSRangeByReference(): number[]; - - /** - * Get the t-coordinate range for texture s-t coordinate pair. - */ - getTRange(): number[]; - - /** - * Get the t-coordinate range for texture s-t coordinate pair. - */ - getTRangeByReference(): number[]; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Turn on/off the automatic plane generation. - * @param {Number} automaticPlaneGeneration - */ - setAutomaticPlaneGeneration(automaticPlaneGeneration: number): boolean; - - /** - * Set the normal object. - * @param {Number[]} normal The normal object coordinates. - */ - setNormal(normal: number[]): boolean; - - /** - * Set the normal object. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setNormal(x: number, y: number, z: number): boolean; - - /** - * Set the normal object. - * @param {Number[]} normal The normal object coordinates. - */ - setNormalFrom(normal: number[]): boolean; - - /** - * Set the origin of the plane. - * @param {Number[]} origin The origin of the plane. - */ - setOrigin(origin: number[]): boolean; - - /** - * Set the origin of the plane. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setOrigin(x: number, y: number, z: number): boolean; - - /** - * Set the origin of the plane. - * @param {Number[]} origin The origin of the plane. - */ - setOriginFrom(origin: number[]): boolean; - - /** - * Set the point which defines the first axis of the plane. - * @param {Number[]} point1 The coordinate of the point. - */ - setPoint1(point1: number[]): boolean; - - /** - * Set the point which defines the first axis of the plane. - * @param {Number} x The x coordinate of the point. - * @param {Number} y The y coordinate of the point. - * @param {Number} z The z coordinate of the point. - */ - setPoint1(x: number, y: number, z: number): boolean; - - /** - * Set the point which defines the first axis of the plane. - * @param {Number[]} point1 The coordinate of the point. - */ - setPoint1From(point1: number[]): boolean; - - /** - * Set the point which defines the second axis of the plane - * @param {Number[]} point2 The coordinate of the point. - */ - setPoint2(point2: number[]): boolean; - - /** - * Set the point which defines the second axis of the plane - * @param {Number} x The x coordinate of the point. - * @param {Number} y The y coordinate of the point. - * @param {Number} z The z coordinate of the point. - */ - setPoint2(x: number, y: number, z: number): boolean; - - /** - * Set the point which defines the second axis of the plane - * @param {Number[]} point2 The coordinate of the point. - */ - setPoint2From(point2: number[]): boolean; - - /** - * Set the s-coordinate range for texture s-t coordinate pair. - * @param {Number[]} sRange The s-coordinate range. - */ - setSRange(sRange: number[]): boolean; - - /** - * Set the s-coordinate range for texture s-t coordinate pair. - * @param {Number} min The min of the s-coordinate range - * @param {Number} max The min of the s-coordinate range. - */ - setSRange(min: number, max: number): boolean; - - /** - * Set the s-coordinate range for texture s-t coordinate pair. - * @param {Number[]} sRange The s-coordinate range. - */ - setSRangeFrom(sRange: number[]): boolean; - - /** - * Set the t-coordinate range for texture s-t coordinate pair. - * @param {Number[]} tRange The t-coordinate range. - */ - setTRange(tRange: number[]): boolean; - - /** - * Set the t-coordinate range for texture s-t coordinate pair. - * @param {Number} min The min of the t-coordinate range - * @param {Number} max The min of the t-coordinate range. - */ - setTRange(min: number, max: number): boolean; - - /** - * Set the t-coordinate range for texture s-t coordinate pair. - * @param {Number[]} tRange The t-coordinate range. - */ - setTRangeFrom(tRange: number[]): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkTextureMapToPlane characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ITextureMapToPlane} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ITextureMapToPlane -): void; - -/** - * Method used to create a new instance of vtkTextureMapToPlane - * @param {ITextureMapToPlane} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ITextureMapToPlane -): vtkTextureMapToPlane; - -/** - * vtkTextureMapToPlane generate texture coordinates by mapping points to a - * plane The TCoords DataArray is name 'Texture Coordinates' - */ -export declare const vtkTextureMapToPlane: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkTextureMapToPlane; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Texture/TextureMapToPlane.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Texture/TextureMapToPlane.js deleted file mode 100644 index d51ce1d3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Texture/TextureMapToPlane.js +++ /dev/null @@ -1,259 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import { l as normalize, d as dot, j as cross, f as distance2BetweenPoints, z as determinant3x3, A as rowsToMat3 } from '../../Common/Core/Math/index.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkTextureMapToPlane methods -// ---------------------------------------------------------------------------- - -function vtkTextureMapToPlane(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkTextureMapToPlane'); - function computeNormal(output) { - const VTK_TOLERANCE = 0.001; - // First thing to do is to get an initial normal and point to define - // the plane. Then, use this information to construct better - // matrices. If problem occurs, then the point and plane becomes the - // fallback value - - const nbPoints = output.getPoints().getNumberOfPoints(); - let dir = 0; - let m = [0, 0, 0, 0, 0, 0, 0, 0, 0]; - const x = [0, 0, 0]; - const v = [0, 0, 0]; - - // Get minimum width of bounding box. - const bounds = output.getBounds(); - const minBounds = [bounds[0], bounds[2], bounds[4]]; - const maxBounds = [bounds[1], bounds[3], bounds[5]]; - const length = Math.sqrt(distance2BetweenPoints(minBounds, maxBounds)); - let w = length; - let i = 0; - for (; i < 3; i++) { - model.normal[i] = 0.0; - if (bounds[2 * i + 1] - bounds[2 * i] < w) { - dir = i; - w = bounds[2 * i + 1] - bounds[2 * i]; - } - } - - // If the bounds is perpendicular to one of the axes, then can - // quickly compute normal. - // - model.normal[dir] = 1.0; - if (w <= length * VTK_TOLERANCE) { - return; - } - - // Need to compute least squares approximation. Depending on major - // normal direction (dir), construct matrices appropriately. - // - // Compute 3x3 least squares matrix - v[0] = 0.0; - v[1] = 0.0; - v[2] = 0.0; - for (let ptId = 0; ptId < nbPoints; ptId++) { - output.getPoints().getPoint(ptId, x); - v[0] += x[0] * x[2]; - v[1] += x[1] * x[2]; - v[2] += x[2]; - m[0] += x[0] * x[0]; - m[1] += x[0] * x[1]; - m[2] += x[0]; - m[3] += x[0] * x[1]; - m[4] += x[1] * x[1]; - m[5] += x[1]; - m[6] += x[0]; - m[7] += x[1]; - } - m[8] = nbPoints; - - // Solve linear system using Kramers rule - - const c1 = [m[0], m[1], m[2]]; - const c2 = [m[3], m[4], m[5]]; - const c3 = [m[6], m[7], m[8]]; - const det = determinant3x3(m); - if (det <= VTK_TOLERANCE) { - return; - } - m = rowsToMat3(v, c2, c3, []); - model.normal[0] = determinant3x3(m) / det; - m = rowsToMat3(c1, v, c3, []); - model.normal[1] = determinant3x3(m) / det; - // because of the formulation - model.normal[2] = -1.0; - } - publicAPI.requestData = (inData, outData) => { - const input = inData[0]; - const nbPoints = input.getPoints().getNumberOfPoints(); - if (nbPoints < 3 && model.automaticPlaneGeneration) { - vtkErrorMacro("Can't generate texture coordinates without points"); - return; - } - const output = outData[0]?.initialize() || vtkPolyData.newInstance(); - output.getPoints().setData(new Float32Array(input.getPoints().getData()), 3); - output.getPolys().setData(new Uint32Array(input.getPolys().getData())); - const tcoordsData = []; - let minProj = 0; - let i = 0; - let j = 0; - let proj = 0; - const axis = [0, 0, 0]; - let dir = 0; - const tAxis = [0, 0, 0]; - const sAxis = [0, 0, 0]; - let s = 0; - let t = 0; - let sSf = 0; - let tSf = 0; - const p = [0, 0, 0]; - - // Compute least squares plane if on automatic mode; otherwise use - // normal specified or plane specified - if (model.automaticPlaneGeneration && model.origin[0] === 0 && model.origin[1] === 0 && model.origin[2] === 0 && model.point1[0] === 0 && model.point1[1] === 0 && model.point2[0] === 0 && model.point2[1] === 0) { - if (model.automaticPlaneGeneration) { - computeNormal(output); - } - normalize(model.normal); - - // Now project each point onto plane generating s,t texture coordinates - // - // Create local s-t coordinate system. Need to find the two axes on - // the plane and encompassing all the points. Hence use the bounding - // box as a reference. - minProj = 1.0; - i = 0; - for (; i < 3; i++) { - axis[0] = 0.0; - axis[1] = 0.0; - axis[2] = 0.0; - axis[i] = 1.0; - proj = Math.abs(dot(model.normal, axis)); - if (proj < minProj) { - minProj = proj; - dir = i; - } - } - axis[0] = 0.0; - axis[1] = 0.0; - axis[2] = 0.0; - axis[dir] = 1.0; - cross(model.normal, axis, tAxis); - normalize(tAxis); - cross(tAxis, model.normal, sAxis); - - // Construct projection matrices - // - // Arrange s-t axes so that parametric location of points will fall - // between s_range and t_range. Simplest to do by projecting maximum - // corner of bounding box unto plane and backing out scale factors. - // - const bounds = output.getBounds(); - for (i = 0; i < 3; i++) { - axis[i] = bounds[2 * i + 1] - bounds[2 * i]; - } - s = dot(sAxis, axis); - t = dot(tAxis, axis); - sSf = (model.sRange[1] - model.sRange[0]) / s; - tSf = (model.tRange[1] - model.tRange[0]) / t; - // Now can loop over all points, computing parametric coordinates. - for (i = 0; i < nbPoints; i++) { - output.getPoints().getPoint(i, p); - for (j = 0; j < 3; j++) { - axis[j] = p[j] - bounds[2 * j]; - } - tcoordsData.push(model.sRange[0] + dot(sAxis, axis) * sSf); - tcoordsData.push(model.tRange[0] + dot(tAxis, axis) * tSf); - } - } else { - let num = 0; - - // compute axes - for (i = 0; i < 3; i++) { - sAxis[i] = model.point1[i] - model.origin[i]; - tAxis[i] = model.point2[i] - model.origin[i]; - } - let sDenom = dot(sAxis, sAxis); - let tDenom = dot(tAxis, tAxis); - if (sDenom === 0.0 || tDenom === 0.0) { - vtkErrorMacro('Bad plane definition'); - sDenom = 1.0; - tDenom = 1.0; - } - - // compute s-t coordinates - for (i = 0; i < nbPoints; i++) { - output.getPoints().getPoint(i, p); - for (j = 0; j < 3; j++) { - axis[j] = p[j] - model.origin[j]; - } - - // s-coordinate - num = sAxis[0] * axis[0] + sAxis[1] * axis[1] + sAxis[2] * axis[2]; - tcoordsData.push(num / sDenom); - - // t-coordinate - num = tAxis[0] * axis[0] + tAxis[1] * axis[1] + tAxis[2] * axis[2]; - tcoordsData.push(num / tDenom); - } - } - const tCoords = vtkDataArray.newInstance({ - name: 'Texture Coordinates', - numberOfComponents: 2, - size: nbPoints, - values: tcoordsData - }); - output.getPointData().setTCoords(tCoords); - - // Update output - outData[0] = output; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - origin: [0, 0, 0], - point1: [0, 0, 0], - point2: [0, 0, 0], - normal: [0, 0, 0], - sRange: [0, 1], - tRange: [0, 1], - automaticPlaneGeneration: 1 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGetArray(publicAPI, model, ['origin', 'point1', 'point2', 'normal'], 3); - macro.setGetArray(publicAPI, model, ['sRange', 'tRange'], 2); - macro.setGet(publicAPI, model, ['automaticPlaneGeneration']); - macro.algo(publicAPI, model, 1, 1); - vtkTextureMapToPlane(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkTextureMapToPlane'); - -// ---------------------------------------------------------------------------- - -var vtkTextureMapToPlane$1 = { - newInstance, - extend -}; - -export { vtkTextureMapToPlane$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Texture/TextureMapToSphere.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Texture/TextureMapToSphere.d.ts deleted file mode 100644 index 632fc2b2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Texture/TextureMapToSphere.d.ts +++ /dev/null @@ -1,109 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; - -/** - * - */ -interface ITextureMapToSphere { - center?: number[]; - automaticSphereGeneration?: number; - preventSeam?: number; -} - -type vtkTextureMapToSphereBase = vtkObject & vtkAlgorithm; - -export interface vtkTextureMapToSphere extends vtkTextureMapToSphereBase { - /** - * Get whether the automatic sphere generation is set. - */ - getAutomaticSphereGeneration(): number; - - /** - * Get the point defining the center of the sphere. - */ - getCenter(): number[]; - - /** - * Get the normal object. - */ - getCenterByReference(): number[]; - - /** - * Get whether the prevent seam is set. - */ - getPreventSeam(): number; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Turn on/off the automatic sphere generation. - * @param automaticSphereGeneration - */ - setAutomaticSphereGeneration(automaticSphereGeneration: number): boolean; - - /** - * Control how the texture coordinates are generated. - * - * If PreventSeam is set, the s-coordinate ranges : - * - * - from 0->1 and 1->0 corresponding to the theta angle variation between 0->180 and 180->0 degrees - * - Otherwise, the s-coordinate ranges from 0->1 between 0->360 degrees. - * @param preventSeam - */ - setPreventSeam(preventSeam: number): boolean; - - /** - * Set the point defining the center of the sphere. - * @param {Number[]} center The center point coordinates. - */ - setCenter(center: number[]): boolean; - - /** - * Set the point defining the center of the sphere. - * @param x - * @param y - * @param z - */ - setCenter(x: number, y: number, z: number): boolean; - - /** - * Set the point defining the center of the sphere. - * @param {Number[]} center The center point coordinates. - */ - setCenterFrom(center: number[]): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkTextureMapToSphere characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ITextureMapToSphere} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ITextureMapToSphere -): void; - -/** - * Method used to create a new instance of vtkTextureMapToSphere - * @param {ITextureMapToSphere} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ITextureMapToSphere -): vtkTextureMapToSphere; - -/** - * vtkTextureMapToSphere generate texture coordinates by mapping points to - * sphere The TCoords DataArray is name 'Texture Coordinate' - */ -export declare const vtkTextureMapToSphere: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkTextureMapToSphere; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Texture/TextureMapToSphere.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Texture/TextureMapToSphere.js deleted file mode 100644 index 68e349cb..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/Texture/TextureMapToSphere.js +++ /dev/null @@ -1,153 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import { f as distance2BetweenPoints } from '../../Common/Core/Math/index.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkTextureMapToSphere methods -// ---------------------------------------------------------------------------- - -function vtkTextureMapToSphere(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkTextureMapToSphere'); - publicAPI.requestData = (inData, outData) => { - const input = inData[0]; - const nbPoints = input.getPoints().getNumberOfPoints(); - if (nbPoints <= 1) { - vtkErrorMacro("Can't generate texture coordinates without points"); - return; - } - const piOverTwo = Math.PI / 2; - const x = []; - const points = input.getPoints(); - if (model.automaticSphereGeneration) { - model.center = [0, 0, 0]; - for (let i = 0; i < nbPoints; i++) { - points.getPoint(i, x); - model.center[0] += x[0]; - model.center[1] += x[1]; - model.center[2] += x[2]; - } - model.center[0] /= nbPoints; - model.center[1] /= nbPoints; - model.center[2] /= nbPoints; - } - let rho = 0; - let diff = 0; - let phi = 0; - const tc = [0, 0]; - let r = 0; - let thetaX = 0; - let thetaY = 0; - const tcoordsData = []; - for (let i = 0; i < nbPoints; i++) { - points.getPoint(i, x); - rho = Math.sqrt(distance2BetweenPoints(x, model.center)); - if (rho !== 0) { - diff = x[2] - model.center[2]; - if (Math.abs(diff) > rho) { - phi = 0; - if (diff > 0) { - tc[1] = 0; - } else { - tc[1] = 1; - } - } else { - phi = Math.acos(diff / rho); - tc[1] = phi / Math.PI; - } - } else { - tc[1] = 0; - } - r = rho * Math.sin(phi); - if (r !== 0) { - diff = x[0] - model.center[0]; - if (Math.abs(diff) > r) { - if (diff > 0) { - thetaX = 0; - } else { - thetaX = Math.PI; - } - } else { - thetaX = Math.acos(diff / r); - } - diff = x[1] - model.center[1]; - if (Math.abs(diff) > r) { - if (diff > 0) { - thetaY = piOverTwo; - } else { - thetaY = -piOverTwo; - } - } else { - thetaY = Math.asin(diff / r); - } - } else { - thetaX = 0; - thetaY = 0; - } - if (model.preventSeam) { - tc[0] = thetaX / Math.PI; - } else { - tc[0] = thetaX / (2 * Math.PI); - if (thetaY < 0) { - tc[0] = 1 - tc[0]; - } - } - tcoordsData.push(...tc); - } - const tCoords = vtkDataArray.newInstance({ - name: 'Texture Coordinates', - numberOfComponents: 2, - size: nbPoints, - values: tcoordsData - }); - const output = outData[0]?.initialize() || vtkPolyData.newInstance(); - output.getPoints().setData(new Float32Array(input.getPoints().getData()), 3); - output.getPolys().setData(new Uint32Array(input.getPolys().getData())); - output.getPointData().setTCoords(tCoords); - - // Update output - outData[0] = output; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - center: [0, 0, 0], - automaticSphereGeneration: 1, - preventSeam: 1 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGetArray(publicAPI, model, ['center'], 3); - macro.setGet(publicAPI, model, ['automaticSphereGeneration', 'preventSeam']); - macro.algo(publicAPI, model, 1, 1); - vtkTextureMapToSphere(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkTextureMapToSphere'); - -// ---------------------------------------------------------------------------- - -var vtkTextureMapToSphere$1 = { - newInstance, - extend -}; - -export { vtkTextureMapToSphere$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/index.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/index.js deleted file mode 100644 index 32ec5fea..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Filters/index.js +++ /dev/null @@ -1,15 +0,0 @@ -import Cornerstone from './Cornerstone.js'; -import Core from './Core.js'; -import General from './General.js'; -import Sources from './Sources.js'; -import Texture from './Texture.js'; - -var Filters = { - Cornerstone, - Core, - General, - Sources, - Texture -}; - -export { Filters as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core.js deleted file mode 100644 index 9612dd68..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core.js +++ /dev/null @@ -1,23 +0,0 @@ -import './Core/DataAccessHelper/HtmlDataAccessHelper.js'; -import './Core/DataAccessHelper/HttpDataAccessHelper.js'; -import './Core/DataAccessHelper/JSZipDataAccessHelper.js'; -import BinaryHelper from './Core/BinaryHelper.js'; -import DataAccessHelper from './Core/DataAccessHelper.js'; -import vtkHttpDataSetReader from './Core/HttpDataSetReader.js'; -import vtkHttpSceneLoader from './Core/HttpSceneLoader.js'; -import vtkImageStream from './Core/ImageStream.js'; -import vtkResourceLoader from './Core/ResourceLoader.js'; -import vtkWSLinkClient from './Core/WSLinkClient.js'; - -// Bundle size management - start -var Core = { - BinaryHelper, - DataAccessHelper, - vtkHttpDataSetReader, - vtkHttpSceneLoader, - vtkImageStream, - vtkResourceLoader, - vtkWSLinkClient -}; - -export { Core as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/BinaryHelper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/BinaryHelper.js deleted file mode 100644 index 5f5b66ff..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/BinaryHelper.js +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Converts a binary buffer in an ArrayBuffer to a string. - * - * Note this does not take encoding into consideration, so don't - * expect proper Unicode or any other encoding. - */ -function arrayBufferToString(arrayBuffer) { - const decoder = new TextDecoder('latin1'); - return decoder.decode(arrayBuffer); -} - -/** - * Extracts binary data out of a file ArrayBuffer given a prefix/suffix. - */ -function extractBinary(arrayBuffer, prefixRegex) { - let suffixRegex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - const str = arrayBufferToString(arrayBuffer); - const prefixMatch = prefixRegex.exec(str); - if (!prefixMatch) { - return { - text: str - }; - } - const dataStartIndex = prefixMatch.index + prefixMatch[0].length; - const strFirstHalf = str.substring(0, dataStartIndex); - let retVal = null; - const suffixMatch = suffixRegex ? suffixRegex.exec(str) : null; - if (suffixMatch) { - const strSecondHalf = str.substr(suffixMatch.index); - retVal = { - text: strFirstHalf + strSecondHalf, - binaryBuffer: arrayBuffer.slice(dataStartIndex, suffixMatch.index) - }; - } else { - // no suffix, so just take all the data starting from dataStartIndex - retVal = { - text: strFirstHalf, - binaryBuffer: arrayBuffer.slice(dataStartIndex) - }; - } - return retVal; -} -var BinaryHelper = { - arrayBufferToString, - extractBinary -}; - -export { BinaryHelper as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper.d.ts deleted file mode 100644 index eb5d0c19..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { HtmlDataAccessHelper } from './DataAccessHelper/HtmlDataAccessHelper'; -import { HttpDataAccessHelper } from './DataAccessHelper/HttpDataAccessHelper'; -import { JSZipDataAccessHelper } from './DataAccessHelper/JSZipDataAccessHelper'; -import { LiteHttpDataAccessHelper } from './DataAccessHelper/LiteHttpDataAccessHelper'; - -export function has(type: string): boolean; -export function get( - type?: string, - options?: object -): - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper; -export function registerType(type: string, fn: any): void; - -export interface DataAccessHelper { - /** - * - * @param {String} type - */ - has(type: string): boolean; - - /** - * - * @param {String} type - * @param options - */ - get( - type?: string, - options?: object - ): - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper; - - /** - * - * @param {String} type - * @param fn - */ - registerType(type: string, fn: any): void; -} - -export declare const DataAccessHelper: { - has: typeof has; - get: typeof get; - registerType: typeof registerType; -}; - -export default DataAccessHelper; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper.js deleted file mode 100644 index b609d0a5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper.js +++ /dev/null @@ -1,19 +0,0 @@ -const TYPE_MAPPING = {}; -function has(type) { - return !!TYPE_MAPPING[type]; -} -function get() { - let type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'http'; - let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return TYPE_MAPPING[type](options); -} -function registerType(type, fn) { - TYPE_MAPPING[type] = fn; -} -var DataAccessHelper = { - get, - has, - registerType -}; - -export { DataAccessHelper as default, get, has, registerType }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/HtmlDataAccessHelper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/HtmlDataAccessHelper.d.ts deleted file mode 100644 index 0b0fcb5d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/HtmlDataAccessHelper.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -export interface HtmlDataAccessHelper { - fetchArray( - instance: any, - baseURL: string, - array: object[], - options?: object - ): Promise; - fetchJSON(instance: any, url: string, options?: object): Promise; - fetchText(instance: any, url: string, options?: object): Promise; - fetchBinary( - instance: any, - url: string, - options?: object - ): Promise; - fetchImage( - instance: any, - url: string, - options?: object - ): Promise; -} - -declare const HtmlDataAccessHelper: HtmlDataAccessHelper; -export default HtmlDataAccessHelper; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/HtmlDataAccessHelper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/HtmlDataAccessHelper.js deleted file mode 100644 index 5c885c25..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/HtmlDataAccessHelper.js +++ /dev/null @@ -1,122 +0,0 @@ -import { strFromU8, decompressSync } from 'fflate'; -import { m as macro } from '../../../macros2.js'; -import Base64 from '../../../Common/Core/Base64.js'; -import Endian from '../../../Common/Core/Endian.js'; -import { DataTypeByteSize } from '../../../Common/Core/DataArray/Constants.js'; -import { registerType } from '../DataAccessHelper.js'; - -const { - vtkErrorMacro, - vtkDebugMacro -} = macro; -let requestCount = 0; -function getContent(url) { - const el = document.querySelector(`.webResource[data-url="${url}"]`); - return el ? el.innerHTML : null; -} -function getElement(url) { - return document.querySelector(`.webResource[data-url="${url}"]`); -} -function removeLeadingSlash(str) { - return str[0] === '/' ? str.substr(1) : str; -} -function fetchText(instance, url) { - return new Promise((resolve, reject) => { - const txt = getContent(url); - if (txt === null) { - reject(new Error(`No such text ${url}`)); - } else { - resolve(txt); - } - }); -} -function fetchJSON(instance, url) { - return new Promise((resolve, reject) => { - const txt = getContent(removeLeadingSlash(url)); - if (txt === null) { - reject(new Error(`No such JSON ${url}`)); - } else { - resolve(JSON.parse(txt)); - } - }); -} -function fetchArray(instance, baseURL, array) { - let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; - return new Promise((resolve, reject) => { - const url = removeLeadingSlash([baseURL, array.ref.basepath, options.compression ? `${array.ref.id}.gz` : array.ref.id].join('/')); - const txt = getContent(url); - if (txt === null) { - reject(new Error(`No such array ${url}`)); - } else { - if (array.dataType === 'string') { - let bText = atob(txt); - if (options.compression) { - bText = strFromU8(decompressSync(bText)); - } - array.values = JSON.parse(bText); - } else { - const uint8array = new Uint8Array(Base64.toArrayBuffer(txt)); - array.buffer = new ArrayBuffer(uint8array.length); - - // copy uint8array to buffer - const view = new Uint8Array(array.buffer); - view.set(uint8array); - if (options.compression) { - if (array.dataType === 'string' || array.dataType === 'JSON') { - array.buffer = strFromU8(decompressSync(new Uint8Array(array.buffer))); - } else { - array.buffer = decompressSync(new Uint8Array(array.buffer)).buffer; - } - } - if (array.ref.encode === 'JSON') { - array.values = JSON.parse(array.buffer); - } else { - if (Endian.ENDIANNESS !== array.ref.encode && Endian.ENDIANNESS) { - // Need to swap bytes - vtkDebugMacro(`Swap bytes of ${array.name}`); - Endian.swapBytes(array.buffer, DataTypeByteSize[array.dataType]); - } - array.values = macro.newTypedArray(array.dataType, array.buffer); - } - if (array.values.length !== array.size) { - vtkErrorMacro(`Error in FetchArray: ${array.name} does not have the proper array size. Got ${array.values.length}, instead of ${array.size}`); - } - } - - // Done with the ref and work - delete array.ref; - if (--requestCount === 0 && instance?.invokeBusy) { - instance.invokeBusy(false); - } - if (instance?.modified) { - instance.modified(); - } - resolve(array); - } - }); -} - -// ---------------------------------------------------------------------------- - -function fetchImage(instance, url) { - return new Promise((resolve, reject) => { - const img = getElement(url); - if (img) { - resolve(img); - } else { - reject(new Error(`No such image ${url}`)); - } - }); -} - -// ---------------------------------------------------------------------------- - -const HtmlDataAccessHelper = { - fetchJSON, - fetchText, - fetchArray, - fetchImage -}; -registerType('html', options => HtmlDataAccessHelper); - -export { HtmlDataAccessHelper as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/HttpDataAccessHelper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/HttpDataAccessHelper.d.ts deleted file mode 100644 index 4131b74b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/HttpDataAccessHelper.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -export interface HttpDataAccessHelper { - fetchArray( - instance: any, - baseURL: string, - array: object[], - options?: object - ): Promise; - fetchJSON(instance: any, url: string, options?: object): Promise; - fetchText(instance: any, url: string, options?: object): Promise; - fetchBinary( - instance: any, - url: string, - options?: object - ): Promise; - fetchImage( - instance: any, - url: string, - options?: object - ): Promise; -} - -declare const HttpDataAccessHelper: HttpDataAccessHelper; -export default HttpDataAccessHelper; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/HttpDataAccessHelper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/HttpDataAccessHelper.js deleted file mode 100644 index 37173072..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/HttpDataAccessHelper.js +++ /dev/null @@ -1,235 +0,0 @@ -import { decompressSync, strFromU8 } from 'fflate'; -import { m as macro } from '../../../macros2.js'; -import Endian from '../../../Common/Core/Endian.js'; -import { DataTypeByteSize } from '../../../Common/Core/DataArray/Constants.js'; -import { registerType } from '../DataAccessHelper.js'; - -const { - vtkErrorMacro, - vtkDebugMacro -} = macro; - -/* eslint-disable prefer-promise-reject-errors */ - -let requestCount = 0; -function openAsyncXHR(method, url) { - let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - const xhr = new XMLHttpRequest(); - xhr.open(method, url, true); - if (options.headers) { - Object.entries(options.headers).forEach(_ref => { - let [key, value] = _ref; - return xhr.setRequestHeader(key, value); - }); - } - if (options.progressCallback) { - xhr.addEventListener('progress', options.progressCallback); - } - return xhr; -} -function fetchBinary(url) { - let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - if (options && options.compression && options.compression !== 'gz') { - vtkErrorMacro('Supported algorithms are: [gz]'); - vtkErrorMacro(`Unkown compression algorithm: ${options.compression}`); - } - return new Promise((resolve, reject) => { - const xhr = openAsyncXHR('GET', url, options); - xhr.onreadystatechange = e => { - if (xhr.readyState === 4) { - if (xhr.status === 200 || xhr.status === 0) { - if (options.compression) { - resolve(decompressSync(new Uint8Array(xhr.response)).buffer); - } else { - resolve(xhr.response); - } - } else { - reject({ - xhr, - e - }); - } - } - }; - - // Make request - xhr.responseType = 'arraybuffer'; - xhr.send(); - }); -} -function fetchArray(instance, baseURL, array) { - let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; - if (array.ref && !array.ref.pending) { - return new Promise((resolve, reject) => { - let url = null; - if (array.ref.url) { - url = array.ref.url; - } else { - url = [baseURL, array.ref.basepath, options.compression ? `${array.ref.id}.gz` : array.ref.id].join('/'); - } - const xhr = openAsyncXHR('GET', url, options); - xhr.onreadystatechange = e => { - if (xhr.readyState === 1) { - array.ref.pending = true; - if (++requestCount === 1 && instance?.invokeBusy) { - instance.invokeBusy(true); - } - } - if (xhr.readyState === 4) { - array.ref.pending = false; - if (xhr.status === 200 || xhr.status === 0) { - array.buffer = xhr.response; - if (options.compression) { - if (array.dataType === 'string' || array.dataType === 'JSON') { - array.buffer = strFromU8(decompressSync(new Uint8Array(array.buffer))); - } else { - array.buffer = decompressSync(new Uint8Array(array.buffer)).buffer; - } - } - if (array.ref.encode === 'JSON') { - array.values = JSON.parse(array.buffer); - } else { - if (Endian.ENDIANNESS !== array.ref.encode && Endian.ENDIANNESS) { - // Need to swap bytes - vtkDebugMacro(`Swap bytes of ${array.name}`); - Endian.swapBytes(array.buffer, DataTypeByteSize[array.dataType]); - } - array.values = macro.newTypedArray(array.dataType, array.buffer); - } - if (array.values.length !== array.size) { - vtkErrorMacro(`Error in FetchArray: ${array.name}, does not have the proper array size. Got ${array.values.length}, instead of ${array.size}`); - } - - // Done with the ref and work - delete array.ref; - if (--requestCount === 0 && instance?.invokeBusy) { - instance.invokeBusy(false); - } - if (instance?.modified) { - instance.modified(); - } - resolve(array); - } else { - reject({ - xhr, - e - }); - } - } - }; - - // Make request - xhr.responseType = options.compression || array.dataType !== 'string' ? 'arraybuffer' : 'text'; - xhr.send(); - }); - } - return Promise.resolve(array); -} - -// ---------------------------------------------------------------------------- - -function fetchJSON(instance, url) { - let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - return new Promise((resolve, reject) => { - const xhr = openAsyncXHR('GET', url, options); - xhr.onreadystatechange = e => { - if (xhr.readyState === 1) { - if (++requestCount === 1 && instance?.invokeBusy) { - instance.invokeBusy(true); - } - } - if (xhr.readyState === 4) { - if (--requestCount === 0 && instance?.invokeBusy) { - instance.invokeBusy(false); - } - if (xhr.status === 200 || xhr.status === 0) { - if (options.compression) { - resolve(JSON.parse(strFromU8(decompressSync(new Uint8Array(xhr.response))))); - } else { - resolve(JSON.parse(xhr.responseText)); - } - } else { - reject({ - xhr, - e - }); - } - } - }; - - // Make request - xhr.responseType = options.compression ? 'arraybuffer' : 'text'; - xhr.send(); - }); -} - -// ---------------------------------------------------------------------------- - -function fetchText(instance, url) { - let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - if (options && options.compression && options.compression !== 'gz') { - vtkErrorMacro('Supported algorithms are: [gz]'); - vtkErrorMacro(`Unkown compression algorithm: ${options.compression}`); - } - return new Promise((resolve, reject) => { - const xhr = openAsyncXHR('GET', url, options); - xhr.onreadystatechange = e => { - if (xhr.readyState === 1) { - if (++requestCount === 1 && instance?.invokeBusy) { - instance.invokeBusy(true); - } - } - if (xhr.readyState === 4) { - if (--requestCount === 0 && instance?.invokeBusy) { - instance.invokeBusy(false); - } - if (xhr.status === 200 || xhr.status === 0) { - if (options.compression) { - resolve(strFromU8(decompressSync(new Uint8Array(xhr.response)))); - } else { - resolve(xhr.responseText); - } - } else { - reject({ - xhr, - e - }); - } - } - }; - - // Make request - xhr.responseType = options.compression ? 'arraybuffer' : 'text'; - xhr.send(); - }); -} - -// ---------------------------------------------------------------------------- - -function fetchImage(instance, url) { - let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - return new Promise((resolve, reject) => { - const img = new Image(); - if (options.crossOrigin) { - img.crossOrigin = options.crossOrigin; - } - img.onload = () => resolve(img); - img.onerror = reject; - img.src = url; - }); -} -/* eslint-enable prefer-promise-reject-errors */ - -// ---------------------------------------------------------------------------- - -const HttpDataAccessHelper = { - fetchArray, - fetchJSON, - fetchText, - fetchBinary, - // Only for HTTP - fetchImage -}; -registerType('http', options => HttpDataAccessHelper); - -export { HttpDataAccessHelper as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/JSZipDataAccessHelper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/JSZipDataAccessHelper.d.ts deleted file mode 100644 index 440a0d1e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/JSZipDataAccessHelper.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -interface IJSZipDataAccessHelper { - fetchArray( - instance: any, - baseURL: string, - array: object[], - options?: object - ): Promise; - fetchJSON(instance: any, url: string, options?: object): Promise; - fetchText(instance: any, url: string, options?: object): Promise; - fetchBinary( - instance: any, - url: string, - options?: object - ): Promise; - fetchImage( - instance: any, - url: string, - options?: object - ): Promise; -} - -export interface JSZipDataAccessHelper { - create(createOptions: object): IJSZipDataAccessHelper; -} - -declare const JSZipDataAccessHelper: JSZipDataAccessHelper; -export default JSZipDataAccessHelper; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/JSZipDataAccessHelper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/JSZipDataAccessHelper.js deleted file mode 100644 index 278178a4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/JSZipDataAccessHelper.js +++ /dev/null @@ -1,207 +0,0 @@ -import { unzipSync, strFromU8, decompressSync, strToU8 } from 'fflate'; -import { m as macro } from '../../../macros2.js'; -import Endian from '../../../Common/Core/Endian.js'; -import { DataTypeByteSize } from '../../../Common/Core/DataArray/Constants.js'; -import { registerType } from '../DataAccessHelper.js'; -import { fromArrayBuffer } from '../../../Common/Core/Base64.js'; - -const { - vtkErrorMacro, - vtkDebugMacro -} = macro; -function toMimeType(url) { - const ext = url.split('.').pop().toLowerCase(); - if (ext === 'jpg') { - return 'jpeg'; - } - return ext; -} -function handleUint8Array(array, compression, done) { - return uint8array => { - array.buffer = new ArrayBuffer(uint8array.length); - - // copy uint8array to buffer - const view = new Uint8Array(array.buffer); - view.set(uint8array); - if (compression) { - if (array.dataType === 'string' || array.dataType === 'JSON') { - array.buffer = strFromU8(decompressSync(new Uint8Array(array.buffer))); - } else { - array.buffer = decompressSync(new Uint8Array(array.buffer)).buffer; - } - } - if (array.ref.encode === 'JSON') { - array.values = JSON.parse(array.buffer); - } else { - if (Endian.ENDIANNESS !== array.ref.encode && Endian.ENDIANNESS) { - // Need to swap bytes - vtkDebugMacro(`Swap bytes of ${array.name}`); - Endian.swapBytes(array.buffer, DataTypeByteSize[array.dataType]); - } - array.values = macro.newTypedArray(array.dataType, array.buffer); - } - if (array.values.length !== array.size) { - vtkErrorMacro(`Error in FetchArray: ${array.name} does not have the proper array size. Got ${array.values.length}, instead of ${array.size}`); - } - done(); - }; -} -function handleString(array, compression, done) { - return string => { - if (compression) { - array.values = JSON.parse(strFromU8(decompressSync(string))); - } else { - array.values = JSON.parse(string); - } - done(); - }; -} -function removeLeadingSlash(str) { - return str[0] === '/' ? str.substr(1) : str; -} -function normalizePath(str) { - return new URL(str, 'http://any').pathname; -} -function cleanUpPath(str) { - return removeLeadingSlash(normalizePath(str)); -} -function unpack(zipContent) { - return new Promise((resolve, reject) => { - if (typeof zipContent === 'string') { - resolve(strToU8(zipContent)); - } else if (zipContent instanceof Blob) { - resolve(zipContent.arrayBuffer().then(ab => new Uint8Array(ab))); - } else if (zipContent instanceof ArrayBuffer) { - resolve(new Uint8Array(zipContent)); - } else if (zipContent?.buffer instanceof ArrayBuffer) { - resolve(new Uint8Array(zipContent.buffer)); - } else { - reject(new Error('Invalid datatype to unpack.')); - } - }); -} -function create(createOptions) { - let ready = false; - let requestCount = 0; - let decompressedFiles = null; - let fullRootPath = ''; - unpack(createOptions.zipContent).then(zipFileData => { - decompressedFiles = unzipSync(zipFileData); - ready = true; - - // Find root index.json - const metaFiles = []; - Object.keys(decompressedFiles).forEach(relativePath => { - if (relativePath.endsWith('index.json')) { - metaFiles.push(relativePath); - } - }); - metaFiles.sort((a, b) => a.length - b.length); - // if not empty, then fullRootPath will have a forward slash suffix - fullRootPath = metaFiles[0].replace(/index\.json$/, ''); - if (createOptions.callback) { - createOptions.callback(decompressedFiles); - } - }); - return { - fetchArray(instance, baseURL, array) { - let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; - return new Promise((resolve, reject) => { - if (!ready) { - vtkErrorMacro('ERROR!!! zip not ready...'); - } - const url = cleanUpPath([baseURL, array.ref.basepath, options.compression ? `${array.ref.id}.gz` : array.ref.id].join('/')); - if (++requestCount === 1 && instance?.invokeBusy) { - instance.invokeBusy(true); - } - function doneCleanUp() { - // Done with the ref and work - delete array.ref; - if (--requestCount === 0 && instance?.invokeBusy) { - instance.invokeBusy(false); - } - if (instance?.modified) { - instance.modified(); - } - resolve(array); - } - const fileData = decompressedFiles[`${fullRootPath}${url}`]; - if (array.dataType === 'string' && !options.compression) { - // string - const handler = handleString(array, options.compression, doneCleanUp); - handler(strFromU8(fileData)); - } else { - // uint8array - const handler = handleUint8Array(array, options.compression, doneCleanUp); - handler(fileData); - } - }); - }, - fetchJSON(instance, url) { - let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - const path = cleanUpPath(url); - if (!ready) { - vtkErrorMacro('ERROR!!! zip not ready...'); - } - const fileData = decompressedFiles[`${fullRootPath}${path}`]; - if (options.compression) { - if (options.compression === 'gz') { - const str = strFromU8(decompressSync(fileData)); - return Promise.resolve(JSON.parse(str)); - } - return Promise.reject(new Error('Invalid compression')); - } - return Promise.resolve(JSON.parse(strFromU8(fileData))); - }, - fetchText(instance, url) { - let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - const path = cleanUpPath(url); - if (!ready) { - vtkErrorMacro('ERROR!!! zip not ready...'); - } - const fileData = decompressedFiles[`${fullRootPath}${path}`]; - if (options.compression) { - if (options.compression === 'gz') { - return Promise.resolve(strFromU8(unzipSync(fileData))); - } - return Promise.reject(new Error('Invalid compression')); - } - return Promise.resolve(strFromU8(fileData)); - }, - fetchImage(instance, url) { - const path = cleanUpPath(url); - if (!ready) { - vtkErrorMacro('ERROR!!! zip not ready...'); - } - const fileData = decompressedFiles[`${fullRootPath}${path}`]; - return new Promise((resolve, reject) => { - const img = new Image(); - img.onload = () => resolve(img); - img.onerror = reject; - const str = fromArrayBuffer(fileData.buffer); - img.src = `data:image/${toMimeType(path)};base64,${str}`; - }); - }, - fetchBinary(instance, url) { - let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - const path = cleanUpPath(url); - if (!ready) { - vtkErrorMacro('ERROR!!! zip not ready...'); - } - const fileData = decompressedFiles[`${fullRootPath}${path}`]; - if (options.compression) { - if (options.compression === 'gz') { - return Promise.resolve(decompressSync(fileData).buffer); - } - return Promise.reject(new Error('Invalid compression')); - } - return Promise.resolve(fileData.buffer); - } - }; -} -const JSZipDataAccessHelper = { - create -}; -registerType('zip', options => JSZipDataAccessHelper.create(options)); - -export { JSZipDataAccessHelper as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper.d.ts deleted file mode 100644 index 9063c87e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -export interface LiteHttpDataAccessHelper { - fetchArray( - instance: any, - baseURL: string, - array: object[], - options?: object - ): Promise; - fetchJSON(instance: any, url: string, options?: object): Promise; - fetchText(instance: any, url: string, options?: object): Promise; - fetchBinary( - instance: any, - url: string, - options?: object - ): Promise; - fetchImage( - instance: any, - url: string, - options?: object - ): Promise; -} - -declare const LiteHttpDataAccessHelper: LiteHttpDataAccessHelper; -export default LiteHttpDataAccessHelper; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper.js deleted file mode 100644 index c02c1f61..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/DataAccessHelper/LiteHttpDataAccessHelper.js +++ /dev/null @@ -1,218 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import Endian from '../../../Common/Core/Endian.js'; -import { DataTypeByteSize } from '../../../Common/Core/DataArray/Constants.js'; -import { has, registerType } from '../DataAccessHelper.js'; - -const { - vtkErrorMacro, - vtkDebugMacro -} = macro; -const REJECT_COMPRESSION = () => { - vtkErrorMacro('LiteHttpDataAccessHelper does not support compression. Need to register HttpDataAccessHelper instead.'); - return Promise.reject(new Error('LiteHttpDataAccessHelper does not support compression. Need to register HttpDataAccessHelper instead.')); -}; - -/* eslint-disable prefer-promise-reject-errors */ -let requestCount = 0; -function openAsyncXHR(method, url) { - let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - const xhr = new XMLHttpRequest(); - xhr.open(method, url, true); - if (options.headers) { - Object.entries(options.headers).forEach(_ref => { - let [key, value] = _ref; - return xhr.setRequestHeader(key, value); - }); - } - if (options.progressCallback) { - xhr.addEventListener('progress', options.progressCallback); - } - return xhr; -} -function fetchBinary(url) { - let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return new Promise((resolve, reject) => { - const xhr = openAsyncXHR('GET', url, options); - xhr.onreadystatechange = e => { - if (xhr.readyState === 4) { - if (xhr.status === 200 || xhr.status === 0) { - resolve(xhr.response); - } else { - reject({ - xhr, - e - }); - } - } - }; - - // Make request - xhr.responseType = 'arraybuffer'; - xhr.send(); - }); -} -function fetchArray(instance, baseURL, array) { - let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; - if (options && options.compression) { - return REJECT_COMPRESSION(); - } - if (array.ref && !array.ref.pending) { - return new Promise((resolve, reject) => { - const url = [baseURL, array.ref.basepath, array.ref.id].join('/'); - const xhr = openAsyncXHR('GET', url, options); - xhr.onreadystatechange = e => { - if (xhr.readyState === 1) { - array.ref.pending = true; - if (++requestCount === 1 && instance?.invokeBusy) { - instance.invokeBusy(true); - } - } - if (xhr.readyState === 4) { - array.ref.pending = false; - if (xhr.status === 200 || xhr.status === 0) { - array.buffer = xhr.response; - if (array.ref.encode === 'JSON') { - array.values = JSON.parse(array.buffer); - } else { - if (Endian.ENDIANNESS !== array.ref.encode && Endian.ENDIANNESS) { - // Need to swap bytes - vtkDebugMacro(`Swap bytes of ${array.name}`); - Endian.swapBytes(array.buffer, DataTypeByteSize[array.dataType]); - } - array.values = macro.newTypedArray(array.dataType, array.buffer); - } - if (array.values.length !== array.size) { - vtkErrorMacro(`Error in FetchArray: ${array.name}, does not have the proper array size. Got ${array.values.length}, instead of ${array.size}`); - } - - // Done with the ref and work - delete array.ref; - if (--requestCount === 0 && instance?.invokeBusy) { - instance.invokeBusy(false); - } - if (instance?.modified) { - instance.modified(); - } - resolve(array); - } else { - reject({ - xhr, - e - }); - } - } - }; - - // Make request - xhr.responseType = array.dataType !== 'string' ? 'arraybuffer' : 'text'; - xhr.send(); - }); - } - return Promise.resolve(array); -} - -// ---------------------------------------------------------------------------- - -function fetchJSON(instance, url) { - let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - if (options && options.compression) { - return REJECT_COMPRESSION(); - } - return new Promise((resolve, reject) => { - const xhr = openAsyncXHR('GET', url, options); - xhr.onreadystatechange = e => { - if (xhr.readyState === 1) { - if (++requestCount === 1 && instance?.invokeBusy) { - instance.invokeBusy(true); - } - } - if (xhr.readyState === 4) { - if (--requestCount === 0 && instance?.invokeBusy) { - instance.invokeBusy(false); - } - if (xhr.status === 200 || xhr.status === 0) { - resolve(JSON.parse(xhr.responseText)); - } else { - reject({ - xhr, - e - }); - } - } - }; - - // Make request - xhr.responseType = 'text'; - xhr.send(); - }); -} - -// ---------------------------------------------------------------------------- - -function fetchText(instance, url) { - let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - if (options && options.compression) { - return REJECT_COMPRESSION(); - } - return new Promise((resolve, reject) => { - const xhr = openAsyncXHR('GET', url, options); - xhr.onreadystatechange = e => { - if (xhr.readyState === 1) { - if (++requestCount === 1 && instance?.invokeBusy) { - instance.invokeBusy(true); - } - } - if (xhr.readyState === 4) { - if (--requestCount === 0 && instance?.invokeBusy) { - instance.invokeBusy(false); - } - if (xhr.status === 200 || xhr.status === 0) { - resolve(xhr.responseText); - } else { - reject({ - xhr, - e - }); - } - } - }; - - // Make request - xhr.responseType = 'text'; - xhr.send(); - }); -} - -// ---------------------------------------------------------------------------- - -function fetchImage(instance, url) { - let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - return new Promise((resolve, reject) => { - const img = new Image(); - if (options.crossOrigin) { - img.crossOrigin = options.crossOrigin; - } - img.onload = () => resolve(img); - img.onerror = reject; - img.src = url; - }); -} -/* eslint-enable prefer-promise-reject-errors */ - -// ---------------------------------------------------------------------------- - -const LiteHttpDataAccessHelper = { - fetchArray, - fetchJSON, - fetchText, - fetchBinary, - // Only for HTTP - fetchImage -}; - -// The lite version should never override a full feature one... -if (!has('http')) { - registerType('http', options => LiteHttpDataAccessHelper); -} - -export { LiteHttpDataAccessHelper as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/HttpDataSetReader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/HttpDataSetReader.d.ts deleted file mode 100644 index 7fab3471..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/HttpDataSetReader.d.ts +++ /dev/null @@ -1,354 +0,0 @@ -import { vtkAlgorithm, vtkObject, vtkSubscription } from './../../interfaces'; -import { HtmlDataAccessHelper } from './DataAccessHelper/HtmlDataAccessHelper'; -import { HttpDataAccessHelper } from './DataAccessHelper/HttpDataAccessHelper'; -import { JSZipDataAccessHelper } from './DataAccessHelper/JSZipDataAccessHelper'; -import { LiteHttpDataAccessHelper } from './DataAccessHelper/LiteHttpDataAccessHelper'; - -/** - * - */ -export interface IHttpDataSetReaderInitialValues { - enableArray?: boolean; - fetchGzip?: boolean; - arrays?: any[]; - url?: string; - baseURL?: string; - requestCount?: number; -} - -export interface IHttpDataSetReaderOptions { - fullpath?: string; - compression?: string; - loadData?: boolean; -} - -export interface IHttpDataSetReaderArray { - location: string; - name: string; - enable: boolean; -} - -export interface IRange { - max: number; - component: unknown; - min: number; -} - -export interface IPointDataArray { - data: { - numberOfComponents: number; - name: string; - vtkClass: string; - dataType: string; - ranges: Array; - ref: { - registration: string; - encode: string; - basepath: string; - id: string; - }; - size: number; - }; -} - -export interface IDatasetManifest { - origin: [number, number, number]; - cellData: { - arrays: Array; - vtkClass: string; - }; - FieldData: { - arrays: Array; - vtkClass: string; - }; - vtkClass: string; - pointData: { - arrays: Array; - vtkClass: string; - }; - spacing: [number, number, number]; - extent: [number, number, number, number, number, number]; - direction: [ - number, - number, - number, - number, - number, - number, - number, - number, - number - ]; - metadata?: Record; -} - -export interface IParseObjectOptions { - loadData: boolean; - baseUrl: string; - deepCopy: boolean; -} - -type vtkHttpDataSetReaderBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkHttpDataSetReader extends vtkHttpDataSetReaderBase { - /** - * Enable or disable a given array. - * - * ```js - * reader.enableArray('pointData', 'Temperature'); - * reader.enableArray('pointData', 'Pressure', false); - * reader.enableArray('cellData', 'CellId', true); - * reader.enableArray('fieldData', 'labels', true); - * ``` - * @param {String} location - * @param {String} name - * @param {Boolean} [enable] - */ - enableArray(location: string, name: string, enable?: boolean): void; - - /** - * Get the list of available array with their location and if they are - * enable or not for download using the __update()__ method. - */ - getArrays(): IHttpDataSetReaderArray[]; - - /** - * - */ - getArraysByReference(): IHttpDataSetReaderArray[]; - - /** - * Get the base url to use to download arrays or other data from the given - * dataset. - * - * ```js - * reader.setURL('/Data/can.ex2/index.json'); - * - * if (reader.getBaseURL() === '/Data/can.ex2') { - * console.log('Good guess...'); - * } - * ``` - */ - getBaseURL(): string; - - /** - * - */ - getDataAccessHelper(): - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper; - - /** - * - */ - getEnableArray(): boolean; - - /** - * - */ - getFetchGzip(): boolean; - - /** - * Get the url of the object to load. - */ - getUrl(): string; - - /** - * Gets an array of all cached array ids. - */ - getCachedArrayIds(): string[]; - - /** - * Gets the maximum size cached arrays are allowed to occupy. - * Size is given in MiB. - * If cache size is exceeded, the arrays that where not accessed - * the longest are removed. - * - * Special settings: - * -1 -> Cache unlimited - * 0 -> Cache disabled - * null -> Cache disabled - * undefined -> Cache disabled - */ - getMaxCacheSize(): number | null | undefined; - - /** - * Sets the maximum size cached arrays are allowed to occupy. - * Size is given in MiB. - * If cache size is exceeded, the arrays that where not accessed - * the longest are removed. - * If set to "undefined" the cache is unlimited. - * - * Special settings: - * -1 -> Cache unlimited - * 0 -> Cache disabled - * null -> Cache disabled - * undefined -> Cache disabled - */ - setMaxCacheSize(value: number | null | undefined): void; - - /** - * Clears all cached entries. - */ - clearCache(): void; - - /** - * - * @param {Boolean} busy - */ - invokeBusy(busy: boolean): void; - - /** - * Get the current status of the reader. True means busy and False means - * idle. - */ - isBusy(): boolean; - - /** - * - */ - loadData(): string; - - /** - * Attach listener to monitor when the reader is downloading data or not. - * - * ```js - * const subscription = reader.onBusy(busy => { - * console.log('Reader is', busy ? 'downloading' : 'idle'); - * }) - * - * reader.update(); - * // much later - * subscription.unsubscribe(); - * ``` - * @param callback - */ - onBusy(callback: (busy: boolean) => any): vtkSubscription; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * - * @param dataAccessHelper - */ - setDataAccessHelper( - dataAccessHelper: - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper - ): boolean; - - /** - * - * @param progressCallback - */ - setProgressCallback(progressCallback: any): boolean; - - /** - * Set the url for the dataset to load. - * - * ```js - * const reader = HttpDataSetReader.newInstance(); - * isReady = reader.setURL('/Data/can.ex2/index.json'); - * - * // Same as - * const reader = HttpDataSetReader.newInstance({ url: '/Data/can.ex2/index.json' }); - * isReady = reader.updateMetadata(); - * ``` - * @param {String} url the url of the object to load. - * @param {IHttpDataSetReaderOptions} [option] The Draco reader options. - */ - setUrl(url: string, option?: IHttpDataSetReaderOptions): Promise; - - /** - * Set the dataset object to use for data fetching. - * - * @param {IDatasetManifest} manifest The dataset manifest object - * @param {IParseObjectOptions} options - */ - parseObject( - manifest: IDatasetManifest, - options: IParseObjectOptions - ): Promise; - - /** - * - */ - updateMetadata(): Promise; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkHttpDataSetReader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IHttpDataSetReaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IHttpDataSetReaderInitialValues -): void; - -/** - * Method used to create a new instance of vtkHttpDataSetReader while enabling a - * default behavior regarding the data array and the way they should be fetched - * from the server. - * - * The __enableArray__ argument allow you to choose if you want to activate all - * data array by default or if you will have to manually enable them before - * downloading them. - * @param {IHttpDataSetReaderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IHttpDataSetReaderInitialValues -): vtkHttpDataSetReader; - -/** - * The vtkHttpDataSetReader is using a custom format that only exist in vtk.js - * which aims to simplify data fetching in an HTTP context. Basically the format - * is composed of a JSON metadata file referencing all the required data array - * as side binary files along with all the dataset configuration (i.e.: type, - * extent...). - * - * @example - * ```js - * import vtkHttpDataSetReader from '@kitware/vtk.js/IO/Core/HttpDataSetReader'; - * - * const reader = vtkHttpDataSetReader.newInstance(); - * reader.setURL('/Data/can.ex2/index.json').then((reader, dataset) => { - * console.log('Metadata loaded with the geometry', dataset); - * - * reader.getArrays().forEach(array => { - * console.log('-', array.name, array.location, ':', array.enable); - * }); - * - * reader.update() - * .then((reader, dataset) => { - * console.log('dataset fully loaded', dataset); - * }); - * }); - * ``` - */ -export declare const vtkHttpDataSetReader: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkHttpDataSetReader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/HttpDataSetReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/HttpDataSetReader.js deleted file mode 100644 index 96182e51..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/HttpDataSetReader.js +++ /dev/null @@ -1,383 +0,0 @@ -import '../../Common/DataModel/ImageData.js'; -import '../../Common/DataModel/PolyData.js'; -import vtk from '../../vtk.js'; -import { m as macro } from '../../macros2.js'; -import DataAccessHelper from './DataAccessHelper.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkStringArray from '../../Common/Core/StringArray.js'; -import './DataAccessHelper/LiteHttpDataAccessHelper.js'; - -// For vtk factory -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HttpDataAccessHelper'; // HTTP + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HtmlDataAccessHelper'; // html + base64 + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/JSZipDataAccessHelper'; // zip - -const fieldDataLocations = ['pointData', 'cellData', 'fieldData']; -const ARRAY_BUILDERS = { - vtkDataArray, - vtkStringArray -}; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -const cachedArraysAndPromises = {}; -const cachedArraysMetaData = {}; -const MiB = 1024 * 1024; -const GEOMETRY_ARRAYS = { - vtkPolyData(dataset) { - const arrayToDownload = []; - arrayToDownload.push(dataset.points); - ['verts', 'lines', 'polys', 'strips'].forEach(cellName => { - if (dataset[cellName]) { - arrayToDownload.push(dataset[cellName]); - } - }); - return arrayToDownload; - }, - vtkImageData(dataset) { - return []; - }, - vtkUnstructuredGrid(dataset) { - const arrayToDownload = []; - arrayToDownload.push(dataset.points); - arrayToDownload.push(dataset.cells); - arrayToDownload.push(dataset.cellTypes); - return arrayToDownload; - }, - vtkRectilinearGrid(dataset) { - const arrayToDownload = []; - arrayToDownload.push(dataset.xCoordinates); - arrayToDownload.push(dataset.yCoordinates); - arrayToDownload.push(dataset.zCoordinates); - return arrayToDownload; - } -}; -function processDataSet(publicAPI, model, dataset, fetchArray, resolve, reject, loadData) { - const enable = model.enableArray; - - // Generate array list - model.arrays = []; - fieldDataLocations.forEach(location => { - if (dataset[location]) { - dataset[location].arrays.map(i => i.data).forEach(array => { - model.arrays.push({ - name: array.name, - enable, - location, - array, - registration: array.ref.registration || 'addArray' - }); - }); - - // Reset data arrays - dataset[location].arrays = []; - } - }); - - // Fetch geometry arrays - const pendingPromises = []; - const { - progressCallback - } = model; - const compression = model.fetchGzip ? 'gz' : null; - GEOMETRY_ARRAYS[dataset.vtkClass](dataset).forEach(array => { - pendingPromises.push(fetchArray(array, { - compression, - progressCallback - })); - }); - function success() { - model.dataset = vtk(dataset); - if (!loadData) { - model.output[0] = model.dataset; - resolve(publicAPI, model.output[0]); - } else { - publicAPI.loadData().then(() => { - model.output[0] = model.dataset; - resolve(publicAPI, model.output[0]); - }); - } - } - - // Wait for all geometry array to be fetched - if (pendingPromises.length) { - Promise.all(pendingPromises).then(success, err => { - reject(err); - }); - } else { - success(); - } -} - -// ---------------------------------------------------------------------------- -// vtkHttpDataSetReader methods -// ---------------------------------------------------------------------------- - -function vtkHttpDataSetReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkHttpDataSetReader'); - - // Empty output by default - model.output[0] = vtk({ - vtkClass: 'vtkPolyData' - }); - - // Create default dataAccessHelper if not available - if (!model.dataAccessHelper) { - model.dataAccessHelper = DataAccessHelper.get('http'); - } - - // Internal method to fetch Array - function fetchArray(array) { - let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - const arrayId = `${array.ref.id}|${array.vtkClass}`; - if (!cachedArraysAndPromises[arrayId]) { - // Cache the promise while fetching - cachedArraysAndPromises[arrayId] = model.dataAccessHelper.fetchArray(publicAPI, model.baseURL, array, options).then(newArray => { - // Remove promise and return here if caching is disabled - if (!model.maxCacheSize) { - delete cachedArraysAndPromises[arrayId]; - return newArray; - } - - // Replace the promise with the array in cache once downloaded - cachedArraysAndPromises[arrayId] = newArray; - cachedArraysMetaData[arrayId] = { - lastAccess: new Date() - }; - - // If maxCacheSize is set to -1 the cache is unlimited - if (model.maxCacheSize < 0) { - return newArray; - } - - // sort cache according to access times (potentially needed for creating space) - const cachedArrays = {}; - Object.keys(cachedArraysMetaData).forEach(arrId => { - cachedArrays[arrId] = { - array: cachedArraysAndPromises[arrId], - lastAccess: cachedArraysMetaData[arrId].lastAccess - }; - }); - const sortedArrayCache = Object.entries(cachedArrays).sort((a, b) => Math.sign(b[1].lastAccess - a[1].lastAccess)); - - // Check cache size - const cacheSizeLimit = model.maxCacheSize * MiB; - let cacheSize = Object.values(cachedArrays).reduce((accSize, entry) => accSize + entry.array.values.byteLength, 0); - - // Delete cache entries until size is below the limit - while (cacheSize > cacheSizeLimit && sortedArrayCache.length > 0) { - const [oldId, entry] = sortedArrayCache.pop(); - delete cachedArraysAndPromises[oldId]; - delete cachedArraysMetaData[oldId]; - cacheSize -= entry.array.values.byteLength; - } - - // Edge case: If the new entry is bigger than the cache limit - if (!cachedArraysMetaData[arrayId]) { - macro.vtkWarningMacro('Cache size is too small for the dataset'); - } - return newArray; - }); - } else { - // cacheArrays[arrayId] can be a promise or value - Promise.resolve(cachedArraysAndPromises[arrayId]).then(cachedArray => { - if (array !== cachedArray) { - // Update last access for cache retention rules (if caching is enabled) - if (model.maxCacheSize) { - cachedArraysMetaData[arrayId].lastAccess = new Date(); - } - - // Assign cached array as result - Object.assign(array, cachedArray); - delete array.ref; - } - }); - } - return Promise.resolve(cachedArraysAndPromises[arrayId]); - } - - // Fetch dataset (metadata) - publicAPI.updateMetadata = function () { - let loadData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - if (model.compression === 'zip') { - return new Promise((resolve, reject) => { - DataAccessHelper.get('http').fetchBinary(model.url).then(zipContent => { - model.dataAccessHelper = DataAccessHelper.get('zip', { - zipContent, - callback: zip => { - model.baseURL = ''; - model.dataAccessHelper.fetchJSON(publicAPI, 'index.json').then(dataset => { - publicAPI.parseObject(dataset, { - loadData, - deepCopy: false - }).then(resolve, reject); - }, error => { - reject(error); - }); - } - }); - }, error => { - reject(error); - }); - }); - } - return new Promise((resolve, reject) => { - model.dataAccessHelper.fetchJSON(publicAPI, model.url).then(dataset => { - publicAPI.parseObject(dataset, { - loadData, - deepCopy: false - }).then(resolve, reject); - }, error => { - reject(error); - }); - }); - }; - - // Set DataSet url - publicAPI.setUrl = function (url) { - let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - if (url.indexOf('index.json') === -1 && !options.fullpath) { - model.baseURL = url; - model.url = `${url}/index.json`; - } else { - model.url = url; - - // Remove the file in the URL - const path = url.split('/'); - path.pop(); - model.baseURL = path.join('/'); - } - model.compression = options.compression; - - // Fetch metadata - return publicAPI.updateMetadata(!!options.loadData); - }; - publicAPI.parseObject = (manifest, _ref) => { - let { - loadData, - baseUrl, - deepCopy = true - } = _ref; - if (baseUrl) { - model.baseURL = baseUrl; - } - const dataset = deepCopy ? structuredClone(manifest) : manifest; - return new Promise((resolve, reject) => { - processDataSet(publicAPI, model, dataset, fetchArray, resolve, reject, loadData); - }); - }; - - // Fetch the actual data arrays - publicAPI.loadData = () => { - const datasetObj = model.dataset; - const arrayToFecth = model.arrays.filter(array => array.enable).filter(array => array.array.ref).map(array => array.array); - return new Promise((resolve, reject) => { - const error = e => { - reject(e); - }; - const processNext = () => { - if (arrayToFecth.length) { - const { - progressCallback - } = model; - const compression = model.fetchGzip ? 'gz' : null; - fetchArray(arrayToFecth.pop(), { - compression, - progressCallback - }).then(processNext, error); - } else if (datasetObj) { - // Perform array registration on new arrays - model.arrays.filter(metaArray => metaArray.registration && !metaArray.array.ref).forEach(metaArray => { - const newArray = ARRAY_BUILDERS[metaArray.array.vtkClass].newInstance(metaArray.array); - datasetObj[`get${macro.capitalize(metaArray.location)}`]()[metaArray.registration](newArray); - delete metaArray.registration; - }); - datasetObj.modified(); - resolve(publicAPI, datasetObj); - } - }; - - // Start processing queue - processNext(); - }); - }; - publicAPI.requestData = (inData, outData) => { - // do nothing loadData will eventually load up the data - }; - - // Toggle arrays to load - publicAPI.enableArray = function (location, name) { - let enable = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - const activeArray = model.arrays.filter(array => array.name === name && array.location === location); - if (activeArray.length === 1) { - activeArray[0].enable = enable; - } - }; - - // return id's of cached arrays - publicAPI.getCachedArrayIds = () => Object.keys(cachedArraysMetaData); - - // clear global array cache - publicAPI.clearCache = () => Object.keys(cachedArraysMetaData).forEach(k => { - delete cachedArraysAndPromises[k]; - delete cachedArraysMetaData[k]; - }); - - // return Busy state - publicAPI.isBusy = () => !!model.requestCount; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - enableArray: true, - fetchGzip: false, - arrays: [], - url: null, - baseURL: null, - requestCount: 0, - arrayCachingEnabled: true, - maxCacheSize: 2048 - // dataAccessHelper: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['enableArray', 'fetchGzip', 'url', 'baseURL', 'dataAccessHelper', 'maxCacheSize']); - macro.set(publicAPI, model, ['dataAccessHelper', 'progressCallback', 'maxCacheSize']); - macro.getArray(publicAPI, model, ['arrays']); - macro.algo(publicAPI, model, 0, 1); - macro.event(publicAPI, model, 'busy'); - - // Object methods - vtkHttpDataSetReader(publicAPI, model); - - // Make sure we can destructuring progressCallback from model - if (model.progressCallback === undefined) { - model.progressCallback = null; - } -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkHttpDataSetReader'); - -// ---------------------------------------------------------------------------- - -var vtkHttpDataSetReader$1 = { - newInstance, - extend -}; - -export { vtkHttpDataSetReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/HttpDataSetSeriesReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/HttpDataSetSeriesReader.js deleted file mode 100644 index 8dc188e5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/HttpDataSetSeriesReader.js +++ /dev/null @@ -1,188 +0,0 @@ -import '../../Common/DataModel/ImageData.js'; -import '../../Common/DataModel/PolyData.js'; -import vtk from '../../vtk.js'; -import { m as macro } from '../../macros2.js'; -import DataAccessHelper from './DataAccessHelper.js'; -import vtkHttpDataSetReader from './HttpDataSetReader.js'; -import './DataAccessHelper/LiteHttpDataAccessHelper.js'; - -// For vtk factory -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HttpDataAccessHelper'; // HTTP + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HtmlDataAccessHelper'; // html + base64 + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/JSZipDataAccessHelper'; // zip - -const HTTP_DATA_ACCESS = DataAccessHelper.get('http'); - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -function processDataSet(publicAPI, model, dataset, resolve, reject, loadData) { - model.readers = []; - const pendingPromises = []; - dataset.series.forEach(timeStep => { - const newReader = vtkHttpDataSetReader.newInstance({ - fetchGzip: model.fetchGzip, - dataAccessHelper: model.dataAccessHelper - }); - pendingPromises.push(newReader.setUrl(`${model.baseURL}/${timeStep.url}`, { - loadData - })); - model.readers.push({ - timeStep: timeStep.timeStep, - reader: newReader - }); - }); - return Promise.all(pendingPromises).then(() => { - const range = publicAPI.getTimeRange(); - if (range && range.length !== 0) { - publicAPI.setUpdateTimeStep(range[0]); - } - resolve(publicAPI); - }, error => { - reject(error); - }); -} - -// ---------------------------------------------------------------------------- -// vtkHttpDataSetSeriesReader methods -// ---------------------------------------------------------------------------- - -function vtkHttpDataSetSeriesReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkHttpDataSetSeriesReader'); - - // Empty output by default - model.output[0] = vtk({ - vtkClass: 'vtkPolyData' - }); - - // Create default dataAccessHelper if not available - if (!model.dataAccessHelper) { - model.dataAccessHelper = HTTP_DATA_ACCESS; - } - model.currentReader = null; - publicAPI.updateMetaData = function () { - let loadData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - if (model.compression === 'zip') { - return new Promise((resolve, reject) => { - HTTP_DATA_ACCESS.fetchBinary(model.baseURL).then(zipContent => { - model.dataAccessHelper = DataAccessHelper.get('zip', { - zipContent, - callback: zip => { - model.baseURL = ''; - model.dataAccessHelper.fetchJSON(publicAPI, 'index.json').then(dataset => { - processDataSet(publicAPI, model, dataset, resolve, reject, loadData); - }, error => { - reject(error); - }); - } - }); - }); - }); - } - return new Promise((resolve, reject) => { - model.dataAccessHelper.fetchJSON(publicAPI, model.url).then(dataset => processDataSet(publicAPI, model, dataset, resolve, reject, loadData), error => { - reject(error); - }); - }); - }; - publicAPI.setUrl = function (url) { - let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - if (!url.endsWith('index.json') && !options.fullpath) { - model.baseURL = url; - model.url = `${url}/index.json`; - } else { - model.url = url; - - // Remove the file in the URL - const path = url.split('/'); - path.pop(); - model.baseURL = path.join('/'); - } - model.compression = options.compression; - return publicAPI.updateMetaData(options.loadData); - }; - publicAPI.getTimeSteps = () => model.readers.map(reader => reader.timeStep).sort(); - publicAPI.getTimeRange = () => { - const timeSteps = publicAPI.getTimeSteps(); - const length = timeSteps.length; - if (length >= 1) { - return [timeSteps[0], timeSteps[length - 1]]; - } - return []; - }; - publicAPI.setUpdateTimeStep = timeStep => { - const reader = model.readers.reduce((newReader, currentReader) => { - if (currentReader.timeStep <= timeStep) { - return currentReader; - } - return newReader; - }); - if (reader === undefined) { - return; - } - model.currentReader = reader.reader; - model.output[0] = model.currentReader.getOutputData(); - model.output[0].modified(); - publicAPI.modified(); - }; - publicAPI.requestData = (inData, outData) => { - if (model.currentReader) { - outData[0] = model.currentReader.getOutputData(); - } - }; - - // Toggle arrays to load - publicAPI.enableArray = function (location, name) { - let enable = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - if (model.currentReader) { - model.currentReader.reader.enableArray(location, name, enable); - } - }; - publicAPI.loadData = () => { - if (model.currentReader) { - model.currentReader.reader.loadData(); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - fetchGzip: false, - url: null, - baseURL: null, - dataAccessHelper: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['url', 'baseURL']); - macro.set(publicAPI, model, ['dataAccessHelper']); - macro.algo(publicAPI, model, 0, 1); - - // Object methods - vtkHttpDataSetSeriesReader(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkHttpDataSetSeriesReader'); - -// ---------------------------------------------------------------------------- - -var vtkHttpDataSetSeriesReader$1 = { - newInstance, - extend -}; - -export { vtkHttpDataSetSeriesReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/HttpSceneLoader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/HttpSceneLoader.d.ts deleted file mode 100644 index 2e9ff627..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/HttpSceneLoader.d.ts +++ /dev/null @@ -1,132 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import vtkAnnotatedCubeActor from './../../Rendering/Core/AnnotatedCubeActor'; -import vtkAxesActor from './../../Rendering/Core/AxesActor'; -import vtkRenderer from './../../Rendering/Core/Renderer'; -import vtkRenderWindowInteractor from './../../Rendering/Core/RenderWindowInteractor'; - -/** - * - */ -export interface IHttpSceneLoaderInitialValues { - fetchGzip?: boolean; - url?: string; - baseURL?: string; - animationHandler?: null; - startLODLoaders?: boolean; -} - -export interface vtkHttpSceneLoader extends vtkObject { - /** - * - */ - getAnimationHandler(): any; // vtkTimeStepBasedAnimationHandler - - /** - * - */ - getBaseURL(): string; - - /** - * - * @param {Boolean} fetchGzip - */ - getFetchGzip(fetchGzip: boolean): boolean; - - /** - * - */ - getMetadata(): any; - - /** - * - */ - getRenderer(): vtkRenderer; - - /** - * - */ - getScene(): object; - - /** - * - */ - getUrl(): string; - - /** - * - */ - invokeReady(): void; - - /** - * - */ - onReady(): void; - - /** - * - */ - resetScene(): void; - - /** - * - * @param {vtkRenderer} renderer The vtkRenderer instance. - */ - setRenderer(renderer: vtkRenderer): boolean; - - /** - * - * @param {String} url - */ - setUrl(url: string): void; - - /** - * - */ - update(): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkHttpSceneLoader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IHttpSceneLoaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IHttpSceneLoaderInitialValues -): void; - -/** - * Method used to create a new instance of vtkHttpSceneLoader - * @param {IHttpSceneLoaderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IHttpSceneLoaderInitialValues -): vtkHttpSceneLoader; - -/** - * - * @param sceneItem - * @param settings - */ -export function applySettings(sceneItem: object, settings: object): void; - -/** - * - * @param typeName - * @param handler - */ -export function updateDatasetTypeMapping(typeName: string, handler: any): void; - -/** - * vtkHttpSceneLoader - */ -export declare const vtkHttpSceneLoader: { - newInstance: typeof newInstance; - extend: typeof extend; - applySettings: typeof applySettings; - updateDatasetTypeMapping: typeof updateDatasetTypeMapping; -}; -export default vtkHttpSceneLoader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/HttpSceneLoader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/HttpSceneLoader.js deleted file mode 100644 index e6e85eb3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/HttpSceneLoader.js +++ /dev/null @@ -1,444 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkActor from '../../Rendering/Core/Actor.js'; -import vtkVolume from '../../Rendering/Core/Volume.js'; -import vtkHttpDataSetReader from './HttpDataSetReader.js'; -import vtkHttpDataSetSeriesReader from './HttpDataSetSeriesReader.js'; -import vtkMapper from '../../Rendering/Core/Mapper.js'; -import vtkTexture from '../../Rendering/Core/Texture.js'; -import vtkTextureLODsDownloader from '../../Rendering/Misc/TextureLODsDownloader.js'; -import vtkHttpDataSetLODsLoader from '../Misc/HttpDataSetLODsLoader.js'; -import vtkColorTransferFunction from '../../Rendering/Core/ColorTransferFunction.js'; -import vtkPiecewiseFunction from '../../Common/DataModel/PiecewiseFunction.js'; -import vtkVolumeMapper from '../../Rendering/Core/VolumeMapper.js'; -import vtkTimeStepBasedAnimationHandler from '../../Interaction/Animations/TimeStepBasedAnimationHandler.js'; -import DataAccessHelper from './DataAccessHelper.js'; -import './DataAccessHelper/LiteHttpDataAccessHelper.js'; - -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HttpDataAccessHelper'; // HTTP + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HtmlDataAccessHelper'; // html + base64 + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/JSZipDataAccessHelper'; // zip - -const { - vtkErrorMacro -} = macro; -let itemCount = 1; -function applySettings(sceneItem, settings) { - if (settings.actor) { - sceneItem.actor.set(settings.actor); - } - if (settings.actorRotation) { - sceneItem.actor.rotateWXYZ(settings.actorRotation[0], settings.actorRotation[1], settings.actorRotation[2], settings.actorRotation[3]); - } - if (settings.volumeRotation) { - sceneItem.volume.rotateWXYZ(settings.volumeRotation[0], settings.volumeRotation[1], settings.volumeRotation[2], settings.volumeRotation[3]); - } - if (settings.property) { - if (settings.volume) { - const volumePropertySettings = { - ...settings.property - }; - delete volumePropertySettings.components; - sceneItem.volume.getProperty().set(volumePropertySettings); - if (settings.property.components) { - const volumeProperty = sceneItem.volume.getProperty(); - sceneItem.volumeComponents.forEach((component, componentIndex) => { - volumeProperty.setScalarOpacityUnitDistance(componentIndex, settings.property.components[componentIndex].scalarOpacityUnitDistance); - if (component.rgbTransferFunction) { - volumeProperty.setRGBTransferFunction(componentIndex, component.rgbTransferFunction); - } - if (component.grayTransferFunction) { - volumeProperty.setGrayTransferFunction(componentIndex, component.grayTransferFunction); - } - if (component.scalarOpacity) { - volumeProperty.setScalarOpacity(componentIndex, component.scalarOpacity); - } - }); - } - } else { - sceneItem.actor.getProperty().set(settings.property); - } - } - if (settings.mapper) { - if (settings.mapper.colorByArrayName) { - sceneItem.source.enableArray(settings.mapper.colorByArrayName, settings.mapper.colorByArrayName); - sceneItem.source.loadData(); - } - sceneItem.mapper.set(settings.mapper); - if (settings.mapper.colorByArrayName && settings.luts[settings.mapper.colorByArrayName]) { - sceneItem.mapper.setLookupTable(settings.luts[settings.mapper.colorByArrayName]); - sceneItem.mapper.setUseLookupTableScalarRange(true); - } - } - if (settings.lookupTable) { - sceneItem.mapper.getLookupTable().set(settings.lookupTable); - sceneItem.mapper.getLookupTable().build(); - } - if (settings.textureLODs) { - sceneItem.textureLODs = settings.textureLODs; - } - if (settings.sourceLODs) { - sceneItem.sourceLODs = settings.sourceLODs; - } -} - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -function isImage(str) { - const ext = str.split('.').pop().toLowerCase(); - return ['jpg', 'png', 'jpeg'].indexOf(ext) !== -1; -} -function loadColorTransferFunction(item) { - const tf = vtkColorTransferFunction.newInstance(item); - if (item.nodes) { - tf.removeAllPoints(); - item.nodes.forEach(_ref => { - let [x, r, g, b, midpoint, sharpness] = _ref; - tf.addRGBPointLong(x, r, g, b, midpoint, sharpness); - }); - } - return tf; -} -function loadPiecewiseFunction(item) { - const pwf = vtkPiecewiseFunction.newInstance(item); - if (item.points) { - pwf.removeAllPoints(); - item.points.forEach(_ref2 => { - let [x, y, midpoint, sharpness] = _ref2; - return pwf.addPointLong(x, y, midpoint, sharpness); - }); - } - return pwf; -} -function initializeVolumeComponents(components) { - return components.map(component => { - const ret = {}; - if (component.rgbTransferFunction) { - ret.rgbTransferFunction = loadColorTransferFunction(component.rgbTransferFunction); - } else if (component.grayTransferFunction) { - ret.grayTransferFunction = loadPiecewiseFunction(component.grayTransferFunction); - } - if (component.scalarOpacity) { - ret.scalarOpacity = loadPiecewiseFunction(component.scalarOpacity); - } - return ret; - }); -} - -// ---------------------------------------------------------------------------- - -function defineLoadFuctionForReader(type) { - return (item, model, publicAPI) => { - const source = type.newInstance({ - fetchGzip: model.fetchGzip, - dataAccessHelper: model.dataAccessHelper - }); - let mapper; - if (item.volume) { - mapper = vtkVolumeMapper.newInstance(); - } else { - mapper = vtkMapper.newInstance(); - } - const sceneItem = { - name: item.name || `Item ${itemCount++}`, - source, - mapper, - defaultSettings: item - }; - if (item.volume) { - const volume = vtkVolume.newInstance(); - sceneItem.volume = volume; - if (model.renderer) { - model.renderer.addVolume(volume); - } - if (item.property && item.property.components) { - // initialize transfer functions - sceneItem.volumeComponents = initializeVolumeComponents(item.property.components); - } - volume.setMapper(mapper); - } else { - const actor = vtkActor.newInstance(); - sceneItem.actor = actor; - if (item.texture && item.texture in model.usedTextures) { - // If this texture has already been used, re-use it - actor.addTexture(model.usedTextures[item.texture]); - } else if (item.texture) { - const url = [model.baseURL, item.texture].join('/'); - const texture = vtkTexture.newInstance(); - texture.setInterpolate(true); - texture.setRepeat(true); - actor.addTexture(texture); - sceneItem.texture = texture; - model.usedTextures[item.texture] = texture; - if (isImage(item.texture)) { - // It's an image file - model.dataAccessHelper.fetchImage({}, url, { - crossOrigin: 'anonymous' - }).then(img => { - texture.setImage(img); - }); - } else { - // Assume it's a dataset file - const textureSource = type.newInstance({ - fetchGzip: model.fetchGzip, - dataAccessHelper: model.dataAccessHelper - }); - textureSource.setUrl(url, { - loadData: true - }).then(() => { - texture.setInputData(textureSource.getOutputData()); - }); - } - } - const { - textureLODs - } = item; - if (textureLODs && textureLODs.files && textureLODs.files.length !== 0) { - // If this texture LOD has already been used, re-use it - const textureLODsStr = JSON.stringify(textureLODs); - if (textureLODsStr in model.usedTextureLODs) { - actor.addTexture(model.usedTextureLODs[textureLODsStr]); - } else { - // Set it on the scene item so it can be accessed later, for - // doing things like setting a callback function. - sceneItem.textureLODsDownloader = vtkTextureLODsDownloader.newInstance(); - const textureDownloader = sceneItem.textureLODsDownloader; - const texture = vtkTexture.newInstance(); - texture.setInterpolate(true); - actor.addTexture(texture); - model.usedTextureLODs[textureLODsStr] = texture; - textureDownloader.setTexture(texture); - textureDownloader.setCrossOrigin('anonymous'); - textureDownloader.setBaseUrl(textureLODs.baseUrl); - textureDownloader.setFiles(textureLODs.files); - if (model.startLODLoaders) { - textureDownloader.startDownloads(); - } - } - } - if (model.renderer) { - model.renderer.addActor(actor); - } - actor.setMapper(mapper); - } - mapper.setInputConnection(source.getOutputPort()); - source.setUrl([model.baseURL, item[item.type].url].join('/'), { - loadData: true - }).then(() => publicAPI.invokeReady()); - applySettings(sceneItem, item); - model.scene.push(sceneItem); - const { - sourceLODs - } = item; - if (sourceLODs && sourceLODs.files && sourceLODs.files.length !== 0) { - // Set it on the scene item so it can be accessed later, for - // doing things like setting a callback function. - sceneItem.dataSetLODsLoader = vtkHttpDataSetLODsLoader.newInstance(); - const { - dataSetLODsLoader - } = sceneItem; - dataSetLODsLoader.setMapper(mapper); - dataSetLODsLoader.setSceneItem(sceneItem); - dataSetLODsLoader.setBaseUrl(sourceLODs.baseUrl); - dataSetLODsLoader.setFiles(sourceLODs.files); - if (model.startLODLoaders) { - dataSetLODsLoader.startDownloads(); - } - } - return sceneItem; - }; -} -function loadTimeStepBasedAnimationHandler(data, model) { - model.animationHandler = vtkTimeStepBasedAnimationHandler.newInstance({ - scene: model.scene, - originalMetadata: model.metadata, - applySettings - }); - if (model.animationHandler && model.renderer) { - model.animationHandler.addRenderer(model.renderer); - } - model.animationHandler.setData(data); -} - -// ---------------------------------------------------------------------------- -// Note: keeping both types (with and without 'vtk' prefix) for backwards compatibility -// see https://gitlab.kitware.com/paraview/paraview/-/merge_requests/4628#note_876772 - -const TYPE_MAPPING = { - httpDataSetReader: defineLoadFuctionForReader(vtkHttpDataSetReader), - vtkHttpDataSetReader: defineLoadFuctionForReader(vtkHttpDataSetReader), - httpDataSetSeriesReader: defineLoadFuctionForReader(vtkHttpDataSetSeriesReader), - vtkHttpDataSetSeriesReader: defineLoadFuctionForReader(vtkHttpDataSetSeriesReader) -}; -const ANIMATION_TYPE_MAPPING = { - timeStepBasedAnimationHandler: loadTimeStepBasedAnimationHandler, - vtkTimeStepBasedAnimationHandler: loadTimeStepBasedAnimationHandler -}; - -// ---------------------------------------------------------------------------- - -function updateDatasetTypeMapping(typeName, handler) { - TYPE_MAPPING[typeName] = handler; -} - -// ---------------------------------------------------------------------------- -// vtkHttpSceneLoader methods -// ---------------------------------------------------------------------------- - -function vtkHttpSceneLoader(publicAPI, model) { - const originalSceneParameters = {}; - - // These are here to re-use the same textures when possible - if (!model.usedTextures) { - model.usedTextures = {}; - } - if (!model.usedTextureLODs) { - model.usedTextureLODs = {}; - } - - // Set our className - model.classHierarchy.push('vtkHttpSceneLoader'); - - // Create scene container - if (!model.scene) { - model.scene = []; - } - function setCameraParameters(params) { - if (model.renderer) { - const camera = model.renderer.getActiveCamera(); - if (camera) { - camera.set(params); - } else { - vtkErrorMacro('No active camera to update'); - } - } - } - function setBackground(color) { - if (model.renderer) { - model.renderer.setBackground(color); - } - } - - // Create default dataAccessHelper if not available - if (!model.dataAccessHelper) { - model.dataAccessHelper = DataAccessHelper.get('http'); - } - publicAPI.update = () => { - model.dataAccessHelper.fetchJSON(publicAPI, model.url).then(data => { - if (data.fetchGzip !== undefined) { - model.fetchGzip = data.fetchGzip; - } - if (data.background && model.renderer) { - setBackground(data.background); - } - if (data.camera) { - originalSceneParameters.camera = data.camera; - setCameraParameters(data.camera); - } - const luts = {}; - if (data.lookupTables) { - Object.keys(data.lookupTables).forEach(fieldName => { - const config = data.lookupTables[fieldName]; - const lookupTable = loadColorTransferFunction(config); - luts[fieldName] = lookupTable; - }); - } - if (data.scene) { - data.scene.forEach(item => { - const builder = TYPE_MAPPING[item.type]; - if (builder) { - builder({ - luts, - ...item - }, model, publicAPI); - } - }); - global.scene = model.scene; - - // Clear these - model.usedTextures = {}; - model.usedTextureLODs = {}; - } - - // Capture index.json into meta - model.metadata = data; - if (data.animation) { - const animationLoader = ANIMATION_TYPE_MAPPING[data.animation.type]; - animationLoader({ - ...data.animation - }, model, publicAPI, setCameraParameters, setBackground); - } - }, error => { - vtkErrorMacro(`Error fetching scene ${error}`); - }); - }; - publicAPI.resetScene = () => { - if (originalSceneParameters.camera) { - setCameraParameters(originalSceneParameters.camera); - } - }; - - // Set DataSet url - publicAPI.setUrl = url => { - if (url.indexOf('index.json') === -1) { - model.baseURL = url; - model.url = `${url}/index.json`; - } else { - model.url = url; - - // Remove the file in the URL - const path = url.split('/'); - path.pop(); - model.baseURL = path.join('/'); - } - - // Fetch data - return publicAPI.update(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - fetchGzip: false, - url: null, - baseURL: null, - animationHandler: null, - // Whether or not to automatically start texture LOD and poly LOD - // downloads when they are read. - startLODLoaders: true -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['fetchGzip', 'url', 'baseURL', 'scene', 'metadata', 'animationHandler']); - macro.setGet(publicAPI, model, ['renderer']); - macro.event(publicAPI, model, 'ready'); - - // Object methods - vtkHttpSceneLoader(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkHttpSceneLoader'); - -// ---------------------------------------------------------------------------- - -var vtkHttpSceneLoader$1 = { - newInstance, - extend, - applySettings, - updateDatasetTypeMapping -}; - -export { vtkHttpSceneLoader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ImageStream.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ImageStream.d.ts deleted file mode 100644 index c190ad14..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ImageStream.d.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { Size } from './../../types'; -import vtkViewStream from './ImageStream/ViewStream'; - -/** - * - */ -export interface IImageStreamInitialValues { - viewStreams?: any[]; - serverAnimationFPS?: number; -} - -// Return type of wslink/src/WebsocketConnection, getSession() method. -type WebsocketSession = any; - -export interface vtkImageStream extends vtkObject { - /** - * - */ - connect(session: WebsocketSession): void; - - /** - * - * @param {String} [viewId] The ID of the view. - * @param {Size} [size] The size of the view. - */ - createViewStream(viewId?: string, size?: Size): vtkViewStream; - - /** - * - */ - delete(): void; - - /** - * - */ - disconnect(): void; - - /** - * - */ - getProtocol(): any; - - /** - * - */ - getServerAnimationFPS(): number; - - /** - * - */ - registerViewStream(): void; - - /** - * - * @param serverAnimationFPS - */ - setServerAnimationFPS(serverAnimationFPS: number): boolean; - - /** - * - */ - unregisterViewStream(): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkImageStream characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IImageStreamInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IImageStreamInitialValues -): void; - -/** - * Method used to create a new instance of vtkImageStream - * @param {IImageStreamInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IImageStreamInitialValues -): vtkImageStream; - -/** - * vtkImageStream. - */ -export declare const vtkImageStream: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkImageStream; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ImageStream.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ImageStream.js deleted file mode 100644 index db0f92de..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ImageStream.js +++ /dev/null @@ -1,152 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import createMethods from './ImageStream/DefaultProtocol.js'; -import ViewStream from './ImageStream/ViewStream.js'; - -function vtkImageStream(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkImageStream'); - - // -------------------------------------------------------------------------- - // Internal private method - // -------------------------------------------------------------------------- - - function onImage(data) { - const message = data[0]; - if (!message || !message.image) { - return; - } - for (let i = 0; i < model.viewStreams.length; i++) { - model.viewStreams[i].processMessage(message); - } - } - - // -------------------------------------------------------------------------- - // PublicAPI - // -------------------------------------------------------------------------- - - publicAPI.setServerAnimationFPS = function () { - let maxFPS = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30; - let changeDetected = false; - if (model.serverAnimationFPS !== maxFPS) { - model.serverAnimationFPS = maxFPS; - changeDetected = true; - } - if (!model.protocol) { - return Promise.resolve(true); - } - if (changeDetected) { - publicAPI.modified(); - } - return model.protocol.setServerAnimationFPS(maxFPS); - }; - - // -------------------------------------------------------------------------- - - publicAPI.connect = function (session) { - let protocol = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : createMethods; - if (model.connected || !session || !protocol) { - return; - } - model.protocol = protocol(session); - model.protocol.subscribeToImageStream(onImage).promise // new API in wslink 1.0.5+ - .then(subscription => { - model.renderTopicSubscription = subscription; - model.connected = true; - }).catch(e => { - model.connected = false; - console.error(e); - }); - }; - - // -------------------------------------------------------------------------- - - publicAPI.disconnect = () => { - if (model.protocol && model.connected && model.renderTopicSubscription) { - model.protocol.unsubscribeToImageStream(model.renderTopicSubscription); - model.renderTopicSubscription = null; - } - model.connected = false; - }; - - // -------------------------------------------------------------------------- - - publicAPI.registerViewStream = view => { - model.viewStreams.push(view); - }; - - // -------------------------------------------------------------------------- - - publicAPI.unregisterViewStream = view => { - model.viewStreams = model.viewStreams.filter(v => v !== view); - }; - - // -------------------------------------------------------------------------- - - publicAPI.createViewStream = function () { - let viewId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '-1'; - let size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [400, 400]; - const { - setServerAnimationFPS, - getServerAnimationFPS, - unregisterViewStream - } = publicAPI; - const viewStream = ViewStream.newInstance({ - protocol: model.protocol, - unregisterViewStream, - sharedAPI: { - setServerAnimationFPS, - getServerAnimationFPS - } - }); - viewStream.setViewId(viewId); - viewStream.setSize(size[0], size[1]); - publicAPI.registerViewStream(viewStream); - return viewStream; - }; - - // -------------------------------------------------------------------------- - - publicAPI.delete = macro.chain(() => { - while (model.viewStreams.length) { - model.viewStreams.pop().delete(); - } - publicAPI.disconnect(); - }, publicAPI.delete); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // protocol: null, - viewStreams: [], - serverAnimationFPS: -1 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['serverAnimationFPS', 'protocol']); - - // Object specific methods - vtkImageStream(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImageStream'); - -// ---------------------------------------------------------------------------- - -var vtkImageStream$1 = { - newInstance, - extend -}; - -export { vtkImageStream$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ImageStream/DefaultProtocol.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ImageStream/DefaultProtocol.d.ts deleted file mode 100644 index 1caaa516..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ImageStream/DefaultProtocol.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Size, Vector3 } from '../../../types'; - -declare function createMethods(session: any): { - subscribeToImageStream: (callback: any) => any; - unsubscribeToImageStream: (subscription: any) => any; - registerView: (viewId: string) => any; - unregisterView: (viewId: string) => any; - enableView: (viewId: string, enabled: boolean) => any; - render: (options?: { size: Size; view: number }) => any; - resetCamera: (view?: number) => any; - invalidateCache: (viewId: string) => any; - setQuality: (viewId: string, quality: number, ratio?: number) => any; - setSize: (viewId: string, width?: number, height?: number) => any; - setServerAnimationFPS: (fps?: number) => any; - getServerAnimationFPS: () => number; - startAnimation: (viewId?: number) => any; - stopAnimation: (viewId?: number) => any; - updateCamera: ( - viewId: string, - focalPoint: Vector3, - viewUp: Vector3, - position: Vector3, - forceUpdate?: boolean - ) => any; - updateCameraParameters: ( - viewId?: number, - parameters?: {}, - forceUpdate?: boolean - ) => any; -}; - -export default createMethods; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ImageStream/DefaultProtocol.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ImageStream/DefaultProtocol.js deleted file mode 100644 index 91592fec..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ImageStream/DefaultProtocol.js +++ /dev/null @@ -1,55 +0,0 @@ -function createMethods(session) { - return { - subscribeToImageStream: callback => session.subscribe('viewport.image.push.subscription', callback), - unsubscribeToImageStream: subscription => session.unsubscribe(subscription), - registerView: viewId => session.call('viewport.image.push.observer.add', [viewId]), - unregisterView: viewId => session.call('viewport.image.push.observer.remove', [viewId]), - enableView: (viewId, enabled) => session.call('viewport.image.push.enabled', [viewId, enabled]), - render: function () { - let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { - size: [400, 400], - view: -1 - }; - return session.call('viewport.image.push', [options]); - }, - resetCamera: function () { - let view = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1; - return session.call('viewport.camera.reset', [view]); - }, - invalidateCache: viewId => session.call('viewport.image.push.invalidate.cache', [viewId]), - setQuality: function (viewId, quality) { - let ratio = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - return session.call('viewport.image.push.quality', [viewId, quality, ratio]); - }, - setSize: function (viewId) { - let width = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 400; - let height = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 400; - return session.call('viewport.image.push.original.size', [viewId, width, height]); - }, - setServerAnimationFPS: function () { - let fps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30; - return session.call('viewport.image.animation.fps.max', [fps]); - }, - getServerAnimationFPS: () => session.call('viewport.image.animation.fps.get', []), - startAnimation: function () { - let viewId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1; - return session.call('viewport.image.animation.start', [viewId]); - }, - stopAnimation: function () { - let viewId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1; - return session.call('viewport.image.animation.stop', [viewId]); - }, - updateCamera: function (viewId, focalPoint, viewUp, position) { - let forceUpdate = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true; - return session.call('viewport.camera.update', [viewId ?? -1, focalPoint, viewUp, position, forceUpdate]); - }, - updateCameraParameters: function () { - let viewId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1; - let parameters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - let forceUpdate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - return session.call('viewport.camera.update.params', [viewId, parameters, forceUpdate]); - } - }; -} - -export { createMethods as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ImageStream/ViewStream.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ImageStream/ViewStream.d.ts deleted file mode 100644 index 17e65d9d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ImageStream/ViewStream.d.ts +++ /dev/null @@ -1,256 +0,0 @@ -import { vtkObject } from '../../../interfaces'; -import { Size } from '../../../types'; -import vtkCamera from '../../../Rendering/Core/Camera'; -import DefaultProtocol from './DefaultProtocol'; -/** - * - */ -export interface IViewStreamInitialValues { - protocol?: typeof DefaultProtocol; - api?: any; - cameraUpdateRate?: number; - decodeImage?: boolean; - fpsWindowSize?: number; - interactiveQuality?: number; - interactiveRatio?: number; - isAnimating?: boolean; - mimeType?: string; - size?: Size; - stillQuality?: number; - stillRatio?: number; - useCameraParameters?: boolean; - viewId?: string; -} - -interface IMetaData { - size: Size; - id: string; - memory: number; - workTime: number; -} - -interface IEvent { - url: string; - fps: number[]; - metadata: IMetaData; -} - -export interface vtkViewStream extends vtkObject { - /** - * - * @param callback - */ - onImageReady(callback: () => void): any; - - /** - * - */ - getViewId(): string; - - /** - * - */ - getSize(): Size; - - /** - * - */ - getFps(): number[]; - - /** - * - */ - getLastImageEvent(): IEvent; - - /** - * - */ - getCamera(): vtkCamera; - - /** - * - * @param camera - */ - setCamera(camera: vtkCamera): boolean; - - /** - * - */ - getCameraUpdateRate(): number; - - /** - * - * @param cameraUpdateRate - */ - setCameraUpdateRate(cameraUpdateRate: number): boolean; - - /** - * - */ - getDecodeImage(): boolean; - - /** - * - * @param decodeImage - */ - setDecodeImage(decodeImage: boolean): boolean; - - /** - * - */ - getFpsWindowSize(): number; - - /** - * - * @param fpsWindowSize - */ - setFpsWindowSize(fpsWindowSize: number): boolean; - - /** - * - */ - getInteractiveQuality(): number; - - /** - * - * @param interactiveQuality - */ - setInteractiveQuality(interactiveQuality: number): boolean; - - /** - * - */ - getInteractiveRatio(): number; - - /** - * - * @param interactiveRatio - */ - setInteractiveRatio(interactiveRatio: number): boolean; - - /** - * - */ - getStillQuality(): number; - - /** - * - * @param stillQuality - */ - setStillQuality(stillQuality: number): boolean; - - /** - * - */ - getStillRatio(): number; - - /** - * - * @param stillRatio - */ - setStillRatio(stillRatio: number): boolean; - - /** - * - */ - getUseCameraParameters(): boolean; - - /** - * - * @param useCameraParameters - */ - setUseCameraParameters(useCameraParameters: boolean): boolean; - - /** - * - */ - pushCamera(): any; - - /** - * - */ - invalidateCache(): any; - - /** - * - */ - render(): any; - - /** - * - */ - resetCamera(): any; - - /** - * - */ - startAnimation(): any; - - /** - * - */ - stopAnimation(): any; - - /** - * - * @param width - * @param height - */ - setSize(width: number, height: number): any; - - /** - * - */ - startInteraction(): any; - - /** - * - */ - endInteraction(): any; - - /** - * - * @param viewId - */ - setViewId(viewId: string): boolean; - - /** - * - * @param msg - */ - processMessage(msg: any): void; - - /** - * - */ - delete(): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkViewStream characteristics. - * @param publicAPI - * @param model - * @param initialValues - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IViewStreamInitialValues -): void; - -/** - * Method used to create a new instance of vtkViewStream - * @param {IViewStreamInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IViewStreamInitialValues -): vtkViewStream; - -/** - * IViewStreamInitialValues provides a way to create a remote view. - */ -export declare const vtkViewStream: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkViewStream; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ImageStream/ViewStream.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ImageStream/ViewStream.js deleted file mode 100644 index 052ac124..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ImageStream/ViewStream.js +++ /dev/null @@ -1,281 +0,0 @@ -import { m as macro } from '../../../macros2.js'; - -function vtkViewStream(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkViewStream'); - - // Internal variables - model.imageDecodingPool = [new Image(), new Image()]; - model.eventPool = []; - model.nextPoolImageIndex = 0; - model.urlToRevoke = []; - model.activeURL = null; - model.fps = []; - model.lastTime = Date.now(); - model.lastImageEvent = null; - - // -------------------------------------------------------------------------- - // Internal methods - // -------------------------------------------------------------------------- - - function imageLoaded(e) { - if (model.deleted) return; - const id = Number(this.dataset.id); - publicAPI.invokeImageReady(model.eventPool[id]); - } - - // -------------------------------------------------------------------------- - - function prepareDecodingPool() { - let size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 2; - while (model.imageDecodingPool.length < size) { - model.imageDecodingPool.push(new Image()); - } - for (let i = 0; i < model.imageDecodingPool.length; i++) { - model.imageDecodingPool[i].dataset.id = i; - model.imageDecodingPool[i].onload = imageLoaded; - } - } - - // -------------------------------------------------------------------------- - - function decodeImage(event) { - model.eventPool[model.nextPoolImageIndex] = event; - event.image = model.imageDecodingPool[model.nextPoolImageIndex++]; - model.nextPoolImageIndex %= model.imageDecodingPool.length; - event.image.src = event.url; - } - - // -------------------------------------------------------------------------- - - publicAPI.pushCamera = () => { - const focalPoint = model.camera.getReferenceByName('focalPoint'); - const viewUp = model.camera.getReferenceByName('viewUp'); - const position = model.camera.getReferenceByName('position'); - const parallelProjection = model.camera.getParallelProjection(); - const viewAngle = model.camera.getViewAngle(); - const parallelScale = model.camera.getParallelScale(); - let promise = null; - if (model.useCameraParameters) { - promise = model.protocol.updateCameraParameters(model.viewId, { - focalPoint, - viewUp, - position, - parallelProjection, - viewAngle, - parallelScale - }, false); - } else { - promise = model.protocol.updateCamera(model.viewId, focalPoint, viewUp, position, false); - } - if (model.isAnimating) { - setTimeout(publicAPI.pushCamera, 1000 / model.cameraUpdateRate); - } - return promise; - }; - - // -------------------------------------------------------------------------- - - publicAPI.invalidateCache = () => model.protocol.invalidateCache(model.viewId); - - // -------------------------------------------------------------------------- - // PublicAPI - // -------------------------------------------------------------------------- - - publicAPI.render = () => model.protocol.render({ - view: model.viewId, - size: model.size - }); - - // -------------------------------------------------------------------------- - - publicAPI.resetCamera = () => model.protocol.resetCamera(model.viewId); - - // -------------------------------------------------------------------------- - - publicAPI.startAnimation = () => model.protocol.startAnimation(model.viewId); - - // -------------------------------------------------------------------------- - - publicAPI.stopAnimation = () => model.protocol.stopAnimation(model.viewId); - - // -------------------------------------------------------------------------- - - publicAPI.setSize = (width, height) => { - let changeDetected = false; - if (model.size[0] !== width || model.size[1] !== height) { - model.size = [width, height]; - changeDetected = true; - } - if (changeDetected) { - publicAPI.modified(); - if (model.protocol) { - return model.protocol.setSize(model.viewId, width, height); - } - } - return Promise.resolve(false); - }; - - // -------------------------------------------------------------------------- - - publicAPI.startInteraction = () => { - const promises = [model.protocol.setQuality(model.viewId, model.interactiveQuality, model.interactiveRatio)]; - if (model.camera) { - promises.push(publicAPI.startAnimation()); - model.isAnimating = true; - promises.push(publicAPI.pushCamera()); - } - return Promise.all(promises); - }; - - // -------------------------------------------------------------------------- - - publicAPI.endInteraction = () => { - const promises = []; - promises.push(model.protocol.setQuality(model.viewId, model.stillQuality, model.stillRatio)); - if (model.camera) { - promises.push(publicAPI.stopAnimation()); - model.isAnimating = false; - promises.push(publicAPI.pushCamera()); - } else { - promises.push(publicAPI.render()); - } - return Promise.all(promises); - }; - - // -------------------------------------------------------------------------- - - publicAPI.setViewId = id => { - if (model.viewId === id || !model.protocol) { - return false; - } - if (model.viewId) { - model.protocol.unregisterView(model.viewId); - } - model.viewId = id; - if (model.viewId) { - model.protocol.registerView(model.viewId).then(_ref => { - let { - viewId - } = _ref; - model.viewId = viewId; - }); - } - return true; - }; - - // -------------------------------------------------------------------------- - - publicAPI.processMessage = msg => { - /* eslint-disable eqeqeq */ - if (msg.id != model.viewId) { - return; - } - /* eslint-enable eqeqeq */ - const imgBlob = new Blob([msg.image], { - type: model.mimeType - }); - if (model.activeURL) { - model.urlToRevoke.push(model.activeURL); - model.activeURL = null; - while (model.urlToRevoke.length > 60) { - const url = model.urlToRevoke.shift(); - window.URL.revokeObjectURL(url); - } - } - model.activeURL = URL.createObjectURL(imgBlob); - const time = Date.now(); - const fps = Math.floor(10000 / (time - model.lastTime)) / 10; - model.fps.push(fps); - model.lastTime = time; - model.lastImageEvent = { - url: model.activeURL, - fps, - metadata: { - size: msg.size, - id: msg.id, - memory: msg.memsize, - workTime: msg.workTime - } - }; - if (model.decodeImage) { - decodeImage(model.lastImageEvent); - } else { - publicAPI.invokeImageReady(model.lastImageEvent); - } - - // GC fps - while (model.fps.length > model.fpsWindowSize) { - model.fps.shift(); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.delete = macro.chain(() => { - model.unregisterViewStream(publicAPI); - publicAPI.setViewId(null); - while (model.urlToRevoke.length) { - window.URL.revokeObjectURL(model.urlToRevoke.pop()); - } - }, publicAPI.delete); - - // -------------------------------------------------------------------------- - // Initialize object - // -------------------------------------------------------------------------- - - prepareDecodingPool(); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // protocol: null, - // api: null, - cameraUpdateRate: 30, - decodeImage: true, - fpsWindowSize: 250, - interactiveQuality: 80, - interactiveRatio: 1, - isAnimating: false, - mimeType: 'image/jpeg', - size: [-1, -1], - stillQuality: 100, - stillRatio: 1, - useCameraParameters: false, - viewId: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.event(publicAPI, model, 'ImageReady'); - macro.get(publicAPI, model, ['viewId', 'size', 'fps', 'lastImageEvent']); - macro.setGet(publicAPI, model, ['camera', 'cameraUpdateRate', 'decodeImage', 'fpsWindowSize', 'interactiveQuality', 'interactiveRatio', 'stillQuality', 'stillRatio', 'useCameraParameters']); - - // Object specific methods - vtkViewStream(publicAPI, model); - - // Blend APIs - Object.assign(publicAPI, model.sharedAPI); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkViewStream'); - -// ---------------------------------------------------------------------------- - -var ViewStream = { - newInstance, - extend -}; - -export { ViewStream as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ResourceLoader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ResourceLoader.js deleted file mode 100644 index ab9c7359..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ResourceLoader.js +++ /dev/null @@ -1,40 +0,0 @@ -const LOADED_URLS = []; -function loadScript(url) { - return new Promise((resolve, reject) => { - if (LOADED_URLS.indexOf(url) === -1) { - LOADED_URLS.push(url); - const newScriptTag = document.createElement('script'); - newScriptTag.type = 'text/javascript'; - newScriptTag.src = url; - newScriptTag.onload = resolve; - newScriptTag.onerror = reject; - document.body.appendChild(newScriptTag); - } else { - resolve(false); - } - }); -} - -// -function loadCSS(url) { - return new Promise((resolve, reject) => { - if (LOADED_URLS.indexOf(url) === -1) { - LOADED_URLS.push(url); - const newScriptTag = document.createElement('link'); - newScriptTag.rel = 'stylesheet'; - newScriptTag.href = url; - newScriptTag.onload = resolve; - newScriptTag.onerror = reject; - document.head.appendChild(newScriptTag); - } else { - resolve(false); - } - }); -} -var vtkResourceLoader = { - loadScript, - loadCSS, - LOADED_URLS -}; - -export { vtkResourceLoader as default, loadCSS, loadScript }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/Serializer.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/Serializer.js deleted file mode 100644 index 0808cb1c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/Serializer.js +++ /dev/null @@ -1,19 +0,0 @@ -import vtkArraySerializer from './Serializer/ArraySerializer.js'; -import vtkFieldDataSerializer from './Serializer/FieldDataSerializer.js'; -import vtkImageDataSerializer from './Serializer/ImageDataSerializer.js'; -import vtkPolyDataSerializer from './Serializer/PolyDataSerializer.js'; - -const LIST = [vtkFieldDataSerializer, vtkImageDataSerializer, vtkPolyDataSerializer]; -function getSerializer(obj) { - return LIST.find(s => s.canSerialize(obj)); -} -function getDeserializer(obj) { - return LIST.find(s => s.canDeserialize(obj)); -} -var vtkSerializer = { - vtkArraySerializer, - getSerializer, - getDeserializer -}; - -export { vtkSerializer as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/Serializer/ArraySerializer.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/Serializer/ArraySerializer.js deleted file mode 100644 index 878e98b4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/Serializer/ArraySerializer.js +++ /dev/null @@ -1,82 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import vtkDataArray from '../../../Common/Core/DataArray.js'; -import vtkCellArray from '../../../Common/Core/CellArray.js'; -import vtkPoints from '../../../Common/Core/Points.js'; - -const FACTORY = { - vtkDataArray, - vtkCellArray, - vtkPoints -}; -function createDefaultTypedArrayHandler() { - const arrays = []; - function write(array) { - const id = arrays.length; - arrays.push(array); - return id; - } - function read(arrayId) { - return arrays[arrayId]; - } - return { - write, - read, - arrays - }; -} -function vtkArraySerializer(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkArraySerializer'); - if (!model.typedArrayHandler) { - model.typedArrayHandler = createDefaultTypedArrayHandler(); - } - publicAPI.serialize = obj => { - const name = obj.getName(); - const numberOfTuples = obj.getNumberOfTuples(); - const vtkClass = obj.getClassName(); - const rawData = obj.getData(); - return { - id: model.typedArrayHandler.write(rawData), - name, - numberOfTuples, - vtkClass - }; - }; - publicAPI.deserialize = obj => { - const values = model.typedArrayHandler.read(obj.id); - const { - name, - numberOfTuples - } = obj; - return FACTORY[obj.vtkClass].newInstance({ - name, - numberOfTuples, - values - }); - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, initialValues); - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['typedArrayHandler']); - - // Object specific methods - vtkArraySerializer(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkArraySerializer'); - -// ---------------------------------------------------------------------------- - -var vtkArraySerializer$1 = { - newInstance, - extend -}; - -export { vtkArraySerializer$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/Serializer/FieldDataSerializer.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/Serializer/FieldDataSerializer.js deleted file mode 100644 index 248b33a8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/Serializer/FieldDataSerializer.js +++ /dev/null @@ -1,47 +0,0 @@ -import vtkDataSetAttributes from '../../../Common/DataModel/DataSetAttributes.js'; - -const CLASS_NAME = 'vtkDataSetAttributes'; -const ARRAYS = ['Scalars', 'Vectors', 'Normals', 'TCoords', 'Tensors', 'GlobalIds', 'PedigreeIds']; -function canSerialize(obj) { - return obj && obj.isA && obj.isA(CLASS_NAME); -} -function canDeserialize(obj) { - return obj && obj.vtkClass && obj.vtkClass === CLASS_NAME; -} -function serialize(obj, arrayHandler) { - const output = { - vtkClass: CLASS_NAME - }; - const indexMapping = []; - const arrays = obj.getArrays(); - for (let i = 0; i < arrays.length; i++) { - indexMapping.push(arrayHandler.serialize(arrays[i])); - } - ARRAYS.forEach(attrType => { - const arrayIdx = obj[`getActive${attrType}`](); - if (arrayIdx !== -1) { - output[attrType] = indexMapping[arrayIdx]; - } - }); - // List all arrays - output.arrays = indexMapping; - return output; -} -function deserialize(obj, arrayHandler) { - const ds = vtkDataSetAttributes.newInstance(); - for (let i = 0; i < obj.arrays.length; i++) { - ds.addArray(arrayHandler.deserialize(obj.arrays[i])); - } - ARRAYS.forEach(attrType => { - ds[`set${attrType}`](arrayHandler.deserialize(obj[attrType])); - }); - return ds; -} -var vtkFieldDataSerializer = { - canSerialize, - serialize, - canDeserialize, - deserialize -}; - -export { vtkFieldDataSerializer as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/Serializer/ImageDataSerializer.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/Serializer/ImageDataSerializer.js deleted file mode 100644 index 58a8c6d4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/Serializer/ImageDataSerializer.js +++ /dev/null @@ -1,49 +0,0 @@ -import vtkImageData from '../../../Common/DataModel/ImageData.js'; -import vtkFieldDataSerializer from './FieldDataSerializer.js'; - -const CLASS_NAME = 'vtkImageData'; -function canSerialize(obj) { - return obj && obj.isA && obj.isA(CLASS_NAME); -} -function canDeserialize(obj) { - return obj && obj.vtkClass && obj.vtkClass === CLASS_NAME; -} -function serialize(obj, arrayHandler) { - const output = Object.assign(obj.get('direction', 'spacing', 'origin', 'extent'), { - vtkClass: CLASS_NAME - }); - - // Handle fields - output.pointData = vtkFieldDataSerializer.serialize(obj.getPointData(), arrayHandler); - output.cellData = vtkFieldDataSerializer.serialize(obj.getCellData(), arrayHandler); - output.fieldData = vtkFieldDataSerializer.serialize(obj.getFieldData(), arrayHandler); - return output; -} -function deserialize(obj, arrayHandler) { - const { - direction, - spacing, - origin, - extent - } = obj; - const ds = vtkImageData.newInstance({ - direction, - spacing, - origin, - extent - }); - - // Handle fields - ds.setPointData(vtkFieldDataSerializer.deserialize(obj.pointData, arrayHandler)); - ds.setCellData(vtkFieldDataSerializer.deserialize(obj.cellData, arrayHandler)); - ds.setFieldData(vtkFieldDataSerializer.deserialize(obj.fieldData, arrayHandler)); - return ds; -} -var vtkImageDataSerializer = { - canSerialize, - serialize, - canDeserialize, - deserialize -}; - -export { vtkImageDataSerializer as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/Serializer/PolyDataSerializer.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/Serializer/PolyDataSerializer.js deleted file mode 100644 index 6bd4814c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/Serializer/PolyDataSerializer.js +++ /dev/null @@ -1,49 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import vtkPolyData from '../../../Common/DataModel/PolyData.js'; -import vtkFieldDataSerializer from './FieldDataSerializer.js'; - -const CLASS_NAME = 'vtkPolyData'; -const ARRAYS = ['points', 'verts', 'lines', 'polys', 'strips']; -function canSerialize(obj) { - return obj && obj.isA && obj.isA(CLASS_NAME); -} -function canDeserialize(obj) { - return obj && obj.vtkClass && obj.vtkClass === CLASS_NAME; -} -function serialize(obj, arrayHandler) { - const output = { - vtkClass: CLASS_NAME - }; - ARRAYS.forEach(arrayName => { - const array = obj[`get${macro.capitalize(arrayName)}`](); - if (array && array.getNumberOfValues() > 0) { - output[arrayName] = arrayHandler.serialize(array); - } - }); - - // Handle fields - output.pointData = vtkFieldDataSerializer.serialize(obj.getPointData(), arrayHandler); - output.cellData = vtkFieldDataSerializer.serialize(obj.getCellData(), arrayHandler); - output.fieldData = vtkFieldDataSerializer.serialize(obj.getFieldData(), arrayHandler); - return output; -} -function deserialize(obj, arrayHandler) { - const ds = vtkPolyData.newInstance(); - ARRAYS.forEach(arrayName => { - ds[`set${macro.capitalize(arrayName)}`](arrayHandler.deserialize(obj[arrayName])); - }); - - // Handle fields - ds.setPointData(vtkFieldDataSerializer.deserialize(obj.pointData, arrayHandler)); - ds.setCellData(vtkFieldDataSerializer.deserialize(obj.cellData, arrayHandler)); - ds.setFieldData(vtkFieldDataSerializer.deserialize(obj.fieldData, arrayHandler)); - return ds; -} -var vtkPolyDataSerializer = { - canSerialize, - serialize, - canDeserialize, - deserialize -}; - -export { vtkPolyDataSerializer as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/WSLinkClient.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/WSLinkClient.d.ts deleted file mode 100644 index 036c4f19..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/WSLinkClient.d.ts +++ /dev/null @@ -1,195 +0,0 @@ -import { vtkObject, vtkSubscription } from './../../interfaces'; -import vtkImageStream from './ImageStream'; - -/** - * Bind optional dependency from WSLink to our current class. - * This is mandatory when using that class - * - * ``` - * import SmartConnect from 'wslink/src/SmartConnect'; - * import vtkWSLinkClient from '@kitware/vtk.js/IO/Core/WSLinkClient'; - * - * vtkWSLinkClient.setSmartConnectClass(SmartConnect); - * ``` - * - * @param smartConnectClass - */ -export function setSmartConnectClass(smartConnectClass: object): void; - -export interface vtkWSLinkClient extends vtkObject { - /** - * Virtually increase work load to maybe keep isBusy() on - * while executing a synchronous task. - */ - beginBusy(): void; - - /** - * Virtually decreasing work load to maybe free isBusy() - * after executing a synchronous task. Other async calls - * could still keep the state as busy. - */ - endBusy(): void; - - /** - * Return the current state of busy. - * Do we still have pending calls? - */ - isBusy(): boolean; - - /** - * Return true if the client is currently connected to a server - */ - isConnected(): boolean; - - /** - * Initiate the connection with the server - * @param {Object} config - * @param {Function} [configDecorator] (default: null) - */ - connect( - config: object, - configDecorator?: (config: object) => object - ): Promise; - - /** - * Disconnect from server - * @param {Number} timeout amount of second to wait before the server exit as well. If we want to avoid the server from quitting, `-1` should be provided. (default=60) - */ - disconnect(timeout: number): void; - - /** - * Register dynamically a protocol after being connected - * - * @param {String} name - * @param {Function} protocol - */ - registerProtocol(name: string, protocol: (session: object) => object): void; - - /** - * Remove a given protocol from the available list - * - * @param {String} name - */ - unregisterProtocol(name: string): void; - - // --- via macro -- - - /** - * Assign protocols to the client. Those will only be used at connect time and therefore needs to be set before being connected otherwise `registerProtocol` should be used instead. - * @returns {Boolean} true if the set method modified the object - */ - setProtocols(protocols: Record): boolean; - - /** - * Get protocols that were either provided in `newInstance` or via its set - */ - getProtocols(): Record; - - /** - * Update the list of methods that should be ignore from the busy state monitoring - * @returns {Boolean} true if the set method modified the object - */ - setNotBusyList(methodList: [string]): boolean; - - /** - * @returns {object} the current set of methods to ignore from busy state - */ - getNotBusyList(): object; - - /** - * Should the client auto listen to image stream topic by creating its imageStream object - * @param {Boolean} autoCreate (default: true) - * @returns {Boolean} true if the set method modified the object - */ - setCreateImageStream(autoCreate: boolean): boolean; - - /** - * @returns {Boolean} the autoCreate state for imageStream - */ - getCreateImageStream(): boolean; - - /** - * Set a config decorator to possibly alterate the config object that get received from the launcher. - * @param decorator function for config object - */ - setConfigDecorator(decorator: (config: object) => object): boolean; - - /** - * @returns {Function} configDecorator function if any was provided - */ - getConfigDecorator(): (config: object) => object; - - /** - * - */ - getConnection(): any; - - /** - * - */ - getConfig(): object; - - /** - * - */ - getRemote(): Record; - - /** - * - */ - getImageStream(): vtkImageStream; - - /** - * - * @param callback - * @param priority - */ - onBusyChange(callback: Function, priority: number): vtkSubscription; - - /** - * - */ - invokeBusyChange(): void; - - onConnectionReady(callback: (httpReq: any) => void): vtkSubscription; - // invokeConnectionReady(): void - - onConnectionError(callback: (httpReq: any) => void): vtkSubscription; - // invokeConnectionError(): void - - onConnectionClose(callback: (httpReq: any) => void): vtkSubscription; - // invokeConnectionClose(): void -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkWSLinkClient characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {object} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: object -): void; - -// ---------------------------------------------------------------------------- - -/** - * Method use to create a new instance of vtkWSLinkClient - * @param {object} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: object): vtkWSLinkClient; - -/** - * vtkWSLinkClient is a WSLink client for talking to a server over WebSocket - */ -export declare const vtkWSLinkClient: { - newInstance: typeof newInstance; - extend: typeof extend; - // static - setSmartConnectClass: typeof setSmartConnectClass; -}; - -export default vtkWSLinkClient; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/WSLinkClient.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/WSLinkClient.js deleted file mode 100644 index ec7b3ab5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/WSLinkClient.js +++ /dev/null @@ -1,229 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkImageStream from './ImageStream.js'; - -// ---------------------------------------------------------------------------- -// Dependency injection -// ---------------------------------------------------------------------------- - -let SMART_CONNECT_CLASS = null; - -// ---------------------------------------------------------------------------- - -function setSmartConnectClass(klass) { - SMART_CONNECT_CLASS = klass; -} - -// ---------------------------------------------------------------------------- -// Busy feedback handling -// ---------------------------------------------------------------------------- - -function busy(fn, update) { - return function () { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - return new Promise((resolve, reject) => { - update(1); - fn(...args).then(response => { - update(-1); - resolve(response); - }, error => { - update(-1); - reject(error); - }); - }); - }; -} - -// ---------------------------------------------------------------------------- - -function busyWrap(methodMap, update) { - let skipList = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; - const busyContainer = {}; - Object.keys(methodMap).forEach(methodName => { - if (skipList.indexOf(methodName) === -1) { - busyContainer[methodName] = busy(methodMap[methodName], update); - } else { - busyContainer[methodName] = methodMap[methodName]; - } - }); - return busyContainer; -} - -// ---------------------------------------------------------------------------- -// vtkWSLinkClient -// ---------------------------------------------------------------------------- - -function vtkWSLinkClient(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWSLinkClient'); - - // -------------------------------------------------------------------------- - // Internal methods - // -------------------------------------------------------------------------- - - function notifyBusy() { - publicAPI.invokeBusyChange(model.busyCount); - } - - // -------------------------------------------------------------------------- - - function updateBusy() { - let delta = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - model.busyCount += delta; - - // Clear any pending timeout - if (model.timeoutId) { - clearTimeout(model.timeoutId); - model.timeoutId = 0; - } - - // Delay notification when idle - if (model.busyCount) { - notifyBusy(); - } else { - model.timeoutId = setTimeout(notifyBusy, model.notificationTimeout); - } - } - - // -------------------------------------------------------------------------- - // Public methods - // -------------------------------------------------------------------------- - - publicAPI.beginBusy = () => updateBusy(+1); - publicAPI.endBusy = () => updateBusy(-1); - publicAPI.isBusy = () => !!model.busyCount; - publicAPI.isConnected = () => !!model.connection; - - // -------------------------------------------------------------------------- - - publicAPI.connect = function () { - let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - let configDecorator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - if (!SMART_CONNECT_CLASS) { - return Promise.reject(new Error('Need to provide SmartConnect')); - } - if (model.connection) { - return Promise.reject(new Error('Need to disconnect first')); - } - model.config = config; - model.configDecorator = configDecorator || model.configDecorator; - return new Promise((resolve, reject) => { - model.smartConnect = SMART_CONNECT_CLASS.newInstance({ - config, - configDecorator: model.configDecorator - }); - - // ready - model.smartConnect.onConnectionReady(connection => { - model.connection = connection; - model.remote = {}; - model.config = model.smartConnect.getConfig(); - const session = connection.getSession(); - - // Link remote API - model.protocols = model.protocols || {}; - Object.keys(model.protocols).forEach(name => { - model.remote[name] = busyWrap(model.protocols[name](session), updateBusy, model.notBusyList); - }); - - // Handle image stream if needed - if (model.createImageStream) { - model.imageStream = vtkImageStream.newInstance(); - model.imageStream.connect(session); - } - - // Forward ready info as well - publicAPI.invokeConnectionReady(publicAPI); - resolve(publicAPI); - }); - - // error - model.smartConnect.onConnectionError(error => { - publicAPI.invokeConnectionError(error); - reject(error); - }); - - // close - model.smartConnect.onConnectionClose(close => { - publicAPI.invokeConnectionClose(close); - reject(close); - }); - - // Start connection - model.smartConnect.connect(); - }); - }; - - // -------------------------------------------------------------------------- - - publicAPI.disconnect = function () { - let timeout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 60; - if (model.connection) { - model.connection.destroy(timeout); - model.connection = null; - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.registerProtocol = (name, protocol) => { - model.remote[name] = busyWrap(protocol(model.connection.getSession()), updateBusy, model.notBusyList); - }; - - // -------------------------------------------------------------------------- - - publicAPI.unregisterProtocol = name => { - delete model.remote[name]; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // protocols: null, - // connection: null, - // config: null, - // imageStream - notBusyList: [], - busyCount: 0, - timeoutId: 0, - notificationTimeout: 50, - createImageStream: true - // configDecorator: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['protocols', 'notBusyList', 'createImageStream', 'configDecorator']); - macro.get(publicAPI, model, ['connection', 'config', 'remote', 'imageStream']); - macro.event(publicAPI, model, 'BusyChange'); - macro.event(publicAPI, model, 'ConnectionReady'); - macro.event(publicAPI, model, 'ConnectionError'); - macro.event(publicAPI, model, 'ConnectionClose'); - - // Object specific methods - vtkWSLinkClient(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWSLinkClient'); - -// ---------------------------------------------------------------------------- - -var vtkWSLinkClient$1 = { - newInstance, - extend, - setSmartConnectClass -}; - -export { vtkWSLinkClient$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ZipMultiDataSetReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ZipMultiDataSetReader.js deleted file mode 100644 index cc513bf8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ZipMultiDataSetReader.js +++ /dev/null @@ -1,111 +0,0 @@ -import { unzipSync, strFromU8 } from 'fflate'; -import DataAccessHelper from './DataAccessHelper.js'; -import { m as macro } from '../../macros2.js'; -import './DataAccessHelper/HttpDataAccessHelper.js'; - -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HtmlDataAccessHelper'; // html + base64 + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/JSZipDataAccessHelper'; // zip - -// ---------------------------------------------------------------------------- -// vtkAppendPolyData methods -// ---------------------------------------------------------------------------- - -function vtkZipMultiDataSetReader(publicAPI, model) { - // Set our classname - model.classHierarchy.push('vtkZipMultiDataSetReader'); - - // Create default dataAccessHelper if not available - if (!model.dataAccessHelper) { - model.dataAccessHelper = DataAccessHelper.get('http'); - } - - // Internal method to fetch Array - function fetchData(url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return model.dataAccessHelper.fetchBinary(url, option); - } - - // Set DataSet url - publicAPI.setUrl = function (url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - model.url = url; - - // Remove the file in the URL - const path = url.split('/'); - path.pop(); - model.baseURL = path.join('/'); - - // Fetch metadata - return publicAPI.loadData(option); - }; - - // Fetch the actual data arrays - publicAPI.loadData = function () { - let option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return fetchData(model.url, option).then(publicAPI.parseAsArrayBuffer); - }; - publicAPI.parseAsArrayBuffer = arrayBuffer => { - if (!arrayBuffer) { - return Promise.reject(new Error('No ArrayBuffer to parse')); - } - return new Promise((resolve, reject) => { - model.arrays = []; - const decompressedFiles = unzipSync(new Uint8Array(arrayBuffer)); - try { - Object.entries(decompressedFiles).forEach(_ref => { - let [relativePath, fileData] = _ref; - if (relativePath.match(/datasets\.json$/i)) { - model.datasets = JSON.parse(strFromU8(fileData)); - } - if (relativePath.match(/array_[a-zA-Z]+_[0-9]+/)) { - const [type, id] = relativePath.split('_').slice(-2); - model.arrays[id] = macro.newTypedArray(type, fileData.buffer); - } - }); - resolve(); - } catch (err) { - reject(err); - } - }); - }; - publicAPI.requestData = (inData, outData) => { - // perform deserialization - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 0, 0); - macro.get(publicAPI, model, ['url', 'baseURL']); - macro.setGet(publicAPI, model, ['dataAccessHelper']); - - // Object specific methods - vtkZipMultiDataSetReader(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkZipMultiDataSetReader'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ZipMultiDataSetWriter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ZipMultiDataSetWriter.js deleted file mode 100644 index bc765a07..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Core/ZipMultiDataSetWriter.js +++ /dev/null @@ -1,92 +0,0 @@ -import { zipSync } from 'fflate'; -import { m as macro } from '../../macros2.js'; -import vtkSerializer from './Serializer.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkAppendPolyData methods -// ---------------------------------------------------------------------------- - -function vtkZipMultiDataSetWriter(publicAPI, model) { - // Set our classname - model.classHierarchy.push('vtkZipMultiDataSetWriter'); - publicAPI.requestData = (inData, outData) => { - // implement requestData - const numberOfInputs = publicAPI.getNumberOfInputPorts(); - if (!numberOfInputs) { - vtkErrorMacro('No input specified.'); - return; - } - - // Default array handler - const arrayHandler = vtkSerializer.vtkArraySerializer.newInstance(); - model.datasets = []; - for (let i = 0; i < numberOfInputs; i++) { - const ds = inData[i]; - const serializer = vtkSerializer.getSerializer(ds); - if (serializer) { - model.datasets.push(serializer.serialize(ds, arrayHandler)); - } else { - console.error('Could not find serializer for', ds.getClassName()); - } - } - model.arrays = arrayHandler.arrays; - }; - publicAPI.write = () => { - publicAPI.update(); - const zipInfo = Object.create(null); - - // Write metadata - zipInfo['datasets.json'] = JSON.stringify(model.datasets); - - // Write Arrays - for (let i = 0; i < model.arrays.length; i++) { - zipInfo[`array_${vtkDataArray.getDataType(model.arrays[i])}_${i}`] = model.arrays[i]; - } - model.blob = new Blob([zipSync(zipInfo)]); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - compressionLevel: 6, - blob: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 0); - macro.setGet(publicAPI, model, ['compressionLevel']); - macro.get(publicAPI, model, ['blob']); - - // Object specific methods - vtkZipMultiDataSetWriter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkZipMultiDataSetWriter'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry.js deleted file mode 100644 index 7af4bdfa..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry.js +++ /dev/null @@ -1,19 +0,0 @@ -import vtkSTLReader from './Geometry/STLReader.js'; -import vtkPLYReader from './Geometry/PLYReader.js'; -import vtkDracoReader from './Geometry/DracoReader.js'; -import vtkSTLWriter from './Geometry/STLWriter.js'; -import vtkPLYWriter from './Geometry/PLYWriter.js'; -import vtkGLTFImporter from './Geometry/GLTFImporter.js'; -import vtkIFCImporter from './Geometry/IFCImporter.js'; - -var Geometry = { - vtkSTLReader, - vtkPLYReader, - vtkDracoReader, - vtkSTLWriter, - vtkPLYWriter, - vtkGLTFImporter, - vtkIFCImporter -}; - -export { Geometry as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/DracoReader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/DracoReader.d.ts deleted file mode 100644 index f3155734..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/DracoReader.d.ts +++ /dev/null @@ -1,152 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { HtmlDataAccessHelper } from './../Core/DataAccessHelper/HtmlDataAccessHelper'; -import { HttpDataAccessHelper } from './../Core/DataAccessHelper/HttpDataAccessHelper'; -import { JSZipDataAccessHelper } from './../Core/DataAccessHelper/JSZipDataAccessHelper'; -import { LiteHttpDataAccessHelper } from './../Core/DataAccessHelper/LiteHttpDataAccessHelper'; - -interface IDracoReaderOptions { - binary?: boolean; - compression?: string; - progressCallback?: any; -} - -/** - * - */ -export interface IDracoReaderInitialValues {} - -type vtkDracoReaderBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkDracoReader extends vtkDracoReaderBase { - /** - * - */ - getBaseURL(): string; - - /** - * - */ - getDataAccessHelper(): - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper; - - /** - * Get the url of the object to load. - */ - getUrl(): string; - - /** - * Load the object data. - * @param {IDracoReaderOptions} [options] - */ - loadData(options?: IDracoReaderOptions): Promise; - - /** - * Parse data. - * @param {String | ArrayBuffer} content The content to parse. - */ - parse(content: string | ArrayBuffer): void; - - /** - * Parse data as ArrayBuffer. - * @param {ArrayBuffer} content The content to parse. - */ - parseAsArrayBuffer(content: ArrayBuffer): void; - - /** - * Parse data as text. - * @param {String} content The content to parse. - */ - parseAsText(content: string): void; - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * - * @param dataAccessHelper - */ - setDataAccessHelper( - dataAccessHelper: - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper - ): boolean; - - /** - * Set the url of the object to load. - * @param {String} url the url of the object to load. - * @param {IDracoReaderOptions} [option] The Draco reader options. - */ - setUrl(url: string, option?: IDracoReaderOptions): Promise; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkDracoReader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IDracoReaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IDracoReaderInitialValues -): void; - -/** - * Method used to create a new instance of vtkDracoReader - * @param {IDracoReaderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IDracoReaderInitialValues -): vtkDracoReader; - -/** - * Get the draco decoder - */ -export function getDracoDecoder(): any; - -/** - * Set the draco decoder - * @param dracoDecoder - */ -export function setDracoDecoder(dracoDecoder: any): Promise; - -/** - * Load the WASM decoder from url and set the decoderModule - * @param url - * @param binaryName - */ -export function setWasmBinary( - url: string, - binaryName: string -): Promise; - -/** - * vtkDracoReader is a source object that reads a geometry compressed with the - * Draco library. - */ -export declare const vtkDracoReader: { - newInstance: typeof newInstance; - extend: typeof extend; - getDracoDecoder: typeof getDracoDecoder; - setDracoDecoder: typeof setDracoDecoder; - setWasmBinary: typeof setWasmBinary; -}; -export default vtkDracoReader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/DracoReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/DracoReader.js deleted file mode 100644 index b5d41160..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/DracoReader.js +++ /dev/null @@ -1,345 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import DataAccessHelper from '../Core/DataAccessHelper.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkPolyDataNormals from '../../Filters/Core/PolyDataNormals.js'; -import '../Core/DataAccessHelper/LiteHttpDataAccessHelper.js'; - -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HttpDataAccessHelper'; // HTTP + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HtmlDataAccessHelper'; // html + base64 + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/JSZipDataAccessHelper'; // zip - -const { - vtkErrorMacro -} = macro; -let decoderModule = null; -// ---------------------------------------------------------------------------- -// static methods -// ---------------------------------------------------------------------------- - -/** - * Load the WASM decoder from url and set the decoderModule - * @param url - * @param binaryName - * @return {Promise} - */ -function setWasmBinary(url, binaryName) { - const dracoDecoderType = {}; - return new Promise((resolve, reject) => { - dracoDecoderType.wasmBinaryFile = binaryName; - const xhr = new XMLHttpRequest(); - xhr.open('GET', url, true); - xhr.responseType = 'arraybuffer'; - xhr.onload = () => { - if (xhr.status === 200) { - dracoDecoderType.wasmBinary = xhr.response; - // Use Promise.resolve to be compatible with versions before Draco 1.4.0 - Promise.resolve(window.DracoDecoderModule(dracoDecoderType)).then(module => { - decoderModule = module; - resolve(true); - }, reject); - } else { - reject(Error(`WASM binary could not be loaded: ${xhr.statusText}`)); - } - }; - xhr.send(null); - }); -} - -/** - * Set the Draco decoder module - * @param {*} dracoDecoder - */ -async function setDracoDecoder(dracoDecoder) { - decoderModule = await dracoDecoder({}); -} -function getDracoDecoder() { - return decoderModule; -} - -// ---------------------------------------------------------------------------- -// vtkDracoReader methods -// ---------------------------------------------------------------------------- -function getDracoDataType(attributeType) { - switch (attributeType) { - case Float32Array: - return decoderModule.DT_FLOAT32; - case Int8Array: - return decoderModule.DT_INT8; - case Int16Array: - return decoderModule.DT_INT16; - case Int32Array: - return decoderModule.DT_INT32; - case Uint8Array: - return decoderModule.DT_UINT8; - case Uint16Array: - return decoderModule.DT_UINT16; - case Uint32Array: - return decoderModule.DT_UINT32; - default: - return decoderModule.DT_FLOAT32; - } -} - -/** - * Decode a single attribute - * @param {*} decoder The Draco decoder - * @param {*} dracoGeometry The geometry to decode - * @param {*} attributeName The name of the attribute - * @param {*} attributeType The type of the attribute - * @param {*} attribute The attribute to decode - * @returns object with name, array, itemSize - */ -function decodeAttribute(decoder, dracoGeometry, attributeName, attributeType, attribute) { - const numComponents = attribute.num_components(); - const numPoints = dracoGeometry.num_points(); - const numValues = numPoints * numComponents; - const byteLength = numValues * attributeType.BYTES_PER_ELEMENT; - const dataType = getDracoDataType(attributeType); - const ptr = decoderModule._malloc(byteLength); - decoder.GetAttributeDataArrayForAllPoints(dracoGeometry, attribute, dataType, byteLength, ptr); - - // eslint-disable-next-line new-cap - const array = new attributeType(decoderModule.HEAPF32.buffer, ptr, numValues).slice(); - decoderModule._free(ptr); - return { - name: attributeName, - array, - itemSize: numComponents - }; -} - -/** - * Decode the indices of the geometry - * @param {*} decoder The Draco decoder - * @param {*} dracoGeometry The geometry to decode - * @returns The indices array of the geometry - */ -function decodeIndices(decoder, dracoGeometry) { - const numFaces = dracoGeometry.num_faces(); - const numIndices = numFaces * 3; - const byteLength = numIndices * 4; - const ptr = decoderModule._malloc(byteLength); - decoder.GetTrianglesUInt32Array(dracoGeometry, byteLength, ptr); - const indices = new Uint32Array(decoderModule.HEAPF32.buffer, ptr, numIndices).slice(); - decoderModule._free(ptr); - return indices; -} - -/** - * Get the polyData from the Draco geometry - * @param {*} decoder The Draco decoder - * @param {*} dracoGeometry The geometry to decode - * @returns {vtkPolyData} The polyData of the geometry - */ -function getPolyDataFromDracoGeometry(decoder, dracoGeometry) { - const indices = decodeIndices(decoder, dracoGeometry); - const nCells = indices.length - 2; - const cells = vtkCellArray.newInstance(); - cells.allocate(4 * indices.length / 3); - for (let cellId = 0; cellId < nCells; cellId += 3) { - const cell = indices.slice(cellId, cellId + 3); - cells.insertNextCell(cell); - } - const polyData = vtkPolyData.newInstance({ - polys: cells - }); - - // Look for attributes - const attributeIDs = { - points: 'POSITION', - normals: 'NORMAL', - scalars: 'COLOR', - tcoords: 'TEX_COORD' - }; - Object.keys(attributeIDs).forEach(attributeName => { - const attributeType = Float32Array; - const attributeID = decoder.GetAttributeId(dracoGeometry, decoderModule[attributeIDs[attributeName]]); - if (attributeID === -1) return; - const attribute = decoder.GetAttribute(dracoGeometry, attributeID); - const attributeResult = decodeAttribute(decoder, dracoGeometry, attributeName, attributeType, attribute); - const pointData = polyData.getPointData(); - switch (attributeName) { - case 'points': - polyData.getPoints().setData(attributeResult.array, attributeResult.itemSize); - break; - case 'normals': - pointData.setNormals(vtkDataArray.newInstance({ - numberOfComponents: attributeResult.itemSize, - values: attributeResult.array, - name: 'Normals' - })); - break; - case 'scalars': - pointData.setScalars(vtkDataArray.newInstance({ - numberOfComponents: attributeResult.itemSize, - values: attributeResult.array, - name: 'Scalars' - })); - break; - case 'tcoords': - pointData.setTCoords(vtkDataArray.newInstance({ - numberOfComponents: attributeResult.itemSize, - values: attributeResult.array, - name: 'TCoords' - })); - break; - } - }); - - // we will generate normals if they're missing - const hasNormals = polyData.getPointData().getNormals(); - if (!hasNormals) { - const pdn = vtkPolyDataNormals.newInstance(); - pdn.setInputData(polyData); - pdn.setComputePointNormals(true); - return pdn.getOutputData(); - } - return polyData; -} -function vtkDracoReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkDracoReader'); - - // Create default dataAccessHelper if not available - if (!model.dataAccessHelper) { - model.dataAccessHelper = DataAccessHelper.get('http'); - } - - // Internal method to fetch Array - function fetchData(url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - const { - compression, - progressCallback - } = model; - if (option.binary) { - return model.dataAccessHelper.fetchBinary(url, { - compression, - progressCallback - }); - } - return model.dataAccessHelper.fetchText(publicAPI, url, { - compression, - progressCallback - }); - } - - // Set DataSet url - publicAPI.setUrl = function (url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { - binary: true - }; - model.url = url; - - // Remove the file in the URL - const path = url.split('/'); - path.pop(); - model.baseURL = path.join('/'); - model.compression = option.compression; - - // Fetch metadata - return publicAPI.loadData({ - progressCallback: option.progressCallback, - binary: !!option.binary - }); - }; - - // Fetch the actual data arrays - publicAPI.loadData = function () { - let option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - const promise = fetchData(model.url, option); - promise.then(publicAPI.parse); - return promise; - }; - publicAPI.parse = content => { - publicAPI.parseAsArrayBuffer(content); - }; - publicAPI.parseAsArrayBuffer = content => { - if (!content) { - return; - } - if (content !== model.parseData) { - publicAPI.modified(); - } else { - return; - } - model.parseData = content; - const byteArray = new Int8Array(content); - const decoder = new decoderModule.Decoder(); - const buffer = new decoderModule.DecoderBuffer(); - buffer.Init(byteArray, byteArray.length); - const geometryType = decoder.GetEncodedGeometryType(buffer); - let dracoGeometry; - if (geometryType === decoderModule.TRIANGULAR_MESH) { - dracoGeometry = new decoderModule.Mesh(); - const status = decoder.DecodeBufferToMesh(buffer, dracoGeometry); - if (!status.ok()) { - vtkErrorMacro(`Could not decode Draco file: ${status.error_msg()}`); - return; - } - } else { - vtkErrorMacro('Wrong geometry type, expected mesh, got point cloud.'); - return; - } - const polyData = getPolyDataFromDracoGeometry(decoder, dracoGeometry); - decoderModule.destroy(dracoGeometry); - decoderModule.destroy(buffer); - decoderModule.destroy(decoder); - model.output[0] = polyData; - }; - publicAPI.requestData = () => { - publicAPI.parse(model.parseData); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // baseURL: null, - // dataAccessHelper: null, - // url: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['url', 'baseURL']); - macro.setGet(publicAPI, model, ['dataAccessHelper']); - macro.algo(publicAPI, model, 0, 1); - - // vtkDracoReader methods - vtkDracoReader(publicAPI, model); - - // To support destructuring - if (!model.compression) { - model.compression = null; - } - if (!model.progressCallback) { - model.progressCallback = null; - } -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkDracoReader'); - -// ---------------------------------------------------------------------------- - -var vtkDracoReader$1 = { - extend, - newInstance, - setDracoDecoder, - setWasmBinary, - getDracoDecoder -}; - -export { vtkDracoReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter.d.ts deleted file mode 100644 index aea580ac..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter.d.ts +++ /dev/null @@ -1,266 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { HtmlDataAccessHelper } from './../Core/DataAccessHelper/HtmlDataAccessHelper'; -import { HttpDataAccessHelper } from './../Core/DataAccessHelper/HttpDataAccessHelper'; -import { JSZipDataAccessHelper } from './../Core/DataAccessHelper/JSZipDataAccessHelper'; -import { LiteHttpDataAccessHelper } from './../Core/DataAccessHelper/LiteHttpDataAccessHelper'; - -import { vtkActor } from './../../Rendering/Core/Actor'; -import { vtkRenderer } from './../../Rendering/Core/Renderer'; -import { vtkCamera } from './../../Rendering/Core/Camera'; - -interface IGLTFImporterOptions { - binary?: boolean; - compression?: string; - progressCallback?: any; -} - -export interface IGLTFAnimation { - id: string; - name: string; - channels: any[]; - samplers: any[]; -} - -export interface IGLTFAnimationMixer { - addAnimation: (glTFAnimation: object) => void; - play: (name: string, weight?: number) => void; - stop: (name: string) => void; - stopAll: () => void; - update: (deltaTime: number) => void; -} - -export interface IGLTFMaterialVariant { - material: number; - variants: number[]; -} - -/** - * - */ -export interface IGLTFImporterInitialValues {} - -type vtkGLTFImporterBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkGLTFImporter extends vtkGLTFImporterBase { - /** - * Get the actors. - */ - getActors(): Map; - - /** - * Get the animation mixer. - */ - getAnimationMixer(): IGLTFAnimationMixer; - - /** - * Get the animations. - */ - getAnimations(): IGLTFAnimation[]; - - /** - * Get the base url. - */ - getBaseURL(): string; - - /** - * Get the cameras. - */ - getCameras(): Map; - - /** - * - */ - getDataAccessHelper(): - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper; - - /** - * Get the url of the object to load. - */ - getUrl(): string; - - /** - * Get the variant array. - */ - getVariants(): string[]; - - /** - * Get the variant mappings. - */ - getVariantMappings(): Map; - - /** - * Import the actors. - */ - importActors(): void; - - /** - * Import the animations. - */ - importAnimations(): void; - - /** - * Import the cameras. - */ - importCameras(): void; - - /** - * Import the lights. - */ - importLights(): void; - - /** - * Invoke the ready event. - */ - invokeReady(): void; - - /** - * Load the object data. - * @param {IGLTFImporterOptions} [options] - */ - loadData(options?: IGLTFImporterOptions): Promise; - - /** - * - * @param callback - */ - onReady(callback: () => void): void; - - /** - * Parse data. - * @param {String | ArrayBuffer} content The content to parse. - */ - parse(content: string | ArrayBuffer): void; - - /** - * Parse data as ArrayBuffer. - * @param {ArrayBuffer} content The content to parse. - */ - parseAsArrayBuffer(content: ArrayBuffer): void; - - /** - * Parse data as text. - * @param {String} content The content to parse. - */ - parseAsText(content: string): void; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * - * @param dataAccessHelper - */ - setDataAccessHelper( - dataAccessHelper: - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper - ): boolean; - - /** - * Set the url of the object to load. - * @param {String} url the url of the object to load. - * @param {IGLTFImporterOptions} [option] The Draco reader options. - */ - setUrl(url: string, option?: IGLTFImporterOptions): Promise; - - /** - * Set the camera id. - * @param cameraId The camera id. - */ - setCamera(cameraId: string): void; - - /** - * Set the Draco decoder. - * @param dracoDecoder - */ - setDracoDecoder(dracoDecoder: any): void; - - /** - * Set the vtk Renderer. - * @param renderer The vtk Renderer. - */ - setRenderer(renderer: vtkRenderer): void; - - /** - * Switch to a variant. - * @param variantIndex The index of the variant to switch to. - */ - switchToVariant(variantIndex: number): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkGLTFImporter characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IGLTFImporterInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IGLTFImporterInitialValues -): void; - -/** - * Method used to create a new instance of vtkGLTFImporter - * @param {IGLTFImporterInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IGLTFImporterInitialValues -): vtkGLTFImporter; - -/** - * Load the WASM decoder from url and set the decoderModule - * @param url - * @param binaryName - */ -export function setWasmBinary( - url: string, - binaryName: string -): Promise; - -/** - * vtkGLTFImporter can import glTF 2.0 files. - * - * The GL Transmission Format (glTF) is an API-neutral runtime asset delivery - * format. A glTF asset is represented by: - * * A JSON-formatted file (.gltf) containing a full scene description: node - * hierarchy, materials, cameras, as well as descriptor information for - * meshes, animations, and other constructs - * * Binary files (.bin) containing geometry and animation data, and other - * buffer-based data - * * Image files (.jpg, .png) for textures - * - * Supported extensions: - * * KHR_draco_mesh_compression - * * KHR_lights_punctual - * * KHR_materials_unlit - * * KHR_materials_ior - * * KHR_materials_specular - * * KHR_materials_variants - * * EXT_texture_webp - * * EXT_texture_avif - */ -export declare const vtkGLTFImporter: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkGLTFImporter; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter.js deleted file mode 100644 index f07ff94c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter.js +++ /dev/null @@ -1,245 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import BinaryHelper from '../Core/BinaryHelper.js'; -import DataAccessHelper from '../Core/DataAccessHelper.js'; -import vtkDracoReader from './DracoReader.js'; -import { parseGLTF, createVTKObjects, GLTFCameraToVTKCamera, applyTransformToCamera, createPropertyFromGLTFMaterial } from './GLTFImporter/Reader.js'; -import parseGLB from './GLTFImporter/Decoder.js'; -import { createAnimationMixer } from './GLTFImporter/Animations.js'; -import { BINARY_HEADER_MAGIC } from './GLTFImporter/Constants.js'; - -const { - vtkDebugMacro, - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkGLTFImporter methods -// ---------------------------------------------------------------------------- - -function vtkGLTFImporter(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkGLTFImporter'); - - // Create default dataAccessHelper if not available - if (!model.dataAccessHelper) { - model.dataAccessHelper = DataAccessHelper.get('http'); - } - - // Internal method to fetch Array - function fetchData(url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - const { - compression, - progressCallback - } = model; - if (option.binary) { - return model.dataAccessHelper.fetchBinary(url, { - compression, - progressCallback - }); - } - return model.dataAccessHelper.fetchText(publicAPI, url, { - compression, - progressCallback - }); - } - - // Set DataSet url - publicAPI.setUrl = function (url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { - binary: true - }; - model.url = url; - - // Remove the file in the URL - const path = url.split('/'); - path.pop(); - model.baseURL = path.join('/'); - model.compression = option.compression; - model.sceneId = option.sceneId ? option.sceneId : 0; - - // Fetch metadata - return publicAPI.loadData({ - progressCallback: option.progressCallback, - binary: !!option.binary - }); - }; - - // Fetch the actual data arrays - publicAPI.loadData = function () { - let option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - const promise = fetchData(model.url, option); - promise.then(publicAPI.parse); - return promise; - }; - publicAPI.parse = content => { - if (typeof content === 'string') { - publicAPI.parseAsText(content); - } else { - publicAPI.parseAsBinary(content); - } - }; - publicAPI.parseAsBinary = async content => { - if (!content) { - return; - } - if (content !== model.parseData) { - publicAPI.modified(); - } else { - return; - } - const glTF = {}; - const options = { - baseUri: model.baseURL - }; - const magic = BinaryHelper.arrayBufferToString(new Uint8Array(content, 0, 4)); - if (magic === BINARY_HEADER_MAGIC) { - const { - json, - buffers - } = parseGLB(content); - vtkDebugMacro('Loaded GLB', json, buffers); - glTF.glbBuffers = buffers; - glTF.json = json; - } else { - glTF.json = JSON.parse(BinaryHelper.arrayBufferToString(content)); - } - if (glTF.json.asset === undefined || glTF.json.asset.version[0] < 2) { - vtkErrorMacro('Unsupported asset. glTF versions >=2.0 are supported.'); - return; - } - model.glTFTree = await parseGLTF(glTF, options); - model.actors = new Map(); - model.cameras = new Map(); - model.lights = new Map(); - model.animations = []; - model.variants = []; - model.variantMappings = new Map(); - await createVTKObjects(model); - model.scenes = model.glTFTree.scenes; - publicAPI.invokeReady(); - }; - publicAPI.parseAsText = content => { - if (!content) { - return; - } - if (content !== model.parseData) { - publicAPI.modified(); - } else { - return; - } - model.parseData = content; - }; - publicAPI.requestData = (inData, outData) => { - publicAPI.parse(model.parseData); - }; - publicAPI.setDracoDecoder = async dracoDecoder => { - await vtkDracoReader.setDracoDecoder(dracoDecoder); - }; - publicAPI.importActors = () => { - // Add actors to renderer - model.actors.forEach(actor => model.renderer.addActor(actor)); - }; - publicAPI.importCameras = () => { - // Set up camera - model.glTFTree.cameras?.forEach(glTFcamera => { - const camera = GLTFCameraToVTKCamera(glTFcamera); - model.cameras.set(glTFcamera.id, camera); - }); - model.scenes.forEach(scene => { - scene.nodes.forEach(node => { - const camera = model.cameras.get(node.camera?.id); - if (camera) { - applyTransformToCamera(camera, node.transform); - } - }); - }); - }; - publicAPI.importAnimations = () => { - // Set up animations - if (model.glTFTree.animations?.length > 0) { - model.animationMixer = createAnimationMixer(model.actors, model.glTFTree.accessors); - model.glTFTree.animations.forEach(animation => { - model.animationMixer.addAnimation(animation); - }); - } - model.animations = model.glTFTree.animations || []; - }; - publicAPI.importLights = () => { - // Set up lights - model.lights?.forEach(light => { - vtkDebugMacro('Adding light', light); - model.renderer.addLight(light); - }); - }; - publicAPI.setCamera = cameraId => { - const camera = model.cameras.get(cameraId); - if (!camera) { - vtkErrorMacro(`Camera ${cameraId} not found`); - return; - } - vtkDebugMacro('Setting camera', camera); - model.renderer.setActiveCamera(camera); - }; - publicAPI.switchToVariant = async variantIndex => { - const promises = Array.from(model.actors).map(async _ref => { - let [nodeId, actor] = _ref; - vtkDebugMacro('Switching to variant', variantIndex, 'for node', nodeId); - const variantMappings = model.variantMappings.get(nodeId); - if (variantMappings) { - const mapping = variantMappings.find(m => m.variants.includes(variantIndex)); - if (mapping) { - const variantMaterial = model.glTFTree.materials[mapping.material]; - await createPropertyFromGLTFMaterial(model, variantMaterial, actor); - } - } - }); - await Promise.all(promises); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // baseURL: null, - // dataAccessHelper: null, - // url: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['url', 'baseURL', 'actors', 'scenes', 'cameras', 'animations', 'animationMixer', 'variants', 'variantMappings']); - macro.set(publicAPI, model, ['renderer', 'dracoDecoder']); - macro.event(publicAPI, model, 'ready'); - - // vtkGLTFImporter methods - vtkGLTFImporter(publicAPI, model); - - // To support destructuring - if (!model.compression) { - model.compression = null; - } - if (!model.progressCallback) { - model.progressCallback = null; - } -} -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkGLTFImporter'); - -// ---------------------------------------------------------------------------- - -var vtkGLTFImporter$1 = { - extend, - newInstance -}; - -export { vtkGLTFImporter$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Animations.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Animations.js deleted file mode 100644 index f847d2a8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Animations.js +++ /dev/null @@ -1,239 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import { B as degreesFromRadians } from '../../../Common/Core/Math/index.js'; -import { quat, vec3 } from 'gl-matrix'; - -const { - vtkDebugMacro, - vtkWarningMacro -} = macro; - -/** - * Create an animation channel - * @param {glTFChannel} glTFChannel - * @param {glTFChannel[]} glTFSamplers - * @returns - */ -function createAnimationChannel(glTFChannel, glTFSamplers) { - const path = glTFChannel.target.path; - const node = glTFChannel.target.node; - function applyAnimation(value) { - let axisAngle; - let w; - let nq; - switch (path) { - case 'translation': - node.setPosition(value[0], value[1], value[2]); - break; - case 'rotation': - // Convert quaternion to axis-angle representation - nq = quat.normalize(quat.create(), value); - axisAngle = new Float64Array(3); - w = quat.getAxisAngle(axisAngle, nq); - // Apply rotation using rotateWXYZ - node.rotateWXYZ(degreesFromRadians(w), axisAngle[0], axisAngle[1], axisAngle[2]); - break; - case 'scale': - node.setScale(value[0], value[1], value[2]); - break; - default: - vtkWarningMacro(`Unsupported animation path: ${path}`); - } - } - function animate(currentTime) { - const sampler = glTFSamplers[glTFChannel.sampler]; - const value = sampler.evaluate(currentTime, path); - applyAnimation(value); - } - return { - ...glTFChannel, - animate - }; -} - -/** - * Create an animation sampler - * @param {glTFSampler} glTFSampler - * @returns - */ -function createAnimationSampler(glTFSampler) { - let lastKeyframeIndex = 0; - function findKeyframes(time) { - let i1 = lastKeyframeIndex; - while (i1 < glTFSampler.input.length - 1 && glTFSampler.input[i1] <= time) { - i1++; - } - const i0 = Math.max(0, i1 - 1); - lastKeyframeIndex = i0; - return [glTFSampler.input[i0], glTFSampler.input[i1], i0, i1]; - } - function stepInterpolate(path, i0) { - const startIndex = i0 * 3; - const v0 = new Array(3); - for (let i = 0; i < 3; ++i) { - v0[i] = glTFSampler.output[startIndex + i]; - } - return v0; - } - function linearInterpolate(path, t0, t1, i0, i1, t) { - const ratio = (t - t0) / (t1 - t0); - const startIndex = i0 * 4; - const endIndex = i1 * 4; - const v0 = new Array(4); - const v1 = new Array(4); - for (let i = 0; i < 4; ++i) { - v0[i] = glTFSampler.output[startIndex + i]; - v1[i] = glTFSampler.output[endIndex + i]; - } - switch (path) { - case 'translation': - case 'scale': - return vec3.lerp(vec3.create(), v0, v1, ratio); - case 'rotation': - return quat.slerp(quat.create(), v0, v1, ratio); - default: - vtkWarningMacro(`Unsupported animation path: ${path}`); - return null; - } - } - function cubicSplineInterpolate(path, t0, t1, i0, i1, time) { - const dt = t1 - t0; - const t = (time - t0) / dt; - const t2 = t * t; - const t3 = t2 * t; - const p0 = glTFSampler.output[i0 * 3 + 1]; - const m0 = dt * glTFSampler.output[i0 * 3 + 2]; - const p1 = glTFSampler.output[i1 * 3 + 1]; - const m1 = dt * glTFSampler.output[i1 * 3]; - if (Array.isArray(p0)) { - return p0.map((v, j) => { - const a = 2 * t3 - 3 * t2 + 1; - const b = t3 - 2 * t2 + t; - const c = -2 * t3 + 3 * t2; - const d = t3 - t2; - return a * v + b * m0[j] + c * p1[j] + d * m1[j]; - }); - } - const a = 2 * t3 - 3 * t2 + 1; - const b = t3 - 2 * t2 + t; - const c = -2 * t3 + 3 * t2; - const d = t3 - t2; - return a * p0 + b * m0 + c * p1 + d * m1; - } - function evaluate(time, path) { - const [t0, t1, i0, i1] = findKeyframes(time); - let result; - switch (glTFSampler.interpolation) { - case 'STEP': - result = stepInterpolate(path, i0); - break; - case 'LINEAR': - result = linearInterpolate(path, t0, t1, i0, i1, time); - break; - case 'CUBICSPLINE': - result = cubicSplineInterpolate(path, t0, t1, i0, i1, time); - break; - default: - vtkWarningMacro(`Unknown interpolation method: ${glTFSampler.interpolation}`); - } - return result; - } - return { - ...glTFSampler, - evaluate - }; -} - -/** - * Create an animation - * @param {glTFAnimation} glTFAnimation - * @param {Map} nodes - * @returns - */ -function createAnimation(glTFAnimation, nodes) { - glTFAnimation.samplers = glTFAnimation.samplers.map(sampler => createAnimationSampler(sampler)); - glTFAnimation.channels = glTFAnimation.channels.map(channel => { - channel.target.node = nodes.get(`node-${channel.target.node}`); - return createAnimationChannel(channel, glTFAnimation.samplers); - }); - function update(currentTime) { - glTFAnimation.channels.forEach(channel => channel.animate(currentTime)); - } - return { - ...glTFAnimation, - update - }; -} - -/** - * Create an animation mixer - * @param {Map} nodes - * @param {*} accessors - * @returns - */ -function createAnimationMixer(nodes, accessors) { - const animations = new Map(); - const activeAnimations = new Map(); - function addAnimation(glTFAnimation) { - const annimation = createAnimation(glTFAnimation, nodes); - animations.set(glTFAnimation.id, annimation); - vtkDebugMacro(`Animation "${glTFAnimation.id}" added to mixer`); - } - function play(name) { - let weight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1; - if (!animations.has(name)) { - vtkWarningMacro(`Animation "${name}" not found in mixer`); - return; - } - activeAnimations.set(name, { - animation: animations.get(name), - weight, - time: 0 - }); - vtkDebugMacro(`Playing animation "${name}" with weight ${weight}`); - } - function stop(name) { - if (activeAnimations.delete(name)) { - vtkWarningMacro(`Stopped animation "${name}"`); - } else { - vtkWarningMacro(`Animation "${name}" was not playing`); - } - } - function stopAll() { - activeAnimations.clear(); - vtkWarningMacro('Stopped all animations'); - } - function update(deltaTime) { - // Normalize weights - const totalWeight = Array.from(activeAnimations.values()).reduce((sum, _ref) => { - let { - weight - } = _ref; - return sum + weight; - }, 0); - activeAnimations.forEach((_ref2, name) => { - let { - animation, - weight, - time - } = _ref2; - const normalizedWeight = totalWeight > 0 ? weight / totalWeight : 0; - const newTime = time + deltaTime; - activeAnimations.set(name, { - animation, - weight, - time: newTime - }); - vtkDebugMacro(`Updating animation "${name}" at time ${newTime.toFixed(3)} with normalized weight ${normalizedWeight.toFixed(3)}`); - animation.update(newTime, normalizedWeight); - }); - } - return { - addAnimation, - play, - stop, - stopAll, - update - }; -} - -export { createAnimation, createAnimationChannel, createAnimationMixer, createAnimationSampler }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Constants.js deleted file mode 100644 index 3c005e7a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Constants.js +++ /dev/null @@ -1,87 +0,0 @@ -const BINARY_HEADER_MAGIC = 'glTF'; -const BINARY_HEADER_LENGTH = 12; -const BINARY_CHUNK_TYPES = { - JSON: 0x4e4f534a, - BIN: 0x004e4942 -}; -const BINARY_HEADER_INTS = 3; -const BINARY_CHUNK_HEADER_INTS = 2; -const MIN_LIGHT_ATTENUATION = 0.01; -const COMPONENTS = { - SCALAR: 1, - VEC2: 2, - VEC3: 3, - VEC4: 4, - MAT2: 4, - MAT3: 9, - MAT4: 16 -}; -const BYTES = { - 5120: 1, - // BYTE - 5121: 1, - // UNSIGNED_BYTE - 5122: 2, - // SHORT - 5123: 2, - // UNSIGNED_SHORT - 5125: 4, - // UNSIGNED_INT - 5126: 4 // FLOAT -}; - -const MODES = { - GL_POINTS: 0, - GL_LINES: 1, - GL_LINE_LOOP: 2, - GL_LINE_STRIP: 3, - GL_TRIANGLES: 4, - GL_TRIANGLE_STRIP: 5, - GL_TRIANGLE_FAN: 6 -}; -const ARRAY_TYPES = { - 5120: Int8Array, - 5121: Uint8Array, - 5122: Int16Array, - 5123: Uint16Array, - 5125: Uint32Array, - 5126: Float32Array -}; -const GL_SAMPLER = { - NEAREST: 9728, - LINEAR: 9729, - NEAREST_MIPMAP_NEAREST: 9984, - LINEAR_MIPMAP_NEAREST: 9985, - NEAREST_MIPMAP_LINEAR: 9986, - LINEAR_MIPMAP_LINEAR: 9987, - REPEAT: 10497, - CLAMP_TO_EDGE: 33071, - MIRRORED_REPEAT: 33648, - TEXTURE_MAG_FILTER: 10240, - TEXTURE_MIN_FILTER: 10241, - TEXTURE_WRAP_S: 10242, - TEXTURE_WRAP_T: 10243 -}; -const DEFAULT_SAMPLER = { - magFilter: GL_SAMPLER.NEAREST, - minFilter: GL_SAMPLER.LINEAR_MIPMAP_LINEAR, - wrapS: GL_SAMPLER.REPEAT, - wrapT: GL_SAMPLER.REPEAT -}; -const SEMANTIC_ATTRIBUTE_MAP = { - NORMAL: 'normal', - POSITION: 'position', - TEXCOORD_0: 'texcoord0', - TEXCOORD_1: 'texcoord1', - WEIGHTS_0: 'weight', - JOINTS_0: 'joint', - COLOR_0: 'color', - TANGENT: 'tangent' -}; -const ALPHA_MODE = { - OPAQUE: 'OPAQUE', - MASK: 'MASK', - BLEND: 'BLEND' -}; - -export { ALPHA_MODE, ARRAY_TYPES, BINARY_CHUNK_HEADER_INTS, BINARY_CHUNK_TYPES, BINARY_HEADER_INTS, BINARY_HEADER_LENGTH, BINARY_HEADER_MAGIC, BYTES, COMPONENTS, DEFAULT_SAMPLER, GL_SAMPLER, MIN_LIGHT_ATTENUATION, MODES, SEMANTIC_ATTRIBUTE_MAP }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Decoder.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Decoder.js deleted file mode 100644 index 4578ee18..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Decoder.js +++ /dev/null @@ -1,83 +0,0 @@ -import BinaryHelper from '../../Core/BinaryHelper.js'; -import { BINARY_HEADER_LENGTH, BINARY_HEADER_MAGIC, BINARY_CHUNK_TYPES, BINARY_CHUNK_HEADER_INTS, BINARY_HEADER_INTS } from './Constants.js'; - -function getChunkInfo(headerStart, data) { - // Cache array view - const header = new Uint32Array(data, headerStart, BINARY_CHUNK_HEADER_INTS); - const chunkStart = headerStart + BINARY_CHUNK_HEADER_INTS * 4; - return { - start: chunkStart, - length: header[0], - type: header[1] - }; -} -function getAllChunkInfos(data) { - // Pre-calculate array size - const maxChunks = Math.floor((data.byteLength - BINARY_HEADER_LENGTH) / 8); - const infos = new Array(maxChunks); - let chunkStart = BINARY_HEADER_INTS * 4; - let chunkCount = 0; - while (chunkStart < data.byteLength) { - const chunkInfo = getChunkInfo(chunkStart, data); - infos[chunkCount++] = chunkInfo; - chunkStart += chunkInfo.length + BINARY_CHUNK_HEADER_INTS * 4; - } - - // Trim array to actual size - return infos.slice(0, chunkCount); -} -function getJsonFromChunk(chunkInfo, data) { - const jsonStart = (BINARY_HEADER_INTS + BINARY_CHUNK_HEADER_INTS) * 4; - const jsonView = new Uint8Array(data, jsonStart, chunkInfo.length); - const decoder = new TextDecoder('utf-8'); - const jsonString = decoder.decode(jsonView); - return JSON.parse(jsonString); -} -function getBufferFromChunk(chunkInfo, data) { - return data.slice(chunkInfo.start, chunkInfo.start + chunkInfo.length); -} -function parseGLB(data) { - if (data.byteLength < BINARY_HEADER_LENGTH) { - throw new Error('Invalid GLB: File too small'); - } - - // Cache DataView - const headerView = new DataView(data, 0, BINARY_HEADER_LENGTH); - const magic = new Uint8Array(data, 0, 4); - const header = { - magic: BinaryHelper.arrayBufferToString(magic), - version: headerView.getUint32(4, true), - length: headerView.getUint32(8, true) - }; - if (header.magic !== BINARY_HEADER_MAGIC) { - throw new Error('Unsupported glTF-Binary header.'); - } - if (header.version < 2.0) { - throw new Error('Unsupported legacy binary file detected.'); - } - if (header.length > data.byteLength) { - throw new Error('Invalid GLB: Declared length exceeds file size'); - } - const chunkInfos = getAllChunkInfos(data); - let json = null; - const buffers = []; - - // Process chunks sequentially - for (let i = 0; i < chunkInfos.length; i++) { - const chunkInfo = chunkInfos[i]; - if (chunkInfo.type === BINARY_CHUNK_TYPES.JSON && !json) { - json = getJsonFromChunk(chunkInfo, data); - } else if (chunkInfo.type === BINARY_CHUNK_TYPES.BIN) { - buffers.push(getBufferFromChunk(chunkInfo, data)); - } - } - if (!json) { - throw new Error('glTF-Binary: JSON content not found.'); - } - return { - json, - buffers - }; -} - -export { parseGLB as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Extensions.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Extensions.js deleted file mode 100644 index 3bc2dc2b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Extensions.js +++ /dev/null @@ -1,110 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import { r as radiansFromDegrees } from '../../../Common/Core/Math/index.js'; -import vtkDracoReader from '../DracoReader.js'; -import vtkLight from '../../../Rendering/Core/Light.js'; -import { MIN_LIGHT_ATTENUATION } from './Constants.js'; - -const { - vtkWarningMacro -} = macro; - -/** - * Handles the KHR_materials_unlit extension. - * - * @param {object} extension - The KHR_materials_unlit extension object. - * @param {vtkProperty} property - The vtkProperty instance to update. - */ -function handleKHRMaterialsUnlit(extension, property) { - property.setLighting(true); -} - -/** - * Handles the KHR_materials_ior extension. - * - * @param {object} extension - The KHR_materials_unlit extension object. - * @param {vtkProperty} property - The vtkProperty instance to update. - */ -function handleKHRMaterialsIor(extension, property) { - property.setBaseIOR(extension.ior); -} - -/** - * Handles the KHR_materials_specular extension. - * @param {object} extension - The KHR_materials_specular extension object. - * @param {vtkProperty} property - The vtkProperty instance to update. - */ -function handleKHRMaterialsSpecular(extension, property) { - property.setSpecular(extension.specularFactor); - property.setSpecularColor(extension.specularColorFactor); -} - -/** - * Handles the KHR_lights_punctual extension. - * - * @param {object} extension - The KHR_lights_punctual extension object. - * @param {vtkRenderer} renderer - The vtkRenderer instance to add the light to. - */ -function handleKHRLightsPunctual(extension, transformMatrix, model) { - const { - light - } = extension; - const { - color, - intensity, - range, - spot, - type - } = light; - const l = vtkLight.newInstance({ - color: color || [1, 1, 1], - intensity: intensity || 1.0 - }); - - // Apply the global transform to the light - l.setTransformMatrix(transformMatrix); - - // Handle range - if (range > 0) { - // Set quadratic values to get attenuation(range) ~= MIN_LIGHT_ATTENUATION - l.setAttenuationValues(1, 0, 1.0 / (range * range * MIN_LIGHT_ATTENUATION)); - } - switch (type) { - case 'directional': - l.setPositional(false); - break; - case 'point': - l.setPositional(true); - l.setConeAngle(90); - break; - case 'spot': - l.setPositional(true); - l.setConeAngle(radiansFromDegrees(spot.outerConeAngle)); - break; - default: - vtkWarningMacro(`Unsupported light type: ${type}`); - } - model.lights.set(light.name, l); -} - -/** - * Handles the KHR_draco_mesh_compression extension. - * - * @param {object} extension - The KHR_draco_mesh_compression extension object. - */ -function handleKHRDracoMeshCompression(extension) { - const reader = vtkDracoReader.newInstance(); - reader.parse(extension.bufferView); - return reader.getOutputData(); -} - -/** - * Handles the KHR_materials_variants extension. - * - * @param {object} extension - The KHR_materials_variants extension object. - * @param {object} model - The model object to update with variant information. - */ -function handleKHRMaterialsVariants(extension, model) { - model.variants = extension.variants.map(v => v.name); -} - -export { handleKHRDracoMeshCompression, handleKHRLightsPunctual, handleKHRMaterialsIor, handleKHRMaterialsSpecular, handleKHRMaterialsUnlit, handleKHRMaterialsVariants }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Parser.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Parser.js deleted file mode 100644 index 24b65a88..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Parser.js +++ /dev/null @@ -1,368 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import { SEMANTIC_ATTRIBUTE_MAP, MODES, ALPHA_MODE, BYTES, COMPONENTS, DEFAULT_SAMPLER, GL_SAMPLER } from './Constants.js'; -import { getAccessorArrayTypeAndLength, resolveUrl, getGLEnumFromSamplerParameter } from './Utils.js'; - -/* eslint-disable guard-for-in */ -const { - vtkDebugMacro, - vtkWarningMacro -} = macro; -class GLTFParser { - constructor(glTF) { - let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - const { - json, - baseUri = '' - } = glTF; - this.glTF = glTF; - this.options = options; - this.baseUri = baseUri; - this.json = json; - this.extensions = json.extensions || {}; - this.extensionsUsed = json.extensionsUsed || []; - } - async parse() { - const buffers = this.json.buffers || []; - this.buffers = new Array(buffers.length).fill(null); - const images = this.json.images || []; - this.images = new Array(images.length).fill({}); - await this.loadBuffers(); - await this.loadImages(); - this.resolveTree(); - return this.glTF.json; - } - resolveTree() { - this.json.scenes = this.json.scenes?.map((scene, idx) => this.resolveScene(scene, idx)); - this.json.cameras = this.json.cameras?.map((camera, idx) => this.resolveCamera(camera, idx)); - this.json.bufferViews = this.json.bufferViews?.map((bufView, idx) => this.resolveBufferView(bufView, idx)); - this.json.images = this.json.images?.map((image, idx) => this.resolveImage(image, idx)); - this.json.samplers = this.json.samplers?.map((sampler, idx) => this.resolveSampler(sampler, idx)); - this.json.textures = this.json.textures?.map((texture, idx) => this.resolveTexture(texture, idx)); - this.json.accessors = this.json.accessors?.map((accessor, idx) => this.resolveAccessor(accessor, idx)); - this.json.materials = this.json.materials?.map((material, idx) => this.resolveMaterial(material, idx)); - this.json.meshes = this.json.meshes?.map((mesh, idx) => this.resolveMesh(mesh, idx)); - this.json.nodes = this.json.nodes?.map((node, idx) => this.resolveNode(node, idx)); - this.json.skins = this.json.skins?.map((skin, idx) => this.resolveSkin(skin, idx)); - this.json.animations = this.json.animations?.map((animation, idx) => this.resolveAnimation(animation, idx)); - } - get(array, index) { - // check if already resolved - if (typeof index === 'object') { - return index; - } - const object = this.json[array] && this.json[array][index]; - if (!object) { - vtkWarningMacro(`glTF file error: Could not find ${array}[${index}]`); - } - return object; - } - resolveScene(scene, index) { - scene.id = scene.id || `scene-${index}`; - scene.nodes = (scene.nodes || []).map(node => this.get('nodes', node)); - return scene; - } - resolveNode(node, index) { - node.id = node.id || `node-${index}`; - if (node.children) { - node.children = node.children.map(child => this.get('nodes', child)); - } - if (node.mesh !== undefined) { - node.mesh = this.get('meshes', node.mesh); - } else if (node.meshes !== undefined && node.meshes.length) { - node.mesh = node.meshes.reduce((accum, meshIndex) => { - const mesh = this.get('meshes', meshIndex); - accum.id = mesh.id; - accum.primitives = accum.primitives.concat(mesh.primitives); - return accum; - }, { - primitives: [] - }); - } - if (node.camera !== undefined) { - node.camera = this.get('cameras', node.camera); - } - if (node.skin !== undefined) { - node.skin = this.get('skins', node.skin); - } - - // Fill punctual lights objects - if (node.extensions?.KHR_lights_punctual) { - node.extensions.KHR_lights_punctual.light = this.extensions?.KHR_lights_punctual.lights[node.extensions.KHR_lights_punctual.light]; - } - return node; - } - resolveSkin(skin, index) { - skin.id = skin.id || `skin-${index}`; - skin.inverseBindMatrices = this.get('accessors', skin.inverseBindMatrices); - return skin; - } - resolveMesh(mesh, index) { - mesh.id = mesh.id || `mesh-${index}`; - if (mesh.primitives) { - mesh.primitives = mesh.primitives.map((primitive, idx) => { - const attributes = primitive.attributes; - primitive.name = `primitive-${idx}`; - primitive.attributes = {}; - for (const attribute in attributes) { - const attr = SEMANTIC_ATTRIBUTE_MAP[attribute]; - primitive.attributes[attr] = this.get('accessors', attributes[attribute]); - } - if (primitive.indices !== undefined) { - primitive.indices = this.get('accessors', primitive.indices); - } - if (primitive.material !== undefined) { - primitive.material = this.get('materials', primitive.material); - } - if (primitive.mode === undefined) { - primitive.mode = MODES.GL_TRIANGLES; // Default one - } - - if (primitive.extensions?.KHR_draco_mesh_compression) { - vtkDebugMacro('Using Draco mesh compression'); - const bufferView = this.get('bufferViews', primitive.extensions.KHR_draco_mesh_compression.bufferView); - primitive.extensions.KHR_draco_mesh_compression.bufferView = bufferView.data; - } - return primitive; - }); - } - return mesh; - } - resolveMaterial(material, index) { - material.id = material.id || `material-${index}`; - if (material.alphaMode === undefined) material.alphaMode = ALPHA_MODE.OPAQUE; - if (material.doubleSided === undefined) material.doubleSided = false; - if (material.alphaCutoff === undefined) material.alphaCutoff = 0.5; - if (material.normalTexture) { - material.normalTexture = { - ...material.normalTexture - }; - material.normalTexture.texture = this.get('textures', material.normalTexture.index); - } - if (material.occlusionTexture) { - material.occlusionTexture = { - ...material.occlusionTexture - }; - material.occlusionTexture.texture = this.get('textures', material.occlusionTexture.index); - } - if (material.emissiveTexture) { - material.emissiveTexture = { - ...material.emissiveTexture - }; - material.emissiveTexture.texture = this.get('textures', material.emissiveTexture.index); - } - if (!material.emissiveFactor) { - material.emissiveFactor = material.emissiveTexture ? 1 : 0; - } else material.emissiveFactor = material.emissiveFactor[0]; - if (material.pbrMetallicRoughness) { - material.pbrMetallicRoughness = { - ...material.pbrMetallicRoughness - }; - const mr = material.pbrMetallicRoughness; - if (mr.baseColorTexture) { - mr.baseColorTexture = { - ...mr.baseColorTexture - }; - mr.baseColorTexture.texture = this.get('textures', mr.baseColorTexture.index); - } - if (mr.metallicRoughnessTexture) { - mr.metallicRoughnessTexture = { - ...mr.metallicRoughnessTexture - }; - mr.metallicRoughnessTexture.texture = this.get('textures', mr.metallicRoughnessTexture.index); - } - } else { - material.pbrMetallicRoughness = { - baseColorFactor: [1, 1, 1, 1], - metallicFactor: 1.0, - roughnessFactor: 1.0 - }; - } - return material; - } - - /** - * Take values of particular accessor from interleaved buffer various parts of - * the buffer - */ - getValueFromInterleavedBuffer(buffer, byteOffset, byteStride, bytesPerElement, count) { - const result = new Uint8Array(count * bytesPerElement); - for (let i = 0; i < count; i++) { - const elementOffset = byteOffset + i * byteStride; - result.set(new Uint8Array(buffer.arrayBuffer.slice(elementOffset, elementOffset + bytesPerElement)), i * bytesPerElement); - } - return result.buffer; - } - resolveAccessor(accessor, index) { - accessor.id = accessor.id || `accessor-${index}`; - if (accessor.bufferView !== undefined) { - // Draco encoded meshes don't have bufferView - accessor.bufferView = this.get('bufferViews', accessor.bufferView); - } - - // Look up enums - accessor.bytesPerComponent = BYTES[accessor.componentType]; - accessor.components = COMPONENTS[accessor.type]; - accessor.bytesPerElement = accessor.bytesPerComponent * accessor.components; - - // Create TypedArray for the accessor - // Note: The canonical way to instantiate is to ignore this array and create - // WebGLBuffer's using the bufferViews. - if (accessor.bufferView) { - const buffer = accessor.bufferView.buffer; - const { - ArrayType - } = getAccessorArrayTypeAndLength(accessor, accessor.bufferView); - const baseByteOffset = (accessor.bufferView.byteOffset || 0) + buffer.byteOffset; - const byteOffset = baseByteOffset + (accessor.byteOffset || 0); - let arrayBufferView; - if (accessor.bufferView.byteStride) { - // Only extract if stride is not equal to element size - if (accessor.bufferView.byteStride === accessor.bytesPerElement) { - arrayBufferView = new ArrayType(buffer.arrayBuffer, byteOffset, accessor.count * accessor.components); - } else { - // Interleaved buffer, extract only needed bytes - const interleavedBuffer = this.getValueFromInterleavedBuffer(buffer, byteOffset, accessor.bufferView.byteStride, accessor.bytesPerElement, accessor.count); - arrayBufferView = new ArrayType(interleavedBuffer); - } - } else { - arrayBufferView = new ArrayType(buffer.arrayBuffer, byteOffset, accessor.count * accessor.components); - } - accessor.value = arrayBufferView; - } - return accessor; - } - resolveTexture(texture, index) { - texture.id = texture.id || `texture-${index}`; - texture.sampler = 'sampler' in texture ? this.get('samplers', texture.sampler) : DEFAULT_SAMPLER; - texture.source = this.get('images', texture.source); - - // Handle texture extensions sources - if (texture.extensions !== undefined) { - const extensionsNames = Object.keys(texture.extensions); - extensionsNames.forEach(extensionName => { - const extension = texture.extensions[extensionName]; - switch (extensionName) { - case 'KHR_texture_basisu': - case 'EXT_texture_webp': - case 'EXT_texture_avif': - texture.source = this.get('images', extension.source); - break; - default: - vtkWarningMacro(`Unhandled extension: ${extensionName}`); - } - }); - } - return texture; - } - resolveSampler(sampler, index) { - sampler.id = sampler.id || `sampler-${index}`; - if (!Object.hasOwn(sampler, 'wrapS')) sampler.wrapS = GL_SAMPLER.REPEAT; - if (!Object.hasOwn(sampler, 'wrapT')) sampler.wrapT = GL_SAMPLER.REPEAT; - if (!Object.hasOwn(sampler, 'minFilter')) sampler.minFilter = GL_SAMPLER.LINEAR_MIPMAP_LINEAR; - if (!Object.hasOwn(sampler, 'magFilter')) sampler.magFilter = GL_SAMPLER.NEAREST; - - // Map textual parameters to GL parameter values - sampler.parameters = {}; - for (const key in sampler) { - const glEnum = getGLEnumFromSamplerParameter(key); - if (glEnum !== undefined) { - sampler.parameters[glEnum] = sampler[key]; - } - } - return sampler; - } - resolveImage(image, index) { - image.id = image.id || `image-${index}`; - if (image.bufferView !== undefined) { - image.bufferView = this.get('bufferViews', image.bufferView); - } - return image; - } - resolveBufferView(bufferView, index) { - bufferView.id = bufferView.id || `bufferView-${index}`; - const bufferIndex = bufferView.buffer; - bufferView.buffer = this.buffers[bufferIndex]; - const arrayBuffer = this.buffers[bufferIndex].arrayBuffer; - let byteOffset = this.buffers[bufferIndex].byteOffset || 0; - if ('byteOffset' in bufferView) { - byteOffset += bufferView.byteOffset; - } - bufferView.data = new Uint8Array(arrayBuffer, byteOffset, bufferView.byteLength); - return bufferView; - } - resolveCamera(camera, index) { - camera.id = camera.id || `camera-${index}`; - return camera; - } - resolveAnimation(animation, index) { - animation.id = animation.id || `animation-${index}`; - animation.samplers.map(sampler => { - sampler.input = this.get('accessors', sampler.input).value; - sampler.output = this.get('accessors', sampler.output).value; - return sampler; - }); - return animation; - } - loadBuffers() { - const promises = this.json.buffers.map((buffer, idx) => this.loadBuffer(buffer, idx).then(() => { - delete buffer.uri; - })); - return Promise.all(promises); - } - async loadBuffer(buffer, index) { - let arrayBuffer = buffer; - if (buffer.uri) { - vtkDebugMacro('Loading uri', buffer.uri); - const uri = resolveUrl(buffer.uri, this.options.baseUri); - const response = await fetch(uri); - arrayBuffer = await response.arrayBuffer(); - } else if (this.glTF.glbBuffers) { - arrayBuffer = this.glTF.glbBuffers[index]; - } - this.buffers[index] = { - arrayBuffer, - byteOffset: 0, - byteLength: arrayBuffer.byteLength - }; - } - loadImages() { - const images = this.json.images || []; - const promises = []; - return new Promise((resolve, reject) => { - for (let i = 0; i < images.length; ++i) { - promises.push(Promise.resolve(this.loadImage(images[i], i).then(() => { - vtkDebugMacro('Texture loaded ', images[i]); - }))); - } - Promise.all(promises).then(() => resolve(this.images)); - }); - } - async loadImage(image, index) { - let arrayBuffer; - let buffer; - if (image.uri) { - vtkDebugMacro('Loading texture', image.uri); - const uri = resolveUrl(image.uri, this.options.baseUri); - const response = await fetch(uri); - arrayBuffer = await response.arrayBuffer(); - image.uri = uri; - image.bufferView = { - data: arrayBuffer - }; - } else if (image.bufferView) { - const bufferView = this.get('bufferViews', image.bufferView); - buffer = this.get('buffers', bufferView.buffer); - - // GLB buffer - if (this.glTF.glbBuffers) { - buffer = this.glTF.glbBuffers[bufferView.buffer]; - arrayBuffer = buffer.slice(bufferView.byteOffset, bufferView.byteOffset + bufferView.byteLength); - } - image.bufferView = { - data: arrayBuffer - }; - } - } -} - -export { GLTFParser as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Reader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Reader.js deleted file mode 100644 index 7d4cbb33..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Reader.js +++ /dev/null @@ -1,514 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import { B as degreesFromRadians } from '../../../Common/Core/Math/index.js'; -import vtkActor from '../../../Rendering/Core/Actor.js'; -import vtkCamera from '../../../Rendering/Core/Camera.js'; -import vtkDataArray from '../../../Common/Core/DataArray.js'; -import vtkPolyData from '../../../Common/DataModel/PolyData.js'; -import vtkMapper from '../../../Rendering/Core/Mapper.js'; -import vtkCellArray from '../../../Common/Core/CellArray.js'; -import vtkTransform from '../../../Common/Transform/Transform.js'; -import GLTFParser from './Parser.js'; -import { ALPHA_MODE, SEMANTIC_ATTRIBUTE_MAP, MODES } from './Constants.js'; -import { loadImage, createVTKTextureFromGLTFTexture } from './Utils.js'; -import { handleKHRMaterialsSpecular, handleKHRMaterialsIor, handleKHRMaterialsUnlit, handleKHRMaterialsVariants, handleKHRLightsPunctual, handleKHRDracoMeshCompression } from './Extensions.js'; -import { mat4, vec3, quat } from 'gl-matrix'; - -const { - vtkWarningMacro, - vtkDebugMacro -} = macro; - -/** - * Parses a GLTF objects - * @param {Object} gltf - The GLTF object to parse - * @returns {glTF} The parsed GLTF object - */ -async function parseGLTF(gltf, options) { - const parser = new GLTFParser(gltf, options); - const tree = await parser.parse(); - return tree; -} - -/** - * Creates VTK polydata from a GLTF mesh primitive - * @param {GLTFPrimitive} primitive - The GLTF mesh primitive - * @returns {vtkPolyData} The created VTK polydata - */ -async function createPolyDataFromGLTFMesh(primitive) { - if (!primitive || !primitive.attributes) { - vtkWarningMacro('Primitive has no position data, skipping'); - return null; - } - if (primitive.extensions?.KHR_draco_mesh_compression) { - return handleKHRDracoMeshCompression(primitive.extensions.KHR_draco_mesh_compression); - } - const polyData = vtkPolyData.newInstance(); - const cells = vtkCellArray.newInstance(); - const pointData = polyData.getPointData(); - const attrs = Object.entries(primitive.attributes); - attrs.forEach(async _ref => { - let [attributeName, accessor] = _ref; - switch (attributeName) { - case SEMANTIC_ATTRIBUTE_MAP.POSITION: - { - const position = primitive.attributes.position.value; - polyData.getPoints().setData(position, primitive.attributes.position.component); - break; - } - case SEMANTIC_ATTRIBUTE_MAP.NORMAL: - { - const normals = primitive.attributes.normal.value; - pointData.setNormals(vtkDataArray.newInstance({ - name: 'Normals', - values: normals, - numberOfComponents: primitive.attributes.normal.components - })); - break; - } - case SEMANTIC_ATTRIBUTE_MAP.COLOR_0: - { - const color = primitive.attributes.color.value; - pointData.setScalars(vtkDataArray.newInstance({ - name: 'Scalars', - values: color, - numberOfComponents: primitive.attributes.color.components - })); - break; - } - case SEMANTIC_ATTRIBUTE_MAP.TEXCOORD_0: - { - const tcoords0 = primitive.attributes.texcoord0.value; - const da = vtkDataArray.newInstance({ - name: 'TEXCOORD_0', - values: tcoords0, - numberOfComponents: primitive.attributes.texcoord0.components - }); - pointData.addArray(da); - pointData.setActiveTCoords(da.getName()); - break; - } - case SEMANTIC_ATTRIBUTE_MAP.TEXCOORD_1: - { - const tcoords = primitive.attributes.texcoord1.value; - const dac = vtkDataArray.newInstance({ - name: 'TEXCOORD_1', - values: tcoords, - numberOfComponents: primitive.attributes.texcoord1.components - }); - pointData.addArray(dac); - break; - } - case SEMANTIC_ATTRIBUTE_MAP.TANGENT: - { - const tangent = primitive.attributes.tangent.value; - const dat = vtkDataArray.newInstance({ - name: 'Tangents', - values: tangent, - numberOfComponents: primitive.attributes.tangent.components - }); - pointData.addArray(dat); - break; - } - default: - vtkWarningMacro(`Unhandled attribute: ${attributeName}`); - } - }); - - // Handle indices if available - if (primitive.indices != null) { - const indices = primitive.indices.value; - const nCells = indices.length - 2; - switch (primitive.mode) { - case MODES.GL_LINE_STRIP: - case MODES.GL_TRIANGLE_STRIP: - case MODES.GL_LINE_LOOP: - vtkWarningMacro('GL_LINE_LOOP not implemented'); - break; - default: - cells.allocate(4 * indices.length / 3); - for (let cellId = 0; cellId < nCells; cellId += 3) { - const cell = indices.slice(cellId, cellId + 3); - cells.insertNextCell(cell); - } - } - } - switch (primitive.mode) { - case MODES.GL_TRIANGLES: - case MODES.GL_TRIANGLE_FAN: - polyData.setPolys(cells); - break; - case MODES.GL_LINES: - case MODES.GL_LINE_STRIP: - case MODES.GL_LINE_LOOP: - polyData.setLines(cells); - break; - case MODES.GL_POINTS: - polyData.setVerts(cells); - break; - case MODES.GL_TRIANGLE_STRIP: - polyData.setStrips(cells); - break; - default: - cells.delete(); - vtkWarningMacro('Invalid primitive draw mode. Ignoring connectivity.'); - } - return polyData; -} - -/** - * Creates a VTK property from a GLTF material - * @param {object} model - The vtk model object - * @param {GLTFMaterial} material - The GLTF material - * @param {vtkActor} actor - The VTK actor - */ -async function createPropertyFromGLTFMaterial(model, material, actor) { - let metallicFactor = 1.0; - let roughnessFactor = 1.0; - const emissiveFactor = material.emissiveFactor; - const property = actor.getProperty(); - const pbr = material.pbrMetallicRoughness; - if (pbr != null) { - if (!pbr?.metallicFactor || pbr?.metallicFactor <= 0 || pbr?.metallicFactor >= 1) { - vtkDebugMacro('Invalid material.pbrMetallicRoughness.metallicFactor value. Using default value instead.'); - } else metallicFactor = pbr.metallicFactor; - if (!pbr?.roughnessFactor || pbr?.roughnessFactor <= 0 || pbr?.roughnessFactor >= 1) { - vtkDebugMacro('Invalid material.pbrMetallicRoughness.roughnessFactor value. Using default value instead.'); - } else roughnessFactor = pbr.roughnessFactor; - const color = pbr.baseColorFactor; - if (color != null) { - property.setDiffuseColor(color[0], color[1], color[2]); - property.setOpacity(color[3]); - } - property.setMetallic(metallicFactor); - property.setRoughness(roughnessFactor); - property.setEmission(emissiveFactor); - if (pbr.baseColorTexture) { - pbr.baseColorTexture.extensions; - const tex = pbr.baseColorTexture.texture; - if (tex.extensions != null) { - const extensionsNames = Object.keys(tex.extensions); - extensionsNames.forEach(extensionName => { - // TODO: Handle KHR_texture_basisu extension - // const extension = tex.extensions[extensionName]; - switch (extensionName) { - default: - vtkWarningMacro(`Unhandled extension: ${extensionName}`); - } - }); - } - const sampler = tex.sampler; - const image = await loadImage(tex.source); - const diffuseTex = createVTKTextureFromGLTFTexture(image, sampler); - property.setDiffuseTexture(diffuseTex); - } - - // Handle metallic-roughness texture (metallicRoughnessTexture) - if (pbr.metallicRoughnessTexture) { - pbr.metallicRoughnessTexture.extensions; - const tex = pbr.metallicRoughnessTexture.texture; - const sampler = tex.sampler; - const rmImage = await loadImage(tex.source); - const rmTex = createVTKTextureFromGLTFTexture(rmImage, sampler); - property.setRMTexture(rmTex); - } - - // Handle ambient occlusion texture (occlusionTexture) - if (material.occlusionTexture) { - material.occlusionTexture.extensions; - const tex = material.occlusionTexture.texture; - const sampler = tex.sampler; - const aoImage = await loadImage(tex.source); - const aoTex = createVTKTextureFromGLTFTexture(aoImage, sampler); - property.setAmbientOcclusionTexture(aoTex); - } - - // Handle emissive texture (emissiveTexture) - if (material.emissiveTexture) { - material.emissiveTexture.extensions; - const tex = material.emissiveTexture.texture; - const sampler = tex.sampler; - const emissiveImage = await loadImage(tex.source); - const emissiveTex = createVTKTextureFromGLTFTexture(emissiveImage, sampler); - property.setEmissionTexture(emissiveTex); - - // Handle mutiple Uvs - if (material.emissiveTexture.texCoord != null) { - const pd = actor.getMapper().getInputData().getPointData(); - pd.setActiveTCoords(`TEXCOORD_${material.emissiveTexture.texCoord}`); - } - } - - // Handle normal texture (normalTexture) - if (material.normalTexture) { - material.normalTexture.extensions; - const tex = material.normalTexture.texture; - const sampler = tex.sampler; - const normalImage = await loadImage(tex.source); - const normalTex = createVTKTextureFromGLTFTexture(normalImage, sampler); - property.setNormalTexture(normalTex); - if (material.normalTexture.scale != null) { - property.setNormalStrength(material.normalTexture.scale); - } - } - } - - // Material extensions - if (material.extensions != null) { - const extensionsNames = Object.keys(material.extensions); - extensionsNames.forEach(extensionName => { - const extension = material.extensions[extensionName]; - switch (extensionName) { - case 'KHR_materials_unlit': - handleKHRMaterialsUnlit(extension, property); - break; - case 'KHR_materials_ior': - handleKHRMaterialsIor(extension, property); - break; - case 'KHR_materials_specular': - handleKHRMaterialsSpecular(extension, property); - break; - default: - vtkWarningMacro(`Unhandled extension: ${extensionName}`); - } - }); - } - if (material.alphaMode !== ALPHA_MODE.OPAQUE) { - actor.setForceTranslucent(true); - } - property.setBackfaceCulling(!material.doubleSided); -} - -/** - * Handles primitive extensions - * @param {string} nodeId The GLTF node id - * @param {*} extensions The extensions object - * @param {*} model The vtk model object - */ -function handlePrimitiveExtensions(nodeId, extensions, model) { - const extensionsNames = Object.keys(extensions); - extensionsNames.forEach(extensionName => { - const extension = extensions[extensionName]; - switch (extensionName) { - case 'KHR_materials_variants': - model.variantMappings.set(nodeId, extension.mappings); - break; - case 'KHR_draco_mesh_compression': - break; - default: - vtkWarningMacro(`Unhandled extension: ${extensionName}`); - } - }); -} - -/** - * Creates a VTK actor from a GLTF mesh - * @param {GLTFMesh} mesh - The GLTF mesh - * @returns {vtkActor} The created VTK actor - */ -async function createActorFromGTLFNode(worldMatrix) { - const actor = vtkActor.newInstance(); - const mapper = vtkMapper.newInstance(); - mapper.setColorModeToDirectScalars(); - mapper.setInterpolateScalarsBeforeMapping(true); - actor.setMapper(mapper); - actor.setUserMatrix(worldMatrix); - const polydata = vtkPolyData.newInstance(); - mapper.setInputData(polydata); - return actor; -} - -/** - * Creates a VTK actor from a GLTF mesh - * @param {GLTFMesh} mesh - The GLTF mesh - * @returns {vtkActor} The created VTK actor - */ -async function createActorFromGTLFPrimitive(model, primitive, worldMatrix) { - const actor = vtkActor.newInstance(); - const mapper = vtkMapper.newInstance(); - mapper.setColorModeToDirectScalars(); - mapper.setInterpolateScalarsBeforeMapping(true); - actor.setMapper(mapper); - actor.setUserMatrix(worldMatrix); - const polydata = await createPolyDataFromGLTFMesh(primitive); - mapper.setInputData(polydata); - - // Support for materials - if (primitive.material != null) { - await createPropertyFromGLTFMaterial(model, primitive.material, actor); - } - if (primitive.extensions != null) { - handlePrimitiveExtensions(`${primitive.name}`, primitive.extensions, model); - } - return actor; -} - -/** - * Creates a GLTF animation object - * @param {GLTFAnimation} animation - * @returns - */ -function createGLTFAnimation(animation) { - vtkDebugMacro('Creating animation:', animation); - return { - name: animation.name, - channels: animation.channels, - samplers: animation.samplers, - getChannelByTargetNode(nodeIndex) { - return this.channels.filter(channel => channel.target.node === nodeIndex); - } - }; -} - -/** - * Gets the transformation matrix for a GLTF node - * @param {GLTFNode} node - The GLTF node - * @returns {mat4} The transformation matrix - */ -function getTransformationMatrix(node) { - // TRS - const translation = node.translation ?? vec3.create(); - const rotation = node.rotation ?? quat.create(); - const scale = node.scale ?? vec3.fromValues(1.0, 1.0, 1.0); - const matrix = node.matrix != null ? mat4.clone(node.matrix) : mat4.fromRotationTranslationScale(mat4.create(), rotation, translation, scale); - return matrix; -} - -/** - * Processes a GLTF node - * @param {GLTFnode} node - The GLTF node - * @param {object} model The model object - * @param {vtkActor} parentActor The parent actor - * @param {mat4} parentMatrix The parent matrix - */ -async function processNode(node, model) { - let parentActor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - let parentMatrix = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : mat4.create(); - node.transform = getTransformationMatrix(node); - const worldMatrix = mat4.multiply(mat4.create(), parentMatrix, node.transform); - - // Create actor for the current node - if (node.mesh != null) { - const nodeActor = await createActorFromGTLFNode(worldMatrix); - if (parentActor) { - nodeActor.setParentProp(parentActor); - } - model.actors.set(`${node.id}`, nodeActor); - await Promise.all(node.mesh.primitives.map(async (primitive, i) => { - const actor = await createActorFromGTLFPrimitive(model, primitive, worldMatrix); - actor.setParentProp(nodeActor); - model.actors.set(`${node.id}_${primitive.name}`, actor); - })); - } - - // Handle KHRLightsPunctual extension - if (node.extensions?.KHR_lights_punctual) { - handleKHRLightsPunctual(node.extensions.KHR_lights_punctual, node.transform, model); - } - if (node.children && Array.isArray(node.children) && node.children.length > 0) { - await Promise.all(node.children.map(async child => { - const parent = model.actors.get(node.id); - await processNode(child, model, parent, worldMatrix); - })); - } -} - -/** - * Creates VTK actors from a GLTF object - * @param {glTF} glTF - The GLTF object - * @param {number} sceneId - The scene index to create actors for - * @returns {vtkActor[]} The created VTK actors - */ -async function createVTKObjects(model) { - model.animations = model.glTFTree.animations?.map(createGLTFAnimation); - const extensionsNames = Object.keys(model.glTFTree?.extensions || []); - extensionsNames.forEach(extensionName => { - const extension = model.glTFTree.extensions[extensionName]; - switch (extensionName) { - case 'KHR_materials_variants': - handleKHRMaterialsVariants(extension, model); - break; - case 'KHR_draco_mesh_compression': - break; - default: - vtkWarningMacro(`Unhandled extension: ${extensionName}`); - } - }); - - // Get the sceneId to process - const sceneId = model.sceneId ?? model.glTFTree.scene; - if (model.glTFTree.scenes?.length && model.glTFTree.scenes[sceneId]?.nodes) { - await Promise.all(model.glTFTree.scenes[sceneId].nodes.map(async node => { - if (node) { - await processNode(node, model); - } else { - vtkWarningMacro(`Node not found in glTF.nodes`); - } - })); - } else { - vtkWarningMacro('No valid scenes found in the glTF data'); - } -} - -/** - * Sets up the camera for a vtk renderer based on the bounds of the given actors. - * - * @param {GLTCamera} camera - The GLTF camera object - */ -function GLTFCameraToVTKCamera(glTFCamera) { - const camera = vtkCamera.newInstance(); - if (glTFCamera.type === 'perspective') { - const { - yfov, - znear, - zfar - } = glTFCamera.perspective; - camera.setClippingRange(znear, zfar); - camera.setParallelProjection(false); - camera.setViewAngle(degreesFromRadians(yfov)); - } else if (glTFCamera.type === 'orthographic') { - const { - ymag, - znear, - zfar - } = glTFCamera.orthographic; - camera.setClippingRange(znear, zfar); - camera.setParallelProjection(true); - camera.setParallelScale(ymag); - } else { - throw new Error('Unsupported camera type'); - } - return camera; -} - -/** - * - * @param {vtkCamera} camera - * @param {*} transformMatrix - */ -function applyTransformToCamera(camera, transformMatrix) { - if (!camera || !transformMatrix) { - return; - } - - // At identity, camera position is origin, +y up, -z view direction - const position = [0, 0, 0]; - const viewUp = [0, 1, 0]; - const focus = [0, 0, -1]; - const t = vtkTransform.newInstance(); - t.setMatrix(transformMatrix); - - // Transform position - t.transformPoint(position, position); - t.transformPoints(viewUp, viewUp); - t.transformPoints(focus, focus); - focus[0] += position[0]; - focus[1] += position[1]; - focus[2] += position[2]; - - // Apply the transformed values to the camera - camera.setPosition(position); - camera.setFocalPoint(focus); - camera.setViewUp(viewUp); -} - -export { GLTFCameraToVTKCamera, applyTransformToCamera, createPropertyFromGLTFMaterial, createVTKObjects, parseGLTF }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Utils.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Utils.js deleted file mode 100644 index 90b429a5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/GLTFImporter/Utils.js +++ /dev/null @@ -1,147 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import vtkTexture from '../../../Rendering/Core/Texture.js'; -import { ARRAY_TYPES, COMPONENTS, BYTES, GL_SAMPLER } from './Constants.js'; - -const { - vtkWarningMacro, - vtkErrorMacro -} = macro; - -/** - * Get GL enum from sampler parameter - * @param {*} parameter The sampler parameter - * @returns The GL enum - */ -function getGLEnumFromSamplerParameter(parameter) { - const GL_TEXTURE_MAG_FILTER = 0x2800; - const GL_TEXTURE_MIN_FILTER = 0x2801; - const GL_TEXTURE_WRAP_S = 0x2802; - const GL_TEXTURE_WRAP_T = 0x2803; - const Mapping = { - magFilter: GL_TEXTURE_MAG_FILTER, - minFilter: GL_TEXTURE_MIN_FILTER, - wrapS: GL_TEXTURE_WRAP_S, - wrapT: GL_TEXTURE_WRAP_T - }; - return Mapping[parameter]; -} -function getAccessorArrayTypeAndLength(accessor, bufferView) { - const ArrayType = ARRAY_TYPES[accessor.componentType]; - const components = COMPONENTS[accessor.type]; - const bytesPerComponent = BYTES[accessor.componentType]; - const length = accessor.count * components; - const byteLength = accessor.count * components * bytesPerComponent; - return { - ArrayType, - length, - byteLength - }; -} - -/** - * Resolves a URL based on the original path - * @param {*} url The URL to resolve - * @param {*} originalPath The original path to resolve the URL against - * @returns The resolved URL or an empty string if the URL is invalid - */ -function resolveUrl(url, originalPath) { - // Invalid URL - if (typeof url !== 'string' || url === '') return ''; - try { - // Data URI - if (url.startsWith('data:')) return url; - - // Blob URL - if (url.startsWith('blob:')) return url; - - // Create URL object from the original path - const baseUrl = new URL(originalPath); - if (!baseUrl.pathname.includes('.') && !baseUrl.pathname.endsWith('/')) { - baseUrl.pathname += '/'; - } - - // Absolute URL (http://, https://, //) - if (url.startsWith('http:') || url.startsWith('https:') || url.startsWith('//')) { - return new URL(url, baseUrl).href; - } - - // Host Relative URL - if (url.startsWith('/')) { - return new URL(url, baseUrl).href; - } - - // Relative URL - return new URL(url, baseUrl).href; - } catch (error) { - vtkErrorMacro('Error resolving URL:', error); - return ''; - } -} - -/** - * Loads image from buffer or URI - * @param {*} image - * @returns - */ -async function loadImage(image) { - if (image.bufferView) { - const blob = new Blob([image.bufferView.data], { - type: image.mimeType - }); - const bitmap = await createImageBitmap(blob, { - colorSpaceConversion: 'none', - imageOrientation: 'flipY' - }); - return bitmap; - } - if (image.uri) { - vtkWarningMacro('Falling back to image uri', image.uri); - return new Promise((resolve, reject) => { - const img = new Image(); - img.crossOrigin = 'Anonymous'; - img.onload = () => { - resolve(img); - }; - img.onerror = reject; - img.src = image.uri; - }); - } - return null; -} - -/** - * - * @param {*} image - * @param {*} sampler - * @param {*} extensions - * @returns - */ -function createVTKTextureFromGLTFTexture(image, sampler, extensions) { - const texture = vtkTexture.newInstance(); - // Apply sampler settings - if (sampler) { - if ('wrapS' in sampler && 'wrapT' in sampler || 'minFilter' in sampler && 'magFilter' in sampler) { - if (sampler.wrapS === GL_SAMPLER.CLAMP_TO_EDGE || sampler.wrapT === GL_SAMPLER.CLAMP_TO_EDGE) { - texture.setRepeat(false); - texture.setEdgeClamp(true); - } else if (sampler.wrapS === GL_SAMPLER.REPEAT || sampler.wrapT === GL_SAMPLER.REPEAT) { - texture.setRepeat(true); - texture.setEdgeClamp(false); - } else { - vtkWarningMacro('Mirrored texture wrapping is not supported!'); - } - const linearFilters = [GL_SAMPLER.LINEAR, GL_SAMPLER.LINEAR_MIPMAP_NEAREST, GL_SAMPLER.NEAREST_MIPMAP_LINEAR, GL_SAMPLER.LINEAR_MIPMAP_LINEAR]; - if (linearFilters.includes(sampler.minFilter) || linearFilters.includes(sampler.magFilter)) { - texture.setInterpolate(true); - } - } else { - texture.setMipLevel(8); - texture.setInterpolate(true); - texture.setEdgeClamp(true); - } - } - texture.setImageBitmap(image); - return texture; -} - -export { createVTKTextureFromGLTFTexture, getAccessorArrayTypeAndLength, getGLEnumFromSamplerParameter, loadImage, resolveUrl }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/IFCImporter.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/IFCImporter.d.ts deleted file mode 100644 index 4f5ce236..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/IFCImporter.d.ts +++ /dev/null @@ -1,163 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { vtkRenderer } from './../../Rendering/Core/Renderer'; -import { HtmlDataAccessHelper } from './../Core/DataAccessHelper/HtmlDataAccessHelper'; -import { HttpDataAccessHelper } from './../Core/DataAccessHelper/HttpDataAccessHelper'; -import { JSZipDataAccessHelper } from './../Core/DataAccessHelper/JSZipDataAccessHelper'; -import { LiteHttpDataAccessHelper } from './../Core/DataAccessHelper/LiteHttpDataAccessHelper'; - -interface IIFCImporterOptions { - compression?: string; - progressCallback?: any; -} - -/** - * - */ -export interface IIFCImporterInitialValues { - mergeGeometries?: boolean; -} - -type vtkIFCImporterBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkIFCImporter extends vtkIFCImporterBase { - /** - * - */ - getBaseURL(): string; - - /** - * - */ - getDataAccessHelper(): - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper; - - /** - * Get the url of the object to load. - */ - getUrl(): string; - - /** - * Import actors into the renderer. - * @param {vtkRenderer} renderer The vtkRenderer to import the actors into. - */ - importActors(renderer: vtkRenderer): void; - - /** - * Load the object data. - * @param {IIFCImporterOptions} [options] - */ - loadData(options?: IIFCImporterOptions): Promise; - - /** - * Parse data. - * @param {String | ArrayBuffer} content The content to parse. - */ - parse(content: string | ArrayBuffer): void; - - /** - * Parse data as ArrayBuffer. - * @param {ArrayBuffer} content The content to parse. - */ - parseAsArrayBuffer(content: ArrayBuffer): void; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * - * @param dataAccessHelper - */ - setDataAccessHelper( - dataAccessHelper: - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper - ): boolean; - - /** - * Set the url of the object to load. - * @param {String} url the url of the object to load. - * @param {IIFCImporterOptions} [option] The PLY reader options. - */ - setUrl(url: string, option?: IIFCImporterOptions): Promise; -} - -/** - * Set WebIFC api to be used by vtkIFCImporter - * @param {object} ifcApi - */ -export function setIFCAPI(ifcApi: any): void; - -/** - * Method used to decorate a given object (publicAPI+model) with vtkIFCImporter characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IIFCImporterInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IIFCImporterInitialValues -): void; - -/** - * Method used to create a new instance of vtkIFCImporter - * @param {IIFCImporterInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IIFCImporterInitialValues -): vtkIFCImporter; - -/** - * vtkIFCImporter is a source object that reads Industry Foundation Class(IFC) files. - * - * The vtkIFCImporter is using web-ifc library to parse the IFC file. - * - * @example - * ```js - * import vtkResourceLoader from '@kitware/vtk.js/IO/Core/ResourceLoader'; - * import vtkIFCImporter from '@kitware/vtk.js/IO/Geometry/IFCImporter'; - * - * function update() { - * importer.onReady(() => { - * importer.importActors(renderer); - * renderer.resetCamera(); - * renderWindow.render(); - * }); - * } - * - * vtkResourceLoader - * .loadScript('https://cdn.jsdelivr.net/npm/web-ifc@0.0.55/web-ifc-api-iife.js') - * .then(() => { - * // Pass WebIFC api to vtkIFCImporter - * vtkIFCImporter.setIFCAPI(window.WebIFC); - * - * // Trigger data download - * importer.setUrl(`${__BASE_PATH__}/data/ifc/house.ifc`).then(update); - * }); - * ``` - */ -export declare const vtkIFCImporter: { - newInstance: typeof newInstance; - extend: typeof extend; - setIFCAPI: typeof setIFCAPI; -}; -export default vtkIFCImporter; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/IFCImporter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/IFCImporter.js deleted file mode 100644 index 179ba77d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/IFCImporter.js +++ /dev/null @@ -1,270 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import '../Core/DataAccessHelper/LiteHttpDataAccessHelper.js'; -import DataAccessHelper from '../Core/DataAccessHelper.js'; -import vtkActor from '../../Rendering/Core/Actor.js'; -import vtkMapper from '../../Rendering/Core/Mapper.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import vtkAppendPolyData from '../../Filters/General/AppendPolyData.js'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; -import { mat3 } from 'gl-matrix'; - -const { - vtkErrorMacro -} = macro; -let WebIFC; - -/** - * Set WebIFC api to be used by vtkIFCImporter - * @param {object} ifcApi - */ -function setIFCAPI(ifcApi) { - WebIFC = ifcApi; -} -function vtkIFCImporter(publicAPI, model) { - model.classHierarchy.push('vtkIFCImporter'); - const meshes = []; - - /** - * Create a vtkPolyData from an IFC mesh object - * @param {object} mesh the IFC web mesh object - * @returns vtkPolyData - */ - function createPolyDataFromIFCMesh(mesh) { - const { - vertices, - indices - } = mesh; - const pd = vtkPolyData.newInstance(); - const cells = vtkCellArray.newInstance(); - const pointValues = new Float32Array(vertices.length / 2); - const normalsArray = new Float32Array(vertices.length / 2); - for (let i = 0; i < vertices.length; i += 6) { - pointValues[i / 2] = vertices[i]; - pointValues[i / 2 + 1] = vertices[i + 1]; - pointValues[i / 2 + 2] = vertices[i + 2]; - normalsArray[i / 2] = vertices[i + 3]; - normalsArray[i / 2 + 1] = vertices[i + 4]; - normalsArray[i / 2 + 2] = vertices[i + 5]; - } - const nCells = indices.length; - cells.resize(3 * nCells / 3); - for (let cellId = 0; cellId < nCells; cellId += 3) { - const cell = indices.slice(cellId, cellId + 3); - cells.insertNextCell(cell); - } - pd.getPoints().setData(pointValues, 3); - pd.setStrips(cells); - pd.getPointData().setNormals(vtkDataArray.newInstance({ - name: 'Normals', - values: normalsArray, - numberOfComponents: 3 - })); - return pd; - } - - /** - * Create a colored vtkPolyData from an IFC mesh object - * @param {object} mesh the IFC mesh object - * @returns vtkPolyData - */ - function createColoredPolyDataFromIFCMesh(mesh) { - const { - vertices, - indices, - color, - userMatrix - } = mesh; - const pd = vtkPolyData.newInstance(); - const cells = vtkCellArray.newInstance(); - const pointValues = new Float32Array(vertices.length / 2); - const normalsArray = new Float32Array(vertices.length / 2); - const colorArray = new Float32Array(vertices.length / 2); - if (userMatrix) { - const transformMatrix = vtkMatrixBuilder.buildFromRadian().setMatrix(userMatrix); - const normalMatrix = vtkMatrixBuilder.buildFromRadian().multiply3x3(mat3.fromMat4(mat3.create(), userMatrix)); - for (let i = 0; i < vertices.length; i += 6) { - const point = [vertices[i], vertices[i + 1], vertices[i + 2]]; - const normal = [vertices[i + 3], vertices[i + 4], vertices[i + 5]]; - transformMatrix.apply(point); - normalMatrix.apply(normal); - pointValues[i / 2] = point[0]; - pointValues[i / 2 + 1] = point[1]; - pointValues[i / 2 + 2] = point[2]; - normalsArray[i / 2] = normal[0]; - normalsArray[i / 2 + 1] = normal[1]; - normalsArray[i / 2 + 2] = normal[2]; - const colorIndex = i / 2; - colorArray[colorIndex] = color.x; - colorArray[colorIndex + 1] = color.y; - colorArray[colorIndex + 2] = color.z; - } - } else { - for (let i = 0; i < vertices.length; i += 6) { - pointValues[i / 2] = vertices[i]; - pointValues[i / 2 + 1] = vertices[i + 1]; - pointValues[i / 2 + 2] = vertices[i + 2]; - normalsArray[i / 2] = vertices[i + 3]; - normalsArray[i / 2 + 1] = vertices[i + 4]; - normalsArray[i / 2 + 2] = vertices[i + 5]; - const colorIndex = i / 2; - colorArray[colorIndex] = color.x; - colorArray[colorIndex + 1] = color.y; - colorArray[colorIndex + 2] = color.z; - } - } - const nCells = indices.length; - cells.resize(3 * nCells / 3); - for (let cellId = 0; cellId < nCells; cellId += 3) { - const cell = indices.slice(cellId, cellId + 3); - cells.insertNextCell(cell); - } - pd.getPoints().setData(pointValues, 3); - pd.setPolys(cells); - pd.getPointData().setNormals(vtkDataArray.newInstance({ - name: 'Normals', - values: normalsArray, - numberOfComponents: 3 - })); - pd.getPointData().setScalars(vtkDataArray.newInstance({ - name: 'Colors', - values: colorArray, - numberOfComponents: 3 - })); - return pd; - } - function parseIfc(content) { - const modelID = model._ifcApi.OpenModel(new Uint8Array(content), { - COORDINATE_TO_ORIGIN: true, - USE_FAST_BOOLS: true - }); - model._ifcApi.StreamAllMeshes(modelID, mesh => { - const placedGeometries = mesh.geometries; - for (let i = 0; i < placedGeometries.size(); i++) { - const placedGeometry = placedGeometries.get(i); - const ifcGeometryData = model._ifcApi.GetGeometry(modelID, placedGeometry.geometryExpressID); - const ifcVertices = model._ifcApi.GetVertexArray(ifcGeometryData.GetVertexData(), ifcGeometryData.GetVertexDataSize()); - const ifcIndices = model._ifcApi.GetIndexArray(ifcGeometryData.GetIndexData(), ifcGeometryData.GetIndexDataSize()); - meshes.push({ - vertices: ifcVertices, - indices: ifcIndices, - color: placedGeometry.color, - userMatrix: placedGeometry.flatTransformation - }); - } - }); - model._ifcApi.CloseModel(modelID); - } - if (!model.dataAccessHelper) { - model.dataAccessHelper = DataAccessHelper.get('http'); - } - function fetchData(url) { - const { - compression, - progressCallback - } = model; - return model.dataAccessHelper.fetchBinary(url, { - compression, - progressCallback - }); - } - publicAPI.setUrl = function (url) { - let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { - binary: true - }; - model.url = url; - model.baseURL = url.split('/').slice(0, -1).join('/'); - model.compression = options.compression; - return publicAPI.loadData(options); - }; - publicAPI.loadData = function () { - return fetchData(model.url).then(publicAPI.parse); - }; - publicAPI.parse = content => { - publicAPI.parseAsArrayBuffer(content); - }; - publicAPI.parseAsArrayBuffer = content => { - if (!content) { - vtkErrorMacro('No content to parse.'); - return; - } - if (!WebIFC) { - vtkErrorMacro('vtkIFCImporter requires WebIFC API to be set.'); - return; - } - model._ifcApi = new WebIFC.IfcAPI(); - model._ifcApi.Init().then(() => { - parseIfc(content); - publicAPI.invokeReady(); - }); - }; - publicAPI.importActors = renderer => { - if (model.mergeGeometries) { - const opaqueMeshes = meshes.filter(mesh => mesh.color.w === 1); - const oapd = vtkAppendPolyData.newInstance(); - opaqueMeshes.forEach(mesh => { - const pd = createColoredPolyDataFromIFCMesh(mesh); - oapd.addInputData(pd); - }); - let mapper = vtkMapper.newInstance(); - mapper.setColorModeToDirectScalars(); - mapper.setInputConnection(oapd.getOutputPort()); - let actor = vtkActor.newInstance(); - actor.setMapper(mapper); - renderer.addActor(actor); - const transparentMeshes = meshes.filter(mesh => mesh.color.w < 1); - const tapd = vtkAppendPolyData.newInstance(); - transparentMeshes.forEach(mesh => { - const pd = createColoredPolyDataFromIFCMesh(mesh); - tapd.addInputData(pd); - }); - mapper = vtkMapper.newInstance(); - mapper.setColorModeToDirectScalars(); - mapper.setInputConnection(tapd.getOutputPort()); - actor = vtkActor.newInstance(); - actor.setMapper(mapper); - actor.getProperty().setOpacity(0.5); - renderer.addActor(actor); - } else { - meshes.forEach(mesh => { - const pd = createPolyDataFromIFCMesh(mesh); - const mapper = vtkMapper.newInstance(); - mapper.setInputData(pd); - const actor = vtkActor.newInstance(); - actor.setMapper(mapper); - const { - x, - y, - z, - w - } = mesh.color; - actor.getProperty().setColor(x, y, z); - actor.getProperty().setOpacity(w); - actor.setUserMatrix(mesh.userMatrix); - renderer.addActor(actor); - }); - } - }; -} -const DEFAULT_VALUES = { - mergeGeometries: false -}; -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['url', 'baseURL']); - macro.setGet(publicAPI, model, ['dataAccessHelper', 'mergeGeometries']); - macro.event(publicAPI, model, 'ready'); - macro.algo(publicAPI, model, 0, 1); - vtkIFCImporter(publicAPI, model); -} -const newInstance = macro.newInstance(extend, 'vtkIFCImporter'); -var vtkIFCImporter$1 = { - newInstance, - extend, - setIFCAPI -}; - -export { vtkIFCImporter$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/PLYReader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/PLYReader.d.ts deleted file mode 100644 index a97749dd..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/PLYReader.d.ts +++ /dev/null @@ -1,158 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { HtmlDataAccessHelper } from './../Core/DataAccessHelper/HtmlDataAccessHelper'; -import { HttpDataAccessHelper } from './../Core/DataAccessHelper/HttpDataAccessHelper'; -import { JSZipDataAccessHelper } from './../Core/DataAccessHelper/JSZipDataAccessHelper'; -import { LiteHttpDataAccessHelper } from './../Core/DataAccessHelper/LiteHttpDataAccessHelper'; - -interface IPLYReaderOptions { - binary?: boolean; - compression?: string; - progressCallback?: any; -} - -/** - * - */ -export interface IPLYReaderInitialValues { - /** - * Controls whether points are duplicated for face-texture mapping. - * Default is true. - */ - duplicatePointsForFaceTexture?: boolean; - - /** - * The tolerance used to determine if two points are the same. - * Default is 0.000001. - */ - faceTextureTolerance?: number; -} - -type vtkPLYReaderBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkPLYReader extends vtkPLYReaderBase { - /** - * - */ - getBaseURL(): string; - - /** - * - */ - getDataAccessHelper(): - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper; - - /** - * Controls whether points are duplicated for face-texture mapping. - */ - getDuplicatePointsForFaceTexture(): boolean; - - /** - * Get the tolerance used to determine if two points are the same. - */ - getFaceTextureTolerance(): number; - - /** - * Get the url of the object to load. - */ - getUrl(): string; - - /** - * Load the object data. - * @param {IPLYReaderOptions} [options] - */ - loadData(options?: IPLYReaderOptions): Promise; - - /** - * Parse data. - * @param {String | ArrayBuffer} content The content to parse. - */ - parse(content: string | ArrayBuffer): void; - - /** - * Parse data as ArrayBuffer. - * @param {ArrayBuffer} content The content to parse. - */ - parseAsArrayBuffer(content: ArrayBuffer): void; - - /** - * Parse data as text. - * @param {String} content The content to parse. - */ - parseAsText(content: string): void; - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * - * @param dataAccessHelper - */ - setDataAccessHelper( - dataAccessHelper: - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper - ): boolean; - - /** - * Set the url of the object to load. - * @param {String} url the url of the object to load. - * @param {IPLYReaderOptions} [option] The PLY reader options. - */ - setUrl(url: string, option?: IPLYReaderOptions): Promise; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkPLYReader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPLYReaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPLYReaderInitialValues -): void; - -/** - * Method used to create a new instance of vtkPLYReader - * @param {IPLYReaderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IPLYReaderInitialValues -): vtkPLYReader; - -/** - * vtkPLYReader is a source object that reads polygonal data in Stanford - * University PLY file format (see http://graphics.stanford.edu/data/3Dscanrep). - * It requires that the elements "vertex" and "face" are defined. The "vertex" - * element must have the properties "x", "y", and "z". The "face" element must - * have the property "vertex_indices" defined. Optionally, if the "face" element - * has the properties "intensity" and/or the triplet "red", "green", "blue", and - * optionally "alpha"; these are read and added as scalars to the output data. - * If the "face" element has the property "texcoord" a new TCoords point array - * is created and points are duplicated if they have 2 or more different texture - * coordinates. - */ -export declare const vtkPLYReader: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkPLYReader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/PLYReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/PLYReader.js deleted file mode 100644 index 24fbe668..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/PLYReader.js +++ /dev/null @@ -1,698 +0,0 @@ -import BinaryHelper from '../Core/BinaryHelper.js'; -import DataAccessHelper from '../Core/DataAccessHelper.js'; -import { m as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import '../Core/DataAccessHelper/LiteHttpDataAccessHelper.js'; - -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HttpDataAccessHelper'; // HTTP + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HtmlDataAccessHelper'; // html + base64 + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/JSZipDataAccessHelper'; // zip - -const PLYFormats = { - ASCII: 'ascii', - BINARY_BIG_ENDIAN: 'binary_big_endian', - BINARY_LITTLE_ENDIAN: 'binary_little_endian' -}; -const mapping = { - diffuse_red: 'red', - diffuse_green: 'green', - diffuse_blue: 'blue' -}; -const patterns = { - patternHeader: /ply([\s\S]*)end_header\r?\n/, - patternBody: /end_header\s([\s\S]*)$/ -}; -function parseHeader(data) { - let headerText = ''; - let headerLength = 0; - const result = patterns.patternHeader.exec(data); - if (result !== null) { - headerText = result[1]; - headerLength = result[0].length; - } - const header = { - comments: [], - elements: [], - headerLength - }; - const lines = headerText.split('\n'); - let elem; - let lineType; - let lineValues; - for (let i = 0; i < lines.length; i++) { - let line = lines[i]; - line = line.trim(); - if (line !== '') { - let property; - lineValues = line.split(/\s+/); - lineType = lineValues.shift(); - line = lineValues.join(' '); - switch (lineType) { - case 'format': - header.format = lineValues[0]; - header.version = lineValues[1]; - break; - case 'comment': - header.comments.push(line); - break; - case 'element': - if (elem !== undefined) { - header.elements.push(elem); - } - elem = {}; - elem.name = lineValues[0]; - elem.count = parseInt(lineValues[1], 10); - elem.properties = []; - break; - case 'property': - property = { - type: lineValues[0] - }; - if (property.type === 'list') { - property.name = lineValues[3]; - property.countType = lineValues[1]; - property.itemType = lineValues[2]; - } else { - property.name = lineValues[1]; - } - if (property.name in mapping) { - property.name = mapping[property.name]; - } - elem.properties.push(property); - break; - case 'obj_info': - header.objInfo = line; - break; - default: - console.warn('unhandled', lineType, lineValues); - break; - } - } - } - if (elem !== undefined) { - header.elements.push(elem); - } - return header; -} -function postProcess(buffer, elements, faceTextureTolerance, duplicatePointsForFaceTexture) { - const vertElement = elements.find(element => element.name === 'vertex'); - const faceElement = elements.find(element => element.name === 'face'); - let nbVerts = 0; - let nbFaces = 0; - if (vertElement) { - nbVerts = vertElement.count; - } - if (faceElement) { - nbFaces = faceElement.count; - } - let pointValues = new Float32Array(nbVerts * 3); - let colorArray = new Uint8Array(nbVerts * 3); - let tcoordsArray = new Float32Array(nbVerts * 2); - let normalsArray = new Float32Array(nbVerts * 3); - const hasColor = buffer.colors.length > 0; - const hasVertTCoords = buffer.uvs.length > 0; - const hasNorms = buffer.normals.length > 0; - const hasFaceTCoords = buffer.faceVertexUvs.length > 0; - - // For duplicate point handling - const pointIds = new Map(); // Maps texture coords to arrays of point IDs - let nextPointId = nbVerts; - - // Initialize base points - for (let vertIdx = 0; vertIdx < nbVerts; vertIdx++) { - let a = vertIdx * 3 + 0; - let b = vertIdx * 3 + 1; - const c = vertIdx * 3 + 2; - pointValues[a] = buffer.vertices[a]; - pointValues[b] = buffer.vertices[b]; - pointValues[c] = buffer.vertices[c]; - if (hasColor) { - colorArray[a] = buffer.colors[a]; - colorArray[b] = buffer.colors[b]; - colorArray[c] = buffer.colors[c]; - } - if (hasVertTCoords) { - a = vertIdx * 2 + 0; - b = vertIdx * 2 + 1; - tcoordsArray[a] = buffer.uvs[a]; - tcoordsArray[b] = buffer.uvs[b]; - } else { - // Initialize with sentinel value - tcoordsArray[vertIdx * 2] = -1; - tcoordsArray[vertIdx * 2 + 1] = -1; - } - if (hasNorms) { - normalsArray[a] = buffer.normals[a]; - normalsArray[b] = buffer.normals[b]; - normalsArray[c] = buffer.normals[c]; - } - } - - // Process face texture coordinates - if (hasFaceTCoords && !hasVertTCoords && nbFaces > 0) { - // don't use array.shift, because buffer.indices will be used later - let idxVerts = 0; - let idxCoord = 0; - if (duplicatePointsForFaceTexture) { - // Arrays to store duplicated point data - const extraPoints = []; - const extraColors = []; - const extraNormals = []; - const extraTCoords = []; - for (let faceIdx = 0; faceIdx < nbFaces; ++faceIdx) { - const nbFaceVerts = buffer.indices[idxVerts++]; - const texcoords = buffer.faceVertexUvs[idxCoord++]; - if (texcoords && nbFaceVerts * 2 === texcoords.length) { - for (let vertIdx = 0; vertIdx < nbFaceVerts; ++vertIdx) { - const vertId = buffer.indices[idxVerts + vertIdx]; - const newTex = [texcoords[vertIdx * 2], texcoords[vertIdx * 2 + 1]]; - const currentTex = [tcoordsArray[vertId * 2], tcoordsArray[vertId * 2 + 1]]; - if (currentTex[0] === -1) { - // First time seeing texture coordinates for this vertex - tcoordsArray[vertId * 2] = newTex[0]; - tcoordsArray[vertId * 2 + 1] = newTex[1]; - const key = `${newTex[0]},${newTex[1]}`; - if (!pointIds.has(key)) { - pointIds.set(key, []); - } - pointIds.get(key).push(vertId); - } else { - // Check if we need to duplicate the vertex - const needsDuplication = Math.abs(currentTex[0] - newTex[0]) > faceTextureTolerance || Math.abs(currentTex[1] - newTex[1]) > faceTextureTolerance; - if (needsDuplication) { - const key = `${newTex[0]},${newTex[1]}`; - let existingPointId = -1; - - // Check if we already have a point with these texture coordinates - if (pointIds.has(key)) { - const candidates = pointIds.get(key); - for (let i = 0, len = candidates.length; i < len; i++) { - const candidateId = candidates[i]; - const samePosition = Math.abs(pointValues[candidateId * 3] - pointValues[vertId * 3]) <= faceTextureTolerance && Math.abs(pointValues[candidateId * 3 + 1] - pointValues[vertId * 3 + 1]) <= faceTextureTolerance && Math.abs(pointValues[candidateId * 3 + 2] - pointValues[vertId * 3 + 2]) <= faceTextureTolerance; - if (samePosition) { - existingPointId = candidateId; - break; - } - } - } - if (existingPointId === -1) { - // Create new point - extraPoints.push(pointValues[vertId * 3], pointValues[vertId * 3 + 1], pointValues[vertId * 3 + 2]); - if (hasColor) { - extraColors.push(colorArray[vertId * 3], colorArray[vertId * 3 + 1], colorArray[vertId * 3 + 2]); - } - if (hasNorms) { - extraNormals.push(normalsArray[vertId * 3], normalsArray[vertId * 3 + 1], normalsArray[vertId * 3 + 2]); - } - extraTCoords.push(newTex[0], newTex[1]); - if (!pointIds.has(key)) { - pointIds.set(key, []); - } - pointIds.get(key).push(nextPointId); - buffer.indices[idxVerts + vertIdx] = nextPointId; - nextPointId++; - } else { - buffer.indices[idxVerts + vertIdx] = existingPointId; - } - } - } - } - } - idxVerts += nbFaceVerts; - } - - // Extend arrays with duplicated points if needed - if (extraPoints.length > 0) { - const newPointCount = nbVerts + extraPoints.length / 3; - const newPointValues = new Float32Array(newPointCount * 3); - const newTcoordsArray = new Float32Array(newPointCount * 2); - const newColorArray = hasColor ? new Uint8Array(newPointCount * 3) : null; - const newNormalsArray = hasNorms ? new Float32Array(newPointCount * 3) : null; - - // Copy existing data - newPointValues.set(pointValues); - newTcoordsArray.set(tcoordsArray); - if (hasColor && newColorArray) { - newColorArray.set(colorArray); - } - if (hasNorms && newNormalsArray) { - newNormalsArray.set(normalsArray); - } - - // Add new data - newPointValues.set(extraPoints, nbVerts * 3); - newTcoordsArray.set(extraTCoords, nbVerts * 2); - if (hasColor && newColorArray) { - newColorArray.set(extraColors, nbVerts * 3); - } - if (hasNorms && newNormalsArray) { - newNormalsArray.set(extraNormals, nbVerts * 3); - } - pointValues = newPointValues; - tcoordsArray = newTcoordsArray; - if (hasColor) { - colorArray = newColorArray; - } - if (hasNorms) { - normalsArray = newNormalsArray; - } - } - } else { - for (let faceIdx = 0; faceIdx < nbFaces; ++faceIdx) { - const nbFaceVerts = buffer.indices[idxVerts++]; - const texcoords = buffer.faceVertexUvs[idxCoord++]; - if (texcoords && nbFaceVerts * 2 === texcoords.length) { - for (let vertIdx = 0; vertIdx < nbFaceVerts; ++vertIdx) { - const vert = buffer.indices[idxVerts++]; - tcoordsArray[vert * 2] = texcoords[vertIdx * 2]; - tcoordsArray[vert * 2 + 1] = texcoords[vertIdx * 2 + 1]; - } - } else { - idxVerts += nbFaceVerts; - } - } - } - } - const polydata = vtkPolyData.newInstance(); - polydata.getPoints().setData(pointValues, 3); - - // If we have faces, add them as polys - if (nbFaces > 0) { - polydata.getPolys().setData(Uint32Array.from(buffer.indices)); - } else { - // Point cloud - create a vertex list containing all points - const verts = new Uint32Array(nbVerts * 2); - for (let i = 0; i < nbVerts; i++) { - verts[i * 2] = 1; // number of points in vertex cell (always 1) - verts[i * 2 + 1] = i; // point index - } - - polydata.getVerts().setData(verts); - } - if (hasColor) { - polydata.getPointData().setScalars(vtkDataArray.newInstance({ - numberOfComponents: 3, - values: colorArray, - name: 'RGB' - })); - } - if (hasVertTCoords || hasFaceTCoords) { - const da = vtkDataArray.newInstance({ - numberOfComponents: 2, - values: tcoordsArray, - name: 'TextureCoordinates' - }); - const cpd = polydata.getPointData(); - cpd.addArray(da); - cpd.setActiveTCoords(da.getName()); - } - if (hasNorms) { - polydata.getPointData().setNormals(vtkDataArray.newInstance({ - numberOfComponents: 3, - name: 'Normals', - values: normalsArray - })); - } - return polydata; -} -function parseNumber(n, type) { - let r; - switch (type) { - case 'char': - case 'uchar': - case 'short': - case 'ushort': - case 'int': - case 'uint': - case 'int8': - case 'uint8': - case 'int16': - case 'uint16': - case 'int32': - case 'uint32': - r = parseInt(n, 10); - break; - case 'float': - case 'double': - case 'float32': - case 'float64': - r = parseFloat(n); - break; - default: - console.log('Unsupported type'); - break; - } - return r; -} -function parseElement(properties, line) { - const values = line.split(/\s+/); - const element = {}; - for (let i = 0; i < properties.length; i++) { - if (properties[i].type === 'list') { - const list = []; - const n = parseNumber(values.shift(), properties[i].countType); - for (let j = 0; j < n; j++) { - list.push(parseNumber(values.shift(), properties[i].itemType)); - } - element[properties[i].name] = list; - } else { - element[properties[i].name] = parseNumber(values.shift(), properties[i].type); - } - } - return element; -} -function handleElement(buffer, name, element) { - if (name === 'vertex') { - buffer.vertices.push(element.x, element.y, element.z); - - // Normals - if ('nx' in element && 'ny' in element && 'nz' in element) { - buffer.normals.push(element.nx, element.ny, element.nz); - } - - // Uvs - if ('s' in element && 't' in element) { - buffer.uvs.push(element.s, element.t); - } else if ('u' in element && 'v' in element) { - buffer.uvs.push(element.u, element.v); - } else if ('texture_u' in element && 'texture_v' in element) { - buffer.uvs.push(element.texture_u, element.texture_v); - } - - // Colors - if ('red' in element && 'green' in element && 'blue' in element) { - buffer.colors.push(element.red, element.green, element.blue); - } - } else if (name === 'face') { - const vertexIndices = element.vertex_indices || element.vertex_index; - const texcoord = element.texcoord; - if (vertexIndices && vertexIndices.length > 0) { - buffer.indices.push(vertexIndices.length); - vertexIndices.forEach((val, idx) => { - buffer.indices.push(val); - }); - } - buffer.faceVertexUvs.push(texcoord); - } -} -function binaryRead(dataview, at, type, littleEndian) { - let r; - switch (type) { - case 'int8': - case 'char': - r = [dataview.getInt8(at), 1]; - break; - case 'uint8': - case 'uchar': - r = [dataview.getUint8(at), 1]; - break; - case 'int16': - case 'short': - r = [dataview.getInt16(at, littleEndian), 2]; - break; - case 'uint16': - case 'ushort': - r = [dataview.getUint16(at, littleEndian), 2]; - break; - case 'int32': - case 'int': - r = [dataview.getInt32(at, littleEndian), 4]; - break; - case 'uint32': - case 'uint': - r = [dataview.getUint32(at, littleEndian), 4]; - break; - case 'float32': - case 'float': - r = [dataview.getFloat32(at, littleEndian), 4]; - break; - case 'float64': - case 'double': - r = [dataview.getFloat64(at, littleEndian), 8]; - break; - default: - console.log('Unsupported type'); - break; - } - return r; -} -function binaryReadElement(dataview, at, properties, littleEndian) { - const element = {}; - let result; - let read = 0; - for (let i = 0; i < properties.length; i++) { - if (properties[i].type === 'list') { - const list = []; - result = binaryRead(dataview, at + read, properties[i].countType, littleEndian); - const n = result[0]; - read += result[1]; - for (let j = 0; j < n; j++) { - result = binaryRead(dataview, at + read, properties[i].itemType, littleEndian); - list.push(result[0]); - read += result[1]; - } - element[properties[i].name] = list; - } else { - result = binaryRead(dataview, at + read, properties[i].type, littleEndian); - element[properties[i].name] = result[0]; - read += result[1]; - } - } - return [element, read]; -} - -// ---------------------------------------------------------------------------- -// vtkPLYReader methods -// ---------------------------------------------------------------------------- - -function vtkPLYReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPLYReader'); - - // Create default dataAccessHelper if not available - if (!model.dataAccessHelper) { - model.dataAccessHelper = DataAccessHelper.get('http'); - } - - // Internal method to fetch Array - function fetchData(url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - const { - compression, - progressCallback - } = model; - if (option.binary) { - return model.dataAccessHelper.fetchBinary(url, { - compression, - progressCallback - }); - } - return model.dataAccessHelper.fetchText(publicAPI, url, { - compression, - progressCallback - }); - } - - // Set DataSet url - publicAPI.setUrl = function (url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { - binary: true - }; - model.url = url; - - // Remove the file in the URL - const path = url.split('/'); - path.pop(); - model.baseURL = path.join('/'); - model.compression = option.compression; - - // Fetch metadata - return publicAPI.loadData({ - progressCallback: option.progressCallback, - binary: !!option.binary - }); - }; - - // Fetch the actual data arrays - publicAPI.loadData = function () { - let option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - const promise = fetchData(model.url, option); - promise.then(publicAPI.parse); - return promise; - }; - publicAPI.parse = content => { - if (typeof content === 'string') { - publicAPI.parseAsText(content); - } else { - publicAPI.parseAsArrayBuffer(content); - } - }; - publicAPI.parseAsArrayBuffer = content => { - if (!content) { - return; - } - if (content !== model.parseData) { - publicAPI.modified(); - } else { - return; - } - - // Header - let text = content; - if (content instanceof ArrayBuffer) { - text = BinaryHelper.arrayBufferToString(content); - } - const header = parseHeader(text); - - // ascii/binary detection - const isBinary = header.format !== PLYFormats.ASCII; - - // Check if ascii format - if (!isBinary) { - publicAPI.parseAsText(text); - return; - } - model.parseData = content; - - // Binary parsing - const buffer = { - indices: [], - vertices: [], - normals: [], - uvs: [], - faceVertexUvs: [], - colors: [] - }; - const littleEndian = header.format === PLYFormats.BINARY_LITTLE_ENDIAN; - const arraybuffer = content instanceof ArrayBuffer ? content : content.buffer; - const body = new DataView(arraybuffer, header.headerLength); - let result; - let loc = 0; - for (let elem = 0; elem < header.elements.length; elem++) { - for (let idx = 0; idx < header.elements[elem].count; idx++) { - result = binaryReadElement(body, loc, header.elements[elem].properties, littleEndian); - loc += result[1]; - const element = result[0]; - handleElement(buffer, header.elements[elem].name, element); - } - } - const polydata = postProcess(buffer, header.elements, model.faceTextureTolerance, model.duplicatePointsForFaceTexture); - - // Add new output - model.output[0] = polydata; - }; - publicAPI.parseAsText = content => { - if (!content) { - return; - } - if (content !== model.parseData) { - publicAPI.modified(); - } else { - return; - } - model.parseData = content; - - // Header - let text = content; - if (content instanceof ArrayBuffer) { - text = BinaryHelper.arrayBufferToString(content); - } - const header = parseHeader(text); - - // ascii/binary detection - const isBinary = header.format !== PLYFormats.ASCII; - - // Check if ascii format - if (isBinary) { - publicAPI.parseAsArrayBuffer(content); - return; - } - - // Text parsing - const buffer = { - indices: [], - vertices: [], - normals: [], - uvs: [], - faceVertexUvs: [], - colors: [] - }; - const result = patterns.patternBody.exec(text); - let body = ''; - if (result !== null) { - body = result[1]; - } - const lines = body.split('\n'); - let elem = 0; - let idx = 0; - for (let i = 0; i < lines.length; i++) { - let line = lines[i]; - line = line.trim(); - if (line !== '') { - if (idx >= header.elements[elem].count) { - elem++; - idx = 0; - } - const element = parseElement(header.elements[elem].properties, line); - handleElement(buffer, header.elements[elem].name, element); - idx++; - } - } - const polydata = postProcess(buffer, header.elements, model.faceTextureTolerance, model.duplicatePointsForFaceTexture); - - // Add new output - model.output[0] = polydata; - }; - publicAPI.requestData = (inData, outData) => { - publicAPI.parse(model.parseData); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // baseURL: null, - // dataAccessHelper: null, - // url: null, - faceTextureTolerance: 1e-6, - duplicatePointsForFaceTexture: true -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['url', 'baseURL', 'duplicatePointsForFaceTexture', 'faceTextureTolerance']); - macro.setGet(publicAPI, model, ['dataAccessHelper']); - macro.algo(publicAPI, model, 0, 1); - - // vtkPLYReader methods - vtkPLYReader(publicAPI, model); - - // To support destructuring - if (!model.compression) { - model.compression = null; - } - if (!model.progressCallback) { - model.progressCallback = null; - } -} -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPLYReader'); - -// ---------------------------------------------------------------------------- - -var vtkPLYReader$1 = { - extend, - newInstance -}; - -export { vtkPLYReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/PLYWriter.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/PLYWriter.d.ts deleted file mode 100644 index b7870a44..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/PLYWriter.d.ts +++ /dev/null @@ -1,218 +0,0 @@ -import { mat4 } from 'gl-matrix'; -import vtkPolyData from './../../Common/DataModel/PolyData'; -import { vtkAlgorithm, vtkObject } from './../../interfaces'; - -export enum FormatTypes { - ASCII, - BINARY, -} - -export enum TextureCoordinatesName { - UV, - TEXTURE_UV, -} - -/** - * - */ -export interface IPLYWriterInitialValues { - format?: FormatTypes; - dataByteOrder?: number; - comments?: string[]; - textureFileName?: string; - textureCoordinatesName?: TextureCoordinatesName; - transform?: mat4; - withNormals?: boolean; - withUVs?: boolean; - withColors?: boolean; - withIndice?: boolean; -} - -type vtkPLYWriterBase = vtkObject & vtkAlgorithm; - -export interface vtkPLYWriter extends vtkPLYWriterBase { - /** - * Get byte order value. - */ - getDataByteOrder(): number; - - /** - * Get file format value. - */ - getFormat(): FormatTypes; - - /** - * Get header comments. - */ - getHeaderComments(): string[]; - - /** - * Get textures mapping coordinates format. - */ - getTextureCoordinatesName(): TextureCoordinatesName; - - /** - * Get texture filename. - */ - getTextureFileName(): string; - - /** - * Get transformation matrix. - */ - getTransform(): mat4; - - /** - * Get whether colors values are included. - */ - getWithColors(): boolean; - - /** - * Get whether indices are included. - */ - getWithIndices(): boolean; - - /** - * Get whether normals are included. - */ - getWithNormals(): boolean; - - /** - * Get textures mapping coordinates. - */ - getWithUVs(): boolean; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Set byte order. - * @param {Number} byteOrder Byte order. - */ - setDataByteOrder(byteOrder: number): boolean; - - /** - * Set file format. - * @param {FormatTypes} format File format. - */ - setFormat(format: FormatTypes): boolean; - - /** - * Set header comments. - * @param {String[]} headerComments Header comments. - */ - setHeaderComments(headerComments: string[]): boolean; - - /** - * Set textures coordinates format. - * @param {TextureCoordinatesName} textureCoordinatesName Textures mapping coordinates format. - */ - setTextureCoordinatesName( - textureCoordinatesName: TextureCoordinatesName - ): boolean; - - /** - * Set texture filename. - * @param {String} textureFileName Texture filename. - */ - setTextureFileName(textureFileName: string): boolean; - - /** - * Set tranformation matrix. - * @param {mat4} transform Tranformation matrix. - */ - setTransform(transform: mat4): boolean; - - /** - * Set colors values. - * @param {Boolean} withColors Include colors. - */ - setWithColors(withColors: boolean): boolean; - - /** - * Set indices values. - * @param {Boolean} withIndices Include indices. - */ - setWithIndices(withIndices: boolean): boolean; - - /** - * Set normals values. - * @param {Boolean} withNormals Include normals. - */ - setWithNormals(withNormals: boolean): boolean; - - /** - * Set UVs values. - * @param {Boolean} withUVs Include textures mapping coordinates. - */ - setWithUVs(withUVs: boolean): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkPLYWriter characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPLYWriterInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPLYWriterInitialValues -): void; - -/** - * Method used to create a new instance of vtkPLYWriter - * @param {IPLYWriterInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IPLYWriterInitialValues -): vtkPLYWriter; - -/** - * - * @param {vktPolyData} polyData - * @param {FormatTypes} [format] - * @param {Number} [dataByteOrder] - * @param {String[]} [comments] Header comments. - * @param {String} [textureFileName] Texture file n coordinates name. - * @param {TextureCoordinatesName} [textureCoordinatesName] Textures mapping coordinates format. - * @param {mat4} [transform] Tranformation matrix. - * @param {Boolean} [withNormals] Include normals. - * @param {Boolean} [withUVs] Include textures mapping coordinates. - * @param {Boolean} [withColors] Include colors. - * @param {Boolean} [withIndice] Include indice. - */ -export function writePLY( - polyData: vtkPolyData, - format?: FormatTypes, - dataByteOrder?: number, - comments?: string[], - textureFileName?: string, - textureCoordinatesName?: TextureCoordinatesName, - transform?: mat4, - withNormals?: boolean, - withUVs?: boolean, - withColors?: boolean, - withIndice?: boolean -): vtkPolyData; - -/** - * vtkPLYWriter writes polygonal data in Stanford University PLY format (see - * http://graphics.stanford.edu/data/3Dscanrep/). The data can be written in - * either binary (little or big endian) or ASCII representation. As for - * PointData and CellData, vtkPLYWriter cannot handle normals or vectors. It - * only handles RGB PointData and CellData. You need to set the name of the - * array (using SetName for the array and SetArrayName for the writer). If the - * array is not a vtkUnsignedCharArray with 3 or 4 components, you need to - * specify a vtkLookupTable to map the scalars to RGB. - */ -export declare const vtkPLYWriter: { - newInstance: typeof newInstance; - extend: typeof extend; - writePLY: typeof writePLY; -}; -export default vtkPLYWriter; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/PLYWriter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/PLYWriter.js deleted file mode 100644 index 820dad22..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/PLYWriter.js +++ /dev/null @@ -1,308 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { FormatTypes, TextureCoordinatesName } from './PLYWriter/Constants.js'; - -const { - vtkErrorMacro, - vtkWarningMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkPLYWriter methods -// ---------------------------------------------------------------------------- -const writeHeader = (polyData, fileFormat, fileType, headerComments, textureFileName, textureCoordinatesName, vertexCount, faceListLength, withNormals, withUVs, withColors, withIndices) => { - const isBinary = fileFormat !== FormatTypes.ASCII; - let format; - if (isBinary) { - format = fileType ? 'binary_little_endian' : 'binary_big_endian'; - } else format = 'ascii'; - headerComments.unshift('VTK.js generated PLY File'); - if (textureFileName) { - headerComments.push(`TextureFile ${textureFileName}`); - } - const commentElements = headerComments.map(comment => `comment ${comment}`).join('\n'); - const header = ['ply', `format ${format} 1.0`, `${commentElements}`, `element vertex ${vertexCount}`, 'property float x', 'property float y', 'property float z']; - - // normals - if (withNormals) { - header.push('property float nx', 'property float ny', 'property float nz'); - } - - // uvs - if (withUVs) { - header.push(`property float ${textureCoordinatesName[0]}`, `property float ${textureCoordinatesName[1]}`); - } - - // colors - if (withColors) { - header.push('property uchar red', 'property uchar green', 'property uchar blue'); - } - - // faces - if (withIndices) { - header.push(`element face ${faceListLength}`, 'property list uchar int vertex_indices'); - } - header.push('end_header\n'); - return header.join('\n'); -}; -const binaryWriter = () => { - let output; - let vOffset; - let fOffset; - const indexByteCount = 4; - let ft; - return { - init: polyData => {}, - writeHeader: (polyData, fileFormat, fileType, headerComments, textureFileName, textureCoordinatesName, numPts, numPolys, withNormals, withUVs, withColors, withIndices) => { - const vertexCount = polyData.getPoints().getNumberOfPoints(); - ft = fileType; - // 1 byte shape descriptor - // 3 vertex indices at ${indexByteCount} bytes - const faceListLength = withIndices ? numPolys * (indexByteCount * 3 + 1) : 0; - - // 3 position values at 4 bytes - // 3 normal values at 4 bytes - // 3 color channels with 1 byte - // 2 uv values at 4 bytes - const vertexListLength = vertexCount * (4 * 3 + (withNormals ? 4 * 3 : 0) + (withUVs ? 4 * 2 : 0) + (withColors ? 3 : 0)); - const header = writeHeader(polyData, fileFormat, fileType, headerComments, textureFileName, textureCoordinatesName, numPts, numPolys, withNormals, withUVs, withColors, withIndices); - const headerBin = new TextEncoder().encode(header); - output = new DataView(new ArrayBuffer(headerBin.length + vertexListLength + faceListLength)); - new Uint8Array(output.buffer).set(headerBin, 0); - vOffset = headerBin.length; - fOffset = vOffset + vertexListLength; - }, - writeVertice: (x, y, z, nx, ny, nz, u, v, r, g, b) => { - // xyz - output.setFloat32(vOffset, x, ft); - vOffset += 4; - output.setFloat32(vOffset, y, ft); - vOffset += 4; - output.setFloat32(vOffset, z, ft); - vOffset += 4; - // nxnynz - if (nx !== null && ny !== null && nz !== null) { - output.setFloat32(vOffset, nx, ft); - vOffset += 4; - output.setFloat32(vOffset, ny, ft); - vOffset += 4; - output.setFloat32(vOffset, nz, ft); - vOffset += 4; - } - // uv - if (u !== null && v !== null) { - output.setFloat32(vOffset, u, ft); - vOffset += 4; - output.setFloat32(vOffset, v, ft); - vOffset += 4; - } - // rgb - if (r !== null && g !== null && b !== null) { - output.setUint8(vOffset, r); - vOffset += 1; - output.setUint8(vOffset, g); - vOffset += 1; - output.setUint8(vOffset, b); - vOffset += 1; - } - }, - writeFace: (n, x, y, z) => { - output.setUint8(fOffset, n); - fOffset += 1; - output.setUint32(fOffset, x, ft); - fOffset += indexByteCount; - output.setUint32(fOffset, y, ft); - fOffset += indexByteCount; - output.setUint32(fOffset, z, ft); - fOffset += indexByteCount; - }, - writeFooter: polyData => {}, - getOutputData: () => output - }; -}; -const asciiWriter = () => { - let fileContent = ''; - return { - init: polyData => {}, - writeHeader: (polyData, fileFormat, fileType, headerComments, textureFileName, textureCoordinatesName, numPts, numPolys, withNormals, withUVs, withColors, withIndices) => { - fileContent += writeHeader(polyData, fileFormat, fileType, headerComments, textureFileName, textureCoordinatesName, numPts, numPolys, withNormals, withUVs, withColors, withIndices); - }, - writeVertice: (x, y, z, nx, ny, nz, u, v, r, g, b) => { - fileContent += `${x} ${y} ${z}`; - if (nx !== null && ny !== null && nz !== null) { - fileContent += ` ${nx} ${ny} ${nz}`; - } - if (u !== null && v !== null) { - fileContent += ` ${u} ${v}`; - } - if (r !== null && g !== null && b !== null) { - fileContent += ` ${r} ${g} ${b}`; - } - fileContent += '\n'; - }, - writeFace: (n, x, y, z) => { - fileContent += `${n} ${x} ${y} ${z}\n`; - }, - writeFooter: polyData => {}, - getOutputData: () => fileContent - }; -}; -function writePLY(polyData, format, dataByteOrder, headerComments, textureFileName, textureCoordinatesName, transform, withNormals, withUVs, withColors, withIndices) { - const inPts = polyData.getPoints(); - const polys = polyData.getPolys(); - if (inPts === null || polys === null) { - vtkErrorMacro('No data to write!'); - } - let writer = null; - if (format === FormatTypes.BINARY) { - writer = binaryWriter(); - } else if (format === FormatTypes.ASCII) { - writer = asciiWriter(); - } else { - vtkErrorMacro('Invalid type format'); - } - let tCoordsName = textureCoordinatesName; - if (typeof textureCoordinatesName === 'undefined') { - vtkWarningMacro('Invalid TextureCoordinatesName value, fallback to default uv values'); - tCoordsName = TextureCoordinatesName.UV; - } - writer.init(polyData); - const numPts = inPts.getNumberOfPoints(); - const numPolys = polys.getNumberOfCells(); - - // textureCoords / uvs - const textureCoords = polyData.getPointData().getTCoords(); - // eslint-disable-next-line no-param-reassign - withUVs = !(textureCoords === null); - - // scalars / colors - const scalars = polyData.getPointData().getScalars(); - // eslint-disable-next-line no-param-reassign - withColors = !(scalars === null); - const fileType = dataByteOrder ? 0 : 1; - writer.writeHeader(polyData, format, fileType, headerComments, textureFileName, tCoordsName, numPts, numPolys, withNormals, withUVs, withColors, withIndices); - const normals = polyData.getPointData().getNormals(); - - // points / vertices - for (let i = 0; i < numPts; i++) { - // eslint-disable-next-line prefer-const - let p = inPts.getPoint(i); - - // coords - // divide by 1 to remove trailing zeros - const x = p[0].toPrecision(6) / 1; - const y = p[1].toPrecision(6) / 1; - const z = p[2].toPrecision(6) / 1; - - // normals - let nx = null; - let ny = null; - let nz = null; - - // uvs - let u = null; - let v = null; - - // colors - let r = null; - let g = null; - let b = null; - if (textureCoords) { - u = textureCoords.getData()[i * 2]; - v = textureCoords.getData()[i * 2 + 1]; - } - if (scalars) { - r = scalars.getData()[i * 3]; - g = scalars.getData()[i * 3 + 1]; - b = scalars.getData()[i * 3 + 2]; - } - if (normals) { - nx = normals.getData()[i * 3]; - ny = normals.getData()[i * 3 + 1]; - nz = normals.getData()[i * 3 + 2]; - } - writer.writeVertice(x, y, z, nx, ny, nz, u, v, r, g, b); - } - - // polys / indices - const pd = polys.getData(); - for (let i = 0, l = pd.length; i < l; i += 4) { - writer.writeFace(pd[i + 0], pd[i + 1], pd[i + 2], pd[i + 3]); - } - writer.writeFooter(polyData); - return writer.getOutputData(); -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = { - writePLY -}; - -// ---------------------------------------------------------------------------- -// vtkPLYWriter methods -// ---------------------------------------------------------------------------- - -function vtkPLYWriter(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPLYWriter'); - publicAPI.requestData = (inData, outData) => { - const input = inData[0]; - if (!input || input.getClassName() !== 'vtkPolyData') { - vtkErrorMacro('Invalid or missing input'); - return; - } - outData[0] = writePLY(input, model.format, model.dataByteOrder, model.headerComments, model.textureFileName, model.textureCoordinatesName, model.transform, model.withNormals, model.withUVs, model.withColors, model.withIndices); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - format: FormatTypes.ASCII, - dataByteOrder: 0, - headerComments: [], - textureFileName: null, - textureCoordinatesName: TextureCoordinatesName.UV, - transform: null, - withNormals: true, - withUVs: true, - withColors: true, - withIndices: true -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - macro.setGet(publicAPI, model, ['format', 'dataByteOrder', - // binary_little_endian 0 binary_big_endian 1 - 'headerComments', 'textureFileName', 'textureCoordinatesName', 'transform', 'withNormals', 'withUVs', 'withColors', 'withIndices']); - - // Object specific methods - vtkPLYWriter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPLYWriter'); - -// ---------------------------------------------------------------------------- - -var vtkPLYWriter$1 = { - newInstance, - extend, - ...STATIC -}; - -export { STATIC, vtkPLYWriter$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/PLYWriter/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/PLYWriter/Constants.js deleted file mode 100644 index 798cbbd1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/PLYWriter/Constants.js +++ /dev/null @@ -1,19 +0,0 @@ -const FormatTypes = { - ASCII: 'ascii', - BINARY: 'binary' -}; - -/** - * Choose the name used for the texture coordinates. - * (u, v) or (texture_u, texture_v) - */ -const TextureCoordinatesName = { - UV: ['u', 'v'], - TEXTURE_UV: ['texture_u', 'texture_v'] -}; -var Constants = { - FormatTypes, - TextureCoordinatesName -}; - -export { FormatTypes, TextureCoordinatesName, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/STLReader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/STLReader.d.ts deleted file mode 100644 index da0588ee..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/STLReader.d.ts +++ /dev/null @@ -1,144 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { HtmlDataAccessHelper } from './../Core/DataAccessHelper/HtmlDataAccessHelper'; -import { HttpDataAccessHelper } from './../Core/DataAccessHelper/HttpDataAccessHelper'; -import { JSZipDataAccessHelper } from './../Core/DataAccessHelper/JSZipDataAccessHelper'; -import { LiteHttpDataAccessHelper } from './../Core/DataAccessHelper/LiteHttpDataAccessHelper'; - -interface ISTLReaderOptions { - binary?: boolean; - compression?: string; - progressCallback?: any; -} - -/** - * - */ -export interface ISTLReaderInitialValues {} - -type vtkSTLReaderBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkSTLReader extends vtkSTLReaderBase { - /** - * - */ - getBaseURL(): string; - - /** - * - */ - getDataAccessHelper(): - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper; - - /** - * Get the url of the object to load. - */ - getUrl(): string; - - /** - * Get tolerance when removeDuplicateVertices is set - */ - getRemoveDuplicateVertices(): number; - - /** - * Load the object data. - * @param {ISTLReaderOptions} [options] - */ - loadData(options?: ISTLReaderOptions): Promise; - - /** - * Parse data. - * @param {String | ArrayBuffer} content The content to parse. - */ - parse(content: string | ArrayBuffer): void; - - /** - * Parse data as ArrayBuffer. - * @param {ArrayBuffer} content The content to parse. - */ - parseAsArrayBuffer(content: ArrayBuffer): void; - - /** - * Parse data as text. - * @param {String} content The content to parse. - */ - parseAsText(content: string): void; - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * - * @param dataAccessHelper - */ - setDataAccessHelper( - dataAccessHelper: - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper - ): boolean; - - /** - * Set the url of the object to load. - * @param {String} url the url of the object to load. - * @param {ISTLReaderOptions} [option] The STL reader options. - */ - setUrl(url: string, option?: ISTLReaderOptions): Promise; - - /** - * Turn on/off automatic removeDuplicateVertices - * After reading the STL file, if `tolerance` is >= 0, then points with the same coordinates at 10 power tolerance are merged. - * For a smooth rendering, you might want to compute normals with vtkPolyDataNormals. - * - * @param {Number} tolerance - */ - setRemoveDuplicateVertices(tolerance: number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkSTLReader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ISTLReaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ISTLReaderInitialValues -): void; - -/** - * Method used to create a new instance of vtkSTLReader - * @param {ISTLReaderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ISTLReaderInitialValues -): vtkSTLReader; - -/** - * vtkSTLReader is a source object that reads ASCII or binary stereo lithography - * files (.stl files). The object automatically detects whether the file is - * ASCII or binary. .stl files are quite inefficient since they duplicate vertex - * definitions. - */ -export declare const vtkSTLReader: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkSTLReader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/STLReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/STLReader.js deleted file mode 100644 index 52cd8e3e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/STLReader.js +++ /dev/null @@ -1,391 +0,0 @@ -import BinaryHelper from '../Core/BinaryHelper.js'; -import DataAccessHelper from '../Core/DataAccessHelper.js'; -import { m as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import '../Core/DataAccessHelper/LiteHttpDataAccessHelper.js'; - -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HttpDataAccessHelper'; // HTTP + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HtmlDataAccessHelper'; // html + base64 + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/JSZipDataAccessHelper'; // zip - -const { - vtkErrorMacro -} = macro; -function parseHeader(headerString) { - const headerSubStr = headerString.split(' '); - const fieldValues = headerSubStr.filter(e => e.indexOf('=') > -1); - const header = {}; - for (let i = 0; i < fieldValues.length; ++i) { - const fieldValueStr = fieldValues[i]; - const fieldValueSubStr = fieldValueStr.split('='); - if (fieldValueSubStr.length === 2) { - header[fieldValueSubStr[0]] = fieldValueSubStr[1]; - } - } - return header; -} -function addValuesToArray(src, dst) { - for (let i = 0; i < src.length; i++) { - dst.push(src[i]); - } -} - -// facet normal ni nj nk -// outer loop -// vertex v1x v1y v1z -// vertex v2x v2y v2z -// vertex v3x v3y v3z -// endloop -// endfacet -function readTriangle(lines, offset, points, cellArray, cellNormals) { - const normalLine = lines[offset]; - if (normalLine === undefined) { - return -1; - } - if (normalLine.indexOf('endfacet') !== -1) { - return offset + 1; - } - if (normalLine.indexOf('facet') === -1) { - return offset + 1; // Move to next line - } - - let nbVertex = 0; - let nbConsumedLines = 2; - const firstVertexIndex = points.length / 3; - const normal = normalLine.split(/[ \t]+/).filter(i => i).slice(-3).map(Number); - addValuesToArray(normal, cellNormals); - while (lines[offset + nbConsumedLines].indexOf('vertex') !== -1) { - const line = lines[offset + nbConsumedLines]; - const coords = line.split(/[ \t]+/).filter(i => i).slice(-3).map(Number); - addValuesToArray(coords, points); - nbVertex++; - nbConsumedLines++; - } - cellArray.push(nbVertex); - for (let i = 0; i < nbVertex; i++) { - cellArray.push(firstVertexIndex + i); - } - while (lines[offset + nbConsumedLines] && lines[offset + nbConsumedLines].indexOf('endfacet') !== -1) { - nbConsumedLines++; - } - // +1 (endfacet) +1 (next facet) - return offset + nbConsumedLines + 2; -} - -// ---------------------------------------------------------------------------- -// vtkSTLReader methods -// ---------------------------------------------------------------------------- - -function vtkSTLReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkSTLReader'); - - // Create default dataAccessHelper if not available - if (!model.dataAccessHelper) { - model.dataAccessHelper = DataAccessHelper.get('http'); - } - - // Internal method to fetch Array - function fetchData(url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - const compression = option.compression !== undefined ? option.compression : model.compression; - const progressCallback = option.progressCallback !== undefined ? option.progressCallback : model.progressCallback; - if (option.binary) { - return model.dataAccessHelper.fetchBinary(url, { - compression, - progressCallback - }); - } - return model.dataAccessHelper.fetchText(publicAPI, url, { - compression, - progressCallback - }); - } - function removeDuplicateVertices(tolerance) { - const polydata = model.output[0]; - const points = polydata.getPoints().getData(); - const faces = polydata.getPolys().getData(); - if (!points || !faces) { - console.warn('No valid polydata.'); - return; - } - const vMap = new Map(); - const vIndexMap = new Map(); - let vInc = 0; - let pointsChanged = false; - for (let i = 0; i < points.length; i += 3) { - const k1 = (points[i] * 10 ** tolerance).toFixed(0); - const k2 = (points[i + 1] * 10 ** tolerance).toFixed(0); - const k3 = (points[i + 2] * 10 ** tolerance).toFixed(0); - const key = `${k1},${k2},${k3}`; - if (vMap.get(key) !== undefined) { - vIndexMap.set(i / 3, vMap.get(key)); - pointsChanged = true; - } else { - vIndexMap.set(i / 3, vInc); - vMap.set(key, vInc); - vInc++; - } - } - if (pointsChanged) { - const outVerts = new Float32Array(vMap.size * 3); - const keys = Array.from(vMap.keys()); - for (let i = 0; i < keys.length; i++) { - const k = keys[i]; - const j = vMap.get(k) * 3; - const coords = k.split(',').map(e => +e * 10 ** -tolerance); - outVerts[j] = coords[0]; - outVerts[j + 1] = coords[1]; - outVerts[j + 2] = coords[2]; - } - const outFaces = new Int32Array(faces.length); - for (let i = 0; i < faces.length; i += 4) { - outFaces[i] = 3; - outFaces[i + 1] = vIndexMap.get(faces[i + 1]); - outFaces[i + 2] = vIndexMap.get(faces[i + 2]); - outFaces[i + 3] = vIndexMap.get(faces[i + 3]); - } - polydata.getPoints().setData(outVerts); - polydata.getPolys().setData(outFaces); - polydata.modified(); - } - } - - // Set DataSet url - publicAPI.setUrl = function (url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { - binary: true - }; - model.url = url; - - // Remove the file in the URL - const path = url.split('/'); - path.pop(); - model.baseURL = path.join('/'); - - // Fetch metadata - return publicAPI.loadData(option); - }; - - // Fetch the actual data arrays - publicAPI.loadData = function () { - let option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - const promise = fetchData(model.url, option); - promise.then(publicAPI.parse); - return promise; - }; - publicAPI.parse = content => { - if (typeof content === 'string') { - publicAPI.parseAsText(content); - } else { - publicAPI.parseAsArrayBuffer(content); - } - }; - publicAPI.parseAsArrayBuffer = content => { - if (!content) { - return; - } - if (content !== model.parseData) { - publicAPI.modified(); - } else { - return; - } - model.parseData = content; - - // ascii/binary detection - let isBinary = false; - // 80=STL header, 4=uint32 of num of triangles (le) - const dview = new DataView(content, 0, 80 + 4); - const numTriangles = dview.getUint32(80, true); - // 50 bytes per triangle - isBinary = 84 + numTriangles * 50 === content.byteLength; - - // Check if ascii format - if (!isBinary) { - publicAPI.parseAsText(BinaryHelper.arrayBufferToString(content)); - return; - } - - // Binary parsing - // Header - const headerData = content.slice(0, 80); - const headerStr = BinaryHelper.arrayBufferToString(headerData); - const header = parseHeader(headerStr); - - // Data - const dataView = new DataView(content, 84); - // global.dataview = dataView; - const nbFaces = (content.byteLength - 84) / 50; - const pointValues = new Float32Array(nbFaces * 9); - const normalValues = new Float32Array(nbFaces * 3); - const cellValues = new Uint32Array(nbFaces * 4); - const cellDataValues = new Uint16Array(nbFaces); - let cellOffset = 0; - for (let faceIdx = 0; faceIdx < nbFaces; faceIdx++) { - const offset = faceIdx * 50; - normalValues[faceIdx * 3 + 0] = dataView.getFloat32(offset + 0, true); - normalValues[faceIdx * 3 + 1] = dataView.getFloat32(offset + 4, true); - normalValues[faceIdx * 3 + 2] = dataView.getFloat32(offset + 8, true); - pointValues[faceIdx * 9 + 0] = dataView.getFloat32(offset + 12, true); - pointValues[faceIdx * 9 + 1] = dataView.getFloat32(offset + 16, true); - pointValues[faceIdx * 9 + 2] = dataView.getFloat32(offset + 20, true); - pointValues[faceIdx * 9 + 3] = dataView.getFloat32(offset + 24, true); - pointValues[faceIdx * 9 + 4] = dataView.getFloat32(offset + 28, true); - pointValues[faceIdx * 9 + 5] = dataView.getFloat32(offset + 32, true); - pointValues[faceIdx * 9 + 6] = dataView.getFloat32(offset + 36, true); - pointValues[faceIdx * 9 + 7] = dataView.getFloat32(offset + 40, true); - pointValues[faceIdx * 9 + 8] = dataView.getFloat32(offset + 44, true); - cellValues[cellOffset++] = 3; - cellValues[cellOffset++] = faceIdx * 3 + 0; - cellValues[cellOffset++] = faceIdx * 3 + 1; - cellValues[cellOffset++] = faceIdx * 3 + 2; - cellDataValues[faceIdx] = dataView.getUint16(offset + 48, true); - } - - // Rotate points - const orientationField = 'SPACE'; - if (orientationField in header && header[orientationField] !== 'LPS') { - const XYZ = header[orientationField]; - const mat4 = new Float32Array(16); - mat4[15] = 1; - switch (XYZ[0]) { - case 'L': - mat4[0] = 1; - break; - case 'R': - mat4[0] = -1; - break; - default: - vtkErrorMacro(`Can not convert STL file from ${XYZ} to LPS space: ` + `permutations not supported. Use itk.js STL reader instead.`); - return; - } - switch (XYZ[1]) { - case 'P': - mat4[5] = 1; - break; - case 'A': - mat4[5] = -1; - break; - default: - vtkErrorMacro(`Can not convert STL file from ${XYZ} to LPS space: ` + `permutations not supported. Use itk.js STL reader instead.`); - return; - } - switch (XYZ[2]) { - case 'S': - mat4[10] = 1; - break; - case 'I': - mat4[10] = -1; - break; - default: - vtkErrorMacro(`Can not convert STL file from ${XYZ} to LPS space: ` + `permutations not supported. Use itk.js STL reader instead.`); - return; - } - vtkMatrixBuilder.buildFromDegree().setMatrix(mat4).apply(pointValues).apply(normalValues); - } - const polydata = vtkPolyData.newInstance(); - polydata.getPoints().setData(pointValues, 3); - polydata.getPolys().setData(cellValues); - polydata.getCellData().setScalars(vtkDataArray.newInstance({ - name: 'Attribute', - values: cellDataValues - })); - polydata.getCellData().setNormals(vtkDataArray.newInstance({ - name: 'Normals', - values: normalValues, - numberOfComponents: 3 - })); - - // Add new output - model.output[0] = polydata; - if (model.removeDuplicateVertices >= 0) { - removeDuplicateVertices(model.removeDuplicateVertices); - } - }; - publicAPI.parseAsText = content => { - if (!content) { - return; - } - if (content !== model.parseData) { - publicAPI.modified(); - } else { - return; - } - model.parseData = content; - const lines = content.split('\n'); - let offset = 1; - const points = []; - const cellArray = []; - const cellNormals = []; - while (offset !== -1) { - offset = readTriangle(lines, offset, points, cellArray, cellNormals); - } - const polydata = vtkPolyData.newInstance(); - polydata.getPoints().setData(Float32Array.from(points), 3); - polydata.getPolys().setData(Uint32Array.from(cellArray)); - polydata.getCellData().setNormals(vtkDataArray.newInstance({ - name: 'Normals', - values: Float32Array.from(cellNormals), - numberOfComponents: 3 - })); - - // Add new output - model.output[0] = polydata; - if (model.removeDuplicateVertices >= 0) { - removeDuplicateVertices(model.removeDuplicateVertices); - } - }; - publicAPI.requestData = (inData, outData) => { - publicAPI.parse(model.parseData); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // baseURL: null, - // dataAccessHelper: null, - // url: null, - removeDuplicateVertices: -1 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['url', 'baseURL']); - macro.setGet(publicAPI, model, ['dataAccessHelper', 'removeDuplicateVertices']); - macro.algo(publicAPI, model, 0, 1); - - // vtkSTLReader methods - vtkSTLReader(publicAPI, model); - - // To support destructuring - if (!model.compression) { - model.compression = null; - } - if (!model.progressCallback) { - model.progressCallback = null; - } -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSTLReader'); - -// ---------------------------------------------------------------------------- - -var vtkSTLReader$1 = { - extend, - newInstance -}; - -export { vtkSTLReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/STLWriter.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/STLWriter.d.ts deleted file mode 100644 index c59ccc8c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/STLWriter.d.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { mat4 } from 'gl-matrix'; -import vtkPolyData from './../../Common/DataModel/PolyData'; -import { vtkAlgorithm, vtkObject } from './../../interfaces'; - -export enum FormatTypes { - ASCII, - BINARY, -} - -/** - * - */ -export interface ISTLWriterInitialValues {} - -type vtkSTLWriterBase = vtkObject & vtkAlgorithm; - -export interface vtkSTLWriter extends vtkSTLWriterBase { - /** - * - */ - getFormat(): FormatTypes; - - /** - * - */ - getTransform(): mat4; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * - * @param {FormatTypes} format - */ - setFormat(format: FormatTypes): boolean; - - /** - * - * @param {mat4} transform Tranformation matrix. - */ - setTransform(transform: mat4): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkSTLWriter characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ISTLWriterInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ISTLWriterInitialValues -): void; - -/** - * Method used to create a new instance of vtkSTLWriter - * @param {ISTLWriterInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ISTLWriterInitialValues -): vtkSTLWriter; - -/** - * - * @param {vktPolyData} polyData - * @param {FormatTypes} [format] - * @param {mat4} [transform] - */ -export function writeSTL( - polyData: vtkPolyData, - format?: FormatTypes, - transform?: mat4 -): vtkPolyData; - -/** - * vtkSTLWriter writes stereo lithography (.stl) files in either ASCII or binary - * form. Stereo lithography files contain only triangles. Since VTK 8.1, this - * writer converts non-triangle polygons into triangles, so there is no longer a - * need to use vtkTriangleFilter prior to using this writer if the input - * contains polygons with more than three vertices. - */ -export declare const vtkSTLWriter: { - newInstance: typeof newInstance; - extend: typeof extend; - writeSTL: typeof writeSTL; -}; -export default vtkSTLWriter; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/STLWriter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/STLWriter.js deleted file mode 100644 index e1b5c959..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/STLWriter.js +++ /dev/null @@ -1,188 +0,0 @@ -import { vec3 } from 'gl-matrix'; -import { m as macro } from '../../macros2.js'; -import vtkTriangle from '../../Common/DataModel/Triangle.js'; -import { FormatTypes } from './STLWriter/Constants.js'; - -// @author: Thomas Beznik , with the help of Julien Finet (https://github.com/Kitware/vtk-js/issues/1442) -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -function writeFloatBinary(dataView, offset, float) { - dataView.setFloat32(offset, float.toPrecision(6), true); - return offset + 4; -} -function writeVectorBinary(dataView, offset, vector) { - let off = writeFloatBinary(dataView, offset, vector[0]); - off = writeFloatBinary(dataView, off, vector[1]); - return writeFloatBinary(dataView, off, vector[2]); -} - -// ---------------------------------------------------------------------------- -// vtkSTLWriter methods -// ---------------------------------------------------------------------------- - -const binaryWriter = () => { - let offset = 0; - let dataView = null; - return { - init: polyData => { - const polys = polyData.getPolys().getData(); - const buffer = new ArrayBuffer(80 + 4 + 50 * polys.length / 4); // buffer for the full file; size = header (80) + num cells (4) + 50 bytes per poly - dataView = new DataView(buffer); - }, - writeHeader: polyData => { - offset += 80; // Header is empty // TODO: could add date, version, package - - // First need to write the number of cells - dataView.setUint32(offset, polyData.getNumberOfCells(), true); - offset += 4; - }, - writeTriangle: (v1, v2, v3, dn) => { - offset = writeVectorBinary(dataView, offset, dn); - offset = writeVectorBinary(dataView, offset, v1); - offset = writeVectorBinary(dataView, offset, v2); - offset = writeVectorBinary(dataView, offset, v3); - offset += 2; // unused 'attribute byte count' is a Uint16 - }, - - writeFooter: polyData => {}, - getOutputData: () => dataView - }; -}; -const asciiWriter = () => { - let file = ''; - return { - init: polyData => {}, - writeHeader: polyData => { - file += 'solid ascii\n'; - }, - writeTriangle: (v1, v2, v3, dn) => { - file += ` facet normal ${dn[0].toPrecision(6)} ${dn[1].toPrecision(6)} ${dn[2].toPrecision(6)}\n`; - file += ' outer loop\n'; - file += ` vertex ${v1[0].toPrecision(6)} ${v1[1].toPrecision(6)} ${v1[2].toPrecision(6)}\n`; - file += ` vertex ${v2[0].toPrecision(6)} ${v2[1].toPrecision(6)} ${v2[2].toPrecision(6)}\n`; - file += ` vertex ${v3[0].toPrecision(6)} ${v3[1].toPrecision(6)} ${v3[2].toPrecision(6)}\n`; - file += ' endloop\n'; - file += ' endfacet\n'; - }, - writeFooter: polyData => { - file += 'endsolid\n'; - }, - getOutputData: () => file - }; -}; -function writeSTL(polyData) { - let format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : FormatTypes.BINARY; - let transform = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - let writer = null; - if (format === FormatTypes.BINARY) { - writer = binaryWriter(); - } else if (format === FormatTypes.ASCII) { - writer = asciiWriter(); - } else { - vtkErrorMacro('Invalid format type'); - } - writer.init(polyData); - writer.writeHeader(polyData); - const polys = polyData.getPolys().getData(); - const points = polyData.getPoints().getData(); - const strips = polyData.getStrips() ? polyData.getStrips().getData() : null; - const n = []; - let v1 = []; - let v2 = []; - let v3 = []; - - // Strips - if (strips && strips.length > 0) { - throw new Error('Unsupported strips'); - } - - // Polys - for (let i = 0; i < polys.length;) { - const pointNumber = polys[i++]; - if (pointNumber) { - v1 = [points[polys[i] * 3], points[polys[i] * 3 + 1], points[polys[i++] * 3 + 2]]; - v2 = [points[polys[i] * 3], points[polys[i] * 3 + 1], points[polys[i++] * 3 + 2]]; - v3 = [points[polys[i] * 3], points[polys[i] * 3 + 1], points[polys[i++] * 3 + 2]]; - if (transform) { - vec3.transformMat4(v1, v1, transform); - vec3.transformMat4(v2, v2, transform); - vec3.transformMat4(v3, v3, transform); - } - vtkTriangle.computeNormal(v1, v2, v3, n); - writer.writeTriangle(v1, v2, v3, n); - } - } - writer.writeFooter(polyData); - return writer.getOutputData(); -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = { - writeSTL -}; - -// ---------------------------------------------------------------------------- -// vtkSTLWriter methods -// ---------------------------------------------------------------------------- - -function vtkSTLWriter(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkSTLWriter'); - publicAPI.requestData = (inData, outData) => { - const input = inData[0]; - if (!input || input.getClassName() !== 'vtkPolyData') { - vtkErrorMacro('Invalid or missing input'); - return; - } - outData[0] = writeSTL(input, model.format, model.transform); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - format: FormatTypes.BINARY, - transform: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - macro.setGet(publicAPI, model, ['format', 'transform']); - - // Object specific methods - vtkSTLWriter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSTLWriter'); - -// ---------------------------------------------------------------------------- - -var vtkSTLWriter$1 = { - newInstance, - extend, - ...STATIC -}; - -export { STATIC, vtkSTLWriter$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/STLWriter/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/STLWriter/Constants.js deleted file mode 100644 index f04284a7..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Geometry/STLWriter/Constants.js +++ /dev/null @@ -1,9 +0,0 @@ -const FormatTypes = { - ASCII: 'ascii', - BINARY: 'binary' -}; -var Constants = { - FormatTypes -}; - -export { FormatTypes, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image.js deleted file mode 100644 index 0e5d6568..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image.js +++ /dev/null @@ -1,11 +0,0 @@ -import vtkHDRReader from './Image/HDRReader.js'; -import vtkTGAReader from './Image/TGAReader.js'; -import vtkTIFFReader from './Image/TIFFReader.js'; - -var index = { - vtkHDRReader, - vtkTGAReader, - vtkTIFFReader -}; - -export { index as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/HDRReader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/HDRReader.d.ts deleted file mode 100644 index 00638fdf..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/HDRReader.d.ts +++ /dev/null @@ -1,121 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { HtmlDataAccessHelper } from './../Core/DataAccessHelper/HtmlDataAccessHelper'; -import { HttpDataAccessHelper } from './../Core/DataAccessHelper/HttpDataAccessHelper'; -import { JSZipDataAccessHelper } from './../Core/DataAccessHelper/JSZipDataAccessHelper'; -import { LiteHttpDataAccessHelper } from './../Core/DataAccessHelper/LiteHttpDataAccessHelper'; - -interface IHDRReaderOptions { - compression?: string; - progressCallback?: any; -} - -/** - * - */ -export interface IHDRReaderInitialValues {} - -type vtkHDRReaderBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkHDRReader extends vtkHDRReaderBase { - /** - * Get the base url. - */ - getBaseURL(): string; - - /** - * Get the dataAccess helper. - */ - getDataAccessHelper(): - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper; - - /** - * Get the url of the object to load. - */ - getUrl(): string; - - /** - * Load the object data. - * @param {IHDRReaderOptions} [options] - */ - loadData(options?: IHDRReaderOptions): Promise; - - /** - * Parse data. - * @param {ArrayBuffer} content The content to parse. - */ - parse(content: ArrayBuffer): void; - - /** - * Parse data as ArrayBuffer. - * @param {ArrayBuffer} content The content to parse. - */ - parseAsArrayBuffer(content: ArrayBuffer): void; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * - * @param dataAccessHelper - */ - setDataAccessHelper( - dataAccessHelper: - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper - ): boolean; - - /** - * Set the url of the object to load. - * @param {String} url the url of the object to load. - * @param {IHDRReaderOptions} [option] The PLY reader options. - */ - setUrl(url: string, option?: IHDRReaderOptions): Promise; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkHDRReader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IHDRReaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IHDRReaderInitialValues -): void; - -/** - * Method used to create a new instance of vtkHDRReader - * @param {IHDRReaderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IHDRReaderInitialValues -): vtkHDRReader; - -/** - * vtkHDRReader is a source object that reads Radiance HDR files. - */ -export declare const vtkHDRReader: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkHDRReader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/HDRReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/HDRReader.js deleted file mode 100644 index a445675f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/HDRReader.js +++ /dev/null @@ -1,373 +0,0 @@ -import '../Core/DataAccessHelper/LiteHttpDataAccessHelper.js'; -import { m as macro } from '../../macros2.js'; -import DataAccessHelper from '../Core/DataAccessHelper.js'; -import { D as xyz2rgb } from '../../Common/Core/Math/index.js'; -import vtkImageData from '../../Common/DataModel/ImageData.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import { readLine, rgbe2float } from './HDRReader/Utils.js'; - -/* eslint-disable no-bitwise */ -const { - vtkErrorMacro -} = macro; -const FormatType = { - FORMAT_32BIT_RLE_RGBE: 0, - FORMAT_32BIT_RLE_XYZE: 1 -}; -const Patterns = { - magicToken: /^#\?(\S+)/, - gamma: /^\s*GAMMA\s*=\s*(\d+(\.\d+)?)\s*$/, - exposure: /^\s*EXPOSURE\s*=\s*(\d+(\.\d+)?)\s*$/, - format: /^\s*FORMAT=(\S+)\s*$/, - dimensions: /^\s*-Y\s+(\d+)\s+\+X\s+(\d+)\s*$/ -}; - -// ---------------------------------------------------------------------------- -// vtkHDRReader methods -// ---------------------------------------------------------------------------- - -function vtkHDRReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkHDRReader'); - - /** - * Reads header information from an RGBE texture stored in a native array. - * More information on this format are available here: - * https://en.wikipedia.org/wiki/RGBE_image_format - * - * @param {Uint8Array} uint8array The binary file stored in native array. - * @returns The header information. - */ - function readHeader(uint8array) { - // RGBE format header - const header = { - valid: 0, - string: '', - comments: '', - programtype: 'RGBE', - format: '', - gamma: 1.0, - exposure: 1.0, - pixelAspect: 1.0, - width: 0, - height: 0, - dataIndex: 0 - }; - let match; - let line = readLine(uint8array, 0); - match = line.match(Patterns.magicToken); - if (!match) { - throw new Error('Bad HDR Format.'); - } - header.programtype = match[1]; - header.string += `${line}\n`; - let lineIndex = 0; - do { - lineIndex += line.length + 1; - line = readLine(uint8array, lineIndex); - header.string += `${line}\n`; - if (line.charAt(0) === '#') { - header.comments += `${line}\n`; - // eslint-disable-next-line no-continue - continue; // comment line - } - - match = line.match(Patterns.gamma); - if (match) { - header.gamma = parseFloat(match[1]); - } - match = line.match(Patterns.exposure); - if (match) { - header.exposure = parseFloat(match[1]); - } - match = line.match(Patterns.format); - if (match) { - header.format = match[1]; - } - } while (line.length !== 0); - lineIndex += line.length + 1; - line = readLine(uint8array, lineIndex); - match = line.match(Patterns.dimensions); - if (match) { - header.height = parseInt(match[1], 10); - header.width = parseInt(match[2], 10); - } - if (header.width < 8 || header.width > 0x7fff) { - vtkErrorMacro('HDR Bad header format, unsupported size'); - } - lineIndex += line.length + 1; - header.dataIndex = lineIndex; - return header; - } - - /** - * - * @param {Uint8Array} uint8array - * @param {*} header - * @returns Float32Array - */ - function readRGBEPixelsNotRLE(uint8array, header) { - // this file is not run length encoded - // read values sequentially - - let numScanlines = header.height; - const scanlineWidth = header.width; - let a; - let b; - let c; - let d; - let i; - let dataIndex = header.dataIndex; - - // 3 channels of 4 bytes per pixel in float. - const resultBuffer = new ArrayBuffer(header.width * header.height * 4 * 3); - const resultArray = new Float32Array(resultBuffer); - - // read in each successive scanline - while (numScanlines > 0) { - for (i = 0; i < header.width; i++) { - a = uint8array[dataIndex++]; - b = uint8array[dataIndex++]; - c = uint8array[dataIndex++]; - d = uint8array[dataIndex++]; - const offset = (numScanlines - 1) * scanlineWidth * 3 + i * 3; - let output = []; - const input = [a, b, c, d]; - if (model.format === FormatType.FORMAT_32BIT_RLE_XYZE) { - // convert from XYZE to RGBE - xyz2rgb(input, output); - } else { - output = rgbe2float(input, model.exposure); - } - resultArray[offset] = output[0]; - resultArray[offset + 1] = output[1]; - resultArray[offset + 2] = output[2]; - } - numScanlines--; - } - return resultArray; - } - - /** - * - * @param {Uint8Array} uint8array - * @param {*} header - * @returns Float32Array - */ - function readRGBEPixelsRLE(uint8array, header) { - let numScanlines = header.height; - const scanlineWidth = header.width; - let a; - let b; - let c; - let d; - let count; - let dataIndex = header.dataIndex; - let index = 0; - let endIndex = 0; - let i = 0; - const scanLineArrayBuffer = new ArrayBuffer(scanlineWidth * 4); // four channel R G B E - const scanLineArray = new Uint8Array(scanLineArrayBuffer); - - // 3 channels of 4 bytes per pixel in float. - const resultBuffer = new ArrayBuffer(header.width * header.height * 4 * 3); - const resultArray = new Float32Array(resultBuffer); - - // read in each successive scanline - while (numScanlines > 0) { - a = uint8array[dataIndex++]; - b = uint8array[dataIndex++]; - c = uint8array[dataIndex++]; - d = uint8array[dataIndex++]; - if (a !== 2 || b !== 2 || c & 0x80 || header.width < 8 || header.width > 32767) { - return readRGBEPixelsNotRLE(uint8array, header); - } - if ((c << 8 | d) !== scanlineWidth) { - vtkErrorMacro('HDR Bad header format, wrong scan line width'); - } - index = 0; - - // read each of the four channels for the scanline into the buffer - for (i = 0; i < 4; i++) { - endIndex = (i + 1) * scanlineWidth; - while (index < endIndex) { - a = uint8array[dataIndex++]; - b = uint8array[dataIndex++]; - if (a > 128) { - // A run of the same value - count = a - 128; - if (count === 0 || count > endIndex - index) { - vtkErrorMacro('HDR Bad Format, bad scanline data (run)'); - } - while (count-- > 0) { - scanLineArray[index++] = b; - } - } else { - // A non run - count = a; - if (count === 0 || count > endIndex - index) { - vtkErrorMacro('HDR Bad Format, bad scanline data (non-run)'); - } - scanLineArray[index++] = b; - if (--count > 0) { - for (let j = 0; j < count; j++) { - scanLineArray[index++] = uint8array[dataIndex++]; - } - } - } - } - } - - // now convert data from buffer into floats - for (i = 0; i < scanlineWidth; i++) { - a = scanLineArray[i]; - b = scanLineArray[i + scanlineWidth]; - c = scanLineArray[i + 2 * scanlineWidth]; - d = scanLineArray[i + 3 * scanlineWidth]; - const offset = (numScanlines - 1) * scanlineWidth * 3 + i * 3; - let output = []; - const input = [a, b, c, d]; - if (model.format === FormatType.FORMAT_32BIT_RLE_XYZE) { - // convert from XYZE to RGBE - xyz2rgb(input, output); - } else { - output = rgbe2float(input, model.exposure); - } - resultArray[offset] = output[0]; - resultArray[offset + 1] = output[1]; - resultArray[offset + 2] = output[2]; - } - numScanlines--; - } - return resultArray; - } - - // Create default dataAccessHelper if not available - if (!model.dataAccessHelper) { - model.dataAccessHelper = DataAccessHelper.get('http'); - } - - // Internal method to fetch Array - function fetchData(url) { - const { - compression, - progressCallback - } = model; - return model.dataAccessHelper.fetchBinary(url, { - compression, - progressCallback - }); - } - - // Set DataSet url - publicAPI.setUrl = function (url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { - binary: true - }; - model.url = url; - - // Remove the file in the URL - const path = url.split('/'); - path.pop(); - model.baseURL = path.join('/'); - model.compression = option.compression; - - // Fetch metadata - return publicAPI.loadData({ - progressCallback: option.progressCallback - }); - }; - - // Fetch the actual data arrays - publicAPI.loadData = function () { - const promise = fetchData(model.url); - promise.then(publicAPI.parse); - return promise; - }; - publicAPI.parse = content => { - publicAPI.parseAsArrayBuffer(content); - }; - publicAPI.parseAsArrayBuffer = content => { - if (!content) { - return; - } - model.parseData = content; - const data = new Uint8Array(model.parseData); - const header = readHeader(data); - if (header.format === '32-bit_rle_rgbe') { - model.format = FormatType.FORMAT_32BIT_RLE_RGBE; - } else if (header.format === '32-bit_rle_xyze') { - model.format = FormatType.FORMAT_32BIT_RLE_XYZE; - } - model.gamma = header.gamma; - model.exposure = header.exposure; - model.pixelAspect = header.pixelAspect; - const output = readRGBEPixelsRLE(data, header); - const dataExtent = [0, header.width - 1, 0, header.height - 1]; - const dataSpacing = [1, header.pixelAspect, 1]; - const imageData = vtkImageData.newInstance(); - imageData.setDimensions(header.width, header.height, 1); - imageData.setExtent(dataExtent); - imageData.setSpacing(dataSpacing); - const dataArray = vtkDataArray.newInstance({ - name: 'HDRImage', - numberOfComponents: 3, - values: output - }); - imageData.getPointData().setScalars(dataArray); - model.output[0] = imageData; - }; - publicAPI.requestData = (inData, outData) => { - publicAPI.parse(model.parseData); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - gamma: 1.0, - exposure: 1.0, - pixelAspect: 1.0, - format: FormatType.FORMAT_32BIT_RLE_RGBE -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 0, 1); - macro.get(publicAPI, model, ['gamma', 'exposure', 'pixelAspect', 'url', 'baseURL']); - macro.setGet(publicAPI, model, ['dataAccessHelper']); - - // Object specific methods - vtkHDRReader(publicAPI, model); - - // To support destructuring - if (!model.compression) { - model.compression = null; - } - if (!model.progressCallback) { - model.progressCallback = null; - } -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkHDRReader'); - -// ---------------------------------------------------------------------------- - -var vtkHDRReader$1 = { - newInstance, - extend -}; - -export { vtkHDRReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/HDRReader/Utils.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/HDRReader/Utils.js deleted file mode 100644 index b29dd61d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/HDRReader/Utils.js +++ /dev/null @@ -1,44 +0,0 @@ -import { C as ldexp } from '../../../Common/Core/Math/index.js'; - -/** - * Read a line from a Uint8Array - * @param {Uint8Array} uint8array - * @param {number} startIndex - * @returns string - */ -function readLine(uint8array, startIndex) { - let line = ''; - let character = ''; - for (let i = startIndex; i < uint8array.length - startIndex; i++) { - character = String.fromCharCode(uint8array[i]); - if (character === '\n') { - break; - } - line += character; - } - return line; -} - -/** - * Convert rgbe to float - * @param {Array} rgbe The rgbe array - * @param {Array} floats The output array - * @param {number} exposure The exposure value - */ -function rgbe2float(rgbe, exposure) { - let floats = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; - if (rgbe[3] > 0) { - /* nonzero pixel */ - const f = ldexp(1.0, rgbe[3] - (128 + 8)) / exposure; - floats[0] = rgbe[0] * f; - floats[1] = rgbe[1] * f; - floats[2] = rgbe[2] * f; - } else { - floats[0] = 0; - floats[1] = 0; - floats[2] = 0; - } - return floats; -} - -export { readLine, rgbe2float }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/TGAReader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/TGAReader.d.ts deleted file mode 100644 index 02c8e76b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/TGAReader.d.ts +++ /dev/null @@ -1,121 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { HtmlDataAccessHelper } from './../Core/DataAccessHelper/HtmlDataAccessHelper'; -import { HttpDataAccessHelper } from './../Core/DataAccessHelper/HttpDataAccessHelper'; -import { JSZipDataAccessHelper } from './../Core/DataAccessHelper/JSZipDataAccessHelper'; -import { LiteHttpDataAccessHelper } from './../Core/DataAccessHelper/LiteHttpDataAccessHelper'; - -interface ITGAReaderOptions { - compression?: string; - progressCallback?: any; -} - -/** - * - */ -export interface ITGAReaderInitialValues {} - -type vtkTGAReaderBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkTGAReader extends vtkTGAReaderBase { - /** - * Get the base url. - */ - getBaseURL(): string; - - /** - * Get the dataAccess helper. - */ - getDataAccessHelper(): - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper; - - /** - * Get the url of the object to load. - */ - getUrl(): string; - - /** - * Load the object data. - * @param {ITGAReaderOptions} [options] - */ - loadData(options?: ITGAReaderOptions): Promise; - - /** - * Parse data. - * @param {ArrayBuffer} content The content to parse. - */ - parse(content: ArrayBuffer): void; - - /** - * Parse data as ArrayBuffer. - * @param {ArrayBuffer} content The content to parse. - */ - parseAsArrayBuffer(content: ArrayBuffer): void; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * - * @param dataAccessHelper - */ - setDataAccessHelper( - dataAccessHelper: - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper - ): boolean; - - /** - * Set the url of the object to load. - * @param {String} url the url of the object to load. - * @param {ITGAReaderOptions} [option] The PLY reader options. - */ - setUrl(url: string, option?: ITGAReaderOptions): Promise; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkTGAReader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ITGAReaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ITGAReaderInitialValues -): void; - -/** - * Method used to create a new instance of vtkTGAReader - * @param {ITGAReaderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ITGAReaderInitialValues -): vtkTGAReader; - -/** - * vtkTGAReader is a source object that reads Truevision Targa(TGA) files. - */ -export declare const vtkTGAReader: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkTGAReader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/TGAReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/TGAReader.js deleted file mode 100644 index 2786c072..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/TGAReader.js +++ /dev/null @@ -1,418 +0,0 @@ -import '../Core/DataAccessHelper/LiteHttpDataAccessHelper.js'; -import { m as macro } from '../../macros2.js'; -import DataAccessHelper from '../Core/DataAccessHelper.js'; -import vtkImageData from '../../Common/DataModel/ImageData.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import Constants from './TGAReader/Constants.js'; - -/* eslint-disable no-bitwise */ -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkTGAReader methods -// ---------------------------------------------------------------------------- - -function vtkTGAReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkTGAReader'); - - // Create default dataAccessHelper if not available - if (!model.dataAccessHelper) { - model.dataAccessHelper = DataAccessHelper.get('http'); - } - - /** - * Gets the header of a TGA file - * @param data defines the TGA data - * @returns the header - */ - function parseHeader(data) { - let offset = 0; - const header = { - idLength: data[offset++], - colormap_type: data[offset++], - imageType: data[offset++], - colormapIndex: data[offset++] | data[offset++] << 8, - colormapLength: data[offset++] | data[offset++] << 8, - colormapSize: data[offset++], - origin: [data[offset++] | data[offset++] << 8, data[offset++] | data[offset++] << 8], - width: data[offset++] | data[offset++] << 8, - height: data[offset++] | data[offset++] << 8, - pixelSize: data[offset++], - flags: data[offset++] - }; - return header; - } - const handlers = { - getImageData8bits(header, palettes, pixeData, yStart, yStep, yEnd, xStart, xStep, xEnd) { - const image = pixeData; - const colormap = palettes; - const width = header.width; - const height = header.height; - let color; - let i = 0; - let x; - let y; - const imageData = new Uint8Array(width * height * 4); - for (y = yStart; y !== yEnd; y += yStep) { - for (x = xStart; x !== xEnd; x += xStep, i++) { - color = image[i]; - imageData[(x + width * y) * 4 + 3] = 255; - imageData[(x + width * y) * 4 + 2] = colormap[color * 3 + 0]; - imageData[(x + width * y) * 4 + 1] = colormap[color * 3 + 1]; - imageData[(x + width * y) * 4 + 0] = colormap[color * 3 + 2]; - } - } - return imageData; - }, - getImageData16bits(header, palettes, pixeData, yStart, yStep, yEnd, xStart, xStep, xEnd) { - const image = pixeData; - const width = header.width; - const height = header.height; - let color; - let i = 0; - let x; - let y; - const imageData = new Uint8Array(width * height * 4); - for (y = yStart; y !== yEnd; y += yStep) { - for (x = xStart; x !== xEnd; x += xStep, i += 2) { - color = image[i + 0] + (image[i + 1] << 8); // Inversed ? - const r = ((color & 0x7c00) >> 10) * 255 / 0x1f | 0; - const g = ((color & 0x03e0) >> 5) * 255 / 0x1f | 0; - const b = (color & 0x001f) * 255 / 0x1f | 0; - imageData[(x + width * y) * 4 + 0] = r; - imageData[(x + width * y) * 4 + 1] = g; - imageData[(x + width * y) * 4 + 2] = b; - imageData[(x + width * y) * 4 + 3] = color & 0x8000 ? 0 : 255; - } - } - return imageData; - }, - getImageData24bits(header, palettes, pixeData, yStart, yStep, yEnd, xStart, xStep, xEnd) { - const image = pixeData; - const width = header.width; - const height = header.height; - let i = 0; - let x; - let y; - const imageData = new Uint8Array(width * height * 4); - for (y = yStart; y !== yEnd; y += yStep) { - for (x = xStart; x !== xEnd; x += xStep, i += 3) { - imageData[(x + width * y) * 4 + 3] = 255; - imageData[(x + width * y) * 4 + 2] = image[i + 0]; - imageData[(x + width * y) * 4 + 1] = image[i + 1]; - imageData[(x + width * y) * 4 + 0] = image[i + 2]; - } - } - return imageData; - }, - getImageData32bits(header, palettes, pixeData, yStart, yStep, yEnd, xStart, xStep, xEnd) { - const image = pixeData; - const width = header.width; - const height = header.height; - let i = 0; - let x; - let y; - const imageData = new Uint8Array(width * height * 4); - for (y = yStart; y !== yEnd; y += yStep) { - for (x = xStart; x !== xEnd; x += xStep, i += 4) { - imageData[(x + width * y) * 4 + 2] = image[i + 0]; - imageData[(x + width * y) * 4 + 1] = image[i + 1]; - imageData[(x + width * y) * 4 + 0] = image[i + 2]; - imageData[(x + width * y) * 4 + 3] = image[i + 3]; - } - } - return imageData; - }, - getImageDataGrey8bits(header, palettes, pixeData, yStart, yStep, yEnd, xStart, xStep, xEnd) { - const image = pixeData; - const width = header.width; - const height = header.height; - let color; - let i = 0; - let x; - let y; - const imageData = new Uint8Array(width * height * 4); - for (y = yStart; y !== yEnd; y += yStep) { - for (x = xStart; x !== xEnd; x += xStep, i++) { - color = image[i]; - imageData[(x + width * y) * 4 + 0] = color; - imageData[(x + width * y) * 4 + 1] = color; - imageData[(x + width * y) * 4 + 2] = color; - imageData[(x + width * y) * 4 + 3] = 255; - } - } - return imageData; - }, - getImageDataGrey16bits(header, palettes, pixeData, yStart, yStep, yEnd, xStart, xStep, xEnd) { - const image = pixeData; - const width = header.width; - const height = header.height; - let i = 0; - let x; - let y; - const imageData = new Uint8Array(width * height * 4); - for (y = yStart; y !== yEnd; y += yStep) { - for (x = xStart; x !== xEnd; x += xStep, i += 2) { - imageData[(x + width * y) * 4 + 0] = image[i + 0]; - imageData[(x + width * y) * 4 + 1] = image[i + 0]; - imageData[(x + width * y) * 4 + 2] = image[i + 0]; - imageData[(x + width * y) * 4 + 3] = image[i + 1]; - } - } - return imageData; - } - }; - - // Internal method to fetch Array - function fetchData(url) { - const { - compression, - progressCallback - } = model; - return model.dataAccessHelper.fetchBinary(url, { - compression, - progressCallback - }); - } - - // Set DataSet url - publicAPI.setUrl = function (url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { - binary: true - }; - model.url = url; - - // Remove the file in the URL - const path = url.split('/'); - path.pop(); - model.baseURL = path.join('/'); - model.compression = option.compression; - - // Fetch metadata - return publicAPI.loadData({ - progressCallback: option.progressCallback - }); - }; - - // Fetch the actual data arrays - publicAPI.loadData = function () { - const promise = fetchData(model.url); - promise.then(publicAPI.parse); - return promise; - }; - publicAPI.parse = content => { - publicAPI.parseAsArrayBuffer(content); - }; - publicAPI.parseAsArrayBuffer = content => { - if (!content) { - return; - } - const data = new Uint8Array(content); - // Not enough data to contain header ? - if (data.length < 19) { - vtkErrorMacro('Unable to load TGA file - Not enough data to contain header'); - return; - } - - // Read Header - let offset = 18; - const header = parseHeader(data); - - // Assume it's a valid Targa file. - if (header.idLength + offset > data.length) { - vtkErrorMacro('Unable to load TGA file - Not enough data'); - return; - } - - // Skip not needed data - offset += header.idLength; - let useRle = false; - let usePal = false; - let useGrey = false; - - // Get some informations. - switch (header.imageType) { - case Constants.TYPE_RLE_INDEXED: - useRle = true; - // eslint-disable-next-line no-fallthrough - case Constants.TYPE_INDEXED: - usePal = true; - break; - case Constants.TYPE_RLE_RGB: - useRle = true; - // eslint-disable-next-line no-fallthrough - case Constants.TYPE_RGB: - // use_rgb = true; - break; - case Constants.TYPE_RLE_GREY: - useRle = true; - // eslint-disable-next-line no-fallthrough - case Constants.TYPE_GREY: - useGrey = true; - break; - default: - vtkErrorMacro('TGA file has unknown image type'); - return; - } - let pixelData; - const pixelSize = header.pixelSize >> 3; - const pixelTotal = header.width * header.height * pixelSize; - - // Read palettes - let palettes; - if (usePal) { - palettes = data.subarray(offset, offset += header.colormapLength * (header.colormapSize >> 3)); - } - - // Read LRE - if (useRle) { - pixelData = new Uint8Array(pixelTotal); - let c; - let count; - let i; - let localOffset = 0; - const pixels = new Uint8Array(pixelSize); - while (offset < pixelTotal && localOffset < pixelTotal) { - c = data[offset++]; - count = (c & 0x7f) + 1; - - // RLE pixels - if (c & 0x80) { - // Bind pixel tmp array - for (i = 0; i < pixelSize; ++i) { - pixels[i] = data[offset++]; - } - - // Copy pixel array - for (i = 0; i < count; ++i) { - pixelData.set(pixels, localOffset + i * pixelSize); - } - localOffset += pixelSize * count; - } - // Raw pixels - else { - count *= pixelSize; - for (i = 0; i < count; ++i) { - pixelData[localOffset + i] = data[offset++]; - } - localOffset += count; - } - } - } - // RAW Pixels - else { - pixelData = data.subarray(offset, offset += usePal ? header.width * header.height : pixelTotal); - } - - // Load to texture - let xStart; - let yStart; - let xStep; - let yStep; - let yEnd; - let xEnd; - switch ((header.flags & Constants.ORIGIN_MASK) >> Constants.ORIGIN_SHIFT) { - case Constants.ORIGIN_UL: - xStart = 0; - xStep = 1; - xEnd = header.width; - yStart = 0; - yStep = 1; - yEnd = header.height; - break; - case Constants.ORIGIN_BL: - xStart = 0; - xStep = 1; - xEnd = header.width; - yStart = 0; - yStep = 1; - yEnd = header.height; - break; - case Constants.ORIGIN_UR: - xStart = header.width - 1; - xStep = -1; - xEnd = -1; - yStart = 0; - yStep = 1; - yEnd = header.height; - break; - case Constants.ORIGIN_BR: - xStart = header.width - 1; - xStep = -1; - xEnd = -1; - yStart = header.height - 1; - yStep = -1; - yEnd = -1; - break; - default: - vtkErrorMacro('TGA file has unknown origin'); - return; - } - const func = `getImageData${useGrey ? 'Grey' : ''}${header.pixelSize}bits`; - const output = handlers[func](header, palettes, pixelData, yStart, yStep, yEnd, xStart, xStep, xEnd); - const dataExtent = [0, header.width - 1, 0, header.height - 1]; - const dataSpacing = [1, 1, 1]; - const imageData = vtkImageData.newInstance(); - imageData.setDimensions(header.width, header.height, 1); - imageData.setExtent(dataExtent); - imageData.setSpacing(dataSpacing); - const dataArray = vtkDataArray.newInstance({ - name: 'TGAImage', - numberOfComponents: 4, - values: output - }); - imageData.getPointData().setScalars(dataArray); - model.output[0] = imageData; - }; - publicAPI.requestData = (inData, outData) => { - publicAPI.parse(model.parseData); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 0, 1); - macro.get(publicAPI, model, ['url', 'baseURL']); - macro.setGet(publicAPI, model, ['dataAccessHelper']); - - // Object specific methods - vtkTGAReader(publicAPI, model); - - // To support destructuring - if (!model.compression) { - model.compression = null; - } - if (!model.progressCallback) { - model.progressCallback = null; - } -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkTGAReader'); - -// ---------------------------------------------------------------------------- - -var vtkTGAReader$1 = { - newInstance, - extend -}; - -export { vtkTGAReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/TGAReader/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/TGAReader/Constants.js deleted file mode 100644 index fb25e9b0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/TGAReader/Constants.js +++ /dev/null @@ -1,28 +0,0 @@ -const TYPE_INDEXED = 1; -const TYPE_RGB = 2; -const TYPE_GREY = 3; -const TYPE_RLE_INDEXED = 9; -const TYPE_RLE_RGB = 10; -const TYPE_RLE_GREY = 11; -const ORIGIN_MASK = 0x30; -const ORIGIN_SHIFT = 0x04; -const ORIGIN_BL = 0x00; -const ORIGIN_BR = 0x01; -const ORIGIN_UL = 0x02; -const ORIGIN_UR = 0x03; -var Constants = { - TYPE_INDEXED, - TYPE_RGB, - TYPE_GREY, - TYPE_RLE_INDEXED, - TYPE_RLE_RGB, - TYPE_RLE_GREY, - ORIGIN_MASK, - ORIGIN_SHIFT, - ORIGIN_BL, - ORIGIN_BR, - ORIGIN_UL, - ORIGIN_UR -}; - -export { Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/TIFFReader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/TIFFReader.d.ts deleted file mode 100644 index 09beca46..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/TIFFReader.d.ts +++ /dev/null @@ -1,133 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { HtmlDataAccessHelper } from './../Core/DataAccessHelper/HtmlDataAccessHelper'; -import { HttpDataAccessHelper } from './../Core/DataAccessHelper/HttpDataAccessHelper'; -import { JSZipDataAccessHelper } from './../Core/DataAccessHelper/JSZipDataAccessHelper'; -import { LiteHttpDataAccessHelper } from './../Core/DataAccessHelper/LiteHttpDataAccessHelper'; - -interface ITIFFReaderOptions { - compression?: string; - progressCallback?: any; - flipY?: boolean; -} - -/** - * - */ -export interface ITIFFReaderInitialValues {} - -type vtkTIFFReaderBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkTIFFReader extends vtkTIFFReaderBase { - /** - * Get the base url. - */ - getBaseURL(): string; - - /** - * Get if the image is flipped vertically. - */ - getFlipY(): boolean; - - /** - * Get the dataAccess helper. - */ - getDataAccessHelper(): - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper; - - /** - * Get the url of the object to load. - */ - getUrl(): string; - - /** - * Load the object data. - * @param {ITIFFReaderOptions} [options] - */ - loadData(options?: ITIFFReaderOptions): Promise; - - /** - * Parse data. - * @param {ArrayBuffer} content The content to parse. - */ - parse(content: ArrayBuffer): void; - - /** - * Parse data as ArrayBuffer. - * @param {ArrayBuffer} content The content to parse. - */ - parseAsArrayBuffer(content: ArrayBuffer): void; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Flip the image vertically. - * @param {String} flipY If true, flip the image vertically. - */ - setFlipY(flipY: boolean): boolean; - - /** - * - * @param dataAccessHelper - */ - setDataAccessHelper( - dataAccessHelper: - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper - ): boolean; - - /** - * Set the url of the object to load. - * @param {String} url the url of the object to load. - * @param {ITIFFReaderOptions} [option] The PLY reader options. - */ - setUrl(url: string, option?: ITIFFReaderOptions): Promise; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkTIFFReader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ITIFFReaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ITIFFReaderInitialValues -): void; - -/** - * Method used to create a new instance of vtkTIFFReader - * @param {ITIFFReaderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ITIFFReaderInitialValues -): vtkTIFFReader; - -/** - * vtkTIFFReader is a source object that reads TIFF files. - */ -export declare const vtkTIFFReader: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkTIFFReader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/TIFFReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/TIFFReader.js deleted file mode 100644 index 86ecaee6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Image/TIFFReader.js +++ /dev/null @@ -1,144 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import '../Core/DataAccessHelper/LiteHttpDataAccessHelper.js'; -import DataAccessHelper from '../Core/DataAccessHelper.js'; -import vtkImageData from '../../Common/DataModel/ImageData.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import UTIF from 'utif'; - -// ---------------------------------------------------------------------------- -// vtkTIFFReader methods -// ---------------------------------------------------------------------------- - -function vtkTIFFReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkTIFFReader'); - - // Create default dataAccessHelper if not available - if (!model.dataAccessHelper) { - model.dataAccessHelper = DataAccessHelper.get('http'); - } - - // Internal method to fetch Array - function fetchData(url) { - const { - compression, - progressCallback - } = model; - return model.dataAccessHelper.fetchBinary(url, { - compression, - progressCallback - }); - } - - // Set DataSet url - publicAPI.setUrl = function (url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { - binary: true - }; - model.url = url; - - // Remove the file in the URL - const path = url.split('/'); - path.pop(); - model.baseURL = path.join('/'); - model.compression = option.compression; - - // Fetch metadata - return publicAPI.loadData({ - progressCallback: option.progressCallback - }); - }; - - // Fetch the actual data arrays - publicAPI.loadData = function () { - const promise = fetchData(model.url); - promise.then(publicAPI.parse); - return promise; - }; - publicAPI.parse = content => { - publicAPI.parseAsArrayBuffer(content); - }; - publicAPI.parseAsArrayBuffer = content => { - if (!content) { - return; - } - - // Read Header - const ifds = UTIF.decode(content); - UTIF.decodeImage(content, ifds[0]); - const data = UTIF.toRGBA8(ifds[0]); - const width = ifds[0].width; - const height = ifds[0].height; - const output = new Uint8Array(data.length); - if (model.flipY) { - for (let y = 0; y < height; y++) { - for (let x = 0; x < width; x++) { - const srcIndex = (y * width + x) * 4; - const destIndex = ((height - y - 1) * width + x) * 4; - output[destIndex] = data[srcIndex]; // R - output[destIndex + 1] = data[srcIndex + 1]; // G - output[destIndex + 2] = data[srcIndex + 2]; // B - output[destIndex + 3] = data[srcIndex + 3]; // A - } - } - } - - const dataExtent = [0, width - 1, 0, height - 1]; - const dataSpacing = [1, 1, 1]; - const imageData = vtkImageData.newInstance(); - imageData.setDimensions(width, height, 1); - imageData.setExtent(dataExtent); - imageData.setSpacing(dataSpacing); - const dataArray = vtkDataArray.newInstance({ - name: 'TIFFImage', - numberOfComponents: 4, - values: output - }); - imageData.getPointData().setScalars(dataArray); - model.output[0] = imageData; - }; - publicAPI.requestData = (inData, outData) => { - publicAPI.parse(model.parseData); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - flipY: true, - compression: null, - progressCallback: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 0, 1); - macro.get(publicAPI, model, ['url', 'baseURL']); - macro.setGet(publicAPI, model, ['dataAccessHelper', 'flipY']); - - // Object specific methods - vtkTIFFReader(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkTIFFReader'); - -// ---------------------------------------------------------------------------- - -var vtkTIFFReader$1 = { - newInstance, - extend -}; - -export { vtkTIFFReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Legacy.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Legacy.js deleted file mode 100644 index c1e5c91a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Legacy.js +++ /dev/null @@ -1,9 +0,0 @@ -import vtkLegacyAsciiParser from './Legacy/LegacyAsciiParser.js'; -import vtkPolyDataReader from './Legacy/PolyDataReader.js'; - -var Legacy = { - vtkLegacyAsciiParser, - vtkPolyDataReader -}; - -export { Legacy as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Legacy/LegacyAsciiParser.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Legacy/LegacyAsciiParser.js deleted file mode 100644 index d71467be..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Legacy/LegacyAsciiParser.js +++ /dev/null @@ -1,271 +0,0 @@ -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; - -const METHOD_MAPPING = { - POINTS: 'getPoints', - VERTICES: 'getVerts', - LINES: 'getLines', - TRIANGLE_STRIPS: 'getStrips', - POLYGONS: 'getPolys', - POINT_DATA: 'getPointData', - CELL_DATA: 'getCellData', - FIELD: 'getFieldData' -}; -const DATATYPES = { - bit: Uint8Array, - unsigned_char: Uint8Array, - char: Int8Array, - unsigned_short: Uint16Array, - short: Int16Array, - unsigned_int: Uint32Array, - int: Int32Array, - unsigned_long: Uint32Array, - long: Int32Array, - float: Float32Array, - double: Float64Array -}; -const REGISTER_MAPPING = { - SCALARS: 'addArray', - COLOR_SCALARS: 'addArray', - VECTORS: 'setVectors', - NORMALS: 'setNormals', - TEXTURE_COORDINATES: 'setTCoords', - TENSORS: 'setTensors', - FIELD: 'addArray' -}; -function createArrayHandler(array, setData, nbComponents) { - let offset = 0; - function fillWith(line) { - line.split(' ').forEach(token => { - if (token.length) { - array[offset++] = Number(token); - } - }); - if (offset < array.length) { - return true; - } - setData(array, nbComponents); - return false; - } - return fillWith; -} -const GENERIC_CELL_HANDLER = { - init(line, dataModel) { - const [name, nbCells, nbValues] = line.split(' '); - const cellArray = dataModel.dataset[METHOD_MAPPING[name]](); - cellArray.set({ - numberOfCells: Number(nbCells) - }, true); // Force numberOfCells update - dataModel.arrayHandler = createArrayHandler(new Uint32Array(Number(nbValues)), cellArray.setData, 1); - return true; - }, - parse(line, dataModel) { - return dataModel.arrayHandler(line); - } -}; -const TYPE_PARSER = { - DATASET: { - init(line, datamodel) { - const type = line.split(' ')[1]; - switch (type) { - case 'POLYDATA': - datamodel.dataset = vtkPolyData.newInstance(); - break; - default: - console.error(`Dataset of type ${type} not supported`); - } - return false; - }, - parse(line, datamodel) { - return false; - } - }, - POINTS: { - init(line, dataModel) { - const [name, size, type] = line.split(' '); - const array = type === 'float' ? new Float32Array(3 * Number(size)) : new Float64Array(3 * Number(size)); - const dataArray = dataModel.dataset.getPoints(); - dataArray.setName(name); - dataModel.arrayHandler = createArrayHandler(array, dataArray.setData, 3); - return true; - }, - parse(line, dataModel) { - return dataModel.arrayHandler(line); - } - }, - METADATA: { - init(line, dataModel) { - return true; - }, - parse(line, dataModel) { - return !!line.length; - } - }, - VERTICES: GENERIC_CELL_HANDLER, - LINES: GENERIC_CELL_HANDLER, - TRIANGLE_STRIPS: GENERIC_CELL_HANDLER, - POLYGONS: GENERIC_CELL_HANDLER, - POINT_DATA: { - init(line, dataModel) { - dataModel.POINT_DATA = Number(line.split(' ')[1]); - dataModel.activeFieldLocation = 'POINT_DATA'; - return false; - }, - parse(line, dataModel) { - return false; - } - }, - CELL_DATA: { - init(line, dataModel) { - dataModel.CELL_DATA = Number(line.split(' ')[1]); - dataModel.activeFieldLocation = 'CELL_DATA'; - return false; - }, - parse(line, dataModel) { - return false; - } - }, - SCALARS: { - init(line, dataModel) { - const [type, name, dataType, numComp] = line.split(' '); - const numOfComp = Number(numComp) > 0 ? Number(numComp) : 1; - const size = dataModel[dataModel.activeFieldLocation] * numOfComp; - const array = new DATATYPES[dataType](size); - const dataArray = vtkDataArray.newInstance({ - name, - empty: true - }); - dataModel.dataset[METHOD_MAPPING[dataModel.activeFieldLocation]]()[REGISTER_MAPPING[type]](dataArray); - dataModel.arrayHandler = createArrayHandler(array, dataArray.setData, numOfComp); - return true; - }, - parse(line, dataModel) { - if (line.split(' ')[0] === 'LOOKUP_TABLE') { - return true; - } - return dataModel.arrayHandler(line); - } - }, - COLOR_SCALARS: { - init(line, dataModel) { - const [type, name, numComp] = line.split(' '); - const numOfComp = Number(numComp) > 0 ? Number(numComp) : 1; - const size = dataModel[dataModel.activeFieldLocation] * numOfComp; - const array = new Uint8Array(size); - const dataArray = vtkDataArray.newInstance({ - name, - empty: true - }); - dataModel.dataset[METHOD_MAPPING[dataModel.activeFieldLocation]]()[REGISTER_MAPPING[type]](dataArray); - dataModel.arrayHandler = createArrayHandler(array, dataArray.setData, numOfComp); - return true; - }, - parse(line, dataModel) { - if (line.split(' ')[0] === 'LOOKUP_TABLE') { - return true; - } - return dataModel.arrayHandler(line); - } - }, - VECTORS: { - init(line, dataModel) { - const [type, name, dataType] = line.split(' '); - const size = dataModel[dataModel.activeFieldLocation] * 3; - const array = new DATATYPES[dataType](size); - const dataArray = vtkDataArray.newInstance({ - name, - empty: true - }); - dataModel.dataset[METHOD_MAPPING[dataModel.activeFieldLocation]]()[REGISTER_MAPPING[type]](dataArray); - dataModel.arrayHandler = createArrayHandler(array, dataArray.setData, 3); - return true; - }, - parse(line, dataModel) { - return dataModel.arrayHandler(line); - } - }, - NORMALS: { - init(line, dataModel) { - const [type, name] = line.split(' '); - const size = dataModel[dataModel.activeFieldLocation] * 3; - const array = new Float32Array(size); - const dataArray = vtkDataArray.newInstance({ - name, - empty: true - }); - dataModel.dataset[METHOD_MAPPING[dataModel.activeFieldLocation]]()[REGISTER_MAPPING[type]](dataArray); - dataModel.arrayHandler = createArrayHandler(array, dataArray.setData, 3); - return true; - }, - parse(line, dataModel) { - return dataModel.arrayHandler(line); - } - }, - TEXTURE_COORDINATES: { - init(line, dataModel) { - const [type, name, numberOfComponents, dataType] = line.split(' '); - const size = dataModel[dataModel.activeFieldLocation] * Number(numberOfComponents); - const array = new DATATYPES[dataType](size); - const dataArray = vtkDataArray.newInstance({ - name, - empty: true - }); - dataModel.dataset[METHOD_MAPPING[dataModel.activeFieldLocation]]()[REGISTER_MAPPING[type]](dataArray); - dataModel.arrayHandler = createArrayHandler(array, dataArray.setData, 3); - return true; - }, - parse(line, dataModel) { - return dataModel.arrayHandler(line); - } - }, - TENSORS: { - init(line, dataModel) { - const [type, name, dataType] = line.split(' '); - const size = dataModel[dataModel.activeFieldLocation] * 9; - const array = new DATATYPES[dataType](size); - const dataArray = vtkDataArray.newInstance({ - name, - empty: true - }); - dataModel.dataset[METHOD_MAPPING[dataModel.activeFieldLocation]]()[REGISTER_MAPPING[type]](dataArray); - dataModel.arrayHandler = createArrayHandler(array, dataArray.setData, 9); - return true; - }, - parse(line, dataModel) { - return dataModel.arrayHandler(line); - } - } -}; -function getParser(line, dataModel) { - const tokens = line.split(' '); - return TYPE_PARSER[tokens[0]]; -} -function parseLegacyASCII(content) { - let dataModel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - let parser = null; - const separatorRegExp = /\r?\n/; - const separatorRes = separatorRegExp.exec(content); - const separator = separatorRes !== null ? separatorRes[0] : null; - content.split(separator).forEach((line, index) => { - if (index < 2) { - return; - } - if (!parser) { - parser = getParser(line); - if (!parser) { - return; - } - parser = parser.init(line, dataModel) ? parser : null; - return; - } - if (parser && !parser.parse(line, dataModel)) { - parser = null; - } - }); - return dataModel; -} -var vtkLegacyAsciiParser = { - parseLegacyASCII -}; - -export { vtkLegacyAsciiParser as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Legacy/PolyDataReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Legacy/PolyDataReader.js deleted file mode 100644 index 31da0d6a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Legacy/PolyDataReader.js +++ /dev/null @@ -1,120 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import DataAccessHelper from '../Core/DataAccessHelper.js'; -import vtkLegacyAsciiParser from './LegacyAsciiParser.js'; -import '../Core/DataAccessHelper/LiteHttpDataAccessHelper.js'; - -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HttpDataAccessHelper'; // HTTP + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HtmlDataAccessHelper'; // html + base64 + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/JSZipDataAccessHelper'; // zip - -// ---------------------------------------------------------------------------- -// vtkPolyDataReader methods -// ---------------------------------------------------------------------------- - -function vtkPolyDataReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPolyDataReader'); - - // Create default dataAccessHelper if not available - if (!model.dataAccessHelper) { - model.dataAccessHelper = DataAccessHelper.get('http'); - } - - // Internal method to fetch Array - function fetchData(url) { - const { - compression, - progressCallback - } = model; - return model.dataAccessHelper.fetchText(publicAPI, url, { - compression, - progressCallback - }); - } - - // Set DataSet url - publicAPI.setUrl = function (url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - model.url = url; - - // Remove the file in the URL - const path = url.split('/'); - path.pop(); - model.baseURL = path.join('/'); - model.compression = option.compression; - - // Fetch metadata - return publicAPI.loadData({ - progressCallback: option.progressCallback - }); - }; - - // Fetch the actual data arrays - publicAPI.loadData = function () { - const promise = fetchData(model.url); - promise.then(publicAPI.parseAsText); - return promise; - }; - publicAPI.parseAsText = content => { - if (!content) { - return; - } - if (content !== model.parseData) { - publicAPI.modified(); - } else { - return; - } - model.parseData = content; - model.output[0] = vtkLegacyAsciiParser.parseLegacyASCII(model.parseData).dataset; - }; - publicAPI.requestData = (inData, outData) => { - publicAPI.parseAsText(model.parseData); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // baseURL: null, - // dataAccessHelper: null, - // url: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['url', 'baseURL']); - macro.setGet(publicAPI, model, ['dataAccessHelper']); - macro.algo(publicAPI, model, 0, 1); - - // vtkPolyDataReader methods - vtkPolyDataReader(publicAPI, model); - - // To support destructuring - if (!model.compression) { - model.compression = null; - } - if (!model.progressCallback) { - model.progressCallback = null; - } -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPolyDataReader'); - -// ---------------------------------------------------------------------------- - -var vtkPolyDataReader$1 = { - newInstance, - extend -}; - -export { vtkPolyDataReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc.js deleted file mode 100644 index 27e122ab..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc.js +++ /dev/null @@ -1,27 +0,0 @@ -import vtkElevationReader from './Misc/ElevationReader.js'; -import vtkITKImageReader from './Misc/ITKImageReader.js'; -import vtkITKPolyDataReader from './Misc/ITKPolyDataReader.js'; -import vtkJSONNucleoReader from './Misc/JSONNucleoReader.js'; -import vtkJSONReader from './Misc/JSONReader.js'; -import vtkMTLReader from './Misc/MTLReader.js'; -import vtkOBJReader from './Misc/OBJReader.js'; -import vtkOBJWriter from './Misc/OBJWriter.js'; -import vtkPDBReader from './Misc/PDBReader.js'; -import vtkSkyboxReader from './Misc/SkyboxReader.js'; -import vtkGCodeReader from './Misc/GCodeReader.js'; - -var Misc = { - vtkElevationReader, - vtkITKImageReader, - vtkITKPolyDataReader, - vtkJSONNucleoReader, - vtkJSONReader, - vtkMTLReader, - vtkOBJReader, - vtkOBJWriter, - vtkPDBReader, - vtkSkyboxReader, - vtkGCodeReader -}; - -export { Misc as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/ElevationReader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/ElevationReader.d.ts deleted file mode 100644 index 615837f8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/ElevationReader.d.ts +++ /dev/null @@ -1,217 +0,0 @@ -import { vtkAlgorithm, vtkObject, vtkSubscription } from './../../interfaces'; -import { HtmlDataAccessHelper } from './../Core/DataAccessHelper/HtmlDataAccessHelper'; -import { HttpDataAccessHelper } from './../Core/DataAccessHelper/HttpDataAccessHelper'; -import { JSZipDataAccessHelper } from './../Core/DataAccessHelper/JSZipDataAccessHelper'; -import { LiteHttpDataAccessHelper } from './../Core/DataAccessHelper/LiteHttpDataAccessHelper'; - -interface IElevationReaderOptions { - binary?: boolean; - compression?: string; - progressCallback?: any; -} - -/** - * - */ -export interface IElevationReaderInitialValues { - origin?: number[]; - xSpacing?: number; - ySpacing?: number; - zScaling?: number; - xDirection?: number; - yDirection?: number; - requestCount?: number; -} - -type vtkElevationReaderBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkElevationReader extends vtkElevationReaderBase { - /** - * - */ - getDataAccessHelper(): - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper; - - /** - * Get the url of the object to load. - */ - getUrl(): string; - - /** - * - */ - getXDirection(): number; - - /** - * - */ - getXSpacing(): number; - - /** - * - */ - getYDirection(): number; - - /** - * - */ - getYSpacing(): number; - - /** - * - */ - getZScaling(): number; - - /** - * - * @param {Boolean} busy - */ - invokeBusy(busy: boolean): void; - - /** - * - */ - isBusy(): number; - - /** - * Load the object data. - * @param {IElevationReaderOptions} [options] - */ - loadData(options?: IElevationReaderOptions): Promise; - - /** - * - * @param callback - */ - onBusy(callback: (busy: boolean) => any): vtkSubscription; - - /** - * Parse data as text. - * @param {String} content The content to parse. - */ - parseAsText(content: string): void; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * - * @param dataAccessHelper - */ - setDataAccessHelper( - dataAccessHelper: - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper - ): boolean; - - /** - * Set the url of the object to load. - * @param {String} url the url of the object to load. - * @param {IElevationReaderOptions} [option] The Elevation reader options. - */ - setUrl(url: string, option?: IElevationReaderOptions): Promise; - - /** - * - * @param {Number} xDirection - */ - setXDirection(xDirection: number): boolean; - - /** - * - * @param {Number} xSpacing - */ - setXSpacing(xSpacing: number): boolean; - - /** - * - * @param {Number} yDirection - */ - setYDirection(yDirection: number): boolean; - - /** - * - * @param {Number} ySpacing - */ - setYSpacing(ySpacing: number): boolean; - - /** - * - * @param {Number} zScaling - */ - setZScaling(zScaling: number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkElevationReader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IElevationReaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IElevationReaderInitialValues -): void; - -/** - * Method used to create a new instance of vtkElevationReader - * @param {IElevationReaderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IElevationReaderInitialValues -): vtkElevationReader; - -/** - * The vtkElevationReader aims to read a text file formatted as below and create - * a bumpy plane based on the elevation defined in that file. If a line has 10 - * elevation values, that means the plane will have 10 points along the X axis. - * If the file has 5 lines, that means the plane will have 5 points along the Y - * axis. - * - * ``` - * 1 2 3 4 5 - * 5 4 3 2 1 - * 1 2 3 4 5 - * 5 4 3 2 1 - * 1 2 3 4 5 - * ``` - * - * Each number represents an elevation on a uniform grid where a line - * (horizontal) define the elevations along the X axis. With that in mind, new - * lines (vertical) define the elevations along the Y axis and the actual number - * is the elevation along Z. - * - * In order to properly represent that in world coordinates, you can provide an - * `origin` which will define the coordinate of the first point without its - * elevation. Then you need to describe how much you should move along X and Y - * between two elevations definition. For that we use `xSpacing` and `ySpacing`. - * Since the elevation is given to us as a number, we can scale it via - * `zScaling`. Finally you may decide that your grid should move along positive - * X and negative Y while reading the file. The `xDirection` and `yDirection` - * are meant to give you control on that end. - */ -export declare const vtkElevationReader: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkElevationReader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/ElevationReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/ElevationReader.js deleted file mode 100644 index 18a4eba5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/ElevationReader.js +++ /dev/null @@ -1,156 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import DataAccessHelper from '../Core/DataAccessHelper.js'; -import '../Core/DataAccessHelper/LiteHttpDataAccessHelper.js'; - -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HttpDataAccessHelper'; // HTTP + gz -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HtmlDataAccessHelper'; // html + base64 + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/JSZipDataAccessHelper'; // zip - -// ---------------------------------------------------------------------------- -// vtkElevationReader methods -// ---------------------------------------------------------------------------- - -function vtkElevationReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkElevationReader'); - - // Create default dataAccessHelper if not available - if (!model.dataAccessHelper) { - model.dataAccessHelper = DataAccessHelper.get('http'); - } - - // Internal method to fetch Array - function fetchCSV(url, options) { - return model.dataAccessHelper.fetchText(publicAPI, url, options); - } - - // Set DataSet url - publicAPI.setUrl = (url, options) => { - model.url = url; - - // Fetch metadata - return publicAPI.loadData(options); - }; - - // Fetch the actual data arrays - publicAPI.loadData = options => fetchCSV(model.url, options).then(csv => { - publicAPI.parseAsText(csv); - return true; - }); - publicAPI.parseAsText = csv => { - model.csv = csv; - model.elevation = []; - - // Parse data - const lines = model.csv.split('\n'); - lines.forEach((line, lineIdx) => { - model.elevation.push(line.split(',').map(str => Number(str))); - }); - publicAPI.modified(); - }; - publicAPI.requestData = (inData, outData) => { - const polydata = vtkPolyData.newInstance(); - polydata.getPoints().setData(new Float32Array(0, 0, 0, 1, 1, 1), 3); - if (model.elevation) { - const jSize = model.elevation.length; - const iSize = model.elevation[0].length; - - // Handle points and polys - const points = polydata.getPoints(); - points.setNumberOfPoints(iSize * jSize, 3); - const pointValues = points.getData(); - const polys = vtkCellArray.newInstance({ - size: 5 * (iSize - 1) * (jSize - 1) - }); - polydata.setPolys(polys); - const polysValues = polys.getData(); - let cellOffset = 0; - - // Texture coords - const tcData = new Float32Array(iSize * jSize * 2); - const tcoords = vtkDataArray.newInstance({ - numberOfComponents: 2, - values: tcData, - name: 'TextureCoordinates' - }); - polydata.getPointData().setTCoords(tcoords); - for (let j = 0; j < jSize; j++) { - for (let i = 0; i < iSize; i++) { - const offsetIdx = j * iSize + i; - const offsetPt = 3 * offsetIdx; - - // Fill points coordinates - pointValues[offsetPt + 0] = model.origin[0] + i * model.xSpacing * model.xDirection; - pointValues[offsetPt + 1] = model.origin[1] + j * model.ySpacing * model.yDirection; - pointValues[offsetPt + 2] = model.origin[2] + model.elevation[j][i] * model.zScaling; - - // fill in tcoords - tcData[offsetIdx * 2] = i / (iSize - 1.0); - tcData[offsetIdx * 2 + 1] = 1.0 - j / (jSize - 1.0); - - // Fill polys - if (i > 0 && j > 0) { - polysValues[cellOffset++] = 4; - polysValues[cellOffset++] = offsetIdx; - polysValues[cellOffset++] = offsetIdx - 1; - polysValues[cellOffset++] = offsetIdx - 1 - iSize; - polysValues[cellOffset++] = offsetIdx - iSize; - } - } - } - } - model.output[0] = polydata; - }; - - // return Busy state - publicAPI.isBusy = () => !!model.requestCount; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - origin: [0, 0, 0], - xSpacing: 1, - ySpacing: 1, - zScaling: 1, - xDirection: 1, - yDirection: -1, - requestCount: 0 - // dataAccessHelper: null, - // url: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['url']); - macro.setGet(publicAPI, model, ['dataAccessHelper', 'xSpacing', 'ySpacing', 'zScaling', 'xDirection', 'yDirection']); - macro.algo(publicAPI, model, 0, 1); - macro.event(publicAPI, model, 'busy'); - - // Object methods - vtkElevationReader(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkElevationReader'); - -// ---------------------------------------------------------------------------- - -var vtkElevationReader$1 = { - newInstance, - extend -}; - -export { vtkElevationReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/GCodeReader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/GCodeReader.d.ts deleted file mode 100644 index 9d2e8fb2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/GCodeReader.d.ts +++ /dev/null @@ -1,128 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { HtmlDataAccessHelper } from './../Core/DataAccessHelper/HtmlDataAccessHelper'; -import { HttpDataAccessHelper } from './../Core/DataAccessHelper/HttpDataAccessHelper'; -import { JSZipDataAccessHelper } from './../Core/DataAccessHelper/JSZipDataAccessHelper'; -import { LiteHttpDataAccessHelper } from './../Core/DataAccessHelper/LiteHttpDataAccessHelper'; - -interface IGCodeReaderOptions { - binary?: boolean; - compression?: string; - progressCallback?: any; -} - -/** - * - */ -export interface IGCodeReaderInitialValues {} - -type vtkGCodeReaderBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkGCodeReader extends vtkGCodeReaderBase { - /** - * - */ - getBaseURL(): string; - - /** - * - */ - getDataAccessHelper(): - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper; - - /** - * Get the url of the object to load. - */ - getUrl(): string; - - /** - * Load the object data. - * @param {IGCodeReaderOptions} [options] - */ - loadData(options?: IGCodeReaderOptions): Promise; - - /** - * Parse data. - * @param {String | ArrayBuffer} content The content to parse. - */ - parse(content: string | ArrayBuffer): void; - - /** - * Parse data as ArrayBuffer. - * @param {ArrayBuffer} content The content to parse. - */ - parseAsArrayBuffer(content: ArrayBuffer): void; - - /** - * Parse data as text. - * @param {String} content The content to parse. - */ - parseAsText(content: string): void; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * - * @param dataAccessHelper - */ - setDataAccessHelper( - dataAccessHelper: - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper - ): boolean; - - /** - * Set the url of the object to load. - * @param {String} url the url of the object to load. - * @param {IGCodeReaderOptions} [option] The PLY reader options. - */ - setUrl(url: string, option?: IGCodeReaderOptions): Promise; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkGCodeReader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IGCodeReaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IGCodeReaderInitialValues -): void; - -/** - * Method used to create a new instance of vtkGCodeReader - * @param {IGCodeReaderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IGCodeReaderInitialValues -): vtkGCodeReader; - -/** - * vtkGCodeReader is a source object that reads a GCODE file. - */ -export declare const vtkGCodeReader: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkGCodeReader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/GCodeReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/GCodeReader.js deleted file mode 100644 index fa1c2ee7..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/GCodeReader.js +++ /dev/null @@ -1,236 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import BinaryHelper from '../Core/BinaryHelper.js'; -import DataAccessHelper from '../Core/DataAccessHelper.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkPoints from '../../Common/Core/Points.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import '../Core/DataAccessHelper/LiteHttpDataAccessHelper.js'; - -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HttpDataAccessHelper'; // HTTP + gz -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HtmlDataAccessHelper'; // html + base64 + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/JSZipDataAccessHelper'; // zip - -// ---------------------------------------------------------------------------- -// vtkGCodeReader methods -// ---------------------------------------------------------------------------- -function vtkGCodeReader(publicAPI, model) { - const state = { - currentPosition: { - x: 0, - y: 0, - z: 0 - }, - offset: { - x: 0, - y: 0, - z: 0 - }, - currentLayer: 0, - layers: new Map(), - // Map to store layer data - isAbsolute: true, - // G90 is default - isMetric: true, - // G21 is default - lastZ: 0 // Track Z changes for layer detection - }; - - model.classHierarchy.push('vtkGCodeReader'); - if (!model.dataAccessHelper) { - model.dataAccessHelper = DataAccessHelper.get('http'); - } - function fetchData(url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - const { - compression, - progressCallback - } = model; - if (option.binary) { - return model.dataAccessHelper.fetchBinary(url, { - compression, - progressCallback - }); - } - return model.dataAccessHelper.fetchText(publicAPI, url, { - compression, - progressCallback - }); - } - function detectLayerChange(newZ) { - if (Math.abs(newZ - state.lastZ) > 0.001) { - state.currentLayer++; - state.lastZ = newZ; - return true; - } - return false; - } - function initializeLayer() { - if (!state.layers.has(state.currentLayer)) { - const points = vtkPoints.newInstance(); - const lines = vtkCellArray.newInstance(); - const polyData = vtkPolyData.newInstance(); - polyData.setPoints(points); - polyData.setLines(lines); - state.layers.set(state.currentLayer, { - polyData, - points, - lines, - zHeight: state.lastZ - }); - } - } - function addLineToLayer(startPoint, endPoint) { - initializeLayer(); - const layer = state.layers.get(state.currentLayer); - - // Add points and get their indices - const startIndex = layer.points.insertNextPoint(startPoint[0], startPoint[1], startPoint[2]); - const endIndex = layer.points.insertNextPoint(endPoint[0], endPoint[1], endPoint[2]); - - // Add line cell - layer.lines.insertNextCell([startIndex, endIndex]); - } - function processMove(params) { - const newPosition = { - ...state.currentPosition - }; - let positionChanged = false; - ['X', 'Y', 'Z'].forEach(axis => { - if (axis in params) { - const value = state.isMetric ? params[axis] : params[axis] * 25.4; - newPosition[axis.toLowerCase()] = state.isAbsolute ? value + state.offset[axis.toLowerCase()] : state.currentPosition[axis.toLowerCase()] + value; - positionChanged = true; - } - }); - if (positionChanged) { - if ('Z' in params) { - detectLayerChange(newPosition.z); - } - const startPoint = [state.currentPosition.x, state.currentPosition.y, state.currentPosition.z]; - const endPoint = [newPosition.x, newPosition.y, newPosition.z]; - addLineToLayer(startPoint, endPoint); - state.currentPosition = newPosition; - } - } - function processG92(params) { - ['X', 'Y', 'Z'].forEach(axis => { - if (axis in params) { - state.offset[axis.toLowerCase()] = state.currentPosition[axis.toLowerCase()] - (state.isMetric ? params[axis] : params[axis] * 25.4); - } - }); - } - function processCommand(command, params) { - switch (command) { - case 'G0': // Rapid move - case 'G1': - // Linear move - processMove(params); - break; - case 'G20': - // Imperial - state.isMetric = false; - break; - case 'G21': - // Metric - state.isMetric = true; - break; - case 'G90': - // Absolute positioning - state.isAbsolute = true; - break; - case 'G91': - // Relative positioning - state.isAbsolute = false; - break; - case 'G92': - // Set position - processG92(params); - break; - } - } - function parseGCode(gcodeText) { - const lines = gcodeText.split('\n'); - lines.forEach(line => { - const sline = line.split(';')[0].trim(); - if (!sline) return; - const tokens = sline.split(' '); - const command = tokens[0]; - const params = {}; - tokens.slice(1).forEach(token => { - const param = token[0]; - const value = parseFloat(token.slice(1)); - if (!Number.isNaN(value)) { - params[param] = value; - } - }); - processCommand(command, params); - }); - } - - // Public methods - publicAPI.setUrl = function (url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { - binary: true - }; - model.url = url; - const path = url.split('/'); - path.pop(); - model.baseURL = path.join('/'); - model.compression = option.compression; - return publicAPI.loadData({ - progressCallback: option.progressCallback, - binary: !!option.binary - }); - }; - publicAPI.loadData = function () { - let option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - const promise = fetchData(model.url, option); - promise.then(publicAPI.parse); - return promise; - }; - publicAPI.parseAsText = content => { - parseGCode(content); - }; - publicAPI.parseAsArrayBuffer = content => { - const data = BinaryHelper.arrayBufferToString(content); - parseGCode(data); - }; - publicAPI.parse = content => { - if (typeof content === 'string') { - publicAPI.parseAsText(content); - } else { - publicAPI.parseAsArrayBuffer(content); - } - state.layers.forEach((layer, i) => { - model.output[i] = layer.polyData; - }); - }; - publicAPI.requestData = (inData, outData) => { - publicAPI.parse(model.parseData); - }; - publicAPI.getNumberOfOutputPorts = () => state.layers.size; -} -const DEFAULT_VALUES = { - // baseURL: null, - // dataAccessHelper: null, - // url: null, -}; -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['url', 'baseURL']); - macro.setGet(publicAPI, model, ['dataAccessHelper']); - macro.algo(publicAPI, model, 0, 1); - macro.event(publicAPI, model, 'ready'); - vtkGCodeReader(publicAPI, model); -} -const newInstance = macro.newInstance(extend, 'vtkGCodeReader'); -var vtkGCodeReader$1 = { - extend, - newInstance -}; - -export { vtkGCodeReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/HttpDataSetLODsLoader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/HttpDataSetLODsLoader.js deleted file mode 100644 index 48f78885..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/HttpDataSetLODsLoader.js +++ /dev/null @@ -1,126 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import DataAccessHelper from '../Core/DataAccessHelper.js'; -import vtkHttpDataSetReader from '../Core/HttpDataSetReader.js'; -import '../Core/DataAccessHelper/LiteHttpDataAccessHelper.js'; - -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HttpDataAccessHelper'; // HTTP + gz -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HtmlDataAccessHelper'; // html + base64 + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/JSZipDataAccessHelper'; // zip - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkHttpDataSetLODsLoader methods -// ---------------------------------------------------------------------------- - -function vtkHttpDataSetLODsLoader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkHttpDataSetLODsLoader'); - const internal = { - downloadStack: [] - }; - - //-------------------------------------------------------------------------- - - publicAPI.startDownloads = () => { - if (!model.mapper) { - vtkErrorMacro('Mapper was not set.'); - return; - } - if (!model.files || model.files.length === 0) { - vtkErrorMacro('No files set.'); - return; - } - let baseUrl = model.baseUrl; - if (baseUrl && !baseUrl.endsWith('/')) { - baseUrl += '/'; - } - - // Create the download stack - internal.downloadStack = []; - model.files.forEach(file => internal.downloadStack.push(`${baseUrl}${file}`)); - const downloadNextSource = () => { - const url = internal.downloadStack.shift(); - const nextSource = vtkHttpDataSetReader.newInstance({ - dataAccessHelper: DataAccessHelper.get('http') - }); - model.currentSource = nextSource; - const options = { - compression: 'zip', - loadData: true, - fullpath: true - }; - nextSource.setUrl(url, options).then(() => { - model.mapper.setInputConnection(nextSource.getOutputPort()); - if (model.sceneItem) { - // Apply settings to the new source - const settings = model.sceneItem.defaultSettings; - if (settings.mapper) { - if (settings.mapper.colorByArrayName) { - nextSource.enableArray(settings.mapper.colorByArrayName, settings.mapper.colorByArrayName); - } - } - model.sceneItem.source = nextSource; - } - if (model.stepFinishedCallback) { - // In clients like paraview glance, the callback might - // involve setting the current source on a proxy - model.stepFinishedCallback(); - } - if (internal.downloadStack.length !== 0) { - setTimeout(downloadNextSource, model.waitTimeBetweenDownloads); - } - }); - }; - setTimeout(downloadNextSource, model.waitTimeToStart); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - baseUrl: '', - // The currentSource is set internally to the most recently - // created source. It might be useful to access it in a callback - // via 'getCurrentSource'. - currentSource: null, - files: [], - mapper: null, - sceneItem: null, - stepFinishedCallback: null, - // These are in milliseconds - waitTimeToStart: 4000, - waitTimeBetweenDownloads: 0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - - // Create get-set macros - macro.setGet(publicAPI, model, ['baseUrl', 'files', 'mapper', 'sceneItem', 'stepFinishedCallback', 'waitTimeToStart', 'waitTimeBetweenDownloads']); - macro.get(publicAPI, model, ['currentSource']); - - // Object specific methods - vtkHttpDataSetLODsLoader(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkHttpDataSetLODsLoader'); - -// ---------------------------------------------------------------------------- - -var vtkHttpDataSetLODsLoader$1 = { - newInstance, - extend -}; - -export { vtkHttpDataSetLODsLoader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/ITKImageReader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/ITKImageReader.d.ts deleted file mode 100644 index 5c781623..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/ITKImageReader.d.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; - -/** - * - */ -export interface IITKImageReaderInitialValues { - fileName?: string; - arrayName?: string; -} - -type vtkITKImageReaderBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkITKImageReader extends vtkITKImageReaderBase { - /** - * Get the array name. - */ - getArrayName(): string; - - /** - * Get the filename. - */ - getFileName(): string; - - /** - * Parse data as array buffer. - * @param {ArrayBuffer} arrayBuffer The array buffer to parse. - */ - parseAsArrayBuffer(arrayBuffer: ArrayBuffer): void; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Set the array name. - * @param {String} arrayName The name of the array. - */ - setArrayName(arrayName: string): boolean; - - /** - * Set the filename. - * @param {String} filename - */ - setFileName(filename: string): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkITKImageReader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IITKImageReaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IITKImageReaderInitialValues -): void; - -/** - * Method used to create a new instance of vtkITKImageReader - * @param {IITKImageReaderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IITKImageReaderInitialValues -): vtkITKImageReader; - -/** - * - * @param {*} fn - */ -export function setReadImageArrayBufferFromITK(fn: any): Promise; - -/** - * The vtkITKImageReader aims to read a ITK file format. - */ -export declare const vtkITKImageReader: { - newInstance: typeof newInstance; - extend: typeof extend; - setReadImageArrayBufferFromITK: typeof setReadImageArrayBufferFromITK; -}; -export default vtkITKImageReader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/ITKImageReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/ITKImageReader.js deleted file mode 100644 index f7367dcb..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/ITKImageReader.js +++ /dev/null @@ -1,114 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import ITKHelper from '../../Common/DataModel/ITKHelper.js'; - -const { - convertItkToVtkImage -} = ITKHelper; -let readImageArrayBuffer = null; -let resultPreprocessor = result => result; -function getArrayName(filename) { - const idx = filename.lastIndexOf('.'); - const name = idx > -1 ? filename.substring(0, idx) : filename; - return `Scalars ${name}`; -} -function setReadImageArrayBufferFromITK(fn) { - readImageArrayBuffer = fn; - - // itk.js 9.0.0 introduced breaking changes, which can be detected - // by an updated function signature. - if (readImageArrayBuffer.length === 4) { - // first arg is a webworker if reuse is desired. - readImageArrayBuffer = function () { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - return fn(null, ...args); - }; - - // an object is now passed out which includes a webworker which we - // should terminate - resultPreprocessor = _ref => { - let { - webWorker, - image - } = _ref; - webWorker.terminate(); - return image; - }; - } -} - -// ---------------------------------------------------------------------------- -// vtkITKImageReader methods -// ---------------------------------------------------------------------------- - -function vtkITKImageReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkITKImageReader'); - - // Returns a promise to signal when image is ready - publicAPI.parseAsArrayBuffer = arrayBuffer => { - if (!arrayBuffer || arrayBuffer === model.rawDataBuffer) { - return Promise.resolve(); - } - model.rawDataBuffer = arrayBuffer; - return readImageArrayBuffer(arrayBuffer, model.fileName).then(resultPreprocessor).then(itkImage => { - const imageData = convertItkToVtkImage(itkImage, { - scalarArrayName: model.arrayName || getArrayName(model.fileName) - }); - model.output[0] = imageData; - publicAPI.modified(); - }); - }; - publicAPI.requestData = (inData, outData) => { - publicAPI.parseAsArrayBuffer(model.rawDataBuffer, model.fileName); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - fileName: '', - // If null/undefined a unique array will be generated - arrayName: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.algo(publicAPI, model, 0, 1); - macro.setGet(publicAPI, model, ['fileName', 'arrayName']); - - // vtkITKImageReader methods - vtkITKImageReader(publicAPI, model); - - // Check that ITK function has been injected - if (!readImageArrayBuffer) { - console.error(` - // Dependency needs to be added inside your project - import readImageArrayBuffer from 'itk/readImageArrayBuffer'; - vtkITKImageReader.setReadImageArrayBufferFromITK(readImageArrayBuffer); - `); - } -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkITKImageReader'); - -// ---------------------------------------------------------------------------- - -var vtkITKImageReader$1 = { - newInstance, - extend, - setReadImageArrayBufferFromITK -}; - -export { vtkITKImageReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/ITKPolyDataReader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/ITKPolyDataReader.d.ts deleted file mode 100644 index 757b0007..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/ITKPolyDataReader.d.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; - -/** - * - */ -export interface IITKPolyDataReaderInitialValues { - fileName?: string; - arrayName?: string; -} - -type vtkITKPolyDataReaderBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkITKPolyDataReader extends vtkITKPolyDataReaderBase { - /** - * Get the array name. - */ - getArrayName(): string; - - /** - * Get the filename. - */ - getFileName(): string; - - /** - * Parse data as array buffer. - * @param {ArrayBuffer} arrayBuffer The array buffer to parse. - */ - parseAsArrayBuffer(arrayBuffer: ArrayBuffer): void; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Set the array name. - * @param {String} arrayName The name of the array. - */ - setArrayName(arrayName: string): boolean; - - /** - * Set the filename. - * @param {String} filename - */ - setFileName(filename: string): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkITKPolyDataReader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IITKPolyDataReaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IITKPolyDataReaderInitialValues -): void; - -/** - * Method used to create a new instance of vtkITKPolyDataReader - * @param {IITKPolyDataReaderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IITKPolyDataReaderInitialValues -): vtkITKPolyDataReader; - -/** - * - * @param {*} fn - */ -export function setReadPolyDataArrayBufferFromITK(fn: any): Promise; - -/** - * The vtkITKPolyDataReader aims to read a ITK file format. - */ -export declare const vtkITKPolyDataReader: { - newInstance: typeof newInstance; - extend: typeof extend; - setReadPolyDataArrayBufferFromITK: typeof setReadPolyDataArrayBufferFromITK; -}; -export default vtkITKPolyDataReader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/ITKPolyDataReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/ITKPolyDataReader.js deleted file mode 100644 index 43382acc..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/ITKPolyDataReader.js +++ /dev/null @@ -1,99 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtk from '../../vtk.js'; - -let readPolyDataArrayBuffer = null; -let resultPreprocessor = result => result; -function setReadPolyDataArrayBufferFromITK(fn) { - readPolyDataArrayBuffer = fn; - - // first arg is a webworker if reuse is desired. - readPolyDataArrayBuffer = function () { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - return fn(null, ...args); - }; - - // an object is now passed out which includes a webworker which we - // should terminate - resultPreprocessor = _ref => { - let { - webWorker, - polyData - } = _ref; - webWorker.terminate(); - return polyData; - }; -} - -// ---------------------------------------------------------------------------- -// vtkITKPolyDataReader methods -// ---------------------------------------------------------------------------- - -function vtkITKPolyDataReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkITKPolyDataReader'); - - // Returns a promise to signal when polyData is ready - publicAPI.parseAsArrayBuffer = arrayBuffer => { - if (!arrayBuffer || arrayBuffer === model.rawDataBuffer) { - return Promise.resolve(); - } - model.rawDataBuffer = arrayBuffer; - return readPolyDataArrayBuffer(arrayBuffer, model.fileName).then(resultPreprocessor).then(polyData => { - model.output[0] = vtk(polyData); - publicAPI.modified(); - }); - }; - publicAPI.requestData = (inData, outData) => { - publicAPI.parseAsArrayBuffer(model.rawDataBuffer, model.fileName); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - fileName: '', - // If null/undefined a unique array will be generated - arrayName: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.algo(publicAPI, model, 0, 1); - macro.setGet(publicAPI, model, ['fileName', 'arrayName']); - - // vtkITKPolyDataReader methods - vtkITKPolyDataReader(publicAPI, model); - - // Check that ITK function has been injected - if (!readPolyDataArrayBuffer) { - console.error(` - // Dependency needs to be added inside your project - import readPolyDataArrayBuffer from 'itk/readPolyDataArrayBuffer'; - vtkITKPolyDataReader.setReadPolyDataArrayBufferFromITK(readPolyDataArrayBuffer); - `); - } -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkITKPolyDataReader'); - -// ---------------------------------------------------------------------------- - -var vtkITKPolyDataReader$1 = { - newInstance, - extend, - setReadPolyDataArrayBufferFromITK -}; - -export { vtkITKPolyDataReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/JSONNucleoReader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/JSONNucleoReader.d.ts deleted file mode 100644 index fd2e965f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/JSONNucleoReader.d.ts +++ /dev/null @@ -1,115 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { HtmlDataAccessHelper } from './../Core/DataAccessHelper/HtmlDataAccessHelper'; -import { HttpDataAccessHelper } from './../Core/DataAccessHelper/HttpDataAccessHelper'; -import { JSZipDataAccessHelper } from './../Core/DataAccessHelper/JSZipDataAccessHelper'; -import { LiteHttpDataAccessHelper } from './../Core/DataAccessHelper/LiteHttpDataAccessHelper'; - -interface IJSONNucleoReaderOptions { - binary?: boolean; - compression?: string; - progressCallback?: any; -} - -/** - * - */ -export interface IJSONNucleoReaderInitialValues {} - -type vtkJSONNucleoReaderBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkJSONNucleoReader extends vtkJSONNucleoReaderBase { - /** - * - */ - getBaseURL(): string; - - /** - * - */ - getDataAccessHelper(): - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper; - - /** - * Get the url of the object to load. - */ - getUrl(): string; - - /** - * Load the object data. - * @param {IJSONNucleoReaderOptions} [options] - */ - loadData(options?: IJSONNucleoReaderOptions): Promise; - - /** - * Parse data as text. - * @param {String} jsonAsTxt The content to parse. - */ - parseAsText(jsonAsTxt: string): void; - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * - * @param dataAccessHelper - */ - setDataAccessHelper( - dataAccessHelper: - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper - ): boolean; - - /** - * Set the url of the object to load. - * @param {String} url the url of the object to load. - * @param {IJSONNucleoReaderOptions} [option] The JSONNucleo reader options. - */ - setUrl(url: string, option: IJSONNucleoReaderOptions): Promise; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkJSONNucleoReader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IJSONNucleoReaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IJSONNucleoReaderInitialValues -): void; - -/** - * Method used to create a new instance of vtkJSONNucleoReader - * @param {IJSONNucleoReaderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IJSONNucleoReaderInitialValues -): vtkJSONNucleoReader; - -/** - * vtkJSONNucleoReader reader. - */ -export declare const vtkJSONNucleoReader: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkJSONNucleoReader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/JSONNucleoReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/JSONNucleoReader.js deleted file mode 100644 index b290717c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/JSONNucleoReader.js +++ /dev/null @@ -1,105 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import DataAccessHelper from '../Core/DataAccessHelper.js'; -import '../Core/DataAccessHelper/LiteHttpDataAccessHelper.js'; - -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HttpDataAccessHelper'; // HTTP + gz -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HtmlDataAccessHelper'; // html + base64 + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/JSZipDataAccessHelper'; // zip - -// ---------------------------------------------------------------------------- -// vtkElevationReader methods -// ---------------------------------------------------------------------------- - -function vtkJSONNucleoReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkJSONNucleoReader'); - - // Create default dataAccessHelper if not available - if (!model.dataAccessHelper) { - model.dataAccessHelper = DataAccessHelper.get('http'); - } - - // Internal method to fetch Array - function fetchText(url, options) { - return model.dataAccessHelper.fetchText(publicAPI, url, options); - } - - // Set DataSet url - publicAPI.setUrl = (url, options) => { - model.url = url; - - // Fetch metadata - return publicAPI.loadData(options); - }; - - // Fetch the actual data arrays - publicAPI.loadData = options => fetchText(model.url, options).then(csv => { - publicAPI.parseAsText(csv); - return true; - }); - publicAPI.parseAsText = jsonAsTxt => { - const { - vertices, - indices - } = JSON.parse(jsonAsTxt); - const nbIndices = indices.length; - const nbTriangles = nbIndices / 3; - const nbCellsValues = nbTriangles + nbIndices; - model.points = Float32Array.from(vertices); - model.polys = nbCellsValues < 65535 ? new Uint16Array(nbCellsValues) : new Uint32Array(nbCellsValues); - let srcOffset = 0; - let destOffset = 0; - while (destOffset < model.polys.length) { - model.polys[destOffset++] = 3; - model.polys[destOffset++] = indices[srcOffset++]; - model.polys[destOffset++] = indices[srcOffset++]; - model.polys[destOffset++] = indices[srcOffset++]; - } - publicAPI.modified(); - }; - publicAPI.requestData = (inData, outData) => { - const polydata = vtkPolyData.newInstance(); - polydata.getPoints().setData(model.points, 3); - polydata.getPolys().setData(model.polys); - model.output[0] = polydata; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // dataAccessHelper: null, - // url: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['url']); - macro.setGet(publicAPI, model, ['dataAccessHelper']); - macro.algo(publicAPI, model, 0, 1); - - // Object methods - vtkJSONNucleoReader(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkJSONNucleoReader'); - -// ---------------------------------------------------------------------------- - -var vtkJSONNucleoReader$1 = { - newInstance, - extend -}; - -export { vtkJSONNucleoReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/JSONReader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/JSONReader.d.ts deleted file mode 100644 index 29943ffb..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/JSONReader.d.ts +++ /dev/null @@ -1,107 +0,0 @@ -import { vtkAlgorithm, vtkObject, vtkSubscription } from './../../interfaces'; - -interface IJSONReaderOptions { - binary?: boolean; - compression?: string; - progressCallback?: any; -} - -/** - * - */ -export interface IJSONReaderInitialValues {} - -type vtkJSONReaderBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkJSONReader extends vtkJSONReaderBase { - /** - * - */ - getNumberOfOutputPorts(): number; - - /** - * Get the url of the object to load. - */ - getUrl(): string; - - /** - * - * @param {Boolean} busy - */ - invokeBusy(busy: boolean): void; - - /** - * - */ - isBusy(): number; - - /** - * Load the object data. - * @param {IJSONReaderOptions} [options] - */ - loadData(options?: IJSONReaderOptions): Promise; - - /** - * - * @param callback - */ - onBusy(callback: (busy: boolean) => any): vtkSubscription; - - /** - * Parse data as text. - * @param {String} content The content to parse. - */ - parseAsText(content: string): void; - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Set the url of the object to load. - * @param {String} url the url of the object to load. - * @param {IJSONReaderOptions} [option] The JSON reader options. - */ - setUrl(url: string, option?: IJSONReaderOptions): Promise; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkJSONReader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IJSONReaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IJSONReaderInitialValues -): void; - -/** - * Method used to create a new instance of vtkJSONReader - * @param {IJSONReaderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IJSONReaderInitialValues -): vtkJSONReader; - -/** - * vtkJSONReader is a source object that reads JSON files. - */ -export declare const vtkJSONReader: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkJSONReader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/JSONReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/JSONReader.js deleted file mode 100644 index 48750e04..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/JSONReader.js +++ /dev/null @@ -1,83 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkJSONReader methods -// ---------------------------------------------------------------------------- - -function vtkJSONReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkJSONReader'); - - // Internal method to fetch Array - function fetchData(url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return model.dataAccessHelper.fetchText(publicAPI, url, option); - } - - // Set DataSet url - publicAPI.setUrl = function (url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - model.url = url; - - // Fetch metadata - return publicAPI.loadData(option); - }; - - // Fetch the actual data arrays - publicAPI.loadData = function () { - let option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return fetchData(model.url, option).then(publicAPI.parseAsText); - }; - publicAPI.parseAsText = content => { - if (!content) { - return false; - } - model.data = JSON.parse(content); - publicAPI.modified(); - return true; - }; - publicAPI.requestData = (inData, outData) => { - outData[0] = model.data; - }; - - // return Busy state - publicAPI.isBusy = () => false; - publicAPI.getNumberOfOutputPorts = () => model.numberOfOutputs; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // url: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['url']); - macro.algo(publicAPI, model, 0, 1); - macro.event(publicAPI, model, 'busy'); - - // Object methods - vtkJSONReader(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkJSONReader'); - -// ---------------------------------------------------------------------------- - -var vtkJSONReader$1 = { - newInstance, - extend -}; - -export { vtkJSONReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/MTLReader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/MTLReader.d.ts deleted file mode 100644 index 48b5faf6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/MTLReader.d.ts +++ /dev/null @@ -1,182 +0,0 @@ -import { vtkObject, vtkSubscription } from './../../interfaces'; - -import { vtkActor } from './../../Rendering/Core/Actor'; -import { HtmlDataAccessHelper } from './../Core/DataAccessHelper/HtmlDataAccessHelper'; -import { HttpDataAccessHelper } from './../Core/DataAccessHelper/HttpDataAccessHelper'; -import { JSZipDataAccessHelper } from './../Core/DataAccessHelper/JSZipDataAccessHelper'; -import { LiteHttpDataAccessHelper } from './../Core/DataAccessHelper/LiteHttpDataAccessHelper'; - -interface IMTLReaderOptions { - binary?: boolean; - compression?: string; - progressCallback?: any; -} - -/** - * - */ -export interface IMTLReaderInitialValues { - numberOfOutputs?: number; - requestCount?: number; - materials?: object; - interpolateTextures?: boolean; -} - -export interface vtkMTLReader extends vtkObject { - /** - * - * @param {String} name - * @param {vtkActor} actor - */ - applyMaterialToActor(name: string, actor: vtkActor): void; - - /** - * - */ - getBaseURL(): string; - - /** - * - */ - getDataAccessHelper(): - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper; - - /** - * - */ - getInterpolateTextures(): boolean; - - /** - * - * @param {String} name The name of the material. - */ - getMaterial(name: string): object; - - /** - * - */ - getMaterialNames(): object; - - /** - * - */ - getSplitGroup(): boolean; - - /** - * Get the url of the object to load. - */ - getUrl(): string; - - /** - * - * @param {Boolean} busy - */ - invokeBusy(busy: boolean): void; - - /** - * - */ - isBusy(): number; - - /** - * - */ - listImages(): any; - - /** - * Load the object data. - * @param {IMTLReaderOptions} [options] - */ - loadData(options?: IMTLReaderOptions): Promise; - - /** - * - * @param callback - */ - onBusy(callback: (busy: boolean) => any): vtkSubscription; - - /** - * Parse data as text. - * @param {String} content The content to parse. - */ - parseAsText(content: string): void; - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * - * @param dataAccessHelper - */ - setDataAccessHelper( - dataAccessHelper: - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper - ): boolean; - - /** - * - * @param imagePath - * @param src - */ - setImageSrc(imagePath: string, src: string): any; - - /** - * - * @param interpolateTextures - */ - setInterpolateTextures(interpolateTextures: boolean): boolean; - - /** - * - * @param splitGroup - */ - setSplitGroup(splitGroup: boolean): boolean; - - /** - * Set the url of the object to load. - * @param {String} url the url of the object to load. - * @param {IMTLReaderOptions} [option] The MTL reader options. - */ - setUrl(url: string, option?: IMTLReaderOptions): Promise; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkMTLReader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IMTLReaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IMTLReaderInitialValues -): void; - -/** - * Method used to create a new instance of vtkMTLReader - * @param {IMTLReaderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IMTLReaderInitialValues -): vtkMTLReader; - -/** - * The vtkMTLReader aims to parse the MTL(Material Template Library file format - * which is a companion file format to .OBJ that describes surface shading - * (material) properties of objects within one or more .OBJ files. - */ -export declare const vtkMTLReader: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkMTLReader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/MTLReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/MTLReader.js deleted file mode 100644 index 14c560ab..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/MTLReader.js +++ /dev/null @@ -1,176 +0,0 @@ -import { n as newInstance$1, o as obj, g as get, e as setGet, f as event } from '../../macros2.js'; -import DataAccessHelper from '../Core/DataAccessHelper.js'; -import vtkTexture from '../../Rendering/Core/Texture.js'; -import '../Core/DataAccessHelper/LiteHttpDataAccessHelper.js'; - -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HttpDataAccessHelper'; // HTTP + gz -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HtmlDataAccessHelper'; // html + base64 + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/JSZipDataAccessHelper'; // zip - -// ---------------------------------------------------------------------------- -// vtkMTLReader methods -// ---------------------------------------------------------------------------- - -function vtkMTLReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkMTLReader'); - function imageReady() { - model.requestCount--; - if (model.requestCount === 0) { - publicAPI.invokeBusy(false); - } - } - function parseLine(line) { - if (line[0] === '#' || line.length === 0) { - return; - } - const tokens = line.split(/[ \t]+/).map(s => s.trim()).filter(s => s.length); - if (tokens[0] === 'newmtl') { - tokens.shift(); - model.currentMaterial = tokens.join(' ').trim(); - } else if (model.currentMaterial) { - if (tokens.length < 2) { - return; - } - if (!model.materials[model.currentMaterial]) { - model.materials[model.currentMaterial] = {}; - } - model.materials[model.currentMaterial][tokens[0]] = tokens.slice(1); - if (tokens[0] === 'map_Kd') { - const image = new Image(); - image.onload = () => setTimeout(imageReady, 0); - image.src = [model.baseURL, tokens[1]].join('/'); - model.materials[model.currentMaterial].image = image; - model.requestCount++; - } - } - } - - // Create default dataAccessHelper if not available - if (!model.dataAccessHelper) { - model.dataAccessHelper = DataAccessHelper.get('http'); - } - - // Internal method to fetch Array - function fetchData(url, options) { - return model.dataAccessHelper.fetchText(publicAPI, url, options); - } - - // Set DataSet url - publicAPI.setUrl = function (url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - if (url.indexOf('.mtl') === -1 && !option.fullpath) { - model.baseURL = url; - model.url = `${url}/index.mtl`; - } else { - model.url = url; - - // Remove the file in the URL - const path = url.split('/'); - path.pop(); - model.baseURL = path.join('/'); - } - - // Fetch metadata - return publicAPI.loadData(option); - }; - - // Fetch the actual data arrays - publicAPI.loadData = option => new Promise((resolve, reject) => { - fetchData(model.url, option).then(content => { - publicAPI.parseAsText(content); - resolve(); - }, err => { - reject(); - }); - }); - publicAPI.parseAsText = content => { - publicAPI.modified(); - model.materials = {}; - content.split('\n').forEach(parseLine); - }; - - // return Busy state - publicAPI.isBusy = () => !!model.requestCount; - publicAPI.getMaterialNames = () => Object.keys(model.materials); - publicAPI.getMaterial = name => model.materials[name]; - publicAPI.listImages = () => Object.keys(model.materials).map(name => model.materials[name].map_Kd).filter(fileName => !!fileName).map(s => s[0].trim()); - publicAPI.setImageSrc = (imagePath, src) => new Promise((resolve, reject) => { - const selectedName = Object.keys(model.materials).find(name => model.materials[name].map_Kd && model.materials[name].map_Kd[0].trim() === imagePath.trim()); - const material = model.materials[selectedName]; - if (material && material.image) { - material.image.src = src; - material.image.onload = () => setTimeout(resolve, 0); - } else { - resolve(); - } - }); - publicAPI.applyMaterialToActor = (name, actor) => { - const material = model.materials[name]; - if (material && actor) { - const white = [1, 1, 1]; - const actorProp = { - ambientColor: material.Ka ? material.Ka.map(i => Number(i)) : white, - specularColor: material.Ks ? material.Ks.map(i => Number(i)) : white, - diffuseColor: material.Kd ? material.Kd.map(i => Number(i)) : white, - opacity: material.d ? Number(material.d) : 1, - specularPower: material.Ns ? Number(material.Ns) : 1 - }; - const illum = Number(material.illum || 2); - ['ambient', 'diffuse', 'specular'].forEach((k, idx) => { - actorProp[k] = idx <= illum ? 1.0 : 0.0; - }); - if (material.image) { - const texture = vtkTexture.newInstance({ - interpolate: model.interpolateTextures - }); - texture.setImage(material.image); - actor.addTexture(texture); - } - actor.getProperty().set(actorProp); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - numberOfOutputs: 1, - requestCount: 0, - materials: {}, - interpolateTextures: true - // baseURL: null, - // dataAccessHelper: null, - // url: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - obj(publicAPI, model); - get(publicAPI, model, ['url', 'baseURL']); - setGet(publicAPI, model, ['dataAccessHelper', 'interpolateTextures', 'splitGroup']); - event(publicAPI, model, 'busy'); - - // Object methods - vtkMTLReader(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkMTLReader'); - -// ---------------------------------------------------------------------------- - -var vtkMTLReader$1 = { - newInstance, - extend -}; - -export { vtkMTLReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/OBJReader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/OBJReader.d.ts deleted file mode 100644 index e4c4da24..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/OBJReader.d.ts +++ /dev/null @@ -1,208 +0,0 @@ -import { vtkAlgorithm, vtkObject, vtkSubscription } from './../../interfaces'; -import { HtmlDataAccessHelper } from './../Core/DataAccessHelper/HtmlDataAccessHelper'; -import { HttpDataAccessHelper } from './../Core/DataAccessHelper/HttpDataAccessHelper'; -import { JSZipDataAccessHelper } from './../Core/DataAccessHelper/JSZipDataAccessHelper'; -import { LiteHttpDataAccessHelper } from './../Core/DataAccessHelper/LiteHttpDataAccessHelper'; - -interface IOBJReaderOptions { - binary?: boolean; - compression?: string; - progressCallback?: any; -} - -/** - * - */ -export interface IOBJReaderInitialValues { - numberOfOutputs?: number; - requestCount?: number; - splitMode?: string; -} - -type vtkOBJReaderBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -/** - * Convenient method to get the id of all duplicated points. - * Relies on a "Duplicates" array that contains the id of: - * - the first duplicate id for the original point (or self Id if there is no duplicate) - * - the original id for the duplicate points - * Duplicated points must be adjacent to each other. - * Example: - * - Points: [pt0, pt1, pt2, pt3, pt1d0, pt1d1, pt1d3, pt3d1, pt3d2] - * - Duplicates: [0, 4, 2, 3, 1, 1, 1, 3, 3] - * Expected results: - * - getPointDuplicateIds(p, 1) => [1, 4, 5, 6] - * - getPointDuplicateIds(p, 0) => [0] - * - getPointDuplicateIds(p, 5) => [1, 4, 5, 6] - * @param polydata A polydata generated by the OBJReader - * @param pointId A point Id (duplicated or not) - */ -export function getPointDuplicateIds( - polydata: any, - pointId: number -): Array; - -export interface vtkOBJReader extends vtkOBJReaderBase { - /** - * - */ - getBaseURL(): string; - - /** - * - */ - getDataAccessHelper(): - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper; - - /** - * Get the url of the object to load. - */ - getUrl(): string; - - /** - * - */ - getSplitMode(): number; - - /** - * True if duplicates are tracked in output polydata. - */ - getTrackDuplicates(): boolean; - - /** - * - * @param {Boolean} busy - */ - invokeBusy(busy: boolean): void; - - /** - * - */ - isBusy(): number; - - /** - * Load the object data. - * @param {IOBJReaderOptions} [options] - */ - loadData(options?: IOBJReaderOptions): Promise; - - /** - * - * @param callback - */ - onBusy(callback: (busy: boolean) => any): vtkSubscription; - - /** - * Parse data as text. - * @param {String} content The content to parse. - */ - parseAsText(content: string): void; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * - * @param dataAccessHelper - */ - setDataAccessHelper( - dataAccessHelper: - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper - ): boolean; - - /** - * String in OBJ file used to split in multiple output polydata. - * @param {Null | String} splitMode - */ - setSplitMode(splitMode: string): boolean; - - /** - * Set to true to be able to use getPointDuplicateIds() on output polydata. - * Requires splitMode to not be null. - * @param trackDuplicates true or false (false by default) - * @see getPointDuplicateIds(), setSplitMode() - */ - setTrackDuplicates(trackDuplicates: boolean): boolean; - - /** - * Set the url of the object to load. - * @param {String} url the url of the object to load. - * @param {IOBJReaderOptions} [option] The OBJ reader options. - */ - setUrl(url: string, option?: IOBJReaderOptions): Promise; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkOBJReader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IOBJReaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IOBJReaderInitialValues -): void; - -/** - * Method used to create a new instance of vtkOBJReader - * @param {IOBJReaderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IOBJReaderInitialValues -): vtkOBJReader; - -/** - * The vtkOBJReader aims to read a text file formatted as below and create - * a bumpy plane based on the elevation defined in that file. If a line has 10 - * elevation values, that means the plane will have 10 points along the X axis. - * If the file has 5 lines, that means the plane will have 5 points along the Y - * axis. - * - * ``` - * 1 2 3 4 5 - * 5 4 3 2 1 - * 1 2 3 4 5 - * 5 4 3 2 1 - * 1 2 3 4 5 - * ``` - * - * Each number represents an elevation on a uniform grid where a line - * (horizontal) define the elevations along the X axis. With that in mind, new - * lines (vertical) define the elevations along the Y axis and the actual number - * is the elevation along Z. - * - * In order to properly represent that in world coordinates, you can provide an - * `origin` which will define the coordinate of the first point without its - * elevation. Then you need to describe how much you should move along X and Y - * between two elevations definition. For that we use `xSpacing` and `ySpacing`. - * Since the elevation is given to us as a number, we can scale it via - * `zScaling`. Finally you may decide that your grid should move along positive - * X and negative Y while reading the file. The `xDirection` and `yDirection` - * are meant to give you control on that end. - */ -export declare const vtkOBJReader: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkOBJReader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/OBJReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/OBJReader.js deleted file mode 100644 index 04902424..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/OBJReader.js +++ /dev/null @@ -1,371 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import DataAccessHelper from '../Core/DataAccessHelper.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import '../Core/DataAccessHelper/LiteHttpDataAccessHelper.js'; - -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HttpDataAccessHelper'; // HTTP + gz -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HtmlDataAccessHelper'; // html + base64 + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/JSZipDataAccessHelper'; // zip - -// ---------------------------------------------------------------------------- - -const data = {}; - -// ---------------------------------------------------------------------------- - -function copyVector(src, srcOffset, dst, dstOffset, vectorSize) { - for (let i = 0; i < vectorSize; i++) { - dst[dstOffset + i] = src[srcOffset + i]; - } -} - -// ---------------------------------------------------------------------------- - -function begin(splitMode) { - data.splitOn = splitMode; - data.pieces = []; - data.v = []; - data.vt = []; - data.vn = []; - data.f = [[]]; - data.size = 0; -} - -// ---------------------------------------------------------------------------- - -function faceMap(str) { - const idxs = str.split('/').map(i => Number(i)); - let vertexIdx = idxs[0] - 1; - vertexIdx = vertexIdx < 0 ? vertexIdx + 1 + data.v.length / 3 : vertexIdx; - let textCoordIdx = idxs[1] ? idxs[1] - 1 : vertexIdx; - textCoordIdx = textCoordIdx < 0 ? textCoordIdx + 1 + data.vt.length / 2 : textCoordIdx; - let vertexNormal = idxs[2] ? idxs[2] - 1 : vertexIdx; - vertexNormal = vertexNormal < 0 ? vertexNormal + 1 + data.vn.length / 3 : vertexNormal; - return [vertexIdx, textCoordIdx, vertexNormal]; -} - -// ---------------------------------------------------------------------------- - -function parseLine(line) { - if (line[0] === '#') { - return; - } - const tokens = line.split(/[ \t]+/); - if (tokens[0] === data.splitOn) { - tokens.shift(); - data.pieces.push(tokens.join(' ').trim()); - data.f.push([]); - data.size++; - } else if (tokens[0] === 'v') { - data.v.push(Number(tokens[1])); - data.v.push(Number(tokens[2])); - data.v.push(Number(tokens[3])); - } else if (tokens[0] === 'vt') { - data.vt.push(Number(tokens[1])); - data.vt.push(Number(tokens[2])); - } else if (tokens[0] === 'vn') { - data.vn.push(Number(tokens[1])); - data.vn.push(Number(tokens[2])); - data.vn.push(Number(tokens[3])); - } else if (tokens[0] === 'f') { - // Handle triangles for now - if (data.size === 0) { - data.size++; - } - const cells = data.f[data.size - 1]; - tokens.shift(); - const faces = tokens.filter(s => s.length > 0 && s !== '\r'); - const size = faces.length; - cells.push(size); - for (let i = 0; i < size; i++) { - cells.push(faceMap(faces[i])); - } - } -} - -// ---------------------------------------------------------------------------- - -function end(model) { - const hasTcoords = !!data.vt.length; - const hasNormals = !!data.vn.length; - if (model.splitMode) { - model.numberOfOutputs = data.size; - for (let idx = 0; idx < data.size; idx++) { - const polyIn = data.f[idx]; - const nbElems = polyIn.length; - const nbPoints = data.v.length / 3; - const keyPointId = {}; - let pointDuplicatesReferences; - if (model.trackDuplicates) { - // In trackDuplicates mode, we want the following point layout: - // [pt0, pt1, pt2, ... ptN, pt0d1, pt0d2, pt1d1] - const pointKeys = []; - let duplicatesCount = 0; - for (let offset = 0; offset < nbElems;) { - const cellSize = polyIn[offset++]; - for (let pIdx = 0; pIdx < cellSize; pIdx++) { - const [vIdx, tcIdx, nIdx] = polyIn[offset++]; - const key = `${vIdx}/${tcIdx}/${nIdx}`; - if (keyPointId[key] === undefined) { - if (pointKeys[vIdx] === undefined) { - pointKeys[vIdx] = [key]; - } else { - pointKeys[vIdx].push(key); - ++duplicatesCount; - } - // will be overwritten for duplicates - keyPointId[key] = vIdx; - } - } - } - pointDuplicatesReferences = new Uint16Array(nbPoints + duplicatesCount); - let duplicates = 0; - for (let pointId = 0; pointId < pointKeys.length; ++pointId) { - const usageCount = pointKeys[pointId] ? pointKeys[pointId].length : 0; - // Set the first duplicate index on the original point - pointDuplicatesReferences[pointId] = usageCount > 1 ? nbPoints + duplicates : pointId; - // Set the original index on each duplicated point - for (let duplicateId = 1; duplicateId < usageCount; ++duplicateId) { - const finalDuplicateId = nbPoints + duplicates++; - pointDuplicatesReferences[finalDuplicateId] = pointId; - // Associate the duplicate index to the key - keyPointId[pointKeys[pointId][duplicateId]] = finalDuplicateId; - } - } - } - const ctMapping = {}; - const polydata = vtkPolyData.newInstance({ - name: data.pieces[idx] - }); - const pts = []; - const tc = []; - const normals = []; - const polys = []; - let offset = 0; - while (offset < nbElems) { - const cellSize = polyIn[offset]; - polys.push(cellSize); - for (let pIdx = 0; pIdx < cellSize; pIdx++) { - const [vIdx, tcIdx, nIdx] = polyIn[offset + pIdx + 1]; - const key = `${vIdx}/${tcIdx}/${nIdx}`; - if (ctMapping[key] === undefined) { - const dstOffset = model.trackDuplicates ? keyPointId[key] : pts.length / 3; - ctMapping[key] = dstOffset; - copyVector(data.v, vIdx * 3, pts, dstOffset * 3, 3); - if (hasTcoords) { - copyVector(data.vt, tcIdx * 2, tc, dstOffset * 2, 2); - } - if (hasNormals) { - copyVector(data.vn, nIdx * 3, normals, dstOffset * 3, 3); - } - } - polys.push(ctMapping[key]); - } - offset += cellSize + 1; - } - polydata.getPoints().setData(Float32Array.from(pts), 3); - if (model.trackDuplicates) { - const duplicatesArray = vtkDataArray.newInstance({ - name: 'Duplicates', - values: pointDuplicatesReferences - }); - polydata.getPointData().addArray(duplicatesArray); - } - polydata.getPolys().setData(Uint32Array.from(polys)); - if (hasTcoords) { - const tcoords = vtkDataArray.newInstance({ - numberOfComponents: 2, - values: Float32Array.from(tc), - name: 'TextureCoordinates' - }); - polydata.getPointData().setTCoords(tcoords); - } - if (hasNormals) { - const normalsArray = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: Float32Array.from(normals), - name: 'Normals' - }); - polydata.getPointData().setNormals(normalsArray); - } - - // register in output - model.output[idx] = polydata; - } - } else { - model.numberOfOutputs = 1; - const polydata = vtkPolyData.newInstance(); - polydata.getPoints().setData(Float32Array.from(data.v), 3); - if (hasTcoords && data.v.length / 3 === data.vt.length / 2) { - const tcoords = vtkDataArray.newInstance({ - numberOfComponents: 2, - values: Float32Array.from(data.vt), - name: 'TextureCoordinates' - }); - polydata.getPointData().setTCoords(tcoords); - } - if (hasNormals && data.v.length === data.vn.length) { - const normalsArray = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: Float32Array.from(data.vn), - name: 'Normals' - }); - polydata.getPointData().setNormals(normalsArray); - } - const polys = []; - const polyIn = data.f[0]; - const nbElems = polyIn.length; - let offset = 0; - while (offset < nbElems) { - const cellSize = polyIn[offset]; - polys.push(cellSize); - for (let pIdx = 0; pIdx < cellSize; pIdx++) { - const [vIdx] = polyIn[offset + pIdx + 1]; - polys.push(vIdx); - } - offset += cellSize + 1; - } - polydata.getPolys().setData(Uint32Array.from(polys)); - model.output[0] = polydata; - } -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -function getPointDuplicateIds(polyData, pointId) { - const res = []; - const duplicates = polyData.getPointData().getArrayByName('Duplicates'); - if (duplicates == null) { - return res; - } - const duplicatesData = duplicates.getData(); - const originalPointId = Math.min(pointId, duplicatesData[pointId]); - res.push(originalPointId); - let duplicateId = duplicatesData[originalPointId]; - if (duplicateId !== originalPointId) { - // point has duplicates - while (duplicateId < duplicatesData.length && duplicatesData[duplicateId] === originalPointId) { - // Duplicated points must be next to each other and original point must - // reference first duplicate - res.push(duplicateId++); - } - } - return res; -} -const STATIC = { - getPointDuplicateIds -}; - -// ---------------------------------------------------------------------------- -// vtkOBJReader methods -// ---------------------------------------------------------------------------- - -function vtkOBJReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOBJReader'); - - // Create default dataAccessHelper if not available - if (!model.dataAccessHelper) { - model.dataAccessHelper = DataAccessHelper.get('http'); - } - - // Internal method to fetch Array - function fetchData(url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return model.dataAccessHelper.fetchText(publicAPI, url, option); - } - - // Set DataSet url - publicAPI.setUrl = function (url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - if (url.indexOf('.obj') === -1 && !option.fullpath) { - model.baseURL = url; - model.url = `${url}/index.obj`; - } else { - model.url = url; - - // Remove the file in the URL - const path = url.split('/'); - path.pop(); - model.baseURL = path.join('/'); - } - - // Fetch metadata - return publicAPI.loadData(option); - }; - - // Fetch the actual data arrays - publicAPI.loadData = function () { - let option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return fetchData(model.url, option).then(content => publicAPI.isDeleted() ? false : publicAPI.parseAsText(content)); - }; - publicAPI.parseAsText = content => { - if (!content) { - return true; - } - if (content !== model.parseData) { - publicAPI.modified(); - } - model.parseData = content; - model.numberOfOutputs = 0; - begin(model.splitMode); - content.split('\n').forEach(parseLine); - end(model); - return true; - }; - publicAPI.requestData = (inData, outData) => { - publicAPI.parseAsText(model.parseData); - }; - - // return Busy state - publicAPI.isBusy = () => !!model.requestCount; - publicAPI.getNumberOfOutputPorts = () => model.numberOfOutputs; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - numberOfOutputs: 1, - requestCount: 0, - splitMode: null, - trackDuplicates: false - // baseURL: null, - // dataAccessHelper: null, - // url: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['url', 'baseURL']); - macro.setGet(publicAPI, model, ['dataAccessHelper', 'splitMode', 'trackDuplicates']); - macro.algo(publicAPI, model, 0, 1); - macro.event(publicAPI, model, 'busy'); - - // Object methods - vtkOBJReader(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkOBJReader'); - -// ---------------------------------------------------------------------------- - -var vtkOBJReader$1 = { - newInstance, - extend, - ...STATIC -}; - -export { STATIC, vtkOBJReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/OBJWriter.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/OBJWriter.d.ts deleted file mode 100644 index 0f244887..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/OBJWriter.d.ts +++ /dev/null @@ -1,103 +0,0 @@ -import vtkPolyData from './../../Common/DataModel/PolyData'; -import vtkTexture from './../../Rendering/Core/Texture'; -import { vtkAlgorithm, vtkObject } from './../../interfaces'; - -/** - * - */ -export interface IOBJWriterInitialValues { - modelFilename?: string; - materialFilename?: string; - texture?: vtkTexture; - textureFileName?: string; -} - -type vtkOBJWriterBase = vtkObject & vtkAlgorithm; - -export interface vtkOBJWriter extends vtkOBJWriterBase { - /** - * Get the zip file containing the OBJ and MTL files. - */ - exportAsZip(): Promise; - - /** - * Get the MTL file as a string. - */ - getMtl(): string; - - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Set the material filename. - * @param materialFilename - * @returns {boolean} true if the material file name was set successfully - */ - setMaterialFilename(materialFilename: string): boolean; - - /** - * Set the model filename. - * @param modelFilename - */ - setModelFilename(modelFilename: string): boolean; - - /** - * Set the texture instance. - * @param {vtkTexture} texture - * @returns {boolean} true if the texture was set successfully - */ - setTexture(texture: vtkTexture): boolean; - - /** - * Set the texture file name. - * @param {string} textureFileName - * @returns {boolean} true if the texture file name was set successfully - */ - setTextureFileName(textureFileName: string): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkOBJWriter characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IOBJWriterInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IOBJWriterInitialValues -): void; - -/** - * Method used to create a new instance of vtkOBJWriter - * @param {IOBJWriterInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IOBJWriterInitialValues -): vtkOBJWriter; - -/** - * - * @param {vktPolyData} polyData - */ -export function writeOBJ(polyData: vtkPolyData): vtkPolyData; - -/** - * vtkOBJWriter writes wavefront obj (.obj) files in ASCII form. OBJ files - * contain the geometry including lines, triangles and polygons. Normals and - * texture coordinates on points are also written if they exist. - * - * One can specify a texture passing a vtkTexture using `setTexture`. If a texture is - * set, additional .mtl and .png files are generated. - */ -export declare const vtkOBJWriter: { - newInstance: typeof newInstance; - extend: typeof extend; - writeOBJ: typeof writeOBJ; -}; -export default vtkOBJWriter; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/OBJWriter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/OBJWriter.js deleted file mode 100644 index 0658becd..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/OBJWriter.js +++ /dev/null @@ -1,237 +0,0 @@ -import { strToU8, zipSync } from 'fflate'; -import { m as macro } from '../../macros2.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import vtkTriangleStrip from '../../Common/DataModel/TriangleStrip.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -// vtkOBJWriter methods -// ---------------------------------------------------------------------------- - -const writeFaces = (faces, withNormals, withTCoords) => { - let outputData = ''; - const fd = faces.getData(); - let offset = 0; - while (offset < fd.length) { - const faceSize = fd[offset++]; - outputData += 'f'; - for (let i = 0; i < faceSize; i++) { - outputData += ` ${fd[offset + i] + 1}`; - if (withTCoords) { - outputData += `/${fd[offset + i] + 1}`; - if (withNormals) { - outputData += `//${fd[offset + i] + 1}`; - } - } else if (withNormals) { - outputData += `//${fd[offset + i] + 1}`; - } - } - offset += faceSize; - outputData += '\n'; - } - return outputData; -}; -const writeLines = lines => { - let outputData = ''; - const ld = lines.getData(); - let offset = 0; - while (offset < ld.length) { - const lineSize = ld[offset++]; - outputData += 'l'; - for (let i = 0; i < lineSize; i++) { - outputData += ` ${ld[offset + i] + 1}`; - } - offset += lineSize; - outputData += '\n'; - } - return outputData; -}; -const writePoints = (pts, normals, tcoords) => { - const outputData = []; - const nbPts = pts.getNumberOfPoints(); - let p; - - // Positions - for (let i = 0; i < nbPts; i++) { - p = pts.getPoint(i); - outputData.push(`v ${p[0]} ${p[1]} ${p[2]}`); - } - - // Normals - if (normals) { - for (let i = 0; i < nbPts; i++) { - p = normals.getTuple(i); - outputData.push(`vn ${p[0]} ${p[1]} ${p[2]}`); - } - } - - // Textures - if (tcoords) { - for (let i = 0; i < nbPts; i++) { - p = tcoords.getTuple(i); - if (p[0] !== -1.0) { - outputData.push(`vt ${p[0]} ${p[1]}`); - } - } - } - return `${outputData.join('\n')}\n`; -}; -const writeMTL = (materialName, textureFileName) => { - const outputData = []; - outputData.push(`newmtl ${materialName}`); - outputData.push(`map_Kd ${textureFileName}`); - return outputData.join('\n'); -}; -const writeOBJ = (polyData, materialFilename, materialName) => { - let outputData = '# VTK.js generated OBJ File\n'; - const pts = polyData.getPoints(); - const polys = polyData.getPolys(); - const strips = polyData.getStrips() ? polyData.getStrips().getData() : null; - const lines = polyData.getLines(); - const normals = polyData.getPointData().getNormals(); - const tcoords = polyData.getPointData().getTCoords(); - const hasPtNormals = normals !== null; - const hasPtTCoords = tcoords !== null; - if (!pts) { - vtkErrorMacro('No data to write!'); - return outputData; - } - if (materialFilename) { - // Write material library - outputData += `mtllib ${materialFilename}\n`; - } - - // Write material if a texture is specified - if (materialName) { - // declare material in obj file - outputData += `usemtl ${materialName}\n`; - } - - // Write points - outputData += writePoints(pts, normals, tcoords); - - // Decompose any triangle strips into triangles - const polyStrips = vtkCellArray.newInstance(); - if (strips && strips.length > 0) { - vtkTriangleStrip.decomposeStrip(pts, polyStrips); - } - - // Write triangle strips - if (polyStrips.getNumberOfCells() > 0) { - outputData += writeFaces(polyStrips, hasPtNormals, hasPtTCoords); - } - - // Write polygons. - if (polys) { - outputData += writeFaces(polys, hasPtNormals, hasPtTCoords); - } - - // Write lines. - if (lines) { - outputData += writeLines(lines); - } - return outputData; -}; - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = { - writeOBJ -}; - -// ---------------------------------------------------------------------------- -// vtkOBJWriter methods -// ---------------------------------------------------------------------------- - -function vtkOBJWriter(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOBJWriter'); - publicAPI.exportAsZip = () => { - publicAPI.update(); - const modelFilename = model.modelFilename; - const materialFilename = model.materialFilename; - const textureFileName = model.textureFileName; - const imageData = model.texture.getInputAsJsImageData?.(); - const zipContent = {}; - zipContent[`${modelFilename}.obj`] = strToU8(model.output[0]); - zipContent[`${materialFilename}.mtl`] = strToU8(model.mtl); - const canvas = document.createElement('canvas'); - canvas.width = imageData.width; - canvas.height = imageData.height; - const ctx = canvas.getContext('2d'); - ctx.putImageData(imageData, 0, 0); - return new Promise(resolve => { - canvas.toBlob(async blob => { - const arrayBuffer = await blob.arrayBuffer(); - zipContent[`${textureFileName}.png`] = new Uint8Array(arrayBuffer); - resolve(zipSync(zipContent)); - }, 'image/png'); - }); - }; - publicAPI.requestData = (inData, outData) => { - const input = inData[0]; - if (!input || !input.isA('vtkPolyData')) { - vtkErrorMacro('Invalid or missing vtkPolyData input'); - return; - } - - // Update output - const materialFilename = `${model.materialFilename}.mtl`; - const textureFileName = `${model.textureFileName}.png`; - outData[0] = writeOBJ(input, materialFilename, model.materialName); - model.mtl = writeMTL(model.materialName, textureFileName); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - modelFilename: 'model', - materialName: 'mat_01', - materialFilename: 'material', - texture: null, - textureFileName: 'texture' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - macro.get(publicAPI, model, ['mtl']); - macro.set(publicAPI, model, ['modelFilename', 'materialFilename', 'texture', 'textureFileName']); - - // Object specific methods - vtkOBJWriter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkOBJWriter'); - -// ---------------------------------------------------------------------------- - -var vtkOBJWriter$1 = { - newInstance, - extend, - ...STATIC -}; - -export { STATIC, vtkOBJWriter$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/PDBReader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/PDBReader.d.ts deleted file mode 100644 index 6790db74..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/PDBReader.d.ts +++ /dev/null @@ -1,145 +0,0 @@ -import { vtkAlgorithm, vtkObject, vtkSubscription } from './../../interfaces'; -import { HtmlDataAccessHelper } from './../Core/DataAccessHelper/HtmlDataAccessHelper'; -import { HttpDataAccessHelper } from './../Core/DataAccessHelper/HttpDataAccessHelper'; -import { JSZipDataAccessHelper } from './../Core/DataAccessHelper/JSZipDataAccessHelper'; -import { LiteHttpDataAccessHelper } from './../Core/DataAccessHelper/LiteHttpDataAccessHelper'; - -interface IPDBReaderOptions { - binary?: boolean; - compression?: string; - progressCallback?: any; -} - -/** - * - */ -export interface IPDBReaderInitialValues { - numberOfAtoms?: number; - requestCount?: number; -} - -type vtkPDBReaderBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkPDBReader extends vtkPDBReaderBase { - /** - * - */ - getBaseURL(): string; - - /** - * - */ - getDataAccessHelper(): - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper; - - /** - * Get the url of the object to load. - */ - getUrl(): string; - - /** - * - */ - getNumberOfAtoms(): number; - - /** - * - */ - getRequestCount(): number; - - /** - * - * @param {Boolean} busy - */ - invokeBusy(busy: boolean): void; - - /** - * - */ - isBusy(): number; - - /** - * Load the object data. - * @param {IPDBReaderOptions} [options] - */ - loadData(options?: IPDBReaderOptions): Promise; - - /** - * - * @param callback - */ - onBusy(callback: (busy: boolean) => any): vtkSubscription; - - /** - * Parse data as text. - * @param {String} content The content to parse. - */ - parseAsText(content: string): void; - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * - * @param dataAccessHelper - */ - setDataAccessHelper( - dataAccessHelper: - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper - ): boolean; - - /** - * Set the url of the object to load. - * @param {String} url the url of the object to load. - * @param {IPDBReaderOptions} [option] The PDB reader options. - */ - setUrl(url: string, option?: IPDBReaderOptions): Promise; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkPDBReader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPDBReaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPDBReaderInitialValues -): void; - -/** - * Method used to create a new instance of vtkPDBReader - * @param {IPDBReaderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IPDBReaderInitialValues -): vtkPDBReader; - -/** - * vtkPDBReader is a source object that reads Molecule files. - */ -export declare const vtkPDBReader: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkPDBReader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/PDBReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/PDBReader.js deleted file mode 100644 index 06839083..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/PDBReader.js +++ /dev/null @@ -1,188 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkMolecule from '../../Common/DataModel/Molecule.js'; -import DataAccessHelper from '../Core/DataAccessHelper.js'; -import { A as ATOMS } from '../../Utilities/XMLConverter/chemistry-mapper/elements.json.js'; -import '../Core/DataAccessHelper/LiteHttpDataAccessHelper.js'; - -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HttpDataAccessHelper'; // HTTP + gz -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HtmlDataAccessHelper'; // html + base64 + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/JSZipDataAccessHelper'; // zip - -// ---------------------------------------------------------------------------- -// vtkPDBReader methods -// ---------------------------------------------------------------------------- - -function vtkPDBReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPDBReader'); - - // Create default dataAccessHelper if not available - if (!model.dataAccessHelper) { - model.dataAccessHelper = DataAccessHelper.get('http'); - } - - // Internal method to fetch Array - function fetchPDB(url, option) { - return model.dataAccessHelper.fetchText(publicAPI, url, option); - } - - // Set DataSet url - publicAPI.setUrl = (url, option) => { - if (url.indexOf('.pdb') === -1) { - model.baseURL = url; - model.url = `${url}`; // `${url}/index.pdb`; - } else { - model.url = url; - - // Remove the file in the URL - const path = url.split('/'); - path.pop(); - model.baseURL = path.join('/'); - } - - // Fetch metadata - return publicAPI.loadData(option); - }; - - // Fetch the actual data arrays - publicAPI.loadData = option => fetchPDB(model.url, option).then(publicAPI.parseAsText); - publicAPI.parseAsText = txt => { - model.pdb = txt; - model.molecule = []; - model.molecule = model.pdb.split('\n'); - publicAPI.modified(); - return true; - }; - publicAPI.requestData = (inData, outData) => { - const moleculedata = vtkMolecule.newInstance(); - if (model.molecule) { - const jSize = model.molecule.length; - - // atom position - const pointValues = []; - - // atomicNumber - const atomicNumber = []; - model.numberOfAtoms = 0; - let j = 0; - while (j < jSize && model.molecule[j] !== 'END') { - const iSize = model.molecule[j].length; - const linebuf = model.molecule[j]; - const command = linebuf.substr(0, 6).replace(/\s+/g, ''); - command.toUpperCase(); - - // Parse lines - if (command === 'ATOM' || command === 'HETATM') { - const dum1 = linebuf.substr(12, 4).replace(/\s+/g, ''); - // const dum2 = (linebuf.substr(17, 3)).replace(/\s+/g, ''); - // const chain = (linebuf.substr(21, 1)).replace(/\s+/g, ''); - // const resi = ((linebuf.substr(22, 8)).replace(/\s+/g, '')).replace(/\D/g, ''); - const x = linebuf.substr(30, 8).replace(/\s+/g, ''); - const y = linebuf.substr(38, 8).replace(/\s+/g, ''); - const z = linebuf.substr(46, 8).replace(/\s+/g, ''); - let elem = ''; - if (iSize >= 78) { - elem = linebuf.substr(76, 2).replace(/\s+/g, ''); - } - if (elem === '') { - // if element symbol was not specified, just use the "Atom name". - elem = dum1.substr(0, 2).replace(/\d/g, ''); - } - - // fill polydata - // atoms position - pointValues.push(x); - pointValues.push(y); - pointValues.push(z); - - // fetch data from the element database elements.json - const [atomicNumberData] = ATOMS[elem]; - - // atoms atomicNumber - atomicNumber.push(atomicNumberData); - - // residue.push(resi); - // chain.push(chain); - // atomType.push(elem); - // atomTypeStrings.push(dum1); - // isHetatm.push(command === 'HETATM'); - - model.numberOfAtoms++; - } // if atom or hetatm - - /* - else if (command === 'SHEET') { - const startChain = (linebuf.substr(21,1)).replace(/\s+/g, ''); - const startResi = (linebuf.substr(22,4)).replace(/\s+/g, '').replace(/\D/g, ''); - const endChain = (linebuf.substr(32,1)).replace(/\s+/g, ''); - const endResi = (linebuf.substr(33,4)).replace(/\s+/g, '').replace(/\D/g, '');; - const tuple = { startChain, startResi, endChain, endResi }; - sheets.push(tuple); - } - else if (command === 'HELIX') { - const startChain = (linebuf.substr(19,2)).replace(/\s+/g, ''); - const startResi = (linebuf.substr(21,4)).replace(/\s+/g, '').replace(/\D/g, '');; - const endChain = (linebuf.substr(31,2)).replace(/\s+/g, ''); - const endResi = (linebuf.substr(33,4)).replace(/\s+/g, '').replace(/\D/g, '');; - const tuple = { startChain, startResi, endChain, endResi }; - helix.push(tuple); - } - */ - j++; - } // lines loop (j) - - // fill molecule class - moleculedata.getAtoms().elements = {}; - moleculedata.getAtoms().elements.number = Int8Array.from(atomicNumber); - moleculedata.getAtoms().coords = {}; - moleculedata.getAtoms().coords['3d'] = Float32Array.from(pointValues); - } // if model.molecule - - model.output[0] = moleculedata; - }; - - // return Busy state - publicAPI.isBusy = () => !!model.requestCount; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - numberOfAtoms: 0, - requestCount: 0 - // baseURL: null, - // dataAccessHelper: null, - // url: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['url', 'baseURL', 'numberOfAtoms', 'requestCount']); - macro.setGet(publicAPI, model, ['dataAccessHelper']); - macro.algo(publicAPI, model, 0, 1); - macro.event(publicAPI, model, 'busy'); - - // Object methods - vtkPDBReader(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPDBReader'); - -// ---------------------------------------------------------------------------- - -var vtkPDBReader$1 = { - newInstance, - extend -}; - -export { vtkPDBReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/SkyboxReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/SkyboxReader.js deleted file mode 100644 index dab22bea..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/Misc/SkyboxReader.js +++ /dev/null @@ -1,223 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import ImageHelper from '../../Common/Core/ImageHelper.js'; -import vtkTexture from '../../Rendering/Core/Texture.js'; -import { unzipSync, strFromU8 } from 'fflate'; - -// ---------------------------------------------------------------------------- -// vtkSkyboxReader methods -// ---------------------------------------------------------------------------- - -function vtkSkyboxReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkSkyboxReader'); - - // Internal method to fetch Array - function fetchData(url) { - const { - compression, - progressCallback - } = model; - return model.dataAccessHelper.fetchBinary(url, { - compression, - progressCallback - }); - } - - // Set DataSet url - publicAPI.setUrl = function (url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - model.url = url; - - // Fetch metadata - return publicAPI.loadData(option); - }; - - // Fetch the actual data arrays - publicAPI.loadData = function () { - return fetchData(model.url).then(publicAPI.parseAsArrayBuffer); - }; - publicAPI.parseAsArrayBuffer = content => { - if (!content) { - return false; - } - model.textures = {}; - model.busy = true; - publicAPI.invokeBusy(model.busy); - model.dataMapping = {}; - const imageReady = []; - - // Finish data processing - function workDone() { - for (let i = 0; i < model.positions.length; i++) { - const key = model.positions[i]; - const images = model.dataMapping[key]; - if (!model.textures[key]) { - model.textures[key] = vtkTexture.newInstance({ - interpolate: true - }); - } - if (images) { - const texture = model.textures[key]; - for (let idx = 0; idx < 6; idx++) { - const { - fileName, - transform - } = model.faceMapping[idx]; - const readyIndex = imageReady.indexOf(`${key}/${fileName}`); - if (readyIndex !== -1) { - texture.setInputData(ImageHelper.imageToImageData(images[fileName], transform), idx); - - // Free image - URL.revokeObjectURL(images[fileName].src); - delete images[fileName]; - - // Don't process again - imageReady.splice(readyIndex, 1); - } - } - } - } - model.busy = false; - publicAPI.modified(); - publicAPI.invokeBusy(model.busy); - } - const decompressedFiles = unzipSync(new Uint8Array(content)); - const pending = []; - // Find root index.json - Object.entries(decompressedFiles).forEach(_ref => { - let [relativePath, fileData] = _ref; - if (relativePath.match(/index.json$/)) { - const txt = strFromU8(fileData); - const config = JSON.parse(txt); - if (config.skybox && config.skybox.faceMapping) { - model.faceMapping = config.skybox.faceMapping; - } - if (config.metadata && config.metadata.skybox && config.metadata.skybox.faceMapping) { - model.faceMapping = config.metadata.skybox.faceMapping; - } - } - if (relativePath.match(/\.jpg$/)) { - const pathTokens = relativePath.split('/'); - const fileName = pathTokens.pop(); - const key = pathTokens.pop(); - if (!model.dataMapping[key]) { - model.dataMapping[key] = {}; - } - const blob = new Blob([fileData.buffer]); - const img = new Image(); - const readyKey = `${key}/${fileName}`; - model.dataMapping[key][fileName] = img; - pending.push(new Promise(resolve => { - img.onload = () => { - imageReady.push(readyKey); - resolve(); - }; - })); - img.src = URL.createObjectURL(blob); - } - }); - model.positions = Object.keys(model.dataMapping); - model.position = model.positions[0]; - Promise.all(pending).then(() => { - workDone(); - }); - return publicAPI.getReadyPromise(); - }; - publicAPI.requestData = (inData, outData) => { - outData[0] = model.textures[model.position]; - }; - publicAPI.setPosition = name => { - if (model.positions.indexOf(name) !== -1 && name !== model.position) { - model.position = name; - publicAPI.modified(); - } - }; - publicAPI.getReadyPromise = () => { - if (!model.busy) { - return Promise.resolve(publicAPI); - } - return new Promise((resolve, reject) => { - const subscription = publicAPI.onBusy(isBusy => { - if (!isBusy) { - subscription.unsubscribe(); - resolve(publicAPI); - } - }); - }); - }; - - // return Busy state - publicAPI.isBusy = () => model.busy; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // url: null, - busy: false, - // everything must be flipped in Y due to canvas - // versus vtk ordering - faceMapping: [{ - fileName: 'right.jpg', - transform: { - flipY: true - } - }, { - fileName: 'left.jpg', - transform: { - flipY: true - } - }, { - fileName: 'up.jpg', - transform: { - flipY: true - } - }, { - fileName: 'down.jpg', - transform: { - flipY: true - } - }, { - fileName: 'back.jpg', - transform: { - flipY: true - } - }, { - fileName: 'front.jpg', - transform: { - flipY: true - } - }] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['url', 'positions', 'position']); - macro.setGet(publicAPI, model, ['faceMapping']); - macro.event(publicAPI, model, 'busy'); - macro.algo(publicAPI, model, 0, 6); - - // Object methods - vtkSkyboxReader(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSkyboxReader'); - -// ---------------------------------------------------------------------------- - -var vtkSkyboxReader$1 = { - newInstance, - extend -}; - -export { vtkSkyboxReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML.js deleted file mode 100644 index 4aefba97..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML.js +++ /dev/null @@ -1,17 +0,0 @@ -import vtkXMLImageDataReader from './XML/XMLImageDataReader.js'; -import vtkXMLImageDataWriter from './XML/XMLImageDataWriter.js'; -import vtkXMLPolyDataReader from './XML/XMLPolyDataReader.js'; -import vtkXMLPolyDataWriter from './XML/XMLPolyDataWriter.js'; -import vtkXMLReader from './XML/XMLReader.js'; -import vtkXMLWriter from './XML/XMLWriter.js'; - -var XML = { - vtkXMLImageDataReader, - vtkXMLImageDataWriter, - vtkXMLPolyDataReader, - vtkXMLPolyDataWriter, - vtkXMLReader, - vtkXMLWriter -}; - -export { XML as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLImageDataReader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLImageDataReader.d.ts deleted file mode 100644 index a592ffbe..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLImageDataReader.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -import vtkXMLReader, { IXMLReaderInitialValues } from './XMLReader'; - -/** - * - */ -export interface IXMLImageDataReaderInitialValues - extends IXMLReaderInitialValues { - dataType?: string; -} - -export interface vtkXMLImageDataReader extends vtkXMLReader { - /** - * Parse data as XML. - * @param rootElem - * @param type - * @param {String} compressor - * @param {String} byteOrder - * @param {String} headerType - */ - parseXML( - rootElem: any, - type: any, - compressor: string, - byteOrder: string, - headerType: string - ): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkXMLImageDataReader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IXMLImageDataReaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IXMLImageDataReaderInitialValues -): void; - -/** - * Method used to create a new instance of vtkPLYReader - * @param {IXMLImageDataReaderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IXMLImageDataReaderInitialValues -): vtkXMLImageDataReader; - -/** - * vtkXMLImageDataReader is a source object that parses a VTK XML input file. - */ -export declare const vtkXMLImageDataReader: { - extend: typeof extend; - newInstance: typeof newInstance; -}; -export default vtkXMLImageDataReader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLImageDataReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLImageDataReader.js deleted file mode 100644 index 7779d6c8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLImageDataReader.js +++ /dev/null @@ -1,68 +0,0 @@ -import vtkXMLReader from './XMLReader.js'; -import { m as macro } from '../../macros2.js'; -import vtkImageData from '../../Common/DataModel/ImageData.js'; - -// ---------------------------------------------------------------------------- -// vtkXMLImageDataReader methods -// ---------------------------------------------------------------------------- - -function vtkXMLImageDataReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkXMLImageDataReader'); - publicAPI.parseXML = (rootElem, type, compressor, byteOrder, headerType) => { - const imageDataElem = rootElem.getElementsByTagName(model.dataType)[0]; - const origin = imageDataElem.getAttribute('Origin').split(' ').map(t => Number(t)); - const spacing = imageDataElem.getAttribute('Spacing').split(' ').map(t => Number(t)); - const direction = imageDataElem.getAttribute('Direction')?.split(' ').map(t => Number(t)); - const pieces = imageDataElem.getElementsByTagName('Piece'); - const nbPieces = pieces.length; - for (let outputIndex = 0; outputIndex < nbPieces; outputIndex++) { - // Create image data - const piece = pieces[outputIndex]; - const extent = piece.getAttribute('Extent').split(' ').map(t => Number(t)); - const imageData = vtkImageData.newInstance({ - origin, - spacing, - direction, - extent - }); - - // Fill data - vtkXMLReader.processFieldData(imageData.getNumberOfPoints(), piece.getElementsByTagName('PointData')[0], imageData.getPointData(), compressor, byteOrder, headerType, model.binaryBuffer); - vtkXMLReader.processFieldData(imageData.getNumberOfCells(), piece.getElementsByTagName('CellData')[0], imageData.getCellData(), compressor, byteOrder, headerType, model.binaryBuffer); - - // Add new output - model.output[outputIndex] = imageData; - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - dataType: 'ImageData' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkXMLReader.extend(publicAPI, model, initialValues); - vtkXMLImageDataReader(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkXMLImageDataReader'); - -// ---------------------------------------------------------------------------- - -var vtkXMLImageDataReader$1 = { - newInstance, - extend -}; - -export { vtkXMLImageDataReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLImageDataWriter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLImageDataWriter.js deleted file mode 100644 index dbc1465c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLImageDataWriter.js +++ /dev/null @@ -1,65 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkXMLWriter from './XMLWriter.js'; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -// vtkXMLImageDataWriter methods -// ---------------------------------------------------------------------------- - -function vtkXMLImageDataWriter(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkXMLImageDataWriter'); - - // Capture "parentClass" api for internal use - const superClass = { - ...publicAPI - }; - publicAPI.create = dataObject => { - const parent = superClass.create(dataObject); - const imageData = parent.ele('ImageData', { - WholeExtent: dataObject.getExtent().join(' '), - Origin: dataObject.getOrigin().join(' '), - Spacing: dataObject.getSpacing().join(' '), - Direction: dataObject.getDirection().join(' ') - }); - const piece = imageData.ele('Piece', { - Extent: dataObject.getExtent().join(' ') - }); - publicAPI.processDataSetAttributes(piece, 'PointData', dataObject.getPointData()); - publicAPI.processDataSetAttributes(piece, 'CellData', dataObject.getCellData()); - return parent; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - dataType: 'ImageData' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkXMLWriter.extend(publicAPI, model, initialValues); - vtkXMLImageDataWriter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkXMLImageDataWriter'); - -// ---------------------------------------------------------------------------- - -var vtkXMLImageDataWriter$1 = { - newInstance, - extend -}; - -export { vtkXMLImageDataWriter$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLPolyDataReader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLPolyDataReader.d.ts deleted file mode 100644 index 2dd6c9a5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLPolyDataReader.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -import vtkXMLReader, { IXMLReaderInitialValues } from './XMLReader'; - -/** - * - */ -export interface IXMLPolyDataReaderInitialValues - extends IXMLReaderInitialValues { - dataType?: string; -} - -export interface vtkXMLPolyDataReader extends vtkXMLReader { - /** - * Parse data as XML. - * @param rootElem - * @param type - * @param {String} compressor - * @param {String} byteOrder - * @param {String} headerType - */ - parseXML( - rootElem: any, - type: any, - compressor: string, - byteOrder: string, - headerType: string - ): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkXMLPolyDataReader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IXMLPolyDataReaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IXMLPolyDataReaderInitialValues -): void; - -/** - * Method used to create a new instance of vtkPLYReader - * @param {IXMLPolyDataReaderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IXMLPolyDataReaderInitialValues -): vtkXMLPolyDataReader; - -/** - * vtkXMLPolyDataReader is a source object that parses a VTK XML input file. - */ -export declare const vtkXMLPolyDataReader: { - extend: typeof extend; - newInstance: typeof newInstance; -}; -export default vtkXMLPolyDataReader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLPolyDataReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLPolyDataReader.js deleted file mode 100644 index d9ed3238..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLPolyDataReader.js +++ /dev/null @@ -1,96 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkXMLReader from './XMLReader.js'; - -// ---------------------------------------------------------------------------- -// Global method -// ---------------------------------------------------------------------------- - -function handleArray(polydata, cellType, piece, compressor, byteOrder, headerType, binaryBuffer) { - const size = Number(piece.getAttribute(`NumberOf${cellType}`)); - if (size > 0) { - const dataArrayElem = piece.getElementsByTagName(cellType)[0].getElementsByTagName('DataArray')[0]; - const { - values, - numberOfComponents - } = vtkXMLReader.processDataArray(size, dataArrayElem, compressor, byteOrder, headerType, binaryBuffer); - polydata[`get${cellType}`]().setData(values, numberOfComponents); - } - return size; -} - -// ---------------------------------------------------------------------------- - -function handleCells(polydata, cellType, piece, compressor, byteOrder, headerType, binaryBuffer) { - const size = Number(piece.getAttribute(`NumberOf${cellType}`)); - if (size > 0) { - const values = vtkXMLReader.processCells(size, piece.getElementsByTagName(cellType)[0], compressor, byteOrder, headerType, binaryBuffer); - polydata[`get${cellType}`]().setData(values); - } - return size; -} - -// ---------------------------------------------------------------------------- -// vtkXMLPolyDataReader methods -// ---------------------------------------------------------------------------- - -function vtkXMLPolyDataReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkXMLPolyDataReader'); - publicAPI.parseXML = (rootElem, type, compressor, byteOrder, headerType) => { - const datasetElem = rootElem.getElementsByTagName(model.dataType)[0]; - const pieces = datasetElem.getElementsByTagName('Piece'); - const nbPieces = pieces.length; - for (let outputIndex = 0; outputIndex < nbPieces; outputIndex++) { - // Create dataset - const polydata = vtkPolyData.newInstance(); - const piece = pieces[outputIndex]; - - // Points - const nbPoints = handleArray(polydata, 'Points', piece, compressor, byteOrder, headerType, model.binaryBuffer); - - // Cells - let nbCells = 0; - ['Verts', 'Lines', 'Strips', 'Polys'].forEach(cellType => { - nbCells += handleCells(polydata, cellType, piece, compressor, byteOrder, headerType, model.binaryBuffer); - }); - - // Fill data - vtkXMLReader.processFieldData(nbPoints, piece.getElementsByTagName('PointData')[0], polydata.getPointData(), compressor, byteOrder, headerType, model.binaryBuffer); - vtkXMLReader.processFieldData(nbCells, piece.getElementsByTagName('CellData')[0], polydata.getCellData(), compressor, byteOrder, headerType, model.binaryBuffer); - - // Add new output - model.output[outputIndex] = polydata; - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - dataType: 'PolyData' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkXMLReader.extend(publicAPI, model, initialValues); - vtkXMLPolyDataReader(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkXMLPolyDataReader'); - -// ---------------------------------------------------------------------------- - -var vtkXMLPolyDataReader$1 = { - newInstance, - extend -}; - -export { vtkXMLPolyDataReader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLPolyDataWriter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLPolyDataWriter.js deleted file mode 100644 index b3149818..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLPolyDataWriter.js +++ /dev/null @@ -1,103 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkXMLWriter from './XMLWriter.js'; -import { POLYDATA_FIELDS } from '../../Common/DataModel/PolyData/Constants.js'; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -// vtkXMLPolyDataWriter methods -// ---------------------------------------------------------------------------- - -function vtkXMLPolyDataWriter(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkXMLPolyDataWriter'); - - // Capture "parentClass" api for internal use - const superClass = { - ...publicAPI - }; - function camelize(str) { - return str.replace(/(?:^\w|[A-Z]|\b\w)/g, letter => letter.toUpperCase()).replace(/\s+/g, ''); - } - publicAPI.create = dataObject => { - const parent = superClass.create(dataObject); - const polyData = parent.ele('PolyData', {}); - const piece = polyData.ele('Piece', { - NumberOfPoints: dataObject.getPoints().getNumberOfPoints(), - NumberOfVerts: dataObject.getNumberOfVerts(), - NumberOfLines: dataObject.getNumberOfLines(), - NumberOfStrips: dataObject.getNumberOfStrips(), - NumberOfPolys: dataObject.getNumberOfPolys() - }); - publicAPI.processDataSetAttributes(piece, 'PointData', dataObject.getPointData()); - publicAPI.processDataSetAttributes(piece, 'CellData', dataObject.getCellData()); - publicAPI.processDataSetAttributes(piece, 'FieldData', dataObject.getFieldData()); - publicAPI.processDataArray(piece.ele('Points'), dataObject.getPoints()); - POLYDATA_FIELDS.forEach(cellType => { - const cellTypeName = camelize(cellType); - const cells = dataObject[`get${cellTypeName}`](); - const connectivity = []; - const offsets = []; - const cellsData = cells.getData(); - let npts = cellsData[0]; - let offset = 0; - for (let i = 0; i < cellsData.length;) { - npts = cellsData[i++]; - for (let j = 0; j < npts; ++j) { - connectivity.push(cellsData[i++]); - } - offset += npts; - offsets.push(offset); - } - const connectivityDataArray = vtkDataArray.newInstance({ - numberOfComponents: 1, - name: 'connectivity', - values: Int32Array.from(connectivity) - }); - const offsetsDataArray = vtkDataArray.newInstance({ - numberOfComponents: 1, - name: 'offsets', - values: Int32Array.from(offsets) - }); - const cellEle = piece.ele(cellTypeName); - publicAPI.processDataArray(cellEle, connectivityDataArray); - publicAPI.processDataArray(cellEle, offsetsDataArray); - }); - return parent; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - dataType: 'PolyData' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkXMLWriter.extend(publicAPI, model, initialValues); - vtkXMLPolyDataWriter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkXMLPolyDataWriter'); - -// ---------------------------------------------------------------------------- - -var vtkXMLPolyDataWriter$1 = { - newInstance, - extend -}; - -export { vtkXMLPolyDataWriter$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLReader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLReader.d.ts deleted file mode 100644 index 601fddbb..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLReader.d.ts +++ /dev/null @@ -1,180 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { HtmlDataAccessHelper } from './../Core/DataAccessHelper/HtmlDataAccessHelper'; -import { HttpDataAccessHelper } from './../Core/DataAccessHelper/HttpDataAccessHelper'; -import { JSZipDataAccessHelper } from './../Core/DataAccessHelper/JSZipDataAccessHelper'; -import { LiteHttpDataAccessHelper } from './../Core/DataAccessHelper/LiteHttpDataAccessHelper'; - -interface IXMLReaderOptions { - binary?: boolean; - compression?: string; - progressCallback?: any; -} - -interface IRet { - name: string; - numberOfComponents: number; - values: any; -} - -/** - * - */ -export interface IXMLReaderInitialValues {} - -type vtkXMLReaderBase = vtkObject & - Omit< - vtkAlgorithm, - | 'getInputData' - | 'setInputData' - | 'setInputConnection' - | 'getInputConnection' - | 'addInputConnection' - | 'addInputData' - >; - -export interface vtkXMLReader extends vtkXMLReaderBase { - /** - * - */ - getBaseURL(): string; - - /** - * - */ - getDataAccessHelper(): - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper; - - /** - * Get the url of the object to load. - */ - getUrl(): string; - - /** - * Load the object data. - * @param {IXMLReaderOptions} [options] - */ - loadData(options?: IXMLReaderOptions): Promise; - - /** - * Parse data. - * @param {String | ArrayBuffer} content The content to parse. - */ - parse(content: string | ArrayBuffer): void; - - /** - * Parse data as ArrayBuffer. - * @param {ArrayBuffer} content The content to parse. - */ - parseAsArrayBuffer(content: ArrayBuffer): void; - - /** - * Parse data as text. - * @param {String} content The content to parse. - */ - parseAsText(content: string): void; - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * - * @param dataAccessHelper - */ - setDataAccessHelper( - dataAccessHelper: - | HtmlDataAccessHelper - | HttpDataAccessHelper - | JSZipDataAccessHelper - | LiteHttpDataAccessHelper - ): boolean; - - /** - * Set the url of the object to load. - * @param {String} url the url of the object to load. - * @param {IXMLReaderOptions} [option] The XML reader options. - */ - setUrl(url: string, option?: IXMLReaderOptions): Promise; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkXMLReader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IXMLReaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IXMLReaderInitialValues -): void; - -/** - * @param {Number} size - * @param {HTMLElement} dataArrayElem - * @param {String} compressor - * @param {String} byteOrder - * @param {String} headerType - * @param {ArrayBuffer} binaryBuffer - */ -export function processDataArray( - size: number, - dataArrayElem: HTMLElement, - compressor: string, - byteOrder: string, - headerType: string, - binaryBuffer: ArrayBuffer -): IRet; - -/** - * @param {Number} size - * @param {HTMLElement} containerElem - * @param {String} compressor - * @param {String} byteOrder - * @param {String} headerType - * @param {ArrayBuffer} binaryBuffer - */ -export function processCells( - size: number, - containerElem: HTMLElement, - compressor: string, - byteOrder: string, - headerType: string, - binaryBuffer: ArrayBuffer -): Uint32Array; - -/** - * @param {Number} size - * @param {HTMLElement} fieldElem - * @param {HTMLElement} fieldContainer - * @param {String} compressor - * @param {String} byteOrder - * @param {String} headerType - * @param {ArrayBuffer} binaryBuffer - */ -export function processFieldData( - size: number, - fieldElem: HTMLElement, - fieldContainer: HTMLElement, - compressor: string, - byteOrder: string, - headerType: string, - binaryBuffer: ArrayBuffer -): void; - -/** - * vtkXMLReader is a source object that parses a VTK XML input file. - */ -export declare const vtkXMLReader: { - extend: typeof extend; - processDataArray: typeof processDataArray; - processCells: typeof processCells; - processFieldData: typeof processFieldData; -}; -export default vtkXMLReader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLReader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLReader.js deleted file mode 100644 index d364dad2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLReader.js +++ /dev/null @@ -1,597 +0,0 @@ -import { create } from 'xmlbuilder2'; -import { decompressSync } from 'fflate'; -import DataAccessHelper from '../Core/DataAccessHelper.js'; -import Base64 from '../../Common/Core/Base64.js'; -import { m as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkStringArray from '../../Common/Core/StringArray.js'; -import BinaryHelper from '../Core/BinaryHelper.js'; -import '../Core/DataAccessHelper/LiteHttpDataAccessHelper.js'; - -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HttpDataAccessHelper'; // HTTP + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/HtmlDataAccessHelper'; // html + base64 + zip -// import 'vtk.js/Sources/IO/Core/DataAccessHelper/JSZipDataAccessHelper'; // zip - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -function findAllTags(node, tagName) { - return [...node.getElementsByTagName(tagName)]; -} -function findFirstTag(node, tagName) { - return findAllTags(node, tagName)[0]; -} -function parseXML(xmlStr) { - // see xmlbuilder2 docs on the object format - return create(xmlStr); -} -function extractAppendedData(buffer) { - // search for appended data tag - const prefixRegex = /^\s*\s*_/m; - const suffixRegex = /\n\s*<\/AppendedData>/m; - return BinaryHelper.extractBinary(buffer, prefixRegex, suffixRegex); -} - -// ---------------------------------------------------------------------------- - -const TYPED_ARRAY = { - Int8: Int8Array, - UInt8: Uint8Array, - Int16: Int16Array, - UInt16: Uint16Array, - Int32: Int32Array, - UInt32: Uint32Array, - Int64: Int32Array, - // Not supported with JavaScript will cause error in binary - UInt64: Uint32Array, - // Not supported with JavaScript will cause error in binary - Float32: Float32Array, - Float64: Float64Array -}; - -// ---------------------------------------------------------------------------- - -const TYPED_ARRAY_BYTES = { - Int8: 1, - UInt8: 1, - Int16: 2, - UInt16: 2, - Int32: 4, - UInt32: 4, - Int64: 8, - // Not supported with JavaScript will cause error in binary - UInt64: 8, - // Not supported with JavaScript will cause error in binary - Float32: 4, - Float64: 8 -}; - -// ---------------------------------------------------------------------------- - -function integer64to32(array) { - const maxIdx = array.length - 1; // Skip last - return array.filter((v, i) => i < maxIdx && i % 2 === 0); -} - -// ---------------------------------------------------------------------------- - -/** - * Reads the data of a length-prefixed blob. - * - * Int64 headers and values are not supported. - * - * @param {Uint8Array} uint8 a uint8 view of the length-prefixed blob. - * @param {string} dataType - * @param {string} headerType either UInt64 or UInt32 - */ -function readLengthPrefixedData(uint8, dataType, headerType) { - if (!['UInt64', 'UInt32'].includes(headerType)) { - throw new Error(`Cannot handle a header type of ${headerType}`); - } - let HeaderTypedArray = TYPED_ARRAY[headerType]; - let DataTypedArray = TYPED_ARRAY[dataType]; - let dataFallbackTo32 = false; - if (headerType === 'UInt64') { - HeaderTypedArray = TYPED_ARRAY.UInt32; - } - if (/^U?Int64$/.test(dataType)) { - dataFallbackTo32 = true; - DataTypedArray = TYPED_ARRAY[dataType.replace('64', '32')]; - } - const { - byteOffset - } = uint8; - const dataWordSize = TYPED_ARRAY_BYTES[dataType]; - const headerWordSize = TYPED_ARRAY_BYTES[headerType]; - - // slice if offset is not word aligned - let header; - if (byteOffset % headerWordSize === 0) { - header = new HeaderTypedArray(uint8.buffer, byteOffset, 1); - } else { - header = new HeaderTypedArray(uint8.buffer.slice(byteOffset, byteOffset + headerWordSize)); - } - const dataByteLength = Number(header[0]); - - // read values - let values; - let arraySize = dataByteLength / dataWordSize; - if (dataFallbackTo32) { - // We are reading int64 data with an int32 typed array. - arraySize *= 2; - } - - // slice if offset is not word aligned - const dataOffset = byteOffset + headerWordSize; - if (dataOffset % dataWordSize === 0) { - values = new DataTypedArray(uint8.buffer, dataOffset, arraySize); - } else { - values = new DataTypedArray(uint8.buffer.slice(dataOffset, dataOffset + dataByteLength)); - } - if (dataFallbackTo32) { - // remove higher order 32 bits - values = integer64to32(values); - } - return values; -} - -// ---------------------------------------------------------------------------- - -function readerHeader(uint8, headerType) { - // We do not handle endianness or if more than 32 bits are needed to encode the data - if (headerType === 'UInt64') { - const offset = 8; - let uint32 = new Uint32Array(uint8.buffer, 0, 6); - const nbBlocks = uint32[0]; - const s1 = uint32[2]; - const s2 = uint32[4]; - const resultArray = [offset, nbBlocks, s1, s2]; - uint32 = new Uint32Array(uint8.buffer, 3 * 8, nbBlocks * 2); - for (let i = 0; i < nbBlocks; i++) { - resultArray.push(uint32[i * 2]); - } - return resultArray; - } - // UInt32 - let uint32 = new Uint32Array(uint8.buffer, 0, 3); - const offset = 4; - const nbBlocks = uint32[0]; - const s1 = uint32[1]; - const s2 = uint32[2]; - const resultArray = [offset, nbBlocks, s1, s2]; - uint32 = new Uint32Array(uint8.buffer, 3 * 4, nbBlocks); - for (let i = 0; i < nbBlocks; i++) { - resultArray.push(uint32[i]); - } - return resultArray; -} - -// ---------------------------------------------------------------------------- - -/** - * Given the return value of readerHeader, return header byte length. - */ -function getHeaderByteLength(header, headerType) { - // ignore the first number, which isn't actually part of the header. - const [headerWordSize] = header; - return (header.length - 1) * headerWordSize; -} - -// ---------------------------------------------------------------------------- - -function uncompressBlock(compressedUint8, output) { - const uncompressedBlock = decompressSync(compressedUint8); - output.uint8.set(uncompressedBlock, output.offset); - output.offset += uncompressedBlock.length; -} - -// ---------------------------------------------------------------------------- - -function decompressZLib(bytes, headerType) { - // ---------------------------------------------------------------------- - // Layout of the data - // header[N, s1, s2, blockSize1, ..., blockSizeN], [padding???], block[compressedData], ..., block[compressedData] - // [header] N, s1 and s2 are uint 32 or 64 (defined by header_type="UInt64" attribute on the root node) - // [header] s1: uncompress size of each block except the last one - // [header] s2: uncompress size of the last blocks - // [header] blockSize: size of the block in compressed space that represent to bloc to inflate in zlib. (This also give the offset to the next block) - // ---------------------------------------------------------------------- - - // Header reading: [offset, numBlocks, s1, s2] - const header = readerHeader(bytes, headerType); - const nbBlocks = header[1]; - const s1 = header[2]; - const s2 = header[3]; - let dataByteLength = 0; - if (nbBlocks > 0) { - // If the last block's size is labeled as 0, that means the last block - // really has size header[2]. - if (s2 === 0) { - dataByteLength = nbBlocks * s1; - } else { - dataByteLength = (nbBlocks - 1) * s1 + s2; - } - } - const buffer = new ArrayBuffer(dataByteLength); - const output = { - offset: 0, - uint8: new Uint8Array(buffer) - }; - let offset = getHeaderByteLength(header); - // Starting from end of the data header, find the zlib header, which starts with 0x78. - // This accounts for any padding between the header and the compressed data. - while (offset < bytes.length && bytes[offset] !== 0x78) { - offset++; - } - for (let i = 0; i < nbBlocks; i++) { - const blockSize = header[4 + i]; - const compressedBlock = new Uint8Array(bytes.buffer, offset, blockSize); - uncompressBlock(compressedBlock, output); - offset += blockSize; - } - return output.uint8; -} - -// ---------------------------------------------------------------------------- - -function processDataArray(size, dataArrayElem, compressor, byteOrder, headerType, binaryBuffer) { - const dataType = dataArrayElem.getAttribute('type'); - const name = dataArrayElem.getAttribute('Name'); - const format = dataArrayElem.getAttribute('format'); // binary, ascii, appended - const numberOfComponents = Number(dataArrayElem.getAttribute('NumberOfComponents') || '1'); - let values = null; - if (format === 'ascii') { - values = new TYPED_ARRAY[dataType](size * numberOfComponents); - let offset = 0; - dataArrayElem.firstChild.nodeValue.split(/[\\t \\n]+/).forEach(token => { - if (token.trim().length) { - values[offset++] = Number(token); - } - }); - } else if (format === 'binary') { - const uint8 = new Uint8Array(Base64.toArrayBuffer(dataArrayElem.firstChild.nodeValue.trim())); - if (compressor === 'vtkZLibDataCompressor') { - const data = decompressZLib(uint8, headerType); - values = new TYPED_ARRAY[dataType](data.buffer); - - // Handle (u)int64 hoping for no overflow... - if (/^U?Int64$/.test(dataType)) { - values = integer64to32(values); - } - } else { - values = new TYPED_ARRAY[dataType](uint8.buffer, TYPED_ARRAY_BYTES[headerType]); - - // Handle (u)int64 hoping no overflow... - if (dataType.indexOf('Int64') !== -1) { - values = integer64to32(values); - } - } - } else if (format === 'appended') { - const offset = Number(dataArrayElem.getAttribute('offset')); - values = readLengthPrefixedData(new Uint8Array(binaryBuffer, offset), dataType, headerType); - } else { - console.error('Format not supported', format); - } - return { - name, - values, - numberOfComponents - }; -} - -// ---------------------------------------------------------------------------- - -function decodeStringArrayFromBytes(bytes) { - const decoder = new TextDecoder(); - const decoded = decoder.decode(bytes); - - // strings are null-terminated - return decoded.split('\x00').slice(0, -1); -} - -// ---------------------------------------------------------------------------- - -function processStringArray(stringArrayElem, compressor, byteOrder, headerType, binaryBuffer) { - const name = stringArrayElem.getAttribute('Name'); - const format = stringArrayElem.getAttribute('format'); // binary, ascii, appended - const numberOfComponents = Number(stringArrayElem.getAttribute('NumberOfComponents') || '1'); - const numberOfTuples = Number(stringArrayElem.getAttribute('NumberOfTuples') || '1'); - const nbStrings = numberOfTuples * numberOfComponents; - const strings = []; - if (format === 'ascii') { - const tokens = stringArrayElem.firstChild.nodeValue.trim().split(/\s+/); - let tokIdx = 0; - const strChars = []; - while (strings.length < nbStrings) { - const token = Number(tokens[tokIdx++]); - if (token === 0) { - strings.push(strChars.join('')); - strChars.length = 0; - } else { - strChars.push(String.fromCharCode(token)); - } - } - } else if (format === 'binary') { - const uint8 = new Uint8Array(Base64.toArrayBuffer(stringArrayElem.firstChild.nodeValue.trim())); - if (compressor === 'vtkZLibDataCompressor') { - const decompressed = decompressZLib(uint8, headerType); - strings.push(...decodeStringArrayFromBytes(decompressed)); - } else { - const strData = readLengthPrefixedData(uint8, 'UInt8', headerType); - strings.push(...decodeStringArrayFromBytes(strData)); - } - } else if (format === 'appended') { - const offset = Number(stringArrayElem.getAttribute('offset')); - const values = readLengthPrefixedData(new Uint8Array(binaryBuffer, offset), 'UInt8', headerType); - strings.push(...decodeStringArrayFromBytes(values)); - } else { - macro.vtkErrorMacro(`Format not supported: ${format}`); - } - return { - name, - values: strings, - numberOfComponents - }; -} - -// ---------------------------------------------------------------------------- - -function processCells(size, containerElem, compressor, byteOrder, headerType, binaryBuffer) { - const arrayElems = {}; - const dataArrayElems = containerElem.getElementsByTagName('DataArray'); - for (let elIdx = 0; elIdx < dataArrayElems.length; elIdx++) { - const el = dataArrayElems[elIdx]; - arrayElems[el.getAttribute('Name')] = el; - } - const offsets = processDataArray(size, arrayElems.offsets, compressor, byteOrder, headerType, binaryBuffer).values; - const connectivitySize = offsets[offsets.length - 1]; - const connectivity = processDataArray(connectivitySize, arrayElems.connectivity, compressor, byteOrder, headerType, binaryBuffer).values; - const values = new Uint32Array(size + connectivitySize); - let writeOffset = 0; - let previousOffset = 0; - offsets.forEach(v => { - const cellSize = v - previousOffset; - values[writeOffset++] = cellSize; - for (let i = 0; i < cellSize; i++) { - values[writeOffset++] = connectivity[previousOffset + i]; - } - - // save previous offset - previousOffset = v; - }); - return values; -} - -// ---------------------------------------------------------------------------- - -function processFieldData(size, fieldElem, fieldContainer, compressor, byteOrder, headerType, binaryBuffer) { - if (fieldElem) { - const attributes = ['Scalars', 'Vectors', 'Normals', 'Tensors', 'TCoords']; - const nameBinding = {}; - attributes.forEach(attrName => { - const arrayName = fieldElem.getAttribute(attrName); - if (arrayName) { - nameBinding[arrayName] = fieldContainer[`set${attrName}`]; - } - }); - const dataArrayElems = fieldElem.getElementsByTagName('DataArray'); - const nbArrays = dataArrayElems.length; - for (let idx = 0; idx < nbArrays; idx++) { - const array = dataArrayElems[idx]; - const dataArray = vtkDataArray.newInstance(processDataArray(size, array, compressor, byteOrder, headerType, binaryBuffer)); - const name = dataArray.getName(); - (nameBinding[name] || fieldContainer.addArray)(dataArray); - } - } -} - -// ---------------------------------------------------------------------------- -function handleFieldDataArrays(fieldDataElem, compressor, byteOrder, headerType, binaryBuffer) { - const dataArrays = [...fieldDataElem.getElementsByTagName('DataArray')].map(daElem => vtkDataArray.newInstance(processDataArray(Number(daElem.getAttribute('NumberOfTuples')), daElem, compressor, byteOrder, headerType, binaryBuffer))); - const stringArrays = [...fieldDataElem.getElementsByTagName('Array')].filter(elem => elem.getAttribute('type') === 'String').map(arrElem => { - const sa = vtkStringArray.newInstance(processStringArray(arrElem, compressor, byteOrder, headerType, binaryBuffer)); - return sa; - }); - return [...dataArrays, ...stringArrays]; -} - -// ---------------------------------------------------------------------------- -// vtkXMLReader methods -// ---------------------------------------------------------------------------- - -function vtkXMLReader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkXMLReader'); - - // Create default dataAccessHelper if not available - if (!model.dataAccessHelper) { - model.dataAccessHelper = DataAccessHelper.get('http'); - } - - // Internal method to fetch Array - function fetchData(url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return model.dataAccessHelper.fetchBinary(url, option); - } - - // Set DataSet url - publicAPI.setUrl = function (url) { - let option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - model.url = url; - - // Remove the file in the URL - const path = url.split('/'); - path.pop(); - model.baseURL = path.join('/'); - - // Fetch metadata - return publicAPI.loadData(option); - }; - - // Fetch the actual data arrays - publicAPI.loadData = function () { - let option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return fetchData(model.url, option).then(publicAPI.parseAsArrayBuffer); - }; - publicAPI.parseAsArrayBuffer = arrayBuffer => { - if (!arrayBuffer) { - return false; - } - if (arrayBuffer !== model.rawDataBuffer) { - publicAPI.modified(); - } else { - return true; - } - const { - text: content, - binaryBuffer - } = extractAppendedData(arrayBuffer); - model.rawDataBuffer = arrayBuffer; - model.binaryBuffer = binaryBuffer; - - // Parse data here... - const doc = parseXML(content); - const root = doc.root(); - const rootElem = root.node; - const type = rootElem.getAttribute('type'); - const compressor = rootElem.getAttribute('compressor'); - const byteOrder = rootElem.getAttribute('byte_order'); - // default to UInt32. I think version 0.1 vtp/vti files default to UInt32. - const headerType = rootElem.getAttribute('header_type') || 'UInt32'; - if (compressor && compressor !== 'vtkZLibDataCompressor') { - console.error('Invalid compressor', compressor); - return false; - } - if (byteOrder && byteOrder !== 'LittleEndian') { - console.error('Only LittleEndian encoding is supported'); - return false; - } - if (type !== model.dataType) { - console.error('Invalid data type', type, 'expecting', model.dataType); - return false; - } - - // appended format - if (findFirstTag(rootElem, 'AppendedData')) { - const appendedDataElem = findFirstTag(rootElem, 'AppendedData'); - const encoding = appendedDataElem.getAttribute('encoding'); - const arrays = root.filter(xmlNode => { - const { - node - } = xmlNode; - return node.nodeType === Node.ELEMENT_NODE && node.getAttribute('format') === 'appended' && node.hasAttribute('offset'); - }, false, true).map(xmlNode => ({ - node: xmlNode.node, - offset: Number(xmlNode.node.getAttribute('offset')) - })); - - // sort dataElems by increasing offset - arrays.sort((a, b) => a.offset - b.offset); - let appendedBuffer = model.binaryBuffer; - if (encoding === 'base64') { - // substr(1) is to remove the '_' prefix - appendedBuffer = appendedDataElem.textContent.trim().substr(1); - } - - // get data array chunks - const dataArrays = []; - for (let i = 0; i < arrays.length; ++i) { - const offset = arrays[i].offset; - let nextOffset = 0; - if (i === arrays.length - 1) { - nextOffset = appendedBuffer.length || appendedBuffer.byteLength; - } else { - nextOffset = arrays[i + 1].offset; - } - if (encoding === 'base64') { - dataArrays.push(new Uint8Array(Base64.toArrayBuffer(appendedBuffer.substring(offset, nextOffset)))); - } else { - // encoding === 'raw' - // Need to slice the ArrayBuffer so readerHeader() works properly - dataArrays.push(new Uint8Array(appendedBuffer.slice(offset, nextOffset))); - } - } - if (compressor === 'vtkZLibDataCompressor') { - for (let arrayidx = 0; arrayidx < dataArrays.length; ++arrayidx) { - const dataArray = dataArrays[arrayidx]; - const uncompressed = decompressZLib(dataArray, headerType); - const data = new Uint8Array(uncompressed.length + TYPED_ARRAY_BYTES[headerType]); - // set length header - // TODO this does not work for lengths that are greater than the max Uint32 value. - new TYPED_ARRAY[headerType](data.buffer, 0, 1)[0] = uncompressed.length; - data.set(uncompressed, TYPED_ARRAY_BYTES[headerType]); - dataArrays[arrayidx] = data; - } - } - const bufferLength = dataArrays.reduce((acc, arr) => acc + arr.length, 0); - const buffer = new ArrayBuffer(bufferLength); - const view = new Uint8Array(buffer); - for (let i = 0, offset = 0; i < dataArrays.length; ++i) { - // set correct offsets - arrays[i].node.setAttribute('offset', offset); - // set final buffer data - view.set(dataArrays[i], offset); - offset += dataArrays[i].length; - } - model.binaryBuffer = buffer; - if (!model.binaryBuffer) { - console.error('Processing appended data format: requires binaryBuffer to parse'); - return false; - } - } - publicAPI.parseXML(rootElem, type, compressor, byteOrder, headerType); - const datasetElem = rootElem.getElementsByTagName(type)[0]; - const fieldDataElem = datasetElem.getElementsByTagName('FieldData')[0]; - if (fieldDataElem) { - const fieldDataArrays = handleFieldDataArrays(fieldDataElem, compressor, byteOrder, headerType, model.binaryBuffer); - for (let i = 0; i < model.output.length; i++) { - const fieldData = model.output[i].getFieldData(); - for (let j = 0; j < fieldDataArrays.length; j++) { - fieldData.addArray(fieldDataArrays[j]); - } - } - } - return true; - }; - publicAPI.requestData = (inData, outData) => { - publicAPI.parseAsArrayBuffer(model.rawDataBuffer); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // baseURL: null, - // dataAccessHelper: null, - // url: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['url', 'baseURL']); - macro.setGet(publicAPI, model, ['dataAccessHelper']); - macro.algo(publicAPI, model, 0, 1); - - // vtkXMLReader methods - vtkXMLReader(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -var vtkXMLReader$1 = { - extend, - processDataArray, - processFieldData, - processCells -}; - -export { vtkXMLReader$1 as default, extend, findAllTags, findFirstTag }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLWriter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLWriter.js deleted file mode 100644 index f8895bf0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLWriter.js +++ /dev/null @@ -1,147 +0,0 @@ -import { create } from 'xmlbuilder2'; -import { zlibSync } from 'fflate'; -import { m as macro } from '../../macros2.js'; -import { fromArrayBuffer } from '../../Common/Core/Base64.js'; -import { FormatTypes, TYPED_ARRAY } from './XMLWriter/Constants.js'; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -function compressBlock(uncompressed) { - return zlibSync(uncompressed); -} -function processDataArray(dataArray, format, blockSize) { - let compressor = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'vtkZLibDataCompressor'; - if (format === FormatTypes.ASCII) { - return dataArray.getData().join(' '); - } - if (format === FormatTypes.BINARY) { - if (compressor === 'vtkZLibDataCompressor') { - // ---------------------------------------------------------------------- - // Layout of the data - // header[N, s1, s1, blockSize1, ..., blockSizeN], [padding???], block[compressedData], ..., block[compressedData] - // [header] N, s1 and s2 are uint 32 or 64 (defined by header_type="UInt64" attribute on the root node) - // [header] s1: uncompress size of each block except the last one - // [header] s2: uncompress size of the last blocks - // [header] blockSize: size of the block in compressed space that represent to bloc to inflate in zlib. (This also give the offset to the next block) - // ---------------------------------------------------------------------- - - const componentUint8Size = dataArray.getElementComponentSize(); - const uncompressedUint8Size = dataArray.getNumberOfValues() * componentUint8Size; - const blockUint8Size = blockSize; - const nbFullBlocks = Math.trunc(uncompressedUint8Size / blockUint8Size); - const lastBlockUint8Size = uncompressedUint8Size % blockUint8Size; - const nbBlocks = nbFullBlocks + (lastBlockUint8Size ? 1 : 0); - const header = new Uint32Array(3 + nbBlocks); - header[0] = nbBlocks; // N - header[1] = blockUint8Size; // s1 - header[2] = lastBlockUint8Size; // s2 - - let totalUint8Length = 0; - const blocks = []; - let dataOffset = 0; - const lastBlockId = nbBlocks - 1; - for (let blockId = 0; blockId < nbBlocks; ++blockId) { - const currentBlockUint8Size = lastBlockUint8Size === 0 || blockId < lastBlockId ? blockUint8Size : header[2]; - const uncompressedBlock = new Uint8Array(dataArray.getData().buffer, dataOffset, currentBlockUint8Size); - dataOffset += blockUint8Size; - const compressedUint8Block = compressBlock(uncompressedBlock); - blocks.push(compressedUint8Block); - header[3 + blockId] = compressedUint8Block.length; - totalUint8Length += compressedUint8Block.length; - } - const uint8 = new Uint8Array(totalUint8Length); - let uint8Offset = 0; - const headerUint8 = new Uint8Array(header.buffer); - for (let blockId = 0; blockId < nbBlocks; ++blockId) { - uint8.set(blocks[blockId], uint8Offset); - uint8Offset += header[3 + blockId]; - } - return fromArrayBuffer(headerUint8.buffer) + fromArrayBuffer(uint8.buffer); - } - throw new Error('Only vtkZLibDataCompressor is supported'); - } - if (format === FormatTypes.APPENDED) { - throw new Error('Appended format is not supported'); - } - throw new Error('Format is not supported'); -} - -// ---------------------------------------------------------------------------- -// vtkXMLWriter methods -// ---------------------------------------------------------------------------- - -function vtkXMLWriter(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkXMLWriter'); - - // Can be overridden in subclass - publicAPI.create = dataObject => create().ele('VTKFile').att('type', model.dataType).att('version', '0.1').att('byte_order', 'LittleEndian').att('header_type', 'UInt32').att('compressor', model.format === FormatTypes.ASCII ? '' : 'vtkZLibDataCompressor'); - publicAPI.write = object => publicAPI.create(object).end({ - pretty: true - }); - publicAPI.processDataSetAttributes = (parentElement, name, datasetAttributes) => { - const activeAttributes = {}; - const attrTypes = ['Scalars', 'Vectors', 'Normals', 'TCoords', 'Tensors', 'GlobalIds', 'PedigreeIds']; - attrTypes.forEach(attrType => { - const activeAttribute = datasetAttributes.getActiveAttribute(attrType); - if (activeAttribute) { - activeAttributes[attrType] = activeAttribute.getName(); - } - }); - const datasetAttributesEle = parentElement.ele(name, activeAttributes); - for (let i = 0; i < datasetAttributes.getNumberOfArrays(); ++i) { - publicAPI.processDataArray(datasetAttributesEle, datasetAttributes.getArrayByIndex(i)); - } - return datasetAttributesEle; - }; - publicAPI.processDataArray = (parentEle, scalars) => parentEle.ele('DataArray', { - type: TYPED_ARRAY[scalars.getDataType()], - Name: scalars.getName(), - format: publicAPI.getFormat(), - RangeMin: scalars.getRange()[0], - RangeMax: scalars.getRange()[1], - NumberOfComponents: scalars.getNumberOfComponents() - }).txt(processDataArray(scalars, publicAPI.getFormat(), publicAPI.getBlockSize())); - publicAPI.requestData = (inData, outData) => { - model.file = publicAPI.write(inData); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - blockSize: 1024, - // file: null, - format: FormatTypes.BINARY -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['blockSize', 'format']); - macro.get(publicAPI, model, ['file']); - macro.algo(publicAPI, model, 1, 0); - - // vtkXMLWriter methods - vtkXMLWriter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -var vtkXMLWriter$1 = { - extend, - compressBlock, - processDataArray, - FormatTypes -}; - -export { vtkXMLWriter$1 as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLWriter/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLWriter/Constants.js deleted file mode 100644 index 6af98854..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/XML/XMLWriter/Constants.js +++ /dev/null @@ -1,20 +0,0 @@ -const FormatTypes = { - ASCII: 'ascii', - BINARY: 'binary', - APPENDED: 'appended' -}; -const TYPED_ARRAY = { - Int8Array: 'Int8', - Uint8Array: 'UInt8', - Int16Array: 'Int16', - Uint16Array: 'UInt16', - Int32Array: 'Int32', - Uint32Array: 'UInt32', - Float32Array: 'Float32', - Float64Array: 'Float64' -}; -var Constants = { - FormatTypes -}; - -export { FormatTypes, TYPED_ARRAY, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/index.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/index.js deleted file mode 100644 index 97e5fbad..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/IO/index.js +++ /dev/null @@ -1,15 +0,0 @@ -import Core from './Core.js'; -import Geometry from './Geometry.js'; -import Legacy from './Legacy.js'; -import Misc from './Misc.js'; -import XML from './XML.js'; - -var IO = { - Core, - Geometry, - Legacy, - Misc, - XML -}; - -export { IO as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core.js deleted file mode 100644 index e47d636d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core.js +++ /dev/null @@ -1,13 +0,0 @@ -import vtkAbstractImageInterpolator from './Core/AbstractImageInterpolator.js'; -import vtkImageInterpolator from './Core/ImageInterpolator.js'; -import vtkImagePointDataIterator from './Core/ImagePointDataIterator.js'; -import vtkImageReslice from './Core/ImageReslice.js'; - -var Core = { - vtkAbstractImageInterpolator, - vtkImageInterpolator, - vtkImagePointDataIterator, - vtkImageReslice -}; - -export { Core as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/AbstractImageInterpolator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/AbstractImageInterpolator.js deleted file mode 100644 index b11de99e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/AbstractImageInterpolator.js +++ /dev/null @@ -1,187 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import Constants from './AbstractImageInterpolator/Constants.js'; -import { vtkInterpolationInfo } from './AbstractImageInterpolator/InterpolationInfo.js'; - -const { - ImageBorderMode -} = Constants; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -// vtkAbstractImageInterpolator methods -// ---------------------------------------------------------------------------- - -function vtkAbstractImageInterpolator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkAbstractImageInterpolator'); - publicAPI.initialize = data => { - publicAPI.releaseData(); - model.scalars = data.getPointData().getScalars(); - model.spacing = data.getSpacing(); - model.origin = data.getOrigin(); - model.extent = data.getExtent(); - publicAPI.update(); - }; - publicAPI.releaseData = () => { - model.scalars = null; - }; - publicAPI.update = () => { - if (!model.scalars) { - model.interpolationInfo.pointer = null; - model.interpolationInfo.numberOfComponents = 1; - return; - } - model.interpolationInfo.extent = model.extent.slice(); - const supportSize = publicAPI.computeSupportSize(null); - const kernelSize = Math.max(Math.max(supportSize[0], supportSize[1]), supportSize[2]); - const minBound = Number.MIN_SAFE_INTEGER + kernelSize / 2; - const maxBound = Number.MAX_SAFE_INTEGER - kernelSize / 2; - for (let i = 0; i < 3; ++i) { - const newTol = Math.max(0.5 * (model.extent[2 * i] === model.extent[2 * i + 1]), model.tolerance); - model.structuredBounds[2 * i] = Math.max(model.extent[2 * i] - newTol, minBound); - model.structuredBounds[2 * i + 1] = Math.min(model.extent[2 * i + 1] + newTol, maxBound); - } - const xdim = model.extent[1] - model.extent[0] + 1; - const ydim = model.extent[3] - model.extent[2] + 1; - const ncomp = model.scalars.getNumberOfComponents(); - model.interpolationInfo.increments[0] = ncomp; - model.interpolationInfo.increments[1] = model.interpolationInfo.increments[0] * xdim; - model.interpolationInfo.increments[2] = model.interpolationInfo.increments[1] * ydim; - let component = model.componentOffset; - component = component > 0 ? component : 0; - component = component < ncomp ? component : ncomp - 1; - const dataSize = 1; // scalars.getDataTypeSize() - const inPtr = model.scalars.getData(); - model.interpolationInfo.pointer = inPtr.subarray(component * dataSize); - model.interpolationInfo.scalarType = model.scalars.dataType; - model.interpolationInfo.dataTypeSize = 1; // model.scalars.getElementComponentSize(); - model.interpolationInfo.numberOfComponents = publicAPI.computeNumberOfComponents(ncomp); - model.interpolationInfo.borderMode = model.borderMode; - publicAPI.internalUpdate(); - - // TODO get functions - }; - - publicAPI.internalUpdate = () => {}; - publicAPI.interpolateXYZ = (x, y, z, component) => { - let value = model.outValue; - const point = [x, y, z]; - const p = [(point[0] - model.origin[0]) / model.spacing[0], (point[1] - model.origin[1]) / model.spacing[1], (point[2] - model.origin[2]) / model.spacing[2]]; - if (publicAPI.checkBoundsIJK(p)) { - const iinfo = { - ...model.interpolationInfo - }; - const ncomp = iinfo.increments[0] - model.componentOffset; - const dataTypeSize = 1; // iinfo.dataTypeSize; // vtkAbstractArray::getDataTypeSize(iinfo.scalarType) - - let c = component > 0 ? component : 0; - c = c < ncomp ? c : ncomp - 1; - iinfo.pointer = model.interpolationInfo.pointer.subarray(dataTypeSize * c); - iinfo.numberOfComponents = 1; - const v = [value]; - publicAPI.interpolatePoint(iinfo, p, v); - value = v[0]; - } - return value; - }; - publicAPI.interpolate = (point, value) => { - const p = [(point[0] - model.origin[0]) / model.spacing[0], (point[1] - model.origin[1]) / model.spacing[1], (point[2] - model.origin[2]) / model.spacing[2]]; - if (publicAPI.checkBoundsIJK(p)) { - publicAPI.interpolatePoint(model.interpolationInfo, p, value); - return true; - } - for (let i = 0; i < model.interpolationInfo.numberOfComponents; ++i) { - value[i] = model.outValue; - } - return false; - }; - publicAPI.computeNumberOfComponents = inputCount => { - const component = Math.min(Math.max(model.componentOffset, 0), inputCount - 1); - const count = model.componentCount < inputCount - component ? model.componentCount : inputCount - component; - return count > 0 ? count : inputCount - component; - }; - publicAPI.getNumberOfComponents = () => model.interpolationInfo.numberOfComponents; - publicAPI.interpolateIJK = (point, value) => { - publicAPI.interpolatePoint(model.interpolationInfo, point, value); - }; - publicAPI.checkBoundsIJK = point => !(point[0] < model.structuredBounds[0] || point[0] > model.structuredBounds[1] || point[1] < model.structuredBounds[2] || point[1] > model.structuredBounds[3] || point[2] < model.structuredBounds[4] || point[2] > model.structuredBounds[5]); - publicAPI.computeSupportSize = null; // (matrix) => {}; - publicAPI.isSeparable = null; - publicAPI.precomputeWeightsForExtent = (matrix, inExtent, checkExtent) => {}; - publicAPI.FreePrecomputedWeights = weights => { - /* - for (let k = 0; k < 3; ++k) { - const step = weights.kernelSize[k]; - // TODO: check if ok - weights.positions[k] += step * weights.weightExtent[2 * k]; - if (weights.weights[k]) { - // TODO: check if ok - weights.weights[k] += step * weights.weightExtent[2 * k]; - } - } - if (weights.workspace) { - for (let i = 1; i < weights.kernelSize[1]; ++i) { - // TODO - ... - } - } - */ - }; - publicAPI.interpolatePoint = (interpolationInfo, point, value) => {}; - publicAPI.interpolateRow = (weights, xIdx, yIdx, zIdx, value, n) => {}; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - outValue: 0, - tolerance: Number.EPSILON, - componentOffset: 0, - componentCount: -1, - borderMode: ImageBorderMode.CLAMP, - slidingWindow: false, - scalars: null, - interpolationInfo: { - ...vtkInterpolationInfo - }, - interpolationFunc: null, - rowInterpolationFunc: null, - structuredBounds: [0, -1, 0, -1, 0, -1], - spacing: null, - origin: null, - extent: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['outValue', 'tolerance', 'componentOffset', 'componentCount', 'borderMode', 'slidingWindow']); - macro.get(publicAPI, model, ['origin', 'spacing']); - - // Object specific methods - vtkAbstractImageInterpolator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkAbstractImageInterpolator'); - -// ---------------------------------------------------------------------------- - -var vtkAbstractImageInterpolator$1 = { - newInstance, - extend, - ...Constants -}; - -export { vtkAbstractImageInterpolator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/AbstractImageInterpolator/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/AbstractImageInterpolator/Constants.d.ts deleted file mode 100644 index 75548b8f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/AbstractImageInterpolator/Constants.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export declare enum ImageBorderMode { - CLAMP = 0, - REPEAT = 1, - MIRROR = 2, -} - -export declare enum InterpolationMode { - NEAREST = 0, - LINEAR = 1, - CUBIC = 2, -} - -declare const _default: { - ImageBorderMode: typeof ImageBorderMode; - InterpolationMode: typeof InterpolationMode; -}; - -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/AbstractImageInterpolator/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/AbstractImageInterpolator/Constants.js deleted file mode 100644 index c47ff83b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/AbstractImageInterpolator/Constants.js +++ /dev/null @@ -1,16 +0,0 @@ -const ImageBorderMode = { - CLAMP: 0, - REPEAT: 1, - MIRROR: 2 -}; -const InterpolationMode = { - NEAREST: 0, - LINEAR: 1, - CUBIC: 2 -}; -var Constants = { - ImageBorderMode, - InterpolationMode -}; - -export { ImageBorderMode, InterpolationMode, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/AbstractImageInterpolator/InterpolationInfo.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/AbstractImageInterpolator/InterpolationInfo.js deleted file mode 100644 index 59726ffb..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/AbstractImageInterpolator/InterpolationInfo.js +++ /dev/null @@ -1,82 +0,0 @@ -import { ImageBorderMode, InterpolationMode } from './Constants.js'; - -const vtkInterpolationInfo = { - pointer: null, - extent: [0, -1, 0, -1, 0, -1], - increments: [0, 0, 0], - scalarType: null, - // dataType - dataTypeSize: 1, - // BYTES_PER_ELEMENT - numberOfComponents: 1, - borderMode: ImageBorderMode.CLAMP, - interpolationMode: InterpolationMode.LINEAR, - extraInfo: null -}; -const vtkInterpolationWeights = { - ...vtkInterpolationInfo, - positions: [0, 0, 0], - weights: null, - weightExtent: [0, -1, 0, -1, 0, -1], - kernelSize: [1, 1, 1], - workspace: null, - lastY: null, - lastZ: null -}; -function vtkInterpolationMathFloor(x) { - const integer = Math.floor(x); - return { - floored: integer, - error: x - integer - }; -} -function vtkInterpolationMathRound(x) { - return Math.round(x); -} - -//---------------------------------------------------------------------------- -// Perform a clamp to limit an index to [b, c] and subtract b. - -function vtkInterpolationMathClamp(a, b, c) { - let clamp = a <= c ? a : c; - clamp -= b; - clamp = clamp >= 0 ? clamp : 0; - return clamp; -} - -//---------------------------------------------------------------------------- -// Perform a wrap to limit an index to [b, c] and subtract b. - -function vtkInterpolationMathWrap(a, b, c) { - const range = c - b + 1; - let wrap = a - b; - wrap %= range; - // required for some % implementations - wrap = wrap >= 0 ? wrap : wrap + range; - return wrap; -} - -//---------------------------------------------------------------------------- -// Perform a mirror to limit an index to [b, c] and subtract b. - -function vtkInterpolationMathMirror(a, b, c) { - const range = c - b; - const ifzero = range === 0 ? 1 : 0; - const range2 = 2 * range + ifzero; - let mirror = a - b; - mirror = mirror >= 0 ? mirror : -mirror; - mirror %= range2; - mirror = mirror <= range ? mirror : range2 - mirror; - return mirror; -} -var InterpolationInfo = { - vtkInterpolationInfo, - vtkInterpolationWeights, - vtkInterpolationMathFloor, - vtkInterpolationMathRound, - vtkInterpolationMathClamp, - vtkInterpolationMathWrap, - vtkInterpolationMathMirror -}; - -export { InterpolationInfo as default, vtkInterpolationInfo, vtkInterpolationMathClamp, vtkInterpolationMathFloor, vtkInterpolationMathMirror, vtkInterpolationMathRound, vtkInterpolationMathWrap, vtkInterpolationWeights }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/ImageInterpolator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/ImageInterpolator.js deleted file mode 100644 index 5a8f9341..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/ImageInterpolator.js +++ /dev/null @@ -1,470 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkAbstractImageInterpolator from './AbstractImageInterpolator.js'; -import { vtkInterpolationMathRound, vtkInterpolationMathClamp, vtkInterpolationMathMirror, vtkInterpolationMathWrap, vtkInterpolationMathFloor, vtkInterpolationWeights } from './AbstractImageInterpolator/InterpolationInfo.js'; -import { InterpolationMode, ImageBorderMode } from './AbstractImageInterpolator/Constants.js'; - -// ---------------------------------------------------------------------------- -// vtkImageInterpolator methods -// ---------------------------------------------------------------------------- - -function vtkImageInterpolator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkImageInterpolator'); - publicAPI.computeSupportSize = matrix => { - let s = 1; - if (model.interpolationMode === InterpolationMode.LINEAR) { - s = 2; - } else if (model.interpolationMode === InterpolationMode.CUBIC) { - s = 4; - } - const size = [s, s, s]; - if (matrix == null) { - return size; - } - // TODO CHECK MATRIX - if (matrix[12] !== 0 || matrix[13] !== 0 || matrix[14] !== 0 || matrix[15] !== 1) { - return size; - } - for (let i = 0; i < 3; ++i) { - let integerRow = true; - for (let j = 0; j < 3; ++j) { - integerRow = integerRow && Number.isInteger(matrix[4 * i + j]); - } - if (integerRow) { - size[i] = 1; - } - } - return size; - }; - publicAPI.internalUpdate = () => { - model.interpolationInfo.interpolationMode = model.interpolationMode; - }; - publicAPI.isSeparable = () => true; - publicAPI.interpolateNearest = (interpolationInfo, point, value) => { - const inExt = interpolationInfo.extent; - const inInc = interpolationInfo.increments; - const numscalars = interpolationInfo.numberOfComponents; - let inIdX0 = vtkInterpolationMathRound(point[0]); - let inIdY0 = vtkInterpolationMathRound(point[1]); - let inIdZ0 = vtkInterpolationMathRound(point[2]); - switch (interpolationInfo.borderMode) { - case ImageBorderMode.REPEAT: - inIdX0 = vtkInterpolationMathWrap(inIdX0, inExt[0], inExt[1]); - inIdY0 = vtkInterpolationMathWrap(inIdY0, inExt[2], inExt[3]); - inIdZ0 = vtkInterpolationMathWrap(inIdZ0, inExt[4], inExt[5]); - break; - case ImageBorderMode.MIRROR: - inIdX0 = vtkInterpolationMathMirror(inIdX0, inExt[0], inExt[1]); - inIdY0 = vtkInterpolationMathMirror(inIdY0, inExt[2], inExt[3]); - inIdZ0 = vtkInterpolationMathMirror(inIdZ0, inExt[4], inExt[5]); - break; - default: - inIdX0 = vtkInterpolationMathClamp(inIdX0, inExt[0], inExt[1]); - inIdY0 = vtkInterpolationMathClamp(inIdY0, inExt[2], inExt[3]); - inIdZ0 = vtkInterpolationMathClamp(inIdZ0, inExt[4], inExt[5]); - break; - } - const startId = inIdX0 * inInc[0] + inIdY0 * inInc[1] + inIdZ0 * inInc[2]; - for (let i = 0; i < numscalars; ++i) { - value[i] = interpolationInfo.pointer[startId + i]; - } - }; - publicAPI.interpolateLinear = (interpolationInfo, point, value) => { - const inExt = interpolationInfo.extent; - const inInc = interpolationInfo.increments; - const numscalars = interpolationInfo.numberOfComponents; - const floorX = vtkInterpolationMathFloor(point[0]); - const floorY = vtkInterpolationMathFloor(point[1]); - const floorZ = vtkInterpolationMathFloor(point[2]); - let inIdX0 = floorX.floored; - let inIdY0 = floorY.floored; - let inIdZ0 = floorZ.floored; - const fx = floorX.error; - const fy = floorY.error; - const fz = floorZ.error; - let inIdX1 = inIdX0 + (fx !== 0); - let inIdY1 = inIdY0 + (fy !== 0); - let inIdZ1 = inIdZ0 + (fz !== 0); - switch (interpolationInfo.borderMode) { - case ImageBorderMode.REPEAT: - inIdX0 = vtkInterpolationMathWrap(inIdX0, inExt[0], inExt[1]); - inIdY0 = vtkInterpolationMathWrap(inIdY0, inExt[2], inExt[3]); - inIdZ0 = vtkInterpolationMathWrap(inIdZ0, inExt[4], inExt[5]); - inIdX1 = vtkInterpolationMathWrap(inIdX1, inExt[0], inExt[1]); - inIdY1 = vtkInterpolationMathWrap(inIdY1, inExt[2], inExt[3]); - inIdZ1 = vtkInterpolationMathWrap(inIdZ1, inExt[4], inExt[5]); - break; - case ImageBorderMode.MIRROR: - inIdX0 = vtkInterpolationMathMirror(inIdX0, inExt[0], inExt[1]); - inIdY0 = vtkInterpolationMathMirror(inIdY0, inExt[2], inExt[3]); - inIdZ0 = vtkInterpolationMathMirror(inIdZ0, inExt[4], inExt[5]); - inIdX1 = vtkInterpolationMathMirror(inIdX1, inExt[0], inExt[1]); - inIdY1 = vtkInterpolationMathMirror(inIdY1, inExt[2], inExt[3]); - inIdZ1 = vtkInterpolationMathMirror(inIdZ1, inExt[4], inExt[5]); - break; - default: - inIdX0 = vtkInterpolationMathClamp(inIdX0, inExt[0], inExt[1]); - inIdY0 = vtkInterpolationMathClamp(inIdY0, inExt[2], inExt[3]); - inIdZ0 = vtkInterpolationMathClamp(inIdZ0, inExt[4], inExt[5]); - inIdX1 = vtkInterpolationMathClamp(inIdX1, inExt[0], inExt[1]); - inIdY1 = vtkInterpolationMathClamp(inIdY1, inExt[2], inExt[3]); - inIdZ1 = vtkInterpolationMathClamp(inIdZ1, inExt[4], inExt[5]); - break; - } - const factX0 = inIdX0 * inInc[0]; - const factX1 = inIdX1 * inInc[0]; - const factY0 = inIdY0 * inInc[1]; - const factY1 = inIdY1 * inInc[1]; - const factZ0 = inIdZ0 * inInc[2]; - const factZ1 = inIdZ1 * inInc[2]; - const i00 = factY0 + factZ0; - const i01 = factY0 + factZ1; - const i10 = factY1 + factZ0; - const i11 = factY1 + factZ1; - const rx = 1 - fx; - const ry = 1 - fy; - const rz = 1 - fz; - const ryrz = ry * rz; - const fyrz = fy * rz; - const ryfz = ry * fz; - const fyfz = fy * fz; - const inPtr = interpolationInfo.pointer; - for (let i = 0; i < numscalars; ++i) { - value[i] = rx * (ryrz * inPtr[factX0 + i00 + i * 4] + ryfz * inPtr[factX0 + i01 + i * 4] + fyrz * inPtr[factX0 + i10 + i * 4] + fyfz * inPtr[factX0 + i11 + i * 4]) + fx * (ryrz * inPtr[factX1 + i00 + i * 4] + ryfz * inPtr[factX1 + i01 + i * 4] + fyrz * inPtr[factX1 + i10 + i * 4] + fyfz * inPtr[factX1 + i11 + i * 4]); - } - }; - publicAPI.interpolatePoint = (interpolationInfo, point, value) => { - switch (model.interpolationMode) { - case InterpolationMode.LINEAR: - publicAPI.interpolateLinear(interpolationInfo, point, value); - break; - case InterpolationMode.CUBIC: - console.log('CUBIC not implemented'); - break; - case InterpolationMode.NEAREST: - default: - publicAPI.interpolateNearest(interpolationInfo, point, value); - break; - } - }; - publicAPI.interpolateRowNearest = (weights, idX, idY, idZ, outPtr, n) => { - // TODO check pointers - const iX = weights.positions[0].subarray(idX); - const iY = weights.positions[1].subarray(idY); - const iZ = weights.positions[2].subarray(idZ); - const inPtr0 = weights.pointer.subarray(iY[0] + iZ[0]); - - // get the number of components per pixel - const numscalars = weights.numberOfComponents; - - // This is a hot loop. - for (let i = 0; i < n; ++i) { - outPtr.set(inPtr0.subarray(iX[i], numscalars), i * numscalars); - } - }; - publicAPI.interpolateRowLinear = (weights, idX, idY, idZ, outPtr, n) => { - const stepX = weights.kernelSize[0]; - const stepY = weights.kernelSize[1]; - const stepZ = weights.kernelSize[2]; - const idXtemp = idX * stepX; - const idYtemp = idY * stepY; - const idZtemp = idZ * stepZ; - const fX = weights.weights[0].subarray(idXtemp); - const fY = weights.weights[1].subarray(idYtemp); - const fZ = weights.weights[2].subarray(idZtemp); - const iX = weights.positions[0].subarray(idXtemp); - const iY = weights.positions[1].subarray(idYtemp); - const iZ = weights.positions[2].subarray(idZtemp); - const inPtr = weights.pointer; - - // get the number of components per pixel - const numscalars = weights.numberOfComponents; - - // create a 2x2 bilinear kernel in local variables - const i00 = iY.subarray(iZ[0]); - let i01 = i00; - let i10 = i00; - let i11 = i00; - let ry = 1; - let fy = 0; - let rz = 1; - let fz = 0; - if (stepY === 2) { - i10 = iY[1].subarray(iZ[0]); - i11 = i10; - ry = fY[0]; - fy = fY[1]; - } - if (stepZ === 2) { - i01 = iY[0].subarray(iZ[1]); - i11 = i01; - rz = fZ[0]; - fz = fZ[1]; - } - if (stepY + stepZ === 4) { - i11 = iY[1].subarray(iZ[1]); - } - const ryrz = ry * rz; - const ryfz = ry * fz; - const fyrz = fy * rz; - const fyfz = fy * fz; - if (stepX === 1) { - if (fy === 0 && fz === 0) { - // no interpolation needed at all - for (let i = n; i > 0; --i) { - for (let j = 0; j < numscalars; j++) { - outPtr[j + n - i] = inPtr[i00 + iX[n - i] + j]; - } - } - } else if (fy === 0) { - // only need linear z interpolation - for (let i = n; i > 0; --i) { - for (let j = 0; j < numscalars; j++) { - outPtr[j + n - i] = rz * inPtr[iX[n - i] + i00 + j * 4] + fz * inPtr[iX[n - i] + i01 + j * 4]; - } - } - } else { - // interpolate in y and z but not in x - for (let i = n; i > 0; --i) { - for (let j = 0; j < numscalars; j++) { - outPtr[j + n - i] = ryrz * inPtr[iX[n - i] + i00 + j * 4] + ryfz * inPtr[iX[n - i] + i01 + j * 4] + fyrz * inPtr[iX[n - i] + i10 + j * 4] + fyfz * inPtr[iX[n - i] + i11 + j * 4]; - } - } - } - } else if (fz === 0) { - let x = 0; - // bilinear interpolation in x,y - for (let i = n; i > 0; --i) { - const rx = fX[0 + 2 * x]; - const fx = fX[1 + 2 * x]; - const t0 = iX[0 + 2 * x]; - const t1 = iX[1 + 2 * x]; - for (let j = 0; j < numscalars; j++) { - outPtr[j + n - i] = rx * (ry * inPtr[t0 + i00 + j * 4] + fy * inPtr[t0 + i10 + j * 4]) + fx * (ry * inPtr[t1 + i00 + j * 4] + fy * inPtr[t1 + i10 + j * 4]); - } - x++; - } - } else { - let x = 0; - // do full trilinear interpolation - for (let i = n; i > 0; --i) { - const rx = fX[0 + 2 * x]; - const fx = fX[1 + 2 * x]; - const t0 = iX[0 + 2 * x]; - const t1 = iX[1 + 2 * x]; - for (let j = 0; j < numscalars; j++) { - outPtr[j] = rx * (ryrz * inPtr[t0 + i00 + j * 4] + ryfz * inPtr[t0 + i01 + j * 4] + fyrz * inPtr[t0 + i10 + j * 4] + fyfz * inPtr[t0 + i11 + j * 4]) + fx * (ryrz * inPtr[t1 + i00 + j * 4] + ryfz * inPtr[t1 + i01 + j * 4] + fyrz * inPtr[t1 + i10 + j * 4] + fyfz * inPtr[t1 + i11 + j * 4]); - } - x++; - } - } - }; - publicAPI.interpolateRow = (weights, xIdx, yIdx, zIdx, value, n) => { - switch (model.interpolationMode) { - case InterpolationMode.LINEAR: - publicAPI.interpolateRowLinear(weights, xIdx, yIdx, zIdx, value, n); - break; - case InterpolationMode.CUBIC: - console.log('CUBIC not implemented'); - break; - case InterpolationMode.NEAREST: - default: - publicAPI.interpolateRowNearest(weights, xIdx, yIdx, zIdx, value, n); - break; - } - }; - publicAPI.vtkTricubicInterpWeights = f => { - const half = 0.5; - - // cubic interpolation - const fm1 = f - 1; - const fd2 = f * half; - const ft3 = f * 3; - return [-fd2 * fm1 * fm1, ((ft3 - 2) * fd2 - 1) * fm1, -((ft3 - 4) * f - 1) * fd2, f * fd2 * fm1]; - }; - publicAPI.precomputeWeightsForExtent = (matrix, outExt, clipExt) => { - const weights = { - ...vtkInterpolationWeights.newInstance(), - ...model.interpolationInfo - }; - weights.weightType = 'Float32Array'; - const interpMode = weights.interpolationMode; - let validClip = true; - for (let j = 0; j < 3; ++j) { - // set k to the row for which the element in column j is nonzero - let k; - for (k = 0; k < 3; ++k) { - if (matrix[4 * j + k] !== 0) { - break; - } - } - - // get the extents - clipExt[2 * j] = outExt[2 * j]; - clipExt[2 * j + 1] = outExt[2 * j + 1]; - const minExt = weights.extent[2 * k]; - const maxExt = weights.extent[2 * k + 1]; - const minBounds = model.structuredBounds[2 * k]; - const maxBounds = model.structuredBounds[2 * k + 1]; - - // the kernel size should not exceed the input dimension - let step = 1; - step = interpMode < InterpolationMode.LINEAR ? step : 2; - step = interpMode < InterpolationMode.CUBIC ? step : 4; - const inCount = maxExt - minExt + 1; - step = step < inCount ? step : inCount; - - // if output pixels lie exactly on top of the input pixels - if (Number.isInteger(matrix[4 * j + k]) && Number.isInteger(matrix[4 * k + k])) { - step = 1; - } - const size = step * (outExt[2 * j + 1] - outExt[2 * j] + 1); - // TODO: check pointers - const positions = new Int16Array(size); - // positions -= step*outExt[2 * j]; - const startPositions = step * outExt[2 * j]; - let constants = null; - if (interpMode !== InterpolationMode.NEAREST) { - constants = new Int16Array(size); - // constants -= step * outExt[2 * j]; - } - - weights.kernelSize[j] = step; - weights.weightExtent[2 * j] = outExt[2 * j]; - weights.weightExtent[2 * j + 1] = outExt[2 * j + 1]; - weights.positions[j] = positions; // TODO: check pointers - weights.weights[j] = constants; // TODO: check pointers - - let region = 0; - for (let i = outExt[2 * j]; i <= outExt[2 * j + 1]; ++i) { - const point = matrix[4 * 3 + k] + i * matrix[4 * j + k]; - let lcount = step; - let inId0 = 0; - let f = 0; - if (interpMode === InterpolationMode.NEAREST) { - inId0 = Math.round(point); - } else { - const res = vtkInterpolationMathFloor(point); - inId0 = res.integer; - f = res.error; - if (interpMode === InterpolationMode.CUBIC && step !== 1) { - inId0--; - lcount = 4; - } - } - const inId = [0, 0, 0, 0]; - let l = 0; - switch (weights.borderMode) { - case ImageBorderMode.REPEAT: - do { - inId[l] = vtkInterpolationMathWrap(inId0, minExt, maxExt); - inId0++; - } while (++l < lcount); - break; - case ImageBorderMode.MIRROR: - do { - inId[l] = vtkInterpolationMathMirror(inId0, minExt, maxExt); - inId0++; - } while (++l < lcount); - break; - default: - do { - inId[l] = vtkInterpolationMathClamp(inId0, minExt, maxExt); - inId0++; - } while (++l < lcount); - break; - } - - // compute the weights and offsets - const inInc = weights.increments[k]; - positions[step * i - startPositions] = inId[0] * inInc; - if (interpMode !== InterpolationMode.NEAREST) { - constants[step * i - startPositions] = 1; - } - if (step > 1) { - if (interpMode === InterpolationMode.LINEAR) { - positions[step * i + 1 - startPositions] = inId[1] * inInc; - constants[step * i - startPositions] = 1.0 - f; - constants[step * i + 1 - startPositions] = f; - } else if (interpMode === InterpolationMode.CUBIC) { - const g = publicAPI.vtkTricubicInterpWeights(f); - if (step === 4) { - for (let ll = 0; ll < 4; ll++) { - positions[step * i + ll - startPositions] = inId[ll] * inInc; - constants[step * i + ll - startPositions] = g[ll]; - } - } else { - // it gets tricky if there are fewer than 4 slices - const gg = [0, 0, 0, 0]; - for (let ll = 0; ll < 4; ll++) { - const rIdx = inId[ll] - minExt; - gg[rIdx] += g[ll]; - } - for (let jj = 0; jj < step; jj++) { - positions[step * i + jj - startPositions] = minExt + jj; - constants[step * i + jj - startPositions] = gg[jj]; - } - } - } - } - if (point >= minBounds && point <= maxBounds) { - if (region === 0) { - // entering the input extent - region = 1; - clipExt[2 * j] = i; - } - } else if (region === 1) { - // leaving the input extent - region = 2; - clipExt[2 * j + 1] = i - 1; - } - } - if (region === 0 || clipExt[2 * j] > clipExt[2 * j + 1]) { - // never entered input extent! - validClip = false; - } - } - if (!validClip) { - // output extent doesn't itersect input extent - for (let j = 0; j < 3; j++) { - clipExt[2 * j] = outExt[2 * j]; - clipExt[2 * j + 1] = outExt[2 * j] - 1; - } - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - interpolationMode: InterpolationMode.NEAREST -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkAbstractImageInterpolator.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['interpolationMode']); - - // Object specific methods - vtkImageInterpolator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImageInterpolator'); - -// ---------------------------------------------------------------------------- - -var vtkImageInterpolator$1 = { - newInstance, - extend -}; - -export { vtkImageInterpolator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/ImagePointDataIterator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/ImagePointDataIterator.js deleted file mode 100644 index 905f1042..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/ImagePointDataIterator.js +++ /dev/null @@ -1,320 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -// vtkImagePointDataIterator methods -// ---------------------------------------------------------------------------- - -function vtkImagePointDataIterator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkImagePointDataIterator'); - publicAPI.initialize = (image, inExtent, stencil, algorithm) => { - const dataExtent = image.getExtent(); - let extent = inExtent; - if (extent == null) { - extent = dataExtent; - } - let emptyExtent = false; - for (let i = 0; i < 6; i += 2) { - model.extent[i] = Math.max(extent[i], dataExtent[i]); - model.extent[i + 1] = Math.min(extent[i + 1], dataExtent[i + 1]); - if (model.extent[i] > model.extent[i + 1]) { - emptyExtent = true; - } - } - model.rowIncrement = dataExtent[1] - dataExtent[0] + 1; - model.sliceIncrement = model.rowIncrement * (dataExtent[3] - dataExtent[2] + 1); - let rowSpan; - let sliceSpan; - let volumeSpan; - if (!emptyExtent) { - // Compute the span of the image region to be covered. - rowSpan = model.extent[1] - model.extent[0] + 1; - sliceSpan = model.extent[3] - model.extent[2] + 1; - volumeSpan = model.extent[5] - model.extent[4] + 1; - model.id = model.extent[0] - dataExtent[0] + (model.extent[2] - dataExtent[2]) * model.rowIncrement + (model.extent[4] - dataExtent[4]) * model.sliceIncrement; - - // Compute the end increments (continuous increments). - model.rowEndIncrement = model.rowIncrement - rowSpan; - model.sliceEndIncrement = model.rowEndIncrement + model.sliceIncrement - model.rowIncrement * sliceSpan; - } else { - // Extent is empty, isAtEnd() will immediately return "true" - rowSpan = 0; - sliceSpan = 0; - volumeSpan = 0; - model.id = 0; - model.rowEndIncrement = 0; - model.sliceEndIncrement = 0; - for (let i = 0; i < 6; i += 2) { - model.extent[i] = dataExtent[i]; - model.extent[i + 1] = dataExtent[i] - 1; - } - } - - // Get the end pointers for row, slice, and volume. - model.spanEnd = model.id + rowSpan; - model.rowEnd = model.id + rowSpan; - model.sliceEnd = model.id + (model.rowIncrement * sliceSpan - model.rowEndIncrement); - model.end = model.id + (model.sliceIncrement * volumeSpan - model.sliceEndIncrement); - - // For keeping track of the current x,y,z index. - model.index[0] = model.extent[0]; - model.index[1] = model.extent[2]; - model.index[2] = model.extent[4]; - - // For resetting the Y index after each slice. - model.startY = model.index[1]; - - // Code for when a stencil is provided. - if (stencil) { - model.hasStencil = true; - model.inStencil = false; - model.spanIndex = 0; - const stencilExtent = stencil.getExtent(); - - // The stencil has a YZ array of span lists, we need increments - // to get to the next Z position in the YZ array. - model.spanSliceIncrement = 0; - model.spanSliceEndIncrement = 0; - if (stencilExtent[3] >= stencilExtent[2] && stencilExtent[5] >= stencilExtent[4]) { - model.spanSliceIncrement = stencilExtent[3] - stencilExtent[2] + 1; - const botOffset = model.extent[2] - stencilExtent[2]; - if (botOffset >= 0) { - model.spanSliceEndIncrement += botOffset; - } - const topOffset = stencilExtent[3] - model.extent[3]; - if (topOffset >= 0) { - model.spanSliceEndIncrement += topOffset; - } - } - - // Find the offset to the start position within the YZ array. - let startOffset = 0; - const yOffset = model.extent[2] - stencilExtent[2]; - if (yOffset < 0) { - model.extent[2] = stencilExtent[2]; - // starting before start of stencil: subtract the increment that - // will be added in NextSpan() upon entry into stencil extent - startOffset -= 1; - } else { - // starting partway into the stencil, so add an offset - startOffset += yOffset; - } - if (stencilExtent[3] <= model.extent[3]) { - model.extent[3] = stencilExtent[3]; - } - const zOffset = model.extent[4] - stencilExtent[4]; - if (zOffset < 0) { - model.extent[4] = stencilExtent[4]; - // starting before start of stencil: subtract the increment that - // will be added in NextSpan() upon entry into stencil extent - if (yOffset >= 0) { - startOffset -= 1 + model.spanSliceEndIncrement; - } - } else { - // starting partway into the stencil, so add an offset - startOffset += zOffset * model.spanSliceIncrement; - } - if (stencilExtent[5] <= model.extent[5]) { - model.extent[5] = stencilExtent[5]; - } - if (model.extent[2] <= model.extent[3] && model.extent[4] <= model.extent[5]) { - model.spanCountPointer = stencil.extentListLengths.subarray(startOffset); - model.spanListPointer = stencil.extentLists.subarray(startOffset); - - // Get the current position within the span list for the current row - if (yOffset >= 0 && zOffset >= 0) { - // If starting within stencil extent, check stencil immediately - model.inStencil = true; - model.setSpanState(model.extent[0]); - } - } else { - model.spanCountPointer = null; - model.spanListPointer = null; - model.inStencil = false; - } - } else { - model.hasStencil = false; - model.inStencil = true; - model.spanSliceEndIncrement = 0; - model.spanSliceIncrement = 0; - model.spanIndex = 0; - model.spanCountPointer = null; - model.spanListPointer = null; - } - if (algorithm) { - model.algorithm = algorithm; - const maxCount = sliceSpan * volumeSpan; - model.target = maxCount / 50 + 1; - model.count = model.target * 50 - maxCount / model.target * model.target + 1; - } else { - model.algorithm = null; - model.target = 0; - model.count = 0; - } - }; - publicAPI.setSpanState = idX => { - // Find the span that includes idX - let inStencil = false; - const spans = model.spanListPointer; - const n = model.spanCountPointer[0]; - let i; - for (i = 0; i < n; ++i) { - if (spans[i] > idX) { - break; - } - inStencil = !inStencil; - } - - // Set the primary span state variables - model.spanIndex = i; - model.inStencil = inStencil; - - // Clamp the span end to MaxX+1 - let endIdX = model.extent[1] + 1; - if (i < n && spans[i] <= model.extent[1]) { - endIdX = spans[i]; - } - - // Compute the pointers for idX and endIdX - const rowStart = model.rowEnd - (model.rowIncrement - model.rowEndIncrement); - model.id = rowStart + (idX - model.extent[0]); - model.spanEnd = rowStart + (endIdX - model.extent[0]); - }; - publicAPI.nextSpan = () => { - if (model.spanEnd === model.rowEnd) { - let spanIncr = 1; - if (model.spanEnd !== model.sliceEnd) { - // Move to the next row - model.id = model.rowEnd + model.rowEndIncrement; - model.rowEnd += model.rowIncrement; - model.spanEnd = model.rowEnd; - model.index[1]++; - } else if (model.spanEnd !== model.end) { - // Move to the next slice - model.id = model.sliceEnd + model.sliceEndIncrement; - model.sliceEnd += model.sliceIncrement; - model.rowEnd = model.id + (model.rowIncrement - model.rowEndIncrement); - model.spanEnd = model.rowEnd; - model.index[1] = model.startY; - model.index[2]++; - spanIncr += model.spanSliceEndIncrement; - } else { - // reached End - model.id = model.end; - return; - } - - // Start of next row - model.index[0] = model.extent[0]; - if (model.hasStencil) { - if (model.index[1] >= model.extent[2] && model.index[1] <= model.extent[3] && model.index[2] >= model.extent[4] && model.index[2] <= model.extent[5]) { - model.spanCountPointer = model.spanCountPointer.subarray(spanIncr); - model.spanListPointer = model.spanListPointer.subarray(spanIncr); - publicAPI.setSpanState(model.extent[0]); - } else { - model.inStencil = false; - } - } - if (model.algorithm) { - publicAPI.reportProgress(); - } - } else { - // Move to the next span in the current row - model.id = model.spanEnd; - const spanCount = model.spanCountPointer[0]; - let endIdX = model.extent[1] + 1; - model.index[0] = endIdX; - if (model.spanIndex < spanCount) { - const tmpIdX = model.spanListPointer[model.spanIndex]; - if (tmpIdX < endIdX) { - model.index[0] = tmpIdX; - } - } - - // Get the index to the start of the span after the next - model.spanIndex++; - if (model.spanIndex < spanCount) { - const tmpIdX = model.spanListPointer[model.spanIndex]; - if (tmpIdX < endIdX) { - endIdX = tmpIdX; - } - } - - // Compute the end of the span - model.spanEnd = model.rowEnd - (model.rowIncrement - model.rowEndIncrement) + (endIdX - model.extent[0]); - - // Flip the state - model.inStencil = !model.inStencil; - } - }; - publicAPI.isAtEnd = () => model.id === model.end; - publicAPI.isInStencil = () => model.inStencil; - publicAPI.spanEndId = () => model.spanEnd; - publicAPI.reportProgress = () => {}; - publicAPI.getArray = (array, i) => array.getData().subarray(i * array.getNumberOfComponents()); - publicAPI.getScalars = function (image) { - let i = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - return publicAPI.getArray(image.getPointData().getScalars(), i); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - spanState: 0, - extent: [0, -1, 0, -1, 0, -1], - end: 0, - spanEnd: 0, - rowEnd: 0, - sliceEnd: 0, - rowIncrement: 0, - rowEndIncrement: 0, - sliceIncrement: 0, - sliceEndIncrement: 0, - id: 0, - index: [0, 0, 0], - startY: 0, - hasStencil: false, - inStencil: true, - spanIndex: 0, - spanSliceIncrement: 0, - spanSliceEndIncrement: 0, - spanCountPointer: null, - spanListPointer: null, - algorithm: null, - target: 0, - count: 0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['id', 'index']); - - // Object specific methods - vtkImagePointDataIterator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImagePointDataIterator'); - -// ---------------------------------------------------------------------------- - -var vtkImagePointDataIterator$1 = { - newInstance, - extend -}; - -export { vtkImagePointDataIterator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/ImageReslice.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/ImageReslice.d.ts deleted file mode 100644 index eff38df4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/ImageReslice.d.ts +++ /dev/null @@ -1,675 +0,0 @@ -import { - Bounds, - Extent, - Nullable, - RGBAColor, - TypedArray, -} from './../../types'; -import { InterpolationMode } from './AbstractImageInterpolator/Constants'; -import { SlabMode } from './ImageReslice/Constants'; -import { vtkAlgorithm, vtkObject, vtkRange } from './../../interfaces'; -import vtkImageData from './../../Common/DataModel/ImageData'; -import vtkTransform from './../../Common/Transform/Transform'; - -import { mat3, mat4, vec3, vec4 } from 'gl-matrix'; - -/** - * - */ -export interface IImageResliceInitialValues { - transformInputSampling: boolean; - autoCropOutput: boolean; - outputDimensionality: number; - outputSpacing: Nullable; // automatically computed if null - outputOrigin: Nullable; // automatically computed if null - outputDirection: Nullable; // identity if null - outputExtent: Nullable; // automatically computed if null - outputScalarType: Nullable; - wrap: boolean; // don't wrap - mirror: boolean; // don't mirror - border: boolean; // apply a border - interpolationMode: InterpolationMode; // only NEAREST supported so far - slabMode: SlabMode; - slabTrapezoidIntegration: boolean; - slabNumberOfSlices: number; - slabSliceSpacingFraction: number; - optimization: boolean; // not supported yet - scalarShift: number; // for rescaling the data - scalarScale: number; - backgroundColor: RGBAColor; - resliceAxes: Nullable; - resliceTransform?: vtkTransform; - interpolator: any; // A vtkImageInterpolator (missing typescript header) - usePermuteExecute: boolean; // no supported yet -} - -type vtkImageResliceBase = Omit & vtkAlgorithm; - -export interface vtkImageReslice extends vtkImageResliceBase { - /** - * - * @param inData - * @param outData - */ - requestData(inData: any, outData: any): void; - - /** - * Main filter logic - * @param input - * @param output - * @returns - */ - vtkImageResliceExecute: (input: vtkImageData, output: vtkImageData) => void; - - /** - * The transform matrix supplied by the user converts output coordinates - * to input coordinates. - * To speed up the pixel lookup, the following function provides a - * matrix which converts output pixel indices to input pixel indices. - * This will also concatenate the ResliceAxes and the ResliceTransform - * if possible (if the ResliceTransform is a 4x4 matrix transform). - * If it does, this->OptimizedTransform will be set to nullptr, otherwise - * this->OptimizedTransform will be equal to this->ResliceTransform. - * @param {vtkImageData} input - * @param {vtkImageData} output - * @returns - */ - getIndexMatrix: (input: vtkImageData, output: vtkImageData) => mat4; - - /** - * Compute the bounds required to ensure that none of the data will be cropped - * @param input - * @returns - */ - getAutoCroppedOutputBounds: (input: vtkImageData) => Bounds; - - /** - * The min and max of each data type - * Defaults to a range of 0 to 255 - * @param dataType - * @returns - */ - getDataTypeMinMax: (dataType: string) => vtkRange; - - /** - * Internal function uses vtkInterpolationMathClamp on `numscalars * n` elements - * @param outPtr - * @param inPtr - * @param numscalars - * @param n - * @param min - * @param max - * @returns The number of elements processed - */ - clamp: ( - outPtr: TypedArray, - inPtr: TypedArray, - numscalars: number, - n: number, - min: number, - max: number - ) => number; - - /** - * Internal function uses Math.round on `numscalars * n` elements - * @param outPtr - * @param inPtr - * @param numscalars - * @param n - * @returns The number of elements processed - */ - convert: ( - outPtr: TypedArray, - inPtr: TypedArray, - numscalars: number, - n: number - ) => number; - - /** - * Setup the conversion function and return the right one - * @param inputType - * @param dataType - * @param scalarShift - * @param scalarScale - * @param forceClamping - * @returns publicAPI.convert or publicAPI.clamp - */ - getConversionFunc: ( - inputType: string, - dataType: string, - scalarShift: number, - scalarScale: number, - forceClamping: boolean - ) => this['convert'] & this['clamp']; - - /** - * Copy the `numscalars * n` first elements from an array to another - * @param outPtr - * @param inPtr - * @param numscalars - * @param n - * @returns The number of copied elements - */ - set: ( - outPtr: TypedArray, - inPtr: TypedArray, - numscalars: number, - n: number - ) => number; - - /** - * Fill the `n` first elements of the output array with the very first element of the input array - * @param outPtr - * @param inPtr - * @param numscalars - * @param n - * @returns The number of elements set in the output array - */ - set1: ( - outPtr: TypedArray, - inPtr: TypedArray, - numscalars: number, - n: number - ) => number; - - /** - * Returns the right function used to copy the pixels - * @param dataType - * @param dataSize - * @param numscalars - * @param dataPtr - * @returns publicAPI.set or publicAPI.set1 - */ - getSetPixelsFunc: ( - dataType: any, - dataSize: any, - numscalars: number, - dataPtr: any - ) => this['set'] & this['set1']; - - /** - * Returns the right composition function - * @param slabMode - * @param slabTrapezoidIntegration - * @returns - */ - getCompositeFunc: ( - slabMode: SlabMode, - slabTrapezoidIntegration: boolean - ) => (tmpPtr: TypedArray, inComponents: number, sampleCount: number) => void; - - /** - * Apply `newTrans`, then translate by `-origin`, then scale by `inInvSpacing` - * @param newTrans - * @param inPoint - * @param inOrigin - * @param inInvSpacing - * @returns - */ - applyTransform: ( - newTrans: mat4, - inPoint: vec4, - inOrigin: vec3, - inInvSpacing: vec3 - ) => void; - - /** - * - * @param floatData - * @param components - * @param n - * @param scalarShift - * @param scalarScale - * @returns - */ - rescaleScalars: ( - floatData: TypedArray, - components: number, - n: number, - scalarShift: number, - scalarScale: number - ) => void; - - /** - * A permutation matrix is the identity matrix with the colomn (or rows) shuffled - * @param matrix - * @returns - */ - isPermutationMatrix: (matrix: mat4) => boolean; - - /** - * - * @param matrix - * @returns - */ - isIdentityMatrix: (matrix: mat4) => boolean; - - /** - * - * @param matrix - * @returns - */ - isPerspectiveMatrix: (matrix: mat4) => boolean; - - /** - * - * @param matrix - * @param outExt - * @returns - */ - canUseNearestNeighbor: (matrix: mat4, outExt: Extent) => boolean; - - // Setters and getters - - /** - * Set the slab mode, for generating thick slices. - * The default is SlabMode.MIN. If SetSlabNumberOfSlices(N) is called with N - * greater than one, then each output slice will actually be a composite of N - * slices. This method specifies the compositing mode to be used. - * @param slabMode - * @returns - */ - setSlabMode: (slabMode: SlabMode) => boolean; - - /** - * @see setSlabMode - * @returns - */ - getSlabMode: () => SlabMode; - - /** - * Set the number of slices that will be combined to create the slab. - * Defaults to 1. - * @param numberOfSlices - * @returns - */ - setSlabNumberOfSlices: (slabNumberOfSlices: number) => boolean; - - /** - * @see setSlabNumberOfSlices - * @returns - */ - getSlabNumberOfSlices: () => number; - - /** - * Specify whether to transform the spacing, origin and extent of the Input - * (or the InformationInput) according to the direction cosines and origin of - * the ResliceAxes before applying them as the default output spacing, origin - * and extent. - * Defaults to false. - * @param transformInputSampling - * @returns - */ - setTransformInputSampling: (transformInputSampling: boolean) => boolean; - - /** - * @see setTransformInputSampling - * @returns - */ - getTransformInputSampling: () => boolean; - - /** - * Turn this on if you want to guarantee that the extent of the output will - * be large enough to ensure that none of the data will be cropped. - * Defaults to false. - * @param autoCropOutput - * @returns - */ - setAutoCropOutput: (autoCropOutput: boolean) => boolean; - - /** - * @see setAutoCropOutput - * @returns - */ - getAutoCropOutput: () => boolean; - - /** - * Force the dimensionality of the output to either 1, 2, 3 or 0. - * If the dimensionality is 2D, then the Z extent of the output is forced to - * (0,0) and the Z origin of the output is forced to 0.0 (i.e. the output - * extent is confined to the xy plane). If the dimensionality is 1D, the - * output extent is confined to the x axis. For 0D, the output extent - * consists of a single voxel at (0,0,0). - * Defaults to 3. - * @param outputDimensionality - * @returns - */ - setOutputDimensionality: (outputDimensionality: number) => boolean; - - /** - * @see setOutputDimensionality - * @returns - */ - getOutputDimensionality: () => number; - - /** - * Set the voxel spacing for the output data. - * The default output spacing is the input spacing permuted through the - * ResliceAxes. - * Defaults to null (automatically computed). - * @param outputSpacing - * @returns - */ - setOutputSpacing: (outputSpacing: vec3 | null) => boolean; - - /** - * @see setOutputSpacing - * @returns - */ - getOutputSpacing: () => vec3 | null; - - /** - * Set the origin for the output data. - * The default output origin is the input origin permuted through the - * ResliceAxes. - * Defaults to null (automatically computed). - * @param outputOrigin - * @returns - */ - setOutputOrigin: (outputOrigin: vec3 | null) => boolean; - - /** - * @see setOutputOrigin - * @returns - */ - getOutputOrigin: () => vec3 | null; - - /** - * Set the extent for the output data. - * The default output extent is the input extent permuted through the - * ResliceAxes. - * Defaults to null (automatically computed). - * @param outputExtent - * @returns - */ - setOutputExtent: (outputExtent: Extent | null) => boolean; - - /** - * @see setOutputExtent - * @returns - */ - getOutputExtent: () => Extent | null; - - /** - * Set the direction for the output data. - * By default, the direction of the input data is passed to the output. - * But if SetOutputDirection() is used, then the image will be resliced - * according to the new output direction. Unlike SetResliceAxes(), this does - * not change the physical coordinate system for the image. Instead, it - * changes the orientation of the sampling grid while maintaining the same - * physical coordinate system. - * Defaults to null (automatically computed). - * @param outputDirection - * @returns - */ - setOutputDirection: (outputDirection: mat3 | null) => boolean; - - /** - * @see setOutputDirection - * @returns - */ - getOutputDirection: () => mat3 | null; - - /** - * Set the background color (for multi-component images). - * Defaults to full opaque black. - * @param backgroundColor - * @returns - */ - setBackgroundColor: (backgroundColor: RGBAColor) => boolean; - - /** - * @see setBackgroundColor - * @returns - */ - getBackgroundColor: () => RGBAColor; - - /** - * This method is used to set up the axes for the output voxels. - * The output Spacing, Origin, and Extent specify the locations - * of the voxels within the coordinate system defined by the axes. - * The ResliceAxes are used most often to permute the data, e.g. - * to extract ZY or XZ slices of a volume as 2D XY images. - * The first column of the matrix specifies the x-axis - * vector (the fourth element must be set to zero), the second - * column specifies the y-axis, and the third column the - * z-axis. The fourth column is the origin of the - * axes (the fourth element must be set to one). - * @param resliceAxes - * @returns - */ - setResliceAxes: (resliceAxes: mat4) => boolean; - - /** - * @see setResliceAxes - * @returns - */ - getResliceAxes: () => mat4; - - /** - * Set the scalar type of the output to be different from the input. - * The default value is null, which means that the input scalar type will be - * used to set the output scalar type. Otherwise, this must be set to one - * of the following types: VtkDataTypes.CHAR, VtkDataTypes.SIGNED_CHAR, - * VtkDataTypes.UNSIGNED_CHAR, VtkDataTypes.SHORT, VtkDataTypes.UNSIGNED_SHORT, - * VtkDataTypes.INT, VtkDataTypes.UNSIGNED_INT, VtkDataTypes.FLOAT or - * VtkDataTypes.DOUBLE. Other types are not permitted. If the output type - * is an integer type, the output will be rounded and clamped to the limits of - * the type. - * - * See the documentation for [vtkDataArray::getDataType()](../api/Common_Core_DataArray.html#getDataType-String) for additional data type settings. - * Defaults to null (automatically computed). - * @param outputScalarType - * @returns - */ - setOutputScalarType: (outputScalarType: string | null) => boolean; - - /** - * @see setOutputScalarType - * @returns - */ - getOutputScalarType: () => string | null; - - /** - * Set a value to add to all the output voxels. - * After a sample value has been interpolated from the input image, the - * equation u = (v + ScalarShift)*ScalarScale will be applied to it before - * it is written to the output image. The result will always be clamped to - * the limits of the output data type. - * Defaults to 0. - * @param scalarShift - * @returns - */ - setScalarShift: (scalarShift: number) => boolean; - - /** - * @see setScalarShift - * @returns - */ - getScalarShift: () => number; - - /** - * Set multiplication factor to apply to all the output voxels. - * After a sample value has been interpolated from the input image, the - * equation u = (v + ScalarShift)*ScalarScale will be applied to it before - * it is written to the output image. The result will always be clamped to - * the limits of the output data type. - * Defaults to 1. - * @param scalarScale - * @returns - */ - setScalarScale: (scalarScale: number) => boolean; - - /** - * @see setScalarScale - * @returns - */ - getScalarScale: () => number; - - /** - * Turn on wrap-pad feature. - * Defaults to false. - * @param wrap - * @returns - */ - setWrap: (wrap: boolean) => boolean; - - /** - * @see setWrap - * @returns - */ - getWrap: () => boolean; - - /** - * Turn on mirror-pad feature. This will override the wrap-pad. - * Defaults to false. - * @param mirror - * @returns - */ - setMirror: (mirror: boolean) => boolean; - - /** - * @see setMirror - * @returns - */ - getMirror: () => boolean; - - /** - * Extend the apparent input border by a half voxel. - * This changes how interpolation is handled at the borders of the - * input image: if the center of an output voxel is beyond the edge - * of the input image, but is within a half voxel width of the edge - * (using the input voxel width), then the value of the output voxel - * is calculated as if the input's edge voxels were duplicated past - * the edges of the input. - * This has no effect if Mirror or Wrap are on. - * Defaults to true. - * @param border - * @returns - */ - setBorder: (border: boolean) => boolean; - - /** - * @see setBorder - * @returns - */ - getBorder: () => boolean; - - /** - * Set interpolation mode. - * Only nearest neighbor is supported at the moment. - * Defaults to nearest neighbor. - * @param interpolationMode - * @returns - */ - setInterpolationMode: (interpolationMode: InterpolationMode) => boolean; - - /** - * @see setInterpolationMode - * @returns - */ - getInterpolationMode: () => InterpolationMode; - - /** - * Set a transform to be applied to the resampling grid that has been - * defined via the ResliceAxes and the output Origin, Spacing and Extent. - * Note that applying a transform to the resampling grid (which lies in - * the output coordinate system) is equivalent to applying the inverse of - * that transform to the input volume. Nonlinear transforms such as - * vtkGridTransform and vtkThinPlateSplineTransform can be used here. - * Defaults to undefined. - * @param resliceTransform - * @returns - */ - setResliceTransform: (resliceTransform: vtkTransform | undefined) => boolean; - - /** - * @see setResliceTransform - * @returns - */ - getResliceTransform: () => vtkTransform | undefined; - - /** - * Use trapezoid integration for slab computation. - * All this does is weigh the first and last slices by half when doing sum - * and mean. It is off by default. - * Defaults to false. - * @param slabTrapezoidIntegration - * @returns - */ - setSlabTrapezoidIntegration: (slabTrapezoidIntegration: boolean) => boolean; - - /** - * @see setSlabTrapezoidIntegration - * @returns - */ - getSlabTrapezoidIntegration: () => boolean; - - /** - * The slab spacing as a fraction of the output slice spacing. - * When one of the various slab modes is chosen, each output slice is - * produced by generating several "temporary" output slices and then - * combining them according to the slab mode. By default, the spacing between - * these temporary slices is the Z component of the OutputSpacing. This - * method sets the spacing between these temporary slices to be a fraction of - * the output spacing. - * Defaults to 1. - * @param slabSliceSpacingFraction - * @returns - */ - setSlabSliceSpacingFraction: (slabSliceSpacingFraction: number) => boolean; - - /** - * @see setSlabSliceSpacingFraction - * @returns - */ - getSlabSliceSpacingFraction: () => number; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkImageReslice characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IImageResliceInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IImageResliceInitialValues -): void; - -/** - * Method used to create a new instance of vtkImageReslice - * @param {IImageResliceInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IImageResliceInitialValues -): vtkImageReslice; - -/** - * vtkImageReslice - Reslices a volume along a new set of axes - * - * vtkImageReslice is the swiss-army-knife of image geometry filters: - * It can permute, rotate, flip, scale, resample, deform, and pad image - * data in any combination with reasonably high efficiency. Simple - * operations such as permutation, resampling and padding are done - * with similar efficiently to the specialized vtkImagePermute, - * vtkImageResample, and vtkImagePad filters. There are a number of - * tasks that vtkImageReslice is well suited for: - * 1) Application of simple rotations, scales, and translations to - * an image. It is often a good idea to use vtkImageChangeInformation - * to center the image first, so that scales and rotations occur around - * the center rather than around the lower-left corner of the image. - * 2) Extraction of slices from an image volume. The method - * SetOutputDimensionality(2) is used to specify that want to output a - * slice rather than a volume. You can use both the resliceAxes and the - * resliceTransform at the same time, in order to extract slices from a - * volume that you have applied a transformation to. - * **Note**: vtkImageReslice uses column-major format. - */ -export declare const vtkImageReslice: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkImageReslice; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/ImageReslice.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/ImageReslice.js deleted file mode 100644 index bed079e8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/ImageReslice.js +++ /dev/null @@ -1,901 +0,0 @@ -import { mat4, vec4 } from 'gl-matrix'; -import { m as macro, v as vtkWarningMacro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import { b as vtkMath } from '../../Common/Core/Math/index.js'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; -import { VtkDataTypes } from '../../Common/Core/DataArray/Constants.js'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; -import vtkImageData from '../../Common/DataModel/ImageData.js'; -import vtkImageInterpolator from './ImageInterpolator.js'; -import vtkImagePointDataIterator from './ImagePointDataIterator.js'; -import { InterpolationMode, ImageBorderMode } from './AbstractImageInterpolator/Constants.js'; -import { vtkInterpolationMathClamp, vtkInterpolationMathFloor, vtkInterpolationMathRound } from './AbstractImageInterpolator/InterpolationInfo.js'; -import Constants from './ImageReslice/Constants.js'; - -const { - SlabMode -} = Constants; -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkImageReslice methods -// ---------------------------------------------------------------------------- - -function vtkImageReslice(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkImageReslice'); - const superClass = { - ...publicAPI - }; - const indexMatrix = mat4.identity(new Float64Array(16)); - let optimizedTransform = null; - function getImageResliceSlabTrap(tmpPtr, inComponents, sampleCount, f) { - const n = sampleCount - 1; - for (let i = 0; i < inComponents; i += 1) { - let result = tmpPtr[i] * 0.5; - for (let j = 1; j < n; j += 1) { - result += tmpPtr[i + j * inComponents]; - } - result += tmpPtr[i + n * inComponents] * 0.5; - tmpPtr[i] = result * f; - } - } - function getImageResliceSlabSum(tmpPtr, inComponents, sampleCount, f) { - for (let i = 0; i < inComponents; i += 1) { - let result = tmpPtr[i]; - for (let j = 1; j < sampleCount; j += 1) { - result += tmpPtr[i + j * inComponents]; - } - tmpPtr[i] = result * f; - } - } - function getImageResliceCompositeMinValue(tmpPtr, inComponents, sampleCount) { - for (let i = 0; i < inComponents; i += 1) { - let result = tmpPtr[i]; - for (let j = 1; j < sampleCount; j += 1) { - result = Math.min(result, tmpPtr[i + j * inComponents]); - } - tmpPtr[i] = result; - } - } - function getImageResliceCompositeMaxValue(tmpPtr, inComponents, sampleCount) { - for (let i = 0; i < inComponents; i += 1) { - let result = tmpPtr[i]; - for (let j = 1; j < sampleCount; j += 1) { - result = Math.max(result, tmpPtr[i + j * inComponents]); - } - tmpPtr[i] = result; - } - } - function getImageResliceCompositeMeanValue(tmpPtr, inComponents, sampleCount) { - const f = 1.0 / sampleCount; - getImageResliceSlabSum(tmpPtr, inComponents, sampleCount, f); - } - function getImageResliceCompositeMeanTrap(tmpPtr, inComponents, sampleCount) { - const f = 1.0 / (sampleCount - 1); - getImageResliceSlabTrap(tmpPtr, inComponents, sampleCount, f); - } - function getImageResliceCompositeSumValue(tmpPtr, inComponents, sampleCount) { - const f = 1.0; - getImageResliceSlabSum(tmpPtr, inComponents, sampleCount, f); - } - function getImageResliceCompositeSumTrap(tmpPtr, inComponents, sampleCount) { - const f = 1.0; - getImageResliceSlabTrap(tmpPtr, inComponents, sampleCount, f); - } - publicAPI.getMTime = () => { - let mTime = superClass.getMTime(); - if (model.resliceTransform) { - mTime = Math.max(mTime, model.resliceTransform.getMTime()); - } - return mTime; - }; - publicAPI.setResliceAxes = resliceAxes => { - if (!model.resliceAxes) { - model.resliceAxes = mat4.identity(new Float64Array(16)); - } - if (!mat4.exactEquals(model.resliceAxes, resliceAxes)) { - mat4.copy(model.resliceAxes, resliceAxes); - publicAPI.modified(); - return true; - } - return false; - }; - publicAPI.requestData = (inData, outData) => { - // implement requestData - const input = inData[0]; - if (!input) { - vtkErrorMacro('Invalid or missing input'); - return; - } - - // console.time('reslice'); - - // Retrieve output and volume data - const origin = input.getOrigin(); - const inSpacing = input.getSpacing(); - const dims = input.getDimensions(); - const inScalars = input.getPointData().getScalars(); - const inWholeExt = [0, dims[0] - 1, 0, dims[1] - 1, 0, dims[2] - 1]; - const outOrigin = [0, 0, 0]; - const outSpacing = [1, 1, 1]; - const outWholeExt = [0, 0, 0, 0, 0, 0]; - const outDims = [0, 0, 0]; - const matrix = mat4.identity(new Float64Array(16)); - if (model.resliceAxes) { - mat4.multiply(matrix, matrix, model.resliceAxes); - } - const imatrix = new Float64Array(16); - mat4.invert(imatrix, matrix); - const inCenter = [origin[0] + 0.5 * (inWholeExt[0] + inWholeExt[1]) * inSpacing[0], origin[1] + 0.5 * (inWholeExt[2] + inWholeExt[3]) * inSpacing[1], origin[2] + 0.5 * (inWholeExt[4] + inWholeExt[5]) * inSpacing[2]]; - let maxBounds = null; - if (model.autoCropOutput) { - maxBounds = publicAPI.getAutoCroppedOutputBounds(input); - } - for (let i = 0; i < 3; i++) { - let s = 0; // default output spacing - let d = 0; // default linear dimension - let e = 0; // default extent start - let c = 0; // transformed center-of-volume - - if (model.transformInputSampling) { - let r = 0.0; - for (let j = 0; j < 3; j++) { - c += imatrix[4 * j + i] * (inCenter[j] - matrix[4 * 3 + j]); - const tmp = matrix[4 * i + j] * matrix[4 * i + j]; - s += tmp * Math.abs(inSpacing[j]); - d += tmp * (inWholeExt[2 * j + 1] - inWholeExt[2 * j]) * Math.abs(inSpacing[j]); - e += tmp * inWholeExt[2 * j]; - r += tmp; - } - s /= r; - d /= r * Math.sqrt(r); - e /= r; - } else { - c = inCenter[i]; - s = inSpacing[i]; - d = (inWholeExt[2 * i + 1] - inWholeExt[2 * i]) * s; - e = inWholeExt[2 * i]; - } - if (model.outputSpacing == null) { - outSpacing[i] = s; - } else { - outSpacing[i] = model.outputSpacing[i]; - } - if (i >= model.outputDimensionality) { - outWholeExt[2 * i] = 0; - outWholeExt[2 * i + 1] = 0; - } else if (model.outputExtent == null) { - if (model.autoCropOutput) { - d = maxBounds[2 * i + 1] - maxBounds[2 * i]; - } - outWholeExt[2 * i] = Math.round(e); - outWholeExt[2 * i + 1] = Math.round(outWholeExt[2 * i] + Math.abs(d / outSpacing[i])); - } else { - outWholeExt[2 * i] = model.outputExtent[2 * i]; - outWholeExt[2 * i + 1] = model.outputExtent[2 * i + 1]; - } - if (i >= model.outputDimensionality) { - outOrigin[i] = 0; - } else if (model.outputOrigin == null) { - if (model.autoCropOutput) { - // set origin so edge of extent is edge of bounds - outOrigin[i] = maxBounds[2 * i] - outWholeExt[2 * i] * outSpacing[i]; - } else { - // center new bounds over center of input bounds - outOrigin[i] = c - 0.5 * (outWholeExt[2 * i] + outWholeExt[2 * i + 1]) * outSpacing[i]; - } - } else { - outOrigin[i] = model.outputOrigin[i]; - } - outDims[i] = outWholeExt[2 * i + 1] - outWholeExt[2 * i] + 1; - } - let dataType = inScalars.getDataType(); - if (model.outputScalarType) { - dataType = model.outputScalarType; - } - const numComponents = input.getPointData().getScalars().getNumberOfComponents(); // or s.numberOfComponents; - - const outScalarsData = macro.newTypedArray(dataType, outDims[0] * outDims[1] * outDims[2] * numComponents); - const outScalars = vtkDataArray.newInstance({ - name: 'Scalars', - values: outScalarsData, - numberOfComponents: numComponents - }); - - // Update output - const output = outData[0]?.initialize() || vtkImageData.newInstance(); - output.setDimensions(outDims); - output.setOrigin(outOrigin); - output.setSpacing(outSpacing); - if (model.outputDirection) { - output.setDirection(model.outputDirection); - } - output.getPointData().setScalars(outScalars); - publicAPI.getIndexMatrix(input, output); - let interpolationMode = model.interpolationMode; - model.usePermuteExecute = false; - if (model.optimization) { - if (optimizedTransform == null && model.slabSliceSpacingFraction === 1.0 && model.interpolator.isSeparable() && publicAPI.isPermutationMatrix(indexMatrix)) { - model.usePermuteExecute = true; - if (publicAPI.canUseNearestNeighbor(indexMatrix, outWholeExt)) { - interpolationMode = InterpolationMode.NEAREST; - } - } - } - model.interpolator.setInterpolationMode(interpolationMode); - let borderMode = ImageBorderMode.CLAMP; - borderMode = model.wrap ? ImageBorderMode.REPEAT : borderMode; - borderMode = model.mirror ? ImageBorderMode.MIRROR : borderMode; - model.interpolator.setBorderMode(borderMode); - const mintol = 7.62939453125e-6; - const maxtol = 2.0 * 2147483647; - let tol = 0.5 * model.border; - tol = borderMode === ImageBorderMode.CLAMP ? tol : maxtol; - tol = tol > mintol ? tol : mintol; - model.interpolator.setTolerance(tol); - model.interpolator.initialize(input); - publicAPI.vtkImageResliceExecute(input, output); - model.interpolator.releaseData(); - outData[0] = output; - - // console.timeEnd('reslice'); - }; - - publicAPI.vtkImageResliceExecute = (input, output) => { - // const outDims = output.getDimensions(); - const inScalars = input.getPointData().getScalars(); - const outScalars = output.getPointData().getScalars(); - let outPtr = outScalars.getData(); - const outExt = output.getExtent(); - const newmat = indexMatrix; - - // multiple samples for thick slabs - const nsamples = Math.max(model.slabNumberOfSlices, 1); - - // spacing between slab samples (as a fraction of slice spacing). - const slabSampleSpacing = model.slabSliceSpacingFraction; - - // check for perspective transformation - const perspective = publicAPI.isPerspectiveMatrix(newmat); - - // extra scalar info for nearest-neighbor optimization - let inPtr = inScalars.getData(); - const inputScalarSize = 1; // inScalars.getElementComponentSize(); // inScalars.getDataTypeSize(); - const inputScalarType = inScalars.getDataType(); - const inComponents = inScalars.getNumberOfComponents(); // interpolator.GetNumberOfComponents(); - const componentOffset = model.interpolator.getComponentOffset(); - const borderMode = model.interpolator.getBorderMode(); - const inDims = input.getDimensions(); - const inExt = [0, inDims[0] - 1, 0, inDims[1] - 1, 0, inDims[2] - 1]; // interpolator->GetExtent(); - const inInc = [0, 0, 0]; - inInc[0] = inScalars.getNumberOfComponents(); - inInc[1] = inInc[0] * inDims[0]; - inInc[2] = inInc[1] * inDims[1]; - const fullSize = inDims[0] * inDims[1] * inDims[2]; - if (componentOffset > 0 && componentOffset + inComponents < inInc[0]) { - inPtr = inPtr.subarray(inputScalarSize * componentOffset); - } - let interpolationMode = InterpolationMode.NEAREST; - if (model.interpolator.isA('vtkImageInterpolator')) { - interpolationMode = model.interpolator.getInterpolationMode(); - } - const convertScalars = null; - const rescaleScalars = model.scalarShift !== 0.0 || model.scalarScale !== 1.0; - - // is nearest neighbor optimization possible? - const optimizeNearest = interpolationMode === InterpolationMode.NEAREST && borderMode === ImageBorderMode.CLAMP && !(optimizedTransform != null || perspective || convertScalars != null || rescaleScalars) && inputScalarType === outScalars.getDataType() && fullSize === inScalars.getNumberOfTuples() && model.border === true && nsamples <= 1; - - // get pixel information - const scalarType = outScalars.getDataType(); - const scalarSize = 1; // outScalars.getElementComponentSize() // outScalars.scalarSize; - const outComponents = outScalars.getNumberOfComponents(); - - // break matrix into a set of axes plus an origin - // (this allows us to calculate the transform Incrementally) - const xAxis = [0, 0, 0, 0]; - const yAxis = [0, 0, 0, 0]; - const zAxis = [0, 0, 0, 0]; - const origin = [0, 0, 0, 0]; - for (let i = 0; i < 4; ++i) { - xAxis[i] = newmat[4 * 0 + i]; - yAxis[i] = newmat[4 * 1 + i]; - zAxis[i] = newmat[4 * 2 + i]; - origin[i] = newmat[4 * 3 + i]; - } - - // allocate an output row of type double - let floatPtr = null; - if (!optimizeNearest) { - floatPtr = new Float64Array(inComponents * (outExt[1] - outExt[0] + nsamples)); - } - const background = macro.newTypedArray(inputScalarType, model.backgroundColor); - - // set color for area outside of input volume extent - // void *background; - // vtkAllocBackgroundPixel(&background, - // self->GetBackgroundColor(), scalarType, scalarSize, outComponents); - - // get various helper functions - const forceClamping = interpolationMode > InterpolationMode.LINEAR || nsamples > 1 && model.slabMode === SlabMode.SUM; - const convertpixels = publicAPI.getConversionFunc(inputScalarType, scalarType, model.scalarShift, model.scalarScale, forceClamping); - const setpixels = publicAPI.getSetPixelsFunc(scalarType, scalarSize, outComponents, outPtr); - const composite = publicAPI.getCompositeFunc(model.slabMode, model.slabTrapezoidIntegration); - - // create some variables for when we march through the data - let idY = outExt[2] - 1; - let idZ = outExt[4] - 1; - const inPoint0 = [0.0, 0.0, 0.0, 0.0]; - const inPoint1 = [0.0, 0.0, 0.0, 0.0]; - - // create an iterator to march through the data - const iter = vtkImagePointDataIterator.newInstance(); - iter.initialize(output, outExt, model.stencil, null); - const outPtr0 = iter.getScalars(output, 0); - let outPtrIndex = 0; - const outTmp = macro.newTypedArray(scalarType, vtkBoundingBox.getDiagonalLength(outExt) * outComponents * 2); - const interpolatedPtr = new Float64Array(inComponents * nsamples); - const interpolatedPoint = new Float64Array(inComponents); - for (; !iter.isAtEnd(); iter.nextSpan()) { - const span = iter.spanEndId() - iter.getId(); - outPtrIndex = iter.getId() * scalarSize * outComponents; - if (!iter.isInStencil()) { - // clear any regions that are outside the stencil - const n = setpixels(outTmp, background, outComponents, span); - for (let i = 0; i < n; ++i) { - outPtr0[outPtrIndex++] = outTmp[i]; - } - } else { - // get output index, and compute position in input image - const outIndex = iter.getIndex(); - - // if Z index increased, then advance position along Z axis - if (outIndex[2] > idZ) { - idZ = outIndex[2]; - inPoint0[0] = origin[0] + idZ * zAxis[0]; - inPoint0[1] = origin[1] + idZ * zAxis[1]; - inPoint0[2] = origin[2] + idZ * zAxis[2]; - inPoint0[3] = origin[3] + idZ * zAxis[3]; - idY = outExt[2] - 1; - } - - // if Y index increased, then advance position along Y axis - if (outIndex[1] > idY) { - idY = outIndex[1]; - inPoint1[0] = inPoint0[0] + idY * yAxis[0]; - inPoint1[1] = inPoint0[1] + idY * yAxis[1]; - inPoint1[2] = inPoint0[2] + idY * yAxis[2]; - inPoint1[3] = inPoint0[3] + idY * yAxis[3]; - } - - // march through one row of the output image - const idXmin = outIndex[0]; - const idXmax = idXmin + span - 1; - if (!optimizeNearest) { - let wasInBounds = 1; - let isInBounds = 1; - let startIdX = idXmin; - let idX = idXmin; - const tmpPtr = floatPtr; - let pixelIndex = 0; - while (startIdX <= idXmax) { - for (; idX <= idXmax && isInBounds === wasInBounds; idX++) { - const inPoint2 = [inPoint1[0] + idX * xAxis[0], inPoint1[1] + idX * xAxis[1], inPoint1[2] + idX * xAxis[2], inPoint1[3] + idX * xAxis[3]]; - const inPoint3 = [0, 0, 0, 0]; - let inPoint = inPoint2; - isInBounds = false; - let interpolatedPtrIndex = 0; - for (let sample = 0; sample < nsamples; ++sample) { - if (nsamples > 1) { - let s = sample - 0.5 * (nsamples - 1); - s *= slabSampleSpacing; - inPoint3[0] = inPoint2[0] + s * zAxis[0]; - inPoint3[1] = inPoint2[1] + s * zAxis[1]; - inPoint3[2] = inPoint2[2] + s * zAxis[2]; - inPoint3[3] = inPoint2[3] + s * zAxis[3]; - inPoint = inPoint3; - } - if (perspective) { - // only do perspective if necessary - const f = 1 / inPoint[3]; - inPoint[0] *= f; - inPoint[1] *= f; - inPoint[2] *= f; - } - if (optimizedTransform !== null) { - // get the input origin and spacing for conversion purposes - const inOrigin = model.interpolator.getOrigin(); - const inSpacing = model.interpolator.getSpacing(); - const inInvSpacing = [1.0 / inSpacing[0], 1.0 / inSpacing[1], 1.0 / inSpacing[2]]; - - // apply the AbstractTransform if there is one - // TBD: handle inDirection - publicAPI.applyTransform(optimizedTransform, inPoint, inOrigin, inInvSpacing); - } - if (model.interpolator.checkBoundsIJK(inPoint)) { - // do the interpolation - isInBounds = 1; - model.interpolator.interpolateIJK(inPoint, interpolatedPoint); - for (let i = 0; i < inComponents; ++i) { - interpolatedPtr[interpolatedPtrIndex++] = interpolatedPoint[i]; - } - } - } - if (interpolatedPtrIndex > inComponents) { - composite(interpolatedPtr, inComponents, interpolatedPtrIndex / inComponents); - } - for (let i = 0; i < inComponents; ++i) { - tmpPtr[pixelIndex++] = interpolatedPtr[i]; - } - - // set "was in" to "is in" if first pixel - wasInBounds = idX > idXmin ? wasInBounds : isInBounds; - } - - // write a segment to the output - const endIdX = idX - 1 - (isInBounds !== wasInBounds); - const numpixels = endIdX - startIdX + 1; - let n = 0; - if (wasInBounds) { - if (rescaleScalars) { - publicAPI.rescaleScalars(floatPtr, inComponents, idXmax - idXmin + 1, model.scalarShift, model.scalarScale); - } - { - n = convertpixels(outTmp, floatPtr.subarray(startIdX * inComponents), outComponents, numpixels); - } - } else { - n = setpixels(outTmp, background, outComponents, numpixels); - } - for (let i = 0; i < n; ++i) { - outPtr0[outPtrIndex++] = outTmp[i]; - } - startIdX += numpixels; - wasInBounds = isInBounds; - } - } else { - // optimize for nearest-neighbor interpolation - const inPtrTmp0 = inPtr; - const outPtrTmp = outPtr; - const inIncX = inInc[0] * inputScalarSize; - const inIncY = inInc[1] * inputScalarSize; - const inIncZ = inInc[2] * inputScalarSize; - const inExtX = inExt[1] - inExt[0] + 1; - const inExtY = inExt[3] - inExt[2] + 1; - const inExtZ = inExt[5] - inExt[4] + 1; - let startIdX = idXmin; - let endIdX = idXmin - 1; - let isInBounds = false; - const bytesPerPixel = inputScalarSize * inComponents; - for (let iidX = idXmin; iidX <= idXmax; iidX++) { - const inPoint = [inPoint1[0] + iidX * xAxis[0], inPoint1[1] + iidX * xAxis[1], inPoint1[2] + iidX * xAxis[2]]; - const inIdX = vtkInterpolationMathRound(inPoint[0]) - inExt[0]; - const inIdY = vtkInterpolationMathRound(inPoint[1]) - inExt[2]; - const inIdZ = vtkInterpolationMathRound(inPoint[2]) - inExt[4]; - if (inIdX >= 0 && inIdX < inExtX && inIdY >= 0 && inIdY < inExtY && inIdZ >= 0 && inIdZ < inExtZ) { - if (!isInBounds) { - // clear leading out-of-bounds pixels - startIdX = iidX; - isInBounds = true; - const n = setpixels(outTmp, background, outComponents, startIdX - idXmin); - for (let i = 0; i < n; ++i) { - outPtr0[outPtrIndex++] = outTmp[i]; - } - } - // set the final index that was within input bounds - endIdX = iidX; - - // perform nearest-neighbor interpolation via pixel copy - let offset = inIdX * inIncX + inIdY * inIncY + inIdZ * inIncZ; - - // when memcpy is used with a constant size, the compiler will - // optimize away the function call and use the minimum number - // of instructions necessary to perform the copy - switch (bytesPerPixel) { - case 1: - outPtr0[outPtrIndex++] = inPtrTmp0[offset]; - break; - case 2: - case 3: - case 4: - case 8: - case 12: - case 16: - for (let i = 0; i < bytesPerPixel; ++i) { - outPtr0[outPtrIndex++] = inPtrTmp0[offset + i]; - } - break; - default: - { - // TODO: check bytes - let oc = 0; - do { - outPtr0[outPtrIndex++] = inPtrTmp0[offset++]; - } while (++oc !== bytesPerPixel); - break; - } - } - } else if (isInBounds) { - // leaving input bounds - break; - } - } - - // clear trailing out-of-bounds pixels - outPtr = outPtrTmp; - const n = setpixels(outTmp, background, outComponents, idXmax - endIdX); - for (let i = 0; i < n; ++i) { - outPtr0[outPtrIndex++] = outTmp[i]; - } - } - } - } - }; - /** - * The transform matrix supplied by the user converts output coordinates - * to input coordinates. - * To speed up the pixel lookup, the following function provides a - * matrix which converts output pixel indices to input pixel indices. - * This will also concatenate the ResliceAxes and the ResliceTransform - * if possible (if the ResliceTransform is a 4x4 matrix transform). - * If it does, this->OptimizedTransform will be set to nullptr, otherwise - * this->OptimizedTransform will be equal to this->ResliceTransform. - * @param {vtkImageData} input - * @param {vtkImageData} output - * @returns - */ - publicAPI.getIndexMatrix = (input, output) => { - const transform = mat4.identity(new Float64Array(16)); - optimizedTransform = null; - if (model.resliceAxes) { - mat4.copy(transform, model.resliceAxes); - } - if (model.resliceTransform) { - if (model.resliceTransform.isA('vtkHomogeneousTransform')) { - mat4.multiply(transform, model.resliceTransform.getMatrix(), transform); - } else { - // TODO - vtkWarningMacro('Non homogeneous transform have not yet been ported'); - } - } - - // the outMatrix takes OutputData indices to OutputData coordinates, - const outMatrix = output.getIndexToWorld(); - mat4.multiply(transform, transform, outMatrix); - - // the inMatrix takes InputData coordinates to InputData indices - // the optimizedTransform requires data coords, not index coords, as its input - if (optimizedTransform == null) { - const inMatrix = input.getWorldToIndex(); - mat4.multiply(transform, inMatrix, transform); - } - mat4.copy(indexMatrix, transform); - return indexMatrix; - }; - publicAPI.getAutoCroppedOutputBounds = input => { - const inOrigin = input.getOrigin(); - const inSpacing = input.getSpacing(); - const inDirection = input.getDirection(); - const dims = input.getDimensions(); - const inWholeExt = [0, dims[0] - 1, 0, dims[1] - 1, 0, dims[2] - 1]; - const matrix = new Float64Array(16); - if (model.resliceAxes) { - mat4.invert(matrix, model.resliceAxes); - } else { - mat4.identity(matrix); - } - let transform = null; - if (model.resliceTransform) { - transform = model.resliceTransform.getInverse(); - } - let imageTransform = null; - if (!vtkMath.isIdentity3x3(inDirection)) { - imageTransform = vtkMatrixBuilder.buildFromRadian().translate(inOrigin[0], inOrigin[1], inOrigin[2]).multiply3x3(inDirection).translate(-inOrigin[0], -inOrigin[1], -inOrigin[2]).invert().getMatrix(); - } - const bounds = [Number.MAX_VALUE, -Number.MAX_VALUE, Number.MAX_VALUE, -Number.MAX_VALUE, Number.MAX_VALUE, -Number.MAX_VALUE]; - const point = [0, 0, 0, 0]; - for (let i = 0; i < 8; ++i) { - point[0] = inOrigin[0] + inWholeExt[i % 2] * inSpacing[0]; - point[1] = inOrigin[1] + inWholeExt[2 + Math.floor(i / 2) % 2] * inSpacing[1]; - point[2] = inOrigin[2] + inWholeExt[4 + Math.floor(i / 4) % 2] * inSpacing[2]; - point[3] = 1.0; - if (imageTransform) { - vec4.transformMat4(point, point, imageTransform); - } - if (model.resliceTransform) { - transform.transformPoint(point, point); - } - vec4.transformMat4(point, point, matrix); - const f = 1.0 / point[3]; - point[0] *= f; - point[1] *= f; - point[2] *= f; - for (let j = 0; j < 3; ++j) { - if (point[j] > bounds[2 * j + 1]) { - bounds[2 * j + 1] = point[j]; - } - if (point[j] < bounds[2 * j]) { - bounds[2 * j] = point[j]; - } - } - } - return bounds; - }; - publicAPI.getDataTypeMinMax = dataType => { - switch (dataType) { - case 'Int8Array': - return { - min: -128, - max: 127 - }; - case 'Int16Array': - return { - min: -32768, - max: 32767 - }; - case 'Uint16Array': - return { - min: 0, - max: 65535 - }; - case 'Int32Array': - return { - min: -2147483648, - max: 2147483647 - }; - case 'Uint32Array': - return { - min: 0, - max: 4294967295 - }; - case 'Float32Array': - return { - min: -1.2e38, - max: 1.2e38 - }; - case 'Float64Array': - return { - min: -1.2e38, - max: 1.2e38 - }; - case 'Uint8Array': - case 'Uint8ClampedArray': - default: - return { - min: 0, - max: 255 - }; - } - }; - publicAPI.clamp = (outPtr, inPtr, numscalars, n, min, max) => { - const count = n * numscalars; - for (let i = 0; i < count; ++i) { - outPtr[i] = vtkInterpolationMathClamp(inPtr[i], min, max); - } - return count; - }; - publicAPI.convert = (outPtr, inPtr, numscalars, n) => { - const count = n * numscalars; - for (let i = 0; i < count; ++i) { - outPtr[i] = Math.round(inPtr[i]); - } - return count; - }; - publicAPI.getConversionFunc = (inputType, dataType, scalarShift, scalarScale, forceClamping) => { - let useClamping = forceClamping; - if (dataType !== VtkDataTypes.FLOAT && dataType !== VtkDataTypes.DOUBLE && !forceClamping) { - const inMinMax = publicAPI.getDataTypeMinMax(inputType); - let checkMin = (inMinMax.min + scalarShift) * scalarScale; - let checkMax = (inMinMax.max + scalarShift) * scalarScale; - const outMinMax = publicAPI.getDataTypeMinMax(dataType); - const outputMin = outMinMax.min; - const outputMax = outMinMax.max; - if (checkMin > checkMax) { - const tmp = checkMax; - checkMax = checkMin; - checkMin = tmp; - } - useClamping = checkMin < outputMin || checkMax > outputMax; - } - if (useClamping && dataType !== VtkDataTypes.FLOAT && dataType !== VtkDataTypes.DOUBLE) { - const minMax = publicAPI.getDataTypeMinMax(dataType); - const clamp = (outPtr, inPtr, numscalars, n) => publicAPI.clamp(outPtr, inPtr, numscalars, n, minMax.min, minMax.max); - return clamp; - } - return publicAPI.convert; - }; - publicAPI.set = (outPtr, inPtr, numscalars, n) => { - const count = numscalars * n; - for (let i = 0; i < n; ++i) { - outPtr[i] = inPtr[i]; - } - return count; - }; - publicAPI.set1 = (outPtr, inPtr, numscalars, n) => { - outPtr.fill(inPtr[0], 0, n); - return n; - }; - publicAPI.getSetPixelsFunc = (dataType, dataSize, numscalars, dataPtr) => numscalars === 1 ? publicAPI.set1 : publicAPI.set; - publicAPI.getCompositeFunc = (slabMode, slabTrapezoidIntegration) => { - let composite = null; - // eslint-disable-next-line default-case - switch (slabMode) { - case SlabMode.MIN: - composite = getImageResliceCompositeMinValue; - break; - case SlabMode.MAX: - composite = getImageResliceCompositeMaxValue; - break; - case SlabMode.MEAN: - if (slabTrapezoidIntegration) { - composite = getImageResliceCompositeMeanTrap; - } else { - composite = getImageResliceCompositeMeanValue; - } - break; - case SlabMode.SUM: - if (slabTrapezoidIntegration) { - composite = getImageResliceCompositeSumTrap; - } else { - composite = getImageResliceCompositeSumValue; - } - break; - } - return composite; - }; - publicAPI.applyTransform = (newTrans, inPoint, inOrigin, inInvSpacing) => { - inPoint[3] = 1; - vec4.transformMat4(inPoint, inPoint, newTrans); - inPoint[0] -= inOrigin[0]; - inPoint[1] -= inOrigin[1]; - inPoint[2] -= inOrigin[2]; - inPoint[0] *= inInvSpacing[0]; - inPoint[1] *= inInvSpacing[1]; - inPoint[2] *= inInvSpacing[2]; - }; - publicAPI.rescaleScalars = (floatData, components, n, scalarShift, scalarScale) => { - const m = n * components; - for (let i = 0; i < m; ++i) { - floatData[i] = (floatData[i] + scalarShift) * scalarScale; - } - }; - publicAPI.isPermutationMatrix = matrix => { - for (let i = 0; i < 3; i++) { - if (matrix[4 * i + 3] !== 0) { - return false; - } - } - if (matrix[4 * 3 + 3] !== 1) { - return false; - } - for (let j = 0; j < 3; j++) { - let k = 0; - for (let i = 0; i < 3; i++) { - if (matrix[4 * j + i] !== 0) { - k++; - } - } - if (k !== 1) { - return false; - } - } - return true; - }; - - // TODO: to move in vtkMath and add tolerance - publicAPI.isIdentityMatrix = matrix => { - for (let i = 0; i < 4; ++i) { - for (let j = 0; j < 4; ++j) { - if ((i === j ? 1.0 : 0.0) !== matrix[4 * j + i]) { - return false; - } - } - } - return true; - }; - publicAPI.isPerspectiveMatrix = matrix => matrix[4 * 0 + 3] !== 0 || matrix[4 * 1 + 3] !== 0 || matrix[4 * 2 + 3] !== 0 || matrix[4 * 3 + 3] !== 1; - publicAPI.canUseNearestNeighbor = (matrix, outExt) => { - // loop through dimensions - for (let i = 0; i < 3; i++) { - let j; - for (j = 0; j < 3; j++) { - if (matrix[4 * j + i] !== 0) { - break; - } - } - if (j >= 3) { - return false; - } - let x = matrix[4 * j + i]; - let y = matrix[4 * 3 + i]; - if (outExt[2 * j] === outExt[2 * j + 1]) { - y += x * outExt[2 * i]; - x = 0; - } - const fx = vtkInterpolationMathFloor(x).error; - const fy = vtkInterpolationMathFloor(y).error; - if (fx !== 0 || fy !== 0) { - return false; - } - } - return true; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - transformInputSampling: true, - autoCropOutput: false, - outputDimensionality: 3, - outputSpacing: null, - // automatically computed if null - outputOrigin: null, - // automatically computed if null - outputDirection: null, - // identity if null - outputExtent: null, - // automatically computed if null - outputScalarType: null, - wrap: false, - // don't wrap - mirror: false, - // don't mirror - border: true, - // apply a border - interpolationMode: InterpolationMode.NEAREST, - // only NEAREST supported so far - slabMode: SlabMode.MIN, - slabTrapezoidIntegration: false, - slabNumberOfSlices: 1, - slabSliceSpacingFraction: 1, - optimization: false, - // not supported yet - scalarShift: 0, - // for rescaling the data - scalarScale: 1, - backgroundColor: [0, 0, 0, 0], - resliceAxes: null, - // resliceTransform: null, - interpolator: vtkImageInterpolator.newInstance(), - usePermuteExecute: false // no supported yet -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - macro.setGet(publicAPI, model, ['outputDimensionality', 'outputScalarType', 'scalarShift', 'scalarScale', 'transformInputSampling', 'autoCropOutput', 'wrap', 'mirror', 'border', 'interpolationMode', 'resliceTransform', 'slabMode', 'slabTrapezoidIntegration', 'slabNumberOfSlices', 'slabSliceSpacingFraction']); - macro.setGetArray(publicAPI, model, ['outputOrigin', 'outputSpacing'], 3); - macro.setGetArray(publicAPI, model, ['outputExtent'], 6); - macro.setGetArray(publicAPI, model, ['outputDirection'], 9); - macro.setGetArray(publicAPI, model, ['backgroundColor'], 4); - macro.get(publicAPI, model, ['resliceAxes']); - - // Object specific methods - vtkImageReslice(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImageReslice'); - -// ---------------------------------------------------------------------------- - -var vtkImageReslice$1 = { - newInstance, - extend, - ...Constants -}; - -export { vtkImageReslice$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/ImageReslice/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/ImageReslice/Constants.d.ts deleted file mode 100644 index f8821e20..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/ImageReslice/Constants.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export declare enum SlabMode { - MIN = 0, - MAX = 1, - MEAN = 2, - SUM = 3, -} - -declare const _default: { - SlabMode: typeof SlabMode; -}; - -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/ImageReslice/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/ImageReslice/Constants.js deleted file mode 100644 index 6f208bd1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Core/ImageReslice/Constants.js +++ /dev/null @@ -1,11 +0,0 @@ -const SlabMode = { - MIN: 0, - MAX: 1, - MEAN: 2, - SUM: 3 -}; -var Constants = { - SlabMode -}; - -export { SlabMode, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Hybrid.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Hybrid.js deleted file mode 100644 index b06b972e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Hybrid.js +++ /dev/null @@ -1,7 +0,0 @@ -import vtkSampleFunction from './Hybrid/SampleFunction.js'; - -var Hybrid = { - vtkSampleFunction -}; - -export { Hybrid as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Hybrid/SampleFunction.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Hybrid/SampleFunction.js deleted file mode 100644 index 8e25cd7d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/Hybrid/SampleFunction.js +++ /dev/null @@ -1,121 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkImageData from '../../Common/DataModel/ImageData.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkSampleFunction methods -// ---------------------------------------------------------------------------- - -function vtkSampleFunction(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkSampleFunction'); - - // Capture "parentClass" api for internal use - const superClass = { - ...publicAPI - }; - publicAPI.getMTime = () => { - if (!(model.implicitFunction && model.implicitFunction.getMTime)) { - return superClass.getMTime(); - } - return Math.max(superClass.getMTime(), model.implicitFunction.getMTime()); - }; - publicAPI.requestData = (inData, outData) => { - // implement requestData - const imp = model.implicitFunction; - if (!imp) { - vtkErrorMacro('An implicit function must be defined'); - return; - } - - // Create a volume - const dims = [model.sampleDimensions[0], model.sampleDimensions[1], model.sampleDimensions[2]]; - const numScalars = dims[0] * dims[1] * dims[2]; - if (numScalars < 1 || dims[1] < 2 || dims[1] < 2 || dims[2] < 2) { - vtkErrorMacro('Bad volume dimensions'); - return; - } - const volume = outData[0]?.initialize() || vtkImageData.newInstance(); - const origin = [model.modelBounds[0], model.modelBounds[2], model.modelBounds[4]]; - const spacing = [(model.modelBounds[1] - model.modelBounds[0]) / (dims[0] - 1), (model.modelBounds[3] - model.modelBounds[2]) / (dims[1] - 1), (model.modelBounds[5] - model.modelBounds[4]) / (dims[2] - 1)]; - const sliceSize = dims[0] * dims[1]; - volume.setDimensions(dims); - volume.setOrigin(origin); - volume.setSpacing(spacing); - - // Create scalars array - const s = macro.newTypedArray(model.pointType, numScalars); - const scalars = vtkDataArray.newInstance({ - name: 'Scalars', - values: s, - numberOfComponents: 1 - }); - volume.getPointData().setScalars(scalars); - - // Now loop over volume dimensions and generate scalar values - let sValue = 0.0; - const xyz = [0.0, 0.0, 0.0]; - for (let k = 0; k < dims[2]; k++) { - xyz[2] = origin[2] + k * spacing[2]; - for (let j = 0; j < dims[1]; j++) { - xyz[1] = origin[1] + j * spacing[1]; - for (let i = 0; i < dims[0]; i++) { - xyz[0] = origin[0] + i * spacing[0]; - sValue = imp.evaluateFunction(xyz); - s[i + j * dims[0] + k * sliceSize] = sValue; - } - } - } - - // Update output - outData[0] = volume; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - implicitFunction: undefined, - sampleDimensions: [50, 50, 50], - modelBounds: [-1.0, 1.0, -1.0, 1.0, -1.0, 1.0], - pointType: 'Float32Array' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Make this a VTK object - macro.obj(publicAPI, model); - - // Also make it an algorithm with one input and one output - macro.algo(publicAPI, model, 1, 1); - - // Generate macros for properties - macro.setGetArray(publicAPI, model, ['sampleDimensions'], 3); - macro.setGetArray(publicAPI, model, ['modelBounds'], 6); - - // Object specific methods - vtkSampleFunction(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSampleFunction'); - -// ---------------------------------------------------------------------------- - -var vtkSampleFunction$1 = { - newInstance, - extend -}; - -export { vtkSampleFunction$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/index.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/index.js deleted file mode 100644 index 45209777..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Imaging/index.js +++ /dev/null @@ -1,9 +0,0 @@ -import Core from './Core.js'; -import Hybrid from './Hybrid.js'; - -var Imaging = { - Core, - Hybrid -}; - -export { Imaging as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Animations/TimeStepBasedAnimationHandler.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Animations/TimeStepBasedAnimationHandler.js deleted file mode 100644 index 2f8a049c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Animations/TimeStepBasedAnimationHandler.js +++ /dev/null @@ -1,132 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkTimeStepBasedAnimationHandler methods -// ---------------------------------------------------------------------------- - -function vtkTimeStepBasedAnimationHandler(publicAPI, model) { - publicAPI.setCurrentTimeStep = time => { - if (!model.timeSteps || model.timeSteps.length === 0) { - return; - } - if (model.timeSteps.includes(time)) { - model.currentTimeStep = time; - } else if (time <= model.timeSteps[0]) { - model.currentTimeStep = model.timeSteps[0]; - } else { - model.currentTimeStep = model.timeSteps.find((prevTime, index, array) => { - if (index === array.length - 1) { - return true; - } - return time >= prevTime && time < array[index + 1]; - }); - } - publicAPI.update(); - }; - publicAPI.setData = data => { - model.data = data; - - // Refresh timesteps - if (data.timeSteps) { - model.timeSteps = data.timeSteps.map(timeStep => timeStep.time); - model.timeRange = [model.timeSteps[0], model.timeSteps[model.timeSteps.length - 1]]; - model.currentTimeStep = model.timeSteps[0]; - } - }; - publicAPI.setScene = (scene, originalMetadata, applySettings, renderer) => { - model.scene = scene; - model.originalMetadata = originalMetadata; - model.applySettings = applySettings; - model.renderer = renderer; - }; - publicAPI.setCameraParameters = params => { - if (model.renderers) { - model.renderers.forEach(renderer => { - const camera = renderer.getActiveCamera(); - if (camera) { - camera.set(params); - } - }); - } - }; - publicAPI.setBackground = color => { - if (model.renderers) { - model.renderers.forEach(renderer => { - renderer.setBackground(color); - }); - } - }; - publicAPI.update = () => { - if (!model.data || !model.scene) { - return; - } - const currentScene = model.data.timeSteps.find(scene => scene.time === model.currentTimeStep); - if (currentScene.camera) { - const camera = { - ...model.originalMetadata.camera - }; - Object.assign(camera, currentScene.camera); - publicAPI.setCameraParameters(camera); - } - if (currentScene.background) { - publicAPI.setBackground(currentScene.background); - } - if (model.scene) { - model.scene.forEach(sceneItem => { - if (sceneItem.source.setUpdateTimeStep && sceneItem.source.getTimeSteps().includes(model.currentTimeStep)) { - sceneItem.source.setUpdateTimeStep(model.currentTimeStep); - } - const id = sceneItem.id; - if (currentScene[id]) { - const settings = { - ...sceneItem.defaultSettings - }; - Object.assign(settings, currentScene[id]); - model.applySettings(sceneItem, settings); - } - }); - } - }; - publicAPI.addRenderer = renderer => { - if (renderer && !model.renderers.includes(renderer)) { - model.renderers.push(renderer); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - timeSteps: [0.0], - timeRange: [0.0, 0.0], - currentTimeStep: 0.0, - scene: null, - data: null, - renderers: [], - applySettings: null, - originalMetadata: null -}; -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['applySettings', 'currentTimeStep', 'data', 'originalMetada', 'scene', 'timeRange', 'timeSteps']); - macro.setGet(publicAPI, model, ['renderers']); - - // Object methods - vtkTimeStepBasedAnimationHandler(publicAPI, model); -} -const newInstance = macro.newInstance(extend, 'vtkTimeStepBasedAnimationHandler'); - -// ---------------------------------------------------------------------------- - -var vtkTimeStepBasedAnimationHandler$1 = { - newInstance, - extend -}; - -export { vtkTimeStepBasedAnimationHandler$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators.js deleted file mode 100644 index 29f85ef3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators.js +++ /dev/null @@ -1,47 +0,0 @@ -import vtkCompositeCameraManipulator from './Manipulators/CompositeCameraManipulator.js'; -import vtkCompositeGestureManipulator from './Manipulators/CompositeGestureManipulator.js'; -import vtkCompositeKeyboardManipulator from './Manipulators/CompositeKeyboardManipulator.js'; -import vtkCompositeMouseManipulator from './Manipulators/CompositeMouseManipulator.js'; -import vtkCompositeVRManipulator from './Manipulators/CompositeVRManipulator.js'; -import vtkGestureCameraManipulator from './Manipulators/GestureCameraManipulator.js'; -import vtkKeyboardCameraManipulator from './Manipulators/KeyboardCameraManipulator.js'; -import vtkMouseBoxSelectorManipulator from './Manipulators/MouseBoxSelectorManipulator.js'; -import vtkMouseCameraAxisRotateManipulator from './Manipulators/MouseCameraAxisRotateManipulator.js'; -import vtkMouseCameraSliceManipulator from './Manipulators/MouseCameraSliceManipulator.js'; -import vtkMouseCameraUnicamManipulator from './Manipulators/MouseCameraUnicamManipulator.js'; -import vtkMouseCameraUnicamRotateManipulator from './Manipulators/MouseCameraUnicamRotateManipulator.js'; -import vtkMouseCameraTrackballFirstPersonManipulator from './Manipulators/MouseCameraTrackballFirstPersonManipulator.js'; -import vtkMouseCameraTrackballMultiRotateManipulator from './Manipulators/MouseCameraTrackballMultiRotateManipulator.js'; -import vtkMouseCameraTrackballPanManipulator from './Manipulators/MouseCameraTrackballPanManipulator.js'; -import vtkMouseCameraTrackballRollManipulator from './Manipulators/MouseCameraTrackballRollManipulator.js'; -import vtkMouseCameraTrackballRotateManipulator from './Manipulators/MouseCameraTrackballRotateManipulator.js'; -import vtkMouseCameraTrackballZoomManipulator from './Manipulators/MouseCameraTrackballZoomManipulator.js'; -import vtkMouseCameraTrackballZoomToMouseManipulator from './Manipulators/MouseCameraTrackballZoomToMouseManipulator.js'; -import vtkMouseRangeManipulator from './Manipulators/MouseRangeManipulator.js'; -import vtkVRButtonPanManipulator from './Manipulators/VRButtonPanManipulator.js'; - -var Manipulators = { - vtkCompositeCameraManipulator, - vtkCompositeGestureManipulator, - vtkCompositeKeyboardManipulator, - vtkCompositeMouseManipulator, - vtkCompositeVRManipulator, - vtkGestureCameraManipulator, - vtkKeyboardCameraManipulator, - vtkMouseBoxSelectorManipulator, - vtkMouseCameraAxisRotateManipulator, - vtkMouseCameraSliceManipulator, - vtkMouseCameraUnicamManipulator, - vtkMouseCameraUnicamRotateManipulator, - vtkMouseCameraTrackballFirstPersonManipulator, - vtkMouseCameraTrackballMultiRotateManipulator, - vtkMouseCameraTrackballPanManipulator, - vtkMouseCameraTrackballRollManipulator, - vtkMouseCameraTrackballRotateManipulator, - vtkMouseCameraTrackballZoomManipulator, - vtkMouseCameraTrackballZoomToMouseManipulator, - vtkMouseRangeManipulator, - vtkVRButtonPanManipulator -}; - -export { Manipulators as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/3DControllerModelSelectorManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/3DControllerModelSelectorManipulator.d.ts deleted file mode 100644 index 4153fcde..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/3DControllerModelSelectorManipulator.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import vtkCompositeVRManipulator from './CompositeVRManipulator'; - -export interface vtk3DControllerModelSelectorManipulator - extends vtkCompositeVRManipulator {} - -export interface I3DControllerModelSelectorManipulatorInitialValues - extends vtkCompositeVRManipulator {} - -export function extend( - publicAPI: object, - model: object, - initialValues?: I3DControllerModelSelectorManipulatorInitialValues -): void; - -export const vtk3DControllerModelSelectorManipulator: { - extend: typeof extend; -}; - -export default vtk3DControllerModelSelectorManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/3DControllerModelSelectorManipulator/index.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/3DControllerModelSelectorManipulator/index.js deleted file mode 100644 index 3bef8c42..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/3DControllerModelSelectorManipulator/index.js +++ /dev/null @@ -1,182 +0,0 @@ -import { vec3, vec4, quat, mat4 } from 'gl-matrix'; -import vtkCompositeVRManipulator from '../CompositeVRManipulator.js'; -import vtkPicker from '../../../Rendering/Core/Picker.js'; -import { m as macro } from '../../../macros2.js'; -import { States } from '../../../Rendering/Core/InteractorStyle/Constants.js'; - -// ---------------------------------------------------------------------------- -// vtk3DControllerModelSelectorManipulator methods -// ---------------------------------------------------------------------------- - -function vtk3DControllerModelSelectorManipulator(publicAPI, model) { - model.classHierarchy.push('vtk3DControllerModelSelectorManipulator'); - const picker = vtkPicker.newInstance(); - - // The current prop we are manipulating, if any. - let pickedProp; - - // pre-allocate array buffers - const physicalToWorldMatrix = new Float64Array(16); - - // arrays holding deltas from lastWorldPosition and lastOrientation - const translation = new Float64Array(3); - const rotation = new Float64Array(4); - const lastOrientationConjugate = new Float64Array(4); - const orientationAxis = new Float64Array(3); - - // arrays holding the transform - const computedTransform = new Float64Array(16); - const computedTransformRotation = new Float64Array(4); - - // arrays holding the current state of pickedProp. - const transposedPropMatrix = new Float64Array(16); - const propCurrentOrientation = new Float64Array(4); - const propCurrentOrientationConjugate = new Float64Array(4); - - // arrays holding the new properties that must be assigned to pickedProp. - const propNewTranslation = new Float64Array(3); - const propNewScaling = new Float64Array(3); - const propNewOrientation = new Float64Array(4); - function applyPositionAndOrientationToProp(prop, worldPosition, orientation) { - vec3.subtract(translation, worldPosition, model.lastWorldPosition); - quat.conjugate(lastOrientationConjugate, model.lastOrientation); - quat.multiply(rotation, orientation, lastOrientationConjugate); - quat.normalize(rotation, rotation); - const rotationAngle = quat.getAxisAngle(orientationAxis, rotation); - - // reset to identity - mat4.identity(computedTransform); - - // compute transform - mat4.translate(computedTransform, computedTransform, worldPosition); - mat4.rotate(computedTransform, computedTransform, rotationAngle, orientationAxis); - mat4.translate(computedTransform, computedTransform, vec3.negate(new Float64Array(3), worldPosition)); - mat4.translate(computedTransform, computedTransform, translation); - - // lookup the prop internal matrix - mat4.transpose(transposedPropMatrix, prop.getMatrix()); - // apply the new computedTransform to the prop internal matrix - mat4.multiply(computedTransform, computedTransform, transposedPropMatrix); - - // Multiply the computedTransform with the current prop orientation to get the delta - // that must be applied to the prop - mat4.getRotation(computedTransformRotation, computedTransform); - prop.getOrientationQuaternion(propCurrentOrientation); - quat.conjugate(propCurrentOrientationConjugate, propCurrentOrientation); - quat.multiply(propNewOrientation, propCurrentOrientationConjugate, computedTransformRotation); - quat.normalize(propNewOrientation, propNewOrientation); - mat4.getTranslation(propNewTranslation, computedTransform); - mat4.getScaling(propNewScaling, computedTransform); - - // Update the prop internal matrix - prop.setPosition(...propNewTranslation); - prop.setScale(...propNewScaling); - prop.rotateQuaternion(propNewOrientation); - } - function releasePickedProp() { - model.lastOrientation = null; - model.lastWorldPosition = null; - if (pickedProp) { - pickedProp.setDragable(true); - } - pickedProp = null; - } - publicAPI.onButton3D = (interactorStyle, renderer, state, eventData) => { - // If the button is not pressed, clear the state - if (!eventData.pressed) { - releasePickedProp(); - return macro.VOID; - } - const camera = renderer.getActiveCamera(); - camera.getPhysicalToWorldMatrix(physicalToWorldMatrix); - const { - targetPosition, - targetOrientation - } = eventData; - - // Since targetPosition is in physical coordinates, - // transform it using the physicalToWorldMatrix to get it in world coordinates - const targetRayWorldPosition = vec3.transformMat4([], [targetPosition.x, targetPosition.y, targetPosition.z], physicalToWorldMatrix); - const targetRayWorldDirection = camera.physicalOrientationToWorldDirection([targetOrientation.x, targetOrientation.y, targetOrientation.z, targetOrientation.w]); - const dist = renderer.getActiveCamera().getClippingRange()[1]; - const rayPoint1 = [...targetRayWorldPosition, 1.0]; - const rayPoint2 = [rayPoint1[0] - targetRayWorldDirection[0] * dist, rayPoint1[1] - targetRayWorldDirection[1] * dist, rayPoint1[2] - targetRayWorldDirection[2] * dist, 1.0]; - - // Perform picking on the given renderer - picker.pick3DPoint(rayPoint1, rayPoint2, renderer); - const props = picker.getActors(); - - // If we have picked props, store the first one. - if (props.length > 0 && props[0].getNestedDragable()) { - pickedProp = props[0]; - - // prevent the prop from being dragged somewhere else - pickedProp.setDragable(false); - } else { - releasePickedProp(); - } - return macro.EVENT_ABORT; - }; - - // pre-allocation to reduce gc in onMove3D - const currentTargetRayWorldPosition = new Float64Array(3); - const currentTargetRayOrientation = new Float64Array(4); - publicAPI.onMove3D = (interactorStyle, renderer, state, eventData) => { - // If we are not interacting with any prop, we have nothing to do. - // Also check for dragable - if (state !== States.IS_CAMERA_POSE || pickedProp == null) { - return macro.VOID; - } - const camera = renderer.getActiveCamera(); - camera.getPhysicalToWorldMatrix(physicalToWorldMatrix); - const { - targetPosition - } = eventData; - vec3.transformMat4(currentTargetRayWorldPosition, [targetPosition.x, targetPosition.y, targetPosition.z], physicalToWorldMatrix); - - // this is a unit quaternion - vec4.set(currentTargetRayOrientation, eventData.targetOrientation.x, eventData.targetOrientation.y, eventData.targetOrientation.z, eventData.targetOrientation.w); - if (model.lastWorldPosition && model.lastOrientation) { - applyPositionAndOrientationToProp(pickedProp, currentTargetRayWorldPosition, currentTargetRayOrientation); - } else { - // allocate - model.lastWorldPosition = new Float64Array(3); - model.lastOrientation = new Float64Array(4); - } - vec3.copy(model.lastWorldPosition, currentTargetRayWorldPosition); - vec4.copy(model.lastOrientation, currentTargetRayOrientation); - return macro.EVENT_ABORT; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.get(publicAPI, model, ['lastWorldPosition', 'lastOrientation']); - macro.obj(publicAPI, model); - vtkCompositeVRManipulator.extend(publicAPI, model, initialValues); - - // Object specific methods - vtk3DControllerModelSelectorManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtk3DControllerModelSelectorManipulator'); - -// ---------------------------------------------------------------------------- - -var vtk3DControllerModelSelectorManipulator$1 = { - newInstance, - extend -}; - -export { vtk3DControllerModelSelectorManipulator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeCameraManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeCameraManipulator.d.ts deleted file mode 100644 index de74f121..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeCameraManipulator.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { vtkInteractorObserver } from './../../Rendering/Core/InteractorObserver'; -import { vtkRenderer } from './../../Rendering/Core/Renderer'; -import { Vector2, Vector3 } from './../../types'; - -export interface vtkCompositeCameraManipulator { - /** - * Computes the display center. - * @param observer - * @param renderer - */ - computeDisplayCenter( - observer: vtkInteractorObserver, - renderer: vtkRenderer - ): void; - - /** - * Sets the rotation factor. - * @param factor - */ - setRotationFactor(factor: number): boolean; - - /** - * Gets the rotation factor. - */ - getRotationFactor(): number; - - /** - * Sets the display center. - * @param center - */ - setDisplayCenter(center: Vector2): boolean; - setDisplayCenter(x: number, y: number): boolean; - - /** - * Gets the display center. - */ - getDisplayCenter(): Vector2; - - /** - * Sets the center. - * @param center - */ - setCenter(center: Vector3): boolean; - setCenter(x: number, y: number, z: number): boolean; - - /** - * Gets the center. - */ - getCenter(): Vector3; -} - -export interface ICompositeCameraManipulatorInitialValues { - center?: Vector3; - rotationFactor?: number; - displayCenter?: Vector2; -} - -export function extend( - publicAPI: object, - model: object, - initialValues?: ICompositeCameraManipulatorInitialValues -): void; - -export const vtkCompositeCameraManipulator: { - extend: typeof extend; -}; - -export default vtkCompositeCameraManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeCameraManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeCameraManipulator.js deleted file mode 100644 index 8cd89d2d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeCameraManipulator.js +++ /dev/null @@ -1,50 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkCompositeCameraManipulator methods -// ---------------------------------------------------------------------------- - -function vtkCompositeCameraManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCompositeCameraManipulator'); - - //------------------------------------------------------------------------- - publicAPI.computeDisplayCenter = (iObserver, renderer) => { - const pt = iObserver.computeWorldToDisplay(renderer, model.center[0], model.center[1], model.center[2]); - model.displayCenter[0] = pt[0]; - model.displayCenter[1] = pt[1]; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - center: [0, 0, 0], - rotationFactor: 1, - displayCenter: [0, 0] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Create get-set macros - macro.setGet(publicAPI, model, ['rotationFactor']); - macro.setGetArray(publicAPI, model, ['displayCenter'], 2); - macro.setGetArray(publicAPI, model, ['center'], 3); - - // Object specific methods - vtkCompositeCameraManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -var vtkCompositeCameraManipulator$1 = { - extend -}; - -export { vtkCompositeCameraManipulator$1 as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeGestureManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeGestureManipulator.d.ts deleted file mode 100644 index b0d2dc00..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeGestureManipulator.d.ts +++ /dev/null @@ -1,168 +0,0 @@ -import vtkInteractorStyle from './../../Rendering/Core/InteractorStyle'; -import vtkRenderer from './../../Rendering/Core/Renderer'; -import vtkRenderWindowInteractor from './../../Rendering/Core/RenderWindowInteractor'; -import { Nullable } from './../../types'; - -export interface vtkCompositeGestureManipulator { - /** - * Starts an interaction event. - */ - startInteraction(): void; - - /** - * Ends an interaction event. - */ - endInteraction(): void; - - /** - * Handles a start pinch gesture. - * @param interactor - * @param scale - */ - onStartPinch(interactor: vtkRenderWindowInteractor, scale: number): void; - - /** - * Handles a pinch gesture. - * @param interactor - * @param renderer - * @param scale - */ - onPinch( - interactor: vtkRenderWindowInteractor, - renderer: vtkRenderer, - scale: number - ): void; - - /** - * Handles an end pinch gesture. - * @param interactor - */ - onEndPinch(interactor: vtkRenderWindowInteractor): void; - - /** - * Handles a start rotate gesture. - * @param interactor - * @param rotation - */ - onStartRotate(interactor: vtkRenderWindowInteractor, rotation: number): void; - - /** - * Handles a rotate gesture. - * @param interactor - * @param renderer - * @param rotation - */ - onRotate( - interactor: vtkRenderWindowInteractor, - renderer: vtkRenderer, - rotation: number - ): void; - - /** - * Handles an end pinch gesture. - * @param interactor - */ - onEndRotate(interactor: vtkRenderWindowInteractor): void; - - /** - * Handles a start pan gesture. - * @param interactor - * @param translation - */ - onStartPan(interactor: vtkRenderWindowInteractor, translation: number): void; - - /** - * Handles a pan gesture. - * @param interactor - * @param renderer - * @param translation - */ - onPan( - interactor: vtkRenderWindowInteractor, - renderer: vtkRenderer, - translation: number - ): void; - - /** - * Handles an end pan gesture. - * @param interactor - */ - onEndPan(interactor: vtkRenderWindowInteractor): void; - - /** - * Is pinch enabled. - */ - isPinchEnabled(): boolean; - - /** - * Sets if pinch is enabled. - * @param pinch - */ - setPinchEnabled(pinch: boolean): boolean; - - /** - * Gets flag if pinch is enabled. - */ - getPinchEnabled(): boolean; - - /** - * Is pan enabled. - */ - isPanEnabled(): boolean; - - /** - * Sets if pan is enabled. - * @param pan - */ - setPanEnabled(pan: boolean): boolean; - - /** - * Gets flag if pan is enabled. - */ - getPanEnabled(): boolean; - - /** - * Is rotate enabled. - */ - isRotateEnabled(): boolean; - - /** - * Sets if rotate is enabled. - * @param rotate - */ - setRotateEnabled(rotate: boolean): boolean; - - /** - * Gets flag if rotate is enabled. - */ - getRotateEnabled(): boolean; - - /** - * Sets the interactor style. - * @param style vtkInteractorStyle - */ - setInteractorStyle(style: Nullable): boolean; - - /** - * Gets the interactor style. - */ - getInteractorStyle(): Nullable; -} - -export interface ICompositeGestureManipulatorInitialValues { - pinchEnabled?: boolean; - panEnabled?: boolean; - rotateEnabled?: boolean; -} - -export function extend( - publicAPI: object, - model: object, - initialValues?: ICompositeGestureManipulatorInitialValues -): void; - -export const vtkCompositeGestureManipulator: { - extend: typeof extend; -}; - -export default vtkCompositeGestureManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeGestureManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeGestureManipulator.js deleted file mode 100644 index 9a6efacf..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeGestureManipulator.js +++ /dev/null @@ -1,56 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkCompositeMouseManipulator methods -// ---------------------------------------------------------------------------- - -function vtkCompositeGestureManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCompositeGestureManipulator'); - publicAPI.startInteraction = () => {}; - publicAPI.endInteraction = () => {}; - publicAPI.onStartPinch = (interactor, scale) => {}; - publicAPI.onStartRotate = (interactor, rotation) => {}; - publicAPI.onStartPan = (interactor, translation) => {}; - publicAPI.onPinch = (interactor, renderer, scale) => {}; - publicAPI.onRotate = (interactor, renderer, rotation) => {}; - publicAPI.onPan = (interactor, renderer, translation) => {}; - publicAPI.onEndPinch = interactor => {}; - publicAPI.onEndRotate = interactor => {}; - publicAPI.onEndPan = interactor => {}; - publicAPI.isPinchEnabled = () => model.pinchEnabled; - publicAPI.isPanEnabled = () => model.panEnabled; - publicAPI.isRotateEnabled = () => model.rotateEnabled; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - pinchEnabled: true, - panEnabled: true, - rotateEnabled: true -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Create get-set macros - macro.set(publicAPI, model, ['pinchEnabled', 'panEnabled', 'rotateEnabled']); - macro.setGet(publicAPI, model, ['interactorStyle']); - - // Object specific methods - vtkCompositeGestureManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -var vtkCompositeGestureManipulator$1 = { - extend -}; - -export { vtkCompositeGestureManipulator$1 as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeKeyboardManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeKeyboardManipulator.d.ts deleted file mode 100644 index 413a98c4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeKeyboardManipulator.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -import vtkRenderer from './../../Rendering/Core/Renderer'; -import vtkRenderWindowInteractor from './../../Rendering/Core/RenderWindowInteractor'; - -export interface vtkCompositeKeyboardManipulator { - /** - * Handles a keypress event. - * @param interactor the interactor - * @param renderer the renderer - * @param key the key - */ - onKeyPress( - interactor: vtkRenderWindowInteractor, - renderer: vtkRenderer, - key: KeyboardEvent['key'] - ): void; - - /** - * Handles a keydown event. - * @param interactor the interactor - * @param renderer the renderer - * @param key the key - */ - onKeyDown( - interactor: vtkRenderWindowInteractor, - renderer: vtkRenderer, - key: KeyboardEvent['key'] - ): void; - - /** - * Handles a keyup event. - * @param interactor the interactor - * @param renderer the renderer - * @param key the key - */ - onKeyUp( - interactor: vtkRenderWindowInteractor, - renderer: vtkRenderer, - key: KeyboardEvent['key'] - ): void; -} - -export function extend(publicAPI: object, model: object): void; - -export const vtkCompositeKeyboardManipulator: { - extend: typeof extend; -}; - -export default vtkCompositeKeyboardManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeKeyboardManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeKeyboardManipulator.js deleted file mode 100644 index e5b462f3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeKeyboardManipulator.js +++ /dev/null @@ -1,35 +0,0 @@ -// ---------------------------------------------------------------------------- -// vtkCompositeKeyboardManipulator methods -// ---------------------------------------------------------------------------- - -function vtkCompositeKeyboardManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCompositeKeyboardManipulator'); - publicAPI.onKeyPress = (interactor, renderer, key) => {}; - publicAPI.onKeyDown = (interactor, renderer, key) => {}; - publicAPI.onKeyUp = (interactor, renderer, key) => {}; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object specific methods - vtkCompositeKeyboardManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -var vtkCompositeKeyboardManipulator$1 = { - extend -}; - -export { vtkCompositeKeyboardManipulator$1 as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeMouseManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeMouseManipulator.d.ts deleted file mode 100644 index 7dfe9fb5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeMouseManipulator.d.ts +++ /dev/null @@ -1,149 +0,0 @@ -import vtkRenderer from './../../Rendering/Core/Renderer'; -import vtkRenderWindowInteractor from './../../Rendering/Core/RenderWindowInteractor'; - -export interface vtkCompositeMouseManipulator { - /** - * Starts an interaction event. - */ - startInteraction(): void; - - /** - * Ends an interaction event. - */ - endInteraction(): void; - - /** - * Handles a button down event. - * @param interactor the interactor - * @param renderer the renderer - * @param position the display position - */ - onButtonDown( - interactor: vtkRenderWindowInteractor, - renderer: vtkRenderer, - position: { x: number; y: number } - ): void; - - /** - * Handles a button up event. - * @param interactor the interactor - */ - onButtonUp(interactor: vtkRenderWindowInteractor): void; - - /** - * Handles a mouse move event. - * @param interactor the interactor - * @param renderer the renderer - * @param position the display position - */ - onMouseMove( - interactor: vtkRenderWindowInteractor, - renderer: vtkRenderer, - position: { x: number; y: number } - ): void; - - /** - * Handles a start scroll event. - * @param interactor the interactor - * @param renderer the renderer - * @param delta the scroll delta - */ - onStartScroll( - interactor: vtkRenderWindowInteractor, - renderer: vtkRenderer, - delta: number - ): void; - - /** - * Handles a scroll event. - * @param interactor the interactor - */ - onEndScroll(interactor: vtkRenderWindowInteractor): void; - - /** - * Is drag enabled. - */ - isDragEnabled(): boolean; - - /** - * Sets if drag is enabled. - * @param enabled - */ - setDragEnabled(enabled: boolean): boolean; - - /** - * Is scroll enabled. - */ - isScrollEnabled(): boolean; - - /** - * Sets if scroll is enabled. - * @param enabled - */ - setScrollEnabled(enabled: boolean): boolean; - - /** - * Sets the associated button. - * @param btn - */ - setButton(btn: number): boolean; - - /** - * Gets the associated button. - */ - getButton(): number; - - /** - * Sets if the shift key is required. - * @param shift - */ - setShift(shift: boolean): boolean; - - /** - * Gets flag if shift key is required. - */ - getShift(): boolean; - - /** - * Sets if the control key is required. - * @param ctrl - */ - setControl(ctrl: boolean): boolean; - - /** - * Gets flag if control key is required. - */ - getControl(): boolean; - - /** - * Sets if the alt key is required. - * @param alt - */ - setAlt(alt: boolean): boolean; - - /** - * Gets flag if alt key is required. - */ - getAlt(): boolean; -} - -export interface ICompositeMouseManipulatorInitialValues { - button?: number; - shift?: boolean; - control?: boolean; - alt?: boolean; - dragEnabled?: boolean; - scrollEnabled?: boolean; -} - -export function extend( - publicAPI: object, - model: object, - initialValues?: ICompositeMouseManipulatorInitialValues -): void; - -export const vtkCompositeMouseManipulator: { - extend: typeof extend; -}; - -export default vtkCompositeMouseManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeMouseManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeMouseManipulator.js deleted file mode 100644 index f1eec284..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeMouseManipulator.js +++ /dev/null @@ -1,55 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkCompositeMouseManipulator methods -// ---------------------------------------------------------------------------- - -function vtkCompositeMouseManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCompositeMouseManipulator'); - publicAPI.startInteraction = () => {}; - publicAPI.endInteraction = () => {}; - publicAPI.onButtonDown = (interactor, renderer, position) => {}; - publicAPI.onButtonUp = interactor => {}; - publicAPI.onMouseMove = (interactor, renderer, position) => {}; - publicAPI.onStartScroll = (interactor, renderer, delta) => {}; - publicAPI.onScroll = (interactor, renderer, delta) => {}; - publicAPI.onEndScroll = interactor => {}; - publicAPI.isDragEnabled = () => model.dragEnabled; - publicAPI.isScrollEnabled = () => model.scrollEnabled; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - button: 1, - shift: false, - control: false, - alt: false, - dragEnabled: true, - scrollEnabled: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Create get-set macros - macro.setGet(publicAPI, model, ['button', 'shift', 'control', 'alt']); - macro.set(publicAPI, model, ['dragEnabled', 'scrollEnabled']); - - // Object specific methods - vtkCompositeMouseManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -var vtkCompositeMouseManipulator$1 = { - extend -}; - -export { vtkCompositeMouseManipulator$1 as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeVRManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeVRManipulator.d.ts deleted file mode 100644 index 745277c8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeVRManipulator.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { States } from './../../Rendering/Core/InteractorStyle/Constants'; -import { vtkRenderer } from './../../Rendering/Core/Renderer'; -import { vtkInteractorObserver } from './../../Rendering/Core/InteractorObserver'; -import { - Device, - Input, -} from './../../Rendering/Core/RenderWindowInteractor/Constants'; -import { - I3DEvent, - IButton3DEvent, -} from './../../Rendering/Core/RenderWindowInteractor'; - -export interface vtkCompositeVRManipulator { - onButton3D( - interactorStyle: vtkInteractorObserver, - renderer: vtkRenderer, - state: States, - eventData: IButton3DEvent - ): void; - - onMove3D( - interactorStyle: vtkInteractorObserver, - renderer: vtkRenderer, - state: States, - eventData: I3DEvent - ): void; -} - -export interface ICompositeVRManipulatorInitialValues { - device?: Device; - input?: Input; -} - -export function extend( - publicAPI: object, - model: object, - initialValues?: ICompositeVRManipulatorInitialValues -): void; - -export const vtkCompositeVRManipulator: { - extend: typeof extend; -}; - -export default vtkCompositeVRManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeVRManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeVRManipulator.js deleted file mode 100644 index f7335b74..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/CompositeVRManipulator.js +++ /dev/null @@ -1,45 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { Device, Input } from '../../Rendering/Core/RenderWindowInteractor/Constants.js'; - -// ---------------------------------------------------------------------------- -// vtkCompositeVRManipulator methods -// ---------------------------------------------------------------------------- - -function vtkCompositeVRManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCompositeVRManipulator'); - publicAPI.onButton3D = (interactorStyle, renderer, state, eventData) => {}; - publicAPI.onMove3D = (interactorStyle, renderer, state, eventData) => {}; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // device: null, // Device.RightController - // input: null, // Input.TrackPad -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Create get-set macros - macro.setGet(publicAPI, model, ['device', 'input']); - - // Object specific methods - vtkCompositeVRManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -var vtkCompositeVRManipulator$1 = { - extend, - Device, - Input -}; - -export { vtkCompositeVRManipulator$1 as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/GestureCameraManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/GestureCameraManipulator.d.ts deleted file mode 100644 index 27e9b730..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/GestureCameraManipulator.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import vtkCompositeCameraManipulator, { - ICompositeCameraManipulatorInitialValues, -} from './CompositeCameraManipulator'; -import vtkCompositeGestureManipulator, { - ICompositeGestureManipulatorInitialValues, -} from './CompositeGestureManipulator'; -import { vtkObject } from './../../interfaces'; -export interface vtkGestureCameraManipulator - extends vtkObject, - vtkCompositeCameraManipulator, - vtkCompositeGestureManipulator {} - -export interface IGestureCameraManipulatorInitialValues - extends ICompositeCameraManipulatorInitialValues, - ICompositeGestureManipulatorInitialValues { - flipDirection?: boolean; -} - -export function newInstance( - initialValues?: IGestureCameraManipulatorInitialValues -): vtkGestureCameraManipulator; - -export function extend( - publicAPI: object, - model: object, - initialValues?: IGestureCameraManipulatorInitialValues -): void; - -export const vtkGestureCameraManipulator: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkGestureCameraManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/GestureCameraManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/GestureCameraManipulator.js deleted file mode 100644 index 3ce5a8c6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/GestureCameraManipulator.js +++ /dev/null @@ -1,115 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCompositeCameraManipulator from './CompositeCameraManipulator.js'; -import vtkCompositeGestureManipulator from './CompositeGestureManipulator.js'; -import vtkInteractorStyleManipulator from '../Style/InteractorStyleManipulator.js'; - -// ---------------------------------------------------------------------------- -// vtkGestureCameraManipulator methods -// ---------------------------------------------------------------------------- - -function vtkGestureCameraManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkGestureCameraManipulator'); - - //-------------------------------------------------------------------------- - - publicAPI.onStartPinch = (interactor, scale) => { - model.previousScale = scale; - }; - - //--------------------------------------------------------------------------- - - publicAPI.onStartRotate = (interactor, rotation) => { - model.previousRotation = rotation; - }; - - //--------------------------------------------------------------------------- - - publicAPI.onStartPan = (interactor, translation) => { - model.previousTranslation = translation; - }; - - //--------------------------------------------------------------------------- - - publicAPI.onPinch = (interactor, renderer, scale) => { - vtkInteractorStyleManipulator.dollyByFactor(interactor, renderer, scale / model.previousScale); - model.previousScale = scale; - }; - - //--------------------------------------------------------------------------- - - publicAPI.onPan = (interactor, renderer, translation) => { - const camera = renderer.getActiveCamera(); - const style = interactor.getInteractorStyle(); - - // Calculate the focal depth since we'll be using it a lot - let viewFocus = camera.getFocalPoint(); - viewFocus = style.computeWorldToDisplay(renderer, viewFocus[0], viewFocus[1], viewFocus[2]); - const focalDepth = viewFocus[2]; - const trans = translation; - const lastTrans = model.previousTranslation; - const newPickPoint = style.computeDisplayToWorld(renderer, viewFocus[0] + trans[0] - lastTrans[0], viewFocus[1] + trans[1] - lastTrans[1], focalDepth); - - // Has to recalc old mouse point since the viewport has moved, - // so can't move it outside the loop - const oldPickPoint = style.computeDisplayToWorld(renderer, viewFocus[0], viewFocus[1], focalDepth); - - // Camera motion is reversed - const motionVector = []; - motionVector[0] = oldPickPoint[0] - newPickPoint[0]; - motionVector[1] = oldPickPoint[1] - newPickPoint[1]; - motionVector[2] = oldPickPoint[2] - newPickPoint[2]; - viewFocus = camera.getFocalPoint(); - const viewPoint = camera.getPosition(); - camera.setFocalPoint(motionVector[0] + viewFocus[0], motionVector[1] + viewFocus[1], motionVector[2] + viewFocus[2]); - camera.setPosition(motionVector[0] + viewPoint[0], motionVector[1] + viewPoint[1], motionVector[2] + viewPoint[2]); - if (interactor.getLightFollowCamera()) { - renderer.updateLightsGeometryToFollowCamera(); - } - camera.orthogonalizeViewUp(); - model.previousTranslation = translation; - }; - - //--------------------------------------------------------------------------- - - publicAPI.onRotate = (interactor, renderer, rotation) => { - const camera = renderer.getActiveCamera(); - camera.roll(rotation - model.previousRotation); - camera.orthogonalizeViewUp(); - model.previousRotation = rotation; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - macro.obj(publicAPI, model); - vtkCompositeGestureManipulator.extend(publicAPI, model, initialValues); - vtkCompositeCameraManipulator.extend(publicAPI, model, initialValues); - - // Object specific methods - vtkGestureCameraManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkGestureCameraManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkGestureCameraManipulator$1 = { - newInstance, - extend -}; - -export { vtkGestureCameraManipulator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/KeyboardCameraManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/KeyboardCameraManipulator.d.ts deleted file mode 100644 index 1e88fc8f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/KeyboardCameraManipulator.d.ts +++ /dev/null @@ -1,113 +0,0 @@ -import { Vector3 } from './../../types'; -import { vtkObject } from './../../interfaces'; -import vtkCompositeKeyboardManipulator from './CompositeKeyboardManipulator'; -import vtkRenderWindowInteractor from './../../Rendering/Core/RenderWindowInteractor'; -import vtkCamera from './../../Rendering/Core/Camera'; -import vtkRenderer from './../../Rendering/Core/Renderer'; - -export interface vtkKeyboardCameraManipulator - extends vtkObject, - vtkCompositeKeyboardManipulator { - /** - * Returns whether a movement is ongoing. - */ - inMotion(): boolean; - - /** - * Reset the movement speed to be proportional to the longest length of the renderer's bounds. - */ - resetMovementSpeed(): void; - - /** - * Initialize a movement of the current camera. - */ - startMovement(): void; - - /** - * Cancel any ongoing camera movement. - */ - endMovement(): void; - - /** - * Update active camera direction, depending on currently pressed keys. - */ - calculateCurrentDirection(): void; - - /** - * Returns the direction vector of the given camera for the given key. - * @param key the movedkey - * @param camera the camera - */ - getDirectionFromKey(key: KeyboardEvent['key'], camera: vtkCamera): Vector3; - - /** - * Moves the given camera, in the given direction, at the given speed. - * @param camera the moved camera - * @param direction the direction of the movemnt - * @param speed the speed - */ - moveCamera(camera: vtkCamera, direction: Vector3, speed: number): void; - - /** - * Handles a keypress event. - * @param interactor the interactor - * @param renderer the renderer - * @param key the key - */ - onKeyPress( - interactor: vtkRenderWindowInteractor, - renderer: vtkRenderer, - key: KeyboardEvent['key'] - ): void; - - /** - * Handles a keydown event. - * @param interactor the interactor - * @param renderer the renderer - * @param key the key - */ - onKeyDown( - interactor: vtkRenderWindowInteractor, - renderer: vtkRenderer, - key: KeyboardEvent['key'] - ): void; - - /** - * Handles a keyup event. - * @param interactor the interactor - * @param renderer the renderer - * @param key the key - */ - onKeyUp( - interactor: vtkRenderWindowInteractor, - renderer: vtkRenderer, - key: KeyboardEvent['key'] - ): void; -} - -export interface IKeyboardCameraManipulatorInitialValues { - movementSpeed?: number; - moveForwardKeys?: KeyboardEvent['key'][]; - moveLeftKeys?: KeyboardEvent['key'][]; - moveBackwardKeys?: KeyboardEvent['key'][]; - moveRightKeys?: KeyboardEvent['key'][]; - moveUpKeys?: KeyboardEvent['key'][]; - moveDownKeys?: KeyboardEvent['key'][]; -} - -export function newInstance( - initialValues?: IKeyboardCameraManipulatorInitialValues -): vtkKeyboardCameraManipulator; - -export function extend( - publicAPI: object, - model: object, - initialValues?: IKeyboardCameraManipulatorInitialValues -): void; - -export const vtkKeyboardCameraManipulator: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkKeyboardCameraManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/KeyboardCameraManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/KeyboardCameraManipulator.js deleted file mode 100644 index c8a544c4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/KeyboardCameraManipulator.js +++ /dev/null @@ -1,253 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; -import vtkCompositeKeyboardManipulator from './CompositeKeyboardManipulator.js'; -import { k as add, l as normalize, j as cross } from '../../Common/Core/Math/index.js'; - -const { - vtkErrorMacro -} = macro; -const ANIMATION_REQUESTER = 'vtkKeyboardCameraManipulator'; - -// ---------------------------------------------------------------------------- -// vtkKeyboardCameraManipulator methods -// ---------------------------------------------------------------------------- - -function vtkKeyboardCameraManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkKeyboardCameraManipulator'); - const internal = { - keysDown: [], - direction: [0, 0, 0], - skipUpdateDirection: false, - animationSub: null, - cameraModifiedSub: null - }; - - //-------------------------------------------------------------------------- - - publicAPI.inMotion = () => internal.animationSub !== null; - - //-------------------------------------------------------------------------- - - publicAPI.resetMovementSpeed = () => { - // Reset the movement speed to be proportional to the longest length - // of the renderer's bounds. - const { - renderer - } = model; - const bounds = renderer.computeVisiblePropBounds(); - - // Just a number that seems to work okay for our examples... - const divisor = 500; - model.movementSpeed = vtkBoundingBox.getMaxLength(bounds) / divisor; - }; - - //-------------------------------------------------------------------------- - - publicAPI.startMovement = () => { - if (publicAPI.inMotion()) { - vtkErrorMacro('Camera is already in motion!'); - return; - } - if (model.movementSpeed === null) { - publicAPI.resetMovementSpeed(); - } - const { - interactor, - renderer - } = model; - const move = () => { - if (internal.keysDown.length === 0) { - return; - } - - // No need to update the direction when we move the camera here... - internal.skipUpdateDirection = true; - publicAPI.moveCamera(renderer.getActiveCamera(), internal.direction, model.movementSpeed); - renderer.resetCameraClippingRange(); - if (interactor.getLightFollowCamera()) { - renderer.updateLightsGeometryToFollowCamera(); - } - internal.skipUpdateDirection = false; - }; - publicAPI.calculateCurrentDirection(); - const camera = renderer.getActiveCamera(); - // If the camera gets modified elsewhere, let's update the direction - internal.cameraModifiedSub = camera.onModified(publicAPI.calculateCurrentDirection); - interactor.requestAnimation(ANIMATION_REQUESTER); - internal.animationSub = interactor.onAnimation(() => move()); - }; - - //-------------------------------------------------------------------------- - - publicAPI.endMovement = () => { - if (internal.animationSub) { - internal.animationSub.unsubscribe(); - internal.animationSub = null; - } - model._interactor.cancelAnimation(ANIMATION_REQUESTER); - if (internal.cameraModifiedSub) { - internal.cameraModifiedSub.unsubscribe(); - internal.cameraModifiedSub = null; - } - }; - - //-------------------------------------------------------------------------- - - publicAPI.calculateCurrentDirection = () => { - if (internal.skipUpdateDirection) { - return; - } - - // Reset - internal.direction = [0, 0, 0]; - const { - renderer - } = model; - if (!renderer) { - return; - } - const camera = renderer.getActiveCamera(); - if (!camera) { - return; - } - if (internal.keysDown.length === 0) { - return; - } - let directions = internal.keysDown.map(key => publicAPI.getDirectionFromKey(key, camera)); - directions = directions.filter(item => item); - if (directions.length === 0) { - return; - } - const netDirection = directions.reduce((a, b) => { - add(a, b, b); - return b; - }); - normalize(netDirection); - internal.direction = netDirection; - }; - - //-------------------------------------------------------------------------- - - publicAPI.getDirectionFromKey = (key, camera) => { - let direction; - if (model.moveForwardKeys.includes(key)) { - // Move forward - direction = camera.getDirectionOfProjection(); - } else if (model.moveLeftKeys.includes(key)) { - // Move left - const dirProj = camera.getDirectionOfProjection(); - direction = [0, 0, 0]; - cross(camera.getViewUp(), dirProj, direction); - } else if (model.moveBackwardKeys.includes(key)) { - // Move backward - direction = camera.getDirectionOfProjection().map(e => -e); - } else if (model.moveRightKeys.includes(key)) { - // Move right - const dirProj = camera.getDirectionOfProjection(); - direction = [0, 0, 0]; - cross(dirProj, camera.getViewUp(), direction); - } else if (model.moveUpKeys.includes(key)) { - // Move up - direction = camera.getViewUp(); - } else if (model.moveDownKeys.includes(key)) { - // Move down - direction = camera.getViewUp().map(e => -e); - } else { - return undefined; - } - normalize(direction); - return direction; - }; - - //-------------------------------------------------------------------------- - - publicAPI.moveCamera = (camera, direction, speed) => { - const position = camera.getPosition(); - const focalPoint = camera.getFocalPoint(); - camera.setFocalPoint(focalPoint[0] + direction[0] * speed, focalPoint[1] + direction[1] * speed, focalPoint[2] + direction[2] * speed); - camera.setPosition(position[0] + direction[0] * speed, position[1] + direction[1] * speed, position[2] + direction[2] * speed); - }; - - //-------------------------------------------------------------------------- - - publicAPI.onKeyPress = (interactor, renderer, key) => {}; - - //-------------------------------------------------------------------------- - - publicAPI.onKeyDown = (interactor, renderer, key) => { - if (!internal.keysDown.includes(key)) { - internal.keysDown.push(key); - publicAPI.calculateCurrentDirection(); - } - if (!publicAPI.inMotion()) { - Object.assign(model, { - interactor, - renderer - }); - publicAPI.startMovement(); - } - }; - - //-------------------------------------------------------------------------- - - publicAPI.onKeyUp = (interactor, renderer, key) => { - // The following is case insensitive for when the user - // presses/releases the shift key while this key is down. - internal.keysDown = internal.keysDown.filter(item => item.toUpperCase() !== key.toUpperCase()); - publicAPI.calculateCurrentDirection(); - if (internal.keysDown.length === 0) { - publicAPI.endMovement(); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // The movementSpeed is the magnitude of the camera translation - // for each animation frame (which occur each 1/60 second) - // If null, publicAPI.resetMovementSpeed() will be called when - // movement starts. - movementSpeed: null, - moveForwardKeys: ['w', 'W', 'ArrowUp'], - moveLeftKeys: ['a', 'A', 'ArrowLeft'], - moveBackwardKeys: ['s', 'S', 'ArrowDown'], - moveRightKeys: ['d', 'D', 'ArrowRight'], - moveUpKeys: [' '], - moveDownKeys: ['Shift'], - interactor: null, - renderer: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - macro.obj(publicAPI, model); - vtkCompositeKeyboardManipulator.extend(publicAPI, model, initialValues); - - // Create get-set macros - macro.setGet(publicAPI, model, ['movementSpeed', 'moveForwardKeys', 'moveLeftKeys', 'moveBackwardKeys', 'moveRightKeys', 'moveUpKeys', 'moveDownKeys', 'interactor', 'renderer']); - - // Object specific methods - vtkKeyboardCameraManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkKeyboardCameraManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkKeyboardCameraManipulator$1 = { - newInstance, - extend -}; - -export { vtkKeyboardCameraManipulator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseBoxSelectorManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseBoxSelectorManipulator.d.ts deleted file mode 100644 index 1526e2bb..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseBoxSelectorManipulator.d.ts +++ /dev/null @@ -1,88 +0,0 @@ -import vtkCompositeMouseManipulator, { - ICompositeMouseManipulatorInitialValues, -} from './CompositeMouseManipulator'; -import { EventHandler, vtkObject, vtkSubscription } from './../../interfaces'; -import { Nullable } from './../../types'; - -export interface vtkMouseBoxSelectorManipulator - extends vtkObject, - vtkCompositeMouseManipulator { - /** - * Invokes a box select change event. - */ - invokeBoxSelectChange(data: unknown): void; - - /** - * Registers a callback when a box select change event occurs. - * @param cb EventHandler - */ - onBoxSelectChange(cb: EventHandler): vtkSubscription; - - /** - * Invokes a box select input event. - */ - invokeBoxSelectInput(data: unknown): void; - - /** - * Registers a callback when a box select input event occurs. - * @param cb EventHandler - */ - onBoxSelectInput(cb: EventHandler): vtkSubscription; - - /** - * Sets whether to render the selection. - * @param render - */ - setRenderSelection(render: boolean): boolean; - - /** - * Get whether to render the selection. - */ - getRenderSelection(): boolean; - - /** - * Sets the selection box style. - * @param style - */ - setSelectionStyle(style: Record): boolean; - - /** - * Gets the selection box style. - */ - getSelectionStyle(): Record; - - /** - * Sets the box container. - * @param container - */ - setContainer(container: Element): boolean; - - /** - * Gets the box container. - */ - getContainer(): Nullable; -} - -export interface IMouseBoxSelectorManipulatorInitialValues - extends ICompositeMouseManipulatorInitialValues { - renderSelection?: boolean; - selectionStyle?: Record; - container?: Element; -} - -export function newInstance( - initialValues?: IMouseBoxSelectorManipulatorInitialValues -): vtkMouseBoxSelectorManipulator; - -export function extend( - publicAPI: object, - model: object, - initialValues?: IMouseBoxSelectorManipulatorInitialValues -): void; - -export const vtkMouseBoxSelectorManipulator: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkMouseBoxSelectorManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseBoxSelectorManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseBoxSelectorManipulator.js deleted file mode 100644 index be9b9476..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseBoxSelectorManipulator.js +++ /dev/null @@ -1,177 +0,0 @@ -import { n as newInstance$1, o as obj, f as event, e as setGet } from '../../macros2.js'; -import vtkCompositeMouseManipulator from './CompositeMouseManipulator.js'; - -const OUTSIDE_BOUNDS = [-2, -1, -2, -1]; -const DEFAULT_STYLE = { - position: 'absolute', - zIndex: 1, - border: '2px solid #F44336', - backgroundColor: 'rgba(0, 0, 0, 0.1)', - borderRadius: '4px', - boxSizing: 'border-box' -}; -function applyStyle(element, style) { - Object.keys(style).forEach(name => { - element.style[name] = style[name]; - }); -} - -// ---------------------------------------------------------------------------- -// vtkMouseBoxSelectionManipulator methods -// ---------------------------------------------------------------------------- - -function vtkMouseBoxSelectionManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkMouseBoxSelectionManipulator'); - - // Private variable - let view = null; - let container = null; - let previousPosition = null; - let currentPosition = null; - let div = null; - let inDOM = false; - function getBounds() { - if (!previousPosition || !currentPosition) { - return OUTSIDE_BOUNDS; - } - return [Math.min(previousPosition.x, currentPosition.x), Math.max(previousPosition.x, currentPosition.x), Math.min(previousPosition.y, currentPosition.y), Math.max(previousPosition.y, currentPosition.y)]; - } - function applyStyleToDiv() { - if (!view || !container) { - return; - } - const [viewWidth, viewHeight] = view.getSize(); - const { - width, - height - } = container.getBoundingClientRect(); - const [xMin, xMax, yMin, yMax] = getBounds(); - div.style.left = `${width * xMin / viewWidth}px`; - div.style.top = `${height - height * yMax / viewHeight}px`; - div.style.width = `${width * (xMax - xMin) / viewWidth}px`; - div.style.height = `${height * (yMax - yMin) / viewHeight}px`; - } - - //------------------------------------------------------------------------- - - publicAPI.onButtonDown = (interactor, renderer, position) => { - previousPosition = position; - if (model.renderSelection) { - // Need window size and location to convert to style - if (!view) { - view = interactor.getView(); - } - if (!container && view?.getContainer) { - container = view.getContainer(); - } - if (!container) { - container = model.container; - } - if (!div) { - div = document.createElement('div'); - applyStyle(div, model.selectionStyle); - } - applyStyleToDiv(); - if (container && !inDOM) { - inDOM = true; - container.appendChild(div); - } - } - }; - - //------------------------------------------------------------------------- - - publicAPI.onMouseMove = (interactor, renderer, position) => { - if (!previousPosition) { - return; - } - if (!position) { - return; - } - currentPosition = position; - publicAPI.invokeBoxSelectInput({ - view, - container, - selection: getBounds() - }); - if (model.renderSelection) { - applyStyleToDiv(); - } - }; - - //------------------------------------------------------------------------- - - publicAPI.onButtonUp = (interactor, renderer) => { - if (!previousPosition || !currentPosition && !model.boxChangeOnClick) { - return; - } - - // needed because of boxChangeOnClick - if (!currentPosition) { - currentPosition = previousPosition; - } - publicAPI.invokeBoxSelectChange({ - view, - container, - selection: getBounds() - }); - if (inDOM) { - div.parentElement.removeChild(div); - inDOM = false; - } - - // clear positions - view = null; - container = null; - previousPosition = null; - currentPosition = null; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function DEFAULT_VALUES(initialValues) { - return { - // container: null, - boxChangeOnClick: false, - renderSelection: true, - ...initialValues, - selectionStyle: { - ...DEFAULT_STYLE, - ...initialValues.selectionStyle - } - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES(initialValues)); - - // Inheritance - obj(publicAPI, model); - vtkCompositeMouseManipulator.extend(publicAPI, model, initialValues); - event(publicAPI, model, 'BoxSelectChange'); // Trigger at release - event(publicAPI, model, 'BoxSelectInput'); // Trigger while dragging - setGet(publicAPI, model, ['renderSelection', 'boxChangeOnClick', 'selectionStyle', 'container']); - - // Object specific methods - vtkMouseBoxSelectionManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkMouseBoxSelectionManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkMouseBoxSelectorManipulator = { - newInstance, - extend -}; - -export { vtkMouseBoxSelectorManipulator as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraAxisRotateManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraAxisRotateManipulator.js deleted file mode 100644 index 7066f935..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraAxisRotateManipulator.js +++ /dev/null @@ -1,134 +0,0 @@ -import { vec3, mat4 } from 'gl-matrix'; -import { m as macro } from '../../macros2.js'; -import vtkCompositeCameraManipulator from './CompositeCameraManipulator.js'; -import vtkCompositeMouseManipulator from './CompositeMouseManipulator.js'; -import { r as radiansFromDegrees, j as cross } from '../../Common/Core/Math/index.js'; - -// ---------------------------------------------------------------------------- -// vtkMouseCameraAxisRotateManipulator methods -// ---------------------------------------------------------------------------- - -function vtkMouseCameraAxisRotateManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkMouseCameraAxisRotateManipulator'); - const negCameraDir = new Float64Array(3); - const newCamPos = new Float64Array(3); - const newFp = new Float64Array(3); - const newViewUp = new Float64Array(3); - const trans = new Float64Array(16); - const rotation = new Float64Array(16); - const v2 = new Float64Array(3); - const centerNeg = new Float64Array(3); - const negRotationAxis = new Float64Array(3); - publicAPI.onButtonDown = (interactor, renderer, position) => { - model.previousPosition = position; - }; - publicAPI.onMouseMove = (interactor, renderer, position) => { - if (!position) { - return; - } - const camera = renderer.getActiveCamera(); - const cameraPos = camera.getPosition(); - const cameraFp = camera.getFocalPoint(); - const cameraViewUp = camera.getViewUp(); - const cameraDirection = camera.getDirectionOfProjection(); - vec3.negate(negCameraDir, cameraDirection); - mat4.identity(trans); - mat4.identity(rotation); - const { - center, - rotationFactor, - rotationAxis - } = model; - vec3.negate(negRotationAxis, rotationAxis); - const dx = model.previousPosition.x - position.x; - const dy = model.previousPosition.y - position.y; - const size = interactor.getView().getViewportSize(renderer); - - // Azimuth - const azimuthDelta = radiansFromDegrees(360.0 * dx / size[0] * rotationFactor); - mat4.rotate(rotation, rotation, azimuthDelta, rotationAxis); - - // Elevation - cross(cameraDirection, cameraViewUp, v2); - let elevationDelta = radiansFromDegrees(-360.0 * dy / size[1] * rotationFactor); - // angle of camera to rotation axis on the positive or negative half, - // relative to the origin. - const angleToPosHalf = Math.acos(vec3.dot(negCameraDir, rotationAxis)); - const angleToNegHalf = Math.acos(vec3.dot(negCameraDir, negRotationAxis)); - - // whether camera is in positive half of the rotation axis or neg half - const inPosHalf = angleToPosHalf <= angleToNegHalf; - const elevationToAxis = Math.min(angleToPosHalf, angleToNegHalf); - if (model.useHalfAxis && !inPosHalf) { - elevationDelta = Math.PI / 2 - angleToPosHalf; - } else if (inPosHalf && elevationToAxis + elevationDelta < 0) { - elevationDelta = -elevationToAxis; - // } else if (!inPosHalf && elevationToAxis - elevationDelta < 0) { - } else if (!inPosHalf && angleToPosHalf + elevationDelta > Math.PI) { - elevationDelta = elevationToAxis; - } - mat4.rotate(rotation, rotation, elevationDelta, v2); - - // Translate from origin - mat4.translate(trans, trans, center); - - // apply rotation - mat4.multiply(trans, trans, rotation); - - // Translate to origin - vec3.negate(centerNeg, center); - mat4.translate(trans, trans, centerNeg); - - // Apply transformation to camera position, focal point, and view up - vec3.transformMat4(newCamPos, cameraPos, trans); - vec3.transformMat4(newFp, cameraFp, trans); - vec3.transformMat4(newViewUp, cameraViewUp, rotation); - camera.setPosition(newCamPos[0], newCamPos[1], newCamPos[2]); - camera.setFocalPoint(newFp[0], newFp[1], newFp[2]); - camera.setViewUp(newViewUp); - renderer.resetCameraClippingRange(); - if (interactor.getLightFollowCamera()) { - renderer.updateLightsGeometryToFollowCamera(); - } - model.previousPosition = position; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - rotationAxis: [0, 0, 1], - useHalfAxis: true -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['rotationAxis', 'useHalfAxis']); - vtkCompositeMouseManipulator.extend(publicAPI, model, initialValues); - vtkCompositeCameraManipulator.extend(publicAPI, model, initialValues); - - // Object specific methods - vtkMouseCameraAxisRotateManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkMouseCameraAxisRotateManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkMouseCameraAxisRotateManipulator$1 = { - newInstance, - extend -}; - -export { vtkMouseCameraAxisRotateManipulator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraSliceManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraSliceManipulator.js deleted file mode 100644 index 3b89931b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraSliceManipulator.js +++ /dev/null @@ -1,102 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCompositeCameraManipulator from './CompositeCameraManipulator.js'; -import vtkCompositeMouseManipulator from './CompositeMouseManipulator.js'; -import { r as radiansFromDegrees } from '../../Common/Core/Math/index.js'; - -// ---------------------------------------------------------------------------- -// vtkMouseCameraSliceManipulator methods -// ---------------------------------------------------------------------------- - -function vtkMouseCameraSliceManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkMouseCameraSliceManipulator'); - publicAPI.onButtonDown = (interactor, renderer, position) => { - model.previousPosition = position; - }; - publicAPI.onMouseMove = (interactor, renderer, position) => { - if (!position) { - return; - } - const dy = position.y - model.previousPosition.y; - const camera = renderer.getActiveCamera(); - const range = camera.getClippingRange(); - let distance = camera.getDistance(); - - // scale the interaction by the height of the viewport - let viewportHeight = 0.0; - if (camera.getParallelProjection()) { - viewportHeight = 2.0 * camera.getParallelScale(); - } else { - const angle = radiansFromDegrees(camera.getViewAngle()); - viewportHeight = 2.0 * distance * Math.tan(0.5 * angle); - } - const size = interactor.getView().getViewportSize(renderer); - const delta = dy * viewportHeight / size[1]; - distance += delta; - - // clamp the distance to the clipping range - if (distance < range[0]) { - distance = range[0] + viewportHeight * 1e-3; - } - if (distance > range[1]) { - distance = range[1] - viewportHeight * 1e-3; - } - camera.setDistance(distance); - model.previousPosition = position; - }; - publicAPI.onScroll = (interactor, renderer, delta) => { - if (!delta) { - return; - } - let scrollDelta = 1.0 - delta; - scrollDelta *= 25; // TODO: expose factor? - - const camera = renderer.getActiveCamera(); - const range = camera.getClippingRange(); - let distance = camera.getDistance(); - distance += scrollDelta; - - // clamp the distance to the clipping range - if (distance < range[0]) { - distance = range[0]; - } - if (distance > range[1]) { - distance = range[1]; - } - camera.setDistance(distance); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - macro.obj(publicAPI, model); - vtkCompositeCameraManipulator.extend(publicAPI, model, initialValues); - vtkCompositeMouseManipulator.extend(publicAPI, model, initialValues); - - // Object specific methods - vtkMouseCameraSliceManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkMouseCameraSliceManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkMouseCameraSliceManipulator$1 = { - newInstance, - extend -}; - -export { vtkMouseCameraSliceManipulator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballFirstPersonManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballFirstPersonManipulator.js deleted file mode 100644 index 7aa2fa08..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballFirstPersonManipulator.js +++ /dev/null @@ -1,132 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCompositeCameraManipulator from './CompositeCameraManipulator.js'; -import vtkCompositeMouseManipulator from './CompositeMouseManipulator.js'; - -const ANIMATION_REQUESTER = 'vtkMouseCameraTrackballFirstPersonManipulator'; - -// ---------------------------------------------------------------------------- -// vtkMouseCameraTrackballFirstPersonManipulator methods -// ---------------------------------------------------------------------------- - -function vtkMouseCameraTrackballFirstPersonManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkMouseCameraTrackballFirstPersonManipulator'); - const internal = { - interactor: null, - renderer: null - }; - - //-------------------------------------------------------------------------- - - publicAPI.onButtonDown = (interactor, renderer, position) => { - if (model.usePointerLock && !interactor.isPointerLocked()) { - Object.assign(internal, { - interactor, - renderer - }); - interactor.requestPointerLock(); - } - }; - - //-------------------------------------------------------------------------- - - publicAPI.onMouseMove = (interactor, renderer, position) => { - if (!position) { - return; - } - const sensitivity = model.sensitivity; - const yaw = -position.movementX * sensitivity; - const pitch = -position.movementY * sensitivity; - Object.assign(internal, { - interactor, - renderer - }); - publicAPI.moveCamera(yaw, pitch); - }; - - //-------------------------------------------------------------------------- - - publicAPI.moveCamera = (yaw, pitch) => { - const { - renderer, - interactor - } = internal; - const camera = renderer.getActiveCamera(); - - // We need to pick a number of steps here that is not too few - // (or the camera will be jittery) and not too many (or the - // animations will take too long). - // Perhaps this should be calculated? - const numSteps = model.numAnimationSteps; - const yawStep = yaw / numSteps; - const pitchStep = pitch / numSteps; - const now = performance.now().toString(); - const animationRequester = `${ANIMATION_REQUESTER}.${now}`; - let curStep = 0; - let animationSub = null; - const performStep = () => { - camera.yaw(yawStep); - camera.pitch(pitchStep); - camera.orthogonalizeViewUp(); - curStep += 1; - if (curStep === numSteps) { - animationSub.unsubscribe(); - renderer.resetCameraClippingRange(); - if (interactor.getLightFollowCamera()) { - renderer.updateLightsGeometryToFollowCamera(); - } - - // This needs to be posted to the event loop so it isn't called - // in the `handleAnimation` stack, or else the animation will - // not be canceled. - const cancelRequest = () => { - internal.interactor.cancelAnimation(animationRequester); - }; - setTimeout(cancelRequest, 0); - } - }; - interactor.requestAnimation(animationRequester); - animationSub = interactor.onAnimation(() => performStep()); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - numAnimationSteps: 5, - sensitivity: 0.05, - usePointerLock: true -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - macro.obj(publicAPI, model); - vtkCompositeCameraManipulator.extend(publicAPI, model, initialValues); - vtkCompositeMouseManipulator.extend(publicAPI, model, initialValues); - - // Create get-set macros - macro.setGet(publicAPI, model, ['numAnimationSteps', 'sensitivity', 'usePointerLock']); - - // Object specific methods - vtkMouseCameraTrackballFirstPersonManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkMouseCameraTrackballFirstPersonManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkMouseCameraTrackballFirstPersonManipulator$1 = { - newInstance, - extend -}; - -export { vtkMouseCameraTrackballFirstPersonManipulator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballMultiRotateManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballMultiRotateManipulator.d.ts deleted file mode 100644 index 203b6fb2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballMultiRotateManipulator.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import vtkCompositeCameraManipulator, { - ICompositeCameraManipulatorInitialValues, -} from './CompositeCameraManipulator'; -import vtkCompositeMouseManipulator, { - ICompositeMouseManipulatorInitialValues, -} from './CompositeMouseManipulator'; -import { vtkObject } from './../../interfaces'; -export interface vtkMouseCameraTrackballMultiRotateManipulator - extends vtkObject, - vtkCompositeCameraManipulator, - vtkCompositeMouseManipulator {} - -export interface IMouseCameraTrackballMultiRotateManipulatorInitialValues - extends ICompositeCameraManipulatorInitialValues, - ICompositeMouseManipulatorInitialValues {} - -export function newInstance( - initialValues?: IMouseCameraTrackballMultiRotateManipulatorInitialValues -): vtkMouseCameraTrackballMultiRotateManipulator; - -export function extend( - publicAPI: object, - model: object, - initialValues?: IMouseCameraTrackballMultiRotateManipulatorInitialValues -): void; - -export const vtkMouseCameraTrackballMultiRotateManipulator: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkMouseCameraTrackballMultiRotateManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballMultiRotateManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballMultiRotateManipulator.js deleted file mode 100644 index b8d30fa6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballMultiRotateManipulator.js +++ /dev/null @@ -1,84 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCompositeCameraManipulator from './CompositeCameraManipulator.js'; -import vtkCompositeMouseManipulator from './CompositeMouseManipulator.js'; -import vtkMouseCameraTrackballRotateManipulator from './MouseCameraTrackballRotateManipulator.js'; -import vtkMouseCameraTrackballRollManipulator from './MouseCameraTrackballRollManipulator.js'; - -function max(x, y) { - return x < y ? y : x; -} -function sqr(x) { - return x * x; -} - -// ---------------------------------------------------------------------------- -// vtkMouseCameraTrackballMultiRotateManipulator methods -// ---------------------------------------------------------------------------- - -function vtkMouseCameraTrackballMultiRotateManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkMouseCameraTrackballMultiRotateManipulator'); - const rotateManipulator = vtkMouseCameraTrackballRotateManipulator.newInstance(); - const rollManipulator = vtkMouseCameraTrackballRollManipulator.newInstance(); - let currentManipulator = null; - publicAPI.onButtonDown = (interactor, renderer, position) => { - const viewSize = interactor.getView().getViewportSize(renderer); - const viewCenter = [0.5 * viewSize[0], 0.5 * viewSize[1]]; - const rotateRadius = 0.9 * max(viewCenter[0], viewCenter[1]); - const dist2 = sqr(viewCenter[0] - position.x) + sqr(viewCenter[1] - position.y); - if (rotateRadius * rotateRadius > dist2) { - currentManipulator = rotateManipulator; - } else { - currentManipulator = rollManipulator; - } - currentManipulator.setButton(publicAPI.getButton()); - currentManipulator.setShift(publicAPI.getShift()); - currentManipulator.setControl(publicAPI.getControl()); - currentManipulator.setCenter(publicAPI.getCenter()); - currentManipulator.onButtonDown(interactor, position); - }; - publicAPI.onButtonUp = interactor => { - if (currentManipulator) { - currentManipulator.onButtonUp(interactor); - } - }; - publicAPI.onMouseMove = (interactor, renderer, position) => { - if (currentManipulator) { - currentManipulator.onMouseMove(interactor, renderer, position); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - macro.obj(publicAPI, model); - vtkCompositeMouseManipulator.extend(publicAPI, model, initialValues); - vtkCompositeCameraManipulator.extend(publicAPI, model, initialValues); - - // Object specific methods - vtkMouseCameraTrackballMultiRotateManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkMouseCameraTrackballMultiRotateManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkMouseCameraTrackballMultiRotateManipulator$1 = { - newInstance, - extend -}; - -export { vtkMouseCameraTrackballMultiRotateManipulator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballPanManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballPanManipulator.d.ts deleted file mode 100644 index 12246aa1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballPanManipulator.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import vtkCompositeCameraManipulator, { - ICompositeCameraManipulatorInitialValues, -} from './CompositeCameraManipulator'; -import vtkCompositeMouseManipulator, { - ICompositeMouseManipulatorInitialValues, -} from './CompositeMouseManipulator'; -import { vtkObject } from './../../interfaces'; - -export interface vtkMouseCameraTrackballPanManipulator - extends vtkObject, - vtkCompositeCameraManipulator, - vtkCompositeMouseManipulator {} - -export interface IMouseCameraTrackballPanManipulatorInitialValues - extends ICompositeCameraManipulatorInitialValues, - ICompositeMouseManipulatorInitialValues {} - -export function newInstance( - initialValues?: IMouseCameraTrackballPanManipulatorInitialValues -): vtkMouseCameraTrackballPanManipulator; - -export function extend( - publicAPI: object, - model: object, - initialValues?: IMouseCameraTrackballPanManipulatorInitialValues -): void; - -export const vtkMouseCameraTrackballPanManipulator: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkMouseCameraTrackballPanManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballPanManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballPanManipulator.js deleted file mode 100644 index f3716a55..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballPanManipulator.js +++ /dev/null @@ -1,103 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCompositeCameraManipulator from './CompositeCameraManipulator.js'; -import vtkCompositeMouseManipulator from './CompositeMouseManipulator.js'; -import { j as cross } from '../../Common/Core/Math/index.js'; - -// ---------------------------------------------------------------------------- -// vtkMouseCameraTrackballPanManipulator methods -// ---------------------------------------------------------------------------- - -function vtkMouseCameraTrackballPanManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkMouseCameraTrackballPanManipulator'); - publicAPI.onButtonDown = (interactor, renderer, position) => { - model.previousPosition = position; - }; - publicAPI.onMouseMove = (interactor, renderer, position) => { - if (!position) { - return; - } - const pos = position; - const lastPos = model.previousPosition; - model.previousPosition = position; - const camera = renderer.getActiveCamera(); - const camPos = camera.getPosition(); - const fp = camera.getFocalPoint(); - if (camera.getParallelProjection()) { - camera.orthogonalizeViewUp(); - const up = camera.getViewUp(); - const vpn = camera.getViewPlaneNormal(); - const right = [0, 0, 0]; - cross(vpn, up, right); - - // These are different because y is flipped. - const height = interactor.getView().getViewportSize(renderer)[1]; - let dx = (pos.x - lastPos.x) / height; - let dy = (lastPos.y - pos.y) / height; - const scale = camera.getParallelScale(); - dx *= scale * 2.0; - dy *= scale * 2.0; - let tmp = right[0] * dx + up[0] * dy; - camPos[0] += tmp; - fp[0] += tmp; - tmp = right[1] * dx + up[1] * dy; - camPos[1] += tmp; - fp[1] += tmp; - tmp = right[2] * dx + up[2] * dy; - camPos[2] += tmp; - fp[2] += tmp; - camera.setPosition(camPos[0], camPos[1], camPos[2]); - camera.setFocalPoint(fp[0], fp[1], fp[2]); - } else { - const { - center - } = model; - const style = interactor.getInteractorStyle(); - const focalDepth = style.computeWorldToDisplay(renderer, center[0], center[1], center[2])[2]; - const worldPoint = style.computeDisplayToWorld(renderer, pos.x, pos.y, focalDepth); - const lastWorldPoint = style.computeDisplayToWorld(renderer, lastPos.x, lastPos.y, focalDepth); - const newCamPos = [camPos[0] + (lastWorldPoint[0] - worldPoint[0]), camPos[1] + (lastWorldPoint[1] - worldPoint[1]), camPos[2] + (lastWorldPoint[2] - worldPoint[2])]; - const newFp = [fp[0] + (lastWorldPoint[0] - worldPoint[0]), fp[1] + (lastWorldPoint[1] - worldPoint[1]), fp[2] + (lastWorldPoint[2] - worldPoint[2])]; - camera.setPosition(newCamPos[0], newCamPos[1], newCamPos[2]); - camera.setFocalPoint(newFp[0], newFp[1], newFp[2]); - } - renderer.resetCameraClippingRange(); - if (interactor.getLightFollowCamera()) { - renderer.updateLightsGeometryToFollowCamera(); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - macro.obj(publicAPI, model); - vtkCompositeCameraManipulator.extend(publicAPI, model, initialValues); - vtkCompositeMouseManipulator.extend(publicAPI, model, initialValues); - - // Object specific methods - vtkMouseCameraTrackballPanManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkMouseCameraTrackballPanManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkMouseCameraTrackballPanManipulator$1 = { - newInstance, - extend -}; - -export { vtkMouseCameraTrackballPanManipulator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballPanManipulatorAutoCenter.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballPanManipulatorAutoCenter.js deleted file mode 100644 index ab63bd49..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballPanManipulatorAutoCenter.js +++ /dev/null @@ -1,120 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkMouseCameraTrackballPanManipulator from './MouseCameraTrackballPanManipulator.js'; -import { mat4, vec3 } from 'gl-matrix'; - -// ---------------------------------------------------------------------------- -// Helper functions for center of rotation adjustment -// ---------------------------------------------------------------------------- - -/** - * Transforms a vector by the transformation delta between two matrices. - * - * @param {Object} tempObjects - Temporary matrices/vectors for computation - * @param {mat4} beforeMatrix - Matrix before transformation - * @param {mat4} afterMatrix - Matrix after transformation - * @param {Array} vector - Vector to transform [x, y, z] - * @returns {Array} Transformed vector [x, y, z] - */ -function transformVectorByTransformation(tempObjects, beforeMatrix, afterMatrix, vector) { - const { - matrixA, - matrixB, - newCenter - } = tempObjects; - - // The view matrix from vtk.js is row-major, but gl-matrix expects column-major. - // We need to transpose them before use. - mat4.transpose(matrixA, beforeMatrix); - mat4.transpose(matrixB, afterMatrix); - mat4.invert(matrixB, matrixB); - - // Compute delta transformation matrix - mat4.multiply(matrixA, matrixB, matrixA); - vec3.transformMat4(newCenter, vector, matrixA); - return newCenter; -} - -/** - * Computes the new center of rotation based on camera movement. - * When the camera moves (pan), the center of rotation should move - * by the same transformation. - * - * @param {Object} tempObjects - Temporary matrices/vectors for computation - * @param {Object} renderer - VTK renderer - * @param {mat4} beforeCameraMatrix - Camera view matrix before movement - * @param {Array} oldCenterOfRotation - Previous center of rotation [x, y, z] - * @returns {Array} New center of rotation [x, y, z] - */ -function computeNewCenterOfRotation(tempObjects, renderer, beforeCameraMatrix, oldCenterOfRotation) { - const cam = renderer.getActiveCamera(); - if (!cam || !beforeCameraMatrix) { - return oldCenterOfRotation; - } - const afterMatrixRowMajor = cam.getViewMatrix(); - return transformVectorByTransformation(tempObjects, beforeCameraMatrix, afterMatrixRowMajor, oldCenterOfRotation); -} -function getCameraMatrix(renderer, tempMatrix) { - const cam = renderer.getActiveCamera(); - if (cam) { - mat4.copy(tempMatrix, cam.getViewMatrix()); - return tempMatrix; - } - return null; -} -function vtkMouseCameraTrackballPanManipulatorAutoCenter(publicAPI, model) { - model.classHierarchy.push('vtkMouseCameraTrackballPanManipulatorAutoCenter'); - const tempCameraMatrix = mat4.create(); - const tempComputeObjects = { - matrixA: mat4.create(), - matrixB: mat4.create(), - newCenter: vec3.create() - }; - const superOnMouseMove = publicAPI.onMouseMove; - publicAPI.onMouseMove = (interactor, renderer, position) => { - if (!position) { - return; - } - const beforeCameraMatrix = getCameraMatrix(renderer, tempCameraMatrix); - superOnMouseMove(interactor, renderer, position); - if (beforeCameraMatrix && model.center) { - const newCenter = computeNewCenterOfRotation(tempComputeObjects, renderer, beforeCameraMatrix, model.center); - publicAPI.setCenter(newCenter); - const style = interactor.getInteractorStyle(); - if (style && style.setCenterOfRotation) { - style.setCenterOfRotation(newCenter); - } - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkMouseCameraTrackballPanManipulator.extend(publicAPI, model, initialValues); - - // Object specific methods - vtkMouseCameraTrackballPanManipulatorAutoCenter(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkMouseCameraTrackballPanManipulatorAutoCenter'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballRollManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballRollManipulator.d.ts deleted file mode 100644 index c216cc09..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballRollManipulator.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import vtkCompositeCameraManipulator, { - ICompositeCameraManipulatorInitialValues, -} from './CompositeCameraManipulator'; -import vtkCompositeMouseManipulator, { - ICompositeMouseManipulatorInitialValues, -} from './CompositeMouseManipulator'; -import { vtkObject } from './../../interfaces'; - -export interface vtkMouseCameraTrackballRollManipulator - extends vtkObject, - vtkCompositeCameraManipulator, - vtkCompositeMouseManipulator {} - -export interface IMouseCameraTrackballRollManipulatorInitialValues - extends ICompositeCameraManipulatorInitialValues, - ICompositeMouseManipulatorInitialValues {} - -export function newInstance( - initialValues?: IMouseCameraTrackballRollManipulatorInitialValues -): vtkMouseCameraTrackballRollManipulator; - -export function extend( - publicAPI: object, - model: object, - initialValues?: IMouseCameraTrackballRollManipulatorInitialValues -): void; - -export const vtkMouseCameraTrackballRollManipulator: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkMouseCameraTrackballRollManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballRollManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballRollManipulator.js deleted file mode 100644 index 5a5df194..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballRollManipulator.js +++ /dev/null @@ -1,120 +0,0 @@ -import { mat4, vec3 } from 'gl-matrix'; -import { m as macro } from '../../macros2.js'; -import vtkCompositeCameraManipulator from './CompositeCameraManipulator.js'; -import vtkCompositeMouseManipulator from './CompositeMouseManipulator.js'; -import { r as radiansFromDegrees, B as degreesFromRadians } from '../../Common/Core/Math/index.js'; - -// ---------------------------------------------------------------------------- -// vtkMouseCameraTrackballRollManipulator methods -// ---------------------------------------------------------------------------- - -function vtkMouseCameraTrackballRollManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkMouseCameraTrackballRollManipulator'); - const axis = new Float64Array(3); - const direction = new Float64Array(3); - const centerNeg = new Float64Array(3); - const transform = new Float64Array(16); - const newCamPos = new Float64Array(3); - const newFp = new Float64Array(3); - const newViewUp = new Float64Array(3); - publicAPI.onButtonDown = (interactor, renderer, position) => { - model.previousPosition = position; - }; - publicAPI.onMouseMove = (interactor, renderer, position) => { - if (!position) { - return; - } - const camera = renderer.getActiveCamera(); - - // compute view vector (rotation axis) - const cameraPos = camera.getPosition(); - const cameraFp = camera.getFocalPoint(); - const viewUp = camera.getViewUp(); - axis[0] = cameraFp[0] - cameraPos[0]; - axis[1] = cameraFp[1] - cameraPos[1]; - axis[2] = cameraFp[2] - cameraPos[2]; - - // compute the angle of rotation - // - first compute the two vectors (center to mouse) - publicAPI.computeDisplayCenter(interactor.getInteractorStyle(), renderer); - const x1 = model.previousPosition.x - model.displayCenter[0]; - const x2 = position.x - model.displayCenter[0]; - const y1 = model.previousPosition.y - model.displayCenter[1]; - const y2 = position.y - model.displayCenter[1]; - if (x2 === 0 && y2 === 0 || x1 === 0 && y1 === 0) { - // don't ever want to divide by zero - return; - } - - // - divide by magnitudes to get angle - const angle = degreesFromRadians((x1 * y2 - y1 * x2) / (Math.sqrt(x1 * x1 + y1 * y1) * Math.sqrt(x2 * x2 + y2 * y2))); - const { - center - } = model; - mat4.identity(transform); - centerNeg[0] = -center[0]; - centerNeg[1] = -center[1]; - centerNeg[2] = -center[2]; - - // Translate to center - mat4.translate(transform, transform, center); - - // roll - mat4.rotate(transform, transform, radiansFromDegrees(angle), axis); - - // Translate back - mat4.translate(transform, transform, centerNeg); - - // Apply transformation to camera position, focal point, and view up - vec3.transformMat4(newCamPos, cameraPos, transform); - vec3.transformMat4(newFp, cameraFp, transform); - direction[0] = viewUp[0] + cameraPos[0]; - direction[1] = viewUp[1] + cameraPos[1]; - direction[2] = viewUp[2] + cameraPos[2]; - vec3.transformMat4(newViewUp, direction, transform); - camera.setPosition(newCamPos[0], newCamPos[1], newCamPos[2]); - camera.setFocalPoint(newFp[0], newFp[1], newFp[2]); - camera.setViewUp(newViewUp[0] - newCamPos[0], newViewUp[1] - newCamPos[1], newViewUp[2] - newCamPos[2]); - camera.orthogonalizeViewUp(); - renderer.resetCameraClippingRange(); - if (interactor.getLightFollowCamera()) { - renderer.updateLightsGeometryToFollowCamera(); - } - model.previousPosition = position; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - macro.obj(publicAPI, model); - vtkCompositeCameraManipulator.extend(publicAPI, model, initialValues); - vtkCompositeMouseManipulator.extend(publicAPI, model, initialValues); - - // Object specific methods - vtkMouseCameraTrackballRollManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkMouseCameraTrackballRollManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkMouseCameraTrackballRollManipulator$1 = { - newInstance, - extend -}; - -export { vtkMouseCameraTrackballRollManipulator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballRotateManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballRotateManipulator.d.ts deleted file mode 100644 index 509a2a16..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballRotateManipulator.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -import vtkCompositeCameraManipulator, { - ICompositeCameraManipulatorInitialValues, -} from './CompositeCameraManipulator'; -import vtkCompositeMouseManipulator, { - ICompositeMouseManipulatorInitialValues, -} from './CompositeMouseManipulator'; -import { vtkObject } from './../../interfaces'; -import { Vector3 } from './../../types'; - -export interface vtkMouseCameraTrackballRotateManipulator - extends vtkObject, - vtkCompositeCameraManipulator, - vtkCompositeMouseManipulator { - /** - * Sets whether to use a given world-up vector. - * @param use boolean - */ - setUseWorldUpVec(use: boolean): boolean; - - /** - * Sets the world-up vector. - * @param vec the world-up vector - */ - setWorldUpVec(vec: Vector3): boolean; - setWorldUpVec(x: number, y: number, z: number): boolean; - - /** - * Gets the world-up vector. - */ - getWorldUpVec(): Vector3; - - /** - * Gets whether to use the focal point as the center of rotation. - */ - getUseFocalPointAsCenterOfRotation(): boolean; - - /** - * Sets using the focal point as the center of rotation. - * @param useFocalPoint - */ - setUseFocalPointAsCenterOfRotation(useFocalPoint: boolean): boolean; -} - -export interface IMouseCameraTrackballRotateManipulatorInitialValues - extends ICompositeCameraManipulatorInitialValues, - ICompositeMouseManipulatorInitialValues { - useWorldUpVec?: boolean; - worldUpVec?: Vector3; - useFocalPointAsCenterOfRotation?: boolean; -} - -export function newInstance( - initialValues?: IMouseCameraTrackballRotateManipulatorInitialValues -): vtkMouseCameraTrackballRotateManipulator; - -export function extend( - publicAPI: object, - model: object, - initialValues?: IMouseCameraTrackballRotateManipulatorInitialValues -): void; - -export const vtkMouseCameraTrackballRotateManipulator: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkMouseCameraTrackballRotateManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballRotateManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballRotateManipulator.js deleted file mode 100644 index 40b0b4a7..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballRotateManipulator.js +++ /dev/null @@ -1,139 +0,0 @@ -import { mat4, vec3 } from 'gl-matrix'; -import { m as macro } from '../../macros2.js'; -import vtkCompositeCameraManipulator from './CompositeCameraManipulator.js'; -import vtkCompositeMouseManipulator from './CompositeMouseManipulator.js'; -import { x as multiplyScalar, d as dot, k as add, r as radiansFromDegrees, j as cross } from '../../Common/Core/Math/index.js'; - -// ---------------------------------------------------------------------------- -// vtkMouseCameraTrackballRotateManipulator methods -// ---------------------------------------------------------------------------- - -function vtkMouseCameraTrackballRotateManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkMouseCameraTrackballRotateManipulator'); - const newCamPos = new Float64Array(3); - const newFp = new Float64Array(3); - const newViewUp = new Float64Array(3); - const trans = new Float64Array(16); - const v2 = new Float64Array(3); - const centerNeg = new Float64Array(3); - const direction = new Float64Array(3); - publicAPI.onButtonDown = (interactor, renderer, position) => { - model.previousPosition = position; - }; - publicAPI.onMouseMove = (interactor, renderer, position) => { - if (!position) { - return; - } - const camera = renderer.getActiveCamera(); - const cameraPos = camera.getPosition(); - const cameraFp = camera.getFocalPoint(); - mat4.identity(trans); - const { - center, - rotationFactor - } = model; - if (model.useFocalPointAsCenterOfRotation) { - center[0] = cameraFp[0]; - center[1] = cameraFp[1]; - center[2] = cameraFp[2]; - } - const dx = model.previousPosition.x - position.x; - const dy = model.previousPosition.y - position.y; - const size = interactor.getView().getViewportSize(renderer); - - // Azimuth - const viewUp = camera.getViewUp(); - if (model.useWorldUpVec) { - const centerOfRotation = new Float64Array(3); - vec3.copy(centerOfRotation, model.worldUpVec); - - // Compute projection of cameraPos onto worldUpVec - multiplyScalar(centerOfRotation, dot(cameraPos, model.worldUpVec) / dot(model.worldUpVec, model.worldUpVec)); - add(center, centerOfRotation, centerOfRotation); - mat4.translate(trans, trans, centerOfRotation); - mat4.rotate(trans, trans, radiansFromDegrees(360.0 * dx / size[0] * rotationFactor), model.worldUpVec); - - // Translate back - centerOfRotation[0] = -centerOfRotation[0]; - centerOfRotation[1] = -centerOfRotation[1]; - centerOfRotation[2] = -centerOfRotation[2]; - mat4.translate(trans, trans, centerOfRotation); - mat4.translate(trans, trans, center); - } else { - mat4.translate(trans, trans, center); - mat4.rotate(trans, trans, radiansFromDegrees(360.0 * dx / size[0] * rotationFactor), viewUp); - } - - // Elevation - cross(camera.getDirectionOfProjection(), viewUp, v2); - mat4.rotate(trans, trans, radiansFromDegrees(-360.0 * dy / size[1] * rotationFactor), v2); - - // Translate back - centerNeg[0] = -center[0]; - centerNeg[1] = -center[1]; - centerNeg[2] = -center[2]; - mat4.translate(trans, trans, centerNeg); - - // Apply transformation to camera position, focal point, and view up - vec3.transformMat4(newCamPos, cameraPos, trans); - vec3.transformMat4(newFp, cameraFp, trans); - direction[0] = viewUp[0] + cameraPos[0]; - direction[1] = viewUp[1] + cameraPos[1]; - direction[2] = viewUp[2] + cameraPos[2]; - vec3.transformMat4(newViewUp, direction, trans); - camera.setPosition(newCamPos[0], newCamPos[1], newCamPos[2]); - camera.setFocalPoint(newFp[0], newFp[1], newFp[2]); - camera.setViewUp(newViewUp[0] - newCamPos[0], newViewUp[1] - newCamPos[1], newViewUp[2] - newCamPos[2]); - camera.orthogonalizeViewUp(); - renderer.resetCameraClippingRange(); - if (interactor.getLightFollowCamera()) { - renderer.updateLightsGeometryToFollowCamera(); - } - model.previousPosition = position; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - useWorldUpVec: false, - // set WorldUpVector to be y-axis by default - worldUpVec: [0, 1, 0], - useFocalPointAsCenterOfRotation: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - macro.obj(publicAPI, model); - vtkCompositeMouseManipulator.extend(publicAPI, model, initialValues); - vtkCompositeCameraManipulator.extend(publicAPI, model, initialValues); - - // Create get-set macro - macro.setGet(publicAPI, model, ['useWorldUpVec']); - macro.setGetArray(publicAPI, model, ['worldUpVec'], 3); - macro.setGet(publicAPI, model, ['useFocalPointAsCenterOfRotation']); - - // Object specific methods - vtkMouseCameraTrackballRotateManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkMouseCameraTrackballRotateManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkMouseCameraTrackballRotateManipulator$1 = { - newInstance, - extend -}; - -export { vtkMouseCameraTrackballRotateManipulator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballZoomManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballZoomManipulator.d.ts deleted file mode 100644 index c43040d9..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballZoomManipulator.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import vtkCompositeCameraManipulator, { - ICompositeCameraManipulatorInitialValues, -} from './CompositeCameraManipulator'; -import vtkCompositeMouseManipulator, { - ICompositeMouseManipulatorInitialValues, -} from './CompositeMouseManipulator'; -import { vtkObject } from './../../interfaces'; -export interface vtkMouseCameraTrackballZoomManipulator - extends vtkObject, - vtkCompositeCameraManipulator, - vtkCompositeMouseManipulator { - /** - * Sets whether to flip the zoom direction. - * @param flip - */ - setFlipDirection(flip: boolean): boolean; - - /** - * Gets the flip direction. - */ - getFlipDirection(): boolean; -} - -export interface IMouseCameraTrackballZoomManipulatorInitialValues - extends ICompositeCameraManipulatorInitialValues, - ICompositeMouseManipulatorInitialValues { - flipDirection?: boolean; -} - -export function newInstance( - initialValues?: IMouseCameraTrackballZoomManipulatorInitialValues -): vtkMouseCameraTrackballZoomManipulator; - -export function extend( - publicAPI: object, - model: object, - initialValues?: IMouseCameraTrackballZoomManipulatorInitialValues -): void; - -export const vtkMouseCameraTrackballZoomManipulator: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkMouseCameraTrackballZoomManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballZoomManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballZoomManipulator.js deleted file mode 100644 index b420e04c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballZoomManipulator.js +++ /dev/null @@ -1,112 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCompositeCameraManipulator from './CompositeCameraManipulator.js'; -import vtkCompositeMouseManipulator from './CompositeMouseManipulator.js'; - -// ---------------------------------------------------------------------------- -// vtkMouseCameraTrackballZoomManipulator methods -// ---------------------------------------------------------------------------- - -function vtkMouseCameraTrackballZoomManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkMouseCameraTrackballZoomManipulator'); - publicAPI.onButtonDown = (interactor, renderer, position) => { - model.previousPosition = position; - const size = interactor.getView().getViewportSize(renderer); - const camera = renderer.getActiveCamera(); - const direction = model.flipDirection ? -1 : 1; - if (camera.getParallelProjection()) { - model.zoomScale = 1.5 / size[1] * direction; - } else { - const range = camera.getClippingRange(); - model.zoomScale = 1.5 * (range[1] / size[1]) * direction; - } - }; - publicAPI.onMouseMove = (interactor, renderer, position) => { - if (!position) { - return; - } - const dy = model.previousPosition.y - position.y; - const camera = renderer.getActiveCamera(); - if (camera.getParallelProjection()) { - const k = dy * model.zoomScale; - camera.setParallelScale((1.0 - k) * camera.getParallelScale()); - } else { - const cameraPos = camera.getPosition(); - const cameraFp = camera.getFocalPoint(); - const norm = camera.getDirectionOfProjection(); - const k = dy * model.zoomScale; - let tmp = k * norm[0]; - cameraPos[0] += tmp; - cameraFp[0] += tmp; - tmp = k * norm[1]; - cameraPos[1] += tmp; - cameraFp[1] += tmp; - tmp = k * norm[2]; - cameraPos[2] += tmp; - cameraFp[2] += tmp; - if (!camera.getFreezeFocalPoint()) { - camera.setFocalPoint(cameraFp[0], cameraFp[1], cameraFp[2]); - } - camera.setPosition(cameraPos[0], cameraPos[1], cameraPos[2]); - renderer.resetCameraClippingRange(); - } - if (interactor.getLightFollowCamera()) { - renderer.updateLightsGeometryToFollowCamera(); - } - model.previousPosition = position; - }; - publicAPI.onScroll = (interactor, renderer, delta) => { - if (!delta) { - return; - } - const camera = renderer.getActiveCamera(); - const dyf = 1 - delta / 10; - if (camera.getParallelProjection()) { - camera.setParallelScale(camera.getParallelScale() / dyf); - } else { - camera.dolly(dyf); - renderer.resetCameraClippingRange(); - } - if (interactor.getLightFollowCamera()) { - renderer.updateLightsGeometryToFollowCamera(); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - zoomScale: 0.0, - flipDirection: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - macro.obj(publicAPI, model); - vtkCompositeMouseManipulator.extend(publicAPI, model, initialValues); - vtkCompositeCameraManipulator.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['flipDirection']); - - // Object specific methods - vtkMouseCameraTrackballZoomManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkMouseCameraTrackballZoomManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkMouseCameraTrackballZoomManipulator$1 = { - newInstance, - extend -}; - -export { vtkMouseCameraTrackballZoomManipulator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballZoomToMouseManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballZoomToMouseManipulator.d.ts deleted file mode 100644 index 1512e2e1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballZoomToMouseManipulator.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import vtkMouseCameraTrackballZoomManipulator, { - IMouseCameraTrackballZoomManipulatorInitialValues, -} from './MouseCameraTrackballZoomManipulator'; - -export type vtkMouseCameraTrackballZoomToMouseManipulator = - vtkMouseCameraTrackballZoomManipulator; - -export type IMouseCameraTrackballZoomToMouseManipulatorInitialValues = - IMouseCameraTrackballZoomManipulatorInitialValues; - -export function newInstance( - initialValues?: IMouseCameraTrackballZoomToMouseManipulatorInitialValues -): vtkMouseCameraTrackballZoomToMouseManipulator; - -export function extend( - publicAPI: object, - model: object, - initialValues?: IMouseCameraTrackballZoomToMouseManipulatorInitialValues -): void; - -export const vtkMouseCameraTrackballZoomToMouseManipulator: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkMouseCameraTrackballZoomToMouseManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballZoomToMouseManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballZoomToMouseManipulator.js deleted file mode 100644 index 20cac54e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraTrackballZoomToMouseManipulator.js +++ /dev/null @@ -1,73 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkInteractorStyleManipulator from '../Style/InteractorStyleManipulator.js'; -import vtkMouseCameraTrackballZoomManipulator from './MouseCameraTrackballZoomManipulator.js'; - -// ---------------------------------------------------------------------------- -// vtkMouseCameraTrackballZoomToMouseManipulator methods -// ---------------------------------------------------------------------------- - -function vtkMouseCameraTrackballZoomToMouseManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkMouseCameraTrackballZoomToMouseManipulator'); - const superOnButtonDown = publicAPI.onButtonDown; - publicAPI.onButtonDown = (interactor, renderer, position) => { - superOnButtonDown(interactor, renderer, position); - model.zoomPosition = position; - }; - publicAPI.onMouseMove = (interactor, renderer, position) => { - if (!position) { - return; - } - const dy = model.previousPosition.y - position.y; - const k = dy * model.zoomScale; - vtkInteractorStyleManipulator.dollyToPosition(1.0 - k, model.zoomPosition, renderer, interactor); - if (interactor.getLightFollowCamera()) { - renderer.updateLightsGeometryToFollowCamera(); - } - model.previousPosition = position; - }; - publicAPI.onScroll = (interactor, renderer, delta, position) => { - if (!delta || !position) { - return; - } - const dyf = 1 - delta * 0.1; - vtkInteractorStyleManipulator.dollyToPosition(dyf, position, renderer, interactor); - if (interactor.getLightFollowCamera()) { - renderer.updateLightsGeometryToFollowCamera(); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - zoomPosition: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkMouseCameraTrackballZoomManipulator.extend(publicAPI, model, initialValues); - - // Object specific methods - vtkMouseCameraTrackballZoomToMouseManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkMouseCameraTrackballZoomToMouseManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkMouseCameraTrackballZoomToMouseManipulator$1 = { - newInstance, - extend -}; - -export { vtkMouseCameraTrackballZoomToMouseManipulator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraUnicamManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraUnicamManipulator.js deleted file mode 100644 index 05f3ea60..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraUnicamManipulator.js +++ /dev/null @@ -1,274 +0,0 @@ -import vtkCompositeCameraManipulator from './CompositeCameraManipulator.js'; -import vtkCompositeMouseManipulator from './CompositeMouseManipulator.js'; -import vtkInteractorStyleConstants from '../../Rendering/Core/InteractorStyle/Constants.js'; -import vtkMouseCameraUnicamRotateManipulator from './MouseCameraUnicamRotateManipulator.js'; -import { m as macro } from '../../macros2.js'; -import { s as subtract, x as multiplyScalar, l as normalize, d as dot, r as radiansFromDegrees, j as cross } from '../../Common/Core/Math/index.js'; - -const { - States -} = vtkInteractorStyleConstants; - -// ---------------------------------------------------------------------------- -// vtkMouseCameraUnicamManipulator methods -// ---------------------------------------------------------------------------- - -function vtkMouseCameraUnicamManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkMouseCameraUnicamManipulator'); - model.state = States.IS_NONE; - model.rotateManipulator = vtkMouseCameraUnicamRotateManipulator.newInstance({ - button: model.button, - shift: model.shift, - control: model.control, - alt: model.alt, - dragEnabled: model.dragEnabled, - scrollEnabled: model.scrollEnabled, - displayFocusSphereOnButtonDown: false - }); - - //---------------------------------------------------------------------------- - const normalize$1 = (position, interactor) => { - const renderer = interactor.findPokedRenderer(); - const [width, height] = interactor.getView().getViewportSize(renderer); - const nx = -1.0 + 2.0 * position.x / width; - const ny = -1.0 + 2.0 * position.y / height; - return { - x: nx, - y: ny - }; - }; - - // Given a 3D point & a vtkCamera, compute the vectors that extend - // from the projection of the center of projection to the center of - // the right-edge and the center of the top-edge onto the plane - // containing the 3D point & with normal parallel to the camera's - // projection plane. - const getRightVAndUpV = (downPoint, interactor) => { - // Compute the horizontal & vertical scaling ('scalex' and 'scaley') - // factors as function of the down point & camera params. - const camera = interactor.findPokedRenderer().getActiveCamera(); - const cameraPosition = camera.getPosition(); - const cameraToPointVec = [0, 0, 0]; - - // Construct a vector from the viewing position to the picked point - subtract(downPoint, cameraPosition, cameraToPointVec); - if (camera.getParallelProjection()) { - multiplyScalar(cameraToPointVec, camera.getParallelScale()); - } - - // Get shortest distance 'l' between the viewing position and - // plane parallel to the projection plane that contains the 'downPoint'. - const atV = camera.getViewPlaneNormal(); - normalize(atV); - const l = dot(cameraToPointVec, atV); - const viewAngle = radiansFromDegrees(camera.getViewAngle()); - const renderer = interactor.findPokedRenderer(); - const [width, height] = interactor.getView().getViewportSize(renderer); - const scaleX = width / height * (2 * l * Math.tan(viewAngle / 2) / 2); - const scaleY = 2 * l * Math.tan(viewAngle / 2) / 2; - - // Construct the camera offset vector as function of delta mouse X & Y. - const upV = camera.getViewUp(); - const rightV = []; - cross(upV, atV, rightV); - // (Make sure 'upV' is orthogonal to 'atV' & 'rightV') - cross(atV, rightV, upV); - normalize(rightV); - normalize(upV); - multiplyScalar(rightV, scaleX); - multiplyScalar(upV, scaleY); - return { - rightV, - upV - }; - }; - - //---------------------------------------------------------------------------- - const choose = (interactor, position) => { - const normalizedPosition = normalize$1(position, interactor); - const normalizedPreviousPosition = normalize$1(model.previousPosition, interactor); - const delta = { - x: normalizedPosition.x - normalizedPreviousPosition.x, - y: normalizedPosition.y - normalizedPreviousPosition.y - }; - model.previousPosition = position; - const deltaT = Date.now() / 1000 - model.time; - model.dist += Math.sqrt(delta.x ** 2 + delta.y ** 2); - const sDelta = { - x: position.x - model.startPosition.x, - y: position.y - model.startPosition.y - }; - const len = Math.sqrt(sDelta.x ** 2 + sDelta.y ** 2); - if (Math.abs(sDelta.y) / len > 0.9 && deltaT > 0.05) { - model.state = States.IS_DOLLY; - } else if (deltaT >= 0.1 || model.dist >= 0.03) { - if (Math.abs(sDelta.x) / len > 0.6) { - model.state = States.IS_PAN; - } else { - model.state = States.IS_DOLLY; - } - } - }; - - //---------------------------------------------------------------------------- - // Transform mouse horizontal & vertical movements to a world - // space offset for the camera that maintains pick correlation. - const pan = (interactor, position) => { - const renderer = interactor.findPokedRenderer(); - const normalizedPosition = normalize$1(position, interactor); - const normalizedPreviousPosition = normalize$1(model.previousPosition, interactor); - const delta = { - x: normalizedPosition.x - normalizedPreviousPosition.x, - y: normalizedPosition.y - normalizedPreviousPosition.y - }; - const camera = renderer.getActiveCamera(); - model.previousPosition = position; - const { - rightV, - upV - } = getRightVAndUpV(model.downPoint, interactor); - const offset = []; - for (let index = 0; index < 3; index++) { - offset[index] = delta.x * rightV[index] + delta.y * upV[index]; - } - camera.translate(...offset); - renderer.resetCameraClippingRange(); - interactor.render(); - }; - - //---------------------------------------------------------------------------- - const dolly = (interactor, position) => { - const renderer = interactor.findPokedRenderer(); - const normalizedPosition = normalize$1(position, interactor); - const normalizedPreviousPosition = normalize$1(model.previousPosition, interactor); - const delta = { - x: normalizedPosition.x - normalizedPreviousPosition.x, - y: normalizedPosition.y - normalizedPreviousPosition.y - }; - const camera = renderer.getActiveCamera(); - const cameraPosition = camera.getPosition(); - - // 1. Handle dollying - if (camera.getParallelProjection()) { - camera.zoom(1 - delta.y); - } else { - const offset1 = []; - subtract(model.downPoint, cameraPosition, offset1); - multiplyScalar(offset1, delta.y * -4); - camera.translate(...offset1); - } - - // 2. Now handle side-to-side panning - const { - rightV: offset2 - } = getRightVAndUpV(model.downPoint, interactor); - multiplyScalar(offset2, delta.x); - camera.translate(...offset2); - renderer.resetCameraClippingRange(); - interactor.render(); - }; - - //---------------------------------------------------------------------------- - // Public API methods - //---------------------------------------------------------------------------- - publicAPI.onButtonDown = (interactor, renderer, position) => { - model.buttonPressed = true; - model.startPosition = position; - model.previousPosition = position; - model.time = Date.now() / 1000.0; - model.dist = 0; - - // Picking is delegated to the rotate manipulator - model.rotateManipulator.onButtonDown(interactor, renderer, position); - model.downPoint = model.rotateManipulator.getDownPoint(); - }; - - //---------------------------------------------------------------------------- - publicAPI.onMouseMove = (interactor, renderer, position) => { - if (!model.buttonPressed) { - return; - } - if (model.rotateManipulator.getState() === States.IS_ROTATE) { - model.rotateManipulator.onMouseMove(interactor, renderer, position); - } else { - switch (model.state) { - case States.IS_NONE: - choose(interactor, position); - break; - case States.IS_PAN: - pan(interactor, position); - break; - case States.IS_DOLLY: - dolly(interactor, position); - break; - } - } - model.previousPosition = position; - }; - - //-------------------------------------------------------------------------- - publicAPI.onButtonUp = interactor => { - model.buttonPressed = false; - if (model.state === States.IS_NONE) { - model.rotateManipulator.onButtonUp(interactor); - } - model.state = States.IS_NONE; - }; - publicAPI.getUseWorldUpVec = () => model.rotateManipulator.getUseWorldUpVec(); - publicAPI.setUseWorldUpVec = useWorldUpVec => { - model.rotateManipulator.setUseWorldUpVec(useWorldUpVec); - }; - publicAPI.getWorldUpVec = () => model.rotateManipulator.getWorldUpVec(); - publicAPI.setWorldUpVec = (x, y, z) => { - model.rotateManipulator.setWorldUpVec(x, y, z); - }; - publicAPI.getUseHardwareSelector = () => model.rotateManipulator.getUseHardwareSelector(); - publicAPI.setUseHardwareSelector = useHardwareSelector => { - model.rotateManipulator.setUseHardwareSelector(useHardwareSelector); - }; - publicAPI.getFocusSphereColor = () => { - model.rotateManipulator.getFocusSphereColor(); - }; - publicAPI.setFocusSphereColor = (r, g, b) => { - model.rotateManipulator.setFocusSphereColor(r, g, b); - }; - publicAPI.getFocusSphereRadiusFactor = () => model.rotateManipulator.getFocusSphereRadiusFactor(); - publicAPI.setFocusSphereRadiusFactor = focusSphereRadiusFactor => { - model.rotateManipulator.setFocusSphereRadiusFactor(focusSphereRadiusFactor); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - macro.obj(publicAPI, model); - vtkCompositeCameraManipulator.extend(publicAPI, model, initialValues); - vtkCompositeMouseManipulator.extend(publicAPI, model, initialValues); - - // Object specific methods - vtkMouseCameraUnicamManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkMouseCameraUnicamManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkMouseCameraUnicamManipulator$1 = { - newInstance, - extend -}; - -export { vtkMouseCameraUnicamManipulator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraUnicamRotateManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraUnicamRotateManipulator.js deleted file mode 100644 index ffe0d357..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseCameraUnicamRotateManipulator.js +++ /dev/null @@ -1,349 +0,0 @@ -import vtkActor from '../../Rendering/Core/Actor.js'; -import vtkCompositeCameraManipulator from './CompositeCameraManipulator.js'; -import vtkCompositeMouseManipulator from './CompositeMouseManipulator.js'; -import vtkInteractorStyleConstants from '../../Rendering/Core/InteractorStyle/Constants.js'; -import vtkMapper from '../../Rendering/Core/Mapper.js'; -import vtkPointPicker from '../../Rendering/Core/PointPicker.js'; -import vtkSphereSource from '../../Filters/Sources/SphereSource.js'; -import { FieldAssociations } from '../../Common/DataModel/DataSet/Constants.js'; -import { mat4, vec3 } from 'gl-matrix'; -import { m as macro } from '../../macros2.js'; -import { E as areEquals, l as normalize, d as dot, F as clampValue, s as subtract, j as cross, x as multiplyScalar, f as distance2BetweenPoints } from '../../Common/Core/Math/index.js'; - -const { - States -} = vtkInteractorStyleConstants; - -// ---------------------------------------------------------------------------- -// vtkMouseCameraUnicamRotateManipulator methods -// ---------------------------------------------------------------------------- - -function vtkMouseCameraUnicamRotateManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkMouseCameraUnicamRotateManipulator'); - - // Setup Picker to pick points - model.picker = vtkPointPicker.newInstance(); - model.downPoint = [0, 0, 0]; - model.isDot = false; - model.state = States.IS_NONE; - - // Setup focus dot - const sphereSource = vtkSphereSource.newInstance(); - sphereSource.setThetaResolution(6); - sphereSource.setPhiResolution(6); - const sphereMapper = vtkMapper.newInstance(); - sphereMapper.setInputConnection(sphereSource.getOutputPort()); - model.focusSphere = vtkActor.newInstance(); - model.focusSphere.setMapper(sphereMapper); - model.focusSphere.getProperty().setColor(0.89, 0.66, 0.41); - model.focusSphere.getProperty().setAmbient(1); - model.focusSphere.getProperty().setDiffuse(0); - model.focusSphere.getProperty().setRepresentationToWireframe(); - - //---------------------------------------------------------------------------- - const updateAndRender = interactor => { - if (!interactor) { - return; - } - if (model.useWorldUpVec) { - const camera = interactor.findPokedRenderer().getActiveCamera(); - if (!areEquals(model.worldUpVec, camera.getViewPlaneNormal())) { - camera.setViewUp(model.worldUpVec); - } - } - interactor.render(); - }; - - //---------------------------------------------------------------------------- - const normalize$1 = (position, interactor) => { - const renderer = interactor.findPokedRenderer(); - const [width, height] = interactor.getView().getViewportSize(renderer); - const nx = -1.0 + 2.0 * position.x / width; - const ny = -1.0 + 2.0 * position.y / height; - return { - x: nx, - y: ny - }; - }; - - //---------------------------------------------------------------------------- - // Rotate the camera by 'angle' degrees about the point - // and around the vector/axis . - const rotateCamera = (camera, cx, cy, cz, ax, ay, az, angle) => { - const cameraPosition = camera.getPosition(); - const cameraFocalPoint = camera.getFocalPoint(); - const cameraViewUp = camera.getViewUp(); - cameraPosition[3] = 1.0; - cameraFocalPoint[3] = 1.0; - cameraViewUp[3] = 0.0; - const transform = mat4.identity(new Float64Array(16)); - mat4.translate(transform, transform, [cx, cy, cz]); - mat4.rotate(transform, transform, angle, [ax, ay, az]); - mat4.translate(transform, transform, [-cx, -cy, -cz]); - const newCameraPosition = []; - const newCameraFocalPoint = []; - vec3.transformMat4(newCameraPosition, cameraPosition, transform); - vec3.transformMat4(newCameraFocalPoint, cameraFocalPoint, transform); - mat4.identity(transform); - mat4.rotate(transform, transform, angle, [ax, ay, az]); - const newCameraViewUp = []; - vec3.transformMat4(newCameraViewUp, cameraViewUp, transform); - camera.setPosition(...newCameraPosition); - camera.setFocalPoint(...newCameraFocalPoint); - camera.setViewUp(...newCameraViewUp); - }; - - //---------------------------------------------------------------------------- - const rotate = (interactor, position) => { - const renderer = interactor.findPokedRenderer(); - const normalizedPosition = normalize$1(position, interactor); - const normalizedPreviousPosition = normalize$1(model.previousPosition, interactor); - const center = model.focusSphere.getPosition(); - let normalizedCenter = interactor.getView().worldToDisplay(...center, renderer); - // let normalizedCenter = publicAPI.computeWorldToDisplay(renderer, ...center); - normalizedCenter = normalize$1({ - x: center[0], - y: center[1] - }, interactor); - normalizedCenter = [normalizedCenter.x, normalizedCenter.y, center[2]]; - - // Squared rad of virtual cylinder - const radsq = (1.0 + Math.abs(normalizedCenter[0])) ** 2.0; - const op = [normalizedPreviousPosition.x, 0, 0]; - const oe = [normalizedPosition.x, 0, 0]; - const opsq = op[0] ** 2; - const oesq = oe[0] ** 2; - const lop = opsq > radsq ? 0 : Math.sqrt(radsq - opsq); - const loe = oesq > radsq ? 0 : Math.sqrt(radsq - oesq); - const nop = [op[0], 0, lop]; - normalize(nop); - const noe = [oe[0], 0, loe]; - normalize(noe); - const dot$1 = dot(nop, noe); - if (Math.abs(dot$1) > 0.0001) { - const angle = -2 * Math.acos(clampValue(dot$1, -1.0, 1.0)) * Math.sign(normalizedPosition.x - normalizedPreviousPosition.x) * publicAPI.getRotationFactor(); - const camera = renderer.getActiveCamera(); - const upVec = model.useWorldUpVec ? model.worldUpVec : camera.getViewUp(); - normalize(upVec); - rotateCamera(camera, ...center, ...upVec, angle); - const dVec = []; - const cameraPosition = camera.getPosition(); - subtract(cameraPosition, position, dVec); - let rDist = (normalizedPosition.y - normalizedPreviousPosition.y) * publicAPI.getRotationFactor(); - normalize(dVec); - const atV = camera.getViewPlaneNormal(); - const upV = camera.getViewUp(); - const rightV = []; - cross(upV, atV, rightV); - normalize(rightV); - - // - // The following two tests try to prevent chaotic camera movement - // that results from rotating over the poles defined by the - // "WorldUpVector". The problem is the constraint to keep the - // camera's up vector in line w/ the WorldUpVector is at odds with - // the action of rotating over the top of the virtual sphere used - // for rotation. The solution here is to prevent the user from - // rotating the last bit required to "go over the top"-- as a - // consequence, you can never look directly down on the poles. - // - // The "0.99" value is somewhat arbitrary, but seems to produce - // reasonable results. (Theoretically, some sort of clamping - // function could probably be used rather than a hard cutoff, but - // time constraints prevent figuring that out right now.) - // - if (model.useWorldUpVec) { - const OVER_THE_TOP_THRESHOLD = 0.99; - if (dot(upVec, atV) > OVER_THE_TOP_THRESHOLD && rDist < 0) { - rDist = 0; - } - if (dot(upVec, atV) < -OVER_THE_TOP_THRESHOLD && rDist > 0) { - rDist = 0; - } - } - rotateCamera(camera, ...center, ...rightV, rDist); - if (model.useWorldUpVec && !areEquals(upVec, camera.getViewPlaneNormal())) { - camera.setViewUp(...upVec); - } - model.previousPosition = position; - renderer.resetCameraClippingRange(); - updateAndRender(interactor); - } - }; - - //---------------------------------------------------------------------------- - const placeFocusSphere = interactor => { - const renderer = interactor.findPokedRenderer(); - model.focusSphere.setPosition(...model.downPoint); - const camera = renderer.getActiveCamera(); - const cameraPosition = camera.getPosition(); - const cameraToPointVec = []; - subtract(model.downPoint, cameraPosition, cameraToPointVec); - if (camera.getParallelProjection()) { - multiplyScalar(cameraToPointVec, camera.getParallelScale()); - } - const atV = camera.getDirectionOfProjection(); - normalize(atV); - - // Scales the focus dot so it always appears the same size - const scale = 0.02 * dot(atV, cameraToPointVec) * model.focusSphereRadiusFactor; - model.focusSphere.setScale(scale, scale, scale); - }; - const placeAndDisplayFocusSphere = interactor => { - placeFocusSphere(interactor); - interactor.findPokedRenderer().addActor(model.focusSphere); - model.isDot = true; - }; - const hideFocusSphere = interactor => { - interactor.findPokedRenderer().removeActor(model.focusSphere); - model.isDot = false; - }; - - //---------------------------------------------------------------------------- - const pickWithPointPicker = (interactor, position) => { - const renderer = interactor.findPokedRenderer(); - model.picker.pick([position.x, position.y, position.z], renderer); - const pickedPositions = model.picker.getPickedPositions(); - if (pickedPositions.length === 0) { - return model.picker.getPickPosition(); - } - const cameraPosition = renderer.getActiveCamera().getPosition(); - pickedPositions.sort((pointA, pointB) => distance2BetweenPoints(pointA, cameraPosition) - distance2BetweenPoints(pointB, cameraPosition)); - return pickedPositions[0]; - }; - - //---------------------------------------------------------------------------- - const pickPoint = (interactor, position) => { - const renderer = interactor.findPokedRenderer(); - // Finds the point under the cursor. - // Note: If no object has been rendered to the pixel (X, Y), then - // vtkPicker will return a z-value with depth equal - // to the distance from the camera's position to the focal point. - // This seems like an arbitrary, but perhaps reasonable, default value. - let selections = null; - if (model.useHardwareSelector) { - const selector = interactor.getView().getSelector(); - selector.setCaptureZValues(true); - selector.setFieldAssociation(FieldAssociations.FIELD_ASSOCIATION_POINTS); - selector.attach(interactor.getView(), renderer); - selector.setArea(position.x, position.y, position.x, position.y); - selections = selector.select(); - } - if (selections && selections.length !== 0) { - // convert Float64Array to regular array - return Array.from(selections[0].getProperties().worldPosition); - } - return pickWithPointPicker(interactor, position); - }; - - //---------------------------------------------------------------------------- - // Public API methods - //---------------------------------------------------------------------------- - publicAPI.onButtonDown = (interactor, renderer, position) => { - model.buttonPressed = true; - model.startPosition = position; - model.previousPosition = position; - const normalizedPosition = normalize$1(position, interactor); - // borderRatio defines the percentage of the screen size that is considered to be - // the border of the screen on each side - const borderRatio = 0.1; - // If the user is clicking on the perimeter of the screen, - // then we want to go into rotation mode, and there is no need to determine the downPoint - if (Math.abs(normalizedPosition.x) > 1 - borderRatio || Math.abs(normalizedPosition.y) > 1 - borderRatio) { - model.state = States.IS_ROTATE; - placeAndDisplayFocusSphere(interactor); - return; - } - model.downPoint = pickPoint(interactor, position); - if (model.isDot) { - model.state = States.IS_ROTATE; - } else { - model.state = States.IS_NONE; - if (model.displayFocusSphereOnButtonDown) { - placeAndDisplayFocusSphere(interactor); - } - } - }; - - //---------------------------------------------------------------------------- - publicAPI.onMouseMove = (interactor, renderer, position) => { - if (!model.buttonPressed) { - return; - } - model.state = States.IS_ROTATE; - rotate(interactor, position); - model.previousPosition = position; - }; - - //-------------------------------------------------------------------------- - publicAPI.onButtonUp = interactor => { - const renderer = interactor.findPokedRenderer(); - model.buttonPressed = false; - - // If rotation without a focus sphere, nothing to do - if (model.state === States.IS_ROTATE && !model.isDot) { - return; - } - if (model.state === States.IS_ROTATE) { - hideFocusSphere(interactor); - } else if (model.state === States.IS_NONE) { - placeAndDisplayFocusSphere(interactor); - } - renderer.resetCameraClippingRange(); - updateAndRender(interactor); - }; - publicAPI.getFocusSphereColor = () => { - model.focusSphere.getProperty().getColor(); - }; - publicAPI.setFocusSphereColor = (r, g, b) => { - model.focusSphere.getProperty().setColor(r, g, b); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - focusSphereRadiusFactor: 1, - displayFocusSphereOnButtonDown: true, - useHardwareSelector: true, - useWorldUpVec: true, - // set WorldUpVector to be z-axis by default - worldUpVec: [0, 0, 1] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - macro.obj(publicAPI, model); - vtkCompositeCameraManipulator.extend(publicAPI, model, initialValues); - vtkCompositeMouseManipulator.extend(publicAPI, model, initialValues); - - // Create get-set macros - macro.setGet(publicAPI, model, ['focusSphereRadiusFactor', 'displayFocusSphereOnButtonDown', 'useHardwareSelector', 'useWorldUpVec']); - macro.get(publicAPI, model, ['state']); - macro.getArray(publicAPI, model, ['downPoint'], 3); - macro.setGetArray(publicAPI, model, ['worldUpVec'], 3); - - // Object specific methods - vtkMouseCameraUnicamRotateManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkMouseCameraUnicamRotateManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkMouseCameraUnicamRotateManipulator$1 = { - newInstance, - extend -}; - -export { vtkMouseCameraUnicamRotateManipulator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseRangeManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseRangeManipulator.d.ts deleted file mode 100644 index 6b220e5e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseRangeManipulator.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -import vtkCompositeMouseManipulator, { - ICompositeMouseManipulatorInitialValues, -} from './CompositeMouseManipulator'; -import { vtkObject } from './../../interfaces'; - -export interface IMouseRangeManipulatorInitialValues - extends ICompositeMouseManipulatorInitialValues {} - -export interface vtkMouseRangeManipulator - extends vtkCompositeMouseManipulator, - vtkObject { - setHorizontalListener( - min: number, - max: number, - step: number, - getValue: () => number, - setValue: (v: number) => void, - scale?: number - ); - setVerticalListener( - min: number, - max: number, - step: number, - getValue: () => number, - setValue: (v: number) => void, - scale?: number - ); - setScrollListener( - min: number, - max: number, - step: number, - getValue: () => number, - setValue: (v: number) => void, - scale?: number - ); - removeHorizontalListener(); - removeVerticalListener(); - removeScrollListener(); - removeAllListeners(); -} - -export function extend( - publicAPI: object, - model: object, - initialValues?: IMouseRangeManipulatorInitialValues -): void; -export function newInstance( - initialValues?: IMouseRangeManipulatorInitialValues -): vtkMouseRangeManipulator; - -export declare const vtkMouseRangeManipulator: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkMouseRangeManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseRangeManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseRangeManipulator.js deleted file mode 100644 index 2d951b75..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/MouseRangeManipulator.js +++ /dev/null @@ -1,294 +0,0 @@ -import { m as macro, v as vtkWarningMacro } from '../../macros2.js'; -import vtkCompositeMouseManipulator from './CompositeMouseManipulator.js'; - -// ---------------------------------------------------------------------------- -// vtkMouseRangeManipulator methods -// ---------------------------------------------------------------------------- - -function vtkMouseRangeManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkMouseRangeManipulator'); - - // Keep track of delta that is below the value - // of one step to progressively increment it - const incrementalDelta = new Map(); - - // Internal methods - //------------------------------------------------------------------------- - function scaleDeltaToRange(listener, normalizedDelta) { - return normalizedDelta * ((listener.max - listener.min) / (listener.step + 1)); - } - - //------------------------------------------------------------------------- - function processDelta(listener, delta) { - const oldValue = listener.getValue(); - - // if exponential scroll is enabled, we raise our scale to the - // exponent of the net delta of the interaction. The further away - // the user's cursor is from the start of the interaction, the more - // their movements will effect the value. - let scalingFactor = listener.exponentialScroll ? listener.scale ** Math.log2(Math.abs(model.interactionNetDelta) + 2) : listener.scale; - - // Preserve the sign of scale (which can be used to invert the scrolling direction) - // after the power operation above (in case of exponentialScroll). - scalingFactor = Math.abs(scalingFactor) * Math.sign(listener.scale); - const newDelta = delta * scalingFactor + incrementalDelta.get(listener); - - // Compute new value based on step - // In the following line, Math.abs is required so that the floor function - // consistently rounds to the lowest absolute integer. - const stepsToDifference = Math.floor(Math.abs(newDelta / listener.step)); - let value = oldValue + listener.step * stepsToDifference * Math.sign(newDelta); - value = Math.max(value, listener.min); - value = Math.min(value, listener.max); - if (value !== oldValue) { - // Update value - listener.setValue(value); - incrementalDelta.set(listener, 0); - } else if (value === listener.min && newDelta < 0 || value === listener.max && newDelta > 0) { - // Do not allow incremental delta to go past range - incrementalDelta.set(listener, 0); - } else { - // Store delta for the next iteration - incrementalDelta.set(listener, newDelta); - } - } - - // Public API methods - - // min:number = minimum allowable value - // max:number = maximum allowable value - // step:number = value per step -- smaller = more steps over a given distance, larger = fewer steps over a given distance - // getValue:fn = function that returns current value - // setValue:fn = function to set value - // scale:number = scale value is applied to mouse event to allow users accelerate or decelerate delta without emitting more events - //------------------------------------------------------------------------- - publicAPI.setHorizontalListener = function (min, max, step, getValue, setValue) { - let scale = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 1; - let exponentialScroll = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false; - const getFn = Number.isFinite(getValue) ? () => getValue : getValue; - model.horizontalListener = { - min, - max, - step, - getValue: getFn, - setValue, - scale, - exponentialScroll - }; - incrementalDelta.set(model.horizontalListener, 0); - publicAPI.modified(); - }; - - //------------------------------------------------------------------------- - publicAPI.setVerticalListener = function (min, max, step, getValue, setValue) { - let scale = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 1; - let exponentialScroll = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false; - const getFn = Number.isFinite(getValue) ? () => getValue : getValue; - model.verticalListener = { - min, - max, - step, - getValue: getFn, - setValue, - scale, - exponentialScroll - }; - incrementalDelta.set(model.verticalListener, 0); - publicAPI.modified(); - }; - - //------------------------------------------------------------------------- - publicAPI.setScrollListener = function (min, max, step, getValue, setValue) { - let scale = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 1; - let exponentialScroll = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false; - if (step < 0) { - vtkWarningMacro('Value of step cannot be negative. If you want to invert the scrolling direction, use a negative scale value instead.'); - } - const stepSize = Math.abs(step); - const getFn = Number.isFinite(getValue) ? () => getValue : getValue; - model.scrollListener = { - min, - max, - step: stepSize, - getValue: getFn, - setValue, - scale, - exponentialScroll - }; - incrementalDelta.set(model.scrollListener, 0); - publicAPI.modified(); - }; - - //------------------------------------------------------------------------- - publicAPI.removeHorizontalListener = () => { - if (model.horizontalListener) { - incrementalDelta.delete(model.horizontalListener); - delete model.horizontalListener; - publicAPI.modified(); - } - }; - - //------------------------------------------------------------------------- - publicAPI.removeVerticalListener = () => { - if (model.verticalListener) { - incrementalDelta.delete(model.verticalListener); - delete model.verticalListener; - publicAPI.modified(); - } - }; - - //------------------------------------------------------------------------- - publicAPI.removeScrollListener = () => { - if (model.scrollListener) { - incrementalDelta.delete(model.scrollListener); - delete model.scrollListener; - publicAPI.modified(); - } - }; - - //------------------------------------------------------------------------- - publicAPI.removeAllListeners = () => { - publicAPI.removeHorizontalListener(); - publicAPI.removeVerticalListener(); - publicAPI.removeScrollListener(); - }; - - //------------------------------------------------------------------------- - publicAPI.onButtonDown = (interactor, renderer, position) => { - model.previousPosition = position; - model.interactionNetDelta = 0; - const glRenderWindow = interactor.getView(); - // Ratio is the dom size vs renderwindow size - const ratio = glRenderWindow.getContainerSize()[0] / glRenderWindow.getSize()[0]; - // Get proper pixel range used by viewport in rw size space - const size = glRenderWindow.getViewportSize(renderer); - // rescale size to match mouse event position - model.containerSize = size.map(v => v * ratio); - }; - publicAPI.onButtonUp = interactor => { - interactor.exitPointerLock(); - }; - - //-------------------------------------------------------------------------- - - // TODO: at some point, this should perhaps be done in - // RenderWindowInteractor instead of here. - // We need to hook into mousemove directly for two reasons: - // 1. We need to keep receiving mouse move events after the mouse button - // is released. This is currently not possible with - // vtkInteractorStyleManipulator. - // 2. Since the mouse is stationary in pointer lock mode, we need the - // event.movementX and event.movementY info, which are not currently - // passed via interactor.onMouseMove. - publicAPI.startPointerLockEvent = (interactor, renderer) => { - const handlePointerLockMove = event => { - publicAPI.onPointerLockMove(interactor, renderer, event); - }; - document.addEventListener('mousemove', handlePointerLockMove); - let subscription = null; - const endInteraction = () => { - document.removeEventListener('mousemove', handlePointerLockMove); - subscription?.unsubscribe(); - }; - subscription = interactor?.onEndPointerLock(endInteraction); - }; - publicAPI.onPointerLockMove = (interactor, renderer, event) => { - // There is a slight delay between the `onEndPointerLock` call - // and the last `onMouseMove` event, we must make sure the pointer - // is still locked before we run this logic otherwise we may - // get a `onMouseMove` call after the pointer has been unlocked. - if (!interactor.isPointerLocked()) return; - - // previousPosition could be undefined if for some reason the - // `startPointerLockEvent` method is called before the `onButtonDown` one. - if (model.previousPosition == null) return; - model.previousPosition.x += event.movementX; - model.previousPosition.y += event.movementY; - publicAPI.onMouseMove(interactor, renderer, model.previousPosition); - }; - - //------------------------------------------------------------------------- - publicAPI.onMouseMove = (interactor, renderer, position) => { - if (!model.verticalListener && !model.horizontalListener) { - return; - } - - // We only want to initialize the pointer lock listener - // after the user starts moving their mouse, this way - // we don't interfere with other events such as doubleClick, - // for this reason we don't call this from `onButtonDown` - if (model.usePointerLock && !interactor.isPointerLocked()) { - interactor.requestPointerLock(); - publicAPI.startPointerLockEvent(interactor, renderer); - } - if (!position) { - return; - } - if (model.horizontalListener) { - const dxNorm = (position.x - model.previousPosition.x) / model.containerSize[0]; - const dx = scaleDeltaToRange(model.horizontalListener, dxNorm); - model.interactionNetDelta += dx; - processDelta(model.horizontalListener, dx); - } - if (model.verticalListener) { - const dyNorm = (position.y - model.previousPosition.y) / model.containerSize[1]; - const dy = scaleDeltaToRange(model.verticalListener, dyNorm); - model.interactionNetDelta += dy; - processDelta(model.verticalListener, dy); - } - model.previousPosition = position; - }; - - //------------------------------------------------------------------------- - publicAPI.onScroll = (interactor, renderer, delta) => { - if (!model.scrollListener || !delta) { - return; - } - model.interactionNetDelta += delta * model.scrollListener.step; - processDelta(model.scrollListener, delta * model.scrollListener.step); - }; - publicAPI.onStartScroll = () => { - model.interactionNetDelta = 0; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - horizontalListener: null, - verticalListener: null, - scrollListener: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - macro.obj(publicAPI, model); - vtkCompositeMouseManipulator.extend(publicAPI, model, initialValues); - - // Create get-set macros - macro.setGet(publicAPI, model, ['usePointerLock']); - - // Object specific methods - vtkMouseRangeManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkMouseRangeManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkMouseRangeManipulator$1 = { - newInstance, - extend -}; - -export { vtkMouseRangeManipulator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/VRButtonPanManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/VRButtonPanManipulator.js deleted file mode 100644 index 58444fef..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Manipulators/VRButtonPanManipulator.js +++ /dev/null @@ -1,74 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCompositeVRManipulator from './CompositeVRManipulator.js'; -import { Device, Input } from '../../Rendering/Core/RenderWindowInteractor/Constants.js'; -import { States } from '../../Rendering/Core/InteractorStyle/Constants.js'; - -// ---------------------------------------------------------------------------- -// vtkVRButtonPanManipulator methods -// ---------------------------------------------------------------------------- - -function vtkVRButtonPanManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkVRButtonPanManipulator'); - publicAPI.onButton3D = (interactorStyle, renderer, state, eventData) => { - if (eventData.pressed) { - interactorStyle.startCameraPose(); - } else if (state === States.IS_CAMERA_POSE) { - interactorStyle.endCameraPose(); - } - }; - publicAPI.onMove3D = (interactorStyle, renderer, state, eventData) => { - if (state !== States.IS_CAMERA_POSE) { - return; - } - - // move the world in the direction of the - // controller - const camera = renderer.getActiveCamera(); - const oldTrans = camera.getPhysicalTranslation(); - - // look at the y axis to determine how fast / what direction to move - const speed = eventData.gamepad.axes[1]; - - // 0.05 meters / frame movement - const pscale = speed * 0.05 * camera.getPhysicalScale(); - - // convert orientation to world coordinate direction - const dir = camera.physicalOrientationToWorldDirection(eventData.orientation); - camera.setPhysicalTranslation(oldTrans[0] + dir[0] * pscale, oldTrans[1] + dir[1] * pscale, oldTrans[2] + dir[2] * pscale); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - device: Device.RightController, - input: Input.TrackPad -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - vtkCompositeVRManipulator.extend(publicAPI, model, initialValues); - - // Object specific methods - vtkVRButtonPanManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkVRButtonPanManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkVRButtonPanManipulator$1 = { - newInstance, - extend -}; - -export { vtkVRButtonPanManipulator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Misc.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Misc.js deleted file mode 100644 index 341033be..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Misc.js +++ /dev/null @@ -1,7 +0,0 @@ -import vtkDeviceOrientationToCamera from './Misc/DeviceOrientationToCamera.js'; - -var Misc = { - vtkDeviceOrientationToCamera -}; - -export { Misc as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Misc/DeviceOrientationToCamera.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Misc/DeviceOrientationToCamera.js deleted file mode 100644 index 4710d071..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Misc/DeviceOrientationToCamera.js +++ /dev/null @@ -1,89 +0,0 @@ -const listeners = []; -const orientation = { - device: {}, - screen: window.orientation || 0, - supported: !!window.DeviceMotionEvent, - update: false -}; -const SCREEN_ORIENTATION_MAP = { - 'landscape-primary': 90, - 'landscape-secondary': -90, - 'portrait-secondary': 180, - 'portrait-primary': 0 -}; -function isEventValid(evt) { - return Number.isFinite(evt.alpha); -} -function onDeviceOrientationChangeEvent(evt) { - orientation.device = evt; - if (!Number.isFinite(evt.alpha)) { - orientation.supported = false; - } -} -function onScreenOrientationChangeEvent() { - orientation.screen = SCREEN_ORIENTATION_MAP[window.screen.orientation || window.screen.mozOrientation] || window.orientation || 0; -} -function addWindowListeners() { - window.addEventListener('orientationchange', onScreenOrientationChangeEvent, false); - window.addEventListener('deviceorientation', onDeviceOrientationChangeEvent, false); - orientation.update = true; - listeners.filter(i => !!i).forEach(i => i.renderWindowInteractor.requestAnimation(i)); -} -function removeWindowListeners() { - window.removeEventListener('orientationchange', onScreenOrientationChangeEvent, false); - window.removeEventListener('deviceorientation', onDeviceOrientationChangeEvent, false); - orientation.update = false; - listeners.filter(i => !!i).forEach(i => i.renderWindowInteractor.cancelAnimation(i)); -} -function addCameraToSynchronize(renderWindowInteractor, camera, onCameraUpdate) { - function onAnimation() { - if (orientation.update && isEventValid(orientation.device)) { - const { - alpha, - beta, - gamma - } = orientation.device; - const { - screen - } = orientation; - camera.setDeviceAngles(alpha, beta, gamma, screen); - if (onCameraUpdate) { - onCameraUpdate(); - } - } - } - const subscription = renderWindowInteractor.onAnimation(onAnimation); - const listener = { - subscription, - renderWindowInteractor - }; - const listenerId = listeners.length; - listeners.push(listener); - if (orientation.update) { - listener.renderWindowInteractor.requestAnimation(listener); - } - return listenerId; -} -function removeCameraToSynchronize(id) { - let cancelAnimation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - const listener = listeners[id]; - if (listener) { - listener.subscription.unsubscribe(); - if (cancelAnimation) { - listener.renderWindowInteractor.cancelAnimation(listener); - } - } - listeners[id] = null; -} -function isDeviceOrientationSupported() { - return orientation.supported; -} -var vtkDeviceOrientationToCamera = { - addCameraToSynchronize, - addWindowListeners, - isDeviceOrientationSupported, - removeCameraToSynchronize, - removeWindowListeners -}; - -export { vtkDeviceOrientationToCamera as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style.js deleted file mode 100644 index ed455375..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style.js +++ /dev/null @@ -1,15 +0,0 @@ -import vtkInteractorStyleImage from './Style/InteractorStyleImage.js'; -import vtkInteractorStyleManipulator from './Style/InteractorStyleManipulator.js'; -import vtkInteractorStyleMPRSlice from './Style/InteractorStyleMPRSlice.js'; -import vtkInteractorStyleRemoteMouse from './Style/InteractorStyleRemoteMouse.js'; -import vtkInteractorStyleTrackballCamera from './Style/InteractorStyleTrackballCamera.js'; - -var Style = { - vtkInteractorStyleImage, - vtkInteractorStyleManipulator, - vtkInteractorStyleMPRSlice, - vtkInteractorStyleRemoteMouse, - vtkInteractorStyleTrackballCamera -}; - -export { Style as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleHMDXR.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleHMDXR.d.ts deleted file mode 100644 index 8e1c9566..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleHMDXR.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import vtkInteractorStyleManipulator, { - IInteractorStyleManipulatorInitialValues, -} from './InteractorStyleManipulator'; - -export interface vtkInteractorStyleHMDXR - extends vtkInteractorStyleManipulator {} - -export interface IInteractorStyleHMDXRInitialValues - extends IInteractorStyleManipulatorInitialValues {} - -export function newInstance( - initialValues?: IInteractorStyleHMDXRInitialValues -): vtkInteractorStyleHMDXR; - -export function extend( - publicAPI: object, - model: object, - initialValues?: IInteractorStyleHMDXRInitialValues -): void; - -export const vtkInteractorStyleHMDXR: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkInteractorStyleHMDXR; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleHMDXR.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleHMDXR.js deleted file mode 100644 index aca0161a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleHMDXR.js +++ /dev/null @@ -1,50 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkInteractorStyleManipulator from './InteractorStyleManipulator.js'; -import vtk3DControllerModelSelectorManipulator from '../Manipulators/3DControllerModelSelectorManipulator/index.js'; -import { Device, Input } from '../../Rendering/Core/RenderWindowInteractor/Constants.js'; - -function vtkInteractorStyleHMDXR(publicAPI, model) { - model.classHierarchy.push('vtkInteractorStyleHMDXR'); - const leftHandManipulator = vtk3DControllerModelSelectorManipulator.newInstance({ - device: Device.LeftController, - input: Input.A - }); - const rightHandManipulator = vtk3DControllerModelSelectorManipulator.newInstance({ - device: Device.RightController, - input: Input.A - }); - publicAPI.addVRManipulator(leftHandManipulator); - publicAPI.addVRManipulator(rightHandManipulator); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkInteractorStyleManipulator.extend(publicAPI, model, initialValues); - - // Object specific methods - vtkInteractorStyleHMDXR(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkInteractorStyleHMDXR'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleImage.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleImage.d.ts deleted file mode 100644 index 40fa3950..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleImage.d.ts +++ /dev/null @@ -1,108 +0,0 @@ -import { Vector2, Vector3 } from './../../types'; -import vtkRenderer from './../../Rendering/Core/Renderer'; -import vtkImageProperty from './../../Rendering/Core/ImageProperty'; -import vtkInteractorStyleTrackballCamera from './InteractorStyleTrackballCamera'; - -export interface vtkInteractorStyleImage - extends vtkInteractorStyleTrackballCamera { - /** - * Handles a mouse move. - * @param callData event data - */ - handleMouseMove(callData: unknown): void; - - /** - * Handles a left button press event. - * @param callData event data - */ - handleLeftButtonPress(callData: unknown): void; - - /** - * Handles a left button release event. - * @param callData event data - */ - handleLeftButtonRelease(callData: unknown): void; - - /** - * Handles the start of a wheel event. - * @param callData event data - */ - handleStartMouseWheel(callData: unknown): void; - - /** - * Handles the end of a wheel event. - * @param callData event data - */ - handleEndMouseWheel(callData: unknown): void; - - /** - * Handles a wheel event. - * @param callData event data - */ - handleMouseWheel(callData: unknown): void; - - /** - * Set window level from position. - * @param renderer the renderer - * @param position the display position - */ - windowLevel(renderer: vtkRenderer, position: { x: number; y: number }): void; - - /** - * Set slice from position. - * @param renderer the renderer - * @param position the display position - */ - slice(renderer: vtkRenderer, position: { x: number; y: number }): void; - - /** - * Sets the current image property. - * - * This is a way of dealing with images as if they were layers. - * It looks through the renderer's list of props and sets the - * interactor ivars from the Nth image that it finds. You can - * also use negative numbers, i.e. -1 will return the last image, - * -2 will return the second-to-last image, etc. - * @param i image number - */ - setCurrentImageNumber(i: number): boolean; - - /** - * Sets the current image property. - * @param imageProperty image property - */ - setCurrentImageProperty(imageProperty: vtkImageProperty): boolean; -} - -export interface IInteractorStyleImageInitialValues { - windowLevelStartPosition: Vector2; - windowLevelCurrentPosition: Vector2; - lastSlicePosition: number; - windowLevelInitial: Vector2; - // currentImageProperty: null; - currentImageNumber: number; - interactionMode: 'IMAGE2D' | 'IMAGE3D' | 'IMAGE_SLICING'; - xViewRightVector: Vector3; - xViewUpVector: Vector3; - yViewRightVector: Vector3; - yViewUpVector: Vector3; - zViewRightVector: Vector3; - zViewUpVector: Vector3; -} - -export function newInstance( - initialValues?: IInteractorStyleImageInitialValues -): vtkInteractorStyleImage; - -export function extend( - publicAPI: object, - model: object, - initialValues?: IInteractorStyleImageInitialValues -): void; - -export const vtkInteractorStyleImage: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkInteractorStyleImage; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleImage.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleImage.js deleted file mode 100644 index 9636cdbd..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleImage.js +++ /dev/null @@ -1,284 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkInteractorStyleTrackballCamera from './InteractorStyleTrackballCamera.js'; -import { r as radiansFromDegrees } from '../../Common/Core/Math/index.js'; -import { States } from '../../Rendering/Core/InteractorStyle/Constants.js'; - -// ---------------------------------------------------------------------------- -// vtkInteractorStyleImage methods -// ---------------------------------------------------------------------------- - -function vtkInteractorStyleImage(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkInteractorStyleImage'); - - // Public API methods - publicAPI.superHandleMouseMove = publicAPI.handleMouseMove; - publicAPI.handleMouseMove = callData => { - const pos = callData.position; - const renderer = model.getRenderer(callData); - switch (model.state) { - case States.IS_WINDOW_LEVEL: - publicAPI.windowLevel(renderer, pos); - publicAPI.invokeInteractionEvent({ - type: 'InteractionEvent' - }); - break; - case States.IS_SLICE: - publicAPI.slice(renderer, pos); - publicAPI.invokeInteractionEvent({ - type: 'InteractionEvent' - }); - break; - } - publicAPI.superHandleMouseMove(callData); - }; - - //---------------------------------------------------------------------------- - publicAPI.superHandleLeftButtonPress = publicAPI.handleLeftButtonPress; - publicAPI.handleLeftButtonPress = callData => { - const pos = callData.position; - if (!callData.shiftKey && !callData.controlKey) { - model.windowLevelStartPosition[0] = pos.x; - model.windowLevelStartPosition[1] = pos.y; - // Get the last (the topmost) image - publicAPI.setCurrentImageNumber(model.currentImageNumber); - const property = model.currentImageProperty; - if (property) { - model.windowLevelInitial[0] = property.getColorWindow(); - model.windowLevelInitial[1] = property.getColorLevel(); - } - publicAPI.startWindowLevel(); - } else if (model.interactionMode === 'IMAGE3D' && callData.shiftKey) { - // If ctrl+shift or alt+shift is held down, dolly the camera - if (callData.controlKey || callData.altKey) { - publicAPI.startDolly(); - } else { - // If shift is held down, rotate - publicAPI.startRotate(); - } - } else if (model.interactionMode === 'IMAGE_SLICING' && callData.controlKey) { - // If ctrl is held down in slicing mode, slice the image - model.lastSlicePosition = pos.y; - publicAPI.startSlice(); - } else { - // The rest of the button + key combinations remain the same - publicAPI.superHandleLeftButtonPress(callData); - } - }; - - //-------------------------------------------------------------------------- - publicAPI.superHandleLeftButtonRelease = publicAPI.handleLeftButtonRelease; - publicAPI.handleLeftButtonRelease = () => { - switch (model.state) { - case States.IS_WINDOW_LEVEL: - publicAPI.endWindowLevel(); - break; - case States.IS_SLICE: - publicAPI.endSlice(); - break; - default: - publicAPI.superHandleLeftButtonRelease(); - break; - } - }; - - //-------------------------------------------------------------------------- - publicAPI.handleStartMouseWheel = () => { - publicAPI.startSlice(); - }; - - //-------------------------------------------------------------------------- - publicAPI.handleEndMouseWheel = () => { - publicAPI.endSlice(); - }; - - //-------------------------------------------------------------------------- - publicAPI.handleMouseWheel = callData => { - const camera = model.getRenderer(callData).getActiveCamera(); - let distance = camera.getDistance(); - distance += callData.spinY; - - // clamp the distance to the clipping range - const range = camera.getClippingRange(); - if (distance < range[0]) { - distance = range[0]; - } - if (distance > range[1]) { - distance = range[1]; - } - camera.setDistance(distance); - const props = model.getRenderer(callData).getViewProps().filter(prop => prop.isA('vtkImageSlice')); - props.forEach(prop => { - if (prop.getMapper().isA('vtkImageResliceMapper')) { - const p = prop.getMapper().getSlicePlane(); - if (p) { - p.push(callData.spinY); - p.modified(); - prop.getMapper().modified(); - } - } - }); - }; - - //---------------------------------------------------------------------------- - publicAPI.windowLevel = (renderer, position) => { - model.windowLevelCurrentPosition[0] = position.x; - model.windowLevelCurrentPosition[1] = position.y; - const rwi = model._interactor; - if (model.currentImageProperty) { - const size = rwi.getView().getViewportSize(renderer); - const mWindow = model.windowLevelInitial[0]; - const level = model.windowLevelInitial[1]; - - // Compute normalized delta - let dx = (model.windowLevelCurrentPosition[0] - model.windowLevelStartPosition[0]) * 4.0 / size[0]; - let dy = (model.windowLevelStartPosition[1] - model.windowLevelCurrentPosition[1]) * 4.0 / size[1]; - - // Scale by current values - if (Math.abs(mWindow) > 0.01) { - dx *= mWindow; - } else { - dx *= mWindow < 0 ? -0.01 : 0.01; - } - if (Math.abs(level) > 0.01) { - dy *= level; - } else { - dy *= level < 0 ? -0.01 : 0.01; - } - - // Abs so that direction does not flip - if (mWindow < 0.0) { - dx *= -1; - } - if (level < 0.0) { - dy *= -1; - } - - // Compute new mWindow level - let newWindow = dx + mWindow; - const newLevel = level - dy; - if (newWindow < 0.01) { - newWindow = 0.01; - } - model.currentImageProperty.setColorWindow(newWindow); - model.currentImageProperty.setColorLevel(newLevel); - } - }; - - //---------------------------------------------------------------------------- - publicAPI.slice = (renderer, position) => { - const rwi = model._interactor; - const dy = position.y - model.lastSlicePosition; - const camera = renderer.getActiveCamera(); - const range = camera.getClippingRange(); - let distance = camera.getDistance(); - - // scale the interaction by the height of the viewport - let viewportHeight = 0.0; - if (camera.getParallelProjection()) { - viewportHeight = 2.0 * camera.getParallelScale(); - } else { - const angle = radiansFromDegrees(camera.getViewAngle()); - viewportHeight = 2.0 * distance * Math.tan(0.5 * angle); - } - const size = rwi.getView().getSize(); - const delta = dy * viewportHeight / size[1]; - distance += delta; - - // clamp the distance to the clipping range - if (distance < range[0]) { - distance = range[0] + viewportHeight * 1e-3; - } - if (distance > range[1]) { - distance = range[1] - viewportHeight * 1e-3; - } - camera.setDistance(distance); - model.lastSlicePosition = position.y; - }; - - //---------------------------------------------------------------------------- - // This is a way of dealing with images as if they were layers. - // It looks through the renderer's list of props and sets the - // interactor ivars from the Nth image that it finds. You can - // also use negative numbers, i.e. -1 will return the last image, - // -2 will return the second-to-last image, etc. - publicAPI.setCurrentImageNumber = i => { - if (i === null) { - return; - } - const renderer = model._interactor.getCurrentRenderer(); - if (!renderer) { - return; - } - model.currentImageNumber = i; - function propMatch(j, prop, targetIndex) { - return j === targetIndex && prop.getNestedPickable(); - } - const props = renderer.getViewProps().filter(prop => prop.isA('vtkImageSlice')); - let targetIndex = i; - if (i < 0) { - targetIndex += props.length; - } - const imageProp = props.find((prop, index) => propMatch(index, prop, targetIndex)); - if (imageProp) { - publicAPI.setCurrentImageProperty(imageProp.getProperty()); - } - }; - - //---------------------------------------------------------------------------- - publicAPI.setCurrentImageProperty = imageProperty => { - model.currentImageProperty = imageProperty; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - windowLevelStartPosition: [0, 0], - windowLevelCurrentPosition: [0, 0], - lastSlicePosition: 0, - windowLevelInitial: [1.0, 0.5], - // currentImageProperty: null, - currentImageNumber: -1, - interactionMode: 'IMAGE2D', - xViewRightVector: [0, 1, 0], - xViewUpVector: [0, 0, -1], - yViewRightVector: [1, 0, 0], - yViewUpVector: [0, 0, -1], - zViewRightVector: [1, 0, 0], - zViewUpVector: [0, 1, 0] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkInteractorStyleTrackballCamera.extend(publicAPI, model, initialValues); - - // Create get-set macros - macro.setGet(publicAPI, model, ['interactionMode']); - macro.get(publicAPI, model, ['currentImageProperty']); - - // For more macro methods, see "Sources/macros.js" - - // Object specific methods - vtkInteractorStyleImage(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkInteractorStyleImage'); - -// ---------------------------------------------------------------------------- - -var vtkInteractorStyleImage$1 = { - newInstance, - extend -}; - -export { vtkInteractorStyleImage$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleMPRSlice.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleMPRSlice.js deleted file mode 100644 index 1eceb521..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleMPRSlice.js +++ /dev/null @@ -1,241 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { l as normalize, E as areEquals, f as distance2BetweenPoints } from '../../Common/Core/Math/index.js'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; -import vtkInteractorStyleManipulator from './InteractorStyleManipulator.js'; -import vtkMouseCameraTrackballRotateManipulator from '../Manipulators/MouseCameraTrackballRotateManipulator.js'; -import vtkMouseCameraTrackballPanManipulator from '../Manipulators/MouseCameraTrackballPanManipulator.js'; -import vtkMouseCameraTrackballZoomManipulator from '../Manipulators/MouseCameraTrackballZoomManipulator.js'; -import vtkMouseRangeManipulator from '../Manipulators/MouseRangeManipulator.js'; -import { mat4 } from 'gl-matrix'; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- - -function clamp(value, min, max) { - if (value < min) { - return min; - } - if (value > max) { - return max; - } - return value; -} - -// ---------------------------------------------------------------------------- -// vtkInteractorStyleMPRSlice methods -// ---------------------------------------------------------------------------- - -function vtkInteractorStyleMPRSlice(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkInteractorStyleMPRSlice'); - model.trackballManipulator = vtkMouseCameraTrackballRotateManipulator.newInstance({ - button: 1 - }); - model.panManipulator = vtkMouseCameraTrackballPanManipulator.newInstance({ - button: 1, - shift: true - }); - model.zoomManipulator = vtkMouseCameraTrackballZoomManipulator.newInstance({ - button: 3 - }); - model.scrollManipulator = vtkMouseRangeManipulator.newInstance({ - scrollEnabled: true, - dragEnabled: false - }); - - // cache for sliceRange - const cache = { - sliceNormal: [0, 0, 0], - sliceRange: [0, 0] - }; - let cameraSub = null; - function updateScrollManipulator() { - const range = publicAPI.getSliceRange(); - model.scrollManipulator.removeScrollListener(); - model.scrollManipulator.setScrollListener(range[0], range[1], 1, publicAPI.getSlice, publicAPI.setSlice); - } - function setManipulators() { - publicAPI.removeAllMouseManipulators(); - publicAPI.addMouseManipulator(model.trackballManipulator); - publicAPI.addMouseManipulator(model.panManipulator); - publicAPI.addMouseManipulator(model.zoomManipulator); - publicAPI.addMouseManipulator(model.scrollManipulator); - updateScrollManipulator(); - } - const superSetInteractor = publicAPI.setInteractor; - publicAPI.setInteractor = interactor => { - superSetInteractor(interactor); - if (cameraSub) { - cameraSub.unsubscribe(); - cameraSub = null; - } - if (interactor) { - const renderer = interactor.getCurrentRenderer(); - const camera = renderer.getActiveCamera(); - cameraSub = camera.onModified(() => { - updateScrollManipulator(); - publicAPI.modified(); - }); - } - }; - publicAPI.handleMouseMove = macro.chain(publicAPI.handleMouseMove, () => { - const renderer = model._interactor.getCurrentRenderer(); - const camera = renderer.getActiveCamera(); - const dist = camera.getDistance(); - camera.setClippingRange(dist, dist + 0.1); - }); - const superSetVolumeMapper = publicAPI.setVolumeMapper; - publicAPI.setVolumeMapper = mapper => { - if (superSetVolumeMapper(mapper)) { - const renderer = model._interactor.getCurrentRenderer(); - const camera = renderer.getActiveCamera(); - if (mapper) { - // prevent zoom manipulator from messing with our focal point - camera.setFreezeFocalPoint(true); - publicAPI.setSliceNormal(...publicAPI.getSliceNormal()); - } else { - camera.setFreezeFocalPoint(false); - } - } - }; - publicAPI.getSlice = () => { - const renderer = model._interactor.getCurrentRenderer(); - const camera = renderer.getActiveCamera(); - const sliceNormal = publicAPI.getSliceNormal(); - - // Get rotation matrix from normal to +X (since bounds is aligned to XYZ) - const transform = vtkMatrixBuilder.buildFromDegree().identity().rotateFromDirections(sliceNormal, [1, 0, 0]); - const fp = camera.getFocalPoint(); - transform.apply(fp); - return fp[0]; - }; - publicAPI.setSlice = slice => { - const renderer = model._interactor.getCurrentRenderer(); - const camera = renderer.getActiveCamera(); - if (model.volumeMapper) { - const range = publicAPI.getSliceRange(); - const clampedSlice = clamp(slice, ...range); - const center = model.volumeMapper.getCenter(); - const distance = camera.getDistance(); - const dop = camera.getDirectionOfProjection(); - normalize(dop); - const midPoint = (range[1] + range[0]) / 2.0; - const zeroPoint = [center[0] - dop[0] * midPoint, center[1] - dop[1] * midPoint, center[2] - dop[2] * midPoint]; - const slicePoint = [zeroPoint[0] + dop[0] * clampedSlice, zeroPoint[1] + dop[1] * clampedSlice, zeroPoint[2] + dop[2] * clampedSlice]; - const newPos = [slicePoint[0] - dop[0] * distance, slicePoint[1] - dop[1] * distance, slicePoint[2] - dop[2] * distance]; - camera.setPosition(...newPos); - camera.setFocalPoint(...slicePoint); - } - }; - publicAPI.getSliceRange = () => { - if (model.volumeMapper) { - const sliceNormal = publicAPI.getSliceNormal(); - if (areEquals(sliceNormal, cache.sliceNormal)) { - return cache.sliceRange; - } - - // Get rotation matrix from normal to +X (since bounds is aligned to XYZ) - const sliceOrientation = vtkMatrixBuilder.buildFromDegree().identity().rotateFromDirections(sliceNormal, [1, 0, 0]); - const imageAlongSliceNormal = mat4.create(); - mat4.multiply(imageAlongSliceNormal, sliceOrientation.getMatrix(), model.volumeMapper.getInputData().getIndexToWorld()); - - // Transform the 8 corners of the input data's bounding box - // to rotate into the slice plane space without the intermediate - // axis-aligned box (provided by getBounds) which would grow the bounds. - const transformedBounds = vtkBoundingBox.transformBounds(model.volumeMapper.getInputData().getSpatialExtent(), imageAlongSliceNormal); - - // range is now maximum X distance - const minX = transformedBounds[0]; - const maxX = transformedBounds[1]; - cache.sliceNormal = sliceNormal; - cache.sliceRange = [minX, maxX]; - return cache.sliceRange; - } - return [0, 0]; - }; - - // Slice normal is just camera DOP - publicAPI.getSliceNormal = () => { - if (model.volumeMapper) { - const renderer = model._interactor.getCurrentRenderer(); - const camera = renderer.getActiveCamera(); - return camera.getDirectionOfProjection(); - } - return [0, 0, 0]; - }; - - // in world space - publicAPI.setSliceNormal = function () { - const renderer = model._interactor.getCurrentRenderer(); - const camera = renderer.getActiveCamera(); - for (var _len = arguments.length, normal = new Array(_len), _key = 0; _key < _len; _key++) { - normal[_key] = arguments[_key]; - } - normalize(normal); - if (model.volumeMapper) { - const bounds = model.volumeMapper.getBounds(); - - // diagonal will be used as "width" of camera scene - const diagonal = Math.sqrt(distance2BetweenPoints([bounds[0], bounds[2], bounds[4]], [bounds[1], bounds[3], bounds[5]])); - - // center will be used as initial focal point - const center = [(bounds[0] + bounds[1]) / 2.0, (bounds[2] + bounds[3]) / 2.0, (bounds[4] + bounds[5]) / 2.0]; - const angle = 90; - // distance from camera to focal point - const dist = diagonal / (2 * Math.tan(angle / 360 * Math.PI)); - const cameraPos = [center[0] - normal[0] * dist, center[1] - normal[1] * dist, center[2] - normal[2] * dist]; - - // set viewUp based on DOP rotation - const oldDop = camera.getDirectionOfProjection(); - const transform = vtkMatrixBuilder.buildFromDegree().identity().rotateFromDirections(oldDop, normal); - const viewUp = [0, 1, 0]; - transform.apply(viewUp); - camera.setPosition(...cameraPos); - camera.setDistance(dist); - // should be set after pos and distance - camera.setDirectionOfProjection(...normal); - camera.setViewUp(...viewUp); - camera.setViewAngle(angle); - camera.setClippingRange(dist, dist + 0.1); - publicAPI.setCenterOfRotation(center); - } - }; - setManipulators(); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkInteractorStyleManipulator.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['volumeMapper']); - - // Object specific methods - vtkInteractorStyleMPRSlice(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkInteractorStyleMPRSlice'); - -// ---------------------------------------------------------------------------- - -var vtkInteractorStyleMPRSlice$1 = { - newInstance, - extend -}; - -export { vtkInteractorStyleMPRSlice$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleManipulator.d.ts deleted file mode 100644 index ac5717f3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleManipulator.d.ts +++ /dev/null @@ -1,349 +0,0 @@ -import vtkCompositeGestureManipulator from './../Manipulators/CompositeGestureManipulator'; -import vtkCompositeKeyboardManipulator from './../Manipulators/CompositeKeyboardManipulator'; -import vtkCompositeMouseManipulator from './../Manipulators/CompositeMouseManipulator'; -import vtkCompositeVRManipulator from './../Manipulators/CompositeVRManipulator'; -import vtkInteractorStyle from './../../Rendering/Core/InteractorStyle'; -import { - Device, - Input, - MouseButton, -} from './../../Rendering/Core/RenderWindowInteractor/Constants'; -import { Nullable, Vector3 } from './../../types'; - -export interface vtkInteractorStyleManipulator extends vtkInteractorStyle { - /** - * Remove all manipulators. - */ - removeAllManipulators(): void; - - /** - * Remove mouse manipulators. - */ - removeAllMouseManipulators(): void; - - /** - * Remove keyboard manipulators. - */ - removeAllKeyboardManipulators(): void; - - /** - * Remove VR manipulators. - */ - removeAllVRManipulators(): void; - - /** - * Remove gesture manipulators. - */ - removeAllGestureManipulators(): void; - - /** - * Adds a mouse manipulator. - * @param manipulator the manipulator to add - * @returns whether the manipulator has been added - */ - addMouseManipulator(manipulator: vtkCompositeMouseManipulator): boolean; - - /** - * Adds a keyboard manipulator. - * @param manipulator the manipulator to add - * @returns whether the manipulator has been added - */ - addKeyboardManipulator(manipulator: vtkCompositeKeyboardManipulator): boolean; - - /** - * Adds a VR manipulator. - * @param manipulator the manipulator to add - * @returns whether the manipulator has been added - */ - addVRManipulator(manipulator: vtkCompositeVRManipulator): boolean; - - /** - * Adds a gesture manipulator. - * @param manipulator the manipulator to add - * @returns whether the manipulator has been added - */ - addGestureManipulator(manipulator: vtkCompositeGestureManipulator): boolean; - - /** - * Removes a mouse manipulator. - * @param manipulator the manipulator to remove - */ - removeMouseManipulator(manipulator: vtkCompositeMouseManipulator): void; - - /** - * Removes a keyboard manipulator. - * @param manipulator the manipulator to remove - */ - removeKeyboardManipulator(manipulator: vtkCompositeKeyboardManipulator): void; - - /** - * Removes a VR manipulator. - * @param manipulator the manipulator to remove - */ - removeVRManipulator(manipulator: vtkCompositeVRManipulator): void; - - /** - * Removes a gesture manipulator. - * @param manipulator the manipulator to remove - */ - removeGestureManipulator(manipulator: vtkCompositeGestureManipulator): void; - - /** - * Gets the number of mouse manipulators. - */ - getNumberOfMouseManipulators(): number; - - /** - * Gets the number of keyboard manipulators. - */ - getNumberOfKeyboardManipulators(): number; - - /** - * Gets the number of VR manipulators. - */ - getNumberOfVRManipulators(): number; - - /** - * Gets the number of gesture manipulators. - */ - getNumberOfGestureManipulators(): number; - - /** - * Resets/clears the current manipulator. - */ - resetCurrentManipulator(): void; - - /** - * Finds a mouse manipulator with a given control set. - * @param button which button - * @param shift shift enabled - * @param scroll scroll enabled - * @param alt alt enabled - */ - findMouseManipulator( - button: MouseButton, - shift: boolean, - scroll: boolean, - alt: boolean - ): Nullable; - - /** - * Finds a VR manipulator with a given device + input. - * @param device - * @param input - */ - findVRManipulator( - device: Device, - input: Input - ): Nullable; - - /** - * Handles a left button press event. - * @param callData event data - */ - handleLeftButtonPress(callData: unknown): void; - - /** - * Handles a middle button press event. - * @param callData event data - */ - handleMiddleButtonPress(callData: unknown): void; - - /** - * Handles a right button press event. - * @param callData event data - */ - handleRightButtonPress(callData: unknown): void; - - /** - * Handles a left button release event. - * @param callData event data - */ - handleLeftButtonRelease(callData: unknown): void; - - /** - * Handles a middle button release event. - * @param callData event data - */ - handleMiddleButtonRelease(callData: unknown): void; - - /** - * Handles a right button release event. - * @param callData event data - */ - handleRightButtonRelease(callData: unknown): void; - - /** - * Handles the start of a wheel event. - * @param callData event data - */ - handleStartMouseWheel(callData: unknown): void; - - /** - * Handles a wheel event. - * @param callData event data - */ - handleMouseWheel(callData: unknown): void; - - /** - * Handles the end of a wheel event. - * @param callData event data - */ - handleEndMouseWheel(callData: unknown): void; - - /** - * Handles a mouse move. - * @param callData event data - */ - handleMouseMove(callData: unknown): void; - - /** - * Handles a 3D button event. - * @param callData event data - */ - handleButton3D(ed: unknown): void; - - /** - * Handles a 3D move event. - * @param ed event data - */ - handleMove3D(ed: unknown): void; - - /** - * Handles a keypress. - * @param callData event data - */ - handleKeyPress(callData: unknown): void; - - /** - * Handles a keydown event. - * @param callData event data - */ - handleKeyDown(callData: unknown): void; - - /** - * Handles a keyup event. - * @param callData event data - */ - handleKeyUp(callData: unknown): void; - - /** - * Handles the start of a pinch gesture. - * @param callData event data - */ - handleStartPinch(callData: unknown): void; - - /** - * Handles the end of a pinch gesture. - * @param callData event data - */ - handleEndPinch(callData: unknown): void; - - /** - * Handles the start of a rotate gesture. - * @param callData event data - */ - handleStartRotate(callData: unknown): void; - - /** - * Handles the end of a rotate gesture. - * @param callData event data - */ - handleEndRotate(callData: unknown): void; - - /** - * Handles the start of a pan gesture. - * @param callData event data - */ - handleStartPan(callData: unknown): void; - - /** - * Handles the end of a pan gesture. - * @param callData event data - */ - handleEndPan(callData: unknown): void; - - /** - * Handles a pinch gesture. - * @param callData event data - */ - handlePinch(callData: unknown): void; - - /** - * Handles a rotate gesture. - * @param callData event data - */ - handleRotate(callData: unknown): void; - - /** - * Handles a pan gesture. - * @param callData event data - */ - handlePan(callData: unknown): void; - - /** - * Handles a button down event. - * @param button which button - * @param callData event data - */ - onButtonDown(button: MouseButton, callData: unknown): void; - - /** - * Handles a button up event. - * @param button which button - */ - onButtonUp(button: MouseButton): void; - - /** - * Sets the rotation factor. - * @param factor rotation factor - */ - setRotationFactor(factor: number): boolean; - - /** - * Gets the rotation factor. - */ - getRotationFactor(): number; - - getMouseManipulators(): vtkCompositeMouseManipulator[]; - getMouseManipulators(): vtkCompositeMouseManipulator[]; - getMouseManipulators(): vtkCompositeMouseManipulator[]; - getMouseManipulators(): vtkCompositeMouseManipulator[]; - - /** - * Sets the center of rotation - * @param {Number} x - * @param {Number} y - * @param {Number} z - */ - setCenterOfRotation(x: number, y: number, z: number): boolean; - setCenterOfRotation(xyz: Vector3): boolean; - - /** - * Gets the center of rotation. - * @returns {Vector3} - */ - getCenterOfRotation(): Vector3; -} - -export interface IInteractorStyleManipulatorInitialValues { - centerOfRotation?: Vector3; - rotationFactor?: number; -} - -export function newInstance( - initialValues?: IInteractorStyleManipulatorInitialValues -): vtkInteractorStyleManipulator; - -export function extend( - publicAPI: object, - model: object, - initialValues?: IInteractorStyleManipulatorInitialValues -): void; - -export const vtkInteractorStyleManipulator: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkInteractorStyleManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleManipulator.js deleted file mode 100644 index 08cabb75..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleManipulator.js +++ /dev/null @@ -1,640 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { MouseButton } from '../../Rendering/Core/RenderWindowInteractor/Constants.js'; -import vtkInteractorStyle from '../../Rendering/Core/InteractorStyle.js'; - -const { - vtkDebugMacro -} = macro; -const { - States -} = vtkInteractorStyle; - -// ---------------------------------------------------------------------------- -// Event Types -// ---------------------------------------------------------------------------- - -const START_INTERACTION_EVENT = { - type: 'StartInteractionEvent' -}; -const INTERACTION_EVENT = { - type: 'InteractionEvent' -}; -const END_INTERACTION_EVENT = { - type: 'EndInteractionEvent' -}; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -function translateCamera(renderer, rwi, toX, toY, fromX, fromY) { - const cam = renderer.getActiveCamera(); - let viewFocus = cam.getFocalPoint(); - viewFocus = rwi.getInteractorStyle().computeWorldToDisplay(renderer, viewFocus[0], viewFocus[1], viewFocus[2]); - const focalDepth = viewFocus[2]; - const newPickPoint = rwi.getInteractorStyle().computeDisplayToWorld(renderer, toX, toY, focalDepth); - const oldPickPoint = rwi.getInteractorStyle().computeDisplayToWorld(renderer, fromX, fromY, focalDepth); - - // camera motion is reversed - const motionVector = [oldPickPoint[0] - newPickPoint[0], oldPickPoint[1] - newPickPoint[1], oldPickPoint[2] - newPickPoint[2]]; - viewFocus = cam.getFocalPoint(); - const viewPoint = cam.getPosition(); - cam.setFocalPoint(motionVector[0] + viewFocus[0], motionVector[1] + viewFocus[1], motionVector[2] + viewFocus[2]); - cam.setPosition(motionVector[0] + viewPoint[0], motionVector[1] + viewPoint[1], motionVector[2] + viewPoint[2]); -} -function dollyToPosition(fact, position, renderer, rwi) { - const cam = renderer.getActiveCamera(); - if (cam.getParallelProjection()) { - // Zoom relatively to the cursor - const view = rwi.getView(); - const aSize = view.getViewportSize(renderer); - const viewport = renderer.getViewport(); - const viewSize = view.getSize(); - const w = aSize[0]; - const h = aSize[1]; - const x0 = w / 2; - const y0 = h / 2; - const x1 = position.x - viewport[0] * viewSize[0]; - const y1 = position.y - viewport[1] * viewSize[1]; - translateCamera(renderer, rwi, x0, y0, x1, y1); - cam.setParallelScale(cam.getParallelScale() / fact); - translateCamera(renderer, rwi, x1, y1, x0, y0); - } else { - // Zoom relatively to the cursor position - - // Move focal point to cursor position - let viewFocus = cam.getFocalPoint(); - const norm = cam.getViewPlaneNormal(); - viewFocus = rwi.getInteractorStyle().computeWorldToDisplay(renderer, viewFocus[0], viewFocus[1], viewFocus[2]); - const newFp = rwi.getInteractorStyle().computeDisplayToWorld(renderer, position.x, position.y, viewFocus[2]); - cam.setFocalPoint(newFp[0], newFp[1], newFp[2]); - - // Move camera in/out along projection direction - cam.dolly(fact); - renderer.resetCameraClippingRange(); - - // Find new focal point - const newCameraPos = cam.getPosition(); - viewFocus = cam.getFocalPoint(); - const newPoint = [0, 0, 0]; - let t = norm[0] * (viewFocus[0] - newCameraPos[0]) + norm[1] * (viewFocus[1] - newCameraPos[1]) + norm[2] * (viewFocus[2] - newCameraPos[2]); - t /= norm[0] ** 2 + norm[1] ** 2 + norm[2] ** 2; - newPoint[0] = newCameraPos[0] + norm[0] * t; - newPoint[1] = newCameraPos[1] + norm[1] * t; - newPoint[2] = newCameraPos[2] + norm[2] * t; - cam.setFocalPoint(newPoint[0], newPoint[1], newPoint[2]); - renderer.resetCameraClippingRange(); - } -} -function dollyByFactor(interactor, renderer, factor) { - if (Number.isNaN(factor)) { - return; - } - const camera = renderer.getActiveCamera(); - if (camera.getParallelProjection()) { - camera.setParallelScale(camera.getParallelScale() / factor); - } else { - camera.dolly(factor); - renderer.resetCameraClippingRange(); - } - if (interactor.getLightFollowCamera()) { - renderer.updateLightsGeometryToFollowCamera(); - } -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = { - dollyToPosition, - translateCamera, - dollyByFactor -}; - -// ---------------------------------------------------------------------------- -// vtkInteractorStyleManipulator methods -// ---------------------------------------------------------------------------- - -function vtkInteractorStyleManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkInteractorStyleManipulator'); - model.currentVRManipulators = new Map(); - model.mouseManipulators = []; - model.keyboardManipulators = []; - model.vrManipulators = []; - model.gestureManipulators = []; - model.currentManipulator = null; - model.currentWheelManipulator = null; - model.centerOfRotation = [0, 0, 0]; - model.rotationFactor = 1; - - //------------------------------------------------------------------------- - publicAPI.removeAllManipulators = () => { - publicAPI.removeAllMouseManipulators(); - publicAPI.removeAllKeyboardManipulators(); - publicAPI.removeAllVRManipulators(); - publicAPI.removeAllGestureManipulators(); - }; - - //------------------------------------------------------------------------- - publicAPI.removeAllMouseManipulators = () => { - model.mouseManipulators = []; - }; - - //------------------------------------------------------------------------- - publicAPI.removeAllKeyboardManipulators = () => { - model.keyboardManipulators = []; - }; - - //------------------------------------------------------------------------- - publicAPI.removeAllVRManipulators = () => { - model.vrManipulators = []; - }; - - //------------------------------------------------------------------------- - publicAPI.removeAllGestureManipulators = () => { - model.gestureManipulators = []; - }; - - //------------------------------------------------------------------------- - const removeManipulator = (manipulator, list) => { - const index = list.indexOf(manipulator); - if (index === -1) { - return false; - } - list.splice(index, 1); - publicAPI.modified(); - return true; - }; - - //------------------------------------------------------------------------- - publicAPI.removeMouseManipulator = manipulator => removeManipulator(manipulator, model.mouseManipulators); - - //------------------------------------------------------------------------- - publicAPI.removeKeyboardManipulator = manipulator => removeManipulator(manipulator, model.keyboardManipulators); - - //------------------------------------------------------------------------- - publicAPI.removeVRManipulator = manipulator => removeManipulator(manipulator, model.vrManipulators); - - //------------------------------------------------------------------------- - publicAPI.removeGestureManipulator = manipulator => removeManipulator(manipulator, model.gestureManipulators); - - //------------------------------------------------------------------------- - const addManipulator = (manipulator, list) => { - const index = list.indexOf(manipulator); - if (index !== -1) { - return false; - } - list.push(manipulator); - publicAPI.modified(); - return true; - }; - - //------------------------------------------------------------------------- - publicAPI.addMouseManipulator = manipulator => addManipulator(manipulator, model.mouseManipulators); - - //------------------------------------------------------------------------- - publicAPI.addKeyboardManipulator = manipulator => addManipulator(manipulator, model.keyboardManipulators); - - //------------------------------------------------------------------------- - publicAPI.addVRManipulator = manipulator => addManipulator(manipulator, model.vrManipulators); - - //------------------------------------------------------------------------- - publicAPI.addGestureManipulator = manipulator => addManipulator(manipulator, model.gestureManipulators); - - //------------------------------------------------------------------------- - publicAPI.getNumberOfMouseManipulators = () => model.mouseManipulators.length; - - //------------------------------------------------------------------------- - publicAPI.getNumberOfKeyboardManipulators = () => model.keyboardManipulators.length; - - //------------------------------------------------------------------------- - publicAPI.getNumberOfVRManipulators = () => model.vrManipulators.length; - - //------------------------------------------------------------------------- - publicAPI.getNumberOfGestureManipulators = () => model.gestureManipulators.length; - - //------------------------------------------------------------------------- - publicAPI.resetCurrentManipulator = () => { - model.currentManipulator = null; - model.currentWheelManipulator = null; - }; - - //------------------------------------------------------------------------- - // Mouse - //------------------------------------------------------------------------- - publicAPI.handleLeftButtonPress = callData => { - model.previousPosition = callData.position; - publicAPI.onButtonDown(MouseButton.LeftButton, callData); - }; - - //------------------------------------------------------------------------- - publicAPI.handleMiddleButtonPress = callData => { - model.previousPosition = callData.position; - publicAPI.onButtonDown(MouseButton.MiddleButton, callData); - }; - - //------------------------------------------------------------------------- - publicAPI.handleRightButtonPress = callData => { - model.previousPosition = callData.position; - publicAPI.onButtonDown(MouseButton.RightButton, callData); - }; - - //------------------------------------------------------------------------- - publicAPI.handleButton3D = ed => { - if (!ed) { - return; - } - - // Look for a matching 3D camera interactor. - const manipulator = publicAPI.findVRManipulator(ed.device, ed.input, ed.pressed); - if (manipulator) { - // register the manipulator for this device - model.currentVRManipulators.set(ed.device, manipulator); - manipulator.onButton3D(publicAPI, model.getRenderer(ed), model.state, ed); - if (ed.pressed) { - publicAPI.startCameraPose(); - } else { - model.currentVRManipulators.delete(ed.device); - - // make sure we don't end camera pose if other VR manipulators are currently interacting - if (model.currentVRManipulators.size === 0) { - publicAPI.endCameraPose(); - } - } - } else { - vtkDebugMacro('No manipulator found'); - } - }; - - //------------------------------------------------------------------------- - publicAPI.handleMove3D = ed => { - const manipulator = model.currentVRManipulators.get(ed.device); - if (manipulator && model.state === States.IS_CAMERA_POSE) { - manipulator.onMove3D(publicAPI, model.getRenderer(ed), model.state, ed); - } - }; - - //------------------------------------------------------------------------- - publicAPI.onButtonDown = (button, callData) => { - // Must not be processing an interaction to start another. - if (model.currentManipulator) { - return; - } - - // Look for a matching camera interactor. - model.currentManipulator = publicAPI.findMouseManipulator(button, callData.shiftKey, callData.controlKey, callData.altKey); - if (model.currentManipulator) { - if (model.currentManipulator.setCenter) { - model.currentManipulator.setCenter(model.centerOfRotation); - } - if (model.currentManipulator.setRotationFactor) { - model.currentManipulator.setRotationFactor(model.rotationFactor); - } - model.currentManipulator.startInteraction(); - model.currentManipulator.onButtonDown(model._interactor, model.getRenderer(callData), callData.position); - model._interactor.requestAnimation(publicAPI.onButtonDown); - publicAPI.invokeStartInteractionEvent(START_INTERACTION_EVENT); - } else { - vtkDebugMacro('No manipulator found'); - } - }; - - //------------------------------------------------------------------------- - publicAPI.findMouseManipulator = (button, shift, control, alt) => { - // Look for a matching camera manipulator - let manipulator = null; - let count = model.mouseManipulators.length; - while (count--) { - const manip = model.mouseManipulators[count]; - if (manip && manip.getButton() === button && manip.getShift() === shift && manip.getControl() === control && manip.getAlt() === alt && manip.isDragEnabled()) { - manipulator = manip; - } - } - return manipulator; - }; - - //------------------------------------------------------------------------- - publicAPI.findVRManipulator = (device, input) => { - // Look for a matching camera manipulator - let manipulator = null; - let count = model.vrManipulators.length; - while (count--) { - const manip = model.vrManipulators[count]; - if (manip && manip.getDevice() === device && manip.getInput() === input) { - manipulator = manip; - } - } - return manipulator; - }; - - //------------------------------------------------------------------------- - publicAPI.handleLeftButtonRelease = () => { - publicAPI.onButtonUp(MouseButton.LeftButton); - }; - - //------------------------------------------------------------------------- - publicAPI.handleMiddleButtonRelease = () => { - publicAPI.onButtonUp(MouseButton.MiddleButton); - }; - - //------------------------------------------------------------------------- - publicAPI.handleRightButtonRelease = () => { - publicAPI.onButtonUp(MouseButton.RightButton); - }; - - //------------------------------------------------------------------------- - publicAPI.onButtonUp = button => { - if (!model.currentManipulator) { - return; - } - if (model.currentManipulator.getButton && model.currentManipulator.getButton() === button) { - model.currentManipulator.onButtonUp(model._interactor); - model.currentManipulator.endInteraction(); - if (!model._interactor.isPointerLocked()) { - model.currentManipulator = null; - } - model._interactor.cancelAnimation(publicAPI.onButtonDown); - publicAPI.invokeEndInteractionEvent(END_INTERACTION_EVENT); - } - }; - - //------------------------------------------------------------------------- - publicAPI.handleEndPointerLock = () => { - model.currentManipulator = null; - }; - - //------------------------------------------------------------------------- - publicAPI.handleStartMouseWheel = callData => { - // Must not be processing a wheel interaction to start another. - if (model.currentWheelManipulator) { - return; - } - let manipulator = null; - let count = model.mouseManipulators.length; - while (count--) { - const manip = model.mouseManipulators[count]; - if (manip && manip.isScrollEnabled() && manip.getShift() === callData.shiftKey && manip.getControl() === callData.controlKey && manip.getAlt() === callData.altKey) { - manipulator = manip; - } - } - if (manipulator) { - model.currentWheelManipulator = manipulator; - model.currentWheelManipulator.onStartScroll(model._interactor, model.getRenderer(callData), callData.spinY); - model.currentWheelManipulator.startInteraction(); - model._interactor.requestAnimation(publicAPI.handleStartMouseWheel); - publicAPI.invokeStartInteractionEvent(START_INTERACTION_EVENT); - } else { - vtkDebugMacro('No manipulator found'); - } - }; - - //------------------------------------------------------------------------- - publicAPI.handleEndMouseWheel = () => { - if (!model.currentWheelManipulator) { - return; - } - if (model.currentWheelManipulator.onEndScroll) { - model.currentWheelManipulator.onEndScroll(model._interactor); - model.currentWheelManipulator.endInteraction(); - model.currentWheelManipulator = null; - model._interactor.cancelAnimation(publicAPI.handleStartMouseWheel); - publicAPI.invokeEndInteractionEvent(END_INTERACTION_EVENT); - } - }; - - //------------------------------------------------------------------------- - publicAPI.handleMouseWheel = callData => { - if (model.currentWheelManipulator && model.currentWheelManipulator.onScroll) { - model.currentWheelManipulator.onScroll(model._interactor, model.getRenderer(callData), callData.spinY, model.cachedMousePosition); - publicAPI.invokeInteractionEvent(INTERACTION_EVENT); - } - }; - - //------------------------------------------------------------------------- - publicAPI.handleMouseMove = callData => { - model.cachedMousePosition = callData.position; - if (model.currentManipulator && model.currentManipulator.onMouseMove) { - model.currentManipulator.onMouseMove(model._interactor, model.getRenderer(callData), callData.position); - publicAPI.invokeInteractionEvent(INTERACTION_EVENT); - } - }; - - //------------------------------------------------------------------------- - // Keyboard - //------------------------------------------------------------------------- - publicAPI.handleKeyPress = callData => { - model.keyboardManipulators.filter(m => m.onKeyPress).forEach(manipulator => { - manipulator.onKeyPress(model._interactor, model.getRenderer(callData), callData.key); - publicAPI.invokeInteractionEvent(INTERACTION_EVENT); - }); - }; - - //------------------------------------------------------------------------- - publicAPI.handleKeyDown = callData => { - model.keyboardManipulators.filter(m => m.onKeyDown).forEach(manipulator => { - manipulator.onKeyDown(model._interactor, model.getRenderer(callData), callData.key); - publicAPI.invokeInteractionEvent(INTERACTION_EVENT); - }); - }; - - //------------------------------------------------------------------------- - publicAPI.handleKeyUp = callData => { - model.keyboardManipulators.filter(m => m.onKeyUp).forEach(manipulator => { - manipulator.onKeyUp(model._interactor, model.getRenderer(callData), callData.key); - publicAPI.invokeInteractionEvent(INTERACTION_EVENT); - }); - }; - - //------------------------------------------------------------------------- - // Gesture - //------------------------------------------------------------------------- - - publicAPI.handleStartPinch = callData => { - publicAPI.startDolly(); - let count = model.gestureManipulators.length; - while (count--) { - const manipulator = model.gestureManipulators[count]; - if (manipulator && manipulator.isPinchEnabled()) { - manipulator.onStartPinch(model._interactor, callData.scale); - manipulator.startInteraction(); - } - } - model._interactor.requestAnimation(publicAPI.handleStartPinch); - publicAPI.invokeStartInteractionEvent(START_INTERACTION_EVENT); - }; - - //-------------------------------------------------------------------------- - publicAPI.handleEndPinch = () => { - publicAPI.endDolly(); - let count = model.gestureManipulators.length; - while (count--) { - const manipulator = model.gestureManipulators[count]; - if (manipulator && manipulator.isPinchEnabled()) { - manipulator.onEndPinch(model._interactor); - manipulator.endInteraction(); - } - } - model._interactor.cancelAnimation(publicAPI.handleStartPinch); - publicAPI.invokeEndInteractionEvent(END_INTERACTION_EVENT); - }; - - //---------------------------------------------------------------------------- - publicAPI.handleStartRotate = callData => { - publicAPI.startRotate(); - let count = model.gestureManipulators.length; - while (count--) { - const manipulator = model.gestureManipulators[count]; - if (manipulator && manipulator.isRotateEnabled()) { - manipulator.onStartRotate(model._interactor, callData.rotation); - manipulator.startInteraction(); - } - } - model._interactor.requestAnimation(publicAPI.handleStartRotate); - publicAPI.invokeStartInteractionEvent(START_INTERACTION_EVENT); - }; - - //-------------------------------------------------------------------------- - publicAPI.handleEndRotate = () => { - publicAPI.endRotate(); - let count = model.gestureManipulators.length; - while (count--) { - const manipulator = model.gestureManipulators[count]; - if (manipulator && manipulator.isRotateEnabled()) { - manipulator.onEndRotate(model._interactor); - manipulator.endInteraction(); - } - } - model._interactor.cancelAnimation(publicAPI.handleStartRotate); - publicAPI.invokeEndInteractionEvent(END_INTERACTION_EVENT); - }; - - //---------------------------------------------------------------------------- - publicAPI.handleStartPan = callData => { - publicAPI.startPan(); - let count = model.gestureManipulators.length; - while (count--) { - const manipulator = model.gestureManipulators[count]; - if (manipulator && manipulator.isPanEnabled()) { - manipulator.onStartPan(model._interactor, callData.translation); - manipulator.startInteraction(); - } - } - model._interactor.requestAnimation(publicAPI.handleStartPan); - publicAPI.invokeStartInteractionEvent(START_INTERACTION_EVENT); - }; - - //-------------------------------------------------------------------------- - publicAPI.handleEndPan = () => { - publicAPI.endPan(); - let count = model.gestureManipulators.length; - while (count--) { - const manipulator = model.gestureManipulators[count]; - if (manipulator && manipulator.isPanEnabled()) { - manipulator.onEndPan(model._interactor); - manipulator.endInteraction(); - } - } - model._interactor.cancelAnimation(publicAPI.handleStartPan); - publicAPI.invokeEndInteractionEvent(END_INTERACTION_EVENT); - }; - - //---------------------------------------------------------------------------- - publicAPI.handlePinch = callData => { - let count = model.gestureManipulators.length; - let actionCount = 0; - while (count--) { - const manipulator = model.gestureManipulators[count]; - if (manipulator && manipulator.isPinchEnabled()) { - manipulator.onPinch(model._interactor, model.getRenderer(callData), callData.scale); - actionCount++; - } - } - if (actionCount) { - publicAPI.invokeInteractionEvent(INTERACTION_EVENT); - } - }; - - //---------------------------------------------------------------------------- - publicAPI.handlePan = callData => { - const renderer = model.getRenderer(callData); - let count = model.gestureManipulators.length; - let actionCount = 0; - while (count--) { - const manipulator = model.gestureManipulators[count]; - if (manipulator && manipulator.isPanEnabled()) { - manipulator.onPan(model._interactor, renderer, callData.translation); - actionCount++; - } - } - if (actionCount) { - publicAPI.invokeInteractionEvent(INTERACTION_EVENT); - } - }; - - //---------------------------------------------------------------------------- - publicAPI.handleRotate = callData => { - let count = model.gestureManipulators.length; - let actionCount = 0; - while (count--) { - const manipulator = model.gestureManipulators[count]; - if (manipulator && manipulator.isRotateEnabled()) { - manipulator.onRotate(model._interactor, model.getRenderer(callData), callData.rotation); - actionCount++; - } - } - if (actionCount) { - publicAPI.invokeInteractionEvent(INTERACTION_EVENT); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const defaultValues = initialValues => ({ - cachedMousePosition: null, - currentManipulator: null, - currentWheelManipulator: null, - // mouseManipulators: null, - // keyboardManipulators: null, - // vrManipulators: null, - // gestureManipulators: null, - centerOfRotation: [0, 0, 0], - rotationFactor: 1, - ...initialValues -}); - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - - // Inheritance - vtkInteractorStyle.extend(publicAPI, model, initialValues); - - // Create get-set macros - macro.setGet(publicAPI, model, ['rotationFactor']); - macro.get(publicAPI, model, ['mouseManipulators', 'keyboardManipulators', 'vrManipulators', 'gestureManipulators']); - macro.setGetArray(publicAPI, model, ['centerOfRotation'], 3); - - // Object specific methods - vtkInteractorStyleManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkInteractorStyleManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkInteractorStyleManipulator$1 = { - newInstance, - extend, - ...STATIC -}; - -export { STATIC, vtkInteractorStyleManipulator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleManipulator/Presets.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleManipulator/Presets.js deleted file mode 100644 index 6faed205..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleManipulator/Presets.js +++ /dev/null @@ -1,222 +0,0 @@ -import Manipulators from '../../Manipulators.js'; - -const MANIPULTOR_TYPES = { - slice: Manipulators.vtkMouseCameraSliceManipulator, - multiRotate: Manipulators.vtkMouseCameraTrackballMultiRotateManipulator, - pan: Manipulators.vtkMouseCameraTrackballPanManipulator, - roll: Manipulators.vtkMouseCameraTrackballRollManipulator, - rotate: Manipulators.vtkMouseCameraTrackballRotateManipulator, - axisRotate: Manipulators.vtkMouseCameraAxisRotateManipulator, - zoom: Manipulators.vtkMouseCameraTrackballZoomManipulator, - zoomToMouse: Manipulators.vtkMouseCameraTrackballZoomToMouseManipulator, - range: Manipulators.vtkMouseRangeManipulator, - vrPan: Manipulators.vtkVRButtonPanManipulator, - gestureCamera: Manipulators.vtkGestureCameraManipulator, - movement: Manipulators.vtkKeyboardCameraManipulator, - freeLook: Manipulators.vtkMouseCameraTrackballFirstPersonManipulator, - unicam: Manipulators.vtkMouseCameraUnicamManipulator, - unicamRotate: Manipulators.vtkMouseCameraUnicamRotateManipulator -}; -const STYLES = { - '3D': [{ - type: 'rotate' - }, { - type: 'pan', - options: { - shift: true - } - }, { - type: 'zoom', - options: { - control: true - } - }, { - type: 'zoom', - options: { - alt: true - } - }, { - type: 'zoom', - options: { - dragEnabled: false, - scrollEnabled: true - } - }, { - type: 'zoom', - options: { - button: 3 - } - }, { - type: 'roll', - options: { - shift: true, - control: true - } - }, { - type: 'roll', - options: { - shift: true, - alt: true - } - }, { - type: 'roll', - options: { - shift: true, - button: 3 - } - }, { - type: 'vrPan' - }, { - type: 'gestureCamera' - }], - '2D': [{ - type: 'pan', - options: { - shift: true - } - }, { - type: 'zoom', - options: { - control: true - } - }, { - type: 'zoom', - options: { - alt: true - } - }, { - type: 'zoom', - options: { - button: 3 - } - }, { - type: 'roll', - options: { - shift: true, - alt: true - } - }, { - type: 'roll', - options: { - shift: true, - button: 3 - } - }, { - type: 'roll', - options: { - shift: true - } - }, { - type: 'vrPan' - }, { - type: 'gestureCamera' - }], - FirstPerson: [{ - type: 'movement' - }, { - type: 'freeLook' - }], - Unicam: [{ - type: 'unicam' - }], - zRotateTop: [{ - type: 'pan', - options: { - shift: true - } - }, { - type: 'axisRotate', - options: { - rotationAxis: [0, 0, 1], - useHalfAxis: true - } - }, { - type: 'zoom', - options: { - control: true - } - }, { - type: 'zoom', - options: { - alt: true - } - }, { - type: 'zoom', - options: { - dragEnabled: false, - scrollEnabled: true - } - }, { - type: 'zoom', - options: { - button: 3 - } - }], - zRotateAll: [{ - type: 'pan', - options: { - shift: true - } - }, { - type: 'axisRotate', - options: { - rotationAxis: [0, 0, 1], - useHalfAxis: false - } - }, { - type: 'zoom', - options: { - control: true - } - }, { - type: 'zoom', - options: { - alt: true - } - }, { - type: 'zoom', - options: { - dragEnabled: false, - scrollEnabled: true - } - }, { - type: 'zoom', - options: { - button: 3 - } - }] -}; -function applyDefinitions(definitions, manipulatorStyle) { - manipulatorStyle.removeAllManipulators(); - for (let idx = 0; idx < definitions.length; idx++) { - const definition = definitions[idx]; - const instance = MANIPULTOR_TYPES[definition.type].newInstance(definition.options); - if (instance.isA('vtkCompositeVRManipulator')) { - manipulatorStyle.addVRManipulator(instance); - } else if (instance.isA('vtkCompositeGestureManipulator')) { - manipulatorStyle.addGestureManipulator(instance); - } else if (instance.isA('vtkCompositeKeyboardManipulator')) { - manipulatorStyle.addKeyboardManipulator(instance); - } else { - manipulatorStyle.addMouseManipulator(instance); - } - } - return true; -} -function applyPreset(name, manipulatorStyle) { - return applyDefinitions(STYLES[name], manipulatorStyle); -} -function registerManipulatorType(type, classDef) { - MANIPULTOR_TYPES[type] = classDef; -} -function registerStylePreset(name, definitions) { - STYLES[name] = definitions; -} -var InteractionPresets = { - applyDefinitions, - applyPreset, - registerManipulatorType, - registerStylePreset -}; - -export { InteractionPresets as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleRemoteMouse.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleRemoteMouse.js deleted file mode 100644 index d5889c33..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleRemoteMouse.js +++ /dev/null @@ -1,347 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkInteractorStyle from '../../Rendering/Core/InteractorStyle.js'; - -// ---------------------------------------------------------------------------- -// Event Types -// ---------------------------------------------------------------------------- - -const START_INTERACTION_EVENT = { - type: 'StartInteractionEvent' -}; -const INTERACTION_EVENT = { - type: 'InteractionEvent' -}; -const END_INTERACTION_EVENT = { - type: 'EndInteractionEvent' -}; - -// ---------------------------------------------------------------------------- -// vtkInteractorStyleRemoteMouse methods -// ---------------------------------------------------------------------------- - -function vtkInteractorStyleRemoteMouse(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkInteractorStyleRemoteMouse'); - function createRemoteEvent(callData) { - // Fields: - // - action: [down, up] - // - x, y (Normalized) - // Flags: - // - buttonLeft, buttonMiddle, buttonRight - // - shiftKey, ctrlKey, altKey, metaKey - const { - buttonLeft, - buttonMiddle, - buttonRight - } = model; - const shiftKey = callData.shiftKey ? 1 : 0; - const ctrlKey = callData.controlKey ? 1 : 0; - const altKey = callData.altKey ? 1 : 0; - const metaKey = callData.metaKey ? 1 : 0; // Might be platform specific - const action = buttonLeft || buttonMiddle || buttonRight ? 'down' : 'up'; - - // Fixme x / y - const [width, height] = model._interactor.getView().getSizeByReference(); - let { - x, - y - } = callData.position; - x /= width; - y /= height; - return { - action, - x, - y, - buttonLeft, - buttonMiddle, - buttonRight, - shiftKey, - altKey, - ctrlKey, - metaKey, - ...model.remoteEventAddOn - }; - } - - //------------------------------------------------------------------------- - // Mouse - //------------------------------------------------------------------------- - publicAPI.handleLeftButtonPress = callData => { - model.previousPosition = callData.position; - model.buttonLeft = 1; - publicAPI.onButtonDown(1, callData); - }; - - //------------------------------------------------------------------------- - publicAPI.handleMiddleButtonPress = callData => { - model.previousPosition = callData.position; - model.buttonMiddle = 1; - publicAPI.onButtonDown(2, callData); - }; - - //------------------------------------------------------------------------- - publicAPI.handleRightButtonPress = callData => { - model.previousPosition = callData.position; - model.buttonRight = 1; - publicAPI.onButtonDown(3, callData); - }; - - //------------------------------------------------------------------------- - publicAPI.handleLeftButtonRelease = callData => { - model.buttonLeft = 0; - publicAPI.onButtonUp(1, callData); - }; - - //------------------------------------------------------------------------- - publicAPI.handleMiddleButtonRelease = callData => { - model.buttonMiddle = 0; - publicAPI.onButtonUp(2, callData); - }; - - //------------------------------------------------------------------------- - publicAPI.handleRightButtonRelease = callData => { - model.buttonRight = 0; - publicAPI.onButtonUp(3, callData); - }; - - //------------------------------------------------------------------------- - publicAPI.onButtonDown = (button, callData) => { - model._interactor.requestAnimation(publicAPI.onButtonDown); - publicAPI.invokeStartInteractionEvent(START_INTERACTION_EVENT); - publicAPI.invokeRemoteMouseEvent(createRemoteEvent(callData)); - }; - - //------------------------------------------------------------------------- - publicAPI.onButtonUp = (button, callData) => { - publicAPI.invokeRemoteMouseEvent(createRemoteEvent(callData)); - publicAPI.invokeEndInteractionEvent(END_INTERACTION_EVENT); - model._interactor.cancelAnimation(publicAPI.onButtonDown); - }; - - //------------------------------------------------------------------------- - publicAPI.handleStartMouseWheel = callData => { - model._interactor.requestAnimation(publicAPI.handleStartMouseWheel); - publicAPI.invokeStartInteractionEvent(START_INTERACTION_EVENT); - publicAPI.invokeRemoteWheelEvent({ - type: 'StartMouseWheel', - ...createRemoteEvent(callData), - spinY: callData.spinY - }); - }; - - //------------------------------------------------------------------------- - publicAPI.handleMouseWheel = callData => { - let needToSend = true; - if (model.wheelThrottleDelay) { - const ts = Date.now(); - needToSend = model.wheelThrottleDelay < ts - model.wheelLastThrottleTime; - if (needToSend) { - model.wheelLastThrottleTime = ts; - } - } - if (needToSend) { - publicAPI.invokeRemoteWheelEvent({ - type: 'MouseWheel', - ...createRemoteEvent(callData), - spinY: callData.spinY - }); - publicAPI.invokeInteractionEvent(INTERACTION_EVENT); - } - }; - - //------------------------------------------------------------------------- - publicAPI.handleEndMouseWheel = () => { - publicAPI.invokeRemoteWheelEvent({ - type: 'EndMouseWheel', - ...model.remoteEventAddOn - }); - model._interactor.cancelAnimation(publicAPI.handleStartMouseWheel); - publicAPI.invokeEndInteractionEvent(END_INTERACTION_EVENT); - }; - - //------------------------------------------------------------------------- - publicAPI.handleMouseMove = callData => { - const ts = Date.now(); - const needToSend = model.throttleDelay < ts - model.lastThrottleTime; - if (needToSend && (model.sendMouseMove || model.buttonLeft || model.buttonMiddle || model.buttonRight)) { - model.lastThrottleTime = ts; - publicAPI.invokeRemoteMouseEvent(createRemoteEvent(callData)); - } - publicAPI.invokeInteractionEvent(INTERACTION_EVENT); - }; - - // Override default handler - publicAPI.handleKeyPress = () => {}; - - //------------------------------------------------------------------------- - // Gesture - //------------------------------------------------------------------------- - - publicAPI.handleStartPinch = callData => { - publicAPI.startDolly(); - const { - scale - } = callData; - model._interactor.requestAnimation(publicAPI.handleStartPinch); - publicAPI.invokeStartInteractionEvent(START_INTERACTION_EVENT); - publicAPI.invokeRemoteGestureEvent({ - type: 'StartPinch', - scale, - ...model.remoteEventAddOn - }); - }; - - //---------------------------------------------------------------------------- - - publicAPI.handlePinch = callData => { - const { - scale - } = callData; - publicAPI.invokeRemoteGestureEvent({ - type: 'Pinch', - scale, - ...model.remoteEventAddOn - }); - }; - - //-------------------------------------------------------------------------- - - publicAPI.handleEndPinch = () => { - publicAPI.endDolly(); - publicAPI.invokeRemoteGestureEvent({ - type: 'EndPinch', - ...model.remoteEventAddOn - }); - model._interactor.cancelAnimation(publicAPI.handleStartPinch); - publicAPI.invokeEndInteractionEvent(END_INTERACTION_EVENT); - }; - - //---------------------------------------------------------------------------- - - publicAPI.handleStartRotate = callData => { - publicAPI.startRotate(); - const { - rotation - } = callData; - model._interactor.requestAnimation(publicAPI.handleStartRotate); - publicAPI.invokeStartInteractionEvent(START_INTERACTION_EVENT); - publicAPI.invokeRemoteGestureEvent({ - type: 'StartRotate', - rotation, - ...model.remoteEventAddOn - }); - }; - - //---------------------------------------------------------------------------- - - publicAPI.handleRotate = callData => { - const { - rotation - } = callData; - publicAPI.invokeRemoteGestureEvent({ - type: 'Rotate', - rotation, - ...model.remoteEventAddOn - }); - }; - - //-------------------------------------------------------------------------- - - publicAPI.handleEndRotate = () => { - publicAPI.endRotate(); - publicAPI.invokeRemoteGestureEvent({ - type: 'EndRotate', - ...model.remoteEventAddOn - }); - model._interactor.cancelAnimation(publicAPI.handleStartRotate); - publicAPI.invokeEndInteractionEvent(END_INTERACTION_EVENT); - }; - - //---------------------------------------------------------------------------- - - publicAPI.handleStartPan = callData => { - publicAPI.startPan(); - const { - translation - } = callData; - model._interactor.requestAnimation(publicAPI.handleStartPan); - publicAPI.invokeStartInteractionEvent(START_INTERACTION_EVENT); - publicAPI.invokeRemoteGestureEvent({ - type: 'StartPan', - translation, - ...model.remoteEventAddOn - }); - }; - - //---------------------------------------------------------------------------- - - publicAPI.handlePan = callData => { - const { - translation - } = callData; - publicAPI.invokeRemoteGestureEvent({ - type: 'Pan', - translation, - ...model.remoteEventAddOn - }); - }; - - //-------------------------------------------------------------------------- - - publicAPI.handleEndPan = () => { - publicAPI.endPan(); - publicAPI.invokeRemoteGestureEvent({ - type: 'EndPan', - ...model.remoteEventAddOn - }); - model._interactor.cancelAnimation(publicAPI.handleStartPan); - publicAPI.invokeEndInteractionEvent(END_INTERACTION_EVENT); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - buttonLeft: 0, - buttonMiddle: 0, - buttonRight: 0, - sendMouseMove: false, - throttleDelay: 33.3, - // 33.3 millisecond <=> 30 events/second - lastThrottleTime: 0, - wheelThrottleDelay: 0, - wheelLastThrottleTime: 0 - // remoteEventAddOn: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkInteractorStyle.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['sendMouseMove', 'remoteEventAddOn', 'throttleDelay', 'wheelThrottleDelay']); - macro.event(publicAPI, model, 'RemoteMouseEvent'); - macro.event(publicAPI, model, 'RemoteWheelEvent'); - macro.event(publicAPI, model, 'RemoteGestureEvent'); - - // Object specific methods - vtkInteractorStyleRemoteMouse(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkInteractorStyleRemoteMouse'); - -// ---------------------------------------------------------------------------- - -var vtkInteractorStyleRemoteMouse$1 = { - newInstance, - extend -}; - -export { vtkInteractorStyleRemoteMouse$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleTrackballCamera.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleTrackballCamera.d.ts deleted file mode 100644 index 7c8dd777..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleTrackballCamera.d.ts +++ /dev/null @@ -1,181 +0,0 @@ -import vtkInteractorStyle from './../../Rendering/Core/InteractorStyle'; -import vtkRenderer from './../../Rendering/Core/Renderer'; - -export interface vtkInteractorStyleTrackballCamera extends vtkInteractorStyle { - /** - * Handles a mouse move. - * @param callData event data - */ - handleMouseMove(callData: unknown): void; - - /** - * Handles a 3D button event. - * @param callData event data - */ - handleButton3D(ed: unknown): void; - - /** - * Handles a 3D move event. - * @param ed event data - */ - handleMove3D(ed: unknown): void; - - /** - * Update camera pose - * @param ed event data - */ - updateCameraPose(ed: unknown): void; - - /** - * Handles a left button press event. - * @param callData event data - */ - handleLeftButtonPress(callData: unknown): void; - - /** - * Handles a left button release event. - * @param callData event data - */ - handleLeftButtonRelease(callData: unknown): void; - - /** - * Handles the start of a wheel event. - * @param callData event data - */ - handleStartMouseWheel(callData: unknown): void; - - /** - * Handles the end of a wheel event. - * @param callData event data - */ - handleEndMouseWheel(callData: unknown): void; - - /** - * Handles the start of a pinch gesture. - * @param callData event data - */ - handleStartPinch(callData: unknown): void; - - /** - * Handles the end of a pinch gesture. - * @param callData event data - */ - handleEndPinch(callData: unknown): void; - - /** - * Handles the start of a rotate gesture. - * @param callData event data - */ - handleStartRotate(callData: unknown): void; - - /** - * Handles the end of a rotate gesture. - * @param callData event data - */ - handleEndRotate(callData: unknown): void; - - /** - * Handles the start of a pan gesture. - * @param callData event data - */ - handleStartPan(callData: unknown): void; - - /** - * Handles the end of a pan gesture. - * @param callData event data - */ - handleEndPan(callData: unknown): void; - - /** - * Handles a pinch gesture. - * @param callData event data - */ - handlePinch(callData: unknown): void; - - /** - * Handles a pan gesture. - * @param callData event data - */ - handlePan(callData: unknown): void; - - /** - * Handles a rotate gesture. - * @param callData event data - */ - handleRotate(callData: unknown): void; - - /** - * Handles rotate with a mouse. - * @param renderer the renderer - * @param position the display position - */ - handleMouseRotate( - renderer: vtkRenderer, - position: { x: number; y: number } - ): void; - - /** - * Handles spin with a mouse. - * @param renderer the renderer - * @param position the display position - */ - handleMouseSpin( - renderer: vtkRenderer, - position: { x: number; y: number } - ): void; - - /** - * Handles pan with a mouse. - * @param renderer the renderer - * @param position the display position - */ - handleMousePan( - renderer: vtkRenderer, - position: { x: number; y: number } - ): void; - - /** - * Handles dolly with a mouse. - * @param renderer the renderer - * @param position the display position - */ - handleMouseDolly( - renderer: vtkRenderer, - position: { x: number; y: number } - ): void; - - /** - * Handles a wheel event. - * @param callData event data - */ - handleMouseWheel(callData: unknown): void; - - /** - * Dolly by factor. - * @param renderer the renderer - * @param factor factor - */ - dollyByFactor(renderer: vtkRenderer, factor: number): void; -} - -export interface IInteractorStyleTrackballCameraInitialValues { - motionFactor: number; - zoomFactor: number; -} - -export function newInstance( - initialValues?: IInteractorStyleTrackballCameraInitialValues -): vtkInteractorStyleTrackballCamera; - -export function extend( - publicAPI: object, - model: object, - initialValues?: IInteractorStyleTrackballCameraInitialValues -): void; - -export const vtkInteractorStyleTrackballCamera: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkInteractorStyleTrackballCamera; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleTrackballCamera.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleTrackballCamera.js deleted file mode 100644 index f55cafdc..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleTrackballCamera.js +++ /dev/null @@ -1,370 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkInteractorStyle from '../../Rendering/Core/InteractorStyle.js'; -import vtkInteractorStyleConstants from '../../Rendering/Core/InteractorStyle/Constants.js'; -import { B as degreesFromRadians } from '../../Common/Core/Math/index.js'; -import { Device, Input } from '../../Rendering/Core/RenderWindowInteractor/Constants.js'; - -const { - States -} = vtkInteractorStyleConstants; - -/* eslint-disable no-lonely-if */ - -// ---------------------------------------------------------------------------- -// vtkInteractorStyleTrackballCamera methods -// ---------------------------------------------------------------------------- - -function vtkInteractorStyleTrackballCamera(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkInteractorStyleTrackballCamera'); - - // Public API methods - publicAPI.handleMouseMove = callData => { - const pos = callData.position; - const renderer = model.getRenderer(callData); - switch (model.state) { - case States.IS_ROTATE: - publicAPI.handleMouseRotate(renderer, pos); - publicAPI.invokeInteractionEvent({ - type: 'InteractionEvent' - }); - break; - case States.IS_PAN: - publicAPI.handleMousePan(renderer, pos); - publicAPI.invokeInteractionEvent({ - type: 'InteractionEvent' - }); - break; - case States.IS_DOLLY: - publicAPI.handleMouseDolly(renderer, pos); - publicAPI.invokeInteractionEvent({ - type: 'InteractionEvent' - }); - break; - case States.IS_SPIN: - publicAPI.handleMouseSpin(renderer, pos); - publicAPI.invokeInteractionEvent({ - type: 'InteractionEvent' - }); - break; - } - model.previousPosition = pos; - }; - - //---------------------------------------------------------------------------- - publicAPI.handleButton3D = ed => { - if (ed && ed.pressed && ed.device === Device.RightController && (ed.input === Input.Trigger || ed.input === Input.TrackPad)) { - publicAPI.startCameraPose(); - return; - } - if (ed && !ed.pressed && ed.device === Device.RightController && (ed.input === Input.Trigger || ed.input === Input.TrackPad) && model.state === States.IS_CAMERA_POSE) { - publicAPI.endCameraPose(); - // return; - } - }; - - publicAPI.handleMove3D = ed => { - switch (model.state) { - case States.IS_CAMERA_POSE: - publicAPI.updateCameraPose(ed); - break; - } - }; - publicAPI.updateCameraPose = ed => { - // move the world in the direction of the - // controller - const camera = model.getRenderer(ed).getActiveCamera(); - const oldTrans = camera.getPhysicalTranslation(); - - // look at the y axis to determine how fast / what direction to move - const speed = 0.5; // ed.gamepad.axes[1]; - - // 0.05 meters / frame movement - const pscale = speed * 0.05 * camera.getPhysicalScale(); - - // convert orientation to world coordinate direction - const dir = camera.physicalOrientationToWorldDirection([ed.orientation.x, ed.orientation.y, ed.orientation.z, ed.orientation.w]); - camera.setPhysicalTranslation(oldTrans[0] + dir[0] * pscale, oldTrans[1] + dir[1] * pscale, oldTrans[2] + dir[2] * pscale); - }; - - //---------------------------------------------------------------------------- - publicAPI.handleLeftButtonPress = callData => { - const pos = callData.position; - model.previousPosition = pos; - if (callData.shiftKey) { - if (callData.controlKey || callData.altKey) { - publicAPI.startDolly(); - } else { - publicAPI.startPan(); - } - } else { - if (callData.controlKey || callData.altKey) { - publicAPI.startSpin(); - } else { - publicAPI.startRotate(); - } - } - }; - - //-------------------------------------------------------------------------- - publicAPI.handleLeftButtonRelease = () => { - switch (model.state) { - case States.IS_DOLLY: - publicAPI.endDolly(); - break; - case States.IS_PAN: - publicAPI.endPan(); - break; - case States.IS_SPIN: - publicAPI.endSpin(); - break; - case States.IS_ROTATE: - publicAPI.endRotate(); - break; - } - }; - - //---------------------------------------------------------------------------- - publicAPI.handleStartMouseWheel = () => { - publicAPI.startDolly(); - }; - - //-------------------------------------------------------------------------- - publicAPI.handleEndMouseWheel = () => { - publicAPI.endDolly(); - }; - - //---------------------------------------------------------------------------- - publicAPI.handleStartPinch = callData => { - model.previousScale = callData.scale; - publicAPI.startDolly(); - }; - - //-------------------------------------------------------------------------- - publicAPI.handleEndPinch = () => { - publicAPI.endDolly(); - }; - - //---------------------------------------------------------------------------- - publicAPI.handleStartRotate = callData => { - model.previousRotation = callData.rotation; - publicAPI.startRotate(); - }; - - //-------------------------------------------------------------------------- - publicAPI.handleEndRotate = () => { - publicAPI.endRotate(); - }; - - //---------------------------------------------------------------------------- - publicAPI.handleStartPan = callData => { - model.previousTranslation = callData.translation; - publicAPI.startPan(); - }; - - //-------------------------------------------------------------------------- - publicAPI.handleEndPan = () => { - publicAPI.endPan(); - }; - - //---------------------------------------------------------------------------- - publicAPI.handlePinch = callData => { - publicAPI.dollyByFactor(model.getRenderer(callData), callData.scale / model.previousScale); - model.previousScale = callData.scale; - }; - - //---------------------------------------------------------------------------- - publicAPI.handlePan = callData => { - const camera = model.getRenderer(callData).getActiveCamera(); - - // Calculate the focal depth since we'll be using it a lot - let viewFocus = camera.getFocalPoint(); - viewFocus = publicAPI.computeWorldToDisplay(model.getRenderer(callData), viewFocus[0], viewFocus[1], viewFocus[2]); - const focalDepth = viewFocus[2]; - const trans = callData.translation; - const lastTrans = model.previousTranslation; - const newPickPoint = publicAPI.computeDisplayToWorld(model.getRenderer(callData), viewFocus[0] + trans[0] - lastTrans[0], viewFocus[1] + trans[1] - lastTrans[1], focalDepth); - - // Has to recalc old mouse point since the viewport has moved, - // so can't move it outside the loop - const oldPickPoint = publicAPI.computeDisplayToWorld(model.getRenderer(callData), viewFocus[0], viewFocus[1], focalDepth); - - // Camera motion is reversed - const motionVector = []; - motionVector[0] = oldPickPoint[0] - newPickPoint[0]; - motionVector[1] = oldPickPoint[1] - newPickPoint[1]; - motionVector[2] = oldPickPoint[2] - newPickPoint[2]; - viewFocus = camera.getFocalPoint(); - const viewPoint = camera.getPosition(); - camera.setFocalPoint(motionVector[0] + viewFocus[0], motionVector[1] + viewFocus[1], motionVector[2] + viewFocus[2]); - camera.setPosition(motionVector[0] + viewPoint[0], motionVector[1] + viewPoint[1], motionVector[2] + viewPoint[2]); - if (model._interactor.getLightFollowCamera()) { - model.getRenderer(callData).updateLightsGeometryToFollowCamera(); - } - camera.orthogonalizeViewUp(); - model.previousTranslation = callData.translation; - }; - - //---------------------------------------------------------------------------- - publicAPI.handleRotate = callData => { - const camera = model.getRenderer(callData).getActiveCamera(); - camera.roll(callData.rotation - model.previousRotation); - camera.orthogonalizeViewUp(); - model.previousRotation = callData.rotation; - }; - - //-------------------------------------------------------------------------- - publicAPI.handleMouseRotate = (renderer, position) => { - if (!model.previousPosition) { - return; - } - const rwi = model._interactor; - const dx = position.x - model.previousPosition.x; - const dy = position.y - model.previousPosition.y; - const size = rwi.getView().getViewportSize(renderer); - let deltaElevation = -0.1; - let deltaAzimuth = -0.1; - if (size[0] && size[1]) { - deltaElevation = -20.0 / size[1]; - deltaAzimuth = -20.0 / size[0]; - } - const rxf = dx * deltaAzimuth * model.motionFactor; - const ryf = dy * deltaElevation * model.motionFactor; - const camera = renderer.getActiveCamera(); - if (!Number.isNaN(rxf) && !Number.isNaN(ryf)) { - camera.azimuth(rxf); - camera.elevation(ryf); - camera.orthogonalizeViewUp(); - } - if (model.autoAdjustCameraClippingRange) { - renderer.resetCameraClippingRange(); - } - if (rwi.getLightFollowCamera()) { - renderer.updateLightsGeometryToFollowCamera(); - } - }; - - //-------------------------------------------------------------------------- - publicAPI.handleMouseSpin = (renderer, position) => { - if (!model.previousPosition) { - return; - } - const rwi = model._interactor; - const camera = renderer.getActiveCamera(); - const center = rwi.getView().getViewportCenter(renderer); - const oldAngle = degreesFromRadians(Math.atan2(model.previousPosition.y - center[1], model.previousPosition.x - center[0])); - const newAngle = degreesFromRadians(Math.atan2(position.y - center[1], position.x - center[0])) - oldAngle; - if (!Number.isNaN(newAngle)) { - camera.roll(newAngle); - camera.orthogonalizeViewUp(); - } - }; - - //-------------------------------------------------------------------------- - publicAPI.handleMousePan = (renderer, position) => { - if (!model.previousPosition) { - return; - } - const camera = renderer.getActiveCamera(); - - // Calculate the focal depth since we'll be using it a lot - let viewFocus = camera.getFocalPoint(); - viewFocus = publicAPI.computeWorldToDisplay(renderer, viewFocus[0], viewFocus[1], viewFocus[2]); - const focalDepth = viewFocus[2]; - const newPickPoint = publicAPI.computeDisplayToWorld(renderer, position.x, position.y, focalDepth); - - // Has to recalc old mouse point since the viewport has moved, - // so can't move it outside the loop - const oldPickPoint = publicAPI.computeDisplayToWorld(renderer, model.previousPosition.x, model.previousPosition.y, focalDepth); - - // Camera motion is reversed - const motionVector = []; - motionVector[0] = oldPickPoint[0] - newPickPoint[0]; - motionVector[1] = oldPickPoint[1] - newPickPoint[1]; - motionVector[2] = oldPickPoint[2] - newPickPoint[2]; - viewFocus = camera.getFocalPoint(); - const viewPoint = camera.getPosition(); - camera.setFocalPoint(motionVector[0] + viewFocus[0], motionVector[1] + viewFocus[1], motionVector[2] + viewFocus[2]); - camera.setPosition(motionVector[0] + viewPoint[0], motionVector[1] + viewPoint[1], motionVector[2] + viewPoint[2]); - if (model._interactor.getLightFollowCamera()) { - renderer.updateLightsGeometryToFollowCamera(); - } - }; - - //---------------------------------------------------------------------------- - publicAPI.handleMouseDolly = (renderer, position) => { - if (!model.previousPosition) { - return; - } - const dy = position.y - model.previousPosition.y; - const rwi = model._interactor; - const center = rwi.getView().getViewportCenter(renderer); - const dyf = model.motionFactor * dy / center[1]; - publicAPI.dollyByFactor(renderer, 1.1 ** dyf); - }; - - //---------------------------------------------------------------------------- - publicAPI.handleMouseWheel = callData => { - const dyf = 1 - callData.spinY / model.zoomFactor; - publicAPI.dollyByFactor(model.getRenderer(callData), dyf); - }; - - //---------------------------------------------------------------------------- - publicAPI.dollyByFactor = (renderer, factor) => { - if (Number.isNaN(factor)) { - return; - } - const camera = renderer.getActiveCamera(); - if (camera.getParallelProjection()) { - camera.setParallelScale(camera.getParallelScale() / factor); - } else { - camera.dolly(factor); - if (model.autoAdjustCameraClippingRange) { - renderer.resetCameraClippingRange(); - } - } - if (model._interactor.getLightFollowCamera()) { - renderer.updateLightsGeometryToFollowCamera(); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - motionFactor: 10.0, - zoomFactor: 10.0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkInteractorStyle.extend(publicAPI, model, initialValues); - - // Create get-set macros - macro.setGet(publicAPI, model, ['motionFactor', 'zoomFactor']); - - // For more macro methods, see "Sources/macros.js" - - // Object specific methods - vtkInteractorStyleTrackballCamera(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkInteractorStyleTrackballCamera'); - -// ---------------------------------------------------------------------------- - -var vtkInteractorStyleTrackballCamera$1 = { - newInstance, - extend -}; - -export { vtkInteractorStyleTrackballCamera$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleUnicam.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleUnicam.js deleted file mode 100644 index cebe8359..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Style/InteractorStyleUnicam.js +++ /dev/null @@ -1,69 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkInteractorStyleManipulator from './InteractorStyleManipulator.js'; -import vtkMouseCameraUnicamManipulator from '../Manipulators/MouseCameraUnicamManipulator.js'; - -// ---------------------------------------------------------------------------- -// vtkInteractorStyleUnicam methods -// ---------------------------------------------------------------------------- - -function vtkInteractorStyleUnicam(publicAPI, model) { - model.classHierarchy.push('vtkInteractorStyleUnicam'); - model.unicamManipulator = vtkMouseCameraUnicamManipulator.newInstance({ - button: 1 - }); - publicAPI.addMouseManipulator(model.unicamManipulator); - publicAPI.getUseWorldUpVec = () => model.unicamManipulator.getUseWorldUpVec(); - publicAPI.setUseWorldUpVec = useWorldUpVec => { - model.unicamManipulator.setUseWorldUpVec(useWorldUpVec); - }; - publicAPI.getWorldUpVec = () => model.unicamManipulator.getWorldUpVec(); - publicAPI.setWorldUpVec = (x, y, z) => { - model.unicamManipulator.setWorldUpVec(x, y, z); - }; - publicAPI.getUseHardwareSelector = () => model.unicamManipulator.getUseHardwareSelector(); - publicAPI.setUseHardwareSelector = useHardwareSelector => { - model.unicamManipulator.setUseHardwareSelector(useHardwareSelector); - }; - publicAPI.getFocusSphereColor = () => { - model.unicamManipulator.getFocusSphereColor(); - }; - publicAPI.setFocusSphereColor = (r, g, b) => { - model.unicamManipulator.setFocusSphereColor(r, g, b); - }; - publicAPI.getFocusSphereRadiusFactor = () => model.unicamManipulator.getFocusSphereRadiusFactor(); - publicAPI.setFocusSphereRadiusFactor = focusSphereRadiusFactor => { - model.unicamManipulator.setFocusSphereRadiusFactor(focusSphereRadiusFactor); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkInteractorStyleManipulator.extend(publicAPI, model, initialValues); - - // Object specific methods - vtkInteractorStyleUnicam(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkInteractorStyleUnicam'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI.js deleted file mode 100644 index 0b6ce039..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI.js +++ /dev/null @@ -1,15 +0,0 @@ -import vtkCornerAnnotation from './UI/CornerAnnotation.js'; -import vtkFPSMonitor from './UI/FPSMonitor.js'; -import vtkIcons from './UI/Icons.js'; -import vtkSlider from './UI/Slider.js'; -import vtkVolumeController from './UI/VolumeController.js'; - -var UI = { - vtkCornerAnnotation, - vtkFPSMonitor, - vtkIcons, - vtkSlider, - vtkVolumeController -}; - -export { UI as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/CornerAnnotation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/CornerAnnotation.js deleted file mode 100644 index 85d7d8c7..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/CornerAnnotation.js +++ /dev/null @@ -1,155 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { s as style } from './CornerAnnotation/CornerAnnotation.module.css.js'; - -function noOp() {} -const KEY_MAPPING = { - nw: 'northWestContainer', - n: 'northContainer', - ne: 'northEastContainer', - w: 'westContainer', - e: 'eastContainer', - sw: 'southWestContainer', - s: 'southContainer', - se: 'southEastContainer' -}; - -// ---------------------------------------------------------------------------- -// Static helpers -// ---------------------------------------------------------------------------- - -function get(path, obj) { - let fb = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : `$\{${path}}`; - return path.split('.').reduce((res, key) => res[key] !== undefined ? res[key] : fb, obj); -} - -/* from https://gist.github.com/smeijer/6580740a0ff468960a5257108af1384e */ -function applyTemplate(template, map, fallback) { - return template.replace(/\${([^{]+)}/g, match => { - const path = match.substr(2, match.length - 3).trim(); - return get(path, map, fallback); - }); -} - -// ---------------------------------------------------------------------------- -// vtkCornerAnnotation methods -// ---------------------------------------------------------------------------- - -function vtkCornerAnnotation(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCornerAnnotation'); - - // Create instance specific container - if (!model.templates) { - model.templates = {}; - } - if (!model.metadata) { - model.metadata = {}; - } - model.annotationContainer = document.createElement('div'); - model.annotationContainer.setAttribute('class', style.container); - model.annotationContainer.innerHTML = ` -
-
-
-
-
-
-
-
-
-
-
-
-
-
`; - - // Extract various containers - model.northWestContainer = model.annotationContainer.querySelector('.js-nw'); - model.northContainer = model.annotationContainer.querySelector('.js-n'); - model.northEastContainer = model.annotationContainer.querySelector('.js-ne'); - model.westContainer = model.annotationContainer.querySelector('.js-w'); - model.eastContainer = model.annotationContainer.querySelector('.js-e'); - model.southWestContainer = model.annotationContainer.querySelector('.js-sw'); - model.southContainer = model.annotationContainer.querySelector('.js-s'); - model.southEastContainer = model.annotationContainer.querySelector('.js-se'); - - // -------------------------------------------------------------------------- - // Private methods - // -------------------------------------------------------------------------- - - function updateAnnotations() { - const keys = Object.keys(model.templates); - let count = keys.length; - while (count--) { - const el = model[KEY_MAPPING[keys[count]]]; - const fn = model.templates[keys[count]]; - if (el && fn) { - el.innerHTML = fn(model.metadata); - } - } - } - - // -------------------------------------------------------------------------- - - publicAPI.setContainer = el => { - if (model.container && model.container !== el) { - model.container.removeChild(model.annotationContainer); - } - if (model.container !== el) { - model.container = el; - if (model.container) { - model.container.appendChild(model.annotationContainer); - publicAPI.resize(); - } - publicAPI.modified(); - } - }; - publicAPI.resize = noOp; - publicAPI.updateTemplates = templates => { - model.templates = Object.assign(model.templates, templates); - updateAnnotations(); - publicAPI.modified(); - }; - publicAPI.updateMetadata = metadata => { - model.metadata = Object.assign(model.metadata, metadata); - updateAnnotations(); - publicAPI.modified(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - templates: null, - metadata: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['annotationContainer', 'northWestContainer', 'northContainer', 'northEastContainer', 'westContainer', 'eastContainer', 'southWestContainer', 'southContainer', 'southEastContainer', 'metadata']); - - // Object specific methods - vtkCornerAnnotation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCornerAnnotation'); - -// ---------------------------------------------------------------------------- - -var vtkCornerAnnotation$1 = { - newInstance, - extend, - applyTemplate -}; - -export { vtkCornerAnnotation$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/CornerAnnotation/CornerAnnotation.module.css.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/CornerAnnotation/CornerAnnotation.module.css.js deleted file mode 100644 index 9328b604..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/CornerAnnotation/CornerAnnotation.module.css.js +++ /dev/null @@ -1,7 +0,0 @@ -import { s as styleInject } from '../../../vendor/style-inject/dist/style-inject.es.js'; - -var css_248z = ".CornerAnnotation-module_container__2mZcn {\n display: flex;\n align-items: stretch;\n justify-content: space-between;\n flex-direction: column;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n z-index: 100;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.CornerAnnotation-module_row__23t97 {\n flex: 1;\n display: flex;\n justify-content: space-between;\n flex-direction: row;\n}\n\n.CornerAnnotation-module_topRow__1OP5f {\n align-items: flex-start;\n}\n\n.CornerAnnotation-module_middleRow__1xYK_ {\n align-items: center;\n}\n\n.CornerAnnotation-module_bottomRow__1V34_ {\n align-items: flex-end;\n}\n\n.CornerAnnotation-module_item__BavOy {\n flex: 1;\n padding: 5px;\n}\n\n.CornerAnnotation-module_east__xyYFe {\n text-align: right;\n}\n\n.CornerAnnotation-module_west__3DsS- {\n text-align: left;\n}\n\n.CornerAnnotation-module_north__2jPzf {\n text-align: center;\n}\n\n.CornerAnnotation-module_south__FZyGo {\n text-align: center;\n}\n\n.CornerAnnotation-module_northEast__-GjXi {\n}\n\n.CornerAnnotation-module_northWest__23pUR {\n}\n\n.CornerAnnotation-module_southEast__tmLmN {\n}\n\n.CornerAnnotation-module_southWest__FLNPM {\n}\n\n"; -var style = {"container":"CornerAnnotation-module_container__2mZcn","row":"CornerAnnotation-module_row__23t97","topRow":"CornerAnnotation-module_topRow__1OP5f CornerAnnotation-module_row__23t97","middleRow":"CornerAnnotation-module_middleRow__1xYK_ CornerAnnotation-module_row__23t97","bottomRow":"CornerAnnotation-module_bottomRow__1V34_ CornerAnnotation-module_row__23t97","item":"CornerAnnotation-module_item__BavOy","east":"CornerAnnotation-module_east__xyYFe CornerAnnotation-module_item__BavOy","west":"CornerAnnotation-module_west__3DsS- CornerAnnotation-module_item__BavOy","north":"CornerAnnotation-module_north__2jPzf CornerAnnotation-module_item__BavOy","south":"CornerAnnotation-module_south__FZyGo CornerAnnotation-module_item__BavOy","northEast":"CornerAnnotation-module_northEast__-GjXi CornerAnnotation-module_east__xyYFe CornerAnnotation-module_item__BavOy","northWest":"CornerAnnotation-module_northWest__23pUR CornerAnnotation-module_west__3DsS- CornerAnnotation-module_item__BavOy","southEast":"CornerAnnotation-module_southEast__tmLmN CornerAnnotation-module_east__xyYFe CornerAnnotation-module_item__BavOy","southWest":"CornerAnnotation-module_southWest__FLNPM CornerAnnotation-module_west__3DsS- CornerAnnotation-module_item__BavOy"}; -styleInject(css_248z); - -export { style as s }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/FPSMonitor.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/FPSMonitor.js deleted file mode 100644 index 230cab08..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/FPSMonitor.js +++ /dev/null @@ -1,283 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { s as style } from './FPSMonitor/FPSMonitor.module.css.js'; - -const noOp = Function.prototype; -function formatNumbers(n) { - const sections = []; - let size = n; - while (size > 1000) { - sections.push(`000${size % 1000}`.slice(-3)); - size = Math.floor(size / 1000); - } - if (size > 0) { - sections.push(size); - } - sections.reverse(); - return sections.join("'"); -} - -// ---------------------------------------------------------------------------- -// vtkFPSMonitor methods -// ---------------------------------------------------------------------------- - -function vtkFPSMonitor(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkFPSMonitor'); - model.fpsMonitorContainer = document.createElement('div'); - model.fpsMonitorContainer.setAttribute('class', model.orientationClass); - model.fpsMonitorContainer.innerHTML = ` -
-
Mean N/A - Current N/A
- -
-
-
`; - - // Extract various containers - model.canvas = model.fpsMonitorContainer.querySelector('.js-graph'); - model.title = model.fpsMonitorContainer.querySelector('.js-title'); - model.info = model.fpsMonitorContainer.querySelector('.js-info'); - - // -------------------------------------------------------------------------- - // Private methods - // -------------------------------------------------------------------------- - - function renderTitle() { - model.title.style.display = model.titleVisibility ? 'block' : 'none'; - if (!model.titleVisibility) { - return; - } - const nextFPS = model.buffer[model.buffer.length - 1]; - const newTxt = `Mean: ${Math.round(model.fpsSum / model.buffer.length)} - Current: ${Math.round(nextFPS)}`; - if (newTxt !== model.lastText) { - model.lastText = newTxt; - model.title.innerHTML = newTxt; - } - } - function renderInfo() { - model.info.style.display = model.infoVisibility ? 'grid' : 'none'; - if (!model.infoVisibility) { - return; - } - const infoItems = []; - if (model.renderWindow) { - const realView = model.renderWindow.getViews()[0]; - if (realView && realView.getSize) { - infoItems.push(`${realView.getSize().join('x')}`); - } - const stats = { - ...model.renderWindow.getStatistics(), - ...model.addOnStats - }; - const keys = Object.keys(stats); - keys.sort(); - for (let i = 0; i < keys.length; i++) { - if (keys[i] === 'str') { - continue; // eslint-disable-line - } - - if (stats[keys[i]]) { - infoItems.push(`${formatNumbers(stats[keys[i]])}`); - } - } - } - model.info.innerHTML = infoItems.join(''); - } - function renderCanvas() { - model.canvas.style.display = model.canvasVisibility ? 'block' : 'none'; - if (!model.canvasVisibility) { - return; - } - // Although this is called frequently, setting an attribute to the same value is a no-op - model.canvas.setAttribute('width', model.bufferSize); - model.canvas.setAttribute('height', model.graphHeight); - const ctx = model.canvas.getContext('2d'); - const { - width, - height - } = model.canvas; - ctx.clearRect(0, 0, width, height); - // Current fps - ctx.strokeStyle = 'green'; - ctx.beginPath(); - ctx.moveTo(0, height - model.buffer[0]); - for (let i = 1; i < model.buffer.length; i++) { - ctx.lineTo(i, height - model.buffer[i]); - } - ctx.stroke(); - // 60 fps ref - ctx.strokeStyle = 'black'; - ctx.beginPath(); - ctx.moveTo(0, height - 60); - ctx.lineTo(width, height - 60); - ctx.stroke(); - } - function frameChanged() { - if (!model.interactor) { - return; - } - const nextFPS = 1 / model.interactor.getLastFrameTime(); - model.buffer.push(nextFPS); - model.fpsSum += nextFPS; - while (model.buffer.length > model.bufferSize) { - model.fpsSum -= model.buffer.shift(); - } - renderTitle(); - renderInfo(); - renderCanvas(); - } - - // -------------------------------------------------------------------------- - // Public methods - // -------------------------------------------------------------------------- - - publicAPI.update = () => { - publicAPI.render(); - }; - - // -------------------------------------------------------------------------- - - publicAPI.setRenderWindow = rw => { - while (model.subscriptions.length) { - model.subscriptions.pop().unsubscribe(); - } - model.renderWindow = rw; - model.interactor = rw ? rw.getInteractor() : null; - if (model.interactor) { - model.subscriptions.push(model.interactor.onAnimation(frameChanged)); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.setContainer = el => { - if (model.container && model.container !== el) { - model.container.removeChild(model.fpsMonitorContainer); - } - if (model.container !== el) { - model.container = el; - if (model.container) { - model.container.appendChild(model.fpsMonitorContainer); - publicAPI.resize(); - } - publicAPI.modified(); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.render = () => { - renderTitle(); - renderInfo(); - renderCanvas(); - }; - - // -------------------------------------------------------------------------- - - publicAPI.resize = noOp; - - // -------------------------------------------------------------------------- - - publicAPI.setOrientationToHorizontal = () => { - model.fpsMonitorContainer.classList.remove(model.orientationClass); - model.orientationClass = style.horizontalContainer; - model.fpsMonitorContainer.classList.add(model.orientationClass); - }; - - // -------------------------------------------------------------------------- - - publicAPI.setOrientationToVertical = () => { - model.fpsMonitorContainer.classList.remove(model.orientationClass); - model.orientationClass = style.verticalContainer; - model.fpsMonitorContainer.classList.add(model.orientationClass); - }; - - // -------------------------------------------------------------------------- - - publicAPI.setOrientation = function () { - let mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'horizontal'; - if (mode === 'horizontal') { - publicAPI.setOrientationToHorizontal(); - } else { - publicAPI.setOrientationToVertical(); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.setAddOnStats = addOn => { - if (!model.addOnStats) { - model.addOnStats = {}; - } - Object.assign(model.addOnStats, addOn); - renderInfo(); - }; - - // -------------------------------------------------------------------------- - - publicAPI.setMonitorVisibility = function () { - let title = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - let graph = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - let info = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - publicAPI.setCanvasVisibility(graph); - publicAPI.setInfoVisibility(info); - publicAPI.setTitleVisibility(title); - }; - - // -------------------------------------------------------------------------- - - const superDelete = publicAPI.delete; - publicAPI.delete = () => { - publicAPI.setRenderWindow(null); - publicAPI.setContainer(null); - superDelete(); - }; - - // -------------------------------------------------------------------------- - - model.subscriptions.push(publicAPI.onModified(publicAPI.update)); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - bufferSize: 200, - graphHeight: 120, - buffer: [60], - subscriptions: [], - fpsSum: 0, - orientationClass: style.horizontalContainer, - canvasVisibility: true, - titleVisibility: true, - infoVisibility: true -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['fpsMonitorContainer', 'renderWindow', 'addOnStats']); - macro.setGet(publicAPI, model, ['bufferSize', 'canvasVisibility', 'infoVisibility', 'titleVisibility']); - - // Object specific methods - vtkFPSMonitor(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkFPSMonitor'); - -// ---------------------------------------------------------------------------- - -var vtkFPSMonitor$1 = { - newInstance, - extend -}; - -export { vtkFPSMonitor$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/FPSMonitor/FPSMonitor.module.css.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/FPSMonitor/FPSMonitor.module.css.js deleted file mode 100644 index 27d0338b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/FPSMonitor/FPSMonitor.module.css.js +++ /dev/null @@ -1,7 +0,0 @@ -import { s as styleInject } from '../../../vendor/style-inject/dist/style-inject.es.js'; - -var css_248z = ".FPSMonitor-module_verticalContainer__1oES5 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n}\n\n.FPSMonitor-module_horizontalContainer__3dO_q {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n}\n\n.FPSMonitor-module_leftPane__3PHsp {\n flex: none;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n}\n\n.FPSMonitor-module_rightPane__30Een {\n flex: 1;\n display: grid;\n grid-template-columns: auto auto;\n grid-auto-rows: 1.5em;\n grid-column-gap: 5px;\n grid-row-gap: 2px;\n padding: 10px;\n}\n\n.FPSMonitor-module_title__3a5vQ {\n flex: 1;\n font-weight: bold;\n padding: 5px 10px 0 10px;\n}\n\n.FPSMonitor-module_graph__lvtIQ {\n flex: none;\n border: solid 1px black;\n margin: 10px ;\n border-radius: 2px;\n overflow: hidden;\n}\n\n.FPSMonitor-module_label__3saqc {\n font-weight: bold;\n text-transform: capitalize;\n text-align: right;\n align-self: center;\n}\n\n.FPSMonitor-module_value__2WrfF {\n font-style: italic;\n text-align: center;\n align-self: center;\n}\n"; -var style = {"verticalContainer":"FPSMonitor-module_verticalContainer__1oES5","horizontalContainer":"FPSMonitor-module_horizontalContainer__3dO_q","leftPane":"FPSMonitor-module_leftPane__3PHsp","rightPane":"FPSMonitor-module_rightPane__30Een","title":"FPSMonitor-module_title__3a5vQ","graph":"FPSMonitor-module_graph__lvtIQ","label":"FPSMonitor-module_label__3saqc","value":"FPSMonitor-module_value__2WrfF"}; -styleInject(css_248z); - -export { style as s }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Icons.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Icons.js deleted file mode 100644 index 90b8d6a9..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Icons.js +++ /dev/null @@ -1,13 +0,0 @@ -import { s as svgEdge } from './Icons/Contrast.svg.js'; -import { s as svgLogo } from './Icons/Logo.svg.js'; -import { s as svgSpacing } from './Icons/Spacing.svg.js'; -import { T as Tint } from './Icons/Tint.svg.js'; - -var vtkIcons = { - Contrast: svgEdge, - Logo: svgLogo, - Spacing: svgSpacing, - Tint -}; - -export { vtkIcons as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Icons/Contrast.svg.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Icons/Contrast.svg.js deleted file mode 100644 index a289b71d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Icons/Contrast.svg.js +++ /dev/null @@ -1,3 +0,0 @@ -var svgEdge = ""; - -export { svgEdge as s }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Icons/Logo.svg.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Icons/Logo.svg.js deleted file mode 100644 index 72a2f058..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Icons/Logo.svg.js +++ /dev/null @@ -1,3 +0,0 @@ -var svgLogo = ""; - -export { svgLogo as s }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Icons/Spacing.svg.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Icons/Spacing.svg.js deleted file mode 100644 index 0456c04d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Icons/Spacing.svg.js +++ /dev/null @@ -1,3 +0,0 @@ -var svgSpacing = ""; - -export { svgSpacing as s }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Icons/Tint.svg.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Icons/Tint.svg.js deleted file mode 100644 index 687d8696..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Icons/Tint.svg.js +++ /dev/null @@ -1,3 +0,0 @@ -var Tint = ""; - -export { Tint as T }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Slider.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Slider.js deleted file mode 100644 index b714662f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Slider.js +++ /dev/null @@ -1,241 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import Constants from './Slider/Constants.js'; -import { s as style } from './Slider/Slider.module.css.js'; - -// ---------------------------------------------------------------------------- -// Helper methods -// ---------------------------------------------------------------------------- - -function findClosestValue(value, values) { - let distance = Number.MAX_VALUE; - let index = -1; - let count = values.length; - while (count--) { - const dist = Math.abs(values[count] - value); - if (dist < distance) { - distance = dist; - index = count; - } - } - return index !== -1 ? values[index] : undefined; -} - -// ---------------------------------------------------------------------------- -// vtkSlider methods -// ---------------------------------------------------------------------------- - -function vtkSlider(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkSlider'); - model.el = document.createElement('div'); - model.el.setAttribute('class', style.cursor); - - // -------------------------------------------------------------------------- - // Private methods - // -------------------------------------------------------------------------- - - function getDisplacementRatio() { - return (model.containerSizes[1] - model.containerSizes[0]) * (model.value - model.values[0]) / (model.values[model.values.length - 1] - model.values[0]); - } - function updateCursorPosition() { - if (!model.container) { - return; - } - const cursorSize = model.containerSizes[0]; - const position = getDisplacementRatio(); - if (Number.isNaN(position) || Number.isNaN(cursorSize)) { - return; - } - model.el.style.width = `${cursorSize}px`; - model.el.style.height = `${cursorSize}px`; - if (model.orientation === Constants.SliderOrientation.VERTICAL) { - // VERTICAL - model.el.style.left = '0'; - model.el.style.top = `${position}px`; - model.el.style.cursor = 'row-resize'; - } else { - // HORIZONTAL - model.el.style.top = '0'; - model.el.style.left = `${position}px`; - model.el.style.cursor = 'col-resize'; - } - } - - // -------------------------------------------------------------------------- - - let isDragging = false; - let offset = 0; - let ratio = 0; - function handleDragEvents(enable) { - const rootElm = document.querySelector('body'); - const method = enable ? 'addEventListener' : 'removeEventListener'; - - /* eslint-disable no-use-before-define */ - rootElm[method]('mousemove', onMouseMove); - rootElm[method]('mouseleave', onMouseOut); - rootElm[method]('mouseup', onMouseUp); - /* eslint-enable no-use-before-define */ - } - - function onMouseMove(e) { - e.preventDefault(); - if (isDragging) { - const newRatio = ratio + ((model.orientation ? e.clientX : e.clientY) - offset) / (model.containerSizes[1] - model.containerSizes[0]); - const value = newRatio * model.range + model.values[0]; - const newValue = findClosestValue(value, model.values); - if (newValue !== undefined) { - publicAPI.setValue(newValue); - } - } - } - function onMouseOut(e) { - isDragging = false; - } - function onMouseUp(e) { - handleDragEvents(false); - if (!isDragging) { - const isClick = !((model.orientation ? e.clientX : e.clientY) - offset); - if (isClick) { - const absValue = model.values[0] + model.range * (offset - model.container.getBoundingClientRect()[model.orientation ? 'left' : 'top'] - 0.5 * model.containerSizes[0]) / (model.containerSizes[1] - model.containerSizes[0]); - const newValue = findClosestValue(absValue, model.values); - if (newValue !== undefined) { - publicAPI.setValue(newValue); - } - } - } - isDragging = false; - } - function onMouseDown(e) { - handleDragEvents(true); - e.preventDefault(); - isDragging = e.target === model.el; - offset = model.orientation ? e.clientX : e.clientY; - ratio = (model.value - model.values[0]) / model.range; - } - function bindEvents() { - model.container.addEventListener('mousedown', onMouseDown); - } - function unbindEvents() { - handleDragEvents(false); - model.container.removeEventListener('mousedown', onMouseDown); - } - - // -------------------------------------------------------------------------- - - publicAPI.setContainer = el => { - if (model.container && model.container !== el) { - model.container.removeChild(model.el); - unbindEvents(); - } - if (model.container !== el) { - model.container = el; - if (model.container) { - model.container.appendChild(model.el); - publicAPI.resize(); - bindEvents(); - } - publicAPI.modified(); - } - }; - publicAPI.resize = () => { - if (model.container) { - const dims = model.container.getBoundingClientRect(); - const width = Math.floor(dims.width); - const height = Math.floor(dims.height); - const min = Math.min(width, height); - const max = Math.max(width, height); - publicAPI.setOrientation(height === max ? Constants.SliderOrientation.VERTICAL : Constants.SliderOrientation.HORIZONTAL); - model.containerSizes = [min, max]; - updateCursorPosition(); - } - }; - publicAPI.setValue = v => { - if (model.value !== v && model.values[0] <= v && v <= model.values.slice(-1)[0]) { - model.value = v; - updateCursorPosition(); - publicAPI.modified(); - publicAPI.invokeValueChange(v); - return true; - } - return false; - }; - publicAPI.setValues = values => { - if (model.values !== values) { - model.values = values; - model.range = values[values.length - 1] - values[0]; - updateCursorPosition(); - publicAPI.modified(); - } - }; - publicAPI.generateValues = (min, max, nbSteps) => { - const step = (max - min) / (nbSteps - 1); - model.values = []; - for (let i = 0; i < nbSteps; i++) { - model.values.push(min + i * step); - } - model.range = max - min; - updateCursorPosition(); - publicAPI.modified(); - }; - publicAPI.updateCursorStyle = cursorStyle => { - model.cursorStyle = { - ...model.cursorStyle, - ...cursorStyle - }; - const keys = Object.keys(model.cursorStyle); - let count = keys.length; - while (count--) { - model.el.style[keys[count]] = model.cursorStyle[keys[count]]; - } - }; - - // Apply default style - publicAPI.updateCursorStyle(); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - orientation: Constants.SliderOrientation.VERTICAL, - value: 0.5, - values: [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1], - range: 1, - containerSizes: [10, 100], - cursorStyle: { - border: 'solid 4px #aaa', - backgroundColor: '#ccc', - transform: 'scale(0.7)' - } -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['orientation', 'value', 'values']); - macro.set(publicAPI, model, ['orientation']); - macro.event(publicAPI, model, 'ValueChange'); - - // Object specific methods - vtkSlider(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSlider'); - -// ---------------------------------------------------------------------------- - -var vtkSlider$1 = { - newInstance, - extend, - ...Constants -}; - -export { vtkSlider$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Slider/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Slider/Constants.js deleted file mode 100644 index a6f40277..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Slider/Constants.js +++ /dev/null @@ -1,9 +0,0 @@ -const SliderOrientation = { - VERTICAL: 0, - HORIZONTAL: 1 -}; -var Constants = { - SliderOrientation -}; - -export { SliderOrientation, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Slider/Slider.module.css.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Slider/Slider.module.css.js deleted file mode 100644 index 1141462d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/Slider/Slider.module.css.js +++ /dev/null @@ -1,7 +0,0 @@ -import { s as styleInject } from '../../../vendor/style-inject/dist/style-inject.es.js'; - -var css_248z = ".Slider-module_cursor__1JXd9 {\n position: absolute;\n border-radius: 50%;\n box-sizing: border-box;\n cursor: move;\n}\n"; -var style = {"cursor":"Slider-module_cursor__1JXd9"}; -styleInject(css_248z); - -export { style as s }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/VolumeController.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/VolumeController.js deleted file mode 100644 index 947721c0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/VolumeController.js +++ /dev/null @@ -1,265 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkColorMaps from '../../Rendering/Core/ColorTransferFunction/ColorMapsLite.js'; -import vtkPiecewiseGaussianWidget from '../Widgets/PiecewiseGaussianWidget.js'; -import { s as svgLogo } from './Icons/Logo.svg.js'; -import { s as svgEdge } from './Icons/Contrast.svg.js'; -import { s as svgSpacing } from './Icons/Spacing.svg.js'; -import { s as style } from './VolumeController/VolumeController.module.css.js'; - -// ---------------------------------------------------------------------------- -// Global structures -// ---------------------------------------------------------------------------- - -const PRESETS_OPTIONS = vtkColorMaps.rgbPresetNames.map(name => ``); - -// ---------------------------------------------------------------------------- -// vtkVolumeController methods -// ---------------------------------------------------------------------------- - -function vtkVolumeController(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkVolumeController'); - model.el = document.createElement('div'); - model.el.setAttribute('class', style.container); - model.widget = vtkPiecewiseGaussianWidget.newInstance({ - numberOfBins: 256, - size: model.size - }); - function updateUseShadow() { - const useShadow = !!Number(model.el.querySelector('.js-shadow').value); - model.actor.getProperty().setShade(useShadow); - model.renderWindow.render(); - } - function updateColorMapPreset() { - const sourceDS = model.actor.getMapper().getInputData(); - if (!sourceDS) { - return; - } - const dataArray = sourceDS.getPointData().getScalars() || sourceDS.getPointData().getArrays()[0]; - const dataRange = model.rescaleColorMap ? model.colorDataRange : dataArray.getRange(); - const preset = vtkColorMaps.getPresetByName(model.el.querySelector('.js-color-preset').value); - const lookupTable = model.actor.getProperty().getRGBTransferFunction(0); - lookupTable.applyColorMap(preset); - lookupTable.setMappingRange(...dataRange); - lookupTable.updateRange(); - model.renderWindow.render(); - } - function updateSpacing() { - const value = Number(model.el.querySelector('.js-spacing').value); - const sourceDS = model.actor.getMapper().getInputData(); - const sampleDistance = 0.7 * Math.sqrt(sourceDS.getSpacing().map(v => v * v).reduce((a, b) => a + b, 0)); - model.actor.getMapper().setSampleDistance(sampleDistance * 2 ** (value * 3.0 - 1.5)); - model.renderWindow.render(); - } - function updateEdgeGradient() { - const value = Number(model.el.querySelector('.js-edge').value); - if (value === 0) { - model.actor.getProperty().setUseGradientOpacity(0, false); - } else { - const sourceDS = model.actor.getMapper().getInputData(); - const dataArray = sourceDS.getPointData().getScalars() || sourceDS.getPointData().getArrays()[0]; - const dataRange = dataArray.getRange(); - model.actor.getProperty().setUseGradientOpacity(0, true); - const minV = Math.max(0.0, value - 0.3) / 0.7; - model.actor.getProperty().setGradientOpacityMinimumValue(0, (dataRange[1] - dataRange[0]) * 0.2 * minV * minV); - model.actor.getProperty().setGradientOpacityMaximumValue(0, (dataRange[1] - dataRange[0]) * 1.0 * value * value); - } - model.renderWindow.render(); - } - publicAPI.setupContent = function (renderWindow, actor, isBackgroundDark) { - let useShadow = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '1'; - let presetName = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'erdc_rainbow_bright'; - publicAPI.setActor(actor); - publicAPI.setRenderWindow(renderWindow); - const sourceDS = model.actor.getMapper().getInputData(); - const dataArray = sourceDS.getPointData().getScalars() || sourceDS.getPointData().getArrays()[0]; - const lookupTable = model.actor.getProperty().getRGBTransferFunction(0); - const piecewiseFunction = model.actor.getProperty().getScalarOpacity(0); - const stylePostFix = isBackgroundDark ? 'DarkBG' : 'BrightBG'; - const localStyle = {}; - ['button', 'presets', 'shadow'].forEach(name => { - localStyle[name] = style[`${name}${stylePostFix}`]; - }); - model.el.innerHTML = ` -
-
${svgLogo}
- - -
-
-
-
${svgSpacing}
- -
-
-
${svgEdge}
- -
-
-
- `; - - // DOM elements - const domToggleButton = model.el.querySelector('.js-button'); - const domShadow = model.el.querySelector('.js-shadow'); - const domPreset = model.el.querySelector('.js-color-preset'); - const domSpacing = model.el.querySelector('.js-spacing'); - const domEdge = model.el.querySelector('.js-edge'); - const widgetContainer = model.el.querySelector('.js-pwf'); - - // Piecewise editor widget - model.widget.updateStyle({ - backgroundColor: 'rgba(255, 255, 255, 0.6)', - histogramColor: 'rgba(100, 100, 100, 0.5)', - strokeColor: 'rgb(0, 0, 0)', - activeColor: 'rgb(255, 255, 255)', - handleColor: 'rgb(50, 150, 50)', - buttonDisableFillColor: 'rgba(255, 255, 255, 0.5)', - buttonDisableStrokeColor: 'rgba(0, 0, 0, 0.5)', - buttonStrokeColor: 'rgba(0, 0, 0, 1)', - buttonFillColor: 'rgba(255, 255, 255, 1)', - strokeWidth: 2, - activeStrokeWidth: 3, - buttonStrokeWidth: 1.5, - handleWidth: 3, - iconSize: 0, - padding: 10 - }); - model.widget.addGaussian(0.5, 1.0, 0.5, 0.5, 0.4); - model.widget.setDataArray(dataArray.getData()); - model.widget.setColorTransferFunction(lookupTable); - model.widget.applyOpacity(piecewiseFunction); - model.widget.setContainer(widgetContainer); - model.widget.bindMouseListeners(); - model.colorDataRange = model.widget.getOpacityRange(); - - // Attach listeners - domToggleButton.addEventListener('click', publicAPI.toggleVisibility); - domShadow.addEventListener('change', updateUseShadow); - domPreset.addEventListener('change', updateColorMapPreset); - domSpacing.addEventListener('input', updateSpacing); - domEdge.addEventListener('input', updateEdgeGradient); - model.widget.onOpacityChange(() => { - model.widget.applyOpacity(piecewiseFunction); - model.colorDataRange = model.widget.getOpacityRange(); - if (model.rescaleColorMap) { - updateColorMapPreset(); - } - if (!model.renderWindow.getInteractor().isAnimating()) { - model.renderWindow.render(); - } - }); - model.widget.onAnimation(start => { - if (start) { - model.renderWindow.getInteractor().requestAnimation(model.widget); - } else { - model.renderWindow.getInteractor().cancelAnimation(model.widget); - model.renderWindow.render(); - } - }); - lookupTable.onModified(() => { - model.widget.render(); - if (!model.renderWindow.getInteractor().isAnimating()) { - model.renderWindow.render(); - } - }); - - // Set default values - domShadow.value = Number(useShadow) ? '1' : '0'; - domPreset.value = presetName; - - // Apply values - updateUseShadow(); - updateColorMapPreset(); - updateSpacing(); - updateEdgeGradient(); - }; - publicAPI.setContainer = el => { - if (model.container && model.container !== el) { - model.container.removeChild(model.el); - } - if (model.container !== el) { - model.container = el; - if (model.container) { - model.container.appendChild(model.el); - } - publicAPI.modified(); - } - }; - const rescaleColorMap = publicAPI.setRescaleColorMap; - publicAPI.setRescaleColorMap = value => { - if (rescaleColorMap(value)) { - updateColorMapPreset(); - return true; - } - return false; - }; - publicAPI.toggleVisibility = () => { - publicAPI.setExpanded(!publicAPI.getExpanded()); - }; - publicAPI.setExpanded = expanded => { - const elements = model.el.querySelectorAll('.js-toggle'); - let count = elements.length; - model.expanded = expanded; - if (model.expanded) { - while (count--) { - elements[count].style.display = 'flex'; - } - } else { - while (count--) { - elements[count].style.display = 'none'; - } - } - }; - publicAPI.getExpanded = () => model.expanded; - publicAPI.setSize = model.widget.setSize; - publicAPI.render = model.widget.render; - publicAPI.onAnimation = model.widget.onAnimation; - - // Trigger rendering for any modified event - publicAPI.onModified(publicAPI.render); - publicAPI.setSize(...model.size); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - size: [600, 300], - expanded: true, - rescaleColorMap: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['actor', 'renderWindow', 'rescaleColorMap']); - macro.get(publicAPI, model, ['widget']); - - // Object specific methods - vtkVolumeController(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkVolumeController'); - -// ---------------------------------------------------------------------------- - -var vtkVolumeController$1 = { - newInstance, - extend -}; - -export { vtkVolumeController$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/VolumeController/VolumeController.module.css.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/VolumeController/VolumeController.module.css.js deleted file mode 100644 index 44c58832..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/UI/VolumeController/VolumeController.module.css.js +++ /dev/null @@ -1,7 +0,0 @@ -import { s as styleInject } from '../../../vendor/style-inject/dist/style-inject.es.js'; - -var css_248z = ".VolumeController-module_container__2HNSO {\n display: flex;\n align-items: stretch;\n flex-direction: column;\n justify-content: space-between;\n position: absolute;\n top: 5px;\n left: 5px;\n background: rgba(128, 128, 128, 0.5);\n border-radius: 5px;\n padding: 2px;\n border: 0.5px solid black;\n box-sizing: border-box;\n}\n\n.VolumeController-module_line__3rtqL {\n display: flex;\n flex-direction: row;\n flex: 1;\n align-items: center;\n justify-content: space-between;\n}\n\n.VolumeController-module_button__2T-xL {\n cursor: pointer;\n width: 1rem;\n margin-left: 5px;\n margin-right: 5px;\n}\n\n.VolumeController-module_button__2T-xL svg {\n width: 1rem;\n height: 1rem;\n}\n\n.VolumeController-module_sliderEntry__27XSC {\n flex: 1;\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.VolumeController-module_sliderIcon__U8YAZ {\n height: 1rem;\n}\n\n.VolumeController-module_slider__3PS68 {\n flex: 1;\n min-height: 1rem;\n width: 5px;\n}\n\n.VolumeController-module_piecewiseEditor__2_jav {\n flex: 1;\n}\n\n.VolumeController-module_select__7mbfS {\n flex: 1;\n border: none;\n background: transparent;\n color: white;\n border: none;\n -moz-appearance: none;\n width: 5px;\n}\n\n.VolumeController-module_select__7mbfS select:focus {\n outline: none;\n border: none;\n}\n\n.VolumeController-module_presets__1h4j5 {\n}\n\n.VolumeController-module_shadow__29K9t {\n}\n\n.VolumeController-module_buttonDarkBG__3W1zO {\n}\n\n.VolumeController-module_presetsDarkBG__2ZI2W {\n color: white;\n}\n\n.VolumeController-module_presetsDarkBG__2ZI2W option {\n color: black;\n}\n\n.VolumeController-module_shadowDarkBG__WHYZ- {\n color: white;\n}\n\n.VolumeController-module_shadowDarkBG__WHYZ- option {\n color: black;\n}\n\n.VolumeController-module_buttonBrightBG__2dstz {\n}\n\n.VolumeController-module_presetsBrightBG__3_VRC {\n color: black;\n}\n\n.VolumeController-module_presetsBrightBG__3_VRC option {\n color: white;\n}\n\n.VolumeController-module_shadowBrightBG__YCHpe {\n color: black;\n}\n\n.VolumeController-module_shadowBrightBG__YCHpe option {\n color: white;\n}\n"; -var style = {"container":"VolumeController-module_container__2HNSO","line":"VolumeController-module_line__3rtqL","button":"VolumeController-module_button__2T-xL","sliderEntry":"VolumeController-module_sliderEntry__27XSC","sliderIcon":"VolumeController-module_sliderIcon__U8YAZ VolumeController-module_button__2T-xL","slider":"VolumeController-module_slider__3PS68","piecewiseEditor":"VolumeController-module_piecewiseEditor__2_jav","select":"VolumeController-module_select__7mbfS","presets":"VolumeController-module_presets__1h4j5 VolumeController-module_select__7mbfS","shadow":"VolumeController-module_shadow__29K9t VolumeController-module_select__7mbfS","buttonDarkBG":"VolumeController-module_buttonDarkBG__3W1zO VolumeController-module_button__2T-xL","presetsDarkBG":"VolumeController-module_presetsDarkBG__2ZI2W VolumeController-module_presets__1h4j5 VolumeController-module_select__7mbfS","shadowDarkBG":"VolumeController-module_shadowDarkBG__WHYZ- VolumeController-module_shadow__29K9t VolumeController-module_select__7mbfS","buttonBrightBG":"VolumeController-module_buttonBrightBG__2dstz VolumeController-module_button__2T-xL","presetsBrightBG":"VolumeController-module_presetsBrightBG__3_VRC VolumeController-module_presets__1h4j5 VolumeController-module_select__7mbfS","shadowBrightBG":"VolumeController-module_shadowBrightBG__YCHpe VolumeController-module_shadow__29K9t VolumeController-module_select__7mbfS"}; -styleInject(css_248z); - -export { style as s }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets.js deleted file mode 100644 index 58e4d6e3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets.js +++ /dev/null @@ -1,9 +0,0 @@ -import vtkOrientationMarkerWidget from './Widgets/OrientationMarkerWidget.js'; -import vtkPiecewiseGaussianWidget from './Widgets/PiecewiseGaussianWidget.js'; - -var Widgets = { - vtkOrientationMarkerWidget, - vtkPiecewiseGaussianWidget -}; - -export { Widgets as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets/OrientationMarkerWidget.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets/OrientationMarkerWidget.d.ts deleted file mode 100644 index 34db94eb..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets/OrientationMarkerWidget.d.ts +++ /dev/null @@ -1,187 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import vtkActor from './../../Rendering/Core/Actor'; -import vtkRenderer from './../../Rendering/Core/Renderer'; -import vtkRenderWindowInteractor from './../../Rendering/Core/RenderWindowInteractor'; -import { Nullable } from './../../types'; -import { Corners } from './OrientationMarkerWidget/Constants'; - -/** - * - */ -export interface IOrientationMarkerWidgetInitialValues { - actor?: vtkActor; - interactor?: vtkRenderWindowInteractor; - parentRenderer?: vtkRenderer; - viewportCorner?: Corners; - viewportSize?: number; - minPixelSize?: number; - maxPixelSize?: number; -} - -export interface vtkOrientationMarkerWidget extends vtkObject { - /** - * Get the computed viewport size. - * The format is `[left, bottom, right, top]`. - */ - computeViewport(): [number, number, number, number]; - - /** - * Dereference any internal object and remove any subscription. - * It gives custom class to properly detach themselves from the DOM - * or any external dependency that could prevent their deletion - * when the GC runs. - */ - delete(): void; - - /** - * - */ - getActor(): vtkActor; - - /** - * Gets the parent renderer, if any. - */ - getParentRenderer(): Nullable; - - /** - * Get wheter the orientation marker is enabled. - */ - getEnabled(): boolean; - - /** - * Get the render window interactor associated with the widget. - */ - getInteractor(): vtkRenderWindowInteractor; - - /** - * Get the maximum side length, in pixels, for the orientation marker widget - * viewport. - */ - getMaxPixelSize(): number; - - /** - * Get the minimum side length, in pixels, for the orientation marker widget - * viewport. - */ - getMinPixelSize(): number; - - /** - * Get the renderer associated with the widget. - */ - getRenderer(): vtkRenderer; - - /** - * Get the viewport corner. - */ - getViewportCorner(): Corners; - - /** - * Get the viewport size. - */ - getViewportSize(): number; - - /** - * Get the actor associated with the widget. - * @param {vtkActor} actor The actor instance. - */ - setActor(actor: vtkActor): void; - - /** - * Sets the parent renderer - * @param {vtkRenderer} ren The parent renderer - */ - setParentRenderer(ren: vtkRenderer): boolean; - - /** - * Set the widget enabled status, i.e. to show the widget or not. - * @param {Boolean} enabled - */ - setEnabled(enabled: boolean): void; - - /** - * Set the render window interactor associated with the widget. - * @param {vtkRenderWindowInteractor} interactor - */ - setInteractor(interactor: vtkRenderWindowInteractor): boolean; - - /** - * Set the maximum side length, in pixels, for the orientation marker widget - * viewport. - * @param {Number} pixelSize - * @default 200 - */ - setMaxPixelSize(pixelSize: number): boolean; - - /** - * Set the minimum side length, in pixels, for the orientation marker widget - * viewport. - * @param {Number} pixelSize - * @default 50 - */ - setMinPixelSize(pixelSize: number): boolean; - - /** - * Set which corner to put the widget's viewport. - * @param {Corners} viewportCorner - * @default BOTTOM_LEFT - */ - setViewportCorner(viewportCorner: Corners): boolean; - - /** - * Set the viewport size. - * The sizeFactor should be between 0.0 and 1.0. - * It says how much of the main render window to color. - * @param {Number} sizeFactor - * @default 0.2 - */ - setViewportSize(sizeFactor: number): void; - - /** - * Manually updates the marker's orientation. - */ - updateMarkerOrientation(): void; - - /** - * Updates the orientation widget viewport size. - */ - updateViewport(): void; - - /** - * An instance of this class will spawn its own renderer, by default non interactive. - * This behavior is configurable through the interactiveRenderer property when initializing the instance. - * @returns true if the renderer was created as interactive, false otherwise. - */ - getInteractiveRenderer(): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkOrientationMarkerWidget characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IOrientationMarkerWidgetInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IOrientationMarkerWidgetInitialValues -): void; - -/** - * Method used to create a new instance of vtkOrientationMarkerWidget - * @param {IOrientationMarkerWidgetInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IOrientationMarkerWidgetInitialValues -): vtkOrientationMarkerWidget; - -/** - * vtkOrientationMarkerWidget is a 2D widget for manipulating a marker prop - */ -export declare const vtkOrientationMarkerWidget: { - newInstance: typeof newInstance; - extend: typeof extend; - Corners: typeof Corners; -}; - -export default vtkOrientationMarkerWidget; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets/OrientationMarkerWidget.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets/OrientationMarkerWidget.js deleted file mode 100644 index 48d62826..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets/OrientationMarkerWidget.js +++ /dev/null @@ -1,275 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkRenderer from '../../Rendering/Core/Renderer.js'; -import Constants from './OrientationMarkerWidget/Constants.js'; - -const { - vtkErrorMacro -} = macro; -const { - Corners -} = Constants; - -// ---------------------------------------------------------------------------- -// vtkOrientationMarkerWidget -// ---------------------------------------------------------------------------- - -function vtkOrientationMarkerWidget(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOrientationMarkerWidget'); - const superClass = { - ...publicAPI - }; - - // Private variables - - const previousCameraInput = []; - const selfRenderer = vtkRenderer.newInstance(); - const resizeObserver = new ResizeObserver(entries => { - publicAPI.updateViewport(); - }); - let onCameraChangedSub = null; - let onCameraModifiedSub = null; - let onAnimationSub = null; - let onEndAnimationSub = null; - let selfSubscription = null; - function onCameraModified() { - // If animating, marker will be updated on Animation event - if (!model._interactor.isAnimating()) { - publicAPI.updateMarkerOrientation(); - } - } - model._onParentRendererChanged = () => publicAPI.updateViewport(); - publicAPI.computeViewport = () => { - const parentRen = model.parentRenderer || model._interactor.getCurrentRenderer(); - const [xMin, yMin, xMax, yMax] = parentRen.getViewport(); - const view = model._interactor.getView(); - const canvasSize = view.getSize(); - const [viewXSize, viewYSize] = view.getViewportSize(parentRen); - const minViewSize = Math.min(viewXSize, viewYSize); - let pixelSize = model.viewportSize * minViewSize; - // clamp pixel size - pixelSize = Math.max(Math.min(model.minPixelSize, minViewSize), Math.min(model.maxPixelSize, pixelSize)); - const xFrac = pixelSize / canvasSize[0]; - const yFrac = pixelSize / canvasSize[1]; - // [left bottom right top] - switch (model.viewportCorner) { - case Corners.TOP_LEFT: - return [xMin, yMax - yFrac, xMin + xFrac, yMax]; - case Corners.TOP_RIGHT: - return [xMax - xFrac, yMax - yFrac, xMax, yMax]; - case Corners.BOTTOM_LEFT: - return [xMin, yMin, xMin + xFrac, yMin + yFrac]; - case Corners.BOTTOM_RIGHT: - return [xMax - xFrac, yMin, xMax, yMin + yFrac]; - default: - vtkErrorMacro('Invalid widget corner'); - return null; - } - }; - publicAPI.updateViewport = () => { - if (model.enabled) { - selfRenderer.setViewport(...publicAPI.computeViewport()); - model._interactor.render(); - } - }; - publicAPI.updateMarkerOrientation = () => { - const ren = model.parentRenderer || model._interactor.getCurrentRenderer(); - const currentCamera = ren.getActiveCamera(); - if (!currentCamera) { - return; - } - const position = currentCamera.getReferenceByName('position'); - const focalPoint = currentCamera.getReferenceByName('focalPoint'); - const viewUp = currentCamera.getReferenceByName('viewUp'); - if (previousCameraInput[0] !== position[0] || previousCameraInput[1] !== position[1] || previousCameraInput[2] !== position[2] || previousCameraInput[3] !== focalPoint[0] || previousCameraInput[4] !== focalPoint[1] || previousCameraInput[5] !== focalPoint[2] || previousCameraInput[6] !== viewUp[0] || previousCameraInput[7] !== viewUp[1] || previousCameraInput[8] !== viewUp[2]) { - previousCameraInput[0] = position[0]; - previousCameraInput[1] = position[1]; - previousCameraInput[2] = position[2]; - previousCameraInput[3] = focalPoint[0]; - previousCameraInput[4] = focalPoint[1]; - previousCameraInput[5] = focalPoint[2]; - previousCameraInput[6] = viewUp[0]; - previousCameraInput[7] = viewUp[1]; - previousCameraInput[8] = viewUp[2]; - const activeCamera = selfRenderer.getActiveCamera(); - activeCamera.setPosition(position[0], position[1], position[2]); - activeCamera.setFocalPoint(focalPoint[0], focalPoint[1], focalPoint[2]); - activeCamera.setViewUp(viewUp[0], viewUp[1], viewUp[2]); - selfRenderer.resetCamera(); - } - }; - - /** - * Enables/Disables the orientation marker. - */ - publicAPI.setEnabled = enabling => { - if (enabling) { - if (model.enabled) { - return; - } - if (!model.actor) { - vtkErrorMacro('Must set actor before enabling orientation marker.'); - return; - } - if (!model._interactor) { - vtkErrorMacro('Must set interactor before enabling orientation marker.'); - return; - } - const ren = model.parentRenderer || model._interactor.getCurrentRenderer(); - const renderWindow = ren.getRenderWindow(); - renderWindow.addRenderer(selfRenderer); - if (renderWindow.getNumberOfLayers() < 2) { - renderWindow.setNumberOfLayers(2); - } - // Highest number is foreground - selfRenderer.setLayer(renderWindow.getNumberOfLayers() - 1); - selfRenderer.setInteractive(model.interactiveRenderer); - selfRenderer.addViewProp(model.actor); - model.actor.setVisibility(true); - onCameraChangedSub = ren.onEvent(event => { - if (event.type === 'ActiveCameraEvent') { - if (onCameraModifiedSub) { - onCameraModifiedSub.unsubscribe(); - } - onCameraModifiedSub = event.camera.onModified(onCameraModified); - } - }); - onCameraModifiedSub = ren.getActiveCamera().onModified(onCameraModified); - onAnimationSub = model._interactor.onAnimation(publicAPI.updateMarkerOrientation); - onEndAnimationSub = model._interactor.onEndAnimation(publicAPI.updateMarkerOrientation); - resizeObserver.observe(model._interactor.getView().getCanvas()); - publicAPI.updateViewport(); - publicAPI.updateMarkerOrientation(); - model.enabled = true; - } else { - if (!model.enabled) { - return; - } - model.enabled = false; - resizeObserver.disconnect(); - onCameraChangedSub.unsubscribe(); - onCameraChangedSub = null; - onCameraModifiedSub.unsubscribe(); - onCameraModifiedSub = null; - onAnimationSub.unsubscribe(); - onAnimationSub = null; - onEndAnimationSub.unsubscribe(); - onEndAnimationSub = null; - model.actor.setVisibility(false); - selfRenderer.removeViewProp(model.actor); - const renderWindow = model._interactor?.findPokedRenderer()?.getRenderWindow(); - if (renderWindow) { - renderWindow.removeRenderer(selfRenderer); - } - } - publicAPI.modified(); - }; - - /** - * Sets the viewport corner. - */ - publicAPI.setViewportCorner = corner => { - if (corner === model.viewportCorner) { - return; - } - model.viewportCorner = corner; - publicAPI.updateViewport(); - }; - - /** - * Sets the viewport size. - */ - publicAPI.setViewportSize = sizeFactor => { - const viewportSize = Math.min(1, Math.max(0, sizeFactor)); - if (viewportSize === model.viewportSize) { - return; - } - model.viewportSize = viewportSize; - publicAPI.updateViewport(); - }; - publicAPI.setActor = actor => { - const previousState = model.enabled; - publicAPI.setEnabled(false); - model.actor = actor; - publicAPI.setEnabled(previousState); - }; - publicAPI.getRenderer = () => selfRenderer; - publicAPI.delete = () => { - superClass.delete(); - if (selfSubscription) { - selfSubscription.unsubscribe(); - selfSubscription = null; - } - if (onCameraChangedSub) { - onCameraChangedSub.unsubscribe(); - onCameraChangedSub = null; - } - if (onCameraModifiedSub) { - onCameraModifiedSub.unsubscribe(); - onCameraModifiedSub = null; - } - if (onAnimationSub) { - onAnimationSub.unsubscribe(); - onAnimationSub = null; - } - if (onEndAnimationSub) { - onEndAnimationSub.unsubscribe(); - onEndAnimationSub = null; - } - resizeObserver.disconnect(); - }; - - // -------------------------------------------------------------------------- - - // update viewport whenever we are updated - selfSubscription = publicAPI.onModified(publicAPI.updateViewport); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // actor: null, - // _interactor: null, - viewportCorner: Constants.Corners.BOTTOM_LEFT, - viewportSize: 0.2, - minPixelSize: 50, - maxPixelSize: 200, - parentRenderer: null, - interactiveRenderer: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['enabled', 'viewportCorner', 'viewportSize', 'interactiveRenderer']); - - // NOTE: setting these while the widget is enabled will - // not update the widget. - macro.setGet(publicAPI, model, ['_interactor', 'minPixelSize', 'maxPixelSize', 'parentRenderer']); - macro.get(publicAPI, model, ['actor']); - macro.moveToProtected(publicAPI, model, ['interactor']); - - // Object methods - vtkOrientationMarkerWidget(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkOrientationMarkerWidget'); - -// ---------------------------------------------------------------------------- - -var vtkOrientationMarkerWidget$1 = { - newInstance, - extend, - ...Constants -}; - -export { DEFAULT_VALUES, vtkOrientationMarkerWidget$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets/OrientationMarkerWidget/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets/OrientationMarkerWidget/Constants.d.ts deleted file mode 100644 index 84843fea..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets/OrientationMarkerWidget/Constants.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export declare enum Corners { - TOP_LEFT = 'TOP_LEFT', - TOP_RIGHT = 'TOP_RIGHT', - BOTTOM_LEFT = 'BOTTOM_LEFT', - BOTTOM_RIGHT = 'BOTTOM_RIGHT', -} - -declare const _default: { - Corners: typeof Corners; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets/OrientationMarkerWidget/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets/OrientationMarkerWidget/Constants.js deleted file mode 100644 index 84b76665..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets/OrientationMarkerWidget/Constants.js +++ /dev/null @@ -1,11 +0,0 @@ -const Corners = { - TOP_LEFT: 'TOP_LEFT', - TOP_RIGHT: 'TOP_RIGHT', - BOTTOM_LEFT: 'BOTTOM_LEFT', - BOTTOM_RIGHT: 'BOTTOM_RIGHT' -}; -var Constants = { - Corners -}; - -export { Corners, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets/PiecewiseGaussianWidget.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets/PiecewiseGaussianWidget.js deleted file mode 100644 index ee2e2648..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets/PiecewiseGaussianWidget.js +++ /dev/null @@ -1,1055 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { G as arrayRange } from '../../Common/Core/Math/index.js'; -import WebworkerPromise from 'webworker-promise'; -import { W as WorkerFactory } from '../../_virtual/rollup-plugin-worker-loader__module_Sources/Interaction/Widgets/PiecewiseGaussianWidget/ComputeHistogram.worker.js'; - -/* eslint-disable no-continue */ - -// ---------------------------------------------------------------------------- -// Global structures -// ---------------------------------------------------------------------------- - -const MIN_GAUSSIAN_WIDTH = 0.001; -const ACTION_TO_CURSOR = { - adjustPosition: '-webkit-grab', - adjustHeight: 'row-resize', - adjustBias: 'crosshair', - adjustWidth: 'col-resize', - adjustZoom: 'col-resize' -}; -const TOUCH_CLICK = []; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -const ACTIONS = { - adjustPosition(x, y, _ref) { - let { - originalXY, - gaussian, - originalGaussian - } = _ref; - const xOffset = originalGaussian.position - originalXY[0]; - gaussian.position = x + xOffset; - return true; - }, - adjustHeight(x, y, _ref2) { - let { - model, - gaussian - } = _ref2; - gaussian.height = 1 - y; - gaussian.height = Math.min(1, Math.max(model.gaussianMinimumHeight, gaussian.height)); - return true; - }, - adjustBias(x, y, _ref3) { - let { - originalXY, - gaussian, - originalGaussian - } = _ref3; - gaussian.xBias = originalGaussian.xBias - (originalXY[0] - x) / gaussian.height; - gaussian.yBias = originalGaussian.yBias + 4 * (originalXY[1] - y) / gaussian.height; - // Clamps - gaussian.xBias = Math.max(-1, Math.min(1, gaussian.xBias)); - gaussian.yBias = Math.max(0, Math.min(2, gaussian.yBias)); - return true; - }, - adjustWidth(x, y, _ref4) { - let { - originalXY, - gaussian, - originalGaussian, - gaussianSide - } = _ref4; - gaussian.width = gaussianSide < 0 ? originalGaussian.width - (originalXY[0] - x) : originalGaussian.width + (originalXY[0] - x); - if (gaussian.width < MIN_GAUSSIAN_WIDTH) { - gaussian.width = MIN_GAUSSIAN_WIDTH; - } - return true; - }, - adjustZoom(x, y, _ref5) { - let { - rangeZoom, - publicAPI - } = _ref5; - const delta = rangeZoom[1] - rangeZoom[0]; - const absNormX = (x - rangeZoom[0]) / delta; - const minDelta = Math.abs(absNormX - rangeZoom[0]); - const maxDelta = Math.abs(absNormX - rangeZoom[1]); - const meanDelta = Math.abs(absNormX - 0.5 * (rangeZoom[0] + rangeZoom[1])); - if (meanDelta < Math.min(minDelta, maxDelta)) { - const halfDelta = delta * 0.5; - rangeZoom[0] = Math.min(Math.max(absNormX - halfDelta, 0), rangeZoom[1] - 0.1); - rangeZoom[1] = Math.max(Math.min(absNormX + halfDelta, 1), rangeZoom[0] + 0.1); - } else if (minDelta < maxDelta) { - rangeZoom[0] = Math.min(Math.max(absNormX, 0), rangeZoom[1] - 0.1); - } else { - rangeZoom[1] = Math.max(Math.min(absNormX, 1), rangeZoom[0] + 0.1); - } - publicAPI.invokeZoomChange(rangeZoom); - - // The opacity did not changed - return false; - } -}; - -// ---------------------------------------------------------------------------- - -function computeOpacities(gaussians) { - let sampling = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 256; - const opacities = []; - while (opacities.length < sampling) { - opacities.push(0); - } - let count = gaussians.length; - while (count--) { - const { - position, - height, - width, - xBias, - yBias - } = gaussians[count]; - for (let i = 0; i < sampling; i++) { - const x = i / (sampling - 1); - - // clamp non-zero values to pos +/- width - if (x > position + width || x < position - width) { - if (opacities[i] < 0.0) { - opacities[i] = 0.0; - } - continue; - } - - // non-zero width - const correctedWidth = width < MIN_GAUSSIAN_WIDTH ? MIN_GAUSSIAN_WIDTH : width; - - // translate the original x to a new x based on the xbias - let x0 = 0; - if (xBias === 0 || x === position + xBias) { - x0 = x; - } else if (x > position + xBias) { - if (correctedWidth === xBias) { - x0 = position; - } else { - x0 = position + (x - position - xBias) * (correctedWidth / (correctedWidth - xBias)); - } - } else if (-correctedWidth === xBias) { - // (x < pos+xBias) - x0 = position; - } else { - x0 = position - (x - position - xBias) * (correctedWidth / (correctedWidth + xBias)); - } - - // center around 0 and normalize to -1,1 - const x1 = (x0 - position) / correctedWidth; - - // do a linear interpolation between: - // a gaussian and a parabola if 0 < yBias <1 - // a parabola and a step function if 1 < yBias <2 - const h0a = Math.exp(-(4 * x1 * x1)); - const h0b = 1.0 - x1 * x1; - const h0c = 1.0; - let h1; - if (yBias < 1) { - h1 = yBias * h0b + (1 - yBias) * h0a; - } else { - h1 = (2 - yBias) * h0b + (yBias - 1) * h0c; - } - const h2 = height * h1; - - // perform the MAX over different gaussians, not the sum - if (h2 > opacities[i]) { - opacities[i] = h2; - } - } - } - return opacities; -} - -// ---------------------------------------------------------------------------- - -function applyGaussianToPiecewiseFunction(gaussians, sampling, rangeToUse, piecewiseFunction) { - const opacities = computeOpacities(gaussians, sampling); - const nodes = []; - const delta = (rangeToUse[1] - rangeToUse[0]) / (opacities.length - 1); - const midpoint = 0.5; - const sharpness = 0; - for (let index = 0; index < opacities.length; index++) { - const x = rangeToUse[0] + delta * index; - const y = opacities[index]; - nodes.push({ - x, - y, - midpoint, - sharpness - }); - } - piecewiseFunction.setNodes(nodes); -} - -// ---------------------------------------------------------------------------- - -function drawChart(ctx, area, values) { - let style = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : { - lineWidth: 1, - strokeStyle: '#000' - }; - const verticalScale = area[3]; - const horizontalScale = area[2] / (values.length - 1); - const fill = !!style.fillStyle; - const offset = verticalScale + area[1]; - ctx.lineWidth = style.lineWidth; - ctx.strokeStyle = style.strokeStyle; - ctx.beginPath(); - ctx.moveTo(area[0], area[1] + area[3]); - for (let index = 0; index < values.length; index++) { - ctx.lineTo(area[0] + index * horizontalScale, Math.max(area[1], offset - values[index] * verticalScale)); - } - if (fill) { - ctx.fillStyle = style.fillStyle; - ctx.lineTo(area[0] + area[2], area[1] + area[3]); - if (style.clip) { - ctx.clip(); - return; - } - ctx.fill(); - } - ctx.stroke(); -} - -// ---------------------------------------------------------------------------- - -function updateColorCanvas(colorTransferFunction, width, rangeToUse, canvas) { - const workCanvas = canvas || document.createElement('canvas'); - workCanvas.setAttribute('width', width); - workCanvas.setAttribute('height', 256); - const ctx = workCanvas.getContext('2d'); - const rgba = colorTransferFunction.getUint8Table(rangeToUse[0], rangeToUse[1], width, 4); - const pixelsArea = ctx.getImageData(0, 0, width, 256); - for (let lineIdx = 0; lineIdx < 256; lineIdx++) { - pixelsArea.data.set(rgba, lineIdx * 4 * width); - } - const nbValues = 256 * width * 4; - const lineSize = width * 4; - for (let i = 3; i < nbValues; i += 4) { - pixelsArea.data[i] = 255 - Math.floor(i / lineSize); - } - ctx.putImageData(pixelsArea, 0, 0); - return workCanvas; -} - -// ---------------------------------------------------------------------------- - -function updateColorCanvasFromImage(img, width, canvas) { - const workCanvas = canvas || document.createElement('canvas'); - workCanvas.setAttribute('width', width); - workCanvas.setAttribute('height', 256); - const ctx = workCanvas.getContext('2d'); - ctx.drawImage(img, 0, 0, img.width, img.height, 0, 0, width, 256); - return workCanvas; -} - -// ---------------------------------------------------------------------------- - -function normalizeCoordinates(x, y, subRectangeArea) { - let zoomRange = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [0, 1]; - return [zoomRange[0] + (x - subRectangeArea[0]) / subRectangeArea[2] * (zoomRange[1] - zoomRange[0]), (y - subRectangeArea[1]) / subRectangeArea[3]]; -} - -// ---------------------------------------------------------------------------- - -function findGaussian(x, gaussians) { - const distances = gaussians.map(g => Math.abs(g.position - x)); - const min = Math.min(...distances); - return distances.indexOf(min); -} - -// ---------------------------------------------------------------------------- - -function createListener(callback) { - let preventDefault = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - return e => { - const { - offsetX, - offsetY - } = e; - if (preventDefault) { - e.preventDefault(); - } - callback(offsetX, offsetY); - }; -} - -// ---------------------------------------------------------------------------- - -function createTouchClickListener() { - const id = TOUCH_CLICK.length; - for (var _len = arguments.length, callbacks = new Array(_len), _key = 0; _key < _len; _key++) { - callbacks[_key] = arguments[_key]; - } - TOUCH_CLICK.push({ - callbacks, - timeout: 0, - deltaT: 200, - count: 0, - ready: false - }); - return id; -} - -// ---------------------------------------------------------------------------- - -function processTouchClicks() { - TOUCH_CLICK.filter(t => t.ready).forEach(touchHandle => { - touchHandle.callbacks.forEach(callback => { - if (callback.touches === touchHandle.touches && callback.clicks === touchHandle.count) { - callback.action(...touchHandle.singleTouche); - } - }); - - // Clear state - touchHandle.ts = 0; - touchHandle.count = 0; - touchHandle.touches = 0; - touchHandle.ready = false; - }); -} - -// ---------------------------------------------------------------------------- - -function createTouchListener(id, callback) { - let nbTouches = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - let preventDefault = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; - return e => { - const targetBounds = e.target.getBoundingClientRect(); - const relativeTouches = Array.prototype.map.call(e.touches, t => [t.pageX - targetBounds.left, t.pageY - targetBounds.top]); - const singleTouche = relativeTouches.reduce((a, b) => [a[0] + b[0], a[1] + b[1]], [0, 0]).map(v => v / e.touches.length); - if (e.type === 'touchstart') { - clearTimeout(TOUCH_CLICK[id].timeout); - TOUCH_CLICK[id].ts = e.timeStamp; - TOUCH_CLICK[id].singleTouche = singleTouche; - TOUCH_CLICK[id].touches = e.touches.length; - } else if (e.type === 'touchmove') { - TOUCH_CLICK[id].ts = 0; - TOUCH_CLICK[id].count = 0; - TOUCH_CLICK[id].ready = false; - } else if (e.type === 'touchend') { - if (e.timeStamp - TOUCH_CLICK[id].ts < TOUCH_CLICK[id].deltaT) { - TOUCH_CLICK[id].count += 1; - TOUCH_CLICK[id].ready = true; - if (preventDefault) { - e.preventDefault(); - } - TOUCH_CLICK[id].timeout = setTimeout(processTouchClicks, TOUCH_CLICK[id].deltaT); - } else { - TOUCH_CLICK[id].ready = false; - } - } - if (e.touches.length === nbTouches) { - callback(...singleTouche); - if (preventDefault) { - e.preventDefault(); - } - } - }; -} - -// ---------------------------------------------------------------------------- - -function listenerSelector(condition, ok, ko) { - return e => condition() ? ok(e) : ko(e); -} - -// ---------------------------------------------------------------------------- - -function rescaleArray(array, focusArea) { - if (!focusArea) { - return array; - } - const maxIdx = array.length - 1; - const idxRange = focusArea.map(v => Math.round(v * maxIdx)); - return array.slice(idxRange[0], idxRange[1] + 1); -} - -// ---------------------------------------------------------------------------- - -function rescaleValue(value, focusArea) { - if (!focusArea) { - return value; - } - return (value - focusArea[0]) / (focusArea[1] - focusArea[0]); -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = { - applyGaussianToPiecewiseFunction, - computeOpacities, - createListener, - drawChart, - findGaussian, - listenerSelector, - normalizeCoordinates -}; - -// ---------------------------------------------------------------------------- -// vtkPiecewiseGaussianWidget methods -// ---------------------------------------------------------------------------- - -function vtkPiecewiseGaussianWidget(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPiecewiseGaussianWidget'); - if (!model.canvas) { - model.canvas = document.createElement('canvas'); - } - publicAPI.setContainer = el => { - if (model.container && model.container !== el) { - model.container.removeChild(model.canvas); - } - if (model.container !== el) { - model.container = el; - if (model.container) { - model.container.appendChild(model.canvas); - } - publicAPI.modified(); - } - }; - publicAPI.setGaussians = gaussians => { - if (model.gaussians === gaussians) { - return; - } - model.gaussians = gaussians; - model.opacities = computeOpacities(model.gaussians, model.piecewiseSize); - publicAPI.invokeOpacityChange(publicAPI); - publicAPI.modified(); - }; - publicAPI.addGaussian = (position, height, width, xBias, yBias) => { - const nextIndex = model.gaussians.length; - model.gaussians.push({ - position, - height, - width, - xBias, - yBias - }); - model.opacities = computeOpacities(model.gaussians, model.piecewiseSize); - publicAPI.invokeOpacityChange(publicAPI); - publicAPI.modified(); - return nextIndex; - }; - publicAPI.removeGaussian = index => { - model.gaussians.splice(index, 1); - model.opacities = computeOpacities(model.gaussians, model.piecewiseSize); - publicAPI.invokeOpacityChange(publicAPI); - publicAPI.modified(); - }; - publicAPI.setSize = (width, height) => { - model.canvas.setAttribute('width', width); - model.canvas.setAttribute('height', height); - if (model.size[0] !== width || model.size[1] !== height) { - model.size = [width, height]; - model.colorCanvasMTime = 0; - publicAPI.modified(); - } - }; - publicAPI.updateStyle = style => { - model.style = { - ...model.style, - ...style - }; - publicAPI.modified(); - }; - - // Method used to compute and show data distribution in the background. - // When an array with many components is used, you can provide additional - // information to choose which component you want to extract the histogram - // from. - - publicAPI.setDataArray = function (array) { - let { - numberOfBinToConsiders = 1, - numberOfBinsToSkip = 1, - numberOfComponents = 1, - component = 0 - } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - model.histogram = null; - model.histogramArray = array; - model.dataRange = arrayRange(array, component, numberOfComponents); - const [min, max] = model.dataRange; - const maxNumberOfWorkers = 4; - let arrayStride = Math.floor(array.length / maxNumberOfWorkers) || 1; - arrayStride += arrayStride % numberOfComponents; - let arrayIndex = 0; - const workerChunks = []; - const workers = []; - while (arrayIndex < array.length) { - const worker = new WorkerFactory(); - workers.push(worker); - const workerPromise = new WebworkerPromise(worker); - const arrayStart = arrayIndex; - const arrayEnd = Math.min(arrayIndex + arrayStride, array.length - 1); - const subArray = new array.constructor(array.slice(arrayStart, arrayEnd + 1)); - workerChunks.push(workerPromise.postMessage({ - array: subArray, - component, - numberOfComponents, - min, - max, - numberOfBins: model.numberOfBins - }, [subArray.buffer])); - arrayIndex += arrayStride; - } - Promise.all(workerChunks).then(subHistograms => { - workers.forEach(worker => worker.terminate()); - model.histogram = new Float32Array(model.numberOfBins); - model.histogram.fill(0); - subHistograms.forEach(subHistogram => { - for (let i = 0, len = subHistogram.length; i < len; ++i) { - model.histogram[i] += subHistogram[i]; - } - }); - - // Smart Rescale Histogram - const sampleSize = Math.min(numberOfBinToConsiders, model.histogram.length - numberOfBinsToSkip); - const sortedArray = Array.from(model.histogram); - sortedArray.sort((a, b) => Number(a) - Number(b)); - for (let i = 0; i < numberOfBinsToSkip; i++) { - sortedArray.pop(); - } - while (sortedArray.length > sampleSize) { - sortedArray.shift(); - } - const mean = sortedArray.reduce((a, b) => a + b, 0) / sampleSize; - for (let i = 0, len = model.histogram.length; i < len; ++i) { - model.histogram[i] /= mean; - } - publicAPI.modified(); - setTimeout(publicAPI.render, 0); - }); - publicAPI.modified(); - }; - publicAPI.onClick = (x, y) => { - const [xNormalized, yNormalized] = normalizeCoordinates(x, y, model.graphArea, model.enableRangeZoom ? model.rangeZoom : null); - if (xNormalized < 0 && model.style.iconSize > 1) { - // Control buttons - const delta = model.style.iconSize + model.style.padding; - let offset = delta; - let buttonIdx = 0; - while (y > offset) { - buttonIdx += 1; - offset += delta; - } - switch (buttonIdx) { - case 0: - { - const gaussianIdx = publicAPI.addGaussian(0, 1, 0.1, 0, 0); - const gaussian = model.gaussians[gaussianIdx]; - const originalGaussian = { - ...gaussian - }; - const action = ACTIONS.adjustPosition; - model.activeGaussian = gaussianIdx; - model.selectedGaussian = gaussianIdx; - - // Fake active action - macro.setImmediate(() => { - publicAPI.onDown(x, y); - model.dragAction = { - originalXY: [0, 0], - action, - gaussian, - originalGaussian - }; - }); - break; - } - case 1: - { - if (model.selectedGaussian !== -1) { - publicAPI.removeGaussian(model.selectedGaussian); - } - break; - } - default: - { - model.selectedGaussian = -1; - model.dragAction = null; - } - } - } else if (xNormalized < 0 || xNormalized > 1 || yNormalized < 0 || yNormalized > 1) { - model.selectedGaussian = -1; - model.dragAction = null; - } else { - const newSelected = findGaussian(xNormalized, model.gaussians); - if (newSelected !== model.selectedGaussian) { - model.selectedGaussian = newSelected; - publicAPI.modified(); - } - } - return true; - }; - publicAPI.onHover = (x, y) => { - // Determines the interaction region size for adjusting the Gaussian's - // height. - const tolerance = 20 / model.canvas.height; - const [xNormalized, yNormalized] = normalizeCoordinates(x, y, model.graphArea, model.enableRangeZoom ? model.rangeZoom : null); - const [xNormalizedAbs] = normalizeCoordinates(x, y, model.graphArea); - const newActive = xNormalized < 0 ? model.selectedGaussian : findGaussian(xNormalized, model.gaussians); - model.canvas.style.cursor = 'default'; - const gaussian = model.gaussians[newActive]; - if (model.enableRangeZoom && xNormalizedAbs >= 0 && y < model.graphArea[1] - 6 // circle radius - ) { - const thirdDelta = (model.rangeZoom[1] - model.rangeZoom[0]) / 3; - if (xNormalizedAbs < model.rangeZoom[0] + thirdDelta || xNormalizedAbs > model.rangeZoom[1] - thirdDelta) { - model.canvas.style.cursor = ACTION_TO_CURSOR.adjustZoom; - } else { - model.canvas.style.cursor = ACTION_TO_CURSOR.adjustPosition; - } - model.dragAction = { - rangeZoom: model.rangeZoom, - action: ACTIONS.adjustZoom - }; - } else if (gaussian && xNormalizedAbs >= 0) { - const invY = 1 - yNormalized; - let actionName = null; - if (invY > gaussian.height + tolerance) { - actionName = 'adjustPosition'; - } else if (invY > gaussian.height - tolerance) { - if (Math.abs(xNormalized - gaussian.position) < tolerance) { - actionName = 'adjustHeight'; - } else { - actionName = 'adjustPosition'; - } - } else if (invY > gaussian.height * 0.5 + tolerance) { - actionName = 'adjustPosition'; - } else if (invY > gaussian.height * 0.5 - tolerance) { - if (Math.abs(xNormalized - gaussian.position) < tolerance) { - actionName = 'adjustBias'; - } else { - actionName = 'adjustPosition'; - } - } else if (invY > tolerance) { - actionName = 'adjustPosition'; - } else { - actionName = 'adjustWidth'; - } - model.canvas.style.cursor = ACTION_TO_CURSOR[actionName]; - const action = ACTIONS[actionName]; - const originalGaussian = { - ...gaussian - }; - model.dragAction = { - originalXY: [xNormalized, yNormalized], - action, - gaussian, - originalGaussian - }; - } - if (newActive !== model.activeGaussian) { - model.activeGaussian = newActive; - publicAPI.modified(); - } - return true; - }; - publicAPI.onDown = (x, y) => { - if (!model.mouseIsDown) { - publicAPI.invokeAnimation(true); - } - model.mouseIsDown = true; - const xNormalized = normalizeCoordinates(x, y, model.graphArea, model.enableRangeZoom ? model.rangeZoom : null)[0]; - const newSelected = findGaussian(xNormalized, model.gaussians); - model.gaussianSide = 0; - const gaussian = model.gaussians[newSelected]; - if (gaussian) { - model.gaussianSide = gaussian.position - xNormalized; - } - if (newSelected !== model.selectedGaussian && xNormalized > 0) { - model.selectedGaussian = newSelected; - publicAPI.modified(); - } - return true; - }; - publicAPI.onDrag = (x, y) => { - if (model.dragAction) { - const [xNormalized, yNormalized] = normalizeCoordinates(x, y, model.graphArea, model.enableRangeZoom ? model.rangeZoom : null); - const { - action - } = model.dragAction; - if (action(xNormalized, yNormalized, { - gaussianSide: model.gaussianSide, - model, - publicAPI, - ...model.dragAction - })) { - model.opacities = computeOpacities(model.gaussians, model.piecewiseSize); - publicAPI.invokeOpacityChange(publicAPI, true); - } - publicAPI.modified(); - } - return true; - }; - publicAPI.onUp = (x, y) => { - if (model.mouseIsDown) { - publicAPI.invokeAnimation(false); - } - model.mouseIsDown = false; - return true; - }; - publicAPI.onLeave = (x, y) => { - publicAPI.onUp(x, y); - model.canvas.style.cursor = 'default'; - model.activeGaussian = -1; - publicAPI.modified(); - return true; - }; - publicAPI.onAddGaussian = (x, y) => { - const [xNormalized, yNormalized] = normalizeCoordinates(x, y, model.graphArea, model.enableRangeZoom ? model.rangeZoom : null); - if (xNormalized >= 0) { - publicAPI.addGaussian(xNormalized, 1 - yNormalized, 0.1, 0, 0); - } - return true; - }; - publicAPI.onRemoveGaussian = (x, y) => { - const xNormalized = normalizeCoordinates(x, y, model.graphArea, model.enableRangeZoom ? model.rangeZoom : null)[0]; - const newSelected = findGaussian(xNormalized, model.gaussians); - if (xNormalized >= 0 && newSelected !== -1) { - publicAPI.removeGaussian(newSelected); - } - return true; - }; - publicAPI.bindMouseListeners = () => { - if (!model.listeners) { - const isDown = () => !!model.mouseIsDown; - const touchId = createTouchClickListener({ - clicks: 1, - touches: 1, - action: publicAPI.onClick - }, { - clicks: 2, - touches: 1, - action: publicAPI.onAddGaussian - }, { - clicks: 2, - touches: 2, - action: publicAPI.onRemoveGaussian - }); - model.listeners = { - mousemove: listenerSelector(isDown, createListener(publicAPI.onDrag), createListener(publicAPI.onHover)), - dblclick: createListener(publicAPI.onAddGaussian), - contextmenu: createListener(publicAPI.onRemoveGaussian), - click: createListener(publicAPI.onClick), - mouseup: createListener(publicAPI.onUp), - mousedown: createListener(publicAPI.onDown), - mouseout: createListener(publicAPI.onLeave), - touchstart: createTouchListener(touchId, macro.chain(publicAPI.onHover, publicAPI.onDown)), - touchmove: listenerSelector(isDown, createTouchListener(touchId, publicAPI.onDrag), createTouchListener(touchId, publicAPI.onHover)), - touchend: createTouchListener(touchId, publicAPI.onUp, 0) // touchend have 0 touch event... - }; - - Object.keys(model.listeners).forEach(eventType => { - model.canvas.addEventListener(eventType, model.listeners[eventType], false); - }); - } - }; - publicAPI.unbindMouseListeners = () => { - if (model.listeners) { - Object.keys(model.listeners).forEach(eventType => { - model.canvas.removeEventListener(eventType, model.listeners[eventType]); - }); - delete model.listeners; - } - }; - publicAPI.render = () => { - const ctx = model.canvas.getContext('2d'); - ctx.imageSmoothingEnabled = true; - const [width, height] = model.size; - const offset = model.style.padding; - const graphArea = [Math.floor(model.style.iconSize + offset), Math.floor(offset), Math.ceil(width - 2 * offset - model.style.iconSize), Math.ceil(height - 2 * offset)]; - const zoomControlHeight = model.style.zoomControlHeight; - if (model.enableRangeZoom) { - graphArea[1] += Math.floor(zoomControlHeight); - graphArea[3] -= Math.floor(zoomControlHeight); - } - model.graphArea = graphArea; - - // Clear canvas - ctx.clearRect(0, 0, width, height); - ctx.lineJoin = 'round'; - ctx.fillStyle = model.style.backgroundColor; - ctx.fillRect(...graphArea); - if (model.style.iconSize > 1) { - // Draw icons - // + - const halfSize = Math.round(model.style.iconSize / 2 - model.style.strokeWidth); - const center = Math.round(halfSize + offset + model.style.strokeWidth); - ctx.beginPath(); - ctx.lineWidth = model.style.buttonStrokeWidth; - ctx.strokeStyle = model.style.buttonStrokeColor; - ctx.arc(center - offset / 2, center, halfSize, 0, 2 * Math.PI, false); - ctx.fillStyle = model.style.buttonFillColor; - ctx.fill(); - ctx.stroke(); - ctx.moveTo(center - halfSize + model.style.strokeWidth + 2 - offset / 2, center); - ctx.lineTo(center + halfSize - model.style.strokeWidth - 2 - offset / 2, center); - ctx.stroke(); - ctx.moveTo(center - offset / 2, center - halfSize + model.style.strokeWidth + 2); - ctx.lineTo(center - offset / 2, center + halfSize - model.style.strokeWidth - 2); - ctx.stroke(); - - // - - if (model.selectedGaussian === -1) { - ctx.fillStyle = model.style.buttonDisableFillColor; - ctx.lineWidth = model.style.buttonDisableStrokeWidth; - ctx.strokeStyle = model.style.buttonDisableStrokeColor; - } else { - ctx.fillStyle = model.style.buttonFillColor; - ctx.lineWidth = model.style.buttonStrokeWidth; - ctx.strokeStyle = model.style.buttonStrokeColor; - } - ctx.beginPath(); - ctx.arc(center - offset / 2, center + offset / 2 + model.style.iconSize, halfSize, 0, 2 * Math.PI, false); - ctx.fill(); - ctx.stroke(); - ctx.moveTo(center - halfSize + model.style.strokeWidth + 2 - offset / 2, center + offset / 2 + model.style.iconSize); - ctx.lineTo(center + halfSize - model.style.strokeWidth - 2 - offset / 2, center + offset / 2 + model.style.iconSize); - ctx.stroke(); - } - - // Draw histogram - if (model.histogram) { - drawChart(ctx, graphArea, rescaleArray(model.histogram, model.rangeZoom), { - lineWidth: 1, - strokeStyle: model.style.histogramColor, - fillStyle: model.style.histogramColor - }); - } - - // Draw gaussians - drawChart(ctx, graphArea, rescaleArray(model.opacities, model.enableRangeZoom && model.rangeZoom), { - lineWidth: model.style.strokeWidth, - strokeStyle: model.style.strokeColor - }); - - // Draw color function if any - if (model.colorTransferFunction && model.colorTransferFunction.getSize()) { - const rangeToUse = model.dataRange || model.colorTransferFunction.getMappingRange(); - if (!model.colorCanvas || model.colorCanvasMTime !== model.colorTransferFunction.getMTime()) { - model.colorCanvasMTime = model.colorTransferFunction.getMTime(); - model.colorCanvas = updateColorCanvas(model.colorTransferFunction, graphArea[2], rangeToUse, model.colorCanvas); - } - ctx.save(); - drawChart(ctx, graphArea, rescaleArray(model.opacities, model.enableRangeZoom && model.rangeZoom), { - lineWidth: 1, - strokeStyle: 'rgba(0,0,0,0)', - fillStyle: 'rgba(0,0,0,1)', - clip: true - }); - - // Draw the correct portion of the color BG image - if (model.enableRangeZoom) { - ctx.drawImage(model.colorCanvas, model.rangeZoom[0] * graphArea[2], 0, graphArea[2], graphArea[3], graphArea[0], graphArea[1], graphArea[2] / (model.rangeZoom[1] - model.rangeZoom[0]), graphArea[3]); - } else { - ctx.drawImage(model.colorCanvas, graphArea[0], graphArea[1]); - } - ctx.restore(); - } else if (model.backgroundImage) { - model.colorCanvas = updateColorCanvasFromImage(model.backgroundImage, graphArea[2], model.colorCanvas); - ctx.save(); - drawChart(ctx, graphArea, rescaleArray(model.opacities, model.enableRangeZoom && model.rangeZoom), { - lineWidth: 1, - strokeStyle: 'rgba(0,0,0,0)', - fillStyle: 'rgba(0,0,0,1)', - clip: true - }); - ctx.drawImage(model.colorCanvas, graphArea[0], graphArea[1]); - ctx.restore(); - } - - // Draw zoomed area - if (model.enableRangeZoom) { - ctx.fillStyle = model.style.zoomControlColor; - ctx.beginPath(); - ctx.rect(graphArea[0] + model.rangeZoom[0] * graphArea[2], 0, (model.rangeZoom[1] - model.rangeZoom[0]) * graphArea[2], zoomControlHeight); - ctx.fill(); - } - - // Draw active gaussian - const activeGaussian = model.gaussians[model.activeGaussian] || model.gaussians[model.selectedGaussian]; - if (activeGaussian) { - const activeOpacities = computeOpacities([activeGaussian], graphArea[2]); - drawChart(ctx, graphArea, rescaleArray(activeOpacities, model.enableRangeZoom && model.rangeZoom), { - lineWidth: model.style.activeStrokeWidth, - strokeStyle: model.style.activeColor - }); - // Draw controls - const xCenter = graphArea[0] + rescaleValue(activeGaussian.position, model.enableRangeZoom && model.rangeZoom) * graphArea[2]; - const yTop = graphArea[1] + (1 - activeGaussian.height) * graphArea[3]; - const yMiddle = graphArea[1] + (1 - 0.5 * activeGaussian.height) * graphArea[3]; - const yBottom = graphArea[1] + graphArea[3]; - let widthInPixel = activeGaussian.width * graphArea[2]; - if (model.enableRangeZoom) { - widthInPixel /= model.rangeZoom[1] - model.rangeZoom[0]; - } - ctx.lineWidth = model.style.handleWidth; - ctx.strokeStyle = model.style.handleColor; - ctx.fillStyle = model.style.backgroundColor; - ctx.beginPath(); - ctx.moveTo(xCenter, graphArea[1] + (1 - activeGaussian.height) * graphArea[3]); - ctx.lineTo(xCenter, graphArea[1] + graphArea[3]); - ctx.stroke(); - // Height - ctx.beginPath(); - ctx.arc(xCenter, yTop, 6, 0, 2 * Math.PI); - ctx.fill(); - ctx.stroke(); - // Bias - const radius = Math.min(widthInPixel * 0.1, activeGaussian.height * graphArea[3] * 0.2); - ctx.beginPath(); - ctx.rect(xCenter - radius, yMiddle - radius, radius * 2, radius * 2); - ctx.fill(); - ctx.stroke(); - ctx.beginPath(); - // Width - const sliderWidth = widthInPixel * 0.8; - ctx.rect(xCenter - sliderWidth, yBottom - 5, 2 * sliderWidth, 10); - ctx.fill(); - ctx.stroke(); - } - }; - publicAPI.getOpacityNodes = dataRange => { - const rangeToUse = dataRange || model.dataRange; - const delta = (rangeToUse[1] - rangeToUse[0]) / (model.opacities.length - 1); - const nodes = []; - const midpoint = 0.5; - const sharpness = 0; - for (let index = 0; index < model.opacities.length; index++) { - const x = rangeToUse[0] + delta * index; - const y = model.opacities[index]; - nodes.push({ - x, - y, - midpoint, - sharpness - }); - } - return nodes; - }; - publicAPI.applyOpacity = (piecewiseFunction, dataRange) => { - const nodes = publicAPI.getOpacityNodes(dataRange); - piecewiseFunction.setNodes(nodes); - }; - publicAPI.getOpacityRange = dataRange => { - const rangeToUse = dataRange || model.dataRange; - const delta = (rangeToUse[1] - rangeToUse[0]) / (model.opacities.length - 1); - let minIndex = model.opacities.length - 1; - let maxIndex = 0; - for (let index = 0; index < model.opacities.length; index++) { - if (model.opacities[index] > 0) { - minIndex = Math.min(minIndex, index); - } - if (model.opacities[index] > 0) { - maxIndex = Math.max(maxIndex, index); - } - } - return [rangeToUse[0] + minIndex * delta, rangeToUse[0] + maxIndex * delta]; - }; - const enableZoom = publicAPI.setEnableRangeZoom; - publicAPI.setEnableRangeZoom = v => { - const change = enableZoom(v); - if (change) { - model.colorCanvasMTime = 0; - model.rangeZoom = [0, 1]; - } - return change; - }; - const rangeZoom = publicAPI.setRangeZoom; - publicAPI.setRangeZoom = function () { - const change = rangeZoom(...arguments); - if (change) { - model.colorCanvasMTime = 0; - } - return change; - }; - - // Trigger rendering for any modified event - publicAPI.onModified(() => publicAPI.render()); - publicAPI.setSize(...model.size); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - histogram: [], - numberOfBins: 256, - histogramArray: null, - dataRange: [0, 1], - gaussians: [], - opacities: [], - size: [600, 300], - piecewiseSize: 256, - colorCanvasMTime: 0, - gaussianMinimumHeight: 0.05, - style: { - backgroundColor: 'rgba(255, 255, 255, 1)', - histogramColor: 'rgba(200, 200, 200, 0.5)', - strokeColor: 'rgb(0, 0, 0)', - activeColor: 'rgb(0, 0, 150)', - buttonDisableFillColor: 'rgba(255, 255, 255, 0.5)', - buttonDisableStrokeColor: 'rgba(0, 0, 0, 0.5)', - buttonStrokeColor: 'rgba(0, 0, 0, 1)', - buttonFillColor: 'rgba(255, 255, 255, 1)', - handleColor: 'rgb(0, 150, 0)', - strokeWidth: 2, - activeStrokeWidth: 3, - buttonStrokeWidth: 1.5, - handleWidth: 3, - iconSize: 20, - padding: 10, - zoomControlHeight: 10, - zoomControlColor: '#999' - }, - activeGaussian: -1, - selectedGaussian: -1, - enableRangeZoom: true, - rangeZoom: [0, 1] // normalized value -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['piecewiseSize', 'numberOfBins', 'colorTransferFunction', 'backgroundImage', 'enableRangeZoom', 'gaussianMinimumHeight']); - macro.setGetArray(publicAPI, model, ['rangeZoom'], 2); - macro.get(publicAPI, model, ['size', 'canvas', 'gaussians']); - macro.event(publicAPI, model, 'opacityChange'); - macro.event(publicAPI, model, 'animation'); - macro.event(publicAPI, model, 'zoomChange'); - - // Object specific methods - vtkPiecewiseGaussianWidget(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPiecewiseGaussianWidget'); - -// ---------------------------------------------------------------------------- - -var vtkPiecewiseGaussianWidget$1 = { - newInstance, - extend, - ...STATIC -}; - -export { STATIC, vtkPiecewiseGaussianWidget$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets/PiecewiseGaussianWidget/ComputeHistogram.worker.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets/PiecewiseGaussianWidget/ComputeHistogram.worker.js deleted file mode 100644 index 27da0e5a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/Widgets/PiecewiseGaussianWidget/ComputeHistogram.worker.js +++ /dev/null @@ -1,21 +0,0 @@ -import registerWebworker from 'webworker-promise/lib/register'; - -/* eslint-disable */ -// prettier-ignore -registerWebworker(function (message, emit) { - var array = message.array; - var min = message.min; - var max = message.max; - var offset = message.component || 0; - var step = message.numberOfComponents || 1; - var numberOfBins = message.numberOfBins; - var delta = max - min; - var histogram = new Float32Array(numberOfBins); - histogram.fill(0); - var len = array.length; - for (var i = offset; i < len; i += step) { - var idx = Math.floor((numberOfBins - 1) * (Number(array[i]) - min) / delta); - histogram[idx] += 1; - } - return Promise.resolve(new registerWebworker.TransferableResponse(histogram, [histogram.buffer])); -}); diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/index.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/index.js deleted file mode 100644 index 593ae198..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Interaction/index.js +++ /dev/null @@ -1,15 +0,0 @@ -import Manipulators from './Manipulators.js'; -import Misc from './Misc.js'; -import Style from './Style.js'; -import UI from './UI.js'; -import Widgets from './Widgets.js'; - -var Interaction = { - Manipulators, - Misc, - Style, - UI, - Widgets -}; - -export { Interaction as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/LICENSE b/build_vtk_bundle/node_modules/@kitware/vtk.js/LICENSE deleted file mode 100644 index 14ed3a9d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2016, Kitware Inc. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -- Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -- Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -- Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Animation/AbstractAnimationProxy.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Animation/AbstractAnimationProxy.js deleted file mode 100644 index b9028ce9..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Animation/AbstractAnimationProxy.js +++ /dev/null @@ -1,47 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkAbstractAnimationProxy methods -// ---------------------------------------------------------------------------- - -function vtkAbstractAnimationProxy(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkAbstractAnimationProxy'); - - // Initialization ------------------------------------------------------------ - publicAPI.setTime = time => {}; - publicAPI.getFrames = () => []; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - - // Object specific methods - vtkAbstractAnimationProxy(publicAPI, model); - - // Proxy handling - macro.proxy(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkAbstractAnimationProxy'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -export { index as default, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Animation/AnimationProxyManager.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Animation/AnimationProxyManager.js deleted file mode 100644 index 1801722b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Animation/AnimationProxyManager.js +++ /dev/null @@ -1,113 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkAnimationProxyManager methods -// ---------------------------------------------------------------------------- - -function vtkAnimationProxyManager(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkAnimationProxyManager'); - - // Initialization ------------------------------------------------------------ - - publicAPI.addAnimation = animation => { - if (!model.animations.includes(animation)) { - model.animations.push(animation); - } - animation.onModified(publicAPI.updateFrames); - publicAPI.updateFrames(); - }; - publicAPI.play = () => { - const currentTime = model.frames[model.currentFrameIndex]; - const nextTime = model.frames[model.currentFrameIndex + 1]; - clearTimeout(model.timeOut); - if (model.currentFrameIndex < model.frames.length - 1) { - model.timeOut = setTimeout(() => { - publicAPI.nextFrame(); - publicAPI.play(); - }, (nextTime - currentTime) * 1000); - } else { - publicAPI.invokeDonePlaying(); - } - }; - publicAPI.pause = () => { - clearTimeout(model.timeOut); - model.timeOut = null; - }; - publicAPI.nextFrame = () => { - if (model.currentFrameIndex < model.frames.length - 1) { - publicAPI.setFrameIndex(model.currentFrameIndex + 1); - } - }; - publicAPI.previousFrame = () => { - if (model.currentFrameIndex > 0) { - publicAPI.setFrameIndex(model.currentFrameIndex - 1); - } - }; - publicAPI.firstFrame = () => { - publicAPI.setFrameIndex(0); - }; - publicAPI.lastFrame = () => { - publicAPI.setFrameIndex(model.frames.length - 1); - }; - publicAPI.setFrameIndex = frameId => { - model.currentFrameIndex = frameId; - model.animations.forEach(animationProxy => { - animationProxy.setTime(model.frames[model.currentFrameIndex]); - }); - publicAPI.invokeCurrentFrameChanged(); - }; - publicAPI.updateFrames = () => { - const frames = []; - model.animations.forEach(animationProxy => { - frames.push(...animationProxy.getFrames()); - }); - model.frames = frames.sort((a, b) => a - b).filter((val, index, array) => array.indexOf(val) === index); // remove duplicates - publicAPI.invokeFramesChanged(); - // Reset animation as frames changed. - publicAPI.setFrameIndex(0); - }; - publicAPI.getCurrentFrame = () => model.frames[model.currentFrameIndex]; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - animations: [], - currentFrameIndex: 0, - frames: [], - timeOut: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['frames', 'currentFrameIndex']); - - // Object specific methods - vtkAnimationProxyManager(publicAPI, model); - - // Proxy handling - macro.proxy(publicAPI, model); - macro.event(publicAPI, model, 'currentFrameChanged'); - macro.event(publicAPI, model, 'framesChanged'); - macro.event(publicAPI, model, 'donePlaying'); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkAnimationProxyManager'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -export { index as default, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Animation/TimeStepBasedAnimationHandlerProxy.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Animation/TimeStepBasedAnimationHandlerProxy.js deleted file mode 100644 index 3de50ed8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Animation/TimeStepBasedAnimationHandlerProxy.js +++ /dev/null @@ -1,60 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkTimeStepBasedAnimationHandlerProxy methods -// ---------------------------------------------------------------------------- - -function vtkTimeStepBasedAnimationHandlerProxy(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkTimeStepBasedAnimationHandlerProxy'); - - // Initialization ------------------------------------------------------------ - publicAPI.setTime = time => { - model.handler.setCurrentTimeStep(time); - }; - publicAPI.getFrames = () => { - if (!model.handler) { - return []; - } - return model.handler.getTimeSteps(); - }; - publicAPI.setInputAnimationHandler = handler => { - model.handler = handler; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - handler: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['handler']); - - // Object specific methods - vtkTimeStepBasedAnimationHandlerProxy(publicAPI, model); - - // Proxy handling - macro.proxy(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkTimeStepBasedAnimationHandlerProxy'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -export { index as default, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core.js deleted file mode 100644 index f4baa7d8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core.js +++ /dev/null @@ -1,19 +0,0 @@ -import vtkAbstractRepresentationProxy from './Core/AbstractRepresentationProxy.js'; -import vtkLookupTableProxy from './Core/LookupTableProxy.js'; -import vtkPiecewiseFunctionProxy from './Core/PiecewiseFunctionProxy.js'; -import vtkProxyManager from './Core/ProxyManager.js'; -import vtkSourceProxy from './Core/SourceProxy.js'; -import vtkView2DProxy from './Core/View2DProxy.js'; -import vtkViewProxy from './Core/ViewProxy.js'; - -var Core = { - vtkAbstractRepresentationProxy, - vtkLookupTableProxy, - vtkPiecewiseFunctionProxy, - vtkProxyManager, - vtkSourceProxy, - vtkView2DProxy, - vtkViewProxy -}; - -export { Core as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/AbstractRepresentationProxy.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/AbstractRepresentationProxy.d.ts deleted file mode 100644 index 9c6ca076..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/AbstractRepresentationProxy.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { VtkProxy } from './../../macros'; -import { vtkSourceProxy } from './SourceProxy'; -import { vtkAbstractMapper } from './../../Rendering/Core/AbstractMapper'; -import { vtkActor } from './../../Rendering/Core/Actor'; -import { vtkVolume } from './../../Rendering/Core/Volume'; - -export interface vtkAbstractRepresentationProxy extends VtkProxy { - setInput(source: vtkSourceProxy): void; - getInputDataSet(): vtkObject | null; - setColorBy( - arrayName: string | null, - arrayLocation: string, - componentIndex?: number - ); - setRescaleOnColorBy(rescale: boolean): boolean; - getRescaleOnColorBy(): boolean; - getInput(): VtkProxy; - getMapper(): vtkAbstractMapper; - getActors(): vtkActor[]; - getVolumes(): vtkVolume[]; -} - -declare const vtkAbstractRepresentationProxy: vtkAbstractRepresentationProxy; -export default vtkAbstractRepresentationProxy; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/AbstractRepresentationProxy.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/AbstractRepresentationProxy.js deleted file mode 100644 index ff80a198..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/AbstractRepresentationProxy.js +++ /dev/null @@ -1,279 +0,0 @@ -import { e as setGet, g as get, p as proxy, h as chain } from '../../macros2.js'; -import vtkProp from '../../Rendering/Core/Prop.js'; -import vtkMapper from '../../Rendering/Core/Mapper.js'; -import vtkScalarsToColors from '../../Common/Core/ScalarsToColors.js'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; - -// ---------------------------------------------------------------------------- -// vtkAbstractRepresentationProxy methods -// ---------------------------------------------------------------------------- - -function vtkAbstractRepresentationProxy(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkAbstractRepresentationProxy'); - function updateConnectivity() { - if (model.input) { - for (let i = 0; i < model.sourceDependencies.length; ++i) { - model.sourceDependencies[i].setInputData(model.input.getDataset()); - } - } - } - publicAPI.setInput = source => { - if (model.sourceSubscription) { - model.sourceSubscription.unsubscribe(); - model.sourceSubscription = null; - } - publicAPI.gcPropertyLinks('source'); - model.input = source; - publicAPI.updateColorByDomain(); - if (model.input) { - updateConnectivity(); - model.sourceSubscription = model.input.onDatasetChange(updateConnectivity); - } - - // Allow dynamic registration of links at the source level - if (model.links) { - for (let i = 0; i < model.links.length; i++) { - const { - link, - property, - persistent, - updateOnBind, - type - } = model.links[i]; - if (type === undefined || type === 'source') { - const sLink = source.getPropertyLink(link, persistent); - publicAPI.registerPropertyLinkForGC(sLink, 'source'); - sLink.bind(publicAPI, property, updateOnBind); - } - } - } - }; - publicAPI.getInputDataSet = () => model.input ? model.input.getDataset() : null; - publicAPI.getDataArray = (arrayName, arrayLocation) => { - const [selectedArray, selectedLocation] = publicAPI.getColorBy(); - const ds = publicAPI.getInputDataSet(); - const fields = ds ? ds.getReferenceByName(arrayLocation || selectedLocation) : null; - const array = fields ? fields.getArrayByName(arrayName || selectedArray) : null; - return array; - }; - publicAPI.getLookupTableProxy = arrayName => { - const arrayNameToUse = arrayName || publicAPI.getColorBy()[0]; - if (arrayNameToUse) { - return model.proxyManager.getLookupTable(arrayNameToUse); - } - return null; - }; - - // In place edits, no need to re-assign it... - publicAPI.setLookupTableProxy = () => {}; - publicAPI.getPiecewiseFunctionProxy = arrayName => { - const arrayNameToUse = arrayName || publicAPI.getColorBy()[0]; - if (arrayNameToUse) { - return model.proxyManager.getPiecewiseFunction(arrayNameToUse); - } - return null; - }; - - // In place edits, no need to re-assign it... - publicAPI.setPiecewiseFunctionProxy = () => {}; - publicAPI.rescaleTransferFunctionToDataRange = function (n, l) { - let c = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1; - const array = publicAPI.getDataArray(n, l); - const dataRange = array.getRange(c); - model.proxyManager.rescaleTransferFunctionToDataRange(n, dataRange); - }; - publicAPI.isVisible = () => { - if (model.actors.length) { - return model.actors[0].getVisibility(); - } - if (model.volumes.length) { - return model.volumes[0].getVisibility(); - } - return false; - }; - publicAPI.setVisibility = visible => { - let change = 0; - let count = model.actors.length; - while (count--) { - change += model.actors[count].setVisibility(visible); - } - count = model.volumes.length; - while (count--) { - change += model.volumes[count].setVisibility(visible); - } - if (change) { - publicAPI.modified(); - } - }; - publicAPI.setColorBy = function (arrayName, arrayLocation) { - let componentIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1; - let colorMode = vtkMapper.ColorMode.DEFAULT; - let scalarMode = vtkMapper.ScalarMode.DEFAULT; - const colorByArrayName = arrayName; - const activeArray = publicAPI.getDataArray(arrayName, arrayLocation); - const scalarVisibility = !!activeArray; - const lookupTable = arrayName ? publicAPI.getLookupTableProxy(arrayName).getLookupTable() : null; - if (lookupTable) { - if (componentIndex === -1) { - lookupTable.setVectorModeToMagnitude(); - } else { - lookupTable.setVectorModeToComponent(); - lookupTable.setVectorComponent(componentIndex); - } - } - if (scalarVisibility) { - colorMode = vtkMapper.ColorMode.MAP_SCALARS; - scalarMode = arrayLocation === 'pointData' ? vtkMapper.ScalarMode.USE_POINT_FIELD_DATA : vtkMapper.ScalarMode.USE_CELL_FIELD_DATA; - if (model.mapper.setLookupTable) { - model.mapper.setLookupTable(lookupTable); - } - if (model.rescaleOnColorBy) { - publicAPI.rescaleTransferFunctionToDataRange(arrayName, arrayLocation, componentIndex); - } - } - - // Not all mappers have those fields - model.mapper.set({ - colorByArrayName, - colorMode, - scalarMode, - scalarVisibility - }, true); - }; - publicAPI.getColorBy = () => { - if (!model.mapper.getColorByArrayName) { - const ds = publicAPI.getInputDataSet(); - if (ds.getPointData().getScalars()) { - return [ds.getPointData().getScalars().getName(), 'pointData', -1]; - } - if (ds.getCellData().getScalars()) { - return [ds.getCellData().getScalars().getName(), 'cellData', -1]; - } - if (ds.getPointData().getNumberOfArrays()) { - return [ds.getPointData().getArrayByIndex(0).getName(), 'pointData', -1]; - } - if (ds.getCellData().getNumberOfArrays()) { - return [ds.getCellData().getArrayByIndex(0).getName(), 'cellData', -1]; - } - return []; - } - const result = []; - const { - colorByArrayName, - colorMode, - scalarMode, - scalarVisibility - } = model.mapper.get('colorByArrayName', 'colorMode', 'scalarMode', 'scalarVisibility'); - if (scalarVisibility && colorByArrayName) { - result.push(colorByArrayName); - result.push(scalarMode === vtkMapper.ScalarMode.USE_POINT_FIELD_DATA ? 'pointData' : 'cellData'); - } - if (colorMode === vtkMapper.ColorMode.MAP_SCALARS && colorByArrayName) { - const lut = publicAPI.getLookupTableProxy(colorByArrayName).getLookupTable(); - const componentIndex = lut.getVectorMode() === vtkScalarsToColors.VectorMode.MAGNITUDE ? -1 : lut.getVectorComponent(); - result.push(componentIndex); - } - return result; - }; - publicAPI.listDataArrays = () => { - const arrayList = []; - if (!model.input) { - return arrayList; - } - const dataset = publicAPI.getInputDataSet(); - - // Point data - const pointData = dataset.getPointData(); - let size = pointData.getNumberOfArrays(); - for (let idx = 0; idx < size; idx++) { - const array = pointData.getArrayByIndex(idx); - arrayList.push({ - name: array.getName(), - location: 'pointData', - numberOfComponents: array.getNumberOfComponents(), - dataRange: array.getRange() - }); - } - - // Cell data - const cellData = dataset.getCellData(); - size = cellData.getNumberOfArrays(); - for (let idx = 0; idx < size; idx++) { - const array = cellData.getArrayByIndex(idx); - arrayList.push({ - name: array.getName(), - location: 'cellData', - numberOfComponents: array.getNumberOfComponents(), - dataRange: array.getRange() - }); - } - return arrayList; - }; - publicAPI.updateColorByDomain = () => { - publicAPI.updateProxyProperty('colorBy', { - domain: { - arrays: publicAPI.listDataArrays(), - solidColor: !model.disableSolidColor - } - }); - }; - publicAPI.delete = chain(() => { - if (model.sourceSubscription) { - model.sourceSubscription.unsubscribe(); - model.sourceSubscription = null; - } - }, publicAPI.delete); - - // Fast getter for rendering - const nestedProps = []; - const bbox = [...vtkBoundingBox.INIT_BOUNDS]; - function handleProp(prop) { - if (prop) { - vtkBoundingBox.addBounds(bbox, prop.getBounds()); - nestedProps.push(prop); - } - } - publicAPI.getNestedProps = () => nestedProps; - publicAPI.getBounds = () => { - if (model.boundMTime < model.mtime) { - model.boundMTime = model.mtime; - vtkBoundingBox.reset(bbox); - nestedProps.length = 0; - model.actors.forEach(handleProp); - model.volumes.forEach(handleProp); - } - return bbox; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - boundMTime: 0, - actors: [], - volumes: [], - sourceDependencies: [], - rescaleOnColorBy: true -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkProp.extend(publicAPI, model, initialValues); - setGet(publicAPI, model, ['rescaleOnColorBy']); - get(publicAPI, model, ['input', 'mapper', 'actors', 'volumes']); - - // Object specific methods - vtkAbstractRepresentationProxy(publicAPI, model); - proxy(publicAPI, model); -} -var vtkAbstractRepresentationProxy$1 = { - extend -}; - -export { vtkAbstractRepresentationProxy$1 as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/LookupTableProxy.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/LookupTableProxy.d.ts deleted file mode 100644 index 9942afbf..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/LookupTableProxy.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { VtkProxy } from './../../macros'; -import vtkColorTransferFunction from './../../Rendering/Core/ColorTransferFunction'; - -// [x, r/h, g/s, b/v, m=0.5, s=0.0] -export type RGBHSVPoint = [number, number, number, number, number?, number?]; - -export enum Mode { - Preset = 0, - RGBPoints = 1, - HSVPoints = 2, - Nodes = 3, -} - -export interface vtkLookupTableProxy extends VtkProxy { - setPresetName(name: string): void; - getPresetName(): string; - setRGBPoints(points: RGBHSVPoint[]): void; - getRGBPoints(): RGBHSVPoint[]; - setHSVPoints(points: RGBHSVPoint[]): void; - getHSVPoints(): RGBHSVPoint[]; - // Node: { x, y, midpoint, sharpness } - setNodes(nodes: number[][]): void; - getNodes(nodes): number[][]; - setMode(mode: number): void; - getMode(): number; - applyMode(): void; - setDataRange(min: number, max: number): void; - getDataRange(): [number, number]; - getLookupTable(): vtkColorTransferFunction; -} - -export interface ILookupTableProxyInitialValues { - lookupTable?: vtkColorTransferFunction; -} - -export function newInstance( - initialValues?: ILookupTableProxyInitialValues -): vtkLookupTableProxy; - -export declare const vtkLookupTableProxy: { - newInstance: typeof newInstance; - Mode: Mode; -}; - -export default vtkLookupTableProxy; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/LookupTableProxy.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/LookupTableProxy.js deleted file mode 100644 index 282784be..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/LookupTableProxy.js +++ /dev/null @@ -1,145 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkColorMaps from '../../Rendering/Core/ColorTransferFunction/ColorMaps.js'; -import vtkColorTransferFunction from '../../Rendering/Core/ColorTransferFunction.js'; -import Constants from './LookupTableProxy/Constants.js'; - -const { - Mode, - Defaults -} = Constants; - -// ---------------------------------------------------------------------------- -// vtkLookupTableProxy methods -// ---------------------------------------------------------------------------- - -function vtkLookupTableProxy(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkLookupTableProxy'); - model.lookupTable = model.lookupTable || vtkColorTransferFunction.newInstance(); - - // Initialize lookup table - model.lookupTable.setVectorModeToMagnitude(); - - // Takes a preset colormap name - publicAPI.setPresetName = presetName => { - if (model.presetName !== presetName) { - model.presetName = presetName; - model.mode = Mode.Preset; - publicAPI.applyMode(); - } - }; - - // Takes an array of points [x, r, g, b, m=0.5, s=0.0] - publicAPI.setRGBPoints = rgbPoints => { - if (model.rgbPoints !== rgbPoints) { - model.rgbPoints = (rgbPoints || Defaults.RGBPoints).slice(); - publicAPI.applyMode(); - } - }; - - // Takes an array of points [x, h, s, v, m=0.5, s=0.0] - publicAPI.setHSVPoints = hsvPoints => { - if (model.hsvPoints !== hsvPoints) { - model.hsvPoints = (hsvPoints || Defaults.HSVPoints).slice(); - publicAPI.applyMode(); - } - }; - - // Takes an array of ColorTransferFunction nodes - publicAPI.setNodes = nodes => { - if (model.nodes !== nodes) { - model.nodes = (nodes || Defaults.Nodes).slice(); - publicAPI.applyMode(); - } - }; - publicAPI.setMode = mode => { - if (model.mode !== mode) { - model.mode = mode; - publicAPI.applyMode(); - } - }; - publicAPI.applyMode = () => { - switch (model.mode) { - case Mode.Preset: - { - const preset = vtkColorMaps.getPresetByName(model.presetName); - if (preset) { - model.lookupTable.applyColorMap(preset); - } - } - break; - case Mode.RGBPoints: - model.lookupTable.removeAllPoints(); - model.rgbPoints.forEach(point => model.lookupTable.addRGBPointLong(...point)); - break; - case Mode.HSVPoints: - model.lookupTable.removeAllPoints(); - model.hsvPoints.forEach(point => model.lookupTable.addHSVPointLong(...point)); - break; - case Mode.Nodes: - model.lookupTable.setNodes(model.nodes); - break; - // noop - } - - model.lookupTable.setMappingRange(model.dataRange[0], model.dataRange[1]); - model.lookupTable.updateRange(); - publicAPI.modified(); - }; - publicAPI.setDataRange = (min, max) => { - if (model.dataRange[0] !== min || model.dataRange[1] !== max) { - model.dataRange[0] = min; - model.dataRange[1] = max; - model.lookupTable.setMappingRange(model.dataRange[0], model.dataRange[1]); - model.lookupTable.updateRange(); - publicAPI.applyMode(); - } - }; - - // Initialization ------------------------------------------------------------ - - publicAPI.applyMode(); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - mode: Mode.Preset, - presetName: Defaults.Preset, - rgbPoints: Defaults.RGBPoints, - hsvPoints: Defaults.HSVPoints, - nodes: Defaults.Nodes, - arrayName: 'No array associated', - arrayLocation: 'pointData', - dataRange: [0, 1] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['arrayName']); - macro.get(publicAPI, model, ['mode', 'lookupTable', 'presetName', 'rgbPoints', 'hsvPoints', 'nodes', 'dataRange']); - - // Object specific methods - vtkLookupTableProxy(publicAPI, model); - - // Proxy handling - macro.proxy(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkLookupTableProxy'); -var vtkLookupTableProxy$1 = { - newInstance, - extend, - Mode, - Defaults -}; - -export { Mode, vtkLookupTableProxy$1 as default, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/LookupTableProxy/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/LookupTableProxy/Constants.js deleted file mode 100644 index 06de1ef5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/LookupTableProxy/Constants.js +++ /dev/null @@ -1,32 +0,0 @@ -const Mode = { - Preset: 0, - RGBPoints: 1, - HSVPoints: 2, - Nodes: 3 -}; -const Defaults = { - Preset: 'Cool to Warm', - RGBPoints: [[0, 0, 0, 0], [1, 1, 1, 1]], - HSVPoints: [[0, 0, 0, 0], [1, 0, 0, 1]], - Nodes: [{ - x: 0, - r: 0, - g: 0, - b: 0, - midpoint: 0.5, - sharpness: 0 - }, { - x: 1, - r: 1, - g: 1, - b: 1, - midpoint: 0.5, - sharpness: 0 - }] -}; -var Constants = { - Defaults, - Mode -}; - -export { Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/PiecewiseFunctionProxy.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/PiecewiseFunctionProxy.d.ts deleted file mode 100644 index 75ff1ffe..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/PiecewiseFunctionProxy.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -import vtkLookupTableProxy from './LookupTableProxy'; -import vtkPiecewiseFunction from './../../Common/DataModel/PiecewiseFunction'; -import { VtkProxy } from './../../macros'; - -// [x, r/h, g/s, b/v, m=0.5, s=0.0] -export interface PiecewiseGaussian { - position: number; - height: number; - width: number; - xBias: number; - yBias: number; -} - -export interface PiecewiseNode { - x: number; - y: number; - midpoint: number; - sharpness: number; -} - -export enum IPiecewiseFunctionProxyMode { - Gaussians = 0, - Points = 1, - Nodes = 2, -} - -export interface IPiecewiseFunctionProxyDefaults { - Gaussians: PiecewiseGaussian[]; - Points: number[][]; - Nodes: PiecewiseNode[]; -} - -export interface vtkPiecewiseFunctionProxy extends VtkProxy { - setGaussians(gaussians: PiecewiseGaussian[]): void; - getGaussians(): PiecewiseGaussian[]; - setPoints(points: number[][]): void; - getPoints(): number[][]; - setNodes(nodes: PiecewiseNode[]): void; - getNodes(): PiecewiseNode[]; - setMode(mode: number): void; - getMode(): number; - applyMode(): void; - getLookupTableProxy(): vtkLookupTableProxy; - setDataRange(min: number, max: number): void; - getDataRange(): [number, number]; - getPiecewiseFunction(): vtkPiecewiseFunction; -} - -export interface IPiecewiseFunctionProxyInitialValues { - piecewiseFunction?: vtkPiecewiseFunction; -} - -export function newInstance( - initialValues?: IPiecewiseFunctionProxyInitialValues -): vtkPiecewiseFunctionProxy; - -export declare const vtkPiecewiseFunctionProxy: { - newInstance: typeof newInstance; - Mode: typeof IPiecewiseFunctionProxyMode; - Defaults: IPiecewiseFunctionProxyDefaults; -}; -export default vtkPiecewiseFunctionProxy; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/PiecewiseFunctionProxy.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/PiecewiseFunctionProxy.js deleted file mode 100644 index b387aa09..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/PiecewiseFunctionProxy.js +++ /dev/null @@ -1,163 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPiecewiseFunction from '../../Common/DataModel/PiecewiseFunction.js'; -import vtkPiecewiseGaussianWidget from '../../Interaction/Widgets/PiecewiseGaussianWidget.js'; -import Constants from './PiecewiseFunctionProxy/Constants.js'; - -const { - Mode, - Defaults -} = Constants; - -// ---------------------------------------------------------------------------- - -function applyPointsToPiecewiseFunction(points, range, pwf) { - const width = range[1] - range[0]; - const rescaled = points.map(_ref => { - let [x, y] = _ref; - return [x * width + range[0], y]; - }); - pwf.removeAllPoints(); - rescaled.forEach(_ref2 => { - let [x, y] = _ref2; - return pwf.addPoint(x, y); - }); -} - -// ---------------------------------------------------------------------------- - -function applyNodesToPiecewiseFunction(nodes, range, pwf) { - const width = range[1] - range[0]; - const rescaled = nodes.map(n => ({ - ...n, - x: n.x * width + range[0] - })); - pwf.setNodes(rescaled); -} - -// ---------------------------------------------------------------------------- - -function copyGaussians(gaussians) { - // gaussians is assumed to be an array of gaussian objects - return gaussians.map(g => ({ - ...g - })); -} - -// ---------------------------------------------------------------------------- -// vtkPiecewiseFunctionProxy methods -// ---------------------------------------------------------------------------- - -function vtkPiecewiseFunctionProxy(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPiecewiseFunctionProxy'); - model.piecewiseFunction = model.piecewiseFunction || vtkPiecewiseFunction.newInstance(); - - // Takes an array of gaussians - publicAPI.setGaussians = gaussians => { - model.gaussians = copyGaussians(gaussians || []); - if (model.gaussians.length === 0) { - model.gaussians = copyGaussians(Defaults.Gaussians); - } - publicAPI.applyMode(); - }; - - // Takes an array of points [x, y] - publicAPI.setPoints = points => { - model.points = (points || []).slice(); - if (model.points.length === 0) { - model.points = Defaults.Points.slice(); - } - publicAPI.applyMode(); - }; - - // Takes an array of PiecewiseFunction nodes - publicAPI.setNodes = nodes => { - model.nodes = (nodes || []).slice(); - if (model.nodes.length === 0) { - model.nodes = Defaults.Nodes.slice(); - } - publicAPI.applyMode(); - }; - publicAPI.setMode = mode => { - if (model.mode === mode) { - return; - } - model.mode = mode; - publicAPI.applyMode(); - }; - publicAPI.applyMode = () => { - switch (model.mode) { - case Mode.Gaussians: - vtkPiecewiseGaussianWidget.applyGaussianToPiecewiseFunction(model.gaussians, 255, model.dataRange, model.piecewiseFunction); - publicAPI.modified(); - break; - case Mode.Points: - applyPointsToPiecewiseFunction(model.points, model.dataRange, model.piecewiseFunction); - publicAPI.modified(); - break; - case Mode.Nodes: - applyNodesToPiecewiseFunction(model.nodes, model.dataRange, model.piecewiseFunction); - publicAPI.modified(); - break; - // noop - } - }; - - publicAPI.getLookupTableProxy = () => model.proxyManager.getLookupTable(model.arrayName); - publicAPI.setDataRange = (min, max) => { - if (model.dataRange[0] !== min || model.dataRange[1] !== max) { - model.dataRange[0] = min; - model.dataRange[1] = max; - publicAPI.applyMode(); - } - }; - - // Initialization ------------------------------------------------------------ - - publicAPI.applyMode(); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - mode: Mode.Gaussians, - gaussians: Defaults.Gaussians, - points: Defaults.Points, - nodes: Defaults.Nodes, - arrayName: 'No array associated', - arrayLocation: 'pointData', - dataRange: [0, 1] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['arrayName']); - macro.get(publicAPI, model, ['piecewiseFunction', 'gaussians', 'nodes', 'points', 'mode', 'dataRange']); - - // Object specific methods - vtkPiecewiseFunctionProxy(publicAPI, model); - - // Proxy handling - macro.proxy(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPiecewiseFunctionProxy'); - -// ---------------------------------------------------------------------------- - -var vtkPiecewiseFunctionProxy$1 = { - newInstance, - extend, - Mode, - Defaults -}; - -export { vtkPiecewiseFunctionProxy$1 as default, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/PiecewiseFunctionProxy/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/PiecewiseFunctionProxy/Constants.js deleted file mode 100644 index 0e2bb64f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/PiecewiseFunctionProxy/Constants.js +++ /dev/null @@ -1,32 +0,0 @@ -const Defaults = { - Gaussians: [{ - position: 0.5, - height: 1, - width: 0.5, - xBias: 0.5, - yBias: 0.5 - }], - Points: [[0, 0], [1, 1]], - Nodes: [{ - x: 0, - y: 0, - midpoint: 0.5, - sharpness: 0 - }, { - x: 1, - y: 1, - midpoint: 0.5, - sharpness: 0 - }] -}; -const Mode = { - Gaussians: 0, - Points: 1, - Nodes: 2 -}; -var Constants = { - Defaults, - Mode -}; - -export { Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ProxyManager.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ProxyManager.d.ts deleted file mode 100644 index 02706770..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ProxyManager.d.ts +++ /dev/null @@ -1,115 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { vtkSourceProxy } from './SourceProxy'; -import { vtkViewProxy } from './ViewProxy'; -import { vtkAbstractRepresentationProxy } from './AbstractRepresentationProxy'; -import { vtkLookupTableProxy } from './LookupTableProxy'; -import { vtkPiecewiseFunctionProxy } from './PiecewiseFunctionProxy'; -import { VtkProxy } from './../../macros'; - -export type ProxyConfiguration = object; - -export interface ProxyRegistrationChangeInfo { - action: 'register' | 'unregister'; - proxyId: string; - proxyName: string; - proxyGroup: string; - proxy: VtkProxy; -} - -export interface IProxyManagerInitialValues { - proxyConfiguration?: ProxyConfiguration; -} - -export interface vtkProxyManager extends vtkObject { - // core // - - setProxyConfiguration(config: ProxyConfiguration): boolean; - getProxyConfiguration(): ProxyConfiguration; - - setActiveSource(sourceProxy: vtkSourceProxy): boolean; - getActiveSource(): vtkSourceProxy; - - setActiveView(viewProxy: vtkViewProxy): boolean; - getActiveView(): vtkViewProxy; - - onProxyRegistrationChange( - callback: (changeInfo: ProxyRegistrationChangeInfo) => void - ); - - getProxyById(id: string): T | undefined; - getProxyGroups(): string[]; - getProxyInGroup(groupName: string): VtkProxy[]; - - getSources(): vtkSourceProxy[]; - getRepresentations(): vtkAbstractRepresentationProxy[]; - getViews(): vtkViewProxy[]; - - createProxy( - group: string, - name: string, - options?: Object - ): T; - - getRepresentation( - source: vtkSourceProxy, - view: vtkViewProxy - ): T | null; - - deleteProxy(proxy: VtkProxy): void; - - // view // - - render(view?: vtkViewProxy): void; - renderAllViews(): void; - setAnimationOnAllViews(): void; - autoAnimateViews(debounceTimeout: number): void; - resizeAllViews(): void; - resetCamera(view?: vtkViewProxy): void; - createRepresentationInAllViews(source: vtkSourceProxy): void; - resetCameraInAllViews(): void; - - // properties // - - // these are specific to the proxy configuration... - getLookupTable(arrayName: string, options?: any): vtkLookupTableProxy; - getPiecewiseFunction( - arrayName: string, - options?: any - ): vtkPiecewiseFunctionProxy; - rescaleTransferFunctionToDataRange( - arrayName: string, - dataRange: [number, number] - ): void; -} - -/** - * Decorates a given publicAPI + model with vtkProxyManager characteristics. - * - * @param publicAPI - * @param model - * @param {IProxyManagerInitialValues} [initialValues] - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IProxyManagerInitialValues -): void; - -/** - * Creates a vtkProxyManager. - * @param {IProxyManagerInitialValues} [initialValues] - */ -export function newInstance( - initialValues?: IProxyManagerInitialValues -): vtkProxyManager; - -/** - * vtkProxyManager is the central manager for managing proxy resources - * in vtk.js. - */ -export declare const vtkProxyManager: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkProxyManager; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ProxyManager.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ProxyManager.js deleted file mode 100644 index 4de51b0b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ProxyManager.js +++ /dev/null @@ -1,53 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import addRegistrationAPI from './ProxyManager/core.js'; -import addStateAPI from './ProxyManager/state.js'; -import addViewHandlingAPI from './ProxyManager/view.js'; -import addVPropertyHandlingAPI from './ProxyManager/properties.js'; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, { - proxyIdMapping: {}, - proxyByGroup: {}, - proxyConfiguration: {}, - // { definitions: {}, representations: { viewName: { sourceType: representationName } } } - sv2rMapping: {}, - // sv2rMapping[sourceId][viewId] = rep - r2svMapping: {}, - // r2svMapping[representationId] = { sourceId, viewId } - collapseState: {}, - lookupTables: {}, - piecewiseFunctions: {}, - animating: false - }, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['proxyConfiguration', 'activeSource', 'activeView']); - macro.event(publicAPI, model, 'ActiveSourceChange'); - macro.event(publicAPI, model, 'ActiveViewChange'); - macro.event(publicAPI, model, 'ProxyRegistrationChange'); - addRegistrationAPI(publicAPI, model); - addStateAPI(publicAPI); - addViewHandlingAPI(publicAPI, model); - addVPropertyHandlingAPI(publicAPI, model); - - // Add proxy API - macro.proxy(publicAPI, model); - model.classHierarchy.push('vtkProxyManager'); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkProxyManager'); - -// ---------------------------------------------------------------------------- - -var vtkProxyManager = { - newInstance, - extend -}; - -export { vtkProxyManager as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ProxyManager/core.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ProxyManager/core.js deleted file mode 100644 index c9ad5574..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ProxyManager/core.js +++ /dev/null @@ -1,236 +0,0 @@ -import { m as macro } from '../../../macros2.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// Proxy Registration Handling -// ---------------------------------------------------------------------------- - -function addRegistrationAPI(publicAPI, model) { - function registerProxy(proxy) { - if (!proxy) { - return; - } - model.proxyIdMapping[proxy.getProxyId()] = proxy; - const group = proxy.getProxyGroup(); - if (!model.proxyByGroup[group]) { - model.proxyByGroup[group] = []; - } - if (model.proxyByGroup[group].indexOf(proxy) === -1) { - model.proxyByGroup[group].push(proxy); - } - proxy.setProxyManager(publicAPI); - - // Make sure we invoke event after the current execution path - macro.setImmediate(() => { - publicAPI.invokeProxyRegistrationChange({ - action: 'register', - proxyId: proxy.getProxyId(), - proxyName: proxy.getProxyName(), - proxyGroup: proxy.getProxyGroup(), - proxy - }); - }); - } - - // -------------------------------------------------------------------------- - - function unRegisterProxy(proxyOrId) { - const id = proxyOrId.getProxyId ? proxyOrId.getProxyId() : proxyOrId; - const proxy = model.proxyIdMapping[id]; - - // Unregister proxy in any group - Object.keys(model.proxyByGroup).forEach(groupName => { - const proxyList = model.proxyByGroup[groupName]; - const index = proxyList.indexOf(proxy); - if (index !== -1) { - proxyList.splice(index, 1); - } - }); - delete model.proxyIdMapping[id]; - proxy.gcPropertyLinks('application'); - proxy.gcPropertyLinks('source'); - proxy.setProxyManager(null); - publicAPI.invokeProxyRegistrationChange({ - action: 'unregister', - proxyId: id, - proxyName: proxy.getProxyName(), - proxyGroup: proxy.getProxyGroup(), - proxy - }); - return proxy; - } - - // -------------------------------------------------------------------------- - - publicAPI.setActiveSource = source => { - if (model.activeSource !== source) { - if (model.activeSourceSubscription) { - model.activeSourceSubscription.unsubscribe(); - model.activeSourceSubscription = null; - } - model.activeSource = source; - if (source) { - model.activeSourceSubscription = source.onModified(publicAPI.modified); - } - publicAPI.modified(); - publicAPI.invokeActiveSourceChange(source); - } - }; - publicAPI.setActiveView = view => { - if (model.activeView !== view) { - if (model.activeViewSubscription) { - model.activeViewSubscription.unsubscribe(); - model.activeViewSubscription = null; - } - model.activeView = view; - if (view) { - model.activeViewSubscription = view.onModified(publicAPI.modified); - } - publicAPI.modified(); - publicAPI.invokeActiveViewChange(view); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.getProxyById = id => model.proxyIdMapping[id]; - - // -------------------------------------------------------------------------- - - publicAPI.getProxyGroups = () => Object.keys(model.proxyByGroup); - - // -------------------------------------------------------------------------- - - publicAPI.getProxyInGroup = name => [].concat(model.proxyByGroup[name] || []); - - // -------------------------------------------------------------------------- - - publicAPI.getSources = () => [].concat(model.proxyByGroup.Sources || []); - publicAPI.getRepresentations = () => [].concat(model.proxyByGroup.Representations || []); - publicAPI.getViews = () => [].concat(model.proxyByGroup.Views || []); - - // -------------------------------------------------------------------------- - - publicAPI.createProxy = (group, name, options) => { - const { - definitions - } = model.proxyConfiguration; - if (!definitions[group] || !definitions[group][name]) { - return null; - } - const definition = definitions[group][name]; - const definitionOptions = { - ...definition.options, - ...options - }; - const proxy = definition.class.newInstance({ - ...definitionOptions, - proxyGroup: group, - proxyName: name, - proxyManager: publicAPI - }); - - // Handle proxy property settings - if (definition.proxyProps) { - const proxyMap = {}; - Object.keys(definition.proxyProps).forEach(key => { - const newProxyDef = definition.proxyProps[key]; - proxyMap[key] = publicAPI.createProxy(newProxyDef.group, newProxyDef.name, newProxyDef.options); - }); - proxy.set(proxyMap); - } - - // Handle property setting - if (definition.props) { - proxy.set(definition.props); - } - registerProxy(proxy); - if (definitionOptions.activateOnCreate) { - proxy.activate(); - } - return proxy; - }; - - // -------------------------------------------------------------------------- - - publicAPI.getRepresentation = (source, view) => { - const sourceToUse = source || publicAPI.getActiveSource(); - const viewToUse = view || publicAPI.getActiveView(); - - // Can only get a representation for a source and a view - if (!sourceToUse || !viewToUse || !sourceToUse.getType()) { - return null; - } - const sourceId = sourceToUse.getProxyId(); - const viewId = viewToUse.getProxyId(); - let viewRepMap = model.sv2rMapping[sourceId]; - if (!viewRepMap) { - viewRepMap = {}; - model.sv2rMapping[sourceId] = viewRepMap; - } - let rep = viewRepMap[viewId]; - if (!rep) { - const viewName = viewToUse.getProxyName(); - const sourceType = sourceToUse.getType(); - const definition = model.proxyConfiguration.representations[viewName][sourceType]; - if (!definition) { - vtkErrorMacro(`No definition for representation of ${sourceType} in view ${viewName}`); - return null; - } - rep = publicAPI.createProxy('Representations', definition.name, definition.options); - model.r2svMapping[rep.getProxyId()] = { - sourceId, - viewId - }; - viewRepMap[viewId] = rep; - rep.setInput(sourceToUse); - viewToUse.addRepresentation(rep); - } - return rep; - }; - - // -------------------------------------------------------------------------- - - publicAPI.deleteProxy = proxy => { - const group = proxy.getProxyGroup().toLowerCase(); - if (group === 'views') { - proxy.getRepresentations().forEach(repProxy => { - publicAPI.deleteProxy(repProxy); - }); - proxy.setContainer(null); - unRegisterProxy(proxy); - if (publicAPI.getActiveView() === proxy) { - publicAPI.setActiveView(publicAPI.getViews()[0]); - } - } else if (group === 'representations') { - const { - sourceId, - viewId - } = model.r2svMapping[proxy.getProxyId()]; - const view = publicAPI.getProxyById(viewId); - view.removeRepresentation(proxy); - delete model.r2svMapping[proxy.getProxyId()]; - delete model.sv2rMapping[sourceId][viewId]; - unRegisterProxy(proxy); - } else if (group === 'sources') { - const viewToRep = model.sv2rMapping[proxy.getProxyId()]; - Object.keys(viewToRep).forEach(viewId => { - publicAPI.deleteProxy(viewToRep[viewId]); - }); - unRegisterProxy(proxy); - if (publicAPI.getActiveSource() === proxy) { - publicAPI.setActiveSource(publicAPI.getSources()[0]); - } - } else { - unRegisterProxy(proxy); - } - - // Delete the object itself - proxy.delete(); - }; -} - -export { addRegistrationAPI as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ProxyManager/properties.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ProxyManager/properties.js deleted file mode 100644 index c7e104b4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ProxyManager/properties.js +++ /dev/null @@ -1,122 +0,0 @@ -function addVPropertyHandlingAPI(publicAPI, model) { - // -------------------------------------------------------------------------- - // Property management - // -------------------------------------------------------------------------- - - publicAPI.getSections = () => { - const sections = []; - const source = publicAPI.getActiveSource(); - if (!source) { - return []; - } - const view = publicAPI.getActiveView(); - if (source) { - const section = source.getProxySection(); - if (section.ui.length) { - sections.push(Object.assign(section, { - collapsed: model.collapseState[section.name] - })); - } - } - if (source && view) { - const representation = publicAPI.getRepresentation(source, view); - if (representation) { - const section = representation.getProxySection(); - if (section.ui.length) { - sections.push(Object.assign(section, { - collapsed: model.collapseState[section.name] - })); - } - } - } - if (view) { - const section = view.getProxySection(); - if (section.ui.length) { - sections.push(Object.assign(section, { - collapsed: model.collapseState[section.name] - })); - } - } - return sections; - }; - - // -------------------------------------------------------------------------- - - publicAPI.updateCollapseState = (name, state) => { - model.collapseState[name] = state; - publicAPI.modified(); - }; - - // -------------------------------------------------------------------------- - - publicAPI.applyChanges = changeSet => { - const groupBy = {}; - const keys = Object.keys(changeSet); - let count = keys.length; - while (count--) { - const key = keys[count]; - const [id, prop] = key.split(':'); - if (!groupBy[id]) { - groupBy[id] = {}; - } - if (changeSet[key] === '__command_execute__') { - const obj = publicAPI.getProxyById(id); - if (obj) { - obj[prop](); - } - } else { - groupBy[id][prop] = changeSet[key]; - } - } - - // Apply changes - const objIds = Object.keys(groupBy); - count = objIds.length; - while (count--) { - const id = objIds[count]; - const obj = publicAPI.getProxyById(id); - if (obj) { - obj.set(groupBy[id]); - } - } - publicAPI.modified(); - publicAPI.renderAllViews(); - }; - - // -------------------------------------------------------------------------- - // Color Management - // -------------------------------------------------------------------------- - - publicAPI.getLookupTable = (arrayName, options) => { - if (!model.lookupTables[arrayName]) { - model.lookupTables[arrayName] = publicAPI.createProxy('Proxy', 'LookupTable', { - arrayName, - ...options - }); - } - return model.lookupTables[arrayName]; - }; - - // -------------------------------------------------------------------------- - - publicAPI.getPiecewiseFunction = (arrayName, options) => { - if (!model.piecewiseFunctions[arrayName]) { - model.piecewiseFunctions[arrayName] = publicAPI.createProxy('Proxy', 'PiecewiseFunction', { - arrayName, - ...options - }); - } - return model.piecewiseFunctions[arrayName]; - }; - - // -------------------------------------------------------------------------- - - publicAPI.rescaleTransferFunctionToDataRange = (arrayName, dataRange) => { - const lut = publicAPI.getLookupTable(arrayName); - const pwf = publicAPI.getPiecewiseFunction(arrayName); - lut.setDataRange(dataRange[0], dataRange[1]); - pwf.setDataRange(dataRange[0], dataRange[1]); - }; -} - -export { addVPropertyHandlingAPI as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ProxyManager/state.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ProxyManager/state.js deleted file mode 100644 index f0733b0e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ProxyManager/state.js +++ /dev/null @@ -1,215 +0,0 @@ -import vtk from '../../../vtk.js'; -import vtkPiecewiseFunctionProxy from '../PiecewiseFunctionProxy.js'; - -function getProperties(proxy) { - const props = {}; - proxy.listPropertyNames().forEach(name => { - props[name] = proxy.getPropertyByName(name).value; - }); - return props; -} - -// ---------------------------------------------------------------------------- -// Proxy State Handling -// ---------------------------------------------------------------------------- - -function addStateAPI(publicAPI, model) { - publicAPI.loadState = function (state) { - let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return new Promise((resolve, reject) => { - const proxyMapping = {}; - const $oldToNewIdMapping = {}; - const cameras = {}; - const datasetHandler = options.datasetHandler || vtk; - const sourcePromises = []; - state.sources.forEach(_ref => { - let { - id, - group, - name, - props - } = _ref; - sourcePromises.push(Promise.resolve(datasetHandler(props.dataset)).then(dataset => { - if (dataset) { - const proxy = publicAPI.createProxy(group, name); - proxy.setName(props.name); - proxy.setInputData(dataset, props.type); - proxyMapping[id] = proxy; - return proxy; - } - return null; - })); - }); - Promise.all(sourcePromises).then(() => { - const views = publicAPI.getViews(); - state.views.forEach(_ref2 => { - let { - id, - group, - name, - props, - camera - } = _ref2; - let proxy = null; - if (state.options.recycleViews) { - proxy = views.find(v => v.getProxyGroup() === group && v.getProxyName() === name && v.getName() === props.name); - } - if (!proxy) { - proxy = publicAPI.createProxy(group, name, { - disableAnimation: true - }); - } else { - proxy.setDisableAnimation(true); - } - proxy.set(props, true); - proxyMapping[id] = proxy; - cameras[id] = camera; - }); - function updateView(view) { - if (!proxyMapping[view] || !cameras[view]) { - return; - } - proxyMapping[view].resetOrientation().then(() => { - proxyMapping[view].getCamera().set(cameras[view]); - proxyMapping[view].getRenderer().updateLightsGeometryToFollowCamera(); - proxyMapping[view].renderLater(); - }); - } - state.representations.forEach(_ref3 => { - let { - source, - view, - props - } = _ref3; - const proxy = publicAPI.getRepresentation(proxyMapping[source], proxyMapping[view]); - proxy.set(props, true); - updateView(view); - }); - - // restore luts and pwfs after restoring reps to avoid - // rep initialization from resetting restored luts/pwfs - Object.keys(state.fields).forEach(fieldName => { - const { - lookupTable, - piecewiseFunction - } = state.fields[fieldName]; - const lutProxy = publicAPI.getLookupTable(fieldName, lookupTable); - lutProxy.setPresetName(lookupTable.presetName); - lutProxy.setDataRange(...lookupTable.dataRange); - const pwfProxy = publicAPI.getPiecewiseFunction(fieldName, piecewiseFunction); - switch (piecewiseFunction.mode) { - case vtkPiecewiseFunctionProxy.Mode.Gaussians: - pwfProxy.setGaussians(piecewiseFunction.gaussians); - break; - case vtkPiecewiseFunctionProxy.Mode.Points: - pwfProxy.setPoints(piecewiseFunction.points); - break; - case vtkPiecewiseFunctionProxy.Mode.Nodes: - pwfProxy.setNodes(piecewiseFunction.nodes); - break; - } - pwfProxy.setMode(piecewiseFunction.mode); - pwfProxy.setDataRange(...piecewiseFunction.dataRange); - }); - - // Apply camera no matter what - Object.keys(cameras).forEach(updateView); - - // Create id mapping - Object.keys(proxyMapping).forEach(originalId => { - const newId = proxyMapping[originalId].getProxyId(); - $oldToNewIdMapping[originalId] = newId; - }); - - // Re-enable animation on views - state.views.forEach(_ref4 => { - let { - id - } = _ref4; - proxyMapping[id].setDisableAnimation(false); - }); - resolve({ - ...state.userData, - $oldToNewIdMapping - }); - }).catch(reject); - }); - }; - publicAPI.saveState = function () { - let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - let userData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return new Promise((resolve, reject) => { - const sources = publicAPI.getSources(); - // const representations = publicAPI.getRepresentations(); - const views = publicAPI.getViews(); - - // Extract handlers - const datasetHandler = options.datasetHandler || (d => d.getState()); - delete options.datasetHandler; - const datasets = []; - const fieldNames = new Set(); - const state = { - userData, - options, - sources: [], - views: [], - representations: [], - fields: {} - }; - sources.forEach(source => { - const dataset = Promise.resolve(datasetHandler(source.getDataset(), source)); - datasets.push(dataset); - state.sources.push({ - id: source.getProxyId(), - group: source.getProxyGroup(), - name: source.getProxyName(), - props: { - name: source.getName(), - type: source.getType(), - dataset - } - }); - }); - views.forEach(view => { - const camera = view.getCamera().get('position', 'viewUp', 'focalPoint'); - state.views.push({ - id: view.getProxyId(), - group: view.getProxyGroup(), - name: view.getProxyName(), - props: Object.assign(getProperties(view), view.get('axis', 'orientation', 'viewUp')), - camera - }); - - // Loop over view representations - const representations = view.getRepresentations(); - representations.forEach(representation => { - state.representations.push({ - source: representation.getInput().getProxyId(), - view: view.getProxyId(), - props: getProperties(representation) - }); - fieldNames.add(representation.getColorBy()[0]); - }); - }); - fieldNames.forEach(fieldName => { - state.fields[fieldName] = { - lookupTable: publicAPI.getLookupTable(fieldName).get('mode', 'presetName', 'rgbPoints', 'hsvPoints', 'nodes', 'arrayName', 'arrayLocation', 'dataRange'), - piecewiseFunction: publicAPI.getPiecewiseFunction(fieldName).get('mode', 'gaussians', 'points', 'nodes', 'arrayName', 'arrayLocation', 'dataRange') - }; - }); - Promise.all(datasets).then(() => { - // Patch datasets in state to the result of the promises - for (let i = 0; i < state.sources.length; i++) { - state.sources[i].props.dataset.then(value => { - state.sources[i].props.dataset = value; - }); - } - - // provide valide state - resolve(state); - }).catch(reject); - }); - }; -} - -export { addStateAPI as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ProxyManager/view.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ProxyManager/view.js deleted file mode 100644 index 2c402932..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ProxyManager/view.js +++ /dev/null @@ -1,101 +0,0 @@ -import { m as macro } from '../../../macros2.js'; - -function addViewHandlingAPI(publicAPI, model) { - publicAPI.create3DView = options => publicAPI.createProxy('Views', 'View3D', options); - - // -------------------------------------------------------------------------- - - publicAPI.create2DView = options => publicAPI.createProxy('Views', 'View2D', options); - - // -------------------------------------------------------------------------- - - publicAPI.render = view => { - const viewToRender = view || publicAPI.getActiveView(); - if (viewToRender) { - viewToRender.renderLater(); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.renderAllViews = function () { - let blocking = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - const allViews = publicAPI.getViews(); - for (let i = 0; i < allViews.length; i++) { - allViews[i].render(blocking); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.setAnimationOnAllViews = function () { - let enable = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - const allViews = publicAPI.getViews().filter(v => !enable || v.getContainer()); - for (let i = 0; i < allViews.length; i++) { - allViews[i].setAnimation(enable, publicAPI); - } - }; - - // -------------------------------------------------------------------------- - - function clearAnimations() { - model.animating = false; - const allViews = publicAPI.getViews(); - for (let i = 0; i < allViews.length; i++) { - allViews[i].setAnimation(false, publicAPI); - } - } - - // -------------------------------------------------------------------------- - - publicAPI.autoAnimateViews = function () { - let debouceTimout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 250; - if (!model.animating) { - model.animating = true; - const allViews = publicAPI.getViews().filter(v => v.getContainer()); - for (let i = 0; i < allViews.length; i++) { - allViews[i].setAnimation(true, publicAPI); - } - model.clearAnimations = macro.debounce(clearAnimations, debouceTimout); - } - model.clearAnimations(); - }; - - // -------------------------------------------------------------------------- - - publicAPI.resizeAllViews = () => { - const allViews = publicAPI.getViews(); - for (let i = 0; i < allViews.length; i++) { - allViews[i].resize(); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.resetCamera = view => { - const viewToRender = view || publicAPI.getActiveView(); - if (viewToRender && viewToRender.resetCamera) { - viewToRender.resetCamera(); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.createRepresentationInAllViews = source => { - const allViews = publicAPI.getViews(); - for (let i = 0; i < allViews.length; i++) { - publicAPI.getRepresentation(source, allViews[i]); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.resetCameraInAllViews = () => { - const allViews = publicAPI.getViews(); - for (let i = 0; i < allViews.length; i++) { - allViews[i].resetCamera(); - } - }; -} - -export { addViewHandlingAPI as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/SourceProxy.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/SourceProxy.d.ts deleted file mode 100644 index c4232d7b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/SourceProxy.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { vtkAlgorithm } from './../../interfaces'; -import { VtkProxy } from './../../macros'; - -export interface vtkSourceProxy extends VtkProxy { - setInputProxy(source: vtkSourceProxy): void; - setInputData(dataset: T, type?: string): void; - setInputAlgorithm( - algo: vtkAlgorithm, - type: string, - autoUpdate: boolean - ): void; - update(): void; - - getName(): string; - setName(name: string): boolean; - getType(): string; - getDataset(): T | null; - getAlgo(): vtkAlgorithm | null; - getInputProxy(): vtkSourceProxy | null; -} - -declare const _default: vtkSourceProxy; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/SourceProxy.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/SourceProxy.js deleted file mode 100644 index 67e09472..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/SourceProxy.js +++ /dev/null @@ -1,138 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkSourceProxy methods -// ---------------------------------------------------------------------------- - -function vtkSourceProxy(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkSourceProxy'); - - // API ---------------------------------------------------------------------- - - publicAPI.setInputProxy = source => { - if (model.inputSubscription) { - model.inputSubscription(); - model.inputSubscription = null; - } - model.inputProxy = source; - if (model.inputProxy) { - model.inputSubscription = source.onModified(publicAPI.update, -1).unsubscribe; // Trigger at next cycle - } - - publicAPI.update(); - }; - - // -------------------------------------------------------------------------- - - publicAPI.setInputData = (ds, type) => { - if (model.dataset !== ds) { - model.dataset = ds; - model.type = type || ds.getClassName(); - publicAPI.modified(); - publicAPI.invokeDatasetChange(); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.setInputAlgorithm = function (algo, type) { - let autoUpdate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - model.type = type; - if (model.algo !== algo) { - model.algo = algo; - if (model.algoSubscription) { - model.algoSubscription(); - model.algoSubscription = null; - } - if (algo && autoUpdate) { - model.algoSubscription = algo.onModified(() => { - publicAPI.update(); - }, -1).unsubscribe; // Trigger at next cycle - publicAPI.update(); - } - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.update = () => { - if (model.algo && model.inputProxy) { - model.algo.setInputData(model.inputProxy.getDataset()); - } - if (model.updateDomain && model.inputProxy) { - model.updateDomain(publicAPI, model.inputProxy.getDataset()); - } - if (model.algo) { - publicAPI.setInputData(model.algo.getOutputData(), model.type); - } - }; - publicAPI.getUpdate = () => model.algo.getMTime() > model.dataset.getMTime(); - - // -------------------------------------------------------------------------- - - publicAPI.delete = macro.chain(() => { - if (model.algoSubscription) { - model.algoSubscription(); - model.algoSubscription = null; - } - if (model.inputSubscription) { - model.inputSubscription(); - model.inputSubscription = null; - } - }, publicAPI.delete); - - // -------------------------------------------------------------------------- - // Initialisation - // -------------------------------------------------------------------------- - - if (model.inputProxy) { - model.inputSubscription = model.inputProxy.onModified(() => { - publicAPI.update(); - }, -1).unsubscribe; // Trigger at next cycle - } - - if (model.algoFactory) { - publicAPI.setInputAlgorithm(model.algoFactory.newInstance(), null, model.autoUpdate); - } - publicAPI.update(); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - name: 'Default source' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['name', 'type', 'dataset', 'algo', 'inputProxy']); - macro.set(publicAPI, model, ['name']); - macro.event(publicAPI, model, 'DatasetChange'); - macro.proxy(publicAPI, model); - - // Object specific methods - vtkSourceProxy(publicAPI, model); - if (model.proxyPropertyMapping) { - macro.proxyPropertyMapping(publicAPI, model, model.proxyPropertyMapping); - } -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSourceProxy'); - -// ---------------------------------------------------------------------------- - -var vtkSourceProxy$1 = { - newInstance, - extend -}; - -export { vtkSourceProxy$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/View2DProxy.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/View2DProxy.d.ts deleted file mode 100644 index e1d91c14..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/View2DProxy.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { vtkViewProxy } from './ViewProxy'; - -export interface vtkView2DProxy extends vtkViewProxy { - getAxis(): number; -} - -declare const _default: vtkView2DProxy; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/View2DProxy.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/View2DProxy.js deleted file mode 100644 index e7486b6a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/View2DProxy.js +++ /dev/null @@ -1,355 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkMouseRangeManipulator from '../../Interaction/Manipulators/MouseRangeManipulator.js'; -import vtkViewProxy from './ViewProxy.js'; -import { j as cross, H as getMajorAxisIndex, r as radiansFromDegrees } from '../../Common/Core/Math/index.js'; -import { mat4, vec3 } from 'gl-matrix'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; - -const DEFAULT_STEP_WIDTH = 512; -function formatAnnotationValue(value) { - if (Array.isArray(value)) { - return value.map(formatAnnotationValue).join(', '); - } - if (Number.isInteger(value)) { - return value; - } - if (Number.isFinite(value)) { - if (Math.abs(value) < 0.01) { - return '0'; - } - return value.toFixed(2); - } - return value; -} - -/** - * Returns an array of points in world coordinates creating a coarse hull - * around the prop given in argument - * The returned array is empty if the prop is not visible or doesn't use bounds - * - * How it works: if possible, combine the mapper bounds corners with the prop matrix - * otherwise, returns the prop bounds corners - */ -function getPropCoarseHull(prop) { - if (!prop.getVisibility() || !prop.getUseBounds()) { - return []; - } - let finestBounds = prop.getBounds(); - let finestMatrix = null; - - // Better bounds using mapper bounds and prop matrix - const mapper = prop?.getMapper?.(); - const mapperBounds = mapper?.getBounds?.(); - if (vtkBoundingBox.isValid(mapperBounds) && prop.getMatrix) { - finestBounds = mapperBounds; - finestMatrix = prop.getMatrix().slice(); - mat4.transpose(finestMatrix, finestMatrix); - - // Better bounds using the image data matrix and prop matrix + imageData matrix - if (mapper.isA('vtkImageMapper') && mapper.getInputData()?.isA('vtkImageData')) { - prop.computeMatrix(); - const imageData = mapper.getInputData(); - finestBounds = imageData.getSpatialExtent(); - const imageDataMatrix = imageData.getIndexToWorld(); - mat4.mul(finestMatrix, finestMatrix, imageDataMatrix); - } - } - - // Compute corners and transform them if needed - // It gives a more accurate hull than computing the corners of a transformed bounding box - if (!vtkBoundingBox.isValid(finestBounds)) { - return []; - } - const corners = []; - vtkBoundingBox.getCorners(finestBounds, corners); - if (finestMatrix) { - corners.forEach(pt => vec3.transformMat4(pt, pt, finestMatrix)); - } - return corners; -} - -// ---------------------------------------------------------------------------- -// vtkView2DProxy methods -// ---------------------------------------------------------------------------- - -function vtkView2DProxy(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkView2DProxy'); - publicAPI.updateWidthHeightAnnotation = () => { - const { - ijkOrientation, - dimensions - } = model.cornerAnnotation.getMetadata(); - if (ijkOrientation && dimensions) { - let realDimensions = dimensions; - if (dimensions.length > 3) { - // the dimensions is a string - realDimensions = dimensions.split(',').map(Number); - } - const dop = model.camera.getDirectionOfProjection(); - const viewUp = model.camera.getViewUp(); - const viewRight = [0, 0, 0]; - cross(dop, viewUp, viewRight); - const wIdx = getMajorAxisIndex(viewRight); - const hIdx = getMajorAxisIndex(viewUp); - const sliceWidth = realDimensions['IJK'.indexOf(ijkOrientation[wIdx])]; - const sliceHeight = realDimensions['IJK'.indexOf(ijkOrientation[hIdx])]; - publicAPI.updateCornerAnnotation({ - sliceWidth, - sliceHeight - }); - } - }; - const superUpdateOrientation = publicAPI.updateOrientation; - publicAPI.updateOrientation = (axisIndex, orientation, viewUp) => { - const promise = superUpdateOrientation(axisIndex, orientation, viewUp); - let count = model.representations.length; - while (count--) { - const rep = model.representations[count]; - const slicingMode = 'XYZ'[axisIndex]; - if (rep.setSlicingMode) { - rep.setSlicingMode(slicingMode); - } - } - publicAPI.updateCornerAnnotation({ - axis: 'XYZ'[axisIndex] - }); - return promise; - }; - const superAddRepresentation = publicAPI.addRepresentation; - publicAPI.addRepresentation = rep => { - superAddRepresentation(rep); - if (rep.setSlicingMode) { - rep.setSlicingMode('XYZ'[model.axis]); - } - publicAPI.bindRepresentationToManipulator(rep); - }; - const superRemoveRepresentation = publicAPI.removeRepresentation; - publicAPI.removeRepresentation = rep => { - superRemoveRepresentation(rep); - if (rep === model.sliceRepresentation) { - publicAPI.bindRepresentationToManipulator(null); - let count = model.representations.length; - while (count--) { - if (publicAPI.bindRepresentationToManipulator(model.representations[count])) { - count = 0; - } - } - } - }; - const superInternalResetCamera = model._resetCamera; - /** - * If fitProps is true, calling resetCamera will exactly fit the bounds in the view - * Exact fitting requires useParallelRendering, and an active camera - * Otherwise, the default renderer.resetCamera is used and it uses a larger bounding box - */ - model._resetCamera = function () { - let bounds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - // Always reset camera first to set physicalScale, physicalTranslation and trigger events - const initialReset = superInternalResetCamera(bounds); - if (!model.fitProps || !model.useParallelRendering || !initialReset) { - return initialReset; - } - - // For each visible prop get the smallest possible convex hull using bounds corners - const visiblePoints = []; - if (bounds) { - // Bounds are given as argument, use their corners - vtkBoundingBox.getCorners(bounds, visiblePoints); - } else { - publicAPI.getRepresentations().forEach(representationProxy => [representationProxy.getActors(), representationProxy.getVolumes()].flat().forEach(prop => visiblePoints.push(...getPropCoarseHull(prop)))); - } - if (!visiblePoints) { - return initialReset; - } - - // Get the bounds in view coordinates - const viewBounds = vtkBoundingBox.reset([]); - const viewMatrix = model.camera.getViewMatrix(); - mat4.transpose(viewMatrix, viewMatrix); - for (let i = 0; i < visiblePoints.length; ++i) { - const point = visiblePoints[i]; - vec3.transformMat4(point, point, viewMatrix); - vtkBoundingBox.addPoint(viewBounds, ...point); - } - - // Compute parallel scale - const view = model.renderer.getRenderWindow().getViews()[0]; - const dims = view.getViewportSize(model.renderer); - const aspect = dims[1] && dims[0] ? dims[0] / dims[1] : 1; - const xLength = vtkBoundingBox.getLength(viewBounds, 0); - const yLength = vtkBoundingBox.getLength(viewBounds, 1); - const parallelScale = 0.5 * Math.max(yLength, xLength / aspect); - - // Compute focal point and position - const viewFocalPoint = vtkBoundingBox.getCenter(viewBounds); - // Camera position in view coordinates is the center of the bounds in XY - // and is (the maximum bound) + (the distance to see the bounds in perspective) in Z - const perspectiveAngle = radiansFromDegrees(model.camera.getViewAngle()); - const distance = parallelScale / Math.tan(perspectiveAngle * 0.5); - const viewPosition = [viewFocalPoint[0], viewFocalPoint[1], viewBounds[5] + distance]; - const inverseViewMatrix = new Float64Array(16); - const worldFocalPoint = new Float64Array(3); - const worldPosition = new Float64Array(3); - mat4.invert(inverseViewMatrix, viewMatrix); - vec3.transformMat4(worldFocalPoint, viewFocalPoint, inverseViewMatrix); - vec3.transformMat4(worldPosition, viewPosition, inverseViewMatrix); - if (parallelScale <= 0) { - return initialReset; - } - - // Compute bounds in world coordinates - const worldBounds = vtkBoundingBox.transformBounds(viewBounds, inverseViewMatrix); - publicAPI.setCameraParameters({ - position: worldPosition, - focalPoint: worldFocalPoint, - bounds: worldBounds, - parallelScale - }); - return true; - }; - - // -------------------------------------------------------------------------- - // Range Manipulator setup - // ------------------------------------------------------------------------- - - model.rangeManipulator = vtkMouseRangeManipulator.newInstance({ - button: 1, - scrollEnabled: true - }); - model.interactorStyle2D.addMouseManipulator(model.rangeManipulator); - function setWindowWidth(windowWidth) { - publicAPI.updateCornerAnnotation({ - windowWidth - }); - if (model.sliceRepresentation && model.sliceRepresentation.setWindowWidth) { - model.sliceRepresentation.setWindowWidth(windowWidth); - } - } - function setWindowLevel(windowLevel) { - publicAPI.updateCornerAnnotation({ - windowLevel - }); - if (model.sliceRepresentation && model.sliceRepresentation.setWindowLevel) { - model.sliceRepresentation.setWindowLevel(windowLevel); - } - } - function setSlice(sliceRaw) { - const numberSliceRaw = Number(sliceRaw); - const slice = Number.isInteger(numberSliceRaw) ? sliceRaw : numberSliceRaw.toFixed(2); - - // add 'slice' in annotation - const annotation = { - slice - }; - if (model.sliceRepresentation && model.sliceRepresentation.setSlice) { - model.sliceRepresentation.setSlice(numberSliceRaw); - } - - // extend annotation - if (model.sliceRepresentation && model.sliceRepresentation.getAnnotations) { - const addOn = model.sliceRepresentation.getAnnotations(); - Object.keys(addOn).forEach(key => { - annotation[key] = formatAnnotationValue(addOn[key]); - }); - } - publicAPI.updateCornerAnnotation(annotation); - } - publicAPI.bindRepresentationToManipulator = representation => { - let nbListeners = 0; - if (!representation.getProxyId) { - return nbListeners; - } - model.rangeManipulator.removeAllListeners(); - model.sliceRepresentation = representation; - while (model.sliceRepresentationSubscriptions.length) { - model.sliceRepresentationSubscriptions.pop().unsubscribe(); - } - if (representation) { - model.sliceRepresentationSubscriptions.push(model.camera.onModified(publicAPI.updateWidthHeightAnnotation)); - if (representation.getWindowWidth) { - const update = () => setWindowWidth(representation.getWindowWidth()); - const windowWidth = representation.getPropertyDomainByName('windowWidth'); - const { - min, - max - } = windowWidth; - let { - step - } = windowWidth; - if (!step || step === 'any') { - step = 1 / DEFAULT_STEP_WIDTH; - } - model.rangeManipulator.setVerticalListener(min, max, step, representation.getWindowWidth, setWindowWidth); - model.sliceRepresentationSubscriptions.push(representation.onModified(update)); - update(); - nbListeners++; - } - if (representation.getWindowLevel) { - const update = () => setWindowLevel(representation.getWindowLevel()); - const windowLevel = representation.getPropertyDomainByName('windowLevel'); - const { - min, - max - } = windowLevel; - let { - step - } = windowLevel; - if (!step || step === 'any') { - step = 1 / DEFAULT_STEP_WIDTH; - } - model.rangeManipulator.setHorizontalListener(min, max, step, representation.getWindowLevel, setWindowLevel); - model.sliceRepresentationSubscriptions.push(representation.onModified(update)); - update(); - nbListeners++; - } - const domain = representation.getPropertyDomainByName('slice'); - if (representation.getSlice && domain) { - const update = () => setSlice(representation.getSlice()); - model.rangeManipulator.setScrollListener(domain.min, domain.max, domain.step, representation.getSlice, setSlice); - model.sliceRepresentationSubscriptions.push(representation.onModified(update)); - update(); - nbListeners++; - } - } - return nbListeners; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - axis: 2, - orientation: -1, - viewUp: [0, 1, 0], - useParallelRendering: true, - sliceRepresentationSubscriptions: [], - fitProps: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkViewProxy.extend(publicAPI, model, initialValues); - macro.get(publicAPI, model, ['axis']); - macro.setGet(publicAPI, model, ['fitProps']); - - // Object specific methods - vtkView2DProxy(publicAPI, model); -} -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkView2DProxy'); - -// ---------------------------------------------------------------------------- - -var vtkView2DProxy$1 = { - newInstance, - extend -}; - -export { vtkView2DProxy$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ViewProxy.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ViewProxy.d.ts deleted file mode 100644 index 2554a0d3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ViewProxy.d.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { vtkActor } from './../../Rendering/Core/Actor'; -import { vtkAbstractRepresentationProxy } from './AbstractRepresentationProxy'; -import { Vector3, Vector4 } from './../../types'; -import { vtkCamera } from './../../Rendering/Core/Camera'; -import { vtkRenderWindowInteractor } from './../../Rendering/Core/RenderWindowInteractor'; -import { vtkInteractorStyle } from './../../Rendering/Core/InteractorStyle'; -import { vtkSubscription, vtkObject } from './../../interfaces'; -import { vtkRenderer } from './../../Rendering/Core/Renderer'; -import { vtkRenderWindow } from './../../Rendering/Core/RenderWindow'; -import { vtkOpenGLRenderWindow } from './../../Rendering/OpenGL/RenderWindow'; -import { vtkWebGPURenderWindow } from './../../Rendering/WebGPU/RenderWindow'; -import { VtkProxy } from './../../macros'; - -export interface vtkViewProxy extends VtkProxy { - setPresetToInteractor3D(nameOrDefinitions: string | Object): boolean; - setPresetToInteractor2D(nameOrDefinitions: string | Object): boolean; - - setOrientationAxesType(type: string): void; - setOrientationAxesVisibility(visible: boolean): boolean; - registerOrientationAxis(name: string, actor: vtkActor): void; - unregisterOrientationAxis(name: string): void; - listOrientationAxis(): string[]; - setPresetToOrientationAxes(nameOrDefinitions: string | Object): boolean; - - setContainer(container: HTMLElement | null): void; - resize(): void; - renderLater(): void; - render(blocking?: boolean): void; - resetCamera(): void; - - addRepresentation(representation: vtkAbstractRepresentationProxy): void; - removeRepresentation(representation: vtkAbstractRepresentationProxy): void; - - // TODO correct? - captureImage(opts: { format: string } & Object): Array>; - openCaptureImage(target: string): void; - - // TODO corner annotations - - setBackground(color: Vector3 | Vector4): void; - getBackground(): Vector3 | Vector4; - - setAnimation(enable: boolean, requester?: vtkObject); - - updateOrientation( - axisIndex: 0 | 1 | 2, - orientation: -1 | 1, - viewUp: Vector3, - animateSteps: number - ): Promise; - moveCamera( - focalPoint: Vector3, - position: Vector3, - viewUp: Vector3, - animateSteps: number - ): Promise; - - resetOrientation(animateSteps: number): void; - rotate(angle): void; - - focusTo(focalPoint: Vector3): void; - - getCamera(): vtkCamera; - // getAnnotationOpacity - getContainer(): HTMLElement | null; - // getCornerAnnotation - getInteractor(): vtkRenderWindowInteractor; - getInteractorStyle2D(): vtkInteractorStyle; - getInteractorStyle3D(): vtkInteractorStyle; - getApiSpecificRenderWindow(): vtkOpenGLRenderWindow | vtkWebGPURenderWindow; - getOrientationAxesType(): string; - getPresetToOrientationAxes(): any; - getRenderer(): vtkRenderer; - getRenderWindow(): vtkRenderWindow; - getRepresentations(): vtkAbstractRepresentationProxy[]; - getUseParallelRendering(): boolean; - getDisableAnimation(): boolean; - setDisableAnimation(disabled: boolean): boolean; - - onResize( - cb: (size: { width: number; height: number }) => void - ): vtkSubscription; - - // TODO proxy property mappings -} - -declare const _default: vtkViewProxy; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ViewProxy.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ViewProxy.js deleted file mode 100644 index d3634953..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Core/ViewProxy.js +++ /dev/null @@ -1,597 +0,0 @@ -import { n as newInstance$1, o as obj, e as setGet, g as get, i as moveToProtected, f as event, p as proxy, j as proxyPropertyMapping, h as chain } from '../../macros2.js'; -import vtkAnnotatedCubeActor from '../../Rendering/Core/AnnotatedCubeActor.js'; -import vtkAxesActor from '../../Rendering/Core/AxesActor.js'; -import vtkCornerAnnotation from '../../Interaction/UI/CornerAnnotation.js'; -import vtkInteractorStyleManipulator from '../../Interaction/Style/InteractorStyleManipulator.js'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; -import '../../Rendering/OpenGL/RenderWindow.js'; -import '../../Rendering/WebGPU/RenderWindow.js'; -import vtkOrientationMarkerWidget from '../../Interaction/Widgets/OrientationMarkerWidget.js'; -import vtkRenderer from '../../Rendering/Core/Renderer.js'; -import vtkRenderWindow from '../../Rendering/Core/RenderWindow.js'; -import vtkRenderWindowInteractor from '../../Rendering/Core/RenderWindowInteractor.js'; -import InteractionPresets from '../../Interaction/Style/InteractorStyleManipulator/Presets.js'; -import AnnotatedCubePresets from '../../Rendering/Core/AnnotatedCubeActor/Presets.js'; - -const EPSILON = 0.000001; - -// ---------------------------------------------------------------------------- -// vtkViewProxy methods -// ---------------------------------------------------------------------------- - -function vtkViewProxy(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkViewProxy'); - - // Private -------------------------------------------------------------------- - - function updateAnnotationColor() { - const [r, g, b] = model.renderer.getBackground(); - model.cornerAnnotation.getAnnotationContainer().style.color = r + g + b > 1.5 ? 'black' : 'white'; - } - - // Setup -------------------------------------------------------------------- - model.renderWindow = vtkRenderWindow.newInstance(); - model.renderer = vtkRenderer.newInstance({ - background: [0, 0, 0] - }); - model.renderWindow.addRenderer(model.renderer); - model._openGLRenderWindow = model.renderWindow.newAPISpecificView(); - model.renderWindow.addView(model._openGLRenderWindow); - model.interactor = vtkRenderWindowInteractor.newInstance(); - model.interactor.setView(model._openGLRenderWindow); - model.interactorStyle3D = vtkInteractorStyleManipulator.newInstance(); - model.interactorStyle2D = vtkInteractorStyleManipulator.newInstance(); - - /** - * Internal function used by publicAPI.resetCamera() - */ - model._resetCamera = function () { - let bounds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - return model.renderer.resetCamera(bounds); - }; - - // Apply default interaction styles - InteractionPresets.applyPreset('3D', model.interactorStyle3D); - InteractionPresets.applyPreset('2D', model.interactorStyle2D); - model.cornerAnnotation = vtkCornerAnnotation.newInstance(); - - // Setup interaction - model.interactor.setInteractorStyle(model.useParallelRendering ? model.interactorStyle2D : model.interactorStyle3D); - model.camera = model.renderer.getActiveCamera(); - model.camera.setParallelProjection(!!model.useParallelRendering); - - // Orientation axis setup ------------------------------------------------- - - model.orientationAxesArrow = vtkAxesActor.newInstance(); - model.orientationAxesCube = vtkAnnotatedCubeActor.newInstance(); - AnnotatedCubePresets.applyPreset('default', model.orientationAxesCube); - AnnotatedCubePresets.applyPreset('lps', model.orientationAxesCube); - model.orientationAxesMap = { - arrow: model.orientationAxesArrow, - cube: model.orientationAxesCube - }; - model.orientationWidget = vtkOrientationMarkerWidget.newInstance({ - actor: model.orientationAxesArrow, - interactor: model.renderWindow.getInteractor() - }); - model.orientationWidget.setEnabled(true); - model.orientationWidget.setViewportCorner(vtkOrientationMarkerWidget.Corners.BOTTOM_LEFT); - model.orientationWidget.setViewportSize(0.1); - - // API ---------------------------------------------------------------------- - - publicAPI.setPresetToInteractor3D = nameOrDefinitions => { - if (Array.isArray(nameOrDefinitions)) { - return InteractionPresets.applyDefinitions(nameOrDefinitions, model.interactorStyle3D); - } - return InteractionPresets.applyPreset(nameOrDefinitions, model.interactorStyle3D); - }; - - // -------------------------------------------------------------------------- - - publicAPI.setPresetToInteractor2D = nameOrDefinitions => { - if (Array.isArray(nameOrDefinitions)) { - return InteractionPresets.applyDefinitions(nameOrDefinitions, model.interactorStyle2D); - } - return InteractionPresets.applyPreset(nameOrDefinitions, model.interactorStyle2D); - }; - - // -------------------------------------------------------------------------- - - publicAPI.setOrientationAxesType = type => { - const actor = model.orientationAxesMap[type]; - if (actor) { - model.orientationAxesType = type; - model.orientationWidget.setActor(actor); - publicAPI.renderLater(); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.registerOrientationAxis = (name, actor) => { - model.orientationAxesMap[name] = actor; - }; - - // -------------------------------------------------------------------------- - - publicAPI.unregisterOrientationAxis = name => { - delete model.orientationAxesMap[name]; - }; - - // -------------------------------------------------------------------------- - - publicAPI.listOrientationAxis = () => Object.keys(model.orientationAxesMap); - - // -------------------------------------------------------------------------- - - publicAPI.setPresetToOrientationAxes = nameOrDefinitions => { - let changeDetected = false; - if (typeof nameOrDefinitions === 'string') { - if (model.presetToOrientationAxes !== nameOrDefinitions) { - model.presetToOrientationAxes = nameOrDefinitions; - changeDetected = AnnotatedCubePresets.applyPreset(nameOrDefinitions, model.orientationAxesCube); - publicAPI.modified(); - } - return changeDetected; - } - model.presetToOrientationAxes = 'Custom'; - changeDetected = AnnotatedCubePresets.applyDefinitions(nameOrDefinitions, model.orientationAxesCube); - publicAPI.modified(); - return changeDetected; - }; - - // -------------------------------------------------------------------------- - - publicAPI.setContainer = container => { - const orientationWidgetEnabled = model.orientationWidget.getEnabled(); - if (model.container) { - model.orientationWidget.setEnabled(false); - model.interactor.unbindEvents(model.container); - model._openGLRenderWindow.setContainer(null); - model.cornerAnnotation.setContainer(null); - } - model.container = container; - if (container) { - model._openGLRenderWindow.setContainer(container); - model.cornerAnnotation.setContainer(container); - model.interactor.initialize(); - model.interactor.bindEvents(container); - model.orientationWidget.setEnabled(orientationWidgetEnabled); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.resize = () => { - if (model.container) { - const dims = model.container.getBoundingClientRect(); - if (dims.width === dims.height && dims.width === 0) { - return; - } - const devicePixelRatio = window.devicePixelRatio || 1; - const width = Math.max(10, Math.floor(devicePixelRatio * dims.width)); - const height = Math.max(10, Math.floor(devicePixelRatio * dims.height)); - model._openGLRenderWindow.setSize(width, height); - publicAPI.invokeResize({ - width, - height - }); - publicAPI.renderLater(); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.renderLater = () => { - publicAPI.render(false); - }; - - // -------------------------------------------------------------------------- - - publicAPI.render = function () { - let blocking = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - if (model.representations.length > 0 && model.resetCameraOnFirstRender) { - model.resetCameraOnFirstRender = false; - publicAPI.resetCamera(); - } - model.orientationWidget.updateMarkerOrientation(); - model.renderer.resetCameraClippingRange(); - if (blocking) { - model.renderWindow.render(); - } else { - setTimeout(model.renderWindow.render, 0); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.addRepresentation = representation => { - if (!representation) { - return; - } - if (model.representations.indexOf(representation) === -1) { - model.representations.push(representation); - model.renderer.addViewProp(representation); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.removeRepresentation = representation => { - if (!representation) { - return; - } - if (model.representations.indexOf(representation) !== -1) { - model.representations = model.representations.filter(r => r !== representation); - model.renderer.removeViewProp(representation); - } - if (model.representations.length === 0) { - model.resetCameraOnFirstRender = true; - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.setCameraParameters = _ref => { - let { - position, - focalPoint, - bounds, - parallelScale, - viewAngle - } = _ref; - if (position != null) { - model.camera.setPosition(...position); - } - if (focalPoint != null) { - model.camera.setFocalPoint(...focalPoint); - } - if (bounds != null) { - model.renderer.resetCameraClippingRange(bounds); - } else { - model.renderer.resetCameraClippingRange(); - } - if (parallelScale != null) { - model.camera.setParallelScale(parallelScale); - } - if (viewAngle != null) { - model.camera.setViewAngle(viewAngle); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.resetCamera = () => { - model._resetCamera(); - model.interactorStyle2D.setCenterOfRotation(model.camera.getFocalPoint()); - model.interactorStyle3D.setCenterOfRotation(model.camera.getFocalPoint()); - publicAPI.renderLater(); - }; - - // -------------------------------------------------------------------------- - - publicAPI.captureImage = function () { - let { - format = 'image/png', - ...opts - } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return model.renderWindow.captureImages(format, opts)[0]; - }; - - // -------------------------------------------------------------------------- - - publicAPI.openCaptureImage = function () { - let target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '_blank'; - const image = new Image(); - return publicAPI.captureImage().then(imageURL => { - image.src = imageURL; - const w = window.open('', target); - w.document.write(image.outerHTML); - w.document.title = 'vtk.js Image Capture'; - window.focus(); - }); - }; - - // -------------------------------------------------------------------------- - - publicAPI.setCornerAnnotation = (corner, templateString) => { - model.cornerAnnotation.updateTemplates({ - [corner]: meta => vtkCornerAnnotation.applyTemplate(templateString, meta) - }); - }; - - // -------------------------------------------------------------------------- - - publicAPI.setCornerAnnotations = function (annotations) { - let useTemplateString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - if (useTemplateString) { - Object.keys(annotations).forEach(key => { - publicAPI.setCornerAnnotation(key, annotations[key]); - }); - } else { - model.cornerAnnotation.updateTemplates(annotations); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.updateCornerAnnotation = meta => model.cornerAnnotation.updateMetadata(meta); - - // -------------------------------------------------------------------------- - - publicAPI.setAnnotationOpacity = opacity => { - if (model.annotationOpacity !== Number(opacity)) { - model.annotationOpacity = Number(opacity); - model.cornerAnnotation.getAnnotationContainer().style.opacity = opacity; - publicAPI.modified(); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.setBackground = chain(model.renderer.setBackground, updateAnnotationColor); - - // -------------------------------------------------------------------------- - - publicAPI.getBackground = model.renderer.getBackground; - - // -------------------------------------------------------------------------- - - publicAPI.setAnimation = function (enable) { - let requester = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : publicAPI; - if (model.disableAnimation && enable) { - return; - } - if (enable) { - model.renderWindow.getInteractor().requestAnimation(requester); - } else { - const skipWarning = requester === publicAPI || `${requester}`.indexOf('ViewProxy.moveCamera.') === 0; - model.renderWindow.getInteractor().cancelAnimation(requester, skipWarning); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.updateOrientation = function (axisIndex, orientation, viewUp) { - let animateSteps = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0; - if (axisIndex === undefined) { - return Promise.resolve(); - } - const originalPosition = model.camera.getPosition(); - const originalViewUp = model.camera.getViewUp(); - const originalFocalPoint = model.camera.getFocalPoint(); - model.axis = axisIndex; - model.orientation = orientation; - model.viewUp = viewUp; - const position = model.camera.getFocalPoint(); - position[model.axis] += model.orientation; - model.camera.setPosition(...position); - model.camera.setViewUp(...viewUp); - model.renderer.resetCamera(); - const destFocalPoint = model.camera.getFocalPoint(); - const destPosition = model.camera.getPosition(); - const destViewUp = model.camera.getViewUp(); - - // Reset to original to prevent initial render flash - model.camera.setFocalPoint(...originalFocalPoint); - model.camera.setPosition(...originalPosition); - model.camera.setViewUp(...originalViewUp); - return publicAPI.moveCamera(destFocalPoint, destPosition, destViewUp, animateSteps); - }; - - // -------------------------------------------------------------------------- - - publicAPI.moveCamera = function (focalPoint, position, viewUp) { - let animateSteps = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0; - const originalFocalPoint = model.camera.getFocalPoint(); - const originalPosition = model.camera.getPosition(); - const originalViewUp = model.camera.getViewUp(); - const animationStack = [{ - focalPoint, - position, - viewUp - }]; - if (animateSteps) { - const deltaFocalPoint = [(originalFocalPoint[0] - focalPoint[0]) / animateSteps, (originalFocalPoint[1] - focalPoint[1]) / animateSteps, (originalFocalPoint[2] - focalPoint[2]) / animateSteps]; - const deltaPosition = [(originalPosition[0] - position[0]) / animateSteps, (originalPosition[1] - position[1]) / animateSteps, (originalPosition[2] - position[2]) / animateSteps]; - const deltaViewUp = [(originalViewUp[0] - viewUp[0]) / animateSteps, (originalViewUp[1] - viewUp[1]) / animateSteps, (originalViewUp[2] - viewUp[2]) / animateSteps]; - const needSteps = deltaFocalPoint[0] || deltaFocalPoint[1] || deltaFocalPoint[2] || deltaPosition[0] || deltaPosition[1] || deltaPosition[2] || deltaViewUp[0] || deltaViewUp[1] || deltaViewUp[2]; - const focalPointDeltaAxisCount = deltaFocalPoint.map(i => Math.abs(i) < EPSILON ? 0 : 1).reduce((a, b) => a + b, 0); - const positionDeltaAxisCount = deltaPosition.map(i => Math.abs(i) < EPSILON ? 0 : 1).reduce((a, b) => a + b, 0); - const viewUpDeltaAxisCount = deltaViewUp.map(i => Math.abs(i) < EPSILON ? 0 : 1).reduce((a, b) => a + b, 0); - const rotation180Only = viewUpDeltaAxisCount === 1 && positionDeltaAxisCount === 0 && focalPointDeltaAxisCount === 0; - if (needSteps) { - if (rotation180Only) { - const availableAxes = originalFocalPoint.map((fp, i) => Math.abs(originalPosition[i] - fp) < EPSILON ? i : null).filter(i => i !== null); - const axisCorrectionIndex = availableAxes.find(v => Math.abs(deltaViewUp[v]) < EPSILON); - for (let i = 0; i < animateSteps; i++) { - const newViewUp = [viewUp[0] + (i + 1) * deltaViewUp[0], viewUp[1] + (i + 1) * deltaViewUp[1], viewUp[2] + (i + 1) * deltaViewUp[2]]; - newViewUp[axisCorrectionIndex] = Math.sin(Math.PI * i / (animateSteps - 1)); - animationStack.push({ - focalPoint, - position, - viewUp: newViewUp - }); - } - } else { - for (let i = 0; i < animateSteps; i++) { - animationStack.push({ - focalPoint: [focalPoint[0] + (i + 1) * deltaFocalPoint[0], focalPoint[1] + (i + 1) * deltaFocalPoint[1], focalPoint[2] + (i + 1) * deltaFocalPoint[2]], - position: [position[0] + (i + 1) * deltaPosition[0], position[1] + (i + 1) * deltaPosition[1], position[2] + (i + 1) * deltaPosition[2]], - viewUp: [viewUp[0] + (i + 1) * deltaViewUp[0], viewUp[1] + (i + 1) * deltaViewUp[1], viewUp[2] + (i + 1) * deltaViewUp[2]] - }); - } - } - } - } - if (animationStack.length === 1) { - // update camera directly - model.camera.set(animationStack.pop()); - model.renderer.resetCameraClippingRange(); - if (model.interactor.getLightFollowCamera()) { - model.renderer.updateLightsGeometryToFollowCamera(); - } - return Promise.resolve(); - } - return new Promise((resolve, reject) => { - const now = performance.now().toString(); - const animationRequester = `ViewProxy.moveCamera.${now}`; - publicAPI.setAnimation(true, animationRequester); - let intervalId = null; - const consumeAnimationStack = () => { - if (animationStack.length) { - const { - focalPoint: cameraFocalPoint, - position: cameraPosition, - viewUp: cameraViewUp - } = animationStack.pop(); - model.camera.setFocalPoint(...cameraFocalPoint); - model.camera.setPosition(...cameraPosition); - model.camera.setViewUp(...cameraViewUp); - model.renderer.resetCameraClippingRange(); - if (model.interactor.getLightFollowCamera()) { - model.renderer.updateLightsGeometryToFollowCamera(); - } - } else { - clearInterval(intervalId); - publicAPI.setAnimation(false, animationRequester); - resolve(); - } - }; - intervalId = setInterval(consumeAnimationStack, 1); - }); - }; - - // -------------------------------------------------------------------------- - - publicAPI.resetOrientation = function () { - let animateSteps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - return publicAPI.updateOrientation(model.axis, model.orientation, model.viewUp, animateSteps); - }; - - // -------------------------------------------------------------------------- - - publicAPI.rotate = angle => { - const { - viewUp, - focalPoint, - position - } = model.camera.get('viewUp', 'focalPoint', 'position'); - const axis = [focalPoint[0] - position[0], focalPoint[1] - position[1], focalPoint[2] - position[2]]; - vtkMatrixBuilder.buildFromDegree().rotate(Number.isNaN(angle) ? 90 : angle, axis).apply(viewUp); - model.camera.setViewUp(...viewUp); - model.camera.modified(); - model.orientationWidget.updateMarkerOrientation(); - model.renderWindow.render(); - }; - - // -------------------------------------------------------------------------- - - publicAPI.focusTo = chain(model.camera.setFocalPoint, model.interactorStyle2D.setCenterOfRotation, model.interactorStyle3D.setCenterOfRotation); - - // -------------------------------------------------------------------------- - - publicAPI.delete = chain(() => { - publicAPI.setContainer(null); - model.orientationWidget.setEnabled(false); - model.orientationWidget.delete(); - model.orientationAxesArrow.delete(); - model.orientationAxesCube.delete(); - model.interactorStyle2D.delete(); - model.interactorStyle3D.delete(); - model.cornerAnnotation.delete(); - // in reverse order - model.interactor.delete(); - model.renderer.delete(); - model._openGLRenderWindow.delete(); - model.renderWindow.delete(); - }, publicAPI.delete); - - // -------------------------------------------------------------------------- - // Initialization from state or input - // -------------------------------------------------------------------------- - - publicAPI.resetOrientation(); - updateAnnotationColor(); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - representations: [], - sectionName: 'view', - annotationOpacity: 1, - resetCameraOnFirstRender: true, - presetToOrientationAxes: 'lps', - orientationAxesType: 'arrow', - disableAnimation: false, - axis: 1, - orientation: 0, - viewUp: [0, 0, 1] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - obj(publicAPI, model); - setGet(publicAPI, model, ['name', 'disableAnimation', 'resetCameraOnFirstRender']); - get(publicAPI, model, ['annotationOpacity', 'camera', 'container', 'cornerAnnotation', 'interactor', 'interactorStyle2D', 'interactorStyle3D', '_openGLRenderWindow', - // todo breaking? convert to apiSpecificWindow - 'orientationAxesType', 'presetToOrientationAxes', 'renderer', 'renderWindow', 'representations', 'useParallelRendering']); - moveToProtected(publicAPI, model, ['openGLRenderWindow']); - event(publicAPI, model, 'Resize'); - - // Object specific methods - vtkViewProxy(publicAPI, model); - - // Proxy handling - proxy(publicAPI, model); - proxyPropertyMapping(publicAPI, model, { - orientationAxesVisibility: { - modelKey: 'orientationWidget', - property: 'enabled' - }, - orientationAxesCorner: { - modelKey: 'orientationWidget', - property: 'viewportCorner' - }, - orientationAxesSize: { - modelKey: 'orientationWidget', - property: 'viewportSize' - }, - cameraViewUp: { - modelKey: 'camera', - property: 'viewUp', - modified: false - }, - cameraPosition: { - modelKey: 'camera', - property: 'position', - modified: false - }, - cameraFocalPoint: { - modelKey: 'camera', - property: 'focalPoint', - modified: false - } - }); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkViewProxy'); - -// ---------------------------------------------------------------------------- - -var vtkViewProxy$1 = { - newInstance, - extend -}; - -export { vtkViewProxy$1 as default, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations.js deleted file mode 100644 index a7cc2628..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations.js +++ /dev/null @@ -1,19 +0,0 @@ -import vtkGeometryRepresentationProxy from './Representations/GeometryRepresentationProxy.js'; -import vtkGlyphRepresentationProxy from './Representations/GlyphRepresentationProxy.js'; -import vtkMoleculeRepresentationProxy from './Representations/MoleculeRepresentationProxy.js'; -import vtkSkyboxRepresentationProxy from './Representations/SkyboxRepresentationProxy.js'; -import vtkSliceRepresentationProxy from './Representations/SliceRepresentationProxy.js'; -import vtkSlicedGeometryRepresentationProxy from './Representations/SlicedGeometryRepresentationProxy.js'; -import vtkVolumeRepresentationProxy from './Representations/VolumeRepresentationProxy.js'; - -var Representations = { - vtkGeometryRepresentationProxy, - vtkGlyphRepresentationProxy, - vtkMoleculeRepresentationProxy, - vtkSkyboxRepresentationProxy, - vtkSliceRepresentationProxy, - vtkSlicedGeometryRepresentationProxy, - vtkVolumeRepresentationProxy -}; - -export { Representations as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/GeometryRepresentationProxy.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/GeometryRepresentationProxy.d.ts deleted file mode 100644 index 6fe318b5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/GeometryRepresentationProxy.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { RGBColor } from './../../types'; -import { vtkAbstractRepresentationProxy } from './../Core/AbstractRepresentationProxy'; - -export interface vtkGeometryRepresentationProxy - extends vtkAbstractRepresentationProxy { - /** - * - * @param representation a string that describes what representation to use for the explicit geometry. - * possible values are 'Surface with edges', 'Surface' (default), 'Wireframe', - * and 'Points'. - */ - setRepresentation(representation: string): boolean; - getRepresentation(): string; - - // proxy property mappings - getColor(): RGBColor; - setColor(color: RGBColor): boolean; - getInterpolateScalarsBeforeMapping(): boolean; - setInterpolateScalarsBeforeMapping( - interpolateScalarsBeforeMapping: boolean - ): boolean; - getOpacity(): number; - setOpacity(opacity: number): boolean; - getVisibility(): boolean; - setVisibility(visible: boolean): boolean; - getPointSize(): number; - setPointSize(pointSize: number): boolean; - getUseShadow(): boolean; - setUseShadow(lighting: boolean): boolean; - getUseBounds(): boolean; - setUseBounds(useBounds: boolean): boolean; - getLineWidth(): number; - setLineWidth(width: number): boolean; -} - -declare const _default: vtkGeometryRepresentationProxy; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/GeometryRepresentationProxy.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/GeometryRepresentationProxy.js deleted file mode 100644 index a6a344a6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/GeometryRepresentationProxy.js +++ /dev/null @@ -1,131 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkActor from '../../Rendering/Core/Actor.js'; -import vtkMapper from '../../Rendering/Core/Mapper.js'; -import vtkAbstractRepresentationProxy from '../Core/AbstractRepresentationProxy.js'; - -const PROPERTIES_STATE = { - representation: { - 'Surface with edges': { - property: { - edgeVisibility: true, - representation: 2 - } - }, - Surface: { - property: { - edgeVisibility: false, - representation: 2 - } - }, - Wireframe: { - property: { - edgeVisibility: false, - representation: 1 - } - }, - Points: { - property: { - edgeVisibility: false, - representation: 0 - } - } - } -}; -const PROPERTIES_DEFAULT = { - representation: 'Surface' -}; - -// ---------------------------------------------------------------------------- -// vtkGeometryRepresentationProxy methods -// ---------------------------------------------------------------------------- - -function vtkGeometryRepresentationProxy(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkGeometryRepresentationProxy'); - - // Internals - model.mapper = vtkMapper.newInstance({ - interpolateScalarsBeforeMapping: true, - useLookupTableScalarRange: true, - scalarVisibility: false - }); - model.actor = vtkActor.newInstance(); - model.property = model.actor.getProperty(); - - // Auto connect mappers - model.sourceDependencies.push(model.mapper); - // connect rendering pipeline - model.actor.setMapper(model.mapper); - model.actors.push(model.actor); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - representation: 'Surface' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - vtkAbstractRepresentationProxy.extend(publicAPI, model, initialValues); - - // Object specific methods - vtkGeometryRepresentationProxy(publicAPI, model); - - // Map proxy properties - macro.proxyPropertyState(publicAPI, model, PROPERTIES_STATE, PROPERTIES_DEFAULT); - macro.proxyPropertyMapping(publicAPI, model, { - opacity: { - modelKey: 'property', - property: 'opacity' - }, - visibility: { - modelKey: 'actor', - property: 'visibility' - }, - color: { - modelKey: 'property', - property: 'diffuseColor' - }, - interpolateScalarsBeforeMapping: { - modelKey: 'mapper', - property: 'interpolateScalarsBeforeMapping' - }, - pointSize: { - modelKey: 'property', - property: 'pointSize' - }, - useShadow: { - modelKey: 'property', - property: 'lighting' - }, - lineWidth: { - modelKey: 'property', - property: 'lineWidth' - }, - useBounds: { - modelKey: 'actor', - property: 'useBounds' - } - }); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkGeometryRepresentationProxy'); - -// ---------------------------------------------------------------------------- - -var vtkGeometryRepresentationProxy$1 = { - newInstance, - extend -}; - -export { vtkGeometryRepresentationProxy$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/GlyphRepresentationProxy.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/GlyphRepresentationProxy.js deleted file mode 100644 index 226be511..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/GlyphRepresentationProxy.js +++ /dev/null @@ -1,138 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtk from '../../vtk.js'; -import vtkActor from '../../Rendering/Core/Actor.js'; -import vtkProperty from '../../Rendering/Core/Property.js'; -import vtkGlyph3DMapper from '../../Rendering/Core/Glyph3DMapper.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkColorTransferFunction from '../../Rendering/Core/ColorTransferFunction.js'; -import vtkAbstractRepresentationProxy from '../Core/AbstractRepresentationProxy.js'; -import '../../Filters/Sources/ArcSource.js'; -import '../../Filters/Sources/ArrowSource.js'; -import '../../Filters/Sources/CircleSource.js'; -import '../../Filters/Sources/ConcentricCylinderSource.js'; -import '../../Filters/Sources/ConeSource.js'; -import '../../Filters/Sources/CubeSource.js'; -import '../../Filters/Sources/Cursor3D.js'; -import '../../Filters/Sources/CylinderSource.js'; -import '../../Filters/Sources/DiskSource.js'; -import '../../Filters/Sources/EllipseArcSource.js'; -import '../../Filters/Sources/ImageGridSource.js'; -import '../../Filters/Sources/LineSource.js'; -import '../../Filters/Sources/PlaneSource.js'; -import '../../Filters/Sources/PlatonicSolidSource.js'; -import '../../Filters/Sources/PointSource.js'; -import '../../Filters/Sources/RTAnalyticSource.js'; -import '../../Filters/Sources/SLICSource.js'; -import '../../Filters/Sources/SphereSource.js'; -import '../../Filters/Sources/TorusSource.js'; - -// ---------------------------------------------------------------------------- -// vtkGlyphRepresentationProxy methods -// ---------------------------------------------------------------------------- - -function vtkGlyphRepresentationProxy(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkGlyphRepresentationProxy'); - model.property = vtkProperty.newInstance(); - function processJSON(description) { - model.actors.length = 0; - - // Handle colors - const lookupTable = vtkColorTransferFunction.newInstance(); - lookupTable.applyColorMap({ - RGBPoints: description.rgbPoints - }); - - // Handle glyph - model.glyph = {}; - let count = description.glyph.length; - while (count--) { - const glyph = description.glyph[count]; - model.glyph[glyph.id] = vtk(glyph); - } - - // Handle mapping - count = description.mapping.length; - while (count--) { - const sourceDesc = description.mapping[count]; - const glyph = model.glyph[sourceDesc.glyphId]; - const source = vtkPolyData.newInstance(); - source.getPoints().setData(Float32Array.from(sourceDesc.coordinates), 3); - if (sourceDesc.scale) { - source.getPointData().addArray(vtkDataArray.newInstance({ - name: 'scaling', - values: Float32Array.from(sourceDesc.scale), - numberOfComponents: 3 - })); - } - const mapper = vtkGlyph3DMapper.newInstance({ - useLookupTableScalarRange: true, - lookupTable, - orient: false, - scaling: !!sourceDesc.scale, - scaleArray: 'scaling', - scaleMode: vtkGlyph3DMapper.ScaleModes.SCALE_BY_COMPONENTS - }); - const actor = vtkActor.newInstance(); - if (model.property) { - actor.setProperty(model.property); - } - actor.setMapper(mapper); - mapper.setInputData(source, 0); - mapper.setInputConnection(glyph.getOutputPort(), 1); - model.actors.push(actor); - } - } - model.sourceDependencies.push({ - setInputData: processJSON - }); - - // Add actors - // model.actors.push(model.sphereActor); - // model.actors.push(model.stickActor); - - // API ---------------------------------------------------------------------- - - publicAPI.setColorBy = () => {}; - publicAPI.getColorBy = () => []; - publicAPI.listDataArrays = () => []; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - vtkAbstractRepresentationProxy.extend(publicAPI, model, initialValues); - - // Object specific methods - vtkGlyphRepresentationProxy(publicAPI, model); - macro.proxyPropertyMapping(publicAPI, model, { - edgeVisibility: { - modelKey: 'property', - property: 'edgeVisibility' - } - }); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkGlyphRepresentationProxy'); - -// ---------------------------------------------------------------------------- - -var vtkGlyphRepresentationProxy$1 = { - newInstance, - extend -}; - -export { vtkGlyphRepresentationProxy$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/MoleculeRepresentationProxy.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/MoleculeRepresentationProxy.js deleted file mode 100644 index f5e70fe2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/MoleculeRepresentationProxy.js +++ /dev/null @@ -1,102 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkActor from '../../Rendering/Core/Actor.js'; -import vtkSphereMapper from '../../Rendering/Core/SphereMapper.js'; -import vtkStickMapper from '../../Rendering/Core/StickMapper.js'; -import vtkMoleculeToRepresentation from '../../Filters/General/MoleculeToRepresentation.js'; -import vtkAbstractRepresentationProxy from '../Core/AbstractRepresentationProxy.js'; - -// ---------------------------------------------------------------------------- -// vtkMoleculeRepresentationProxy methods -// ---------------------------------------------------------------------------- - -function vtkMoleculeRepresentationProxy(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkMoleculeRepresentationProxy'); - - // Internals - model.filter = vtkMoleculeToRepresentation.newInstance(); - model.sphereMapper = vtkSphereMapper.newInstance(); - model.stickMapper = vtkStickMapper.newInstance(); - model.sphereActor = vtkActor.newInstance(); - model.stickActor = vtkActor.newInstance(); - model.sourceDependencies.push(model.filter); - - // render sphere - model.sphereMapper.setInputConnection(model.filter.getOutputPort(0)); - model.sphereMapper.setScaleArray(model.filter.getSphereScaleArrayName()); - model.sphereActor.setMapper(model.sphereMapper); - - // render sticks - model.stickMapper.setInputConnection(model.filter.getOutputPort(1)); - model.stickMapper.setScaleArray('stickScales'); - model.stickMapper.setOrientationArray('orientation'); - model.stickActor.setMapper(model.stickMapper); - - // Add actors - model.actors.push(model.sphereActor); - model.actors.push(model.stickActor); - - // API ---------------------------------------------------------------------- - - publicAPI.setColorBy = () => {}; - publicAPI.getColorBy = () => []; - publicAPI.listDataArrays = () => []; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - vtkAbstractRepresentationProxy.extend(publicAPI, model, initialValues); - - // Object specific methods - vtkMoleculeRepresentationProxy(publicAPI, model); - macro.proxyPropertyMapping(publicAPI, model, { - tolerance: { - modelKey: 'filter', - property: 'tolerance' - }, - atomicRadiusScaleFactor: { - modelKey: 'filter', - property: 'atomicRadiusScaleFactor' - }, - bondRadius: { - modelKey: 'filter', - property: 'bondRadius' - }, - deltaBondFactor: { - modelKey: 'filter', - property: 'deltaBondFactor' - }, - radiusType: { - modelKey: 'filter', - property: 'radiusType' - }, - hideElements: { - modelKey: 'filter', - property: 'hideElements' - } - }); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkMoleculeRepresentationProxy'); - -// ---------------------------------------------------------------------------- - -var vtkMoleculeRepresentationProxy$1 = { - newInstance, - extend -}; - -export { vtkMoleculeRepresentationProxy$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/ResliceRepresentationProxy.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/ResliceRepresentationProxy.d.ts deleted file mode 100644 index acf385bf..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/ResliceRepresentationProxy.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { vtkPolyData } from './../../Common/DataModel/PolyData'; -import { vtkPlane } from './../../Common/DataModel/Plane'; -import { vtkAbstractRepresentationProxy } from './../Core/AbstractRepresentationProxy'; -import { RGBColor } from './../../types'; - -export interface vtkResliceRepresentationProxy - extends vtkAbstractRepresentationProxy { - // proxy property mappings - - setVisibility(visible: boolean): boolean; - getVisibility(): boolean; - setWindowWidth(width: number): boolean; - getWindowWidth(): number; - setWindowLevel(level: number): boolean; - getWindowLevel(): number; - setInterpolationType(type: number): boolean; - getInterpolationType(): number; - setOutlineLineWidth(lineWidth: number): boolean; - getOutlineLineWidth(): number; - setOutlineColor(color: RGBColor): boolean; - getOutlineColor(): RGBColor; - setOutlineVisibility(visibility: boolean): boolean; - getOutlineVisibility(): boolean; - setSlabType(type: number): boolean; - getSlabtype(): number; - setSlicePlane(plane: vtkPlane): boolean; - getSlicePlane(): vtkPlane; - setSlicePolyData(polydata: vtkPolyData): boolean; - getSlicePolyData(): vtkPolyData; - setSlabThickness(thickness: number): boolean; - getSlabThickness(): number; - setSlabTrapezoidIntegration(slabTrapezoidIntegration: number): boolean; - getSlabTrapezoidIntegration(): number; -} - -declare const _default: vtkResliceRepresentationProxy; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/ResliceRepresentationProxy.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/ResliceRepresentationProxy.js deleted file mode 100644 index 197077c6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/ResliceRepresentationProxy.js +++ /dev/null @@ -1,207 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkActor from '../../Rendering/Core/Actor.js'; -import vtkCutter from '../../Filters/Core/Cutter.js'; -import vtkImageDataOutlineFilter from '../../Filters/General/ImageDataOutlineFilter.js'; -import vtkImageSlice from '../../Rendering/Core/ImageSlice.js'; -import vtkImageResliceMapper from '../../Rendering/Core/ImageResliceMapper.js'; -import vtkMapper from '../../Rendering/Core/Mapper.js'; -import { SlabTypes } from '../../Rendering/Core/ImageResliceMapper/Constants.js'; -import vtkPlane from '../../Common/DataModel/Plane.js'; -import vtkAbstractRepresentationProxy from '../Core/AbstractRepresentationProxy.js'; - -// ---------------------------------------------------------------------------- - -function sum(a, b) { - return a + b; -} - -// ---------------------------------------------------------------------------- - -function mean() { - for (var _len = arguments.length, array = new Array(_len), _key = 0; _key < _len; _key++) { - array[_key] = arguments[_key]; - } - return array.reduce(sum, 0) / array.length; -} - -// ---------------------------------------------------------------------------- - -function updateDomains(dataset, dataArray, model, updateProp) { - const dataRange = dataArray.getRange(); - const propToUpdate = { - windowWidth: { - domain: { - min: 0, - max: dataRange[1] - dataRange[0], - step: 'any' - } - }, - windowLevel: { - domain: { - min: dataRange[0], - max: dataRange[1], - step: 'any' - } - } - }; - updateProp('windowWidth', propToUpdate.windowWidth); - updateProp('windowLevel', propToUpdate.windowLevel); - return { - windowWidth: propToUpdate.windowWidth.domain.max, - windowLevel: Math.floor(mean(propToUpdate.windowLevel.domain.min, propToUpdate.windowLevel.domain.max)) - }; -} - -// ---------------------------------------------------------------------------- -// vtkResliceRepresentationProxy methods -// ---------------------------------------------------------------------------- - -function vtkResliceRepresentationProxy(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkResliceRepresentationProxy'); - model.mapper = vtkImageResliceMapper.newInstance(); - model.actor = vtkImageSlice.newInstance(); - model.property = model.actor.getProperty(); - - // set slicing plane - model.slicePlane = vtkPlane.newInstance(); - model.slicePlane.setNormal(0, 1, 0); - model.mapper.setSlicePlane(model.slicePlane); - model.mapper.setSlabType(SlabTypes.MAX); - - // for the slice polygon outline - model.outline = { - iof: vtkImageDataOutlineFilter.newInstance(), - sof: vtkCutter.newInstance({ - cutFunction: model.slicePlane - }), - mapper: vtkMapper.newInstance(), - actor: vtkActor.newInstance({ - visibility: false - }) - }; - model.outline.sof.setInputConnection(model.outline.iof.getOutputPort()); - model.outline.mapper.setInputConnection(model.outline.sof.getOutputPort()); - - // connect rendering pipeline - model.actor.setMapper(model.mapper); - model.actors.push(model.actor); - model.outline.actor.setMapper(model.outline.mapper); - model.actors.push(model.outline.actor); - function setInputData(inputDataset) { - const state = updateDomains(inputDataset, publicAPI.getDataArray(), model, publicAPI.updateProxyProperty); - publicAPI.set(state); - model.slicePlane.setOrigin(inputDataset.getCenter()); - } - - // Keep things updated - model.sourceDependencies.push(model.mapper); - model.sourceDependencies.push({ - setInputData - }); - model.sourceDependencies.push(model.outline.iof); - - // API ---------------------------------------------------------------------- - - const parentSetColorBy = publicAPI.setColorBy; - publicAPI.setColorBy = function (arrayName, arrayLocation) { - let componentIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1; - if (arrayName === null) { - model.property.setRGBTransferFunction(null); - model.property.setPiecewiseFunction(null); - } else { - parentSetColorBy(arrayName, arrayLocation, componentIndex); - const lutProxy = publicAPI.getLookupTableProxy(arrayName); - const pwfProxy = publicAPI.getPiecewiseFunctionProxy(arrayName); - model.property.setRGBTransferFunction(lutProxy.getLookupTable()); - model.property.setPiecewiseFunction(pwfProxy.getPiecewiseFunction()); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - vtkAbstractRepresentationProxy.extend(publicAPI, model, initialValues); - macro.get(publicAPI, model, ['slicePlane']); - - // Object specific methods - vtkResliceRepresentationProxy(publicAPI, model); - - // Proxyfy - model.outlineActor = model.outline.actor; - model.outlineProperty = model.outline.actor.getProperty(); - macro.proxyPropertyMapping(publicAPI, model, { - visibility: { - modelKey: 'actor', - property: 'visibility' - }, - windowWidth: { - modelKey: 'property', - property: 'colorWindow' - }, - windowLevel: { - modelKey: 'property', - property: 'colorLevel' - }, - interpolationType: { - modelKey: 'property', - property: 'interpolationType' - }, - slicePlane: { - modelKey: 'mapper', - property: 'slicePlane' - }, - slicePolyData: { - modelKey: 'mapper', - property: 'slicePolyData' - }, - slabType: { - modelKey: 'mapper', - property: 'slabType' - }, - slabThickness: { - modelKey: 'mapper', - property: 'slabThickness' - }, - slabTrapezoidIntegration: { - modelKey: 'mapper', - property: 'slabTrapezoidIntegration' - }, - outlineVisibility: { - modelKey: 'outlineActor', - property: 'visibility' - }, - outlineColor: { - modelKey: 'outlineProperty', - property: 'color' - }, - outlineLineWidth: { - modelKey: 'outlineProperty', - property: 'lineWidth' - } - }); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkResliceRepresentationProxy'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/SkyboxRepresentationProxy.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/SkyboxRepresentationProxy.js deleted file mode 100644 index 7846227c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/SkyboxRepresentationProxy.js +++ /dev/null @@ -1,69 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkSkybox from '../../Rendering/Core/Skybox.js'; -import vtkAbstractRepresentationProxy from '../Core/AbstractRepresentationProxy.js'; - -// ---------------------------------------------------------------------------- -// vtkSkyboxRepresentationProxy methods -// ---------------------------------------------------------------------------- - -function vtkSkyboxRepresentationProxy(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkSkyboxRepresentationProxy'); - model.actor = vtkSkybox.newInstance(); - model.actors.push(model.actor); - function updateTexture(texture) { - model.actor.removeAllTextures(); - model.actor.addTexture(texture); - - // Update domain - const values = model.input.getAlgo().getPositions(); - publicAPI.updateProxyProperty('position', { - values - }); - } - model.sourceDependencies.push({ - setInputData: updateTexture - }); - - // API ---------------------------------------------------------------------- - - publicAPI.setColorBy = () => {}; - publicAPI.getColorBy = () => []; - publicAPI.listDataArrays = () => []; - publicAPI.setPosition = value => { - model.input.getAlgo().setPosition(value); - }; - publicAPI.getPosition = () => model.input.getAlgo().getPosition(); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - vtkAbstractRepresentationProxy.extend(publicAPI, model, initialValues); - - // Object specific methods - vtkSkyboxRepresentationProxy(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSkyboxRepresentationProxy'); - -// ---------------------------------------------------------------------------- - -var vtkSkyboxRepresentationProxy$1 = { - newInstance, - extend -}; - -export { vtkSkyboxRepresentationProxy$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/SliceRepresentationProxy.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/SliceRepresentationProxy.d.ts deleted file mode 100644 index f97debc0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/SliceRepresentationProxy.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { vtkAbstractRepresentationProxy } from './../Core/AbstractRepresentationProxy'; - -export interface vtkSliceRepresentationProxy - extends vtkAbstractRepresentationProxy { - /** - * @param mode XYZIJK - */ - setSlicingMode(mode: string): boolean; - getSlicingMode(): string; - getSliceIndex(): number; - getAnnotations(): any; - - // proxy property mappings - - setVisibility(visible: boolean): boolean; - getVisibility(): boolean; - setWindowWidth(width: number): boolean; - getWindowWidth(): number; - setWindowLevel(level: number): boolean; - getWindowLevel(): number; - setInterpolationType(type: number): boolean; - getInterpolationType(): number; - setSlice(type: number): boolean; - getSlice(): number; -} - -declare const _default: vtkSliceRepresentationProxy; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/SliceRepresentationProxy.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/SliceRepresentationProxy.js deleted file mode 100644 index 613eca7f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/SliceRepresentationProxy.js +++ /dev/null @@ -1,301 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkImageSlice from '../../Rendering/Core/ImageSlice.js'; -import vtkImageMapper from '../../Rendering/Core/ImageMapper.js'; -import vtkAbstractRepresentationProxy from '../Core/AbstractRepresentationProxy.js'; - -// ---------------------------------------------------------------------------- - -function sum(a, b) { - return a + b; -} - -// ---------------------------------------------------------------------------- - -function mean() { - for (var _len = arguments.length, array = new Array(_len), _key = 0; _key < _len; _key++) { - array[_key] = arguments[_key]; - } - return array.reduce(sum, 0) / array.length; -} - -// ---------------------------------------------------------------------------- - -function updateDomains(dataset, dataArray, model, updateProp) { - const dataRange = dataArray.getRange(); - const spacing = dataset.getSpacing(); - const bounds = dataset.getBounds(); - const extent = dataset.getExtent(); - let sliceMin; - let sliceMax; - let stepVal; - let axisIndex; - const sliceMode = model.mapper.getSlicingMode(); - const sliceModeLabel = 'IJKXYZ'[sliceMode]; - switch (sliceMode) { - case vtkImageMapper.SlicingMode.I: - case vtkImageMapper.SlicingMode.J: - case vtkImageMapper.SlicingMode.K: - axisIndex = 'IJK'.indexOf(sliceModeLabel); - sliceMin = extent[axisIndex * 2]; - sliceMax = extent[axisIndex * 2 + 1]; - stepVal = 1; - break; - case vtkImageMapper.SlicingMode.X: - case vtkImageMapper.SlicingMode.Y: - case vtkImageMapper.SlicingMode.Z: - { - axisIndex = 'XYZ'.indexOf(sliceModeLabel); - sliceMin = bounds[axisIndex * 2]; - sliceMax = bounds[axisIndex * 2 + 1]; - const { - ijkMode - } = model.mapper.getClosestIJKAxis(); - stepVal = spacing[ijkMode]; - } - break; - } - const propToUpdate = { - slice: { - domain: { - min: sliceMin, - max: sliceMax, - step: stepVal - } - }, - windowWidth: { - domain: { - min: 0, - max: dataRange[1] - dataRange[0], - step: 'any' - } - }, - windowLevel: { - domain: { - min: dataRange[0], - max: dataRange[1], - step: 'any' - } - } - }; - updateProp('slice', propToUpdate.slice); - updateProp('windowWidth', propToUpdate.windowWidth); - updateProp('windowLevel', propToUpdate.windowLevel); - return { - slice: mean(propToUpdate.slice.domain.min, propToUpdate.slice.domain.max), - windowWidth: propToUpdate.windowWidth.domain.max, - windowLevel: Math.floor(mean(propToUpdate.windowLevel.domain.min, propToUpdate.windowLevel.domain.max)) - }; -} - -// ---------------------------------------------------------------------------- -// vtkSliceRepresentationProxy methods -// ---------------------------------------------------------------------------- - -function vtkSliceRepresentationProxy(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkSliceRepresentationProxy'); - model.mapper = vtkImageMapper.newInstance(); - model.actor = vtkImageSlice.newInstance(); - model.property = model.actor.getProperty(); - - // connect rendering pipeline - model.actor.setMapper(model.mapper); - model.actors.push(model.actor); - function setInputData(inputDataset) { - const state = updateDomains(inputDataset, publicAPI.getDataArray(), model, publicAPI.updateProxyProperty); - publicAPI.set(state); - - // Init slice location - const bounds = inputDataset.getBounds(); - const extent = inputDataset.getExtent(); - switch (model.mapper.getSlicingMode()) { - case vtkImageMapper.SlicingMode.I: - publicAPI.setSlice(Math.floor(mean(extent[0], extent[1]))); - break; - case vtkImageMapper.SlicingMode.J: - publicAPI.setSlice(Math.floor(mean(extent[2], extent[3]))); - break; - case vtkImageMapper.SlicingMode.K: - publicAPI.setSlice(Math.floor(mean(extent[4], extent[5]))); - break; - case vtkImageMapper.SlicingMode.X: - publicAPI.setSlice(mean(bounds[0], bounds[1])); - break; - case vtkImageMapper.SlicingMode.Y: - publicAPI.setSlice(mean(bounds[2], bounds[3])); - break; - case vtkImageMapper.SlicingMode.Z: - publicAPI.setSlice(mean(bounds[4], bounds[5])); - break; - } - } - - // Keep things updated - model.sourceDependencies.push(model.mapper); - model.sourceDependencies.push({ - setInputData - }); - - // keeps the slicing mode and domain info updated - function updateSlicingMode(mode) { - model.mapper.setSlicingMode(vtkImageMapper.SlicingMode[mode]); - - // Update to previously set position - const modelKey = `${mode.toLowerCase()}Slice`; - if (modelKey in model && model[modelKey] !== undefined) { - model.mapper.setSlice(model[modelKey]); - } - if (model.input) { - // Update domains for UI... - const state = updateDomains(publicAPI.getInputDataSet(), publicAPI.getDataArray(), model, publicAPI.updateProxyProperty); - publicAPI.set(state); - } - publicAPI.modified(); - } - - // API ---------------------------------------------------------------------- - - publicAPI.setSlicingMode = mode => { - if (!mode) { - return false; - } - if (model.slicingMode !== mode) { - // Update Mode - model.slicingMode = mode; - updateSlicingMode(mode); - return true; - } - return false; - }; - publicAPI.getSliceIndex = () => { - if ('XYZ'.indexOf(model.slicingMode) !== -1) { - return model.mapper.getSliceAtPosition(model.mapper.getSlice()); - } - return model.mapper.getSlice(); - }; - publicAPI.getAnnotations = () => { - const dynamicAddOn = {}; - const sliceIndex = publicAPI.getSliceIndex(); - const sliceBounds = model.mapper.getBoundsForSlice(); - const sliceNormal = model.mapper.getSlicingModeNormal(); - const { - ijkMode - } = model.mapper.getClosestIJKAxis(); - const sliceOrigin = [(sliceBounds[0] + sliceBounds[1]) * 0.5, (sliceBounds[2] + sliceBounds[3]) * 0.5, (sliceBounds[4] + sliceBounds[5]) * 0.5]; - let slicePosition = 0; - if (sliceBounds[1] - sliceBounds[0] < Number.EPSILON) { - slicePosition = sliceBounds[0]; - } - if (sliceBounds[3] - sliceBounds[2] < Number.EPSILON) { - slicePosition = sliceBounds[2]; - } - if (sliceBounds[5] - sliceBounds[4] < Number.EPSILON) { - slicePosition = sliceBounds[4]; - } - const imageData = model.mapper.getInputData(); - if (imageData) { - dynamicAddOn.sliceSpacing = imageData.getSpacing()[ijkMode]; - dynamicAddOn.dimensions = imageData.getDimensions(); - dynamicAddOn.sliceCount = imageData.getDimensions()[ijkMode]; - const ijkOrientation = []; - for (let i = 0; i < 3; i++) { - const extent = [0, 0, 0, 0, 0, 0]; - extent[i * 2 + 1] = 1; - const tmpBounds = imageData.extentToBounds(extent); - if (tmpBounds[1] - tmpBounds[0] > Number.EPSILON) { - ijkOrientation[0] = 'IJK'[i]; - } - if (tmpBounds[3] - tmpBounds[2] > Number.EPSILON) { - ijkOrientation[1] = 'IJK'[i]; - } - if (tmpBounds[5] - tmpBounds[4] > Number.EPSILON) { - ijkOrientation[2] = 'IJK'[i]; - } - } - dynamicAddOn.ijkOrientation = ijkOrientation.join(''); - } - return { - ijkMode, - sliceBounds, - sliceIndex, - sliceNormal, - sliceOrigin, - slicePosition, - ...dynamicAddOn - }; - }; - const parentSetColorBy = publicAPI.setColorBy; - publicAPI.setColorBy = function (arrayName, arrayLocation) { - let componentIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1; - if (arrayName === null) { - model.property.setRGBTransferFunction(null); - model.property.setPiecewiseFunction(null); - } else { - parentSetColorBy(arrayName, arrayLocation, componentIndex); - const lutProxy = publicAPI.getLookupTableProxy(arrayName); - const pwfProxy = publicAPI.getPiecewiseFunctionProxy(arrayName); - model.property.setRGBTransferFunction(lutProxy.getLookupTable()); - model.property.setPiecewiseFunction(pwfProxy.getPiecewiseFunction()); - } - }; - - // Initialize slicing mode - updateSlicingMode(model.slicingMode || 'X'); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - vtkAbstractRepresentationProxy.extend(publicAPI, model, initialValues); - macro.get(publicAPI, model, ['slicingMode']); - - // Object specific methods - vtkSliceRepresentationProxy(publicAPI, model); - - // Proxyfy - macro.proxyPropertyMapping(publicAPI, model, { - visibility: { - modelKey: 'actor', - property: 'visibility' - }, - windowWidth: { - modelKey: 'property', - property: 'colorWindow' - }, - windowLevel: { - modelKey: 'property', - property: 'colorLevel' - }, - interpolationType: { - modelKey: 'property', - property: 'interpolationType' - }, - slice: { - modelKey: 'mapper', - property: 'slice' - } - }); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSliceRepresentationProxy'); - -// ---------------------------------------------------------------------------- - -var vtkSliceRepresentationProxy$1 = { - newInstance, - extend -}; - -export { vtkSliceRepresentationProxy$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/SlicedGeometryRepresentationProxy.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/SlicedGeometryRepresentationProxy.js deleted file mode 100644 index 8102fe84..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/SlicedGeometryRepresentationProxy.js +++ /dev/null @@ -1,149 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkActor from '../../Rendering/Core/Actor.js'; -import vtkCutter from '../../Filters/Core/Cutter.js'; -import vtkImageMapper from '../../Rendering/Core/ImageMapper.js'; -import vtkMapper from '../../Rendering/Core/Mapper.js'; -import vtkPlane from '../../Common/DataModel/Plane.js'; -import vtkAbstractRepresentationProxy from '../Core/AbstractRepresentationProxy.js'; - -// ---------------------------------------------------------------------------- -// vtkSlicedGeometryRepresentationProxy methods -// ---------------------------------------------------------------------------- - -function vtkSlicedGeometryRepresentationProxy(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkSlicedGeometryRepresentationProxy'); - - // Internals - model.plane = vtkPlane.newInstance(); - model.cutter = vtkCutter.newInstance(); - model.cutter.setCutFunction(model.plane); - model.mapper = vtkMapper.newInstance(); - model.actor = vtkActor.newInstance(); - model.property = model.actor.getProperty(); - model.property.setLighting(false); - - // connect rendering pipeline - model.mapper.setInputConnection(model.cutter.getOutputPort()); - model.actor.setMapper(model.mapper); - model.actors.push(model.actor); - - // Keep things updated - model.sourceDependencies.push(model.cutter); - - // API ---------------------------------------------------------------------- - publicAPI.setSlice = function () { - let slice = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - const stateModified = model.slice !== slice; - model.slice = slice; - const n = model.plane.getNormal(); - const planeModified = model.plane.setOrigin(n[0] * slice, n[1] * slice, n[2] * slice); - if (planeModified || stateModified) { - publicAPI.modified(); - return true; - } - return false; - }; - publicAPI.setOffset = function () { - let offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - const stateModified = model.offset !== offset; - model.offset = offset; - const normal = model.plane.getNormal(); - const actorModified = model.actor.setPosition(offset * normal[0], offset * normal[1], offset * normal[2]); - if (actorModified || stateModified) { - publicAPI.modified(); - return true; - } - return false; - }; - publicAPI.setSlicingMode = mode => { - if (model.slicingMode === mode || !mode) { - console.log('skip setSlicingMode', mode); - return; - } - model.slicingMode = mode; - switch (vtkImageMapper.SlicingMode[mode]) { - case vtkImageMapper.SlicingMode.X: - model.plane.setNormal(1, 0, 0); - break; - case vtkImageMapper.SlicingMode.Y: - model.plane.setNormal(0, 1, 0); - break; - case vtkImageMapper.SlicingMode.Z: - model.plane.setNormal(0, 0, 1); - break; - default: - return; - } - // Reslice properly along that new axis - let alreadyModified = publicAPI.setSlice(model.slice); - alreadyModified = publicAPI.setOffset(model.offset) || alreadyModified; - - // Update pipeline - if (!alreadyModified) { - publicAPI.modified(); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - slicingMode: vtkImageMapper.SlicingMode.NONE, - slice: 0, - offset: 0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - vtkAbstractRepresentationProxy.extend(publicAPI, model, initialValues); - macro.get(publicAPI, model, ['slicingMode', 'slice', 'offset']); - - // Object specific methods - vtkSlicedGeometryRepresentationProxy(publicAPI, model); - - // Map proxy properties - macro.proxyPropertyState(publicAPI, model); - macro.proxyPropertyMapping(publicAPI, model, { - opacity: { - modelKey: 'property', - property: 'opacity' - }, - visibility: { - modelKey: 'actor', - property: 'visibility' - }, - color: { - modelKey: 'property', - property: 'diffuseColor' - }, - useShadow: { - modelKey: 'property', - property: 'lighting' - }, - useBounds: { - modelKey: 'actor', - property: 'useBounds' - } - }); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSlicedGeometryRepresentationProxy'); - -// ---------------------------------------------------------------------------- - -var vtkSlicedGeometryRepresentationProxy$1 = { - newInstance, - extend -}; - -export { vtkSlicedGeometryRepresentationProxy$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/VolumeRepresentationProxy.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/VolumeRepresentationProxy.d.ts deleted file mode 100644 index f5196da5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/VolumeRepresentationProxy.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { vtkAbstractRepresentationProxy } from './../Core/AbstractRepresentationProxy'; -import { vtkImageCropFilter } from './../../Filters/General/ImageCropFilter'; - -export interface vtkVolumeRepresentationProxy - extends vtkAbstractRepresentationProxy { - setIs2DVolume(is2D: boolean): void; - getIs2DVolume(): boolean; - isVisible(): boolean; - setVisibility(visible: boolean): void; - getVisibility(): boolean; - setSliceVisibility(isVisible: boolean): void; - getSliceVisibility(): boolean; - setSampleDistance(samp: number): void; - getSampleDistance(): number; - setEdgeGradient(grad: number): void; - getEdgeGradient(): number; - getCropFilter(): vtkImageCropFilter; - - // proxy property mappings - getXSlice(): number; - setXSlice(slice: number): boolean; - getYSlice(): number; - setYSlice(slice: number): boolean; - getZSlice(): number; - setZSlice(slice: number): boolean; - getVolumeVisibility(): boolean; - setVolumeVisibility(visible: boolean): boolean; - getXSliceVisibility(): boolean; - setXSliceVisibility(visible: boolean): boolean; - getYSliceVisibility(): boolean; - setYSliceVisibility(visible: boolean): boolean; - getZSliceVisibility(): boolean; - setZSliceVisibility(visible: boolean): boolean; - getWindowWidth(): number; - setWindowWidth(width: number): boolean; - getWindowLevel(): number; - setWindowLevel(level: number): boolean; - getUseShadow(): boolean; - setUseShadow(useShadow: boolean): boolean; - getCroppingPlanes(): number[]; - setCroppingPlanes(planes: number[]): boolean; -} - -declare const _default: vtkVolumeRepresentationProxy; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/VolumeRepresentationProxy.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/VolumeRepresentationProxy.js deleted file mode 100644 index 22dd1323..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/Representations/VolumeRepresentationProxy.js +++ /dev/null @@ -1,386 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; -import vtkImageCropFilter from '../../Filters/General/ImageCropFilter.js'; -import vtkImageMapper from '../../Rendering/Core/ImageMapper.js'; -import vtkImageSlice from '../../Rendering/Core/ImageSlice.js'; -import vtkVolume from '../../Rendering/Core/Volume.js'; -import vtkVolumeMapper from '../../Rendering/Core/VolumeMapper.js'; -import vtkAbstractRepresentationProxy from '../Core/AbstractRepresentationProxy.js'; - -// ---------------------------------------------------------------------------- - -function sum(a, b) { - return a + b; -} - -// ---------------------------------------------------------------------------- - -function mean() { - for (var _len = arguments.length, array = new Array(_len), _key = 0; _key < _len; _key++) { - array[_key] = arguments[_key]; - } - return array.reduce(sum, 0) / array.length; -} - -// ---------------------------------------------------------------------------- - -function updateDomains(dataset, dataArray, model, updateProp) { - const dataRange = dataArray.getRange(); - const spacing = dataset.getSpacing(); - const bounds = dataset.getBounds(); - const { - ijkMode: xIJKAxis - } = model.mapperX.getClosestIJKAxis(); - const { - ijkMode: yIJKAxis - } = model.mapperY.getClosestIJKAxis(); - const { - ijkMode: zIJKAxis - } = model.mapperZ.getClosestIJKAxis(); - const propToUpdate = { - xSlice: { - domain: { - min: bounds[0], - max: bounds[1], - step: spacing[xIJKAxis] - } - }, - ySlice: { - domain: { - min: bounds[2], - max: bounds[3], - step: spacing[yIJKAxis] - } - }, - zSlice: { - domain: { - min: bounds[4], - max: bounds[5], - step: spacing[zIJKAxis] - } - }, - windowWidth: { - domain: { - min: 0, - max: dataRange[1] - dataRange[0], - step: 'any' - } - }, - windowLevel: { - domain: { - min: dataRange[0], - max: dataRange[1], - step: 'any' - } - } - }; - updateProp('xSlice', propToUpdate.xSlice); - updateProp('ySlice', propToUpdate.ySlice); - updateProp('zSlice', propToUpdate.zSlice); - updateProp('windowWidth', propToUpdate.windowWidth); - updateProp('windowLevel', propToUpdate.windowLevel); - return { - xSlice: mean(propToUpdate.xSlice.domain.min, propToUpdate.xSlice.domain.max), - ySlice: mean(propToUpdate.ySlice.domain.min, propToUpdate.ySlice.domain.max), - zSlice: mean(propToUpdate.zSlice.domain.min, propToUpdate.zSlice.domain.max), - windowWidth: propToUpdate.windowWidth.domain.max, - windowLevel: Math.floor(mean(propToUpdate.windowLevel.domain.min, propToUpdate.windowLevel.domain.max)) - }; -} - -// ---------------------------------------------------------------------------- - -function updateConfiguration(dataset, dataArray, _ref) { - let { - mapper, - property - } = _ref; - // Configuration - // actor.getProperty().setInterpolationTypeToFastLinear(); - property.setInterpolationTypeToLinear(); - const numberOfComponents = dataArray.getNumberOfComponents(); - const scalarOpacityUnitDistance = vtkBoundingBox.getDiagonalLength(dataset.getBounds()) / Math.max(...dataset.getDimensions()); - for (let component = 0; component < numberOfComponents; component++) { - // For better looking volume rendering - // - distance in world coordinates a scalar opacity of 1.0 - property.setScalarOpacityUnitDistance(component, scalarOpacityUnitDistance); - const dataRange = dataArray.getRange(component); - // - control how we emphasize surface boundaries - // => max should be around the average gradient magnitude for the - // volume or maybe average plus one std dev of the gradient magnitude - // (adjusted for spacing, this is a world coordinate gradient, not a - // pixel gradient) - // => max hack: (dataRange[1] - dataRange[0]) * 0.05 - property.setGradientOpacityMinimumValue(component, 0); - property.setGradientOpacityMaximumValue(component, (dataRange[1] - dataRange[0]) * 0.05); - // - Use shading based on gradient - property.setShade(true); - property.setUseGradientOpacity(component, true); - // - generic good default - property.setGradientOpacityMinimumOpacity(component, 0.0); - property.setGradientOpacityMaximumOpacity(component, 1.0); - } - property.setAmbient(0.2); - property.setDiffuse(0.7); - property.setSpecular(0.3); - property.setSpecularPower(8.0); -} - -// ---------------------------------------------------------------------------- -// vtkVolumeRepresentationProxy methods -// ---------------------------------------------------------------------------- - -function vtkVolumeRepresentationProxy(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkVolumeRepresentationProxy'); - - // Volume - model.mapper = vtkVolumeMapper.newInstance(); - model.volume = vtkVolume.newInstance(); - model.property = model.volume.getProperty(); - model.cropFilter = vtkImageCropFilter.newInstance(); - model.mapper.setInputConnection(model.cropFilter.getOutputPort()); - model.sourceDependencies.push(model.cropFilter); - - // Slices - model.mapperX = vtkImageMapper.newInstance({ - slicingMode: vtkImageMapper.SlicingMode.X - }); - model.actorX = vtkImageSlice.newInstance({ - visibility: false - }); - model.propertySlices = model.actorX.getProperty(); - model.mapperY = vtkImageMapper.newInstance({ - slicingMode: vtkImageMapper.SlicingMode.Y - }); - model.actorY = vtkImageSlice.newInstance({ - visibility: false, - property: model.propertySlices - }); - model.mapperZ = vtkImageMapper.newInstance({ - slicingMode: vtkImageMapper.SlicingMode.Z - }); - model.actorZ = vtkImageSlice.newInstance({ - visibility: false, - property: model.propertySlices - }); - model.mapperX.setInputConnection(model.cropFilter.getOutputPort()); - model.mapperY.setInputConnection(model.cropFilter.getOutputPort()); - model.mapperZ.setInputConnection(model.cropFilter.getOutputPort()); - // model.sourceDependencies.push(model.mapperX); - // model.sourceDependencies.push(model.mapperY); - // model.sourceDependencies.push(model.mapperZ); - - // connect rendering pipeline - model.volume.setMapper(model.mapper); - model.volumes.push(model.volume); - - // Connect slice pipeline - model.actorX.setMapper(model.mapperX); - model.actors.push(model.actorX); - model.actorY.setMapper(model.mapperY); - model.actors.push(model.actorY); - model.actorZ.setMapper(model.mapperZ); - model.actors.push(model.actorZ); - function setInputData(inputDataset) { - const [name, location] = publicAPI.getColorBy(); - publicAPI.rescaleTransferFunctionToDataRange(name, location); - const lutProxy = publicAPI.getLookupTableProxy(name); - const pwfProxy = publicAPI.getPiecewiseFunctionProxy(name); - model.property.setRGBTransferFunction(0, lutProxy.getLookupTable()); - model.property.setScalarOpacity(0, pwfProxy.getPiecewiseFunction()); - updateConfiguration(inputDataset, publicAPI.getDataArray(), model); - if (model.sampleDistance < 0 || model.sampleDistance > 1) { - publicAPI.setSampleDistance(); - } - if (model.edgeGradient < 0 || model.edgeGradient > 1) { - publicAPI.setEdgeGradient(); - } - - // Update domains - const state = updateDomains(inputDataset, publicAPI.getDataArray(), model, publicAPI.updateProxyProperty); - publicAPI.set(state); - - // Check for 2D volumes - const numberOfDimensions = inputDataset.getDimensions().reduce((number, dimension) => number + (dimension > 1 ? 1 : 0), 0); - if (numberOfDimensions === 2) { - publicAPI.setIs2DVolume(true); - } - } - model.sourceDependencies.push({ - setInputData - }); - - // API ---------------------------------------------------------------------- - - /** - * Choose whether the input volume should be treated as a 2D volume - * (no volume rendering). - */ - publicAPI.setIs2DVolume = is2D => { - model.is2DVolume = is2D; - if (is2D) { - if (publicAPI.getVisibility()) { - publicAPI.setSliceVisibility(true); - } - model.volume.setVisibility(false); - } - }; - publicAPI.isVisible = () => model.volume.getVisibility(); - publicAPI.setVisibility = isVisible => { - if (isVisible) { - if (model.is2DVolume) { - publicAPI.setSliceVisibility(true); - } else { - model.volume.setVisibility(true); - } - } else { - // Turn off everything - model.volume.setVisibility(false); - publicAPI.setSliceVisibility(false); - } - }; - publicAPI.getVisibility = () => model.volume.getVisibility() || publicAPI.getSliceVisibility(); - publicAPI.isVisible = publicAPI.getVisibility; - publicAPI.setSliceVisibility = isVisible => { - if (isVisible && model.is2DVolume) { - const normalAxis = publicAPI.getInputDataSet().getDimensions().indexOf(1); - if (model.actors[normalAxis]) { - model.actors[normalAxis].setVisibility(true); - } - } else { - model.actors.forEach(actor => actor.setVisibility(isVisible)); - } - }; - publicAPI.getSliceVisibility = () => model.actorX.getVisibility() || model.actorY.getVisibility() || model.actorZ.getVisibility(); - publicAPI.setSampleDistance = function () { - let distance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0.4; - if (model.sampleDistance !== distance) { - model.sampleDistance = distance; - const sourceDS = publicAPI.getInputDataSet(); - const sampleDistance = 0.7 * Math.sqrt(sourceDS.getSpacing().map(v => v * v).reduce((a, b) => a + b, 0)); - model.mapper.setSampleDistance(sampleDistance * 2 ** (distance * 3.0 - 1.5)); - publicAPI.modified(); - } - }; - publicAPI.setEdgeGradient = function () { - let edgeGradient = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0.2; - if (model.edgeGradient !== edgeGradient) { - model.edgeGradient = edgeGradient; - const dataArray = publicAPI.getDataArray(); - const numberOfComponents = dataArray.getNumberOfComponents(); - if (edgeGradient === 0) { - for (let component = 0; component < numberOfComponents; component++) { - model.volume.getProperty().setUseGradientOpacity(component, false); - } - } else { - for (let component = 0; component < numberOfComponents; component++) { - const dataRange = dataArray.getRange(component); - model.volume.getProperty().setUseGradientOpacity(component, true); - const minV = Math.max(0.0, edgeGradient - 0.3) / 0.7; - if (minV > 0.0) { - model.volume.getProperty().setGradientOpacityMinimumValue(component, Math.exp(Math.log((dataRange[1] - dataRange[0]) * 0.2) * minV * minV)); - } else { - model.volume.getProperty().setGradientOpacityMinimumValue(component, 0.0); - } - model.volume.getProperty().setGradientOpacityMaximumValue(component, Math.exp(Math.log((dataRange[1] - dataRange[0]) * 1.0) * edgeGradient * edgeGradient)); - } - } - publicAPI.modified(); - } - }; - const parentSetColorBy = publicAPI.setColorBy; - publicAPI.setColorBy = function (arrayName, arrayLocation) { - let componentIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1; - parentSetColorBy(arrayName, arrayLocation, componentIndex); - const lutProxy = publicAPI.getLookupTableProxy(arrayName); - const pwfProxy = publicAPI.getPiecewiseFunctionProxy(arrayName); - model.property.setRGBTransferFunction(0, lutProxy.getLookupTable()); - model.property.setScalarOpacity(0, pwfProxy.getPiecewiseFunction()); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - sampleDistance: -1, - edgeGradient: -1, - disableSolidColor: true, - is2DVolume: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - vtkAbstractRepresentationProxy.extend(publicAPI, model, initialValues); - macro.get(publicAPI, model, ['sampleDistance', 'edgeGradient', 'cropFilter', 'is2DVolume']); - - // Object specific methods - vtkVolumeRepresentationProxy(publicAPI, model); - macro.proxyPropertyMapping(publicAPI, model, { - xSlice: { - modelKey: 'mapperX', - property: 'slice' - }, - ySlice: { - modelKey: 'mapperY', - property: 'slice' - }, - zSlice: { - modelKey: 'mapperZ', - property: 'slice' - }, - volumeVisibility: { - modelKey: 'volume', - property: 'visibility' - }, - xSliceVisibility: { - modelKey: 'actorX', - property: 'visibility' - }, - ySliceVisibility: { - modelKey: 'actorY', - property: 'visibility' - }, - zSliceVisibility: { - modelKey: 'actorZ', - property: 'visibility' - }, - windowWidth: { - modelKey: 'propertySlices', - property: 'colorWindow' - }, - windowLevel: { - modelKey: 'propertySlices', - property: 'colorLevel' - }, - useShadow: { - modelKey: 'property', - property: 'shade' - }, - croppingPlanes: { - modelKey: 'cropFilter', - property: 'croppingPlanes' - } - }); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkVolumeRepresentationProxy'); - -// ---------------------------------------------------------------------------- - -var vtkVolumeRepresentationProxy$1 = { - newInstance, - extend, - updateConfiguration -}; - -export { vtkVolumeRepresentationProxy$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/index.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/index.js deleted file mode 100644 index e6725b73..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Proxy/index.js +++ /dev/null @@ -1,9 +0,0 @@ -import Core from './Core.js'; -import Representations from './Representations.js'; - -var VTKProxy = { - Core, - Representations -}; - -export { VTKProxy as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/README.md b/build_vtk_bundle/node_modules/@kitware/vtk.js/README.md deleted file mode 100644 index 67c7c187..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/README.md +++ /dev/null @@ -1,80 +0,0 @@ -## [VTK.js - The Visualization Toolkit for JavaScript](http://kitware.github.io/vtk-js/) - -[![Build Status](https://github.com/Kitware/vtk-js/workflows/Build%20and%20Test/badge.svg)](https://github.com/Kitware/vtk-js/workflows/Build%20and%20Test/badge.svg) -[![Build Status](https://travis-ci.org/Kitware/vtk-js.svg)](https://travis-ci.org/Kitware/vtk-js) -[![Dependency Status](https://david-dm.org/kitware/vtk-js.svg)](https://david-dm.org/kitware/vtk-js) -[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) -![npm-download](https://img.shields.io/npm/dm/vtk.js.svg) -![npm-version-requirement](https://img.shields.io/badge/npm->=5.0.0-brightgreen.svg) -![node-version-requirement](https://img.shields.io/badge/node->=8.0.0-brightgreen.svg) -[![DOI](https://zenodo.org/badge/57900965.svg)](https://zenodo.org/badge/latestdoi/57900965) - -### Introduction - -VTK is an open-source software system for image processing, 3D -graphics, volume rendering and visualization. VTK includes many -advanced algorithms (e.g., surface reconstruction, implicit modelling, -decimation) and rendering techniques (e.g., hardware-accelerated -volume rendering, LOD control). The JavaScript implementation remains -a subset of the actual C++ library but efforts will be made to easily -port or compile native VTK code into WebAssembly to better blend -both worlds. vtk.js is a true rewrite of VTK in plain JavaScript (ES6). -Therefore not everything has been rewritten. - -The origin of VTK is with the textbook "The Visualization Toolkit, an -Object-Oriented Approach to 3D Graphics" originally published by -Prentice Hall and now published by Kitware, Inc. (Third Edition ISBN -1-930934-07-6). VTK has grown (since its initial release in 1994) to a -world-wide user base in the commercial, academic, and research -communities. - -vtk.js aims to be a subset of VTK and provide 3D rendering using WebGL (+WebGPU) for both geometry and volume rendering. - -### What is the difference with VTK/C++? - -VTK.js is a complete rewrite of VTK/C++ using plain JavaScript (ES6). -The focus of the rewrite, so far, has been the rendering pipeline for ImageData and PolyData, the pipeline infrastructure, and frequently used readers (obj, stl, vtp, vti). Some filters are also provided as demonstrations. We are not aiming for vtk.js to provide the same set of filters that is available in VTK/C++, but vtk.js does provide the infrastructure needed to define pipelines and filters. - -We have also started to explore a path where you can compile some bits of VTK/C++ into WebAssembly and to enable them to interact with vtk.js. With such interaction, you can pick and choose what you need to extract from VTK and enable it inside your web application. VTK/C++ WebAssembly can even be used for rendering, and examples can be found in [VTK repository](https://github.com/Kitware/VTK/tree/master/Examples/Emscripten/Cxx). Additionally [itk-wasm](https://github.com/InsightSoftwareConsortium/itk-wasm) (which is ITK via WebAssembly) also provides proven implementations for several image filters and data readers. There are, however, some additional costs in terms of the size of the WebAssembly file that will have to be downloaded when visiting a VTK or ITK WebAssembly webpage; and we still have some work to do to streamline the vtk.js + VTK WebAssembly integrations. - -In general if you want to stay in the pure JavaScript land, then vtk.js is perhaps the ideal solution for you. We welcome your feedback, including your contributions for new visualization filters, bug fixes, and examples. - -On top of the rendering capabilities of vtk.js, the library provides helper classes to connect to a remote VTK/ParaView server to enable remote-rendering and/or synchronized C++/RenderWindow content with a local vtk.js RenderWindow by pushing the geometry from the server to the client and only involve rendering on the client side. - -## Using vtk.js -### Requirements - -In general VTK tries to be as portable as possible; the specific configurations below are known to work and tested. - -vtk.js supports the following development environments: - -- Node 22+ -- NPM 10+ - -and we use [@babel/preset-env](https://www.npmjs.com/package/@babel/preset-env) with the [defaults](https://github.com/Kitware/vtk-js/blob/master/.browserslistrc) set of [browsers target](https://browserl.ist/?q=defaults). -But when built from source this could be adjusted to support any browser as long they provide WebGL. - -### Documentation - -- [High-level documentation](https://kitware.github.io/vtk-js/docs/) -- [API descriptions](https://kitware.github.io/vtk-js/api/) -- [Examples](https://kitware.github.io/vtk-js/examples/) - -### Feature requests and Bug reports - -Submit an issue to report bugs or missing features in vtk.js. -### Help and Support - -* [VTK/Web discourse forum](https://discourse.vtk.org/c/web/9) is here to help you find existing questions or ask your own. -* [Kitware](https://www.kitware.com/) offers advanced software R&D solutions and services. Find out how we can help with your next project. - -### License - -VTK is distributed under the OSI-approved BSD 3-clause License. -See [Copyright.txt][] for details. - -[Copyright.txt]: Copyright.txt - -## Contributing - -See [CONTRIBUTING.md](CONTRIBUTING.md) for instructions on how to contribute. diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core.js deleted file mode 100644 index 35692c0c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core.js +++ /dev/null @@ -1,102 +0,0 @@ -import vtkColorMaps from './Core/ColorTransferFunction/ColorMaps.js'; -import vtkAbstractMapper from './Core/AbstractMapper.js'; -import vtkAbstractMapper3D from './Core/AbstractMapper3D.js'; -import vtkAbstractPicker from './Core/AbstractPicker.js'; -import vtkActor from './Core/Actor.js'; -import vtkActor2D from './Core/Actor2D.js'; -import vtkAnnotatedCubeActor from './Core/AnnotatedCubeActor.js'; -import vtkAxesActor from './Core/AxesActor.js'; -import vtkCamera from './Core/Camera.js'; -import vtkCellPicker from './Core/CellPicker.js'; -import vtkColorTransferFunction from './Core/ColorTransferFunction.js'; -import vtkCoordinate from './Core/Coordinate.js'; -import vtkCubeAxesActor from './Core/CubeAxesActor.js'; -import vtkFollower from './Core/Follower.js'; -import vtkGlyph3DMapper from './Core/Glyph3DMapper.js'; -import vtkHardwareSelector from './Core/HardwareSelector.js'; -import vtkImageMapper from './Core/ImageMapper.js'; -import vtkImageProperty from './Core/ImageProperty.js'; -import vtkImageResliceMapper from './Core/ImageResliceMapper.js'; -import vtkImageSlice from './Core/ImageSlice.js'; -import vtkInteractorObserver from './Core/InteractorObserver.js'; -import vtkInteractorStyle from './Core/InteractorStyle.js'; -import vtkLight from './Core/Light.js'; -import vtkMapper from './Core/Mapper.js'; -import vtkMapper2D from './Core/Mapper2D.js'; -import vtkPicker from './Core/Picker.js'; -import vtkPixelSpaceCallbackMapper from './Core/PixelSpaceCallbackMapper.js'; -import vtkPointPicker from './Core/PointPicker.js'; -import vtkProp from './Core/Prop.js'; -import vtkProp3D from './Core/Prop3D.js'; -import vtkProperty from './Core/Property.js'; -import vtkProperty2D from './Core/Property2D.js'; -import vtkRenderer from './Core/Renderer.js'; -import vtkRenderWindow from './Core/RenderWindow.js'; -import vtkRenderWindowInteractor from './Core/RenderWindowInteractor.js'; -import vtkScalarBarActor from './Core/ScalarBarActor.js'; -import vtkSkybox from './Core/Skybox.js'; -import vtkSphereMapper from './Core/SphereMapper.js'; -import vtkStickMapper from './Core/StickMapper.js'; -import vtkTexture from './Core/Texture.js'; -import vtkTextActor from './Core/TextActor.js'; -import vtkTextProperty from './Core/TextProperty.js'; -import vtkVector from './Core/VectorText.js'; -import vtkViewport from './Core/Viewport.js'; -import vtkVolume from './Core/Volume.js'; -import vtkVolumeMapper from './Core/VolumeMapper.js'; -import vtkVolumeProperty from './Core/VolumeProperty.js'; - -// Bundle size management - start -var Core = { - vtkAbstractMapper, - vtkAbstractMapper3D, - vtkAbstractPicker, - vtkActor, - vtkActor2D, - vtkAnnotatedCubeActor, - vtkAxesActor, - vtkCamera, - vtkCellPicker, - vtkColorTransferFunction: { - vtkColorMaps, - ...vtkColorTransferFunction - }, - vtkCoordinate, - vtkCubeAxesActor, - vtkFollower, - vtkGlyph3DMapper, - vtkHardwareSelector, - vtkImageMapper, - vtkImageProperty, - vtkImageResliceMapper, - vtkImageSlice, - vtkInteractorObserver, - vtkInteractorStyle, - vtkLight, - vtkMapper, - vtkMapper2D, - vtkPicker, - vtkPixelSpaceCallbackMapper, - vtkPointPicker, - vtkProp, - vtkProp3D, - vtkProperty, - vtkProperty2D, - vtkRenderer, - vtkRenderWindow, - vtkRenderWindowInteractor, - vtkScalarBarActor, - vtkSkybox, - vtkSphereMapper, - vtkStickMapper, - vtkTexture, - vtkTextActor, - vtkTextProperty, - vtkVector, - vtkViewport, - vtkVolume, - vtkVolumeMapper, - vtkVolumeProperty -}; - -export { Core as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractImageMapper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractImageMapper.d.ts deleted file mode 100644 index 44285410..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractImageMapper.d.ts +++ /dev/null @@ -1,231 +0,0 @@ -import { - vtkAbstractMapper3D, - IAbstractMapper3DInitialValues, -} from './AbstractMapper3D'; -import { vtkImageData } from './../../Common/DataModel/ImageData'; -import { Bounds, Extent, Nullable, RGBAColor } from './../../types'; - -export interface IAbstractImageMapperInitialValues - extends IAbstractMapper3DInitialValues { - customDisplayExtent?: number[]; - useCustomExtents?: boolean; - slice?: number; -} - -export interface vtkAbstractImageMapper extends vtkAbstractMapper3D { - /** - * - */ - getIsOpaque(): boolean; - - /** - * Return currently active image for the mapper. Overridden by deriving classes. - */ - getCurrentImage(): Nullable; - - /** - * Get the slice index. - */ - getSlice(): number; - - /** - * - * @param {Number} slice The slice index. - */ - setSlice(slice: number): boolean; - - /** - * Get bounds for a specified slice. - * To be implemented by derived classes. - * @param {Number} slice The slice index. If undefined, the current slice is considered. - * @param {Number} thickness The slice thickness. If undefined, 0 is considered. - */ - getBoundsForSlice(slice?: number, thickness?: number): Bounds; - - /** - * Return the currently set background color. - */ - getBackgroundColor(): RGBAColor; - - /** - * Return the currently set background color. - */ - getBackgroundColorByReference(): RGBAColor; - - /** - * @param r red component of background color - * @param g green component of background color - * @param b blue component of background color - * @param a opacity component of background color - */ - setBackgroundColor(r: number, g: number, b: number, a: number): boolean; - - /** - * - * @param color specify background color as an array of 4 values. - */ - setBackgroundColor(color: RGBAColor): boolean; - - /** - * - * @param {RGBAColor} color specify the background color to use - * in RGBA format as an array of 4 values. Values are copied. - */ - setBackgroundColorFrom(color: RGBAColor): boolean; - - /** - * - */ - getUseCustomExtents(): boolean; - - /** - * - * @param {Boolean} useCustomExtents - */ - setUseCustomExtents(useCustomExtents: boolean): boolean; - - /** - * - */ - getCustomDisplayExtent(): Extent; - - /** - * - */ - getCustomDisplayExtentByReference(): Extent; - - /** - * - * @param {Number} x1 The x coordinate of the first point. - * @param {Number} x2 The x coordinate of the second point. - * @param {Number} y1 The y coordinate of the first point. - * @param {Number} y2 The y coordinate of the second point. - * @param {Number} z1 The z coordinate of the first point. - * @param {Number} z2 The z coordinate of the second point. - */ - setCustomDisplayExtent( - x1: number, - x2: number, - y1: number, - y2: number, - z1: number, - z2: number - ): boolean; - - /** - * - * @param extents specify extents as an array of 6 values [minx, maxx, ...] - */ - setCustomDisplayExtent(customDisplayExtent: Extent): boolean; - - /** - * - * @param customDisplayExtent - */ - setCustomDisplayExtentFrom(customDisplayExtent: number[]): boolean; - - /** - * Set the opacity texture width. - * - * The default width (1024) should be fine in most instances. - * Only set this property if your opacity function range width is - * larger than 1024. - * - * A reasonable max texture size would be either 2048 or 4096, as those - * widths are supported by the vast majority of devices. Any width larger - * than that will have issues with device support. - * - * Specifying a width that is less than or equal to 0 will use the largest - * possible texture width on the device. Use this with caution! The max texture - * width of one device may not be the same for another device. - * - * You can find more information about supported texture widths at the following link: - * https://web3dsurvey.com/webgl/parameters/MAX_TEXTURE_SIZE - * - * @param {Number} width the texture width (defaults to 1024) - */ - setOpacityTextureWidth(width: number): boolean; - - /** - * Get the opacity texture width. - */ - getOpacityTextureWidth(): number; - - /** - * Set the color texture width. - * - * The default width (1024) should be fine in most instances. - * Only set this property if your color transfer function range width is - * larger than 1024. - * - * A reasonable max texture size would be either 2048 or 4096, as those - * widths are supported by the vast majority of devices. Any width larger - * than that will have issues with device support. - * - * Specifying a width that is less than or equal to 0 will use the largest - * possible texture width on the device. Use this with caution! The max texture - * width of one device may not be the same for another device. - * - * You can find more information about supported texture widths at the following link: - * https://web3dsurvey.com/webgl/parameters/MAX_TEXTURE_SIZE - * - * @param {Number} width the texture width (defaults to 1024) - */ - setColorTextureWidth(width: number): boolean; - - /** - * Get the color texture width. - */ - getColorTextureWidth(): number; - - /** - * Set the label outline texture width. - * - * The default width (1024) should be fine in most instances. - * Only set this property if you have more than 1024 labels - * that you want to render with thickness. - * - * A reasonable max texture size would be either 2048 or 4096, as those - * widths are supported by the vast majority of devices. Any width larger - * than that will have issues with device support. - * - * Specifying a width that is less than or equal to 0 will use the largest - * possible texture width on the device. Use this with caution! The max texture - * width of one device may not be the same for another device. - * - * You can find more information about supported texture widths at the following link: - * https://web3dsurvey.com/webgl/parameters/MAX_TEXTURE_SIZE - * - * @param {Number} width the texture width (defaults to 1024) - */ - setLabelOutlineTextureWidth(width: number): boolean; - - /** - * Get the label outline texture width. - */ - getLabelOutlineTextureWidth(): number; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkAbstractImageMapper characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IAbstractImageMapperInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IAbstractImageMapperInitialValues -): void; - -/** - * vtkImageMapper provides 2D image display support for vtk. - * It can be associated with a vtkImageSlice prop and placed within a Renderer. - * - * This class resolves coincident topology with the same methods as vtkMapper. - */ -export declare const vtkAbstractImageMapper: { - extend: typeof extend; -}; -export default vtkAbstractImageMapper; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractImageMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractImageMapper.js deleted file mode 100644 index 2415b45a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractImageMapper.js +++ /dev/null @@ -1,52 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkAbstractMapper3D from './AbstractMapper3D.js'; -import { I as createUninitializedBounds } from '../../Common/Core/Math/index.js'; - -// ---------------------------------------------------------------------------- -// vtkAbstractImageMapper methods -// ---------------------------------------------------------------------------- - -function vtkAbstractImageMapper(publicAPI, model) { - model.classHierarchy.push('vtkAbstractImageMapper'); - publicAPI.getIsOpaque = () => true; - publicAPI.getCurrentImage = () => null; - publicAPI.getBoundsForSlice = () => { - macro.vtkErrorMacro('vtkAbstractImageMapper.getBoundsForSlice - NOT IMPLEMENTED'); - return createUninitializedBounds(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - slice: 0, - customDisplayExtent: [0, 0, 0, 0, 0, 0], - useCustomExtents: false, - backgroundColor: [0, 0, 0, 1], - colorTextureWidth: 1024, - opacityTextureWidth: 1024, - labelOutlineTextureWidth: 1024 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - vtkAbstractMapper3D.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['slice', 'useCustomExtents', 'colorTextureWidth', 'opacityTextureWidth', 'labelOutlineTextureWidth']); - macro.setGetArray(publicAPI, model, ['customDisplayExtent'], 6); - macro.setGetArray(publicAPI, model, ['backgroundColor'], 4); - vtkAbstractImageMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- -var vtkAbstractImageMapper$1 = { - extend -}; - -export { vtkAbstractImageMapper$1 as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractImageMapper/helper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractImageMapper/helper.js deleted file mode 100644 index e1ed3805..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractImageMapper/helper.js +++ /dev/null @@ -1,122 +0,0 @@ -import { vec3 } from 'gl-matrix'; -import vtkPlane from '../../../Common/DataModel/Plane.js'; - -/** - * Perform plane-line intersection, where the line is defined by two points (p1, p2), - * and the plane is defined by the imageData and slice number. - * - * @param {Vector3} p1 - * @param {Vector3} p2 - * @param {vtkImageMapper|vtkImageArrayMapper} mapper - */ -function doPicking(p1, p2, mapper) { - const imageData = mapper.getCurrentImage(); - const extent = imageData.getExtent(); - - // Slice origin - const ijk = [extent[0], extent[2], extent[4]]; - const { - ijkMode - } = mapper.getClosestIJKAxis(); - let nSlice = mapper.isA('vtkImageArrayMapper') ? mapper.getSubSlice() : mapper.getSlice(); - if (ijkMode !== mapper.getSlicingMode()) { - // If not IJK slicing, get the IJK slice from the XYZ position/slice - nSlice = mapper.getSliceAtPosition(nSlice); - } - ijk[ijkMode] += nSlice; - const worldOrigin = [0, 0, 0]; - imageData.indexToWorld(ijk, worldOrigin); - - // Normal computation - ijk[ijkMode] += 1; - const worldNormal = [0, 0, 0]; - imageData.indexToWorld(ijk, worldNormal); - worldNormal[0] -= worldOrigin[0]; - worldNormal[1] -= worldOrigin[1]; - worldNormal[2] -= worldOrigin[2]; - vec3.normalize(worldNormal, worldNormal); - const intersect = vtkPlane.intersectWithLine(p1, p2, worldOrigin, worldNormal); - if (intersect.intersection) { - const point = intersect.x; - const absoluteIJK = [0, 0, 0]; - imageData.worldToIndex(point, absoluteIJK); - // `t` is the parametric position along the line - // defined in Plane.intersectWithLine - return { - t: intersect.t, - absoluteIJK - }; - } - return null; -} - -/** - * Implement point picking for image plane. - * The plane is defined by the imageData and current slice number, - * set in the input mapper. - * - * @param {Vector3} p1 - * @param {Vector3} p2 - * @param {vtkImageMapper|vtkImageArrayMapper} mapper - */ -function intersectWithLineForPointPicking(p1, p2, mapper) { - const pickingData = doPicking(p1, p2, mapper); - if (pickingData) { - const imageData = mapper.getCurrentImage(); - const extent = imageData.getExtent(); - - // Get closer integer ijk - // NB: point picking means closest slice, means rounding - const ijk = [Math.round(pickingData.absoluteIJK[0]), Math.round(pickingData.absoluteIJK[1]), Math.round(pickingData.absoluteIJK[2])]; - - // Are we outside our actual extent - if (ijk[0] < extent[0] || ijk[0] > extent[1] || ijk[1] < extent[2] || ijk[1] > extent[3] || ijk[2] < extent[4] || ijk[2] > extent[5]) { - return null; - } - return { - t: pickingData.t, - ijk - }; - } - return null; -} - -/** - * Implement cell picking for image plane. - * The plane is defined by the imageData and current slice number, - * set in the input mapper. - * - * @param {Vector3} p1 - * @param {Vector3} p2 - * @param {vtkImageMapper|vtkImageArrayMapper} mapper - */ -function intersectWithLineForCellPicking(p1, p2, mapper) { - const pickingData = doPicking(p1, p2, mapper); - if (pickingData) { - const imageData = mapper.getCurrentImage(); - const extent = imageData.getExtent(); - const absIJK = pickingData.absoluteIJK; - - // Get closer integer ijk - // NB: cell picking means closest voxel, means flooring - const ijk = [Math.floor(absIJK[0]), Math.floor(absIJK[1]), Math.floor(absIJK[2])]; - - // Are we outside our actual extent - if (ijk[0] < extent[0] || ijk[0] > extent[1] - 1 || ijk[1] < extent[2] || ijk[1] > extent[3] - 1 || ijk[2] < extent[4] || - // handle single-slice images - ijk[2] > (extent[5] ? extent[5] - 1 : extent[5])) { - return null; - } - - // Parametric coordinates within cell - const pCoords = [absIJK[0] - ijk[0], absIJK[1] - ijk[1], absIJK[2] - ijk[2]]; - return { - t: pickingData.t, - ijk, - pCoords - }; - } - return null; -} - -export { intersectWithLineForCellPicking, intersectWithLineForPointPicking }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractMapper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractMapper.d.ts deleted file mode 100644 index 2af388fd..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractMapper.d.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import vtkPlane from './../../Common/DataModel/Plane'; -import { mat4 } from 'gl-matrix'; - -/** - * - */ -export interface IAbstractMapperInitialValues { - clippingPlanes?: vtkPlane[]; -} - -type vtkAbstractMapperBase = vtkObject & - Omit; - -export interface vtkAbstractMapper extends vtkAbstractMapperBase { - /** - * Added plane needs to be a vtkPlane object. - * @param {vtkPlane} plane - */ - addClippingPlane(plane: vtkPlane): boolean; - - /** - * Get number of clipping planes. - * @return {Number} The number of clipping planes. - */ - getNumberOfClippingPlanes(): number; - - /** - * Get all clipping planes. - * @return {vtkPlane[]} An array of the clipping planes objects - */ - getClippingPlanes(): vtkPlane[]; - - /** - * Remove all clipping planes. - * @return true if there were planes, false otherwise. - */ - removeAllClippingPlanes(): boolean; - - /** - * Remove clipping plane. - * @param {vtkPlane} plane - * @return true if plane existed and therefore is removed, false otherwise. - */ - removeClippingPlane(plane: vtkPlane): boolean; - - /** - * Set clipping planes. - * @param {vtkPlane[]} planes - */ - setClippingPlanes(planes: vtkPlane[]): void; - - /** - * Get the ith clipping plane as a homogeneous plane equation. - * Use getNumberOfClippingPlanes() to get the number of planes. - * @param {mat4} propMatrix - * @param {Number} i - * @param {Number[]} hnormal - */ - getClippingPlaneInDataCoords( - propMatrix: mat4, - i: number, - hnormal: number[] - ): void; - - /** - * - */ - update(): void; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkAbstractMapper characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IAbstractMapperInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IAbstractMapperInitialValues -): void; - -/** - * vtkAbstractMapper is an abstract class to specify interface between data and - * graphics primitives or software rendering techniques. Subclasses of - * vtkAbstractMapper can be used for rendering 2D data, geometry, or volumetric - * data. - */ -export declare const vtkAbstractMapper: { - extend: typeof extend; -}; -export default vtkAbstractMapper; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractMapper.js deleted file mode 100644 index 84e52fa1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractMapper.js +++ /dev/null @@ -1,112 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkAbstractMapper methods -// ---------------------------------------------------------------------------- - -function vtkAbstractMapper(publicAPI, model) { - model.classHierarchy.push('vtkAbstractMapper'); - publicAPI.update = () => { - publicAPI.getInputData(); - }; - publicAPI.addClippingPlane = plane => { - if (!plane.isA('vtkPlane')) { - return false; - } - if (!model.clippingPlanes.includes(plane)) { - model.clippingPlanes.push(plane); - publicAPI.modified(); - return true; - } - return false; - }; - publicAPI.getNumberOfClippingPlanes = () => model.clippingPlanes.length; - publicAPI.removeAllClippingPlanes = () => { - if (model.clippingPlanes.length === 0) { - return false; - } - model.clippingPlanes.length = 0; - publicAPI.modified(); - return true; - }; - publicAPI.removeClippingPlane = clippingPlane => { - const i = model.clippingPlanes.indexOf(clippingPlane); - if (i === -1) { - return false; - } - model.clippingPlanes.splice(i, 1); - publicAPI.modified(); - return true; - }; - publicAPI.getClippingPlanes = () => model.clippingPlanes; - publicAPI.setClippingPlanes = planes => { - if (!planes) { - return; - } - if (!Array.isArray(planes)) { - publicAPI.addClippingPlane(planes); - } else { - const nbPlanes = planes.length; - for (let i = 0; i < nbPlanes && i < 6; i++) { - publicAPI.addClippingPlane(planes[i]); - } - } - }; - publicAPI.getClippingPlaneInDataCoords = (propMatrix, i, hnormal) => { - const clipPlanes = model.clippingPlanes; - const mat = propMatrix; - if (clipPlanes) { - const n = clipPlanes.length; - if (i >= 0 && i < n) { - // Get the plane - const plane = clipPlanes[i]; - const normal = plane.getNormal(); - const origin = plane.getOrigin(); - - // Compute the plane equation - const v1 = normal[0]; - const v2 = normal[1]; - const v3 = normal[2]; - const v4 = -(v1 * origin[0] + v2 * origin[1] + v3 * origin[2]); - - // Transform normal from world to data coords - hnormal[0] = v1 * mat[0] + v2 * mat[4] + v3 * mat[8] + v4 * mat[12]; - hnormal[1] = v1 * mat[1] + v2 * mat[5] + v3 * mat[9] + v4 * mat[13]; - hnormal[2] = v1 * mat[2] + v2 * mat[6] + v3 * mat[10] + v4 * mat[14]; - hnormal[3] = v1 * mat[3] + v2 * mat[7] + v3 * mat[11] + v4 * mat[15]; - return; - } - } - macro.vtkErrorMacro(`Clipping plane index ${i} is out of range.`); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - clippingPlanes: [] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.algo(publicAPI, model, 1, 0); - if (!model.clippingPlanes) { - model.clippingPlanes = []; - } - vtkAbstractMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- -var vtkAbstractMapper$1 = { - extend -}; - -export { vtkAbstractMapper$1 as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractMapper3D.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractMapper3D.d.ts deleted file mode 100644 index 95dff53a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractMapper3D.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { Bounds, Vector3 } from './../../types'; -import vtkAbstractMapper, { - IAbstractMapperInitialValues, -} from './AbstractMapper'; - -/** - * - */ -export interface IAbstractMapper3DInitialValues - extends IAbstractMapperInitialValues { - bounds?: Bounds; - center?: Vector3; -} - -export interface vtkAbstractMapper3D extends vtkAbstractMapper { - /** - * Get the bounds for this mapper as [xmin, xmax, ymin, ymax,zmin, zmax]. - * @default 0 - * @return {Bounds} The bounds for the mapper. - */ - getBounds(): Bounds; - - /** - * Get the center of this mapper’s data. - * @return {Vector3} The center of the mapper's data. - */ - getCenter(): Vector3; - - /** - * Get the diagonal length of this mappers bounding box. - * @return {Number} The diagonal length of mapper bounding box. - */ - getLength(): number; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkAbstractMapper3D characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IAbstractMapper3DInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IAbstractMapper3DInitialValues -): void; - -/** - * vtkAbstractMapper3D is an abstract class to specify interface between 3D - * data and graphics primitives or software rendering techniques. Subclasses - * of vtkAbstractMapper3D can be used for rendering geometry or rendering - * volumetric data. - * - * This class also defines an API to support hardware clipping planes (at most - * six planes can be defined). It also provides geometric data about the input - * data it maps, such as the bounding box and center. - */ -export declare const vtkAbstractMapper3D: { - extend: typeof extend; -}; -export default vtkAbstractMapper3D; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractMapper3D.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractMapper3D.js deleted file mode 100644 index c934314b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractMapper3D.js +++ /dev/null @@ -1,54 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkAbstractMapper from './AbstractMapper.js'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; -import { I as createUninitializedBounds } from '../../Common/Core/Math/index.js'; - -// ---------------------------------------------------------------------------- -// vtkAbstractMapper methods -// ---------------------------------------------------------------------------- - -function vtkAbstractMapper3D(publicAPI, model) { - publicAPI.getBounds = () => { - macro.vtkErrorMacro(`vtkAbstractMapper3D.getBounds - NOT IMPLEMENTED`); - return createUninitializedBounds(); - }; - publicAPI.getCenter = () => { - const bounds = publicAPI.getBounds(); - model.center = vtkBoundingBox.isValid(bounds) ? vtkBoundingBox.getCenter(bounds) : null; - return model.center?.slice(); - }; - publicAPI.getLength = () => { - const bounds = publicAPI.getBounds(); - return vtkBoundingBox.getDiagonalLength(bounds); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const defaultValues = initialValues => ({ - bounds: [...vtkBoundingBox.INIT_BOUNDS], - center: [0, 0, 0], - viewSpecificProperties: {}, - ...initialValues -}); - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - // Inheritance - vtkAbstractMapper.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['viewSpecificProperties']); - vtkAbstractMapper3D(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -var vtkAbstractMapper3D$1 = { - extend -}; - -export { vtkAbstractMapper3D$1 as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractPicker.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractPicker.d.ts deleted file mode 100644 index 3f5b8a5f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractPicker.d.ts +++ /dev/null @@ -1,122 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { Vector3 } from './../../types'; -import vtkProp3D from './Prop3D'; -import vtkRenderer from './Renderer'; - -/** - * - */ -export interface IAbstractPickerInitialValues { - renderer?: vtkRenderer; - selectionPoint?: Vector3; - pickPosition?: Vector3; - pickFromList?: boolean; - pickList?: vtkProp3D[]; -} - -/** - * - */ -export interface vtkAbstractPicker extends vtkObject { - /** - * - * @param {vtkProp3D} prop - */ - addPickList(prop: vtkProp3D): void; - - /** - * - * @param {vtkProp3D} prop - */ - deletePickList(prop: vtkProp3D): void; - - /** - * - */ - getPickFromList(): boolean; - - /** - * - */ - getPickList(): vtkProp3D[]; - - /** - * Get the picked position - * @default [0.0, 0.0, 0.0] - */ - getPickPosition(): Vector3; - - /** - * - * Get the picked position - * @default [0.0, 0.0, 0.0] - */ - getPickPositionByReference(): Vector3; - - /** - * - */ - getRenderer(): vtkRenderer; - - /** - * - * @default [0.0, 0.0, 0.0] - */ - getSelectionPoint(): Vector3; - - /** - * - * @default [0.0, 0.0, 0.0] - */ - getSelectionPointByReference(): Vector3; - - /** - * - */ - initialize(): void; - - /** - * Set pickList to empty array. - */ - initializePickList(): void; - - /** - * - * @param {Boolean} pickFromList - * @default false - */ - setPickFromList(pickFromList: boolean): boolean; - - /** - * - * @param {vtkProp3D[]} pickList - * @default [] - */ - setPickList(pickList: vtkProp3D[]): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkAbstractPicker characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IAbstractPickerInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: IAbstractPickerInitialValues, - model: object, - initialValues?: object -): void; - -/** - * vtkAbstractPicker is an abstract superclass that defines a minimal API for its concrete subclasses. - * The minimum functionality of a picker is to return the x-y-z global coordinate position of a pick (the pick itself is defined in display coordinates). - * - * The API to this class is to invoke the Pick() method with a selection point (in display coordinates - pixels) - * and a renderer. Then get the resulting pick position in global coordinates with the GetPickPosition() method. - * @see [vtkPointPicker](./Rendering_Core_PointPicker.html) - */ -export declare const vtkAbstractPicker: { - extend: typeof extend; -}; -export default vtkAbstractPicker; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractPicker.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractPicker.js deleted file mode 100644 index 290a4598..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AbstractPicker.js +++ /dev/null @@ -1,70 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkAbstractPicker methods -// ---------------------------------------------------------------------------- - -function vtkAbstractPicker(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkAbstractPicker'); - publicAPI.initialize = () => { - model.renderer = null; - model.selectionPoint[0] = 0.0; - model.selectionPoint[1] = 0.0; - model.selectionPoint[2] = 0.0; - model.pickPosition[0] = 0.0; - model.pickPosition[1] = 0.0; - model.pickPosition[2] = 0.0; - }; - publicAPI.initializePickList = () => { - model.pickList = []; - }; - publicAPI.addPickList = actor => { - model.pickList.push(actor); - }; - publicAPI.deletePickList = actor => { - const i = model.pickList.indexOf(actor); - if (i !== -1) { - model.pickList.splice(i, 1); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - renderer: null, - selectionPoint: [0.0, 0.0, 0.0], - pickPosition: [0.0, 0.0, 0.0], - pickFromList: false, - pickList: [] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['renderer']); - macro.getArray(publicAPI, model, ['selectionPoint', 'pickPosition']); - macro.setGet(publicAPI, model, ['pickFromList', 'pickList']); - vtkAbstractPicker(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkAbstractPicker'); - -// ---------------------------------------------------------------------------- - -var vtkAbstractPicker$1 = { - newInstance, - extend -}; - -export { vtkAbstractPicker$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Actor.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Actor.d.ts deleted file mode 100644 index 9688bd04..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Actor.d.ts +++ /dev/null @@ -1,150 +0,0 @@ -import { Bounds, Nullable } from './../../types'; -import vtkMapper from './Mapper'; -import vtkProp3D, { IProp3DInitialValues } from './Prop3D'; -import vtkProperty, { IPropertyInitialValues } from './Property'; - -/** - * - */ -export interface IActorInitialValues extends IProp3DInitialValues { - mapper?: vtkMapper; - property?: vtkProperty; - backfaceProperty?: vtkProperty; - forceOpaque?: boolean; - forceTranslucent?: boolean; - bounds?: Bounds; -} - -export interface vtkActor extends vtkProp3D { - /** - * Return if the prop have some translucent polygonal geometry - */ - hasTranslucentPolygonalGeometry(): boolean; - - /** - * For some exporters and other other operations we must be - * able to collect all the actors or volumes. These methods - * are used in that process. - * @return {vtkActor[]} list of actors - */ - getActors(): vtkActor[]; - - /** - * Get the property object that controls this actors backface surface - * properties. - * @return {vtkProperty} the backface property. - */ - getBackfaceProperty(): vtkProperty; - - /** - * Check whether the opaque is forced or not. - */ - getForceOpaque(): boolean; - - /** - * Check whether the translucency is forced or not. - */ - getForceTranslucent(): boolean; - - /** - * Check if the actor is opaque or not - * @return true if the actor is opaque - */ - getIsOpaque(): boolean; - - /** - * Get the Mapper that this actor is getting its data from. - */ - getMapper(): Nullable; - - /** - * Check whether if the actor supports selection - * @return {Boolean} true if the actor support selection. - */ - getSupportsSelection(): boolean; - - /** - * Create a new property suitable for use with this type of Actor. - * @param {IPropertyInitialValues} [initialValues] (default: {}) - */ - makeProperty(initialValues?: IPropertyInitialValues): vtkProperty; - - /** - * Set the property object that controls this actors backface surface - * properties. - * @param {vtkProperty} backfaceProperty The backfaceProperty instance. - */ - setBackfaceProperty(backfaceProperty: vtkProperty): boolean; - - /** - * Force the actor to be treated as opaque or translucent. - * @param {Boolean} forceOpaque - */ - setForceOpaque(forceOpaque: boolean): boolean; - - /** - * Force the actor to be treated as opaque or translucent. - * @param {Boolean} forceTranslucent - */ - setForceTranslucent(forceTranslucent: boolean): boolean; - - /** - * This is the method that is used to connect an actor to the end of a - * visualization pipeline, i.e. the mapper. - * @param {vtkMapper} mapper The vtkMapper instance. - */ - setMapper(mapper: vtkMapper): boolean; - - // Inherited from vtkProp3D, but takes a vtkProperty instead of a generic vtkObject - getProperty(mapperInputPort?: number): vtkProperty; - getProperties(): vtkProperty[]; - setProperty(mapperInputPort: number, property: vtkProperty): boolean; - setProperty(property: vtkProperty): boolean; - setProperties(properties: vtkProperty[]): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkActor characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IActorInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IActorInitialValues -): void; - -/** - * Method used to create a new instance of vtkActor with the following defaults: - * - * * origin = [0, 0, 0] - * * position = [0, 0, 0] - * * scale = [1, 1, 1] - * * visibility = 1 - * * pickable = 1 - * * dragable = 1 - * * orientation = [0, 0, 0] - * - * No user defined matrix and no texture map. - * @param {IActorInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: IActorInitialValues): vtkActor; - -/** - * vtkActor is used to represent an entity in a rendering scene. It inherits - * functions related to the actors position, and orientation from - * vtkProp3D. The actor also has scaling and maintains a reference to the - * defining geometry (i.e., the mapper), rendering properties, and possibly a - * texture map. vtkActor combines these instance variables into one 4x4 - * transformation matrix as follows: [x y z 1] = [x y z 1] Translate(-origin) - * Scale(scale) Rot(y) Rot(x) Rot (z) Trans(origin) Trans(position) - * @see [vtkMapper](./Rendering_Core_Mapper.html) - * @see [vtkProperty](./Rendering_Core_Property.html) - */ -export declare const vtkActor: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkActor; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Actor.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Actor.js deleted file mode 100644 index 9a53f89d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Actor.js +++ /dev/null @@ -1,125 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkProp3D from './Prop3D.js'; -import vtkProperty from './Property.js'; - -// ---------------------------------------------------------------------------- -// vtkActor methods -// ---------------------------------------------------------------------------- - -function vtkActor(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkActor'); - - // Capture 'parentClass' api for internal use - const superClass = { - ...publicAPI - }; - publicAPI.getActors = () => [publicAPI]; - publicAPI.getIsOpaque = () => { - if (model.forceOpaque) { - return true; - } - if (model.forceTranslucent) { - return false; - } - // make sure we have a property - if (!model.properties[0]) { - // force creation of a property - publicAPI.getProperty(); - } - let isOpaque = model.properties[0].getOpacity() >= 1.0; - - // are we using an opaque texture, if any? - isOpaque = isOpaque && (!model.texture || !model.texture.isTranslucent()); - - // are we using an opaque scalar array, if any? - isOpaque = isOpaque && (!model.mapper || model.mapper.getIsOpaque()); - return isOpaque; - }; - publicAPI.hasTranslucentPolygonalGeometry = () => { - if (model.mapper === null) { - return false; - } - // make sure we have a property - if (!model.properties[0]) { - // force creation of a property - publicAPI.getProperty(); - } - - // is this actor opaque ? - return !publicAPI.getIsOpaque(); - }; - publicAPI.makeProperty = vtkProperty.newInstance; - publicAPI.getMTime = () => { - let mt = superClass.getMTime(); - if (model.backfaceProperty !== null) { - const time = model.backfaceProperty.getMTime(); - mt = time > mt ? time : mt; - } - return mt; - }; - publicAPI.getRedrawMTime = () => { - let mt = model.mtime; - if (model.mapper !== null) { - let time = model.mapper.getMTime(); - mt = time > mt ? time : mt; - if (model.mapper.getInput() !== null) { - // FIXME !!! getInputAlgorithm / getInput - model.mapper.getInputAlgorithm().update(); - time = model.mapper.getInput().getMTime(); - mt = time > mt ? time : mt; - } - } - return mt; - }; - publicAPI.getSupportsSelection = () => model.mapper ? model.mapper.getSupportsSelection() : false; - publicAPI.processSelectorPixelBuffers = (selector, pixelOffsets) => { - if (model.mapper && model.mapper.processSelectorPixelBuffers) { - model.mapper.processSelectorPixelBuffers(selector, pixelOffsets); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - mapper: null, - backfaceProperty: null, - forceOpaque: false, - forceTranslucent: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkProp3D.extend(publicAPI, model, initialValues); - - // vtkTimeStamp - model.boundsMTime = {}; - macro.obj(model.boundsMTime); - - // Build VTK API - macro.setGet(publicAPI, model, ['backfaceProperty', 'forceOpaque', 'forceTranslucent', 'mapper']); - - // Object methods - vtkActor(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkActor'); - -// ---------------------------------------------------------------------------- - -var vtkActor$1 = { - newInstance, - extend -}; - -export { vtkActor$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Actor2D.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Actor2D.d.ts deleted file mode 100644 index 8530a4a6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Actor2D.d.ts +++ /dev/null @@ -1,164 +0,0 @@ -import vtkProp, { IPropInitialValues } from './Prop'; -import vtkCoordinate from './Coordinate'; -import vtkMapper from './Mapper'; -import vtkProperty2D, { IProperty2DInitialValues } from './Property2D'; -import vtkMapper2D from './Mapper2D'; -import { Bounds } from './../../types'; - -/** - * - */ -export interface IActor2DInitialValues extends IPropInitialValues { - mapper?: vtkMapper; - property?: vtkProperty2D; - layerNumber?: number; - positionCoordinate?: vtkCoordinate; - positionCoordinate2?: vtkCoordinate; -} - -export interface vtkActor2D extends vtkProp { - /** - * - * @return - */ - getActors2D(): any; - - /** - * - * @return - */ - getIsOpaque(): boolean; - - /** - * Return the property object that controls this actors surface - * properties. This should be an instance of a vtkProperty2D object. Every - * actor must have a property associated with it. If one isn’t specified, - * then one will be generated automatically. Multiple actors can share one - * property object. - */ - getProperty(): vtkProperty2D; - - /** - * Create a new property suitable for use with this type of Actor. - * @param {IProperty2DInitialValues} [initialValues] (default: {}) - */ - makeProperty(initialValues?: IProperty2DInitialValues): vtkProperty2D; - - /** - * Sets the 2D mapper. - */ - setMapper(mapper: vtkMapper2D): boolean; - - /** - * Gets the 2D mapper. - */ - getMapper(): vtkMapper2D; - - /** - * Set the layer number for this 2D actor. - * The scenegraph uses this layer number to sort actor 2D overlays/underlays on top of each other. - * The actor2D with the highest layer number is going to be rendered at the very front i.e. it is - * the top-most layer. - * If two actor2D instances share the same layer number, they are rendered in the order in which - * they were added to the renderer via `addActor` or `addActor2D`. - * By default, each actor2D has a layer number of 0. - */ - setLayerNumber(layer: number): void; - - /** - * Get the layer number for this 2D actor. - * The scenegraph uses this layer number to sort actor 2D overlays/underlays on top of each other. - * The actor2D with the highest layer number is going to be rendered at the very front i.e. it is - * the top-most layer. - * If two actor2D instances share the same layer number, they are rendered in the order in which - * they were added to the renderer via `addActor` or `addActor2D`. - * By default, each actor2D has a layer number of 0. - */ - getLayerNumber(): number; - - /** - * - */ - hasTranslucentPolygonalGeometry(): boolean; - - /** - * Set the Prop2D's position in display coordinates. - * @param XPos - * @param YPos - */ - setDisplayPosition(XPos: any, YPos: any): void; - - /** - * - * @param w - */ - setWidth(w: number): void; - - /** - * - * @param w - */ - setHeight(h: number): void; - - /** - * - */ - getWidth(): number; - - /** - * - */ - getHeight(): number; - - /** - * Get the bounds as [xmin, xmax, ymin, ymax, zmin, zmax]. - * @return {Bounds} The bounds for the mapper. - */ - getBounds(): Bounds; - - /** - * Return the actual vtkCoordinate reference that the mapper should use - * to position the actor. This is used internally by the mappers and should - * be overridden in specialized subclasses and otherwise ignored. - */ - getActualPositionCoordinate(): vtkCoordinate; - - /** - * - */ - getActualPositionCoordinate2(): vtkCoordinate; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkActor2D characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IActor2DInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IActor2DInitialValues -): void; - -/** - * Method use to create a new instance of vtkActor2D - * @param {IActor2DInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: IActor2DInitialValues): vtkActor2D; - -/** - * vtkActor2D is used to represent a 2D entity in a rendering scene. It inherits - * functions related to the actors position, and orientation from - * vtkProp. The actor also has scaling and maintains a reference to the - * defining geometry (i.e., the mapper), rendering properties, and possibly a - * texture map. - * @see [vtkMapper2D](./Rendering_Core_Mapper2D.html) - * @see [vtkProperty2D](./Rendering_Core_Property2D.html) - */ -export declare const vtkActor2D: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkActor2D; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Actor2D.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Actor2D.js deleted file mode 100644 index 82df923d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Actor2D.js +++ /dev/null @@ -1,165 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCoordinate from './Coordinate.js'; -import vtkProp from './Prop.js'; -import vtkProperty2D from './Property2D.js'; -import { Coordinate } from './Coordinate/Constants.js'; - -// ---------------------------------------------------------------------------- -// vtkActor2D methods -// ---------------------------------------------------------------------------- - -function vtkActor2D(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkActor2D'); - publicAPI.getActors2D = () => publicAPI; - publicAPI.getIsOpaque = () => { - // make sure we have a property - if (!model.property) { - // force creation of a property - publicAPI.getProperty(); - } - let isOpaque = model.property.getOpacity() >= 1.0; - - // are we using an opaque texture, if any? - isOpaque = isOpaque && (!model.texture || !model.texture.isTranslucent()); - return isOpaque; - }; - publicAPI.hasTranslucentPolygonalGeometry = () => { - if (model.mapper === null) { - return false; - } - // make sure we have a property - if (model.property === null) { - // force creation of a property - publicAPI.setProperty(publicAPI.makeProperty()); - } - - // is this actor opaque ? - return !publicAPI.getIsOpaque(); - }; - publicAPI.makeProperty = vtkProperty2D.newInstance; - publicAPI.getProperty = () => { - if (model.property === null) { - model.property = publicAPI.makeProperty(); - } - return model.property; - }; - - //---------------------------------------------------------------------------- - // Set the Prop2D's position in display coordinates. - publicAPI.setDisplayPosition = (XPos, YPos) => { - model.positionCoordinate.setCoordinateSystem(Coordinate.DISPLAY); - model.positionCoordinate.setValue(XPos, YPos, 0.0); - }; - - //---------------------------------------------------------------------------- - publicAPI.setWidth = w => { - const pos = model.position2Coordinate.getValue(); - model.position2Coordinate.setCoordinateSystemToNormalizedViewport(); - model.position2Coordinate.setValue(w, pos[1]); - }; - - //---------------------------------------------------------------------------- - publicAPI.setHeight = w => { - const pos = model.position2Coordinate.getValue(); - model.position2Coordinate.setCoordinateSystemToNormalizedViewport(); - model.position2Coordinate.setValue(pos[0], w); - }; - - //---------------------------------------------------------------------------- - publicAPI.getWidth = () => model.position2Coordinate.getValue()[0]; - - //---------------------------------------------------------------------------- - publicAPI.getHeight = () => model.position2Coordinate.getValue()[1]; - publicAPI.getMTime = () => { - let mt = model.mtime; - if (model.property !== null) { - const time = model.property.getMTime(); - mt = time > mt ? time : mt; - } - mt = model.positionCoordinate.getMTime() > mt ? model.positionCoordinate.getMTime() : mt; - mt = model.positionCoordinate2.getMTime() > mt ? model.positionCoordinate2.getMTime() : mt; - - // TBD: Handle array of textures here. - - return mt; - }; - publicAPI.getRedrawMTime = () => { - let mt = model.mtime; - if (model.mapper !== null) { - let time = model.mapper.getMTime(); - mt = time > mt ? time : mt; - if (model.mapper.getInput() !== null) { - // FIXME !!! getInputAlgorithm / getInput - model.mapper.getInputAlgorithm().update(); - time = model.mapper.getInput().getMTime(); - mt = time > mt ? time : mt; - } - } - return mt; - }; - publicAPI.getBounds = () => { - // does our mapper support bounds - if (typeof publicAPI.getMapper().getBounds === 'function') { - model.useBounds = true; - return publicAPI.getMapper().getBounds(); - } - model.useBounds = false; - return []; - }; - - // Description: - // Return the actual vtkCoordinate reference that the mapper should use - // to position the actor. This is used internally by the mappers and should - // be overridden in specialized subclasses and otherwise ignored. - publicAPI.getActualPositionCoordinate = () => model.positionCoordinate; - publicAPI.getActualPositionCoordinate2 = () => model.positionCoordinate2; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - mapper: null, - property: null, - layerNumber: 0, - positionCoordinate: null, - positionCoordinate2: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkProp.extend(publicAPI, model, initialValues); - model.positionCoordinate = vtkCoordinate.newInstance(); - model.positionCoordinate.setCoordinateSystemToViewport(); - model.positionCoordinate2 = vtkCoordinate.newInstance(); - model.positionCoordinate2.setCoordinateSystemToNormalizedViewport(); - model.positionCoordinate2.setValue(0.5, 0.5); - model.positionCoordinate2.setReferenceCoordinate(model.positionCoordinate); - - // Build VTK API - macro.set(publicAPI, model, ['property']); - macro.setGet(publicAPI, model, ['mapper', 'layerNumber']); - - // Object methods - vtkActor2D(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkActor2D'); - -// ---------------------------------------------------------------------------- - -var vtkActor2D$1 = { - newInstance, - extend -}; - -export { vtkActor2D$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AnnotatedCubeActor.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AnnotatedCubeActor.d.ts deleted file mode 100644 index 404c1707..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AnnotatedCubeActor.d.ts +++ /dev/null @@ -1,111 +0,0 @@ -import vtkActor, { IActorInitialValues } from './Actor'; - -export interface IStyle { - text?: string; - faceColor?: string; - faceRotation?: number; - fontFamily?: string; - fontColor?: string; - fontStyle?: string; - fontSizeScale?: (res: number) => number; - edgeThickness?: number; - edgeColor?: string; - resolution?: number; -} - -export interface IFaceProperty extends IStyle { - text?: string; - faceRotation?: number; -} - -/** - * - */ -export interface IAnnotatedCubeActorInitialValues extends IActorInitialValues {} - -export interface vtkAnnotatedCubeActor extends vtkActor { - /** - * Set the default style. - * @param {IStyle} style - */ - setDefaultStyle(style: IStyle): boolean; - - /** - * The +X face property. - * @param {IFaceProperty} prop +X face property - */ - setXPlusFaceProperty(prop: IFaceProperty): boolean; - - /** - * The -X face property. - * @param {IFaceProperty} prop The -X face property. - */ - setXMinusFaceProperty(prop: IFaceProperty): boolean; - - /** - * The +Y face property. - * @param {IFaceProperty} prop The +Y face property. - */ - setYPlusFaceProperty(prop: IFaceProperty): boolean; - - /** - * The -Y face property. - * @param {IFaceProperty} prop The -Y ace property. - */ - setYMinusFaceProperty(prop: IFaceProperty): boolean; - - /** - * The +Z face property. - * @param {IFaceProperty} prop The +Z face property. - */ - setZPlusFaceProperty(prop: IFaceProperty): boolean; - - /** - * The -Z face property. - * @param {IFaceProperty} prop The -Z face property. - */ - setZMinusFaceProperty(prop: IFaceProperty): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkAnnotatedCubeActor characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IAnnotatedCubeActorInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IAnnotatedCubeActorInitialValues -): void; - -/** - * Method use to create a new instance of vtkAnnotatedCubeActor - * @param {IAnnotatedCubeActorInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IAnnotatedCubeActorInitialValues -): vtkAnnotatedCubeActor; - -/** - * All propertyObjects may have any of the following keys: - * * text: the face text (default “”) - * * faceColor: the face color (default “white”) - * * faceRotation: the face rotation, in degrees (default 0) - * * fontFamily: the font family to use (default Arial) - * * fontColor: the font color (default “black”) - * * fontStyle: the CSS style for the text (default “normal”) - * * fontSizeScale: A function that takes the face resolution and returns the - * pixel size of the font (default (resolution) => resolution / 1.8) - * * edgeThickness: the face edge/border thickness, which is a fraction of the - * cube resolution (default 0.1) - * * edgeColor: the color of each face’s edge/border (default “white”) - * resolution: the pixel resolution of a face, i.e. pixel side length (default 200) - * If a key is not specified, then the default value is used. - */ -export declare const vtkAnnotatedCubeActor: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkAnnotatedCubeActor; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AnnotatedCubeActor.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AnnotatedCubeActor.js deleted file mode 100644 index 0ccdd4be..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AnnotatedCubeActor.js +++ /dev/null @@ -1,195 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkActor from './Actor.js'; -import vtkMapper from './Mapper.js'; -import vtkTexture from './Texture.js'; -import vtkCubeSource from '../../Filters/Sources/CubeSource.js'; -import ImageHelper from '../../Common/Core/ImageHelper.js'; -import AnnotatedCubePresets from './AnnotatedCubeActor/Presets.js'; - -const FACE_TO_INDEX = { - xPlus: 0, - xMinus: 1, - yPlus: 2, - yMinus: 3, - zPlus: 4, - zMinus: 5 -}; - -// ---------------------------------------------------------------------------- -// vtkAnnotatedCubeActor -// ---------------------------------------------------------------------------- - -function vtkAnnotatedCubeActor(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkAnnotatedCubeActor'); - - // Make sure face properties are not references to the default value - model.xPlusFaceProperty = { - ...model.xPlusFaceProperty - }; - model.xMinusFaceProperty = { - ...model.xMinusFaceProperty - }; - model.yPlusFaceProperty = { - ...model.yPlusFaceProperty - }; - model.yMinusFaceProperty = { - ...model.yMinusFaceProperty - }; - model.zPlusFaceProperty = { - ...model.zPlusFaceProperty - }; - model.zMinusFaceProperty = { - ...model.zMinusFaceProperty - }; - - // private variables - - let cubeSource = null; - const canvas = document.createElement('canvas'); - const mapper = vtkMapper.newInstance(); - const texture = vtkTexture.newInstance(); - texture.setInterpolate(true); - - // private methods - - function updateFaceTexture(faceName) { - let newProp = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - if (newProp) { - Object.assign(model[`${faceName}FaceProperty`], newProp); - } - const prop = { - ...model.defaultStyle, - ...model[`${faceName}FaceProperty`] - }; - - // set canvas resolution - canvas.width = prop.resolution; - canvas.height = prop.resolution; - const ctxt = canvas.getContext('2d'); - - // set background color - ctxt.fillStyle = prop.faceColor; - ctxt.fillRect(0, 0, canvas.width, canvas.height); - - // draw edge - if (prop.edgeThickness > 0) { - ctxt.strokeStyle = prop.edgeColor; - ctxt.lineWidth = prop.edgeThickness * canvas.width; - ctxt.strokeRect(0, 0, canvas.width, canvas.height); - } - - // set face rotation - ctxt.save(); - - // vertical flip - ctxt.translate(0, canvas.height); - ctxt.scale(1, -1); - ctxt.translate(canvas.width / 2, canvas.height / 2); - ctxt.rotate(-Math.PI * (prop.faceRotation / 180.0)); - - // set foreground text - const textSize = prop.fontSizeScale(prop.resolution); - ctxt.fillStyle = prop.fontColor; - ctxt.textAlign = 'center'; - ctxt.textBaseline = 'middle'; - ctxt.font = `${prop.fontStyle} ${textSize}px "${prop.fontFamily}"`; - ctxt.fillText(prop.text, 0, 0); - ctxt.restore(); - const vtkImage = ImageHelper.canvasToImageData(canvas); - texture.setInputData(vtkImage, FACE_TO_INDEX[faceName]); - publicAPI.modified(); - } - function updateAllFaceTextures() { - cubeSource = vtkCubeSource.newInstance({ - generate3DTextureCoordinates: true - }); - mapper.setInputConnection(cubeSource.getOutputPort()); - updateFaceTexture('xPlus'); - updateFaceTexture('xMinus'); - updateFaceTexture('yPlus'); - updateFaceTexture('yMinus'); - updateFaceTexture('zPlus'); - updateFaceTexture('zMinus'); - } - - // public methods - - publicAPI.setDefaultStyle = style => { - model.defaultStyle = { - ...model.defaultStyle, - ...style - }; - updateAllFaceTextures(); - }; - publicAPI.setXPlusFaceProperty = prop => updateFaceTexture('xPlus', prop); - publicAPI.setXMinusFaceProperty = prop => updateFaceTexture('xMinus', prop); - publicAPI.setYPlusFaceProperty = prop => updateFaceTexture('yPlus', prop); - publicAPI.setYMinusFaceProperty = prop => updateFaceTexture('yMinus', prop); - publicAPI.setZPlusFaceProperty = prop => updateFaceTexture('zPlus', prop); - publicAPI.setZMinusFaceProperty = prop => updateFaceTexture('zMinus', prop); - - // constructor - - updateAllFaceTextures(); - - // set mapper - mapper.setInputConnection(cubeSource.getOutputPort()); - publicAPI.setMapper(mapper); - - // set texture - publicAPI.addTexture(texture); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - defaultStyle: { - text: '', - faceColor: 'white', - faceRotation: 0, - fontFamily: 'Arial', - fontColor: 'black', - fontStyle: 'normal', - fontSizeScale: resolution => resolution / 1.8, - edgeThickness: 0.1, - edgeColor: 'black', - resolution: 200 - } - // xPlusFaceProperty: null, - // xMinusFaceProperty: null, - // yPlusFaceProperty: null, - // yMinusFaceProperty: null, - // zPlusFaceProperty: null, - // zMinusFaceProperty: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkActor.extend(publicAPI, model, initialValues); - macro.get(publicAPI, model, ['defaultStyle', 'xPlusFaceProperty', 'xMinusFaceProperty', 'yPlusFaceProperty', 'yMinusFaceProperty', 'zPlusFaceProperty', 'zMinusFaceProperty']); - - // Object methods - vtkAnnotatedCubeActor(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkAnnotatedCubeActor'); - -// ---------------------------------------------------------------------------- - -var vtkAnnotatedCubeActor$1 = { - newInstance, - extend, - Presets: AnnotatedCubePresets -}; - -export { DEFAULT_VALUES, vtkAnnotatedCubeActor$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AnnotatedCubeActor/Presets.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AnnotatedCubeActor/Presets.js deleted file mode 100644 index 368db039..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AnnotatedCubeActor/Presets.js +++ /dev/null @@ -1,80 +0,0 @@ -const STYLES = { - default: { - defaultStyle: { - fontStyle: 'bold', - fontFamily: 'Arial', - fontColor: 'black', - fontSizeScale: res => res / 2, - faceColor: 'white', - edgeThickness: 0.1, - edgeColor: 'black', - resolution: 400 - }, - xMinusFaceProperty: { - text: 'X-', - faceColor: 'yellow' - }, - xPlusFaceProperty: { - text: 'X+', - faceColor: 'yellow' - }, - yMinusFaceProperty: { - text: 'Y-', - faceColor: 'red' - }, - yPlusFaceProperty: { - text: 'Y+', - faceColor: 'red' - }, - zMinusFaceProperty: { - text: 'Z-', - faceColor: '#008000' - }, - zPlusFaceProperty: { - text: 'Z+', - faceColor: '#008000' - } - }, - lps: { - xMinusFaceProperty: { - text: 'R', - faceRotation: -90 - }, - xPlusFaceProperty: { - text: 'L', - faceRotation: 90 - }, - yMinusFaceProperty: { - text: 'A', - faceRotation: 0 - }, - yPlusFaceProperty: { - text: 'P', - faceRotation: 180 - }, - zMinusFaceProperty: { - text: 'I', - faceRotation: 180 - }, - zPlusFaceProperty: { - text: 'S', - faceRotation: 0 - } - } -}; -function applyDefinitions(definitions, cubeActor) { - cubeActor.set(definitions); -} -function applyPreset(name, cubeActor) { - return applyDefinitions(STYLES[name], cubeActor); -} -function registerStylePreset(name, definitions) { - STYLES[name] = definitions; -} -var AnnotatedCubePresets = { - applyDefinitions, - applyPreset, - registerStylePreset -}; - -export { AnnotatedCubePresets as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AxesActor.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AxesActor.d.ts deleted file mode 100644 index b105c4e3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AxesActor.d.ts +++ /dev/null @@ -1,140 +0,0 @@ -import vtkActor, { IActorInitialValues } from './Actor'; -import { RGBColor } from './../../types'; - -/** - * Represents the initial values for the AxesActor. - */ -export interface IAxesActorInitialValues extends IActorInitialValues {} - -/** - * Represents an actor that displays axes in a 3D scene. - */ -export interface vtkAxesActor extends vtkActor { - /** - * Get config object of the actor. - */ - getConfig(): object; - - /** - * Get config object of the X axis. - */ - getXConfig(): object; - - /** - * Get config object of the Y axis. - */ - getYConfig(): object; - - /** - * Get config object of the Z axis. - */ - getZConfig(): object; - - /** - * Retrieves the color of the X-axis. - * - * @return {RGBColor} The color of the X-axis. - */ - getXAxisColor(): RGBColor; - - /** - * Retrieves the color of the Y-axis. - * - * @return {RGBColor} The color of the Y-axis. - */ - getYAxisColor(): RGBColor; - - /** - * Retrieves the color of the Z-axis. - * - * @return {RGBColor} The color of the Z-axis. - */ - getZAxisColor(): RGBColor; - - /** - * Set config object of the actor. - * @param config - */ - setConfig(config: object): boolean; - - /** - * Set config object of the X axis. - * @param config - */ - setXConfig(config: object): boolean; - - /** - * Set config object of the Y axis. - * @param config - */ - setYConfig(config: object): boolean; - - /** - * Set config object of the Z axis. - * @param config - */ - setZConfig(config: object): boolean; - - /** - * Set X axis color. - * @param {RGBColor} rgb An Array of the RGB color. - */ - setXAxisColor(rgb: RGBColor): boolean; - - /** - * Set Y axis color. - * @param {RGBColor} rgb An Array of the RGB color. - */ - setYAxisColor(rgb: RGBColor): boolean; - - /** - * Set Z axis color. - * @param {RGBColor} rgb An Array of the RGB color. - */ - setZAxisColor(rgb: RGBColor): boolean; - - /** - * Update the actor. - */ - update(): void; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkAxesActor characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IAxesActorInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IAxesActorInitialValues -): void; - -/** - * Method use to create a new instance of vtkAxesActor. - * @param {IAxesActorInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IAxesActorInitialValues -): vtkAxesActor; - -/** - * vtkAxesActor is a hybrid 2D/3D actor used to represent 3D axes in a scene. - * The user can define the geometry to use for the shaft or the tip, - * and the user can set the text for the three axes. The text will appear - * to follow the camera since it is implemented by means of vtkCaptionActor2D. - * All of the functionality of the underlying vtkCaptionActor2D objects are accessible so that, - * for instance, the font attributes of the axes text can be manipulated through vtkTextProperty. - * Since this class inherits from vtkProp3D, one can apply a user transform to the underlying - * geometry and the positioning of the labels. For example, a rotation transform could be used to - * generate a left-handed axes representation. - * @see [vtkAnnotatedCubeActor](./Rendering_Core_AnnotatedCubeActor.html) - * @see [vtkOrientationMarkerWidget](./Interaction_Widgets_OrientationMarkerWidget.html) - */ -export declare const vtkAxesActor: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkAxesActor; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AxesActor.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AxesActor.js deleted file mode 100644 index 56c664a8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/AxesActor.js +++ /dev/null @@ -1,184 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkActor from './Actor.js'; -import vtkMapper from './Mapper.js'; -import vtkArrowSource from '../../Filters/Sources/ArrowSource.js'; -import vtkAppendPolyData from '../../Filters/General/AppendPolyData.js'; - -// ---------------------------------------------------------------------------- - -function centerDataSet(ds) { - const bounds = ds.getPoints().getBounds(); - const center = [-(bounds[0] + bounds[1]) * 0.5, -(bounds[2] + bounds[3]) * 0.5, -(bounds[4] + bounds[5]) * 0.5]; - vtkMatrixBuilder.buildFromDegree().translate(...center).apply(ds.getPoints().getData()); -} -function shiftDataset(ds, axis) { - let invert = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; - const bounds = ds.getPoints().getBounds(); - const center = [0, 0, 0]; - if (invert) { - center[axis] = -bounds[axis * 2 + 1]; - } else { - center[axis] = -bounds[axis * 2]; - } - vtkMatrixBuilder.buildFromDegree().translate(...center).apply(ds.getPoints().getData()); -} - -// ---------------------------------------------------------------------------- - -function addColor(ds, r, g, b) { - const size = ds.getPoints().getData().length; - const rgbArray = new Uint8ClampedArray(size); - let offset = 0; - while (offset < size) { - rgbArray[offset++] = r; - rgbArray[offset++] = g; - rgbArray[offset++] = b; - } - ds.getPointData().setScalars(vtkDataArray.newInstance({ - name: 'color', - numberOfComponents: 3, - values: rgbArray - })); -} - -// ---------------------------------------------------------------------------- -// vtkAxesActor -// ---------------------------------------------------------------------------- - -function vtkAxesActor(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkAxesActor'); - const _mapper = vtkMapper.newInstance(); - publicAPI.setMapper(_mapper); - publicAPI.update = () => { - let currentConfig = { - ...model.config, - ...model.xConfig - }; - const xAxis = vtkArrowSource.newInstance({ - direction: [1, 0, 0], - ...currentConfig - }).getOutputData(); - if (model.config.recenter) { - centerDataSet(xAxis); - } else { - shiftDataset(xAxis, 0, currentConfig.invert); - } - addColor(xAxis, ...currentConfig.color); - currentConfig = { - ...model.config, - ...model.yConfig - }; - const yAxis = vtkArrowSource.newInstance({ - direction: [0, 1, 0], - ...currentConfig - }).getOutputData(); - if (model.config.recenter) { - centerDataSet(yAxis); - } else { - shiftDataset(yAxis, 1, currentConfig.invert); - } - addColor(yAxis, ...currentConfig.color); - currentConfig = { - ...model.config, - ...model.zConfig - }; - const zAxis = vtkArrowSource.newInstance({ - direction: [0, 0, 1], - ...currentConfig - }).getOutputData(); - if (model.config.recenter) { - centerDataSet(zAxis); - } else { - shiftDataset(zAxis, 2, currentConfig.invert); - } - addColor(zAxis, ...currentConfig.color); - const source = vtkAppendPolyData.newInstance(); - source.setInputData(xAxis); - source.addInputData(yAxis); - source.addInputData(zAxis); - _mapper.setInputConnection(source.getOutputPort()); - }; - publicAPI.update(); - const _debouncedUpdate = macro.debounce(publicAPI.update, 0); - publicAPI.setXAxisColor = color => publicAPI.setXConfig({ - ...publicAPI.getXConfig(), - color - }); - publicAPI.setYAxisColor = color => publicAPI.setYConfig({ - ...publicAPI.getYConfig(), - color - }); - publicAPI.setZAxisColor = color => publicAPI.setZConfig({ - ...publicAPI.getZConfig(), - color - }); - publicAPI.getXAxisColor = () => model.getXConfig().color; - publicAPI.getYAxisColor = () => model.getYConfig().color; - publicAPI.getZAxisColor = () => model.getZConfig().color; - model._onConfigChanged = _debouncedUpdate; - model._onXConfigChanged = _debouncedUpdate; - model._onYConfigChanged = _debouncedUpdate; - model._onZConfigChanged = _debouncedUpdate; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - return { - config: { - recenter: true, - tipResolution: 60, - tipRadius: 0.1, - tipLength: 0.2, - shaftResolution: 60, - shaftRadius: 0.03, - invert: false, - ...initialValues?.config - }, - xConfig: { - color: [255, 0, 0], - invert: false, - ...initialValues?.xConfig - }, - yConfig: { - color: [255, 255, 0], - invert: false, - ...initialValues?.yConfig - }, - zConfig: { - color: [0, 128, 0], - invert: false, - ...initialValues?.zConfig - } - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - // Inheritance - vtkActor.extend(publicAPI, model, defaultValues(initialValues)); - macro.setGet(publicAPI, model, ['config', 'xConfig', 'yConfig', 'zConfig']); - - // Object methods - vtkAxesActor(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkAxesActor'); - -// ---------------------------------------------------------------------------- - -var vtkAxesActor$1 = { - newInstance, - extend -}; - -export { vtkAxesActor$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Camera.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Camera.d.ts deleted file mode 100644 index 5e696683..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Camera.d.ts +++ /dev/null @@ -1,786 +0,0 @@ -import { mat4 } from 'gl-matrix'; -import { vtkObject } from './../../interfaces'; -import { Bounds, Vector3, Range } from './../../types'; - -/** - * - */ -export interface ICameraInitialValues { - position?: number[]; - focalPoint?: number[]; - viewUp?: number[]; - directionOfProjection?: number[]; - parallelProjection?: boolean; - useHorizontalViewAngle?: boolean; - viewAngle?: number; - parallelScale?: number; - clippingRange?: number[]; - windowCenter?: number[]; - viewPlaneNormal?: number[]; - useOffAxisProjection?: boolean; - screenBottomLeft?: number[]; - screenBottomRight?: number[]; - screenTopRight?: number[]; - freezeFocalPoint?: boolean; - physicalTranslation?: number[]; - physicalScale?: number; - physicalViewUp?: number[]; - physicalViewNorth?: number[]; -} - -export interface vtkCamera extends vtkObject { - /** - * Apply a transform to the camera. - * The camera position, focal-point, and view-up are re-calculated - * using the transform's matrix to multiply the old points by the new transform. - * @param {mat4} transformMat4 Transform matrix. - */ - applyTransform(transformMat4: mat4): void; - - /** - * Rotate the camera about the view up vector centered at the focal point. - * @param {Number} angle The angle value. - */ - azimuth(angle: number): void; - - /** - * - * @param {Bounds} bounds The bounds value. - */ - computeClippingRange(bounds: Bounds): Range; - - /** - * This method must be called when the focal point or camera position changes - */ - computeDistance(): void; - - /** - * - */ - computeCameraLightTransform(): void; - - /** - * the provided matrix should include translation and orientation only mat - * is physical to view - * @param {mat4} mat The physical matrix. - */ - computeViewParametersFromPhysicalMatrix(mat: mat4): void; - - /** - * - * @param {mat4} vmat The view matrix. - */ - computeViewParametersFromViewMatrix(vmat: mat4): void; - - /** - * Not implemented yet - * @param {vtkCamera} sourceCamera The camera source. - */ - deepCopy(sourceCamera: vtkCamera): void; - - /** - * Move the position of the camera along the view plane normal. Moving - * towards the focal point (e.g., > 1) is a dolly-in, moving away - * from the focal point (e.g., < 1) is a dolly-out. - * @param {Number} amount The amount value. - */ - dolly(amount: number): void; - - /** - * Rotate the camera about the cross product of the negative of the - * direction of projection and the view up vector, using the focal point as - * the center of rotation. - * @param {Number} angle The angle value. - */ - elevation(angle: number): void; - - /** - * Not implemented yet - */ - getCameraLightTransformMatrix(): void; - - /** - * Get the location of the near and far clipping planes along the direction - * of projection. - */ - getClippingRange(): Range; - - /** - * Get the location of the near and far clipping planes along the direction - * of projection. - */ - getClippingRangeByReference(): Range; - - /** - * - * @param {Number} aspect Camera frustum aspect ratio. - * @param {Number} nearz Camera frustum near plane. - * @param {Number} farz Camera frustum far plane. - */ - getCompositeProjectionMatrix( - aspect: number, - nearz: number, - farz: number - ): mat4; - - /** - * Get the vector in the direction from the camera position to the focal - * point. - */ - getDirectionOfProjection(): Vector3; - - /** - * Get the vector in the direction from the camera position to the focal - * point. - */ - getDirectionOfProjectionByReference(): Vector3; - - /** - * Get the distance from the camera position to the focal point. - */ - getDistance(): number; - - /** - * Get the focal of the camera in world coordinates. - */ - getFocalPoint(): Vector3; - - /** - * Get the focal of the camera in world coordinates. - */ - getFocalPointByReference(): Vector3; - - /** - * Get the value of the FreezeDolly instance variable. - */ - getFreezeFocalPoint(): boolean; - - /** - * Get the plane equations that bound the view frustum. - * @param {Number} [aspect] Camera frustum aspect ratio (default: 1.0). - * @param {Float64Array} [planes] Optional array to fill with the plane equations. - */ - getFrustumPlanes(aspect?: number, planes?: Float64Array): Float64Array; - - /** - * Not implemented yet - * Get the orientation of the camera. - */ - getOrientation(): void; - - /** - * Not implemented yet - * Get the orientation of the camera. - */ - getOrientationWXYZ(): void; - - /** - * Get the value of the ParallelProjection instance variable. - * This determines if the camera should do a perspective or parallel projection. - */ - getParallelProjection(): boolean; - - /** - * Get the scaling used for a parallel projection. - */ - getParallelScale(): number; - - /** - * - */ - getPhysicalScale(): number; - - /** - * - * @param {mat4} result The world matrix. - */ - getPhysicalToWorldMatrix(result: mat4): void; - - /** - * - */ - getPhysicalTranslation(): number[]; - - /** - * - */ - getPhysicalTranslationByReference(): number[]; - - /** - * - */ - getPhysicalViewNorth(): number[]; - - /** - * - */ - getPhysicalViewNorthByReference(): number[]; - - /** - * - */ - getPhysicalViewUp(): number[]; - - /** - * - */ - getPhysicalViewUpByReference(): number[]; - - /** - * Get the position of the camera in world coordinates. - */ - getPosition(): Vector3; - - /** - * Get the position of the camera in world coordinates. - */ - getPositionByReference(): Vector3; - - /** - * Get the projection matrix. - * @param {Number} aspect Camera frustum aspect ratio. - * @param {Number} nearz Camera frustum near plane. - * @param {Number} farz Camera frustum far plane. - */ - getProjectionMatrix(aspect: number, nearz: number, farz: number): mat4; - - /** - * Not implemented yet - * Get the roll angle of the camera about the direction of projection. - */ - getRoll(): void; - - /** - * Get top left corner point of the screen. - */ - getScreenBottomLeft(): Vector3; - - /** - * - */ - getScreenBottomLeftByReference(): Vector3; - - /** - * Get bottom left corner point of the screen - */ - getScreenBottomRight(): Vector3; - - /** - * - */ - getScreenBottomRightByReference(): Vector3; - - /** - * - */ - getScreenTopRight(): Vector3; - - /** - * - */ - getScreenTopRightByReference(): Vector3; - - /** - * Get the center of the window in viewport coordinates. - */ - getThickness(): number; - - /** - * Get the value of the UseHorizontalViewAngle. - */ - getUseHorizontalViewAngle(): boolean; - - /** - * Get use offaxis frustum. - */ - getUseOffAxisProjection(): boolean; - - /** - * Get the camera view angle. - */ - getViewAngle(): number; - - /** - * Get the view transform - */ - getViewMatrix(): mat4; - - /** - * Get the model transform matrix for the camera. - * This matrix could be used for model related transformations such as scale, shear, rotations and translations. - * @returns {mat4} mat The value of the model transform matrix. - */ - getModelTransformMatrix(): mat4; - - /** - * Get the ViewPlaneNormal. - * This vector will point opposite to the direction of projection, - * unless you have created a sheared output view using SetViewShear/SetObliqueAngles. - */ - getViewPlaneNormal(): Vector3; - - /** - * Get the ViewPlaneNormal by reference. - */ - getViewPlaneNormalByReference(): Vector3; - - /** - * Get ViewUp vector. - */ - getViewUp(): Vector3; - - /** - * Get ViewUp vector by reference. - */ - getViewUpByReference(): Vector3; - - /** - * Get the center of the window in viewport coordinates. - * The viewport coordinate range is ([-1,+1],[-1,+1]). - */ - getWindowCenter(): Range; - - /** - * - */ - getWindowCenterByReference(): Range; - - /** - * - * @param {mat4} result - */ - getWorldToPhysicalMatrix(result: mat4): void; - - /** - * Recompute the ViewUp vector to force it to be perpendicular to - * camera.focalpoint vector. - */ - orthogonalizeViewUp(): void; - - /** - * - * @param {Number[]} ori - */ - physicalOrientationToWorldDirection(ori: number[]): any; - - /** - * Rotate the focal point about the cross product of the view up vector and - * the direction of projection, using the camera's position as the center of - * rotation. - * @param {Number} angle The value of the angle. - */ - pitch(angle: number): void; - - /** - * Rotate the camera about the direction of projection. - * @param {Number} angle The value of the angle. - */ - roll(angle: number): void; - - /** - * Set the location of the near and far clipping planes along the direction - * of projection. - * @param {Number} near The near clipping planes. - * @param {Number} far The far clipping planes. - */ - setClippingRange(near: number, far: number): boolean; - - /** - * Set the location of the near and far clipping planes along the direction - * of projection. - * @param {Range} clippingRange - */ - setClippingRange(clippingRange: Range): boolean; - - /** - * Set the location of the near and far clipping planes along the direction - * of projection. - * @param {Range} clippingRange - */ - setClippingRangeFrom(clippingRange: Range): boolean; - - /** - * Used to handle convert js device orientation angles - * when you use this method the camera will adjust to the - * device orientation such that the physicalViewUp you set - * in world coordinates looks up, and the physicalViewNorth - * you set in world coorindates will (maybe) point north - * - * NOTE WARNING - much of the documentation out there on how - * orientation works is seriously wrong. Even worse the Chrome - * device orientation simulator is completely wrong and should - * never be used. OMG it is so messed up. - * - * how it seems to work on iOS is that the device orientation - * is specified in extrinsic angles with a alpha, beta, gamma - * convention with axes of Z, X, Y (the code below substitutes - * the physical coordinate system for these axes to get the right - * modified coordinate system. - * @param {Number} alpha The value of the alpha. - * @param {Number} beta The value of the beta. - * @param {Number} gamma The value of the gamma. - * @param {Number} screen The value of the screen. - */ - setDeviceAngles( - alpha: number, - beta: number, - gamma: number, - screen: number - ): boolean; - - /** - * Set the direction of projection. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setDirectionOfProjection(x: number, y: number, z: number): boolean; - - /** - * Move the focal point so that it is the specified distance from the camera - * position. - * - * This distance must be positive. - * @param {Number} distance The value of the distance. - */ - setDistance(distance: number): boolean; - - /** - * Set the focal of the camera in world coordinates. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setFocalPoint(x: number, y: number, z: number): boolean; - - /** - * Set the focal of the camera in world coordinates. - * @param {Vector3} focalPoint - */ - setFocalPointFrom(focalPoint: Vector3): boolean; - - /** - * Set the value of the FreezeDolly instance variable. - * @param {Boolean} freezeFocalPoint - */ - setFreezeFocalPoint(freezeFocalPoint: boolean): boolean; - - /** - * Not implement yet - * Set the oblique viewing angles. - * The first angle, alpha, is the angle (measured from the horizontal) that - * rays along the direction of projection will follow once projected onto - * the 2D screen. The second angle, beta, is the angle between the view - * plane and the direction of projection. This creates a shear transform x' - * = x + dz*cos(alpha)/tan(beta), y' = dz*sin(alpha)/tan(beta) where dz is - * the distance of the point from the focal plane. The angles are (45,90) by - * default. Oblique projections commonly use (30,63.435). - * - * @param {Number} alpha The aplha angle value. - * @param {Number} beta The beta angle value. - */ - setObliqueAngles(alpha: number, beta: number): boolean; - - /** - * Set the value of the OrientationWXYZ. - * @param {Number} degrees - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setOrientationWXYZ(degrees: number, x: number, y: number, z: number): boolean; - - /** - * Set the value of the ParallelProjection. - * @param {Boolean} parallelProjection The value of the parallelProjection. - */ - setParallelProjection(parallelProjection: boolean): boolean; - - /** - * Set the value of the parallelScale. - * @param {Number} parallelScale The value of the parallelScale. - */ - setParallelScale(parallelScale: number): boolean; - - /** - * Set the value of the physicalScale. - * @param {Number} physicalScale The value of the the physicalScale. - */ - setPhysicalScale(physicalScale: number): boolean; - - /** - * Set the value of the physicalTranslation. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setPhysicalTranslation(x: number, y: number, z: number): boolean; - - /** - * Set the value of the physicalTranslation. - * @param {Number[]} physicalTranslation The value of the physicalTranslation. - */ - setPhysicalTranslationFrom(physicalTranslation: number[]): boolean; - - /** - * - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setPhysicalViewNorth(x: number, y: number, z: number): boolean; - - /** - * - * @param {Number[]} physicalViewNorth - */ - setPhysicalViewNorthFrom(physicalViewNorth: number[]): boolean; - - /** - * - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setPhysicalViewUp(x: number, y: number, z: number): boolean; - - /** - * - * @param {Number[]} physicalViewUp - */ - setPhysicalViewUpFrom(physicalViewUp: number[]): boolean; - - /** - * Set the position of the camera in world coordinates. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setPosition(x: number, y: number, z: number): boolean; - - /** - * - * @param {mat4} mat - */ - setProjectionMatrix(mat: mat4): boolean; - - /** - * Set the roll angle of the camera about the direction of projection. - * @todo Not implemented yet - * @param {Number} angle The value of the roll angle. - */ - setRoll(angle: number): boolean; - - /** - * Set top left corner point of the screen. - * - * This will be used only for offaxis frustum calculation. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setScreenBottomLeft(x: number, y: number, z: number): boolean; - - /** - * Set top left corner point of the screen. - * - * This will be used only for offaxis frustum calculation. - * @param {Vector3} screenBottomLeft The screenBottomLeft coordiante. - */ - setScreenBottomLeft(screenBottomLeft: Vector3): boolean; - - /** - * Set top left corner point of the screen. - * @param {Vector3} screenBottomLeft The screenBottomLeft coordiante. - */ - setScreenBottomLeftFrom(screenBottomLeft: Vector3): boolean; - - /** - * - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setScreenBottomRight(x: number, y: number, z: number): boolean; - - /** - * Set bottom right corner point of the screen. - * @param {Vector3} screenBottomRight The screenBottomRight coordiante. - */ - setScreenBottomRight(screenBottomRight: Vector3): boolean; - - /** - * Set bottom right corner point of the screen. - * @param {Vector3} screenBottomRight The screenBottomRight coordiante. - */ - setScreenBottomRightFrom(screenBottomRight: Vector3): boolean; - - /** - * Set top right corner point of the screen. - * - * This will be used only for offaxis frustum calculation. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setScreenTopRight(x: number, y: number, z: number): boolean; - - /** - * Set top right corner point of the screen. - * - * This will be used only for offaxis frustum calculation. - * @param {Vector3} screenTopRight The screenTopRight coordiante. - */ - setScreenTopRight(screenTopRight: Vector3): boolean; - - /** - * Set top right corner point of the screen. - * @param {Vector3} screenTopRight The screenTopRight coordiante. - */ - setScreenTopRightFrom(screenTopRight: Vector3): boolean; - - /** - * Set the distance between clipping planes. - * - * This method adjusts the far clipping plane to be set a distance - * 'thickness' beyond the near clipping plane. - * @param {Number} thickness - */ - setThickness(thickness: number): boolean; - - /** - * - * @param {Number} thickness The value of the thickness. - */ - setThicknessFromFocalPoint(thickness: number): boolean; - - /** - * Set the value of the useHorizontalViewAngle. - * @param {Boolean} useHorizontalViewAngle The value of the useHorizontalViewAngle. - */ - setUseHorizontalViewAngle(useHorizontalViewAngle: boolean): boolean; - - /** - * Set use offaxis frustum. - * - * OffAxis frustum is used for off-axis frustum calculations specifically for - * stereo rendering. For reference see "High Resolution Virtual Reality", in - * Proc. SIGGRAPH '92, Computer Graphics, pages 195-202, 1992. - * @param {Boolean} useOffAxisProjection The value of the useOffAxisProjection. - */ - setUseOffAxisProjection(useOffAxisProjection: boolean): boolean; - - /** - * Set the camera view angle, which is the angular height of the camera view - * measured in degrees. - * @param {Number} viewAngle The value of the viewAngle. - */ - setViewAngle(viewAngle: number): boolean; - - /** - * Set the view matrix for the camera. - * @param {mat4} mat The value of the view matrix. - */ - setViewMatrix(mat: mat4): void; - - /** - * Set the model transform matrix for the camera. - * This matrix could be used for model related transformations such as scale, shear, rotations and translations. - * @param {mat4} mat The value of the model transform matrix. - */ - setModelTransformMatrixMatrix(mat: mat4): void; - - /** - * Set the view up direction for the camera. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setViewUp(x: number, y: number, z: number): boolean; - - /** - * Set the view up direction for the camera. - * @param {Vector3} viewUp The viewUp coordinate. - */ - setViewUp(viewUp: Vector3): boolean; - - /** - * Set the view up direction for the camera. - * @param {Vector3} viewUp The viewUp coordinate. - */ - setViewUpFrom(viewUp: Vector3): boolean; - - /** - * Set the center of the window in viewport coordinates. - * - * The viewport coordinate range is ([-1,+1],[-1,+1]). - * - * This method is for if you have one window which consists of several - * viewports, or if you have several screens which you want to act together - * as one large screen. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - */ - setWindowCenter(x: number, y: number): boolean; - - /** - * Set the center of the window in viewport coordinates from an array. - * @param {Range} windowCenter - */ - setWindowCenterFrom(windowCenter: Range): boolean; - - /** - * - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - translate(x: number, y: number, z: number): void; - - /** - * Rotate the focal point about the view up vector, using the camera's - * position as the center of rotation. - * @param {Number} angle The value of the angle. - */ - yaw(angle: number): void; - - /** - * In perspective mode, decrease the view angle by the specified factor. - * @param {Number} factor The value of the zoom factor. - */ - zoom(factor: number): void; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkRenderer characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ICameraInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ICameraInitialValues -): void; - -/** - * Method use to create a new instance of vtkCamera with its focal point at the origin, - * and position=(0,0,1). The view up is along the y-axis, view angle is 30 degrees, - * and the clipping range is (.1,1000). - * @param {ICameraInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: ICameraInitialValues): vtkCamera; - -/** - * vtkCamera is a virtual camera for 3D rendering. It provides methods - * to position and orient the view point and focal point. Convenience - * methods for moving about the focal point also are provided. More - * complex methods allow the manipulation of the computer graphics model - * including view up vector, clipping planes, and camera perspective. - */ -export declare const vtkCamera: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkCamera; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Camera.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Camera.js deleted file mode 100644 index 0926fbfe..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Camera.js +++ /dev/null @@ -1,666 +0,0 @@ -import { mat4, vec4, vec3, quat } from 'gl-matrix'; -import { m as macro } from '../../macros2.js'; -import { r as radiansFromDegrees, k as add, J as normalize4D, j as cross } from '../../Common/Core/Math/index.js'; - -const { - vtkDebugMacro -} = macro; - -/* eslint-disable new-cap */ - -/* - * Convenience function to access elements of a gl-matrix. If it turns - * out I have rows and columns swapped everywhere, then I'll just change - * the order of 'row' and 'col' parameters in this function - */ -// function getMatrixElement(matrix, row, col) { -// const idx = (row * 4) + col; -// return matrix[idx]; -// } - -// ---------------------------------------------------------------------------- -// vtkCamera methods -// ---------------------------------------------------------------------------- - -function vtkCamera(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCamera'); - - // Set up private variables and methods - const origin = new Float64Array(3); - const dopbasis = new Float64Array([0.0, 0.0, -1.0]); - const upbasis = new Float64Array([0.0, 1.0, 0.0]); - const tmpMatrix = mat4.identity(new Float64Array(16)); - const tmpMatrix2 = mat4.identity(new Float64Array(16)); - const tmpvec1 = new Float64Array(3); - const tmpvec2 = new Float64Array(3); - const tmpvec3 = new Float64Array(3); - const rotateMatrix = mat4.identity(new Float64Array(16)); - const trans = mat4.identity(new Float64Array(16)); - const newPosition = new Float64Array(3); - const newFocalPoint = new Float64Array(3); - - // Internal Functions that don't need to be public - function computeViewPlaneNormal() { - // VPN is -DOP - model.viewPlaneNormal[0] = -model.directionOfProjection[0]; - model.viewPlaneNormal[1] = -model.directionOfProjection[1]; - model.viewPlaneNormal[2] = -model.directionOfProjection[2]; - } - publicAPI.orthogonalizeViewUp = () => { - const vt = publicAPI.getViewMatrix(); - model.viewUp[0] = vt[4]; - model.viewUp[1] = vt[5]; - model.viewUp[2] = vt[6]; - publicAPI.modified(); - }; - publicAPI.setPosition = (x, y, z) => { - if (x === model.position[0] && y === model.position[1] && z === model.position[2]) { - return; - } - model.position[0] = x; - model.position[1] = y; - model.position[2] = z; - - // recompute the focal distance - publicAPI.computeDistance(); - publicAPI.modified(); - }; - publicAPI.setFocalPoint = (x, y, z) => { - if (x === model.focalPoint[0] && y === model.focalPoint[1] && z === model.focalPoint[2]) { - return; - } - model.focalPoint[0] = x; - model.focalPoint[1] = y; - model.focalPoint[2] = z; - - // recompute the focal distance - publicAPI.computeDistance(); - publicAPI.modified(); - }; - publicAPI.setDistance = d => { - if (model.distance === d) { - return; - } - model.distance = d; - if (model.distance < 1e-20) { - model.distance = 1e-20; - vtkDebugMacro('Distance is set to minimum.'); - } - - // we want to keep the camera pointing in the same direction - const vec = model.directionOfProjection; - - // recalculate FocalPoint - model.focalPoint[0] = model.position[0] + vec[0] * model.distance; - model.focalPoint[1] = model.position[1] + vec[1] * model.distance; - model.focalPoint[2] = model.position[2] + vec[2] * model.distance; - publicAPI.modified(); - }; - - //---------------------------------------------------------------------------- - // This method must be called when the focal point or camera position changes - publicAPI.computeDistance = () => { - const dx = model.focalPoint[0] - model.position[0]; - const dy = model.focalPoint[1] - model.position[1]; - const dz = model.focalPoint[2] - model.position[2]; - model.distance = Math.sqrt(dx * dx + dy * dy + dz * dz); - if (model.distance < 1e-20) { - model.distance = 1e-20; - vtkDebugMacro('Distance is set to minimum.'); - const vec = model.directionOfProjection; - - // recalculate FocalPoint - model.focalPoint[0] = model.position[0] + vec[0] * model.distance; - model.focalPoint[1] = model.position[1] + vec[1] * model.distance; - model.focalPoint[2] = model.position[2] + vec[2] * model.distance; - } - model.directionOfProjection[0] = dx / model.distance; - model.directionOfProjection[1] = dy / model.distance; - model.directionOfProjection[2] = dz / model.distance; - computeViewPlaneNormal(); - }; - - //---------------------------------------------------------------------------- - // Move the position of the camera along the view plane normal. Moving - // towards the focal point (e.g., > 1) is a dolly-in, moving away - // from the focal point (e.g., < 1) is a dolly-out. - publicAPI.dolly = amount => { - if (amount <= 0.0) { - return; - } - - // dolly moves the camera towards the focus - const d = model.distance / amount; - publicAPI.setPosition(model.focalPoint[0] - d * model.directionOfProjection[0], model.focalPoint[1] - d * model.directionOfProjection[1], model.focalPoint[2] - d * model.directionOfProjection[2]); - }; - publicAPI.roll = angle => { - const eye = model.position; - const at = model.focalPoint; - const up = model.viewUp; - const viewUpVec4 = new Float64Array([up[0], up[1], up[2], 0.0]); - mat4.identity(rotateMatrix); - const viewDir = new Float64Array([at[0] - eye[0], at[1] - eye[1], at[2] - eye[2]]); - mat4.rotate(rotateMatrix, rotateMatrix, radiansFromDegrees(angle), viewDir); - vec4.transformMat4(viewUpVec4, viewUpVec4, rotateMatrix); - model.viewUp[0] = viewUpVec4[0]; - model.viewUp[1] = viewUpVec4[1]; - model.viewUp[2] = viewUpVec4[2]; - publicAPI.modified(); - }; - publicAPI.azimuth = angle => { - const fp = model.focalPoint; - mat4.identity(trans); - - // translate the focal point to the origin, - // rotate about view up, - // translate back again - mat4.translate(trans, trans, fp); - mat4.rotate(trans, trans, radiansFromDegrees(angle), model.viewUp); - mat4.translate(trans, trans, [-fp[0], -fp[1], -fp[2]]); - - // apply the transform to the position - vec3.transformMat4(newPosition, model.position, trans); - publicAPI.setPosition(newPosition[0], newPosition[1], newPosition[2]); - }; - publicAPI.yaw = angle => { - const position = model.position; - mat4.identity(trans); - - // translate the camera to the origin, - // rotate about axis, - // translate back again - mat4.translate(trans, trans, position); - mat4.rotate(trans, trans, radiansFromDegrees(angle), model.viewUp); - mat4.translate(trans, trans, [-position[0], -position[1], -position[2]]); - - // apply the transform to the position - vec3.transformMat4(newFocalPoint, model.focalPoint, trans); - publicAPI.setFocalPoint(newFocalPoint[0], newFocalPoint[1], newFocalPoint[2]); - }; - publicAPI.elevation = angle => { - const fp = model.focalPoint; - - // get the eye / camera position from the viewMatrix - const vt = publicAPI.getViewMatrix(); - const axis = [-vt[0], -vt[1], -vt[2]]; - mat4.identity(trans); - - // translate the focal point to the origin, - // rotate about view up, - // translate back again - mat4.translate(trans, trans, fp); - mat4.rotate(trans, trans, radiansFromDegrees(angle), axis); - mat4.translate(trans, trans, [-fp[0], -fp[1], -fp[2]]); - - // apply the transform to the position - vec3.transformMat4(newPosition, model.position, trans); - publicAPI.setPosition(newPosition[0], newPosition[1], newPosition[2]); - }; - publicAPI.pitch = angle => { - const position = model.position; - const vt = publicAPI.getViewMatrix(); - const axis = [vt[0], vt[1], vt[2]]; - mat4.identity(trans); - - // translate the camera to the origin, - // rotate about axis, - // translate back again - mat4.translate(trans, trans, position); - mat4.rotate(trans, trans, radiansFromDegrees(angle), axis); - mat4.translate(trans, trans, [-position[0], -position[1], -position[2]]); - - // apply the transform to the focal point - vec3.transformMat4(newFocalPoint, model.focalPoint, trans); - publicAPI.setFocalPoint(...newFocalPoint); - }; - publicAPI.zoom = factor => { - if (factor <= 0) { - return; - } - if (model.parallelProjection) { - model.parallelScale /= factor; - } else { - model.viewAngle /= factor; - } - publicAPI.modified(); - }; - publicAPI.translate = (x, y, z) => { - const offset = [x, y, z]; - add(model.position, offset, model.position); - add(model.focalPoint, offset, model.focalPoint); - publicAPI.computeDistance(); - publicAPI.modified(); - }; - publicAPI.applyTransform = transformMat4 => { - const vuOld = [...model.viewUp, 1.0]; - const posNew = []; - const fpNew = []; - const vuNew = []; - vuOld[0] += model.position[0]; - vuOld[1] += model.position[1]; - vuOld[2] += model.position[2]; - vec4.transformMat4(posNew, [...model.position, 1.0], transformMat4); - vec4.transformMat4(fpNew, [...model.focalPoint, 1.0], transformMat4); - vec4.transformMat4(vuNew, vuOld, transformMat4); - vuNew[0] -= posNew[0]; - vuNew[1] -= posNew[1]; - vuNew[2] -= posNew[2]; - publicAPI.setPosition(...posNew.slice(0, 3)); - publicAPI.setFocalPoint(...fpNew.slice(0, 3)); - publicAPI.setViewUp(...vuNew.slice(0, 3)); - }; - publicAPI.getThickness = () => model.clippingRange[1] - model.clippingRange[0]; - publicAPI.setThickness = thickness => { - let t = thickness; - if (t < 1e-20) { - t = 1e-20; - vtkDebugMacro('Thickness is set to minimum.'); - } - publicAPI.setClippingRange(model.clippingRange[0], model.clippingRange[0] + t); - }; - publicAPI.setThicknessFromFocalPoint = thickness => { - let t = thickness; - if (t < 1e-20) { - t = 1e-20; - vtkDebugMacro('Thickness is set to minimum.'); - } - publicAPI.setClippingRange(model.distance - t / 2, model.distance + t / 2); - }; - - // Unimplemented functions - publicAPI.setRoll = angle => {}; // dependency on GetOrientation() and a model.ViewTransform object, see https://github.com/Kitware/VTK/blob/master/Common/Transforms/vtkTransform.cxx and https://vtk.org/doc/nightly/html/classvtkTransform.html - publicAPI.getRoll = () => {}; - publicAPI.setObliqueAngles = (alpha, beta) => {}; - publicAPI.getOrientation = () => {}; - publicAPI.getOrientationWXYZ = () => {}; - publicAPI.getFrustumPlanes = function () { - let aspect = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1.0; - let planes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Float64Array(24); - const normals = [ - // Left - [1, 0, 0, 1], - // Right - [-1, 0, 0, 1], - // Bottom - [0, 1, 0, 1], - // Top - [0, -1, 0, 1], - // Near - [0, 0, 1, 1], - // Far - [0, 0, -1, 1]]; - - // Get the composite projection matrix - const matrix = publicAPI.getCompositeProjectionMatrix(aspect, -1, 1); - - // Transform the normals to world coordinates - for (let i = 0; i < 6; i++) { - vec4.transformMat4(normals[i], normals[i], matrix); - - // Normalize the plane normal - normalize4D(normals[i]); - planes[4 * i + 0] = normals[i][0]; - planes[4 * i + 1] = normals[i][1]; - planes[4 * i + 2] = normals[i][2]; - planes[4 * i + 3] = normals[i][3]; - } - return planes; - }; - publicAPI.getCameraLightTransformMatrix = matrix => { - mat4.copy(matrix, model.cameraLightTransform); - return matrix; - }; - publicAPI.computeCameraLightTransform = () => { - // not sure if this is the correct transformation, based on the same funciton in VTK - mat4.copy(tmpMatrix, publicAPI.getViewMatrix()); - mat4.invert(tmpMatrix, tmpMatrix); - mat4.fromScaling(tmpMatrix2, [model.distance, model.distance, model.distance]); - mat4.multiply(tmpMatrix, tmpMatrix, tmpMatrix2); - mat4.identity(model.cameraLightTransform); - mat4.translate(model.cameraLightTransform, tmpMatrix, [0.0, 0.0, -1.0]); - }; - publicAPI.deepCopy = sourceCamera => {}; - publicAPI.physicalOrientationToWorldDirection = ori => { - // push the x axis through the orientation quat - const oriq = quat.fromValues(ori[0], ori[1], ori[2], ori[3]); - const coriq = quat.create(); - const qdir = quat.fromValues(0.0, 0.0, 1.0, 0.0); - quat.conjugate(coriq, oriq); - - // rotate the z axis by the quat - quat.multiply(qdir, oriq, qdir); - quat.multiply(qdir, qdir, coriq); - - // return the z axis in world coords - return [qdir[0], qdir[1], qdir[2]]; - }; - publicAPI.getPhysicalToWorldMatrix = result => { - publicAPI.getWorldToPhysicalMatrix(result); - mat4.invert(result, result); - }; - publicAPI.getWorldToPhysicalMatrix = result => { - mat4.identity(result); - - // now the physical to vtk world rotation tform - const physVRight = [3]; - cross(model.physicalViewNorth, model.physicalViewUp, physVRight); - result[0] = physVRight[0]; - result[1] = physVRight[1]; - result[2] = physVRight[2]; - result[4] = model.physicalViewUp[0]; - result[5] = model.physicalViewUp[1]; - result[6] = model.physicalViewUp[2]; - result[8] = -model.physicalViewNorth[0]; - result[9] = -model.physicalViewNorth[1]; - result[10] = -model.physicalViewNorth[2]; - mat4.transpose(result, result); - vec3.set(tmpvec1, 1 / model.physicalScale, 1 / model.physicalScale, 1 / model.physicalScale); - mat4.scale(result, result, tmpvec1); - mat4.translate(result, result, model.physicalTranslation); - }; - publicAPI.computeViewParametersFromViewMatrix = vmat => { - // invert to get view to world - mat4.invert(tmpMatrix, vmat); - - // note with glmatrix operations happen in - // the reverse order - // mat.scale - // mat.translate - // will result in the translation then the scale - // mat.mult(a,b) - // results in perform the B transformation then A - - // then extract the params position, orientation - // push 0,0,0 through to get a translation - vec3.transformMat4(tmpvec1, origin, tmpMatrix); - publicAPI.computeDistance(); - const oldDist = model.distance; - publicAPI.setPosition(tmpvec1[0], tmpvec1[1], tmpvec1[2]); - - // push basis vectors to get orientation - vec3.transformMat4(tmpvec2, dopbasis, tmpMatrix); - vec3.subtract(tmpvec2, tmpvec2, tmpvec1); - vec3.normalize(tmpvec2, tmpvec2); - publicAPI.setDirectionOfProjection(tmpvec2[0], tmpvec2[1], tmpvec2[2]); - vec3.transformMat4(tmpvec3, upbasis, tmpMatrix); - vec3.subtract(tmpvec3, tmpvec3, tmpvec1); - vec3.normalize(tmpvec3, tmpvec3); - publicAPI.setViewUp(tmpvec3[0], tmpvec3[1], tmpvec3[2]); - publicAPI.setDistance(oldDist); - }; - - // the provided matrix should include - // translation and orientation only - // mat is physical to view - publicAPI.computeViewParametersFromPhysicalMatrix = mat => { - // get the WorldToPhysicalMatrix - publicAPI.getWorldToPhysicalMatrix(tmpMatrix); - - // first convert the physical -> view matrix to be - // world -> view - mat4.multiply(tmpMatrix, mat, tmpMatrix); - publicAPI.computeViewParametersFromViewMatrix(tmpMatrix); - }; - publicAPI.setModelTransformMatrix = mat => { - model.modelTransformMatrix = mat; - }; - publicAPI.getModelTransformMatrix = () => model.modelTransformMatrix; - publicAPI.setViewMatrix = mat => { - model.viewMatrix = mat; - if (model.viewMatrix) { - mat4.copy(tmpMatrix, model.viewMatrix); - publicAPI.computeViewParametersFromViewMatrix(tmpMatrix); - mat4.transpose(model.viewMatrix, model.viewMatrix); - } - }; - publicAPI.getViewMatrix = () => { - if (model.viewMatrix) { - if (model.modelTransformMatrix) { - mat4.multiply(tmpMatrix, model.viewMatrix, model.modelTransformMatrix); - return tmpMatrix; - } - return model.viewMatrix; - } - mat4.lookAt(tmpMatrix, model.position, - // eye - model.focalPoint, - // at - model.viewUp // up - ); - - mat4.transpose(tmpMatrix, tmpMatrix); - const result = new Float64Array(16); - if (model.modelTransformMatrix) { - mat4.multiply(result, tmpMatrix, model.modelTransformMatrix); - } else { - mat4.copy(result, tmpMatrix); - } - return result; - }; - publicAPI.setProjectionMatrix = mat => { - model.projectionMatrix = mat; - }; - publicAPI.getProjectionMatrix = (aspect, nearz, farz) => { - const result = new Float64Array(16); - mat4.identity(result); - if (model.projectionMatrix) { - const scale = 1 / model.physicalScale; - vec3.set(tmpvec1, scale, scale, scale); - mat4.copy(result, model.projectionMatrix); - mat4.scale(result, result, tmpvec1); - mat4.transpose(result, result); - return result; - } - mat4.identity(tmpMatrix); - - // FIXME: Not sure what to do about adjust z buffer here - // adjust Z-buffer range - // this->ProjectionTransform->AdjustZBuffer( -1, +1, nearz, farz ); - const cWidth = model.clippingRange[1] - model.clippingRange[0]; - const cRange = [model.clippingRange[0] + (nearz + 1) * cWidth / 2.0, model.clippingRange[0] + (farz + 1) * cWidth / 2.0]; - if (model.parallelProjection) { - // set up a rectangular parallelipiped - const width = model.parallelScale * aspect; - const height = model.parallelScale; - const xmin = (model.windowCenter[0] - 1.0) * width; - const xmax = (model.windowCenter[0] + 1.0) * width; - const ymin = (model.windowCenter[1] - 1.0) * height; - const ymax = (model.windowCenter[1] + 1.0) * height; - mat4.ortho(tmpMatrix, xmin, xmax, ymin, ymax, cRange[0], cRange[1]); - mat4.transpose(tmpMatrix, tmpMatrix); - } else if (model.useOffAxisProjection) { - throw new Error('Off-Axis projection is not supported at this time'); - } else { - const tmp = Math.tan(radiansFromDegrees(model.viewAngle) / 2.0); - let width; - let height; - if (model.useHorizontalViewAngle === true) { - width = model.clippingRange[0] * tmp; - height = model.clippingRange[0] * tmp / aspect; - } else { - width = model.clippingRange[0] * tmp * aspect; - height = model.clippingRange[0] * tmp; - } - const xmin = (model.windowCenter[0] - 1.0) * width; - const xmax = (model.windowCenter[0] + 1.0) * width; - const ymin = (model.windowCenter[1] - 1.0) * height; - const ymax = (model.windowCenter[1] + 1.0) * height; - const znear = cRange[0]; - const zfar = cRange[1]; - tmpMatrix[0] = 2.0 * znear / (xmax - xmin); - tmpMatrix[5] = 2.0 * znear / (ymax - ymin); - tmpMatrix[2] = (xmin + xmax) / (xmax - xmin); - tmpMatrix[6] = (ymin + ymax) / (ymax - ymin); - tmpMatrix[10] = -(znear + zfar) / (zfar - znear); - tmpMatrix[14] = -1.0; - tmpMatrix[11] = -2.0 * znear * zfar / (zfar - znear); - tmpMatrix[15] = 0.0; - } - mat4.copy(result, tmpMatrix); - return result; - }; - publicAPI.getCompositeProjectionMatrix = (aspect, nearz, farz) => { - const vMat = publicAPI.getViewMatrix(); - const pMat = publicAPI.getProjectionMatrix(aspect, nearz, farz); - // mats are transposed so the order is A then B - // we reuse pMat as it is a copy so we can do what we want with it - mat4.multiply(pMat, vMat, pMat); - return pMat; - }; - publicAPI.setDirectionOfProjection = (x, y, z) => { - if (model.directionOfProjection[0] === x && model.directionOfProjection[1] === y && model.directionOfProjection[2] === z) { - return; - } - model.directionOfProjection[0] = x; - model.directionOfProjection[1] = y; - model.directionOfProjection[2] = z; - const vec = model.directionOfProjection; - - // recalculate FocalPoint - model.focalPoint[0] = model.position[0] + vec[0] * model.distance; - model.focalPoint[1] = model.position[1] + vec[1] * model.distance; - model.focalPoint[2] = model.position[2] + vec[2] * model.distance; - computeViewPlaneNormal(); - }; - - // used to handle convert js device orientation angles - // when you use this method the camera will adjust to the - // device orientation such that the physicalViewUp you set - // in world coordinates looks up, and the physicalViewNorth - // you set in world coorindates will (maybe) point north - // - // NOTE WARNING - much of the documentation out there on how - // orientation works is seriously wrong. Even worse the Chrome - // device orientation simulator is completely wrong and should - // never be used. OMG it is so messed up. - // - // how it seems to work on iOS is that the device orientation - // is specified in extrinsic angles with a alpha, beta, gamma - // convention with axes of Z, X, Y (the code below substitutes - // the physical coordinate system for these axes to get the right - // modified coordinate system. - publicAPI.setDeviceAngles = (alpha, beta, gamma, screen) => { - const physVRight = [3]; - cross(model.physicalViewNorth, model.physicalViewUp, physVRight); - - // phone to physical coordinates - const rotmat = mat4.identity(new Float64Array(16)); - mat4.rotate(rotmat, rotmat, radiansFromDegrees(alpha), model.physicalViewUp); - mat4.rotate(rotmat, rotmat, radiansFromDegrees(beta), physVRight); - mat4.rotate(rotmat, rotmat, radiansFromDegrees(gamma), model.physicalViewNorth); - mat4.rotate(rotmat, rotmat, radiansFromDegrees(-screen), model.physicalViewUp); - const dop = new Float64Array([-model.physicalViewUp[0], -model.physicalViewUp[1], -model.physicalViewUp[2]]); - const vup = new Float64Array(model.physicalViewNorth); - vec3.transformMat4(dop, dop, rotmat); - vec3.transformMat4(vup, vup, rotmat); - publicAPI.setDirectionOfProjection(dop[0], dop[1], dop[2]); - publicAPI.setViewUp(vup[0], vup[1], vup[2]); - publicAPI.modified(); - }; - publicAPI.setOrientationWXYZ = (degrees, x, y, z) => { - const quatMat = mat4.identity(new Float64Array(16)); - if (degrees !== 0.0 && (x !== 0.0 || y !== 0.0 || z !== 0.0)) { - // convert to radians - const angle = radiansFromDegrees(degrees); - const q = quat.create(); - quat.setAxisAngle(q, [x, y, z], angle); - mat4.fromQuat(quatMat, q); - } - const newdop = new Float64Array(3); - vec3.transformMat4(newdop, [0.0, 0.0, -1.0], quatMat); - const newvup = new Float64Array(3); - vec3.transformMat4(newvup, [0.0, 1.0, 0.0], quatMat); - publicAPI.setDirectionOfProjection(...newdop); - publicAPI.setViewUp(...newvup); - publicAPI.modified(); - }; - publicAPI.computeClippingRange = bounds => { - let vn = null; - let position = null; - vn = model.viewPlaneNormal; - position = model.position; - const a = -vn[0]; - const b = -vn[1]; - const c = -vn[2]; - const d = -(a * position[0] + b * position[1] + c * position[2]); - - // Set the max near clipping plane and the min far clipping plane - const range = [a * bounds[0] + b * bounds[2] + c * bounds[4] + d, 1e-18]; - - // Find the closest / farthest bounding box vertex - for (let k = 0; k < 2; k++) { - for (let j = 0; j < 2; j++) { - for (let i = 0; i < 2; i++) { - const dist = a * bounds[i] + b * bounds[2 + j] + c * bounds[4 + k] + d; - range[0] = dist < range[0] ? dist : range[0]; - range[1] = dist > range[1] ? dist : range[1]; - } - } - } - return range; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - position: [0, 0, 1], - focalPoint: [0, 0, 0], - viewUp: [0, 1, 0], - directionOfProjection: [0, 0, -1], - parallelProjection: false, - useHorizontalViewAngle: false, - viewAngle: 30, - parallelScale: 1, - clippingRange: [0.01, 1000.01], - windowCenter: [0, 0], - viewPlaneNormal: [0, 0, 1], - useOffAxisProjection: false, - screenBottomLeft: [-0.5, -0.5, -0.5], - screenBottomRight: [0.5, -0.5, -0.5], - screenTopRight: [0.5, 0.5, -0.5], - freezeFocalPoint: false, - projectionMatrix: null, - viewMatrix: null, - modelTransformMatrix: null, - cameraLightTransform: mat4.create(), - // used for world to physical transformations - physicalTranslation: [0, 0, 0], - physicalScale: 1.0, - physicalViewUp: [0, 1, 0], - physicalViewNorth: [0, 0, -1] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['distance']); - macro.setGet(publicAPI, model, ['parallelProjection', 'useHorizontalViewAngle', 'viewAngle', 'parallelScale', 'useOffAxisProjection', 'freezeFocalPoint', 'physicalScale']); - macro.getArray(publicAPI, model, ['directionOfProjection', 'viewPlaneNormal', 'position', 'focalPoint']); - macro.setGetArray(publicAPI, model, ['clippingRange', 'windowCenter'], 2); - macro.setGetArray(publicAPI, model, ['viewUp', 'screenBottomLeft', 'screenBottomRight', 'screenTopRight', 'physicalTranslation', 'physicalViewUp', 'physicalViewNorth'], 3); - - // Object methods - vtkCamera(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCamera'); - -// ---------------------------------------------------------------------------- - -var vtkCamera$1 = { - newInstance, - extend -}; - -export { DEFAULT_VALUES, vtkCamera$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/CellPicker.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/CellPicker.d.ts deleted file mode 100644 index 503f017e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/CellPicker.d.ts +++ /dev/null @@ -1,119 +0,0 @@ -import vtkCell from './../../Common/DataModel/Cell'; -import { Vector3 } from './../../types'; -import vtkMapper from './Mapper'; -import vtkPicker, { IPickerInitialValues } from './Picker'; -import vtkProp3D from './Prop3D'; -import vtkRenderer from './Renderer'; -import { Nullable } from './../../types'; - -/** - * - */ -export interface ICellPickerInitialValues extends IPickerInitialValues { - cellId?: number; - pCoords?: Vector3; - cellIJK?: number[]; - pickNormal?: number[]; - mapperNormal?: number[]; - opacityThreshold?: number; -} - -export interface vtkCellPicker extends vtkPicker { - /** - * Get the structured coordinates of the cell at the PickPosition. - */ - getCellIJK(): number[]; - - /** - * Get the structured coordinates of the cell at the PickPosition. - */ - getCellIJKByReference(): number[]; - - /** - * Get the id of the picked cell. - */ - getCellId(): number; - - /** - * - */ - getMapperNormal(): number[]; - - /** - * - */ - getMapperNormalByReference(): number[]; - - /** - * Get the opacity threshold for volume picking - */ - getOpacityThreshold(): number; - - /** - * Get the opacity threshold for volume picking - */ - setOpacityThreshold(value: number); - - /** - * Get the parametric coordinates of the picked cell. - */ - getPCoords(): number[]; - - /** - * - */ - getPCoordsByReference(): number[]; - - /** - * - */ - initialize(): void; - - /** - * - * @param data - * @param {vtkCell} cell - * @param {Number[]} weights - * @param {Number[]} normal - */ - computeSurfaceNormal( - data: any, - cell: vtkCell, - weights: number[], - normal: number[] - ): boolean; - - /** - * - * @param selection - * @param {vtkRenderer} renderer The vtkRenderer instance. - */ - pick(selection: any, renderer: vtkRenderer): void; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkCellPicker characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ICellPickerInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ICellPickerInitialValues -): void; - -/** - * Method use to create a new instance of vtkCellPicker - * @param {ICellPickerInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ICellPickerInitialValues -): vtkCellPicker; - -export declare const vtkCellPicker: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkCellPicker; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/CellPicker.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/CellPicker.js deleted file mode 100644 index 688fdb28..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/CellPicker.js +++ /dev/null @@ -1,482 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCellTypes from '../../Common/DataModel/CellTypes.js'; -import vtkLine from '../../Common/DataModel/Line.js'; -import vtkPicker from './Picker.js'; -import vtkPolyLine from '../../Common/DataModel/PolyLine.js'; -import vtkTriangle from '../../Common/DataModel/Triangle.js'; -import vtkQuad from '../../Common/DataModel/Quad.js'; -import { l as normalize, f as distance2BetweenPoints } from '../../Common/Core/Math/index.js'; -import { CellType } from '../../Common/DataModel/CellTypes/Constants.js'; -import { vec3, vec4 } from 'gl-matrix'; -import vtkBox from '../../Common/DataModel/Box.js'; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -function createCellMap() { - return { - [CellType.VTK_LINE]: vtkLine.newInstance(), - [CellType.VTK_POLY_LINE]: vtkPolyLine.newInstance(), - [CellType.VTK_TRIANGLE]: vtkTriangle.newInstance(), - [CellType.VTK_QUAD]: vtkQuad.newInstance() - }; -} -function clipLineWithPlane(mapper, matrix, p1, p2) { - const outObj = { - planeId: -1, - t1: 0.0, - t2: 1.0, - intersect: 0 - }; - const nbClippingPlanes = mapper.getNumberOfClippingPlanes(); - const plane = []; - for (let i = 0; i < nbClippingPlanes; i++) { - mapper.getClippingPlaneInDataCoords(matrix, i, plane); - const d1 = plane[0] * p1[0] + plane[1] * p1[1] + plane[2] * p1[2] + plane[3]; - const d2 = plane[0] * p2[0] + plane[1] * p2[1] + plane[2] * p2[2] + plane[3]; - - // If both distances are negative, both points are outside - if (d1 < 0 && d2 < 0) { - return 0; - } - if (d1 < 0 || d2 < 0) { - // If only one of the distances is negative, the line crosses the plane - // Compute fractional distance "t" of the crossing between p1 & p2 - let t = 0.0; - - // The "if" here just avoids an expensive division when possible - if (d1 !== 0) { - // We will never have d1==d2 since they have different signs - t = d1 / (d1 - d2); - } - - // If point p1 was clipped, adjust t1 - if (d1 < 0) { - if (t >= outObj.t1) { - outObj.t1 = t; - outObj.planeId = i; - } - } else if (t <= outObj.t2) { - // else point p2 was clipped, so adjust t2 - outObj.t2 = t; - } - // If this happens, there's no line left - if (outObj.t1 > outObj.t2) { - outObj.intersect = 0; - return outObj; - } - } - } - outObj.intersect = 1; - return outObj; -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = { - clipLineWithPlane -}; - -// ---------------------------------------------------------------------------- -// vtkCellPicker methods -// ---------------------------------------------------------------------------- - -function vtkCellPicker(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCellPicker'); - const superClass = { - ...publicAPI - }; - function resetCellPickerInfo() { - model.cellId = -1; - model.pCoords[0] = 0.0; - model.pCoords[1] = 0.0; - model.pCoords[2] = 0.0; - model.cellIJK[0] = 0.0; - model.cellIJK[1] = 0.0; - model.cellIJK[2] = 0.0; - model.mapperNormal[0] = 0.0; - model.mapperNormal[1] = 0.0; - model.mapperNormal[2] = 1.0; - model.pickNormal[0] = 0.0; - model.pickNormal[1] = 0.0; - model.pickNormal[2] = 1.0; - } - function resetPickInfo() { - model.dataSet = null; - model.mapper = null; - resetCellPickerInfo(); - } - publicAPI.initialize = () => { - resetPickInfo(); - superClass.initialize(); - }; - publicAPI.computeSurfaceNormal = (data, cell, weights, normal) => { - const normals = data.getPointData().getNormals(); - if (normals) { - normal[0] = 0.0; - normal[1] = 0.0; - normal[2] = 0.0; - const pointNormal = []; - for (let i = 0; i < 3; i++) { - normals.getTuple(cell.getPointsIds()[i], pointNormal); - normal[0] += pointNormal[0] * weights[i]; - normal[1] += pointNormal[1] * weights[i]; - normal[2] += pointNormal[2] * weights[i]; - } - normalize(normal); - } else { - return 0; - } - return 1; - }; - publicAPI.pick = (selection, renderer) => { - publicAPI.initialize(); - const pickResult = superClass.pick(selection, renderer); - if (pickResult) { - const camera = renderer.getActiveCamera(); - const cameraPos = []; - camera.getPosition(cameraPos); - if (camera.getParallelProjection()) { - // For parallel projection, use -ve direction of projection - const cameraFocus = []; - camera.getFocalPoint(cameraFocus); - model.pickNormal[0] = cameraPos[0] - cameraFocus[0]; - model.pickNormal[1] = cameraPos[1] - cameraFocus[1]; - model.pickNormal[2] = cameraPos[2] - cameraFocus[2]; - } else { - // Get the vector from pick position to the camera - model.pickNormal[0] = cameraPos[0] - model.pickPosition[0]; - model.pickNormal[1] = cameraPos[1] - model.pickPosition[1]; - model.pickNormal[2] = cameraPos[2] - model.pickPosition[2]; - } - normalize(model.pickNormal); - } - return pickResult; - }; - model.intersectWithLine = (p1, p2, tolerance, prop, mapper) => { - let tMin = Number.MAX_VALUE; - let t1 = 0.0; - let t2 = 1.0; - const vtkCellPickerPlaneTol = 1e-14; - const clipLine = clipLineWithPlane(mapper, model.transformMatrix, p1, p2); - if (mapper && !clipLine.intersect) { - return Number.MAX_VALUE; - } - if (mapper.isA('vtkImageMapper') || mapper.isA('vtkImageArrayMapper')) { - const pickData = mapper.intersectWithLineForCellPicking(p1, p2); - if (pickData) { - tMin = pickData.t; - model.cellIJK = pickData.ijk; - model.pCoords = pickData.pCoords; - } - } else if (mapper.isA('vtkVolumeMapper')) { - // we calculate here the parametric intercept points between the ray and the bounding box, so - // if the application defines for some reason a too large ray length (1e6), it restrict the calculation - // to the vtkVolume prop bounding box - const interceptionObject = vtkBox.intersectWithLine(mapper.getBounds(), p1, p2); - t1 = interceptionObject?.t1 > clipLine.t1 ? interceptionObject.t1 : clipLine.t1; - t2 = interceptionObject?.t2 < clipLine.t2 ? interceptionObject.t2 : clipLine.t2; - tMin = model.intersectVolumeWithLine(p1, p2, t1, t2, tolerance, prop); - } else if (mapper.isA('vtkMapper')) { - tMin = model.intersectActorWithLine(p1, p2, t1, t2, tolerance, mapper); - } - if (tMin < model.globalTMin) { - model.globalTMin = tMin; - if (Math.abs(tMin - t1) < vtkCellPickerPlaneTol && clipLine.clippingPlaneId >= 0) { - model.mapperPosition[0] = p1[0] * (1 - t1) + p2[0] * t1; - model.mapperPosition[1] = p1[1] * (1 - t1) + p2[1] * t1; - model.mapperPosition[2] = p1[2] * (1 - t1) + p2[2] * t1; - const plane = []; - mapper.getClippingPlaneInDataCoords(model.transformMatrix, clipLine.clippingPlaneId, plane); - normalize(plane); - // Want normal outward from the planes, not inward - model.mapperNormal[0] = -plane[0]; - model.mapperNormal[1] = -plane[1]; - model.mapperNormal[2] = -plane[2]; - } - vec3.transformMat4(model.pickPosition, model.mapperPosition, model.transformMatrix); - // Transform vector - const mat = model.transformMatrix; - model.mapperNormal[0] = mat[0] * model.pickNormal[0] + mat[4] * model.pickNormal[1] + mat[8] * model.pickNormal[2]; - model.mapperNormal[1] = mat[1] * model.pickNormal[0] + mat[5] * model.pickNormal[1] + mat[9] * model.pickNormal[2]; - model.mapperNormal[2] = mat[2] * model.pickNormal[0] + mat[6] * model.pickNormal[1] + mat[10] * model.pickNormal[2]; - } - return tMin; - }; - model.intersectVolumeWithLine = (p1, p2, t1, t2, tolerance, volume) => { - let tMin = Number.MAX_VALUE; - const mapper = volume.getMapper(); - const imageData = mapper.getInputData(); - const dims = imageData.getDimensions(); - const scalars = imageData.getPointData().getScalars().getData(); - const extent = imageData.getExtent(); - // get the world to index transform to correctly transform from world to volume index - const imageTransform = imageData.getWorldToIndex(); - - // calculate opacity table - const numIComps = 1; - let oWidth = mapper.getOpacityTextureWidth(); - if (oWidth <= 0) { - oWidth = 1024; - } - const tmpTable = new Float32Array(oWidth); - const opacityArray = new Float32Array(oWidth); - let ofun; - let oRange; - const sampleDist = volume.getMapper().getSampleDistance(); - for (let c = 0; c < numIComps; ++c) { - ofun = volume.getProperty().getScalarOpacity(c); - oRange = ofun.getRange(); - ofun.getTable(oRange[0], oRange[1], oWidth, tmpTable, 1); - const opacityFactor = sampleDist / volume.getProperty().getScalarOpacityUnitDistance(c); - - // adjust for sample distance etc - for (let i = 0; i < oWidth; ++i) { - opacityArray[i] = 1.0 - (1.0 - tmpTable[i]) ** opacityFactor; - } - } - const scale = oWidth / (oRange[1] - oRange[0] + 1); - - // Make a new p1 and p2 using the clipped t1 and t2 - const q1 = [0, 0, 0, 1]; - const q2 = [0, 0, 0, 1]; - q1[0] = p1[0]; - q1[1] = p1[1]; - q1[2] = p1[2]; - q2[0] = p2[0]; - q2[1] = p2[1]; - q2[2] = p2[2]; - if (t1 !== 0.0 || t2 !== 1.0) { - for (let j = 0; j < 3; j++) { - q1[j] = p1[j] * (1.0 - t1) + p2[j] * t1; - q2[j] = p1[j] * (1.0 - t2) + p2[j] * t2; - } - } - - // convert q1, q2 world coordinates to x1, x2 volume index coordinates - const x1 = [0, 0, 0, 0]; - const x2 = [0, 0, 0, 0]; - vec4.transformMat4(x1, q1, imageTransform); - vec4.transformMat4(x2, q2, imageTransform); - const x = [0, 0, 0]; - const xi = [0, 0, 0]; - const sliceSize = dims[1] * dims[0]; - const rowSize = dims[0]; - // here the step is the 1 over the distance between volume index location x1 and x2 - const step = 1 / Math.sqrt(distance2BetweenPoints(x1, x2)); - let insideVolume; - // here we reinterpret the t value as the distance between x1 and x2 - // When calculating the tMin, we weight t between t1 and t2 values - for (let t = 0; t < 1; t += step) { - // calculate the location of the point - insideVolume = true; - for (let j = 0; j < 3; j++) { - // "t" is the fractional distance between endpoints x1 and x2 - x[j] = x1[j] * (1.0 - t) + x2[j] * t; - } - for (let j = 0; j < 3; j++) { - // Bounds check - if (x[j] < extent[2 * j]) { - x[j] = extent[2 * j]; - insideVolume = false; - } else if (x[j] > extent[2 * j + 1]) { - x[j] = extent[2 * j + 1]; - insideVolume = false; - } - xi[j] = Math.round(x[j]); - } - if (insideVolume) { - const index = xi[2] * sliceSize + xi[1] * rowSize + xi[0]; - let value = scalars[index]; - if (value < oRange[0]) { - value = oRange[0]; - } else if (value > oRange[1]) { - value = oRange[1]; - } - value = Math.floor((value - oRange[0]) * scale); - const opacity = tmpTable[value]; - if (opacity > model.opacityThreshold) { - // returning the tMin to the original scale, if t1 > 0 or t2 < 1 - tMin = t1 * (1.0 - t) + t2 * t; - break; - } - } - } - return tMin; - }; - model.intersectActorWithLine = (p1, p2, t1, t2, tolerance, mapper) => { - let tMin = Number.MAX_VALUE; - const minXYZ = [0, 0, 0]; - let pDistMin = Number.MAX_VALUE; - const minPCoords = [0, 0, 0]; - let minCellId = null; - let minCell = null; - let minCellType = null; - let subId = null; - const x = []; - const data = mapper.getInputData(); - - // Make a new p1 and p2 using the clipped t1 and t2 - const q1 = [0, 0, 0]; - const q2 = [0, 0, 0]; - q1[0] = p1[0]; - q1[1] = p1[1]; - q1[2] = p1[2]; - q2[0] = p2[0]; - q2[1] = p2[1]; - q2[2] = p2[2]; - if (t1 !== 0.0 || t2 !== 1.0) { - for (let j = 0; j < 3; j++) { - q1[j] = p1[j] * (1.0 - t1) + p2[j] * t1; - q2[j] = p1[j] * (1.0 - t2) + p2[j] * t2; - } - } - if (data.getCells) { - if (!data.getCells()) { - data.buildLinks(); - } - const tempCellMap = createCellMap(); - const minCellMap = createCellMap(); - const numberOfCells = data.getNumberOfCells(); - - /* eslint-disable no-continue */ - for (let cellId = 0; cellId < numberOfCells; cellId++) { - const pCoords = [0, 0, 0]; - minCellType = data.getCellType(cellId); - - // Skip cells that are marked as empty - if (minCellType === CellType.VTK_EMPTY_CELL) { - continue; - } - const cell = tempCellMap[minCellType]; - if (cell == null) { - continue; - } - minCell = minCellMap[minCellType]; - data.getCell(cellId, cell); - let cellPicked; - { - if (vtkCellTypes.hasSubCells(minCellType)) { - cellPicked = cell.intersectWithLine(t1, t2, p1, p2, tolerance, x, pCoords); - } else { - cellPicked = cell.intersectWithLine(p1, p2, tolerance, x, pCoords); - } - } - if (cellPicked.intersect === 1 && cellPicked.t <= tMin + model.tolerance && cellPicked.t >= t1 && cellPicked.t <= t2) { - const pDist = cell.getParametricDistance(pCoords); - if (pDist < pDistMin || pDist === pDistMin && cellPicked.t < tMin) { - tMin = cellPicked.t; - pDistMin = pDist; - subId = cellPicked.subId; - minCellId = cellId; - cell.deepCopy(minCell); - for (let k = 0; k < 3; k++) { - minXYZ[k] = x[k]; - minPCoords[k] = pCoords[k]; - } - } - } - } - /* eslint-enable no-continue */ - } - - if (minCellId >= 0 && tMin < model.globalTMin) { - resetPickInfo(); - const nbPointsInCell = minCell.getNumberOfPoints(); - const weights = new Array(nbPointsInCell); - for (let i = 0; i < nbPointsInCell; i++) { - weights[i] = 0.0; - } - const point = []; - if (vtkCellTypes.hasSubCells(minCellType)) { - minCell.evaluateLocation(subId, minPCoords, point, weights); - } else { - minCell.evaluateLocation(minPCoords, point, weights); - } - - // Return the polydata to the user - model.dataSet = data; - model.cellId = minCellId; - model.pCoords[0] = minPCoords[0]; - model.pCoords[1] = minPCoords[1]; - model.pCoords[2] = minPCoords[2]; - - // Find the point with the maximum weight - let maxWeight = 0; - let iMaxWeight = -1; - for (let i = 0; i < nbPointsInCell; i++) { - if (weights[i] > maxWeight) { - iMaxWeight = i; - maxWeight = weights[i]; - } - } - - // If maximum weight is found, use it to get the PointId - if (iMaxWeight !== -1) { - model.pointId = minCell.getPointsIds()[iMaxWeight]; - } - - // Set the mapper position - model.mapperPosition[0] = minXYZ[0]; - model.mapperPosition[1] = minXYZ[1]; - model.mapperPosition[2] = minXYZ[2]; - - // Compute the normal - if (!publicAPI.computeSurfaceNormal(data, minCell, weights, model.mapperNormal)) { - // By default, the normal points back along view ray - model.mapperNormal[0] = p1[0] - p2[0]; - model.mapperNormal[1] = p1[1] - p2[1]; - model.mapperNormal[2] = p1[2] - p2[2]; - normalize(model.mapperNormal); - } - } - return tMin; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - cellId: -1, - pCoords: [], - cellIJK: [], - pickNormal: [], - mapperNormal: [], - opacityThreshold: 0.2 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkPicker.extend(publicAPI, model, initialValues); - macro.getArray(publicAPI, model, ['pickNormal', 'mapperNormal', 'pCoords', 'cellIJK']); - macro.setGet(publicAPI, model, ['opacityThreshold']); - macro.get(publicAPI, model, ['cellId']); - - // Object methods - vtkCellPicker(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCellPicker'); - -// ---------------------------------------------------------------------------- - -var vtkCellPicker$1 = { - newInstance, - extend, - ...STATIC -}; - -export { STATIC, vtkCellPicker$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction.d.ts deleted file mode 100644 index 3cefdb26..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction.d.ts +++ /dev/null @@ -1,387 +0,0 @@ -import vtkDataArray from './../../Common/Core/DataArray'; -import vtkScalarsToColors from './../../Common/Core/ScalarsToColors'; -import { ColorSpace, Scale } from './ColorTransferFunction/Constants'; - -export interface vtkColorTransferFunction extends vtkScalarsToColors { - /** - * Add a point defined in RGB - * @param {Number} x The index of the point. - * @param {Number} r Defines the red component (between 0 and 1). - * @param {Number} g Defines the green component (between 0 and 1). - * @param {Number} b Defines the blue component (between 0 and 1). - */ - addRGBPoint(x: number, r: number, g: number, b: number): number; - - /** - * Add a point defined in RGB - * @param {Number} x The index of the point. - * @param {Number} r Defines the red component (between 0 and 1). - * @param {Number} g Defines the green component (between 0 and 1). - * @param {Number} b Defines the blue component (between 0 and 1). - * @param {Number} [midpoint] - * @param {Number} [sharpness] - */ - addRGBPointLong( - x: number, - r: number, - g: number, - b: number, - midpoint?: number, - sharpness?: number - ): number; - - /** - * Add a point defined in HSV - * @param {Number} x The index of the point. - * @param {Number} h Defines the hue of the color (between 0 and 1). - * @param {Number} s Defines the saturation of the color (between 0 and 1). - * @param {Number} v Defines the value of the color (between 0 and 1). - */ - addHSVPoint(x: number, h: number, s: number, v: number): number; - - /** - * Add a line defined in RGB - * @param {Number} x1 The index of the first point. - * @param {Number} r1 Defines the red component of the first point(between 0 and 1). - * @param {Number} g1 Defines the green component of the first point(between 0 and 1). - * @param {Number} b1 Defines the red component of the first point (between 0 and 1). - * @param {Number} x2 The index of the second point. - * @param {Number} r2 Defines the red component of the second point (between 0 and 1). - * @param {Number} g2 Defines the green component of the second point (between 0 and 1). - * @param {Number} b2 Defines the blue component of the second point (between 0 and 1). - */ - addRGBSegment( - x1: number, - r1: number, - g1: number, - b1: number, - x2: number, - r2: number, - g2: number, - b2: number - ): void; - - /** - * Add a line defined in HSV - * @param {Number} x1 The index of the first point. - * @param {Number} h1 Defines the hue of the color of the first point (between 0 and 1). - * @param {Number} s1 Defines the saturation of the color of the first point (between 0 and 1). - * @param {Number} v1 Defines the value of the color of the first point (between 0 and 1). - * @param {Number} x2 The index of the second point. - * @param {Number} h2 Defines the hue of the colorof the second point (between 0 and 1). - * @param {Number} s2 Defines the saturation of the color of the second point (between 0 and 1). - * @param {Number} v2 Defines the value of the color of the second point (between 0 and 1). - */ - addHSVSegment( - x1: number, - h1: number, - s1: number, - v1: number, - x2: number, - h2: number, - s2: number, - v2: number - ): void; - - /** - * Add a point defined in HSV - * @param {Number} x The index of the point. - * @param {Number} h Defines the hue of the color (between 0 and 1). - * @param {Number} s Defines the saturation of the color (between 0 and 1). - * @param {Number} v Defines the value of the color (between 0 and 1). - * @param {Number} [midpoint] - * @param {Number} [sharpness] - */ - addHSVPointLong( - x: number, - h: number, - s: number, - v: number, - midpoint?: number, - sharpness?: number - ): number; - - /** - * Get the number of points which specify this function - */ - getSize(): number; - - /** - * Set nodes directly - * @param nodes - * - * @returns true if a change happen - */ - setNodes(nodes: any): boolean; - - /** - * Sort the vector in increasing order, then fill in - * the Range - * - * @returns true if a change happen - */ - sortAndUpdateRange(): boolean; - - /** - * @returns true if a change happen - */ - updateRange(): boolean; - - /** - * Remove a point - * @param {Number} x The index of the point. - */ - removePoint(x: number): number; - - /** - * Moves point from oldX to newX. - * - * It removed the point from oldX. If any point existed at newX, it will also be removed. - * @param {Number} oldX The old index of the point. - * @param {Number} newX The new index of the point. - */ - movePoint(oldX: number, newX: number): void; - - /** - * Remove all points - */ - removeAllPoints(): void; - - /** - * Get the RGBA color evaluated at the specified location - * @param {Number} x The index of the point. - */ - mapValue(x: number): any; - - /** - * Get the RGB color evaluated at the specified location - * @param {Number} x The index of the point. - * @param {Number[]} rgb The Array of the RGB color to fill. - */ - getColor(x: number, rgb: number[]): void; - - /** - * Get the red color evaluated at the specified location - * @param {Number} x The index of the point. - */ - getRedValue(x: number): number; - - /** - * Get the green color evaluated at the specified location - * @param {Number} x The index of the point. - */ - getGreenValue(x: number): number; - - /** - * Get the blue color evaluated at the specified location - * @param {Number} x The index of the point. - */ - getBlueValue(x: number): number; - - /** - * Get a table of RGB colors at regular intervals along the function - * @param {Number} xStart The index of the first point. - * @param {Number} xEnd The index of the second point. - * @param {Number} size - * @param {Number[]} table - */ - getTable(xStart: number, xEnd: number, size: number, table: number[]): void; - - /** - * @param {Number} xStart The index of the first point. - * @param {Number} xEnd The index of the first point. - * @param {Number} size - * @param {Boolean} withAlpha - */ - getUint8Table( - xStart: number, - xEnd: number, - size: number, - withAlpha: boolean - ): Float32Array; - - /** - * Construct a color transfer function from a vtkDataArray. - * The order of values depends on the number of components - * of the array. - * 3 -> RGB - * 4 -> XRGB - * 5 -> RGBMS - * 6 -> XRGBMS - * - * X represents the input value to a function - * RGB represents the red, green, and blue value output - * M represents the midpoint - * S represents sharpness - * @param {vtkDataArray} array - */ - buildFunctionFromArray(array: vtkDataArray): void; - - /** - * Construct a color transfer function from a table. - * @param {Number} xStart The index of the first point. - * @param {Number} xEnd The index of the first point. - * @param {Number} size - * @param {Number[]} table - */ - buildFunctionFromTable( - xStart: number, - xEnd: number, - size: number, - table: number[] - ): void; - - /** - * For the node specified by index, set/get the location (X), R, G, and B - * values, midpoint, and sharpness values at the node. - * @param {Number} index - * @param {Number[]} val - */ - getNodeValue(index: number, val: number[]): number; - - /** - * For a specified index value, set the node parameters - * @param {Number} index - * @param {Number[]} val - */ - setNodeValue(index: number, val: number[]): number; - - /** - * Get the number of available colors for mapping to. - */ - getNumberOfAvailableColors(): number; - - /** - * Get the color given an integer index. - * @param {Number} idx The index of the point. - * @param {Number[]} rgba An Array of the RGBA color. - */ - getIndexedColor(idx: number, rgba: number[]): void; - - /** - * Defines the nodes from an array ptr with the layout [X1, R1, G1, B1, X2, - * R2, G2, B2, ..., Xn, Rn, Gn, Bn] where n is the number of nodes. - * @param {Number} nb - * @param ptr - */ - fillFromDataPointer(nb: number, ptr: any): void; - - /** - * Remove all points out of the new range, and make sure there is a point at - * each end of that range. - * @param {Number[]} range - */ - adjustRange(range: number[]): number; - - /** - * Estimates the minimum size of a table such that it would correctly sample this function. - * @param {Number} x1 - * @param {Number} x2 - */ - estimateMinNumberOfSamples(x1: number, x2: number): number; - - /** - * Traverses the nodes to find the minimum distance. - */ - findMinimumXDistance(): number; - - /** - * - * @param input - * @param output - * @param outFormat - * @param inputOffset - */ - mapScalarsThroughTable( - input: any, - output: any, - outFormat: any, - inputOffset: any - ): void; - - /** - * Map a set of scalars through the lookup table. - * @param input - * @param output - * @param outFormat - * @param inputOffset - */ - mapData(input: any, output: any, outFormat: any, inputOffset: any): void; - - /** - * @param colorMap - */ - applyColorMap(colorMap: any): void; - - /** - * Get the color space of the color transfer function. - * @returns {ColorSpace} - */ - getColorSpace(): ColorSpace; - - /** - * Set the color space of the color transfer function. - * @param {ColorSpace} colorSpace - */ - setColorSpace(colorSpace: ColorSpace): void; - - /** - * Get the scale of the color transfer function. - * @returns {Scale} - */ - getScale(): Scale; - - /** - * Set the scale of the color transfer function. - * @param {Scale} scale - */ - setScale(scale: Scale): void; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkColorTransferFunction characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {object} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: object -): void; - -/** - * Method use to create a new instance of vtkColorTransferFunction - * @param {object} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: object): vtkColorTransferFunction; - -/** - * vtkColorTransferFunction is a color mapping in RGB or HSV space that - * uses piecewise hermite functions to allow interpolation that can be - * piecewise constant, piecewise linear, or somewhere in-between - * (a modified piecewise hermite function that squishes the function - * according to a sharpness parameter). The function also allows for - * the specification of the midpoint (the place where the function - * reaches the average of the two bounding nodes) as a normalize distance - * between nodes. - * See the description of class vtkPiecewiseFunction for an explanation of - * midpoint and sharpness. - * - * @example - * ```js - * // create color transfer function - * const ctfun = vtkColorTransferFunction.newInstance(); - * ctfun.addRGBPoint(200.0, 1.0, 1.0, 1.0); - * ctfun.addRGBPoint(2000.0, 0.0, 0.0, 0.0); - * ``` - */ - -export declare const vtkColorTransferFunction: { - newInstance: typeof newInstance; - extend: typeof extend; - ColorSpace: typeof ColorSpace; - Scale: typeof Scale; -}; -export default vtkColorTransferFunction; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction.js deleted file mode 100644 index f71fcfb1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction.js +++ /dev/null @@ -1,1220 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { h as hsv2rgb, i as isNan, M as floor, N as isInf, O as rgb2hsv, P as rgb2lab, Q as lab2rgb } from '../../Common/Core/Math/index.js'; -import vtkScalarsToColors from '../../Common/Core/ScalarsToColors.js'; -import Constants from './ColorTransferFunction/Constants.js'; - -const { - ColorSpace, - Scale -} = Constants; -const { - ScalarMappingTarget -} = vtkScalarsToColors; -const { - vtkDebugMacro, - vtkErrorMacro, - vtkWarningMacro -} = macro; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- -/* eslint-disable no-continue */ - -// Convert to and from a special polar version of CIELAB (useful for creating -// continuous diverging color maps). -function vtkColorTransferFunctionLabToMsh(lab, msh) { - const L = lab[0]; - const a = lab[1]; - const b = lab[2]; - const M = Math.sqrt(L * L + a * a + b * b); - const s = M > 0.001 ? Math.acos(L / M) : 0.0; - const h = s > 0.001 ? Math.atan2(b, a) : 0.0; - msh[0] = M; - msh[1] = s; - msh[2] = h; -} -function vtkColorTransferFunctionMshToLab(msh, lab) { - const M = msh[0]; - const s = msh[1]; - const h = msh[2]; - lab[0] = M * Math.cos(s); - lab[1] = M * Math.sin(s) * Math.cos(h); - lab[2] = M * Math.sin(s) * Math.sin(h); -} - -// For the case when interpolating from a saturated color to an unsaturated -// color, find a hue for the unsaturated color that makes sense. -function vtkColorTransferFunctionAdjustHue(msh, unsatM) { - if (msh[0] >= unsatM - 0.1) { - // The best we can do is hold hue constant. - return msh[2]; - } - - // This equation is designed to make the perceptual change of the - // interpolation to be close to constant. - const hueSpin = msh[1] * Math.sqrt(unsatM * unsatM - msh[0] * msh[0]) / (msh[0] * Math.sin(msh[1])); - // Spin hue away from 0 except in purple hues. - if (msh[2] > -0.3 * Math.PI) { - return msh[2] + hueSpin; - } - return msh[2] - hueSpin; -} -function vtkColorTransferFunctionAngleDiff(a1, a2) { - let adiff = a1 - a2; - if (adiff < 0.0) { - adiff = -adiff; - } - while (adiff >= 2.0 * Math.PI) { - adiff -= 2.0 * Math.PI; - } - if (adiff > Math.PI) { - adiff = 2.0 * Math.PI - adiff; - } - return adiff; -} - -// Interpolate a diverging color map. -function vtkColorTransferFunctionInterpolateDiverging(s, rgb1, rgb2, result) { - const lab1 = []; - const lab2 = []; - rgb2lab(rgb1, lab1); - rgb2lab(rgb2, lab2); - const msh1 = []; - const msh2 = []; - vtkColorTransferFunctionLabToMsh(lab1, msh1); - vtkColorTransferFunctionLabToMsh(lab2, msh2); - - // If the endpoints are distinct saturated colors, then place white in between - // them. - let localS = s; - if (msh1[1] > 0.05 && msh2[1] > 0.05 && vtkColorTransferFunctionAngleDiff(msh1[2], msh2[2]) > 0.33 * Math.PI) { - // Insert the white midpoint by setting one end to white and adjusting the - // scalar value. - let Mmid = Math.max(msh1[0], msh2[0]); - Mmid = Math.max(88.0, Mmid); - if (s < 0.5) { - msh2[0] = Mmid; - msh2[1] = 0.0; - msh2[2] = 0.0; - localS *= 2.0; - } else { - msh1[0] = Mmid; - msh1[1] = 0.0; - msh1[2] = 0.0; - localS = 2.0 * localS - 1.0; - } - } - - // If one color has no saturation, then its hue value is invalid. In this - // case, we want to set it to something logical so that the interpolation of - // hue makes sense. - if (msh1[1] < 0.05 && msh2[1] > 0.05) { - msh1[2] = vtkColorTransferFunctionAdjustHue(msh2, msh1[0]); - } else if (msh2[1] < 0.05 && msh1[1] > 0.05) { - msh2[2] = vtkColorTransferFunctionAdjustHue(msh1, msh2[0]); - } - const mshTmp = []; - mshTmp[0] = (1 - localS) * msh1[0] + localS * msh2[0]; - mshTmp[1] = (1 - localS) * msh1[1] + localS * msh2[1]; - mshTmp[2] = (1 - localS) * msh1[2] + localS * msh2[2]; - - // Now convert back to RGB - const labTmp = []; - vtkColorTransferFunctionMshToLab(mshTmp, labTmp); - lab2rgb(labTmp, result); -} - -// ---------------------------------------------------------------------------- -// vtkColorTransferFunction methods -// ---------------------------------------------------------------------------- - -function vtkColorTransferFunction(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkColorTransferFunction'); - - // Return the number of points which specify this function - publicAPI.getSize = () => model.nodes.length; - - //---------------------------------------------------------------------------- - // Add a point defined in RGB - publicAPI.addRGBPoint = (x, r, g, b) => publicAPI.addRGBPointLong(x, r, g, b, 0.5, 0.0); - - //---------------------------------------------------------------------------- - // Add a point defined in RGB - publicAPI.addRGBPointLong = function (x, r, g, b) { - let midpoint = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0.5; - let sharpness = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0.0; - // Error check - if (midpoint < 0.0 || midpoint > 1.0) { - vtkErrorMacro('Midpoint outside range [0.0, 1.0]'); - return -1; - } - if (sharpness < 0.0 || sharpness > 1.0) { - vtkErrorMacro('Sharpness outside range [0.0, 1.0]'); - return -1; - } - - // remove any node already at this X location - if (!model.allowDuplicateScalars) { - publicAPI.removePoint(x); - } - - // Create the new node - const node = { - x, - r, - g, - b, - midpoint, - sharpness - }; - - // Add it, then sort to get everything in order - model.nodes.push(node); - publicAPI.sortAndUpdateRange(); - - // We need to find the index of the node we just added in order - // to return this value - let i = 0; - for (; i < model.nodes.length; i++) { - if (model.nodes[i].x === x) { - break; - } - } - - // If we didn't find it, something went horribly wrong so - // return -1 - if (i < model.nodes.length) { - return i; - } - return -1; - }; - - //---------------------------------------------------------------------------- - // Add a point defined in HSV - publicAPI.addHSVPoint = (x, h, s, v) => publicAPI.addHSVPointLong(x, h, s, v, 0.5, 0.0); - - //---------------------------------------------------------------------------- - // Add a point defined in HSV - publicAPI.addHSVPointLong = function (x, h, s, v) { - let midpoint = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0.5; - let sharpness = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0.0; - const rgb = []; - const hsv = [h, s, v]; - hsv2rgb(hsv, rgb); - return publicAPI.addRGBPoint(x, rgb[0], rgb[1], rgb[2], midpoint, sharpness); - }; - - //---------------------------------------------------------------------------- - // Set nodes directly - publicAPI.setNodes = nodes => { - if (model.nodes !== nodes) { - const before = JSON.stringify(model.nodes); - model.nodes = nodes; - const after = JSON.stringify(model.nodes); - if (publicAPI.sortAndUpdateRange() || before !== after) { - publicAPI.modified(); - return true; - } - } - return false; - }; - - //---------------------------------------------------------------------------- - // Sort the vector in increasing order, then fill in - // the Range - publicAPI.sortAndUpdateRange = () => { - const before = JSON.stringify(model.nodes); - model.nodes.sort((a, b) => a.x - b.x); - const after = JSON.stringify(model.nodes); - const modifiedInvoked = publicAPI.updateRange(); - // If range is updated, Modified() has been called, don't call it again. - if (!modifiedInvoked && before !== after) { - publicAPI.modified(); - return true; - } - return modifiedInvoked; - }; - - //---------------------------------------------------------------------------- - publicAPI.updateRange = () => { - const oldRange = [2]; - oldRange[0] = model.mappingRange[0]; - oldRange[1] = model.mappingRange[1]; - const size = model.nodes.length; - if (size) { - model.mappingRange[0] = model.nodes[0].x; - model.mappingRange[1] = model.nodes[size - 1].x; - } else { - model.mappingRange[0] = 0; - model.mappingRange[1] = 0; - } - - // If the range is the same, then no need to call Modified() - if (oldRange[0] === model.mappingRange[0] && oldRange[1] === model.mappingRange[1]) { - return false; - } - publicAPI.modified(); - return true; - }; - - //---------------------------------------------------------------------------- - // Remove a point - publicAPI.removePoint = x => { - // First find the node since we need to know its - // index as our return value - let i = 0; - for (; i < model.nodes.length; i++) { - if (model.nodes[i].x === x) { - break; - } - } - const retVal = i; - - // If the node doesn't exist, we return -1 - if (i >= model.nodes.length) { - return -1; - } - - // If the first or last point has been removed, then we update the range - // No need to sort here as the order of points hasn't changed. - let modifiedInvoked = false; - model.nodes.splice(i, 1); - if (i === 0 || i === model.nodes.length) { - modifiedInvoked = publicAPI.updateRange(); - } - if (!modifiedInvoked) { - publicAPI.modified(); - } - return retVal; - }; - - //---------------------------------------------------------------------------- - publicAPI.movePoint = (oldX, newX) => { - if (oldX === newX) { - // Nothing to do. - return; - } - publicAPI.removePoint(newX); - for (let i = 0; i < model.nodes.length; i++) { - if (model.nodes[i].x === oldX) { - model.nodes[i].x = newX; - publicAPI.sortAndUpdateRange(); - break; - } - } - }; - - //---------------------------------------------------------------------------- - // Remove all points - publicAPI.removeAllPoints = () => { - model.nodes = []; - publicAPI.sortAndUpdateRange(); - }; - - //---------------------------------------------------------------------------- - // Add a line defined in RGB - publicAPI.addRGBSegment = (x1, r1, g1, b1, x2, r2, g2, b2) => { - // First, find all points in this range and remove them - publicAPI.sortAndUpdateRange(); - for (let i = 0; i < model.nodes.length;) { - if (model.nodes[i].x >= x1 && model.nodes[i].x <= x2) { - model.nodes.splice(i, 1); - } else { - i++; - } - } - - // Now add the points - publicAPI.addRGBPointLong(x1, r1, g1, b1, 0.5, 0.0); - publicAPI.addRGBPointLong(x2, r2, g2, b2, 0.5, 0.0); - publicAPI.modified(); - }; - - //---------------------------------------------------------------------------- - // Add a line defined in HSV - publicAPI.addHSVSegment = (x1, h1, s1, v1, x2, h2, s2, v2) => { - const hsv1 = [h1, s1, v1]; - const hsv2 = [h2, s2, v2]; - const rgb1 = []; - const rgb2 = []; - hsv2rgb(hsv1, rgb1); - hsv2rgb(hsv2, rgb2); - publicAPI.addRGBSegment(x1, rgb1[0], rgb1[1], rgb1[2], x2, rgb2[0], rgb2[1], rgb2[2]); - }; - - //---------------------------------------------------------------------------- - // Returns the RGBA color evaluated at the specified location - publicAPI.mapValue = x => { - const rgb = []; - publicAPI.getColor(x, rgb); - return [Math.floor(255.0 * rgb[0] + 0.5), Math.floor(255.0 * rgb[1] + 0.5), Math.floor(255.0 * rgb[2] + 0.5), 255]; - }; - - //---------------------------------------------------------------------------- - // Returns the RGB color evaluated at the specified location - publicAPI.getColor = (x, rgb) => { - if (model.indexedLookup) { - const numNodes = publicAPI.getSize(); - // todo - const idx = publicAPI.getAnnotatedValueIndexInternal(x); - if (idx < 0 || numNodes === 0) { - const nanColor = publicAPI.getNanColorByReference(); - rgb[0] = nanColor[0]; - rgb[1] = nanColor[1]; - rgb[2] = nanColor[2]; - } else { - const nodeVal = []; - publicAPI.getNodeValue(idx % numNodes, nodeVal); - // nodeVal[0] is the x value. nodeVal[1...3] is rgb. - rgb[0] = nodeVal[1]; - rgb[1] = nodeVal[2]; - rgb[2] = nodeVal[3]; - } - return; - } - publicAPI.getTable(x, x, 1, rgb); - }; - - //---------------------------------------------------------------------------- - // Returns the red color evaluated at the specified location - publicAPI.getRedValue = x => { - const rgb = []; - publicAPI.getColor(x, rgb); - return rgb[0]; - }; - - //---------------------------------------------------------------------------- - // Returns the green color evaluated at the specified location - publicAPI.getGreenValue = x => { - const rgb = []; - publicAPI.getColor(x, rgb); - return rgb[1]; - }; - - //---------------------------------------------------------------------------- - // Returns the blue color evaluated at the specified location - publicAPI.getBlueValue = x => { - const rgb = []; - publicAPI.getColor(x, rgb); - return rgb[2]; - }; - publicAPI.logScaleEnabled = () => model.scale === Scale.LOG10; - publicAPI.usingLogScale = () => publicAPI.logScaleEnabled() && model.mappingRange[0] > 0.0; - - //---------------------------------------------------------------------------- - // Returns a table of RGB colors at regular intervals along the function - publicAPI.getTable = (xStart_, xEnd_, size, table) => { - // Note: This requires range[0] <= range[1]. - const usingLogScale = publicAPI.usingLogScale(); - - // To handle BigInt limitation - const xStart = usingLogScale ? Math.log10(Number(xStart_)) : Number(xStart_); - const xEnd = usingLogScale ? Math.log10(Number(xEnd_)) : Number(xEnd_); - - // Special case: If either the start or end is a NaN, then all any - // interpolation done on them is also a NaN. Therefore, fill the table with - // the NaN color. - if (isNan(xStart) || isNan(xEnd)) { - for (let i = 0; i < size; i++) { - table[i * 3 + 0] = model.nanColor[0]; - table[i * 3 + 1] = model.nanColor[1]; - table[i * 3 + 2] = model.nanColor[2]; - } - return; - } - let idx = 0; - const numNodes = model.nodes.length; - - // Need to keep track of the last value so that - // we can fill in table locations past this with - // this value if Clamping is On. - let lastR = 0.0; - let lastG = 0.0; - let lastB = 0.0; - if (numNodes !== 0) { - lastR = model.nodes[numNodes - 1].r; - lastG = model.nodes[numNodes - 1].g; - lastB = model.nodes[numNodes - 1].b; - } - let x = 0.0; - let x1 = 0.0; - let x2 = 0.0; - const rgb1 = [0.0, 0.0, 0.0]; - const rgb2 = [0.0, 0.0, 0.0]; - let midpoint = 0.0; - let sharpness = 0.0; - const tmpVec = []; - - // If the scale is logarithmic, make sure the range is valid. - let scaledMappingRange = model.mappingRange; - if (usingLogScale) { - scaledMappingRange = [Math.log10(model.mappingRange[0]), Math.log10(model.mappingRange[1])]; - } - - // For each table entry - for (let i = 0; i < size; i++) { - // Find our location in the table - const tidx = 3 * i; - - // Find our X location. If we are taking only 1 sample, make - // it halfway between start and end (usually start and end will - // be the same in this case) - if (size > 1) { - x = xStart + i / (size - 1.0) * (xEnd - xStart); - } else { - x = 0.5 * (xStart + xEnd); - } - - // Linearly map x from mappingRange to [0, numberOfValues-1], - // discretize (round down to the closest integer), - // then map back to mappingRange - if (model.discretize) { - const range = scaledMappingRange; - if (x >= range[0] && x <= range[1]) { - const numberOfValues = model.numberOfValues; - const deltaRange = range[1] - range[0]; - if (numberOfValues <= 1) { - x = range[0] + deltaRange / 2.0; - } else { - // normalize x - const xn = (x - range[0]) / deltaRange; - // discretize - const discretizeIndex = floor(numberOfValues * xn); - // get discretized x - x = range[0] + discretizeIndex / (numberOfValues - 1) * deltaRange; - } - } - } - - // Do we need to move to the next node? - while (idx < numNodes && x > model.nodes[idx].x) { - idx++; - // If we are at a valid point index, fill in - // the value at this node, and the one before (the - // two that surround our current sample location) - // idx cannot be 0 since we just incremented it. - if (idx < numNodes) { - x1 = model.nodes[idx - 1].x; - x2 = model.nodes[idx].x; - rgb1[0] = model.nodes[idx - 1].r; - rgb2[0] = model.nodes[idx].r; - rgb1[1] = model.nodes[idx - 1].g; - rgb2[1] = model.nodes[idx].g; - rgb1[2] = model.nodes[idx - 1].b; - rgb2[2] = model.nodes[idx].b; - - // We only need the previous midpoint and sharpness - // since these control this region - midpoint = model.nodes[idx - 1].midpoint; - sharpness = model.nodes[idx - 1].sharpness; - - // Move midpoint away from extreme ends of range to avoid - // degenerate math - if (midpoint < 0.00001) { - midpoint = 0.00001; - } - if (midpoint > 0.99999) { - midpoint = 0.99999; - } - } - } - - // Are we at or past the end? If so, just use the last value - if (x > scaledMappingRange[1]) { - table[tidx] = 0.0; - table[tidx + 1] = 0.0; - table[tidx + 2] = 0.0; - if (model.clamping) { - if (publicAPI.getUseAboveRangeColor()) { - table[tidx] = model.aboveRangeColor[0]; - table[tidx + 1] = model.aboveRangeColor[1]; - table[tidx + 2] = model.aboveRangeColor[2]; - } else { - table[tidx] = lastR; - table[tidx + 1] = lastG; - table[tidx + 2] = lastB; - } - } - } else if (x < scaledMappingRange[0] || isInf(x) && x < 0) { - // we are before the first node? If so, duplicate this node's values. - // We have to deal with -inf here - table[tidx] = 0.0; - table[tidx + 1] = 0.0; - table[tidx + 2] = 0.0; - if (model.clamping) { - if (publicAPI.getUseBelowRangeColor()) { - table[tidx] = model.belowRangeColor[0]; - table[tidx + 1] = model.belowRangeColor[1]; - table[tidx + 2] = model.belowRangeColor[2]; - } else if (numNodes > 0) { - table[tidx] = model.nodes[0].r; - table[tidx + 1] = model.nodes[0].g; - table[tidx + 2] = model.nodes[0].b; - } - } - } else if (idx === 0 && (Math.abs(x - xStart) < 1e-6 || model.discretize)) { - if (numNodes > 0) { - table[tidx] = model.nodes[0].r; - table[tidx + 1] = model.nodes[0].g; - table[tidx + 2] = model.nodes[0].b; - } else { - table[tidx] = 0.0; - table[tidx + 1] = 0.0; - table[tidx + 2] = 0.0; - } - } else { - // OK, we are between two nodes - interpolate - // Our first attempt at a normalized location [0,1] - - // we will be modifying this based on midpoint and - // sharpness to get the curve shape we want and to have - // it pass through (y1+y2)/2 at the midpoint. - let s = 0.0; - s = (x - x1) / (x2 - x1); - - // Readjust based on the midpoint - linear adjustment - if (s < midpoint) { - s = 0.5 * s / midpoint; - } else { - s = 0.5 + 0.5 * (s - midpoint) / (1.0 - midpoint); - } - - // override for sharpness > 0.99 - // In this case we just want piecewise constant - if (sharpness > 0.99) { - // Use the first value since we are below the midpoint - if (s < 0.5) { - table[tidx] = rgb1[0]; - table[tidx + 1] = rgb1[1]; - table[tidx + 2] = rgb1[2]; - continue; - } else { - // Use the second value at or above the midpoint - table[tidx] = rgb2[0]; - table[tidx + 1] = rgb2[1]; - table[tidx + 2] = rgb2[2]; - continue; - } - } - - // Override for sharpness < 0.01 - // In this case we want piecewise linear - if (sharpness < 0.01) { - // Simple linear interpolation - if (model.colorSpace === ColorSpace.RGB) { - table[tidx] = (1 - s) * rgb1[0] + s * rgb2[0]; - table[tidx + 1] = (1 - s) * rgb1[1] + s * rgb2[1]; - table[tidx + 2] = (1 - s) * rgb1[2] + s * rgb2[2]; - } else if (model.colorSpace === ColorSpace.HSV) { - const hsv1 = []; - const hsv2 = []; - rgb2hsv(rgb1, hsv1); - rgb2hsv(rgb2, hsv2); - if (model.hSVWrap && (hsv1[0] - hsv2[0] > 0.5 || hsv2[0] - hsv1[0] > 0.5)) { - if (hsv1[0] > hsv2[0]) { - hsv1[0] -= 1.0; - } else { - hsv2[0] -= 1.0; - } - } - const hsvTmp = []; - hsvTmp[0] = (1.0 - s) * hsv1[0] + s * hsv2[0]; - if (hsvTmp[0] < 0.0) { - hsvTmp[0] += 1.0; - } - hsvTmp[1] = (1.0 - s) * hsv1[1] + s * hsv2[1]; - hsvTmp[2] = (1.0 - s) * hsv1[2] + s * hsv2[2]; - - // Now convert this back to RGB - hsv2rgb(hsvTmp, tmpVec); - table[tidx] = tmpVec[0]; - table[tidx + 1] = tmpVec[1]; - table[tidx + 2] = tmpVec[2]; - } else if (model.colorSpace === ColorSpace.LAB) { - const lab1 = []; - const lab2 = []; - rgb2lab(rgb1, lab1); - rgb2lab(rgb2, lab2); - const labTmp = []; - labTmp[0] = (1 - s) * lab1[0] + s * lab2[0]; - labTmp[1] = (1 - s) * lab1[1] + s * lab2[1]; - labTmp[2] = (1 - s) * lab1[2] + s * lab2[2]; - - // Now convert back to RGB - lab2rgb(labTmp, tmpVec); - table[tidx] = tmpVec[0]; - table[tidx + 1] = tmpVec[1]; - table[tidx + 2] = tmpVec[2]; - } else if (model.colorSpace === ColorSpace.DIVERGING) { - vtkColorTransferFunctionInterpolateDiverging(s, rgb1, rgb2, tmpVec); - table[tidx] = tmpVec[0]; - table[tidx + 1] = tmpVec[1]; - table[tidx + 2] = tmpVec[2]; - } else { - vtkErrorMacro('ColorSpace set to invalid value.', model.colorSpace); - } - continue; - } - - // We have a sharpness between [0.01, 0.99] - we will - // used a modified hermite curve interpolation where we - // derive the slope based on the sharpness, and we compress - // the curve non-linearly based on the sharpness - - // First, we will adjust our position based on sharpness in - // order to make the curve sharper (closer to piecewise constant) - if (s < 0.5) { - s = 0.5 * (s * 2.0) ** (1.0 + 10.0 * sharpness); - } else if (s > 0.5) { - s = 1.0 - 0.5 * ((1.0 - s) * 2) ** (1 + 10.0 * sharpness); - } - - // Compute some coefficients we will need for the hermite curve - const ss = s * s; - const sss = ss * s; - const h1 = 2.0 * sss - 3 * ss + 1; - const h2 = -2 * sss + 3 * ss; - const h3 = sss - 2 * ss + s; - const h4 = sss - ss; - let slope; - let t; - if (model.colorSpace === ColorSpace.RGB) { - for (let j = 0; j < 3; j++) { - // Use one slope for both end points - slope = rgb2[j] - rgb1[j]; - t = (1.0 - sharpness) * slope; - - // Compute the value - table[tidx + j] = h1 * rgb1[j] + h2 * rgb2[j] + h3 * t + h4 * t; - } - } else if (model.colorSpace === ColorSpace.HSV) { - const hsv1 = []; - const hsv2 = []; - rgb2hsv(rgb1, hsv1); - rgb2hsv(rgb2, hsv2); - if (model.hSVWrap && (hsv1[0] - hsv2[0] > 0.5 || hsv2[0] - hsv1[0] > 0.5)) { - if (hsv1[0] > hsv2[0]) { - hsv1[0] -= 1.0; - } else { - hsv2[0] -= 1.0; - } - } - const hsvTmp = []; - for (let j = 0; j < 3; j++) { - // Use one slope for both end points - slope = hsv2[j] - hsv1[j]; - t = (1.0 - sharpness) * slope; - - // Compute the value - hsvTmp[j] = h1 * hsv1[j] + h2 * hsv2[j] + h3 * t + h4 * t; - if (j === 0 && hsvTmp[j] < 0.0) { - hsvTmp[j] += 1.0; - } - } - // Now convert this back to RGB - hsv2rgb(hsvTmp, tmpVec); - table[tidx] = tmpVec[0]; - table[tidx + 1] = tmpVec[1]; - table[tidx + 2] = tmpVec[2]; - } else if (model.colorSpace === ColorSpace.LAB) { - const lab1 = []; - const lab2 = []; - rgb2lab(rgb1, lab1); - rgb2lab(rgb2, lab2); - const labTmp = []; - for (let j = 0; j < 3; j++) { - // Use one slope for both end points - slope = lab2[j] - lab1[j]; - t = (1.0 - sharpness) * slope; - - // Compute the value - labTmp[j] = h1 * lab1[j] + h2 * lab2[j] + h3 * t + h4 * t; - } - // Now convert this back to RGB - lab2rgb(labTmp, tmpVec); - table[tidx] = tmpVec[0]; - table[tidx + 1] = tmpVec[1]; - table[tidx + 2] = tmpVec[2]; - } else if (model.colorSpace === ColorSpace.DIVERGING) { - // I have not implemented proper interpolation by a hermite curve for - // the diverging color map, but I cannot think of a good use case for - // that anyway. - vtkColorTransferFunctionInterpolateDiverging(s, rgb1, rgb2, tmpVec); - table[tidx] = tmpVec[0]; - table[tidx + 1] = tmpVec[1]; - table[tidx + 2] = tmpVec[2]; - } else { - vtkErrorMacro('ColorSpace set to invalid value.'); - } - - // Final error check to make sure we don't go outside [0,1] - for (let j = 0; j < 3; j++) { - table[tidx + j] = table[tidx + j] < 0.0 ? 0.0 : table[tidx + j]; - table[tidx + j] = table[tidx + j] > 1.0 ? 1.0 : table[tidx + j]; - } - } - } - }; - - //---------------------------------------------------------------------------- - publicAPI.getUint8Table = function (xStart, xEnd, size) { - let withAlpha = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; - if (publicAPI.getMTime() <= model.buildTime && model.tableSize === size && model.tableWithAlpha !== withAlpha) { - return model.table; - } - if (model.nodes.length === 0) { - vtkErrorMacro('Attempting to lookup a value with no points in the function'); - return model.table; - } - const nbChannels = withAlpha ? 4 : 3; - if (model.tableSize !== size || model.tableWithAlpha !== withAlpha) { - model.table = new Uint8Array(size * nbChannels); - model.tableSize = size; - model.tableWithAlpha = withAlpha; - } - const tmpTable = []; - publicAPI.getTable(xStart, xEnd, size, tmpTable); - for (let i = 0; i < size; i++) { - model.table[i * nbChannels + 0] = Math.floor(tmpTable[i * 3 + 0] * 255.0 + 0.5); - model.table[i * nbChannels + 1] = Math.floor(tmpTable[i * 3 + 1] * 255.0 + 0.5); - model.table[i * nbChannels + 2] = Math.floor(tmpTable[i * 3 + 2] * 255.0 + 0.5); - if (withAlpha) { - model.table[i * nbChannels + 3] = 255; - } - } - model.buildTime.modified(); - return model.table; - }; - publicAPI.buildFunctionFromArray = array => { - publicAPI.removeAllPoints(); - const numComponents = array.getNumberOfComponents(); - for (let i = 0; i < array.getNumberOfTuples(); i++) { - switch (numComponents) { - case 3: - { - model.nodes.push({ - x: i, - r: array.getComponent(i, 0), - g: array.getComponent(i, 1), - b: array.getComponent(i, 2), - midpoint: 0.5, - sharpness: 0.0 - }); - break; - } - case 4: - { - model.nodes.push({ - x: array.getComponent(i, 0), - r: array.getComponent(i, 1), - g: array.getComponent(i, 2), - b: array.getComponent(i, 3), - midpoint: 0.5, - sharpness: 0.0 - }); - break; - } - case 5: - { - model.nodes.push({ - x: i, - r: array.getComponent(i, 0), - g: array.getComponent(i, 1), - b: array.getComponent(i, 2), - midpoint: array.getComponent(i, 4), - sharpness: array.getComponent(i, 5) - }); - break; - } - case 6: - { - model.nodes.push({ - x: array.getComponent(i, 0), - r: array.getComponent(i, 1), - g: array.getComponent(i, 2), - b: array.getComponent(i, 3), - midpoint: array.getComponent(i, 4), - sharpness: array.getComponent(i, 5) - }); - break; - } - } - } - publicAPI.sortAndUpdateRange(); - }; - - //---------------------------------------------------------------------------- - publicAPI.buildFunctionFromTable = (xStart, xEnd, size, table) => { - let inc = 0.0; - publicAPI.removeAllPoints(); - if (size > 1) { - inc = (xEnd - xStart) / (size - 1.0); - } - for (let i = 0; i < size; i++) { - const node = { - x: xStart + inc * i, - r: table[i * 3], - g: table[i * 3 + 1], - b: table[i * 3 + 2], - sharpness: 0.0, - midpoint: 0.5 - }; - model.nodes.push(node); - } - publicAPI.sortAndUpdateRange(); - }; - - //---------------------------------------------------------------------------- - // For a specified index value, get the node parameters - publicAPI.getNodeValue = (index, val) => { - if (index < 0 || index >= model.nodes.length) { - vtkErrorMacro('Index out of range!'); - return -1; - } - val[0] = model.nodes[index].x; - val[1] = model.nodes[index].r; - val[2] = model.nodes[index].g; - val[3] = model.nodes[index].b; - val[4] = model.nodes[index].midpoint; - val[5] = model.nodes[index].sharpness; - return 1; - }; - - //---------------------------------------------------------------------------- - // For a specified index value, get the node parameters - publicAPI.setNodeValue = (index, val) => { - if (index < 0 || index >= model.nodes.length) { - vtkErrorMacro('Index out of range!'); - return -1; - } - const oldX = model.nodes[index].x; - model.nodes[index].x = val[0]; - model.nodes[index].r = val[1]; - model.nodes[index].g = val[2]; - model.nodes[index].b = val[3]; - model.nodes[index].midpoint = val[4]; - model.nodes[index].sharpness = val[5]; - if (oldX !== val[0]) { - // The point has been moved, the order of points or the range might have - // been modified. - publicAPI.sortAndUpdateRange(); - // No need to call Modified() here because SortAndUpdateRange() has done it - // already. - } else { - publicAPI.modified(); - } - return 1; - }; - - //---------------------------------------------------------------------------- - publicAPI.getNumberOfAvailableColors = () => { - if (model.indexedLookup && publicAPI.getSize()) { - return publicAPI.getSize(); - } - if (model.tableSize) { - // Not sure if this is correct since it is only set if - // "const unsigned char *::GetTable(double xStart, double xEnd,int size)" - // has been called. - return model.tableSize; - } - const nNodes = model.nodes?.length ?? 0; - // The minimum is 4094 colors so that it fills in the 4096 texels texture in `mapScalarsToTexture` - return Math.max(4094, nNodes); - }; - - //---------------------------------------------------------------------------- - publicAPI.getIndexedColor = (idx, rgba) => { - const n = publicAPI.getSize(); - if (n > 0 && idx >= 0) { - const nodeValue = []; - publicAPI.getNodeValue(idx % n, nodeValue); - for (let j = 0; j < 3; ++j) { - rgba[j] = nodeValue[j + 1]; - } - rgba[3] = 1.0; // NodeColor is RGB-only. - return; - } - const nanColor = publicAPI.getNanColorByReference(); - rgba[0] = nanColor[0]; - rgba[1] = nanColor[1]; - rgba[2] = nanColor[2]; - rgba[3] = 1.0; // NanColor is RGB-only. - }; - - //---------------------------------------------------------------------------- - publicAPI.fillFromDataPointer = (nb, ptr) => { - if (nb <= 0 || !ptr) { - return; - } - publicAPI.removeAllPoints(); - for (let i = 0; i < nb; i++) { - publicAPI.addRGBPoint(ptr[i * 4], ptr[i * 4 + 1], ptr[i * 4 + 2], ptr[i * 4 + 3]); - } - }; - - //---------------------------------------------------------------------------- - publicAPI.setMappingRange = (min, max) => { - const range = [min, max]; - const scaledRange = [min, max]; - const originalRange = publicAPI.getRange(); - const logScaleEnabled = publicAPI.logScaleEnabled(); - if (originalRange[1] === range[1] && originalRange[0] === range[0]) { - return; - } - if (range[1] === range[0]) { - vtkErrorMacro('attempt to set zero width color range'); - return; - } - if (logScaleEnabled) { - if (range[0] <= 0.0) { - console.warn('attempt to set log scale color range with non-positive minimum'); - } else { - scaledRange[0] = Math.log10(range[0]); - scaledRange[1] = Math.log10(range[1]); - } - } - const scale = (scaledRange[1] - scaledRange[0]) / (originalRange[1] - originalRange[0]); - const shift = scaledRange[0] - originalRange[0] * scale; - for (let i = 0; i < model.nodes.length; ++i) { - model.nodes[i].x = model.nodes[i].x * scale + shift; - } - model.mappingRange[0] = range[0]; - model.mappingRange[1] = range[1]; - publicAPI.modified(); - }; - - //---------------------------------------------------------------------------- - publicAPI.adjustRange = range => { - const functionRange = publicAPI.getRange(); - - // Make sure we have points at each end of the range - const rgb = []; - if (functionRange[0] < range[0]) { - publicAPI.getColor(range[0], rgb); - publicAPI.addRGBPoint(range[0], rgb[0], rgb[1], rgb[2]); - } else { - publicAPI.getColor(functionRange[0], rgb); - publicAPI.addRGBPoint(range[0], rgb[0], rgb[1], rgb[2]); - } - if (functionRange[1] > range[1]) { - publicAPI.getColor(range[1], rgb); - publicAPI.addRGBPoint(range[1], rgb[0], rgb[1], rgb[2]); - } else { - publicAPI.getColor(functionRange[1], rgb); - publicAPI.addRGBPoint(range[1], rgb[0], rgb[1], rgb[2]); - } - - // Remove all points out-of-range - publicAPI.sortAndUpdateRange(); - for (let i = 0; i < model.nodes.length;) { - if (model.nodes[i].x >= range[0] && model.nodes[i].x <= range[1]) { - model.nodes.splice(i, 1); - } else { - ++i; - } - } - return 1; - }; - - //-------------------------------------------------------------------------- - publicAPI.estimateMinNumberOfSamples = (x1, x2) => { - const d = publicAPI.findMinimumXDistance(); - return Math.ceil((x2 - x1) / d); - }; - - //---------------------------------------------------------------------------- - publicAPI.findMinimumXDistance = () => { - if (model.nodes.length < 2) { - return -1.0; - } - let distance = Number.MAX_VALUE; - for (let i = 0; i < model.nodes.length - 1; i++) { - const currentDist = model.nodes[i + 1].x - model.nodes[i].x; - if (currentDist < distance) { - distance = currentDist; - } - } - return distance; - }; - publicAPI.mapScalarsThroughTable = (input, output, outFormat, inputOffset) => { - if (publicAPI.getSize() === 0) { - vtkDebugMacro('Transfer Function Has No Points!'); - return; - } - if (model.indexedLookup) { - publicAPI.mapDataIndexed(input, output, outFormat, inputOffset); - } else { - publicAPI.mapData(input, output, outFormat, inputOffset); - } - }; - - //---------------------------------------------------------------------------- - publicAPI.mapData = (input, output, outFormat, inputOffset) => { - if (publicAPI.getSize() === 0) { - vtkWarningMacro('Transfer Function Has No Points!'); - return; - } - const alpha = Math.floor(publicAPI.getAlpha() * 255.0 + 0.5); - const length = input.getNumberOfTuples(); - const inIncr = input.getNumberOfComponents(); - const outputV = output.getData(); - const inputV = input.getData(); - const rgb = []; - if (outFormat === ScalarMappingTarget.RGBA) { - for (let i = 0; i < length; i++) { - const x = inputV[i * inIncr + inputOffset]; - publicAPI.getColor(x, rgb); - outputV[i * 4] = Math.floor(rgb[0] * 255.0 + 0.5); - outputV[i * 4 + 1] = Math.floor(rgb[1] * 255.0 + 0.5); - outputV[i * 4 + 2] = Math.floor(rgb[2] * 255.0 + 0.5); - outputV[i * 4 + 3] = alpha; - } - } - if (outFormat === ScalarMappingTarget.RGB) { - for (let i = 0; i < length; i++) { - const x = inputV[i * inIncr + inputOffset]; - publicAPI.getColor(x, rgb); - outputV[i * 3] = Math.floor(rgb[0] * 255.0 + 0.5); - outputV[i * 3 + 1] = Math.floor(rgb[1] * 255.0 + 0.5); - outputV[i * 3 + 2] = Math.floor(rgb[2] * 255.0 + 0.5); - } - } - if (outFormat === ScalarMappingTarget.LUMINANCE) { - for (let i = 0; i < length; i++) { - const x = inputV[i * inIncr + inputOffset]; - publicAPI.getColor(x, rgb); - outputV[i] = Math.floor(rgb[0] * 76.5 + rgb[1] * 150.45 + rgb[2] * 28.05 + 0.5); - } - } - if (outFormat === ScalarMappingTarget.LUMINANCE_ALPHA) { - for (let i = 0; i < length; i++) { - const x = inputV[i * inIncr + inputOffset]; - publicAPI.getColor(x, rgb); - outputV[i * 2] = Math.floor(rgb[0] * 76.5 + rgb[1] * 150.45 + rgb[2] * 28.05 + 0.5); - outputV[i * 2 + 1] = alpha; - } - } - }; - - //---------------------------------------------------------------------------- - publicAPI.applyColorMap = colorMap => { - const oldColorSpace = JSON.stringify(model.colorSpace); - if (colorMap.ColorSpace) { - model.colorSpace = ColorSpace[colorMap.ColorSpace.toUpperCase()]; - if (model.colorSpace === undefined) { - vtkErrorMacro(`ColorSpace ${colorMap.ColorSpace} not supported, using RGB instead`); - model.colorSpace = ColorSpace.RGB; - } - } - let isModified = oldColorSpace !== JSON.stringify(model.colorSpace); - const oldNanColor = isModified || JSON.stringify(model.nanColor); - if (colorMap.NanColor) { - model.nanColor = [].concat(colorMap.NanColor); - while (model.nanColor.length < 4) { - model.nanColor.push(1.0); - } - } - isModified = isModified || oldNanColor !== JSON.stringify(model.nanColor); - const oldNodes = isModified || JSON.stringify(model.nodes); - if (colorMap.RGBPoints) { - const size = colorMap.RGBPoints.length; - model.nodes = []; - const midpoint = 0.5; - const sharpness = 0.0; - for (let i = 0; i < size; i += 4) { - model.nodes.push({ - x: colorMap.RGBPoints[i], - r: colorMap.RGBPoints[i + 1], - g: colorMap.RGBPoints[i + 2], - b: colorMap.RGBPoints[i + 3], - midpoint, - sharpness - }); - } - } - const modifiedInvoked = publicAPI.sortAndUpdateRange(); - const callModified = !modifiedInvoked && (isModified || oldNodes !== JSON.stringify(model.nodes)); - if (callModified) publicAPI.modified(); - return modifiedInvoked || callModified; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - clamping: true, - colorSpace: ColorSpace.RGB, - hSVWrap: true, - scale: Scale.LINEAR, - nanColor: null, - belowRangeColor: null, - aboveRangeColor: null, - useAboveRangeColor: false, - useBelowRangeColor: false, - allowDuplicateScalars: false, - table: null, - tableSize: 0, - buildTime: null, - nodes: null, - discretize: false, - numberOfValues: 256 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkScalarsToColors.extend(publicAPI, model, initialValues); - - // Internal objects initialization - model.table = []; - model.nodes = []; - model.nanColor = [0.5, 0.0, 0.0, 1.0]; - model.belowRangeColor = [0.0, 0.0, 0.0, 1.0]; - model.aboveRangeColor = [1.0, 1.0, 1.0, 1.0]; - model.buildTime = {}; - macro.obj(model.buildTime); - - // Create get-only macros - macro.get(publicAPI, model, ['buildTime', 'mappingRange']); - - // Create get-set macros - macro.setGet(publicAPI, model, ['useAboveRangeColor', 'useBelowRangeColor', 'discretize', 'numberOfValues', { - type: 'enum', - name: 'colorSpace', - enum: ColorSpace - }, { - type: 'enum', - name: 'scale', - enum: Scale - }]); - macro.setArray(publicAPI, model, ['nanColor', 'belowRangeColor', 'aboveRangeColor'], 4); - - // Create get macros for array - macro.getArray(publicAPI, model, ['nanColor', 'belowRangeColor', 'aboveRangeColor']); - - // For more macro methods, see "Sources/macros.js" - - // Object specific methods - vtkColorTransferFunction(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkColorTransferFunction'); - -// ---------------------------------------------------------------------------- - -var vtkColorTransferFunction$1 = { - newInstance, - extend, - ...Constants -}; - -export { vtkColorTransferFunction$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMaps.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMaps.d.ts deleted file mode 100644 index b35bc03f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMaps.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * vtkColorMaps represents a global registry of preset color maps. - */ - -import { Vector3 } from '../../../types'; - -export interface IColorMapPreset { - Name: string; - Creator?: string; - ColorSpace?: string; - NanColor?: Vector3; - RGBPoints: number[]; - IndexedColors?: number[]; - Annotations?: (number | string)[]; -} - -export declare const vtkColorMaps: { - addPreset(preset: IColorMapPreset): void; - removePresetByName(name: string): void; - getPresetByName(name: string): IColorMapPreset; - rgbPresetNames: string[]; -}; - -export default vtkColorMaps; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMaps.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMaps.js deleted file mode 100644 index a14aeb37..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMaps.js +++ /dev/null @@ -1,51 +0,0 @@ -import { v as vtkColorMaps$1 } from './ColorMaps.json.js'; - -const presetMap = Object.create(null); -vtkColorMaps$1.filter(p => p.RGBPoints).filter(p => p.ColorSpace !== 'CIELAB').forEach(p => { - presetMap[p.Name] = p; -}); - -// ---------------------------------------------------------------------------- - -const rgbPresetNames = Object.keys(presetMap); -rgbPresetNames.sort(); - -// ---------------------------------------------------------------------------- - -function getPresetByName(name) { - return presetMap[name]; -} - -// ---------------------------------------------------------------------------- - -function addPreset(preset) { - if (!preset.RGBPoints || preset.ColorSpace === 'CIELAB') { - return; - } - if (!presetMap[preset.Name]) { - rgbPresetNames.push(preset.Name); - rgbPresetNames.sort(); - } - presetMap[preset.Name] = preset; -} - -// ---------------------------------------------------------------------------- - -function removePresetByName(name) { - const index = rgbPresetNames.indexOf(name); - if (index > -1) { - rgbPresetNames.splice(index, 1); - } - delete presetMap[name]; -} - -// ---------------------------------------------------------------------------- - -var vtkColorMaps = { - addPreset, - removePresetByName, - getPresetByName, - rgbPresetNames -}; - -export { vtkColorMaps as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMaps.json.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMaps.json.js deleted file mode 100644 index 02126980..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMaps.json.js +++ /dev/null @@ -1,14472 +0,0 @@ -var vtkColorMaps = [ - { - Name: "KAAMS", - IndexedColors: [ - 1, - 1, - 1, - 1, - 0, - 0, - 0, - 1, - 0, - 0, - 0, - 1, - 1, - 1, - 0, - 1, - 0, - 1, - 0, - 1, - 1, - 0.63, - 0.63, - 1, - 0.67, - 0.5, - 0.33, - 1, - 0.5, - 0.75, - 0.53, - 0.35, - 0.7, - 1, - 0.75, - 0.5 - ], - Annotations: [ - 0, - 0, - 1, - 1, - 2, - 2, - 3, - 3, - 4, - 4, - 5, - 5, - 6, - 6, - 7, - 7, - 8, - 8, - 9, - 9, - 10, - 10, - 11, - 11 - ] - }, - { - ColorSpace: "Diverging", - Name: "Cool to Warm", - NanColor: [ - 1, - 1, - 0 - ], - RGBPoints: [ - 0, - 0.23137254902, - 0.298039215686, - 0.752941176471, - 0.5, - 0.865, - 0.865, - 0.865, - 1, - 0.705882352941, - 0.0156862745098, - 0.149019607843 - ] - }, - { - ColorSpace: "Lab", - Creator: "Francesca Samsel", - Name: "Cool to Warm (Extended)", - NanColor: [ - 0.25, - 0, - 0 - ], - RGBPoints: [ - 0, - 0, - 0, - 0.34902, - 0.03125, - 0.039216, - 0.062745, - 0.380392, - 0.0625, - 0.062745, - 0.117647, - 0.411765, - 0.09375, - 0.090196, - 0.184314, - 0.45098, - 0.125, - 0.12549, - 0.262745, - 0.501961, - 0.15625, - 0.160784, - 0.337255, - 0.541176, - 0.1875, - 0.2, - 0.396078, - 0.568627, - 0.21875, - 0.239216, - 0.454902, - 0.6, - 0.25, - 0.286275, - 0.521569, - 0.65098, - 0.28125, - 0.337255, - 0.592157, - 0.701961, - 0.3125, - 0.388235, - 0.654902, - 0.74902, - 0.34375, - 0.466667, - 0.737255, - 0.819608, - 0.375, - 0.572549, - 0.819608, - 0.878431, - 0.40625, - 0.654902, - 0.866667, - 0.909804, - 0.4375, - 0.752941, - 0.917647, - 0.941176, - 0.46875, - 0.823529, - 0.956863, - 0.968627, - 0.5, - 0.988235, - 0.960784, - 0.901961, - 0.5, - 0.941176, - 0.984314, - 0.988235, - 0.52, - 0.988235, - 0.945098, - 0.85098, - 0.54, - 0.980392, - 0.898039, - 0.784314, - 0.5625, - 0.968627, - 0.835294, - 0.698039, - 0.59375, - 0.94902, - 0.733333, - 0.588235, - 0.625, - 0.929412, - 0.65098, - 0.509804, - 0.65625, - 0.909804, - 0.564706, - 0.435294, - 0.6875, - 0.878431, - 0.458824, - 0.352941, - 0.71875, - 0.839216, - 0.388235, - 0.286275, - 0.75, - 0.760784, - 0.294118, - 0.211765, - 0.78125, - 0.701961, - 0.211765, - 0.168627, - 0.8125, - 0.65098, - 0.156863, - 0.129412, - 0.84375, - 0.6, - 0.094118, - 0.094118, - 0.875, - 0.54902, - 0.066667, - 0.098039, - 0.90625, - 0.501961, - 0.05098, - 0.12549, - 0.9375, - 0.45098, - 0.054902, - 0.172549, - 0.96875, - 0.4, - 0.054902, - 0.192157, - 1, - 0.34902, - 0.070588, - 0.211765 - ] - }, - { - ColorSpace: "Diverging", - Name: "Warm to Cool", - NanColor: [ - 1, - 1, - 0 - ], - RGBPoints: [ - 0, - 0.705882352941, - 0.0156862745098, - 0.149019607843, - 0.5, - 0.865, - 0.865, - 0.865, - 1, - 0.23137254902, - 0.298039215686, - 0.752941176471 - ] - }, - { - ColorSpace: "Lab", - Creator: "Francesca Samsel", - Name: "Warm to Cool (Extended)", - NanColor: [ - 0.250004, - 0, - 0 - ], - RGBPoints: [ - 0, - 0.34902, - 0, - 0.129412, - 0.025, - 0.4, - 0.00392157, - 0.101961, - 0.05, - 0.470588, - 0.0156863, - 0.0901961, - 0.075, - 0.54902, - 0.027451, - 0.0705882, - 0.1, - 0.619608, - 0.0627451, - 0.0431373, - 0.125, - 0.690196, - 0.12549, - 0.0627451, - 0.15, - 0.741176, - 0.184314, - 0.0745098, - 0.175, - 0.788235, - 0.266667, - 0.0941176, - 0.2, - 0.811765, - 0.345098, - 0.113725, - 0.225, - 0.831373, - 0.411765, - 0.133333, - 0.25, - 0.85098, - 0.47451, - 0.145098, - 0.275, - 0.870588, - 0.54902, - 0.156863, - 0.3, - 0.878431, - 0.619608, - 0.168627, - 0.325, - 0.890196, - 0.658824, - 0.196078, - 0.35, - 0.909804, - 0.717647, - 0.235294, - 0.375, - 0.929412, - 0.776471, - 0.278431, - 0.395522, - 0.94902, - 0.823529, - 0.321569, - 0.418905, - 0.968627, - 0.87451, - 0.407843, - 0.444278, - 0.980392, - 0.917647, - 0.509804, - 0.470149, - 0.988235, - 0.956863, - 0.643137, - 0.483582, - 0.992157, - 0.964706, - 0.713725, - 0.499, - 0.988235, - 0.980392, - 0.870588, - 0.5, - 1, - 1, - 1, - 0.501, - 0.913725, - 0.988235, - 0.937255, - 0.516418, - 0.827451, - 0.980392, - 0.886275, - 0.531343, - 0.764706, - 0.980392, - 0.866667, - 0.546766, - 0.658824, - 0.980392, - 0.843137, - 0.564179, - 0.572549, - 0.964706, - 0.835294, - 0.587562, - 0.423529, - 0.941176, - 0.87451, - 0.60597, - 0.262745, - 0.901961, - 0.862745, - 0.629851, - 0.0705882, - 0.854902, - 0.870588, - 0.651741, - 0.0509804, - 0.8, - 0.85098, - 0.681592, - 0.0235294, - 0.709804, - 0.831373, - 0.712935, - 0.0313725, - 0.615686, - 0.811765, - 0.75, - 0.0313725, - 0.537255, - 0.788235, - 0.775, - 0.0392157, - 0.466667, - 0.768627, - 0.8, - 0.0509804, - 0.396078, - 0.741176, - 0.825, - 0.054902, - 0.317647, - 0.709804, - 0.85, - 0.054902, - 0.243137, - 0.678431, - 0.875, - 0.0431373, - 0.164706, - 0.639216, - 0.9, - 0.0313725, - 0.0980392, - 0.6, - 0.925, - 0.0392157, - 0.0392157, - 0.560784, - 0.95, - 0.105882, - 0.0509804, - 0.509804, - 0.975, - 0.113725, - 0.0235294, - 0.45098, - 1, - 0.12549, - 0, - 0.380392 - ] - }, - { - ColorSpace: "RGB", - Name: "Rainbow Desaturated", - NanColor: [ - 1, - 1, - 0 - ], - RGBPoints: [ - 0, - 0.278431372549, - 0.278431372549, - 0.858823529412, - 0.143, - 0, - 0, - 0.360784313725, - 0.285, - 0, - 1, - 1, - 0.429, - 0, - 0.501960784314, - 0, - 0.571, - 1, - 1, - 0, - 0.714, - 1, - 0.380392156863, - 0, - 0.857, - 0.419607843137, - 0, - 0, - 1, - 0.878431372549, - 0.301960784314, - 0.301960784314 - ] - }, - { - ColorSpace: "RGB", - Name: "Cold and Hot", - NanColor: [ - 1, - 1, - 0 - ], - RGBPoints: [ - 0, - 0, - 1, - 1, - 0.45, - 0, - 0, - 1, - 0.5, - 0, - 0, - 0.501960784314, - 0.55, - 1, - 0, - 0, - 1, - 1, - 1, - 0 - ] - }, - { - ColorSpace: "RGB", - Name: "Black-Body Radiation", - NanColor: [ - 0, - 0.498039215686, - 1 - ], - RGBPoints: [ - 0, - 0, - 0, - 0, - 0.4, - 0.901960784314, - 0, - 0, - 0.8, - 0.901960784314, - 0.901960784314, - 0, - 1, - 1, - 1, - 1 - ] - }, - { - ColorSpace: "RGB", - Name: "X Ray", - NanColor: [ - 1, - 0, - 0 - ], - RGBPoints: [ - 0, - 1, - 1, - 1, - 1, - 0, - 0, - 0 - ] - }, - { - ColorSpace: "RGB", - Name: "Grayscale", - NanColor: [ - 1, - 0, - 0 - ], - RGBPoints: [ - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1 - ] - }, - { - ColorSpace: "RGB", - Name: "BkRd", - NanColor: [ - 0, - 1, - 1 - ], - RGBPoints: [ - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 0 - ] - }, - { - ColorSpace: "RGB", - Name: "BkGn", - NanColor: [ - 1, - 0, - 1 - ], - RGBPoints: [ - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 0 - ] - }, - { - ColorSpace: "RGB", - Name: "BkBu", - NanColor: [ - 1, - 1, - 0 - ], - RGBPoints: [ - 0, - 0, - 0, - 0, - 1, - 0, - 0, - 1 - ] - }, - { - ColorSpace: "RGB", - Name: "BkMa", - NanColor: [ - 0, - 1, - 0 - ], - RGBPoints: [ - 0, - 0, - 0, - 0, - 1, - 1, - 0, - 1 - ] - }, - { - ColorSpace: "RGB", - Name: "BkCy", - NanColor: [ - 0, - 1, - 1 - ], - RGBPoints: [ - 0, - 0, - 0, - 0, - 1, - 0, - 1, - 1 - ] - }, - { - ColorSpace: "RGB", - Name: "Black, Blue and White", - NanColor: [ - 1, - 1, - 0 - ], - RGBPoints: [ - 0, - 0, - 0, - 0, - 0.333, - 0, - 0, - 0.501960784314, - 0.666, - 0, - 0.501960784314, - 1, - 1, - 1, - 1, - 1 - ] - }, - { - ColorSpace: "RGB", - Name: "Black, Orange and White", - NanColor: [ - 1, - 1, - 0 - ], - RGBPoints: [ - 0, - 0, - 0, - 0, - 0.333, - 0.501960784314, - 0, - 0, - 0.666, - 1, - 0.501960784314, - 0, - 1, - 1, - 1, - 1 - ] - }, - { - ColorSpace: "Lab", - Creator: "Francesca Samsel", - Name: "Linear YGB 1211g", - NanColor: [ - 0.25, - 0, - 0 - ], - RGBPoints: [ - 0, - 1, - 0.988235, - 0.968627, - 0.02, - 1, - 0.952941, - 0.878431, - 0.05, - 0.968627, - 0.905882, - 0.776471, - 0.1, - 0.94902, - 0.898039, - 0.647059, - 0.15, - 0.901961, - 0.878431, - 0.556863, - 0.2, - 0.847059, - 0.858824, - 0.482353, - 0.25, - 0.690196, - 0.819608, - 0.435294, - 0.3, - 0.513725, - 0.768627, - 0.384314, - 0.35, - 0.337255, - 0.721569, - 0.337255, - 0.4, - 0.278431, - 0.658824, - 0.392157, - 0.45, - 0.231373, - 0.639216, - 0.435294, - 0.5, - 0.203922, - 0.6, - 0.486275, - 0.55, - 0.172549, - 0.568627, - 0.537255, - 0.6, - 0.141176, - 0.517647, - 0.54902, - 0.65, - 0.133333, - 0.458824, - 0.541176, - 0.7, - 0.12549, - 0.396078, - 0.529412, - 0.75, - 0.117647, - 0.321569, - 0.521569, - 0.8, - 0.121569, - 0.258824, - 0.509804, - 0.85, - 0.133333, - 0.227451, - 0.501961, - 0.9, - 0.145098, - 0.192157, - 0.490196, - 0.95, - 0.188235, - 0.164706, - 0.470588, - 1, - 0.258824, - 0.196078, - 0.439216 - ] - }, - { - ColorSpace: "CIELAB", - Creator: "Francesca Samsel", - Name: "Linear Green (Gr4L)", - NanColor: [ - 0.25, - 0, - 0 - ], - RGBPoints: [ - 0, - 0.054902, - 0.109804, - 0.121569, - 0.05, - 0.07451, - 0.172549, - 0.180392, - 0.1, - 0.086275, - 0.231373, - 0.219608, - 0.15, - 0.094118, - 0.278431, - 0.25098, - 0.2, - 0.109804, - 0.34902, - 0.278431, - 0.25, - 0.113725, - 0.4, - 0.278431, - 0.3, - 0.117647, - 0.45098, - 0.270588, - 0.35, - 0.117647, - 0.490196, - 0.243137, - 0.4, - 0.113725, - 0.521569, - 0.203922, - 0.45, - 0.109804, - 0.54902, - 0.152941, - 0.5, - 0.082353, - 0.588235, - 0.082353, - 0.55, - 0.109804, - 0.631373, - 0.05098, - 0.6, - 0.211765, - 0.678431, - 0.082353, - 0.65, - 0.317647, - 0.721569, - 0.113725, - 0.7, - 0.431373, - 0.760784, - 0.160784, - 0.75, - 0.556863, - 0.8, - 0.239216, - 0.8, - 0.666667, - 0.839216, - 0.294118, - 0.85, - 0.784314, - 0.878431, - 0.396078, - 0.9, - 0.886275, - 0.921569, - 0.533333, - 0.95, - 0.960784, - 0.94902, - 0.670588, - 1, - 1, - 0.984314, - 0.901961 - ] - }, - { - ColorSpace: "Lab", - Creator: "Francesca Samsel", - Name: "Linear Blue (8_31f)", - NanColor: [ - 0.25, - 0, - 0 - ], - RGBPoints: [ - 0, - 0.960784, - 1, - 0.980392, - 0.05, - 0.815686, - 0.960784, - 0.913725, - 0.1, - 0.670588, - 0.929412, - 0.870588, - 0.15, - 0.556863, - 0.901961, - 0.843137, - 0.2, - 0.478431, - 0.870588, - 0.823529, - 0.25, - 0.439216, - 0.831373, - 0.803922, - 0.3, - 0.4, - 0.8, - 0.788235, - 0.35, - 0.376471, - 0.768627, - 0.768627, - 0.4, - 0.34902, - 0.709804, - 0.729412, - 0.45, - 0.32549, - 0.654902, - 0.690196, - 0.5, - 0.301961, - 0.607843, - 0.658824, - 0.55, - 0.247059, - 0.545098, - 0.619608, - 0.6, - 0.239216, - 0.494118, - 0.580392, - 0.65, - 0.227451, - 0.439216, - 0.541176, - 0.7, - 0.227451, - 0.403922, - 0.521569, - 0.75, - 0.231373, - 0.368627, - 0.501961, - 0.8, - 0.227451, - 0.321569, - 0.470588, - 0.85, - 0.219608, - 0.282353, - 0.439216, - 0.9, - 0.192157, - 0.235294, - 0.4, - 0.95, - 0.160784, - 0.184314, - 0.34902, - 1, - 0.133333, - 0.12549, - 0.301961 - ] - }, - { - ColorSpace: "HSV", - Name: "Blue to Red Rainbow", - NanColor: [ - 0.498039215686, - 0.498039215686, - 0.498039215686 - ], - RGBPoints: [ - 0, - 0, - 0, - 1, - 1, - 1, - 0, - 0 - ] - }, - { - ColorSpace: "HSV", - Name: "Red to Blue Rainbow", - NanColor: [ - 0.498039215686, - 0.498039215686, - 0.498039215686 - ], - RGBPoints: [ - 0, - 1, - 0, - 0, - 1, - 0, - 0, - 1 - ] - }, - { - ColorSpace: "RGB", - Name: "Rainbow Blended White", - NanColor: [ - 1, - 1, - 0 - ], - RGBPoints: [ - 0, - 1, - 1, - 1, - 0.17, - 0, - 0, - 1, - 0.34, - 0, - 1, - 1, - 0.5, - 0, - 1, - 0, - 0.67, - 1, - 1, - 0, - 0.84, - 1, - 0, - 0, - 1, - 0.878431372549, - 0, - 1 - ] - }, - { - ColorSpace: "RGB", - Name: "Rainbow Blended Grey", - NanColor: [ - 1, - 1, - 0 - ], - RGBPoints: [ - 0, - 0.317647058824, - 0.341176470588, - 0.43137254902, - 0.17, - 0, - 0, - 1, - 0.34, - 0, - 1, - 1, - 0.5, - 0, - 1, - 0, - 0.67, - 1, - 1, - 0, - 0.84, - 1, - 0, - 0, - 1, - 0.878431372549, - 0, - 1 - ] - }, - { - ColorSpace: "RGB", - Name: "Rainbow Blended Black", - NanColor: [ - 1, - 1, - 0 - ], - RGBPoints: [ - 0, - 0, - 0, - 0, - 0.17, - 0, - 0, - 1, - 0.34, - 0, - 1, - 1, - 0.5, - 0, - 1, - 0, - 0.67, - 1, - 1, - 0, - 0.84, - 1, - 0, - 0, - 1, - 0.878431372549, - 0, - 1 - ] - }, - { - ColorSpace: "RGB", - Name: "Blue to Yellow", - NanColor: [ - 1, - 0, - 0 - ], - RGBPoints: [ - 0, - 0.0392156862745, - 0.0392156862745, - 0.949019607843, - 1, - 0.949019607843, - 0.949019607843, - 0.0392156862745 - ] - }, - { - ColorSpace: "HSV", - Name: "blot", - RGBPoints: [ - 0, - 0, - 0, - 1, - 0.166, - 0, - 0, - 1, - 0.167, - 1, - 0, - 1, - 0.332, - 1, - 0, - 1, - 0.333, - 0, - 1, - 1, - 0.5, - 0, - 1, - 1, - 0.501, - 0, - 1, - 0, - 0.666, - 0, - 1, - 0, - 0.667, - 1, - 1, - 0, - 0.832, - 1, - 1, - 0, - 0.833, - 1, - 0, - 0, - 1, - 1, - 0, - 0 - ] - }, - { - ColorSpace: "Lab", - Name: "CIELab Blue to Red", - NanColor: [ - 1, - 1, - 0 - ], - RGBPoints: [ - 0, - 0, - 0.6, - 0.749019607843, - 1, - 0.76862745098, - 0.466666666667, - 0.341176470588 - ] - }, - { - ColorSpace: "RGB", - Name: "jet", - RGBPoints: [ - -1, - 0, - 0, - 0.5625, - -0.777778, - 0, - 0, - 1, - -0.269841, - 0, - 1, - 1, - -0.015873, - 0.5, - 1, - 0.5, - 0.238095, - 1, - 1, - 0, - 0.746032, - 1, - 0, - 0, - 1, - 0.5, - 0, - 0 - ] - }, - { - ColorSpace: "RGB", - Name: "rainbow", - RGBPoints: [ - -1, - 0, - 0, - 1, - -0.5, - 0, - 1, - 1, - 0, - 0, - 1, - 0, - 0.5, - 1, - 1, - 0, - 1, - 1, - 0, - 0 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_rainbow_bright", - RGBPoints: [ - -1, - 0.32549, - 0.14902, - 0.960784, - -0.866221, - 0.297047, - 0.375586, - 0.963836, - -0.732441, - 0.180302, - 0.536818, - 0.964627, - -0.598662, - 0.1302, - 0.649207, - 0.929647, - -0.464883, - 0.0445143, - 0.749654, - 0.855998, - -0.331104, - 0.0271325, - 0.830713, - 0.721527, - -0.197324, - 0.259504, - 0.866145, - 0.543555, - -0.0635452, - 0.428364, - 0.890725, - 0.329819, - 0.0702341, - 0.568503, - 0.898508, - 0.187623, - 0.204013, - 0.738259, - 0.890317, - 0.0825461, - 0.337793, - 0.84546, - 0.86136, - 0.0147555, - 0.471572, - 0.912191, - 0.808018, - 0, - 0.605351, - 0.962848, - 0.710445, - 0, - 0.73913, - 0.999469, - 0.600258, - 0.0176284, - 0.87291, - 0.994156, - 0.445975, - 0.193912, - 1, - 0.980407, - 0.247105, - 0.262699 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_rainbow_dark", - RGBPoints: [ - -1, - 0, - 0, - 0.423499, - -0.866221, - 0, - 0.119346, - 0.529237, - -0.732441, - 0, - 0.238691, - 0.634976, - -0.598662, - 0, - 0.346852, - 0.68788, - -0.464883, - 0, - 0.45022, - 0.718141, - -0.331104, - 0, - 0.553554, - 0.664839, - -0.197324, - 0, - 0.651082, - 0.519303, - -0.0635452, - 0.115841, - 0.72479, - 0.352857, - 0.0702341, - 0.326771, - 0.781195, - 0.140187, - 0.204013, - 0.522765, - 0.798524, - 0.0284624, - 0.337793, - 0.703162, - 0.788685, - 0.00885756, - 0.471572, - 0.845118, - 0.751133, - 0, - 0.605351, - 0.955734, - 0.690825, - 0, - 0.73913, - 0.995402, - 0.567916, - 0.0618524, - 0.87291, - 0.987712, - 0.403398, - 0.164851, - 1, - 0.980407, - 0.247105, - 0.262699 - ] - }, - { - ColorSpace: "Lab", - Name: "nic_CubicL", - RGBPoints: [ - -1, - 0.479965, - 0.0118108, - 0.5307, - -0.87451, - 0.522213, - 0.0551282, - 0.706919, - -0.74902, - 0.50839, - 0.237278, - 0.867764, - -0.623529, - 0.451617, - 0.373834, - 0.987255, - -0.498039, - 0.39365, - 0.497255, - 0.97506, - -0.372549, - 0.328631, - 0.599639, - 0.891843, - -0.247059, - 0.250043, - 0.690286, - 0.778553, - -0.121569, - 0.249656, - 0.764905, - 0.645857, - 0.00392157, - 0.297954, - 0.821466, - 0.50449, - 0.129412, - 0.337509, - 0.872595, - 0.358447, - 0.254902, - 0.430011, - 0.913789, - 0.297079, - 0.380392, - 0.587191, - 0.931381, - 0.333353, - 0.505882, - 0.727937, - 0.93591, - 0.353742, - 0.631373, - 0.826403, - 0.921081, - 0.365066, - 0.756863, - 0.893201, - 0.846317, - 0.372662, - 0.882353, - 0.965347, - 0.73884, - 0.378506, - 1, - 0.983235, - 0.597451, - 0.366856 - ] - }, - { - ColorSpace: "Lab", - Name: "nic_CubicYF", - RGBPoints: [ - -1, - 0.5151, - 0.0482, - 0.6697, - -0.87451, - 0.520711, - 0.168955, - 0.800574, - -0.74902, - 0.493694, - 0.278596, - 0.911824, - -0.623529, - 0.440026, - 0.369475, - 0.984978, - -0.498039, - 0.398932, - 0.457593, - 0.987053, - -0.372549, - 0.350651, - 0.540644, - 0.929608, - -0.247059, - 0.298827, - 0.615625, - 0.857729, - -0.121569, - 0.239928, - 0.685061, - 0.769531, - 0.00392157, - 0.228832, - 0.739349, - 0.673287, - 0.129412, - 0.263297, - 0.78608, - 0.569988, - 0.254902, - 0.298107, - 0.828337, - 0.460214, - 0.380392, - 0.33092, - 0.864071, - 0.352674, - 0.505882, - 0.38306, - 0.898169, - 0.287309, - 0.631373, - 0.49023, - 0.917481, - 0.307961, - 0.756863, - 0.62372, - 0.926026, - 0.332309, - 0.882353, - 0.717458, - 0.92527, - 0.342476, - 1, - 0.8, - 0.9255, - 0.3529 - ] - }, - { - ColorSpace: "Lab", - Name: "gist_earth", - RGBPoints: [ - -1, - 0, - 0, - 0, - -0.87451, - 0.239216, - 0.027451, - 0.415686, - -0.74902, - 0.0901961, - 0.254902, - 0.556863, - -0.623529, - 0.0941176, - 0.352941, - 0.54902, - -0.498039, - 0.105882, - 0.435294, - 0.533333, - -0.372549, - 0.12549, - 0.52549, - 0.501961, - -0.247059, - 0.156863, - 0.596078, - 0.443137, - -0.121569, - 0.196078, - 0.65098, - 0.380392, - 0.00392157, - 0.282353, - 0.717647, - 0.301961, - 0.129412, - 0.466667, - 0.772549, - 0.27451, - 0.254902, - 0.678431, - 0.784314, - 0.309804, - 0.380392, - 0.901961, - 0.756863, - 0.376471, - 0.505882, - 0.992157, - 0.705882, - 0.521569, - 0.631373, - 1, - 0.721569, - 0.701961, - 0.756863, - 1, - 0.784314, - 0.784314, - 0.882353, - 1, - 0.866667, - 0.866667, - 1, - 1, - 1, - 1 - ] - }, - { - ColorSpace: "Lab", - Name: "2hot", - RGBPoints: [ - -1, - 0.0416667, - 0, - 0, - -0.873016, - 0.208333, - 0, - 0, - -0.746032, - 0.375, - 0, - 0, - -0.619048, - 0.541667, - 0, - 0, - -0.492063, - 0.708333, - 0, - 0, - -0.365079, - 0.854137, - 0, - 0, - -0.238095, - 0.937488, - 0.039062, - 0, - -0.111111, - 1, - 0.208333, - 0, - 0.015873, - 1, - 0.375, - 0, - 0.142857, - 1, - 0.541667, - 0, - 0.269841, - 1, - 0.708333, - 0, - 0.396825, - 1, - 0.858805, - 0.03125, - 0.52381, - 1, - 0.947392, - 0.15625, - 0.650794, - 1, - 1, - 0.3125, - 0.777778, - 1, - 1, - 0.5625, - 0.904762, - 1, - 1, - 0.8125, - 1, - 1, - 1, - 1 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_red2yellow_BW", - RGBPoints: [ - -1, - 7.54296e-7, - 0, - 0.0000109827, - -0.87451, - 0.18285, - 0.0264094, - 0, - -0.74902, - 0.3066, - 0, - 0, - -0.623529, - 0.422841, - 0, - 0, - -0.498039, - 0.522945, - 0, - 0, - -0.372549, - 0.605721, - 0, - 0, - -0.247059, - 0.672502, - 0.14168, - 0, - -0.121569, - 0.728167, - 0.244025, - 0, - 0.00392157, - 0.781215, - 0.333454, - 0, - 0.129412, - 0.825, - 0.423586, - 0, - 0.254902, - 0.855893, - 0.516793, - 0, - 0.380392, - 0.880491, - 0.608846, - 0, - 0.505882, - 0.910305, - 0.695505, - 0, - 0.631373, - 0.94109, - 0.779067, - 0.223528, - 0.756863, - 0.967873, - 0.858572, - 0.473521, - 0.882353, - 0.986815, - 0.933211, - 0.751583, - 1, - 1, - 1, - 0.999997 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_marine2gold_BW", - RGBPoints: [ - -1, - 1.11641e-7, - 0, - 0.00000162551, - -0.87451, - 0.0413146, - 0.0619808, - 0.209857, - -0.74902, - 0.0185557, - 0.101341, - 0.350684, - -0.623529, - 0.00486405, - 0.149847, - 0.461054, - -0.498039, - 0.0836345, - 0.210845, - 0.517906, - -0.372549, - 0.173222, - 0.276134, - 0.541793, - -0.247059, - 0.259857, - 0.343877, - 0.535869, - -0.121569, - 0.362299, - 0.408124, - 0.504293, - 0.00392157, - 0.468266, - 0.468276, - 0.468257, - 0.129412, - 0.582781, - 0.527545, - 0.374914, - 0.254902, - 0.691591, - 0.585251, - 0.274266, - 0.380392, - 0.784454, - 0.645091, - 0.247332, - 0.505882, - 0.862299, - 0.710383, - 0.27518, - 0.631373, - 0.920863, - 0.782923, - 0.351563, - 0.756863, - 0.955792, - 0.859699, - 0.533541, - 0.882353, - 0.976162, - 0.93433, - 0.780671, - 1, - 1, - 1, - 0.999983 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_blue2gold_BW", - RGBPoints: [ - -1, - 0, - 0, - 0, - -0.87451, - 0.0742735, - 0.0440331, - 0.230013, - -0.74902, - 0.125276, - 0.0258685, - 0.415826, - -0.623529, - 0.143879, - 0.0163031, - 0.591346, - -0.498039, - 0.212261, - 0.0627855, - 0.705239, - -0.372549, - 0.306048, - 0.141178, - 0.763636, - -0.247059, - 0.391537, - 0.232286, - 0.773263, - -0.121569, - 0.461734, - 0.336633, - 0.708321, - 0.00392157, - 0.54209, - 0.427581, - 0.590007, - 0.129412, - 0.61704, - 0.508623, - 0.460978, - 0.254902, - 0.702703, - 0.579586, - 0.309117, - 0.380392, - 0.790336, - 0.644811, - 0.170397, - 0.505882, - 0.870173, - 0.710733, - 0.117134, - 0.631373, - 0.93656, - 0.781991, - 0.157144, - 0.756863, - 0.965672, - 0.862068, - 0.409836, - 0.882353, - 0.985751, - 0.936296, - 0.714162, - 1, - 1, - 1, - 0.999999 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_sapphire2gold_BW", - RGBPoints: [ - -1, - 0.107704, - 0.107708, - 0.107694, - -0.87451, - 0.1851, - 0.112354, - 0.308554, - -0.74902, - 0.236782, - 0.114233, - 0.48788, - -0.623529, - 0.28296, - 0.126187, - 0.639464, - -0.498039, - 0.344787, - 0.171643, - 0.739713, - -0.372549, - 0.413325, - 0.242371, - 0.76913, - -0.247059, - 0.481863, - 0.3131, - 0.719841, - -0.121569, - 0.550402, - 0.383829, - 0.612222, - 0.00392157, - 0.61894, - 0.454558, - 0.51126, - 0.129412, - 0.687478, - 0.525287, - 0.39993, - 0.254902, - 0.756017, - 0.596016, - 0.289923, - 0.380392, - 0.824555, - 0.666745, - 0.255498, - 0.505882, - 0.892979, - 0.736822, - 0.27696, - 0.631373, - 0.938851, - 0.804966, - 0.351734, - 0.756863, - 0.966491, - 0.874853, - 0.53572, - 0.882353, - 0.982105, - 0.94153, - 0.782579, - 1, - 1, - 1, - 0.999986 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_red2purple_BW", - RGBPoints: [ - -1, - 0, - 0, - 0, - -0.87451, - 0.167793, - 0.0166271, - 0.0431278, - -0.74902, - 0.262608, - 0.0107595, - 0.0791181, - -0.623529, - 0.351902, - 0.0101858, - 0.100926, - -0.498039, - 0.441257, - 0.0160835, - 0.131919, - -0.372549, - 0.5221, - 0.0555972, - 0.195625, - -0.247059, - 0.593852, - 0.104294, - 0.310234, - -0.121569, - 0.654628, - 0.158115, - 0.448486, - 0.00392157, - 0.707443, - 0.220914, - 0.570253, - 0.129412, - 0.749504, - 0.293268, - 0.67897, - 0.254902, - 0.781587, - 0.370517, - 0.779269, - 0.380392, - 0.809951, - 0.451099, - 0.855831, - 0.505882, - 0.84424, - 0.531462, - 0.900451, - 0.631373, - 0.865174, - 0.620901, - 0.91606, - 0.756863, - 0.875041, - 0.714054, - 0.910284, - 0.882353, - 0.880764, - 0.80554, - 0.896276, - 1, - 0.887572, - 0.887591, - 0.887556 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_purple2pink_BW", - RGBPoints: [ - -1, - 0, - 0, - 0, - -0.87451, - 0.117562, - 0.0291202, - 0.175876, - -0.74902, - 0.178368, - 0.0458476, - 0.285454, - -0.623529, - 0.237731, - 0.0680173, - 0.387717, - -0.498039, - 0.300877, - 0.0956291, - 0.484802, - -0.372549, - 0.370929, - 0.136858, - 0.554985, - -0.247059, - 0.449033, - 0.189273, - 0.58863, - -0.121569, - 0.529971, - 0.245796, - 0.598587, - 0.00392157, - 0.609914, - 0.300643, - 0.610244, - 0.129412, - 0.697079, - 0.351286, - 0.616371, - 0.254902, - 0.785858, - 0.401991, - 0.617376, - 0.380392, - 0.862517, - 0.45745, - 0.64463, - 0.505882, - 0.91359, - 0.525462, - 0.705336, - 0.631373, - 0.932583, - 0.61064, - 0.767412, - 0.756863, - 0.922478, - 0.706966, - 0.817522, - 0.882353, - 0.901302, - 0.803071, - 0.856311, - 1, - 0.887571, - 0.887591, - 0.887549 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_pbj_lin", - RGBPoints: [ - -1, - 0, - 0, - 0, - -0.87451, - 0.091821, - 0.0611476, - 0.10617, - -0.74902, - 0.160311, - 0.0900022, - 0.192713, - -0.623529, - 0.22484, - 0.12126, - 0.272128, - -0.498039, - 0.291263, - 0.157469, - 0.340828, - -0.372549, - 0.360015, - 0.200388, - 0.388903, - -0.247059, - 0.437497, - 0.250058, - 0.387201, - -0.121569, - 0.512636, - 0.304969, - 0.355955, - 0.00392157, - 0.582603, - 0.360874, - 0.33488, - 0.129412, - 0.655126, - 0.416374, - 0.306351, - 0.254902, - 0.725889, - 0.473329, - 0.279051, - 0.380392, - 0.778125, - 0.537928, - 0.302697, - 0.505882, - 0.815894, - 0.606931, - 0.382431, - 0.631373, - 0.839159, - 0.679308, - 0.497608, - 0.756863, - 0.854748, - 0.751666, - 0.631792, - 0.882353, - 0.869483, - 0.822508, - 0.768592, - 1, - 0.887572, - 0.887589, - 0.887565 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_blue2green_muted", - RGBPoints: [ - -1, - 0.107704, - 0.107708, - 0.107695, - -0.87451, - 0.141522, - 0.13066, - 0.270741, - -0.74902, - 0.180123, - 0.146119, - 0.42308, - -0.623529, - 0.210161, - 0.169674, - 0.551795, - -0.498039, - 0.239701, - 0.212939, - 0.634969, - -0.372549, - 0.253916, - 0.282947, - 0.653641, - -0.247059, - 0.242791, - 0.366933, - 0.608521, - -0.121569, - 0.226302, - 0.446776, - 0.52693, - 0.00392157, - 0.236237, - 0.514689, - 0.458798, - 0.129412, - 0.274641, - 0.577589, - 0.376069, - 0.254902, - 0.349625, - 0.633993, - 0.288131, - 0.380392, - 0.4437, - 0.683677, - 0.260497, - 0.505882, - 0.536247, - 0.731214, - 0.285424, - 0.631373, - 0.628472, - 0.777128, - 0.349151, - 0.756863, - 0.718259, - 0.819287, - 0.496825, - 0.882353, - 0.804768, - 0.856164, - 0.703299, - 1, - 0.887571, - 0.887591, - 0.887548 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_blue2green_BW", - RGBPoints: [ - -1, - 3.63578e-7, - 0, - 0.00000529374, - -0.87451, - 0.0539915, - 0.0577948, - 0.212806, - -0.74902, - 0.0620393, - 0.0758942, - 0.388959, - -0.623529, - 0.0697499, - 0.102032, - 0.54177, - -0.498039, - 0.113295, - 0.156156, - 0.64334, - -0.372549, - 0.152047, - 0.243196, - 0.670283, - -0.247059, - 0.158096, - 0.344084, - 0.622864, - -0.121569, - 0.151142, - 0.43922, - 0.532767, - 0.00392157, - 0.17155, - 0.521588, - 0.457719, - 0.129412, - 0.225861, - 0.599141, - 0.363997, - 0.254902, - 0.32328, - 0.67007, - 0.259083, - 0.380392, - 0.442344, - 0.733697, - 0.223754, - 0.505882, - 0.558409, - 0.794941, - 0.257411, - 0.631373, - 0.673875, - 0.854344, - 0.340822, - 0.756863, - 0.787244, - 0.909326, - 0.524717, - 0.882353, - 0.896483, - 0.958063, - 0.775914, - 1, - 1, - 1, - 0.999982 - ] - }, - { - ColorSpace: "Lab", - Name: "GREEN-WHITE_LINEAR", - RGBPoints: [ - -1, - 0, - 0, - 0, - -0.87451, - 0, - 0.062745, - 0, - -0.74902, - 0, - 0.12549, - 0, - -0.623529, - 0, - 0.188235, - 0, - -0.498039, - 0, - 0.25098, - 0, - -0.372549, - 0, - 0.313725, - 0, - -0.247059, - 0, - 0.376471, - 0, - -0.121569, - 0.094118, - 0.439216, - 0, - 0.00392157, - 0.196078, - 0.501961, - 0, - 0.129412, - 0.294118, - 0.564706, - 0, - 0.254902, - 0.396078, - 0.627451, - 0, - 0.380392, - 0.498039, - 0.690196, - 0, - 0.505882, - 0.6, - 0.752941, - 0.145098, - 0.631373, - 0.701961, - 0.815686, - 0.364706, - 0.756863, - 0.8, - 0.878431, - 0.580392, - 0.882353, - 0.901961, - 0.941176, - 0.796078, - 1, - 1, - 1, - 1 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_green2yellow_BW", - RGBPoints: [ - -1, - 0, - 0, - 0, - -0.87451, - 0, - 0.105542, - 0.0603919, - -0.74902, - 0, - 0.159454, - 0.104148, - -0.623529, - 0, - 0.219502, - 0.15542, - -0.498039, - 0, - 0.282276, - 0.203811, - -0.372549, - 0, - 0.346331, - 0.235652, - -0.247059, - 0, - 0.411765, - 0.235428, - -0.121569, - 0, - 0.477177, - 0.217977, - 0.00392157, - 0.0593644, - 0.541635, - 0.21361, - 0.129412, - 0.233081, - 0.604722, - 0.210591, - 0.254902, - 0.369803, - 0.664942, - 0.226536, - 0.380392, - 0.498446, - 0.722367, - 0.288237, - 0.505882, - 0.601929, - 0.782244, - 0.380815, - 0.631373, - 0.703207, - 0.840497, - 0.512134, - 0.756863, - 0.803186, - 0.896433, - 0.674462, - 0.882353, - 0.903834, - 0.950266, - 0.846715, - 1, - 1, - 1, - 0.999981 - ] - }, - { - ColorSpace: "Lab", - Name: "blue2cyan", - RGBPoints: [ - -1, - 0, - 0, - 0, - -0.87451, - 0, - 0.152941, - 0.364706, - -0.74902, - 0, - 0.254902, - 0.470588, - -0.623529, - 0, - 0.34902, - 0.572549, - -0.498039, - 0, - 0.443137, - 0.670588, - -0.372549, - 0, - 0.537255, - 0.772549, - -0.247059, - 0, - 0.627451, - 0.870588, - -0.121569, - 0, - 0.717647, - 0.964706, - 0.00392157, - 0.0784314, - 0.772549, - 1, - 0.129412, - 0.207843, - 0.858824, - 1, - 0.254902, - 0.32549, - 0.941176, - 1, - 0.380392, - 0.45098, - 1, - 1, - 0.505882, - 0.560784, - 1, - 1, - 0.631373, - 0.662745, - 1, - 1, - 0.756863, - 0.760784, - 1, - 1, - 0.882353, - 0.870588, - 1, - 1, - 1, - 1, - 1, - 1 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_blue2cyan_BW", - RGBPoints: [ - -1, - 4.05298e-7, - 0, - 0.0000059012, - -0.87451, - 0.0207526, - 0.0740933, - 0.18093, - -0.74902, - 0, - 0.121033, - 0.30343, - -0.623529, - 0, - 0.166892, - 0.416095, - -0.498039, - 0, - 0.216768, - 0.524796, - -0.372549, - 0.0164769, - 0.275471, - 0.608585, - -0.247059, - 0.0544527, - 0.344824, - 0.659267, - -0.121569, - 0.0880643, - 0.419118, - 0.688675, - 0.00392157, - 0.127938, - 0.492556, - 0.720256, - 0.129412, - 0.149476, - 0.566946, - 0.756918, - 0.254902, - 0.188961, - 0.641333, - 0.792122, - 0.380392, - 0.245482, - 0.715336, - 0.827609, - 0.505882, - 0.329216, - 0.786235, - 0.874761, - 0.631373, - 0.453558, - 0.852803, - 0.918466, - 0.756863, - 0.626281, - 0.910493, - 0.954, - 0.882353, - 0.82257, - 0.958709, - 0.980146, - 1, - 1, - 1, - 0.999989 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_blue_BW", - RGBPoints: [ - -1, - 0, - 0, - 0, - -0.87451, - 0.0425591, - 0.0763529, - 0.150682, - -0.74902, - 0.0569472, - 0.119154, - 0.275403, - -0.623529, - 0.0635978, - 0.164772, - 0.395427, - -0.498039, - 0.0774342, - 0.213851, - 0.510014, - -0.372549, - 0.106815, - 0.267034, - 0.615102, - -0.247059, - 0.122093, - 0.324649, - 0.720068, - -0.121569, - 0.160851, - 0.387068, - 0.806956, - 0.00392157, - 0.213754, - 0.453516, - 0.878012, - 0.129412, - 0.26722, - 0.524656, - 0.932436, - 0.254902, - 0.326844, - 0.599279, - 0.968038, - 0.380392, - 0.403403, - 0.674712, - 0.984784, - 0.505882, - 0.499703, - 0.745519, - 1, - 0.631373, - 0.615055, - 0.813983, - 1, - 0.756863, - 0.74405, - 0.879228, - 1, - 0.882353, - 0.877909, - 0.941913, - 1, - 1, - 1, - 1, - 0.999996 - ] - }, - { - ColorSpace: "Lab", - Name: "BLUE-WHITE", - RGBPoints: [ - -1, - 0, - 0, - 0, - -0.87451, - 0, - 0, - 0.082353, - -0.74902, - 0, - 0, - 0.168627, - -0.623529, - 0, - 0, - 0.254902, - -0.498039, - 0, - 0, - 0.337255, - -0.372549, - 0, - 0, - 0.423529, - -0.247059, - 0, - 0, - 0.509804, - -0.121569, - 0, - 0.101961, - 0.592157, - 0.00392157, - 0, - 0.203922, - 0.678431, - 0.129412, - 0, - 0.301961, - 0.764706, - 0.254902, - 0, - 0.403922, - 0.85098, - 0.380392, - 0, - 0.505882, - 0.933333, - 0.505882, - 0, - 0.603922, - 1, - 0.631373, - 0.254902, - 0.705882, - 1, - 0.756863, - 0.509804, - 0.807843, - 1, - 0.882353, - 0.764706, - 0.905882, - 1, - 1, - 1, - 1, - 1 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_purple_BW", - RGBPoints: [ - -1, - 4.264e-8, - 0, - 6.20844e-7, - -0.87451, - 0.100579, - 0.0593111, - 0.145666, - -0.74902, - 0.167794, - 0.0889224, - 0.254953, - -0.623529, - 0.231446, - 0.123339, - 0.360511, - -0.498039, - 0.296699, - 0.163027, - 0.461278, - -0.372549, - 0.363211, - 0.209286, - 0.55306, - -0.247059, - 0.431136, - 0.260776, - 0.637195, - -0.121569, - 0.498202, - 0.320012, - 0.705799, - 0.00392157, - 0.567456, - 0.380459, - 0.778091, - 0.129412, - 0.629381, - 0.445284, - 0.8448, - 0.254902, - 0.688373, - 0.517374, - 0.895694, - 0.380392, - 0.74891, - 0.590906, - 0.93976, - 0.505882, - 0.805017, - 0.667956, - 0.977626, - 0.631373, - 0.850914, - 0.752618, - 0.992396, - 0.756863, - 0.89724, - 0.838454, - 0.994093, - 0.882353, - 0.948461, - 0.922603, - 0.994449, - 1, - 1, - 1, - 0.999967 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_magenta_BW", - RGBPoints: [ - -1, - 0, - 0, - 0.0000254023, - -0.87451, - 0.128696, - 0.0456782, - 0.11635, - -0.74902, - 0.228133, - 0.0476299, - 0.201452, - -0.623529, - 0.327273, - 0.0374065, - 0.282107, - -0.498039, - 0.420953, - 0.0408166, - 0.35709, - -0.372549, - 0.511562, - 0.0642203, - 0.430511, - -0.247059, - 0.599552, - 0.102686, - 0.504257, - -0.121569, - 0.684646, - 0.150536, - 0.579429, - 0.00392157, - 0.765817, - 0.205978, - 0.656062, - 0.129412, - 0.839176, - 0.27229, - 0.731807, - 0.254902, - 0.89536, - 0.357594, - 0.797309, - 0.380392, - 0.930238, - 0.457825, - 0.846984, - 0.505882, - 0.945921, - 0.564536, - 0.880571, - 0.631373, - 0.948995, - 0.670753, - 0.902279, - 0.756863, - 0.947124, - 0.772819, - 0.918171, - 0.882353, - 0.947265, - 0.869424, - 0.934352, - 1, - 0.954719, - 0.95475, - 0.954726 - ] - }, - { - ColorSpace: "Lab", - Name: "magenta", - RGBPoints: [ - -1, - 0, - 0, - 0, - -0.87451, - 0.364706, - 0, - 0.152941, - -0.74902, - 0.470588, - 0, - 0.254902, - -0.623529, - 0.572549, - 0, - 0.34902, - -0.498039, - 0.670588, - 0, - 0.443137, - -0.372549, - 0.772549, - 0, - 0.537255, - -0.247059, - 0.870588, - 0, - 0.627451, - -0.121569, - 0.964706, - 0, - 0.717647, - 0.00392157, - 1, - 0.0784314, - 0.772549, - 0.129412, - 1, - 0.207843, - 0.858824, - 0.254902, - 1, - 0.32549, - 0.941176, - 0.380392, - 1, - 0.45098, - 1, - 0.505882, - 1, - 0.560784, - 1, - 0.631373, - 1, - 0.662745, - 1, - 0.756863, - 1, - 0.760784, - 1, - 0.882353, - 1, - 0.870588, - 1, - 1, - 1, - 1, - 1 - ] - }, - { - ColorSpace: "Lab", - Name: "RED-PURPLE", - RGBPoints: [ - -1, - 0, - 0, - 0, - -0.87451, - 0.188235, - 0, - 0.007843, - -0.74902, - 0.345098, - 0, - 0.035294, - -0.623529, - 0.439216, - 0, - 0.098039, - -0.498039, - 0.533333, - 0, - 0.152941, - -0.372549, - 0.627451, - 0.015686, - 0.211765, - -0.247059, - 0.721569, - 0.031373, - 0.266667, - -0.121569, - 0.8, - 0.047059, - 0.329412, - 0.00392157, - 0.862745, - 0.047059, - 0.403922, - 0.129412, - 0.941176, - 0.062745, - 0.466667, - 0.254902, - 0.988235, - 0.078431, - 0.54902, - 0.380392, - 0.988235, - 0.141176, - 0.643137, - 0.505882, - 0.988235, - 0.25098, - 0.729412, - 0.631373, - 0.988235, - 0.376471, - 0.811765, - 0.756863, - 0.988235, - 0.54902, - 0.886275, - 0.882353, - 0.988235, - 0.752941, - 0.952941, - 1, - 0.996078, - 0.996078, - 0.996078 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_red_BW", - RGBPoints: [ - -1, - 0, - 0, - 0, - -0.87451, - 0.147204, - 0.0480135, - 0.0401815, - -0.74902, - 0.253411, - 0.0617478, - 0.0301333, - -0.623529, - 0.356059, - 0.0746331, - 0.0446897, - -0.498039, - 0.457731, - 0.0934935, - 0.0636931, - -0.372549, - 0.557199, - 0.122714, - 0.0860013, - -0.247059, - 0.665179, - 0.144238, - 0.105585, - -0.121569, - 0.763833, - 0.187056, - 0.138326, - 0.00392157, - 0.847035, - 0.254558, - 0.189407, - 0.129412, - 0.905663, - 0.345937, - 0.258215, - 0.254902, - 0.941431, - 0.447111, - 0.346277, - 0.380392, - 0.962608, - 0.546927, - 0.457571, - 0.505882, - 0.987833, - 0.637276, - 0.569944, - 0.631373, - 0.994202, - 0.732176, - 0.687958, - 0.756863, - 0.993304, - 0.826268, - 0.800567, - 0.882353, - 0.994413, - 0.917205, - 0.906393, - 1, - 1, - 1, - 0.999979 - ] - }, - { - ColorSpace: "Lab", - Name: "RED_TEMPERATURE", - RGBPoints: [ - -1, - 0, - 0, - 0, - -0.87451, - 0.090196, - 0, - 0, - -0.74902, - 0.180392, - 0, - 0, - -0.623529, - 0.270588, - 0, - 0, - -0.498039, - 0.360784, - 0, - 0, - -0.372549, - 0.45098, - 0, - 0, - -0.247059, - 0.545098, - 0, - 0, - -0.121569, - 0.635294, - 0, - 0, - 0.00392157, - 0.72549, - 0.058824, - 0, - 0.129412, - 0.815686, - 0.176471, - 0, - 0.254902, - 0.905882, - 0.294118, - 0, - 0.380392, - 1, - 0.411765, - 0, - 0.505882, - 1, - 0.533333, - 0.027451, - 0.631373, - 1, - 0.65098, - 0.27451, - 0.756863, - 1, - 0.768627, - 0.521569, - 0.882353, - 1, - 0.886275, - 0.768627, - 1, - 1, - 1, - 1 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_orange_BW", - RGBPoints: [ - -1, - 0, - 0, - 0.0000253806, - -0.87451, - 0.135871, - 0.0593824, - 0, - -0.74902, - 0.224328, - 0.0907216, - 0, - -0.623529, - 0.318083, - 0.119647, - 0, - -0.498039, - 0.414443, - 0.150246, - 0, - -0.372549, - 0.511077, - 0.184884, - 0, - -0.247059, - 0.605501, - 0.226033, - 0, - -0.121569, - 0.695274, - 0.275491, - 0, - 0.00392157, - 0.777826, - 0.334445, - 0, - 0.129412, - 0.851498, - 0.402441, - 0, - 0.254902, - 0.915899, - 0.47759, - 0.000602975, - 0.380392, - 0.971984, - 0.557882, - 0.0361443, - 0.505882, - 1, - 0.641287, - 0.135967, - 0.631373, - 1, - 0.725198, - 0.27997, - 0.756863, - 1, - 0.808205, - 0.438135, - 0.882353, - 1, - 0.89306, - 0.587036, - 1, - 1, - 0.977928, - 0.721599 - ] - }, - { - ColorSpace: "Lab", - Name: "heated_object", - RGBPoints: [ - -1, - 0, - 0, - 0, - -0.87451, - 0.34902, - 0.0862745, - 0, - -0.74902, - 0.45098, - 0.172549, - 0, - -0.623529, - 0.52549, - 0.231373, - 0, - -0.498039, - 0.580392, - 0.278431, - 0, - -0.372549, - 0.623529, - 0.313725, - 0, - -0.247059, - 0.670588, - 0.352941, - 0, - -0.121569, - 0.717647, - 0.392157, - 0, - 0.00392157, - 0.772549, - 0.439216, - 0, - 0.129412, - 0.839216, - 0.494118, - 0, - 0.254902, - 0.901961, - 0.541176, - 0, - 0.380392, - 0.968627, - 0.6, - 0, - 0.505882, - 1, - 0.658824, - 0, - 0.631373, - 1, - 0.721569, - 0, - 0.756863, - 1, - 0.827451, - 0.298039, - 0.882353, - 1, - 0.976471, - 0.72549, - 1, - 1, - 1, - 1 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_gold_BW", - RGBPoints: [ - -1, - 0, - 0, - 0.0000190933, - -0.87451, - 0.128363, - 0.0636265, - 0, - -0.74902, - 0.193795, - 0.111057, - 0, - -0.623529, - 0.25976, - 0.15987, - 0, - -0.498039, - 0.328546, - 0.210589, - 0, - -0.372549, - 0.399726, - 0.26332, - 0, - -0.247059, - 0.472969, - 0.318261, - 0, - -0.121569, - 0.546245, - 0.375827, - 0, - 0.00392157, - 0.61745, - 0.436719, - 0, - 0.129412, - 0.685545, - 0.501113, - 0, - 0.254902, - 0.749578, - 0.568799, - 0, - 0.380392, - 0.80962, - 0.6394, - 0, - 0.505882, - 0.865572, - 0.712699, - 0.10257, - 0.631373, - 0.917709, - 0.787569, - 0.233665, - 0.756863, - 0.966914, - 0.863138, - 0.369608, - 0.882353, - 1, - 0.939405, - 0.496104, - 1, - 0.999225, - 1, - 0.612275 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_brown_BW", - RGBPoints: [ - -1, - 3.3216e-7, - 0, - 0.00000483629, - -0.87451, - 0.14693, - 0.0518172, - 0, - -0.74902, - 0.225806, - 0.0814996, - 0, - -0.623529, - 0.301681, - 0.111452, - 0, - -0.498039, - 0.370487, - 0.150664, - 0, - -0.372549, - 0.43108, - 0.199477, - 0, - -0.247059, - 0.4849, - 0.255107, - 0, - -0.121569, - 0.536798, - 0.313486, - 0, - 0.00392157, - 0.59286, - 0.371167, - 0, - 0.129412, - 0.653119, - 0.428135, - 0, - 0.254902, - 0.714589, - 0.485917, - 0.0379541, - 0.380392, - 0.774667, - 0.54565, - 0.116634, - 0.505882, - 0.831222, - 0.608047, - 0.183895, - 0.631373, - 0.880305, - 0.674199, - 0.260298, - 0.756863, - 0.922314, - 0.742472, - 0.367086, - 0.882353, - 0.959408, - 0.811222, - 0.497258, - 1, - 0.993548, - 0.875183, - 0.622093 - ] - }, - { - ColorSpace: "Lab", - Name: "copper_Matlab", - RGBPoints: [ - -1, - 0, - 0, - 0, - -0.87451, - 0.0784314, - 0.0501961, - 0.0313725, - -0.74902, - 0.156863, - 0.100392, - 0.0627451, - -0.623529, - 0.235294, - 0.150588, - 0.0941176, - -0.498039, - 0.313725, - 0.200784, - 0.12549, - -0.372549, - 0.392157, - 0.25098, - 0.156863, - -0.247059, - 0.470588, - 0.301176, - 0.188235, - -0.121569, - 0.54902, - 0.351373, - 0.219608, - 0.00392157, - 0.627451, - 0.401569, - 0.25098, - 0.129412, - 0.705882, - 0.451765, - 0.282353, - 0.254902, - 0.784314, - 0.501961, - 0.313725, - 0.380392, - 0.862745, - 0.552157, - 0.345098, - 0.505882, - 0.941176, - 0.602353, - 0.376471, - 0.631373, - 1, - 0.652549, - 0.407843, - 0.756863, - 1, - 0.702745, - 0.439216, - 0.882353, - 1, - 0.752941, - 0.470588, - 1, - 1, - 0.8, - 0.5 - ] - }, - { - ColorSpace: "Lab", - Name: "pink_Matlab", - RGBPoints: [ - -1, - 0, - 0, - 0, - -0.87451, - 0.312416, - 0.204524, - 0.204524, - -0.74902, - 0.441822, - 0.289241, - 0.289241, - -0.623529, - 0.54112, - 0.354246, - 0.354246, - -0.498039, - 0.624831, - 0.409048, - 0.409048, - -0.372549, - 0.698582, - 0.45733, - 0.45733, - -0.247059, - 0.764404, - 0.502282, - 0.500979, - -0.121569, - 0.791292, - 0.591516, - 0.54112, - 0.00392157, - 0.817297, - 0.66895, - 0.578481, - 0.129412, - 0.842499, - 0.738308, - 0.613572, - 0.254902, - 0.866968, - 0.801687, - 0.646762, - 0.380392, - 0.890766, - 0.86041, - 0.678329, - 0.505882, - 0.913944, - 0.913944, - 0.711254, - 0.631373, - 0.936549, - 0.936549, - 0.79459, - 0.756863, - 0.958621, - 0.958621, - 0.869979, - 0.882353, - 0.980196, - 0.980196, - 0.939336, - 1, - 1, - 1, - 1 - ] - }, - { - ColorSpace: "Lab", - Name: "bone_Matlab", - RGBPoints: [ - -1, - 0, - 0, - 0, - -0.87451, - 0.054902, - 0.054902, - 0.075817, - -0.74902, - 0.109804, - 0.109804, - 0.151634, - -0.623529, - 0.164706, - 0.164706, - 0.227451, - -0.498039, - 0.219608, - 0.219608, - 0.303268, - -0.372549, - 0.27451, - 0.27451, - 0.379085, - -0.247059, - 0.329412, - 0.329902, - 0.454412, - -0.121569, - 0.384314, - 0.405719, - 0.509314, - 0.00392157, - 0.439216, - 0.481536, - 0.564216, - 0.129412, - 0.494118, - 0.557353, - 0.619118, - 0.254902, - 0.54902, - 0.63317, - 0.67402, - 0.380392, - 0.603922, - 0.708987, - 0.728922, - 0.505882, - 0.660294, - 0.783824, - 0.783824, - 0.631373, - 0.746569, - 0.838725, - 0.838725, - 0.756863, - 0.832843, - 0.893627, - 0.893627, - 0.882353, - 0.919118, - 0.948529, - 0.948529, - 1, - 1, - 1, - 1 - ] - }, - { - ColorSpace: "Lab", - Name: "gray_Matlab", - RGBPoints: [ - -1, - 0, - 0, - 0, - -0.87451, - 0.0627451, - 0.0627451, - 0.0627451, - -0.74902, - 0.12549, - 0.12549, - 0.12549, - -0.623529, - 0.188235, - 0.188235, - 0.188235, - -0.498039, - 0.25098, - 0.25098, - 0.25098, - -0.372549, - 0.313725, - 0.313725, - 0.313725, - -0.247059, - 0.376471, - 0.376471, - 0.376471, - -0.121569, - 0.439216, - 0.439216, - 0.439216, - 0.00392157, - 0.501961, - 0.501961, - 0.501961, - 0.129412, - 0.564706, - 0.564706, - 0.564706, - 0.254902, - 0.627451, - 0.627451, - 0.627451, - 0.380392, - 0.690196, - 0.690196, - 0.690196, - 0.505882, - 0.752941, - 0.752941, - 0.752941, - 0.631373, - 0.815686, - 0.815686, - 0.815686, - 0.756863, - 0.878431, - 0.878431, - 0.878431, - 0.882353, - 0.941176, - 0.941176, - 0.941176, - 1, - 1, - 1, - 1 - ] - }, - { - ColorSpace: "Lab", - Name: "Purples", - RGBPoints: [ - -1, - 0.247059, - 0, - 0.490196, - -0.87451, - 0.288397, - 0.07677, - 0.525629, - -0.74902, - 0.32975, - 0.153587, - 0.561092, - -0.623529, - 0.373057, - 0.236263, - 0.600461, - -0.498039, - 0.416363, - 0.319, - 0.639923, - -0.372549, - 0.459669, - 0.405613, - 0.685198, - -0.247059, - 0.503345, - 0.491534, - 0.730058, - -0.121569, - 0.562399, - 0.54862, - 0.757616, - 0.00392157, - 0.621453, - 0.606075, - 0.785544, - 0.129412, - 0.680508, - 0.674971, - 0.824914, - 0.254902, - 0.739562, - 0.743406, - 0.863899, - 0.380392, - 0.798616, - 0.800492, - 0.893426, - 0.505882, - 0.85684, - 0.856655, - 0.922491, - 0.631373, - 0.898178, - 0.894056, - 0.942176, - 0.756863, - 0.938654, - 0.930919, - 0.961646, - 0.882353, - 0.964245, - 0.958478, - 0.977393, - 1, - 0.988235, - 0.984314, - 0.992157 - ] - }, - { - ColorSpace: "Lab", - Name: "Blues", - RGBPoints: [ - -1, - 0.031373, - 0.188235, - 0.419608, - -0.87451, - 0.031373, - 0.253195, - 0.516063, - -0.74902, - 0.031757, - 0.318139, - 0.612149, - -0.623529, - 0.080969, - 0.38113, - 0.661361, - -0.498039, - 0.130427, - 0.444152, - 0.710327, - -0.372549, - 0.195386, - 0.509112, - 0.743791, - -0.247059, - 0.260715, - 0.573841, - 0.777209, - -0.121569, - 0.341423, - 0.628958, - 0.808704, - 0.00392157, - 0.422745, - 0.684075, - 0.839892, - 0.129412, - 0.523137, - 0.739193, - 0.861546, - 0.254902, - 0.622684, - 0.793464, - 0.883429, - 0.380392, - 0.701423, - 0.826928, - 0.910988, - 0.505882, - 0.778685, - 0.8603, - 0.937993, - 0.631373, - 0.825928, - 0.891795, - 0.953741, - 0.756863, - 0.87328, - 0.923291, - 0.969489, - 0.882353, - 0.922491, - 0.954787, - 0.985236, - 1, - 0.968627, - 0.984314, - 1 - ] - }, - { - ColorSpace: "Lab", - Name: "Greens", - RGBPoints: [ - -1, - 0, - 0.266667, - 0.105882, - -0.87451, - 0, - 0.347374, - 0.139346, - -0.74902, - 0.000538, - 0.427912, - 0.172933, - -0.623529, - 0.069435, - 0.486967, - 0.222145, - -0.498039, - 0.138178, - 0.546082, - 0.271326, - -0.372549, - 0.197232, - 0.609073, - 0.31857, - -0.247059, - 0.257255, - 0.671742, - 0.365859, - -0.121569, - 0.357647, - 0.720953, - 0.415071, - 0.00392157, - 0.45767, - 0.769919, - 0.465021, - 0.129412, - 0.546251, - 0.811257, - 0.537855, - 0.254902, - 0.634295, - 0.852211, - 0.610688, - 0.380392, - 0.709097, - 0.883706, - 0.683522, - 0.505882, - 0.78316, - 0.914833, - 0.755894, - 0.631373, - 0.842215, - 0.938454, - 0.818885, - 0.756863, - 0.899977, - 0.961538, - 0.880692, - 0.882353, - 0.935409, - 0.975317, - 0.92203, - 1, - 0.968627, - 0.988235, - 0.960784 - ] - }, - { - ColorSpace: "Lab", - Name: "PuBu", - RGBPoints: [ - -1, - 0.301961, - 0, - 0.294118, - -0.87451, - 0.404321, - 0.029527, - 0.390573, - -0.74902, - 0.50599, - 0.059592, - 0.486782, - -0.623529, - 0.519769, - 0.158016, - 0.551742, - -0.498039, - 0.533456, - 0.256194, - 0.616301, - -0.372549, - 0.54133, - 0.33887, - 0.655671, - -0.247059, - 0.54902, - 0.421592, - 0.695087, - -0.121569, - 0.54902, - 0.506236, - 0.736424, - 0.00392157, - 0.550127, - 0.590573, - 0.777701, - 0.129412, - 0.585559, - 0.665375, - 0.81707, - 0.254902, - 0.622145, - 0.739023, - 0.855825, - 0.380392, - 0.687105, - 0.784298, - 0.879446, - 0.505882, - 0.752065, - 0.829758, - 0.903253, - 0.631373, - 0.817024, - 0.87897, - 0.930811, - 0.756863, - 0.880907, - 0.927213, - 0.957832, - 0.882353, - 0.926182, - 0.958708, - 0.975548, - 1, - 0.968627, - 0.988235, - 0.992157 - ] - }, - { - ColorSpace: "Lab", - Name: "BuPu", - RGBPoints: [ - -1, - 0.007843, - 0.219608, - 0.345098, - -0.87451, - 0.01178, - 0.286536, - 0.449427, - -0.74902, - 0.015702, - 0.35328, - 0.553479, - -0.623529, - 0.01767, - 0.396586, - 0.622376, - -0.498039, - 0.021115, - 0.4402, - 0.690688, - -0.372549, - 0.11757, - 0.503191, - 0.722184, - -0.247059, - 0.214625, - 0.565859, - 0.753633, - -0.121569, - 0.336671, - 0.615071, - 0.78316, - 0.00392157, - 0.457978, - 0.663975, - 0.812503, - 0.129412, - 0.556401, - 0.703345, - 0.836125, - 0.254902, - 0.65421, - 0.742714, - 0.859669, - 0.380392, - 0.736886, - 0.782084, - 0.881323, - 0.505882, - 0.81827, - 0.821638, - 0.903068, - 0.631373, - 0.873387, - 0.864944, - 0.92669, - 0.756863, - 0.927536, - 0.907605, - 0.949988, - 0.882353, - 0.964937, - 0.9391, - 0.967705, - 1, - 1, - 0.968627, - 0.984314 - ] - }, - { - ColorSpace: "Lab", - Name: "BuGn", - RGBPoints: [ - -1, - 0.031373, - 0.25098, - 0.505882, - -0.87451, - 0.031373, - 0.329719, - 0.590527, - -0.74902, - 0.031911, - 0.408397, - 0.674787, - -0.623529, - 0.100807, - 0.479262, - 0.710219, - -0.498039, - 0.169704, - 0.550219, - 0.745744, - -0.372549, - 0.238601, - 0.62699, - 0.787082, - -0.247059, - 0.307958, - 0.703114, - 0.826759, - -0.121569, - 0.39654, - 0.752326, - 0.797232, - 0.00392157, - 0.485121, - 0.801046, - 0.767705, - 0.129412, - 0.573702, - 0.83451, - 0.738178, - 0.254902, - 0.661592, - 0.867743, - 0.711034, - 0.380392, - 0.732457, - 0.895302, - 0.74253, - 0.505882, - 0.801845, - 0.922307, - 0.774579, - 0.631373, - 0.841215, - 0.938055, - 0.817885, - 0.756863, - 0.880907, - 0.95391, - 0.861084, - 0.882353, - 0.926182, - 0.971626, - 0.902422, - 1, - 0.968627, - 0.988235, - 0.941176 - ] - }, - { - ColorSpace: "Lab", - Name: "GnBu", - RGBPoints: [ - -1, - 0, - 0.266667, - 0.105882, - -0.87451, - 0, - 0.347374, - 0.139346, - -0.74902, - 0.000538, - 0.427912, - 0.172933, - -0.623529, - 0.069435, - 0.486967, - 0.222145, - -0.498039, - 0.138178, - 0.546175, - 0.272095, - -0.372549, - 0.197232, - 0.615071, - 0.368551, - -0.247059, - 0.256609, - 0.683276, - 0.464867, - -0.121569, - 0.329443, - 0.722645, - 0.555417, - 0.00392157, - 0.403137, - 0.762138, - 0.645413, - 0.129412, - 0.503529, - 0.805444, - 0.718247, - 0.254902, - 0.603922, - 0.848597, - 0.790465, - 0.380392, - 0.704314, - 0.887966, - 0.847551, - 0.505882, - 0.802307, - 0.926321, - 0.903714, - 0.631373, - 0.851519, - 0.944037, - 0.941115, - 0.756863, - 0.899977, - 0.961538, - 0.976901, - 0.882353, - 0.935409, - 0.975317, - 0.984775, - 1, - 0.968627, - 0.988235, - 0.992157 - ] - }, - { - ColorSpace: "Lab", - Name: "GnBuPu", - RGBPoints: [ - -1, - 0.003922, - 0.27451, - 0.211765, - -0.87451, - 0.003922, - 0.349312, - 0.280661, - -0.74902, - 0.003937, - 0.423852, - 0.349773, - -0.623529, - 0.005905, - 0.46519, - 0.446228, - -0.498039, - 0.009443, - 0.506344, - 0.542837, - -0.372549, - 0.111803, - 0.535871, - 0.649135, - -0.247059, - 0.214025, - 0.565859, - 0.753633, - -0.121569, - 0.310481, - 0.615071, - 0.78316, - 0.00392157, - 0.407797, - 0.663975, - 0.812503, - 0.129412, - 0.531811, - 0.703345, - 0.836125, - 0.254902, - 0.65421, - 0.742714, - 0.859669, - 0.380392, - 0.736886, - 0.782084, - 0.881323, - 0.505882, - 0.81827, - 0.821176, - 0.902884, - 0.631373, - 0.873387, - 0.854641, - 0.922568, - 0.756863, - 0.927536, - 0.888535, - 0.942361, - 0.882353, - 0.964937, - 0.929873, - 0.964014, - 1, - 1, - 0.968627, - 0.984314 - ] - }, - { - ColorSpace: "Lab", - Name: "BuGnYl", - RGBPoints: [ - -1, - 0.031373, - 0.113725, - 0.345098, - -0.87451, - 0.088458, - 0.159, - 0.463206, - -0.74902, - 0.145052, - 0.204567, - 0.5807, - -0.623529, - 0.139146, - 0.287243, - 0.620069, - -0.498039, - 0.13318, - 0.370196, - 0.659562, - -0.372549, - 0.123337, - 0.470588, - 0.706805, - -0.247059, - 0.115386, - 0.570335, - 0.753126, - -0.121569, - 0.186251, - 0.643168, - 0.761, - 0.00392157, - 0.258716, - 0.71514, - 0.768074, - 0.129412, - 0.380761, - 0.760415, - 0.750358, - 0.254902, - 0.503576, - 0.806075, - 0.732795, - 0.380392, - 0.645306, - 0.861192, - 0.719016, - 0.505882, - 0.783899, - 0.91511, - 0.705606, - 0.631373, - 0.858701, - 0.944637, - 0.6997, - 0.756863, - 0.931349, - 0.973303, - 0.698424, - 0.882353, - 0.966782, - 0.987082, - 0.777163, - 1, - 1, - 1, - 0.85098 - ] - }, - { - ColorSpace: "Lab", - Name: "PuRd", - RGBPoints: [ - -1, - 0.286275, - 0, - 0.415686, - -0.87451, - 0.38273, - 0.001968, - 0.441276, - -0.74902, - 0.479231, - 0.003922, - 0.466774, - -0.623529, - 0.581592, - 0.003922, - 0.480554, - -0.498039, - 0.683799, - 0.00549, - 0.494887, - -0.372549, - 0.776317, - 0.105882, - 0.544098, - -0.247059, - 0.867866, - 0.206321, - 0.592618, - -0.121569, - 0.919047, - 0.308681, - 0.612303, - 0.00392157, - 0.968812, - 0.411226, - 0.632603, - 0.129412, - 0.974717, - 0.519493, - 0.671972, - 0.254902, - 0.980546, - 0.626451, - 0.71065, - 0.380392, - 0.984483, - 0.701253, - 0.732303, - 0.505882, - 0.988328, - 0.77504, - 0.755617, - 0.631373, - 0.990296, - 0.828189, - 0.812703, - 0.756863, - 0.992372, - 0.880907, - 0.869035, - 0.882353, - 0.996309, - 0.926182, - 0.912341, - 1, - 1, - 0.968627, - 0.952941 - ] - }, - { - ColorSpace: "Lab", - Name: "RdPu", - RGBPoints: [ - -1, - 0.403922, - 0, - 0.121569, - -0.87451, - 0.500377, - 0, - 0.192434, - -0.74902, - 0.596909, - 0.000277, - 0.263037, - -0.623529, - 0.703206, - 0.035709, - 0.300438, - -0.498039, - 0.808612, - 0.071296, - 0.338854, - -0.372549, - 0.857824, - 0.116571, - 0.441215, - -0.247059, - 0.905513, - 0.163552, - 0.54293, - -0.121569, - 0.889765, - 0.281661, - 0.617732, - 0.00392157, - 0.873156, - 0.39897, - 0.691611, - 0.129412, - 0.82985, - 0.491488, - 0.736886, - 0.254902, - 0.789081, - 0.583237, - 0.781853, - 0.380392, - 0.810734, - 0.656071, - 0.819254, - 0.505882, - 0.833126, - 0.729181, - 0.85684, - 0.631373, - 0.870527, - 0.80792, - 0.898178, - 0.756863, - 0.907605, - 0.884398, - 0.938331, - 0.882353, - 0.9391, - 0.921799, - 0.958016, - 1, - 0.968627, - 0.956863, - 0.976471 - ] - }, - { - ColorSpace: "Lab", - Name: "Oranges", - RGBPoints: [ - -1, - 0.498039, - 0.152941, - 0.015686, - -0.87451, - 0.57481, - 0.182468, - 0.013718, - -0.74902, - 0.651765, - 0.212042, - 0.011734, - -0.623529, - 0.752157, - 0.247474, - 0.007797, - -0.498039, - 0.851719, - 0.283368, - 0.004475, - -0.372549, - 0.898962, - 0.348328, - 0.039908, - -0.247059, - 0.945652, - 0.413426, - 0.076401, - -0.121569, - 0.969273, - 0.484291, - 0.157109, - 0.00392157, - 0.992157, - 0.554971, - 0.238185, - 0.129412, - 0.992157, - 0.619931, - 0.330704, - 0.254902, - 0.992157, - 0.684967, - 0.423837, - 0.380392, - 0.992157, - 0.751895, - 0.532103, - 0.505882, - 0.992249, - 0.817716, - 0.639354, - 0.631373, - 0.994218, - 0.861023, - 0.725967, - 0.756863, - 0.996186, - 0.903576, - 0.810965, - 0.882353, - 0.998155, - 0.933103, - 0.868051, - 1, - 1, - 0.960784, - 0.921569 - ] - }, - { - ColorSpace: "Lab", - Name: "Reds", - RGBPoints: [ - -1, - 0.403922, - 0, - 0.05098, - -0.87451, - 0.525967, - 0.029527, - 0.066728, - -0.74902, - 0.647643, - 0.058962, - 0.082476, - -0.623529, - 0.722445, - 0.076678, - 0.098224, - -0.498039, - 0.797186, - 0.095194, - 0.114187, - -0.372549, - 0.868051, - 0.164091, - 0.143714, - -0.247059, - 0.937809, - 0.233541, - 0.173933, - -0.121569, - 0.96143, - 0.326059, - 0.232987, - 0.00392157, - 0.984375, - 0.418147, - 0.292657, - 0.129412, - 0.986344, - 0.496886, - 0.371396, - 0.254902, - 0.988235, - 0.575702, - 0.450673, - 0.380392, - 0.988235, - 0.656409, - 0.543191, - 0.505882, - 0.98842, - 0.736747, - 0.635894, - 0.631373, - 0.992357, - 0.809581, - 0.732349, - 0.756863, - 0.996186, - 0.880692, - 0.826759, - 0.882353, - 0.998155, - 0.92203, - 0.885813, - 1, - 1, - 0.960784, - 0.941176 - ] - }, - { - ColorSpace: "Lab", - Name: "RdOr", - RGBPoints: [ - -1, - 0.498039, - 0, - 0, - -0.87451, - 0.6004, - 0, - 0, - -0.74902, - 0.702514, - 0.000738, - 0.000477, - -0.623529, - 0.773379, - 0.095225, - 0.061499, - -0.498039, - 0.843875, - 0.189865, - 0.12283, - -0.372549, - 0.891119, - 0.294195, - 0.203537, - -0.247059, - 0.937855, - 0.397924, - 0.283137, - -0.121569, - 0.963445, - 0.476663, - 0.316601, - 0.00392157, - 0.988297, - 0.555771, - 0.351665, - 0.129412, - 0.990265, - 0.646321, - 0.436309, - 0.254902, - 0.992157, - 0.735256, - 0.519646, - 0.380392, - 0.992157, - 0.784468, - 0.570827, - 0.505882, - 0.992249, - 0.833218, - 0.623483, - 0.631373, - 0.994218, - 0.872587, - 0.706159, - 0.756863, - 0.996186, - 0.911419, - 0.788189, - 0.882353, - 0.998155, - 0.940946, - 0.859054, - 1, - 1, - 0.968627, - 0.92549 - ] - }, - { - ColorSpace: "Lab", - Name: "BrOrYl", - RGBPoints: [ - -1, - 0.4, - 0.145098, - 0.023529, - -0.87451, - 0.500392, - 0.174625, - 0.019592, - -0.74902, - 0.600784, - 0.204291, - 0.015656, - -0.623529, - 0.701176, - 0.251534, - 0.011719, - -0.498039, - 0.800984, - 0.299146, - 0.008397, - -0.372549, - 0.863975, - 0.370012, - 0.043829, - -0.247059, - 0.926321, - 0.441107, - 0.0794, - -0.121569, - 0.961753, - 0.521815, - 0.120738, - 0.00392157, - 0.996078, - 0.602645, - 0.163122, - 0.129412, - 0.996078, - 0.68729, - 0.237924, - 0.254902, - 0.996078, - 0.771011, - 0.314879, - 0.380392, - 0.996078, - 0.832034, - 0.444798, - 0.505882, - 0.996171, - 0.892042, - 0.572595, - 0.631373, - 0.998139, - 0.931411, - 0.65724, - 0.756863, - 1, - 0.969489, - 0.741669, - 0.882353, - 1, - 0.985236, - 0.822376, - 1, - 1, - 1, - 0.898039 - ] - }, - { - ColorSpace: "Lab", - Name: "RdOrYl", - RGBPoints: [ - -1, - 0.501961, - 0, - 0.14902, - -0.87451, - 0.622038, - 0, - 0.14902, - -0.74902, - 0.741761, - 0.0004, - 0.148866, - -0.623529, - 0.816563, - 0.05158, - 0.129181, - -0.498039, - 0.890965, - 0.10356, - 0.110235, - -0.372549, - 0.940177, - 0.205921, - 0.137793, - -0.247059, - 0.988281, - 0.308789, - 0.165536, - -0.121569, - 0.99025, - 0.432803, - 0.200969, - 0.00392157, - 0.992218, - 0.555217, - 0.236278, - 0.129412, - 0.994187, - 0.628051, - 0.267774, - 0.254902, - 0.996078, - 0.701038, - 0.301269, - 0.380392, - 0.996078, - 0.777809, - 0.383945, - 0.505882, - 0.996171, - 0.852826, - 0.466621, - 0.631373, - 0.998139, - 0.892195, - 0.549296, - 0.756863, - 1, - 0.931349, - 0.632188, - 0.882353, - 1, - 0.966782, - 0.7188, - 1, - 1, - 1, - 0.8 - ] - }, - { - ColorSpace: "Lab", - Name: "CIELab_blue2red", - RGBPoints: [ - -1, - 0, - 0.6, - 0.74902, - 1, - 0.76863, - 0.46667, - 0.34118 - ] - }, - { - ColorSpace: "Lab", - Name: "blue2yellow", - RGBPoints: [ - -1, - 0, - 0, - 1, - 0, - 0.5, - 0.5, - 0.5, - 1, - 1, - 1, - 0 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_blue2gold", - RGBPoints: [ - -1, - 0.175119, - 0.0438468, - 1, - -0.874016, - 0.22383, - 0.159771, - 0.94557, - -0.748031, - 0.27254, - 0.233611, - 0.891216, - -0.622047, - 0.321251, - 0.296526, - 0.836857, - -0.496063, - 0.369962, - 0.354296, - 0.782359, - -0.370079, - 0.418672, - 0.409139, - 0.72754, - -0.244094, - 0.467383, - 0.462152, - 0.672148, - -0.11811, - 0.51609, - 0.51396, - 0.615825, - 0.00787402, - 0.572863, - 0.55452, - 0.559172, - 0.133858, - 0.630269, - 0.593822, - 0.517729, - 0.259843, - 0.689588, - 0.624668, - 0.47446, - 0.385827, - 0.745394, - 0.656113, - 0.428638, - 0.511811, - 0.798624, - 0.688104, - 0.379105, - 0.637795, - 0.849926, - 0.720593, - 0.323834, - 0.76378, - 0.899765, - 0.753543, - 0.258657, - 0.889764, - 0.948487, - 0.78692, - 0.171778, - 1, - 0.990413, - 0.816451, - 0.00729848 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_blue2yellow", - RGBPoints: [ - -1, - 0.0830122, - 0, - 0.495617, - -0.87451, - 0.141973, - 0.0551288, - 0.57363, - -0.74902, - 0.193048, - 0.110258, - 0.604561, - -0.623529, - 0.234231, - 0.165386, - 0.57643, - -0.498039, - 0.275413, - 0.220515, - 0.548299, - -0.372549, - 0.316596, - 0.275644, - 0.520169, - -0.247059, - 0.357778, - 0.330773, - 0.492038, - -0.121569, - 0.398961, - 0.385901, - 0.463908, - 0.00392157, - 0.449929, - 0.438487, - 0.426815, - 0.129412, - 0.511572, - 0.488299, - 0.379944, - 0.254902, - 0.581222, - 0.53603, - 0.325741, - 0.380392, - 0.650871, - 0.583761, - 0.271538, - 0.505882, - 0.720521, - 0.631493, - 0.217335, - 0.631373, - 0.79017, - 0.679224, - 0.163132, - 0.756863, - 0.85982, - 0.726955, - 0.108929, - 0.882353, - 0.910254, - 0.774159, - 0.14112, - 1, - 0.927513, - 0.81759, - 0.306289 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_cyan2orange", - RGBPoints: [ - -1, - 0.0471513, - 0.213874, - 0.414329, - -0.87451, - 0.0674702, - 0.256648, - 0.439027, - -0.74902, - 0.0959957, - 0.299331, - 0.462089, - -0.623529, - 0.132428, - 0.341872, - 0.483212, - -0.498039, - 0.188743, - 0.38277, - 0.500597, - -0.372549, - 0.268511, - 0.420229, - 0.512179, - -0.247059, - 0.352945, - 0.455602, - 0.519101, - -0.121569, - 0.43893, - 0.489368, - 0.521538, - 0.00392157, - 0.522445, - 0.522495, - 0.522436, - 0.129412, - 0.600089, - 0.555682, - 0.53205, - 0.254902, - 0.67988, - 0.587981, - 0.539163, - 0.380392, - 0.761011, - 0.619586, - 0.544439, - 0.505882, - 0.84278, - 0.650741, - 0.548567, - 0.631373, - 0.910713, - 0.687347, - 0.557822, - 0.756863, - 0.952232, - 0.734972, - 0.577775, - 0.882353, - 0.975642, - 0.789858, - 0.604868, - 1, - 0.990752, - 0.843643, - 0.632857 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_purple2green", - RGBPoints: [ - -1, - 0.235006, - 0.0483128, - 0.530899, - -0.87451, - 0.302968, - 0.108419, - 0.552391, - -0.74902, - 0.360241, - 0.166059, - 0.569502, - -0.623529, - 0.406746, - 0.226782, - 0.579373, - -0.498039, - 0.444073, - 0.28964, - 0.582094, - -0.372549, - 0.473648, - 0.353774, - 0.577947, - -0.247059, - 0.497636, - 0.418154, - 0.567911, - -0.121569, - 0.519086, - 0.481741, - 0.553968, - 0.00392157, - 0.542884, - 0.542914, - 0.542875, - 0.129412, - 0.566303, - 0.603989, - 0.527499, - 0.254902, - 0.595218, - 0.662965, - 0.516857, - 0.380392, - 0.628641, - 0.720701, - 0.510673, - 0.505882, - 0.665373, - 0.777849, - 0.508165, - 0.631373, - 0.704182, - 0.834921, - 0.508303, - 0.756863, - 0.743846, - 0.892328, - 0.50999, - 0.882353, - 0.783158, - 0.950422, - 0.512181, - 1, - 0.818617, - 1, - 0.513888 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_purple2green_dark", - RGBPoints: [ - -1, - 0.107656, - 0, - 0.428682, - -0.87451, - 0.1924, - 0, - 0.449799, - -0.74902, - 0.255118, - 0.0648939, - 0.466726, - -0.623529, - 0.304256, - 0.133066, - 0.476703, - -0.498039, - 0.343202, - 0.19716, - 0.479793, - -0.372549, - 0.373876, - 0.260353, - 0.476241, - -0.247059, - 0.398497, - 0.322872, - 0.466953, - -0.121569, - 0.420016, - 0.384252, - 0.453785, - 0.00392157, - 0.44319, - 0.443216, - 0.443186, - 0.129412, - 0.465553, - 0.502139, - 0.428233, - 0.254902, - 0.492959, - 0.559151, - 0.417591, - 0.380392, - 0.524654, - 0.615092, - 0.411016, - 0.505882, - 0.55959, - 0.670583, - 0.40779, - 0.631373, - 0.596614, - 0.726102, - 0.406948, - 0.756863, - 0.634544, - 0.782032, - 0.407439, - 0.882353, - 0.672183, - 0.838703, - 0.408237, - 1, - 0.706131, - 0.892759, - 0.408452 - ] - }, - { - ColorSpace: "Lab", - Name: "coolwarm", - RGBPoints: [ - -1, - 0.229806, - 0.298718, - 0.753683, - -0.875, - 0.303869, - 0.406535, - 0.844959, - -0.75, - 0.383013, - 0.509419, - 0.917388, - -0.625, - 0.466667, - 0.604563, - 0.968155, - -0.5, - 0.552953, - 0.688929, - 0.995376, - -0.375, - 0.639176, - 0.7596, - 0.998151, - -0.25, - 0.722193, - 0.813953, - 0.976575, - -0.125, - 0.798692, - 0.849786, - 0.931689, - 0, - 0.865395, - 0.86541, - 0.865396, - 0.125, - 0.924128, - 0.827385, - 0.774508, - 0.25, - 0.958853, - 0.769768, - 0.678008, - 0.375, - 0.969954, - 0.694267, - 0.579375, - 0.5, - 0.958003, - 0.602842, - 0.481776, - 0.625, - 0.923945, - 0.497309, - 0.38797, - 0.75, - 0.869187, - 0.378313, - 0.300267, - 0.875, - 0.795632, - 0.241284, - 0.220526, - 1, - 0.705673, - 0.0155562, - 0.150233 - ] - }, - { - ColorSpace: "Lab", - Name: "BuRd", - RGBPoints: [ - -1, - 0.019608, - 0.188235, - 0.380392, - -0.87451, - 0.088504, - 0.321107, - 0.564937, - -0.74902, - 0.163399, - 0.444983, - 0.697501, - -0.623529, - 0.247059, - 0.555709, - 0.754095, - -0.498039, - 0.420684, - 0.676432, - 0.818685, - -0.372549, - 0.606459, - 0.789773, - 0.880277, - -0.247059, - 0.761476, - 0.868512, - 0.924567, - -0.121569, - 0.878047, - 0.925721, - 0.951942, - 0.00392157, - 0.969089, - 0.966474, - 0.964937, - 0.129412, - 0.983852, - 0.897578, - 0.846828, - 0.254902, - 0.982468, - 0.800692, - 0.706113, - 0.380392, - 0.960323, - 0.66782, - 0.536332, - 0.505882, - 0.894579, - 0.503806, - 0.399769, - 0.631373, - 0.81707, - 0.33218, - 0.281046, - 0.756863, - 0.728489, - 0.155017, - 0.197386, - 0.882353, - 0.576932, - 0.055363, - 0.14925, - 1, - 0.403922, - 0, - 0.121569 - ] - }, - { - ColorSpace: "Lab", - Name: "Spectral_lowBlue", - RGBPoints: [ - -1, - 0.368627, - 0.309804, - 0.635294, - -0.87451, - 0.260361, - 0.450058, - 0.70173, - -0.74902, - 0.248058, - 0.591311, - 0.717186, - -0.623529, - 0.376009, - 0.734025, - 0.658132, - -0.498039, - 0.537947, - 0.814764, - 0.64506, - -0.372549, - 0.702345, - 0.879585, - 0.636678, - -0.247059, - 0.84752, - 0.938639, - 0.607151, - -0.121569, - 0.940408, - 0.976163, - 0.656055, - 0.00392157, - 0.999923, - 0.997616, - 0.745021, - 0.129412, - 0.997463, - 0.921338, - 0.61707, - 0.254902, - 0.995002, - 0.824606, - 0.499885, - 0.380392, - 0.992541, - 0.701576, - 0.39654, - 0.505882, - 0.973472, - 0.547405, - 0.318108, - 0.631373, - 0.937793, - 0.398539, - 0.270127, - 0.756863, - 0.861515, - 0.282891, - 0.299654, - 0.882353, - 0.746482, - 0.144637, - 0.288812, - 1, - 0.619608, - 0.003922, - 0.258824 - ] - }, - { - ColorSpace: "Lab", - Name: "GnRP", - RGBPoints: [ - -1, - 0, - 0.266667, - 0.105882, - -0.87451, - 0.066436, - 0.394617, - 0.174779, - -0.74902, - 0.168858, - 0.524567, - 0.25767, - -0.623529, - 0.323875, - 0.657439, - 0.361015, - -0.498039, - 0.504883, - 0.772318, - 0.506344, - -0.372549, - 0.678431, - 0.870127, - 0.654902, - -0.247059, - 0.803922, - 0.921799, - 0.780392, - -0.121569, - 0.897116, - 0.951942, - 0.882814, - 0.00392157, - 0.967397, - 0.965936, - 0.967474, - 0.129412, - 0.928028, - 0.879815, - 0.930565, - 0.254902, - 0.866052, - 0.780777, - 0.882891, - 0.380392, - 0.77501, - 0.665129, - 0.821376, - 0.505882, - 0.675663, - 0.537024, - 0.737024, - 0.631373, - 0.57847, - 0.396155, - 0.645982, - 0.756863, - 0.492349, - 0.223914, - 0.547559, - 0.882353, - 0.375548, - 0.096886, - 0.423299, - 1, - 0.25098, - 0, - 0.294118 - ] - }, - { - ColorSpace: "Lab", - Name: "GYPi", - RGBPoints: [ - -1, - 0.152941, - 0.392157, - 0.098039, - -0.87451, - 0.246444, - 0.505344, - 0.117724, - -0.74902, - 0.351942, - 0.614533, - 0.161399, - -0.623529, - 0.474971, - 0.717878, - 0.240138, - -0.498039, - 0.611995, - 0.811226, - 0.392849, - -0.372549, - 0.746328, - 0.893118, - 0.565321, - -0.247059, - 0.859516, - 0.94233, - 0.747405, - -0.121569, - 0.928105, - 0.96386, - 0.875663, - 0.00392157, - 0.969089, - 0.966859, - 0.968012, - 0.129412, - 0.983852, - 0.910265, - 0.948328, - 0.254902, - 0.979239, - 0.833218, - 0.914648, - 0.380392, - 0.949712, - 0.729873, - 0.862976, - 0.505882, - 0.905652, - 0.58293, - 0.763552, - 0.631373, - 0.85521, - 0.410073, - 0.652211, - 0.756863, - 0.793695, - 0.183699, - 0.531642, - 0.882353, - 0.683737, - 0.063899, - 0.420761, - 1, - 0.556863, - 0.003922, - 0.321569 - ] - }, - { - ColorSpace: "Lab", - Name: "GnYlRd", - RGBPoints: [ - -1, - 0, - 0.407843, - 0.215686, - -0.87451, - 0.063975, - 0.525952, - 0.277201, - -0.74902, - 0.177932, - 0.633064, - 0.332718, - -0.623529, - 0.364937, - 0.724106, - 0.379469, - -0.498039, - 0.527951, - 0.797155, - 0.40223, - -0.372549, - 0.678431, - 0.862822, - 0.433449, - -0.247059, - 0.803922, - 0.916955, - 0.514648, - -0.121569, - 0.909419, - 0.961861, - 0.625067, - 0.00392157, - 0.999923, - 0.997616, - 0.745021, - 0.129412, - 0.997463, - 0.921338, - 0.61707, - 0.254902, - 0.995002, - 0.824606, - 0.499885, - 0.380392, - 0.992541, - 0.701576, - 0.39654, - 0.505882, - 0.973472, - 0.547405, - 0.318108, - 0.631373, - 0.939023, - 0.389927, - 0.245521, - 0.756863, - 0.867666, - 0.239831, - 0.176624, - 0.882353, - 0.762399, - 0.110727, - 0.151326, - 1, - 0.647059, - 0, - 0.14902 - ] - }, - { - ColorSpace: "Lab", - Name: "GBBr", - RGBPoints: [ - -1, - 0, - 0.235294, - 0.188235, - -0.87451, - 0.002461, - 0.338639, - 0.301423, - -0.74902, - 0.055902, - 0.448981, - 0.417609, - -0.623529, - 0.183852, - 0.56955, - 0.538178, - -0.498039, - 0.357785, - 0.700115, - 0.660746, - -0.372549, - 0.540177, - 0.819531, - 0.77624, - -0.247059, - 0.714879, - 0.890888, - 0.864821, - -0.121569, - 0.851134, - 0.934564, - 0.922645, - 0.00392157, - 0.960861, - 0.959785, - 0.95694, - 0.129412, - 0.963322, - 0.927797, - 0.83391, - 0.254902, - 0.939946, - 0.868897, - 0.68935, - 0.380392, - 0.883353, - 0.775394, - 0.517109, - 0.505882, - 0.808074, - 0.625836, - 0.324106, - 0.631373, - 0.717647, - 0.476355, - 0.15494, - 0.756863, - 0.592157, - 0.358247, - 0.06882, - 0.882353, - 0.458593, - 0.26436, - 0.031142, - 1, - 0.329412, - 0.188235, - 0.019608 - ] - }, - { - ColorSpace: "Lab", - Name: "PuOr", - RGBPoints: [ - -1, - 0.498039, - 0.231373, - 0.031373, - -0.87451, - 0.62599, - 0.30273, - 0.026451, - -0.74902, - 0.746943, - 0.387082, - 0.037524, - -0.623529, - 0.85767, - 0.490427, - 0.071972, - -0.498039, - 0.936409, - 0.617762, - 0.236371, - -0.372549, - 0.992695, - 0.743099, - 0.43291, - -0.247059, - 0.995156, - 0.841523, - 0.63714, - -0.121569, - 0.985313, - 0.913802, - 0.813687, - 0.00392157, - 0.966244, - 0.966398, - 0.967705, - 0.129412, - 0.889965, - 0.89504, - 0.938178, - 0.254902, - 0.806151, - 0.804306, - 0.894656, - 0.380392, - 0.712649, - 0.688658, - 0.833141, - 0.505882, - 0.594233, - 0.554325, - 0.744637, - 0.631373, - 0.474894, - 0.404229, - 0.652364, - 0.756863, - 0.366628, - 0.217224, - 0.563783, - 0.882353, - 0.266436, - 0.089965, - 0.434833, - 1, - 0.176471, - 0, - 0.294118 - ] - }, - { - ColorSpace: "Lab", - Name: "PRGn", - RGBPoints: [ - -1, - 0.25098, - 0, - 0.294118, - -0.87451, - 0.383852, - 0.103345, - 0.431911, - -0.74902, - 0.497732, - 0.234679, - 0.55371, - -0.623529, - 0.583852, - 0.40692, - 0.652134, - -0.498039, - 0.681968, - 0.545175, - 0.742561, - -0.372549, - 0.7807, - 0.672357, - 0.825221, - -0.247059, - 0.871742, - 0.788005, - 0.886736, - -0.121569, - 0.930488, - 0.885198, - 0.932872, - 0.00392157, - 0.966321, - 0.968089, - 0.965859, - 0.129412, - 0.892503, - 0.950865, - 0.877278, - 0.254902, - 0.796078, - 0.91857, - 0.772549, - 0.380392, - 0.670588, - 0.866897, - 0.647059, - 0.505882, - 0.493195, - 0.765398, - 0.496655, - 0.631373, - 0.314187, - 0.649135, - 0.354556, - 0.756863, - 0.15917, - 0.516263, - 0.251211, - 0.882353, - 0.062284, - 0.386621, - 0.170473, - 1, - 0, - 0.266667, - 0.105882 - ] - }, - { - ColorSpace: "Lab", - Name: "PiYG", - RGBPoints: [ - -1, - 0.556863, - 0.003922, - 0.321569, - -0.87451, - 0.692195, - 0.067897, - 0.427374, - -0.74902, - 0.797539, - 0.197847, - 0.539177, - -0.623529, - 0.859054, - 0.424221, - 0.659746, - -0.498039, - 0.908574, - 0.592618, - 0.770319, - -0.372549, - 0.951557, - 0.736332, - 0.866205, - -0.247059, - 0.981084, - 0.839677, - 0.917878, - -0.121569, - 0.98293, - 0.913802, - 0.949558, - 0.00392157, - 0.96732, - 0.968474, - 0.965629, - 0.129412, - 0.92549, - 0.963552, - 0.869666, - 0.254902, - 0.852441, - 0.939254, - 0.736025, - 0.380392, - 0.739254, - 0.890042, - 0.553941, - 0.505882, - 0.60323, - 0.805536, - 0.382238, - 0.631373, - 0.467282, - 0.711419, - 0.235217, - 0.756863, - 0.344252, - 0.608074, - 0.156478, - 0.882353, - 0.2406, - 0.49827, - 0.116494, - 1, - 0.152941, - 0.392157, - 0.098039 - ] - }, - { - ColorSpace: "Lab", - Name: "OrPu", - RGBPoints: [ - -1, - 0.176471, - 0, - 0.294118, - -0.87451, - 0.272434, - 0.095963, - 0.444214, - -0.74902, - 0.373395, - 0.228912, - 0.56932, - -0.623529, - 0.481661, - 0.415917, - 0.657901, - -0.498039, - 0.601922, - 0.562937, - 0.750481, - -0.372549, - 0.718493, - 0.695886, - 0.836986, - -0.247059, - 0.811995, - 0.811534, - 0.898501, - -0.121569, - 0.894733, - 0.8995, - 0.940023, - 0.00392157, - 0.969166, - 0.966859, - 0.963629, - 0.129412, - 0.98639, - 0.910265, - 0.803691, - 0.254902, - 0.995002, - 0.835371, - 0.624375, - 0.380392, - 0.992541, - 0.736947, - 0.420146, - 0.505882, - 0.931949, - 0.609458, - 0.224221, - 0.631373, - 0.85075, - 0.483968, - 0.069819, - 0.756863, - 0.740023, - 0.380623, - 0.035371, - 0.882353, - 0.617993, - 0.29827, - 0.026759, - 1, - 0.498039, - 0.231373, - 0.031373 - ] - }, - { - ColorSpace: "Lab", - Name: "BrBG", - RGBPoints: [ - -1, - 0.329412, - 0.188235, - 0.019608, - -0.87451, - 0.467205, - 0.269435, - 0.031911, - -0.74902, - 0.6, - 0.365629, - 0.074202, - -0.623529, - 0.72549, - 0.483737, - 0.160323, - -0.498039, - 0.812995, - 0.635832, - 0.336409, - -0.372549, - 0.88689, - 0.781238, - 0.527874, - -0.247059, - 0.943483, - 0.87474, - 0.700115, - -0.121569, - 0.963168, - 0.929796, - 0.841599, - 0.00392157, - 0.957247, - 0.959938, - 0.959554, - 0.129412, - 0.84406, - 0.932872, - 0.920185, - 0.254902, - 0.70396, - 0.886428, - 0.859285, - 0.380392, - 0.529258, - 0.815071, - 0.770704, - 0.505882, - 0.346251, - 0.691811, - 0.653057, - 0.631373, - 0.175855, - 0.562015, - 0.530642, - 0.756863, - 0.047905, - 0.441446, - 0.410073, - 0.882353, - 0.002307, - 0.33218, - 0.294348, - 1, - 0, - 0.235294, - 0.188235 - ] - }, - { - ColorSpace: "Lab", - Name: "GyRd", - RGBPoints: [ - -1, - 0.101961, - 0.101961, - 0.101961, - -0.87451, - 0.227451, - 0.227451, - 0.227451, - -0.74902, - 0.359939, - 0.359939, - 0.359939, - -0.623529, - 0.502653, - 0.502653, - 0.502653, - -0.498039, - 0.631373, - 0.631373, - 0.631373, - -0.372549, - 0.749865, - 0.749865, - 0.749865, - -0.247059, - 0.843368, - 0.843368, - 0.843368, - -0.121569, - 0.926105, - 0.926105, - 0.926105, - 0.00392157, - 0.999846, - 0.997232, - 0.995694, - 0.129412, - 0.994925, - 0.908651, - 0.857901, - 0.254902, - 0.982468, - 0.800692, - 0.706113, - 0.380392, - 0.960323, - 0.66782, - 0.536332, - 0.505882, - 0.894579, - 0.503806, - 0.399769, - 0.631373, - 0.81707, - 0.33218, - 0.281046, - 0.756863, - 0.728489, - 0.155017, - 0.197386, - 0.882353, - 0.576932, - 0.055363, - 0.14925, - 1, - 0.403922, - 0, - 0.121569 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_divHi_purpleGreen", - RGBPoints: [ - -1, - 0.297553, - 0, - 0.489074, - -0.87451, - 0.40259, - 0.151146, - 0.567754, - -0.74902, - 0.516038, - 0.284843, - 0.658231, - -0.623529, - 0.629783, - 0.423646, - 0.750938, - -0.498039, - 0.735198, - 0.563697, - 0.835956, - -0.372549, - 0.82408, - 0.695541, - 0.903582, - -0.247059, - 0.889091, - 0.807454, - 0.944862, - -0.121569, - 0.92334, - 0.886917, - 0.951839, - 0.00392157, - 0.921045, - 0.921084, - 0.921003, - 0.129412, - 0.877324, - 0.907455, - 0.845381, - 0.254902, - 0.797649, - 0.849713, - 0.734695, - 0.380392, - 0.691646, - 0.75964, - 0.600532, - 0.505882, - 0.568981, - 0.649159, - 0.453807, - 0.631373, - 0.438945, - 0.529756, - 0.304259, - 0.756863, - 0.30973, - 0.412001, - 0.158303, - 0.882353, - 0.187078, - 0.305111, - 0.00251458, - 1, - 0.101655, - 0.220836, - 0 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_divHi_purpleGreen_dim", - RGBPoints: [ - -1, - 0.404088, - 0.131038, - 0.592767, - -0.87451, - 0.486469, - 0.230957, - 0.651243, - -0.74902, - 0.575165, - 0.339335, - 0.717723, - -0.623529, - 0.662741, - 0.454332, - 0.784263, - -0.498039, - 0.742071, - 0.570213, - 0.842918, - -0.372549, - 0.806935, - 0.678992, - 0.886227, - -0.247059, - 0.852219, - 0.771315, - 0.90763, - -0.121569, - 0.873345, - 0.837327, - 0.901572, - 0.00392157, - 0.866783, - 0.86682, - 0.866745, - 0.129412, - 0.82839, - 0.858225, - 0.796812, - 0.254902, - 0.762578, - 0.814287, - 0.700202, - 0.380392, - 0.676429, - 0.744229, - 0.585735, - 0.505882, - 0.577033, - 0.65732, - 0.461526, - 0.631373, - 0.47128, - 0.562476, - 0.33476, - 0.756863, - 0.365461, - 0.467957, - 0.21076, - 0.882353, - 0.264758, - 0.381138, - 0.0878313, - 1, - 0.182591, - 0.312249, - 0 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_divLow_icePeach", - RGBPoints: [ - -1, - 0.480048, - 0.817441, - 0.998056, - -0.87451, - 0.425898, - 0.726921, - 0.883187, - -0.74902, - 0.366682, - 0.629445, - 0.761936, - -0.623529, - 0.308756, - 0.531002, - 0.640217, - -0.498039, - 0.258021, - 0.43705, - 0.523433, - -0.372549, - 0.219244, - 0.352381, - 0.416348, - -0.247059, - 0.195127, - 0.281032, - 0.322979, - -0.121569, - 0.186286, - 0.22627, - 0.246525, - 0.00392157, - 0.192352, - 0.19236, - 0.192364, - 0.129412, - 0.255927, - 0.214469, - 0.191756, - 0.254902, - 0.340459, - 0.254426, - 0.206666, - 0.380392, - 0.444655, - 0.309315, - 0.234029, - 0.505882, - 0.565353, - 0.376004, - 0.270969, - 0.631373, - 0.697917, - 0.450748, - 0.314293, - 0.756863, - 0.836657, - 0.529064, - 0.360227, - 0.882353, - 0.972695, - 0.614884, - 0.413123, - 1, - 1, - 0.705904, - 0.472699 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_divLow_purpleGreen", - RGBPoints: [ - -1, - 0.956034, - 0.666487, - 0.952663, - -0.87451, - 0.874457, - 0.572698, - 0.936352, - -0.74902, - 0.753465, - 0.488253, - 0.909063, - -0.623529, - 0.63309, - 0.413507, - 0.763833, - -0.498039, - 0.514491, - 0.345878, - 0.620015, - -0.372549, - 0.405008, - 0.288141, - 0.484376, - -0.247059, - 0.311388, - 0.241986, - 0.363556, - -0.121569, - 0.238722, - 0.209044, - 0.263449, - 0.00392157, - 0.192352, - 0.192366, - 0.192362, - 0.129412, - 0.200379, - 0.233201, - 0.168618, - 0.254902, - 0.230151, - 0.291737, - 0.165227, - 0.380392, - 0.279481, - 0.366076, - 0.178607, - 0.505882, - 0.344927, - 0.453267, - 0.205703, - 0.631373, - 0.421554, - 0.549449, - 0.242643, - 0.756863, - 0.503334, - 0.649999, - 0.284377, - 0.882353, - 0.583497, - 0.749672, - 0.324969, - 1, - 0.650705, - 0.837228, - 0.356264 - ] - }, - { - ColorSpace: "Lab", - Name: "Haze_green", - RGBPoints: [ - -1, - 1, - 0.835294, - 0.886275, - -0.87451, - 0.937255, - 0.756863, - 0.870443, - -0.74902, - 0.875817, - 0.666376, - 0.857807, - -0.623529, - 0.778359, - 0.583007, - 0.808134, - -0.498039, - 0.676253, - 0.494118, - 0.745098, - -0.372549, - 0.561365, - 0.390123, - 0.682353, - -0.247059, - 0.438344, - 0.262745, - 0.621496, - -0.121569, - 0.321133, - 0.141031, - 0.558751, - 0.00392157, - 0.203922, - 0.0217865, - 0.495861, - 0.129412, - 0.265505, - 0.129412, - 0.433261, - 0.254902, - 0.311692, - 0.255338, - 0.37008, - 0.380392, - 0.356282, - 0.377342, - 0.310821, - 0.505882, - 0.39971, - 0.488889, - 0.258243, - 0.631373, - 0.442556, - 0.604357, - 0.205519, - 0.756863, - 0.48671, - 0.71968, - 0.152941, - 0.882353, - 0.529847, - 0.830356, - 0.100944, - 1, - 0.572549, - 0.933333, - 0.054902 - ] - }, - { - ColorSpace: "Lab", - Name: "Haze_lime", - RGBPoints: [ - -1, - 0.704034, - 0.784196, - 1, - -0.87451, - 0.633111, - 0.691418, - 0.956078, - -0.74902, - 0.564021, - 0.600606, - 0.912157, - -0.623529, - 0.496827, - 0.51189, - 0.868235, - -0.498039, - 0.43157, - 0.425416, - 0.824314, - -0.372549, - 0.368248, - 0.341347, - 0.780392, - -0.247059, - 0.306767, - 0.259855, - 0.736471, - -0.121569, - 0.246862, - 0.181069, - 0.692549, - 0.00392157, - 0.191619, - 0.109542, - 0.648627, - 0.129412, - 0.257404, - 0.194031, - 0.604706, - 0.254902, - 0.321794, - 0.278775, - 0.560784, - 0.380392, - 0.387909, - 0.364617, - 0.516863, - 0.505882, - 0.456569, - 0.451881, - 0.472941, - 0.631373, - 0.527424, - 0.540773, - 0.42902, - 0.756863, - 0.599759, - 0.631427, - 0.385098, - 0.882353, - 0.673065, - 0.723898, - 0.341176, - 1, - 0.742751, - 0.812252, - 0.3 - ] - }, - { - ColorSpace: "RGB", - Name: "Haze", - RGBPoints: [ - -1, - 1, - 0.835294, - 0.996078, - -0.00392157, - 0.023529, - 0.141176, - 0.498039, - 0.00392157, - 0.015686, - 0.137255, - 0.494118, - 1, - 0.984314, - 0.764706, - 0 - ] - }, - { - ColorSpace: "Lab", - Name: "Haze_cyan", - RGBPoints: [ - -1, - 0.956863, - 1, - 0.835294, - -0.87451, - 0.933188, - 0.921714, - 0.760784, - -0.74902, - 0.870588, - 0.803486, - 0.671605, - -0.623529, - 0.807843, - 0.684096, - 0.583297, - -0.498039, - 0.745098, - 0.569208, - 0.494118, - -0.372549, - 0.682353, - 0.437763, - 0.390123, - -0.247059, - 0.621496, - 0.288163, - 0.262745, - -0.121569, - 0.558751, - 0.144517, - 0.141031, - 0.00392157, - 0.495861, - 0.0217865, - 0.0413943, - 0.129412, - 0.433261, - 0.137255, - 0.129412, - 0.254902, - 0.37008, - 0.263181, - 0.255338, - 0.380392, - 0.306318, - 0.381845, - 0.372694, - 0.505882, - 0.243137, - 0.503994, - 0.494263, - 0.631373, - 0.180392, - 0.629484, - 0.619753, - 0.756863, - 0.117647, - 0.754975, - 0.747131, - 0.882353, - 0.054902, - 0.876398, - 0.866812, - 1, - 0, - 0.988235, - 0.976471 - ] - }, - { - ColorSpace: "Lab", - Name: "nic_Edge", - RGBPoints: [ - -1, - 0.191208, - 0.191208, - 0.191208, - -0.87451, - 0.239484, - 0.00545035, - 0.614821, - -0.74902, - 0.220593, - 0.0617459, - 0.863547, - -0.623529, - 0.17509, - 0.278988, - 0.97794, - -0.498039, - 0.143526, - 0.576069, - 0.998553, - -0.372549, - 0.166456, - 0.871883, - 0.96594, - -0.247059, - 0.376202, - 0.993555, - 0.981833, - -0.121569, - 0.681996, - 0.991297, - 0.999239, - 0.00392157, - 0.954172, - 0.952734, - 0.94374, - 0.129412, - 0.999735, - 0.99301, - 0.662896, - 0.254902, - 0.979399, - 0.991466, - 0.357973, - 0.380392, - 0.968771, - 0.854967, - 0.162659, - 0.505882, - 0.999245, - 0.556697, - 0.144323, - 0.631373, - 0.973959, - 0.26223, - 0.177946, - 0.756863, - 0.852358, - 0.0526707, - 0.222974, - 0.882353, - 0.593889, - 0.00912724, - 0.238855, - 1, - 0.191208, - 0.191208, - 0.191208 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_iceFire_H", - RGBPoints: [ - -1, - 4.05432e-7, - 0, - 0.00000590122, - -0.87451, - 0, - 0.120401, - 0.302675, - -0.74902, - 0, - 0.216583, - 0.524574, - -0.623529, - 0.0552475, - 0.345025, - 0.6595, - -0.498039, - 0.128047, - 0.492588, - 0.720288, - -0.372549, - 0.188955, - 0.641309, - 0.792092, - -0.247059, - 0.327673, - 0.784935, - 0.873434, - -0.121569, - 0.60824, - 0.892164, - 0.935547, - 0.00392157, - 0.881371, - 0.912178, - 0.818099, - 0.129412, - 0.951407, - 0.835621, - 0.449279, - 0.254902, - 0.904481, - 0.690489, - 0, - 0.380392, - 0.85407, - 0.510864, - 0, - 0.505882, - 0.777093, - 0.33018, - 0.00088199, - 0.631373, - 0.672862, - 0.139087, - 0.00269398, - 0.756863, - 0.508815, - 0, - 0, - 0.882353, - 0.299417, - 0.000366289, - 0.000547829, - 1, - 0.0157519, - 0.00332021, - 4.55569e-8 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_iceFire_L", - RGBPoints: [ - -1, - 0.870485, - 0.913768, - 0.832905, - -0.87451, - 0.586919, - 0.887865, - 0.934003, - -0.74902, - 0.31583, - 0.776442, - 0.867858, - -0.623529, - 0.18302, - 0.632034, - 0.787722, - -0.498039, - 0.117909, - 0.484134, - 0.713825, - -0.372549, - 0.0507239, - 0.335979, - 0.654741, - -0.247059, - 0, - 0.209874, - 0.511832, - -0.121569, - 0, - 0.114689, - 0.28935, - 0.00392157, - 0.0157519, - 0.00332021, - 4.55569e-8, - 0.129412, - 0.312914, - 0, - 0, - 0.254902, - 0.520865, - 0, - 0, - 0.380392, - 0.680105, - 0.15255, - 0.0025996, - 0.505882, - 0.785109, - 0.339479, - 0.000797922, - 0.631373, - 0.857354, - 0.522494, - 0, - 0.756863, - 0.910974, - 0.699774, - 0, - 0.882353, - 0.951921, - 0.842817, - 0.478545, - 1, - 0.881371, - 0.912178, - 0.818099 - ] - }, - { - ColorSpace: "RGB", - Name: "hsv", - RGBPoints: [ - -1, - 1, - 0, - 0, - -0.666666, - 1, - 0, - 1, - -0.333333, - 0, - 0, - 1, - 0, - 0, - 1, - 1, - 0.33333, - 0, - 1, - 0, - 0.66666, - 1, - 1, - 0, - 1, - 1, - 0, - 0 - ] - }, - { - ColorSpace: "Lab", - Name: "hue_L60", - RGBPoints: [ - -1, - 0.964784, - 0.400592, - 0.349549, - -0.87451, - 0.964915, - 0.372498, - 0.53785, - -0.74902, - 0.892353, - 0.401039, - 0.759569, - -0.623529, - 0.79263, - 0.446956, - 0.903017, - -0.498039, - 0.682208, - 0.49954, - 0.966673, - -0.372549, - 0.56392, - 0.553082, - 0.968836, - -0.247059, - 0.442031, - 0.606396, - 0.901601, - -0.121569, - 0.305499, - 0.65701, - 0.765784, - 0.00392157, - 0.197251, - 0.687914, - 0.620914, - 0.129412, - 0.193882, - 0.701887, - 0.472654, - 0.254902, - 0.249866, - 0.706123, - 0.320005, - 0.380392, - 0.35132, - 0.697417, - 0.202919, - 0.505882, - 0.498097, - 0.669467, - 0.125232, - 0.631373, - 0.637477, - 0.626239, - 0.107431, - 0.756863, - 0.762115, - 0.56872, - 0.155812, - 0.882353, - 0.889434, - 0.481116, - 0.240445, - 1, - 0.964784, - 0.400592, - 0.349549 - ] - }, - { - IndexedColors: [ - 0, - 0, - 0, - 0.8941176470588236, - 0.1019607843137255, - 0.1098039215686274, - 0.2156862745098039, - 0.4941176470588236, - 0.7215686274509804, - 0.3019607843137255, - 0.6862745098039216, - 0.2901960784313726, - 0.596078431372549, - 0.3058823529411765, - 0.6392156862745098, - 1, - 0.4980392156862745, - 0, - 0.6509803921568628, - 0.3372549019607843, - 0.1568627450980392 - ], - Name: "Spectrum", - NanColor: [ - 0.6509803921568628, - 0.3372549019607843, - 0.1568627450980392 - ] - }, - { - IndexedColors: [ - 0.4745098039215686, - 0.09019607843137255, - 0.09019607843137255, - 0.7098039215686275, - 0.00392156862745098, - 0.00392156862745098, - 0.9372549019607843, - 0.2784313725490196, - 0.09803921568627451, - 0.9764705882352941, - 0.5137254901960784, - 0.1411764705882353, - 1, - 0.7058823529411765, - 0, - 1, - 0.8980392156862745, - 0.02352941176470588 - ], - Name: "Warm", - NanColor: [ - 1, - 0.8980392156862745, - 0.02352941176470588 - ] - }, - { - IndexedColors: [ - 0.4588235294117647, - 0.6941176470588235, - 0.00392156862745098, - 0.3450980392156863, - 0.5019607843137255, - 0.1607843137254902, - 0.3137254901960784, - 0.8431372549019608, - 0.7490196078431373, - 0.1098039215686274, - 0.5843137254901961, - 0.803921568627451, - 0.2313725490196079, - 0.407843137254902, - 0.6705882352941176, - 0.6039215686274509, - 0.407843137254902, - 1, - 0.3725490196078431, - 0.2, - 0.5019607843137255 - ], - Name: "Cool", - NanColor: [ - 0.3725490196078431, - 0.2, - 0.5019607843137255 - ] - }, - { - IndexedColors: [ - 0.2313725490196079, - 0.407843137254902, - 0.6705882352941176, - 0.1098039215686274, - 0.5843137254901961, - 0.803921568627451, - 0.3058823529411765, - 0.8509803921568627, - 0.9176470588235294, - 0.4509803921568628, - 0.6039215686274509, - 0.8352941176470589, - 0.2588235294117647, - 0.2392156862745098, - 0.6627450980392157, - 0.3137254901960784, - 0.3294117647058823, - 0.5294117647058824, - 0.06274509803921569, - 0.1647058823529412, - 0.3215686274509804 - ], - Name: "Blues", - NanColor: [ - 0.06274509803921569, - 0.1647058823529412, - 0.3215686274509804 - ] - }, - { - IndexedColors: [ - 0.1098039215686274, - 0.5843137254901961, - 0.803921568627451, - 0.2313725490196079, - 0.407843137254902, - 0.6705882352941176, - 0.4, - 0.2431372549019608, - 0.7176470588235294, - 0.6352941176470588, - 0.3294117647058823, - 0.8117647058823529, - 0.8705882352941177, - 0.3803921568627451, - 0.807843137254902, - 0.8627450980392157, - 0.3803921568627451, - 0.5843137254901961, - 0.2392156862745098, - 0.06274509803921569, - 0.3215686274509804 - ], - Name: "Wild Flower", - NanColor: [ - 0.2392156862745098, - 0.06274509803921569, - 0.3215686274509804 - ] - }, - { - IndexedColors: [ - 0.396078431372549, - 0.4862745098039216, - 0.2156862745098039, - 0.4588235294117647, - 0.6941176470588235, - 0.00392156862745098, - 0.6980392156862745, - 0.7294117647058823, - 0.1882352941176471, - 1, - 0.8980392156862745, - 0.02352941176470588, - 1, - 0.7058823529411765, - 0, - 0.9764705882352941, - 0.5137254901960784, - 0.1411764705882353 - ], - Name: "Citrus", - NanColor: [ - 0.9764705882352941, - 0.5137254901960784, - 0.1411764705882353 - ] - }, - { - IndexedColors: [ - 0.4980392156862745, - 0.2313725490196079, - 0.03137254901960784, - 0.7019607843137254, - 0.3450980392156863, - 0.02352941176470588, - 0.8784313725490196, - 0.5098039215686274, - 0.0784313725490196, - 0.9921568627450981, - 0.7215686274509804, - 0.3882352941176471, - 0.996078431372549, - 0.8784313725490196, - 0.7137254901960784, - 0.9686274509803922, - 0.9686274509803922, - 0.9686274509803922, - 0.8470588235294118, - 0.8549019607843137, - 0.9215686274509803, - 0.6980392156862745, - 0.6705882352941176, - 0.8235294117647058, - 0.5019607843137255, - 0.4509803921568628, - 0.6745098039215687, - 0.3294117647058823, - 0.1529411764705882, - 0.5333333333333333, - 0.1764705882352941, - 0, - 0.2941176470588235 - ], - Name: "Brewer Diverging Purple-Orange (11)", - NanColor: [ - 0.1764705882352941, - 0, - 0.2941176470588235 - ] - }, - { - IndexedColors: [ - 0.4980392156862745, - 0.2313725490196079, - 0.03137254901960784, - 0.7019607843137254, - 0.3450980392156863, - 0.02352941176470588, - 0.8784313725490196, - 0.5098039215686274, - 0.0784313725490196, - 0.9921568627450981, - 0.7215686274509804, - 0.3882352941176471, - 0.996078431372549, - 0.8784313725490196, - 0.7137254901960784, - 0.8470588235294118, - 0.8549019607843137, - 0.9215686274509803, - 0.6980392156862745, - 0.6705882352941176, - 0.8235294117647058, - 0.5019607843137255, - 0.4509803921568628, - 0.6745098039215687, - 0.3294117647058823, - 0.1529411764705882, - 0.5333333333333333, - 0.1764705882352941, - 0, - 0.2941176470588235 - ], - Name: "Brewer Diverging Purple-Orange (10)", - NanColor: [ - 0.1764705882352941, - 0, - 0.2941176470588235 - ] - }, - { - IndexedColors: [ - 0.7019607843137254, - 0.3450980392156863, - 0.02352941176470588, - 0.8784313725490196, - 0.5098039215686274, - 0.0784313725490196, - 0.9921568627450981, - 0.7215686274509804, - 0.3882352941176471, - 0.996078431372549, - 0.8784313725490196, - 0.7137254901960784, - 0.9686274509803922, - 0.9686274509803922, - 0.9686274509803922, - 0.8470588235294118, - 0.8549019607843137, - 0.9215686274509803, - 0.6980392156862745, - 0.6705882352941176, - 0.8235294117647058, - 0.5019607843137255, - 0.4509803921568628, - 0.6745098039215687, - 0.3294117647058823, - 0.1529411764705882, - 0.5333333333333333 - ], - Name: "Brewer Diverging Purple-Orange (9)", - NanColor: [ - 0.3294117647058823, - 0.1529411764705882, - 0.5333333333333333 - ] - }, - { - IndexedColors: [ - 0.7019607843137254, - 0.3450980392156863, - 0.02352941176470588, - 0.8784313725490196, - 0.5098039215686274, - 0.0784313725490196, - 0.9921568627450981, - 0.7215686274509804, - 0.3882352941176471, - 0.996078431372549, - 0.8784313725490196, - 0.7137254901960784, - 0.8470588235294118, - 0.8549019607843137, - 0.9215686274509803, - 0.6980392156862745, - 0.6705882352941176, - 0.8235294117647058, - 0.5019607843137255, - 0.4509803921568628, - 0.6745098039215687, - 0.3294117647058823, - 0.1529411764705882, - 0.5333333333333333 - ], - Name: "Brewer Diverging Purple-Orange (8)", - NanColor: [ - 0.3294117647058823, - 0.1529411764705882, - 0.5333333333333333 - ] - }, - { - IndexedColors: [ - 0.7019607843137254, - 0.3450980392156863, - 0.02352941176470588, - 0.9450980392156862, - 0.6392156862745098, - 0.2509803921568627, - 0.996078431372549, - 0.8784313725490196, - 0.7137254901960784, - 0.9686274509803922, - 0.9686274509803922, - 0.9686274509803922, - 0.8470588235294118, - 0.8549019607843137, - 0.9215686274509803, - 0.6, - 0.5568627450980392, - 0.7647058823529411, - 0.3294117647058823, - 0.1529411764705882, - 0.5333333333333333 - ], - Name: "Brewer Diverging Purple-Orange (7)", - NanColor: [ - 0.3294117647058823, - 0.1529411764705882, - 0.5333333333333333 - ] - }, - { - IndexedColors: [ - 0.7019607843137254, - 0.3450980392156863, - 0.02352941176470588, - 0.9450980392156862, - 0.6392156862745098, - 0.2509803921568627, - 0.996078431372549, - 0.8784313725490196, - 0.7137254901960784, - 0.8470588235294118, - 0.8549019607843137, - 0.9215686274509803, - 0.6, - 0.5568627450980392, - 0.7647058823529411, - 0.3294117647058823, - 0.1529411764705882, - 0.5333333333333333 - ], - Name: "Brewer Diverging Purple-Orange (6)", - NanColor: [ - 0.3294117647058823, - 0.1529411764705882, - 0.5333333333333333 - ] - }, - { - IndexedColors: [ - 0.9019607843137255, - 0.3803921568627451, - 0.00392156862745098, - 0.9921568627450981, - 0.7215686274509804, - 0.3882352941176471, - 0.9686274509803922, - 0.9686274509803922, - 0.9686274509803922, - 0.6980392156862745, - 0.6705882352941176, - 0.8235294117647058, - 0.3686274509803922, - 0.2352941176470588, - 0.6 - ], - Name: "Brewer Diverging Purple-Orange (5)", - NanColor: [ - 0.3686274509803922, - 0.2352941176470588, - 0.6 - ] - }, - { - IndexedColors: [ - 0.9019607843137255, - 0.3803921568627451, - 0.00392156862745098, - 0.9921568627450981, - 0.7215686274509804, - 0.3882352941176471, - 0.6980392156862745, - 0.6705882352941176, - 0.8235294117647058, - 0.3686274509803922, - 0.2352941176470588, - 0.6 - ], - Name: "Brewer Diverging Purple-Orange (4)", - NanColor: [ - 0.3686274509803922, - 0.2352941176470588, - 0.6 - ] - }, - { - IndexedColors: [ - 0.9450980392156862, - 0.6392156862745098, - 0.2509803921568627, - 0.9686274509803922, - 0.9686274509803922, - 0.9686274509803922, - 0.6, - 0.5568627450980392, - 0.7647058823529411 - ], - Name: "Brewer Diverging Purple-Orange (3)", - NanColor: [ - 0.6, - 0.5568627450980392, - 0.7647058823529411 - ] - }, - { - IndexedColors: [ - 0.6196078431372549, - 0.00392156862745098, - 0.2588235294117647, - 0.8352941176470589, - 0.2431372549019608, - 0.3098039215686275, - 0.9568627450980393, - 0.4274509803921568, - 0.2627450980392157, - 0.9921568627450981, - 0.6823529411764706, - 0.3803921568627451, - 0.996078431372549, - 0.8784313725490196, - 0.5450980392156862, - 1, - 1, - 0.7490196078431373, - 0.9019607843137255, - 0.9607843137254902, - 0.596078431372549, - 0.6705882352941176, - 0.8666666666666667, - 0.6431372549019608, - 0.4, - 0.7607843137254902, - 0.6470588235294118, - 0.196078431372549, - 0.5333333333333333, - 0.7411764705882353, - 0.3686274509803922, - 0.3098039215686275, - 0.6352941176470588 - ], - Name: "Brewer Diverging Spectral (11)", - NanColor: [ - 0.3686274509803922, - 0.3098039215686275, - 0.6352941176470588 - ] - }, - { - IndexedColors: [ - 0.6196078431372549, - 0.00392156862745098, - 0.2588235294117647, - 0.8352941176470589, - 0.2431372549019608, - 0.3098039215686275, - 0.9568627450980393, - 0.4274509803921568, - 0.2627450980392157, - 0.9921568627450981, - 0.6823529411764706, - 0.3803921568627451, - 0.996078431372549, - 0.8784313725490196, - 0.5450980392156862, - 0.9019607843137255, - 0.9607843137254902, - 0.596078431372549, - 0.6705882352941176, - 0.8666666666666667, - 0.6431372549019608, - 0.4, - 0.7607843137254902, - 0.6470588235294118, - 0.196078431372549, - 0.5333333333333333, - 0.7411764705882353, - 0.3686274509803922, - 0.3098039215686275, - 0.6352941176470588 - ], - Name: "Brewer Diverging Spectral (10)", - NanColor: [ - 0.3686274509803922, - 0.3098039215686275, - 0.6352941176470588 - ] - }, - { - IndexedColors: [ - 0.8352941176470589, - 0.2431372549019608, - 0.3098039215686275, - 0.9568627450980393, - 0.4274509803921568, - 0.2627450980392157, - 0.9921568627450981, - 0.6823529411764706, - 0.3803921568627451, - 0.996078431372549, - 0.8784313725490196, - 0.5450980392156862, - 1, - 1, - 0.7490196078431373, - 0.9019607843137255, - 0.9607843137254902, - 0.596078431372549, - 0.6705882352941176, - 0.8666666666666667, - 0.6431372549019608, - 0.4, - 0.7607843137254902, - 0.6470588235294118, - 0.196078431372549, - 0.5333333333333333, - 0.7411764705882353 - ], - Name: "Brewer Diverging Spectral (9)", - NanColor: [ - 0.196078431372549, - 0.5333333333333333, - 0.7411764705882353 - ] - }, - { - IndexedColors: [ - 0.8352941176470589, - 0.2431372549019608, - 0.3098039215686275, - 0.9568627450980393, - 0.4274509803921568, - 0.2627450980392157, - 0.9921568627450981, - 0.6823529411764706, - 0.3803921568627451, - 0.996078431372549, - 0.8784313725490196, - 0.5450980392156862, - 0.9019607843137255, - 0.9607843137254902, - 0.596078431372549, - 0.6705882352941176, - 0.8666666666666667, - 0.6431372549019608, - 0.4, - 0.7607843137254902, - 0.6470588235294118, - 0.196078431372549, - 0.5333333333333333, - 0.7411764705882353 - ], - Name: "Brewer Diverging Spectral (8)", - NanColor: [ - 0.196078431372549, - 0.5333333333333333, - 0.7411764705882353 - ] - }, - { - IndexedColors: [ - 0.8352941176470589, - 0.2431372549019608, - 0.3098039215686275, - 0.9882352941176471, - 0.5529411764705883, - 0.3490196078431372, - 0.996078431372549, - 0.8784313725490196, - 0.5450980392156862, - 1, - 1, - 0.7490196078431373, - 0.9019607843137255, - 0.9607843137254902, - 0.596078431372549, - 0.6, - 0.8352941176470589, - 0.5803921568627451, - 0.196078431372549, - 0.5333333333333333, - 0.7411764705882353 - ], - Name: "Brewer Diverging Spectral (7)", - NanColor: [ - 0.196078431372549, - 0.5333333333333333, - 0.7411764705882353 - ] - }, - { - IndexedColors: [ - 0.8352941176470589, - 0.2431372549019608, - 0.3098039215686275, - 0.9882352941176471, - 0.5529411764705883, - 0.3490196078431372, - 0.996078431372549, - 0.8784313725490196, - 0.5450980392156862, - 0.9019607843137255, - 0.9607843137254902, - 0.596078431372549, - 0.6, - 0.8352941176470589, - 0.5803921568627451, - 0.196078431372549, - 0.5333333333333333, - 0.7411764705882353 - ], - Name: "Brewer Diverging Spectral (6)", - NanColor: [ - 0.196078431372549, - 0.5333333333333333, - 0.7411764705882353 - ] - }, - { - IndexedColors: [ - 0.8431372549019608, - 0.09803921568627451, - 0.1098039215686274, - 0.9921568627450981, - 0.6823529411764706, - 0.3803921568627451, - 1, - 1, - 0.7490196078431373, - 0.6705882352941176, - 0.8666666666666667, - 0.6431372549019608, - 0.1686274509803922, - 0.5137254901960784, - 0.7294117647058823 - ], - Name: "Brewer Diverging Spectral (5)", - NanColor: [ - 0.1686274509803922, - 0.5137254901960784, - 0.7294117647058823 - ] - }, - { - IndexedColors: [ - 0.8431372549019608, - 0.09803921568627451, - 0.1098039215686274, - 0.9921568627450981, - 0.6823529411764706, - 0.3803921568627451, - 0.6705882352941176, - 0.8666666666666667, - 0.6431372549019608, - 0.1686274509803922, - 0.5137254901960784, - 0.7294117647058823 - ], - Name: "Brewer Diverging Spectral (4)", - NanColor: [ - 0.1686274509803922, - 0.5137254901960784, - 0.7294117647058823 - ] - }, - { - IndexedColors: [ - 0.9882352941176471, - 0.5529411764705883, - 0.3490196078431372, - 1, - 1, - 0.7490196078431373, - 0.6, - 0.8352941176470589, - 0.5803921568627451 - ], - Name: "Brewer Diverging Spectral (3)", - NanColor: [ - 0.6, - 0.8352941176470589, - 0.5803921568627451 - ] - }, - { - IndexedColors: [ - 0.3294117647058823, - 0.1882352941176471, - 0.0196078431372549, - 0.5490196078431373, - 0.3176470588235294, - 0.0392156862745098, - 0.7490196078431373, - 0.5058823529411764, - 0.1764705882352941, - 0.8745098039215686, - 0.7607843137254902, - 0.4901960784313725, - 0.9647058823529412, - 0.9098039215686274, - 0.7647058823529411, - 0.9607843137254902, - 0.9607843137254902, - 0.9607843137254902, - 0.7803921568627451, - 0.9176470588235294, - 0.8980392156862745, - 0.5019607843137255, - 0.803921568627451, - 0.7568627450980392, - 0.207843137254902, - 0.592156862745098, - 0.5607843137254902, - 0.00392156862745098, - 0.4, - 0.3686274509803922, - 0, - 0.2352941176470588, - 0.1882352941176471 - ], - Name: "Brewer Diverging Brown-Blue-Green (11)", - NanColor: [ - 0, - 0.2352941176470588, - 0.1882352941176471 - ] - }, - { - IndexedColors: [ - 0.3294117647058823, - 0.1882352941176471, - 0.0196078431372549, - 0.5490196078431373, - 0.3176470588235294, - 0.0392156862745098, - 0.7490196078431373, - 0.5058823529411764, - 0.1764705882352941, - 0.8745098039215686, - 0.7607843137254902, - 0.4901960784313725, - 0.9647058823529412, - 0.9098039215686274, - 0.7647058823529411, - 0.7803921568627451, - 0.9176470588235294, - 0.8980392156862745, - 0.5019607843137255, - 0.803921568627451, - 0.7568627450980392, - 0.207843137254902, - 0.592156862745098, - 0.5607843137254902, - 0.00392156862745098, - 0.4, - 0.3686274509803922, - 0, - 0.2352941176470588, - 0.1882352941176471 - ], - Name: "Brewer Diverging Brown-Blue-Green (10)", - NanColor: [ - 0, - 0.2352941176470588, - 0.1882352941176471 - ] - }, - { - IndexedColors: [ - 0.5490196078431373, - 0.3176470588235294, - 0.0392156862745098, - 0.7490196078431373, - 0.5058823529411764, - 0.1764705882352941, - 0.8745098039215686, - 0.7607843137254902, - 0.4901960784313725, - 0.9647058823529412, - 0.9098039215686274, - 0.7647058823529411, - 0.9607843137254902, - 0.9607843137254902, - 0.9607843137254902, - 0.7803921568627451, - 0.9176470588235294, - 0.8980392156862745, - 0.5019607843137255, - 0.803921568627451, - 0.7568627450980392, - 0.207843137254902, - 0.592156862745098, - 0.5607843137254902, - 0.00392156862745098, - 0.4, - 0.3686274509803922 - ], - Name: "Brewer Diverging Brown-Blue-Green (9)", - NanColor: [ - 0.00392156862745098, - 0.4, - 0.3686274509803922 - ] - }, - { - IndexedColors: [ - 0.5490196078431373, - 0.3176470588235294, - 0.0392156862745098, - 0.7490196078431373, - 0.5058823529411764, - 0.1764705882352941, - 0.8745098039215686, - 0.7607843137254902, - 0.4901960784313725, - 0.9647058823529412, - 0.9098039215686274, - 0.7647058823529411, - 0.7803921568627451, - 0.9176470588235294, - 0.8980392156862745, - 0.5019607843137255, - 0.803921568627451, - 0.7568627450980392, - 0.207843137254902, - 0.592156862745098, - 0.5607843137254902, - 0.00392156862745098, - 0.4, - 0.3686274509803922 - ], - Name: "Brewer Diverging Brown-Blue-Green (8)", - NanColor: [ - 0.00392156862745098, - 0.4, - 0.3686274509803922 - ] - }, - { - IndexedColors: [ - 0.5490196078431373, - 0.3176470588235294, - 0.0392156862745098, - 0.8470588235294118, - 0.7019607843137254, - 0.396078431372549, - 0.9647058823529412, - 0.9098039215686274, - 0.7647058823529411, - 0.9607843137254902, - 0.9607843137254902, - 0.9607843137254902, - 0.7803921568627451, - 0.9176470588235294, - 0.8980392156862745, - 0.3529411764705883, - 0.7058823529411765, - 0.6745098039215687, - 0.00392156862745098, - 0.4, - 0.3686274509803922 - ], - Name: "Brewer Diverging Brown-Blue-Green (7)", - NanColor: [ - 0.00392156862745098, - 0.4, - 0.3686274509803922 - ] - }, - { - IndexedColors: [ - 0.5490196078431373, - 0.3176470588235294, - 0.0392156862745098, - 0.8470588235294118, - 0.7019607843137254, - 0.396078431372549, - 0.9647058823529412, - 0.9098039215686274, - 0.7647058823529411, - 0.7803921568627451, - 0.9176470588235294, - 0.8980392156862745, - 0.3529411764705883, - 0.7058823529411765, - 0.6745098039215687, - 0.00392156862745098, - 0.4, - 0.3686274509803922 - ], - Name: "Brewer Diverging Brown-Blue-Green (6)", - NanColor: [ - 0.00392156862745098, - 0.4, - 0.3686274509803922 - ] - }, - { - IndexedColors: [ - 0.6509803921568628, - 0.3803921568627451, - 0.1019607843137255, - 0.8745098039215686, - 0.7607843137254902, - 0.4901960784313725, - 0.9607843137254902, - 0.9607843137254902, - 0.9607843137254902, - 0.5019607843137255, - 0.803921568627451, - 0.7568627450980392, - 0.00392156862745098, - 0.5215686274509804, - 0.4431372549019608 - ], - Name: "Brewer Diverging Brown-Blue-Green (5)", - NanColor: [ - 0.00392156862745098, - 0.5215686274509804, - 0.4431372549019608 - ] - }, - { - IndexedColors: [ - 0.6509803921568628, - 0.3803921568627451, - 0.1019607843137255, - 0.8745098039215686, - 0.7607843137254902, - 0.4901960784313725, - 0.5019607843137255, - 0.803921568627451, - 0.7568627450980392, - 0.00392156862745098, - 0.5215686274509804, - 0.4431372549019608 - ], - Name: "Brewer Diverging Brown-Blue-Green (4)", - NanColor: [ - 0.00392156862745098, - 0.5215686274509804, - 0.4431372549019608 - ] - }, - { - IndexedColors: [ - 0.8470588235294118, - 0.7019607843137254, - 0.396078431372549, - 0.9607843137254902, - 0.9607843137254902, - 0.9607843137254902, - 0.3529411764705883, - 0.7058823529411765, - 0.6745098039215687 - ], - Name: "Brewer Diverging Brown-Blue-Green (3)", - NanColor: [ - 0.3529411764705883, - 0.7058823529411765, - 0.6745098039215687 - ] - }, - { - IndexedColors: [ - 0.9686274509803922, - 0.9882352941176471, - 0.9921568627450981, - 0.8980392156862745, - 0.9607843137254902, - 0.9764705882352941, - 0.8, - 0.9254901960784314, - 0.9019607843137255, - 0.6, - 0.8470588235294118, - 0.788235294117647, - 0.4, - 0.7607843137254902, - 0.6431372549019608, - 0.2549019607843137, - 0.6823529411764706, - 0.4627450980392157, - 0.1372549019607843, - 0.5450980392156862, - 0.2705882352941176, - 0, - 0.4274509803921568, - 0.1725490196078431, - 0, - 0.2666666666666667, - 0.1058823529411765 - ], - Name: "Brewer Sequential Blue-Green (9)", - NanColor: [ - 0, - 0.2666666666666667, - 0.1058823529411765 - ] - }, - { - IndexedColors: [ - 0.9686274509803922, - 0.9882352941176471, - 0.9921568627450981, - 0.8980392156862745, - 0.9607843137254902, - 0.9764705882352941, - 0.8, - 0.9254901960784314, - 0.9019607843137255, - 0.6, - 0.8470588235294118, - 0.788235294117647, - 0.4, - 0.7607843137254902, - 0.6431372549019608, - 0.2549019607843137, - 0.6823529411764706, - 0.4627450980392157, - 0.1372549019607843, - 0.5450980392156862, - 0.2705882352941176, - 0, - 0.3450980392156863, - 0.1411764705882353 - ], - Name: "Brewer Sequential Blue-Green (8)", - NanColor: [ - 0, - 0.3450980392156863, - 0.1411764705882353 - ] - }, - { - IndexedColors: [ - 0.9294117647058824, - 0.9725490196078431, - 0.984313725490196, - 0.8, - 0.9254901960784314, - 0.9019607843137255, - 0.8, - 0.9254901960784314, - 0.9019607843137255, - 0.4, - 0.7607843137254902, - 0.6431372549019608, - 0.2549019607843137, - 0.6823529411764706, - 0.4627450980392157, - 0.1372549019607843, - 0.5450980392156862, - 0.2705882352941176, - 0, - 0.3450980392156863, - 0.1411764705882353 - ], - Name: "Brewer Sequential Blue-Green (7)", - NanColor: [ - 0, - 0.3450980392156863, - 0.1411764705882353 - ] - }, - { - IndexedColors: [ - 0.9294117647058824, - 0.9725490196078431, - 0.984313725490196, - 0.8, - 0.9254901960784314, - 0.9019607843137255, - 0.6, - 0.8470588235294118, - 0.788235294117647, - 0.4, - 0.7607843137254902, - 0.6431372549019608, - 0.1725490196078431, - 0.6352941176470588, - 0.3725490196078431, - 0, - 0.4274509803921568, - 0.1725490196078431 - ], - Name: "Brewer Sequential Blue-Green (6)", - NanColor: [ - 0, - 0.4274509803921568, - 0.1725490196078431 - ] - }, - { - IndexedColors: [ - 0.9294117647058824, - 0.9725490196078431, - 0.984313725490196, - 0.6980392156862745, - 0.8862745098039215, - 0.8862745098039215, - 0.4, - 0.7607843137254902, - 0.6431372549019608, - 0.1725490196078431, - 0.6352941176470588, - 0.3725490196078431, - 0, - 0.4274509803921568, - 0.1725490196078431 - ], - Name: "Brewer Sequential Blue-Green (5)", - NanColor: [ - 0, - 0.4274509803921568, - 0.1725490196078431 - ] - }, - { - IndexedColors: [ - 0.9294117647058824, - 0.9725490196078431, - 0.984313725490196, - 0.6980392156862745, - 0.8862745098039215, - 0.8862745098039215, - 0.4, - 0.7607843137254902, - 0.6431372549019608, - 0.1372549019607843, - 0.5450980392156862, - 0.2705882352941176 - ], - Name: "Brewer Sequential Blue-Green (4)", - NanColor: [ - 0.1372549019607843, - 0.5450980392156862, - 0.2705882352941176 - ] - }, - { - IndexedColors: [ - 0.8980392156862745, - 0.9607843137254902, - 0.9764705882352941, - 0.6, - 0.8470588235294118, - 0.788235294117647, - 0.1725490196078431, - 0.6352941176470588, - 0.3725490196078431 - ], - Name: "Brewer Sequential Blue-Green (3)", - NanColor: [ - 0.1725490196078431, - 0.6352941176470588, - 0.3725490196078431 - ] - }, - { - IndexedColors: [ - 1, - 1, - 0.8980392156862745, - 1, - 0.9686274509803922, - 0.7372549019607844, - 0.996078431372549, - 0.8901960784313725, - 0.5686274509803921, - 0.996078431372549, - 0.7686274509803922, - 0.3098039215686275, - 0.996078431372549, - 0.6, - 0.1607843137254902, - 0.9254901960784314, - 0.4392156862745098, - 0.0784313725490196, - 0.8, - 0.2980392156862745, - 0.00784313725490196, - 0.6, - 0.203921568627451, - 0.01568627450980392, - 0.4, - 0.1450980392156863, - 0.02352941176470588 - ], - Name: "Brewer Sequential Yellow-Orange-Brown (9)", - NanColor: [ - 0.4, - 0.1450980392156863, - 0.02352941176470588 - ] - }, - { - IndexedColors: [ - 1, - 1, - 0.8980392156862745, - 1, - 0.9686274509803922, - 0.7372549019607844, - 0.996078431372549, - 0.8901960784313725, - 0.5686274509803921, - 0.996078431372549, - 0.7686274509803922, - 0.3098039215686275, - 0.996078431372549, - 0.6, - 0.1607843137254902, - 0.9254901960784314, - 0.4392156862745098, - 0.0784313725490196, - 0.8, - 0.2980392156862745, - 0.00784313725490196, - 0.5490196078431373, - 0.1764705882352941, - 0.01568627450980392 - ], - Name: "Brewer Sequential Yellow-Orange-Brown (8)", - NanColor: [ - 0.5490196078431373, - 0.1764705882352941, - 0.01568627450980392 - ] - }, - { - IndexedColors: [ - 1, - 1, - 0.8313725490196079, - 0.996078431372549, - 0.8901960784313725, - 0.5686274509803921, - 0.996078431372549, - 0.7686274509803922, - 0.3098039215686275, - 0.996078431372549, - 0.6, - 0.1607843137254902, - 0.9254901960784314, - 0.4392156862745098, - 0.0784313725490196, - 0.8, - 0.2980392156862745, - 0.00784313725490196, - 0.5490196078431373, - 0.1764705882352941, - 0.01568627450980392 - ], - Name: "Brewer Sequential Yellow-Orange-Brown (7)", - NanColor: [ - 0.5490196078431373, - 0.1764705882352941, - 0.01568627450980392 - ] - }, - { - IndexedColors: [ - 1, - 1, - 0.8313725490196079, - 0.996078431372549, - 0.8901960784313725, - 0.5686274509803921, - 0.996078431372549, - 0.7686274509803922, - 0.3098039215686275, - 0.996078431372549, - 0.6, - 0.1607843137254902, - 0.8509803921568627, - 0.3725490196078431, - 0.05490196078431372, - 0.6, - 0.203921568627451, - 0.01568627450980392 - ], - Name: "Brewer Sequential Yellow-Orange-Brown (6)", - NanColor: [ - 0.6, - 0.203921568627451, - 0.01568627450980392 - ] - }, - { - IndexedColors: [ - 1, - 1, - 0.8313725490196079, - 0.996078431372549, - 0.8509803921568627, - 0.5568627450980392, - 0.996078431372549, - 0.6, - 0.1607843137254902, - 0.8509803921568627, - 0.3725490196078431, - 0.05490196078431372, - 0.6, - 0.203921568627451, - 0.01568627450980392 - ], - Name: "Brewer Sequential Yellow-Orange-Brown (5)", - NanColor: [ - 0.6, - 0.203921568627451, - 0.01568627450980392 - ] - }, - { - IndexedColors: [ - 1, - 1, - 0.8313725490196079, - 0.996078431372549, - 0.8509803921568627, - 0.5568627450980392, - 0.996078431372549, - 0.6, - 0.1607843137254902, - 0.8, - 0.2980392156862745, - 0.00784313725490196 - ], - Name: "Brewer Sequential Yellow-Orange-Brown (4)", - NanColor: [ - 0.8, - 0.2980392156862745, - 0.00784313725490196 - ] - }, - { - IndexedColors: [ - 1, - 0.9686274509803922, - 0.7372549019607844, - 0.996078431372549, - 0.7686274509803922, - 0.3098039215686275, - 0.8509803921568627, - 0.3725490196078431, - 0.05490196078431372 - ], - Name: "Brewer Sequential Yellow-Orange-Brown (3)", - NanColor: [ - 0.8509803921568627, - 0.3725490196078431, - 0.05490196078431372 - ] - }, - { - IndexedColors: [ - 0.9686274509803922, - 0.9882352941176471, - 0.9921568627450981, - 0.8784313725490196, - 0.9254901960784314, - 0.9568627450980393, - 0.7490196078431373, - 0.8274509803921568, - 0.9019607843137255, - 0.6196078431372549, - 0.7372549019607844, - 0.8549019607843137, - 0.5490196078431373, - 0.5882352941176471, - 0.7764705882352941, - 0.5490196078431373, - 0.4196078431372549, - 0.6941176470588235, - 0.5333333333333333, - 0.2549019607843137, - 0.615686274509804, - 0.5058823529411764, - 0.05882352941176471, - 0.4862745098039216, - 0.3019607843137255, - 0, - 0.2941176470588235 - ], - Name: "Brewer Sequential Blue-Purple (9)", - NanColor: [ - 0.3019607843137255, - 0, - 0.2941176470588235 - ] - }, - { - IndexedColors: [ - 0.9686274509803922, - 0.9882352941176471, - 0.9921568627450981, - 0.8784313725490196, - 0.9254901960784314, - 0.9568627450980393, - 0.7490196078431373, - 0.8274509803921568, - 0.9019607843137255, - 0.6196078431372549, - 0.7372549019607844, - 0.8549019607843137, - 0.5490196078431373, - 0.5882352941176471, - 0.7764705882352941, - 0.5490196078431373, - 0.4196078431372549, - 0.6941176470588235, - 0.5333333333333333, - 0.2549019607843137, - 0.615686274509804, - 0.4313725490196079, - 0.00392156862745098, - 0.4196078431372549 - ], - Name: "Brewer Sequential Blue-Purple (8)", - NanColor: [ - 0.4313725490196079, - 0.00392156862745098, - 0.4196078431372549 - ] - }, - { - IndexedColors: [ - 0.9294117647058824, - 0.9725490196078431, - 0.984313725490196, - 0.7490196078431373, - 0.8274509803921568, - 0.9019607843137255, - 0.6196078431372549, - 0.7372549019607844, - 0.8549019607843137, - 0.5490196078431373, - 0.5882352941176471, - 0.7764705882352941, - 0.5490196078431373, - 0.4196078431372549, - 0.6941176470588235, - 0.5333333333333333, - 0.2549019607843137, - 0.615686274509804, - 0.4313725490196079, - 0.00392156862745098, - 0.4196078431372549 - ], - Name: "Brewer Sequential Blue-Purple (7)", - NanColor: [ - 0.4313725490196079, - 0.00392156862745098, - 0.4196078431372549 - ] - }, - { - IndexedColors: [ - 0.9294117647058824, - 0.9725490196078431, - 0.984313725490196, - 0.7490196078431373, - 0.8274509803921568, - 0.9019607843137255, - 0.6196078431372549, - 0.7372549019607844, - 0.8549019607843137, - 0.5490196078431373, - 0.5882352941176471, - 0.7764705882352941, - 0.5333333333333333, - 0.3372549019607843, - 0.6549019607843137, - 0.5058823529411764, - 0.05882352941176471, - 0.4862745098039216 - ], - Name: "Brewer Sequential Blue-Purple (6)", - NanColor: [ - 0.5058823529411764, - 0.05882352941176471, - 0.4862745098039216 - ] - }, - { - IndexedColors: [ - 0.9294117647058824, - 0.9725490196078431, - 0.984313725490196, - 0.7019607843137254, - 0.803921568627451, - 0.8901960784313725, - 0.5490196078431373, - 0.5882352941176471, - 0.7764705882352941, - 0.5333333333333333, - 0.3372549019607843, - 0.6549019607843137, - 0.5058823529411764, - 0.05882352941176471, - 0.4862745098039216 - ], - Name: "Brewer Sequential Blue-Purple (5)", - NanColor: [ - 0.5058823529411764, - 0.05882352941176471, - 0.4862745098039216 - ] - }, - { - IndexedColors: [ - 0.9294117647058824, - 0.9725490196078431, - 0.984313725490196, - 0.7019607843137254, - 0.803921568627451, - 0.8901960784313725, - 0.5490196078431373, - 0.5882352941176471, - 0.7764705882352941, - 0.5333333333333333, - 0.2549019607843137, - 0.615686274509804 - ], - Name: "Brewer Sequential Blue-Purple (4)", - NanColor: [ - 0.5333333333333333, - 0.2549019607843137, - 0.615686274509804 - ] - }, - { - IndexedColors: [ - 0.8784313725490196, - 0.9254901960784314, - 0.9568627450980393, - 0.6196078431372549, - 0.7372549019607844, - 0.8549019607843137, - 0.5333333333333333, - 0.3372549019607843, - 0.6549019607843137 - ], - Name: "Brewer Sequential Blue-Purple (3)", - NanColor: [ - 0.5333333333333333, - 0.3372549019607843, - 0.6549019607843137 - ] - }, - { - IndexedColors: [ - 0.4980392156862745, - 0.788235294117647, - 0.4980392156862745, - 0.7450980392156863, - 0.6823529411764706, - 0.8313725490196079, - 0.9921568627450981, - 0.7529411764705882, - 0.5254901960784314, - 1, - 1, - 0.6, - 0.2196078431372549, - 0.4235294117647059, - 0.6901960784313725, - 0.9411764705882353, - 0.00784313725490196, - 0.4980392156862745, - 0.7490196078431373, - 0.3568627450980392, - 0.09019607843137255, - 0.4, - 0.4, - 0.4 - ], - Name: "Brewer Qualitative Accent", - NanColor: [ - 0.4, - 0.4, - 0.4 - ] - }, - { - IndexedColors: [ - 0.1058823529411765, - 0.6196078431372549, - 0.4666666666666667, - 0.8509803921568627, - 0.3725490196078431, - 0.00784313725490196, - 0.4588235294117647, - 0.4392156862745098, - 0.7019607843137254, - 0.9058823529411765, - 0.1607843137254902, - 0.5411764705882353, - 0.4, - 0.6509803921568628, - 0.1176470588235294, - 0.9019607843137255, - 0.6705882352941176, - 0.00784313725490196, - 0.6509803921568628, - 0.4627450980392157, - 0.1137254901960784, - 0.4, - 0.4, - 0.4 - ], - Name: "Brewer Qualitative Dark2", - NanColor: [ - 0.4, - 0.4, - 0.4 - ] - }, - { - IndexedColors: [ - 0.4, - 0.7607843137254902, - 0.6470588235294118, - 0.9882352941176471, - 0.5529411764705883, - 0.3843137254901961, - 0.5529411764705883, - 0.6274509803921569, - 0.796078431372549, - 0.9058823529411765, - 0.5411764705882353, - 0.7647058823529411, - 0.6509803921568628, - 0.8470588235294118, - 0.3294117647058823, - 1, - 0.8509803921568627, - 0.1843137254901961, - 0.8980392156862745, - 0.7686274509803922, - 0.5803921568627451, - 0.7019607843137254, - 0.7019607843137254, - 0.7019607843137254 - ], - Name: "Brewer Qualitative Set2", - NanColor: [ - 0.7019607843137254, - 0.7019607843137254, - 0.7019607843137254 - ] - }, - { - IndexedColors: [ - 0.7019607843137254, - 0.8862745098039215, - 0.803921568627451, - 0.9921568627450981, - 0.803921568627451, - 0.6745098039215687, - 0.796078431372549, - 0.8352941176470589, - 0.9098039215686274, - 0.9568627450980393, - 0.792156862745098, - 0.8941176470588236, - 0.9019607843137255, - 0.9607843137254902, - 0.788235294117647, - 1, - 0.9490196078431372, - 0.6823529411764706, - 0.9450980392156862, - 0.8862745098039215, - 0.8, - 0.8, - 0.8, - 0.8 - ], - Name: "Brewer Qualitative Pastel2", - NanColor: [ - 0.8, - 0.8, - 0.8 - ] - }, - { - IndexedColors: [ - 0.984313725490196, - 0.7058823529411765, - 0.6823529411764706, - 0.7019607843137254, - 0.803921568627451, - 0.8901960784313725, - 0.8, - 0.9215686274509803, - 0.7725490196078432, - 0.8705882352941177, - 0.796078431372549, - 0.8941176470588236, - 0.996078431372549, - 0.8509803921568627, - 0.6509803921568628, - 1, - 1, - 0.8, - 0.8980392156862745, - 0.8470588235294118, - 0.7411764705882353, - 0.9921568627450981, - 0.8549019607843137, - 0.9254901960784314, - 0.9490196078431372, - 0.9490196078431372, - 0.9490196078431372 - ], - Name: "Brewer Qualitative Pastel1", - NanColor: [ - 0.9490196078431372, - 0.9490196078431372, - 0.9490196078431372 - ] - }, - { - IndexedColors: [ - 0.8941176470588236, - 0.1019607843137255, - 0.1098039215686274, - 0.2156862745098039, - 0.4941176470588236, - 0.7215686274509804, - 0.3019607843137255, - 0.6862745098039216, - 0.2901960784313726, - 0.596078431372549, - 0.3058823529411765, - 0.6392156862745098, - 1, - 0.4980392156862745, - 0, - 1, - 1, - 0.2, - 0.6509803921568628, - 0.3372549019607843, - 0.1568627450980392, - 0.9686274509803922, - 0.5058823529411764, - 0.7490196078431373, - 0.6, - 0.6, - 0.6 - ], - Name: "Brewer Qualitative Set1", - NanColor: [ - 0.6, - 0.6, - 0.6 - ] - }, - { - IndexedColors: [ - 0.6509803921568628, - 0.807843137254902, - 0.8901960784313725, - 0.1215686274509804, - 0.4705882352941176, - 0.7058823529411765, - 0.6980392156862745, - 0.8745098039215686, - 0.5411764705882353, - 0.2, - 0.6274509803921569, - 0.1725490196078431, - 0.984313725490196, - 0.6039215686274509, - 0.6, - 0.8901960784313725, - 0.1019607843137255, - 0.1098039215686274, - 0.9921568627450981, - 0.7490196078431373, - 0.4352941176470588, - 1, - 0.4980392156862745, - 0, - 0.792156862745098, - 0.6980392156862745, - 0.8392156862745098, - 0.4156862745098039, - 0.2392156862745098, - 0.6039215686274509, - 1, - 1, - 0.6 - ], - Name: "Brewer Qualitative Paired", - NanColor: [ - 1, - 1, - 0.6 - ] - }, - { - IndexedColors: [ - 0.5529411764705883, - 0.8274509803921568, - 0.7803921568627451, - 1, - 1, - 0.7019607843137254, - 0.7450980392156863, - 0.7294117647058823, - 0.8549019607843137, - 0.984313725490196, - 0.5019607843137255, - 0.4470588235294118, - 0.5019607843137255, - 0.6941176470588235, - 0.8274509803921568, - 0.9921568627450981, - 0.7058823529411765, - 0.3843137254901961, - 0.7019607843137254, - 0.8705882352941177, - 0.4117647058823529, - 0.9882352941176471, - 0.803921568627451, - 0.8980392156862745, - 0.8509803921568627, - 0.8509803921568627, - 0.8509803921568627, - 0.7372549019607844, - 0.5019607843137255, - 0.7411764705882353, - 0.8, - 0.9215686274509803, - 0.7725490196078432, - 1, - 0.9294117647058824, - 0.4352941176470588 - ], - Name: "Brewer Qualitative Set3", - NanColor: [ - 1, - 0.9294117647058824, - 0.4352941176470588 - ] - }, - { - IndexedColors: [ - 1, - 0, - 0, - 1, - 0.862745, - 0, - 0, - 0.695201, - 0 - ], - Name: "Traffic Lights", - NanColor: [ - 0.803922, - 0, - 0.803922 - ] - }, - { - IndexedColors: [ - 0.908659, - 0.604013, - 0.581857, - 1, - 0.862745, - 0, - 0, - 0.695201, - 0 - ], - Name: "Traffic Lights For Deuteranopes", - NanColor: [ - 0.803922, - 0, - 0.803922 - ] - }, - { - IndexedColors: [ - 0.4196078431372549, - 0, - 0.07058823529411765, - 0.9019607843137255, - 0.9411764705882353, - 0.0196078431372549, - 0.01568627450980392, - 0.6196078431372549, - 0.00784313725490196 - ], - Name: "Traffic Lights For Deuteranopes 2", - NanColor: [ - 0.803922, - 0, - 0.803922 - ] - }, - { - ColorSpace: "Lab", - Creator: "Francesca Samsel", - Name: "Muted Blue-Green", - NanColor: [ - 0.25, - 0, - 0 - ], - RGBPoints: [ - 0, - 0.109804, - 0.27451, - 0.301961, - 0.02, - 0.129412, - 0.309804, - 0.341176, - 0.05, - 0.14902, - 0.341176, - 0.380392, - 0.1, - 0.188235, - 0.403922, - 0.458824, - 0.15, - 0.227451, - 0.447059, - 0.521569, - 0.2, - 0.290196, - 0.494118, - 0.588235, - 0.25, - 0.368627, - 0.552941, - 0.670588, - 0.3, - 0.458824, - 0.619608, - 0.74902, - 0.35, - 0.588235, - 0.713725, - 0.85098, - 0.4, - 0.72549, - 0.815686, - 0.941176, - 0.45, - 0.831373, - 0.882353, - 0.980392, - 0.475, - 0.909804, - 0.933333, - 1, - 0.5, - 0.980392, - 0.984314, - 1, - 0.5, - 0.996078, - 1, - 0.94902, - 0.5, - 1, - 1, - 0.980392, - 0.5, - 0.980392, - 0.984314, - 1, - 0.525, - 0.972549, - 0.988235, - 0.890196, - 0.55, - 0.917647, - 0.960784, - 0.835294, - 0.6, - 0.835294, - 0.921569, - 0.772549, - 0.65, - 0.768627, - 0.901961, - 0.737255, - 0.7, - 0.670588, - 0.831373, - 0.654902, - 0.75, - 0.576471, - 0.760784, - 0.584314, - 0.8, - 0.498039, - 0.678431, - 0.521569, - 0.85, - 0.392157, - 0.560784, - 0.427451, - 0.9, - 0.294118, - 0.45098, - 0.333333, - 0.95, - 0.211765, - 0.34902, - 0.254902, - 1, - 0.152941, - 0.278431, - 0.196078 - ] - }, - { - ColorSpace: "Lab", - Creator: "Francesca Samsel", - Name: "Green-Blue Asymmetric Divergent (62Blbc)", - NanColor: [ - 0.25, - 0, - 0 - ], - RGBPoints: [ - 0, - 0.121569, - 0.2, - 0.145098, - 0.05, - 0.196078, - 0.301961, - 0.223529, - 0.1, - 0.258824, - 0.4, - 0.278431, - 0.2, - 0.341176, - 0.54902, - 0.341176, - 0.25, - 0.419608, - 0.619608, - 0.376471, - 0.3, - 0.545098, - 0.701961, - 0.392157, - 0.35, - 0.643137, - 0.780392, - 0.403922, - 0.4, - 0.729412, - 0.819608, - 0.45098, - 0.45, - 0.811765, - 0.870588, - 0.521569, - 0.5, - 0.898039, - 0.909804, - 0.564706, - 0.55, - 0.941176, - 0.92549, - 0.686275, - 0.6, - 0.960784, - 0.94902, - 0.776471, - 0.64, - 1, - 1, - 1, - 0.65, - 0.890196, - 0.988235, - 0.972549, - 0.7, - 0.721569, - 0.894118, - 0.901961, - 0.75, - 0.631373, - 0.823529, - 0.839216, - 0.8, - 0.517647, - 0.662745, - 0.701961, - 0.85, - 0.384314, - 0.494118, - 0.54902, - 0.9, - 0.298039, - 0.360784, - 0.45098, - 0.95, - 0.223529, - 0.25098, - 0.34902, - 0.99, - 0.156863, - 0.172549, - 0.25098, - 1, - 0.137255, - 0.137255, - 0.188235 - ] - }, - { - ColorSpace: "Lab", - Creator: "Francesca Samsel", - Name: "Asymmtrical Earth Tones (6_21b)", - NanColor: [ - 0.25, - 0, - 0 - ], - RGBPoints: [ - 0, - 0.141176, - 0.14902, - 0.2, - 0.05, - 0.215686, - 0.258824, - 0.321569, - 0.1, - 0.243137, - 0.368627, - 0.380392, - 0.15, - 0.27451, - 0.439216, - 0.4, - 0.2, - 0.32549, - 0.501961, - 0.384314, - 0.25, - 0.403922, - 0.6, - 0.419608, - 0.3, - 0.486275, - 0.701961, - 0.454902, - 0.35, - 0.556863, - 0.74902, - 0.494118, - 0.4, - 0.670588, - 0.8, - 0.545098, - 0.5, - 0.854902, - 0.901961, - 0.631373, - 0.55, - 0.92549, - 0.941176, - 0.694118, - 0.6, - 0.960784, - 0.94902, - 0.776471, - 0.65, - 0.988235, - 0.968627, - 0.909804, - 0.7, - 0.839216, - 0.815686, - 0.772549, - 0.75, - 0.701961, - 0.662745, - 0.615686, - 0.8, - 0.6, - 0.529412, - 0.478431, - 0.85, - 0.501961, - 0.403922, - 0.360784, - 0.9, - 0.439216, - 0.313725, - 0.290196, - 1, - 0.301961, - 0.164706, - 0.176471 - ] - }, - { - ColorSpace: "Lab", - Creator: "Francesca Samsel", - Name: "Yellow 15", - NanColor: [ - 0.25, - 0, - 0 - ], - RGBPoints: [ - 0, - 1, - 1, - 0.988235, - 0.002, - 1, - 1, - 0.988235, - 0.05, - 0.984314, - 0.988235, - 0.843137, - 0.1, - 0.988235, - 0.988235, - 0.741176, - 0.15, - 0.980392, - 0.968627, - 0.654902, - 0.2, - 0.980392, - 0.945098, - 0.576471, - 0.25, - 0.968627, - 0.905882, - 0.486275, - 0.3, - 0.968627, - 0.862745, - 0.388235, - 0.35, - 0.960784, - 0.803922, - 0.286275, - 0.4, - 0.94902, - 0.741176, - 0.219608, - 0.45, - 0.941176, - 0.678431, - 0.14902, - 0.5, - 0.929412, - 0.607843, - 0.094118, - 0.55, - 0.921569, - 0.545098, - 0.054902, - 0.6, - 0.909804, - 0.486275, - 0.035294, - 0.65, - 0.890196, - 0.411765, - 0.019608, - 0.7, - 0.8, - 0.305882, - 0, - 0.75, - 0.760784, - 0.239216, - 0, - 0.8, - 0.678431, - 0.180392, - 0.011765, - 0.85, - 0.6, - 0.121569, - 0.023529, - 0.9, - 0.501961, - 0.054902, - 0.031373, - 0.95, - 0.4, - 0.039216, - 0.058824, - 1, - 0.301961, - 0.047059, - 0.090196 - ] - }, - { - ColorSpace: "Diverging", - Name: "Magma (matplotlib)", - NanColor: [ - 0, - 1, - 0 - ], - Source: "https://github.com/BIDS/colormap/blob/master/colormaps.py", - License: "CC0", - Creator: "Nathaniel J. Smith & Stefan van der Walt", - RGBPoints: [ - 0, - 0.001462, - 0.000466, - 0.013866, - 0.003922, - 0.002258, - 0.001295, - 0.018331, - 0.007843, - 0.003279, - 0.002305, - 0.023708, - 0.011765, - 0.004512, - 0.00349, - 0.029965, - 0.015686, - 0.00595, - 0.004843, - 0.03713, - 0.019608, - 0.007588, - 0.006356, - 0.044973, - 0.023529, - 0.009426, - 0.008022, - 0.052844, - 0.027451, - 0.011465, - 0.009828, - 0.06075, - 0.031373, - 0.013708, - 0.011771, - 0.068667, - 0.035294, - 0.016156, - 0.01384, - 0.076603, - 0.039216, - 0.018815, - 0.016026, - 0.084584, - 0.043137, - 0.021692, - 0.01832, - 0.09261, - 0.047059, - 0.024792, - 0.020715, - 0.100676, - 0.05098, - 0.028123, - 0.023201, - 0.108787, - 0.054902, - 0.031696, - 0.025765, - 0.116965, - 0.058824, - 0.03552, - 0.028397, - 0.125209, - 0.062745, - 0.039608, - 0.03109, - 0.133515, - 0.066667, - 0.04383, - 0.03383, - 0.141886, - 0.070588, - 0.048062, - 0.036607, - 0.150327, - 0.07451, - 0.05232, - 0.039407, - 0.158841, - 0.078431, - 0.056615, - 0.04216, - 0.167446, - 0.082353, - 0.060949, - 0.044794, - 0.176129, - 0.086275, - 0.06533, - 0.047318, - 0.184892, - 0.090196, - 0.069764, - 0.049726, - 0.193735, - 0.094118, - 0.074257, - 0.052017, - 0.20266, - 0.098039, - 0.078815, - 0.054184, - 0.211667, - 0.101961, - 0.083446, - 0.056225, - 0.220755, - 0.105882, - 0.088155, - 0.058133, - 0.229922, - 0.109804, - 0.092949, - 0.059904, - 0.239164, - 0.113725, - 0.097833, - 0.061531, - 0.248477, - 0.117647, - 0.102815, - 0.06301, - 0.257854, - 0.121569, - 0.107899, - 0.064335, - 0.267289, - 0.12549, - 0.113094, - 0.065492, - 0.276784, - 0.129412, - 0.118405, - 0.066479, - 0.286321, - 0.133333, - 0.123833, - 0.067295, - 0.295879, - 0.137255, - 0.12938, - 0.067935, - 0.305443, - 0.141176, - 0.135053, - 0.068391, - 0.315, - 0.145098, - 0.140858, - 0.068654, - 0.324538, - 0.14902, - 0.146785, - 0.068738, - 0.334011, - 0.152941, - 0.152839, - 0.068637, - 0.343404, - 0.156863, - 0.159018, - 0.068354, - 0.352688, - 0.160784, - 0.165308, - 0.067911, - 0.361816, - 0.164706, - 0.171713, - 0.067305, - 0.370771, - 0.168627, - 0.178212, - 0.066576, - 0.379497, - 0.172549, - 0.184801, - 0.065732, - 0.387973, - 0.176471, - 0.19146, - 0.064818, - 0.396152, - 0.180392, - 0.198177, - 0.063862, - 0.404009, - 0.184314, - 0.204935, - 0.062907, - 0.411514, - 0.188235, - 0.211718, - 0.061992, - 0.418647, - 0.192157, - 0.218512, - 0.061158, - 0.425392, - 0.196078, - 0.225302, - 0.060445, - 0.431742, - 0.2, - 0.232077, - 0.059889, - 0.437695, - 0.203922, - 0.238826, - 0.059517, - 0.443256, - 0.207843, - 0.245543, - 0.059352, - 0.448436, - 0.211765, - 0.25222, - 0.059415, - 0.453248, - 0.215686, - 0.258857, - 0.059706, - 0.45771, - 0.219608, - 0.265447, - 0.060237, - 0.46184, - 0.223529, - 0.271994, - 0.060994, - 0.46566, - 0.227451, - 0.278493, - 0.061978, - 0.46919, - 0.231373, - 0.284951, - 0.063168, - 0.472451, - 0.235294, - 0.291366, - 0.064553, - 0.475462, - 0.239216, - 0.29774, - 0.066117, - 0.478243, - 0.243137, - 0.304081, - 0.067835, - 0.480812, - 0.247059, - 0.310382, - 0.069702, - 0.483186, - 0.25098, - 0.316654, - 0.07169, - 0.48538, - 0.254902, - 0.322899, - 0.073782, - 0.487408, - 0.258824, - 0.329114, - 0.075972, - 0.489287, - 0.262745, - 0.335308, - 0.078236, - 0.491024, - 0.266667, - 0.341482, - 0.080564, - 0.492631, - 0.270588, - 0.347636, - 0.082946, - 0.494121, - 0.27451, - 0.353773, - 0.085373, - 0.495501, - 0.278431, - 0.359898, - 0.087831, - 0.496778, - 0.282353, - 0.366012, - 0.090314, - 0.49796, - 0.286275, - 0.372116, - 0.092816, - 0.499053, - 0.290196, - 0.378211, - 0.095332, - 0.500067, - 0.294118, - 0.384299, - 0.097855, - 0.501002, - 0.298039, - 0.390384, - 0.100379, - 0.501864, - 0.301961, - 0.396467, - 0.102902, - 0.502658, - 0.305882, - 0.402548, - 0.10542, - 0.503386, - 0.309804, - 0.408629, - 0.10793, - 0.504052, - 0.313725, - 0.414709, - 0.110431, - 0.504662, - 0.317647, - 0.420791, - 0.11292, - 0.505215, - 0.321569, - 0.426877, - 0.115395, - 0.505714, - 0.32549, - 0.432967, - 0.117855, - 0.50616, - 0.329412, - 0.439062, - 0.120298, - 0.506555, - 0.333333, - 0.445163, - 0.122724, - 0.506901, - 0.337255, - 0.451271, - 0.125132, - 0.507198, - 0.341176, - 0.457386, - 0.127522, - 0.507448, - 0.345098, - 0.463508, - 0.129893, - 0.507652, - 0.34902, - 0.46964, - 0.132245, - 0.507809, - 0.352941, - 0.47578, - 0.134577, - 0.507921, - 0.356863, - 0.481929, - 0.136891, - 0.507989, - 0.360784, - 0.488088, - 0.139186, - 0.508011, - 0.364706, - 0.494258, - 0.141462, - 0.507988, - 0.368627, - 0.500438, - 0.143719, - 0.50792, - 0.372549, - 0.506629, - 0.145958, - 0.507806, - 0.376471, - 0.512831, - 0.148179, - 0.507648, - 0.380392, - 0.519045, - 0.150383, - 0.507443, - 0.384314, - 0.52527, - 0.152569, - 0.507192, - 0.388235, - 0.531507, - 0.154739, - 0.506895, - 0.392157, - 0.537755, - 0.156894, - 0.506551, - 0.396078, - 0.544015, - 0.159033, - 0.506159, - 0.4, - 0.550287, - 0.161158, - 0.505719, - 0.403922, - 0.556571, - 0.163269, - 0.50523, - 0.407843, - 0.562866, - 0.165368, - 0.504692, - 0.411765, - 0.569172, - 0.167454, - 0.504105, - 0.415686, - 0.57549, - 0.16953, - 0.503466, - 0.419608, - 0.581819, - 0.171596, - 0.502777, - 0.423529, - 0.588158, - 0.173652, - 0.502035, - 0.427451, - 0.594508, - 0.175701, - 0.501241, - 0.431373, - 0.600868, - 0.177743, - 0.500394, - 0.435294, - 0.607238, - 0.179779, - 0.499492, - 0.439216, - 0.613617, - 0.181811, - 0.498536, - 0.443137, - 0.620005, - 0.18384, - 0.497524, - 0.447059, - 0.626401, - 0.185867, - 0.496456, - 0.45098, - 0.632805, - 0.187893, - 0.495332, - 0.454902, - 0.639216, - 0.189921, - 0.49415, - 0.458824, - 0.645633, - 0.191952, - 0.49291, - 0.462745, - 0.652056, - 0.193986, - 0.491611, - 0.466667, - 0.658483, - 0.196027, - 0.490253, - 0.470588, - 0.664915, - 0.198075, - 0.488836, - 0.47451, - 0.671349, - 0.200133, - 0.487358, - 0.478431, - 0.677786, - 0.202203, - 0.485819, - 0.482353, - 0.684224, - 0.204286, - 0.484219, - 0.486275, - 0.690661, - 0.206384, - 0.482558, - 0.490196, - 0.697098, - 0.208501, - 0.480835, - 0.494118, - 0.703532, - 0.210638, - 0.479049, - 0.498039, - 0.709962, - 0.212797, - 0.477201, - 0.501961, - 0.716387, - 0.214982, - 0.47529, - 0.505882, - 0.722805, - 0.217194, - 0.473316, - 0.509804, - 0.729216, - 0.219437, - 0.471279, - 0.513725, - 0.735616, - 0.221713, - 0.46918, - 0.517647, - 0.742004, - 0.224025, - 0.467018, - 0.521569, - 0.748378, - 0.226377, - 0.464794, - 0.52549, - 0.754737, - 0.228772, - 0.462509, - 0.529412, - 0.761077, - 0.231214, - 0.460162, - 0.533333, - 0.767398, - 0.233705, - 0.457755, - 0.537255, - 0.773695, - 0.236249, - 0.455289, - 0.541176, - 0.779968, - 0.238851, - 0.452765, - 0.545098, - 0.786212, - 0.241514, - 0.450184, - 0.54902, - 0.792427, - 0.244242, - 0.447543, - 0.552941, - 0.798608, - 0.24704, - 0.444848, - 0.556863, - 0.804752, - 0.249911, - 0.442102, - 0.560784, - 0.810855, - 0.252861, - 0.439305, - 0.564706, - 0.816914, - 0.255895, - 0.436461, - 0.568627, - 0.822926, - 0.259016, - 0.433573, - 0.572549, - 0.828886, - 0.262229, - 0.430644, - 0.576471, - 0.834791, - 0.26554, - 0.427671, - 0.580392, - 0.840636, - 0.268953, - 0.424666, - 0.584314, - 0.846416, - 0.272473, - 0.421631, - 0.588235, - 0.852126, - 0.276106, - 0.418573, - 0.592157, - 0.857763, - 0.279857, - 0.415496, - 0.596078, - 0.86332, - 0.283729, - 0.412403, - 0.6, - 0.868793, - 0.287728, - 0.409303, - 0.603922, - 0.874176, - 0.291859, - 0.406205, - 0.607843, - 0.879464, - 0.296125, - 0.403118, - 0.611765, - 0.884651, - 0.30053, - 0.400047, - 0.615686, - 0.889731, - 0.305079, - 0.397002, - 0.619608, - 0.8947, - 0.309773, - 0.393995, - 0.623529, - 0.899552, - 0.314616, - 0.391037, - 0.627451, - 0.904281, - 0.31961, - 0.388137, - 0.631373, - 0.908884, - 0.324755, - 0.385308, - 0.635294, - 0.913354, - 0.330052, - 0.382563, - 0.639216, - 0.917689, - 0.3355, - 0.379915, - 0.643137, - 0.921884, - 0.341098, - 0.377376, - 0.647059, - 0.925937, - 0.346844, - 0.374959, - 0.65098, - 0.929845, - 0.352734, - 0.372677, - 0.654902, - 0.933606, - 0.358764, - 0.370541, - 0.658824, - 0.937221, - 0.364929, - 0.368567, - 0.662745, - 0.940687, - 0.371224, - 0.366762, - 0.666667, - 0.944006, - 0.377643, - 0.365136, - 0.670588, - 0.94718, - 0.384178, - 0.363701, - 0.67451, - 0.95021, - 0.39082, - 0.362468, - 0.678431, - 0.953099, - 0.397563, - 0.361438, - 0.682353, - 0.955849, - 0.4044, - 0.360619, - 0.686275, - 0.958464, - 0.411324, - 0.360014, - 0.690196, - 0.960949, - 0.418323, - 0.35963, - 0.694118, - 0.96331, - 0.42539, - 0.359469, - 0.698039, - 0.965549, - 0.432519, - 0.359529, - 0.701961, - 0.967671, - 0.439703, - 0.35981, - 0.705882, - 0.96968, - 0.446936, - 0.360311, - 0.709804, - 0.971582, - 0.45421, - 0.36103, - 0.713725, - 0.973381, - 0.46152, - 0.361965, - 0.717647, - 0.975082, - 0.468861, - 0.363111, - 0.721569, - 0.97669, - 0.476226, - 0.364466, - 0.72549, - 0.97821, - 0.483612, - 0.366025, - 0.729412, - 0.979645, - 0.491014, - 0.367783, - 0.733333, - 0.981, - 0.498428, - 0.369734, - 0.737255, - 0.982279, - 0.505851, - 0.371874, - 0.741176, - 0.983485, - 0.51328, - 0.374198, - 0.745098, - 0.984622, - 0.520713, - 0.376698, - 0.74902, - 0.985693, - 0.528148, - 0.379371, - 0.752941, - 0.9867, - 0.535582, - 0.38221, - 0.756863, - 0.987646, - 0.543015, - 0.38521, - 0.760784, - 0.988533, - 0.550446, - 0.388365, - 0.764706, - 0.989363, - 0.557873, - 0.391671, - 0.768627, - 0.990138, - 0.565296, - 0.395122, - 0.772549, - 0.990871, - 0.572706, - 0.398714, - 0.776471, - 0.991558, - 0.580107, - 0.402441, - 0.780392, - 0.992196, - 0.587502, - 0.406299, - 0.784314, - 0.992785, - 0.594891, - 0.410283, - 0.788235, - 0.993326, - 0.602275, - 0.41439, - 0.792157, - 0.993834, - 0.609644, - 0.418613, - 0.796078, - 0.994309, - 0.616999, - 0.42295, - 0.8, - 0.994738, - 0.62435, - 0.427397, - 0.803922, - 0.995122, - 0.631696, - 0.431951, - 0.807843, - 0.99548, - 0.639027, - 0.436607, - 0.811765, - 0.99581, - 0.646344, - 0.441361, - 0.815686, - 0.996096, - 0.653659, - 0.446213, - 0.819608, - 0.996341, - 0.660969, - 0.45116, - 0.823529, - 0.99658, - 0.668256, - 0.456192, - 0.827451, - 0.996775, - 0.675541, - 0.461314, - 0.831373, - 0.996925, - 0.682828, - 0.466526, - 0.835294, - 0.997077, - 0.690088, - 0.471811, - 0.839216, - 0.997186, - 0.697349, - 0.477182, - 0.843137, - 0.997254, - 0.704611, - 0.482635, - 0.847059, - 0.997325, - 0.711848, - 0.488154, - 0.85098, - 0.997351, - 0.719089, - 0.493755, - 0.854902, - 0.997351, - 0.726324, - 0.499428, - 0.858824, - 0.997341, - 0.733545, - 0.505167, - 0.862745, - 0.997285, - 0.740772, - 0.510983, - 0.866667, - 0.997228, - 0.747981, - 0.516859, - 0.870588, - 0.997138, - 0.75519, - 0.522806, - 0.87451, - 0.997019, - 0.762398, - 0.528821, - 0.878431, - 0.996898, - 0.769591, - 0.534892, - 0.882353, - 0.996727, - 0.776795, - 0.541039, - 0.886275, - 0.996571, - 0.783977, - 0.547233, - 0.890196, - 0.996369, - 0.791167, - 0.553499, - 0.894118, - 0.996162, - 0.798348, - 0.55982, - 0.898039, - 0.995932, - 0.805527, - 0.566202, - 0.901961, - 0.99568, - 0.812706, - 0.572645, - 0.905882, - 0.995424, - 0.819875, - 0.57914, - 0.909804, - 0.995131, - 0.827052, - 0.585701, - 0.913725, - 0.994851, - 0.834213, - 0.592307, - 0.917647, - 0.994524, - 0.841387, - 0.598983, - 0.921569, - 0.994222, - 0.84854, - 0.605696, - 0.92549, - 0.993866, - 0.855711, - 0.612482, - 0.929412, - 0.993545, - 0.862859, - 0.619299, - 0.933333, - 0.99317, - 0.870024, - 0.626189, - 0.937255, - 0.992831, - 0.877168, - 0.633109, - 0.941176, - 0.99244, - 0.88433, - 0.640099, - 0.945098, - 0.992089, - 0.89147, - 0.647116, - 0.94902, - 0.991688, - 0.898627, - 0.654202, - 0.952941, - 0.991332, - 0.905763, - 0.661309, - 0.956863, - 0.99093, - 0.912915, - 0.668481, - 0.960784, - 0.99057, - 0.920049, - 0.675675, - 0.964706, - 0.990175, - 0.927196, - 0.682926, - 0.968627, - 0.989815, - 0.934329, - 0.690198, - 0.972549, - 0.989434, - 0.94147, - 0.697519, - 0.976471, - 0.989077, - 0.948604, - 0.704863, - 0.980392, - 0.988717, - 0.955742, - 0.712242, - 0.984314, - 0.988367, - 0.962878, - 0.719649, - 0.988235, - 0.988033, - 0.970012, - 0.727077, - 0.992157, - 0.987691, - 0.977154, - 0.734536, - 0.996078, - 0.987387, - 0.984288, - 0.742002, - 1, - 0.987053, - 0.991438, - 0.749504 - ] - }, - { - ColorSpace: "Diverging", - Name: "Inferno (matplotlib)", - NanColor: [ - 0, - 1, - 0 - ], - Source: "https://github.com/BIDS/colormap/blob/master/colormaps.py", - License: "CC0", - Creator: "Nathaniel J. Smith & Stefan van der Walt", - RGBPoints: [ - 0, - 0.001462, - 0.000466, - 0.013866, - 0.003922, - 0.002267, - 0.00127, - 0.01857, - 0.007843, - 0.003299, - 0.002249, - 0.024239, - 0.011765, - 0.004547, - 0.003392, - 0.030909, - 0.015686, - 0.006006, - 0.004692, - 0.038558, - 0.019608, - 0.007676, - 0.006136, - 0.046836, - 0.023529, - 0.009561, - 0.007713, - 0.055143, - 0.027451, - 0.011663, - 0.009417, - 0.06346, - 0.031373, - 0.013995, - 0.011225, - 0.071862, - 0.035294, - 0.016561, - 0.013136, - 0.080282, - 0.039216, - 0.019373, - 0.015133, - 0.088767, - 0.043137, - 0.022447, - 0.017199, - 0.097327, - 0.047059, - 0.025793, - 0.019331, - 0.10593, - 0.05098, - 0.029432, - 0.021503, - 0.114621, - 0.054902, - 0.033385, - 0.023702, - 0.123397, - 0.058824, - 0.037668, - 0.025921, - 0.132232, - 0.062745, - 0.042253, - 0.028139, - 0.141141, - 0.066667, - 0.046915, - 0.030324, - 0.150164, - 0.070588, - 0.051644, - 0.032474, - 0.159254, - 0.07451, - 0.056449, - 0.034569, - 0.168414, - 0.078431, - 0.06134, - 0.03659, - 0.177642, - 0.082353, - 0.066331, - 0.038504, - 0.186962, - 0.086275, - 0.071429, - 0.040294, - 0.196354, - 0.090196, - 0.076637, - 0.041905, - 0.205799, - 0.094118, - 0.081962, - 0.043328, - 0.215289, - 0.098039, - 0.087411, - 0.044556, - 0.224813, - 0.101961, - 0.09299, - 0.045583, - 0.234358, - 0.105882, - 0.098702, - 0.046402, - 0.243904, - 0.109804, - 0.104551, - 0.047008, - 0.25343, - 0.113725, - 0.110536, - 0.047399, - 0.262912, - 0.117647, - 0.116656, - 0.047574, - 0.272321, - 0.121569, - 0.122908, - 0.047536, - 0.281624, - 0.12549, - 0.129285, - 0.047293, - 0.290788, - 0.129412, - 0.135778, - 0.046856, - 0.299776, - 0.133333, - 0.142378, - 0.046242, - 0.308553, - 0.137255, - 0.149073, - 0.045468, - 0.317085, - 0.141176, - 0.15585, - 0.044559, - 0.325338, - 0.145098, - 0.162689, - 0.043554, - 0.333277, - 0.14902, - 0.169575, - 0.042489, - 0.340874, - 0.152941, - 0.176493, - 0.041402, - 0.348111, - 0.156863, - 0.183429, - 0.040329, - 0.354971, - 0.160784, - 0.190367, - 0.039309, - 0.361447, - 0.164706, - 0.197297, - 0.0384, - 0.367535, - 0.168627, - 0.204209, - 0.037632, - 0.373238, - 0.172549, - 0.211095, - 0.03703, - 0.378563, - 0.176471, - 0.217949, - 0.036615, - 0.383522, - 0.180392, - 0.224763, - 0.036405, - 0.388129, - 0.184314, - 0.231538, - 0.036405, - 0.3924, - 0.188235, - 0.238273, - 0.036621, - 0.396353, - 0.192157, - 0.244967, - 0.037055, - 0.400007, - 0.196078, - 0.25162, - 0.037705, - 0.403378, - 0.2, - 0.258234, - 0.038571, - 0.406485, - 0.203922, - 0.26481, - 0.039647, - 0.409345, - 0.207843, - 0.271347, - 0.040922, - 0.411976, - 0.211765, - 0.27785, - 0.042353, - 0.414392, - 0.215686, - 0.284321, - 0.043933, - 0.416608, - 0.219608, - 0.290763, - 0.045644, - 0.418637, - 0.223529, - 0.297178, - 0.04747, - 0.420491, - 0.227451, - 0.303568, - 0.049396, - 0.422182, - 0.231373, - 0.309935, - 0.051407, - 0.423721, - 0.235294, - 0.316282, - 0.05349, - 0.425116, - 0.239216, - 0.32261, - 0.055634, - 0.426377, - 0.243137, - 0.328921, - 0.057827, - 0.427511, - 0.247059, - 0.335217, - 0.06006, - 0.428524, - 0.25098, - 0.3415, - 0.062325, - 0.429425, - 0.254902, - 0.347771, - 0.064616, - 0.430217, - 0.258824, - 0.354032, - 0.066925, - 0.430906, - 0.262745, - 0.360284, - 0.069247, - 0.431497, - 0.266667, - 0.366529, - 0.071579, - 0.431994, - 0.270588, - 0.372768, - 0.073915, - 0.4324, - 0.27451, - 0.379001, - 0.076253, - 0.432719, - 0.278431, - 0.385228, - 0.078591, - 0.432955, - 0.282353, - 0.391453, - 0.080927, - 0.433109, - 0.286275, - 0.397674, - 0.083257, - 0.433183, - 0.290196, - 0.403894, - 0.08558, - 0.433179, - 0.294118, - 0.410113, - 0.087896, - 0.433098, - 0.298039, - 0.416331, - 0.090203, - 0.432943, - 0.301961, - 0.422549, - 0.092501, - 0.432714, - 0.305882, - 0.428768, - 0.09479, - 0.432412, - 0.309804, - 0.434987, - 0.097069, - 0.432039, - 0.313725, - 0.441207, - 0.099338, - 0.431594, - 0.317647, - 0.447428, - 0.101597, - 0.43108, - 0.321569, - 0.453651, - 0.103848, - 0.430498, - 0.32549, - 0.459875, - 0.106089, - 0.429846, - 0.329412, - 0.4661, - 0.108322, - 0.429125, - 0.333333, - 0.472328, - 0.110547, - 0.428334, - 0.337255, - 0.478558, - 0.112764, - 0.427475, - 0.341176, - 0.484789, - 0.114974, - 0.426548, - 0.345098, - 0.491022, - 0.117179, - 0.425552, - 0.34902, - 0.497257, - 0.119379, - 0.424488, - 0.352941, - 0.503493, - 0.121575, - 0.423356, - 0.356863, - 0.50973, - 0.123769, - 0.422156, - 0.360784, - 0.515967, - 0.12596, - 0.420887, - 0.364706, - 0.522206, - 0.12815, - 0.419549, - 0.368627, - 0.528444, - 0.130341, - 0.418142, - 0.372549, - 0.534683, - 0.132534, - 0.416667, - 0.376471, - 0.54092, - 0.134729, - 0.415123, - 0.380392, - 0.547157, - 0.136929, - 0.413511, - 0.384314, - 0.553392, - 0.139134, - 0.411829, - 0.388235, - 0.559624, - 0.141346, - 0.410078, - 0.392157, - 0.565854, - 0.143567, - 0.408258, - 0.396078, - 0.572081, - 0.145797, - 0.406369, - 0.4, - 0.578304, - 0.148039, - 0.404411, - 0.403922, - 0.584521, - 0.150294, - 0.402385, - 0.407843, - 0.590734, - 0.152563, - 0.40029, - 0.411765, - 0.59694, - 0.154848, - 0.398125, - 0.415686, - 0.603139, - 0.157151, - 0.395891, - 0.419608, - 0.60933, - 0.159474, - 0.393589, - 0.423529, - 0.615513, - 0.161817, - 0.391219, - 0.427451, - 0.621685, - 0.164184, - 0.388781, - 0.431373, - 0.627847, - 0.166575, - 0.386276, - 0.435294, - 0.633998, - 0.168992, - 0.383704, - 0.439216, - 0.640135, - 0.171438, - 0.381065, - 0.443137, - 0.64626, - 0.173914, - 0.378359, - 0.447059, - 0.652369, - 0.176421, - 0.375586, - 0.45098, - 0.658463, - 0.178962, - 0.372748, - 0.454902, - 0.66454, - 0.181539, - 0.369846, - 0.458824, - 0.670599, - 0.184153, - 0.366879, - 0.462745, - 0.676638, - 0.186807, - 0.363849, - 0.466667, - 0.682656, - 0.189501, - 0.360757, - 0.470588, - 0.688653, - 0.192239, - 0.357603, - 0.47451, - 0.694627, - 0.195021, - 0.354388, - 0.478431, - 0.700576, - 0.197851, - 0.351113, - 0.482353, - 0.7065, - 0.200728, - 0.347777, - 0.486275, - 0.712396, - 0.203656, - 0.344383, - 0.490196, - 0.718264, - 0.206636, - 0.340931, - 0.494118, - 0.724103, - 0.20967, - 0.337424, - 0.498039, - 0.729909, - 0.212759, - 0.333861, - 0.501961, - 0.735683, - 0.215906, - 0.330245, - 0.505882, - 0.741423, - 0.219112, - 0.326576, - 0.509804, - 0.747127, - 0.222378, - 0.322856, - 0.513725, - 0.752794, - 0.225706, - 0.319085, - 0.517647, - 0.758422, - 0.229097, - 0.315266, - 0.521569, - 0.76401, - 0.232554, - 0.311399, - 0.52549, - 0.769556, - 0.236077, - 0.307485, - 0.529412, - 0.775059, - 0.239667, - 0.303526, - 0.533333, - 0.780517, - 0.243327, - 0.299523, - 0.537255, - 0.785929, - 0.247056, - 0.295477, - 0.541176, - 0.791293, - 0.250856, - 0.29139, - 0.545098, - 0.796607, - 0.254728, - 0.287264, - 0.54902, - 0.801871, - 0.258674, - 0.283099, - 0.552941, - 0.807082, - 0.262692, - 0.278898, - 0.556863, - 0.812239, - 0.266786, - 0.274661, - 0.560784, - 0.817341, - 0.270954, - 0.27039, - 0.564706, - 0.822386, - 0.275197, - 0.266085, - 0.568627, - 0.827372, - 0.279517, - 0.26175, - 0.572549, - 0.832299, - 0.283913, - 0.257383, - 0.576471, - 0.837165, - 0.288385, - 0.252988, - 0.580392, - 0.841969, - 0.292933, - 0.248564, - 0.584314, - 0.846709, - 0.297559, - 0.244113, - 0.588235, - 0.851384, - 0.30226, - 0.239636, - 0.592157, - 0.855992, - 0.307038, - 0.235133, - 0.596078, - 0.860533, - 0.311892, - 0.230606, - 0.6, - 0.865006, - 0.316822, - 0.226055, - 0.603922, - 0.869409, - 0.321827, - 0.221482, - 0.607843, - 0.873741, - 0.326906, - 0.216886, - 0.611765, - 0.878001, - 0.33206, - 0.212268, - 0.615686, - 0.882188, - 0.337287, - 0.207628, - 0.619608, - 0.886302, - 0.342586, - 0.202968, - 0.623529, - 0.890341, - 0.347957, - 0.198286, - 0.627451, - 0.894305, - 0.353399, - 0.193584, - 0.631373, - 0.898192, - 0.358911, - 0.18886, - 0.635294, - 0.902003, - 0.364492, - 0.184116, - 0.639216, - 0.905735, - 0.37014, - 0.17935, - 0.643137, - 0.90939, - 0.375856, - 0.174563, - 0.647059, - 0.912966, - 0.381636, - 0.169755, - 0.65098, - 0.916462, - 0.387481, - 0.164924, - 0.654902, - 0.919879, - 0.393389, - 0.16007, - 0.658824, - 0.923215, - 0.399359, - 0.155193, - 0.662745, - 0.92647, - 0.405389, - 0.150292, - 0.666667, - 0.929644, - 0.411479, - 0.145367, - 0.670588, - 0.932737, - 0.417627, - 0.140417, - 0.67451, - 0.935747, - 0.423831, - 0.13544, - 0.678431, - 0.938675, - 0.430091, - 0.130438, - 0.682353, - 0.941521, - 0.436405, - 0.125409, - 0.686275, - 0.944285, - 0.442772, - 0.120354, - 0.690196, - 0.946965, - 0.449191, - 0.115272, - 0.694118, - 0.949562, - 0.45566, - 0.110164, - 0.698039, - 0.952075, - 0.462178, - 0.105031, - 0.701961, - 0.954506, - 0.468744, - 0.099874, - 0.705882, - 0.956852, - 0.475356, - 0.094695, - 0.709804, - 0.959114, - 0.482014, - 0.089499, - 0.713725, - 0.961293, - 0.488716, - 0.084289, - 0.717647, - 0.963387, - 0.495462, - 0.079073, - 0.721569, - 0.965397, - 0.502249, - 0.073859, - 0.72549, - 0.967322, - 0.509078, - 0.068659, - 0.729412, - 0.969163, - 0.515946, - 0.063488, - 0.733333, - 0.970919, - 0.522853, - 0.058367, - 0.737255, - 0.97259, - 0.529798, - 0.053324, - 0.741176, - 0.974176, - 0.53678, - 0.048392, - 0.745098, - 0.975677, - 0.543798, - 0.043618, - 0.74902, - 0.977092, - 0.55085, - 0.03905, - 0.752941, - 0.978422, - 0.557937, - 0.034931, - 0.756863, - 0.979666, - 0.565057, - 0.031409, - 0.760784, - 0.980824, - 0.572209, - 0.028508, - 0.764706, - 0.981895, - 0.579392, - 0.02625, - 0.768627, - 0.982881, - 0.586606, - 0.024661, - 0.772549, - 0.983779, - 0.593849, - 0.02377, - 0.776471, - 0.984591, - 0.601122, - 0.023606, - 0.780392, - 0.985315, - 0.608422, - 0.024202, - 0.784314, - 0.985952, - 0.61575, - 0.025592, - 0.788235, - 0.986502, - 0.623105, - 0.027814, - 0.792157, - 0.986964, - 0.630485, - 0.030908, - 0.796078, - 0.987337, - 0.63789, - 0.034916, - 0.8, - 0.987622, - 0.64532, - 0.039886, - 0.803922, - 0.987819, - 0.652773, - 0.045581, - 0.807843, - 0.987926, - 0.66025, - 0.05175, - 0.811765, - 0.987945, - 0.667748, - 0.058329, - 0.815686, - 0.987874, - 0.675267, - 0.065257, - 0.819608, - 0.987714, - 0.682807, - 0.072489, - 0.823529, - 0.987464, - 0.690366, - 0.07999, - 0.827451, - 0.987124, - 0.697944, - 0.087731, - 0.831373, - 0.986694, - 0.70554, - 0.095694, - 0.835294, - 0.986175, - 0.713153, - 0.103863, - 0.839216, - 0.985566, - 0.720782, - 0.112229, - 0.843137, - 0.984865, - 0.728427, - 0.120785, - 0.847059, - 0.984075, - 0.736087, - 0.129527, - 0.85098, - 0.983196, - 0.743758, - 0.138453, - 0.854902, - 0.982228, - 0.751442, - 0.147565, - 0.858824, - 0.981173, - 0.759135, - 0.156863, - 0.862745, - 0.980032, - 0.766837, - 0.166353, - 0.866667, - 0.978806, - 0.774545, - 0.176037, - 0.870588, - 0.977497, - 0.782258, - 0.185923, - 0.87451, - 0.976108, - 0.789974, - 0.196018, - 0.878431, - 0.974638, - 0.797692, - 0.206332, - 0.882353, - 0.973088, - 0.805409, - 0.216877, - 0.886275, - 0.971468, - 0.813122, - 0.227658, - 0.890196, - 0.969783, - 0.820825, - 0.238686, - 0.894118, - 0.968041, - 0.828515, - 0.249972, - 0.898039, - 0.966243, - 0.836191, - 0.261534, - 0.901961, - 0.964394, - 0.843848, - 0.273391, - 0.905882, - 0.962517, - 0.851476, - 0.285546, - 0.909804, - 0.960626, - 0.859069, - 0.29801, - 0.913725, - 0.95872, - 0.866624, - 0.31082, - 0.917647, - 0.956834, - 0.874129, - 0.323974, - 0.921569, - 0.954997, - 0.881569, - 0.337475, - 0.92549, - 0.953215, - 0.888942, - 0.351369, - 0.929412, - 0.951546, - 0.896226, - 0.365627, - 0.933333, - 0.950018, - 0.903409, - 0.380271, - 0.937255, - 0.948683, - 0.910473, - 0.395289, - 0.941176, - 0.947594, - 0.917399, - 0.410665, - 0.945098, - 0.946809, - 0.924168, - 0.426373, - 0.94902, - 0.946392, - 0.930761, - 0.442367, - 0.952941, - 0.946403, - 0.937159, - 0.458592, - 0.956863, - 0.946903, - 0.943348, - 0.47497, - 0.960784, - 0.947937, - 0.949318, - 0.491426, - 0.964706, - 0.949545, - 0.955063, - 0.50786, - 0.968627, - 0.95174, - 0.960587, - 0.524203, - 0.972549, - 0.954529, - 0.965896, - 0.540361, - 0.976471, - 0.957896, - 0.971003, - 0.556275, - 0.980392, - 0.961812, - 0.975924, - 0.571925, - 0.984314, - 0.966249, - 0.980678, - 0.587206, - 0.988235, - 0.971162, - 0.985282, - 0.602154, - 0.992157, - 0.976511, - 0.989753, - 0.61676, - 0.996078, - 0.982257, - 0.994109, - 0.631017, - 1, - 0.988362, - 0.998364, - 0.644924 - ] - }, - { - ColorSpace: "Diverging", - Name: "Plasma (matplotlib)", - NanColor: [ - 0, - 1, - 0 - ], - Source: "https://github.com/BIDS/colormap/blob/master/colormaps.py", - License: "CC0", - Creator: "Nathaniel J. Smith & Stefan van der Walt", - RGBPoints: [ - 0, - 0.050383, - 0.029803, - 0.527975, - 0.003922, - 0.063536, - 0.028426, - 0.533124, - 0.007843, - 0.075353, - 0.027206, - 0.538007, - 0.011765, - 0.086222, - 0.026125, - 0.542658, - 0.015686, - 0.096379, - 0.025165, - 0.547103, - 0.019608, - 0.10598, - 0.024309, - 0.551368, - 0.023529, - 0.115124, - 0.023556, - 0.555468, - 0.027451, - 0.123903, - 0.022878, - 0.559423, - 0.031373, - 0.132381, - 0.022258, - 0.56325, - 0.035294, - 0.140603, - 0.021687, - 0.566959, - 0.039216, - 0.148607, - 0.021154, - 0.570562, - 0.043137, - 0.156421, - 0.020651, - 0.574065, - 0.047059, - 0.16407, - 0.020171, - 0.577478, - 0.05098, - 0.171574, - 0.019706, - 0.580806, - 0.054902, - 0.17895, - 0.019252, - 0.584054, - 0.058824, - 0.186213, - 0.018803, - 0.587228, - 0.062745, - 0.193374, - 0.018354, - 0.59033, - 0.066667, - 0.200445, - 0.017902, - 0.593364, - 0.070588, - 0.207435, - 0.017442, - 0.596333, - 0.07451, - 0.21435, - 0.016973, - 0.599239, - 0.078431, - 0.221197, - 0.016497, - 0.602083, - 0.082353, - 0.227983, - 0.016007, - 0.604867, - 0.086275, - 0.234715, - 0.015502, - 0.607592, - 0.090196, - 0.241396, - 0.014979, - 0.610259, - 0.094118, - 0.248032, - 0.014439, - 0.612868, - 0.098039, - 0.254627, - 0.013882, - 0.615419, - 0.101961, - 0.261183, - 0.013308, - 0.617911, - 0.105882, - 0.267703, - 0.012716, - 0.620346, - 0.109804, - 0.274191, - 0.012109, - 0.622722, - 0.113725, - 0.280648, - 0.011488, - 0.625038, - 0.117647, - 0.287076, - 0.010855, - 0.627295, - 0.121569, - 0.293478, - 0.010213, - 0.62949, - 0.12549, - 0.299855, - 0.009561, - 0.631624, - 0.129412, - 0.30621, - 0.008902, - 0.633694, - 0.133333, - 0.312543, - 0.008239, - 0.6357, - 0.137255, - 0.318856, - 0.007576, - 0.63764, - 0.141176, - 0.32515, - 0.006915, - 0.639512, - 0.145098, - 0.331426, - 0.006261, - 0.641316, - 0.14902, - 0.337683, - 0.005618, - 0.643049, - 0.152941, - 0.343925, - 0.004991, - 0.64471, - 0.156863, - 0.35015, - 0.004382, - 0.646298, - 0.160784, - 0.356359, - 0.003798, - 0.64781, - 0.164706, - 0.362553, - 0.003243, - 0.649245, - 0.168627, - 0.368733, - 0.002724, - 0.650601, - 0.172549, - 0.374897, - 0.002245, - 0.651876, - 0.176471, - 0.381047, - 0.001814, - 0.653068, - 0.180392, - 0.387183, - 0.001434, - 0.654177, - 0.184314, - 0.393304, - 0.001114, - 0.655199, - 0.188235, - 0.399411, - 0.000859, - 0.656133, - 0.192157, - 0.405503, - 0.000678, - 0.656977, - 0.196078, - 0.41158, - 0.000577, - 0.65773, - 0.2, - 0.417642, - 0.000564, - 0.65839, - 0.203922, - 0.423689, - 0.000646, - 0.658956, - 0.207843, - 0.429719, - 0.000831, - 0.659425, - 0.211765, - 0.435734, - 0.001127, - 0.659797, - 0.215686, - 0.441732, - 0.00154, - 0.660069, - 0.219608, - 0.447714, - 0.00208, - 0.66024, - 0.223529, - 0.453677, - 0.002755, - 0.66031, - 0.227451, - 0.459623, - 0.003574, - 0.660277, - 0.231373, - 0.46555, - 0.004545, - 0.660139, - 0.235294, - 0.471457, - 0.005678, - 0.659897, - 0.239216, - 0.477344, - 0.00698, - 0.659549, - 0.243137, - 0.48321, - 0.00846, - 0.659095, - 0.247059, - 0.489055, - 0.010127, - 0.658534, - 0.25098, - 0.494877, - 0.01199, - 0.657865, - 0.254902, - 0.500678, - 0.014055, - 0.657088, - 0.258824, - 0.506454, - 0.016333, - 0.656202, - 0.262745, - 0.512206, - 0.018833, - 0.655209, - 0.266667, - 0.517933, - 0.021563, - 0.654109, - 0.270588, - 0.523633, - 0.024532, - 0.652901, - 0.27451, - 0.529306, - 0.027747, - 0.651586, - 0.278431, - 0.534952, - 0.031217, - 0.650165, - 0.282353, - 0.54057, - 0.03495, - 0.64864, - 0.286275, - 0.546157, - 0.038954, - 0.64701, - 0.290196, - 0.551715, - 0.043136, - 0.645277, - 0.294118, - 0.557243, - 0.047331, - 0.643443, - 0.298039, - 0.562738, - 0.051545, - 0.641509, - 0.301961, - 0.568201, - 0.055778, - 0.639477, - 0.305882, - 0.573632, - 0.060028, - 0.637349, - 0.309804, - 0.579029, - 0.064296, - 0.635126, - 0.313725, - 0.584391, - 0.068579, - 0.632812, - 0.317647, - 0.589719, - 0.072878, - 0.630408, - 0.321569, - 0.595011, - 0.07719, - 0.627917, - 0.32549, - 0.600266, - 0.081516, - 0.625342, - 0.329412, - 0.605485, - 0.085854, - 0.622686, - 0.333333, - 0.610667, - 0.090204, - 0.619951, - 0.337255, - 0.615812, - 0.094564, - 0.61714, - 0.341176, - 0.620919, - 0.098934, - 0.614257, - 0.345098, - 0.625987, - 0.103312, - 0.611305, - 0.34902, - 0.631017, - 0.107699, - 0.608287, - 0.352941, - 0.636008, - 0.112092, - 0.605205, - 0.356863, - 0.640959, - 0.116492, - 0.602065, - 0.360784, - 0.645872, - 0.120898, - 0.598867, - 0.364706, - 0.650746, - 0.125309, - 0.595617, - 0.368627, - 0.65558, - 0.129725, - 0.592317, - 0.372549, - 0.660374, - 0.134144, - 0.588971, - 0.376471, - 0.665129, - 0.138566, - 0.585582, - 0.380392, - 0.669845, - 0.142992, - 0.582154, - 0.384314, - 0.674522, - 0.147419, - 0.578688, - 0.388235, - 0.67916, - 0.151848, - 0.575189, - 0.392157, - 0.683758, - 0.156278, - 0.57166, - 0.396078, - 0.688318, - 0.160709, - 0.568103, - 0.4, - 0.69284, - 0.165141, - 0.564522, - 0.403922, - 0.697324, - 0.169573, - 0.560919, - 0.407843, - 0.701769, - 0.174005, - 0.557296, - 0.411765, - 0.706178, - 0.178437, - 0.553657, - 0.415686, - 0.710549, - 0.182868, - 0.550004, - 0.419608, - 0.714883, - 0.187299, - 0.546338, - 0.423529, - 0.719181, - 0.191729, - 0.542663, - 0.427451, - 0.723444, - 0.196158, - 0.538981, - 0.431373, - 0.72767, - 0.200586, - 0.535293, - 0.435294, - 0.731862, - 0.205013, - 0.531601, - 0.439216, - 0.736019, - 0.209439, - 0.527908, - 0.443137, - 0.740143, - 0.213864, - 0.524216, - 0.447059, - 0.744232, - 0.218288, - 0.520524, - 0.45098, - 0.748289, - 0.222711, - 0.516834, - 0.454902, - 0.752312, - 0.227133, - 0.513149, - 0.458824, - 0.756304, - 0.231555, - 0.509468, - 0.462745, - 0.760264, - 0.235976, - 0.505794, - 0.466667, - 0.764193, - 0.240396, - 0.502126, - 0.470588, - 0.76809, - 0.244817, - 0.498465, - 0.47451, - 0.771958, - 0.249237, - 0.494813, - 0.478431, - 0.775796, - 0.253658, - 0.491171, - 0.482353, - 0.779604, - 0.258078, - 0.487539, - 0.486275, - 0.783383, - 0.2625, - 0.483918, - 0.490196, - 0.787133, - 0.266922, - 0.480307, - 0.494118, - 0.790855, - 0.271345, - 0.476706, - 0.498039, - 0.794549, - 0.27577, - 0.473117, - 0.501961, - 0.798216, - 0.280197, - 0.469538, - 0.505882, - 0.801855, - 0.284626, - 0.465971, - 0.509804, - 0.805467, - 0.289057, - 0.462415, - 0.513725, - 0.809052, - 0.293491, - 0.45887, - 0.517647, - 0.812612, - 0.297928, - 0.455338, - 0.521569, - 0.816144, - 0.302368, - 0.451816, - 0.52549, - 0.819651, - 0.306812, - 0.448306, - 0.529412, - 0.823132, - 0.311261, - 0.444806, - 0.533333, - 0.826588, - 0.315714, - 0.441316, - 0.537255, - 0.830018, - 0.320172, - 0.437836, - 0.541176, - 0.833422, - 0.324635, - 0.434366, - 0.545098, - 0.836801, - 0.329105, - 0.430905, - 0.54902, - 0.840155, - 0.33358, - 0.427455, - 0.552941, - 0.843484, - 0.338062, - 0.424013, - 0.556863, - 0.846788, - 0.342551, - 0.420579, - 0.560784, - 0.850066, - 0.347048, - 0.417153, - 0.564706, - 0.853319, - 0.351553, - 0.413734, - 0.568627, - 0.856547, - 0.356066, - 0.410322, - 0.572549, - 0.85975, - 0.360588, - 0.406917, - 0.576471, - 0.862927, - 0.365119, - 0.403519, - 0.580392, - 0.866078, - 0.36966, - 0.400126, - 0.584314, - 0.869203, - 0.374212, - 0.396738, - 0.588235, - 0.872303, - 0.378774, - 0.393355, - 0.592157, - 0.875376, - 0.383347, - 0.389976, - 0.596078, - 0.878423, - 0.387932, - 0.3866, - 0.6, - 0.881443, - 0.392529, - 0.383229, - 0.603922, - 0.884436, - 0.397139, - 0.37986, - 0.607843, - 0.887402, - 0.401762, - 0.376494, - 0.611765, - 0.89034, - 0.406398, - 0.37313, - 0.615686, - 0.89325, - 0.411048, - 0.369768, - 0.619608, - 0.896131, - 0.415712, - 0.366407, - 0.623529, - 0.898984, - 0.420392, - 0.363047, - 0.627451, - 0.901807, - 0.425087, - 0.359688, - 0.631373, - 0.904601, - 0.429797, - 0.356329, - 0.635294, - 0.907365, - 0.434524, - 0.35297, - 0.639216, - 0.910098, - 0.439268, - 0.34961, - 0.643137, - 0.9128, - 0.444029, - 0.346251, - 0.647059, - 0.915471, - 0.448807, - 0.34289, - 0.65098, - 0.918109, - 0.453603, - 0.339529, - 0.654902, - 0.920714, - 0.458417, - 0.336166, - 0.658824, - 0.923287, - 0.463251, - 0.332801, - 0.662745, - 0.925825, - 0.468103, - 0.329435, - 0.666667, - 0.928329, - 0.472975, - 0.326067, - 0.670588, - 0.930798, - 0.477867, - 0.322697, - 0.67451, - 0.933232, - 0.48278, - 0.319325, - 0.678431, - 0.93563, - 0.487712, - 0.315952, - 0.682353, - 0.93799, - 0.492667, - 0.312575, - 0.686275, - 0.940313, - 0.497642, - 0.309197, - 0.690196, - 0.942598, - 0.502639, - 0.305816, - 0.694118, - 0.944844, - 0.507658, - 0.302433, - 0.698039, - 0.947051, - 0.512699, - 0.299049, - 0.701961, - 0.949217, - 0.517763, - 0.295662, - 0.705882, - 0.951344, - 0.52285, - 0.292275, - 0.709804, - 0.953428, - 0.52796, - 0.288883, - 0.713725, - 0.95547, - 0.533093, - 0.28549, - 0.717647, - 0.957469, - 0.53825, - 0.282096, - 0.721569, - 0.959424, - 0.543431, - 0.278701, - 0.72549, - 0.961336, - 0.548636, - 0.275305, - 0.729412, - 0.963203, - 0.553865, - 0.271909, - 0.733333, - 0.965024, - 0.559118, - 0.268513, - 0.737255, - 0.966798, - 0.564396, - 0.265118, - 0.741176, - 0.968526, - 0.5697, - 0.261721, - 0.745098, - 0.970205, - 0.575028, - 0.258325, - 0.74902, - 0.971835, - 0.580382, - 0.254931, - 0.752941, - 0.973416, - 0.585761, - 0.25154, - 0.756863, - 0.974947, - 0.591165, - 0.248151, - 0.760784, - 0.976428, - 0.596595, - 0.244767, - 0.764706, - 0.977856, - 0.602051, - 0.241387, - 0.768627, - 0.979233, - 0.607532, - 0.238013, - 0.772549, - 0.980556, - 0.613039, - 0.234646, - 0.776471, - 0.981826, - 0.618572, - 0.231287, - 0.780392, - 0.983041, - 0.624131, - 0.227937, - 0.784314, - 0.984199, - 0.629718, - 0.224595, - 0.788235, - 0.985301, - 0.63533, - 0.221265, - 0.792157, - 0.986345, - 0.640969, - 0.217948, - 0.796078, - 0.987332, - 0.646633, - 0.214648, - 0.8, - 0.98826, - 0.652325, - 0.211364, - 0.803922, - 0.989128, - 0.658043, - 0.2081, - 0.807843, - 0.989935, - 0.663787, - 0.204859, - 0.811765, - 0.990681, - 0.669558, - 0.201642, - 0.815686, - 0.991365, - 0.675355, - 0.198453, - 0.819608, - 0.991985, - 0.681179, - 0.195295, - 0.823529, - 0.992541, - 0.68703, - 0.19217, - 0.827451, - 0.993032, - 0.692907, - 0.189084, - 0.831373, - 0.993456, - 0.69881, - 0.186041, - 0.835294, - 0.993814, - 0.704741, - 0.183043, - 0.839216, - 0.994103, - 0.710698, - 0.180097, - 0.843137, - 0.994324, - 0.716681, - 0.177208, - 0.847059, - 0.994474, - 0.722691, - 0.174381, - 0.85098, - 0.994553, - 0.728728, - 0.171622, - 0.854902, - 0.994561, - 0.734791, - 0.168938, - 0.858824, - 0.994495, - 0.74088, - 0.166335, - 0.862745, - 0.994355, - 0.746995, - 0.163821, - 0.866667, - 0.994141, - 0.753137, - 0.161404, - 0.870588, - 0.993851, - 0.759304, - 0.159092, - 0.87451, - 0.993482, - 0.765499, - 0.156891, - 0.878431, - 0.993033, - 0.77172, - 0.154808, - 0.882353, - 0.992505, - 0.777967, - 0.152855, - 0.886275, - 0.991897, - 0.784239, - 0.151042, - 0.890196, - 0.991209, - 0.790537, - 0.149377, - 0.894118, - 0.990439, - 0.796859, - 0.14787, - 0.898039, - 0.989587, - 0.803205, - 0.146529, - 0.901961, - 0.988648, - 0.809579, - 0.145357, - 0.905882, - 0.987621, - 0.815978, - 0.144363, - 0.909804, - 0.986509, - 0.822401, - 0.143557, - 0.913725, - 0.985314, - 0.828846, - 0.142945, - 0.917647, - 0.984031, - 0.835315, - 0.142528, - 0.921569, - 0.982653, - 0.841812, - 0.142303, - 0.92549, - 0.98119, - 0.848329, - 0.142279, - 0.929412, - 0.979644, - 0.854866, - 0.142453, - 0.933333, - 0.977995, - 0.861432, - 0.142808, - 0.937255, - 0.976265, - 0.868016, - 0.143351, - 0.941176, - 0.974443, - 0.874622, - 0.144061, - 0.945098, - 0.97253, - 0.88125, - 0.144923, - 0.94902, - 0.970533, - 0.887896, - 0.145919, - 0.952941, - 0.968443, - 0.894564, - 0.147014, - 0.956863, - 0.966271, - 0.901249, - 0.14818, - 0.960784, - 0.964021, - 0.90795, - 0.14937, - 0.964706, - 0.961681, - 0.914672, - 0.15052, - 0.968627, - 0.959276, - 0.921407, - 0.151566, - 0.972549, - 0.956808, - 0.928152, - 0.152409, - 0.976471, - 0.954287, - 0.934908, - 0.152921, - 0.980392, - 0.951726, - 0.941671, - 0.152925, - 0.984314, - 0.949151, - 0.948435, - 0.152178, - 0.988235, - 0.946602, - 0.95519, - 0.150328, - 0.992157, - 0.944152, - 0.961916, - 0.146861, - 0.996078, - 0.941896, - 0.96859, - 0.140956, - 1, - 0.940015, - 0.975158, - 0.131326 - ] - }, - { - ColorSpace: "Diverging", - Name: "Viridis (matplotlib)", - NanColor: [ - 1, - 0, - 0 - ], - Source: "https://github.com/BIDS/colormap/blob/master/colormaps.py", - License: "CC0", - Creator: "Eric Firing", - RGBPoints: [ - 0, - 0.267004, - 0.004874, - 0.329415, - 0.003922, - 0.26851, - 0.009605, - 0.335427, - 0.007843, - 0.269944, - 0.014625, - 0.341379, - 0.011765, - 0.271305, - 0.019942, - 0.347269, - 0.015686, - 0.272594, - 0.025563, - 0.353093, - 0.019608, - 0.273809, - 0.031497, - 0.358853, - 0.023529, - 0.274952, - 0.037752, - 0.364543, - 0.027451, - 0.276022, - 0.044167, - 0.370164, - 0.031373, - 0.277018, - 0.050344, - 0.375715, - 0.035294, - 0.277941, - 0.056324, - 0.381191, - 0.039216, - 0.278791, - 0.062145, - 0.386592, - 0.043137, - 0.279566, - 0.067836, - 0.391917, - 0.047059, - 0.280267, - 0.073417, - 0.397163, - 0.05098, - 0.280894, - 0.078907, - 0.402329, - 0.054902, - 0.281446, - 0.08432, - 0.407414, - 0.058824, - 0.281924, - 0.089666, - 0.412415, - 0.062745, - 0.282327, - 0.094955, - 0.417331, - 0.066667, - 0.282656, - 0.100196, - 0.42216, - 0.070588, - 0.28291, - 0.105393, - 0.426902, - 0.07451, - 0.283091, - 0.110553, - 0.431554, - 0.078431, - 0.283197, - 0.11568, - 0.436115, - 0.082353, - 0.283229, - 0.120777, - 0.440584, - 0.086275, - 0.283187, - 0.125848, - 0.44496, - 0.090196, - 0.283072, - 0.130895, - 0.449241, - 0.094118, - 0.282884, - 0.13592, - 0.453427, - 0.098039, - 0.282623, - 0.140926, - 0.457517, - 0.101961, - 0.28229, - 0.145912, - 0.46151, - 0.105882, - 0.281887, - 0.150881, - 0.465405, - 0.109804, - 0.281412, - 0.155834, - 0.469201, - 0.113725, - 0.280868, - 0.160771, - 0.472899, - 0.117647, - 0.280255, - 0.165693, - 0.476498, - 0.121569, - 0.279574, - 0.170599, - 0.479997, - 0.12549, - 0.278826, - 0.17549, - 0.483397, - 0.129412, - 0.278012, - 0.180367, - 0.486697, - 0.133333, - 0.277134, - 0.185228, - 0.489898, - 0.137255, - 0.276194, - 0.190074, - 0.493001, - 0.141176, - 0.275191, - 0.194905, - 0.496005, - 0.145098, - 0.274128, - 0.199721, - 0.498911, - 0.14902, - 0.273006, - 0.20452, - 0.501721, - 0.152941, - 0.271828, - 0.209303, - 0.504434, - 0.156863, - 0.270595, - 0.214069, - 0.507052, - 0.160784, - 0.269308, - 0.218818, - 0.509577, - 0.164706, - 0.267968, - 0.223549, - 0.512008, - 0.168627, - 0.26658, - 0.228262, - 0.514349, - 0.172549, - 0.265145, - 0.232956, - 0.516599, - 0.176471, - 0.263663, - 0.237631, - 0.518762, - 0.180392, - 0.262138, - 0.242286, - 0.520837, - 0.184314, - 0.260571, - 0.246922, - 0.522828, - 0.188235, - 0.258965, - 0.251537, - 0.524736, - 0.192157, - 0.257322, - 0.25613, - 0.526563, - 0.196078, - 0.255645, - 0.260703, - 0.528312, - 0.2, - 0.253935, - 0.265254, - 0.529983, - 0.203922, - 0.252194, - 0.269783, - 0.531579, - 0.207843, - 0.250425, - 0.27429, - 0.533103, - 0.211765, - 0.248629, - 0.278775, - 0.534556, - 0.215686, - 0.246811, - 0.283237, - 0.535941, - 0.219608, - 0.244972, - 0.287675, - 0.53726, - 0.223529, - 0.243113, - 0.292092, - 0.538516, - 0.227451, - 0.241237, - 0.296485, - 0.539709, - 0.231373, - 0.239346, - 0.300855, - 0.540844, - 0.235294, - 0.237441, - 0.305202, - 0.541921, - 0.239216, - 0.235526, - 0.309527, - 0.542944, - 0.243137, - 0.233603, - 0.313828, - 0.543914, - 0.247059, - 0.231674, - 0.318106, - 0.544834, - 0.25098, - 0.229739, - 0.322361, - 0.545706, - 0.254902, - 0.227802, - 0.326594, - 0.546532, - 0.258824, - 0.225863, - 0.330805, - 0.547314, - 0.262745, - 0.223925, - 0.334994, - 0.548053, - 0.266667, - 0.221989, - 0.339161, - 0.548752, - 0.270588, - 0.220057, - 0.343307, - 0.549413, - 0.27451, - 0.21813, - 0.347432, - 0.550038, - 0.278431, - 0.21621, - 0.351535, - 0.550627, - 0.282353, - 0.214298, - 0.355619, - 0.551184, - 0.286275, - 0.212395, - 0.359683, - 0.55171, - 0.290196, - 0.210503, - 0.363727, - 0.552206, - 0.294118, - 0.208623, - 0.367752, - 0.552675, - 0.298039, - 0.206756, - 0.371758, - 0.553117, - 0.301961, - 0.204903, - 0.375746, - 0.553533, - 0.305882, - 0.203063, - 0.379716, - 0.553925, - 0.309804, - 0.201239, - 0.38367, - 0.554294, - 0.313725, - 0.19943, - 0.387607, - 0.554642, - 0.317647, - 0.197636, - 0.391528, - 0.554969, - 0.321569, - 0.19586, - 0.395433, - 0.555276, - 0.32549, - 0.1941, - 0.399323, - 0.555565, - 0.329412, - 0.192357, - 0.403199, - 0.555836, - 0.333333, - 0.190631, - 0.407061, - 0.556089, - 0.337255, - 0.188923, - 0.41091, - 0.556326, - 0.341176, - 0.187231, - 0.414746, - 0.556547, - 0.345098, - 0.185556, - 0.41857, - 0.556753, - 0.34902, - 0.183898, - 0.422383, - 0.556944, - 0.352941, - 0.182256, - 0.426184, - 0.55712, - 0.356863, - 0.180629, - 0.429975, - 0.557282, - 0.360784, - 0.179019, - 0.433756, - 0.55743, - 0.364706, - 0.177423, - 0.437527, - 0.557565, - 0.368627, - 0.175841, - 0.44129, - 0.557685, - 0.372549, - 0.174274, - 0.445044, - 0.557792, - 0.376471, - 0.172719, - 0.448791, - 0.557885, - 0.380392, - 0.171176, - 0.45253, - 0.557965, - 0.384314, - 0.169646, - 0.456262, - 0.55803, - 0.388235, - 0.168126, - 0.459988, - 0.558082, - 0.392157, - 0.166617, - 0.463708, - 0.558119, - 0.396078, - 0.165117, - 0.467423, - 0.558141, - 0.4, - 0.163625, - 0.471133, - 0.558148, - 0.403922, - 0.162142, - 0.474838, - 0.55814, - 0.407843, - 0.160665, - 0.47854, - 0.558115, - 0.411765, - 0.159194, - 0.482237, - 0.558073, - 0.415686, - 0.157729, - 0.485932, - 0.558013, - 0.419608, - 0.15627, - 0.489624, - 0.557936, - 0.423529, - 0.154815, - 0.493313, - 0.55784, - 0.427451, - 0.153364, - 0.497, - 0.557724, - 0.431373, - 0.151918, - 0.500685, - 0.557587, - 0.435294, - 0.150476, - 0.504369, - 0.55743, - 0.439216, - 0.149039, - 0.508051, - 0.55725, - 0.443137, - 0.147607, - 0.511733, - 0.557049, - 0.447059, - 0.14618, - 0.515413, - 0.556823, - 0.45098, - 0.144759, - 0.519093, - 0.556572, - 0.454902, - 0.143343, - 0.522773, - 0.556295, - 0.458824, - 0.141935, - 0.526453, - 0.555991, - 0.462745, - 0.140536, - 0.530132, - 0.555659, - 0.466667, - 0.139147, - 0.533812, - 0.555298, - 0.470588, - 0.13777, - 0.537492, - 0.554906, - 0.47451, - 0.136408, - 0.541173, - 0.554483, - 0.478431, - 0.135066, - 0.544853, - 0.554029, - 0.482353, - 0.133743, - 0.548535, - 0.553541, - 0.486275, - 0.132444, - 0.552216, - 0.553018, - 0.490196, - 0.131172, - 0.555899, - 0.552459, - 0.494118, - 0.129933, - 0.559582, - 0.551864, - 0.498039, - 0.128729, - 0.563265, - 0.551229, - 0.501961, - 0.127568, - 0.566949, - 0.550556, - 0.505882, - 0.126453, - 0.570633, - 0.549841, - 0.509804, - 0.125394, - 0.574318, - 0.549086, - 0.513725, - 0.124395, - 0.578002, - 0.548287, - 0.517647, - 0.123463, - 0.581687, - 0.547445, - 0.521569, - 0.122606, - 0.585371, - 0.546557, - 0.52549, - 0.121831, - 0.589055, - 0.545623, - 0.529412, - 0.121148, - 0.592739, - 0.544641, - 0.533333, - 0.120565, - 0.596422, - 0.543611, - 0.537255, - 0.120092, - 0.600104, - 0.54253, - 0.541176, - 0.119738, - 0.603785, - 0.5414, - 0.545098, - 0.119512, - 0.607464, - 0.540218, - 0.54902, - 0.119423, - 0.611141, - 0.538982, - 0.552941, - 0.119483, - 0.614817, - 0.537692, - 0.556863, - 0.119699, - 0.61849, - 0.536347, - 0.560784, - 0.120081, - 0.622161, - 0.534946, - 0.564706, - 0.120638, - 0.625828, - 0.533488, - 0.568627, - 0.12138, - 0.629492, - 0.531973, - 0.572549, - 0.122312, - 0.633153, - 0.530398, - 0.576471, - 0.123444, - 0.636809, - 0.528763, - 0.580392, - 0.12478, - 0.640461, - 0.527068, - 0.584314, - 0.126326, - 0.644107, - 0.525311, - 0.588235, - 0.128087, - 0.647749, - 0.523491, - 0.592157, - 0.130067, - 0.651384, - 0.521608, - 0.596078, - 0.132268, - 0.655014, - 0.519661, - 0.6, - 0.134692, - 0.658636, - 0.517649, - 0.603922, - 0.137339, - 0.662252, - 0.515571, - 0.607843, - 0.14021, - 0.665859, - 0.513427, - 0.611765, - 0.143303, - 0.669459, - 0.511215, - 0.615686, - 0.146616, - 0.67305, - 0.508936, - 0.619608, - 0.150148, - 0.676631, - 0.506589, - 0.623529, - 0.153894, - 0.680203, - 0.504172, - 0.627451, - 0.157851, - 0.683765, - 0.501686, - 0.631373, - 0.162016, - 0.687316, - 0.499129, - 0.635294, - 0.166383, - 0.690856, - 0.496502, - 0.639216, - 0.170948, - 0.694384, - 0.493803, - 0.643137, - 0.175707, - 0.6979, - 0.491033, - 0.647059, - 0.180653, - 0.701402, - 0.488189, - 0.65098, - 0.185783, - 0.704891, - 0.485273, - 0.654902, - 0.19109, - 0.708366, - 0.482284, - 0.658824, - 0.196571, - 0.711827, - 0.479221, - 0.662745, - 0.202219, - 0.715272, - 0.476084, - 0.666667, - 0.20803, - 0.718701, - 0.472873, - 0.670588, - 0.214, - 0.722114, - 0.469588, - 0.67451, - 0.220124, - 0.725509, - 0.466226, - 0.678431, - 0.226397, - 0.728888, - 0.462789, - 0.682353, - 0.232815, - 0.732247, - 0.459277, - 0.686275, - 0.239374, - 0.735588, - 0.455688, - 0.690196, - 0.24607, - 0.73891, - 0.452024, - 0.694118, - 0.252899, - 0.742211, - 0.448284, - 0.698039, - 0.259857, - 0.745492, - 0.444467, - 0.701961, - 0.266941, - 0.748751, - 0.440573, - 0.705882, - 0.274149, - 0.751988, - 0.436601, - 0.709804, - 0.281477, - 0.755203, - 0.432552, - 0.713725, - 0.288921, - 0.758394, - 0.428426, - 0.717647, - 0.296479, - 0.761561, - 0.424223, - 0.721569, - 0.304148, - 0.764704, - 0.419943, - 0.72549, - 0.311925, - 0.767822, - 0.415586, - 0.729412, - 0.319809, - 0.770914, - 0.411152, - 0.733333, - 0.327796, - 0.77398, - 0.40664, - 0.737255, - 0.335885, - 0.777018, - 0.402049, - 0.741176, - 0.344074, - 0.780029, - 0.397381, - 0.745098, - 0.35236, - 0.783011, - 0.392636, - 0.74902, - 0.360741, - 0.785964, - 0.387814, - 0.752941, - 0.369214, - 0.788888, - 0.382914, - 0.756863, - 0.377779, - 0.791781, - 0.377939, - 0.760784, - 0.386433, - 0.794644, - 0.372886, - 0.764706, - 0.395174, - 0.797475, - 0.367757, - 0.768627, - 0.404001, - 0.800275, - 0.362552, - 0.772549, - 0.412913, - 0.803041, - 0.357269, - 0.776471, - 0.421908, - 0.805774, - 0.35191, - 0.780392, - 0.430983, - 0.808473, - 0.346476, - 0.784314, - 0.440137, - 0.811138, - 0.340967, - 0.788235, - 0.449368, - 0.813768, - 0.335384, - 0.792157, - 0.458674, - 0.816363, - 0.329727, - 0.796078, - 0.468053, - 0.818921, - 0.323998, - 0.8, - 0.477504, - 0.821444, - 0.318195, - 0.803922, - 0.487026, - 0.823929, - 0.312321, - 0.807843, - 0.496615, - 0.826376, - 0.306377, - 0.811765, - 0.506271, - 0.828786, - 0.300362, - 0.815686, - 0.515992, - 0.831158, - 0.294279, - 0.819608, - 0.525776, - 0.833491, - 0.288127, - 0.823529, - 0.535621, - 0.835785, - 0.281908, - 0.827451, - 0.545524, - 0.838039, - 0.275626, - 0.831373, - 0.555484, - 0.840254, - 0.269281, - 0.835294, - 0.565498, - 0.84243, - 0.262877, - 0.839216, - 0.575563, - 0.844566, - 0.256415, - 0.843137, - 0.585678, - 0.846661, - 0.249897, - 0.847059, - 0.595839, - 0.848717, - 0.243329, - 0.85098, - 0.606045, - 0.850733, - 0.236712, - 0.854902, - 0.616293, - 0.852709, - 0.230052, - 0.858824, - 0.626579, - 0.854645, - 0.223353, - 0.862745, - 0.636902, - 0.856542, - 0.21662, - 0.866667, - 0.647257, - 0.8584, - 0.209861, - 0.870588, - 0.657642, - 0.860219, - 0.203082, - 0.87451, - 0.668054, - 0.861999, - 0.196293, - 0.878431, - 0.678489, - 0.863742, - 0.189503, - 0.882353, - 0.688944, - 0.865448, - 0.182725, - 0.886275, - 0.699415, - 0.867117, - 0.175971, - 0.890196, - 0.709898, - 0.868751, - 0.169257, - 0.894118, - 0.720391, - 0.87035, - 0.162603, - 0.898039, - 0.730889, - 0.871916, - 0.156029, - 0.901961, - 0.741388, - 0.873449, - 0.149561, - 0.905882, - 0.751884, - 0.874951, - 0.143228, - 0.909804, - 0.762373, - 0.876424, - 0.137064, - 0.913725, - 0.772852, - 0.877868, - 0.131109, - 0.917647, - 0.783315, - 0.879285, - 0.125405, - 0.921569, - 0.79376, - 0.880678, - 0.120005, - 0.92549, - 0.804182, - 0.882046, - 0.114965, - 0.929412, - 0.814576, - 0.883393, - 0.110347, - 0.933333, - 0.82494, - 0.88472, - 0.106217, - 0.937255, - 0.83527, - 0.886029, - 0.102646, - 0.941176, - 0.845561, - 0.887322, - 0.099702, - 0.945098, - 0.85581, - 0.888601, - 0.097452, - 0.94902, - 0.866013, - 0.889868, - 0.095953, - 0.952941, - 0.876168, - 0.891125, - 0.09525, - 0.956863, - 0.886271, - 0.892374, - 0.095374, - 0.960784, - 0.89632, - 0.893616, - 0.096335, - 0.964706, - 0.906311, - 0.894855, - 0.098125, - 0.968627, - 0.916242, - 0.896091, - 0.100717, - 0.972549, - 0.926106, - 0.89733, - 0.104071, - 0.976471, - 0.935904, - 0.89857, - 0.108131, - 0.980392, - 0.945636, - 0.899815, - 0.112838, - 0.984314, - 0.9553, - 0.901065, - 0.118128, - 0.988235, - 0.964894, - 0.902323, - 0.123941, - 0.992157, - 0.974417, - 0.90359, - 0.130215, - 0.996078, - 0.983868, - 0.904867, - 0.136897, - 1, - 0.993248, - 0.906157, - 0.143936 - ] - }, - { - ShowIndexedColorActiveValues: 1, - IndexedColors: [ - 0.07, - 0.5, - 0.7, - 1, - 1, - 1, - 0.85, - 1, - 1, - 0.8, - 0.5, - 1, - 0.76, - 1, - 0, - 1, - 0.71, - 0.71, - 0.5, - 0.5, - 0.5, - 0.05, - 0.05, - 1, - 1, - 0.05, - 0.05, - 0.7, - 1, - 1, - 0.7, - 0.89, - 0.96, - 0.67, - 0.36, - 0.95, - 0.54, - 1, - 0, - 0.75, - 0.65, - 0.65, - 0.5, - 0.6, - 0.6, - 1, - 0.5, - 0, - 1, - 1, - 0.19, - 0.12, - 0.94, - 0.12, - 0.5, - 0.82, - 0.89, - 0.56, - 0.25, - 0.83, - 0.24, - 1, - 0, - 0.9, - 0.9, - 0.9, - 0.75, - 0.76, - 0.78, - 0.65, - 0.65, - 0.67, - 0.54, - 0.6, - 0.78, - 0.61, - 0.48, - 0.78, - 0.5, - 0.48, - 0.78, - 0.44, - 0.48, - 0.78, - 0.36, - 0.48, - 0.76, - 1, - 0.48, - 0.38, - 0.49, - 0.5, - 0.69, - 0.76, - 0.56, - 0.56, - 0.4, - 0.56, - 0.56, - 0.74, - 0.5, - 0.89, - 1, - 0.63, - 0, - 0.65, - 0.16, - 0.16, - 0.36, - 0.72, - 0.82, - 0.44, - 0.18, - 0.69, - 0, - 1, - 0, - 0.58, - 1, - 1, - 0.58, - 0.88, - 0.88, - 0.45, - 0.76, - 0.79, - 0.33, - 0.71, - 0.71, - 0.23, - 0.62, - 0.62, - 0.14, - 0.56, - 0.56, - 0.04, - 0.49, - 0.55, - 0, - 0.41, - 0.52, - 0.88, - 0.88, - 1, - 1, - 0.85, - 0.56, - 0.65, - 0.46, - 0.45, - 0.4, - 0.5, - 0.5, - 0.62, - 0.39, - 0.71, - 0.83, - 0.48, - 0, - 0.58, - 0, - 0.58, - 0.26, - 0.62, - 0.69, - 0.34, - 0.09, - 0.56, - 0, - 0.79, - 0, - 0.44, - 0.83, - 1, - 1, - 1, - 0.78, - 0.85, - 1, - 0.78, - 0.78, - 1, - 0.78, - 0.64, - 1, - 0.78, - 0.56, - 1, - 0.78, - 0.38, - 1, - 0.78, - 0.27, - 1, - 0.78, - 0.19, - 1, - 0.78, - 0.12, - 1, - 0.78, - 0, - 1, - 0.61, - 0, - 0.9, - 0.46, - 0, - 0.83, - 0.32, - 0, - 0.75, - 0.22, - 0, - 0.67, - 0.14, - 0.3, - 0.76, - 1, - 0.3, - 0.65, - 1, - 0.13, - 0.58, - 0.84, - 0.15, - 0.49, - 0.67, - 0.15, - 0.4, - 0.59, - 0.09, - 0.33, - 0.53, - 0.96, - 0.93, - 0.82, - 0.8, - 0.82, - 0.12, - 0.71, - 0.71, - 0.76, - 0.65, - 0.33, - 0.3, - 0.34, - 0.35, - 0.38, - 0.62, - 0.31, - 0.71, - 0.67, - 0.36, - 0, - 0.46, - 0.31, - 0.27, - 0.26, - 0.51, - 0.59, - 0.26, - 0, - 0.4, - 0, - 0.49, - 0, - 0.44, - 0.67, - 0.98, - 0, - 0.73, - 1, - 0, - 0.63, - 1, - 0, - 0.56, - 1, - 0, - 0.5, - 1, - 0, - 0.42, - 1, - 0.33, - 0.36, - 0.95, - 0.47, - 0.36, - 0.89, - 0.54, - 0.31, - 0.89, - 0.63, - 0.21, - 0.83, - 0.7, - 0.12, - 0.83, - 0.7, - 0.12, - 0.73, - 0.7, - 0.05, - 0.65, - 0.74, - 0.05, - 0.53, - 0.78, - 0, - 0.4, - 0.8, - 0, - 0.35, - 0.82, - 0, - 0.31, - 0.85, - 0, - 0.27, - 0.88, - 0, - 0.22, - 0.9, - 0, - 0.18, - 0.91, - 0, - 0.15, - 0.92, - 0, - 0.14, - 0.93, - 0, - 0.13, - 0.94, - 0, - 0.12, - 0.95, - 0, - 0.11, - 0.96, - 0, - 0.1, - 0.97, - 0, - 0.09, - 0.98, - 0, - 0.08, - 0.99, - 0, - 0.07, - 1, - 0, - 0.06 - ], - Annotations: [ - 0, - "Xx", - 1, - "H", - 2, - "He", - 3, - "Li", - 4, - "Be", - 5, - "B", - 6, - "C", - 7, - "N", - 8, - "O", - 9, - "F", - 10, - "Ne", - 11, - "Na", - 12, - "Mg", - 13, - "Al", - 14, - "Si", - 15, - "P", - 16, - "S", - 17, - "Cl", - 18, - "Ar", - 19, - "K", - 20, - "Ca", - 21, - "Sc", - 22, - "Ti", - 23, - "V", - 24, - "Cr", - 25, - "Mn", - 26, - "Fe", - 27, - "Co", - 28, - "Ni", - 29, - "Cu", - 30, - "Zn", - 31, - "Ga", - 32, - "Ge", - 33, - "As", - 34, - "Se", - 35, - "Br", - 36, - "Kr", - 37, - "Rb", - 38, - "Sr", - 39, - "Y", - 40, - "Zr", - 41, - "Nb", - 42, - "Mo", - 43, - "Tc", - 44, - "Ru", - 45, - "Rh", - 46, - "Pd", - 47, - "Ag", - 48, - "Cd", - 49, - "In", - 50, - "Sn", - 51, - "Sb", - 52, - "Te", - 53, - "I", - 54, - "Xe", - 55, - "Cs", - 56, - "Ba", - 57, - "La", - 58, - "Ce", - 59, - "Pr", - 60, - "Nd", - 61, - "Pm", - 62, - "Sm", - 63, - "Eu", - 64, - "Gd", - 65, - "Tb", - 66, - "Dy", - 67, - "Ho", - 68, - "Er", - 69, - "Tm", - 70, - "Yb", - 71, - "Lu", - 72, - "Hf", - 73, - "Ta", - 74, - "W", - 75, - "Re", - 76, - "Os", - 77, - "Ir", - 78, - "Pt", - 79, - "Au", - 80, - "Hg", - 81, - "Tl", - 82, - "Pb", - 83, - "Bi", - 84, - "Po", - 85, - "At", - 86, - "Rn", - 87, - "Fr", - 88, - "Ra", - 89, - "Ac", - 90, - "Th", - 91, - "Pa", - 92, - "U", - 93, - "Np", - 94, - "Pu", - 95, - "Am", - 96, - "Cm", - 97, - "Bk", - 98, - "Cf", - 99, - "Es", - 100, - "Fm", - 101, - "Md", - 102, - "No", - 103, - "Lr", - 104, - "Rf", - 105, - "Db", - 106, - "Sg", - 107, - "Bh", - 108, - "Hs", - 109, - "Mt", - 110, - "Ds", - 111, - "Rg", - 112, - "Cn", - 113, - "Uut", - 114, - "Uuq", - 115, - "Uup", - 116, - "Uuh", - 117, - "Uus", - 118, - "Uuo" - ], - Name: "BlueObeliskElements" - } -]; - -export { vtkColorMaps as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMapsLite.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMapsLite.js deleted file mode 100644 index cb6fa06d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/ColorMapsLite.js +++ /dev/null @@ -1,51 +0,0 @@ -import { v as vtkColorMaps$1 } from './LiteColorMaps.json.js'; - -const presetMap = Object.create(null); -vtkColorMaps$1.filter(p => p.RGBPoints).filter(p => p.ColorSpace !== 'CIELAB').forEach(p => { - presetMap[p.Name] = p; -}); - -// ---------------------------------------------------------------------------- - -const rgbPresetNames = Object.keys(presetMap); -rgbPresetNames.sort(); - -// ---------------------------------------------------------------------------- - -function getPresetByName(name) { - return presetMap[name]; -} - -// ---------------------------------------------------------------------------- - -function addPreset(preset) { - if (!preset.RGBPoints || preset.ColorSpace === 'CIELAB') { - return; - } - if (!presetMap[preset.Name]) { - rgbPresetNames.push(preset.Name); - rgbPresetNames.sort(); - } - presetMap[preset.Name] = preset; -} - -// ---------------------------------------------------------------------------- - -function removePresetByName(name) { - const index = rgbPresetNames.indexOf(name); - if (index > -1) { - rgbPresetNames.splice(index, 1); - } - delete presetMap[name]; -} - -// ---------------------------------------------------------------------------- - -var vtkColorMaps = { - addPreset, - removePresetByName, - getPresetByName, - rgbPresetNames -}; - -export { vtkColorMaps as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/Constants.d.ts deleted file mode 100644 index ba0470fb..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/Constants.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -export declare enum ColorSpace { - RGB = 0, - HSV = 1, - LAB = 2, - DIVERGING = 3, -} - -export declare enum Scale { - LINEAR = 0, - LOG10 = 1, -} - -declare const _default: { - ColorSpace: typeof ColorSpace; - Scale: typeof Scale; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/Constants.js deleted file mode 100644 index fe0579de..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/Constants.js +++ /dev/null @@ -1,16 +0,0 @@ -const ColorSpace = { - RGB: 0, - HSV: 1, - LAB: 2, - DIVERGING: 3 -}; -const Scale = { - LINEAR: 0, - LOG10: 1 -}; -var Constants = { - ColorSpace, - Scale -}; - -export { ColorSpace, Scale, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/CssFilters.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/CssFilters.d.ts deleted file mode 100644 index 74244f58..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/CssFilters.d.ts +++ /dev/null @@ -1,135 +0,0 @@ -/** - * A helper file to transform RGBA points using CSS filters equivalent - * The equivalents of CSS filters using SVG filters can be found here: - * https://www.w3.org/TR/filter-effects-1/#ShorthandEquivalents - * For each SVG filter, you can look for the maths behind it on the same page: - * https://www.w3.org/TR/filter-effects-1/#FilterPrimitivesOverview - * - * For example, the saturate filter equivalent is here: - * https://www.w3.org/TR/filter-effects-1/#saturateEquivalent - * And the maths behind the feColorMatrix of type saturate is here: - * https://www.w3.org/TR/filter-effects-1/#ref-for-attr-valuedef-type-saturate - * - * The transforms are done using matrices of size 5 by 5. They are row major - * as in vtkMath. The vectors representing the RGBA points uses - * [R, G, B, A, 1] vectors, with each channel between 0 and 1. - */ - -import { Matrix, Vector3 } from '../../../types'; - -export const luminanceWeights: Vector3; -export type FilterMatrix = Matrix; - -/** - * Create a new filter matrix - * This is a 5x5 row major array - * Use applyFilter() function to use it - * It is NOT the identity - */ -export function createCSSFilter(): FilterMatrix; - -/** - * Convert a filter to an identity matrix or create a new identity filter - * @param outFilter If specified, the outFilter is converted to identity filter - */ -export function createIdentityFilter(outFilter?: FilterMatrix): FilterMatrix; - -/** - * Combine two filters into a single filter - * Warning: it is NOT an operation inspired by CSS filters - * For this, apply filters one by one using applyFilter - * The clamping step is not applied between each filter when the filters are combined - * The order of the filters matters - * @param baseFilter The first filter that will be applied - * @param newFilter The second filter that will be applied - * @param outFilter An optional filter that will contain the combined filter - */ -export function combineFilters( - baseFilter: FilterMatrix, - newFilter: FilterMatrix, - outFilter?: FilterMatrix -): FilterMatrix; - -/** - * Apply a filter to a rgb(a) point - * It is a multiplication by the matrix and a clamping - * @param filter The filter - * @param r The red channel (between 0 and 1) - * @param g The green channel (between 0 and 1) - * @param b The blue channel (between 0 and 1) - * @param a The optional alpha channel (between 0 and 1), defaults to 1 - * @returns A vector of size 4 [r, g, b, a] - */ -export function applyFilter( - filter: FilterMatrix, - r: number, - g: number, - b: number, - a?: number -): [number, number, number, number]; - -/** - * A generic linear filter - * See svg equivalent for parameters and a specification - * https://www.w3.org/TR/filter-effects-1/#attr-valuedef-type-linear - * @param slope - * @param intercept - * @param outFilter Optional output, a new filter is created if not specified - */ -export function createLinearFilter( - slope: number, - intercept: number, - outFilter?: FilterMatrix -): FilterMatrix; - -/** - * A contrast filter - * See css/svg equivalent for parameters and a specification - * https://www.w3.org/TR/filter-effects-1/#contrastEquivalent - * https://www.w3.org/TR/filter-effects-1/#attr-valuedef-type-linear - * @param contrast - * @param outFilter Optional output, a new filter is created if not specified - */ -export function createContrastFilter( - contrast: number, - outFilter?: FilterMatrix -): FilterMatrix; - -/** - * A saturate filter - * See css/svg equivalent for parameters and a specification - * https://www.w3.org/TR/filter-effects-1/#saturateEquivalent - * https://www.w3.org/TR/filter-effects-1/#ref-for-attr-valuedef-type-saturate - * @param saturate - * @param outFilter Optional output, a new filter is created if not specified - */ -export function createSaturateFilter( - saturate: number, - outFilter?: FilterMatrix -): FilterMatrix; - -/** - * A brightness filter - * See css/svg equivalent for parameters and a specification - * https://www.w3.org/TR/filter-effects-1/#brightnessEquivalent - * https://www.w3.org/TR/filter-effects-1/#attr-valuedef-type-linear - * @param brightness - * @param outFilter Optional output, a new filter is created if not specified - */ -export function createBrightnessFilter( - brightness: number, - outFilter?: FilterMatrix -): FilterMatrix; - -/** - * An invert filter - * See css/svg equivalent for parameters and a specification - * https://www.w3.org/TR/filter-effects-1/#invertEquivalent - * https://www.w3.org/TR/filter-effects-1/#attr-valuedef-type-table - * @param invert - * @param outFilter Optional output, a new filter is created if not specified - */ -export function createInvertFilter( - invert: number, - outFilter?: FilterMatrix -): FilterMatrix; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/CssFilters.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/CssFilters.js deleted file mode 100644 index 642e3bb2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/CssFilters.js +++ /dev/null @@ -1,103 +0,0 @@ -import { K as identity, L as multiplyMatrix } from '../../../Common/Core/Math/index.js'; - -/** - * A helper file to transform RGBA points using CSS filters equivalent - * The equivalents of CSS filters using SVG filters can be found here: - * https://www.w3.org/TR/filter-effects-1/#ShorthandEquivalents - * For each SVG filter, you can look for the maths behind it on the same page: - * https://www.w3.org/TR/filter-effects-1/#FilterPrimitivesOverview - * - * For example, the saturate filter equivalent is here: - * https://www.w3.org/TR/filter-effects-1/#saturateEquivalent - * And the maths behind the feColorMatrix of type saturate is here: - * https://www.w3.org/TR/filter-effects-1/#ref-for-attr-valuedef-type-saturate - * - * The transforms are done using matrices of size 5 by 5. They are row major - * as in vtkMath. The vectors representing the RGBA points uses - * [R, G, B, A, 1] vectors, with each channel between 0 and 1. - */ -const luminanceWeights = [0.213, 0.715, 0.072]; -function createCSSFilter() { - return new Array(25); -} -function createIdentityFilter() { - let outFilter = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : createCSSFilter(); - return identity(5, outFilter); -} -function combineFilters(baseFilter, newFilter) { - let outFilter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : createCSSFilter(); - multiplyMatrix(newFilter, baseFilter, 5, 5, 5, 5, outFilter); - return outFilter; -} -function applyFilter(filter, r, g, b) { - let a = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1; - const vec = [r, g, b, a, 1]; - multiplyMatrix(filter, vec, 5, 5, 5, 1, vec); - // Clamp R, G, B, A - const output = new Array(4); - for (let i = 0; i < 4; ++i) { - const value = vec[i]; - if (value < 0) { - output[i] = 0; - } else if (value > 1) { - output[i] = 1; - } else { - output[i] = value; - } - } - return output; -} -function createLinearFilter(slope, intercept) { - let outFilter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : createCSSFilter(); - createIdentityFilter(outFilter); - for (let row = 0; row < 3; ++row) { - outFilter[row * 5 + row] = slope; - outFilter[row * 5 + 4] = intercept; - } - return outFilter; -} - -// https://www.w3.org/TR/filter-effects-1/#contrastEquivalent -// https://www.w3.org/TR/filter-effects-1/#attr-valuedef-type-linear -function createContrastFilter(contrast) { - let outFilter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : createCSSFilter(); - const slope = contrast; - const intercept = -(0.5 * contrast) + 0.5; - return createLinearFilter(slope, intercept, outFilter); -} - -// https://www.w3.org/TR/filter-effects-1/#saturateEquivalent -// https://www.w3.org/TR/filter-effects-1/#ref-for-attr-valuedef-type-saturate -function createSaturateFilter(saturate) { - let outFilter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : createCSSFilter(); - createIdentityFilter(outFilter); - for (let col = 0; col < 3; ++col) { - const columnLuminance = luminanceWeights[col]; - const diagonalValue = columnLuminance + (1 - columnLuminance) * saturate; - const nonDiagonalValue = columnLuminance - columnLuminance * saturate; - for (let row = 0; row < 3; ++row) { - outFilter[row * 5 + col] = row === col ? diagonalValue : nonDiagonalValue; - } - } - return outFilter; -} - -// https://www.w3.org/TR/filter-effects-1/#brightnessEquivalent -// https://www.w3.org/TR/filter-effects-1/#attr-valuedef-type-linear -function createBrightnessFilter(brightness) { - let outFilter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : createCSSFilter(); - const slope = brightness; - const intercept = 0; - return createLinearFilter(slope, intercept, outFilter); -} - -// https://www.w3.org/TR/filter-effects-1/#invertEquivalent -// https://www.w3.org/TR/filter-effects-1/#attr-valuedef-type-table -function createInvertFilter(invert) { - let outFilter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : createCSSFilter(); - const slope = 1 - 2 * invert; - const intercept = invert; - return createLinearFilter(slope, intercept, outFilter); -} - -export { applyFilter, combineFilters, createBrightnessFilter, createCSSFilter, createContrastFilter, createIdentityFilter, createInvertFilter, createLinearFilter, createSaturateFilter, luminanceWeights }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/LiteColorMaps.json.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/LiteColorMaps.json.js deleted file mode 100644 index 68f4a851..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ColorTransferFunction/LiteColorMaps.json.js +++ /dev/null @@ -1,383 +0,0 @@ -var vtkColorMaps = [ - { - ColorSpace: "Diverging", - Name: "Cool to Warm", - NanColor: [ - 1, - 1, - 0 - ], - RGBPoints: [ - 0, - 0.23137254902, - 0.298039215686, - 0.752941176471, - 0.5, - 0.865, - 0.865, - 0.865, - 1, - 0.705882352941, - 0.0156862745098, - 0.149019607843 - ] - }, - { - ColorSpace: "Diverging", - Name: "Warm to Cool", - NanColor: [ - 1, - 1, - 0 - ], - RGBPoints: [ - 0, - 0.705882352941, - 0.0156862745098, - 0.149019607843, - 0.5, - 0.865, - 0.865, - 0.865, - 1, - 0.23137254902, - 0.298039215686, - 0.752941176471 - ] - }, - { - ColorSpace: "RGB", - Name: "Rainbow Desaturated", - NanColor: [ - 1, - 1, - 0 - ], - RGBPoints: [ - 0, - 0.278431372549, - 0.278431372549, - 0.858823529412, - 0.143, - 0, - 0, - 0.360784313725, - 0.285, - 0, - 1, - 1, - 0.429, - 0, - 0.501960784314, - 0, - 0.571, - 1, - 1, - 0, - 0.714, - 1, - 0.380392156863, - 0, - 0.857, - 0.419607843137, - 0, - 0, - 1, - 0.878431372549, - 0.301960784314, - 0.301960784314 - ] - }, - { - ColorSpace: "RGB", - Name: "Cold and Hot", - NanColor: [ - 1, - 1, - 0 - ], - RGBPoints: [ - 0, - 0, - 1, - 1, - 0.45, - 0, - 0, - 1, - 0.5, - 0, - 0, - 0.501960784314, - 0.55, - 1, - 0, - 0, - 1, - 1, - 1, - 0 - ] - }, - { - ColorSpace: "RGB", - Name: "Black-Body Radiation", - NanColor: [ - 0, - 0.498039215686, - 1 - ], - RGBPoints: [ - 0, - 0, - 0, - 0, - 0.4, - 0.901960784314, - 0, - 0, - 0.8, - 0.901960784314, - 0.901960784314, - 0, - 1, - 1, - 1, - 1 - ] - }, - { - ColorSpace: "RGB", - Name: "X Ray", - NanColor: [ - 1, - 0, - 0 - ], - RGBPoints: [ - 0, - 1, - 1, - 1, - 1, - 0, - 0, - 0 - ] - }, - { - ColorSpace: "RGB", - Name: "Grayscale", - NanColor: [ - 1, - 0, - 0 - ], - RGBPoints: [ - 0, - 0, - 0, - 0, - 1, - 1, - 1, - 1 - ] - }, - { - ColorSpace: "RGB", - Name: "Black, Blue and White", - NanColor: [ - 1, - 1, - 0 - ], - RGBPoints: [ - 0, - 0, - 0, - 0, - 0.333, - 0, - 0, - 0.501960784314, - 0.666, - 0, - 0.501960784314, - 1, - 1, - 1, - 1, - 1 - ] - }, - { - ColorSpace: "RGB", - Name: "Black, Orange and White", - NanColor: [ - 1, - 1, - 0 - ], - RGBPoints: [ - 0, - 0, - 0, - 0, - 0.333, - 0.501960784314, - 0, - 0, - 0.666, - 1, - 0.501960784314, - 0, - 1, - 1, - 1, - 1 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_rainbow_bright", - RGBPoints: [ - -1, - 0.32549, - 0.14902, - 0.960784, - -0.866221, - 0.297047, - 0.375586, - 0.963836, - -0.732441, - 0.180302, - 0.536818, - 0.964627, - -0.598662, - 0.1302, - 0.649207, - 0.929647, - -0.464883, - 0.0445143, - 0.749654, - 0.855998, - -0.331104, - 0.0271325, - 0.830713, - 0.721527, - -0.197324, - 0.259504, - 0.866145, - 0.543555, - -0.0635452, - 0.428364, - 0.890725, - 0.329819, - 0.0702341, - 0.568503, - 0.898508, - 0.187623, - 0.204013, - 0.738259, - 0.890317, - 0.0825461, - 0.337793, - 0.84546, - 0.86136, - 0.0147555, - 0.471572, - 0.912191, - 0.808018, - 0, - 0.605351, - 0.962848, - 0.710445, - 0, - 0.73913, - 0.999469, - 0.600258, - 0.0176284, - 0.87291, - 0.994156, - 0.445975, - 0.193912, - 1, - 0.980407, - 0.247105, - 0.262699 - ] - }, - { - ColorSpace: "Lab", - Name: "erdc_rainbow_dark", - RGBPoints: [ - -1, - 0, - 0, - 0.423499, - -0.866221, - 0, - 0.119346, - 0.529237, - -0.732441, - 0, - 0.238691, - 0.634976, - -0.598662, - 0, - 0.346852, - 0.68788, - -0.464883, - 0, - 0.45022, - 0.718141, - -0.331104, - 0, - 0.553554, - 0.664839, - -0.197324, - 0, - 0.651082, - 0.519303, - -0.0635452, - 0.115841, - 0.72479, - 0.352857, - 0.0702341, - 0.326771, - 0.781195, - 0.140187, - 0.204013, - 0.522765, - 0.798524, - 0.0284624, - 0.337793, - 0.703162, - 0.788685, - 0.00885756, - 0.471572, - 0.845118, - 0.751133, - 0, - 0.605351, - 0.955734, - 0.690825, - 0, - 0.73913, - 0.995402, - 0.567916, - 0.0618524, - 0.87291, - 0.987712, - 0.403398, - 0.164851, - 1, - 0.980407, - 0.247105, - 0.262699 - ] - } -]; - -export { vtkColorMaps as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Coordinate.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Coordinate.d.ts deleted file mode 100644 index 1f4adb05..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Coordinate.d.ts +++ /dev/null @@ -1,254 +0,0 @@ -import { vtkObject, vtkProperty } from './../../interfaces'; -import vtkRenderer from './Renderer'; -import { Coordinate } from './Coordinate/Constants'; - -/** - * - */ -export interface ICoordinateInitialValues { - coordinateSystem?: number; - value?: number[]; - renderer?: vtkRenderer; - referenceCoordinate?: any; - computing?: number; - computedWorldValue?: number[]; - computedDoubleDisplayValue?: number[]; -} - -export interface vtkCoordinate extends vtkObject { - /** - * - * @param {vtkRenderer} ren The vtkRenderer instance. - */ - getComputedWorldValue(ren: vtkRenderer): number[]; - - /** - * - * @param {vtkRenderer} ren The vtkRenderer instance. - */ - getComputedViewportValue(ren: vtkRenderer): number[]; - - /** - * - * @param {vtkRenderer} ren The vtkRenderer instance. - */ - getComputedDisplayValue(ren: vtkRenderer): number[]; - - /** - * - * @param {vtkRenderer} ren The vtkRenderer instance. - */ - getComputedLocalDisplayValue(ren: vtkRenderer): number[]; - - /** - * - * @param {vtkRenderer} ren The vtkRenderer instance. - */ - getComputedValue(ren: vtkRenderer): number[]; - - /** - * - * @param {vtkRenderer} ren The vtkRenderer instance. - */ - getComputedDoubleViewportValue(ren: vtkRenderer): number[]; - - /** - * - * @param {vtkRenderer} ren The vtkRenderer instance. - */ - getComputedDoubleDisplayValue(ren: vtkRenderer): number[]; - - /** - * Get the coordinate system which this coordinate is defined in. The - * options are Display, Normalized Display, Viewport, Normalized Viewport, - * View, and World. - */ - getCoordinateSystem(): Coordinate; - - /** - * Get the coordinate system which this coordinate is defined in as string. - */ - getCoordinateSystemAsString(): string; - - /** - * Get the value of this coordinate. - */ - getValue(): number[]; - - /** - * - */ - getReferenceCoordinate(): vtkCoordinate; - - /** - * Get mapper that was picked (if any) - */ - getRenderer(): vtkRenderer; - - /** - * Set the coordinate system which this coordinate is defined in. The - * options are Display, Normalized Display, Viewport, Normalized Viewport, - * View, and World. - * @param {Coordinate} coordinateSystem - */ - setCoordinateSystem(coordinateSystem: Coordinate): boolean; - - /** - * Set the coordinate system to Coordinate.DISPLAY - */ - setCoordinateSystemToDisplay(): void; - - /** - * Set the coordinate system to Coordinate.NORMALIZED_DISPLAY - */ - setCoordinateSystemToNormalizedDisplay(): void; - - /** - * Set the coordinate system to Coordinate.NORMALIZED_VIEWPORT - */ - setCoordinateSystemToNormalizedViewport(): void; - - /** - * Set the coordinate system to Coordinate.PROJECTION - */ - setCoordinateSystemToProjection(): void; - - /** - * Set the coordinate system to Coordinate.VIEW - */ - setCoordinateSystemToView(): void; - - /** - * Set the coordinate system to Coordinate.VIEWPORT - */ - setCoordinateSystemToViewport(): void; - - /** - * Set the coordinate system to Coordinate.WORLD - */ - setCoordinateSystemToWorld(): void; - - /** - * - * @param {vtkProperty} property - */ - setProperty(property: vtkProperty): boolean; - - /** - * - * @param {vtkCoordinate} referenceCoordinate - */ - setReferenceCoordinate(referenceCoordinate: vtkCoordinate): boolean; - - /** - * - * @param {vtkRenderer} renderer - */ - setRenderer(renderer: vtkRenderer): boolean; - - /** - * Set the value of this coordinate. - * @param value - */ - setValue(value: number[]): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkCoordinate - * characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ICoordinateInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ICoordinateInitialValues -): void; - -/** - * Method use to create a new instance of vtkCoordinate - * @param {ICoordinateInitialValues} [initialValues] for pre-setting some of its - * content - */ -export function newInstance( - initialValues?: ICoordinateInitialValues -): vtkCoordinate; - -/** - * vtkCoordinate represents position in a variety of coordinate systems, and - * converts position to other coordinate systems. It also supports relative - * positioning, so you can create a cascade of vtkCoordinate objects (no loops - * please!) that refer to each other. The typical usage of this object is to set - * the coordinate system in which to represent a position (e.g., - * SetCoordinateSystemToNormalizedDisplay()), set the value of the coordinate - * (e.g., SetValue()), and then invoke the appropriate method to convert to - * another coordinate system (e.g., GetComputedWorldValue()). - * - * The coordinate systems in vtk are as follows: - * - * - DISPLAY - x-y pixel values in window 0, 0 is the lower left of the first - * pixel, size, size is the upper right of the last pixel - * - NORMALIZED DISPLAY - x-y (0,1) normalized values 0, 0 is the lower left of - * the first pixel, 1, 1 is the upper right of the last pixel - * - VIEWPORT - x-y pixel values in viewport 0, 0 is the lower left of the first - * pixel, size, size is the upper right of the last pixel - * - NORMALIZED VIEWPORT - x-y (0,1) normalized value in viewport 0, 0 is the - * lower left of the first pixel, 1, 1 is the upper right of the last pixel - * - VIEW - x-y-z (-1,1) values in pose coordinates. (z is depth) - * - POSE - world coords translated and rotated to the camera position and view - * direction - * - STABILIZED - used by rendering backends to deal with floating point - * resolution issues. Similar to world coordinates but with a translation to - * try to get the matricies to be well behaved. - * - WORLD - x-y-z global coordinate values - * - MODEL - x-y-z coordinate values in the data's coordinates, the actor holds - * a matrix to go to world - * - BUFFER - x-y-x coordinates as stored int he VBO - * - DATA - x-y-z the original coordintes of the dataset - * - USERDEFINED - x-y-z in User defined space - * - * If you cascade vtkCoordinate objects, you refer to another vtkCoordinate - * object which in turn can refer to others, and so on. This allows you to - * create composite groups of things like vtkActor2D that are positioned - * relative to one another. - * - * !!! note - * In cascaded sequences, each vtkCoordinate object may be specified in different coordinate systems! - * - * How the data may go from a dataset through the rendering pipeline in steps - * - * Dataset -> GPU buffer: DCBCMatrix usually this is just a shift and/or scale - * to get the GPU buffer for the points into values that will nto run into - * floating point resolution issues. This is handled when creating the buffer - * - * - Buffer to Model: BCMCMatrix just reverses the shift/scale applied to the - * buffer above - * - Model to World: MCWCMatrix uses the Actor's matrix to transform the points - * to World coordinates - * - World to Stabilized: WCSCMatrix Maps world to the shifted maybe scalede - * renderer's stabilized center/matrix - * - Stabilized to View: SCVCMatrix captures the rest of the transformation to - * View coordinates - * - View to Projection: VCPCMatrix cpatures the ortho/perspective matrix - * - Projection to ...: done by the GPU hardware as part of the vertex to - * fragment - * - * Typically the process is simplified into the 4 following steps : - * - * - DataSet to Buffer - done when creating the buffer - * - Buffer To Stabilized - BCSCMatrix done in the vertex shader, part of the - * mapperUBO - * - Stabilized To Projection - SCPCMatrix second matrix mult done in the vertex - * shader, part of the rendererUBO - * - Projection to ...: vertex to fragment shader operations - * - * @see [vtkActor](./Rendering_Core_Actor.html)2D - */ -export declare const vtkCoordinate: { - newInstance: typeof newInstance; - extend: typeof extend; - Coordinate: typeof Coordinate; -}; -export default vtkCoordinate; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Coordinate.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Coordinate.js deleted file mode 100644 index fa035d1e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Coordinate.js +++ /dev/null @@ -1,424 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import Constants from './Coordinate/Constants.js'; -import { R as round, M as floor } from '../../Common/Core/Math/index.js'; - -const { - Coordinate -} = Constants; -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkActor methods -// ---------------------------------------------------------------------------- - -function vtkCoordinate(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCoordinate'); - publicAPI.setValue = function () { - if (model.deleted) { - vtkErrorMacro('instance deleted - cannot call any method'); - return false; - } - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - let array = args; - // allow an array passed as a single arg. - if (array.length === 1 && Array.isArray(array[0])) { - array = array[0]; - } - if (array.length === 2) { - publicAPI.setValue(array[0], array[1], 0.0); - return true; - } - if (array.length !== 3) { - throw new RangeError('Invalid number of values for array setter'); - } - let changeDetected = false; - model.value.forEach((item, index) => { - if (item !== array[index]) { - if (changeDetected) { - return; - } - changeDetected = true; - } - }); - if (changeDetected) { - model.value = [].concat(array); - publicAPI.modified(); - } - return true; - }; - publicAPI.setCoordinateSystemToDisplay = () => { - publicAPI.setCoordinateSystem(Coordinate.DISPLAY); - }; - publicAPI.setCoordinateSystemToNormalizedDisplay = () => { - publicAPI.setCoordinateSystem(Coordinate.NORMALIZED_DISPLAY); - }; - publicAPI.setCoordinateSystemToViewport = () => { - publicAPI.setCoordinateSystem(Coordinate.VIEWPORT); - }; - publicAPI.setCoordinateSystemToNormalizedViewport = () => { - publicAPI.setCoordinateSystem(Coordinate.NORMALIZED_VIEWPORT); - }; - publicAPI.setCoordinateSystemToProjection = () => { - publicAPI.setCoordinateSystem(Coordinate.PROJECTION); - }; - publicAPI.setCoordinateSystemToView = () => { - publicAPI.setCoordinateSystem(Coordinate.VIEW); - }; - publicAPI.setCoordinateSystemToWorld = () => { - publicAPI.setCoordinateSystem(Coordinate.WORLD); - }; - publicAPI.getCoordinateSystemAsString = () => macro.enumToString(Coordinate, model.coordinateSystem); - publicAPI.getComputedWorldValue = ren => { - let val = model.computedWorldValue; - if (model.computing) { - return val; - } - model.computing = 1; - val[0] = model.value[0]; - val[1] = model.value[1]; - val[2] = model.value[2]; - - // Use our renderer if is defined - let renderer = ren; - if (model.renderer) { - renderer = model.renderer; - } - if (!renderer) { - if (model.coordinateSystem === Coordinate.WORLD) { - if (model.referenceCoordinate) { - const refValue = model.referenceCoordinate.getComputedWorldValue(renderer); - val[0] += refValue[0]; - val[1] += refValue[1]; - val[2] += refValue[2]; - } - model.computing = 0; - } else { - vtkErrorMacro('Attempt to compute world coordinates from another coordinate system without a renderer'); - } - return val; - } - - // convert to current coordinate system - let view = null; - if (renderer && renderer.getRenderWindow().getViews()) { - view = renderer.getRenderWindow().getViews()[0]; - } else { - return model.computedWorldValue; - } - const dims = view.getViewportSize(renderer); - const aspect = dims[0] / dims[1]; - if (model.referenceCoordinate && model.coordinateSystem !== Coordinate.WORLD) { - const fval = model.referenceCoordinate.getComputedDoubleDisplayValue(renderer); - let refValue = [fval[0], fval[1], 0.0]; - switch (model.coordinateSystem) { - case Coordinate.NORMALIZED_DISPLAY: - refValue = view.displayToNormalizedDisplay(refValue[0], refValue[1], refValue[2]); - break; - case Coordinate.VIEWPORT: - refValue = view.displayToNormalizedDisplay(refValue[0], refValue[1], refValue[2]); - refValue = view.normalizedDisplayToViewport(refValue[0], refValue[1], refValue[2], renderer); - break; - case Coordinate.NORMALIZED_VIEWPORT: - refValue = view.displayToNormalizedDisplay(refValue[0], refValue[1], refValue[2]); - refValue = view.normalizedDisplayToViewport(refValue[0], refValue[1], refValue[2], renderer); - refValue = view.viewportToNormalizedViewport(refValue[0], refValue[1], refValue[2], renderer); - break; - case Coordinate.PROJECTION: - refValue = view.displayToNormalizedDisplay(refValue[0], refValue[1], refValue[2]); - refValue = view.normalizedDisplayToViewport(refValue[0], refValue[1], refValue[2], renderer); - refValue = view.viewportToNormalizedViewport(refValue[0], refValue[1], refValue[2], renderer); - refValue = renderer.normalizedViewportToProjection(refValue[0], refValue[1], refValue[2]); - break; - case Coordinate.VIEW: - refValue = view.displayToNormalizedDisplay(refValue[0], refValue[1], refValue[2]); - refValue = view.normalizedDisplayToViewport(refValue[0], refValue[1], refValue[2], renderer); - refValue = view.viewportToNormalizedViewport(refValue[0], refValue[1], refValue[2], renderer); - refValue = renderer.normalizedViewportToProjection(refValue[0], refValue[1], refValue[2]); - refValue = renderer.projectionToView(refValue[0], refValue[1], refValue[2], aspect); - break; - } - val[0] += refValue[0]; - val[1] += refValue[1]; - val[2] += refValue[2]; - } - switch (model.coordinateSystem) { - case Coordinate.DISPLAY: - val = view.displayToNormalizedDisplay(val[0], val[1], val[2]); - val = view.normalizedDisplayToViewport(val[0], val[1], val[2], renderer); - val = view.viewportToNormalizedViewport(val[0], val[1], val[2], renderer); - val = renderer.normalizedViewportToProjection(val[0], val[1], val[2]); - val = renderer.projectionToView(val[0], val[1], val[2], aspect); - val = renderer.viewToWorld(val[0], val[1], val[2]); - break; - case Coordinate.NORMALIZED_DISPLAY: - val = view.normalizedDisplayToViewport(val[0], val[1], val[2], renderer); - val = view.viewportToNormalizedViewport(val[0], val[1], val[2], renderer); - val = renderer.normalizedViewportToProjection(val[0], val[1], val[2]); - val = renderer.projectionToView(val[0], val[1], val[2], aspect); - val = renderer.viewToWorld(val[0], val[1], val[2]); - break; - case Coordinate.VIEWPORT: - val = view.viewportToNormalizedViewport(val[0], val[1], val[2], renderer); - val = renderer.normalizedViewportToProjection(val[0], val[1], val[2]); - val = renderer.projectionToView(val[0], val[1], val[2], aspect); - val = renderer.viewToWorld(val[0], val[1], val[2]); - break; - case Coordinate.NORMALIZED_VIEWPORT: - val = renderer.normalizedViewportToProjection(val[0], val[1], val[2]); - val = renderer.projectionToView(val[0], val[1], val[2], aspect); - val = renderer.viewToWorld(val[0], val[1], val[2]); - break; - case Coordinate.PROJECTION: - val = renderer.projectionToView(val[0], val[1], val[2], aspect); - val = renderer.viewToWorld(val[0], val[1], val[2]); - break; - case Coordinate.VIEW: - val = renderer.viewToWorld(val[0], val[1], val[2]); - break; - } - if (model.referenceCoordinate && model.coordinateSystem === Coordinate.WORLD) { - const refValue = publicAPI.getComputedWorldValue(renderer); - val[0] += refValue[0]; - val[1] += refValue[1]; - val[2] += refValue[2]; - } - model.computing = 0; - model.computedWorldValue = val.slice(0); - return val; - }; - publicAPI.getComputedViewportValue = ren => { - const f = publicAPI.getComputedDoubleViewportValue(ren); - return [round(f[0]), round(f[1])]; - }; - publicAPI.getComputedDisplayValue = ren => { - const val = publicAPI.getComputedDoubleDisplayValue(ren); - return [floor(val[0]), floor(val[1])]; - }; - publicAPI.getComputedLocalDisplayValue = ren => { - // Use our renderer if it is defined - let renderer = ren; - if (model.renderer) { - renderer = model.renderer; - } - let val = publicAPI.getComputedDisplayValue(renderer); - if (!renderer) { - vtkErrorMacro('Attempt to convert to local display coordinates without a renderer'); - return val; - } - let view = null; - if (renderer && renderer.getRenderWindow().getViews()) { - view = renderer.getRenderWindow().getViews()[0]; - } else { - return val; - } - val = view.displayToLocalDisplay(val[0], val[1], val[2]); - return [round(val[0]), round(val[1])]; - }; - publicAPI.getComputedDoubleViewportValue = ren => { - let renderer = ren; - if (model.renderer) { - renderer = model.renderer; - } - let val = publicAPI.getComputedDoubleDisplayValue(renderer); - if (!renderer) { - return val; - } - let view = null; - if (renderer && renderer.getRenderWindow().getViews()) { - view = renderer.getRenderWindow().getViews()[0]; - } else { - return val; - } - val = view.displayToNormalizedDisplay(val[0], val[1], val[2]); - val = view.normalizedDisplayToViewport(val[0], val[1], val[2], renderer); - return [val[0], val[1]]; - }; - publicAPI.getComputedDoubleDisplayValue = ren => { - if (model.computing) { - return model.computedDoubleDisplayValue; - } - model.computing = 1; - let val = model.value.slice(0); - let renderer = ren; - if (model.renderer) { - renderer = model.renderer; - } - if (!renderer) { - if (model.coordinateSystem === Coordinate.DISPLAY) { - model.computedDoubleDisplayValue[0] = val[0]; - model.computedDoubleDisplayValue[1] = val[1]; - if (model.referenceCoordinate) { - const refValue = model.referenceCoordinate.getComputedDoubleDisplayValue(); - model.computedDoubleDisplayValue[0] += refValue[0]; - model.computedDoubleDisplayValue[1] += refValue[1]; - } - } else { - model.computedDoubleDisplayValue[0] = Number.MAX_VALUE; - model.computedDoubleDisplayValue[1] = Number.MAX_VALUE; - vtkErrorMacro('Request for coordinate transformation without required viewport'); - } - return model.computedDoubleDisplayValue; - } - let view = null; - if (renderer && renderer.getRenderWindow().getViews()) { - view = renderer.getRenderWindow().getViews()[0]; - } else { - return val; - } - const dims = view.getViewportSize(renderer); - const aspect = dims[0] / dims[1]; - switch (model.coordinateSystem) { - case Coordinate.WORLD: - { - if (model.referenceCoordinate) { - const refValue = model.referenceCoordinate.getComputedWorldValue(renderer); - val[0] += refValue[0]; - val[1] += refValue[1]; - val[2] += refValue[2]; - } - val = renderer.worldToView(val[0], val[1], val[2]); - val = renderer.viewToProjection(val[0], val[1], val[2], aspect); - val = renderer.projectionToNormalizedViewport(val[0], val[1], val[2]); - val = view.normalizedViewportToViewport(val[0], val[1], val[2], renderer); - val = view.viewportToNormalizedDisplay(val[0], val[1], val[2], renderer); - val = view.normalizedDisplayToDisplay(val[0], val[1], val[2]); - break; - } - case Coordinate.VIEW: - { - val = renderer.viewToProjection(val[0], val[1], val[2], aspect); - val = renderer.projectionToNormalizedViewport(val[0], val[1], val[2]); - val = view.normalizedViewportToViewport(val[0], val[1], val[2], renderer); - val = view.viewportToNormalizedDisplay(val[0], val[1], val[2], renderer); - val = view.normalizedDisplayToDisplay(val[0], val[1], val[2]); - break; - } - case Coordinate.PROJECTION: - { - val = renderer.projectionToNormalizedViewport(val[0], val[1], val[2]); - val = view.normalizedViewportToViewport(val[0], val[1], val[2], renderer); - val = view.viewportToNormalizedDisplay(val[0], val[1], val[2], renderer); - val = view.normalizedDisplayToDisplay(val[0], val[1], val[2]); - break; - } - case Coordinate.NORMALIZED_VIEWPORT: - { - val = view.normalizedViewportToViewport(val[0], val[1], val[2], renderer); - if (model.referenceCoordinate) { - const refValue = model.referenceCoordinate.getComputedDoubleViewportValue(renderer); - val[0] += refValue[0]; - val[1] += refValue[1]; - } - val = view.viewportToNormalizedDisplay(val[0], val[1], val[2], renderer); - val = view.normalizedDisplayToDisplay(val[0], val[1], val[2]); - break; - } - case Coordinate.VIEWPORT: - { - if (model.referenceCoordinate) { - const refValue = model.referenceCoordinate.getComputedDoubleViewportValue(renderer); - val[0] += refValue[0]; - val[1] += refValue[1]; - } - val = view.viewportToNormalizedDisplay(val[0], val[1], val[2], renderer); - val = view.normalizedDisplayToDisplay(val[0], val[1], val[2]); - break; - } - case Coordinate.NORMALIZED_DISPLAY: - val = view.normalizedDisplayToDisplay(val[0], val[1], val[2]); - break; - case Coordinate.USERDEFINED: - val = model.value.slice(0); - break; - } - - // if we have a reference coordinate and we haven't handled it yet - if (model.referenceCoordinate && (model.coordinateSystem === Coordinate.DISPLAY || model.coordinateSystem === Coordinate.NORMALIZED_DISPLAY)) { - const refValue = model.referenceCoordinate.getComputedDoubleDisplayValue(renderer); - val[0] += refValue[0]; - val[1] += refValue[1]; - } - model.computedDoubleDisplayValue[0] = val[0]; - model.computedDoubleDisplayValue[1] = val[1]; - model.computing = 0; - return model.computedDoubleDisplayValue; - }; - publicAPI.getComputedValue = ren => { - let renderer = ren; - if (model.renderer) { - renderer = model.renderer; - } - switch (model.coordinateSystem) { - case Coordinate.WORLD: - return publicAPI.getComputedWorldValue(renderer); - case Coordinate.VIEW: - case Coordinate.NORMALIZED_VIEWPORT: - case Coordinate.VIEWPORT: - { - const val = publicAPI.getComputedViewportValue(renderer); - model.computedWorldValue[0] = val[0]; - model.computedWorldValue[1] = val[1]; - break; - } - case Coordinate.NORMALIZED_DISPLAY: - case Coordinate.DISPLAY: - { - const val = model.getComputedDisplayValue(renderer); - model.computedWorldValue[0] = val[0]; - model.computedWorldValue[1] = val[1]; - break; - } - } - return model.computedWorldValue; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - coordinateSystem: Coordinate.WORLD, - value: [0.0, 0.0, 0.0], - renderer: null, - referenceCoordinate: null, - computing: 0, - computedWorldValue: [0.0, 0.0, 0.0], - computedDoubleDisplayValue: [0.0, 0.0] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - - // Build VTK API - macro.set(publicAPI, model, ['property']); - macro.get(publicAPI, model, ['value']); - macro.setGet(publicAPI, model, ['coordinateSystem', 'referenceCoordinate', 'renderer']); - macro.getArray(publicAPI, model, ['value'], 3); - - // Object methods - vtkCoordinate(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCoordinate'); - -// ---------------------------------------------------------------------------- - -var vtkCoordinate$1 = { - newInstance, - extend, - ...Constants -}; - -export { vtkCoordinate$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Coordinate/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Coordinate/Constants.d.ts deleted file mode 100644 index 8f4b98d8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Coordinate/Constants.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export declare enum Coordinate { - DISPLAY = 0, - NORMALIZED_DISPLAY = 1, - VIEWPORT = 2, - NORMALIZED_VIEWPORT = 3, - PROJECTION = 4, - VIEW = 5, - WORLD = 6, -} - -declare const _default: { - Coordinate: typeof Coordinate; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Coordinate/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Coordinate/Constants.js deleted file mode 100644 index 9a9ec9e6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Coordinate/Constants.js +++ /dev/null @@ -1,14 +0,0 @@ -const Coordinate = { - DISPLAY: 0, - NORMALIZED_DISPLAY: 1, - VIEWPORT: 2, - NORMALIZED_VIEWPORT: 3, - PROJECTION: 4, - VIEW: 5, - WORLD: 6 -}; -var Constants = { - Coordinate -}; - -export { Coordinate, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/CubeAxesActor.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/CubeAxesActor.js deleted file mode 100644 index 08914f06..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/CubeAxesActor.js +++ /dev/null @@ -1,768 +0,0 @@ -import { vec3, mat4 } from 'gl-matrix'; -import * as d3 from 'd3-scale'; -import { S as normalize2D, T as nearestPowerOfTwo } from '../../Common/Core/Math/index.js'; -import { m as macro } from '../../macros2.js'; -import vtkActor from './Actor.js'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkMapper from './Mapper.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkTexture from './Texture.js'; - -// ---------------------------------------------------------------------------- -// vtkCubeAxesActor -// ---------------------------------------------------------------------------- -// faces are -x x -y y -z z -// point 0 is 0,0,0 and then +x fastest changing, +y then +z -const faceNormals = [[-1, 0, 0], [1, 0, 0], [0, -1, 0], [0, 1, 0], [0, 0, -1], [0, 0, 1]]; -const faceEdges = [[8, 7, 11, 3], [9, 1, 10, 5], [4, 9, 0, 8], [2, 11, 6, 10], [0, 3, 2, 1], [4, 5, 6, 7]]; -const edgePoints = [[0, 1], [1, 3], [2, 3], [0, 2], [4, 5], [5, 7], [6, 7], [4, 6], [0, 4], [1, 5], [3, 7], [2, 6]]; -const edgeAxes = [0, 1, 0, 1, 0, 1, 0, 1, 2, 2, 2, 2]; -const faceAxes = [[1, 2], [1, 2], [0, 2], [0, 2], [0, 1], [0, 1]]; - -// -// Developer note: This class is broken into the main class and a helper -// class. The main class holds view independent properties (those properties -// that do not change as the view's resolution/aspect ratio change). The -// helper class is instantiated one per view and holds properties that can -// depend on view specific values such as resolution. The helper class code -// could have been left to the View specific implementation (such as -// vtkWebGPUCubeAxesActor) but is instead placed here to it can be shared by -// multiple rendering backends. -// - -// some shared temp variables to reduce heap allocs -const ptv3 = new Float64Array(3); -const pt2v3 = new Float64Array(3); -const tmpv3 = new Float64Array(3); -const tmp2v3 = new Float64Array(3); -const xDir = new Float64Array(3); -const yDir = new Float64Array(3); -const invmat = new Float64Array(16); -function applyTextStyle(ctx, style) { - ctx.strokeStyle = style.strokeColor; - ctx.lineWidth = style.strokeSize; - ctx.fillStyle = style.fontColor; - ctx.font = `${style.fontStyle} ${style.fontSize}px ${style.fontFamily}`; -} -function defaultGenerateTicks(dataBounds) { - const ticks = []; - const tickStrings = []; - for (let i = 0; i < 3; i++) { - const scale = d3.scaleLinear().domain([dataBounds[i * 2], dataBounds[i * 2 + 1]]); - ticks[i] = scale.ticks(5); - const format = scale.tickFormat(5); - tickStrings[i] = ticks[i].map(format); - } - return { - ticks, - tickStrings - }; -} - -// many properties of this actor depend on the API specific view The main -// dependency being the resolution as that drives what font sizes to use. -// Bacause of this we need to do some of the calculations in a API specific -// subclass. But... we don't want a lot of duplicated code between WebGL and -// WebGPU for example so we have this helper class, that is designed to be -// fairly API independent so that API specific views can call this to do -// most of the work. -function vtkCubeAxesActorHelper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCubeAxesActorHelper'); - publicAPI.setRenderable = renderable => { - if (model.renderable === renderable) { - return; - } - model.renderable = renderable; - model.tmActor.addTexture(model.renderable.getTmTexture()); - model.tmActor.setProperty(renderable.getProperty()); - model.tmActor.setParentProp(renderable); - publicAPI.modified(); - }; - - // called by updateTexturePolyData - publicAPI.createPolyDataForOneLabel = (text, pos, cmat, imat, dir, offset, results) => { - const value = model.renderable.get_tmAtlas().get(text); - if (!value) { - return; - } - const coords = model.renderable.getTextPolyData().getPoints().getData(); - - // compute pixel to distance factors - const size = model.lastSize; - ptv3[0] = coords[pos * 3]; - ptv3[1] = coords[pos * 3 + 1]; - ptv3[2] = coords[pos * 3 + 2]; - vec3.transformMat4(tmpv3, ptv3, cmat); - // moving 0.1 in NDC - tmpv3[0] += 0.1; - vec3.transformMat4(pt2v3, tmpv3, imat); - // results in WC move of - vec3.subtract(xDir, pt2v3, ptv3); - tmpv3[0] -= 0.1; - tmpv3[1] += 0.1; - vec3.transformMat4(pt2v3, tmpv3, imat); - // results in WC move of - vec3.subtract(yDir, pt2v3, ptv3); - for (let i = 0; i < 3; i++) { - xDir[i] /= 0.5 * 0.1 * size[0]; - yDir[i] /= 0.5 * 0.1 * size[1]; - } - - // have to find the four corners of the texture polygon for this label - // convert anchor point to View Coords - let ptIdx = results.ptIdx; - let cellIdx = results.cellIdx; - ptv3[0] = coords[pos * 3]; - ptv3[1] = coords[pos * 3 + 1]; - ptv3[2] = coords[pos * 3 + 2]; - // horizontal left, right, or middle alignment based on dir[0] - if (dir[0] < -0.5) { - vec3.scale(tmpv3, xDir, dir[0] * offset - value.width); - } else if (dir[0] > 0.5) { - vec3.scale(tmpv3, xDir, dir[0] * offset); - } else { - vec3.scale(tmpv3, xDir, dir[0] * offset - value.width / 2.0); - } - vec3.add(ptv3, ptv3, tmpv3); - vec3.scale(tmpv3, yDir, dir[1] * offset - value.height / 2.0); - vec3.add(ptv3, ptv3, tmpv3); - results.points[ptIdx * 3] = ptv3[0]; - results.points[ptIdx * 3 + 1] = ptv3[1]; - results.points[ptIdx * 3 + 2] = ptv3[2]; - results.tcoords[ptIdx * 2] = value.tcoords[0]; - results.tcoords[ptIdx * 2 + 1] = value.tcoords[1]; - ptIdx++; - vec3.scale(tmpv3, xDir, value.width); - vec3.add(ptv3, ptv3, tmpv3); - results.points[ptIdx * 3] = ptv3[0]; - results.points[ptIdx * 3 + 1] = ptv3[1]; - results.points[ptIdx * 3 + 2] = ptv3[2]; - results.tcoords[ptIdx * 2] = value.tcoords[2]; - results.tcoords[ptIdx * 2 + 1] = value.tcoords[3]; - ptIdx++; - vec3.scale(tmpv3, yDir, value.height); - vec3.add(ptv3, ptv3, tmpv3); - results.points[ptIdx * 3] = ptv3[0]; - results.points[ptIdx * 3 + 1] = ptv3[1]; - results.points[ptIdx * 3 + 2] = ptv3[2]; - results.tcoords[ptIdx * 2] = value.tcoords[4]; - results.tcoords[ptIdx * 2 + 1] = value.tcoords[5]; - ptIdx++; - vec3.scale(tmpv3, xDir, value.width); - vec3.subtract(ptv3, ptv3, tmpv3); - results.points[ptIdx * 3] = ptv3[0]; - results.points[ptIdx * 3 + 1] = ptv3[1]; - results.points[ptIdx * 3 + 2] = ptv3[2]; - results.tcoords[ptIdx * 2] = value.tcoords[6]; - results.tcoords[ptIdx * 2 + 1] = value.tcoords[7]; - ptIdx++; - - // add the two triangles to represent the quad - results.polys[cellIdx * 4] = 3; - results.polys[cellIdx * 4 + 1] = ptIdx - 4; - results.polys[cellIdx * 4 + 2] = ptIdx - 3; - results.polys[cellIdx * 4 + 3] = ptIdx - 2; - cellIdx++; - results.polys[cellIdx * 4] = 3; - results.polys[cellIdx * 4 + 1] = ptIdx - 4; - results.polys[cellIdx * 4 + 2] = ptIdx - 2; - results.polys[cellIdx * 4 + 3] = ptIdx - 1; - results.ptIdx += 4; - results.cellIdx += 2; - }; - - // update the polydata associated with drawing the text labels - // specifically the quads used for each label and their associated tcoords - // etc. This changes every time the camera viewpoint changes - publicAPI.updateTexturePolyData = () => { - const cmat = model.camera.getCompositeProjectionMatrix(model.lastAspectRatio, -1, 1); - mat4.transpose(cmat, cmat); - - // update the polydata - const numLabels = model.renderable.getTextValues().length; - const numPts = numLabels * 4; - const numTris = numLabels * 2; - const points = new Float64Array(numPts * 3); - const polys = new Uint16Array(numTris * 4); - const tcoords = new Float32Array(numPts * 2); - mat4.invert(invmat, cmat); - const results = { - ptIdx: 0, - cellIdx: 0, - polys, - points, - tcoords - }; - let ptIdx = 0; - let textIdx = 0; - let axisIdx = 0; - const coords = model.renderable.getTextPolyData().getPoints().getData(); - const textValues = model.renderable.getTextValues(); - while (ptIdx < coords.length / 3) { - // compute the direction to move out - ptv3[0] = coords[ptIdx * 3]; - ptv3[1] = coords[ptIdx * 3 + 1]; - ptv3[2] = coords[ptIdx * 3 + 2]; - vec3.transformMat4(tmpv3, ptv3, cmat); - ptv3[0] = coords[ptIdx * 3 + 3]; - ptv3[1] = coords[ptIdx * 3 + 4]; - ptv3[2] = coords[ptIdx * 3 + 5]; - vec3.transformMat4(tmp2v3, ptv3, cmat); - vec3.subtract(tmpv3, tmpv3, tmp2v3); - const dir = [tmpv3[0], tmpv3[1]]; - normalize2D(dir); - - // write the axis label - publicAPI.createPolyDataForOneLabel(textValues[textIdx], ptIdx, cmat, invmat, dir, model.renderable.getAxisTitlePixelOffset(), results); - ptIdx += 2; - textIdx++; - - // write the tick labels - for (let t = 0; t < model.renderable.getTickCounts()[axisIdx]; t++) { - publicAPI.createPolyDataForOneLabel(textValues[textIdx], ptIdx, cmat, invmat, dir, model.renderable.getTickLabelPixelOffset(), results); - ptIdx++; - textIdx++; - } - axisIdx++; - } - const tcoordDA = vtkDataArray.newInstance({ - numberOfComponents: 2, - values: tcoords, - name: 'TextureCoordinates' - }); - model.tmPolyData.getPointData().setTCoords(tcoordDA); - model.tmPolyData.getPoints().setData(points, 3); - model.tmPolyData.getPoints().modified(); - model.tmPolyData.getPolys().setData(polys, 1); - model.tmPolyData.getPolys().modified(); - model.tmPolyData.modified(); - }; - publicAPI.updateAPISpecificData = (size, camera, renderWindow) => { - // has the size changed? - if (model.lastSize[0] !== size[0] || model.lastSize[1] !== size[1]) { - model.lastSize[0] = size[0]; - model.lastSize[1] = size[1]; - model.lastAspectRatio = size[0] / size[1]; - model.forceUpdate = true; - } - model.camera = camera; - - // compute bounds for label quads whenever the camera changes - publicAPI.updateTexturePolyData(); - }; -} -const newCubeAxesActorHelper = macro.newInstance(function (publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : { - renderable: null - }; - Object.assign(model, {}, initialValues); - - // Inheritance - macro.obj(publicAPI, model); - model.tmPolyData = vtkPolyData.newInstance(); - model.tmMapper = vtkMapper.newInstance(); - model.tmMapper.setInputData(model.tmPolyData); - model.tmActor = vtkActor.newInstance({ - parentProp: publicAPI - }); - model.tmActor.setMapper(model.tmMapper); - macro.setGet(publicAPI, model, ['renderable']); - macro.get(publicAPI, model, ['lastSize', 'lastAspectRatio', 'axisTextStyle', 'tickTextStyle', 'tmActor', 'ticks']); - model.forceUpdate = false; - model.lastRedrawTime = {}; - macro.obj(model.lastRedrawTime, { - mtime: 0 - }); - model.lastRebuildTime = {}; - macro.obj(model.lastRebuildTime, { - mtime: 0 - }); - model.lastSize = [-1, -1]; - - // internal variables - model.lastTickBounds = []; - vtkCubeAxesActorHelper(publicAPI, model); -}, 'vtkCubeAxesActorHelper'); -function vtkCubeAxesActor(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCubeAxesActor'); - publicAPI.setCamera = cam => { - if (model.camera === cam) { - return; - } - if (model.cameraModifiedSub) { - model.cameraModifiedSub.unsubscribe(); - model.cameraModifiedSub = null; - } - model.camera = cam; - if (cam) { - model.cameraModifiedSub = cam.onModified(publicAPI.update); - } - publicAPI.update(); - publicAPI.modified(); - }; - - // estimate from a camera model what faces to draw - // return true if the list of faces to draw has changed - publicAPI.computeFacesToDraw = () => { - const cmat = model.camera.getViewMatrix(); - mat4.transpose(cmat, cmat); - let changed = false; - const length = vtkBoundingBox.getDiagonalLength(model.dataBounds); - const faceDot = Math.sin(model.faceVisibilityAngle * Math.PI / 180.0); - for (let f = 0; f < 6; f++) { - let drawit = false; - const faceAxis = Math.floor(f / 2); - const otherAxis1 = (faceAxis + 1) % 3; - const otherAxis2 = (faceAxis + 2) % 3; - // only for non degenerate axes - if (model.dataBounds[otherAxis1 * 2] !== model.dataBounds[otherAxis1 * 2 + 1] && model.dataBounds[otherAxis2 * 2] !== model.dataBounds[otherAxis2 * 2 + 1]) { - // for each face transform the center and off center to get a direction vector - ptv3[faceAxis] = model.dataBounds[f] - 0.1 * length * faceNormals[f][faceAxis]; - ptv3[otherAxis1] = 0.5 * (model.dataBounds[otherAxis1 * 2] + model.dataBounds[otherAxis1 * 2 + 1]); - ptv3[otherAxis2] = 0.5 * (model.dataBounds[otherAxis2 * 2] + model.dataBounds[otherAxis2 * 2 + 1]); - vec3.transformMat4(tmpv3, ptv3, cmat); - ptv3[faceAxis] = model.dataBounds[f]; - vec3.transformMat4(tmp2v3, ptv3, cmat); - vec3.subtract(tmpv3, tmp2v3, tmpv3); - vec3.normalize(tmpv3, tmpv3); - // tmpv3 now holds the face normal vector - drawit = tmpv3[2] > faceDot; - // for perspctive we need the view direction to the plane - if (!model.camera.getParallelProjection()) { - vec3.normalize(tmp2v3, tmp2v3); - drawit = vec3.dot(tmp2v3, tmpv3) > faceDot; - } - } - if (drawit !== model.lastFacesToDraw[f]) { - model.lastFacesToDraw[f] = drawit; - changed = true; - } - } - return changed; - }; - - // update the polydata that represents the boundingd edges and gridlines - publicAPI.updatePolyData = (facesToDraw, edgesToDraw, ticks) => { - // compute the number of points and lines required - let numPts = 0; - let numLines = 0; - numPts += 8; // always start with the 8 cube points - - // count edgesToDraw - let numEdgesToDraw = 0; - for (let e = 0; e < 12; e++) { - if (edgesToDraw[e] > 0) { - numEdgesToDraw++; - } - } - numLines += numEdgesToDraw; - - // add values for gridlines - if (model.gridLines) { - for (let f = 0; f < 6; f++) { - if (facesToDraw[f]) { - numPts += ticks[faceAxes[f][0]].length * 2 + ticks[faceAxes[f][1]].length * 2; - numLines += ticks[faceAxes[f][0]].length + ticks[faceAxes[f][1]].length; - } - } - } - - // now allocate the memory - const points = new Float64Array(numPts * 3); - const lines = new Uint32Array(numLines * 3); - let ptIdx = 0; - let lineIdx = 0; - - // add the 8 corner points - for (let z = 0; z < 2; z++) { - for (let y = 0; y < 2; y++) { - for (let x = 0; x < 2; x++) { - points[ptIdx * 3] = model.dataBounds[x]; - points[ptIdx * 3 + 1] = model.dataBounds[2 + y]; - points[ptIdx * 3 + 2] = model.dataBounds[4 + z]; - ptIdx++; - } - } - } - - // draw the edges - for (let e = 0; e < 12; e++) { - if (edgesToDraw[e] > 0) { - lines[lineIdx * 3] = 2; - lines[lineIdx * 3 + 1] = edgePoints[e][0]; - lines[lineIdx * 3 + 2] = edgePoints[e][1]; - lineIdx++; - } - } - - // now handle gridlines - // grid lines are tick[axis1] + ticks[axes2] lines each having two points - // for simplicity we don;t worry about duplicating points, this is tiny - - if (model.gridLines) { - // for each visible face - // add the points - for (let f = 0; f < 6; f++) { - if (facesToDraw[f]) { - const faceIdx = Math.floor(f / 2); - let aticks = ticks[faceAxes[f][0]]; - for (let t = 0; t < aticks.length; t++) { - points[ptIdx * 3 + faceIdx] = model.dataBounds[f]; - points[ptIdx * 3 + faceAxes[f][0]] = aticks[t]; - points[ptIdx * 3 + faceAxes[f][1]] = model.dataBounds[faceAxes[f][1] * 2]; - ptIdx++; - points[ptIdx * 3 + faceIdx] = model.dataBounds[f]; - points[ptIdx * 3 + faceAxes[f][0]] = aticks[t]; - points[ptIdx * 3 + faceAxes[f][1]] = model.dataBounds[faceAxes[f][1] * 2 + 1]; - ptIdx++; - lines[lineIdx * 3] = 2; - lines[lineIdx * 3 + 1] = ptIdx - 2; - lines[lineIdx * 3 + 2] = ptIdx - 1; - lineIdx++; - } - aticks = ticks[faceAxes[f][1]]; - for (let t = 0; t < aticks.length; t++) { - points[ptIdx * 3 + faceIdx] = model.dataBounds[f]; - points[ptIdx * 3 + faceAxes[f][1]] = aticks[t]; - points[ptIdx * 3 + faceAxes[f][0]] = model.dataBounds[faceAxes[f][0] * 2]; - ptIdx++; - points[ptIdx * 3 + faceIdx] = model.dataBounds[f]; - points[ptIdx * 3 + faceAxes[f][1]] = aticks[t]; - points[ptIdx * 3 + faceAxes[f][0]] = model.dataBounds[faceAxes[f][0] * 2 + 1]; - ptIdx++; - lines[lineIdx * 3] = 2; - lines[lineIdx * 3 + 1] = ptIdx - 2; - lines[lineIdx * 3 + 2] = ptIdx - 1; - lineIdx++; - } - } - } - } - model.polyData.getPoints().setData(points, 3); - model.polyData.getPoints().modified(); - model.polyData.getLines().setData(lines, 1); - model.polyData.getLines().modified(); - model.polyData.modified(); - }; - - // update the data that represents where to put the labels - // in world coordinates. This only changes when faces to draw changes - // of dataBounds changes - publicAPI.updateTextData = (facesToDraw, edgesToDraw, ticks, tickStrings) => { - // count outside edgesToDraw - let textPointCount = 0; - for (let e = 0; e < 12; e++) { - if (edgesToDraw[e] === 1) { - textPointCount += 2; - textPointCount += ticks[edgeAxes[e]].length; - } - } - const points = model.polyData.getPoints().getData(); - const textPoints = new Float64Array(textPointCount * 3); - let ptIdx = 0; - let textIdx = 0; - let axisCount = 0; - for (let f = 0; f < 6; f++) { - if (facesToDraw[f]) { - for (let e = 0; e < 4; e++) { - const edgeIdx = faceEdges[f][e]; - if (edgesToDraw[edgeIdx] === 1) { - const edgeAxis = edgeAxes[edgeIdx]; - // add a middle point on the edge - const ptIdx1 = edgePoints[edgeIdx][0] * 3; - const ptIdx2 = edgePoints[edgeIdx][1] * 3; - textPoints[ptIdx * 3] = 0.5 * (points[ptIdx1] + points[ptIdx2]); - textPoints[ptIdx * 3 + 1] = 0.5 * (points[ptIdx1 + 1] + points[ptIdx2 + 1]); - textPoints[ptIdx * 3 + 2] = 0.5 * (points[ptIdx1 + 2] + points[ptIdx2 + 2]); - ptIdx++; - // add a middle face point, we use this to - // move the labels away from the edge in the right direction - const faceIdx = Math.floor(f / 2); - textPoints[ptIdx * 3 + faceIdx] = model.dataBounds[f]; - textPoints[ptIdx * 3 + faceAxes[f][0]] = 0.5 * (model.dataBounds[faceAxes[f][0] * 2] + model.dataBounds[faceAxes[f][0] * 2 + 1]); - textPoints[ptIdx * 3 + faceAxes[f][1]] = 0.5 * (model.dataBounds[faceAxes[f][1] * 2] + model.dataBounds[faceAxes[f][1] * 2 + 1]); - ptIdx++; - // set the text - model.textValues[textIdx] = model.axisLabels[edgeAxis]; - textIdx++; - - // now add the tick marks along the edgeAxis - const otherAxis1 = (edgeAxis + 1) % 3; - const otherAxis2 = (edgeAxis + 2) % 3; - const aticks = ticks[edgeAxis]; - const atickStrings = tickStrings[edgeAxis]; - model.tickCounts[axisCount] = aticks.length; - for (let t = 0; t < aticks.length; t++) { - textPoints[ptIdx * 3 + edgeAxis] = aticks[t]; - textPoints[ptIdx * 3 + otherAxis1] = points[ptIdx1 + otherAxis1]; - textPoints[ptIdx * 3 + otherAxis2] = points[ptIdx1 + otherAxis2]; - ptIdx++; - // set the text - model.textValues[textIdx] = atickStrings[t]; - textIdx++; - } - axisCount++; - } - } - } - } - model.textPolyData.getPoints().setData(textPoints, 3); - model.textPolyData.modified(); - }; - - // main method to rebuild the cube axes, gets called on camera modify - // and changes to key members - publicAPI.update = () => { - // Can't do anything if we don't have a camera... - if (!model.camera) { - return; - } - - // compute what faces to draw - const facesChanged = publicAPI.computeFacesToDraw(); - const facesToDraw = model.lastFacesToDraw; - - // have the bounds changed? - let boundsChanged = false; - for (let i = 0; i < 6; i++) { - if (model.dataBounds[i] !== model.lastTickBounds[i]) { - boundsChanged = true; - model.lastTickBounds[i] = model.dataBounds[i]; - } - } - - // did something significant change? If so rebuild a lot of things - if (facesChanged || boundsChanged || model.forceUpdate) { - // compute the edges to draw - // for each drawn face, mark edges, all single mark edges we draw - const edgesToDraw = new Array(12).fill(0); - for (let f = 0; f < 6; f++) { - if (facesToDraw[f]) { - for (let e = 0; e < 4; e++) { - edgesToDraw[faceEdges[f][e]]++; - } - } - } - - // compute tick marks for axes - const t = model.generateTicks(model.dataBounds); - - // update gridlines / edge lines - publicAPI.updatePolyData(facesToDraw, edgesToDraw, t.ticks); - - // compute label world coords and text - publicAPI.updateTextData(facesToDraw, edgesToDraw, t.ticks, t.tickStrings); - - // rebuild the texture only when force or changed bounds, face - // visibility changes do to change the atlas - if (boundsChanged || model.forceUpdate) { - publicAPI.updateTextureAtlas(t.tickStrings); - } - } - model.forceUpdate = false; - }; - - // create the texture map atlas that contains the rendering of - // all the text strings. Only needs to be called when the text strings - // have changed (labels and ticks) - publicAPI.updateTextureAtlas = tickStrings => { - // compute the width and height we need - - // set the text properties - model.tmContext.textBaseline = 'bottom'; - model.tmContext.textAlign = 'left'; - - // first the three labels - model._tmAtlas.clear(); - let maxWidth = 0; - let totalHeight = 1; // start one pixel in so we have a border - for (let i = 0; i < 3; i++) { - if (!model._tmAtlas.has(model.axisLabels[i])) { - applyTextStyle(model.tmContext, model.axisTextStyle); - const metrics = model.tmContext.measureText(model.axisLabels[i]); - const entry = { - height: metrics.actualBoundingBoxAscent + 2, - startingHeight: totalHeight, - width: metrics.width + 2, - textStyle: model.axisTextStyle - }; - model._tmAtlas.set(model.axisLabels[i], entry); - totalHeight += entry.height; - if (maxWidth < entry.width) { - maxWidth = entry.width; - } - } - // and the ticks - applyTextStyle(model.tmContext, model.tickTextStyle); - for (let t = 0; t < tickStrings[i].length; t++) { - if (!model._tmAtlas.has(tickStrings[i][t])) { - const metrics = model.tmContext.measureText(tickStrings[i][t]); - const entry = { - height: metrics.actualBoundingBoxAscent + 2, - startingHeight: totalHeight, - width: metrics.width + 2, - textStyle: model.tickTextStyle - }; - model._tmAtlas.set(tickStrings[i][t], entry); - totalHeight += entry.height; - if (maxWidth < entry.width) { - maxWidth = entry.width; - } - } - } - } - - // always use power of two to avoid interpolation - // in cases where PO2 is required - maxWidth = nearestPowerOfTwo(maxWidth); - totalHeight = nearestPowerOfTwo(totalHeight); - - // set the tcoord values - model._tmAtlas.forEach(value => { - value.tcoords = [0.0, (totalHeight - value.startingHeight - value.height) / totalHeight, value.width / maxWidth, (totalHeight - value.startingHeight - value.height) / totalHeight, value.width / maxWidth, (totalHeight - value.startingHeight) / totalHeight, 0.0, (totalHeight - value.startingHeight) / totalHeight]; - }); - - // make sure we have power of two dimensions - model.tmCanvas.width = maxWidth; - model.tmCanvas.height = totalHeight; - model.tmContext.textBaseline = 'bottom'; - model.tmContext.textAlign = 'left'; - model.tmContext.clearRect(0, 0, maxWidth, totalHeight); - - // draw the text onto the texture - model._tmAtlas.forEach((value, key) => { - applyTextStyle(model.tmContext, value.textStyle); - model.tmContext.fillText(key, 1, value.startingHeight + value.height - 1); - }); - model.tmTexture.setCanvas(model.tmCanvas); - model.tmTexture.modified(); - }; - - // Make sure the data is correct - publicAPI.onModified(() => { - model.forceUpdate = true; - publicAPI.update(); - }); - publicAPI.setTickTextStyle = tickStyle => { - model.tickTextStyle = { - ...model.tickTextStyle, - ...tickStyle - }; - publicAPI.modified(); - }; - publicAPI.setAxisTextStyle = axisStyle => { - model.axisTextStyle = { - ...model.axisTextStyle, - ...axisStyle - }; - publicAPI.modified(); - }; - publicAPI.get_tmAtlas = () => model._tmAtlas; - - // try to get the bounds for the annotation. This is complicated - // as it relies on the pixel size of the window. Every time the camera - // changes the bounds change. This method simplifies by just expanding - // the grid bounds by a user specified factor. - publicAPI.getBounds = () => { - publicAPI.update(); - vtkBoundingBox.setBounds(model.bounds, model.gridActor.getBounds()); - vtkBoundingBox.scaleAboutCenter(model.bounds, model.boundsScaleFactor, model.boundsScaleFactor, model.boundsScaleFactor); - return model.bounds; - }; - - // Make sure the grid share the actor property - const _setProp = macro.chain(publicAPI.setProperty, model.gridActor.setProperty); - publicAPI.setProperty = p => _setProp(p)[0]; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function defaultValues(publicAPI, model, initialValues) { - return { - boundsScaleFactor: 1.3, - camera: null, - dataBounds: [...vtkBoundingBox.INIT_BOUNDS], - faceVisibilityAngle: 8, - gridLines: true, - axisLabels: null, - axisTitlePixelOffset: 35.0, - tickLabelPixelOffset: 12.0, - generateTicks: defaultGenerateTicks, - ...initialValues, - axisTextStyle: { - fontColor: 'white', - fontStyle: 'normal', - fontSize: 18, - fontFamily: 'serif', - ...initialValues?.axisTextStyle - }, - tickTextStyle: { - fontColor: 'white', - fontStyle: 'normal', - fontSize: 14, - fontFamily: 'serif', - ...initialValues?.tickTextStyle - } - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - // Inheritance - vtkActor.extend(publicAPI, model, defaultValues(publicAPI, model, initialValues)); - - // internal variables - model.lastFacesToDraw = [false, false, false, false, false, false]; - model.axisLabels = ['X-Axis', 'Y-Axis', 'Z-Axis']; - model.tickCounts = []; - model.textValues = []; - model.lastTickBounds = []; - model.tmCanvas = document.createElement('canvas'); - model.tmContext = model.tmCanvas.getContext('2d'); - model._tmAtlas = new Map(); - - // for texture atlas - model.tmTexture = vtkTexture.newInstance({ - resizable: true - }); - model.tmTexture.setInterpolate(false); - publicAPI.getProperty().setDiffuse(0.0); - publicAPI.getProperty().setAmbient(1.0); - model.gridMapper = vtkMapper.newInstance(); - model.polyData = vtkPolyData.newInstance(); - model.gridMapper.setInputData(model.polyData); - model.gridActor = vtkActor.newInstance(); - model.gridActor.setMapper(model.gridMapper); - model.gridActor.setProperty(publicAPI.getProperty()); - model.gridActor.setParentProp(publicAPI); - model.textPolyData = vtkPolyData.newInstance(); - macro.setGet(publicAPI, model, ['axisTitlePixelOffset', 'boundsScaleFactor', 'faceVisibilityAngle', 'gridLines', 'tickLabelPixelOffset', 'generateTicks']); - macro.setGetArray(publicAPI, model, ['dataBounds'], 6); - macro.setGetArray(publicAPI, model, ['axisLabels'], 3); - macro.get(publicAPI, model, ['axisTextStyle', 'tickTextStyle', 'camera', 'tmTexture', 'textValues', 'textPolyData', 'tickCounts', 'gridActor']); - - // Object methods - vtkCubeAxesActor(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCubeAxesActor'); - -// ---------------------------------------------------------------------------- - -var vtkCubeAxesActor$1 = { - newInstance, - extend, - newCubeAxesActorHelper, - defaultGenerateTicks -}; - -export { vtkCubeAxesActor$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Follower.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Follower.d.ts deleted file mode 100644 index 793ebab9..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Follower.d.ts +++ /dev/null @@ -1,102 +0,0 @@ -import vtkActor, { IActorInitialValues } from './Actor'; -import vtkCamera from './Camera'; - -/** - * - */ -export interface IFollowerInitialValues extends IActorInitialValues { - viewUp?: number[]; - useViewUp?: boolean; - camera?: vtkCamera; -} - -/** - * - */ -export interface vtkFollower extends vtkActor { - /** - * Generate the matrix based on ivars. - */ - computeMatrix(): void; - - /** - * Get the camera to follow. - */ - getCamera(): vtkCamera; - - /** - * Check whether the view up vector is used. - */ - getUseViewUp(): boolean; - - /** - * Get the view up vector. - */ - getViewUp(): number[]; - - /** - * Get a reference to the view up vector. - */ - getViewUpByReference(): number[]; - - /** - * Set the camera to follow. - * If this is not set, then the follower won't know what to follow. - * @param {vtkCamera} camera - */ - setCamera(camera: vtkCamera): boolean; - - /** - * Set whether to use the view up vector. - * @param {Boolean} useViewUp - */ - setUseViewUp(useViewUp: boolean): boolean; - - /** - * Set the viewUp vector. - * @param {Number[]} viewUp The view up vector. - */ - setViewUp(viewUp: number[]): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkFollower characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IFollowerInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IFollowerInitialValues -): void; - -/** - * Method use to create a new instance of vtkFollower - * @param {IFollowerInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IFollowerInitialValues -): vtkFollower; - -/** - * vtkFollower is a subclass of Actor that always faces the camera. - * - * You must set the camera before use. This class will update the matrix such - * that the follower always faces the camera. Sepcifically the y axis will up - * up, the Z axes will point to the camera and the x axis will point to the - * right. You may need to rotate, scale, position the follower to get your data - * oriented propoerly for this convention. - * - * If useViewUp is set then instea dof using the camera's view up the follow's - * viewUp will be used. This is usefull in cases where you want up to be locked - * independent of the camera. This is typically the case for VR or AR - * annotations where the headset may tilt but text should continue to be - * relative to a constant view up vector. - */ -export declare const vtkFollower: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkFollower; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Follower.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Follower.js deleted file mode 100644 index ceb25e90..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Follower.js +++ /dev/null @@ -1,121 +0,0 @@ -import { mat4, vec3 } from 'gl-matrix'; -import { m as macro } from '../../macros2.js'; -import vtkActor from './Actor.js'; - -// ---------------------------------------------------------------------------- -// vtkFollower methods -// ---------------------------------------------------------------------------- - -function vtkFollower(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkFollower'); - - // Capture 'parentClass' api for internal use - const superClass = { - ...publicAPI - }; - publicAPI.getMTime = () => { - let mt = superClass.getMTime(); - if (model.camera !== null) { - const time = model.camera.getMTime(); - mt = time > mt ? time : mt; - } - return mt; - }; - publicAPI.computeMatrix = () => { - // check whether or not need to rebuild the matrix - if (publicAPI.getMTime() > model.matrixMTime.getMTime()) { - mat4.identity(model.matrix); - if (model.userMatrix) { - mat4.multiply(model.matrix, model.matrix, model.userMatrix); - } - mat4.translate(model.matrix, model.matrix, model.origin); - mat4.translate(model.matrix, model.matrix, model.position); - mat4.multiply(model.matrix, model.matrix, model.rotation); - mat4.scale(model.matrix, model.matrix, model.scale); - if (model.camera) { - // first compute our target viewUp - const vup = new Float64Array(model.viewUp); - if (!model.useViewUp) { - vec3.set(vup, ...model.camera.getViewUp()); - } - - // compute a vpn - const vpn = new Float64Array(3); - if (model.camera.getParallelProjection()) { - vec3.set(vpn, ...model.camera.getViewPlaneNormal()); - } else { - vec3.set(vpn, ...model.position); - vec3.subtract(vpn, model.camera.getPosition(), vpn); - vec3.normalize(vpn, vpn); - } - - // compute vright - const vright = new Float64Array(3); - vec3.cross(vright, vup, vpn); - vec3.normalize(vright, vright); - - // now recompute the vpn so that it is orthogonal to vup - vec3.cross(vpn, vright, vup); - vec3.normalize(vpn, vpn); - model.followerMatrix[0] = vright[0]; - model.followerMatrix[1] = vright[1]; - model.followerMatrix[2] = vright[2]; - model.followerMatrix[4] = vup[0]; - model.followerMatrix[5] = vup[1]; - model.followerMatrix[6] = vup[2]; - model.followerMatrix[8] = vpn[0]; - model.followerMatrix[9] = vpn[1]; - model.followerMatrix[10] = vpn[2]; - mat4.multiply(model.matrix, model.matrix, model.followerMatrix); - } - mat4.translate(model.matrix, model.matrix, [-model.origin[0], -model.origin[1], -model.origin[2]]); - mat4.transpose(model.matrix, model.matrix); - - // check for identity - model.isIdentity = false; - model.matrixMTime.modified(); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - viewUp: [0, 1, 0], - useViewUp: false, - camera: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkActor.extend(publicAPI, model, initialValues); - model.followerMatrix = mat4.identity(new Float64Array(16)); - - // Build VTK API - macro.setGet(publicAPI, model, ['useViewUp', 'camera']); - macro.setGetArray(publicAPI, model, ['viewUp'], 3); - - // Object methods - vtkFollower(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkFollower'); - -// ---------------------------------------------------------------------------- - -var vtkFollower$1 = { - newInstance, - extend -}; - -export { vtkFollower$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Glyph3DMapper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Glyph3DMapper.d.ts deleted file mode 100644 index 1dbb29b7..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Glyph3DMapper.d.ts +++ /dev/null @@ -1,196 +0,0 @@ -import { Bounds, Nullable, vtkPipelineConnection } from './../../types'; -import vtkMapper, { IMapperInitialValues } from './Mapper'; -import { OrientationModes, ScaleModes } from './Glyph3DMapper/Constants'; - -interface IPrimitiveCount { - points: number; - verts: number; - lines: number; - triangles: number; -} - -export interface IGlyph3DMapperInitialValues extends IMapperInitialValues { - orient?: boolean; - orientationMode?: OrientationModes; - orientationArray?: string; - scaling?: boolean; - scaleFactor?: number; - scaleMode?: ScaleModes; - scaleArray?: string; - matrixArray?: number[]; - normalArray?: number[]; - colorArray?: number[]; -} - -export interface vtkGlyph3DMapper extends vtkMapper { - /** - * Get the bounds for this mapper as [xmin, xmax, ymin, ymax,zmin, zmax]. - * @return {Bounds} The bounds for the mapper. - */ - getBounds(): Bounds; - - /** - * - */ - buildArrays(): void; - - /** - * - */ - getPrimitiveCount(): IPrimitiveCount; - - /** - * Get scale mode - * @default `SCALE_BY_MAGNITUDE` - */ - getScaleMode(): ScaleModes; - - /** - * Get scale factor to scale object by. - */ - getScaleFactor(): number; - - /** - * Get scale mode as string - */ - getScaleModeAsString(): string; - - /** - * Sets the name of the array to use as scale values. - * @param {String} arrayName Name of the array - */ - setScaleArray(arrayName: Nullable): boolean; - - /** - * Gets the name of the array used as scale values. - */ - getScaleArray(): string; - - /** - * Get scale mode as array - */ - getScaleArrayData(): number[]; - - /** - * An orientation array is a vtkDataArray with 3 components. The first - * component is the angle of rotation along the X axis. The second component - * is the angle of rotation along the Y axis. The third component is the - * angle of rotation along the Z axis. Orientation is specified in X,Y,Z - * order but the rotations are performed in Z,X an Y. - * - * This definition is compliant with SetOrientation method on vtkProp3D. - * - * By using vector or normal there is a degree of freedom or rotation left - * (underconstrained). With the orientation array, there is no degree of - * freedom left. - */ - getOrientationMode(): OrientationModes; - - /** - * Get orientation as string - */ - getOrientationModeAsString(): string; - - /** - * Get orientation as array - */ - getOrientationArrayData(): number[]; - - /** - * Sets the name of the array to use as orientation. - * @param {String} arrayName Name of the array - */ - setOrientationArray(arrayName: Nullable): boolean; - - /** - * Gets the name of the array used as orientation values. - */ - getOrientationArray(): string; - - /** - * Orientation mode indicates if the OrientationArray provides the direction - * vector for the orientation or the rotations around each axes. - * @param {OrientationModes} orientationMode The orientation mode. - */ - setOrientationMode(orientationMode: OrientationModes): boolean; - - /** - * Set orientation mode to `DIRECTION` - */ - setOrientationModeToDirection(): boolean; - - /** - * Set orientation mode to `ROTATION` - */ - setOrientationModeToRotation(): boolean; - - /** - * Set orientation mode to `MATRIX` - */ - setOrientationModeToMatrix(): boolean; - - /** - * Specify scale factor to scale object by. - * @param {Number} scaleFactor The value of the scale factor. - */ - setScaleFactor(scaleFactor: number): boolean; - - /** - * Either scale by individual components (`SCALE_BY_COMPONENTS`) or magnitude - * (`SCALE_BY_MAGNITUDE`) of the chosen array to `SCALE` with or disable scaling - * using data array all together (`SCALE_BY_MAGNITUDE`). - * @param {ScaleModes} scaleMode - * @default SCALE_BY_MAGNITUDE - */ - setScaleMode(scaleMode: ScaleModes): boolean; - - /** - * Set scale to `SCALE_BY_MAGNITUDE` - */ - setScaleModeToScaleByMagnitude(): boolean; - - /** - * Set scale to `SCALE_BY_CONSTANT` - */ - setScaleModeToScaleByComponents(): boolean; - - /** - * Set scale to `SCALE_BY_CONSTANT` - */ - setScaleModeToScaleByConstant(): boolean; - - /** - * Convenient method to set the source glyph connection - * @param {vtkPipelineConnection} outputPort The output port of the glyph source. - */ - setSourceConnection(outputPort: vtkPipelineConnection): void; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkGlyph3DMapper characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IGlyph3DMapperInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IGlyph3DMapperInitialValues -): void; - -/** - * Method use to create a new instance of vtkGlyph3DMapper - * @param {IGlyph3DMapperInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IGlyph3DMapperInitialValues -): vtkGlyph3DMapper; - -export declare const vtkGlyph3DMapper: { - newInstance: typeof newInstance; - extend: typeof extend; - OrientationModes: typeof OrientationModes; - ScaleModes: typeof ScaleModes; -}; -export default vtkGlyph3DMapper; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Glyph3DMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Glyph3DMapper.js deleted file mode 100644 index 49b73067..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Glyph3DMapper.js +++ /dev/null @@ -1,303 +0,0 @@ -import { mat4, vec3, mat3 } from 'gl-matrix'; -import Constants from './Glyph3DMapper/Constants.js'; -import { m as macro } from '../../macros2.js'; -import vtkMapper from './Mapper.js'; -import { I as createUninitializedBounds, n as norm } from '../../Common/Core/Math/index.js'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; - -const { - OrientationModes, - ScaleModes -} = Constants; -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// class methods -// ---------------------------------------------------------------------------- - -function vtkGlyph3DMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkGlyph3DMapper'); - - /** - * An orientation array is a vtkDataArray with 3 components. The first - * component is the angle of rotation along the X axis. The second - * component is the angle of rotation along the Y axis. The third - * component is the angle of rotation along the Z axis. Orientation is - * specified in X,Y,Z order but the rotations are performed in Z,X an Y. - * This definition is compliant with SetOrientation method on vtkProp3D. - * By using vector or normal there is a degree of freedom or rotation - * left (underconstrained). With the orientation array, there is no degree of - * freedom left. - */ - publicAPI.getOrientationModeAsString = () => macro.enumToString(OrientationModes, model.orientationMode); - publicAPI.setOrientationModeToDirection = () => publicAPI.setOrientationMode(OrientationModes.DIRECTION); - publicAPI.setOrientationModeToRotation = () => publicAPI.setOrientationMode(OrientationModes.ROTATION); - publicAPI.setOrientationModeToMatrix = () => publicAPI.setOrientationMode(OrientationModes.MATRIX); - publicAPI.getOrientationArrayData = () => { - const idata = publicAPI.getInputData(0); - if (!idata || !idata.getPointData()) { - return null; - } - if (!model.orientationArray) { - return idata.getPointData().getVectors(); - } - return idata.getPointData().getArray(model.orientationArray); - }; - publicAPI.getScaleModeAsString = () => macro.enumToString(ScaleModes, model.scaleMode); - publicAPI.setScaleModeToScaleByMagnitude = () => publicAPI.setScaleMode(ScaleModes.SCALE_BY_MAGNITUDE); - publicAPI.setScaleModeToScaleByComponents = () => publicAPI.setScaleMode(ScaleModes.SCALE_BY_COMPONENTS); - publicAPI.setScaleModeToScaleByConstant = () => publicAPI.setScaleMode(ScaleModes.SCALE_BY_CONSTANT); - publicAPI.getScaleArrayData = () => { - const idata = publicAPI.getInputData(0); - if (!idata || !idata.getPointData()) { - return null; - } - if (!model.scaleArray) { - return idata.getPointData().getScalars(); - } - return idata.getPointData().getArray(model.scaleArray); - }; - publicAPI.getBounds = () => { - const idata = publicAPI.getInputData(0); - const gdata = publicAPI.getInputData(1); - if (!idata || !gdata) { - return createUninitializedBounds(); - } - - // first we build the arrays used for the glyphing - publicAPI.buildArrays(); - return model.bounds; - }; - publicAPI.buildArrays = () => { - // if the mtgime requires it, rebuild - const idata = publicAPI.getInputData(0); - const gdata = publicAPI.getInputData(1); - if (model.buildTime.getMTime() < gdata.getMTime() || model.buildTime.getMTime() < idata.getMTime() || model.buildTime.getMTime() < publicAPI.getMTime()) { - const pts = idata.getPoints().getData(); - let sArray = publicAPI.getScaleArrayData(); - let sData = null; - let numSComp = 0; - if (sArray) { - sData = sArray.getData(); - numSComp = sArray.getNumberOfComponents(); - } - if (model.scaling && sArray && model.scaleMode === ScaleModes.SCALE_BY_COMPONENTS && sArray.getNumberOfComponents() !== 3) { - vtkErrorMacro('Cannot scale by components since scale array does not have 3 components.'); - sArray = null; - } - - // get the glyph bounds - const gbounds = gdata.getBounds(); - // convert them to 8 points so we can compute the - // overall bounds while building the arrays - const corners = []; - vtkBoundingBox.getCorners(gbounds, corners); - model.bounds[0] = vtkBoundingBox.INIT_BOUNDS[0]; - model.bounds[1] = vtkBoundingBox.INIT_BOUNDS[1]; - model.bounds[2] = vtkBoundingBox.INIT_BOUNDS[2]; - model.bounds[3] = vtkBoundingBox.INIT_BOUNDS[3]; - model.bounds[4] = vtkBoundingBox.INIT_BOUNDS[4]; - model.bounds[5] = vtkBoundingBox.INIT_BOUNDS[5]; - const tcorner = new Float64Array(3); - const oArray = publicAPI.getOrientationArrayData(); - const identity = mat4.identity(new Float64Array(16)); - const trans = []; - const scale = []; - const numPts = pts.length / 3; - model.matrixArray = new Float32Array(16 * numPts); - const mbuff = model.matrixArray.buffer; - model.normalArray = new Float32Array(9 * numPts); - const nbuff = model.normalArray.buffer; - const tuple = []; - const orientation = []; - for (let i = 0; i < numPts; ++i) { - const z = new Float32Array(mbuff, i * 64, 16); - trans[0] = pts[i * 3]; - trans[1] = pts[i * 3 + 1]; - trans[2] = pts[i * 3 + 2]; - mat4.translate(z, identity, trans); - if (oArray) { - oArray.getTuple(i, orientation); - switch (model.orientationMode) { - case OrientationModes.MATRIX: - { - // prettier-ignore - const rotMat4 = [...orientation.slice(0, 3), 0, ...orientation.slice(3, 6), 0, ...orientation.slice(6, 9), 0, 0, 0, 0, 1]; - mat4.multiply(z, z, rotMat4); - break; - } - case OrientationModes.ROTATION: - mat4.rotateZ(z, z, orientation[2]); - mat4.rotateX(z, z, orientation[0]); - mat4.rotateY(z, z, orientation[1]); - break; - case OrientationModes.DIRECTION: - if (orientation[1] === 0.0 && orientation[2] === 0.0) { - if (orientation[0] < 0) { - mat4.rotateY(z, z, 3.1415926); - } - } else { - const vMag = norm(orientation); - const vNew = []; - vNew[0] = (orientation[0] + vMag) / 2.0; - vNew[1] = orientation[1] / 2.0; - vNew[2] = orientation[2] / 2.0; - mat4.rotate(z, z, 3.1415926, vNew); - } - break; - } - } - - // scale data if appropriate - if (model.scaling) { - scale[0] = model.scaleFactor; - scale[1] = model.scaleFactor; - scale[2] = model.scaleFactor; - // Get the scalar and vector data - if (sArray) { - switch (model.scaleMode) { - case ScaleModes.SCALE_BY_MAGNITUDE: - for (let t = 0; t < numSComp; ++t) { - tuple[t] = sData[i * numSComp + t]; - } - scale[0] *= norm(tuple, numSComp); - scale[1] = scale[0]; - scale[2] = scale[0]; - break; - case ScaleModes.SCALE_BY_COMPONENTS: - for (let t = 0; t < numSComp; ++t) { - tuple[t] = sData[i * numSComp + t]; - } - scale[0] *= tuple[0]; - scale[1] *= tuple[1]; - scale[2] *= tuple[2]; - break; - case ScaleModes.SCALE_BY_CONSTANT: - } - } - if (scale[0] === 0.0) { - scale[0] = 1.0e-10; - } - if (scale[1] === 0.0) { - scale[1] = 1.0e-10; - } - if (scale[2] === 0.0) { - scale[2] = 1.0e-10; - } - mat4.scale(z, z, scale); - } - - // update bounds - for (let p = 0; p < 8; ++p) { - vec3.transformMat4(tcorner, corners[p], z); - if (tcorner[0] < model.bounds[0]) { - model.bounds[0] = tcorner[0]; - } - if (tcorner[1] < model.bounds[2]) { - model.bounds[2] = tcorner[1]; - } - if (tcorner[2] < model.bounds[4]) { - model.bounds[4] = tcorner[2]; - } - if (tcorner[0] > model.bounds[1]) { - model.bounds[1] = tcorner[0]; - } - if (tcorner[1] > model.bounds[3]) { - model.bounds[3] = tcorner[1]; - } - if (tcorner[2] > model.bounds[5]) { - model.bounds[5] = tcorner[2]; - } - } - const n = new Float32Array(nbuff, i * 36, 9); - mat3.fromMat4(n, z); - mat3.invert(n, n); - mat3.transpose(n, n); - } - - // map scalars as well - const scalars = publicAPI.getAbstractScalars(idata, model.scalarMode, model.arrayAccessMode, model.arrayId, model.colorByArrayName).scalars; - if (!model.useLookupTableScalarRange) { - publicAPI.getLookupTable().setRange(model.scalarRange[0], model.scalarRange[1]); - } - model.colorArray = null; - const lut = publicAPI.getLookupTable(); - if (lut && scalars) { - // Ensure that the lookup table is built - lut.build(); - model.colorArray = lut.mapScalars(scalars, model.colorMode, 0); - } - model.buildTime.modified(); - } - }; - publicAPI.getPrimitiveCount = () => { - const glyph = publicAPI.getInputData(1); - const mult = publicAPI.getInputData().getPoints().getNumberOfValues() / 3; - const pcount = { - points: mult * glyph.getPoints().getNumberOfValues() / 3, - verts: mult * (glyph.getVerts().getNumberOfValues() - glyph.getVerts().getNumberOfCells()), - lines: mult * (glyph.getLines().getNumberOfValues() - 2 * glyph.getLines().getNumberOfCells()), - triangles: mult * (glyph.getPolys().getNumberOfValues() - 3 * glyph.getLines().getNumberOfCells()) - }; - return pcount; - }; - publicAPI.setSourceConnection = outputPort => publicAPI.setInputConnection(outputPort, 1); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - orient: true, - orientationMode: OrientationModes.DIRECTION, - orientationArray: null, - scaling: true, - scaleFactor: 1.0, - scaleMode: ScaleModes.SCALE_BY_MAGNITUDE, - scaleArray: null, - matrixArray: null, - normalArray: null, - colorArray: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkMapper.extend(publicAPI, model, initialValues); - macro.algo(publicAPI, model, 2, 0); - model.buildTime = {}; - macro.obj(model.buildTime, { - mtime: 0 - }); - model.boundsTime = {}; - macro.obj(model.boundsTime, { - mtime: 0 - }); - macro.setGet(publicAPI, model, ['orient', 'orientationMode', 'orientationArray', 'scaleArray', 'scaleFactor', 'scaleMode', 'scaling']); - macro.get(publicAPI, model, ['colorArray', 'matrixArray', 'normalArray', 'buildTime']); - - // Object methods - vtkGlyph3DMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkGlyph3DMapper'); - -// ---------------------------------------------------------------------------- - -var vtkGlyph3DMapper$1 = { - newInstance, - extend, - ...Constants -}; - -export { vtkGlyph3DMapper$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Glyph3DMapper/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Glyph3DMapper/Constants.d.ts deleted file mode 100644 index 59369bb1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Glyph3DMapper/Constants.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -export declare enum OrientationModes { - DIRECTION = 0, - ROTATION = 1, - MATRIX = 2, -} - -export declare enum ScaleModes { - SCALE_BY_CONSTANT = 0, - SCALE_BY_MAGNITUDE = 1, - SCALE_BY_COMPONENTS = 2, -} - -declare const _default: { - OrientationModes: typeof OrientationModes; - ScaleModes: typeof ScaleModes; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Glyph3DMapper/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Glyph3DMapper/Constants.js deleted file mode 100644 index 99db457a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Glyph3DMapper/Constants.js +++ /dev/null @@ -1,16 +0,0 @@ -const OrientationModes = { - DIRECTION: 0, - ROTATION: 1, - MATRIX: 2 -}; -const ScaleModes = { - SCALE_BY_CONSTANT: 0, - SCALE_BY_MAGNITUDE: 1, - SCALE_BY_COMPONENTS: 2 -}; -var Constants = { - OrientationModes, - ScaleModes -}; - -export { OrientationModes, ScaleModes, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/HardwareSelector.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/HardwareSelector.d.ts deleted file mode 100644 index c56731a3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/HardwareSelector.d.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { FieldAssociations } from './../../Common/DataModel/DataSet/Constants'; -import vtkSelectionNode from './../../Common/DataModel/SelectionNode'; -import { vtkObject } from './../../interfaces'; -import vtkRenderer from './Renderer'; - -export interface vtkHardwareSelector extends vtkObject { - /** - * Get the picking source data. - * - * @param {vtkRenderer} renderer - * @param {number} fx1 top left x coord - * @param {number} fy1 top left y coord - * @param {number} fx2 bottom right x coord - * @param {number} fy2 bottom right y coord - */ - getSourceDataAsync( - renderer: vtkRenderer, - fx1: number, - fy1: number, - fx2: number, - fy2: number - ): Promise; - - /** - * Generates a selection. - * - * @param {vtkRenderer} renderer - * @param {number} fx1 top left x coord - * @param {number} fy1 top left y coord - * @param {number} fx2 bottom right x coord - * @param {number} fy2 bottom right y coord - */ - selectAsync( - renderer: vtkRenderer, - fx1: number, - fy1: number, - fx2: number, - fy2: number - ): Promise; - - /** - * Sets the field association. - * @param {FieldAssociations} assoc - */ - setFieldAssociation(assoc: FieldAssociations): boolean; - - /** - * Gets the field association. - */ - getFieldAssociation(): FieldAssociations; - - /** - * Sets whether to capture Z values. - * @param {boolean} capture - */ - setCaptureZValues(capture: boolean): boolean; - - /** - * Gets whether to capture Z values. - */ - getCaptureZValues(): boolean; -} - -export interface IHardwareSelectorInitialValues { - fieldAssociation?: FieldAssociations; - captureZValues?: boolean; -} - -export function newInstance( - initialValues?: IHardwareSelectorInitialValues -): vtkHardwareSelector; - -export function extend( - publicAPI: object, - model: object, - initialValues?: IHardwareSelectorInitialValues -): void; - -export const vtkHardwareSelector: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkHardwareSelector; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/HardwareSelector.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/HardwareSelector.js deleted file mode 100644 index b4749474..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/HardwareSelector.js +++ /dev/null @@ -1,63 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkDataSet from '../../Common/DataModel/DataSet.js'; - -const { - FieldAssociations -} = vtkDataSet; - -// ---------------------------------------------------------------------------- -// vtkHardwareSelector methods -// ---------------------------------------------------------------------------- - -function vtkHardwareSelector(publicAPI, model) { - model.classHierarchy.push('vtkHardwareSelector'); - - // get the source data that is used for generating a selection. This - // must be called at least once before calling generateSelection. In - // raster based backends this method will capture the buffers. You can - // call this once and then make multiple calls to generateSelection. - publicAPI.getSourceDataAsync = async (renderer, fx1, fy1, fx2, fy2) => {}; - publicAPI.selectAsync = async (renderer, fx1, fy1, fx2, fy2) => { - const srcData = await publicAPI.getSourceDataAsync(renderer, fx1, fy1, fx2, fy2); - if (srcData) { - return srcData.generateSelection(fx1, fy1, fx2, fy2); - } - return []; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - fieldAssociation: FieldAssociations.FIELD_ASSOCIATION_CELLS, - captureZValues: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['fieldAssociation', 'captureZValues']); - - // Object methods - vtkHardwareSelector(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkHardwareSelector'); - -// ---------------------------------------------------------------------------- - -var vtkHardwareSelector$1 = { - newInstance, - extend -}; - -export { vtkHardwareSelector$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageArrayMapper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageArrayMapper.d.ts deleted file mode 100644 index af7a2ea7..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageArrayMapper.d.ts +++ /dev/null @@ -1,161 +0,0 @@ -import { - vtkAbstractImageMapper, - IAbstractImageMapperInitialValues, -} from './AbstractImageMapper'; -import { IClosestIJKAxis } from './ImageMapper'; -import { Bounds, Nullable } from './../../types'; -import { SlicingMode } from './ImageMapper/Constants'; -import { vtkImageData } from './../../Common/DataModel/ImageData'; -import { vtkCollection } from './../../Common/DataModel/Collection'; -import { - CoincidentTopologyHelper, - StaticCoincidentTopologyMethods, -} from './Mapper/CoincidentTopologyHelper'; - -interface ISliceToSubSlice { - imageIndex: number; - subSlice: number; -} - -export interface IImageArrayMapperInitialValues - extends IAbstractImageMapperInitialValues { - slicingMode: SlicingMode.K; - sliceToSubSliceMap: ISliceToSubSlice[]; -} - -export interface vtkImageArrayMapper - extends vtkAbstractImageMapper, - CoincidentTopologyHelper { - /** - * - * @param inputData set input as a vtkCollection of vtkImageData objects. - */ - setInputData(inputData: vtkCollection): void; - - /** - * Get vtkImageData corresponding to the provided (global) slice number. - * @param slice (global) slice number. If a slice number is not provided, - * the function uses the current slice number (i.e. the output of getSlice()). - */ - getImage(slice?: number): Nullable; - - /** - * Return currently active image. This depends on the currently active slice number. - */ - getCurrentImage(): Nullable; - - /** - * Get the bounds for this mapper as [xmin, xmax, ymin, ymax,zmin, zmax]. - * @return {Bounds} The bounds for the mapper. - */ - getBounds(): Bounds; - - /** - * Get the bounds for a given slice as [xmin, xmax, ymin, ymax,zmin, zmax]. - * @param {Number} [slice] The slice index. If undefined, the current slice is considered. - * @param {Number} [halfThickness] Half the slice thickness in index space (unit voxel - * spacing). If undefined, 0 is considered. - * @return {Bounds} The bounds for a given slice. - */ - getBoundsForSlice(slice?: number, halfThickness?: number): Bounds; - - /** - * Get the closest IJK axis - * @return {IClosestIJKAxis} The axis object. - */ - getClosestIJKAxis(): IClosestIJKAxis; - - /** - * Calculate the total number of slices in the input collection. - */ - computeTotalSlices(): number; - - /** - * Fetch the pre-calculated total number of slices in the input collection. - */ - getTotalSlices(): number; - - /** - * - * @param {Number} slice The slice index. - */ - setSlice(slice: number): boolean; - - /** - * Calculate the global slice number that corresponds to the provided image and subSlice number. - * The global slice number corresponds to the total number of 2D image frames that a collection has. - * @param imageIndex The image number is the index of the vtkImageData object in the input collection. - * @param subSlice The subSlice number is the k-index of a slice within a vtkImageData object in the input collection. - */ - computeSlice(imageIndex: number, subSlice: number): number; - - /** - * Get the vtkImageData index corresponding to the provided global slice number. - * @param slice global slice number. If a slice number is not provided, - * the function uses the current slice number (i.e. the output of getSlice()). - */ - getImageIndex(slice?: number): number; - - /** - * Given a global slice number, identify the subSlice number (slice k-index within a vtkImageData). - * @param slice global slice number. If a slice number is not provided, - * the function uses the current slice number (i.e. the output of getSlice()). - */ - getSubSlice(slice?: number): number; - - /** - * Set the slicing mode. - * @param {Number} mode The slicing mode. - */ - setSlicingMode(mode: number): boolean; - - /** - * - * @param {Number[]} p1 The coordinates of the first point. - * @param {Number[]} p2 The coordinates of the second point. - */ - intersectWithLineForPointPicking(p1: number[], p2: number[]): any; - - /** - * - * @param {Number[]} p1 The coordinates of the first point. - * @param {Number[]} p2 The coordinates of the second point. - */ - intersectWithLineForCellPicking(p1: number[], p2: number[]): any; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkImageArrayMapper characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IImageArrayMapperInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IImageArrayMapperInitialValues -): void; - -/** - * Method use to create a new instance of vtkImageArrayMapper - * @param {IImageArrayMapperInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IImageArrayMapperInitialValues -): vtkImageArrayMapper; - -/** - * vtkImageArrayMapper provides display support for a collection of single/multi-frame images. - * Images can have variable dimensions (width, height, depth in pixels), can be mixture of - * color (RGB) and grayscale images, origin point and direction cosines. - * It can be associated with a vtkImageSlice prop and placed within a Renderer. - * - * This class resolves coincident topology with the same methods as vtkMapper. - */ -export declare const vtkImageArrayMapper: { - newInstance: typeof newInstance; - extend: typeof extend; - SlicingMode: typeof SlicingMode; -} & StaticCoincidentTopologyMethods; -export default vtkImageArrayMapper; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageArrayMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageArrayMapper.js deleted file mode 100644 index 87a2ecab..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageArrayMapper.js +++ /dev/null @@ -1,203 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkAbstractImageMapper from './AbstractImageMapper.js'; -import vtkImageMapper from './ImageMapper.js'; -import { I as createUninitializedBounds } from '../../Common/Core/Math/index.js'; -import { intersectWithLineForPointPicking, intersectWithLineForCellPicking } from './AbstractImageMapper/helper.js'; -import CoincidentTopologyHelper from './Mapper/CoincidentTopologyHelper.js'; - -const { - staticOffsetAPI, - otherStaticMethods -} = CoincidentTopologyHelper; -const { - vtkErrorMacro, - vtkWarningMacro -} = macro; -const { - SlicingMode -} = vtkImageMapper; - -// ---------------------------------------------------------------------------- -// vtkImageArrayMapper methods -// ---------------------------------------------------------------------------- - -function vtkImageArrayMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkImageArrayMapper'); - - //------------------ - // Private functions - - const _computeSliceToSubSliceMap = () => { - const inputCollection = publicAPI.getInputData(); - if (!inputCollection || inputCollection.empty()) { - // clear the map - if (model.sliceToSubSliceMap.length !== 0) { - model.sliceToSubSliceMap.length = 0; - publicAPI.modified(); - } - return; - } - if (model.sliceToSubSliceMap.length === 0 || inputCollection.getMTime() > publicAPI.getMTime()) { - const perImageMap = inputCollection.map((image, index) => { - const dim = image.getDimensions(); - const out = new Array(dim[model.slicingMode]); - for (let i = 0; i < out.length; ++i) { - out[i] = { - imageIndex: index, - subSlice: i - }; - } - return out; - }); - model.sliceToSubSliceMap = perImageMap.flat(); - publicAPI.modified(); - } - }; - const _superSetInputData = publicAPI.setInputData; - const _superSetInputConnection = publicAPI.setInputConnection; - - //------------------ - // Public functions - - publicAPI.setInputData = inputData => { - _superSetInputData(inputData); - _computeSliceToSubSliceMap(); - }; - publicAPI.setInputConnection = function (outputPort) { - let port = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - _superSetInputConnection(outputPort, port); - _computeSliceToSubSliceMap(); - }; - publicAPI.getImage = function () { - let slice = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : publicAPI.getSlice(); - const inputCollection = publicAPI.getInputData(); - if (!inputCollection) { - vtkWarningMacro('No input set.'); - } else if (slice < 0 || slice >= publicAPI.getTotalSlices()) { - vtkWarningMacro('Invalid slice number.'); - } else { - _computeSliceToSubSliceMap(); - return inputCollection.getItem(model.sliceToSubSliceMap[slice].imageIndex); - } - return null; - }; - publicAPI.getBounds = () => { - const image = publicAPI.getCurrentImage(); - if (!image) { - return createUninitializedBounds(); - } - if (!model.useCustomExtents) { - return image.getBounds(); - } - const ex = model.customDisplayExtent.slice(); - // use sub-slice of the current image, - // which is the k-coordinate. - const nSlice = publicAPI.getSubSlice(); - ex[4] = nSlice; - ex[5] = nSlice; - return image.extentToBounds(ex); - }; - publicAPI.getBoundsForSlice = function () { - let slice = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : publicAPI.getSlice(); - let halfThickness = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - const image = publicAPI.getImage(slice); - if (!image) { - return createUninitializedBounds(); - } - const extent = image.getSpatialExtent(); - const nSlice = publicAPI.getSubSlice(slice); - extent[4] = nSlice - halfThickness; - extent[5] = nSlice + halfThickness; - return image.extentToBounds(extent); - }; - publicAPI.getClosestIJKAxis = () => ({ - ijkMode: model.slicingMode, - flip: false - }); - publicAPI.computeTotalSlices = () => { - const inputCollection = publicAPI.getInputData(); - const collectionLength = inputCollection.getNumberOfItems(); - let slicesCount = 0; - for (let i = 0; i < collectionLength; ++i) { - const image = inputCollection.getItem(i); - if (image) { - slicesCount += image.getDimensions()[model.slicingMode]; - } - } - return slicesCount; - }; - publicAPI.getTotalSlices = () => { - _computeSliceToSubSliceMap(); - return model.sliceToSubSliceMap.length; - }; - - // set slice number in terms of imageIndex and subSlice number. - publicAPI.setSlice = slice => { - const inputCollection = publicAPI.getInputData(); - if (!inputCollection) { - // No input is set - vtkWarningMacro('No input set.'); - return; - } - const totalSlices = publicAPI.getTotalSlices(); - if (slice >= 0 && slice < totalSlices) { - model.slice = slice; - publicAPI.modified(); - } else { - vtkErrorMacro(`Slice number out of range. Acceptable range is: [0, ${totalSlices > 0 ? totalSlices - 1 : 0}]slice <= totalSlices`); - } - }; - publicAPI.computeSlice = (imageIndex, subSlice) => { - _computeSliceToSubSliceMap(); - return model.sliceToSubSliceMap.findIndex(x => x.imageIndex === imageIndex && x.subSlice === subSlice); - }; - publicAPI.getImageIndex = function () { - let slice = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : publicAPI.getSlice(); - _computeSliceToSubSliceMap(); - return model.sliceToSubSliceMap[slice]?.imageIndex; - }; - publicAPI.getSubSlice = function () { - let slice = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : publicAPI.getSlice(); - _computeSliceToSubSliceMap(); - return model.sliceToSubSliceMap[slice]?.subSlice; - }; - publicAPI.getCurrentImage = () => publicAPI.getImage(publicAPI.getSlice()); - publicAPI.intersectWithLineForPointPicking = (p1, p2) => intersectWithLineForPointPicking(p1, p2, publicAPI); - publicAPI.intersectWithLineForCellPicking = (p1, p2) => intersectWithLineForCellPicking(p1, p2, publicAPI); -} - -// ---------------------------------------------------------------------------- -const DEFAULT_VALUES = { - slicingMode: SlicingMode.K, - sliceToSubSliceMap: [] -}; -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - vtkAbstractImageMapper.extend(publicAPI, model, initialValues); - - // Build VTK API - macro.get(publicAPI, model, ['slicingMode']); - CoincidentTopologyHelper.implementCoincidentTopologyMethods(publicAPI, model); - - // Object methods - vtkImageArrayMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImageArrayMapper'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend, - ...staticOffsetAPI, - ...otherStaticMethods -}; - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageCPRMapper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageCPRMapper.d.ts deleted file mode 100644 index 75613d39..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageCPRMapper.d.ts +++ /dev/null @@ -1,371 +0,0 @@ -import { mat3, mat4, quat, vec3 } from 'gl-matrix'; -import { Nullable } from './../../types'; -import { vtkOutputPort } from './../../interfaces'; -import { - vtkAbstractMapper3D, - IAbstractMapper3DInitialValues, -} from './AbstractMapper3D'; -import { vtkDataArray } from './../../Common/Core/DataArray'; -import { vtkImageData } from './../../Common/DataModel/ImageData'; -import { vtkPolyData } from './../../Common/DataModel/PolyData'; -import { vtkPolyLine } from './../../Common/DataModel/PolyLine'; -import { ProjectionMode } from './ImageCPRMapper/Constants'; -import { - CoincidentTopologyHelper, - StaticCoincidentTopologyMethods, -} from './Mapper/CoincidentTopologyHelper'; - -type TOrientation = mat4 | mat3 | quat | vec3; - -export interface IImageCPRMapperInitialValues - extends IAbstractMapper3DInitialValues { - width: number; - uniformOrientation: TOrientation; // Don't use vec3 if possible - useUniformOrientation: boolean; - preferSizeOverAccuracy: boolean; // Whether to use halfFloat representation of float, when it is inaccurate - orientationArrayName: Nullable; - tangentDirection: vec3; - bitangentDirection: vec3; - normalDirection: vec3; -} - -export interface vtkImageCPRMapper - extends vtkAbstractMapper3D, - CoincidentTopologyHelper { - /** - * @returns the width of the image in model coordinates of the input volume - */ - getWidth(): number; - - /** - * @see getWidth - * @param width - */ - setWidth(width: number): boolean; - - /** - * Use @see getUseUniformOrientation to use the uniform orientation instead of the orientation specified by the centerline - * @returns the uniform orientation of the centerline - */ - getUniformOrientation(): TOrientation; - - /** - * @see getUniformOrientation - * @param orientation - */ - setUniformOrientation(orientation: TOrientation): boolean; - - /** - * This flag specifies wether the mapper should use the uniformOrientation ( @see getUniformOrientation ) or the orientation specified in centerline at centerline input ( @see setCenterlineData ) - * Defaults to false. - * @returns the useUniformOrientation flag - */ - getUseUniformOrientation(): boolean; - - /** - * @see getUseUniformOrientation - * @param useUniformOrientation - */ - setUseUniformOrientation(useUniformOrientation: boolean): boolean; - - /** - * A point used to offset each line of pixel in the rendering - * The line of pixel is offseted such as the center of the line is as close as possible to the center point - * This can be used in combination with @see getUseUniformOrientation and a custom distance function for @see getOrientedCenterline to visualize a CPR in projected mode or stretched mode - * Defaults to null. - * @returns the center point - */ - getCenterPoint(): Nullable; - - /** - * @see getCenterPoint - * @param point - */ - setCenterPoint(point: Nullable): boolean; - - /** - * This flag indicates wether the GPU should use half float or not - * When true, will use half float - * When false, may use half float if there is no loss of accuracy (see in Texture: checkUseHalfFloat) - * Defaults to false. - * @returns the preferSizeOverAccuracy flag - */ - getPreferSizeOverAccuracy(): boolean; - - /** - * @see getPreferSizeOverAccuracy - * @param preferSizeOverAccuracy - */ - setPreferSizeOverAccuracy(preferSizeOverAccuracy: boolean): boolean; - - /** - * OrientationArrayName specifies the name of the data array which gives an orientation for each point of the centerline - * The data array has to be in the PointData attribute of the centerline input - * If null, look for the orientation data array in: "Orientation", "Direction", Vectors, Tensors, Normals - * The data array should be an array of mat4, mat3, quat or vec3 but using vec3 makes the CPRInteractor unusable - * Default to null. - */ - getOrientationArrayName(): Nullable; - - /** - * @see getOrientationArrayName - * @param arrayName - */ - setOrientationArrayName(arrayName: Nullable): boolean; - - /** - * For each point on the oriented centerline, the tangent direction is the direction in which the mapper will sample - * Let O (a mat3) be the orientation at a point on a centerline, and N (a vec3) the tangent direction - * Then the mapper will sample along O * N - * Default value: [1, 0, 0] - */ - getTangentDirection(): vec3; - - /** - * @see getTangentDirection - * @param tangent - */ - setTangentDirection(tangent: vec3): boolean; - - /** - * For each point on the oriented centerline, the bitangent direction forms with the normal and the tangent direction a new basis - * Default value: [0, 1, 0] - */ - getBitangentDirection(): vec3; - - /** - * @see getBitangentDirection - * @param bitangent - */ - setBitangentDirection(bitangent: vec3): boolean; - - /** - * For each point on the oriented centerline, the normal direction is the direction along the centerline - * Default value: [0, 0, 1] - */ - getNormalDirection(): vec3; - - /** - * @see getNormalDirection - * @param normal - */ - setNormalDirection(normal: vec3): boolean; - - /** - * The direction matrix is the matrix composed of tangent, bitangent and normal directions - * It is used to orient the camera or the actor - */ - getDirectionMatrix(): mat3; - - /** - * @see getDirectionMatrix - * @param mat - */ - setDirectionMatrix(mat: mat3): boolean; - - /** - * Thickness of the projection slab in image coordinates (NOT in voxels) - * Usually in millimeters if the spacing of the input image is set from a DICOM - */ - getProjectionSlabThickness(): number; - - /** - * @see getProjectionSlabThickness - * @param projectionSlabThickness - */ - setProjectionSlabThickness(ProjectionSlabThickness: number): boolean; - - /** - * Total number of samples of the volume done by the projection mode - * If this number is equal or less than 1, projection is disabled - * Using an odd number is advised - * If this number is even, the center of the slab will not be sampled - */ - getProjectionSlabNumberOfSamples(): number; - - /** - * @see getProjectionSlabNumberOfSamples - * @param projectionSlabNumberOfSamples - */ - setProjectionSlabNumberOfSamples( - projectionSlabNumberOfSamples: number - ): boolean; - - /** - * Returns wether projection is enabled - * It is based on the number of samples - * @see getProjectionSlabNumberOfSamples - */ - isProjectionEnabled(): boolean; - - /** - * The different modes of projection - * Available modes include MIP, MinIP and AverageIP - */ - getProjectionMode(): ProjectionMode; - - /** - * @see getProjectionMode - * @param projectionMode - */ - setProjectionMode(projectionMode: ProjectionMode): boolean; - - /** - * Find the data array to use for orientation in the input polydata ( @see getOrientationArrayName ) - */ - getOrientationDataArray(): Nullable; - - /** - * Recompute the oriented centerline from the input polydata if needed and return the result - * If there is no polydata as input, return the last oriented centerline - * It means that if no polydata is given as input and the centerline is set using @see setOrientedCenterline , the given centerline will be used - */ - getOrientedCenterline(): vtkPolyLine; - - /** - * Set the internal oriented centerline - * WARNING: this centerline will be overwritten if the polydata centerline is specified (input 1 @see setCenterlineData ) - * @param centerline An oriented centerline - */ - setOrientedCenterline(centerline: vtkPolyLine): boolean; - - /** - * @returns The total height of the image in model coordinates. - */ - getHeight(): number; - - /** - * @param distance Distance from the beginning of the centerline, following the centerline, in model coordinates - * @returns The position and orientation which is at the given distance from the beginning of the centerline. - * If the distance is negative or greater than the length of the centerline, position and orientation are not defined. - * If the centerline is not oriented, orientation is not defined. - */ - getCenterlinePositionAndOrientation(distance: number): { - position?: vec3; - orientation?: quat; - }; - - /** - * @returns A flat array of vec3 representing the direction at each point of the centerline - * It is computed from the orientations of the centerline and tangentDirection - * Uses caching to avoid recomputing at each frame - */ - getCenterlineTangentDirections(): Float32Array; - - /** - * @returns The direction to sample, in model space, computed using uniform orientation and tangent direction - */ - getUniformDirection(): vec3; - - /** - * @returns A boolean indicating if the mapper is ready to render - */ - preRenderCheck(): boolean; - - /** - * Configure the mapper and the centerline to be in straightened CPR mode - */ - useStraightenedMode(): void; - - /** - * Configure the mapper and the centerline to be in strectched CPR mode - * @param centerPoint The center point, optional, default to the first point of the centerline or [0, 0, 0] - */ - useStretchedMode(centerPoint?: Nullable): void; - - /** - * Set the polydata used as a centerline - * You can also use `publicAPI.setInputData(centerlineData, 1);` - * Use all the segments of all the polylines (the centerline can be in multiple pieces) - * The polydata can contain a PointData DataArray to specify the direction in which the mapper should sample for each point of the centerline ( @see getDirectionArrayName @see getDirectionArrayOffset ) - * If no such point data is specified, a uniform direction can be used instead ( @see getUniformDirection @see getUseUniformOrientation ) - * The points of the centerline are in model coordinates of the volume used as input ( @see setImageDataData ) and not index coordinates (see MCTC matrix of the OpenGL ImageCPRMapper) - * Use `imageData.getWorldToIndex();` or `imageData.getIndexToWorld();` to go from model coordinates to index coordinates or the other way around - * @param centerlineData A polydata containing one or multiple polyline(s) and optionnally a PointData DataArray for direction - */ - setCenterlineData(centerlineData: vtkPolyData): void; - - /** - * Same as setCenterlineData except it uses an output port instead of a polydata - * You can also use `publicAPI.setInputConnection(centerlineConnection, 1);` - * @see setCenterlineData - * @param centerlineConnection - */ - setCenterlineConnection(centerlineConnection: vtkOutputPort): void; - - /** - * Set the volume which should be sampled by the mapper - * You can also use `publicAPI.setInputData(imageData, 0);` - * The model coordinates of this imageData are used by this mapper when specifying points, vectors or width (see MCTC matrix of the OpenGL ImageCPRMapper) - * You can use `imageData.getWorldToIndex();` or `imageData.getIndexToWorld();` to go from this model coordinates to index coordinates or the other way around - * @param imageData - */ - setImageData(imageData: vtkImageData): void; - - /** - * Set the connection for the volume - * You can also use `publicAPI.setInputConnection(imageData, 0);` - * @see setImageData - * @param imageData - */ - setImageConnection(imageData: vtkOutputPort): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkImageCPRMapper characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IImageCPRMapperInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IImageCPRMapperInitialValues -): void; - -/** - * Method used to create a new instance of vtkImageCPRMapper - * @param {IImageCPRMapperInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IImageCPRMapperInitialValues -): vtkImageCPRMapper; - -/** - * CPR in vtkImageCPRMapper stands for Curved Planar Reformation. This mapper - * can be used to visualize tubular structures such as blood vessels. It can be - * used in projected mode, stretched mode or straightened mode depending on the - * settings @see getUseUniformOrientation , @see getCenterPoint and the distance - * function of @see getOrientedCenterline . - * - * This specialised mapper takes as input a vtkImageData representing a volume - * ( @see setImageData ) and a vtkPolyData representing a centerline - * ( @see setCenterlineData ). The mapper also need to have an orientation per - * point or for all points. This can be specified using a uniform orientation - * ( @see getUniformOrientation @see getUseUniformOrientation ) or a point - * data array ( @see getOrientationArrayName ). Every point, vector or length - * specified to the mapper (centerline points, orientation, width...) use model - * coordinates of the volume used as input ( @see setImageData ). - * - * For each segment of the centerline the mapper creates a quad of the - * specified width ( @see getWidth ) and of height equal to the length of the - * segment. The position and the orientation of the centerline are - * interpolated along the y-axis of the quad. The position is linearly - * interpolated (lerp) and the orientation is interpolated using - * spherical linear interpolation (slerp). For a point (x, y) on the quad, - * the value of y gives the interpolated position P and interpolated - * orientation O which combined with tangentDirection gives D - * ( @see getTangentDirection ). The value of x between -0.5 and 0.5 then gives - * the position to sample in the volume: P + x*D. - * - * By computing the right centerline positions and orientations, one - * can simulate Stretched CPR and Straightened CPR. - * - * This class resolves coincident topology with the same methods as vtkMapper. - */ -export declare const vtkImageCPRMapper: { - newInstance: typeof newInstance; - extend: typeof extend; -} & StaticCoincidentTopologyMethods; -export default vtkImageCPRMapper; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageCPRMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageCPRMapper.js deleted file mode 100644 index 040400ef..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageCPRMapper.js +++ /dev/null @@ -1,326 +0,0 @@ -import { quat, vec3, mat4 } from 'gl-matrix'; -import CoincidentTopologyHelper from './Mapper/CoincidentTopologyHelper.js'; -import vtkAbstractImageMapper from './AbstractImageMapper.js'; -import { m as macro } from '../../macros2.js'; -import vtkPoints from '../../Common/Core/Points.js'; -import vtkPolyLine from '../../Common/DataModel/PolyLine.js'; -import { ProjectionMode } from './ImageCPRMapper/Constants.js'; - -const { - vtkErrorMacro -} = macro; -const { - staticOffsetAPI, - otherStaticMethods -} = CoincidentTopologyHelper; - -// ---------------------------------------------------------------------------- -// vtkImageCPRMapper methods -// ---------------------------------------------------------------------------- - -function vtkImageCPRMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkImageCPRMapper'); - const superClass = { - ...publicAPI - }; - - /** - * Public methods - */ - publicAPI.getBounds = () => { - const imageWidth = publicAPI.getWidth(); - const imageHeight = publicAPI.getHeight(); - return [0, imageWidth, 0, imageHeight, 0, 0]; - }; - publicAPI.getOrientationDataArray = () => { - const pointData = publicAPI.getInputData(1)?.getPointData(); - if (!pointData) { - return null; - } - if (model.orientationArrayName !== null) { - return pointData.getArrayByName(model.orientationArrayName) || null; - } - return pointData.getArrayByName('Orientation') || pointData.getArrayByName('Direction') || pointData.getVectors() || pointData.getTensors() || pointData.getNormals() || null; - }; - publicAPI.getOrientedCenterline = () => { - const inputPolydata = publicAPI.getInputData(1); - if (!inputPolydata) { - // No polydata: return previous centerline - // Don't reset centerline as it could have been set using setOrientedCenterline - return model._orientedCenterline; - } - - // Get dependencies of centerline - const orientationDataArray = publicAPI.getOrientationDataArray(); - const linesDataArray = inputPolydata.getLines(); - const pointsDataArray = inputPolydata.getPoints(); - if (!model.useUniformOrientation && !orientationDataArray) { - vtkErrorMacro('Failed to create oriented centerline from polydata: no orientation'); - publicAPI._resetOrientedCenterline(); - return model._orientedCenterline; - } - - // If centerline didn't change, don't recompute - const centerlineTime = model._orientedCenterline.getMTime(); - if (centerlineTime >= publicAPI.getMTime() && centerlineTime > linesDataArray.getMTime() && centerlineTime > pointsDataArray.getMTime() && (model.useUniformOrientation || centerlineTime > orientationDataArray.getMTime())) { - return model._orientedCenterline; - } - - // Get points of the centerline - const linesData = linesDataArray.getData(); - if (linesData.length <= 0) { - // No polyline - publicAPI._resetOrientedCenterline(); - return model._orientedCenterline; - } - const nPoints = linesData[0]; - if (nPoints <= 1) { - // Empty centerline - publicAPI._resetOrientedCenterline(); - return model._orientedCenterline; - } - const pointIndices = linesData.subarray(1, 1 + nPoints); - - // Get orientations of the centerline - const orientations = new Array(nPoints); - // Function to convert from mat4, mat3, quat or vec3 to quaternion - let convert = () => null; - const numComps = model.useUniformOrientation ? model.uniformOrientation.length : orientationDataArray.getNumberOfComponents(); - switch (numComps) { - case 16: - convert = (outQuat, inMat) => { - mat4.getRotation(outQuat, inMat); - quat.normalize(outQuat, outQuat); - }; - break; - case 9: - convert = (outQuat, inMat) => { - quat.fromMat3(outQuat, inMat); - quat.normalize(outQuat, outQuat); - }; - break; - case 4: - convert = quat.copy; - break; - case 3: - convert = (a, b) => quat.rotationTo(a, model.tangentDirection, b); - break; - default: - vtkErrorMacro('Orientation doesnt match mat4, mat3, quat or vec3'); - publicAPI._resetOrientedCenterline(); - return model._orientedCenterline; - } - // Function to get orientation from point index - let getOrientation = () => null; - if (model.useUniformOrientation) { - const outQuat = new Float64Array(4); - convert(outQuat, model.uniformOrientation); - getOrientation = () => outQuat; - } else { - const temp = new Float64Array(16); - getOrientation = i => { - const outQuat = new Float64Array(4); - orientationDataArray.getTuple(i, temp); - convert(outQuat, temp); - return outQuat; - }; - } - // Fill the orientation array - for (let i = 0; i < nPoints; ++i) { - const pointIdx = pointIndices[i]; - orientations[i] = getOrientation(pointIdx); - } - - // Done recomputing - model._orientedCenterline.initialize(pointsDataArray, pointIndices); - model._orientedCenterline.setOrientations(orientations); - return model._orientedCenterline; - }; - publicAPI.setOrientedCenterline = centerline => { - if (model._orientedCenterline !== centerline) { - model._orientedCenterline = centerline; - return true; - } - return false; - }; - publicAPI._resetOrientedCenterline = () => { - model._orientedCenterline.initialize(vtkPoints.newInstance()); - model._orientedCenterline.setOrientations([]); - }; - publicAPI.getMTime = () => { - let mTime = superClass.getMTime(); - if (!model._orientedCenterline) { - return mTime; - } - mTime = Math.max(mTime, model._orientedCenterline.getMTime()); - return mTime; - }; - publicAPI.getHeight = () => { - const accHeights = publicAPI.getOrientedCenterline().getDistancesToFirstPoint(); - if (accHeights.length === 0) { - return 0; - } - return accHeights[accHeights.length - 1]; - }; - publicAPI.getCenterlinePositionAndOrientation = distance => { - const centerline = publicAPI.getOrientedCenterline(); - const subId = centerline.findPointIdAtDistanceFromFirstPoint(distance); - if (subId < 0) { - return {}; - } - const distances = centerline.getDistancesToFirstPoint(); - const pcoords = [(distance - distances[subId]) / (distances[subId + 1] - distances[subId])]; - const weights = new Array(2); - const position = new Array(3); - centerline.evaluateLocation(subId, pcoords, position, weights); - const orientation = new Array(4); - if (!centerline.evaluateOrientation(subId, pcoords, orientation, weights)) { - // No orientation - return { - position - }; - } - return { - position, - orientation - }; - }; - publicAPI.getCenterlineTangentDirections = () => { - const centerline = publicAPI.getOrientedCenterline(); - const directionsTime = model._centerlineTangentDirectionsTime.getMTime(); - if (directionsTime < centerline.getMTime()) { - const orientations = centerline.getOrientations(); - model._centerlineTangentDirections = new Float32Array(3 * orientations.length); - const localDirection = new Array(3); - for (let i = 0; i < orientations.length; ++i) { - vec3.transformQuat(localDirection, model.tangentDirection, orientations[i]); - model._centerlineTangentDirections.set(localDirection, 3 * i); - } - model._centerlineTangentDirectionsTime.modified(); - } - return model._centerlineTangentDirections; - }; - publicAPI.getUniformDirection = () => vec3.transformQuat(new Array(3), model.tangentDirection, model.uniformOrientation); - publicAPI.getDirectionMatrix = () => { - const tangent = model.tangentDirection; - const bitangent = model.bitangentDirection; - const normal = model.normalDirection; - return new Float64Array([tangent[0], tangent[1], tangent[2], bitangent[0], bitangent[1], bitangent[2], normal[0], normal[1], normal[2]]); - }; - publicAPI.setDirectionMatrix = mat => { - if (mat4.equals(mat, publicAPI.getDirectionMatrix())) { - return false; - } - model.tangentDirection = [mat[0], mat[1], mat[2]]; - model.bitangentDirection = [mat[3], mat[4], mat[5]]; - model.normalDirection = [mat[6], mat[7], mat[8]]; - publicAPI.modified(); - return true; - }; - - // Check if the rendering can occur - publicAPI.preRenderCheck = () => { - if (!publicAPI.getInputData(0)) { - vtkErrorMacro('No image data input'); - return false; - } - return true; - }; - publicAPI.useStraightenedMode = () => { - publicAPI.setCenterPoint(null); - publicAPI.setUseUniformOrientation(false); - publicAPI.getOrientedCenterline().setDistanceFunction(vec3.dist); - }; - publicAPI.useStretchedMode = centerPoint => { - const centerline = publicAPI.getOrientedCenterline(); - // Set center point - if (!centerPoint) { - // Get the first point of the centerline if there is one - const centerlinePoints = centerline.getPoints(); - const newCenterPoint = centerlinePoints.getNumberOfTuples() > 0 ? centerlinePoints.getPoint(0) : [0, 0, 0]; - publicAPI.setCenterPoint(newCenterPoint); - } else { - publicAPI.setCenterPoint(centerPoint); - } - // Enable uniform orientation - publicAPI.setUseUniformOrientation(true); - // Change distance function - centerline.setDistanceFunction((a, b) => { - const direction = publicAPI.getUniformDirection(); - const vec = vec3.subtract([], a, b); - const d2 = vec3.squaredLength(vec); - const x = vec3.dot(direction, vec); - return Math.sqrt(d2 - x * x); - }); - }; - publicAPI.isProjectionEnabled = () => model.projectionSlabNumberOfSamples > 1; - publicAPI.setCenterlineData = centerlineData => publicAPI.setInputData(centerlineData, 1); - publicAPI.setCenterlineConnection = centerlineConnection => publicAPI.setInputConnection(centerlineConnection, 1); - publicAPI.setImageData = imageData => publicAPI.setInputData(imageData, 0); - publicAPI.setImageConnection = imageData => publicAPI.setInputConnection(imageData, 0); - publicAPI.getIsOpaque = () => true; - - // One can also call setOrientedCenterline and not provide a polydata centerline to input 1 - model._orientedCenterline = vtkPolyLine.newInstance(); - publicAPI._resetOrientedCenterline(); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const defaultValues = initialValues => ({ - width: 10, - uniformOrientation: [0, 0, 0, 1], - useUniformOrientation: false, - centerPoint: null, - preferSizeOverAccuracy: false, - orientationArrayName: null, - tangentDirection: [1, 0, 0], - bitangentDirection: [0, 1, 0], - normalDirection: [0, 0, 1], - projectionSlabThickness: 1, - projectionSlabNumberOfSamples: 1, - projectionMode: ProjectionMode.MAX, - ...initialValues -}); - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - - // Inheritance - vtkAbstractImageMapper.extend(publicAPI, model, initialValues); - - // Two inputs: one for the ImageData and one for the PolyData (centerline) - macro.algo(publicAPI, model, 2, 0); - model._centerlineTangentDirectionsTime = {}; - macro.obj(model._centerlineTangentDirectionsTime, { - mtime: 0 - }); - - // Setters and getters - macro.setGet(publicAPI, model, ['width', 'uniformOrientation', 'useUniformOrientation', 'centerPoint', 'preferSizeOverAccuracy', 'orientationArrayName', 'tangentDirection', 'bitangentDirection', 'normalDirection', 'projectionSlabThickness', 'projectionSlabNumberOfSamples', 'projectionMode']); - CoincidentTopologyHelper.implementCoincidentTopologyMethods(publicAPI, model); - - // Object methods - vtkImageCPRMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImageCPRMapper'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend, - ...staticOffsetAPI, - ...otherStaticMethods -}; - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageCPRMapper/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageCPRMapper/Constants.d.ts deleted file mode 100644 index 25619ff0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageCPRMapper/Constants.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export declare enum ProjectionMode { - MAX = 0, - MIN = 1, - AVERAGE = 2, -} - -declare const _default: { - ProjectionMode: typeof ProjectionMode; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageCPRMapper/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageCPRMapper/Constants.js deleted file mode 100644 index bb804514..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageCPRMapper/Constants.js +++ /dev/null @@ -1,10 +0,0 @@ -const ProjectionMode = { - MAX: 0, - MIN: 1, - AVERAGE: 2 -}; -var Constants = { - ProjectionMode -}; - -export { ProjectionMode, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageMapper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageMapper.d.ts deleted file mode 100644 index 1ca60b8a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageMapper.d.ts +++ /dev/null @@ -1,218 +0,0 @@ -import { vtkCamera } from './Camera'; -import { - vtkAbstractImageMapper, - IAbstractImageMapperInitialValues, -} from './AbstractImageMapper'; -import { Bounds, Nullable, Vector3 } from './../../types'; -import { SlicingMode } from './ImageMapper/Constants'; -import { vtkImageData } from './../../Common/DataModel/ImageData'; -import { - CoincidentTopologyHelper, - StaticCoincidentTopologyMethods, -} from './Mapper/CoincidentTopologyHelper'; - -export interface IClosestIJKAxis { - ijkMode: SlicingMode; - flip: boolean; -} - -export interface IImageMapperInitialValues - extends IAbstractImageMapperInitialValues { - closestIJKAxis?: IClosestIJKAxis; - renderToRectangle?: boolean; - sliceAtFocalPoint?: boolean; -} - -export interface vtkImageMapper - extends vtkAbstractImageMapper, - CoincidentTopologyHelper { - /** - * Returns the IJK slice value from a world position or XYZ slice value - * @param {Vector3 | number} [pos] World point or XYZ slice value - */ - getSliceAtPosition(pos: Vector3 | number): number; - - /** - * Get the closest IJK axis - * @return {IClosestIJKAxis} The axis object. - */ - getClosestIJKAxis(): IClosestIJKAxis; - - /** - * Get the bounds for this mapper as [xmin, xmax, ymin, ymax,zmin, zmax]. - * @return {Bounds} The bounds for the mapper. - */ - getBounds(): Bounds; - - /** - * Get the bounds for a given slice as [xmin, xmax, ymin, ymax,zmin, zmax]. - * @param {Number} [slice] The slice index. If undefined, the current slice is considered. - * @param {Number} [halfThickness] Half the slice thickness in index space (unit voxel - * spacing). If undefined, 0 is considered. - * @return {Bounds} The bounds for a given slice. - */ - getBoundsForSlice(slice?: number, halfThickness?: number): Bounds; - - /** - * - */ - getIsOpaque(): boolean; - - /** - * - */ - getRenderToRectangle(): boolean; - - /** - * Return currently active image. By default, there can only be one image - * for this mapper, if an input is set. - */ - getCurrentImage(): Nullable; - - /** - * Get the slice number at a focal point. - */ - getSliceAtFocalPoint(): boolean; - - /** - * - * @param {Number[]} p1 The coordinates of the first point. - * @param {Number[]} p2 The coordinates of the second point. - */ - intersectWithLineForPointPicking(p1: number[], p2: number[]): any; - - /** - * - * @param {Number[]} p1 The coordinates of the first point. - * @param {Number[]} p2 The coordinates of the second point. - */ - intersectWithLineForCellPicking(p1: number[], p2: number[]): any; - - /** - * Set the closest IJK axis - * @param {IClosestIJKAxis} closestIJKAxis The axis object. - */ - setClosestIJKAxis(closestIJKAxis: IClosestIJKAxis): boolean; - - /** - * - * @param {Boolean} renderToRectangle - */ - setRenderToRectangle(renderToRectangle: boolean): boolean; - - /** - * - * @param {Number} slice The slice index. - */ - setSlice(slice: number): boolean; - - /** - * Set the slice from a given camera. - * @param {vtkCamera} cam The camera object. - */ - setSliceFromCamera(cam: vtkCamera): boolean; - - /** - * Set the slice from a given focal point. - * @param {Boolean} sliceAtFocalPoint - */ - setSliceAtFocalPoint(sliceAtFocalPoint: boolean): boolean; - - /** - * Set the slice for the X axis. - * @param {Number} id The slice index. - */ - setXSlice(id: number): boolean; - - /** - * Set the slice for the Y axis. - * @param {Number} id The slice index. - */ - setYSlice(id: number): boolean; - - /** - * Set the slice for the Z axis. - * @param {Number} id The slice index. - */ - setZSlice(id: number): boolean; - - /** - * Set the slice for the I axis. - * @param {Number} id The slice index. - */ - setISlice(id: number): boolean; - - /** - * Set the slice for the J axis. - * @param {Number} id The slice index. - */ - setJSlice(id: number): boolean; - - /** - * Set the slice for the K axis. - * @param {Number} id The slice index. - */ - setKSlice(id: number): boolean; - - /** - * - */ - getSlicingModeNormal(): number[]; - - /** - * Get the slicing mode. - */ - getSlicingMode(): SlicingMode; - - /** - * Set the slicing mode. - * @param {SlicingMode} mode The slicing mode. - */ - setSlicingMode(mode: SlicingMode): boolean; - - /** - * Get the preference to use halfFloat representation of float - */ - getPreferSizeOverAccuracy(): boolean; - - /** - * Set the preference to use halfFloat representation of float - * @param {Boolean} preferSizeOverAccuracy - */ - setPreferSizeOverAccuracy(preferSizeOverAccuracy: boolean): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkImageMapper characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IImageMapperInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IImageMapperInitialValues -): void; - -/** - * Method use to create a new instance of vtkImageMapper - * @param {IImageMapperInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IImageMapperInitialValues -): vtkImageMapper; - -/** - * vtkImageMapper provides 2D image display support for vtk. - * It can be associated with a vtkImageSlice prop and placed within a Renderer. - * - * This class resolves coincident topology with the same methods as vtkMapper. - */ -export declare const vtkImageMapper: { - newInstance: typeof newInstance; - extend: typeof extend; - SlicingMode: typeof SlicingMode; -} & StaticCoincidentTopologyMethods; - -export default vtkImageMapper; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageMapper.js deleted file mode 100644 index 639f44d1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageMapper.js +++ /dev/null @@ -1,304 +0,0 @@ -import Constants from './ImageMapper/Constants.js'; -import { m as macro } from '../../macros2.js'; -import vtkAbstractImageMapper from './AbstractImageMapper.js'; -import { intersectWithLineForPointPicking, intersectWithLineForCellPicking } from './AbstractImageMapper/helper.js'; -import { F as clampValue, U as multiply3x3_vect3, I as createUninitializedBounds, V as getSparseOrthogonalMatrix } from '../../Common/Core/Math/index.js'; -import CoincidentTopologyHelper from './Mapper/CoincidentTopologyHelper.js'; - -const { - staticOffsetAPI, - otherStaticMethods -} = CoincidentTopologyHelper; -const { - SlicingMode -} = Constants; - -// ---------------------------------------------------------------------------- -// vtkImageMapper methods -// ---------------------------------------------------------------------------- - -function vtkImageMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkImageMapper'); - publicAPI.getSliceAtPosition = pos => { - const image = publicAPI.getCurrentImage(); - let pos3; - if (pos.length === 3) { - pos3 = pos; - } else if (Number.isFinite(pos)) { - const bds = image.getBounds(); - switch (model.slicingMode) { - case SlicingMode.X: - pos3 = [pos, (bds[3] + bds[2]) / 2, (bds[5] + bds[4]) / 2]; - break; - case SlicingMode.Y: - pos3 = [(bds[1] + bds[0]) / 2, pos, (bds[5] + bds[4]) / 2]; - break; - case SlicingMode.Z: - pos3 = [(bds[1] + bds[0]) / 2, (bds[3] + bds[2]) / 2, pos]; - break; - } - } - const ijk = [0, 0, 0]; - image.worldToIndex(pos3, ijk); - const ex = image.getExtent(); - const { - ijkMode - } = publicAPI.getClosestIJKAxis(); - let slice = 0; - switch (ijkMode) { - case SlicingMode.I: - slice = clampValue(ijk[0], ex[0], ex[1]); - break; - case SlicingMode.J: - slice = clampValue(ijk[1], ex[2], ex[3]); - break; - case SlicingMode.K: - slice = clampValue(ijk[2], ex[4], ex[5]); - break; - default: - return 0; - } - return slice; - }; - publicAPI.setSliceFromCamera = cam => { - const fp = cam.getFocalPoint(); - switch (model.slicingMode) { - case SlicingMode.I: - case SlicingMode.J: - case SlicingMode.K: - { - const slice = publicAPI.getSliceAtPosition(fp); - publicAPI.setSlice(slice); - } - break; - case SlicingMode.X: - publicAPI.setSlice(fp[0]); - break; - case SlicingMode.Y: - publicAPI.setSlice(fp[1]); - break; - case SlicingMode.Z: - publicAPI.setSlice(fp[2]); - break; - } - }; - publicAPI.setXSlice = id => { - publicAPI.setSlicingMode(SlicingMode.X); - publicAPI.setSlice(id); - }; - publicAPI.setYSlice = id => { - publicAPI.setSlicingMode(SlicingMode.Y); - publicAPI.setSlice(id); - }; - publicAPI.setZSlice = id => { - publicAPI.setSlicingMode(SlicingMode.Z); - publicAPI.setSlice(id); - }; - publicAPI.setISlice = id => { - publicAPI.setSlicingMode(SlicingMode.I); - publicAPI.setSlice(id); - }; - publicAPI.setJSlice = id => { - publicAPI.setSlicingMode(SlicingMode.J); - publicAPI.setSlice(id); - }; - publicAPI.setKSlice = id => { - publicAPI.setSlicingMode(SlicingMode.K); - publicAPI.setSlice(id); - }; - publicAPI.getSlicingModeNormal = () => { - const out = [0, 0, 0]; - const mat3 = publicAPI.getCurrentImage().getDirection(); - switch (model.slicingMode) { - case SlicingMode.X: - out[0] = 1; - break; - case SlicingMode.Y: - out[1] = 1; - break; - case SlicingMode.Z: - out[2] = 1; - break; - case SlicingMode.I: - multiply3x3_vect3(mat3, [1, 0, 0], out); - break; - case SlicingMode.J: - multiply3x3_vect3(mat3, [0, 1, 0], out); - break; - case SlicingMode.K: - multiply3x3_vect3(mat3, [0, 0, 1], out); - break; - } - return out; - }; - function computeClosestIJKAxis() { - let xyzMode; - switch (model.slicingMode) { - case SlicingMode.X: - xyzMode = 0; - break; - case SlicingMode.Y: - xyzMode = 1; - break; - case SlicingMode.Z: - xyzMode = 2; - break; - default: - model.closestIJKAxis = { - ijkMode: model.slicingMode, - flip: false - }; - return; - } - - // The direction matrix in vtkImageData is the indexToWorld rotation matrix - // with a column-major data layout since it is stored as a WebGL matrix. - const direction = publicAPI.getCurrentImage().getDirection(); - const newMatrix = getSparseOrthogonalMatrix(direction); - // With {foo}Vector filled with 0s except at {foo}Mode position where it is 1 - // We have xyzVector = (+/-) newMatrix * ijkVector - let ijkMode = 0; - for (; ijkMode < 3; ++ijkMode) { - if (newMatrix[xyzMode + 3 * ijkMode] !== 0) { - break; - } - } - const flip = newMatrix[xyzMode + 3 * ijkMode] < 0; - model.closestIJKAxis = { - ijkMode, - flip - }; - } - publicAPI.setSlicingMode = mode => { - if (model.slicingMode === mode) { - return; - } - model.slicingMode = mode; - if (publicAPI.getCurrentImage()) { - computeClosestIJKAxis(); - } - publicAPI.modified(); - }; - publicAPI.getClosestIJKAxis = () => { - if ((model.closestIJKAxis === undefined || model.closestIJKAxis.ijkMode === SlicingMode.NONE) && publicAPI.getCurrentImage()) { - computeClosestIJKAxis(); - } - return model.closestIJKAxis; - }; - publicAPI.getBounds = () => { - const image = publicAPI.getCurrentImage(); - if (!image) { - return createUninitializedBounds(); - } - if (!model.useCustomExtents) { - return image.getBounds(); - } - const ex = model.customDisplayExtent.slice(); - const { - ijkMode - } = publicAPI.getClosestIJKAxis(); - let nSlice = model.slice; - if (ijkMode !== model.slicingMode) { - // If not IJK slicing, get the IJK slice from the XYZ position/slice - nSlice = publicAPI.getSliceAtPosition(model.slice); - } - switch (ijkMode) { - case SlicingMode.I: - ex[0] = nSlice; - ex[1] = nSlice; - break; - case SlicingMode.J: - ex[2] = nSlice; - ex[3] = nSlice; - break; - case SlicingMode.K: - ex[4] = nSlice; - ex[5] = nSlice; - break; - } - return image.extentToBounds(ex); - }; - publicAPI.getBoundsForSlice = function () { - let slice = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : model.slice; - let halfThickness = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - const image = publicAPI.getCurrentImage(); - if (!image) { - return createUninitializedBounds(); - } - const extent = image.getSpatialExtent(); - const { - ijkMode - } = publicAPI.getClosestIJKAxis(); - let nSlice = slice; - if (ijkMode !== model.slicingMode) { - // If not IJK slicing, get the IJK slice from the XYZ position/slice - nSlice = publicAPI.getSliceAtPosition(slice); - } - switch (ijkMode) { - case SlicingMode.I: - extent[0] = nSlice - halfThickness; - extent[1] = nSlice + halfThickness; - break; - case SlicingMode.J: - extent[2] = nSlice - halfThickness; - extent[3] = nSlice + halfThickness; - break; - case SlicingMode.K: - extent[4] = nSlice - halfThickness; - extent[5] = nSlice + halfThickness; - break; - } - return image.extentToBounds(extent); - }; - publicAPI.intersectWithLineForPointPicking = (p1, p2) => intersectWithLineForPointPicking(p1, p2, publicAPI); - publicAPI.intersectWithLineForCellPicking = (p1, p2) => intersectWithLineForCellPicking(p1, p2, publicAPI); - publicAPI.getCurrentImage = () => publicAPI.getInputData(); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - slicingMode: SlicingMode.NONE, - closestIJKAxis: { - ijkMode: SlicingMode.NONE, - flip: false - }, - renderToRectangle: false, - sliceAtFocalPoint: false, - preferSizeOverAccuracy: false // Whether to use halfFloat representation of float, when it is inaccurate -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - vtkAbstractImageMapper.extend(publicAPI, model, initialValues); - macro.get(publicAPI, model, ['slicingMode']); - macro.setGet(publicAPI, model, ['closestIJKAxis', 'renderToRectangle', 'sliceAtFocalPoint', 'preferSizeOverAccuracy']); - CoincidentTopologyHelper.implementCoincidentTopologyMethods(publicAPI, model); - - // Object methods - vtkImageMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImageMapper'); - -// ---------------------------------------------------------------------------- - -var vtkImageMapper$1 = { - newInstance, - extend, - ...staticOffsetAPI, - ...otherStaticMethods, - ...Constants -}; - -export { vtkImageMapper$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageMapper/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageMapper/Constants.d.ts deleted file mode 100644 index e72282f3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageMapper/Constants.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export declare enum SlicingMode { - NONE = -1, - I = 0, - J = 1, - K = 2, - X = 3, - Y = 4, - Z = 5, -} - -declare const _default: { - SlicingMode: typeof SlicingMode; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageMapper/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageMapper/Constants.js deleted file mode 100644 index 3c1fdc78..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageMapper/Constants.js +++ /dev/null @@ -1,14 +0,0 @@ -const SlicingMode = { - NONE: -1, - I: 0, - J: 1, - K: 2, - X: 3, - Y: 4, - Z: 5 -}; -var Constants = { - SlicingMode -}; - -export { SlicingMode, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageProperty.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageProperty.d.ts deleted file mode 100644 index feb56cc1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageProperty.d.ts +++ /dev/null @@ -1,292 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { Extent, Nullable } from './../../types'; -import vtkColorTransferFunction from './ColorTransferFunction'; -import vtkPiecewiseFunction from './../../Common/DataModel/PiecewiseFunction'; -import { InterpolationType } from './ImageProperty/Constants'; - -interface IComponentData { - piecewiseFunction: number; - componentWeight: number; -} - -export interface IImagePropertyInitialValues { - independentComponents?: boolean; - interpolationType?: InterpolationType; - colorWindow?: number; - colorLevel?: number; - ambient?: number; - diffuse?: number; - opacity?: number; - componentData?: IComponentData[]; - useLookupTableScalarRange?: boolean; - useLabelOutline?: boolean; - labelOutlineThickness?: number | number[]; -} - -export interface vtkImageProperty extends vtkObject { - /** - * Get the lighting coefficient. - * @default 1.0 - */ - getAmbient(): number; - - /** - * Get the level value for window/level. - * @default 127.5 - */ - getColorLevel(): number; - - /** - * Get the window value for window/level. - * @default 255 - */ - getColorWindow(): number; - - /** - * - * @param {Number} index - */ - getComponentWeight(index: number): number; - - /** - * Get the diffuse lighting coefficient. - * @default 1.0 - */ - getDiffuse(): number; - - /** - * - * @default false - */ - getIndependentComponents(): boolean; - - /** - * Get the interpolation type - */ - getInterpolationType(): InterpolationType; - - /** - * Get the interpolation type as a string - */ - getInterpolationTypeAsString(): string; - - /** - * Get the opacity of the object. - * @default 1.0 - */ - getOpacity(): number; - - /** - * Get the component weighting function. - * @param {Number} [idx] - */ - getPiecewiseFunction(idx?: number): Nullable; - - /** - * Get the currently set RGB transfer function. - * @param {Number} [idx] - */ - getRGBTransferFunction(idx?: number): Nullable; - - /** - * Alias to get the piecewise function (backwards compatibility) - * @param {Number} [idx] - */ - getScalarOpacity(idx?: number): vtkPiecewiseFunction; - - /** - * Enable label outline rendering. - * @param {Boolean} useLabelOutline - */ - setUseLabelOutline(useLabelOutline: boolean): boolean; - - /** - * Check if label outline rendering. - */ - getUseLabelOutline(): boolean; - - /** - * Set opacity of the label outline. - * - * Opacity must be between 0 and 1. - * If the given opacity is a number, the opacity will apply to all outline segments. - * If the given opacity is an array of numbers, each opacity value will apply to the - * label equal to the opacity value's index + 1. (This is the same behavior as setLabelOutlineThickness). - * - * @param {Number | Number[]} opacity - */ - setLabelOutlineOpacity(opacity: number | number[]): boolean; - - /** - * Get the 0 to 1 opacity of the label outline. - */ - getLabelOutlineOpacity(): number | number[]; - - /** - * gets the label outline thickness - */ - getLabelOutlineThickness(): number; - - /** - * It will set the label outline thickness for the labelmaps. It can accept - * a single number or an array of numbers. If a single number is provided, - * it will be used for all the segments. If an array is provided, it indicates - * the thickness for each segment index. For instance if you have a labelmap - * with 3 segments (0: background 1: liver 2: tumor), you can set the thickness - * to [2,4] to have a thicker outline for the tumor (thickness 4). It should be - * noted that the thickness is in pixel and also the first array value will - * control the default thickness for all labels when 0 or not specified. - * - * @param {Number | Number[]} labelOutlineThickness - */ - setLabelOutlineThickness(labelOutlineThickness: number | number[]): boolean; - - /** - * Set the ambient lighting coefficient. - * @param {Number} ambient The ambient lighting coefficient. - */ - setAmbient(ambient: number): boolean; - - /** - * Set the level value for window/level. - * @param {Number} colorLevel The level value for window/level. - */ - setColorLevel(colorLevel: number): boolean; - - /** - * Set the window value for window/level. - * @param {Number} colorWindow The window value for window/level. - */ - setColorWindow(colorWindow: number): boolean; - - /** - * - * @param {Number} index - * @param {Number} value - */ - setComponentWeight(index: number, value: number): boolean; - - /** - * Set the diffuse lighting coefficient. - * @param {Number} diffuse The diffuse lighting coefficient. - */ - setDiffuse(diffuse: number): boolean; - - /** - * - * @param {Boolean} independentComponents - */ - setIndependentComponents(independentComponents: boolean): boolean; - - /** - * Set the interpolation type. - * @param {InterpolationType} interpolationType The interpolation type. - */ - setInterpolationType(interpolationType: InterpolationType): boolean; - - /** - * Set `interpolationType` to `InterpolationType.LINEAR`. - */ - setInterpolationTypeToLinear(): boolean; - - /** - * Set `interpolationType` to `InterpolationType.NEAREST`. - */ - setInterpolationTypeToNearest(): boolean; - - /** - * Set the opacity of the object - * @param {Number} opacity The opacity value. - */ - setOpacity(opacity: number): boolean; - - /** - * Set the piecewise function - * @param {Number} index - * @param {vtkPiecewiseFunction} func - */ - setPiecewiseFunction( - index: number, - func: Nullable - ): boolean; - - /** - * Set the color of a volume to an RGB transfer function - * @param {Number} index - * @param {vtkColorTransferFunction} func - */ - setRGBTransferFunction( - index: number, - func: Nullable - ): boolean; - - /** - * Alias to set the piecewise function - * @param {Number} index - * @param {vtkPiecewiseFunction} func - */ - setScalarOpacity( - index: number, - func: Nullable - ): boolean; - - /** - * Use the range that is set on the lookup table, instead of setting the range from the - * ColorWindow/ColorLevel settings - * @default false - * @param {Boolean} useLookupTableScalarRange - */ - setUseLookupTableScalarRange(useLookupTableScalarRange: boolean): boolean; - - /** - * Informs the mapper to only update the specified extents at the next render. - * - * If there are zero extents, the mapper updates the entire volume texture. - * Otherwise, the mapper will only update the texture by the specified extents - * during the next render call. - * - * This array is cleared after a successful render. - * @param extents - */ - setUpdatedExtents(extents: Extent[]): boolean; - - /** - * Retrieves the updated extents. - * - * This array is cleared after every successful render. - */ - getUpdatedExtents(): Extent[]; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkImageProperty characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IImagePropertyInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IImagePropertyInitialValues -): void; - -/** - * Method use to create a new instance of vtkImageProperty - * @param {IImagePropertyInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IImagePropertyInitialValues -): vtkImageProperty; - -/** - * vtkImageProperty provides 2D image display support for vtk. - * It can be associated with a vtkImageSlice prop and placed within a Renderer. - * - * This class resolves coincident topology with the same methods as vtkMapper. - */ -export declare const vtkImageProperty: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkImageProperty; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageProperty.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageProperty.js deleted file mode 100644 index 9ee1ae51..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageProperty.js +++ /dev/null @@ -1,191 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import Constants from './ImageProperty/Constants.js'; - -const { - InterpolationType -} = Constants; -const { - vtkErrorMacro -} = macro; -const VTK_MAX_VRCOMP = 4; - -// ---------------------------------------------------------------------------- -// vtkImageProperty methods -// ---------------------------------------------------------------------------- - -function vtkImageProperty(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkImageProperty'); - publicAPI.getMTime = () => { - let mTime = model.mtime; - let time; - for (let index = 0; index < VTK_MAX_VRCOMP; index++) { - // Color MTimes - if (model.componentData[index].rGBTransferFunction) { - // time that RGB transfer function was last modified - time = model.componentData[index].rGBTransferFunction.getMTime(); - mTime = mTime > time ? mTime : time; - } - - // Piecewise function MTimes - if (model.componentData[index].piecewiseFunction) { - // time that weighting function was last modified - time = model.componentData[index].piecewiseFunction.getMTime(); - mTime = mTime > time ? mTime : time; - } - } - return mTime; - }; - - // Set the color of a volume to an RGB transfer function - publicAPI.setRGBTransferFunction = function () { - let index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - let func = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - // backwards compatible call without the component index - let idx = index; - let transferFunc = func; - if (!Number.isInteger(index)) { - transferFunc = index; - idx = 0; - } - if (model.componentData[idx].rGBTransferFunction !== transferFunc) { - model.componentData[idx].rGBTransferFunction = transferFunc; - publicAPI.modified(); - return true; - } - return false; - }; - - // Get the currently set RGB transfer function. - publicAPI.getRGBTransferFunction = function () { - let idx = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - return model.componentData[idx].rGBTransferFunction; - }; - - // Set the piecewise function - publicAPI.setPiecewiseFunction = function () { - let index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - let func = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - let idx = index; - let transferFunc = func; - if (!Number.isInteger(index)) { - transferFunc = index; - idx = 0; - } - if (model.componentData[idx].piecewiseFunction !== transferFunc) { - model.componentData[idx].piecewiseFunction = transferFunc; - publicAPI.modified(); - return true; - } - return false; - }; - - // Get the component weighting function. - publicAPI.getPiecewiseFunction = function () { - let idx = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - return model.componentData[idx].piecewiseFunction; - }; - - // Alias to set the piecewise function - publicAPI.setScalarOpacity = function () { - let index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - let func = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - // backwards compatible call without the component index - let idx = index; - let transferFunc = func; - if (!Number.isInteger(index)) { - transferFunc = index; - idx = 0; - } - return publicAPI.setPiecewiseFunction(idx, transferFunc); - }; - - // Alias to get the piecewise function (backwards compatibility) - publicAPI.getScalarOpacity = function () { - let idx = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - return publicAPI.getPiecewiseFunction(idx); - }; - publicAPI.setComponentWeight = function () { - let index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - let value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1; - if (index < 0 || index >= VTK_MAX_VRCOMP) { - vtkErrorMacro('Invalid index'); - return false; - } - const val = Math.min(1, Math.max(0, value)); - if (model.componentData[index].componentWeight !== val) { - model.componentData[index].componentWeight = val; - publicAPI.modified(); - return true; - } - return false; - }; - publicAPI.getComponentWeight = function () { - let index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - if (index < 0 || index >= VTK_MAX_VRCOMP) { - vtkErrorMacro('Invalid index'); - return 0.0; - } - return model.componentData[index].componentWeight; - }; - publicAPI.setInterpolationTypeToNearest = () => publicAPI.setInterpolationType(InterpolationType.NEAREST); - publicAPI.setInterpolationTypeToLinear = () => publicAPI.setInterpolationType(InterpolationType.LINEAR); - publicAPI.getInterpolationTypeAsString = () => macro.enumToString(InterpolationType, model.interpolationType); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- -const defaultValues = initialValues => ({ - independentComponents: false, - interpolationType: InterpolationType.LINEAR, - colorWindow: 255, - colorLevel: 127.5, - ambient: 1.0, - diffuse: 0.0, - opacity: 1.0, - useLookupTableScalarRange: false, - useLabelOutline: false, - labelOutlineThickness: [1], - labelOutlineOpacity: 1.0, - updatedExtents: [], - ...initialValues -}); - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - - // Build VTK API - macro.obj(publicAPI, model); - if (!model.componentData) { - model.componentData = []; - for (let i = 0; i < VTK_MAX_VRCOMP; i++) { - model.componentData.push({ - rGBTransferFunction: null, - piecewiseFunction: null, - componentWeight: 1.0 - }); - } - } - macro.setGet(publicAPI, model, ['independentComponents', 'interpolationType', 'colorWindow', 'colorLevel', 'ambient', 'diffuse', 'opacity', 'useLookupTableScalarRange', 'useLabelOutline', 'labelOutlineOpacity', 'updatedExtents']); - macro.setGetArray(publicAPI, model, ['labelOutlineThickness']); - - // Object methods - vtkImageProperty(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImageProperty'); - -// ---------------------------------------------------------------------------- - -var vtkImageProperty$1 = { - newInstance, - extend -}; - -export { vtkImageProperty$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageProperty/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageProperty/Constants.d.ts deleted file mode 100644 index 0dcf153d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageProperty/Constants.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export declare enum InterpolationType { - NEAREST = 0, - LINEAR = 1, -} - -declare const _default: { - InterpolationType: typeof InterpolationType; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageProperty/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageProperty/Constants.js deleted file mode 100644 index 75b05458..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageProperty/Constants.js +++ /dev/null @@ -1,9 +0,0 @@ -const InterpolationType = { - NEAREST: 0, - LINEAR: 1 -}; -var Constants = { - InterpolationType -}; - -export { InterpolationType, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageResliceMapper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageResliceMapper.d.ts deleted file mode 100644 index 7df4ff75..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageResliceMapper.d.ts +++ /dev/null @@ -1,153 +0,0 @@ -import { - vtkAbstractImageMapper, - IAbstractImageMapperInitialValues, -} from './AbstractImageMapper'; -import { vtkPlane } from './../../Common/DataModel/Plane'; -import { vtkPolyData } from './../../Common/DataModel/PolyData'; -import { Bounds } from './../../types'; -import { SlabTypes } from './ImageResliceMapper/Constants'; -import { - CoincidentTopologyHelper, - StaticCoincidentTopologyMethods, -} from './Mapper/CoincidentTopologyHelper'; - -export interface IImageResliceMapperInitialValues - extends IAbstractImageMapperInitialValues { - slabThickness?: number; - slabTrapezoidIntegration?: number; - slabType?: SlabTypes; - slicePlane?: vtkPlane; - slicePolyData?: vtkPolyData; -} - -export interface vtkImageResliceMapper - extends vtkAbstractImageMapper, - CoincidentTopologyHelper { - /** - * Get the bounds for this mapper as [xmin, xmax, ymin, ymax,zmin, zmax]. - * @return {Bounds} The bounds for the mapper. - */ - getBounds(): Bounds; - - /** - * - */ - getIsOpaque(): boolean; - - /** - * - * Get the slab thickness in world space (mm). - */ - getSlabThickness(): number; - - /** - * - * Get whether slab trapezoid integration is enabled. - */ - getSlabTrapezoidIntegration(): number; - - /** - * - * Get the slab composite function. - */ - getSlabType(): SlabTypes; - - /** - * - * Get the implicit plane used to slice the volume with. - */ - getSlicePlane(): vtkPlane; - - /** - * - * Get the custom polydata used to slice the volume with. - */ - getSlicePolyData(): vtkPolyData; - - /** - * - * Enable slab slicing mode and set the slab thickness in world space (mm). - * @param {Number} slabThickness The slab thickness in world space (mm). Default: 0. - */ - setSlabThickness(slabThickness: number): boolean; - - /** - * - * When a slab thickness larger than 0 is provided, the mapper will composite multile slices - * together using different composite functions based on the slabType. When - * slabTrapezoidIntegration is enabled, the first and the last slices in the slab are weighted at - * half their original intensity for sum and mean slab types. - * @param {Number} slabTrapezoidIntegration Enable/disable trapezoid integration for slab slicing. - * Default: 0 - */ - setSlabTrapezoidIntegration(slabTrapezoidIntegration: number): boolean; - - /** - * - * When a slab thickness larger than 0 is provided, the mapper will composite multile slices - * together using different composite functions based on the slabType. Available options are max, - * min, mean and sum. - * @param {SlabTypes} slabType The blend function used to composite slab slices. - * Default: SlabTypes.MEAN - */ - setSlabType(slabType: SlabTypes): boolean; - - /** - * - * The vtkImageResliceMapper provides flexibility in how the reslice source is provided. The user - * can either provide an implicit vtkPlane (defined with its origin and normal), or a custom - * vtkPolyData. When both sources are provided, the mapper chooses the custom polydata over the - * implicit plane. When providing custom polydata as the source, it is required that the polydata - * has point normals for slab slicing. When neither sources are provided, the mapper creates a - * default implicit plane with normal (0, 0, 1) and origin at the mid-point of the volume's Z - * bounds. - * @param {vtkPlane} slicePlane The implicit plane to slice the volume with. Default: null - */ - setSlicePlane(slicePlane: vtkPlane): boolean; - - /** - * - * The vtkImageResliceMapper provides flexibility in how the reslice source is provided. The user - * can either provide an implicit vtkPlane (defined with its origin and normal), or a custom - * vtkPolyData. When both sources are provided, the mapper chooses the custom polydata over the - * implicit plane. When providing custom polydata as the source, it is required that the polydata - * has point normals for slab slicing. When neither sources are provided, the mapper creates a - * default implicit plane with normal (0, 0, 1) and origin at the mid-point of the volume's Z - * bounds. - * @param {vtkPolyData} slicePolyData The polydata to slice the volume with. Default: null - */ - setSlicePolyData(slicePolyData: vtkPolyData): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkImageResliceMapper characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IImageResliceMapperInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IImageResliceMapperInitialValues -): void; - -/** - * Method use to create a new instance of vtkImageResliceMapper - * @param {IImageResliceMapperInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IImageResliceMapperInitialValues -): vtkImageResliceMapper; - -/** - * vtkImageResliceMapper provides hardware accelerated slicing of 3D image data / volumes. - * It can be associated with a vtkImageSlice prop and placed within a Renderer. - * - * This class resolves coincident topology with the same methods as vtkMapper. - */ -export declare const vtkImageResliceMapper: { - newInstance: typeof newInstance; - extend: typeof extend; -} & StaticCoincidentTopologyMethods; -export default vtkImageResliceMapper; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageResliceMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageResliceMapper.js deleted file mode 100644 index 02dbdbb0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageResliceMapper.js +++ /dev/null @@ -1,78 +0,0 @@ -import CoincidentTopologyHelper from './Mapper/CoincidentTopologyHelper.js'; -import Constants from './ImageResliceMapper/Constants.js'; -import { m as macro } from '../../macros2.js'; -import vtkAbstractImageMapper from './AbstractImageMapper.js'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; - -const { - SlabTypes -} = Constants; -const { - staticOffsetAPI, - otherStaticMethods -} = CoincidentTopologyHelper; - -// ---------------------------------------------------------------------------- -// vtkImageResliceMapper methods -// ---------------------------------------------------------------------------- - -function vtkImageResliceMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkImageResliceMapper'); - publicAPI.getBounds = () => { - let bds = [...vtkBoundingBox.INIT_BOUNDS]; - const image = publicAPI.getInputData(); - if (publicAPI.getSlicePolyData()) { - bds = publicAPI.getSlicePolyData().getBounds(); - } else if (image) { - bds = image.getBounds(); - if (publicAPI.getSlicePlane()) { - vtkBoundingBox.cutWithPlane(bds, publicAPI.getSlicePlane().getOrigin(), publicAPI.getSlicePlane().getNormal()); - } - } - return bds; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const defaultValues = initialValues => ({ - slabThickness: 0.0, - slabTrapezoidIntegration: 0, - slabType: SlabTypes.MEAN, - slicePlane: null, - slicePolyData: null, - ...initialValues -}); - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - - // Build VTK API - vtkAbstractImageMapper.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['slabThickness', 'slabTrapezoidIntegration', 'slabType', 'slicePlane', 'slicePolyData']); - CoincidentTopologyHelper.implementCoincidentTopologyMethods(publicAPI, model); - - // Object methods - vtkImageResliceMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImageResliceMapper'); - -// ---------------------------------------------------------------------------- - -var vtkImageResliceMapper$1 = { - newInstance, - extend, - ...staticOffsetAPI, - ...otherStaticMethods -}; - -export { vtkImageResliceMapper$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageResliceMapper/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageResliceMapper/Constants.d.ts deleted file mode 100644 index a39d945f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageResliceMapper/Constants.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export declare enum SlabTypes { - MIN = 0, - MAX = 1, - MEAN = 2, - SUM = 3, -} - -declare const _default: { - SlabTypes: typeof SlabTypes; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageResliceMapper/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageResliceMapper/Constants.js deleted file mode 100644 index 2708838c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageResliceMapper/Constants.js +++ /dev/null @@ -1,11 +0,0 @@ -const SlabTypes = { - MIN: 0, - MAX: 1, - MEAN: 2, - SUM: 3 -}; -var Constants = { - SlabTypes -}; - -export { SlabTypes, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageSlice.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageSlice.d.ts deleted file mode 100644 index 633f1485..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageSlice.d.ts +++ /dev/null @@ -1,167 +0,0 @@ -import { Bounds } from './../../types'; -import vtkImageProperty, { - IImagePropertyInitialValues, -} from './ImageProperty'; -import vtkAbstractImageMapper from './AbstractImageMapper'; -import vtkProp3D, { IProp3DInitialValues } from './Prop3D'; - -export interface IImageSliceInitialValues extends IProp3DInitialValues { - mapper?: vtkAbstractImageMapper; - property?: vtkImageProperty; - bounds?: Bounds; -} - -export interface vtkImageSlice extends vtkProp3D { - /** - * - */ - getActors(): any; - - /** - * Get the bounds for a given slice as [xmin, xmax, ymin, ymax,zmin, zmax]. - * @param {Number} slice The slice index. If undefined, the current slice is considered. - * @param {Number} [thickness] The slice thickness. If undefined, 0 is considered. - * @return {Bounds} The bounds for a given slice. - */ - getBoundsForSlice(slice?: number, thickness?: number): Bounds; - - /** - * - */ - getImages(): any; - - /** - * - */ - getIsOpaque(): boolean; - - /** - * - */ - getMapper(): vtkAbstractImageMapper; - - /** - * Get the minimum X bound - */ - getMinXBound(): number; - - /** - * Get the maximum X bound - */ - getMaxXBound(): number; - - /** - * Get the minimum Y bound - */ - getMinYBound(): number; - - /** - * Get the maximum Y bound - */ - getMaxYBound(): number; - - /** - * Get the minimum Z bound - */ - getMinZBound(): number; - - /** - * Get the maximum Z bound - */ - getMaxZBound(): number; - - /** - * Return the `Modified Time` which is a monotonic increasing integer - * global for all vtkObjects. - * - * This allow to solve a question such as: - * - Is that object created/modified after another one? - * - Do I need to re-execute this filter, or not? ... - * - * @return {Number} the global modified time. - */ - getMTime(): number; - - /** - * - */ - getRedrawMTime(): number; - - /** - * - */ - getSupportsSelection(): boolean; - - /** - * Always render during opaque pass, to keep the behavior - * predictable and because depth-peeling kills alpha-blending. - * In the future, the Renderer should render images in layers, - * i.e. where each image will have a layer number assigned to it, - * and the Renderer will do the images in their own pass. - */ - hasTranslucentPolygonalGeometry(): boolean; - - /** - * Create a new property suitable for use with this type of Actor. - * @param {IImageSliceInitialValues} [initialValues] (default: {}) - */ - makeProperty(initialValues?: IImagePropertyInitialValues): vtkImageProperty; - - /** - * - * @param {vtkAbstractImageMapper} mapper An instance that derives from vtkAbstractImageMapper. - */ - setMapper(mapper: vtkAbstractImageMapper): boolean; - - /** - * - * @param {boolean} forceOpaque If true, render during opaque pass even if opacity value is below 1.0. - */ - setForceOpaque(forceOpaque: boolean): boolean; - - /** - * - * @param {boolean} forceTranslucent If true, render during translucent pass even if opacity value is 1.0. - */ - setForceTranslucent(forceTranslucent: boolean): boolean; - - // Inherited from vtkProp3D, but takes a vtkImageProperty instead of a generic vtkObject - getProperty(mapperInputPort?: number): vtkImageProperty; - getProperties(): vtkImageProperty[]; - setProperty(mapperInputPort: number, property: vtkImageProperty): boolean; - setProperty(property: vtkImageProperty): boolean; - setProperties(properties: vtkImageProperty[]): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkImageSlice characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IImageSliceInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IImageSliceInitialValues -): void; - -/** - * Method use to create a new instance of vtkImageSlice - * @param {IImageSliceInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IImageSliceInitialValues -): vtkImageSlice; - -/** - * vtkImageSlice provides 2D image display support for vtk. - * It can be associated with a vtkImageSlice prop and placed within a Renderer. - * - * This class resolves coincident topology with the same methods as vtkMapper. - */ -export declare const vtkImageSlice: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkImageSlice; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageSlice.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageSlice.js deleted file mode 100644 index 30052381..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ImageSlice.js +++ /dev/null @@ -1,139 +0,0 @@ -import { mat4 } from 'gl-matrix'; -import { m as macro } from '../../macros2.js'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; -import vtkProp3D from './Prop3D.js'; -import vtkImageProperty from './ImageProperty.js'; - -// ---------------------------------------------------------------------------- -// vtkImageSlice methods -// ---------------------------------------------------------------------------- - -function vtkImageSlice(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkImageSlice'); - publicAPI.getActors = () => publicAPI; - publicAPI.getImages = () => publicAPI; - publicAPI.getIsOpaque = () => { - if (model.forceOpaque) { - return true; - } - if (model.forceTranslucent) { - return false; - } - // make sure we have a property - if (!model.properties[0]) { - // force creation of a property - publicAPI.getProperty(); - } - let isOpaque = model.properties[0].getOpacity() >= 1.0; - - // are we using an opaque scalar array, if any? - isOpaque = isOpaque && (!model.mapper || model.mapper.getIsOpaque()); - return isOpaque; - }; - - // Always render during opaque pass, to keep the behavior - // predictable and because depth-peeling kills alpha-blending. - // In the future, the Renderer should render images in layers, - // i.e. where each image will have a layer number assigned to it, - // and the Renderer will do the images in their own pass. - publicAPI.hasTranslucentPolygonalGeometry = () => false; - publicAPI.makeProperty = vtkImageProperty.newInstance; - publicAPI.getBoundsForSlice = (slice, thickness) => { - // Check for the special case when the mapper's bounds are unknown - const bds = model.mapper.getBoundsForSlice(slice, thickness); - // Check for the special case when the actor is empty. - if (!vtkBoundingBox.isValid(bds)) { - return bds; - } - publicAPI.computeMatrix(); - const tmp4 = new Float64Array(16); - mat4.transpose(tmp4, model.matrix); - const newBounds = vtkBoundingBox.transformBounds(bds, tmp4); - return newBounds; - }; - - //---------------------------------------------------------------------------- - // Get the minimum X bound - publicAPI.getMinXBound = () => publicAPI.getBounds()[0]; - - // Get the maximum X bound - publicAPI.getMaxXBound = () => publicAPI.getBounds()[1]; - - // Get the minimum Y bound - publicAPI.getMinYBound = () => publicAPI.getBounds()[2]; - - // Get the maximum Y bound - publicAPI.getMaxYBound = () => publicAPI.getBounds()[3]; - - // Get the minimum Z bound - publicAPI.getMinZBound = () => publicAPI.getBounds()[4]; - - // Get the maximum Z bound - publicAPI.getMaxZBound = () => publicAPI.getBounds()[5]; - publicAPI.getRedrawMTime = () => { - let mt = model.mtime; - if (model.mapper !== null) { - let time = model.mapper.getMTime(); - mt = time > mt ? time : mt; - if (model.mapper.getInput() !== null) { - // FIXME !!! getInputAlgorithm / getInput - model.mapper.getInputAlgorithm().update(); - time = model.mapper.getInput().getMTime(); - mt = time > mt ? time : mt; - } - } - model.properties.forEach(property => { - mt = Math.max(mt, property.getMTime()); - const rgbFunc = property.getRGBTransferFunction(); - if (rgbFunc !== null) { - mt = Math.max(mt, rgbFunc.getMTime()); - } - }); - return mt; - }; - publicAPI.getSupportsSelection = () => model.mapper ? model.mapper.getSupportsSelection() : false; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - mapper: null, - forceOpaque: false, - forceTranslucent: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkProp3D.extend(publicAPI, model, initialValues); - - // vtkTimeStamp - model.boundsMTime = {}; - macro.obj(model.boundsMTime); - - // Build VTK API - macro.setGet(publicAPI, model, ['mapper', 'forceOpaque', 'forceTranslucent']); - - // Object methods - vtkImageSlice(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImageSlice'); - -// ---------------------------------------------------------------------------- - -var vtkImageSlice$1 = { - newInstance, - extend -}; - -export { vtkImageSlice$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/InteractorObserver.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/InteractorObserver.d.ts deleted file mode 100644 index 00440434..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/InteractorObserver.d.ts +++ /dev/null @@ -1,142 +0,0 @@ -import { vtkRenderer } from './Renderer'; -import { vtkRenderWindowInteractor } from './RenderWindowInteractor'; -import { vtkObject, EventHandler, vtkSubscription } from './../../interfaces'; -import { Vector3 } from './../../types'; - -export interface vtkInteractorObserver extends vtkObject { - /** - * Invoke an interaction event. - * - * @param args Event payload. - */ - invokeInteractionEvent(...args: unknown[]): void; - - /** - * Registers a callback to be invoked when an interaction event occurs. - * - * @param {EventHandler} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onInteractionEvent( - cb: EventHandler, - priority?: number - ): Readonly; - - /** - * Invoke a start interaction event. - * - * @param args Event payload. - */ - invokeStartInteractionEvent(...args: unknown[]): void; - - /** - * Registers a callback to be invoked when a start interaction event occurs. - * - * @param {EventHandler} cb The callback to be called. - * @param {Number} [priority] The callback to be called - */ - onStartInteractionEvent( - cb: EventHandler, - priority?: number - ): Readonly; - - /** - * Invoke an end interaction event. - * - * @param args Event payload. - */ - invokeEndInteractionEvent(...args: unknown[]): void; - - /** - * Registers a callback to be invoked when an end interaction event occurs. - * - * @param {EventHandler} cb The callback to be called. - * @param {Number?} [priority] The callback to be called - */ - onEndInteractionEvent( - cb: EventHandler, - priority?: number - ): Readonly; - - /** - * Retrieve the render window interactor instance. - */ - getInteractor(): vtkRenderWindowInteractor; - - /** - * Get wether or not this InteractorObserver instance is enabled. - */ - getEnabled(): boolean; - - /** - * Enable/disable the interactor observer. Note that if you are enabling the interactor observer, an interactor instance must exists on the model. - * Typically you can call `setInteractor` - * - * @param {Boolean} enable - */ - setEnabled(enable: boolean): void; - - /** - * Set the priority. - * - * @param {Number} priority The priority level. - */ - setPriority(priority: number): void; - - /** - * Get the priority. - */ - getPriority(): number; - - /** - * Set whether or not the interactor observer instance should process events. - * - * @param {Boolean} processEvents - */ - setProcessEvents(processEvents: boolean): boolean; - - /** - * Get whether or not the interactor observer instance should process events. - */ - getProcessEvents(): boolean; - - /** - * Set the interactor instance. - * - * @param {vtkRenderWindowInteractor} interactor - */ - setInteractor(interactor: vtkRenderWindowInteractor): void; - - /** - * Transform from world to display coordinates. - * - * @param {vtkRenderer} renderer The vtkRenderer instance. - * @param {Number} x - * @param {Number} y - * @param {Number} z - */ - computeWorldToDisplay( - renderer: vtkRenderer, - x: number, - y: number, - z: number - ): Vector3; - - /** - * Transform from display to world coordinates. - * - * @param {vtkRenderer} renderer The vtkRenderer instance. - * @param {Number} x - * @param {Number} y - * @param {Number} z - */ - computeDisplayToWorld( - renderer: vtkRenderer, - x: number, - y: number, - z: number - ): Vector3; -} - -declare const _default: vtkInteractorObserver; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/InteractorObserver.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/InteractorObserver.js deleted file mode 100644 index 7f17aa76..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/InteractorObserver.js +++ /dev/null @@ -1,184 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkRenderWindowInteractor from './RenderWindowInteractor.js'; - -const { - vtkErrorMacro, - VOID -} = macro; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -//---------------------------------------------------------------------------- -// Description: -// Transform from world to display coordinates. -function computeWorldToDisplay(renderer, x, y, z) { - const view = renderer.getRenderWindow().getViews()[0]; - return view.worldToDisplay(x, y, z, renderer); -} - -//---------------------------------------------------------------------------- -// Description: -// Transform from display to world coordinates. -function computeDisplayToWorld(renderer, x, y, z) { - const view = renderer.getRenderWindow().getViews()[0]; - return view.displayToWorld(x, y, z, renderer); -} - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- -const STATIC = { - computeWorldToDisplay, - computeDisplayToWorld -}; - -// ---------------------------------------------------------------------------- -// vtkInteractorObserver methods -// ---------------------------------------------------------------------------- - -function vtkInteractorObserver(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkInteractorObserver'); - const superClass = { - ...publicAPI - }; - - //---------------------------------------------------------------------------- - function unsubscribeFromEvents() { - while (model.subscribedEvents.length) { - model.subscribedEvents.pop().unsubscribe(); - } - } - - //---------------------------------------------------------------------------- - // Check what events we can handle and register callbacks - function subscribeToEvents() { - vtkRenderWindowInteractor.handledEvents.forEach(eventName => { - if (publicAPI[`handle${eventName}`]) { - model.subscribedEvents.push(model._interactor[`on${eventName}`](callData => { - if (model.processEvents) { - return publicAPI[`handle${eventName}`](callData); - } - return VOID; - }, model.priority)); - } - }); - } - - //---------------------------------------------------------------------------- - // Public API methods - //---------------------------------------------------------------------------- - publicAPI.setInteractor = i => { - if (i === model._interactor) { - return; - } - unsubscribeFromEvents(); - model._interactor = i; - if (i && model.enabled) { - subscribeToEvents(); - } - publicAPI.modified(); - }; - - //---------------------------------------------------------------------------- - publicAPI.setEnabled = enable => { - if (enable === model.enabled) { - return; - } - unsubscribeFromEvents(); - if (enable) { - if (model._interactor) { - subscribeToEvents(); - } else { - vtkErrorMacro(` - The interactor must be set before subscribing to events - `); - } - } - model.enabled = enable; - publicAPI.modified(); - }; - - //---------------------------------------------------------------------------- - // Description: - // Transform from display to world coordinates. - publicAPI.computeDisplayToWorld = (renderer, x, y, z) => { - if (!renderer) { - return null; - } - return model._interactor.getView().displayToWorld(x, y, z, renderer); - }; - - //---------------------------------------------------------------------------- - // Description: - // Transform from world to display coordinates. - publicAPI.computeWorldToDisplay = (renderer, x, y, z) => { - if (!renderer) { - return null; - } - return model._interactor.getView().worldToDisplay(x, y, z, renderer); - }; - - //---------------------------------------------------------------------------- - - publicAPI.setPriority = priority => { - const modified = superClass.setPriority(priority); - if (modified && model._interactor) { - unsubscribeFromEvents(); - subscribeToEvents(); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - enabled: true, - // _interactor: null, - priority: 0.0, - processEvents: true, - subscribedEvents: [] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.event(publicAPI, model, 'InteractionEvent'); - macro.event(publicAPI, model, 'StartInteractionEvent'); - macro.event(publicAPI, model, 'EndInteractionEvent'); - - // Create get-only macros - macro.get(publicAPI, model, ['_interactor', 'enabled']); - - // Create get-set macros - macro.setGet(publicAPI, model, ['priority', 'processEvents']); - macro.moveToProtected(publicAPI, model, ['interactor']); - - // For more macro methods, see "Sources/macros.js" - - // Object specific methods - vtkInteractorObserver(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkInteractorObserver'); - -// ---------------------------------------------------------------------------- - -var vtkInteractorObserver$1 = { - newInstance, - extend, - ...STATIC -}; - -export { STATIC, vtkInteractorObserver$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/InteractorStyle.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/InteractorStyle.d.ts deleted file mode 100644 index d399a3fb..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/InteractorStyle.d.ts +++ /dev/null @@ -1,244 +0,0 @@ -import { EventHandler, vtkSubscription } from './../../interfaces'; -import { Nullable } from './../../types'; -import { vtkInteractorObserver } from './InteractorObserver'; -import { vtkRenderer } from './Renderer'; - -export interface vtkInteractorStyle extends vtkInteractorObserver { - /** - * Start a Rotate event. - */ - startRotate(): void; - - /** - * Invoke a StartRotate event. - */ - invokeStartRotateEvent(...args: unknown[]): void; - - /** - * Registers a callback on a StartRotate event. - */ - onStartRotateEvent(cb: EventHandler, priority?: number): vtkSubscription; - - /** - * Ends a Rotate event. - */ - endRotate(): void; - - /** - * Invoke an EndRotate event. - */ - invokeEndRotateEvent(...args: unknown[]): void; - - /** - * Registers a callback on an EndRotate event. - */ - onEndRotateEvent(cb: EventHandler, priority?: number): vtkSubscription; - /** - * Start a Pan event. - */ - startPan(): void; - - /** - * Invoke a StartPan event. - */ - invokeStartPanEvent(...args: unknown[]): void; - - /** - * Registers a callback on a StartPan event. - */ - onStartPanEvent(cb: EventHandler, priority?: number): vtkSubscription; - - /** - * Ends a Pan event. - */ - endPan(): void; - - /** - * Invoke an EndPan event. - */ - invokeEndPanEvent(...args: unknown[]): void; - - /** - * Registers a callback on an EndPan event. - */ - onEndPanEvent(cb: EventHandler, priority?: number): vtkSubscription; - /** - * Start a Spin event. - */ - startSpin(): void; - - /** - * Invoke a StartSpin event. - */ - invokeStartSpinEvent(...args: unknown[]): void; - - /** - * Registers a callback on a StartSpin event. - */ - onStartSpinEvent(cb: EventHandler, priority?: number): vtkSubscription; - - /** - * Ends a Spin event. - */ - endSpin(): void; - - /** - * Invoke an EndSpin event. - */ - invokeEndSpinEvent(...args: unknown[]): void; - - /** - * Registers a callback on an EndSpin event. - */ - onEndSpinEvent(cb: EventHandler, priority?: number): vtkSubscription; - /** - * Start a Dolly event. - */ - startDolly(): void; - - /** - * Invoke a StartDolly event. - */ - invokeStartDollyEvent(...args: unknown[]): void; - - /** - * Registers a callback on a StartDolly event. - */ - onStartDollyEvent(cb: EventHandler, priority?: number): vtkSubscription; - - /** - * Ends a Dolly event. - */ - endDolly(): void; - - /** - * Invoke an EndDolly event. - */ - invokeEndDollyEvent(...args: unknown[]): void; - - /** - * Registers a callback on an EndDolly event. - */ - onEndDollyEvent(cb: EventHandler, priority?: number): vtkSubscription; - /** - * Start a CameraPose event. - */ - startCameraPose(): void; - - /** - * Invoke a StartCameraPose event. - */ - invokeStartCameraPoseEvent(...args: unknown[]): void; - - /** - * Registers a callback on a StartCameraPose event. - */ - onStartCameraPoseEvent(cb: EventHandler, priority?: number): vtkSubscription; - - /** - * Ends a CameraPose event. - */ - endCameraPose(): void; - - /** - * Invoke an EndCameraPose event. - */ - invokeEndCameraPoseEvent(...args: unknown[]): void; - - /** - * Registers a callback on an EndCameraPose event. - */ - onEndCameraPoseEvent(cb: EventHandler, priority?: number): vtkSubscription; - /** - * Start a WindowLevel event. - */ - startWindowLevel(): void; - - /** - * Invoke a StartWindowLevel event. - */ - invokeStartWindowLevelEvent(...args: unknown[]): void; - - /** - * Registers a callback on a StartWindowLevel event. - */ - onStartWindowLevelEvent(cb: EventHandler, priority?: number): vtkSubscription; - - /** - * Ends a WindowLevel event. - */ - endWindowLevel(): void; - - /** - * Invoke an EndWindowLevel event. - */ - invokeEndWindowLevelEvent(...args: unknown[]): void; - - /** - * Registers a callback on an EndWindowLevel event. - */ - onEndWindowLevelEvent(cb: EventHandler, priority?: number): vtkSubscription; - /** - * Start a Slice event. - */ - startSlice(): void; - - /** - * Invoke a StartSlice event. - */ - invokeStartSliceEvent(...args: unknown[]): void; - - /** - * Registers a callback on a StartSlice event. - */ - onStartSliceEvent(cb: EventHandler, priority?: number): vtkSubscription; - - /** - * Ends a Slice event. - */ - endSlice(): void; - - /** - * Invoke an EndSlice event. - */ - invokeEndSliceEvent(...args: unknown[]): void; - - /** - * Registers a callback on an EndSlice event. - */ - onEndSliceEvent(cb: EventHandler, priority?: number): vtkSubscription; - - /** - * Handles a keypress. - */ - handleKeyPress(callData: unknown): void; - - /** - * Explicitly defines a renderer to be used for event handling. - * If never called or called with null, the pokedRenderer of the event will be used. - * - * @param {Nullable} renderer - */ - setFocusedRenderer(renderer: Nullable): boolean; - - /** - * Get the renderer used for event handling, returns null if not set. - */ - getFocusedRenderer(): Nullable; -} - -export interface IInteractorStyleInitialValues { - autoAdjustCameraClippingRange?: boolean; -} - -export function extend( - publicAPI: object, - model: object, - initialValues?: IInteractorStyleInitialValues -): void; - -export const vtkInteractorStyle: { - extend: typeof extend; -}; - -export default vtkInteractorStyle; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/InteractorStyle.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/InteractorStyle.js deleted file mode 100644 index c3bf0385..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/InteractorStyle.js +++ /dev/null @@ -1,152 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkInteractorObserver from './InteractorObserver.js'; -import vtkInteractorStyleConstants from './InteractorStyle/Constants.js'; - -const { - States -} = vtkInteractorStyleConstants; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -// Add module-level functions or api that you want to expose statically via -// the next section... - -const stateNames = { - Rotate: States.IS_ROTATE, - Pan: States.IS_PAN, - Spin: States.IS_SPIN, - Dolly: States.IS_DOLLY, - CameraPose: States.IS_CAMERA_POSE, - WindowLevel: States.IS_WINDOW_LEVEL, - Slice: States.IS_SLICE -}; - -// ---------------------------------------------------------------------------- -// vtkInteractorStyle methods -// ---------------------------------------------------------------------------- - -function vtkInteractorStyle(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkInteractorStyle'); - - // Public API methods - // create bunch of Start/EndState methods - Object.keys(stateNames).forEach(key => { - macro.event(publicAPI, model, `Start${key}Event`); - publicAPI[`start${key}`] = () => { - if (model.state !== States.IS_NONE) { - return; - } - model.state = stateNames[key]; - model._interactor.requestAnimation(publicAPI); - publicAPI.invokeStartInteractionEvent({ - type: 'StartInteractionEvent' - }); - publicAPI[`invokeStart${key}Event`]({ - type: `Start${key}Event` - }); - }; - macro.event(publicAPI, model, `End${key}Event`); - publicAPI[`end${key}`] = () => { - if (model.state !== stateNames[key]) { - return; - } - model.state = States.IS_NONE; - model._interactor.cancelAnimation(publicAPI); - publicAPI.invokeEndInteractionEvent({ - type: 'EndInteractionEvent' - }); - publicAPI[`invokeEnd${key}Event`]({ - type: `End${key}Event` - }); - model._interactor.render(); - }; - }); - model.getRenderer = callData => model.focusedRenderer || callData.pokedRenderer; - - //---------------------------------------------------------------------------- - publicAPI.handleKeyPress = callData => { - const rwi = model._interactor; - let ac = null; - switch (callData.key) { - case 'r': - case 'R': - model.getRenderer(callData).resetCamera(); - rwi.render(); - break; - case 'w': - case 'W': - ac = model.getRenderer(callData).getActors(); - ac.forEach(anActor => { - const prop = anActor.getProperty(); - if (prop.setRepresentationToWireframe) { - prop.setRepresentationToWireframe(); - } - }); - rwi.render(); - break; - case 's': - case 'S': - ac = model.getRenderer(callData).getActors(); - ac.forEach(anActor => { - const prop = anActor.getProperty(); - if (prop.setRepresentationToSurface) { - prop.setRepresentationToSurface(); - } - }); - rwi.render(); - break; - case 'v': - case 'V': - ac = model.getRenderer(callData).getActors(); - ac.forEach(anActor => { - const prop = anActor.getProperty(); - if (prop.setRepresentationToPoints) { - prop.setRepresentationToPoints(); - } - }); - rwi.render(); - break; - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - state: States.IS_NONE, - handleObservers: 1, - autoAdjustCameraClippingRange: 1 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkInteractorObserver.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['focusedRenderer']); - - // Object specific methods - vtkInteractorStyle(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkInteractorStyle'); - -// ---------------------------------------------------------------------------- - -var vtkInteractorStyle$1 = { - newInstance, - extend, - ...vtkInteractorStyleConstants -}; - -export { vtkInteractorStyle$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/InteractorStyle/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/InteractorStyle/Constants.d.ts deleted file mode 100644 index 029a5400..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/InteractorStyle/Constants.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export declare enum States { - IS_START = 0, - IS_NONE = 0, - IS_ROTATE = 1, - IS_PAN = 2, - IS_SPIN = 3, - IS_DOLLY = 4, - IS_CAMERA_POSE = 11, - IS_WINDOW_LEVEL = 1024, - IS_SLICE = 1025, -} - -declare const _default: { - States: States; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/InteractorStyle/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/InteractorStyle/Constants.js deleted file mode 100644 index 35d188ff..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/InteractorStyle/Constants.js +++ /dev/null @@ -1,16 +0,0 @@ -const States = { - IS_START: 0, - IS_NONE: 0, - IS_ROTATE: 1, - IS_PAN: 2, - IS_SPIN: 3, - IS_DOLLY: 4, - IS_CAMERA_POSE: 11, - IS_WINDOW_LEVEL: 1024, - IS_SLICE: 1025 -}; -var vtkInteractorStyleConstants = { - States -}; - -export { States, vtkInteractorStyleConstants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Light.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Light.d.ts deleted file mode 100644 index ee069fcf..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Light.d.ts +++ /dev/null @@ -1,371 +0,0 @@ -import { mat4 } from 'gl-matrix'; -import { vtkObject } from './../../interfaces'; -import { RGBColor, Vector3 } from './../../types'; - -export enum LIGHT_TYPES { - 'HeadLight', - 'CameraLight', - 'SceneLight', -} - -export interface ILightInitialValues { - switch?: boolean; - intensity?: number; - color?: RGBColor; - position?: Vector3; - focalPoint?: Vector3; - positional?: boolean; - exponent?: number; - coneAngle?: number; - coneFalloff?: number; - attenuationValues?: number[]; - lightType?: LIGHT_TYPES; - shadowAttenuation?: number; - direction?: Vector3; - directionMTime?: number; -} - -export interface vtkLight extends vtkObject { - /** - * - */ - getAttenuationValues(): number[]; - - /** - * - */ - getAttenuationValuesByReference(): number[]; - - /** - * Get the color of the light. - */ - getColor(): RGBColor; - - /** - * Get the color of the light. - */ - getColorByReference(): RGBColor; - - /** - * Get the lighting cone angle of a positional light in degrees. - * This is the angle between the axis of the cone and a ray along the edge - * of the cone. A value of 90 (or more) indicates that you want no spot - * lighting effects just a positional light. - */ - getConeAngle(): number; - - /** - * Get the lighting falloff angle of a positional light in degrees. - * This is the angle that sets how much the cone will be extended to - * smooth the border. A value of 0 indicates that the spot light will - * have a completely sharp edge (this does not mean completely sharp - * lighting, just that the border will be sharp). - */ - getConeFalloff(): number; - - /** - * Set the position and focal point of a light based on elevation and azimuth. - * The light is moved so it is shining from the given angle. Angles are - * given in degrees. If the light is a positional light, it is made - * directional instead. - */ - getDirection(): Vector3; - - /** - * Get the exponent of the cosine used in positional lighting. - */ - getExponent(): number; - - /** - * Get the focal point. - */ - getFocalPoint(): Vector3; - - /** - * Get the focal point. - */ - getFocalPointByReference(): Vector3; - - /** - * Get the brightness of the light - */ - getIntensity(): number; - - /** - * Get the type of the light. - */ - getLightType(): string; - - /** - * Get the position of the light. - */ - getPosition(): Vector3; - - /** - * Get the position of the light. - */ - getPositionByReference(): Vector3; - - /** - * Get if positional lighting is on or off. - */ - getPositional(): boolean; - - /** - * Get the position of the light, modified by the transformation matrix (if - * it exists). - */ - getTransformedPosition(): Vector3; - - /** - * Get the focal point of the light, modified by the transformation matrix - * (if it exists). - */ - getTransformedFocalPoint(): Vector3; - - /** - * Set the quadratic attenuation constants. - * @param {Number} a - * @param {Number} b - * @param {Number} c - */ - setAttenuationValues(a: number, b: number, c: number): boolean; - - /** - * Set the quadratic attenuation constants from an array. - * @param {Number[]} attenuationValues The quadratic attenuation. - */ - setAttenuationValuesFrom(attenuationValues: number[]): boolean; - - /** - * Set the color of the object. Has the side effect of setting the - * ambient diffuse and specular colors as well. This is basically - * a quick overall color setting method. - * @param {Number} r Defines the red component (between 0 and 1). - * @param {Number} g Defines the green component (between 0 and 1). - * @param {Number} b Defines the blue component (between 0 and 1). - */ - setColor(r: number, g: number, b: number): boolean; - - /** - * Set the color of the object. Has the side effect of setting the - * ambient diffuse and specular colors as well. This is basically - * a quick overall color setting method. - * @param {RGBColor} color Defines the RGB color array.. - */ - setColor(color: RGBColor): boolean; - - /** - * Set the color of the object. Has the side effect of setting the - * ambient diffuse and specular colors as well. This is basically - * a quick overall color setting method. - * @param {Number} r Defines the red component (between 0 and 1). - * @param {Number} g Defines the green component (between 0 and 1). - * @param {Number} b Defines the blue component (between 0 and 1). - */ - setColorFrom(r: number, g: number, b: number): boolean; - - /** - * Set the color of the object. Has the side effect of setting the - * ambient diffuse and specular colors as well. This is basically - * a quick overall color setting method. - * @param {RGBColor} color Defines the RGB color array.. - */ - setColorFrom(color: RGBColor): boolean; - - /** - * Set the lighting cone angle of a positional light in degrees. - * This is the angle between the axis of the cone and a ray along the edge - * of the cone. - * A value of 90 (or more) indicates that you want no spot lighting effects - * just a positional light. - * @param {Number} coneAngle The cone angle. - */ - setConeAngle(coneAngle: number): boolean; - - /** - * Set the lighting falloff angle of a positional light in degrees. - * This is the angle that sets how much the cone will be extended to - * smooth the border. A value of 0 indicates that the spot light will - * have a completely sharp edge (this does not mean completely sharp - * lighting, just that the border will be sharp). - * @param {Number} coneFalloff The cone falloff angle. - */ - setConeFalloff(coneFalloff: number): boolean; - - /** - * Set the position and focal point of a light based on elevation and - * azimuth. The light is moved so it is shining from the given angle. Angles - * are given in degrees. If the light is a positional light, it is made - * directional instead. - * @param {Number} elevation - * @param {Number} azimuth - */ - setDirectionAngle(elevation: number, azimuth: number): boolean; - - /** - * Set the direction vector of the light from X, Y, and Z values - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setDirection(x: number, y: number, z: number): boolean; - - /** - * Set the direction vector of the light from X, Y, and Z values - * @param {Vector3} direction - */ - setDirection(direction: Vector3): boolean; - - /** - * Set the exponent of the cosine used in positional lighting. - * @param {Number} exponent The exponent of the cosine. - */ - setExponent(exponent: number): boolean; - - /** - * Set the focal point. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setFocalPoint(x: number, y: number, z: number): boolean; - - /** - * Set the focal point from an array - * @param {Vector3} focalPoint The focal point array. - */ - setFocalPointFrom(focalPoint: Vector3): boolean; - - /** - * Set the brightness of the light (from one to zero). - * @param {Number} intensity - */ - setIntensity(intensity: number): boolean; - - /** - * Set the type of the light to lightType - * @param {LIGHT_TYPES} lightType The light type. - */ - setLightType(lightType: LIGHT_TYPES): boolean; - - /** - * Set the type of the light is CameraLight. - */ - setLightTypeToCameraLight(): boolean; - - /** - * Set the the type of the light is HeadLight. - */ - setLightTypeToHeadLight(): boolean; - - /** - * Set the the type of the light is SceneLight. - */ - setLightTypeToSceneLight(): boolean; - - /** - * Check if the type of the light is CameraLight. - */ - lightTypeIsCameraLight(): boolean; - - /** - * Check if the type of the light is HeadLight. - */ - lightTypeIsHeadLight(): boolean; - - /** - * Check if the type of the light is SceneLight. - */ - lightTypeIsSceneLight(): boolean; - - /** - * Set the position of the light. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setPosition(x: number, y: number, z: number): boolean; - - /** - * Set the position of the light. - * @param {Vector3} position The position coordinate of the light. - */ - setPositionFrom(position: Vector3): boolean; - - /** - * Turn positional lighting on or off. - * @param {Boolean} positional The positional value. - */ - setPositional(positional: boolean): boolean; - - /** - * Set the shadow intensity By default a light will be completely blocked - * when in shadow by setting this value to less than 1.0 you can control how - * much light is attenuated when in shadow. - * @param {Number} shadowAttenuation The shadow attenuation value. - */ - setShadowAttenuation(shadowAttenuation: number): boolean; - - /** - * Turn the light on or off. - * @param {Boolean} switchValue The switch value. - */ - setSwitch(switchValue: boolean): boolean; - - /** - * Set the light's transformation matrix. - * @param {mat4} transformMatrix The transform matrix. - */ - setTransformMatrix(transformMatrix: mat4): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkLight characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ILightInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ILightInitialValues -): void; - -/** - * Method use to create a new instance of vtkLight with the focal point at the origin and its position - * set to [0, 0, 1]. The light is a SceneLight, its color is white, intensity=1, the light is turned on, - * positional lighting is off, coneAngle=30, coneFalloff=5, AttenuationValues=[1, 0, 0], exponent=1 and the transformMatrix is null. - * @param {ILightInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: ILightInitialValues): vtkLight; - -/** - * vtkLight is a virtual light for 3D rendering. It provides methods to locate - * and point the light, turn it on and off, and set its brightness and color. - * In addition to the basic infinite distance point light source attributes, - * you also can specify the light attenuation values and cone angle. - * These attributes are only used if the light is a positional light. - * The default is a directional light (e.g. infinite point light source). - * - * Lights have a type that describes how the light should move with respect - * to the camera. A Headlight is always located at the current camera position - * and shines on the camera’s focal point. A CameraLight also moves with - * the camera, but may not be coincident to it. CameraLights are defined - * in a normalized coordinate space where the camera is located at (0, 0, 1), - * the camera is looking at (0, 0, 0), and up is (0, 1, 0). Finally, a - * SceneLight is part of the scene itself and does not move with the camera. - * (Renderers are responsible for moving the light based on its type.) - * - * Lights have a transformation matrix that describes the space in which - * they are positioned. A light’s world space position and focal point - * are defined by their local position and focal point, transformed by - * their transformation matrix (if it exists). - */ -export declare const vtkLight: { - newInstance: typeof newInstance; - extend: typeof extend; - LIGHT_TYPES: LIGHT_TYPES; -}; -export default vtkLight; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Light.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Light.js deleted file mode 100644 index ce7e2b8b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Light.js +++ /dev/null @@ -1,119 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { l as normalize, r as radiansFromDegrees } from '../../Common/Core/Math/index.js'; -import { vec3 } from 'gl-matrix'; - -// ---------------------------------------------------------------------------- - -const LIGHT_TYPES = ['HeadLight', 'CameraLight', 'SceneLight']; - -// ---------------------------------------------------------------------------- -// vtkLight methods -// ---------------------------------------------------------------------------- - -function vtkLight(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkLight'); - const tmpVec = new Float64Array(3); - publicAPI.getTransformedPosition = () => { - if (model.transformMatrix) { - vec3.transformMat4(tmpVec, model.position, model.transformMatrix); - } else { - vec3.set(tmpVec, model.position[0], model.position[1], model.position[2]); - } - return tmpVec; - }; - publicAPI.getTransformedFocalPoint = () => { - if (model.transformMatrix) { - vec3.transformMat4(tmpVec, model.focalPoint, model.transformMatrix); - } else { - vec3.set(tmpVec, model.focalPoint[0], model.focalPoint[1], model.focalPoint[2]); - } - return tmpVec; - }; - publicAPI.getDirection = () => { - if (model.directionMTime < model.mtime) { - vec3.sub(model.direction, model.focalPoint, model.position); - normalize(model.direction); - model.directionMTime = model.mtime; - } - return model.direction; - }; - - // Sets the direction from a vec3 instead of a focal point - publicAPI.setDirection = directionVector => { - const newFocalPoint = new Float64Array(3); - vec3.sub(newFocalPoint, model.position, directionVector); - model.focalPoint = newFocalPoint; - }; - publicAPI.setDirectionAngle = (elevation, azimuth) => { - const elevationRadians = radiansFromDegrees(elevation); - const azimuthRadians = radiansFromDegrees(azimuth); - publicAPI.setPosition(Math.cos(elevationRadians) * Math.sin(azimuthRadians), Math.sin(elevationRadians), Math.cos(elevationRadians) * Math.cos(azimuthRadians)); - publicAPI.setFocalPoint(0, 0, 0); - publicAPI.setPositional(0); - }; - publicAPI.setLightTypeToHeadLight = () => { - publicAPI.setLightType('HeadLight'); - }; - publicAPI.setLightTypeToCameraLight = () => { - publicAPI.setLightType('CameraLight'); - }; - publicAPI.setLightTypeToSceneLight = () => { - publicAPI.setTransformMatrix(null); - publicAPI.setLightType('SceneLight'); - }; - publicAPI.lightTypeIsHeadLight = () => model.lightType === 'HeadLight'; - publicAPI.lightTypeIsSceneLight = () => model.lightType === 'SceneLight'; - publicAPI.lightTypeIsCameraLight = () => model.lightType === 'CameraLight'; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - switch: true, - intensity: 1, - color: [1, 1, 1], - position: [0, 0, 1], - focalPoint: [0, 0, 0], - positional: false, - exponent: 1, - coneAngle: 30, - coneFalloff: 5, - attenuationValues: [1, 0, 0], - transformMatrix: null, - lightType: 'SceneLight', - shadowAttenuation: 1, - direction: [0, 0, 0], - directionMTime: 0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['intensity', 'switch', 'positional', 'exponent', 'coneAngle', 'coneFalloff', 'transformMatrix', 'lightType', 'shadowAttenuation', 'attenuationValues']); - macro.setGetArray(publicAPI, model, ['color', 'position', 'focalPoint', 'attenuationValues'], 3); - - // Object methods - vtkLight(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkLight'); - -// ---------------------------------------------------------------------------- - -var vtkLight$1 = { - newInstance, - extend, - LIGHT_TYPES -}; - -export { LIGHT_TYPES, vtkLight$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper.d.ts deleted file mode 100644 index cb13647a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper.d.ts +++ /dev/null @@ -1,531 +0,0 @@ -import { Bounds, Nullable, Range } from './../../types'; -import { - vtkAbstractMapper3D, - IAbstractMapper3DInitialValues, -} from './AbstractMapper3D'; -import { ColorMode, GetArray, ScalarMode } from './Mapper/Constants'; -import { vtkDataArray } from './../../Common/Core/DataArray'; -import { - CoincidentTopologyHelper, - StaticCoincidentTopologyMethods, -} from './Mapper/CoincidentTopologyHelper'; - -interface IPrimitiveCount { - points: number; - verts: number; - lines: number; - triangles: number; -} - -interface IAbstractScalars { - cellFlag: boolean; - scalars: Nullable; -} - -export interface IMapperInitialValues extends IAbstractMapper3DInitialValues { - static?: boolean; - scalarVisibility?: boolean; - scalarRange?: Range; - useLookupTableScalarRange?: boolean; - colorMode?: number; - scalarMode?: number; - arrayAccessMode?: number; - renderTime?: number; - fieldDataTupleId?: number; - interpolateScalarsBeforeMapping?: boolean; - forceCompileOnly?: number; - useInvertibleColors?: boolean; - customShaderAttributes?: any; -} - -export interface vtkMapper - extends vtkAbstractMapper3D, - CoincidentTopologyHelper { - /** - * - */ - acquireInvertibleLookupTable(): void; - - /** - * Returns if we can use texture maps for scalar coloring. Note this doesn’t - * say we “will” use scalar coloring. It says, if we do use scalar coloring, - * we will use a texture. - * When rendering multiblock datasets, if any 2 blocks provide different - * lookup tables for the scalars, then also we cannot use textures. This case - * can be handled if required. - * @param scalars - * @param cellFlag True when the scalars are per cell instead of per point - */ - canUseTextureMapForColoring( - scalars: vtkDataArray, - cellFlag: boolean - ): boolean; - - /** - * Call to force a rebuild of color result arrays on next MapScalars. - * Necessary when using arrays in the case of multiblock data. - */ - clearColorArrays(): void; - - /** - * - */ - clearInvertibleColor(): void; - - /** - * - */ - colorToValue(): void; - - /** - * Create default lookup table. Generally used to create one when - * none is available with the scalar data. - */ - createDefaultLookupTable(): void; - - /** - * - * @param input - * @param {ScalarMode} scalarMode - * @param arrayAccessMode - * @param arrayId - * @param arrayName - */ - getAbstractScalars( - input: any, - scalarMode: ScalarMode, - arrayAccessMode: number, - arrayId: any, - arrayName: any - ): IAbstractScalars; - - /** - * When scalars are mapped from cells, - * there is one color coordinate per cell instead of one per point - * in the vtkDataArray getColorCoordinates(). - * It means that when getAreScalarsMappedFromCells() is true, - * the number of tuples in getColorCoordinates() is the number of points, - * and when getAreScalarsMappedFromCells() is false, - * the number of tuples in getColorCoordinates() is the number of cells. - */ - getAreScalarsMappedFromCells(): boolean; - - /** - * - */ - getArrayAccessMode(): number; - - /** - * Get the bounds for this mapper as [xmin, xmax, ymin, ymax,zmin, zmax]. - * @return {Bounds} The bounds for the mapper. - */ - getBounds(): Bounds; - - /** - * Get the array name to color by. - */ - getColorByArrayName(): Nullable; - - /** - * Provide read access to the color texture coordinate array - */ - getColorCoordinates(): Nullable; - - /** - * Provide read access to the color array. - */ - getColorMapColors(): Nullable; - - /** - * Return the method of coloring scalar data. - */ - getColorMode(): ColorMode; - - /** - * Return the method of coloring scalar data. - */ - getColorModeAsString(): string; - - /** - * Provide read access to the color texture array - * @todo Check the retun type - */ - getColorTextureMap(): any; - - /** - * - * @default [] - */ - getCustomShaderAttributes(): any; - - /** - * - * @default -1 - */ - getFieldDataTupleId(): any; - - /** - * By default, vertex color is used to map colors to a surface. - * Colors are interpolated after being mapped. - * This option avoids color interpolation by using a one dimensional - * texture map for the colors. - * @default false - */ - getInterpolateScalarsBeforeMapping(): boolean; - - /** - * Check if the mapper does not expect to have translucent geometry. This - * may happen when using ColorMode is set to not map scalars i.e. render the - * scalar array directly as colors and the scalar array has opacity i.e. alpha - * component. Default implementation simply returns true. Note that even if - * this method returns true, an actor may treat the geometry as translucent - * since a constant translucency is set on the property, for example. - */ - getIsOpaque(): boolean; - - /** - * Get a lookup table for the mapper to use. - */ - getLookupTable(): any; - - /** - * - */ - getPrimitiveCount(): IPrimitiveCount; - - /** - * Return the method for obtaining scalar data. - */ - getScalarMode(): number; - - /** - * Return the method for obtaining scalar data. - */ - getScalarModeAsString(): string; - - /** - * - * @default [0, 1] - */ - getScalarRange(): number[]; - - /** - * - * @default [0, 1] - */ - getScalarRangeByReference(): number[]; - - /** - * Check whether scalar data is used to color objects. - * @default true - */ - getScalarVisibility(): boolean; - - /** - * Check whether the mapper’s data is static. - * @default false - */ - getStatic(): boolean; - - /** - * - * @default false - */ - getUseLookupTableScalarRange(): boolean; - - /** - * - * @default null - */ - getViewSpecificProperties(): object; - - /** - * The number of mapped colors in range - */ - getNumberOfColorsInRange(): number; - - /** - * Map the scalars (if there are any scalars and ScalarVisibility is on) - * through the lookup table, returning an unsigned char RGBA array. This is - * typically done as part of the rendering process. The alpha parameter - * allows the blending of the scalars with an additional alpha (typically - * which comes from a vtkActor, etc.) - * { - * rgba: Uint8Array(), - * location: 0/1/2, // Points/Cells/Fields - * } - * @param input - * @param {Number} alpha - */ - mapScalars(input: any, alpha: number): void; - - /** - * - * @param {Number} arrayAccessMode - */ - setArrayAccessMode(arrayAccessMode: number): boolean; - - /** - * Set the array name to color by. - * @param {String} colorByArrayName - */ - setColorByArrayName(colorByArrayName: string): boolean; - - /** - * - * @param {Number} colorMode - */ - setColorMode(colorMode: number): boolean; - - /** - * Sets colorMode to `DEFAULT` - */ - setColorModeToDefault(): boolean; - - /** - * Sets colorMode to `MAP_SCALARS` - */ - setColorModeToMapScalars(): boolean; - - /** - * Sets colorMode to `DIRECT_SCALARS` - */ - setColorModeToDirectScalars(): boolean; - - /** - * Sets point data array names that will be transferred to the VBO - * @param {String[]} customShaderAttributes - */ - setCustomShaderAttributes(customShaderAttributes: string[]): boolean; - - /** - * When ScalarMode is set to UseFieldData, set the index of the - * tuple by which to color the entire data set. By default, the - * index is -1, which means to treat the field data array selected - * with SelectColorArray as having a scalar value for each cell. - * Indices of 0 or higher mean to use the tuple at the given index - * for coloring the entire data set. - * @param {Number} fieldDataTupleI - * @default -1 - */ - setFieldDataTupleId(fieldDataTupleI: number): boolean; - - /** - * - * @param {Number} forceCompileOnly - * @default 0 - */ - setForceCompileOnly(forceCompileOnly: number): boolean; - - /** - * Set a lookup table for the mapper to use. - */ - setLookupTable(lookupTable: any): boolean; - - /** - * Control how the filter works with scalar point data and cell attribute - * data. By default (ScalarModeToDefault), the filter will use point data, - * and if no point data is available, then cell data is used. Alternatively - * you can explicitly set the filter to use point data - * (ScalarModeToUsePointData) or cell data (ScalarModeToUseCellData). - * You can also choose to get the scalars from an array in point field - * data (ScalarModeToUsePointFieldData) or cell field data - * (ScalarModeToUseCellFieldData). If scalars are coming from a field - * data array, you must call SelectColorArray before you call GetColors. - * - * When ScalarMode is set to use Field Data (ScalarModeToFieldData), - * you must call SelectColorArray to choose the field data array to - * be used to color cells. In this mode, the default behavior is to - * treat the field data tuples as being associated with cells. If - * the poly data contains triangle strips, the array is expected to - * contain the cell data for each mini-cell formed by any triangle - * strips in the poly data as opposed to treating them as a single - * tuple that applies to the entire strip. This mode can also be - * used to color the entire poly data by a single color obtained by - * mapping the tuple at a given index in the field data array - * through the color map. Use SetFieldDataTupleId() to specify - * the tuple index. - * - * @param scalarMode - */ - setScalarMode(scalarMode: number): boolean; - - /** - * Sets scalarMode to DEFAULT - */ - setScalarModeToDefault(): boolean; - - /** - * Sets scalarMode to USE_CELL_DATA - */ - setScalarModeToUseCellData(): boolean; - - /** - * Sets scalarMode to USE_CELL_FIELD_DATA - */ - setScalarModeToUseCellFieldData(): boolean; - - /** - * Sets scalarMode to USE_FIELD_DATA - */ - setScalarModeToUseFieldData(): boolean; - - /** - * Sets scalarMode to USE_POINT_DATA - */ - setScalarModeToUsePointData(): boolean; - - /** - * Sets scalarMode to USE_POINT_FIELD_DATA - */ - setScalarModeToUsePointFieldData(): boolean; - - /** - * Specify range in terms of scalar minimum and maximum (smin,smax). These - * values are used to map scalars into lookup table. Has no effect when - * UseLookupTableScalarRange is true. - * - * @param min - * @param max - * @default [0, 1] - */ - setScalarRange(min: number, max: number): boolean; - - /** - * Specify range in terms of scalar minimum and maximum (smin,smax). These - * values are used to map scalars into lookup table. Has no effect when - * UseLookupTableScalarRange is true. - * - * @param scalarRange - * @default [0, 1] - */ - setScalarRange(scalarRange: number[]): boolean; - - /** - * - * @param scalarRange - * @default [0, 1] - */ - setScalarRangeFrom(scalarRange: number[]): boolean; - - /** - * Turn on/off flag to control whether scalar data is used to color objects. - * @param {Boolean} scalarVisibility - * @default true - */ - setScalarVisibility(scalarVisibility: boolean): boolean; - - /** - * Turn on/off flag to control whether the mapper’s data is static. Static data - * means that the mapper does not propagate updates down the pipeline, greatly - * decreasing the time it takes to update many mappers. This should only be - * used if the data never changes. - * - * @param {Boolean} static - * @default false - */ - setStatic(static: boolean): boolean; - - /** - * Control whether the mapper sets the lookuptable range based on its - * own ScalarRange, or whether it will use the LookupTable ScalarRange - * regardless of it’s own setting. By default the Mapper is allowed to set - * the LookupTable range, but users who are sharing LookupTables between - * mappers/actors will probably wish to force the mapper to use the - * LookupTable unchanged. - * - * @param {Boolean} useLookupTableScalarRange - * @default false - */ - setUseLookupTableScalarRange(useLookupTableScalarRange: boolean): boolean; - - /** - * If you want to provide specific properties for rendering engines you can use - * viewSpecificProperties. - * - * You can go and have a look in the rendering backend of your choice for details - * on specific properties. - * For example, for OpenGL/WebGL see OpenGL/PolyDataMapper/api.md - * If there is no details, viewSpecificProperties is not supported. - * @param viewSpecificProperties - */ - setViewSpecificProperties(viewSpecificProperties: object): boolean; - - /** - * - */ - useInvertibleColorFor(): void; - - /** - * - */ - valueToColor(): void; - - /** - * - */ - setInterpolateScalarsBeforeMapping( - interpolateScalarsBeforeMapping: boolean - ): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkMapper characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IMapperInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IMapperInitialValues -): void; - -/** - * Method used to create a new instance of vtkMapper - * @param {IMapperInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: IMapperInitialValues): vtkMapper; - -/** - * vtkMapper is an abstract class to specify interface between data and - * graphics primitives. Subclasses of vtkMapper map data through a - * lookuptable and control the creation of rendering primitives that - * interface to the graphics library. The mapping can be controlled by - * supplying a lookup table and specifying a scalar range to map data - * through. - * - * There are several important control mechanisms affecting the behavior of - * this object. The ScalarVisibility flag controls whether scalar data (if - * any) controls the color of the associated actor(s) that refer to the - * mapper. The ScalarMode ivar is used to determine whether scalar point data - * or cell data is used to color the object. By default, point data scalars - * are used unless there are none, then cell scalars are used. Or you can - * explicitly control whether to use point or cell scalar data. Finally, the - * mapping of scalars through the lookup table varies depending on the - * setting of the ColorMode flag. See the documentation for the appropriate - * methods for an explanation. - * - * Another important feature of this class is whether to use immediate mode - * rendering (ImmediateModeRenderingOn) or display list rendering - * (ImmediateModeRenderingOff). If display lists are used, a data structure - * is constructed (generally in the rendering library) which can then be - * rapidly traversed and rendered by the rendering library. The disadvantage - * of display lists is that they require additional memory which may affect - * the performance of the system. - * - * Another important feature of the mapper is the ability to shift the - * Z-buffer to resolve coincident topology. For example, if you’d like to - * draw a mesh with some edges a different color, and the edges lie on the - * mesh, this feature can be useful to get nice looking lines. (See the - * ResolveCoincidentTopology-related methods.) - */ -export declare const vtkMapper: { - newInstance: typeof newInstance; - extend: typeof extend; - ColorMode: typeof ColorMode; - ScalarMode: typeof ScalarMode; - GetArray: typeof GetArray; -} & StaticCoincidentTopologyMethods; -export default vtkMapper; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper.js deleted file mode 100644 index 9410d867..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper.js +++ /dev/null @@ -1,674 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkAbstractMapper3D from './AbstractMapper3D.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkImageData from '../../Common/DataModel/ImageData.js'; -import vtkLookupTable from '../../Common/Core/LookupTable.js'; -import { I as createUninitializedBounds, i as isNan } from '../../Common/Core/Math/index.js'; -import vtkScalarsToColors from '../../Common/Core/ScalarsToColors/Constants.js'; -import CoincidentTopologyHelper from './Mapper/CoincidentTopologyHelper.js'; -import Constants from './Mapper/Constants.js'; -import vtkDataSet from '../../Common/DataModel/DataSet.js'; -import { PassTypes } from '../OpenGL/HardwareSelector/Constants.js'; - -const { - FieldAssociations -} = vtkDataSet; -const { - staticOffsetAPI, - otherStaticMethods -} = CoincidentTopologyHelper; -const { - ColorMode, - ScalarMode, - GetArray -} = Constants; -const { - VectorMode -} = vtkScalarsToColors; -const { - VtkDataTypes -} = vtkDataArray; - -// ---------------------------------------------------------------------------- - -function notImplemented(method) { - return () => macro.vtkErrorMacro(`vtkMapper::${method} - NOT IMPLEMENTED`); -} - -/** - * Increase by one the 3D coordinates - * It will follow a zigzag pattern so that each coordinate is the neighbor of the next coordinate - * This enables interpolation between two texels without issues - * Note: texture coordinates can't be interpolated using this pattern - * @param {vec3} coordinates The 3D coordinates using integers for each coorinate - * @param {vec3} dimensions The 3D dimensions of the volume - */ -function updateZigzaggingCoordinates(coordinates, dimensions) { - const directionX = coordinates[1] % 2 === 0 ? 1 : -1; - coordinates[0] += directionX; - if (coordinates[0] >= dimensions[0] || coordinates[0] < 0) { - const directionY = coordinates[2] % 2 === 0 ? 1 : -1; - coordinates[0] -= directionX; - coordinates[1] += directionY; - if (coordinates[1] >= dimensions[1] || coordinates[1] < 0) { - coordinates[1] -= directionY; - coordinates[2]++; - } - } -} - -/** - * Returns the index in the array representing the volume from a 3D coordinate - * @param {vec3} coordinates The 3D integer coordinates - * @param {vec3} dimensions The 3D dimensions of the volume - * @returns The index in a flat array representing the volume - */ -function getIndexFromCoordinates(coordinates, dimensions) { - return coordinates[0] + dimensions[0] * (coordinates[1] + dimensions[1] * coordinates[2]); -} - -/** - * Write texture coordinates for the given `texelIndexPosition` in `textureCoordinate`. - * The `texelIndexPosition` is a floating point number that represents the distance in index space - * from the center of the first texel to the final output position. - * The output is given in texture coordinates and not in index coordinates (this is done at the very end of the function) - * @param {vec3} textureCoordinate The output texture coordinates (to avoid allocating a new Array) - * @param {Number} texelIndexPosition The floating point distance from the center of the first texel, following a zigzag pattern - * @param {vec3} dimensions The 3D dimensions of the volume - */ -function getZigZagTextureCoordinatesFromTexelPosition(textureCoordinate, texelIndexPosition, dimensions) { - // First compute the integer textureCoordinate - const intTexelIndex = Math.floor(texelIndexPosition); - const xCoordBeforeWrap = intTexelIndex % (2 * dimensions[0]); - let xDirection; - let xEndFlag; - if (xCoordBeforeWrap < dimensions[0]) { - textureCoordinate[0] = xCoordBeforeWrap; - xDirection = 1; - xEndFlag = textureCoordinate[0] === dimensions[0] - 1; - } else { - textureCoordinate[0] = 2 * dimensions[0] - 1 - xCoordBeforeWrap; - xDirection = -1; - xEndFlag = textureCoordinate[0] === 0; - } - const intRowIndex = Math.floor(intTexelIndex / dimensions[0]); - const yCoordBeforeWrap = intRowIndex % (2 * dimensions[1]); - let yDirection; - let yEndFlag; - if (yCoordBeforeWrap < dimensions[1]) { - textureCoordinate[1] = yCoordBeforeWrap; - yDirection = 1; - yEndFlag = textureCoordinate[1] === dimensions[1] - 1; - } else { - textureCoordinate[1] = 2 * dimensions[1] - 1 - yCoordBeforeWrap; - yDirection = -1; - yEndFlag = textureCoordinate[1] === 0; - } - textureCoordinate[2] = Math.floor(intRowIndex / dimensions[1]); - - // Now add the remainder either in x, y or z - const remainder = texelIndexPosition - intTexelIndex; - if (xEndFlag) { - if (yEndFlag) { - textureCoordinate[2] += remainder; - } else { - textureCoordinate[1] += yDirection * remainder; - } - } else { - textureCoordinate[0] += xDirection * remainder; - } - - // textureCoordinates are in index space, convert to texture space - textureCoordinate[0] = (textureCoordinate[0] + 0.5) / dimensions[0]; - textureCoordinate[1] = (textureCoordinate[1] + 0.5) / dimensions[1]; - textureCoordinate[2] = (textureCoordinate[2] + 0.5) / dimensions[2]; -} - -// Associate an input vtkDataArray to an object { stringHash, textureCoordinates } -// A single dataArray only caches one array of texture coordinates, so this cache is useless when -// the input data array is used with two different lookup tables (which is very unlikely) -const colorTextureCoordinatesCache = new WeakMap(); -/** - * The minimum of the range is mapped to the center of the first texel excluding min texel (texel at index distance 1) - * The maximum of the range is mapped to the center of the last texel excluding max and NaN texels (texel at index distance numberOfColorsInRange) - * The result is cached, and is reused if the arguments are the same and the input doesn't change - * @param {vtkDataArray} input The input data array used for coloring - * @param {Number} component The component of the input data array that is used for coloring (-1 for magnitude of the vectors) - * @param {Range} range The range of the scalars - * @param {boolean} useLogScale Should the values be transformed to logarithmic scale. When true, the range must already be in logarithmic scale. - * @param {Number} numberOfColorsInRange The number of colors that are used in the range - * @param {vec3} dimensions The dimensions of the texture - * @param {boolean} useZigzagPattern If a zigzag pattern should be used. Otherwise 1 row for colors (including min and max) and 1 row for NaN are used. - * @returns A vtkDataArray containing the texture coordinates (2D or 3D) - */ -function getOrCreateColorTextureCoordinates(input, component, range, useLogScale, numberOfColorsInRange, dimensions, useZigzagPattern) { - // Caching using the "arguments" special object (because it is a pure function) - const argStrings = new Array(arguments.length); - for (let argIndex = 0; argIndex < arguments.length; ++argIndex) { - // eslint-disable-next-line prefer-rest-params - const arg = arguments[argIndex]; - argStrings[argIndex] = arg.getMTime?.() ?? arg; - } - const stringHash = argStrings.join('/'); - const cachedResult = colorTextureCoordinatesCache.get(input); - if (cachedResult && cachedResult.stringHash === stringHash) { - return cachedResult.textureCoordinates; - } - - // The range used for computing coordinates have to change - // slightly to accommodate the special above- and below-range - // colors that are the first and last texels, respectively. - const scalarTexelWidth = (range[1] - range[0]) / (numberOfColorsInRange - 1); - const [paddedRangeMin, paddedRangeMax] = [range[0] - scalarTexelWidth, range[1] + scalarTexelWidth]; - - // Use the center of the voxel - const textureSOrigin = paddedRangeMin - 0.5 * scalarTexelWidth; - const textureSCoeff = 1.0 / (paddedRangeMax - paddedRangeMin + scalarTexelWidth); - - // Compute in index space first - const texelIndexOrigin = paddedRangeMin; - const texelIndexCoeff = (numberOfColorsInRange + 1) / (paddedRangeMax - paddedRangeMin); - const inputV = input.getData(); - const numScalars = input.getNumberOfTuples(); - const numComps = input.getNumberOfComponents(); - const useMagnitude = component < 0 || component >= numComps; - const numberOfOutputComponents = dimensions[2] <= 1 ? 2 : 3; - const output = vtkDataArray.newInstance({ - numberOfComponents: numberOfOutputComponents, - values: new Float32Array(numScalars * numberOfOutputComponents) - }); - const outputV = output.getData(); - const nanTextureCoordinate = [0, 0, 0]; - // Distance of NaN from the beginning: - // min: 0, ...colorsInRange, max: numberOfColorsInRange + 1, NaN = numberOfColorsInRange + 2 - getZigZagTextureCoordinatesFromTexelPosition(nanTextureCoordinate, numberOfColorsInRange + 2, dimensions); - - // Set a texture coordinate in the output for each tuple in the input - let inputIdx = 0; - let outputIdx = 0; - const textureCoordinate = [0.5, 0.5, 0.5]; - for (let scalarIdx = 0; scalarIdx < numScalars; ++scalarIdx) { - // Get scalar value from magnitude or a single component - let scalarValue; - if (useMagnitude) { - let sum = 0; - for (let compIdx = 0; compIdx < numComps; ++compIdx) { - const compValue = Number(inputV[inputIdx + compIdx]); - sum += compValue * compValue; - } - scalarValue = Math.sqrt(sum); - } else { - scalarValue = Number(inputV[inputIdx + component]); - } - if (useLogScale) { - scalarValue = Math.log10(scalarValue); - } - inputIdx += numComps; - - // Convert to texture coordinates and update output - if (isNan(scalarValue)) { - // Last texels are NaN colors (there is at least one NaN color) - textureCoordinate[0] = nanTextureCoordinate[0]; - textureCoordinate[1] = nanTextureCoordinate[1]; - textureCoordinate[2] = nanTextureCoordinate[2]; - } else if (useZigzagPattern) { - // Texel position is in [0, numberOfColorsInRange + 1] - let texelIndexPosition = (scalarValue - texelIndexOrigin) * texelIndexCoeff; - if (texelIndexPosition < 1) { - // Use min color when smaller than range - texelIndexPosition = 0; - } else if (texelIndexPosition > numberOfColorsInRange) { - // Use max color when greater than range - texelIndexPosition = numberOfColorsInRange + 1; - } - - // Convert the texel position into texture coordinate following a zigzag pattern - getZigZagTextureCoordinatesFromTexelPosition(textureCoordinate, texelIndexPosition, dimensions); - } else { - // 0.0 in t coordinate means not NaN. So why am I setting it to 0.49? - // Because when you are mapping scalars and you have a NaN adjacent to - // anything else, the interpolation everywhere should be NaN. Thus, I - // want the NaN color everywhere except right on the non-NaN neighbors. - // To simulate this, I set the t coord for the real numbers close to - // the threshold so that the interpolation almost immediately looks up - // the NaN value. - textureCoordinate[1] = 0.49; - - // Some implementations apparently don't handle relatively large - // numbers (compared to the range [0.0, 1.0]) very well. In fact, - // values above 1122.0f appear to cause texture wrap-around on - // some systems even when edge clamping is enabled. Why 1122.0f? I - // don't know. For safety, we'll clamp at +/- 1000. This will - // result in incorrect images when the texture value should be - // above or below 1000, but I don't have a better solution. - const textureS = (scalarValue - textureSOrigin) * textureSCoeff; - if (textureS > 1000.0) { - textureCoordinate[0] = 1000.0; - } else if (textureS < -1000.0) { - textureCoordinate[0] = -1000.0; - } else { - textureCoordinate[0] = textureS; - } - } - for (let i = 0; i < numberOfOutputComponents; ++i) { - outputV[outputIdx++] = textureCoordinate[i]; - } - } - colorTextureCoordinatesCache.set(input, { - stringHash, - textureCoordinates: output - }); - return output; -} - -// ---------------------------------------------------------------------------- -// vtkMapper methods -// ---------------------------------------------------------------------------- - -function vtkMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkMapper'); - publicAPI.getBounds = () => { - const input = publicAPI.getInputData(); - if (!input) { - model.bounds = createUninitializedBounds(); - } else { - if (!model.static) { - publicAPI.update(); - } - model.bounds = input.getBounds(); - } - return model.bounds; - }; - publicAPI.setForceCompileOnly = v => { - model.forceCompileOnly = v; - // make sure we do NOT call modified() - }; - - publicAPI.setSelectionWebGLIdsToVTKIds = selectionWebGLIdsToVTKIds => { - model.selectionWebGLIdsToVTKIds = selectionWebGLIdsToVTKIds; - // make sure we do NOT call modified() - // this attribute is only used when processing a selection made with the hardware selector - // the mtime of the mapper doesn't need to be changed - }; - - publicAPI.createDefaultLookupTable = () => { - model.lookupTable = vtkLookupTable.newInstance(); - }; - publicAPI.getColorModeAsString = () => macro.enumToString(ColorMode, model.colorMode); - publicAPI.setColorModeToDefault = () => publicAPI.setColorMode(0); - publicAPI.setColorModeToMapScalars = () => publicAPI.setColorMode(1); - publicAPI.setColorModeToDirectScalars = () => publicAPI.setColorMode(2); - publicAPI.getScalarModeAsString = () => macro.enumToString(ScalarMode, model.scalarMode); - publicAPI.setScalarModeToDefault = () => publicAPI.setScalarMode(0); - publicAPI.setScalarModeToUsePointData = () => publicAPI.setScalarMode(1); - publicAPI.setScalarModeToUseCellData = () => publicAPI.setScalarMode(2); - publicAPI.setScalarModeToUsePointFieldData = () => publicAPI.setScalarMode(3); - publicAPI.setScalarModeToUseCellFieldData = () => publicAPI.setScalarMode(4); - publicAPI.setScalarModeToUseFieldData = () => publicAPI.setScalarMode(5); - publicAPI.getAbstractScalars = (input, scalarMode, arrayAccessMode, arrayId, arrayName) => { - // make sure we have an input - if (!input || !model.scalarVisibility) { - return { - scalars: null, - cellFlag: false - }; - } - let scalars = null; - let cellFlag = false; - - // get and scalar data according to scalar mode - if (scalarMode === ScalarMode.DEFAULT) { - scalars = input.getPointData().getScalars(); - if (!scalars) { - scalars = input.getCellData().getScalars(); - cellFlag = true; - } - } else if (scalarMode === ScalarMode.USE_POINT_DATA) { - scalars = input.getPointData().getScalars(); - } else if (scalarMode === ScalarMode.USE_CELL_DATA) { - scalars = input.getCellData().getScalars(); - cellFlag = true; - } else if (scalarMode === ScalarMode.USE_POINT_FIELD_DATA) { - const pd = input.getPointData(); - if (arrayAccessMode === GetArray.BY_ID) { - scalars = pd.getArrayByIndex(arrayId); - } else { - scalars = pd.getArrayByName(arrayName); - } - } else if (scalarMode === ScalarMode.USE_CELL_FIELD_DATA) { - const cd = input.getCellData(); - cellFlag = true; - if (arrayAccessMode === GetArray.BY_ID) { - scalars = cd.getArrayByIndex(arrayId); - } else { - scalars = cd.getArrayByName(arrayName); - } - } else if (scalarMode === ScalarMode.USE_FIELD_DATA) { - const fd = input.getFieldData(); - if (arrayAccessMode === GetArray.BY_ID) { - scalars = fd.getArrayByIndex(arrayId); - } else { - scalars = fd.getArrayByName(arrayName); - } - } - return { - scalars, - cellFlag - }; - }; - publicAPI.mapScalars = (input, alpha) => { - const { - scalars, - cellFlag - } = publicAPI.getAbstractScalars(input, model.scalarMode, model.arrayAccessMode, model.arrayId, model.colorByArrayName); - model.areScalarsMappedFromCells = cellFlag; - if (!scalars) { - model.colorCoordinates = null; - model.colorTextureMap = null; - model.colorMapColors = null; - return; - } - - // we want to only recompute when something has changed - const toString = `${publicAPI.getMTime()}${scalars.getMTime()}${alpha}`; - if (model.colorBuildString === toString) return; - if (!model.useLookupTableScalarRange) { - publicAPI.getLookupTable().setRange(model.scalarRange[0], model.scalarRange[1]); - } - - // Decide between texture color or vertex color. - // Cell data always uses vertex color. - // Only point data can use both texture and vertex coloring. - if (publicAPI.canUseTextureMapForColoring(scalars, cellFlag)) { - model.mapScalarsToTexture(scalars, cellFlag, alpha); - } else { - model.colorCoordinates = null; - model.colorTextureMap = null; - const lut = publicAPI.getLookupTable(); - if (lut) { - // Ensure that the lookup table is built - lut.build(); - model.colorMapColors = lut.mapScalars(scalars, model.colorMode, model.fieldDataTupleId); - } - } - model.colorBuildString = `${publicAPI.getMTime()}${scalars.getMTime()}${alpha}`; - }; - - // Protected method - model.mapScalarsToTexture = (scalars, cellFlag, alpha) => { - const range = model.lookupTable.getRange(); - const useLogScale = model.lookupTable.usingLogScale(); - const origAlpha = model.lookupTable.getAlpha(); - const scaledRange = useLogScale ? [Math.log10(range[0]), Math.log10(range[1])] : range; - - // Get rid of vertex color array. Only texture or vertex coloring - // can be active at one time. The existence of the array is the - // signal to use that technique. - model.colorMapColors = null; - - // If the lookup table has changed, then recreate the color texture map. - // Set a new lookup table changes this->MTime. - if (model.colorTextureMap == null || publicAPI.getMTime() > model.colorTextureMap.getMTime() || model.lookupTable.getMTime() > model.colorTextureMap.getMTime() || model.lookupTable.getAlpha() !== alpha) { - model.lookupTable.setAlpha(alpha); - model.colorTextureMap = null; - - // Get the texture map from the lookup table. - // Create a dummy ramp of scalars. - // In the future, we could extend vtkScalarsToColors. - model.lookupTable.build(); - const numberOfAvailableColors = model.lookupTable.getNumberOfAvailableColors(); - - // Maximum dimensions and number of colors in range - const maxTextureWidthForCells = 2048; - const maxColorsInRangeForCells = maxTextureWidthForCells ** 3 - 3; // 3D but keep a color for min, max and NaN - const maxTextureWidthForPoints = 4096; - const maxColorsInRangeForPoints = maxTextureWidthForPoints - 2; // 1D but keep a color for min and max (NaN is in a different row) - // Minimum number of colors in range (excluding special colors like minColor, maxColor and NaNColor) - const minColorsInRange = 2; - // Maximum number of colors, limited by the maximum possible texture size - const maxColorsInRange = cellFlag ? maxColorsInRangeForCells : maxColorsInRangeForPoints; - model.numberOfColorsInRange = Math.min(Math.max(numberOfAvailableColors, minColorsInRange), maxColorsInRange); - const numberOfColorsForCells = model.numberOfColorsInRange + 3; // Add min, max and NaN - const numberOfColorsInUpperRowForPoints = model.numberOfColorsInRange + 2; // Add min and max ; the lower row will be used for NaN color - const textureDimensions = cellFlag ? [Math.min(Math.ceil(numberOfColorsForCells / maxTextureWidthForCells ** 0), maxTextureWidthForCells), Math.min(Math.ceil(numberOfColorsForCells / maxTextureWidthForCells ** 1), maxTextureWidthForCells), Math.min(Math.ceil(numberOfColorsForCells / maxTextureWidthForCells ** 2), maxTextureWidthForCells)] : [numberOfColorsInUpperRowForPoints, 2, 1]; - const textureSize = textureDimensions[0] * textureDimensions[1] * textureDimensions[2]; - const scalarsArray = new Float64Array(textureSize); - - // Colors for NaN by default - scalarsArray.fill(NaN); - - // Colors in range - // Add 2 to also get color for min and max - const numberOfNonSpecialColors = model.numberOfColorsInRange; - const numberOfNonNaNColors = numberOfNonSpecialColors + 2; - const textureCoordinates = [0, 0, 0]; - const rangeMin = scaledRange[0]; - const rangeDifference = scaledRange[1] - scaledRange[0]; - for (let i = 0; i < numberOfNonNaNColors; ++i) { - const scalarsArrayIndex = getIndexFromCoordinates(textureCoordinates, textureDimensions); - - // Minus 1 start at min color - const intermediateValue = rangeMin + rangeDifference * (i - 1) / (numberOfNonSpecialColors - 1); - const scalarValue = useLogScale ? 10.0 ** intermediateValue : intermediateValue; - scalarsArray[scalarsArrayIndex] = scalarValue; - - // Colors are zigzagging to allow interpolation between two neighbor colors when coloring cells - updateZigzaggingCoordinates(textureCoordinates, textureDimensions); - } - const scalarsDataArray = vtkDataArray.newInstance({ - numberOfComponents: 1, - values: scalarsArray - }); - const colorsDataArray = model.lookupTable.mapScalars(scalarsDataArray, model.colorMode, 0); - model.colorTextureMap = vtkImageData.newInstance(); - model.colorTextureMap.setDimensions(textureDimensions); - model.colorTextureMap.getPointData().setScalars(colorsDataArray); - model.lookupTable.setAlpha(origAlpha); - } - - // Although I like the feature of applying magnitude to single component - // scalars, it is not how the old MapScalars for vertex coloring works. - const scalarComponent = model.lookupTable.getVectorMode() === VectorMode.MAGNITUDE && scalars.getNumberOfComponents() > 1 ? -1 : model.lookupTable.getVectorComponent(); - - // Create new coordinates if necessary, this function uses cache if possible. - // A zigzag pattern can't be used with point data, as interpolation of texture coordinates will be wrong - // A zigzag pattern can be used with cell data, as there will be no texture coordinates interpolation - // The texture generated using a zigzag pattern in one dimension is the same as without zigzag - // Therefore, the same code can be used for texture generation of point/cell data but not for texture coordinates - model.colorCoordinates = getOrCreateColorTextureCoordinates(scalars, scalarComponent, scaledRange, useLogScale, model.numberOfColorsInRange, model.colorTextureMap.getDimensions(), cellFlag); - }; - publicAPI.getIsOpaque = () => { - const input = publicAPI.getInputData(); - const gasResult = publicAPI.getAbstractScalars(input, model.scalarMode, model.arrayAccessMode, model.arrayId, model.colorByArrayName); - const scalars = gasResult.scalars; - if (!model.scalarVisibility || scalars == null) { - // No scalar colors. - return true; - } - const lut = publicAPI.getLookupTable(); - if (lut) { - // Ensure that the lookup table is built - lut.build(); - return lut.areScalarsOpaque(scalars, model.colorMode, -1); - } - return true; - }; - publicAPI.canUseTextureMapForColoring = (scalars, cellFlag) => { - if (cellFlag && !(model.colorMode === ColorMode.DIRECT_SCALARS)) { - return true; // cell data always use textures. - } - - if (!model.interpolateScalarsBeforeMapping) { - return false; // user doesn't want us to use texture maps at all. - } - - // index color does not use textures - if (model.lookupTable && model.lookupTable.getIndexedLookup()) { - return false; - } - if (!scalars) { - // no scalars on this dataset, we don't care if texture is used at all. - return false; - } - if (model.colorMode === ColorMode.DEFAULT && scalars.getDataType() === VtkDataTypes.UNSIGNED_CHAR || model.colorMode === ColorMode.DIRECT_SCALARS) { - // Don't use texture is direct coloring using RGB unsigned chars is - // requested. - return false; - } - return true; - }; - publicAPI.clearColorArrays = () => { - model.colorMapColors = null; - model.colorCoordinates = null; - model.colorTextureMap = null; - }; - publicAPI.getLookupTable = () => { - if (!model.lookupTable) { - publicAPI.createDefaultLookupTable(); - } - return model.lookupTable; - }; - publicAPI.getMTime = () => { - let mt = model.mtime; - if (model.lookupTable !== null) { - const time = model.lookupTable.getMTime(); - mt = time > mt ? time : mt; - } - return mt; - }; - publicAPI.getPrimitiveCount = () => { - const input = publicAPI.getInputData(); - const pcount = { - points: input.getPoints().getNumberOfValues() / 3, - verts: input.getVerts().getNumberOfValues() - input.getVerts().getNumberOfCells(), - lines: input.getLines().getNumberOfValues() - 2 * input.getLines().getNumberOfCells(), - triangles: input.getPolys().getNumberOfValues() - 3 * input.getPolys().getNumberOfCells() - }; - return pcount; - }; - publicAPI.acquireInvertibleLookupTable = notImplemented('AcquireInvertibleLookupTable'); - publicAPI.valueToColor = notImplemented('ValueToColor'); - publicAPI.colorToValue = notImplemented('ColorToValue'); - publicAPI.useInvertibleColorFor = notImplemented('UseInvertibleColorFor'); - publicAPI.clearInvertibleColor = notImplemented('ClearInvertibleColor'); - publicAPI.processSelectorPixelBuffers = (selector, pixelOffsets) => { - /* eslint-disable no-bitwise */ - if (!selector || !model.selectionWebGLIdsToVTKIds || !model.populateSelectionSettings) { - return; - } - const rawLowData = selector.getRawPixelBuffer(PassTypes.ID_LOW24); - const rawHighData = selector.getRawPixelBuffer(PassTypes.ID_HIGH24); - const currentPass = selector.getCurrentPass(); - const fieldAssociation = selector.getFieldAssociation(); - let idMap = null; - if (fieldAssociation === FieldAssociations.FIELD_ASSOCIATION_POINTS) { - idMap = model.selectionWebGLIdsToVTKIds.points; - } else if (fieldAssociation === FieldAssociations.FIELD_ASSOCIATION_CELLS) { - idMap = model.selectionWebGLIdsToVTKIds.cells; - } - if (!idMap) { - return; - } - pixelOffsets.forEach(pos => { - if (currentPass === PassTypes.ID_LOW24) { - let inValue = 0; - if (rawHighData) { - inValue += rawHighData[pos]; - inValue *= 256; - } - inValue += rawLowData[pos + 2]; - inValue *= 256; - inValue += rawLowData[pos + 1]; - inValue *= 256; - inValue += rawLowData[pos]; - const outValue = idMap[inValue]; - const lowData = selector.getPixelBuffer(PassTypes.ID_LOW24); - lowData[pos] = outValue & 0xff; - lowData[pos + 1] = (outValue & 0xff00) >> 8; - lowData[pos + 2] = (outValue & 0xff0000) >> 16; - } else if (currentPass === PassTypes.ID_HIGH24 && rawHighData) { - let inValue = 0; - inValue += rawHighData[pos]; - inValue *= 256; - inValue += rawLowData[pos + 2]; - inValue *= 256; - inValue += rawLowData[pos + 1]; - inValue *= 256; - inValue += rawLowData[pos]; - const outValue = idMap[inValue]; - const highData = selector.getPixelBuffer(PassTypes.ID_HIGH24); - highData[pos] = (outValue & 0xff000000) >> 24; - } - }); - /* eslint-enable no-bitwise */ - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - colorMapColors: null, - // Same as this->Colors - areScalarsMappedFromCells: false, - static: false, - lookupTable: null, - scalarVisibility: true, - scalarRange: [0, 1], - useLookupTableScalarRange: false, - colorMode: 0, - scalarMode: 0, - arrayAccessMode: 1, - // By_NAME - - renderTime: 0, - colorByArrayName: null, - fieldDataTupleId: -1, - populateSelectionSettings: true, - selectionWebGLIdsToVTKIds: null, - interpolateScalarsBeforeMapping: false, - colorCoordinates: null, - colorTextureMap: null, - numberOfColorsInRange: 0, - forceCompileOnly: 0, - useInvertibleColors: false, - invertibleScalars: null, - customShaderAttributes: [] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkAbstractMapper3D.extend(publicAPI, model, initialValues); - macro.get(publicAPI, model, ['areScalarsMappedFromCells', 'colorCoordinates', 'colorMapColors', 'colorTextureMap', 'numberOfColorsInRange', 'selectionWebGLIdsToVTKIds']); - macro.setGet(publicAPI, model, ['colorByArrayName', 'arrayAccessMode', 'colorMode', 'fieldDataTupleId', 'interpolateScalarsBeforeMapping', 'lookupTable', 'populateSelectionSettings', 'renderTime', 'scalarMode', 'scalarVisibility', 'static', 'useLookupTableScalarRange', 'customShaderAttributes' // point data array names that will be transferred to the VBO - ]); - - macro.setGetArray(publicAPI, model, ['scalarRange'], 2); - CoincidentTopologyHelper.implementCoincidentTopologyMethods(publicAPI, model); - - // Object methods - vtkMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkMapper'); - -// ---------------------------------------------------------------------------- - -var vtkMapper$1 = { - newInstance, - extend, - ...staticOffsetAPI, - ...otherStaticMethods, - ...Constants -}; - -export { vtkMapper$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper/CoincidentTopologyHelper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper/CoincidentTopologyHelper.d.ts deleted file mode 100644 index 49920bd2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper/CoincidentTopologyHelper.d.ts +++ /dev/null @@ -1,197 +0,0 @@ -export interface ICoincidentTopology { - factor: number; - offset: number; -} - -export enum Resolve { - Off, - PolygonOffset, -} - -export interface StaticCoincidentTopologyMethods { - /** - * - * @param {ICoincidentTopology} params - */ - setResolveCoincidentTopologyPolygonOffsetParameters( - params: ICoincidentTopology - ): boolean; - - /** - * - * @param {ICoincidentTopology} params - */ - setResolveCoincidentTopologyLineOffsetParameters( - params: ICoincidentTopology - ): boolean; - - /** - * - * @param {ICoincidentTopology} params - */ - setResolveCoincidentTopologyPointOffsetParameters( - params: ICoincidentTopology - ): boolean; - - /** - * - * @param {Number} factor - * @param {Number} offset - */ - setResolveCoincidentTopologyPolygonOffsetParameters( - factor: number, - offset: number - ): boolean; - - /** - * - * @param {Number} factor - * @param {Number} offset - */ - setResolveCoincidentTopologyLineOffsetParameters( - factor: number, - offset: number - ): boolean; - - /** - * - * @param {Number} factor - * @param {Number} offset - */ - setResolveCoincidentTopologyPointOffsetParameters( - factor: number, - offset: number - ): boolean; - - /** - * - */ - getResolveCoincidentTopologyLineOffsetParameters(): ICoincidentTopology; - - /** - * - */ - getResolveCoincidentTopologyPointOffsetParameters(): ICoincidentTopology; - - /** - * - */ - getResolveCoincidentTopologyPolygonOffsetParameters(): ICoincidentTopology; - - /** - * - */ - getResolveCoincidentTopologyPolygonOffsetFaces(): ICoincidentTopology; - - /** - * - * @param {Number} value - */ - setResolveCoincidentTopologyPolygonOffsetFaces(value: number): boolean; - - /** - * - * @param mode - */ - setResolveCoincidentTopology(mode?: Resolve): boolean; - - /** - * - */ - getResolveCoincidentTopology(): Resolve; - - /** - * - */ - setResolveCoincidentTopologyToDefault(): boolean; - - /** - * - */ - setResolveCoincidentTopologyToOff(): boolean; - - /** - * - */ - setResolveCoincidentTopologyToPolygonOffset(): boolean; - - /** - * - */ - getResolveCoincidentTopologyAsString(): string; -} - -export interface CoincidentTopologyHelper - extends StaticCoincidentTopologyMethods { - /** - * - * @param {ICoincidentTopology} params - */ - setRelativeCoincidentTopologyLineOffsetParameters( - params: ICoincidentTopology - ): boolean; - - /** - * - * @param {ICoincidentTopology} params - */ - setRelativeCoincidentTopologyPointOffsetParameters( - params: ICoincidentTopology - ): boolean; - - /** - * - * @param {ICoincidentTopology} params - */ - setRelativeCoincidentTopologyPolygonOffsetParameters( - params: ICoincidentTopology - ): boolean; - - /** - * - * @param {Number} factor - * @param {Number} offset - */ - setRelativeCoincidentTopologyLineOffsetParameters( - factor: number, - offset: number - ): boolean; - - /** - * - * @param {Number} factor - * @param {Number} offset - */ - setRelativeCoincidentTopologyPointOffsetParameters( - factor: number, - offset: number - ): boolean; - - /** - * - * @param {Number} factor - * @param {Number} offset - */ - setRelativeCoincidentTopologyPolygonOffsetParameters( - factor: number, - offset: number - ): boolean; - - /** - * - */ - getCoincidentTopologyPolygonOffsetParameters(): ICoincidentTopology; - - /** - * - */ - getCoincidentTopologyLineOffsetParameters(): ICoincidentTopology; - - /** - * - */ - getCoincidentTopologyPointOffsetParameters(): ICoincidentTopology; -} - -declare const _default: CoincidentTopologyHelper; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper/CoincidentTopologyHelper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper/CoincidentTopologyHelper.js deleted file mode 100644 index 2486b65c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper/CoincidentTopologyHelper.js +++ /dev/null @@ -1,108 +0,0 @@ -import otherStaticMethods, { Resolve } from './Static.js'; -export { Resolve } from './Static.js'; -import { m as macro } from '../../../macros2.js'; - -/* eslint-disable arrow-body-style */ -function addCoincidentTopologyMethods(publicAPI, model, nameList) { - nameList.forEach(item => { - publicAPI[`get${item.method}`] = () => model[item.key]; - publicAPI[`set${item.method}`] = macro.objectSetterMap.object(publicAPI, model, { - name: item.key, - params: ['factor', 'offset'] - }); - }); -} -const CATEGORIES = ['Polygon', 'Line', 'Point']; - -// CoincidentTopology static methods ------------------------------------------ - -const staticOffsetModel = { - Polygon: { - factor: 2, - offset: 0 - }, - Line: { - factor: 1, - offset: -1 - }, - Point: { - factor: 0, - offset: -2 - } -}; -const noOp = () => undefined; -const staticOffsetAPI = { - modified: noOp -}; -addCoincidentTopologyMethods(staticOffsetAPI, staticOffsetModel, CATEGORIES.map(key => ({ - key, - method: `ResolveCoincidentTopology${key}OffsetParameters` -}))); -function implementCoincidentTopologyMethods(publicAPI, model) { - if (model.resolveCoincidentTopology === undefined) { - model.resolveCoincidentTopology = false; - } - macro.setGet(publicAPI, model, ['resolveCoincidentTopology']); - - // Relative methods - model.topologyOffset = { - Polygon: { - factor: 0, - offset: 0 - }, - Line: { - factor: 0, - offset: 0 - }, - Point: { - factor: 0, - offset: 0 - } - }; - - // Add Static methods to our instance - Object.keys(otherStaticMethods).forEach(methodName => { - publicAPI[methodName] = otherStaticMethods[methodName]; - }); - Object.keys(staticOffsetAPI).filter(methodName => methodName !== 'modified') // don't override instance's modified - .forEach(methodName => { - publicAPI[methodName] = staticOffsetAPI[methodName]; - }); - addCoincidentTopologyMethods(publicAPI, model.topologyOffset, CATEGORIES.map(key => ({ - key, - method: `RelativeCoincidentTopology${key}OffsetParameters` - }))); - publicAPI.getCoincidentTopologyPolygonOffsetParameters = () => { - const globalValue = staticOffsetAPI.getResolveCoincidentTopologyPolygonOffsetParameters(); - const localValue = publicAPI.getRelativeCoincidentTopologyPolygonOffsetParameters(); - return { - factor: globalValue.factor + localValue.factor, - offset: globalValue.offset + localValue.offset - }; - }; - publicAPI.getCoincidentTopologyLineOffsetParameters = () => { - const globalValue = staticOffsetAPI.getResolveCoincidentTopologyLineOffsetParameters(); - const localValue = publicAPI.getRelativeCoincidentTopologyLineOffsetParameters(); - return { - factor: globalValue.factor + localValue.factor, - offset: globalValue.offset + localValue.offset - }; - }; - publicAPI.getCoincidentTopologyPointOffsetParameter = () => { - const globalValue = staticOffsetAPI.getResolveCoincidentTopologyPointOffsetParameters(); - const localValue = publicAPI.getRelativeCoincidentTopologyPointOffsetParameters(); - return { - factor: globalValue.factor + localValue.factor, - offset: globalValue.offset + localValue.offset - }; - }; -} -var CoincidentTopologyHelper = { - implementCoincidentTopologyMethods, - staticOffsetAPI, - otherStaticMethods, - CATEGORIES, - Resolve -}; - -export { CATEGORIES, CoincidentTopologyHelper as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper/Constants.d.ts deleted file mode 100644 index 862eb4c8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper/Constants.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -export declare enum ColorMode { - DEFAULT = 0, - MAP_SCALARS = 1, - DIRECT_SCALARS = 2, -} - -export declare enum ScalarMode { - DEFAULT = 0, - USE_POINT_DATA = 1, - USE_CELL_DATA = 2, - USE_POINT_FIELD_DATA = 3, - USE_CELL_FIELD_DATA = 4, - USE_FIELD_DATA = 5, -} - -export declare enum GetArray { - BY_ID = 0, - BY_NAME = 1, -} - -declare const _default: { - ColorMode: typeof ColorMode; - ScalarMode: typeof ScalarMode; - GetArray: typeof GetArray; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper/Constants.js deleted file mode 100644 index 11a1c8c5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper/Constants.js +++ /dev/null @@ -1,24 +0,0 @@ -const ColorMode = { - DEFAULT: 0, - MAP_SCALARS: 1, - DIRECT_SCALARS: 2 -}; -const ScalarMode = { - DEFAULT: 0, - USE_POINT_DATA: 1, - USE_CELL_DATA: 2, - USE_POINT_FIELD_DATA: 3, - USE_CELL_FIELD_DATA: 4, - USE_FIELD_DATA: 5 -}; -const GetArray = { - BY_ID: 0, - BY_NAME: 1 -}; -var Constants = { - ColorMode, - GetArray, - ScalarMode -}; - -export { ColorMode, GetArray, ScalarMode, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper/Static.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper/Static.js deleted file mode 100644 index e7188576..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper/Static.js +++ /dev/null @@ -1,49 +0,0 @@ -const Resolve = { - Off: 0, - PolygonOffset: 1 -}; -let resolveCoincidentTopologyPolygonOffsetFaces = Resolve.PolygonOffset; -let resolveCoincidentTopology = Resolve.Off; -const RESOLVE_COINCIDENT_TOPOLOGY_MODE = ['VTK_RESOLVE_OFF', 'VTK_RESOLVE_POLYGON_OFFSET']; -function getResolveCoincidentTopologyPolygonOffsetFaces() { - return resolveCoincidentTopologyPolygonOffsetFaces; -} -function setResolveCoincidentTopologyPolygonOffsetFaces(value) { - const changed = resolveCoincidentTopologyPolygonOffsetFaces === value; - resolveCoincidentTopologyPolygonOffsetFaces = value; - return changed; -} -function getResolveCoincidentTopology() { - return resolveCoincidentTopology; -} -function setResolveCoincidentTopology() { - let mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - const changed = resolveCoincidentTopology === mode; - resolveCoincidentTopology = mode; - return changed; -} -function setResolveCoincidentTopologyToDefault() { - return setResolveCoincidentTopology(Resolve.Off); -} -function setResolveCoincidentTopologyToOff() { - return setResolveCoincidentTopology(Resolve.Off); -} -function setResolveCoincidentTopologyToPolygonOffset() { - return setResolveCoincidentTopology(Resolve.PolygonOffset); -} -function getResolveCoincidentTopologyAsString() { - return RESOLVE_COINCIDENT_TOPOLOGY_MODE[resolveCoincidentTopology]; -} -var otherStaticMethods = { - Resolve, - getResolveCoincidentTopologyAsString, - getResolveCoincidentTopologyPolygonOffsetFaces, - getResolveCoincidentTopology, - setResolveCoincidentTopology, - setResolveCoincidentTopologyPolygonOffsetFaces, - setResolveCoincidentTopologyToDefault, - setResolveCoincidentTopologyToOff, - setResolveCoincidentTopologyToPolygonOffset -}; - -export { RESOLVE_COINCIDENT_TOPOLOGY_MODE, Resolve, otherStaticMethods as default, getResolveCoincidentTopology, getResolveCoincidentTopologyAsString, getResolveCoincidentTopologyPolygonOffsetFaces, setResolveCoincidentTopology, setResolveCoincidentTopologyPolygonOffsetFaces, setResolveCoincidentTopologyToDefault, setResolveCoincidentTopologyToOff, setResolveCoincidentTopologyToPolygonOffset }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper2D.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper2D.d.ts deleted file mode 100644 index 80d0bd34..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper2D.d.ts +++ /dev/null @@ -1,410 +0,0 @@ -import { Nullable } from './../../types'; -import vtkAbstractMapper, { - IAbstractMapperInitialValues, -} from './AbstractMapper'; - -export enum ColorMode { - DEFAULT, - MAP_SCALARS, - DIRECT_SCALARS, -} - -export enum ScalarMode { - DEFAULT, - USE_POINT_DATA, - USE_CELL_DATA, - USE_POINT_FIELD_DATA, - USE_CELL_FIELD_DATA, - USE_FIELD_DATA, -} - -export enum GetArray { - BY_ID, - BY_NAME, -} - -interface IPrimitiveCount { - points: number; - verts: number; - lines: number; - triangles: number; -} - -interface IAbstractScalars { - cellFlag: boolean; -} - -export interface IMapper2DInitialValues extends IAbstractMapperInitialValues { - arrayAccessMode?: number; - colorMode?: number; - customShaderAttributes?: any; - renderTime?: number; - scalarMode?: number; - scalarRange?: Range; - scalarVisibility?: boolean; - static?: boolean; -} - -export interface vtkMapper2D extends vtkAbstractMapper { - /** - * Create default lookup table. Generally used to create one when - * none is available with the scalar data. - */ - createDefaultLookupTable(): void; - - /** - * - * @param input - * @param {ScalarMode} scalarMode - * @param arrayAccessMode - * @param arrayId - * @param arrayName - */ - getAbstractScalars( - input: any, - scalarMode: ScalarMode, - arrayAccessMode: number, - arrayId: any, - arrayName: any - ): IAbstractScalars; - - /** - * - */ - getArrayAccessMode(): number; - - /** - * Get the array name to color by. - */ - getColorByArrayName(): Nullable; - - /** - * Provide read access to the color array. - */ - getColorMapColors(): Nullable; - - /** - * Return the method of coloring scalar data. - */ - getColorMode(): number; - - /** - * Return the method of coloring scalar data. - */ - getColorModeAsString(): string; - - /** - * - * @default [] - */ - getCustomShaderAttributes(): any; - - /** - * Get a lookup table for the mapper to use. - */ - getLookupTable(): any; - - /** - * Get the transformCoordinate. - */ - getTransformCoordinate(): any; - - /** - * Return the method for obtaining scalar data. - */ - getScalarMode(): number; - - /** - * Return the method for obtaining scalar data. - */ - getScalarModeAsString(): string; - - /** - * - * @default [0, 1] - */ - getScalarRange(): number[]; - - /** - * - * @default [0, 1] - */ - getScalarRangeByReference(): number[]; - - /** - * Check whether scalar data is used to color objects. - * @default true - */ - getScalarVisibility(): boolean; - - /** - * Check whether the mapper’s data is static. - * @default false - */ - getStatic(): boolean; - - /** - * - * @default false - */ - getUseLookupTableScalarRange(): boolean; - - /** - * - * @default null - */ - getViewSpecificProperties(): object; - - /** - * Map the scalars (if there are any scalars and ScalarVisibility is on) - * through the lookup table, returning an unsigned char RGBA array. This is - * typically done as part of the rendering process. The alpha parameter - * allows the blending of the scalars with an additional alpha (typically - * which comes from a vtkActor, etc.) - * { - * rgba: Uint8Array(), - * location: 0/1/2, // Points/Cells/Fields - * } - * @param input - * @param {Number} alpha - */ - mapScalars(input: any, alpha: number): void; - - /** - * - * @param {Number} arrayAccessMode - */ - setArrayAccessMode(arrayAccessMode: number): boolean; - - /** - * Set the array name to color by. - * @param {String} colorByArrayName - */ - setColorByArrayName(colorByArrayName: string): boolean; - - /** - * - * @param {Number} colorMode - */ - setColorMode(colorMode: number): boolean; - - /** - * Sets colorMode to `DEFAULT` - */ - setColorModeToDefault(): boolean; - - /** - * Sets colorMode to `MAP_SCALARS` - */ - setColorModeToMapScalars(): boolean; - - /** - * Sets colorMode to `DIRECT_SCALARS` - */ - setColorModeToDirectScalars(): boolean; - - /** - * Sets point data array names that will be transferred to the VBO - * @param {String[]} customShaderAttributes - */ - setCustomShaderAttributes(customShaderAttributes: string[]): boolean; - - /** - * Set a lookup table for the mapper to use. - */ - setLookupTable(lookupTable: any): boolean; - - /** - * Set the transformCoordinate. - */ - setTransformCoordinate(coordinate: any): boolean; - - /** - * Control how the filter works with scalar point data and cell attribute - * data. By default (ScalarModeToDefault), the filter will use point data, - * and if no point data is available, then cell data is used. Alternatively - * you can explicitly set the filter to use point data - * (ScalarModeToUsePointData) or cell data (ScalarModeToUseCellData). - * You can also choose to get the scalars from an array in point field - * data (ScalarModeToUsePointFieldData) or cell field data - * (ScalarModeToUseCellFieldData). If scalars are coming from a field - * data array, you must call SelectColorArray before you call GetColors. - * - * When ScalarMode is set to use Field Data (ScalarModeToFieldData), - * you must call SelectColorArray to choose the field data array to - * be used to color cells. In this mode, the default behavior is to - * treat the field data tuples as being associated with cells. If - * the poly data contains triangle strips, the array is expected to - * contain the cell data for each mini-cell formed by any triangle - * strips in the poly data as opposed to treating them as a single - * tuple that applies to the entire strip. This mode can also be - * used to color the entire poly data by a single color obtained by - * mapping the tuple at a given index in the field data array - * through the color map. Use SetFieldDataTupleId() to specify - * the tuple index. - * - * @param scalarMode - */ - setScalarMode(scalarMode: number): boolean; - - /** - * Sets scalarMode to DEFAULT - */ - setScalarModeToDefault(): boolean; - - /** - * Sets scalarMode to USE_CELL_DATA - */ - setScalarModeToUseCellData(): boolean; - - /** - * Sets scalarMode to USE_CELL_FIELD_DATA - */ - setScalarModeToUseCellFieldData(): boolean; - - /** - * Sets scalarMode to USE_FIELD_DATA - */ - setScalarModeToUseFieldData(): boolean; - - /** - * Sets scalarMode to USE_POINT_DATA - */ - setScalarModeToUsePointData(): boolean; - - /** - * Sets scalarMode to USE_POINT_FIELD_DATA - */ - setScalarModeToUsePointFieldData(): boolean; - - /** - * Specify range in terms of scalar minimum and maximum (smin,smax). These - * values are used to map scalars into lookup table. Has no effect when - * UseLookupTableScalarRange is true. - * - * @param min - * @param max - * @default [0, 1] - */ - setScalarRange(min: number, max: number): boolean; - - /** - * Specify range in terms of scalar minimum and maximum (smin,smax). These - * values are used to map scalars into lookup table. Has no effect when - * UseLookupTableScalarRange is true. - * - * @param scalarRange - * @default [0, 1] - */ - setScalarRange(scalarRange: number[]): boolean; - - /** - * - * @param scalarRange - * @default [0, 1] - */ - setScalarRangeFrom(scalarRange: number[]): boolean; - - /** - * Turn on/off flag to control whether scalar data is used to color objects. - * @param {Boolean} scalarVisibility - * @default true - */ - setScalarVisibility(scalarVisibility: boolean): boolean; - - /** - * Turn on/off flag to control whether the mapper’s data is static. Static data - * means that the mapper does not propagate updates down the pipeline, greatly - * decreasing the time it takes to update many mappers. This should only be - * used if the data never changes. - * - * @param {Boolean} static - * @default false - */ - setStatic(static: boolean): boolean; - - /** - * Control whether the mapper sets the lookuptable range based on its - * own ScalarRange, or whether it will use the LookupTable ScalarRange - * regardless of it’s own setting. By default the Mapper is allowed to set - * the LookupTable range, but users who are sharing LookupTables between - * mappers/actors will probably wish to force the mapper to use the - * LookupTable unchanged. - * - * @param {Boolean} useLookupTableScalarRange - * @default false - */ - setUseLookupTableScalarRange(useLookupTableScalarRange: boolean): boolean; - - /** - * If you want to provide specific properties for rendering engines you can use - * viewSpecificProperties. - * - * You can go and have a look in the rendering backend of your choice for details - * on specific properties. - * For example, for OpenGL/WebGL see OpenGL/PolyDataMapper/api.md - * If there is no details, viewSpecificProperties is not supported. - * @param viewSpecificProperties - */ - setViewSpecificProperties(viewSpecificProperties: object): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkMapper2D characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IMapper2DInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IMapper2DInitialValues -): void; - -/** - * Method used to create a new instance of vtkMapper2D - * @param {IMapper2DInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IMapper2DInitialValues -): vtkMapper2D; - -/** - * vtkMapper2D is an abstract class to specify interface between data and - * graphics primitives. Subclasses of vtkMapper map data through a - * lookuptable and control the creation of rendering primitives that - * interface to the graphics library. The mapping can be controlled by - * supplying a lookup table and specifying a scalar range to map data - * through. - * - * There are several important control mechanisms affecting the behavior of - * this object. The ScalarVisibility flag controls whether scalar data (if - * any) controls the color of the associated actor(s) that refer to the - * mapper. The ScalarMode ivar is used to determine whether scalar point data - * or cell data is used to color the object. By default, point data scalars - * are used unless there are none, then cell scalars are used. Or you can - * explicitly control whether to use point or cell scalar data. Finally, the - * mapping of scalars through the lookup table varies depending on the - * setting of the ColorMode flag. See the documentation for the appropriate - * methods for an explanation. - * - * Another important feature of this class is whether to use immediate mode - * rendering (ImmediateModeRenderingOn) or display list rendering - * (ImmediateModeRenderingOff). If display lists are used, a data structure - * is constructed (generally in the rendering library) which can then be - * rapidly traversed and rendered by the rendering library. The disadvantage - * of display lists is that they require additional memory which may affect - * the performance of the system. - * - * Another important feature of the mapper is the ability to shift the - * Z-buffer to resolve coincident topology. For example, if you’d like to - * draw a mesh with some edges a different color, and the edges lie on the - * mesh, this feature can be useful to get nice looking lines. (See the - * ResolveCoincidentTopology-related methods.) - */ -export declare const vtkMapper2D: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkMapper2D; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper2D.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper2D.js deleted file mode 100644 index 4392d606..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Mapper2D.js +++ /dev/null @@ -1,538 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkAbstractMapper from './AbstractMapper.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkImageData from '../../Common/DataModel/ImageData.js'; -import vtkLookupTable from '../../Common/Core/LookupTable.js'; -import vtkScalarsToColors from '../../Common/Core/ScalarsToColors/Constants.js'; -import { i as isNan } from '../../Common/Core/Math/index.js'; -import Constants from './Mapper/Constants.js'; - -const { - ColorMode, - ScalarMode, - GetArray -} = Constants; -const { - VectorMode -} = vtkScalarsToColors; -const { - VtkDataTypes -} = vtkDataArray; - -/** - * Increase by one the 3D coordinates - * It will follow a zigzag pattern so that each coordinate is the neighbor of the next coordinate - * This enables interpolation between two texels without issues - * Note: texture coordinates can't be interpolated using this pattern - * @param {vec3} coordinates The 3D coordinates using integers for each coordinate - * @param {vec3} dimensions The 3D dimensions of the volume - */ -function updateZigzaggingCoordinates(coordinates, dimensions) { - const directionX = coordinates[1] % 2 === 0 ? 1 : -1; - coordinates[0] += directionX; - if (coordinates[0] >= dimensions[0] || coordinates[0] < 0) { - const directionY = coordinates[2] % 2 === 0 ? 1 : -1; - coordinates[0] -= directionX; - coordinates[1] += directionY; - if (coordinates[1] >= dimensions[1] || coordinates[1] < 0) { - coordinates[1] -= directionY; - coordinates[2]++; - } - } -} - -/** - * Returns the index in the array representing the volume from a 3D coordinate - * @param {vec3} coordinates The 3D integer coordinates - * @param {vec3} dimensions The 3D dimensions of the volume - * @returns The index in a flat array representing the volume - */ -function getIndexFromCoordinates(coordinates, dimensions) { - return coordinates[0] + dimensions[0] * (coordinates[1] + dimensions[1] * coordinates[2]); -} - -/** - * Write texture coordinates for the given `texelIndexPosition` in `textureCoordinate`. - * The `texelIndexPosition` is a floating point number that represents the distance in index space - * from the center of the first texel to the final output position. - * The output is given in texture coordinates and not in index coordinates (this is done at the very end of the function) - * @param {vec3} textureCoordinate The output texture coordinates (to avoid allocating a new Array) - * @param {Number} texelIndexPosition The floating point distance from the center of the first texel, following a zigzag pattern - * @param {vec3} dimensions The 3D dimensions of the volume - */ -function getZigZagTextureCoordinatesFromTexelPosition(textureCoordinate, texelIndexPosition, dimensions) { - // First compute the integer textureCoordinate - const intTexelIndex = Math.floor(texelIndexPosition); - const xCoordBeforeWrap = intTexelIndex % (2 * dimensions[0]); - let xDirection; - let xEndFlag; - if (xCoordBeforeWrap < dimensions[0]) { - textureCoordinate[0] = xCoordBeforeWrap; - xDirection = 1; - xEndFlag = textureCoordinate[0] === dimensions[0] - 1; - } else { - textureCoordinate[0] = 2 * dimensions[0] - 1 - xCoordBeforeWrap; - xDirection = -1; - xEndFlag = textureCoordinate[0] === 0; - } - const intRowIndex = Math.floor(intTexelIndex / dimensions[0]); - const yCoordBeforeWrap = intRowIndex % (2 * dimensions[1]); - let yDirection; - let yEndFlag; - if (yCoordBeforeWrap < dimensions[1]) { - textureCoordinate[1] = yCoordBeforeWrap; - yDirection = 1; - yEndFlag = textureCoordinate[1] === dimensions[1] - 1; - } else { - textureCoordinate[1] = 2 * dimensions[1] - 1 - yCoordBeforeWrap; - yDirection = -1; - yEndFlag = textureCoordinate[1] === 0; - } - textureCoordinate[2] = Math.floor(intRowIndex / dimensions[1]); - - // Now add the remainder either in x, y or z - const remainder = texelIndexPosition - intTexelIndex; - if (xEndFlag) { - if (yEndFlag) { - textureCoordinate[2] += remainder; - } else { - textureCoordinate[1] += yDirection * remainder; - } - } else { - textureCoordinate[0] += xDirection * remainder; - } - - // textureCoordinates are in index space, convert to texture space - textureCoordinate[0] = (textureCoordinate[0] + 0.5) / dimensions[0]; - textureCoordinate[1] = (textureCoordinate[1] + 0.5) / dimensions[1]; - textureCoordinate[2] = (textureCoordinate[2] + 0.5) / dimensions[2]; -} -// Associate an input vtkDataArray to an object { stringHash, textureCoordinates } -// A single dataArray only caches one array of texture coordinates, so this cache is useless when -// the input data array is used with two different lookup tables (which is very unlikely) -const colorTextureCoordinatesCache = new WeakMap(); -/** - * The minimum of the range is mapped to the center of the first texel excluding min texel (texel at index distance 1) - * The maximum of the range is mapped to the center of the last texel excluding max and NaN texels (texel at index distance numberOfColorsInRange) - * The result is cached, and is reused if the arguments are the same and the input doesn't change - * @param {vtkDataArray} input The input data array used for coloring - * @param {Number} component The component of the input data array that is used for coloring (-1 for magnitude of the vectors) - * @param {Range} range The range of the scalars - * @param {boolean} useLogScale Should the values be transformed to logarithmic scale. When true, the range must already be in logarithmic scale. - * @param {Number} numberOfColorsInRange The number of colors that are used in the range - * @param {vec3} dimensions The dimensions of the texture - * @param {boolean} useZigzagPattern If a zigzag pattern should be used. Otherwise 1 row for colors (including min and max) and 1 row for NaN are used. - * @returns A vtkDataArray containing the texture coordinates (2D or 3D) - */ -function getOrCreateColorTextureCoordinates(input, component, range, useLogScale, numberOfColorsInRange, dimensions, useZigzagPattern) { - // Caching using the "arguments" special object (because it is a pure function) - const argStrings = new Array(arguments.length); - for (let argIndex = 0; argIndex < arguments.length; ++argIndex) { - // eslint-disable-next-line prefer-rest-params - const arg = arguments[argIndex]; - argStrings[argIndex] = arg.getMTime?.() ?? arg; - } - const stringHash = argStrings.join('/'); - const cachedResult = colorTextureCoordinatesCache.get(input); - if (cachedResult && cachedResult.stringHash === stringHash) { - return cachedResult.textureCoordinates; - } - - // The range used for computing coordinates have to change - // slightly to accommodate the special above- and below-range - // colors that are the first and last texels, respectively. - const scalarTexelWidth = (range[1] - range[0]) / (numberOfColorsInRange - 1); - const [paddedRangeMin, paddedRangeMax] = [range[0] - scalarTexelWidth, range[1] + scalarTexelWidth]; - - // Use the center of the voxel - const textureSOrigin = paddedRangeMin - 0.5 * scalarTexelWidth; - const textureSCoeff = 1.0 / (paddedRangeMax - paddedRangeMin + scalarTexelWidth); - - // Compute in index space first - const texelIndexOrigin = paddedRangeMin; - const texelIndexCoeff = (numberOfColorsInRange + 1) / (paddedRangeMax - paddedRangeMin); - const inputV = input.getData(); - const numScalars = input.getNumberOfTuples(); - const numComps = input.getNumberOfComponents(); - const useMagnitude = component < 0 || component >= numComps; - const numberOfOutputComponents = dimensions[2] <= 1 ? 2 : 3; - const output = vtkDataArray.newInstance({ - numberOfComponents: numberOfOutputComponents, - values: new Float32Array(numScalars * numberOfOutputComponents) - }); - const outputV = output.getData(); - const nanTextureCoordinate = [0, 0, 0]; - // Distance of NaN from the beginning: - // min: 0, ...colorsInRange, max: numberOfColorsInRange + 1, NaN = numberOfColorsInRange + 2 - getZigZagTextureCoordinatesFromTexelPosition(nanTextureCoordinate, numberOfColorsInRange + 2, dimensions); - - // Set a texture coordinate in the output for each tuple in the input - let inputIdx = 0; - let outputIdx = 0; - const textureCoordinate = [0.5, 0.5, 0.5]; - for (let scalarIdx = 0; scalarIdx < numScalars; ++scalarIdx) { - // Get scalar value from magnitude or a single component - let scalarValue; - if (useMagnitude) { - let sum = 0; - for (let compIdx = 0; compIdx < numComps; ++compIdx) { - const compValue = Number(inputV[inputIdx + compIdx]); - sum += compValue * compValue; - } - scalarValue = Math.sqrt(sum); - } else { - scalarValue = Number(inputV[inputIdx + component]); - } - if (useLogScale) { - scalarValue = Math.log10(scalarValue); - } - inputIdx += numComps; - - // Convert to texture coordinates and update output - if (isNan(scalarValue)) { - // Last texels are NaN colors (there is at least one NaN color) - textureCoordinate[0] = nanTextureCoordinate[0]; - textureCoordinate[1] = nanTextureCoordinate[1]; - textureCoordinate[2] = nanTextureCoordinate[2]; - } else if (useZigzagPattern) { - // Texel position is in [0, numberOfColorsInRange + 1] - let texelIndexPosition = (scalarValue - texelIndexOrigin) * texelIndexCoeff; - if (texelIndexPosition < 1) { - // Use min color when smaller than range - texelIndexPosition = 0; - } else if (texelIndexPosition > numberOfColorsInRange) { - // Use max color when greater than range - texelIndexPosition = numberOfColorsInRange + 1; - } - - // Convert the texel position into texture coordinate following a zigzag pattern - getZigZagTextureCoordinatesFromTexelPosition(textureCoordinate, texelIndexPosition, dimensions); - } else { - // 0.0 in t coordinate means not NaN. So why am I setting it to 0.49? - // Because when you are mapping scalars and you have a NaN adjacent to - // anything else, the interpolation everywhere should be NaN. Thus, I - // want the NaN color everywhere except right on the non-NaN neighbors. - // To simulate this, I set the t coord for the real numbers close to - // the threshold so that the interpolation almost immediately looks up - // the NaN value. - textureCoordinate[1] = 0.49; - - // Some implementations apparently don't handle relatively large - // numbers (compared to the range [0.0, 1.0]) very well. In fact, - // values above 1122.0f appear to cause texture wrap-around on - // some systems even when edge clamping is enabled. Why 1122.0f? I - // don't know. For safety, we'll clamp at +/- 1000. This will - // result in incorrect images when the texture value should be - // above or below 1000, but I don't have a better solution. - const textureS = (scalarValue - textureSOrigin) * textureSCoeff; - if (textureS > 1000.0) { - textureCoordinate[0] = 1000.0; - } else if (textureS < -1000.0) { - textureCoordinate[0] = -1000.0; - } else { - textureCoordinate[0] = textureS; - } - } - for (let i = 0; i < numberOfOutputComponents; ++i) { - outputV[outputIdx++] = textureCoordinate[i]; - } - } - colorTextureCoordinatesCache.set(input, { - stringHash, - textureCoordinates: output - }); - return output; -} - -// --------------------------------------------------------------------------- -// vtkMapper2D methods -// --------------------------------------------------------------------------- - -function vtkMapper2D(publicAPI, model) { - // Set out className - model.classHierarchy.push('vtkMapper2D'); - publicAPI.createDefaultLookupTable = () => { - model.lookupTable = vtkLookupTable.newInstance(); - }; - publicAPI.getColorModeAsString = () => macro.enumToString(ColorMode, model.colorMode); - publicAPI.setColorModeToDefault = () => publicAPI.setColorMode(0); - publicAPI.setColorModeToMapScalars = () => publicAPI.setColorMode(1); - publicAPI.setColorModeToDirectScalars = () => publicAPI.setColorMode(2); - publicAPI.getScalarModeAsString = () => macro.enumToString(ScalarMode, model.scalarMode); - publicAPI.setScalarModeToDefault = () => publicAPI.setScalarMode(0); - publicAPI.setScalarModeToUsePointData = () => publicAPI.setScalarMode(1); - publicAPI.setScalarModeToUseCellData = () => publicAPI.setScalarMode(2); - publicAPI.setScalarModeToUsePointFieldData = () => publicAPI.setScalarMode(3); - publicAPI.setScalarModeToUseCellFieldData = () => publicAPI.setScalarMode(4); - publicAPI.setScalarModeToUseFieldData = () => publicAPI.setScalarMode(5); - publicAPI.getAbstractScalars = (input, scalarMode, arrayAccessMode, arrayId, arrayName) => { - // make sure we have an input - if (!input || !model.scalarVisibility) { - return { - scalars: null, - cellFlag: false - }; - } - let scalars = null; - let cellFlag = false; - - // get scalar data and point/cell attribute according to scalar mode - if (scalarMode === ScalarMode.DEFAULT) { - scalars = input.getPointData().getScalars(); - if (!scalars) { - scalars = input.getCellData().getScalars(); - cellFlag = true; - } - } else if (scalarMode === ScalarMode.USE_POINT_DATA) { - scalars = input.getPointData().getScalars(); - } else if (scalarMode === ScalarMode.USE_CELL_DATA) { - scalars = input.getCellData().getScalars(); - cellFlag = true; - } else if (scalarMode === ScalarMode.USE_POINT_FIELD_DATA) { - const pd = input.getPointData(); - if (arrayAccessMode === GetArray.BY_ID) { - scalars = pd.getArrayByIndex(arrayId); - } else { - scalars = pd.getArrayByName(arrayName); - } - } else if (scalarMode === ScalarMode.USE_CELL_FIELD_DATA) { - const cd = input.getCellData(); - cellFlag = true; - if (arrayAccessMode === GetArray.BY_ID) { - scalars = cd.getArrayByIndex(arrayId); - } else { - scalars = cd.getArrayByName(arrayName); - } - } else if (scalarMode === ScalarMode.USE_FIELD_DATA) { - const fd = input.getFieldData(); - if (arrayAccessMode === GetArray.BY_ID) { - scalars = fd.getArrayByIndex(arrayId); - } else { - scalars = fd.getArrayByName(arrayName); - } - } - return { - scalars, - cellFlag - }; - }; - publicAPI.getLookupTable = () => { - if (!model.lookupTable) { - publicAPI.createDefaultLookupTable(); - } - return model.lookupTable; - }; - publicAPI.getMTime = () => { - let mt = model.mtime; - if (model.lookupTable !== null) { - const time = model.lookupTable.getMTime(); - mt = time > mt ? time : mt; - } - return mt; - }; - publicAPI.mapScalars = (input, alpha) => { - const { - scalars, - cellFlag - } = publicAPI.getAbstractScalars(input, model.scalarMode, model.arrayAccessMode, model.arrayId, model.colorByArrayName); - model.areScalarsMappedFromCells = cellFlag; - if (!scalars) { - model.colorCoordinates = null; - model.colorTextureMap = null; - model.colorMapColors = null; - return; - } - - // we want to only recompute when something has changed - const toString = `${publicAPI.getMTime()}${scalars.getMTime()}${alpha}`; - if (model.colorBuildString === toString) return; - if (!model.useLookupTableScalarRange) { - publicAPI.getLookupTable().setRange(model.scalarRange[0], model.scalarRange[1]); - } - if (publicAPI.canUseTextureMapForColoring(scalars, cellFlag)) { - model.mapScalarsToTexture(scalars, cellFlag, alpha); - } else { - model.colorCoordinates = null; - model.colorTextureMap = null; - const lut = publicAPI.getLookupTable(); - if (lut) { - // Ensure that the lookup table is built - lut.build(); - model.colorMapColors = lut.mapScalars(scalars, model.colorMode, model.fieldDataTupleId); - } - } - model.colorBuildString = `${publicAPI.getMTime()}${scalars.getMTime()}${alpha}`; - }; - publicAPI.canUseTextureMapForColoring = (scalars, cellFlag) => { - if (cellFlag && !(model.colorMode === ColorMode.DIRECT_SCALARS)) { - return true; // cell data always use textures. - } - - // index color does not use textures - if (model.lookupTable && model.lookupTable.getIndexedLookup()) { - return false; - } - if (!scalars) { - // no scalars on this dataset, we don't care if texture is used at all. - return false; - } - if (model.colorMode === ColorMode.DEFAULT && scalars.getDataType() === VtkDataTypes.UNSIGNED_CHAR || model.colorMode === ColorMode.DIRECT_SCALARS) { - // Don't use texture if direct coloring using RGB unsigned chars is - // requested. - return false; - } - return true; - }; - - // Protected method - model.mapScalarsToTexture = (scalars, cellFlag, alpha) => { - const range = model.lookupTable.getRange(); - const useLogScale = model.lookupTable.usingLogScale(); - const origAlpha = model.lookupTable.getAlpha(); - const scaledRange = useLogScale ? [Math.log10(range[0]), Math.log10(range[1])] : range; - - // Get rid of vertex color array. Only texture or vertex coloring - // can be active at one time. The existence of the array is the - // signal to use that technique. - model.colorMapColors = null; - - // If the lookup table has changed, then recreate the color texture map. - // Set a new lookup table changes this->MTime. - if (model.colorTextureMap == null || publicAPI.getMTime() > model.colorTextureMap.getMTime() || model.lookupTable.getMTime() > model.colorTextureMap.getMTime() || model.lookupTable.getAlpha() !== alpha) { - model.lookupTable.setAlpha(alpha); - model.colorTextureMap = null; - - // Get the texture map from the lookup table. - // Create a dummy ramp of scalars. - // In the future, we could extend vtkScalarsToColors. - model.lookupTable.build(); - const numberOfAvailableColors = model.lookupTable.getNumberOfAvailableColors(); - - // Maximum dimensions and number of colors in range - const maxTextureWidthForCells = 2048; - const maxColorsInRangeForCells = maxTextureWidthForCells ** 3 - 3; // 3D but keep a color for min, max and NaN - const maxTextureWidthForPoints = 4096; - const maxColorsInRangeForPoints = maxTextureWidthForPoints - 2; // 1D but keep a color for min and max (NaN is in a different row) - // Minimum number of colors in range (excluding special colors like minColor, maxColor and NaNColor) - const minColorsInRange = 2; - // Maximum number of colors, limited by the maximum possible texture size - const maxColorsInRange = cellFlag ? maxColorsInRangeForCells : maxColorsInRangeForPoints; - model.numberOfColorsInRange = Math.min(Math.max(numberOfAvailableColors, minColorsInRange), maxColorsInRange); - const numberOfColorsForCells = model.numberOfColorsInRange + 3; // Add min, max and NaN - const numberOfColorsInUpperRowForPoints = model.numberOfColorsInRange + 2; // Add min and max ; the lower row will be used for NaN color - const textureDimensions = cellFlag ? [Math.min(Math.ceil(numberOfColorsForCells / maxTextureWidthForCells ** 0), maxTextureWidthForCells), Math.min(Math.ceil(numberOfColorsForCells / maxTextureWidthForCells ** 1), maxTextureWidthForCells), Math.min(Math.ceil(numberOfColorsForCells / maxTextureWidthForCells ** 2), maxTextureWidthForCells)] : [numberOfColorsInUpperRowForPoints, 2, 1]; - const textureSize = textureDimensions[0] * textureDimensions[1] * textureDimensions[2]; - const scalarsArray = new Float64Array(textureSize); - - // Colors for NaN by default - scalarsArray.fill(NaN); - - // Colors in range - // Add 2 to also get color for min and max - const numberOfNonSpecialColors = model.numberOfColorsInRange; - const numberOfNonNaNColors = numberOfNonSpecialColors + 2; - const textureCoordinates = [0, 0, 0]; - const rangeMin = scaledRange[0]; - const rangeDifference = scaledRange[1] - scaledRange[0]; - for (let i = 0; i < numberOfNonNaNColors; ++i) { - const scalarsArrayIndex = getIndexFromCoordinates(textureCoordinates, textureDimensions); - - // Minus 1 start at min color - const intermediateValue = rangeMin + rangeDifference * (i - 1) / (numberOfNonSpecialColors - 1); - const scalarValue = useLogScale ? 10.0 ** intermediateValue : intermediateValue; - scalarsArray[scalarsArrayIndex] = scalarValue; - - // Colors are zigzagging to allow interpolation between two neighbor colors when coloring cells - updateZigzaggingCoordinates(textureCoordinates, textureDimensions); - } - const scalarsDataArray = vtkDataArray.newInstance({ - numberOfComponents: 1, - values: scalarsArray - }); - const colorsDataArray = model.lookupTable.mapScalars(scalarsDataArray, model.colorMode, 0); - model.colorTextureMap = vtkImageData.newInstance(); - model.colorTextureMap.setDimensions(textureDimensions); - model.colorTextureMap.getPointData().setScalars(colorsDataArray); - model.lookupTable.setAlpha(origAlpha); - } - - // Although I like the feature of applying magnitude to single component - // scalars, it is not how the old MapScalars for vertex coloring works. - const scalarComponent = model.lookupTable.getVectorMode() === VectorMode.MAGNITUDE && scalars.getNumberOfComponents() > 1 ? -1 : model.lookupTable.getVectorComponent(); - - // Create new coordinates if necessary, this function uses cache if possible. - // A zigzag pattern can't be used with point data, as interpolation of texture coordinates will be wrong - // A zigzag pattern can be used with cell data, as there will be no texture coordinates interpolation - // The texture generated using a zigzag pattern in one dimension is the same as without zigzag - // Therefore, the same code can be used for texture generation of point/cell data but not for texture coordinates - model.colorCoordinates = getOrCreateColorTextureCoordinates(scalars, scalarComponent, scaledRange, useLogScale, model.numberOfColorsInRange, model.colorTextureMap.getDimensions(), cellFlag); - }; - publicAPI.getPrimitiveCount = () => { - const input = publicAPI.getInputData(); - const pcount = { - points: input.getPoints().getNumberOfValues() / 3, - verts: input.getVerts().getNumberOfValues() - input.getVerts().getNumberOfCells(), - lines: input.getLines().getNumberOfValues() - 2 * input.getLines().getNumberOfCells(), - triangles: input.getPolys().getNumberOfValues() - 3 * input.getPolys().getNumberOfCells() - }; - return pcount; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - static: false, - lookupTable: null, - scalarVisibility: false, - scalarRange: [0, 1], - useLookupTableScalarRange: false, - colorMode: 0, - scalarMode: 0, - arrayAccessMode: 1, - // By_NAME - - colorMapColors: null, - // Same as this->Colors - areScalarsMappedFromCells: false, - renderTime: 0, - colorByArrayName: null, - transformCoordinate: null, - viewSpecificProperties: null, - customShaderAttributes: [] -}; - -// ---------------------------------------------------------------------------- -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkAbstractMapper.extend(publicAPI, model, initialValues); - macro.get(publicAPI, model, ['areScalarsMappedFromCells', 'colorCoordinates', 'colorTextureMap', 'colorMapColors']); - macro.setGet(publicAPI, model, ['arrayAccessMode', 'colorByArrayName', 'colorMode', 'lookupTable', 'renderTime', 'scalarMode', 'scalarVisibility', 'static', 'transformCoordinate', 'useLookupTableScalarRange', 'viewSpecificProperties', 'customShaderAttributes' // point data array names that will be transferred to the VBO - ]); - - macro.setGetArray(publicAPI, model, ['scalarRange'], 2); - if (!model.viewSpecificProperties) { - model.viewSpecificProperties = {}; - } - - // Object methods - vtkMapper2D(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkMapper2D'); - -// ---------------------------------------------------------------------------- - -var vtkMapper2D$1 = { - newInstance, - extend -}; - -export { vtkMapper2D$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Picker.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Picker.d.ts deleted file mode 100644 index 15f051ea..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Picker.d.ts +++ /dev/null @@ -1,159 +0,0 @@ -import { Vector3, Nullable } from './../../types'; -import vtkAbstractPicker, { - IAbstractPickerInitialValues, -} from './AbstractPicker'; -import vtkActor from './Actor'; -import vtkMapper from './Mapper'; -import vtkProp3D from './Prop3D'; -import vtkRenderer from './Renderer'; -import { vtkSubscription } from './../../interfaces'; - -export interface IPickerInitialValues extends IAbstractPickerInitialValues { - tolerance?: number; - mapperPosition?: number[]; - actors?: vtkActor[]; - pickedPositions?: Array; - globalTMin?: number; -} - -type OnPickChangeCallback = (pickedPositions: Vector3[]) => void; - -export interface vtkPicker extends vtkAbstractPicker { - /** - * Get a collection of all the actors that were intersected. - */ - getActors(): vtkActor[]; - - /** - * Get the dataset that was picked (if any). - */ - getDataSet(): any; - - /** - * Get mapper that was picked (if any) - */ - getMapper(): Nullable; - - /** - * Get position in mapper (i.e., non-transformed) coordinates of pick point. - */ - getMapperPosition(): Vector3; - - /** - * Get position in mapper (i.e., non-transformed) coordinates of pick point. - */ - getMapperPositionByReference(): Vector3; - - /** - * Get a list of the points the actors returned by getActors were intersected at. - */ - getPickedPositions(): Vector3[]; - - /** - * Get tolerance for performing pick operation. - */ - getTolerance(): number; - - /** - * Invoke a pick change event with the list of picked points. - * This function is called internally by VTK.js and is not intended for public use. - * @param {Vector3[]} pickedPositions - */ - invokePickChange(pickedPositions: Vector3[]): void; - - /** - * Execute the given callback when the pickChange event is fired. - * The callback receives an array of picked point positions. - * @param {OnPickChangeCallback} - */ - onPickChange(callback: OnPickChangeCallback): vtkSubscription; - - /** - * Perform pick operation with selection point provided. - * @param {Vector3} selection First two values should be x-y pixel coordinate, the third is usually zero. - * @param {vtkRenderer} renderer The renderer on which you want to do picking. - */ - pick(selection: Vector3, renderer: vtkRenderer): void; - - /** - * Perform pick operation with the provided selection and focal points. - * Both point are in world coordinates. - * @param {Vector3} selectionPoint - * @param {Vector3} focalPoint - * @param {vtkRenderer} renderer - */ - pick3DPoint( - selectionPoint: Vector3, - focalPoint: Vector3, - renderer: vtkRenderer - ): void; - - /** - * Set position in mapper coordinates of pick point. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setMapperPosition(x: number, y: number, z: number): boolean; - - /** - * Set position in mapper coordinates of pick point. - * @param {Vector3} mapperPosition The mapper coordinates of pick point. - */ - setMapperPositionFrom(mapperPosition: Vector3): boolean; - - /** - * Specify tolerance for performing pick operation. Tolerance is specified - * as fraction of rendering window size. (Rendering window size is measured - * across diagonal.) - * @param {Number} tolerance The tolerance value. - */ - setTolerance(tolerance: number): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkRenderer characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPickerInitialValues} [initialValues] - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPickerInitialValues -): void; - -/** - * Method use to create a new instance of vtkPicker with its focal point at the origin, - * and position=(0,0,1). The view up is along the y-axis, view angle is 30 degrees, - * and the clipping range is (.1,1000). - * @param {IPickerInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: IPickerInitialValues): vtkPicker; - -/** - * vtkPicker is used to select instances of vtkProp3D by shooting - * a ray into a graphics window and intersecting with the actor's bounding box. - * The ray is defined from a point defined in window (or pixel) coordinates, - * and a point located from the camera's position. - * - * vtkPicker may return more than one vtkProp3D, since more than one bounding box may be intersected. - * vtkPicker returns an unsorted list of props that were hit, and a list of the corresponding world points of the hits. - * For the vtkProp3D that is closest to the camera, vtkPicker returns the pick coordinates in world and untransformed mapper space, - * the prop itself, the data set, and the mapper. - * For vtkPicker the closest prop is the one whose center point (i.e., center of bounding box) projected on the view ray is closest - * to the camera. Subclasses of vtkPicker use other methods for computing the pick point. - * - * vtkPicker is used for quick geometric picking. If you desire more precise - * picking of points or cells based on the geometry of any vtkProp3D, use the - * subclasses vtkPointPicker or vtkCellPicker. For hardware-accelerated - * picking of any type of vtkProp, use vtkPropPicker or vtkWorldPointPicker. - * - * Note that only vtkProp3D's can be picked by vtkPicker. - */ -export declare const vtkPicker: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkPicker; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Picker.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Picker.js deleted file mode 100644 index 2a7508f6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Picker.js +++ /dev/null @@ -1,327 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkAbstractPicker from './AbstractPicker.js'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; -import { d as dot, l as normalize, s as subtract, f as distance2BetweenPoints } from '../../Common/Core/Math/index.js'; -import { vec3, mat4, vec4 } from 'gl-matrix'; - -const { - vtkErrorMacro -} = macro; -const { - vtkWarningMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkPicker methods -// ---------------------------------------------------------------------------- - -function vtkPicker(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPicker'); - const superClass = { - ...publicAPI - }; - function initialize() { - superClass.initialize(); - model.actors = []; - model.pickedPositions = []; - model.mapperPosition[0] = 0.0; - model.mapperPosition[1] = 0.0; - model.mapperPosition[2] = 0.0; - model.mapper = null; - model.dataSet = null; - model.globalTMin = Number.MAX_VALUE; - } - - /** - * Compute the tolerance in world coordinates. - * Do this by determining the world coordinates of the diagonal points of the - * window, computing the width of the window in world coordinates, and - * multiplying by the tolerance. - * @param {Number} selectionZ - * @param {Number} aspect - * @param {vtkRenderer} renderer - * @returns {Number} the computed tolerance - */ - function computeTolerance(selectionZ, aspect, renderer) { - let tolerance = 0.0; - const view = renderer.getRenderWindow().getViews()[0]; - const viewport = renderer.getViewport(); - const winSize = view.getSize(); - let x = winSize[0] * viewport[0]; - let y = winSize[1] * viewport[1]; - const normalizedLeftDisplay = view.displayToNormalizedDisplay(x, y, selectionZ); - const windowLowerLeft = renderer.normalizedDisplayToWorld(normalizedLeftDisplay[0], normalizedLeftDisplay[1], normalizedLeftDisplay[2], aspect); - x = winSize[0] * viewport[2]; - y = winSize[1] * viewport[3]; - const normalizedRightDisplay = view.displayToNormalizedDisplay(x, y, selectionZ); - const windowUpperRight = renderer.normalizedDisplayToWorld(normalizedRightDisplay[0], normalizedRightDisplay[1], normalizedRightDisplay[2], aspect); - for (let i = 0; i < 3; i++) { - tolerance += (windowUpperRight[i] - windowLowerLeft[i]) * (windowUpperRight[i] - windowLowerLeft[i]); - } - return Math.sqrt(tolerance); - } - - /** - * Perform picking on the given renderer, given a ray defined in world coordinates. - * @param {*} renderer - * @param {*} tolerance - * @param {*} p1World - * @param {*} p2World - * @returns true if we picked something else false - */ - function pick3DInternal(renderer, tolerance, p1World, p2World) { - const p1Mapper = new Float64Array(4); - const p2Mapper = new Float64Array(4); - const ray = []; - const hitPosition = []; - const props = model.pickFromList ? model.pickList : renderer.getActors(); - - // pre-allocate some arrays. - const transformScale = new Float64Array(3); - const pickedPosition = new Float64Array(3); - - // Loop over props. - // Transform ray (defined from position of camera to selection point) into coordinates of mapper (not - // transformed to actors coordinates! Reduces overall computation!!!). - // Note that only vtkProp3D's can be picked by vtkPicker. - props.forEach(prop => { - const mapper = prop.getMapper(); - const propIsFullyTranslucent = prop.getProperty?.().getOpacity?.() === 0.0; - const pickable = prop.getNestedPickable() && prop.getNestedVisibility() && !propIsFullyTranslucent; - if (!pickable) { - // prop cannot be picked - return; - } - - // The prop is candidate for picking: - // - get its composite matrix and invert it - // - use the inverted matrix to transform the ray points into mapper coordinates - model.transformMatrix = prop.getMatrix().slice(0); - mat4.transpose(model.transformMatrix, model.transformMatrix); - mat4.invert(model.transformMatrix, model.transformMatrix); - vec4.transformMat4(p1Mapper, p1World, model.transformMatrix); - vec4.transformMat4(p2Mapper, p2World, model.transformMatrix); - vec3.scale(p1Mapper, p1Mapper, 1 / p1Mapper[3]); - vec3.scale(p2Mapper, p2Mapper, 1 / p2Mapper[3]); - subtract(p2Mapper, p1Mapper, ray); - - // We now have the ray endpoints in mapper coordinates. - // Compare it with the mapper bounds to check if intersection is possible. - - // Get the bounding box of the mapper. - // Note that the tolerance is added to the bounding box to make sure things on the edge of the - // bounding box are picked correctly. - const bounds = mapper ? vtkBoundingBox.inflate(mapper.getBounds(), tolerance) : [...vtkBoundingBox.INIT_BOUNDS]; - if (vtkBoundingBox.intersectBox(bounds, p1Mapper, ray, hitPosition, [])) { - mat4.getScaling(transformScale, model.transformMatrix); - const t = model.intersectWithLine(p1Mapper, p2Mapper, tolerance * 0.333 * (transformScale[0] + transformScale[1] + transformScale[2]), prop, mapper); - if (t < Number.MAX_VALUE) { - pickedPosition[0] = (1.0 - t) * p1World[0] + t * p2World[0]; - pickedPosition[1] = (1.0 - t) * p1World[1] + t * p2World[1]; - pickedPosition[2] = (1.0 - t) * p1World[2] + t * p2World[2]; - const actorIndex = model.actors.indexOf(prop); - if (actorIndex !== -1) { - // If already in list, compare the previous picked position with the new one. - // Store the new one if it is closer from the ray endpoint. - const previousPickedPosition = model.pickedPositions[actorIndex]; - if (distance2BetweenPoints(p1World, pickedPosition) < distance2BetweenPoints(p1World, previousPickedPosition)) { - model.pickedPositions[actorIndex] = pickedPosition.slice(0); - } - } else { - model.actors.push(prop); - model.pickedPositions.push(pickedPosition.slice(0)); - } - } - } - }); - - // sort array by distance - const tempArray = []; - for (let i = 0; i < model.pickedPositions.length; i++) { - tempArray.push({ - actor: model.actors[i], - pickedPosition: model.pickedPositions[i], - distance2: distance2BetweenPoints(p1World, model.pickedPositions[i]) - }); - } - tempArray.sort((a, b) => { - const keyA = a.distance2; - const keyB = b.distance2; - // order the actors based on the distance2 attribute, so the near actors comes - // first in the list - if (keyA < keyB) return -1; - if (keyA > keyB) return 1; - return 0; - }); - model.pickedPositions = []; - model.actors = []; - tempArray.forEach(obj => { - model.pickedPositions.push(obj.pickedPosition); - model.actors.push(obj.actor); - }); - } - - // Intersect data with specified ray. - // Project the center point of the mapper onto the ray and determine its parametric value - model.intersectWithLine = (p1, p2, tolerance, prop, mapper) => { - if (!mapper) { - return Number.MAX_VALUE; - } - const center = mapper.getCenter(); - const ray = vec3.subtract(new Float64Array(3), p2, p1); - const rayFactor = dot(ray, ray); - if (rayFactor === 0.0) { - return 2.0; - } - - // Project the center point onto the ray and determine its parametric value - const t = (ray[0] * (center[0] - p1[0]) + ray[1] * (center[1] - p1[1]) + ray[2] * (center[2] - p1[2])) / rayFactor; - return t; - }; - - // To be overridden in subclasses - publicAPI.pick = (selection, renderer) => { - if (selection.length !== 3) { - vtkWarningMacro('vtkPicker.pick - selection needs three components'); - } - if (!renderer) { - vtkErrorMacro('vtkPicker.pick - renderer cannot be null'); - throw new Error('renderer cannot be null'); - } - initialize(); - const selectionX = selection[0]; - const selectionY = selection[1]; - let selectionZ = selection[2]; - model.renderer = renderer; - model.selectionPoint[0] = selectionX; - model.selectionPoint[1] = selectionY; - model.selectionPoint[2] = selectionZ; - const p1World = new Float64Array(4); - const p2World = new Float64Array(4); - - // Get camera focal point and position. Convert to display (screen) - // coordinates. We need a depth value for z-buffer. - const camera = renderer.getActiveCamera(); - const cameraPos = camera.getPosition(); - const cameraFP = camera.getFocalPoint(); - const view = renderer.getRenderWindow().getViews()[0]; - const dims = view.getViewportSize(renderer); - if (dims[1] === 0) { - vtkWarningMacro('vtkPicker.pick - viewport area is 0'); - return; - } - const aspect = dims[0] / dims[1]; - let displayCoords = []; - displayCoords = renderer.worldToNormalizedDisplay(cameraFP[0], cameraFP[1], cameraFP[2], aspect); - displayCoords = view.normalizedDisplayToDisplay(displayCoords[0], displayCoords[1], displayCoords[2]); - selectionZ = displayCoords[2]; - - // Convert the selection point into world coordinates. - const normalizedDisplay = view.displayToNormalizedDisplay(selectionX, selectionY, selectionZ); - const worldCoords = renderer.normalizedDisplayToWorld(normalizedDisplay[0], normalizedDisplay[1], normalizedDisplay[2], aspect); - for (let i = 0; i < 3; i++) { - model.pickPosition[i] = worldCoords[i]; - } - - // Compute the ray endpoints. The ray is along the line running from - // the camera position to the selection point, starting where this line - // intersects the front clipping plane, and terminating where this - // line intersects the back clipping plane. - const ray = []; - for (let i = 0; i < 3; i++) { - ray[i] = model.pickPosition[i] - cameraPos[i]; - } - const cameraDOP = []; - for (let i = 0; i < 3; i++) { - cameraDOP[i] = cameraFP[i] - cameraPos[i]; - } - normalize(cameraDOP); - const rayLength = dot(cameraDOP, ray); - if (rayLength === 0.0) { - vtkWarningMacro('Picker::Pick Cannot process points'); - return; - } - const clipRange = camera.getClippingRange(); - let tF; - let tB; - if (camera.getParallelProjection()) { - tF = clipRange[0] - rayLength; - tB = clipRange[1] - rayLength; - for (let i = 0; i < 3; i++) { - p1World[i] = model.pickPosition[i] + tF * cameraDOP[i]; - p2World[i] = model.pickPosition[i] + tB * cameraDOP[i]; - } - } else { - tF = clipRange[0] / rayLength; - tB = clipRange[1] / rayLength; - for (let i = 0; i < 3; i++) { - p1World[i] = cameraPos[i] + tF * ray[i]; - p2World[i] = cameraPos[i] + tB * ray[i]; - } - } - p1World[3] = 1.0; - p2World[3] = 1.0; - const tolerance = computeTolerance(selectionZ, aspect, renderer) * model.tolerance; - pick3DInternal(model.renderer, tolerance, p1World, p2World); - }; - publicAPI.pick3DPoint = (selectionPoint, focalPoint, renderer) => { - if (!renderer) { - throw new Error('renderer cannot be null'); - } - initialize(); - model.renderer = renderer; - vec3.copy(model.selectionPoint, selectionPoint); - const view = renderer.getRenderWindow().getViews()[0]; - const dims = view.getViewportSize(renderer); - if (dims[1] === 0) { - vtkWarningMacro('vtkPicker.pick3DPoint - viewport area is 0'); - return; - } - const aspect = dims[0] / dims[1]; - const tolerance = computeTolerance(model.selectionPoint[2], aspect, renderer) * model.tolerance; - pick3DInternal(renderer, tolerance, selectionPoint, focalPoint); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - tolerance: 0.025, - mapperPosition: [0.0, 0.0, 0.0], - mapper: null, - dataSet: null, - actors: [], - pickedPositions: [], - transformMatrix: null, - globalTMin: Number.MAX_VALUE -}; - -// ---------------------------------------------------------------------------- -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkAbstractPicker.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['tolerance']); - macro.setGetArray(publicAPI, model, ['mapperPosition'], 3); - macro.get(publicAPI, model, ['mapper', 'dataSet', 'actors', 'pickedPositions']); - macro.event(publicAPI, model, 'pickChange'); - vtkPicker(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPicker'); - -// ---------------------------------------------------------------------------- - -var vtkPicker$1 = { - newInstance, - extend -}; - -export { vtkPicker$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/PixelSpaceCallbackMapper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/PixelSpaceCallbackMapper.d.ts deleted file mode 100644 index 5f7416f5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/PixelSpaceCallbackMapper.d.ts +++ /dev/null @@ -1,145 +0,0 @@ -import { Vector3 } from './../../types'; -import vtkCamera from './Camera'; -import vtkMapper, { IMapperInitialValues } from './Mapper'; - -/** - * - */ -export interface IPixelSpaceCallbackMapperInitialValues - extends IMapperInitialValues { - callback?: any; - useZValues?: boolean; -} - -interface IWindowSize { - usize: number; - vsize: number; -} - -export interface vtkPixelSpaceCallbackMapper extends vtkMapper { - /** - * - */ - getCallback(): any; - - /** - * - */ - getUseZValues(): boolean; - - /** - * - * @param dataset - * @param camera - * @param aspect - * @param windowSize - * @param depthValues - */ - invokeCallback( - dataset: any, - camera: vtkCamera, - aspect: number, - windowSize: IWindowSize, - depthValues: number[] - ): void; - - /** - * Set the callback function the mapper will call, during the rendering - * process, with the screen coords of the points in dataset. The callback - * function will have the following parameters: - * - * // An array of 4-component arrays, in the index-order of the datasets points - * - * coords: [ - * [screenx, screeny, screenz, zBufValue], - * ... - * ] - - * // The active camera of the renderer, in case you may need to compute alternate - * // depth values for your dataset points. Using the sphere mapper in your - * // application code is one example where this may be useful, so that you can - * // account for that mapper's radius when doing depth checks. - * - * camera: vtkCamera - - * // The aspect ratio of the render view and depthBuffer - * aspect: float - - * // A Uint8Array of size width * height * 4, where the zbuffer values are - * // encoded in the red and green components of each pixel. This will only - * // be non-null after you call setUseZValues(true) on the mapper before - * // rendering. - * - * depthBuffer: Uint8Array - * - * @example - * ```js - * // there is some text canvas and label data - * const textCtx = textCanvas.getContext('2d'); - * const psMapper = vtkPixelSpaceCallbackMapper.newInstance(); - * psMapper.setInputData(pointPoly); - * psMapper.setCallback((coords, camera, aspect, depthBuffer) => { - * textCtx.clearRect(0, 0, oglCtx.drawingBufferWidth, oglCtx.drawingBufferHeight); - * coords.forEach((xy, idx) => { - * let label = data.labels[idx] - * textCtx.fillStyle = "white"; - * textCtx.font = "12px Arial"; - * textCtx.fillText(label, xy[0], oglCtx.drawingBufferHeight - xy[1]); - * }) - * }) - * - * const textActor = vtkActor.newInstance(); - * textActor.setMapper(psMapper); - * renderer.addActor(textActor); - * ``` - * - * @param callback called with coords, camera, aspect and depthBuffer - */ - setCallback( - callback: ( - coords: Vector3[], - camera: vtkCamera, - aspect: number, - depthBuffer: Uint8Array - ) => any - ): boolean; - - /** - * Set whether or not this mapper should capture the zbuffer during - * rendering. Useful for allowing depth checks in the application code. - * @param useZValues - */ - setUseZValues(useZValues: boolean): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkPixelSpaceCallbackMapper characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPixelSpaceCallbackMapperInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPixelSpaceCallbackMapperInitialValues -): void; - -/** - * Method use to create a new instance of vtkPixelSpaceCallbackMapper - * @param {IPixelSpaceCallbackMapperInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IPixelSpaceCallbackMapperInitialValues -): vtkPixelSpaceCallbackMapper; - -/** - * vtkPixelSpaceCallbackMapper iterates over the points of its input dataset, - * using the transforms from the active camera to compute the screen coordinates - * of each point. - */ -export declare const vtkPixelSpaceCallbackMapper: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkPixelSpaceCallbackMapper; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/PixelSpaceCallbackMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/PixelSpaceCallbackMapper.js deleted file mode 100644 index 1462e35b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/PixelSpaceCallbackMapper.js +++ /dev/null @@ -1,79 +0,0 @@ -import { mat4, vec3 } from 'gl-matrix'; -import { m as macro } from '../../macros2.js'; -import vtkMapper from './Mapper.js'; - -// ---------------------------------------------------------------------------- -// vtkPixelSpaceCallbackMapper methods -// ---------------------------------------------------------------------------- - -function vtkPixelSpaceCallbackMapper(publicAPI, model) { - model.classHierarchy.push('vtkPixelSpaceCallbackMapper'); - if (!model.callback) { - model.callback = () => {}; - } - publicAPI.invokeCallback = (dataset, camera, aspect, windowSize, depthValues) => { - if (!model.callback) { - return; - } - const matrix = camera.getCompositeProjectionMatrix(aspect, -1, 1); - mat4.transpose(matrix, matrix); - const dataPoints = dataset.getPoints(); - const result = new Float64Array(3); - const width = windowSize.usize; - const height = windowSize.vsize; - const hw = width / 2; - const hh = height / 2; - const coords = []; - for (let pidx = 0; pidx < dataPoints.getNumberOfPoints(); pidx += 1) { - const point = dataPoints.getPoint(pidx); - vec3.transformMat4(result, point, matrix); - const coord = [result[0] * hw + hw, result[1] * hh + hh, result[2], 0]; - if (depthValues) { - const linIdx = Math.floor(coord[1]) * width + Math.floor(coord[0]); - const idx = linIdx * 4; - const r = depthValues[idx] / 255; - const g = depthValues[idx + 1] / 255; - const z = (r * 256 + g) / 257; - coord[3] = z * 2 - 1; - } - coords.push(coord); - } - model.callback(coords, camera, aspect, depthValues, [width, height]); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - callback: null, - useZValues: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkMapper.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['callback', 'useZValues']); - - // Object methods - vtkPixelSpaceCallbackMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPixelSpaceCallbackMapper'); - -// ---------------------------------------------------------------------------- - -var vtkPixelSpaceCallbackMapper$1 = { - newInstance, - extend -}; - -export { vtkPixelSpaceCallbackMapper$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/PointPicker.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/PointPicker.d.ts deleted file mode 100644 index accff111..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/PointPicker.d.ts +++ /dev/null @@ -1,78 +0,0 @@ -import vtkPicker, { IPickerInitialValues } from './Picker'; -import vtkMapper from './Mapper'; -import { Vector3 } from './../../types'; -import vtkProp3D from './Prop3D'; -import { Nullable } from './../../types'; - -interface IPointPickerInitialValues extends IPickerInitialValues { - pointId?: number; - pointIJK?: number[]; - useCells?: boolean; -} - -export interface vtkPointPicker extends vtkPicker { - /** - * - */ - getPointIJK(): number[]; - - /** - * - */ - getPointIJKByReference(): number[]; - - /** - * Get the id of the picked point. - * If PointId = -1, nothing was picked. - */ - getPointId(): number; - - /** - * - */ - getUseCells(): boolean; - - /** - * Specify whether the point search should be based on cell points or directly on the point list. - * @param useCells - */ - setUseCells(useCells: boolean): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkPointPicker characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPointPickerInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPointPickerInitialValues -): void; - -/** - * Method use to create a new instance of vtkPointPicker - * @param {IPointPickerInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IPointPickerInitialValues -): vtkPointPicker; - -/** - * vtkPointPicker is used to select a point by shooting a ray into a graphics window - * and intersecting with actor's defining geometry - specifically its points. - * Beside returning coordinates, actor, and mapper, vtkPointPicker returns the id of the point - * projecting closest onto the ray (within the specified tolerance). - * Ties are broken (i.e., multiple points all projecting within the tolerance along - * the pick ray) by choosing the point closest to the ray origin (i.e., closest to the eye). - * - * @see [vtkPicker](./Rendering_Core_Picker.html) - * @see [vtkCellPicker](./Rendering_Core_CellPicker.html) - */ -export declare const vtkPointPicker: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkPointPicker; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/PointPicker.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/PointPicker.js deleted file mode 100644 index 0e26964c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/PointPicker.js +++ /dev/null @@ -1,166 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { d as dot } from '../../Common/Core/Math/index.js'; -import vtkPicker from './Picker.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkPointPicker methods -// ---------------------------------------------------------------------------- - -function vtkPointPicker(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPointPicker'); - model.intersectWithLine = (p1, p2, tolerance, prop, mapper) => { - let tMin = Number.MAX_VALUE; - if (mapper.isA('vtkImageMapper') || mapper.isA('vtkImageArrayMapper')) { - const pickData = mapper.intersectWithLineForPointPicking(p1, p2); - if (pickData) { - tMin = pickData.t; - model.pointIJK = pickData.ijk; - } - } else if (mapper.isA('vtkMapper')) { - tMin = model.intersectActorWithLine(p1, p2, tolerance, mapper); - } - return tMin; - }; - model.intersectActorWithLine = (p1, p2, tolerance, mapper) => { - // Get dataset - const input = mapper.getInputData(); - - // Determine appropriate info - let ptId = 0; - const numPts = input.getPoints().getNumberOfPoints(); - if (numPts <= ptId) { - return 2.0; - } - const ray = []; - for (let i = 0; i < 3; i++) { - ray[i] = p2[i] - p1[i]; - } - const rayFactor = dot(ray, ray); - if (rayFactor === 0.0) { - vtkErrorMacro('Cannot process points'); - return 2.0; - } - let t; - let minPtId = -1; - let tMin = Number.MAX_VALUE; - let minPtDist = Number.MAX_VALUE; - const projXYZ = []; - const x = []; - const points = input.getPoints(); - if (model.useCells) { - const cellData = input.getPolys().getData(); - const nbPointsPerCell = cellData[0]; - const nbCells = input.getPolys().getNumberOfCells(); - for (let cellID = 0; cellID < nbCells; cellID++) { - const firstPointIndex = cellID * nbPointsPerCell + 1; - const lastPointIndex = firstPointIndex + nbPointsPerCell; - for (let pointIndex = firstPointIndex; pointIndex < lastPointIndex; pointIndex++) { - const pointDataIndex = cellData[pointIndex]; - points.getPoint(pointDataIndex, x); - t = (ray[0] * (x[0] - p1[0]) + ray[1] * (x[1] - p1[1]) + ray[2] * (x[2] - p1[2])) / rayFactor; - - // If we find a point closer than we currently have, see whether it - // lies within the pick tolerance and clipping planes. We keep track - // of the point closest to the line (use a fudge factor for points - // nearly the same distance away.) - if (t >= 0.0 && t <= 1.0 && t <= tMin + model.tolerance) { - let maxDist = 0.0; - for (let i = 0; i < 3; i++) { - projXYZ[i] = p1[i] + t * ray[i]; - const dist = Math.abs(x[i] - projXYZ[i]); - if (dist > maxDist) { - maxDist = dist; - } - } // end for i - if (maxDist <= tolerance && maxDist < minPtDist) { - // within tolerance - minPtId = ptId; - x[0]; - x[1]; - x[2]; - minPtDist = maxDist; - tMin = t; - } - } - } // end for pointIndex - } // end for cellID - } else { - // end if model.useCells - for (ptId = 0; ptId < numPts; ptId++) { - points.getPoint(ptId, x); - t = (ray[0] * (x[0] - p1[0]) + ray[1] * (x[1] - p1[1]) + ray[2] * (x[2] - p1[2])) / rayFactor; - - // If we find a point closer than we currently have, see whether it - // lies within the pick tolerance and clipping planes. We keep track - // of the point closest to the line (use a fudge factor for points - // nearly the same distance away.) - if (t >= 0.0 && t <= 1.0 && t <= tMin + model.tolerance) { - let maxDist = 0.0; - for (let i = 0; i < 3; i++) { - projXYZ[i] = p1[i] + t * ray[i]; - const dist = Math.abs(x[i] - projXYZ[i]); - if (dist > maxDist) { - maxDist = dist; - } - } // end for i - if (maxDist <= tolerance && maxDist < minPtDist) { - // within tolerance - minPtId = ptId; - x[0]; - x[1]; - x[2]; - minPtDist = maxDist; - tMin = t; - } - } - } - } - if (minPtId > -1 && tMin < model.globalTMin) { - model.globalTMin = tMin; - model.pointId = minPtId; - } - return tMin; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - pointId: -1, - pointIJK: [], - useCells: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkPicker.extend(publicAPI, model, initialValues); - macro.getArray(publicAPI, model, ['pointIJK']); - macro.get(publicAPI, model, ['pointId']); - macro.setGet(publicAPI, model, ['useCells']); - vtkPointPicker(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPointPicker'); - -// ---------------------------------------------------------------------------- - -var vtkPointPicker$1 = { - newInstance, - extend -}; - -export { vtkPointPicker$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Prop.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Prop.d.ts deleted file mode 100644 index ddc29535..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Prop.d.ts +++ /dev/null @@ -1,311 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import vtkActor from './Actor'; -import vtkActor2D from './Actor2D'; -import vtkTexture from './Texture'; -import vtkVolume from './Volume'; -import { CoordinateSystem } from './Prop/Constants'; - -export interface IPropInitialValues { - visibility?: boolean; - pickable?: boolean; - dragable?: boolean; - useBounds?: boolean; - allocatedRenderTime?: number; - estimatedRenderTime?: number; - savedEstimatedRenderTime?: number; - renderTimeMultiplier?: number; - textures?: vtkTexture[]; -} - -export interface vtkProp extends vtkObject { - /** - * - * @param estimatedRenderTime - */ - addEstimatedRenderTime(estimatedRenderTime: number): void; - - /** - * To be reimplemented by subclasses. - * For some exporters and other other operations we must be able - * to collect all the actors or volumes. - */ - getActors(): vtkActor[]; - - /** - * Not implemented yet - */ - getActors2D(): vtkActor2D[]; - - /** - * Get the coordinate system this prop is defined in. - */ - getCoordinateSystem(): CoordinateSystem; - - /** - * Get the value of the dragable instance variable. - * @see getNestedDragable - * @see getPickable - */ - getDragable(): boolean; - - /** - * Combine dragabe property with optional ancestor props dragable properties. - * It is used to decide whether the prop can be mouse dragged. - * @see getDragable - * @see getParentProp - */ - getNestedDragable(): boolean; - - /** - * Get visibility of this vtkProp. - * @see getNestedVisibility - * @see getPickable - */ - getVisibility(): boolean; - - /** - * Combine visibility property with optional ancestor props visibility properties. - * It is used to decide whether the prop should be rendered. - * @see getVisibility - * @see getParentProp - */ - getNestedVisibility(): boolean; - - /** - * Get the pickable instance variable. - * @see getNestedPickable - * @see getDragable - */ - getPickable(): boolean; - - /** - * Combine pickable property with optional ancestor props pickable properties. - * It is used to decide whether the prop should be rendered during a selection rendering. - * @see getPickable - * @see getParentProp - */ - getNestedPickable(): boolean; - - /** - * Return the mtime of anything that would cause the rendered image to appear differently. - * Usually this involves checking the mtime of the prop plus anything else it depends on such as properties, - * textures etc. - */ - getRedrawMTime(): number; - - /** - * - */ - getRendertimemultiplier(): number; - - /** - * The value is returned in seconds. For simple geometry the accuracy may not be great - * due to buffering. For ray casting, which is already multi-resolution, - * the current resolution of the image is factored into the time. We need the viewport - * for viewing parameters that affect timing. The no-arguments version simply returns the value of the variable with no estimation. - */ - getEstimatedRenderTime(): number; - - /** - * - */ - getAllocatedRenderTime(): number; - - /** - * - */ - getNestedProps(): any; - - /** - * Return parent prop set by setParentProp - * @see setParentProp - */ - getParentProp(): vtkProp; - - /** - * - * Not implemented yet - */ - getVolumes(): vtkVolume[]; - - /** - * - */ - getUseBounds(): boolean; - - /** - * - */ - getSupportsSelection(): boolean; - - /** - * - */ - getTextures(): vtkTexture[]; - - /** - * - * @param {vtkTexture} texture The vtkTexture instance. - * - */ - hasTexture(texture: vtkTexture): boolean; - - /** - * - * @param {vtkTexture} texture The vtkTexture instance. - */ - addTexture(texture: vtkTexture): void; - - /** - * - * @param {vtkTexture} texture The vtkTexture instance. - */ - removeTexture(texture: vtkTexture): void; - - /** - * - */ - removeAllTextures(): void; - - /** - * This method is used to restore that old value should the render be aborted. - */ - restoreEstimatedRenderTime(): void; - - /** - * - * @param allocatedRenderTime - */ - setAllocatedRenderTime(allocatedRenderTime: number): void; - - /** - * Set the coordinate system that this prop's data should be in. - * Once the prop has applied any modifiers such as position, orientation - * userMatrix the resulting values will be treated as in the specified - * coordinate system. - * Not all mappers support all coordinate systems. - * @param {CoordinateSystem} coordinateSystem - */ - setCoordinateSystem(coordinateSystem: CoordinateSystem): void; - - /** - * Indicate that this prop's data should be in world coordinates. - * Once the prop has applied any modifiers such as position, orientation - * userMatrix the resulting values will be treated as in world coordinates. - * Not all mappers support all coordinate systems. - */ - setCoordinateSystemToWorld(): void; - - /** - * Indicate that this prop's data should be in display coordinates. - * Once the prop has applied any modifiers such as position, orientation - * userMatrix the resulting values will be treated as in pixel coordinates. - * That is pixel coordinate with 0,0 in the lower left of the viewport - * and a z range of -1 at the near plane and 1 at the far. - * Not all mappers support all coordinate systems. - */ - setCoordinateSystemToDisplay(): void; - - /** - * Set whether prop is dragable. - * Even if true, prop may not be dragable if an ancestor prop is not dragable. - * @param dragable - * @default true - * @see getDragable - * @see combineDragable - */ - setDragable(dragable: boolean): boolean; - - /** - * - * @param estimatedRenderTime - */ - setEstimatedRenderTime(estimatedRenderTime: number): void; - - /** - * Set parent prop used by combineVisibility(), combinePickable(), combineDragable() - * @param parentProp - * @see combineVisibility - * @see combinePickable - * @see combineDragable - * @default null - */ - setParentProp(parentProp: vtkProp): void; - - /** - * Set whether prop is pickable. - * Even if true, prop may not be pickable if an ancestor prop is not pickable. - * @param pickable - * @default true - * @see getPickable - * @see combinePickable - */ - setPickable(pickable: boolean): boolean; - - /** - * Set whether prop is visible. - * Even if true, prop may not be visible if an ancestor prop is not visible. - * @param visibility - * @default true - * @see getVisibility - * @see combineVisibility - */ - setVisibility(visibility: boolean): boolean; - - /** - * In case the Visibility flag is true, tell if the bounds of this prop should be taken into - * account or ignored during the computation of other bounding boxes, like in vtkRenderer::ResetCamera(). - * @param useBounds - * @default true - */ - setUseBounds(useBounds: boolean): boolean; - - /** - * This is used for culling and is a number between 0 and 1. It is used to create the allocated render time value. - * @param {Number} renderTimeMultiplier - */ - setRenderTimeMultiplier(renderTimeMultiplier: number): boolean; - - /** - * Not Implemented yet - * Method fires PickEvent if the prop is picked. - */ - pick(): any; - - /** - * Not Implemented yet - */ - hasKey(): any; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkProp characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPropInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPropInitialValues -): void; - -/** - * Method use to create a new instance of vtkProp - * @param {IPropInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: IPropInitialValues): vtkProp; - -/** - * vtkProp is an abstract superclass for any objects that can exist in a - * rendered scene (either 2D or 3D). Instances of vtkProp may respond to - * various render methods (e.g., RenderOpaqueGeometry()). vtkProp also - * defines the API for picking, LOD manipulation, and common instance - * variables that control visibility, picking, and dragging. - */ -export declare const vtkProp: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkProp; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Prop.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Prop.js deleted file mode 100644 index cc166804..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Prop.js +++ /dev/null @@ -1,127 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import Constants from './Prop/Constants.js'; - -const { - CoordinateSystem -} = Constants; -function notImplemented(method) { - return () => macro.vtkErrorMacro(`vtkProp::${method} - NOT IMPLEMENTED`); -} - -// ---------------------------------------------------------------------------- -// vtkProp methods -// ---------------------------------------------------------------------------- - -function vtkProp(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkProp'); - publicAPI.getMTime = () => { - let m1 = model.mtime; - for (let index = 0; index < model.textures.length; ++index) { - const m2 = model.textures[index].getMTime(); - if (m2 > m1) { - m1 = m2; - } - } - return m1; - }; - publicAPI.processSelectorPixelBuffers = (selector, pixeloffsets) => {}; - publicAPI.getNestedProps = () => null; - publicAPI.getActors = () => []; - publicAPI.getActors2D = () => []; - publicAPI.getVolumes = () => []; - publicAPI.pick = notImplemented('pick'); - publicAPI.hasKey = notImplemented('hasKey'); - publicAPI.getNestedVisibility = () => model.visibility && (!model._parentProp || model._parentProp.getNestedVisibility()); - publicAPI.getNestedPickable = () => model.pickable && (!model._parentProp || model._parentProp.getNestedPickable()); - publicAPI.getNestedDragable = () => model.dragable && (!model._parentProp || model._parentProp.getNestedDragable()); - publicAPI.getRedrawMTime = () => model.mtime; - publicAPI.setEstimatedRenderTime = t => { - model.estimatedRenderTime = t; - model.savedEstimatedRenderTime = t; - }; - publicAPI.restoreEstimatedRenderTime = () => { - model.estimatedRenderTime = model.savedEstimatedRenderTime; - }; - publicAPI.addEstimatedRenderTime = t => { - model.estimatedRenderTime += t; - }; - publicAPI.setAllocatedRenderTime = t => { - model.allocatedRenderTime = t; - model.savedEstimatedRenderTime = model.estimatedRenderTime; - model.estimatedRenderTime = 0; - }; - publicAPI.getSupportsSelection = () => false; - publicAPI.getTextures = () => model.textures; - publicAPI.hasTexture = texture => model.textures.indexOf(texture) !== -1; - publicAPI.addTexture = texture => { - if (texture && !publicAPI.hasTexture(texture)) { - model.textures = model.textures.concat(texture); - publicAPI.modified(); - } - }; - publicAPI.removeTexture = texture => { - const newTextureList = model.textures.filter(item => item !== texture); - if (model.textures.length !== newTextureList.length) { - model.textures = newTextureList; - publicAPI.modified(); - } - }; - publicAPI.removeAllTextures = () => { - model.textures = []; - publicAPI.modified(); - }; - - // not all mappers support all coordinate systems - publicAPI.setCoordinateSystemToWorld = () => publicAPI.setCoordinateSystem(CoordinateSystem.WORLD); - publicAPI.setCoordinateSystemToDisplay = () => publicAPI.setCoordinateSystem(CoordinateSystem.DISPLAY); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // _parentProp: null, - allocatedRenderTime: 10, - coordinateSystem: CoordinateSystem.WORLD, - dragable: true, - estimatedRenderTime: 0, - paths: null, - pickable: true, - renderTimeMultiplier: 1, - savedEstimatedRenderTime: 0, - textures: [], - useBounds: true, - visibility: true -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['estimatedRenderTime', 'allocatedRenderTime']); - macro.setGet(publicAPI, model, ['_parentProp', 'coordinateSystem', 'dragable', 'pickable', 'renderTimeMultiplier', 'useBounds', 'visibility']); - macro.moveToProtected(publicAPI, model, ['parentProp']); - - // Object methods - vtkProp(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkProp'); - -// ---------------------------------------------------------------------------- - -var vtkProp$1 = { - newInstance, - extend, - ...Constants -}; - -export { vtkProp$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Prop/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Prop/Constants.d.ts deleted file mode 100644 index 234fae89..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Prop/Constants.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export declare enum CoordinateSystem { - WORLD = 0, - DISPLAY = 1, -} - -declare const _default: { - CoordinateSystem: typeof CoordinateSystem; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Prop/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Prop/Constants.js deleted file mode 100644 index 89bc549d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Prop/Constants.js +++ /dev/null @@ -1,9 +0,0 @@ -const CoordinateSystem = { - DISPLAY: 0, - WORLD: 1 -}; -var Constants = { - CoordinateSystem -}; - -export { CoordinateSystem, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Prop3D.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Prop3D.d.ts deleted file mode 100644 index c184189c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Prop3D.d.ts +++ /dev/null @@ -1,332 +0,0 @@ -import { mat4, quat } from 'gl-matrix'; -import { Bounds, Vector3, Range } from './../../types'; -import vtkProp, { IPropInitialValues } from './Prop'; -import { vtkObject } from './../../interfaces'; - -export interface IProp3DInitialValues extends IPropInitialValues { - origin?: number[]; - position?: Vector3; - orientation?: number[]; - scale?: number[]; - bounds?: Bounds; - isIdentity?: boolean; -} - -export interface vtkProp3D extends vtkProp { - /** - * Add the position of the Prop3D in world coordinates. - * @param deltaXYZ - */ - addPosition(deltaXYZ: number[]): void; - - /** - * Get the bounds of this actor as [xmin, xmax, ymin, ymax, zmin, zmax]. - * They are the bounds of the underlying mapper, transformed using the actor's matrix. - * @return {Bounds} The bounds for the actor. - */ - getBounds(): Bounds; - - /** - * Same as getBounds() but the returned array is not copied, so it should not be written to. - */ - getBoundsByReference(): Bounds; - - /** - * Check if there was a modification or transformation. - * @default null - * @return {Boolean} true if no modification/transformation have been set. - */ - getIsIdentity(): boolean; - - /** - * The ordering in which these rotations must be done to generate the same - * matrix is RotateZ, RotateX, and finally RotateY. See also `SetOrientation`. - * @return {Number[]} the orientation of the Prop3D as s vector of X, Y and Z rotation. - */ - getOrientation(): number[]; - - /** - * Get a reference of the orientation of the Prop3D as s vector of X, Y and Z - * rotation. - * @return {Number[]} the orientation of the Prop3D as s vector of X, Y and Z rotation. - */ - getOrientationByReference(): number[]; - - /** - * Get the WXYZ orientation of the Prop3D. - */ - getOrientationWXYZ(): number[]; - - /** - * Get the origin of the Prop3D. This is the point about which all rotations - * take place. - */ - getOrigin(): number[]; - - /** - * Get a reference of the origin of the Prop3D. This is the point about - * which all rotations take place. - */ - getOriginByReference(): number[]; - - /** - * Get the position of the Prop3D in world coordinates. - */ - getPosition(): number[]; - - /** - * Get a refrence of the position of the Prop3D in world coordinates. - */ - getPositionByReference(): number[]; - - /** - * Get the scale of the actor. - */ - getScale(): number[]; - - /** - * Get a refrence of the scale of the actor. - */ - getScaleByReference(): number[]; - - /** - * Get the WXYZ orientation of the Prop3D. - */ - getOrientationWXYZ(): number[]; - - /** - * Get the orientation quaternion of the Prop3D. - * out is optional and will be created if not supplied. - * @param {quat | undefined} out - */ - getOrientationQuaternion(out?: quat): quat; - - /** - * Get a reference to the Prop3D’s 4x4 composite matrix. - * Get the matrix from the position, origin, scale and orientation This - * matrix is cached, so multiple GetMatrix() calls will be efficient. - */ - getMatrix(): mat4; - - /** - * Get the center of the bounding box in world coordinates. - */ - getCenter(): number[]; - - /** - * Get the length of the diagonal of the bounding box. - */ - getLength(): number; - - /** - * Get the Prop3D's x range in world coordinates. - */ - getXRange(): Range; - - /** - * Get the Prop3D's y range in world coordinates. - */ - getYRange(): Range; - - /** - * Get the Prop3D's z range in world coordinates. - */ - getZRange(): Range; - - /** - * Get the transformation matrix set for your own use. - */ - getUserMatrix(): mat4; - - /** - * Get the actor property for the specified mapper input port, which defaults to 0 - * It controls this actors rendering properties. If one isn’t specified, - * then one will be generated automatically. Multiple actors can share one - * property object. - * @param {number} mapperInputPort Defaults to 0 - */ - getProperty(mapperInputPort?: number): vtkObject; - - /** - * Get the actor properties array - * Each element of the array corresponds to a mapper input port - */ - getProperties(): vtkObject[]; - - /** - * Rotate the Prop3D in degrees about the X axis using the right hand - * rule. The axis is the Prop3D’s X axis, which can change as other - * rotations are performed. To rotate about the world X axis use - * RotateWXYZ (angle, 1, 0, 0). This rotation is applied before all - * others in the current transformation matrix. - * @param {Number} angle The angle value. - */ - rotateX(angle: number): void; - - /** - * Rotate the Prop3D in degrees about the Y axis using the right hand - * rule. The axis is the Prop3D’s Y axis, which can change as other - * rotations are performed. To rotate about the world Y axis use - * RotateWXYZ (angle, 0, 1, 0). This rotation is applied before all - * others in the current transformation matrix. - * @param {Number} angle The angle value. - */ - rotateY(angle: number): void; - - /** - * Rotate the Prop3D in degrees about the Z axis using the right hand - * rule. The axis is the Prop3D’s Z axis, which can change as other - * rotations are performed. To rotate about the world Z axis use - * RotateWXYZ (angle, 0, 0, 1). This rotation is applied before all - * others in the current transformation matrix. - * @param {Number} angle The angle value. - */ - rotateZ(angle: number): void; - - /** - * Rotate the Prop3D in degrees about an arbitrary axis specified by - * the last three arguments. The axis is specified in world - * coordinates. To rotate an about its model axes, use RotateX, - * RotateY, RotateZ. - * @param {Number} degrees The angle value. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - rotateWXYZ(degrees: number, x: number, y: number, z: number): void; - - /** - * Rotate the Prop3D by the provided orientation quaternion. - * If the provided quaternion is identity (~epsilon), this function does nothing. - * The quaternion should follow the gl-matrix convention: [x,y,z,w] - * @param {quat} orientationQuaternion The quaternion to rotate the prop by. - */ - rotateQuaternion(orientationQuaternion: quat): void; - - /** - * Orientation is specified as X, Y and Z rotations in that order, - * but they are performed as RotateZ, RotateX, and finally RotateY. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setOrientation(x: number, y: number, z: number): boolean; - - /** - * Set the origin of the Prop3D. This is the point about which all rotations take place. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setOrigin(x: number, y: number, z: number): boolean; - - /** - * Set the origin of the Prop3D. This is the point about which all rotations - * take place. - * @param {Number[]} origin - */ - setOrigin(origin: number[]): boolean; - - /** - * Set the origin of the Prop3D. This is the point about which all rotations - * take place. - * @param {Number[]} origin - */ - setOriginFrom(origin: number[]): boolean; - - /** - * Set the origin of the Prop3D. - * This is the point about which all rotations take place. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setPosition(x: number, y: number, z: number): boolean; - - /** - * Set the origin of the Prop3D. - * @param {Vector3} position - */ - setPositionFrom(position: Vector3): boolean; - - /** - * Set the scale of the actor. - * Scaling in performed independently on the X, Y and Z axis. A scale of zero is illegal and will be replaced with one. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setScale(x: number, y: number, z: number): boolean; - - /** - * - * @param {Number[]} scale - */ - setScaleFrom(scale: number[]): boolean; - - /** - * In addition to the instance variables such as position and orientation, - * you can add an additional transformation matrix for your own use. This - * matrix is concatenated with the actor's internal matrix, which you - * implicitly create through the use of setPosition(), setOrigin() and - * setOrientation(). - * @param {mat4} matrix - */ - setUserMatrix(matrix: mat4): void; - - /** - * Generate the matrix based on internal model. - */ - computeMatrix(): void; - - /** - * Set the actor property for the specified mapper input port, which defaults to 0 - * @param {vtkObject} property - * @param {number} mapperInputPort Is 0 when not given - */ - setProperty(mapperInputPort: number, property: vtkObject): boolean; - setProperty(property: vtkObject): boolean; - - /** - * Set the actor properties array - * Each element of the array corresponds to a mapper input port - * @param {vtkObject[]} properties - */ - setProperties(properties: vtkObject[]): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkProp3D characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IProp3DInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IProp3DInitialValues -): void; - -/** - * Method use to create a new instance of vtkProp3D - * @param {IProp3DInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: IProp3DInitialValues): vtkProp3D; - -/** - * vtkProp3D is an abstract class used to represent an entity in a rendering - * scene (i.e., vtkProp3D is a vtkProp with an associated transformation - * matrix). It handles functions related to the position, orientation and - * scaling. It combines these instance variables into one 4x4 transformation - * matrix as follows: [x y z 1] = [x y z 1] Translate(-origin) Scale(scale) - * Rot(y) Rot(x) Rot (z) Trans(origin) Trans(position). Both vtkActor and - * vtkVolume are specializations of class vtkProp. The constructor defaults - * to: origin(0,0,0) position=(0,0,0) orientation=(0,0,0), no user defined - * matrix or transform, and no texture map. - */ -export declare const vtkProp3D: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkProp3D; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Prop3D.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Prop3D.js deleted file mode 100644 index 5108ba2d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Prop3D.js +++ /dev/null @@ -1,286 +0,0 @@ -import { mat4, quat } from 'gl-matrix'; -import { m as macro } from '../../macros2.js'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; -import { B as degreesFromRadians, r as radiansFromDegrees, a as areMatricesEqual } from '../../Common/Core/Math/index.js'; -import vtkProp from './Prop.js'; - -const VTK_EPSILON = 1e-6; - -// ---------------------------------------------------------------------------- -// vtkProp3D methods -// ---------------------------------------------------------------------------- - -function vtkProp3D(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkProp3D'); - publicAPI.addPosition = deltaXYZ => { - model.position = model.position.map((value, index) => value + deltaXYZ[index]); - publicAPI.modified(); - }; - publicAPI.getOrientationWXYZ = () => { - const q = quat.create(); - mat4.getRotation(q, model.rotation); - const oaxis = new Float64Array(3); - const w = quat.getAxisAngle(oaxis, q); - return [degreesFromRadians(w), oaxis[0], oaxis[1], oaxis[2]]; - }; - publicAPI.getOrientationQuaternion = function () { - let out = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - return mat4.getRotation(out, model.rotation); - }; - publicAPI.rotateX = val => { - if (val === 0.0) { - return; - } - mat4.rotateX(model.rotation, model.rotation, radiansFromDegrees(val)); - publicAPI.modified(); - }; - publicAPI.rotateY = val => { - if (val === 0.0) { - return; - } - mat4.rotateY(model.rotation, model.rotation, radiansFromDegrees(val)); - publicAPI.modified(); - }; - publicAPI.rotateZ = val => { - if (val === 0.0) { - return; - } - mat4.rotateZ(model.rotation, model.rotation, radiansFromDegrees(val)); - publicAPI.modified(); - }; - publicAPI.rotateWXYZ = (degrees, x, y, z) => { - if (degrees === 0.0 || x === 0.0 && y === 0.0 && z === 0.0) { - return; - } - - // convert to radians - const angle = radiansFromDegrees(degrees); - const q = quat.create(); - quat.setAxisAngle(q, [x, y, z], angle); - const quatMat = new Float64Array(16); - mat4.fromQuat(quatMat, q); - mat4.multiply(model.rotation, model.rotation, quatMat); - publicAPI.modified(); - }; - publicAPI.rotateQuaternion = orientationQuaternion => { - if (Math.abs(orientationQuaternion[3]) >= 1 - VTK_EPSILON) { - return; - } - const oriQuatMat = mat4.fromQuat(new Float64Array(16), orientationQuaternion); - mat4.multiply(model.rotation, model.rotation, oriQuatMat); - publicAPI.modified(); - }; - publicAPI.setOrientation = (x, y, z) => { - if (x === model.orientation[0] && y === model.orientation[1] && z === model.orientation[2]) { - return false; - } - model.orientation = [x, y, z]; - mat4.identity(model.rotation); - publicAPI.rotateZ(z); - publicAPI.rotateX(x); - publicAPI.rotateY(y); - publicAPI.modified(); - return true; - }; - publicAPI.setOrientationFromQuaternion = q => { - const rotation = mat4.create(); - mat4.fromQuat(rotation, q); - if (!areMatricesEqual(rotation, model.rotation)) { - model.rotation = rotation; - publicAPI.modified(); - return true; - } - return false; - }; - publicAPI.setUserMatrix = matrix => { - if (areMatricesEqual(model.userMatrix, matrix)) { - return false; - } - mat4.copy(model.userMatrix, matrix); - publicAPI.modified(); - return true; - }; - publicAPI.getMatrix = () => { - publicAPI.computeMatrix(); - return model.matrix; - }; - publicAPI.computeMatrix = () => { - // check whether or not need to rebuild the matrix - if (publicAPI.getMTime() > model.matrixMTime.getMTime()) { - mat4.identity(model.matrix); - if (model.userMatrix) { - mat4.multiply(model.matrix, model.matrix, model.userMatrix); - } - mat4.translate(model.matrix, model.matrix, model.origin); - mat4.translate(model.matrix, model.matrix, model.position); - mat4.multiply(model.matrix, model.matrix, model.rotation); - mat4.scale(model.matrix, model.matrix, model.scale); - mat4.translate(model.matrix, model.matrix, [-model.origin[0], -model.origin[1], -model.origin[2]]); - mat4.transpose(model.matrix, model.matrix); - - // check for identity - model.isIdentity = true; - for (let i = 0; i < 4; ++i) { - for (let j = 0; j < 4; ++j) { - if ((i === j ? 1.0 : 0.0) !== model.matrix[i + j * 4]) { - model.isIdentity = false; - } - } - } - model.matrixMTime.modified(); - } - }; - publicAPI.getBoundsByReference = () => { - if (model.mapper === null) { - return model.bounds; - } - - // Check for the special case when the mapper's bounds are unknown - const bds = model.mapper.getBounds(); - if (!bds || bds.length !== 6) { - return bds; - } - - // Check for the special case when the actor is empty. - if (bds[0] > bds[1]) { - // No need to copy bds, a new array is created when calling getBounds() - model.mapperBounds = bds; - model.bounds = [...vtkBoundingBox.INIT_BOUNDS]; - model.boundsMTime.modified(); - return bds; - } - - // Check if we have cached values for these bounds - we cache the - // values returned by model.mapper.getBounds() and we store the time - // of caching. If the values returned this time are different, or - // the modified time of this class is newer than the cached time, - // then we need to rebuild. - if (!model.mapperBounds || !bds.every((_, i) => bds[i] === model.mapperBounds[i]) || publicAPI.getMTime() > model.boundsMTime.getMTime()) { - macro.vtkDebugMacro('Recomputing bounds...'); - // No need to copy bds, a new array is created when calling getBounds() - model.mapperBounds = bds; - - // Compute actor bounds from matrix and mapper bounds - publicAPI.computeMatrix(); - const transposedMatrix = new Float64Array(16); - mat4.transpose(transposedMatrix, model.matrix); - vtkBoundingBox.transformBounds(bds, transposedMatrix, model.bounds); - model.boundsMTime.modified(); - } - return model.bounds; - }; - publicAPI.getBounds = () => { - const bounds = publicAPI.getBoundsByReference(); - // Handle case when bounds are not iterable (for example null or undefined) - try { - return [...bounds]; - } catch { - return bounds; - } - }; - publicAPI.getCenter = () => vtkBoundingBox.getCenter(model.bounds); - publicAPI.getLength = () => vtkBoundingBox.getLength(model.bounds); - publicAPI.getXRange = () => vtkBoundingBox.getXRange(model.bounds); - publicAPI.getYRange = () => vtkBoundingBox.getYRange(model.bounds); - publicAPI.getZRange = () => vtkBoundingBox.getZRange(model.bounds); - publicAPI.getUserMatrix = () => model.userMatrix; - function updateIdentityFlag() { - publicAPI.computeMatrix(); - } - publicAPI.onModified(updateIdentityFlag); - publicAPI.getProperty = function () { - let mapperInputPort = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - if (model.properties[mapperInputPort] == null) { - model.properties[mapperInputPort] = publicAPI.makeProperty?.(); - } - return model.properties[mapperInputPort]; - }; - publicAPI.getProperties = () => { - if (model.properties.length === 0) { - model.properties[0] = publicAPI.makeProperty?.(); - } - return model.properties; - }; - publicAPI.setProperty = (firstArg, secondArg) => { - // Two options for argument layout: - // - (mapperInputPort, property) - // - (property) - const useInputPortArgument = Number.isInteger(firstArg); - const [mapperInputPort, property] = useInputPortArgument ? [firstArg, secondArg] : [0, firstArg]; - if (model.properties[mapperInputPort] === property) { - return false; - } - model.properties[mapperInputPort] = property; - return true; - }; - publicAPI.getMTime = () => { - let mt = model.mtime; - model.properties.forEach(property => { - if (property !== null) { - const time = property.getMTime(); - mt = time > mt ? time : mt; - } - }); - return mt; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - origin: [0, 0, 0], - position: [0, 0, 0], - orientation: [0, 0, 0], - rotation: null, - scale: [1, 1, 1], - bounds: [...vtkBoundingBox.INIT_BOUNDS], - properties: [], - userMatrix: null, - userMatrixMTime: null, - cachedProp3D: null, - isIdentity: true, - matrixMTime: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkProp.extend(publicAPI, model, initialValues); - model.matrixMTime = {}; - macro.obj(model.matrixMTime); - - // Build VTK API - macro.get(publicAPI, model, ['isIdentity']); - macro.getArray(publicAPI, model, ['orientation']); - macro.setGetArray(publicAPI, model, ['origin', 'position', 'scale'], 3); - macro.setGet(publicAPI, model, ['properties']); - - // Object internal instance - model.matrix = mat4.identity(new Float64Array(16)); - model.rotation = mat4.identity(new Float64Array(16)); - model.userMatrix = mat4.identity(new Float64Array(16)); - model.transform = null; // FIXME - - // Object methods - vtkProp3D(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkProp3D'); - -// ---------------------------------------------------------------------------- - -var vtkProp3D$1 = { - newInstance, - extend -}; - -export { vtkProp3D$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property.d.ts deleted file mode 100644 index a9715991..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property.d.ts +++ /dev/null @@ -1,586 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { Nullable, RGBColor } from './../../types'; -import { Interpolation, Representation, Shading } from './Property/Constants'; -import { vtkTexture } from './Texture'; - -export interface IPropertyInitialValues { - color?: RGBColor; - ambientColor?: RGBColor; - diffuseColor?: RGBColor; - specularColor?: RGBColor; - diffuseTexture?: vtkTexture; - metallicTexture?: vtkTexture; - roughnessTexture?: vtkTexture; - normalTexture?: vtkTexture; - ambientOcclusionTexture?: vtkTexture; - emissionTexture?: vtkTexture; - RMTexture?: vtkTexture; - ORMTexture?: vtkTexture; - edgeColor?: RGBColor; - ambient?: number; - diffuse?: number; - metallic?: number; - roughness?: number; - normalStrength?: number; - emission?: number; - baseIOR?: number; - specular?: number; - specularPower?: number; - opacity?: number; - edgeVisibility?: boolean; - backfaceCulling?: boolean; - frontfaceCulling?: boolean; - pointSize?: number; - lineWidth?: number; - lighting?: boolean; - shading?: boolean; -} - -export interface vtkProperty extends vtkObject { - /** - * Not Implemented yet - */ - addShaderVariable(): any; - - /** - * Not Implemented yet - */ - computeCompositeColor(): any; - - /** - * Get the lighting coefficient. - * @default 0 - */ - getAmbient(): number; - - /** - * Get the ambient surface color. Not all renderers support separate ambient - * and diffuse colors. From a physical standpoint it really doesn't make too - * much sense to have both. For the rendering libraries that don't support - * both, the diffuse color is used. - * @return {RGBColor} Array of RGB color. - */ - getAmbientColor(): RGBColor; - - /** - * Get the ambient surface color. - */ - getAmbientColorByReference(): RGBColor; - - /** - * - */ - getBackfaceCulling(): boolean; - - /** - * Get the color of the object.the color of the object - */ - getColor(): RGBColor; - - /** - * Get the diffuse lighting coefficient. - * @default 1 - */ - getDiffuse(): number; - - /** - * Get the diffuse surface color. - * @return {RGBColor} Array of RGB color. - */ - getDiffuseColor(): RGBColor; - /** - * - */ - getDiffuseColorByReference(): RGBColor; - - /** - * - */ - getEdgeColor(): RGBColor; - - /** - * - */ - getEdgeColorByReference(): RGBColor; - - /** - * - */ - getEdgeVisibility(): boolean; - - /** - * Get the fast culling of polygons based on orientation of normal - * with respect to camera. If frontface culling is on, polygons facing - * towards camera are not drawn. - * @default false - */ - getFrontfaceCulling(): boolean; - - /** - * Get the shading interpolation method for an object. - */ - getInterpolation(): Interpolation; - - /** - * Map the interpolation integer to the corresponding ShadingModel. - */ - getInterpolationAsString(): string; - - /** - * Get lighting flag for an object. - * @default true - */ - getLighting(): boolean; - - /** - * Get the width of a Line. The width is expressed in screen units. - * @default 1.0 - */ - getLineWidth(): number; - - /** - * Get the opacity of the object. Set/Get the object's opacity. - * 1.0 is totally opaque and 0.0 is completely transparent. - * @default 1 - */ - getOpacity(): number; - - /** - * Get the diameter of a point. The size is expressed in screen units. - * @default 1.0 - */ - getPointSize(): number; - - /** - * Get the surface geometry representation for the object. - */ - getRepresentation(): Representation; - - /** - * Get the surface geometry representation for the object as string. - * @return {String} Surface geometry representation for the object as string - */ - getRepresentationAsString(): string; - - /** - * Get the specular lighting coefficient. - * @default 0 - */ - getSpecular(): number; - - /** - * Get the roughness coefficient. - * @default 1 - */ - getRoughness(): number; - - /** - * Get the metallic coefficient. - * @default 0 - */ - getMetallic(): number; - - /** - * Get the index of refraction. - * @default 0 - */ - getBaseIOR(): number; - - /** - * Get the strength of the normal map. - * @default 1 - */ - getNormalStrength(): number; - - /** - * Get the emission coefficient. - * @default 0 - */ - getEmission(): number; - - /** - * Get the specular surface color. - * @return {RGBColor} Array of RGB color. - */ - getSpecularColor(): RGBColor; - - /** - * Get the specular surface color. - */ - getSpecularColorByReference(): RGBColor; - - /** - * Get the specular power. - * @default 1 - */ - getSpecularPower(): number; - - /** - * Get the diffuse texture. - */ - getDiffuseTexture(): Nullable; - - /** - * Get the metallic texture. - */ - getMetallicTexture(): Nullable; - - /** - * Get the roughness & metallic texture. - */ - getRMTexture(): Nullable; - - /** - * Get the occlusion, roughness & metallic texture. - */ - getORMTexture(): Nullable; - - /** - * Get the roughness texture. - */ - getRoughnessTexture(): Nullable; - - /** - * Get the normal texture. - */ - getNormalTexture(): Nullable; - - /** - * Get the ambient occlusion texture. - */ - getAmbientOcclusionTexture(): Nullable; - - /** - * Get the emission texture. - */ - getEmissionTexture(): Nullable; - - /** - * Set the ambient lighting coefficient. - * @param {Number} ambient The ambient lighting coefficient. - */ - setAmbient(ambient: number): boolean; - - /** - * Set the ambient surface color. Not all renderers support separate - * ambient and diffuse colors. From a physical standpoint it really - * doesn't make too much sense to have both. For the rendering - * libraries that don’t support both, the diffuse color is used. - * - * @param {Number} r Defines the red component (between 0 and 1) - * @param {Number} g Defines the green component (between 0 and 1) - * @param {Number} b Defines the blue component (between 0 and 1) - */ - setAmbientColor(r: number, g: number, b: number): boolean; - - /** - * Set the ambient surface color. Not all renderers support separate - * ambient and diffuse colors. From a physical standpoint it really - * doesn't make too much sense to have both. For the rendering - * libraries that don’t support both, the diffuse color is used. - * @param {RGBColor} ambientColor An Array of the RGB color. - */ - setAmbientColor(ambientColor: RGBColor): boolean; - - /** - * Set the ambient surface color from an RGB array - * @param {RGBColor} ambientColor An Array of the RGB color. - */ - setAmbientColorFrom(ambientColor: RGBColor): boolean; - - /** - * Turn on/off fast culling of polygons based on orientation of normal - * with respect to camera. If backface culling is on, polygons facing - * away from camera are not drawn. - * @param {Boolean} backfaceCulling - */ - setBackfaceCulling(backfaceCulling: boolean): boolean; - - /** - * Set the color of the object. Has the side effect of setting the - * ambient diffuse and specular colors as well. This is basically - * a quick overall color setting method. - * @param {Number} r Defines the red component (between 0 and 1) - * @param {Number} g Defines the green component (between 0 and 1) - * @param {Number} b Defines the blue component (between 0 and 1) - */ - setColor(r: number, g: number, b: number): boolean; - - /** - * Set the color of the object. Has the side effect of setting the - * ambient diffuse and specular colors as well. This is basically - * a quick overall color setting method. - * @param {RGBColor} color An Array of the RGB color. - */ - setColor(color: RGBColor): boolean; - - /** - * Set the diffuse lighting coefficient. - * @param {Number} diffuse The diffuse lighting coefficient. - */ - setDiffuse(diffuse: number): boolean; - - /** - * Set the diffuse surface color. - * @param {Number} r Defines the red component (between 0 and 1) - * @param {Number} g Defines the green component (between 0 and 1) - * @param {Number} b Defines the blue component (between 0 and 1) - */ - setDiffuseColor(r: number, g: number, b: number): boolean; - - /** - * Set the diffuse surface color. - * @param {RGBColor} diffuseColor An Array of the RGB color. - */ - setDiffuseColor(diffuseColor: RGBColor): boolean; - - /** - * Set the diffuse surface color from an RGB array - * @param {RGBColor} diffuseColor An Array of the RGB color. - */ - setDiffuseColorFrom(diffuseColor: RGBColor): boolean; - - /** - * Set the color of primitive edges (if edge visibility is enabled). - * @param {Number} r Defines the red component (between 0 and 1) - * @param {Number} g Defines the green component (between 0 and 1) - * @param {Number} b Defines the blue component (between 0 and 1) - */ - setEdgeColor(r: number, g: number, b: number): boolean; - - /** - * Set the color of primitive edges (if edge visibility is enabled). - * @param {RGBColor} edgeColor An Array of the RGB color. - */ - setEdgeColor(edgeColor: RGBColor): boolean; - - /** - * Set the color of primitive edges from an RGB array. - * @param {RGBColor} edgeColor An Array of the RGB color. - */ - setEdgeColorFrom(edgeColor: RGBColor): boolean; - - /** - * Turn on/off the visibility of edges. On some renderers it is - * possible to render the edges of geometric primitives separately - * from the interior. - * @param {Boolean} edgeVisibility - */ - setEdgeVisibility(edgeVisibility: boolean): boolean; - - /** - * Turn on/off fast culling of polygons based on orientation of normal - * with respect to camera. If frontface culling is on, polygons facing - * towards camera are not drawn. - * @param {Boolean} frontfaceCulling - */ - setFrontfaceCulling(frontfaceCulling: boolean): boolean; - - /** - * Set the shading interpolation method for an object. - * @param {Interpolation} interpolation - */ - setInterpolation(interpolation: Interpolation): boolean; - - /** - * Set interpolation to 0 means `FLAT`. - */ - setInterpolationToFlat(): boolean; - - /** - * Set interpolation to 1 means `GOURAUD`. - */ - setInterpolationToGouraud(): boolean; - - /** - * Set interpolation to 2 means `PHONG`. - */ - setInterpolationToPhong(): boolean; - - /** - * Set lighting flag for an object. - * @param {Boolean} lighting - * @default true - */ - setLighting(lighting: boolean): boolean; - - /** - * Set the width of a Line. The width is expressed in screen units. - * !!! note - * This is only implemented for OpenGL. - * @param {Number} lineWidth - * @default 1.0 - */ - setLineWidth(lineWidth: number): boolean; - - /** - * Set the object's opacity. 1.0 is totally opaque and 0.0 is - * completely transparent. - * @param {Number} opacity The opacity of the object. - */ - setOpacity(opacity: number): boolean; - - /** - * Set the diameter of a point. The size is expressed in screen units. - * !!! note - * This is only implemented for OpenGL. - * @param {Number} pointSize - * @default 1.0 - */ - setPointSize(pointSize: number): boolean; - - /** - * Control the surface geometry representation for the object. - * @param {Representation} representation - */ - setRepresentation(representation: Representation): boolean; - - /** - * Set representation to 0 means `POINT`' - */ - setRepresentationToPoints(): boolean; - - /** - * Set representation to 2 means `SURFAC`' - */ - setRepresentationToSurface(): boolean; - - /** - * Set representation to 1 means `WIREFRAM`' - */ - setRepresentationToWireframe(): boolean; - - /** - * Set the specular lighting coefficient. - * @param {Boolean} specular - */ - setSpecular(specular: number): boolean; - - /** - * Set the normal map strength. - * @param {Boolean} normal - */ - setNormalStrength(normalStrength: number): boolean; - - /** - * Set the ambient occlusion map strength. - * @param {Boolean} emission - */ - setEmission(emission: number): boolean; - - /** - * Set the specular surface color. - * @param {Number} r Defines the red component (between 0 and 1) - * @param {Number} g Defines the green component (between 0 and 1) - * @param {Number} b Defines the blue component (between 0 and 1) - */ - setSpecularColor(r: number, g: number, b: number): boolean; - - /** - * Set the specular surface color from an RGB array - * @param {RGBColor} specularColor An Array of the RGB color. - */ - setSpecularColor(specularColor: RGBColor): boolean; - - /** - * Set the specular surface color from an RGB array - * @param {RGBColor} specularColor An Array of the RGB color. - */ - setSpecularColorFrom(specularColor: RGBColor): boolean; - - /** - * Set the specular power. - * @param {Number} specularPower - */ - setSpecularPower(specularPower: number): boolean; - - /** - * Set the diffuse texture. - * @param {vtkTexture} diffuseTexture - */ - setDiffuseTexture(diffuseTexture: vtkTexture): boolean; - - /** - * Set the metallic texture. - * @param {vtkTexture} metallicTexture - */ - setMetallicTexture(metallicTexture: vtkTexture): boolean; - - /** - * Set the roughness texture. - * @param {vtkTexture} roughnessTexture - */ - setRoughnessTexture(roughnessTexture: vtkTexture): boolean; - - /** - * Set the roughness & metallic texture. - * @param {vtkTexture} RMTexture - */ - setRMTexture(RMTexture: vtkTexture): boolean; - - /** - * Set the occlusion, roughness & metallic texture. - * @param {vtkTexture} ORMTexture - */ - setORMTexture(ORMTexture: vtkTexture): boolean; - - /** - * Set the normal texture. - * @param {vtkTexture} normalTexture - */ - setNormalTexture(normalTexture: vtkTexture): boolean; - - /** - * Set the ambient occlusion texture. - * @param {vtkTexture} ambientOcclusionTexture - */ - setAmbientOcclusionTexture(ambientOcclusionTexture: vtkTexture): boolean; - - /** - * Set the emission texture. - * @param {vtkTexture} emissionTexture - */ - setEmissionTexture(emissionTexture: vtkTexture): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkProperty characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPropertyInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPropertyInitialValues -): void; - -/** - * Method use to create a new instance of vtkProperty with object color, ambient color, diffuse color, - * specular color, and edge color white; ambient coefficient=0; diffuse - * coefficient=0; specular coefficient=0; specular power=1; Gouraud shading; - * and surface representation. Backface and frontface culling are off. - * @param {IPropertyInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IPropertyInitialValues -): vtkProperty; - -/** - * vtkProperty is an object that represents lighting and other surface - * properties of a geometric object. The primary properties that can be set are - * colors (overall, ambient, diffuse, specular, and edge color); specular power; - * opacity of the object; the representation of the object (points, wireframe, - * or surface); and the shading method to be used (flat, Gouraud, and Phong). - * Also, some special graphics features like backface properties can be set and - * manipulated with this object. - */ -export declare const vtkProperty: { - newInstance: typeof newInstance; - extend: typeof extend; - Shading: typeof Shading; - Representation: typeof Representation; - Interpolation: typeof Interpolation; -}; -export default vtkProperty; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property.js deleted file mode 100644 index 3f786aa4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property.js +++ /dev/null @@ -1,129 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import PropertyConst from './Property/Constants.js'; - -const { - Representation, - Interpolation -} = PropertyConst; -function notImplemented(method) { - return () => macro.vtkErrorMacro(`vtkProperty::${method} - NOT IMPLEMENTED`); -} - -// ---------------------------------------------------------------------------- -// vtkProperty methods -// ---------------------------------------------------------------------------- - -function vtkProperty(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkProperty'); - publicAPI.setColor = (r, g, b) => { - if (Array.isArray(r)) { - if (model.color[0] !== r[0] || model.color[1] !== r[1] || model.color[2] !== r[2]) { - model.color[0] = r[0]; - model.color[1] = r[1]; - model.color[2] = r[2]; - publicAPI.modified(); - } - } else if (model.color[0] !== r || model.color[1] !== g || model.color[2] !== b) { - model.color[0] = r; - model.color[1] = g; - model.color[2] = b; - publicAPI.modified(); - } - publicAPI.setDiffuseColor(model.color); - publicAPI.setAmbientColor(model.color); - publicAPI.setSpecularColor(model.color); - }; - publicAPI.computeCompositeColor = notImplemented('ComputeCompositeColor'); - publicAPI.getColor = () => { - // Inline computeCompositeColor - let norm = 0.0; - if (model.ambient + model.diffuse + model.specular > 0) { - norm = 1.0 / (model.ambient + model.diffuse + model.specular); - } - for (let i = 0; i < 3; i++) { - model.color[i] = norm * (model.ambient * model.ambientColor[i] + model.diffuse * model.diffuseColor[i] + model.specular * model.specularColor[i]); - } - return [].concat(model.color); - }; - publicAPI.setSpecularPower = specularPower => { - const roughness = 1 / Math.max(1.0, specularPower); - if (model.roughness !== roughness || model.specularPower !== specularPower) { - model.specularPower = specularPower; // Specular power still needs to be set as long as webgl is using it (otherwise testShaderReplacementsClear fails) - model.roughness = roughness; - publicAPI.modified(); - } - }; - publicAPI.addShaderVariable = notImplemented('AddShaderVariable'); - publicAPI.setInterpolationToFlat = () => publicAPI.setInterpolation(Interpolation.FLAT); - publicAPI.setInterpolationToGouraud = () => publicAPI.setInterpolation(Interpolation.GOURAUD); - publicAPI.setInterpolationToPhong = () => publicAPI.setInterpolation(Interpolation.PHONG); - publicAPI.getInterpolationAsString = () => macro.enumToString(Interpolation, model.interpolation); - publicAPI.setRepresentationToWireframe = () => publicAPI.setRepresentation(Representation.WIREFRAME); - publicAPI.setRepresentationToSurface = () => publicAPI.setRepresentation(Representation.SURFACE); - publicAPI.setRepresentationToPoints = () => publicAPI.setRepresentation(Representation.POINTS); - publicAPI.getRepresentationAsString = () => macro.enumToString(Representation, model.representation); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - color: [1, 1, 1], - ambientColor: [1, 1, 1], - diffuseColor: [1, 1, 1], - specularColor: [1, 1, 1], - edgeColor: [0, 0, 0], - ambient: 0, - diffuse: 1, - metallic: 0, - roughness: 0.6, - normalStrength: 1, - emission: 1, - baseIOR: 1.45, - specular: 0, - specularPower: 1, - opacity: 1, - interpolation: Interpolation.GOURAUD, - representation: Representation.SURFACE, - edgeVisibility: false, - backfaceCulling: false, - frontfaceCulling: false, - pointSize: 1, - lineWidth: 1, - lighting: true, - shading: false, - materialName: null, - ORMTexture: null, - RMTexture: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['lighting', 'interpolation', 'ambient', 'diffuse', 'metallic', 'roughness', 'normalStrength', 'emission', 'baseIOR', 'specular', 'specularPower', 'opacity', 'edgeVisibility', 'lineWidth', 'pointSize', 'backfaceCulling', 'frontfaceCulling', 'representation', 'diffuseTexture', 'metallicTexture', 'roughnessTexture', 'normalTexture', 'ambientOcclusionTexture', 'emissionTexture', 'ORMTexture', 'RMTexture']); - macro.setGetArray(publicAPI, model, ['ambientColor', 'specularColor', 'diffuseColor', 'edgeColor'], 3); - - // Object methods - vtkProperty(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkProperty'); - -// ---------------------------------------------------------------------------- - -var vtkProperty$1 = { - newInstance, - extend, - ...PropertyConst -}; - -export { vtkProperty$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property/Constants.d.ts deleted file mode 100644 index b28a4909..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property/Constants.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -export declare enum Shading { - FLAT = 0, - GOURAUD = 1, - PHONG = 2, -} - -export declare enum Representation { - POINTS = 0, - WIREFRAME = 1, - SURFACE = 2, -} - -export declare enum Interpolation { - FLAT = 0, - GOURAUD = 1, - PHONG = 2, -} - -declare const _default: { - Shading: typeof Shading; - Representation: typeof Representation; - Interpolation: typeof Interpolation; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property/Constants.js deleted file mode 100644 index c34dc073..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property/Constants.js +++ /dev/null @@ -1,18 +0,0 @@ -const Shading = { - FLAT: 0, - GOURAUD: 1, - PHONG: 2 -}; -const Representation = { - POINTS: 0, - WIREFRAME: 1, - SURFACE: 2 -}; -const Interpolation = Shading; -var PropertyConst = { - Shading, - Representation, - Interpolation -}; - -export { Interpolation, Representation, Shading, PropertyConst as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property2D.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property2D.d.ts deleted file mode 100644 index ec365aa8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property2D.d.ts +++ /dev/null @@ -1,150 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { RGBColor } from './../../types'; -import { DisplayLocation } from './Property2D/Constants'; - -export interface IProperty2DInitialValues { - color?: RGBColor; - opacity?: number; - pointSize?: number; - lineWidth?: number; - displayLocation?: DisplayLocation; -} - -export interface vtkProperty2D extends vtkObject { - /** - * Get the color of the object. - */ - getColor(): RGBColor; - - /** - * Get the color of the object. - */ - getColorByReference(): RGBColor; - - /** - * Get the display location of the object. - * @default 'Foreground' - */ - getDisplayLocation(): DisplayLocation; - - /** - * Get the width of a Line. - * The width is expressed in screen units. - */ - getLineWidth(): number; - - /** - * Get the opacity of the object. - */ - getOpacity(): number; - - /** - * Get the diameter of a point. - * The size is expressed in screen units. - */ - getPointSize(): number; - - /** - * Set the color of the object. Has the side effect of setting the - * ambient diffuse and specular colors as well. This is basically - * a quick overall color setting method. - * @param {Number} r Defines the red component (between 0 and 1). - * @param {Number} g Defines the green component (between 0 and 1). - * @param {Number} b Defines the blue component (between 0 and 1). - */ - setColor(r: number, g: number, b: number): boolean; - - /** - * Set the color of the object. Has the side effect of setting the - * ambient diffuse and specular colors as well. This is basically - * a quick overall color setting method. - * @param {RGBColor} color Defines the RGB color array.. - */ - setColor(color: RGBColor): boolean; - - /** - * Set the color of the object. Has the side effect of setting the - * ambient diffuse and specular colors as well. This is basically - * a quick overall color setting method. - * @param {Number} r Defines the red component (between 0 and 1). - * @param {Number} g Defines the green component (between 0 and 1). - * @param {Number} b Defines the blue component (between 0 and 1). - */ - setColorFrom(r: number, g: number, b: number): boolean; - - /** - * Set the color of the object. Has the side effect of setting the - * ambient diffuse and specular colors as well. This is basically - * a quick overall color setting method. - * @param {RGBColor} color Defines the RGB color array.. - */ - setColorFrom(color: RGBColor): boolean; - - /** - * Set the display location of the object. - * @param {String} displayLocation - */ - setDisplayLocation(displayLocation: DisplayLocation): boolean; - - /** - * Set the width of a Line. The width is expressed in screen units. - * This is only implemented for OpenGL. - * @param {Number} lineWidth The width of the Line. - * @default 1.0 - */ - setLineWidth(lineWidth: number): boolean; - - /** - * Set the object’s opacity. 1.0 is totally opaque and 0.0 is - * completely transparent. - * @param {Number} opacity The opacity value. - */ - setOpacity(opacity: number): boolean; - - /** - * Set the diameter of a point. The size is expressed in screen units. - * This is only implemented for OpenGL. - * @param {Number} pointSize The diameter of the point. - * @default 1.0 - */ - setPointSize(pointSize: number): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkProperty2D characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IProperty2DInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IProperty2DInitialValues -): void; - -/** - * Method use to create a new instance of vtkProperty2D with object color, ambient color, diffuse color, - * specular color, and edge color white; ambient coefficient=0; diffuse - * coefficient=0; specular coefficient=0; specular power=1; Gouraud shading; - * and surface representation. Backface and frontface culling are off. - * @param {IProperty2DInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IProperty2DInitialValues -): vtkProperty2D; - -/** - * vtkProperty2D is an object that represents lighting and other surface - * properties of a 2D geometric object. The primary properties that can be - * set are colors (overall, ambient, diffuse, specular, and edge color); - * specular power; opacity of the object; the representation of the - * object (points, wireframe, or surface); and the shading method to be - * used (flat, Gouraud, and Phong). Also, some special graphics features - * like backface properties can be set and manipulated with this object. - */ -export declare const vtkProperty2D: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkProperty2D; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property2D.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property2D.js deleted file mode 100644 index 1c784249..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property2D.js +++ /dev/null @@ -1,63 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import Constants from './Property2D/Constants.js'; -import { Representation } from './Property/Constants.js'; - -const { - DisplayLocation -} = Constants; - -// ---------------------------------------------------------------------------- -// vtkProperty2D methods -// ---------------------------------------------------------------------------- - -function vtkProperty2D(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkProperty2D'); - publicAPI.setDisplayLocationToBackground = () => publicAPI.setDisplayLocation(DisplayLocation.BACKGROUND); - publicAPI.setDisplayLocationToForeground = () => publicAPI.setDisplayLocation(DisplayLocation.FOREGROUND); - publicAPI.setRepresentationToWireframe = () => publicAPI.setRepresentation(Representation.WIREFRAME); - publicAPI.setRepresentationToSurface = () => publicAPI.setRepresentation(Representation.SURFACE); - publicAPI.setRepresentationToPoints = () => publicAPI.setRepresentation(Representation.POINTS); - publicAPI.getRepresentationAsString = () => macro.enumToString(Representation, model.representation); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- -const DEFAULT_VALUES = { - color: [1, 1, 1], - opacity: 1, - pointSize: 1, - lineWidth: 1, - representation: Representation.SURFACE, - displayLocation: DisplayLocation.FOREGROUND -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['opacity', 'lineWidth', 'pointSize', 'displayLocation', 'representation']); - macro.setGetArray(publicAPI, model, ['color'], 3); - - // Object methods - vtkProperty2D(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkProperty2D'); - -// ---------------------------------------------------------------------------- - -var vtkProperty2D$1 = { - newInstance, - extend, - ...Constants -}; - -export { vtkProperty2D$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property2D/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property2D/Constants.d.ts deleted file mode 100644 index e4615891..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property2D/Constants.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export declare enum DisplayLocation { - BACKGROUND = 0, - FOREGROUND = 1, -} - -declare const _default: { - DisplayLocation: typeof DisplayLocation; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property2D/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property2D/Constants.js deleted file mode 100644 index 7f4feee8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Property2D/Constants.js +++ /dev/null @@ -1,9 +0,0 @@ -const DisplayLocation = { - BACKGROUND: 0, - FOREGROUND: 1 -}; -var Constants = { - DisplayLocation -}; - -export { DisplayLocation, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/RenderWindow.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/RenderWindow.d.ts deleted file mode 100644 index 02109b40..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/RenderWindow.d.ts +++ /dev/null @@ -1,249 +0,0 @@ -import { vtkObject, vtkSubscription } from './../../interfaces'; -import vtkRenderer from './Renderer'; -import vtkRenderWindowInteractor from './RenderWindowInteractor'; -// import vtkOpenGLRenderWindow from './../../OpenGL/RenderWindow'; - -export interface IRenderWindowInitialValues { - renderers?: vtkRenderer[]; - views?: vtkRenderWindow[]; - interactor?: any; - neverRendered?: boolean; - numberOfLayers?: number; - childRenderWindows?: vtkRenderWindow[]; -} - -interface IStatistics { - /** - * - */ - propCount: number; - - /** - * - */ - invisiblePropCount: number; - - /** - * - */ - str: string; -} - -export const enum DEFAULT_VIEW_API { - 'WebGL', - 'WebGPU', -} - -export interface vtkRenderWindow extends vtkObject { - /** - * Add renderer - * @param {vtkRenderer} renderer The vtkRenderer instance. - */ - addRenderer(renderer: vtkRenderer): void; - - /** - * Add a child render window - * @param {vtkRenderWindow} renderWindow The vtkRenderWindow instance. - */ - addRenderWindow(renderWindow: vtkRenderWindow): void; - - /** - * Add renderer - * @param view - */ - addView(view: any): void; - - /** - * - * @param {String} format - * @param {*} opts - */ - captureImages(format?: string, opts?: any): Promise[]; - - /** - * Switch the rendering backend between WebGL and WebGPU. - * By default, the WebGL backend is used. To switch, to WebGPU call - * `renderWindow.setDefaultViewAPI('WebGPU')` before calling `render`. - */ - getDefaultViewAPI(): string; - - /** - * - */ - getInteractor(): vtkRenderWindowInteractor; - - /** - * - */ - getNumberOfLayers(): number; - - /** - * - */ - getNeverRendered(): boolean; - - /** - * - */ - getRenderers(): vtkRenderer[]; - - /** - * - */ - getRenderersByReference(): vtkRenderer[]; - - /** - * - */ - getChildRenderWindows(): vtkRenderWindow[]; - - /** - * - */ - getChildRenderWindowsByReference(): vtkRenderWindow[]; - - /** - * - */ - getStatistics(): IStatistics; - - /** - * - */ - getViews(): any[]; - - // getViews(): vtkOpenGLRenderWindow[]; - - /** - * - * @param {vtkRenderer} ren - * @return {Boolean} true if the windows has a renderer - */ - hasRenderer(ren: vtkRenderer): boolean; - - /** - * - * @param view - */ - hasView(view: any): boolean; - - //hasView(view: vtkOpenGLRenderWindow): boolean; - - /** - * - * @param callback - */ - onCompletion(callback: (instance: vtkObject) => any): vtkSubscription; - - /** - * - * @param {String} name - * @param {} [initialValues] - */ - newAPISpecificView(name: string, initialValues?: object): any; - - /** - * Remove renderer - * @param {vtkRenderer} renderer The vtkRenderer instance. - */ - removeRenderer(renderer: vtkRenderer): void; - - /** - * Remove a child render window added using addRenderWindow(renderWindow) - * @param {vtkRenderWindow} renderWindow The vtkRenderWindow instance. - */ - removeRenderWindow(renderWindow: vtkRenderWindow): boolean; - - /** - * Remove renderer - * @param view - */ - removeView(view: any): void; - - /** - * - */ - render(): void; - - /** - * Switch the rendering backend between WebGL and WebGPU. - * By default, the WebGL backend is used. To switch, to WebGPU call - * `renderWindow.setDefaultViewAPI('WebGPU')` before calling `render`. - * Must be called before `newAPISpecificView()` is called. - * @param defaultViewAPI (default: 'WebGL') - */ - setDefaultViewAPI(defaultViewAPI: DEFAULT_VIEW_API): boolean; - - /** - * - * @param interactor - */ - setInteractor(interactor: vtkRenderWindowInteractor): boolean; - - /** - * - * @param numberOfLayers - */ - setNumberOfLayers(numberOfLayers: number): boolean; - - /** - * - * @param views - */ - setViews(views: any[]): boolean; - - // setViews(views: vtkOpenGLRenderWindow[]): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkRenderWindow characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IRenderWindowInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IRenderWindowInitialValues -): void; - -/** - * Method use to create a new instance of vtkRenderWindow - */ -export function newInstance( - initialValues?: IRenderWindowInitialValues -): vtkRenderWindow; - -/** - * - */ -export function registerViewConstructor(name: string, constructor: any): void; - -/** - * - */ -export function listViewAPIs(): string[]; - -/** - * - */ -export function newAPISpecificView(name: string, initialValues: object): any; - -/** - * vtkRenderWindow is an abstract object to specify the behavior of a rendering window. - * - * A rendering window is a window in a graphical user interface where renderers draw their images. - * Methods are provided to synchronize the rendering process, set window size, and control double buffering. - * The window also allows rendering in stereo. The interlaced render stereo type is for output to a VRex stereo projector. - * All of the odd horizontal lines are from the left eye, and the even lines are from the right eye. - * The user has to make the render window aligned with the VRex projector, or the eye will be swapped. - */ -export declare const vtkRenderWindow: { - newInstance: typeof newInstance; - extend: typeof extend; - registerViewConstructor: typeof registerViewConstructor; - listViewAPIs: typeof listViewAPIs; - newAPISpecificView: typeof newAPISpecificView; -}; -export default vtkRenderWindow; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/RenderWindow.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/RenderWindow.js deleted file mode 100644 index bcc91033..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/RenderWindow.js +++ /dev/null @@ -1,204 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -const DEFAULT_VIEW_API = 'WebGL'; -const VIEW_CONSTRUCTORS = Object.create(null); - -// ---------------------------------------------------------------------------- -// static methods -// ---------------------------------------------------------------------------- - -function registerViewConstructor(name, constructor) { - VIEW_CONSTRUCTORS[name] = constructor; -} -function listViewAPIs() { - return Object.keys(VIEW_CONSTRUCTORS); -} -function newAPISpecificView(name) { - let initialValues = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return VIEW_CONSTRUCTORS[name] && VIEW_CONSTRUCTORS[name](initialValues); -} - -// ---------------------------------------------------------------------------- -// vtkRenderWindow methods -// ---------------------------------------------------------------------------- - -function vtkRenderWindow(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkRenderWindow'); - - // Add renderer - publicAPI.addRenderer = renderer => { - if (publicAPI.hasRenderer(renderer)) { - return; - } - renderer.setRenderWindow(publicAPI); - model.renderers.push(renderer); - - // for (this->Renderers->InitTraversal(rsit); - // (aren = this->Renderers->GetNextRenderer(rsit)); ) - // { - // aren->SetAllocatedRenderTime - // (1.0/(this->DesiredUpdateRate*this->Renderers->GetNumberOfItems())); - // } - - publicAPI.modified(); - }; - - // Remove renderer - publicAPI.removeRenderer = renderer => { - model.renderers = model.renderers.filter(r => r !== renderer); - publicAPI.modified(); - }; - publicAPI.hasRenderer = ren => model.renderers.indexOf(ren) !== -1; - - // get an API specific view of this data - publicAPI.newAPISpecificView = function (name) { - let initialValues = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - return newAPISpecificView(name || model.defaultViewAPI, initialValues); - }; - - // Add renderer - publicAPI.addView = view => { - if (publicAPI.hasView(view)) { - return; - } - view.setRenderable(publicAPI); - model._views.push(view); - publicAPI.modified(); - }; - - // Remove renderer - publicAPI.removeView = view => { - model._views = model._views.filter(r => r !== view); - publicAPI.modified(); - }; - publicAPI.hasView = view => model._views.indexOf(view) !== -1; - - // handle any pre render initializations - publicAPI.preRender = () => { - model.renderers.forEach(ren => { - // make sure we have a camera - if (!ren.isActiveCameraCreated()) { - ren.resetCamera(); - } - }); - }; - publicAPI.render = () => { - publicAPI.preRender(); - if (model.interactor) { - model.interactor.render(); - } else { - model._views.forEach(view => view.traverseAllPasses()); - } - }; - publicAPI.getStatistics = () => { - const results = { - propCount: 0, - invisiblePropCount: 0, - gpuMemoryMB: 0 - }; - model._views.forEach(v => { - if (v.getGraphicsMemoryInfo) results.gpuMemoryMB += v.getGraphicsMemoryInfo() / 1e6; - }); - model.renderers.forEach(ren => { - const props = ren.getViewProps(); - const gren = model._views[0].getViewNodeFor(ren); - props.forEach(prop => { - if (prop.getVisibility()) { - results.propCount += 1; - const mpr = prop.getMapper && prop.getMapper(); - if (mpr && mpr.getPrimitiveCount) { - const gmpr = gren.getViewNodeFor(mpr); - if (gmpr) { - if (gmpr.getAllocatedGPUMemoryInBytes) { - results.gpuMemoryMB += gmpr.getAllocatedGPUMemoryInBytes() / 1e6; - } - const pcount = mpr.getPrimitiveCount(); - Object.keys(pcount).forEach(keyName => { - if (!results[keyName]) { - results[keyName] = 0; - } - results[keyName] += pcount[keyName]; - }); - } - } - } else { - results.invisiblePropCount += 1; - } - }); - }); - results.str = Object.keys(results).map(keyName => `${keyName}: ${results[keyName]}`).join('\n'); - return results; - }; - publicAPI.captureImages = function () { - let format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'image/png'; - let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - macro.setImmediate(publicAPI.render); - return model._views.map(view => view.captureNextImage ? view.captureNextImage(format, opts) : undefined).filter(i => !!i); - }; - publicAPI.addRenderWindow = child => { - if (model.childRenderWindows.includes(child)) { - return false; - } - model.childRenderWindows.push(child); - publicAPI.modified(); - return true; - }; - publicAPI.removeRenderWindow = child => { - const childIndex = model.childRenderWindows.findIndex(x => x === child); - if (childIndex < 0) { - return false; - } - model.childRenderWindows.splice(childIndex, 1); - publicAPI.modified(); - return true; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - defaultViewAPI: DEFAULT_VIEW_API, - renderers: [], - views: [], - interactor: null, - neverRendered: true, - numberOfLayers: 1, - childRenderWindows: [] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['interactor', 'numberOfLayers', '_views', 'defaultViewAPI']); - macro.get(publicAPI, model, ['neverRendered']); - macro.getArray(publicAPI, model, ['renderers', 'childRenderWindows']); - macro.moveToProtected(publicAPI, model, ['views']); - macro.event(publicAPI, model, 'completion'); - - // Object methods - vtkRenderWindow(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkRenderWindow'); - -// ---------------------------------------------------------------------------- - -var vtkRenderWindow$1 = { - newInstance, - extend, - registerViewConstructor, - listViewAPIs, - newAPISpecificView -}; - -export { vtkRenderWindow$1 as default, extend, listViewAPIs, newAPISpecificView, newInstance, registerViewConstructor }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/RenderWindowInteractor.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/RenderWindowInteractor.d.ts deleted file mode 100644 index 01751826..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/RenderWindowInteractor.d.ts +++ /dev/null @@ -1,1408 +0,0 @@ -import { vtkObject, vtkSubscription } from './../../interfaces'; -import { Nullable } from './../../types'; -import vtkRenderer from './Renderer'; -import { Axis, Device, Input, MouseButton } from './RenderWindowInteractor/Constants'; - -declare enum handledEvents { - 'StartAnimation', - 'Animation', - 'EndAnimation', - 'MouseEnter', - 'MouseLeave', - 'StartMouseMove', - 'MouseMove', - 'EndMouseMove', - 'LeftButtonPress', - 'LeftButtonRelease', - 'MiddleButtonPress', - 'MiddleButtonRelease', - 'RightButtonPress', - 'RightButtonRelease', - 'KeyPress', - 'KeyDown', - 'KeyUp', - 'StartMouseWheel', - 'MouseWheel', - 'EndMouseWheel', - 'StartPinch', - 'Pinch', - 'EndPinch', - 'StartPan', - 'Pan', - 'EndPan', - 'StartRotate', - 'Rotate', - 'EndRotate', - 'Button3D', - 'Move3D', - 'StartPointerLock', - 'EndPointerLock', - 'StartInteraction', - 'Interaction', - 'EndInteraction', - 'AnimationFrameRateUpdate', -} - -/** - * - */ -export interface IRenderWindowInteractorInitialValues { - initialized?: boolean; - enabled?: boolean; - enableRender?: boolean; - lightFollowCamera?: boolean; - desiredUpdateRate?: number; - stillUpdateRate?: number; - recognizeGestures?: boolean; - currentGesture?: string; - lastFrameTime?: number; - wheelTimeoutID?: number; - moveTimeoutID?: number; - preventDefaultOnPointerDown?: boolean; - preventDefaultOnPointerUp?: boolean; - mouseScrollDebounceByPass?: boolean; -} - -export interface IPosition { - type: string; -} - -export type InteractorEventCallback = (e: IRenderWindowInteractorEvent) => void; - -export type InteractorEventType = - | 'StartInteractionEvent' - | 'InteractionEvent' - | 'EndInteractionEvent'; - -export interface IRenderWindowInteractorEvent { - altKey: boolean; - controlKey: boolean; - firstRenderer: vtkRenderer; - pokedRenderer: vtkRenderer; - position: { x: number; y: number; z: number }; - shiftKey: boolean; - type: InteractorEventType; -} - -export interface I3DEvent { - gamepad: Gamepad; - position: DOMPointReadOnly; - orientation: DOMPointReadOnly; - targetPosition: DOMPointReadOnly; - targetOrientation: DOMPointReadOnly; - device: Device; -} - -export interface IButton3DEvent extends I3DEvent { - pressed: boolean; - input: Input; -} - -export interface vtkRenderWindowInteractor extends vtkObject { - /** - * - * @default false - */ - getInitialized(): boolean; - - /** - * - * @default null - */ - getContainer(): Nullable; - - /** - * - * @default false - */ - - getEnabled(): boolean; - - /** - * - * @default true - */ - getEnableRender(): boolean; - - /** - * - * @default null - */ - getInteractorStyle(): any; - - /** - * - * @default 0.1 - */ - getLastFrameTime(): number; - - /** - * - * @default null - */ - getView(): any; - - /** - * - * @default true - */ - getLightFollowCamera(): boolean; - - /** - * - */ - getPicker(): any; - - /** - * - * @default true - */ - getRecognizeGestures(): boolean; - - /** - * - * @default 30.0 - */ - getDesiredUpdateRate(): number; - - /** - * - * @default 2.0 - */ - getStillUpdateRate(): number; - - /** - * @default false - */ - getPreventDefaultOnPointerDown(): boolean; - - /** - * @default false - */ - getPreventDefaultOnPointerUp(): boolean; - - /** - * @default false - */ - getMouseScrollDebounceByPass(): boolean; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeStartAnimation(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeAnimation(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeEndAnimation(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokePointerEnter(callData: IRenderWindowInteractorEvent): void; - - /** - * - */ - invokePointerLeave(callData: IRenderWindowInteractorEvent): void; - - /** - * - */ - invokeMouseEnter(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeMouseLeave(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeStartMouseMove(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeMouseMove(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeEndMouseMove(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeLeftButtonPress(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeLeftButtonRelease(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeMiddleButtonPress(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeMiddleButtonRelease(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeRightButtonPress(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeRightButtonRelease(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeKeyPress(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeKeyDown(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeKeyUp(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeStartMouseWheel(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeMouseWheel(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeEndMouseWheel(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeStartPinch(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokePinch(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeEndPinch(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeStartPan(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokePan(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeEndPan(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeStartRotate(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeRotate(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeEndRotate(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeButton3D(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeMove3D(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeStartPointerLock(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeEndPointerLock(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeStartInteractionEvent(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeInteractionEvent(callData: IRenderWindowInteractorEvent): void; - - /** - * - * @param {IRenderWindowInteractorEvent} callData - */ - invokeEndInteractionEvent(callData: IRenderWindowInteractorEvent): void; - - /** - * - */ - invokeRenderEvent(): void; - - /** - * - * @param cb The callback to be called - */ - onStartAnimation( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onAnimation( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onEndAnimation( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onPointerEnter( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param cb The callback to be called - */ - onPointerLeave( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param cb The callback to be called - */ - onMouseEnter( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onMouseLeave( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onStartMouseMove( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onMouseMove( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onEndMouseMove( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onLeftButtonPress( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onLeftButtonRelease( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onMiddleButtonPress( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onMiddleButtonRelease( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onRightButtonPress( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onRightButtonRelease( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onKeyPress( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onKeyDown( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onKeyUp( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onStartMouseWheel( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onMouseWheel( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onEndMouseWheel( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onStartPinch( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onPinch( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onEndPinch( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onStartPan( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onPan( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onEndPan( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onStartRotate( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onRotate( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onEndRotate( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onButton3D( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onMove3D( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onStartPointerLock( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onEndPointerLock( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onStartInteractionEvent( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onInteractionEvent( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {InteractorEventCallback} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onEndInteractionEvent( - cb: InteractorEventCallback, - priority?: number - ): Readonly; - - /** - * - * @param {Function} cb The callback to be called. - * @param {Number} [priority] The priority of the event. - */ - onRenderEvent(cb: () => void, priority?: number): Readonly; - - /** - * - * @param args - */ - animationEvent(args: any): any; - - /** - * Triggers the 'Button3D' event. - * - * @param args - */ - button3DEvent(eventPayload: IButton3DEvent): void; - - /** - * - * @param args - */ - endAnimationEvent(args: any): any; - - /** - * - * @param args - */ - endInteractionEvent(args: any): any; - - /** - * - * @param args - */ - endMouseMoveEvent(args: any): any; - - /** - * - * @param args - */ - endMouseWheelEvent(args: any): any; - - /** - * - * @param args - */ - endPanEvent(args: any): any; - - /** - * - * @param args - */ - endPinchEvent(args: any): any; - - /** - * - * @param args - */ - endPointerLockEvent(args: any): any; - - /** - * - * @param args - */ - endRotateEvent(args: any): any; - - /** - * - * @param args - */ - interactionEvent(args: any): any; - - /** - * - * @param args - */ - keyDownEvent(args: any): any; - - /** - * - * @param args - */ - keyPressEvent(args: any): any; - - /** - * - * @param args - */ - keyUpEvent(args: any): any; - - /** - * - * @param args - */ - leftButtonPressEvent(args: any): any; - - /** - * - * @param args - */ - leftButtonReleaseEvent(args: any): any; - - /** - * - * @param args - */ - middleButtonPressEvent(args: any): any; - - /** - * - * @param args - */ - middleButtonReleaseEvent(args: any): any; - - /** - * - * @param args - */ - mouseEnterEvent(args: any): any; - - /** - * - * @param args - */ - mouseLeaveEvent(args: any): any; - - /** - * - * @param args - */ - mouseMoveEvent(args: any): any; - - /** - * - * @param args - */ - mouseWheelEvent(args: any): any; - - /** - * Triggers the 'Move3D' event. - * - * @param eventPayload - */ - move3DEvent(eventPayload: I3DEvent): void; - - /** - * - * @param args - */ - panEvent(args: any): any; - - /** - * - * @param args - */ - pinchEvent(args: any): any; - - /** - * - * @param args - */ - rightButtonPressEvent(args: any): any; - - /** - * - * @param args - */ - rightButtonReleaseEvent(args: any): any; - - /** - * - * @param args - */ - rotateEvent(args: any): any; - - /** - * Add an HTMLElement as the new container for the interactor. - * All events will be bound to this new container. - * - * container will gain the tabIndex=0 attribute to catch keyboard events. - * container must have focus (manually via click or tab, or programmatically - * via `.focus()`) to receive keypress events - * Outline on focus can be customized with CSS :focus pseudo-class. - * - * Any old container will be removed along with its listeners. - */ - setContainer(container: Nullable): boolean; - - /** - * Turn on/off the automatic repositioning of lights as the camera moves. - * @param lightFollowCamera - */ - setLightFollowCamera(lightFollowCamera: boolean): boolean; - - /** - * Set the object used to perform pick operations. - * @param picker - */ - setPicker(picker: any): boolean; - - /** - * Set whether preventDefault is called on pointer down. - * @param {Boolean} preventDefault - */ - setPreventDefaultOnPointerDown(preventDefault: boolean): boolean; - - /** - * Set whether preventDefault is called on pointer up. - * - * If pointerup occurs without a preceeding pointerdown, then - * this does nothing. - * - * @param {Boolean} preventDefault - */ - setPreventDefaultOnPointerUp(preventDefault: boolean): boolean; - - /** - * Allow system to bypass scrolling debounce. This function must be called to allow the debounce to be bypassed - * @param mouseScrollDebounceByPass - */ - - setMouseScrollDebounceByPass(mouseScrollDebounceByPass: boolean): boolean; - - /** - * - * @param recognizeGestures - */ - setRecognizeGestures(recognizeGestures: boolean): boolean; - - /** - * Set the desired update rate. - * @param desiredUpdateRate - */ - setDesiredUpdateRate(desiredUpdateRate: number): boolean; - - /** - * Set the desired update rate when movement has stopped. - * @param stillUpdateRate - */ - setStillUpdateRate(stillUpdateRate: number): boolean; - - /** - * Start the event loop. - * This is provided so that you do not have to implement your own event loop. - * You still can use your own event loop if you want. - */ - start(): void; - - /** - * - * @param args - */ - startAnimationEvent(args: any): any; - - /** - * - * @param args - */ - startInteractionEvent(args: any): any; - - /** - * - * @param args - */ - startMouseMoveEvent(args: any): any; - - /** - * - * @param args - */ - startMouseWheelEvent(args: any): any; - - /** - * - * @param args - */ - startPanEvent(args: any): any; - - /** - * - * @param args - */ - startPinchEvent(args: any): any; - - /** - * - * @param args - */ - startPointerLockEvent(args: any): any; - - /** - * - * @param args - */ - startRotateEvent(args: any): any; - - /** - * Set/Get the rendering window being controlled by this object. - * @param aren - */ - setRenderWindow(aren: any): void; - - /** - * External switching between joystick/trackball/new? modes. - * @param style - */ - setInteractorStyle(style: any): void; - - /** - * --------------------------------------------------------------------- - */ - initialize(): void; - - /** - * Enable/Disable interactions. - * By default interactors are enabled when initialized. - * Initialize() must be called prior to enabling/disabling interaction. - * These methods are used when a window/widget is being shared by multiple renderers and interactors. - * This allows a "modal" display where one interactor is active when its data is to be displayed and all other interactors associated with the widget are disabled when their data is not displayed. - */ - enable(): void; - - /** - * - */ - disable(): void; - - /** - * - */ - startEventLoop(): void; - - /** - * - */ - getCurrentRenderer(): void; - - /** - * Manually sets the current renderer. - * @param {vtkRenderer} ren - */ - setCurrentRenderer(ren: vtkRenderer): void; - - /** - * - * @param container kept for backward compatibility. - * @deprecated please use vtkRenderWindowInteractor.setContainer(container: HTMLElement) - * which will also bind events. - */ - bindEvents(container: any): void; - - /** - * - * @deprecated please use vtkRenderWindowInteractor.setContainer(null) instead. - */ - unbindEvents(): void; - - /** - * - * @param {KeyboardEvent} event - */ - handleKeyPress(event: KeyboardEvent): void; - - /** - * - * @param {KeyboardEvent} event - */ - handleKeyDown(event: KeyboardEvent): void; - - /** - * - * @param {KeyboardEvent} event - */ - handleKeyUp(event: KeyboardEvent): void; - - /** - * - * @param {PointerEvent} event - */ - handlePointerDown(event: PointerEvent): void; - - /** - * - * @param {PointerEvent} event - */ - handlePointerUp(event: PointerEvent): void; - - /** - * - * @param {PointerEvent} event - */ - handlePointerCancel(event: PointerEvent): void; - - /** - * - * @param {PointerEvent} event - */ - handlePointerMove(event: PointerEvent): void; - - /** - * - * @param {PointerEvent} event - */ - handleMouseDown(event: PointerEvent): void; - - /** - * - */ - requestPointerLock(): void; - - /** - * - */ - exitPointerLock(): void; - - /** - * - */ - isPointerLocked(): boolean; - - /** - * - */ - handlePointerLockChange(): void; - - /** - * - * @param requestor - */ - requestAnimation(requestor: any): void; - - /** - * - */ - isAnimating(): boolean; - - /** - * - * @param requestor - * @param {Boolean} [skipWarning] - */ - cancelAnimation(requestor: any, skipWarning?: boolean): void; - - /** - * - */ - switchToVRAnimation(): void; - - /** - * - */ - returnFromVRAnimation(): void; - - /** - * - * @param {Number} displayId The ID of the display. - */ - updateGamepads(displayId: number): void; - - /** - * - * @param {PointerEvent} event - */ - handleMouseMove(event: PointerEvent): void; - - /** - * - */ - handleAnimation(): void; - - /** - * - * @param {MouseEvent} event - */ - handleWheel(event: MouseEvent): void; - - /** - * - * @param {PointerEvent} event - */ - handlePointerEnter(event: PointerEvent): void; - - /** - * - * @param {PointerEvent} event - */ - handlePointerLeave(event: PointerEvent): void; - - /** - * - * @param {PointerEvent} event - */ - handleMouseUp(event: PointerEvent): void; - - /** - * - * @param {PointerEvent} event - */ - handleTouchStart(event: PointerEvent): void; - - /** - * - * @param {PointerEvent} event - */ - handleTouchMove(event: PointerEvent): void; - - /** - * - * @param {PointerEvent} event - */ - handleTouchEnd(event: PointerEvent): void; - - /** - * - * @param val - */ - setView(val: any): void; - - /** - * @return first renderer to be used for camera manipulation - */ - getFirstRenderer(): vtkRenderer; - - /** - * - * @param {Number} x - * @param {Number} y - */ - findPokedRenderer(x: number, y: number): Nullable; - - /** - * only render if we are not animating. If we are animating - * then renders will happen naturally anyhow and we definitely - * do not want extra renders as the make the apparent interaction - * rate slower. - */ - render(): void; - - /** - * we know we are in multitouch now, so start recognizing - * @param event - * @param positions - */ - recognizeGesture( - event: 'TouchStart' | 'TouchMove' | 'TouchEnd', - positions: IPosition - ): void; - - /** - * - */ - handleVisibilityChange(): void; - - /** - * Stop animating if the renderWindowInteractor is deleted. - */ - delete(): void; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkRenderWindowInteractor characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IRenderWindowInteractorInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IRenderWindowInteractorInitialValues -): void; - -/** - * Method use to create a new instance of vtkRenderWindowInteractor - */ -export function newInstance( - initialValues?: IRenderWindowInteractorInitialValues -): vtkRenderWindowInteractor; - -/** - * vtkRenderWindowInteractor provides an interaction mechanism for - * mouse/key/time events. It handles routing of mouse/key/timer messages to - * vtkInteractorObserver and its subclasses. vtkRenderWindowInteractor also - * provides controls for picking, rendering frame rate. - * - * vtkRenderWindowInteractor serves to hold user preferences and route messages - * to vtkInteractorStyle. Callbacks are available for many events. Platform - * specific subclasses should provide methods for manipulating timers, - * TerminateApp, and an event loop if required via - * - * Initialize/Start/Enable/Disable. - * - * ## Caveats - * - * vtkRenderWindowInteractor routes events through VTK’s command/observer design - * pattern. That is, when vtkRenderWindowInteractor (actually, one of its - * subclasses) sees an event, it translates it into a VTK event using the - * InvokeEvent() method. Afterward, any vtkInteractorObservers registered for - * that event are expected to respond appropriately. - */ -export declare const vtkRenderWindowInteractor: { - newInstance: typeof newInstance; - extend: typeof extend; - handledEvents: typeof handledEvents; - Device: typeof Device; - Input: typeof Input; - Axis: typeof Axis; - MouseButton: typeof MouseButton; -}; -export default vtkRenderWindowInteractor; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/RenderWindowInteractor.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/RenderWindowInteractor.js deleted file mode 100644 index 83ddc6b0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/RenderWindowInteractor.js +++ /dev/null @@ -1,1095 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { B as degreesFromRadians } from '../../Common/Core/Math/index.js'; -import Constants from './RenderWindowInteractor/Constants.js'; - -const { - Device, - Input -} = Constants; -const { - vtkWarningMacro, - vtkErrorMacro, - normalizeWheel, - vtkOnceErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -const EMPTY_MOUSE_EVENT = { - ctrlKey: false, - altKey: false, - shiftKey: false -}; -const deviceInputMap = { - 'xr-standard': [Input.Trigger, Input.Grip, Input.TrackPad, Input.Thumbstick, Input.A, Input.B] -}; -const handledEvents = ['StartAnimation', 'Animation', 'EndAnimation', 'PointerEnter', 'PointerLeave', 'MouseEnter', 'MouseLeave', 'StartMouseMove', 'MouseMove', 'EndMouseMove', 'LeftButtonPress', 'LeftButtonRelease', 'MiddleButtonPress', 'MiddleButtonRelease', 'RightButtonPress', 'RightButtonRelease', 'KeyPress', 'KeyDown', 'KeyUp', 'StartMouseWheel', 'MouseWheel', 'EndMouseWheel', 'StartPinch', 'Pinch', 'EndPinch', 'StartPan', 'Pan', 'EndPan', 'StartRotate', 'Rotate', 'EndRotate', 'Button3D', 'Move3D', 'StartPointerLock', 'EndPointerLock', 'StartInteraction', 'Interaction', 'EndInteraction', 'AnimationFrameRateUpdate']; -function preventDefault(event) { - if (event.cancelable) { - event.preventDefault(); - } -} -function pointerCacheToPositions(cache) { - const positions = Object.create(null); - cache.forEach(_ref => { - let { - pointerId, - position - } = _ref; - positions[pointerId] = position; - }); - return positions; -} - -// ---------------------------------------------------------------------------- -// vtkRenderWindowInteractor methods -// ---------------------------------------------------------------------------- - -function vtkRenderWindowInteractor(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkRenderWindowInteractor'); - - // Capture "parentClass" api for internal use - const superClass = { - ...publicAPI - }; - - // Initialize list of requesters - const animationRequesters = new Set(); - - // map from pointerId to { pointerId: number, position: [x, y] } - const pointerCache = new Map(); - - // Factor to apply on wheel spin. - let wheelCoefficient = 1; - - // Public API methods - - //---------------------------------------------------------------------- - publicAPI.start = () => { - // Let the compositing handle the event loop if it wants to. - // if (publicAPI.HasObserver(vtkCommand::StartEvent) && !publicAPI.HandleEventLoop) { - // publicAPI.invokeEvent({ type: 'StartEvent' }); - // return; - // } - - // As a convenience, initialize if we aren't initialized yet. - if (!model.initialized) { - publicAPI.initialize(); - if (!model.initialized) { - return; - } - } - // Pass execution to the subclass which will run the event loop, - // this will not return until TerminateApp is called. - publicAPI.startEventLoop(); - }; - - //---------------------------------------------------------------------- - publicAPI.setRenderWindow = aren => { - vtkErrorMacro('you want to call setView(view) instead of setRenderWindow on a vtk.js interactor'); - }; - - //---------------------------------------------------------------------- - publicAPI.setInteractorStyle = style => { - if (model.interactorStyle !== style) { - if (model.interactorStyle != null) { - model.interactorStyle.setInteractor(null); - } - model.interactorStyle = style; - if (model.interactorStyle != null) { - if (model.interactorStyle.getInteractor() !== publicAPI) { - model.interactorStyle.setInteractor(publicAPI); - } - } - } - }; - - //--------------------------------------------------------------------- - publicAPI.initialize = () => { - model.initialized = true; - publicAPI.enable(); - publicAPI.render(); - }; - publicAPI.enable = () => publicAPI.setEnabled(true); - publicAPI.disable = () => publicAPI.setEnabled(false); - publicAPI.startEventLoop = () => vtkWarningMacro('empty event loop'); - function updateCurrentRenderer(x, y) { - if (!model._forcedRenderer) { - model.currentRenderer = publicAPI.findPokedRenderer(x, y); - } - } - publicAPI.getCurrentRenderer = () => { - if (model.currentRenderer) { - return model.currentRenderer; - } - updateCurrentRenderer(0, 0); - return model.currentRenderer; - }; - function _getScreenEventPositionFor(source) { - const canvas = model._view.getCanvas(); - const bounds = canvas.getBoundingClientRect(); - const scaleX = canvas.width / bounds.width; - const scaleY = canvas.height / bounds.height; - const position = { - x: scaleX * (source.clientX - bounds.left), - y: scaleY * (bounds.height - source.clientY + bounds.top), - z: 0, - movementX: scaleX * source.movementX, - movementY: scaleY * source.movementY - }; - - // if multitouch, do not update the current renderer - if (pointerCache.size <= 1 || !model.currentRenderer) { - updateCurrentRenderer(position.x, position.y); - } - return position; - } - // Allow user to override it - const getScreenEventPositionFor = model._getScreenEventPositionFor || _getScreenEventPositionFor; - function getModifierKeysFor(event) { - return { - controlKey: event.ctrlKey, - altKey: event.altKey, - shiftKey: event.shiftKey - }; - } - function getKeysFor(event) { - const modifierKeys = getModifierKeysFor(event); - const keys = { - key: event.key, - keyCode: event.charCode, - ...modifierKeys - }; - return keys; - } - function getDeviceTypeFor(event) { - return event.pointerType || ''; - } - const _bindEvents = () => { - if (model.container === null) { - return; - } - const { - container - } = model; - container.addEventListener('contextmenu', preventDefault); - container.addEventListener('wheel', publicAPI.handleWheel); - container.addEventListener('DOMMouseScroll', publicAPI.handleWheel); - container.addEventListener('pointerenter', publicAPI.handlePointerEnter); - container.addEventListener('pointerleave', publicAPI.handlePointerLeave); - container.addEventListener('pointermove', publicAPI.handlePointerMove, { - passive: false - }); - container.addEventListener('pointerdown', publicAPI.handlePointerDown, { - passive: false - }); - container.addEventListener('pointerup', publicAPI.handlePointerUp); - container.addEventListener('pointercancel', publicAPI.handlePointerCancel); - container.addEventListener('keypress', publicAPI.handleKeyPress); - container.addEventListener('keydown', publicAPI.handleKeyDown); - // Observe keyup on document in case the focus changes - // between keydown and keyup. - document.addEventListener('keyup', publicAPI.handleKeyUp); - document.addEventListener('pointerlockchange', publicAPI.handlePointerLockChange); - container.tabIndex = 0; // to receive key events - // using touchAction is more performant than preventDefault - // in a touchstart handler. - container.style.touchAction = 'none'; - container.style.userSelect = 'none'; - // disables tap highlight for when cursor is pointer - container.style.webkitTapHighlightColor = 'rgba(0,0,0,0)'; - }; - - // For backward compatibility. - // Necessary for using unbind/bindEvent without calling setContainer. - publicAPI.bindEvents = container => { - if (container === null) { - return; - } - const res = superClass.setContainer(container); - if (res) { - _bindEvents(); - } - }; - const _unbindEvents = () => { - // Clear any previous timeouts and state variables that control mouse / touchpad behavior. - clearTimeout(model.moveTimeoutID); - clearTimeout(model.wheelTimeoutID); - model.moveTimeoutID = 0; - model.wheelTimeoutID = 0; - wheelCoefficient = 1.0; - const { - container - } = model; - if (container) { - container.removeEventListener('contextmenu', preventDefault); - container.removeEventListener('wheel', publicAPI.handleWheel); - container.removeEventListener('DOMMouseScroll', publicAPI.handleWheel); - container.removeEventListener('pointerenter', publicAPI.handlePointerEnter); - container.removeEventListener('pointerleave', publicAPI.handlePointerLeave); - container.removeEventListener('pointermove', publicAPI.handlePointerMove, { - passive: false - }); - container.removeEventListener('pointerdown', publicAPI.handlePointerDown, { - passive: false - }); - container.removeEventListener('pointerup', publicAPI.handlePointerUp); - container.removeEventListener('pointercancel', publicAPI.handlePointerCancel); - container.removeEventListener('keypress', publicAPI.handleKeyPress); - container.removeEventListener('keydown', publicAPI.handleKeyDown); - } - document.removeEventListener('keyup', publicAPI.handleKeyUp); - document.removeEventListener('pointerlockchange', publicAPI.handlePointerLockChange); - pointerCache.clear(); - }; - publicAPI.unbindEvents = () => { - _unbindEvents(); - superClass.setContainer(null); - }; - publicAPI.handleKeyPress = event => { - const data = getKeysFor(event); - publicAPI.keyPressEvent(data); - }; - publicAPI.handleKeyDown = event => { - const data = getKeysFor(event); - publicAPI.keyDownEvent(data); - }; - publicAPI.handleKeyUp = event => { - const data = getKeysFor(event); - publicAPI.keyUpEvent(data); - }; - publicAPI.handlePointerEnter = event => { - const callData = { - ...getModifierKeysFor(event), - position: getScreenEventPositionFor(event), - deviceType: getDeviceTypeFor(event) - }; - publicAPI.pointerEnterEvent(callData); - if (callData.deviceType === 'mouse') { - publicAPI.mouseEnterEvent(callData); - } - }; - publicAPI.handlePointerLeave = event => { - const callData = { - ...getModifierKeysFor(event), - position: getScreenEventPositionFor(event), - deviceType: getDeviceTypeFor(event) - }; - publicAPI.pointerLeaveEvent(callData); - if (callData.deviceType === 'mouse') { - publicAPI.mouseLeaveEvent(callData); - } - }; - publicAPI.handlePointerDown = event => { - if (event.button > 2 || publicAPI.isPointerLocked()) { - // ignore events from extra mouse buttons such as `back` and `forward` - return; - } - if (model.preventDefaultOnPointerDown) { - preventDefault(event); - } - if (event.target.hasPointerCapture(event.pointerId)) { - event.target.releasePointerCapture(event.pointerId); - } - model.container.setPointerCapture(event.pointerId); - if (pointerCache.has(event.pointerId)) { - vtkWarningMacro('[RenderWindowInteractor] duplicate pointerId detected'); - } - pointerCache.set(event.pointerId, { - pointerId: event.pointerId, - position: getScreenEventPositionFor(event) - }); - switch (event.pointerType) { - case 'pen': - case 'touch': - publicAPI.handleTouchStart(event); - break; - case 'mouse': - default: - publicAPI.handleMouseDown(event); - break; - } - }; - publicAPI.handlePointerUp = event => { - if (pointerCache.has(event.pointerId)) { - if (model.preventDefaultOnPointerUp) { - preventDefault(event); - } - pointerCache.delete(event.pointerId); - model.container.releasePointerCapture(event.pointerId); - switch (event.pointerType) { - case 'pen': - case 'touch': - publicAPI.handleTouchEnd(event); - break; - case 'mouse': - default: - publicAPI.handleMouseUp(event); - break; - } - } - }; - publicAPI.handlePointerCancel = event => { - if (pointerCache.has(event.pointerId)) { - pointerCache.delete(event.pointerId); - switch (event.pointerType) { - case 'pen': - case 'touch': - publicAPI.handleTouchEnd(event); - break; - case 'mouse': - default: - publicAPI.handleMouseUp(event); - break; - } - } - }; - publicAPI.handlePointerMove = event => { - if (pointerCache.has(event.pointerId)) { - const pointer = pointerCache.get(event.pointerId); - pointer.position = getScreenEventPositionFor(event); - } - switch (event.pointerType) { - case 'pen': - case 'touch': - publicAPI.handleTouchMove(event); - break; - case 'mouse': - default: - publicAPI.handleMouseMove(event); - break; - } - }; - publicAPI.handleMouseDown = event => { - const callData = { - ...getModifierKeysFor(event), - position: getScreenEventPositionFor(event), - deviceType: getDeviceTypeFor(event) - }; - switch (event.button) { - case 0: - publicAPI.leftButtonPressEvent(callData); - break; - case 1: - publicAPI.middleButtonPressEvent(callData); - break; - case 2: - publicAPI.rightButtonPressEvent(callData); - break; - default: - vtkErrorMacro(`Unknown mouse button pressed: ${event.button}`); - break; - } - }; - - //---------------------------------------------------------------------- - publicAPI.requestPointerLock = () => { - if (model.container) { - model.container.requestPointerLock(); - } - }; - - //---------------------------------------------------------------------- - publicAPI.exitPointerLock = () => document.exitPointerLock?.(); - - //---------------------------------------------------------------------- - publicAPI.isPointerLocked = () => !!model.container && document.pointerLockElement === model.container; - - //---------------------------------------------------------------------- - publicAPI.handlePointerLockChange = () => { - if (publicAPI.isPointerLocked()) { - publicAPI.startPointerLockEvent(); - } else { - publicAPI.endPointerLockEvent(); - } - }; - - //---------------------------------------------------------------------- - function forceRender() { - if (model._view && model.enabled && model.enableRender) { - model.inRender = true; - model._view.traverseAllPasses(); - model.inRender = false; - } - // outside the above test so that third-party code can redirect - // the render to the appropriate class - publicAPI.invokeRenderEvent(); - } - publicAPI.requestAnimation = requestor => { - if (requestor === undefined) { - vtkErrorMacro(`undefined requester, can not start animating`); - return; - } - if (animationRequesters.has(requestor)) { - vtkWarningMacro(`requester is already registered for animating`); - return; - } - animationRequesters.add(requestor); - if (!model.animationRequest && animationRequesters.size === 1 && !model.xrAnimation) { - model._animationStartTime = Date.now(); - model._animationFrameCount = 0; - model.animationRequest = requestAnimationFrame(publicAPI.handleAnimation); - publicAPI.startAnimationEvent(); - } - }; - - // continue animating for at least the specified duration of - // milliseconds. - publicAPI.extendAnimation = duration => { - const newEnd = Date.now() + duration; - model._animationExtendedEnd = Math.max(model._animationExtendedEnd, newEnd); - if (!model.animationRequest && animationRequesters.size === 0 && !model.xrAnimation) { - model._animationStartTime = Date.now(); - model._animationFrameCount = 0; - model.animationRequest = requestAnimationFrame(publicAPI.handleAnimation); - publicAPI.startAnimationEvent(); - } - }; - publicAPI.isAnimating = () => model.xrAnimation || model.animationRequest !== null; - publicAPI.cancelAnimation = function (requestor) { - let skipWarning = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - if (!animationRequesters.has(requestor)) { - if (!skipWarning) { - const requestStr = requestor && requestor.getClassName ? requestor.getClassName() : requestor; - vtkWarningMacro(`${requestStr} did not request an animation`); - } - return; - } - animationRequesters.delete(requestor); - if (model.animationRequest && animationRequesters.size === 0 && Date.now() > model._animationExtendedEnd) { - cancelAnimationFrame(model.animationRequest); - model.animationRequest = null; - publicAPI.endAnimationEvent(); - publicAPI.render(); - } - }; - publicAPI.switchToXRAnimation = () => { - // cancel existing animation if any - if (model.animationRequest) { - cancelAnimationFrame(model.animationRequest); - model.animationRequest = null; - } - model.xrAnimation = true; - }; - publicAPI.returnFromXRAnimation = () => { - model.xrAnimation = false; - if (animationRequesters.size !== 0) { - model.recentAnimationFrameRate = 10.0; - model.animationRequest = requestAnimationFrame(publicAPI.handleAnimation); - } - }; - publicAPI.updateXRGamepads = (xrSession, xrFrame, xrRefSpace) => { - // watch for when buttons change state and fire events - xrSession.inputSources.forEach(inputSource => { - const gripPose = inputSource.gripSpace == null ? null : xrFrame.getPose(inputSource.gripSpace, xrRefSpace); - const targetRayPose = inputSource.gripSpace == null ? null : xrFrame.getPose(inputSource.targetRaySpace, xrRefSpace); - const gamepad = inputSource.gamepad; - const hand = inputSource.handedness; - if (!gamepad) { - return; - } - if (!(gamepad.index in model.lastGamepadValues)) { - model.lastGamepadValues[gamepad.index] = { - left: { - buttons: {} - }, - right: { - buttons: {} - }, - none: { - buttons: {} - } - }; - } - for (let buttonIdx = 0; buttonIdx < gamepad.buttons.length; ++buttonIdx) { - if (!(buttonIdx in model.lastGamepadValues[gamepad.index][hand].buttons)) { - model.lastGamepadValues[gamepad.index][hand].buttons[buttonIdx] = false; - } - if (model.lastGamepadValues[gamepad.index][hand].buttons[buttonIdx] !== gamepad.buttons[buttonIdx].pressed && gripPose != null) { - publicAPI.button3DEvent({ - gamepad, - position: gripPose.transform.position, - orientation: gripPose.transform.orientation, - targetPosition: targetRayPose.transform.position, - targetOrientation: targetRayPose.transform.orientation, - pressed: gamepad.buttons[buttonIdx].pressed, - device: inputSource.handedness === 'left' ? Device.LeftController : Device.RightController, - input: deviceInputMap[gamepad.mapping] && deviceInputMap[gamepad.mapping][buttonIdx] ? deviceInputMap[gamepad.mapping][buttonIdx] : Input.Trigger - }); - model.lastGamepadValues[gamepad.index][hand].buttons[buttonIdx] = gamepad.buttons[buttonIdx].pressed; - } - if (model.lastGamepadValues[gamepad.index][hand].buttons[buttonIdx] && gripPose != null) { - publicAPI.move3DEvent({ - gamepad, - position: gripPose.transform.position, - orientation: gripPose.transform.orientation, - targetPosition: targetRayPose.transform.position, - targetOrientation: targetRayPose.transform.orientation, - device: inputSource.handedness === 'left' ? Device.LeftController : Device.RightController - }); - } - } - }); - }; - publicAPI.handleMouseMove = event => { - const callData = { - ...getModifierKeysFor(event), - position: getScreenEventPositionFor(event), - deviceType: getDeviceTypeFor(event) - }; - if (model.moveTimeoutID === 0) { - publicAPI.startMouseMoveEvent(callData); - } else { - publicAPI.mouseMoveEvent(callData); - clearTimeout(model.moveTimeoutID); - } - - // start a timer to keep us animating while we get mouse move events - model.moveTimeoutID = setTimeout(() => { - publicAPI.endMouseMoveEvent(); - model.moveTimeoutID = 0; - }, 200); - }; - publicAPI.handleAnimation = () => { - const currTime = Date.now(); - model._animationFrameCount++; - if (currTime - model._animationStartTime > 1000.0 && model._animationFrameCount > 1) { - model.recentAnimationFrameRate = 1000.0 * (model._animationFrameCount - 1) / (currTime - model._animationStartTime); - model.lastFrameTime = 1.0 / model.recentAnimationFrameRate; - publicAPI.animationFrameRateUpdateEvent(); - model._animationStartTime = currTime; - model._animationFrameCount = 1; - } - publicAPI.animationEvent(); - forceRender(); - if (animationRequesters.size > 0 || Date.now() < model._animationExtendedEnd) { - model.animationRequest = requestAnimationFrame(publicAPI.handleAnimation); - } else { - cancelAnimationFrame(model.animationRequest); - model.animationRequest = null; - publicAPI.endAnimationEvent(); - publicAPI.render(); - } - }; - publicAPI.handleWheel = event => { - preventDefault(event); - - /** - * wheel event values can vary significantly across browsers, platforms - * and devices [1]. `normalizeWheel` uses facebook's solution from their - * fixed-data-table repository [2]. - * - * [1] https://developer.mozilla.org/en-US/docs/Web/Events/mousewheel - * [2] https://github.com/facebookarchive/fixed-data-table/blob/master/src/vendor_upstream/dom/normalizeWheel.js - * - * This code will return an object with properties: - * - * spinX -- normalized spin speed (use for zoom) - x plane - * spinY -- " - y plane - * pixelX -- normalized distance (to pixels) - x plane - * pixelY -- " - y plane - * - */ - const callData = { - ...normalizeWheel(event), - ...getModifierKeysFor(event), - position: getScreenEventPositionFor(event), - deviceType: getDeviceTypeFor(event) - }; - - // Wheel events are thought to scroll pages (i.e. multiple lines at once). - // See normalizeWheel() documentation for more context. - // While trackpad wheel events are many small (<1) wheel spins, - // mouse wheel events have absolute spin values higher than 1. - // Here the first spin value is "recorded", and used to normalize - // all the following mouse wheel events. - if (model.wheelTimeoutID === 0) { - // we attempt to distinguish between trackpads and mice - // .3 will be larger than the first trackpad event, - // but small enough to detect some common edge case mice - if (Math.abs(callData.spinY) >= 0.3) { - // Event is coming from mouse wheel - wheelCoefficient = Math.abs(callData.spinY); - } else { - // Event is coming from trackpad - wheelCoefficient = 1; - } - } - callData.spinY /= wheelCoefficient; - if (model.wheelTimeoutID === 0) { - publicAPI.startMouseWheelEvent(callData); - publicAPI.mouseWheelEvent(callData); - } else { - publicAPI.mouseWheelEvent(callData); - clearTimeout(model.wheelTimeoutID); - } - if (model.mouseScrollDebounceByPass) { - publicAPI.extendAnimation(600); - publicAPI.endMouseWheelEvent(); - model.wheelTimeoutID = 0; - } else { - // start a timer to keep us animating while we get wheel events - model.wheelTimeoutID = setTimeout(() => { - publicAPI.extendAnimation(600); - publicAPI.endMouseWheelEvent(); - model.wheelTimeoutID = 0; - }, 200); - } - }; - publicAPI.handleMouseUp = event => { - const callData = { - ...getModifierKeysFor(event), - position: getScreenEventPositionFor(event), - deviceType: getDeviceTypeFor(event) - }; - switch (event.button) { - case 0: - publicAPI.leftButtonReleaseEvent(callData); - break; - case 1: - publicAPI.middleButtonReleaseEvent(callData); - break; - case 2: - publicAPI.rightButtonReleaseEvent(callData); - break; - default: - vtkErrorMacro(`Unknown mouse button released: ${event.button}`); - break; - } - }; - publicAPI.handleTouchStart = event => { - const pointers = [...pointerCache.values()]; - // If multitouch - if (model.recognizeGestures && pointers.length > 1) { - const positions = pointerCacheToPositions(pointerCache); - // did we just transition to multitouch? - if (pointers.length === 2) { - const callData = { - ...getModifierKeysFor(EMPTY_MOUSE_EVENT), - position: pointers[0].position, - deviceType: getDeviceTypeFor(event) - }; - publicAPI.leftButtonReleaseEvent(callData); - } - // handle the gesture - publicAPI.recognizeGesture('TouchStart', positions); - } else if (pointers.length === 1) { - const callData = { - ...getModifierKeysFor(EMPTY_MOUSE_EVENT), - position: getScreenEventPositionFor(event), - deviceType: getDeviceTypeFor(event) - }; - publicAPI.leftButtonPressEvent(callData); - } - }; - publicAPI.handleTouchMove = event => { - const pointers = [...pointerCache.values()]; - if (model.recognizeGestures && pointers.length > 1) { - const positions = pointerCacheToPositions(pointerCache); - publicAPI.recognizeGesture('TouchMove', positions); - } else if (pointers.length === 1) { - const callData = { - ...getModifierKeysFor(EMPTY_MOUSE_EVENT), - position: pointers[0].position, - deviceType: getDeviceTypeFor(event) - }; - publicAPI.mouseMoveEvent(callData); - } - }; - publicAPI.handleTouchEnd = event => { - const pointers = [...pointerCache.values()]; - if (model.recognizeGestures) { - // No more fingers down - if (pointers.length === 0) { - const callData = { - ...getModifierKeysFor(EMPTY_MOUSE_EVENT), - position: getScreenEventPositionFor(event), - deviceType: getDeviceTypeFor(event) - }; - publicAPI.leftButtonReleaseEvent(callData); - } else if (pointers.length === 1) { - // If one finger left, end touch and start button press - const positions = pointerCacheToPositions(pointerCache); - publicAPI.recognizeGesture('TouchEnd', positions); - const callData = { - ...getModifierKeysFor(EMPTY_MOUSE_EVENT), - position: pointers[0].position, - deviceType: getDeviceTypeFor(event) - }; - publicAPI.leftButtonPressEvent(callData); - } else { - // If more than one finger left, keep touch move - const positions = pointerCacheToPositions(pointerCache); - publicAPI.recognizeGesture('TouchMove', positions); - } - } else if (pointers.length === 1) { - const callData = { - ...getModifierKeysFor(EMPTY_MOUSE_EVENT), - position: pointers[0].position, - deviceType: getDeviceTypeFor(event) - }; - publicAPI.leftButtonReleaseEvent(callData); - } - }; - publicAPI.setView = val => { - if (model._view === val) { - return; - } - model._view = val; - model._view.getRenderable().setInteractor(publicAPI); - publicAPI.modified(); - }; - publicAPI.getFirstRenderer = () => model._view?.getRenderable()?.getRenderersByReference()?.[0]; - publicAPI.findPokedRenderer = function () { - let x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - let y = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - if (!model._view) { - return null; - } - // The original order of renderers needs to remain as - // the first one is the one we want to manipulate the camera on. - const rc = model._view?.getRenderable()?.getRenderers(); - if (!rc || rc.length === 0) { - return null; - } - rc.sort((a, b) => a.getLayer() - b.getLayer()); - let interactiveren = null; - let viewportren = null; - let currentRenderer = null; - let count = rc.length; - while (count--) { - const aren = rc[count]; - if (model._view.isInViewport(x, y, aren) && aren.getInteractive()) { - currentRenderer = aren; - break; - } - if (interactiveren === null && aren.getInteractive()) { - // Save this renderer in case we can't find one in the viewport that - // is interactive. - interactiveren = aren; - } - if (viewportren === null && model._view.isInViewport(x, y, aren)) { - // Save this renderer in case we can't find one in the viewport that - // is interactive. - viewportren = aren; - } - } - - // We must have a value. If we found an interactive renderer before, that's - // better than a non-interactive renderer. - if (currentRenderer === null) { - currentRenderer = interactiveren; - } - - // We must have a value. If we found a renderer that is in the viewport, - // that is better than any old viewport (but not as good as an interactive - // one). - if (currentRenderer === null) { - currentRenderer = viewportren; - } - - // We must have a value - take anything. - if (currentRenderer == null) { - currentRenderer = rc[0]; - } - return currentRenderer; - }; - - // only render if we are not animating. If we are animating - // then renders will happen naturally anyhow and we definitely - // do not want extra renders as the make the apparent interaction - // rate slower. - publicAPI.render = () => { - if (!publicAPI.isAnimating() && !model.inRender) { - forceRender(); - } - }; - - // create the generic Event methods - handledEvents.forEach(eventName => { - const lowerFirst = eventName.charAt(0).toLowerCase() + eventName.slice(1); - publicAPI[`${lowerFirst}Event`] = arg => { - // Check that interactor enabled - if (!model.enabled) { - return; - } - - // Check that a poked renderer exists - const renderer = publicAPI.getCurrentRenderer(); - if (!renderer) { - vtkOnceErrorMacro(` - Can not forward events without a current renderer on the interactor. - `); - return; - } - - // Pass the eventName and the poked renderer - const callData = { - type: eventName, - pokedRenderer: model.currentRenderer, - firstRenderer: publicAPI.getFirstRenderer(), - // Add the arguments to the call data - ...arg - }; - - // Call invoke - publicAPI[`invoke${eventName}`](callData); - }; - }); - - // we know we are in multitouch now, so start recognizing - publicAPI.recognizeGesture = (event, positions) => { - // more than two pointers we ignore - if (Object.keys(positions).length > 2) { - return; - } - if (!model.startingEventPositions) { - model.startingEventPositions = {}; - } - - // store the initial positions - if (event === 'TouchStart') { - Object.keys(positions).forEach(key => { - model.startingEventPositions[key] = positions[key]; - }); - // we do not know what the gesture is yet - model.currentGesture = 'Start'; - return; - } - - // end the gesture if needed - if (event === 'TouchEnd') { - if (model.currentGesture === 'Pinch') { - publicAPI.render(); - publicAPI.endPinchEvent(); - } - if (model.currentGesture === 'Rotate') { - publicAPI.render(); - publicAPI.endRotateEvent(); - } - if (model.currentGesture === 'Pan') { - publicAPI.render(); - publicAPI.endPanEvent(); - } - model.currentGesture = 'Start'; - model.startingEventPositions = {}; - return; - } - - // what are the two pointers we are working with - let count = 0; - const posVals = []; - const startVals = []; - Object.keys(positions).forEach(key => { - posVals[count] = positions[key]; - startVals[count] = model.startingEventPositions[key]; - count++; - }); - - // The meat of the algorithm - // on move events we analyze them to determine what type - // of movement it is and then deal with it. - // calculate the distances - const originalDistance = Math.sqrt((startVals[0].x - startVals[1].x) * (startVals[0].x - startVals[1].x) + (startVals[0].y - startVals[1].y) * (startVals[0].y - startVals[1].y)); - const newDistance = Math.sqrt((posVals[0].x - posVals[1].x) * (posVals[0].x - posVals[1].x) + (posVals[0].y - posVals[1].y) * (posVals[0].y - posVals[1].y)); - - // calculate rotations - let originalAngle = degreesFromRadians(Math.atan2(startVals[1].y - startVals[0].y, startVals[1].x - startVals[0].x)); - let newAngle = degreesFromRadians(Math.atan2(posVals[1].y - posVals[0].y, posVals[1].x - posVals[0].x)); - - // angles are cyclic so watch for that, 1 and 359 are only 2 apart :) - let angleDeviation = newAngle - originalAngle; - newAngle = newAngle + 180.0 >= 360.0 ? newAngle - 180.0 : newAngle + 180.0; - originalAngle = originalAngle + 180.0 >= 360.0 ? originalAngle - 180.0 : originalAngle + 180.0; - if (Math.abs(newAngle - originalAngle) < Math.abs(angleDeviation)) { - angleDeviation = newAngle - originalAngle; - } - - // calculate the translations - const trans = []; - trans[0] = (posVals[0].x - startVals[0].x + posVals[1].x - startVals[1].x) / 2.0; - trans[1] = (posVals[0].y - startVals[0].y + posVals[1].y - startVals[1].y) / 2.0; - if (event === 'TouchMove') { - // OK we want to - // - immediately respond to the user - // - allow the user to zoom without panning (saves focal point) - // - allow the user to rotate without panning (saves focal point) - - // do we know what gesture we are doing yet? If not - // see if we can figure it out - if (model.currentGesture === 'Start') { - // pinch is a move to/from the center point - // rotate is a move along the circumference - // pan is a move of the center point - // compute the distance along each of these axes in pixels - // the first to break thresh wins - let thresh = 0.01 * Math.sqrt(model.container.clientWidth * model.container.clientWidth + model.container.clientHeight * model.container.clientHeight); - if (thresh < 15.0) { - thresh = 15.0; - } - const pinchDistance = Math.abs(newDistance - originalDistance); - const rotateDistance = newDistance * 3.1415926 * Math.abs(angleDeviation) / 360.0; - const panDistance = Math.sqrt(trans[0] * trans[0] + trans[1] * trans[1]); - if (pinchDistance > thresh && pinchDistance > rotateDistance && pinchDistance > panDistance) { - model.currentGesture = 'Pinch'; - const callData = { - scale: 1.0, - touches: positions - }; - publicAPI.startPinchEvent(callData); - } else if (rotateDistance > thresh && rotateDistance > panDistance) { - model.currentGesture = 'Rotate'; - const callData = { - rotation: 0.0, - touches: positions - }; - publicAPI.startRotateEvent(callData); - } else if (panDistance > thresh) { - model.currentGesture = 'Pan'; - const callData = { - translation: [0, 0], - touches: positions - }; - publicAPI.startPanEvent(callData); - } - } else { - // if we have found a specific type of movement then - // handle it - if (model.currentGesture === 'Rotate') { - const callData = { - rotation: angleDeviation, - touches: positions - }; - publicAPI.rotateEvent(callData); - } - if (model.currentGesture === 'Pinch') { - const callData = { - scale: newDistance / originalDistance, - touches: positions - }; - publicAPI.pinchEvent(callData); - } - if (model.currentGesture === 'Pan') { - const callData = { - translation: trans, - touches: positions - }; - publicAPI.panEvent(callData); - } - } - } - }; - publicAPI.handleVisibilityChange = () => { - model._animationStartTime = Date.now(); - model._animationFrameCount = 0; - }; - publicAPI.setCurrentRenderer = r => { - model._forcedRenderer = !!r; - model.currentRenderer = r; - }; - publicAPI.setContainer = container => { - _unbindEvents(); - const res = superClass.setContainer(container ?? null); - if (res) { - _bindEvents(); - } - return res; - }; - - // Stop animating if the renderWindowInteractor is deleted. - publicAPI.delete = () => { - while (animationRequesters.size) { - publicAPI.cancelAnimation(animationRequesters.values().next().value); - } - if (typeof document.hidden !== 'undefined') { - document.removeEventListener('visibilitychange', publicAPI.handleVisibilityChange); - } - if (model.container) { - publicAPI.setContainer(null); - } - superClass.delete(); - }; - - // Use the Page Visibility API to detect when we switch away from or back to - // this tab, and reset the animationFrameStart. When tabs are not active, browsers - // will stop calling requestAnimationFrame callbacks. - if (typeof document.hidden !== 'undefined') { - document.addEventListener('visibilitychange', publicAPI.handleVisibilityChange, false); - } -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - renderWindow: null, - interactorStyle: null, - picker: null, - pickingManager: null, - initialized: false, - enabled: false, - enableRender: true, - currentRenderer: null, - lightFollowCamera: true, - desiredUpdateRate: 30.0, - stillUpdateRate: 2.0, - container: null, - // _view: null, - recognizeGestures: true, - currentGesture: 'Start', - animationRequest: null, - lastFrameTime: 0.1, - recentAnimationFrameRate: 10.0, - wheelTimeoutID: 0, - moveTimeoutID: 0, - lastGamepadValues: {}, - preventDefaultOnPointerDown: false, - preventDefaultOnPointerUp: false, - mouseScrollDebounceByPass: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - - // run animation at least until this time - model._animationExtendedEnd = 0; - macro.event(publicAPI, model, 'RenderEvent'); - handledEvents.forEach(eventName => macro.event(publicAPI, model, eventName)); - - // Create get-only macros - macro.get(publicAPI, model, ['initialized', 'interactorStyle', 'lastFrameTime', 'recentAnimationFrameRate', '_view']); - - // Create get-set macros - macro.setGet(publicAPI, model, ['container', 'lightFollowCamera', 'enabled', 'enableRender', 'recognizeGestures', 'desiredUpdateRate', 'stillUpdateRate', 'picker', 'preventDefaultOnPointerDown', 'preventDefaultOnPointerUp', 'mouseScrollDebounceByPass']); - macro.moveToProtected(publicAPI, model, ['view']); - - // For more macro methods, see "Sources/macros.js" - - // Object specific methods - vtkRenderWindowInteractor(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkRenderWindowInteractor'); - -// ---------------------------------------------------------------------------- - -var vtkRenderWindowInteractor$1 = { - newInstance, - extend, - handledEvents, - ...Constants -}; - -export { vtkRenderWindowInteractor$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/RenderWindowInteractor/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/RenderWindowInteractor/Constants.d.ts deleted file mode 100644 index 0ded6820..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/RenderWindowInteractor/Constants.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -export declare enum Device { - Unknown = 0, - LeftController = 1, - RightController = 2, -} - -export declare enum Input { - Unknown = 0, - Trigger = 1, - TrackPad = 2, - Grip = 3, - Thumbstick = 4, - A = 5, - B = 6, - ApplicationMenu = 7, // Not exposed in WebXR API -} - -export declare enum Axis { - Unknown = 0, - TouchpadX = 1, - TouchpadY = 2, - ThumbstickX = 3, - ThumbstickY = 4, -} - -export declare enum MouseButton { - LeftButton = 1, - MiddleButton = 2, - RightButton = 3, -} - -declare const _default: { - Device: typeof Device; - Input: typeof Input; - Axis: typeof Axis; - MouseButton: typeof MouseButton; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/RenderWindowInteractor/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/RenderWindowInteractor/Constants.js deleted file mode 100644 index a56794da..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/RenderWindowInteractor/Constants.js +++ /dev/null @@ -1,36 +0,0 @@ -const Device = { - Unknown: 0, - LeftController: 1, - RightController: 2 -}; -const Input = { - Unknown: 0, - Trigger: 1, - TrackPad: 2, - Grip: 3, - Thumbstick: 4, - A: 5, - B: 6, - ApplicationMenu: 7 // Not exposed in WebXR API -}; - -const Axis = { - Unknown: 0, - TouchpadX: 1, - TouchpadY: 2, - ThumbstickX: 3, - ThumbstickY: 4 -}; -const MouseButton = { - LeftButton: 1, - MiddleButton: 2, - RightButton: 3 -}; -var Constants = { - Device, - Input, - Axis, - MouseButton -}; - -export { Axis, Device, Input, MouseButton, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Renderer.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Renderer.d.ts deleted file mode 100644 index 591c4893..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Renderer.d.ts +++ /dev/null @@ -1,718 +0,0 @@ -import { Bounds, Nullable } from './../../types'; - -import vtkCamera from './Camera'; -import vtkLight from './Light'; -import vtkRenderWindow from './RenderWindow'; -import vtkProp from './Prop'; -import vtkViewport, { IViewportInitialValues } from './Viewport'; -import vtkVolume from './Volume'; -import vtkTexture from './Texture'; -import { EventHandler, vtkSubscription } from './../../interfaces'; - -export interface IRendererInitialValues extends IViewportInitialValues { - allBounds?: Bounds[]; - ambient?: number[]; - allocatedRenderTime?: number; - timeFactor?: number; - automaticLightCreation?: boolean; - twoSidedLighting?: boolean; - lastRenderTimeInSeconds?: number; - lights?: vtkLight[]; - actors?: vtkProp[]; - volumes?: vtkVolume[]; - lightFollowCamera?: boolean; - numberOfPropsRendered?: number; - layer?: number; - preserveColorBuffer?: boolean; - preserveDepthBuffer?: boolean; - interactive?: boolean; - nearClippingPlaneTolerance?: number; - clippingRangeExpansion?: number; - erase?: boolean; - draw?: boolean; - useShadows?: boolean; - useDepthPeeling?: boolean; - occlusionRatio?: number; - maximumNumberOfPeels?: number; - texturedBackground?: boolean; - environmentTexture?: vtkTexture; - environmentTextureDiffuseStrength?: number; - environmentTextureSpecularStrength?: number; - useEnvironmentTextureAsBackground?: boolean; - pass?: number; -} - -export type VtkRendererEvent = - | { type: 'CreateCameraEvent'; camera: vtkCamera } - | { type: 'ActiveCameraEvent'; camera: vtkCamera } - | { type: 'ComputeVisiblePropBoundsEvent'; renderer: vtkRenderer } - | { type: 'ResetCameraClippingRangeEvent'; renderer: vtkRenderer } - | { type: 'ResetCameraEvent'; renderer: vtkRenderer }; - -export interface vtkRenderer extends vtkViewport { - /** - * - */ - isActiveCameraCreated(): boolean; - - /** - * Add different types of props to the renderer. - * @param {vtkProp} actor The vtkProp instance. - */ - addActor(actor: vtkProp): boolean; - - /** - * Check if the renderer already has the specified light. - * @param {vtkLight} light The vtkLight instance. - */ - hasLight(light: vtkLight): boolean; - - /** - * Add a light to the list of lights. - * @param {vtkLight} light The vtkLight instance. - */ - addLight(light: vtkLight): void; - - /** - * Not Implemented yet - */ - allocateTime(): any; - - /** - * Add a volume to the renderer.. - * @param volume The vtkVolume instance. - */ - addVolume(volume: vtkVolume): boolean; - - /** - * Create and add a light to renderer. - */ - createLight(): void; - - /** - * Compute the bounding box of all the visible props Used in ResetCamera() and ResetCameraClippingRange() - */ - computeVisiblePropBounds(): Bounds; - - /** - * Get the active camera - */ - getActiveCamera(): vtkCamera; - - /** - * - */ - getActiveCameraAndResetIfCreated(): vtkCamera; - - /** - * Return any actors in this renderer. - * - */ - getActors(): vtkProp[]; - - /** - * Return any actors in this renderer. - * - */ - getActorsByReference(): vtkProp[]; - - /** - * - * @default 100 - */ - getAllocatedRenderTime(): number; - - /** - * - */ - getAutomaticLightCreation(): boolean; - - /** - * - * @default null - */ - getEnvironmentTexture(): vtkTexture; - - /** - * Returns the diffuse strength of the set environment texture. - * @default 1 - */ - getEnvironmentTextureDiffuseStrength(): number; - - /** - * Returns the specular strength of the set environment texture. - * @default 1 - */ - getEnvironmentTextureSpecularStrength(): number; - - /** - * Gets whether or not the environment texture is being used as the background for the view. - * @default false - */ - getUseEnvironmentTextureAsBackground(): boolean; - - /** - * - * @default null - */ - getBackingStore(): any; - - /** - * - */ - getClippingRangeExpansion(): number; - - /** - * - * @default null - */ - getDelegate(): any; - - /** - * - * @default true - */ - getDraw(): boolean; - - /** - * - * @default true - */ - getErase(): boolean; - - /** - * - * @default true - */ - getInteractive(): boolean; - - /** - * - * @default -1 - */ - getLastRenderTimeInSeconds(): number; - - /** - * - * @default 0 - */ - getNumberOfPropsRendered(): number; - - /** - * - * @default - */ - getLastRenderingUsedDepthPeeling(): any; - - /** - * - * @default 0 - */ - getLayer(): number; - - /** - * - * @default true - */ - getLightFollowCamera(): boolean; - - /** - * - */ - getLights(): vtkLight[]; - - /** - * - */ - getLightsByReference(): vtkLight[]; - - /** - * - * @default 4 - */ - getMaximumNumberOfPeels(): number; - - /** - * Return the `Modified Time` which is a monotonic increasing integer - * global for all vtkObjects. - * - * This allow to solve a question such as: - * - Is that object created/modified after another one? - * - Do I need to re-execute this filter, or not? ... - * - * @return {Number} the global modified time. - */ - getMTime(): number; - - /** - * - * @default 0 - */ - getNearClippingPlaneTolerance(): number; - - /** - * - * @default 0 - */ - getOcclusionRatio(): number; - - /** - * - * @default null - */ - getRenderWindow(): Nullable; - - /** - * - * @default 0 - */ - getPass(): number; - - /** - * - * @default false - */ - getPreserveColorBuffer(): boolean; - - /** - * - * @default false - */ - getPreserveDepthBuffer(): boolean; - - /** - * - * @default null - */ - getSelector(): any; - - /** - * - * @default 1 - */ - getTimeFactor(): number; - - /** - * - * @default true - */ - getTransparent(): boolean; - - /** - * - * @default false - */ - getTexturedbackground(): boolean; - - /** - * - * @default true - */ - getTwosidedlighting(): boolean; - - /** - * - * @default false - */ - getUsedepthpeeling(): boolean; - - /** - * - * @default false - */ - getUseshadows(): boolean; - - /** - * - */ - getVTKWindow(): vtkRenderWindow; - - /** - * Return the collection of volumes. - * - */ - getVolumes(): vtkVolume[]; - - /** - * Return the collection of volumes. - * - */ - getVolumesByReference(): vtkVolume[]; - - /** - * Create a new Camera suitable for use with this type of Renderer. - */ - makeCamera(): vtkCamera; - - /** - * Create a new Light suitable for use with this type of Renderer. - */ - makeLight(): vtkLight; - - /** - * requires the aspect ratio of the viewport as X/Y - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - * @param {Number} aspect - */ - normalizedDisplayToWorld( - x: number, - y: number, - z: number, - aspect: number - ): number[]; - - /** - * - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - * @param {Number} aspect - */ - projectionToView(x: number, y: number, z: number, aspect: number): number[]; - - /** - * Specify the camera to use for this renderer. - * @param {vtkCamera} camera The camera object to use. - */ - setActiveCamera(camera: vtkCamera): boolean; - - /** - * - * @param {Boolean} automaticLightCreation - */ - setAutomaticLightCreation(automaticLightCreation: boolean): boolean; - - /** - * - * @param {vtkTexture} environmentTexture - */ - setEnvironmentTexture(environmentTexture: vtkTexture): boolean; - - /** - * Sets the diffuse strength of the set environment texture. - * @param {number} diffuseStrength the new diffuse strength. - */ - setEnvironmentTextureDiffuseStrength(diffuseStrength: number): boolean; - - /** - * Sets the specular strength of the set environment texture. - * @param {number} specularStrength the new specular strength. - */ - setEnvironmentTextureSpecularStrength(specularStrength: number): boolean; - - /** - * Sets whether or not to use the environment texture as the background for the view. - * @param {number} textureAsBackground - */ - setUseEnvironmentTextureAsBackground(textureAsBackground: boolean): boolean; - - /** - * - * @param {*} backingStore - */ - setBackingStore(backingStore: any): boolean; - - /** - * - * @param {Number} clippingRangeExpansion - */ - setClippingRangeExpansion(clippingRangeExpansion: number): boolean; - - /** - * - * @param delegate - */ - setDelegate(delegate: any): boolean; - - /** - * - * @param {Boolean} draw - */ - setDraw(draw: boolean): boolean; - - /** - * - * @param {Boolean} erase - */ - setErase(erase: boolean): boolean; - - /** - * - * @param {Boolean} interactive - */ - setInteractive(interactive: boolean): boolean; - - /** - * - * @param {Number} layer - */ - setLayer(layer: number): void; - - /** - * Set the collection of lights. - * @param {vtkLight[]} lights - */ - setLightCollection(lights: vtkLight[]): void; - - /** - * - * @param {Boolean} lightFollowCamera - */ - setLightFollowCamera(lightFollowCamera: boolean): boolean; - - /** - * - * @param {Number} maximumNumberOfPeels - */ - setMaximumNumberOfPeels(maximumNumberOfPeels: number): boolean; - - /** - * - * @param {Number} nearClippingPlaneTolerance - */ - setNearClippingPlaneTolerance(nearClippingPlaneTolerance: number): boolean; - - /** - * - * @param {Number} occlusionRatio - */ - setOcclusionRatio(occlusionRatio: number): boolean; - - /** - * - * @param {Number} pass - */ - setPass(pass: number): boolean; - - /** - * - * @param {Boolean} preserveColorBuffer - */ - setPreserveColorBuffer(preserveColorBuffer: boolean): boolean; - - /** - * - * @param {Boolean} preserveDepthBuffer - */ - setPreserveDepthBuffer(preserveDepthBuffer: boolean): boolean; - - /** - * - * @param {Boolean} texturedBackground - */ - setTexturedBackground(texturedBackground: boolean): boolean; - - /** - * - * @param {Boolean} twoSidedLighting - */ - setTwoSidedLighting(twoSidedLighting: boolean): boolean; - - /** - * - * @param {Boolean} useDepthPeeling - */ - setUseDepthPeeling(useDepthPeeling: boolean): boolean; - - /** - * - * @param {Boolean} useShadows - */ - setUseShadows(useShadows: boolean): boolean; - - /** - * Specify the rendering window in which to draw. - * @param {vtkRenderWindow} renderWindow - */ - setRenderWindow(renderWindow: vtkRenderWindow): void; - - /** - * Remove an actor from the list of actors. - * @param {vtkProp} actor - */ - removeActor(actor: vtkProp): void; - - /** - * Remove all actors from the list of actors. - */ - removeAllActors(): void; - - /** - * Remove a volume from the list of volumes. - * @param {vtkVolume} volume The volume object to remove. - */ - removeVolume(volume: vtkVolume): void; - - /** - * Remove all volumes from the list of volumes. - */ - removeAllVolumes(): void; - - /** - * Remove a light from the list of lights. - * @param {vtkLight} light The light object to remove. - */ - removeLight(light: vtkLight): void; - - /** - * Remove all lights from the list of lights. - */ - removeAllLights(): void; - - /** - * requires the aspect ratio of the viewport as X/Y - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - * @param {Number} aspect - */ - worldToNormalizedDisplay( - x: number, - y: number, - z: number, - aspect: number - ): number[]; - - /** - * requires the aspect ratio of the viewport as X/Y - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - viewToWorld(x: number, y: number, z: number): number[]; - - /** - * Convert world point coordinates to view coordinates. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - worldToView(x: number, y: number, z: number): number[]; - - /** - * Convert world point coordinates to view coordinates. - * requires the aspect ratio of the viewport as X/Y - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - * @param {Number} aspect - */ - viewToProjection(x: number, y: number, z: number, aspect: number): number[]; - - /** - * Automatically set up the camera based on the visible actors. - * - * The camera will reposition itself to view the center point of the actors, - * and move along its initial view plane normal (i.e., vector defined from - * camera position to focal point) so that all of the actors can be seen. - * @param {Bounds} [bounds] - */ - resetCamera(bounds?: Bounds): boolean; - - /** - * Reset the camera clipping range based on a bounding box. - * @param {Bounds} [bounds] - */ - resetCameraClippingRange(bounds?: Bounds): boolean; - - /** - * Get the number of visible actors. - */ - visibleActorCount(): number; - - /** - * Not Implemented yet - */ - updateGeometry(): any; - - /** - * Ask the active camera to do whatever it needs to do prior to rendering. - */ - updateCamera(): boolean; - - /** - * Ask the lights in the scene that are not in world space - * (for instance, Headlights or CameraLights that are attached to the - * camera) to update their geometry to match the active camera. - */ - updateLightsGeometryToFollowCamera(): void; - - /** - * Update the geometry of the lights in the scene that are not in world - * space (for instance, Headlights or CameraLights that are attached to the - * camera). - */ - updateLightGeometry(): boolean; - - /** - * Not Implemented yet - */ - visibleVolumeCount(): any; - - /** - * Set the viewport background. - * - * @param {Number} r Defines the red component (between 0 and 1). - * @param {Number} g Defines the green component (between 0 and 1). - * @param {Number} b Defines the blue component (between 0 and 1). - * @param {Number} a Defines the alpha component (between 0 and 1). - */ - setBackground(r: number, g: number, b: number, a: number): boolean; - - /** - * Set the viewport background. - * - * @param {Number} r Defines the red component (between 0 and 1). - * @param {Number} g Defines the green component (between 0 and 1). - * @param {Number} b Defines the blue component (between 0 and 1). - */ - setBackground(r: number, g: number, b: number): boolean; - - /** - * Set the viewport background. - * - * @param {Number[]} background The RGB color array. - */ - setBackground(background: number[]): boolean; - - /** - * Adds an event listener. - */ - onEvent(cb: EventHandler, priority?: number): Readonly; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkRenderer characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IRendererInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IRendererInitialValues -): void; - -/** - * Method use to create a new instance of vtkRenderer. - * @param {IRendererInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IRendererInitialValues -): vtkRenderer; - -/** - * vtkRenderer is a Viewport designed to hold 3D properties. It contains - * an instance of vtkCamera, a collection of vtkLights, and vtkActors. It exists - * within a RenderWindow. A RenderWindow may have multiple Renderers - * representing different viewports of the Window and Renderers can be layered - * on top of each other as well. - */ -export declare const vtkRenderer: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkRenderer; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Renderer.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Renderer.js deleted file mode 100644 index 882dea6c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Renderer.js +++ /dev/null @@ -1,577 +0,0 @@ -import { mat4, vec3 } from 'gl-matrix'; -import { n as newInstance$1, g as get, e as setGet, k as getArray, l as setGetArray, i as moveToProtected, c as macro } from '../../macros2.js'; -import vtkCamera from './Camera.js'; -import vtkLight from './Light.js'; -import { W as areBoundsInitialized, u as uninitializeBounds, r as radiansFromDegrees, d as dot, I as createUninitializedBounds } from '../../Common/Core/Math/index.js'; -import vtkViewport from './Viewport.js'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; - -const { - vtkDebugMacro, - vtkErrorMacro, - vtkWarningMacro -} = macro; -function notImplemented(method) { - return () => vtkErrorMacro(`vtkRenderer::${method} - NOT IMPLEMENTED`); -} - -// ---------------------------------------------------------------------------- -// vtkRenderer methods -// ---------------------------------------------------------------------------- - -function vtkRenderer(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkRenderer'); - - // Events - const COMPUTE_VISIBLE_PROP_BOUNDS_EVENT = { - type: 'ComputeVisiblePropBoundsEvent', - renderer: publicAPI - }; - const RESET_CAMERA_CLIPPING_RANGE_EVENT = { - type: 'ResetCameraClippingRangeEvent', - renderer: publicAPI - }; - const RESET_CAMERA_EVENT = { - type: 'ResetCameraEvent', - renderer: publicAPI - }; - publicAPI.updateCamera = () => { - if (!model.activeCamera) { - vtkDebugMacro('No cameras are on, creating one.'); - // the get method will automagically create a camera - // and reset it since one hasn't been specified yet. - publicAPI.getActiveCameraAndResetIfCreated(); - } - - // update the viewing transformation - model.activeCamera.render(publicAPI); - return true; - }; - publicAPI.updateLightsGeometryToFollowCamera = () => { - // only update the light's geometry if this Renderer is tracking - // this lights. That allows one renderer to view the lights that - // another renderer is setting up. - const camera = publicAPI.getActiveCameraAndResetIfCreated(); - model.lights.forEach(light => { - if (light.lightTypeIsSceneLight()) ; else if (light.lightTypeIsHeadLight()) { - // update position and orientation of light to match camera. - light.setPositionFrom(camera.getPositionByReference()); - light.setFocalPointFrom(camera.getFocalPointByReference()); - light.modified(camera.getMTime()); - } else if (light.lightTypeIsCameraLight()) { - light.setTransformMatrix(camera.getCameraLightTransformMatrix(mat4.create())); - } else { - vtkErrorMacro('light has unknown light type', light.get()); - } - }); - }; - publicAPI.updateLightGeometry = () => { - if (model.lightFollowCamera) { - // only update the light's geometry if this Renderer is tracking - // this lights. That allows one renderer to view the lights that - // another renderer is setting up. - return publicAPI.updateLightsGeometryToFollowCamera(); - } - return true; - }; - publicAPI.allocateTime = notImplemented('allocateTime'); - publicAPI.updateGeometry = notImplemented('updateGeometry'); - publicAPI.getVTKWindow = () => model._renderWindow; - publicAPI.setLayer = layer => { - vtkDebugMacro(publicAPI.getClassName(), publicAPI, 'setting Layer to ', layer); - if (model.layer !== layer) { - model.layer = layer; - publicAPI.modified(); - } - publicAPI.setPreserveColorBuffer(!!layer); - }; - publicAPI.setActiveCamera = camera => { - if (model.activeCamera === camera) { - return false; - } - model.activeCamera = camera; - publicAPI.modified(); - publicAPI.invokeEvent({ - type: 'ActiveCameraEvent', - camera - }); - return true; - }; - publicAPI.makeCamera = () => { - const camera = vtkCamera.newInstance(); - publicAPI.invokeEvent({ - type: 'CreateCameraEvent', - camera - }); - return camera; - }; - - // Replace the set/get macro method - publicAPI.getActiveCamera = () => { - if (!model.activeCamera) { - model.activeCamera = publicAPI.makeCamera(); - } - return model.activeCamera; - }; - publicAPI.getActiveCameraAndResetIfCreated = () => { - if (!model.activeCamera) { - publicAPI.getActiveCamera(); - publicAPI.resetCamera(); - } - return model.activeCamera; - }; - publicAPI.getActors = () => { - model.actors = []; - model.props.forEach(prop => { - model.actors = model.actors.concat(prop.getActors()); - }); - return model.actors; - }; - publicAPI.addActor = publicAPI.addViewProp; - publicAPI.removeActor = actor => { - model.actors = model.actors.filter(a => a !== actor); - publicAPI.removeViewProp(actor); - publicAPI.modified(); - }; - publicAPI.removeAllActors = () => { - const actors = publicAPI.getActors(); - actors.forEach(actor => { - publicAPI.removeViewProp(actor); - }); - model.actors = []; - publicAPI.modified(); - }; - publicAPI.getVolumes = () => { - model.volumes = []; - model.props.forEach(prop => { - model.volumes = model.volumes.concat(prop.getVolumes()); - }); - return model.volumes; - }; - publicAPI.addVolume = publicAPI.addViewProp; - publicAPI.removeVolume = volume => { - model.volumes = model.volumes.filter(v => v !== volume); - publicAPI.removeViewProp(volume); - publicAPI.modified(); - }; - publicAPI.removeAllVolumes = () => { - const volumes = publicAPI.getVolumes(); - volumes.forEach(volume => { - publicAPI.removeViewProp(volume); - }); - model.volumes = []; - publicAPI.modified(); - }; - publicAPI.hasLight = light => model.lights.includes(light); - publicAPI.addLight = light => { - if (light && !publicAPI.hasLight(light)) { - model.lights.push(light); - publicAPI.modified(); - } - }; - publicAPI.removeLight = light => { - model.lights = model.lights.filter(l => l !== light); - publicAPI.modified(); - }; - publicAPI.removeAllLights = () => { - model.lights = []; - publicAPI.modified(); - }; - publicAPI.setLightCollection = lights => { - model.lights = lights; - publicAPI.modified(); - }; - publicAPI.makeLight = vtkLight.newInstance; - publicAPI.createLight = () => { - if (!model.automaticLightCreation) { - return; - } - if (model._createdLight) { - publicAPI.removeLight(model._createdLight); - model._createdLight.delete(); - model._createdLight = null; - } - model._createdLight = publicAPI.makeLight(); - publicAPI.addLight(model._createdLight); - model._createdLight.setLightTypeToHeadLight(); - - // set these values just to have a good default should LightFollowCamera - // be turned off. - model._createdLight.setPosition(publicAPI.getActiveCamera().getPosition()); - model._createdLight.setFocalPoint(publicAPI.getActiveCamera().getFocalPoint()); - }; - - // requires the aspect ratio of the viewport as X/Y - publicAPI.normalizedDisplayToWorld = (x, y, z, aspect) => { - let vpd = publicAPI.normalizedDisplayToProjection(x, y, z); - vpd = publicAPI.projectionToView(vpd[0], vpd[1], vpd[2], aspect); - return publicAPI.viewToWorld(vpd[0], vpd[1], vpd[2]); - }; - - // requires the aspect ratio of the viewport as X/Y - publicAPI.worldToNormalizedDisplay = (x, y, z, aspect) => { - let vpd = publicAPI.worldToView(x, y, z); - vpd = publicAPI.viewToProjection(vpd[0], vpd[1], vpd[2], aspect); - return publicAPI.projectionToNormalizedDisplay(vpd[0], vpd[1], vpd[2]); - }; - - // requires the aspect ratio of the viewport as X/Y - publicAPI.viewToWorld = (x, y, z) => { - if (model.activeCamera === null) { - vtkErrorMacro('ViewToWorld: no active camera, cannot compute view to world, returning 0,0,0'); - return [0, 0, 0]; - } - - // get the view matrix from the active camera - const matrix = model.activeCamera.getViewMatrix(); - mat4.invert(matrix, matrix); - mat4.transpose(matrix, matrix); - - // Transform point to world coordinates - const result = new Float64Array([x, y, z]); - vec3.transformMat4(result, result, matrix); - return result; - }; - publicAPI.projectionToView = (x, y, z, aspect) => { - if (model.activeCamera === null) { - vtkErrorMacro('ProjectionToView: no active camera, cannot compute projection to view, returning 0,0,0'); - return [0, 0, 0]; - } - - // get the projection transformation from the active camera - const matrix = model.activeCamera.getProjectionMatrix(aspect, -1.0, 1.0); - mat4.invert(matrix, matrix); - mat4.transpose(matrix, matrix); - - // Transform point to world coordinates - const result = new Float64Array([x, y, z]); - vec3.transformMat4(result, result, matrix); - return result; - }; - - // Convert world point coordinates to view coordinates. - publicAPI.worldToView = (x, y, z) => { - if (model.activeCamera === null) { - vtkErrorMacro('WorldToView: no active camera, cannot compute view to world, returning 0,0,0'); - return [0, 0, 0]; - } - - // get the view transformation from the active camera - const matrix = model.activeCamera.getViewMatrix(); - mat4.transpose(matrix, matrix); - const result = new Float64Array([x, y, z]); - vec3.transformMat4(result, result, matrix); - return result; - }; - - // Convert world point coordinates to view coordinates. - // requires the aspect ratio of the viewport as X/Y - publicAPI.viewToProjection = (x, y, z, aspect) => { - if (model.activeCamera === null) { - vtkErrorMacro('ViewToProjection: no active camera, cannot compute view to projection, returning 0,0,0'); - return [0, 0, 0]; - } - - // get the projeciton transformation from the active camera - const matrix = model.activeCamera.getProjectionMatrix(aspect, -1.0, 1.0); - mat4.transpose(matrix, matrix); - const result = new Float64Array([x, y, z]); - vec3.transformMat4(result, result, matrix); - return result; - }; - publicAPI.computeVisiblePropBounds = () => { - model.allBounds[0] = vtkBoundingBox.INIT_BOUNDS[0]; - model.allBounds[1] = vtkBoundingBox.INIT_BOUNDS[1]; - model.allBounds[2] = vtkBoundingBox.INIT_BOUNDS[2]; - model.allBounds[3] = vtkBoundingBox.INIT_BOUNDS[3]; - model.allBounds[4] = vtkBoundingBox.INIT_BOUNDS[4]; - model.allBounds[5] = vtkBoundingBox.INIT_BOUNDS[5]; - let nothingVisible = true; - publicAPI.invokeEvent(COMPUTE_VISIBLE_PROP_BOUNDS_EVENT); - - // loop through all props - for (let index = 0; index < model.props.length; ++index) { - const prop = model.props[index]; - if (prop.getVisibility() && prop.getUseBounds()) { - const bounds = prop.getBounds(); - if (bounds && areBoundsInitialized(bounds)) { - nothingVisible = false; - if (bounds[0] < model.allBounds[0]) { - model.allBounds[0] = bounds[0]; - } - if (bounds[1] > model.allBounds[1]) { - model.allBounds[1] = bounds[1]; - } - if (bounds[2] < model.allBounds[2]) { - model.allBounds[2] = bounds[2]; - } - if (bounds[3] > model.allBounds[3]) { - model.allBounds[3] = bounds[3]; - } - if (bounds[4] < model.allBounds[4]) { - model.allBounds[4] = bounds[4]; - } - if (bounds[5] > model.allBounds[5]) { - model.allBounds[5] = bounds[5]; - } - } - } - } - if (nothingVisible) { - uninitializeBounds(model.allBounds); - vtkDebugMacro("Can't compute bounds, no 3D props are visible"); - } - return model.allBounds; - }; - publicAPI.resetCamera = function () { - let bounds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - const boundsToUse = bounds || publicAPI.computeVisiblePropBounds(); - const center = [0, 0, 0]; - if (!areBoundsInitialized(boundsToUse)) { - vtkDebugMacro('Cannot reset camera!'); - return false; - } - let vn = null; - if (publicAPI.getActiveCamera()) { - vn = model.activeCamera.getViewPlaneNormal(); - } else { - vtkErrorMacro('Trying to reset non-existent camera'); - return false; - } - - // Reset the perspective zoom factors, otherwise subsequent zooms will cause - // the view angle to become very small and cause bad depth sorting. - model.activeCamera.setViewAngle(30.0); - center[0] = (boundsToUse[0] + boundsToUse[1]) / 2.0; - center[1] = (boundsToUse[2] + boundsToUse[3]) / 2.0; - center[2] = (boundsToUse[4] + boundsToUse[5]) / 2.0; - let w1 = boundsToUse[1] - boundsToUse[0]; - let w2 = boundsToUse[3] - boundsToUse[2]; - let w3 = boundsToUse[5] - boundsToUse[4]; - w1 *= w1; - w2 *= w2; - w3 *= w3; - let radius = w1 + w2 + w3; - - // If we have just a single point, pick a radius of 1.0 - radius = radius === 0 ? 1.0 : radius; - - // compute the radius of the enclosing sphere - radius = Math.sqrt(radius) * 0.5; - - // default so that the bounding sphere fits within the view fustrum - - // Viewing the scene from the side in 2D: - // Draw a circle representing the bounding sphere containing all pixels. - // Then, draw a horizontal line going out from the center of the circle. - // The camera is somewhere on this line. - // Picture the view frustrum, moving through the circle. - // Draw a line from the intersection of the view frustrum and the bounding sphere to line the camera is on, ensuring that the line is tangent to the circle. - // Draw the radius from the tangent point to the center of the circle. - // You will note that this forms a right triangle with sides: - // - radius - // - the line formed by the intersection of the view frustrum and the bounding sphere - // - the target distance for the camera. - // We can use trigonometry to solve for that distance. - - const angle = radiansFromDegrees(model.activeCamera.getViewAngle()); - const parallelScale = radius; - const distance = radius / Math.sin(angle * 0.5); - - // check view-up vector against view plane normal - const vup = model.activeCamera.getViewUp(); - if (Math.abs(dot(vup, vn)) > 0.999) { - vtkWarningMacro('Resetting view-up since view plane normal is parallel'); - model.activeCamera.setViewUp(-vup[2], vup[0], vup[1]); - } - - // update the camera - model.activeCamera.setFocalPoint(center[0], center[1], center[2]); - model.activeCamera.setPosition(center[0] + distance * vn[0], center[1] + distance * vn[1], center[2] + distance * vn[2]); - publicAPI.resetCameraClippingRange(boundsToUse); - - // setup default parallel scale - model.activeCamera.setParallelScale(parallelScale); - - // update reasonable world to physical values - model.activeCamera.setPhysicalScale(radius); - model.activeCamera.setPhysicalTranslation(-center[0], -center[1], -center[2]); - - // Here to let parallel/distributed compositing intercept - // and do the right thing. - publicAPI.invokeEvent(RESET_CAMERA_EVENT); - return true; - }; - publicAPI.resetCameraClippingRange = function () { - let bounds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - const boundsToUse = bounds || publicAPI.computeVisiblePropBounds(); - if (!areBoundsInitialized(boundsToUse)) { - vtkDebugMacro('Cannot reset camera clipping range!'); - return false; - } - - // Make sure we have an active camera - publicAPI.getActiveCameraAndResetIfCreated(); - if (!model.activeCamera) { - vtkErrorMacro('Trying to reset clipping range of non-existent camera'); - return false; - } - - // Get the exact range for the bounds - const range = model.activeCamera.computeClippingRange(boundsToUse); - - // do not let far - near be less than 0.1 of the window height - // this is for cases such as 2D images which may have zero range - let minGap = 0.0; - if (model.activeCamera.getParallelProjection()) { - minGap = 0.2 * model.activeCamera.getParallelScale(); - } else { - const angle = radiansFromDegrees(model.activeCamera.getViewAngle()); - minGap = 0.2 * Math.tan(angle / 2.0) * range[1]; - } - if (range[1] - range[0] < minGap) { - minGap = minGap - range[1] + range[0]; - range[1] += minGap / 2.0; - range[0] -= minGap / 2.0; - } - - // Do not let the range behind the camera throw off the calculation. - if (range[0] < 0.0) { - range[0] = 0.0; - } - - // Give ourselves a little breathing room - range[0] = 0.99 * range[0] - (range[1] - range[0]) * model.clippingRangeExpansion; - range[1] = 1.01 * range[1] + (range[1] - range[0]) * model.clippingRangeExpansion; - - // Make sure near is not bigger than far - range[0] = range[0] >= range[1] ? 0.01 * range[1] : range[0]; - - // Make sure near is at least some fraction of far - this prevents near - // from being behind the camera or too close in front. How close is too - // close depends on the resolution of the depth buffer - if (!model.nearClippingPlaneTolerance) { - model.nearClippingPlaneTolerance = 0.01; - } - - // make sure the front clipping range is not too far from the far clippnig - // range, this is to make sure that the zbuffer resolution is effectively - // used - if (range[0] < model.nearClippingPlaneTolerance * range[1]) { - range[0] = model.nearClippingPlaneTolerance * range[1]; - } - model.activeCamera.setClippingRange(range[0], range[1]); - - // Here to let parallel/distributed compositing intercept - // and do the right thing. - publicAPI.invokeEvent(RESET_CAMERA_CLIPPING_RANGE_EVENT); - return false; - }; - publicAPI.setRenderWindow = renderWindow => { - if (renderWindow !== model._renderWindow) { - model._vtkWindow = renderWindow; - model._renderWindow = renderWindow; - } - }; - publicAPI.visibleActorCount = () => model.props.filter(prop => prop.getVisibility()).length; - publicAPI.visibleVolumeCount = publicAPI.visibleActorCount; - publicAPI.getMTime = () => { - let m1 = model.mtime; - const m2 = model.activeCamera ? model.activeCamera.getMTime() : 0; - if (m2 > m1) { - m1 = m2; - } - const m3 = model._createdLight ? model._createdLight.getMTime() : 0; - if (m3 > m1) { - m1 = m3; - } - return m1; - }; - publicAPI.getTransparent = () => !!model.preserveColorBuffer; - publicAPI.isActiveCameraCreated = () => !!model.activeCamera; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - pickedProp: null, - activeCamera: null, - allBounds: [], - ambient: [1, 1, 1], - allocatedRenderTime: 100, - timeFactor: 1, - automaticLightCreation: true, - twoSidedLighting: true, - lastRenderTimeInSeconds: -1, - renderWindow: null, - lights: [], - actors: [], - volumes: [], - lightFollowCamera: true, - numberOfPropsRendered: 0, - propArray: null, - pathArray: null, - layer: 0, - preserveColorBuffer: false, - preserveDepthBuffer: false, - computeVisiblePropBounds: createUninitializedBounds(), - interactive: true, - nearClippingPlaneTolerance: 0, - clippingRangeExpansion: 0.05, - erase: true, - draw: true, - useShadows: false, - useDepthPeeling: false, - occlusionRatio: 0, - maximumNumberOfPeels: 4, - selector: null, - delegate: null, - texturedBackground: false, - backgroundTexture: null, - environmentTexture: null, - environmentTextureDiffuseStrength: 1, - environmentTextureSpecularStrength: 1, - useEnvironmentTextureAsBackground: false, - pass: 0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewport.extend(publicAPI, model, initialValues); - - // make sure background has 4 entries. Default to opaque black - if (!model.background) model.background = [0, 0, 0, 1]; - while (model.background.length < 3) model.background.push(0); - if (model.background.length === 3) model.background.push(1); - - // Build VTK API - get(publicAPI, model, ['_renderWindow', 'allocatedRenderTime', 'timeFactor', 'lastRenderTimeInSeconds', 'numberOfPropsRendered', 'lastRenderingUsedDepthPeeling', 'selector']); - setGet(publicAPI, model, ['twoSidedLighting', 'lightFollowCamera', 'automaticLightCreation', 'erase', 'draw', 'nearClippingPlaneTolerance', 'clippingRangeExpansion', 'backingStore', 'interactive', 'layer', 'preserveColorBuffer', 'preserveDepthBuffer', 'useDepthPeeling', 'occlusionRatio', 'maximumNumberOfPeels', 'delegate', 'backgroundTexture', 'texturedBackground', 'environmentTexture', 'environmentTextureDiffuseStrength', 'environmentTextureSpecularStrength', 'useEnvironmentTextureAsBackground', 'useShadows', 'pass']); - getArray(publicAPI, model, ['actors', 'volumes', 'lights']); - setGetArray(publicAPI, model, ['background'], 4, 1.0); - moveToProtected(publicAPI, model, ['renderWindow']); - - // Object methods - vtkRenderer(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkRenderer'); - -// ---------------------------------------------------------------------------- - -var vtkRenderer$1 = { - newInstance, - extend -}; - -export { vtkRenderer$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ScalarBarActor.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ScalarBarActor.d.ts deleted file mode 100644 index 530ac58d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ScalarBarActor.d.ts +++ /dev/null @@ -1,404 +0,0 @@ -import vtkScalarsToColors from './../../Common/Core/ScalarsToColors'; -import { Size, Vector2, Vector3 } from './../../types'; -import vtkActor, { IActorInitialValues } from './Actor'; - -export interface ITextSizes { - tickWidth: number; - tickHeight: number; -} - -export interface IResult { - ptIdx: number; - cellIdx: number; - polys: Float64Array; - points: Uint16Array; - tcoords: Float32Array; -} - -export interface IStyle { - fontColor?: string; - fontStyle?: string; - fontFamily?: string; - fontSize?: number | string; -} - -export type Orientation = 'horizontal' | 'vertical' | 'auto' | null; - -/** - * - */ -export interface IScalarBarActorInitialValues - extends Omit { - automated?: boolean; - autoLayout?: (publicAPI: object, model: object) => void; - axisLabel?: string; - barPosition?: Vector2; - barSize?: Size; - boxPosition?: Vector2; - boxSize?: Size; - scalarToColors?: null; - axisTitlePixelOffset?: number; - axisTextStyle?: IStyle; - tickLabelPixelOffset?: number; - tickTextStyle?: IStyle; - generateTicks?: (helper: any) => void; - drawBelowRangeSwatch?: boolean; - drawAboveRangeSwatch?: boolean; - drawNanAnnotation?: boolean; - orientation?: Orientation; -} - -export interface vtkScalarBarActor - extends Omit { - /** - * - * @param {Boolean} doUpdate - */ - completedImage(doUpdate: boolean): void; - - /** - * based on all the settins compute a barSegments array containing the - * segments opf the scalar bar each segment contains : - * corners[4][2] - * title - e.g. NaN, Above, ticks - * scalars - the normalized scalars values to use for that segment - * - * Note that the bar consumes the space in the box that remains - * after leaving room for the text labels. - * @param {ITextSizes} textSizes - */ - computeBarSize(textSizes: ITextSizes): Size; - - /** - * Called by updatePolyDataForLabels modifies class constants ptv3, tmpv3 - * @param text - * @param pos - * @param xdir - * @param ydir - * @param dir - * @param offset - * @param results - */ - createPolyDataForOneLabel( - text: string, - pos: Vector3, - xdir: Vector3, - ydir: Vector3, - dir: Vector2, - offset: number, - results: IResult - ): void; - - /** - * - */ - getActors(): vtkActor[]; - - /** - * - */ - getAutoLayout(): any; - - /** - * - */ - getGenerateTicks(): any; - - /** - * - */ - getAutomated(): boolean; - - /** - * - */ - getAxisLabel(): string; - - /** - * - */ - getAxisTextStyle(): IStyle; - - /** - * - */ - getAxisTitlePixelOffset(): number; - - /** - * - */ - getBoxPosition(): Vector2; - - /** - * - */ - getBoxPositionByReference(): Vector2; - - /** - * - */ - getBoxSize(): Size; - - /** - * - */ - getBoxSizeByReference(): Size; - - /** - * - */ - getNestedProps(): vtkActor[]; - - /** - * - */ - getScalarsToColors(): vtkScalarsToColors; - - /** - * - */ - getDrawNanAnnotation(): boolean; - - /** - * - */ - getDrawBelowRangeSwatch(): boolean; - - /** - * - */ - getDrawAboveRangeSwatch(): boolean; - - /** - * - */ - getTickTextStyle(): IStyle; - - /** - * - * @param {ITextSizes} textSizes - */ - recomputeBarSegments(textSizes: ITextSizes): void; - - /** - * - */ - resetAutoLayoutToDefault(): void; - - /** - * - * @param autoLayout - */ - setAutoLayout(autoLayout: any): boolean; - - /** - * Sets the function used to generate legend ticks. - * - * This function takes a vtkScalarBarActorHelper and returns true on success. - * To have the desired effect, the function must call: `helper.setTicks(ticks: num[])` and `helper.setTickStrings(tickStrings: string[])`. - * - * After setting the generateTicks function you must regenerate the vtkScalarBarActor for your changes to take effect. - * One way to do that is: - * ``` - * const mapper = scalarBarActor.getMapper() - * if (mapper) { - * mapper.getLookupTable().resetAnnotations() - * } - * ``` - * @param generateTicks - */ - setGenerateTicks(generateTicks: (helper: any) => void): boolean; - - /** - * - * @param {Boolean} automated - */ - setAutomated(automated: boolean): boolean; - - /** - * - * @param {String} axisLabel - */ - setAxisLabel(axisLabel: string): boolean; - - /** - * - * @param {IStyle} axisTextStyle - */ - setAxisTextStyle(axisTextStyle: IStyle): boolean; - - /** - * Get the current bar orientation setting - */ - getOrientation(): Orientation; - - /** - * Forces the scalar bar to use horizontal orientation regardless of aspect ratio - */ - setOrientationToHorizontal(): boolean; - - /** - * Forces the scalar bar to use vertical orientation regardless of aspect ratio - */ - setOrientationToVertical(): boolean; - - /** - * Set the orientation of the scalar bar - * @param orientation 'horizontal' to force horizontal, 'vertical' to force vertical, or null/undefined for auto - */ - setOrientation(orientation: Orientation): boolean; - - /** - * - * @param {Number} axisTitlePixelOffset - */ - setAxisTitlePixelOffset(axisTitlePixelOffset: number): boolean; - - /** - * - * @param {Vector2} boxPosition - */ - setBoxPosition(boxPosition: Vector2): boolean; - - /** - * - * @param {Vector2} boxPosition - */ - setBoxPositionFrom(boxPosition: Vector2): boolean; - - /** - * - * @param {Size} boxSize - */ - setBoxSize(boxSize: Size): boolean; - - /** - * - * @param {Size} boxSize - */ - setBoxSizeFrom(boxSize: Size): boolean; - - /** - * - * @param {Vector2} barPosition - */ - setBarPosition(barPosition: Vector2): boolean; - - /** - * - * @param {Vector2} barPosition - */ - setBarPositionFrom(barPosition: Vector2): boolean; - - /** - * - * @param {Size} barSize - */ - setBarSize(barSize: Size): boolean; - - /** - * - * @param {Size} barSize - */ - setBarSizeFrom(barSize: Size): boolean; - - /** - * - * @param {vtkScalarsToColors} scalarsToColors - */ - setScalarsToColors(scalarsToColors: vtkScalarsToColors): boolean; - - /** - * Set whether the NaN annotation should be rendered or not. - * @param {Boolean} drawNanAnnotation - */ - setDrawNanAnnotation(drawNanAnnotation: boolean): boolean; - - /** - * Set whether the Below range swatch should be rendered or not - * @param {Boolean} drawBelowRangeSwatch - */ - setDrawBelowRangeSwatch(drawBelowRangeSwatch: boolean): boolean; - - /** - * Set whether the Above range swatch should be rendered or not - * @param {Boolean} drawAboveRangeSwatch - */ - setDrawAboveRangeSwatch(drawAboveRangeSwatch: boolean): boolean; - - /** - * - * @param tickLabelPixelOffset - */ - setTickLabelPixelOffset(tickLabelPixelOffset: number): boolean; - - /** - * - * @param {IStyle} tickStyle - */ - setTickTextStyle(tickStyle: IStyle): void; - - /** - * - */ - setVisibility(visibility: boolean): boolean; - - /** - * main method to rebuild the scalarBar when something has changed tracks - * modified times - */ - update(): void; - - /** - * - */ - updatePolyDataForBarSegments(): void; - - /** - * Udate the polydata associated with drawing the text labels - * specifically the quads used for each label and their associated tcoords - * etc. This changes every time the camera viewpoint changes - */ - updatePolyDataForLabels(): void; - - /** - * create the texture map atlas that contains the rendering of - * all the text strings. Only needs to be called when the text strings - * have changed (labels and ticks) - */ - updateTextureAtlas(): void; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkScalarBarActor characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IScalarBarActorInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IScalarBarActorInitialValues -): void; - -/** - * Method use to create a new instance of vtkScalarBarActor - */ -export function newInstance( - initialValues?: IScalarBarActorInitialValues -): vtkScalarBarActor; - -/** - * vtkScalarBarActor creates a scalar bar with tick marks. A - * scalar bar is a legend that indicates to the viewer the correspondence - * between color value and data value. The legend consists of a rectangular bar - * made of rectangular pieces each colored a constant value. Since - * vtkScalarBarActor is a subclass of vtkActor2D, it is drawn in the image plane - * (i.e., in the renderer's viewport) on top of the 3D graphics window. - */ -export declare const vtkScalarBarActor: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkScalarBarActor; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ScalarBarActor.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ScalarBarActor.js deleted file mode 100644 index 3e373b49..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ScalarBarActor.js +++ /dev/null @@ -1,825 +0,0 @@ -import * as d3 from 'd3-scale'; -import { T as nearestPowerOfTwo } from '../../Common/Core/Math/index.js'; -import { m as macro } from '../../macros2.js'; -import vtkActor from './Actor.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkScalarsToColors from '../../Common/Core/ScalarsToColors.js'; -import vtkMapper from './Mapper.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkTexture from './Texture.js'; -import Constants from './ScalarBarActor/Constants.js'; - -const { - VectorMode -} = vtkScalarsToColors; -const { - Orientation -} = Constants; - -// ---------------------------------------------------------------------------- -// vtkScalarBarActor -// -// Note log scales are currently not supported -// -// Developer note: This class is broken into the main class and a helper -// class. The main class holds view independent properties (those properties -// that do not change as the view's resolution/aspect ratio change). The -// helper class is instantiated one per view and holds properties that can -// depend on view specific values such as resolution. The helper class code -// could have been left to the View specific implementation (such as -// vtkWebGPUScalarBarActor) but is instead placed here to it can be shared by -// multiple rendering backends. -// -// ---------------------------------------------------------------------------- - -function applyTextStyle(ctx, style, defaultFontSize) { - ctx.strokeStyle = style.strokeColor; - ctx.lineWidth = style.strokeSize; - ctx.fillStyle = style.fontColor; - const fontSize = style.fontSize ?? defaultFontSize; - ctx.font = `${style.fontStyle} ${fontSize}px ${style.fontFamily}`; -} - -// ---------------------------------------------------------------------------- -// Default autoLayout function -// ---------------------------------------------------------------------------- - -// compute good values to use based on window size etc a bunch of heuristics -// here with hand tuned constants These values worked for me but really this -// method could be redically changed. The basic gist is -// 1) compute a resonable font size -// 2) render the text atlas using those font sizes -// 3) pick horizontal or vertical bsed on window size -// 4) based on the size of the title and tick labels rendered -// compute the box size and position such that -// the text will all fit nicely and the bar will be a resonable size -// 5) compute the bar segments based on the above settings -// -// Note that this function can and should read values from the -// ScalarBarActor but should only write values to the view dependent helper -// instance that is provided as those values are the ones that will be used -// for rendering. -// -function defaultAutoLayout(publicAPI, model) { - return helper => { - // we don't do a linear scale, the proportions for - // a 700 pixel window differ from a 1400 - const lastSize = helper.getLastSize(); - const xAxisAdjust = (lastSize[0] / 700) ** 0.8; - const yAxisAdjust = (lastSize[1] / 700) ** 0.8; - const minAdjust = Math.min(xAxisAdjust, yAxisAdjust); - const axisTextStyle = helper.getAxisTextStyle(); - const tickTextStyle = helper.getTickTextStyle(); - Object.assign(axisTextStyle, model.axisTextStyle); - Object.assign(tickTextStyle, model.tickTextStyle); - - // compute a reasonable font size first, but only if user hasn't explicitly set it - if (axisTextStyle.fontSize === undefined) { - axisTextStyle.fontSize = Math.max(24 * minAdjust, 12); - } - if (tickTextStyle.fontSize === undefined) { - if (helper.getLastAspectRatio() > 1.0) { - tickTextStyle.fontSize = Math.max(20 * minAdjust, 10); - } else { - tickTextStyle.fontSize = Math.max(16 * minAdjust, 10); - } - } - - // rebuild the text atlas - const textSizes = helper.updateTextureAtlas(); - - // now compute the boxSize and pixel offsets, different algorithm - // for horizonal versus vertical - helper.setTopTitle(false); - const boxSize = helper.getBoxSizeByReference(); - - // Determine orientation: user-forced, or auto based on aspect ratio - let isVertical = false; - if (model.orientation === Orientation.VERTICAL) { - isVertical = true; - } else if (model.orientation === Orientation.HORIZONTAL) { - isVertical = false; - } else { - // auto: use aspect ratio (original behavior) - isVertical = helper.getLastAspectRatio() > 1.0; - } - - // if vertical - if (isVertical) { - helper.setTickLabelPixelOffset(0.3 * tickTextStyle.fontSize); - - // if the title will fit within the width of the bar then that looks - // nicer to put it at the top (helper.topTitle), otherwise rotate it - // and place it sideways - if (textSizes.titleWidth <= textSizes.tickWidth + helper.getTickLabelPixelOffset() + 0.8 * tickTextStyle.fontSize) { - helper.setTopTitle(true); - helper.setAxisTitlePixelOffset(0.2 * tickTextStyle.fontSize); - boxSize[0] = 2.0 * (textSizes.tickWidth + helper.getTickLabelPixelOffset() + 0.8 * tickTextStyle.fontSize) / lastSize[0]; - helper.setBoxPosition([0.98 - boxSize[0], -0.92]); - } else { - helper.setAxisTitlePixelOffset(0.2 * tickTextStyle.fontSize); - boxSize[0] = 2.0 * (textSizes.titleHeight + helper.getAxisTitlePixelOffset() + textSizes.tickWidth + helper.getTickLabelPixelOffset() + 0.8 * tickTextStyle.fontSize) / lastSize[0]; - helper.setBoxPosition([0.99 - boxSize[0], -0.92]); - } - boxSize[1] = Math.max(1.2, Math.min(1.84 / yAxisAdjust, 1.84)); - } else { - // horizontal - helper.setAxisTitlePixelOffset(1.2 * tickTextStyle.fontSize); - helper.setTickLabelPixelOffset(0.1 * tickTextStyle.fontSize); - const titleHeight = - // total offset from top of bar (includes ticks) - 2.0 * (0.8 * tickTextStyle.fontSize + textSizes.titleHeight + helper.getAxisTitlePixelOffset()) / lastSize[1]; - const tickWidth = 2.0 * textSizes.tickWidth / lastSize[0]; - boxSize[0] = Math.min(1.9, Math.max(1.4, 1.4 * tickWidth * (helper.getTicks().length + 3))); - boxSize[1] = titleHeight; - helper.setBoxPosition([-0.5 * boxSize[0], -0.97]); - } - - // recomute bar segments based on positioning - helper.recomputeBarSegments(textSizes); - }; -} - -// ---------------------------------------------------------------------------- -// Default generateTicks function -// ---------------------------------------------------------------------------- - -// This function returns the default function used to generate vtkScalarBarActor ticks. -// The default function makes use of d3.scaleLinear() to generate 5 tick marks between -// the minimum and maximum values of the scalar bar. Customize this behavior by passing -// a function to vtkScalarBarActor.newInstance({ generateTicks: customGenerateTicks }) -// or by calling scalarBarActor.setGenerateTicks(customGenerateTicks). -function defaultGenerateTicks(publicApi, model) { - return helper => { - const lastTickBounds = helper.getLastTickBounds(); - const scale = d3.scaleLinear().domain([lastTickBounds[0], lastTickBounds[1]]); - const ticks = scale.ticks(5); - const format = scale.tickFormat(5); - helper.setTicks(ticks); - helper.setTickStrings(ticks.map(format)); - }; -} - -// many properties of this actor depend on the API specific view The main -// dependency being the resolution as that drives what font sizes to use. -// Bacause of this we need to do some of the calculations in a API specific -// subclass. But... we don't want a lot of duplicated code between WebGL and -// WebGPU for example so we have this helper class, that is designed to be -// fairly API independent so that API specific views can call this to do -// most of the work. -function vtkScalarBarActorHelper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkScalarBarActorHelper'); - publicAPI.setRenderable = renderable => { - if (model.renderable === renderable) { - return; - } - model.renderable = renderable; - model.barActor.setProperty(renderable.getProperty()); - model.barActor.setParentProp(renderable); - model.barActor.setCoordinateSystemToDisplay(); - model.tmActor.setProperty(renderable.getProperty()); - model.tmActor.setParentProp(renderable); - model.tmActor.setCoordinateSystemToDisplay(); - model.generateTicks = renderable.generateTicks; - model.axisTextStyle = { - ...renderable.getAxisTextStyle() - }; - model.tickTextStyle = { - ...renderable.getTickTextStyle() - }; - publicAPI.modified(); - }; - publicAPI.updateAPISpecificData = (size, camera, renderWindow) => { - // has the size changed? - if (model.lastSize[0] !== size[0] || model.lastSize[1] !== size[1]) { - model.lastSize[0] = size[0]; - model.lastSize[1] = size[1]; - model.lastAspectRatio = size[0] / size[1]; - model.forceUpdate = true; - } - const scalarsToColors = model.renderable.getScalarsToColors(); - if (!scalarsToColors || !model.renderable.getVisibility()) { - return; - } - - // make sure the lut is assigned to our mapper - model.barMapper.setLookupTable(scalarsToColors); - - // camera should be the same for all views - model.camera = camera; - model.renderWindow = renderWindow; - - // did something significant change? If so rebuild a lot of things - if (model.forceUpdate || Math.max(scalarsToColors.getMTime(), publicAPI.getMTime(), model.renderable.getMTime()) > model.lastRebuildTime.getMTime()) { - const range = scalarsToColors.getMappingRange(); - model.lastTickBounds = [...range]; - - // compute tick marks for axes (update for log scale) - model.renderable.getGenerateTicks()(publicAPI); - if (model.renderable.getAutomated()) { - model.renderable.getAutoLayout()(publicAPI); - } else { - // copy values from renderable - model.axisTextStyle = { - ...model.renderable.getAxisTextStyle() - }; - model.tickTextStyle = { - ...model.renderable.getTickTextStyle() - }; - model.barPosition = [...model.renderable.getBarPosition()]; - model.barSize = [...model.renderable.getBarSize()]; - model.boxPosition = [...model.renderable.getBoxPosition()]; - model.boxSize = [...model.renderable.getBoxSize()]; - model.axisTitlePixelOffset = model.renderable.getAxisTitlePixelOffset(); - model.tickLabelPixelOffset = model.renderable.getTickLabelPixelOffset(); - - // rebuild the texture only when force or changed bounds, face - // visibility changes do to change the atlas - const textSizes = publicAPI.updateTextureAtlas(); - - // recompute bar segments based on positioning - publicAPI.recomputeBarSegments(textSizes); - } - publicAPI.updatePolyDataForLabels(); - publicAPI.updatePolyDataForBarSegments(); - model.lastRebuildTime.modified(); - model.forceUpdate = false; - } - }; - - // create the texture map atlas that contains the rendering of - // all the text strings. Only needs to be called when the text strings - // have changed (labels and ticks) - publicAPI.updateTextureAtlas = () => { - // set the text properties - model.tmContext.textBaseline = 'bottom'; - model.tmContext.textAlign = 'left'; - - // return some factors about the text atlas - const results = {}; - - // first the axislabel - const newTmAtlas = new Map(); - let maxWidth = 0; - let totalHeight = 1; // start one pixel in so we have a border - applyTextStyle(model.tmContext, model.axisTextStyle, 18); - let metrics = model.tmContext.measureText(model.renderable.getAxisLabel()); - let entry = { - height: metrics.actualBoundingBoxAscent + 2, - startingHeight: totalHeight, - width: metrics.width + 2, - textStyle: model.axisTextStyle - }; - newTmAtlas.set(model.renderable.getAxisLabel(), entry); - totalHeight += entry.height; - maxWidth = entry.width; - results.titleWidth = entry.width; - results.titleHeight = entry.height; - - // and the ticks, NaN Below and Above - results.tickWidth = 0; - results.tickHeight = 0; - applyTextStyle(model.tmContext, model.tickTextStyle, 14); - const strings = [...publicAPI.getTickStrings(), 'NaN', 'Below', 'Above']; - for (let t = 0; t < strings.length; t++) { - if (!newTmAtlas.has(strings[t])) { - metrics = model.tmContext.measureText(strings[t]); - entry = { - height: metrics.actualBoundingBoxAscent + 2, - startingHeight: totalHeight, - width: metrics.width + 2, - textStyle: model.tickTextStyle - }; - newTmAtlas.set(strings[t], entry); - totalHeight += entry.height; - if (maxWidth < entry.width) { - maxWidth = entry.width; - } - if (results.tickWidth < entry.width) { - results.tickWidth = entry.width; - } - if (results.tickHeight < entry.height) { - results.tickHeight = entry.height; - } - } - } - - // always use power of two to avoid interpolation - // in cases where PO2 is required - maxWidth = nearestPowerOfTwo(maxWidth); - totalHeight = nearestPowerOfTwo(totalHeight); - - // set the tcoord values - newTmAtlas.forEach(value => { - value.tcoords = [0.0, (totalHeight - value.startingHeight - value.height) / totalHeight, value.width / maxWidth, (totalHeight - value.startingHeight - value.height) / totalHeight, value.width / maxWidth, (totalHeight - value.startingHeight) / totalHeight, 0.0, (totalHeight - value.startingHeight) / totalHeight]; - }); - - // make sure we have power of two dimensions - model.tmCanvas.width = maxWidth; - model.tmCanvas.height = totalHeight; - model.tmContext.textBaseline = 'bottom'; - model.tmContext.textAlign = 'left'; - model.tmContext.clearRect(0, 0, maxWidth, totalHeight); - - // draw the text onto the texture - newTmAtlas.forEach((value, key) => { - const defaultSize = value.textStyle === model.axisTextStyle ? 18 : 14; - applyTextStyle(model.tmContext, value.textStyle, defaultSize); - model.tmContext.fillText(key, 1, value.startingHeight + value.height - 1); - }); - model.tmTexture.setCanvas(model.tmCanvas); - // mark as modified since the canvas typically doesn't change - model.tmTexture.modified(); - model._tmAtlas = newTmAtlas; - return results; - }; - publicAPI.computeBarSize = textSizes => { - // compute orientation - model.vertical = model.boxSize[1] > model.boxSize[0]; - const tickHeight = 2.0 * textSizes.tickHeight / model.lastSize[1]; - const segSize = [1, 1]; - - // horizontal and vertical have different astetics so adjust based on - // orientation - if (model.vertical) { - const tickWidth = 2.0 * (textSizes.tickWidth + model.tickLabelPixelOffset) / model.lastSize[0]; - if (model.topTitle) { - const titleHeight = 2.0 * (textSizes.titleHeight + model.axisTitlePixelOffset) / model.lastSize[1]; - model.barSize[0] = model.boxSize[0] - tickWidth; - model.barSize[1] = model.boxSize[1] - titleHeight; - } else { - // rotated title so width is based off height - const titleWidth = 2.0 * (textSizes.titleHeight + model.axisTitlePixelOffset) / model.lastSize[0]; - model.barSize[0] = model.boxSize[0] - titleWidth - tickWidth; - model.barSize[1] = model.boxSize[1]; - } - model.barPosition[0] = model.boxPosition[0] + tickWidth; - model.barPosition[1] = model.boxPosition[1]; - segSize[1] = tickHeight; - } else { - const tickWidth = (2.0 * textSizes.tickWidth - 8) / model.lastSize[0]; - const titleHeight = 2.0 * (textSizes.titleHeight + model.axisTitlePixelOffset) / model.lastSize[1]; - model.barSize[0] = model.boxSize[0]; - model.barPosition[0] = model.boxPosition[0]; - model.barSize[1] = model.boxSize[1] - titleHeight; - model.barPosition[1] = model.boxPosition[1]; - segSize[0] = tickWidth; - } - return segSize; - }; - - // based on all the settins compute a barSegments array - // containing the segments of the scalar bar - // each segment contains - // corners[4][2] - // title - e.g. NaN, Above, ticks - // scalars - the normalized scalars values to use for that segment - // - // Note that the bar consumes the space in the box that remains after - // leaving room for the text labels - publicAPI.recomputeBarSegments = textSizes => { - // first compute the barSize/Position - const segSize = publicAPI.computeBarSize(textSizes); - model.barSegments = []; - const startPos = [0.0, 0.0]; - - // horizontal and vertical have different astetics so adjust based on - // orientation - const barAxis = model.vertical ? 1 : 0; - const segSpace = model.vertical ? 0.01 : 0.02; - function pushSeg(title, scalars) { - model.barSegments.push({ - corners: [[...startPos], [startPos[0] + segSize[0], startPos[1]], [startPos[0] + segSize[0], startPos[1] + segSize[1]], [startPos[0], startPos[1] + segSize[1]]], - scalars, - title - }); - startPos[barAxis] += segSize[barAxis] + segSpace; - } - if (model.renderable.getDrawNanAnnotation() && model.renderable.getScalarsToColors().getNanColor()) { - pushSeg('NaN', [NaN, NaN, NaN, NaN]); - } - if (model.renderable.getDrawBelowRangeSwatch() && model.renderable.getScalarsToColors().getUseBelowRangeColor?.()) { - pushSeg('Below', [-0.1, -0.1, -0.1, -0.1]); - } - const haveAbove = model.renderable.getScalarsToColors().getUseAboveRangeColor?.(); - - // extra space around the ticks section - startPos[barAxis] += segSpace; - const oldSegSize = segSize[barAxis]; - segSize[barAxis] = haveAbove ? 1.0 - 2.0 * segSpace - segSize[barAxis] - startPos[barAxis] : 1.0 - segSpace - startPos[barAxis]; - pushSeg('ticks', model.vertical ? [0, 0, 0.995, 0.995] : [0, 0.995, 0.995, 0]); - if (model.renderable.getDrawAboveRangeSwatch() && haveAbove) { - segSize[barAxis] = oldSegSize; - startPos[barAxis] += segSpace; - pushSeg('Above', [1.1, 1.1, 1.1, 1.1]); - } - }; - - // called by updatePolyDataForLabels - // modifies class constants tmp2v3 - const tmp2v3 = new Float64Array(3); - - // anchor point = pos - // H alignment = left, middle, right - // V alignment = bottom, middle, top - // Text Orientation = horizontal, vertical - // orientation - publicAPI.createPolyDataForOneLabel = (text, pos, alignment, orientation, offset, results) => { - const value = model._tmAtlas.get(text); - if (!value) { - return; - } - // have to find the four corners of the texture polygon for this label - let ptIdx = results.ptIdx; - let cellIdx = results.cellIdx; - - // get achor point in pixels - tmp2v3[0] = (0.5 * pos[0] + 0.5) * model.lastSize[0]; - tmp2v3[1] = (0.5 * pos[1] + 0.5) * model.lastSize[1]; - tmp2v3[2] = pos[2]; - tmp2v3[0] += offset[0]; - tmp2v3[1] += offset[1]; - - // get text size in display pixels - const textSize = []; - const textAxes = orientation === 'vertical' ? [1, 0] : [0, 1]; - if (orientation === 'vertical') { - textSize[0] = value.width; - textSize[1] = -value.height; - // update anchor point based on alignment - if (alignment[0] === 'middle') { - tmp2v3[1] -= value.width / 2.0; - } else if (alignment[0] === 'right') { - tmp2v3[1] -= value.width; - } - if (alignment[1] === 'middle') { - tmp2v3[0] += value.height / 2.0; - } else if (alignment[1] === 'top') { - tmp2v3[0] += value.height; - } - } else { - textSize[0] = value.width; - textSize[1] = value.height; - // update anchor point based on alignment - if (alignment[0] === 'middle') { - tmp2v3[0] -= value.width / 2.0; - } else if (alignment[0] === 'right') { - tmp2v3[0] -= value.width; - } - if (alignment[1] === 'middle') { - tmp2v3[1] -= value.height / 2.0; - } else if (alignment[1] === 'top') { - tmp2v3[1] -= value.height; - } - } - results.points[ptIdx * 3] = tmp2v3[0]; - results.points[ptIdx * 3 + 1] = tmp2v3[1]; - results.points[ptIdx * 3 + 2] = tmp2v3[2]; - results.tcoords[ptIdx * 2] = value.tcoords[0]; - results.tcoords[ptIdx * 2 + 1] = value.tcoords[1]; - ptIdx++; - tmp2v3[textAxes[0]] += textSize[0]; - results.points[ptIdx * 3] = tmp2v3[0]; - results.points[ptIdx * 3 + 1] = tmp2v3[1]; - results.points[ptIdx * 3 + 2] = tmp2v3[2]; - results.tcoords[ptIdx * 2] = value.tcoords[2]; - results.tcoords[ptIdx * 2 + 1] = value.tcoords[3]; - ptIdx++; - tmp2v3[textAxes[1]] += textSize[1]; - results.points[ptIdx * 3] = tmp2v3[0]; - results.points[ptIdx * 3 + 1] = tmp2v3[1]; - results.points[ptIdx * 3 + 2] = tmp2v3[2]; - results.tcoords[ptIdx * 2] = value.tcoords[4]; - results.tcoords[ptIdx * 2 + 1] = value.tcoords[5]; - ptIdx++; - tmp2v3[textAxes[0]] -= textSize[0]; - results.points[ptIdx * 3] = tmp2v3[0]; - results.points[ptIdx * 3 + 1] = tmp2v3[1]; - results.points[ptIdx * 3 + 2] = tmp2v3[2]; - results.tcoords[ptIdx * 2] = value.tcoords[6]; - results.tcoords[ptIdx * 2 + 1] = value.tcoords[7]; - ptIdx++; - - // add the two triangles to represent the quad - results.polys[cellIdx * 4] = 3; - results.polys[cellIdx * 4 + 1] = ptIdx - 4; - results.polys[cellIdx * 4 + 2] = ptIdx - 3; - results.polys[cellIdx * 4 + 3] = ptIdx - 2; - cellIdx++; - results.polys[cellIdx * 4] = 3; - results.polys[cellIdx * 4 + 1] = ptIdx - 4; - results.polys[cellIdx * 4 + 2] = ptIdx - 2; - results.polys[cellIdx * 4 + 3] = ptIdx - 1; - results.ptIdx += 4; - results.cellIdx += 2; - }; - - // update the polydata associated with drawing the text labels - // specifically the quads used for each label and their associated tcoords - // etc. This changes every time the camera viewpoint changes - const tmpv3 = new Float64Array(3); - publicAPI.updatePolyDataForLabels = () => { - // update the polydata - const numLabels = publicAPI.getTickStrings().length + model.barSegments.length; - const numPts = numLabels * 4; - const numTris = numLabels * 2; - const points = new Float64Array(numPts * 3); - const polys = new Uint16Array(numTris * 4); - const tcoords = new Float32Array(numPts * 2); - const results = { - ptIdx: 0, - cellIdx: 0, - polys, - points, - tcoords - }; - - // compute the direction vector - const offsetAxis = model.vertical ? 0 : 1; - const spacedAxis = model.vertical ? 1 : 0; - tmpv3[2] = -0.99; // near plane - - // draw the title - const alignment = model.vertical ? ['right', 'middle'] : ['middle', 'bottom']; - let dir = [0, 1]; - const tickOffsets = [0, 0]; - if (model.vertical) { - tickOffsets[0] = -model.tickLabelPixelOffset; - if (model.topTitle) { - tmpv3[0] = model.boxPosition[0] + 0.5 * model.boxSize[0]; - tmpv3[1] = model.barPosition[1] + model.barSize[1]; - - // write the axis label - publicAPI.createPolyDataForOneLabel(model.renderable.getAxisLabel(), tmpv3, ['middle', 'bottom'], 'horizontal', [0, model.axisTitlePixelOffset], results); - } else { - tmpv3[0] = model.barPosition[0] + model.barSize[0]; - tmpv3[1] = model.barPosition[1] + 0.5 * model.barSize[1]; - - // write the axis label - publicAPI.createPolyDataForOneLabel(model.renderable.getAxisLabel(), tmpv3, ['middle', 'top'], 'vertical', [model.axisTitlePixelOffset, 0], results); - } - dir = [-1, 0]; - } else { - tickOffsets[1] = model.tickLabelPixelOffset; - tmpv3[0] = model.barPosition[0] + 0.5 * model.barSize[0]; - tmpv3[1] = model.barPosition[1] + model.barSize[1]; - publicAPI.createPolyDataForOneLabel(model.renderable.getAxisLabel(), tmpv3, ['middle', 'bottom'], 'horizontal', [0, model.axisTitlePixelOffset], results); - } - tmpv3[offsetAxis] = model.barPosition[offsetAxis] + (0.5 * dir[offsetAxis] + 0.5) * model.barSize[offsetAxis]; - tmpv3[spacedAxis] = model.barPosition[spacedAxis] + model.barSize[spacedAxis] * 0.5; - - // draw bar segment labels - let tickSeg = null; - for (let i = 0; i < model.barSegments.length; i++) { - const seg = model.barSegments[i]; - if (seg.title === 'ticks') { - // handle ticks below - tickSeg = seg; - } else { - tmpv3[spacedAxis] = model.barPosition[spacedAxis] + 0.5 * model.barSize[spacedAxis] * (seg.corners[2][spacedAxis] + seg.corners[0][spacedAxis]); - publicAPI.createPolyDataForOneLabel(seg.title, tmpv3, alignment, 'horizontal', tickOffsets, results); - } - } - - // write the tick labels - const tickSegmentStart = model.barPosition[spacedAxis] + model.barSize[spacedAxis] * tickSeg.corners[0][spacedAxis]; - const tickSegmentSize = model.barSize[spacedAxis] * (tickSeg.corners[2][spacedAxis] - tickSeg.corners[0][spacedAxis]); - const ticks = publicAPI.getTicks(); - const tickStrings = publicAPI.getTickStrings(); - const tickPositions = publicAPI.getTickPositions(); - for (let t = 0; t < ticks.length; t++) { - // If tickPositions is not set, use a normalized position - const tickPos = tickPositions ? tickPositions[t] : (ticks[t] - model.lastTickBounds[0]) / (model.lastTickBounds[1] - model.lastTickBounds[0]); - tmpv3[spacedAxis] = tickSegmentStart + tickSegmentSize * tickPos; - publicAPI.createPolyDataForOneLabel(tickStrings[t], tmpv3, alignment, 'horizontal', tickOffsets, results); - } - const tcoordDA = vtkDataArray.newInstance({ - numberOfComponents: 2, - values: tcoords, - name: 'TextureCoordinates' - }); - model.tmPolyData.getPointData().setTCoords(tcoordDA); - model.tmPolyData.getPoints().setData(points, 3); - model.tmPolyData.getPoints().modified(); - model.tmPolyData.getPolys().setData(polys, 1); - model.tmPolyData.getPolys().modified(); - model.tmPolyData.modified(); - }; - publicAPI.updatePolyDataForBarSegments = () => { - const scalarsToColors = model.renderable.getScalarsToColors(); - let numberOfExtraColors = 0; - if (model.renderable.getDrawNanAnnotation() && scalarsToColors.getNanColor()) { - numberOfExtraColors += 1; - } - if (model.renderable.getDrawBelowRangeSwatch() && scalarsToColors.getUseBelowRangeColor?.()) { - numberOfExtraColors += 1; - } - if (model.renderable.getDrawAboveRangeSwatch() && scalarsToColors.getUseAboveRangeColor?.()) { - numberOfExtraColors += 1; - } - const numPts = 4 * (1 + numberOfExtraColors); - const numQuads = numPts; - - // handle vector component mode - let numComps = 1; - if (scalarsToColors.getVectorMode() === VectorMode.COMPONENT) { - numComps = scalarsToColors.getVectorComponent() + 1; - } - - // create the colored bars - const points = new Float64Array(numPts * 3); - const cells = new Uint16Array(numQuads * 5); - const scalars = new Float32Array(numPts * numComps); - let ptIdx = 0; - let cellIdx = 0; - for (let i = 0; i < model.barSegments.length; i++) { - const seg = model.barSegments[i]; - for (let e = 0; e < 4; e++) { - tmpv3[0] = model.barPosition[0] + seg.corners[e][0] * model.barSize[0]; - tmpv3[1] = model.barPosition[1] + seg.corners[e][1] * model.barSize[1]; - points[ptIdx * 3] = (0.5 * tmpv3[0] + 0.5) * model.lastSize[0]; - points[ptIdx * 3 + 1] = (0.5 * tmpv3[1] + 0.5) * model.lastSize[1]; - points[ptIdx * 3 + 2] = tmpv3[2]; - for (let nc = 0; nc < numComps; nc++) { - scalars[ptIdx * numComps + nc] = model.lastTickBounds[0] + seg.scalars[e] * (model.lastTickBounds[1] - model.lastTickBounds[0]); - } - ptIdx++; - } - cells[cellIdx * 5] = 4; - cells[cellIdx * 5 + 1] = ptIdx - 4; - cells[cellIdx * 5 + 2] = ptIdx - 3; - cells[cellIdx * 5 + 3] = ptIdx - 2; - cells[cellIdx * 5 + 4] = ptIdx - 1; - cellIdx++; - } - const scalarsDA = vtkDataArray.newInstance({ - numberOfComponents: numComps, - values: scalars, - name: 'Scalars' - }); - model.polyData.getPointData().setScalars(scalarsDA); - model.polyData.getPoints().setData(points, 3); - model.polyData.getPoints().modified(); - model.polyData.getPolys().setData(cells, 1); - model.polyData.getPolys().modified(); - model.polyData.modified(); - }; -} -const newScalarBarActorHelper = macro.newInstance(function (publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : { - renderable: null - }; - Object.assign(model, {}, initialValues); - - // Inheritance - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['axisTitlePixelOffset', 'tickLabelPixelOffset', 'renderable', 'topTitle', 'ticks', 'tickStrings', 'tickPositions']); - macro.get(publicAPI, model, ['lastSize', 'lastAspectRatio', 'lastTickBounds', 'axisTextStyle', 'tickTextStyle', 'barActor', 'tmActor']); - macro.getArray(publicAPI, model, ['boxPosition', 'boxSize']); - macro.setArray(publicAPI, model, ['boxPosition', 'boxSize'], 2); - model.forceUpdate = false; - model.lastRebuildTime = {}; - macro.obj(model.lastRebuildTime, { - mtime: 0 - }); - model.lastSize = [-1, -1]; - model.tmCanvas = document.createElement('canvas'); - model.tmContext = model.tmCanvas.getContext('2d'); - model._tmAtlas = new Map(); - model.barMapper = vtkMapper.newInstance(); - model.barMapper.setInterpolateScalarsBeforeMapping(true); - model.barMapper.setUseLookupTableScalarRange(true); - model.polyData = vtkPolyData.newInstance(); - model.barMapper.setInputData(model.polyData); - model.barActor = vtkActor.newInstance(); - model.barActor.setMapper(model.barMapper); - - // for texture atlas - model.tmPolyData = vtkPolyData.newInstance(); - model.tmMapper = vtkMapper.newInstance(); - model.tmMapper.setInputData(model.tmPolyData); - model.tmTexture = vtkTexture.newInstance({ - resizable: true - }); - model.tmTexture.setInterpolate(false); - model.tmActor = vtkActor.newInstance({ - parentProp: publicAPI - }); - model.tmActor.setMapper(model.tmMapper); - model.tmActor.addTexture(model.tmTexture); - model.barPosition = [0, 0]; - model.barSize = [0, 0]; - model.boxPosition = [0.88, -0.92]; - model.boxSize = [0.1, 1.1]; - - // internal variables - model.lastTickBounds = []; - vtkScalarBarActorHelper(publicAPI, model); -}, 'vtkScalarBarActorHelper'); - -// -// Now we define the public class that the application sets view independent -// properties on. This class is fairly small as it mainly just holds -// properties setter and getters leaving all calculations to the helper -// class. -// -function vtkScalarBarActor(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkScalarBarActor'); - publicAPI.setTickTextStyle = tickStyle => { - model.tickTextStyle = { - ...model.tickTextStyle, - ...tickStyle - }; - publicAPI.modified(); - }; - publicAPI.setAxisTextStyle = axisStyle => { - model.axisTextStyle = { - ...model.axisTextStyle, - ...axisStyle - }; - publicAPI.modified(); - }; - publicAPI.setOrientationToHorizontal = () => publicAPI.setOrientation(Orientation.HORIZONTAL); - publicAPI.setOrientationToVertical = () => publicAPI.setOrientation(Orientation.VERTICAL); - publicAPI.resetAutoLayoutToDefault = () => { - publicAPI.setAutoLayout(defaultAutoLayout(publicAPI, model)); - }; - publicAPI.resetGenerateTicksToDefault = () => { - publicAPI.setGenerateTicks(defaultGenerateTicks()); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - return { - automated: true, - autoLayout: null, - axisLabel: 'Scalar Value', - barPosition: [0, 0], - barSize: [0, 0], - boxPosition: [0.88, -0.92], - boxSize: [0.1, 1.1], - scalarToColors: null, - axisTitlePixelOffset: 36.0, - axisTextStyle: { - fontColor: 'white', - fontStyle: 'normal', - fontSize: undefined, - fontFamily: 'serif' - }, - tickLabelPixelOffset: 14.0, - tickTextStyle: { - fontColor: 'white', - fontStyle: 'normal', - fontSize: undefined, - fontFamily: 'serif' - }, - generateTicks: null, - drawNanAnnotation: true, - drawBelowRangeSwatch: true, - drawAboveRangeSwatch: true, - orientation: null, - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - if (!model.autoLayout) model.autoLayout = defaultAutoLayout(publicAPI, model); - if (!model.generateTicks) model.generateTicks = defaultGenerateTicks(); - - // Inheritance - vtkActor.extend(publicAPI, model, initialValues); - publicAPI.getProperty().setDiffuse(0.0); - publicAPI.getProperty().setAmbient(1.0); - macro.setGet(publicAPI, model, ['automated', 'autoLayout', 'axisTitlePixelOffset', 'axisLabel', 'scalarsToColors', 'tickLabelPixelOffset', 'generateTicks', 'drawNanAnnotation', 'drawBelowRangeSwatch', 'drawAboveRangeSwatch', 'orientation']); - macro.get(publicAPI, model, ['axisTextStyle', 'tickTextStyle']); - macro.getArray(publicAPI, model, ['barPosition', 'barSize', 'boxPosition', 'boxSize']); - macro.setArray(publicAPI, model, ['barPosition', 'barSize', 'boxPosition', 'boxSize'], 2); - - // Object methods - vtkScalarBarActor(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkScalarBarActor'); - -// ---------------------------------------------------------------------------- - -var vtkScalarBarActor$1 = { - newInstance, - extend, - newScalarBarActorHelper, - ...Constants -}; - -export { vtkScalarBarActor$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ScalarBarActor/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ScalarBarActor/Constants.js deleted file mode 100644 index b577fbb3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/ScalarBarActor/Constants.js +++ /dev/null @@ -1,10 +0,0 @@ -const Orientation = { - HORIZONTAL: 'horizontal', - VERTICAL: 'vertical', - AUTO: 'auto' -}; -var Constants = { - Orientation -}; - -export { Orientation, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Skybox.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Skybox.d.ts deleted file mode 100644 index b4edc532..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Skybox.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -import vtkActor, { IActorInitialValues } from './Actor'; - -export interface ISkyboxInitialValues extends IActorInitialValues { - format?: string; -} - -export interface vtkSkybox extends vtkActor { - /** - * - */ - getFromat(): string; - - /** - * - */ - getIsOpaque(): boolean; - - /** - * - */ - getSupportsSelection(): boolean; - - /** - * - */ - hasTranslucentPolygonalGeometry(): boolean; - - /** - * - * @param format - */ - setFromat(format: string): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkSkybox characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ISkyboxInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ISkyboxInitialValues -): void; - -/** - * Method use to create a new instance of vtkSkybox - */ -export function newInstance(initialValues?: ISkyboxInitialValues): vtkSkybox; - -/** - * - */ -export declare const vtkSkybox: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkSkybox; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Skybox.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Skybox.js deleted file mode 100644 index 70ed7cce..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Skybox.js +++ /dev/null @@ -1,52 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkActor from './Actor.js'; - -// ---------------------------------------------------------------------------- -// vtkSkybox methods -// ---------------------------------------------------------------------------- - -function vtkSkybox(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkSkybox'); - publicAPI.getIsOpaque = () => true; - publicAPI.hasTranslucentPolygonalGeometry = () => false; - publicAPI.getSupportsSelection = () => false; -} - -// ---------------------------------------------------------------------------- -// Object fSkyboxy -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - format: 'box' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkActor.extend(publicAPI, model, initialValues); - - // Build VTK API - macro.setGet(publicAPI, model, ['format' // can be box or background, in the future sphere, floor as well - ]); - - // Object methods - vtkSkybox(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSkybox'); - -// ---------------------------------------------------------------------------- - -var vtkSkybox$1 = { - newInstance, - extend -}; - -export { vtkSkybox$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/SphereMapper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/SphereMapper.d.ts deleted file mode 100644 index 90ad9dd9..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/SphereMapper.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -import vtkMapper, { IMapperInitialValues } from './Mapper'; - -export interface ISphereInitialValues extends IMapperInitialValues { - radius?: number; -} - -export interface vtkSphereMapper extends vtkMapper { - /** - * - */ - getRadius(): number; - - /** - * - */ - getScaleArray(): any; - - /** - * - */ - getScaleFactor(): number; - - /** - * - * @param {Number} radius - */ - setRadius(radius: number): boolean; - - /** - * - * @param scaleArray - */ - setScaleArray(scaleArray: any): boolean; - - /** - * Factor multiplied with scale array elements. Radius is used when no scale array is given. - * @param scaleFactor number to multiply with when a scale array is provided. 1 by default. - * @see getScaleFactor(), setScaleArray(), setRadius() - */ - setScaleFactor(scaleFactor: number): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkSphereMapper characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ISphereInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ISphereInitialValues -): void; - -/** - * Method use to create a new instance of vtkSphereMapper - */ -export function newInstance( - initialValues?: ISphereInitialValues -): vtkSphereMapper; - -/** - * vtkSphereMapper inherits from vtkMapper. - */ -export declare const vtkSphereMapper: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkSphereMapper; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/SphereMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/SphereMapper.js deleted file mode 100644 index 4f74396d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/SphereMapper.js +++ /dev/null @@ -1,48 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkMapper from './Mapper.js'; - -// ---------------------------------------------------------------------------- -// vtkSphereMapper methods -// ---------------------------------------------------------------------------- - -function vtkSphereMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkSphereMapper'); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - scaleArray: null, - radius: 0.05, - scaleFactor: 1.0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkMapper.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['radius', 'scaleArray', 'scaleFactor']); - - // Object methods - vtkSphereMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSphereMapper'); - -// ---------------------------------------------------------------------------- - -var vtkSphereMapper$1 = { - newInstance, - extend -}; - -export { vtkSphereMapper$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/StickMapper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/StickMapper.d.ts deleted file mode 100644 index 598c4d76..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/StickMapper.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -import vtkMapper, { IMapperInitialValues } from './Mapper'; - -interface IStickMappereInitialValues extends IMapperInitialValues { - radius?: number; - length?: number; - scaleArray?: number[]; - orientationArray?: number[]; -} - -export interface vtkStickMapper extends vtkMapper { - /** - * - */ - getRadius(): number; - - /** - * - */ - getScaleArray(): number[]; - - /** - * - * @param {Number} radius - */ - setRadius(radius: number): boolean; - - /** - * - * @param scaleArray - */ - setScaleArray(scaleArray: number[]): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkStickMapper characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IStickMappereInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IStickMappereInitialValues -): void; - -/** - * Method use to create a new instance of vtkStickMapper - */ -export function newInstance( - initialValues?: IStickMappereInitialValues -): vtkStickMapper; - -/** - * vtkStickMapper inherits from vtkMapper. - * - * @see vtkMapper - */ -export declare const vtkStickMapper: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkStickMapper; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/StickMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/StickMapper.js deleted file mode 100644 index fe2a5c54..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/StickMapper.js +++ /dev/null @@ -1,49 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkMapper from './Mapper.js'; - -// ---------------------------------------------------------------------------- -// vtkStickMapper methods -// ---------------------------------------------------------------------------- - -function vtkStickMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkStickMapper'); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - scaleArray: null, - orientationArray: null, - radius: 0.025, - length: 0.1 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkMapper.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['scaleArray', 'orientationArray', 'radius', 'length']); - - // Object methods - vtkStickMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkStickMapper'); - -// ---------------------------------------------------------------------------- - -var vtkStickMapper$1 = { - newInstance, - extend -}; - -export { vtkStickMapper$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/SurfaceLICInterface.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/SurfaceLICInterface.js deleted file mode 100644 index 7e8e6ff5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/SurfaceLICInterface.js +++ /dev/null @@ -1,62 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { ContrastEnhanceMode, ColorMode, NoiseType } from './SurfaceLICInterface/Constants.js'; - -function vtkSurfaceLICInterface(publicAPI, model) { - model.classHierarchy.push('vtkSurfaceLICInterface'); -} -const DEFAULT_VALUES = { - enableLIC: false, - nuberOfSteps: 40, - stepSize: 0.25, - transformVectors: true, - normalizeVectors: true, - maskOnSurface: false, - maskThreshold: 0.0, - maskColor: [0.0, 0.0, 0.0], - maskIntensity: 0.0, - enhancedLIC: true, - enhanceContrast: ContrastEnhanceMode.NONE, - lowLICContrastEnhancementFactor: 0.0, - highLICContrastEnhancementFactor: 0.0, - lowColorContrastEnhancementFactor: 0.0, - highColorContrastEnhancementFactor: 0.0, - antiAlias: 0, - colorMode: ColorMode.BLEND, - LICIntensity: 1.0, - mapModeBias: 0.0, - noiseTextureSize: 200, - noiseTextureType: NoiseType.GAUSSIAN, - noiseGrainSize: 8, - noiseImpulseProbability: 0.1, - noiseImpulseBackgroundValue: 0.0, - noiseGeneratorSeed: 0, - minNoiseValue: 0.0, - maxNoiseValue: 1.0, - numberOfNoiseLevels: 2, - shadersNeedBuilding: true, - reallocateTextures: true, - rebuildNoiseTexture: false, - viewPortScale: 1.0 -}; -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['enableLIC', 'numberOfSteps', 'stepSize', 'normalizeVectors', 'transformVectors', 'maskOnSurface', 'maskThreshold', 'maskColor', 'maskIntensity', 'enhancedLIC', 'enhanceContrast', 'lowLICContrastEnhancementFactor', 'highLICContrastEnhancementFactor', 'lowColorContrastEnhancementFactor', 'highColorContrastEnhancementFactor', 'antiAlias', 'colorMode', 'LICIntensity', 'mapModeBias', 'noiseTextureSize', 'noiseTextureType', 'noiseGrainSize', 'minNoiseValue', 'maxNoiseValue', 'numberOfNoiseLevels', 'noiseImpulseProbability', 'noiseImpulseBackgroundValue', 'noiseGeneratorSeed', 'viewPortScale', 'rebuildNoiseTexture']); - - // Object methods - vtkSurfaceLICInterface(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSurfaceLICInterface'); - -// ---------------------------------------------------------------------------- - -var vtkSurfaceLICInterface$1 = { - newInstance, - extend -}; - -export { vtkSurfaceLICInterface$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/SurfaceLICInterface/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/SurfaceLICInterface/Constants.js deleted file mode 100644 index 6f62ecc9..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/SurfaceLICInterface/Constants.js +++ /dev/null @@ -1,21 +0,0 @@ -const ContrastEnhanceMode = { - NONE: 0, - LIC: 1, - COLOR: 2, - BOTH: 3 -}; -const NoiseType = { - UNIFORM: 0, - GAUSSIAN: 1 -}; -const ColorMode = { - BLEND: 0, - MULTIPLY: 1 -}; -var Constants = { - ColorMode, - ContrastEnhanceMode, - NoiseType -}; - -export { ColorMode, ContrastEnhanceMode, NoiseType, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/SurfaceLICMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/SurfaceLICMapper.js deleted file mode 100644 index 81ffb7e9..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/SurfaceLICMapper.js +++ /dev/null @@ -1,53 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkMapper from './Mapper.js'; -import vtkSurfaceLICInterface from './SurfaceLICInterface.js'; - -// ---------------------------------------------------------------------------- -// vtkSurfaceLICMapper methods -// ---------------------------------------------------------------------------- - -function vtkSurfaceLICMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkSurfaceLICMapper'); - publicAPI.getLicInterface = () => { - if (!model.licInterface) { - model.licInterface = vtkSurfaceLICInterface.newInstance(); - } - return model.licInterface; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - licInterface: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkMapper.extend(publicAPI, model, initialValues); - macro.set(publicAPI, model, ['licInterface']); - - // Object methods - vtkSurfaceLICMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSurfaceLICMapper'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/TextActor.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/TextActor.d.ts deleted file mode 100644 index ce569931..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/TextActor.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -import vtkActor2D, { IActor2DInitialValues } from './Actor2D'; -import vtkTextProperty, { ITextPropertyInitialValues } from './TextProperty'; - -export interface ITextActorInitialValues extends IActor2DInitialValues { - property?: vtkTextProperty; -} - -export interface vtkTextActor extends vtkActor2D { - /** - * Get the property object that controls this actors properties. - * @returns {vtkTextProperty} The vtkTextProperty instance. - */ - getProperty(): vtkTextProperty; - - /** - * Create a new property suitable for use with this type of TextActor. - * @param {ITextPropertyInitialValues} [initialValues] (default: {}) - * @return {vtkTextProperty} A new vtkTextProperty instance. - */ - makeProperty(initialValues?: ITextPropertyInitialValues): vtkTextProperty; - - /** - * Set the text to be displayed by the actor. - * @param input The text to be displayed by the actor. - */ - setInput(input: string): boolean; - - /** - * Set the property object that controls this actors properties. - * @param {vtkTextProperty} property The vtkTextProperty instance. - */ - setProperty(property: vtkTextProperty): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkActor characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ITextActorInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ITextActorInitialValues -): void; - -/** - * Method used to create a new instance of vtkTextActor - * - * @param {ITextActorInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ITextActorInitialValues -): vtkTextActor; - -/** - * vtkTextActor can be used to place text annotation into a window. - */ -export declare const vtkTextActor: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkTextActor; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/TextActor.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/TextActor.js deleted file mode 100644 index 71da03ad..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/TextActor.js +++ /dev/null @@ -1,134 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPlaneSource from '../../Filters/Sources/PlaneSource.js'; -import vtkTexture from './Texture.js'; -import vtkActor2D from './Actor2D.js'; -import vtkMapper2D from './Mapper2D.js'; -import vtkTextProperty from './TextProperty.js'; -import ImageHelper from '../../Common/Core/ImageHelper.js'; -import { X as floatRGB2HexCode } from '../../Common/Core/Math/index.js'; - -// ---------------------------------------------------------------------------- -// vtkTextActor methods -// ---------------------------------------------------------------------------- -function vtkTextActor(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkTextActor'); - publicAPI.makeProperty = vtkTextProperty.newInstance; - const texture = vtkTexture.newInstance({ - resizable: true - }); - const canvas = new OffscreenCanvas(1, 1); - const mapper = vtkMapper2D.newInstance(); - const plane = vtkPlaneSource.newInstance({ - xResolution: 1, - yResolution: 1 - }); - function createImageData(text) { - const fontSizeScale = publicAPI.getProperty().getFontSizeScale(); - const fontStyle = publicAPI.getProperty().getFontStyle(); - const fontFamily = publicAPI.getProperty().getFontFamily(); - const fontColor = publicAPI.getProperty().getFontColor(); - const shadowColor = publicAPI.getProperty().getShadowColor(); - const shadowOffset = publicAPI.getProperty().getShadowOffset(); - const shadowBlur = publicAPI.getProperty().getShadowBlur(); - const resolution = publicAPI.getProperty().getResolution(); - const backgroundColor = publicAPI.getProperty().getBackgroundColor(); - const dpr = Math.max(window.devicePixelRatio || 1, 1); - const ctx = canvas.getContext('2d'); - - // Set the text properties to measure - const textSize = fontSizeScale(resolution) * dpr; - ctx.font = `${fontStyle} ${textSize}px "${fontFamily}"`; - ctx.textBaseline = 'middle'; - ctx.textAlign = 'center'; - - // Measure the text - const metrics = ctx.measureText(text); - const textWidth = metrics.width / dpr; - const { - actualBoundingBoxLeft, - actualBoundingBoxRight, - actualBoundingBoxAscent, - actualBoundingBoxDescent - } = metrics; - const hAdjustment = (actualBoundingBoxLeft - actualBoundingBoxRight) / 2; - const vAdjustment = (actualBoundingBoxAscent - actualBoundingBoxDescent) / 2; - const textHeight = textSize / dpr - vAdjustment; - - // Update canvas size to fit text and ensure it is at least 1x1 pixel - const width = Math.max(Math.round(textWidth * dpr), 1); - const height = Math.max(Math.round(textHeight * dpr), 1); - canvas.width = width; - canvas.height = height; - - // Vertical flip - ctx.translate(0, height); - ctx.scale(1, -1); - - // Clear the canvas - ctx.clearRect(0, 0, width, height); - if (backgroundColor) { - ctx.fillStyle = floatRGB2HexCode(backgroundColor); - ctx.fillRect(0, 0, width, height); - } - - // Reset context after resize and prepare for rendering - ctx.imageSmoothingEnabled = true; - ctx.imageSmoothingQuality = 'high'; - ctx.font = `${fontStyle} ${textSize}px "${fontFamily}"`; - ctx.fillStyle = floatRGB2HexCode(fontColor); - ctx.textBaseline = 'middle'; - ctx.textAlign = 'center'; - - // Set shadow - if (shadowColor) { - ctx.shadowColor = floatRGB2HexCode(shadowColor); - ctx.shadowOffsetX = shadowOffset[0]; - ctx.shadowOffsetY = shadowOffset[1]; - ctx.shadowBlur = shadowBlur; - } - - // Draw the text - ctx.fillText(text, width / 2 + hAdjustment, height / 2 + vAdjustment); - - // Update plane dimensions to match text size - plane.set({ - point1: [width, 0, 0], - point2: [0, height, 0] - }); - return ImageHelper.canvasToImageData(canvas); - } - mapper.setInputConnection(plane.getOutputPort()); - publicAPI.setMapper(mapper); - publicAPI.addTexture(texture); - model._onInputChanged = (_publicAPI, _model, value) => { - const image = createImageData(value); - texture.setInputData(image, 0); - }; -} - -// Default property values -const DEFAULT_VALUES = { - mapper: null, - property: null -}; -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkActor2D.extend(publicAPI, model, initialValues); - - // Build VTK API - macro.setGet(publicAPI, model, ['input']); - - // Object methods - vtkTextActor(publicAPI, model); -} -const newInstance = macro.newInstance(extend, 'vtkTextActor'); -var vtkTextActor$1 = { - newInstance, - extend -}; - -export { vtkTextActor$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/TextProperty.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/TextProperty.d.ts deleted file mode 100644 index 4eadd2c0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/TextProperty.d.ts +++ /dev/null @@ -1,206 +0,0 @@ -import { RGBColor } from './../../types'; -import vtkProperty2D, { IProperty2DInitialValues } from './Property2D'; - -export interface ITextPropertyInitialValues extends IProperty2DInitialValues { - backgroundColor?: RGBColor; - fillStyle?: string; - fontColor?: RGBColor; - fontFamily?: string; - fontSizeScale?: (resolution: number) => number; - fontStyle?: string; - resolution?: number; - shadowBlur?: number; - shadowColor?: RGBColor; - shadowOffset?: [number, number]; -} - -export interface vtkTextProperty extends vtkProperty2D { - /** - * Get the background color. - */ - getBackgroundColor(): RGBColor; - - /** - * Get the background color by reference. - */ - getBackgroundColorByReference(): RGBColor; - - /** - * Get the fill style. - */ - getFillStyle(): string; - - /** - * Get the font color. - */ - getFontColor(): RGBColor; - - /** - * Get the font color by reference. - */ - getFontColorByReference(): RGBColor; - - /** - * Get the font family. - */ - getFontFamily(): string; - - /** - * Get the font size scale. - */ - getFontSizeScale(): (resolution: number) => number; - - /** - * Get the font style. - */ - getFontStyle(): string; - - /** - * Get the resolution. - */ - getResolution(): number; - - /** - * Get the shadow blur radius. - */ - getShadowBlur(): number; - - /** - * Get the shadow color. - */ - getShadowColor(): RGBColor; - - /** - * Get the shadow color by reference. - */ - getShadowColorByReference(): RGBColor; - - /** - * Get the shadow offset. - */ - getShadowOffset(): [number, number]; - - /** - * Get the shadow offset by reference. - */ - getShadowOffsetByReference(): [number, number]; - - /** - * Set the background color. - * @param {RGBColor} backgroundColor The background color to set. - */ - setBackgroundColor(backgroundColor: RGBColor): boolean; - - /** - * Set the fill style. - * @param {string} fillStyle The fill style to set. - */ - setFillStyle(fillStyle: string): boolean; - - /** - * Set the font color from RGB values. - * @param {number} r Red component (0-255) - * @param {number} g Green component (0-255) - * @param {number} b Blue component (0-255) - */ - setFontColor(r: number, g: number, b: number): boolean; - - /** - * Set the font color. - * @param {RGBColor} fontColor The font color to set. - */ - setFontColorFrom(fontColor: RGBColor): boolean; - - /** - * Set the font family. - * @param {string} fontFamily The font family to set. - */ - setFontFamily(fontFamily: string): boolean; - - /** - * Set the font size scale. - * Scales the font size based on the given resolution. - * Dividing by 1.8 ensures the font size is proportionate and not too large. - * The value 1.8 is a chosen scaling factor for visual balance. - * @param {number} resolution The resolution to set. - */ - setFontSizeScale(resolution: number): number; - - /** - * Set the font style. - * @param {string} fontStyle The font style to set. - */ - setFontStyle(fontStyle: string): boolean; - - /** - * Set the resolution. - * @param {number} resolution The resolution to set. - */ - setResolution(resolution: number): boolean; - - /** - * Set the shadow blur radius. - * @param {number} shadowBlur The shadow blur radius to set. - */ - setShadowBlur(shadowBlur: number): boolean; - - /** - * Set the shadow color from RGB values. - * @param {number} r Red component (0-255) - * @param {number} g Green component (0-255) - * @param {number} b Blue component (0-255) - */ - setShadowColor(r: number, g: number, b: number): boolean; - - /** - * Set the shadow color. - * @param {RGBColor} shadowColor The shadow color to set. - */ - setShadowColorFrom(shadowColor: RGBColor): boolean; - - /** - * Set the shadow offset from x and y values. - * @param {number} x Horizontal offset - * @param {number} y Vertical offset - */ - setShadowOffset(x: number, y: number): boolean; - - /** - * Set the shadow offset. - * @param {Array} shadowOffset The shadow offset to set, as an array of [x, y]. - */ - setShadowOffsetFrom(shadowOffset: [number, number]): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkProperty characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ITextPropertyInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ITextPropertyInitialValues -): void; - -/** - * Method use to create a new instance of vtkTextProperty. - * @param {ITextPropertyInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ITextPropertyInitialValues -): vtkTextProperty; - -/** - * vtkTextProperty is an object that represents text properties. The primary - * properties that can be set are color, opacity, font size, font family - * horizontal and vertical justification, bold/italic/shadow styles. - */ -export declare const vtkTextProperty: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkTextProperty; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/TextProperty.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/TextProperty.js deleted file mode 100644 index 1e42f0aa..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/TextProperty.js +++ /dev/null @@ -1,61 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkProperty2D from './Property2D.js'; - -// ---------------------------------------------------------------------------- -// vtkTextProperty methods -// ---------------------------------------------------------------------------- - -function vtkTextProperty(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkTextProperty'); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - fontFamily: 'Arial', - fontColor: [0, 0, 0], - fontStyle: 'normal', - // backgroundColor: [1, 1, 1], - // Scales the font size based on the given resolution. - // Dividing by 1.8 ensures the font size is proportionate and not too large. - // The value 1.8 is a chosen scaling factor for visual balance. - fontSizeScale: resolution => resolution / 1.8, - resolution: 200 - // shadowColor: [1, 1, 0], - // shadowOffset: [1, -1], - // shadowBlur: 0, -}; - -// ---------------------------------------------------------------------------- -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkProperty2D.extend(publicAPI, model, initialValues); - - // Build VTK API - - macro.setGet(publicAPI, model, ['fontFamily', 'fontStyle', 'fillStyle', 'fontSizeScale', 'resolution', 'shadowBlur']); - macro.setGetArray(publicAPI, model, ['shadowOffset'], 2); - macro.setGetArray(publicAPI, model, ['backgroundColor', 'fontColor', 'shadowColor'], 3); - - // Object methods - vtkTextProperty(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkTextProperty'); - -// ---------------------------------------------------------------------------- - -var vtkTextProperty$1 = { - newInstance, - extend -}; - -export { vtkTextProperty$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Texture.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Texture.d.ts deleted file mode 100644 index 6fa329ec..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Texture.d.ts +++ /dev/null @@ -1,178 +0,0 @@ -import { vtkAlgorithm } from './../../interfaces'; -import { Nullable } from './../../types'; - -/** - * - * @param {boolean} [resizable] Must be set to true if texture can be resized at run time (default: false) - */ -export interface ITextureInitialValues { - repeat?: boolean; - interpolate?: boolean; - edgeClamp?: boolean; - imageLoaded?: boolean; - mipLevel?: number; - resizable?: boolean; -} - -export interface vtkTexture extends vtkAlgorithm { - /** - * Returns the canvas used by the texture. - */ - getCanvas(): Nullable; - - /** - * Returns true if the texture is set to repeat at the edges. - */ - getRepeat(): boolean; - - /** - * Returns true if the texture is set to clamp at the edges. - */ - getEdgeClamp(): boolean; - - /** - * Returns true if the texture is set to interpolate between texels. - */ - getInterpolate(): boolean; - - /** - * Returns the image used by the texture. - */ - getImage(): Nullable; - - /** - * Returns an ImageBitmap object. - */ - getImageBitmap(): Nullable; - - /** - * Returns true if the image is loaded. - */ - getImageLoaded(): boolean; - - /** - * Returns the input image data object. - */ - getInputAsJsImageData(): Nullable< - ImageData | ImageBitmap | HTMLCanvasElement | HTMLImageElement - >; - - /** - * Returns the current mip level of the texture. - */ - getMipLevel(): number; - - /** - * Returns true if the texture can be resized at run time. - * This is useful for dynamic textures that may change size based on user - * interaction or other factors. - */ - getResizable(): boolean; - - /** - * Returns the canvas used by the texture. - */ - setCanvas(canvas: HTMLCanvasElement): void; - - /** - * Sets the texture to clamp at the edges. - * @param edgeClamp - * @default false - */ - setEdgeClamp(edgeClamp: boolean): boolean; - - /** - * Sets the texture to interpolate between texels. - * @param interpolate - * @default false - */ - setInterpolate(interpolate: boolean): boolean; - - /** - * Sets the image used by the texture. - * @param image - * @default null - */ - setImage(image: HTMLImageElement): void; - - /** - * Sets the image as an ImageBitmap object. - * Supported in WebGPU only. - * @param imageBitmap - */ - setImageBitmap(imageBitmap: ImageBitmap): void; - - /** - * Sets the input image data as a JavaScript ImageData object. - * @param imageData - */ - setJsImageData(imageData: ImageData): void; - - /** - * Sets the current mip level of the texture. - * @param level - */ - setMipLevel(level: number): boolean; - - /** - * Sets the texture to repeat at the edges. - * @param repeat - * @default false - */ - setRepeat(repeat: boolean): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkTexture characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ITextureInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ITextureInitialValues -): void; - -/** - * Method use to create a new instance of vtkTexture. - * @param {ITextureInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance(initialValues?: ITextureInitialValues): vtkTexture; - -/** - * Generates mipmaps for a given GPU texture using a compute shader. - * - * This function iteratively generates each mip level for the provided texture, - * using a bilinear downsampling compute shader implemented in WGSL. It creates - * the necessary pipeline, bind groups, and dispatches compute passes for each - * mip level. - * - * @param {GPUDevice} device - The WebGPU device used to create resources and submit commands. - * @param {GPUTexture} texture - The GPU texture for which mipmaps will be generated. - * @param {number} mipLevelCount - The total number of mip levels to generate (including the base level). - */ -export function generateMipmaps( - device: any, - texture: any, - mipLevelCount: number -): Array; - -/** - * vtkTexture is an image algorithm that handles loading and binding of texture - * maps. It obtains its data from an input image data dataset type. Thus you can - * create visualization pipelines to read, process, and construct textures. Note - * that textures will only work if texture coordinates are also defined, and if - * the rendering system supports texture. - * - * This class is used in both WebGL and WebGPU rendering backends, but the - * implementation details may vary. In WebGL, it uses HTMLImageElement and - * HTMLCanvasElement for textures, while in WebGPU, it uses HTMLImageElement, - * HTMLCanvasElement, and ImageBitmap. - */ -export declare const vtkTexture: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkTexture; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Texture.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Texture.js deleted file mode 100644 index 9871af2b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Texture.js +++ /dev/null @@ -1,333 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -/* eslint-disable no-bitwise */ - -// ---------------------------------------------------------------------------- -// vtkTexture methods -// ---------------------------------------------------------------------------- - -function vtkTexture(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkTexture'); - publicAPI.imageLoaded = () => { - model.image.removeEventListener('load', publicAPI.imageLoaded); - model.imageLoaded = true; - publicAPI.modified(); - }; - publicAPI.setJsImageData = imageData => { - if (model.jsImageData === imageData) { - return; - } - - // clear other entries - if (imageData !== null) { - publicAPI.setInputData(null); - publicAPI.setInputConnection(null); - model.image = null; - model.canvas = null; - model.imageBitmap = null; - } - model.jsImageData = imageData; - model.imageLoaded = true; - publicAPI.modified(); - }; - publicAPI.setImageBitmap = imageBitmap => { - if (model.imageBitmap === imageBitmap) { - return; - } - - // clear other entries - if (imageBitmap !== null) { - publicAPI.setInputData(null); - publicAPI.setInputConnection(null); - model.image = null; - model.canvas = null; - model.jsImageData = null; - } - model.imageBitmap = imageBitmap; - model.imageLoaded = true; - publicAPI.modified(); - }; - publicAPI.setCanvas = canvas => { - if (model.canvas === canvas) { - return; - } - - // clear other entries - if (canvas !== null) { - publicAPI.setInputData(null); - publicAPI.setInputConnection(null); - model.image = null; - model.imageBitmap = null; - model.jsImageData = null; - } - model.canvas = canvas; - publicAPI.modified(); - }; - publicAPI.setImage = image => { - if (model.image === image) { - return; - } - - // clear other entries - if (image !== null) { - publicAPI.setInputData(null); - publicAPI.setInputConnection(null); - model.canvas = null; - model.jsImageData = null; - model.imageBitmap = null; - } - model.image = image; - model.imageLoaded = false; - if (image.complete) { - publicAPI.imageLoaded(); - } else { - image.addEventListener('load', publicAPI.imageLoaded); - } - publicAPI.modified(); - }; - publicAPI.getDimensionality = () => { - let width = 0; - let height = 0; - let depth = 1; - if (publicAPI.getInputData()) { - const data = publicAPI.getInputData(); - width = data.getDimensions()[0]; - height = data.getDimensions()[1]; - depth = data.getDimensions()[2]; - } - if (model.jsImageData) { - width = model.jsImageData.width; - height = model.jsImageData.height; - } - if (model.canvas) { - width = model.canvas.width; - height = model.canvas.height; - } - if (model.image) { - width = model.image.width; - height = model.image.height; - } - if (model.imageBitmap) { - width = model.imageBitmap.width; - height = model.imageBitmap.height; - } - const dimensionality = (width > 1) + (height > 1) + (depth > 1); - return dimensionality; - }; - publicAPI.getInputAsJsImageData = () => { - if (!model.imageLoaded || publicAPI.getInputData()) return null; - if (model.jsImageData) { - return model.jsImageData; - } - if (model.imageBitmap) { - return model.imageBitmap; - } - if (model.canvas) { - const context = model.canvas.getContext('2d'); - const imageData = context.getImageData(0, 0, model.canvas.width, model.canvas.height); - return imageData; - } - if (model.image) { - const width = model.image.width; - const height = model.image.height; - const canvas = new OffscreenCanvas(width, height); - const context = canvas.getContext('2d'); - context.translate(0, height); - context.scale(1, -1); - context.drawImage(model.image, 0, 0, width, height); - const imageData = context.getImageData(0, 0, width, height); - return imageData; - } - return null; - }; -} - -/** - * Generates mipmaps for a given GPU texture using a compute shader. - * - * This function iteratively generates each mip level for the provided texture, - * using a bilinear downsampling compute shader implemented in WGSL. It creates - * the necessary pipeline, bind groups, and dispatches compute passes for each - * mip level. - * - * @param {GPUDevice} device - The WebGPU device used to create resources and submit commands. - * @param {GPUTexture} texture - The GPU texture for which mipmaps will be generated. Must be created with mip levels. - * @param {number} mipLevelCount - The total number of mip levels to generate (including the base level). - */ -const generateMipmaps = (device, texture, mipLevelCount) => { - const computeShaderCode = ` - @group(0) @binding(0) var inputTexture: texture_2d; - @group(0) @binding(1) var outputTexture: texture_storage_2d; - - @compute @workgroup_size(8, 8) - fn main(@builtin(global_invocation_id) global_id: vec3) { - let texelCoord = vec2(global_id.xy); - let outputSize = textureDimensions(outputTexture); - - if (texelCoord.x >= i32(outputSize.x) || texelCoord.y >= i32(outputSize.y)) { - return; - } - - let inputSize = textureDimensions(inputTexture); - let scale = vec2(inputSize) / vec2(outputSize); - - // Compute the floating-point source coordinate - let srcCoord = (vec2(texelCoord) + 0.5) * scale - 0.5; - - // Get integer coordinates for the four surrounding texels - let x0 = i32(floor(srcCoord.x)); - let x1 = min(x0 + 1, i32(inputSize.x) - 1); - let y0 = i32(floor(srcCoord.y)); - let y1 = min(y0 + 1, i32(inputSize.y) - 1); - - // Compute the weights - let wx = srcCoord.x - f32(x0); - let wy = srcCoord.y - f32(y0); - - // Fetch the four texels - let c00 = textureLoad(inputTexture, vec2(x0, y0), 0); - let c10 = textureLoad(inputTexture, vec2(x1, y0), 0); - let c01 = textureLoad(inputTexture, vec2(x0, y1), 0); - let c11 = textureLoad(inputTexture, vec2(x1, y1), 0); - - // Bilinear interpolation - let color = mix( - mix(c00, c10, wx), - mix(c01, c11, wx), - wy - ); - - textureStore(outputTexture, texelCoord, color); - } - `; - const computeShader = device.createShaderModule({ - code: computeShaderCode - }); - const bindGroupLayout = device.createBindGroupLayout({ - entries: [{ - binding: 0, - // eslint-disable-next-line no-undef - visibility: GPUShaderStage.COMPUTE, - texture: { - sampleType: 'float' - } - }, { - binding: 1, - // eslint-disable-next-line no-undef - visibility: GPUShaderStage.COMPUTE, - storageTexture: { - format: 'rgba8unorm', - access: 'write-only' - } - }, { - binding: 2, - // eslint-disable-next-line no-undef - visibility: GPUShaderStage.COMPUTE, - sampler: { - type: 'filtering' - } - }] - }); - const pipelineLayout = device.createPipelineLayout({ - bindGroupLayouts: [bindGroupLayout] - }); - const pipeline = device.createComputePipeline({ - label: 'ComputeMipmapPipeline', - layout: pipelineLayout, - compute: { - module: computeShader, - entryPoint: 'main' - } - }); - const sampler = device.createSampler({ - magFilter: 'linear', - minFilter: 'linear' - }); - - // Generate each mip level - for (let mipLevel = 1; mipLevel < mipLevelCount; mipLevel++) { - const srcView = texture.createView({ - baseMipLevel: mipLevel - 1, - mipLevelCount: 1 - }); - const dstView = texture.createView({ - baseMipLevel: mipLevel, - mipLevelCount: 1 - }); - const bindGroup = device.createBindGroup({ - layout: pipeline.getBindGroupLayout(0), - entries: [{ - binding: 0, - resource: srcView - }, { - binding: 1, - resource: dstView - }, { - binding: 2, - resource: sampler - }] - }); - const commandEncoder = device.createCommandEncoder({ - label: `MipmapGenerateCommandEncoder` - }); - const computePass = commandEncoder.beginComputePass(); - computePass.setPipeline(pipeline); - computePass.setBindGroup(0, bindGroup); - const mipWidth = Math.max(1, texture.width >> mipLevel); - const mipHeight = Math.max(1, texture.height >> mipLevel); - const workgroupsX = Math.ceil(mipWidth / 8); - const workgroupsY = Math.ceil(mipHeight / 8); - computePass.dispatchWorkgroups(workgroupsX, workgroupsY); - computePass.end(); - device.queue.submit([commandEncoder.finish()]); - } -}; - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - image: null, - canvas: null, - jsImageData: null, - imageBitmap: null, - imageLoaded: false, - repeat: false, - interpolate: false, - edgeClamp: false, - mipLevel: 0, - resizable: false // must be set at construction time if the texture can be resizable -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.algo(publicAPI, model, 6, 0); - macro.get(publicAPI, model, ['canvas', 'image', 'jsImageData', 'imageBitmap', 'imageLoaded', 'resizable']); - macro.setGet(publicAPI, model, ['repeat', 'edgeClamp', 'interpolate', 'mipLevel']); - vtkTexture(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkTexture'); -const STATIC = { - generateMipmaps -}; - -// ---------------------------------------------------------------------------- - -var vtkTexture$1 = { - newInstance, - extend, - ...STATIC -}; - -export { STATIC, vtkTexture$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VectorText.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VectorText.d.ts deleted file mode 100644 index df690e67..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VectorText.d.ts +++ /dev/null @@ -1,183 +0,0 @@ -import { vtkAlgorithm, vtkObject } from './../../interfaces'; -import { Nullable, RGBColor } from './../../types'; - -export interface IVectorTextInitialValues { - fontSize?: number; - text?: string; - depth?: number; - steps?: number; - bevelEnabled?: boolean; - curveSegments?: number; - bevelThickness?: number; - bevelSize?: number; - bevelOffset?: number; - bevelSegments?: number; - font?: any; - earcut?: any; // Earcut module for triangulation - perLetterFaceColors?: (letterIndex: number) => [number, number, number]; -} - -type vtkVectorTextBase = vtkObject & vtkAlgorithm; - -export interface vtkVectorText extends vtkVectorTextBase { - /** - * Returns whether beveling is enabled. - */ - getBevelEnabled(): boolean; - - /** - * Returns the number of segments used for the bevel geometry. - */ - getBevelSegments(): number; - - /** - * Returns the size of the bevel. - */ - getBevelSize(): number; - - /** - * Returns the thickness of the bevel. - */ - getBevelThickness(): number; - - /** - * Returns the offset of the bevel. - */ - getBevelOffset(): number; - - /** - * Returns the number of curve segments used for the text geometry. - */ - getCurveSegments(): number; - - /** - * Returns the extrusion depth of the text. - */ - getDepth(): number; - - /** - * Returns the current font size. - */ - getFontSize(): number; - - /** - * Returns the number of steps used for the text geometry. - */ - getSteps(): number; - - /** - * Returns the current text string. - */ - getText(): string; - - /** - * Gets or sets the per-letter face color function. - * @param fn - Function mapping letter index to [r,g,b] color. - */ - getPerLetterFaceColors(): Nullable<(letterIndex: number) => RGBColor>; - - /** - * Enables or disables beveling. - * @param bevelEnabled - True to enable beveling, false to disable. - */ - setBevelEnabled(bevelEnabled: boolean): boolean; - - /** - * Sets the number of segments used for the bevel geometry. - * @param bevelSegments - The number of bevel segments. - */ - setBevelSegments(bevelSegments: number): boolean; - - /** - * Sets the size of the bevel. - * @param bevelSize - The bevel size. - */ - setBevelSize(bevelSize: number): boolean; - - /** - * Sets the thickness of the bevel. - * @param bevelThickness - The bevel thickness. - */ - setBevelThickness(bevelThickness: number): boolean; - - /** - * Sets the offset of the bevel. - * @param bevelOffset - The bevel offset. - */ - setBevelOffset(bevelOffset: number): boolean; - - /** - * Sets the number of curve segments used for the text geometry. - * @param curveSegments - The number of curve segments. - */ - setCurveSegments(curveSegments: number): boolean; - - /** - * Sets the extrusion depth of the text. - * @param depth - The new depth value. - */ - setDepth(depth: number): boolean; - - /** - * Sets the font object used for rendering the text. - * This should be a parsed font object from opentype.js. - * @param font - The font object. - */ - setFont(font: any): boolean; - - /** - * Sets the font size. - * @param fontSize - The new font size. - */ - setFontSize(fontSize: number): boolean; - - /** - * Sets the number of steps used for the text geometry. - * @param steps - The number of steps. - */ - setSteps(steps: number): boolean; - - /** - * Sets the text string. - * @param text - The new text to display. - */ - setText(text: string): boolean; - - /** - * Sets the per-letter face color function. - * @param fn - Function mapping letter index to [r,g,b] color. - */ - setPerLetterFaceColors(fn: (letterIndex: number) => RGBColor): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkVectorText characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IVectorTextInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IVectorTextInitialValues -): void; - -/** - * Method use to create a new instance of vtkVectorText - * @param {IVectorTextInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IVectorTextInitialValues -): vtkVectorText; - -/** - * vtkVectorText generates vtkPolyData from an input string. - * The TTF file needs to be parsed using opentype.js and then passed to - * vtkVectorText via the setFont method. - */ -export declare const vtkVectorText: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkVectorText; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VectorText.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VectorText.js deleted file mode 100644 index c163cbab..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VectorText.js +++ /dev/null @@ -1,398 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { s as subtract } from '../../Common/Core/Math/index.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import { isClockWise, getBoundingSize, triangulateShape, computeBevelVector, scalePoint, buildLidFaces, buildSideFaces, createShapePath } from './VectorText/Utils.js'; - -const { - vtkErrorMacro, - vtkWarningMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkVectorText methods -// ---------------------------------------------------------------------------- - -function vtkVectorText(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkVectorText'); - - // ------------------------------------------------------------------------- - // Private methods - // ------------------------------------------------------------------------- - - /** - * Process a shape into 3D geometry - * @param {Object} shape - The shape to process - * @param {Array} offsetSize - The offset size for positioning the shape - * @param {Array} letterColor - The color for the shape - */ - function addShape(shape, offsetSize, letterColor) { - // extract contour + holes, offset them - const curveSegments = model.curveSegments; - const steps = model.steps; - const depth = model.depth; - - // Calculate bevel parameters - const bevelEnabled = model.bevelEnabled; - let bevelThickness = model.bevelThickness; - let bevelSize = bevelThickness - 0.1; - let bevelOffset = model.bevelOffset; - let bevelSegments = model.bevelSegments; - if (!bevelEnabled) { - bevelSegments = 0; - bevelThickness = 0; - bevelSize = 0; - bevelOffset = 0; - } - - // Extract points from shape - const shapePoints = shape.extractPoints(curveSegments); - let vertices = shapePoints.shape; - const holes = shapePoints.holes; - - // Offset points to the correct position - vertices.forEach(p => { - p[0] += offsetSize[0]; - p[1] += offsetSize[1]; - }); - holes.forEach(hole => { - hole.forEach(p => { - p[0] += offsetSize[0]; - p[1] += offsetSize[1]; - }); - }); - - // Check if we have enough points to create a shape - if (vertices.length < 3) { - vtkWarningMacro('Not enough points to create a shape'); - return; - } - - // Triangulate the shape - const faces = triangulateShape(model.earcut, vertices, holes); - const contour = vertices; - - // Combine all vertices (contour and holes) - vertices = [...vertices, ...holes.flat()]; - const vlen = vertices.length; - - // Calculate bevel vectors for the contour - const contourMovements = []; - for (let i = 0, j = contour.length - 1, k = i + 1; i < contour.length; i++, j++, k++) { - if (j === contour.length) j = 0; - if (k === contour.length) k = 0; - contourMovements[i] = computeBevelVector(contour[i], contour[j], contour[k]); - } - - // Calculate bevel vectors for the holes - const holesMovements = []; - let oneHoleMovements; - let verticesMovements = [...contourMovements]; - for (let h = 0, hl = holes.length; h < hl; h++) { - const ahole = holes[h]; - oneHoleMovements = []; - for (let i = 0, j = ahole.length - 1, k = i + 1; i < ahole.length; i++, j++, k++) { - if (j === ahole.length) j = 0; - if (k === ahole.length) k = 0; - oneHoleMovements[i] = computeBevelVector(ahole[i], ahole[j], ahole[k]); - } - holesMovements.push(oneHoleMovements); - verticesMovements = [...verticesMovements, ...oneHoleMovements]; - } - - // Generate all the layers of points - const layers = []; - - // Bottom bevel layers - for (let b = 0; b < bevelSegments; b++) { - const t = b / bevelSegments; - const z = bevelThickness * Math.cos(t * Math.PI / 2); - const bs = bevelSize * Math.sin(t * Math.PI / 2) + bevelOffset; - - // Add points for contour and holes - for (let i = 0; i < contour.length; i++) { - const vert = scalePoint(contour[i], contourMovements[i], bs); - layers.push(vert[0], vert[1], -z + offsetSize[2]); - } - for (let h = 0, hl = holes.length; h < hl; h++) { - const ahole = holes[h]; - oneHoleMovements = holesMovements[h]; - for (let i = 0; i < ahole.length; i++) { - const vert = scalePoint(ahole[i], oneHoleMovements[i], bs); - layers.push(vert[0], vert[1], -z + offsetSize[2]); - } - } - } - - // Base layer (z=0) - const bs = bevelSize + bevelOffset; - for (let i = 0; i < vlen; i++) { - const vert = bevelEnabled ? scalePoint(vertices[i], verticesMovements[i], bs) : vertices[i]; - layers.push(vert[0], vert[1], 0 + offsetSize[2]); - } - - // Middle layers - for (let s = 1; s <= steps; s++) { - for (let i = 0; i < vlen; i++) { - const vert = bevelEnabled ? scalePoint(vertices[i], verticesMovements[i], bs) : vertices[i]; - layers.push(vert[0], vert[1], depth / steps * s + offsetSize[2]); - } - } - - // Top bevel layers - for (let b = bevelSegments - 1; b >= 0; b--) { - const t = b / bevelSegments; - const z = bevelThickness * Math.cos(t * Math.PI / 2); - const topBevelSize = bevelSize * Math.sin(t * Math.PI / 2) + bevelOffset; - for (let i = 0, il = contour.length; i < il; i++) { - const vert = scalePoint(contour[i], contourMovements[i], topBevelSize); - layers.push(vert[0], vert[1], depth + z + offsetSize[2]); - } - for (let h = 0, hl = holes.length; h < hl; h++) { - const ahole = holes[h]; - oneHoleMovements = holesMovements[h]; - for (let i = 0, il = ahole.length; i < il; i++) { - const vert = scalePoint(ahole[i], oneHoleMovements[i], topBevelSize); - layers.push(vert[0], vert[1], depth + z + offsetSize[2]); - } - } - } - - // Build all the faces - buildLidFaces(layers, faces, vlen, steps, bevelEnabled, bevelSegments, model.verticesArray, model.uvArray, model.colorArray, letterColor); - buildSideFaces(layers, contour, holes, vlen, steps, bevelSegments, model.verticesArray, model.uvArray, model.colorArray, letterColor); - } - - /** - * Creates shape paths from the font and text - */ - function buildShape() { - model.shapes = []; - if (!model.font || !model.text) { - return; - } - const path = model.font.getPath(model.text, 0, 0, model.fontSize); - if (!path || !path.commands || !path.commands.length) { - return; - } - let first; - let shapePath = createShapePath(); - const commands = path.commands; - for (let i = 0; i < commands.length; i++) { - const command = commands[i]; - - // start a fresh shape if the previous one was closed - shapePath = shapePath || createShapePath(); - switch (command.type) { - case 'M': - // Move to - shapePath.moveTo(command.x, -command.y); - first = command; - break; - case 'L': - // Line to - shapePath.lineTo(command.x, -command.y); - break; - case 'C': - // Cubic bezier curve - shapePath.bezierCurveTo(command.x1, -command.y1, command.x2, -command.y2, command.x, -command.y); - break; - case 'Q': - // Quadratic bezier curve - shapePath.quadraticCurveTo(command.x1, -command.y1, command.x, -command.y); - break; - case 'Z': - // Close path - // Close the contour - shapePath.lineTo(first.x, -first.y); - - // Determine if this path is a clockwise contour (shape) or a counter-clockwise hole - if (isClockWise(shapePath.getPoints(1))) { - model.shapes.push(shapePath); - } else { - // Find which shape this hole belongs to - for (let j = 0; j < model.shapes.length; j++) { - const shape = model.shapes[j]; - if (shape.isIntersect(shapePath)) { - shape.holes.push(shapePath); - break; - } - } - } - - // Mark for restart on next iteration - shapePath = null; - break; - default: - console.warn(`Unknown path command: ${command.type}`); - break; - } - } - - // If there's an unclosed shape, add it - if (shapePath) { - model.shapes.push(shapePath); - } - } - - /** - * Creates a vtkPolyData from the processed shapes - * @returns {Object} vtkPolyData instance - */ - function buildPolyData(polyData) { - model.verticesArray = []; - model.uvArray = []; - model.colorArray = []; - const cells = vtkCellArray.newInstance(); - const pointData = polyData.getPointData(); - - // Calculate the bounding box to center the text - const boundingSize = getBoundingSize(model.shapes, model.depth, model.curveSegments); - const offsetSize = [0, 0, 0]; - subtract(boundingSize.min, boundingSize.max, offsetSize); - - // Process each shape - let letterIndex = 0; - model.shapes.forEach(shape => { - let color = null; - if (model.perLetterFaceColors) { - color = model.perLetterFaceColors(letterIndex) || [1, 1, 1]; - } - addShape(shape, offsetSize, color); - letterIndex++; - }); - - // Create triangle indices - const vertexCount = model.verticesArray.length / 3; - const indices = []; - - // Generate indices for triangles - for (let i = 0; i < vertexCount; i += 3) { - indices.push(i, i + 2, i + 1); - } - - // Create cells for polydata - const cellSize = indices.length; - cells.resize(cellSize + cellSize / 3); // Allocate space for cells (+1 for size per cell) - - // Add triangles to cells - for (let i = 0; i < indices.length; i += 3) { - cells.insertNextCell([indices[i], indices[i + 1], indices[i + 2]]); - } - polyData.setPolys(cells); - - // Set points (vertices) - polyData.getPoints().setData(Float32Array.from(model.verticesArray), 3); - - // Set texture coordinates - const da = vtkDataArray.newInstance({ - numberOfComponents: 2, - values: Float32Array.from(model.uvArray), - name: 'TEXCOORD_0' - }); - pointData.addArray(da); - pointData.setActiveTCoords(da.getName()); - - // Set color array if present - if (model.colorArray && model.colorArray.length) { - const ca = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: Uint8Array.from(model.colorArray), - name: 'Colors' - }); - pointData.addArray(ca); - pointData.setActiveScalars(ca.getName()); - } - return polyData; - } - - // ------------------------------------------------------------------------- - // Public methods - // ------------------------------------------------------------------------- - - /** - * Handles the request to generate vector text data - * @param {Object} inData - Input data (not used) - * @param {Object} outData - Output data target - */ - publicAPI.requestData = (inData, outData) => { - if (!model.font) { - vtkErrorMacro('Font object not set, make sure the TTF file is parsed using opentype.js.'); - return; - } - if (!model.text) { - vtkErrorMacro('Text not set. Cannot generate vector text.'); - return; - } - buildShape(); - const polyData = outData[0]?.initialize() || vtkPolyData.newInstance(); - buildPolyData(polyData); - outData[0] = polyData; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -/** - * Default values for the VectorText model - * shapes: Array to store shape paths - * verticesArray: Array of vertex coordinates - * uvArray: Array of texture coordinates - * font: Font object (from opentype.js) - * earcut: Earcut module for triangulation - * fontSize: Font size in points - * depth: Depth of the extruded text - * steps: Number of steps in extrusion (for curved surfaces) - * bevelEnabled: Whether to add beveled edges - * curveSegments: Number of segments for curved paths - * bevelThickness: Thickness of the bevel - * bevelSize: Size of the bevel - * bevelOffset: Offset of the bevel - * bevelSegments: Number of segments in the bevel - * text: The text to render - * perLetterFaceColors: Function to get per-letter face colors - */ -const DEFAULT_VALUES = { - shapes: [], - verticesArray: [], - uvArray: [], - font: null, - earcut: null, - // Earcut module for triangulation - fontSize: 10, - depth: 1, - steps: 1, - bevelEnabled: false, - curveSegments: 12, - bevelThickness: 0.2, - bevelSize: 0.1, - bevelOffset: 0, - bevelSegments: 1, - text: null, - perLetterFaceColors: null // (letterIndex: number) => [r,g,b] -}; - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.algo(publicAPI, model, 0, 1); - - // Build VTK API with automatic getters/setters - macro.setGet(publicAPI, model, ['fontSize', 'text', 'depth', 'steps', 'bevelEnabled', 'curveSegments', 'bevelThickness', 'bevelSize', 'bevelOffset', 'bevelSegments', 'perLetterFaceColors']); - macro.set(publicAPI, model, ['font']); - vtkVectorText(publicAPI, model); -} -const newInstance = macro.newInstance(extend, 'vtkVectorText'); -var vtkVector = { - newInstance, - extend -}; - -export { vtkVector as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VectorText/Utils.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VectorText/Utils.js deleted file mode 100644 index e692e6c0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VectorText/Utils.js +++ /dev/null @@ -1,520 +0,0 @@ -import { E as areEquals } from '../../../Common/Core/Math/index.js'; - -/** - * Computes UV coordinates for top/bottom faces - * @param {Array} vertices - The vertices array - * @param {Number} iA - First index - * @param {Number} iB - Second index - * @param {Number} iC - Third index - * @returns {Array} Array of UV coordinates - */ -function computeFacesUV(vertices, iA, iB, iC) { - const ax = vertices[iA * 3]; - const ay = vertices[iA * 3 + 1]; - const bx = vertices[iB * 3]; - const by = vertices[iB * 3 + 1]; - const cx = vertices[iC * 3]; - const cy = vertices[iC * 3 + 1]; - return [[ax, ay], [bx, by], [cx, cy]]; -} - -/** - * Computes UV coordinates for side walls - * @param {Array} vertices - The vertices array - * @param {Number} iA - First index - * @param {Number} iB - Second index - * @param {Number} iC - Third index - * @param {Number} iD - Fourth index - * @returns {Array} Array of UV coordinates - */ -function computeSidesUV(vertices, iA, iB, iC, iD) { - const ax = vertices[iA * 3]; - const ay = vertices[iA * 3 + 1]; - const az = vertices[iA * 3 + 2]; - const bx = vertices[iB * 3]; - const by = vertices[iB * 3 + 1]; - const bz = vertices[iB * 3 + 2]; - const cx = vertices[iC * 3]; - const cy = vertices[iC * 3 + 1]; - const cz = vertices[iC * 3 + 2]; - const dx = vertices[iD * 3]; - const dy = vertices[iD * 3 + 1]; - const dz = vertices[iD * 3 + 2]; - - // Determine the best UV mapping direction based on geometry - if (Math.abs(ay - by) < Math.abs(ax - bx)) { - return [[ax, 1 - az], [bx, 1 - bz], [cx, 1 - cz], [dx, 1 - dz]]; - } - return [[ay, 1 - az], [by, 1 - bz], [cy, 1 - cz], [dy, 1 - dz]]; -} - -/** - * Creates a shape path object with methods for path operations - * @returns {Object} A shape path object with methods for manipulating paths - */ -function createShapePath() { - const curves = []; - const currentPoint = [0, 0]; - const holes = []; - return { - curves, - currentPoint, - holes, - moveTo(x, y) { - currentPoint[0] = x; - currentPoint[1] = y; - }, - lineTo(x, y) { - const start = [...currentPoint]; - const end = [x, y]; - curves.push({ - curveType: 'LineCurve', - start, - end, - getPointAt(t) { - return [start[0] + t * (end[0] - start[0]), start[1] + t * (end[1] - start[1])]; - }, - getPoints(resolution) { - const points = []; - for (let i = 0; i <= resolution; i++) { - points.push(this.getPointAt(i / resolution)); - } - return points; - } - }); - currentPoint[0] = x; - currentPoint[1] = y; - }, - quadraticCurveTo(cpX, cpY, x, y) { - const start = [...currentPoint]; - const end = [x, y]; - const cp = [cpX, cpY]; - curves.push({ - curveType: 'QuadraticBezierCurve', - cp, - start, - end, - getPointAt(t) { - const oneMinusT = 1 - t; - return [oneMinusT * oneMinusT * start[0] + 2 * oneMinusT * t * cp[0] + t * t * end[0], oneMinusT * oneMinusT * start[1] + 2 * oneMinusT * t * cp[1] + t * t * end[1]]; - }, - getPoints(resolution) { - const points = []; - for (let i = 0; i <= resolution; i++) { - points.push(this.getPointAt(i / resolution)); - } - return points; - } - }); - currentPoint[0] = x; - currentPoint[1] = y; - }, - bezierCurveTo(cp1X, cp1Y, cp2X, cp2Y, x, y) { - const start = [...currentPoint]; - const end = [x, y]; - const cp1 = [cp1X, cp1Y]; - const cp2 = [cp2X, cp2Y]; - curves.push({ - curveType: 'BezierCurve', - cp1, - cp2, - start, - end, - getPointAt(t) { - const oneMinusT = 1 - t; - return [oneMinusT * oneMinusT * oneMinusT * start[0] + 3 * oneMinusT * oneMinusT * t * cp1[0] + 3 * oneMinusT * t * t * cp2[0] + t * t * t * end[0], oneMinusT * oneMinusT * oneMinusT * start[1] + 3 * oneMinusT * oneMinusT * t * cp1[1] + 3 * oneMinusT * t * t * cp2[1] + t * t * t * end[1]]; - }, - getPoints(resolution) { - const points = []; - for (let i = 0; i <= resolution; i++) { - points.push(this.getPointAt(i / resolution)); - } - return points; - } - }); - currentPoint[0] = x; - currentPoint[1] = y; - }, - /** - * Get points from the shape - * @param {*} divisions - * @returns - */ - getPoints(divisions) { - let last; - const points = []; - for (let i = 0; i < curves.length; i++) { - const curve = curves[i]; - let resolution = divisions; - if (curve.curveType === 'EllipseCurve') { - resolution = divisions * 2; - } else if (curve.curveType === 'LineCurve') { - resolution = 1; - } - const pts = curve.getPoints(resolution); - for (let j = 0; j < pts.length; j++) { - const point = pts[j]; - // eslint-disable-next-line no-continue - if (last && areEquals(last, point)) continue; - points.push(point); - last = point; - } - } - return points; - }, - /** - * Extract points from the shape - * @param {*} divisions - * @returns - */ - extractPoints(divisions) { - const points = this.getPoints(divisions); - const holesPoints = this.holes.map(hole => hole.getPoints(divisions)); - return { - shape: points, - holes: holesPoints - }; - }, - /** - * Defines if a given point is inside the polygon defines by the path - * @param {*} point - * @param {*} polygon - * @returns {boolean} - */ - isPointInside(point, polygon) { - const x = point[0]; - const y = point[1]; - let isInside = false; - for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) { - const xi = polygon[i][0]; - const yi = polygon[i][1]; - const xj = polygon[j][0]; - const yj = polygon[j][1]; - const intersect = yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi; - if (intersect) isInside = !isInside; - } - return isInside; - }, - isIntersect(path) { - const pathA = this.getPoints(1, curves, false); - const pathB = path.getPoints(1); - return this.isPointInside(pathB[0], pathA); - } - }; -} - -/** - * Calculates the bounding box size for a set of shapes - * @param {Array} shapes - Array of shape objects - * @param {Number} depth - Depth of the 3D text - * @param {Number} curveSegments - Number of segments for curved paths - * @returns {Object} Object with min and max point coordinates - */ -function getBoundingSize(shapes, depth, curveSegments) { - const minPoint = [Infinity, Infinity, depth > 0 ? 0 : depth]; - const maxPoint = [-Infinity, -Infinity, depth < 0 ? 0 : depth]; - for (let i = 0; i < shapes.length; i++) { - const shape = shapes[i]; - const shapePoints = shape.extractPoints(curveSegments); - for (let j = 0; j < shapePoints.shape.length; j++) { - const p = shapePoints.shape[j]; - if (p[0] < minPoint[0]) minPoint[0] = p[0]; - if (p[1] < minPoint[1]) minPoint[1] = p[1]; - if (p[0] > maxPoint[0]) maxPoint[0] = p[0]; - if (p[1] > maxPoint[1]) maxPoint[1] = p[1]; - } - } - return { - min: minPoint, - max: maxPoint - }; -} - -/** - * Removes duplicate end points in a points array - * @param {Array} points - Array of points - */ -function removeDupEndPoints(points) { - const l = points.length; - const isEqual = areEquals(points[l - 1], points[0]); - if (l > 2 && isEqual) { - points.pop(); - } -} - -/** - * Checks if the points are in a clockwise order - * @param {Array} points - Array of points [x, y] - * @returns {Boolean} True if points are in clockwise order - */ -function isClockWise(points) { - let sum = 0.0; - const n = points.length; - for (let p = n - 1, q = 0; q < n; p = q++) { - sum += points[p][0] * points[q][1] - points[q][0] * points[p][1]; - } - // Positive signed area means counter-clockwise, so return true if area is negative - return sum * 0.5 < 0; -} - -/** - * Computes the bevel vector for a point in a shape. - * @param {Array} pt - Current point [x, y] - * @param {Array} prev - Previous point [x, y] - * @param {Array} next - Next point [x, y] - * @returns {Array} Normalized bevel vector [x, y] - */ -function computeBevelVector(pt, prev, next) { - const vPrevX = pt[0] - prev[0]; - const vPrevY = pt[1] - prev[1]; - const vNextX = next[0] - pt[0]; - const vNextY = next[1] - pt[1]; - - // Check collinearity - const cross = vPrevX * vNextY - vPrevY * vNextX; - let tx; - let ty; - let shrinkBy; - if (Math.abs(cross) > Number.EPSILON) { - // non‐collinear - const lenPrev = Math.hypot(vPrevX, vPrevY); - const lenNext = Math.hypot(vNextX, vNextY); - - // shift prev and next perpendicular to themselves - const prevShiftX = prev[0] - vPrevY / lenPrev; - const prevShiftY = prev[1] + vPrevX / lenPrev; - const nextShiftX = next[0] - vNextY / lenNext; - const nextShiftY = next[1] + vNextX / lenNext; - - // intersection factor - const sf = ((nextShiftX - prevShiftX) * vNextY - (nextShiftY - prevShiftY) * vNextX) / (vPrevX * vNextY - vPrevY * vNextX); - tx = prevShiftX + vPrevX * sf - pt[0]; - ty = prevShiftY + vPrevY * sf - pt[1]; - const lensq = tx * tx + ty * ty; - if (lensq <= 2) { - return [tx, ty]; - } - shrinkBy = Math.sqrt(lensq / 2); - } else { - // collinear or opposing - const sameDir = vPrevX > 0 && vNextX > 0 || vPrevX < 0 && vNextX < 0 || Math.sign(vPrevY) === Math.sign(vNextY); - if (sameDir) { - // perpendicular to prev - tx = -vPrevY; - ty = vPrevX; - shrinkBy = Math.hypot(vPrevX, vPrevY); - } else { - // just offset along prev - tx = vPrevX; - ty = vPrevY; - shrinkBy = Math.sqrt((vPrevX * vPrevX + vPrevY * vPrevY) / 2); - } - } - return [tx / shrinkBy, ty / shrinkBy]; -} - -/** - * Triangulates a shape with holes - * @param {Array} contour - Array of contour points - * @param {Array} holes - Array of hole paths - * @returns {Array} Array of triangle faces as arrays of indices - */ -function triangulateShape(earcut, contour, holes) { - const faces = []; - const vertices = []; - const holeIndices = []; - removeDupEndPoints(contour); - for (let i = 0; i < contour.length; i++) { - vertices.push(contour[i][0], contour[i][1]); - } - let holeIndex = contour.length; - holes.forEach(removeDupEndPoints); - for (let i = 0; i < holes.length; i++) { - holeIndices.push(holeIndex); - const hole = holes[i]; - holeIndex += hole.length; - for (let j = 0; j < hole.length; j++) { - vertices.push(hole[j][0], hole[j][1]); - } - } - const triangles = earcut(vertices, holeIndices); - for (let i = 0; i < triangles.length; i += 3) { - faces.push(triangles.slice(i, i + 3)); - } - return faces; -} - -/** - * Scales a point along a vector - * @param {Array} pt - Point to scale [x, y] - * @param {Array} vec - Direction vector [x, y] - * @param {Number} size - Scale amount - * @returns {Array} Scaled point [x, y] - */ -function scalePoint(pt, vec, size) { - const rt = [pt[0], pt[1]]; - rt[0] += vec[0] * size; - rt[1] += vec[1] * size; - return rt; -} - -/** - * Creates triangle faces with specified indices - * @param {Array} layers - The layers array with vertex positions - * @param {Number} a - First index - * @param {Number} b - Second index - * @param {Number} c - Third index - * @param {Array} verticesArray - The output vertices array - * @param {Array} uvArray - The output UV array - * @param {Array} colorArray - The output color array - * @param {Array} color - The color [r, g, b] - * @param {Boolean} perFaceUV - Flag for per-face UV mapping - * @param {Number} faceIndex - Index of the face for UV mapping - */ -function addTriangle(layers, a, b, c, verticesArray, uvArray, colorArray, color) { - const tri = [a, c, b]; - tri.forEach(i => { - verticesArray.push(layers[i * 3], layers[i * 3 + 1], layers[i * 3 + 2]); - }); - const nextIndex = verticesArray.length / 3; - const uvs = computeFacesUV(verticesArray, nextIndex - 3, nextIndex - 2, nextIndex - 1); - - // Add each UV coordinate pair to the array - uvs.forEach(uv => { - uvArray.push(uv[0], uv[1]); - }); - if (colorArray && color) { - for (let i = 0; i < 3; ++i) colorArray.push(color[0] * 255, color[1] * 255, color[2] * 255); - } -} - -/** - * Creates quad faces with specified indices - * @param {Array} layers - The layers array with vertex positions - * @param {Number} a - First index - * @param {Number} b - Second index - * @param {Number} c - Third index - * @param {Number} d - Fourth index - * @param {Array} verticesArray - The output vertices array - * @param {Array} uvArray - The output UV array - * @param {Array} colorArray - The output color array - * @param {Array} color - The color [r, g, b] - */ -function addQuad(layers, a, b, c, d, verticesArray, uvArray, colorArray, color) { - const quad = [a, d, b, b, d, c]; - quad.forEach(i => verticesArray.push(layers[i * 3], layers[i * 3 + 1], layers[i * 3 + 2])); - const nextIndex = verticesArray.length / 3; - const uvs = computeSidesUV(verticesArray, nextIndex - 6, nextIndex - 3, nextIndex - 2, nextIndex - 1); - - // UV coordinates for both triangles of the quad - // First triangle - uvArray.push(uvs[0][0], uvs[0][1]); - uvArray.push(uvs[1][0], uvs[1][1]); - uvArray.push(uvs[3][0], uvs[3][1]); - - // Second triangle - uvArray.push(uvs[1][0], uvs[1][1]); - uvArray.push(uvs[2][0], uvs[2][1]); - uvArray.push(uvs[3][0], uvs[3][1]); - if (colorArray && color) { - for (let i = 0; i < 6; ++i) colorArray.push(color[0] * 255, color[1] * 255, color[2] * 255); - } -} - -/** - * Creates the faces for the top and bottom of the 3D text - * @param {Array} layers - The layers array with vertex positions - * @param {Array} faces - The triangulated faces - * @param {Number} vlen - The number of vertices - * @param {Number} steps - The number of steps - * @param {Boolean} bevelEnabled - Whether bevel is enabled - * @param {Number} bevelSegments - Number of bevel segments - * @param {Array} verticesArray - The output vertices array - * @param {Array} uvArray - The output UV array - */ -function buildLidFaces(layers, faces, vlen, steps, bevelEnabled, bevelSegments, verticesArray, uvArray, colorArray, color) { - if (bevelEnabled) { - let layer = 0; - let offset = vlen * layer; // Bottom faces - faces.forEach(_ref => { - let [a, b, c] = _ref; - addTriangle(layers, c + offset, b + offset, a + offset, verticesArray, uvArray, colorArray, color); - }); - layer = steps + bevelSegments * 2; - offset = vlen * layer; - - // Top faces - faces.forEach(_ref2 => { - let [a, b, c] = _ref2; - addTriangle(layers, a + offset, b + offset, c + offset, verticesArray, uvArray, colorArray, color); - }); - } else { - // Bottom faces - faces.forEach(_ref3 => { - let [a, b, c] = _ref3; - addTriangle(layers, c, b, a, verticesArray, uvArray, colorArray, color); - }); - - // Top faces - const offset = vlen * steps; - faces.forEach(_ref4 => { - let [a, b, c] = _ref4; - addTriangle(layers, a + offset, b + offset, c + offset, verticesArray, uvArray, colorArray, color); - }); - } -} - -/** - * Creates side walls for contour or hole - * @param {Array} layers - The layers array - * @param {Array} contour - The contour points - * @param {Number} layerOffset - Offset for the layer - * @param {Number} vlen - The number of vertices - * @param {Number} steps - The number of steps - * @param {Number} bevelSegments - The number of bevel segments - * @param {Array} verticesArray - The output vertices array - * @param {Array} uvArray - The output UV array - */ -function buildWalls(layers, contour, layerOffset, vlen, steps, bevelSegments, verticesArray, uvArray, colorArray, color) { - const totalLayers = steps + bevelSegments * 2; - for (let i = 0; i < contour.length; i++) { - const j = i; - const k = i === 0 ? contour.length - 1 : i - 1; - for (let s = 0; s < totalLayers; s++) { - const slen1 = vlen * s; - const slen2 = vlen * (s + 1); - const a = layerOffset + j + slen1; - const b = layerOffset + k + slen1; - const c = layerOffset + k + slen2; - const d = layerOffset + j + slen2; - addQuad(layers, a, b, c, d, verticesArray, uvArray, colorArray, color); - } - } -} - -/** - * Builds the side faces of the 3D text - * @param {Array} layers - The layers array - * @param {Array} contour - The contour points - * @param {Array} holes - The holes - * @param {Number} vlen - The number of vertices - * @param {Number} steps - The number of steps - * @param {Number} bevelSegments - The number of bevel segments - * @param {Array} verticesArray - The output vertices array - * @param {Array} uvArray - The output UV array - */ -function buildSideFaces(layers, contour, holes, vlen, steps, bevelSegments, verticesArray, uvArray, colorArray, color) { - let layerOffset = 0; - // Create contour walls - buildWalls(layers, contour, layerOffset, vlen, steps, bevelSegments, verticesArray, uvArray, colorArray, color); - layerOffset += contour.length; - - // Create hole walls - for (let i = 0; i < holes.length; i++) { - const ahole = holes[i]; - buildWalls(layers, ahole, layerOffset, vlen, steps, bevelSegments, verticesArray, uvArray, colorArray, color); - layerOffset += ahole.length; - } -} - -export { addQuad, addTriangle, buildLidFaces, buildSideFaces, buildWalls, computeBevelVector, computeFacesUV, computeSidesUV, createShapePath, getBoundingSize, isClockWise, scalePoint, triangulateShape }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Viewport.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Viewport.d.ts deleted file mode 100644 index 7789ec1c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Viewport.d.ts +++ /dev/null @@ -1,270 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { RGBColor, Size } from './../../types'; -import vtkActor2D from './Actor2D'; -import vtkProp from './Prop'; - -export interface IViewportInitialValues { - background?: RGBColor; - background2?: RGBColor; - gradientBackground?: boolean; - viewport?: number[]; - aspect?: number[]; - pixelAspect?: number[]; - props?: vtkProp[]; - actors2D?: vtkActor2D[]; -} - -export interface vtkViewport extends vtkObject { - /** - * Adds a 2D actor to the scene. - * @param prop - */ - addActor2D(prop: vtkActor2D): void; - - /** - * Add a prop to the list of props. - * @param prop - */ - addViewProp(prop: vtkProp): void; - - /** - * Convert display coordinates to view coordinates. - */ - displayToView(): any; - - /** - * - */ - getActors2D(): vtkActor2D[]; - - /** - * - */ - getBackground2(): number[]; - - /** - * - */ - getBackground2ByReference(): number[]; - - /** - * - */ - getBackground(): number[]; - - /** - * - */ - getBackgroundByReference(): number[]; - - /** - * - */ - getSize(): Size; - - /** - * Viewport for the Viewport to draw in the rendering window. - * Coordinates are expressed as (xmin,ymin,xmax,ymax), where each - * coordinate is 0 <= coordinate <= 1.0. - * @returns {Number[]} - * @see getViewportByReference() - * @see setViewport() - */ - getViewport(): [number, number, number, number]; - - /** - * - */ - getViewportByReference(): [number, number, number, number]; - - /** - * - */ - getViewPropsWithNestedProps(): any; - - /** - * - */ - getViewProps(): vtkProp[]; - - /** - * - * @param prop - */ - hasViewProp(prop: vtkProp): boolean; - - /** - * - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - normalizedDisplayToProjection(x: number, y: number, z: number): number[]; - - /** - * - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - normalizedDisplayToNormalizedViewport(x: number, y: number, z: number): any; - - /** - * - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - normalizedViewportToProjection(x: number, y: number, z: any): number[]; - - /** - * - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - projectionToNormalizedDisplay(x: number, y: number, z: number): number[]; - - /** - * - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - normalizedViewportToNormalizedDisplay( - x: number, - y: number, - z: number - ): number[]; - - /** - * Set the viewport background. - * @param {Number} r Defines the red component (between 0 and 1). - * @param {Number} g Defines the green component (between 0 and 1). - * @param {Number} b Defines the blue component (between 0 and 1). - */ - setBackground(r: number, g: number, b: number): boolean; - - /** - * Set the viewport background. - * @param {Number[]} background The RGB color array. - */ - setBackground(background: number[]): boolean; - - /** - * - * @param {Number} r Defines the red component (between 0 and 1). - * @param {Number} g Defines the green component (between 0 and 1). - * @param {Number} b Defines the blue component (between 0 and 1). - */ - setBackground2(r: number, g: number, b: number): boolean; - - /** - * - * @param {Number[]} background - */ - setBackground2(background: number[]): boolean; - - /** - * - * @param {Number[]} background - */ - setBackground2From(background: number[]): boolean; - - /** - * - * @param {Number[]} background - */ - setBackgroundFrom(background: number[]): boolean; - - /** - * Specify the viewport for the Viewport to draw in the rendering window. - * Each coordinate is 0 <= coordinate <= 1.0. - * @param {Number} xmin The xmin coordinate. - * @param {Number} ymin The ymin coordinate. - * @param {Number} xmax The xmax coordinate. - * @param {Number} ymax The ymax coordinate. - */ - setViewport(xmin: number, ymin: number, xmax: number, ymax: number): boolean; - - /** - * Specify the viewport for the Viewport to draw in the rendering window. - * Coordinates are expressed as [xmin, ymin, xmax, ymax], where each coordinate is 0 <= coordinate <= 1.0. - * @param {Number[]} viewport - */ - setViewportFrom(viewport: number[]): boolean; - - /** - * - * @param prop - */ - removeViewProp(prop: vtkProp): void; - - /** - * - */ - removeAllViewProps(): void; - - /** - * - * @param prop - */ - removeActor2D(prop: vtkProp): void; - - /** - * - */ - viewToDisplay(): any; - - /** - * - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - projectionToNormalizedViewport(x: number, y: number, z: number): number[]; - - /** - * Not Implemented yet - */ - PickPropFrom(): any; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkViewport characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IViewportInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IViewportInitialValues -): void; - -/** - * Method use to create a new instance of vtkViewport - */ -export function newInstance( - initialValues?: IViewportInitialValues -): vtkViewport; - -/** - * vtkViewport represents part or all of a RenderWindow. It holds a - * collection of props that will be rendered into the area it represents. - * This class also contains methods to convert between coordinate systems - * commonly used in rendering. - * - * @see [vtkActor](./Rendering_Core_Actor.html) - * @see [vtkCoordinate](./Rendering_Core_Coordinate.html) - * @see [vtkProp](./Rendering_Core_Prop.html) - * @see [vtkRender](./Rendering_Core_Renderer.html) - * @see [vtkRenderWindow](./Rendering_Core_RenderWindow.html) - * @see [vtkVolume](./Rendering_Core_Volume.html) - */ -export declare const vtkViewport: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkViewport; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Viewport.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Viewport.js deleted file mode 100644 index 3359c7bc..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Viewport.js +++ /dev/null @@ -1,148 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -const { - vtkErrorMacro -} = macro; -function notImplemented(method) { - return () => vtkErrorMacro(`vtkViewport::${method} - NOT IMPLEMENTED`); -} - -// ---------------------------------------------------------------------------- -// vtkViewport methods -// ---------------------------------------------------------------------------- - -function vtkViewport(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkViewport'); - - // Public API methods - publicAPI.getViewProps = () => model.props; - publicAPI.hasViewProp = prop => model.props.includes(prop); - publicAPI.addViewProp = prop => { - if (prop && !publicAPI.hasViewProp(prop)) { - model.props.push(prop); - } - }; - publicAPI.removeViewProp = prop => { - const newPropList = model.props.filter(item => item !== prop); - if (model.props.length !== newPropList.length) { - model.props = newPropList; - } - }; - publicAPI.removeAllViewProps = () => { - model.props = []; - }; - - // this method get all the props including any nested props - function gatherProps(prop) { - let allProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - allProps.push(prop); - const children = prop.getNestedProps(); - if (children && children.length) { - for (let i = 0; i < children.length; i++) { - gatherProps(children[i], allProps); - } - } - return allProps; - } - publicAPI.getViewPropsWithNestedProps = () => { - let allPropsArray = []; - // Handle actor2D instances separately so that they can be overlayed and layered - const actors2D = publicAPI.getActors2D(); - // Sort the actor2D list using its layer number - actors2D.sort((a, b) => a.getLayerNumber() - b.getLayerNumber()); - // Filter out all the actor2D instances - const newPropList = model.props.filter(item => !actors2D.includes(item)); - for (let i = 0; i < newPropList.length; i++) { - gatherProps(newPropList[i], allPropsArray); - } - // Finally, add the actor2D props at the end of the list - // This works because, when traversing the render pass in vtkOpenGLRenderer, the children are - // traversed in the order that they are added to the list - allPropsArray = allPropsArray.concat(actors2D); - return allPropsArray; - }; - publicAPI.addActor2D = publicAPI.addViewProp; - publicAPI.removeActor2D = prop => { - // VTK way: model.actors2D.RemoveItem(prop); - publicAPI.removeViewProp(prop); - }; - publicAPI.getActors2D = () => { - model.actors2D = []; - model.props.forEach(prop => { - model.actors2D = model.actors2D.concat(prop.getActors2D()); - }); - return model.actors2D; - }; - publicAPI.displayToView = () => vtkErrorMacro('call displayToView on your view instead'); - publicAPI.viewToDisplay = () => vtkErrorMacro('callviewtodisplay on your view instead'); - publicAPI.getSize = () => vtkErrorMacro('call getSize on your View instead'); - publicAPI.normalizedDisplayToProjection = (x, y, z) => { - // first to normalized viewport - const nvp = publicAPI.normalizedDisplayToNormalizedViewport(x, y, z); - - // then to view - return publicAPI.normalizedViewportToProjection(nvp[0], nvp[1], nvp[2]); - }; - publicAPI.normalizedDisplayToNormalizedViewport = (x, y, z) => { - const scale = [model.viewport[2] - model.viewport[0], model.viewport[3] - model.viewport[1]]; - return [(x - model.viewport[0]) / scale[0], (y - model.viewport[1]) / scale[1], z]; - }; - publicAPI.normalizedViewportToProjection = (x, y, z) => [x * 2.0 - 1.0, y * 2.0 - 1.0, z * 2.0 - 1.0]; - publicAPI.projectionToNormalizedDisplay = (x, y, z) => { - // first to nvp - const nvp = publicAPI.projectionToNormalizedViewport(x, y, z); - - // then to ndp - return publicAPI.normalizedViewportToNormalizedDisplay(nvp[0], nvp[1], nvp[2]); - }; - publicAPI.normalizedViewportToNormalizedDisplay = (x, y, z) => { - const scale = [model.viewport[2] - model.viewport[0], model.viewport[3] - model.viewport[1]]; - return [x * scale[0] + model.viewport[0], y * scale[1] + model.viewport[1], z]; - }; - publicAPI.projectionToNormalizedViewport = (x, y, z) => [(x + 1.0) * 0.5, (y + 1.0) * 0.5, (z + 1.0) * 0.5]; - publicAPI.PickPropFrom = notImplemented('PickPropFrom'); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // _vtkWindow: null, - background: [0, 0, 0], - background2: [0.2, 0.2, 0.2], - gradientBackground: false, - viewport: [0, 0, 1, 1], - aspect: [1, 1], - pixelAspect: [1, 1], - props: [], - actors2D: [] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.event(publicAPI, model, 'event'); - macro.setGetArray(publicAPI, model, ['viewport'], 4); - macro.setGetArray(publicAPI, model, ['background', 'background2'], 3); - vtkViewport(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkViewport'); - -// ---------------------------------------------------------------------------- - -var vtkViewport$1 = { - newInstance, - extend -}; - -export { vtkViewport$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Volume.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Volume.d.ts deleted file mode 100644 index 07446cd8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Volume.d.ts +++ /dev/null @@ -1,168 +0,0 @@ -import { Bounds, Nullable } from './../../types'; -import vtkProp3D, { IProp3DInitialValues } from './Prop3D'; -import vtkVolumeMapper from './VolumeMapper'; -import vtkVolumeProperty, { - IVolumePropertyInitialValues, -} from './VolumeProperty'; - -/** - * - */ -export interface IVolumeInitialValues extends IProp3DInitialValues { - mapper?: vtkVolumeMapper; - property?: vtkVolumeProperty; - bounds?: Bounds; -} - -/** - * - */ -export interface vtkVolume extends vtkProp3D { - /** - * Get the volume mapper - */ - getMapper(): Nullable; - - /** - * For some exporters and other other operations we must be able to collect - * all the actors or volumes. - */ - getVolumes(): vtkVolume[]; - - /** - * Get the `Modified Time` which is a monotonic increasing integer - * global for all vtkObjects. - * - * This allow to solve a question such as: - * - Is that object created/modified after another one? - * - Do I need to re-execute this filter, or not? ... - * - * @return {Number} the global modified time. - */ - getMTime(): number; - - /** - * Get the mtime of anything that would cause the rendered image to appear - * differently - */ - getRedrawMTime(): number; - - /** - * Create a new property suitable for use with this type of Actor. - * @param {IVolumePropertyInitialValues} [initialValues] (default: {}) - */ - makeProperty(initialValues?: IVolumePropertyInitialValues): vtkVolumeProperty; - - /** - * Set the volume mapper - * @param {vtkVolumeMapper} mapper - */ - setMapper(mapper: vtkVolumeMapper): boolean; - - // Inherited from vtkProp3D, but takes a vtkVolumeProperty instead of a generic vtkObject - getProperty(mapperInputPort?: number): vtkVolumeProperty; - getProperties(): vtkVolumeProperty[]; - setProperty(mapperInputPort: number, property: vtkVolumeProperty): boolean; - setProperty(property: vtkVolumeProperty): boolean; - setProperties(properties: vtkVolumeProperty[]): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkVolume characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IVolumeInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IVolumeInitialValues -): void; - -/** - * Method use to create a new instance of vtkVolume - */ -export function newInstance(initialValues?: IVolumeInitialValues): vtkVolume; - -/** - * vtk-js includes support for volume rendering using hardware GPU acceleration. The - * capabilities may change over time but as of this writing it includes support - * for : - * - * - multi-component data - * - at least 24 bits linear resolution - * - support for all native data types, 16 bit, float, etc - * - opacity transfer functions - * - color transfer functions - * - volume interpolation of nearest, fast linear and linear - * - automatic intermixing of opaque surfaces with volumes - * - * Using volume rendering in vtk-js is very much like using it VTK is you are - * familiar with VTK. The main objects are : - * - * - RenderWindow/Renderer as usual - * - Volume - similar to Actor, holds the property and mapper - * - VolumeMapper - takes an ImageData as input - * - VolumeProperty - holds the opacity and color transfer functions - * - PiecewiseFunction - a piecewise interpolated function, good for opacity - * transfer functions - * - ColorTransferFunction - similar to PiecewiseFunction but support an RGB - * value at each point. - * - * @example - * ```js - * // Load the rendering pieces we want to use (for both WebGL and WebGPU) - * import 'vtk.js/Sources/Rendering/Profiles/Volume'; - * - * import vtkColorTransferFunction from '@kitware/vtk.js/Rendering/Core/ColorTransferFunction'; - * import vtkHttpDataSetReader from '@kitware/vtk.js/IO/Core/HttpDataSetReader'; - * - * import vtkVolume from '@kitware/vtk.js/Rendering/Core/Volume'; - * import vtkVolumeMapper from '@kitware/vtk.js/Rendering/Core/VolumeMapper'; - - * const vol = vtkVolume.newInstance(); - * const mapper = vtkVolumeMapper.newInstance(); - * mapper.setSampleDistance(2.0); - * vol.setMapper(mapper); - * - * const reader = vtkHttpDataSetReader.newInstance({ fetchGzip: true }); - * reader.setUrl(`${__BASE_PATH__}/Data/volume/headsq.vti`).then(() => { - * reader.loadData().then(() => { - * // we wait until the data is loaded before adding - * // the volume to the renderer - * renderer.addVolume(actor); - * renderer.resetCamera(); - * renderWindow.render(); - * }); - * }); - * - * // create color and opacity transfer functions - * const ctfun = vtkColorTransferFunction.newInstance(); - * ctfun.addRGBPoint(200.0, 1.0, 1.0, 1.0); - * ctfun.addRGBPoint(2000.0, 0.0, 0.0, 0.0); - * - * const ofun = vtkPiecewiseFunction.newInstance(); - * ofun.addPoint(200.0, 0.0); - * ofun.addPoint(1200.0, 0.2); - * ofun.addPoint(4000.0, 0.4); - * - * vol.getProperty().setRGBTransferFunction(0, ctfun); - * vol.getProperty().setScalarOpacity(0, ofun); - * vol.getProperty().setScalarOpacityUnitDistance(0, 4.5); - * vol.getProperty().setInterpolationTypeToFastLinear(); - * - * mapper.setInputConnection(reader.getOutputPort()); - * ``` - * - * @see [vtkColorTransferFunction](./Rendering_Core_ColorTransferFunction.html) - * @see [vtkImageData](./Common_DataModel_ImageData.html) - * @see [vtkPiecewiseFunction](./Common_DataModel_PiecewiseFunction.html) - * @see [vtkVolumeMapper](./Rendering_Core_VolumeMapper.html) - * @see [vtkVolumeProperty](./Rendering_Core_VolumeProperty.html) - */ -export declare const vtkVolume: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkVolume; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Volume.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Volume.js deleted file mode 100644 index 925980ff..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/Volume.js +++ /dev/null @@ -1,69 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkProp3D from './Prop3D.js'; -import vtkVolumeProperty from './VolumeProperty.js'; - -// ---------------------------------------------------------------------------- -// vtkVolume methods -// ---------------------------------------------------------------------------- - -function vtkVolume(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkVolume'); - publicAPI.getVolumes = () => [publicAPI]; - publicAPI.makeProperty = vtkVolumeProperty.newInstance; - publicAPI.getRedrawMTime = () => { - let mt = model.mtime; - if (model.mapper !== null) { - let time = model.mapper.getMTime(); - mt = time > mt ? time : mt; - if (model.mapper.getInput() !== null) { - // FIXME !!! getInputAlgorithm / getInput - model.mapper.getInputAlgorithm().update(); - time = model.mapper.getInput().getMTime(); - mt = time > mt ? time : mt; - } - } - return mt; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - mapper: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkProp3D.extend(publicAPI, model, initialValues); - - // vtkTimeStamp - model.boundsMTime = {}; - macro.obj(model.boundsMTime); - - // Build VTK API - macro.setGet(publicAPI, model, ['mapper']); - - // Object methods - vtkVolume(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkVolume'); - -// ---------------------------------------------------------------------------- - -var vtkVolume$1 = { - newInstance, - extend -}; - -export { vtkVolume$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeMapper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeMapper.d.ts deleted file mode 100644 index 150a0d89..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeMapper.d.ts +++ /dev/null @@ -1,298 +0,0 @@ -import { vtkPiecewiseFunction } from './../../Common/DataModel/PiecewiseFunction'; -import { Bounds } from './../../types'; -import { - vtkAbstractMapper3D, - IAbstractMapper3DInitialValues, -} from './AbstractMapper3D'; -import { BlendMode } from './VolumeMapper/Constants'; - -/** - * - */ -export interface IVolumeMapperInitialValues - extends IAbstractMapper3DInitialValues { - autoAdjustSampleDistances?: boolean; - blendMode?: BlendMode; - bounds?: Bounds; - maximumSamplesPerRay?: number; - sampleDistance?: number; - volumeShadowSamplingDistFactor?: number; -} - -export interface vtkVolumeMapper extends vtkAbstractMapper3D { - /** - * Get the bounds for this mapper as [xmin, xmax, ymin, ymax,zmin, zmax]. - * @return {Bounds} The bounds for the mapper. - */ - getBounds(): Bounds; - - /** - * - */ - getBlendMode(): BlendMode; - - /** - * - */ - getBlendModeAsString(): string; - - /** - * Get the distance between samples used for rendering - * @default 1.0 - */ - getSampleDistance(): number; - - /** - * Get the multipler for volume shadow sampling distance - * @default 5.0 - */ - getVolumeShadowSamplingDistFactor(): number; - - /** - * Sampling distance in the XY image dimensions. - * Default value of 1 meaning 1 ray cast per pixel. If set to 0.5, 4 rays will be cast per pixel. - * If set to 2.0, 1 ray will be cast for every 4 (2 by 2) pixels. T - * @default 1.0 - */ - getImageSampleDistance(): number; - - /** - * - * @default 1000 - */ - getMaximumSamplesPerRay(): number; - - /** - * - * @default true - */ - getAutoAdjustSampleDistances(): boolean; - - /** - * Get at what scale the quality is reduced when interacting for the first time with the volume - * It should should be set before any call to render for this volume - * The higher the scale is, the lower the quality of rendering is during interaction - * @default 1 - */ - getInitialInteractionScale(): number; - - /** - * Get by how much the sample distance should be increased when interacting - * This feature is only implemented in the OpenGL volume mapper - * @default 1 - */ - getInteractionSampleDistanceFactor(): number; - - /** - * Set blend mode to COMPOSITE_BLEND - * @param {BlendMode} blendMode - */ - setBlendMode(blendMode: BlendMode): void; - - /** - * Set blend mode to COMPOSITE_BLEND - */ - setBlendModeToComposite(): void; - - /** - * Set blend mode to MAXIMUM_INTENSITY_BLEND - */ - setBlendModeToMaximumIntensity(): void; - - /** - * Set blend mode to MINIMUM_INTENSITY_BLEND - */ - setBlendModeToMinimumIntensity(): void; - - /** - * Set blend mode to AVERAGE_INTENSITY_BLEND - */ - setBlendModeToAverageIntensity(): void; - - /** - * Set blend mode to RADON_TRANSFORM_BLEND - */ - setBlendModeToRadonTransform(): void; - - /** - * Get the distance between samples used for rendering - * @param sampleDistance - */ - setSampleDistance(sampleDistance: number): boolean; - - /** - * Set the multipler for volume shadow sampling distance. This function is only effective when volumeScatterBlendCoef is greater than 0. - * For VSSampleDistanceFactor >= 1.0, volume shadow sampling distance = VSSampleDistanceFactor * SampleDistance. - * @param VSSampleDistanceFactor - */ - setVolumeShadowSamplingDistFactor(VSSampleDistanceFactor: number): void; - - /** - * - * @param imageSampleDistance - */ - setImageSampleDistance(imageSampleDistance: number): boolean; - - /** - * - * @param maximumSamplesPerRay - */ - setMaximumSamplesPerRay(maximumSamplesPerRay: number): boolean; - - /** - * - * @param autoAdjustSampleDistances - */ - setAutoAdjustSampleDistances(autoAdjustSampleDistances: boolean): boolean; - - /** - * - * @param initialInteractionScale - */ - setInitialInteractionScale(initialInteractionScale: number): boolean; - - /** - * - * @param interactionSampleDistanceFactor - */ - setInteractionSampleDistanceFactor( - interactionSampleDistanceFactor: number - ): boolean; - - /** - * - */ - update(): void; - - /** - * Set the opacity texture width. - * - * The default width (1024) should be fine in most instances. - * Only set this property if your opacity function range width is - * larger than 1024. - * - * @param {Number} width the texture width (defaults to 1024) - */ - setOpacityTextureWidth(width: number): boolean; - - /** - * Get the opacity texture width. - */ - getOpacityTextureWidth(): number; - - /** - * Set the color texture width. - * - * The default width (1024) should be fine in most instances. - * Only set this property if your color transfer function range width is - * larger than 1024. - * - * A reasonable max texture size would be either 2048 or 4096, as those - * widths are supported by the vast majority of devices. Any width larger - * than that will have issues with device support. - * - * Specifying a width that is less than or equal to 0 will use the largest - * possible texture width on the device. Use this with caution! The max texture - * width of one device may not be the same for another device. - * - * You can find more information about supported texture widths at the following link: - * https://web3dsurvey.com/webgl/parameters/MAX_TEXTURE_SIZE - * - * @param {Number} width the texture width (defaults to 1024) - */ - setColorTextureWidth(width: number): boolean; - - /** - * Get the color texture width. - */ - getColorTextureWidth(): number; - - /** - * Set the label outline texture width. - * - * The default width (1024) should be fine in most instances. - * Only set this property if you have more than 1024 labels - * that you want to render with thickness. - * - * A reasonable max texture size would be either 2048 or 4096, as those - * widths are supported by the vast majority of devices. Any width larger - * than that will have issues with device support. - * - * Specifying a width that is less than or equal to 0 will use the largest - * possible texture width on the device. Use this with caution! The max texture - * width of one device may not be the same for another device. - * - * You can find more information about supported texture widths at the following link: - * https://web3dsurvey.com/webgl/parameters/MAX_TEXTURE_SIZE - * - * @param {Number} width the texture width (defaults to 1024) - */ - setLabelOutlineTextureWidth(width: number): boolean; - - /** - * Get the label outline texture width. - */ - getLabelOutlineTextureWidth(): number; -} - -/** - * Create an absorption transfer function to set to the mapper when blend mode is RADON. - * The transfer function is a linear ramp between the lowest material with absorption and - * the material with maximum absorption. Voxel values lower than the lowest material with - * absorption will have no absorption associated. Voxel values higher than the maximum - * absorbent material will have the same absorption than the max absorbent material. - * The associated color transfer function is typically black to white between 0 and 1. - * An alternative is to create your own transfer function with HU/absorption pairs. e.g. - * const ofun = vtkPiecewiseFunction.newInstance(); - * ofun.addPointLong(-1000,0, 1, 1); // air, "1, 1)" to flatten the function - * ofun.addPoint(-10, 0.01); // fat - * ofun.addPoint(-10, 0.015); // water - * ofun.addPointLong(1000, 0.03, 1, 1); // bone - * ofun.addPoint(3000, 1); // silver - * @static - * @param {number} firstAbsorbentMaterialHounsfieldValue: Define minimum voxel value (in hounsfield unit) with non zero absorption (e.g. water (0), fat(-10)...). - * Any voxel value lower than this parameter will have no absorption (absorption === 0) - * @param {number} firstAbsorbentMaterialAbsorption: Absorption attributed to voxels with firstAbsorbentMaterialHounsfieldValue (e.g. 0 or 0.01) - * @param {number} maxAbsorbentMaterialHounsfieldValue: Define maximum voxel value (in hounsfield unit) with increasing absorption (e.g. bone (1000)) - * @param {number} maxAbsorbentMaterialAbsorption: Absorption attributed to voxels >= maxAbsorbentMaterialHounsfieldValue (e.g. 0.03) - * @param {vtkPiecewiseFunction} outputTransferFunction: To provide optionally to avoid instantiating a new transfer function each time. - * @return {vtkPiecewiseFunction} the created absorption transfer function to set on VolumeMapper scalarOpacity. - */ -export function createRadonTransferFunction( - firstAbsorbentMaterialHounsfieldValue: number, - firstAbsorbentMaterialAbsorption: number, - maxAbsorbentMaterialHounsfieldValue: number, - maxAbsorbentMaterialAbsorption: number, - outputTransferFunction?: vtkPiecewiseFunction -): vtkPiecewiseFunction; - -/** - * Method use to decorate a given object (publicAPI+model) with vtkVolumeMapper characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IVolumeMapperInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IVolumeMapperInitialValues -): void; - -/** - * Method use to create a new instance of vtkVolumeMapper - */ -export function newInstance( - initialValues?: IVolumeMapperInitialValues -): vtkVolumeMapper; - -/** - * vtkVolumeMapper inherits from vtkMapper. - * A volume mapper that performs ray casting on the GPU using fragment programs. - */ -export declare const vtkVolumeMapper: { - newInstance: typeof newInstance; - extend: typeof extend; - BlendMode: typeof BlendMode; -}; -export default vtkVolumeMapper; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeMapper.js deleted file mode 100644 index 57571fa4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeMapper.js +++ /dev/null @@ -1,126 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import Constants from './VolumeMapper/Constants.js'; -import vtkAbstractMapper3D from './AbstractMapper3D.js'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; -import vtkPiecewiseFunction from '../../Common/DataModel/PiecewiseFunction.js'; - -const { - BlendMode -} = Constants; -function createRadonTransferFunction(firstAbsorbentMaterialHounsfieldValue, firstAbsorbentMaterialAbsorption, maxAbsorbentMaterialHounsfieldValue, maxAbsorbentMaterialAbsorption, outputTransferFunction) { - let ofun = null; - if (outputTransferFunction) { - ofun = outputTransferFunction; - ofun.removeAllPoints(); - } else { - ofun = vtkPiecewiseFunction.newInstance(); - } - ofun.addPointLong(-1024, 0, 1, 1); // air (i.e. material with no absorption) - ofun.addPoint(firstAbsorbentMaterialHounsfieldValue, firstAbsorbentMaterialAbsorption); - ofun.addPoint(maxAbsorbentMaterialHounsfieldValue, maxAbsorbentMaterialAbsorption); - return ofun; -} -const methodNamesMovedToVolumeProperties = ['getAnisotropy', 'getComputeNormalFromOpacity', 'getFilterMode', 'getFilterModeAsString', 'getGlobalIlluminationReach', 'getIpScalarRange', 'getIpScalarRangeByReference', 'getLAOKernelRadius', 'getLAOKernelSize', 'getLocalAmbientOcclusion', 'getPreferSizeOverAccuracy', 'getVolumetricScatteringBlending', 'setAnisotropy', 'setAverageIPScalarRange', 'setComputeNormalFromOpacity', 'setFilterMode', 'setFilterModeToNormalized', 'setFilterModeToOff', 'setFilterModeToRaw', 'setGlobalIlluminationReach', 'setIpScalarRange', 'setIpScalarRangeFrom', 'setLAOKernelRadius', 'setLAOKernelSize', 'setLocalAmbientOcclusion', 'setPreferSizeOverAccuracy', 'setVolumetricScatteringBlending']; - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = { - createRadonTransferFunction -}; - -// ---------------------------------------------------------------------------- -// vtkVolumeMapper methods -// ---------------------------------------------------------------------------- - -function vtkVolumeMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkVolumeMapper'); - const superClass = { - ...publicAPI - }; - publicAPI.getBounds = () => { - if (!model.static) { - publicAPI.update(); - } - model.bounds = [...publicAPI.getInputData().getBounds()]; - return model.bounds; - }; - publicAPI.setBlendModeToComposite = () => { - publicAPI.setBlendMode(BlendMode.COMPOSITE_BLEND); - }; - publicAPI.setBlendModeToMaximumIntensity = () => { - publicAPI.setBlendMode(BlendMode.MAXIMUM_INTENSITY_BLEND); - }; - publicAPI.setBlendModeToMinimumIntensity = () => { - publicAPI.setBlendMode(BlendMode.MINIMUM_INTENSITY_BLEND); - }; - publicAPI.setBlendModeToAverageIntensity = () => { - publicAPI.setBlendMode(BlendMode.AVERAGE_INTENSITY_BLEND); - }; - publicAPI.setBlendModeToAdditiveIntensity = () => { - publicAPI.setBlendMode(BlendMode.ADDITIVE_INTENSITY_BLEND); - }; - publicAPI.setBlendModeToRadonTransform = () => { - publicAPI.setBlendMode(BlendMode.RADON_TRANSFORM_BLEND); - }; - publicAPI.getBlendModeAsString = () => macro.enumToString(BlendMode, model.blendMode); - publicAPI.setVolumeShadowSamplingDistFactor = vsdf => superClass.setVolumeShadowSamplingDistFactor(vsdf >= 1.0 ? vsdf : 1.0); - - // Instead of a "undefined is not a function" error, give more context and advice for these widely used methods - methodNamesMovedToVolumeProperties.forEach(removedMethodName => { - const removedMethod = () => { - throw new Error(`The method "volumeMapper.${removedMethodName}()" doesn't exist anymore. ` + `It is a rendering property that has been moved to the volume property. ` + `Replace your code with:\n` + `volumeActor.getProperty().${removedMethodName}()\n`); - }; - publicAPI[removedMethodName] = removedMethod; - }); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -// TODO: what values to use for averageIPScalarRange to get GLSL to use max / min values like [-Math.inf, Math.inf]? -const defaultValues = initialValues => ({ - bounds: [...vtkBoundingBox.INIT_BOUNDS], - sampleDistance: 1.0, - imageSampleDistance: 1.0, - maximumSamplesPerRay: 1000, - autoAdjustSampleDistances: true, - initialInteractionScale: 1.0, - interactionSampleDistanceFactor: 1.0, - blendMode: BlendMode.COMPOSITE_BLEND, - volumeShadowSamplingDistFactor: 5.0, - colorTextureWidth: 1024, - opacityTextureWidth: 1024, - labelOutlineTextureWidth: 1024, - ...initialValues -}); - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - vtkAbstractMapper3D.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['sampleDistance', 'imageSampleDistance', 'maximumSamplesPerRay', 'autoAdjustSampleDistances', 'initialInteractionScale', 'interactionSampleDistanceFactor', 'blendMode', 'volumeShadowSamplingDistFactor', 'colorTextureWidth', 'opacityTextureWidth', 'labelOutlineTextureWidth']); - macro.event(publicAPI, model, 'lightingActivated'); - - // Object methods - vtkVolumeMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkVolumeMapper'); - -// ---------------------------------------------------------------------------- - -var vtkVolumeMapper$1 = { - newInstance, - extend, - ...STATIC -}; - -export { STATIC, vtkVolumeMapper$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeMapper/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeMapper/Constants.d.ts deleted file mode 100644 index eee908be..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeMapper/Constants.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export declare enum BlendMode { - COMPOSITE_BLEND = 0, - MAXIMUM_INTENSITY_BLEND = 1, - MINIMUM_INTENSITY_BLEND = 2, - AVERAGE_INTENSITY_BLEND = 3, - ADDITIVE_INTENSITY_BLEND = 4, - RADON_TRANSFORM_BLEND = 5, - LABELMAP_EDGE_PROJECTION_BLEND = 6, -} - -declare const _default: { - BlendMode: typeof BlendMode; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeMapper/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeMapper/Constants.js deleted file mode 100644 index 2a6c0d20..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeMapper/Constants.js +++ /dev/null @@ -1,14 +0,0 @@ -const BlendMode = { - COMPOSITE_BLEND: 0, - MAXIMUM_INTENSITY_BLEND: 1, - MINIMUM_INTENSITY_BLEND: 2, - AVERAGE_INTENSITY_BLEND: 3, - ADDITIVE_INTENSITY_BLEND: 4, - RADON_TRANSFORM_BLEND: 5, - LABELMAP_EDGE_PROJECTION_BLEND: 6 -}; -var Constants = { - BlendMode -}; - -export { BlendMode, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeProperty.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeProperty.d.ts deleted file mode 100644 index c1c5e999..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeProperty.d.ts +++ /dev/null @@ -1,601 +0,0 @@ -import vtkPiecewiseFunction from './../../Common/DataModel/PiecewiseFunction'; -import { vtkObject } from './../../interfaces'; -import { Extent, Nullable } from './../../types'; -import vtkColorTransferFunction from './ColorTransferFunction'; -import { ColorMixPreset, InterpolationType, OpacityMode } from './VolumeProperty/Constants'; - -export interface IVolumePropertyInitialValues { - independentComponents?: boolean; - shade?: boolean; - ambient?: number; - diffuse?: number; - specular?: number; - specularPower?: number; - useLabelOutline?: boolean; - labelOutlineThickness?: number | number[]; - colorMixPreset?: ColorMixPreset; -} - -export interface vtkVolumeProperty extends vtkObject { - /** - * Get the ambient lighting coefficient. - */ - getAmbient(): number; - - /** - * Return the `Modified Time` which is a monotonic increasing integer - * global for all vtkObjects. - * - * This allow to solve a question such as: - * - Is that object created/modified after another one? - * - Do I need to re-execute this filter, or not? ... - * - * @return {Number} the global modified time. - */ - getMTime(): number; - - /** - * - * @param {Number} index - */ - getColorChannels(index: number): number; - - /** - * Get the diffuse lighting coefficient. - */ - getDiffuse(): number; - - /** - * - * @param {Number} index - */ - getGradientOpacityMaximumOpacity(index: number): number; - - /** - * - * @param {Number} index - */ - getGradientOpacityMaximumValue(index: number): number; - - /** - * - * @param {Number} index - */ - getGradientOpacityMinimumOpacity(index: number): number; - - /** - * - * @param {Number} index - */ - getGradientOpacityMinimumValue(index: number): number; - - /** - * - */ - getColorMixPreset(): ColorMixPreset; - - /** - * - */ - getIndependentComponents(): boolean; - - /** - * Get the unit distance on which the scalar opacity transfer function is defined. - * @param {Number} index - */ - getScalarOpacityUnitDistance(index: number): number; - - /** - * Get the currently set gray transfer function. Create one if none set. - * @param {Number} index - */ - getGrayTransferFunction(index: number): vtkPiecewiseFunction; - - /** - * - * @default FRACTIONAL - */ - getOpacityMode(index: number): OpacityMode; - - /** - * gets the label outline thickness - */ - getLabelOutlineThickness(): number; - - /** - * Get the currently set RGB transfer function. Create one if none set. - * @param {Number} index - */ - getRGBTransferFunction(index: number): vtkColorTransferFunction; - - /** - * Get the scalar opacity transfer function. Create one if none set. - * @param {Number} index - */ - getScalarOpacity(index: number): vtkPiecewiseFunction; - - /** - * Get the shading of a volume. - */ - getShade(): boolean; - - /** - * - */ - getSpecular(): number; - - /** - * Get the specular power. - */ - getSpecularPower(): number; - - /** - * - * @param {Number} index - */ - getUseGradientOpacity(index: number): boolean; - - /** - * @see setForceNearestInterpolation - * @param {Number} index - */ - getForceNearestInterpolation(index: number): boolean; - - /** - * - */ - getUseLabelOutline(): boolean; - - /** - * Set the ambient lighting coefficient. - * @param {Number} ambient The ambient lighting coefficient. - */ - setAmbient(ambient: number): boolean; - - /** - * Set the diffuse lighting coefficient. - * @param {Number} diffuse The diffuse lighting coefficient. - */ - setDiffuse(diffuse: number): boolean; - - /** - * - * @param {Number} index - * @param {Number} value - */ - setGradientOpacityMaximumOpacity(index: number, value: number): boolean; - - /** - * - * @param {Number} index - * @param {Number} value - */ - setGradientOpacityMaximumValue(index: number, value: number): boolean; - - /** - * - * @param {Number} index - * @param {Number} value - */ - setGradientOpacityMinimumOpacity(index: number, value: number): boolean; - - /** - * - * @param {Number} index - * @param {Number} value - */ - setGradientOpacityMinimumValue(index: number, value: number): boolean; - - /** - * Set the color of a volume to a gray transfer function - * @param {Number} index - * @param {vtkPiecewiseFunction} func - */ - setGrayTransferFunction(index: number, func: vtkPiecewiseFunction): boolean; - - /** - * Set the color mix code to a preset value - * Defaults to ColorMixPreset.DEFAULT - * See the test `testColorMix` for an example on how to use this preset. - * - * If set to `CUSTOM`, a tag `//VTK::CustomColorMix` is made available to the - * user who can user shader replacements to put its own code. The given code - * will be used to mix the colors from each component. - * Each component is available as a rgba vec4: `comp0`, `comp1`... - * There are other useful functions or variable available. To find them, - * see `//VTK::CustomColorMix` tag in `vtkVolumeFS.glsl`. - */ - setColorMixPreset(preset: ColorMixPreset): boolean; - - /** - * Does the data have independent components, or do some define color only? - * If IndependentComponents is On (the default) then each component will be - * independently passed through a lookup table to determine RGBA, shaded. - * - * Some volume Mappers can handle 1 to 4 component unsigned char or unsigned - * short data (see each mapper header file to determine functionality). If - * IndependentComponents is Off, then you must have either 2 or 4 component - * data. For 2 component data, the first is passed through the first color - * transfer function and the second component is passed through the first - * scalar opacity (and gradient opacity) transfer function. Normals will be - * generated off of the second component. When using gradient based opacity - * modulation, the gradients are computed off of the second component. For 4 - * component data, the first three will directly represent RGB (no lookup - * table). The fourth component will be passed through the first scalar - * opacity transfer function for opacity and first gradient opacity transfer - * function for gradient based opacity modulation. Normals will be generated - * from the fourth component. When using gradient based opacity modulation, - * the gradients are computed off of the fourth component. - * @param {Boolean} independentComponents - */ - setIndependentComponents(independentComponents: boolean): boolean; - - /** - * It will set the label outline thickness for the labelmaps. It can accept - * a single number or an array of numbers. If a single number is provided, - * it will be used for all the segments. If an array is provided, it indicates - * the thickness for each segment index. For instance if you have a labelmap - * with 3 segments (0: background 1: liver 2: tumor), you can set the thickness - * to [2,4] to have a thicker outline for the tumor (thickness 4). It should be - * noted that the thickness is in pixel and also the first array value will - * control the default thickness for all labels when 0 or not specified. - * - * @param {Number | Number[]} labelOutlineThickness - */ - setLabelOutlineThickness(labelOutlineThickness: number | number[]): boolean; - - /** - * - * @param {Number} index - * @param {Number} value - */ - setOpacityMode(index: number, value: number): boolean; - - /** - * Set the unit distance on which the scalar opacity transfer function is - * defined. - * @param {Number} index - * @param {Number} value - */ - setScalarOpacityUnitDistance(index: number, value: number): boolean; - - /** - * Set the shading of a volume. - * - * If shading is turned off, then the mapper for the volume will not perform - * shading calculations. If shading is turned on, the mapper may perform - * shading calculations - in some cases shading does not apply (for example, - * in a maximum intensity projection) and therefore shading will not be - * performed even if this flag is on. For a compositing type of mapper, - * turning shading off is generally the same as setting ambient=1, - * diffuse=0, specular=0. Shading can be independently turned on/off per - * component. - * @param {Boolean} shade - */ - setShade(shade: boolean): boolean; - - /** - * - * @param {Number} specular - */ - setSpecular(specular: number): boolean; - - /** - * Set the specular power. - * @param {Number} specularPower - */ - setSpecularPower(specularPower: number): boolean; - - /** - * - * @param {Number} index - * @param {Boolean} value - */ - setUseGradientOpacity(index: number, value: boolean): boolean; - - /** - * - * @param {Boolean} useLabelOutline - */ - setUseLabelOutline(useLabelOutline: boolean): boolean; - - /** - * Set the color of a volume to an RGB transfer function - * @param {Number} index - * @param {vtkColorTransferFunction} func - */ - setRGBTransferFunction( - index: number, - func?: Nullable - ): boolean; - - /** - * Set the scalar opacity of a volume to a transfer function - * @param {Number} index - * @param {vtkPiecewiseFunction} func - */ - setScalarOpacity( - index: number, - func?: Nullable - ): boolean; - - /** - * Set the scalar component weights. - * @param {Number} index - * @param {Number} value - */ - setComponentWeight(index: number, value: number): boolean; - - /** - * Force the nearest neighbor interpolation of one or more of the components - * The interpolation for the rest of the volume is set using `setInterpolationType` - * @see setInterpolationType - * @param {Number} index - * @param {Boolean} value - */ - setForceNearestInterpolation(index: number, value: boolean): boolean; - - /** - * Get the scalar component weights. - * @param {Number} index - */ - getComponentWeight(index: number): number; - - /** - * Set the interpolation type for sampling a volume. - * @param {InterpolationType} interpolationType - */ - setInterpolationType(interpolationType: InterpolationType): boolean; - - /** - * Set interpolation type to NEAREST - */ - setInterpolationTypeToNearest(): boolean; - - /** - * Set interpolation type to LINEAR - */ - setInterpolationTypeToLinear(): boolean; - - /** - * Set interpolation type to FAST_LINEAR - */ - setInterpolationTypeToFastLinear(): boolean; - - /** - * Get the interpolation type for sampling a volume. - */ - getInterpolationType(): InterpolationType; - - /** - * Get the interpolation type for sampling a volume as a string. - */ - getInterpolationTypeAsString(): string; - - /** - * - */ - getAverageIPScalarRange(): Range; - - /** - * - */ - getAverageIPScalarRangeByReference(): Range; - - /** - * Get the blending coefficient that interpolates between surface and volume rendering - * @default 0.0 - */ - getVolumetricScatteringBlending(): number; - - /** - * Get the global illumination reach of volume shadow - * @default 0.0 - */ - getGlobalIlluminationReach(): number; - - /** - * Get anisotropy of volume shadow scatter - * @default 0.0 - */ - getAnisotropy(): number; - - /** - * Get local ambient occlusion flag - * @default false - */ - getLocalAmbientOcclusion(): boolean; - - /** - * Get kernel size for local ambient occlusion - * @default 15 - */ - getLAOKernelSize(): number; - - /** - * Get kernel radius for local ambient occlusion - * @default 7 - */ - getLAOKernelRadius(): number; - - /** - * - * @param x - * @param y - */ - setAverageIPScalarRange(x: number, y: number): boolean; - - /** - * - * @param {Range} averageIPScalarRange - */ - setAverageIPScalarRangeFrom(averageIPScalarRange: Range): boolean; - - /** - * Set the normal computation to be dependent on the transfer function. - * By default, the mapper relies on the scalar gradient for computing normals at sample locations - * for lighting calculations. This is an approximation and can lead to inaccurate results. - * When enabled, this property makes the mapper compute normals based on the accumulated opacity - * at sample locations. This can generate a more accurate representation of edge structures in the - * data but adds an overhead and drops frame rate. - * @param computeNormalFromOpacity - */ - setComputeNormalFromOpacity(computeNormalFromOpacity: boolean): boolean; - - /** - * Set the blending coefficient that determines the interpolation between surface and volume rendering. - * Default value of 0.0 means shadow effect is computed with phong model. - * Value of 1.0 means shadow is created by volume occlusion. - * @param volumeScatterBlendCoef - */ - setVolumetricScatteringBlending(volumeScatterBlendCoef: number): void; - - /** - * Set the global illumination reach of volume shadow. This function is only effective when volumeScatterBlendCoef is greater than 0. - * Default value of 0.0 means only the neighboring voxel is considered when creating global shadow. - * Value of 1.0 means the shadow ray traverses through the entire volume. - * @param globalIlluminationReach - */ - setGlobalIlluminationReach(globalIlluminationReach: number): void; - - /** - * Set anisotropy of volume shadow scatter. This function is only effective when volumeScatterBlendCoef is greater than 0. - * Default value of 0.0 means light scatters uniformly in all directions. - * Value of -1.0 means light scatters backward, value of 1.0 means light scatters forward. - * @param anisotropy - */ - setAnisotropy(anisotropy: number): void; - - /** - * Set whether to turn on local ambient occlusion (LAO). LAO is only effective if shading is on and volumeScatterBlendCoef is set to 0. - * LAO effect is added to ambient lighting, so the ambient component of the actor needs to be great than 0. - * @param localAmbientOcclusion - */ - setLocalAmbientOcclusion(localAmbientOcclusion: boolean): void; - - /** - * Set kernel size for local ambient occlusion. It specifies the number of rays that are randomly sampled in the hemisphere. - * Value is clipped between 1 and 32. - * @param LAOKernelSize - */ - setLAOKernelSize(LAOKernelSize: number): void; - - /** - * Set kernel radius for local ambient occlusion. It specifies the number of samples that are considered on each random ray. - * Value must be greater than or equal to 1. - * @param LAOKernelRadius - */ - setLAOKernelRadius(LAOKernelRadius: number): void; - - /** - * Informs the mapper to only update the specified extents at the next render. - * - * If there are zero extents, the mapper updates the entire volume texture. - * Otherwise, the mapper will only update the texture by the specified extents - * during the next render call. - * - * This array is cleared after a successful render. - * @param extents - */ - setUpdatedExtents(extents: Extent[]): boolean; - - /** - * Retrieves the updated extents. - * - * This array is cleared after every successful render. - */ - getUpdatedExtents(): Extent[]; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkVolumeProperty characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IVolumePropertyInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IVolumePropertyInitialValues -): void; - -/** - * Method use to create a new instance of vtkVolumeProperty - */ -export function newInstance( - initialValues?: IVolumePropertyInitialValues -): vtkVolumeProperty; - -/** - * vtkVolumeProperty is used to represent common properties associated - * with volume rendering. This includes properties for determining the type - * of interpolation to use when sampling a volume, the color of a volume, - * the scalar opacity of a volume, the gradient opacity of a volume, and the - * shading parameters of a volume. - - * When the scalar opacity or the gradient opacity of a volume is not set, - * then the function is defined to be a constant value of 1.0. When a - * scalar and gradient opacity are both set simultaneously, then the opacity - * is defined to be the product of the scalar opacity and gradient opacity - * transfer functions. - * - * Most properties can be set per "component" for volume mappers that - * support multiple independent components. If you are using 2 component - * data as LV or 4 component data as RGBV (as specified in the mapper) - * only the first scalar opacity and gradient opacity transfer functions - * will be used (and all color functions will be ignored). Omitting the - * index parameter on the Set/Get methods will access index = 0. - * - * When independent components is turned on, a separate feature (useful - * for volume rendering labelmaps) is available. By default all components - * have an "opacityMode" of `FRACTIONAL`, which results in the usual - * addition of that components scalar opacity function value to the final - * opacity of the fragment. By setting one or more components to have a - * `PROPORTIONAL` "opacityMode" instead, the scalar opacity lookup value - * for those components will not be used to adjust the fragment opacity, - * but rather used to multiply the color of that fragment. This kind of - * rendering makes sense for labelmap components because the gradient of - * those fields is meaningless and should not be used in opacity - * computation. At the same time, multiplying the color value by the - * piecewise scalar opacity function value provides an opportunity to - * design piecewise constant opacity functions (step functions) that can - * highlight any subset of label values. - * - * vtkColorTransferFunction is a color mapping in RGB or HSV space that - * uses piecewise hermite functions to allow interpolation that can be - * piecewise constant, piecewise linear, or somewhere in-between - * (a modified piecewise hermite function that squishes the function - * according to a sharpness parameter). The function also allows for - * the specification of the midpoint (the place where the function - * reaches the average of the two bounding nodes) as a normalize distance - * between nodes. - * - * See the description of class vtkPiecewiseFunction for an explanation of - * midpoint and sharpness. - * - * @example - * ```js - * // create color and opacity transfer functions - * const ctfun = vtkColorTransferFunction.newInstance(); - * ctfun.addRGBPoint(200.0, 1.0, 1.0, 1.0); - * ctfun.addRGBPoint(2000.0, 0.0, 0.0, 0.0); - * const ofun = vtkPiecewiseFunction.newInstance(); - * ofun.addPoint(200.0, 0.0); - * ofun.addPoint(1200.0, 0.2); - * ofun.addPoint(4000.0, 0.4); - * - * // set them on the property - * volume.getProperty().setRGBTransferFunction(0, ctfun); - * volume.getProperty().setScalarOpacity(0, ofun); - * volume.getProperty().setScalarOpacityUnitDistance(0, 4.5); - * volume.getProperty().setInterpolationTypeToLinear(); - * ``` - */ -export declare const vtkVolumeProperty: { - newInstance: typeof newInstance; - extend: typeof extend; - InterpolationType: typeof InterpolationType; - OpacityMode: typeof OpacityMode; -}; -export default vtkVolumeProperty; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeProperty.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeProperty.js deleted file mode 100644 index 264ce660..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeProperty.js +++ /dev/null @@ -1,314 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { F as clampValue, M as floor } from '../../Common/Core/Math/index.js'; -import vtkColorTransferFunction from './ColorTransferFunction.js'; -import vtkPiecewiseFunction from '../../Common/DataModel/PiecewiseFunction.js'; -import Constants from './VolumeProperty/Constants.js'; - -const { - InterpolationType, - OpacityMode, - FilterMode, - ColorMixPreset -} = Constants; -const { - vtkErrorMacro -} = macro; -const VTK_MAX_VRCOMP = 4; - -// ---------------------------------------------------------------------------- -// vtkVolumeProperty methods -// ---------------------------------------------------------------------------- - -function vtkVolumeProperty(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkVolumeProperty'); - const superClass = { - ...publicAPI - }; - publicAPI.getMTime = () => { - let mTime = model.mtime; - let time; - for (let index = 0; index < VTK_MAX_VRCOMP; index++) { - // Color MTimes - if (model.componentData[index].colorChannels === 1) { - if (model.componentData[index].grayTransferFunction) { - // time that Gray transfer function was last modified - time = model.componentData[index].grayTransferFunction.getMTime(); - mTime = mTime > time ? mTime : time; - } - } else if (model.componentData[index].colorChannels === 3) { - if (model.componentData[index].rGBTransferFunction) { - // time that RGB transfer function was last modified - time = model.componentData[index].rGBTransferFunction.getMTime(); - mTime = mTime > time ? mTime : time; - } - } - - // Opacity MTimes - if (model.componentData[index].scalarOpacity) { - // time that Scalar opacity transfer function was last modified - time = model.componentData[index].scalarOpacity.getMTime(); - mTime = mTime > time ? mTime : time; - } - if (model.componentData[index].gradientOpacity) { - if (!model.componentData[index].disableGradientOpacity) { - // time that Gradient opacity transfer function was last modified - time = model.componentData[index].gradientOpacity.getMTime(); - mTime = mTime > time ? mTime : time; - } - } - } - return mTime; - }; - publicAPI.getColorChannels = index => { - if (index < 0 || index > 3) { - vtkErrorMacro('Bad index - must be between 0 and 3'); - return 0; - } - return model.componentData[index].colorChannels; - }; - - // Set the color of a volume to a gray transfer function - publicAPI.setGrayTransferFunction = function () { - let index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - let func = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - let modified = false; - if (model.componentData[index].grayTransferFunction !== func) { - model.componentData[index].grayTransferFunction = func; - modified = true; - } - if (model.componentData[index].colorChannels !== 1) { - model.componentData[index].colorChannels = 1; - modified = true; - } - if (modified) { - publicAPI.modified(); - } - return modified; - }; - - // Get the currently set gray transfer function. Create one if none set. - publicAPI.getGrayTransferFunction = function () { - let index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - if (model.componentData[index].grayTransferFunction === null) { - model.componentData[index].grayTransferFunction = vtkPiecewiseFunction.newInstance(); - model.componentData[index].grayTransferFunction.addPoint(0, 0.0); - model.componentData[index].grayTransferFunction.addPoint(1024, 1.0); - if (model.componentData[index].colorChannels !== 1) { - model.componentData[index].colorChannels = 1; - } - publicAPI.modified(); - } - return model.componentData[index].grayTransferFunction; - }; - - // Set the color of a volume to an RGB transfer function - publicAPI.setRGBTransferFunction = function () { - let index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - let func = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - let modified = false; - if (model.componentData[index].rGBTransferFunction !== func) { - model.componentData[index].rGBTransferFunction = func; - modified = true; - } - if (model.componentData[index].colorChannels !== 3) { - model.componentData[index].colorChannels = 3; - modified = true; - } - if (modified) { - publicAPI.modified(); - } - return modified; - }; - - // Get the currently set RGB transfer function. Create one if none set. - publicAPI.getRGBTransferFunction = function () { - let index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - if (model.componentData[index].rGBTransferFunction === null) { - model.componentData[index].rGBTransferFunction = vtkColorTransferFunction.newInstance(); - model.componentData[index].rGBTransferFunction.addRGBPoint(0, 0.0, 0.0, 0.0); - model.componentData[index].rGBTransferFunction.addRGBPoint(1024, 1.0, 1.0, 1.0); - if (model.componentData[index].colorChannels !== 3) { - model.componentData[index].colorChannels = 3; - } - publicAPI.modified(); - } - return model.componentData[index].rGBTransferFunction; - }; - - // Set the scalar opacity of a volume to a transfer function - publicAPI.setScalarOpacity = function () { - let index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - let func = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - if (model.componentData[index].scalarOpacity !== func) { - model.componentData[index].scalarOpacity = func; - publicAPI.modified(); - return true; - } - return false; - }; - - // Get the scalar opacity transfer function. Create one if none set. - publicAPI.getScalarOpacity = function () { - let index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - if (model.componentData[index].scalarOpacity === null) { - model.componentData[index].scalarOpacity = vtkPiecewiseFunction.newInstance(); - model.componentData[index].scalarOpacity.addPoint(0, 1.0); - model.componentData[index].scalarOpacity.addPoint(1024, 1.0); - publicAPI.modified(); - } - return model.componentData[index].scalarOpacity; - }; - publicAPI.setComponentWeight = function () { - let index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - let value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1; - if (index < 0 || index >= VTK_MAX_VRCOMP) { - vtkErrorMacro('Invalid index'); - return false; - } - const val = Math.min(1, Math.max(0, value)); - if (model.componentData[index].componentWeight !== val) { - model.componentData[index].componentWeight = val; - publicAPI.modified(); - return true; - } - return false; - }; - publicAPI.getComponentWeight = function () { - let index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - if (index < 0 || index >= VTK_MAX_VRCOMP) { - vtkErrorMacro('Invalid index'); - return 0.0; - } - return model.componentData[index].componentWeight; - }; - publicAPI.setInterpolationTypeToNearest = () => publicAPI.setInterpolationType(InterpolationType.NEAREST); - publicAPI.setInterpolationTypeToLinear = () => publicAPI.setInterpolationType(InterpolationType.LINEAR); - publicAPI.setInterpolationTypeToFastLinear = () => publicAPI.setInterpolationType(InterpolationType.FAST_LINEAR); - publicAPI.getInterpolationTypeAsString = () => macro.enumToString(InterpolationType, model.interpolationType); - const sets = ['useGradientOpacity', 'scalarOpacityUnitDistance', 'gradientOpacityMinimumValue', 'gradientOpacityMinimumOpacity', 'gradientOpacityMaximumValue', 'gradientOpacityMaximumOpacity', 'opacityMode', 'forceNearestInterpolation']; - sets.forEach(val => { - const cap = macro.capitalize(val); - publicAPI[`set${cap}`] = (index, value) => { - if (model.componentData[index][`${val}`] !== value) { - model.componentData[index][`${val}`] = value; - publicAPI.modified(); - return true; - } - return false; - }; - }); - const gets = ['useGradientOpacity', 'scalarOpacityUnitDistance', 'gradientOpacityMinimumValue', 'gradientOpacityMinimumOpacity', 'gradientOpacityMaximumValue', 'gradientOpacityMaximumOpacity', 'opacityMode', 'forceNearestInterpolation']; - gets.forEach(val => { - const cap = macro.capitalize(val); - publicAPI[`get${cap}`] = index => model.componentData[index][`${val}`]; - }); - publicAPI.setAverageIPScalarRange = (min, max) => { - console.warn('setAverageIPScalarRange is deprecated use setIpScalarRange'); - publicAPI.setIpScalarRange(min, max); - }; - publicAPI.getFilterModeAsString = () => macro.enumToString(FilterMode, model.filterMode); - publicAPI.setFilterModeToOff = () => { - publicAPI.setFilterMode(FilterMode.OFF); - }; - publicAPI.setFilterModeToNormalized = () => { - publicAPI.setFilterMode(FilterMode.NORMALIZED); - }; - publicAPI.setFilterModeToRaw = () => { - publicAPI.setFilterMode(FilterMode.RAW); - }; - publicAPI.setGlobalIlluminationReach = gl => superClass.setGlobalIlluminationReach(clampValue(gl, 0.0, 1.0)); - publicAPI.setVolumetricScatteringBlending = vsb => superClass.setVolumetricScatteringBlending(clampValue(vsb, 0.0, 1.0)); - publicAPI.setAnisotropy = at => superClass.setAnisotropy(clampValue(at, -0.99, 0.99)); - publicAPI.setLAOKernelSize = ks => superClass.setLAOKernelSize(floor(clampValue(ks, 1, 32))); - publicAPI.setLAOKernelRadius = kr => superClass.setLAOKernelRadius(kr >= 1 ? kr : 1); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const defaultValues = initialValues => ({ - colorMixPreset: ColorMixPreset.DEFAULT, - independentComponents: true, - interpolationType: InterpolationType.FAST_LINEAR, - shade: false, - ambient: 0.1, - diffuse: 0.7, - specular: 0.2, - specularPower: 10.0, - useLabelOutline: false, - labelOutlineThickness: [1], - labelOutlineOpacity: 1.0, - // Properties moved from volume mapper - ipScalarRange: [-1000000.0, 1000000.0], - filterMode: FilterMode.OFF, - // ignored by WebGL so no behavior change - preferSizeOverAccuracy: false, - // Whether to use halfFloat representation of float, when it is inaccurate - computeNormalFromOpacity: false, - // volume shadow parameters - volumetricScatteringBlending: 0.0, - globalIlluminationReach: 0.0, - anisotropy: 0.0, - // local ambient occlusion - localAmbientOcclusion: false, - LAOKernelSize: 15, - LAOKernelRadius: 7, - updatedExtents: [], - ...initialValues -}); - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - - // Build VTK API - macro.obj(publicAPI, model); - if (!model.componentData) { - model.componentData = []; - for (let i = 0; i < VTK_MAX_VRCOMP; ++i) { - model.componentData.push({ - colorChannels: 1, - grayTransferFunction: null, - rGBTransferFunction: null, - scalarOpacity: null, - scalarOpacityUnitDistance: 1.0, - opacityMode: OpacityMode.FRACTIONAL, - gradientOpacityMinimumValue: 0, - gradientOpacityMinimumOpacity: 0.0, - gradientOpacityMaximumValue: 1.0, - gradientOpacityMaximumOpacity: 1.0, - useGradientOpacity: false, - componentWeight: 1.0, - forceNearestInterpolation: false - }); - } - } - macro.setGet(publicAPI, model, ['colorMixPreset', 'independentComponents', 'interpolationType', 'shade', 'ambient', 'diffuse', 'specular', 'specularPower', 'useLabelOutline', 'labelOutlineOpacity', - // Properties moved from volume mapper - 'filterMode', 'preferSizeOverAccuracy', 'computeNormalFromOpacity', 'volumetricScatteringBlending', 'globalIlluminationReach', 'anisotropy', 'localAmbientOcclusion', 'LAOKernelSize', 'LAOKernelRadius', 'updatedExtents']); - - // Property moved from volume mapper - macro.setGetArray(publicAPI, model, ['ipScalarRange'], 2); - macro.setGetArray(publicAPI, model, ['labelOutlineThickness']); - - // Object methods - vtkVolumeProperty(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkVolumeProperty'); - -// ---------------------------------------------------------------------------- - -var vtkVolumeProperty$1 = { - newInstance, - extend, - ...Constants -}; - -export { vtkVolumeProperty$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeProperty/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeProperty/Constants.d.ts deleted file mode 100644 index 92ea3466..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeProperty/Constants.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -export declare enum InterpolationType { - NEAREST = 0, - LINEAR = 1, - FAST_LINEAR = 2, -} - -export declare enum OpacityMode { - FRACTIONAL = 0, - PROPORTIONAL = 1, -} - -export declare enum ColorMixPreset { - DEFAULT = 0, - - // Two components preset - // Out color: sum of colors weighted by opacity - // Out opacity: sum of opacities - ADDITIVE = 1, - - // Two components preset - // Out color: color of the first component, colorized by second component with an intensity that is the second component's opacity - // Out opacity: opacity of the first component - COLORIZE = 2, - - // Add a `//VTK::CustomColorMix` tag to the Fragment shader - // See usage in file `testColorMix` and in function `setColorMixPreset` - CUSTOM = 3, -} - -export declare enum FilterMode { - OFF = 0, - NORMALIZED = 1, - RAW = 2, -} - -declare const _default: { - InterpolationType: typeof InterpolationType; - OpacityMode: typeof OpacityMode; - ColorMixPreset: typeof ColorMixPreset; - FilterMode: typeof FilterMode; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeProperty/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeProperty/Constants.js deleted file mode 100644 index 6c9a1427..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Core/VolumeProperty/Constants.js +++ /dev/null @@ -1,28 +0,0 @@ -const InterpolationType = { - NEAREST: 0, - LINEAR: 1, - FAST_LINEAR: 2 -}; -const OpacityMode = { - FRACTIONAL: 0, - PROPORTIONAL: 1 -}; -const ColorMixPreset = { - DEFAULT: 0, - ADDITIVE: 1, - COLORIZE: 2, - CUSTOM: 3 -}; -const FilterMode = { - OFF: 0, - NORMALIZED: 1, - RAW: 2 -}; -var Constants = { - InterpolationType, - OpacityMode, - ColorMixPreset, - FilterMode -}; - -export { ColorMixPreset, FilterMode, InterpolationType, OpacityMode, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc.js deleted file mode 100644 index 88c6e4c7..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc.js +++ /dev/null @@ -1,19 +0,0 @@ -import vtkCanvasView from './Misc/CanvasView.js'; -import vtkFullScreenRenderWindow from './Misc/FullScreenRenderWindow.js'; -import vtkGenericRenderWindow from './Misc/GenericRenderWindow.js'; -import vtkRemoteView from './Misc/RemoteView.js'; -import vtkRenderWindowWithControlBar from './Misc/RenderWindowWithControlBar.js'; -import vtkSynchronizableRenderWindow from './Misc/SynchronizableRenderWindow.js'; -import vtkTextureLODsDownloader from './Misc/TextureLODsDownloader.js'; - -var Misc = { - vtkCanvasView, - vtkFullScreenRenderWindow, - vtkGenericRenderWindow, - vtkRemoteView, - vtkRenderWindowWithControlBar, - vtkSynchronizableRenderWindow, - vtkTextureLODsDownloader -}; - -export { Misc as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/CanvasView.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/CanvasView.d.ts deleted file mode 100644 index 77f9cf21..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/CanvasView.d.ts +++ /dev/null @@ -1,178 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { Size } from './../../types'; - -/** - * - */ -export interface ICanvasViewInitialValues { - canvas?: HTMLCanvasElement; - size?: Size; - cursorVisibility?: boolean; - cursor?: string; - useOffScreen?: boolean; - useBackgroundImage?: boolean; -} - -export interface vtkCanvasView extends vtkObject { - /** - * Get the canvas element - */ - getCanvas(): HTMLCanvasElement; - - /** - * Get the used cursor - */ - getCursor(): string; - - /** - * - */ - getInteractive(): boolean; - - /** - * Get the interactor - */ - getInteractor(): any; - - /** - * - */ - getRenderable(): any; - - /** - * - */ - getRenderers(): any[]; - - /** - * - */ - getRenderersByReference(): any[]; - - /** - * Get the size of the canvas view - */ - getSize(): Size; - - /** - * Get the size of the canvas view - */ - getSizeByReference(): boolean; - - /** - * - */ - getUseBackgroundImage(): boolean; - - /** - * - */ - getUseOffScreen(): boolean; - - /** - * - */ - isInViewport(): boolean; - - /** - * - * @param {HTMLImageElement} backgroundImage The background image HTML element. - */ - setBackgroundImage(backgroundImage: HTMLImageElement): boolean; - - /** - * - * @param {HTMLCanvasElement} canvas The canvas HTML element. - */ - setCanvas(canvas: HTMLCanvasElement): boolean; - - /** - * - * @param {HTMLElement} container The container HTML element. - */ - setContainer(container: HTMLElement): boolean; - - /** - * - * @param {String} cursor The used cursor. - */ - setCursor(cursor: string): boolean; - - /** - * - * @param interactor - */ - setInteractor(interactor: any): boolean; - - /** - * Set the size of the canvas view. - * @param {Size} size The size of the canvas view. - */ - setSize(size: Size): boolean; - - /** - * Set the size of the canvas view. - * @param {Number} width The width of the canvas view. - * @param {Number} height The height of the canvas view. - */ - setSize(width: number, height: number): boolean; - - /** - * Set the size of the canvas view. - * @param {Size} size The size of the canvas view. - */ - setSizeFrom(size: Size): boolean; - - /** - * - * @param useBackgroundImage - */ - setUseBackgroundImage(useBackgroundImage: boolean): void; - - /** - * - * @param useOffScreen - */ - setUseOffScreen(useOffScreen: boolean): boolean; - - /** - * - * @param viewStream - */ - setViewStream(viewStream: any): boolean; // viewStream is vtkViewStream - - /** - * - */ - traverseAllPasses(): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkCanvasView characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ICanvasViewInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ICanvasViewInitialValues -): void; - -/** - * Method used to create a new instance of vtkCanvasView - * @param {ICanvasViewInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ICanvasViewInitialValues -): vtkCanvasView; - -/** - * vtkCanvasView provides a way to create a canvas view. - */ -export declare const vtkCanvasView: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkCanvasView; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/CanvasView.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/CanvasView.js deleted file mode 100644 index b25e5fa5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/CanvasView.js +++ /dev/null @@ -1,176 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkCanvasView methods -// ---------------------------------------------------------------------------- - -function vtkCanvasView(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCanvasView'); - - // Auto update style - function updateWindow() { - // Canvas size - if (model._renderable) { - model.canvas.setAttribute('width', model.size[0]); - model.canvas.setAttribute('height', model.size[1]); - } - - // ImageStream size - if (model.viewStream) { - // If same size that's a NoOp - model.viewStream.setSize(model.size[0], model.size[1]); - } - - // Offscreen ? - model.canvas.style.display = model.useOffScreen ? 'none' : 'block'; - - // Cursor type - if (model.el) { - model.el.style.cursor = model.cursorVisibility ? model.cursor : 'none'; - } - } - publicAPI.onModified(updateWindow); - publicAPI.setContainer = el => { - if (model.el && model.el !== el) { - if (model.canvas.parentNode !== model.el) { - vtkErrorMacro('Error: canvas parent node does not match container'); - } - - // Remove canvas from previous container - model.el.removeChild(model.canvas); - - // If the renderer has previously added - // a background image, remove it from the DOM. - if (model.el.contains(model.bgImage)) { - model.el.removeChild(model.bgImage); - } - } - if (model.el !== el) { - model.el = el; - if (model.el) { - model.el.appendChild(model.canvas); - } - - // If the renderer is set to use a background - // image, attach it to the DOM. - if (model.useBackgroundImage) { - model.el.appendChild(model.bgImage); - } - - // Trigger modified() - publicAPI.modified(); - } - }; - publicAPI.setBackgroundImage = img => { - model.bgImage.src = img.src; - }; - publicAPI.setUseBackgroundImage = value => { - model.useBackgroundImage = value; - - // Add or remove the background image from the - // DOM as specified. - if (model.useBackgroundImage && model.el && !model.el.contains(model.bgImage)) { - model.el.appendChild(model.bgImage); - } else if (!model.useBackgroundImage && model.el && model.el.contains(model.bgImage)) { - model.el.removeChild(model.bgImage); - } - }; - publicAPI.setViewStream = stream => { - if (model.viewStream === stream) { - return false; - } - if (model.subscription) { - model.subscription.unsubscribe(); - model.subscription = null; - } - model.viewStream = stream; - if (model.viewStream) { - // Enable display of the background image - publicAPI.setUseBackgroundImage(true); - - // Bind to remote stream - model.subscription = model.viewStream.onImageReady(e => publicAPI.setBackgroundImage(e.image)); - model.viewStream.setSize(model.size[0], model.size[1]); - model.viewStream.invalidateCache(); - model.viewStream.render(); - publicAPI.modified(); - } - return true; - }; - publicAPI.delete = macro.chain(publicAPI.setViewStream, publicAPI.delete); - - // -------------------------------------------------------------------------- - // Make us look like a View (i.e.: vtkOpenGLRenderWindow) - // -------------------------------------------------------------------------- - model._renderable = publicAPI; - model._renderers = [publicAPI]; - publicAPI.traverseAllPasses = () => {}; - publicAPI.isInViewport = () => true; - publicAPI.getInteractive = () => true; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - canvas: null, - size: [300, 300], - cursorVisibility: true, - cursor: 'pointer', - useOffScreen: false, - useBackgroundImage: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Create internal instances - if (!model.canvas) { - model.canvas = document.createElement('canvas'); - model.canvas.style.width = '100%'; - } - - // Create internal bgImage - model.bgImage = new Image(); - model.bgImage.style.position = 'absolute'; - model.bgImage.style.left = '0'; - model.bgImage.style.top = '0'; - model.bgImage.style.width = '100%'; - model.bgImage.style.height = '100%'; - model.bgImage.style.zIndex = '-1'; - - // Inheritance - macro.obj(publicAPI, model, initialValues); - - // Build VTK API - macro.get(publicAPI, model, ['useBackgroundImage', '_renderable']); - macro.setGet(publicAPI, model, ['canvas', 'cursor', 'useOffScreen', 'interactor']); - macro.setGetArray(publicAPI, model, ['size'], 2); - macro.getArray(publicAPI, model, ['_renderers']); - macro.moveToProtected(publicAPI, model, ['renderable', 'renderers']); - - // Object methods - vtkCanvasView(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCanvasView'); - -// ---------------------------------------------------------------------------- - -var vtkCanvasView$1 = { - newInstance, - extend -}; - -export { vtkCanvasView$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/FullScreenRenderWindow.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/FullScreenRenderWindow.d.ts deleted file mode 100644 index c676a4de..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/FullScreenRenderWindow.d.ts +++ /dev/null @@ -1,148 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { RGBAColor, RGBColor } from './../../types'; -import vtkRenderer from './../Core/Renderer'; -import vtkRenderWindow from './../Core/RenderWindow'; -import vtkRenderWindowInteractor from './../Core/RenderWindowInteractor'; - -// import vtkOpenGLRenderWindow from './../../OpenGL/RenderWindow'; -// import vtkWebGPURenderWindow from './../../WebGPU/RenderWindow'; - -/** - * - */ -export interface IFullScreenRenderWindowInitialValues { - background?: RGBColor | RGBAColor; - container?: HTMLElement; - containerStyle?: object; - controlPanelStyle?: object; - controllerVisibility?: boolean; - defaultViewAPI?: boolean; - listenWindowResize?: boolean; - resizeCallback?: any; -} - -export interface vtkFullScreenRenderWindow extends vtkObject { - /** - * - * @param {HTMLElement} html - */ - addController(html: HTMLElement): void; - - /** - * Representation API - * @param representation - */ - addRepresentation(representation: any): void; - - /** - * Release GL context - */ - delete(): void; - - /** - * Returns vtkWebGPURenderWindow if ?viewAPI='WebGPU' is in URL, or if - * vtkFullScreenRenderWindow has been created with "defaultViewAPI: 'WebGPU", - * otherwise vtkOpenGLRenderWindow is returned. - */ - getApiSpecificRenderWindow(): any; // vtkOpenGLRenderWindow || vtkWebGPURenderWindow - - /** - * Get container element - */ - getContainer(): HTMLElement; - - /** - * Get control container element - */ - getControlContainer(): HTMLElement; - - /** - * Get interactor object - */ - getInteractor(): vtkRenderWindowInteractor; - - /** - * Get Render windows object - */ - getRenderWindow(): vtkRenderWindow; - - /** - * Get Renderer object - */ - getRenderer(): vtkRenderer; - - /** - * Get root container element - */ - getRootContainer(): HTMLElement; - - /** - * Remove controller - */ - removeController(): void; - - /** - * Remove representation - * @param representation - */ - removeRepresentation(representation: any): void; - - /** - * Handle window resize - */ - resize(): void; - - /** - * Set background color - * @param {RGBColor | RGBAColor} background The background color. - */ - setBackground(background: RGBColor | RGBAColor): boolean; - - /** - * Hide or show controller - * @param {Boolean} visible - */ - setControllerVisibility(visible: boolean): void; - - /** - * - * @param cb - */ - setResizeCallback(cb: any): void; - - /** - * Toggle controller visibility - */ - toggleControllerVisibility(): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkFullScreenRenderWindow characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IFullScreenRenderWindowInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IFullScreenRenderWindowInitialValues -): void; - -/** - * Method used to create a new instance of vtkFullScreenRenderWindow - * @param {IFullScreenRenderWindowInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IFullScreenRenderWindowInitialValues -): vtkFullScreenRenderWindow; - -/** - * vtkFullScreenRenderWindow provides a skeleton for implementing a fullscreen - * render window. - */ -export declare const vtkFullScreenRenderWindow: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkFullScreenRenderWindow; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/FullScreenRenderWindow.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/FullScreenRenderWindow.js deleted file mode 100644 index 50988a0a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/FullScreenRenderWindow.js +++ /dev/null @@ -1,199 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkRenderer from '../Core/Renderer.js'; -import vtkRenderWindow from '../Core/RenderWindow.js'; -import vtkRenderWindowInteractor from '../Core/RenderWindowInteractor.js'; -import vtkInteractorStyleTrackballCamera from '../../Interaction/Style/InteractorStyleTrackballCamera.js'; -import vtkURLExtract from '../../Common/Core/URLExtract.js'; -import '../../Common/Core/Points.js'; -import '../../Common/Core/DataArray.js'; -import '../../Common/DataModel/PolyData.js'; -import '../Core/Actor.js'; -import '../Core/Mapper.js'; -import '../OpenGL/RenderWindow.js'; -import '../WebGPU/RenderWindow.js'; - -// Process arguments from URL -const userParams = vtkURLExtract.extractURLParameters(); -const STYLE_CONTAINER = { - margin: '0', - padding: '0', - position: 'absolute', - top: '0', - left: '0', - width: '100%', - height: '100%', - overflow: 'hidden' -}; -const STYLE_CONTROL_PANEL = { - position: 'absolute', - left: '25px', - top: '25px', - backgroundColor: 'white', - borderRadius: '5px', - listStyle: 'none', - padding: '5px 10px', - margin: '0', - display: 'block', - border: 'solid 1px black', - maxWidth: 'calc(100% - 70px)', - maxHeight: 'calc(100% - 60px)', - overflow: 'auto' -}; -function applyStyle(el, style) { - Object.keys(style).forEach(key => { - el.style[key] = style[key]; - }); -} -function vtkFullScreenRenderWindow(publicAPI, model) { - model.classHierarchy.push('vtkFullScreenRenderWindow'); - const body = document.querySelector('body'); - - // Full screen DOM handler - if (!model.rootContainer) { - model.rootContainer = body; - } - if (!model.container) { - model.container = document.createElement('div'); - applyStyle(model.container, model.containerStyle || STYLE_CONTAINER); - model.rootContainer.appendChild(model.container); - } - - // apply 100% to html and body for fullscreen - if (model.rootContainer === body) { - document.documentElement.style.height = '100%'; - body.style.height = '100%'; - body.style.padding = '0'; - body.style.margin = '0'; - } - - // VTK renderWindow/renderer - model.renderWindow = vtkRenderWindow.newInstance(); - model.renderer = vtkRenderer.newInstance(); - model.renderWindow.addRenderer(model.renderer); - - // apiSpecificRenderWindow - model.apiSpecificRenderWindow = model.renderWindow.newAPISpecificView(userParams.viewAPI ?? model.defaultViewAPI); - model.apiSpecificRenderWindow.setContainer(model.container); - model.renderWindow.addView(model.apiSpecificRenderWindow); - - // Interactor - model.interactor = vtkRenderWindowInteractor.newInstance(); - model.interactor.setInteractorStyle(vtkInteractorStyleTrackballCamera.newInstance()); - model.interactor.setView(model.apiSpecificRenderWindow); - model.interactor.initialize(); - model.interactor.bindEvents(model.container); - - // Expose background - publicAPI.setBackground = model.renderer.setBackground; - publicAPI.removeController = () => { - const el = model.controlContainer; - if (el) { - el.parentNode.removeChild(el); - } - }; - publicAPI.setControllerVisibility = visible => { - model.controllerVisibility = visible; - if (model.controlContainer) { - if (visible) { - model.controlContainer.style.display = 'block'; - } else { - model.controlContainer.style.display = 'none'; - } - } - }; - publicAPI.toggleControllerVisibility = () => { - publicAPI.setControllerVisibility(!model.controllerVisibility); - }; - function handleKeypress(e) { - if (String.fromCharCode(e.charCode) === 'c') { - publicAPI.toggleControllerVisibility(); - } - } - publicAPI.addController = html => { - model.controlContainer = document.createElement('div'); - applyStyle(model.controlContainer, model.controlPanelStyle || STYLE_CONTROL_PANEL); - model.rootContainer.appendChild(model.controlContainer); - model.controlContainer.innerHTML = html; - publicAPI.setControllerVisibility(model.controllerVisibility); - model.rootContainer.addEventListener('keypress', handleKeypress); - }; - - // Update BG color - publicAPI.setBackground(...model.background); - - // Representation API - publicAPI.addRepresentation = representation => { - representation.getActors().forEach(actor => { - model.renderer.addActor(actor); - }); - }; - publicAPI.removeRepresentation = representation => { - representation.getActors().forEach(actor => model.renderer.removeActor(actor)); - }; - - // Properly release GL context - publicAPI.delete = macro.chain(publicAPI.setContainer, model.apiSpecificRenderWindow.delete, () => { - model.rootContainer?.removeEventListener('keypress', handleKeypress); - window.removeEventListener('resize', publicAPI.resize); - }, publicAPI.delete); - - // Handle window resize - publicAPI.resize = () => { - const dims = model.container.getBoundingClientRect(); - const devicePixelRatio = window.devicePixelRatio || 1; - model.apiSpecificRenderWindow.setSize(Math.floor(dims.width * devicePixelRatio), Math.floor(dims.height * devicePixelRatio)); - if (model.resizeCallback) { - model.resizeCallback(dims); - } - model.renderWindow.render(); - }; - publicAPI.setResizeCallback = cb => { - model.resizeCallback = cb; - publicAPI.resize(); - }; - if (model.listenWindowResize) { - window.addEventListener('resize', publicAPI.resize); - } - publicAPI.resize(); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - background: [0.32, 0.34, 0.43], - containerStyle: null, - controlPanelStyle: null, - // defaultViewAPI: undefined, - listenWindowResize: true, - resizeCallback: null, - controllerVisibility: true -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['renderWindow', 'renderer', 'apiSpecificRenderWindow', 'interactor', 'rootContainer', 'container', 'controlContainer']); - - // Object specific methods - vtkFullScreenRenderWindow(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend); - -// ---------------------------------------------------------------------------- - -var vtkFullScreenRenderWindow$1 = { - newInstance, - extend -}; - -export { vtkFullScreenRenderWindow$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/GenericRenderWindow.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/GenericRenderWindow.d.ts deleted file mode 100644 index afdd1f4f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/GenericRenderWindow.d.ts +++ /dev/null @@ -1,105 +0,0 @@ -import { vtkObject, vtkSubscription } from './../../interfaces'; -import { RGBAColor, RGBColor } from './../../types'; -import vtkRenderer from './../Core/Renderer'; -import vtkRenderWindow from './../Core/RenderWindow'; -import vtkRenderWindowInteractor from './../Core/RenderWindowInteractor'; -import vtkOpenGLRenderWindow from './../OpenGL/RenderWindow'; -import vtkWebGPURenderWindow from './../WebGPU/RenderWindow'; - -/** - * - */ -export interface IGenericRenderWindowInitialValues { - background?: RGBColor | RGBAColor; - listenWindowResize?: boolean; - container?: HTMLElement; -} - -export interface vtkGenericRenderWindow extends vtkObject { - /** - * Release GL context - */ - delete(): void; - - /** - * Get container element - */ - getContainer(): HTMLElement; - - /** - * Get interactor object - */ - getInteractor(): vtkRenderWindowInteractor; - - /** - * Get the render back-end specific render window. - */ - getApiSpecificRenderWindow(): vtkOpenGLRenderWindow | vtkWebGPURenderWindow; - - /** - * - */ - getRenderWindow(): vtkRenderWindow; - - /** - * - */ - getRenderer(): vtkRenderer; - - /** - * Method to register callback when the object is resize(). - * - * @param callback function - * @returns subscription object so you can easily unsubscribe later on - */ - onResize(callback: (instance: vtkObject) => any): vtkSubscription; - - /** - * Handle window resize - */ - resize(): void; - - /** - * Set background color - * @param {RGBColor|RGBAColor} background The background color. - * @returns true if the background color actually changed, false otherwise - */ - setBackground(background: RGBColor | RGBAColor): boolean; - - /** - * Set thecontainer element - * @param {HTMLElement} el The container element. - */ - setContainer(el: HTMLElement): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkGenericRenderWindow characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IGenericRenderWindowInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IGenericRenderWindowInitialValues -): void; - -/** - * Method used to create a new instance of vtkGenericRenderWindow - * @param {IGenericRenderWindowInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IGenericRenderWindowInitialValues -): vtkGenericRenderWindow; - -/** - * vtkGenericRenderWindow provides a skeleton for implementing a render window - * using one's own OpenGL context and drawable. - */ -export declare const vtkGenericRenderWindow: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkGenericRenderWindow; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/GenericRenderWindow.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/GenericRenderWindow.js deleted file mode 100644 index 5b784874..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/GenericRenderWindow.js +++ /dev/null @@ -1,119 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkRenderer from '../Core/Renderer.js'; -import vtkRenderWindow from '../Core/RenderWindow.js'; -import vtkRenderWindowInteractor from '../Core/RenderWindowInteractor.js'; -import vtkInteractorStyleTrackballCamera from '../../Interaction/Style/InteractorStyleTrackballCamera.js'; -import vtkURLExtract from '../../Common/Core/URLExtract.js'; -import '../../Common/Core/Points.js'; -import '../../Common/Core/DataArray.js'; -import '../../Common/DataModel/PolyData.js'; -import '../Core/Actor.js'; -import '../Core/Mapper.js'; -import '../OpenGL/RenderWindow.js'; -import '../WebGPU/RenderWindow.js'; - -// Process arguments from URL -const userParams = vtkURLExtract.extractURLParameters(); -function vtkGenericRenderWindow(publicAPI, model) { - // Capture resize trigger method to remove from publicAPI - const invokeResize = publicAPI.invokeResize; - delete publicAPI.invokeResize; - - // VTK renderWindow/renderer - model.renderWindow = vtkRenderWindow.newInstance(); - model.renderer = vtkRenderer.newInstance(); - model.renderWindow.addRenderer(model.renderer); - - // OpenGLRenderWindow - model._apiSpecificRenderWindow = model.renderWindow.newAPISpecificView(userParams.viewAPI ?? model.defaultViewAPI); - model.renderWindow.addView(model._apiSpecificRenderWindow); - - // Interactor - model.interactor = vtkRenderWindowInteractor.newInstance(); - model.interactor.setInteractorStyle(vtkInteractorStyleTrackballCamera.newInstance()); - model.interactor.setView(model._apiSpecificRenderWindow); - model.interactor.initialize(); - - // Expose background - publicAPI.setBackground = model.renderer.setBackground; - - // Update BG color - publicAPI.setBackground(...model.background); - - // Handle window resize - publicAPI.resize = () => { - if (model.container) { - const dims = model.container.getBoundingClientRect(); - const devicePixelRatio = window.devicePixelRatio || 1; - model._apiSpecificRenderWindow.setSize(Math.floor(dims.width * devicePixelRatio), Math.floor(dims.height * devicePixelRatio)); - invokeResize(); - model.renderWindow.render(); - } - }; - - // Handle DOM container relocation - publicAPI.setContainer = el => { - if (model.container) { - model.interactor.unbindEvents(model.container); - } - - // Switch container - model.container = el; - model._apiSpecificRenderWindow.setContainer(model.container); - - // Bind to new container - if (model.container) { - model.interactor.bindEvents(model.container); - } - }; - - // Properly release GL context - publicAPI.delete = macro.chain(publicAPI.setContainer, model._apiSpecificRenderWindow.delete, () => { - window.removeEventListener('resize', publicAPI.resize); - }, publicAPI.delete); - - // Handle size - if (model.listenWindowResize) { - window.addEventListener('resize', publicAPI.resize); - } - publicAPI.resize(); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - background: [0.32, 0.34, 0.43], - listenWindowResize: true, - container: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['renderWindow', 'renderer', '_apiSpecificRenderWindow', 'interactor', 'container']); - macro.moveToProtected(publicAPI, model, ['_apiSpecificRenderWindow']); - macro.event(publicAPI, model, 'resize'); - - // Object specific methods - vtkGenericRenderWindow(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend); - -// ---------------------------------------------------------------------------- - -var vtkGenericRenderWindow$1 = { - newInstance, - extend -}; - -export { vtkGenericRenderWindow$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/RemoteView.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/RemoteView.d.ts deleted file mode 100644 index 0e94fa59..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/RemoteView.d.ts +++ /dev/null @@ -1,212 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import vtkCanvasView from './CanvasView'; -import vtkImageStream from './../../IO/Core/ImageStream'; -import vtkViewStream from './../../IO/Core/ImageStream/ViewStream'; - -interface IRemoteViewInitialValues { - viewId?: string; - interactiveQuality?: number; - interactiveRatio?: number; - stillQuality?: number; - stillRatio?: number; - rpcMouseEvent?: string; - rpcGestureEvent?: any; - rpcWheelEvent?: any; - viewStream?: vtkViewStream; - canvasElement?: HTMLCanvasElement; -} - -export interface vtkRemoteView extends vtkObject { - /** - * Get container HTML element - */ - getContainer(): HTMLElement; - - /** - * Get vtkViewStream object - */ - getViewStream(): vtkViewStream; - - /** - * Get the canvas HTML element - */ - getCanvasElement(): HTMLCanvasElement; - - /** - * Get the vtkCanvasView object - */ - getCanvasView(): vtkCanvasView; - - /** - * - */ - getInteractor(): any; - - /** - * - */ - getInteractorStyle(): any; - - /** - * - */ - getInteractiveQuality(): number; - - /** - * - */ - getInteractiveRatio(): number; - - /** - * - */ - getStillQuality(): number; - - /** - * - */ - getStillRatio(): number; - - /** - * - */ - getSession(): any; - - /** - * - * @param session - */ - setSession(session: any): boolean; - - /** - * - */ - getRpcMouseEvent(): string; - - /** - * - * @param rpcMouseEvent - */ - setRpcMouseEvent(rpcMouseEvent: string): boolean; - - /** - * - */ - getRpcGestureEvent(): any; - - /** - * - * @param rpcGestureEvent - */ - setRpcGestureEvent(rpcGestureEvent: any): boolean; - - /** - * - */ - getRpcWheelEvent(): any; - - /** - * - * @param rpcWheelEvent - */ - setRpcWheelEvent(rpcWheelEvent: any): boolean; - - /** - * Release GL context - */ - delete(): void; - - /** - * - * @param viewStream - */ - setViewStream(viewStream: vtkViewStream): boolean; - - /** - * - * @param viewId - */ - setViewId(viewId: string): void; - - /** - * - * @param {HTMLElement} container The container HTML element. - */ - setContainer(container: HTMLElement): boolean; - - /** - * Handle window resize - */ - resize(): void; - - /** - * - */ - render(): void; - - /** - * - */ - resetCamera(): void; - - /** - * - * @param interactiveQuality - */ - setInteractiveQuality(interactiveQuality: number): boolean; - - /** - * - * @param interactiveRatio - */ - setInteractiveRatio(interactiveRatio: number): boolean; - - /** - * - * @param stillQuality - */ - setStillQuality(stillQuality: number): boolean; - - /** - * - * @param stillRatio - */ - setStillRatio(stillRatio: number): boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkRemoteView characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IRemoteViewInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IRemoteViewInitialValues -): void; - -/** - * Method used to create a new instance of vtkCanvasView - * @param {IRemoteViewInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IRemoteViewInitialValues -): vtkRemoteView; - -export function connectImageStream(session: any): void; - -export function disconnectImageStream(): void; - -/** - * vtkRemoteView provides a way to create a remote view. - */ -export declare const vtkRemoteView: { - newInstance: typeof newInstance; - extend: typeof extend; - SHARED_IMAGE_STREAM: vtkImageStream; - connectImageStream: typeof connectImageStream; - disconnectImageStream: typeof disconnectImageStream; -}; -export default vtkRemoteView; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/RemoteView.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/RemoteView.js deleted file mode 100644 index 4320502a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/RemoteView.js +++ /dev/null @@ -1,231 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCanvasView from './CanvasView.js'; -import vtkImageStream from '../../IO/Core/ImageStream.js'; -import vtkInteractorStyleRemoteMouse from '../../Interaction/Style/InteractorStyleRemoteMouse.js'; -import vtkRenderWindowInteractor from '../Core/RenderWindowInteractor.js'; - -const SHARED_IMAGE_STREAM = vtkImageStream.newInstance(); -const connectImageStream = SHARED_IMAGE_STREAM.connect; -const disconnectImageStream = SHARED_IMAGE_STREAM.disconnect; - -// ---------------------------------------------------------------------------- -// vtkRemoteView methods -// ---------------------------------------------------------------------------- - -function vtkRemoteView(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkRemoteView'); - - // Constructor - model.canvasView = vtkCanvasView.newInstance({ - canvas: model.canvasElement - }); - model.interactorStyle = vtkInteractorStyleRemoteMouse.newInstance(); - model.interactor = vtkRenderWindowInteractor.newInstance(); - model.interactor.setView(model.canvasView); - model.interactor.initialize(); - model.interactor.setInteractorStyle(model.interactorStyle); - - // Mouse - model.interactorStyle.onRemoteMouseEvent(e => { - if (model.session && model.rpcMouseEvent) { - model.session.call(model.rpcMouseEvent, [e]); - } - }); - // Wheel - model.interactorStyle.onRemoteWheelEvent(e => { - if (model.session && model.rpcWheelEvent) { - model.session.call(model.rpcWheelEvent, [e]); - } - }); - // Gesture - model.interactorStyle.onRemoteGestureEvent(e => { - if (model.session && model.rpcGestureEvent) { - model.session.call(model.rpcGestureEvent, [e]); - } - }); - - // -------------------------------------------------------------------------- - // API - // -------------------------------------------------------------------------- - - publicAPI.delete = macro.chain(() => { - model.session = null; - if (model.canvasView) { - model.canvasView.setViewStream(null); - model.canvasView.delete(); - } - if (model.interactor) { - model.interactor.delete(); - } - if (model.viewStream) { - model.viewStream.delete(); - } - }, publicAPI.delete); - publicAPI.getCanvasElement = () => model.canvasView.getCanvas(); - - // -------------------------------------------------------------------------- - // remote handing - // -------------------------------------------------------------------------- - - publicAPI.setViewStream = viewStream => { - model.viewStream = viewStream; - model.canvasView.setViewStream(model.viewStream); - - // Configure image quality - model.viewStream.setStillQuality(model.stillQuality); - model.viewStream.setStillRatio(model.stillRatio); - model.viewStream.setInteractiveQuality(model.interactiveQuality); - model.viewStream.setInteractiveRatio(model.interactiveRatio); - - // Link user interactions - model.interactor.onStartAnimation(model.viewStream.startInteraction); - model.interactor.onEndAnimation(model.viewStream.endInteraction); - publicAPI.setViewId(viewStream.getViewId()); - }; - publicAPI.setViewId = id => { - if (!model.viewStream) { - publicAPI.setViewStream(SHARED_IMAGE_STREAM.createViewStream(id)); - } - model.viewStream.setViewId(id); - model.interactorStyle.setRemoteEventAddOn({ - view: id - }); - publicAPI.modified(); - }; - - // -------------------------------------------------------------------------- - // DOM handling - // -------------------------------------------------------------------------- - - publicAPI.setContainer = container => { - if (model.container) { - model.interactor.unbindEvents(container); - } - - // Capture container - model.container = container; - model.canvasView.setContainer(model.container); - - // Attach listeners - if (container) { - model.interactor.bindEvents(container); - publicAPI.resize(); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.resize = () => { - if (model.container && model.canvasView) { - const { - width, - height - } = model.container.getBoundingClientRect(); - model.canvasView.setSize(width, height); - publicAPI.render(); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.render = () => { - if (model.viewStream) { - model.viewStream.render(); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.resetCamera = () => { - if (model.viewStream) { - model.viewStream.resetCamera(); - } - }; - - // -------------------------------------------------------------------------- - // viewStream setters - // -------------------------------------------------------------------------- - const internal = { - modified: publicAPI.modified - }; - macro.set(internal, model, ['interactiveQuality', 'interactiveRatio', 'stillQuality', 'stillRatio']); - publicAPI.setInteractiveQuality = q => { - const changeDetected = internal.setInteractiveQuality(q); - if (model.viewStream && changeDetected) { - model.viewStream.setInteractiveQuality(model.interactiveQuality); - } - return changeDetected; - }; - publicAPI.setInteractiveRatio = r => { - const changeDetected = internal.setInteractiveRatio(r); - if (model.viewStream && changeDetected) { - model.viewStream.setInteractiveRatio(model.interactiveRatio); - } - return changeDetected; - }; - publicAPI.setStillQuality = q => { - const changeDetected = internal.setStillQuality(q); - if (model.viewStream && changeDetected) { - model.viewStream.setStillQuality(model.stillQuality); - } - return changeDetected; - }; - publicAPI.setStillRatio = r => { - const changeDetected = internal.setStillRatio(r); - if (model.viewStream && changeDetected) { - model.viewStream.setStillRatio(model.stillRatio); - } - return changeDetected; - }; - - // Initialize viewStream if available - if (model.viewStream) { - publicAPI.setViewStream(model.viewStream); - } -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - viewId: '-1', - interactiveQuality: 60, - interactiveRatio: 1 / window.devicePixelRatio, - stillQuality: 100, - stillRatio: 1, - rpcMouseEvent: 'viewport.mouse.interaction', - rpcGestureEvent: null, - rpcWheelEvent: null, - canvasElement: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model, initialValues); - macro.get(publicAPI, model, ['container', 'viewStream', 'canvasView', 'interactor', 'interactorStyle', 'interactiveQuality', 'interactiveRatio', 'stillQuality', 'stillRatio', 'canvasElement']); - macro.setGet(publicAPI, model, ['session', 'rpcMouseEvent', 'rpcGestureEvent', 'rpcWheelEvent']); - - // Object methods - vtkRemoteView(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkRemoteView'); - -// ---------------------------------------------------------------------------- - -var vtkRemoteView$1 = { - newInstance, - extend, - SHARED_IMAGE_STREAM, - connectImageStream, - disconnectImageStream -}; - -export { connectImageStream, vtkRemoteView$1 as default, disconnectImageStream, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/RenderWindowWithControlBar.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/RenderWindowWithControlBar.d.ts deleted file mode 100644 index 5e33f7fb..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/RenderWindowWithControlBar.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { Placement } from './../../types'; -import vtkGenericRenderWindow, { - IGenericRenderWindowInitialValues, -} from './GenericRenderWindow'; - -/** - * - */ -export interface IRenderWindowWithControlBarInitialValues - extends IGenericRenderWindowInitialValues { - rootContainer?: HTMLElement; - controlPosition?: Placement; - controlSize?: number; -} - -export interface vtkRenderWindowWithControlBar extends vtkGenericRenderWindow { - /** - * Get control bar container element - */ - getControlContainer(): HTMLElement; - - /** - * Get RenderWindow container element - */ - getRenderWindowContainer(): HTMLElement; - - /** - * Get root container element - */ - getRootContainer(): HTMLElement; - - /** - * Set control container element - * @param {HTMLElement} el - */ - setContainer(el: HTMLElement): void; - - /** - * Set control container element - * @param {Number} size Size of the control bar. - */ - setControlSize(size: number): void; - - /** - * Set control container element - * @param {Placement} position Position of the control bar. - */ - setControlPosition(position: Placement): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkRenderWindowWithControlBar characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IRenderWindowWithControlBarInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IRenderWindowWithControlBarInitialValues -): void; - -/** - * Method used to create a new instance of vtkRenderWindowWithControlBar - * @param {IRenderWindowWithControlBarInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IRenderWindowWithControlBarInitialValues -): vtkRenderWindowWithControlBar; - -/** - * vtkRenderWindowWithControlBar provides a skeleton for implementing a render window - * with a control bar. - */ -export declare const vtkRenderWindowWithControlBar: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkRenderWindowWithControlBar; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/RenderWindowWithControlBar.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/RenderWindowWithControlBar.js deleted file mode 100644 index 2512ee31..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/RenderWindowWithControlBar.js +++ /dev/null @@ -1,161 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkGenericRenderWindow from './GenericRenderWindow.js'; -import { s as style } from './RenderWindowWithControlBar/RenderWindowWithControlBar.module.css.js'; -import '../../Common/Core/Points.js'; -import '../../Common/Core/DataArray.js'; -import '../../Common/DataModel/PolyData.js'; -import '../Core/Actor.js'; -import '../Core/Mapper.js'; - -// ---------------------------------------------------------------------------- -// Utility functions to control style -// ---------------------------------------------------------------------------- - -const CONTROL_STYLE = { - left(size) { - return { - top: '0', - left: '0', - bottom: '0', - right: 'unset', - height: 'unset', - width: `${size}px` - }; - }, - right(size) { - return { - top: '0', - right: '0', - bottom: '0', - left: 'unset', - height: 'unset', - width: `${size}px` - }; - }, - top(size) { - return { - top: '0', - left: '0', - right: '0', - bottom: 'unset', - width: 'unset', - height: `${size}px` - }; - }, - bottom(size) { - return { - bottom: '0', - left: '0', - right: '0', - top: 'unset', - width: 'unset', - height: `${size}px` - }; - } -}; -function applyControlStyle(el, position, size) { - const styleToApply = CONTROL_STYLE[position](size); - Object.keys(styleToApply).forEach(key => { - el.style[key] = styleToApply[key]; - }); -} - -// ---------------------------------------------------------------------------- - -function vtkRenderWindowWithControlBar(publicAPI, model) { - const superClass = { - ...publicAPI - }; - function resetStyleToZero(key) { - model.renderWindowContainer.style[key] = '0px'; - } - function updateControlerStyle() { - ['left', 'right', 'top', 'bottom'].forEach(resetStyleToZero); - model.renderWindowContainer.style[model.controlPosition] = `${model.controlSize}px`; - applyControlStyle(model.controlContainer, model.controlPosition, model.controlSize); - } - - // Create container for the vtkGenericRenderWindow - model.renderWindowContainer = document.createElement('div'); - model.renderWindowContainer.classList.add(style.renderWindow); - superClass.setContainer(model.renderWindowContainer); - - // Create container for controls - model.controlContainer = document.createElement('div'); - model.controlContainer.classList.add(style.control); - - // Handle DOM container relocation - publicAPI.setContainer = el => { - if (model.rootContainer) { - model.rootContainer.removeChild(model.container); - model.rootContainer.removeChild(model.controlContainer); - model.rootContainer.classList.remove(style.rootContainer); - } - - // Switch container - model.rootContainer = el; - - // Bind to new container - if (model.rootContainer) { - model.rootContainer.appendChild(model.container); - model.rootContainer.appendChild(model.controlContainer); - model.rootContainer.classList.add(style.rootContainer); - updateControlerStyle(); - publicAPI.resize(); - } - }; - publicAPI.setControlSize = size => { - model.controlSize = size; - updateControlerStyle(); - publicAPI.modified(); - }; - publicAPI.setControlPosition = pos => { - model.controlPosition = pos; - updateControlerStyle(); - publicAPI.modified(); - }; - - // Handle size - if (model.listenWindowResize) { - window.addEventListener('resize', publicAPI.resize); - } - updateControlerStyle(); - publicAPI.resize(); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - rootContainer: null, - controlPosition: 'left', - controlSize: 10 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - vtkGenericRenderWindow.extend(publicAPI, model); - macro.get(publicAPI, model, ['rootContainer', 'controlContainer', 'renderWindowContainer']); - - // Object specific methods - vtkRenderWindowWithControlBar(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkRenderWindowWithControlBar'); - -// ---------------------------------------------------------------------------- - -var vtkRenderWindowWithControlBar$1 = { - newInstance, - extend -}; - -export { vtkRenderWindowWithControlBar$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/RenderWindowWithControlBar/RenderWindowWithControlBar.module.css.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/RenderWindowWithControlBar/RenderWindowWithControlBar.module.css.js deleted file mode 100644 index ddf744d6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/RenderWindowWithControlBar/RenderWindowWithControlBar.module.css.js +++ /dev/null @@ -1,7 +0,0 @@ -import { s as styleInject } from '../../../vendor/style-inject/dist/style-inject.es.js'; - -var css_248z = ".RenderWindowWithControlBar-module_rootContainer__1xqVd {\n position: relative;\n}\n\n.RenderWindowWithControlBar-module_renderWindow__2mz6Z {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n\n.RenderWindowWithControlBar-module_control__38_dI {\n z-index: 1;\n position: absolute;\n}\n"; -var style = {"rootContainer":"RenderWindowWithControlBar-module_rootContainer__1xqVd","renderWindow":"RenderWindowWithControlBar-module_renderWindow__2mz6Z","control":"RenderWindowWithControlBar-module_control__38_dI"}; -styleInject(css_248z); - -export { style as s }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/RenderingAPIs.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/RenderingAPIs.js deleted file mode 100644 index 37128db4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/RenderingAPIs.js +++ /dev/null @@ -1,2 +0,0 @@ -import '../OpenGL/RenderWindow.js'; -import '../WebGPU/RenderWindow.js'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/SynchronizableRenderWindow.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/SynchronizableRenderWindow.d.ts deleted file mode 100644 index 7f458893..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/SynchronizableRenderWindow.d.ts +++ /dev/null @@ -1,190 +0,0 @@ -import { Nullable } from './../../types'; -import vtkRenderWindow, { - IRenderWindowInitialValues, -} from './../Core/RenderWindow'; - -// Keeps state for client / server scene synchronization. -export interface ISynchronizerContext { - // Set a function that fetches the data array for the given object. - setFetchArrayFunction( - fetcher: (hash: string, dataType: any) => Promise - ): void; - // Invokes the fetcher registered by setFetchArrayFunction. - getArray( - sha: string, - dataType: any, - context: ISynchronizerContext - ): Promise; - emptyCachedArrays(): void; - freeOldArrays(threshold: number, context: ISynchronizerContext): void; - - // instanceMap - getInstance(id: any): any; - getInstanceId(instance: any): any | null; - registerInstance(id: any, instance: any): void; - unregister(id: any): void; - emptyCachedInstances(): void; - - // sceneMtimeHandler - getMtime(): number; - incrementMtime(viewId: string): number; - setActiveViewId(viewId: string): void; - getActiveViewId(): string; - - // TODO: fill progresshandler -} - -export interface ISynchronizableRenderWindowInitialValues - extends IRenderWindowInitialValues { - synchronizerContextName?: string; // default: 'default': - synchronizerContext?: Nullable; - synchronizedViewId?: Nullable; -} - -// Server-side view state. -export interface IViewState { - id: string; - // vtk object type. - type: string; - // vtk object mtime. - mtime: number; - // ID of the parent. Null for the root. - parent?: Nullable; - properties?: { [key: string]: any }; - // Child objects. - dependencies?: IViewState[]; - extra?: any; - // List of [methodName, args] to be invoked on the object. - calls?: [string, string[]][]; - // ViewState may contain other arbitrary key / value pairs. - [key: string]: any; -} - -export interface vtkSynchronizableRenderWindow extends vtkRenderWindow { - /** - * - */ - getSynchronizerContext(): ISynchronizerContext; - - // methods added by createSyncFunction - - /** - * - * @param {IViewState} state - */ - synchronize(state: IViewState): Promise; - - /** - * - * @param {String} viewId - */ - setSynchronizedViewId(viewId: string): void; - - /** - * - */ - getSynchronizedViewId(): string; - - /** - * - * @param {Number} v - */ - updateGarbageCollectorThreshold(v: number): void; - - /** - * - */ - getManagedInstanceIds(): string[]; - - /** - * - */ - clearOneTimeUpdaters(): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkCellArray characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ISynchronizableRenderWindowInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ISynchronizableRenderWindowInitialValues -): void; - -/** - * Method used to create a new instance of vtkSynchronizableRenderWindow - * @param {ISynchronizableRenderWindowInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ISynchronizableRenderWindowInitialValues -): vtkSynchronizableRenderWindow; - -/** - * - * @param {String} [name] - */ -export function getSynchronizerContext(name?: string): ISynchronizerContext; - -/** - * - * @param {String} name - * @param {Nullable} ctx - */ -export function setSynchronizerContext( - name: string, - ctx: Nullable -); - -/** - * - * @param name of the context to remove and if nothing provided clear them all. - */ -export function clearSynchronizerContext(name: Nullable); - -/** - * - * @param {vtkRenderWindow} renderWindow - * @param {String} [name] - */ -export function decorate(renderWindow: vtkRenderWindow, name?: string): object; - -/** - * - */ -export function createInstanceMap(): object; - -/** - * - */ -export function createArrayHandler(): object; - -/** - * - */ -export function createProgressHandler(): object; - -/** - * - */ -export function createSceneMtimeHandler(): object; - -/** - * - */ -export declare const vtkSynchronizableRenderWindow: { - newInstance: typeof newInstance; - getSynchronizerContext: typeof getSynchronizerContext; - setSynchronizerContext: typeof setSynchronizerContext; - clearSynchronizerContext: typeof clearSynchronizerContext; - decorate: typeof decorate; - createInstanceMap: typeof createInstanceMap; - createArrayHandler: typeof createArrayHandler; - createProgressHandler: typeof createProgressHandler; - createSceneMtimeHandler: typeof createSceneMtimeHandler; - vtkObjectManager: object; -}; -export default vtkSynchronizableRenderWindow; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/SynchronizableRenderWindow.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/SynchronizableRenderWindow.js deleted file mode 100644 index 9e7f39b4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/SynchronizableRenderWindow.js +++ /dev/null @@ -1,345 +0,0 @@ -import { n as newInstance$1, f as event, g as get, h as chain, a as newTypedArray, t as traverseInstanceTree } from '../../macros2.js'; -import Base64 from '../../Common/Core/Base64.js'; -import vtkRenderWindow from '../Core/RenderWindow.js'; -import vtkObjectManager from './SynchronizableRenderWindow/ObjectManager.js'; - -const SYNCHRONIZER_CONTEXTS = {}; - -// ---------------------------------------------------------------------------- -// Static methods -// ---------------------------------------------------------------------------- - -function createArrayHandler() { - const dataArrayCache = {}; - let arrayFetcher = null; - function setFetchArrayFunction(fetcher) { - arrayFetcher = fetcher; - } - function getArray(sha, dataType, context) { - const arrayEntry = dataArrayCache[sha]; - if (arrayEntry) { - arrayEntry.mtimes[context.getActiveViewId()] = context.getMTime(); - return new Promise((resolve, reject) => { - resolve(arrayEntry.array); - }); - } - if (!arrayFetcher) { - return Promise.reject(new Error('No array fetcher found, please use "setArrayFetcher" to provide one')); - } - return new Promise((resolve, reject) => { - arrayFetcher(sha).then(data => { - let buffer = data; - if (typeof data === 'string') { - buffer = Base64.toArrayBuffer(data); - } - if (buffer instanceof Blob) { - const fileReader = new FileReader(); - fileReader.onload = () => { - const array = newTypedArray(dataType, fileReader.result); - const mtimes = { - [context.getActiveViewId()]: context.getMTime() - }; - dataArrayCache[sha] = { - mtimes, - array - }; - resolve(array); - }; - fileReader.readAsArrayBuffer(buffer); - } else { - const array = newTypedArray(dataType, buffer); - const mtimes = { - [context.getActiveViewId()]: context.getMTime() - }; - dataArrayCache[sha] = { - mtimes, - array - }; - resolve(array); - } - }, error => { - console.log('Error getting data array:'); - console.log(error); - reject(error); - }); - }); - } - function emptyCachedArrays() { - Object.keys(dataArrayCache).forEach(key => { - delete dataArrayCache[key]; - }); - } - function freeOldArrays(threshold, context) { - const mtimeThreshold = context.getMTime() - threshold; - Object.keys(dataArrayCache).filter(key => dataArrayCache[key].mtimes[context.getActiveViewId()]).filter(key => dataArrayCache[key].mtimes[context.getActiveViewId()] < mtimeThreshold).forEach(key => { - delete dataArrayCache[key]; - }); - } - return { - setFetchArrayFunction, - getArray, - emptyCachedArrays, - freeOldArrays - }; -} - -// ---------------------------------------------------------------------------- - -function createInstanceMap() { - const instances = {}; - function getInstance(id) { - return instances[id]; - } - function getInstanceId(instance) { - let instanceId = null; - Object.keys(instances).forEach(id => { - if (instance === instances[id]) { - instanceId = id; - } - }); - return instanceId; - } - function registerInstance(id, instance) { - instances[id] = instance; - instance.set({ - remoteId: id - }, true, true); - } - function unregisterInstance(id) { - delete instances[id]; - } - function emptyCachedInstances() { - Object.keys(instances).forEach(key => { - delete instances[key]; - }); - } - return { - getInstance, - getInstanceId, - registerInstance, - unregisterInstance, - emptyCachedInstances - }; -} - -// ---------------------------------------------------------------------------- - -function createProgressHandler() { - let readyCount = 0; - const publicAPI = { - start() { - readyCount += 1; - publicAPI.invokeProgressEvent(readyCount); - }, - end() { - readyCount -= 1; - publicAPI.invokeProgressEvent(readyCount); - if (readyCount === 0) { - publicAPI.invokeProgressDone(); - } - }, - resetProgress() { - readyCount = 0; - } - }; - const model = {}; - event(publicAPI, model, 'progressEvent'); - event(publicAPI, model, 'progressDone'); - return publicAPI; -} - -// ---------------------------------------------------------------------------- - -function createSceneMtimeHandler() { - const mtimes = {}; - let activeViewId = 'default'; - function getMTime(viewId) { - const key = viewId || activeViewId; - return mtimes[key] || 1; - } - function incrementMTime(viewId) { - const key = viewId || activeViewId; - if (!mtimes[key]) { - mtimes[key] = 1; - } - mtimes[key] += 1; - } - function setActiveViewId(viewId) { - activeViewId = viewId; - } - function getActiveViewId() { - return activeViewId; - } - return { - getMTime, - incrementMTime, - setActiveViewId, - getActiveViewId - }; -} - -// ---------------------------------------------------------------------------- - -function getSynchronizerContext() { - let name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'default'; - let ctx = SYNCHRONIZER_CONTEXTS[name]; - if (!ctx) { - ctx = { - ...createArrayHandler(), - ...createInstanceMap(), - ...createProgressHandler(), - ...createSceneMtimeHandler() - }; - SYNCHRONIZER_CONTEXTS[name] = ctx; - } - return ctx; -} - -// ---------------------------------------------------------------------------- - -function setSynchronizerContext(name, ctx) { - SYNCHRONIZER_CONTEXTS[name] = ctx; -} -function clearSynchronizerContext(name) { - if (name && SYNCHRONIZER_CONTEXTS[name]) { - delete SYNCHRONIZER_CONTEXTS[name]; - } - if (!name) { - const keys = Object.keys(SYNCHRONIZER_CONTEXTS); - for (let i = 0; i < keys.length; i++) { - delete SYNCHRONIZER_CONTEXTS[keys[i]]; - } - } -} - -// ---------------------------------------------------------------------------- - -function createSyncFunction(renderWindow, synchronizerContext) { - let lastMtime = -1; - let gcThreshold = 100; - const getManagedInstanceId = instance => instance.get('managedInstanceId').managedInstanceId; - const getManagedInstanceIds = () => traverseInstanceTree(renderWindow, getManagedInstanceId); - function clearOneTimeUpdaters() { - vtkObjectManager.clearOneTimeUpdaters(getManagedInstanceIds()); - } - function setSynchronizedViewId(synchronizedViewId) { - renderWindow.set({ - synchronizedViewId - }, true, true); - } - function getSynchronizedViewId() { - return renderWindow.get('synchronizedViewId').synchronizedViewId; - } - function updateGarbageCollectorThreshold(v) { - gcThreshold = v; - } - function synchronize(state) { - if (!getSynchronizedViewId()) { - setSynchronizedViewId(state.id); - } - const mtime = state.mtime || 0; - if (getSynchronizedViewId() === state.id && lastMtime < mtime) { - return new Promise((resolve, reject) => { - const subscription = synchronizerContext.onProgressDone(() => { - subscription.unsubscribe(); - renderWindow.render(); - resolve(true); - }); - lastMtime = mtime; - synchronizerContext.setActiveViewId(state.id); - synchronizerContext.incrementMTime(); - vtkObjectManager.updateRenderWindow(renderWindow, state, synchronizerContext); - synchronizerContext.freeOldArrays(gcThreshold, synchronizerContext); - }); - } - return Promise.resolve(false); - } - return { - synchronize, - setSynchronizedViewId, - getSynchronizedViewId, - updateGarbageCollectorThreshold, - getManagedInstanceIds, - clearOneTimeUpdaters - }; -} - -// ---------------------------------------------------------------------------- -// vtkSynchronizableRenderWindow methods -// ---------------------------------------------------------------------------- - -function vtkSynchronizableRenderWindow(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkSynchronizableRenderWindow'); - if (!model.synchronizerContext) { - model.synchronizerContext = getSynchronizerContext(model.synchronizerContextName); - } - const addOn = createSyncFunction(publicAPI, model.synchronizerContext); - Object.keys(addOn).forEach(methodName => { - if (publicAPI[methodName]) { - publicAPI[methodName] = chain(publicAPI[methodName], addOn[methodName]); - } else { - publicAPI[methodName] = addOn[methodName]; - } - }); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - synchronizerContextName: 'default', - synchronizerContext: null, - synchronizedViewId: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - vtkRenderWindow.extend(publicAPI, model); - get(publicAPI, model, ['synchronizerContext']); - - // Object methods - vtkSynchronizableRenderWindow(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkSynchronizableRenderWindow'); - -// ---------------------------------------------------------------------------- -// More Static methods -// ---------------------------------------------------------------------------- - -function decorate(renderWindow) { - let name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default'; - const addOn = createSyncFunction(renderWindow, getSynchronizerContext(name)); - return { - ...addOn, - ...renderWindow, - delete: chain(renderWindow.delete, addOn.delete) - }; -} - -// ---------------------------------------------------------------------------- - -var vtkSynchronizableRenderWindow$1 = { - newInstance, - extend, - getSynchronizerContext, - setSynchronizerContext, - clearSynchronizerContext, - decorate, - createInstanceMap, - createArrayHandler, - createProgressHandler, - createSceneMtimeHandler, - vtkObjectManager -}; - -export { DEFAULT_VALUES, vtkSynchronizableRenderWindow$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/SynchronizableRenderWindow/BehaviorManager.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/SynchronizableRenderWindow/BehaviorManager.js deleted file mode 100644 index c7fd3024..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/SynchronizableRenderWindow/BehaviorManager.js +++ /dev/null @@ -1,101 +0,0 @@ -import vtkCameraSynchronizer from './BehaviorManager/CameraSynchronizer.js'; - -const BEHAVIORS = {}; -class CameraSync { - constructor(ctx, config) { - this.ctx = ctx; - this.behavior = vtkCameraSynchronizer.newInstance(this.getProperties(config)); - this.behavior.update(); - } - getProperties(_ref) { - let { - actorBounds, - srcRenderer, - dstRenderer - } = _ref; - const distance = 3.4 * Math.max(actorBounds[1] - actorBounds[0], actorBounds[3] - actorBounds[2], actorBounds[5] - actorBounds[4]); - const focalPoint = [0.5 * (actorBounds[0] + actorBounds[1]), 0.5 * (actorBounds[2] + actorBounds[3]), 0.5 * (actorBounds[4] + actorBounds[5])]; - const mode = vtkCameraSynchronizer.SynchronizationMode.MODE_ORIENTATION; - return { - distance, - focalPoint, - mode, - srcRenderer: this.ctx.getInstance(srcRenderer), - dstRenderer: this.ctx.getInstance(dstRenderer) - }; - } - update(config) { - this.behavior.set(this.getProperties(config)); - this.behavior.update(); - } - delete() { - this.behavior.delete(); - } -} -const BEHAVIORS_TYPES = { - CameraSync -}; -function applyBehaviors(renderWindow, state, context) { - const rwId = renderWindow.get('synchronizedViewId').synchronizedViewId; - if (!state.behaviors || !rwId) { - return; - } - // Apply auto behavior - if (!BEHAVIORS[rwId]) { - BEHAVIORS[rwId] = {}; - } - const localBehaviors = BEHAVIORS[rwId]; - if (state.behaviors.autoOrientation) { - const renderers = renderWindow.getRenderers(); - if (!localBehaviors.autoOrientationAxes && renderers.length === 2) { - let srcRenderer = null; - let dstRenderer = null; - for (let i = 0; i < renderers.length; i++) { - const renderer = renderers[i]; - if (renderer.getInteractive()) { - srcRenderer = renderer; - } else { - dstRenderer = renderer; - } - } - if (srcRenderer && dstRenderer) { - localBehaviors.autoOrientationAxes = vtkCameraSynchronizer.newInstance({ - srcRenderer, - dstRenderer - }); - } - } - if (localBehaviors.autoOrientationAxes && renderers.length !== 2) { - localBehaviors.autoOrientationAxes.delete(); - delete localBehaviors.autoOrientationAxes; - } - } - const currentSets = Object.keys(state.behaviors); - const existingSets = Object.keys(localBehaviors); - for (let i = 0; i < currentSets.length; i++) { - const key = currentSets[i]; - if (!localBehaviors[key]) { - const config = state.behaviors[key]; - if (BEHAVIORS_TYPES[config.type]) { - localBehaviors[key] = new BEHAVIORS_TYPES[config.type](context, config); - } else { - console.log('No mapping for', config); - } - } else { - localBehaviors[key].update(state.behaviors[key]); - } - } - for (let i = 0; i < existingSets.length; i++) { - const key = currentSets[i]; - if (!state.behaviors[key]) { - // Need to delete previously created behavior - localBehaviors[key].delete(); - delete localBehaviors[key]; - } - } -} -var BehaviorManager = { - applyBehaviors -}; - -export { applyBehaviors, BehaviorManager as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/SynchronizableRenderWindow/BehaviorManager/CameraSynchronizer.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/SynchronizableRenderWindow/BehaviorManager/CameraSynchronizer.js deleted file mode 100644 index 133ad693..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/SynchronizableRenderWindow/BehaviorManager/CameraSynchronizer.js +++ /dev/null @@ -1,121 +0,0 @@ -import { n as newInstance$1, o as obj, e as setGet, l as setGetArray, h as chain } from '../../../../macros2.js'; -import { l as normalize } from '../../../../Common/Core/Math/index.js'; - -const MODE_RESET_CAMERA = 'resetcamera'; -const MODE_ORIENTATION = 'orientation'; -const MODE_SAME = 'same'; -const SynchronizationMode = { - MODE_RESET_CAMERA, - MODE_ORIENTATION, - MODE_SAME -}; -function vtkCameraSynchronizer(publicAPI, model) { - model.classHierarchy.push('vtkCameraSynchronizer'); - const cameraState = new Float64Array(9); - const direction = new Float64Array(3); - const subscriptions = []; - function updateListeners() { - while (subscriptions.length) { - subscriptions.pop().unsubscribe(); - } - if (!model.srcRenderer || !model.dstRenderer) { - return; - } - const srcCamera = model.srcRenderer.getActiveCamera(); - const interactor = model.srcRenderer.getRenderWindow().getInteractor(); - subscriptions.push(srcCamera.onModified(() => { - if (!interactor.isAnimating()) { - publicAPI.update(); - } - })); - subscriptions.push(interactor.onAnimation(publicAPI.update)); - subscriptions.push(interactor.onEndAnimation(publicAPI.update)); - } - - // Update listeners automatically - model._onSrcRendererChanged = updateListeners; - model._onDstRendererChanged = updateListeners; - function updatePreviousValues(position, focalPoint, viewUp) { - if (cameraState[0] !== position[0] || cameraState[1] !== position[1] || cameraState[2] !== position[2] || cameraState[3] !== focalPoint[0] || cameraState[4] !== focalPoint[1] || cameraState[5] !== focalPoint[2] || cameraState[6] !== viewUp[0] || cameraState[7] !== viewUp[1] || cameraState[8] !== viewUp[2]) { - cameraState[0] = position[0]; - cameraState[1] = position[1]; - cameraState[2] = position[2]; - cameraState[3] = focalPoint[0]; - cameraState[4] = focalPoint[1]; - cameraState[5] = focalPoint[2]; - cameraState[6] = viewUp[0]; - cameraState[7] = viewUp[1]; - cameraState[8] = viewUp[2]; - return cameraState; - } - return false; - } - publicAPI.update = () => { - if (!model.active || !model.srcRenderer || !model.dstRenderer) { - return; - } - const srcCamera = model.srcRenderer.getActiveCamera(); - const dstCamera = model.dstRenderer.getActiveCamera(); - const position = srcCamera.getReferenceByName('position'); - const focalPoint = srcCamera.getReferenceByName('focalPoint'); - const viewUp = srcCamera.getReferenceByName('viewUp'); - const change = updatePreviousValues(position, focalPoint, viewUp); - if (!change) { - return; - } - if (model.mode === MODE_ORIENTATION) { - direction[0] = change[0] - change[3]; - direction[1] = change[1] - change[4]; - direction[2] = change[2] - change[5]; - normalize(direction); - dstCamera.setPosition(model.focalPoint[0] + model.distance * direction[0], model.focalPoint[1] + model.distance * direction[1], model.focalPoint[2] + model.distance * direction[2]); - dstCamera.setFocalPoint(model.focalPoint[0], model.focalPoint[1], model.focalPoint[2]); - dstCamera.setViewUp(change[6], change[7], change[8]); - } else { - dstCamera.setPosition(change[0], change[1], change[2]); - dstCamera.setFocalPoint(change[3], change[4], change[5]); - dstCamera.setViewUp(change[6], change[7], change[8]); - } - if (model.mode === MODE_RESET_CAMERA) { - model.dstRenderer.resetCamera(); - } - }; - publicAPI.delete = chain(() => publicAPI.setSrcRenderer(null), - // Will clear any listener - publicAPI.delete); - - // If src/dstRenderer provided at constructor register listeners - updateListeners(); -} -const DEFAULT_VALUES = { - mode: MODE_ORIENTATION, - focalPoint: [0, 0, 0], - distance: 6.8, - active: true - // srcRenderer: null, - // dstRenderer: null, -}; - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - obj(publicAPI, model); - setGet(publicAPI, model, ['mode', 'active', 'srcRenderer', 'dstRenderer', 'distance']); - setGetArray(publicAPI, model, ['focalPoint'], 3, 0); - - // Object methods - vtkCameraSynchronizer(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkCameraSynchronizer'); -var vtkCameraSynchronizer$1 = { - newInstance, - extend, - SynchronizationMode -}; - -export { DEFAULT_VALUES, MODE_ORIENTATION, MODE_RESET_CAMERA, MODE_SAME, SynchronizationMode, vtkCameraSynchronizer$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/SynchronizableRenderWindow/ObjectManager.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/SynchronizableRenderWindow/ObjectManager.d.ts deleted file mode 100644 index faa15217..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/SynchronizableRenderWindow/ObjectManager.d.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { vtkObject } from './../../../interfaces'; -import { Nullable } from './../../../types'; -import { ISynchronizerContext, IViewState } from '../SynchronizableRenderWindow'; - -export type BuilderFunction = ( - type: string, - initialProps?: Record -) => Nullable; -export type UpdaterFunction = ( - instance: vtkObject, - state: IViewState, - context: ISynchronizerContext -) => void; - -export interface IObjectManager { - /** - * Build a vtkObject. - */ - build: BuilderFunction; - - /** - * @param {String} type The type to update - * @param {vtkObject} instance The specific instance - * @param {IViewState} props - * @param {ISynchronizerContext} context - */ - update( - type: string, - instance: vtkObject, - props: IViewState, - context: ISynchronizerContext - ): Promise; - - /** - * Defines a new type handler with the specified builder and updater functions - * - * @param {String} type The type you wish to register - * @param {BuilderFunction} [buildFn] The builder function to associate with the type - * @param {UpdaterFunction} [updateFn] The updater function to associate with the type - */ - setTypeMapping( - type: string, - buildFn?: BuilderFunction, - updateFn?: UpdaterFunction - ): void; - - /** - * Clear all type mappings - */ - clearTypeMapping(): void; - - /** - * Get a list of all supported types - * - * @returns {string[]} - */ - getSupportedTypes(): string[]; - - /** - * Clear all one time updaters - */ - clearOneTimeUpdaters(): void; - - /** - * Update the associated render window - */ - updateRenderWindow(): void; - - /** - * Register a new type to exclude - * - * @param {string} type The type to exclude - * @param {string} propertyName The property name to exclude - * @param {unknown} propertyValue The property value to exclude - */ - excludeInstance( - type: string, - propertyName: string, - propertyValue: unknown - ): void; - - /** - * Set the default types mapping - * - * @param {boolean} [reset] Clear all existing type mappings, defaults to true - */ - setDefaultMapping(reset?: boolean): void; - - /** - * Apply the default aliases - */ - applyDefaultAliases(): void; - - /** - * Always update the camera - */ - alwaysUpdateCamera(): void; -} - -declare const _default: IObjectManager; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/SynchronizableRenderWindow/ObjectManager.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/SynchronizableRenderWindow/ObjectManager.js deleted file mode 100644 index 8feec530..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/SynchronizableRenderWindow/ObjectManager.js +++ /dev/null @@ -1,723 +0,0 @@ -import { q as capitalize } from '../../../macros2.js'; -import vtkActor from '../../Core/Actor.js'; -import vtkCamera from '../../Core/Camera.js'; -import vtkColorTransferFunction from '../../Core/ColorTransferFunction.js'; -import vtkDataArray from '../../../Common/Core/DataArray.js'; -import vtkPoints from '../../../Common/Core/Points.js'; -import vtkCellArray from '../../../Common/Core/CellArray.js'; -import vtkGlyph3DMapper from '../../Core/Glyph3DMapper.js'; -import vtkLight from '../../Core/Light.js'; -import vtkLookupTable from '../../../Common/Core/LookupTable.js'; -import vtkMapper from '../../Core/Mapper.js'; -import vtkPolyData from '../../../Common/DataModel/PolyData.js'; -import vtkImageData from '../../../Common/DataModel/ImageData.js'; -import vtkProperty from '../../Core/Property.js'; -import vtkRenderer from '../../Core/Renderer.js'; -import vtkRenderWindow from '../../Core/RenderWindow.js'; -import vtkTexture from '../../Core/Texture.js'; -import vtkVolume from '../../Core/Volume.js'; -import vtkVolumeMapper from '../../Core/VolumeMapper.js'; -import vtkVolumeProperty from '../../Core/VolumeProperty.js'; -import vtkImageSlice from '../../Core/ImageSlice.js'; -import vtkImageMapper from '../../Core/ImageMapper.js'; -import vtkImageProperty from '../../Core/ImageProperty.js'; -import vtkPiecewiseFunction from '../../../Common/DataModel/PiecewiseFunction.js'; -import vtkCubeAxesActor from '../../Core/CubeAxesActor.js'; -import vtkScalarBarActor from '../../Core/ScalarBarActor.js'; -import vtkAxesActor from '../../Core/AxesActor.js'; -import BehaviorManager from './BehaviorManager.js'; - -// ---------------------------------------------------------------------------- -// Some internal, module-level variables and methods -// ---------------------------------------------------------------------------- - -const TYPE_HANDLERS = {}; -const WRAPPED_ID_RE = /instance:\${([^}]+)}/; -const WRAP_ID = id => `instance:$\{${id}}`; -const ONE_TIME_INSTANCE_TRACKERS = {}; -const SKIPPED_INSTANCE_IDS = []; -const EXCLUDE_INSTANCE_MAP = {}; -const DATA_ARRAY_MAPPER = { - vtkPoints, - vtkCellArray, - vtkDataArray -}; - -// ---------------------------------------------------------------------------- - -function extractCallArgs(synchronizerContext, argList) { - return argList.map(arg => { - const m = WRAPPED_ID_RE.exec(arg); - if (m) { - return synchronizerContext.getInstance(m[1]); - } - return arg; - }); -} - -// ---------------------------------------------------------------------------- - -function extractInstanceIds(argList) { - return argList.map(arg => WRAPPED_ID_RE.exec(arg)).filter(m => m).map(m => m[1]); -} - -// ---------------------------------------------------------------------------- - -function extractDependencyIds(state) { - let depList = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; - if (state.dependencies) { - state.dependencies.forEach(childState => { - depList.push(childState.id); - extractDependencyIds(childState, depList); - }); - } - return depList; -} - -// ---------------------------------------------------------------------------- - -function bindArrays(arraysToBind) { - while (arraysToBind.length) { - const [fn, args] = arraysToBind.shift(); - fn(...args); - } -} - -// ---------------------------------------------------------------------------- - -function createNewArrayHandler(instance, arrayMetadata, arraysToBind) { - return values => { - const regMethod = arrayMetadata.registration ? arrayMetadata.registration : 'addArray'; - const location = arrayMetadata.location ? instance.getReferenceByName(arrayMetadata.location) : instance; - - // Try to prevent unncessary modified - let previousArray = null; - if (arrayMetadata.location) { - previousArray = instance.getReferenceByName(arrayMetadata.location).getArray(arrayMetadata.name); - } else { - previousArray = instance[`get${regMethod.substring(3)}`](); - } - if (previousArray) { - if (previousArray.getData() !== values) { - arraysToBind.push([previousArray.setData, [values, arrayMetadata.numberOfComponents]]); - } - return previousArray; - } - const vtkClass = arrayMetadata.vtkClass ? arrayMetadata.vtkClass : 'vtkDataArray'; - const array = DATA_ARRAY_MAPPER[vtkClass].newInstance({ - ...arrayMetadata, - values - }); - arraysToBind.push([location[regMethod], [array]]); - return array; - }; -} - -// ---------------------------------------------------------------------------- -// Static methods for export -// ---------------------------------------------------------------------------- - -function update(type, instance, props, context) { - if (!instance) { - return Promise.reject(new Error(`No instance provided.`)); - } - const handler = TYPE_HANDLERS[type]; - if (handler && handler.update) { - return handler.update(instance, props, context); - } - return Promise.reject(new Error(`No updater for ${type}`)); -} - -// ---------------------------------------------------------------------------- - -function build(type) { - let initialProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - const handler = TYPE_HANDLERS[type]; - if (handler && handler.build) { - // DEBUG console.log(`new ${type} - ${initialProps.managedInstanceId}`); - return handler.build(initialProps); - } - console.log('No builder for', type); - return null; -} - -// ---------------------------------------------------------------------------- - -function excludeInstance(type, propertyName, propertyValue) { - EXCLUDE_INSTANCE_MAP[type] = { - key: propertyName, - value: propertyValue - }; -} - -// ---------------------------------------------------------------------------- - -function getSupportedTypes() { - return Object.keys(TYPE_HANDLERS); -} - -// ---------------------------------------------------------------------------- - -function clearTypeMapping() { - Object.keys(TYPE_HANDLERS).forEach(key => { - delete TYPE_HANDLERS[key]; - }); -} - -// ---------------------------------------------------------------------------- - -function updateRenderWindow(instance, props, context) { - return update('vtkRenderWindow', instance, props, context); -} - -// ---------------------------------------------------------------------------- - -function clearAllOneTimeUpdaters() { - Object.keys(ONE_TIME_INSTANCE_TRACKERS).forEach(key => { - delete ONE_TIME_INSTANCE_TRACKERS[key]; - }); -} - -// ---------------------------------------------------------------------------- - -function clearOneTimeUpdaters() { - for (var _len = arguments.length, ids = new Array(_len), _key = 0; _key < _len; _key++) { - ids[_key] = arguments[_key]; - } - if (ids.length === 0) { - return clearAllOneTimeUpdaters(); - } - let array = ids; - // allow an array passed as a single arg. - if (array.length === 1 && Array.isArray(array[0])) { - array = array[0]; - } - array.forEach(instanceId => { - delete ONE_TIME_INSTANCE_TRACKERS[instanceId]; - }); - return array; -} - -// ---------------------------------------------------------------------------- - -function notSkippedInstance(call) { - if (call[1].length === 1) { - return SKIPPED_INSTANCE_IDS.indexOf(call[1][0]) === -1; - } - let keep = false; - for (let i = 0; i < call[1].length; i++) { - keep = keep || SKIPPED_INSTANCE_IDS.indexOf(call[1][i]) === -1; - } - return keep; -} - -// ---------------------------------------------------------------------------- -// Updater functions -// ---------------------------------------------------------------------------- - -function genericUpdater(instance, state, context) { - context.start(); // -> start(generic-updater) - - // First update our own properties - instance.set(state.properties); - - // Now handle dependencies - if (state.dependencies) { - state.dependencies.forEach(childState => { - const { - id, - type - } = childState; - if (EXCLUDE_INSTANCE_MAP[type]) { - const { - key, - value - } = EXCLUDE_INSTANCE_MAP[type]; - if (!key || childState.properties[key] === value) { - SKIPPED_INSTANCE_IDS.push(WRAP_ID(id)); - return; - } - } - let childInstance = context.getInstance(id); - if (!childInstance) { - childInstance = build(type, { - managedInstanceId: id - }); - context.registerInstance(id, childInstance); - } - update(type, childInstance, childState, context); - }); - } - if (state.calls) { - state.calls.filter(notSkippedInstance).forEach(call => { - // DEBUG console.log('==>', call[0], extractCallArgs(context, call[1])); - instance[call[0]].apply(null, extractCallArgs(context, call[1])); - }); - } - - // if some arrays need to be be fetch - const dependencies = []; - if (state.arrays) { - const arraysToBind = []; - const promises = Object.values(state.arrays).map(arrayMetadata => { - context.start(); // -> start(arrays) - return context.getArray(arrayMetadata.hash, arrayMetadata.dataType, context).then(createNewArrayHandler(instance, arrayMetadata, arraysToBind)).catch(error => { - console.log('Error fetching array', JSON.stringify(arrayMetadata), error); - }).finally(context.end); // -> end(arrays) - }); - - context.start(); // -> start(arraysToBind) - dependencies.push(Promise.all(promises).then(() => { - // Since some arrays are getting updated, we should modify our dataset - if (arraysToBind.length) { - instance.modified(); - } - bindArrays(arraysToBind); - return true; - }).catch(error => { - console.error('Error in array handling for state', JSON.stringify(state), error); - }).finally(context.end) // -> end(arraysToBind) - ); - } - - context.end(); // -> end(generic-updater) - return Promise.all(dependencies); -} - -// ---------------------------------------------------------------------------- - -function oneTimeGenericUpdater(instance, state, context) { - if (!ONE_TIME_INSTANCE_TRACKERS[state.id]) { - genericUpdater(instance, state, context); - } - ONE_TIME_INSTANCE_TRACKERS[state.id] = true; -} - -// ---------------------------------------------------------------------------- - -function rendererUpdater(instance, state, context) { - // Don't do start/end on the context here because we don't need to hold up - // rendering for the book-keeping we do after the genericUpdater finishes. - - // First allow generic update process to happen as usual - genericUpdater(instance, state, context); - - // Any view props that were removed in the previous phase, genericUpdater(...), - // may have left orphaned children in our instance cache. Below is where those - // refs can be tracked in the first place, and then later removed as necessary - // to allow garbage collection. - - // In some cases, seemingly with 'vtkColorTransferFunction', the server side - // object id may be conserved even though the actor and mapper containing or - // using it were deleted. In this case we must not unregister an instance - // which is depended upon by an incoming actor just because it was also - // depended upon by an outgoing one. - const allActorsDeps = new Set(); - - // Here we gather the list of dependencies (instance ids) for each view prop and - // store them on the instance, in case that view prop is later removed. - if (state.dependencies) { - state.dependencies.forEach(childState => { - const viewPropInstance = context.getInstance(childState.id); - if (viewPropInstance) { - const flattenedDepIds = extractDependencyIds(childState); - viewPropInstance.set({ - flattenedDepIds - }, true); - flattenedDepIds.forEach(depId => allActorsDeps.add(depId)); - } - }); - } - - // Look for 'removeViewProp' calls and clean up references to dependencies of - // those view props. - const unregisterCandidates = new Set(); - if (state.calls) { - state.calls.filter(notSkippedInstance).filter(call => call[0] === 'removeViewProp').forEach(call => { - // extract any ids associated with a 'removeViewProp' call (though really there - // should just be a single one), and use them to build a flat list of all - // representation dependency ids which we can then use our synchronizer context - // to unregister - extractInstanceIds(call[1]).forEach(vpId => { - const deps = context.getInstance(vpId).get('flattenedDepIds').flattenedDepIds; - if (deps) { - // Consider each dependency for un-registering - deps.forEach(depId => unregisterCandidates.add(depId)); - } - // Consider the viewProp itself for un-registering - unregisterCandidates.add(vpId); - }); - }); - } - - // Now unregister any instances that are no longer needed - const idsToUnregister = [...unregisterCandidates].filter(depId => !allActorsDeps.has(depId)); - idsToUnregister.forEach(depId => context.unregisterInstance(depId)); -} - -// ---------------------------------------------------------------------------- - -function vtkRenderWindowUpdater(instance, state, context) { - // For each renderer we may be removing from this render window, we should first - // remove all of the renderer's view props, then have the render window re-render - // itself. This will clear the screen, at which point we can go about the normal - // updater process. - if (state.calls) { - state.calls.filter(notSkippedInstance).filter(call => call[0] === 'removeRenderer').forEach(call => { - extractInstanceIds(call[1]).forEach(renId => { - const renderer = context.getInstance(renId); - // Take brief detour through the view props to unregister the dependencies - // of each one - const viewProps = renderer.getViewProps(); - viewProps.forEach(viewProp => { - const deps = viewProp.get('flattenedDepIds').flattenedDepIds; - if (deps) { - deps.forEach(depId => context.unregisterInstance(depId)); - } - context.unregisterInstance(context.getInstanceId(viewProp)); - }); - }); - }); - } - instance.render(); - - // Now just do normal update process - genericUpdater(instance, state, context); - - // Manage any associated behaviors - BehaviorManager.applyBehaviors(instance, state, context); -} - -// ---------------------------------------------------------------------------- - -function colorTransferFunctionUpdater(instance, state, context) { - context.start(); // -> start(colorTransferFunctionUpdater) - if (!state.properties.nodes) { - instance.set(state.properties); - } else { - const nodes = state.properties.nodes.map(_ref => { - let [x, r, g, b, midpoint, sharpness] = _ref; - return { - x, - r, - g, - b, - midpoint, - sharpness - }; - }); - instance.set({ - ...state.properties, - nodes - }, true); - } - context.end(); // -> end(colorTransferFunctionUpdater) -} - -function piecewiseFunctionUpdater(instance, state, context) { - context.start(); // -> start(piecewiseFunctionUpdater) - if (!state.properties.nodes) { - instance.set(state.properties); - } else { - const nodes = state.properties.nodes.map(_ref2 => { - let [x, y, midpoint, sharpness] = _ref2; - return { - x, - y, - midpoint, - sharpness - }; - }); - instance.set({ - ...state.properties, - nodes - }, true); - instance.sortAndUpdateRange(); - } - // instance.modified(); - context.end(); // -> end(piecewiseFunctionUpdater) -} - -// ---------------------------------------------------------------------------- - -function removeUnavailableArrays(fields, availableNames) { - const namesToDelete = []; - const size = fields.getNumberOfArrays(); - for (let i = 0; i < size; i++) { - const array = fields.getArray(i); - const name = array.getName(); - if (!availableNames.has(name)) { - namesToDelete.push(name); - } - } - for (let i = 0; i < namesToDelete.length; i++) { - fields.removeArray(namesToDelete[i]); - } -} -/** - * Get a unique string suitable for use as state.arrays key. - * @param {object} arrayMeta - * @returns {string} array key - */ -function getArrayKey(arrayMeta) { - // Two arrays can have exactly the same hash so try to distinquish with name. - const namePart = arrayMeta.name ? `_${arrayMeta.name}` : ''; - return `${arrayMeta.hash}_${arrayMeta.dataType}${namePart}`; -} -function createDataSetUpdate() { - let piecesToFetch = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; - return (instance, state, context) => { - context.start(); // -> start(dataset-update) - - // Make sure we provide container for std arrays - const localProperties = { - ...state.properties - }; - if (!state.arrays) { - state.arrays = {}; - } - - // Array members - // => convert old format to generic state.arrays - for (let i = 0; i < piecesToFetch.length; i++) { - const key = piecesToFetch[i]; - if (state.properties[key]) { - const arrayMeta = state.properties[key]; - arrayMeta.registration = `set${capitalize(key)}`; - const arrayKey = getArrayKey(arrayMeta); - state.arrays[arrayKey] = arrayMeta; - delete localProperties[key]; - } - } - - // Extract dataset fields - const fieldsArrays = state.properties.fields || []; - for (let i = 0; i < fieldsArrays.length; i++) { - const arrayMeta = fieldsArrays[i]; - const arrayKey = getArrayKey(arrayMeta); - state.arrays[arrayKey] = arrayMeta; - } - delete localProperties.fields; - - // Reset any pre-existing fields array - const arrayToKeep = { - pointData: new Set(), - cellData: new Set(), - fieldData: new Set() - }; - fieldsArrays.forEach(_ref3 => { - let { - location, - name - } = _ref3; - arrayToKeep[location].add(name); - }); - removeUnavailableArrays(instance.getPointData(), arrayToKeep.pointData); - removeUnavailableArrays(instance.getCellData(), arrayToKeep.cellData); - - // Generic handling - const cleanState = { - ...state - }; - cleanState.properties = localProperties; - const res = genericUpdater(instance, cleanState, context); - - // Finish what we started - context.end(); // -> end(dataset-update) - return res; - }; -} -const polydataUpdater = createDataSetUpdate(['points', 'polys', 'verts', 'lines', 'strips']); -const imageDataUpdater = createDataSetUpdate([]); - -// ---------------------------------------------------------------------------- -// Construct the type mapping -// ---------------------------------------------------------------------------- - -function setTypeMapping(type) { - let buildFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - let updateFn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : genericUpdater; - if (!build && !update) { - delete TYPE_HANDLERS[type]; - return; - } - TYPE_HANDLERS[type] = { - build: buildFn, - update: updateFn - }; -} - -// ---------------------------------------------------------------------------- - -const DEFAULT_ALIASES = { - vtkMapper: ['vtkOpenGLPolyDataMapper', 'vtkCompositePolyDataMapper2', 'vtkDataSetMapper'], - vtkProperty: ['vtkOpenGLProperty'], - vtkRenderer: ['vtkOpenGLRenderer'], - vtkCamera: ['vtkOpenGLCamera'], - vtkColorTransferFunction: ['vtkPVDiscretizableColorTransferFunction'], - vtkActor: ['vtkOpenGLActor', 'vtkPVLODActor'], - vtkLight: ['vtkOpenGLLight', 'vtkPVLight'], - vtkTexture: ['vtkOpenGLTexture'], - vtkImageMapper: ['vtkOpenGLImageSliceMapper'], - vtkVolumeMapper: ['vtkFixedPointVolumeRayCastMapper'] -}; - -// ---------------------------------------------------------------------------- - -const DEFAULT_MAPPING = { - vtkAxesActor: { - build: vtkAxesActor.newInstance, - update: genericUpdater - }, - vtkRenderWindow: { - build: vtkRenderWindow.newInstance, - update: vtkRenderWindowUpdater - }, - vtkRenderer: { - build: vtkRenderer.newInstance, - update: rendererUpdater - }, - vtkLookupTable: { - build: vtkLookupTable.newInstance, - update: genericUpdater - }, - vtkCamera: { - build: vtkCamera.newInstance, - update: oneTimeGenericUpdater - }, - vtkPolyData: { - build: vtkPolyData.newInstance, - update: polydataUpdater - }, - vtkImageData: { - build: vtkImageData.newInstance, - update: imageDataUpdater - }, - vtkMapper: { - build: vtkMapper.newInstance, - update: genericUpdater - }, - vtkGlyph3DMapper: { - build: vtkGlyph3DMapper.newInstance, - update: genericUpdater - }, - vtkProperty: { - build: vtkProperty.newInstance, - update: genericUpdater - }, - vtkActor: { - build: vtkActor.newInstance, - update: genericUpdater - }, - vtkLight: { - build: vtkLight.newInstance, - update: genericUpdater - }, - vtkColorTransferFunction: { - build: vtkColorTransferFunction.newInstance, - update: colorTransferFunctionUpdater - }, - vtkTexture: { - build: vtkTexture.newInstance, - update: genericUpdater - }, - vtkVolume: { - build: vtkVolume.newInstance, - update: genericUpdater - }, - vtkVolumeMapper: { - build: vtkVolumeMapper.newInstance, - update: genericUpdater - }, - vtkVolumeProperty: { - build: vtkVolumeProperty.newInstance, - update: genericUpdater - }, - vtkImageSlice: { - build: vtkImageSlice.newInstance, - update: genericUpdater - }, - vtkImageMapper: { - build: vtkImageMapper.newInstance, - update: genericUpdater - }, - vtkImageProperty: { - build: vtkImageProperty.newInstance, - update: genericUpdater - }, - vtkPiecewiseFunction: { - build: vtkPiecewiseFunction.newInstance, - update: piecewiseFunctionUpdater - }, - vtkCubeAxesActor: { - build: vtkCubeAxesActor.newInstance, - update: genericUpdater - }, - vtkScalarBarActor: { - build: vtkScalarBarActor.newInstance, - update: genericUpdater - } -}; - -// ---------------------------------------------------------------------------- - -function setDefaultMapping() { - let reset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - if (reset) { - clearTypeMapping(); - } - Object.keys(DEFAULT_MAPPING).forEach(type => { - const mapping = DEFAULT_MAPPING[type]; - setTypeMapping(type, mapping.build, mapping.update); - }); -} - -// ---------------------------------------------------------------------------- - -function applyDefaultAliases() { - // Add aliases - Object.keys(DEFAULT_ALIASES).forEach(name => { - const aliases = DEFAULT_ALIASES[name]; - aliases.forEach(alias => { - TYPE_HANDLERS[alias] = TYPE_HANDLERS[name]; - }); - }); -} - -// ---------------------------------------------------------------------------- - -function alwaysUpdateCamera() { - setTypeMapping('vtkCamera', vtkCamera.newInstance); - applyDefaultAliases(); -} - -// ---------------------------------------------------------------------------- -setDefaultMapping(); -applyDefaultAliases(); -// ---------------------------------------------------------------------------- - -// Avoid handling any lights at the moment -// => vtk seems fine and PV could be fine as well but not tested so keeping PV exclude -EXCLUDE_INSTANCE_MAP.vtkPVLight = {}; - -// ---------------------------------------------------------------------------- -// Publicly exposed methods -// ---------------------------------------------------------------------------- - -var vtkObjectManager = { - build, - update, - genericUpdater, - oneTimeGenericUpdater, - setTypeMapping, - clearTypeMapping, - getSupportedTypes, - clearOneTimeUpdaters, - updateRenderWindow, - excludeInstance, - setDefaultMapping, - applyDefaultAliases, - alwaysUpdateCamera -}; - -export { vtkObjectManager as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/TextureLODsDownloader.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/TextureLODsDownloader.d.ts deleted file mode 100644 index cb1adc77..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/TextureLODsDownloader.d.ts +++ /dev/null @@ -1,142 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { CrossOrigin, Nullable } from './../../types'; -import vtkTexture from './../Core/Texture'; - -/** - * - */ -export interface ITextureLODsDownloaderInitialValues { - baseUrl?: string; - crossOrigin?: CrossOrigin; - files?: string[]; - maxTextureLODSize?: number; - texture?: vtkTexture; - stepFinishedCallback?: any; - waitTimeToStart?: number; - waitTimeBetweenDownloads?: number; -} - -export interface vtkTextureLODsDownloader extends vtkObject { - /** - * Get the base of the url - */ - getBaseUrl(): string; - - /** - * Get the crossorigin attribute - */ - getCrossOrigin(): Nullable; - - /** - * Get the list of files to download - */ - getFiles(): string[]; - - /** - * Get the max texture LOD size - */ - getMaxTextureLODSize(): number; - - /** - * - */ - getStepFinishedCallback(): any; - - /** - * Get the vtkTexture object - */ - getTexture(): vtkTexture; - - /** - * Get the delay between downloads - */ - getWaitTimeBetweenDownloads(): number; - - /** - * Get the delay before the start of download. - */ - getWaitTimeToStart(): number; - - /** - * Set the base of the url - * @param {String} baseUrl The base of the url. - */ - setBaseUrl(baseUrl: string): boolean; - - /** - * Set the crossorigin attribute - * @param {CrossOrigin} crossOrigin The crossorigin value. - */ - setCrossOrigin(crossOrigin: CrossOrigin): boolean; - - /** - * Set the list of files to download - * @param {String[]} files The array of files urls. - */ - setFiles(files: string[]): boolean; - - /** - * Set the max texture LOD size - * @param {Number} maxTextureLODSize The max texture LOD size. - */ - setMaxTextureLODSize(maxTextureLODSize: number): boolean; - - /** - * - * @param stepFinishedCallback - */ - setStepFinishedCallback(stepFinishedCallback: any): boolean; - - /** - * Set the vtkTexture object - * @param {vtkTexture} texture The vtkTexture object. - */ - setTexture(texture: vtkTexture): boolean; - - /** - * Set the delay between downloads - * @param {Number} waitTimeBetweenDownloads The delay between downloads. - */ - setWaitTimeBetweenDownloads(waitTimeBetweenDownloads: number): boolean; - - /** - * Set the delay before the start of download - * @param {Number} waitTimeToStart The delay before the start of download. - */ - setWaitTimeToStart(waitTimeToStart: number): boolean; - - /** - * Start the download - */ - startDownloads(): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkTextureLODsDownloader characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ITextureLODsDownloaderInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ITextureLODsDownloaderInitialValues -): void; - -/** - * Method used to create a new instance of vtkTextureLODsDownloader - * @param {ITextureLODsDownloaderInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: ITextureLODsDownloaderInitialValues -): vtkTextureLODsDownloader; - -/** - * vtkTextureLODsDownloader provides a way to download textures by bulk. - */ -export declare const vtkTextureLODsDownloader: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkTextureLODsDownloader; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/TextureLODsDownloader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/TextureLODsDownloader.js deleted file mode 100644 index 2818fbbb..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Misc/TextureLODsDownloader.js +++ /dev/null @@ -1,156 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- - -const getRemoteFileSize = url => -// This function only works if the server provides a 'Content-Length'. -// For some reason, the 'Content-Length' header does not appear to be -// given for CORS HEAD requests on firefox. So this will not work on -// firefox if the images do not have the same origin as the html file. -// TODO: figure out how to make this work for CORS requests on firefox. -new Promise((resolve, reject) => { - const xhr = new XMLHttpRequest(); - xhr.open('HEAD', url, true); - xhr.onreadystatechange = () => { - if (xhr.readyState === 4) { - if (xhr.status === 200) { - const size = xhr.getResponseHeader('Content-Length'); - resolve(size); - } else { - console.log('Failed to get remote file size of', url); - reject(xhr); - } - } - }; - xhr.send(); -}); - -// ---------------------------------------------------------------------------- -// vtkTextureLODsDownloader methods -// ---------------------------------------------------------------------------- - -function vtkTextureLODsDownloader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkTextureLODsDownloader'); - const internal = { - downloadStack: [] - }; - - //-------------------------------------------------------------------------- - - publicAPI.startDownloads = () => { - if (!model.texture) { - vtkErrorMacro('Texture was not set.'); - return; - } - if (!model.files || model.files.length === 0) { - vtkErrorMacro('No files set.'); - return; - } - let baseUrl = model.baseUrl; - if (baseUrl && !baseUrl.endsWith('/')) { - baseUrl += '/'; - } - - // Create the download stack - internal.downloadStack = []; - model.files.forEach(file => internal.downloadStack.push(`${baseUrl}${file}`)); - const downloadNextTexture = () => { - if (internal.downloadStack.length === 0) { - return; - } - - // For later use - const asyncDownloadNextTexture = () => { - setTimeout(downloadNextTexture, model.waitTimeBetweenDownloads); - }; - const img = new Image(); - if (model.crossOrigin) { - img.crossOrigin = model.crossOrigin; - } - const url = internal.downloadStack.shift(); - getRemoteFileSize(url).then(size => { - if (!size || size / 1024 > model.maxTextureLODSize) { - if (!size) { - console.log('Failed to get image size'); - } else { - console.log('Skipping image', url, ', because it is larger', 'than the max texture size:', model.maxTextureLODSize, 'KiB'); - } - asyncDownloadNextTexture(); - return; - } - img.src = url; - // Decode the image asynchronously in an attempt to prevent a - // freeze during rendering. - // In theory, this should help, but my profiling indicates that - // it does not help much... maybe it is running in the main - // thread anyways? - img.decode().then(() => { - model.texture.setImage(img); - if (model.stepFinishedCallback) { - model.stepFinishedCallback(); - } - asyncDownloadNextTexture(); - }).catch(encodingError => { - console.log('Failed to decode image:', img.src); - console.log('Error is:', encodingError); - asyncDownloadNextTexture(); - }); - }).catch(xhr => { - console.log('Failed to get size of:', url); - console.log('status was:', xhr.status); - console.log('statusText was:', xhr.statusText); - asyncDownloadNextTexture(); - }); - }; - setTimeout(downloadNextTexture, model.waitTimeToStart); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - baseUrl: '', - files: [], - texture: null, - crossOrigin: undefined, - // The max texture LOD file size in KiB - maxTextureLODSize: 50000, - stepFinishedCallback: null, - // These are in milliseconds - waitTimeToStart: 4000, - waitTimeBetweenDownloads: 0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - - // Create get-set macros - macro.setGet(publicAPI, model, ['baseUrl', 'files', 'texture', 'crossOrigin', 'maxTextureLODSize', 'stepFinishedCallback', 'waitTimeToStart', 'waitTimeBetweenDownloads']); - - // Object specific methods - vtkTextureLODsDownloader(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkTextureLODsDownloader'); - -// ---------------------------------------------------------------------------- - -var vtkTextureLODsDownloader$1 = { - newInstance, - extend -}; - -export { vtkTextureLODsDownloader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL.js deleted file mode 100644 index d06b413d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL.js +++ /dev/null @@ -1,69 +0,0 @@ -import vtkActor from './OpenGL/Actor.js'; -import vtkActor2D from './OpenGL/Actor2D.js'; -import vtkBufferObject from './OpenGL/BufferObject.js'; -import vtkCamera from './OpenGL/Camera.js'; -import vtkCellArrayBufferObject from './OpenGL/CellArrayBufferObject.js'; -import vtkConvolution2DPass from './OpenGL/Convolution2DPass.js'; -import './OpenGL/CubeAxesActor.js'; -import vtkForwardPass from './OpenGL/ForwardPass.js'; -import vtkOpenGLFramebuffer from './OpenGL/Framebuffer.js'; -import vtkGlyph3DMapper from './OpenGL/Glyph3DMapper.js'; -import vtkHardwareSelector from './OpenGL/HardwareSelector.js'; -import vtkHelper from './OpenGL/Helper.js'; -import vtkImageMapper from './OpenGL/ImageMapper.js'; -import vtkImageSlice from './OpenGL/ImageSlice.js'; -import vtkPixelSpaceCallbackMapper from './OpenGL/PixelSpaceCallbackMapper.js'; -import vtkOpenGLPolyDataMapper from './OpenGL/PolyDataMapper.js'; -import vtkPolyDataMapper2D from './OpenGL/PolyDataMapper2D.js'; -import vtkRenderer from './OpenGL/Renderer.js'; -import vtkRenderWindow from './OpenGL/RenderWindow.js'; -import vtkImageResliceMapper from './OpenGL/ImageResliceMapper.js'; -import './OpenGL/ScalarBarActor.js'; -import vtkShader from './OpenGL/Shader.js'; -import vtkShaderCache from './OpenGL/ShaderCache.js'; -import vtkShaderProgram from './OpenGL/ShaderProgram.js'; -import vtkSkybox from './OpenGL/Skybox.js'; -import vtkSphereMapper from './OpenGL/SphereMapper.js'; -import vtkStickMapper from './OpenGL/StickMapper.js'; -import vtkOpenGLTexture from './OpenGL/Texture.js'; -import vtkTextureUnitManager from './OpenGL/TextureUnitManager.js'; -import vtkVertexArrayObject from './OpenGL/VertexArrayObject.js'; -import vtkViewNodeFactory from './OpenGL/ViewNodeFactory.js'; -import vtkVolume from './OpenGL/Volume.js'; -import vtkVolumeMapper from './OpenGL/VolumeMapper.js'; - -var OpenGL = { - vtkActor, - vtkActor2D, - vtkBufferObject, - vtkCamera, - vtkCellArrayBufferObject, - vtkConvolution2DPass, - vtkForwardPass, - vtkFramebuffer: vtkOpenGLFramebuffer, - vtkGlyph3DMapper, - vtkHardwareSelector, - vtkHelper, - vtkImageMapper, - vtkImageSlice, - vtkPixelSpaceCallbackMapper, - vtkPolyDataMapper: vtkOpenGLPolyDataMapper, - vtkPolyDataMapper2D, - vtkRenderWindow, - vtkRenderer, - vtkImageResliceMapper, - vtkShader, - vtkShaderCache, - vtkShaderProgram, - vtkSkybox, - vtkSphereMapper, - vtkStickMapper, - vtkTexture: vtkOpenGLTexture, - vtkTextureUnitManager, - vtkVertexArrayObject, - vtkViewNodeFactory, - vtkVolume, - vtkVolumeMapper -}; - -export { OpenGL as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Actor.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Actor.js deleted file mode 100644 index 37b96d8d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Actor.js +++ /dev/null @@ -1,193 +0,0 @@ -import { mat3, mat4 } from 'gl-matrix'; -import { n as newInstance$1, o as obj, e as setGet, g as get } from '../../macros2.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -// ---------------------------------------------------------------------------- -// vtkOpenGLActor methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLActor(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLActor'); - - // Builds myself. - publicAPI.buildPass = prepass => { - if (prepass) { - model._openGLRenderWindow = publicAPI.getLastAncestorOfType('vtkOpenGLRenderWindow'); - model._openGLRenderer = publicAPI.getFirstAncestorOfType('vtkOpenGLRenderer'); - model.context = model._openGLRenderWindow.getContext(); - publicAPI.prepareNodes(); - publicAPI.addMissingNodes(model.renderable.getTextures()); - publicAPI.addMissingNode(model.renderable.getMapper()); - publicAPI.removeUnusedNodes(); - - // we store textures and mapper - model.ogltextures = null; - model.activeTextures = null; - for (let index = 0; index < model.children.length; index++) { - const child = model.children[index]; - if (child.isA('vtkOpenGLTexture')) { - if (!model.ogltextures) { - model.ogltextures = []; - } - model.ogltextures.push(child); - } else { - model.oglmapper = child; - } - } - } - }; - - // render both opaque and translucent actors - publicAPI.traverseZBufferPass = renderPass => { - if (!model.renderable || !model.renderable.getNestedVisibility() || model._openGLRenderer.getSelector() && !model.renderable.getNestedPickable()) { - return; - } - publicAPI.apply(renderPass, true); - model.oglmapper.traverse(renderPass); - publicAPI.apply(renderPass, false); - }; - - // only render opaque actors - publicAPI.traverseOpaqueZBufferPass = renderPass => publicAPI.traverseOpaquePass(renderPass); - - // we draw textures, then mapper, then post pass textures - publicAPI.traverseOpaquePass = renderPass => { - if (!model.renderable || !model.renderable.getNestedVisibility() || !model.renderable.getIsOpaque() || model._openGLRenderer.getSelector() && !model.renderable.getNestedPickable()) { - return; - } - publicAPI.apply(renderPass, true); - model.oglmapper.traverse(renderPass); - publicAPI.apply(renderPass, false); - }; - - // we draw textures, then mapper, then post pass textures - publicAPI.traverseTranslucentPass = renderPass => { - if (!model.renderable || !model.renderable.getNestedVisibility() || model.renderable.getIsOpaque() || model._openGLRenderer.getSelector() && !model.renderable.getNestedPickable()) { - return; - } - publicAPI.apply(renderPass, true); - model.oglmapper.traverse(renderPass); - publicAPI.apply(renderPass, false); - }; - publicAPI.activateTextures = () => { - // always traverse textures first, then mapper - if (!model.ogltextures) { - return; - } - model.activeTextures = []; - for (let index = 0; index < model.ogltextures.length; index++) { - const child = model.ogltextures[index]; - child.render(); - if (child.getHandle()) { - model.activeTextures.push(child); - } - } - }; - publicAPI.queryPass = (prepass, renderPass) => { - if (prepass) { - if (!model.renderable || !model.renderable.getVisibility()) { - return; - } - if (model.renderable.getIsOpaque()) { - renderPass.incrementOpaqueActorCount(); - } else { - renderPass.incrementTranslucentActorCount(); - } - } - }; - publicAPI.zBufferPass = (prepass, renderPass) => publicAPI.opaquePass(prepass, renderPass); - publicAPI.opaqueZBufferPass = (prepass, renderPass) => publicAPI.opaquePass(prepass, renderPass); - publicAPI.opaquePass = (prepass, renderPass) => { - if (prepass) { - model.context.depthMask(true); - publicAPI.activateTextures(); - } else if (model.activeTextures) { - for (let index = 0; index < model.activeTextures.length; index++) { - model.activeTextures[index].deactivate(); - } - } - }; - - // Renders myself - publicAPI.translucentPass = (prepass, renderPass) => { - if (prepass) { - model.context.depthMask(model._openGLRenderer.getSelector() && model.renderable.getNestedPickable()); - publicAPI.activateTextures(); - } else if (model.activeTextures) { - for (let index = 0; index < model.activeTextures.length; index++) { - model.activeTextures[index].deactivate(); - } - } - }; - publicAPI.getKeyMatrices = () => { - // has the actor changed? - if (model.renderable.getMTime() > model.keyMatrixTime.getMTime()) { - model.renderable.computeMatrix(); - mat4.copy(model.keyMatrices.mcwc, model.renderable.getMatrix()); - mat4.transpose(model.keyMatrices.mcwc, model.keyMatrices.mcwc); - if (model.renderable.getIsIdentity()) { - mat3.identity(model.keyMatrices.normalMatrix); - } else { - mat3.fromMat4(model.keyMatrices.normalMatrix, model.keyMatrices.mcwc); - mat3.invert(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix); - mat3.transpose(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix); - } - model.keyMatrixTime.modified(); - } - return model.keyMatrices; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - context: null, - keyMatrixTime: null, - keyMatrices: null, - activeTextures: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - model.keyMatrixTime = {}; - obj(model.keyMatrixTime, { - mtime: 0 - }); - model.keyMatrices = { - normalMatrix: mat3.identity(new Float64Array(9)), - mcwc: mat4.identity(new Float64Array(16)) - }; - - // Build VTK API - setGet(publicAPI, model, ['context']); - get(publicAPI, model, ['activeTextures']); - - // Object methods - vtkOpenGLActor(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend); - -// ---------------------------------------------------------------------------- - -var vtkActor = { - newInstance, - extend -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkActor', newInstance); - -export { vtkActor as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Actor2D.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Actor2D.js deleted file mode 100644 index 354c5a91..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Actor2D.js +++ /dev/null @@ -1,173 +0,0 @@ -import { n as newInstance$1, e as setGet, g as get } from '../../macros2.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -// ---------------------------------------------------------------------------- -// vtkOpenGLActor methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLActor2D(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLActor2D'); - - // Builds myself. - publicAPI.buildPass = prepass => { - if (prepass) { - if (!model.renderable) { - return; - } - model._openGLRenderWindow = publicAPI.getLastAncestorOfType('vtkOpenGLRenderWindow'); - model._openGLRenderer = publicAPI.getFirstAncestorOfType('vtkOpenGLRenderer'); - model.context = model._openGLRenderWindow.getContext(); - publicAPI.prepareNodes(); - publicAPI.addMissingNodes(model.renderable.getTextures()); - publicAPI.addMissingNode(model.renderable.getMapper()); - publicAPI.removeUnusedNodes(); - - // we store textures and mapper - model.ogltextures = null; - model.activeTextures = null; - for (let index = 0; index < model.children.length; index++) { - const child = model.children[index]; - if (child.isA('vtkOpenGLTexture')) { - if (!model.ogltextures) { - model.ogltextures = []; - } - model.ogltextures.push(child); - } else { - model.oglmapper = child; - } - } - } - }; - publicAPI.queryPass = (prepass, renderPass) => { - if (prepass) { - if (!model.renderable || !model.renderable.getVisibility()) { - return; - } - renderPass.incrementOverlayActorCount(); - } - }; - - // we draw textures, then mapper, then post pass textures - publicAPI.traverseOpaquePass = renderPass => { - if (!model.oglmapper || !model.renderable || !model.renderable.getNestedVisibility() || !model.renderable.getIsOpaque() || model._openGLRenderer.getSelector() && !model.renderable.getNestedPickable()) { - return; - } - publicAPI.apply(renderPass, true); - model.oglmapper.traverse(renderPass); - publicAPI.apply(renderPass, false); - }; - - // we draw textures, then mapper, then post pass textures - publicAPI.traverseTranslucentPass = renderPass => { - if (!model.oglmapper || !model.renderable || !model.renderable.getNestedVisibility() || model.renderable.getIsOpaque() || model._openGLRenderer.getSelector() && !model.renderable.getNestedPickable()) { - return; - } - publicAPI.apply(renderPass, true); - model.oglmapper.traverse(renderPass); - publicAPI.apply(renderPass, false); - }; - publicAPI.traverseOverlayPass = renderPass => { - if (!model.oglmapper || !model.renderable || !model.renderable.getNestedVisibility() || model._openGLRenderer.getSelector() && !model.renderable.getNestedPickable) { - return; - } - publicAPI.apply(renderPass, true); - model.oglmapper.traverse(renderPass); - publicAPI.apply(renderPass, false); - }; - publicAPI.activateTextures = () => { - // always traverse textures first, then mapper - if (!model.ogltextures) { - return; - } - model.activeTextures = []; - for (let index = 0; index < model.ogltextures.length; index++) { - const child = model.ogltextures[index]; - child.render(); - if (child.getHandle()) { - model.activeTextures.push(child); - } - } - }; - - // Renders myself - publicAPI.opaquePass = (prepass, renderPass) => { - if (prepass) { - model.context.depthMask(true); - publicAPI.activateTextures(); - } else if (model.activeTextures) { - // deactivate textures - for (let index = 0; index < model.activeTextures.length; index++) { - model.activeTextures[index].deactivate(); - } - } - }; - - // Renders myself - publicAPI.translucentPass = (prepass, renderPass) => { - if (prepass) { - model.context.depthMask(false); - publicAPI.activateTextures(); - } else if (model.activeTextures) { - for (let index = 0; index < model.activeTextures.length; index++) { - model.activeTextures[index].deactivate(); - } - } - }; - - // Renders myself - publicAPI.overlayPass = (prepass, renderPass) => { - if (prepass) { - model.context.depthMask(true); - publicAPI.activateTextures(); - } else if (model.activeTextures) { - // deactivate textures - for (let index = 0; index < model.activeTextures.length; index++) { - model.activeTextures[index].deactivate(); - } - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - context: null, - activeTextures: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - - // Build VTK API - setGet(publicAPI, model, ['context']); - get(publicAPI, model, ['activeTextures']); - - // Object methods - vtkOpenGLActor2D(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend); - -// ---------------------------------------------------------------------------- - -var vtkActor2D = { - newInstance, - extend -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkActor2D', newInstance); - -export { vtkActor2D as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/BufferObject.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/BufferObject.d.ts deleted file mode 100644 index 6b5a335e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/BufferObject.d.ts +++ /dev/null @@ -1,83 +0,0 @@ -import { ObjectType } from './BufferObject/Constants'; -import { vtkAlgorithm, vtkObject } from './../../interfaces'; - -/** - * Interface for initial values of BufferObject - */ -export interface IBufferObjectInitialValues { - objectType?: ObjectType; - context?: WebGLRenderingContext | WebGL2RenderingContext; - allocatedGPUMemoryInBytes?: number; -} - -/** - * Interface for OpenGL Buffer Object - */ -export interface vtkOpenGLBufferObject extends vtkObject { - /** - * Uploads data to the buffer object. - * @param data The data to be uploaded. - * @param type The type of the data. - * @returns {boolean} Whether the upload was successful. - */ - upload(data: any, type: any): boolean; - - /** - * Binds the buffer object. - * @returns {boolean} Whether the binding was successful. - */ - bind(): boolean; - - /** - * Releases the buffer object. - * @returns {boolean} Whether the release was successful. - */ - release(): boolean; - - /** - * Releases graphics resources associated with the buffer object. - */ - releaseGraphicsResources(): void; - - /** - * Sets the OpenGL render window. - * @param renWin The render window to set. - */ - setOpenGLRenderWindow(renWin: any): void; - - /** - * Retrieves the error message, if any. - * @returns {string} The error message. - */ - getError(): string; -} - -/** - * Extends the given object with the properties and methods of vtkOpenGLBufferObject. - * @param publicAPI The public API to extend. - * @param model The model to extend. - * @param initialValues The initial values to apply. - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IBufferObjectInitialValues -): void; - -/** - * Creates a new instance of vtkOpenGLBufferObject with the given initial values. - * @param initialValues The initial values to use. - * @returns {vtkOpenGLBufferObject} The new instance. - */ -export function newInstance( - initialValues?: IBufferObjectInitialValues -): vtkOpenGLBufferObject; - -/** - * Object containing the newInstance and extend functions for vtkOpenGLBufferObject. - */ -export declare const vtkOpenGLBufferObject: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkOpenGLBufferObject; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/BufferObject.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/BufferObject.js deleted file mode 100644 index 28266bd1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/BufferObject.js +++ /dev/null @@ -1,150 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import Constants from './BufferObject/Constants.js'; - -const { - ObjectType -} = Constants; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = {}; - -// ---------------------------------------------------------------------------- -// vtkOpenGLBufferObject methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLBufferObject(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLBufferObject'); - - // Class-specific private functions - function convertType(type) { - switch (type) { - case ObjectType.ELEMENT_ARRAY_BUFFER: - return model.context.ELEMENT_ARRAY_BUFFER; - case ObjectType.TEXTURE_BUFFER: - if ('TEXTURE_BUFFER' in model.context) { - return model.context.TEXTURE_BUFFER; - } - /* eslint-disable no-fallthrough */ - // Intentional fallthrough in case there is no TEXTURE_BUFFER in WebGL - case ObjectType.ARRAY_BUFFER: - default: - return model.context.ARRAY_BUFFER; - /* eslint-enable no-fallthrough */ - } - } - - let internalType = null; - let internalHandle = null; - let dirty = true; - let error = ''; - - // Public API methods - publicAPI.getType = () => internalType; - publicAPI.setType = value => { - internalType = value; - }; - publicAPI.getHandle = () => internalHandle; - publicAPI.isReady = () => dirty === false; - publicAPI.generateBuffer = type => { - const objectTypeGL = convertType(type); - if (internalHandle === null) { - internalHandle = model.context.createBuffer(); - internalType = type; - } - return convertType(internalType) === objectTypeGL; - }; - publicAPI.upload = (data, type) => { - // buffer, size, type - const alreadyGenerated = publicAPI.generateBuffer(type); - if (!alreadyGenerated) { - error = 'Trying to upload array buffer to incompatible buffer.'; - return false; - } - model.context.bindBuffer(convertType(internalType), internalHandle); - model.context.bufferData(convertType(internalType), data, model.context.STATIC_DRAW); - model.allocatedGPUMemoryInBytes = data.length * data.BYTES_PER_ELEMENT; - dirty = false; - return true; - }; - publicAPI.bind = () => { - if (!internalHandle) { - return false; - } - model.context.bindBuffer(convertType(internalType), internalHandle); - return true; - }; - publicAPI.release = () => { - if (!internalHandle) { - return false; - } - model.context.bindBuffer(convertType(internalType), null); - return true; - }; - publicAPI.releaseGraphicsResources = () => { - if (internalHandle !== null) { - model.context.bindBuffer(convertType(internalType), null); - model.context.deleteBuffer(internalHandle); - internalHandle = null; - model.allocatedGPUMemoryInBytes = 0; - } - }; - publicAPI.setOpenGLRenderWindow = rw => { - if (model._openGLRenderWindow === rw) { - return; - } - publicAPI.releaseGraphicsResources(); - model._openGLRenderWindow = rw; - model.context = null; - if (rw) { - model.context = model._openGLRenderWindow.getContext(); - } - }; - publicAPI.getError = () => error; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - objectType: ObjectType.ARRAY_BUFFER, - // _openGLRenderWindow: null, - context: null, - allocatedGPUMemoryInBytes: 0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['_openGLRenderWindow', 'allocatedGPUMemoryInBytes']); - macro.moveToProtected(publicAPI, model, ['openGLRenderWindow']); - vtkOpenGLBufferObject(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend); - -// ---------------------------------------------------------------------------- - -var vtkBufferObject = { - newInstance, - extend, - ...STATIC, - ...Constants -}; - -export { STATIC, vtkBufferObject as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/BufferObject/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/BufferObject/Constants.d.ts deleted file mode 100644 index a3c5f8ad..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/BufferObject/Constants.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export declare enum ObjectType { - ARRAY_BUFFER = 0, - ELEMENT_ARRAY_BUFFER = 1, - TEXTURE_BUFFER = 2, -} - -declare const _default: { - ObjectType: typeof ObjectType; -}; - -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/BufferObject/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/BufferObject/Constants.js deleted file mode 100644 index f649630f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/BufferObject/Constants.js +++ /dev/null @@ -1,10 +0,0 @@ -const ObjectType = { - ARRAY_BUFFER: 0, - ELEMENT_ARRAY_BUFFER: 1, - TEXTURE_BUFFER: 2 -}; -var Constants = { - ObjectType -}; - -export { ObjectType, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Camera.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Camera.js deleted file mode 100644 index 6e9a25ea..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Camera.js +++ /dev/null @@ -1,102 +0,0 @@ -import { mat4, mat3 } from 'gl-matrix'; -import { n as newInstance$1, o as obj, e as setGet } from '../../macros2.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -// ---------------------------------------------------------------------------- -// vtkOpenGLCamera methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLCamera(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLCamera'); - publicAPI.buildPass = prepass => { - if (prepass) { - model._openGLRenderer = publicAPI.getFirstAncestorOfType('vtkOpenGLRenderer'); - model._openGLRenderWindow = model._openGLRenderer.getParent(); - model.context = model._openGLRenderWindow.getContext(); - } - }; - - // Renders myself - publicAPI.opaquePass = prepass => { - if (prepass) { - const tsize = model._openGLRenderer.getTiledSizeAndOrigin(); - model.context.viewport(tsize.lowerLeftU, tsize.lowerLeftV, tsize.usize, tsize.vsize); - model.context.scissor(tsize.lowerLeftU, tsize.lowerLeftV, tsize.usize, tsize.vsize); - } - }; - publicAPI.translucentPass = publicAPI.opaquePass; - publicAPI.zBufferPass = publicAPI.opaquePass; - publicAPI.opaqueZBufferPass = publicAPI.opaquePass; - publicAPI.volumePass = publicAPI.opaquePass; - publicAPI.getKeyMatrices = ren => { - // has the camera changed? - if (ren !== model.lastRenderer || model._openGLRenderWindow.getMTime() > model.keyMatrixTime.getMTime() || publicAPI.getMTime() > model.keyMatrixTime.getMTime() || ren.getMTime() > model.keyMatrixTime.getMTime() || model.renderable.getMTime() > model.keyMatrixTime.getMTime()) { - mat4.copy(model.keyMatrices.wcvc, model.renderable.getViewMatrix()); - mat3.fromMat4(model.keyMatrices.normalMatrix, model.keyMatrices.wcvc); - mat3.invert(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix); - mat4.transpose(model.keyMatrices.wcvc, model.keyMatrices.wcvc); - const aspectRatio = model._openGLRenderer.getAspectRatio(); - mat4.copy(model.keyMatrices.vcpc, model.renderable.getProjectionMatrix(aspectRatio, -1, 1)); - mat4.transpose(model.keyMatrices.vcpc, model.keyMatrices.vcpc); - mat4.multiply(model.keyMatrices.wcpc, model.keyMatrices.vcpc, model.keyMatrices.wcvc); - model.keyMatrixTime.modified(); - model.lastRenderer = ren; - } - return model.keyMatrices; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - context: null, - lastRenderer: null, - keyMatrixTime: null, - keyMatrices: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - model.keyMatrixTime = {}; - obj(model.keyMatrixTime); - - // values always get set by the get method - model.keyMatrices = { - normalMatrix: new Float64Array(9), - vcpc: new Float64Array(16), - wcvc: new Float64Array(16), - wcpc: new Float64Array(16) - }; - - // Build VTK API - setGet(publicAPI, model, ['context', 'keyMatrixTime']); - - // Object methods - vtkOpenGLCamera(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend); - -// ---------------------------------------------------------------------------- - -var vtkCamera = { - newInstance, - extend -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkCamera', newInstance); - -export { vtkCamera as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/CellArrayBufferObject.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/CellArrayBufferObject.js deleted file mode 100644 index 423b8b24..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/CellArrayBufferObject.js +++ /dev/null @@ -1,392 +0,0 @@ -import { vec3, mat4, quat } from 'gl-matrix'; -import { m as macro } from '../../macros2.js'; -import vtkBufferObject from './BufferObject.js'; -import { ObjectType } from './BufferObject/Constants.js'; -import { Representation } from '../Core/Property/Constants.js'; -import { computeCoordShiftAndScale } from './CellArrayBufferObject/helpers.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// Static functions -// ---------------------------------------------------------------------------- - -function computeInverseShiftAndScaleMatrix(coordShift, coordScale) { - const inverseScale = new Float64Array(3); - vec3.inverse(inverseScale, coordScale); - const matrix = new Float64Array(16); - mat4.fromRotationTranslationScale(matrix, quat.create(), coordShift, inverseScale); - return matrix; -} -function shouldApplyCoordShiftAndScale(coordShift, coordScale) { - if (coordShift === null || coordScale === null) { - return false; - } - return !(vec3.exactEquals(coordShift, [0, 0, 0]) && vec3.exactEquals(coordScale, [1, 1, 1])); -} - -// ---------------------------------------------------------------------------- -// vtkOpenGLCellArrayBufferObject methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLCellArrayBufferObject(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLCellArrayBufferObject'); - publicAPI.setType(ObjectType.ARRAY_BUFFER); - publicAPI.createVBO = function (cellArray, inRep, outRep, options) { - let selectionMaps = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null; - if (!cellArray.getData() || !cellArray.getData().length) { - model.elementCount = 0; - return 0; - } - - // Figure out how big each block will be, currently 6 or 7 floats. - model.blockSize = 3; - model.vertexOffset = 0; - model.normalOffset = 0; - model.tCoordOffset = 0; - model.tCoordComponents = 0; - model.colorComponents = 0; - model.colorOffset = 0; - model.customData = []; - const pointData = options.points.getData(); - let normalData = null; - let tcoordData = null; - let colorData = null; - const colorComponents = options.colors ? options.colors.getNumberOfComponents() : 0; - const textureComponents = options.tcoords ? options.tcoords.getNumberOfComponents() : 0; - - // the values of 4 below are because floats are 4 bytes - - if (options.normals) { - model.normalOffset = 4 * model.blockSize; - model.blockSize += 3; - normalData = options.normals.getData(); - } - if (options.customAttributes) { - options.customAttributes.forEach(a => { - if (a) { - model.customData.push({ - data: a.getData(), - offset: 4 * model.blockSize, - components: a.getNumberOfComponents(), - name: a.getName() - }); - model.blockSize += a.getNumberOfComponents(); - } - }); - } - if (options.tcoords) { - model.tCoordOffset = 4 * model.blockSize; - model.tCoordComponents = textureComponents; - model.blockSize += textureComponents; - tcoordData = options.tcoords.getData(); - } - if (options.colors) { - model.colorComponents = options.colors.getNumberOfComponents(); - model.colorOffset = 0; - colorData = options.colors.getData(); - if (!model.colorBO) { - model.colorBO = vtkBufferObject.newInstance(); - } - model.colorBO.setOpenGLRenderWindow(model._openGLRenderWindow); - } else { - model.colorBO = null; - } - model.stride = 4 * model.blockSize; - let pointIdx = 0; - let normalIdx = 0; - let tcoordIdx = 0; - let colorIdx = 0; - let custIdx = 0; - let cellCount = 0; - let addAPoint; - const cellBuilders = { - // easy, every input point becomes an output point - anythingToPoints(numPoints, cellPts, offset, cellId) { - for (let i = 0; i < numPoints; ++i) { - addAPoint(cellPts[offset + i], cellId); - } - }, - linesToWireframe(numPoints, cellPts, offset, cellIdx) { - // for lines we add a bunch of segments - for (let i = 0; i < numPoints - 1; ++i) { - addAPoint(cellPts[offset + i], cellIdx); - addAPoint(cellPts[offset + i + 1], cellIdx); - } - }, - polysToWireframe(numPoints, cellPts, offset, cellIdx) { - // for polys we add a bunch of segments and close it - if (numPoints > 2) { - for (let i = 0; i < numPoints; ++i) { - addAPoint(cellPts[offset + i], cellIdx); - addAPoint(cellPts[offset + (i + 1) % numPoints], cellIdx); - } - } - }, - stripsToWireframe(numPoints, cellPts, offset, cellIdx) { - if (numPoints > 2) { - // for strips we add a bunch of segments and close it - for (let i = 0; i < numPoints - 1; ++i) { - addAPoint(cellPts[offset + i], cellIdx); - addAPoint(cellPts[offset + i + 1], cellIdx); - } - for (let i = 0; i < numPoints - 2; i++) { - addAPoint(cellPts[offset + i], cellIdx); - addAPoint(cellPts[offset + i + 2], cellIdx); - } - } - }, - polysToSurface(npts, cellPts, offset, cellIdx) { - for (let i = 0; i < npts - 2; i++) { - addAPoint(cellPts[offset + 0], cellIdx); - addAPoint(cellPts[offset + i + 1], cellIdx); - addAPoint(cellPts[offset + i + 2], cellIdx); - } - }, - stripsToSurface(npts, cellPts, offset, cellIdx) { - for (let i = 0; i < npts - 2; i++) { - addAPoint(cellPts[offset + i], cellIdx); - addAPoint(cellPts[offset + i + 1 + i % 2], cellIdx); - addAPoint(cellPts[offset + i + 1 + (i + 1) % 2], cellIdx); - } - } - }; - const cellCounters = { - // easy, every input point becomes an output point - anythingToPoints(numPoints, cellPts) { - return numPoints; - }, - linesToWireframe(numPoints, cellPts) { - if (numPoints > 1) { - return (numPoints - 1) * 2; - } - return 0; - }, - polysToWireframe(numPoints, cellPts) { - if (numPoints > 2) { - return numPoints * 2; - } - return 0; - }, - stripsToWireframe(numPoints, cellPts) { - if (numPoints > 2) { - return numPoints * 4 - 6; - } - return 0; - }, - polysToSurface(npts, cellPts) { - if (npts > 2) { - return (npts - 2) * 3; - } - return 0; - }, - stripsToSurface(npts, cellPts, offset) { - if (npts > 2) { - return (npts - 2) * 3; - } - return 0; - } - }; - let func = null; - let countFunc = null; - if (outRep === Representation.POINTS || inRep === 'verts') { - func = cellBuilders.anythingToPoints; - countFunc = cellCounters.anythingToPoints; - } else if (outRep === Representation.WIREFRAME || inRep === 'lines') { - func = cellBuilders[`${inRep}ToWireframe`]; - countFunc = cellCounters[`${inRep}ToWireframe`]; - } else { - func = cellBuilders[`${inRep}ToSurface`]; - countFunc = cellCounters[`${inRep}ToSurface`]; - } - const array = cellArray.getData(); - const size = array.length; - let caboCount = 0; - for (let index = 0; index < size;) { - caboCount += countFunc(array[index], array); - index += array[index] + 1; - } - let packedUCVBO = null; - const packedVBO = new Float32Array(caboCount * model.blockSize); - if (colorData) { - packedUCVBO = new Uint8Array(caboCount * 4); - } - let vboidx = 0; - let ucidx = 0; - - // Find out if shift scale should be used - const { - useShiftAndScale, - coordShift, - coordScale - } = computeCoordShiftAndScale(options.points); - if (useShiftAndScale) { - publicAPI.setCoordShiftAndScale(coordShift, coordScale); - } else if (model.coordShiftAndScaleEnabled === true) { - // Make sure to reset - publicAPI.setCoordShiftAndScale(null, null); - } - - // Initialize the structures used to keep track of point ids and cell ids for selectors - if (selectionMaps) { - if (!selectionMaps.points && !selectionMaps.cells) { - selectionMaps.points = new Int32Array(caboCount); - selectionMaps.cells = new Int32Array(caboCount); - } else { - const newPoints = new Int32Array(caboCount + selectionMaps.points.length); - newPoints.set(selectionMaps.points); - selectionMaps.points = newPoints; - const newCells = new Int32Array(caboCount + selectionMaps.cells.length); - newCells.set(selectionMaps.cells); - selectionMaps.cells = newCells; - } - } - let pointCount = options.vertexOffset; - addAPoint = function addAPointFunc(pointId, cellId) { - // Keep track of original point and cell ids, for selection - if (selectionMaps) { - selectionMaps.points[pointCount] = pointId; - selectionMaps.cells[pointCount] = cellCount + options.cellOffset; - } - ++pointCount; - - // Vertices - pointIdx = pointId * 3; - if (!model.coordShiftAndScaleEnabled) { - packedVBO[vboidx++] = pointData[pointIdx++]; - packedVBO[vboidx++] = pointData[pointIdx++]; - packedVBO[vboidx++] = pointData[pointIdx++]; - } else { - // Apply shift and scale - packedVBO[vboidx++] = (pointData[pointIdx++] - model.coordShift[0]) * model.coordScale[0]; - packedVBO[vboidx++] = (pointData[pointIdx++] - model.coordShift[1]) * model.coordScale[1]; - packedVBO[vboidx++] = (pointData[pointIdx++] - model.coordShift[2]) * model.coordScale[2]; - } - if (normalData !== null) { - if (options.haveCellNormals) { - normalIdx = (cellCount + options.cellOffset) * 3; - } else { - normalIdx = pointId * 3; - } - packedVBO[vboidx++] = normalData[normalIdx++]; - packedVBO[vboidx++] = normalData[normalIdx++]; - packedVBO[vboidx++] = normalData[normalIdx++]; - } - model.customData.forEach(attr => { - custIdx = pointId * attr.components; - for (let j = 0; j < attr.components; ++j) { - packedVBO[vboidx++] = attr.data[custIdx++]; - } - }); - if (tcoordData !== null) { - if (options.useTCoordsPerCell) { - tcoordIdx = cellId * textureComponents; - } else { - tcoordIdx = pointId * textureComponents; - } - for (let j = 0; j < textureComponents; ++j) { - packedVBO[vboidx++] = tcoordData[tcoordIdx++]; - } - } - if (colorData !== null) { - if (options.haveCellScalars) { - colorIdx = (cellCount + options.cellOffset) * colorComponents; - } else { - colorIdx = pointId * colorComponents; - } - packedUCVBO[ucidx++] = colorData[colorIdx++]; - packedUCVBO[ucidx++] = colorData[colorIdx++]; - packedUCVBO[ucidx++] = colorData[colorIdx++]; - packedUCVBO[ucidx++] = colorComponents === 4 ? colorData[colorIdx++] : 255; - } - }; - - // Browse the cell array: the index is at the beginning of a cell - // The value of 'array' at the position 'index' is the number of points in the cell - for (let index = 0; index < size; index += array[index] + 1, cellCount++) { - func(array[index], array, index + 1, cellCount + options.cellOffset); - } - model.elementCount = caboCount; - publicAPI.upload(packedVBO, ObjectType.ARRAY_BUFFER); - if (model.colorBO) { - model.colorBOStride = 4; - model.colorBO.upload(packedUCVBO, ObjectType.ARRAY_BUFFER); - } - return cellCount; - }; - publicAPI.setCoordShiftAndScale = (coordShift, coordScale) => { - if (coordShift !== null && (coordShift.constructor !== Float64Array || coordShift.length !== 3)) { - vtkErrorMacro('Wrong type for coordShift, expected vec3 or null'); - return; - } - if (coordScale !== null && (coordScale.constructor !== Float64Array || coordScale.length !== 3)) { - vtkErrorMacro('Wrong type for coordScale, expected vec3 or null'); - return; - } - if (model.coordShift === null || coordShift === null || !vec3.equals(coordShift, model.coordShift)) { - model.coordShift = coordShift; - } - if (model.coordScale === null || coordScale === null || !vec3.equals(coordScale, model.coordScale)) { - model.coordScale = coordScale; - } - model.coordShiftAndScaleEnabled = shouldApplyCoordShiftAndScale(model.coordShift, model.coordScale); - if (model.coordShiftAndScaleEnabled) { - model.inverseShiftAndScaleMatrix = computeInverseShiftAndScaleMatrix(model.coordShift, model.coordScale); - } else { - model.inverseShiftAndScaleMatrix = null; - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - elementCount: 0, - stride: 0, - colorBOStride: 0, - vertexOffset: 0, - normalOffset: 0, - tCoordOffset: 0, - tCoordComponents: 0, - colorOffset: 0, - colorComponents: 0, - tcoordBO: null, - customData: [], - coordShift: null, - coordScale: null, - coordShiftAndScaleEnabled: false, - inverseShiftAndScaleMatrix: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkBufferObject.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['colorBO', 'elementCount', 'stride', 'colorBOStride', 'vertexOffset', 'normalOffset', 'tCoordOffset', 'tCoordComponents', 'colorOffset', 'colorComponents', 'customData']); - macro.get(publicAPI, model, ['coordShift', 'coordScale', 'coordShiftAndScaleEnabled', 'inverseShiftAndScaleMatrix']); - - // Object specific methods - vtkOpenGLCellArrayBufferObject(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend); - -// ---------------------------------------------------------------------------- - -var vtkCellArrayBufferObject = { - newInstance, - extend -}; - -export { vtkCellArrayBufferObject as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/CellArrayBufferObject/helpers.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/CellArrayBufferObject/helpers.js deleted file mode 100644 index 88e2ebe2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/CellArrayBufferObject/helpers.js +++ /dev/null @@ -1,45 +0,0 @@ -function computeCoordShiftAndScale(points) { - // Find out if shift scale should be used - // Compute squares of diagonal size and distance from the origin - let diagSq = 0.0; - let distSq = 0.0; - for (let i = 0; i < 3; ++i) { - const range = points.getRange(i); - const delta = range[1] - range[0]; - diagSq += delta * delta; - const distShift = 0.5 * (range[1] + range[0]); - distSq += distShift * distShift; - } - const useShiftAndScale = diagSq > 0 && (Math.abs(distSq) / diagSq > 1.0e6 || - // If data is far from the origin relative to its size - Math.abs(Math.log10(diagSq)) > 3.0 || - // If the size is huge when not far from the origin - diagSq === 0 && distSq > 1.0e6); // If data is a point, but far from the origin - - if (useShiftAndScale) { - // Compute shift and scale vectors - const coordShift = new Float64Array(3); - const coordScale = new Float64Array(3); - for (let i = 0; i < 3; ++i) { - const range = points.getRange(i); - const delta = range[1] - range[0]; - coordShift[i] = 0.5 * (range[1] + range[0]); - coordScale[i] = delta > 0 ? 1.0 / delta : 1.0; - } - return { - useShiftAndScale, - coordShift, - coordScale - }; - } - return { - useShiftAndScale, - coordShift: new Float32Array([0, 0, 0]), - coordScale: new Float32Array([1, 1, 1]) - }; -} -var helpers = { - computeCoordShiftAndScale -}; - -export { computeCoordShiftAndScale, helpers as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Convolution2DPass.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Convolution2DPass.js deleted file mode 100644 index fdc69fce..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Convolution2DPass.js +++ /dev/null @@ -1,227 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkOpenGLFramebuffer from './Framebuffer.js'; -import vtkRenderPass from '../SceneGraph/RenderPass.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkHelper from './Helper.js'; -import vtkVertexArrayObject from './VertexArrayObject.js'; -import { Representation } from '../Core/Property/Constants.js'; - -const { - vtkErrorMacro -} = macro; -// ---------------------------------------------------------------------------- - -function vtkConvolution2DPass(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkConvolution2DPass'); - publicAPI.computeKernelWeight = function computeKernelWeight(kernel) { - const weight = kernel.reduce((prev, curr) => prev + curr); - return weight <= 0 ? 1 : weight; - }; - - // handles post-processing via convolution kernel and call delegate - publicAPI.traverse = function (viewNode) { - if (model.deleted) { - return; - } - - // check if kernel dimension is valid - if (model.kernelDimension % 2 !== 1) { - vtkErrorMacro('Invalid kernel dimension! Kernel dimension must be odd (e.g. 3, 5, 7, ...).'); - return; - } - - // if no kernel is set, use the default kernel (no post-processing) - if (model.kernel === null) { - model.kernel = new Float32Array(model.kernelDimension); - model.kernel[Math.floor(model.kernelDimension / 2)] = 1; - } - const kernelLength = model.kernelDimension * model.kernelDimension; - if (model.kernel.length !== kernelLength) { - vtkErrorMacro(`The given kernel is invalid. 2D convolution kernels have to be 1D arrays with ${kernelLength} components representing the ${model.kernelDimension}x${model.kernelDimension} kernel in row-major form.`); - return; - } - - // prepare framebuffer // allocate framebuffer if needed and bind it - if (model.framebuffer === null) { - model.framebuffer = vtkOpenGLFramebuffer.newInstance(); - } - const size = viewNode.getSize(); - const gl = viewNode.getContext(); - if (gl === null) { - // nothing to do -> no render context - // traverse delegate passes -> has to be done in order for the vtk render-pipeline to work correctly - model.delegates.forEach(val => { - val.traverse(viewNode, publicAPI); - }); - return; - } - - // prepare rendering - if (model.VBOBuildTime.getMTime() < publicAPI.getMTime()) { - model.tris.setOpenGLRenderWindow(viewNode); - publicAPI.buildVertexBuffer(); - } - - // store framebuffer bindings to restore them later - model.framebuffer.setOpenGLRenderWindow(viewNode); - model.framebuffer.saveCurrentBindingsAndBuffers(); - const fbSize = model.framebuffer.getSize(); - if (fbSize === null || fbSize[0] !== size[0] || fbSize[1] !== size[1]) { - // create post-processing framebuffer if not already existing - model.framebuffer.create(size[0], size[1]); - model.framebuffer.populateFramebuffer(); - } - - // bind framebuffer to re-direct the render-output of the delegate passes to the buffer - model.framebuffer.bind(); - - // do the delegate rendering - model.delegates.forEach(val => { - val.traverse(viewNode, publicAPI); - }); - - // now draw the convolved values - model.framebuffer.restorePreviousBindingsAndBuffers(); - - // check if kernel dimension has changed and convolution shader needs to be re-compiled - if (model.convolutionShader !== null && model.oldKernelDimension !== model.kernelDimension) { - model.convolutionShader = null; - model.oldKernelDimension = model.kernelDimension; - } - - // make sure the convolution shader is ready - if (model.convolutionShader === null) { - model.convolutionShader = viewNode.getShaderCache().readyShaderProgramArray(['//VTK::System::Dec', 'attribute vec4 vertexDC;', 'attribute vec2 tcoordTC;', 'varying vec2 tcoord;', 'void main() { tcoord = tcoordTC; gl_Position = vertexDC; }'].join('\n'), publicAPI.getFragmentShaderCode(model.kernelDimension), ''); - const program = model.convolutionShader; - - // prepare the vertex and triangle data for the image plane to render to - model.copyVAO = vtkVertexArrayObject.newInstance(); - model.copyVAO.setOpenGLRenderWindow(viewNode); - model.tris.getCABO().bind(); - if (!model.copyVAO.addAttributeArray(program, model.tris.getCABO(), 'vertexDC', model.tris.getCABO().getVertexOffset(), model.tris.getCABO().getStride(), gl.FLOAT, 3, gl.FALSE)) { - vtkErrorMacro('Error setting vertexDC in copy shader VAO.'); - } - if (!model.copyVAO.addAttributeArray(program, model.tris.getCABO(), 'tcoordTC', model.tris.getCABO().getTCoordOffset(), model.tris.getCABO().getStride(), gl.FLOAT, 2, gl.FALSE)) { - vtkErrorMacro('Error setting vertexDC in copy shader VAO.'); - } - } else { - viewNode.getShaderCache().readyShaderProgram(model.convolutionShader); - } - gl.viewport(0, 0, size[0], size[1]); - gl.scissor(0, 0, size[0], size[1]); - - // activate texture - const tex = model.framebuffer.getColorTexture(); - tex.activate(); - model.convolutionShader.setUniformi('u_image', tex.getTextureUnit()); - model.convolutionShader.setUniform2f('u_textureSize', tex.getWidth(), tex.getHeight()); - model.convolutionShader.setUniformfv('u_kernel', model.kernel); - model.convolutionShader.setUniformf('u_kernelWeight', publicAPI.computeKernelWeight(model.kernel)); - - // render quad - gl.drawArrays(gl.TRIANGLES, 0, model.tris.getCABO().getElementCount()); - tex.deactivate(); - }; - publicAPI.getFragmentShaderCode = kernelDimension => { - // generate new shader code - const kernelLength = kernelDimension * kernelDimension; - let shaderCode = ['//VTK::System::Dec', '//VTK::Output::Dec', 'uniform sampler2D u_image;', 'uniform vec2 u_textureSize;', `uniform float u_kernel[${kernelLength}];`, 'uniform float u_kernelWeight;', 'varying vec2 tcoord;', 'void main(){', ' vec2 onePixel = vec2(1.0, 1.0) / u_textureSize;', ' vec4 colorSum =\n'].join('\n'); - const halfDim = Math.floor(kernelDimension / 2); - - // generate sum per pixel - let i = 0; - for (let y = -halfDim; y <= halfDim; ++y) { - for (let x = -halfDim; x <= halfDim; ++x) { - shaderCode += ` texture2D(u_image, tcoord + onePixel * vec2(${x}, ${y})) * u_kernel[${i}]`; - ++i; - if (i !== kernelLength) { - shaderCode += ' +\n'; - } - } - } - - // finish code - shaderCode += [';', ' gl_FragData[0] = vec4((colorSum / u_kernelWeight).rgb, texture2D(u_image, tcoord).a);', '}'].join('\n'); - return shaderCode; - }; - - // build vertices etc - publicAPI.buildVertexBuffer = () => { - // 4 corner points in clipping space in order (x, y, z) where z is always set to -1 - // prettier-ignore - const ptsArray = new Float32Array([-1, -1, -1, 1, -1, -1, -1, 1, -1, 1, 1, -1]); - - // 4 corresponding corner points in texture space in order (x, y) - const tcoordArray = new Float32Array([0, 0, 1, 0, 0, 1, 1, 1]); - - // a square defined as cell relation ship in order (cell_size, v1, v2, v3, v4) - const cellArray = new Uint16Array([4, 0, 1, 3, 2]); - const points = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: ptsArray - }); - points.setName('points'); - const tcoords = vtkDataArray.newInstance({ - numberOfComponents: 2, - values: tcoordArray - }); - tcoords.setName('tcoords'); - const cells = vtkDataArray.newInstance({ - numberOfComponents: 1, - values: cellArray - }); - model.tris.getCABO().createVBO(cells, 'polys', Representation.SURFACE, { - points, - tcoords, - cellOffset: 0 - }); - model.VBOBuildTime.modified(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - framebuffer: null, - convolutionShader: null, - tris: null, - kernel: [0, 0, 0, 0, 1, 0, 0, 0, 0], - oldKernelDimension: 3, - kernelDimension: 3 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - vtkRenderPass.extend(publicAPI, model, initialValues); - model.VBOBuildTime = {}; - macro.obj(model.VBOBuildTime, { - mtime: 0 - }); - model.tris = vtkHelper.newInstance(); - macro.setGet(publicAPI, model, ['kernel', 'kernelDimension']); - macro.get(publicAPI, model, ['framebuffer']); - - // Object methods - vtkConvolution2DPass(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkConvolution2DPass'); - -// ---------------------------------------------------------------------------- - -var vtkConvolution2DPass$1 = { - newInstance, - extend -}; - -export { vtkConvolution2DPass$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/CubeAxesActor.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/CubeAxesActor.js deleted file mode 100644 index 3b7916c4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/CubeAxesActor.js +++ /dev/null @@ -1,70 +0,0 @@ -import { n as newInstance$1 } from '../../macros2.js'; -import vtkCubeAxesActor from '../Core/CubeAxesActor.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -// ---------------------------------------------------------------------------- -// vtkOpenGLCubeAxesActor methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLCubeAxesActor(publicAPI, model) { - model.classHierarchy.push('vtkOpenGLCubeAxesActor'); - - // Builds myself. - publicAPI.buildPass = prepass => { - if (prepass) { - model._openGLRenderer = publicAPI.getFirstAncestorOfType('vtkOpenGLRenderer'); - model._openGLRenderWindow = model._openGLRenderer.getParent(); - if (!model.CubeAxesActorHelper.getRenderable()) { - model.CubeAxesActorHelper.setRenderable(model.renderable); - } - publicAPI.prepareNodes(); - publicAPI.addMissingNode(model.CubeAxesActorHelper.getTmActor()); - publicAPI.addMissingNode(model.renderable.getGridActor()); - publicAPI.removeUnusedNodes(); - } - }; - publicAPI.opaquePass = (prepass, renderPass) => { - if (prepass) { - const camera = model._openGLRenderer ? model._openGLRenderer.getRenderable().getActiveCamera() : null; - const tsize = model._openGLRenderer.getTiledSizeAndOrigin(); - model.CubeAxesActorHelper.updateAPISpecificData([tsize.usize, tsize.vsize], camera, model._openGLRenderWindow.getRenderable()); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - model.CubeAxesActorHelper = vtkCubeAxesActor.newCubeAxesActorHelper(); - - // Object methods - vtkOpenGLCubeAxesActor(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkOpenGLCubeAxesActor'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkCubeAxesActor', newInstance); - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ForwardPass.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ForwardPass.js deleted file mode 100644 index af393169..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ForwardPass.js +++ /dev/null @@ -1,147 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkOpenGLFramebuffer from './Framebuffer.js'; -import vtkRenderPass from '../SceneGraph/RenderPass.js'; -import vtkOpenGLOrderIndependentTranslucentPass from './OrderIndependentTranslucentPass.js'; - -// ---------------------------------------------------------------------------- - -function vtkForwardPass(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkForwardPass'); - - // this pass implements a forward rendering pipeline - // if both volumes and opaque geometry are present - // it will mix the two together by capturing a zbuffer - // first - publicAPI.traverse = function (viewNode) { - let parent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - if (model.deleted) { - return; - } - - // we just render our delegates in order - model._currentParent = parent; - - // build - publicAPI.setCurrentOperation('buildPass'); - viewNode.traverse(publicAPI); - const numlayers = viewNode.getRenderable().getNumberOfLayers(); - - // iterate over renderers - const renderers = viewNode.getRenderable().getRenderersByReference(); - for (let i = 0; i < numlayers; i++) { - for (let index = 0; index < renderers.length; index++) { - const ren = renderers[index]; - const renNode = viewNode.getViewNodeFor(ren); - if (ren.getDraw() && ren.getLayer() === i) { - // check for both opaque and volume actors - model.opaqueActorCount = 0; - model.translucentActorCount = 0; - model.volumeCount = 0; - model.overlayActorCount = 0; - publicAPI.setCurrentOperation('queryPass'); - renNode.traverse(publicAPI); - - // do we need to capture a zbuffer? - if ((model.opaqueActorCount > 0 || model.translucentActorCount > 0) && model.volumeCount > 0 || model.depthRequested) { - const size = viewNode.getFramebufferSize(); - // make sure the framebuffer is setup - if (model.framebuffer === null) { - model.framebuffer = vtkOpenGLFramebuffer.newInstance(); - } - model.framebuffer.setOpenGLRenderWindow(viewNode); - model.framebuffer.saveCurrentBindingsAndBuffers(); - const fbSize = model.framebuffer.getSize(); - if (fbSize === null || fbSize[0] !== size[0] || fbSize[1] !== size[1]) { - model.framebuffer.create(size[0], size[1]); - model.framebuffer.populateFramebuffer(); - } - model.framebuffer.bind(); - // opaqueZBufferPass only renders opaque actors - // zBufferPass renders both translucent and opaque actors - // we want to be able to pick translucent actors - publicAPI.setCurrentOperation('zBufferPass'); - renNode.traverse(publicAPI); - model.framebuffer.restorePreviousBindingsAndBuffers(); - - // reset now that we have done it - model.depthRequested = false; - } - publicAPI.setCurrentOperation('cameraPass'); - renNode.traverse(publicAPI); - if (model.opaqueActorCount > 0) { - publicAPI.setCurrentOperation('opaquePass'); - renNode.traverse(publicAPI); - } - if (model.translucentActorCount > 0) { - if (!model.translucentPass) { - model.translucentPass = vtkOpenGLOrderIndependentTranslucentPass.newInstance(); - } - model.translucentPass.traverse(viewNode, renNode, publicAPI); - } - if (model.volumeCount > 0) { - publicAPI.setCurrentOperation('volumePass'); - renNode.traverse(publicAPI); - } - if (model.overlayActorCount > 0) { - publicAPI.setCurrentOperation('overlayPass'); - renNode.traverse(publicAPI); - } - } - } - } - }; - publicAPI.getZBufferTexture = () => { - if (model.framebuffer) { - return model.framebuffer.getColorTexture(); - } - return null; - }; - publicAPI.requestDepth = () => { - model.depthRequested = true; - }; - publicAPI.incrementOpaqueActorCount = () => model.opaqueActorCount++; - publicAPI.incrementTranslucentActorCount = () => model.translucentActorCount++; - publicAPI.incrementVolumeCount = () => model.volumeCount++; - publicAPI.incrementOverlayActorCount = () => model.overlayActorCount++; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - opaqueActorCount: 0, - translucentActorCount: 0, - volumeCount: 0, - overlayActorCount: 0, - framebuffer: null, - depthRequested: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - vtkRenderPass.extend(publicAPI, model, initialValues); - macro.get(publicAPI, model, ['framebuffer', 'opaqueActorCount', 'translucentActorCount', 'volumeCount']); - - // Object methods - vtkForwardPass(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkForwardPass'); - -// ---------------------------------------------------------------------------- - -var vtkForwardPass$1 = { - newInstance, - extend -}; - -export { vtkForwardPass$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Framebuffer.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Framebuffer.js deleted file mode 100644 index bb7556fa..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Framebuffer.js +++ /dev/null @@ -1,228 +0,0 @@ -import { n as newInstance$1, o as obj, r as vtkErrorMacro, k as getArray } from '../../macros2.js'; -import vtkOpenGLTexture from './Texture.js'; -import { VtkDataTypes } from '../../Common/Core/DataArray/Constants.js'; -import { Filter } from './Texture/Constants.js'; - -// ---------------------------------------------------------------------------- -// vtkFramebuffer methods -// ---------------------------------------------------------------------------- -function vtkFramebuffer(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkFramebuffer'); - publicAPI.getBothMode = () => model.context.FRAMEBUFFER; - // publicAPI.getDrawMode = () => model.context.DRAW_FRAMEBUFFER; - // publicAPI.getReadMode = () => model.context.READ_FRAMEBUFFER; - - publicAPI.saveCurrentBindingsAndBuffers = modeIn => { - const mode = typeof modeIn !== 'undefined' ? modeIn : publicAPI.getBothMode(); - publicAPI.saveCurrentBindings(mode); - publicAPI.saveCurrentBuffers(mode); - }; - publicAPI.saveCurrentBindings = modeIn => { - if (!model.context) { - vtkErrorMacro('you must set the OpenGLRenderWindow before calling saveCurrentBindings'); - return; - } - const gl = model.context; - model.previousDrawBinding = gl.getParameter(model.context.FRAMEBUFFER_BINDING); - model.previousActiveFramebuffer = model._openGLRenderWindow.getActiveFramebuffer(); - }; - publicAPI.saveCurrentBuffers = modeIn => { - // noop on webgl 1 - }; - publicAPI.restorePreviousBindingsAndBuffers = modeIn => { - const mode = typeof modeIn !== 'undefined' ? modeIn : publicAPI.getBothMode(); - publicAPI.restorePreviousBindings(mode); - publicAPI.restorePreviousBuffers(mode); - }; - publicAPI.restorePreviousBindings = modeIn => { - if (!model.context) { - vtkErrorMacro('you must set the OpenGLRenderWindow before calling restorePreviousBindings'); - return; - } - const gl = model.context; - gl.bindFramebuffer(gl.FRAMEBUFFER, model.previousDrawBinding); - model._openGLRenderWindow.setActiveFramebuffer(model.previousActiveFramebuffer); - }; - publicAPI.restorePreviousBuffers = modeIn => { - // currently a noop on webgl1 - }; - publicAPI.bind = function () { - let modeArg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - let mode = modeArg; - if (mode === null) { - mode = model.context.FRAMEBUFFER; - } - model.context.bindFramebuffer(mode, model.glFramebuffer); - for (let i = 0; i < model.colorBuffers.length; i++) { - model.colorBuffers[i].bind(); - } - model._openGLRenderWindow.setActiveFramebuffer(publicAPI); - }; - publicAPI.create = (width, height) => { - if (!model.context) { - vtkErrorMacro('you must set the OpenGLRenderWindow before calling create'); - return; - } - model.glFramebuffer = model.context.createFramebuffer(); - model.glFramebuffer.width = width; - model.glFramebuffer.height = height; - }; - publicAPI.setColorBuffer = function (texture) { - let attachment = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - const gl = model.context; - if (!gl) { - vtkErrorMacro('you must set the OpenGLRenderWindow before calling setColorBuffer'); - return; - } - let glAttachment = gl.COLOR_ATTACHMENT0; - if (attachment > 0) { - if (model._openGLRenderWindow.getWebgl2()) { - glAttachment += attachment; - } else { - vtkErrorMacro('Using multiple framebuffer attachments requires WebGL 2'); - return; - } - } - model.colorBuffers[attachment] = texture; - gl.framebufferTexture2D(gl.FRAMEBUFFER, glAttachment, gl.TEXTURE_2D, texture.getHandle(), 0); - }; - publicAPI.removeColorBuffer = function () { - let attachment = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - const gl = model.context; - if (!gl) { - vtkErrorMacro('you must set the OpenGLRenderWindow before calling removeColorBuffer'); - return; - } - let glAttachment = gl.COLOR_ATTACHMENT0; - if (attachment > 0) { - if (model._openGLRenderWindow.getWebgl2()) { - glAttachment += attachment; - } else { - vtkErrorMacro('Using multiple framebuffer attachments requires WebGL 2'); - return; - } - } - gl.framebufferTexture2D(gl.FRAMEBUFFER, glAttachment, gl.TEXTURE_2D, null, 0); - model.colorBuffers = model.colorBuffers.splice(attachment, 1); - }; - publicAPI.setDepthBuffer = texture => { - if (!model.context) { - vtkErrorMacro('you must set the OpenGLRenderWindow before calling setDepthBuffer'); - return; - } - if (model._openGLRenderWindow.getWebgl2()) { - const gl = model.context; - gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.DEPTH_ATTACHMENT, gl.TEXTURE_2D, texture.getHandle(), 0); - } else { - vtkErrorMacro('Attaching depth buffer textures to fbo requires WebGL 2'); - } - }; - publicAPI.removeDepthBuffer = () => { - if (!model.context) { - vtkErrorMacro('you must set the OpenGLRenderWindow before calling removeDepthBuffer'); - return; - } - if (model._openGLRenderWindow.getWebgl2()) { - const gl = model.context; - gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.DEPTH_ATTACHMENT, gl.TEXTURE_2D, null, 0); - } else { - vtkErrorMacro('Attaching depth buffer textures to framebuffers requires WebGL 2'); - } - }; - publicAPI.getGLFramebuffer = () => model.glFramebuffer; - publicAPI.setOpenGLRenderWindow = rw => { - if (model._openGLRenderWindow === rw) { - return; - } - publicAPI.releaseGraphicsResources(); - model._openGLRenderWindow = rw; - model.context = null; - if (rw) { - model.context = model._openGLRenderWindow.getContext(); - } - }; - publicAPI.releaseGraphicsResources = () => { - if (model.glFramebuffer) { - model.context.deleteFramebuffer(model.glFramebuffer); - } - }; - publicAPI.getSize = () => { - if (model.glFramebuffer == null) return null; - return [model.glFramebuffer.width, model.glFramebuffer.height]; - }; - publicAPI.populateFramebuffer = () => { - if (!model.context) { - vtkErrorMacro('you must set the OpenGLRenderWindow before calling populateFrameBuffer'); - return; - } - publicAPI.bind(); - const gl = model.context; - const texture = vtkOpenGLTexture.newInstance(); - texture.setOpenGLRenderWindow(model._openGLRenderWindow); - texture.setMinificationFilter(Filter.LINEAR); - texture.setMagnificationFilter(Filter.LINEAR); - texture.create2DFromRaw({ - width: model.glFramebuffer.width, - height: model.glFramebuffer.height, - numComps: 4, - dataType: VtkDataTypes.UNSIGNED_CHAR, - data: null - }); - publicAPI.setColorBuffer(texture); - - // for now do not count on having a depth buffer texture - // as they are not standard webgl 1 - model.depthTexture = gl.createRenderbuffer(); - gl.bindRenderbuffer(gl.RENDERBUFFER, model.depthTexture); - gl.renderbufferStorage(gl.RENDERBUFFER, gl.DEPTH_COMPONENT16, model.glFramebuffer.width, model.glFramebuffer.height); - gl.framebufferRenderbuffer(gl.FRAMEBUFFER, gl.DEPTH_ATTACHMENT, gl.RENDERBUFFER, model.depthTexture); - }; - - // For backwards compatibility. Use getColorBuffers()[0] going forward. - publicAPI.getColorTexture = () => model.colorBuffers[0]; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- -const DEFAULT_VALUES = { - // _openGLRenderWindow: null, - glFramebuffer: null, - colorBuffers: null, - depthTexture: null, - previousDrawBinding: 0, - previousReadBinding: 0, - previousDrawBuffer: 0, - previousReadBuffer: 0, - previousActiveFramebuffer: null -}; - -// ---------------------------------------------------------------------------- -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - obj(publicAPI, model); - if (model.colorBuffers) { - vtkErrorMacro('you cannot initialize colorBuffers through the constructor. You should call setColorBuffer() instead.'); - } - model.colorBuffers = []; - getArray(publicAPI, model, ['colorBuffers']); - - // For more macro methods, see "Sources/macros.js" - // Object specific methods - vtkFramebuffer(publicAPI, model); -} - -// ---------------------------------------------------------------------------- -const newInstance = newInstance$1(extend, 'vtkFramebuffer'); - -// ---------------------------------------------------------------------------- -var vtkOpenGLFramebuffer = { - newInstance, - extend -}; - -export { vtkOpenGLFramebuffer as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Glyph3DMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Glyph3DMapper.js deleted file mode 100644 index a9cc72b2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Glyph3DMapper.js +++ /dev/null @@ -1,533 +0,0 @@ -import { mat3, mat4 } from 'gl-matrix'; -import { n as newInstance$1, o as obj, c as macro } from '../../macros2.js'; -import vtkBufferObject from './BufferObject.js'; -import vtkHardwareSelector from './HardwareSelector.js'; -import vtkProperty from '../Core/Property.js'; -import vtkOpenGLPolyDataMapper from './PolyDataMapper.js'; -import vtkShaderProgram from './ShaderProgram.js'; -import { computeCoordShiftAndScale } from './CellArrayBufferObject/helpers.js'; -import { registerOverride } from './ViewNodeFactory.js'; -import { primTypes } from './Helper.js'; - -const { - vtkErrorMacro -} = macro; -const { - Representation -} = vtkProperty; -const { - ObjectType -} = vtkBufferObject; -const { - PassTypes -} = vtkHardwareSelector; -const StartEvent = { - type: 'StartEvent' -}; -const EndEvent = { - type: 'EndEvent' -}; -const MAT4_BYTE_SIZE = 64; -const MAT4_ELEMENT_COUNT = 16; -function applyShiftScaleToMat(mat, shift, scale) { - // the translation component of a 4x4 column-major matrix - mat[12] = (mat[12] - shift[0]) * scale[0]; - mat[13] = (mat[13] - shift[1]) * scale[1]; - mat[14] = (mat[14] - shift[2]) * scale[2]; - mat[0] *= scale[0]; - mat[5] *= scale[1]; - mat[10] *= scale[2]; -} - -// ---------------------------------------------------------------------------- -// vtkOpenGLSphereMapper methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLGlyph3DMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLGlyph3DMapper'); - - // Capture 'parentClass' api for internal use - const superClass = { - ...publicAPI - }; - publicAPI.renderPiece = (ren, actor) => { - publicAPI.invokeEvent(StartEvent); - if (!model.renderable.getStatic()) { - model.renderable.update(); - } - model.currentInput = model.renderable.getInputData(1); - publicAPI.invokeEvent(EndEvent); - if (!model.currentInput) { - vtkErrorMacro('No input!'); - return; - } - - // if there are no points then we are done - if (!model.currentInput.getPoints || !model.currentInput.getPoints().getNumberOfValues()) { - return; - } - - // apply faceCulling - const gl = model.context; - if (model._openGLRenderWindow.getWebgl2()) { - model.hardwareSupport = true; - model.extension = null; - } else if (!model.extension) { - model.extension = model.context.getExtension('ANGLE_instanced_arrays'); - model.hardwareSupport = !!model.extension; - } - // to test without extension support uncomment the next two lines - // model.extension = null; - // model.hardwareSupport = !!model.extension; - - const backfaceCulling = actor.getProperty().getBackfaceCulling(); - const frontfaceCulling = actor.getProperty().getFrontfaceCulling(); - if (!backfaceCulling && !frontfaceCulling) { - model._openGLRenderWindow.disableCullFace(); - } else if (frontfaceCulling) { - model._openGLRenderWindow.enableCullFace(); - gl.cullFace(gl.FRONT); - } else { - model._openGLRenderWindow.enableCullFace(); - gl.cullFace(gl.BACK); - } - publicAPI.renderPieceStart(ren, actor); - publicAPI.renderPieceDraw(ren, actor); - publicAPI.renderPieceFinish(ren, actor); - }; - publicAPI.multiply4x4WithOffset = (out, a, b, off) => { - const a00 = a[0]; - const a01 = a[1]; - const a02 = a[2]; - const a03 = a[3]; - const a10 = a[4]; - const a11 = a[5]; - const a12 = a[6]; - const a13 = a[7]; - const a20 = a[8]; - const a21 = a[9]; - const a22 = a[10]; - const a23 = a[11]; - const a30 = a[12]; - const a31 = a[13]; - const a32 = a[14]; - const a33 = a[15]; - - // Cache only the current line of the second matrix - let b0 = b[off]; - let b1 = b[off + 1]; - let b2 = b[off + 2]; - let b3 = b[off + 3]; - out[0] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[1] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[2] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[3] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - b0 = b[off + 4]; - b1 = b[off + 5]; - b2 = b[off + 6]; - b3 = b[off + 7]; - out[4] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[5] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[6] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[7] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - b0 = b[off + 8]; - b1 = b[off + 9]; - b2 = b[off + 10]; - b3 = b[off + 11]; - out[8] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[9] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[10] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[11] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - b0 = b[off + 12]; - b1 = b[off + 13]; - b2 = b[off + 14]; - b3 = b[off + 15]; - out[12] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[13] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[14] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[15] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - }; - publicAPI.replaceShaderNormal = (shaders, ren, actor) => { - if (model.hardwareSupport) { - const lastLightComplexity = model.lastBoundBO.getReferenceByName('lastLightComplexity'); - if (lastLightComplexity > 0) { - let VSSource = shaders.Vertex; - if (model.lastBoundBO.getCABO().getNormalOffset()) { - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Normal::Dec', ['attribute vec3 normalMC;', 'attribute mat3 gNormal;', 'uniform mat3 normalMatrix;', 'varying vec3 normalVCVSOutput;']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Normal::Impl', ['normalVCVSOutput = normalMatrix * gNormal * normalMC;']).result; - } - shaders.Vertex = VSSource; - } - } - superClass.replaceShaderNormal(shaders, ren, actor); - }; - publicAPI.replaceShaderClip = (shaders, ren, actor) => { - if (model.hardwareSupport) { - let VSSource = shaders.Vertex; - let FSSource = shaders.Fragment; - if (model.renderable.getNumberOfClippingPlanes()) { - const numClipPlanes = model.renderable.getNumberOfClippingPlanes(); - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Clip::Dec', ['uniform int numClipPlanes;', `uniform vec4 clipPlanes[${numClipPlanes}];`, `varying float clipDistancesVSOutput[${numClipPlanes}];`]).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Clip::Impl', [`for (int planeNum = 0; planeNum < ${numClipPlanes}; planeNum++)`, ' {', ' if (planeNum >= numClipPlanes)', ' {', ' break;', ' }', ' vec4 gVertex = gMatrix * vertexMC;', ' clipDistancesVSOutput[planeNum] = dot(clipPlanes[planeNum], gVertex);', ' }']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Clip::Dec', ['uniform int numClipPlanes;', `varying float clipDistancesVSOutput[${numClipPlanes}];`]).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Clip::Impl', [`for (int planeNum = 0; planeNum < ${numClipPlanes}; planeNum++)`, ' {', ' if (planeNum >= numClipPlanes)', ' {', ' break;', ' }', ' if (clipDistancesVSOutput[planeNum] < 0.0) discard;', ' }']).result; - } - shaders.Vertex = VSSource; - shaders.Fragment = FSSource; - } - superClass.replaceShaderClip(shaders, ren, actor); - }; - publicAPI.replaceShaderColor = (shaders, ren, actor) => { - if (model.hardwareSupport && model.renderable.getColorArray()) { - let VSSource = shaders.Vertex; - let GSSource = shaders.Geometry; - let FSSource = shaders.Fragment; - const lastLightComplexity = model.lastBoundBO.getReferenceByName('lastLightComplexity'); - - // create the material/color property declarations, and VS implementation - // these are always defined - let colorDec = ['uniform float ambient;', 'uniform float diffuse;', 'uniform float specular;', 'uniform float opacityUniform; // the fragment opacity']; - // add more for specular - if (lastLightComplexity) { - colorDec = colorDec.concat(['uniform vec3 specularColorUniform;', 'uniform float specularPowerUniform;']); - } - - // now handle the more complex fragment shader implementation - // the following are always defined variables. We start - // by assigning a default value from the uniform - let colorImpl = ['vec3 ambientColor;', ' vec3 diffuseColor;', ' float opacity;']; - if (lastLightComplexity) { - colorImpl = colorImpl.concat([' vec3 specularColor;', ' float specularPower;']); - } - colorImpl = colorImpl.concat([' opacity = opacityUniform;']); - if (lastLightComplexity) { - colorImpl = colorImpl.concat([' specularColor = specularColorUniform;', ' specularPower = specularPowerUniform;']); - } - if (!model.drawingEdges) { - colorDec = colorDec.concat(['varying vec4 vertexColorVSOutput;']); - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Color::Dec', ['attribute vec4 gColor;', 'varying vec4 vertexColorVSOutput;']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Color::Impl', ['vertexColorVSOutput = gColor;']).result; - GSSource = vtkShaderProgram.substitute(GSSource, '//VTK::Color::Dec', ['in vec4 vertexColorVSOutput[];', 'out vec4 vertexColorGSOutput;']).result; - GSSource = vtkShaderProgram.substitute(GSSource, '//VTK::Color::Impl', ['vertexColorGSOutput = vertexColorVSOutput[i];']).result; - colorImpl = colorImpl.concat([' diffuseColor = vertexColorVSOutput.rgb;', ' ambientColor = vertexColorVSOutput.rgb;', ' opacity = opacity*vertexColorVSOutput.a;']); - } - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Color::Impl', colorImpl).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Color::Dec', colorDec).result; - shaders.Vertex = VSSource; - shaders.Geometry = GSSource; - shaders.Fragment = FSSource; - } - superClass.replaceShaderColor(shaders, ren, actor); - }; - publicAPI.replaceShaderPositionVC = (shaders, ren, actor) => { - if (model.hardwareSupport) { - let VSSource = shaders.Vertex; - - // do we need the vertex in the shader in View Coordinates - const lastLightComplexity = model.lastBoundBO.getReferenceByName('lastLightComplexity'); - if (lastLightComplexity > 0) { - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::PositionVC::Impl', ['vec4 gVertexMC = gMatrix * vertexMC;', 'vertexVCVSOutput = MCVCMatrix * gVertexMC;', ' gl_Position = MCPCMatrix * gVertexMC;']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Camera::Dec', ['attribute mat4 gMatrix;', 'uniform mat4 MCPCMatrix;', 'uniform mat4 MCVCMatrix;']).result; - } else { - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Camera::Dec', ['attribute mat4 gMatrix;', 'uniform mat4 MCPCMatrix;']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::PositionVC::Impl', ['vec4 gVertexMC = gMatrix * vertexMC;', ' gl_Position = MCPCMatrix * gVertexMC;']).result; - } - shaders.Vertex = VSSource; - } - superClass.replaceShaderPositionVC(shaders, ren, actor); - }; - publicAPI.replaceShaderPicking = (shaders, ren, actor) => { - if (model.hardwareSupport) { - let FSSource = shaders.Fragment; - let VSSource = shaders.Vertex; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Picking::Dec', ['attribute vec3 mapperIndexVS;', 'varying vec3 mapperIndexVSOutput;']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Picking::Impl', ' mapperIndexVSOutput = mapperIndexVS;').result; - shaders.Vertex = VSSource; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Picking::Dec', ['varying vec3 mapperIndexVSOutput;', 'uniform vec3 mapperIndex;', 'uniform int picking;']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Picking::Impl', [' vec4 pickColor = picking == 2 ? vec4(mapperIndexVSOutput,1.0) : vec4(mapperIndex,1.0);', ' gl_FragData[0] = picking != 0 ? pickColor : gl_FragData[0];']).result; - shaders.Fragment = FSSource; - } else { - superClass.replaceShaderPicking(shaders, ren, actor); - } - }; - publicAPI.updateGlyphShaderParameters = (normalMatrixUsed, mcvcMatrixUsed, cellBO, carray, garray, narray, p, selector) => { - const program = cellBO.getProgram(); - if (normalMatrixUsed) { - const a = model.normalMatrix; - const b = narray; - const ofs = p * 9; - const out = model.tmpMat3; - const a00 = a[0]; - const a01 = a[1]; - const a02 = a[2]; - const a10 = a[3]; - const a11 = a[4]; - const a12 = a[5]; - const a20 = a[6]; - const a21 = a[7]; - const a22 = a[8]; - const b00 = b[ofs]; - const b01 = b[ofs + 1]; - const b02 = b[ofs + 2]; - const b10 = b[ofs + 3]; - const b11 = b[ofs + 4]; - const b12 = b[ofs + 5]; - const b20 = b[ofs + 6]; - const b21 = b[ofs + 7]; - const b22 = b[ofs + 8]; - out[0] = b00 * a00 + b01 * a10 + b02 * a20; - out[1] = b00 * a01 + b01 * a11 + b02 * a21; - out[2] = b00 * a02 + b01 * a12 + b02 * a22; - out[3] = b10 * a00 + b11 * a10 + b12 * a20; - out[4] = b10 * a01 + b11 * a11 + b12 * a21; - out[5] = b10 * a02 + b11 * a12 + b12 * a22; - out[6] = b20 * a00 + b21 * a10 + b22 * a20; - out[7] = b20 * a01 + b21 * a11 + b22 * a21; - out[8] = b20 * a02 + b21 * a12 + b22 * a22; - program.setUniformMatrix3x3('normalMatrix', model.tmpMat3); - } - publicAPI.multiply4x4WithOffset(model.tmpMat4, model.mcpcMatrix, garray, p * 16); - program.setUniformMatrix('MCPCMatrix', model.tmpMat4); - if (mcvcMatrixUsed) { - publicAPI.multiply4x4WithOffset(model.tmpMat4, model.mcvcMatrix, garray, p * 16); - program.setUniformMatrix('MCVCMatrix', model.tmpMat4); - } - - // set color - if (carray) { - const cdata = carray.getData(); - model.tmpColor[0] = cdata[p * 4] / 255.0; - model.tmpColor[1] = cdata[p * 4 + 1] / 255.0; - model.tmpColor[2] = cdata[p * 4 + 2] / 255.0; - program.setUniform3fArray('ambientColorUniform', model.tmpColor); - program.setUniform3fArray('diffuseColorUniform', model.tmpColor); - } - if (selector) { - program.setUniform3fArray('mapperIndex', selector.getPropColorValue()); - } - }; - publicAPI.renderPieceDraw = (ren, actor) => { - const representation = actor.getProperty().getRepresentation(); - const gl = model.context; - const drawSurfaceWithEdges = actor.getProperty().getEdgeVisibility() && representation === Representation.SURFACE; - - // [WMVP]C == {world, model, view, projection} coordinates - // E.g., WCPC == world to projection coordinate transformation - const keyMats = model.openGLCamera.getKeyMatrices(ren); - const actMats = model.openGLActor.getKeyMatrices(); - - // precompute the actor+camera mats once - mat3.multiply(model.normalMatrix, keyMats.normalMatrix, actMats.normalMatrix); - mat4.multiply(model.mcpcMatrix, keyMats.wcpc, actMats.mcwc); - mat4.multiply(model.mcvcMatrix, keyMats.wcvc, actMats.mcwc); - const garray = model.renderable.getMatrixArray(); - const narray = model.renderable.getNormalArray(); - const carray = model.renderable.getColorArray(); - const numPts = garray.length / 16; - let compositePass = false; - if (model._openGLRenderer.getSelector()) { - if (model._openGLRenderer.getSelector().getCurrentPass() === PassTypes.COMPOSITE_INDEX_PASS) { - compositePass = true; - } - } - - // for every primitive type - for (let i = model.primTypes.Start; i < model.primTypes.End; i++) { - // if there are entries - const cabo = model.primitives[i].getCABO(); - if (cabo.getElementCount()) { - // are we drawing edges - model.drawingEdges = drawSurfaceWithEdges && (i === model.primTypes.TrisEdges || i === model.primTypes.TriStripsEdges); - model.lastBoundBO = model.primitives[i]; - model.primitives[i].updateShaders(ren, actor, publicAPI); - const program = model.primitives[i].getProgram(); - const mode = model.primitives[i].getOpenGLMode(representation); - const normalMatrixUsed = program.isUniformUsed('normalMatrix'); - const mcvcMatrixUsed = program.isUniformUsed('MCVCMatrix'); - if (model.hardwareSupport) { - if (model.extension) { - model.extension.drawArraysInstancedANGLE(mode, 0, cabo.getElementCount(), numPts); - } else { - gl.drawArraysInstanced(mode, 0, cabo.getElementCount(), numPts); - } - } else { - // draw the array multiple times with different cam matrix - for (let p = 0; p < numPts; ++p) { - if (compositePass) { - model._openGLRenderer.getSelector().renderCompositeIndex(p); - } - publicAPI.updateGlyphShaderParameters(normalMatrixUsed, mcvcMatrixUsed, model.primitives[i], carray, garray, narray, p, compositePass ? model._openGLRenderer.getSelector() : null); - gl.drawArrays(mode, 0, cabo.getElementCount()); - } - } - } - } - }; - publicAPI.setMapperShaderParameters = (cellBO, ren, actor) => { - if (cellBO.getCABO().getElementCount() && (model.glyphBOBuildTime.getMTime() > cellBO.getAttributeUpdateTime().getMTime() || cellBO.getShaderSourceTime().getMTime() > cellBO.getAttributeUpdateTime().getMTime())) { - if (cellBO.getProgram().isAttributeUsed('gMatrix')) { - if (!cellBO.getVAO().addAttributeMatrixWithDivisor(cellBO.getProgram(), model.matrixBuffer, 'gMatrix', 0, 64, model.context.FLOAT, 4, false, 1)) { - vtkErrorMacro('Error setting gMatrix in shader VAO.'); - } - } else { - cellBO.getVAO().removeAttributeArray('gMatrix'); - } - if (cellBO.getProgram().isAttributeUsed('gNormal')) { - if (!cellBO.getVAO().addAttributeMatrixWithDivisor(cellBO.getProgram(), model.normalBuffer, 'gNormal', 0, 36, model.context.FLOAT, 3, false, 1)) { - vtkErrorMacro('Error setting gNormal in shader VAO.'); - } - } else { - cellBO.getVAO().removeAttributeArray('gNormal'); - } - if (cellBO.getProgram().isAttributeUsed('gColor')) { - if (!cellBO.getVAO().addAttributeArrayWithDivisor(cellBO.getProgram(), model.colorBuffer, 'gColor', 0, 4, model.context.UNSIGNED_BYTE, 4, true, 1, false)) { - vtkErrorMacro('Error setting gColor in shader VAO.'); - } - } else { - cellBO.getVAO().removeAttributeArray('gColor'); - } - if (cellBO.getProgram().isAttributeUsed('mapperIndexVS')) { - if (!cellBO.getVAO().addAttributeArrayWithDivisor(cellBO.getProgram(), model.pickBuffer, 'mapperIndexVS', 0, 4, model.context.UNSIGNED_BYTE, 4, true, 1, false)) { - vtkErrorMacro('Error setting mapperIndexVS in shader VAO.'); - } - } else { - cellBO.getVAO().removeAttributeArray('mapperIndexVS'); - } - superClass.setMapperShaderParameters(cellBO, ren, actor); - cellBO.getAttributeUpdateTime().modified(); - return; - } - superClass.setMapperShaderParameters(cellBO, ren, actor); - }; - publicAPI.getNeedToRebuildBufferObjects = (ren, actor) => { - model.renderable.buildArrays(); - - // first do a coarse check - // Note that the actor's mtime includes it's properties mtime - const vmtime = model.VBOBuildTime.getMTime(); - if (vmtime < model.renderable.getBuildTime().getMTime()) { - return true; - } - return superClass.getNeedToRebuildBufferObjects(ren, actor); - }; - publicAPI.getNeedToRebuildShaders = (cellBO, ren, actor) => { - if (superClass.getNeedToRebuildShaders(cellBO, ren, actor) || cellBO.getShaderSourceTime().getMTime() < model.renderable.getMTime() || cellBO.getShaderSourceTime().getMTime() < model.currentInput.getMTime()) { - return true; - } - return false; - }; - publicAPI.buildBufferObjects = (ren, actor) => { - const garray = model.renderable.getMatrixArray(); - const pts = model.renderable.getInputData(0).getPoints(); - const { - useShiftAndScale, - coordShift, - coordScale - } = computeCoordShiftAndScale(pts); - if (model.hardwareSupport) { - // update the buffer objects if needed - const narray = model.renderable.getNormalArray(); - const carray = model.renderable.getColorArray(); - if (!model.matrixBuffer) { - model.matrixBuffer = vtkBufferObject.newInstance(); - model.matrixBuffer.setOpenGLRenderWindow(model._openGLRenderWindow); - model.normalBuffer = vtkBufferObject.newInstance(); - model.normalBuffer.setOpenGLRenderWindow(model._openGLRenderWindow); - model.colorBuffer = vtkBufferObject.newInstance(); - model.colorBuffer.setOpenGLRenderWindow(model._openGLRenderWindow); - model.pickBuffer = vtkBufferObject.newInstance(); - model.pickBuffer.setOpenGLRenderWindow(model._openGLRenderWindow); - } - if (useShiftAndScale) { - const buf = garray.buffer; - for (let ptIdx = 0; ptIdx < garray.byteLength; ptIdx += MAT4_BYTE_SIZE) { - const mat = new Float32Array(buf, ptIdx, MAT4_ELEMENT_COUNT); - applyShiftScaleToMat(mat, coordShift, coordScale); - } - } - if (model.renderable.getBuildTime().getMTime() > model.glyphBOBuildTime.getMTime()) { - model.matrixBuffer.upload(garray, ObjectType.ARRAY_BUFFER); - model.normalBuffer.upload(narray, ObjectType.ARRAY_BUFFER); - if (carray) { - model.colorBuffer.upload(carray.getData(), ObjectType.ARRAY_BUFFER); - } else { - model.colorBuffer.releaseGraphicsResources(); - } - const numPts = garray.length / 16; - const parray = new Uint8Array(4 * numPts); - for (let i = 0; i < numPts; ++i) { - let value = i + 1; - const offset = i * 4; - parray[offset] = value % 256; - value -= parray[offset]; - value /= 256; - parray[offset + 1] = value % 256; - value -= parray[offset + 1]; - value /= 256; - parray[offset + 2] = value % 256; - parray[offset + 3] = 255; - } - model.pickBuffer.upload(parray, ObjectType.ARRAY_BUFFER); - model.glyphBOBuildTime.modified(); - } - } - superClass.buildBufferObjects(ren, actor); - - // apply shift + scale to primitives AFTER vtkOpenGLPolyDataMapper.buildBufferObjects - // so that the Glyph3DMapper gets the last say in the shift + scale - if (useShiftAndScale) { - for (let i = primTypes.Start; i < primTypes.End; i++) { - model.primitives[i].getCABO().setCoordShiftAndScale(coordShift, coordScale); - } - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - normalMatrix: null, - mcpcMatrix: null, - mcwcMatrix: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkOpenGLPolyDataMapper.extend(publicAPI, model, initialValues); - model.tmpMat3 = mat3.identity(new Float64Array(9)); - model.normalMatrix = mat3.identity(new Float64Array(9)); - model.mcpcMatrix = mat4.identity(new Float64Array(16)); - model.mcvcMatrix = mat4.identity(new Float64Array(16)); - model.tmpColor = []; - model.glyphBOBuildTime = {}; - obj(model.glyphBOBuildTime, { - mtime: 0 - }); - - // Object methods - vtkOpenGLGlyph3DMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkOpenGLGlyph3DMapper'); - -// ---------------------------------------------------------------------------- - -var vtkGlyph3DMapper = { - newInstance, - extend -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkGlyph3DMapper', newInstance); - -export { vtkGlyph3DMapper as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/HardwareSelector.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/HardwareSelector.d.ts deleted file mode 100644 index 5bae1e63..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/HardwareSelector.d.ts +++ /dev/null @@ -1,356 +0,0 @@ -import vtkSelectionNode from './../../Common/DataModel/SelectionNode'; -import { - IHardwareSelectorInitialValues, - vtkHardwareSelector, -} from './../Core/HardwareSelector'; -import vtkProp from './../Core/Prop'; -import vtkRenderer from './../Core/Renderer'; -import vtkOpenGLRenderWindow from './RenderWindow'; -import { FieldAssociations } from './../../Common/DataModel/DataSet/Constants'; -import { EventHandler, vtkSubscription } from './../../interfaces'; -import { Nullable, Vector2, Vector3 } from './../../types'; -import { PassTypes } from './HardwareSelector/Constants'; - -type Area = [number, number, number, number]; - -export interface BufferData { - area: Area; - pixBuffer: Uint8Array[]; -} - -export interface SourceData { - area: Area; - pixBuffer: Uint8Array[]; - captureZValues: boolean; - zBuffer: Uint8Array; - props: vtkProp[]; - fieldAssociation: FieldAssociations; - renderer: vtkRenderer; - openGLRenderWindow: vtkOpenGLRenderWindow; - generateSelection( - buffdata: BufferData, - fx1: number, - fy1: number, - fx2: number, - fy2: number - ): vtkSelectionNode[]; -} - -export interface PixelInformation { - valid: boolean; - prop: vtkProp; - propID: number; - compositeID: number; - zValue: number; - displayPosition: Vector2; - attributeID?: number; -} - -// TODO extends vtkHardwareSelector -export interface vtkOpenGLHardwareSelector extends vtkHardwareSelector { - /** - * Releases internal pixel buffer memory. - */ - releasePixBuffers(): void; - - /** - * Preps for picking the scene. - * - * Call endSelection() afterwards. - */ - beginSelection(): void; - - /** - * Cleans up picking state. - * - * Should be after a call to beginSelection(); - */ - endSelection(): void; - - /** - * Runs a pre-capture pass. - */ - preCapturePass(): void; - - /** - * Runs a post-capture pass. - */ - postCapturePass(): void; - - /** - * Generates a selection. - */ - select(): Nullable; - - /** - * Get the picking source data. - * - * @param {vtkRenderer} renderer - * @param {number} fx1 top left x coord - * @param {number} fy1 top left y coord - * @param {number} fx2 bottom right x coord - * @param {number} fy2 bottom right y coord - */ - getSourceDataAsync( - renderer: vtkRenderer, - fx1: number, - fy1: number, - fx2: number, - fy2: number - ): Promise; - - /** - * Captures the scene for picking. - * @returns whether the capture succeeded. - */ - captureBuffers(): boolean; - - /** - * Processes the pixel buffers for actors. - */ - processPixelBuffers(): void; - - /** - * Determines if a pass is required. - * @param {PassTypes} pass - */ - passRequired(pass: PassTypes): boolean; - - /** - * Saves the pixel buffer from the view. - * @param {PassTypes} pass - */ - savePixelBuffer(pass: PassTypes): void; - - /** - * Builds the prop hit list. - * @param {Uint8Array} pixelBuffer - */ - buildPropHitList(pixelBuffer: Uint8Array): void; - - /** - * Renders a prop for picking. - * @param {vtkProp} prop - */ - renderProp(prop: vtkProp): void; - - /** - * Sets the current prop's color value for the composite index. - * @param {number} index - */ - renderCompositeIndex(index: number): void; - - /** - * Renders an attribute ID. - * @param {number} attribId - */ - renderAttributeId(attribId: number): void; - - /** - * Returns the pass type name as a string. - * @param {PassTypes} type - */ - passTypeToString(type: PassTypes): string; - - /** - * Has the prop with the given internal ID been hit. - * @param {number} id - */ - isPropHit(id: number): boolean; - - /** - * Sets the internal color used for coloring the current prop. - * @param {number} val - */ - setPropColorValueFromInt(val: number): void; - - /** - * Gets the selection information for a given pixel. - * - * @param inDispPos The input diplay position. - * @param maxDistance The max distance to consider from the input position. - * @param outDispPos The output display position. - */ - getPixelInformation( - inDispPos: Vector2, - maxDistance: number, - outDispPos: Vector2 - ): Nullable; - - /** - * Generates selections in a given area. - * - * @param {number} fx1 top left x coord - * @param {number} fy1 top left y coord - * @param {number} fx2 bottom right x coord - * @param {number} fy2 bottom right y coord - */ - generateSelection( - fx1: number, - fy1: number, - fx2: number, - fy2: number - ): vtkSelectionNode[]; - - /** - * Get the raw pixel buffer for a pass type. - * @param {PassTypes} passNo - */ - getRawPixelBuffer(passNo: PassTypes): Uint8Array; - - /** - * Get the pixel buffer for a pass type. - * @param {PassTypes} passNo - */ - getPixelBuffer(passNo: PassTypes): Uint8Array; - - /** - * Attaches a render window + renderer to this hardware selector. - * @param {Nullable} openglRenderWindow - * @param {Nullable} renderer - */ - attach( - openglRenderWindow: Nullable, - renderer: Nullable - ): void; - - /** - * Sets the current renderer. - * @param {vtkRenderer} ren - */ - setRenderer(ren: vtkRenderer): boolean; - - /** - * Gets the current renderer. - */ - getRenderer(): vtkRenderer; - - /** - * Sets the current pass type. - * @param {PassTypes} pass - */ - setCurrentPass(pass: PassTypes): boolean; - - /** - * Gets the current pass type. - */ - getCurrentPass(): PassTypes; - - /** - * Sets the current opengl render window. - * @param {vtkOpenGLRenderWindow} oglrw - */ - setOpenGLRenderWindow(oglrw: vtkOpenGLRenderWindow): boolean; - - getOpenGLRenderWindow(): vtkOpenGLRenderWindow; - - /** - * Sets the maximum point ID. - * @param {number} id - */ - setMaximumPointId(id: number): boolean; - - /** - * Gets the maximum point ID. - */ - getMaximumPointId(): number; - - /** - * Sets the maximum cell ID. - * @param {number} id - */ - setMaximumCellId(id: number): boolean; - - /** - * Gets the maximum cell ID. - */ - getMaximumCellId(): number; - - /** - * Sets the prop's color value. - * @param {Vector3} color - */ - setPropColorValue(color: Vector3): boolean; - - /** - * Sets the prop's color value. - * @param {number} r - * @param {number} g - * @param {number} b - */ - setPropColorValue(r: number, g: number, b: number): boolean; - - /** - * Gets the prop color value. - */ - getPropColorValue(): Vector3; - - /** - * Sets the selection area. - * - * @param area An area bounding box - */ - setArea(area: Area): boolean; - - /** - * Sets the selection area. - * @param {number} fx1 top left x coord - * @param {number} fy1 top left y coord - * @param {number} fx2 bottom right x coord - * @param {number} fy2 bottom right y coord - */ - setArea(fx1: number, fy1: number, fx2: number, fy2: number): boolean; - - /** - * Gets the selection area. - */ - getArea(): Area; - - /** - * Listen to the start/stop events. - * @param cb - * @param priority - */ - onEvent(cb: EventHandler, priority?: number): Readonly; -} - -export interface IOpenGLHardwareSelectorInitialValues - extends IHardwareSelectorInitialValues { - maximumPointId?: number; - maximumCellId?: number; - idOffset?: number; -} - -export function newInstance( - initialValues?: IOpenGLHardwareSelectorInitialValues -): vtkOpenGLHardwareSelector; - -export function extend( - publicAPI: object, - model: object, - initialValues?: IOpenGLHardwareSelectorInitialValues -): void; - -/** - * The WebGL implementation of the hardware selector renders the id of the VBO - * vertices (gl_VertexID) with an offset to a RGBA texture. - * Only the RGB channels of the RGBA texture are used. This means that a single - * render can only draw 24 bits of information. To reach 32 bits, the hardware - * selector renders a second pass which only writes in the R channel of the - * texture. - * - * Note: - * - With Webgl 2, it is now possible to render directly to a R32 texture and - * even render to multiple render targets. - * - The raw pixel buffers fetched from WebGL are processed in the core mapper - * (see `processSelectorPixelBuffers`) instead of the PolydataMapper. - * - The processing of the raw pixel buffers does not output an UInt32Array as - * we could expect, but one or two textures with the same layout as the RGBA - * textures as input. - */ -export const vtkOpenGLHardwareSelector: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkOpenGLHardwareSelector; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/HardwareSelector.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/HardwareSelector.js deleted file mode 100644 index c0ccf8e4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/HardwareSelector.js +++ /dev/null @@ -1,721 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import Constants from './HardwareSelector/Constants.js'; -import vtkHardwareSelector$1 from '../Core/HardwareSelector.js'; -import vtkOpenGLFramebuffer from './Framebuffer.js'; -import vtkSelectionNode from '../../Common/DataModel/SelectionNode.js'; -import vtkDataSet from '../../Common/DataModel/DataSet.js'; - -const { - PassTypes -} = Constants; -const { - SelectionContent, - SelectionField -} = vtkSelectionNode; -const { - FieldAssociations -} = vtkDataSet; -const { - vtkErrorMacro -} = macro; -const idOffset = 1; -function getInfoHash(info) { - return `${info.propID} ${info.compositeID}`; -} -function getAlpha(xx, yy, pb, area) { - if (!pb) { - return 0; - } - const offset = (yy * (area[2] - area[0] + 1) + xx) * 4; - return pb[offset + 3]; -} -function convert(xx, yy, pb, area) { - if (!pb) { - return 0; - } - - // console.log(caller); - // console.log('convert', xx, yy, pb, area); - const offset = (yy * (area[2] - area[0] + 1) + xx) * 4; - const r = pb[offset]; - const g = pb[offset + 1]; - const b = pb[offset + 2]; - // console.log(b, g, r, (b * 256 + g) * 256 + r); - return (b * 256 + g) * 256 + r; -} -function getID(low24, high8) { - /* eslint-disable no-bitwise */ - let val = high8; - val <<= 24; - val |= low24; - return val; - /* eslint-enable no-bitwise */ -} - -function getPixelInformationWithData(buffdata, inDisplayPosition, maxDistance, outSelectedPosition) { - // Base case - const maxDist = maxDistance < 0 ? 0 : maxDistance; - if (maxDist === 0) { - outSelectedPosition[0] = inDisplayPosition[0]; - outSelectedPosition[1] = inDisplayPosition[1]; - if (inDisplayPosition[0] < buffdata.area[0] || inDisplayPosition[0] > buffdata.area[2] || inDisplayPosition[1] < buffdata.area[1] || inDisplayPosition[1] > buffdata.area[3]) { - return null; - } - - // offset inDisplayPosition based on the lower-left-corner of the Area. - const displayPosition = [inDisplayPosition[0] - buffdata.area[0], inDisplayPosition[1] - buffdata.area[1]]; - const actorid = convert(displayPosition[0], displayPosition[1], buffdata.pixBuffer[PassTypes.ACTOR_PASS], buffdata.area); - if (actorid <= 0 || actorid - idOffset >= buffdata.props.length) { - // the pixel did not hit any actor. - return null; - } - const info = {}; - info.valid = true; - info.propID = actorid - idOffset; - info.prop = buffdata.props[info.propID]; - let compositeID = convert(displayPosition[0], displayPosition[1], buffdata.pixBuffer[PassTypes.COMPOSITE_INDEX_PASS], buffdata.area); - if (compositeID < 0 || compositeID > 0xffffff) { - compositeID = 0; - } - info.compositeID = compositeID - idOffset; - if (buffdata.captureZValues) { - const offset = (displayPosition[1] * (buffdata.area[2] - buffdata.area[0] + 1) + displayPosition[0]) * 4; - info.zValue = (256 * buffdata.zBuffer[offset] + buffdata.zBuffer[offset + 1]) / 65535.0; - info.displayPosition = inDisplayPosition; - } - if (buffdata.pixBuffer[PassTypes.ID_LOW24]) { - if (getAlpha(displayPosition[0], displayPosition[1], buffdata.pixBuffer[PassTypes.ID_LOW24], buffdata.area) === 0.0) { - return info; - } - } - const low24 = convert(displayPosition[0], displayPosition[1], buffdata.pixBuffer[PassTypes.ID_LOW24], buffdata.area); - const high24 = convert(displayPosition[0], displayPosition[1], buffdata.pixBuffer[PassTypes.ID_HIGH24], buffdata.area); - info.attributeID = getID(low24, high24); - return info; - } - - // Iterate over successively growing boxes. - // They recursively call the base case to handle single pixels. - const dispPos = [inDisplayPosition[0], inDisplayPosition[1]]; - const curPos = [0, 0]; - let info = getPixelInformationWithData(buffdata, inDisplayPosition, 0, outSelectedPosition); - if (info && info.valid) { - return info; - } - for (let dist = 1; dist < maxDist; ++dist) { - // Vertical sides of box. - for (let y = dispPos[1] > dist ? dispPos[1] - dist : 0; y <= dispPos[1] + dist; ++y) { - curPos[1] = y; - if (dispPos[0] >= dist) { - curPos[0] = dispPos[0] - dist; - info = getPixelInformationWithData(buffdata, curPos, 0, outSelectedPosition); - if (info && info.valid) { - return info; - } - } - curPos[0] = dispPos[0] + dist; - info = getPixelInformationWithData(buffdata, curPos, 0, outSelectedPosition); - if (info && info.valid) { - return info; - } - } - // Horizontal sides of box. - for (let x = dispPos[0] >= dist ? dispPos[0] - (dist - 1) : 0; x <= dispPos[0] + (dist - 1); ++x) { - curPos[0] = x; - if (dispPos[1] >= dist) { - curPos[1] = dispPos[1] - dist; - info = getPixelInformationWithData(buffdata, curPos, 0, outSelectedPosition); - if (info && info.valid) { - return info; - } - } - curPos[1] = dispPos[1] + dist; - info = getPixelInformationWithData(buffdata, curPos, 0, outSelectedPosition); - if (info && info.valid) { - return info; - } - } - } - - // nothing hit. - outSelectedPosition[0] = inDisplayPosition[0]; - outSelectedPosition[1] = inDisplayPosition[1]; - return null; -} - -//----------------------------------------------------------------------------- -function convertSelection(fieldassociation, dataMap, captureZValues, renderer, openGLRenderWindow) { - const sel = []; - let count = 0; - dataMap.forEach((value, key) => { - const child = vtkSelectionNode.newInstance(); - child.setContentType(SelectionContent.INDICES); - switch (fieldassociation) { - case FieldAssociations.FIELD_ASSOCIATION_CELLS: - child.setFieldType(SelectionField.CELL); - break; - case FieldAssociations.FIELD_ASSOCIATION_POINTS: - child.setFieldType(SelectionField.POINT); - break; - default: - vtkErrorMacro('Unknown field association'); - } - child.getProperties().propID = value.info.propID; - child.getProperties().prop = value.info.prop; - child.getProperties().compositeID = value.info.compositeID; - child.getProperties().attributeID = value.info.attributeID; - child.getProperties().pixelCount = value.pixelCount; - if (captureZValues) { - child.getProperties().displayPosition = [value.info.displayPosition[0], value.info.displayPosition[1], value.info.zValue]; - child.getProperties().worldPosition = openGLRenderWindow.displayToWorld(value.info.displayPosition[0], value.info.displayPosition[1], value.info.zValue, renderer); - } - child.setSelectionList(value.attributeIDs); - sel[count] = child; - count++; - }); - return sel; -} - -//---------------------------------------------------------------------------- -function generateSelectionWithData(buffdata, fx1, fy1, fx2, fy2) { - const x1 = Math.floor(fx1); - const y1 = Math.floor(fy1); - const x2 = Math.floor(fx2); - const y2 = Math.floor(fy2); - const dataMap = new Map(); - const outSelectedPosition = [0, 0]; - for (let yy = y1; yy <= y2; yy++) { - for (let xx = x1; xx <= x2; xx++) { - const pos = [xx, yy]; - const info = getPixelInformationWithData(buffdata, pos, 0, outSelectedPosition); - if (info && info.valid) { - const hash = getInfoHash(info); - if (!dataMap.has(hash)) { - dataMap.set(hash, { - info, - pixelCount: 1, - attributeIDs: [info.attributeID] - }); - } else { - const dmv = dataMap.get(hash); - dmv.pixelCount++; - if (buffdata.captureZValues) { - if (info.zValue < dmv.info.zValue) { - dmv.info = info; - } - } - if (dmv.attributeIDs.indexOf(info.attributeID) === -1) { - dmv.attributeIDs.push(info.attributeID); - } - } - } - } - } - return convertSelection(buffdata.fieldAssociation, dataMap, buffdata.captureZValues, buffdata.renderer, buffdata.openGLRenderWindow); -} - -// ---------------------------------------------------------------------------- -// vtkOpenGLHardwareSelector methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLHardwareSelector(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLHardwareSelector'); - - //---------------------------------------------------------------------------- - publicAPI.releasePixBuffers = () => { - model.rawPixBuffer = []; - model.pixBuffer = []; - model.zBuffer = null; - }; - - //---------------------------------------------------------------------------- - publicAPI.beginSelection = () => { - model._openGLRenderer = model._openGLRenderWindow.getViewNodeFor(model._renderer); - model.maxAttributeId = 0; - const size = model._openGLRenderWindow.getSize(); - if (!model.framebuffer) { - model.framebuffer = vtkOpenGLFramebuffer.newInstance(); - model.framebuffer.setOpenGLRenderWindow(model._openGLRenderWindow); - model.framebuffer.saveCurrentBindingsAndBuffers(); - model.framebuffer.create(size[0], size[1]); - // this calls model.framebuffer.bind() - model.framebuffer.populateFramebuffer(); - } else { - model.framebuffer.setOpenGLRenderWindow(model._openGLRenderWindow); - model.framebuffer.saveCurrentBindingsAndBuffers(); - const fbSize = model.framebuffer.getSize(); - if (!fbSize || fbSize[0] !== size[0] || fbSize[1] !== size[1]) { - model.framebuffer.create(size[0], size[1]); - // this calls model.framebuffer.bind() - model.framebuffer.populateFramebuffer(); - } else { - model.framebuffer.bind(); - } - } - model._openGLRenderer.clear(); - model._openGLRenderer.setSelector(publicAPI); - model.hitProps = {}; - model.propPixels = {}; - model.props = []; - publicAPI.releasePixBuffers(); - if (model.fieldAssociation === FieldAssociations.FIELD_ASSOCIATION_POINTS) { - const gl = model._openGLRenderWindow.getContext(); - const originalBlending = gl.isEnabled(gl.BLEND); - gl.disable(gl.BLEND); - model._openGLRenderWindow.traverseAllPasses(); - if (originalBlending) { - gl.enable(gl.BLEND); - } - } - }; - - //---------------------------------------------------------------------------- - publicAPI.endSelection = () => { - model.hitProps = {}; - model._openGLRenderer.setSelector(null); - model.framebuffer.restorePreviousBindingsAndBuffers(); - }; - publicAPI.preCapturePass = () => { - const gl = model._openGLRenderWindow.getContext(); - // Disable blending - model.originalBlending = gl.isEnabled(gl.BLEND); - gl.disable(gl.BLEND); - }; - publicAPI.postCapturePass = () => { - const gl = model._openGLRenderWindow.getContext(); - // Restore blending if it was enabled prior to the capture - if (model.originalBlending) { - gl.enable(gl.BLEND); - } - }; - - //---------------------------------------------------------------------------- - publicAPI.select = () => { - let sel = null; - if (publicAPI.captureBuffers()) { - sel = publicAPI.generateSelection(model.area[0], model.area[1], model.area[2], model.area[3]); - publicAPI.releasePixBuffers(); - } - return sel; - }; - publicAPI.getSourceDataAsync = async (renderer, fx1, fy1, fx2, fy2) => { - // assign the renderer - model._renderer = renderer; - - // set area to all if no arguments provided - if (fx1 === undefined) { - const size = model._openGLRenderWindow.getSize(); - publicAPI.setArea(0, 0, size[0] - 1, size[1] - 1); - } else { - publicAPI.setArea(fx1, fy1, fx2, fy2); - } - // just do capture buffers and package up the result - if (!publicAPI.captureBuffers()) { - return false; - } - const result = { - area: [...model.area], - pixBuffer: [...model.pixBuffer], - captureZValues: model.captureZValues, - zBuffer: model.zBuffer, - props: [...model.props], - fieldAssociation: model.fieldAssociation, - renderer, - openGLRenderWindow: model._openGLRenderWindow - }; - result.generateSelection = function () { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - return generateSelectionWithData(result, ...args); - }; - return result; - }; - - //---------------------------------------------------------------------------- - publicAPI.captureBuffers = () => { - if (!model._renderer || !model._openGLRenderWindow) { - vtkErrorMacro('Renderer and view must be set before calling Select.'); - return false; - } - model._openGLRenderer = model._openGLRenderWindow.getViewNodeFor(model._renderer); - - // todo revisit making selection part of core - // then we can do this in core - model._openGLRenderWindow.getRenderable().preRender(); - - // int rgba[4]; - // rwin.getColorBufferSizes(rgba); - // if (rgba[0] < 8 || rgba[1] < 8 || rgba[2] < 8) { - // vtkErrorMacro("Color buffer depth must be at least 8 bit. " - // "Currently: " << rgba[0] << ", " << rgba[1] << ", " < { - model.currentPass = pass; - publicAPI.processPixelBuffers(); - }); - model.currentPass = PassTypes.MAX_KNOWN_PASS; - publicAPI.endSelection(); - - // restore original background - model._renderer.setBackground(model.originalBackground); - publicAPI.invokeEvent({ - type: 'EndEvent' - }); - - // restore image, not needed? - // model._openGLRenderWindow.traverseAllPasses(); - return true; - }; - publicAPI.processPixelBuffers = () => { - model.props.forEach((prop, index) => { - if (publicAPI.isPropHit(index)) { - prop.processSelectorPixelBuffers(publicAPI, model.propPixels[index]); - } - }); - }; - - //---------------------------------------------------------------------------- - publicAPI.passRequired = pass => { - if (pass === PassTypes.ID_HIGH24) { - if (model.fieldAssociation === FieldAssociations.FIELD_ASSOCIATION_POINTS) { - return model.maximumPointId > 0x00ffffff; - } - if (model.fieldAssociation === FieldAssociations.FIELD_ASSOCIATION_CELLS) { - return model.maximumCellId > 0x00ffffff; - } - } - return true; - }; - - //---------------------------------------------------------------------------- - publicAPI.savePixelBuffer = passNo => { - model.pixBuffer[passNo] = model._openGLRenderWindow.getPixelData(model.area[0], model.area[1], model.area[2], model.area[3]); - if (!model.rawPixBuffer[passNo]) { - const size = (model.area[2] - model.area[0] + 1) * (model.area[3] - model.area[1] + 1) * 4; - model.rawPixBuffer[passNo] = new Uint8Array(size); - model.rawPixBuffer[passNo].set(model.pixBuffer[passNo]); - } - if (passNo === PassTypes.ACTOR_PASS) { - if (model.captureZValues) { - const rpasses = model._openGLRenderWindow.getRenderPasses(); - if (typeof rpasses[0].requestDepth === 'function' && typeof rpasses[0].getFramebuffer === 'function') { - const fb = rpasses[0].getFramebuffer(); - fb.saveCurrentBindingsAndBuffers(); - fb.bind(); - model.zBuffer = model._openGLRenderWindow.getPixelData(model.area[0], model.area[1], model.area[2], model.area[3]); - fb.restorePreviousBindingsAndBuffers(); - } - } - publicAPI.buildPropHitList(model.rawPixBuffer[passNo]); - } - }; - - //---------------------------------------------------------------------------- - publicAPI.buildPropHitList = pixelbuffer => { - let offset = 0; - for (let yy = 0; yy <= model.area[3] - model.area[1]; yy++) { - for (let xx = 0; xx <= model.area[2] - model.area[0]; xx++) { - let val = convert(xx, yy, pixelbuffer, model.area); - if (val > 0) { - val--; - if (!(val in model.hitProps)) { - model.hitProps[val] = true; - model.propPixels[val] = []; - } - model.propPixels[val].push(offset * 4); - } - ++offset; - } - } - }; - - //---------------------------------------------------------------------------- - publicAPI.renderProp = prop => { - if (model.currentPass === PassTypes.ACTOR_PASS) { - publicAPI.setPropColorValueFromInt(model.props.length + idOffset); - model.props.push(prop); - } - }; - - //---------------------------------------------------------------------------- - publicAPI.renderCompositeIndex = index => { - if (model.currentPass === PassTypes.COMPOSITE_INDEX_PASS) { - publicAPI.setPropColorValueFromInt(index + idOffset); - } - }; - - //---------------------------------------------------------------------------- - // TODO: make inline - publicAPI.renderAttributeId = attribid => { - if (attribid < 0) { - // negative attribid is valid. It happens when rendering higher order - // elements where new points are added for rendering smooth surfaces. - return; - } - model.maxAttributeId = attribid > model.maxAttributeId ? attribid : model.maxAttributeId; - - // if (model.currentPass < PassTypes.ID_LOW24) { - // return; // useless... - // } - }; - - //---------------------------------------------------------------------------- - publicAPI.passTypeToString = type => macro.enumToString(PassTypes, type); - - //---------------------------------------------------------------------------- - publicAPI.isPropHit = id => Boolean(model.hitProps[id]); - publicAPI.setPropColorValueFromInt = val => { - model.propColorValue[0] = val % 256 / 255.0; - model.propColorValue[1] = Math.floor(val / 256) % 256 / 255.0; - model.propColorValue[2] = Math.floor(val / 65536) % 256 / 255.0; - }; - - // info has - // valid - // propId - // prop - // compositeID - // attributeID - - //---------------------------------------------------------------------------- - publicAPI.getPixelInformation = (inDisplayPosition, maxDistance, outSelectedPosition) => { - // Base case - const maxDist = maxDistance < 0 ? 0 : maxDistance; - console.log('getPixelInformation called', maxDist); - if (maxDist === 0) { - outSelectedPosition[0] = inDisplayPosition[0]; - outSelectedPosition[1] = inDisplayPosition[1]; - if (inDisplayPosition[0] < model.area[0] || inDisplayPosition[0] > model.area[2] || inDisplayPosition[1] < model.area[1] || inDisplayPosition[1] > model.area[3]) { - return null; - } - console.log(inDisplayPosition); - console.log(model.area); - // offset inDisplayPosition based on the lower-left-corner of the Area. - const displayPosition = [inDisplayPosition[0] - model.area[0], inDisplayPosition[1] - model.area[1]]; - console.log('adjusted displayPosition', displayPosition); - const actorid = convert(displayPosition[0], displayPosition[1], model.pixBuffer[PassTypes.ACTOR_PASS], model.area); - console.log('actorid', actorid); - if (actorid <= 0 || actorid - idOffset >= model.props.length) { - // the pixel did not hit any actor. - return null; - } - const info = {}; - info.valid = true; - info.propID = actorid - idOffset; - info.prop = model.props[info.propID]; - let compositeID = convert(displayPosition[0], displayPosition[1], model.pixBuffer[PassTypes.COMPOSITE_INDEX_PASS], model.area); - if (compositeID < 0 || compositeID > 0xffffff) { - compositeID = 0; - } - info.compositeID = compositeID - idOffset; - if (model.captureZValues) { - const offset = (displayPosition[1] * (model.area[2] - model.area[0] + 1) + displayPosition[0]) * 4; - info.zValue = (256 * model.zBuffer[offset] + model.zBuffer[offset + 1]) / 65535.0; - info.displayPosition = inDisplayPosition; - } - - // Skip attribute ids if alpha is zero (missed) - if (model.pixBuffer[PassTypes.ID_LOW24]) { - if (getAlpha(displayPosition[0], displayPosition[1], model.pixBuffer[PassTypes.ID_LOW24], model.area) === 0.0) { - return info; - } - } - const low24 = convert(displayPosition[0], displayPosition[1], model.pixBuffer[PassTypes.ID_LOW24], model.area); - const high24 = convert(displayPosition[0], displayPosition[1], model.pixBuffer[PassTypes.ID_HIGH24], model.area); - info.attributeID = getID(low24, high24); - return info; - } - - // Iterate over successively growing boxes. - // They recursively call the base case to handle single pixels. - const dispPos = [inDisplayPosition[0], inDisplayPosition[1]]; - const curPos = [0, 0]; - let info = publicAPI.getPixelInformation(inDisplayPosition, 0, outSelectedPosition); - if (info && info.valid) { - return info; - } - for (let dist = 1; dist < maxDist; ++dist) { - // Vertical sides of box. - for (let y = dispPos[1] > dist ? dispPos[1] - dist : 0; y <= dispPos[1] + dist; ++y) { - curPos[1] = y; - if (dispPos[0] >= dist) { - curPos[0] = dispPos[0] - dist; - info = publicAPI.getPixelInformation(curPos, 0, outSelectedPosition); - if (info && info.valid) { - return info; - } - } - curPos[0] = dispPos[0] + dist; - info = publicAPI.getPixelInformation(curPos, 0, outSelectedPosition); - if (info && info.valid) { - return info; - } - } - // Horizontal sides of box. - for (let x = dispPos[0] >= dist ? dispPos[0] - (dist - 1) : 0; x <= dispPos[0] + (dist - 1); ++x) { - curPos[0] = x; - if (dispPos[1] >= dist) { - curPos[1] = dispPos[1] - dist; - info = publicAPI.getPixelInformation(curPos, 0, outSelectedPosition); - if (info && info.valid) { - return info; - } - } - curPos[1] = dispPos[1] + dist; - info = publicAPI.getPixelInformation(curPos, 0, outSelectedPosition); - if (info && info.valid) { - return info; - } - } - } - - // nothing hit. - outSelectedPosition[0] = inDisplayPosition[0]; - outSelectedPosition[1] = inDisplayPosition[1]; - return null; - }; - - //---------------------------------------------------------------------------- - publicAPI.generateSelection = (fx1, fy1, fx2, fy2) => { - const x1 = Math.floor(fx1); - const y1 = Math.floor(fy1); - const x2 = Math.floor(fx2); - const y2 = Math.floor(fy2); - const dataMap = new Map(); - const outSelectedPosition = [0, 0]; - for (let yy = y1; yy <= y2; yy++) { - for (let xx = x1; xx <= x2; xx++) { - const pos = [xx, yy]; - const info = publicAPI.getPixelInformation(pos, 0, outSelectedPosition); - if (info && info.valid) { - const hash = getInfoHash(info); - if (!dataMap.has(hash)) { - dataMap.set(hash, { - info, - pixelCount: 1, - attributeIDs: [info.attributeID] - }); - } else { - const dmv = dataMap.get(hash); - dmv.pixelCount++; - if (model.captureZValues) { - if (info.zValue < dmv.info.zValue) { - dmv.info = info; - } - } - if (dmv.attributeIDs.indexOf(info.attributeID) === -1) { - dmv.attributeIDs.push(info.attributeID); - } - } - } - } - } - return convertSelection(model.fieldAssociation, dataMap, model.captureZValues, model._renderer, model._openGLRenderWindow); - }; - publicAPI.getRawPixelBuffer = passNo => model.rawPixBuffer[passNo]; - publicAPI.getPixelBuffer = passNo => model.pixBuffer[passNo]; - - //---------------------------------------------------------------------------- - - publicAPI.attach = (openGLRenderWindow, renderer) => { - model._openGLRenderWindow = openGLRenderWindow; - model._renderer = renderer; - }; - - // override - const superSetArea = publicAPI.setArea; - publicAPI.setArea = function () { - if (superSetArea(...arguments)) { - model.area[0] = Math.floor(model.area[0]); - model.area[1] = Math.floor(model.area[1]); - model.area[2] = Math.floor(model.area[2]); - model.area[3] = Math.floor(model.area[3]); - return true; - } - return false; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - area: undefined, - // _renderer: null, - // _openGLRenderWindow: null, - // _openGLRenderer: null, - currentPass: -1, - propColorValue: null, - props: null, - maximumPointId: 0, - maximumCellId: 0, - idOffset: 1 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - vtkHardwareSelector$1.extend(publicAPI, model, initialValues); - model.propColorValue = [0, 0, 0]; - model.props = []; - if (!model.area) { - model.area = [0, 0, 0, 0]; - } - macro.setGetArray(publicAPI, model, ['area'], 4); - macro.setGet(publicAPI, model, ['_renderer', 'currentPass', '_openGLRenderWindow', 'maximumPointId', 'maximumCellId']); - macro.setGetArray(publicAPI, model, ['propColorValue'], 3); - macro.moveToProtected(publicAPI, model, ['renderer', 'openGLRenderWindow']); - macro.event(publicAPI, model, 'event'); - - // Object methods - vtkOpenGLHardwareSelector(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkOpenGLHardwareSelector'); - -// ---------------------------------------------------------------------------- - -var vtkHardwareSelector = { - newInstance, - extend, - ...Constants -}; - -export { vtkHardwareSelector as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/HardwareSelector/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/HardwareSelector/Constants.d.ts deleted file mode 100644 index a711b388..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/HardwareSelector/Constants.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export declare enum PassTypes { - MIN_KNOWN_PASS = 0, - ACTOR_PASS = 0, - COMPOSITE_INDEX_PASS = 1, - ID_LOW24 = 2, - ID_HIGH24 = 3, - MAX_KNOWN_PASS = 3, -} diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/HardwareSelector/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/HardwareSelector/Constants.js deleted file mode 100644 index 4ea6a3f5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/HardwareSelector/Constants.js +++ /dev/null @@ -1,13 +0,0 @@ -const PassTypes = { - MIN_KNOWN_PASS: 0, - ACTOR_PASS: 0, - COMPOSITE_INDEX_PASS: 1, - ID_LOW24: 2, - ID_HIGH24: 3, - MAX_KNOWN_PASS: 3 -}; -var Constants = { - PassTypes -}; - -export { PassTypes, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Helper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Helper.js deleted file mode 100644 index bc8ca3d9..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Helper.js +++ /dev/null @@ -1,222 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCellArrayBufferObject from './CellArrayBufferObject.js'; -import vtkShaderProgram from './ShaderProgram.js'; -import vtkVertexArrayObject from './VertexArrayObject.js'; -import { Representation } from '../Core/Property/Constants.js'; - -const primTypes = { - Start: 0, - Points: 0, - Lines: 1, - Tris: 2, - TriStrips: 3, - TrisEdges: 4, - TriStripsEdges: 5, - End: 6 -}; - -// ---------------------------------------------------------------------------- -// vtkOpenGLHelper methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLHelper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLHelper'); - publicAPI.setOpenGLRenderWindow = win => { - model.context = win.getContext(); - model.program.setContext(model.context); - model.VAO.setOpenGLRenderWindow(win); - model.CABO.setOpenGLRenderWindow(win); - }; - publicAPI.releaseGraphicsResources = oglwin => { - model.VAO.releaseGraphicsResources(); - model.CABO.releaseGraphicsResources(); - model.CABO.setElementCount(0); - }; - publicAPI.drawArrays = (ren, actor, rep, oglMapper) => { - // Are there any entries - if (model.CABO.getElementCount()) { - // are we drawing edges - const mode = publicAPI.getOpenGLMode(rep); - const wideLines = publicAPI.haveWideLines(ren, actor); - const gl = model.context; - const depthMask = gl.getParameter(gl.DEPTH_WRITEMASK); - if (model.pointPicking) { - gl.depthMask(false); - } - const drawingLines = mode === gl.LINES; - if (drawingLines && wideLines) { - publicAPI.updateShaders(ren, actor, oglMapper); - gl.drawArraysInstanced(mode, 0, model.CABO.getElementCount(), 2 * Math.ceil(actor.getProperty().getLineWidth())); - } else { - gl.lineWidth(actor.getProperty().getLineWidth()); - publicAPI.updateShaders(ren, actor, oglMapper); - gl.drawArrays(mode, 0, model.CABO.getElementCount()); - // reset the line width - gl.lineWidth(1); - } - const stride = (mode === gl.POINTS ? 1 : 0) || (mode === gl.LINES ? 2 : 3); - if (model.pointPicking) { - gl.depthMask(depthMask); - } - return model.CABO.getElementCount() / stride; - } - return 0; - }; - publicAPI.getOpenGLMode = rep => { - if (model.pointPicking) { - return model.context.POINTS; - } - const type = model.primitiveType; - if (rep === Representation.POINTS || type === primTypes.Points) { - return model.context.POINTS; - } - if (rep === Representation.WIREFRAME || type === primTypes.Lines || type === primTypes.TrisEdges || type === primTypes.TriStripsEdges) { - return model.context.LINES; - } - return model.context.TRIANGLES; - }; - publicAPI.haveWideLines = (ren, actor) => { - if (actor.getProperty().getLineWidth() > 1.0) { - // we have wide lines, but the OpenGL implementation may - // actually support them, check the range to see if we - // really need have to implement our own wide lines - if (model.CABO.getOpenGLRenderWindow()) { - if (model.CABO.getOpenGLRenderWindow().getHardwareMaximumLineWidth() >= actor.getProperty().getLineWidth()) { - return false; - } - } - return true; - } - return false; - }; - publicAPI.getNeedToRebuildShaders = (ren, actor, oglMapper) => { - // has something changed that would require us to recreate the shader? - // candidates are - // property modified (representation interpolation and lighting) - // input modified - // mapper modified (lighting complexity) - if (oglMapper.getNeedToRebuildShaders(publicAPI, ren, actor) || publicAPI.getProgram() === 0 || publicAPI.getShaderSourceTime().getMTime() < oglMapper.getMTime() || publicAPI.getShaderSourceTime().getMTime() < actor.getMTime()) { - return true; - } - return false; - }; - publicAPI.updateShaders = (ren, actor, oglMapper) => { - // has something changed that would require us to recreate the shader? - if (publicAPI.getNeedToRebuildShaders(ren, actor, oglMapper)) { - const shaders = { - Vertex: null, - Fragment: null, - Geometry: null - }; - oglMapper.buildShaders(shaders, ren, actor); - - // compile and bind the program if needed - const newShader = model.CABO.getOpenGLRenderWindow().getShaderCache().readyShaderProgramArray(shaders.Vertex, shaders.Fragment, shaders.Geometry); - - // if the shader changed reinitialize the VAO - if (newShader !== publicAPI.getProgram()) { - publicAPI.setProgram(newShader); - // reset the VAO as the shader has changed - publicAPI.getVAO().releaseGraphicsResources(); - } - publicAPI.getShaderSourceTime().modified(); - } else { - model.CABO.getOpenGLRenderWindow().getShaderCache().readyShaderProgram(publicAPI.getProgram()); - } - publicAPI.getVAO().bind(); - oglMapper.setMapperShaderParameters(publicAPI, ren, actor); - oglMapper.setPropertyShaderParameters(publicAPI, ren, actor); - oglMapper.setCameraShaderParameters(publicAPI, ren, actor); - oglMapper.setLightingShaderParameters(publicAPI, ren, actor); - oglMapper.invokeShaderCallbacks(publicAPI, ren, actor); - }; - publicAPI.setMapperShaderParameters = (ren, actor, size) => { - if (publicAPI.haveWideLines(ren, actor)) { - publicAPI.getProgram().setUniform2f('viewportSize', size.usize, size.vsize); - const lineWidth = parseFloat(actor.getProperty().getLineWidth()); - const halfLineWidth = lineWidth / 2.0; - publicAPI.getProgram().setUniformf('lineWidthStepSize', lineWidth / Math.ceil(lineWidth)); - publicAPI.getProgram().setUniformf('halfLineWidth', halfLineWidth); - } - if (model.primitiveType === primTypes.Points || actor.getProperty().getRepresentation() === Representation.POINTS) { - publicAPI.getProgram().setUniformf('pointSize', actor.getProperty().getPointSize()); - } else if (model.pointPicking) { - publicAPI.getProgram().setUniformf('pointSize', publicAPI.getPointPickingPrimitiveSize()); - } - }; - publicAPI.replaceShaderPositionVC = (shaders, ren, actor) => { - let VSSource = shaders.Vertex; - - // Always set point size in case we need picking - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::PositionVC::Dec', ['//VTK::PositionVC::Dec', 'uniform float pointSize;']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::PositionVC::Impl', ['//VTK::PositionVC::Impl', ' gl_PointSize = pointSize;'], false).result; - - // for lines, make sure we add the width code - if (publicAPI.getOpenGLMode(actor.getProperty().getRepresentation()) === model.context.LINES && publicAPI.haveWideLines(ren, actor)) { - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::PositionVC::Dec', ['//VTK::PositionVC::Dec', 'uniform vec2 viewportSize;', 'uniform float lineWidthStepSize;', 'uniform float halfLineWidth;']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::PositionVC::Impl', ['//VTK::PositionVC::Impl', ' if (halfLineWidth > 0.0)', ' {', ' float offset = float(gl_InstanceID / 2) * lineWidthStepSize - halfLineWidth;', ' vec4 tmpPos = gl_Position;', ' vec3 tmpPos2 = tmpPos.xyz / tmpPos.w;', ' tmpPos2.x = tmpPos2.x + 2.0 * mod(float(gl_InstanceID), 2.0) * offset / viewportSize[0];', ' tmpPos2.y = tmpPos2.y + 2.0 * mod(float(gl_InstanceID + 1), 2.0) * offset / viewportSize[1];', ' gl_Position = vec4(tmpPos2.xyz * tmpPos.w, tmpPos.w);', ' }']).result; - } - shaders.Vertex = VSSource; - }; - publicAPI.getPointPickingPrimitiveSize = () => { - if (model.primitiveType === primTypes.Points) { - return 2; - } - if (model.primitiveType === primTypes.Lines) { - return 4; - } - return 6; - }; - publicAPI.getAllocatedGPUMemoryInBytes = () => publicAPI.getCABO().getAllocatedGPUMemoryInBytes(); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - context: null, - program: null, - shaderSourceTime: null, - VAO: null, - attributeUpdateTime: null, - CABO: null, - primitiveType: 0, - pointPicking: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - model.shaderSourceTime = {}; - macro.obj(model.shaderSourceTime); - model.attributeUpdateTime = {}; - macro.obj(model.attributeUpdateTime); - macro.setGet(publicAPI, model, ['program', 'shaderSourceTime', 'VAO', 'attributeUpdateTime', 'CABO', 'primitiveType', 'pointPicking']); - model.program = vtkShaderProgram.newInstance(); - model.VAO = vtkVertexArrayObject.newInstance(); - model.CABO = vtkCellArrayBufferObject.newInstance(); - - // Object methods - vtkOpenGLHelper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend); - -// ---------------------------------------------------------------------------- - -var vtkHelper = { - newInstance, - extend, - primTypes -}; - -export { vtkHelper as default, extend, newInstance, primTypes }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ImageCPRMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ImageCPRMapper.js deleted file mode 100644 index 37f12daf..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ImageCPRMapper.js +++ /dev/null @@ -1,1026 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { mat4, vec3 } from 'gl-matrix'; -import { Filter } from './Texture/Constants.js'; -import { InterpolationType } from '../Core/ImageProperty/Constants.js'; -import { ProjectionMode } from '../Core/ImageCPRMapper/Constants.js'; -import { Representation } from '../Core/Property/Constants.js'; -import { VtkDataTypes } from '../../Common/Core/DataArray/Constants.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkHelper from './Helper.js'; -import vtkOpenGLTexture from './Texture.js'; -import vtkReplacementShaderMapper from './ReplacementShaderMapper.js'; -import vtkShaderProgram from './ShaderProgram.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { getImageDataHash, getTransferFunctionsHash } from './RenderWindow/resourceSharingHelper.js'; -import { v as vtkPolyDataVS } from './glsl/vtkPolyDataVS.glsl.js'; -import { v as vtkPolyDataFS } from './glsl/vtkPolyDataFS.glsl.js'; -import { registerOverride } from './ViewNodeFactory.js'; -import '../Core/Mapper/CoincidentTopologyHelper.js'; -import { Resolve } from '../Core/Mapper/Static.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkOpenGLImageCPRMapper methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLImageCPRMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLImageCPRMapper'); - function unregisterGraphicsResources(renderWindow) { - [model._scalars, model._colorTransferFunc, model._pwFunc].forEach(coreObject => renderWindow.unregisterGraphicsResourceUser(coreObject, publicAPI)); - } - publicAPI.buildPass = prepass => { - if (prepass) { - model.currentRenderPass = null; - model.openGLImageSlice = publicAPI.getFirstAncestorOfType('vtkOpenGLImageSlice'); - model._openGLRenderer = publicAPI.getFirstAncestorOfType('vtkOpenGLRenderer'); - const oldOglRenderWindow = model._openGLRenderWindow; - model._openGLRenderWindow = model._openGLRenderer.getLastAncestorOfType('vtkOpenGLRenderWindow'); - if (oldOglRenderWindow && !oldOglRenderWindow.isDeleted() && oldOglRenderWindow !== model._openGLRenderWindow) { - unregisterGraphicsResources(oldOglRenderWindow); - } - model.context = model._openGLRenderWindow.getContext(); - model.openGLCamera = model._openGLRenderer.getViewNodeFor(model._openGLRenderer.getRenderable().getActiveCamera()); - model.tris.setOpenGLRenderWindow(model._openGLRenderWindow); - } - }; - publicAPI.opaquePass = (prepass, renderPass) => { - if (prepass) { - model.currentRenderPass = renderPass; - publicAPI.render(); - } - }; - publicAPI.opaqueZBufferPass = prepass => { - if (prepass) { - model.haveSeenDepthRequest = true; - model.renderDepth = true; - publicAPI.render(); - model.renderDepth = false; - } - }; - publicAPI.getCoincidentParameters = (ren, actor) => { - if (model.renderable.getResolveCoincidentTopology() === Resolve.PolygonOffset) { - return model.renderable.getCoincidentTopologyPolygonOffsetParameters(); - } - return null; - }; - publicAPI.render = () => { - const prop = model.openGLImageSlice.getRenderable(); - const ren = model._openGLRenderer.getRenderable(); - publicAPI.renderPiece(ren, prop); - }; - publicAPI.renderPiece = (ren, prop) => { - publicAPI.invokeEvent({ - type: 'StartEvent' - }); - model.renderable.update(); - publicAPI.invokeEvent({ - type: 'EndEvent' - }); - - // Check if the ImageCPRMapper has everything it needs to render - if (!model.renderable.preRenderCheck()) { - return; - } - model.currentImageDataInput = model.renderable.getInputData(0); - model.currentCenterlineInput = model.renderable.getOrientedCenterline(); - publicAPI.renderPieceStart(ren, prop); - publicAPI.renderPieceDraw(ren, prop); - publicAPI.renderPieceFinish(ren, prop); - }; - publicAPI.renderPieceStart = (ren, actor) => { - // make sure the BOs are up to date - publicAPI.updateBufferObjects(ren, actor); - }; - publicAPI.renderPieceDraw = (ren, actor) => { - const gl = model.context; - - // activate the texture - model.volumeTexture.activate(); - model.colorTexture.activate(); - model.pwfTexture.activate(); - - // draw polygons - if (model.tris.getCABO().getElementCount()) { - // First we do the triangles, update the shader, set uniforms, etc. - publicAPI.updateShaders(model.tris, ren, actor); - gl.drawArrays(gl.TRIANGLES, 0, model.tris.getCABO().getElementCount()); - model.tris.getVAO().release(); - } - model.volumeTexture.deactivate(); - model.colorTexture.deactivate(); - model.pwfTexture.deactivate(); - }; - publicAPI.renderPieceFinish = (ren, actor) => {}; - publicAPI.updateBufferObjects = (ren, actor) => { - // Rebuild buffers if needed - if (publicAPI.getNeedToRebuildBufferObjects(ren, actor)) { - publicAPI.buildBufferObjects(ren, actor); - } - // Set interpolation on the texture based on property setting - const actorProperty = actor.getProperty(); - if (actorProperty.getInterpolationType() === InterpolationType.NEAREST) { - model.volumeTexture.setMinificationFilter(Filter.NEAREST); - model.volumeTexture.setMagnificationFilter(Filter.NEAREST); - model.colorTexture.setMinificationFilter(Filter.NEAREST); - model.colorTexture.setMagnificationFilter(Filter.NEAREST); - model.pwfTexture.setMinificationFilter(Filter.NEAREST); - model.pwfTexture.setMagnificationFilter(Filter.NEAREST); - } else { - model.volumeTexture.setMinificationFilter(Filter.LINEAR); - model.volumeTexture.setMagnificationFilter(Filter.LINEAR); - model.colorTexture.setMinificationFilter(Filter.LINEAR); - model.colorTexture.setMagnificationFilter(Filter.LINEAR); - model.pwfTexture.setMinificationFilter(Filter.LINEAR); - model.pwfTexture.setMagnificationFilter(Filter.LINEAR); - } - }; - publicAPI.getNeedToRebuildBufferObjects = (ren, actor) => { - // first do a coarse check - // Note that the actor's mtime includes it's properties mtime - const vmtime = model.VBOBuildTime.getMTime(); - return vmtime < publicAPI.getMTime() || vmtime < model.renderable.getMTime() || vmtime < actor.getMTime() || vmtime < model.currentImageDataInput.getMTime() || vmtime < model.currentCenterlineInput.getMTime() || !model.volumeTexture?.getHandle(); - }; - publicAPI.buildBufferObjects = (ren, actor) => { - const image = model.currentImageDataInput; - const centerline = model.currentCenterlineInput; - const property = actor.getProperty(); - - // Rebuild the volumeTexture if the data has changed - const scalars = image?.getPointData()?.getScalars(); - if (!scalars) { - return; - } - const cachedScalarsEntry = model._openGLRenderWindow.getGraphicsResourceForObject(scalars); - const volumeTextureHash = getImageDataHash(image, scalars); - const reBuildTex = !cachedScalarsEntry?.oglObject?.getHandle() || cachedScalarsEntry?.hash !== volumeTextureHash; - const updatedExtents = property.getUpdatedExtents(); - const hasUpdatedExtents = !!updatedExtents.length; - if (reBuildTex) { - model.volumeTexture = vtkOpenGLTexture.newInstance(); - model.volumeTexture.setOpenGLRenderWindow(model._openGLRenderWindow); - // Build the textures - const dims = image.getDimensions(); - // Use norm16 for scalar texture if the extension is available - model.volumeTexture.setOglNorm16Ext(model.context.getExtension('EXT_texture_norm16')); - model.volumeTexture.resetFormatAndType(); - model.volumeTexture.create3DFilterableFromDataArray({ - width: dims[0], - height: dims[1], - depth: dims[2], - dataArray: scalars, - preferSizeOverAccuracy: model.renderable.getPreferSizeOverAccuracy() - }); - model._openGLRenderWindow.setGraphicsResourceForObject(scalars, model.volumeTexture, volumeTextureHash); - if (scalars !== model._scalars) { - model._openGLRenderWindow.registerGraphicsResourceUser(scalars, publicAPI); - model._openGLRenderWindow.unregisterGraphicsResourceUser(model._scalars, publicAPI); - } - model._scalars = scalars; - } else { - model.volumeTexture = cachedScalarsEntry.oglObject; - } - if (hasUpdatedExtents) { - // If hasUpdatedExtents, then the texture is partially updated. - // clear the array to acknowledge the update. - property.setUpdatedExtents([]); - const dims = image.getDimensions(); - model.volumeTexture.create3DFilterableFromDataArray({ - width: dims[0], - height: dims[1], - depth: dims[2], - dataArray: scalars, - updatedExtents - }); - } - - // Rebuild the color texture if needed - const numComp = scalars.getNumberOfComponents(); - const ppty = actor.getProperty(); - const iComps = ppty.getIndependentComponents(); - const numIComps = iComps ? numComp : 1; - const textureHeight = iComps ? 2 * numIComps : 1; - const colorTransferFunctions = []; - for (let component = 0; component < numIComps; ++component) { - colorTransferFunctions.push(ppty.getRGBTransferFunction(component)); - } - const colorTextureHash = getTransferFunctionsHash(colorTransferFunctions, iComps, numIComps); - const firstColorTransferFunc = ppty.getRGBTransferFunction(); - const cachedColorEntry = model._openGLRenderWindow.getGraphicsResourceForObject(firstColorTransferFunc); - const reBuildColorTexture = !cachedColorEntry?.oglObject?.getHandle() || cachedColorEntry?.hash !== colorTextureHash; - if (reBuildColorTexture) { - let cWidth = model.renderable.getColorTextureWidth(); - if (cWidth <= 0) { - cWidth = model.context.getParameter(model.context.MAX_TEXTURE_SIZE); - } - const cSize = cWidth * textureHeight * 3; - const cTable = new Uint8ClampedArray(cSize); - model.colorTexture = vtkOpenGLTexture.newInstance(); - model.colorTexture.setOpenGLRenderWindow(model._openGLRenderWindow); - if (firstColorTransferFunc) { - const tmpTable = new Float32Array(cWidth * 3); - for (let c = 0; c < numIComps; c++) { - const cfun = ppty.getRGBTransferFunction(c); - const cRange = cfun.getRange(); - cfun.getTable(cRange[0], cRange[1], cWidth, tmpTable, 1); - if (iComps) { - for (let i = 0; i < cWidth * 3; i++) { - cTable[c * cWidth * 6 + i] = 255.0 * tmpTable[i]; - cTable[c * cWidth * 6 + i + cWidth * 3] = 255.0 * tmpTable[i]; - } - } else { - for (let i = 0; i < cWidth * 3; i++) { - cTable[c * cWidth * 6 + i] = 255.0 * tmpTable[i]; - } - } - } - model.colorTexture.resetFormatAndType(); - model.colorTexture.create2DFromRaw({ - width: cWidth, - height: textureHeight, - numComps: 3, - dataType: VtkDataTypes.UNSIGNED_CHAR, - data: cTable - }); - } else { - for (let i = 0; i < cWidth * 3; ++i) { - cTable[i] = 255.0 * i / ((cWidth - 1) * 3); - cTable[i + 1] = 255.0 * i / ((cWidth - 1) * 3); - cTable[i + 2] = 255.0 * i / ((cWidth - 1) * 3); - } - model.colorTexture.resetFormatAndType(); - model.colorTexture.create2DFromRaw({ - width: cWidth, - height: 1, - numComps: 3, - dataType: VtkDataTypes.UNSIGNED_CHAR, - data: cTable - }); - } - if (firstColorTransferFunc) { - model._openGLRenderWindow.setGraphicsResourceForObject(firstColorTransferFunc, model.colorTexture, colorTextureHash); - if (firstColorTransferFunc !== model._colorTransferFunc) { - model._openGLRenderWindow.registerGraphicsResourceUser(firstColorTransferFunc, publicAPI); - model._openGLRenderWindow.unregisterGraphicsResourceUser(model._colorTransferFunc, publicAPI); - } - model._colorTransferFunc = firstColorTransferFunc; - } - } else { - model.colorTexture = cachedColorEntry.oglObject; - } - - // Build piecewise function buffer. This buffer is used either - // for component weighting or opacity, depending on whether we're - // rendering components independently or not. - const opacityFunctions = []; - for (let component = 0; component < numIComps; ++component) { - opacityFunctions.push(ppty.getPiecewiseFunction(component)); - } - const pwfTextureHash = getTransferFunctionsHash(opacityFunctions, iComps, numIComps); - const firstPwFunc = ppty.getPiecewiseFunction(); - const cachedPwfEntry = model._openGLRenderWindow.getGraphicsResourceForObject(firstPwFunc); - const reBuildPwf = !cachedPwfEntry?.oglObject?.getHandle() || cachedPwfEntry?.hash !== pwfTextureHash; - if (reBuildPwf) { - let pwfWidth = model.renderable.getOpacityTextureWidth(); - if (pwfWidth <= 0) { - pwfWidth = model.context.getParameter(model.context.MAX_TEXTURE_SIZE); - } - const pwfSize = pwfWidth * textureHeight; - const pwfTable = new Uint8ClampedArray(pwfSize); - model.pwfTexture = vtkOpenGLTexture.newInstance(); - model.pwfTexture.setOpenGLRenderWindow(model._openGLRenderWindow); - if (firstPwFunc) { - const pwfFloatTable = new Float32Array(pwfSize); - const tmpTable = new Float32Array(pwfWidth); - for (let c = 0; c < numIComps; ++c) { - const pwfun = ppty.getPiecewiseFunction(c); - if (pwfun === null) { - // Piecewise constant max if no function supplied for this component - pwfFloatTable.fill(1.0); - } else { - const pwfRange = pwfun.getRange(); - pwfun.getTable(pwfRange[0], pwfRange[1], pwfWidth, tmpTable, 1); - // adjust for sample distance etc - if (iComps) { - for (let i = 0; i < pwfWidth; i++) { - pwfFloatTable[c * pwfWidth * 2 + i] = tmpTable[i]; - pwfFloatTable[c * pwfWidth * 2 + i + pwfWidth] = tmpTable[i]; - } - } else { - for (let i = 0; i < pwfWidth; i++) { - pwfFloatTable[c * pwfWidth * 2 + i] = tmpTable[i]; - } - } - } - } - model.pwfTexture.resetFormatAndType(); - model.pwfTexture.create2DFromRaw({ - width: pwfWidth, - height: textureHeight, - numComps: 1, - dataType: VtkDataTypes.FLOAT, - data: pwfFloatTable - }); - } else { - // default is opaque - pwfTable.fill(255.0); - model.pwfTexture.resetFormatAndType(); - model.pwfTexture.create2DFromRaw({ - width: pwfWidth, - height: 1, - numComps: 1, - dataType: VtkDataTypes.UNSIGNED_CHAR, - data: pwfTable - }); - } - if (firstPwFunc) { - model._openGLRenderWindow.setGraphicsResourceForObject(firstPwFunc, model.pwfTexture, pwfTextureHash); - if (firstPwFunc !== model._pwFunc) { - model._openGLRenderWindow.registerGraphicsResourceUser(firstPwFunc, publicAPI); - model._openGLRenderWindow.unregisterGraphicsResourceUser(model._pwFunc, publicAPI); - } - model._pwFunc = firstPwFunc; - } - } else { - model.pwfTexture = cachedPwfEntry.oglObject; - } - - // Rebuild the image vertices if needed - if (model.VBOBuildTime.getMTime() < model.renderable.getMTime() || model.VBOBuildTime.getMTime() < centerline.getMTime()) { - const nPoints = centerline.getNumberOfPoints(); - const nLines = nPoints <= 1 ? 0 : nPoints - 1; - const distances = centerline.getDistancesToFirstPoint(); - const totalHeight = model.renderable.getHeight(); - const nPts = 4 * nLines; - - // Create the array of point: 4 points per segment - const ptsArray = new Float32Array(3 * nPts); - const widthMC = model.renderable.getWidth(); - for (let lineIdx = 0, offset = 0; lineIdx < nLines; ++lineIdx) { - // Use model coordinates - // See "setCameraShaderParameters" to see how MCPCMatrix is built - - // Top left - ptsArray.set([0, totalHeight - distances[lineIdx], 0], offset); - offset += 3; - // Top right - ptsArray.set([widthMC, totalHeight - distances[lineIdx], 0], offset); - offset += 3; - // Bottom right - ptsArray.set([widthMC, totalHeight - distances[lineIdx + 1], 0], offset); - offset += 3; - // Bottom left - ptsArray.set([0, totalHeight - distances[lineIdx + 1], 0], offset); - offset += 3; - } - const points = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: ptsArray - }); - points.setName('points'); - - // Create the array of cells: a quad per segment - const cellArray = new Uint16Array(5 * nLines); - for (let lineIdx = 0, offset = 0, ptIdx = 0; lineIdx < nLines; ++lineIdx) { - cellArray.set([4, ptIdx + 3, ptIdx + 2, ptIdx + 1, ptIdx], offset); - offset += 5; - ptIdx += 4; - } - const cells = vtkDataArray.newInstance({ - numberOfComponents: 1, - values: cellArray - }); - - // Create the array of centerline positions (VBO custom attribute) - const pointsDataArray = centerline.getPoints(); - const centerlinePositionArray = new Float32Array(3 * nPts); - const pa = new Array(3); - const pb = new Array(3); - for (let lineIdx = 0, offset = 0; lineIdx < nLines; ++lineIdx) { - pointsDataArray.getPoint(lineIdx, pa); - pointsDataArray.getPoint(lineIdx + 1, pb); - - // Top left - centerlinePositionArray.set(pa, offset); - offset += 3; - // Top right - centerlinePositionArray.set(pa, offset); - offset += 3; - // Bottom right - centerlinePositionArray.set(pb, offset); - offset += 3; - // Bottom left - centerlinePositionArray.set(pb, offset); - offset += 3; - } - const centerlinePosition = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: centerlinePositionArray, - name: 'centerlinePosition' - }); - - // Create the array of quad index: - // 0 ____ 1 - // | | - // |____| - // 2 3 - const quadIndexArray = new Float32Array(nPts); - for (let lineIdx = 0, offset = 0; lineIdx < nLines; ++lineIdx) { - quadIndexArray.set([0, - // Top left - 1, - // Top right - 3, - // Bottom right - 2 // Bottom left - ], offset); - offset += 4; - } - const quadIndex = vtkDataArray.newInstance({ - numberOfComponents: 1, - values: quadIndexArray, - name: 'quadIndex' - }); - const customAttributes = [centerlinePosition, quadIndex]; - if (!model.renderable.getUseUniformOrientation()) { - // For each quad (i.e. centerline segment), a top and bottom quaternion give the orientation - // Send both quaternions to each vertex and use flat interpolation to get them "as is" in the fragment shader - // The interpolation of the quaternions will occur in the fragment shader (slerp) - const orientationQuats = model.renderable.getOrientedCenterline().getOrientations() ?? []; - const centerlineTopOrientationArray = new Float32Array(4 * nPts); - const centerlineBotOrientationArray = new Float32Array(4 * nPts); - for (let quadIdx = 0; quadIdx < nLines; ++quadIdx) { - // All vertices of a given quad have the same topDir and botDir - // Polyline goes from top to bottom - const topQuat = orientationQuats[quadIdx]; - const botQuat = orientationQuats[quadIdx + 1]; - for (let pointInQuadIdx = 0; pointInQuadIdx < 4; ++pointInQuadIdx) { - const pointIdx = pointInQuadIdx + 4 * quadIdx; - const quaternionArrayOffset = 4 * pointIdx; - centerlineTopOrientationArray.set(topQuat, quaternionArrayOffset); - centerlineBotOrientationArray.set(botQuat, quaternionArrayOffset); - } - } - const centerlineTopOrientation = vtkDataArray.newInstance({ - numberOfComponents: 4, - values: centerlineTopOrientationArray, - name: 'centerlineTopOrientation' - }); - const centerlineBotOrientation = vtkDataArray.newInstance({ - numberOfComponents: 4, - values: centerlineBotOrientationArray, - name: 'centerlineBotOrientation' - }); - customAttributes.push(centerlineTopOrientation, centerlineBotOrientation); - } - model.tris.getCABO().createVBO(cells, 'polys', Representation.SURFACE, { - points, - customAttributes - }); - model.VBOBuildTime.modified(); - } - }; - publicAPI.getNeedToRebuildShaders = (cellBO, ren, actor) => { - // has something changed that would require us to recreate the shader? - // candidates are - // presence of centerPoint - // value of useUniformOrientation - // property modified (representation interpolation and lighting) - // input modified - // light complexity changed - // render pass shader replacement changed - - const tNumComp = model.volumeTexture.getComponents(); - const iComp = actor.getProperty().getIndependentComponents(); - const useCenterPoint = !!model.renderable.getCenterPoint(); - const useUniformOrientation = model.renderable.getUseUniformOrientation(); - const projectionMode = model.renderable.isProjectionEnabled() && model.renderable.getProjectionMode(); - if (cellBO.getProgram() === 0 || model.lastUseCenterPoint !== useCenterPoint || model.lastUseUniformOrientation !== useUniformOrientation || model.lastProjectionMode !== projectionMode || model.lastHaveSeenDepthRequest !== model.haveSeenDepthRequest || model.lastTextureComponents !== tNumComp || model.lastIndependentComponents !== iComp) { - model.lastUseCenterPoint = useCenterPoint; - model.lastUseUniformOrientation = useUniformOrientation; - model.lastProjectionMode = projectionMode; - model.lastHaveSeenDepthRequest = model.haveSeenDepthRequest; - model.lastTextureComponents = tNumComp; - model.lastIndependentComponents = iComp; - return true; - } - return false; - }; - publicAPI.buildShaders = (shaders, ren, actor) => { - publicAPI.getShaderTemplate(shaders, ren, actor); - publicAPI.replaceShaderValues(shaders, ren, actor); - }; - publicAPI.replaceShaderValues = (shaders, ren, actor) => { - let VSSource = shaders.Vertex; - let FSSource = shaders.Fragment; - - // https://glmatrix.net/docs/vec3.js.html#line522 - const applyQuaternionToVecShaderFunction = ['vec3 applyQuaternionToVec(vec4 q, vec3 v) {', ' float uvx = q.y * v.z - q.z * v.y;', ' float uvy = q.z * v.x - q.x * v.z;', ' float uvz = q.x * v.y - q.y * v.x;', ' float uuvx = q.y * uvz - q.z * uvy;', ' float uuvy = q.z * uvx - q.x * uvz;', ' float uuvz = q.x * uvy - q.y * uvx;', ' float w2 = q.w * 2.0;', ' uvx *= w2;', ' uvy *= w2;', ' uvz *= w2;', ' uuvx *= 2.0;', ' uuvy *= 2.0;', ' uuvz *= 2.0;', ' return vec3(v.x + uvx + uuvx, v.y + uvy + uuvy, v.z + uvz + uuvz);', '}']; - - // Vertex shader main replacements - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Camera::Dec', ['uniform mat4 MCPCMatrix;']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::PositionVC::Impl', [' gl_Position = MCPCMatrix * vertexMC;']).result; - const vsColorDec = ['attribute vec3 centerlinePosition;', 'attribute float quadIndex;', 'uniform float width;', 'out vec2 quadOffsetVSOutput;', 'out vec3 centerlinePosVSOutput;']; - const useProjection = model.renderable.isProjectionEnabled(); - const isDirectionUniform = model.renderable.getUseUniformOrientation(); - if (isDirectionUniform) { - vsColorDec.push('out vec3 samplingDirVSOutput;', 'uniform vec4 centerlineOrientation;', 'uniform vec3 tangentDirection;', ...applyQuaternionToVecShaderFunction); - if (useProjection) { - vsColorDec.push('out vec3 projectionDirVSOutput;', 'uniform vec3 bitangentDirection;'); - } - } else { - vsColorDec.push('out vec4 centerlineTopOrientationVSOutput;', 'out vec4 centerlineBotOrientationVSOutput;', 'attribute vec4 centerlineTopOrientation;', 'attribute vec4 centerlineBotOrientation;'); - } - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Color::Dec', vsColorDec).result; - const vsColorImpl = [ - // quadOffsetVSOutput.x: left = -0.5* width; right = 0.5 * width - // quadOffsetVSOutput.y: bottom = 0.0; top = 1.0; - 'quadOffsetVSOutput = vec2(width * (mod(quadIndex, 2.0) == 0.0 ? -0.5 : 0.5), quadIndex > 1.0 ? 0.0 : 1.0);', 'centerlinePosVSOutput = centerlinePosition;']; - if (isDirectionUniform) { - vsColorImpl.push('samplingDirVSOutput = applyQuaternionToVec(centerlineOrientation, tangentDirection);'); - if (useProjection) { - vsColorImpl.push('projectionDirVSOutput = applyQuaternionToVec(centerlineOrientation, bitangentDirection);'); - } - } else { - vsColorImpl.push('centerlineTopOrientationVSOutput = centerlineTopOrientation;', 'centerlineBotOrientationVSOutput = centerlineBotOrientation;'); - } - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Color::Impl', vsColorImpl).result; - - // Fragment shader main replacements - const tNumComp = model.volumeTexture.getComponents(); - const iComps = actor.getProperty().getIndependentComponents(); - let tcoordFSDec = [ - // used to compute texture coordinates of the sample - 'uniform mat4 MCTCMatrix; // Model coordinates to texture coordinates', 'in vec2 quadOffsetVSOutput;', 'in vec3 centerlinePosVSOutput;', - // volume texture - 'uniform highp sampler3D volumeTexture;', - // color and pwf textures - 'uniform sampler2D colorTexture1;', 'uniform sampler2D pwfTexture1;', - // opacity - 'uniform float opacity;', - // background color (out of volume samples) - 'uniform vec4 backgroundColor;', - // color shift and scale - `uniform float cshift0;`, `uniform float cscale0;`, - // weighting shift and scale - `uniform float pwfshift0;`, `uniform float pwfscale0;`]; - if (useProjection) { - tcoordFSDec.push('uniform vec3 volumeSizeMC;', 'uniform int projectionSlabNumberOfSamples;', 'uniform float projectionConstantOffset;', 'uniform float projectionStepLength;'); - } - if (isDirectionUniform) { - tcoordFSDec.push('in vec3 samplingDirVSOutput;'); - if (useProjection) { - tcoordFSDec.push('in vec3 projectionDirVSOutput;'); - } - } else { - tcoordFSDec.push('uniform vec3 tangentDirection;', 'in vec4 centerlineTopOrientationVSOutput;', 'in vec4 centerlineBotOrientationVSOutput;', ...applyQuaternionToVecShaderFunction); - if (useProjection) { - tcoordFSDec.push('uniform vec3 bitangentDirection;'); - } - } - const centerPoint = model.renderable.getCenterPoint(); - if (centerPoint) { - tcoordFSDec.push('uniform vec3 globalCenterPoint;'); - } - if (iComps) { - for (let comp = 1; comp < tNumComp; comp++) { - tcoordFSDec = tcoordFSDec.concat([ - // color shift and scale - `uniform float cshift${comp};`, `uniform float cscale${comp};`, - // weighting shift and scale - `uniform float pwfshift${comp};`, `uniform float pwfscale${comp};`]); - } - // the heights defined below are the locations - // for the up to four components of the tfuns - // the tfuns have a height of 2XnumComps pixels so the - // values are computed to hit the middle of the two rows - // for that component - switch (tNumComp) { - case 1: - tcoordFSDec = tcoordFSDec.concat(['uniform float mix0;', '#define height0 0.5']); - break; - case 2: - tcoordFSDec = tcoordFSDec.concat(['uniform float mix0;', 'uniform float mix1;', '#define height0 0.25', '#define height1 0.75']); - break; - case 3: - tcoordFSDec = tcoordFSDec.concat(['uniform float mix0;', 'uniform float mix1;', 'uniform float mix2;', '#define height0 0.17', '#define height1 0.5', '#define height2 0.83']); - break; - case 4: - tcoordFSDec = tcoordFSDec.concat(['uniform float mix0;', 'uniform float mix1;', 'uniform float mix2;', 'uniform float mix3;', '#define height0 0.125', '#define height1 0.375', '#define height2 0.625', '#define height3 0.875']); - break; - default: - vtkErrorMacro('Unsupported number of independent coordinates.'); - } - } - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Dec', tcoordFSDec).result; - let tcoordFSImpl = []; - if (isDirectionUniform) { - tcoordFSImpl.push('vec3 samplingDirection = samplingDirVSOutput;'); - if (useProjection) { - tcoordFSImpl.push('vec3 projectionDirection = projectionDirVSOutput;'); - } - } else { - // Slerp or lerp between centerlineTopDirVSOutput and centerlineBotDirVSOutput - // We use quadOffsetVSOutput.y: bottom = 0.0; top = 1.0; - tcoordFSImpl.push( - // Slerp / Lerp - 'vec4 q0 = centerlineBotOrientationVSOutput;', 'vec4 q1 = centerlineTopOrientationVSOutput;', 'float qCosAngle = dot(q0, q1);', 'vec4 interpolatedOrientation;', 'if (qCosAngle > 0.999 || qCosAngle < -0.999) {', ' // Use LERP instead of SLERP when the two quaternions are close or opposite', ' interpolatedOrientation = normalize(mix(q0, q1, quadOffsetVSOutput.y));', '} else {', ' float omega = acos(qCosAngle);', ' interpolatedOrientation = normalize(sin((1.0 - quadOffsetVSOutput.y) * omega) * q0 + sin(quadOffsetVSOutput.y * omega) * q1);', '}', 'vec3 samplingDirection = applyQuaternionToVec(interpolatedOrientation, tangentDirection);'); - if (useProjection) { - tcoordFSImpl.push('vec3 projectionDirection = applyQuaternionToVec(interpolatedOrientation, bitangentDirection);'); - } - } - if (centerPoint) { - tcoordFSImpl.push('float baseOffset = dot(samplingDirection, globalCenterPoint - centerlinePosVSOutput);', 'float horizontalOffset = quadOffsetVSOutput.x + baseOffset;'); - } else { - tcoordFSImpl.push('float horizontalOffset = quadOffsetVSOutput.x;'); - } - tcoordFSImpl.push('vec3 volumePosMC = centerlinePosVSOutput + horizontalOffset * samplingDirection;', 'vec3 volumePosTC = (MCTCMatrix * vec4(volumePosMC, 1.0)).xyz;', 'if (any(lessThan(volumePosTC, vec3(0.0))) || any(greaterThan(volumePosTC, vec3(1.0))))', '{', ' // set the background color and exit', ' gl_FragData[0] = backgroundColor;', ' return;', '}'); - if (useProjection) { - const projectionMode = model.renderable.getProjectionMode(); - switch (projectionMode) { - case ProjectionMode.MIN: - tcoordFSImpl.push('const vec4 initialProjectionTextureValue = vec4(1.0);'); - break; - case ProjectionMode.MAX: - case ProjectionMode.AVERAGE: - default: - tcoordFSImpl.push('const vec4 initialProjectionTextureValue = vec4(0.0);'); - break; - } - - // Loop on all the samples of the projection - tcoordFSImpl.push('vec3 projectionScaledDirection = projectionDirection / volumeSizeMC;', 'vec3 projectionStep = projectionStepLength * projectionScaledDirection;', 'vec3 projectionStartPosition = volumePosTC + projectionConstantOffset * projectionScaledDirection;', 'vec4 tvalue = initialProjectionTextureValue;', 'for (int projectionSampleIdx = 0; projectionSampleIdx < projectionSlabNumberOfSamples; ++projectionSampleIdx) {', ' vec3 projectionSamplePosition = projectionStartPosition + float(projectionSampleIdx) * projectionStep;', ' vec4 sampledTextureValue = texture(volumeTexture, projectionSamplePosition);'); - switch (projectionMode) { - case ProjectionMode.MAX: - tcoordFSImpl.push(' tvalue = max(tvalue, sampledTextureValue);'); - break; - case ProjectionMode.MIN: - tcoordFSImpl.push(' tvalue = min(tvalue, sampledTextureValue);'); - break; - case ProjectionMode.AVERAGE: - default: - tcoordFSImpl.push(' tvalue = tvalue + sampledTextureValue;'); - break; - } - tcoordFSImpl.push('}'); - - // Process the total if needed - if (projectionMode === ProjectionMode.AVERAGE) { - tcoordFSImpl.push('tvalue = tvalue / float(projectionSlabNumberOfSamples);'); - } - } else { - tcoordFSImpl.push('vec4 tvalue = texture(volumeTexture, volumePosTC);'); - } - if (iComps) { - const rgba = ['r', 'g', 'b', 'a']; - for (let comp = 0; comp < tNumComp; ++comp) { - tcoordFSImpl = tcoordFSImpl.concat([`vec3 tcolor${comp} = mix${comp} * texture2D(colorTexture1, vec2(tvalue.${rgba[comp]} * cscale${comp} + cshift${comp}, height${comp})).rgb;`, `float compWeight${comp} = mix${comp} * texture2D(pwfTexture1, vec2(tvalue.${rgba[comp]} * pwfscale${comp} + pwfshift${comp}, height${comp})).r;`]); - } - switch (tNumComp) { - case 1: - tcoordFSImpl = tcoordFSImpl.concat(['gl_FragData[0] = vec4(tcolor0.rgb, compWeight0 * opacity);']); - break; - case 2: - tcoordFSImpl = tcoordFSImpl.concat(['float weightSum = compWeight0 + compWeight1;', 'gl_FragData[0] = vec4(vec3((tcolor0.rgb * (compWeight0 / weightSum)) + (tcolor1.rgb * (compWeight1 / weightSum))), opacity);']); - break; - case 3: - tcoordFSImpl = tcoordFSImpl.concat(['float weightSum = compWeight0 + compWeight1 + compWeight2;', 'gl_FragData[0] = vec4(vec3((tcolor0.rgb * (compWeight0 / weightSum)) + (tcolor1.rgb * (compWeight1 / weightSum)) + (tcolor2.rgb * (compWeight2 / weightSum))), opacity);']); - break; - case 4: - tcoordFSImpl = tcoordFSImpl.concat(['float weightSum = compWeight0 + compWeight1 + compWeight2 + compWeight3;', 'gl_FragData[0] = vec4(vec3((tcolor0.rgb * (compWeight0 / weightSum)) + (tcolor1.rgb * (compWeight1 / weightSum)) + (tcolor2.rgb * (compWeight2 / weightSum)) + (tcolor3.rgb * (compWeight3 / weightSum))), opacity);']); - break; - default: - vtkErrorMacro('Unsupported number of independent coordinates.'); - } - } else { - // dependent components - switch (tNumComp) { - case 1: - tcoordFSImpl = tcoordFSImpl.concat(['// Dependent components', 'float intensity = tvalue.r;', 'vec3 tcolor = texture2D(colorTexture1, vec2(intensity * cscale0 + cshift0, 0.5)).rgb;', 'float scalarOpacity = texture2D(pwfTexture1, vec2(intensity * pwfscale0 + pwfshift0, 0.5)).r;', 'gl_FragData[0] = vec4(tcolor, scalarOpacity * opacity);']); - break; - case 2: - tcoordFSImpl = tcoordFSImpl.concat(['float intensity = tvalue.r*cscale0 + cshift0;', 'gl_FragData[0] = vec4(texture2D(colorTexture1, vec2(intensity, 0.5)).rgb, pwfscale0*tvalue.g + pwfshift0);']); - break; - case 3: - tcoordFSImpl = tcoordFSImpl.concat(['vec4 tcolor = cscale0*tvalue + cshift0;', 'gl_FragData[0] = vec4(texture2D(colorTexture1, vec2(tcolor.r,0.5)).r,', ' texture2D(colorTexture1, vec2(tcolor.g,0.5)).r,', ' texture2D(colorTexture1, vec2(tcolor.b,0.5)).r, opacity);']); - break; - default: - tcoordFSImpl = tcoordFSImpl.concat(['vec4 tcolor = cscale0*tvalue + cshift0;', 'gl_FragData[0] = vec4(texture2D(colorTexture1, vec2(tcolor.r,0.5)).r,', ' texture2D(colorTexture1, vec2(tcolor.g,0.5)).r,', ' texture2D(colorTexture1, vec2(tcolor.b,0.5)).r, tcolor.a);']); - } - } - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Impl', tcoordFSImpl).result; - - // Picking shader replacements - if (model.haveSeenDepthRequest) { - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::ZBuffer::Dec', 'uniform int depthRequest;').result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::ZBuffer::Impl', ['if (depthRequest == 1) {', 'float iz = floor(gl_FragCoord.z*65535.0 + 0.1);', 'float rf = floor(iz/256.0)/255.0;', 'float gf = mod(iz,256.0)/255.0;', 'gl_FragData[0] = vec4(rf, gf, 0.0, 1.0); }']).result; - } - shaders.Vertex = VSSource; - shaders.Fragment = FSSource; - publicAPI.replaceShaderClip(shaders, ren, actor); - publicAPI.replaceShaderCoincidentOffset(shaders, ren, actor); - }; - publicAPI.replaceShaderClip = (shaders, ren, actor) => { - let VSSource = shaders.Vertex; - let FSSource = shaders.Fragment; - if (model.renderable.getNumberOfClippingPlanes()) { - let numClipPlanes = model.renderable.getNumberOfClippingPlanes(); - if (numClipPlanes > 6) { - macro.vtkErrorMacro('OpenGL has a limit of 6 clipping planes'); - numClipPlanes = 6; - } - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Clip::Dec', ['uniform int numClipPlanes;', 'uniform vec4 clipPlanes[6];', 'varying float clipDistancesVSOutput[6];']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Clip::Impl', ['for (int planeNum = 0; planeNum < 6; planeNum++)', ' {', ' if (planeNum >= numClipPlanes)', ' {', ' break;', ' }', ' clipDistancesVSOutput[planeNum] = dot(clipPlanes[planeNum], vertexMC);', ' }']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Clip::Dec', ['uniform int numClipPlanes;', 'varying float clipDistancesVSOutput[6];']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Clip::Impl', ['for (int planeNum = 0; planeNum < 6; planeNum++)', ' {', ' if (planeNum >= numClipPlanes)', ' {', ' break;', ' }', ' if (clipDistancesVSOutput[planeNum] < 0.0) discard;', ' }']).result; - } - shaders.Vertex = VSSource; - shaders.Fragment = FSSource; - }; - publicAPI.getShaderTemplate = (shaders, ren, actor) => { - shaders.Vertex = vtkPolyDataVS; - shaders.Fragment = vtkPolyDataFS; - shaders.Geometry = ''; - }; - publicAPI.setMapperShaderParameters = (cellBO, ren, actor) => { - const program = cellBO.getProgram(); - const cellArrayBufferObject = cellBO.getCABO(); - if (cellArrayBufferObject.getElementCount() && (model.VBOBuildTime.getMTime() > cellBO.getAttributeUpdateTime().getMTime() || cellBO.getShaderSourceTime().getMTime() > cellBO.getAttributeUpdateTime().getMTime())) { - if (program.isAttributeUsed('vertexMC')) { - if (!cellBO.getVAO().addAttributeArray(program, cellArrayBufferObject, 'vertexMC', cellArrayBufferObject.getVertexOffset(), cellArrayBufferObject.getStride(), model.context.FLOAT, 3, model.context.FALSE)) { - vtkErrorMacro('Error setting vertexMC in shader VAO.'); - } - } - // Custom data of the CABO (centerlinePosition, centerlineTopDirection, - // centerlineBotDirection, quadIndex and user defined custom data) - cellBO.getCABO().getCustomData().forEach(data => { - if (data && program.isAttributeUsed(data.name) && !cellBO.getVAO().addAttributeArray(program, cellArrayBufferObject, data.name, data.offset, cellArrayBufferObject.getStride(), model.context.FLOAT, data.components, model.context.FALSE)) { - vtkErrorMacro(`Error setting ${data.name} in shader VAO.`); - } - }); - cellBO.getAttributeUpdateTime().modified(); - } - const texUnit = model.volumeTexture.getTextureUnit(); - program.setUniformi('volumeTexture', texUnit); - program.setUniformf('width', model.renderable.getWidth()); - cellBO.getProgram().setUniform4fv('backgroundColor', model.renderable.getBackgroundColor()); - if (program.isUniformUsed('tangentDirection')) { - const tangentDirection = model.renderable.getTangentDirection(); - cellBO.getProgram().setUniform3fArray('tangentDirection', tangentDirection); - } - if (program.isUniformUsed('bitangentDirection')) { - const bitangentDirection = model.renderable.getBitangentDirection(); - cellBO.getProgram().setUniform3fArray('bitangentDirection', bitangentDirection); - } - if (program.isUniformUsed('centerlineOrientation')) { - const uniformOrientation = model.renderable.getUniformOrientation(); - cellBO.getProgram().setUniform4fv('centerlineOrientation', uniformOrientation); - } - if (program.isUniformUsed('globalCenterPoint')) { - const centerPoint = model.renderable.getCenterPoint(); - program.setUniform3fArray('globalCenterPoint', centerPoint); - } - // Projection uniforms - if (model.renderable.isProjectionEnabled()) { - const image = model.currentImageDataInput; - const spacing = image.getSpacing(); - const dimensions = image.getDimensions(); - const projectionSlabThickness = model.renderable.getProjectionSlabThickness(); - const projectionSlabNumberOfSamples = model.renderable.getProjectionSlabNumberOfSamples(); - const volumeSize = vec3.mul([], spacing, dimensions); - program.setUniform3fArray('volumeSizeMC', volumeSize); - program.setUniformi('projectionSlabNumberOfSamples', projectionSlabNumberOfSamples); - const constantOffset = -0.5 * projectionSlabThickness; - program.setUniformf('projectionConstantOffset', constantOffset); - const stepLength = projectionSlabThickness / (projectionSlabNumberOfSamples - 1); - program.setUniformf('projectionStepLength', stepLength); - } - - // Model coordinates to image space - // getWorldToIndex is badly named and is in fact modelToIndex - // MCIC -> Model coordinates to index coordinates - // MCTC -> Model coordinates to texture coordinates - const image = model.currentImageDataInput; - const MCICMatrix = image.getWorldToIndex(); - const ICTCMatrix = mat4.fromScaling(new Float32Array(16), vec3.inverse([], image.getDimensions())); - const MCTCMatrix = mat4.mul(ICTCMatrix, ICTCMatrix, MCICMatrix); - program.setUniformMatrix('MCTCMatrix', MCTCMatrix); - if (model.haveSeenDepthRequest) { - cellBO.getProgram().setUniformi('depthRequest', model.renderDepth ? 1 : 0); - } - if (model.renderable.getNumberOfClippingPlanes()) { - // add all the clipping planes - let numClipPlanes = model.renderable.getNumberOfClippingPlanes(); - if (numClipPlanes > 6) { - macro.vtkErrorMacro('OpenGL has a limit of 6 clipping planes'); - numClipPlanes = 6; - } - const shiftScaleEnabled = cellArrayBufferObject.getCoordShiftAndScaleEnabled(); - const inverseShiftScaleMatrix = shiftScaleEnabled ? cellArrayBufferObject.getInverseShiftAndScaleMatrix() : null; - const mat = inverseShiftScaleMatrix ? mat4.copy(model.imagematinv, actor.getMatrix()) : actor.getMatrix(); - if (inverseShiftScaleMatrix) { - mat4.transpose(mat, mat); - mat4.multiply(mat, mat, inverseShiftScaleMatrix); - mat4.transpose(mat, mat); - } - - // transform crop plane normal with transpose(inverse(worldToIndex)) - mat4.transpose(model.imagemat, model.currentImageDataInput.getIndexToWorld()); - mat4.multiply(model.imagematinv, mat, model.imagemat); - const planeEquations = []; - for (let i = 0; i < numClipPlanes; i++) { - const planeEquation = []; - model.renderable.getClippingPlaneInDataCoords(model.imagematinv, i, planeEquation); - for (let j = 0; j < 4; j++) { - planeEquations.push(planeEquation[j]); - } - } - program.setUniformi('numClipPlanes', numClipPlanes); - program.setUniform4fv('clipPlanes', planeEquations); - } - - // handle coincident - if (program.isUniformUsed('coffset')) { - const cp = publicAPI.getCoincidentParameters(ren, actor); - program.setUniformf('coffset', cp.offset); - // cfactor isn't always used when coffset is. - if (program.isUniformUsed('cfactor')) { - program.setUniformf('cfactor', cp.factor); - } - } - }; - publicAPI.setCameraShaderParameters = (cellBO, ren, actor) => { - const MCWCMatrix = model.openGLImageSlice.getKeyMatrices().mcwc; - const WCPCMatrix = model.openGLCamera.getKeyMatrices(ren).wcpc; - mat4.multiply(model.imagemat, WCPCMatrix, MCWCMatrix); - if (cellBO.getCABO().getCoordShiftAndScaleEnabled()) { - const inverseShiftScaleMat = cellBO.getCABO().getInverseShiftAndScaleMatrix(); - mat4.multiply(model.imagemat, model.imagemat, inverseShiftScaleMat); - } - cellBO.getProgram().setUniformMatrix('MCPCMatrix', model.imagemat); - }; - publicAPI.setPropertyShaderParameters = (cellBO, ren, actor) => { - const program = cellBO.getProgram(); - const ppty = actor.getProperty(); - const opacity = ppty.getOpacity(); - program.setUniformf('opacity', opacity); - - // Component mix - // Independent components: Mixed according to component weights - // Dependent components: Mixed using the following logic: - // - 2 comps => LA - // - 3 comps => RGB + opacity from pwf - // - 4 comps => RGBA - const numComp = model.volumeTexture.getComponents(); - const iComps = ppty.getIndependentComponents(); - if (iComps) { - for (let i = 0; i < numComp; ++i) { - program.setUniformf(`mix${i}`, ppty.getComponentWeight(i)); - } - } - - // Color opacity map - const volInfo = model.volumeTexture.getVolumeInfo(); - - // three levels of shift scale combined into one - // for performance in the fragment shader - for (let i = 0; i < numComp; i++) { - let cw = ppty.getColorWindow(); - let cl = ppty.getColorLevel(); - const target = iComps ? i : 0; - const cfun = ppty.getRGBTransferFunction(target); - if (cfun && ppty.getUseLookupTableScalarRange()) { - const cRange = cfun.getRange(); - cw = cRange[1] - cRange[0]; - cl = 0.5 * (cRange[1] + cRange[0]); - } - const scale = volInfo.scale[i] / cw; - const shift = (volInfo.offset[i] - cl) / cw + 0.5; - program.setUniformf(`cshift${i}`, shift); - program.setUniformf(`cscale${i}`, scale); - } - const texColorUnit = model.colorTexture.getTextureUnit(); // TODO - program.setUniformi('colorTexture1', texColorUnit); - - // pwf shift/scale - for (let i = 0; i < numComp; i++) { - let pwfScale = 1.0; - let pwfShift = 0.0; - const target = iComps ? i : 0; - const pwfun = ppty.getPiecewiseFunction(target); - if (pwfun) { - const pwfRange = pwfun.getRange(); - const length = pwfRange[1] - pwfRange[0]; - const mid = 0.5 * (pwfRange[0] + pwfRange[1]); - pwfScale = volInfo.scale[i] / length; - pwfShift = (volInfo.offset[i] - mid) / length + 0.5; - } - program.setUniformf(`pwfshift${i}`, pwfShift); - program.setUniformf(`pwfscale${i}`, pwfScale); - } - const texOpacityUnit = model.pwfTexture.getTextureUnit(); // TODO - program.setUniformi('pwfTexture1', texOpacityUnit); - }; - publicAPI.updateShaders = (cellBO, ren, actor) => { - // has something changed that would require us to recreate the shader? - if (publicAPI.getNeedToRebuildShaders(cellBO, ren, actor)) { - const shaders = { - Vertex: null, - Fragment: null, - Geometry: null - }; - publicAPI.buildShaders(shaders, ren, actor); - - // compile and bind the program if needed - const newShader = model._openGLRenderWindow.getShaderCache().readyShaderProgramArray(shaders.Vertex, shaders.Fragment, shaders.Geometry); - - // if the shader changed reinitialize the VAO - if (newShader !== cellBO.getProgram()) { - cellBO.setProgram(newShader); - // reset the VAO as the shader has changed - cellBO.getVAO().releaseGraphicsResources(); - } - cellBO.getShaderSourceTime().modified(); - } else { - model._openGLRenderWindow.getShaderCache().readyShaderProgram(cellBO.getProgram()); - } - cellBO.getVAO().bind(); - publicAPI.setMapperShaderParameters(cellBO, ren, actor); - publicAPI.setCameraShaderParameters(cellBO, ren, actor); - publicAPI.setPropertyShaderParameters(cellBO, ren, actor); - }; - publicAPI.delete = macro.chain(() => { - if (model._openGLRenderWindow) { - unregisterGraphicsResources(model._openGLRenderWindow); - } - }, publicAPI.delete); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - currentRenderPass: null, - volumeTexture: null, - colorTexture: null, - pwfTexture: null, - tris: null, - lastHaveSeenDepthRequest: false, - haveSeenDepthRequest: false, - lastTextureComponents: 0, - lastIndependentComponents: 0, - imagemat: null, - imagematinv: null - // _scalars: null, - // _colorTransferFunc: null, - // _pwFunc: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - vtkReplacementShaderMapper.implementReplaceShaderCoincidentOffset(publicAPI, model, initialValues); - - // Two inputs: one for the ImageData/Texture and one for the PolyData (centerline) - macro.algo(publicAPI, model, 2, 0); - model.tris = vtkHelper.newInstance(); - model.volumeTexture = null; - model.colorTexture = null; - model.pwfTexture = null; - model.imagemat = mat4.identity(new Float64Array(16)); - model.imagematinv = mat4.identity(new Float64Array(16)); - model.VBOBuildTime = {}; - macro.obj(model.VBOBuildTime, { - mtime: 0 - }); - - // Object methods - vtkOpenGLImageCPRMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkOpenGLImageCPRMapper'); -const STATIC = {}; - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend, - ...STATIC -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkImageCPRMapper', newInstance); - -export { STATIC, index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ImageMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ImageMapper.js deleted file mode 100644 index bb676c7a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ImageMapper.js +++ /dev/null @@ -1,1171 +0,0 @@ -import { mat4, mat3 } from 'gl-matrix'; -import Constants from '../Core/ImageMapper/Constants.js'; -import { n as newInstance$1, e as setGet, o as obj, r as vtkErrorMacro$1, h as chain, c as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import { VtkDataTypes } from '../../Common/Core/DataArray/Constants.js'; -import vtkHelper from './Helper.js'; -import vtkOpenGLTexture from './Texture.js'; -import vtkShaderProgram from './ShaderProgram.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { Representation } from '../Core/Property/Constants.js'; -import { Filter, Wrap } from './Texture/Constants.js'; -import { InterpolationType } from '../Core/ImageProperty/Constants.js'; -import { getTransferFunctionsHash } from './RenderWindow/resourceSharingHelper.js'; -import { v as vtkPolyDataVS } from './glsl/vtkPolyDataVS.glsl.js'; -import { v as vtkPolyDataFS } from './glsl/vtkPolyDataFS.glsl.js'; -import vtkReplacementShaderMapper from './ReplacementShaderMapper.js'; -import '../Core/Mapper/CoincidentTopologyHelper.js'; -import { registerOverride } from './ViewNodeFactory.js'; -import { Resolve } from '../Core/Mapper/Static.js'; - -const { - vtkErrorMacro -} = macro; -const { - SlicingMode -} = Constants; - -// ---------------------------------------------------------------------------- -// helper methods -// ---------------------------------------------------------------------------- - -function splitStringOnEnter(inputString) { - // Split the input string into an array of lines based on "Enter" (newline) characters - // Remove any leading or trailing whitespace from each line and filter out empty lines - const lines = inputString.split('\n'); - const trimmedLines = []; - for (let i = 0; i < lines.length; ++i) { - const trimmedLine = lines[i].trim(); - if (trimmedLine.length > 0) { - trimmedLines.push(trimmedLine); - } - } - return trimmedLines; -} - -// ---------------------------------------------------------------------------- -// vtkOpenGLImageMapper methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLImageMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLImageMapper'); - function unregisterGraphicsResources(renderWindow) { - // The openGLTexture is not shared - model.openGLTexture.releaseGraphicsResources(renderWindow); - // All these other resources are shared - [model._colorTransferFunc, model._pwFunc, model._labelOutlineThicknessArray, model._labelOutlineOpacity].forEach(coreObject => renderWindow.unregisterGraphicsResourceUser(coreObject, publicAPI)); - } - publicAPI.buildPass = prepass => { - if (prepass) { - model.currentRenderPass = null; - model.openGLImageSlice = publicAPI.getFirstAncestorOfType('vtkOpenGLImageSlice'); - model._openGLRenderer = publicAPI.getFirstAncestorOfType('vtkOpenGLRenderer'); - const oldOglRenderWindow = model._openGLRenderWindow; - model._openGLRenderWindow = model._openGLRenderer.getLastAncestorOfType('vtkOpenGLRenderWindow'); - if (oldOglRenderWindow && !oldOglRenderWindow.isDeleted() && oldOglRenderWindow !== model._openGLRenderWindow) { - // Unregister the mapper when the render window changes - unregisterGraphicsResources(oldOglRenderWindow); - } - model.context = model._openGLRenderWindow.getContext(); - model.tris.setOpenGLRenderWindow(model._openGLRenderWindow); - const ren = model._openGLRenderer.getRenderable(); - model.openGLCamera = model._openGLRenderer.getViewNodeFor(ren.getActiveCamera()); - // is slice set by the camera - if (model.renderable.isA('vtkImageMapper') && model.renderable.getSliceAtFocalPoint()) { - model.renderable.setSliceFromCamera(ren.getActiveCamera()); - } - } - }; - publicAPI.translucentPass = (prepass, renderPass) => { - if (prepass) { - model.currentRenderPass = renderPass; - publicAPI.render(); - } - }; - publicAPI.zBufferPass = prepass => { - if (prepass) { - model.haveSeenDepthRequest = true; - model.renderDepth = true; - publicAPI.render(); - model.renderDepth = false; - } - }; - publicAPI.opaqueZBufferPass = prepass => publicAPI.zBufferPass(prepass); - publicAPI.opaquePass = prepass => { - if (prepass) { - publicAPI.render(); - } - }; - publicAPI.getCoincidentParameters = (ren, actor) => { - if ( - // backwards compat with code that (errorneously) set this to boolean - // eslint-disable-next-line eqeqeq - model.renderable.getResolveCoincidentTopology() == Resolve.PolygonOffset) { - return model.renderable.getCoincidentTopologyPolygonOffsetParameters(); - } - return null; - }; - - // Renders myself - publicAPI.render = () => { - const actor = model.openGLImageSlice.getRenderable(); - const ren = model._openGLRenderer.getRenderable(); - publicAPI.renderPiece(ren, actor); - }; - publicAPI.getShaderTemplate = (shaders, ren, actor) => { - shaders.Vertex = vtkPolyDataVS; - shaders.Fragment = vtkPolyDataFS; - shaders.Geometry = ''; - }; - publicAPI.replaceShaderValues = (shaders, ren, actor) => { - let VSSource = shaders.Vertex; - let FSSource = shaders.Fragment; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Camera::Dec', ['uniform mat4 MCPCMatrix;']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::PositionVC::Impl', [' gl_Position = MCPCMatrix * vertexMC;']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::TCoord::Impl', 'tcoordVCVSOutput = tcoordMC;').result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::TCoord::Dec', 'attribute vec2 tcoordMC; varying vec2 tcoordVCVSOutput;').result; - const tNumComp = model.openGLTexture.getComponents(); - const iComps = actor.getProperty().getIndependentComponents(); - let tcoordDec = ['varying vec2 tcoordVCVSOutput;', - // color shift and scale - 'uniform float cshift0;', 'uniform float cscale0;', - // pwf shift and scale - 'uniform float pwfshift0;', 'uniform float pwfscale0;', 'uniform sampler2D texture1;', 'uniform sampler2D colorTexture1;', 'uniform sampler2D pwfTexture1;', 'uniform float opacity;']; - if (actor.getProperty().getUseLabelOutline()) { - tcoordDec = tcoordDec.concat([ - // outline thickness - 'uniform sampler2D labelOutlineTexture1;', - // outline opacity - 'uniform sampler2D labelOutlineOpacityTexture1;']); - } - if (iComps) { - for (let comp = 1; comp < tNumComp; comp++) { - tcoordDec = tcoordDec.concat([ - // color shift and scale - `uniform float cshift${comp};`, `uniform float cscale${comp};`, - // weighting shift and scale - `uniform float pwfshift${comp};`, `uniform float pwfscale${comp};`]); - } - // the heights defined below are the locations - // for the up to four components of the tfuns - // the tfuns have a height of 2XnumComps pixels so the - // values are computed to hit the middle of the two rows - // for that component - switch (tNumComp) { - case 1: - tcoordDec = tcoordDec.concat(['uniform float mix0;', '#define height0 0.5']); - break; - case 2: - tcoordDec = tcoordDec.concat(['uniform float mix0;', 'uniform float mix1;', '#define height0 0.25', '#define height1 0.75']); - break; - case 3: - tcoordDec = tcoordDec.concat(['uniform float mix0;', 'uniform float mix1;', 'uniform float mix2;', '#define height0 0.17', '#define height1 0.5', '#define height2 0.83']); - break; - case 4: - tcoordDec = tcoordDec.concat(['uniform float mix0;', 'uniform float mix1;', 'uniform float mix2;', 'uniform float mix3;', '#define height0 0.125', '#define height1 0.375', '#define height2 0.625', '#define height3 0.875']); - break; - default: - vtkErrorMacro('Unsupported number of independent coordinates.'); - } - } - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Dec', tcoordDec).result; - - // check for the outline thickness and opacity - const vtkImageLabelOutline = actor.getProperty().getUseLabelOutline(); - if (vtkImageLabelOutline === true) { - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::LabelOutline::Dec', ['uniform float vpWidth;', 'uniform float vpHeight;', 'uniform float vpOffsetX;', 'uniform float vpOffsetY;', 'uniform mat4 PCWCMatrix;', 'uniform mat4 vWCtoIDX;', 'uniform ivec3 imageDimensions;', 'uniform int sliceAxis;']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::ImageLabelOutlineOn', '#define vtkImageLabelOutlineOn').result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::LabelOutlineHelperFunction', ['#ifdef vtkImageLabelOutlineOn', 'vec3 fragCoordToIndexSpace(vec4 fragCoord) {', ' vec4 pcPos = vec4(', ' (fragCoord.x / vpWidth - vpOffsetX - 0.5) * 2.0,', ' (fragCoord.y / vpHeight - vpOffsetY - 0.5) * 2.0,', ' (fragCoord.z - 0.5) * 2.0,', ' 1.0);', '', ' vec4 worldCoord = PCWCMatrix * pcPos;', ' vec4 vertex = (worldCoord/worldCoord.w);', '', ' vec3 index = (vWCtoIDX * vertex).xyz;', '', ' // half voxel fix for labelmapOutline', ' return (index + vec3(0.5)) / vec3(imageDimensions);', '}', 'vec2 getSliceCoords(vec3 coord, int axis) {', ' if (axis == 0) return coord.yz;', ' if (axis == 1) return coord.xz;', ' if (axis == 2) return coord.xy;', '}', '#endif']).result; - } - if (iComps) { - const rgba = ['r', 'g', 'b', 'a']; - let tcoordImpl = ['vec4 tvalue = texture2D(texture1, tcoordVCVSOutput);']; - for (let comp = 0; comp < tNumComp; comp++) { - tcoordImpl = tcoordImpl.concat([`vec3 tcolor${comp} = mix${comp} * texture2D(colorTexture1, vec2(tvalue.${rgba[comp]} * cscale${comp} + cshift${comp}, height${comp})).rgb;`, `float compWeight${comp} = mix${comp} * texture2D(pwfTexture1, vec2(tvalue.${rgba[comp]} * pwfscale${comp} + pwfshift${comp}, height${comp})).r;`]); - } - switch (tNumComp) { - case 1: - tcoordImpl = tcoordImpl.concat(['gl_FragData[0] = vec4(tcolor0.rgb, opacity);']); - break; - case 2: - tcoordImpl = tcoordImpl.concat(['float weightSum = compWeight0 + compWeight1;', 'gl_FragData[0] = vec4(vec3((tcolor0.rgb * (compWeight0 / weightSum)) + (tcolor1.rgb * (compWeight1 / weightSum))), opacity);']); - break; - case 3: - tcoordImpl = tcoordImpl.concat(['float weightSum = compWeight0 + compWeight1 + compWeight2;', 'gl_FragData[0] = vec4(vec3((tcolor0.rgb * (compWeight0 / weightSum)) + (tcolor1.rgb * (compWeight1 / weightSum)) + (tcolor2.rgb * (compWeight2 / weightSum))), opacity);']); - break; - case 4: - tcoordImpl = tcoordImpl.concat(['float weightSum = compWeight0 + compWeight1 + compWeight2 + compWeight3;', 'gl_FragData[0] = vec4(vec3((tcolor0.rgb * (compWeight0 / weightSum)) + (tcolor1.rgb * (compWeight1 / weightSum)) + (tcolor2.rgb * (compWeight2 / weightSum)) + (tcolor3.rgb * (compWeight3 / weightSum))), opacity);']); - break; - default: - vtkErrorMacro('Unsupported number of independent coordinates.'); - } - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Impl', tcoordImpl).result; - } else { - // dependent components - switch (tNumComp) { - case 1: - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Impl', [...splitStringOnEnter(` - #ifdef vtkImageLabelOutlineOn - vec3 centerPosIS = fragCoordToIndexSpace(gl_FragCoord); - float centerValue = texture2D(texture1, getSliceCoords(centerPosIS, sliceAxis)).r; - bool pixelOnBorder = false; - vec3 tColor = texture2D(colorTexture1, vec2(centerValue * cscale0 + cshift0, 0.5)).rgb; - float scalarOpacity = texture2D(pwfTexture1, vec2(centerValue * pwfscale0 + pwfshift0, 0.5)).r; - float opacityToUse = scalarOpacity * opacity; - int segmentIndex = int(centerValue * 255.0); - float textureCoordinate = float(segmentIndex - 1) / 1024.0; - float textureValue = texture2D(labelOutlineTexture1, vec2(textureCoordinate, 0.5)).r; - float outlineOpacity = texture2D(labelOutlineOpacityTexture1, vec2(textureCoordinate, 0.5)).r; - int actualThickness = int(textureValue * 255.0); - - if (segmentIndex == 0){ - gl_FragData[0] = vec4(0.0, 0.0, 0.0, 0.0); - return; - } - - for (int i = -actualThickness; i <= actualThickness; i++) { - for (int j = -actualThickness; j <= actualThickness; j++) { - if (i == 0 || j == 0) { - continue; - } - vec4 neighborPixelCoord = vec4(gl_FragCoord.x + float(i), - gl_FragCoord.y + float(j), - gl_FragCoord.z, gl_FragCoord.w); - vec3 neighborPosIS = fragCoordToIndexSpace(neighborPixelCoord); - float value = texture2D(texture1, getSliceCoords(neighborPosIS, sliceAxis)).r; - if (value != centerValue) { - pixelOnBorder = true; - break; - } - } - if (pixelOnBorder == true) { - break; - } - } - if (pixelOnBorder == true) { - gl_FragData[0] = vec4(tColor, outlineOpacity); - } - else { - gl_FragData[0] = vec4(tColor, opacityToUse); - } - #else - float intensity = texture2D(texture1, tcoordVCVSOutput).r; - vec3 tcolor = texture2D(colorTexture1, vec2(intensity * cscale0 + cshift0, 0.5)).rgb; - float scalarOpacity = texture2D(pwfTexture1, vec2(intensity * pwfscale0 + pwfshift0, 0.5)).r; - gl_FragData[0] = vec4(tcolor, scalarOpacity * opacity); - #endif - `)]).result; - break; - case 2: - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Impl', ['vec4 tcolor = texture2D(texture1, tcoordVCVSOutput);', 'float intensity = tcolor.r*cscale0 + cshift0;', 'gl_FragData[0] = vec4(texture2D(colorTexture1, vec2(intensity, 0.5)).rgb, pwfscale0*tcolor.g + pwfshift0);']).result; - break; - case 3: - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Impl', ['vec4 tcolor = cscale0*texture2D(texture1, tcoordVCVSOutput.st) + cshift0;', 'gl_FragData[0] = vec4(texture2D(colorTexture1, vec2(tcolor.r,0.5)).r,', ' texture2D(colorTexture1, vec2(tcolor.g,0.5)).r,', ' texture2D(colorTexture1, vec2(tcolor.b,0.5)).r, opacity);']).result; - break; - default: - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Impl', ['vec4 tcolor = cscale0*texture2D(texture1, tcoordVCVSOutput.st) + cshift0;', 'gl_FragData[0] = vec4(texture2D(colorTexture1, vec2(tcolor.r,0.5)).r,', ' texture2D(colorTexture1, vec2(tcolor.g,0.5)).r,', ' texture2D(colorTexture1, vec2(tcolor.b,0.5)).r, tcolor.a);']).result; - } - } - if (model.haveSeenDepthRequest) { - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::ZBuffer::Dec', 'uniform int depthRequest;').result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::ZBuffer::Impl', ['if (depthRequest == 1) {', 'float iz = floor(gl_FragCoord.z*65535.0 + 0.1);', 'float rf = floor(iz/256.0)/255.0;', 'float gf = mod(iz,256.0)/255.0;', 'gl_FragData[0] = vec4(rf, gf, 0.0, 1.0); }']).result; - } - shaders.Vertex = VSSource; - shaders.Fragment = FSSource; - publicAPI.replaceShaderClip(shaders, ren, actor); - publicAPI.replaceShaderCoincidentOffset(shaders, ren, actor); - }; - publicAPI.replaceShaderClip = (shaders, ren, actor) => { - let VSSource = shaders.Vertex; - let FSSource = shaders.Fragment; - if (model.renderable.getNumberOfClippingPlanes()) { - let numClipPlanes = model.renderable.getNumberOfClippingPlanes(); - if (numClipPlanes > 6) { - vtkErrorMacro$1('OpenGL has a limit of 6 clipping planes'); - numClipPlanes = 6; - } - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Clip::Dec', ['uniform int numClipPlanes;', 'uniform vec4 clipPlanes[6];', 'varying float clipDistancesVSOutput[6];']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Clip::Impl', ['for (int planeNum = 0; planeNum < 6; planeNum++)', ' {', ' if (planeNum >= numClipPlanes)', ' {', ' break;', ' }', ' clipDistancesVSOutput[planeNum] = dot(clipPlanes[planeNum], vertexMC);', ' }']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Clip::Dec', ['uniform int numClipPlanes;', 'varying float clipDistancesVSOutput[6];']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Clip::Impl', ['for (int planeNum = 0; planeNum < 6; planeNum++)', ' {', ' if (planeNum >= numClipPlanes)', ' {', ' break;', ' }', ' if (clipDistancesVSOutput[planeNum] < 0.0) discard;', ' }']).result; - } - shaders.Vertex = VSSource; - shaders.Fragment = FSSource; - }; - publicAPI.getNeedToRebuildShaders = (cellBO, ren, actor) => { - // has something changed that would require us to recreate the shader? - // candidates are - // property modified (representation interpolation and lighting) - // input modified - // light complexity changed - // render pass shader replacement changed - - const tNumComp = model.openGLTexture.getComponents(); - const iComp = actor.getProperty().getIndependentComponents(); - - // has the render pass shader replacement changed? Two options - let needRebuild = false; - if (!model.currentRenderPass && model.lastRenderPassShaderReplacement || model.currentRenderPass && model.currentRenderPass.getShaderReplacement() !== model.lastRenderPassShaderReplacement) { - needRebuild = true; - } - if (needRebuild || model.lastHaveSeenDepthRequest !== model.haveSeenDepthRequest || cellBO.getProgram()?.getHandle() === 0 || cellBO.getShaderSourceTime().getMTime() < model.renderable.getMTime() || cellBO.getShaderSourceTime().getMTime() < model.currentInput.getMTime() || cellBO.getShaderSourceTime().getMTime() < actor.getProperty().getMTime() || model.lastTextureComponents !== tNumComp || model.lastIndependentComponents !== iComp) { - model.lastHaveSeenDepthRequest = model.haveSeenDepthRequest; - model.lastTextureComponents = tNumComp; - model.lastIndependentComponents = iComp; - return true; - } - return false; - }; - publicAPI.updateShaders = (cellBO, ren, actor) => { - model.lastBoundBO = cellBO; - - // has something changed that would require us to recreate the shader? - if (publicAPI.getNeedToRebuildShaders(cellBO, ren, actor)) { - const shaders = { - Vertex: null, - Fragment: null, - Geometry: null - }; - publicAPI.buildShaders(shaders, ren, actor); - - // compile and bind the program if needed - const newShader = model._openGLRenderWindow.getShaderCache().readyShaderProgramArray(shaders.Vertex, shaders.Fragment, shaders.Geometry); - - // if the shader changed reinitialize the VAO - if (newShader !== cellBO.getProgram()) { - cellBO.setProgram(newShader); - // reset the VAO as the shader has changed - cellBO.getVAO().releaseGraphicsResources(); - } - cellBO.getShaderSourceTime().modified(); - } else { - model._openGLRenderWindow.getShaderCache().readyShaderProgram(cellBO.getProgram()); - } - cellBO.getVAO().bind(); - publicAPI.setMapperShaderParameters(cellBO, ren, actor); - publicAPI.setCameraShaderParameters(cellBO, ren, actor); - publicAPI.setPropertyShaderParameters(cellBO, ren, actor); - }; - publicAPI.setMapperShaderParameters = (cellBO, ren, actor) => { - // Now to update the VAO too, if necessary. - - if (cellBO.getCABO().getElementCount() && (model.VBOBuildTime > cellBO.getAttributeUpdateTime().getMTime() || cellBO.getShaderSourceTime().getMTime() > cellBO.getAttributeUpdateTime().getMTime())) { - if (cellBO.getProgram().isAttributeUsed('vertexMC')) { - if (!cellBO.getVAO().addAttributeArray(cellBO.getProgram(), cellBO.getCABO(), 'vertexMC', cellBO.getCABO().getVertexOffset(), cellBO.getCABO().getStride(), model.context.FLOAT, 3, model.context.FALSE)) { - vtkErrorMacro('Error setting vertexMC in shader VAO.'); - } - } - if (cellBO.getProgram().isAttributeUsed('tcoordMC') && cellBO.getCABO().getTCoordOffset()) { - if (!cellBO.getVAO().addAttributeArray(cellBO.getProgram(), cellBO.getCABO(), 'tcoordMC', cellBO.getCABO().getTCoordOffset(), cellBO.getCABO().getStride(), model.context.FLOAT, cellBO.getCABO().getTCoordComponents(), model.context.FALSE)) { - vtkErrorMacro('Error setting tcoordMC in shader VAO.'); - } - } - cellBO.getAttributeUpdateTime().modified(); - } - const texUnit = model.openGLTexture.getTextureUnit(); - cellBO.getProgram().setUniformi('texture1', texUnit); - const numComp = model.openGLTexture.getComponents(); - const iComps = actor.getProperty().getIndependentComponents(); - if (iComps) { - for (let i = 0; i < numComp; i++) { - cellBO.getProgram().setUniformf(`mix${i}`, actor.getProperty().getComponentWeight(i)); - } - } - const oglShiftScale = model.openGLTexture.getShiftAndScale(); - - // three levels of shift scale combined into one - // for performance in the fragment shader - for (let i = 0; i < numComp; i++) { - let cw = actor.getProperty().getColorWindow(); - let cl = actor.getProperty().getColorLevel(); - const target = iComps ? i : 0; - const cfun = actor.getProperty().getRGBTransferFunction(target); - if (cfun && actor.getProperty().getUseLookupTableScalarRange()) { - const cRange = cfun.getRange(); - cw = cRange[1] - cRange[0]; - cl = 0.5 * (cRange[1] + cRange[0]); - } - const scale = oglShiftScale.scale / cw; - const shift = (oglShiftScale.shift - cl) / cw + 0.5; - cellBO.getProgram().setUniformf(`cshift${i}`, shift); - cellBO.getProgram().setUniformf(`cscale${i}`, scale); - } - - // pwf shift/scale - for (let i = 0; i < numComp; i++) { - let pwfScale = 1.0; - let pwfShift = 0.0; - const target = iComps ? i : 0; - const pwfun = actor.getProperty().getPiecewiseFunction(target); - if (pwfun) { - const pwfRange = pwfun.getRange(); - const length = pwfRange[1] - pwfRange[0]; - const mid = 0.5 * (pwfRange[0] + pwfRange[1]); - pwfScale = oglShiftScale.scale / length; - pwfShift = (oglShiftScale.shift - mid) / length + 0.5; - } - cellBO.getProgram().setUniformf(`pwfshift${i}`, pwfShift); - cellBO.getProgram().setUniformf(`pwfscale${i}`, pwfScale); - } - if (model.haveSeenDepthRequest) { - cellBO.getProgram().setUniformi('depthRequest', model.renderDepth ? 1 : 0); - } - - // handle coincident - if (cellBO.getProgram().isUniformUsed('coffset')) { - const cp = publicAPI.getCoincidentParameters(ren, actor); - cellBO.getProgram().setUniformf('coffset', cp.offset); - // cfactor isn't always used when coffset is. - if (cellBO.getProgram().isUniformUsed('cfactor')) { - cellBO.getProgram().setUniformf('cfactor', cp.factor); - } - } - const texColorUnit = model.colorTexture.getTextureUnit(); - cellBO.getProgram().setUniformi('colorTexture1', texColorUnit); - const texOpacityUnit = model.pwfTexture.getTextureUnit(); - cellBO.getProgram().setUniformi('pwfTexture1', texOpacityUnit); - if (actor.getProperty().getUseLabelOutline()) { - const outlineThicknessUnit = model.labelOutlineThicknessTexture.getTextureUnit(); - cellBO.getProgram().setUniformi('labelOutlineTexture1', outlineThicknessUnit); - const texOutlineOpacityUnit = model.labelOutlineOpacityTexture.getTextureUnit(); - cellBO.getProgram().setUniformi('labelOutlineOpacityTexture1', texOutlineOpacityUnit); - } - if (model.renderable.getNumberOfClippingPlanes()) { - // add all the clipping planes - let numClipPlanes = model.renderable.getNumberOfClippingPlanes(); - if (numClipPlanes > 6) { - vtkErrorMacro$1('OpenGL has a limit of 6 clipping planes'); - numClipPlanes = 6; - } - const shiftScaleEnabled = cellBO.getCABO().getCoordShiftAndScaleEnabled(); - const inverseShiftScaleMatrix = shiftScaleEnabled ? cellBO.getCABO().getInverseShiftAndScaleMatrix() : null; - const mat = inverseShiftScaleMatrix ? mat4.copy(model.imagematinv, actor.getMatrix()) : actor.getMatrix(); - if (inverseShiftScaleMatrix) { - mat4.transpose(mat, mat); - mat4.multiply(mat, mat, inverseShiftScaleMatrix); - mat4.transpose(mat, mat); - } - - // transform crop plane normal with transpose(inverse(worldToIndex)) - mat4.transpose(model.imagemat, model.currentInput.getIndexToWorld()); - mat4.multiply(model.imagematinv, mat, model.imagemat); - const planeEquations = []; - for (let i = 0; i < numClipPlanes; i++) { - const planeEquation = []; - model.renderable.getClippingPlaneInDataCoords(model.imagematinv, i, planeEquation); - for (let j = 0; j < 4; j++) { - planeEquations.push(planeEquation[j]); - } - } - cellBO.getProgram().setUniformi('numClipPlanes', numClipPlanes); - cellBO.getProgram().setUniform4fv('clipPlanes', planeEquations); - } - }; - publicAPI.setCameraShaderParameters = (cellBO, ren, actor) => { - const program = cellBO.getProgram(); - const actMats = model.openGLImageSlice.getKeyMatrices(); - const image = model.currentInput; - const i2wmat4 = image.getIndexToWorld(); - mat4.multiply(model.imagemat, actMats.mcwc, i2wmat4); - const keyMats = model.openGLCamera.getKeyMatrices(ren); - mat4.multiply(model.imagemat, keyMats.wcpc, model.imagemat); - if (cellBO.getCABO().getCoordShiftAndScaleEnabled()) { - const inverseShiftScaleMat = cellBO.getCABO().getInverseShiftAndScaleMatrix(); - mat4.multiply(model.imagemat, model.imagemat, inverseShiftScaleMat); - } - program.setUniformMatrix('MCPCMatrix', model.imagemat); - const vtkImageLabelOutline = actor.getProperty().getUseLabelOutline(); - if (vtkImageLabelOutline === true) { - const worldToIndex = image.getWorldToIndex(); - const imageDimensions = image.getDimensions(); - let sliceAxis = model.renderable.getClosestIJKAxis().ijkMode; - - // SlicingMode.NONE equates to SlicingMode.K - if (sliceAxis === SlicingMode.NONE) { - sliceAxis = SlicingMode.K; - } - program.setUniform3i('imageDimensions', imageDimensions[0], imageDimensions[1], imageDimensions[2]); - program.setUniformi('sliceAxis', sliceAxis); - program.setUniformMatrix('vWCtoIDX', worldToIndex); - const labelOutlineKeyMats = model.openGLCamera.getKeyMatrices(ren); - - // Get the projection coordinate to world coordinate transformation matrix. - mat4.invert(model.projectionToWorld, labelOutlineKeyMats.wcpc); - model.openGLCamera.getKeyMatrices(ren); - program.setUniformMatrix('PCWCMatrix', model.projectionToWorld); - const size = publicAPI.getRenderTargetSize(); - program.setUniformf('vpWidth', size[0]); - program.setUniformf('vpHeight', size[1]); - const offset = publicAPI.getRenderTargetOffset(); - program.setUniformf('vpOffsetX', offset[0] / size[0]); - program.setUniformf('vpOffsetY', offset[1] / size[1]); - } - }; - publicAPI.setPropertyShaderParameters = (cellBO, ren, actor) => { - const program = cellBO.getProgram(); - const ppty = actor.getProperty(); - const opacity = ppty.getOpacity(); - program.setUniformf('opacity', opacity); - }; - publicAPI.renderPieceStart = (ren, actor) => { - // make sure the BOs are up to date - publicAPI.updateBufferObjects(ren, actor); - - // Bind the OpenGL, this is shared between the different primitive/cell types. - model.lastBoundBO = null; - }; - publicAPI.renderPieceDraw = (ren, actor) => { - const gl = model.context; - - // activate the texture - model.openGLTexture.activate(); - model.colorTexture.activate(); - if (actor.getProperty().getUseLabelOutline()) { - model.labelOutlineThicknessTexture.activate(); - model.labelOutlineOpacityTexture.activate(); - } - model.pwfTexture.activate(); - - // draw polygons - if (model.tris.getCABO().getElementCount()) { - // First we do the triangles, update the shader, set uniforms, etc. - publicAPI.updateShaders(model.tris, ren, actor); - gl.drawArrays(gl.TRIANGLES, 0, model.tris.getCABO().getElementCount()); - model.tris.getVAO().release(); - } - model.openGLTexture.deactivate(); - model.colorTexture.deactivate(); - if (actor.getProperty().getUseLabelOutline()) { - model.labelOutlineThicknessTexture.deactivate(); - model.labelOutlineOpacityTexture.deactivate(); - } - model.pwfTexture.deactivate(); - }; - publicAPI.renderPieceFinish = (ren, actor) => {}; - publicAPI.renderPiece = (ren, actor) => { - // Make sure that we have been properly initialized. - // if (ren.getRenderWindow().checkAbortStatus()) { - // return; - // } - - publicAPI.invokeEvent({ - type: 'StartEvent' - }); - model.renderable.update(); - model.currentInput = model.renderable.getCurrentImage(); - publicAPI.invokeEvent({ - type: 'EndEvent' - }); - if (!model.currentInput) { - vtkErrorMacro('No input!'); - return; - } - publicAPI.renderPieceStart(ren, actor); - publicAPI.renderPieceDraw(ren, actor); - publicAPI.renderPieceFinish(ren, actor); - }; - publicAPI.updateBufferObjects = (ren, actor) => { - // Rebuild buffers if needed - if (publicAPI.getNeedToRebuildBufferObjects(ren, actor)) { - publicAPI.buildBufferObjects(ren, actor); - } - }; - publicAPI.getNeedToRebuildBufferObjects = (ren, actor) => model.VBOBuildTime.getMTime() < publicAPI.getMTime() || model.VBOBuildTime.getMTime() < actor.getMTime() || model.VBOBuildTime.getMTime() < model.renderable.getMTime() || model.VBOBuildTime.getMTime() < actor.getProperty().getMTime() || model.VBOBuildTime.getMTime() < model.currentInput.getMTime() || !model.openGLTexture?.getHandle() || !model.colorTexture?.getHandle() || actor.getProperty().getUseLabelOutline() && (!model.labelOutlineThicknessTexture?.getHandle() || !model.labelOutlineOpacityTexture?.getHandle()) || !model.pwfTexture?.getHandle(); - publicAPI.buildBufferObjects = (ren, actor) => { - const image = model.currentInput; - if (!image) { - return; - } - const imgScalars = image.getPointData() && image.getPointData().getScalars(); - if (!imgScalars) { - return; - } - const dataType = imgScalars.getDataType(); - const numComp = imgScalars.getNumberOfComponents(); - const actorProperty = actor.getProperty(); - const iType = actorProperty.getInterpolationType(); - const iComps = actorProperty.getIndependentComponents(); - const numIComps = iComps ? numComp : 1; - const textureHeight = iComps ? 2 * numIComps : 1; - const colorTransferFunctions = []; - for (let component = 0; component < numIComps; ++component) { - colorTransferFunctions.push(actorProperty.getRGBTransferFunction(component)); - } - const cfunToString = getTransferFunctionsHash(colorTransferFunctions, iComps, numIComps); - const firstColorTransferFunc = actorProperty.getRGBTransferFunction(); - const cTex = model._openGLRenderWindow.getGraphicsResourceForObject(firstColorTransferFunc); - const reBuildC = !cTex?.oglObject?.getHandle() || cTex?.hash !== cfunToString; - if (reBuildC) { - model.colorTexture = vtkOpenGLTexture.newInstance({ - resizable: true - }); - model.colorTexture.setOpenGLRenderWindow(model._openGLRenderWindow); - let cWidth = model.renderable.getColorTextureWidth(); - if (cWidth <= 0) { - cWidth = model.context.getParameter(model.context.MAX_TEXTURE_SIZE); - } - const cSize = cWidth * textureHeight * 3; - const cTable = new Uint8ClampedArray(cSize); - // set interpolation on the texture based on property setting - if (iType === InterpolationType.NEAREST) { - model.colorTexture.setMinificationFilter(Filter.NEAREST); - model.colorTexture.setMagnificationFilter(Filter.NEAREST); - } else { - model.colorTexture.setMinificationFilter(Filter.LINEAR); - model.colorTexture.setMagnificationFilter(Filter.LINEAR); - } - if (firstColorTransferFunc) { - const tmpTable = new Float32Array(cWidth * 3); - for (let c = 0; c < numIComps; c++) { - const cfun = actorProperty.getRGBTransferFunction(c); - const cRange = cfun.getRange(); - cfun.getTable(cRange[0], cRange[1], cWidth, tmpTable, 1); - if (iComps) { - for (let i = 0; i < cWidth * 3; i++) { - cTable[c * cWidth * 6 + i] = 255.0 * tmpTable[i]; - cTable[c * cWidth * 6 + i + cWidth * 3] = 255.0 * tmpTable[i]; - } - } else { - for (let i = 0; i < cWidth * 3; i++) { - cTable[c * cWidth * 6 + i] = 255.0 * tmpTable[i]; - } - } - } - model.colorTexture.resetFormatAndType(); - model.colorTexture.create2DFromRaw({ - width: cWidth, - height: textureHeight, - numComps: 3, - dataType: VtkDataTypes.UNSIGNED_CHAR, - data: cTable - }); - } else { - for (let i = 0; i < cWidth * 3; ++i) { - cTable[i] = 255.0 * i / ((cWidth - 1) * 3); - cTable[i + 1] = 255.0 * i / ((cWidth - 1) * 3); - cTable[i + 2] = 255.0 * i / ((cWidth - 1) * 3); - } - model.colorTexture.create2DFromRaw({ - width: cWidth, - height: 1, - numComps: 3, - dataType: VtkDataTypes.UNSIGNED_CHAR, - data: cTable - }); - } - if (firstColorTransferFunc) { - model._openGLRenderWindow.setGraphicsResourceForObject(firstColorTransferFunc, model.colorTexture, cfunToString); - if (firstColorTransferFunc !== model._colorTransferFunc) { - model._openGLRenderWindow.registerGraphicsResourceUser(firstColorTransferFunc, publicAPI); - model._openGLRenderWindow.unregisterGraphicsResourceUser(model._colorTransferFunc, publicAPI); - } - model._colorTransferFunc = firstColorTransferFunc; - } - } else { - model.colorTexture = cTex.oglObject; - } - - // Build piecewise function buffer. This buffer is used either - // for component weighting or opacity, depending on whether we're - // rendering components independently or not. - const opacityFunctions = []; - for (let component = 0; component < numIComps; ++component) { - opacityFunctions.push(actorProperty.getPiecewiseFunction(component)); - } - const pwfunToString = getTransferFunctionsHash(opacityFunctions, iComps, numIComps); - const firstPwFunc = actorProperty.getPiecewiseFunction(); - const pwfTex = model._openGLRenderWindow.getGraphicsResourceForObject(firstPwFunc); - // rebuild opacity tfun? - const reBuildPwf = !pwfTex?.oglObject?.getHandle() || pwfTex?.hash !== pwfunToString; - if (reBuildPwf) { - let pwfWidth = model.renderable.getOpacityTextureWidth(); - if (pwfWidth <= 0) { - pwfWidth = model.context.getParameter(model.context.MAX_TEXTURE_SIZE); - } - const pwfSize = pwfWidth * textureHeight; - const pwfTable = new Uint8ClampedArray(pwfSize); - model.pwfTexture = vtkOpenGLTexture.newInstance({ - resizable: true - }); - model.pwfTexture.setOpenGLRenderWindow(model._openGLRenderWindow); - // set interpolation on the texture based on property setting - if (iType === InterpolationType.NEAREST) { - model.pwfTexture.setMinificationFilter(Filter.NEAREST); - model.pwfTexture.setMagnificationFilter(Filter.NEAREST); - } else { - model.pwfTexture.setMinificationFilter(Filter.LINEAR); - model.pwfTexture.setMagnificationFilter(Filter.LINEAR); - } - if (firstPwFunc) { - const pwfFloatTable = new Float32Array(pwfSize); - const tmpTable = new Float32Array(pwfWidth); - for (let c = 0; c < numIComps; ++c) { - const pwfun = actorProperty.getPiecewiseFunction(c); - if (pwfun === null) { - // Piecewise constant max if no function supplied for this component - pwfFloatTable.fill(1.0); - } else { - const pwfRange = pwfun.getRange(); - pwfun.getTable(pwfRange[0], pwfRange[1], pwfWidth, tmpTable, 1); - // adjust for sample distance etc - if (iComps) { - for (let i = 0; i < pwfWidth; i++) { - pwfFloatTable[c * pwfWidth * 2 + i] = tmpTable[i]; - pwfFloatTable[c * pwfWidth * 2 + i + pwfWidth] = tmpTable[i]; - } - } else { - for (let i = 0; i < pwfWidth; i++) { - pwfFloatTable[c * pwfWidth * 2 + i] = tmpTable[i]; - } - } - } - } - model.pwfTexture.resetFormatAndType(); - model.pwfTexture.create2DFromRaw({ - width: pwfWidth, - height: textureHeight, - numComps: 1, - dataType: VtkDataTypes.FLOAT, - data: pwfFloatTable - }); - } else { - // default is opaque - pwfTable.fill(255.0); - model.pwfTexture.create2DFromRaw({ - width: pwfWidth, - height: 1, - numComps: 1, - dataType: VtkDataTypes.UNSIGNED_CHAR, - data: pwfTable - }); - } - if (firstPwFunc) { - model._openGLRenderWindow.setGraphicsResourceForObject(firstPwFunc, model.pwfTexture, pwfunToString); - if (firstPwFunc !== model._pwFunc) { - model._openGLRenderWindow.registerGraphicsResourceUser(firstPwFunc, publicAPI); - model._openGLRenderWindow.unregisterGraphicsResourceUser(model._pwFunc, publicAPI); - } - model._pwFunc = firstPwFunc; - } - } else { - model.pwfTexture = pwfTex.oglObject; - } - if (actor.getProperty().getUseLabelOutline()) { - // Build outline thickness + opacity buffers - publicAPI.updatelabelOutlineThicknessTexture(actor); - publicAPI.updateLabelOutlineOpacityTexture(actor); - } - - // Find what IJK axis and what direction to slice along - const { - ijkMode - } = model.renderable.getClosestIJKAxis(); - - // Find the IJK slice - let slice = model.renderable.getSlice(); - if (ijkMode !== model.renderable.getSlicingMode()) { - // If not IJK slicing, get the IJK slice from the XYZ position/slice - slice = model.renderable.getSliceAtPosition(slice); - } - - // Use sub-Slice number/offset if mapper being used is vtkImageArrayMapper, - // since this mapper uses a collection of vtkImageData (and not just a single vtkImageData). - const nSlice = model.renderable.isA('vtkImageArrayMapper') ? model.renderable.getSubSlice() // get subSlice of the current (possibly multi-frame) image - : Math.round(slice); - - // Find sliceOffset - const ext = image.getExtent(); - let sliceOffset; - if (ijkMode === SlicingMode.I) { - sliceOffset = nSlice - ext[0]; - } - if (ijkMode === SlicingMode.J) { - sliceOffset = nSlice - ext[2]; - } - if (ijkMode === SlicingMode.K || ijkMode === SlicingMode.NONE) { - sliceOffset = nSlice - ext[4]; - } - - // rebuild the VBO if the data has changed - const toString = `${slice}A${image.getMTime()}A${imgScalars.getMTime()}B${publicAPI.getMTime()}C${model.renderable.getSlicingMode()}D${actor.getProperty().getInterpolationType()}`; - if (model.VBOBuildString !== toString) { - // Build the VBOs - const dims = image.getDimensions(); - if (!model.openGLTexture) { - model.openGLTexture = vtkOpenGLTexture.newInstance({ - resizable: true - }); - } - model.openGLTexture.setOpenGLRenderWindow(model._openGLRenderWindow); - // Use norm16 for scalar texture if the extension is available - model.openGLTexture.setOglNorm16Ext(model.context.getExtension('EXT_texture_norm16')); - if (iType === InterpolationType.NEAREST) { - if (new Set([1, 3, 4]).has(numComp) && dataType === VtkDataTypes.UNSIGNED_CHAR && !iComps) { - model.openGLTexture.setGenerateMipmap(true); - model.openGLTexture.setMinificationFilter(Filter.NEAREST); - } else { - model.openGLTexture.setMinificationFilter(Filter.NEAREST); - } - model.openGLTexture.setMagnificationFilter(Filter.NEAREST); - } else { - if (numComp === 4 && dataType === VtkDataTypes.UNSIGNED_CHAR && !iComps) { - model.openGLTexture.setGenerateMipmap(true); - model.openGLTexture.setMinificationFilter(Filter.LINEAR_MIPMAP_LINEAR); - } else { - model.openGLTexture.setMinificationFilter(Filter.LINEAR); - } - model.openGLTexture.setMagnificationFilter(Filter.LINEAR); - } - model.openGLTexture.setWrapS(Wrap.CLAMP_TO_EDGE); - model.openGLTexture.setWrapT(Wrap.CLAMP_TO_EDGE); - const sliceSize = dims[0] * dims[1] * numComp; - const ptsArray = new Float32Array(12); - const tcoordArray = new Float32Array(8); - for (let i = 0; i < 4; i++) { - tcoordArray[i * 2] = i % 2 ? 1.0 : 0.0; - tcoordArray[i * 2 + 1] = i > 1 ? 1.0 : 0.0; - } - - // Determine depth position of the slicing plane in the scene. - // Slicing modes X, Y, and Z use a continuous axis position, whereas - // slicing modes I, J, and K should use discrete positions. - const sliceDepth = [SlicingMode.X, SlicingMode.Y, SlicingMode.Z].includes(model.renderable.getSlicingMode()) ? slice : nSlice; - const spatialExt = image.getSpatialExtent(); - const basicScalars = imgScalars.getData(); - let scalars = null; - // Get right scalars according to slicing mode - if (ijkMode === SlicingMode.I) { - scalars = new basicScalars.constructor(dims[2] * dims[1] * numComp); - let id = 0; - for (let k = 0; k < dims[2]; k++) { - for (let j = 0; j < dims[1]; j++) { - let bsIdx = (sliceOffset + j * dims[0] + k * dims[0] * dims[1]) * numComp; - id = (k * dims[1] + j) * numComp; - const end = bsIdx + numComp; - while (bsIdx < end) { - scalars[id++] = basicScalars[bsIdx++]; - } - } - } - dims[0] = dims[1]; - dims[1] = dims[2]; - ptsArray[0] = sliceDepth; - ptsArray[1] = spatialExt[2]; - ptsArray[2] = spatialExt[4]; - ptsArray[3] = sliceDepth; - ptsArray[4] = spatialExt[3]; - ptsArray[5] = spatialExt[4]; - ptsArray[6] = sliceDepth; - ptsArray[7] = spatialExt[2]; - ptsArray[8] = spatialExt[5]; - ptsArray[9] = sliceDepth; - ptsArray[10] = spatialExt[3]; - ptsArray[11] = spatialExt[5]; - } else if (ijkMode === SlicingMode.J) { - scalars = new basicScalars.constructor(dims[2] * dims[0] * numComp); - let id = 0; - for (let k = 0; k < dims[2]; k++) { - for (let i = 0; i < dims[0]; i++) { - let bsIdx = (i + sliceOffset * dims[0] + k * dims[0] * dims[1]) * numComp; - id = (k * dims[0] + i) * numComp; - const end = bsIdx + numComp; - while (bsIdx < end) { - scalars[id++] = basicScalars[bsIdx++]; - } - } - } - dims[1] = dims[2]; - ptsArray[0] = spatialExt[0]; - ptsArray[1] = sliceDepth; - ptsArray[2] = spatialExt[4]; - ptsArray[3] = spatialExt[1]; - ptsArray[4] = sliceDepth; - ptsArray[5] = spatialExt[4]; - ptsArray[6] = spatialExt[0]; - ptsArray[7] = sliceDepth; - ptsArray[8] = spatialExt[5]; - ptsArray[9] = spatialExt[1]; - ptsArray[10] = sliceDepth; - ptsArray[11] = spatialExt[5]; - } else if (ijkMode === SlicingMode.K || ijkMode === SlicingMode.NONE) { - scalars = basicScalars.subarray(sliceOffset * sliceSize, (sliceOffset + 1) * sliceSize); - ptsArray[0] = spatialExt[0]; - ptsArray[1] = spatialExt[2]; - ptsArray[2] = sliceDepth; - ptsArray[3] = spatialExt[1]; - ptsArray[4] = spatialExt[2]; - ptsArray[5] = sliceDepth; - ptsArray[6] = spatialExt[0]; - ptsArray[7] = spatialExt[3]; - ptsArray[8] = sliceDepth; - ptsArray[9] = spatialExt[1]; - ptsArray[10] = spatialExt[3]; - ptsArray[11] = sliceDepth; - } else { - vtkErrorMacro('Reformat slicing not yet supported.'); - } - - /** - * - * Fetch the ranges of the source volume, `imgScalars`, and use them when - * creating the texture. Whilst the pre-calculated ranges may not be - * strictly correct for the slice, it is guaranteed to be within the - * source volume's range. - * - * There is a significant performance improvement by pre-setting the range - * of the scalars array particularly when scrolling through the source - * volume as there is no need to calculate the range of the slice scalar. - * - * @type{ import("../../../interfaces").vtkRange[] } - */ - const ranges = imgScalars.getRanges(); - - // Don't share this resource as `scalars` is created in this function - // so it is impossible to share - model.openGLTexture.resetFormatAndType(); - model.openGLTexture.create2DFilterableFromRaw({ - width: dims[0], - height: dims[1], - numComps: numComp, - dataType: imgScalars.getDataType(), - data: scalars, - preferSizeOverAccuracy: !!model.renderable.getPreferSizeOverAccuracy?.(), - ranges - }); - model.openGLTexture.activate(); - model.openGLTexture.sendParameters(); - model.openGLTexture.deactivate(); - const points = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: ptsArray - }); - points.setName('points'); - const tcoords = vtkDataArray.newInstance({ - numberOfComponents: 2, - values: tcoordArray - }); - tcoords.setName('tcoords'); - const cellArray = new Uint16Array(8); - cellArray[0] = 3; - cellArray[1] = 0; - cellArray[2] = 1; - cellArray[3] = 3; - cellArray[4] = 3; - cellArray[5] = 0; - cellArray[6] = 3; - cellArray[7] = 2; - const cells = vtkDataArray.newInstance({ - numberOfComponents: 1, - values: cellArray - }); - model.tris.getCABO().createVBO(cells, 'polys', Representation.SURFACE, { - points, - tcoords, - cellOffset: 0 - }); - model.VBOBuildTime.modified(); - model.VBOBuildString = toString; - } - }; - publicAPI.updateLabelOutlineOpacityTexture = image => { - let labelOutlineOpacity = image.getProperty().getLabelOutlineOpacity(); - - // when the labelOutlineOpacity is a number, we use _cachedLabelOutlineOpacityObj - // as a stable object reference for `[labelOutlineOpacity]`. - if (typeof labelOutlineOpacity === 'number') { - if (model._cachedLabelOutlineOpacityObj?.[0] === labelOutlineOpacity) { - labelOutlineOpacity = model._cachedLabelOutlineOpacityObj; - } else { - labelOutlineOpacity = [labelOutlineOpacity]; - } - model._cachedLabelOutlineOpacityObj = labelOutlineOpacity; - } - const lTex = model._openGLRenderWindow.getGraphicsResourceForObject(labelOutlineOpacity); - const toString = `${labelOutlineOpacity.join('-')}`; - const reBuildL = !lTex?.oglObject?.getHandle() || lTex?.hash !== toString; - if (reBuildL) { - let lWidth = model.renderable.getLabelOutlineTextureWidth(); - if (lWidth <= 0) { - lWidth = model.context.getParameter(model.context.MAX_TEXTURE_SIZE); - } - const lHeight = 1; - const lSize = lWidth * lHeight; - const lTable = new Float32Array(lSize); - for (let i = 0; i < lWidth; ++i) { - // Retrieve the opacity value for the current segment index. - // If the value is undefined, use the first element's value as a default, otherwise use the value (even if 0) - lTable[i] = labelOutlineOpacity[i] ?? labelOutlineOpacity[0]; - } - model.labelOutlineOpacityTexture = vtkOpenGLTexture.newInstance({ - resizable: false - }); - model.labelOutlineOpacityTexture.setOpenGLRenderWindow(model._openGLRenderWindow); - model.labelOutlineOpacityTexture.resetFormatAndType(); - model.labelOutlineOpacityTexture.setMinificationFilter(Filter.NEAREST); - model.labelOutlineOpacityTexture.setMagnificationFilter(Filter.NEAREST); - - // Create a 2D texture (acting as 1D) from the raw data - model.labelOutlineOpacityTexture.create2DFromRaw({ - width: lWidth, - height: lHeight, - numComps: 1, - dataType: VtkDataTypes.FLOAT, - data: lTable - }); - if (labelOutlineOpacity) { - model._openGLRenderWindow.setGraphicsResourceForObject(labelOutlineOpacity, model.labelOutlineOpacityTexture, toString); - if (labelOutlineOpacity !== model._labelOutlineOpacity) { - model._openGLRenderWindow.registerGraphicsResourceUser(labelOutlineOpacity, publicAPI); - model._openGLRenderWindow.unregisterGraphicsResourceUser(model._labelOutlineOpacity, publicAPI); - } - model._labelOutlineOpacity = labelOutlineOpacity; - } - } else { - model.labelOutlineOpacityTexture = lTex.oglObject; - } - }; - publicAPI.updatelabelOutlineThicknessTexture = image => { - const labelOutlineThicknessArray = image.getProperty().getLabelOutlineThicknessByReference(); - const lTex = model._openGLRenderWindow.getGraphicsResourceForObject(labelOutlineThicknessArray); - - // compute the join of the labelOutlineThicknessArray so that - // we can use it to decide whether to rebuild the labelOutlineThicknessTexture - // or not - const toString = `${labelOutlineThicknessArray.join('-')}`; - const reBuildL = !lTex?.oglObject?.getHandle() || lTex?.hash !== toString; - if (reBuildL) { - let lWidth = model.renderable.getLabelOutlineTextureWidth(); - if (lWidth <= 0) { - lWidth = model.context.getParameter(model.context.MAX_TEXTURE_SIZE); - } - const lHeight = 1; - const lSize = lWidth * lHeight; - const lTable = new Uint8Array(lSize); - - // Assuming labelOutlineThicknessArray contains the thickness for each segment - for (let i = 0; i < lWidth; ++i) { - // Retrieve the thickness value for the current segment index. - // If the value is undefined, use the first element's value as a default, otherwise use the value (even if 0) - const thickness = typeof labelOutlineThicknessArray[i] !== 'undefined' ? labelOutlineThicknessArray[i] : labelOutlineThicknessArray[0]; - lTable[i] = thickness; - } - model.labelOutlineThicknessTexture = vtkOpenGLTexture.newInstance({ - resizable: false - }); - model.labelOutlineThicknessTexture.setOpenGLRenderWindow(model._openGLRenderWindow); - model.labelOutlineThicknessTexture.resetFormatAndType(); - model.labelOutlineThicknessTexture.setMinificationFilter(Filter.NEAREST); - model.labelOutlineThicknessTexture.setMagnificationFilter(Filter.NEAREST); - - // Create a 2D texture (acting as 1D) from the raw data - model.labelOutlineThicknessTexture.create2DFromRaw({ - width: lWidth, - height: lHeight, - numComps: 1, - dataType: VtkDataTypes.UNSIGNED_CHAR, - data: lTable - }); - if (labelOutlineThicknessArray) { - model._openGLRenderWindow.setGraphicsResourceForObject(labelOutlineThicknessArray, model.labelOutlineThicknessTexture, toString); - if (labelOutlineThicknessArray !== model._labelOutlineThicknessArray) { - model._openGLRenderWindow.registerGraphicsResourceUser(labelOutlineThicknessArray, publicAPI); - model._openGLRenderWindow.unregisterGraphicsResourceUser(model._labelOutlineThicknessArray, publicAPI); - } - model._labelOutlineThicknessArray = labelOutlineThicknessArray; - } - } else { - model.labelOutlineThicknessTexture = lTex.oglObject; - } - }; - publicAPI.getRenderTargetSize = () => { - if (model._useSmallViewport) { - return [model._smallViewportWidth, model._smallViewportHeight]; - } - const { - usize, - vsize - } = model._openGLRenderer.getTiledSizeAndOrigin(); - return [usize, vsize]; - }; - publicAPI.getRenderTargetOffset = () => { - const { - lowerLeftU, - lowerLeftV - } = model._openGLRenderer.getTiledSizeAndOrigin(); - return [lowerLeftU, lowerLeftV]; - }; - publicAPI.delete = chain(() => { - if (model._openGLRenderWindow) { - unregisterGraphicsResources(model._openGLRenderWindow); - } - }, publicAPI.delete); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - VBOBuildTime: 0, - VBOBuildString: null, - openGLTexture: null, - tris: null, - imagemat: null, - imagematinv: null, - colorTexture: null, - pwfTexture: null, - labelOutlineThicknessTexture: null, - labelOutlineOpacityTexture: null, - lastHaveSeenDepthRequest: false, - haveSeenDepthRequest: false, - lastTextureComponents: 0 - // _scalars: null, - // _colorTransferFunc: null, - // _pwFunc: null, - // _labelOutlineThicknessArray: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - vtkReplacementShaderMapper.implementReplaceShaderCoincidentOffset(publicAPI, model, initialValues); - vtkReplacementShaderMapper.implementBuildShadersWithReplacements(publicAPI, model, initialValues); - model.tris = vtkHelper.newInstance(); - model.imagemat = mat4.identity(new Float64Array(16)); - model.imagematinv = mat4.identity(new Float64Array(16)); - model.projectionToWorld = mat4.identity(new Float64Array(16)); - model.idxToView = mat4.identity(new Float64Array(16)); - model.idxNormalMatrix = mat3.identity(new Float64Array(9)); - model.modelToView = mat4.identity(new Float64Array(16)); - model.projectionToView = mat4.identity(new Float64Array(16)); - - // Build VTK API - setGet(publicAPI, model, []); - model.VBOBuildTime = {}; - obj(model.VBOBuildTime); - - // Object methods - vtkOpenGLImageMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkOpenGLImageMapper'); - -// ---------------------------------------------------------------------------- - -var vtkImageMapper = { - newInstance, - extend -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkAbstractImageMapper', newInstance); - -export { vtkImageMapper as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ImageResliceMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ImageResliceMapper.js deleted file mode 100644 index efc8b218..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ImageResliceMapper.js +++ /dev/null @@ -1,1085 +0,0 @@ -import { n as newInstance$1, o as obj, g as get, h as chain, c as macro } from '../../macros2.js'; -import { mat4, mat3, vec3 } from 'gl-matrix'; -import vtkClosedPolyLineToSurfaceFilter from '../../Filters/General/ClosedPolyLineToSurfaceFilter.js'; -import vtkCutter from '../../Filters/Core/Cutter.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkHelper from './Helper.js'; -import vtkImageDataOutlineFilter from '../../Filters/General/ImageDataOutlineFilter.js'; -import { b as vtkMath } from '../../Common/Core/Math/index.js'; -import vtkOpenGLTexture from './Texture.js'; -import vtkPlane from '../../Common/DataModel/Plane.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkReplacementShaderMapper from './ReplacementShaderMapper.js'; -import vtkShaderProgram from './ShaderProgram.js'; -import vtkTransform from '../../Common/Transform/Transform.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { getImageDataHash, getTransferFunctionsHash } from './RenderWindow/resourceSharingHelper.js'; -import { v as vtkImageResliceMapperVS } from './glsl/vtkImageResliceMapperVS.glsl.js'; -import { v as vtkImageResliceMapperFS } from './glsl/vtkImageResliceMapperFS.glsl.js'; -import { Filter } from './Texture/Constants.js'; -import { InterpolationType } from '../Core/ImageProperty/Constants.js'; -import { Representation } from '../Core/Property/Constants.js'; -import { VtkDataTypes } from '../../Common/Core/DataArray/Constants.js'; -import { registerOverride } from './ViewNodeFactory.js'; -import '../Core/Mapper/CoincidentTopologyHelper.js'; -import { Resolve } from '../Core/Mapper/Static.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// helper methods -// ---------------------------------------------------------------------------- - -function safeMatrixMultiply(matrixArray, matrixType, tmpMat) { - matrixType.identity(tmpMat); - return matrixArray.reduce((res, matrix, index) => { - if (index === 0) { - return matrix ? matrixType.copy(res, matrix) : matrixType.identity(res); - } - return matrix ? matrixType.multiply(res, res, matrix) : res; - }, tmpMat); -} - -// ---------------------------------------------------------------------------- -// vtkOpenGLImageResliceMapper methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLImageResliceMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLImageResliceMapper'); - - // Associate a reference counter to each graphics resource - const graphicsResourceReferenceCount = new Map(); - function decreaseGraphicsResourceCount(openGLRenderWindow, coreObject) { - if (!coreObject) { - return; - } - const oldCount = graphicsResourceReferenceCount.get(coreObject) ?? 0; - const newCount = oldCount - 1; - if (newCount <= 0) { - openGLRenderWindow.unregisterGraphicsResourceUser(coreObject, publicAPI); - graphicsResourceReferenceCount.delete(coreObject); - } else { - graphicsResourceReferenceCount.set(coreObject, newCount); - } - } - function increaseGraphicsResourceCount(openGLRenderWindow, coreObject) { - if (!coreObject) { - return; - } - const oldCount = graphicsResourceReferenceCount.get(coreObject) ?? 0; - const newCount = oldCount + 1; - graphicsResourceReferenceCount.set(coreObject, newCount); - if (oldCount <= 0) { - openGLRenderWindow.registerGraphicsResourceUser(coreObject, publicAPI); - } - } - function replaceGraphicsResource(openGLRenderWindow, oldResourceCoreObject, newResourceCoreObject) { - if (oldResourceCoreObject === newResourceCoreObject) { - return; - } - decreaseGraphicsResourceCount(openGLRenderWindow, oldResourceCoreObject); - increaseGraphicsResourceCount(openGLRenderWindow, newResourceCoreObject); - } - function unregisterGraphicsResources(renderWindow) { - // Convert to an array using the spread operator as Firefox doesn't support Iterator.forEach() - [...graphicsResourceReferenceCount.keys()].forEach(coreObject => renderWindow.unregisterGraphicsResourceUser(coreObject, publicAPI)); - } - publicAPI.buildPass = prepass => { - if (prepass) { - model.currentRenderPass = null; - model._openGLImageSlice = publicAPI.getFirstAncestorOfType('vtkOpenGLImageSlice'); - model._openGLRenderer = publicAPI.getFirstAncestorOfType('vtkOpenGLRenderer'); - const ren = model._openGLRenderer.getRenderable(); - model._openGLCamera = model._openGLRenderer.getViewNodeFor(ren.getActiveCamera()); - const oldOglRenderWindow = model._openGLRenderWindow; - model._openGLRenderWindow = model._openGLRenderer.getLastAncestorOfType('vtkOpenGLRenderWindow'); - if (oldOglRenderWindow && !oldOglRenderWindow.isDeleted() && oldOglRenderWindow !== model._openGLRenderWindow) { - // Unregister the mapper when the render window changes - unregisterGraphicsResources(oldOglRenderWindow); - } - model.context = model._openGLRenderWindow.getContext(); - model.tris.setOpenGLRenderWindow(model._openGLRenderWindow); - } - }; - publicAPI.translucentPass = (prepass, renderPass) => { - if (prepass) { - model.currentRenderPass = renderPass; - publicAPI.render(); - } - }; - publicAPI.zBufferPass = prepass => { - if (prepass) { - model.haveSeenDepthRequest = true; - model.renderDepth = true; - publicAPI.render(); - model.renderDepth = false; - } - }; - publicAPI.opaqueZBufferPass = prepass => publicAPI.zBufferPass(prepass); - publicAPI.opaquePass = prepass => { - if (prepass) { - publicAPI.render(); - } - }; - publicAPI.getCoincidentParameters = (ren, actor) => { - if ( - // backwards compat with code that (errorneously) set this to boolean - // eslint-disable-next-line eqeqeq - model.renderable.getResolveCoincidentTopology() == Resolve.PolygonOffset) { - return model.renderable.getCoincidentTopologyPolygonOffsetParameters(); - } - return null; - }; - - // Renders myself - publicAPI.render = () => { - const actor = model._openGLImageSlice.getRenderable(); - const ren = model._openGLRenderer.getRenderable(); - publicAPI.renderPiece(ren, actor); - }; - publicAPI.renderPiece = (ren, actor) => { - publicAPI.invokeEvent({ - type: 'StartEvent' - }); - model.renderable.update(); - const numberOfInputs = model.renderable.getNumberOfInputPorts(); - model.currentValidInputs = []; - for (let inputIndex = 0; inputIndex < numberOfInputs; ++inputIndex) { - const imageData = model.renderable.getInputData(inputIndex); - if (imageData && !imageData.isDeleted()) { - model.currentValidInputs.push({ - imageData, - inputIndex - }); - } - } - const numberOfValidInputs = model.currentValidInputs.length; - if (numberOfValidInputs <= 0) { - vtkErrorMacro('No input!'); - return; - } - - // Number of components - const firstImageData = model.currentValidInputs[0].imageData; - const firstScalars = firstImageData.getPointData().getScalars(); - model.multiTexturePerVolumeEnabled = numberOfValidInputs > 1; - model.numberOfComponents = model.multiTexturePerVolumeEnabled ? numberOfValidInputs : firstScalars.getNumberOfComponents(); - publicAPI.updateResliceGeometry(); - publicAPI.renderPieceStart(ren, actor); - publicAPI.renderPieceDraw(ren, actor); - publicAPI.renderPieceFinish(ren, actor); - publicAPI.invokeEvent({ - type: 'EndEvent' - }); - }; - publicAPI.renderPieceStart = (ren, actor) => { - // make sure the BOs are up to date - publicAPI.updateBufferObjects(ren, actor); - - // Update filters for scalar textures - const actorProperties = actor.getProperties(); - model.currentValidInputs.forEach(_ref => { - let { - inputIndex - } = _ref; - const actorProperty = actorProperties[inputIndex]; - const interpolationType = actorProperty.getInterpolationType(); - const scalarTexture = model.scalarTextures[inputIndex]; - if (interpolationType === InterpolationType.NEAREST) { - scalarTexture.setMinificationFilter(Filter.NEAREST); - scalarTexture.setMagnificationFilter(Filter.NEAREST); - } else { - scalarTexture.setMinificationFilter(Filter.LINEAR); - scalarTexture.setMagnificationFilter(Filter.LINEAR); - } - }); - - // Update color and opacity texture filters - const firstValidInput = model.currentValidInputs[0]; - const firstProperty = actorProperties[firstValidInput.inputIndex]; - const iType = firstProperty.getInterpolationType(); - if (iType === InterpolationType.NEAREST) { - model.colorTexture.setMinificationFilter(Filter.NEAREST); - model.colorTexture.setMagnificationFilter(Filter.NEAREST); - model.pwfTexture.setMinificationFilter(Filter.NEAREST); - model.pwfTexture.setMagnificationFilter(Filter.NEAREST); - } else { - model.colorTexture.setMinificationFilter(Filter.LINEAR); - model.colorTexture.setMagnificationFilter(Filter.LINEAR); - model.pwfTexture.setMinificationFilter(Filter.LINEAR); - model.pwfTexture.setMagnificationFilter(Filter.LINEAR); - } - - // No buffer objects bound. - model.lastBoundBO = null; - }; - publicAPI.renderPieceDraw = (ren, actor) => { - const gl = model.context; - - // render the texture - const allTextures = [...model.scalarTextures, model.colorTexture, model.pwfTexture]; - allTextures.forEach(texture => texture.activate()); - - // update shaders if required - publicAPI.updateShaders(model.tris, ren, actor); - - // Finally draw - gl.drawArrays(gl.TRIANGLES, 0, model.tris.getCABO().getElementCount()); - model.tris.getVAO().release(); - allTextures.forEach(texture => texture.deactivate()); - }; - publicAPI.renderPieceFinish = (ren, actor) => {}; - publicAPI.updateBufferObjects = (ren, actor) => { - // Rebuild buffer objects if needed - if (publicAPI.getNeedToRebuildBufferObjects(ren, actor)) { - publicAPI.buildBufferObjects(ren, actor); - } - }; - publicAPI.getNeedToRebuildBufferObjects = (ren, actor) => model.VBOBuildTime.getMTime() < publicAPI.getMTime() || model.VBOBuildTime.getMTime() < actor.getMTime() || model.VBOBuildTime.getMTime() < model.renderable.getMTime() || model.VBOBuildTime.getMTime() < actor.getProperty(model.currentValidInputs[0].inputIndex)?.getMTime() || model.currentValidInputs.some(_ref2 => { - let { - imageData - } = _ref2; - return model.VBOBuildTime.getMTime() < imageData.getMTime(); - }) || model.VBOBuildTime.getMTime() < model.resliceGeom.getMTime() || model.scalarTextures.length !== model.currentValidInputs.length || !model.scalarTextures.every(texture => !!texture?.getHandle()) || !model.colorTexture?.getHandle() || !model.pwfTexture?.getHandle(); - publicAPI.buildBufferObjects = (ren, actor) => { - const actorProperties = actor.getProperties(); - model.currentValidInputs.forEach((_ref3, component) => { - let { - imageData - } = _ref3; - // rebuild the scalarTexture if the data has changed - const scalars = imageData.getPointData().getScalars(); - const tex = model._openGLRenderWindow.getGraphicsResourceForObject(scalars); - const scalarsHash = getImageDataHash(imageData, scalars); - const reBuildTex = !tex?.oglObject?.getHandle() || tex?.hash !== scalarsHash; - const actorProperty = actorProperties[component]; - const updatedExtents = actorProperty.getUpdatedExtents(); - const hasUpdatedExtents = !!updatedExtents.length; - if (reBuildTex && !hasUpdatedExtents) { - const newScalarTexture = vtkOpenGLTexture.newInstance(); - newScalarTexture.setOpenGLRenderWindow(model._openGLRenderWindow); - // Build the textures - const dims = imageData.getDimensions(); - // Use norm16 for scalar texture if the extension is available - newScalarTexture.setOglNorm16Ext(model.context.getExtension('EXT_texture_norm16')); - newScalarTexture.resetFormatAndType(); - newScalarTexture.create3DFilterableFromDataArray({ - width: dims[0], - height: dims[1], - depth: dims[2], - dataArray: scalars - }); - model._openGLRenderWindow.setGraphicsResourceForObject(scalars, newScalarTexture, scalarsHash); - model.scalarTextures[component] = newScalarTexture; - } else { - model.scalarTextures[component] = tex.oglObject; - } - if (hasUpdatedExtents) { - // If hasUpdatedExtents, then the texture is partially updated. - // clear the array to acknowledge the update. - actorProperty.setUpdatedExtents([]); - const dims = imageData.getDimensions(); - model.scalarTextures[component].create3DFilterableFromDataArray({ - width: dims[0], - height: dims[1], - depth: dims[2], - dataArray: scalars, - updatedExtents - }); - } - replaceGraphicsResource(model._openGLRenderWindow, model._scalarTexturesCore[component], scalars); - model._scalarTexturesCore[component] = scalars; - }); - const firstValidInput = model.currentValidInputs[0]; - const firstActorProperty = actorProperties[firstValidInput.inputIndex]; - const iComps = firstActorProperty.getIndependentComponents(); - const numIComps = iComps ? model.numberOfComponents : 1; - const textureHeight = iComps ? 2 * numIComps : 1; - const colorTransferFunctions = []; - for (let component = 0; component < numIComps; ++component) { - colorTransferFunctions.push(firstActorProperty.getRGBTransferFunction(component)); - } - const colorFuncHash = getTransferFunctionsHash(colorTransferFunctions, iComps, numIComps); - const firstColorTransferFunc = firstActorProperty.getRGBTransferFunction(); - const cTex = model._openGLRenderWindow.getGraphicsResourceForObject(firstColorTransferFunc); - const reBuildC = !cTex?.oglObject?.getHandle() || cTex?.hash !== colorFuncHash; - if (reBuildC) { - let cWidth = model.renderable.getColorTextureWidth(); - if (cWidth <= 0) { - cWidth = model.context.getParameter(model.context.MAX_TEXTURE_SIZE); - } - const cSize = cWidth * textureHeight * 3; - const cTable = new Uint8ClampedArray(cSize); - const newColorTexture = vtkOpenGLTexture.newInstance(); - newColorTexture.setOpenGLRenderWindow(model._openGLRenderWindow); - if (firstColorTransferFunc) { - const tmpTable = new Float32Array(cWidth * 3); - for (let c = 0; c < numIComps; c++) { - const cfun = firstActorProperty.getRGBTransferFunction(c); - const cRange = cfun.getRange(); - cfun.getTable(cRange[0], cRange[1], cWidth, tmpTable, 1); - if (iComps) { - for (let i = 0; i < cWidth * 3; i++) { - cTable[c * cWidth * 6 + i] = 255.0 * tmpTable[i]; - cTable[c * cWidth * 6 + i + cWidth * 3] = 255.0 * tmpTable[i]; - } - } else { - for (let i = 0; i < cWidth * 3; i++) { - cTable[c * cWidth * 3 + i] = 255.0 * tmpTable[i]; - } - } - } - newColorTexture.resetFormatAndType(); - newColorTexture.create2DFromRaw({ - width: cWidth, - height: textureHeight, - numComps: 3, - dataType: VtkDataTypes.UNSIGNED_CHAR, - data: cTable - }); - } else { - for (let column = 0; column < cWidth * 3; ++column) { - const opacity = 255.0 * column / ((cWidth - 1) * 3); - for (let row = 0; row < textureHeight; ++row) { - // R, G, B - cTable[row * cWidth * 3 + column + 0] = opacity; - cTable[row * cWidth * 3 + column + 1] = opacity; - cTable[row * cWidth * 3 + column + 2] = opacity; - } - } - newColorTexture.resetFormatAndType(); - newColorTexture.create2DFromRaw({ - width: cWidth, - height: 1, - numComps: 3, - dataType: VtkDataTypes.UNSIGNED_CHAR, - data: cTable - }); - } - if (firstColorTransferFunc) { - model._openGLRenderWindow.setGraphicsResourceForObject(firstColorTransferFunc, newColorTexture, colorFuncHash); - } - model.colorTexture = newColorTexture; - } else { - model.colorTexture = cTex.oglObject; - } - replaceGraphicsResource(model._openGLRenderWindow, model._colorTextureCore, firstColorTransferFunc); - model._colorTextureCore = firstColorTransferFunc; - - // Build piecewise function buffer. This buffer is used either - // for component weighting or opacity, depending on whether we're - // rendering components independently or not. - const opacityFunctions = []; - for (let component = 0; component < numIComps; ++component) { - opacityFunctions.push(firstActorProperty.getPiecewiseFunction(component)); - } - const opacityFuncHash = getTransferFunctionsHash(opacityFunctions, iComps, numIComps); - const firstPwFunc = firstActorProperty.getPiecewiseFunction(); - const pwfTex = model._openGLRenderWindow.getGraphicsResourceForObject(firstPwFunc); - const reBuildPwf = !pwfTex?.oglObject?.getHandle() || pwfTex?.hash !== opacityFuncHash; - if (reBuildPwf) { - let pwfWidth = model.renderable.getOpacityTextureWidth(); - if (pwfWidth <= 0) { - pwfWidth = model.context.getParameter(model.context.MAX_TEXTURE_SIZE); - } - const pwfSize = pwfWidth * textureHeight; - const pwfTable = new Uint8ClampedArray(pwfSize); - const newOpacityTexture = vtkOpenGLTexture.newInstance(); - newOpacityTexture.setOpenGLRenderWindow(model._openGLRenderWindow); - if (firstPwFunc) { - const pwfFloatTable = new Float32Array(pwfSize); - const tmpTable = new Float32Array(pwfWidth); - for (let c = 0; c < numIComps; ++c) { - const pwfun = firstActorProperty.getPiecewiseFunction(c); - if (pwfun === null) { - // Piecewise constant max if no function supplied for this component - pwfFloatTable.fill(1.0); - } else { - const pwfRange = pwfun.getRange(); - pwfun.getTable(pwfRange[0], pwfRange[1], pwfWidth, tmpTable, 1); - // adjust for sample distance etc - if (iComps) { - for (let i = 0; i < pwfWidth; i++) { - pwfFloatTable[c * pwfWidth * 2 + i] = tmpTable[i]; - pwfFloatTable[c * pwfWidth * 2 + i + pwfWidth] = tmpTable[i]; - } - } else { - for (let i = 0; i < pwfWidth; i++) { - pwfFloatTable[i] = tmpTable[i]; - } - } - } - } - newOpacityTexture.resetFormatAndType(); - newOpacityTexture.create2DFromRaw({ - width: pwfWidth, - height: textureHeight, - numComps: 1, - dataType: VtkDataTypes.FLOAT, - data: pwfFloatTable - }); - } else { - // default is opaque - pwfTable.fill(255.0); - newOpacityTexture.resetFormatAndType(); - newOpacityTexture.create2DFromRaw({ - width: pwfWidth, - height: textureHeight, - numComps: 1, - dataType: VtkDataTypes.UNSIGNED_CHAR, - data: pwfTable - }); - } - if (firstPwFunc) { - model._openGLRenderWindow.setGraphicsResourceForObject(firstPwFunc, newOpacityTexture, opacityFuncHash); - } - model.pwfTexture = newOpacityTexture; - } else { - model.pwfTexture = pwfTex.oglObject; - } - replaceGraphicsResource(model._openGLRenderWindow, model._pwfTextureCore, firstPwFunc); - model._pwfTextureCore = firstPwFunc; - const vboString = `${model.resliceGeom.getMTime()}A${model.renderable.getSlabThickness()}`; - if (!model.tris.getCABO().getElementCount() || model.VBOBuildString !== vboString) { - const points = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: model.resliceGeom.getPoints().getData() - }); - points.setName('points'); - const cells = vtkDataArray.newInstance({ - numberOfComponents: 1, - values: model.resliceGeom.getPolys().getData() - }); - const options = { - points, - cellOffset: 0 - }; - if (model.renderable.getSlabThickness() > 0.0) { - const n = model.resliceGeom.getPointData().getNormals(); - if (!n) { - vtkErrorMacro('Slab mode requested without normals'); - } else { - options.normals = n; - } - } - model.tris.getCABO().createVBO(cells, 'polys', Representation.SURFACE, options); - } - model.VBOBuildString = vboString; - model.VBOBuildTime.modified(); - }; - publicAPI.updateShaders = (cellBO, ren, actor) => { - model.lastBoundBO = cellBO; - - // has something changed that would require us to recreate the shader? - if (publicAPI.getNeedToRebuildShaders(cellBO, ren, actor)) { - const shaders = { - Vertex: null, - Fragment: null, - Geometry: null - }; - publicAPI.buildShaders(shaders, ren, actor); - - // compile and bind the program if needed - const newShader = model._openGLRenderWindow.getShaderCache().readyShaderProgramArray(shaders.Vertex, shaders.Fragment, shaders.Geometry); - - // if the shader changed reinitialize the VAO - if (newShader !== cellBO.getProgram()) { - cellBO.setProgram(newShader); - // reset the VAO as the shader has changed - cellBO.getVAO().releaseGraphicsResources(); - } - cellBO.getShaderSourceTime().modified(); - } else { - model._openGLRenderWindow.getShaderCache().readyShaderProgram(cellBO.getProgram()); - } - cellBO.getVAO().bind(); - publicAPI.setMapperShaderParameters(cellBO, ren, actor); - publicAPI.setCameraShaderParameters(cellBO, ren, actor); - publicAPI.setPropertyShaderParameters(cellBO, ren, actor); - }; - publicAPI.setMapperShaderParameters = (cellBO, ren, actor) => { - const program = cellBO.getProgram(); - const firstImageData = model.currentValidInputs[0].imageData; - if (cellBO.getCABO().getElementCount() && (model.VBOBuildTime.getMTime() > cellBO.getAttributeUpdateTime().getMTime() || cellBO.getShaderSourceTime().getMTime() > cellBO.getAttributeUpdateTime().getMTime())) { - // Set the 3D texture - model.scalarTextures.forEach((scalarTexture, component) => { - program.setUniformi(`volumeTexture[${component}]`, scalarTexture.getTextureUnit()); - }); - - // Set the plane vertex attributes - if (program.isAttributeUsed('vertexWC')) { - if (!cellBO.getVAO().addAttributeArray(program, cellBO.getCABO(), 'vertexWC', cellBO.getCABO().getVertexOffset(), cellBO.getCABO().getStride(), model.context.FLOAT, 3, model.context.FALSE)) { - vtkErrorMacro('Error setting vertexWC in shader VAO.'); - } - } - - // If we are doing slab mode, we need normals - if (program.isAttributeUsed('normalWC')) { - if (!cellBO.getVAO().addAttributeArray(program, cellBO.getCABO(), 'normalWC', cellBO.getCABO().getNormalOffset(), cellBO.getCABO().getStride(), model.context.FLOAT, 3, model.context.FALSE)) { - vtkErrorMacro('Error setting normalWC in shader VAO.'); - } - } - if (program.isUniformUsed('slabThickness')) { - program.setUniformf('slabThickness', model.renderable.getSlabThickness()); - } - if (program.isUniformUsed('spacing')) { - program.setUniform3fv('spacing', firstImageData.getSpacing()); - } - if (program.isUniformUsed('slabType')) { - program.setUniformi('slabType', model.renderable.getSlabType()); - } - if (program.isUniformUsed('slabType')) { - program.setUniformi('slabType', model.renderable.getSlabType()); - } - if (program.isUniformUsed('slabTrapezoid')) { - program.setUniformi('slabTrapezoid', model.renderable.getSlabTrapezoidIntegration()); - } - const shiftScaleEnabled = cellBO.getCABO().getCoordShiftAndScaleEnabled(); - const inverseShiftScaleMatrix = shiftScaleEnabled ? cellBO.getCABO().getInverseShiftAndScaleMatrix() : null; - - // Set the world->texture matrix - if (program.isUniformUsed('WCTCMatrix')) { - const dim = firstImageData.getDimensions(); - mat4.copy(model.tmpMat4, firstImageData.getIndexToWorld()); - mat4.translate(model.tmpMat4, model.tmpMat4, [-0.5, -0.5, -0.5]); - mat4.scale(model.tmpMat4, model.tmpMat4, dim); - mat4.invert(model.tmpMat4, model.tmpMat4); - if (inverseShiftScaleMatrix) { - mat4.multiply(model.tmpMat4, model.tmpMat4, inverseShiftScaleMatrix); - } - program.setUniformMatrix('WCTCMatrix', model.tmpMat4); - } - if (program.isUniformUsed('vboScaling')) { - program.setUniform3fv('vboScaling', cellBO.getCABO().getCoordScale() ?? [1, 1, 1]); - } - cellBO.getAttributeUpdateTime().modified(); - } - - // Depth request - if (model.haveSeenDepthRequest) { - cellBO.getProgram().setUniformi('depthRequest', model.renderDepth ? 1 : 0); - } - - // handle coincident - if (cellBO.getProgram().isUniformUsed('coffset')) { - const cp = publicAPI.getCoincidentParameters(ren, actor); - cellBO.getProgram().setUniformf('coffset', cp.offset); - // cfactor isn't always used when coffset is. - if (cellBO.getProgram().isUniformUsed('cfactor')) { - cellBO.getProgram().setUniformf('cfactor', cp.factor); - } - } - }; - publicAPI.setCameraShaderParameters = (cellBO, ren, actor) => { - // [WMVP]C == {world, model, view, projection} coordinates - // e.g. WCPC == world to projection coordinate transformation - const keyMats = model._openGLCamera.getKeyMatrices(ren); - const actMats = model._openGLImageSlice.getKeyMatrices(); - const shiftScaleEnabled = cellBO.getCABO().getCoordShiftAndScaleEnabled(); - const inverseShiftScaleMatrix = shiftScaleEnabled ? cellBO.getCABO().getInverseShiftAndScaleMatrix() : null; - const program = cellBO.getProgram(); - if (program.isUniformUsed('MCPCMatrix')) { - mat4.identity(model.tmpMat4); - program.setUniformMatrix('MCPCMatrix', safeMatrixMultiply([keyMats.wcpc, actMats.mcwc, inverseShiftScaleMatrix], mat4, model.tmpMat4)); - } - if (program.isUniformUsed('MCVCMatrix')) { - mat4.identity(model.tmpMat4); - program.setUniformMatrix('MCVCMatrix', safeMatrixMultiply([keyMats.wcvc, actMats.mcwc, inverseShiftScaleMatrix], mat4, model.tmpMat4)); - } - }; - publicAPI.setPropertyShaderParameters = (cellBO, ren, actor) => { - const program = cellBO.getProgram(); - const firstPpty = actor.getProperty(model.currentValidInputs[0].inputIndex); - const opacity = firstPpty.getOpacity(); - program.setUniformf('opacity', opacity); - - // Component mix - // Independent components: Mixed according to component weights - // Dependent components: Mixed using the following logic: - // - 2 comps => LA - // - 3 comps => RGB + opacity from pwf - // - 4 comps => RGBA - const numComp = model.numberOfComponents; - const iComps = firstPpty.getIndependentComponents(); - if (iComps) { - for (let i = 0; i < numComp; ++i) { - program.setUniformf(`mix${i}`, firstPpty.getComponentWeight(i)); - } - } - - // three levels of shift scale combined into one - // for performance in the fragment shader - for (let component = 0; component < numComp; component++) { - const useMultiTexture = model.multiTexturePerVolumeEnabled; - const textureIndex = useMultiTexture ? component : 0; - const volInfoIndex = useMultiTexture ? 0 : component; - const scalarTexture = model.scalarTextures[textureIndex]; - const volInfo = scalarTexture.getVolumeInfo(); - const volScale = volInfo.scale[volInfoIndex]; - const volOffset = volInfo.offset[volInfoIndex]; - const target = iComps ? component : 0; - - // color shift/scale - let cw = firstPpty.getColorWindow(); - let cl = firstPpty.getColorLevel(); - const cfun = firstPpty.getRGBTransferFunction(target); - if (cfun && firstPpty.getUseLookupTableScalarRange()) { - const cRange = cfun.getRange(); - cw = cRange[1] - cRange[0]; - cl = 0.5 * (cRange[1] + cRange[0]); - } - const colorScale = volScale / cw; - const colorShift = (volOffset - cl) / cw + 0.5; - program.setUniformf(`cshift${component}`, colorShift); - program.setUniformf(`cscale${component}`, colorScale); - - // pwf shift/scale - let pwfScale = 1.0; - let pwfShift = 0.0; - const pwfun = firstPpty.getPiecewiseFunction(target); - if (pwfun) { - const pwfRange = pwfun.getRange(); - const length = pwfRange[1] - pwfRange[0]; - const mid = 0.5 * (pwfRange[0] + pwfRange[1]); - pwfScale = volScale / length; - pwfShift = (volOffset - mid) / length + 0.5; - } - program.setUniformf(`pwfshift${component}`, pwfShift); - program.setUniformf(`pwfscale${component}`, pwfScale); - } - const texColorUnit = model.colorTexture.getTextureUnit(); - program.setUniformi('colorTexture1', texColorUnit); - const texOpacityUnit = model.pwfTexture.getTextureUnit(); - program.setUniformi('pwfTexture1', texOpacityUnit); - - // Background color - program.setUniform4fv('backgroundColor', model.renderable.getBackgroundColor()); - }; - publicAPI.getNeedToRebuildShaders = (cellBO, ren, actor) => { - // has something changed that would require us to recreate the shader? - // candidates are - // property modified (representation interpolation and lighting) - // input modified - // light complexity changed - // render pass shader replacement changed - const iComp = actor.getProperty(model.currentValidInputs[0].inputIndex).getIndependentComponents(); - const slabTh = model.renderable.getSlabThickness(); - const slabType = model.renderable.getSlabType(); - const slabTrap = model.renderable.getSlabTrapezoidIntegration(); - - // has the render pass shader replacement changed? Two options - let needRebuild = false; - if (!model.currentRenderPass && model.lastRenderPassShaderReplacement || model.currentRenderPass && model.currentRenderPass.getShaderReplacement() !== model.lastRenderPassShaderReplacement) { - needRebuild = true; - } - if (needRebuild || model.lastHaveSeenDepthRequest !== model.haveSeenDepthRequest || model.lastNumberOfComponents !== model.numberOfComponents || model.lastMultiTexturePerVolumeEnabled !== model.multiTexturePerVolumeEnabled || cellBO.getProgram()?.getHandle() === 0 || model.lastIndependentComponents !== iComp || model.lastSlabThickness !== slabTh || model.lastSlabType !== slabType || model.lastSlabTrapezoidIntegration !== slabTrap) { - model.lastHaveSeenDepthRequest = model.haveSeenDepthRequest; - model.lastNumberOfComponents = model.numberOfComponents; - model.lastMultiTexturePerVolumeEnabled = model.multiTexturePerVolumeEnabled; - model.lastIndependentComponents = iComp; - model.lastSlabThickness = slabTh; - model.lastSlabType = slabType; - model.lastSlabTrapezoidIntegration = slabTrap; - return true; - } - return false; - }; - publicAPI.getShaderTemplate = (shaders, ren, actor) => { - shaders.Vertex = vtkImageResliceMapperVS; - shaders.Fragment = vtkImageResliceMapperFS; - shaders.Geometry = ''; - }; - publicAPI.replaceShaderValues = (shaders, ren, actor) => { - publicAPI.replaceShaderTCoord(shaders, ren, actor); - publicAPI.replaceShaderPositionVC(shaders, ren, actor); - if (model.haveSeenDepthRequest) { - let FSSource = shaders.Fragment; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::ZBuffer::Dec', 'uniform int depthRequest;').result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::ZBuffer::Impl', ['if (depthRequest == 1) {', 'float iz = floor(gl_FragCoord.z*65535.0 + 0.1);', 'float rf = floor(iz/256.0)/255.0;', 'float gf = mod(iz,256.0)/255.0;', 'gl_FragData[0] = vec4(rf, gf, 0.0, 1.0); }']).result; - shaders.Fragment = FSSource; - } - publicAPI.replaceShaderCoincidentOffset(shaders, ren, actor); - }; - publicAPI.replaceShaderTCoord = (shaders, ren, actor) => { - let VSSource = shaders.Vertex; - const GSSource = shaders.Geometry; - let FSSource = shaders.Fragment; - const tcoordVSDec = ['uniform mat4 WCTCMatrix;', 'out vec3 fragTexCoord;']; - const slabThickness = model.renderable.getSlabThickness(); - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::TCoord::Dec', tcoordVSDec).result; - const tcoordVSImpl = ['fragTexCoord = (WCTCMatrix * vertexWC).xyz;']; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::TCoord::Impl', tcoordVSImpl).result; - const tNumComp = model.numberOfComponents; - const iComps = actor.getProperty(model.currentValidInputs[0].inputIndex).getIndependentComponents(); - let tcoordFSDec = ['in vec3 fragTexCoord;', `uniform highp sampler3D volumeTexture[${model.scalarTextures.length}];`, 'uniform mat4 WCTCMatrix;', - // color shift and scale - 'uniform float cshift0;', 'uniform float cscale0;', - // pwf shift and scale - 'uniform float pwfshift0;', 'uniform float pwfscale0;', - // color and pwf textures - 'uniform sampler2D colorTexture1;', 'uniform sampler2D pwfTexture1;', - // opacity - 'uniform float opacity;', - // background color - 'uniform vec4 backgroundColor;']; - - // Function to sample texture - tcoordFSDec.push('vec4 rawSampleTexture(vec3 pos) {'); - if (!model.multiTexturePerVolumeEnabled) { - tcoordFSDec.push('return texture(volumeTexture[0], pos);', '}'); - } else { - tcoordFSDec.push('vec4 rawSample;'); - for (let component = 0; component < model.scalarTextures.length; ++component) { - tcoordFSDec.push(`rawSample[${component}] = texture(volumeTexture[${component}], pos)[0];`); - } - tcoordFSDec.push('return rawSample;', '}'); - } - if (iComps) { - for (let comp = 1; comp < tNumComp; comp++) { - tcoordFSDec = tcoordFSDec.concat([ - // color shift and scale - `uniform float cshift${comp};`, `uniform float cscale${comp};`, - // weighting shift and scale - `uniform float pwfshift${comp};`, `uniform float pwfscale${comp};`]); - } - // the heights defined below are the locations - // for the up to four components of the tfuns - // the tfuns have a height of 2XnumComps pixels so the - // values are computed to hit the middle of the two rows - // for that component - switch (tNumComp) { - case 1: - tcoordFSDec = tcoordFSDec.concat(['uniform float mix0;', '#define height0 0.5']); - break; - case 2: - tcoordFSDec = tcoordFSDec.concat(['uniform float mix0;', 'uniform float mix1;', '#define height0 0.25', '#define height1 0.75']); - break; - case 3: - tcoordFSDec = tcoordFSDec.concat(['uniform float mix0;', 'uniform float mix1;', 'uniform float mix2;', '#define height0 0.17', '#define height1 0.5', '#define height2 0.83']); - break; - case 4: - tcoordFSDec = tcoordFSDec.concat(['uniform float mix0;', 'uniform float mix1;', 'uniform float mix2;', 'uniform float mix3;', '#define height0 0.125', '#define height1 0.375', '#define height2 0.625', '#define height3 0.875']); - break; - default: - vtkErrorMacro('Unsupported number of independent coordinates.'); - } - } - if (slabThickness > 0.0) { - tcoordFSDec = tcoordFSDec.concat(['uniform vec3 spacing;', 'uniform float slabThickness;', 'uniform int slabType;', 'uniform int slabTrapezoid;', 'uniform vec3 vboScaling;']); - tcoordFSDec = tcoordFSDec.concat(['vec4 compositeValue(vec4 currVal, vec4 valToComp, int trapezoid)', '{', ' vec4 retVal = vec4(1.0);', ' if (slabType == 0) // min', ' {', ' retVal = min(currVal, valToComp);', ' }', ' else if (slabType == 1) // max', ' {', ' retVal = max(currVal, valToComp);', ' }', ' else if (slabType == 3) // sum', ' {', ' retVal = currVal + (trapezoid > 0 ? 0.5 * valToComp : valToComp); ', ' }', ' else // mean', ' {', ' retVal = currVal + (trapezoid > 0 ? 0.5 * valToComp : valToComp); ', ' }', ' return retVal;', '}']); - } - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Dec', tcoordFSDec).result; - let tcoordFSImpl = ['if (any(greaterThan(fragTexCoord, vec3(1.0))) || any(lessThan(fragTexCoord, vec3(0.0))))', '{', ' // set the background color and exit', ' gl_FragData[0] = backgroundColor;', ' return;', '}', 'vec4 tvalue = rawSampleTexture(fragTexCoord);']; - if (slabThickness > 0.0) { - tcoordFSImpl = tcoordFSImpl.concat(['// Get the first and last samples', 'int numSlices = 1;', 'float scaling = min(min(spacing.x, spacing.y), spacing.z) * 0.5;', 'vec3 normalxspacing = scaling * normalWCVSOutput;', 'float distTraveled = length(normalxspacing);', 'int trapezoid = 0;', 'while (distTraveled < slabThickness * 0.5)', '{', ' distTraveled += length(normalxspacing);', ' float fnumSlices = float(numSlices);', ' if (distTraveled > slabThickness * 0.5)', ' {', ' // Before stepping outside the slab, sample at the boundaries', ' normalxspacing = normalWCVSOutput * slabThickness * 0.5 / fnumSlices;', ' trapezoid = slabTrapezoid;', ' }', ' vec3 fragTCoordNeg = (WCTCMatrix * vec4(vertexWCVSOutput.xyz - fnumSlices * normalxspacing * vboScaling, 1.0)).xyz;', ' if (!any(greaterThan(fragTCoordNeg, vec3(1.0))) && !any(lessThan(fragTCoordNeg, vec3(0.0))))', ' {', ' vec4 newVal = rawSampleTexture(fragTCoordNeg);', ' tvalue = compositeValue(tvalue, newVal, trapezoid);', ' numSlices += 1;', ' }', ' vec3 fragTCoordPos = (WCTCMatrix * vec4(vertexWCVSOutput.xyz + fnumSlices * normalxspacing * vboScaling, 1.0)).xyz;', ' if (!any(greaterThan(fragTCoordNeg, vec3(1.0))) && !any(lessThan(fragTCoordNeg, vec3(0.0))))', ' {', ' vec4 newVal = rawSampleTexture(fragTCoordPos);', ' tvalue = compositeValue(tvalue, newVal, trapezoid);', ' numSlices += 1;', ' }', '}', '// Finally, if slab type is *mean*, divide the sum by the numSlices', 'if (slabType == 2)', '{', ' tvalue = tvalue / float(numSlices);', '}']); - } - if (iComps) { - const rgba = ['r', 'g', 'b', 'a']; - for (let comp = 0; comp < tNumComp; ++comp) { - tcoordFSImpl = tcoordFSImpl.concat([`vec3 tcolor${comp} = texture2D(colorTexture1, vec2(tvalue.${rgba[comp]} * cscale${comp} + cshift${comp}, height${comp})).rgb;`, `float compWeight${comp} = mix${comp} * texture2D(pwfTexture1, vec2(tvalue.${rgba[comp]} * pwfscale${comp} + pwfshift${comp}, height${comp})).r;`]); - } - switch (tNumComp) { - case 1: - tcoordFSImpl = tcoordFSImpl.concat(['gl_FragData[0] = vec4(tcolor0.rgb, compWeight0 * opacity);']); - break; - case 2: - tcoordFSImpl = tcoordFSImpl.concat(['float weightSum = compWeight0 + compWeight1;', 'gl_FragData[0] = vec4(vec3((tcolor0.rgb * (compWeight0 / weightSum)) + (tcolor1.rgb * (compWeight1 / weightSum))), opacity);']); - break; - case 3: - tcoordFSImpl = tcoordFSImpl.concat(['float weightSum = compWeight0 + compWeight1 + compWeight2;', 'gl_FragData[0] = vec4(vec3((tcolor0.rgb * (compWeight0 / weightSum)) + (tcolor1.rgb * (compWeight1 / weightSum)) + (tcolor2.rgb * (compWeight2 / weightSum))), opacity);']); - break; - case 4: - tcoordFSImpl = tcoordFSImpl.concat(['float weightSum = compWeight0 + compWeight1 + compWeight2 + compWeight3;', 'gl_FragData[0] = vec4(vec3((tcolor0.rgb * (compWeight0 / weightSum)) + (tcolor1.rgb * (compWeight1 / weightSum)) + (tcolor2.rgb * (compWeight2 / weightSum)) + (tcolor3.rgb * (compWeight3 / weightSum))), opacity);']); - break; - default: - vtkErrorMacro('Unsupported number of independent coordinates.'); - } - } else { - // dependent components - switch (tNumComp) { - case 1: - tcoordFSImpl = tcoordFSImpl.concat(['// Dependent components', 'float intensity = tvalue.r;', 'vec3 tcolor = texture2D(colorTexture1, vec2(intensity * cscale0 + cshift0, 0.5)).rgb;', 'float scalarOpacity = texture2D(pwfTexture1, vec2(intensity * pwfscale0 + pwfshift0, 0.5)).r;', 'gl_FragData[0] = vec4(tcolor, scalarOpacity * opacity);']); - break; - case 2: - tcoordFSImpl = tcoordFSImpl.concat(['float intensity = tvalue.r*cscale0 + cshift0;', 'gl_FragData[0] = vec4(texture2D(colorTexture1, vec2(intensity, 0.5)).rgb, pwfscale0*tvalue.g + pwfshift0);']); - break; - case 3: - tcoordFSImpl = tcoordFSImpl.concat(['vec4 tcolor = cscale0*tvalue + cshift0;', 'gl_FragData[0] = vec4(texture2D(colorTexture1, vec2(tcolor.r,0.5)).r,', ' texture2D(colorTexture1, vec2(tcolor.g,0.5)).r,', ' texture2D(colorTexture1, vec2(tcolor.b,0.5)).r, opacity);']); - break; - default: - tcoordFSImpl = tcoordFSImpl.concat(['vec4 tcolor = cscale0*tvalue + cshift0;', 'gl_FragData[0] = vec4(texture2D(colorTexture1, vec2(tcolor.r,0.5)).r,', ' texture2D(colorTexture1, vec2(tcolor.g,0.5)).r,', ' texture2D(colorTexture1, vec2(tcolor.b,0.5)).r, tcolor.a);']); - } - } - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Impl', tcoordFSImpl).result; - shaders.Vertex = VSSource; - shaders.Fragment = FSSource; - shaders.Geometry = GSSource; - }; - publicAPI.replaceShaderPositionVC = (shaders, ren, actor) => { - let VSSource = shaders.Vertex; - const GSSource = shaders.Geometry; - let FSSource = shaders.Fragment; - const slabThickness = model.renderable.getSlabThickness(); - let posVCVSDec = ['attribute vec4 vertexWC;']; - // Add a unique hash to the shader to ensure that the shader program is unique to this mapper. - posVCVSDec = posVCVSDec.concat([`//${publicAPI.getMTime()}${model.resliceGeomUpdateString}`]); - if (slabThickness > 0.0) { - posVCVSDec = posVCVSDec.concat(['attribute vec3 normalWC;', 'varying vec3 normalWCVSOutput;', 'varying vec4 vertexWCVSOutput;']); - } - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::PositionVC::Dec', posVCVSDec).result; - let posVCVSImpl = ['gl_Position = MCPCMatrix * vertexWC;']; - if (slabThickness > 0.0) { - posVCVSImpl = posVCVSImpl.concat(['normalWCVSOutput = normalWC;', 'vertexWCVSOutput = vertexWC;']); - } - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::PositionVC::Impl', posVCVSImpl).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Camera::Dec', ['uniform mat4 MCPCMatrix;', 'uniform mat4 MCVCMatrix;']).result; - let posVCFSDec = []; - if (slabThickness > 0.0) { - posVCFSDec = posVCFSDec.concat(['varying vec3 normalWCVSOutput;', 'varying vec4 vertexWCVSOutput;']); - } - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::PositionVC::Dec', posVCFSDec).result; - shaders.Vertex = VSSource; - shaders.Geometry = GSSource; - shaders.Fragment = FSSource; - }; - - /** - * Returns true if the normal is almost axis aligned. - * Has a side effect to normalize the vector. - */ - function isVectorAxisAligned(n) { - vtkMath.normalize(n); - const tmpN = [0, 0, 0]; - for (let i = 0; i < 3; ++i) { - vec3.zero(tmpN); - tmpN[i] = 1.0; - const dotP = vtkMath.dot(n, tmpN); - if (dotP < -0.999999 || dotP > 0.999999) { - return [true, i]; - } - } - return [false, 2]; - } - publicAPI.updateResliceGeometry = () => { - let resGeomString = ''; - const firstImageData = model.currentValidInputs[0].imageData; - const imageBounds = firstImageData?.getBounds(); - // Orthogonal slicing by default - let orthoSlicing = true; - let orthoAxis = 2; - const slicePD = model.renderable.getSlicePolyData(); - const slicePlane = model.renderable.getSlicePlane(); - if (slicePD) { - resGeomString = resGeomString.concat(`PolyData${slicePD.getMTime()}`); - } else if (slicePlane) { - resGeomString = resGeomString.concat(`Plane${slicePlane.getMTime()}`); - // Compute a world-to-image-orientation matrix. - const w2io = mat3.create(); - if (firstImageData) { - resGeomString = resGeomString.concat(`Image${firstImageData.getMTime()}`); - // Ignore the translation component since we are - // using it on vectors rather than positions. - mat3.set(w2io, ...firstImageData.getDirection()); - mat3.invert(w2io, w2io); - } - // Check to see if we can bypass oblique slicing related bounds computation - // transform the cutting plane normal to image local coords - const imageLocalNormal = [...slicePlane.getNormal()]; - vec3.transformMat3(imageLocalNormal, imageLocalNormal, w2io); - [orthoSlicing, orthoAxis] = isVectorAxisAligned(imageLocalNormal); - } else { - // Create a default slice plane here - const plane = vtkPlane.newInstance(); - plane.setNormal(0, 0, 1); - let bds = [0, 1, 0, 1, 0, 1]; - if (firstImageData) { - bds = imageBounds; - } - plane.setOrigin(bds[0], bds[2], 0.5 * (bds[5] + bds[4])); - model.renderable.setSlicePlane(plane); - resGeomString = resGeomString.concat(`Plane${slicePlane?.getMTime()}`); - if (firstImageData) { - resGeomString = resGeomString.concat(`Image${firstImageData.getMTime()}`); - } - } - if (!model.resliceGeom || model.resliceGeomUpdateString !== resGeomString) { - if (slicePD) { - if (!model.resliceGeom) { - model.resliceGeom = vtkPolyData.newInstance(); - } - model.resliceGeom.getPoints().setData(slicePD.getPoints().getData(), 3); - model.resliceGeom.getPolys().setData(slicePD.getPolys().getData(), 1); - model.resliceGeom.getPointData().setNormals(slicePD.getPointData().getNormals()); - } else if (slicePlane) { - if (!orthoSlicing) { - model.outlineFilter.setInputData(firstImageData); - model.cutter.setInputConnection(model.outlineFilter.getOutputPort()); - model.cutter.setCutFunction(slicePlane); - model.lineToSurfaceFilter.setInputConnection(model.cutter.getOutputPort()); - model.lineToSurfaceFilter.update(); - if (!model.resliceGeom) { - model.resliceGeom = vtkPolyData.newInstance(); - } - const planePD = model.lineToSurfaceFilter.getOutputData(); - model.resliceGeom.getPoints().setData(planePD.getPoints().getData(), 3); - model.resliceGeom.getPolys().setData(planePD.getPolys().getData(), 1); - model.resliceGeom.getPointData().setNormals(planePD.getPointData().getNormals()); - // The above method does not generate point normals - // Set it manually here. - const n = slicePlane.getNormal(); - const npts = model.resliceGeom.getNumberOfPoints(); - vtkMath.normalize(n); - const normalsData = new Float32Array(npts * 3); - for (let i = 0; i < npts; ++i) { - normalsData[3 * i] = n[0]; - normalsData[3 * i + 1] = n[1]; - normalsData[3 * i + 2] = n[2]; - } - const normals = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: normalsData, - name: 'Normals' - }); - model.resliceGeom.getPointData().setNormals(normals); - } else { - // Since the image-local normal is axis-aligned, we - // can quickly construct the cutting plane using indexToWorld transforms. - const ptsArray = new Float32Array(12); - const indexSpacePlaneOrigin = firstImageData.worldToIndex(slicePlane.getOrigin(), [0, 0, 0]); - const otherAxes = [(orthoAxis + 1) % 3, (orthoAxis + 2) % 3].sort(); - const ext = firstImageData.getSpatialExtent(); - let ptIdx = 0; - for (let i = 0; i < 2; ++i) { - for (let j = 0; j < 2; ++j) { - ptsArray[ptIdx + orthoAxis] = indexSpacePlaneOrigin[orthoAxis]; - ptsArray[ptIdx + otherAxes[0]] = ext[2 * otherAxes[0] + j]; - ptsArray[ptIdx + otherAxes[1]] = ext[2 * otherAxes[1] + i]; - ptIdx += 3; - } - } - model.transform.setMatrix(firstImageData.getIndexToWorld()); - model.transform.transformPoints(ptsArray, ptsArray); - const cellArray = new Uint16Array(8); - cellArray[0] = 3; - cellArray[1] = 0; - cellArray[2] = 1; - cellArray[3] = 3; - cellArray[4] = 3; - cellArray[5] = 0; - cellArray[6] = 3; - cellArray[7] = 2; - const n = slicePlane.getNormal(); - vtkMath.normalize(n); - const normalsData = new Float32Array(12); - for (let i = 0; i < 4; ++i) { - normalsData[3 * i] = n[0]; - normalsData[3 * i + 1] = n[1]; - normalsData[3 * i + 2] = n[2]; - } - if (!model.resliceGeom) { - model.resliceGeom = vtkPolyData.newInstance(); - } - model.resliceGeom.getPoints().setData(ptsArray, 3); - model.resliceGeom.getPolys().setData(cellArray, 1); - const normals = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: normalsData, - name: 'Normals' - }); - model.resliceGeom.getPointData().setNormals(normals); - } - } else { - vtkErrorMacro('Something went wrong.', 'A default slice plane should have been created in the beginning of', 'updateResliceGeometry.'); - } - model.resliceGeomUpdateString = resGeomString; - model.resliceGeom?.modified(); - } - }; - publicAPI.setScalarTextures = scalarTextures => { - model.scalarTextures = [...scalarTextures]; - model._externalOpenGLTexture = true; - }; - publicAPI.delete = chain(() => { - if (model._openGLRenderWindow) { - unregisterGraphicsResources(model._openGLRenderWindow); - } - }, publicAPI.delete); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - VBOBuildTime: {}, - VBOBuildString: null, - haveSeenDepthRequest: false, - lastHaveSeenDepthRequest: false, - lastIndependentComponents: false, - lastNumberOfComponents: 0, - lastMultiTexturePerVolumeEnabled: false, - lastSlabThickness: 0, - lastSlabTrapezoidIntegration: 0, - lastSlabType: -1, - scalarTextures: [], - _scalarTexturesCore: [], - colorTexture: null, - _colorTextureCore: null, - pwfTexture: null, - _pwfTextureCore: null, - _externalOpenGLTexture: false, - resliceGeom: null, - resliceGeomUpdateString: null, - tris: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - vtkReplacementShaderMapper.implementReplaceShaderCoincidentOffset(publicAPI, model, initialValues); - vtkReplacementShaderMapper.implementBuildShadersWithReplacements(publicAPI, model, initialValues); - model.tris = vtkHelper.newInstance(); - model.scalarTextures = []; - model.colorTexture = null; - model.pwfTexture = null; - model.VBOBuildTime = {}; - obj(model.VBOBuildTime); - model.tmpMat4 = mat4.identity(new Float64Array(16)); - - // Implicit plane to polydata related cache: - model.outlineFilter = vtkImageDataOutlineFilter.newInstance(); - model.outlineFilter.setGenerateFaces(true); - model.outlineFilter.setGenerateLines(false); - model.cubePolyData = vtkPolyData.newInstance(); - model.cutter = vtkCutter.newInstance(); - model.lineToSurfaceFilter = vtkClosedPolyLineToSurfaceFilter.newInstance(); - model.transform = vtkTransform.newInstance(); - get(publicAPI, model, ['scalarTextures']); - - // Object methods - vtkOpenGLImageResliceMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkOpenGLImageResliceMapper'); - -// ---------------------------------------------------------------------------- - -var vtkImageResliceMapper = { - newInstance, - extend -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkImageResliceMapper', newInstance); - -export { vtkImageResliceMapper as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ImageSlice.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ImageSlice.js deleted file mode 100644 index 9bac4243..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ImageSlice.js +++ /dev/null @@ -1,150 +0,0 @@ -import { mat4 } from 'gl-matrix'; -import { n as newInstance$1, o as obj, e as setGet } from '../../macros2.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -// ---------------------------------------------------------------------------- -// vtkOpenGLImageSlice methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLImageSlice(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLImageSlice'); - - // Builds myself. - publicAPI.buildPass = prepass => { - if (!model.renderable || !model.renderable.getVisibility()) { - return; - } - if (prepass) { - if (!model.renderable) { - return; - } - model._openGLRenderWindow = publicAPI.getLastAncestorOfType('vtkOpenGLRenderWindow'); - model._openGLRenderer = publicAPI.getFirstAncestorOfType('vtkOpenGLRenderer'); - model.context = model._openGLRenderWindow.getContext(); - publicAPI.prepareNodes(); - publicAPI.addMissingNode(model.renderable.getMapper()); - publicAPI.removeUnusedNodes(); - } - }; - publicAPI.traverseZBufferPass = renderPass => { - if (!model.renderable || !model.renderable.getNestedVisibility() || model._openGLRenderer.getSelector() && !model.renderable.getNestedPickable()) { - return; - } - publicAPI.apply(renderPass, true); - model.children.forEach(child => { - child.traverse(renderPass); - }); - publicAPI.apply(renderPass, false); - }; - publicAPI.traverseOpaqueZBufferPass = renderPass => publicAPI.traverseOpaquePass(renderPass); - - // we draw textures, then mapper, then post pass textures - publicAPI.traverseOpaquePass = renderPass => { - if (!model.renderable || !model.renderable.getNestedVisibility() || !model.renderable.getIsOpaque() || model._openGLRenderer.getSelector() && !model.renderable.getNestedPickable()) { - return; - } - publicAPI.apply(renderPass, true); - model.children.forEach(child => { - child.traverse(renderPass); - }); - publicAPI.apply(renderPass, false); - }; - - // we draw textures, then mapper, then post pass textures - publicAPI.traverseTranslucentPass = renderPass => { - if (!model.renderable || !model.renderable.getNestedVisibility() || model.renderable.getIsOpaque() || model._openGLRenderer.getSelector() && !model.renderable.getNestedPickable()) { - return; - } - publicAPI.apply(renderPass, true); - model.children.forEach(child => { - child.traverse(renderPass); - }); - publicAPI.apply(renderPass, false); - }; - publicAPI.queryPass = (prepass, renderPass) => { - if (prepass) { - if (!model.renderable || !model.renderable.getVisibility()) { - return; - } - if (model.renderable.getIsOpaque()) { - renderPass.incrementOpaqueActorCount(); - } else { - renderPass.incrementTranslucentActorCount(); - } - } - }; - publicAPI.zBufferPass = (prepass, renderPass) => publicAPI.opaquePass(prepass, renderPass); - publicAPI.opaqueZBufferPass = (prepass, renderPass) => publicAPI.opaquePass(prepass, renderPass); - - // Renders myself - publicAPI.opaquePass = (prepass, renderPass) => { - if (prepass) { - model.context.depthMask(true); - } - }; - - // Renders myself - publicAPI.translucentPass = (prepass, renderPass) => { - model.context.depthMask(!prepass); - }; - publicAPI.getKeyMatrices = () => { - // has the actor changed? - if (model.renderable.getMTime() > model.keyMatrixTime.getMTime()) { - mat4.copy(model.keyMatrices.mcwc, model.renderable.getMatrix()); - mat4.transpose(model.keyMatrices.mcwc, model.keyMatrices.mcwc); - model.keyMatrixTime.modified(); - } - return model.keyMatrices; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - context: null, - keyMatrixTime: null, - keyMatrices: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - model.keyMatrixTime = {}; - obj(model.keyMatrixTime, { - mtime: 0 - }); - model.keyMatrices = { - mcwc: mat4.identity(new Float64Array(16)) - }; - - // Build VTK API - setGet(publicAPI, model, ['context']); - - // Object methods - vtkOpenGLImageSlice(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkOpenGLImageSlice'); - -// ---------------------------------------------------------------------------- - -var vtkImageSlice = { - newInstance, - extend -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkImageSlice', newInstance); - -export { vtkImageSlice as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/OrderIndependentTranslucentPass.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/OrderIndependentTranslucentPass.js deleted file mode 100644 index f2f241bd..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/OrderIndependentTranslucentPass.js +++ /dev/null @@ -1,334 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkOpenGLTexture from './Texture.js'; -import vtkOpenGLFramebuffer from './Framebuffer.js'; -import vtkRenderPass from '../SceneGraph/RenderPass.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkHelper from './Helper.js'; -import vtkProperty from '../Core/Property.js'; -import vtkShaderProgram from './ShaderProgram.js'; -import vtkVertexArrayObject from './VertexArrayObject.js'; - -const { - Representation -} = vtkProperty; -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- - -function translucentShaderReplacement(shaders) { - const substituteRes = vtkShaderProgram.substitute(shaders.Fragment, '//VTK::RenderPassFragmentShader::Impl', ` - float weight = gl_FragData[0].a * pow(max(1.1 - gl_FragCoord.z, 0.0), 2.0); - gl_FragData[0] = vec4(gl_FragData[0].rgb*weight, gl_FragData[0].a); - gl_FragData[1].r = weight; - `, false); - shaders.Fragment = substituteRes.result; -} -const oitpFragTemplate = `//VTK::System::Dec - -in vec2 tcoord; - -uniform sampler2D translucentRTexture; -uniform sampler2D translucentRGBATexture; - -// the output of this shader -//VTK::Output::Dec - -void main() -{ - vec4 t1Color = texture(translucentRGBATexture, tcoord); - float t2Color = texture(translucentRTexture, tcoord).r; - gl_FragData[0] = vec4(t1Color.rgb/max(t2Color,0.01), 1.0 - t1Color.a); -} -`; -function vtkOpenGLOrderIndependentTranslucentPass(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLOrderIndependentTranslucentPass'); - - // build vertices etc - publicAPI.createVertexBuffer = () => { - // 4 corner points in clipping space in order (x, y, z) where z is always set to -1 - // prettier-ignore - const ptsArray = new Float32Array([-1, -1, -1, 1, -1, -1, -1, 1, -1, 1, 1, -1]); - - // 4 corresponding corner points in texture space in order (x, y) - const tcoordArray = new Float32Array([0, 0, 1, 0, 0, 1, 1, 1]); - - // a square defined as cell relation ship in order (cell_size, v1, v2, v3, v4) - const cellArray = new Uint16Array([4, 0, 1, 3, 2]); - const points = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: ptsArray - }); - points.setName('points'); - const tcoords = vtkDataArray.newInstance({ - numberOfComponents: 2, - values: tcoordArray - }); - tcoords.setName('tcoords'); - const cells = vtkDataArray.newInstance({ - numberOfComponents: 1, - values: cellArray - }); - model.tris.getCABO().createVBO(cells, 'polys', Representation.SURFACE, { - points, - tcoords, - cellOffset: 0 - }); - model.VBOBuildTime.modified(); - }; - publicAPI.createFramebuffer = viewNode => { - const size = viewNode.getSize(); - const gl = viewNode.getContext(); - model.framebuffer = vtkOpenGLFramebuffer.newInstance(); - model.framebuffer.setOpenGLRenderWindow(viewNode); - model.framebuffer.create(...size); - model.framebuffer.saveCurrentBindingsAndBuffers(); - model.framebuffer.bind(); - model.translucentRGBATexture = vtkOpenGLTexture.newInstance(); - model.translucentRGBATexture.setInternalFormat(gl.RGBA16F); - model.translucentRGBATexture.setFormat(gl.RGBA); - model.translucentRGBATexture.setOpenGLDataType(gl.HALF_FLOAT); - model.translucentRGBATexture.setOpenGLRenderWindow(viewNode); - model.translucentRGBATexture.create2DFromRaw({ - width: size[0], - height: size[1], - numComps: 4, - dataType: 'Float32Array', - data: null - }); - model.translucentRTexture = vtkOpenGLTexture.newInstance(); - model.translucentRTexture.setInternalFormat(gl.R16F); - model.translucentRTexture.setFormat(gl.RED); - model.translucentRTexture.setOpenGLDataType(gl.HALF_FLOAT); - model.translucentRTexture.setOpenGLRenderWindow(viewNode); - model.translucentRTexture.create2DFromRaw({ - width: size[0], - height: size[1], - numComps: 1, - dataType: 'Float32Array', - data: null - }); - model.translucentZTexture = vtkOpenGLTexture.newInstance(); - model.translucentZTexture.setOpenGLRenderWindow(viewNode); - model.translucentZTexture.createDepthFromRaw({ - width: size[0], - height: size[1], - dataType: 'Float32Array', - data: null - }); - model.framebuffer.setColorBuffer(model.translucentRGBATexture, 0); - model.framebuffer.setColorBuffer(model.translucentRTexture, 1); - model.framebuffer.setDepthBuffer(model.translucentZTexture); - }; - publicAPI.createCopyShader = viewNode => { - model.copyShader = viewNode.getShaderCache().readyShaderProgramArray(['//VTK::System::Dec', 'attribute vec4 vertexDC;', 'attribute vec2 tcoordTC;', 'varying vec2 tcoord;', 'void main() { tcoord = tcoordTC; gl_Position = vertexDC; }'].join('\n'), oitpFragTemplate, ''); - }; - publicAPI.createVBO = viewNode => { - const gl = viewNode.getContext(); - model.tris.setOpenGLRenderWindow(viewNode); - publicAPI.createVertexBuffer(); - const program = model.copyShader; - // prepare the vertex and triangle data for the image plane to render to - - model.tris.getCABO().bind(); - if (!model.copyVAO.addAttributeArray(program, model.tris.getCABO(), 'vertexDC', model.tris.getCABO().getVertexOffset(), model.tris.getCABO().getStride(), gl.FLOAT, 3, gl.FALSE)) { - vtkErrorMacro('Error setting vertexDC in copy shader VAO.'); - } - if (!model.copyVAO.addAttributeArray(program, model.tris.getCABO(), 'tcoordTC', model.tris.getCABO().getTCoordOffset(), model.tris.getCABO().getStride(), gl.FLOAT, 2, gl.FALSE)) { - vtkErrorMacro('Error setting vertexDC in copy shader VAO.'); - } - }; - publicAPI.traverse = (viewNode, renNode, forwardPass) => { - if (model.deleted) { - return; - } - const size = viewNode.getSize(); - const gl = viewNode.getContext(); - - // if we lack the webgl2 and half floatsupport just do - // basic alpha blending - model._supported = false; - if (renNode.getSelector() || !gl || !viewNode.getWebgl2() || !gl.getExtension('EXT_color_buffer_half_float') && !gl.getExtension('EXT_color_buffer_float')) { - publicAPI.setCurrentOperation('translucentPass'); - renNode.traverse(publicAPI); - return; - } - model._supported = true; - - // prepare framebuffer // allocate framebuffer if needed and bind it - if (model.framebuffer === null) { - publicAPI.createFramebuffer(viewNode); - } else { - const fbSize = model.framebuffer.getSize(); - if (fbSize === null || fbSize[0] !== size[0] || fbSize[1] !== size[1]) { - model.framebuffer.releaseGraphicsResources(); - model.translucentRGBATexture.releaseGraphicsResources(viewNode); - model.translucentRTexture.releaseGraphicsResources(viewNode); - model.translucentZTexture.releaseGraphicsResources(viewNode); - publicAPI.createFramebuffer(viewNode); - } else { - // store framebuffer bindings to restore them later - model.framebuffer.saveCurrentBindingsAndBuffers(); - model.framebuffer.bind(); - } - } - gl.drawBuffers([gl.COLOR_ATTACHMENT0]); - gl.clearBufferfv(gl.COLOR, 0, [0.0, 0.0, 0.0, 0.0]); - gl.clearBufferfv(gl.DEPTH, 0, [1.0]); - gl.colorMask(false, false, false, false); - - // rerender the opaque pass to set the depth buffer - // TODO remove when webgl1 is deprecated and instead - // have the forward pass use a texture backed zbuffer - if (forwardPass.getOpaqueActorCount() > 0) { - // Don't use zBufferPass as it will also render the depth of translucent actors - forwardPass.setCurrentOperation('opaqueZBufferPass'); - renNode.traverse(forwardPass); - } - gl.colorMask(true, true, true, true); - gl.drawBuffers([gl.COLOR_ATTACHMENT0, gl.COLOR_ATTACHMENT1]); - - // make sure to clear the entire framebuffer as we will - // be blitting the entire thing all of it needs good initial values - gl.viewport(0, 0, size[0], size[1]); - gl.scissor(0, 0, size[0], size[1]); - gl.clearBufferfv(gl.COLOR, 0, [0.0, 0.0, 0.0, 1.0]); - gl.clearBufferfv(gl.COLOR, 1, [0.0, 0.0, 0.0, 0.0]); - gl.enable(gl.DEPTH_TEST); - gl.enable(gl.BLEND); - - // basic gist is we accumulate color into RGB We compute final opacity - // into A We store accumulated opacity into R of the R texture. - gl.blendFuncSeparate(gl.ONE, gl.ONE, gl.ZERO, gl.ONE_MINUS_SRC_ALPHA); - - // now do the translucent rendering - publicAPI.setCurrentOperation('translucentPass'); - renNode.traverse(publicAPI); - gl.drawBuffers([gl.NONE]); - model.framebuffer.restorePreviousBindingsAndBuffers(); - // gl.drawBuffers([gl.BACK]); - - // make sure the copy shader is ready - if (model.copyShader === null) { - publicAPI.createCopyShader(viewNode); - } else { - viewNode.getShaderCache().readyShaderProgram(model.copyShader); - } - - // make sure we have a VAO - if (!model.copyVAO) { - model.copyVAO = vtkVertexArrayObject.newInstance(); - model.copyVAO.setOpenGLRenderWindow(viewNode); - } - model.copyVAO.bind(); - - // make sure the VBO is up to date - if (model.VBOBuildTime.getMTime() < publicAPI.getMTime()) { - publicAPI.createVBO(viewNode); - } - gl.blendFuncSeparate(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA, gl.ONE, gl.ONE_MINUS_SRC_ALPHA); - gl.depthMask(false); - gl.depthFunc(gl.ALWAYS); - gl.viewport(0, 0, size[0], size[1]); - gl.scissor(0, 0, size[0], size[1]); - - // activate texture - model.translucentRGBATexture.activate(); - model.copyShader.setUniformi('translucentRGBATexture', model.translucentRGBATexture.getTextureUnit()); - model.translucentRTexture.activate(); - model.copyShader.setUniformi('translucentRTexture', model.translucentRTexture.getTextureUnit()); - - // render quad - gl.drawArrays(gl.TRIANGLES, 0, model.tris.getCABO().getElementCount()); - gl.depthMask(true); - gl.depthFunc(gl.LEQUAL); - model.translucentRGBATexture.deactivate(); - model.translucentRTexture.deactivate(); - - // restore scissor + viewport from renderer - const ts = renNode.getTiledSizeAndOrigin(); - gl.scissor(ts.lowerLeftU, ts.lowerLeftV, ts.usize, ts.vsize); - gl.viewport(ts.lowerLeftU, ts.lowerLeftV, ts.usize, ts.vsize); - }; - publicAPI.getShaderReplacement = () => { - if (model._supported) { - return translucentShaderReplacement; - } - return null; - }; - publicAPI.releaseGraphicsResources = viewNode => { - if (model.framebuffer) { - model.framebuffer.releaseGraphicsResources(viewNode); - model.framebuffer = null; - } - if (model.translucentRGBATexture) { - model.translucentRGBATexture.releaseGraphicsResources(viewNode); - model.translucentRGBATexture = null; - } - if (model.translucentRTexture) { - model.translucentRTexture.releaseGraphicsResources(viewNode); - model.translucentRTexture = null; - } - if (model.translucentZTexture) { - model.translucentZTexture.releaseGraphicsResources(viewNode); - model.translucentZTexture = null; - } - if (model.copyVAO) { - model.copyVAO.releaseGraphicsResources(viewNode); - model.copyVAO = null; - } - if (model.copyShader) { - model.copyShader.releaseGraphicsResources(viewNode); - model.copyShader = null; - } - if (model.tris) { - model.tris.releaseGraphicsResources(viewNode); - model.tris = null; - } - publicAPI.modified(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - framebuffer: null, - copyShader: null, - tris: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - vtkRenderPass.extend(publicAPI, model, initialValues); - model.VBOBuildTime = {}; - macro.obj(model.VBOBuildTime, { - mtime: 0 - }); - model.tris = vtkHelper.newInstance(); - macro.get(publicAPI, model, ['framebuffer']); - - // Object methods - vtkOpenGLOrderIndependentTranslucentPass(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkOpenGLOrderIndependentTranslucentPass'); - -// ---------------------------------------------------------------------------- - -var vtkOpenGLOrderIndependentTranslucentPass$1 = { - newInstance, - extend -}; - -export { vtkOpenGLOrderIndependentTranslucentPass$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/PixelSpaceCallbackMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/PixelSpaceCallbackMapper.js deleted file mode 100644 index bda2fe59..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/PixelSpaceCallbackMapper.js +++ /dev/null @@ -1,97 +0,0 @@ -import { n as newInstance$1, c as macro } from '../../macros2.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -// import { mat4, vec3 } from 'gl-matrix'; -const { - vtkDebugMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkOpenGLPixelSpaceCallbackMapper methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLPixelSpaceCallbackMapper(publicAPI, model) { - model.classHierarchy.push('vtkOpenGLPixelSpaceCallbackMapper'); - publicAPI.opaquePass = (prepass, renderPass) => { - model._openGLRenderer = publicAPI.getFirstAncestorOfType('vtkOpenGLRenderer'); - model._openGLRenderWindow = model._openGLRenderer.getLastAncestorOfType('vtkOpenGLRenderWindow'); - const aspectRatio = model._openGLRenderer.getAspectRatio(); - const camera = model._openGLRenderer ? model._openGLRenderer.getRenderable().getActiveCamera() : null; - const tsize = model._openGLRenderer.getTiledSizeAndOrigin(); - let texels = null; - if (model.renderable.getUseZValues()) { - const zbt = renderPass.getZBufferTexture(); - const width = Math.floor(zbt.getWidth()); - const height = Math.floor(zbt.getHeight()); - const gl = model._openGLRenderWindow.getContext(); - zbt.bind(); - - // Here we need to use vtkFramebuffer to save current settings (bindings/buffers) - const fb = renderPass.getFramebuffer(); - if (!fb) { - vtkDebugMacro('No framebuffer to save/restore'); - } else { - // save framebuffer settings - fb.saveCurrentBindingsAndBuffers(); - } - const framebuffer = gl.createFramebuffer(); - gl.bindFramebuffer(gl.FRAMEBUFFER, framebuffer); - gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, zbt.getHandle(), 0); - if (gl.checkFramebufferStatus(gl.FRAMEBUFFER) === gl.FRAMEBUFFER_COMPLETE) { - texels = new Uint8Array(width * height * 4); - gl.viewport(0, 0, width, height); - gl.readPixels(0, 0, width, height, gl.RGBA, gl.UNSIGNED_BYTE, texels); - } - - // Now we need to restore framebuffer bindings/buffers - if (fb) { - fb.restorePreviousBindingsAndBuffers(); - } - gl.deleteFramebuffer(framebuffer); - } - model.renderable.invokeCallback(model.renderable.getInputData(), camera, aspectRatio, tsize, texels); - }; - publicAPI.queryPass = (prepass, renderPass) => { - if (prepass) { - if (model.renderable.getUseZValues()) { - renderPass.requestDepth(); - } - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - - // Object methods - vtkOpenGLPixelSpaceCallbackMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkOpenGLPixelSpaceCallbackMapper'); - -// ---------------------------------------------------------------------------- - -var vtkPixelSpaceCallbackMapper = { - newInstance, - extend -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkPixelSpaceCallbackMapper', newInstance); - -export { vtkPixelSpaceCallbackMapper as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/PolyDataMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/PolyDataMapper.js deleted file mode 100644 index 05a8bee7..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/PolyDataMapper.js +++ /dev/null @@ -1,1194 +0,0 @@ -import { mat3, mat4, vec3 } from 'gl-matrix'; -import { n as newInstance$1, e as setGet, o as obj, c as macro } from '../../macros2.js'; -import vtkHelper from './Helper.js'; -import vtkMapper from '../Core/Mapper.js'; -import { l as normalize } from '../../Common/Core/Math/index.js'; -import vtkOpenGLTexture from './Texture.js'; -import vtkProp from '../Core/Prop.js'; -import vtkProperty from '../Core/Property.js'; -import vtkShaderProgram from './ShaderProgram.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { v as vtkPolyDataVS } from './glsl/vtkPolyDataVS.glsl.js'; -import { v as vtkPolyDataFS } from './glsl/vtkPolyDataFS.glsl.js'; -import vtkReplacementShaderMapper from './ReplacementShaderMapper.js'; -import { registerOverride } from './ViewNodeFactory.js'; -import { PassTypes } from './HardwareSelector/Constants.js'; -import vtkDataSet from '../../Common/DataModel/DataSet.js'; -import '../Core/Mapper/CoincidentTopologyHelper.js'; -import { Resolve } from '../Core/Mapper/Static.js'; - -const { - FieldAssociations -} = vtkDataSet; - -/* eslint-disable no-lonely-if */ - -const { - primTypes -} = vtkHelper; -const { - Representation, - Shading -} = vtkProperty; -const { - ScalarMode -} = vtkMapper; -const { - Filter, - Wrap -} = vtkOpenGLTexture; -const { - vtkErrorMacro -} = macro; -const StartEvent = { - type: 'StartEvent' -}; -const EndEvent = { - type: 'EndEvent' -}; -const { - CoordinateSystem -} = vtkProp; - -// ---------------------------------------------------------------------------- -// vtkOpenGLPolyDataMapper methods -// ---------------------------------------------------------------------------- - -function getPickState(renderer) { - const selector = renderer.getSelector(); - if (selector) { - return selector.getCurrentPass(); - } - return PassTypes.MIN_KNOWN_PASS - 1; -} -function vtkOpenGLPolyDataMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLPolyDataMapper'); - publicAPI.buildPass = prepass => { - if (prepass) { - model.currentRenderPass = null; - model.openGLActor = publicAPI.getFirstAncestorOfType('vtkOpenGLActor'); - model._openGLRenderer = model.openGLActor.getFirstAncestorOfType('vtkOpenGLRenderer'); - model._openGLRenderWindow = model._openGLRenderer.getLastAncestorOfType('vtkOpenGLRenderWindow'); - model.openGLCamera = model._openGLRenderer.getViewNodeFor(model._openGLRenderer.getRenderable().getActiveCamera()); - } - }; - - // Renders myself - publicAPI.translucentPass = (prepass, renderPass) => { - if (prepass) { - model.currentRenderPass = renderPass; - publicAPI.render(); - } - }; - publicAPI.zBufferPass = prepass => { - if (prepass) { - model.haveSeenDepthRequest = true; - model.renderDepth = true; - publicAPI.render(); - model.renderDepth = false; - } - }; - publicAPI.opaqueZBufferPass = prepass => publicAPI.zBufferPass(prepass); - publicAPI.opaquePass = prepass => { - if (prepass) { - publicAPI.render(); - } - }; - publicAPI.render = () => { - const ctx = model._openGLRenderWindow.getContext(); - if (model.context !== ctx) { - model.context = ctx; - for (let i = primTypes.Start; i < primTypes.End; i++) { - model.primitives[i].setOpenGLRenderWindow(model._openGLRenderWindow); - } - } - const actor = model.openGLActor.getRenderable(); - const ren = model._openGLRenderer.getRenderable(); - publicAPI.renderPiece(ren, actor); - }; - publicAPI.getShaderTemplate = (shaders, ren, actor) => { - shaders.Vertex = vtkPolyDataVS; - shaders.Fragment = vtkPolyDataFS; - shaders.Geometry = ''; - }; - publicAPI.replaceShaderColor = (shaders, ren, actor) => { - let VSSource = shaders.Vertex; - let GSSource = shaders.Geometry; - let FSSource = shaders.Fragment; - const lastLightComplexity = model.lastBoundBO.getReferenceByName('lastLightComplexity'); - - // create the material/color property declarations, and VS implementation - // these are always defined - let colorDec = ['uniform float ambient;', 'uniform float diffuse;', 'uniform float specular;', 'uniform float opacityUniform; // the fragment opacity', 'uniform vec3 ambientColorUniform;', 'uniform vec3 diffuseColorUniform;']; - // add more for specular - if (lastLightComplexity) { - colorDec = colorDec.concat(['uniform vec3 specularColorUniform;', 'uniform float specularPowerUniform;']); - } - - // now handle the more complex fragment shader implementation - // the following are always defined variables. We start - // by assigning a default value from the uniform - let colorImpl = ['vec3 ambientColor;', ' vec3 diffuseColor;', ' float opacity;']; - if (lastLightComplexity) { - colorImpl = colorImpl.concat([' vec3 specularColor;', ' float specularPower;']); - } - colorImpl = colorImpl.concat([' ambientColor = ambientColorUniform;', ' diffuseColor = diffuseColorUniform;', ' opacity = opacityUniform;']); - if (lastLightComplexity) { - colorImpl = colorImpl.concat([' specularColor = specularColorUniform;', ' specularPower = specularPowerUniform;']); - } - - // add scalar vertex coloring - if (model.lastBoundBO.getCABO().getColorComponents() !== 0 && !model.drawingEdges) { - colorDec = colorDec.concat(['varying vec4 vertexColorVSOutput;']); - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Color::Dec', ['attribute vec4 scalarColor;', 'varying vec4 vertexColorVSOutput;']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Color::Impl', ['vertexColorVSOutput = scalarColor;']).result; - GSSource = vtkShaderProgram.substitute(GSSource, '//VTK::Color::Dec', ['in vec4 vertexColorVSOutput[];', 'out vec4 vertexColorGSOutput;']).result; - GSSource = vtkShaderProgram.substitute(GSSource, '//VTK::Color::Impl', ['vertexColorGSOutput = vertexColorVSOutput[i];']).result; - } - if (model.lastBoundBO.getCABO().getColorComponents() !== 0 && !model.drawingEdges) { - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Color::Impl', colorImpl.concat([' diffuseColor = vertexColorVSOutput.rgb;', ' ambientColor = vertexColorVSOutput.rgb;', ' opacity = opacity*vertexColorVSOutput.a;'])).result; - } else { - if ((model.renderable.getAreScalarsMappedFromCells() || model.renderable.getInterpolateScalarsBeforeMapping()) && model.renderable.getColorCoordinates() && !model.drawingEdges) { - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Color::Impl', colorImpl.concat([' vec4 texColor = texture2D(texture1, tcoordVCVSOutput.st);', ' diffuseColor = texColor.rgb;', ' ambientColor = texColor.rgb;', ' opacity = opacity*texColor.a;'])).result; - } else { - if (actor.getBackfaceProperty() && !model.drawingEdges) { - colorDec = colorDec.concat(['uniform float opacityUniformBF; // the fragment opacity', 'uniform float ambientIntensityBF; // the material ambient', 'uniform float diffuseIntensityBF; // the material diffuse', 'uniform vec3 ambientColorUniformBF; // ambient material color', 'uniform vec3 diffuseColorUniformBF; // diffuse material color']); - if (lastLightComplexity) { - colorDec = colorDec.concat(['uniform float specularIntensityBF; // the material specular intensity', 'uniform vec3 specularColorUniformBF; // intensity weighted color', 'uniform float specularPowerUniformBF;']); - colorImpl = colorImpl.concat(['if (gl_FrontFacing == false) {', ' ambientColor = ambientIntensityBF * ambientColorUniformBF;', ' diffuseColor = diffuseIntensityBF * diffuseColorUniformBF;', ' specularColor = specularIntensityBF * specularColorUniformBF;', ' specularPower = specularPowerUniformBF;', ' opacity = opacityUniformBF; }']); - } else { - colorImpl = colorImpl.concat(['if (gl_FrontFacing == false) {', ' ambientColor = ambientIntensityBF * ambientColorUniformBF;', ' diffuseColor = diffuseIntensityBF * diffuseColorUniformBF;', ' opacity = opacityUniformBF; }']); - } - } - if (model.haveCellScalars && !model.drawingEdges) { - colorDec = colorDec.concat(['uniform samplerBuffer texture1;']); - } - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Color::Impl', colorImpl).result; - } - } - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Color::Dec', colorDec).result; - shaders.Vertex = VSSource; - shaders.Geometry = GSSource; - shaders.Fragment = FSSource; - }; - publicAPI.replaceShaderLight = (shaders, ren, actor) => { - let FSSource = shaders.Fragment; - - // check for shadow maps - const shadowFactor = ''; - const lastLightComplexity = model.lastBoundBO.getReferenceByName('lastLightComplexity'); - const lastLightCount = model.lastBoundBO.getReferenceByName('lastLightCount'); - let sstring = []; - switch (lastLightComplexity) { - case 0: - // no lighting or RENDER_VALUES - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Light::Impl', [' gl_FragData[0] = vec4(ambientColor * ambient + diffuseColor * diffuse, opacity);', ' //VTK::Light::Impl'], false).result; - break; - case 1: - // headlight - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Light::Impl', [' float df = max(0.0, normalVCVSOutput.z);', ' float sf = pow(df, specularPower);', ' vec3 diffuseL = df * diffuseColor;', ' vec3 specularL = sf * specularColor;', ' gl_FragData[0] = vec4(ambientColor * ambient + diffuseL * diffuse + specularL * specular, opacity);', ' //VTK::Light::Impl'], false).result; - break; - case 2: - // light kit - for (let lc = 0; lc < lastLightCount; ++lc) { - sstring = sstring.concat([`uniform vec3 lightColor${lc};`, `uniform vec3 lightDirectionVC${lc}; // normalized`, `uniform vec3 lightHalfAngleVC${lc}; // normalized`]); - } - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Light::Dec', sstring).result; - sstring = ['vec3 diffuseL = vec3(0,0,0);', ' vec3 specularL = vec3(0,0,0);', ' float df;']; - for (let lc = 0; lc < lastLightCount; ++lc) { - sstring = sstring.concat([` df = max(0.0, dot(normalVCVSOutput, -lightDirectionVC${lc}));`, ` diffuseL += ((df${shadowFactor}) * lightColor${lc});`, ` if (dot(normalVCVSOutput, lightDirectionVC${lc}) < 0.0)`, ' {', ` float sf = sign(df)*pow(max(1e-5, - dot(reflect(lightDirectionVC${lc},normalVCVSOutput), - normalize(-vertexVC.xyz))), - specularPower);`, ` specularL += (sf${shadowFactor} * lightColor${lc});`, ' }']); - } - sstring = sstring.concat([' diffuseL = diffuseL * diffuseColor;', ' specularL = specularL * specularColor;', ' gl_FragData[0] = vec4(ambientColor * ambient + diffuseL * diffuse + specularL * specular, opacity);', ' //VTK::Light::Impl']); - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Light::Impl', sstring, false).result; - break; - case 3: - // positional - for (let lc = 0; lc < lastLightCount; ++lc) { - sstring = sstring.concat([`uniform vec3 lightColor${lc};`, `uniform vec3 lightDirectionVC${lc}; // normalized`, `uniform vec3 lightHalfAngleVC${lc}; // normalized`, `uniform vec3 lightPositionVC${lc};`, `uniform vec3 lightAttenuation${lc};`, `uniform float lightConeAngle${lc};`, `uniform float lightExponent${lc};`, `uniform int lightPositional${lc};`]); - } - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Light::Dec', sstring).result; - sstring = ['vec3 diffuseL = vec3(0,0,0);', ' vec3 specularL = vec3(0,0,0);', ' vec3 vertLightDirectionVC;', ' float attenuation;', ' float df;']; - for (let lc = 0; lc < lastLightCount; ++lc) { - sstring = sstring.concat([' attenuation = 1.0;', ` if (lightPositional${lc} == 0)`, ' {', ` vertLightDirectionVC = lightDirectionVC${lc};`, ' }', ' else', ' {', ` vertLightDirectionVC = vertexVC.xyz - lightPositionVC${lc};`, ' float distanceVC = length(vertLightDirectionVC);', ' vertLightDirectionVC = normalize(vertLightDirectionVC);', ' attenuation = 1.0 /', ` (lightAttenuation${lc}.x`, ` + lightAttenuation${lc}.y * distanceVC`, ` + lightAttenuation${lc}.z * distanceVC * distanceVC);`, ' // per OpenGL standard cone angle is 90 or less for a spot light', ` if (lightConeAngle${lc} <= 90.0)`, ' {', ` float coneDot = dot(vertLightDirectionVC, lightDirectionVC${lc});`, ' // if inside the cone', ` if (coneDot >= cos(radians(lightConeAngle${lc})))`, ' {', ` attenuation = attenuation * pow(coneDot, lightExponent${lc});`, ' }', ' else', ' {', ' attenuation = 0.0;', ' }', ' }', ' }', ' df = max(0.0, attenuation*dot(normalVCVSOutput, -vertLightDirectionVC));', ` diffuseL += ((df${shadowFactor}) * lightColor${lc});`, ' if (dot(normalVCVSOutput, vertLightDirectionVC) < 0.0)', ' {', ` float sf = sign(df)*attenuation*pow(max(1e-5, - dot(reflect(lightDirectionVC${lc}, - normalVCVSOutput), - normalize(-vertexVC.xyz))), - specularPower);`, ` specularL += ((sf${shadowFactor}) * lightColor${lc});`, ' }']); - } - sstring = sstring.concat([' diffuseL = diffuseL * diffuseColor;', ' specularL = specularL * specularColor;', ' gl_FragData[0] = vec4(ambientColor * ambient + diffuseL * diffuse + specularL * specular, opacity);', ' //VTK::Light::Impl']); - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Light::Impl', sstring, false).result; - break; - default: - vtkErrorMacro('bad light complexity'); - } - shaders.Fragment = FSSource; - }; - publicAPI.replaceShaderNormal = (shaders, ren, actor) => { - const lastLightComplexity = model.lastBoundBO.getReferenceByName('lastLightComplexity'); - if (lastLightComplexity > 0) { - let VSSource = shaders.Vertex; - let GSSource = shaders.Geometry; - let FSSource = shaders.Fragment; - if (model.lastBoundBO.getCABO().getNormalOffset()) { - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Normal::Dec', ['attribute vec3 normalMC;', 'uniform mat3 normalMatrix;', 'varying vec3 normalVCVSOutput;']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Normal::Impl', ['normalVCVSOutput = normalMatrix * normalMC;']).result; - GSSource = vtkShaderProgram.substitute(GSSource, '//VTK::Normal::Dec', ['in vec3 normalVCVSOutput[];', 'out vec3 normalVCGSOutput;']).result; - GSSource = vtkShaderProgram.substitute(GSSource, '//VTK::Normal::Impl', ['normalVCGSOutput = normalVCVSOutput[i];']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Normal::Dec', ['varying vec3 normalVCVSOutput;']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Normal::Impl', ['vec3 normalVCVSOutput = normalize(normalVCVSOutput);', - // if (!gl_FrontFacing) does not work in intel hd4000 mac - // if (int(gl_FrontFacing) == 0) does not work on mesa - ' if (gl_FrontFacing == false) { normalVCVSOutput = -normalVCVSOutput; }']).result; - } else { - if (model.haveCellNormals) { - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Normal::Dec', ['uniform mat3 normalMatrix;', 'uniform samplerBuffer textureN;']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Normal::Impl', ['vec3 normalVCVSOutput = normalize(normalMatrix *', ' texelFetchBuffer(textureN, gl_PrimitiveID + PrimitiveIDOffset).xyz);', ' if (gl_FrontFacing == false) { normalVCVSOutput = -normalVCVSOutput; }']).result; - } else { - if (model.lastBoundBO.getOpenGLMode(actor.getProperty().getRepresentation()) === model.context.LINES) { - // generate a normal for lines, it will be perpendicular to the line - // and maximally aligned with the camera view direction - // no clue if this is the best way to do this. - // the code below has been optimized a bit so what follows is - // an explanation of the basic approach. Compute the gradient of the line - // with respect to x and y, the the larger of the two - // cross that with the camera view direction. That gives a vector - // orthogonal to the camera view and the line. Note that the line and the camera - // view are probably not orthogonal. Which is why when we cross result that with - // the line gradient again we get a reasonable normal. It will be othogonal to - // the line (which is a plane but maximally aligned with the camera view. - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::UniformFlow::Impl', [' vec3 fdx = dFdx(vertexVC.xyz);', ' vec3 fdy = dFdy(vertexVC.xyz);', ' //VTK::UniformFlow::Impl'] // For further replacements - ).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Normal::Impl', ['vec3 normalVCVSOutput;', ' if (abs(fdx.x) > 0.0)', ' { fdx = normalize(fdx); normalVCVSOutput = normalize(cross(vec3(fdx.y, -fdx.x, 0.0), fdx)); }', ' else { fdy = normalize(fdy); normalVCVSOutput = normalize(cross(vec3(fdy.y, -fdy.x, 0.0), fdy));}']).result; - } else { - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Normal::Dec', ['uniform int cameraParallel;']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::UniformFlow::Impl', [ - // ' vec3 fdx = vec3(dFdx(vertexVC.x),dFdx(vertexVC.y),dFdx(vertexVC.z));', - // ' vec3 fdy = vec3(dFdy(vertexVC.x),dFdy(vertexVC.y),dFdy(vertexVC.z));', - ' vec3 fdx = dFdx(vertexVC.xyz);', ' vec3 fdy = dFdy(vertexVC.xyz);', ' //VTK::UniformFlow::Impl'] // For further replacements - ).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Normal::Impl', [' fdx = normalize(fdx);', ' fdy = normalize(fdy);', ' vec3 normalVCVSOutput = normalize(cross(fdx,fdy));', - // the code below is faster, but does not work on some devices - // 'vec3 normalVC = normalize(cross(dFdx(vertexVC.xyz), dFdy(vertexVC.xyz)));', - ' if (cameraParallel == 1 && normalVCVSOutput.z < 0.0) { normalVCVSOutput = -1.0*normalVCVSOutput; }', ' if (cameraParallel == 0 && dot(normalVCVSOutput,vertexVC.xyz) > 0.0) { normalVCVSOutput = -1.0*normalVCVSOutput; }']).result; - } - } - } - shaders.Vertex = VSSource; - shaders.Geometry = GSSource; - shaders.Fragment = FSSource; - } - }; - publicAPI.replaceShaderPositionVC = (shaders, ren, actor) => { - // replace common shader code - model.lastBoundBO.replaceShaderPositionVC(shaders, ren, actor); - let VSSource = shaders.Vertex; - let GSSource = shaders.Geometry; - let FSSource = shaders.Fragment; - - // do we need the vertex in the shader in View Coordinates - const lastLightComplexity = model.lastBoundBO.getReferenceByName('lastLightComplexity'); - if (lastLightComplexity > 0) { - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::PositionVC::Dec', ['varying vec4 vertexVCVSOutput;']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::PositionVC::Impl', ['vertexVCVSOutput = MCVCMatrix * vertexMC;', ' gl_Position = MCPCMatrix * vertexMC;']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Camera::Dec', ['uniform mat4 MCPCMatrix;', 'uniform mat4 MCVCMatrix;']).result; - GSSource = vtkShaderProgram.substitute(GSSource, '//VTK::PositionVC::Dec', ['in vec4 vertexVCVSOutput[];', 'out vec4 vertexVCGSOutput;']).result; - GSSource = vtkShaderProgram.substitute(GSSource, '//VTK::PositionVC::Impl', ['vertexVCGSOutput = vertexVCVSOutput[i];']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::PositionVC::Dec', ['varying vec4 vertexVCVSOutput;']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::PositionVC::Impl', ['vec4 vertexVC = vertexVCVSOutput;']).result; - } else { - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Camera::Dec', ['uniform mat4 MCPCMatrix;']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::PositionVC::Impl', [' gl_Position = MCPCMatrix * vertexMC;']).result; - } - shaders.Vertex = VSSource; - shaders.Geometry = GSSource; - shaders.Fragment = FSSource; - }; - publicAPI.replaceShaderTCoord = (shaders, ren, actor) => { - if (model.lastBoundBO.getCABO().getTCoordOffset()) { - let VSSource = shaders.Vertex; - let GSSource = shaders.Geometry; - let FSSource = shaders.Fragment; - if (model.drawingEdges) { - return; - } - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::TCoord::Impl', 'tcoordVCVSOutput = tcoordMC;').result; - - // we only handle the first texture by default - // additional textures are activated and we set the uniform - // for the texture unit they are assigned to, but you have to - // add in the shader code to do something with them - const tus = model.openGLActor.getActiveTextures(); - let tNumComp = 2; - let tcdim = 2; - if (tus && tus.length > 0) { - tNumComp = tus[0].getComponents(); - if (tus[0].getTarget() === model.context.TEXTURE_CUBE_MAP) { - tcdim = 3; - } - } - if (model.renderable.getColorTextureMap()) { - tNumComp = model.renderable.getColorTextureMap().getPointData().getScalars().getNumberOfComponents(); - tcdim = 2; - } - if (tcdim === 2) { - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::TCoord::Dec', 'attribute vec2 tcoordMC; varying vec2 tcoordVCVSOutput;').result; - GSSource = vtkShaderProgram.substitute(GSSource, '//VTK::TCoord::Dec', ['in vec2 tcoordVCVSOutput[];', 'out vec2 tcoordVCGSOutput;']).result; - GSSource = vtkShaderProgram.substitute(GSSource, '//VTK::TCoord::Impl', 'tcoordVCGSOutput = tcoordVCVSOutput[i];').result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Dec', ['varying vec2 tcoordVCVSOutput;', 'uniform sampler2D texture1;']).result; - if (tus && tus.length >= 1) { - switch (tNumComp) { - case 1: - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Impl', [' vec4 tcolor = texture2D(texture1, tcoordVCVSOutput);', ' ambientColor = ambientColor*tcolor.r;', ' diffuseColor = diffuseColor*tcolor.r;']).result; - break; - case 2: - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Impl', [' vec4 tcolor = texture2D(texture1, tcoordVCVSOutput);', ' ambientColor = ambientColor*tcolor.r;', ' diffuseColor = diffuseColor*tcolor.r;', ' opacity = opacity * tcolor.g;']).result; - break; - default: - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Impl', [' vec4 tcolor = texture2D(texture1, tcoordVCVSOutput);', ' ambientColor = ambientColor*tcolor.rgb;', ' diffuseColor = diffuseColor*tcolor.rgb;', ' opacity = opacity * tcolor.a;']).result; - } - } - } else { - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::TCoord::Dec', 'attribute vec3 tcoordMC; varying vec3 tcoordVCVSOutput;').result; - GSSource = vtkShaderProgram.substitute(GSSource, '//VTK::TCoord::Dec', ['in vec3 tcoordVCVSOutput[];', 'out vec3 tcoordVCGSOutput;']).result; - GSSource = vtkShaderProgram.substitute(GSSource, '//VTK::TCoord::Impl', 'tcoordVCGSOutput = tcoordVCVSOutput[i];').result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Dec', ['varying vec3 tcoordVCVSOutput;', 'uniform samplerCube texture1;']).result; - switch (tNumComp) { - case 1: - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Impl', [' vec4 tcolor = textureCube(texture1, tcoordVCVSOutput);', ' ambientColor = ambientColor*tcolor.r;', ' diffuseColor = diffuseColor*tcolor.r;']).result; - break; - case 2: - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Impl', [' vec4 tcolor = textureCube(texture1, tcoordVCVSOutput);', ' ambientColor = ambientColor*tcolor.r;', ' diffuseColor = diffuseColor*tcolor.r;', ' opacity = opacity * tcolor.g;']).result; - break; - default: - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Impl', [' vec4 tcolor = textureCube(texture1, tcoordVCVSOutput);', ' ambientColor = ambientColor*tcolor.rgb;', ' diffuseColor = diffuseColor*tcolor.rgb;', ' opacity = opacity * tcolor.a;']).result; - } - } - shaders.Vertex = VSSource; - shaders.Geometry = GSSource; - shaders.Fragment = FSSource; - } - }; - publicAPI.replaceShaderClip = (shaders, ren, actor) => { - let VSSource = shaders.Vertex; - let FSSource = shaders.Fragment; - if (model.renderable.getNumberOfClippingPlanes()) { - const numClipPlanes = model.renderable.getNumberOfClippingPlanes(); - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Clip::Dec', ['uniform int numClipPlanes;', `uniform vec4 clipPlanes[${numClipPlanes}];`, `varying float clipDistancesVSOutput[${numClipPlanes}];`]).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Clip::Impl', [`for (int planeNum = 0; planeNum < ${numClipPlanes}; planeNum++)`, ' {', ' if (planeNum >= numClipPlanes)', ' {', ' break;', ' }', ' clipDistancesVSOutput[planeNum] = dot(clipPlanes[planeNum], vertexMC);', ' }']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Clip::Dec', ['uniform int numClipPlanes;', `varying float clipDistancesVSOutput[${numClipPlanes}];`]).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Clip::Impl', [`for (int planeNum = 0; planeNum < ${numClipPlanes}; planeNum++)`, ' {', ' if (planeNum >= numClipPlanes)', ' {', ' break;', ' }', ' if (clipDistancesVSOutput[planeNum] < 0.0) discard;', ' }']).result; - } - shaders.Vertex = VSSource; - shaders.Fragment = FSSource; - }; - publicAPI.getCoincidentParameters = (ren, actor) => { - // 1. ResolveCoincidentTopology is On and non zero for this primitive - // type - let cp = { - factor: 0.0, - offset: 0.0 - }; - const prop = actor.getProperty(); - if ( - // backwards compat with code that (errorneously) set this to boolean - // eslint-disable-next-line eqeqeq - model.renderable.getResolveCoincidentTopology() == Resolve.PolygonOffset || prop.getEdgeVisibility() && prop.getRepresentation() === Representation.SURFACE) { - const primType = model.lastBoundBO.getPrimitiveType(); - if (primType === primTypes.Points || prop.getRepresentation() === Representation.POINTS) { - cp = model.renderable.getCoincidentTopologyPointOffsetParameter(); - } else if (primType === primTypes.Lines || prop.getRepresentation() === Representation.WIREFRAME) { - cp = model.renderable.getCoincidentTopologyLineOffsetParameters(); - } else if (primType === primTypes.Tris || primType === primTypes.TriStrips) { - cp = model.renderable.getCoincidentTopologyPolygonOffsetParameters(); - } - if (primType === primTypes.TrisEdges || primType === primTypes.TriStripsEdges) { - cp = model.renderable.getCoincidentTopologyPolygonOffsetParameters(); - cp.factor /= 2.0; - cp.offset /= 2.0; - } - } - - // hardware picking always offset due to saved zbuffer - // This gets you above the saved surface depth buffer. - const selector = model._openGLRenderer.getSelector(); - if (selector && selector.getFieldAssociation() === FieldAssociations.FIELD_ASSOCIATION_POINTS) { - cp.offset -= 2.0; - } - return cp; - }; - publicAPI.replaceShaderPicking = (shaders, ren, actor) => { - let FSSource = shaders.Fragment; - let VSSource = shaders.Vertex; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Picking::Dec', ['uniform int picking;', '//VTK::Picking::Dec']).result; - if (!model._openGLRenderer.getSelector()) { - return; - } - if (model.lastSelectionState === PassTypes.ID_LOW24 || model.lastSelectionState === PassTypes.ID_HIGH24) { - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Picking::Dec', ['flat out int vertexIDVSOutput;\n', 'uniform int VertexIDOffset;\n']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Picking::Impl', ' vertexIDVSOutput = gl_VertexID + VertexIDOffset;\n').result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Picking::Dec', 'flat in int vertexIDVSOutput;\n').result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Picking::Impl', [' int idx = vertexIDVSOutput;', '//VTK::Picking::Impl']).result; - } - switch (model.lastSelectionState) { - case PassTypes.ID_LOW24: - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Picking::Impl', ' gl_FragData[0] = vec4(float(idx%256)/255.0, float((idx/256)%256)/255.0, float((idx/65536)%256)/255.0, 1.0);').result; - break; - case PassTypes.ID_HIGH24: - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Picking::Impl', ' gl_FragData[0] = vec4(float((idx/16777216)%256)/255.0, 0.0, 0.0, 1.0);').result; - break; - default: - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Picking::Dec', 'uniform vec3 mapperIndex;').result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Picking::Impl', ' gl_FragData[0] = picking != 0 ? vec4(mapperIndex,1.0) : gl_FragData[0];').result; - } - shaders.Fragment = FSSource; - shaders.Vertex = VSSource; - }; - publicAPI.replaceShaderValues = (shaders, ren, actor) => { - publicAPI.replaceShaderColor(shaders, ren, actor); - publicAPI.replaceShaderNormal(shaders, ren, actor); - publicAPI.replaceShaderLight(shaders, ren, actor); - publicAPI.replaceShaderTCoord(shaders, ren, actor); - publicAPI.replaceShaderPicking(shaders, ren, actor); - publicAPI.replaceShaderClip(shaders, ren, actor); - publicAPI.replaceShaderCoincidentOffset(shaders, ren, actor); - publicAPI.replaceShaderPositionVC(shaders, ren, actor); - if (model.haveSeenDepthRequest) { - let FSSource = shaders.Fragment; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::ZBuffer::Dec', 'uniform int depthRequest;').result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::ZBuffer::Impl', ['if (depthRequest == 1) {', 'float iz = floor(gl_FragCoord.z*65535.0 + 0.1);', 'float rf = floor(iz/256.0)/255.0;', 'float gf = mod(iz,256.0)/255.0;', 'gl_FragData[0] = vec4(rf, gf, 0.0, 1.0); }']).result; - shaders.Fragment = FSSource; - } - }; - publicAPI.getNeedToRebuildShaders = (cellBO, ren, actor) => { - let lightComplexity = 0; - let numberOfLights = 0; - const primType = cellBO.getPrimitiveType(); - const poly = model.currentInput; - - // different algo from C++ as of 5/2019 - let needLighting = false; - const pointNormals = poly.getPointData().getNormals(); - const cellNormals = poly.getCellData().getNormals(); - const flat = actor.getProperty().getInterpolation() === Shading.FLAT; - const representation = actor.getProperty().getRepresentation(); - const mode = cellBO.getOpenGLMode(representation, primType); - // 1) all surfaces need lighting - if (mode === model.context.TRIANGLES) { - needLighting = true; - // 2) all cell normals without point normals need lighting - } else if (cellNormals && !pointNormals) { - needLighting = true; - // 3) Phong + pointNormals need lighting - } else if (!flat && pointNormals) { - needLighting = true; - // 4) Phong Lines need lighting - } else if (!flat && mode === model.context.LINES) { - needLighting = true; - } - // 5) everything else is unlit - - // do we need lighting? - if (actor.getProperty().getLighting() && needLighting) { - // consider the lighting complexity to determine which case applies - // simple headlight, Light Kit, the whole feature set of VTK - lightComplexity = 0; - const lights = ren.getLightsByReference(); - for (let index = 0; index < lights.length; ++index) { - const light = lights[index]; - const status = light.getSwitch(); - if (status > 0) { - numberOfLights++; - if (lightComplexity === 0) { - lightComplexity = 1; - } - } - if (lightComplexity === 1 && (numberOfLights > 1 || light.getIntensity() !== 1.0 || !light.lightTypeIsHeadLight())) { - lightComplexity = 2; - } - if (lightComplexity < 3 && light.getPositional()) { - lightComplexity = 3; - } - } - } - let needRebuild = false; - const lastLightComplexity = model.lastBoundBO.getReferenceByName('lastLightComplexity'); - const lastLightCount = model.lastBoundBO.getReferenceByName('lastLightCount'); - if (lastLightComplexity !== lightComplexity || lastLightCount !== numberOfLights) { - model.lastBoundBO.set({ - lastLightComplexity: lightComplexity - }, true); - model.lastBoundBO.set({ - lastLightCount: numberOfLights - }, true); - needRebuild = true; - } - - // has the render pass shader replacement changed? Two options - if (!model.currentRenderPass && model.lastRenderPassShaderReplacement || model.currentRenderPass && model.currentRenderPass.getShaderReplacement() !== model.lastRenderPassShaderReplacement) { - needRebuild = true; - } - - // has something changed that would require us to recreate the shader? - // candidates are - // property modified (representation interpolation and lighting) - // input modified - // light complexity changed - // render pass shader replacement changed - if (model.lastHaveSeenDepthRequest !== model.haveSeenDepthRequest || cellBO.getShaderSourceTime().getMTime() < model.renderable.getMTime() || cellBO.getShaderSourceTime().getMTime() < model.currentInput.getMTime() || cellBO.getShaderSourceTime().getMTime() < model.selectionStateChanged.getMTime() || needRebuild) { - model.lastHaveSeenDepthRequest = model.haveSeenDepthRequest; - return true; - } - return false; - }; - publicAPI.invokeShaderCallbacks = (cellBO, ren, actor) => { - const listCallbacks = model.renderable.getViewSpecificProperties().ShadersCallbacks; - if (listCallbacks) { - listCallbacks.forEach(object => { - object.callback(object.userData, cellBO, ren, actor); - }); - } - }; - publicAPI.setMapperShaderParameters = (cellBO, ren, actor) => { - // Now to update the VAO too, if necessary. - if (cellBO.getProgram().isUniformUsed('PrimitiveIDOffset')) { - cellBO.getProgram().setUniformi('PrimitiveIDOffset', model.primitiveIDOffset); - } - if (cellBO.getProgram().isUniformUsed('VertexIDOffset')) { - cellBO.getProgram().setUniformi('VertexIDOffset', model.vertexIDOffset); - } - if (cellBO.getCABO().getElementCount() && (model.VBOBuildTime.getMTime() > cellBO.getAttributeUpdateTime().getMTime() || cellBO.getShaderSourceTime().getMTime() > cellBO.getAttributeUpdateTime().getMTime())) { - const lastLightComplexity = model.lastBoundBO.getReferenceByName('lastLightComplexity'); - if (cellBO.getProgram().isAttributeUsed('vertexMC')) { - if (!cellBO.getVAO().addAttributeArray(cellBO.getProgram(), cellBO.getCABO(), 'vertexMC', cellBO.getCABO().getVertexOffset(), cellBO.getCABO().getStride(), model.context.FLOAT, 3, false)) { - vtkErrorMacro('Error setting vertexMC in shader VAO.'); - } - } - if (cellBO.getProgram().isAttributeUsed('normalMC') && cellBO.getCABO().getNormalOffset() && lastLightComplexity > 0) { - if (!cellBO.getVAO().addAttributeArray(cellBO.getProgram(), cellBO.getCABO(), 'normalMC', cellBO.getCABO().getNormalOffset(), cellBO.getCABO().getStride(), model.context.FLOAT, 3, false)) { - vtkErrorMacro('Error setting normalMC in shader VAO.'); - } - } else { - cellBO.getVAO().removeAttributeArray('normalMC'); - } - model.renderable.getCustomShaderAttributes().forEach((attrName, idx) => { - if (cellBO.getProgram().isAttributeUsed(`${attrName}MC`)) { - if (!cellBO.getVAO().addAttributeArray(cellBO.getProgram(), cellBO.getCABO(), `${attrName}MC`, cellBO.getCABO().getCustomData()[idx].offset, cellBO.getCABO().getStride(), model.context.FLOAT, cellBO.getCABO().getCustomData()[idx].components, false)) { - vtkErrorMacro(`Error setting ${attrName}MC in shader VAO.`); - } - } - }); - if (cellBO.getProgram().isAttributeUsed('tcoordMC') && cellBO.getCABO().getTCoordOffset()) { - if (!cellBO.getVAO().addAttributeArray(cellBO.getProgram(), cellBO.getCABO(), 'tcoordMC', cellBO.getCABO().getTCoordOffset(), cellBO.getCABO().getStride(), model.context.FLOAT, cellBO.getCABO().getTCoordComponents(), false)) { - vtkErrorMacro('Error setting tcoordMC in shader VAO.'); - } - } else { - cellBO.getVAO().removeAttributeArray('tcoordMC'); - } - if (cellBO.getProgram().isAttributeUsed('scalarColor') && cellBO.getCABO().getColorComponents()) { - if (!cellBO.getVAO().addAttributeArray(cellBO.getProgram(), cellBO.getCABO().getColorBO(), 'scalarColor', cellBO.getCABO().getColorOffset(), cellBO.getCABO().getColorBOStride(), model.context.UNSIGNED_BYTE, 4, true)) { - vtkErrorMacro('Error setting scalarColor in shader VAO.'); - } - } else { - cellBO.getVAO().removeAttributeArray('scalarColor'); - } - cellBO.getAttributeUpdateTime().modified(); - } - if (model.renderable.getNumberOfClippingPlanes()) { - // add all the clipping planes - const numClipPlanes = model.renderable.getNumberOfClippingPlanes(); - const planeEquations = []; - const shiftScaleEnabled = cellBO.getCABO().getCoordShiftAndScaleEnabled(); - const inverseShiftScaleMatrix = shiftScaleEnabled ? cellBO.getCABO().getInverseShiftAndScaleMatrix() : null; - const mat = inverseShiftScaleMatrix ? mat4.copy(model.tmpMat4, actor.getMatrix()) : actor.getMatrix(); - if (inverseShiftScaleMatrix) { - mat4.transpose(mat, mat); - mat4.multiply(mat, mat, inverseShiftScaleMatrix); - mat4.transpose(mat, mat); - } - for (let i = 0; i < numClipPlanes; i++) { - const planeEquation = []; - model.renderable.getClippingPlaneInDataCoords(mat, i, planeEquation); - for (let j = 0; j < 4; j++) { - planeEquations.push(planeEquation[j]); - } - } - cellBO.getProgram().setUniformi('numClipPlanes', numClipPlanes); - cellBO.getProgram().setUniform4fv('clipPlanes', planeEquations); - } - if (model.internalColorTexture && cellBO.getProgram().isUniformUsed('texture1')) { - cellBO.getProgram().setUniformi('texture1', model.internalColorTexture.getTextureUnit()); - } - const tus = model.openGLActor.getActiveTextures(); - if (tus) { - for (let index = 0; index < tus.length; ++index) { - const tex = tus[index]; - const texUnit = tex.getTextureUnit(); - const tname = `texture${texUnit + 1}`; - if (cellBO.getProgram().isUniformUsed(tname)) { - cellBO.getProgram().setUniformi(tname, texUnit); - } - } - } - - // handle depth requests - if (model.haveSeenDepthRequest) { - cellBO.getProgram().setUniformi('depthRequest', model.renderDepth ? 1 : 0); - } - - // handle coincident - if (cellBO.getProgram().isUniformUsed('coffset')) { - const cp = publicAPI.getCoincidentParameters(ren, actor); - cellBO.getProgram().setUniformf('coffset', cp.offset); - // cfactor isn't always used when coffset is. - if (cellBO.getProgram().isUniformUsed('cfactor')) { - cellBO.getProgram().setUniformf('cfactor', cp.factor); - } - } - - // handle wide lines - cellBO.setMapperShaderParameters(ren, actor, model._openGLRenderer.getTiledSizeAndOrigin()); - const selector = model._openGLRenderer.getSelector(); - cellBO.getProgram().setUniform3fArray('mapperIndex', selector ? selector.getPropColorValue() : [0.0, 0.0, 0.0]); - cellBO.getProgram().setUniformi('picking', selector ? selector.getCurrentPass() + 1 : 0); - }; - publicAPI.setLightingShaderParameters = (cellBO, ren, actor) => { - // for unlit and headlight there are no lighting parameters - const lastLightComplexity = model.lastBoundBO.getReferenceByName('lastLightComplexity'); - if (lastLightComplexity < 2) { - return; - } - const program = cellBO.getProgram(); - - // bind some light settings - let numberOfLights = 0; - const lights = ren.getLightsByReference(); - for (let index = 0; index < lights.length; ++index) { - const light = lights[index]; - const status = light.getSwitch(); - if (status > 0.0) { - const dColor = light.getColorByReference(); - const intensity = light.getIntensity(); - model.lightColor[0] = dColor[0] * intensity; - model.lightColor[1] = dColor[1] * intensity; - model.lightColor[2] = dColor[2] * intensity; - // get required info from light - const ld = light.getDirection(); - const transform = ren.getActiveCamera().getViewMatrix(); - const newLightDirection = [...ld]; - if (light.lightTypeIsSceneLight()) { - newLightDirection[0] = transform[0] * ld[0] + transform[1] * ld[1] + transform[2] * ld[2]; - newLightDirection[1] = transform[4] * ld[0] + transform[5] * ld[1] + transform[6] * ld[2]; - newLightDirection[2] = transform[8] * ld[0] + transform[9] * ld[1] + transform[10] * ld[2]; - normalize(newLightDirection); - } - model.lightDirection[0] = newLightDirection[0]; - model.lightDirection[1] = newLightDirection[1]; - model.lightDirection[2] = newLightDirection[2]; - normalize(model.lightDirection); - program.setUniform3fArray(`lightColor${numberOfLights}`, model.lightColor); - program.setUniform3fArray(`lightDirectionVC${numberOfLights}`, model.lightDirection); - numberOfLights++; - } - } - - // we are done unless we have positional lights - if (lastLightComplexity < 3) { - return; - } - - // for lightkit case there are some parameters to set - const cam = ren.getActiveCamera(); - const viewTF = cam.getViewMatrix(); - mat4.transpose(viewTF, viewTF); - numberOfLights = 0; - for (let index = 0; index < lights.length; ++index) { - const light = lights[index]; - const status = light.getSwitch(); - if (status > 0.0) { - const lp = light.getTransformedPosition(); - const np = new Float64Array(3); - vec3.transformMat4(np, lp, viewTF); - program.setUniform3fArray(`lightAttenuation${numberOfLights}`, light.getAttenuationValuesByReference()); - program.setUniformi(`lightPositional${numberOfLights}`, light.getPositional()); - program.setUniformf(`lightExponent${numberOfLights}`, light.getExponent()); - program.setUniformf(`lightConeAngle${numberOfLights}`, light.getConeAngle()); - program.setUniform3fArray(`lightPositionVC${numberOfLights}`, [np[0], np[1], np[2]]); - numberOfLights++; - } - } - }; - function safeMatrixMultiply(matrixArray, matrixType, tmpMat) { - matrixType.identity(tmpMat); - return matrixArray.reduce((res, matrix, index) => { - if (index === 0) { - return matrix ? matrixType.copy(res, matrix) : matrixType.identity(res); - } - return matrix ? matrixType.multiply(res, res, matrix) : res; - }, tmpMat); - } - publicAPI.setCameraShaderParameters = (cellBO, ren, actor) => { - const program = cellBO.getProgram(); - - // [WMVP]C == {world, model, view, projection} coordinates - // E.g., WCPC == world to projection coordinate transformation - const keyMats = model.openGLCamera.getKeyMatrices(ren); - const cam = ren.getActiveCamera(); - const camm = model.openGLCamera.getKeyMatrixTime().getMTime(); - const progm = program.getLastCameraMTime(); - const shiftScaleEnabled = cellBO.getCABO().getCoordShiftAndScaleEnabled(); - const inverseShiftScaleMatrix = shiftScaleEnabled ? cellBO.getCABO().getInverseShiftAndScaleMatrix() : null; - const actorIsIdentity = actor.getIsIdentity(); - const actMats = actorIsIdentity ? { - mcwc: null, - normalMatrix: null - } : model.openGLActor.getKeyMatrices(); - if (actor.getCoordinateSystem() === CoordinateSystem.DISPLAY) { - const size = model._openGLRenderer.getTiledSizeAndOrigin(); - mat4.identity(model.tmpMat4); - model.tmpMat4[0] = 2.0 / size.usize; - model.tmpMat4[12] = -1.0; - model.tmpMat4[5] = 2.0 / size.vsize; - model.tmpMat4[13] = -1.0; - mat4.multiply(model.tmpMat4, model.tmpMat4, inverseShiftScaleMatrix); - program.setUniformMatrix('MCPCMatrix', model.tmpMat4); - } else { - program.setUniformMatrix('MCPCMatrix', safeMatrixMultiply([keyMats.wcpc, actMats.mcwc, inverseShiftScaleMatrix], mat4, model.tmpMat4)); - } - if (program.isUniformUsed('MCVCMatrix')) { - program.setUniformMatrix('MCVCMatrix', safeMatrixMultiply([keyMats.wcvc, actMats.mcwc, inverseShiftScaleMatrix], mat4, model.tmpMat4)); - } - if (program.isUniformUsed('normalMatrix')) { - program.setUniformMatrix3x3('normalMatrix', safeMatrixMultiply([keyMats.normalMatrix, actMats.normalMatrix], mat3, model.tmpMat3)); - } - if (progm !== camm) { - if (program.isUniformUsed('cameraParallel')) { - program.setUniformi('cameraParallel', cam.getParallelProjection()); - } - program.setLastCameraMTime(camm); - } - if (!actorIsIdentity) { - // reset the cam mtime as actor modified the shader values - program.setLastCameraMTime(0); - } - }; - publicAPI.setPropertyShaderParameters = (cellBO, ren, actor) => { - const program = cellBO.getProgram(); - let ppty = actor.getProperty(); - let opacity = ppty.getOpacity(); - let aColor = model.drawingEdges ? ppty.getEdgeColorByReference() : ppty.getAmbientColorByReference(); - let dColor = model.drawingEdges ? ppty.getEdgeColorByReference() : ppty.getDiffuseColorByReference(); - let aIntensity = model.drawingEdges ? 1.0 : ppty.getAmbient(); - let dIntensity = model.drawingEdges ? 0.0 : ppty.getDiffuse(); - let sIntensity = model.drawingEdges ? 0.0 : ppty.getSpecular(); - const specularPower = ppty.getSpecularPower(); - program.setUniformf('opacityUniform', opacity); - program.setUniform3fArray('ambientColorUniform', aColor); - program.setUniform3fArray('diffuseColorUniform', dColor); - program.setUniformf('ambient', aIntensity); - program.setUniformf('diffuse', dIntensity); - - // we are done unless we have lighting - const lastLightComplexity = model.lastBoundBO.getReferenceByName('lastLightComplexity'); - if (lastLightComplexity < 1) { - return; - } - let sColor = ppty.getSpecularColorByReference(); - program.setUniform3fArray('specularColorUniform', sColor); - program.setUniformf('specularPowerUniform', specularPower); - program.setUniformf('specular', sIntensity); - - // now set the backface properties if we have them - if (program.isUniformUsed('ambientIntensityBF')) { - ppty = actor.getBackfaceProperty(); - opacity = ppty.getOpacity(); - aColor = ppty.getAmbientColor(); - aIntensity = ppty.getAmbient(); - dColor = ppty.getDiffuseColor(); - dIntensity = ppty.getDiffuse(); - sColor = ppty.getSpecularColor(); - sIntensity = ppty.getSpecular(); - program.setUniformf('ambientIntensityBF', aIntensity); - program.setUniformf('diffuseIntensityBF', dIntensity); - program.setUniformf('opacityUniformBF', opacity); - program.setUniform3fArray('ambientColorUniformBF', aColor); - program.setUniform3fArray('diffuseColorUniformBF', dColor); - - // we are done unless we have lighting - if (lastLightComplexity < 1) { - return; - } - program.setUniformf('specularIntensityBF', sIntensity); - program.setUniform3fArray('specularColorUniformBF', sColor); - program.setUniformf('specularPowerUniformBF', specularPower); - } - }; - publicAPI.updateMaximumPointCellIds = (ren, actor) => { - const selector = model._openGLRenderer.getSelector(); - if (!selector) { - return; - } - if (model.selectionWebGLIdsToVTKIds?.points?.length) { - const length = model.selectionWebGLIdsToVTKIds.points.length; - selector.setMaximumPointId(length - 1); - } - if (model.selectionWebGLIdsToVTKIds?.cells?.length) { - const length = model.selectionWebGLIdsToVTKIds.cells.length; - selector.setMaximumCellId(length - 1); - } - const fieldAssociation = selector.getFieldAssociation(); - if (fieldAssociation === FieldAssociations.FIELD_ASSOCIATION_POINTS) { - model.pointPicking = true; - } - }; - publicAPI.renderPieceStart = (ren, actor) => { - model.primitiveIDOffset = 0; - model.vertexIDOffset = 0; - const picking = getPickState(model._openGLRenderer); - if (model.lastSelectionState !== picking) { - model.selectionStateChanged.modified(); - model.lastSelectionState = picking; - } - if (model._openGLRenderer.getSelector()) { - switch (picking) { - default: - model._openGLRenderer.getSelector().renderProp(actor); - } - } - - // make sure the BOs are up to date - publicAPI.updateBufferObjects(ren, actor); - - // If we are coloring by texture, then load the texture map. - // Use Map as indicator, because texture hangs around. - if (model.renderable.getColorTextureMap()) { - model.internalColorTexture.activate(); - } - - // Bind the OpenGL, this is shared between the different primitive/cell types. - model.lastBoundBO = null; - }; - publicAPI.renderPieceDraw = (ren, actor) => { - const representation = actor.getProperty().getRepresentation(); - const drawSurfaceWithEdges = actor.getProperty().getEdgeVisibility() && representation === Representation.SURFACE; - const selector = model._openGLRenderer.getSelector(); - // If we are picking points, we need to tell it to the helper - const pointPicking = selector && selector.getFieldAssociation() === FieldAssociations.FIELD_ASSOCIATION_POINTS && (model.lastSelectionState === PassTypes.ID_LOW24 || model.lastSelectionState === PassTypes.ID_HIGH24); - - // for every primitive type - for (let i = primTypes.Start; i < primTypes.End; i++) { - model.primitives[i].setPointPicking(pointPicking); - const cabo = model.primitives[i].getCABO(); - if (cabo.getElementCount()) { - // are we drawing edges - model.drawingEdges = drawSurfaceWithEdges && (i === primTypes.TrisEdges || i === primTypes.TriStripsEdges); - // don't draw edges when rendering depth or rendering for picking - if (!model.drawingEdges || !(model.renderDepth || model.lastSelectionState >= 0)) { - model.lastBoundBO = model.primitives[i]; - model.primitiveIDOffset += model.primitives[i].drawArrays(ren, actor, representation, publicAPI); - model.vertexIDOffset += model.primitives[i].getCABO().getElementCount(); - } - } - } - }; - publicAPI.renderPieceFinish = (ren, actor) => { - if (model.LastBoundBO) { - model.LastBoundBO.getVAO().release(); - } - if (model.renderable.getColorTextureMap()) { - model.internalColorTexture.deactivate(); - } - }; - publicAPI.renderPiece = (ren, actor) => { - // Make sure that we have been properly initialized. - // if (ren.getRenderWindow().checkAbortStatus()) { - // return; - // } - - publicAPI.invokeEvent(StartEvent); - if (!model.renderable.getStatic()) { - model.renderable.update(); - } - model.currentInput = model.renderable.getInputData(); - publicAPI.invokeEvent(EndEvent); - if (!model.currentInput) { - vtkErrorMacro('No input!'); - return; - } - - // if there are no points then we are done - if (!model.currentInput.getPoints || !model.currentInput.getPoints().getNumberOfValues()) { - return; - } - - // apply faceCulling - const gl = model.context; - const backfaceCulling = actor.getProperty().getBackfaceCulling(); - const frontfaceCulling = actor.getProperty().getFrontfaceCulling(); - if (!backfaceCulling && !frontfaceCulling) { - model._openGLRenderWindow.disableCullFace(); - } else if (frontfaceCulling) { - model._openGLRenderWindow.enableCullFace(); - gl.cullFace(gl.FRONT); - } else { - model._openGLRenderWindow.enableCullFace(); - gl.cullFace(gl.BACK); - } - publicAPI.renderPieceStart(ren, actor); - publicAPI.renderPieceDraw(ren, actor); - publicAPI.renderPieceFinish(ren, actor); - }; - publicAPI.updateBufferObjects = (ren, actor) => { - // Rebuild buffers if needed - if (publicAPI.getNeedToRebuildBufferObjects(ren, actor)) { - publicAPI.buildBufferObjects(ren, actor); - } - // Always call this function as the selector can change - publicAPI.updateMaximumPointCellIds(); - }; - publicAPI.getNeedToRebuildBufferObjects = (ren, actor) => { - // first do a coarse check - // Note that the actor's mtime includes it's properties mtime - const vmtime = model.VBOBuildTime.getMTime(); - if (vmtime < publicAPI.getMTime() || vmtime < model.renderable.getMTime() || vmtime < actor.getMTime() || vmtime < model.currentInput.getMTime()) { - return true; - } - return false; - }; - publicAPI.buildBufferObjects = (ren, actor) => { - const poly = model.currentInput; - if (poly === null) { - return; - } - model.renderable.mapScalars(poly, 1.0); - const c = model.renderable.getColorMapColors(); - model.haveCellScalars = false; - const scalarMode = model.renderable.getScalarMode(); - if (model.renderable.getScalarVisibility()) { - // We must figure out how the scalars should be mapped to the polydata. - if ((scalarMode === ScalarMode.USE_CELL_DATA || scalarMode === ScalarMode.USE_CELL_FIELD_DATA || scalarMode === ScalarMode.USE_FIELD_DATA || !poly.getPointData().getScalars()) && scalarMode !== ScalarMode.USE_POINT_FIELD_DATA && c) { - model.haveCellScalars = true; - } - } - - // Do we have normals? - let n = actor.getProperty().getInterpolation() !== Shading.FLAT ? poly.getPointData().getNormals() : null; - if (n === null && poly.getCellData().getNormals()) { - model.haveCellNormals = true; - n = poly.getCellData().getNormals(); - } - - // rebuild the VBO if the data has changed we create a string for the VBO what - // can change the VBO? points normals tcoords colors so what can change those? - // the input data is clearly one as it can change all four items tcoords may - // haveTextures or not colors may change based on quite a few mapping - // parameters in the mapper - - const representation = actor.getProperty().getRepresentation(); - let tcoords = poly.getPointData().getTCoords(); - if (!model.openGLActor.getActiveTextures()) { - tcoords = null; - } - - // Flag to check if tcoords are per cell instead of per point - let useTCoordsPerCell = false; - // handle color mapping via texture - if (model.renderable.getColorCoordinates()) { - tcoords = model.renderable.getColorCoordinates(); - useTCoordsPerCell = model.renderable.getAreScalarsMappedFromCells(); - if (!model.internalColorTexture) { - model.internalColorTexture = vtkOpenGLTexture.newInstance({ - resizable: true - }); - } - const tex = model.internalColorTexture; - // the following 4 lines allow for NPOT textures - tex.setMinificationFilter(Filter.NEAREST); - tex.setMagnificationFilter(Filter.NEAREST); - tex.setWrapS(Wrap.CLAMP_TO_EDGE); - tex.setWrapT(Wrap.CLAMP_TO_EDGE); - tex.setOpenGLRenderWindow(model._openGLRenderWindow); - const input = model.renderable.getColorTextureMap(); - const ext = input.getExtent(); - const inScalars = input.getPointData().getScalars(); - tex.create2DFromRaw({ - width: ext[1] - ext[0] + 1, - height: ext[3] - ext[2] + 1, - numComps: inScalars.getNumberOfComponents(), - dataType: inScalars.getDataType(), - data: inScalars.getData() - }); - tex.activate(); - tex.sendParameters(); - tex.deactivate(); - } - const toString = `${poly.getMTime()}A${representation}B${poly.getMTime()}` + `C${n ? n.getMTime() : 1}D${c ? c.getMTime() : 1}` + `E${actor.getProperty().getEdgeVisibility()}` + `F${tcoords ? tcoords.getMTime() : 1}`; - if (model.VBOBuildString !== toString) { - // Build the VBOs - const points = poly.getPoints(); - const options = { - points, - normals: n, - tcoords, - colors: c, - cellOffset: 0, - vertexOffset: 0, - // Used to keep track of vertex ids across primitives for selection - useTCoordsPerCell, - haveCellScalars: model.haveCellScalars, - haveCellNormals: model.haveCellNormals, - customAttributes: model.renderable.getCustomShaderAttributes().map(arrayName => poly.getPointData().getArrayByName(arrayName)) - }; - if (model.renderable.getPopulateSelectionSettings()) { - model.selectionWebGLIdsToVTKIds = { - points: null, - cells: null - }; - } - const primitives = [{ - inRep: 'verts', - cells: poly.getVerts() - }, { - inRep: 'lines', - cells: poly.getLines() - }, { - inRep: 'polys', - cells: poly.getPolys() - }, { - inRep: 'strips', - cells: poly.getStrips() - }, { - inRep: 'polys', - cells: poly.getPolys() - }, { - inRep: 'strips', - cells: poly.getStrips() - }]; - const drawSurfaceWithEdges = actor.getProperty().getEdgeVisibility() && representation === Representation.SURFACE; - for (let i = primTypes.Start; i < primTypes.End; i++) { - if (i !== primTypes.TrisEdges && i !== primTypes.TriStripsEdges) { - options.cellOffset += model.primitives[i].getCABO().createVBO(primitives[i].cells, primitives[i].inRep, representation, options, model.selectionWebGLIdsToVTKIds); - options.vertexOffset += model.primitives[i].getCABO().getElementCount(); - } else { - // if we have edge visibility build the edge VBOs - if (drawSurfaceWithEdges) { - // VBOs for edges in "surface with edges" are the last to be built, - // they are not used when picking with a hardware selector so they - // don't need selectionWebGLIdsToVTKIds and don't update cellOffset and vertexOffset - model.primitives[i].getCABO().createVBO(primitives[i].cells, primitives[i].inRep, Representation.WIREFRAME, { - ...options, - tcoords: null, - colors: null, - haveCellScalars: false, - haveCellNormals: false - }); - } else { - // otherwise free them - model.primitives[i].releaseGraphicsResources(); - } - } - } - if (model.renderable.getPopulateSelectionSettings()) { - model.renderable.setSelectionWebGLIdsToVTKIds(model.selectionWebGLIdsToVTKIds); - } - model.VBOBuildString = toString; - } - model.VBOBuildTime.modified(); - }; - publicAPI.getAllocatedGPUMemoryInBytes = () => { - let memUsed = 0; - model.primitives.forEach(prim => { - memUsed += prim.getAllocatedGPUMemoryInBytes(); - }); - // Return in MB - return memUsed; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - context: null, - VBOBuildTime: 0, - VBOBuildString: null, - primitives: null, - primTypes: null, - shaderRebuildString: null, - tmpMat4: null, - ambientColor: [], - // used internally - diffuseColor: [], - // used internally - specularColor: [], - // used internally - lightColor: [], - // used internally - lightDirection: [], - // used internally - lastHaveSeenDepthRequest: false, - haveSeenDepthRequest: false, - lastSelectionState: PassTypes.MIN_KNOWN_PASS - 1, - selectionStateChanged: null, - selectionWebGLIdsToVTKIds: null, - pointPicking: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - vtkReplacementShaderMapper.implementReplaceShaderCoincidentOffset(publicAPI, model, initialValues); - vtkReplacementShaderMapper.implementBuildShadersWithReplacements(publicAPI, model, initialValues); - model.primitives = []; - model.primTypes = primTypes; - model.tmpMat3 = mat3.identity(new Float64Array(9)); - model.tmpMat4 = mat4.identity(new Float64Array(16)); - for (let i = primTypes.Start; i < primTypes.End; i++) { - model.primitives[i] = vtkHelper.newInstance(); - model.primitives[i].setPrimitiveType(i); - model.primitives[i].set({ - lastLightComplexity: 0, - lastLightCount: 0, - lastSelectionPass: false - }, true); - } - - // Build VTK API - setGet(publicAPI, model, ['context']); - model.VBOBuildTime = {}; - obj(model.VBOBuildTime, { - mtime: 0 - }); - model.selectionStateChanged = {}; - obj(model.selectionStateChanged, { - mtime: 0 - }); - - // Object methods - vtkOpenGLPolyDataMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkOpenGLPolyDataMapper'); - -// ---------------------------------------------------------------------------- - -var vtkOpenGLPolyDataMapper$1 = { - newInstance, - extend -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkMapper', newInstance); - -export { vtkOpenGLPolyDataMapper$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/PolyDataMapper2D.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/PolyDataMapper2D.js deleted file mode 100644 index 8bba31c6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/PolyDataMapper2D.js +++ /dev/null @@ -1,539 +0,0 @@ -import { mat4 } from 'gl-matrix'; -import { n as newInstance$1, e as setGet, o as obj, c as macro } from '../../macros2.js'; -import vtkHelper from './Helper.js'; -import vtkPoints from '../../Common/Core/Points.js'; -import { v as vtkPolyData2DFS } from './glsl/vtkPolyData2DFS.glsl.js'; -import { v as vtkPolyData2DVS } from './glsl/vtkPolyData2DVS.glsl.js'; -import vtkReplacementShaderMapper from './ReplacementShaderMapper.js'; -import vtkShaderProgram from './ShaderProgram.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import vtkOpenGLTexture from './Texture.js'; -import { R as round } from '../../Common/Core/Math/index.js'; -import { DisplayLocation } from '../Core/Property2D/Constants.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -// import { mat3, mat4, vec3 } from 'gl-matrix'; -const { - primTypes -} = vtkHelper; -const { - Filter, - Wrap -} = vtkOpenGLTexture; -const { - vtkErrorMacro -} = macro; -const StartEvent = { - type: 'StartEvent' -}; -const EndEvent = { - type: 'EndEvent' -}; - -// ---------------------------------------------------------------------------- -// vtkOpenGLPolyDataMapper2D methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLPolyDataMapper2D(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLPolyDataMapper2D'); - publicAPI.buildPass = prepass => { - if (prepass) { - model.openGLActor2D = publicAPI.getFirstAncestorOfType('vtkOpenGLActor2D'); - model._openGLRenderer = model.openGLActor2D.getFirstAncestorOfType('vtkOpenGLRenderer'); - model._openGLRenderWindow = model._openGLRenderer.getLastAncestorOfType('vtkOpenGLRenderWindow'); - model.openGLCamera = model._openGLRenderer.getViewNodeFor(model._openGLRenderer.getRenderable().getActiveCamera()); - } - }; - publicAPI.overlayPass = prepass => { - if (prepass) { - publicAPI.render(); - } - }; - publicAPI.getShaderTemplate = (shaders, ren, actor) => { - shaders.Vertex = vtkPolyData2DVS; - shaders.Fragment = vtkPolyData2DFS; - shaders.Geometry = ''; - }; - publicAPI.render = () => { - const ctx = model._openGLRenderWindow.getContext(); - if (model.context !== ctx) { - model.context = ctx; - for (let i = primTypes.Start; i < primTypes.End; i++) { - model.primitives[i].setOpenGLRenderWindow(model._openGLRenderWindow); - } - } - const actor = model.openGLActor2D.getRenderable(); - const ren = model._openGLRenderer.getRenderable(); - publicAPI.renderPiece(ren, actor); - }; - publicAPI.renderPiece = (ren, actor) => { - publicAPI.invokeEvent(StartEvent); - if (!model.renderable.getStatic()) { - model.renderable.update(); - } - model.currentInput = model.renderable.getInputData(); - publicAPI.invokeEvent(EndEvent); - if (!model.currentInput) { - vtkErrorMacro('No input!'); - return; - } - - // if there are no points then we are done - if (!model.currentInput.getPoints || !model.currentInput.getPoints().getNumberOfValues()) { - return; - } - - // cull back face to avoid double drawing - const gl = model.context; - model._openGLRenderWindow.enableCullFace(); - gl.cullFace(gl.BACK); - publicAPI.renderPieceStart(ren, actor); - publicAPI.renderPieceDraw(ren, actor); - publicAPI.renderPieceFinish(ren, actor); - }; - publicAPI.renderPieceStart = (ren, actor) => { - model.primitiveIDOffset = 0; - if (model._openGLRenderer.getSelector()) { - switch (model._openGLRenderer.getSelector().getCurrentPass()) { - default: - model._openGLRenderer.getSelector().renderProp(actor); - } - } - - // If we are coloring by texture, then load the texture map. - // Use Map as indicator, because texture hangs around. - if (model.renderable.getColorTextureMap()) { - model.internalColorTexture.activate(); - } - - // make sure the BOs are up to date - publicAPI.updateBufferObjects(ren, actor); - - // Bind the OpenGL, this is shared between the different primitive/cell types. - model.lastBoundBO = null; - }; - publicAPI.getNeedToRebuildShaders = (cellBO, ren, actor) => { - // has something changed that would require us to recreate the shader? - // candidates are - // property modified (representation interpolation and lighting) - // input modified - // light complexity changed - if (cellBO.getShaderSourceTime().getMTime() < model.renderable.getMTime() || cellBO.getShaderSourceTime().getMTime() < model.currentInput.getMTime()) { - return true; - } - return false; - }; - publicAPI.updateBufferObjects = (ren, actor) => { - // Rebuild buffers if needed - if (publicAPI.getNeedToRebuildBufferObjects(ren, actor)) { - publicAPI.buildBufferObjects(ren, actor); - } - }; - publicAPI.getNeedToRebuildBufferObjects = (ren, actor) => { - // first do a coarse check - // Note that the actor's mtime includes it's properties mtime - const vmtime = model.VBOBuildTime.getMTime(); - if (vmtime < publicAPI.getMTime() || vmtime < model._openGLRenderWindow.getMTime() || vmtime < model.renderable.getMTime() || vmtime < actor.getMTime() || vmtime < model.currentInput.getMTime() || model.renderable.getTransformCoordinate() && vmtime < ren.getMTime()) { - return true; - } - return false; - }; - publicAPI.buildBufferObjects = (ren, actor) => { - const poly = model.currentInput; - if (poly === null) { - return; - } - model.renderable.mapScalars(poly, actor.getProperty().getOpacity()); - const c = model.renderable.getColorMapColors(); - const representation = actor.getProperty().getRepresentation(); - let tcoords = poly.getPointData().getTCoords(); - if (!model.openGLActor2D.getActiveTextures()) { - tcoords = null; - } - - // Flag to check if tcoords are per cell instead of per point - let useTCoordsPerCell = false; - // handle color mapping via texture - if (model.renderable.getColorCoordinates()) { - tcoords = model.renderable.getColorCoordinates(); - useTCoordsPerCell = model.renderable.getAreScalarsMappedFromCells(); - if (!model.internalColorTexture) { - model.internalColorTexture = vtkOpenGLTexture.newInstance({ - resizable: true - }); - } - const tex = model.internalColorTexture; - // the following 4 lines allow for NPOT textures - tex.setMinificationFilter(Filter.NEAREST); - tex.setMagnificationFilter(Filter.NEAREST); - tex.setWrapS(Wrap.CLAMP_TO_EDGE); - tex.setWrapT(Wrap.CLAMP_TO_EDGE); - tex.setOpenGLRenderWindow(model._openGLRenderWindow); - const input = model.renderable.getColorTextureMap(); - const ext = input.getExtent(); - const inScalars = input.getPointData().getScalars(); - tex.create2DFromRaw({ - width: ext[1] - ext[0] + 1, - height: ext[3] - ext[2] + 1, - numComps: inScalars.getNumberOfComponents(), - dataType: inScalars.getDataType(), - data: inScalars.getData() - }); - tex.activate(); - tex.sendParameters(); - tex.deactivate(); - } - const transformCoordinate = model.renderable.getTransformCoordinate(); - const view = ren.getRenderWindow().getViews()[0]; - const vsize = view.getViewportSize(ren); - const toString = `${poly.getMTime()}A${representation}B${poly.getMTime()}` + `C${c ? c.getMTime() : 1}` + `D${tcoords ? tcoords.getMTime() : 1}` + `E${transformCoordinate ? ren.getMTime() : 1}` + `F${vsize}`; - if (model.VBOBuildString !== toString) { - // Build the VBOs - let points = poly.getPoints(); - if (transformCoordinate) { - const p = vtkPoints.newInstance(); - const numPts = points.getNumberOfPoints(); - p.setNumberOfPoints(numPts); - const point = []; - for (let i = 0; i < numPts; ++i) { - points.getPoint(i, point); - transformCoordinate.setValue(point); - const v = transformCoordinate.getComputedDoubleViewportValue(ren); - p.setPoint(i, v[0], v[1], 0.0); - } - points = p; - } - const options = { - points, - tcoords, - colors: c, - cellOffset: 0, - useTCoordsPerCell, - haveCellScalars: model.renderable.getAreScalarsMappedFromCells(), - customAttributes: model.renderable.getCustomShaderAttributes().map(arrayName => poly.getPointData().getArrayByName(arrayName)) - }; - options.cellOffset += model.primitives[primTypes.Points].getCABO().createVBO(poly.getVerts(), 'verts', representation, options); - options.cellOffset += model.primitives[primTypes.Lines].getCABO().createVBO(poly.getLines(), 'lines', representation, options); - options.cellOffset += model.primitives[primTypes.Tris].getCABO().createVBO(poly.getPolys(), 'polys', representation, options); - options.cellOffset += model.primitives[primTypes.TriStrips].getCABO().createVBO(poly.getStrips(), 'strips', representation, options); - model.VBOBuildTime.modified(); - model.VBOBuildString = toString; - } - }; - publicAPI.renderPieceDraw = (ren, actor) => { - const representation = actor.getProperty().getRepresentation(); - const gl = model.context; - gl.depthMask(true); - - // for every primitive type - for (let i = primTypes.Start; i < primTypes.End; i++) { - // if there are entries - const cabo = model.primitives[i].getCABO(); - if (cabo.getElementCount()) { - model.lastBoundBO = model.primitives[i]; - model.primitiveIDOffset += model.primitives[i].drawArrays(ren, actor, representation, publicAPI); - } - } - }; - publicAPI.renderPieceFinish = (ren, actor) => { - if (model.lastBoundBO) { - model.lastBoundBO.getVAO().release(); - } - if (model.renderable.getColorTextureMap()) { - model.internalColorTexture.deactivate(); - } - }; - publicAPI.replaceShaderValues = (shaders, ren, actor) => { - publicAPI.replaceShaderColor(shaders, ren, actor); - publicAPI.replaceShaderTCoord(shaders, ren, actor); - publicAPI.replaceShaderPicking(shaders, ren, actor); - publicAPI.replaceShaderPositionVC(shaders, ren, actor); - }; - publicAPI.replaceShaderColor = (shaders, ren, actor) => { - let VSSource = shaders.Vertex; - let GSSource = shaders.Geometry; - let FSSource = shaders.Fragment; - - // create the color property declarations - // these are always defined - let colorDec = ['uniform vec3 diffuseColorUniform;', 'uniform float opacityUniform;']; - - // now handle the more complex fragment shader implementation - let colorImpl = ['vec3 diffuseColor = diffuseColorUniform;', 'float opacity = opacityUniform;']; - - // add scalar vertex colors - if (model.lastBoundBO.getCABO().getColorComponents() !== 0) { - colorDec = colorDec.concat(['varying vec4 vertexColorVSOutput;']); - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Color::Dec', ['attribute vec4 scalarColor;', 'varying vec4 vertexColorVSOutput;']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Color::Impl', ['vertexColorVSOutput = scalarColor;']).result; - GSSource = vtkShaderProgram.substitute(GSSource, '//VTK::Color::Dec', ['in vec4 vertexColorVSOutput[];', 'out vec4 vertexColorGSOutput;']).result; - GSSource = vtkShaderProgram.substitute(GSSource, '//VTK::Color::Impl', ['vertexColorGSOutput = vertexColorVSOutput[i];']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Color::Impl', colorImpl.concat([' diffuseColor = vertexColorVSOutput.rgb;', ' opacity = opacity*vertexColorVSOutput.a;'])).result; - } else if (model.renderable.getAreScalarsMappedFromCells()) { - colorImpl = colorImpl.concat([' vec4 texColor = texture2D(texture1, tcoordVCVSOutput.st);', ' diffuseColor = texColor.rgb;', ' opacity = opacity*texColor.a;']); - } - colorImpl = colorImpl.concat(['gl_FragData[0] = vec4(diffuseColor, opacity);']); - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Color::Dec', colorDec).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Color::Impl', colorImpl).result; - shaders.Vertex = VSSource; - shaders.Geometry = GSSource; - shaders.Fragment = FSSource; - }; - publicAPI.replaceShaderTCoord = (shaders, ren, actor) => { - if (model.lastBoundBO.getCABO().getTCoordOffset()) { - let VSSource = shaders.Vertex; - let GSSource = shaders.Geometry; - let FSSource = shaders.Fragment; - const tcdim = model.lastBoundBO.getCABO().getTCoordComponents(); - if (tcdim === 1) { - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::TCoord::Dec', ['in float tcoordMC;', 'out float tcoordVCVSOutput;']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::TCoord::Impl', ['tcoordVCVSOutput = tcoordMC;']).result; - GSSource = vtkShaderProgram.substitute(GSSource, '//VTK::TCoord::Dec', ['in float tcoordVCVSOutput[];\n', 'out float tcoordVCGSOutput;']).result; - GSSource = vtkShaderProgram.substitute(GSSource, ['//VTK::TCoord::Impl', 'tcoordVCGSOutput = tcoordVCVSOutput[i];']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Dec', ['in float tcoordVCVSOutput;', 'uniform sampler2D texture1;']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Impl', ['gl_FragData[0] = gl_FragData[0]*texture2D(texture1, vec2(tcoordVCVSOutput,0));']).result; - } else if (tcdim === 2) { - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::TCoord::Dec', ['in vec2 tcoordMC;', 'out vec2 tcoordVCVSOutput;']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::TCoord::Impl', ['tcoordVCVSOutput = tcoordMC;']).result; - GSSource = vtkShaderProgram.substitute(GSSource, '//VTK::TCoord::Dec', ['in vec2 tcoordVCVSOutput[];\n', 'out vec2 tcoordVCGSOutput;']).result; - GSSource = vtkShaderProgram.substitute(GSSource, '//VTK::TCoord::Impl', ['tcoordVCGSOutput = tcoordVCVSOutput[i];']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Dec', ['in vec2 tcoordVCVSOutput;', 'uniform sampler2D texture1;']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Impl', ['gl_FragData[0] = gl_FragData[0]*texture2D(texture1, tcoordVCVSOutput.st);']).result; - } - if (model.renderable.getAreScalarsMappedFromCells()) { - GSSource = vtkShaderProgram.substitute(GSSource, '//VTK::PrimID::Impl', ['gl_PrimitiveID = gl_PrimitiveIDIn;']).result; - } - shaders.Vertex = VSSource; - shaders.Geometry = GSSource; - shaders.Fragment = FSSource; - } - }; - publicAPI.replaceShaderPicking = (shaders, ren, actor) => { - let FSSource = shaders.Fragment; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Picking::Dec', ['uniform vec3 mapperIndex;', 'uniform int picking;']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Picking::Impl', ' gl_FragData[0] = picking != 0 ? vec4(mapperIndex,1.0) : gl_FragData[0];').result; - shaders.Fragment = FSSource; - }; - publicAPI.replaceShaderPositionVC = (shaders, ren, actor) => { - // replace common shader code - model.lastBoundBO.replaceShaderPositionVC(shaders, ren, actor); - }; - publicAPI.invokeShaderCallbacks = (cellBO, ren, actor) => { - const listCallbacks = model.renderable.getViewSpecificProperties().ShadersCallbacks; - if (listCallbacks) { - listCallbacks.forEach(object => { - object.callback(object.userData, cellBO, ren, actor); - }); - } - }; - publicAPI.setMapperShaderParameters = (cellBO, ren, actor) => { - // Now to update the VAO too, if necessary. - if (cellBO.getProgram().isUniformUsed('PrimitiveIDOffset')) { - cellBO.getProgram().setUniformi('PrimitiveIDOffset', model.primitiveIDOffset); - } - if (cellBO.getProgram().isAttributeUsed('vertexWC')) { - if (!cellBO.getVAO().addAttributeArray(cellBO.getProgram(), cellBO.getCABO(), 'vertexWC', cellBO.getCABO().getVertexOffset(), cellBO.getCABO().getStride(), model.context.FLOAT, 3, false)) { - vtkErrorMacro('Error setting vertexWC in shader VAO.'); - } - } - if (cellBO.getCABO().getElementCount() && (model.VBOBuildTime.getMTime() > cellBO.getAttributeUpdateTime().getMTime() || cellBO.getShaderSourceTime().getMTime() > cellBO.getAttributeUpdateTime().getMTime())) { - model.renderable.getCustomShaderAttributes().forEach((attrName, idx) => { - if (cellBO.getProgram().isAttributeUsed(`${attrName}MC`)) { - if (!cellBO.getVAO().addAttributeArray(cellBO.getProgram(), cellBO.getCABO(), `${attrName}MC`, cellBO.getCABO().getCustomData()[idx].offset, cellBO.getCABO().getStride(), model.context.FLOAT, cellBO.getCABO().getCustomData()[idx].components, false)) { - vtkErrorMacro(`Error setting ${attrName}MC in shader VAO.`); - } - } - }); - if (cellBO.getProgram().isAttributeUsed('tcoordMC') && cellBO.getCABO().getTCoordOffset()) { - if (!cellBO.getVAO().addAttributeArray(cellBO.getProgram(), cellBO.getCABO(), 'tcoordMC', cellBO.getCABO().getTCoordOffset(), cellBO.getCABO().getStride(), model.context.FLOAT, cellBO.getCABO().getTCoordComponents(), false)) { - vtkErrorMacro('Error setting tcoordMC in shader VAO.'); - } - } else { - cellBO.getVAO().removeAttributeArray('tcoordMC'); - } - if (cellBO.getProgram().isAttributeUsed('scalarColor') && cellBO.getCABO().getColorComponents()) { - if (!cellBO.getVAO().addAttributeArray(cellBO.getProgram(), cellBO.getCABO().getColorBO(), 'scalarColor', cellBO.getCABO().getColorOffset(), cellBO.getCABO().getColorBOStride(), model.context.UNSIGNED_BYTE, 4, true)) { - vtkErrorMacro('Error setting scalarColor in shader VAO.'); - } - } else { - cellBO.getVAO().removeAttributeArray('scalarColor'); - } - if (model.internalColorTexture && cellBO.getProgram().isUniformUsed('texture1')) { - const texUnit = model.internalColorTexture.getTextureUnit(); - if (texUnit > -1) { - cellBO.getProgram().setUniformi('texture1', model.internalColorTexture.getTextureUnit()); - } - } - const tus = model.openGLActor2D.getActiveTextures(); - if (tus) { - for (let index = 0; index < tus.length; ++index) { - const tex = tus[index]; - const texUnit = tex.getTextureUnit(); - const tname = `texture${texUnit + 1}`; - if (cellBO.getProgram().isUniformUsed(tname)) { - cellBO.getProgram().setUniformi(tname, texUnit); - } - } - } - - // handle wide lines - cellBO.setMapperShaderParameters(ren, actor, model._openGLRenderer.getTiledSizeAndOrigin()); - const selector = model._openGLRenderer.getSelector(); - cellBO.getProgram().setUniform3fArray('mapperIndex', selector ? selector.getPropColorValue() : [0.0, 0.0, 0.0]); - cellBO.getProgram().setUniformi('picking', selector ? selector.getCurrentPass() + 1 : 0); - } - }; - publicAPI.setPropertyShaderParameters = (cellBO, ren, actor) => { - const c = model.renderable.getColorMapColors(); - if (!c || c.getNumberOfComponents() === 0) { - const program = cellBO.getProgram(); - const ppty = actor.getProperty(); - const opacity = ppty.getOpacity(); - program.setUniformf('opacityUniform', opacity); - const dColor = ppty.getColor(); - program.setUniform3fArray('diffuseColorUniform', dColor); - } - }; - publicAPI.setLightingShaderParameters = (cellBO, ren, actor) => { - // no-op - }; - function safeMatrixMultiply(matrixArray, matrixType, tmpMat) { - matrixType.identity(tmpMat); - return matrixArray.reduce((res, matrix, index) => { - if (index === 0) { - return matrix ? matrixType.copy(res, matrix) : matrixType.identity(res); - } - return matrix ? matrixType.multiply(res, res, matrix) : res; - }, tmpMat); - } - publicAPI.setCameraShaderParameters = (cellBO, ren, actor) => { - const program = cellBO.getProgram(); - const shiftScaleEnabled = cellBO.getCABO().getCoordShiftAndScaleEnabled(); - const inverseShiftScaleMatrix = shiftScaleEnabled ? cellBO.getCABO().getInverseShiftAndScaleMatrix() : null; - - // Get the position of the actor - const view = ren.getRenderWindow().getViews()[0]; - const size = view.getViewportSize(ren); - const vport = ren.getViewport(); - const actorPos = actor.getActualPositionCoordinate().getComputedDoubleViewportValue(ren); - - // Get the window info - // Assume tile viewport is 0 1 based on vtkOpenGLRenderer - const tileViewport = [0.0, 0.0, 1.0, 1.0]; - const visVP = [0.0, 0.0, 1.0, 1.0]; - visVP[0] = vport[0] >= tileViewport[0] ? vport[0] : tileViewport[0]; - visVP[1] = vport[1] >= tileViewport[1] ? vport[1] : tileViewport[1]; - visVP[2] = vport[2] <= tileViewport[2] ? vport[2] : tileViewport[2]; - visVP[3] = vport[3] <= tileViewport[3] ? vport[3] : tileViewport[3]; - if (visVP[0] >= visVP[2]) { - return; - } - if (visVP[1] >= visVP[3]) { - return; - } - size[0] = round(size[0] * (visVP[2] - visVP[0]) / (vport[2] - vport[0])); - size[1] = round(size[1] * (visVP[3] - visVP[1]) / (vport[3] - vport[1])); - const winSize = model._openGLRenderer.getParent().getSize(); - const xoff = round(actorPos[0] - (visVP[0] - vport[0]) * winSize[0]); - const yoff = round(actorPos[1] - (visVP[1] - vport[1]) * winSize[1]); - - // set ortho projection - const left = -xoff; - let right = -xoff + size[0]; - const bottom = -yoff; - let top = -yoff + size[1]; - - // it's an error to call glOrtho with - // either left==right or top==bottom - if (left === right) { - right = left + 1.0; - } - if (bottom === top) { - top = bottom + 1.0; - } - - // compute the combined ModelView matrix and send it down to save time in the shader - const tmpMat4 = mat4.identity(new Float64Array(16)); - tmpMat4[0] = 2.0 / (right - left); - tmpMat4[1 * 4 + 1] = 2.0 / (top - bottom); - tmpMat4[0 * 4 + 3] = -1.0 * (right + left) / (right - left); - tmpMat4[1 * 4 + 3] = -1.0 * (top + bottom) / (top - bottom); - tmpMat4[2 * 4 + 2] = 0.0; - tmpMat4[2 * 4 + 3] = actor.getProperty().getDisplayLocation() === DisplayLocation.FOREGROUND ? -1.0 : 1.0; - tmpMat4[3 * 4 + 3] = 1.0; - mat4.transpose(tmpMat4, tmpMat4); - program.setUniformMatrix('WCVCMatrix', safeMatrixMultiply([tmpMat4, inverseShiftScaleMatrix], mat4, model.tmpMat4)); - }; - publicAPI.getAllocatedGPUMemoryInBytes = () => { - let memUsed = 0; - model.primitives.forEach(prim => { - memUsed += prim.getAllocatedGPUMemoryInBytes(); - }); - // Return in MB - return memUsed; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - context: null, - VBOBuildTime: 0, - VBOBuildString: null, - primitives: null, - primTypes: null, - shaderRebuildString: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - vtkReplacementShaderMapper.implementReplaceShaderCoincidentOffset(publicAPI, model, initialValues); - vtkReplacementShaderMapper.implementBuildShadersWithReplacements(publicAPI, model, initialValues); - model.primitives = []; - model.primTypes = primTypes; - model.tmpMat4 = mat4.identity(new Float64Array(16)); - for (let i = primTypes.Start; i < primTypes.End; i++) { - model.primitives[i] = vtkHelper.newInstance(); - model.primitives[i].setPrimitiveType(i); - model.primitives[i].set({ - lastLightComplexity: 0, - lastLightCount: 0, - lastSelectionPass: false - }, true); - } - - // Build VTK API - setGet(publicAPI, model, ['context']); - model.VBOBuildTime = {}; - obj(model.VBOBuildTime, { - mtime: 0 - }); - - // Object methods - vtkOpenGLPolyDataMapper2D(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkOpenGLPolyDataMapper2D'); - -// ---------------------------------------------------------------------------- - -var vtkPolyDataMapper2D = { - newInstance, - extend -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkMapper2D', newInstance); - -export { vtkPolyDataMapper2D as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Profiles/All.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Profiles/All.js deleted file mode 100644 index f0c128f6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Profiles/All.js +++ /dev/null @@ -1,21 +0,0 @@ -import '../Camera.js'; -import '../Renderer.js'; -import '../Actor.js'; -import '../Actor2D.js'; -import '../CubeAxesActor.js'; -import '../PolyDataMapper.js'; -import '../PolyDataMapper2D.js'; -import '../ScalarBarActor.js'; -import '../Skybox.js'; -import '../Texture.js'; -import '../Glyph3DMapper.js'; -import '../ImageResliceMapper.js'; -import '../ImageMapper.js'; -import '../ImageCPRMapper.js'; -import '../ImageSlice.js'; -import '../Volume.js'; -import '../VolumeMapper.js'; -import '../PixelSpaceCallbackMapper.js'; -import '../SurfaceLIC/SurfaceLICMapper.js'; -import '../SphereMapper.js'; -import '../StickMapper.js'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Profiles/Geometry.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Profiles/Geometry.js deleted file mode 100644 index 081d476c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Profiles/Geometry.js +++ /dev/null @@ -1,11 +0,0 @@ -import '../Camera.js'; -import '../Renderer.js'; -import '../Actor.js'; -import '../Actor2D.js'; -import '../CubeAxesActor.js'; -import '../PolyDataMapper.js'; -import '../PolyDataMapper2D.js'; -import '../ScalarBarActor.js'; -import '../Skybox.js'; -import '../Texture.js'; -import '../PixelSpaceCallbackMapper.js'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Profiles/Glyph.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Profiles/Glyph.js deleted file mode 100644 index 643c9472..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Profiles/Glyph.js +++ /dev/null @@ -1 +0,0 @@ -import '../Glyph3DMapper.js'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Profiles/LIC.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Profiles/LIC.js deleted file mode 100644 index 2890f1cc..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Profiles/LIC.js +++ /dev/null @@ -1 +0,0 @@ -import '../SurfaceLIC/SurfaceLICMapper.js'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Profiles/Molecule.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Profiles/Molecule.js deleted file mode 100644 index 6e6c5625..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Profiles/Molecule.js +++ /dev/null @@ -1,2 +0,0 @@ -import '../SphereMapper.js'; -import '../StickMapper.js'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Profiles/Volume.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Profiles/Volume.js deleted file mode 100644 index a44368c6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Profiles/Volume.js +++ /dev/null @@ -1,9 +0,0 @@ -import '../Camera.js'; -import '../Renderer.js'; -import '../ImageResliceMapper.js'; -import '../ImageMapper.js'; -import '../ImageCPRMapper.js'; -import '../ImageSlice.js'; -import '../Volume.js'; -import '../VolumeMapper.js'; -import '../PixelSpaceCallbackMapper.js'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/RadialDistortionPass.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/RadialDistortionPass.js deleted file mode 100644 index 23af1218..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/RadialDistortionPass.js +++ /dev/null @@ -1,209 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkHelper from './Helper.js'; -import vtkOpenGLFramebuffer from './Framebuffer.js'; -import vtkRenderPass from '../SceneGraph/RenderPass.js'; -import vtkVertexArrayObject from './VertexArrayObject.js'; -import { Representation } from '../Core/Property/Constants.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- - -function vtkRadialDistortionPass(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkRadialDistortionPass'); - - // handles radial distortion and calll delegate - publicAPI.traverse = function (viewNode) { - if (model.deleted) { - return; - } - - // if values are zero then we are a no-op - if (model.k1 === 0.0 && model.k2 === 0.0) { - model.delegates.forEach(val => { - val.traverse(viewNode, publicAPI); - }); - return; - } - - // allocate framebuffer if needed and bind it - if (model.framebuffer === null) { - model.framebuffer = vtkOpenGLFramebuffer.newInstance(); - } - - // rebuild vbo if needed - if (model.VBOBuildTime.getMTime() < publicAPI.getMTime()) { - model.tris.setOpenGLRenderWindow(viewNode); - publicAPI.buildVBO(); - } - const size = viewNode.getSize(); - model.framebuffer.setOpenGLRenderWindow(viewNode); - model.framebuffer.saveCurrentBindingsAndBuffers(); - const fbSize = model.framebuffer.getSize(); - const targetSize = [model.renderRatio * size[0], model.renderRatio * size[1]]; - if (fbSize === null || fbSize[0] !== targetSize[0] || fbSize[1] !== targetSize[1]) { - model.framebuffer.create(targetSize[0], targetSize[1]); - model.framebuffer.populateFramebuffer(); - } - model.framebuffer.bind(); - model.delegates.forEach(val => { - val.traverse(viewNode, publicAPI); - }); - - // now draw the distorted values - model.framebuffer.restorePreviousBindingsAndBuffers(); - const gl = viewNode.getContext(); - if (model.copyShader === null) { - model.copyShader = viewNode.getShaderCache().readyShaderProgramArray(['//VTK::System::Dec', 'attribute vec4 vertexDC;', 'attribute vec2 tcoordTC;', 'varying vec2 tcoord;', 'void main() { tcoord = tcoordTC; gl_Position = vertexDC; }'].join('\n'), ['//VTK::System::Dec', '//VTK::Output::Dec', 'uniform sampler2D distTexture;', 'varying vec2 tcoord;', 'void main() { gl_FragData[0] = texture2D(distTexture,tcoord); }'].join('\n'), ''); - const program = model.copyShader; - model.copyVAO = vtkVertexArrayObject.newInstance(); - model.copyVAO.setOpenGLRenderWindow(viewNode); - model.tris.getCABO().bind(); - if (!model.copyVAO.addAttributeArray(program, model.tris.getCABO(), 'vertexDC', model.tris.getCABO().getVertexOffset(), model.tris.getCABO().getStride(), gl.FLOAT, 3, gl.FALSE)) { - vtkErrorMacro('Error setting vertexDC in copy shader VAO.'); - } - if (!model.copyVAO.addAttributeArray(program, model.tris.getCABO(), 'tcoordTC', model.tris.getCABO().getTCoordOffset(), model.tris.getCABO().getStride(), gl.FLOAT, 2, gl.FALSE)) { - vtkErrorMacro('Error setting vertexDC in copy shader VAO.'); - } - } else { - viewNode.getShaderCache().readyShaderProgram(model.copyShader); - } - gl.viewport(0, 0, size[0], size[1]); - gl.scissor(0, 0, size[0], size[1]); - - // activate texture - const tex = model.framebuffer.getColorTexture(); - tex.activate(); - model.copyShader.setUniformi('distTexture', tex.getTextureUnit()); - - // render quad - gl.drawArrays(gl.TRIANGLES, 0, model.tris.getCABO().getElementCount()); - tex.deactivate(); - }; - publicAPI.buildVBO = () => { - const xdim = 20; - const xtotal = xdim * 2; - const ydim = 20; - const ptsArray = new Float32Array(3 * xtotal * ydim); - const tcoordArray = new Float32Array(2 * xtotal * ydim); - let count = 0; - model.renderRatio = 1.0 + model.k1 + model.k2; - const shrink = 1.0 / model.renderRatio; - for (let y = 0; y < ydim; ++y) { - const yo = 2.0 * (y / (ydim - 1.0)) - 1.0; - const ydo = yo - model.cameraCenterY; - for (let x = 0; x < xdim; ++x) { - ptsArray[count * 3] = x / (xdim - 1.0) - 1.0; - ptsArray[count * 3 + 1] = yo; - ptsArray[count * 3 + 2] = -1.0; - const xo = 2.0 * (x / (xdim - 1.0)) - 1.0; - const xdo = xo - model.cameraCenterX1; - const ro = Math.sqrt(xdo * xdo + ydo * ydo); - const rf = shrink * (1 + ro * ro * (model.k1 + ro * ro * model.k2)); - tcoordArray[count * 2] = 0.25 + 0.25 * (xdo * rf + model.cameraCenterX1); - tcoordArray[count * 2 + 1] = 0.5 + 0.5 * (ydo * rf + model.cameraCenterY); - count++; - } - for (let x = 0; x < xdim; ++x) { - ptsArray[count * 3] = x / (xdim - 1.0); - ptsArray[count * 3 + 1] = yo; - ptsArray[count * 3 + 2] = -1.0; - const xo = 2.0 * (x / (xdim - 1.0)) - 1.0; - const xdo = xo - model.cameraCenterX2; - const ro = Math.sqrt(xdo * xdo + ydo * ydo); - const rf = shrink * (1 + ro * ro * (model.k1 + ro * ro * model.k2)); - tcoordArray[count * 2] = 0.75 + 0.25 * (xdo * rf + model.cameraCenterX2); - tcoordArray[count * 2 + 1] = 0.5 + 0.5 * (ydo * rf + model.cameraCenterY); - count++; - } - } - const cellArray = new Uint16Array((xtotal - 1) * (ydim - 1) * 2 * 4); - count = 0; - for (let y = 0; y < ydim - 1; ++y) { - for (let x = 0; x < xtotal - 1; ++x) { - cellArray[count] = 3; - cellArray[count + 1] = x + y * xtotal; - cellArray[count + 2] = x + y * xtotal + 1; - cellArray[count + 3] = x + (y + 1) * xtotal + 1; - cellArray[count + 4] = 3; - cellArray[count + 5] = x + y * xtotal; - cellArray[count + 6] = x + (y + 1) * xtotal + 1; - cellArray[count + 7] = x + (y + 1) * xtotal; - count += 8; - } - } - const points = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: ptsArray - }); - points.setName('points'); - const tcoords = vtkDataArray.newInstance({ - numberOfComponents: 2, - values: tcoordArray - }); - tcoords.setName('tcoords'); - const cells = vtkDataArray.newInstance({ - numberOfComponents: 1, - values: cellArray - }); - model.tris.getCABO().createVBO(cells, 'polys', Representation.SURFACE, { - points, - tcoords, - cellOffset: 0 - }); - model.VBOBuildTime.modified(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - copyShader: null, - framebuffer: null, - tris: null, - k1: 0.0, - k2: 0.0, - cameraCenterX1: 0.0, - cameraCenterX2: 0.0, - cameraCenterY: 0.0, - renderRatio: 2.0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - vtkRenderPass.extend(publicAPI, model, initialValues); - model.VBOBuildTime = {}; - macro.obj(model.VBOBuildTime, { - mtime: 0 - }); - model.tris = vtkHelper.newInstance(); - macro.setGet(publicAPI, model, ['k1', 'k2', 'cameraCenterY', 'cameraCenterX1', 'cameraCenterX2']); - macro.get(publicAPI, model, ['framebuffer']); - - // Object methods - vtkRadialDistortionPass(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkRadialDistortionPass'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/RenderWindow.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/RenderWindow.d.ts deleted file mode 100644 index d8685815..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/RenderWindow.d.ts +++ /dev/null @@ -1,517 +0,0 @@ -import { Nullable, Size, Vector2, Vector3 } from './../../types'; -import { vtkAlgorithm } from './../../interfaces'; -import { VtkDataTypes } from './../../Common/Core/DataArray'; -import vtkBufferObject from './BufferObject'; -import vtkCellArray from './../../Common/Core/CellArray'; -import vtkDataArray from './../../Common/Core/DataArray'; -import vtkOpenGLTexture from './Texture'; -import vtkPoints from './../../Common/Core/Points'; -import vtkRenderer from './../Core/Renderer'; -import vtkTexture from './../Core/Texture'; -import vtkViewNode from './../SceneGraph/ViewNode'; -import vtkViewStream from './../../IO/Core/ImageStream/ViewStream'; - -/** - * - */ -export interface IOpenGLRenderWindowInitialValues { - cullFaceEnabled?: boolean; - shaderCache?: null; - initialized?: boolean; - context?: WebGLRenderingContext | WebGL2RenderingContext; - context2D?: CanvasRenderingContext2D; - canvas?: HTMLCanvasElement; - cursorVisibility?: boolean; - cursor?: string; - textureUnitManager?: null; - textureResourceIds?: null; - containerSize?: Size; - renderPasses?: any[]; - notifyStartCaptureImage?: boolean; - webgl2?: boolean; - defaultToWebgl2?: boolean; - activeFramebuffer?: any; - imageFormat?: 'image/png'; - useOffScreen?: boolean; - useBackgroundImage?: boolean; -} - -export interface ICaptureOptions { - resetCamera?: boolean; - size?: Size; - scale?: number; -} - -export interface vtkOpenGLRenderWindow extends vtkViewNode { - /** - * Builds myself. - * @param {Boolean} prepass - */ - buildPass(prepass: boolean): void; - - /** - * Initialize the rendering window. This will setup all system-specific - * resources. This method and Finalize() must be symmetric and it should be - * possible to call them multiple times, even changing WindowId in-between. - * This is what WindowRemap does. - */ - initialize(): void; - - /** - * - */ - makeCurrent(): void; - - /** - * - * @param {HTMLElement} el The container element. - */ - setContainer(el: Nullable): void; - - /** - * Get the container element. - */ - getContainer(): Nullable; - - /** - * Get the container size. - */ - getContainerSize(): Vector2; - - /** - * Get the frame buffer size. - */ - getFramebufferSize(): Vector2; - - /** - * Get the webgl canvas. - */ - getCanvas(): Nullable; - - /** - * Set the webgl canvas. - */ - setCanvas(canvas: Nullable): boolean; - - /** - * Check if a point is in the viewport. - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {vtkRenderer} viewport The viewport vtk element. - */ - isInViewport(x: number, y: number, viewport: vtkRenderer): boolean; - - /** - * Get the viewport size. - * @param {vtkRenderer} viewport The viewport vtk element. - */ - getViewportSize(viewport: vtkRenderer): Vector2; - - /** - * Get the center of the viewport. - * @param {vtkRenderer} viewport The viewport vtk element. - */ - getViewportCenter(viewport: vtkRenderer): Vector2; - - /** - * - * @param {Number} x - * @param {Number} y - * @param {Number} z - */ - displayToNormalizedDisplay(x: number, y: number, z: number): Vector3; - - /** - * - * @param {Number} x - * @param {Number} y - * @param {Number} z - */ - normalizedDisplayToDisplay(x: number, y: number, z: number): Vector3; - - /** - * - * @param {Number} x - * @param {Number} y - * @param {Number} z - * @param {vtkRenderer} renderer The vtkRenderer instance. - */ - worldToView(x: number, y: number, z: number, renderer: vtkRenderer): Vector3; - - /** - * - * @param {Number} x - * @param {Number} y - * @param {Number} z - * @param {vtkRenderer} renderer The vtkRenderer instance. - */ - viewToWorld(x: number, y: number, z: number, renderer: vtkRenderer): Vector3; - - /** - * - * @param {Number} x - * @param {Number} y - * @param {Number} z - * @param {vtkRenderer} renderer The vtkRenderer instance. - */ - worldToDisplay( - x: number, - y: number, - z: number, - renderer: vtkRenderer - ): Vector3; - - /** - * - * @param {Number} x - * @param {Number} y - * @param {Number} z - * @param {vtkRenderer} renderer The vtkRenderer instance. - */ - displayToWorld( - x: number, - y: number, - z: number, - renderer: vtkRenderer - ): Vector3; - - /** - * - * @param {Number} x - * @param {Number} y - * @param {Number} z - * @param {vtkRenderer} renderer The vtkRenderer instance. - */ - normalizedDisplayToViewport( - x: number, - y: number, - z: number, - renderer: vtkRenderer - ): Vector3; - - /** - * - * @param {Number} x - * @param {Number} y - * @param {Number} z - * @param {vtkRenderer} renderer The vtkRenderer instance. - */ - viewportToNormalizedViewport( - x: number, - y: number, - z: number, - renderer: vtkRenderer - ): Vector3; - - /** - * - * @param {Number} x - * @param {Number} y - * @param {Number} z - */ - normalizedViewportToViewport(x: number, y: number, z: number): Vector3; - - /** - * - * @param {Number} x - * @param {Number} y - * @param {Number} z - */ - displayToLocalDisplay(x: number, y: number, z: number): Vector3; - - /** - * - * @param {Number} x - * @param {Number} y - * @param {Number} z - * @param {vtkRenderer} renderer The vtkRenderer instance. - */ - viewportToNormalizedDisplay( - x: number, - y: number, - z: number, - renderer: vtkRenderer - ): Vector3; - - /** - * - * @param {Number} x1 - * @param {Number} y1 - * @param {Number} x2 - * @param {Number} y2 - */ - getPixelData(x1: number, y1: number, x2: number, y2: number): Uint8Array; - - /** - * - * @param {WebGLContextAttributes} options - */ - get3DContext( - options: WebGLContextAttributes - ): Nullable; - - /** - * - * @param {CanvasRenderingContext2DSettings} options - */ - get2DContext( - options: CanvasRenderingContext2DSettings - ): Nullable; - - /** - * Copy the content of the root parent, if there is one, to the canvas - */ - copyParentContent(): void; - - /** - * Resize this render window using the size of its children - * The new size of the renderwindow is the size of the bounding box - * containing all the child render windows - */ - resizeFromChildRenderWindows(): void; - - /** - * Returns the last ancestor of type vtkOpenGLRenderWindow if there is one - * If there is no parent vtkOpenGLRenderWindow, returns undefined - */ - getRootOpenGLRenderWindow(): vtkOpenGLRenderWindow | undefined; - - /** - * The context 2D is created during initialization instead of the WebGL context - * when there is a parent render window - */ - getContext2D(): CanvasRenderingContext2D | undefined; - - /** - * - */ - setContext2D(context2D: CanvasRenderingContext2D | undefined): boolean; - - /** - * - */ - restoreContext(): void; - - /** - * - * @param {vtkTexture} texture - */ - activateTexture(texture: vtkTexture): void; - - /** - * - * @param {vtkTexture} texture - */ - deactivateTexture(texture: vtkTexture): void; - - /** - * - * @param {vtkTexture} texture - */ - getTextureUnitForTexture(texture: vtkTexture): number; - - /** - * - * @param {VtkDataTypes} vtktype - * @param {Number} numComps - * @param {Boolean} useFloat - * @param {unknown} oglNorm16Ext The WebGL EXT_texture_norm16 extension context - * @param {Boolean} useHalfFloat - */ - getDefaultTextureInternalFormat( - vtktype: VtkDataTypes, - numComps: number, - oglNorm16Ext?: unknown, - useHalfFloat?: boolean - ): void; - - /** - * - * @param {HTMLImageElement} img The background image. - */ - setBackgroundImage(img: HTMLImageElement): void; - - /** - * - * @param {Boolean} value - */ - setUseBackgroundImage(value: boolean): void; - - /** - * Capture a screenshot of the contents of this renderwindow. The options - * object can include a `size` array (`[w, h]`) or a `scale` floating point - * value, as well as a `resetCamera` boolean. If `size` is provided, the - * captured screenshot will be of the given size (and `resetCamera` could be - * useful in this case if the aspect ratio of `size` does not match the - * current renderwindow size). Otherwise, if `scale` is provided, it will - * be multiplied by the current renderwindow size to compute the screenshot - * size. If no `size` or `scale` are provided, the current renderwindow - * size is assumed. The default format is "image/png". Returns a promise - * that resolves to the captured screenshot. - * @param {String} format - * @param {ICaptureOptions} options - */ - captureNextImage( - format: string, - options?: ICaptureOptions - ): Nullable>; - - /** - * - */ - getGLInformations(): object; - - /** - * - */ - traverseAllPasses(): void; - - /** - * - */ - disableCullFace(): void; - - /** - * - */ - enableCullFace(): void; - - /** - * - * @param {vtkViewStream} stream The vtkViewStream instance. - */ - setViewStream(stream: vtkViewStream): boolean; - - /** - * Sets the pixel width and height of the rendered image. - * - * WebGL and WebGPU render windows apply these values to - * the width and height attribute of the canvas element. - * - * To match the device resolution in browser environments, - * multiply the container size by `window.devicePixelRatio` - * `apiSpecificRenderWindow.setSize(Math.floor(containerWidth * devicePixelRatio), Math.floor(containerHeight * devicePixelRatio)); - * See the VTK.js FullscreenRenderWindow class for an example. - * - * @see getComputedDevicePixelRatio() - * - * @param {Vector2} size - */ - setSize(size: Vector2): void; - - /** - * - * @param {Number} x - * @param {Number} y - */ - setSize(x: number, y: number): void; - - /** - * - */ - getSize(): Vector2; - - /** - * Scales the size of a browser CSS pixel to a rendered canvas pixel. - * `const renderedPixelWidth = cssPixelWidth * apiRenderWindow.getComputedDevicePixelRatio()` - * Use to scale rendered objects to a consistent perceived size or DOM pixel position. - * - * Rather than using window.devicePixelRatio directly, the device pixel ratio is inferred - * from the container CSS pixel size and rendered image pixel size. The user directly sets the rendered pixel size. - * - * @see setSize() - * @see getContainerSize() - */ - getComputedDevicePixelRatio(): number; - - /** - * Set graphics resources for vtk objects to be cached at the context level. - * This provides mappers with a convenient API to re-use allocated GPU resources - * without duplication. - * - * @param {Object} vtkObj VTK data object / array with resources on the GPU - * @param {Object} gObj Container object that maintains a handle to the graphics resource on the GPU - * @param {String} hash String hash that can be used by mappers to decide whether to discard or re-allocate - * the cached resource. - */ - setGraphicsResourceForObject( - vtkObj: vtkCellArray | vtkDataArray | vtkPoints, - gObj: Nullable, - hash: Nullable - ): void; - - /** - * Get graphics resources for vtk objects cached at the context level. - * This provides mappers with a convenient API to re-use allocated GPU resources - * without duplication. - * - * @param {Object} vtkObj VTK data object / array with resources on the GPU - * the cached resource. - * @return {Object} Dictionary with the graphics resource and string hash - */ - getGraphicsResourceForObject< - T extends vtkCellArray | vtkDataArray | vtkPoints - >( - vtkObj: T - ): - | { - coreObject: T; - oglObject: Nullable; - hash: Nullable; - } - | undefined; - - /** - * Get approximate graphics memory usage, in bytes, for the context. This is a simple computation - * that analyzes how much memory is allocated on the GPU for textures, VBOs, etc. to give an - * application a view of its graphics memory consumption. - * Note that this ignores page resources. - */ - getGraphicsMemoryInfo(): number; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkOpenGLRenderWindow characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IOpenGLRenderWindowInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IOpenGLRenderWindowInitialValues -): void; - -/** - * Method used to create a new instance of vtkOpenGLRenderWindow. - * @param {IOpenGLRenderWindowInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IOpenGLRenderWindowInitialValues -): vtkOpenGLRenderWindow; - -/** - * - * @param cb - */ -export function pushMonitorGLContextCount(cb: any): void; - -/** - * - * @param cb - */ -export function popMonitorGLContextCount(cb: any): void; - -/** - * WebGL rendering window - * - * vtkOpenGLRenderWindow is designed to view/render a vtkRenderWindow. - */ -export declare const vtkOpenGLRenderWindow: { - newInstance: typeof newInstance; - extend: typeof extend; - pushMonitorGLContextCount: typeof pushMonitorGLContextCount; - popMonitorGLContextCount: typeof popMonitorGLContextCount; -}; -export default vtkOpenGLRenderWindow; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/RenderWindow.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/RenderWindow.js deleted file mode 100644 index 1a97a95d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/RenderWindow.js +++ /dev/null @@ -1,862 +0,0 @@ -import { VtkDataTypes } from '../../Common/Core/DataArray/Constants.js'; -import { m as macro } from '../../macros2.js'; -import { registerViewConstructor } from '../Core/RenderWindow.js'; -import vtkForwardPass from './ForwardPass.js'; -import vtkHardwareSelector from './HardwareSelector.js'; -import vtkShaderCache from './ShaderCache.js'; -import vtkTextureUnitManager from './TextureUnitManager.js'; -import vtkViewNodeFactory, { registerOverride } from './ViewNodeFactory.js'; -import vtkRenderPass from '../SceneGraph/RenderPass.js'; -import vtkRenderWindowViewNode from '../SceneGraph/RenderWindowViewNode.js'; -import { createContextProxyHandler } from './RenderWindow/ContextProxy.js'; - -const { - vtkDebugMacro, - vtkErrorMacro -} = macro; -const SCREENSHOT_PLACEHOLDER = { - position: 'absolute', - top: 0, - left: 0, - width: '100%', - height: '100%' -}; -const parentMethodsToProxy = ['activateTexture', 'deactivateTexture', 'disableCullFace', 'enableCullFace', 'get3DContext', 'getActiveFramebuffer', 'getContext', 'getDefaultTextureByteSize', 'getDefaultTextureInternalFormat', 'getDefaultToWebgl2', 'getGLInformations', 'getGraphicsMemoryInfo', 'getGraphicsResourceForObject', 'getHardwareMaximumLineWidth', 'getPixelData', 'getShaderCache', 'getTextureUnitForTexture', 'getTextureUnitManager', 'getWebgl2', 'makeCurrent', 'releaseGraphicsResources', 'registerGraphicsResourceUser', 'unregisterGraphicsResourceUser', 'restoreContext', 'setActiveFramebuffer', 'setContext', 'setDefaultToWebgl2', 'setGraphicsResourceForObject']; -function checkRenderTargetSupport(gl, format, type) { - // create temporary frame buffer and texture - const framebuffer = gl.createFramebuffer(); - const texture = gl.createTexture(); - gl.bindTexture(gl.TEXTURE_2D, texture); - gl.texImage2D(gl.TEXTURE_2D, 0, format, 2, 2, 0, format, type, null); - gl.bindFramebuffer(gl.FRAMEBUFFER, framebuffer); - gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, texture, 0); - - // check frame buffer status - const status = gl.checkFramebufferStatus(gl.FRAMEBUFFER); - - // clean up - gl.bindFramebuffer(gl.FRAMEBUFFER, null); - gl.bindTexture(gl.TEXTURE_2D, null); - return status === gl.FRAMEBUFFER_COMPLETE; -} - -// ---------------------------------------------------------------------------- -// Monitor the usage of GL context across vtkOpenGLRenderWindow instances -// ---------------------------------------------------------------------------- - -let GL_CONTEXT_COUNT = 0; -const GL_CONTEXT_LISTENERS = []; -function createGLContext() { - GL_CONTEXT_COUNT++; - GL_CONTEXT_LISTENERS.forEach(cb => cb(GL_CONTEXT_COUNT)); -} -function deleteGLContext() { - GL_CONTEXT_COUNT--; - GL_CONTEXT_LISTENERS.forEach(cb => cb(GL_CONTEXT_COUNT)); -} -function pushMonitorGLContextCount(cb) { - GL_CONTEXT_LISTENERS.push(cb); -} -function popMonitorGLContextCount(cb) { - return GL_CONTEXT_LISTENERS.pop(); -} -function _preventDefault(e) { - e.preventDefault(); -} - -// ---------------------------------------------------------------------------- -// vtkOpenGLRenderWindow methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLRenderWindow(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLRenderWindow'); - - // Only create a cachingContextHandler if needed - let cachingContextHandler; - function getCachingContextHandler() { - if (!cachingContextHandler) { - cachingContextHandler = createContextProxyHandler(); - } - return cachingContextHandler; - } - publicAPI.getViewNodeFactory = () => model.myFactory; - - // prevent default context lost handler - model.canvas.addEventListener('webglcontextlost', _preventDefault, false); - model.canvas.addEventListener('webglcontextrestored', publicAPI.restoreContext, false); - - // Auto update style - const previousSize = [0, 0]; - function updateWindow() { - // Canvas size - if (model.renderable) { - if (model.size[0] !== previousSize[0] || model.size[1] !== previousSize[1]) { - previousSize[0] = model.size[0]; - previousSize[1] = model.size[1]; - model.canvas.setAttribute('width', model.size[0]); - model.canvas.setAttribute('height', model.size[1]); - } - } - - // ImageStream size - if (model.viewStream) { - // If same size that's a NoOp - model.viewStream.setSize(model.size[0], model.size[1]); - } - - // Offscreen ? - model.canvas.style.display = model.useOffScreen ? 'none' : 'block'; - - // Cursor type - if (model.el) { - model.el.style.cursor = model.cursorVisibility ? model.cursor : 'none'; - } - - // Invalidate cached DOM container size - model.containerSize = null; - } - publicAPI.onModified(updateWindow); - - // Builds myself. - publicAPI.buildPass = prepass => { - if (prepass) { - if (!model.renderable) { - return; - } - publicAPI.prepareNodes(); - publicAPI.addMissingNodes(model.renderable.getRenderersByReference()); - publicAPI.addMissingNodes(model.renderable.getChildRenderWindowsByReference()); - publicAPI.removeUnusedNodes(); - publicAPI.initialize(); - model.children.forEach(child => { - // Children can be openGl renderer or openGl render windows - // Only openGl renderers have a method setOpenGLRenderWindow - child.setOpenGLRenderWindow?.(publicAPI); - }); - } - }; - publicAPI.initialize = () => { - if (!model.initialized) { - // Set root parent if there is one - // Some methods of the root parent are proxied (see parentMethodsToProxy) - model.rootOpenGLRenderWindow = publicAPI.getLastAncestorOfType('vtkOpenGLRenderWindow'); - if (model.rootOpenGLRenderWindow) { - // Initialize a 2D context that will copy the content of the root parent - model.context2D = publicAPI.get2DContext(); - } else { - // Initialize a 3D context that may be used by child render windows - model.context = publicAPI.get3DContext(); - publicAPI.resizeFromChildRenderWindows(); - if (model.context) { - createGLContext(); - } - model.textureUnitManager = vtkTextureUnitManager.newInstance(); - model.textureUnitManager.setContext(model.context); - model.shaderCache.setContext(model.context); - // initialize blending for transparency - const gl = model.context; - gl.blendFuncSeparate(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA, gl.ONE, gl.ONE_MINUS_SRC_ALPHA); - gl.depthFunc(gl.LEQUAL); - gl.enable(gl.BLEND); - } - model.initialized = true; - } - }; - publicAPI.makeCurrent = () => { - model.context.makeCurrent(); - }; - publicAPI.setContainer = el => { - if (model.el && model.el !== el) { - if (model.canvas.parentNode !== model.el) { - vtkErrorMacro('Error: canvas parent node does not match container'); - } - - // Remove canvas from previous container - model.el.removeChild(model.canvas); - - // If the renderer has previously added - // a background image, remove it from the DOM. - if (model.el.contains(model.bgImage)) { - model.el.removeChild(model.bgImage); - } - } - if (model.el !== el) { - model.el = el; - if (model.el) { - model.el.appendChild(model.canvas); - - // If the renderer is set to use a background - // image, attach it to the DOM. - if (model.useBackgroundImage) { - model.el.appendChild(model.bgImage); - } - } - - // Trigger modified() - publicAPI.modified(); - } - }; - publicAPI.getContainer = () => model.el; - publicAPI.getContainerSize = () => { - if (!model.containerSize && model.el) { - const { - width, - height - } = model.el.getBoundingClientRect(); - model.containerSize = [width, height]; - } - return model.containerSize || model.size; - }; - publicAPI.getFramebufferSize = () => { - const fbSize = model.activeFramebuffer?.getSize(); - return fbSize || model.size; - }; - publicAPI.getPixelData = (x1, y1, x2, y2) => { - const pixels = new Uint8Array((x2 - x1 + 1) * (y2 - y1 + 1) * 4); - model.context.readPixels(x1, y1, x2 - x1 + 1, y2 - y1 + 1, model.context.RGBA, model.context.UNSIGNED_BYTE, pixels); - return pixels; - }; - publicAPI.get3DContext = function () { - let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { - preserveDrawingBuffer: false, - depth: true, - alpha: true, - powerPreference: 'high-performance' - }; - let result = null; - const webgl2Supported = typeof WebGL2RenderingContext !== 'undefined'; - model.webgl2 = false; - if (model.defaultToWebgl2 && webgl2Supported) { - result = model.canvas.getContext('webgl2', options); - if (result) { - model.webgl2 = true; - vtkDebugMacro('using webgl2'); - } - } - if (!result) { - vtkDebugMacro('using webgl1'); - result = model.canvas.getContext('webgl', options) || model.canvas.getContext('experimental-webgl', options); - } - return new Proxy(result, getCachingContextHandler()); - }; - publicAPI.get2DContext = function () { - let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return model.canvas.getContext('2d', options); - }; - publicAPI.restoreContext = () => { - const rp = vtkRenderPass.newInstance(); - rp.setCurrentOperation('Release'); - rp.traverse(publicAPI, null); - }; - publicAPI.activateTexture = texture => { - // Only add if it isn't already there - const result = model._textureResourceIds.get(texture); - if (result !== undefined) { - model.context.activeTexture(model.context.TEXTURE0 + result); - return; - } - const activeUnit = publicAPI.getTextureUnitManager().allocate(); - if (activeUnit < 0) { - vtkErrorMacro('Hardware does not support the number of textures defined.'); - return; - } - model._textureResourceIds.set(texture, activeUnit); - model.context.activeTexture(model.context.TEXTURE0 + activeUnit); - }; - publicAPI.deactivateTexture = texture => { - // Only deactivate if it isn't already there - const result = model._textureResourceIds.get(texture); - if (result !== undefined) { - publicAPI.getTextureUnitManager().free(result); - model._textureResourceIds.delete(texture); - } - }; - publicAPI.getTextureUnitForTexture = texture => { - const result = model._textureResourceIds.get(texture); - if (result !== undefined) { - return result; - } - return -1; - }; - publicAPI.getDefaultTextureByteSize = function (vtkType) { - let oglNorm16Ext = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - let useHalfFloat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; - if (model.webgl2) { - switch (vtkType) { - case VtkDataTypes.CHAR: - case VtkDataTypes.SIGNED_CHAR: - case VtkDataTypes.UNSIGNED_CHAR: - return 1; - case oglNorm16Ext: - case useHalfFloat: - case VtkDataTypes.UNSIGNED_SHORT: - case VtkDataTypes.SHORT: - case VtkDataTypes.VOID: - // Used for unsigned int depth - return 2; - default: - // For all other cases, assume float - return 4; - } - } - - // webgl1 type support is limited to 1 byte - return 1; - }; - publicAPI.getDefaultTextureInternalFormat = function (vtktype, numComps) { - let oglNorm16Ext = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - let useHalfFloat = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; - if (model.webgl2) { - switch (vtktype) { - case VtkDataTypes.UNSIGNED_CHAR: - switch (numComps) { - case 1: - return model.context.R8; - case 2: - return model.context.RG8; - case 3: - return model.context.RGB8; - case 4: - default: - return model.context.RGBA8; - } - case oglNorm16Ext && !useHalfFloat && VtkDataTypes.UNSIGNED_SHORT: - switch (numComps) { - case 1: - return oglNorm16Ext.R16_EXT; - case 2: - return oglNorm16Ext.RG16_EXT; - case 3: - return oglNorm16Ext.RGB16_EXT; - case 4: - default: - return oglNorm16Ext.RGBA16_EXT; - } - // prioritize norm16 over float - case oglNorm16Ext && !useHalfFloat && VtkDataTypes.SHORT: - switch (numComps) { - case 1: - return oglNorm16Ext.R16_SNORM_EXT; - case 2: - return oglNorm16Ext.RG16_SNORM_EXT; - case 3: - return oglNorm16Ext.RGB16_SNORM_EXT; - case 4: - default: - return oglNorm16Ext.RGBA16_SNORM_EXT; - } - case VtkDataTypes.UNSIGNED_SHORT: - case VtkDataTypes.SHORT: - case VtkDataTypes.FLOAT: - default: - // useHalfFloat tells us if the texture can be accurately - // rendered with 16 bits or not. - switch (numComps) { - case 1: - return useHalfFloat ? model.context.R16F : model.context.R32F; - case 2: - return useHalfFloat ? model.context.RG16F : model.context.RG32F; - case 3: - return useHalfFloat ? model.context.RGB16F : model.context.RGB32F; - case 4: - default: - return useHalfFloat ? model.context.RGBA16F : model.context.RGBA32F; - } - } - } - - // webgl1 only supports four types - switch (numComps) { - case 1: - return model.context.LUMINANCE; - case 2: - return model.context.LUMINANCE_ALPHA; - case 3: - return model.context.RGB; - case 4: - default: - return model.context.RGBA; - } - }; - publicAPI.setBackgroundImage = img => { - model.bgImage.src = img.src; - }; - publicAPI.setUseBackgroundImage = value => { - model.useBackgroundImage = value; - - // Add or remove the background image from the - // DOM as specified. - if (model.useBackgroundImage && !model.el.contains(model.bgImage)) { - model.el.appendChild(model.bgImage); - } else if (!model.useBackgroundImage && model.el.contains(model.bgImage)) { - model.el.removeChild(model.bgImage); - } - }; - function getCanvasDataURL() { - let format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : model.imageFormat; - // Copy current canvas to not modify the original - const temporaryCanvas = document.createElement('canvas'); - const temporaryContext = temporaryCanvas.getContext('2d'); - temporaryCanvas.width = model.canvas.width; - temporaryCanvas.height = model.canvas.height; - temporaryContext.drawImage(model.canvas, 0, 0); - - // Get current client rect to place canvas - const mainBoundingClientRect = model.canvas.getBoundingClientRect(); - const renderWindow = model.renderable; - const renderers = renderWindow.getRenderers(); - renderers.forEach(renderer => { - const viewProps = renderer.getViewProps(); - viewProps.forEach(viewProp => { - // Check if the prop has a container that should have canvas - if (viewProp.getContainer) { - const container = viewProp.getContainer(); - const canvasList = container.getElementsByTagName('canvas'); - // Go throughout all canvas and copy it into temporary main canvas - for (let i = 0; i < canvasList.length; i++) { - const currentCanvas = canvasList[i]; - const boundingClientRect = currentCanvas.getBoundingClientRect(); - const newXPosition = boundingClientRect.x - mainBoundingClientRect.x; - const newYPosition = boundingClientRect.y - mainBoundingClientRect.y; - temporaryContext.drawImage(currentCanvas, newXPosition, newYPosition); - } - } - }); - }); - const screenshot = temporaryCanvas.toDataURL(format); - temporaryCanvas.remove(); - publicAPI.invokeImageReady(screenshot); - } - publicAPI.captureNextImage = function () { - let format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'image/png'; - let { - resetCamera = false, - size = null, - scale = 1 - } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - if (model.deleted) { - return null; - } - model.imageFormat = format; - const previous = model.notifyStartCaptureImage; - model.notifyStartCaptureImage = true; - model._screenshot = { - size: !!size || scale !== 1 ? size || model.size.map(val => val * scale) : null - }; - return new Promise((resolve, reject) => { - const subscription = publicAPI.onImageReady(imageURL => { - if (model._screenshot.size === null) { - model.notifyStartCaptureImage = previous; - subscription.unsubscribe(); - if (model._screenshot.placeHolder) { - // resize the main canvas back to its original size and show it - model.size = model._screenshot.originalSize; - - // process the resize - publicAPI.modified(); - - // restore the saved camera parameters, if applicable - if (model._screenshot.cameras) { - model._screenshot.cameras.forEach(_ref => { - let { - restoreParamsFn, - arg - } = _ref; - return restoreParamsFn(arg); - }); - } - - // Trigger a render at the original size - publicAPI.traverseAllPasses(); - - // Remove and clean up the placeholder, revealing the original - model.el.removeChild(model._screenshot.placeHolder); - model._screenshot.placeHolder.remove(); - model._screenshot = null; - } - resolve(imageURL); - } else { - // Create a placeholder image overlay while we resize and render - const tmpImg = document.createElement('img'); - tmpImg.style = SCREENSHOT_PLACEHOLDER; - tmpImg.src = imageURL; - model._screenshot.placeHolder = model.el.appendChild(tmpImg); - - // hide the main canvas - model.canvas.style.display = 'none'; - - // remember the main canvas original size, then resize it - model._screenshot.originalSize = model.size; - model.size = model._screenshot.size; - model.rootOpenGLRenderWindow?.resizeFromChildRenderWindows(); - model._screenshot.size = null; - - // process the resize - publicAPI.modified(); - if (resetCamera) { - const isUserResetCamera = resetCamera !== true; - - // If resetCamera was requested, we first save camera parameters - // from all the renderers, so we can restore them later - model._screenshot.cameras = model.renderable.getRenderers().map(renderer => { - const camera = renderer.getActiveCamera(); - const params = camera.get('focalPoint', 'position', 'parallelScale'); - return { - resetCameraArgs: isUserResetCamera ? { - renderer - } : undefined, - resetCameraFn: isUserResetCamera ? resetCamera : renderer.resetCamera, - restoreParamsFn: camera.set, - // "clone" the params so we don't keep refs to properties - arg: JSON.parse(JSON.stringify(params)) - }; - }); - - // Perform the resetCamera() on each renderer only after capturing - // the params from all active cameras, in case there happen to be - // linked cameras among the renderers. - model._screenshot.cameras.forEach(_ref2 => { - let { - resetCameraFn, - resetCameraArgs - } = _ref2; - return resetCameraFn(resetCameraArgs); - }); - } - - // Trigger a render at the custom size - publicAPI.traverseAllPasses(); - } - }); - }); - }; - let hardwareMaximumLineWidth; - publicAPI.getHardwareMaximumLineWidth = () => { - // We cache the result of this function because `getParameter` is slow - if (hardwareMaximumLineWidth != null) { - return hardwareMaximumLineWidth; - } - const gl = publicAPI.get3DContext(); - const lineWidthRange = gl.getParameter(gl.ALIASED_LINE_WIDTH_RANGE); - hardwareMaximumLineWidth = lineWidthRange[1]; - return lineWidthRange[1]; - }; - publicAPI.getGLInformations = () => { - if (model._glInformation) { - return model._glInformation; - } - const gl = publicAPI.get3DContext(); - const glTextureFloat = gl.getExtension('OES_texture_float'); - const glTextureHalfFloat = gl.getExtension('OES_texture_half_float'); - const glDebugRendererInfo = gl.getExtension('WEBGL_debug_renderer_info'); - const glDrawBuffers = gl.getExtension('WEBGL_draw_buffers'); - const glAnisotropic = gl.getExtension('EXT_texture_filter_anisotropic') || gl.getExtension('WEBKIT_EXT_texture_filter_anisotropic'); - const params = [['Max Vertex Attributes', 'MAX_VERTEX_ATTRIBS', gl.getParameter(gl.MAX_VERTEX_ATTRIBS)], ['Max Varying Vectors', 'MAX_VARYING_VECTORS', gl.getParameter(gl.MAX_VARYING_VECTORS)], ['Max Vertex Uniform Vectors', 'MAX_VERTEX_UNIFORM_VECTORS', gl.getParameter(gl.MAX_VERTEX_UNIFORM_VECTORS)], ['Max Fragment Uniform Vectors', 'MAX_FRAGMENT_UNIFORM_VECTORS', gl.getParameter(gl.MAX_FRAGMENT_UNIFORM_VECTORS)], ['Max Fragment Texture Image Units', 'MAX_TEXTURE_IMAGE_UNITS', gl.getParameter(gl.MAX_TEXTURE_IMAGE_UNITS)], ['Max Vertex Texture Image Units', 'MAX_VERTEX_TEXTURE_IMAGE_UNITS', gl.getParameter(gl.MAX_VERTEX_TEXTURE_IMAGE_UNITS)], ['Max Combined Texture Image Units', 'MAX_COMBINED_TEXTURE_IMAGE_UNITS', gl.getParameter(gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS)], ['Max 2D Texture Size', 'MAX_TEXTURE_SIZE', gl.getParameter(gl.MAX_TEXTURE_SIZE)], ['Max Cube Texture Size', 'MAX_CUBE_MAP_TEXTURE_SIZE', gl.getParameter(gl.MAX_CUBE_MAP_TEXTURE_SIZE)], ['Max Texture Anisotropy', 'MAX_TEXTURE_MAX_ANISOTROPY_EXT', glAnisotropic && gl.getParameter(glAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)], ['Point Size Range', 'ALIASED_POINT_SIZE_RANGE', gl.getParameter(gl.ALIASED_POINT_SIZE_RANGE).join(' - ')], ['Line Width Range', 'ALIASED_LINE_WIDTH_RANGE', gl.getParameter(gl.ALIASED_LINE_WIDTH_RANGE).join(' - ')], ['Max Viewport Dimensions', 'MAX_VIEWPORT_DIMS', gl.getParameter(gl.MAX_VIEWPORT_DIMS).join(' - ')], ['Max Renderbuffer Size', 'MAX_RENDERBUFFER_SIZE', gl.getParameter(gl.MAX_RENDERBUFFER_SIZE)], ['Framebuffer Red Bits', 'RED_BITS', gl.getParameter(gl.RED_BITS)], ['Framebuffer Green Bits', 'GREEN_BITS', gl.getParameter(gl.GREEN_BITS)], ['Framebuffer Blue Bits', 'BLUE_BITS', gl.getParameter(gl.BLUE_BITS)], ['Framebuffer Alpha Bits', 'ALPHA_BITS', gl.getParameter(gl.ALPHA_BITS)], ['Framebuffer Depth Bits', 'DEPTH_BITS', gl.getParameter(gl.DEPTH_BITS)], ['Framebuffer Stencil Bits', 'STENCIL_BITS', gl.getParameter(gl.STENCIL_BITS)], ['Framebuffer Subpixel Bits', 'SUBPIXEL_BITS', gl.getParameter(gl.SUBPIXEL_BITS)], ['MSAA Samples', 'SAMPLES', gl.getParameter(gl.SAMPLES)], ['MSAA Sample Buffers', 'SAMPLE_BUFFERS', gl.getParameter(gl.SAMPLE_BUFFERS)], ['Supported Formats for UByte Render Targets ', 'UNSIGNED_BYTE RENDER TARGET FORMATS', [glTextureFloat && checkRenderTargetSupport(gl, gl.RGBA, gl.UNSIGNED_BYTE) ? 'RGBA' : '', glTextureFloat && checkRenderTargetSupport(gl, gl.RGB, gl.UNSIGNED_BYTE) ? 'RGB' : '', glTextureFloat && checkRenderTargetSupport(gl, gl.LUMINANCE, gl.UNSIGNED_BYTE) ? 'LUMINANCE' : '', glTextureFloat && checkRenderTargetSupport(gl, gl.ALPHA, gl.UNSIGNED_BYTE) ? 'ALPHA' : '', glTextureFloat && checkRenderTargetSupport(gl, gl.LUMINANCE_ALPHA, gl.UNSIGNED_BYTE) ? 'LUMINANCE_ALPHA' : ''].join(' ')], ['Supported Formats for Half Float Render Targets', 'HALF FLOAT RENDER TARGET FORMATS', [glTextureHalfFloat && checkRenderTargetSupport(gl, gl.RGBA, glTextureHalfFloat.HALF_FLOAT_OES) ? 'RGBA' : '', glTextureHalfFloat && checkRenderTargetSupport(gl, gl.RGB, glTextureHalfFloat.HALF_FLOAT_OES) ? 'RGB' : '', glTextureHalfFloat && checkRenderTargetSupport(gl, gl.LUMINANCE, glTextureHalfFloat.HALF_FLOAT_OES) ? 'LUMINANCE' : '', glTextureHalfFloat && checkRenderTargetSupport(gl, gl.ALPHA, glTextureHalfFloat.HALF_FLOAT_OES) ? 'ALPHA' : '', glTextureHalfFloat && checkRenderTargetSupport(gl, gl.LUMINANCE_ALPHA, glTextureHalfFloat.HALF_FLOAT_OES) ? 'LUMINANCE_ALPHA' : ''].join(' ')], ['Supported Formats for Full Float Render Targets', 'FLOAT RENDER TARGET FORMATS', [glTextureFloat && checkRenderTargetSupport(gl, gl.RGBA, gl.FLOAT) ? 'RGBA' : '', glTextureFloat && checkRenderTargetSupport(gl, gl.RGB, gl.FLOAT) ? 'RGB' : '', glTextureFloat && checkRenderTargetSupport(gl, gl.LUMINANCE, gl.FLOAT) ? 'LUMINANCE' : '', glTextureFloat && checkRenderTargetSupport(gl, gl.ALPHA, gl.FLOAT) ? 'ALPHA' : '', glTextureFloat && checkRenderTargetSupport(gl, gl.LUMINANCE_ALPHA, gl.FLOAT) ? 'LUMINANCE_ALPHA' : ''].join(' ')], ['Max Multiple Render Targets Buffers', 'MAX_DRAW_BUFFERS_WEBGL', glDrawBuffers ? gl.getParameter(glDrawBuffers.MAX_DRAW_BUFFERS_WEBGL) : 0], ['High Float Precision in Vertex Shader', 'HIGH_FLOAT VERTEX_SHADER', [gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.HIGH_FLOAT).precision, ' (-2', gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.HIGH_FLOAT).rangeMin, ' - 2', gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.HIGH_FLOAT).rangeMax, ')'].join('')], ['Medium Float Precision in Vertex Shader', 'MEDIUM_FLOAT VERTEX_SHADER', [gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.MEDIUM_FLOAT).precision, ' (-2', gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.MEDIUM_FLOAT).rangeMin, ' - 2', gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.MEDIUM_FLOAT).rangeMax, ')'].join('')], ['Low Float Precision in Vertex Shader', 'LOW_FLOAT VERTEX_SHADER', [gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.LOW_FLOAT).precision, ' (-2', gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.LOW_FLOAT).rangeMin, ' - 2', gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.LOW_FLOAT).rangeMax, ')'].join('')], ['High Float Precision in Fragment Shader', 'HIGH_FLOAT FRAGMENT_SHADER', [gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.HIGH_FLOAT).precision, ' (-2', gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.HIGH_FLOAT).rangeMin, ' - 2', gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.HIGH_FLOAT).rangeMax, ')'].join('')], ['Medium Float Precision in Fragment Shader', 'MEDIUM_FLOAT FRAGMENT_SHADER', [gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.MEDIUM_FLOAT).precision, ' (-2', gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.MEDIUM_FLOAT).rangeMin, ' - 2', gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.MEDIUM_FLOAT).rangeMax, ')'].join('')], ['Low Float Precision in Fragment Shader', 'LOW_FLOAT FRAGMENT_SHADER', [gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.LOW_FLOAT).precision, ' (-2', gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.LOW_FLOAT).rangeMin, ' - 2', gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.LOW_FLOAT).rangeMax, ')'].join('')], ['High Int Precision in Vertex Shader', 'HIGH_INT VERTEX_SHADER', [gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.HIGH_INT).precision, ' (-2', gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.HIGH_INT).rangeMin, ' - 2', gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.HIGH_INT).rangeMax, ')'].join('')], ['Medium Int Precision in Vertex Shader', 'MEDIUM_INT VERTEX_SHADER', [gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.MEDIUM_INT).precision, ' (-2', gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.MEDIUM_INT).rangeMin, ' - 2', gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.MEDIUM_INT).rangeMax, ')'].join('')], ['Low Int Precision in Vertex Shader', 'LOW_INT VERTEX_SHADER', [gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.LOW_INT).precision, ' (-2', gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.LOW_INT).rangeMin, ' - 2', gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.LOW_INT).rangeMax, ')'].join('')], ['High Int Precision in Fragment Shader', 'HIGH_INT FRAGMENT_SHADER', [gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.HIGH_INT).precision, ' (-2', gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.HIGH_INT).rangeMin, ' - 2', gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.HIGH_INT).rangeMax, ')'].join('')], ['Medium Int Precision in Fragment Shader', 'MEDIUM_INT FRAGMENT_SHADER', [gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.MEDIUM_INT).precision, ' (-2', gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.MEDIUM_INT).rangeMin, ' - 2', gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.MEDIUM_INT).rangeMax, ')'].join('')], ['Low Int Precision in Fragment Shader', 'LOW_INT FRAGMENT_SHADER', [gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.LOW_INT).precision, ' (-2', gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.LOW_INT).rangeMin, ' - 2', gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.LOW_INT).rangeMax, ')'].join('')], ['Supported Extensions', 'EXTENSIONS', gl.getSupportedExtensions().join('
\t\t\t\t\t ')], ['WebGL Renderer', 'RENDERER', gl.getParameter(gl.RENDERER)], ['WebGL Vendor', 'VENDOR', gl.getParameter(gl.VENDOR)], ['WebGL Version', 'VERSION', gl.getParameter(gl.VERSION)], ['Shading Language Version', 'SHADING_LANGUAGE_VERSION', gl.getParameter(gl.SHADING_LANGUAGE_VERSION)], ['Unmasked Renderer', 'UNMASKED_RENDERER', glDebugRendererInfo && gl.getParameter(glDebugRendererInfo.UNMASKED_RENDERER_WEBGL)], ['Unmasked Vendor', 'UNMASKED_VENDOR', glDebugRendererInfo && gl.getParameter(glDebugRendererInfo.UNMASKED_VENDOR_WEBGL)], ['WebGL Version', 'WEBGL_VERSION', model.webgl2 ? 2 : 1]]; - const result = {}; - while (params.length) { - const [label, key, value] = params.pop(); - if (key) { - result[key] = { - label, - value - }; - } - } - model._glInformation = result; - return result; - }; - publicAPI.traverseAllPasses = () => { - if (model.renderPasses) { - for (let index = 0; index < model.renderPasses.length; ++index) { - model.renderPasses[index].traverse(publicAPI, null); - } - } - publicAPI.copyParentContent(); - if (model.notifyStartCaptureImage) { - getCanvasDataURL(); - } - const childrenRW = model.renderable.getChildRenderWindowsByReference(); - for (let i = 0; i < childrenRW.length; ++i) { - publicAPI.getViewNodeFor(childrenRW[i])?.traverseAllPasses(); - } - }; - publicAPI.copyParentContent = () => { - const rootParent = model.rootOpenGLRenderWindow; - if (!rootParent || !model.context2D || model.children.some(oglRenderer => !!oglRenderer.getSelector?.())) { - return; - } - const parentCanvas = rootParent.getCanvas(); - const selfCanvas = model.canvas; - model.context2D.drawImage(parentCanvas, 0, parentCanvas.height - selfCanvas.height, - // source y axis is inverted - selfCanvas.width, selfCanvas.height, 0, 0, selfCanvas.width, selfCanvas.height); - }; - publicAPI.resizeFromChildRenderWindows = () => { - // Adapt the size of the parent render window to the child render windows - const childrenRW = model.renderable.getChildRenderWindowsByReference(); - if (childrenRW.length > 0) { - const maxSize = [0, 0]; - for (let i = 0; i < childrenRW.length; ++i) { - const childSize = publicAPI.getViewNodeFor(childrenRW[i])?.getSize(); - if (childSize) { - maxSize[0] = childSize[0] > maxSize[0] ? childSize[0] : maxSize[0]; - maxSize[1] = childSize[1] > maxSize[1] ? childSize[1] : maxSize[1]; - } - } - publicAPI.setSize(...maxSize); - } - }; - publicAPI.disableCullFace = () => { - if (model.cullFaceEnabled) { - model.context.disable(model.context.CULL_FACE); - model.cullFaceEnabled = false; - } - }; - publicAPI.enableCullFace = () => { - if (!model.cullFaceEnabled) { - model.context.enable(model.context.CULL_FACE); - model.cullFaceEnabled = true; - } - }; - publicAPI.setViewStream = stream => { - if (model.viewStream === stream) { - return false; - } - if (model.subscription) { - model.subscription.unsubscribe(); - model.subscription = null; - } - model.viewStream = stream; - if (model.viewStream) { - // Force background to be transparent + render - const mainRenderer = model.renderable.getRenderers()[0]; - mainRenderer.getBackgroundByReference()[3] = 0; - - // Enable display of the background image - publicAPI.setUseBackgroundImage(true); - - // Bind to remote stream - model.subscription = model.viewStream.onImageReady(e => publicAPI.setBackgroundImage(e.image)); - model.viewStream.setSize(model.size[0], model.size[1]); - model.viewStream.invalidateCache(); - model.viewStream.render(); - publicAPI.modified(); - } - return true; - }; - publicAPI.createSelector = () => { - const ret = vtkHardwareSelector.newInstance(); - ret.setOpenGLRenderWindow(publicAPI); - return ret; - }; - function clearEvents() { - model.canvas.removeEventListener('webglcontextlost', _preventDefault); - model.canvas.removeEventListener('webglcontextrestored', publicAPI.restoreContext); - } - publicAPI.delete = macro.chain(() => { - if (model.context) { - deleteGLContext(); - } - publicAPI.setContainer(); - publicAPI.setViewStream(); - }, clearEvents, publicAPI.delete); - - // Do not trigger modified for performance reasons - publicAPI.setActiveFramebuffer = newActiveFramebuffer => { - model.activeFramebuffer = newActiveFramebuffer; - }; - const superSetSize = publicAPI.setSize; - publicAPI.setSize = (width, height) => { - const modified = superSetSize(width, height); - if (modified) { - publicAPI.invokeWindowResizeEvent({ - width, - height - }); - } - return modified; - }; - publicAPI.registerGraphicsResourceUser = (coreObject, newUser) => { - // Try to create the graphics resource if it doesn't exist - if (!model._graphicsResources.has(coreObject)) { - publicAPI.setGraphicsResourceForObject(coreObject, null, null); - } - // Add newUser to the set of users - const sharedResource = model._graphicsResources.get(coreObject); - sharedResource?.users.add(newUser); - }; - publicAPI.unregisterGraphicsResourceUser = (coreObject, oldUser) => { - const sharedResource = model._graphicsResources.get(coreObject); - if (!sharedResource) { - return; - } - sharedResource.users.delete(oldUser); - // Release graphics resources when the number of users reaches 0 - if (!sharedResource.users.size) { - sharedResource.oglObject?.releaseGraphicsResources(publicAPI); - model._graphicsResources.delete(coreObject); - } - }; - publicAPI.getGraphicsResourceForObject = coreObject => model._graphicsResources.get(coreObject); - publicAPI.setGraphicsResourceForObject = (coreObject, oglObject, hash) => { - if (!coreObject) { - return; - } - const sharedResource = model._graphicsResources.get(coreObject); - // Release the old resource - sharedResource?.oglObject?.releaseGraphicsResources(publicAPI); - // Keep the same users that have registered for this coreObject - model._graphicsResources.set(coreObject, { - coreObject, - oglObject, - hash, - users: sharedResource?.users ?? new Set() - }); - }; - publicAPI.getGraphicsMemoryInfo = () => { - let memUsed = 0; - model._graphicsResources.forEach(_ref3 => { - let { - oglObject - } = _ref3; - memUsed += oglObject.getAllocatedGPUMemoryInBytes(); - }); - return memUsed; - }; - publicAPI.releaseGraphicsResources = () => { - // Clear the shader cache - if (model.shaderCache !== null) { - model.shaderCache.releaseGraphicsResources(publicAPI); - } - // Free cached graphics resources at the context level - model._graphicsResources.forEach(_ref4 => { - let { - oglObject - } = _ref4; - oglObject.releaseGraphicsResources(publicAPI); - }); - model._graphicsResources.clear(); - if (model.textureUnitManager !== null) { - model.textureUnitManager.freeAll(); - } - // Finally, ask the renderers to release prop resources - model.renderable.getRenderersByReference().forEach(ren => { - const glRen = publicAPI.getViewNodeFor(ren); - glRen?.releaseGraphicsResources(); - }); - }; - - // Proxy some methods if needed - const publicAPIBeforeProxy = { - ...publicAPI - }; - parentMethodsToProxy.forEach(methodName => { - publicAPI[methodName] = function () { - if (model.rootOpenGLRenderWindow) { - // Proxy only methods when the render window has a parent - return model.rootOpenGLRenderWindow[methodName](...arguments); - } - return publicAPIBeforeProxy[methodName](...arguments); - }; - }); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - cullFaceEnabled: false, - shaderCache: null, - initialized: false, - context: null, - context2D: null, - canvas: null, - cursorVisibility: true, - cursor: 'pointer', - textureUnitManager: null, - textureResourceIds: null, - containerSize: null, - renderPasses: [], - notifyStartCaptureImage: false, - webgl2: false, - defaultToWebgl2: true, - // attempt webgl2 on by default - activeFramebuffer: null, - imageFormat: 'image/png', - useOffScreen: false, - useBackgroundImage: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkRenderWindowViewNode.extend(publicAPI, model, initialValues); - - // Create internal instances - if (!model.canvas) { - model.canvas = document.createElement('canvas'); - model.canvas.style.width = '100%'; - } - if (!model.selector) { - model.selector = vtkHardwareSelector.newInstance(); - model.selector.setOpenGLRenderWindow(publicAPI); - } - - // Create internal bgImage - model.bgImage = new Image(); - model.bgImage.style.position = 'absolute'; - model.bgImage.style.left = '0'; - model.bgImage.style.top = '0'; - model.bgImage.style.width = '100%'; - model.bgImage.style.height = '100%'; - model.bgImage.style.zIndex = '-1'; - model._textureResourceIds = new Map(); - model._graphicsResources = new Map(); - model._glInformation = null; - model.myFactory = vtkViewNodeFactory.newInstance(); - model.shaderCache = vtkShaderCache.newInstance(); - model.shaderCache.setOpenGLRenderWindow(publicAPI); - - // setup default forward pass rendering - model.renderPasses[0] = vtkForwardPass.newInstance(); - - // Build VTK API - macro.get(publicAPI, model, ['shaderCache', 'textureUnitManager', 'webgl2', 'useBackgroundImage', 'activeFramebuffer', 'rootOpenGLRenderWindow']); - macro.setGet(publicAPI, model, ['initialized', 'context', 'context2D', 'canvas', 'renderPasses', 'notifyStartCaptureImage', 'defaultToWebgl2', 'cursor', 'useOffScreen']); - macro.setGetArray(publicAPI, model, ['size'], 2); - macro.event(publicAPI, model, 'imageReady'); - macro.event(publicAPI, model, 'windowResizeEvent'); - - // Object methods - vtkOpenGLRenderWindow(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkOpenGLRenderWindow'); - -// ---------------------------------------------------------------------------- -// Register API specific RenderWindow implementation -// ---------------------------------------------------------------------------- - -registerViewConstructor('WebGL', newInstance); - -// ---------------------------------------------------------------------------- - -var vtkRenderWindow = { - newInstance, - extend, - pushMonitorGLContextCount, - popMonitorGLContextCount -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkRenderWindow', newInstance); - -export { vtkRenderWindow as default, extend, newInstance, popMonitorGLContextCount, pushMonitorGLContextCount }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/RenderWindow/ContextProxy.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/RenderWindow/ContextProxy.js deleted file mode 100644 index 8a3b24c7..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/RenderWindow/ContextProxy.js +++ /dev/null @@ -1,61 +0,0 @@ -// This is used to access the underlying 3D context -const GET_UNDERLYING_CONTEXT = '__getUnderlyingContext'; -function createContextProxyHandler() { - const cache = new Map(); - const getParameterHandler = { - apply(target, gl, args) { - if (cache.has(args[0])) { - return cache.get(args[0]); - } - return target.apply(gl, args); - } - }; - - // only supports single-value setters - function cachedSetterHandler(key) { - return { - apply(target, gl, args) { - cache.set(key, args[0]); - return target.apply(gl, args); - } - }; - } - - // When a property is accessed on the webgl context proxy, - // it's accessed is intercepted. If the property name matches - // any of the keys of `propHandlers`, then that handler is called - // with the following arguments: (gl, prop, receiver, propValue) - // - gl (WebGL2RenderingContext): the underlying webgl context - // - propName (string): the property name - // - receiver (Proxy): the webgl context proxy - // - propValue (unknown): the value of `gl[propName]` - - const propHandlers = Object.create(null); - - // Sets getParameter(property) as a cached getter proxy. - // propValue.bind(gl) is to avoid Illegal Invocation errors. - propHandlers.getParameter = (gl, prop, receiver, propValue) => new Proxy(propValue.bind(gl), getParameterHandler); - - // Sets depthMask(flag) as a cached setter proxy. - propHandlers.depthMask = (gl, prop, receiver, propValue) => new Proxy(propValue.bind(gl), cachedSetterHandler(gl.DEPTH_WRITEMASK)); - return { - get(gl, prop, receiver) { - if (prop === GET_UNDERLYING_CONTEXT) return () => gl; - let value = Reflect.get(gl, prop, gl); - if (value instanceof Function) { - // prevents Illegal Invocation errors - value = value.bind(gl); - } - const propHandler = propHandlers[prop]; - if (propHandler) { - return propHandler(gl, prop, receiver, value); - } - return value; - } - }; -} -var ContextProxy = { - createContextProxyHandler -}; - -export { GET_UNDERLYING_CONTEXT, createContextProxyHandler, ContextProxy as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/RenderWindow/resourceSharingHelper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/RenderWindow/resourceSharingHelper.d.ts deleted file mode 100644 index 7c777c44..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/RenderWindow/resourceSharingHelper.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import vtkImageData from '../../../Common/DataModel/ImageData'; -import vtkDataArray from '../../../Common/Core/DataArray'; -import { vtkObject } from '../../../interfaces'; - -/** - * Compute and return a hash than can be used for caching resources - * - * @param transferFunction The transfer function, it can be any vtkObject, but is usually a vtkTransferFunction - * @param useIndependentComponents A boolean taken from the image or volume property, using getIndependentComponents() - * @param numberOfComponents Taken from the data array, using getNumberOfComponents() - */ -export function getTransferFunctionsHash( - transferFunctions: (vtkObject | null | undefined)[], - useIndependentComponents: boolean, - numberOfComponents: number -): string; - -/** - * Compute and return a hash than can be used for caching resources - * - * @param image The image data that contains the scalars - * @param scalars The scalars used for rendering - */ -export function getImageDataHash( - image: vtkImageData, - scalars: vtkDataArray -): string; - -declare const defaultExport: { - getTransferFunctionsHash: typeof getTransferFunctionsHash; - getImageDataHash: typeof getImageDataHash; -}; - -export default defaultExport; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/RenderWindow/resourceSharingHelper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/RenderWindow/resourceSharingHelper.js deleted file mode 100644 index 75cb7504..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/RenderWindow/resourceSharingHelper.js +++ /dev/null @@ -1,17 +0,0 @@ -// See typescript header for documentation - -function getTransferFunctionsHash(transferFunctions, useIndependentComponents, numberOfComponents) { - return transferFunctions.length > 0 ? `${transferFunctions.map(tf => tf?.getMTime() ?? 'x').join('/')}-${useIndependentComponents}-${numberOfComponents}` : '0'; -} -function getImageDataHash(image, scalars) { - // Don't use the image data, as the scalars will define the texture - // If using the image data in the hash, it will cause issues when two image data - // using the same scalars are in the same mapper (for example the VolumeMapper) - return `${scalars.getMTime()}`; -} -var resourceSharingHelper = { - getTransferFunctionsHash, - getImageDataHash -}; - -export { resourceSharingHelper as default, getImageDataHash, getTransferFunctionsHash }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Renderer.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Renderer.js deleted file mode 100644 index f4406d2f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Renderer.js +++ /dev/null @@ -1,213 +0,0 @@ -import { n as newInstance$1, g as get, e as setGet, i as moveToProtected, c as macro } from '../../macros2.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -const { - vtkDebugMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkOpenGLRenderer methods -// ---------------------------------------------------------------------------- -/* eslint-disable no-bitwise */ - -function vtkOpenGLRenderer(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLRenderer'); - - // Builds myself. - publicAPI.buildPass = prepass => { - if (prepass) { - if (!model.renderable) { - return; - } - publicAPI.updateLights(); - publicAPI.prepareNodes(); - publicAPI.addMissingNode(model.renderable.getActiveCamera()); - publicAPI.addMissingNodes(model.renderable.getViewPropsWithNestedProps(), true); - publicAPI.removeUnusedNodes(); - } - }; - publicAPI.updateLights = () => { - let count = 0; - const lights = model.renderable.getLightsByReference(); - for (let index = 0; index < lights.length; ++index) { - if (lights[index].getSwitch() > 0.0) { - count++; - } - } - if (!count) { - vtkDebugMacro('No lights are on, creating one.'); - model.renderable.createLight(); - } - return count; - }; - publicAPI.zBufferPass = prepass => { - if (prepass) { - let clearMask = 0; - const gl = model.context; - if (!model.renderable.getTransparent()) { - model.context.clearColor(1.0, 0.0, 0.0, 1.0); - clearMask |= gl.COLOR_BUFFER_BIT; - } - if (!model.renderable.getPreserveDepthBuffer()) { - gl.clearDepth(1.0); - clearMask |= gl.DEPTH_BUFFER_BIT; - model.context.depthMask(true); - } - const ts = publicAPI.getTiledSizeAndOrigin(); - gl.enable(gl.SCISSOR_TEST); - gl.scissor(ts.lowerLeftU, ts.lowerLeftV, ts.usize, ts.vsize); - gl.viewport(ts.lowerLeftU, ts.lowerLeftV, ts.usize, ts.vsize); - gl.colorMask(true, true, true, true); - if (clearMask) { - gl.clear(clearMask); - } - gl.enable(gl.DEPTH_TEST); - } - }; - publicAPI.opaqueZBufferPass = prepass => publicAPI.zBufferPass(prepass); - - // Renders myself - publicAPI.cameraPass = prepass => { - if (prepass) { - publicAPI.clear(); - } - }; - publicAPI.getAspectRatio = () => { - const size = model._parent.getSizeByReference(); - const viewport = model.renderable.getViewportByReference(); - return size[0] * (viewport[2] - viewport[0]) / ((viewport[3] - viewport[1]) * size[1]); - }; - publicAPI.getTiledSizeAndOrigin = () => { - const vport = model.renderable.getViewportByReference(); - - // if there is no window assume 0 1 - const tileViewPort = [0.0, 0.0, 1.0, 1.0]; - - // find the lower left corner of the viewport, taking into account the - // lower left boundary of this tile - const vpu = vport[0] - tileViewPort[0]; - const vpv = vport[1] - tileViewPort[1]; - - // store the result as a pixel value - const ndvp = model._parent.normalizedDisplayToDisplay(vpu, vpv); - const lowerLeftU = Math.round(ndvp[0]); - const lowerLeftV = Math.round(ndvp[1]); - - // find the upper right corner of the viewport, taking into account the - // lower left boundary of this tile - const vpu2 = vport[2] - tileViewPort[0]; - const vpv2 = vport[3] - tileViewPort[1]; - const ndvp2 = model._parent.normalizedDisplayToDisplay(vpu2, vpv2); - - // now compute the size of the intersection of the viewport with the - // current tile - let usize = Math.round(ndvp2[0]) - lowerLeftU; - let vsize = Math.round(ndvp2[1]) - lowerLeftV; - if (usize < 0) { - usize = 0; - } - if (vsize < 0) { - vsize = 0; - } - return { - usize, - vsize, - lowerLeftU, - lowerLeftV - }; - }; - publicAPI.clear = () => { - let clearMask = 0; - const gl = model.context; - if (!model.renderable.getTransparent()) { - const background = model.renderable.getBackgroundByReference(); - // renderable ensures that background has 4 entries. - gl.clearColor(background[0], background[1], background[2], background[3]); - clearMask |= gl.COLOR_BUFFER_BIT; - } - if (!model.renderable.getPreserveDepthBuffer()) { - gl.clearDepth(1.0); - clearMask |= gl.DEPTH_BUFFER_BIT; - gl.depthMask(true); - } - gl.colorMask(true, true, true, true); - const ts = publicAPI.getTiledSizeAndOrigin(); - gl.enable(gl.SCISSOR_TEST); - gl.scissor(ts.lowerLeftU, ts.lowerLeftV, ts.usize, ts.vsize); - gl.viewport(ts.lowerLeftU, ts.lowerLeftV, ts.usize, ts.vsize); - if (clearMask) { - gl.clear(clearMask); - } - gl.enable(gl.DEPTH_TEST); - /* eslint-enable no-bitwise */ - }; - - publicAPI.releaseGraphicsResources = () => { - if (model.selector !== null) { - model.selector.releaseGraphicsResources(); - } - // Releasing resources means that the next render should re-create resources - if (model.renderable) { - model.renderable.getViewProps().forEach(prop => { - prop.modified(); - }); - } - }; - publicAPI.setOpenGLRenderWindow = rw => { - if (model._openGLRenderWindow === rw) { - return; - } - publicAPI.releaseGraphicsResources(); - model._openGLRenderWindow = rw; - model.context = null; - if (rw) { - model.context = model._openGLRenderWindow.getContext(); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - context: null, - _openGLRenderWindow: null, - selector: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - - // Build VTK API - get(publicAPI, model, ['shaderCache']); - setGet(publicAPI, model, ['selector']); - moveToProtected(publicAPI, model, ['openGLRenderWindow']); - - // Object methods - vtkOpenGLRenderer(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkOpenGLRenderer'); - -// ---------------------------------------------------------------------------- - -var vtkRenderer = { - newInstance, - extend -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkRenderer', newInstance); - -export { vtkRenderer as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ReplacementShaderMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ReplacementShaderMapper.js deleted file mode 100644 index 1a92cb5e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ReplacementShaderMapper.js +++ /dev/null @@ -1,104 +0,0 @@ -import vtkShaderProgram from './ShaderProgram.js'; - -function implementReplaceShaderCoincidentOffset(publicAPI, model) { - publicAPI.replaceShaderCoincidentOffset = (shaders, ren, actor) => { - const cp = publicAPI.getCoincidentParameters(ren, actor); - - // if we need an offset handle it here - // The value of .000016 is suitable for depth buffers - // of at least 16 bit depth. We do not query the depth - // right now because we would need some mechanism to - // cache the result taking into account FBO changes etc. - if (cp && (cp.factor !== 0.0 || cp.offset !== 0.0)) { - let FSSource = shaders.Fragment; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Coincident::Dec', ['uniform float cfactor;', 'uniform float coffset;']).result; - if (model.context.getExtension('EXT_frag_depth')) { - if (cp.factor !== 0.0) { - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::UniformFlow::Impl', ['float cscale = length(vec2(dFdx(gl_FragCoord.z),dFdy(gl_FragCoord.z)));', '//VTK::UniformFlow::Impl'], false).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Depth::Impl', 'gl_FragDepthEXT = gl_FragCoord.z + cfactor*cscale + 0.000016*coffset;').result; - } else { - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Depth::Impl', 'gl_FragDepthEXT = gl_FragCoord.z + 0.000016*coffset;').result; - } - } - if (model._openGLRenderWindow.getWebgl2()) { - if (cp.factor !== 0.0) { - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::UniformFlow::Impl', ['float cscale = length(vec2(dFdx(gl_FragCoord.z),dFdy(gl_FragCoord.z)));', '//VTK::UniformFlow::Impl'], false).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Depth::Impl', 'gl_FragDepth = gl_FragCoord.z + cfactor*cscale + 0.000016*coffset;').result; - } else { - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Depth::Impl', 'gl_FragDepth = gl_FragCoord.z + 0.000016*coffset;').result; - } - } - shaders.Fragment = FSSource; - } - }; -} -function implementBuildShadersWithReplacements(publicAPI, model) { - publicAPI.applyShaderReplacements = (shaders, viewSpec, pre) => { - let shaderReplacements = null; - if (viewSpec) { - shaderReplacements = viewSpec.ShaderReplacements; - } - if (shaderReplacements) { - for (let i = 0; i < shaderReplacements.length; i++) { - const currReplacement = shaderReplacements[i]; - if (pre && currReplacement.replaceFirst || !pre && !currReplacement.replaceFirst) { - const shaderType = currReplacement.shaderType; - const ssrc = shaders[shaderType]; - const substituteRes = vtkShaderProgram.substitute(ssrc, currReplacement.originalValue, currReplacement.replacementValue, currReplacement.replaceAll); - shaders[shaderType] = substituteRes.result; - } - } - } - }; - publicAPI.buildShaders = (shaders, ren, actor) => { - publicAPI.getReplacedShaderTemplate(shaders, ren, actor); - model.lastRenderPassShaderReplacement = model.currentRenderPass ? model.currentRenderPass.getShaderReplacement() : null; - - // apply any renderPassReplacements - if (model.lastRenderPassShaderReplacement) { - model.lastRenderPassShaderReplacement(shaders); - } - const openGLSpec = model.renderable.getViewSpecificProperties().OpenGL; - - // user specified pre replacements - publicAPI.applyShaderReplacements(shaders, openGLSpec, true); - publicAPI.replaceShaderValues(shaders, ren, actor); - - // user specified post replacements - publicAPI.applyShaderReplacements(shaders, openGLSpec); - }; - publicAPI.getReplacedShaderTemplate = (shaders, ren, actor) => { - const openGLSpecProp = model.renderable.getViewSpecificProperties().OpenGL; - publicAPI.getShaderTemplate(shaders, ren, actor); - let vertexShaderCode = shaders.Vertex; - if (openGLSpecProp) { - const vertexSpecProp = openGLSpecProp.VertexShaderCode; - if (vertexSpecProp !== undefined && vertexSpecProp !== '') { - vertexShaderCode = vertexSpecProp; - } - } - shaders.Vertex = vertexShaderCode; - let fragmentShaderCode = shaders.Fragment; - if (openGLSpecProp) { - const fragmentSpecProp = openGLSpecProp.FragmentShaderCode; - if (fragmentSpecProp !== undefined && fragmentSpecProp !== '') { - fragmentShaderCode = fragmentSpecProp; - } - } - shaders.Fragment = fragmentShaderCode; - let geometryShaderCode = shaders.Geometry; - if (openGLSpecProp) { - const geometrySpecProp = openGLSpecProp.GeometryShaderCode; - if (geometrySpecProp !== undefined) { - geometryShaderCode = geometrySpecProp; - } - } - shaders.Geometry = geometryShaderCode; - }; -} -var vtkReplacementShaderMapper = { - implementReplaceShaderCoincidentOffset, - implementBuildShadersWithReplacements -}; - -export { vtkReplacementShaderMapper as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ScalarBarActor.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ScalarBarActor.js deleted file mode 100644 index c742fb34..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ScalarBarActor.js +++ /dev/null @@ -1,70 +0,0 @@ -import { n as newInstance$1 } from '../../macros2.js'; -import vtkScalarBarActor from '../Core/ScalarBarActor.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -// ---------------------------------------------------------------------------- -// vtkOpenGLScalarBarActor methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLScalarBarActor(publicAPI, model) { - model.classHierarchy.push('vtkOpenGLScalarBarActor'); - - // Builds myself. - publicAPI.buildPass = prepass => { - if (prepass) { - model._openGLRenderer = publicAPI.getFirstAncestorOfType('vtkOpenGLRenderer'); - model._openGLRenderWindow = model._openGLRenderer.getParent(); - if (!model.scalarBarActorHelper.getRenderable()) { - model.scalarBarActorHelper.setRenderable(model.renderable); - } - publicAPI.prepareNodes(); - publicAPI.addMissingNode(model.scalarBarActorHelper.getBarActor()); - publicAPI.addMissingNode(model.scalarBarActorHelper.getTmActor()); - publicAPI.removeUnusedNodes(); - } - }; - publicAPI.opaquePass = (prepass, renderPass) => { - if (prepass) { - const camera = model._openGLRenderer ? model._openGLRenderer.getRenderable().getActiveCamera() : null; - const tsize = model._openGLRenderer.getTiledSizeAndOrigin(); - model.scalarBarActorHelper.updateAPISpecificData([tsize.usize, tsize.vsize], camera, model._openGLRenderWindow.getRenderable()); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - model.scalarBarActorHelper = vtkScalarBarActor.newScalarBarActorHelper(); - - // Object methods - vtkOpenGLScalarBarActor(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkOpenGLScalarBarActor'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkScalarBarActor', newInstance); - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Shader.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Shader.js deleted file mode 100644 index d72e2fa4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Shader.js +++ /dev/null @@ -1,102 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -const { - vtkErrorMacro -} = macro; - -// export const SHADER_TYPES = ['Vertex', 'Fragment', 'Geometry', 'Unknown']; - -// ---------------------------------------------------------------------------- -// vtkShader methods -// ---------------------------------------------------------------------------- - -function vtkShader(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkShader'); - publicAPI.compile = () => { - let stype = model.context.VERTEX_SHADER; - if (!model.source || !model.source.length || model.shaderType === 'Unknown') { - return false; - } - - // Ensure we delete the previous shader if necessary. - if (model.handle !== 0) { - model.context.deleteShader(model.handle); - model.handle = 0; - } - switch (model.shaderType) { - // case vtkShader::Geometry: - // type = GL_GEOMETRY_SHADER; - // break; - case 'Fragment': - stype = model.context.FRAGMENT_SHADER; - break; - case 'Vertex': - default: - stype = model.context.VERTEX_SHADER; - break; - } - model.handle = model.context.createShader(stype); - model.context.shaderSource(model.handle, model.source); - model.context.compileShader(model.handle); - const isCompiled = model.context.getShaderParameter(model.handle, model.context.COMPILE_STATUS); - if (!isCompiled) { - const lastError = model.context.getShaderInfoLog(model.handle); - vtkErrorMacro(`Error compiling shader '${model.source}': ${lastError}`); - model.context.deleteShader(model.handle); - model.handle = 0; - return false; - } - - // The shader compiled, store its handle and return success. - return true; - }; - publicAPI.cleanup = () => { - if (model.shaderType === 'Unknown' || model.handle === 0) { - return; - } - model.context.deleteShader(model.handle); - model.handle = 0; - model.dirty = true; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - shaderType: 'Unknown', - source: '', - error: '', - handle: 0, - dirty: false, - context: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['shaderType', 'source', 'error', 'handle', 'context']); - - // Object methods - vtkShader(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkShader'); - -// ---------------------------------------------------------------------------- - -var vtkShader$1 = { - newInstance, - extend -}; - -export { vtkShader$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ShaderCache.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ShaderCache.js deleted file mode 100644 index be489125..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ShaderCache.js +++ /dev/null @@ -1,185 +0,0 @@ -import Md5 from 'spark-md5'; -import { m as macro } from '../../macros2.js'; -import vtkShaderProgram from './ShaderProgram.js'; - -// ---------------------------------------------------------------------------- - -const SET_GET_FIELDS = ['lastShaderProgramBound', 'context', '_openGLRenderWindow']; - -// ---------------------------------------------------------------------------- -// vtkShaderCache methods -// ---------------------------------------------------------------------------- - -function vtkShaderCache(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkShaderCache'); - publicAPI.replaceShaderValues = (VSSource, FSSource, GSSource) => { - // first handle renaming any Fragment shader inputs - // if we have a geometry shader. By default fragment shaders - // assume their inputs come from a Vertex Shader. When we - // have a Geometry shader we rename the frament shader inputs - // to come from the geometry shader - - let nFSSource = FSSource; - if (GSSource.length > 0) { - nFSSource = vtkShaderProgram.substitute(nFSSource, 'VSOut', 'GSOut').result; - } - const gl2 = model._openGLRenderWindow.getWebgl2(); - let fragDepthString = '\n'; - let version = '#version 100\n'; - if (gl2) { - version = '#version 300 es\n' + '#define attribute in\n' + '#define textureCube texture\n' + '#define texture2D texture\n' + '#define textureCubeLod textureLod\n' + '#define texture2DLod textureLod\n'; - } else { - model.context.getExtension('OES_standard_derivatives'); - if (model.context.getExtension('EXT_frag_depth')) { - fragDepthString = '#extension GL_EXT_frag_depth : enable\n'; - } - if (model.context.getExtension('EXT_shader_texture_lod')) { - fragDepthString += '#extension GL_EXT_shader_texture_lod : enable\n' + '#define textureCubeLod textureCubeLodEXT\n' + '#define texture2DLod texture2DLodEXT'; - } - } - nFSSource = vtkShaderProgram.substitute(nFSSource, '//VTK::System::Dec', [`${version}\n`, gl2 ? '' : '#extension GL_OES_standard_derivatives : enable\n', fragDepthString, '#ifdef GL_FRAGMENT_PRECISION_HIGH', 'precision highp float;', 'precision highp int;', '#else', 'precision mediump float;', 'precision mediump int;', '#endif']).result; - let nVSSource = vtkShaderProgram.substitute(VSSource, '//VTK::System::Dec', [`${version}\n`, '#ifdef GL_FRAGMENT_PRECISION_HIGH', 'precision highp float;', 'precision highp int;', '#else', 'precision mediump float;', 'precision mediump int;', '#endif']).result; - if (gl2) { - nVSSource = vtkShaderProgram.substitute(nVSSource, 'varying', 'out').result; - nFSSource = vtkShaderProgram.substitute(nFSSource, 'varying', 'in').result; - let shaderOutputs = ''; - let outputCount = 0; - while (nFSSource.includes(`gl_FragData[${outputCount}]`)) { - nFSSource = vtkShaderProgram.substitute(nFSSource, `gl_FragData\\[${outputCount}\\]`, `fragOutput${outputCount}`).result; - shaderOutputs += `layout(location = ${outputCount}) out vec4 fragOutput${outputCount};\n`; - outputCount++; - } - nFSSource = vtkShaderProgram.substitute(nFSSource, '//VTK::Output::Dec', shaderOutputs).result; - } - - // nFSSource = ShaderProgram.substitute(nFSSource, 'gl_FragData\\[0\\]', - // 'gl_FragColor').result; - - const nGSSource = vtkShaderProgram.substitute(GSSource, '//VTK::System::Dec', version).result; - return { - VSSource: nVSSource, - FSSource: nFSSource, - GSSource: nGSSource - }; - }; - - // return NULL if there is an issue - publicAPI.readyShaderProgramArray = (vertexCode, fragmentCode, geometryCode) => { - const data = publicAPI.replaceShaderValues(vertexCode, fragmentCode, geometryCode); - const shaderProgram = publicAPI.getShaderProgram(data.VSSource, data.FSSource, data.GSSource); - return publicAPI.readyShaderProgram(shaderProgram); - }; - publicAPI.readyShaderProgram = program => { - if (!program) { - return null; - } - - // compile if needed - if (!program.getCompiled() && !program.compileShader()) { - return null; - } - - // bind if needed - if (!publicAPI.bindShaderProgram(program)) { - return null; - } - return program; - }; - publicAPI.getShaderProgram = (vertexCode, fragmentCode, geometryCode) => { - // compute the MD5 and the check the map - const hashInput = `${vertexCode}${fragmentCode}${geometryCode}`; - const result = Md5.hash(hashInput); - - // does it already exist? - if (!(result in model.shaderPrograms)) { - // create one - const sps = vtkShaderProgram.newInstance(); - sps.setContext(model.context); - sps.getVertexShader().setSource(vertexCode); - sps.getFragmentShader().setSource(fragmentCode); - if (geometryCode) { - sps.getGeometryShader().setSource(geometryCode); - } - sps.setMd5Hash(result); - model.shaderPrograms[result] = sps; - return sps; - } - return model.shaderPrograms[result]; - }; - publicAPI.releaseGraphicsResources = win => { - // NOTE: - // In the current implementation as of October 26th, if a shader - // program is created by ShaderCache then it should make sure - // that it releases the graphics resources used by these programs. - // It is not wisely for callers to do that since then they would - // have to loop over all the programs were in use and invoke - // release graphics resources individually. - - publicAPI.releaseCurrentShaderProgram(); - Object.keys(model.shaderPrograms).map(key => model.shaderPrograms[key]).forEach(sp => sp.cleanup()); - model.shaderPrograms = {}; - }; - publicAPI.releaseCurrentShaderProgram = () => { - // release prior shader - if (model.lastShaderProgramBound) { - model.lastShaderProgramBound.cleanup(); - model.lastShaderProgramBound = null; - } - }; - publicAPI.bindShaderProgram = program => { - if (model.lastShaderProgramBound === program) { - return 1; - } - - // release prior program - if (model.lastShaderProgramBound) { - model.lastShaderProgramBound.release(); - } - program.bind(); - model.lastShaderProgramBound = program; - return 1; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - lastShaderProgramBound: null, - shaderPrograms: null, - context: null - // _openGLRenderWindow: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Internal objects - model.shaderPrograms = {}; - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, SET_GET_FIELDS); - macro.moveToProtected(publicAPI, model, ['openGLRenderWindow']); - - // Object methods - vtkShaderCache(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkShaderCache'); - -// ---------------------------------------------------------------------------- - -var vtkShaderCache$1 = { - newInstance, - extend -}; - -export { vtkShaderCache$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ShaderProgram.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ShaderProgram.js deleted file mode 100644 index 0e790605..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ShaderProgram.js +++ /dev/null @@ -1,560 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkShader from './Shader.js'; - -const { - vtkErrorMacro -} = macro; - -// perform in place string substitutions, indicate if a substitution was done -// this is useful for building up shader strings which typically involve -// lots of string substitutions. Return true if a substitution was done. -function substitute(source, search, replace, all) { - // We only accept strings or array of strings, typeof is faster than Array.isArray - const replaceStr = typeof replace === 'string' ? replace : replace.join('\n'); - - // We don't need to instantiate a RegExp if we don't want a global substitution. - // In all other cases, we need to take the provided string or RegExp and - // instantiate a new one to add the `g` flag. - // Argument defaults are transpiled to slow `arguments`-based operations - // better assume undefined as flag to know if the value is set or not - const replaceSearch = all === false ? search : new RegExp(search, 'g'); - const resultstr = source.replace(replaceSearch, replaceStr); - return { - // If the result is different than the input, we did perform a replacement - replace: resultstr !== replaceStr, - result: resultstr - }; -} - -// ---------------------------------------------------------------------------- -// vtkShaderProgram methods -// ---------------------------------------------------------------------------- - -function vtkShaderProgram(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkShaderProgram'); - publicAPI.compileShader = () => { - if (!model.vertexShader.compile()) { - vtkErrorMacro(model.vertexShader.getSource().split('\n').map((line, index) => `${index}: ${line}`).join('\n')); - vtkErrorMacro(model.vertexShader.getError()); - return 0; - } - if (!model.fragmentShader.compile()) { - vtkErrorMacro(model.fragmentShader.getSource().split('\n').map((line, index) => `${index}: ${line}`).join('\n')); - vtkErrorMacro(model.fragmentShader.getError()); - return 0; - } - // skip geometry for now - if (!publicAPI.attachShader(model.vertexShader)) { - vtkErrorMacro(model.error); - return 0; - } - if (!publicAPI.attachShader(model.fragmentShader)) { - vtkErrorMacro(model.error); - return 0; - } - if (!publicAPI.link()) { - vtkErrorMacro(`Links failed: ${model.error}`); - return 0; - } - publicAPI.setCompiled(true); - return 1; - }; - publicAPI.cleanup = () => { - if (model.shaderType === 'Unknown' || model.handle === 0) { - return; - } - publicAPI.release(); - if (model.vertexShaderHandle !== 0) { - model.context.detachShader(model.handle, model.vertexShaderHandle); - model.vertexShaderHandle = 0; - } - if (model.fragmentShaderHandle !== 0) { - model.context.detachShader(model.handle, model.fragmentShaderHandle); - model.fragmentShaderHandle = 0; - } - model.context.deleteProgram(model.handle); - model.handle = 0; - publicAPI.setCompiled(false); - }; - publicAPI.bind = () => { - if (!model.linked && !publicAPI.link()) { - return false; - } - model.context.useProgram(model.handle); - publicAPI.setBound(true); - return true; - }; - publicAPI.isBound = () => !!model.bound; - publicAPI.release = () => { - model.context.useProgram(null); - publicAPI.setBound(false); - }; - publicAPI.setContext = ctx => { - model.vertexShader.setContext(ctx); - model.fragmentShader.setContext(ctx); - model.geometryShader.setContext(ctx); - }; - publicAPI.link = () => { - if (model.linked) { - return true; - } - if (model.handle === 0) { - model.error = 'Program has not been initialized, and/or does not have shaders.'; - return false; - } - - // clear out the list of uniforms used - model.uniformLocs = {}; - model.context.linkProgram(model.handle); - const isCompiled = model.context.getProgramParameter(model.handle, model.context.LINK_STATUS); - if (!isCompiled) { - const lastError = model.context.getProgramInfoLog(model.handle); - vtkErrorMacro(`Error linking shader ${lastError}`); - model.handle = 0; - return false; - } - publicAPI.setLinked(true); - model.attributeLocs = {}; - return true; - }; - publicAPI.setUniformMatrix = (name, v) => { - const location = publicAPI.findUniform(name); - if (location === -1) { - model.error = `Could not set uniform ${name} . No such uniform.`; - return false; - } - const f32 = new Float32Array(v); - model.context.uniformMatrix4fv(location, false, f32); - return true; - }; - publicAPI.setUniformMatrix3x3 = (name, v) => { - const location = publicAPI.findUniform(name); - if (location === -1) { - model.error = `Could not set uniform ${name} . No such uniform.`; - return false; - } - const f32 = new Float32Array(v); - model.context.uniformMatrix3fv(location, false, f32); - return true; - }; - publicAPI.setUniformf = (name, v) => { - const location = publicAPI.findUniform(name); - if (location === -1) { - model.error = `Could not set uniform ${name} . No such uniform.`; - return false; - } - model.context.uniform1f(location, v); - return true; - }; - publicAPI.setUniformfv = (name, v) => { - const location = publicAPI.findUniform(name); - if (location === -1) { - model.error = `Could not set uniform ${name} . No such uniform.`; - return false; - } - model.context.uniform1fv(location, v); - return true; - }; - publicAPI.setUniformi = (name, v) => { - const location = publicAPI.findUniform(name); - if (location === -1) { - model.error = `Could not set uniform ${name} . No such uniform.`; - return false; - } - model.context.uniform1i(location, v); - return true; - }; - publicAPI.setUniformiv = (name, v) => { - const location = publicAPI.findUniform(name); - if (location === -1) { - model.error = `Could not set uniform ${name} . No such uniform.`; - return false; - } - model.context.uniform1iv(location, v); - return true; - }; - publicAPI.setUniform2f = (name, v1, v2) => { - const location = publicAPI.findUniform(name); - if (location === -1) { - model.error = `Could not set uniform ${name} . No such uniform.`; - return false; - } - if (v2 === undefined) { - throw new RangeError('Invalid number of values for array'); - } - model.context.uniform2f(location, v1, v2); - return true; - }; - publicAPI.setUniform2fv = (name, v) => { - const location = publicAPI.findUniform(name); - if (location === -1) { - model.error = `Could not set uniform ${name} . No such uniform.`; - return false; - } - model.context.uniform2fv(location, v); - return true; - }; - publicAPI.setUniform2i = (name, v1, v2) => { - const location = publicAPI.findUniform(name); - if (location === -1) { - model.error = `Could not set uniform ${name} . No such uniform.`; - return false; - } - if (v2 === undefined) { - throw new RangeError('Invalid number of values for array'); - } - model.context.uniform2i(location, v1, v2); - return true; - }; - publicAPI.setUniform2iv = (name, v) => { - const location = publicAPI.findUniform(name); - if (location === -1) { - model.error = `Could not set uniform ${name} . No such uniform.`; - return false; - } - model.context.uniform2iv(location, v); - return true; - }; - publicAPI.setUniform3f = (name, a1, a2, a3) => { - const location = publicAPI.findUniform(name); - if (location === -1) { - model.error = `Could not set uniform ${name} . No such uniform.`; - return false; - } - if (a3 === undefined) { - throw new RangeError('Invalid number of values for array'); - } - model.context.uniform3f(location, a1, a2, a3); - return true; - }; - publicAPI.setUniform3fArray = (name, a) => { - const location = publicAPI.findUniform(name); - if (location === -1) { - model.error = `Could not set uniform ${name} . No such uniform.`; - return false; - } - if (!Array.isArray(a) || a.length !== 3) { - throw new RangeError('Invalid number of values for array'); - } - model.context.uniform3f(location, a[0], a[1], a[2]); - return true; - }; - publicAPI.setUniform3fv = (name, v) => { - const location = publicAPI.findUniform(name); - if (location === -1) { - model.error = `Could not set uniform ${name} . No such uniform.`; - return false; - } - model.context.uniform3fv(location, v); - return true; - }; - publicAPI.setUniform3i = function (name) { - const location = publicAPI.findUniform(name); - if (location === -1) { - model.error = `Could not set uniform ${name} . No such uniform.`; - return false; - } - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - let array = args; - // allow an array passed as a single argument - if (array.length === 1 && Array.isArray(array[0])) { - array = array[0]; - } - if (array.length !== 3) { - throw new RangeError('Invalid number of values for array'); - } - model.context.uniform3i(location, array[0], array[1], array[2]); - return true; - }; - publicAPI.setUniform3iv = (name, v) => { - const location = publicAPI.findUniform(name); - if (location === -1) { - model.error = `Could not set uniform ${name} . No such uniform.`; - return false; - } - model.context.uniform3iv(location, v); - return true; - }; - publicAPI.setUniform4f = function (name) { - const location = publicAPI.findUniform(name); - if (location === -1) { - model.error = `Could not set uniform ${name} . No such uniform.`; - return false; - } - for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; - } - let array = args; - // allow an array passed as a single argument - if (array.length === 1 && Array.isArray(array[0])) { - array = array[0]; - } - if (array.length !== 4) { - throw new RangeError('Invalid number of values for array'); - } - model.context.uniform4f(location, array[0], array[1], array[2], array[3]); - return true; - }; - publicAPI.setUniform4fv = (name, v) => { - const location = publicAPI.findUniform(name); - if (location === -1) { - model.error = `Could not set uniform ${name} . No such uniform.`; - return false; - } - model.context.uniform4fv(location, v); - return true; - }; - publicAPI.setUniform4i = function (name) { - const location = publicAPI.findUniform(name); - if (location === -1) { - model.error = `Could not set uniform ${name} . No such uniform.`; - return false; - } - for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) { - args[_key3 - 1] = arguments[_key3]; - } - let array = args; - // allow an array passed as a single argument - if (array.length === 1 && Array.isArray(array[0])) { - array = array[0]; - } - if (array.length !== 4) { - throw new RangeError('Invalid number of values for array'); - } - model.context.uniform4i(location, array[0], array[1], array[2], array[3]); - return true; - }; - publicAPI.setUniform4iv = (name, v) => { - const location = publicAPI.findUniform(name); - if (location === -1) { - model.error = `Could not set uniform ${name} . No such uniform.`; - return false; - } - model.context.uniform4iv(location, v); - return true; - }; - publicAPI.findUniform = name => { - if (!name || !model.linked) { - return -1; - } - - // see if we have cached the result - let loc = model.uniformLocs[name]; - if (loc !== undefined) { - return loc; - } - loc = model.context.getUniformLocation(model.handle, name); - if (loc === null) { - model.error = `Uniform ${name} not found in current shader program.`; - model.uniformLocs[name] = -1; - return -1; - } - model.uniformLocs[name] = loc; - return loc; - }; - publicAPI.isUniformUsed = name => { - if (!name) { - return false; - } - - // see if we have cached the result - let loc = model.uniformLocs[name]; - if (loc !== undefined) { - return loc !== null; - } - if (!model.linked) { - vtkErrorMacro('attempt to find uniform when the shader program is not linked'); - return false; - } - loc = model.context.getUniformLocation(model.handle, name); - model.uniformLocs[name] = loc; - if (loc === null) { - return false; - } - return true; - }; - publicAPI.isAttributeUsed = name => { - if (!name) { - return false; - } - - // see if we have cached the result - if (name in model.attributeLocs) { - return true; - } - if (!model.linked) { - vtkErrorMacro('attempt to find uniform when the shader program is not linked'); - return false; - } - const loc = model.context.getAttribLocation(model.handle, name); - if (loc === -1) { - return false; - } - model.attributeLocs[name] = loc; - return true; - }; - publicAPI.attachShader = shader => { - if (shader.getHandle() === 0) { - model.error = 'Shader object was not initialized, cannot attach it.'; - return false; - } - if (shader.getShaderType() === 'Unknown') { - model.error = 'Shader object is of type Unknown and cannot be used.'; - return false; - } - if (model.handle === 0) { - const thandle = model.context.createProgram(); - if (thandle === 0) { - model.error = 'Could not create shader program.'; - return false; - } - model.handle = thandle; - model.linked = false; - } - if (shader.getShaderType() === 'Vertex') { - if (model.vertexShaderHandle !== 0) { - model.context.detachShader(model.handle, model.vertexShaderHandle); - } - model.vertexShaderHandle = shader.getHandle(); - } - if (shader.getShaderType() === 'Fragment') { - if (model.fragmentShaderHandle !== 0) { - model.context.detachShader(model.handle, model.fragmentShaderHandle); - } - model.fragmentShaderHandle = shader.getHandle(); - } - model.context.attachShader(model.handle, shader.getHandle()); - publicAPI.setLinked(false); - return true; - }; - publicAPI.detachShader = shader => { - if (shader.getHandle() === 0) { - model.error = 'shader object was not initialized, cannot attach it.'; - return false; - } - if (shader.getShaderType() === 'Unknown') { - model.error = 'Shader object is of type Unknown and cannot be used.'; - return false; - } - if (model.handle === 0) { - model.error = 'This shader program has not been initialized yet.'; - } - switch (shader.getShaderType()) { - case 'Vertex': - if (model.vertexShaderHandle !== shader.getHandle()) { - model.error = 'The supplied shader was not attached to this program.'; - return false; - } - model.context.detachShader(model.handle, shader.getHandle()); - model.vertexShaderHandle = 0; - model.linked = false; - return true; - case 'Fragment': - if (model.fragmentShaderHandle !== shader.getHandle()) { - model.error = 'The supplied shader was not attached to this program.'; - return false; - } - model.context.detachShader(model.handle, shader.getHandle()); - model.fragmentShaderHandle = 0; - model.linked = false; - return true; - default: - return false; - } - }; - publicAPI.setContext = ctx => { - model.context = ctx; - model.vertexShader.setContext(ctx); - model.fragmentShader.setContext(ctx); - model.geometryShader.setContext(ctx); - }; - publicAPI.setLastCameraMTime = mtime => { - model.lastCameraMTime = mtime; - }; - - // publicAPI.enableAttributeArray = (name) => { - // const location = publicAPI.findAttributeArray(name); - // if (location === -1) { - // model.error = `Could not enable attribute ${name} No such attribute.`; - // return false; - // } - // model.context.enableVertexAttribArray(location); - // return true; - // }; - - // publicAPI.disableAttributeArray = (name) => { - // const location = publicAPI.findAttributeArray(name); - // if (location === -1) { - // model.error = `Could not enable attribute ${name} No such attribute.`; - // return false; - // } - // model.context.disableVertexAttribArray(location); - // return true; - // }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - vertexShaderHandle: 0, - fragmentShaderHandle: 0, - geometryShaderHandle: 0, - vertexShader: null, - fragmentShader: null, - geometryShader: null, - linked: false, - bound: false, - compiled: false, - error: '', - handle: 0, - numberOfOutputs: 0, - attributesLocs: null, - uniformLocs: null, - md5Hash: 0, - context: null, - lastCameraMTime: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Instantiate internal objects - model.attributesLocs = {}; - model.uniformLocs = {}; - model.vertexShader = vtkShader.newInstance(); - model.vertexShader.setShaderType('Vertex'); - model.fragmentShader = vtkShader.newInstance(); - model.fragmentShader.setShaderType('Fragment'); - model.geometryShader = vtkShader.newInstance(); - model.geometryShader.setShaderType('Geometry'); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['lastCameraMTime']); - macro.setGet(publicAPI, model, ['error', 'handle', 'compiled', 'bound', 'md5Hash', 'vertexShader', 'fragmentShader', 'geometryShader', 'linked']); - - // Object methods - vtkShaderProgram(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkShaderProgram'); - -// ---------------------------------------------------------------------------- - -var vtkShaderProgram$1 = { - newInstance, - extend, - substitute -}; - -export { vtkShaderProgram$1 as default, substitute }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Skybox.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Skybox.js deleted file mode 100644 index 94b199dc..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Skybox.js +++ /dev/null @@ -1,231 +0,0 @@ -import { mat3, mat4 } from 'gl-matrix'; -import { n as newInstance$1, o as obj, e as setGet, g as get, c as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkHelper from './Helper.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import vtkOpenGLTexture from './Texture.js'; -import { Representation } from '../Core/Property/Constants.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkOpenGLSkybox methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLSkybox(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLSkybox'); - - // Builds myself. - publicAPI.buildPass = prepass => { - if (prepass) { - model._openGLRenderer = publicAPI.getFirstAncestorOfType('vtkOpenGLRenderer'); - model._openGLRenderWindow = model._openGLRenderer.getParent(); - model.context = model._openGLRenderWindow.getContext(); - model.tris.setOpenGLRenderWindow(model._openGLRenderWindow); - model.openGLTexture.setOpenGLRenderWindow(model._openGLRenderWindow); - const ren = model._openGLRenderer.getRenderable(); - model.openGLCamera = model._openGLRenderer.getViewNodeFor(ren.getActiveCamera()); - } - }; - publicAPI.queryPass = (prepass, renderPass) => { - if (prepass) { - if (!model.renderable || !model.renderable.getVisibility()) { - return; - } - renderPass.incrementOpaqueActorCount(); - } - }; - publicAPI.opaquePass = (prepass, renderPass) => { - if (prepass && !model._openGLRenderer.getSelector()) { - publicAPI.updateBufferObjects(); - model.context.depthMask(true); - model._openGLRenderWindow.getShaderCache().readyShaderProgram(model.tris.getProgram()); - model.openGLTexture.render(model._openGLRenderWindow); - const texUnit = model.openGLTexture.getTextureUnit(); - model.tris.getProgram().setUniformi('sbtexture', texUnit); - const ren = model._openGLRenderer.getRenderable(); - const keyMats = model.openGLCamera.getKeyMatrices(ren); - const imat = new Float64Array(16); - mat4.invert(imat, keyMats.wcpc); - model.tris.getProgram().setUniformMatrix('IMCPCMatrix', imat); - if (model.lastFormat === 'box') { - const camPos = ren.getActiveCamera().getPosition(); - model.tris.getProgram().setUniform3f('camPos', camPos[0], camPos[1], camPos[2]); - } - model.tris.getVAO().bind(); - - // draw polygons - model.context.drawArrays(model.context.TRIANGLES, 0, model.tris.getCABO().getElementCount()); - model.tris.getVAO().release(); - model.openGLTexture.deactivate(); - } - }; - publicAPI.updateBufferObjects = () => { - // build the VBO if needed, only happens once - if (!model.tris.getCABO().getElementCount()) { - const ptsArray = new Float32Array(12); - for (let i = 0; i < 4; i++) { - ptsArray[i * 3] = i % 2 * 2 - 1.0; - ptsArray[i * 3 + 1] = i > 1 ? 1.0 : -1.0; - ptsArray[i * 3 + 2] = 1.0; - } - const points = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: ptsArray - }); - points.setName('points'); - const cellArray = new Uint16Array(8); - cellArray[0] = 3; - cellArray[1] = 0; - cellArray[2] = 1; - cellArray[3] = 3; - cellArray[4] = 3; - cellArray[5] = 0; - cellArray[6] = 3; - cellArray[7] = 2; - const cells = vtkDataArray.newInstance({ - numberOfComponents: 1, - values: cellArray - }); - model.tris.getCABO().createVBO(cells, 'polys', Representation.SURFACE, { - points, - cellOffset: 0 - }); - } - - // update the program? - if (model.renderable.getFormat() !== model.lastFormat) { - model.lastFormat = model.renderable.getFormat(); - if (model.lastFormat === 'box') { - // we invert Y below because opengl is messed up! - // Cube Maps have been specified to follow the RenderMan - // specification (for whatever reason), and RenderMan - // assumes the images' origin being in the upper left, - // contrary to the usual OpenGL behaviour of having the - // image origin in the lower left. That's why things get - // swapped in the Y direction. It totally breaks with the usual - // OpenGL semantics and doesn't make sense at all. - // But now we're stuck with it. From - // https://stackoverflow.com/questions/11685608/convention-of-faces-in-opengl-cubemapping - // - model.tris.setProgram(model._openGLRenderWindow.getShaderCache().readyShaderProgramArray(`//VTK::System::Dec - attribute vec3 vertexMC; - uniform mat4 IMCPCMatrix; - varying vec3 TexCoords; - void main () { - gl_Position = vec4(vertexMC.xyz, 1.0); - vec4 wpos = IMCPCMatrix * gl_Position; - TexCoords = wpos.xyz/wpos.w; - }`, `//VTK::System::Dec - //VTK::Output::Dec - varying vec3 TexCoords; - uniform samplerCube sbtexture; - uniform vec3 camPos; - void main () { - // skybox looks from inside out - // which means we have to adjust - // our tcoords. Otherwise text would - // be flipped - vec3 tc = normalize(TexCoords - camPos); - if (abs(tc.z) < max(abs(tc.x),abs(tc.y))) - { - tc = vec3(1.0, 1.0, -1.0) * tc; - } - else - { - tc = vec3(-1.0, 1.0, 1.0) * tc; - } - gl_FragData[0] = textureCube(sbtexture, tc); - }`, '')); - } - if (model.lastFormat === 'background') { - // maps the texture to the window - model.tris.setProgram(model._openGLRenderWindow.getShaderCache().readyShaderProgramArray(`//VTK::System::Dec - attribute vec3 vertexMC; - uniform mat4 IMCPCMatrix; - varying vec2 TexCoords; - void main () { - gl_Position = vec4(vertexMC.xyz, 1.0); - vec4 wpos = IMCPCMatrix * gl_Position; - TexCoords = vec2(vertexMC.x, vertexMC.y)*0.5 + 0.5; - }`, `//VTK::System::Dec - //VTK::Output::Dec - varying vec2 TexCoords; - uniform sampler2D sbtexture; - void main () { - gl_FragData[0] = texture2D(sbtexture, TexCoords); - }`, '')); - } - model.tris.getShaderSourceTime().modified(); - model.tris.getVAO().bind(); - if (!model.tris.getVAO().addAttributeArray(model.tris.getProgram(), model.tris.getCABO(), 'vertexMC', model.tris.getCABO().getVertexOffset(), model.tris.getCABO().getStride(), model.context.FLOAT, 3, model.context.FALSE)) { - vtkErrorMacro('Error setting vertexMC in shader VAO.'); - } - } - - // set/update the texture map if needed - const tmaps = model.renderable.getTextures(); - if (!tmaps.length) { - vtkErrorMacro('vtkSkybox requires a texture map'); - } - if (model.openGLTexture.getRenderable() !== tmaps[0]) { - model.openGLTexture.releaseGraphicsResources(model._openGLRenderWindow); - model.openGLTexture.setRenderable(tmaps[0]); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - context: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - model.openGLTexture = vtkOpenGLTexture.newInstance(); - model.tris = vtkHelper.newInstance(); - model.keyMatrixTime = {}; - obj(model.keyMatrixTime, { - mtime: 0 - }); - model.keyMatrices = { - normalMatrix: mat3.identity(new Float64Array(9)), - mcwc: mat4.identity(new Float64Array(16)) - }; - - // Build VTK API - setGet(publicAPI, model, ['context']); - get(publicAPI, model, ['activeTextures']); - - // Object methods - vtkOpenGLSkybox(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend); - -// ---------------------------------------------------------------------------- - -var vtkSkybox = { - newInstance, - extend -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkSkybox', newInstance); - -export { vtkSkybox as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SphereMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SphereMapper.js deleted file mode 100644 index 9a7085b6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SphereMapper.js +++ /dev/null @@ -1,280 +0,0 @@ -import { mat4 } from 'gl-matrix'; -import { ObjectType } from './BufferObject/Constants.js'; -import { n as newInstance$1, c as macro } from '../../macros2.js'; -import vtkBufferObject from './BufferObject.js'; -import { r as radiansFromDegrees } from '../../Common/Core/Math/index.js'; -import vtkShaderProgram from './ShaderProgram.js'; -import vtkOpenGLPolyDataMapper from './PolyDataMapper.js'; -import { v as vtkSphereMapperVS } from './glsl/vtkSphereMapperVS.glsl.js'; -import { v as vtkPolyDataFS } from './glsl/vtkPolyDataFS.glsl.js'; -import { registerOverride } from './ViewNodeFactory.js'; -import { computeCoordShiftAndScale } from './CellArrayBufferObject/helpers.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkOpenGLSphereMapper methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLSphereMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLSphereMapper'); - - // Capture 'parentClass' api for internal use - const superClass = { - ...publicAPI - }; - publicAPI.getShaderTemplate = (shaders, ren, actor) => { - shaders.Vertex = vtkSphereMapperVS; - shaders.Fragment = vtkPolyDataFS; - shaders.Geometry = ''; - }; - publicAPI.replaceShaderValues = (shaders, ren, actor) => { - let VSSource = shaders.Vertex; - let FSSource = shaders.Fragment; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Camera::Dec', ['uniform mat4 VCPCMatrix;\n', 'uniform mat4 MCVCMatrix;']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::PositionVC::Dec', ['varying vec4 vertexVCVSOutput;']).result; - - // we create vertexVC below, so turn off the default - // implementation - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::PositionVC::Impl', ['vec4 vertexVC = vertexVCVSOutput;\n']).result; - - // for lights kit and positional the VCPC matrix is already defined - // so don't redefine it - const replacement = ['uniform float invertedDepth;\n', 'uniform int cameraParallel;\n', 'varying float radiusVCVSOutput;\n', 'varying vec3 centerVCVSOutput;\n', 'uniform mat4 VCPCMatrix;\n']; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Normal::Dec', replacement).result; - let fragString = ''; - if (model.context.getExtension('EXT_frag_depth')) { - fragString = 'gl_FragDepthEXT = (pos.z / pos.w + 1.0) / 2.0;\n'; - } - if (model._openGLRenderWindow.getWebgl2()) { - fragString = 'gl_FragDepth = (pos.z / pos.w + 1.0) / 2.0;\n'; - } - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Depth::Impl', [ - // compute the eye position and unit direction - ' vec3 EyePos;\n', ' vec3 EyeDir;\n', ' if (cameraParallel != 0) {\n', ' EyePos = vec3(vertexVC.x, vertexVC.y, vertexVC.z + 3.0*radiusVCVSOutput);\n', ' EyeDir = vec3(0.0,0.0,-1.0); }\n', ' else {\n', ' EyeDir = vertexVC.xyz;\n', ' EyePos = vec3(0.0,0.0,0.0);\n', ' float lengthED = length(EyeDir);\n', ' EyeDir = normalize(EyeDir);\n', - // we adjust the EyePos to be closer if it is too far away - // to prevent floating point precision noise - ' if (lengthED > radiusVCVSOutput*3.0) {\n', ' EyePos = vertexVC.xyz - EyeDir*3.0*radiusVCVSOutput; }\n', ' }\n', - // translate to Sphere center - ' EyePos = EyePos - centerVCVSOutput;\n', - // scale to radius 1.0 - ' EyePos = EyePos/radiusVCVSOutput;\n', - // find the intersection - ' float b = 2.0*dot(EyePos,EyeDir);\n', ' float c = dot(EyePos,EyePos) - 1.0;\n', ' float d = b*b - 4.0*c;\n', ' vec3 normalVCVSOutput = vec3(0.0,0.0,1.0);\n', ' if (d < 0.0) { discard; }\n', ' else {\n', ' float t = (-b - invertedDepth*sqrt(d))*0.5;\n', - // compute the normal, for unit sphere this is just - // the intersection point - ' normalVCVSOutput = invertedDepth*normalize(EyePos + t*EyeDir);\n', - // compute the intersection point in VC - ' vertexVC.xyz = normalVCVSOutput*radiusVCVSOutput + centerVCVSOutput;\n', ' }\n', - // compute the pixel's depth - // ' normalVCVSOutput = vec3(0,0,1);\n' - ' vec4 pos = VCPCMatrix * vertexVC;\n', fragString]).result; - - // Strip out the normal line -- the normal is computed as part of the depth - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Normal::Impl', '').result; - if (model.haveSeenDepthRequest) { - // special depth impl - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::ZBuffer::Impl', ['if (depthRequest == 1) {', 'float computedZ = (pos.z / pos.w + 1.0) / 2.0;', 'float iz = floor(computedZ * 65535.0 + 0.1);', 'float rf = floor(iz/256.0)/255.0;', 'float gf = mod(iz,256.0)/255.0;', 'gl_FragData[0] = vec4(rf, gf, 0.0, 1.0); }']).result; - } - shaders.Vertex = VSSource; - shaders.Fragment = FSSource; - superClass.replaceShaderValues(shaders, ren, actor); - }; - publicAPI.setMapperShaderParameters = (cellBO, ren, actor) => { - if (cellBO.getCABO().getElementCount() && (model.VBOBuildTime > cellBO.getAttributeUpdateTime().getMTime() || cellBO.getShaderSourceTime().getMTime() > cellBO.getAttributeUpdateTime().getMTime()) && cellBO.getProgram().isAttributeUsed('offsetMC')) { - if (!cellBO.getVAO().addAttributeArray(cellBO.getProgram(), cellBO.getCABO(), 'offsetMC', 12, - // 12:this->VBO->ColorOffset+sizeof(float) - cellBO.getCABO().getStride(), model.context.FLOAT, 2, false)) { - vtkErrorMacro("Error setting 'offsetMC' in shader VAO."); - } - } - if (cellBO.getProgram().isUniformUsed('invertedDepth')) { - cellBO.getProgram().setUniformf('invertedDepth', model.invert ? -1.0 : 1.0); - } - if (cellBO.getProgram().isUniformUsed('scaleFactor')) { - // apply scaling factor only if a scale array has been provided. - const poly = model.currentInput; - const pointData = poly.getPointData(); - if (model.renderable.getScaleArray() != null && pointData.hasArray(model.renderable.getScaleArray())) { - cellBO.getProgram().setUniformf('scaleFactor', model.renderable.getScaleFactor()); - } else { - cellBO.getProgram().setUniformf('scaleFactor', 1.0); - } - } - superClass.setMapperShaderParameters(cellBO, ren, actor); - }; - publicAPI.setCameraShaderParameters = (cellBO, ren, actor) => { - const program = cellBO.getProgram(); - const cam = ren.getActiveCamera(); - const keyMats = model.openGLCamera.getKeyMatrices(ren); - if (program.isUniformUsed('VCPCMatrix')) { - program.setUniformMatrix('VCPCMatrix', keyMats.vcpc); - } - - // mat4.create() defaults to Float32Array b/c of gl-matrix's settings. - // We need Float64Array to avoid loss of precision with large coordinates. - const tmp4 = new Float64Array(16); - if (program.isUniformUsed('MCVCMatrix')) { - if (!actor.getIsIdentity()) { - const actMats = model.openGLActor.getKeyMatrices(); - mat4.multiply(tmp4, keyMats.wcvc, actMats.mcwc); - if (cellBO.getCABO().getCoordShiftAndScaleEnabled()) { - mat4.multiply(tmp4, tmp4, cellBO.getCABO().getInverseShiftAndScaleMatrix()); - } - program.setUniformMatrix('MCVCMatrix', tmp4); - } else { - mat4.copy(tmp4, keyMats.wcvc); - if (cellBO.getCABO().getCoordShiftAndScaleEnabled()) { - mat4.multiply(tmp4, tmp4, cellBO.getCABO().getInverseShiftAndScaleMatrix()); - } - program.setUniformMatrix('MCVCMatrix', tmp4); - } - } - if (program.isUniformUsed('cameraParallel')) { - cellBO.getProgram().setUniformi('cameraParallel', cam.getParallelProjection()); - } - }; - publicAPI.getOpenGLMode = (rep, type) => model.context.TRIANGLES; - publicAPI.buildBufferObjects = (ren, actor) => { - const poly = model.currentInput; - if (poly === null) { - return; - } - model.renderable.mapScalars(poly, 1.0); - const c = model.renderable.getColorMapColors(); - const vbo = model.primitives[model.primTypes.Tris].getCABO(); - const pointData = poly.getPointData(); - const points = poly.getPoints(); - const numPoints = points.getNumberOfPoints(); - const pointArray = points.getData(); - const pointSize = 5; // x,y,z,orientation1,orientation2 - let scales = null; - if (model.renderable.getScaleArray() != null && pointData.hasArray(model.renderable.getScaleArray())) { - scales = pointData.getArray(model.renderable.getScaleArray()).getData(); - } - let colorData = null; - let colorComponents = 0; - let packedUCVBO = null; - if (c) { - colorComponents = c.getNumberOfComponents(); - vbo.setColorOffset(0); - vbo.setColorBOStride(4); - colorData = c.getData(); - packedUCVBO = new Uint8Array(3 * numPoints * 4); - if (!vbo.getColorBO()) { - vbo.setColorBO(vtkBufferObject.newInstance()); - } - vbo.getColorBO().setOpenGLRenderWindow(model._openGLRenderWindow); - } else if (vbo.getColorBO()) { - vbo.setColorBO(null); - } - vbo.setColorComponents(colorComponents); - const packedVBO = new Float32Array(pointSize * numPoints * 3); - vbo.setStride(pointSize * 4); - const cos30 = Math.cos(radiansFromDegrees(30.0)); - let pointIdx = 0; - let colorIdx = 0; - const { - useShiftAndScale, - coordShift, - coordScale - } = computeCoordShiftAndScale(points); - if (useShiftAndScale) { - vbo.setCoordShiftAndScale(coordShift, coordScale); - } - - // - // Generate points and point data for sides - // - let vboIdx = 0; - let ucIdx = 0; - for (let i = 0; i < numPoints; ++i) { - let radius = model.renderable.getRadius(); - if (scales) { - radius = scales[i]; - } - pointIdx = i * 3; - const ptX = (pointArray[pointIdx++] - coordShift[0]) * coordScale[0]; - const ptY = (pointArray[pointIdx++] - coordShift[1]) * coordScale[1]; - const ptZ = (pointArray[pointIdx++] - coordShift[2]) * coordScale[2]; - packedVBO[vboIdx++] = ptX; - packedVBO[vboIdx++] = ptY; - packedVBO[vboIdx++] = ptZ; - packedVBO[vboIdx++] = -2.0 * radius * cos30; - packedVBO[vboIdx++] = -radius; - if (colorData) { - colorIdx = i * colorComponents; - packedUCVBO[ucIdx++] = colorData[colorIdx]; - packedUCVBO[ucIdx++] = colorData[colorIdx + 1]; - packedUCVBO[ucIdx++] = colorData[colorIdx + 2]; - packedUCVBO[ucIdx++] = colorData[colorIdx + 3]; - } - packedVBO[vboIdx++] = ptX; - packedVBO[vboIdx++] = ptY; - packedVBO[vboIdx++] = ptZ; - packedVBO[vboIdx++] = 2.0 * radius * cos30; - packedVBO[vboIdx++] = -radius; - if (colorData) { - packedUCVBO[ucIdx++] = colorData[colorIdx]; - packedUCVBO[ucIdx++] = colorData[colorIdx + 1]; - packedUCVBO[ucIdx++] = colorData[colorIdx + 2]; - packedUCVBO[ucIdx++] = colorData[colorIdx + 3]; - } - packedVBO[vboIdx++] = ptX; - packedVBO[vboIdx++] = ptY; - packedVBO[vboIdx++] = ptZ; - packedVBO[vboIdx++] = 0.0; - packedVBO[vboIdx++] = 2.0 * radius; - if (colorData) { - packedUCVBO[ucIdx++] = colorData[colorIdx]; - packedUCVBO[ucIdx++] = colorData[colorIdx + 1]; - packedUCVBO[ucIdx++] = colorData[colorIdx + 2]; - packedUCVBO[ucIdx++] = colorData[colorIdx + 3]; - } - } - vbo.setElementCount(vboIdx / pointSize); - vbo.upload(packedVBO, ObjectType.ARRAY_BUFFER); - if (c) { - vbo.getColorBO().upload(packedUCVBO, ObjectType.ARRAY_BUFFER); - } - model.VBOBuildTime.modified(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkOpenGLPolyDataMapper.extend(publicAPI, model, initialValues); - - // Object methods - vtkOpenGLSphereMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkOpenGLSphereMapper'); - -// ---------------------------------------------------------------------------- - -var vtkSphereMapper = { - newInstance, - extend -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkSphereMapper', newInstance); - -export { vtkSphereMapper as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/StickMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/StickMapper.js deleted file mode 100644 index 1d7ffce6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/StickMapper.js +++ /dev/null @@ -1,291 +0,0 @@ -import { mat4, mat3 } from 'gl-matrix'; -import { ObjectType } from './BufferObject/Constants.js'; -import { n as newInstance$1, c as macro } from '../../macros2.js'; -import vtkBufferObject from './BufferObject.js'; -import { v as vtkStickMapperVS } from './glsl/vtkStickMapperVS.glsl.js'; -import { v as vtkPolyDataFS } from './glsl/vtkPolyDataFS.glsl.js'; -import vtkShaderProgram from './ShaderProgram.js'; -import vtkOpenGLPolyDataMapper from './PolyDataMapper.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkOpenGLStickMapper methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLStickMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLStickMapper'); - - // Capture 'parentClass' api for internal use - const superClass = { - ...publicAPI - }; - publicAPI.getShaderTemplate = (shaders, ren, actor) => { - shaders.Vertex = vtkStickMapperVS; - shaders.Fragment = vtkPolyDataFS; - shaders.Geometry = ''; - }; - publicAPI.replaceShaderValues = (shaders, ren, actor) => { - let VSSource = shaders.Vertex; - let FSSource = shaders.Fragment; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::Camera::Dec', ['uniform mat4 VCPCMatrix;\n', 'uniform mat4 MCVCMatrix;']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::PositionVC::Dec', 'varying vec4 vertexVCVSOutput;').result; - - // we create vertexVC below, so turn off the default - // implementation - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::PositionVC::Impl', ' vec4 vertexVC = vertexVCVSOutput;\n').result; - - // for lights kit and positional the VCPC matrix is already defined - // so don't redefine it - const replacement = ['uniform int cameraParallel;\n', 'varying float radiusVCVSOutput;\n', 'varying vec3 orientVCVSOutput;\n', 'varying float lengthVCVSOutput;\n', 'varying vec3 centerVCVSOutput;\n', 'uniform mat4 VCPCMatrix;\n']; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Normal::Dec', replacement).result; - let fragString = ''; - if (model.context.getExtension('EXT_frag_depth')) { - fragString = ' gl_FragDepthEXT = (pos.z / pos.w + 1.0) / 2.0;\n'; - } - if (model._openGLRenderWindow.getWebgl2()) { - fragString = 'gl_FragDepth = (pos.z / pos.w + 1.0) / 2.0;\n'; - } - // see https://www.cl.cam.ac.uk/teaching/1999/AGraphHCI/SMAG/node2.html - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Depth::Impl', [ - // compute the eye position and unit direction - ' vec3 EyePos;\n', ' vec3 EyeDir;\n', ' if (cameraParallel != 0) {\n', ' EyePos = vec3(vertexVC.x, vertexVC.y, vertexVC.z + 3.0*radiusVCVSOutput);\n', ' EyeDir = vec3(0.0,0.0,-1.0); }\n', ' else {\n', ' EyeDir = vertexVC.xyz;\n', ' EyePos = vec3(0.0,0.0,0.0);\n', ' float lengthED = length(EyeDir);\n', ' EyeDir = normalize(EyeDir);\n', - // we adjust the EyePos to be closer if it is too far away - // to prevent floating point precision noise - ' if (lengthED > radiusVCVSOutput*3.0) {\n', ' EyePos = vertexVC.xyz - EyeDir*3.0*radiusVCVSOutput; }\n', ' }\n', - // translate to Stick center - ' EyePos = EyePos - centerVCVSOutput;\n', - // rotate to new basis - // base1, base2, orientVC - ' vec3 base1;\n', ' if (abs(orientVCVSOutput.z) < 0.99) {\n', ' base1 = normalize(cross(orientVCVSOutput,vec3(0.0,0.0,1.0))); }\n', ' else {\n', ' base1 = normalize(cross(orientVCVSOutput,vec3(0.0,1.0,0.0))); }\n', ' vec3 base2 = cross(orientVCVSOutput,base1);\n', ' EyePos = vec3(dot(EyePos,base1),dot(EyePos,base2),dot(EyePos,orientVCVSOutput));\n', ' EyeDir = vec3(dot(EyeDir,base1),dot(EyeDir,base2),dot(EyeDir,orientVCVSOutput));\n', - // scale by radius - ' EyePos = EyePos/radiusVCVSOutput;\n', - // find the intersection - ' float a = EyeDir.x*EyeDir.x + EyeDir.y*EyeDir.y;\n', ' float b = 2.0*(EyePos.x*EyeDir.x + EyePos.y*EyeDir.y);\n', ' float c = EyePos.x*EyePos.x + EyePos.y*EyePos.y - 1.0;\n', ' float d = b*b - 4.0*a*c;\n', ' vec3 normalVCVSOutput = vec3(0.0,0.0,1.0);\n', ' if (d < 0.0) { discard; }\n', ' else {\n', ' float t = (-b - sqrt(d))/(2.0*a);\n', ' float tz = EyePos.z + t*EyeDir.z;\n', ' vec3 iPoint = EyePos + t*EyeDir;\n', ' if (abs(iPoint.z)*radiusVCVSOutput > lengthVCVSOutput*0.5) {\n', - // test for end cap - ' float t2 = (-b + sqrt(d))/(2.0*a);\n', ' float tz2 = EyePos.z + t2*EyeDir.z;\n', ' if (tz2*radiusVCVSOutput > lengthVCVSOutput*0.5 || tz*radiusVCVSOutput < -0.5*lengthVCVSOutput) { discard; }\n', ' else {\n', ' normalVCVSOutput = orientVCVSOutput;\n', ' float t3 = (lengthVCVSOutput*0.5/radiusVCVSOutput - EyePos.z)/EyeDir.z;\n', ' iPoint = EyePos + t3*EyeDir;\n', ' vertexVC.xyz = radiusVCVSOutput*(iPoint.x*base1 + iPoint.y*base2 + iPoint.z*orientVCVSOutput) + centerVCVSOutput;\n', ' }\n', ' }\n', ' else {\n', - // The normal is the iPoint.xy rotated back into VC - ' normalVCVSOutput = iPoint.x*base1 + iPoint.y*base2;\n', - // rescale rerotate and translate - ' vertexVC.xyz = radiusVCVSOutput*(normalVCVSOutput + iPoint.z*orientVCVSOutput) + centerVCVSOutput;\n', ' }\n', ' }\n', - // ' vec3 normalVC = vec3(0.0,0.0,1.0);\n' - // compute the pixel's depth - ' vec4 pos = VCPCMatrix * vertexVC;\n', fragString]).result; - - // Strip out the normal line -- the normal is computed as part of the depth - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Normal::Impl', '').result; - if (model.haveSeenDepthRequest) { - // special depth impl - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::ZBuffer::Impl', ['if (depthRequest == 1) {', 'float computedZ = (pos.z / pos.w + 1.0) / 2.0;', 'float iz = floor(computedZ * 65535.0 + 0.1);', 'float rf = floor(iz/256.0)/255.0;', 'float gf = mod(iz,256.0)/255.0;', 'gl_FragData[0] = vec4(rf, gf, 0.0, 1.0); }']).result; - } - shaders.Vertex = VSSource; - shaders.Fragment = FSSource; - superClass.replaceShaderValues(shaders, ren, actor); - }; - publicAPI.setMapperShaderParameters = (cellBO, ren, actor) => { - if (cellBO.getCABO().getElementCount() && (model.VBOBuildTime > cellBO.getAttributeUpdateTime().getMTime() || cellBO.getShaderSourceTime().getMTime() > cellBO.getAttributeUpdateTime().getMTime())) { - if (cellBO.getProgram().isAttributeUsed('orientMC')) { - if (!cellBO.getVAO().addAttributeArray(cellBO.getProgram(), cellBO.getCABO(), 'orientMC', 12, - // after X Y Z - cellBO.getCABO().getStride(), model.context.FLOAT, 3, false)) { - vtkErrorMacro("Error setting 'orientMC' in shader VAO."); - } - } - if (cellBO.getProgram().isAttributeUsed('offsetMC')) { - if (!cellBO.getVAO().addAttributeArray(cellBO.getProgram(), cellBO.getCABO().getColorBO(), 'offsetMC', 0, cellBO.getCABO().getColorBOStride(), model.context.UNSIGNED_BYTE, 3, true)) { - vtkErrorMacro("Error setting 'offsetMC' in shader VAO."); - } - } - if (cellBO.getProgram().isAttributeUsed('radiusMC')) { - if (!cellBO.getVAO().addAttributeArray(cellBO.getProgram(), cellBO.getCABO(), 'radiusMC', 24, - // X Y Z OX OY OZ - cellBO.getCABO().getStride(), model.context.FLOAT, 1, false)) { - vtkErrorMacro("Error setting 'radiusMC' in shader VAO."); - } - } - } - superClass.setMapperShaderParameters(cellBO, ren, actor); - }; - publicAPI.setCameraShaderParameters = (cellBO, ren, actor) => { - const program = cellBO.getProgram(); - const cam = ren.getActiveCamera(); - const keyMats = model.openGLCamera.getKeyMatrices(ren); - if (program.isUniformUsed('VCPCMatrix')) { - program.setUniformMatrix('VCPCMatrix', keyMats.vcpc); - } - if (!actor.getIsIdentity()) { - const actMats = model.openGLActor.getKeyMatrices(); - if (program.isUniformUsed('MCVCMatrix')) { - const tmp4 = new Float64Array(16); - mat4.multiply(tmp4, keyMats.wcvc, actMats.mcwc); - program.setUniformMatrix('MCVCMatrix', tmp4); - } - if (program.isUniformUsed('normalMatrix')) { - const anorms = new Float64Array(9); - mat3.multiply(anorms, keyMats.normalMatrix, actMats.normalMatrix); - program.setUniformMatrix3x3('normalMatrix', anorms); - } - } else { - if (program.isUniformUsed('MCVCMatrix')) { - program.setUniformMatrix('MCVCMatrix', keyMats.wcvc); - } - if (program.isUniformUsed('normalMatrix')) { - program.setUniformMatrix3x3('normalMatrix', keyMats.normalMatrix); - } - } - if (program.isUniformUsed('cameraParallel')) { - cellBO.getProgram().setUniformi('cameraParallel', cam.getParallelProjection()); - } - }; - publicAPI.getOpenGLMode = (rep, type) => model.context.TRIANGLES; - publicAPI.buildBufferObjects = (ren, actor) => { - const poly = model.currentInput; - if (poly === null) { - return; - } - model.renderable.mapScalars(poly, 1.0); - const c = model.renderable.getColorMapColors(); - const vbo = model.primitives[model.primTypes.Tris].getCABO(); - const pointData = poly.getPointData(); - const points = poly.getPoints(); - const numPoints = points.getNumberOfPoints(); - const pointArray = points.getData(); - let pointSize = 3; // x,y,z - - // three more floats for orientation + 1 for radius - pointSize += 4; - let colorData = null; - let colorComponents = 0; - vbo.setColorBOStride(4); - if (!vbo.getColorBO()) { - vbo.setColorBO(vtkBufferObject.newInstance()); - } - vbo.getColorBO().setOpenGLRenderWindow(model._openGLRenderWindow); - if (c) { - colorComponents = c.getNumberOfComponents(); - vbo.setColorOffset(4); - colorData = c.getData(); - vbo.setColorBOStride(8); - } - vbo.setColorComponents(colorComponents); - vbo.setStride(pointSize * 4); - - // Create a buffer, and copy the data over. - const packedVBO = new Float32Array(pointSize * numPoints * 12); - const packedUCVBO = new Uint8Array(12 * numPoints * (colorData ? 8 : 4)); - let scales = null; - let orientationArray = null; - // - // Generate points and point data for sides - // - if (model.renderable.getScaleArray() != null && pointData.hasArray(model.renderable.getScaleArray())) { - scales = pointData.getArray(model.renderable.getScaleArray()).getData(); - } - if (model.renderable.getOrientationArray() != null && pointData.hasArray(model.renderable.getOrientationArray())) { - orientationArray = pointData.getArray(model.renderable.getOrientationArray()).getData(); - } else { - vtkErrorMacro(['Error setting orientationArray.\n', 'You have to specify the stick orientation']); - } - - // Vertices - // 013 - 032 - 324 - 453 - // - // _.4---_.5 - // .-* .-* - // 2-----3 - // | /| - // | / | - // | / | - // | / | - // |/ | - // 0-----1 - // - // coord for each points - // 0: 000 - // 1: 100 - // 2: 001 - // 3: 101 - // 4: 011 - // 5: 111 - - // prettier-ignore - const verticesArray = [0, 1, 3, 0, 3, 2, 2, 3, 5, 2, 5, 4]; - let pointIdx = 0; - let colorIdx = 0; - let vboIdx = 0; - let ucIdx = 0; - for (let i = 0; i < numPoints; ++i) { - let length = model.renderable.getLength(); - let radius = model.renderable.getRadius(); - if (scales) { - length = scales[i * 2]; - radius = scales[i * 2 + 1]; - } - for (let j = 0; j < verticesArray.length; ++j) { - pointIdx = i * 3; - packedVBO[vboIdx++] = pointArray[pointIdx++]; - packedVBO[vboIdx++] = pointArray[pointIdx++]; - packedVBO[vboIdx++] = pointArray[pointIdx++]; - pointIdx = i * 3; - packedVBO[vboIdx++] = orientationArray[pointIdx++] * length; - packedVBO[vboIdx++] = orientationArray[pointIdx++] * length; - packedVBO[vboIdx++] = orientationArray[pointIdx++] * length; - packedVBO[vboIdx++] = radius; - packedUCVBO[ucIdx++] = 255 * (verticesArray[j] % 2); - packedUCVBO[ucIdx++] = verticesArray[j] >= 4 ? 255 : 0; - packedUCVBO[ucIdx++] = verticesArray[j] >= 2 ? 255 : 0; - packedUCVBO[ucIdx++] = 255; - colorIdx = i * colorComponents; - if (colorData) { - packedUCVBO[ucIdx++] = colorData[colorIdx]; - packedUCVBO[ucIdx++] = colorData[colorIdx + 1]; - packedUCVBO[ucIdx++] = colorData[colorIdx + 2]; - packedUCVBO[ucIdx++] = colorData[colorIdx + 3]; - } - } - } - vbo.setElementCount(vboIdx / pointSize); - vbo.upload(packedVBO, ObjectType.ARRAY_BUFFER); - vbo.getColorBO().upload(packedUCVBO, ObjectType.ARRAY_BUFFER); - model.VBOBuildTime.modified(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkOpenGLPolyDataMapper.extend(publicAPI, model, initialValues); - - // Object methods - vtkOpenGLStickMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkOpenGLStickMapper'); - -// ---------------------------------------------------------------------------- - -var vtkStickMapper = { - newInstance, - extend -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkStickMapper', newInstance); - -export { vtkStickMapper as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC.js deleted file mode 100644 index b26a4fd7..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC.js +++ /dev/null @@ -1,9 +0,0 @@ -import vtkOpenGLSurfaceLICMapper from './SurfaceLIC/SurfaceLICMapper.js'; -import vtkOpenGLSurfaceLICInterface from './SurfaceLIC/SurfaceLICInterface.js'; - -var index = { - vtkOpenGLSurfaceLICMapper, - vtkOpenGLSurfaceLICInterface -}; - -export { index as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D.js deleted file mode 100644 index 4b941d9b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D.js +++ /dev/null @@ -1,398 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import { v as vtkLineIntegralConvolution2D_LIC0 } from './glsl/vtkLineIntegralConvolution2D_LIC0.glsl.js'; -import { v as vtkLineIntegralConvolution2D_LICI } from './glsl/vtkLineIntegralConvolution2D_LICI.glsl.js'; -import { v as vtkLineIntegralConvolution2D_LICN } from './glsl/vtkLineIntegralConvolution2D_LICN.glsl.js'; -import { v as vtkLineIntegralConvolution2D_CE } from './glsl/vtkLineIntegralConvolution2D_CE.glsl.js'; -import { v as vtkLineIntegralConvolution2D_EE } from './glsl/vtkLineIntegralConvolution2D_EE.glsl.js'; -import { v as vtkLineIntegralConvolution2D_AAH } from './glsl/vtkLineIntegralConvolution2D_AAH.glsl.js'; -import { v as vtkLineIntegralConvolution2D_VT } from './glsl/vtkLineIntegralConvolution2D_VT.glsl.js'; -import { v as vtkLineIntegralConvolution2D_AAV } from './glsl/vtkLineIntegralConvolution2D_AAV.glsl.js'; -import { v as vtkLineIntegralConvolution2D_quadVS } from './glsl/vtkLineIntegralConvolution2D_quadVS.glsl.js'; -import vtkShaderProgram from '../ShaderProgram.js'; -import vtkOpenGLFramebuffer from '../Framebuffer.js'; -import vtkLICPingPongBufferManager from './LineIntegralConvolution2D/pingpong.js'; -import { ContrastEnhanceMode } from '../../Core/SurfaceLICInterface/Constants.js'; - -function getVectorLookupProgram() { - let normalize = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; - // lookup the vector and normalize - const getNormVecSrc = ` - vec2 getVector( vec2 vectc )\n - {\n - vec2 V = texture2D( texVectors, vectc ).xy;\n - // normalize if |V| not 0\n - float lenV = length( V );\n - if ( lenV > 1.0e-8 )\n - {\n - return V/lenV;\n - }\n - else\n - {\n - return vec2( 0.0, 0.0 );\n - }\n - }\n - `; - - // lookup the vector - const getVecSrc = ` - vec2 getVector( vec2 vectc )\n - {\n - return texture2D( texVectors, vectc ).xy;\n - }\n - `; - if (normalize) { - return getNormVecSrc; - } - return getVecSrc; -} -function vtkLineIntegralConvolution2D(publicAPI, model) { - model.classHierarchy.push('vtkLineIntegralConvolution2D'); - publicAPI.buildAShader = fSource => model._openGLRenderWindow.getShaderCache().readyShaderProgramArray(vtkLineIntegralConvolution2D_quadVS, fSource, ''); - publicAPI.dumpTextureValues = function (texture, _ref) { - let [width, height] = _ref; - let context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : model.context; - let openGLRenderWindow = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : model._openGLRenderWindow; - let nComp = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 4; - // To get texture values in es 2.0, we need to attach the texture to a fbo, - // then use glReadPixels - const fb = vtkOpenGLFramebuffer.newInstance(); - const gl = context; - let pixels = null; - fb.setOpenGLRenderWindow(openGLRenderWindow); - fb.saveCurrentBindingsAndBuffers(); - fb.create(width, height); - fb.populateFramebuffer(); - fb.setColorBuffer(texture); - pixels = new Float32Array(width * height * nComp); - gl.readPixels(0, 0, width, height, nComp === 4 ? gl.RGBA : gl.RGB, gl.FLOAT, pixels); - fb.restorePreviousBindingsAndBuffers(); - return pixels; - }; - publicAPI.getTextureMinMax = function (texture, size) { - let context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : model.context; - let openGLRenderWindow = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : model._openGLRenderWindow; - const values = publicAPI.dumpTextureValues(texture, size, context, openGLRenderWindow, 4); - let min = Number.MAX_VALUE; - let max = Number.MIN_VALUE; - for (let i = 0; i < values.length; i += 4) { - // Make sure the current pixel is inside the rendered geometry (g === 0) - if (values[i + 1] === 0.0) { - const val = values[i]; - if (val < min) { - min = val; - } - if (val > max) { - max = val; - } - } - } - return { - min, - max - }; - }; - publicAPI.getComponentSelectionProgram = ids => { - const compNames = 'xyzw'; - return `.${compNames[ids[0]]}${compNames[ids[1]]}`; - }; - publicAPI.buildShaders = () => { - model.LIC0ShaderProgram = publicAPI.buildAShader(vtkLineIntegralConvolution2D_LIC0); - const VTFSource = vtkShaderProgram.substitute(vtkLineIntegralConvolution2D_VT, '//VTK::LICComponentSelection::Impl', `vec2 V = texture2D(texVectors, tcoordVC.st)${publicAPI.getComponentSelectionProgram(model.componentIds)};`).result; - model.VTProgram = publicAPI.buildAShader(VTFSource); - const LICISource = vtkShaderProgram.substitute(vtkLineIntegralConvolution2D_LICI, '//VTK::LICVectorLookup::Impl', getVectorLookupProgram(model.normalizeVectors), true).result; - model.LICIShaderProgram = publicAPI.buildAShader(LICISource); - model.LICNShaderProgram = publicAPI.buildAShader(vtkLineIntegralConvolution2D_LICN); - model.CEProgram = publicAPI.buildAShader(vtkLineIntegralConvolution2D_CE); - model.EEProgram = publicAPI.buildAShader(vtkLineIntegralConvolution2D_EE); - model.AAHProgram = publicAPI.buildAShader(vtkLineIntegralConvolution2D_AAH); - model.AAVProgram = publicAPI.buildAShader(vtkLineIntegralConvolution2D_AAV); - }; - - // factorized out frequent patterns - function setLICUniforms(program, bufs) { - program.setUniformi('texLIC', bufs.getLICTextureUnit()); - program.setUniformi('texSeedPts', bufs.getSeedTextureUnit()); - } - function renderPingPong(bufs, size, program) { - bufs.attachLICBuffers(); - bufs.renderQuad(size, program); - bufs.detachLICBuffers(); - bufs.swap(); - } - publicAPI.executeLIC = (size, vectorTexture, maskVectorTexture, noiseTexture, openGLRenderWindow, options) => { - model._openGLRenderWindow = openGLRenderWindow; - model.context = openGLRenderWindow.getContext(); - Object.assign(model, options); - if (size[0] <= 0.0 || size[1] <= 0.0) { - return null; - } - const tcScale = [1.0 / size[0], 1.0 / size[1]]; - let stepSize = model.stepSize * Math.sqrt(tcScale[0] * tcScale[0] + tcScale[1] * tcScale[1]); - if (stepSize <= 0) { - stepSize = 1.0e-10; - } - const gl = model.context; - let fb = model.framebuffer; - const fbSize = fb?.getSize(); - if (!fb || !fbSize || size[0] !== fbSize || size[1] !== fbSize) { - fb = vtkOpenGLFramebuffer.newInstance(); - fb.setOpenGLRenderWindow(model._openGLRenderWindow); - fb.saveCurrentBindingsAndBuffers(); - fb.create(...size); - fb.populateFramebuffer(); - fb.restorePreviousBindingsAndBuffers(); - model.framebuffer = fb; - } - fb.saveCurrentBindingsAndBuffers(); - fb.bind(); - gl.viewport(0, 0, ...size); - gl.scissor(0, 0, ...size); - if (model.shadersNeedBuild) { - publicAPI.buildShaders(); - model.shadersNeedBuild = false; - } - if (!model.bufs) { - model.bufs = vtkLICPingPongBufferManager.newInstance({ - openGLRenderWindow, - doEEPass: model.enhancedLIC, - doVTPass: model.transformVectors, - vectorTexture, - maskVectorTexture, - noiseTexture, - framebuffer: fb, - size - }); - } else { - model.bufs.setVectorTexture(vectorTexture); - model.bufs.setMaskVectorTexture(maskVectorTexture); - model.bufs.setNoiseTexture(noiseTexture); - } - const noiseBoundsPt1 = [(noiseTexture.getWidth() + 1) / size[0], (noiseTexture.getHeight() + 1) / size[1]]; - const dx = 1.0 / size[0]; - const dy = 1.0 / size[1]; - const shaderCache = model._openGLRenderWindow.getShaderCache(); - if (model.transformVectors) { - const VTShaderProgram = model.VTProgram; - shaderCache.readyShaderProgram(VTShaderProgram); - model.bufs.attachImageVectorBuffer(); - VTShaderProgram.setUniform2f('uTexSize', ...size); - VTShaderProgram.setUniformi('texVectors', model.bufs.getVectorTextureUnit()); - gl.clearColor(0.0, 0.0, 0.0, 0.0); - gl.clear(gl.COLOR_BUFFER_BIT); - model.bufs.renderQuad(size, VTShaderProgram); - model.bufs.detachImageVectorBuffer(); - } - - // first pass - // initialize convolution and seeds - model.bufs.clearBuffers(model.enhancedLIC); - model.bufs.activateVectorTextures(); - model.bufs.activateNoiseTexture(0); - const { - LIC0ShaderProgram - } = model; - shaderCache.readyShaderProgram(LIC0ShaderProgram); - LIC0ShaderProgram.setUniformi('uStepNo', 0); - LIC0ShaderProgram.setUniformi('uPassNo', 0); - LIC0ShaderProgram.setUniformf('uMaskThreshold', model.maskThreshold); - LIC0ShaderProgram.setUniform2f('uNoiseBoundsPt1', ...noiseBoundsPt1); - LIC0ShaderProgram.setUniformi('texMaskVectors', model.bufs.getMaskVectorTextureUnit()); - LIC0ShaderProgram.setUniformi('texLIC', model.bufs.getLICTextureUnit()); - LIC0ShaderProgram.setUniformi('texNoise', model.bufs.getNoiseTextureUnit(0)); - renderPingPong(model.bufs, size, LIC0ShaderProgram); - - // backward lic - const { - LICIShaderProgram - } = model; - shaderCache.readyShaderProgram(LICIShaderProgram); - LICIShaderProgram.setUniformi('uPassNo', 0); - LICIShaderProgram.setUniformf('uStepSize', -stepSize); - LICIShaderProgram.setUniform2f('uNoiseBoundsPt1', ...noiseBoundsPt1); - LICIShaderProgram.setUniformi('texVectors', model.bufs.getImageVectorTextureUnit()); - LICIShaderProgram.setUniformi('texNoise', model.bufs.getNoiseTextureUnit(0)); - for (let stepIdx = 0; stepIdx < model.numberOfSteps; ++stepIdx) { - setLICUniforms(LICIShaderProgram, model.bufs); - renderPingPong(model.bufs, size, LICIShaderProgram); - } - - // initialize seeds - shaderCache.readyShaderProgram(LIC0ShaderProgram); - LIC0ShaderProgram.setUniformi('uStepNo', 1); - setLICUniforms(LIC0ShaderProgram, model.bufs); - renderPingPong(model.bufs, size, LIC0ShaderProgram); - - // forward LIC - shaderCache.readyShaderProgram(LICIShaderProgram); - LICIShaderProgram.setUniformf('uStepSize', stepSize); - for (let stepIdx = 0; stepIdx < model.numberOfSteps; ++stepIdx) { - setLICUniforms(LICIShaderProgram, model.bufs); - renderPingPong(model.bufs, size, LICIShaderProgram); - } - model.bufs.deactivateNoiseTexture(0); - model.bufs.deactivateVectorTextures(); - - // finalize LIC - const { - LICNShaderProgram - } = model; - shaderCache.readyShaderProgram(LICNShaderProgram); - LICNShaderProgram.setUniformi('texLIC', model.bufs.getLICTextureUnit()); - renderPingPong(model.bufs, size, LICNShaderProgram); - - // end of first-pass lic - if (model.enhancedLIC) { - if (model.enhanceContrast === ContrastEnhanceMode.LIC || model.enhanceContrast === ContrastEnhanceMode.BOTH) { - publicAPI.contrastEnhance(false, size); - } - - // EE stage - model.bufs.attachEEBuffer(); - const { - EEProgram - } = model; - shaderCache.readyShaderProgram(EEProgram); - EEProgram.setUniformi('texLIC', model.bufs.getLICTextureUnit()); - EEProgram.setUniformf('uDx', dx); - EEProgram.setUniformf('uDy', dy); - model.bufs.renderQuad(size, EEProgram); - model.bufs.detachEEBuffer(); - - // begin second pass LIC - // clear buffers - model.bufs.detachBuffers(); - model.bufs.clearBuffers(false); - model.bufs.activateVectorTextures(); - model.bufs.activateNoiseTexture(1); - - // initialize convolution and seeds - shaderCache.readyShaderProgram(LIC0ShaderProgram); - LIC0ShaderProgram.setUniformi('uStepNo', 0); - LIC0ShaderProgram.setUniformi('uPassNo', 1); - setLICUniforms(LIC0ShaderProgram, model.bufs); - LIC0ShaderProgram.setUniformi('texNoise', model.bufs.getNoiseTextureUnit(1)); - renderPingPong(model.bufs, size, LIC0ShaderProgram); - - // backward LIC - shaderCache.readyShaderProgram(LICIShaderProgram); - LICIShaderProgram.setUniformi('uPassNo', 1); - LICIShaderProgram.setUniformf('uStepSize', -stepSize); - LICIShaderProgram.setUniformi('texNoise', model.bufs.getNoiseTextureUnit(1)); - const nSteps = model.numberOfSteps / 2; - for (let stepIdx = 0; stepIdx < nSteps; ++stepIdx) { - setLICUniforms(LICIShaderProgram, model.bufs); - renderPingPong(model.bufs, size, LICIShaderProgram); - } - - // initialize seeds - shaderCache.readyShaderProgram(LIC0ShaderProgram); - LIC0ShaderProgram.setUniformi('uStepNo', 1); - setLICUniforms(LIC0ShaderProgram, model.bufs); - renderPingPong(model.bufs, size, LIC0ShaderProgram); - - // forward LIC - shaderCache.readyShaderProgram(LICIShaderProgram); - LICIShaderProgram.setUniformf('uStepSize', stepSize); - for (let stepIdx = 0; stepIdx < nSteps; ++stepIdx) { - setLICUniforms(LICIShaderProgram, model.bufs); - renderPingPong(model.bufs, size, LICIShaderProgram); - } - model.bufs.deactivateNoiseTexture(1); - model.bufs.deactivateVectorTextures(); - - // finalize LIC - shaderCache.readyShaderProgram(LICNShaderProgram); - LICNShaderProgram.setUniformi('texLIC', model.bufs.getLICTextureUnit()); - LICNShaderProgram.setUniformi('texSeedPts', model.bufs.getSeedTextureUnit()); - renderPingPong(model.bufs, size, LICNShaderProgram); - } - if (model.antiAlias) { - const AAHShaderProgram = model.AAHProgram; - shaderCache.readyShaderProgram(AAHShaderProgram); - AAHShaderProgram.setUniformi('texLIC', model.bufs.getLICTextureUnit()); - AAHShaderProgram.setUniformf('uDx', dx); - const AAVShaderProgram = model.AAVProgram; - shaderCache.readyShaderProgram(AAVShaderProgram); - AAVShaderProgram.setUniformi('texLIC', model.bufs.getLICTextureUnit()); - AAVShaderProgram.setUniformf('uDy', dy); - for (let i = 0; i < model.antiAlias; ++i) { - // Vertical pass - shaderCache.readyShaderProgram(AAHShaderProgram); - setLICUniforms(AAHShaderProgram, model.bufs); - renderPingPong(model.bufs, size, AAHShaderProgram); - // Horizontal pass - shaderCache.readyShaderProgram(AAVShaderProgram); - setLICUniforms(AAVShaderProgram, model.bufs); - renderPingPong(model.bufs, size, AAVShaderProgram); - } - } - if (model.enhanceContrast === ContrastEnhanceMode.LIC || model.enhanceContrast === ContrastEnhanceMode.BOTH) { - publicAPI.contrastEnhance(true, size); - } - model.bufs.detachBuffers(); - fb.restorePreviousBindingsAndBuffers(); - return model.bufs.getLastLICBuffer(); - }; - publicAPI.contrastEnhance = (isSecondStage, size) => { - const shaderCache = model._openGLRenderWindow.getShaderCache(); - let { - min, - max - } = publicAPI.getTextureMinMax(model.bufs.getLastLICBuffer(), size, model.context, model._openGLRenderWindow); - if (max <= min || max > 1.0 || min < 0) { - console.error('Invalid color range: ', min, max); - min = 0.0; - max = 1.0; - } - let diff = max - min; - if (isSecondStage) { - min += diff * model.lowLICContrastEnhancementFactor; - max -= diff * model.highLICContrastEnhancementFactor; - diff = max - min; - } - const { - CEProgram - } = model; - shaderCache.readyShaderProgram(CEProgram); - CEProgram.setUniformi('texLIC', model.bufs.getLICTextureUnit()); - CEProgram.setUniformf('uMin', min); - CEProgram.setUniformf('uMaxMinDiff', diff); - renderPingPong(model.bufs, size, CEProgram); - }; -} -const DEFAULT_VALUES = { - shadersNeedBuild: true, - stepSize: 1, - numberOfSteps: 10, - enhancedLIC: true, - enhanceContrast: false, - lowContrastEnhancementFactor: 0, - highContrastEnhancementFactor: 0, - antiAlias: 0, - componentIds: [0, 1], - normalizeVectors: true, - maskThreshold: 0.0, - transformVectors: true, - bufs: null, - isComposite: true -}; -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['context', '_openGLRenderWindow', 'nuberOfSteps', 'stepSize', 'normalizeVectors', 'maskThreshold', 'enhancedLIC', 'enhanceContrast', 'lowLICContrastEnhancementFactor', 'highLICContrastEnhancementFactor', 'antiAlias', 'componentIds', 'isComposite']); - macro.moveToProtected(publicAPI, model, ['openGLRenderWindow']); - - // Object methods - vtkLineIntegralConvolution2D(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkLineIntegralConvolution2D'); -var vtkLineIntegralConvolution2D$1 = { - newInstance, - extend -}; - -export { vtkLineIntegralConvolution2D$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D/pingpong.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D/pingpong.js deleted file mode 100644 index af3b6c5d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/LineIntegralConvolution2D/pingpong.js +++ /dev/null @@ -1,393 +0,0 @@ -import { m as macro } from '../../../../macros2.js'; -import vtkOpenGLTexture from '../../Texture.js'; -import vtkDataArray from '../../../../Common/Core/DataArray.js'; -import vtkHelper from '../../Helper.js'; -import vtkProperty from '../../../Core/Property.js'; -import vtkVertexArrayObject from '../../VertexArrayObject.js'; - -const { - Representation -} = vtkProperty; -function getQuadPoly(openGLRenderWindow) { - const quad = vtkHelper.newInstance(); - quad.setOpenGLRenderWindow(openGLRenderWindow); - // build the CABO - const ptsArray = new Float32Array(12); - for (let i = 0; i < 4; i++) { - ptsArray[i * 3] = i % 2 * 2 - 1.0; - ptsArray[i * 3 + 1] = i > 1 ? 1.0 : -1.0; - ptsArray[i * 3 + 2] = 0.0; - } - const tCoord = new Float32Array([0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 1.0]); - const cellArray = new Uint16Array(8); - cellArray[0] = 3; - cellArray[1] = 0; - cellArray[2] = 1; - cellArray[3] = 3; - cellArray[4] = 3; - cellArray[5] = 0; - cellArray[6] = 3; - cellArray[7] = 2; - const points = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: ptsArray - }); - points.setName('points'); - const cells = vtkDataArray.newInstance({ - numberOfComponents: 1, - values: cellArray - }); - const tArray = vtkDataArray.newInstance({ - numberOfComponents: 2, - values: tCoord - }); - quad.getCABO().createVBO(cells, 'polys', Representation.SURFACE, { - points, - cellOffset: 0, - tcoords: tArray - }); - return quad; -} -function allocateBuffer(openGLRenderWindow, _ref, filter, wrapping) { - let [width, height] = _ref; - const gl = openGLRenderWindow.getContext(); - const texture = vtkOpenGLTexture.newInstance({ - autoParameters: false, - wrapS: wrapping, - wrapT: wrapping, - minificationFilter: filter, - magnificationFilter: filter, - generateMipmap: false, - openGLDataType: gl.FLOAT, - baseLevel: 0, - maxLevel: 0 - }); - texture.setOpenGLRenderWindow(openGLRenderWindow); - texture.setInternalFormat(gl.RGBA32F); - texture.create2DFromRaw({ - width, - height, - numComps: 4, - dataType: 'Float32Array', - data: null - }); - texture.activate(); - texture.sendParameters(); - texture.deactivate(); - return texture; -} -function allocateLICBuffer(openGLRenderWindow, size) { - return allocateBuffer(openGLRenderWindow, size, vtkOpenGLTexture.Filter.NEAREST, vtkOpenGLTexture.Wrap.CLAMP_TO_EDGE); -} -function allocateNoiseBuffer(openGLRenderWindow, size) { - return allocateBuffer(openGLRenderWindow, size, vtkOpenGLTexture.Filter.NEAREST, vtkOpenGLTexture.Wrap.CLAMP_TO_EDGE); -} -function allocateVectorBuffer(openGLRenderWindow, size) { - return allocateBuffer(openGLRenderWindow, size, vtkOpenGLTexture.Filter.LINEAR, vtkOpenGLTexture.Wrap.CLAMP_TO_EDGE); -} - -// ---------------------------------------------------------------------------- -// vtkLICPingPongBufferManager methods -// ---------------------------------------------------------------------------- - -function vtkLICPingPongBufferManager(publicAPI, model) { - model.classHierarchy.push('vtkLICPingPongBufferManager'); - if (!model._openGLRenderWindow) { - console.error('Pass renderwindow to ping pong manager'); - return; - } - - // Don't handle bind/restoring framebuffers, assume it has been done upstream - - model.quad = getQuadPoly(model._openGLRenderWindow); - model.context = model._openGLRenderWindow.getContext(); - model.licTexture0 = allocateLICBuffer(model._openGLRenderWindow, model.size); - model.seedTexture0 = allocateLICBuffer(model._openGLRenderWindow, model.size); - model.licTexture1 = allocateLICBuffer(model._openGLRenderWindow, model.size); - model.seedTexture1 = allocateLICBuffer(model._openGLRenderWindow, model.size); - model.eeTexture = model.doEEPass ? allocateNoiseBuffer(model._openGLRenderWindow, model.size) : null; - model.imageVectorTexture = model.doVTPass ? allocateVectorBuffer(model._openGLRenderWindow, model.size) : null; - model.pingTextures[0] = model.licTexture0; - model.pingTextures[1] = model.seedTexture0; - model.pongTextures[0] = model.licTexture1; - model.pongTextures[1] = model.seedTexture1; - model.textures[0] = model.pingTextures; - model.textures[1] = model.pongTextures; - publicAPI.swap = () => { - model.readIndex = 1 - model.readIndex; - }; - publicAPI.renderQuad = (bounds, program) => { - const poly = model.quad; - const gl = model.context; - let VAO = model.quadVAO; - if (!VAO) { - VAO = vtkVertexArrayObject.newInstance(); - VAO.setOpenGLRenderWindow(model._openGLRenderWindow); - model.quadVAO = VAO; - } - if (model.previousProgramHash !== program.getMd5Hash()) { - VAO.shaderProgramChanged(); - poly.getCABO().bind(); - VAO.addAttributeArray(program, poly.getCABO(), 'vertexDC', poly.getCABO().getVertexOffset(), poly.getCABO().getStride(), model.context.FLOAT, 3, model.context.FALSE); - VAO.addAttributeArray(program, poly.getCABO(), 'tcoordDC', poly.getCABO().getTCoordOffset(), poly.getCABO().getStride(), model.context.FLOAT, 2, model.context.FALSE); - model.previousProgramHash = program.getMd5Hash(); - } - gl.drawArrays(gl.TRIANGLES, 0, poly.getCABO().getElementCount()); - VAO.release(); - }; - publicAPI.getLastLICBuffer = () => model.readIndex === 0 ? model.licTexture0 : model.licTexture1; - publicAPI.getLastSeedBuffer = () => model.readIndex === 0 ? model.seedTexture0 : model.seedTexture1; - publicAPI.getLICBuffer = () => 1 - model.readIndex === 0 ? model.licTexture0 : model.licTexture1; - publicAPI.getSeedBuffer = () => 1 - model.readIndex === 0 ? model.seedTexture0 : model.seedTexture1; - publicAPI.getLICTextureUnit = () => { - const tex = model.textures[model.readIndex][0]; - tex.activate(); - return tex.getTextureUnit(); - }; - publicAPI.getSeedTextureUnit = () => { - const tex = model.textures[model.readIndex][1]; - tex.activate(); - return tex.getTextureUnit(); - }; - publicAPI.getNoiseTextureUnit = function () { - let licPassNum = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - if (licPassNum === 0) { - model.noiseTexture.activate(); - return model.noiseTexture.getTextureUnit(); - } - model.eeTexture.activate(); - return model.eeTexture.getTextureUnit(); - }; - publicAPI.getVectorTextureUnit = () => { - model.vectorTexture.activate(); - return model.vectorTexture.getTextureUnit(); - }; - publicAPI.getImageVectorTextureUnit = () => { - if (model.imageVectorTexture) { - model.imageVectorTexture.activate(); - return model.imageVectorTexture.getTextureUnit(); - } - return publicAPI.getVectorTextureUnit(); - }; - publicAPI.getMaskVectorTextureUnit = () => { - if (model.maskVectorTexture) { - model.maskVectorTexture.activate(); - return model.maskVectorTexture.getTextureUnit(); - } - return publicAPI.getImageVectorTextureUnit(); - }; - publicAPI.clearBuffers = function () { - let clearEETex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false; - const fb = model.framebuffer; - const gl = model.context; - fb.removeColorBuffer(0); - fb.removeColorBuffer(1); - fb.removeColorBuffer(2); - fb.removeColorBuffer(3); - fb.setColorBuffer(model.licTexture0, 0); - fb.setColorBuffer(model.seedTexture0, 1); - fb.setColorBuffer(model.licTexture1, 2); - fb.setColorBuffer(model.seedTexture1, 3); - const attachments = [gl.COLOR_ATTACHMENT0, gl.COLOR_ATTACHMENT1, gl.COLOR_ATTACHMENT2, gl.COLOR_ATTACHMENT3]; - if (clearEETex) { - fb.removeColorBuffer(4); - fb.setColorBuffer(model.eeTexture, 4); - attachments.push(gl.COLOR_ATTACHMENT4); - } - gl.drawBuffers(attachments); - gl.clearColor(0.0, 1.0, 0.0, 0.0); - gl.disable(gl.SCISSOR_TEST); - gl.disable(gl.BLEND); - gl.clear(gl.COLOR_BUFFER_BIT); - fb.removeColorBuffer(0); - fb.removeColorBuffer(1); - fb.removeColorBuffer(2); - fb.removeColorBuffer(3); - if (clearEETex) { - fb.removeColorBuffer(4); - } - gl.drawBuffers([gl.NONE]); - }; - publicAPI.clearBuffer = texture => { - const fb = model.framebuffer; - const gl = model.context; - fb.removeColorBuffer(0); - fb.setColorBuffer(texture, 0); - gl.drawBuffers([gl.COLOR_ATTACHMENT0]); - gl.clearColor(0.0, 1.0, 0.0, 0.0); - gl.disable(gl.SCISSOR_TEST); - gl.disable(gl.BLEND); - gl.clear(gl.COLOR_BUFFER_BIT); - fb.removeColorBuffer(texture, 0); - gl.drawBuffers([gl.NONE]); - }; - publicAPI.activateVectorTextures = () => { - if (model.imageVectorTexture) { - model.imageVectorTexture.activate(); - } else { - model.vectorTexture.activate(); - } - if (model.maskVectorTexture) { - model.maskVectorTexture.activate(); - } - }; - publicAPI.deactivateVectorTextures = () => { - if (model.imageVectorTexture) { - model.imageVectorTexture.deactivate(); - } else { - model.vectorTexture.deactivate(); - } - if (model.maskVectorTexture) { - model.maskVectorTexture.deactivate(); - } - }; - publicAPI.activateNoiseTexture = function () { - let licPassNum = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - switch (licPassNum) { - case 0: - model.noiseTexture.activate(); - break; - case 1: - model.eeTexture.activate(); - break; - default: - console.error('Wrong LIC pass number'); - } - }; - publicAPI.deactivateNoiseTexture = function () { - let licPassNum = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - switch (licPassNum) { - case 0: - model.noiseTexture.deactivate(); - break; - case 1: - model.eeTexture.deactivate(); - break; - default: - console.error('Wrong LIC pass number'); - } - }; - publicAPI.attachLICBuffers = () => { - const readTex = model.textures[model.readIndex]; - const writeTex = model.textures[1 - model.readIndex]; - const fb = model.framebuffer; - const gl = model.context; - readTex[0].activate(); - readTex[1].activate(); - fb.removeColorBuffer(0); - fb.removeColorBuffer(1); - fb.setColorBuffer(writeTex[0], 0); - fb.setColorBuffer(writeTex[1], 1); - gl.drawBuffers([gl.COLOR_ATTACHMENT0, gl.COLOR_ATTACHMENT1]); - }; - publicAPI.detachLICBuffers = () => { - const readTex = model.textures[model.readIndex]; - const gl = model.context; - const fb = model.framebuffer; - readTex[0].deactivate(); - readTex[1].deactivate(); - fb.removeColorBuffer(0); - fb.removeColorBuffer(1); - gl.drawBuffers([gl.NONE]); - }; - publicAPI.attachImageVectorBuffer = () => { - const fb = model.framebuffer; - const gl = model.context; - model.vectorTexture.activate(); - fb.removeColorBuffer(0); - fb.setColorBuffer(model.imageVectorTexture, 0); - gl.drawBuffers([gl.COLOR_ATTACHMENT0]); - }; - publicAPI.detachImageVectorBuffer = () => { - const gl = model.context; - const fb = model.framebuffer; - model.vectorTexture.deactivate(); - fb.removeColorBuffer(0); - gl.drawBuffers([gl.NONE]); - }; - publicAPI.attachEEBuffer = () => { - const readTex = model.textures[model.readIndex]; - readTex[0].activate(); - model.framebuffer.removeColorBuffer(0); - model.framebuffer.setColorBuffer(model.eeTexture, 0); - const gl = model.context; - gl.drawBuffers([gl.COLOR_ATTACHMENT0]); - }; - publicAPI.detachEEBuffer = () => { - const gl = model.context; - const fb = model.framebuffer; - fb.removeColorBuffer(0); - gl.drawBuffers([gl.NONE]); - const readTex = model.textures[model.readIndex]; - readTex[0].deactivate(); - }; - publicAPI.detachBuffers = () => { - const gl = model.context; - const fb = model.framebuffer; - fb.removeColorBuffer(0); - fb.removeColorBuffer(1); - gl.drawBuffers([gl.NONE]); - const readTex = model.textures[model.readIndex]; - const writeTex = model.textures[1 - model.readIndex]; - if (readTex[0]) { - readTex[0].deactivate(); - } - if (readTex[1]) { - readTex[1].deactivate(); - } - if (writeTex[0]) { - writeTex[0].deactivate(); - } - if (writeTex[1]) { - writeTex[1].deactivate(); - } - if (model.eeTexture) { - model.eeTexture.deactivate(); - } - if (model.noiseTexture) { - model.noiseTexture.deactivate(); - } - }; - publicAPI.getWriteIndex = () => 1 - model.readIndex; - publicAPI.detachBuffers(); -} -const DEFAULT_VALUES = { - // _openGLRenderWindow: null, - vectorTexture: null, - maskVectorTexture: null, - noiseTexture: null, - doEEPass: false, - doVTPass: false, - readIndex: 0, - quad: null, - lastProgramHash: null, - framebuffer: null, - size: null, - pingTextures: [], - pongTextures: [], - textures: [] -}; -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['readIndex']); - macro.setGet(publicAPI, model, ['doEEPass', 'doVTPass', '_openGLRenderWindow', 'vectorTexture', 'maskVectorTexture', 'noiseTexture', 'framebuffer', 'size']); - macro.moveToProtected(publicAPI, model, ['openGLRenderWindow']); - - // Object methods - vtkLICPingPongBufferManager(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkLICPingPongBufferManager'); - -// ---------------------------------------------------------------------------- - -var vtkLICPingPongBufferManager$1 = { - newInstance, - extend -}; - -export { vtkLICPingPongBufferManager$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/SurfaceLICInterface.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/SurfaceLICInterface.js deleted file mode 100644 index b7863d54..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/SurfaceLICInterface.js +++ /dev/null @@ -1,555 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import vtkOpenGLTexture from '../Texture.js'; -import vtkDataArray from '../../../Common/Core/DataArray.js'; -import vtkHelper from '../Helper.js'; -import vtkProperty from '../../Core/Property.js'; -import vtkVertexArrayObject from '../VertexArrayObject.js'; -import vtkOpenGLFramebuffer from '../Framebuffer.js'; -import vtkLineIntegralConvolution2D from './LineIntegralConvolution2D.js'; -import { v as vtkLineIntegralConvolution2D_quadVS } from './glsl/vtkLineIntegralConvolution2D_quadVS.glsl.js'; -import { v as vtkLineIntegralConvolution2D_SC } from './glsl/vtkLineIntegralConvolution2D_SC.glsl.js'; -import { v as vtkSurfaceLICInterface_DCpy } from './glsl/vtkSurfaceLICInterface_DCpy.glsl.js'; -import { v as vtkSurfaceLICInterface_CE } from './glsl/vtkSurfaceLICInterface_CE.glsl.js'; -import seedrandom from 'seedrandom'; -import { NoiseType, ContrastEnhanceMode } from '../../Core/SurfaceLICInterface/Constants.js'; -import vtkSurfaceLICInterface from '../../Core/SurfaceLICInterface.js'; - -const { - Representation -} = vtkProperty; - -// ---------------------------------------------------------------------------- -// vtkLICInterface methods -// ---------------------------------------------------------------------------- -function getQuadPoly(openGLRenderWindow) { - const quad = vtkHelper.newInstance(); - quad.setOpenGLRenderWindow(openGLRenderWindow); - // build the CABO - const ptsArray = new Float32Array(12); - for (let i = 0; i < 4; i++) { - ptsArray[i * 3] = i % 2 * 2 - 1.0; - ptsArray[i * 3 + 1] = i > 1 ? 1.0 : -1.0; - ptsArray[i * 3 + 2] = 0.0; - } - const tCoord = new Float32Array([0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 1.0]); - const cellArray = new Uint16Array(8); - cellArray[0] = 3; - cellArray[1] = 0; - cellArray[2] = 1; - cellArray[3] = 3; - cellArray[4] = 3; - cellArray[5] = 0; - cellArray[6] = 3; - cellArray[7] = 2; - const points = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: ptsArray - }); - points.setName('points'); - const cells = vtkDataArray.newInstance({ - numberOfComponents: 1, - values: cellArray - }); - const tArray = vtkDataArray.newInstance({ - numberOfComponents: 2, - values: tCoord - }); - quad.getCABO().createVBO(cells, 'polys', Representation.SURFACE, { - points, - cellOffset: 0, - tcoords: tArray - }); - return quad; -} -function vtkOpenGLSurfaceLICInterface(publicAPI, model) { - model.classHierarchy.push('vtkOpenGLSurfaceLICInterface'); - publicAPI.renderQuad = (bounds, program) => { - const poly = model.licQuad; - const gl = model.context; - let VAO = model.licQuadVAO; - if (!VAO) { - VAO = vtkVertexArrayObject.newInstance(); - VAO.setOpenGLRenderWindow(model._openGLRenderWindow); - model.licQuadVAO = VAO; - } - if (model.previousProgramHash !== program.getMd5Hash()) { - VAO.shaderProgramChanged(); - poly.getCABO().bind(); - VAO.addAttributeArray(program, poly.getCABO(), 'vertexDC', poly.getCABO().getVertexOffset(), poly.getCABO().getStride(), model.context.FLOAT, 3, model.context.FALSE); - VAO.addAttributeArray(program, poly.getCABO(), 'tcoordDC', poly.getCABO().getTCoordOffset(), poly.getCABO().getStride(), model.context.FLOAT, 2, model.context.FALSE); - model.previousProgramHash = program.getMd5Hash(); - } - gl.drawArrays(gl.TRIANGLES, 0, poly.getCABO().getElementCount()); - VAO.release(); - }; - function generateGaussianNoise(length, numberOfNoiseLevels, noiseImpulseProbability, noiseImpulseBackgroundValue, min, max) { - const N = 2048; - const impulseProb = Math.max(0.0, Math.min(1.0, noiseImpulseProbability)); - const noise = Float32Array.from({ - length: length * length - }, () => { - let val = 0; - if (impulseProb === 1.0 || Math.random() > 1.0 - impulseProb) { - for (let i = 0; i < N; ++i) { - val += Math.random(); - } - } - return val; - }); - // Normalize - let maxVal = 0.0; - let minVal = N + 1; - noise.forEach(val => { - // Don't count 0s for minVal if impulseProb < 1.0 - if (impulseProb === 1.0) { - minVal = val < minVal ? val : minVal; - } else { - minVal = val < minVal && val > 0.0 ? val : minVal; - } - maxVal = val > maxVal ? val : maxVal; - }); - let diff = maxVal - minVal; - if (diff === 0.0) { - minVal = 0.0; - if (maxVal === 0.0) { - diff = 1.0; - } else { - diff = maxVal; - } - } - const maxLevel = numberOfNoiseLevels - 1; - const delta = maxLevel !== 0 ? 1.0 / maxLevel : 0.0; - const noiseRange = max - min; - return noise.map(val => { - const normalized = val < minVal ? val : (val - minVal) / diff; - const l = Math.floor(normalized * numberOfNoiseLevels); - const quantized = l > maxLevel ? maxLevel : l; - if (val >= minVal) { - if (numberOfNoiseLevels === 1) { - return max; - } - return min + quantized * delta * noiseRange; - } - return noiseImpulseBackgroundValue; - }); - } - function generateUniformNoise(_ref, numberOfNoiseLevels, min, max) { - let [width, height] = _ref; - const diff = max - min; - return Float32Array.from({ - length: width * height - }, () => { - let r = Math.random(); - r = Math.floor(r * numberOfNoiseLevels) / numberOfNoiseLevels; - r = r * diff + min; - if (r > 1.0) { - return 1.0; - } - if (r < 0.0) { - return 0.0; - } - return r; - }); - } - publicAPI.generateNoiseTexture = length => { - if (!model.noiseTexture || model.licInterface.getRebuildNoiseTexture()) { - model.licInterface.setRebuildNoiseTexture(false); - if (model.noiseTexture) { - model.noiseTexture.releaseGraphicsResources(); - } - // Reseed RNG - seedrandom(model.noiseGeneratorSeed, { - global: true - }); - let base = []; - const { - noiseTextureType, - noiseGrainSize, - numberOfNoiseLevels, - noiseImpulseProbability, - noiseImpulseBackgroundValue, - minNoiseValue, - maxNoiseValue - } = model.licInterface.get('noiseTextureType', 'noiseGrainSize', 'numberOfNoiseLevels', 'noiseImpulseProbability', 'noiseImpulseBackgroundValue', 'minNoiseValue', 'maxNoiseValue'); - switch (noiseTextureType) { - case NoiseType.GAUSSIAN: - base = generateGaussianNoise(Math.floor(length / noiseGrainSize), numberOfNoiseLevels, noiseImpulseProbability, noiseImpulseBackgroundValue, minNoiseValue, maxNoiseValue); - break; - case NoiseType.UNIFORM: - default: - base = generateUniformNoise([Math.ceil(length / noiseGrainSize), Math.ceil(length / noiseGrainSize)], numberOfNoiseLevels, minNoiseValue, maxNoiseValue); - } - const invGrainSize = 1.0 / noiseGrainSize; - const values = Float32Array.from({ - length: length * length * 4 - }, (val, index) => { - const baseIndex = index / 4; - if (index % 4 === 0) { - const x = Math.floor(baseIndex % length * invGrainSize); - const y = Math.floor(baseIndex / length * invGrainSize); - return base[y * (length / noiseGrainSize) + x]; - } - if (index % 4 === 1 || index % 4 === 3) { - return 1.0; - } - return 0.0; - }); - const texture = vtkOpenGLTexture.newInstance({ - wrapS: vtkOpenGLTexture.Wrap.REPEAT, - wrapT: vtkOpenGLTexture.Wrap.REPEAT, - minificationFilter: vtkOpenGLTexture.Filter.NEAREST, - magnificationFilter: vtkOpenGLTexture.Filter.NEAREST, - generateMipMap: false, - openGLDataType: model.context.FLOAT, - baseLevel: 0, - maxLevel: 0, - autoParameters: false - }); - texture.setOpenGLRenderWindow(model._openGLRenderWindow); - texture.create2DFromRaw({ - width: length, - height: length, - numComps: 4, - dataType: 'Float32Array', - data: values - }); - texture.activate(); - texture.sendParameters(); - texture.deactivate(); - model.noiseTexture = texture; - } - }; - publicAPI.buildAShader = fSource => model._openGLRenderWindow.getShaderCache().readyShaderProgramArray(vtkLineIntegralConvolution2D_quadVS, fSource, ''); - publicAPI.allocateTextures = () => { - const nearest = vtkOpenGLTexture.Filter.NEAREST; - const linear = vtkOpenGLTexture.Filter.LINEAR; - const rw = model._openGLRenderWindow; - if (!model.geometryImage) { - model.geometryImage = publicAPI.allocateTexture(rw, nearest); - } - if (!model.vectorImage) { - model.vectorImage = publicAPI.allocateTexture(rw, linear); - } - if (!model.maskVectorImage) { - model.maskVectorImage = publicAPI.allocateTexture(rw, linear); - } - if (!model.LICImage) { - model.LICImage = publicAPI.allocateTexture(rw, nearest); - } - if (!model.RGBColorImage) { - model.RGBColorImage = publicAPI.allocateTexture(rw, nearest); - } - if (!model.HSLColorImage) { - model.HSLColorImage = publicAPI.allocateTexture(rw, nearest); - } - if (!model.depthTexture) { - model.depthTexture = publicAPI.allocateDepthTexture(rw); - } - }; - publicAPI.allocateTexture = (openGLRenderWindow, filter) => { - const gl = model.context; - const texture = vtkOpenGLTexture.newInstance({ - wrapS: vtkOpenGLTexture.Wrap.CLAMP_TO_EDGE, - wrapT: vtkOpenGLTexture.Wrap.CLAMP_TO_EDGE, - minificationFilter: filter, - magnificationFilter: filter, - generateMipmap: false, - openGLDataType: gl.FLOAT, - baseLevel: 0, - maxLevel: 0, - autoParameters: false - }); - texture.setOpenGLRenderWindow(openGLRenderWindow); - texture.setInternalFormat(gl.RGBA32F); - texture.create2DFromRaw({ - width: model.size[0], - height: model.size[1], - numComps: 4, - dataType: 'Float32Array', - data: null - }); - texture.activate(); - texture.sendParameters(); - texture.deactivate(); - return texture; - }; - publicAPI.allocateDepthTexture = openGLRenderWindow => { - const gl = model.context; - const texture = vtkOpenGLTexture.newInstance({ - generateMipmap: false, - openGLDataType: gl.FLOAT, - autoParameters: false - }); - texture.setOpenGLRenderWindow(openGLRenderWindow); - texture.createDepthFromRaw({ - width: model.size[0], - height: model.size[1], - dataType: 'Float32Array', - data: null - }); - texture.activate(); - texture.sendParameters(); - texture.deactivate(); - return texture; - }; - publicAPI.createFBO = () => { - if (!model.framebuffer) { - model.licHelper = null; // All buffers need rebuilding - const fb = vtkOpenGLFramebuffer.newInstance(); - fb.setOpenGLRenderWindow(model._openGLRenderWindow); - fb.saveCurrentBindingsAndBuffers(); - fb.create(...model.size); - fb.populateFramebuffer(); - model.framebuffer = fb; - fb.restorePreviousBindingsAndBuffers(); - } - }; - publicAPI.completedGeometry = () => { - const gl = model.context; - const fb = model.framebuffer; - fb.removeColorBuffer(0); - fb.removeColorBuffer(1); - fb.removeColorBuffer(2); - fb.removeDepthBuffer(); - gl.drawBuffers([gl.NONE]); - fb.restorePreviousBindingsAndBuffers(); - }; - publicAPI.buildAllShaders = () => { - if (model.shadersNeedBuilding) { - model.licColorPass = publicAPI.buildAShader(vtkLineIntegralConvolution2D_SC); - model.licCopyPass = publicAPI.buildAShader(vtkSurfaceLICInterface_DCpy); - model.enhanceContrastPass = publicAPI.buildAShader(vtkSurfaceLICInterface_CE); - model.shadersNeedBuilding = false; - } - }; - publicAPI.initializeResources = () => { - publicAPI.createFBO(); - publicAPI.generateNoiseTexture(model.licInterface.getNoiseTextureSize()); - publicAPI.allocateTextures(); - publicAPI.buildAllShaders(); - if (!model.licQuad) { - model.licQuad = getQuadPoly(model._openGLRenderWindow); - } - if (!model.licHelper) { - model.licHelper = vtkLineIntegralConvolution2D.newInstance(); - } - }; - publicAPI.prepareForGeometry = () => { - const fb = model.framebuffer; - fb.saveCurrentBindingsAndBuffers(); - fb.bind(); - model.geometryImage.activate(); - model.vectorImage.activate(); - model.maskVectorImage.activate(); - // Don't use location 1 as it can be used by order independant translucent pass - // Translucent pass uses location 1 because of this line: - // gl_FragData[1].r = weight; - fb.removeColorBuffer(0); - fb.removeColorBuffer(2); - fb.removeColorBuffer(3); - fb.setColorBuffer(model.geometryImage, 0); - fb.setColorBuffer(model.vectorImage, 2); - fb.setColorBuffer(model.maskVectorImage, 3); - fb.setDepthBuffer(model.depthTexture); - const gl = model.context; - gl.drawBuffers([gl.COLOR_ATTACHMENT0, gl.NONE, gl.COLOR_ATTACHMENT2, gl.COLOR_ATTACHMENT3]); - gl.viewport(0, 0, ...model.size); - gl.scissor(0, 0, ...model.size); - gl.disable(gl.BLEND); - gl.disable(gl.DEPTH_TEST); - gl.disable(gl.SCISSOR_TEST); - gl.clearColor(0.0, 0.0, 0.0, 0.0); - // eslint-disable-next-line no-bitwise - gl.clear(gl.DEPTH_BUFFER_BIT | gl.COLOR_BUFFER_BIT); - }; - - // Copies the LIC image to the renderWindow. Will try to upscale the image to match the rw's size. - publicAPI.copyToScreen = windowSize => { - model.RGBColorImage.activate(); - model.depthTexture.activate(); - if (!model.licCopyPass) { - publicAPI.initializeResources(); - } - const copyPass = model.licCopyPass; - model._openGLRenderWindow.getShaderCache().readyShaderProgram(copyPass); - const gl = model.context; - gl.viewport(0, 0, ...windowSize); - gl.scissor(0, 0, ...windowSize); - gl.disable(gl.BLEND); - gl.enable(gl.DEPTH_TEST); - gl.disable(gl.SCISSOR_TEST); - copyPass.setUniformi('texDepth', model.depthTexture.getTextureUnit()); - copyPass.setUniformi('texRGBColors', model.RGBColorImage.getTextureUnit()); - publicAPI.renderQuad(windowSize, copyPass); - model.RGBColorImage.deactivate(); - model.depthTexture.deactivate(); - }; - publicAPI.combineColorsAndLIC = () => { - const gl = model.context; - const fb = model.framebuffer; - fb.saveCurrentBindingsAndBuffers(); - fb.bind(); - fb.create(...model.size); - fb.removeColorBuffer(0); - fb.removeColorBuffer(1); - fb.setColorBuffer(model.RGBColorImage, 0); - fb.setColorBuffer(model.HSLColorImage, 1); - gl.drawBuffers([gl.COLOR_ATTACHMENT0, gl.COLOR_ATTACHMENT1]); - gl.disable(gl.DEPTH_TEST); - gl.clearColor(0.0, 0.0, 0.0, 0.0); - gl.clear(gl.COLOR_BUFFER_BIT); - model.vectorImage.activate(); - model.geometryImage.activate(); - model.LICImage.activate(); - if (!model.licColorPass) { - publicAPI.initializeResources(); - } - const colorPass = model.licColorPass; - model._openGLRenderWindow.getShaderCache().readyShaderProgram(colorPass); - colorPass.setUniformi('texVectors', model.vectorImage.getTextureUnit()); - colorPass.setUniformi('texGeomColors', model.geometryImage.getTextureUnit()); - const { - colorMode, - LICIntensity, - mapModeBias, - maskIntensity, - maskColor, - enhanceContrast, - lowColorContrastEnhancementFactor, - highColorContrastEnhancementFactor - } = model.licInterface.get('colorMode', 'LICIntensity', 'mapModeBias', 'maskIntensity', 'maskColor', 'enhanceContrast', 'lowColorContrastEnhancementFactor', 'highColorContrastEnhancementFactor'); - colorPass.setUniformi('texLIC', model.LICImage.getTextureUnit()); - colorPass.setUniformi('uScalarColorMode', colorMode); - colorPass.setUniformf('uLICIntensity', LICIntensity); - colorPass.setUniformf('uMapBias', mapModeBias); - colorPass.setUniformf('uMaskIntensity', maskIntensity); - colorPass.setUniform3f('uMaskColor', ...maskColor); - publicAPI.renderQuad(model.size, colorPass); - model.vectorImage.deactivate(); - model.geometryImage.deactivate(); - model.LICImage.deactivate(); - fb.removeColorBuffer(0); - fb.removeColorBuffer(1); - gl.drawBuffers([gl.NONE]); - if (enhanceContrast === ContrastEnhanceMode.COLOR || enhanceContrast === ContrastEnhanceMode.BOTH) { - // min and max luminance values. Most of the time close to 0 and 1 - let min = 0.0; - let max = 1.0; - let lDiff = max - min; - min += lDiff * lowColorContrastEnhancementFactor; - max -= lDiff * highColorContrastEnhancementFactor; - lDiff = max - min; - fb.setColorBuffer(model.RGBColorImage); - gl.drawBuffers([gl.COLOR_ATTACHMENT0]); - model.geometryImage.activate(); - model.HSLColorImage.activate(); - model.LICImage.activate(); - if (!model.enhanceContrastPass) { - publicAPI.initializeResources(); - } - const { - enhanceContrastPass - } = model; - model._openGLRenderWindow.getShaderCache().readyShaderProgram(enhanceContrastPass); - enhanceContrastPass.setUniformi('texGeomColors', model.geometryImage.getTextureUnit()); - enhanceContrastPass.setUniformi('texHSLColors', model.HSLColorImage.getTextureUnit()); - enhanceContrastPass.setUniformi('texLIC', model.LICImage.getTextureUnit()); - enhanceContrastPass.setUniformf('uLMin', min); - enhanceContrastPass.setUniformf('uLMaxMinDiff', lDiff); - publicAPI.renderQuad(model.size, enhanceContrastPass); - model.geometryImage.deactivate(); - model.HSLColorImage.deactivate(); - model.LICImage.deactivate(); - fb.removeColorBuffer(0); - gl.drawBuffers([gl.NONE]); - } - fb.restorePreviousBindingsAndBuffers(); - }; - publicAPI.applyLIC = () => { - const options = model.licInterface.get('stepSize', 'numberOfSteps', 'enhancedLIC', 'enhanceContrast', 'lowLICContrastEnhancementFactor', 'highLICContrastEnhancementFactor', 'antiAlias', 'normalizeVectors', 'maskThreshold', 'transformVectors'); - const resultTexture = model.licHelper.executeLIC(model.size, model.vectorImage, model.maskVectorImage, model.noiseTexture, model._openGLRenderWindow, options); - if (!resultTexture) { - console.error('Failed to compute image LIC'); - model.LICImage = null; - return; - } - model.LICImage = resultTexture; - }; - publicAPI.setSize = size => { - // If size changed, reallocate fb and textures - if (Array.isArray(size) && size.length === 2) { - if (!model.size || model.size[0] !== size[0] || model.size[1] !== size[1]) { - model.size = size; - publicAPI.releaseGraphicsResources(); - } - } - }; - publicAPI.releaseGraphicsResources = () => { - if (model.geometryImage) { - model.geometryImage.releaseGraphicsResources(); - model.geometryImage = null; - } - if (model.vectorImage) { - model.vectorImage.releaseGraphicsResources(); - model.vectorImage = null; - } - if (model.maskVectorImage) { - model.maskVectorImage.releaseGraphicsResources(); - model.maskVectorImage = null; - } - if (model.LICImage) { - model.LICImage.releaseGraphicsResources(); - model.LICImage = null; - } - if (model.RGBColorImage) { - model.RGBColorImage.releaseGraphicsResources(); - model.RGBColorImage = null; - } - if (model.HSLColorImage) { - model.HSLColorImage.releaseGraphicsResources(); - model.HSLColorImage = null; - } - if (model.depthTexture) { - model.depthTexture.releaseGraphicsResources(); - model.depthTexture = null; - } - if (model.framebuffer) { - model.framebuffer.releaseGraphicsResources(); - model.framebuffer = null; - } - }; -} -const DEFAULT_VALUES = { - context: null, - // _openGLRenderWindow: null, - shadersNeedBuilding: true, - reallocateTextures: true, - size: null, - licInterface: null -}; -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inherit - vtkSurfaceLICInterface.extend(publicAPI, model, initialValues); - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['context', '_openGLRenderWindow', 'reallocateTextures', 'licInterface', 'size']); - macro.moveToProtected(publicAPI, model, ['openGLRenderWindow']); - - // Object methods - vtkOpenGLSurfaceLICInterface(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSurfaceLICInterface'); - -// ---------------------------------------------------------------------------- - -var vtkOpenGLSurfaceLICInterface$1 = { - newInstance, - extend -}; - -export { vtkOpenGLSurfaceLICInterface$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/SurfaceLICMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/SurfaceLICMapper.js deleted file mode 100644 index aa6ebc7f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/SurfaceLICMapper.js +++ /dev/null @@ -1,218 +0,0 @@ -import { n as newInstance$1, e as setGet, c as macro } from '../../../macros2.js'; -import vtkOpenGLPolyDataMapper from '../PolyDataMapper.js'; -import vtkShaderProgram from '../ShaderProgram.js'; -import vtkOpenGLSurfaceLICInterface from './SurfaceLICInterface.js'; -import vtkSurfaceLICInterface from '../../Core/SurfaceLICInterface.js'; -import { registerOverride } from '../ViewNodeFactory.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkOpenGLSurfaceLICMapper methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLSurfaceLICMapper(publicAPI, model) { - model.classHierarchy.push('vtkOpenGLSurfaceLICMapper'); - const superClass = { - ...publicAPI - }; - publicAPI.getNeedToRebuildShaders = (cellBO, ren, actor) => model.rebuildLICShaders || superClass.getNeedToRebuildShaders(cellBO, ren, actor); - publicAPI.replaceShaderValues = (shaders, ren, actor) => { - const prevComplexity = model.lastBoundBO.getReferenceByName('lastLightComplexity'); - - // add some code to handle the LIC vectors and mask - let VSSource = shaders.Vertex; - let FSSource = shaders.Fragment; - const array = model.renderable.getInputArrayToProcess(0); - if (array && model.canDrawLIC) { - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::Output::Dec', ['//VTK::Output::Dec', 'layout(location = 2) out vec4 vectorTexture;', 'layout(location = 3) out vec4 maskVectorTexture;']).result; - const arrayName = array.getName(); - const attributeName = `${arrayName}MC`; - - // We need normals even with no lighting - if (prevComplexity === 0) { - model.lastBoundBO.set({ - lastLightComplexity: 1 - }, true); - } - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::TCoord::Dec', [`attribute vec3 ${attributeName};`, 'out vec3 licOutput;', '//VTK::TCoord::Dec']).result; - VSSource = vtkShaderProgram.substitute(VSSource, '//VTK::TCoord::Impl', [`licOutput = ${attributeName};`, '//VTK::TCoord::Impl']).result; - - // 0/1, when 1 V is projected to surface for |V| computation. - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Dec', ['uniform int uMaskOnSurface;', 'uniform mat3 normalMatrix;', 'in vec3 licOutput;', '//VTK::TCoord::Dec']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::TCoord::Impl', ['// projected vectors', ' vec3 tcoordLIC = normalMatrix * licOutput;', ' vec3 normN = normalize(normalVCVSOutput);', ' float k = dot(tcoordLIC, normN);', ' vec3 projected = (tcoordLIC - k*normN);', ' vectorTexture = vec4(projected.x, projected.y, 0.0 , 1.0);', '// vectors for fragment masking', ' if (uMaskOnSurface == 0)', ' {', ' maskVectorTexture = vec4(licOutput, 1.0);', ' }', ' else', ' {', ' maskVectorTexture = vec4(projected.x, projected.y, 0.0 , 1.0);', ' }', '//VTK::TCoord::Impl'], false).result; - shaders.Vertex = VSSource; - } - model.rebuildLICShaders = false; - shaders.Fragment = FSSource; - superClass.replaceShaderValues(shaders, ren, actor); - if (prevComplexity > 0) { - model.lastBoundBO.set({ - lastLightComplexity: prevComplexity - }, true); - } - }; - publicAPI.setMapperShaderParameters = (cellBO, ren, actor) => { - superClass.setMapperShaderParameters(cellBO, ren, actor); - if (model.canDrawLIC) { - cellBO.getProgram().setUniformi('uMaskOnSurface', model.maskOnSurface); - } - }; - publicAPI.getNeedToRebuildBufferObjects = (ren, actor) => model.rebuildLICBuffers || superClass.getNeedToRebuildBufferObjects(ren, actor); - publicAPI.buildBufferObjects = (ren, actor) => { - if (model.canDrawLIC) { - const array = model.renderable.getInputArrayToProcess(0); - if (array && array.getNumberOfComponents() > 1) { - model.renderable.setCustomShaderAttributes([array.getName()]); - } - } - model.rebuildLICBuffers = false; - superClass.buildBufferObjects(ren, actor); - }; - publicAPI.pushState = gl => { - model.stateCache = { - [gl.BLEND]: gl.isEnabled(gl.BLEND), - [gl.DEPTH_TEST]: gl.isEnabled(gl.DEPTH_TEST), - [gl.SCISSOR_TEST]: gl.isEnabled(gl.SCISSOR_TEST), - [gl.CULL_FACE]: gl.isEnabled(gl.CULL_FACE) - }; - }; - publicAPI.popState = gl => { - const apply = param => model.stateCache[param] ? gl.enable(param) : gl.disable(param); - apply(gl.BLEND); - apply(gl.DEPTH_TEST); - apply(gl.SCISSOR_TEST); - apply(gl.CULL_FACE); - }; - publicAPI.renderPiece = (ren, actor) => { - let canDrawLIC = true; - // Check for gl compatibility - const gl2 = model._openGLRenderWindow.getWebgl2(); - if (!gl2) { - vtkErrorMacro('SurfaceLICMapper Requires WebGL 2'); - canDrawLIC = false; - } - - // Check for required extensions - if (!model.context.getExtension('EXT_color_buffer_float') || !model.context.getExtension('OES_texture_float_linear')) { - vtkErrorMacro('SurfaceLICMapper requires the EXT_color_buffer_float and OES_texture_float_linear WebGL2 extensions.'); - canDrawLIC = false; - } - - // Check for input - model.currentInput = model.renderable.getInputData(); - if (!model.currentInput) { - vtkErrorMacro('No input'); - canDrawLIC = false; - } - - // Make sure LIC interfaces are present and configured - let licInterface = model.renderable.getLicInterface(); - if (!licInterface) { - licInterface = vtkSurfaceLICInterface.newInstance(); - model.renderable.setLicInterface(licInterface); - } - if (!model.openGLLicInterface) { - model.openGLLicInterface = vtkOpenGLSurfaceLICInterface.newInstance(); - } - if (licInterface !== model.openGLLicInterface.getLicInterface()) { - model.openGLLicInterface.setLicInterface(licInterface); - } - - // Check for input vectors - const array = model.renderable.getInputArrayToProcess(0); - if (licInterface.getEnableLIC() && (!array || array.getNumberOfComponents() < 2)) { - vtkErrorMacro('No vector input array'); - canDrawLIC = false; - } - if (!licInterface.getEnableLIC()) { - canDrawLIC = false; - } - if (model.canDrawLIC !== canDrawLIC) { - model.rebuildLICShaders = true; - model.rebuildLICBuffers = true; - } - model.canDrawLIC = canDrawLIC; - - // Necessary conditions are not met. Fallback to polydataMapper - if (!canDrawLIC || !licInterface.getEnableLIC()) { - superClass.renderPiece(ren, actor); - return; - } - - // apply faceCulling - const gl = model.context; - const backfaceCulling = actor.getProperty().getBackfaceCulling(); - const frontfaceCulling = actor.getProperty().getFrontfaceCulling(); - if (!backfaceCulling && !frontfaceCulling) { - model._openGLRenderWindow.disableCullFace(); - } else if (frontfaceCulling) { - model._openGLRenderWindow.enableCullFace(); - gl.cullFace(gl.FRONT); - } else { - model._openGLRenderWindow.enableCullFace(); - gl.cullFace(gl.BACK); - } - const windowSize = model._openGLRenderWindow.getSize(); - const size = windowSize.map(i => Math.round(i * licInterface.getViewPortScale())); - model.openGLLicInterface.setSize(size); - model.openGLLicInterface.setOpenGLRenderWindow(model._openGLRenderWindow); - model.openGLLicInterface.setContext(model.context); - - // Pre-render - publicAPI.pushState(model.context); - model.openGLLicInterface.initializeResources(); - model.openGLLicInterface.prepareForGeometry(); - publicAPI.popState(model.context); - - // Render - superClass.renderPieceStart(ren, actor); - superClass.renderPieceDraw(ren, actor); - superClass.renderPieceFinish(ren, actor); - - // Post - publicAPI.pushState(model.context); - model.VBOBuildTime.modified(); - model.openGLLicInterface.completedGeometry(); - model.context.disable(model.context.CULL_FACE); - model.openGLLicInterface.applyLIC(); - model.openGLLicInterface.combineColorsAndLIC(); - model.openGLLicInterface.copyToScreen(windowSize); - publicAPI.popState(model.context); - }; -} -const DEFAULT_VALUES = { - canDrawLIC: false, - rebuildLICShaders: false, - rebuildLICBuffers: false, - openGLLicInterface: null -}; -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inherit - vtkOpenGLPolyDataMapper.extend(publicAPI, model, initialValues); - - // Object methods - vtkOpenGLSurfaceLICMapper(publicAPI, model); - setGet(publicAPI, model, ['openGLLicInterface']); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkOpenGLSurfaceLICMapper'); - -// ---------------------------------------------------------------------------- - -var vtkOpenGLSurfaceLICMapper$1 = { - newInstance, - extend -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkSurfaceLICMapper', newInstance); - -export { vtkOpenGLSurfaceLICMapper$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_AAH.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_AAH.glsl.js deleted file mode 100644 index 34ee927f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_AAH.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkLineIntegralConvolution2D_AAH = "//VTK::System::Dec\n\n//=========================================================================\n//\n// Program: Visualization Toolkit\n// Module: vtkLineIntegralConvolution2D_AAH.glsl\n//\n// Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n// All rights reserved.\n// See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n//\n// This software is distributed WITHOUT ANY WARRANTY; without even\n// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n// PURPOSE. See the above copyright notice for more information.\n//\n//=========================================================================\n\n// Anti-alias stage in vtkLineIntegralConvolution2D\n// horizontal pass of a Gaussian convolution\n\n// the output of this shader\nlayout(location = 0) out vec4 LICOutput;\nlayout(location = 1) out vec4 SeedOutput;\n\nuniform sampler2D texLIC; // input texture\nuniform float uDx; // fragment size\n\nin vec2 tcoordVC;\n\n// factored 3x3 Gaussian kernel\n// K^T*K = G\nfloat K[3] = float[3](0.141421356, 0.707106781, 0.141421356);\n\n// determine if the fragment was masked\nbool Masked(float val){ return val != 0.0; }\n\nvoid main(void)\n{\n// neighbor offsets\nvec2 fragDx[3] = vec2[3](vec2(-uDx,0.0), vec2(0.0,0.0), vec2(uDx,0.0));\n\n vec2 lictc = tcoordVC.st;\n vec4 lic[3];\n bool dontUse = false;\n float conv = 0.0;\n for (int i=0; i<3; ++i)\n {\n vec2 tc = lictc + fragDx[i];\n lic[i] = texture2D(texLIC, tc);\n dontUse = dontUse || Masked(lic[i].g);\n conv = conv + K[i] * lic[i].r;\n }\n // output is (conv, mask, skip, 1)\n if (dontUse)\n {\n LICOutput = vec4(lic[1].rg, 1.0, 1.0);\n }\n else\n {\n LICOutput = vec4(conv, lic[1].gb, 1.0);\n }\n SeedOutput = vec4(0.0, 0.0, 0.0, 0.0);\n}\n"; - -export { vtkLineIntegralConvolution2D_AAH as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_AAV.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_AAV.glsl.js deleted file mode 100644 index c557c3ff..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_AAV.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkLineIntegralConvolution2D_AAV = "//VTK::System::Dec\n\n//=========================================================================\n//\n// Program: Visualization Toolkit\n// Module: vtkLineIntegralConvolution2D_AAV.glsl\n//\n// Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n// All rights reserved.\n// See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n//\n// This software is distributed WITHOUT ANY WARRANTY; without even\n// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n// PURPOSE. See the above copyright notice for more information.\n//\n//=========================================================================\n\n// Anti-alias stage in vtkLineIntegralConvolution2D\n// vertical pass of a Gaussian convolution\n\n// the output of this shader\nlayout(location = 0) out vec4 LICOutput;\nlayout(location = 1) out vec4 SeedOutput;\n\nuniform sampler2D texLIC; // input texture\nuniform float uDy; // fragment size\n\nin vec2 tcoordVC;\n\n\n// factored 3x3 Gaussian kernel\n// K^T*K = G\nfloat K[3] = float[3](0.141421356, 0.707106781, 0.141421356);\n\n// determine if the fragment was masked\nbool Masked(float val){ return val != 0.0; }\n\nvoid main(void)\n{\n// neighbor offsets\nvec2 fragDy[3] = vec2[3](vec2(0.0,-uDy), vec2(0.0,0.0), vec2(0.0,uDy));\n\n\n vec2 lictc = tcoordVC.st;\n vec4 lic[3];\n bool dontUse = false;\n float conv = 0.0;\n for (int i=0; i<3; ++i)\n {\n vec2 tc = lictc + fragDy[i];\n lic[i] = texture2D(texLIC, tc);\n dontUse = dontUse || Masked(lic[i].g);\n conv = conv + K[i] * lic[i].r;\n }\n // output is (conv, mask, skip, 1)\n if (dontUse)\n {\n LICOutput = vec4(lic[1].rg, 1.0, 1.0);\n }\n else\n {\n LICOutput = vec4(conv, lic[1].gb, 1.0);\n }\n SeedOutput = vec4(0.0, 0.0, 0.0, 0.0);\n}\n"; - -export { vtkLineIntegralConvolution2D_AAV as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_CE.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_CE.glsl.js deleted file mode 100644 index 4117a410..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_CE.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkLineIntegralConvolution2D_CE = "//VTK::System::Dec\n\n//=========================================================================\n//\n// Program: Visualization Toolkit\n// Module: vtkLineIntegralConvolution2D_CE.glsl\n//\n// Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n// All rights reserved.\n// See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n//\n// This software is distributed WITHOUT ANY WARRANTY; without even\n// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n// PURPOSE. See the above copyright notice for more information.\n//\n//=========================================================================\n\n// gray scale contrast enhance stage implemented via histogram stretching\n// if the min and max are tweaked it can generate out-of-range values\n// these will be clamped in 0 to 1\n\n// the output of this shader\nlayout(location = 0) out vec4 LICOutput;\nlayout(location = 1) out vec4 SeedOutput;\n\n\nuniform sampler2D texLIC; // most recent lic pass\nuniform float uMin; // min gray scale color value\nuniform float uMaxMinDiff; // max-min\n\nin vec2 tcoordVC;\n\nvoid main( void )\n{\n vec4 lic = texture2D(texLIC, tcoordVC.st);\n if (lic.g!=0.0)\n {\n LICOutput = lic;\n }\n else\n {\n float CElic = clamp((lic.r - uMin)/uMaxMinDiff, 0.0, 1.0);\n LICOutput = vec4(CElic, lic.gb, 1.0);\n }\n SeedOutput = vec4(0.0, 0.0, 0.0, 0.0);\n}\n"; - -export { vtkLineIntegralConvolution2D_CE as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_EE.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_EE.glsl.js deleted file mode 100644 index e0d7513e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_EE.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkLineIntegralConvolution2D_EE = "//VTK::System::Dec\n\n//=========================================================================\n//\n// Program: Visualization Toolkit\n// Module: vtkLineIntegralConvolution2D_fs2.glsl\n//\n// Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n// All rights reserved.\n// See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n//\n// This software is distributed WITHOUT ANY WARRANTY; without even\n// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n// PURPOSE. See the above copyright notice for more information.\n//\n//=========================================================================\n\n// high-pass filter stage employed by vtkLineIntegralConvolution2D\n// between LIC pass 1 and LIC pass 2. filtered LIC pass 1, becomes\n// noise for pass2.\n\n// the output of this shader\nlayout(location = 0) out vec4 EEOutput;\n\nuniform sampler2D texLIC; // most recent lic pass\nuniform float uDx; // fragment size\nuniform float uDy; // fragment size\n\nin vec2 tcoordVC;\n\n// kernel for simple laplace edge enhancement.\n// p=Laplace(p)+p\nfloat K[9] = float[9](\n -1.0, -1.0, -1.0,\n -1.0, 9.0, -1.0,\n -1.0, -1.0, -1.0\n );\n\n// determine if the fragment was masked\nbool Masked(float val) { return val != 0.0; }\n\nvoid main(void)\n{\n // tex coord neighbor offsets\n vec2 fragDx[9] = vec2[9](\n vec2(-uDx, uDy), vec2(0.0, uDy), vec2(uDx, uDy),\n vec2(-uDx, 0.0), vec2(0.0, 0.0), vec2(uDx, 0.0),\n vec2(-uDx,-uDy), vec2(0.0,-uDy), vec2(uDx,-uDy)\n );\n\n vec2 lictc = tcoordVC.st;\n\n // compute the convolution but don't use convovled values if\n // any masked fragments on the stencil. Fragments outside\n // the valid domain are masked during initialization, and\n // texture wrap parameters are clamp to border with border\n // color that contains masked flag\n float conv = 0.0;\n bool dontUse = false;\n for (int i=0; i<9; ++i)\n {\n vec2 tc = lictc + fragDx[i];\n vec4 lic = texture2D(texLIC, tc);\n dontUse = dontUse || Masked(lic.g);\n conv = conv + K[i] * lic.r;\n }\n\n if (dontUse)\n {\n EEOutput = vec4(texture2D(texLIC, lictc).rg, 0.0, 1.0);\n }\n else\n {\n conv = clamp(conv, 0.0, 1.0);\n EEOutput = vec4(conv,texture2D(texLIC, lictc).g, 0.0, 1.0);\n }\n\n}\n"; - -export { vtkLineIntegralConvolution2D_EE as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_LIC0.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_LIC0.glsl.js deleted file mode 100644 index b9fbc2d1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_LIC0.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkLineIntegralConvolution2D_LIC0 = "//VTK::System::Dec\n\n//=========================================================================\n//\n// Program: Visualization Toolkit\n// Module: vtkLineIntegralConvolution2D_LIC0.glsl\n//\n// Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n// All rights reserved.\n// See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n//\n// This software is distributed WITHOUT ANY WARRANTY; without even\n// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n// PURPOSE. See the above copyright notice for more information.\n//\n//=========================================================================\n\n/**\nThis shader initializes the convolution for the LIC computation.\n*/\n\n// the output of this shader\nlayout(location = 0) out vec4 LICOutput;\nlayout(location = 1) out vec4 SeedOutput;\n\nuniform sampler2D texMaskVectors;\nuniform sampler2D texNoise;\nuniform sampler2D texLIC;\n\nuniform int uStepNo; // in step 0 initialize lic and seeds, else just seeds\nuniform int uPassNo; // in pass 1 hpf of pass 0 is convolved.\nuniform float uMaskThreshold; // if |V| < uMaskThreshold render transparent\nuniform vec2 uNoiseBoundsPt1; // tc of upper right pt of noise texture\n\nin vec2 tcoordVC;\n\n// convert from vector coordinate space to noise coordinate space.\n// the noise texture is tiled across the *whole* domain\nvec2 VectorTCToNoiseTC(vec2 vectc)\n{\n return vectc/uNoiseBoundsPt1;\n}\n\n// get the texture coordidnate to lookup noise value. this\n// depends on the pass number.\nvec2 getNoiseTC(vec2 vectc)\n{\n // in pass 1 : convert from vector tc to noise tc\n // in pass 2 : use vector tc\n if (uPassNo == 0)\n {\n return VectorTCToNoiseTC(vectc);\n }\n else\n {\n return vectc;\n }\n}\n\n// look up noise value at the given location. The location\n// is supplied in vector texture coordinates, hence the\n// need to convert to noise texture coordinates.\nfloat getNoise(vec2 vectc)\n{\n return texture2D(texNoise, getNoiseTC(vectc)).r;\n}\n\nvoid main(void)\n{\n vec2 vectc = tcoordVC.st;\n\n // lic => (convolution, mask, 0, step count)\n if (uStepNo == 0)\n {\n float maskCriteria = length(texture2D(texMaskVectors, vectc).xyz);\n float maskFlag;\n if (maskCriteria <= uMaskThreshold)\n {\n maskFlag = 1.0;\n }\n else\n {\n maskFlag = 0.0;\n }\n float noise = getNoise(vectc);\n LICOutput = vec4(noise, maskFlag, 0.0, 1.0);\n }\n else\n {\n LICOutput = texture2D(texLIC, vectc);\n }\n\n // initial seed\n SeedOutput = vec4(vectc, 0.0, 1.0);\n}\n"; - -export { vtkLineIntegralConvolution2D_LIC0 as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_LICI.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_LICI.glsl.js deleted file mode 100644 index 2baaa8ce..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_LICI.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkLineIntegralConvolution2D_LICI = "//VTK::System::Dec\n\n//=========================================================================\n//\n// Program: Visualization Toolkit\n// Module: vtkLineIntegralConvolution2D_fs1.glsl\n//\n// Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n// All rights reserved.\n// See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n//\n// This software is distributed WITHOUT ANY WARRANTY; without even\n// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n// PURPOSE. See the above copyright notice for more information.\n//\n//=========================================================================\n\n// the output of this shader\nlayout(location = 0) out vec4 LICOutput;\nlayout(location = 1) out vec4 SeedOutput;\n\nuniform sampler2D texVectors;\nuniform sampler2D texNoise;\nuniform sampler2D texLIC;\nuniform sampler2D texSeedPts;\n\nuniform int uPassNo; // in pass 1 hpf of pass 0 is convolved.\nuniform float uStepSize; // step size in parametric space\n\nuniform vec2 uNoiseBoundsPt1; // tc of upper right pt of noise texture\n\nin vec2 tcoordVC;\n\n//VTK::LICVectorLookup::Impl\n\n// We need to do this manually since CLAMP_TO_BORDER and and borderColor\n// are very poorly supported in webgl\nvec2 clampToBorder(vec2 uv){\n if(uv.x < 0.0 || uv.x > 1.0 || uv.y < 0.0 || uv.y > 1.0)\n {\n return vec2(0.0, 0.0);\n }\n return getVector(uv);\n}\n\n// convert from vector coordinate space to noise coordinate space.\n// the noise texture is tiled across the whole domain\nvec2 VectorTCToNoiseTC(vec2 vectc)\n{\n return vectc/uNoiseBoundsPt1;\n}\n\n// get the texture coordidnate to lookup noise value.\n// in pass 1 repeatedly tile the noise texture across\n// the computational domain.\nvec2 getNoiseTC(vec2 tc)\n{\n if (uPassNo == 0)\n {\n return VectorTCToNoiseTC(tc);\n }\n else\n {\n return tc;\n }\n}\n\n// look up noise value at the given location. The location\n// is supplied in vector texture coordinates, hence the need\n// to convert to either noise or lic texture coordinates in\n// pass 1 and 2 respectively.\nfloat getNoise(vec2 vectc)\n{\n return texture2D(texNoise, getNoiseTC(vectc)).r;\n}\n\n// fourth-order Runge-Kutta streamline integration\n// no bounds checks are made, therefore it's essential\n// to have the entire texture initialized to 0\n// and set clamp to border and have border color 0\n// an integer is set if the step was taken, keeping\n// an accurate step count is necessary to prevent\n// boundary artifacts. Don't count the step if\n// all vector lookups are identically 0. This is\n// a proxy for \"stepped outside valid domain\"\nvec2 rk4(vec2 pt0, float dt, out bool count)\n{\n count=true;\n float dtHalf = dt * 0.5;\n vec2 pt1;\n\n vec2 v0 = clampToBorder(pt0);\n pt1 = pt0 + v0 * dtHalf;\n\n vec2 v1 = clampToBorder(pt1);\n pt1 = pt0 + v1 * dtHalf;\n\n vec2 v2 = clampToBorder(pt1);\n pt1 = pt0 + v2 * dt;\n\n vec2 v3 = clampToBorder(pt1);\n vec2 vSum = v0 + v1 + v1 + v2 + v2 + v3;\n\n if (vSum == vec2(0.0, 0.0))\n {\n count = false;\n }\n\n pt1 = pt0 + (vSum) * (dt * (1.0/6.0));\n\n return pt1;\n}\n\nvoid main(void)\n{\n vec2 lictc = tcoordVC.st;\n vec4 lic = texture2D(texLIC, lictc);\n vec2 pt0 = texture2D(texSeedPts, lictc).st;\n\n bool count;\n vec2 pt1 = rk4(pt0, uStepSize, count);\n\n if (count)\n {\n // accumulate lic step\n // (lic, mask, 0, step count)\n float noise = getNoise(pt1);\n LICOutput = vec4(lic.r + noise, lic.g, 0.0, lic.a + 1.0);\n SeedOutput = vec4(pt1, 0.0, 1.0);\n }\n else\n {\n // keep existing values\n LICOutput = lic;\n SeedOutput = vec4(pt0, 0.0, 1.0);\n }\n}\n"; - -export { vtkLineIntegralConvolution2D_LICI as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_LICN.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_LICN.glsl.js deleted file mode 100644 index bdaa4c58..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_LICN.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkLineIntegralConvolution2D_LICN = " //VTK::System::Dec\n\n//=========================================================================\n//\n// Program: Visualization Toolkit\n// Module: vtkLineIntegralConvolution2D_LICN.glsl\n//\n// Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n// All rights reserved.\n// See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n//\n// This software is distributed WITHOUT ANY WARRANTY; without even\n// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n// PURPOSE. See the above copyright notice for more information.\n//\n//=========================================================================\n\n// the output of this shader\nlayout(location = 0) out vec4 LICOutput;\nlayout(location = 1) out vec4 SeedOutput;\n\n/**\nThis shader finalizes the convolution for the LIC computation\napplying the normalization. eg. if box kernel is used the this\nis the number of steps taken.\n*/\n\nuniform sampler2D texLIC;\n\nin vec2 tcoordVC;\n\nvoid main(void)\n{\n vec4 conv = texture2D(texLIC, tcoordVC.st);\n conv.r = conv.r/conv.a;\n // lic => (convolution, mask, 0, 1)\n LICOutput = vec4(conv.rg , 0.0, 1.0);\n SeedOutput = vec4(0.0, 0.0, 0.0, 0.0);\n}\n"; - -export { vtkLineIntegralConvolution2D_LICN as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_SC.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_SC.glsl.js deleted file mode 100644 index 066639aa..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_SC.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkLineIntegralConvolution2D_SC = "//VTK::System::Dec\n\n//=========================================================================\n//\n// Program: Visualization Toolkit\n// Module: vtkSurfaceLICMapper_fs2.glsl\n//\n// Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n// All rights reserved.\n// See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n//\n// This software is distributed WITHOUT ANY WARRANTY; without even\n// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n// PURPOSE. See the above copyright notice for more information.\n//\n//=========================================================================\n\n// This shader combines surface geometry, LIC, and scalar colors.\n\n// the output of this shader\nlayout(location = 0) out vec4 RGBOutput;\nlayout(location = 1) out vec4 HSLOutput;\n\nuniform sampler2D texVectors; // vectors, depth\nuniform sampler2D texGeomColors; // scalar colors + lighting\nuniform sampler2D texLIC; // image lic\nuniform int uScalarColorMode; // select between blend, and map shader\nuniform float uLICIntensity; // blend shader: blending factor for lic'd colors\nuniform float uMapBias; // map shader: adjust the brightness of the result\nuniform float uMaskIntensity; // blending factor for mask color\nuniform vec3 uMaskColor; // color for the masked out fragments\n\nin vec2 tcoordVC;\n\n/**\nConvert from RGB color space into HSL colorspace.\n*/\nvec3 RGBToHSL(vec3 RGB)\n{\n vec3 HSL = vec3(0.0, 0.0, 0.0);\n\n float RGBMin = min(min(RGB.r, RGB.g), RGB.b);\n float RGBMax = max(max(RGB.r, RGB.g), RGB.b);\n float RGBMaxMinDiff = RGBMax - RGBMin;\n\n HSL.z = (RGBMax + RGBMin) / 2.0;\n\n if (RGBMaxMinDiff == 0.0)\n {\n // Gray scale\n HSL.x = 0.0;\n HSL.y = 0.0;\n }\n else\n {\n // Color\n if (HSL.z < 0.5)\n HSL.y = RGBMaxMinDiff / (RGBMax + RGBMin);\n else\n HSL.y = RGBMaxMinDiff / (2.0 - RGBMax - RGBMin);\n\n float dR\n = (((RGBMax - RGB.r) / 6.0) + (RGBMaxMinDiff / 2.0)) / RGBMaxMinDiff;\n float dG\n = (((RGBMax - RGB.g) / 6.0) + (RGBMaxMinDiff / 2.0)) / RGBMaxMinDiff;\n float dB\n = (((RGBMax - RGB.b) / 6.0) + (RGBMaxMinDiff / 2.0)) / RGBMaxMinDiff;\n\n if (RGB.r == RGBMax)\n HSL.x = dB - dG;\n else\n if (RGB.g == RGBMax)\n HSL.x = (1.0 / 3.0) + dR - dB;\n else\n if (RGB.b == RGBMax)\n HSL.x = (2.0 / 3.0) + dG - dR;\n\n if (HSL.x < 0.0)\n HSL.x += 1.0;\n\n if (HSL.x > 1.0)\n HSL.x -= 1.0;\n }\n\n return HSL;\n}\n\n/**\nHelper for HSL to RGB conversion.\n*/\nfloat Util(float v1, float v2, float vH)\n{\n if (vH < 0.0)\n vH += 1.0;\n\n if (vH > 1.0)\n vH -= 1.0;\n\n if ((6.0 * vH) < 1.0)\n return (v1 + (v2 - v1) * 6.0 * vH);\n\n if ((2.0 * vH) < 1.0)\n return (v2);\n\n if ((3.0 * vH) < 2.0)\n return (v1 + (v2 - v1) * ((2.0 / 3.0) - vH) * 6.0);\n\n return v1;\n}\n\n/**\nConvert from HSL space into RGB space.\n*/\nvec3 HSLToRGB(vec3 HSL)\n{\n vec3 RGB;\n if (HSL.y == 0.0)\n {\n // Gray\n RGB.r = HSL.z;\n RGB.g = HSL.z;\n RGB.b = HSL.z;\n }\n else\n {\n // Chromatic\n float v2;\n if (HSL.z < 0.5)\n v2 = HSL.z * (1.0 + HSL.y);\n else\n v2 = (HSL.z + HSL.y) - (HSL.y * HSL.z);\n\n float v1 = 2.0 * HSL.z - v2;\n\n RGB.r = Util(v1, v2, HSL.x + (1.0 / 3.0));\n RGB.g = Util(v1, v2, HSL.x);\n RGB.b = Util(v1, v2, HSL.x - (1.0 / 3.0));\n }\n\n return RGB.rgb;\n}\n\nvoid main()\n{\n vec4 lic = texture2D(texLIC, tcoordVC.st);\n vec4 geomColor = texture2D(texGeomColors, tcoordVC.st);\n\n // depth is used to determine which fragment belong to us\n // and we can change\n float depth = texture2D(texVectors, tcoordVC.st).a;\n\n vec3 fragColorRGB;\n float valid;\n if (depth > 1.0e-3)\n {\n // we own it\n // shade LIC'ed geometry, or apply mask\n if (lic.g!=0.0)\n {\n // it's masked\n // apply fragment mask\n fragColorRGB = uMaskIntensity * uMaskColor + (1.0 - uMaskIntensity) * geomColor.rgb;\n valid = 0.0;\n }\n else\n {\n if (uScalarColorMode==0)\n {\n // blend with scalars\n fragColorRGB = lic.rrr * uLICIntensity + geomColor.rgb * (1.0 - uLICIntensity);\n }\n else\n {\n // multiply with scalars\n fragColorRGB = geomColor.rgb * clamp((uMapBias + lic.r), 0.0, 1.0);\n }\n if (lic.b != 0.0)\n {\n // didn't have the required guard pixels\n // don't consider it in min max estimation\n // for histpgram stretching\n valid = 0.0;\n }\n else\n {\n // ok to use in min/max estimates for histogram\n // stretching\n valid = 1.0;\n }\n }\n }\n else\n {\n // we don't own it\n // pass through scalars\n fragColorRGB = geomColor.rgb;\n valid = 0.0;\n }\n\n // if no further stages this texture is\n // copied to the screen\n RGBOutput = vec4(fragColorRGB, geomColor.a);\n\n // if further stages, move to hsl space for contrast\n // enhancement. encoding validity saves moving a texture to the cpu\n vec3 fragColorHSL = RGBToHSL(fragColorRGB);\n HSLOutput = vec4(fragColorHSL, valid);\n}\n"; - -export { vtkLineIntegralConvolution2D_SC as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_VT.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_VT.glsl.js deleted file mode 100644 index 90eb1b2d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_VT.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkLineIntegralConvolution2D_VT = "//VTK::System::Dec\n\n//=========================================================================\n//\n// Program: Visualization Toolkit\n// Module: vtkLineIntegralConvolution2D_VT.glsl\n//\n// Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n// All rights reserved.\n// See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n//\n// This software is distributed WITHOUT ANY WARRANTY; without even\n// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n// PURPOSE. See the above copyright notice for more information.\n//\n//=========================================================================\n\n// move vector field to normalized image space\n// pre-processing for vtkLineIntegralConvolution2D\n\n// the output of this shader\n//VTK::Output::Dec\n\n// Fragment shader used by the gaussian blur filter render pass.\n\nuniform sampler2D texVectors; // input texture\nuniform vec2 uTexSize; // size of texture\n\nin vec2 tcoordVC;\n\nvoid main(void)\n{\n //VTK::LICComponentSelection::Impl\n V = V/uTexSize;\n gl_FragData[0] = vec4(V, 0.0, 1.0);\n}\n"; - -export { vtkLineIntegralConvolution2D_VT as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_quadVS.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_quadVS.glsl.js deleted file mode 100644 index ce71e83e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkLineIntegralConvolution2D_quadVS.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkLineIntegralConvolution2D_quadVS = "//VTK::System::Dec\n\n/*=========================================================================\n\n Program: Visualization Toolkit\n Module: vtktextureObjectVS.glsl\n\n Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n All rights reserved.\n See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n\n This software is distributed WITHOUT ANY WARRANTY; without even\n the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n PURPOSE. See the above copyright notice for more information.\n\n=========================================================================*/\n\nattribute vec4 vertexDC;\nattribute vec2 tcoordDC;\nvarying vec2 tcoordVC;\n\nvoid main()\n{\n tcoordVC = tcoordDC;\n gl_Position = vertexDC;\n}\n"; - -export { vtkLineIntegralConvolution2D_quadVS as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkSurfaceLICInterface_CE.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkSurfaceLICInterface_CE.glsl.js deleted file mode 100644 index 147ccb45..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkSurfaceLICInterface_CE.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkSurfaceLICInterface_CE = "//VTK::System::Dec\n\n//=========================================================================\n//\n// Program: Visualization Toolkit\n// Module: vtkSurfaceLICMapper_CE.glsl\n//\n// Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n// All rights reserved.\n// See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n//\n// This software is distributed WITHOUT ANY WARRANTY; without even\n// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n// PURPOSE. See the above copyright notice for more information.\n//\n//=========================================================================\n\n// color contrast enhance stage implemented via histogram stretching\n// on lightness channel. if the min and max are tweaked it can generate\n// out-of-range values these will be clamped in 0 to 1\n\n// the output of this shader\n//VTK::Output::Dec\n\nuniform sampler2D texGeomColors; // scalars + lighting\nuniform sampler2D texLIC; // image lic, mask\nuniform sampler2D texHSLColors; // hsla colors\n\nuniform float uLMin; // min lightness over all fragments\nuniform float uLMaxMinDiff; // max - min lightness over all fragments\n\nin vec2 tcoordVC;\n\nvec3 HSLToRGB(vec3 HSL)\n{\n vec3 RGB;\n float v;\n float h = HSL.x;\n float sl = HSL.y;\n float l = HSL.z;\n\n v = (l <= 0.5) ? (l * (1.0 + sl)) : (l + sl - l * sl);\n if (v <= 0.0) {\n RGB = vec3(0.0,0.0,0.0);\n } else {\n float m;\n int sextant;\n float fract, vsf, mid1, mid2;\n\n m = l + l - v;\n h *= 6.0;\n sextant = int(h);\n fract = h - float(sextant);\n\n vsf = (v - m) * fract;\n mid1 = m + vsf;\n mid2 = v - vsf;\n switch (sextant) {\n case 0: RGB.r = v; RGB.g = mid1; RGB.b = m; break;\n case 1: RGB.r = mid2; RGB.g = v; RGB.b = m; break;\n case 2: RGB.r = m; RGB.g = v; RGB.b = mid1; break;\n case 3: RGB.r = m; RGB.g = mid2; RGB.b = v; break;\n case 4: RGB.r = mid1; RGB.g = m; RGB.b = v; break;\n case 5: RGB.r = v; RGB.g = m; RGB.b = mid2; break;\n }\n }\n return RGB;\n}\n\nvoid main()\n{\n // lookup hsl color , mask\n vec4 fragColor = texture2D(texHSLColors, tcoordVC.st);\n\n // don't modify masked fragments (masked => lic.g==1)\n vec4 lic = texture2D(texLIC, tcoordVC.st);\n if (lic.g==0.0)\n {\n // normalize lightness channel\n fragColor.z = clamp((fragColor.z - uLMin)/uLMaxMinDiff, 0.0, 1.0);\n }\n\n // back into rgb space\n fragColor.rgb = HSLToRGB(fragColor.xyz);\n\n // add alpha\n vec4 geomColor = texture2D(texGeomColors, tcoordVC.st);\n fragColor.a = geomColor.a;\n\n gl_FragData[0] = fragColor;\n}\n"; - -export { vtkSurfaceLICInterface_CE as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkSurfaceLICInterface_DCpy.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkSurfaceLICInterface_DCpy.glsl.js deleted file mode 100644 index fbc57f51..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/SurfaceLIC/glsl/vtkSurfaceLICInterface_DCpy.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkSurfaceLICInterface_DCpy = "//VTK::System::Dec\n\n//=========================================================================\n//\n// Program: Visualization Toolkit\n// Module: vtkSurfaceLICMapper_DCpy.glsl\n//\n// Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n// All rights reserved.\n// See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n//\n// This software is distributed WITHOUT ANY WARRANTY; without even\n// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n// PURPOSE. See the above copyright notice for more information.\n//\n//=========================================================================\n\n// This shader copies fragments and depths to the output buffer\n\n// the output of this shader\n//VTK::Output::Dec\n\nuniform sampler2D texDepth; // z values from vertex shader\nuniform sampler2D texRGBColors; // final rgb LIC colors\n\nin vec2 tcoordVC;\n\nvoid main()\n{\n gl_FragDepth = texture2D(texDepth, tcoordVC).x;\n gl_FragData[0] = texture2D(texRGBColors, tcoordVC);\n\n // since we render a screen aligned quad\n // we're going to be writing fragments\n // not touched by the original geometry\n // it's critical not to modify those\n // fragments.\n if (gl_FragDepth == 1.0)\n {\n discard;\n }\n}\n"; - -export { vtkSurfaceLICInterface_DCpy as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Texture.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Texture.d.ts deleted file mode 100644 index 904fc171..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Texture.d.ts +++ /dev/null @@ -1,459 +0,0 @@ -import { Wrap, Filter } from './Texture/Constants'; -import vtkOpenGLRenderWindow from './RenderWindow'; -import { Extent, Nullable } from './../../types'; -import { VtkDataTypes } from './../../Common/Core/DataArray'; -import { vtkViewNode } from './../SceneGraph/ViewNode'; -import { vtkObject, vtkRange } from './../../interfaces'; - -/** - * Initial values for creating a new instance of vtkOpenGLTexture. - */ -export interface ITextureInitialValues { - _openGLRenderWindow?: Nullable; - _forceInternalFormat?: boolean; - context?: WebGLRenderingContext | WebGL2RenderingContext; - handle?: number; - sendParametersTime?: vtkObject; - textureBuildTime?: vtkObject; - numberOfDimensions?: number; - target?: number; - format?: number; - openGLDataType?: number; - components?: number; - width?: number; - height?: number; - depth?: number; - autoParameters?: boolean; - wrapS?: Wrap; - wrapT?: Wrap; - wrapR?: Wrap; - minificationFilter?: Filter; - magnificationFilter?: Filter; - minLOD?: number; - maxLOD?: number; - baseLevel?: number; - maxLevel?: number; - generateMipmap?: boolean; - useHalfFloat?: boolean; - oglNorm16Ext?: any; - allocatedGPUMemoryInBytes?: number; -} - -/** - * Interface for OpenGL Texture. - */ -export interface vtkOpenGLTexture extends vtkViewNode { - /** - * Renders the texture within the given render window. - * @param renWin The render window in which to render the texture. - */ - render(renWin: vtkOpenGLRenderWindow): void; - - /** - * Destroys the texture and frees up any resources it's using. - */ - destroyTexture(): void; - - /** - * Creates the texture in the OpenGL context. - */ - createTexture(): void; - - /** - * Gets the texture unit number that this texture is bound to. - * @returns {number} The texture unit number. - */ - getTextureUnit(): number; - - /** - * Activates the texture, making it the current texture for subsequent OpenGL operations. - */ - activate(): void; - - /** - * Deactivates the texture, making it no longer the current texture for subsequent OpenGL operations. - */ - deactivate(): void; - - /** - * Releases the graphics resources used by the texture within the given render window. - * @param renWin The render window whose resources should be released. - */ - releaseGraphicsResources(renWin: vtkOpenGLRenderWindow): void; - - /** - * Binds the texture to the current OpenGL context. - */ - bind(): void; - - /** - * Checks if the texture is currently bound to the OpenGL context. - * @returns {boolean} True if the texture is bound, false otherwise. - */ - isBound(): boolean; - - /** - * Sends the texture parameters to the OpenGL context. - */ - sendParameters(): void; - - /** - * Gets the internal format for the texture based on the VTK data type and number of components. - * @param vtktype The VTK data type. - * @param numComps The number of components in the texture. - * @returns The internal format. - */ - getInternalFormat(vtktype: VtkDataTypes, numComps: number): any; - - /** - * Gets the default internal format for the texture based on the VTK data type and number of components. - * @param vtktype The VTK data type. - * @param numComps The number of components in the texture. - * @returns The default internal format. - */ - getDefaultInternalFormat(vtktype: VtkDataTypes, numComps: number): any; - - /** - * Sets the internal format for the texture. - * @param iformat The internal format to set. - */ - setInternalFormat(iformat: any): void; - - /** - * Gets the format for the texture based on the VTK data type and number of components. - * @param vtktype The VTK data type. - * @param numComps The number of components in the texture. - * @returns The format. - */ - getFormat(vtktype: VtkDataTypes, numComps: number): any; - - /** - * Gets the default format for the texture based on the VTK data type and number of components. - * @param vtktype The VTK data type. - * @param numComps The number of components in the texture. - * @returns The default format. - */ - getDefaultFormat(vtktype: VtkDataTypes, numComps: number): any; - - /** - * Resets the texture format and type to their default values. - */ - resetFormatAndType(): void; - - /** - * Gets the default data type for the texture based on the VTK scalar type. - * @param vtkScalarType The VTK scalar type. - * @returns The default data type. - */ - getDefaultDataType(vtkScalarType: VtkDataTypes): any; - - /** - * Gets the OpenGL data type for the texture based on the VTK scalar type and whether to force an update. - * @param vtkScalarType The VTK scalar type. - * @param forceUpdate Whether to force the update of the data type. - * @returns The OpenGL data type. - */ - getOpenGLDataType(vtkScalarType: VtkDataTypes, forceUpdate: boolean): any; - - /** - * Gets the shift and scale values for the texture. - * @returns The shift and scale values. - */ - getShiftAndScale(): any; - - /** - * Gets the OpenGL filter mode for the texture. - * @param emode The filter mode. - * @returns The OpenGL filter mode. - */ - getOpenGLFilterMode(emode: Filter): any; - - /** - * Gets the OpenGL wrap mode for the texture. - * @param vtktype The wrap type. - * @returns The OpenGL wrap mode. - */ - getOpenGLWrapMode(vtktype: Wrap): any; - - /** - * Updates the data array to match the required data type for OpenGL. - * - * This function takes the input data and converts it to the appropriate - * format required by the OpenGL texture, based on the specified data type. - * - * @param {string} dataType - The original data type of the input data. - * @param {Array} data - The input data array that needs to be updated. - * @param {boolean} [depth=false] - Indicates whether the data is a 3D array. - * @returns {Array} The updated data array that matches the OpenGL data type. - */ - updateArrayDataTypeForGL( - dataType: VtkDataTypes, - data: any, - depth?: boolean - ): void; - - /** - * Creates a 2D texture from raw data. - * @param width The width of the texture. - * @param height The height of the texture. - * @param numComps The number of components in the texture. - * @param dataType The data type of the texture. - * @param data The raw data for the texture. - * @param flip Whether to flip the texture vertically. Defaults to false. - * @returns {boolean} True if the texture was successfully created, false otherwise. - */ - create2DFromRaw({ - width, - height, - numComps, - dataType, - data, - flip, - }: { - width: number; - height: number; - numComps: number; - dataType: VtkDataTypes; - data: any; - flip?: boolean; - }): boolean; - - /** - * Creates a cube texture from raw data. - * @param width The width of each face of the cube texture. - * @param height The height of each face of the cube texture. - * @param numComps The number of components in the texture. - * @param dataType The data type of the texture. - * @param data The raw data for the texture. - * @returns {boolean} True if the cube texture was successfully created, false otherwise. - */ - createCubeFromRaw({ - width, - height, - numComps, - dataType, - data, - }: { - width: number; - height: number; - numComps: number; - dataType: VtkDataTypes; - data: any; - }): boolean; - - /** - * Creates a 2D texture from an image. - * @param image The image to use for the texture. - * @returns {boolean} True if the texture was successfully created, false otherwise. - */ - create2DFromImage(image: HTMLImageElement): boolean; - - /** - * Creates a 2D texture from an ImageBitmap. - * @param imageBitmap The ImageBitmap to use for the texture. - * @returns {boolean} True if the texture was successfully created, false otherwise. - */ - create2DFromImageBitmap(imageBitmap: ImageBitmap): boolean; - - /** - * Creates a 2D filterable texture from raw data, with a preference for size over accuracy if necessary. - * @param width The width of the texture. - * @param height The height of the texture. - * @param numComps The number of components in the texture. - * @param dataType The data type of the texture. - * @param data The raw data for the texture. - * @param [preferSizeOverAccuracy=false] Whether to prefer texture size over accuracy. Defaults to false. - * @param [ranges] The precomputed ranges of the data (optional). Provided to prevent computation of the data ranges. - * @returns {boolean} True if the texture was successfully created, false otherwise. - */ - create2DFilterableFromRaw({ - width, - height, - numComps, - dataType, - data, - preferSizeOverAccuracy, - ranges, - }: { - width: number; - height: number; - numComps: number; - dataType: VtkDataTypes; - data: any; - preferSizeOverAccuracy?: boolean; - ranges?: vtkRange[]; - }): boolean; - - /** - * Creates a 2D filterable texture from a data array, with a preference for size over accuracy if necessary. - * @param width The width of the texture. - * @param height The height of the texture. - * @param dataArray The data array to use for the texture. - * @param preferSizeOverAccuracy Whether to prefer texture size over accuracy. - * @returns {boolean} True if the texture was successfully created, false otherwise. - */ - create2DFilterableFromDataArray({ - width, - height, - dataArray, - preferSizeOverAccuracy, - }: { - width: number; - height: number; - dataArray: any; - preferSizeOverAccuracy?: boolean; - }): boolean; - - /** - * Creates a 3D texture from raw data. - * - * updatedExtents is currently incompatible with webgl1, since there's no extent scaling. - * - * @param width The width of the texture. - * @param height The height of the texture. - * @param depth The depth of the texture. - * @param numComps The number of components in the texture. - * @param dataType The data type of the texture. - * @param data The raw data for the texture. - * @param updatedExtents Only update the specified extents (default: []) - * @returns {boolean} True if the texture was successfully created, false otherwise. - */ - create3DFromRaw({ - width, - height, - depth, - numComps, - dataType, - data, - updatedExtents, - }: { - width: number; - height: number; - depth: number; - numComps: number; - dataType: VtkDataTypes; - data: any; - updatedExtents?: Extent[]; - }): boolean; - - /** - * Creates a 3D filterable texture from raw data, with a preference for size over accuracy if necessary. - * - * updatedExtents is currently incompatible with webgl1, since there's no extent scaling. - * - * @param width The width of the texture. - * @param height The height of the texture. - * @param depth The depth of the texture. - * @param numComps The number of components in the texture. - * @param dataType The data type of the texture. - * @param data The raw data for the texture. - * @param preferSizeOverAccuracy Whether to prefer texture size over accuracy. - * @param [ranges] The precomputed ranges of the data (optional). Provided to - * @param updatedExtents Only update the specified extents (default: []) - * prevent computation of the data ranges. - * @returns {boolean} True if the texture was successfully created, false - * otherwise. - */ - create3DFilterableFromRaw({ - width, - height, - depth, - numComps, - dataType, - data, - preferSizeOverAccuracy, - ranges, - updatedExtents, - }: { - width: number; - height: number; - depth: number; - numComps: number; - dataType: VtkDataTypes; - data: any; - preferSizeOverAccuracy?: boolean; - ranges?: vtkRange[]; - updatedExtents?: Extent[]; - }): boolean; - - /** - * Creates a 3D filterable texture from a data array, with a preference for size over accuracy if necessary. - * - * updatedExtents is currently incompatible with webgl1, since there's no extent scaling. - * - * @param width The width of the texture. - * @param height The height of the texture. - * @param depth The depth of the texture. - * @param dataArray The data array to use for the texture. - * @param preferSizeOverAccuracy Whether to prefer texture size over accuracy. - * @param updatedExtents Only update the specified extents (default: []) - * @returns {boolean} True if the texture was successfully created, false otherwise. - */ - create3DFilterableFromDataArray({ - width, - height, - depth, - dataArray, - preferSizeOverAccuracy, - }: { - width: number; - height: number; - depth: number; - dataArray: any; - preferSizeOverAccuracy?: boolean; - updatedExtents?: Extent[]; - }): boolean; - - /** - * Sets the OpenGL render window in which the texture will be used. - * @param renWin The render window to set. - */ - setOpenGLRenderWindow(renWin: any): void; - - /** - * Gets the maximum texture size supported by the OpenGL context. - * @param ctx The OpenGL context. - * @returns {number} The maximum texture size. - */ - getMaximumTextureSize(ctx: any): number; - - /** - * Public API to disable half float usage. - * Half float is automatically enabled when creating the texture, - * but users may want to disable it in certain cases - * (e.g., streaming data where the full range is not yet available). - * @param useHalfFloat - whether to use half float - */ - enableUseHalfFloat(useHalfFloat: boolean): void; -} - -/** - * Extends the publicAPI with the given model and initial values. - * @param publicAPI The API to extend. - * @param model The model to use. - * @param initialValues The initial values to apply. - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ITextureInitialValues -): void; - -/** - * Creates a new instance of vtkOpenGLTexture with the given initial values. - * @param initialValues The initial values to use. - * @returns The new instance. - */ -export function newInstance( - initialValues?: ITextureInitialValues -): vtkOpenGLTexture; - -/** - * vtkOpenGLTexture static API. - */ -export declare const vtkOpenGLTexture: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkOpenGLTexture; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Texture.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Texture.js deleted file mode 100644 index 0b6a6e2b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Texture.js +++ /dev/null @@ -1,1720 +0,0 @@ -import DeepEqual from 'fast-deep-equal'; -import Constants from './Texture/Constants.js'; -import HalfFloat from '../../Common/Core/HalfFloat.js'; -import { n as newInstance$1, o as obj, s as set, e as setGet, g as get, i as moveToProtected, a as newTypedArray, c as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import { Y as isPowerOfTwo, T as nearestPowerOfTwo } from '../../Common/Core/Math/index.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { registerOverride } from './ViewNodeFactory.js'; -import supportsNorm16LinearCached from './Texture/supportsNorm16Linear.js'; - -const { - Wrap, - Filter -} = Constants; -const { - VtkDataTypes -} = vtkDataArray; -const { - vtkDebugMacro, - vtkErrorMacro, - vtkWarningMacro, - requiredParam -} = macro; -const { - toHalf -} = HalfFloat; - -// ---------------------------------------------------------------------------- -// vtkOpenGLTexture methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLTexture(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLTexture'); - function getTexParams() { - return { - internalFormat: model.internalFormat, - format: model.format, - openGLDataType: model.openGLDataType, - width: model.width, - height: model.height - }; - } - - // Renders myself - publicAPI.render = function () { - let renWin = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - if (renWin) { - model._openGLRenderWindow = renWin; - } else { - model._openGLRenderer = publicAPI.getFirstAncestorOfType('vtkOpenGLRenderer'); - // sync renderable properties - model._openGLRenderWindow = model._openGLRenderer.getLastAncestorOfType('vtkOpenGLRenderWindow'); - } - model.context = model._openGLRenderWindow.getContext(); - if (model.renderable.getInterpolate()) { - if (model.generateMipmap) { - publicAPI.setMinificationFilter(Filter.LINEAR_MIPMAP_LINEAR); - } else { - publicAPI.setMinificationFilter(Filter.LINEAR); - } - publicAPI.setMagnificationFilter(Filter.LINEAR); - } else { - publicAPI.setMinificationFilter(Filter.NEAREST); - publicAPI.setMagnificationFilter(Filter.NEAREST); - } - if (model.renderable.getRepeat()) { - publicAPI.setWrapR(Wrap.REPEAT); - publicAPI.setWrapS(Wrap.REPEAT); - publicAPI.setWrapT(Wrap.REPEAT); - } - // clear image if input data is set - if (model.renderable.getInputData()) { - model.renderable.setImage(null); - } - // create the texture if it is not done already - if (!model.handle || model.renderable.getMTime() > model.textureBuildTime.getMTime()) { - if (model.renderable.getImageBitmap() !== null) { - if (model.renderable.getInterpolate()) { - model.generateMipmap = true; - publicAPI.setMinificationFilter(Filter.LINEAR_MIPMAP_LINEAR); - } - // Have an Image which may not be complete - if (model.renderable.getImageBitmap() && model.renderable.getImageLoaded()) { - publicAPI.create2DFromImageBitmap(model.renderable.getImageBitmap()); - publicAPI.activate(); - publicAPI.sendParameters(); - model.textureBuildTime.modified(); - } - } - // if we have an Image - if (model.renderable.getImage() !== null) { - if (model.renderable.getInterpolate()) { - model.generateMipmap = true; - publicAPI.setMinificationFilter(Filter.LINEAR_MIPMAP_LINEAR); - } - // Have an Image which may not be complete - if (model.renderable.getImage() && model.renderable.getImageLoaded()) { - publicAPI.create2DFromImage(model.renderable.getImage()); - publicAPI.activate(); - publicAPI.sendParameters(); - model.textureBuildTime.modified(); - } - } - // if we have a canvas - if (model.renderable.getCanvas() !== null) { - if (model.renderable.getInterpolate()) { - model.generateMipmap = true; - publicAPI.setMinificationFilter(Filter.LINEAR_MIPMAP_LINEAR); - } - const canvas = model.renderable.getCanvas(); - publicAPI.create2DFromRaw({ - width: canvas.width, - height: canvas.height, - numComps: 4, - dataType: VtkDataTypes.UNSIGNED_CHAR, - data: canvas, - flip: true - }); - publicAPI.activate(); - publicAPI.sendParameters(); - model.textureBuildTime.modified(); - } - // if we have jsImageData - if (model.renderable.getJsImageData() !== null) { - const jsid = model.renderable.getJsImageData(); - if (model.renderable.getInterpolate()) { - model.generateMipmap = true; - publicAPI.setMinificationFilter(Filter.LINEAR_MIPMAP_LINEAR); - } - publicAPI.create2DFromRaw({ - width: jsid.width, - height: jsid.height, - numComps: 4, - dataType: VtkDataTypes.UNSIGNED_CHAR, - data: jsid.data, - flip: true - }); - publicAPI.activate(); - publicAPI.sendParameters(); - model.textureBuildTime.modified(); - } - // if we have InputData - const input = model.renderable.getInputData(0); - if (input && input.getPointData().getScalars()) { - const ext = input.getExtent(); - const inScalars = input.getPointData().getScalars(); - - // do we have a cube map? Six inputs - const data = []; - for (let i = 0; i < model.renderable.getNumberOfInputPorts(); ++i) { - const indata = model.renderable.getInputData(i); - const scalars = indata ? indata.getPointData().getScalars().getData() : null; - if (scalars) { - data.push(scalars); - } - } - if (model.renderable.getInterpolate() && inScalars.getNumberOfComponents() === 4) { - model.generateMipmap = true; - publicAPI.setMinificationFilter(Filter.LINEAR_MIPMAP_LINEAR); - } - if (data.length % 6 === 0) { - publicAPI.createCubeFromRaw({ - width: ext[1] - ext[0] + 1, - height: ext[3] - ext[2] + 1, - numComps: inScalars.getNumberOfComponents(), - dataType: inScalars.getDataType(), - data - }); - } else { - publicAPI.create2DFromRaw({ - width: ext[1] - ext[0] + 1, - height: ext[3] - ext[2] + 1, - numComps: inScalars.getNumberOfComponents(), - dataType: inScalars.getDataType(), - data: inScalars.getData() - }); - } - publicAPI.activate(); - publicAPI.sendParameters(); - model.textureBuildTime.modified(); - } - } - if (model.handle) { - publicAPI.activate(); - } - }; - const getNorm16Ext = () => { - if ((model.minificationFilter === Filter.LINEAR || model.magnificationFilter === Filter.LINEAR) && !supportsNorm16LinearCached()) { - return undefined; - } - return model.oglNorm16Ext; - }; - - //---------------------------------------------------------------------------- - publicAPI.destroyTexture = () => { - // deactivate it first - publicAPI.deactivate(); - if (model.context && model.handle) { - model.context.deleteTexture(model.handle); - } - model._prevTexParams = null; - model.handle = 0; - model.numberOfDimensions = 0; - model.target = 0; - model.components = 0; - model.width = 0; - model.height = 0; - model.depth = 0; - publicAPI.resetFormatAndType(); - }; - - //---------------------------------------------------------------------------- - publicAPI.createTexture = () => { - // reuse the existing handle if we have one - if (!model.handle) { - model.handle = model.context.createTexture(); - if (model.target) { - model.context.bindTexture(model.target, model.handle); - - // See: http://www.openmodel.context..org/wiki/Common_Mistakes#Creating_a_complete_texture - // turn off mip map filter or set the base and max level correctly. here - // both are done. - model.context.texParameteri(model.target, model.context.TEXTURE_MIN_FILTER, publicAPI.getOpenGLFilterMode(model.minificationFilter)); - model.context.texParameteri(model.target, model.context.TEXTURE_MAG_FILTER, publicAPI.getOpenGLFilterMode(model.magnificationFilter)); - model.context.texParameteri(model.target, model.context.TEXTURE_WRAP_S, publicAPI.getOpenGLWrapMode(model.wrapS)); - model.context.texParameteri(model.target, model.context.TEXTURE_WRAP_T, publicAPI.getOpenGLWrapMode(model.wrapT)); - if (model._openGLRenderWindow.getWebgl2()) { - model.context.texParameteri(model.target, model.context.TEXTURE_WRAP_R, publicAPI.getOpenGLWrapMode(model.wrapR)); - } - model.context.bindTexture(model.target, null); - } - } - }; - - //--------------------------------------------------------------------------- - publicAPI.getTextureUnit = () => { - if (model._openGLRenderWindow) { - return model._openGLRenderWindow.getTextureUnitForTexture(publicAPI); - } - return -1; - }; - - //--------------------------------------------------------------------------- - publicAPI.activate = () => { - // activate a free texture unit for this texture - model._openGLRenderWindow.activateTexture(publicAPI); - publicAPI.bind(); - }; - - //--------------------------------------------------------------------------- - publicAPI.deactivate = () => { - if (model._openGLRenderWindow) { - model._openGLRenderWindow.deactivateTexture(publicAPI); - } - }; - - //--------------------------------------------------------------------------- - publicAPI.releaseGraphicsResources = rwin => { - if (rwin && model.handle) { - rwin.activateTexture(publicAPI); - rwin.deactivateTexture(publicAPI); - model.context.deleteTexture(model.handle); - model._prevTexParams = null; - model.handle = 0; - model.numberOfDimensions = 0; - model.target = 0; - model.internalFormat = 0; - model.format = 0; - model.openGLDataType = 0; - model.components = 0; - model.width = 0; - model.height = 0; - model.depth = 0; - model.allocatedGPUMemoryInBytes = 0; - } - if (model.shaderProgram) { - model.shaderProgram.releaseGraphicsResources(rwin); - model.shaderProgram = null; - } - }; - - //---------------------------------------------------------------------------- - publicAPI.bind = () => { - model.context.bindTexture(model.target, model.handle); - if (model.autoParameters && publicAPI.getMTime() > model.sendParametersTime.getMTime()) { - publicAPI.sendParameters(); - } - }; - - //---------------------------------------------------------------------------- - publicAPI.isBound = () => { - let result = false; - if (model.context && model.handle) { - let target = 0; - switch (model.target) { - case model.context.TEXTURE_2D: - target = model.context.TEXTURE_BINDING_2D; - break; - default: - vtkWarningMacro('impossible case'); - break; - } - const oid = model.context.getIntegerv(target); - result = oid === model.handle; - } - return result; - }; - - //---------------------------------------------------------------------------- - publicAPI.sendParameters = () => { - model.context.texParameteri(model.target, model.context.TEXTURE_WRAP_S, publicAPI.getOpenGLWrapMode(model.wrapS)); - model.context.texParameteri(model.target, model.context.TEXTURE_WRAP_T, publicAPI.getOpenGLWrapMode(model.wrapT)); - if (model._openGLRenderWindow.getWebgl2()) { - model.context.texParameteri(model.target, model.context.TEXTURE_WRAP_R, publicAPI.getOpenGLWrapMode(model.wrapR)); - } - model.context.texParameteri(model.target, model.context.TEXTURE_MIN_FILTER, publicAPI.getOpenGLFilterMode(model.minificationFilter)); - model.context.texParameteri(model.target, model.context.TEXTURE_MAG_FILTER, publicAPI.getOpenGLFilterMode(model.magnificationFilter)); - if (model._openGLRenderWindow.getWebgl2()) { - model.context.texParameteri(model.target, model.context.TEXTURE_BASE_LEVEL, model.baseLevel); - model.context.texParameteri(model.target, model.context.TEXTURE_MAX_LEVEL, model.maxLevel); - } - - // model.context.texParameterf(model.target, model.context.TEXTURE_MIN_LOD, model.minLOD); - // model.context.texParameterf(model.target, model.context.TEXTURE_MAX_LOD, model.maxLOD); - - model.sendParametersTime.modified(); - }; - - //---------------------------------------------------------------------------- - publicAPI.getInternalFormat = (vtktype, numComps) => { - if (!model._forceInternalFormat) { - model.internalFormat = publicAPI.getDefaultInternalFormat(vtktype, numComps); - } - if (!model.internalFormat) { - vtkDebugMacro(`Unable to find suitable internal format for T=${vtktype} NC= ${numComps}`); - } - if ([model.context.R32F, model.context.RG32F, model.context.RGB32F, model.context.RGBA32F].includes(model.internalFormat) && !model.context.getExtension('OES_texture_float_linear')) { - vtkWarningMacro('Failed to load OES_texture_float_linear. Texture filtering is not available for *32F internal formats.'); - } - return model.internalFormat; - }; - - //---------------------------------------------------------------------------- - publicAPI.getDefaultInternalFormat = (vtktype, numComps) => { - let result = 0; - // try default next - result = model._openGLRenderWindow.getDefaultTextureInternalFormat(vtktype, numComps, getNorm16Ext(), publicAPI.useHalfFloat()); - if (result) { - return result; - } - if (!result) { - vtkDebugMacro('Unsupported internal texture type!'); - vtkDebugMacro(`Unable to find suitable internal format for T=${vtktype} NC= ${numComps}`); - } - return result; - }; - publicAPI.useHalfFloat = () => model.enableUseHalfFloat && model.canUseHalfFloat; - - //---------------------------------------------------------------------------- - publicAPI.setInternalFormat = iFormat => { - model._forceInternalFormat = true; - if (iFormat !== model.internalFormat) { - model.internalFormat = iFormat; - publicAPI.modified(); - } - }; - - //---------------------------------------------------------------------------- - publicAPI.getFormat = (vtktype, numComps) => { - model.format = publicAPI.getDefaultFormat(vtktype, numComps); - return model.format; - }; - - //---------------------------------------------------------------------------- - publicAPI.getDefaultFormat = (vtktype, numComps) => { - if (model._openGLRenderWindow.getWebgl2()) { - switch (numComps) { - case 1: - return model.context.RED; - case 2: - return model.context.RG; - case 3: - return model.context.RGB; - case 4: - return model.context.RGBA; - default: - return model.context.RGB; - } - } else { - // webgl1 - switch (numComps) { - case 1: - return model.context.LUMINANCE; - case 2: - return model.context.LUMINANCE_ALPHA; - case 3: - return model.context.RGB; - case 4: - return model.context.RGBA; - default: - return model.context.RGB; - } - } - }; - - //---------------------------------------------------------------------------- - publicAPI.resetFormatAndType = () => { - model._prevTexParams = null; - model.format = 0; - model.internalFormat = 0; - model._forceInternalFormat = false; - model.openGLDataType = 0; - }; - - //---------------------------------------------------------------------------- - publicAPI.getDefaultDataType = vtkScalarType => { - const useHalfFloat = publicAPI.useHalfFloat(); - // DON'T DEAL with VTK_CHAR as this is platform dependent. - if (model._openGLRenderWindow.getWebgl2()) { - switch (vtkScalarType) { - // case VtkDataTypes.SIGNED_CHAR: - // return model.context.BYTE; - case VtkDataTypes.UNSIGNED_CHAR: - return model.context.UNSIGNED_BYTE; - // prefer norm16 since that is accurate compared to - // half float which is not - case getNorm16Ext() && !useHalfFloat && VtkDataTypes.SHORT: - return model.context.SHORT; - case getNorm16Ext() && !useHalfFloat && VtkDataTypes.UNSIGNED_SHORT: - return model.context.UNSIGNED_SHORT; - // use half float type - case useHalfFloat && VtkDataTypes.SHORT: - return model.context.HALF_FLOAT; - case useHalfFloat && VtkDataTypes.UNSIGNED_SHORT: - return model.context.HALF_FLOAT; - // case VtkDataTypes.INT: - // return model.context.INT; - // case VtkDataTypes.UNSIGNED_INT: - // return model.context.UNSIGNED_INT; - case VtkDataTypes.FLOAT: - case VtkDataTypes.VOID: // used for depth component textures. - default: - return model.context.FLOAT; - } - } - switch (vtkScalarType) { - // case VtkDataTypes.SIGNED_CHAR: - // return model.context.BYTE; - case VtkDataTypes.UNSIGNED_CHAR: - return model.context.UNSIGNED_BYTE; - // case VtkDataTypes.SHORT: - // return model.context.SHORT; - // case VtkDataTypes.UNSIGNED_SHORT: - // return model.context.UNSIGNED_SHORT; - // case VtkDataTypes.INT: - // return model.context.INT; - // case VtkDataTypes.UNSIGNED_INT: - // return model.context.UNSIGNED_INT; - case VtkDataTypes.FLOAT: - case VtkDataTypes.VOID: // used for depth component textures. - default: - if (model.context.getExtension('OES_texture_float') && model.context.getExtension('OES_texture_float_linear')) { - return model.context.FLOAT; - } - { - const halfFloat = model.context.getExtension('OES_texture_half_float'); - if (halfFloat && model.context.getExtension('OES_texture_half_float_linear')) { - return halfFloat.HALF_FLOAT_OES; - } - } - return model.context.UNSIGNED_BYTE; - } - }; - - //---------------------------------------------------------------------------- - publicAPI.getOpenGLDataType = function (vtkScalarType) { - let forceUpdate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - if (!model.openGLDataType || forceUpdate) { - model.openGLDataType = publicAPI.getDefaultDataType(vtkScalarType); - } - return model.openGLDataType; - }; - publicAPI.getShiftAndScale = () => { - let shift = 0.0; - let scale = 1.0; - - // for all float type internal formats - switch (model.openGLDataType) { - case model.context.BYTE: - scale = 127.5; - shift = scale - 128.0; - break; - case model.context.UNSIGNED_BYTE: - scale = 255.0; - shift = 0.0; - break; - case model.context.SHORT: - scale = 32767.5; - shift = scale - 32768.0; - break; - case model.context.UNSIGNED_SHORT: - scale = 65536.0; - shift = 0.0; - break; - case model.context.INT: - scale = 2147483647.5; - shift = scale - 2147483648.0; - break; - case model.context.UNSIGNED_INT: - scale = 4294967295.0; - shift = 0.0; - break; - case model.context.FLOAT: - } - return { - shift, - scale - }; - }; - - //---------------------------------------------------------------------------- - publicAPI.getOpenGLFilterMode = emode => { - switch (emode) { - case Filter.NEAREST: - return model.context.NEAREST; - case Filter.LINEAR: - return model.context.LINEAR; - case Filter.NEAREST_MIPMAP_NEAREST: - return model.context.NEAREST_MIPMAP_NEAREST; - case Filter.NEAREST_MIPMAP_LINEAR: - return model.context.NEAREST_MIPMAP_LINEAR; - case Filter.LINEAR_MIPMAP_NEAREST: - return model.context.LINEAR_MIPMAP_NEAREST; - case Filter.LINEAR_MIPMAP_LINEAR: - return model.context.LINEAR_MIPMAP_LINEAR; - default: - return model.context.NEAREST; - } - }; - - //---------------------------------------------------------------------------- - publicAPI.getOpenGLWrapMode = vtktype => { - switch (vtktype) { - case Wrap.CLAMP_TO_EDGE: - return model.context.CLAMP_TO_EDGE; - case Wrap.REPEAT: - return model.context.REPEAT; - case Wrap.MIRRORED_REPEAT: - return model.context.MIRRORED_REPEAT; - default: - return model.context.CLAMP_TO_EDGE; - } - }; - - //---------------------------------------------------------------------------- - - /** - * Gets the extent's size. - * @param {Extent} extent - */ - function getExtentSize(extent) { - const [xmin, xmax, ymin, ymax, zmin, zmax] = extent; - return [xmax - xmin + 1, ymax - ymin + 1, zmax - zmin + 1]; - } - - //---------------------------------------------------------------------------- - - /** - * Gets the number of pixels in the extent. - * @param {Extent} extent - */ - function getExtentPixelCount(extent) { - const [sx, sy, sz] = getExtentSize(extent); - return sx * sy * sz; - } - - //---------------------------------------------------------------------------- - - /** - * Reads a flattened extent from the image data and writes to the given output array. - * - * Assumes X varies the fastest and Z varies the slowest. - * - * @param {*} data - * @param {*} dataDims - * @param {Extent} extent - * @param {TypedArray} outArray - * @param {number} outOffset - * @returns - */ - function readExtentIntoArray(data, dataDims, extent, outArray, outOffset) { - const [xmin, xmax, ymin, ymax, zmin, zmax] = extent; - const [dx, dy] = dataDims; - const sxy = dx * dy; - let writeOffset = outOffset; - for (let zi = zmin; zi <= zmax; zi++) { - const zOffset = zi * sxy; - for (let yi = ymin; yi <= ymax; yi++) { - const zyOffset = zOffset + yi * dx; - // explicit alternative to data.subarray, - // due to potential perf issues on v8 - for (let readOffset = zyOffset + xmin, end = zyOffset + xmax; readOffset <= end; readOffset++, writeOffset++) { - outArray[writeOffset] = data[readOffset]; - } - } - } - } - - //---------------------------------------------------------------------------- - - /** - * Reads several image extents into a contiguous pixel array. - * - * @param {*} data - * @param {Extent[]} extent - * @param {TypedArrayConstructor} typedArrayConstructor optional typed array constructor - * @returns - */ - function readExtents(data, extents) { - let typedArrayConstructor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - const constructor = typedArrayConstructor || data.constructor; - const numPixels = extents.reduce((count, extent) => count + getExtentPixelCount(extent), 0); - const extentPixels = new constructor(numPixels); - const dataDims = [model.width, model.height, model.depth]; - let writeOffset = 0; - extents.forEach(extent => { - readExtentIntoArray(data, dataDims, extent, extentPixels, writeOffset); - writeOffset += getExtentPixelCount(extent); - }); - return extentPixels; - } - - //---------------------------------------------------------------------------- - - /** - * Updates the data array to match the required data type for OpenGL. - * - * This function takes the input data and converts it to the appropriate - * format required by the OpenGL texture, based on the specified data type. - * - * @param {string} dataType - The original data type of the input data. - * @param {Array} data - The input data array that needs to be updated. - * @param {boolean} [depth=false] - Indicates whether the data is a 3D array. - * @param {Array} imageExtents only consider these image extents (default: []) - * @returns {Array} The updated data array that matches the OpenGL data type. - */ - publicAPI.updateArrayDataTypeForGL = function (dataType, data) { - let depth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; - let imageExtents = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : []; - const pixData = []; - let pixCount = model.width * model.height * model.components; - if (depth) { - pixCount *= model.depth; - } - const onlyUpdateExtents = !!imageExtents.length; - - // if the opengl data type is float - // then the data array must be float - if (dataType !== VtkDataTypes.FLOAT && model.openGLDataType === model.context.FLOAT) { - for (let idx = 0; idx < data.length; idx++) { - if (data[idx]) { - if (onlyUpdateExtents) { - pixData.push(readExtents(data[idx], imageExtents, Float32Array)); - } else { - const dataArrayToCopy = data[idx].length > pixCount ? data[idx].subarray(0, pixCount) : data[idx]; - pixData.push(new Float32Array(dataArrayToCopy)); - } - } else { - pixData.push(null); - } - } - } - - // if the opengl data type is ubyte - // then the data array must be u8, we currently simply truncate the data - if (dataType !== VtkDataTypes.UNSIGNED_CHAR && model.openGLDataType === model.context.UNSIGNED_BYTE) { - for (let idx = 0; idx < data.length; idx++) { - if (data[idx]) { - if (onlyUpdateExtents) { - pixData.push(readExtents(data[idx], imageExtents, Uint8Array)); - } else { - const dataArrayToCopy = data[idx].length > pixCount ? data[idx].subarray(0, pixCount) : data[idx]; - pixData.push(new Uint8Array(dataArrayToCopy)); - } - } else { - pixData.push(null); - } - } - } - - // if the opengl data type is half float - // then the data array must be u16 - let halfFloat = false; - if (model._openGLRenderWindow.getWebgl2()) { - halfFloat = model.openGLDataType === model.context.HALF_FLOAT; - } else { - const halfFloatExt = model.context.getExtension('OES_texture_half_float'); - halfFloat = halfFloatExt && model.openGLDataType === halfFloatExt.HALF_FLOAT_OES; - } - if (halfFloat) { - for (let idx = 0; idx < data.length; idx++) { - if (data[idx]) { - const src = onlyUpdateExtents ? readExtents(data[idx], imageExtents) : data[idx]; - const newArray = new Uint16Array(onlyUpdateExtents ? src.length : pixCount); - const newArrayLen = newArray.length; - for (let i = 0; i < newArrayLen; i++) { - newArray[i] = toHalf(src[i]); - } - pixData.push(newArray); - } else { - pixData.push(null); - } - } - } - - // The output has to be filled - if (pixData.length === 0) { - for (let i = 0; i < data.length; i++) { - pixData.push(onlyUpdateExtents && data[i] ? readExtents(data[i], imageExtents) : data[i]); - } - } - return pixData; - }; - - //---------------------------------------------------------------------------- - function scaleTextureToHighestPowerOfTwo(data) { - if (model._openGLRenderWindow.getWebgl2()) { - // No need if webGL2 - return data; - } - const pixData = []; - const width = model.width; - const height = model.height; - const numComps = model.components; - if (data && (!isPowerOfTwo(width) || !isPowerOfTwo(height))) { - // Scale up the texture to the next highest power of two dimensions. - const halfFloat = model.context.getExtension('OES_texture_half_float'); - const newWidth = nearestPowerOfTwo(width); - const newHeight = nearestPowerOfTwo(height); - const pixCount = newWidth * newHeight * model.components; - for (let idx = 0; idx < data.length; idx++) { - if (data[idx] !== null) { - let newArray = null; - const jFactor = height / newHeight; - const iFactor = width / newWidth; - let usingHalf = false; - if (model.openGLDataType === model.context.FLOAT) { - newArray = new Float32Array(pixCount); - } else if (halfFloat && model.openGLDataType === halfFloat.HALF_FLOAT_OES) { - newArray = new Uint16Array(pixCount); - usingHalf = true; - } else { - newArray = new Uint8Array(pixCount); - } - for (let j = 0; j < newHeight; j++) { - const joff = j * newWidth * numComps; - const jidx = j * jFactor; - let jlow = Math.floor(jidx); - let jhi = Math.ceil(jidx); - if (jhi >= height) { - jhi = height - 1; - } - const jmix = jidx - jlow; - const jmix1 = 1.0 - jmix; - jlow = jlow * width * numComps; - jhi = jhi * width * numComps; - for (let i = 0; i < newWidth; i++) { - const ioff = i * numComps; - const iidx = i * iFactor; - let ilow = Math.floor(iidx); - let ihi = Math.ceil(iidx); - if (ihi >= width) { - ihi = width - 1; - } - const imix = iidx - ilow; - ilow *= numComps; - ihi *= numComps; - for (let c = 0; c < numComps; c++) { - if (usingHalf) { - newArray[joff + ioff + c] = HalfFloat.toHalf(HalfFloat.fromHalf(data[idx][jlow + ilow + c]) * jmix1 * (1.0 - imix) + HalfFloat.fromHalf(data[idx][jlow + ihi + c]) * jmix1 * imix + HalfFloat.fromHalf(data[idx][jhi + ilow + c]) * jmix * (1.0 - imix) + HalfFloat.fromHalf(data[idx][jhi + ihi + c]) * jmix * imix); - } else { - newArray[joff + ioff + c] = data[idx][jlow + ilow + c] * jmix1 * (1.0 - imix) + data[idx][jlow + ihi + c] * jmix1 * imix + data[idx][jhi + ilow + c] * jmix * (1.0 - imix) + data[idx][jhi + ihi + c] * jmix * imix; - } - } - } - } - pixData.push(newArray); - model.width = newWidth; - model.height = newHeight; - } else { - pixData.push(null); - } - } - } - - // The output has to be filled - if (pixData.length === 0) { - for (let i = 0; i < data.length; i++) { - pixData.push(data[i]); - } - } - return pixData; - } - - //---------------------------------------------------------------------------- - function useTexStorage(dataType) { - if (model._openGLRenderWindow) { - if (model.resizable || model.renderable?.getResizable()) { - // Cannot use texStorage if the texture is supposed to be resizable. - return false; - } - if (model._openGLRenderWindow.getWebgl2()) { - const webGLInfo = model._openGLRenderWindow.getGLInformations(); - if (webGLInfo.RENDERER.value.match(/WebKit/gi) && navigator.platform.match(/Mac/gi) && getNorm16Ext() && (dataType === VtkDataTypes.UNSIGNED_SHORT || dataType === VtkDataTypes.SHORT)) { - // Cannot use texStorage with EXT_texture_norm16 textures on Mac M1 GPU. - // No errors reported but the texture is unusable. - return false; - } - // Use texStorage for WebGL2 - return true; - } - return false; - } - return false; - } - - //---------------------------------------------------------------------------- - - publicAPI.create2DFromRaw = function () { - let { - width = requiredParam('width'), - height = requiredParam('height'), - numComps = requiredParam('numComps'), - dataType = requiredParam('dataType'), - data = requiredParam('data'), - flip = false - } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - // Now determine the texture parameters using the arguments. - publicAPI.getOpenGLDataType(dataType, true); - publicAPI.getInternalFormat(dataType, numComps); - publicAPI.getFormat(dataType, numComps); - if (!model.internalFormat || !model.format || !model.openGLDataType) { - vtkErrorMacro('Failed to determine texture parameters.'); - return false; - } - model.target = model.context.TEXTURE_2D; - model.components = numComps; - model.width = width; - model.height = height; - model.depth = 1; - model.numberOfDimensions = 2; - model._openGLRenderWindow.activateTexture(publicAPI); - publicAPI.createTexture(); - publicAPI.bind(); - - // Create an array of texture with one texture - const dataArray = [data]; - const pixData = publicAPI.updateArrayDataTypeForGL(dataType, dataArray); - const scaledData = scaleTextureToHighestPowerOfTwo(pixData); - - // Source texture data from the PBO. - model.context.pixelStorei(model.context.UNPACK_FLIP_Y_WEBGL, flip); - model.context.pixelStorei(model.context.UNPACK_ALIGNMENT, 1); - if (useTexStorage(dataType)) { - model.context.texStorage2D(model.target, 1, model.internalFormat, model.width, model.height); - if (scaledData[0] != null) { - model.context.texSubImage2D(model.target, 0, 0, 0, model.width, model.height, model.format, model.openGLDataType, scaledData[0]); - } - } else { - model.context.texImage2D(model.target, 0, model.internalFormat, model.width, model.height, 0, model.format, model.openGLDataType, scaledData[0]); - } - if (model.generateMipmap) { - model.context.generateMipmap(model.target); - } - - // always reset the flip - if (flip) { - model.context.pixelStorei(model.context.UNPACK_FLIP_Y_WEBGL, false); - } - model.allocatedGPUMemoryInBytes = model.width * model.height * model.depth * numComps * model._openGLRenderWindow.getDefaultTextureByteSize(dataType, getNorm16Ext(), publicAPI.useHalfFloat()); - publicAPI.deactivate(); - return true; - }; - - //---------------------------------------------------------------------------- - publicAPI.createCubeFromRaw = function () { - let { - width = requiredParam('width'), - height = requiredParam('height'), - numComps = requiredParam('numComps'), - dataType = requiredParam('dataType'), - data = requiredParam('data') - } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - // Now determine the texture parameters using the arguments. - publicAPI.getOpenGLDataType(dataType); - publicAPI.getInternalFormat(dataType, numComps); - publicAPI.getFormat(dataType, numComps); - if (!model.internalFormat || !model.format || !model.openGLDataType) { - vtkErrorMacro('Failed to determine texture parameters.'); - return false; - } - model.target = model.context.TEXTURE_CUBE_MAP; - model.components = numComps; - model.width = width; - model.height = height; - model.depth = 1; - model.numberOfDimensions = 2; - model._openGLRenderWindow.activateTexture(publicAPI); - model.maxLevel = data.length / 6 - 1; - publicAPI.createTexture(); - publicAPI.bind(); - const pixData = publicAPI.updateArrayDataTypeForGL(dataType, data); - const scaledData = scaleTextureToHighestPowerOfTwo(pixData); - - // invert the data because opengl is messed up with cube maps - // and uses the old renderman standard with Y going down - // even though it is completely at odds with OpenGL standards - const invertedData = []; - let widthLevel = model.width; - let heightLevel = model.height; - for (let i = 0; i < scaledData.length; i++) { - if (i % 6 === 0 && i !== 0) { - widthLevel /= 2; - heightLevel /= 2; - } - invertedData[i] = newTypedArray(dataType, heightLevel * widthLevel * model.components); - for (let y = 0; y < heightLevel; ++y) { - const row1 = y * widthLevel * model.components; - const row2 = (heightLevel - y - 1) * widthLevel * model.components; - invertedData[i].set(scaledData[i].slice(row2, row2 + widthLevel * model.components), row1); - } - } - - // Source texture data from the PBO. - model.context.pixelStorei(model.context.UNPACK_ALIGNMENT, 1); - if (useTexStorage(dataType)) { - model.context.texStorage2D(model.target, 6, model.internalFormat, model.width, model.height); - } - // We get the 6 images - for (let i = 0; i < 6; i++) { - // For each mipmap level - let j = 0; - let w = model.width; - let h = model.height; - while (w >= 1 && h >= 1) { - // In webgl 1, all levels need to be defined. So if the latest level size is - // 8x8, we have to add 3 more null textures (4x4, 2x2, 1x1) - // In webgl 2, the attribute maxLevel will be use. - let tempData = null; - if (j <= model.maxLevel) { - tempData = invertedData[6 * j + i]; - } - if (useTexStorage(dataType)) { - if (tempData != null) { - model.context.texSubImage2D(model.context.TEXTURE_CUBE_MAP_POSITIVE_X + i, j, 0, 0, w, h, model.format, model.openGLDataType, tempData); - } - } else { - model.context.texImage2D(model.context.TEXTURE_CUBE_MAP_POSITIVE_X + i, j, model.internalFormat, w, h, 0, model.format, model.openGLDataType, tempData); - } - j++; - w /= 2; - h /= 2; - } - } - model.allocatedGPUMemoryInBytes = model.width * model.height * model.depth * numComps * model._openGLRenderWindow.getDefaultTextureByteSize(dataType, getNorm16Ext(), publicAPI.useHalfFloat()); - // generateMipmap must not be called here because we manually upload all levels - // if it is called, all levels will be overwritten - - publicAPI.deactivate(); - return true; - }; - - //---------------------------------------------------------------------------- - publicAPI.createDepthFromRaw = function () { - let { - width = requiredParam('width'), - height = requiredParam('height'), - dataType = requiredParam('dataType'), - data = requiredParam('data') - } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - // Now determine the texture parameters using the arguments. - publicAPI.getOpenGLDataType(dataType); - model.format = model.context.DEPTH_COMPONENT; - if (model._openGLRenderWindow.getWebgl2()) { - if (dataType === VtkDataTypes.FLOAT) { - model.internalFormat = model.context.DEPTH_COMPONENT32F; - } else { - model.internalFormat = model.context.DEPTH_COMPONENT16; - } - } else { - model.internalFormat = model.context.DEPTH_COMPONENT; - } - if (!model.internalFormat || !model.format || !model.openGLDataType) { - vtkErrorMacro('Failed to determine texture parameters.'); - return false; - } - model.target = model.context.TEXTURE_2D; - model.components = 1; - model.width = width; - model.height = height; - model.depth = 1; - model.numberOfDimensions = 2; - model._openGLRenderWindow.activateTexture(publicAPI); - publicAPI.createTexture(); - publicAPI.bind(); - - // Source texture data from the PBO. - // model.context.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true); - model.context.pixelStorei(model.context.UNPACK_ALIGNMENT, 1); - if (useTexStorage(dataType)) { - model.context.texStorage2D(model.target, 1, model.internalFormat, model.width, model.height); - if (data != null) { - model.context.texSubImage2D(model.target, 0, 0, 0, model.width, model.height, model.format, model.openGLDataType, data); - } - } else { - model.context.texImage2D(model.target, 0, model.internalFormat, model.width, model.height, 0, model.format, model.openGLDataType, data); - } - if (model.generateMipmap) { - model.context.generateMipmap(model.target); - } - model.allocatedGPUMemoryInBytes = model.width * model.height * model.depth * model.components * model._openGLRenderWindow.getDefaultTextureByteSize(dataType, getNorm16Ext(), publicAPI.useHalfFloat()); - publicAPI.deactivate(); - return true; - }; - - //---------------------------------------------------------------------------- - publicAPI.create2DFromImage = image => { - // Determine the texture parameters using the arguments. - publicAPI.getOpenGLDataType(VtkDataTypes.UNSIGNED_CHAR); - publicAPI.getInternalFormat(VtkDataTypes.UNSIGNED_CHAR, 4); - publicAPI.getFormat(VtkDataTypes.UNSIGNED_CHAR, 4); - if (!model.internalFormat || !model.format || !model.openGLDataType) { - vtkErrorMacro('Failed to determine texture parameters.'); - return false; - } - model.target = model.context.TEXTURE_2D; - model.components = 4; - model.depth = 1; - model.numberOfDimensions = 2; - model._openGLRenderWindow.activateTexture(publicAPI); - publicAPI.createTexture(); - publicAPI.bind(); - const needNearestPowerOfTwo = !model._openGLRenderWindow.getWebgl2() && (!isPowerOfTwo(image.width) || !isPowerOfTwo(image.height)); - let textureSource = image; - let targetWidth = image.width; - let targetHeight = image.height; - let flipY = true; - - // For WebGL1, we need to scale the image to the nearest power of two - // dimensions if the image is not already a power of two. For WebGL2, we can - // use the image as is. Note: Chrome has a perf issue where the path - // HTMLImageElement -> Canvas -> texSubImage2D is faster than - // HTMLImageElement -> texSubImage2D directly. See - // https://issues.chromium.org/issues/41311312#comment7 - // Tested on Chrome 137.0.7151.104 Windows 11 - const isChrome = window.chrome; - if (needNearestPowerOfTwo || isChrome) { - const canvas = new OffscreenCanvas(nearestPowerOfTwo(image.width), nearestPowerOfTwo(image.height)); - targetWidth = canvas.width; - targetHeight = canvas.height; - const ctx = canvas.getContext('2d'); - ctx.translate(0, canvas.height); - ctx.scale(1, -1); - ctx.drawImage(image, 0, 0, image.width, image.height, 0, 0, canvas.width, canvas.height); - textureSource = canvas; - flipY = false; // we are flipping the image manually using translate/scale - } - - model.width = targetWidth; - model.height = targetHeight; - - // Source texture data from the PBO. - model.context.pixelStorei(model.context.UNPACK_FLIP_Y_WEBGL, flipY); - model.context.pixelStorei(model.context.UNPACK_ALIGNMENT, 1); - if (useTexStorage(VtkDataTypes.UNSIGNED_CHAR)) { - model.context.texStorage2D(model.target, 1, model.internalFormat, model.width, model.height); - model.context.texSubImage2D(model.target, 0, 0, 0, model.width, model.height, model.format, model.openGLDataType, textureSource); - } else { - model.context.texImage2D(model.target, 0, model.internalFormat, model.width, model.height, 0, model.format, model.openGLDataType, textureSource); - } - if (model.generateMipmap) { - model.context.generateMipmap(model.target); - } - model.allocatedGPUMemoryInBytes = model.width * model.height * model.depth * model.components * model._openGLRenderWindow.getDefaultTextureByteSize(VtkDataTypes.UNSIGNED_CHAR, getNorm16Ext(), publicAPI.useHalfFloat()); - publicAPI.deactivate(); - return true; - }; - - //---------------------------------------------------------------------------- - publicAPI.create2DFromImageBitmap = imageBitmap => { - // Determine the texture parameters. - publicAPI.getOpenGLDataType(VtkDataTypes.UNSIGNED_CHAR); - publicAPI.getInternalFormat(VtkDataTypes.UNSIGNED_CHAR, 4); - publicAPI.getFormat(VtkDataTypes.UNSIGNED_CHAR, 4); - if (!model.internalFormat || !model.format || !model.openGLDataType) { - vtkErrorMacro('Failed to determine texture parameters.'); - return false; - } - model.target = model.context.TEXTURE_2D; - model.components = 4; - model.depth = 1; - model.numberOfDimensions = 2; - model._openGLRenderWindow.activateTexture(publicAPI); - publicAPI.createTexture(); - publicAPI.bind(); - - // Prepare texture unpack alignment - model.context.pixelStorei(model.context.UNPACK_ALIGNMENT, 1); - model.width = imageBitmap.width; - model.height = imageBitmap.height; - if (useTexStorage(VtkDataTypes.UNSIGNED_CHAR)) { - model.context.texStorage2D(model.target, 1, model.internalFormat, model.width, model.height); - model.context.texSubImage2D(model.target, 0, 0, 0, model.width, model.height, model.format, model.openGLDataType, imageBitmap); - } else { - model.context.texImage2D(model.target, 0, model.internalFormat, model.width, model.height, 0, model.format, model.openGLDataType, imageBitmap); - } - if (model.generateMipmap) { - model.context.generateMipmap(model.target); - } - model.allocatedGPUMemoryInBytes = model.width * model.height * model.depth * model.components * model._openGLRenderWindow.getDefaultTextureByteSize(VtkDataTypes.UNSIGNED_CHAR, getNorm16Ext(), publicAPI.useHalfFloat()); - publicAPI.deactivate(); - return true; - }; - - // Compute scale and offset per component from min and max per component - function computeScaleOffsets(min, max, numComps) { - const offset = new Array(numComps); - const scale = new Array(numComps); - for (let c = 0; c < numComps; ++c) { - offset[c] = min[c]; - scale[c] = max[c] - min[c] || 1.0; - } - return { - scale, - offset - }; - } - - // HalfFloat only represents numbers between [-2048, 2048] exactly accurate, - // for numbers outside of this range there is a precision limitation - function hasExactHalfFloat(offset, scale) { - // Per Component - for (let c = 0; c < offset.length; c++) { - const min = offset[c]; - const max = scale[c] + min; - if (min < -2048 || min > 2048 || max < -2048 || max > 2048) { - return false; - } - } - return true; - } - function setCanUseHalfFloat(dataType, offset, scale, preferSizeOverAccuracy) { - publicAPI.getOpenGLDataType(dataType); - - // Don't consider halfFloat and convert back to Float when the range of data does not generate an accurate halfFloat - // AND it is not preferable to have a smaller texture than an exact texture. - const isExactHalfFloat = hasExactHalfFloat(offset, scale) || preferSizeOverAccuracy; - let useHalfFloat = false; - if (model._openGLRenderWindow.getWebgl2()) { - // If OES_texture_float_linear is not available, and using a half float would still be exact, force half floats - // This is because half floats are always texture filterable in webgl2, while full *32F floats are not (unless the extension is present) - const forceHalfFloat = model.openGLDataType === model.context.FLOAT && model.context.getExtension('OES_texture_float_linear') === null && isExactHalfFloat; - useHalfFloat = forceHalfFloat || model.openGLDataType === model.context.HALF_FLOAT; - } else { - const halfFloatExt = model.context.getExtension('OES_texture_half_float'); - useHalfFloat = halfFloatExt && model.openGLDataType === halfFloatExt.HALF_FLOAT_OES; - } - model.canUseHalfFloat = useHalfFloat && isExactHalfFloat; - } - function processDataArray(dataArray, preferSizeOverAccuracy) { - const numComps = dataArray.getNumberOfComponents(); - const dataType = dataArray.getDataType(); - const data = dataArray.getData(); - - // Compute min max from array - // Using the vtkDataArray.getRange() enables caching - const minArray = new Array(numComps); - const maxArray = new Array(numComps); - for (let c = 0; c < numComps; ++c) { - const [min, max] = dataArray.getRange(c); - minArray[c] = min; - maxArray[c] = max; - } - const scaleOffsets = computeScaleOffsets(minArray, maxArray, numComps); - - // preferSizeOverAccuracy will override norm16 due to bug with norm16 implementation - // https://bugs.chromium.org/p/chromium/issues/detail?id=1408247 - setCanUseHalfFloat(dataType, scaleOffsets.offset, scaleOffsets.scale, preferSizeOverAccuracy); - - // since our default is to use half float, in case that we can't use it - // we need to use another type - if (!publicAPI.useHalfFloat()) { - publicAPI.getOpenGLDataType(dataType, true); - } - return { - numComps, - dataType, - data, - scaleOffsets - }; - } - publicAPI.create2DFilterableFromRaw = function () { - let { - width = requiredParam('width'), - height = requiredParam('height'), - numComps = requiredParam('numComps'), - dataType = requiredParam('dataType'), - data = requiredParam('data'), - preferSizeOverAccuracy = false, - ranges = undefined - } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return publicAPI.create2DFilterableFromDataArray({ - width, - height, - dataArray: vtkDataArray.newInstance({ - numberOfComponents: numComps, - dataType, - values: data, - ranges - }), - preferSizeOverAccuracy - }); - }; - publicAPI.create2DFilterableFromDataArray = function () { - let { - width = requiredParam('width'), - height = requiredParam('height'), - dataArray = requiredParam('dataArray'), - preferSizeOverAccuracy = false - } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - const { - numComps, - dataType, - data - } = processDataArray(dataArray, preferSizeOverAccuracy); - publicAPI.create2DFromRaw({ - width, - height, - numComps, - dataType, - data - }); - }; - publicAPI.updateVolumeInfoForGL = (dataType, numComps) => { - let isScalingApplied = false; - const useHalfFloat = publicAPI.useHalfFloat(); - - // Initialize volume info if it doesn't exist - if (!model.volumeInfo?.scale || !model.volumeInfo?.offset) { - model.volumeInfo = { - scale: new Array(numComps), - offset: new Array(numComps) - }; - } - - // Default scaling and offset - for (let c = 0; c < numComps; ++c) { - model.volumeInfo.scale[c] = 1.0; - model.volumeInfo.offset[c] = 0.0; - } - - // Handle SHORT data type with EXT_texture_norm16 extension - if (getNorm16Ext() && !useHalfFloat && dataType === VtkDataTypes.SHORT) { - for (let c = 0; c < numComps; ++c) { - model.volumeInfo.scale[c] = 32767.0; // Scale to [-1, 1] range - } - - isScalingApplied = true; - } - - // Handle UNSIGNED_SHORT data type with EXT_texture_norm16 extension - if (getNorm16Ext() && !useHalfFloat && dataType === VtkDataTypes.UNSIGNED_SHORT) { - for (let c = 0; c < numComps; ++c) { - model.volumeInfo.scale[c] = 65535.0; // Scale to [0, 1] range - } - - isScalingApplied = true; - } - - // Handle UNSIGNED_CHAR data type - if (dataType === VtkDataTypes.UNSIGNED_CHAR) { - for (let c = 0; c < numComps; ++c) { - model.volumeInfo.scale[c] = 255.0; // Scale to [0, 1] range - } - - isScalingApplied = true; - } - - // No scaling needed for FLOAT or HalfFloat (SHORT/UNSIGNED_SHORT) - if (dataType === VtkDataTypes.FLOAT || useHalfFloat && (dataType === VtkDataTypes.SHORT || dataType === VtkDataTypes.UNSIGNED_SHORT)) { - isScalingApplied = true; - } - return isScalingApplied; - }; - - //---------------------------------------------------------------------------- - publicAPI.create3DFromRaw = function () { - let { - width = requiredParam('width'), - height = requiredParam('height'), - depth = requiredParam('depth'), - numComps = requiredParam('numComps'), - dataType = requiredParam('dataType'), - data = requiredParam('data'), - updatedExtents = [] - } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - let dataTypeToUse = dataType; - let dataToUse = data; - if (!publicAPI.updateVolumeInfoForGL(dataTypeToUse, numComps) && dataToUse) { - const numPixelsIn = width * height * depth; - const scaleOffsetsCopy = structuredClone(model.volumeInfo); - // otherwise convert to float - const newArray = new Float32Array(numPixelsIn * numComps); - // use computed scale and offset - model.volumeInfo.offset = scaleOffsetsCopy.offset; - model.volumeInfo.scale = scaleOffsetsCopy.scale; - let count = 0; - const scaleInverse = scaleOffsetsCopy.scale.map(s => 1 / s); - for (let i = 0; i < numPixelsIn; i++) { - for (let nc = 0; nc < numComps; nc++) { - newArray[count] = (dataToUse[count] - scaleOffsetsCopy.offset[nc]) * scaleInverse[nc]; - count++; - } - } - dataTypeToUse = VtkDataTypes.FLOAT; - dataToUse = newArray; - } - - // Permit OpenGLDataType to be half float, if applicable, for 3D - publicAPI.getOpenGLDataType(dataTypeToUse); - - // Now determine the texture parameters using the arguments. - publicAPI.getInternalFormat(dataTypeToUse, numComps); - publicAPI.getFormat(dataTypeToUse, numComps); - if (!model.internalFormat || !model.format || !model.openGLDataType) { - vtkErrorMacro('Failed to determine texture parameters.'); - return false; - } - model.target = model.context.TEXTURE_3D; - model.components = numComps; - model.width = width; - model.height = height; - model.depth = depth; - model.numberOfDimensions = 3; - model._openGLRenderWindow.activateTexture(publicAPI); - publicAPI.createTexture(); - publicAPI.bind(); - const hasUpdatedExtents = updatedExtents.length > 0; - - // It's possible for the texture parameters to change while - // streaming, so check for such a change. - const rebuildEntireTexture = !hasUpdatedExtents || !DeepEqual(model._prevTexParams, getTexParams()); - - // Create an array of texture with one texture - const dataArray = [dataToUse]; - const is3DArray = true; - const pixData = publicAPI.updateArrayDataTypeForGL(dataTypeToUse, dataArray, is3DArray, rebuildEntireTexture ? [] : updatedExtents); - const scaledData = scaleTextureToHighestPowerOfTwo(pixData); - - // Source texture data from the PBO. - // model.context.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true); - model.context.pixelStorei(model.context.UNPACK_ALIGNMENT, 1); - if (rebuildEntireTexture) { - if (useTexStorage(dataTypeToUse)) { - model.context.texStorage3D(model.target, 1, model.internalFormat, model.width, model.height, model.depth); - if (scaledData[0] != null) { - model.context.texSubImage3D(model.target, 0, 0, 0, 0, model.width, model.height, model.depth, model.format, model.openGLDataType, scaledData[0]); - } - } else { - model.context.texImage3D(model.target, 0, model.internalFormat, model.width, model.height, model.depth, 0, model.format, model.openGLDataType, scaledData[0]); - } - model._prevTexParams = getTexParams(); - } else if (hasUpdatedExtents) { - const extentPixels = scaledData[0]; - let readOffset = 0; - for (let i = 0; i < updatedExtents.length; i++) { - const extent = updatedExtents[i]; - const extentSize = getExtentSize(extent); - const extentPixelCount = getExtentPixelCount(extent); - const textureData = new extentPixels.constructor(extentPixels.buffer, readOffset, extentPixelCount); - readOffset += textureData.byteLength; - model.context.texSubImage3D(model.target, 0, extent[0], extent[2], extent[4], extentSize[0], extentSize[1], extentSize[2], model.format, model.openGLDataType, textureData); - } - } - if (model.generateMipmap) { - model.context.generateMipmap(model.target); - } - model.allocatedGPUMemoryInBytes = model.width * model.height * model.depth * model.components * model._openGLRenderWindow.getDefaultTextureByteSize(dataTypeToUse, getNorm16Ext(), publicAPI.useHalfFloat()); - publicAPI.deactivate(); - return true; - }; - - //---------------------------------------------------------------------------- - // This method simulates a 3D texture using 2D - // Prefer create3DFilterableFromDataArray to enable caching of min and max values - publicAPI.create3DFilterableFromRaw = function () { - let { - width = requiredParam('width'), - height = requiredParam('height'), - depth = requiredParam('depth'), - numComps = requiredParam('numComps'), - dataType = requiredParam('dataType'), - data = requiredParam('data'), - preferSizeOverAccuracy = false, - ranges = undefined, - updatedExtents = [] - } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return publicAPI.create3DFilterableFromDataArray({ - width, - height, - depth, - dataArray: vtkDataArray.newInstance({ - numberOfComponents: numComps, - dataType, - values: data, - ranges - }), - preferSizeOverAccuracy, - updatedExtents - }); - }; - - //---------------------------------------------------------------------------- - // This method create a 3D texture from dimensions and a DataArray - publicAPI.create3DFilterableFromDataArray = function () { - let { - width = requiredParam('width'), - height = requiredParam('height'), - depth = requiredParam('depth'), - dataArray = requiredParam('dataArray'), - preferSizeOverAccuracy = false, - updatedExtents = [] - } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - const { - numComps, - dataType, - data, - scaleOffsets - } = processDataArray(dataArray, preferSizeOverAccuracy); - const offset = []; - const scale = []; - for (let c = 0; c < numComps; ++c) { - offset[c] = 0.0; - scale[c] = 1.0; - } - - // store the information, we will need it later - // offset and scale are the offset and scale required to get - // the texture value back to data values ala - // data = texture * scale + offset - // and texture = (data - offset)/scale - model.volumeInfo = { - scale, - offset, - dataComputedScale: scaleOffsets.scale, - dataComputedOffset: scaleOffsets.offset, - width, - height, - depth - }; - - // Create a copy of scale and offset to avoid aliasing issues - // Original is read only, copy is read/write - // Use the copy as volumeInfo.scale and volumeInfo.offset - - // WebGL2 path, we have 3d textures etc - if (model._openGLRenderWindow.getWebgl2()) { - return publicAPI.create3DFromRaw({ - width, - height, - depth, - numComps, - dataType, - data, - updatedExtents - }); - } - const numPixelsIn = width * height * depth; - const scaleOffsetsCopy = structuredClone(scaleOffsets); - - // not webgl2, deal with webgl1, no 3d textures - // and maybe no float textures - - let volCopyData = (outArray, outIdx, inValue, smin, smax) => { - outArray[outIdx] = inValue; - }; - let dataTypeToUse = VtkDataTypes.UNSIGNED_CHAR; - // unsigned char gets used as is - if (dataType === VtkDataTypes.UNSIGNED_CHAR) { - for (let c = 0; c < numComps; ++c) { - scaleOffsetsCopy.offset[c] = 0.0; - scaleOffsetsCopy.scale[c] = 255.0; - } - } else if (model.context.getExtension('OES_texture_float') && model.context.getExtension('OES_texture_float_linear')) { - // use float textures scaled to 0.0 to 1.0 - dataTypeToUse = VtkDataTypes.FLOAT; - volCopyData = (outArray, outIdx, inValue, soffset, sscale) => { - outArray[outIdx] = (inValue - soffset) / sscale; - }; - } else { - // worst case, scale data to uchar - dataTypeToUse = VtkDataTypes.UNSIGNED_CHAR; - volCopyData = (outArray, outIdx, inValue, soffset, sscale) => { - outArray[outIdx] = 255.0 * (inValue - soffset) / sscale; - }; - } - - // Now determine the texture parameters using the arguments. - publicAPI.getOpenGLDataType(dataTypeToUse); - publicAPI.getInternalFormat(dataTypeToUse, numComps); - publicAPI.getFormat(dataTypeToUse, numComps); - if (!model.internalFormat || !model.format || !model.openGLDataType) { - vtkErrorMacro('Failed to determine texture parameters.'); - return false; - } - - // have to pack this 3D texture into pot 2D texture - model.target = model.context.TEXTURE_2D; - model.components = numComps; - model.depth = 1; - model.numberOfDimensions = 2; - - // MAX_TEXTURE_SIZE gives the max dimensions that can be supported by the GPU, - // but it doesn't mean it will fit in memory. If we have to use a float data type - // or 4 components, there are good chances that the texture size will blow up - // and could not fit in the GPU memory. Use a smaller texture size in that case, - // which will force a downsampling of the dataset. - // That problem does not occur when using webGL2 since we can pack the data in - // denser textures based on our data type. - // TODO: try to fit in the biggest supported texture, catch the gl error if it - // does not fix (OUT_OF_MEMORY), then attempt with smaller texture - let maxTexDim = model.context.getParameter(model.context.MAX_TEXTURE_SIZE); - if (maxTexDim > 4096 && (dataTypeToUse === VtkDataTypes.FLOAT || numComps >= 3)) { - maxTexDim = 4096; - } - - // compute estimate for XY subsample - let xstride = 1; - let ystride = 1; - if (numPixelsIn > maxTexDim * maxTexDim) { - xstride = Math.ceil(Math.sqrt(numPixelsIn / (maxTexDim * maxTexDim))); - ystride = xstride; - } - let targetWidth = Math.sqrt(numPixelsIn) / xstride; - targetWidth = nearestPowerOfTwo(targetWidth); - // determine X reps - const xreps = Math.floor(targetWidth * xstride / width); - const yreps = Math.ceil(depth / xreps); - const targetHeight = nearestPowerOfTwo(height * yreps / ystride); - model.width = targetWidth; - model.height = targetHeight; - model._openGLRenderWindow.activateTexture(publicAPI); - publicAPI.createTexture(); - publicAPI.bind(); - - // store the information, we will need it later - model.volumeInfo.xreps = xreps; - model.volumeInfo.yreps = yreps; - model.volumeInfo.xstride = xstride; - model.volumeInfo.ystride = ystride; - model.volumeInfo.offset = scaleOffsetsCopy.offset; - model.volumeInfo.scale = scaleOffsetsCopy.scale; - - // OK stuff the data into the 2d TEXTURE - - // first allocate the new texture - let newArray; - const pixCount = targetWidth * targetHeight * numComps; - if (dataTypeToUse === VtkDataTypes.FLOAT) { - newArray = new Float32Array(pixCount); - } else { - newArray = new Uint8Array(pixCount); - } - - // then stuff the data into it, nothing fancy right now - // for stride - let outIdx = 0; - const tileWidth = Math.floor(width / xstride); - const tileHeight = Math.floor(height / ystride); - for (let yRep = 0; yRep < yreps; yRep++) { - const xrepsThisRow = Math.min(xreps, depth - yRep * xreps); - const outXContIncr = numComps * (model.width - xrepsThisRow * Math.floor(width / xstride)); - for (let tileY = 0; tileY < tileHeight; tileY++) { - for (let xRep = 0; xRep < xrepsThisRow; xRep++) { - const inOffset = numComps * ((yRep * xreps + xRep) * width * height + ystride * tileY * width); - for (let tileX = 0; tileX < tileWidth; tileX++) { - // copy value - for (let nc = 0; nc < numComps; nc++) { - volCopyData(newArray, outIdx, data[inOffset + xstride * tileX * numComps + nc], scaleOffsetsCopy.offset[nc], scaleOffsetsCopy.scale[nc]); - outIdx++; - } - } - } - outIdx += outXContIncr; - } - } - - // Source texture data from the PBO. - // model.context.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true); - model.context.pixelStorei(model.context.UNPACK_ALIGNMENT, 1); - if (useTexStorage(dataTypeToUse)) { - model.context.texStorage2D(model.target, 1, model.internalFormat, model.width, model.height); - if (newArray != null) { - model.context.texSubImage2D(model.target, 0, 0, 0, model.width, model.height, model.format, model.openGLDataType, newArray); - } - } else { - model.context.texImage2D(model.target, 0, model.internalFormat, model.width, model.height, 0, model.format, model.openGLDataType, newArray); - } - publicAPI.deactivate(); - return true; - }; - publicAPI.setOpenGLRenderWindow = rw => { - if (model._openGLRenderWindow === rw) { - return; - } - publicAPI.releaseGraphicsResources(); - model._openGLRenderWindow = rw; - model.context = null; - if (rw) { - model.context = model._openGLRenderWindow.getContext(); - } - }; - - //---------------------------------------------------------------------------- - publicAPI.getMaximumTextureSize = ctx => { - if (ctx && ctx.isCurrent()) { - return ctx.getIntegerv(ctx.MAX_TEXTURE_SIZE); - } - return -1; - }; - - // set use half float - publicAPI.enableUseHalfFloat = use => { - model.enableUseHalfFloat = use; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - _openGLRenderWindow: null, - _forceInternalFormat: false, - _prevTexParams: null, - context: null, - handle: 0, - sendParametersTime: null, - textureBuildTime: null, - numberOfDimensions: 0, - target: 0, - format: 0, - openGLDataType: 0, - components: 0, - width: 0, - height: 0, - depth: 0, - autoParameters: true, - wrapS: Wrap.CLAMP_TO_EDGE, - wrapT: Wrap.CLAMP_TO_EDGE, - wrapR: Wrap.CLAMP_TO_EDGE, - minificationFilter: Filter.NEAREST, - magnificationFilter: Filter.NEAREST, - minLOD: -1000.0, - maxLOD: 1000.0, - baseLevel: 0, - maxLevel: 1000, - generateMipmap: false, - oglNorm16Ext: null, - allocatedGPUMemoryInBytes: 0, - // by default it is enabled - enableUseHalfFloat: true, - // but by default we don't know if we can use half float base on the data range - canUseHalfFloat: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - model.sendParametersTime = {}; - obj(model.sendParametersTime, { - mtime: 0 - }); - model.textureBuildTime = {}; - obj(model.textureBuildTime, { - mtime: 0 - }); - - // Build VTK API - set(publicAPI, model, ['format', 'openGLDataType']); - setGet(publicAPI, model, ['keyMatrixTime', 'minificationFilter', 'magnificationFilter', 'wrapS', 'wrapT', 'wrapR', 'generateMipmap', 'oglNorm16Ext']); - get(publicAPI, model, ['width', 'height', 'volumeInfo', 'components', 'handle', 'target', 'allocatedGPUMemoryInBytes']); - moveToProtected(publicAPI, model, ['openGLRenderWindow']); - - // Object methods - vtkOpenGLTexture(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkOpenGLTexture'); - -// ---------------------------------------------------------------------------- - -var vtkOpenGLTexture$1 = { - newInstance, - extend, - ...Constants -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkTexture', newInstance); - -export { vtkOpenGLTexture$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Texture/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Texture/Constants.d.ts deleted file mode 100644 index 4dca7c34..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Texture/Constants.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -export declare enum Wrap { - CLAMP_TO_EDGE = 0, - REPEAT = 1, - MIRRORED_REPEAT = 2, -} - -export declare enum Filter { - NEAREST = 0, - LINEAR = 1, - NEAREST_MIPMAP_NEAREST = 2, - NEAREST_MIPMAP_LINEAR = 3, - LINEAR_MIPMAP_NEAREST = 4, - LINEAR_MIPMAP_LINEAR = 5, -} - -declare const _default: { - Wrap: typeof Wrap; - Filter: typeof Filter; -}; - -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Texture/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Texture/Constants.js deleted file mode 100644 index 77301459..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Texture/Constants.js +++ /dev/null @@ -1,19 +0,0 @@ -const Wrap = { - CLAMP_TO_EDGE: 0, - REPEAT: 1, - MIRRORED_REPEAT: 2 -}; -const Filter = { - NEAREST: 0, - LINEAR: 1, - NEAREST_MIPMAP_NEAREST: 2, - NEAREST_MIPMAP_LINEAR: 3, - LINEAR_MIPMAP_NEAREST: 4, - LINEAR_MIPMAP_LINEAR: 5 -}; -var Constants = { - Wrap, - Filter -}; - -export { Filter, Wrap, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Texture/supportsNorm16Linear.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Texture/supportsNorm16Linear.js deleted file mode 100644 index 72f877b8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Texture/supportsNorm16Linear.js +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Even when the EXT_texture_norm16 extension is present, linear filtering - * might not be supported for normalized fixed point textures. - * - * This is a driver bug. See https://github.com/KhronosGroup/WebGL/issues/3706 - * @return {boolean} - */ -function supportsNorm16Linear() { - try { - const canvasSize = 4; - const texWidth = 2; - const texHeight = 1; - const texData = new Int16Array([0, 2 ** 15 - 1]); - const pixelToCheck = [1, 1]; - const canvas = document.createElement('canvas'); - canvas.width = canvasSize; - canvas.height = canvasSize; - const gl = canvas.getContext('webgl2'); - if (!gl) { - return false; - } - const ext = gl.getExtension('EXT_texture_norm16'); - if (!ext) { - return false; - } - const vs = `#version 300 es - void main() { - gl_PointSize = ${canvasSize.toFixed(1)}; - gl_Position = vec4(0, 0, 0, 1); - } - `; - const fs = `#version 300 es - precision highp float; - precision highp int; - precision highp sampler2D; - - uniform sampler2D u_image; - - out vec4 color; - - void main() { - vec4 intColor = texture(u_image, gl_PointCoord.xy); - color = vec4(vec3(intColor.rrr), 1); - } - `; - const vertexShader = gl.createShader(gl.VERTEX_SHADER); - gl.shaderSource(vertexShader, vs); - gl.compileShader(vertexShader); - if (!gl.getShaderParameter(vertexShader, gl.COMPILE_STATUS)) { - return false; - } - const fragmentShader = gl.createShader(gl.FRAGMENT_SHADER); - gl.shaderSource(fragmentShader, fs); - gl.compileShader(fragmentShader); - if (!gl.getShaderParameter(fragmentShader, gl.COMPILE_STATUS)) { - return false; - } - const program = gl.createProgram(); - gl.attachShader(program, vertexShader); - gl.attachShader(program, fragmentShader); - gl.linkProgram(program); - if (!gl.getProgramParameter(program, gl.LINK_STATUS)) { - return false; - } - const tex = gl.createTexture(); - gl.bindTexture(gl.TEXTURE_2D, tex); - gl.texImage2D(gl.TEXTURE_2D, 0, ext.R16_SNORM_EXT, texWidth, texHeight, 0, gl.RED, gl.SHORT, texData); - gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR); - gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR); - gl.useProgram(program); - gl.drawArrays(gl.POINTS, 0, 1); - const pixel = new Uint8Array(4); - gl.readPixels(pixelToCheck[0], pixelToCheck[1], 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, pixel); - const [r, g, b] = pixel; - const webglLoseContext = gl.getExtension('WEBGL_lose_context'); - if (webglLoseContext) { - webglLoseContext.loseContext(); - } - return r === g && g === b && r !== 0; - } catch (e) { - return false; - } -} - -/** - * @type {boolean | undefined} - */ -let supportsNorm16LinearCache; -function supportsNorm16LinearCached() { - // Only create a canvas+texture+shaders the first time - if (supportsNorm16LinearCache === undefined) { - supportsNorm16LinearCache = supportsNorm16Linear(); - } - return supportsNorm16LinearCache; -} - -export { supportsNorm16LinearCached as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/TextureUnitManager.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/TextureUnitManager.js deleted file mode 100644 index 012bc98d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/TextureUnitManager.js +++ /dev/null @@ -1,128 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkOpenGLTextureUnitManager methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLTextureUnitManager(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLTextureUnitManager'); - - // ---------------------------------------------------------------------------- - // Description: - // Delete the allocation table and check if it is not called before - // all the texture units have been released. - publicAPI.deleteTable = () => { - for (let i = 0; i < model.numberOfTextureUnits; ++i) { - if (model.textureUnits[i] === true) { - vtkErrorMacro('some texture units were not properly released'); - } - } - model.textureUnits = []; - model.numberOfTextureUnits = 0; - }; - - // ---------------------------------------------------------------------------- - publicAPI.setContext = ctx => { - if (model.context !== ctx) { - if (model.context !== 0) { - publicAPI.deleteTable(); - } - model.context = ctx; - if (model.context) { - model.numberOfTextureUnits = ctx.getParameter(ctx.MAX_TEXTURE_IMAGE_UNITS); - for (let i = 0; i < model.numberOfTextureUnits; ++i) { - model.textureUnits[i] = false; - } - } - publicAPI.modified(); - } - }; - - // ---------------------------------------------------------------------------- - // Description: - // Reserve a texture unit. It returns its number. - // It returns -1 if the allocation failed (because there are no more - // texture units left). - // \post valid_result: result==-1 || result>=0 && resultGetNumberOfTextureUnits()) - // \post allocated: result==-1 || this->IsAllocated(result) - publicAPI.allocate = () => { - for (let i = 0; i < model.numberOfTextureUnits; i++) { - if (!publicAPI.isAllocated(i)) { - model.textureUnits[i] = true; - return i; - } - } - return -1; - }; - publicAPI.allocateUnit = unit => { - if (publicAPI.isAllocated(unit)) { - return -1; - } - model.textureUnits[unit] = true; - return unit; - }; - - // ---------------------------------------------------------------------------- - // Description: - // Tell if texture unit `textureUnitId' is already allocated. - // \pre valid_id_range : textureUnitId>=0 && textureUnitIdGetNumberOfTextureUnits() - publicAPI.isAllocated = textureUnitId => model.textureUnits[textureUnitId]; - - // ---------------------------------------------------------------------------- - // Description: - // Release a texture unit. - // \pre valid_id: textureUnitId>=0 && textureUnitIdGetNumberOfTextureUnits() - // \pre allocated_id: this->IsAllocated(textureUnitId) - publicAPI.free = val => { - model.textureUnits[val] = false; - }; - publicAPI.freeAll = () => { - for (let i = 0; i < model.numberOfTextureUnits; ++i) { - model.textureUnits[i] = false; - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - context: null, - numberOfTextureUnits: 0, - textureUnits: 0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - model.textureUnits = []; - - // Build VTK API - macro.get(publicAPI, model, ['numberOfTextureUnits']); - macro.setGet(publicAPI, model, ['context']); - - // Object methods - vtkOpenGLTextureUnitManager(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkOpenGLTextureUnitManager'); - -// ---------------------------------------------------------------------------- - -var vtkTextureUnitManager = { - newInstance, - extend -}; - -export { vtkTextureUnitManager as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/VertexArrayObject.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/VertexArrayObject.js deleted file mode 100644 index bc5e4bc0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/VertexArrayObject.js +++ /dev/null @@ -1,317 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { ObjectType } from './BufferObject/Constants.js'; - -// ---------------------------------------------------------------------------- -// vtkOpenGLVertexArrayObject methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLVertexArrayObject(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLVertexArrayObject'); - - // Public API methods - publicAPI.exposedMethod = () => { - // This is a publicly exposed method of this object - }; - publicAPI.initialize = () => { - model.instancingExtension = null; - if (!model._openGLRenderWindow.getWebgl2()) { - model.instancingExtension = model.context.getExtension('ANGLE_instanced_arrays'); - } - if (!model.forceEmulation && model._openGLRenderWindow && model._openGLRenderWindow.getWebgl2()) { - model.extension = null; - model.supported = true; - model.handleVAO = model.context.createVertexArray(); - } else { - model.extension = model.context.getExtension('OES_vertex_array_object'); - // Start setting up VAO - if (!model.forceEmulation && model.extension) { - model.supported = true; - model.handleVAO = model.extension.createVertexArrayOES(); - } else { - model.supported = false; - } - } - }; - publicAPI.isReady = () => - // We either probed and allocated a VAO, or are falling back as the current - // hardware does not support VAOs. - model.handleVAO !== 0 || model.supported === false; - publicAPI.bind = () => { - // Either simply bind the VAO, or emulate behavior by binding all attributes. - if (!publicAPI.isReady()) { - publicAPI.initialize(); - } - if (publicAPI.isReady() && model.supported) { - if (model.extension) { - model.extension.bindVertexArrayOES(model.handleVAO); - } else { - model.context.bindVertexArray(model.handleVAO); - } - } else if (publicAPI.isReady()) { - const gl = model.context; - for (let ibuff = 0; ibuff < model.buffers.length; ++ibuff) { - const buff = model.buffers[ibuff]; - model.context.bindBuffer(gl.ARRAY_BUFFER, buff.buffer); - for (let iatt = 0; iatt < buff.attributes.length; ++iatt) { - const attrIt = buff.attributes[iatt]; - const matrixCount = attrIt.isMatrix ? attrIt.size : 1; - for (let i = 0; i < matrixCount; ++i) { - gl.enableVertexAttribArray(attrIt.index + i); - gl.vertexAttribPointer(attrIt.index + i, attrIt.size, attrIt.type, attrIt.normalize, attrIt.stride, attrIt.offset + attrIt.stride * i / attrIt.size); - if (attrIt.divisor > 0) { - if (model.instancingExtension) { - model.instancingExtension.vertexAttribDivisorANGLE(attrIt.index + i, 1); - } else { - gl.vertexAttribDivisor(attrIt.index + i, 1); - } - } - } - } - } - } - }; - publicAPI.release = () => { - // Either simply release the VAO, or emulate behavior by releasing all attributes. - if (publicAPI.isReady() && model.supported) { - if (model.extension) { - model.extension.bindVertexArrayOES(null); - } else { - model.context.bindVertexArray(null); - } - } else if (publicAPI.isReady()) { - const gl = model.context; - for (let ibuff = 0; ibuff < model.buffers.length; ++ibuff) { - const buff = model.buffers[ibuff]; - model.context.bindBuffer(gl.ARRAY_BUFFER, buff.buffer); - for (let iatt = 0; iatt < buff.attributes.length; ++iatt) { - const attrIt = buff.attributes[iatt]; - const matrixCount = attrIt.isMatrix ? attrIt.size : 1; - for (let i = 0; i < matrixCount; ++i) { - gl.enableVertexAttribArray(attrIt.index + i); - gl.vertexAttribPointer(attrIt.index + i, attrIt.size, attrIt.type, attrIt.normalize, attrIt.stride, attrIt.offset + attrIt.stride * i / attrIt.size); - if (attrIt.divisor > 0) { - if (model.instancingExtension) { - model.instancingExtension.vertexAttribDivisorANGLE(attrIt.index + i, 0); - } else { - gl.vertexAttribDivisor(attrIt.index + i, 0); - } - } - gl.disableVertexAttribArray(attrIt.index + i); - } - } - } - } - }; - publicAPI.shaderProgramChanged = () => { - publicAPI.release(); - if (model.handleVAO) { - if (model.extension) { - model.extension.deleteVertexArrayOES(model.handleVAO); - } else { - model.context.deleteVertexArray(model.handleVAO); - } - } - model.handleVAO = 0; - model.handleProgram = 0; - }; - publicAPI.releaseGraphicsResources = () => { - publicAPI.shaderProgramChanged(); - if (model.handleVAO) { - if (model.extension) { - model.extension.deleteVertexArrayOES(model.handleVAO); - } else { - model.context.deleteVertexArray(model.handleVAO); - } - } - model.handleVAO = 0; - model.supported = true; - model.handleProgram = 0; - }; - publicAPI.addAttributeArray = (program, buffer, name, offset, stride, elementType, elementTupleSize, normalize) => publicAPI.addAttributeArrayWithDivisor(program, buffer, name, offset, stride, elementType, elementTupleSize, normalize, 0, false); - publicAPI.addAttributeArrayWithDivisor = (program, buffer, name, offset, stride, elementType, elementTupleSize, normalize, divisor, isMatrix) => { - if (!program) { - return false; - } - - // Check the program is bound, and the buffer is valid. - if (!program.isBound() || buffer.getHandle() === 0 || buffer.getType() !== ObjectType.ARRAY_BUFFER) { - return false; - } - - // Perform initialization if necessary, ensure program matches VAOs. - if (model.handleProgram === 0) { - model.handleProgram = program.getHandle(); - } - if (!publicAPI.isReady()) { - publicAPI.initialize(); - } - if (!publicAPI.isReady() || model.handleProgram !== program.getHandle()) { - return false; - } - const gl = model.context; - const attribs = {}; - attribs.name = name; - attribs.index = gl.getAttribLocation(model.handleProgram, name); - attribs.offset = offset; - attribs.stride = stride; - attribs.type = elementType; - attribs.size = elementTupleSize; - attribs.normalize = normalize; - attribs.isMatrix = isMatrix; - attribs.divisor = divisor; - if (attribs.Index === -1) { - return false; - } - - // Always make the call as even the first use wants the attrib pointer setting - // up when we are emulating. - buffer.bind(); - gl.enableVertexAttribArray(attribs.index); - gl.vertexAttribPointer(attribs.index, attribs.size, attribs.type, attribs.normalize, attribs.stride, attribs.offset); - if (divisor > 0) { - if (model.instancingExtension) { - model.instancingExtension.vertexAttribDivisorANGLE(attribs.index, 1); - } else { - gl.vertexAttribDivisor(attribs.index, 1); - } - } - attribs.buffer = buffer.getHandle(); - - // If vertex array objects are not supported then build up our list. - if (!model.supported) { - // find the buffer - let buffFound = false; - for (let ibuff = 0; ibuff < model.buffers.length; ++ibuff) { - const buff = model.buffers[ibuff]; - if (buff.buffer === attribs.buffer) { - buffFound = true; - let found = false; - for (let iatt = 0; iatt < buff.attributes.length; ++iatt) { - const attrIt = buff.attributes[iatt]; - if (attrIt.name === name) { - found = true; - buff.attributes[iatt] = attribs; - } - } - if (!found) { - buff.attributes.push(attribs); - } - } - } - if (!buffFound) { - model.buffers.push({ - buffer: attribs.buffer, - attributes: [attribs] - }); - } - } - return true; - }; - publicAPI.addAttributeMatrixWithDivisor = (program, buffer, name, offset, stride, elementType, elementTupleSize, normalize, divisor) => { - // bind the first row of values - const result = publicAPI.addAttributeArrayWithDivisor(program, buffer, name, offset, stride, elementType, elementTupleSize, normalize, divisor, true); - if (!result) { - return result; - } - const gl = model.context; - const index = gl.getAttribLocation(model.handleProgram, name); - for (let i = 1; i < elementTupleSize; i++) { - gl.enableVertexAttribArray(index + i); - gl.vertexAttribPointer(index + i, elementTupleSize, elementType, normalize, stride, offset + stride * i / elementTupleSize); - if (divisor > 0) { - if (model.instancingExtension) { - model.instancingExtension.vertexAttribDivisorANGLE(index + i, 1); - } else { - gl.vertexAttribDivisor(index + i, 1); - } - } - } - return true; - }; - publicAPI.removeAttributeArray = name => { - if (!publicAPI.isReady() || model.handleProgram === 0) { - return false; - } - - // If we don't have real VAOs find the entry and remove it too. - if (!model.supported) { - for (let ibuff = 0; ibuff < model.buffers.length; ++ibuff) { - const buff = model.buffers[ibuff]; - for (let iatt = 0; iatt < buff.attributes.length; ++iatt) { - const attrIt = buff.attributes[iatt]; - if (attrIt.name === name) { - buff.attributes.splice(iatt, 1); - if (!buff.attributes.length) { - model.buffers.splice(ibuff, 1); - } - return true; - } - } - } - } - return true; - }; - publicAPI.setOpenGLRenderWindow = rw => { - if (model._openGLRenderWindow === rw) { - return; - } - publicAPI.releaseGraphicsResources(); - model._openGLRenderWindow = rw; - model.context = null; - if (rw) { - model.context = model._openGLRenderWindow.getContext(); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - forceEmulation: false, - handleVAO: 0, - handleProgram: 0, - supported: true, - buffers: null, - context: null - // _openGLRenderWindow: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Internal objects initialization - model.buffers = []; - - // Object methods - macro.obj(publicAPI, model); - - // Create get-only macros - macro.get(publicAPI, model, ['supported']); - - // Create get-set macros - macro.setGet(publicAPI, model, ['forceEmulation']); - - // For more macro methods, see "Sources/macros.js" - - // Object specific methods - vtkOpenGLVertexArrayObject(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkOpenGLVertexArrayObject'); - -// ---------------------------------------------------------------------------- - -var vtkVertexArrayObject = { - newInstance, - extend -}; - -export { vtkVertexArrayObject as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ViewNodeFactory.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ViewNodeFactory.js deleted file mode 100644 index 2f25699a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/ViewNodeFactory.js +++ /dev/null @@ -1,51 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkViewNodeFactory$1 from '../SceneGraph/ViewNodeFactory.js'; - -const CLASS_MAPPING = Object.create(null); -function registerOverride(className, fn) { - CLASS_MAPPING[className] = fn; -} - -// ---------------------------------------------------------------------------- -// vtkOpenGLViewNodeFactory methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLViewNodeFactory(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLViewNodeFactory'); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Static class mapping shared across instances - model.overrides = CLASS_MAPPING; - - // Inheritance - vtkViewNodeFactory$1.extend(publicAPI, model, initialValues); - - // Object methods - vtkOpenGLViewNodeFactory(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkOpenGLViewNodeFactory'); - -// ---------------------------------------------------------------------------- - -var vtkViewNodeFactory = { - newInstance, - extend -}; - -export { vtkViewNodeFactory as default, extend, newInstance, registerOverride }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Volume.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Volume.js deleted file mode 100644 index 2a0bcf32..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/Volume.js +++ /dev/null @@ -1,123 +0,0 @@ -import { mat4, mat3 } from 'gl-matrix'; -import { n as newInstance$1, o as obj, e as setGet } from '../../macros2.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -// ---------------------------------------------------------------------------- -// vtkOpenGLVolume methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLVolume(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLVolume'); - - // Builds myself. - publicAPI.buildPass = prepass => { - if (!model.renderable || !model.renderable.getVisibility()) { - return; - } - if (prepass) { - model._openGLRenderWindow = publicAPI.getLastAncestorOfType('vtkOpenGLRenderWindow'); - model._openGLRenderer = publicAPI.getFirstAncestorOfType('vtkOpenGLRenderer'); - model.context = model._openGLRenderWindow.getContext(); - publicAPI.prepareNodes(); - publicAPI.addMissingNode(model.renderable.getMapper()); - publicAPI.removeUnusedNodes(); - } - }; - publicAPI.queryPass = (prepass, renderPass) => { - if (prepass) { - if (!model.renderable || !model.renderable.getVisibility()) { - return; - } - renderPass.incrementVolumeCount(); - } - }; - publicAPI.traverseVolumePass = renderPass => { - if (!model.renderable || !model.renderable.getNestedVisibility() || model._openGLRenderer.getSelector() && !model.renderable.getNestedPickable()) { - return; - } - publicAPI.apply(renderPass, true); - model.children[0].traverse(renderPass); - publicAPI.apply(renderPass, false); - }; - - // Renders myself - publicAPI.volumePass = prepass => { - if (!model.renderable || !model.renderable.getVisibility()) { - return; - } - model.context.depthMask(!prepass); - }; - publicAPI.getKeyMatrices = () => { - // has the actor changed? - if (model.renderable.getMTime() > model.keyMatrixTime.getMTime()) { - model.renderable.computeMatrix(); - mat4.copy(model.MCWCMatrix, model.renderable.getMatrix()); - mat4.transpose(model.MCWCMatrix, model.MCWCMatrix); - if (model.renderable.getIsIdentity()) { - mat3.identity(model.normalMatrix); - } else { - mat3.fromMat4(model.normalMatrix, model.MCWCMatrix); - mat3.invert(model.normalMatrix, model.normalMatrix); - mat3.transpose(model.normalMatrix, model.normalMatrix); - } - model.keyMatrixTime.modified(); - } - return { - mcwc: model.MCWCMatrix, - normalMatrix: model.normalMatrix - }; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // context: null, - // keyMatrixTime: null, - // normalMatrix: null, - // MCWCMatrix: null, - // _openGLRenderWindow: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - model.keyMatrixTime = {}; - obj(model.keyMatrixTime, { - mtime: 0 - }); - // always set by getter - model.normalMatrix = new Float64Array(9); - model.MCWCMatrix = new Float64Array(16); - - // Build VTK API - setGet(publicAPI, model, ['context']); - - // Object methods - vtkOpenGLVolume(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkOpenGLVolume'); - -// ---------------------------------------------------------------------------- - -var vtkVolume = { - newInstance, - extend -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkVolume', newInstance); - -export { vtkVolume as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/VolumeMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/VolumeMapper.js deleted file mode 100644 index aa33620d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/VolumeMapper.js +++ /dev/null @@ -1,1352 +0,0 @@ -import { n as newInstance$1, o as obj, e as setGet, h as chain, c as macro } from '../../macros2.js'; -import DeepEqual from 'fast-deep-equal'; -import { mat4, mat3, vec3 } from 'gl-matrix'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import { VtkDataTypes } from '../../Common/Core/DataArray/Constants.js'; -import vtkHelper from './Helper.js'; -import vtkOpenGLFramebuffer from './Framebuffer.js'; -import vtkOpenGLTexture from './Texture.js'; -import vtkReplacementShaderMapper from './ReplacementShaderMapper.js'; -import vtkShaderProgram from './ShaderProgram.js'; -import vtkVertexArrayObject from './VertexArrayObject.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { Representation } from '../Core/Property/Constants.js'; -import { Wrap, Filter } from './Texture/Constants.js'; -import { ColorMixPreset, OpacityMode, InterpolationType } from '../Core/VolumeProperty/Constants.js'; -import { BlendMode } from '../Core/VolumeMapper/Constants.js'; -import { getTransferFunctionsHash, getImageDataHash } from './RenderWindow/resourceSharingHelper.js'; -import { v as vtkVolumeVS } from './glsl/vtkVolumeVS.glsl.js'; -import { v as vtkVolumeFS } from './glsl/vtkVolumeFS.glsl.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -const { - vtkWarningMacro, - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// helper methods -// ---------------------------------------------------------------------------- - -// Some matrices to avoid reallocations when we need them -const preAllocatedMatrices = { - idxToView: mat4.identity(new Float64Array(16)), - vecISToVCMatrix: mat3.identity(new Float64Array(9)), - modelToView: mat4.identity(new Float64Array(16)), - projectionToView: mat4.identity(new Float64Array(16)), - projectionToWorld: mat4.identity(new Float64Array(16)) -}; - -// ---------------------------------------------------------------------------- -// vtkOpenGLVolumeMapper methods -// ---------------------------------------------------------------------------- - -function vtkOpenGLVolumeMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOpenGLVolumeMapper'); - function getUseIndependentComponents(actorProperty, numComp) { - const iComps = actorProperty.getIndependentComponents(); - const colorMixPreset = actorProperty.getColorMixPreset(); - return iComps && numComp >= 2 || !!colorMixPreset; - } - function isLabelmapOutlineRequired(actorProperty) { - return actorProperty.getUseLabelOutline() || model.renderable.getBlendMode() === BlendMode.LABELMAP_EDGE_PROJECTION_BLEND; - } - - // Associate a reference counter to each graphics resource - const graphicsResourceReferenceCount = new Map(); - function decreaseGraphicsResourceCount(openGLRenderWindow, coreObject) { - if (!coreObject) { - return; - } - const oldCount = graphicsResourceReferenceCount.get(coreObject) ?? 0; - const newCount = oldCount - 1; - if (newCount <= 0) { - openGLRenderWindow.unregisterGraphicsResourceUser(coreObject, publicAPI); - graphicsResourceReferenceCount.delete(coreObject); - } else { - graphicsResourceReferenceCount.set(coreObject, newCount); - } - } - function increaseGraphicsResourceCount(openGLRenderWindow, coreObject) { - if (!coreObject) { - return; - } - const oldCount = graphicsResourceReferenceCount.get(coreObject) ?? 0; - const newCount = oldCount + 1; - graphicsResourceReferenceCount.set(coreObject, newCount); - if (oldCount <= 0) { - openGLRenderWindow.registerGraphicsResourceUser(coreObject, publicAPI); - } - } - function replaceGraphicsResource(openGLRenderWindow, oldResourceCoreObject, newResourceCoreObject) { - if (oldResourceCoreObject === newResourceCoreObject) { - return; - } - decreaseGraphicsResourceCount(openGLRenderWindow, oldResourceCoreObject); - increaseGraphicsResourceCount(openGLRenderWindow, newResourceCoreObject); - } - function unregisterGraphicsResources(renderWindow) { - // Convert to an array using the spread operator as Firefox doesn't support Iterator.forEach() - [...graphicsResourceReferenceCount.keys()].forEach(coreObject => renderWindow.unregisterGraphicsResourceUser(coreObject, publicAPI)); - } - publicAPI.buildPass = () => { - model.zBufferTexture = null; - }; - - // ohh someone is doing a zbuffer pass, use that for - // intermixed volume rendering - publicAPI.zBufferPass = (prepass, renderPass) => { - if (prepass) { - const zbt = renderPass.getZBufferTexture(); - if (zbt !== model.zBufferTexture) { - model.zBufferTexture = zbt; - } - } - }; - publicAPI.opaqueZBufferPass = (prepass, renderPass) => publicAPI.zBufferPass(prepass, renderPass); - - // Renders myself - publicAPI.volumePass = (prepass, renderPass) => { - if (prepass) { - const oldOglRenderWindow = model._openGLRenderWindow; - model._openGLRenderWindow = publicAPI.getLastAncestorOfType('vtkOpenGLRenderWindow'); - if (oldOglRenderWindow && !oldOglRenderWindow.isDeleted() && oldOglRenderWindow !== model._openGLRenderWindow) { - // Unregister the mapper when the render window changes - unregisterGraphicsResources(oldOglRenderWindow); - } - model.context = model._openGLRenderWindow.getContext(); - model.tris.setOpenGLRenderWindow(model._openGLRenderWindow); - model.jitterTexture.setOpenGLRenderWindow(model._openGLRenderWindow); - model.framebuffer.setOpenGLRenderWindow(model._openGLRenderWindow); - model.openGLVolume = publicAPI.getFirstAncestorOfType('vtkOpenGLVolume'); - const actor = model.openGLVolume.getRenderable(); - model._openGLRenderer = publicAPI.getFirstAncestorOfType('vtkOpenGLRenderer'); - const ren = model._openGLRenderer.getRenderable(); - model.openGLCamera = model._openGLRenderer.getViewNodeFor(ren.getActiveCamera()); - publicAPI.renderPiece(ren, actor); - } - }; - publicAPI.getShaderTemplate = (shaders, ren, actor) => { - shaders.Vertex = vtkVolumeVS; - shaders.Fragment = vtkVolumeFS; - shaders.Geometry = ''; - }; - publicAPI.replaceShaderValues = (shaders, ren, actor) => { - let FSSource = shaders.Fragment; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::EnabledColorFunctions', `#define EnableColorForValueFunctionId${model.previousState.colorForValueFunctionId}`).result; - const enabledLightings = []; - if (model.previousState.surfaceLightingEnabled) { - enabledLightings.push('Surface'); - } - if (model.previousState.volumeLightingEnabled) { - enabledLightings.push('Volume'); - } - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::EnabledLightings', enabledLightings.map(lightingType => `#define Enable${lightingType}Lighting`)).result; - if (model.previousState.multiTexturePerVolumeEnabled) { - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::EnabledMultiTexturePerVolume', '#define EnabledMultiTexturePerVolume').result; - } - if (model.previousState.useIndependentComponents) { - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::EnabledIndependentComponents', '#define EnabledIndependentComponents').result; - } - if (model.previousState.gradientOpacityEnabled) { - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::EnabledGradientOpacity', '#define EnabledGradientOpacity').result; - } - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::vtkProportionalComponents', model.previousState.proportionalComponents.map(component => `#define vtkComponent${component}Proportional`).join('\n')).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::vtkForceNearestComponents', model.previousState.forceNearestComponents.map(component => `#define vtkComponent${component}ForceNearest`).join('\n')).result; - - // if we have a ztexture then declare it and use it - if (model.previousState.hasZBufferTexture) { - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::ZBuffer::Dec', ['uniform sampler2D zBufferTexture;', 'uniform float vpZWidth;', 'uniform float vpZHeight;']).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::ZBuffer::Impl', ['vec4 depthVec = texture2D(zBufferTexture, vec2(gl_FragCoord.x / vpZWidth, gl_FragCoord.y/vpZHeight));', 'float zdepth = (depthVec.r*256.0 + depthVec.g)/257.0;', 'zdepth = zdepth * 2.0 - 1.0;', 'if (cameraParallel == 0) {', 'zdepth = -2.0 * camFar * camNear / (zdepth*(camFar-camNear)-(camFar+camNear)) - camNear;}', 'else {', 'zdepth = (zdepth + 1.0) * 0.5 * (camFar - camNear);}\n', 'zdepth = -zdepth/rayDirVC.z;', 'dists.y = min(zdepth,dists.y);']).result; - } - - // Set the BlendMode approach - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::BlendMode', `${model.previousState.blendMode}`).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::NumberOfLights', `${model.previousState.numberOfLights}`).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::MaxLaoKernelSize', `${model.previousState.maxLaoKernelSize}`).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::NumberOfComponents', `${model.previousState.numberOfComponents}`).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::MaximumNumberOfSamples', `${model.previousState.maximumNumberOfSamples}`).result; - shaders.Fragment = FSSource; - const numberOfClippingPlanes = model.previousState.numberOfClippingPlanes; - if (numberOfClippingPlanes > 0) { - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::ClipPlane::Dec', [`uniform vec3 vClipPlaneNormals[6];`, `uniform float vClipPlaneDistances[6];`, `uniform vec3 vClipPlaneOrigins[6];`, `uniform int clip_numPlanes;`, '//VTK::ClipPlane::Dec', '#define vtkClippingPlanesOn'], false).result; - FSSource = vtkShaderProgram.substitute(FSSource, '//VTK::ClipPlane::Impl', [`for(int i = 0; i < ${numberOfClippingPlanes}; i++) {`, ' float rayDirRatio = dot(rayDirVC, vClipPlaneNormals[i]);', ' float equationResult = dot(vertexVCVSOutput, vClipPlaneNormals[i]) + vClipPlaneDistances[i];', ' if (rayDirRatio == 0.0)', ' {', ' if (equationResult < 0.0) dists.x = dists.y;', ' continue;', ' }', ' float result = -1.0 * equationResult / rayDirRatio;', ' if (rayDirRatio < 0.0) dists.y = min(dists.y, result);', ' else dists.x = max(dists.x, result);', '}', '//VTK::ClipPlane::Impl'], false).result; - } - shaders.Fragment = FSSource; - }; - publicAPI.getNeedToRebuildShaders = (cellBO, ren, actor) => { - // These are all the variables that fully determine the behavior of replaceShaderValues - // and the exact content of the shader - // See replaceShaderValues method - const hasZBufferTexture = !!model.zBufferTexture; - const numberOfValidInputs = model.currentValidInputs.length; - const numberOfLights = model.numberOfLights; - const numberOfComponents = model.numberOfComponents; - const useIndependentComponents = model.useIndependentComponents; - - // The volume property that is used is always the first one - const volumeProperties = actor.getProperties(); - const firstValidInput = model.currentValidInputs[0]; - const firstVolumeProperty = volumeProperties[firstValidInput.inputIndex]; - - // There are two modes: - // - single volume with multiple components - // - multiple volumes with one component per volume - const multiTexturePerVolumeEnabled = numberOfValidInputs > 1; - - // Get maximum number of samples - const boundsMC = firstValidInput.imageData.getBounds(); - const maximumRayLength = vtkBoundingBox.getDiagonalLength(boundsMC); - const maximumNumberOfSamples = Math.ceil(maximumRayLength / publicAPI.getCurrentSampleDistance(ren)); - if (maximumNumberOfSamples > model.renderable.getMaximumSamplesPerRay()) { - vtkWarningMacro(`The number of steps required ${maximumNumberOfSamples} is larger than the ` + `specified maximum number of steps ${model.renderable.getMaximumSamplesPerRay()}.\n` + 'Please either change the volumeMapper sampleDistance or its maximum number of samples.'); - } - - // Gradient opacity - const numberOfIndependantComponents = useIndependentComponents ? numberOfComponents : 1; - let gradientOpacityEnabled = false; - for (let i = 0; i < numberOfIndependantComponents; ++i) { - if (firstVolumeProperty.getUseGradientOpacity(i)) { - gradientOpacityEnabled = true; - break; - } - } - - // Get the max kernel size from volume properties that use LAO and - // that are linked to a valid input imageData - let maxLaoKernelSize = 0; - const kernelSize = firstVolumeProperty.getLAOKernelSize(); - if (kernelSize > maxLaoKernelSize && firstVolumeProperty.getLocalAmbientOcclusion() && firstVolumeProperty.getAmbient() > 0.0) { - maxLaoKernelSize = kernelSize; - } - const numberOfClippingPlanes = model.renderable.getClippingPlanes().length; - // These are from the buildShader function in vtkReplacementShaderMapper - const mapperShaderReplacements = model.renderable.getViewSpecificProperties().OpenGL?.ShaderReplacements; - const renderPassShaderReplacements = model.currentRenderPass?.getShaderReplacement(); - const blendMode = model.renderable.getBlendMode(); - - // This enables optimizing out some function which avoids huge shader compilation time - // The result of this computation is used in getColorForValue in the fragment shader - const colorForValueFunctionId = (() => { - // If labeloutline and not the edge labelmap, since in the edge labelmap blend - // we need the underlying data to sample through - if (blendMode !== BlendMode.LABELMAP_EDGE_PROJECTION_BLEND && isLabelmapOutlineRequired(firstVolumeProperty)) { - return 5; - } - if (useIndependentComponents) { - switch (firstVolumeProperty.getColorMixPreset()) { - case ColorMixPreset.ADDITIVE: - return 1; - case ColorMixPreset.COLORIZE: - return 2; - case ColorMixPreset.CUSTOM: - return 3; - default: - // ColorMixPreset.DEFAULT - return 4; - } - } - return 0; - })(); - - // Get which types of lighting are enabled - const surfaceLightingEnabled = firstVolumeProperty.getVolumetricScatteringBlending() < 1.0; - const volumeLightingEnabled = firstVolumeProperty.getVolumetricScatteringBlending() > 0.0; - - // Is any volume using ForceNearestInterpolation - let forceNearestInterpolationEnabled = false; - for (let component = 0; component < numberOfComponents; ++component) { - if (firstVolumeProperty.getForceNearestInterpolation(component)) { - forceNearestInterpolationEnabled = true; - break; - } - } - - // Define any proportional components - const proportionalComponents = []; - const forceNearestComponents = []; - for (let component = 0; component < numberOfComponents; component++) { - if (firstVolumeProperty.getOpacityMode(component) === OpacityMode.PROPORTIONAL) { - proportionalComponents.push(component); - } - if (firstVolumeProperty.getForceNearestInterpolation(component)) { - forceNearestComponents.push(component); - } - } - const currentState = { - numberOfComponents, - useIndependentComponents, - proportionalComponents, - forceNearestComponents, - blendMode, - numberOfLights, - numberOfValidInputs, - maximumNumberOfSamples, - hasZBufferTexture, - maxLaoKernelSize, - numberOfClippingPlanes, - mapperShaderReplacements, - renderPassShaderReplacements, - colorForValueFunctionId, - surfaceLightingEnabled, - volumeLightingEnabled, - forceNearestInterpolationEnabled, - multiTexturePerVolumeEnabled, - gradientOpacityEnabled - }; - - // We need to rebuild the shader if one of these variables has changed, - // since they are used in the shader template replacement step. - // We also need to rebuild if the shader source time is outdated. - if (cellBO.getProgram()?.getHandle() === 0 || !model.previousState || !DeepEqual(model.previousState, currentState)) { - model.previousState = currentState; - return true; - } - return false; - }; - publicAPI.updateShaders = (cellBO, ren, actor) => { - // has something changed that would require us to recreate the shader? - if (publicAPI.getNeedToRebuildShaders(cellBO, ren, actor)) { - const shaders = { - Vertex: null, - Fragment: null, - Geometry: null - }; - publicAPI.buildShaders(shaders, ren, actor); - - // compile and bind the program if needed - const newShader = model._openGLRenderWindow.getShaderCache().readyShaderProgramArray(shaders.Vertex, shaders.Fragment, shaders.Geometry); - - // if the shader changed reinitialize the VAO - if (newShader !== cellBO.getProgram()) { - cellBO.setProgram(newShader); - // reset the VAO as the shader has changed - cellBO.getVAO().releaseGraphicsResources(); - } - cellBO.getShaderSourceTime().modified(); - } else { - model._openGLRenderWindow.getShaderCache().readyShaderProgram(cellBO.getProgram()); - } - cellBO.getVAO().bind(); - publicAPI.setMapperShaderParameters(cellBO, ren, actor); - publicAPI.setCameraShaderParameters(cellBO, ren, actor); - publicAPI.setPropertyShaderParameters(cellBO, ren, actor); - publicAPI.getClippingPlaneShaderParameters(cellBO, ren, actor); - }; - publicAPI.setMapperShaderParameters = (cellBO, ren, actor) => { - // Now to update the VAO too, if necessary. - const program = cellBO.getProgram(); - if (cellBO.getCABO().getElementCount() && (model.VBOBuildTime.getMTime() > cellBO.getAttributeUpdateTime().getMTime() || cellBO.getShaderSourceTime().getMTime() > cellBO.getAttributeUpdateTime().getMTime())) { - if (program.isAttributeUsed('vertexDC')) { - if (!cellBO.getVAO().addAttributeArray(program, cellBO.getCABO(), 'vertexDC', cellBO.getCABO().getVertexOffset(), cellBO.getCABO().getStride(), model.context.FLOAT, 3, model.context.FALSE)) { - vtkErrorMacro('Error setting vertexDC in shader VAO.'); - } - } - cellBO.getAttributeUpdateTime().modified(); - } - const sampleDistance = publicAPI.getCurrentSampleDistance(ren); - program.setUniformf('sampleDistance', sampleDistance); - const volumeShadowSampleDistance = sampleDistance * model.renderable.getVolumeShadowSamplingDistFactor(); - program.setUniformf('volumeShadowSampleDistance', volumeShadowSampleDistance); - - // Volume textures - model.scalarTextures.forEach((scalarTexture, component) => { - program.setUniformi(`volumeTexture[${component}]`, scalarTexture.getTextureUnit()); - }); - const volumeProperties = actor.getProperties(); - const firstValidInput = model.currentValidInputs[0]; - const firstVolumeProperty = volumeProperties[firstValidInput.inputIndex]; - const ipScalarRange = firstVolumeProperty.getIpScalarRange(); - const minVals = new Float32Array(4); - const maxVals = new Float32Array(4); - const setMinMaxVal = (component, volInfo, volInfoIndex) => { - // In some situations, we might not have computed the scale and offset - // for the data range, or it might not be needed. - if (volInfo?.dataComputedScale?.length) { - // convert iprange from 0-1 into data range values - minVals[component] = ipScalarRange[0] * volInfo.dataComputedScale[volInfoIndex] + volInfo.dataComputedOffset[volInfoIndex]; - maxVals[component] = ipScalarRange[1] * volInfo.dataComputedScale[volInfoIndex] + volInfo.dataComputedOffset[volInfoIndex]; - // convert data ranges into texture values - minVals[component] = (minVals[component] - volInfo.offset[volInfoIndex]) / volInfo.scale[volInfoIndex]; - maxVals[component] = (maxVals[component] - volInfo.offset[volInfoIndex]) / volInfo.scale[volInfoIndex]; - } - }; - if (model.previousState.multiTexturePerVolumeEnabled) { - // Use the first component of all texture infos - model.scalarTextures.forEach((scalarTexture, component) => { - const volInfo = scalarTexture.getVolumeInfo(); - setMinMaxVal(component, volInfo, 0); - }); - } else { - // Use all components of the first texture info - const firstVolInfo = model.scalarTextures[0].getVolumeInfo(); - for (let component = 0; component < 4; ++component) { - setMinMaxVal(component, firstVolInfo, component); - } - } - const uniformPrefix = 'volume'; - program.setUniform4f(`${uniformPrefix}.ipScalarRangeMin`, minVals[0], minVals[1], minVals[2], minVals[3]); - program.setUniform4f(`${uniformPrefix}.ipScalarRangeMax`, maxVals[0], maxVals[1], maxVals[2], maxVals[3]); - - // if we have a zbuffer texture then set it - if (model.zBufferTexture !== null) { - program.setUniformi('zBufferTexture', model.zBufferTexture.getTextureUnit()); - const size = model._useSmallViewport ? [model._smallViewportWidth, model._smallViewportHeight] : model._openGLRenderWindow.getFramebufferSize(); - program.setUniformf('vpZWidth', size[0]); - program.setUniformf('vpZHeight', size[1]); - } - }; - publicAPI.setCameraShaderParameters = (cellBO, ren, actor) => { - // These matrices are not cached for their content, but only to avoid reallocations - const { - idxToView, - vecISToVCMatrix, - modelToView, - projectionToView, - projectionToWorld - } = preAllocatedMatrices; - - // [WMVP]C == {world, model, view, projection} coordinates - // E.g., WCPC == world to projection coordinate transformation - const keyMats = model.openGLCamera.getKeyMatrices(ren); - const actMats = model.openGLVolume.getKeyMatrices(); - mat4.multiply(modelToView, keyMats.wcvc, actMats.mcwc); - const program = cellBO.getProgram(); - const camera = model.openGLCamera.getRenderable(); - const useParallelProjection = camera.getParallelProjection(); - const clippingRange = camera.getClippingRange(); - program.setUniformf('camThick', clippingRange[1] - clippingRange[0]); - program.setUniformf('camNear', clippingRange[0]); - program.setUniformf('camFar', clippingRange[1]); - program.setUniformi('cameraParallel', useParallelProjection); - - // Compute the viewport bounds of the volume - // We will only render those fragments - // First, merge all bounds to get a fusion of all bounds in model coordinates - const firstValidInput = model.currentValidInputs[0]; - const boundsMC = firstValidInput.imageData.getBounds(); - const cornersMC = vtkBoundingBox.getCorners(boundsMC, []); - const cornersDC = cornersMC.map(corner => { - // Convert to view coordinates - vec3.transformMat4(corner, corner, modelToView); - if (!useParallelProjection) { - // Now find the projection of this point onto a - // nearZ distance plane. Since pos is in view coordinates, - // scale it until pos.z == nearZ - const newScale = -clippingRange[0] / (corner[2] * vec3.length(corner)); - vec3.scale(corner, corner, newScale); - } - - // Now convert to display coordinates - vec3.transformMat4(corner, corner, keyMats.vcpc); - return corner; - }); - const boundsDC = vtkBoundingBox.addPoints([...vtkBoundingBox.INIT_BOUNDS], cornersDC); - program.setUniformf('dcxmin', boundsDC[0]); - program.setUniformf('dcxmax', boundsDC[1]); - program.setUniformf('dcymin', boundsDC[2]); - program.setUniformf('dcymax', boundsDC[3]); - const size = publicAPI.getRenderTargetSize(); - program.setUniformf('vpWidth', size[0]); - program.setUniformf('vpHeight', size[1]); - const offset = publicAPI.getRenderTargetOffset(); - program.setUniformf('vpOffsetX', offset[0] / size[0]); - program.setUniformf('vpOffsetY', offset[1] / size[1]); - mat4.invert(projectionToView, keyMats.vcpc); - program.setUniformMatrix('PCVCMatrix', projectionToView); - program.setUniformi('twoSidedLighting', ren.getTwoSidedLighting()); - const kernelSample = new Array(2 * model.previousState.maxLaoKernelSize); - for (let i = 0; i < model.previousState.maxLaoKernelSize; i++) { - kernelSample[i * 2] = Math.random(); - kernelSample[i * 2 + 1] = Math.random(); - } - program.setUniform2fv('kernelSample', kernelSample); - - // Handle lighting values - if (model.numberOfLights > 0) { - let lightIndex = 0; - ren.getLights().forEach(light => { - if (light.getSwitch() > 0) { - const lightPrefix = `lights[${lightIndex}]`; - - // Merge color and intensity - const color = light.getColor(); - const intensity = light.getIntensity(); - const scaledColor = vec3.scale([], color, intensity); - program.setUniform3fv(`${lightPrefix}.color`, scaledColor); - - // Position in view coordinates - const position = light.getTransformedPosition(); - vec3.transformMat4(position, position, modelToView); - program.setUniform3fv(`${lightPrefix}.positionVC`, position); - - // Convert lightDirection in view coordinates and normalize it - const direction = [...light.getDirection()]; - vec3.transformMat3(direction, direction, keyMats.normalMatrix); - vec3.normalize(direction, direction); - program.setUniform3fv(`${lightPrefix}.directionVC`, direction); - - // Camera direction of projection is (0, 0, -1.0) in view coordinates - const halfAngle = [-0.5 * direction[0], -0.5 * direction[1], -0.5 * (direction[2] - 1.0)]; - program.setUniform3fv(`${lightPrefix}.halfAngleVC`, halfAngle); - - // Attenuation - const attenuation = light.getAttenuationValues(); - program.setUniform3fv(`${lightPrefix}.attenuation`, attenuation); - - // Exponent - const exponent = light.getExponent(); - program.setUniformf(`${lightPrefix}.exponent`, exponent); - - // Cone angle - const coneAngle = light.getConeAngle(); - program.setUniformf(`${lightPrefix}.coneAngle`, coneAngle); - - // Positional flag - const isPositional = light.getPositional(); - program.setUniformi(`${lightPrefix}.isPositional`, isPositional); - lightIndex++; - } - }); - } - - // Set uniforms for the volume - const uniformPrefix = 'volume'; - const volumeProperties = actor.getProperties(); - const firstVolumeProperty = volumeProperties[firstValidInput.inputIndex]; - const firstImageData = firstValidInput.imageData; - const spatialExtent = firstImageData.getSpatialExtent(); - const spacing = firstImageData.getSpacing(); - const dimensions = firstImageData.getDimensions(); - const idxToModel = firstImageData.getIndexToWorld(); - const worldToIndex = firstImageData.getWorldToIndex(); - const imageDirection = firstImageData.getDirectionByReference(); - - // idxToView is equivalent to applying idxToModel then modelToView - mat4.multiply(idxToView, modelToView, idxToModel); - - // Set spacing uniform - program.setUniform3fv(`${uniformPrefix}.spacing`, spacing); - const inverseSpacing = vec3.inverse([], spacing); - program.setUniform3fv(`${uniformPrefix}.inverseSpacing`, inverseSpacing); - - // Set dimensions uniform - program.setUniform3iv(`${uniformPrefix}.dimensions`, dimensions); - - // Set inverse dimensions uniform - program.setUniform3fv(`${uniformPrefix}.inverseDimensions`, vec3.inverse([], dimensions)); - - // Set world to index - program.setUniformMatrix(`${uniformPrefix}.worldToIndex`, worldToIndex); - - // Create the vecISToVCMatrix, that transform a point from texture coordinates (IS in the shader) to VC coordinates - vecISToVCMatrix.fill(0); - // First apply scaling - // mat3.fromScaling can't be used, because it uses a vec2 for scaling - const sizeVC = vec3.multiply(new Float64Array(3), dimensions, spacing); - vecISToVCMatrix[0] = sizeVC[0]; - vecISToVCMatrix[4] = sizeVC[1]; - vecISToVCMatrix[8] = sizeVC[2]; - // Then apply the image direction matrix - mat3.multiply(vecISToVCMatrix, imageDirection, vecISToVCMatrix); - // Then apply the actor matrix - mat3.multiply(vecISToVCMatrix, actMats.normalMatrix, vecISToVCMatrix); - // Then apply the camera matrix - mat3.multiply(vecISToVCMatrix, keyMats.normalMatrix, vecISToVCMatrix); - program.setUniformMatrix3x3(`${uniformPrefix}.vecISToVCMatrix`, vecISToVCMatrix); - program.setUniformMatrix3x3(`${uniformPrefix}.vecVCToISMatrix`, mat3.invert(new Float32Array(9), vecISToVCMatrix)); - - // Set originVC uniform that will be used to convert points from IS to VC - // It will be done in this way: posVC = vecISToVCMatrix * posIS + originVC - // Or the other way around: posIS = vecVCtoISMatrix * (posVC - originVC) - const spacialExtentMinIC = vec3.fromValues(spatialExtent[0], spatialExtent[2], spatialExtent[4]); - const originVC = vec3.transformMat4(new Float64Array(3), spacialExtentMinIC, idxToView); - program.setUniform3fv(`${uniformPrefix}.originVC`, originVC); - const diagonalLength = vec3.length(sizeVC); - program.setUniformf(`${uniformPrefix}.diagonalLength`, diagonalLength); - if (isLabelmapOutlineRequired(firstVolumeProperty)) { - const distance = camera.getDistance(); - - // set the clipping range to be model.distance and model.distance + 0.1 - // since we use the in the keyMats.wcpc (world to projection) matrix - // the projection matrix calculation relies on the clipping range to be - // set correctly. This is done inside the interactorStyleMPRSlice which - // limits use cases where the interactor style is not used. - - camera.setClippingRange(distance, distance + 0.1); - const labelOutlineKeyMats = model.openGLCamera.getKeyMatrices(ren); - - // Get the projection coordinate to world coordinate transformation matrix. - mat4.invert(projectionToWorld, labelOutlineKeyMats.wcpc); - - // reset the clipping range since the keyMats are cached - camera.setClippingRange(clippingRange[0], clippingRange[1]); - - // to re compute the matrices for the current camera and cache them - model.openGLCamera.getKeyMatrices(ren); - program.setUniformMatrix(`${uniformPrefix}.PCWCMatrix`, projectionToWorld); - } - if (firstVolumeProperty.getVolumetricScatteringBlending() > 0.0) { - program.setUniformf(`${uniformPrefix}.globalIlluminationReach`, firstVolumeProperty.getGlobalIlluminationReach()); - program.setUniformf(`${uniformPrefix}.volumetricScatteringBlending`, firstVolumeProperty.getVolumetricScatteringBlending()); - program.setUniformf(`${uniformPrefix}.anisotropy`, firstVolumeProperty.getAnisotropy()); - program.setUniformf(`${uniformPrefix}.anisotropySquared`, firstVolumeProperty.getAnisotropy() ** 2.0); - } - if (firstVolumeProperty.getLocalAmbientOcclusion() && firstVolumeProperty.getAmbient() > 0.0) { - const kernelSize = firstVolumeProperty.getLAOKernelSize(); - program.setUniformi(`${uniformPrefix}.kernelSize`, kernelSize); - const kernelRadius = firstVolumeProperty.getLAOKernelRadius(); - program.setUniformi(`${uniformPrefix}.kernelRadius`, kernelRadius); - } else { - program.setUniformi(`${uniformPrefix}.kernelSize`, 0); - } - }; - publicAPI.setPropertyShaderParameters = (cellBO, ren, actor) => { - const program = cellBO.getProgram(); - program.setUniformi('jtexture', model.jitterTexture.getTextureUnit()); - const volumeProperties = actor.getProperties(); - - // There is only one label outline thickness texture - program.setUniformi(`labelOutlineThicknessTexture`, model.labelOutlineThicknessTexture.getTextureUnit()); - program.setUniformi('opacityTexture', model.opacityTexture.getTextureUnit()); - program.setUniformi('colorTexture', model.colorTexture.getTextureUnit()); - const uniformPrefix = 'volume'; - const firstValidInput = model.currentValidInputs[0]; - const firstVolumeProperty = volumeProperties[firstValidInput.inputIndex]; - const numberOfComponents = model.previousState.numberOfComponents; - const useIndependentComponents = model.previousState.useIndependentComponents; - - // set the component mix when independent - if (useIndependentComponents) { - const independentComponentMix = new Float32Array(4); - for (let i = 0; i < numberOfComponents; i++) { - independentComponentMix[i] = firstVolumeProperty.getComponentWeight(i); - } - program.setUniform4fv(`${uniformPrefix}.independentComponentMix`, independentComponentMix); - const transferFunctionsSampleHeight = new Float32Array(4); - const pixelHeight = 1 / numberOfComponents; - for (let i = 0; i < numberOfComponents; ++i) { - transferFunctionsSampleHeight[i] = (i + 0.5) * pixelHeight; - } - program.setUniform4fv(`${uniformPrefix}.transferFunctionsSampleHeight`, transferFunctionsSampleHeight); - } - const colorForValueFunctionId = model.colorForValueFunctionId; - program.setUniformi(`${uniformPrefix}.colorForValueFunctionId`, colorForValueFunctionId); - const computeNormalFromOpacity = firstVolumeProperty.getComputeNormalFromOpacity(); - program.setUniformi(`${uniformPrefix}.computeNormalFromOpacity`, computeNormalFromOpacity); - - // three levels of shift scale combined into one - // for performance in the fragment shader - const colorTextureScale = new Float32Array(4); - const colorTextureShift = new Float32Array(4); - const opacityTextureScale = new Float32Array(4); - const opacityTextureShift = new Float32Array(4); - for (let component = 0; component < numberOfComponents; component++) { - const useMultiTexture = model.previousState.multiTexturePerVolumeEnabled; - const textureIndex = useMultiTexture ? component : 0; - const volInfoIndex = useMultiTexture ? 0 : component; - const scalarTexture = model.scalarTextures[textureIndex]; - const volInfo = scalarTexture.getVolumeInfo(); - const target = useIndependentComponents ? component : 0; - const sscale = volInfo.scale[volInfoIndex]; - - // Color - const colorFunction = firstVolumeProperty.getRGBTransferFunction(target); - const colorRange = colorFunction.getRange(); - colorTextureScale[component] = sscale / (colorRange[1] - colorRange[0]); - colorTextureShift[component] = (volInfo.offset[volInfoIndex] - colorRange[0]) / (colorRange[1] - colorRange[0]); - - // Opacity - const opacityFunction = firstVolumeProperty.getScalarOpacity(target); - const opacityRange = opacityFunction.getRange(); - opacityTextureScale[component] = sscale / (opacityRange[1] - opacityRange[0]); - opacityTextureShift[component] = (volInfo.offset[volInfoIndex] - opacityRange[0]) / (opacityRange[1] - opacityRange[0]); - } - program.setUniform4fv(`${uniformPrefix}.colorTextureScale`, colorTextureScale); - program.setUniform4fv(`${uniformPrefix}.colorTextureShift`, colorTextureShift); - program.setUniform4fv(`${uniformPrefix}.opacityTextureScale`, opacityTextureScale); - program.setUniform4fv(`${uniformPrefix}.opacityTextureShift`, opacityTextureShift); - if (model.previousState.gradientOpacityEnabled) { - const gradientOpacityScale = new Array(4); - const gradientOpacityShift = new Array(4); - const gradientOpacityMin = new Array(4); - const gradientOpacityMax = new Array(4); - if (useIndependentComponents) { - for (let component = 0; component < numberOfComponents; ++component) { - const useMultiTexture = model.previousState.multiTexturePerVolumeEnabled; - const textureIndex = useMultiTexture ? component : 0; - const volInfoIndex = useMultiTexture ? 0 : component; - const scalarTexture = model.scalarTextures[textureIndex]; - const volInfo = scalarTexture.getVolumeInfo(); - const sscale = volInfo.scale[volInfoIndex]; - const useGO = firstVolumeProperty.getUseGradientOpacity(component); - if (useGO) { - const goOpacityRange = [firstVolumeProperty.getGradientOpacityMinimumOpacity(component), firstVolumeProperty.getGradientOpacityMaximumOpacity(component)]; - const goValueRange = [firstVolumeProperty.getGradientOpacityMinimumValue(component), firstVolumeProperty.getGradientOpacityMaximumValue(component)]; - gradientOpacityMin[component] = goOpacityRange[0]; - gradientOpacityMax[component] = goOpacityRange[1]; - gradientOpacityScale[component] = sscale * (goOpacityRange[1] - goOpacityRange[0]) / (goValueRange[1] - goValueRange[0]); - gradientOpacityShift[component] = -goValueRange[0] * (goOpacityRange[1] - goOpacityRange[0]) / (goValueRange[1] - goValueRange[0]) + goOpacityRange[0]; - } else { - gradientOpacityMin[component] = 1; - gradientOpacityMax[component] = 1; - gradientOpacityScale[component] = 0; - gradientOpacityShift[component] = 1; - } - } - } else { - const component = numberOfComponents - 1; - const useMultiTexture = model.previousState.multiTexturePerVolumeEnabled; - const textureIndex = useMultiTexture ? component : 0; - const volInfoIndex = useMultiTexture ? 0 : component; - const scalarTexture = model.scalarTextures[textureIndex]; - const volInfo = scalarTexture.getVolumeInfo(); - const sscale = volInfo.scale[volInfoIndex]; - const goOpacityRange = [firstVolumeProperty.getGradientOpacityMinimumOpacity(0), firstVolumeProperty.getGradientOpacityMaximumOpacity(0)]; - const goValueRange = [firstVolumeProperty.getGradientOpacityMinimumValue(0), firstVolumeProperty.getGradientOpacityMaximumValue(0)]; - gradientOpacityMin[0] = goOpacityRange[0]; - gradientOpacityMax[0] = goOpacityRange[1]; - gradientOpacityScale[0] = sscale * (goOpacityRange[1] - goOpacityRange[0]) / (goValueRange[1] - goValueRange[0]); - gradientOpacityShift[0] = -goValueRange[0] * (goOpacityRange[1] - goOpacityRange[0]) / (goValueRange[1] - goValueRange[0]) + goOpacityRange[0]; - } - program.setUniform4f(`${uniformPrefix}.gradientOpacityScale`, gradientOpacityScale); - program.setUniform4f(`${uniformPrefix}.gradientOpacityShift`, gradientOpacityShift); - program.setUniform4f(`${uniformPrefix}.gradientOpacityMin`, gradientOpacityMin); - program.setUniform4f(`${uniformPrefix}.gradientOpacityMax`, gradientOpacityMax); - } - const outlineOpacity = firstVolumeProperty.getLabelOutlineOpacity(); - program.setUniformf(`${uniformPrefix}.outlineOpacity`, outlineOpacity); - if (model.numberOfLights > 0) { - program.setUniformf(`${uniformPrefix}.ambient`, firstVolumeProperty.getAmbient()); - program.setUniformf(`${uniformPrefix}.diffuse`, firstVolumeProperty.getDiffuse()); - program.setUniformf(`${uniformPrefix}.specular`, firstVolumeProperty.getSpecular()); - const specularPower = firstVolumeProperty.getSpecularPower(); - program.setUniformf(`${uniformPrefix}.specularPower`, specularPower === 0 ? 1.0 : specularPower); - } - }; - publicAPI.getClippingPlaneShaderParameters = (cellBO, ren, actor) => { - if (model.renderable.getClippingPlanes().length > 0) { - const keyMats = model.openGLCamera.getKeyMatrices(ren); - const clipPlaneNormals = []; - const clipPlaneDistances = []; - const clipPlaneOrigins = []; - const clipPlanes = model.renderable.getClippingPlanes(); - const clipPlaneSize = clipPlanes.length; - for (let i = 0; i < clipPlaneSize; ++i) { - const clipPlaneNormal = clipPlanes[i].getNormal(); - const clipPlanePos = clipPlanes[i].getOrigin(); - vec3.transformMat3(clipPlaneNormal, clipPlaneNormal, keyMats.normalMatrix); - vec3.transformMat4(clipPlanePos, clipPlanePos, keyMats.wcvc); - const clipPlaneDist = -1.0 * vec3.dot(clipPlanePos, clipPlaneNormal); - clipPlaneNormals.push(clipPlaneNormal[0]); - clipPlaneNormals.push(clipPlaneNormal[1]); - clipPlaneNormals.push(clipPlaneNormal[2]); - clipPlaneDistances.push(clipPlaneDist); - clipPlaneOrigins.push(clipPlanePos[0]); - clipPlaneOrigins.push(clipPlanePos[1]); - clipPlaneOrigins.push(clipPlanePos[2]); - } - const program = cellBO.getProgram(); - program.setUniform3fv(`vClipPlaneNormals`, clipPlaneNormals); - program.setUniformfv(`vClipPlaneDistances`, clipPlaneDistances); - program.setUniform3fv(`vClipPlaneOrigins`, clipPlaneOrigins); - program.setUniformi(`clip_numPlanes`, clipPlaneSize); - } - }; - - // unsubscribe from our listeners - publicAPI.delete = chain(() => { - if (model._animationRateSubscription) { - model._animationRateSubscription.unsubscribe(); - model._animationRateSubscription = null; - } - }, () => { - if (model._openGLRenderWindow) { - unregisterGraphicsResources(model._openGLRenderWindow); - } - }, publicAPI.delete); - publicAPI.getRenderTargetSize = () => { - if (model._useSmallViewport) { - return [model._smallViewportWidth, model._smallViewportHeight]; - } - const { - usize, - vsize - } = model._openGLRenderer.getTiledSizeAndOrigin(); - return [usize, vsize]; - }; - publicAPI.getRenderTargetOffset = () => { - const { - lowerLeftU, - lowerLeftV - } = model._openGLRenderer.getTiledSizeAndOrigin(); - return [lowerLeftU, lowerLeftV]; - }; - publicAPI.getCurrentSampleDistance = ren => { - const rwi = ren.getVTKWindow().getInteractor(); - const baseSampleDistance = model.renderable.getSampleDistance(); - if (rwi.isAnimating()) { - const factor = model.renderable.getInteractionSampleDistanceFactor(); - return baseSampleDistance * factor; - } - return baseSampleDistance; - }; - publicAPI.renderPieceStart = (ren, actor) => { - const rwi = ren.getVTKWindow().getInteractor(); - if (!model._lastScale) { - model._lastScale = model.renderable.getInitialInteractionScale(); - } - model._useSmallViewport = false; - if (rwi.isAnimating() && model._lastScale > 1.5) { - model._useSmallViewport = true; - } - if (!model._animationRateSubscription) { - // when the animation frame rate changes recompute the scale factor - model._animationRateSubscription = rwi.onAnimationFrameRateUpdate(() => { - if (model.renderable.getAutoAdjustSampleDistances()) { - const frate = rwi.getRecentAnimationFrameRate(); - const adjustment = rwi.getDesiredUpdateRate() / frate; - - // only change if we are off by 15% - if (adjustment > 1.15 || adjustment < 0.85) { - model._lastScale *= adjustment; - } - // clamp scale to some reasonable values. - // Below 1.5 we will just be using full resolution as that is close enough - // Above 400 seems like a lot so we limit to that 1/20th per axis - if (model._lastScale > 400) { - model._lastScale = 400; - } - if (model._lastScale < 1.5) { - model._lastScale = 1.5; - } - } else { - model._lastScale = model.renderable.getImageSampleDistance() * model.renderable.getImageSampleDistance(); - } - }); - } - - // use/create/resize framebuffer if needed - if (model._useSmallViewport) { - const size = model._openGLRenderWindow.getFramebufferSize(); - const scaleFactor = 1 / Math.sqrt(model._lastScale); - model._smallViewportWidth = Math.ceil(scaleFactor * size[0]); - model._smallViewportHeight = Math.ceil(scaleFactor * size[1]); - - // adjust viewportSize to always be at most the dest fo size - if (model._smallViewportHeight > size[1]) { - model._smallViewportHeight = size[1]; - } - if (model._smallViewportWidth > size[0]) { - model._smallViewportWidth = size[0]; - } - model.framebuffer.saveCurrentBindingsAndBuffers(); - if (model.framebuffer.getGLFramebuffer() === null) { - model.framebuffer.create(size[0], size[1]); - model.framebuffer.populateFramebuffer(); - } else { - const fbSize = model.framebuffer.getSize(); - if (!fbSize || fbSize[0] !== size[0] || fbSize[1] !== size[1]) { - model.framebuffer.create(size[0], size[1]); - model.framebuffer.populateFramebuffer(); - } - } - model.framebuffer.bind(); - const gl = model.context; - gl.clearColor(0.0, 0.0, 0.0, 0.0); - gl.colorMask(true, true, true, true); - gl.clear(gl.COLOR_BUFFER_BIT); - gl.viewport(0, 0, model._smallViewportWidth, model._smallViewportHeight); - model.fvp = [model._smallViewportWidth / size[0], model._smallViewportHeight / size[1]]; - } - model.context.disable(model.context.DEPTH_TEST); - - // make sure the BOs are up to date - publicAPI.updateBufferObjects(ren, actor); - - // set interpolation on the texture based on property setting - const volumeProperties = actor.getProperties(); - model.currentValidInputs.forEach(_ref => { - let { - inputIndex - } = _ref; - const volumeProperty = volumeProperties[inputIndex]; - const interpolationType = volumeProperty.getInterpolationType(); - const scalarTexture = model.scalarTextures[inputIndex]; - if (interpolationType === InterpolationType.NEAREST) { - scalarTexture.setMinificationFilter(Filter.NEAREST); - scalarTexture.setMagnificationFilter(Filter.NEAREST); - } else { - scalarTexture.setMinificationFilter(Filter.LINEAR); - scalarTexture.setMagnificationFilter(Filter.LINEAR); - } - }); - - // if we have a zbuffer texture then activate it - if (model.zBufferTexture !== null) { - model.zBufferTexture.activate(); - } - }; - publicAPI.renderPieceDraw = (ren, actor) => { - const gl = model.context; - - // render the texture - const allTextures = [...model.scalarTextures, model.colorTexture, model.opacityTexture, model.labelOutlineThicknessTexture, model.jitterTexture]; - allTextures.forEach(texture => texture.activate()); - publicAPI.updateShaders(model.tris, ren, actor); - - // First we do the triangles, update the shader, set uniforms, etc. - gl.drawArrays(gl.TRIANGLES, 0, model.tris.getCABO().getElementCount()); - model.tris.getVAO().release(); - allTextures.forEach(texture => texture.deactivate()); - }; - publicAPI.renderPieceFinish = (ren, actor) => { - // if we have a zbuffer texture then deactivate it - if (model.zBufferTexture !== null) { - model.zBufferTexture.deactivate(); - } - if (model._useSmallViewport) { - // now copy the framebuffer with the volume into the - // regular buffer - model.framebuffer.restorePreviousBindingsAndBuffers(); - if (model.copyShader === null) { - model.copyShader = model._openGLRenderWindow.getShaderCache().readyShaderProgramArray(['//VTK::System::Dec', 'attribute vec4 vertexDC;', 'uniform vec2 tfactor;', 'varying vec2 tcoord;', 'void main() { tcoord = vec2(vertexDC.x*0.5 + 0.5, vertexDC.y*0.5 + 0.5) * tfactor; gl_Position = vertexDC; }'].join('\n'), ['//VTK::System::Dec', '//VTK::Output::Dec', 'uniform sampler2D texture1;', 'varying vec2 tcoord;', 'void main() { gl_FragData[0] = texture2D(texture1,tcoord); }'].join('\n'), ''); - const program = model.copyShader; - model.copyVAO = vtkVertexArrayObject.newInstance(); - model.copyVAO.setOpenGLRenderWindow(model._openGLRenderWindow); - model.tris.getCABO().bind(); - if (!model.copyVAO.addAttributeArray(program, model.tris.getCABO(), 'vertexDC', model.tris.getCABO().getVertexOffset(), model.tris.getCABO().getStride(), model.context.FLOAT, 3, model.context.FALSE)) { - vtkErrorMacro('Error setting vertexDC in copy shader VAO.'); - } - } else { - model._openGLRenderWindow.getShaderCache().readyShaderProgram(model.copyShader); - } - const size = model._openGLRenderWindow.getFramebufferSize(); - model.context.viewport(0, 0, size[0], size[1]); - - // activate texture - const tex = model.framebuffer.getColorTexture(); - tex.activate(); - model.copyShader.setUniformi('texture', tex.getTextureUnit()); - model.copyShader.setUniform2f('tfactor', model.fvp[0], model.fvp[1]); - const gl = model.context; - gl.blendFuncSeparate(gl.ONE, gl.ONE_MINUS_SRC_ALPHA, gl.ONE, gl.ONE_MINUS_SRC_ALPHA); - - // render quad - model.context.drawArrays(model.context.TRIANGLES, 0, model.tris.getCABO().getElementCount()); - tex.deactivate(); - gl.blendFuncSeparate(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA, gl.ONE, gl.ONE_MINUS_SRC_ALPHA); - } - }; - publicAPI.renderPiece = (ren, actor) => { - publicAPI.invokeEvent({ - type: 'StartEvent' - }); - - // Get the valid image data inputs - model.renderable.update(); - const numberOfInputs = model.renderable.getNumberOfInputPorts(); - model.currentValidInputs = []; - for (let inputIndex = 0; inputIndex < numberOfInputs; ++inputIndex) { - const imageData = model.renderable.getInputData(inputIndex); - if (imageData && !imageData.isDeleted()) { - model.currentValidInputs.push({ - imageData, - inputIndex - }); - } - } - let newNumberOfLights = 0; - if (model.currentValidInputs.length > 0) { - const volumeProperties = actor.getProperties(); - const firstValidInput = model.currentValidInputs[0]; - const firstImageData = firstValidInput.imageData; - const firstScalars = firstImageData.getPointData().getScalars(); - const firstVolumeProperty = volumeProperties[firstValidInput.inputIndex]; - - // Get the number of lights - if (firstVolumeProperty.getShade() && model.renderable.getBlendMode() === BlendMode.COMPOSITE_BLEND) { - ren.getLights().forEach(light => { - if (light.getSwitch() > 0) { - newNumberOfLights++; - } - }); - } - - // Number of components - const numberOfValidInputs = model.currentValidInputs.length; - const multiTexturePerVolumeEnabled = numberOfValidInputs > 1; - model.numberOfComponents = multiTexturePerVolumeEnabled ? numberOfValidInputs : firstScalars.getNumberOfComponents(); - model.useIndependentComponents = getUseIndependentComponents(firstVolumeProperty, model.numberOfComponents); - } - if (newNumberOfLights !== model.numberOfLights) { - model.numberOfLights = newNumberOfLights; - publicAPI.modified(); - } - publicAPI.invokeEvent({ - type: 'EndEvent' - }); - if (model.currentValidInputs.length === 0) { - return; - } - publicAPI.renderPieceStart(ren, actor); - publicAPI.renderPieceDraw(ren, actor); - publicAPI.renderPieceFinish(ren, actor); - }; - publicAPI.updateBufferObjects = (ren, actor) => { - // Rebuild buffers if needed - if (publicAPI.getNeedToRebuildBufferObjects(ren, actor)) { - publicAPI.buildBufferObjects(ren, actor); - } - }; - publicAPI.getNeedToRebuildBufferObjects = (ren, actor) => model.VBOBuildTime.getMTime() < publicAPI.getMTime() || model.VBOBuildTime.getMTime() < actor.getMTime() || model.VBOBuildTime.getMTime() < actor.getProperty(model.currentValidInputs[0].inputIndex)?.getMTime() || model.VBOBuildTime.getMTime() < model.renderable.getMTime() || model.currentValidInputs.some(_ref2 => { - let { - imageData - } = _ref2; - return model.VBOBuildTime.getMTime() < imageData.getMTime(); - }) || model.scalarTextures.length !== model.currentValidInputs.length || !model.scalarTextures.every(texture => !!texture?.getHandle()) || !model.colorTexture?.getHandle() || !model.opacityTexture?.getHandle() || !model.labelOutlineThicknessTexture?.getHandle() || !model.jitterTexture?.getHandle(); - publicAPI.buildBufferObjects = (ren, actor) => { - if (!model.jitterTexture.getHandle()) { - const jitterArray = new Float32Array(32 * 32); - for (let i = 0; i < 32 * 32; ++i) { - jitterArray[i] = Math.random(); - } - model.jitterTexture.setMinificationFilter(Filter.NEAREST); - model.jitterTexture.setMagnificationFilter(Filter.NEAREST); - model.jitterTexture.create2DFromRaw({ - width: 32, - height: 32, - numComps: 1, - dataType: VtkDataTypes.FLOAT, - data: jitterArray - }); - } - const volumeProperties = actor.getProperties(); - const firstValidInput = model.currentValidInputs[0]; - const firstVolumeProperty = volumeProperties[firstValidInput.inputIndex]; - const numberOfComponents = model.numberOfComponents; - const useIndependentComps = model.useIndependentComponents; - const numIComps = useIndependentComps ? numberOfComponents : 1; - - // rebuild opacity tfun? - const opacityFunctions = []; - for (let component = 0; component < numIComps; ++component) { - opacityFunctions.push(firstVolumeProperty.getScalarOpacity(component)); - } - const opacityFuncHash = getTransferFunctionsHash(opacityFunctions, useIndependentComps, numIComps); - const firstScalarOpacityFunc = firstVolumeProperty.getScalarOpacity(); - const opTex = model._openGLRenderWindow.getGraphicsResourceForObject(firstScalarOpacityFunc); - const reBuildOp = !opTex?.oglObject?.getHandle() || opTex.hash !== opacityFuncHash; - if (reBuildOp) { - const newOpacityTexture = vtkOpenGLTexture.newInstance(); - newOpacityTexture.setOpenGLRenderWindow(model._openGLRenderWindow); - let oWidth = model.renderable.getOpacityTextureWidth(); - if (oWidth <= 0) { - oWidth = model.context.getParameter(model.context.MAX_TEXTURE_SIZE); - } - const oSize = oWidth * 2 * numIComps; - const ofTable = new Float32Array(oSize); - const tmpTable = new Float32Array(oWidth); - for (let c = 0; c < numIComps; ++c) { - const ofun = firstVolumeProperty.getScalarOpacity(c); - const opacityFactor = publicAPI.getCurrentSampleDistance(ren) / firstVolumeProperty.getScalarOpacityUnitDistance(c); - const oRange = ofun.getRange(); - ofun.getTable(oRange[0], oRange[1], oWidth, tmpTable, 1); - // adjust for sample distance etc - for (let i = 0; i < oWidth; ++i) { - ofTable[c * oWidth * 2 + i] = 1.0 - (1.0 - tmpTable[i]) ** opacityFactor; - ofTable[c * oWidth * 2 + i + oWidth] = ofTable[c * oWidth * 2 + i]; - } - } - newOpacityTexture.resetFormatAndType(); - newOpacityTexture.setMinificationFilter(Filter.LINEAR); - newOpacityTexture.setMagnificationFilter(Filter.LINEAR); - - // use float texture where possible because we really need the resolution - // for this table. Errors in low values of opacity accumulate to - // visible artifacts. High values of opacity quickly terminate without - // artifacts. - if (model._openGLRenderWindow.getWebgl2() || model.context.getExtension('OES_texture_float') && model.context.getExtension('OES_texture_float_linear')) { - newOpacityTexture.create2DFromRaw({ - width: oWidth, - height: 2 * numIComps, - numComps: 1, - dataType: VtkDataTypes.FLOAT, - data: ofTable - }); - } else { - const oTable = new Uint8ClampedArray(oSize); - for (let i = 0; i < oSize; ++i) { - oTable[i] = 255.0 * ofTable[i]; - } - newOpacityTexture.create2DFromRaw({ - width: oWidth, - height: 2 * numIComps, - numComps: 1, - dataType: VtkDataTypes.UNSIGNED_CHAR, - data: oTable - }); - } - if (firstScalarOpacityFunc) { - model._openGLRenderWindow.setGraphicsResourceForObject(firstScalarOpacityFunc, newOpacityTexture, opacityFuncHash); - } - model.opacityTexture = newOpacityTexture; - } else { - model.opacityTexture = opTex.oglObject; - } - replaceGraphicsResource(model._openGLRenderWindow, model._opacityTextureCore, firstScalarOpacityFunc); - model._opacityTextureCore = firstScalarOpacityFunc; - - // rebuild color tfun? - const colorTransferFunctions = []; - for (let component = 0; component < numIComps; ++component) { - colorTransferFunctions.push(firstVolumeProperty.getRGBTransferFunction(component)); - } - const colorFuncHash = getTransferFunctionsHash(colorTransferFunctions, useIndependentComps, numIComps); - const firstColorTransferFunc = firstVolumeProperty.getRGBTransferFunction(); - const cTex = model._openGLRenderWindow.getGraphicsResourceForObject(firstColorTransferFunc); - const reBuildC = !cTex?.oglObject?.getHandle() || cTex?.hash !== colorFuncHash; - if (reBuildC) { - const newColorTexture = vtkOpenGLTexture.newInstance(); - newColorTexture.setOpenGLRenderWindow(model._openGLRenderWindow); - let cWidth = model.renderable.getColorTextureWidth(); - if (cWidth <= 0) { - cWidth = model.context.getParameter(model.context.MAX_TEXTURE_SIZE); - } - const cSize = cWidth * 2 * numIComps * 3; - const cTable = new Uint8ClampedArray(cSize); - const tmpTable = new Float32Array(cWidth * 3); - for (let c = 0; c < numIComps; ++c) { - const cfun = firstVolumeProperty.getRGBTransferFunction(c); - const cRange = cfun.getRange(); - cfun.getTable(cRange[0], cRange[1], cWidth, tmpTable, 1); - for (let i = 0; i < cWidth * 3; ++i) { - cTable[c * cWidth * 6 + i] = 255.0 * tmpTable[i]; - cTable[c * cWidth * 6 + i + cWidth * 3] = 255.0 * tmpTable[i]; - } - } - newColorTexture.resetFormatAndType(); - newColorTexture.setMinificationFilter(Filter.LINEAR); - newColorTexture.setMagnificationFilter(Filter.LINEAR); - newColorTexture.create2DFromRaw({ - width: cWidth, - height: 2 * numIComps, - numComps: 3, - dataType: VtkDataTypes.UNSIGNED_CHAR, - data: cTable - }); - model._openGLRenderWindow.setGraphicsResourceForObject(firstColorTransferFunc, newColorTexture, colorFuncHash); - model.colorTexture = newColorTexture; - } else { - model.colorTexture = cTex.oglObject; - } - replaceGraphicsResource(model._openGLRenderWindow, model._colorTextureCore, firstColorTransferFunc); - model._colorTextureCore = firstColorTransferFunc; - - // rebuild scalarTextures? - model.currentValidInputs.forEach((_ref3, component) => { - let { - imageData, - inputIndex - } = _ref3; - // rebuild the scalarTexture if the data has changed - const volumeProperty = volumeProperties[inputIndex]; - const scalars = imageData.getPointData().getScalars(); - const tex = model._openGLRenderWindow.getGraphicsResourceForObject(scalars); - const scalarsHash = getImageDataHash(imageData, scalars); - const reBuildTex = !tex?.oglObject?.getHandle() || tex?.hash !== scalarsHash; - const updatedExtents = volumeProperty.getUpdatedExtents(); - const hasUpdatedExtents = !!updatedExtents.length; - if (reBuildTex && !hasUpdatedExtents) { - const newScalarTexture = vtkOpenGLTexture.newInstance(); - newScalarTexture.setOpenGLRenderWindow(model._openGLRenderWindow); - // Build the textures - const dims = imageData.getDimensions(); - // Use norm16 for scalar texture if the extension is available - newScalarTexture.setOglNorm16Ext(model.context.getExtension('EXT_texture_norm16')); - newScalarTexture.resetFormatAndType(); - newScalarTexture.create3DFilterableFromDataArray({ - width: dims[0], - height: dims[1], - depth: dims[2], - dataArray: scalars, - preferSizeOverAccuracy: volumeProperty.getPreferSizeOverAccuracy() - }); - model._openGLRenderWindow.setGraphicsResourceForObject(scalars, newScalarTexture, scalarsHash); - model.scalarTextures[component] = newScalarTexture; - } else { - model.scalarTextures[component] = tex.oglObject; - } - if (hasUpdatedExtents) { - // If hasUpdatedExtents, then the texture is partially updated. - // clear the array to acknowledge the update. - volumeProperty.setUpdatedExtents([]); - const dims = imageData.getDimensions(); - model.scalarTextures[component].create3DFilterableFromDataArray({ - width: dims[0], - height: dims[1], - depth: dims[2], - dataArray: scalars, - updatedExtents - }); - } - replaceGraphicsResource(model._openGLRenderWindow, model._scalarTexturesCore[component], scalars); - model._scalarTexturesCore[component] = scalars; - }); - - // rebuild label outline thickness texture? - const labelOutlineThicknessArray = firstVolumeProperty.getLabelOutlineThickness(); - const lTex = model._openGLRenderWindow.getGraphicsResourceForObject(labelOutlineThicknessArray); - const labelOutlineThicknessHash = labelOutlineThicknessArray.join('-'); - const reBuildL = !lTex?.oglObject?.getHandle() || lTex?.hash !== labelOutlineThicknessHash; - if (reBuildL) { - const newLabelOutlineThicknessTexture = vtkOpenGLTexture.newInstance(); - newLabelOutlineThicknessTexture.setOpenGLRenderWindow(model._openGLRenderWindow); - let lWidth = model.renderable.getLabelOutlineTextureWidth(); - if (lWidth <= 0) { - lWidth = model.context.getParameter(model.context.MAX_TEXTURE_SIZE); - } - const lHeight = 1; - const lSize = lWidth * lHeight; - const lTable = new Uint8Array(lSize); - - // Assuming labelOutlineThicknessArray contains the thickness for each segment - for (let i = 0; i < lWidth; ++i) { - // Retrieve the thickness value for the current segment index. - // If the value is undefined, use the first element's value as a default, otherwise use the value (even if 0) - const thickness = typeof labelOutlineThicknessArray[i] !== 'undefined' ? labelOutlineThicknessArray[i] : labelOutlineThicknessArray[0]; - lTable[i] = thickness; - } - newLabelOutlineThicknessTexture.resetFormatAndType(); - newLabelOutlineThicknessTexture.setMinificationFilter(Filter.NEAREST); - newLabelOutlineThicknessTexture.setMagnificationFilter(Filter.NEAREST); - - // Create a 2D texture (acting as 1D) from the raw data - newLabelOutlineThicknessTexture.create2DFromRaw({ - width: lWidth, - height: lHeight, - numComps: 1, - dataType: VtkDataTypes.UNSIGNED_CHAR, - data: lTable - }); - if (labelOutlineThicknessArray) { - model._openGLRenderWindow.setGraphicsResourceForObject(labelOutlineThicknessArray, newLabelOutlineThicknessTexture, labelOutlineThicknessHash); - } - model.labelOutlineThicknessTexture = newLabelOutlineThicknessTexture; - } else { - model.labelOutlineThicknessTexture = lTex.oglObject; - } - replaceGraphicsResource(model._openGLRenderWindow, model._labelOutlineThicknessTextureCore, labelOutlineThicknessArray); - model._labelOutlineThicknessTextureCore = labelOutlineThicknessArray; - - // rebuild the CABO? - if (!model.tris.getCABO().getElementCount()) { - const ptsArray = new Float32Array(12); - for (let i = 0; i < 4; i++) { - ptsArray[i * 3] = i % 2 * 2 - 1.0; - ptsArray[i * 3 + 1] = i > 1 ? 1.0 : -1.0; - ptsArray[i * 3 + 2] = -1.0; - } - const cellArray = new Uint16Array(8); - cellArray[0] = 3; - cellArray[1] = 0; - cellArray[2] = 1; - cellArray[3] = 3; - cellArray[4] = 3; - cellArray[5] = 0; - cellArray[6] = 3; - cellArray[7] = 2; - const points = vtkDataArray.newInstance({ - numberOfComponents: 3, - values: ptsArray - }); - points.setName('points'); - const cells = vtkDataArray.newInstance({ - numberOfComponents: 1, - values: cellArray - }); - model.tris.getCABO().createVBO(cells, 'polys', Representation.SURFACE, { - points, - cellOffset: 0 - }); - } - model.VBOBuildTime.modified(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - context: null, - VBOBuildTime: null, - scalarTextures: [], - _scalarTexturesCore: [], - opacityTexture: null, - _opacityTextureCore: null, - colorTexture: null, - _colorTextureCore: null, - labelOutlineThicknessTexture: null, - _labelOutlineThicknessTextureCore: null, - jitterTexture: null, - tris: null, - framebuffer: null, - copyShader: null, - copyVAO: null, - lastXYF: 1.0, - targetXYF: 1.0, - zBufferTexture: null, - lastZBufferTexture: null, - fullViewportTime: 1.0, - idxToView: null, - vecISToVCMatrix: null, - modelToView: null, - projectionToView: null, - avgWindowArea: 0.0, - avgFrameTime: 0.0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - vtkReplacementShaderMapper.implementBuildShadersWithReplacements(publicAPI, model, initialValues); - model.VBOBuildTime = {}; - obj(model.VBOBuildTime, { - mtime: 0 - }); - model.tris = vtkHelper.newInstance(); - model.jitterTexture = vtkOpenGLTexture.newInstance(); - model.jitterTexture.setWrapS(Wrap.REPEAT); - model.jitterTexture.setWrapT(Wrap.REPEAT); - model.framebuffer = vtkOpenGLFramebuffer.newInstance(); - - // Build VTK API - setGet(publicAPI, model, ['context']); - - // Object methods - vtkOpenGLVolumeMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkOpenGLVolumeMapper'); - -// ---------------------------------------------------------------------------- - -var vtkVolumeMapper = { - newInstance, - extend -}; - -// Register ourself to OpenGL backend if imported -registerOverride('vtkVolumeMapper', newInstance); - -export { vtkVolumeMapper as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkImageResliceMapperFS.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkImageResliceMapperFS.glsl.js deleted file mode 100644 index 07f7e43e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkImageResliceMapperFS.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkImageResliceMapperFS = "//VTK::System::Dec\n\n/*=========================================================================\n\n Program: Visualization Toolkit\n Module: vtkImageResliceMapperFS.glsl\n\n Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n All rights reserved.\n See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n\n This software is distributed WITHOUT ANY WARRANTY; without even\n the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n PURPOSE. See the above copyright notice for more information.\n\n=========================================================================*/\n// Template for the gpu image mapper fragment shader\n\n// VC position of this fragment\n//VTK::PositionVC::Dec\n\n// Texture coordinates\n//VTK::TCoord::Dec\n\n// picking support\n//VTK::Picking::Dec\n\n// handle coincident offsets\n//VTK::Coincident::Dec\n\n//VTK::ZBuffer::Dec\n\n// the output of this shader\n//VTK::Output::Dec\n\nvoid main()\n{\n // VC position of this fragment. This should not branch/return/discard.\n //VTK::PositionVC::Impl\n\n // Place any calls that require uniform flow (e.g. dFdx) here.\n //VTK::UniformFlow::Impl\n\n // Set gl_FragDepth here (gl_FragCoord.z by default)\n //VTK::Depth::Impl\n\n // Early depth peeling abort:\n //VTK::DepthPeeling::PreColor\n\n //VTK::TCoord::Impl\n\n if (gl_FragData[0].a <= 0.0)\n {\n discard;\n }\n\n //VTK::DepthPeeling::Impl\n\n //VTK::Picking::Impl\n\n // handle coincident offsets\n //VTK::Coincident::Impl\n\n //VTK::ZBuffer::Impl\n\n //VTK::RenderPassFragmentShader::Impl\n}\n"; - -export { vtkImageResliceMapperFS as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkImageResliceMapperVS.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkImageResliceMapperVS.glsl.js deleted file mode 100644 index 4ed1b775..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkImageResliceMapperVS.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkImageResliceMapperVS = "//VTK::System::Dec\n\n/*=========================================================================\n\n Program: Visualization Toolkit\n Module: vtkImageResliceMapperVS.glsl\n\n Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n All rights reserved.\n See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n\n This software is distributed WITHOUT ANY WARRANTY; without even\n the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n PURPOSE. See the above copyright notice for more information.\n\n=========================================================================*/\n\n// all variables that represent positions or directions have a suffix\n// indicating the coordinate system they are in. The possible values are\n// MC - Model coordinates\n// WC - World coordinates\n// VC - View coordinates\n// DC - Display coordinates\n// TC - Texture coordinates\n\n// frag position in VC\n//VTK::PositionVC::Dec\n\n// Texture coordinates\n//VTK::TCoord::Dec\n\n// picking support\n//VTK::Picking::Dec\n\n// camera and actor matrix values\n//VTK::Camera::Dec\n\nvoid main()\n{\n //VTK::PositionVC::Impl\n\n //VTK::TCoord::Impl\n\n //VTK::Picking::Impl\n}\n"; - -export { vtkImageResliceMapperVS as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkPolyData2DFS.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkPolyData2DFS.glsl.js deleted file mode 100644 index e4ab8dad..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkPolyData2DFS.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkPolyData2DFS = "//VTK::System::Dec\n\n/*=========================================================================\n\n Program: Visualization Toolkit\n Module: vtkPolyData2DFS.glsl\n\n Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n All rights reserved.\n See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n\n This software is distributed WITHOUT ANY WARRANTY; without even\n the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n PURPOSE. See the above copyright notice for more information.\n\n=========================================================================*/\n\nuniform int PrimitiveIDOffset;\n\n// Texture coordinates\n//VTK::TCoord::Dec\n\n// Scalar coloring\n//VTK::Color::Dec\n\n// Depth Peeling\n//VTK::DepthPeeling::Dec\n\n// picking support\n//VTK::Picking::Dec\n\n// the output of this shader\n//VTK::Output::Dec\n\n// Apple Bug\n//VTK::PrimID::Dec\n\nvoid main()\n{\n // Apple Bug\n //VTK::PrimID::Impl\n\n //VTK::Color::Impl\n //VTK::TCoord::Impl\n\n //VTK::DepthPeeling::Impl\n //VTK::Picking::Impl\n\n if (gl_FragData[0].a <= 0.0)\n {\n discard;\n }\n}\n"; - -export { vtkPolyData2DFS as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkPolyData2DVS.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkPolyData2DVS.glsl.js deleted file mode 100644 index 88731c3a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkPolyData2DVS.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkPolyData2DVS = "//VTK::System::Dec\n\n/*=========================================================================\n\n Program: Visualization Toolkit\n Module: vtkPolyData2DVS.glsl\n\n Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n All rights reserved.\n See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n\n This software is distributed WITHOUT ANY WARRANTY; without even\n the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n PURPOSE. See the above copyright notice for more information.\n\n=========================================================================*/\n\n// all variables that represent positions or directions have a suffix\n// indicating the coordinate system they are in. The possible values are\n// MC - Model Coordinates\n// WC - WC world coordinates\n// VC - View Coordinates\n// DC - Display Coordinates\n\nin vec4 vertexWC;\n\n// frag position in VC\n//VTK::PositionVC::Dec\n\n// material property values\n//VTK::Color::Dec\n\n// Texture coordinates\n//VTK::TCoord::Dec\n\n// Apple Bug\n//VTK::PrimID::Dec\n\nuniform mat4 WCVCMatrix; // World to view matrix\n\nvoid main()\n{\n // Apple Bug\n //VTK::PrimID::Impl\n\n gl_Position = WCVCMatrix*vertexWC;\n\n //VTK::TCoord::Impl\n\n //VTK::Color::Impl\n\n //VTK::PositionVC::Impl\n}\n"; - -export { vtkPolyData2DVS as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkPolyDataFS.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkPolyDataFS.glsl.js deleted file mode 100644 index 4e8be9dc..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkPolyDataFS.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkPolyDataFS = "//VTK::System::Dec\n\n/*=========================================================================\n\n Program: Visualization Toolkit\n Module: vtkPolyDataFS.glsl\n\n Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n All rights reserved.\n See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n\n This software is distributed WITHOUT ANY WARRANTY; without even\n the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n PURPOSE. See the above copyright notice for more information.\n\n=========================================================================*/\n// Template for the polydata mappers fragment shader\n\nuniform int PrimitiveIDOffset;\n\n// VC position of this fragment\n//VTK::PositionVC::Dec\n\n// optional color passed in from the vertex shader, vertexColor\n//VTK::Color::Dec\n\n// optional surface normal declaration\n//VTK::Normal::Dec\n\n// extra lighting parameters\n//VTK::Light::Dec\n\n// define vtkImageLabelOutlineOn\n//VTK::ImageLabelOutlineOn\n\n// Texture coordinates\n//VTK::TCoord::Dec\n\n// picking support\n//VTK::Picking::Dec\n\n// Depth Peeling Support\n//VTK::DepthPeeling::Dec\n\n// clipping plane vars\n//VTK::Clip::Dec\n\n// label outline \n//VTK::LabelOutline::Dec\n\n// the output of this shader\n//VTK::Output::Dec\n\n// Apple Bug\n//VTK::PrimID::Dec\n\n// handle coincident offsets\n//VTK::Coincident::Dec\n\n//VTK::ZBuffer::Dec\n\n//VTK::LabelOutlineHelperFunction\n\nvoid main()\n{\n // VC position of this fragment. This should not branch/return/discard.\n //VTK::PositionVC::Impl\n\n // Place any calls that require uniform flow (e.g. dFdx) here.\n //VTK::UniformFlow::Impl\n\n // Set gl_FragDepth here (gl_FragCoord.z by default)\n //VTK::Depth::Impl\n\n // Early depth peeling abort:\n //VTK::DepthPeeling::PreColor\n\n // Apple Bug\n //VTK::PrimID::Impl\n\n //VTK::Clip::Impl\n\n //VTK::Color::Impl\n\n // Generate the normal if we are not passed in one\n //VTK::Normal::Impl\n\n //VTK::TCoord::Impl\n\n //VTK::Light::Impl\n\n if (gl_FragData[0].a <= 0.0)\n {\n discard;\n }\n\n //VTK::DepthPeeling::Impl\n\n //VTK::Picking::Impl\n\n // handle coincident offsets\n //VTK::Coincident::Impl\n\n //VTK::ZBuffer::Impl\n\n //VTK::RenderPassFragmentShader::Impl\n}\n"; - -export { vtkPolyDataFS as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkPolyDataVS.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkPolyDataVS.glsl.js deleted file mode 100644 index c3c49c32..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkPolyDataVS.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkPolyDataVS = "//VTK::System::Dec\n\n/*=========================================================================\n\n Program: Visualization Toolkit\n Module: vtkPolyDataVS.glsl\n\n Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n All rights reserved.\n See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n\n This software is distributed WITHOUT ANY WARRANTY; without even\n the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n PURPOSE. See the above copyright notice for more information.\n\n=========================================================================*/\n\nattribute vec4 vertexMC;\n\n// frag position in VC\n//VTK::PositionVC::Dec\n\n// optional normal declaration\n//VTK::Normal::Dec\n\n// extra lighting parameters\n//VTK::Light::Dec\n\n// Texture coordinates\n//VTK::TCoord::Dec\n\n// material property values\n//VTK::Color::Dec\n\n// clipping plane vars\n//VTK::Clip::Dec\n\n// camera and actor matrix values\n//VTK::Camera::Dec\n\n// Apple Bug\n//VTK::PrimID::Dec\n\n// picking support\n//VTK::Picking::Dec\n\nvoid main()\n{\n //VTK::Color::Impl\n\n //VTK::Normal::Impl\n\n //VTK::TCoord::Impl\n\n //VTK::Clip::Impl\n\n //VTK::PrimID::Impl\n\n //VTK::PositionVC::Impl\n\n //VTK::Light::Impl\n\n //VTK::Picking::Impl\n}\n"; - -export { vtkPolyDataVS as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkSphereMapperVS.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkSphereMapperVS.glsl.js deleted file mode 100644 index 265d0fdc..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkSphereMapperVS.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkSphereMapperVS = "//VTK::System::Dec\n\n/*=========================================================================\n\n Program: Visualization Toolkit\n Module: vtkSphereMapperVS.glsl\n\n Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n All rights reserved.\n See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n\n This software is distributed WITHOUT ANY WARRANTY; without even\n the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n PURPOSE. See the above copyright notice for more information.\n\n=========================================================================*/\n// this shader implements imposters in OpenGL for Spheres\n\nattribute vec4 vertexMC;\nattribute vec2 offsetMC;\n\n// optional normal declaration\n//VTK::Normal::Dec\n\n//VTK::Picking::Dec\n\n// Texture coordinates\n//VTK::TCoord::Dec\n\nuniform mat3 normalMatrix; // transform model coordinate directions to view coordinates\n\n// material property values\n//VTK::Color::Dec\n\n// clipping plane vars\n//VTK::Clip::Dec\n\n// camera and actor matrix values\n//VTK::Camera::Dec\n\nvarying vec4 vertexVCVSOutput;\nvarying float radiusVCVSOutput;\nvarying vec3 centerVCVSOutput;\n\nuniform int cameraParallel;\nuniform float scaleFactor;\n\nvoid main()\n{\n //VTK::Picking::Impl\n\n //VTK::Color::Impl\n\n //VTK::Normal::Impl\n\n //VTK::TCoord::Impl\n\n //VTK::Clip::Impl\n\n // compute the projected vertex position\n vec2 scaledOffsetMC = scaleFactor * offsetMC;\n vertexVCVSOutput = MCVCMatrix * vertexMC;\n centerVCVSOutput = vertexVCVSOutput.xyz;\n radiusVCVSOutput = length(scaledOffsetMC)*0.5;\n\n // make the triangle face the camera\n if (cameraParallel == 0)\n {\n vec3 dir = normalize(-vertexVCVSOutput.xyz);\n vec3 base2 = normalize(cross(dir,vec3(1.0,0.0,0.0)));\n vec3 base1 = cross(base2,dir);\n vertexVCVSOutput.xyz = vertexVCVSOutput.xyz + scaledOffsetMC.x*base1 + scaledOffsetMC.y*base2;\n }\n else\n {\n // add in the offset\n vertexVCVSOutput.xy = vertexVCVSOutput.xy + scaledOffsetMC;\n }\n\n gl_Position = VCPCMatrix * vertexVCVSOutput;\n}\n"; - -export { vtkSphereMapperVS as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkStickMapperVS.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkStickMapperVS.glsl.js deleted file mode 100644 index c1d283fd..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkStickMapperVS.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkStickMapperVS = "//VTK::System::Dec\n\n/*=========================================================================\n\n Program: Visualization Toolkit\n Module: vtkStickMapperVS.glsl\n\n Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n All rights reserved.\n See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n\n This software is distributed WITHOUT ANY WARRANTY; without even\n the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n PURPOSE. See the above copyright notice for more information.\n\n=========================================================================*/\n// this shader implements imposters in OpenGL for Sticks\n\nattribute vec4 vertexMC;\nattribute vec3 orientMC;\nattribute vec4 offsetMC;\nattribute float radiusMC;\n\n// optional normal declaration\n//VTK::Normal::Dec\n\n//VTK::Picking::Dec\n\n// Texture coordinates\n//VTK::TCoord::Dec\n\nuniform mat3 normalMatrix; // transform model coordinate directions to view coordinates\n\n// material property values\n//VTK::Color::Dec\n\n// clipping plane vars\n//VTK::Clip::Dec\n\n// camera and actor matrix values\n//VTK::Camera::Dec\n\nvarying vec4 vertexVCVSOutput;\nvarying float radiusVCVSOutput;\nvarying float lengthVCVSOutput;\nvarying vec3 centerVCVSOutput;\nvarying vec3 orientVCVSOutput;\n\nuniform int cameraParallel;\n\nvoid main()\n{\n //VTK::Picking::Impl\n\n //VTK::Color::Impl\n\n //VTK::Normal::Impl\n\n //VTK::TCoord::Impl\n\n //VTK::Clip::Impl\n\n vertexVCVSOutput = MCVCMatrix * vertexMC;\n centerVCVSOutput = vertexVCVSOutput.xyz;\n radiusVCVSOutput = radiusMC;\n lengthVCVSOutput = length(orientMC);\n orientVCVSOutput = normalMatrix * normalize(orientMC);\n\n // make sure it is pointing out of the screen\n if (orientVCVSOutput.z < 0.0)\n {\n orientVCVSOutput = -orientVCVSOutput;\n }\n\n // make the basis\n vec3 xbase;\n vec3 ybase;\n vec3 dir = vec3(0.0,0.0,1.0);\n if (cameraParallel == 0)\n {\n dir = normalize(-vertexVCVSOutput.xyz);\n }\n if (abs(dot(dir,orientVCVSOutput)) == 1.0)\n {\n xbase = normalize(cross(vec3(0.0,1.0,0.0),orientVCVSOutput));\n ybase = cross(xbase,orientVCVSOutput);\n }\n else\n {\n xbase = normalize(cross(orientVCVSOutput,dir));\n ybase = cross(orientVCVSOutput,xbase);\n }\n\n vec3 offsets = offsetMC.xyz*2.0-1.0;\n vertexVCVSOutput.xyz = vertexVCVSOutput.xyz +\n radiusVCVSOutput*offsets.x*xbase +\n radiusVCVSOutput*offsets.y*ybase +\n 0.5*lengthVCVSOutput*offsets.z*orientVCVSOutput;\n\n gl_Position = VCPCMatrix * vertexVCVSOutput;\n}\n"; - -export { vtkStickMapperVS as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkVolumeFS.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkVolumeFS.glsl.js deleted file mode 100644 index 56890458..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkVolumeFS.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkVolumeFS = "//VTK::System::Dec\n\n/*=========================================================================\n\n Program: Visualization Toolkit\n Module: vtkVolumeFS.glsl\n\n Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n All rights reserved.\n See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n\n This software is distributed WITHOUT ANY WARRANTY; without even\n the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n PURPOSE. See the above copyright notice for more information.\n\n=========================================================================*/\n// Template for the volume mappers fragment shader\n\nconst float infinity = 3.402823466e38;\n\n// the output of this shader\n//VTK::Output::Dec\n\nin vec3 vertexVCVSOutput;\n\n// From Sources\\Rendering\\Core\\VolumeProperty\\Constants.js\n#define COMPOSITE_BLEND 0\n#define MAXIMUM_INTENSITY_BLEND 1\n#define MINIMUM_INTENSITY_BLEND 2\n#define AVERAGE_INTENSITY_BLEND 3\n#define ADDITIVE_INTENSITY_BLEND 4\n#define RADON_TRANSFORM_BLEND 5\n#define LABELMAP_EDGE_PROJECTION_BLEND 6\n\n#define vtkNumberOfLights //VTK::NumberOfLights\n#define vtkMaxLaoKernelSize //VTK::MaxLaoKernelSize\n#define vtkNumberOfComponents //VTK::NumberOfComponents\n#define vtkBlendMode //VTK::BlendMode\n#define vtkMaximumNumberOfSamples //VTK::MaximumNumberOfSamples\n\n//VTK::EnabledColorFunctions\n\n//VTK::EnabledLightings\n\n//VTK::EnabledMultiTexturePerVolume\n\n//VTK::EnabledGradientOpacity\n\n//VTK::EnabledIndependentComponents\n\n//VTK::vtkProportionalComponents\n\n//VTK::vtkForceNearestComponents\n\nuniform int twoSidedLighting;\n\n#if vtkMaxLaoKernelSize > 0\n vec2 kernelSample[vtkMaxLaoKernelSize];\n#endif\n\n// Textures\n#ifdef EnabledMultiTexturePerVolume\n #define vtkNumberOfVolumeTextures vtkNumberOfComponents\n#else\n #define vtkNumberOfVolumeTextures 1\n#endif\nuniform highp sampler3D volumeTexture[vtkNumberOfVolumeTextures];\nuniform sampler2D colorTexture;\nuniform sampler2D opacityTexture;\nuniform sampler2D jtexture;\nuniform sampler2D labelOutlineThicknessTexture;\n\nstruct Volume {\n // ---- Volume geometry settings ----\n\n vec3 originVC; // in VC\n vec3 spacing; // in VC per IC\n vec3 inverseSpacing; // 1/spacing\n ivec3 dimensions; // in IC\n vec3 inverseDimensions; // 1/vec3(dimensions)\n mat3 vecISToVCMatrix; // convert from IS to VC without translation\n mat3 vecVCToISMatrix; // convert from VC to IS without translation\n mat4 PCWCMatrix;\n mat4 worldToIndex;\n float diagonalLength; // in VC, this is: length(size)\n\n // ---- Texture settings ----\n\n // Texture shift and scale\n vec4 colorTextureScale;\n vec4 colorTextureShift;\n vec4 opacityTextureScale;\n vec4 opacityTextureShift;\n\n // The heights defined below are the locations for the up to four components\n // of the transfer functions. The transfer functions have a height of (2 *\n // numberOfComponents) pixels so the values are computed to hit the middle of\n // the two rows for that component\n vec4 transferFunctionsSampleHeight;\n\n // ---- Mode specific settings ----\n\n // Independent component default preset settings per component\n vec4 independentComponentMix;\n\n // Additive / average blending mode settings\n vec4 ipScalarRangeMin;\n vec4 ipScalarRangeMax;\n\n // ---- Rendering settings ----\n\n // Lighting\n float ambient;\n float diffuse;\n float specular;\n float specularPower;\n int computeNormalFromOpacity;\n\n // Gradient opacity\n vec4 gradientOpacityScale;\n vec4 gradientOpacityShift;\n vec4 gradientOpacityMin;\n vec4 gradientOpacityMax;\n\n // Volume shadow\n float volumetricScatteringBlending;\n float globalIlluminationReach;\n float anisotropy;\n float anisotropySquared;\n\n // LAO\n int kernelSize;\n int kernelRadius;\n\n // Label outline\n float outlineOpacity;\n};\nuniform Volume volume;\n\nstruct Light {\n vec3 color;\n vec3 positionVC;\n vec3 directionVC; // normalized\n vec3 halfAngleVC;\n vec3 attenuation;\n float exponent;\n float coneAngle;\n int isPositional;\n};\n#if vtkNumberOfLights > 0\n uniform Light lights[vtkNumberOfLights];\n#endif\n\nuniform float vpWidth;\nuniform float vpHeight;\nuniform float vpOffsetX;\nuniform float vpOffsetY;\n\n// Bitmasks for label outline\nconst int MAX_SEGMENT_INDEX = 256; // Define as per expected maximum\n#define MAX_SEGMENTS 256\n#define UINT_SIZE 32\n// We add UINT_SIZE - 1, as we want the ceil of the division instead of the\n// floor\n#define BITMASK_SIZE ((MAX_SEGMENTS + UINT_SIZE - 1) / UINT_SIZE)\nuint labelOutlineBitmasks[BITMASK_SIZE];\n\n// Set the corresponding bit in the bitmask\nvoid setLabelOutlineBit(int segmentIndex) {\n int arrayIndex = segmentIndex / UINT_SIZE;\n int bitIndex = segmentIndex % UINT_SIZE;\n labelOutlineBitmasks[arrayIndex] |= 1u << bitIndex;\n}\n\n// Check if a bit is set in the bitmask\nbool isLabelOutlineBitSet(int segmentIndex) {\n int arrayIndex = segmentIndex / UINT_SIZE;\n int bitIndex = segmentIndex % UINT_SIZE;\n return ((labelOutlineBitmasks[arrayIndex] & (1u << bitIndex)) != 0u);\n}\n\n// if you want to see the raw tiled\n// data in webgl1 uncomment the following line\n// #define debugtile\n\n// camera values\nuniform float camThick;\nuniform float camNear;\nuniform float camFar;\nuniform int cameraParallel;\n\n//VTK::ClipPlane::Dec\n\n// A random number between 0 and 1 that only depends on the fragment\n// It uses the jtexture, so this random seed repeats by blocks of 32 fragments\n// in screen space\nfloat fragmentSeed;\n\n// sample texture is global\nuniform float sampleDistance;\nuniform float volumeShadowSampleDistance;\n\n// declaration for intermixed geometry\n//VTK::ZBuffer::Dec\n\n//=======================================================================\n// global and custom variables (a temporary section before photorealistics\n// rendering module is complete)\nvec3 rayDirVC;\n\n#define INV4PI 0.0796\n#define EPSILON 0.001\n#define PI 3.1415\n#define PI2 9.8696\n\nvec4 rawSampleTexture(vec3 pos) {\n #ifdef EnabledMultiTexturePerVolume\n vec4 rawSample;\n rawSample[0] = texture(volumeTexture[0], pos)[0];\n #if vtkNumberOfComponents > 1\n rawSample[1] = texture(volumeTexture[1], pos)[0];\n #endif\n #if vtkNumberOfComponents > 2\n rawSample[2] = texture(volumeTexture[2], pos)[0];\n #endif\n #if vtkNumberOfComponents > 3\n rawSample[3] = texture(volumeTexture[3], pos)[0];\n #endif\n return rawSample;\n #else\n return texture(volumeTexture[0], pos);\n #endif\n}\n\nvec4 rawFetchTexture(ivec3 pos) {\n #ifdef EnabledMultiTexturePerVolume\n vec4 rawSample;\n #if vtkNumberOfComponents > 0\n rawSample[0] = texelFetch(volumeTexture[0], pos, 0)[0];\n #endif\n #if vtkNumberOfComponents > 1\n rawSample[1] = texelFetch(volumeTexture[1], pos, 0)[0];\n #endif\n #if vtkNumberOfComponents > 2\n rawSample[2] = texelFetch(volumeTexture[2], pos, 0)[0];\n #endif\n #if vtkNumberOfComponents > 3\n rawSample[3] = texelFetch(volumeTexture[3], pos, 0)[0];\n #endif\n return rawSample;\n #else\n return texelFetch(volumeTexture[0], pos, 0);\n #endif\n}\n\nvec4 getTextureValue(vec3 pos) {\n vec4 tmp = rawSampleTexture(pos);\n\n // Force nearest\n #if defined(vtkComponent0ForceNearest) || \\\n defined(vtkComponent1ForceNearest) || \\\n defined(vtkComponent2ForceNearest) || \\\n defined(vtkComponent3ForceNearest)\n vec3 nearestPos = (floor(pos * vec3(volume.dimensions)) + 0.5) *\n volume.inverseDimensions;\n vec4 nearestValue = rawSampleTexture(nearestPos);\n #ifdef vtkComponent0ForceNearest\n tmp[0] = nearestValue[0];\n #endif\n #ifdef vtkComponent1ForceNearest\n tmp[1] = nearestValue[1];\n #endif\n #ifdef vtkComponent2ForceNearest\n tmp[2] = nearestValue[2];\n #endif\n #ifdef vtkComponent3ForceNearest\n tmp[3] = nearestValue[3];\n #endif\n #endif\n\n // Set alpha when using dependent components\n #ifndef EnabledIndependentComponents\n #if vtkNumberOfComponents == 1\n tmp.a = tmp.r;\n #endif\n #if vtkNumberOfComponents == 2\n tmp.a = tmp.g;\n #endif\n #if vtkNumberOfComponents == 3\n tmp.a = length(tmp.rgb);\n #endif\n #endif\n\n return tmp;\n}\n\n// `height` is usually `volume.transferFunctionsSampleHeight[component]`\n// when using independent component and `0.5` otherwise. Don't move the if\n// statement in these function, as the callers usually already knows if it is\n// using independent component or not\nfloat getOpacityFromTexture(float scalar, int component, float height) {\n float scaledScalar = scalar * volume.opacityTextureScale[component] +\n volume.opacityTextureShift[component];\n return texture2D(opacityTexture, vec2(scaledScalar, height)).r;\n}\nvec3 getColorFromTexture(float scalar, int component, float height) {\n float scaledScalar = scalar * volume.colorTextureScale[component] +\n volume.colorTextureShift[component];\n return texture2D(colorTexture, vec2(scaledScalar, height)).rgb;\n}\n\n//=======================================================================\n// transformation between VC and IS space\n\n// convert vector position from idx to vc\nvec3 posIStoVC(vec3 posIS) {\n return volume.vecISToVCMatrix * posIS + volume.originVC;\n}\n\n// convert vector position from vc to idx\nvec3 posVCtoIS(vec3 posVC) {\n return volume.vecVCToISMatrix * (posVC - volume.originVC);\n}\n\n// Rotate vector to view coordinate\nvec3 vecISToVC(vec3 dirIS) {\n return volume.vecISToVCMatrix * dirIS;\n}\n\n// Rotate vector to idx coordinate\nvec3 vecVCToIS(vec3 dirVC) {\n return volume.vecVCToISMatrix * dirVC;\n}\n\n//=======================================================================\n// Given a normal compute the gradient opacity factors\nfloat computeGradientOpacityFactor(float normalMag, int component) {\n float goscale = volume.gradientOpacityScale[component];\n float goshift = volume.gradientOpacityShift[component];\n float gomin = volume.gradientOpacityMin[component];\n float gomax = volume.gradientOpacityMax[component];\n return clamp(normalMag * goscale + goshift, gomin, gomax);\n}\n\n#ifdef vtkClippingPlanesOn\n bool isPointClipped(vec3 posVC) {\n for (int i = 0; i < clip_numPlanes; ++i) {\n if (dot(vec3(vClipPlaneOrigins[i] - posVC), vClipPlaneNormals[i]) > 0.0) {\n return true;\n }\n }\n return false;\n }\n#endif\n\n//=======================================================================\n// compute the normal and gradient magnitude for a position, uses forward\n// difference\n\n// The output normal is in VC\nvec4 computeDensityNormal(vec3 opacityUCoords[2], float opacityTextureHeight,\n float gradientOpacity, int component) {\n // Pass the scalars through the opacity functions\n vec4 opacityG;\n opacityG.x += getOpacityFromTexture(opacityUCoords[0].x, component,\n opacityTextureHeight);\n opacityG.y += getOpacityFromTexture(opacityUCoords[0].y, component,\n opacityTextureHeight);\n opacityG.z += getOpacityFromTexture(opacityUCoords[0].z, component,\n opacityTextureHeight);\n opacityG.x -= getOpacityFromTexture(opacityUCoords[1].x, component,\n opacityTextureHeight);\n opacityG.y -= getOpacityFromTexture(opacityUCoords[1].y, component,\n opacityTextureHeight);\n opacityG.z -= getOpacityFromTexture(opacityUCoords[1].z, component,\n opacityTextureHeight);\n\n // Divide by spacing and convert to VC\n opacityG.xyz *= gradientOpacity * volume.inverseSpacing;\n opacityG.w = length(opacityG.xyz);\n if (opacityG.w == 0.0) {\n return vec4(0.0);\n }\n\n // Normalize\n opacityG.xyz = normalize(vecISToVC(opacityG.xyz));\n\n return opacityG;\n}\n\n// The output normal is in VC\nvec4 computeNormalForDensity(vec3 posIS, out vec3 scalarInterp[2],\n const int opacityComponent) {\n vec3 offsetedPosIS;\n for (int axis = 0; axis < 3; ++axis) {\n // Positive direction\n offsetedPosIS = posIS;\n offsetedPosIS[axis] += volume.inverseDimensions[axis];\n scalarInterp[0][axis] =\n getTextureValue(offsetedPosIS)[opacityComponent];\n #ifdef vtkClippingPlanesOn\n if (isPointClipped(posIStoVC(offsetedPosIS))) {\n scalarInterp[0][axis] = 0.0;\n }\n #endif\n\n // Negative direction\n offsetedPosIS = posIS;\n offsetedPosIS[axis] -= volume.inverseDimensions[axis];\n scalarInterp[1][axis] =\n getTextureValue(offsetedPosIS)[opacityComponent];\n #ifdef vtkClippingPlanesOn\n if (isPointClipped(posIStoVC(offsetedPosIS))) {\n scalarInterp[1][axis] = 0.0;\n }\n #endif\n }\n\n vec4 result;\n result.xyz = (scalarInterp[0] - scalarInterp[1]) * volume.inverseSpacing;\n result.w = length(result.xyz);\n if (result.w == 0.0) {\n return vec4(0.0);\n }\n result.xyz = normalize(vecISToVC(result.xyz));\n return result;\n}\n\nvec4 fragCoordToPCPos(vec4 fragCoord) {\n return vec4((fragCoord.x / vpWidth - vpOffsetX - 0.5) * 2.0,\n (fragCoord.y / vpHeight - vpOffsetY - 0.5) * 2.0,\n (fragCoord.z - 0.5) * 2.0, 1.0);\n}\n\nvec4 pcPosToWorldCoord(vec4 pcPos) {\n return volume.PCWCMatrix * pcPos;\n}\n\nvec3 fragCoordToIndexSpace(vec4 fragCoord) {\n vec4 pcPos = fragCoordToPCPos(fragCoord);\n vec4 worldCoord = pcPosToWorldCoord(pcPos);\n vec4 vertex = (worldCoord / worldCoord.w);\n\n vec3 index = (volume.worldToIndex * vertex).xyz;\n\n // half voxel fix for labelmapOutline\n return (index + vec3(0.5)) * volume.inverseDimensions;\n}\n\nvec3 fragCoordToWorld(vec4 fragCoord) {\n vec4 pcPos = fragCoordToPCPos(fragCoord);\n vec4 worldCoord = pcPosToWorldCoord(pcPos);\n return worldCoord.xyz;\n}\n\n//=======================================================================\n// Compute the normals and gradient magnitudes for a position for independent\n// components The output normals are in VC\nmat4 computeMat4Normal(vec3 posIS, vec4 tValue) {\n vec3 xvec = vec3(volume.inverseDimensions.x, 0.0, 0.0);\n vec3 yvec = vec3(0.0, volume.inverseDimensions.y, 0.0);\n vec3 zvec = vec3(0.0, 0.0, volume.inverseDimensions.z);\n\n vec4 distX = getTextureValue(posIS + xvec) - getTextureValue(posIS - xvec);\n vec4 distY = getTextureValue(posIS + yvec) - getTextureValue(posIS - yvec);\n vec4 distZ = getTextureValue(posIS + zvec) - getTextureValue(posIS - zvec);\n\n // divide by spacing\n distX *= 0.5 * volume.inverseSpacing.x;\n distY *= 0.5 * volume.inverseSpacing.y;\n distZ *= 0.5 * volume.inverseSpacing.z;\n\n mat4 result;\n\n // optionally compute the 1st component\n #if vtkNumberOfComponents > 0 && !defined(vtkComponent0Proportional)\n {\n const int component = 0;\n vec3 normal = vec3(distX[component], distY[component], distZ[component]);\n float normalLength = length(normal);\n if (normalLength > 0.0) {\n normal = normalize(vecISToVC(normal));\n }\n result[component] = vec4(normal, normalLength);\n }\n #endif\n\n // optionally compute the 2nd component\n #if vtkNumberOfComponents > 1 && !defined(vtkComponent1Proportional)\n {\n const int component = 1;\n vec3 normal = vec3(distX[component], distY[component], distZ[component]);\n float normalLength = length(normal);\n if (normalLength > 0.0) {\n normal = normalize(vecISToVC(normal));\n }\n result[component] = vec4(normal, normalLength);\n }\n #endif\n\n // optionally compute the 3rd component\n #if vtkNumberOfComponents > 2 && !defined(vtkComponent2Proportional)\n {\n const int component = 2;\n vec3 normal = vec3(distX[component], distY[component], distZ[component]);\n float normalLength = length(normal);\n if (normalLength > 0.0) {\n normal = normalize(vecISToVC(normal));\n }\n result[component] = vec4(normal, normalLength);\n }\n #endif\n\n // optionally compute the 4th component\n #if vtkNumberOfComponents > 3 && !defined(vtkComponent3Proportional)\n {\n const int component = 3;\n vec3 normal = vec3(distX[component], distY[component], distZ[component]);\n float normalLength = length(normal);\n if (normalLength > 0.0) {\n normal = normalize(vecISToVC(normal));\n }\n result[component] = vec4(normal, normalLength);\n }\n #endif\n\n return result;\n}\n\n//=======================================================================\n// global shadow - secondary ray\n\n// henyey greenstein phase function\nfloat phaseFunction(float cos_angle) {\n // divide by 2.0 instead of 4pi to increase intensity\n float anisotropy = volume.anisotropy;\n if (abs(anisotropy) <= EPSILON) {\n // isotropic scatter returns 0.5 instead of 1/4pi to increase intensity\n return 0.5;\n }\n float anisotropy2 = volume.anisotropySquared;\n return ((1.0 - anisotropy2) /\n pow(1.0 + anisotropy2 - 2.0 * anisotropy * cos_angle, 1.5)) /\n 2.0;\n}\n\n// Compute the two intersection distances of the ray with the volume in VC\n// The entry point is `rayOriginVC + distanceMin * rayDirVC` and the exit point\n// is `rayOriginVC + distanceMax * rayDirVC` If distanceMin < distanceMax, the\n// volume is not intersected The ray origin is inside the box when distanceMin <\n// 0.0 < distanceMax\nvec2 rayIntersectVolumeDistances(vec3 rayOriginVC, vec3 rayDirVC) {\n // Compute origin and direction in IS\n vec3 rayOriginIS = posVCtoIS(rayOriginVC);\n vec3 rayDirIS = vecVCToIS(rayDirVC);\n // Don't check for infinity as the min/max combination afterward will always\n // find an intersection before infinity\n vec3 invDir = 1.0 / rayDirIS;\n\n // We have: bound = origin + t * dir\n // So: t = (1/dir) * (bound - origin)\n vec3 distancesTo0 = invDir * (vec3(0.0) - rayOriginIS);\n vec3 distancesTo1 = invDir * (vec3(1.0) - rayOriginIS);\n // Min and max distances to plane intersection per plane\n vec3 dMinPerAxis = min(distancesTo0, distancesTo1);\n vec3 dMaxPerAxis = max(distancesTo0, distancesTo1);\n // Overall first and last intersection\n float distanceMin = max(dMinPerAxis.x, max(dMinPerAxis.y, dMinPerAxis.z));\n float distanceMax = min(dMaxPerAxis.x, min(dMaxPerAxis.y, dMaxPerAxis.z));\n return vec2(distanceMin, distanceMax);\n}\n\n//=======================================================================\n// local ambient occlusion\n#if vtkMaxLaoKernelSize > 0\n\n // Return a random point on the unit sphere\n vec3 sampleDirectionUniform(int rayIndex) {\n // Each ray of each fragment should be different, two sources of randomness\n // are used. Only depends on ray index\n vec2 rayRandomness = kernelSample[rayIndex];\n // Only depends on fragment\n float fragmentRandomness = fragmentSeed;\n // Merge both source of randomness in a single uniform random variable using\n // the formula (x+y < 1 ? x+y : x+y-1). The simpler formula (x+y)/2 doesn't\n // result in a uniform distribution\n vec2 mergedRandom = rayRandomness + vec2(fragmentRandomness);\n mergedRandom -= vec2(greaterThanEqual(mergedRandom, vec2(1.0)));\n\n // Insipred by:\n // https://karthikkaranth.me/blog/generating-random-points-in-a-sphere/#better-choice-of-spherical-coordinates\n float u = mergedRandom[0];\n float v = mergedRandom[1];\n float theta = u * 2.0 * PI;\n float phi = acos(2.0 * v - 1.0);\n float sinTheta = sin(theta);\n float cosTheta = cos(theta);\n float sinPhi = sin(phi);\n float cosPhi = cos(phi);\n return vec3(sinPhi * cosTheta, sinPhi * sinTheta, cosPhi);\n }\n\n float computeLAO(vec3 posVC, vec4 normalVC, float originalOpacity) {\n // apply LAO only at selected locations, otherwise return full brightness\n if (normalVC.w <= 0.0 || originalOpacity <= 0.05) {\n return 1.0;\n }\n\n #ifdef EnabledGradientOpacity\n float gradientOpacityFactor = computeGradientOpacityFactor(normalVC.w, 0);\n #endif\n\n float visibilitySum = 0.0;\n float weightSum = 0.0;\n for (int i = 0; i < volume.kernelSize; i++) {\n // Only sample on an hemisphere around the normalVC.xyz axis, so\n // normalDotRay should be negative\n vec3 rayDirectionVC = sampleDirectionUniform(i);\n float normalDotRay = dot(normalVC.xyz, rayDirectionVC);\n if (normalDotRay > 0.0) {\n // Flip rayDirectionVC when it is in the wrong hemisphere\n rayDirectionVC = -rayDirectionVC;\n normalDotRay = -normalDotRay;\n }\n\n vec3 currPosIS = posVCtoIS(posVC);\n float visibility = 1.0;\n vec3 randomDirStepIS = vecVCToIS(rayDirectionVC * sampleDistance);\n for (int j = 0; j < volume.kernelRadius; j++) {\n currPosIS += randomDirStepIS;\n // If out of the volume, we are done\n if (any(lessThan(currPosIS, vec3(0.0))) ||\n any(greaterThan(currPosIS, vec3(1.0)))) {\n break;\n }\n float opacity = getOpacityFromTexture(getTextureValue(currPosIS).r, 0, 0.5);\n #ifdef EnabledGradientOpacity\n opacity *= gradientOpacityFactor;\n #endif\n visibility *= 1.0 - opacity;\n // If visibility is less than EPSILON, consider it to be 0\n if (visibility < EPSILON) {\n visibility = 0.0;\n break;\n }\n }\n float rayWeight = -normalDotRay;\n visibilitySum += visibility * rayWeight;\n weightSum += rayWeight;\n }\n\n // If no sample, LAO factor is one\n if (weightSum == 0.0) {\n return 1.0;\n }\n\n // LAO factor is the average visibility:\n // - visibility low => ambient low\n // - visibility high => ambient high\n float lao = visibilitySum / weightSum;\n\n // Reduce variance by clamping\n return clamp(lao, 0.3, 1.0);\n }\n#endif\n\n//=======================================================================\n// Volume shadows\n#if vtkNumberOfLights > 0\n\n // Non-memoised version\n float computeVolumeShadowWithoutCache(vec3 posVC, vec3 lightDirNormVC) {\n // modify sample distance with a random number between 1.5 and 3.0\n float rayStepLength =\n volumeShadowSampleDistance * mix(1.5, 3.0, fragmentSeed);\n\n // in case the first sample near surface has a very tiled light ray, we need\n // to offset start position\n vec3 initialPosVC = posVC + rayStepLength * lightDirNormVC;\n\n #ifdef vtkClippingPlanesOn\n float clippingPlanesMaxDistance = infinity;\n for (int i = 0; i < clip_numPlanes; ++i) {\n // Find distance of intersection with the plane\n // Points are clipped when:\n // dot(planeOrigin - (rayOrigin + distance * rayDirection), planeNormal) > 0\n // This is equivalent to:\n // dot(planeOrigin - rayOrigin, planeNormal) - distance * dot(rayDirection,\n // planeNormal) > 0.0\n // We precompute the dot products, so we clip ray points when:\n // dotOrigin - distance * dotDirection > 0.0\n float dotOrigin =\n dot(vClipPlaneOrigins[i] - initialPosVC, vClipPlaneNormals[i]);\n if (dotOrigin > 0.0) {\n // The initialPosVC is clipped by this plane\n return 1.0;\n }\n float dotDirection = dot(lightDirNormVC, vClipPlaneNormals[i]);\n if (dotDirection < 0.0) {\n // We only hit the plane if dotDirection is negative, as (distance is\n // positive)\n float intersectionDistance =\n dotOrigin / dotDirection; // negative divided by negative => positive\n clippingPlanesMaxDistance =\n min(clippingPlanesMaxDistance, intersectionDistance);\n }\n }\n #endif\n\n vec2 intersectionDistances =\n rayIntersectVolumeDistances(initialPosVC, lightDirNormVC);\n\n if (intersectionDistances[1] <= intersectionDistances[0] ||\n intersectionDistances[1] <= 0.0) {\n // Volume not hit or behind the ray\n return 1.0;\n }\n\n // When globalIlluminationReach is 0, no sample at all\n // When globalIlluminationReach is 1, the ray will go through the whole\n // volume\n float maxTravelDistance = mix(0.0, volume.diagonalLength,\n volume.globalIlluminationReach);\n float startDistance = max(intersectionDistances[0], 0.0);\n float endDistance = min(intersectionDistances[1], startDistance + maxTravelDistance);\n #ifdef vtkClippingPlanesOn\n endDistance = min(endDistance, clippingPlanesMaxDistance);\n #endif\n if (endDistance - startDistance < 0.0) {\n return 1.0;\n }\n\n // These two variables are used to compute posIS, without having to call\n // VCtoIS at each step\n vec3 initialPosIS = posVCtoIS(initialPosVC);\n // The light dir is scaled and rotated, but not translated, as it is a\n // vector (w = 0)\n vec3 scaledLightDirIS = vecVCToIS(lightDirNormVC);\n\n float shadow = 1.0;\n for (float currentDistance = startDistance; currentDistance <= endDistance;\n currentDistance += rayStepLength) {\n vec3 posIS = initialPosIS + currentDistance * scaledLightDirIS;\n vec4 scalar = getTextureValue(posIS);\n float opacity = getOpacityFromTexture(scalar.r, 0, 0.5);\n #if defined(EnabledGradientOpacity) && !defined(EnabledIndependentComponents)\n vec3 scalarInterp[2];\n vec4 normal = computeNormalForDensity(posIS, scalarInterp, 3);\n float opacityFactor = computeGradientOpacityFactor(normal.w, 0);\n opacity *= opacityFactor;\n #endif\n shadow *= 1.0 - opacity;\n\n // Early termination if shadow coeff is near 0.0\n if (shadow < EPSILON) {\n return 0.0;\n }\n }\n return shadow;\n }\n\n // Some cache for volume shadows\n struct {\n vec3 posVC;\n float shadow;\n } cachedShadows[vtkNumberOfLights];\n\n // Memoised version\n float computeVolumeShadow(vec3 posVC, vec3 lightDirNormVC, int lightIdx) {\n if (posVC == cachedShadows[lightIdx].posVC) {\n return cachedShadows[lightIdx].shadow;\n }\n float shadow = computeVolumeShadowWithoutCache(posVC, lightDirNormVC);\n cachedShadows[lightIdx].posVC = posVC;\n cachedShadows[lightIdx].shadow = shadow;\n return shadow;\n }\n\n#endif\n\n//=======================================================================\n// surface light contribution\n#if vtkNumberOfLights > 0\n vec3 applyLighting(vec3 tColor, vec4 normalVC) {\n vec3 diffuse = vec3(0.0, 0.0, 0.0);\n vec3 specular = vec3(0.0, 0.0, 0.0);\n for (int lightIdx = 0; lightIdx < vtkNumberOfLights; lightIdx++) {\n float df = dot(normalVC.xyz, lights[lightIdx].directionVC);\n if (df > 0.0) {\n diffuse += df * lights[lightIdx].color;\n float sf = dot(normalVC.xyz, -lights[lightIdx].halfAngleVC);\n if (sf > 0.0) {\n specular += pow(sf, volume.specularPower) * lights[lightIdx].color;\n }\n }\n }\n return tColor * (diffuse * volume.diffuse + volume.ambient) +\n specular * volume.specular;\n }\n\n vec3 applySurfaceShadowLighting(vec3 tColor, float alpha, vec3 posVC,\n vec4 normalVC) {\n // everything in VC\n vec3 diffuse = vec3(0.0);\n vec3 specular = vec3(0.0);\n for (int ligthIdx = 0; ligthIdx < vtkNumberOfLights; ligthIdx++) {\n vec3 vertLightDirection;\n float attenuation;\n if (lights[ligthIdx].isPositional == 1) {\n vertLightDirection = posVC - lights[ligthIdx].positionVC;\n float lightDistance = length(vertLightDirection);\n // Normalize with precomputed length\n vertLightDirection = vertLightDirection / lightDistance;\n // Base attenuation\n vec3 attenuationPolynom = lights[ligthIdx].attenuation;\n attenuation =\n 1.0 / (attenuationPolynom[0] +\n lightDistance * (attenuationPolynom[1] +\n lightDistance * attenuationPolynom[2]));\n // Cone attenuation\n float coneDot = dot(vertLightDirection, lights[ligthIdx].directionVC);\n // Per OpenGL standard cone angle is 90 or less for a spot light\n if (lights[ligthIdx].coneAngle <= 90.0) {\n if (coneDot >= cos(radians(lights[ligthIdx].coneAngle))) {\n // Inside the cone\n attenuation *= pow(coneDot, lights[ligthIdx].exponent);\n } else {\n // Outside the cone\n attenuation = 0.0;\n }\n }\n } else {\n vertLightDirection = lights[ligthIdx].directionVC;\n attenuation = 1.0;\n }\n\n float ndotL = dot(normalVC.xyz, vertLightDirection);\n if (ndotL < 0.0 && twoSidedLighting == 1) {\n ndotL = -ndotL;\n }\n if (ndotL > 0.0) {\n // Diffuse\n diffuse += ndotL * attenuation * lights[ligthIdx].color;\n // Specular\n float vdotR =\n dot(-rayDirVC, normalize(vertLightDirection - 2.0 * ndotL * normalVC.xyz));\n if (vdotR > 0.0) {\n specular += pow(vdotR, volume.specularPower) * attenuation *\n lights[ligthIdx].color;\n }\n }\n }\n #if vtkMaxLaoKernelSize > 0\n float laoFactor = computeLAO(posVC, normalVC, alpha);\n #else\n const float laoFactor = 1.0;\n #endif\n return tColor * (diffuse * volume.diffuse +\n volume.ambient * laoFactor) +\n specular * volume.specular;\n }\n\n vec3 applyVolumeShadowLighting(vec3 tColor, vec3 posVC) {\n // Here we have no effect of cones and no attenuation\n vec3 diffuse = vec3(0.0);\n for (int lightIdx = 0; lightIdx < vtkNumberOfLights; lightIdx++) {\n vec3 lightDirVC = lights[lightIdx].isPositional == 1\n ? normalize(lights[lightIdx].positionVC - posVC)\n : -lights[lightIdx].directionVC;\n float shadowCoeff = computeVolumeShadow(posVC, lightDirVC, lightIdx);\n float phaseAttenuation = phaseFunction(dot(rayDirVC, lightDirVC));\n diffuse += phaseAttenuation * shadowCoeff * lights[lightIdx].color;\n }\n return tColor * (diffuse * volume.diffuse + volume.ambient);\n }\n#endif\n\n// LAO of surface shadows and volume shadows only work with dependent components\nvec3 applyAllLightning(vec3 tColor, float alpha, vec3 posVC,\n vec4 surfaceNormalVC) {\n #if vtkNumberOfLights > 0\n // 0 <= volCoeff < EPSILON => only surface shadows\n // EPSILON <= volCoeff < 1 - EPSILON => mix of surface and volume shadows\n // 1 - EPSILON <= volCoeff => only volume shadows\n float volCoeff = volume.volumetricScatteringBlending *\n (1.0 - alpha / 2.0) *\n (1.0 - atan(surfaceNormalVC.w) * INV4PI);\n\n // Compute surface lighting if needed\n vec3 surfaceShadedColor = tColor;\n #ifdef EnableSurfaceLighting\n if (volCoeff < 1.0 - EPSILON) {\n surfaceShadedColor =\n applySurfaceShadowLighting(tColor, alpha, posVC, surfaceNormalVC);\n }\n #endif\n\n // Compute volume lighting if needed\n vec3 volumeShadedColor = tColor;\n #ifdef EnableVolumeLighting\n if (volCoeff >= EPSILON) {\n volumeShadedColor = applyVolumeShadowLighting(tColor, posVC);\n }\n #endif\n\n // Return the right mix\n if (volCoeff < EPSILON) {\n // Surface shadows\n return surfaceShadedColor;\n }\n if (volCoeff >= 1.0 - EPSILON) {\n // Volume shadows\n return volumeShadedColor;\n }\n // Mix of surface and volume shadows\n return mix(surfaceShadedColor, volumeShadedColor, volCoeff);\n #endif\n return tColor;\n}\n\nvec4 getColorForLabelOutline() {\n vec3 centerPosIS =\n fragCoordToIndexSpace(gl_FragCoord); // pos in texture space\n vec4 centerValue = getTextureValue(centerPosIS);\n bool pixelOnBorder = false;\n vec4 tColor = vec4(getColorFromTexture(centerValue.r, 0, 0.5),\n getOpacityFromTexture(centerValue.r, 0, 0.5));\n\n int segmentIndex = int(centerValue.r * 255.0);\n\n // Use texture sampling for outlineThickness\n float textureCoordinate = float(segmentIndex - 1) / 1024.0;\n float textureValue =\n texture2D(labelOutlineThicknessTexture, vec2(textureCoordinate, 0.5)).r;\n int actualThickness = int(textureValue * 255.0);\n\n // If it is the background (segment index 0), we should quickly bail out.\n // Previously, this was determined by tColor.a, which was incorrect as it\n // prevented the outline from appearing when the fill is 0.\n if (segmentIndex == 0) {\n return vec4(0, 0, 0, 0);\n }\n\n // Only perform outline check on fragments rendering voxels that aren't\n // invisible. Saves a bunch of needless checks on the background.\n // TODO define epsilon when building shader?\n for (int i = -actualThickness; i <= actualThickness; i++) {\n for (int j = -actualThickness; j <= actualThickness; j++) {\n if (i == 0 || j == 0) {\n continue;\n }\n\n vec4 neighborPixelCoord =\n vec4(gl_FragCoord.x + float(i), gl_FragCoord.y + float(j),\n gl_FragCoord.z, gl_FragCoord.w);\n\n vec3 neighborPosIS = fragCoordToIndexSpace(neighborPixelCoord);\n vec4 value = getTextureValue(neighborPosIS);\n\n // If any of my neighbours are not the same value as I\n // am, this means I am on the border of the segment.\n // We can break the loops\n if (any(notEqual(value, centerValue))) {\n pixelOnBorder = true;\n break;\n }\n }\n\n if (pixelOnBorder == true) {\n break;\n }\n }\n\n // If I am on the border, I am displayed at full opacity\n if (pixelOnBorder == true) {\n tColor.a = volume.outlineOpacity;\n }\n\n return tColor;\n}\n\nvec4 getColorForAdditivePreset(vec4 tValue, vec3 posVC, vec3 posIS) {\n // compute normals\n mat4 normalMat = computeMat4Normal(posIS, tValue);\n vec4 normalLights[2];\n normalLights[0] = normalMat[0];\n normalLights[1] = normalMat[1];\n #if vtkNumberOfLights > 0\n if (volume.computeNormalFromOpacity == 1) {\n for (int component = 0; component < 2; ++component) {\n vec3 scalarInterp[2];\n float height = volume.transferFunctionsSampleHeight[component];\n computeNormalForDensity(posIS, scalarInterp, component);\n normalLights[component] =\n computeDensityNormal(scalarInterp, height, 1.0, component);\n }\n }\n #endif\n\n // compute opacities\n float opacities[2];\n opacities[0] = getOpacityFromTexture(\n tValue[0], 0, volume.transferFunctionsSampleHeight[0]);\n opacities[1] = getOpacityFromTexture(\n tValue[1], 1, volume.transferFunctionsSampleHeight[1]);\n #ifdef EnabledGradientOpacity\n for (int component = 0; component < 2; ++component) {\n opacities[component] *=\n computeGradientOpacityFactor(normalMat[component].a, component);\n }\n #endif\n float opacitySum = opacities[0] + opacities[1];\n if (opacitySum <= 0.0) {\n return vec4(0.0);\n }\n\n // mix the colors and opacities\n vec3 colors[2];\n for (int component = 0; component < 2; ++component) {\n float sampleHeight = volume.transferFunctionsSampleHeight[component];\n vec3 color = getColorFromTexture(tValue[component], component, sampleHeight);\n color = applyAllLightning(color, opacities[component], posVC,\n normalLights[component]);\n colors[component] = color;\n }\n vec3 mixedColor =\n (opacities[0] * colors[0] + opacities[1] * colors[1]) / opacitySum;\n return vec4(mixedColor, min(1.0, opacitySum));\n}\n\nvec4 getColorForColorizePreset(vec4 tValue, vec3 posVC, vec3 posIS) {\n // compute normals\n mat4 normalMat = computeMat4Normal(posIS, tValue);\n vec4 normalLight = normalMat[0];\n #if vtkNumberOfLights > 0\n if (volume.computeNormalFromOpacity == 1) {\n vec3 scalarInterp[2];\n float height = volume.transferFunctionsSampleHeight[0];\n computeNormalForDensity(posIS, scalarInterp, 0);\n normalLight = computeDensityNormal(scalarInterp, height, 1.0, 0);\n }\n #endif\n\n // compute opacities\n float opacity = getOpacityFromTexture(\n tValue[0], 0, volume.transferFunctionsSampleHeight[0]);\n #ifdef EnabledGradientOpacity\n opacity *= computeGradientOpacityFactor(normalMat[0].a, 0);\n #endif\n\n // colorizing component\n vec3 colorizingColor = getColorFromTexture(\n tValue[0], 1, volume.transferFunctionsSampleHeight[1]);\n float colorizingOpacity = getOpacityFromTexture(\n tValue[1], 1, volume.transferFunctionsSampleHeight[1]);\n\n // mix the colors and opacities\n vec3 color =\n getColorFromTexture(tValue[0], 0,\n volume.transferFunctionsSampleHeight[0]) *\n mix(vec3(1.0), colorizingColor, colorizingOpacity);\n color = applyAllLightning(color, opacity, posVC, normalLight);\n return vec4(color, opacity);\n}\n\nvec4 getColorForDefaultIndependentPreset(vec4 tValue, vec3 posIS) {\n\n // compute the normal vectors as needed\n #if defined(EnabledGradientOpacity) || vtkNumberOfLights > 0\n mat4 normalMat = computeMat4Normal(posIS, tValue);\n #endif\n\n // process color and opacity for each component\n // initial value of alpha is determined by wether the first component is\n // proportional or not\n #if defined(vtkComponent0Proportional)\n // when it is proportional, it starts at 1 (neutral for multiplications)\n float alpha = 1.0;\n #else\n // when it is not proportional, it starts at 0 (neutral for additions)\n float alpha = 0.0;\n #endif\n\n vec3 mixedColor = vec3(0.0);\n #if vtkNumberOfComponents > 0\n {\n const int component = 0;\n vec3 color = getColorFromTexture(\n tValue[component], component,\n volume.transferFunctionsSampleHeight[component]);\n float opacity = getOpacityFromTexture(\n tValue[component], component,\n volume.transferFunctionsSampleHeight[component]);\n #if !defined(vtkComponent0Proportional)\n float alphaContribution = volume.independentComponentMix[component] * opacity;\n #ifdef EnabledGradientOpacity\n alphaContribution *= computeGradientOpacityFactor(normalMat[component].a, component);\n #endif\n alpha += alphaContribution;\n #if vtkNumberOfLights > 0\n color = applyLighting(color, normalMat[component]);\n #endif\n #else\n color *= opacity;\n alpha *= mix(opacity, 1.0,\n (1.0 - volume.independentComponentMix[component]));\n #endif\n mixedColor += volume.independentComponentMix[component] * color;\n }\n #endif\n #if vtkNumberOfComponents > 1\n {\n const int component = 1;\n vec3 color = getColorFromTexture(\n tValue[component], component,\n volume.transferFunctionsSampleHeight[component]);\n float opacity = getOpacityFromTexture(\n tValue[component], component,\n volume.transferFunctionsSampleHeight[component]);\n #if !defined(vtkComponent1Proportional)\n float alphaContribution = volume.independentComponentMix[component] * opacity;\n #ifdef EnabledGradientOpacity\n alphaContribution *= computeGradientOpacityFactor(normalMat[component].a, component);\n #endif\n alpha += alphaContribution;\n #if vtkNumberOfLights > 0\n color = applyLighting(color, normalMat[component]);\n #endif\n #else\n color *= opacity;\n alpha *= mix(opacity, 1.0,\n (1.0 - volume.independentComponentMix[component]));\n #endif\n mixedColor += volume.independentComponentMix[component] * color;\n }\n #endif\n #if vtkNumberOfComponents > 2\n {\n const int component = 2;\n vec3 color = getColorFromTexture(\n tValue[component], component,\n volume.transferFunctionsSampleHeight[component]);\n float opacity = getOpacityFromTexture(\n tValue[component], component,\n volume.transferFunctionsSampleHeight[component]);\n #if !defined(vtkComponent2Proportional)\n float alphaContribution = volume.independentComponentMix[component] * opacity;\n #ifdef EnabledGradientOpacity\n alphaContribution *= computeGradientOpacityFactor(normalMat[component].a, component);\n #endif\n alpha += alphaContribution;\n #if vtkNumberOfLights > 0\n color = applyLighting(color, normalMat[component]);\n #endif\n #else\n color *= opacity;\n alpha *= mix(opacity, 1.0,\n (1.0 - volume.independentComponentMix[component]));\n #endif\n mixedColor += volume.independentComponentMix[component] * color;\n }\n #endif\n #if vtkNumberOfComponents > 3\n {\n const int component = 3;\n vec3 color = getColorFromTexture(\n tValue[component], component,\n volume.transferFunctionsSampleHeight[component]);\n float opacity = getOpacityFromTexture(\n tValue[component], component,\n volume.transferFunctionsSampleHeight[component]);\n #if !defined(vtkComponent3Proportional)\n float alphaContribution = volume.independentComponentMix[component] * opacity;\n #ifdef EnabledGradientOpacity\n alphaContribution *= computeGradientOpacityFactor(normalMat[component].a, component);\n #endif\n alpha += alphaContribution;\n #if vtkNumberOfLights > 0\n color = applyLighting(color, normalMat[component]);\n #endif\n #else\n color *= opacity;\n alpha *= mix(opacity, 1.0,\n (1.0 - volume.independentComponentMix[component]));\n #endif\n mixedColor += volume.independentComponentMix[component] * color;\n }\n #endif\n\n return vec4(mixedColor, alpha);\n}\n\nvec4 getColorForDependentComponents(vec4 tValue, vec3 posVC, vec3 posIS) {\n #if defined(EnabledGradientOpacity) || vtkNumberOfLights > 0\n // use component 3 of the opacity texture as getTextureValue() sets alpha to\n // the opacity value\n vec3 scalarInterp[2];\n vec4 normal0 = computeNormalForDensity(posIS, scalarInterp, 3);\n float gradientOpacity = computeGradientOpacityFactor(normal0.a, 0);\n #endif\n\n // get color and opacity\n #if vtkNumberOfComponents == 1\n vec3 tColor = getColorFromTexture(tValue.r, 0, 0.5);\n float alpha = getOpacityFromTexture(tValue.r, 0, 0.5);\n #endif\n #if vtkNumberOfComponents == 2\n vec3 tColor = vec3(tValue.r * volume.colorTextureScale[0] +\n volume.colorTextureShift[0]);\n float alpha = getOpacityFromTexture(tValue.a, 1, 0.5);\n #endif\n #if vtkNumberOfComponents == 3\n vec3 tColor = tValue.rgb * volume.colorTextureScale.rgb +\n volume.colorTextureShift.rgb;\n float alpha = getOpacityFromTexture(tValue.a, 0, 0.5);\n #endif\n #if vtkNumberOfComponents == 4\n vec3 tColor = tValue.rgb * volume.colorTextureScale.rgb +\n volume.colorTextureShift.rgb;\n float alpha = getOpacityFromTexture(tValue.a, 3, 0.5);\n #endif\n\n // Apply gradient opacity\n #if defined(EnabledGradientOpacity)\n alpha *= gradientOpacity;\n #endif\n\n #if vtkNumberOfComponents == 1\n if (alpha < EPSILON) {\n return vec4(0.0);\n }\n #endif\n\n // lighting\n #if vtkNumberOfLights > 0\n vec4 normalLight;\n if (volume.computeNormalFromOpacity == 1) {\n if (normal0[3] != 0.0) {\n normalLight =\n computeDensityNormal(scalarInterp, 0.5, gradientOpacity, 0);\n if (normalLight[3] == 0.0) {\n normalLight = normal0;\n }\n }\n } else {\n normalLight = normal0;\n }\n tColor = applyAllLightning(tColor, alpha, posVC, normalLight);\n #endif\n\n return vec4(tColor, alpha);\n}\n\nvec4 getColorForValue(vec4 tValue, vec3 posVC, vec3 posIS) {\n #ifdef EnableColorForValueFunctionId0\n return getColorForDependentComponents(tValue, posVC, posIS);\n #endif\n\n #ifdef EnableColorForValueFunctionId1\n return getColorForAdditivePreset(tValue, posVC, posIS);\n #endif\n\n #ifdef EnableColorForValueFunctionId2\n return getColorForColorizePreset(tValue, posVC, posIS);\n #endif\n\n #ifdef EnableColorForValueFunctionId3\n /*\n * Mix the color information from all the independent components to get a\n * single rgba output. See other shader functions like\n * `getColorForAdditivePreset` to learn how to create a custom color mix.\n * The custom color mix should return a value, but if it doesn't, it will\n * fallback on the default shading\n */\n //VTK::CustomColorMix\n #endif\n\n #if defined(EnableColorForValueFunctionId4) || defined(EnableColorForValueFunctionId3)\n return getColorForDefaultIndependentPreset(tValue, posIS);\n #endif\n\n #ifdef EnableColorForValueFunctionId5\n return getColorForLabelOutline();\n #endif\n}\n\nbool valueWithinScalarRange(vec4 val) {\n #if vtkNumberOfComponents > 1 && !defined(EnabledIndependentComponents)\n return false;\n #endif\n vec4 rangeMin = volume.ipScalarRangeMin;\n vec4 rangeMax = volume.ipScalarRangeMax;\n for (int component = 0; component < vtkNumberOfComponents; ++component) {\n if (val[component] < rangeMin[component] ||\n rangeMax[component] < val[component]) {\n return false;\n }\n }\n return true;\n}\n\n#if vtkBlendMode == LABELMAP_EDGE_PROJECTION_BLEND\n bool checkOnEdgeForNeighbor(int xFragmentOffset, int yFragmentOffset,\n int segmentIndex, vec3 stepIS) {\n vec3 volumeDimensions = vec3(volume.dimensions);\n vec4 neighborPixelCoord = vec4(gl_FragCoord.x + float(xFragmentOffset),\n gl_FragCoord.y + float(yFragmentOffset),\n gl_FragCoord.z, gl_FragCoord.w);\n vec3 originalNeighborPosIS = fragCoordToIndexSpace(neighborPixelCoord);\n\n vec3 neighborPosIS = originalNeighborPosIS;\n for (int k = 0; k < vtkMaximumNumberOfSamples / 2; ++k) {\n ivec3 texCoord = ivec3(neighborPosIS * volumeDimensions);\n vec4 texValue = rawFetchTexture(texCoord);\n if (int(texValue.g) == segmentIndex) {\n // not on edge\n return false;\n }\n neighborPosIS += stepIS;\n }\n\n neighborPosIS = originalNeighborPosIS;\n for (int k = 0; k < vtkMaximumNumberOfSamples / 2; ++k) {\n ivec3 texCoord = ivec3(neighborPosIS * volumeDimensions);\n vec4 texValue = rawFetchTexture(texCoord);\n if (int(texValue.g) == segmentIndex) {\n // not on edge\n return false;\n }\n neighborPosIS -= stepIS;\n }\n\n // onedge\n float sampleHeight = volume.transferFunctionsSampleHeight[1];\n vec3 tColorSegment =\n getColorFromTexture(float(segmentIndex), 1, sampleHeight);\n float pwfValueSegment =\n getOpacityFromTexture(float(segmentIndex), 1, sampleHeight);\n gl_FragData[0] = vec4(tColorSegment, pwfValueSegment);\n return true;\n }\n#endif\n\nvec4 getColorAtPos(vec3 posVC) {\n vec3 posIS = posVCtoIS(posVC);\n vec4 texValue = getTextureValue(posIS);\n return getColorForValue(texValue, posVC, posIS);\n}\n\n//=======================================================================\n// Apply the specified blend mode operation along the ray's path.\n//\nvoid applyBlend(vec3 rayOriginVC, vec3 rayDirVC, float minDistance,\n float maxDistance) {\n // start slightly inside and apply some jitter\n vec3 stepVC = rayDirVC * sampleDistance;\n float raySteps = (maxDistance - minDistance) / sampleDistance;\n\n // Avoid 0.0 jitter\n float jitter = 0.01 + 0.99 * fragmentSeed;\n\n #if vtkBlendMode == COMPOSITE_BLEND\n // now map through opacity and color\n vec3 firstPosVC = rayOriginVC + minDistance * rayDirVC;\n vec4 firstColor = getColorAtPos(firstPosVC);\n\n // handle very thin volumes\n if (raySteps <= 1.0) {\n firstColor.a = 1.0 - pow(1.0 - firstColor.a, raySteps);\n gl_FragData[0] = firstColor;\n return;\n }\n\n // first color only counts for `jitter` factor of the step\n firstColor.a = 1.0 - pow(1.0 - firstColor.a, jitter);\n vec4 color = vec4(firstColor.rgb * firstColor.a, firstColor.a);\n vec3 posVC = firstPosVC + jitter * stepVC;\n float stepsTraveled = jitter;\n\n for (int i = 0; i < vtkMaximumNumberOfSamples; ++i) {\n // If we have reached the last step, break\n if (stepsTraveled + 1.0 >= raySteps) {\n break;\n }\n vec4 tColor = getColorAtPos(posVC);\n\n color = color + vec4(tColor.rgb * tColor.a, tColor.a) * (1.0 - color.a);\n stepsTraveled++;\n posVC += stepVC;\n if (color.a > 0.99) {\n color.a = 1.0;\n break;\n }\n }\n\n if (color.a < 0.99 && (raySteps - stepsTraveled) > 0.0) {\n vec3 endPosVC = rayOriginVC + maxDistance * rayDirVC;\n vec4 tColor = getColorAtPos(endPosVC);\n tColor.a = 1.0 - pow(1.0 - tColor.a, raySteps - stepsTraveled);\n\n float mix = (1.0 - color.a);\n color = color + vec4(tColor.rgb * tColor.a, tColor.a) * mix;\n }\n\n gl_FragData[0] = vec4(color.rgb / color.a, color.a);\n #endif\n\n #if vtkBlendMode == MAXIMUM_INTENSITY_BLEND || \\\n vtkBlendMode == MINIMUM_INTENSITY_BLEND\n // Find maximum/minimum intensity along the ray.\n\n // Define the operation we will use (min or max)\n #if vtkBlendMode == MAXIMUM_INTENSITY_BLEND\n #define OP max\n #else\n #define OP min\n #endif\n\n vec3 posVC = rayOriginVC + minDistance * rayDirVC;\n float stepsTraveled = 0.0;\n\n // Find a value to initialize the selected variables\n vec4 selectedValue;\n vec3 selectedPosVC;\n vec3 selectedPosIS;\n {\n vec3 posIS = posVCtoIS(posVC);\n selectedValue = getTextureValue(posIS);\n selectedPosVC = posVC;\n selectedPosIS = posIS;\n }\n\n // If the clipping range is shorter than the sample distance\n // we can skip the sampling loop along the ray.\n if (raySteps <= 1.0) {\n gl_FragData[0] = getColorForValue(selectedValue, selectedPosVC, selectedPosIS);\n return;\n }\n\n posVC += jitter * stepVC;\n stepsTraveled += jitter;\n\n // Sample along the ray until vtkMaximumNumberOfSamples,\n // ending slightly inside the total distance\n for (int i = 0; i < vtkMaximumNumberOfSamples; ++i) {\n // If we have reached the last step, break\n if (stepsTraveled + 1.0 >= raySteps) {\n break;\n }\n\n // Get selected values\n vec3 posIS = posVCtoIS(posVC);\n vec4 previousSelectedValue = selectedValue;\n vec4 currentValue = getTextureValue(posIS);\n selectedValue = OP(selectedValue, currentValue);\n if (previousSelectedValue != selectedValue) {\n selectedPosVC = posVC;\n selectedPosIS = posIS;\n }\n\n // Otherwise, continue along the ray\n stepsTraveled++;\n posVC += stepVC;\n }\n\n // Perform the last step along the ray using the\n // residual distance\n posVC = rayOriginVC + maxDistance * rayDirVC;\n {\n vec3 posIS = posVCtoIS(posVC);\n vec4 previousSelectedValue = selectedValue;\n vec4 currentValue = getTextureValue(posIS);\n selectedValue = OP(selectedValue, currentValue);\n if (previousSelectedValue != selectedValue) {\n selectedPosVC = posVC;\n selectedPosIS = posIS;\n }\n }\n\n gl_FragData[0] = getColorForValue(selectedValue, selectedPosVC, selectedPosIS);\n #endif\n\n #if vtkBlendMode == ADDITIVE_INTENSITY_BLEND || \\\n vtkBlendMode == AVERAGE_INTENSITY_BLEND\n vec4 sum = vec4(0.);\n #if vtkBlendMode == AVERAGE_INTENSITY_BLEND\n float totalWeight = 0.0;\n #endif\n vec3 posVC = rayOriginVC + minDistance * rayDirVC;\n float stepsTraveled = 0.0;\n\n vec3 posIS = posVCtoIS(posVC);\n vec4 value = getTextureValue(posIS);\n\n if (raySteps <= 1.0) {\n gl_FragData[0] = getColorForValue(value * raySteps, posVC, posIS);\n return;\n }\n\n if (valueWithinScalarRange(value)) {\n sum += value * jitter;\n #if vtkBlendMode == AVERAGE_INTENSITY_BLEND\n totalWeight += jitter;\n #endif\n }\n posVC += jitter * stepVC;\n stepsTraveled += jitter;\n\n // Sample along the ray until vtkMaximumNumberOfSamples,\n // ending slightly inside the total distance\n for (int i = 0; i < vtkMaximumNumberOfSamples; ++i) {\n // If we have reached the last step, break\n if (stepsTraveled + 1.0 >= raySteps) {\n break;\n }\n\n posIS = posVCtoIS(posVC);\n value = getTextureValue(posIS);\n // One can control the scalar range by setting the AverageIPScalarRange to\n // disregard scalar values, not in the range of interest, from the average\n // computation. Notes:\n // - We are comparing all values in the texture to see if any of them\n // are outside of the scalar range. In the future we might want to allow\n // scalar ranges for each component.\n if (valueWithinScalarRange(value)) {\n sum += value;\n #if vtkBlendMode == AVERAGE_INTENSITY_BLEND\n totalWeight++;\n #endif\n }\n\n stepsTraveled++;\n posVC += stepVC;\n }\n\n // Perform the last step along the ray using the\n // residual distance\n posVC = rayOriginVC + maxDistance * rayDirVC;\n posIS = posVCtoIS(posVC);\n value = getTextureValue(posIS);\n if (valueWithinScalarRange(value)) {\n sum += value;\n #if vtkBlendMode == AVERAGE_INTENSITY_BLEND\n totalWeight += raySteps - stepsTraveled;\n #endif\n }\n\n #if vtkBlendMode == AVERAGE_INTENSITY_BLEND\n sum /= vec4(totalWeight, totalWeight, totalWeight, 1.0);\n #endif\n\n gl_FragData[0] = getColorForValue(sum, posVC, posIS);\n #endif\n\n #if vtkBlendMode == RADON_TRANSFORM_BLEND\n float normalizedRayIntensity = 1.0;\n vec3 posVC = rayOriginVC + minDistance * rayDirVC;\n float stepsTraveled = 0.0;\n\n // handle very thin volumes\n if (raySteps <= 1.0) {\n vec3 posIS = posVCtoIS(posVC);\n vec4 tValue = getTextureValue(posIS);\n normalizedRayIntensity -= raySteps * sampleDistance *\n getOpacityFromTexture(tValue.r, 0, 0.5);\n gl_FragData[0] =\n vec4(getColorFromTexture(normalizedRayIntensity, 0, 0.5), 1.0);\n return;\n }\n\n posVC += jitter * stepVC;\n stepsTraveled += jitter;\n\n for (int i = 0; i < vtkMaximumNumberOfSamples; ++i) {\n if (stepsTraveled + 1.0 >= raySteps) {\n break;\n }\n\n vec3 posIS = posVCtoIS(posVC);\n vec4 value = getTextureValue(posIS);\n // Convert scalar value to normalizedRayIntensity coefficient and\n // accumulate normalizedRayIntensity\n normalizedRayIntensity -=\n sampleDistance * getOpacityFromTexture(value.r, 0, 0.5);\n\n posVC += stepVC;\n stepsTraveled++;\n }\n\n // map normalizedRayIntensity to color\n gl_FragData[0] =\n vec4(getColorFromTexture(normalizedRayIntensity, 0, 0.5), 1.0);\n #endif\n\n #if vtkBlendMode == LABELMAP_EDGE_PROJECTION_BLEND\n // Only works with a single volume\n vec3 posVC = rayOriginVC + minDistance * rayDirVC;\n float stepsTraveled = 0.0;\n vec3 posIS = posVCtoIS(posVC);\n vec4 tValue = getTextureValue(posIS);\n if (raySteps <= 1.0) {\n gl_FragData[0] = getColorForValue(tValue, posVC, posIS);\n return;\n }\n\n vec3 stepIS = vecVCToIS(stepVC);\n vec4 value = tValue;\n posIS += jitter * stepIS;\n stepsTraveled += jitter;\n vec3 maxPosIS = posIS; // Store the position of the max value\n int segmentIndex = int(value.g);\n bool originalPosHasSeenNonZero = false;\n\n if (segmentIndex != 0) {\n // Tried using the segment index in an boolean array but reading\n // from the array by dynamic indexing was horrondously slow\n // so use bit masking instead and assign 1 to the bit corresponding to the\n // segment index and later check if the bit is set via bit operations\n setLabelOutlineBit(segmentIndex);\n }\n\n // Sample along the ray until vtkMaximumNumberOfSamples,\n // ending slightly inside the total distance\n for (int i = 0; i < vtkMaximumNumberOfSamples; ++i) {\n // If we have reached the last step, break\n if (stepsTraveled + 1.0 >= raySteps) {\n break;\n }\n\n // compute the scalar\n tValue = getTextureValue(posIS);\n segmentIndex = int(tValue.g);\n\n if (segmentIndex != 0) {\n originalPosHasSeenNonZero = true;\n setLabelOutlineBit(segmentIndex);\n }\n\n if (tValue.r > value.r) {\n value = tValue; // Update the max value\n maxPosIS = posIS; // Update the position where max occurred\n }\n\n // Otherwise, continue along the ray\n stepsTraveled++;\n posIS += stepIS;\n }\n\n // Perform the last step along the ray using the\n // residual distance\n posIS = posVCtoIS(rayOriginVC + maxDistance * rayDirVC);\n tValue = getTextureValue(posIS);\n\n if (tValue.r > value.r) {\n value = tValue; // Update the max value\n maxPosIS = posIS; // Update the position where max occurred\n }\n\n // If we have not seen any non-zero segments, we can return early\n // and grab color from the actual center value first component (image)\n if (!originalPosHasSeenNonZero) {\n vec3 maxPosVC = posIStoVC(maxPosIS);\n gl_FragData[0] = getColorForValue(value, maxPosVC, maxPosIS);\n return;\n }\n\n vec3 neighborRayStepsIS = stepIS;\n float neighborRaySteps = raySteps;\n bool shouldLookInAllNeighbors = false;\n\n vec3 volumeSpacings = volume.spacing;\n float minVoxelSpacing =\n min(volumeSpacings[0], min(volumeSpacings[1], volumeSpacings[2]));\n vec4 base =\n vec4(gl_FragCoord.x, gl_FragCoord.y, gl_FragCoord.z, gl_FragCoord.w);\n\n vec4 baseXPlus = vec4(gl_FragCoord.x + 1.0, gl_FragCoord.y, gl_FragCoord.z,\n gl_FragCoord.w);\n vec4 baseYPlus = vec4(gl_FragCoord.x, gl_FragCoord.y + 1.0, gl_FragCoord.z,\n gl_FragCoord.w);\n\n vec3 baseWorld = fragCoordToWorld(base);\n vec3 baseXPlusWorld = fragCoordToWorld(baseXPlus);\n vec3 baseYPlusWorld = fragCoordToWorld(baseYPlus);\n\n float XPlusDiff = length(baseXPlusWorld - baseWorld);\n float YPlusDiff = length(baseYPlusWorld - baseWorld);\n\n float minFragSpacingWorld = min(XPlusDiff, YPlusDiff);\n\n for (int s = 1; s < MAX_SEGMENT_INDEX; s++) {\n // bail out quickly if the segment index has not\n // been seen by the center segment\n if (!isLabelOutlineBitSet(s)) {\n continue;\n }\n\n // Use texture sampling for outlineThickness so that we can have\n // per segment thickness\n float textureCoordinate = float(s - 1) / 1024.0;\n float textureValue =\n texture2D(labelOutlineThicknessTexture, vec2(textureCoordinate, 0.5)).r;\n\n int actualThickness = int(textureValue * 255.0);\n\n // check the extreme points in the neighborhood since there is a better\n // chance of finding the edge there, so that we can bail out\n // faster if we find the edge\n bool onEdge = checkOnEdgeForNeighbor(-actualThickness, -actualThickness, s,\n stepIS) ||\n checkOnEdgeForNeighbor(actualThickness, actualThickness, s,\n stepIS) ||\n checkOnEdgeForNeighbor(actualThickness, -actualThickness, s,\n stepIS) ||\n checkOnEdgeForNeighbor(-actualThickness, +actualThickness, s,\n stepIS);\n\n if (onEdge) {\n return;\n }\n\n // since the next step is computationally expensive, we need to perform\n // some optimizations to avoid it if possible. One of the optimizations\n // is to check the whether the minimum of the voxel spacing is greater than\n // the 2 * the thickness of the outline segment. If that is the case\n // then we can safely skip the next step since we can be sure that the\n // the previous 4 checks on the extreme points would caught the entirety\n // of the all the fragments inside. i.e., this happens when we zoom out,\n if (minVoxelSpacing >\n (2.0 * float(actualThickness) - 1.0) * minFragSpacingWorld) {\n continue;\n }\n\n // Loop through the rest, skipping the processed extremes and the center\n for (int i = -actualThickness; i <= actualThickness; i++) {\n for (int j = -actualThickness; j <= actualThickness; j++) {\n if (i == 0 && j == 0)\n continue; // Skip the center\n if (abs(i) == actualThickness && abs(j) == actualThickness)\n continue; // Skip corners\n if (checkOnEdgeForNeighbor(i, j, s, stepIS)) {\n return;\n }\n }\n }\n }\n\n float sampleHeight = volume.transferFunctionsSampleHeight[0];\n vec3 tColor0 = getColorFromTexture(value.r, 0, sampleHeight);\n float pwfValue0 = getOpacityFromTexture(value.r, 0, sampleHeight);\n gl_FragData[0] = vec4(tColor0, pwfValue0);\n #endif\n}\n\n//=======================================================================\n// given a\n// - ray direction (rayDir)\n// - starting point (vertexVCVSOutput)\n// - bounding planes of the volume\n// - optionally depth buffer values\n// - far clipping plane\n// compute the start/end distances of the ray we need to cast\nvec2 computeRayDistances(vec3 rayOriginVC, vec3 rayDirVC) {\n vec2 dists = rayIntersectVolumeDistances(rayOriginVC, rayDirVC);\n\n //VTK::ClipPlane::Impl\n\n // do not go behind front clipping plane\n dists.x = max(0.0, dists.x);\n\n // do not go PAST far clipping plane\n float farDist = -camThick / rayDirVC.z;\n dists.y = min(farDist, dists.y);\n\n // Do not go past the zbuffer value if set\n // This is used for intermixing opaque geometry\n //VTK::ZBuffer::Impl\n\n return dists;\n}\n\nfloat getFragmentSeed() {\n // This first noise has a diagonal pattern\n float firstNoise =\n fract(sin(dot(gl_FragCoord.xy, vec2(12.9898, 78.233))) * 43758.5453);\n // This second noise is made out of blocks of CPU generated noise\n float secondNoise = texture2D(jtexture, gl_FragCoord.xy / 32.0).r;\n // Combine the two sources of noise in a way that the distribution is uniform\n // in [0,1[\n float noiseSum = firstNoise + secondNoise;\n return noiseSum < 1.0 ? noiseSum : noiseSum - 1.0;\n}\n\nvoid main() {\n fragmentSeed = getFragmentSeed();\n\n if (cameraParallel == 1) {\n // Camera is parallel, so the rayDir is just the direction of the camera.\n rayDirVC = vec3(0.0, 0.0, -1.0);\n } else {\n // camera is at 0,0,0 so rayDir for perspective is just the vc coord\n rayDirVC = normalize(vertexVCVSOutput);\n }\n\n vec3 rayOriginVC = vertexVCVSOutput;\n vec2 rayStartEndDistancesVC = computeRayDistances(rayOriginVC, rayDirVC);\n if (rayStartEndDistancesVC[1] <= rayStartEndDistancesVC[0] ||\n rayStartEndDistancesVC[1] <= 0.0) {\n // Volume not hit or behind the ray\n discard;\n }\n\n // Perform the blending operation along the ray\n applyBlend(rayOriginVC, rayDirVC, rayStartEndDistancesVC[0], rayStartEndDistancesVC[1]);\n}\n"; - -export { vtkVolumeFS as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkVolumeVS.glsl.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkVolumeVS.glsl.js deleted file mode 100644 index edb1a3b2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/OpenGL/glsl/vtkVolumeVS.glsl.js +++ /dev/null @@ -1,3 +0,0 @@ -var vtkVolumeVS = "//VTK::System::Dec\n\n/*=========================================================================\n\n Program: Visualization Toolkit\n Module: vtkVolumeVS.glsl\n\n Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen\n All rights reserved.\n See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n\n This software is distributed WITHOUT ANY WARRANTY; without even\n the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR\n PURPOSE. See the above copyright notice for more information.\n\n=========================================================================*/\n\nattribute vec4 vertexDC;\n\nvarying vec3 vertexVCVSOutput;\nuniform mat4 PCVCMatrix;\n\nuniform float dcxmin;\nuniform float dcxmax;\nuniform float dcymin;\nuniform float dcymax;\n\nvoid main()\n{\n // dcsmall is the device coords reduced to the\n // x y area covered by the volume\n vec4 dcsmall = vec4(\n dcxmin + 0.5 * (vertexDC.x + 1.0) * (dcxmax - dcxmin),\n dcymin + 0.5 * (vertexDC.y + 1.0) * (dcymax - dcymin),\n vertexDC.z,\n vertexDC.w);\n vec4 vcpos = PCVCMatrix * dcsmall;\n vertexVCVSOutput = vcpos.xyz/vcpos.w;\n gl_Position = dcsmall;\n}\n"; - -export { vtkVolumeVS as v }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Profiles/All.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Profiles/All.js deleted file mode 100644 index f7192dd9..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Profiles/All.js +++ /dev/null @@ -1,37 +0,0 @@ -import '../OpenGL/Camera.js'; -import '../OpenGL/Renderer.js'; -import '../OpenGL/Actor.js'; -import '../OpenGL/Actor2D.js'; -import '../OpenGL/CubeAxesActor.js'; -import '../OpenGL/PolyDataMapper.js'; -import '../OpenGL/PolyDataMapper2D.js'; -import '../OpenGL/ScalarBarActor.js'; -import '../OpenGL/Skybox.js'; -import '../OpenGL/Texture.js'; -import '../OpenGL/Glyph3DMapper.js'; -import '../OpenGL/ImageResliceMapper.js'; -import '../OpenGL/ImageMapper.js'; -import '../OpenGL/ImageCPRMapper.js'; -import '../OpenGL/ImageSlice.js'; -import '../OpenGL/Volume.js'; -import '../OpenGL/VolumeMapper.js'; -import '../OpenGL/PixelSpaceCallbackMapper.js'; -import '../OpenGL/SurfaceLIC/SurfaceLICMapper.js'; -import '../OpenGL/SphereMapper.js'; -import '../OpenGL/StickMapper.js'; -import '../WebGPU/Camera.js'; -import '../WebGPU/Renderer.js'; -import '../WebGPU/Actor.js'; -import '../WebGPU/Actor2D.js'; -import '../WebGPU/CubeAxesActor.js'; -import '../WebGPU/PolyDataMapper.js'; -import '../WebGPU/PolyDataMapper2D.js'; -import '../WebGPU/ScalarBarActor.js'; -import '../WebGPU/Texture.js'; -import '../WebGPU/Glyph3DMapper.js'; -import '../WebGPU/ImageMapper.js'; -import '../WebGPU/ImageSlice.js'; -import '../WebGPU/Volume.js'; -import '../WebGPU/PixelSpaceCallbackMapper.js'; -import '../WebGPU/SphereMapper.js'; -import '../WebGPU/StickMapper.js'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Profiles/Geometry.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Profiles/Geometry.js deleted file mode 100644 index 4360c126..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Profiles/Geometry.js +++ /dev/null @@ -1,21 +0,0 @@ -import '../OpenGL/Camera.js'; -import '../OpenGL/Renderer.js'; -import '../OpenGL/Actor.js'; -import '../OpenGL/Actor2D.js'; -import '../OpenGL/CubeAxesActor.js'; -import '../OpenGL/PolyDataMapper.js'; -import '../OpenGL/PolyDataMapper2D.js'; -import '../OpenGL/ScalarBarActor.js'; -import '../OpenGL/Skybox.js'; -import '../OpenGL/Texture.js'; -import '../OpenGL/PixelSpaceCallbackMapper.js'; -import '../WebGPU/Camera.js'; -import '../WebGPU/Renderer.js'; -import '../WebGPU/Actor.js'; -import '../WebGPU/Actor2D.js'; -import '../WebGPU/CubeAxesActor.js'; -import '../WebGPU/PolyDataMapper.js'; -import '../WebGPU/PolyDataMapper2D.js'; -import '../WebGPU/ScalarBarActor.js'; -import '../WebGPU/Texture.js'; -import '../WebGPU/PixelSpaceCallbackMapper.js'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Profiles/Glyph.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Profiles/Glyph.js deleted file mode 100644 index 20dbf9fa..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Profiles/Glyph.js +++ /dev/null @@ -1,2 +0,0 @@ -import '../OpenGL/Glyph3DMapper.js'; -import '../WebGPU/Glyph3DMapper.js'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Profiles/LIC.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Profiles/LIC.js deleted file mode 100644 index 4815ced4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Profiles/LIC.js +++ /dev/null @@ -1 +0,0 @@ -import '../OpenGL/SurfaceLIC/SurfaceLICMapper.js'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Profiles/Molecule.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Profiles/Molecule.js deleted file mode 100644 index 330e4e8c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Profiles/Molecule.js +++ /dev/null @@ -1,4 +0,0 @@ -import '../OpenGL/SphereMapper.js'; -import '../OpenGL/StickMapper.js'; -import '../WebGPU/SphereMapper.js'; -import '../WebGPU/StickMapper.js'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Profiles/Volume.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Profiles/Volume.js deleted file mode 100644 index 8a365d54..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/Profiles/Volume.js +++ /dev/null @@ -1,15 +0,0 @@ -import '../OpenGL/Camera.js'; -import '../OpenGL/Renderer.js'; -import '../OpenGL/ImageResliceMapper.js'; -import '../OpenGL/ImageMapper.js'; -import '../OpenGL/ImageCPRMapper.js'; -import '../OpenGL/ImageSlice.js'; -import '../OpenGL/Volume.js'; -import '../OpenGL/VolumeMapper.js'; -import '../OpenGL/PixelSpaceCallbackMapper.js'; -import '../WebGPU/Camera.js'; -import '../WebGPU/Renderer.js'; -import '../WebGPU/ImageMapper.js'; -import '../WebGPU/ImageSlice.js'; -import '../WebGPU/Volume.js'; -import '../WebGPU/PixelSpaceCallbackMapper.js'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph.js deleted file mode 100644 index ab9605fd..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph.js +++ /dev/null @@ -1,13 +0,0 @@ -import vtkRenderPass from './SceneGraph/RenderPass.js'; -import vtkRenderWindowViewNode from './SceneGraph/RenderWindowViewNode.js'; -import vtkViewNode from './SceneGraph/ViewNode.js'; -import vtkViewNodeFactory from './SceneGraph/ViewNodeFactory.js'; - -var SceneGraph = { - vtkRenderPass, - vtkRenderWindowViewNode, - vtkViewNode, - vtkViewNodeFactory -}; - -export { SceneGraph as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/RenderPass.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/RenderPass.d.ts deleted file mode 100644 index 57f394c0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/RenderPass.d.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import vtkViewNode from './ViewNode'; - -/** - * - */ -export interface IRenderPassInitialValues { - delegates: Array; - preDelegateOperations: Array; - postDelegateOperations: Array; -} - -export interface vtkRenderPass extends vtkObject { - /** - * - */ - getCurrentOperation(): string; - - /** - * - */ - getCurrentParent(): any; - - /** - * - */ - getDelegates(): any; - - /** - * - */ - getOperation(): void; - - /** - * - */ - getPostDelegateOperations(): any; - - /** - * - */ - getPreDelegateOperations(): any; - - /** - * - */ - getTraverseOperation(): string; - - /** - * - * @param {String} val - */ - setCurrentOperation(val: string): void; - - /** - * - * @param currentParent - */ - setCurrentParent(currentParent: any): boolean; - - /** - * - * @param delegates - */ - setDelegates(delegates: any): boolean; - - /** - * - * @param postDelegateOperations - */ - setPostDelegateOperations(postDelegateOperations: any): boolean; - - /** - * - * @param preDelegateOperations - */ - setPreDelegateOperations(preDelegateOperations: any): boolean; - - /** - * by default this class will traverse all of its - * preDelegateOperations, then call its delegate render passes - * the traverse all of its postDelegateOperations - * any of those three arrays can be empty - * @param viewNode - * @param parent - */ - traverse(viewNode: vtkViewNode, parent: any): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkRenderPass characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IRenderPassInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IRenderPassInitialValues -): void; - -/** - * Method used to create a new instance of vtkRenderPass. - * @param {IRenderPassInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IRenderPassInitialValues -): vtkRenderPass; - -/** - * vtkRenderPass is a deferred class with a simple deferred method Render. - */ -export declare const vtkRenderPass: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkRenderPass; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/RenderPass.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/RenderPass.js deleted file mode 100644 index 2418b320..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/RenderPass.js +++ /dev/null @@ -1,80 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- - -function vtkRenderPass(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkRenderPass'); - publicAPI.getOperation = () => model.currentOperation; - publicAPI.setCurrentOperation = val => { - model.currentOperation = val; - model.currentTraverseOperation = `traverse${macro.capitalize(model.currentOperation)}`; - }; - publicAPI.getTraverseOperation = () => model.currentTraverseOperation; - - // by default this class will traverse all of its - // preDelegateOperations, then call its delegate render passes - // the traverse all of its postDelegateOperations - // any of those three arrays can be empty - publicAPI.traverse = function (viewNode) { - let parent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - if (model.deleted) { - return; - } - - // we just render our delegates in order - model._currentParent = parent; - model.preDelegateOperations.forEach(val => { - publicAPI.setCurrentOperation(val); - viewNode.traverse(publicAPI); - }); - model.delegates.forEach(val => { - val.traverse(viewNode, publicAPI); - }); - model.postDelegateOperations.forEach(val => { - publicAPI.setCurrentOperation(val); - viewNode.traverse(publicAPI); - }); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - delegates: [], - currentOperation: null, - preDelegateOperations: [], - postDelegateOperations: [], - currentParent: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['currentOperation']); - macro.setGet(publicAPI, model, ['delegates', '_currentParent', 'preDelegateOperations', 'postDelegateOperations']); - macro.moveToProtected(publicAPI, model, ['currentParent']); - - // Object methods - vtkRenderPass(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkRenderPass'); - -// ---------------------------------------------------------------------------- - -var vtkRenderPass$1 = { - newInstance, - extend -}; - -export { vtkRenderPass$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/RenderWindowViewNode.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/RenderWindowViewNode.js deleted file mode 100644 index c57c3f15..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/RenderWindowViewNode.js +++ /dev/null @@ -1,144 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkViewNode from './ViewNode.js'; - -// ---------------------------------------------------------------------------- -// vtkRenderWindowViewNode is intended to be a superclass for all api specific -// RenderWindows. It is intended to define a common API that can be invoked -// upon an api specific render window and provide some common method -// implementations. If your application requires communicating with an api specific -// view try to limit such interactions to methods defined in this class. -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -// vtkRenderWindowViewNode methods -// ---------------------------------------------------------------------------- - -function vtkRenderWindowViewNode(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkRenderWindowViewNode'); - publicAPI.getViewNodeFactory = () => null; - publicAPI.getAspectRatio = () => model.size[0] / model.size[1]; - publicAPI.getAspectRatioForRenderer = renderer => { - const viewport = renderer.getViewportByReference(); - return model.size[0] * (viewport[2] - viewport[0]) / ((viewport[3] - viewport[1]) * model.size[1]); - }; - publicAPI.isInViewport = (x, y, viewport) => { - const vCoords = viewport.getViewportByReference(); - const size = publicAPI.getFramebufferSize(); - if (vCoords[0] * size[0] <= x && vCoords[2] * size[0] >= x && vCoords[1] * size[1] <= y && vCoords[3] * size[1] >= y) { - return true; - } - return false; - }; - publicAPI.getViewportSize = viewport => { - const vCoords = viewport.getViewportByReference(); - const size = publicAPI.getFramebufferSize(); - return [(vCoords[2] - vCoords[0]) * size[0], (vCoords[3] - vCoords[1]) * size[1]]; - }; - publicAPI.getViewportCenter = viewport => { - const size = publicAPI.getViewportSize(viewport); - return [size[0] * 0.5, size[1] * 0.5]; - }; - publicAPI.displayToNormalizedDisplay = (x, y, z) => { - const size = publicAPI.getFramebufferSize(); - return [x / size[0], y / size[1], z]; - }; - publicAPI.normalizedDisplayToDisplay = (x, y, z) => { - const size = publicAPI.getFramebufferSize(); - return [x * size[0], y * size[1], z]; - }; - publicAPI.worldToView = (x, y, z, renderer) => renderer.worldToView(x, y, z); - publicAPI.viewToWorld = (x, y, z, renderer) => renderer.viewToWorld(x, y, z); - publicAPI.worldToDisplay = (x, y, z, renderer) => { - const val = renderer.worldToView(x, y, z); - const dims = publicAPI.getViewportSize(renderer); - const val2 = renderer.viewToProjection(val[0], val[1], val[2], dims[0] / dims[1]); - const val3 = renderer.projectionToNormalizedDisplay(val2[0], val2[1], val2[2]); - return publicAPI.normalizedDisplayToDisplay(val3[0], val3[1], val3[2]); - }; - publicAPI.displayToWorld = (x, y, z, renderer) => { - const val = publicAPI.displayToNormalizedDisplay(x, y, z); - const val2 = renderer.normalizedDisplayToProjection(val[0], val[1], val[2]); - const dims = publicAPI.getViewportSize(renderer); - const val3 = renderer.projectionToView(val2[0], val2[1], val2[2], dims[0] / dims[1]); - return renderer.viewToWorld(val3[0], val3[1], val3[2]); - }; - publicAPI.normalizedDisplayToViewport = (x, y, z, renderer) => { - let vCoords = renderer.getViewportByReference(); - vCoords = publicAPI.normalizedDisplayToDisplay(vCoords[0], vCoords[1], 0.0); - const coords = publicAPI.normalizedDisplayToDisplay(x, y, z); - return [coords[0] - vCoords[0] - 0.5, coords[1] - vCoords[1] - 0.5, z]; - }; - publicAPI.viewportToNormalizedViewport = (x, y, z, renderer) => { - const size = publicAPI.getViewportSize(renderer); - if (size && size[0] !== 0 && size[1] !== 0) { - return [x / (size[0] - 1.0), y / (size[1] - 1.0), z]; - } - return [x, y, z]; - }; - publicAPI.normalizedViewportToViewport = (x, y, z, renderer) => { - const size = publicAPI.getViewportSize(renderer); - return [x * (size[0] - 1.0), y * (size[1] - 1.0), z]; - }; - publicAPI.displayToLocalDisplay = (x, y, z) => { - const size = publicAPI.getFramebufferSize(); - return [x, size[1] - y - 1, z]; - }; - publicAPI.viewportToNormalizedDisplay = (x, y, z, renderer) => { - let vCoords = renderer.getViewportByReference(); - vCoords = publicAPI.normalizedDisplayToDisplay(vCoords[0], vCoords[1], 0.0); - const x2 = x + vCoords[0] + 0.5; - const y2 = y + vCoords[1] + 0.5; - return publicAPI.displayToNormalizedDisplay(x2, y2, z); - }; - publicAPI.getComputedDevicePixelRatio = () => model.size[0] / publicAPI.getContainerSize()[0]; - publicAPI.getContainerSize = () => { - macro.vtkErrorMacro('not implemented'); - }; - publicAPI.getPixelData = (x1, y1, x2, y2) => { - macro.vtkErrorMacro('not implemented'); - }; - publicAPI.createSelector = () => { - macro.vtkErrorMacro('not implemented'); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - size: undefined, - selector: undefined -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - if (!model.size) { - model.size = [300, 300]; - } - macro.getArray(publicAPI, model, ['size'], 2); - macro.get(publicAPI, model, ['selector']); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - - // Object methods - vtkRenderWindowViewNode(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkRenderWindowViewNode'); - -// ---------------------------------------------------------------------------- - -var vtkRenderWindowViewNode$1 = { - newInstance, - extend -}; - -export { vtkRenderWindowViewNode$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/ViewNode.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/ViewNode.d.ts deleted file mode 100644 index abebd0e5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/ViewNode.d.ts +++ /dev/null @@ -1,196 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import vtkRenderPass from './RenderPass'; - -export enum PASS_TYPES { - 'Build', - 'Render', -} - -/** - * - */ -export interface IViewNodeInitialValues { - parent?: null; - renderable?: null; - myFactory?: null; - children?: Array; - visited?: boolean; -} - -export interface vtkViewNode extends vtkObject { - /** - * Add a child view node to this node, created from the renderable given as argument - * If the node creation fails or the argument is falsy, returns undefined - * Otherwise, returns the newly created node or the existing node - * @param dobj - */ - addMissingNode(dobj: any): vtkViewNode | undefined; - - /** - * Removes a child view node - * If the node is not found, returns false - * Otherwise, removes the node from the children list and returns true - * @param dobj - */ - removeNode(dobj: any): boolean; - - /** - * - * @param dataObjs - */ - addMissingNodes(dataObjs: any): void; - - /** - * - * @param {vtkRenderPass} renderPass - * @param prepass - */ - apply(renderPass: vtkRenderPass, prepass: boolean): void; - - /** - * Builds myself. - * @param prepass - */ - build(prepass: any): void; - - /** - * - * @param dataObj - */ - createViewNode(dataObj: any): void; - - /** - * - */ - getChildren(): any; - - /** - * - */ - getChildrenByReference(): any; - - /** - * Find the first parent/grandparent of the desired type - * @param type - */ - getFirstAncestorOfType(type: any): void; - - /** - * Find the last parent/grandparent of the desired type - * @param type - */ - getLastAncestorOfType(type: any): void; - - /** - * - */ - getMyFactory(): any; - - /** - * - */ - getParent(): any; - - /** - * Get The data object (thing to be rendered). - */ - getRenderable(): any; - - /** - * Returns the view node that corresponding to the provided object - * Will return NULL if a match is not found in self or descendents - * @param dataObject - */ - getViewNodeFor(dataObject: any): any; - - /** - * - */ - getVisited(): boolean; - - //invokeEvent - //onEvent(callback: (instance: vtkObject) => any): vtkSubscription; - - /** - * - */ - prepareNodes(): void; - - /** - * - */ - removeUnusedNodes(): void; - - /** - * Makes calls to make self visible. - * @param prepass - */ - render(prepass: any): void; - - /** - * - * @param myFactory - */ - setMyFactory(myFactory: any): boolean; - - /** - * - * @param parent - */ - setParent(parent: any): boolean; - - /** - * - * @param renderable - */ - setRenderable(renderable: any): boolean; - - /** - * - * @param val - */ - setVisited(val: boolean): void; - - /** - * Traverse this node with the specified pass. If you want to traverse your - * children in a specific order or way override this method - * @param {vtkRenderPass} renderPass - */ - traverse(renderPass: vtkRenderPass): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkViewNode characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IViewNodeInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IViewNodeInitialValues -): void; - -/** - * Method used to create a new instance of vtkViewNode. - * @param {IViewNodeInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IViewNodeInitialValues -): vtkViewNode; - -/** - * a node within a VTK scene graph - * - * This is the superclass for all nodes within a VTK scene graph. It contains - * the API for a node. It supports the essential operations such as graph - * creation, state storage and traversal. Child classes adapt this to VTK's - * major rendering classes. Grandchild classes adapt those to for APIs of - * different rendering libraries. - */ -export declare const vtkViewNode: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkViewNode; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/ViewNode.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/ViewNode.js deleted file mode 100644 index 6d640a6c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/ViewNode.js +++ /dev/null @@ -1,252 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -const { - vtkErrorMacro -} = macro; -const PASS_TYPES = ['Build', 'Render']; - -// ---------------------------------------------------------------------------- -// vtkViewNode methods -// ---------------------------------------------------------------------------- - -function vtkViewNode(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkViewNode'); - - // Builds myself. - publicAPI.build = prepass => {}; - - // Renders myself - publicAPI.render = prepass => {}; - publicAPI.traverse = renderPass => { - // we can choose to do special - // traversal here based on pass - const passTraversal = renderPass.getTraverseOperation(); - const fn = publicAPI[passTraversal]; - if (fn) { - fn(renderPass); - return; - } - - // default traversal - publicAPI.apply(renderPass, true); - for (let index = 0; index < model.children.length; index++) { - model.children[index].traverse(renderPass); - } - publicAPI.apply(renderPass, false); - }; - publicAPI.apply = (renderPass, prepass) => { - const customRenderPass = publicAPI[renderPass.getOperation()]; - if (customRenderPass) { - customRenderPass(prepass, renderPass); - } - }; - publicAPI.getViewNodeFor = dataObject => { - if (model.renderable === dataObject) { - return publicAPI; - } - for (let index = 0; index < model.children.length; ++index) { - const child = model.children[index]; - const vn = child.getViewNodeFor(dataObject); - if (vn) { - return vn; - } - } - return undefined; - }; - publicAPI.getFirstAncestorOfType = type => { - if (!model._parent) { - return null; - } - if (model._parent.isA(type)) { - return model._parent; - } - return model._parent.getFirstAncestorOfType(type); - }; - publicAPI.getLastAncestorOfType = type => { - if (!model._parent) { - return null; - } - const lastAncestor = model._parent.getLastAncestorOfType(type); - if (lastAncestor) { - return lastAncestor; - } - if (model._parent.isA(type)) { - return model._parent; - } - return null; - }; - - // add a missing node/child for the passed in renderables. This should - // be called only in between prepareNodes and removeUnusedNodes - publicAPI.addMissingNode = dobj => { - if (!dobj) { - return undefined; - } - - // if found just mark as visited - const result = model._renderableChildMap.get(dobj); - if (result !== undefined) { - result.setVisited(true); - return result; - } - - // otherwise create a node - const newNode = publicAPI.createViewNode(dobj); - if (newNode) { - newNode.setParent(publicAPI); - newNode.setVisited(true); - model._renderableChildMap.set(dobj, newNode); - model.children.push(newNode); - return newNode; - } - return undefined; - }; - - // add missing nodes/children for the passed in renderables. This should - // be called only in between prepareNodes and removeUnusedNodes - publicAPI.addMissingNodes = function (dataObjs) { - let enforceOrder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - if (!dataObjs || !dataObjs.length) { - return; - } - for (let index = 0; index < dataObjs.length; ++index) { - const dobj = dataObjs[index]; - const node = publicAPI.addMissingNode(dobj); - if (enforceOrder && node !== undefined && model.children[index] !== node) { - for (let i = index + 1; i < model.children.length; ++i) { - if (model.children[i] === node) { - model.children.splice(i, 1); - model.children.splice(index, 0, node); - break; - } - } - } - } - }; - - // ability to add children that have no renderable use in the same manner - // as addMissingNodes This case is when a normal viewnode wants to - // delegate passes to a helper or child that doeasn't map to a clear - // renderable or any renderable - publicAPI.addMissingChildren = children => { - if (!children || !children.length) { - return; - } - for (let index = 0; index < children.length; ++index) { - const child = children[index]; - const cindex = model.children.indexOf(child); - if (cindex === -1) { - child.setParent(publicAPI); - model.children.push(child); - const childRenderable = child.getRenderable(); - if (childRenderable) { - model._renderableChildMap.set(childRenderable, child); - } - } - child.setVisited(true); - } - }; - publicAPI.removeNode = child => { - const childIdx = model.children.findIndex(x => x === child); - if (childIdx < 0) { - return false; - } - const renderable = child.getRenderable(); - if (renderable) { - model._renderableChildMap.delete(renderable); - } - child.delete(); - model.children.splice(childIdx, 1); - return true; - }; - publicAPI.prepareNodes = () => { - for (let index = 0; index < model.children.length; ++index) { - model.children[index].setVisited(false); - } - }; - publicAPI.setVisited = val => { - model.visited = val; - }; - publicAPI.removeUnusedNodes = () => { - let visitedCount = 0; - for (let index = 0; index < model.children.length; ++index) { - const child = model.children[index]; - const visited = child.getVisited(); - if (visited) { - model.children[visitedCount++] = child; - child.setVisited(false); - } else { - const renderable = child.getRenderable(); - if (renderable) { - model._renderableChildMap.delete(renderable); - } - child.delete(); - } - } - model.children.length = visitedCount; - }; - publicAPI.createViewNode = dataObj => { - if (!model.myFactory) { - vtkErrorMacro('Cannot create view nodes without my own factory'); - return null; - } - const ret = model.myFactory.createNode(dataObj); - if (ret) { - ret.setRenderable(dataObj); - } - return ret; - }; - const parentDelete = publicAPI.delete; - publicAPI.delete = () => { - for (let i = 0; i < model.children.length; i++) { - model.children[i].delete(); - } - parentDelete(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // _parent: null, - renderable: null, - myFactory: null, - children: [], - visited: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.event(publicAPI, model, 'event'); - model._renderableChildMap = new Map(); - macro.get(publicAPI, model, ['visited']); - macro.setGet(publicAPI, model, ['_parent', 'renderable', 'myFactory']); - macro.getArray(publicAPI, model, ['children']); - macro.moveToProtected(publicAPI, model, ['parent']); - - // Object methods - vtkViewNode(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkViewNode'); - -// ---------------------------------------------------------------------------- - -var vtkViewNode$1 = { - newInstance, - extend, - PASS_TYPES -}; - -export { vtkViewNode$1 as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/ViewNodeFactory.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/ViewNodeFactory.d.ts deleted file mode 100644 index 266b062e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/ViewNodeFactory.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { vtkObject } from './../../interfaces'; - -/** - * - */ -export interface IViewNodeFactoryInitialValues {} - -export interface vtkViewNodeFactory extends vtkObject { - /** - * Creates and returns a vtkViewNode for the provided renderable. - * @param dataObject - */ - createNode(dataObject: any): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkViewNodeFactory characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IViewNodeFactoryInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IViewNodeFactoryInitialValues -): void; - -/** - * Method used to create a new instance of vtkViewNodeFactory. - * @param {IViewNodeFactoryInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IViewNodeFactoryInitialValues -): vtkViewNodeFactory; - -/** - * factory that chooses vtkViewNodes to create - * - * Class tells VTK which specific vtkViewNode subclass to make when it is asked - * to make a vtkViewNode for a particular renderable. modules for different - * rendering backends are expected to use this to customize the set of instances - * for their own purposes - */ -export declare const vtkViewNodeFactory: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkViewNodeFactory; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/ViewNodeFactory.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/ViewNodeFactory.js deleted file mode 100644 index 9c7551b0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/SceneGraph/ViewNodeFactory.js +++ /dev/null @@ -1,71 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkViewNodeFactory methods -// ---------------------------------------------------------------------------- - -function vtkViewNodeFactory(publicAPI, model) { - // Make sure our overrides is just for our instance not shared with everyone... - if (!model.overrides) { - model.overrides = {}; - } - - // Set our className - model.classHierarchy.push('vtkViewNodeFactory'); - publicAPI.createNode = dataObject => { - if (dataObject.isDeleted()) { - return null; - } - let cpt = 0; - let className = dataObject.getClassName(cpt++); - let isObject = false; - const keys = Object.keys(model.overrides); - while (className && !isObject) { - if (keys.indexOf(className) !== -1) { - isObject = true; - } else { - className = dataObject.getClassName(cpt++); - } - } - if (!isObject) { - return null; - } - const vn = model.overrides[className](); - vn.setMyFactory(publicAPI); - return vn; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // overrides: {}, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - - // Object methods - vtkViewNodeFactory(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkViewNodeFactory'); - -// ---------------------------------------------------------------------------- - -var vtkViewNodeFactory$1 = { - newInstance, - extend -}; - -export { vtkViewNodeFactory$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU.js deleted file mode 100644 index e84412e3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU.js +++ /dev/null @@ -1,26 +0,0 @@ -import vtkRenderWindow from './WebGPU/RenderWindow.js'; -import './WebGPU/Actor.js'; -import './WebGPU/Actor2D.js'; -import './WebGPU/Camera.js'; -import './WebGPU/CubeAxesActor.js'; -import './WebGPU/ForwardPass.js'; -import './WebGPU/Glyph3DMapper.js'; -import './WebGPU/HardwareSelector.js'; -import './WebGPU/ImageMapper.js'; -import './WebGPU/ImageSlice.js'; -import './WebGPU/PixelSpaceCallbackMapper.js'; -import './WebGPU/PolyDataMapper.js'; -import './WebGPU/PolyDataMapper2D.js'; -import './WebGPU/Renderer.js'; -import './WebGPU/ScalarBarActor.js'; -import './WebGPU/SphereMapper.js'; -import './WebGPU/StickMapper.js'; -import './WebGPU/Texture.js'; -import './WebGPU/ViewNodeFactory.js'; -import './WebGPU/Volume.js'; - -var WebGPU = { - vtkRenderWindow -}; - -export { WebGPU as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Actor.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Actor.js deleted file mode 100644 index b80abb64..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Actor.js +++ /dev/null @@ -1,166 +0,0 @@ -import { mat4 } from 'gl-matrix'; -import { m as macro } from '../../macros2.js'; -import vtkProp from '../Core/Prop.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -const { - CoordinateSystem -} = vtkProp; - -// ---------------------------------------------------------------------------- -// vtkWebGPUActor methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUActor(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUActor'); - - // Builds myself. - publicAPI.buildPass = prepass => { - if (prepass) { - model.WebGPURenderer = publicAPI.getFirstAncestorOfType('vtkWebGPURenderer'); - model.WebGPURenderWindow = model.WebGPURenderer.getFirstAncestorOfType('vtkWebGPURenderWindow'); - if (model.propID === undefined) { - model.propID = model.WebGPURenderWindow.getUniquePropID(); - } - publicAPI.prepareNodes(); - publicAPI.addMissingNode(model.renderable.getMapper()); - publicAPI.removeUnusedNodes(); - } - }; - - // we draw textures, then mapper, then post pass textures - publicAPI.traverseOpaquePass = renderPass => { - if (!model.renderable || !model.renderable.getNestedVisibility() || !model.renderable.getIsOpaque() || model.WebGPURenderer.getSelector() && !model.renderable.getNestedPickable()) { - return; - } - publicAPI.apply(renderPass, true); - if (model.children[0]) { - model.children[0].traverse(renderPass); - } - publicAPI.apply(renderPass, false); - }; - - // we draw textures, then mapper, then post pass textures - publicAPI.traverseTranslucentPass = renderPass => { - if (!model.renderable || !model.renderable.getNestedVisibility() || model.renderable.getIsOpaque() || model.WebGPURenderer.getSelector() && !model.renderable.getNestedPickable()) { - return; - } - publicAPI.apply(renderPass, true); - if (model.children[0]) { - model.children[0].traverse(renderPass); - } - publicAPI.apply(renderPass, false); - }; - publicAPI.queryPass = (prepass, renderPass) => { - if (prepass) { - if (!model.renderable || !model.renderable.getVisibility()) { - return; - } - if (model.renderable.getIsOpaque()) { - renderPass.incrementOpaqueActorCount(); - } else { - renderPass.incrementTranslucentActorCount(); - } - } - }; - publicAPI.getBufferShift = wgpuRen => { - publicAPI.getKeyMatrices(wgpuRen); - return model.bufferShift; - }; - publicAPI.getKeyMatrices = wgpuRen => { - // has the actor or stabilization center changed? - if (Math.max(model.renderable.getMTime(), wgpuRen.getStabilizedTime()) > model.keyMatricesTime.getMTime()) { - model.renderable.computeMatrix(); - const mcwc = model.renderable.getMatrix(); - - // compute the net shift, only apply stabilized coords with world coordinates - model.bufferShift[0] = mcwc[3]; - model.bufferShift[1] = mcwc[7]; - model.bufferShift[2] = mcwc[11]; - const center = wgpuRen.getStabilizedCenterByReference(); - if (model.renderable.getCoordinateSystem() === CoordinateSystem.WORLD) { - model.bufferShift[0] -= center[0]; - model.bufferShift[1] -= center[1]; - model.bufferShift[2] -= center[2]; - } - mat4.transpose(model.keyMatrices.bcwc, mcwc); - if (model.renderable.getIsIdentity()) { - mat4.identity(model.keyMatrices.normalMatrix); - } else { - // we use bcwc BEFORE the translate below (just to get transposed mcvc) - mat4.copy(model.keyMatrices.normalMatrix, model.keyMatrices.bcwc); - // zero out translation - model.keyMatrices.normalMatrix[3] = 0.0; - model.keyMatrices.normalMatrix[7] = 0.0; - model.keyMatrices.normalMatrix[11] = 0.0; - mat4.invert(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix); - mat4.transpose(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix); - } - - // only need the buffer shift to get to world - mat4.translate(model.keyMatrices.bcwc, model.keyMatrices.bcwc, [-model.bufferShift[0], -model.bufferShift[1], -model.bufferShift[2]]); - - // to get to stabilized we also need the center - if (model.renderable.getCoordinateSystem() === CoordinateSystem.WORLD) { - mat4.translate(model.keyMatrices.bcsc, model.keyMatrices.bcwc, [-center[0], -center[1], -center[2]]); - } else { - mat4.copy(model.keyMatrices.bcsc, model.keyMatrices.bcwc); - } - model.keyMatricesTime.modified(); - } - return model.keyMatrices; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - keyMatricesTime: null, - keyMatrices: null, - propID: undefined, - bufferShift: undefined -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - model.keyMatricesTime = {}; - macro.obj(model.keyMatricesTime, { - mtime: 0 - }); - model.keyMatrices = { - normalMatrix: new Float64Array(16), - bcwc: new Float64Array(16), - bcsc: new Float64Array(16) - }; - macro.get(publicAPI, model, ['propID', 'keyMatricesTime']); - model.bufferShift = [0, 0, 0, 0]; - - // Object methods - vtkWebGPUActor(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -// Register ourself to WebGPU backend if imported -registerOverride('vtkActor', newInstance); - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Actor2D.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Actor2D.js deleted file mode 100644 index 4a1c40fa..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Actor2D.js +++ /dev/null @@ -1,152 +0,0 @@ -import { mat4 } from 'gl-matrix'; -import { m as macro } from '../../macros2.js'; -import vtkProp from '../Core/Prop.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -const { - CoordinateSystem -} = vtkProp; - -// ---------------------------------------------------------------------------- -// vtkWebGPUActor methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUActor2D(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUActor2D'); - - // Builds myself. - publicAPI.buildPass = prepass => { - if (prepass) { - model.WebGPURenderer = publicAPI.getFirstAncestorOfType('vtkWebGPURenderer'); - model.WebGPURenderWindow = model.WebGPURenderer.getFirstAncestorOfType('vtkWebGPURenderWindow'); - if (model.propID === undefined) { - model.propID = model.WebGPURenderWindow.getUniquePropID(); - } - publicAPI.prepareNodes(); - publicAPI.addMissingNode(model.renderable.getMapper()); - publicAPI.removeUnusedNodes(); - } - }; - - // we draw textures, then mapper, then post pass textures - publicAPI.traverseOpaquePass = renderPass => { - if (!model.renderable || !model.renderable.getNestedVisibility() || !model.renderable.getIsOpaque() || model.WebGPURenderer.getSelector() && !model.renderable.getNestedPickable()) { - return; - } - publicAPI.apply(renderPass, true); - if (model.children[0]) { - model.children[0].traverse(renderPass); - } - publicAPI.apply(renderPass, false); - }; - - // we draw textures, then mapper, then post pass textures - publicAPI.traverseTranslucentPass = renderPass => { - if (!model.renderable || !model.renderable.getNestedVisibility() || model.renderable.getIsOpaque() || model.WebGPURenderer.getSelector() && !model.renderable.getNestedPickable()) { - return; - } - publicAPI.apply(renderPass, true); - if (model.children[0]) { - model.children[0].traverse(renderPass); - } - publicAPI.apply(renderPass, false); - }; - publicAPI.queryPass = (prepass, renderPass) => { - if (prepass) { - if (!model.renderable || !model.renderable.getVisibility()) { - return; - } - if (model.renderable.getIsOpaque()) { - renderPass.incrementOpaqueActorCount(); - } else { - renderPass.incrementTranslucentActorCount(); - } - } - }; - publicAPI.getBufferShift = wgpuRen => { - publicAPI.getKeyMatrices(wgpuRen); - return model.bufferShift; - }; - publicAPI.getKeyMatrices = wgpuRen => { - // has the actor or stabilization center changed? - if (Math.max(model.renderable.getMTime(), wgpuRen.getStabilizedTime()) > model.keyMatricesTime.getMTime()) { - // compute the net shift, only apply stabilized coords with world coordinates - model.bufferShift[0] = 0.0; - model.bufferShift[1] = 0.0; - model.bufferShift[2] = 0.0; - const center = wgpuRen.getStabilizedCenterByReference(); - if (model.renderable.getCoordinateSystem() === CoordinateSystem.WORLD) { - model.bufferShift[0] -= center[0]; - model.bufferShift[1] -= center[1]; - model.bufferShift[2] -= center[2]; - } - mat4.identity(model.keyMatrices.bcwc); - mat4.identity(model.keyMatrices.normalMatrix); - - // only meed the buffer shift to get to world - mat4.translate(model.keyMatrices.bcwc, model.keyMatrices.bcwc, [-model.bufferShift[0], -model.bufferShift[1], -model.bufferShift[2]]); - - // to get to stabilized we also need the center - if (model.renderable.getCoordinateSystem() === CoordinateSystem.WORLD) { - mat4.translate(model.keyMatrices.bcsc, model.keyMatrices.bcwc, [-center[0], -center[1], -center[2]]); - } else { - mat4.copy(model.keyMatrices.bcsc, model.keyMatrices.bcwc); - } - model.keyMatricesTime.modified(); - } - return model.keyMatrices; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - keyMatricesTime: null, - keyMatrices: null, - propID: undefined, - bufferShift: undefined -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - model.keyMatricesTime = {}; - macro.obj(model.keyMatricesTime, { - mtime: 0 - }); - model.keyMatrices = { - normalMatrix: new Float64Array(16), - bcwc: new Float64Array(16), - bcsc: new Float64Array(16) - }; - macro.get(publicAPI, model, ['propID', 'keyMatricesTime']); - model.bufferShift = [0, 0, 0, 0]; - - // Object methods - vtkWebGPUActor2D(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -// Register ourself to WebGPU backend if imported -registerOverride('vtkActor2D', newInstance); - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/BindGroup.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/BindGroup.js deleted file mode 100644 index abc109a7..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/BindGroup.js +++ /dev/null @@ -1,112 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkWebGPUBindGroup methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUBindGroup(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUBindGroup'); - publicAPI.setBindables = bindables => { - // is there a difference between the old and new list? - if (model.bindables.length === bindables.length) { - let allMatch = true; - for (let i = 0; i < model.bindables.length; i++) { - if (model.bindables[i] !== bindables[i]) { - allMatch = false; - } - } - if (allMatch) { - return; - } - } - - // there is a difference - model.bindables = bindables; - publicAPI.modified(); - }; - publicAPI.getBindGroupLayout = device => { - const entries = []; - for (let i = 0; i < model.bindables.length; i++) { - const entry = model.bindables[i].getBindGroupLayoutEntry(); - entry.binding = i; - entries.push(entry); - } - return device.getBindGroupLayout({ - entries - }); - }; - publicAPI.getBindGroup = device => { - // check mtime - let mtime = publicAPI.getMTime(); - for (let i = 0; i < model.bindables.length; i++) { - const tm = model.bindables[i].getBindGroupTime().getMTime(); - mtime = tm > mtime ? tm : mtime; - } - if (mtime < model.bindGroupTime.getMTime()) { - return model.bindGroup; - } - const entries = []; - for (let i = 0; i < model.bindables.length; i++) { - const entry = model.bindables[i].getBindGroupEntry(); - entry.binding = i; - entries.push(entry); - } - model.bindGroup = device.getHandle().createBindGroup({ - layout: publicAPI.getBindGroupLayout(device), - entries, - label: model.label - }); - model.bindGroupTime.modified(); - return model.bindGroup; - }; - publicAPI.getShaderCode = pipeline => { - const lines = []; - const bgroup = pipeline.getBindGroupLayoutCount(model.label); - for (let i = 0; i < model.bindables.length; i++) { - lines.push(model.bindables[i].getShaderCode(i, bgroup)); - } - return lines.join('\n'); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - device: null, - handle: null, - label: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - model.bindables = []; - model.bindGroupTime = {}; - macro.obj(model.bindGroupTime, { - mtime: 0 - }); - macro.get(publicAPI, model, ['bindGroupTime', 'handle', 'sizeInBytes', 'usage']); - macro.setGet(publicAPI, model, ['label', 'device', 'arrayInformation']); - vtkWebGPUBindGroup(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUBindGroup$1 = { - newInstance, - extend -}; - -export { vtkWebGPUBindGroup$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Buffer.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Buffer.js deleted file mode 100644 index fa70808a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Buffer.js +++ /dev/null @@ -1,106 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import Constants from './BufferManager/Constants.js'; - -// methods we forward to the handle -const forwarded = ['getMappedRange', 'mapAsync', 'unmap']; -function bufferSubData(device, destBuffer, destOffset, srcArrayBuffer) { - const byteCount = srcArrayBuffer.byteLength; - const srcBuffer = device.createBuffer({ - size: byteCount, - /* eslint-disable no-undef */ - usage: GPUBufferUsage.COPY_SRC, - /* eslint-enable no-undef */ - mappedAtCreation: true - }); - const arrayBuffer = srcBuffer.getMappedRange(0, byteCount); - new Uint8Array(arrayBuffer).set(new Uint8Array(srcArrayBuffer)); // memcpy - srcBuffer.unmap(); - const encoder = device.createCommandEncoder(); - encoder.copyBufferToBuffer(srcBuffer, 0, destBuffer, destOffset, byteCount); - const commandBuffer = encoder.finish(); - const queue = device.queue; - queue.submit([commandBuffer]); - srcBuffer.destroy(); -} -// ---------------------------------------------------------------------------- -// vtkWebGPUBufferManager methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUBuffer(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUBuffer'); - publicAPI.create = (sizeInBytes, usage) => { - model.handle = model.device.getHandle().createBuffer({ - size: sizeInBytes, - usage, - label: model.label - }); - model.sizeInBytes = sizeInBytes; - model.usage = usage; - }; - publicAPI.write = data => { - bufferSubData(model.device.getHandle(), model.handle, 0, data.buffer); - }; - publicAPI.createAndWrite = (data, usage) => { - const paddedSize = Math.ceil(data.byteLength / 4) * 4; - model.handle = model.device.getHandle().createBuffer({ - size: paddedSize, - usage, - mappedAtCreation: true, - label: model.label - }); - model.sizeInBytes = paddedSize; - model.usage = usage; - new Uint8Array(model.handle.getMappedRange()).set(new Uint8Array(data.buffer)); // memcpy - model.handle.unmap(); - }; - - // simple forwarders - for (let i = 0; i < forwarded.length; i++) { - publicAPI[forwarded[i]] = function () { - return model.handle[forwarded[i]](...arguments); - }; - } -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - device: null, - handle: null, - sizeInBytes: 0, - strideInBytes: 0, - arrayInformation: null, - usage: null, - label: null, - sourceTime: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['handle', 'sizeInBytes', 'usage']); - macro.setGet(publicAPI, model, ['strideInBytes', 'device', 'arrayInformation', 'label', 'sourceTime']); - vtkWebGPUBuffer(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUBuffer$1 = { - newInstance, - extend, - ...Constants -}; - -export { vtkWebGPUBuffer$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/BufferManager.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/BufferManager.js deleted file mode 100644 index 8d524489..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/BufferManager.js +++ /dev/null @@ -1,366 +0,0 @@ -import { n as newInstance$1, o as obj, e as setGet, c as macro, a as newTypedArray } from '../../macros2.js'; -import { j as cross, l as normalize } from '../../Common/Core/Math/index.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkWebGPUBuffer from './Buffer.js'; -import vtkWebGPUIndexBuffer from './IndexBuffer.js'; -import vtkWebGPUTypes from './Types.js'; -import Constants from './BufferManager/Constants.js'; - -const { - BufferUsage -} = Constants; -const { - vtkErrorMacro -} = macro; -const { - VtkDataTypes -} = vtkDataArray; - -// the webgpu constants all show up as undefined -/* eslint-disable no-undef */ - -// ---------------------------------------------------------------------------- -// Static API -// ---------------------------------------------------------------------------- - -const STATIC = {}; -function _getFormatForDataArray(dataArray) { - let format; - switch (dataArray.getDataType()) { - case VtkDataTypes.UNSIGNED_CHAR: - format = 'uint8'; - break; - case VtkDataTypes.FLOAT: - format = 'float32'; - break; - case VtkDataTypes.UNSIGNED_INT: - format = 'uint32'; - break; - case VtkDataTypes.INT: - format = 'sint32'; - break; - case VtkDataTypes.DOUBLE: - format = 'float32'; - break; - case VtkDataTypes.UNSIGNED_SHORT: - format = 'uint16'; - break; - case VtkDataTypes.SHORT: - format = 'sin16'; - break; - default: - format = 'float32'; - break; - } - switch (dataArray.getNumberOfComponents()) { - case 2: - format += 'x2'; - break; - case 3: - // only 32bit types support x3 - if (!format.includes('32')) { - vtkErrorMacro(`unsupported x3 type for ${format}`); - } - format += 'x3'; - break; - case 4: - format += 'x4'; - break; - } - return format; -} -function packArray(indexBuffer, inArrayData, numComp, outputType, options) { - const result = {}; - const flatSize = indexBuffer.getFlatSize(); - if (!flatSize) { - return result; - } - - // setup shift and scale - let shift = [0.0, 0.0, 0.0, 0.0]; - if (options.shift) { - if (options.shift.length) { - shift = options.shift; - } else { - shift.fill(options.shift); - } - } - let scale = [1.0, 1.0, 1.0, 1.0]; - if (options.scale) { - if (options.scale.length) { - scale = options.scale; - } else { - scale.fill(options.scale); - } - } - const packExtra = Object.prototype.hasOwnProperty.call(options, 'packExtra') ? options.packExtra : false; - let addAPoint; - let vboidx = 0; - const stride = numComp + (packExtra ? 1 : 0); - const packedVBO = newTypedArray(outputType, flatSize * stride); - - // pick the right function based on point versus cell data - let flatIdMap = indexBuffer.getFlatIdToPointId(); - if (options.cellData) { - flatIdMap = indexBuffer.getFlatIdToCellId(); - } - - // add data based on number of components - if (numComp === 1) { - addAPoint = function addAPointFunc(i) { - packedVBO[vboidx++] = scale[0] * inArrayData[i] + shift[0]; - }; - } else if (numComp === 2) { - addAPoint = function addAPointFunc(i) { - packedVBO[vboidx++] = scale[0] * inArrayData[i] + shift[0]; - packedVBO[vboidx++] = scale[1] * inArrayData[i + 1] + shift[1]; - }; - } else if (numComp === 3 && !packExtra) { - addAPoint = function addAPointFunc(i) { - packedVBO[vboidx++] = scale[0] * inArrayData[i] + shift[0]; - packedVBO[vboidx++] = scale[1] * inArrayData[i + 1] + shift[1]; - packedVBO[vboidx++] = scale[2] * inArrayData[i + 2] + shift[2]; - }; - } else if (numComp === 3 && packExtra) { - addAPoint = function addAPointFunc(i) { - packedVBO[vboidx++] = scale[0] * inArrayData[i] + shift[0]; - packedVBO[vboidx++] = scale[1] * inArrayData[i + 1] + shift[1]; - packedVBO[vboidx++] = scale[2] * inArrayData[i + 2] + shift[2]; - packedVBO[vboidx++] = scale[3] * 1.0 + shift[3]; - }; - } else if (numComp === 4) { - addAPoint = function addAPointFunc(i) { - packedVBO[vboidx++] = scale[0] * inArrayData[i] + shift[0]; - packedVBO[vboidx++] = scale[1] * inArrayData[i + 1] + shift[1]; - packedVBO[vboidx++] = scale[2] * inArrayData[i + 2] + shift[2]; - packedVBO[vboidx++] = scale[3] * inArrayData[i + 3] + shift[3]; - }; - } - - // for each entry in the flat array process it - for (let index = 0; index < flatSize; index++) { - const inArrayId = numComp * flatIdMap[index]; - addAPoint(inArrayId); - } - result.nativeArray = packedVBO; - return result; -} -function getNormal(pointData, i0, i1, i2) { - const v1 = [pointData[i2 * 3] - pointData[i1 * 3], pointData[i2 * 3 + 1] - pointData[i1 * 3 + 1], pointData[i2 * 3 + 2] - pointData[i1 * 3 + 2]]; - const v2 = [pointData[i0 * 3] - pointData[i1 * 3], pointData[i0 * 3 + 1] - pointData[i1 * 3 + 1], pointData[i0 * 3 + 2] - pointData[i1 * 3 + 2]]; - const result = []; - cross(v1, v2, result); - normalize(result); - return result; -} -function generateNormals(cellArray, pointArray) { - const pointData = pointArray.getData(); - const cellArrayData = cellArray.getData(); - if (!cellArrayData || !pointData) { - return null; - } - - // return a cellArray of normals - const packedVBO = new Int8Array(cellArray.getNumberOfCells() * 4); - const size = cellArrayData.length; - let vboidx = 0; - for (let index = 0; index < size;) { - const normal = getNormal(pointData, cellArrayData[index + 1], cellArrayData[index + 2], cellArrayData[index + 3]); - packedVBO[vboidx++] = 127 * normal[0]; - packedVBO[vboidx++] = 127 * normal[1]; - packedVBO[vboidx++] = 127 * normal[2]; - packedVBO[vboidx++] = 127; - index += cellArrayData[index] + 1; - } - return packedVBO; -} - -// ---------------------------------------------------------------------------- -// vtkWebGPUBufferManager methods -// ---------------------------------------------------------------------------- -function vtkWebGPUBufferManager(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUBufferManager'); - function _createBuffer(req) { - // if a dataArray is provided set the nativeArray - if (req.dataArray && !req.nativeArray) { - req.nativeArray = req.dataArray.getData(); - } - let buffer; - let gpuUsage; - - // handle index buffers - if (req.usage === BufferUsage.Index) { - // todo change to FlattenedIndex to be more clear - buffer = vtkWebGPUIndexBuffer.newInstance({ - label: req.label - }); - buffer.setDevice(model.device); - /* eslint-disable no-bitwise */ - gpuUsage = GPUBufferUsage.INDEX | GPUBufferUsage.COPY_DST; - /* eslint-enable no-bitwise */ - buffer.buildIndexBuffer(req); - buffer.createAndWrite(req.nativeArray, gpuUsage); - buffer.setArrayInformation([{ - format: req.format - }]); - } - - // create one if not done already - if (!buffer) { - buffer = vtkWebGPUBuffer.newInstance({ - label: req.label - }); - buffer.setDevice(model.device); - } - - // handle uniform buffers - if (req.usage === BufferUsage.UniformArray) { - /* eslint-disable no-bitwise */ - gpuUsage = GPUBufferUsage.UNIFORM | GPUBufferUsage.COPY_DST; - /* eslint-enable no-bitwise */ - buffer.createAndWrite(req.nativeArray, gpuUsage); - } - - // handle storage buffers - if (req.usage === BufferUsage.Storage) { - /* eslint-disable no-bitwise */ - gpuUsage = GPUBufferUsage.STORAGE | GPUBufferUsage.COPY_DST; - /* eslint-enable no-bitwise */ - buffer.createAndWrite(req.nativeArray, gpuUsage); - } - - // handle textures - if (req.usage === BufferUsage.Texture) { - /* eslint-disable no-bitwise */ - gpuUsage = GPUBufferUsage.COPY_SRC; - /* eslint-enable no-bitwise */ - buffer.createAndWrite(req.nativeArray, gpuUsage); - } - - // all of the below types that have gpuUsage = VERTEX require format - // to be provided. - - // handle point data - if (req.usage === BufferUsage.PointArray) { - gpuUsage = GPUBufferUsage.VERTEX; - const arrayType = vtkWebGPUTypes.getNativeTypeFromBufferFormat(req.format); - const result = packArray(req.indexBuffer, req.dataArray.getData(), req.dataArray.getNumberOfComponents(), arrayType, { - packExtra: req.packExtra, - shift: req.shift, - scale: req.scale, - cellData: req.cellData, - cellOffset: req.cellOffset - }); - buffer.createAndWrite(result.nativeArray, gpuUsage); - buffer.setStrideInBytes(vtkWebGPUTypes.getByteStrideFromBufferFormat(req.format)); - buffer.setArrayInformation([{ - offset: 0, - format: req.format, - interpolation: req.cellData ? 'flat' : 'perspective' - }]); - } - - // handle normals from points, snorm8x4 - if (req.usage === BufferUsage.NormalsFromPoints) { - gpuUsage = GPUBufferUsage.VERTEX; - const arrayType = vtkWebGPUTypes.getNativeTypeFromBufferFormat(req.format); - const normals = generateNormals(req.cells, req.dataArray); - const result = packArray(req.indexBuffer, normals, 4, arrayType, { - cellData: true - }); - buffer.createAndWrite(result.nativeArray, gpuUsage); - buffer.setStrideInBytes(vtkWebGPUTypes.getByteStrideFromBufferFormat(req.format)); - buffer.setArrayInformation([{ - offset: 0, - format: req.format, - interpolation: 'flat' - }]); - } - if (req.usage === BufferUsage.RawVertex) { - gpuUsage = GPUBufferUsage.VERTEX; - buffer.createAndWrite(req.nativeArray, gpuUsage); - buffer.setStrideInBytes(vtkWebGPUTypes.getByteStrideFromBufferFormat(req.format)); - buffer.setArrayInformation([{ - offset: 0, - format: req.format - }]); - } - buffer.setSourceTime(req.time); - return buffer; - } - - // is the buffer already present? - publicAPI.hasBuffer = hash => model.device.hasCachedObject(hash); - publicAPI.getBuffer = req => { - // if we have a source the get/create/cache the buffer - if (req.hash) { - return model.device.getCachedObject(req.hash, _createBuffer, req); - } - return _createBuffer(req); - }; - publicAPI.getBufferForPointArray = (dataArray, indexBuffer) => { - const format = _getFormatForDataArray(dataArray); - const buffRequest = { - hash: `${dataArray.getMTime()}I${indexBuffer.getMTime()}${format}`, - usage: BufferUsage.PointArray, - format, - dataArray, - indexBuffer - }; - return publicAPI.getBuffer(buffRequest); - }; - publicAPI.getFullScreenQuadBuffer = () => { - if (model.fullScreenQuadBuffer) { - return model.fullScreenQuadBuffer; - } - model.fullScreenQuadBuffer = vtkWebGPUBuffer.newInstance(); - model.fullScreenQuadBuffer.setDevice(model.device); - - // prettier-ignore - const array = new Float32Array([-1.0, -1.0, 0.0, 1.0, -1.0, 0.0, 1.0, 1.0, 0.0, -1.0, -1.0, 0.0, 1.0, 1.0, 0.0, -1.0, 1.0, 0.0]); - model.fullScreenQuadBuffer.createAndWrite(array, GPUBufferUsage.VERTEX); - model.fullScreenQuadBuffer.setStrideInBytes(12); - model.fullScreenQuadBuffer.setArrayInformation([{ - offset: 0, - format: 'float32x3' - }]); - return model.fullScreenQuadBuffer; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - device: null, - fullScreenQuadBuffer: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - obj(publicAPI, model); - setGet(publicAPI, model, ['device']); - vtkWebGPUBufferManager(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUBufferManager$1 = { - newInstance, - extend, - ...STATIC, - ...Constants -}; - -export { STATIC, vtkWebGPUBufferManager$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/BufferManager/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/BufferManager/Constants.js deleted file mode 100644 index 2c8e2138..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/BufferManager/Constants.js +++ /dev/null @@ -1,32 +0,0 @@ -const BufferUsage = { - Verts: 0, - Lines: 1, - Triangles: 2, - Strips: 3, - LinesFromStrips: 4, - LinesFromTriangles: 5, - Points: 6, - UniformArray: 7, - PointArray: 8, - NormalsFromPoints: 9, - Texture: 10, - RawVertex: 11, - Storage: 12, - Index: 13 -}; -const PrimitiveTypes = { - Start: 0, - Points: 0, - Lines: 1, - Triangles: 2, - TriangleStrips: 3, - TriangleEdges: 4, - TriangleStripEdges: 5, - End: 6 -}; -var Constants = { - BufferUsage, - PrimitiveTypes -}; - -export { BufferUsage, PrimitiveTypes, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Camera.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Camera.js deleted file mode 100644 index 9c8660d2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Camera.js +++ /dev/null @@ -1,143 +0,0 @@ -import { mat4 } from 'gl-matrix'; -import { m as macro } from '../../macros2.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -// ---------------------------------------------------------------------------- -// vtkWebGPUCamera methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUCamera(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUCamera'); - publicAPI.getProjectionMatrix = (outMat, aspect, cRange, windowCenter) => { - mat4.identity(outMat); - if (model.renderable.getParallelProjection()) { - // set up a rectangular parallelipiped - const parallelScale = model.renderable.getParallelScale(); - const width = parallelScale * aspect; - const height = parallelScale; - const xmin = (windowCenter[0] - 1.0) * width; - const xmax = (windowCenter[0] + 1.0) * width; - const ymin = (windowCenter[1] - 1.0) * height; - const ymax = (windowCenter[1] + 1.0) * height; - const xr = 1.0 / (xmax - xmin); - const yr = 1.0 / (ymax - ymin); - outMat[0] = 2.0 * xr; - outMat[5] = 2.0 * yr; - outMat[10] = 1.0 / (cRange[1] - cRange[0]); - outMat[12] = (xmax + xmin) * xr; - outMat[13] = (ymax + ymin) * yr; - outMat[14] = cRange[1] / (cRange[1] - cRange[0]); - } else { - const tmp = Math.tan(Math.PI * model.renderable.getViewAngle() / 360.0); - let width; - let height; - if (model.renderable.getUseHorizontalViewAngle() === true) { - width = cRange[0] * tmp; - height = cRange[0] * tmp / aspect; - } else { - width = cRange[0] * tmp * aspect; - height = cRange[0] * tmp; - } - const xmin = (windowCenter[0] - 1.0) * width; - const xmax = (windowCenter[0] + 1.0) * width; - const ymin = (windowCenter[1] - 1.0) * height; - const ymax = (windowCenter[1] + 1.0) * height; - outMat[0] = 2.0 * cRange[0] / (xmax - xmin); - outMat[5] = 2.0 * cRange[0] / (ymax - ymin); - outMat[12] = (xmin + xmax) / (xmax - xmin); - outMat[13] = (ymin + ymax) / (ymax - ymin); - outMat[10] = 0.0; - outMat[14] = cRange[0]; - outMat[11] = -1.0; - outMat[15] = 0.0; - } - }; - publicAPI.convertToOpenGLDepth = val => { - if (model.renderable.getParallelProjection()) { - return 1.0 - val; - } - const cRange = model.renderable.getClippingRangeByReference(); - let zval = -cRange[0] / val; - zval = (cRange[0] + cRange[1]) / (cRange[1] - cRange[0]) + 2.0 * cRange[0] * cRange[1] / (zval * (cRange[1] - cRange[0])); - return 0.5 * zval + 0.5; - }; - publicAPI.getKeyMatrices = webGPURenderer => { - // has the camera changed? - const ren = webGPURenderer.getRenderable(); - const webGPURenderWindow = webGPURenderer.getParent(); - if (Math.max(webGPURenderWindow.getMTime(), publicAPI.getMTime(), ren.getMTime(), model.renderable.getMTime(), webGPURenderer.getStabilizedTime()) > model.keyMatrixTime.getMTime()) { - const wcvc = model.renderable.getViewMatrix(); - mat4.copy(model.keyMatrices.normalMatrix, wcvc); - // zero out translation - model.keyMatrices.normalMatrix[3] = 0.0; - model.keyMatrices.normalMatrix[7] = 0.0; - model.keyMatrices.normalMatrix[11] = 0.0; - mat4.invert(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix); - mat4.transpose(model.keyMatrices.wcvc, wcvc); - const center = webGPURenderer.getStabilizedCenterByReference(); - mat4.translate(model.keyMatrices.scvc, model.keyMatrices.wcvc, center); - const aspectRatio = webGPURenderer.getAspectRatio(); - const cRange = model.renderable.getClippingRangeByReference(); - publicAPI.getProjectionMatrix(model.keyMatrices.vcpc, aspectRatio, cRange, model.renderable.getWindowCenterByReference()); - mat4.multiply(model.keyMatrices.scpc, model.keyMatrices.vcpc, model.keyMatrices.scvc); - mat4.invert(model.keyMatrices.pcsc, model.keyMatrices.scpc); - model.keyMatrixTime.modified(); - } - return model.keyMatrices; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - keyMatrixTime: null, - keyMatrices: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - model.keyMatrixTime = {}; - macro.obj(model.keyMatrixTime); - - // values always get set by the get method - model.keyMatrices = { - normalMatrix: new Float64Array(16), - vcpc: new Float64Array(16), - pcsc: new Float64Array(16), - wcvc: new Float64Array(16), - scpc: new Float64Array(16), - scvc: new Float64Array(16) - }; - - // Build VTK API - macro.setGet(publicAPI, model, ['keyMatrixTime']); - - // Object methods - vtkWebGPUCamera(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -// Register ourself to WebGPU backend if imported -registerOverride('vtkCamera', newInstance); - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/CellArrayMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/CellArrayMapper.js deleted file mode 100644 index 1e20f299..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/CellArrayMapper.js +++ /dev/null @@ -1,1077 +0,0 @@ -import { mat3, mat4 } from 'gl-matrix'; -import { n as newInstance$1, e as setGet } from '../../macros2.js'; -import vtkMapper from '../Core/Mapper.js'; -import vtkProp from '../Core/Prop.js'; -import vtkProperty from '../Core/Property.js'; -import vtkProperty2D from '../Core/Property2D.js'; -import vtkTexture from '../Core/Texture.js'; -import vtkWebGPUBufferManager from './BufferManager.js'; -import vtkWebGPUShaderCache from './ShaderCache.js'; -import vtkWebGPUUniformBuffer from './UniformBuffer.js'; -import vtkWebGPUSimpleMapper from './SimpleMapper.js'; -import vtkWebGPUTypes from './Types.js'; - -const { - BufferUsage, - PrimitiveTypes -} = vtkWebGPUBufferManager; -const { - Representation -} = vtkProperty; -const { - ScalarMode -} = vtkMapper; -const { - CoordinateSystem -} = vtkProp; -const { - DisplayLocation -} = vtkProperty2D; -const vtkWebGPUPolyDataVS = ` -//VTK::Renderer::Dec - -//VTK::Color::Dec - -//VTK::Normal::Dec - -//VTK::TCoord::Dec - -//VTK::Select::Dec - -//VTK::Mapper::Dec - -//VTK::IOStructs::Dec - -@vertex -fn main( -//VTK::IOStructs::Input -) -//VTK::IOStructs::Output -{ - var output : vertexOutput; - - var vertex: vec4 = vertexBC; - - //VTK::Color::Impl - - //VTK::Normal::Impl - - //VTK::TCoord::Impl - - //VTK::Select::Impl - - //VTK::Position::Impl - - return output; -} -`; -const vtkWebGPUPolyDataFS = ` -struct PBRData { - diffuse: vec3, - specular: vec3, -} - -struct Material { - ior: f32, - roughness: f32, - metallic: f32, - base: vec3, -}; - -struct DirectionalLight { - direction: vec3, - color: vec3, -}; - -struct PointLight { - position: vec3, - color: vec3, -}; - -struct SpotLight { - position: vec3, - direction: vec3, - cones: vec2, - color: vec3, -}; - -const pi: f32 = 3.14159265359; - -// Dot product with the max already in it -fn mdot(a: vec3, b: vec3) -> f32 { - return max(0.0, dot(a, b)); -} -// Dot product with a max in it that does not allow for negative values -// Physically based rendering is accurate as long as normals are accurate, -// however this is pretty often not the case. In order to prevent negative -// values from ruining light calculations and creating zones of zero light, -// this remapping is used, which smoothly clamps the dot product between -// zero and one while still maintaining a good amount of accuracy. -fn cdot(a: vec3, b: vec3) -> f32 { - var d: f32 = max(0.0, dot(a, b)); - d = pow((d + 1.0) / 2.0, 2.6); - return d; -} - -// Lambertian diffuse model -fn lambertDiffuse(base: vec3, N: vec3, L: vec3) -> vec3 { - var NdotL: f32 = mdot(N, L); - NdotL = pow(NdotL, 1.5); - return (base/pi)*NdotL; -} - -// Yasuhiro Fujii improvement on the Oren-Nayar model -// https://mimosa-pudica.net/improved-oren-nayar.html -// p is surface color, o is roughness -fn fujiiOrenNayar(p: vec3, o: f32, N: vec3, L: vec3, V: vec3) -> vec3 { - var invpi: f32 = 0.31830988618; // 1/pi - - var o2 = o*o; - var NdotL: f32 = mdot(N, L); - NdotL = pow(NdotL, 1.5); // Less physically accurate, but hides the "seams" between lights better - - var NdotV: f32 = mdot(N, V); - var LdotV: f32 = mdot(L, V); - - var s: f32 = LdotV - NdotL*NdotV; - var t: f32 = mix(1.0, max(NdotL, NdotV), step(0.0, s)); // Mix with step is the equivalent of an if statement - var A: vec3 = 0.5*(o2 / (o2 + 0.33)) + 0.17*p*(o2 / (o2 + 0.13)); - A = invpi*(1 - A); - var B: f32 = 0.45*(o2 / (o2 + 0.09)); - B = invpi*B; - - return p*NdotL*(A + B*(s/t)); -} - -// Fresnel portion of BRDF (IOR only, simplified) -fn schlickFresnelIOR(V: vec3, N: vec3, ior: f32, k: f32) -> f32 { - var NdotV: f32 = mdot(V, N); - var F0: f32 = (pow((ior - 1.0), 2.0) + k*k) / (pow((ior + 1.0), 2.0) + k*k); // This takes into account the roughness, which the other one does not - return F0 + (1.0 - F0) * pow((1.0-NdotV), 5.0); -} - -// Fresnel portion of BRDF (Color ior, better) -fn schlickFresnelRGB(V: vec3, N: vec3, F0: vec3) -> vec3 { - var NdotV: f32 = mdot(V, N); - return F0 + (1.0 - F0) * pow((1-NdotV), 5.0); -} - -// Normal portion of BRDF -// https://learnopengl.com/PBR/Theory -// Trowbridge-Reitz GGX functions: normal, halfway, roughness^2 -fn trGGX(N: vec3, H: vec3, a: f32) -> f32 { - var a2: f32 = a*a; - var NdotH = mdot(N, H); - var NdotH2 = NdotH*NdotH; - - var denom: f32 = NdotH2 * (a2 - 1.0) + 1.0; - - return a2 / max((pi*denom*denom), 0.000001); -} - -// A VERY bad approximation of anisotropy. Real anisotropic calculations require tangent and bitangent -fn anisotrophicTrGGX(N: vec3, H: vec3, O: vec3, s: f32, a: f32) -> f32 { - var Op: vec3 = (rendererUBO.WCVCNormals * vec4(normalize(O) * s, 0.)).xyz; - - var ggx1: f32 = trGGX(N + Op*s, H, a); - var ggx2: f32 = trGGX(N - Op*s, H, a); - return (0.5 * ggx1 + 0.5 * ggx2); -} - -// Geometry portion of BRDF -fn schlickGGX(N: vec3, X: vec3, k: f32) -> f32 { - var NdotX = cdot(N, X); - return NdotX / max(0.000001, (NdotX*(1.0-k) + k)); -} - -fn smithSurfaceRoughness(N: vec3, V: vec3, L: vec3, k: f32) -> f32 { - var ggx1: f32 = min(1.0, schlickGGX(N, V, k)); - var ggx2: f32 = min(1.0, schlickGGX(N, L, k)); - return ggx1*ggx2; -} - -// BRDF Combination -fn cookTorrance(D: f32, F: f32, G: f32, N: vec3, V: vec3, L: vec3) -> f32 { - var num: f32 = D*F*G; - var denom: f32 = 4*cdot(V, N)*cdot(L, N); - - return num / max(denom, 0.000001); -} - -// Different lighting calculations for different light sources -fn calcDirectionalLight(N: vec3, V: vec3, mat: Material, light: DirectionalLight) -> PBRData { - var L: vec3 = normalize(light.direction); // Light Vector - var H: vec3 = normalize(L + V); // Halfway Vector - - var alpha = mat.roughness * mat.roughness; - var k: f32 = alpha * alpha / 2.0; - - var D: f32 = trGGX(N, H, alpha); // Distribution - // var F: f32 = schlickFresnelIOR(V, N, ior, k); // Fresnel - var G: f32 = smithSurfaceRoughness(N, V, L, k); // Geometry - - var brdf: f32 = cookTorrance(D, 1.0, G, N, V, L); // Fresnel term is replaced with 1 because it is added later - var incoming: vec3 = light.color; - var angle: f32 = mdot(L, N); - angle = pow(angle, 1.5); - - var specular: vec3 = brdf * incoming * angle; - // Oren-Nayar gives a clay-like effect when fully rough which some people may not want, so it might be better to give a separate - // control property for the diffuse vs specular roughness - var diffuse: vec3 = incoming * fujiiOrenNayar(mat.base, mat.roughness, N, L, V); - // Stores the specular and diffuse separately to allow for finer post processing - var out = PBRData(diffuse, specular); - - return out; // Returns angle along with color of light so the final color can be multiplied by angle as well (creates black areas) -} - -fn calcPointLight(N: vec3, V: vec3, fragPos: vec3, mat: Material, light: PointLight) -> PBRData { - var L: vec3 = normalize(light.position - fragPos); - var H: vec3 = normalize(L + V); - var dist = distance(light.position, fragPos); - - var alpha = mat.roughness * mat.roughness; - var k: f32 = alpha * alpha / 2.0; - - var D: f32 = trGGX(N, H, alpha); // Distribution - var F: f32 = schlickFresnelIOR(V, N, mat.ior, k); // Fresnel - var G: f32 = smithSurfaceRoughness(N, V, L, k); // Geometry - - var brdf: f32 = cookTorrance(D, 1.0, G, N, V, L); - var incoming: vec3 = light.color * (1.0 / (dist * dist)); - var angle: f32 = mdot(L, N); - angle = pow(angle, 1.5); // Smoothing factor makes it less accurate, but reduces ugly "seams" between light sources - - var specular: vec3 = brdf * incoming * angle; - var diffuse: vec3 = incoming * fujiiOrenNayar(mat.base, mat.roughness, N, L, V); - // Stores the specular and diffuse separately to allow for finer post processing - // Could also be done (propably more properly) with a struct - var out = PBRData(diffuse, specular); - - return out; // Returns angle along with color of light so the final color can be multiplied by angle as well (creates black areas) -} - -// For a reason unknown to me, spheres dont seem to behave propperly with head-on spot lights -fn calcSpotLight(N: vec3, V: vec3, fragPos: vec3, mat: Material, light: SpotLight) -> PBRData { - var L: vec3 = normalize(light.position - fragPos); - var H: vec3 = normalize(L + V); // Halfway Vector - var dist = distance(light.position, fragPos); - - var alpha = mat.roughness * mat.roughness; - var k: f32 = alpha * alpha / 2.0; // could also be pow(alpha + 1.0, 2) / 8 - - var D: f32 = trGGX(N, H, alpha); // Distribution - // var F: f32 = schlickFresnelIOR(V, N, ior, k); // Fresnel - var G: f32 = smithSurfaceRoughness(N, V, L, k); // Geometry - - var brdf: f32 = cookTorrance(D, 1.0, G, N, V, L); - - var theta: f32 = mdot(normalize(light.direction), L); - var epsilon: f32 = light.cones.x - light.cones.y; - var intensity: f32 = (theta - light.cones.y) / epsilon; - intensity = clamp(intensity, 0.0, 1.0); - intensity /= dist * dist; - - var incoming: vec3 = light.color * intensity; - - var angle: f32 = mdot(L, N); - angle = pow(angle, 1.5); // Smoothing factor makes it less accurate, but reduces ugly "seams" between light sources - - var specular: vec3 = brdf * incoming * angle; - var diffuse: vec3 = incoming * fujiiOrenNayar(mat.base, mat.roughness, N, L, V); - - // Stores the specular and diffuse separately to allow for finer post processing - // Could also be done (propably more properly) with a struct - var out = PBRData(diffuse, specular); - - return out; // Returns angle along with color of light so the final color can be multiplied by angle as well (creates black areas) -} - -// Environment mapping stuff -// Takes in a vector and converts it to an equivalent coordinate in a rectilinear texture. Should be replaced with cubemaps at some point -fn vecToRectCoord(dir: vec3) -> vec2 { - var tau: f32 = 6.28318530718; - var out: vec2 = vec2(0.0); - - out.x = atan2(dir.z, dir.x) / tau; - out.x += 0.5; - - var phix: f32 = length(vec2(dir.x, dir.z)); - out.y = atan2(dir.y, phix) / pi + 0.5; - - return out; -} - -//VTK::Renderer::Dec - -//VTK::Color::Dec - -//VTK::TCoord::Dec - -// optional surface normal declaration -//VTK::Normal::Dec - -//VTK::Select::Dec - -//VTK::RenderEncoder::Dec - -//VTK::Mapper::Dec - -//VTK::IOStructs::Dec - -@fragment -fn main( -//VTK::IOStructs::Input -) -//VTK::IOStructs::Output -{ - var output : fragmentOutput; - - // Temporary ambient, diffuse, and opacity - var ambientColor: vec4 = mapperUBO.AmbientColor; - var diffuseColor: vec4 = mapperUBO.DiffuseColor; - var opacity: f32 = mapperUBO.Opacity; - var ior: f32 = mapperUBO.BaseIOR; - - // This should be declared somewhere else - var _diffuseMap: vec4 = vec4(1.0); - var _roughnessMap: vec4 = vec4(1.0); - var _metallicMap: vec4 = vec4(1.0); - var _normalMap: vec4 = vec4(0.0, 0.0, 1.0, 0.0); // normal map was setting off the normal vector detection in fragment - var _ambientOcclusionMap: vec4 = vec4(1.); - var _emissionMap: vec4 = vec4(0.); - - //VTK::Color::Impl - - //VTK::TCoord::Impl - - //VTK::Normal::Impl - - var computedColor: vec4 = vec4(diffuseColor.rgb, 1.0); - - //VTK::Light::Impl - - //VTK::Select::Impl - - // Use texture alpha for transparency - computedColor.a = mapperUBO.Opacity * _diffuseMap.a; - if (computedColor.a == 0.0) { discard; }; - - //VTK::Position::Impl - - //VTK::RenderEncoder::Impl - - return output; -} -`; -function isEdges(hash) { - // edge pipelines have "edge" in them - return hash.indexOf('edge') >= 0; -} - -// ---------------------------------------------------------------------------- -// vtkWebGPUCellArrayMapper methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUCellArrayMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUCellArrayMapper'); - publicAPI.buildPass = prepass => { - if (prepass) { - if (model.is2D) { - model.WebGPUActor = publicAPI.getFirstAncestorOfType('vtkWebGPUActor2D'); - model.forceZValue = true; - } else { - model.WebGPUActor = publicAPI.getFirstAncestorOfType('vtkWebGPUActor'); - model.forceZValue = false; - } - model.coordinateSystem = model.WebGPUActor.getRenderable().getCoordinateSystem(); - model.useRendererMatrix = model.coordinateSystem !== CoordinateSystem.DISPLAY; - model.WebGPURenderer = model.WebGPUActor.getFirstAncestorOfType('vtkWebGPURenderer'); - model.WebGPURenderWindow = model.WebGPURenderer.getParent(); - model.device = model.WebGPURenderWindow.getDevice(); - } - }; - - // Renders myself - publicAPI.translucentPass = prepass => { - if (prepass) { - publicAPI.prepareToDraw(model.WebGPURenderer.getRenderEncoder()); - model.renderEncoder.registerDrawCallback(model.pipeline, publicAPI.draw); - } - }; - publicAPI.opaquePass = prepass => { - if (prepass) { - publicAPI.prepareToDraw(model.WebGPURenderer.getRenderEncoder()); - model.renderEncoder.registerDrawCallback(model.pipeline, publicAPI.draw); - } - }; - publicAPI.updateUBO = () => { - const actor = model.WebGPUActor.getRenderable(); - const ppty = actor.getProperty(); - const utime = model.UBO.getSendTime(); - if (publicAPI.getMTime() <= utime && ppty.getMTime() <= utime && model.renderable.getMTime() <= utime) { - return; - } - - // --- Matrix Updates --- - const keyMats = model.WebGPUActor.getKeyMatrices(model.WebGPURenderer); - model.UBO.setArray('BCWCMatrix', keyMats.bcwc); - model.UBO.setArray('BCSCMatrix', keyMats.bcsc); - model.UBO.setArray('MCWCNormals', keyMats.normalMatrix); - - // --- 2D or 3D --- - if (model.is2D) { - const displayLoc = ppty.getDisplayLocation?.() ?? DisplayLocation.BACKGROUND; - model.UBO.setValue('ZValue', displayLoc === DisplayLocation.FOREGROUND ? 1.0 : 0.0); - const aColor = ppty.getColorByReference(); - model.UBO.setValue('AmbientIntensity', 1.0); - model.UBO.setArray('DiffuseColor', [...aColor, 1.0]); - model.UBO.setValue('DiffuseIntensity', 0.0); - model.UBO.setValue('SpecularIntensity', 0.0); - } else { - // Base Colors - model.UBO.setValue('AmbientIntensity', ppty.getAmbient()); - model.UBO.setArray('AmbientColor', [...ppty.getAmbientColorByReference(), 1.0]); - model.UBO.setValue('DiffuseIntensity', ppty.getDiffuse()); - model.UBO.setArray('DiffuseColor', [...ppty.getDiffuseColorByReference(), 1.0]); - // Roughness - model.UBO.setValue('Roughness', ppty.getRoughness()); - model.UBO.setValue('BaseIOR', ppty.getBaseIOR()); - // Metallic - model.UBO.setValue('Metallic', ppty.getMetallic()); - // Normal - model.UBO.setValue('NormalStrength', ppty.getNormalStrength()); - // Emission - model.UBO.setValue('Emission', ppty.getEmission()); - // Specular - model.UBO.setValue('SpecularIntensity', ppty.getSpecular()); - if (ppty.getSpecularColorByReference()) { - model.UBO.setArray('SpecularColor', [...ppty.getSpecularColorByReference(), 1.0]); - } - } - - // --- Edge and Misc --- - const edgeColor = ppty.getEdgeColorByReference?.(); - if (edgeColor) model.UBO.setArray('EdgeColor', [...edgeColor, 1.0]); - model.UBO.setValue('LineWidth', ppty.getLineWidth()); - model.UBO.setValue('Opacity', ppty.getOpacity()); - model.UBO.setValue('PropID', model.WebGPUActor.getPropID()); - - // Only send if needed - model.UBO.sendIfNeeded(model.WebGPURenderWindow.getDevice()); - }; - publicAPI.haveWideLines = () => { - const actor = model.WebGPUActor.getRenderable(); - const representation = actor.getProperty().getRepresentation(); - if (actor.getProperty().getLineWidth() <= 1.0) { - return false; - } - if (model.primitiveType === PrimitiveTypes.Verts) { - return false; - } - if (model.primitiveType === PrimitiveTypes.Triangles || model.primitiveType === PrimitiveTypes.TriangleStrips) { - return representation === Representation.WIREFRAME; - } - return true; - }; - publicAPI.replaceShaderPosition = (hash, pipeline, vertexInput) => { - const vDesc = pipeline.getShaderDescription('vertex'); - vDesc.addBuiltinOutput('vec4', '@builtin(position) Position'); - if (!vDesc.hasOutput('vertexVC')) vDesc.addOutput('vec4', 'vertexVC'); - let code = vDesc.getCode(); - if (model.useRendererMatrix) { - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Position::Impl', [' var pCoord: vec4 = rendererUBO.SCPCMatrix*mapperUBO.BCSCMatrix*vertexBC;', ' output.vertexVC = rendererUBO.SCVCMatrix * mapperUBO.BCSCMatrix * vec4(vertexBC.xyz, 1.0);', '//VTK::Position::Impl']).result; - if (model.forceZValue) { - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Position::Impl', ['pCoord = vec4(pCoord.xyz/pCoord.w, 1.0);', 'pCoord.z = mapperUBO.ZValue;', '//VTK::Position::Impl']).result; - } - } else { - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Position::Impl', [' var pCoord: vec4 = mapperUBO.BCSCMatrix*vertexBC;', ' pCoord.x = 2.0* pCoord.x / rendererUBO.viewportSize.x - 1.0;', ' pCoord.y = 2.0* pCoord.y / rendererUBO.viewportSize.y - 1.0;', ' pCoord.z = 0.5 - 0.5 * pCoord.z;', '//VTK::Position::Impl']).result; - if (model.forceZValue) { - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Position::Impl', [' pCoord.z = mapperUBO.ZValue;', '//VTK::Position::Impl']).result; - } - } - if (publicAPI.haveWideLines()) { - vDesc.addBuiltinInput('u32', '@builtin(instance_index) instanceIndex'); - // widen the edge - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Position::Impl', [' var tmpPos: vec4 = pCoord;', ' var numSteps: f32 = ceil(mapperUBO.LineWidth - 1.0);', ' var offset: f32 = (mapperUBO.LineWidth - 1.0) * (f32(input.instanceIndex / 2u) - numSteps/2.0) / numSteps;', ' var tmpPos2: vec3 = tmpPos.xyz / tmpPos.w;', ' tmpPos2.x = tmpPos2.x + 2.0 * (f32(input.instanceIndex) % 2.0) * offset / rendererUBO.viewportSize.x;', ' tmpPos2.y = tmpPos2.y + 2.0 * (f32(input.instanceIndex + 1u) % 2.0) * offset / rendererUBO.viewportSize.y;', ' tmpPos2.z = min(1.0, tmpPos2.z + 0.00001);', - // could become a setting - ' pCoord = vec4(tmpPos2.xyz * tmpPos.w, tmpPos.w);', '//VTK::Position::Impl']).result; - } - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Position::Impl', [' output.Position = pCoord;']).result; - vDesc.setCode(code); - }; - model.shaderReplacements.set('replaceShaderPosition', publicAPI.replaceShaderPosition); - publicAPI.replaceShaderNormal = (hash, pipeline, vertexInput) => { - const normalBuffer = vertexInput.getBuffer('normalMC'); - const actor = model.WebGPUActor.getRenderable(); - if (normalBuffer) { - const vDesc = pipeline.getShaderDescription('vertex'); - if (!vDesc.hasOutput('normalVC')) { - vDesc.addOutput('vec3', 'normalVC', normalBuffer.getArrayInformation()[0].interpolation); - } - if (!vDesc.hasOutput('tangentVC')) { - vDesc.addOutput('vec3', 'tangentVC', normalBuffer.getArrayInformation()[0].interpolation); - } - if (!vDesc.hasOutput('bitangentVC')) { - vDesc.addOutput('vec3', 'bitangentVC', normalBuffer.getArrayInformation()[0].interpolation); - } - let code = vDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Normal::Impl', [' output.normalVC = normalize((rendererUBO.WCVCNormals * mapperUBO.MCWCNormals * normalMC).xyz);', - // This is just an approximation, but it happens to work extremely well - // It only works well for normals that are head on and not super angled though - // Definitely needs to be replaced - ' var c1: vec3 = cross(output.normalVC, vec3(0, 0, 1));', ' var c2: vec3 = cross(output.normalVC, vec3(0, 1, 0));', ' var tangent: vec3 = mix(c1, c2, distance(c1, c2));', ' output.tangentVC = normalize(tangent);', ' output.bitangentVC = normalize(cross(output.normalVC, tangent));']).result; - vDesc.setCode(code); - const fDesc = pipeline.getShaderDescription('fragment'); - code = fDesc.getCode(); - if (actor.getProperty().getNormalTexture()) { - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Normal::Impl', [' var normal: vec3 = input.normalVC;', ' if (!input.frontFacing) { normal = -normal; }', ' var tangent: vec3 = input.tangentVC;', ' var bitangent: vec3 = input.bitangentVC;', ' var TCVCMatrix: mat3x3 = mat3x3(', ' tangent.x, bitangent.x, normal.x,', ' tangent.y, bitangent.y, normal.y,', ' tangent.z, bitangent.z, normal.z,', ' );', ' var mappedNormal: vec3 = TCVCMatrix * (_normalMap.xyz * 2 - 1);', ' normal = mix(normal, mappedNormal, mapperUBO.NormalStrength);', ' normal = normalize(normal);']).result; - } else { - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Normal::Impl', [' var normal: vec3 = input.normalVC;', ' if (!input.frontFacing) { normal = -normal; }', ' normal = normalize(normal);']).result; - } - fDesc.setCode(code); - } - }; - model.shaderReplacements.set('replaceShaderNormal', publicAPI.replaceShaderNormal); - - // we only apply lighting when there is a "var normal" declaration in the - // fragment shader code. That is the lighting trigger. - publicAPI.replaceShaderLight = (hash, pipeline, vertexInput) => { - if (hash.includes('sel')) return; - const vDesc = pipeline.getShaderDescription('vertex'); - if (!vDesc.hasOutput('vertexVC')) vDesc.addOutput('vec4', 'vertexVC'); - const renderer = model.WebGPURenderer.getRenderable(); - const fDesc = pipeline.getShaderDescription('fragment'); - let code = fDesc.getCode(); - - // Code that runs if the fragment shader includes normals - if (code.includes('var normal:') && model.useRendererMatrix && !isEdges(hash) && !model.is2D && !hash.includes('sel')) { - const lightingCode = [ - // Vectors needed for light calculations - ' let fragPos = vec3(input.vertexVC.xyz);', ' let V = mix(normalize(-fragPos), vec3(0, 0, 1), f32(rendererUBO.cameraParallel)); // View Vector', - // Values needed for light calculations - ' let baseColor = _diffuseMap.rgb * diffuseColor.rgb;', ' let roughness = max(0.000001, mapperUBO.Roughness * _roughnessMap.r);', - // Need to have a different way of sampling greyscale values aside from .r - ' let metallic = mapperUBO.Metallic * _metallicMap.r;', ' let alpha = roughness * roughness;', ' let k = alpha * alpha / 2.0;', - // Split diffuse and specular components - ' var diffuse = vec3(0.);', ' var specular = vec3(0.);', ' let emission = _emissionMap.rgb * mapperUBO.Emission;', '', ' // Material struct', ' let mat = Material(ior, roughness, metallic, baseColor);', '', - // Summing diffuse and specular components of directional lights - ' {', ' var i = 0;', ' loop {', ' if (!(i < rendererUBO.LightCount)) { break; }', ' switch (i32(rendererLightSSBO.values[i].LightData.x)) {', ' // Point Light', ' case 0 {', ' let color = rendererLightSSBO.values[i].LightColor.rgb * rendererLightSSBO.values[i].LightColor.w;', ' let pos = (rendererLightSSBO.values[i].LightPos).xyz;', ' let pointLight = PointLight(pos, color);', ' let result = calcPointLight(normal, V, fragPos, mat, pointLight);', ' diffuse += max(vec3(0), result.diffuse);', ' specular += max(vec3(0), result.specular);', ' }', ' // Directional light', ' case 1 {', ' let dir = normalize((rendererUBO.WCVCNormals * vec4(normalize(rendererLightSSBO.values[i].LightDir.xyz), 0.)).xyz);', ' let color = rendererLightSSBO.values[i].LightColor.rgb * rendererLightSSBO.values[i].LightColor.w;', ' let dirLight = DirectionalLight(dir, color);', ' let result = calcDirectionalLight(normal, V, mat, dirLight); // diffuseColor.rgb needs to be fixed with a more dynamic diffuse color', ' diffuse += max(vec3(0), result.diffuse);', ' specular += max(vec3(0), result.specular);', ' }', ' // Spot Light', ' case 2 {', ' let color = rendererLightSSBO.values[i].LightColor.rgb * rendererLightSSBO.values[i].LightColor.w;', ' let pos = (rendererLightSSBO.values[i].LightPos).xyz;', ' let dir = normalize((rendererUBO.WCVCNormals * vec4(normalize(rendererLightSSBO.values[i].LightDir.xyz), 0.)).xyz);', ' let cones = vec2(rendererLightSSBO.values[i].LightData.y, rendererLightSSBO.values[i].LightData.z);', ' let spotLight = SpotLight(pos, dir, cones, color);', ' let result = calcSpotLight(normal, V, fragPos, mat, spotLight);', ' diffuse += max(vec3(0), result.diffuse);', ' specular += max(vec3(0), result.specular);', ' }', ' default { continue; }', ' }', ' continuing { i++; }', ' }', ' }', - // Final variables for combining specular and diffuse - ' let fresnel = min(1.0, schlickFresnelIOR(V, normal, ior, k)); // Fresnel', ' // This could be controlled with its own variable (that isnt base color) for better artistic control', ' let fresnelMetallic = schlickFresnelRGB(V, normal, baseColor); // Fresnel for metal, takes color into account', ' let kS = min(vec3(1.0), mix(vec3(fresnel), fresnelMetallic, metallic));', ' let kD = (1.0 - kS) * (1.0 - metallic);', ' let PBR = mapperUBO.DiffuseIntensity * kD * diffuse + kS * specular;', ' computedColor = vec4(PBR + emission, mapperUBO.Opacity);']; - if (renderer.getEnvironmentTexture()?.getImageLoaded()) { - lightingCode.push(' // To get diffuse IBL, the texture is sampled with normals in worldspace', ' let diffuseIBLCoords = (transpose(rendererUBO.WCVCNormals) * vec4(normal, 1.)).xyz;', ' let diffuseCoords = vecToRectCoord(diffuseIBLCoords);', ' // To get specular IBL, the texture is sampled as the worldspace reflection between the normal and view vectors', ' // Reflections are first calculated in viewspace, then converted to worldspace to sample the environment', ' let VreflN = normalize(reflect(-V, normal));', ' let reflectionIBLCoords = (transpose(rendererUBO.WCVCNormals) * vec4(VreflN, 1.)).xyz;', ' let specularCoords = vecToRectCoord(reflectionIBLCoords);', ' let diffuseIBL = textureSampleLevel(EnvironmentTexture, EnvironmentTextureSampler, diffuseCoords, rendererUBO.MaxEnvironmentMipLevel);', - // Level multiplier should be set by UBO - ' let level = roughness * rendererUBO.MaxEnvironmentMipLevel;', ' let specularIBL = textureSampleLevel(EnvironmentTexture, EnvironmentTextureSampler, specularCoords, level);', - // Manual mip smoothing since not all formats support smooth level sampling - ' let specularIBLContribution = specularIBL.rgb * rendererUBO.BackgroundSpecularStrength;', ' computedColor += vec4(specularIBLContribution * kS, 0);', ' let diffuseIBLContribution = diffuseIBL.rgb * rendererUBO.BackgroundDiffuseStrength;', ' computedColor += vec4(diffuseIBLContribution * baseColor * _ambientOcclusionMap.rgb * kD, 0);'); - } - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Light::Impl', lightingCode).result; - fDesc.setCode(code); - // If theres no normals, just set the specular color to be flat - } else { - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Light::Impl', [' let diffuse = diffuseColor.rgb;', ' let specular = mapperUBO.SpecularColor.rgb * mapperUBO.SpecularColor.a;', ' computedColor = vec4(diffuse * _diffuseMap.rgb, mapperUBO.Opacity);']).result; - fDesc.setCode(code); - } - }; - model.shaderReplacements.set('replaceShaderLight', publicAPI.replaceShaderLight); - publicAPI.replaceShaderColor = (hash, pipeline, vertexInput) => { - // By default, set the colors to be flat - if (isEdges(hash)) { - const fDesc = pipeline.getShaderDescription('fragment'); - let code = fDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Color::Impl', ['ambientColor = mapperUBO.EdgeColor;', 'diffuseColor = mapperUBO.EdgeColor;']).result; - fDesc.setCode(code); - return; - } - - // If there's no vertex color buffer return the shader as is - const colorBuffer = vertexInput.getBuffer('colorVI'); - if (!colorBuffer) return; - - // Modifies the vertex shader to include the vertex colors and interpolation in the outputs - const vDesc = pipeline.getShaderDescription('vertex'); - vDesc.addOutput('vec4', 'color', colorBuffer.getArrayInformation()[0].interpolation); - let code = vDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Color::Impl', [' output.color = colorVI;']).result; - vDesc.setCode(code); - - // Sets the fragment shader to accept the color inputs from the vertex shader - const fDesc = pipeline.getShaderDescription('fragment'); - code = fDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Color::Impl', ['ambientColor = input.color;', 'diffuseColor = input.color;', 'opacity = mapperUBO.Opacity * input.color.a;']).result; - fDesc.setCode(code); - }; - model.shaderReplacements.set('replaceShaderColor', publicAPI.replaceShaderColor); - publicAPI.replaceShaderTCoord = (hash, pipeline, vertexInput) => { - if (!vertexInput.hasAttribute('tcoord')) return; - const vDesc = pipeline.getShaderDescription('vertex'); - const tcoords = vertexInput.getBuffer('tcoord'); - const numComp = vtkWebGPUTypes.getNumberOfComponentsFromBufferFormat(tcoords.getArrayInformation()[0].format); - let code = vDesc.getCode(); - vDesc.addOutput(`vec${numComp}`, 'tcoordVS'); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::TCoord::Impl', [' output.tcoordVS = tcoord;']).result; - vDesc.setCode(code); - const fDesc = pipeline.getShaderDescription('fragment'); - code = fDesc.getCode(); - const actor = model.WebGPUActor.getRenderable(); - const property = actor.getProperty(); - const checkDims = texture => { - if (!texture) return false; - const dims = texture.getDimensionality(); - return dims === numComp; - }; - const usedTextures = []; - const diffuseTexture = property.getDiffuseTexture?.(); - if (diffuseTexture?.getImageLoaded() || actor.getTextures()[0] || model.colorTexture) { - if ( - // Chained or statements here are questionable - checkDims(diffuseTexture) || checkDims(actor.getTextures()[0]) || checkDims(model.colorTexture)) { - usedTextures.push('_diffuseMap = textureSample(DiffuseTexture, DiffuseTextureSampler, input.tcoordVS);'); - } - } - const ormTexture = property.getORMTexture?.(); - const rmTexture = property.getRMTexture?.(); - const roughnessTexture = property.getRoughnessTexture?.(); - const metallicTexture = property.getMetallicTexture?.(); - const ambientOcclusionTexture = property.getAmbientOcclusionTexture?.(); - const emissionTexture = property.getEmissionTexture?.(); - const normalTexture = property.getNormalTexture?.(); - - // ORM texture support: if present, sample R/G/B for AO/Roughness/Metallic - if (ormTexture?.getImageLoaded()) { - if (checkDims(ormTexture)) { - usedTextures.push('_ambientOcclusionMap = textureSample(ORMTexture, ORMTextureSampler, input.tcoordVS).rrra;', '_roughnessMap = textureSample(ORMTexture, ORMTextureSampler, input.tcoordVS).ggga;', '_metallicMap = textureSample(ORMTexture, ORMTextureSampler, input.tcoordVS).bbba;'); - } - } else if (rmTexture?.getImageLoaded()) { - if (checkDims(rmTexture)) { - usedTextures.push('_roughnessMap = textureSample(RMTexture, RMTextureSampler, input.tcoordVS).ggga;', '_metallicMap = textureSample(RMTexture, RMTextureSampler, input.tcoordVS).bbba;'); - } - } else { - if (roughnessTexture?.getImageLoaded()) { - if (checkDims(roughnessTexture)) { - usedTextures.push('_roughnessMap = textureSample(RoughnessTexture, RoughnessTextureSampler, input.tcoordVS).ggga;'); - } - } - if (metallicTexture?.getImageLoaded()) { - if (checkDims(metallicTexture)) { - usedTextures.push('_metallicMap = textureSample(MetallicTexture, MetallicTextureSampler, input.tcoordVS).bbba;'); - } - } - if (ambientOcclusionTexture?.getImageLoaded()) { - if (checkDims(ambientOcclusionTexture)) { - usedTextures.push('_ambientOcclusionMap = textureSample(AmbientOcclusionTexture, AmbientOcclusionTextureSampler, input.tcoordVS).rrra;'); - } - } - } - if (emissionTexture?.getImageLoaded()) { - if (checkDims(emissionTexture)) { - usedTextures.push('_emissionMap = textureSample(EmissionTexture, EmissionTextureSampler, input.tcoordVS);'); - } - } - if (normalTexture?.getImageLoaded()) { - if (checkDims(normalTexture)) { - usedTextures.push('_normalMap = textureSample(NormalTexture, NormalTextureSampler, input.tcoordVS);'); - } - } - code = vtkWebGPUShaderCache.substitute(code, '//VTK::TCoord::Impl', usedTextures).result; - fDesc.setCode(code); - }; - model.shaderReplacements.set('replaceShaderTCoord', publicAPI.replaceShaderTCoord); - publicAPI.replaceShaderSelect = (hash, pipeline, vertexInput) => { - if (hash.includes('sel')) { - const fDesc = pipeline.getShaderDescription('fragment'); - let code = fDesc.getCode(); - // by default there are no composites, so just 0 - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Select::Impl', [' var compositeID: u32 = 0u;']).result; - fDesc.setCode(code); - } - }; - model.shaderReplacements.set('replaceShaderSelect', publicAPI.replaceShaderSelect); - publicAPI.getUsage = (rep, i) => { - if (rep === Representation.POINTS || i === PrimitiveTypes.Points) { - return BufferUsage.Verts; - } - if (i === PrimitiveTypes.Lines) { - return BufferUsage.Lines; - } - if (rep === Representation.WIREFRAME) { - if (i === PrimitiveTypes.Triangles) { - return BufferUsage.LinesFromTriangles; - } - return BufferUsage.LinesFromStrips; - } - if (i === PrimitiveTypes.Triangles) { - return BufferUsage.Triangles; - } - if (i === PrimitiveTypes.TriangleStrips) { - return BufferUsage.Strips; - } - if (i === PrimitiveTypes.TriangleEdges) { - return BufferUsage.LinesFromTriangles; - } - - // only strip edges left which are lines - return BufferUsage.LinesFromStrips; - }; - publicAPI.getHashFromUsage = usage => `pt${usage}`; - publicAPI.getTopologyFromUsage = usage => { - switch (usage) { - case BufferUsage.Triangles: - return 'triangle-list'; - case BufferUsage.Verts: - return 'point-list'; - case BufferUsage.Lines: - default: - return 'line-list'; - } - }; - - // TODO: calculate tangents - publicAPI.buildVertexInput = () => { - const pd = model.currentInput; - const cells = model.cellArray; - const primType = model.primitiveType; - const actor = model.WebGPUActor.getRenderable(); - let representation = actor.getProperty().getRepresentation(); - const device = model.WebGPURenderWindow.getDevice(); - let edges = false; - if (primType === PrimitiveTypes.TriangleEdges) { - edges = true; - representation = Representation.WIREFRAME; - } - const vertexInput = model.vertexInput; - const points = pd.getPoints(); - - // --- Index Buffer --- - let indexBuffer = null; - if (cells) { - indexBuffer = device.getBufferManager().getBuffer({ - hash: `R${representation}P${primType}${cells.getMTime()}`, - usage: BufferUsage.Index, - cells, - numberOfPoints: points.getNumberOfPoints(), - primitiveType: primType, - representation - }); - vertexInput.setIndexBuffer(indexBuffer); - } else { - vertexInput.setIndexBuffer(null); - } - - // hash = all things that can change the values on the buffer - // since mtimes are unique we can use - // - indexBuffer mtime - because cells drive how we pack - // - relevant dataArray mtime - the source data - // - shift - not currently captured - // - scale - not currently captured - // - format - // - usage - // - packExtra - covered by format - // --- Points Buffer --- - if (points) { - const shift = model.WebGPUActor.getBufferShift(model.WebGPURenderer); - vertexInput.addBuffer(device.getBufferManager().getBuffer({ - hash: `${points.getMTime()}I${indexBuffer?.getMTime?.() ?? 0}${shift.join()}float32x4`, - usage: BufferUsage.PointArray, - format: 'float32x4', - dataArray: points, - indexBuffer, - shift, - packExtra: true - }), ['vertexBC']); - } else { - vertexInput.removeBufferIfPresent('vertexBC'); - } - - // --- Normals --- - const usage = publicAPI.getUsage(representation, primType); - model._usesCellNormals = false; - if (!model.is2D && ( - // no lighting on Property2D - usage === BufferUsage.Triangles || usage === BufferUsage.Strips)) { - const normals = pd.getPointData().getNormals(); - // https://vtk.org/doc/nightly/html/classvtkPolyDataTangents.html - // Need to find some way of using precomputed tangents (or computing new ones) - const buffRequest = { - format: 'snorm8x4', - indexBuffer, - packExtra: true, - shift: 0, - scale: 127 - }; - if (normals) { - buffRequest.hash = `${normals.getMTime()}I${indexBuffer.getMTime()}snorm8x4`; - buffRequest.dataArray = normals; - buffRequest.usage = BufferUsage.PointArray; - vertexInput.addBuffer(device.getBufferManager().getBuffer(buffRequest), ['normalMC']); - } else if (primType === PrimitiveTypes.Triangles) { - model._usesCellNormals = true; - buffRequest.hash = `PFN${points.getMTime()}I${indexBuffer.getMTime()}snorm8x4`; - buffRequest.dataArray = points; - buffRequest.cells = cells; - buffRequest.usage = BufferUsage.NormalsFromPoints; - vertexInput.addBuffer(device.getBufferManager().getBuffer(buffRequest), ['normalMC']); - } else { - vertexInput.removeBufferIfPresent('normalMC'); - } - } else { - vertexInput.removeBufferIfPresent('normalMC'); - } - - // --- Colors --- - let haveColors = false; - if (model.renderable.getScalarVisibility()) { - const c = model.renderable.getColorMapColors(); - if (c && !edges) { - const scalarMode = model.renderable.getScalarMode(); - // We must figure out how the scalars should be mapped to the polydata. - const haveCellScalars = (scalarMode === ScalarMode.USE_CELL_DATA || scalarMode === ScalarMode.USE_CELL_FIELD_DATA || scalarMode === ScalarMode.USE_FIELD_DATA || !pd.getPointData().getScalars()) && scalarMode !== ScalarMode.USE_POINT_FIELD_DATA && c; - vertexInput.addBuffer(device.getBufferManager().getBuffer({ - usage: BufferUsage.PointArray, - format: 'unorm8x4', - hash: `${haveCellScalars}${c.getMTime()}I${indexBuffer.getMTime()}unorm8x4`, - dataArray: c, - indexBuffer, - cellData: haveCellScalars, - cellOffset: 0 - }), ['colorVI']); - haveColors = true; - } - } - if (!haveColors) vertexInput.removeBufferIfPresent('colorVI'); - - // --- Texture Coordinates --- - let tcoords = null; - if (model.renderable.getInterpolateScalarsBeforeMapping?.() && model.renderable.getColorCoordinates()) { - tcoords = model.renderable.getColorCoordinates(); - } else { - tcoords = pd.getPointData().getTCoords(); - } - if (tcoords && !edges) { - vertexInput.addBuffer(device.getBufferManager().getBufferForPointArray(tcoords, vertexInput.getIndexBuffer()), ['tcoord']); - } else { - vertexInput.removeBufferIfPresent('tcoord'); - } - }; - publicAPI.updateTextures = () => { - // Track textures in-use and new - const usedTextures = []; - const newTextures = []; - - // Add scalar color texture if available - const idata = model.renderable.getColorTextureMap?.(); - if (idata && !model.colorTexture) { - model.colorTexture = vtkTexture.newInstance({ - label: 'polyDataColor' - }); - } - if (idata) { - model.colorTexture.setInputData(idata); - newTextures.push(['DiffuseTexture', model.colorTexture]); - } - const actor = model.WebGPUActor.getRenderable(); - const renderer = model.WebGPURenderer.getRenderable(); - const textures = [['DiffuseTexture', actor.getProperty().getDiffuseTexture?.()], ['DiffuseTexture', actor.getTextures()[0]], ['DiffuseTexture', model.colorTexture], ['ORMTexture', actor.getProperty().getORMTexture?.()], ['RMTexture', actor.getProperty().getRMTexture?.()], ['RoughnessTexture', actor.getProperty().getRoughnessTexture?.()], ['MetallicTexture', actor.getProperty().getMetallicTexture?.()], ['NormalTexture', actor.getProperty().getNormalTexture?.()], ['AmbientOcclusionTexture', actor.getProperty().getAmbientOcclusionTexture?.()], ['EmissionTexture', actor.getProperty().getEmissionTexture?.()], ['EnvironmentTexture', renderer.getEnvironmentTexture?.()]]; - textures.forEach(_ref => { - let [name, tex] = _ref; - if (!tex) return; - if (tex.getInputData() || tex.getJsImageData() || tex.getCanvas() || tex.getImageBitmap()) { - newTextures.push([name, tex]); - } - if (tex.getImage() && tex.getImageLoaded()) { - newTextures.push([name, tex]); - } - }); - - // Add textures to manager only if not present - newTextures.forEach(_ref2 => { - let [textureName, srcTexture] = _ref2; - const newTex = model.device.getTextureManager().getTextureForVTKTexture(srcTexture, textureName); - if (!newTex.getReady()) return; - let found = false; - for (let t = 0; t < model.textures.length; ++t) { - if (model.textures[t] === newTex) { - found = true; - usedTextures[t] = true; - break; - } - } - if (!found) { - usedTextures[model.textures.length] = true; - const tview = newTex.createView(textureName); - model.textures.push(newTex); - model.textureViews.push(tview); - - // Sampler setup - const interpolate = srcTexture.getInterpolate() ? 'linear' : 'nearest'; - let addressMode = null; - if (srcTexture.getEdgeClamp() && srcTexture.getRepeat()) addressMode = 'mirror-repeat';else if (srcTexture.getEdgeClamp()) addressMode = 'clamp-to-edge';else if (srcTexture.getRepeat()) addressMode = 'repeat'; - - // Handle environment texture separately - let options = { - addressModeU: addressMode, - addressModeV: addressMode, - addressModeW: addressMode, - minFilter: interpolate, - magFilter: interpolate - }; - if (textureName === 'EnvironmentTexture') { - options = { - addressModeU: 'repeat', - addressModeV: 'clamp-to-edge', - addressModeW: 'repeat', - minFilter: interpolate, - magFilter: interpolate, - mipmapFilter: 'linear' - }; - } - tview.addSampler(model.device, options); - } - }); - - // remove unused textures - for (let i = model.textures.length - 1; i >= 0; i--) { - if (!usedTextures[i]) { - model.textures.splice(i, 1); - model.textureViews.splice(i, 1); - } - } - }; - - // compute a unique hash for a pipeline, this needs to be unique enough to - // capture any pipeline code changes (which includes shader changes) - // or vertex input changes/ bind groups/ etc - publicAPI.computePipelineHash = () => { - let pipelineHash = `pd${model.useRendererMatrix ? 'r' : ''}${model.forceZValue ? 'z' : ''}`; - if (model.primitiveType === PrimitiveTypes.TriangleEdges || model.primitiveType === PrimitiveTypes.TriangleStripEdges) { - pipelineHash += 'edge'; - } else { - if (model.vertexInput.hasAttribute(`normalMC`)) { - pipelineHash += `n`; - } - if (model.vertexInput.hasAttribute(`colorVI`)) { - pipelineHash += `c`; - } - if (model.vertexInput.hasAttribute(`tcoord`)) { - const tcoords = model.vertexInput.getBuffer('tcoord'); - const numComp = vtkWebGPUTypes.getNumberOfComponentsFromBufferFormat(tcoords.getArrayInformation()[0].format); - pipelineHash += `t${numComp}`; - } - if (model.textures.length) { - pipelineHash += `tx${model.textures.length}`; - } - } - if (model._usesCellNormals) { - pipelineHash += `cn`; - } - if (model.SSBO) { - pipelineHash += `ssbo`; - } - const uhash = publicAPI.getHashFromUsage(model.usage); - pipelineHash += uhash; - pipelineHash += model.renderEncoder.getPipelineHash(); - model.pipelineHash = pipelineHash; - }; - publicAPI.updateBuffers = () => { - // handle textures if not edges - if (model.primitiveType !== PrimitiveTypes.TriangleEdges && model.primitiveType !== PrimitiveTypes.TriangleStripEdges) { - publicAPI.updateTextures(); - } - const actor = model.WebGPUActor.getRenderable(); - const rep = actor.getProperty().getRepresentation(); - - // handle per primitive type - model.usage = publicAPI.getUsage(rep, model.primitiveType); - publicAPI.buildVertexInput(); - const vbo = model.vertexInput.getBuffer('vertexBC'); - publicAPI.setNumberOfVertices(vbo.getSizeInBytes() / vbo.getStrideInBytes()); - publicAPI.setTopology(publicAPI.getTopologyFromUsage(model.usage)); - publicAPI.updateUBO(); - if (publicAPI.haveWideLines()) { - const ppty = actor.getProperty(); - publicAPI.setNumberOfInstances(Math.ceil(ppty.getLineWidth() * 2.0)); - } else { - publicAPI.setNumberOfInstances(1); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - is2D: false, - cellArray: null, - currentInput: null, - cellOffset: 0, - primitiveType: 0, - colorTexture: null, - renderEncoder: null, - textures: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initiaLalues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initiaLalues); - - // Inheritance - vtkWebGPUSimpleMapper.extend(publicAPI, model, initiaLalues); - model.fragmentShaderTemplate = vtkWebGPUPolyDataFS; - model.vertexShaderTemplate = vtkWebGPUPolyDataVS; - model._tmpMat3 = mat3.identity(new Float64Array(9)); - model._tmpMat4 = mat4.identity(new Float64Array(16)); - - // UBO - model.UBO = vtkWebGPUUniformBuffer.newInstance({ - label: 'mapperUBO' - }); - model.UBO.addEntry('BCWCMatrix', 'mat4x4'); - model.UBO.addEntry('BCSCMatrix', 'mat4x4'); - model.UBO.addEntry('MCWCNormals', 'mat4x4'); - model.UBO.addEntry('AmbientColor', 'vec4'); - model.UBO.addEntry('DiffuseColor', 'vec4'); - model.UBO.addEntry('EdgeColor', 'vec4'); - model.UBO.addEntry('SpecularColor', 'vec4'); - model.UBO.addEntry('AmbientIntensity', 'f32'); - model.UBO.addEntry('DiffuseIntensity', 'f32'); - model.UBO.addEntry('Roughness', 'f32'); - model.UBO.addEntry('Metallic', 'f32'); - model.UBO.addEntry('Ambient', 'f32'); - model.UBO.addEntry('Normal', 'f32'); - model.UBO.addEntry('Emission', 'f32'); - model.UBO.addEntry('NormalStrength', 'f32'); - model.UBO.addEntry('BaseIOR', 'f32'); - model.UBO.addEntry('SpecularIntensity', 'f32'); - model.UBO.addEntry('LineWidth', 'f32'); - model.UBO.addEntry('Opacity', 'f32'); - model.UBO.addEntry('ZValue', 'f32'); - model.UBO.addEntry('PropID', 'u32'); - model.UBO.addEntry('ClipNear', 'f32'); - model.UBO.addEntry('ClipFar', 'f32'); - model.UBO.addEntry('Time', 'u32'); - - // Build VTK API - setGet(publicAPI, model, ['cellArray', 'currentInput', 'cellOffset', 'is2D', 'primitiveType', 'renderEncoder']); - model.textures = []; - - // Object methods - vtkWebGPUCellArrayMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkWebGPUCellArrayMapper'); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUCellArrayMapper$1 = { - newInstance, - extend -}; - -export { vtkWebGPUCellArrayMapper$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/CubeAxesActor.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/CubeAxesActor.js deleted file mode 100644 index 630c110d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/CubeAxesActor.js +++ /dev/null @@ -1,70 +0,0 @@ -import { n as newInstance$1 } from '../../macros2.js'; -import vtkCubeAxesActor from '../Core/CubeAxesActor.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -// ---------------------------------------------------------------------------- -// vtkWebGPUCubeAxesActor methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUCubeAxesActor(publicAPI, model) { - model.classHierarchy.push('vtkWebGPUCubeAxesActor'); - - // Builds myself. - publicAPI.buildPass = prepass => { - if (prepass) { - model.WebGPURenderer = publicAPI.getFirstAncestorOfType('vtkWebGPURenderer'); - model.WebGPURenderWindow = model.WebGPURenderer.getParent(); - if (!model.CubeAxesActorHelper.getRenderable()) { - model.CubeAxesActorHelper.setRenderable(model.renderable); - } - publicAPI.prepareNodes(); - publicAPI.addMissingNode(model.CubeAxesActorHelper.getTmActor()); - publicAPI.addMissingNode(model.renderable.getGridActor()); - publicAPI.removeUnusedNodes(); - } - }; - publicAPI.opaquePass = (prepass, renderPass) => { - if (prepass) { - const camera = model.WebGPURenderer ? model.WebGPURenderer.getRenderable().getActiveCamera() : null; - const tsize = model.WebGPURenderer.getTiledSizeAndOrigin(); - model.CubeAxesActorHelper.updateAPISpecificData([tsize.usize, tsize.vsize], camera, model.WebGPURenderWindow.getRenderable()); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - model.CubeAxesActorHelper = vtkCubeAxesActor.newCubeAxesActorHelper(); - - // Object methods - vtkWebGPUCubeAxesActor(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkWebGPUCubeAxesActor'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -// Register ourself to WebGPU backend if imported -registerOverride('vtkCubeAxesActor', newInstance); - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Device.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Device.js deleted file mode 100644 index 33e19fb4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Device.js +++ /dev/null @@ -1,191 +0,0 @@ -import { n as newInstance$1, o as obj, e as setGet, g as get } from '../../macros2.js'; -import vtkWebGPUBufferManager from './BufferManager.js'; -import vtkWebGPUShaderCache from './ShaderCache.js'; -import vtkWebGPUTextureManager from './TextureManager.js'; - -/** - * provide a simple WeakRefMap class to share device objects based on - * hash values so that buffers/textures etc can be shared betwen mappers. - * This is roughly based on WeakLRUCache but without the actual caching - * behavior. This is just a map of key -> WeakRef(value) - */ - -/* eslint-disable no-undef */ -class WeakRefMap extends Map { - constructor() { - super(); - this.registry = new FinalizationRegistry(key => { - const entry = super.get(key); - if (entry && entry.deref && entry.deref() === undefined) super.delete(key); - }); - } - getValue(key) { - const entry = super.get(key); - if (entry) { - const value = entry.deref(); - if (value !== undefined) return value; - super.delete(key); - } - return undefined; - } - setValue(key, value) { - let entry; - if (value && typeof value === 'object') { - entry = new WeakRef(value); - this.registry.register(value, key); - super.set(key, entry); - } - // else entry is undefined - return entry; - } -} -/* eslint-enable no-undef */ - -// ---------------------------------------------------------------------------- -// vtkWebGPUDevice methods -// ---------------------------------------------------------------------------- -function vtkWebGPUDevice(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUDevice'); - publicAPI.initialize = handle => { - model.handle = handle; - }; - publicAPI.createCommandEncoder = () => model.handle.createCommandEncoder(); - publicAPI.submitCommandEncoder = commandEncoder => { - model.handle.queue.submit([commandEncoder.finish()]); - }; - publicAPI.getShaderModule = sd => model.shaderCache.getShaderModule(sd); - - /* eslint-disable no-bitwise */ - /* eslint-disable no-undef */ - publicAPI.getBindGroupLayout = val => { - if (!val.entries) { - return null; - } - - // add in basic required values if missing - for (let i = 0; i < val.entries.length; i++) { - const ent = val.entries[i]; - ent.binding = ent.binding || 0; - ent.visibility = ent.visibility || GPUShaderStage.VERTEX | GPUShaderStage.FRAGMENT; - } - - // do we already have one? - const sval = JSON.stringify(val); - for (let i = 0; i < model.bindGroupLayouts.length; i++) { - if (model.bindGroupLayouts[i].sval === sval) { - return model.bindGroupLayouts[i].layout; - } - } - - // create one and store it - const layout = model.handle.createBindGroupLayout(val); - - // we actually only store the stringified version - // as that is what we always compare against - model.bindGroupLayouts.push({ - sval, - layout - }); - return layout; - }; - publicAPI.getBindGroupLayoutDescription = layout => { - for (let i = 0; i < model.bindGroupLayouts.length; i++) { - if (model.bindGroupLayouts[i].layout === layout) { - return model.bindGroupLayouts[i].sval; - } - } - vtkErrorMacro('layout not found'); - console.trace(); - return null; - }; - publicAPI.getPipeline = hash => { - if (hash in model.pipelines) { - return model.pipelines[hash]; - } - return null; - }; - publicAPI.createPipeline = (hash, pipeline) => { - pipeline.initialize(publicAPI, hash); - model.pipelines[hash] = pipeline; - }; - publicAPI.onSubmittedWorkDone = () => model.handle.queue.onSubmittedWorkDone(); - - // The Device has an object cache that can be used to cache buffers, - // textures and other objects that can be shared. The basic approach is to - // call getCachedObject with a request and a create function. The request - // is based on a hash. The cache lookup just returns any entry that has a - // matching hash. If a match isn't found then the create function is - // called with any extra arguments. - - // is the object already cached? - publicAPI.hasCachedObject = hash => model.objectCache.getValue(hash); - publicAPI.getCachedObject = function (hash, creator) { - if (!hash) { - vtkErrorMacro('attempt to cache an object without a hash'); - return null; - } - const existingValue = model.objectCache.getValue(hash); - if (existingValue) { - return existingValue; - } - for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - args[_key - 2] = arguments[_key]; - } - const createdObject = creator(...args); - model.objectCache.setValue(hash, createdObject); - return createdObject; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- -const DEFAULT_VALUES = { - handle: null, - pipelines: null, - shaderCache: null, - bindGroupLayouts: null, - bufferManager: null, - textureManager: null -}; - -// ---------------------------------------------------------------------------- -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - obj(publicAPI, model); - setGet(publicAPI, model, ['handle']); - get(publicAPI, model, ['bufferManager', 'shaderCache', 'textureManager']); - - // this is a weak ref cache implementation, we create it without - // an expirer (so it is strictly based on garbage collection and - // objects are not held if there are no external references) - // model.objectCache = new WeakLRUCache({ expirer: false }); - model.objectCache = new WeakRefMap(); - model.shaderCache = vtkWebGPUShaderCache.newInstance(); - model.shaderCache.setDevice(publicAPI); - model.bindGroupLayouts = []; - model.bufferManager = vtkWebGPUBufferManager.newInstance(); - model.bufferManager.setDevice(publicAPI); - model.textureManager = vtkWebGPUTextureManager.newInstance(); - model.textureManager.setDevice(publicAPI); - model.pipelines = {}; - - // For more macro methods, see "Sources/macros.js" - // Object specific methods - vtkWebGPUDevice(publicAPI, model); -} - -// ---------------------------------------------------------------------------- -const newInstance = newInstance$1(extend, 'vtkWebGPUDevice'); - -// ---------------------------------------------------------------------------- -var vtkWebGPUDevice$1 = { - newInstance, - extend -}; - -export { WeakRefMap, vtkWebGPUDevice$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ForwardPass.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ForwardPass.js deleted file mode 100644 index c2f889b3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ForwardPass.js +++ /dev/null @@ -1,215 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkWebGPUFullScreenQuad from './FullScreenQuad.js'; -import vtkWebGPUOpaquePass from './OpaquePass.js'; -import vtkWebGPUOrderIndepenentTranslucentPass from './OrderIndependentTranslucentPass.js'; -import vtkWebGPURenderEncoder from './RenderEncoder.js'; -import vtkWebGPUVolumePass from './VolumePass.js'; -import vtkRenderPass from '../SceneGraph/RenderPass.js'; -import vtkWebGPUSampler from './Sampler.js'; -import vtkWebGPUTextureView from './TextureView.js'; - -const finalBlitFragTemplate = ` -//VTK::Mapper::Dec - -//VTK::TCoord::Dec - -//VTK::RenderEncoder::Dec - -//VTK::IOStructs::Dec - -@fragment -fn main( -//VTK::IOStructs::Input -) -//VTK::IOStructs::Output -{ - var output: fragmentOutput; - - var computedColor: vec4 = clamp(textureSampleLevel(opaquePassColorTexture, finalPassSampler, input.tcoordVS, 0.0),vec4(0.0),vec4(1.0)); - - //VTK::RenderEncoder::Impl - return output; -} -`; - -// ---------------------------------------------------------------------------- - -function vtkForwardPass(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkForwardPass'); - - // this pass implements a forward rendering pipeline - // if both volumes and opaque geometry are present - // it will mix the two together by capturing a zbuffer - // first - publicAPI.traverse = function (viewNode) { - let parent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - if (model.deleted) { - return; - } - - // we just render our delegates in order - model._currentParent = parent; - - // build - publicAPI.setCurrentOperation('buildPass'); - viewNode.traverse(publicAPI); - if (!model.opaquePass) { - model.opaquePass = vtkWebGPUOpaquePass.newInstance(); - } - const numlayers = viewNode.getRenderable().getNumberOfLayers(); - - // iterate over renderers - const renderers = viewNode.getChildren(); - for (let i = 0; i < numlayers; i++) { - for (let index = 0; index < renderers.length; index++) { - const renNode = renderers[index]; - const ren = viewNode.getRenderable().getRenderers()[index]; - if (ren.getDraw() && ren.getLayer() === i) { - // check for both opaque and volume actors - model.opaqueActorCount = 0; - model.translucentActorCount = 0; - model.volumes = []; - publicAPI.setCurrentOperation('queryPass'); - renNode.traverse(publicAPI); - publicAPI.setCurrentOperation('cameraPass'); - renNode.traverse(publicAPI); - - // always do opaque pass to get a valid color and zbuffer, even if empty - model.opaquePass.traverse(renNode, viewNode); - - // optional translucent pass - if (model.translucentActorCount > 0) { - if (!model.translucentPass) { - model.translucentPass = vtkWebGPUOrderIndepenentTranslucentPass.newInstance(); - } - model.translucentPass.setColorTextureView(model.opaquePass.getColorTextureView()); - model.translucentPass.setDepthTextureView(model.opaquePass.getDepthTextureView()); - model.translucentPass.traverse(renNode, viewNode); - } - - // optional volume pass - if (model.volumes.length > 0) { - if (!model.volumePass) { - model.volumePass = vtkWebGPUVolumePass.newInstance(); - } - model.volumePass.setColorTextureView(model.opaquePass.getColorTextureView()); - model.volumePass.setDepthTextureView(model.opaquePass.getDepthTextureView()); - model.volumePass.setVolumes(model.volumes); - model.volumePass.traverse(renNode, viewNode); - } - - // blit the result into the swap chain - publicAPI.finalPass(viewNode, renNode); - } - } - } - }; - publicAPI.finalPass = (viewNode, renNode) => { - if (!model._finalBlitEncoder) { - publicAPI.createFinalBlitEncoder(viewNode); - } - model._finalBlitOutputTextureView.createFromTextureHandle(viewNode.getCurrentTexture(), { - depth: 1, - format: viewNode.getPresentationFormat() - }); - model._finalBlitEncoder.attachTextureViews(); - model._finalBlitEncoder.begin(viewNode.getCommandEncoder()); - renNode.scissorAndViewport(model._finalBlitEncoder); - model._fullScreenQuad.prepareAndDraw(model._finalBlitEncoder); - model._finalBlitEncoder.end(); - }; - publicAPI.createFinalBlitEncoder = viewNode => { - model._finalBlitEncoder = vtkWebGPURenderEncoder.newInstance({ - label: 'forwardPassBlit' - }); - model._finalBlitEncoder.setDescription({ - colorAttachments: [{ - view: null, - loadOp: 'load', - storeOp: 'store' - }] - }); - model._finalBlitEncoder.setPipelineHash('fpf'); - model._finalBlitEncoder.setPipelineSettings({ - primitive: { - cullMode: 'none' - }, - fragment: { - targets: [{ - format: viewNode.getPresentationFormat(), - blend: { - color: { - srcFactor: 'src-alpha', - dstFactor: 'one-minus-src-alpha' - }, - alpha: { - srcFactor: 'one', - dstFactor: 'one-minus-src-alpha' - } - } - }] - } - }); - model._fsqSampler = vtkWebGPUSampler.newInstance({ - label: 'finalPassSampler' - }); - model._fsqSampler.create(viewNode.getDevice(), { - minFilter: 'linear', - magFilter: 'linear' - }); - model._fullScreenQuad = vtkWebGPUFullScreenQuad.newInstance(); - model._fullScreenQuad.setDevice(viewNode.getDevice()); - model._fullScreenQuad.setPipelineHash('fpfsq'); - model._fullScreenQuad.setTextureViews([model.opaquePass.getColorTextureView()]); - model._fullScreenQuad.setAdditionalBindables([model._fsqSampler]); - model._fullScreenQuad.setFragmentShaderTemplate(finalBlitFragTemplate); - model._finalBlitOutputTextureView = vtkWebGPUTextureView.newInstance(); - model._finalBlitEncoder.setColorTextureView(0, model._finalBlitOutputTextureView); - }; - publicAPI.incrementOpaqueActorCount = () => model.opaqueActorCount++; - publicAPI.incrementTranslucentActorCount = () => model.translucentActorCount++; - publicAPI.addVolume = volume => { - model.volumes.push(volume); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - opaqueActorCount: 0, - translucentActorCount: 0, - volumes: null, - opaqueRenderEncoder: null, - translucentPass: null, - volumePass: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - vtkRenderPass.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['opaquePass', 'translucentPass', 'volumePass']); - - // Object methods - vtkForwardPass(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkForwardPass'); - -// ---------------------------------------------------------------------------- - -var vtkForwardPass$1 = { - newInstance, - extend -}; - -export { vtkForwardPass$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/FullScreenQuad.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/FullScreenQuad.js deleted file mode 100644 index c553be59..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/FullScreenQuad.js +++ /dev/null @@ -1,58 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkWebGPUShaderCache from './ShaderCache.js'; -import vtkWebGPUSimpleMapper from './SimpleMapper.js'; - -// ---------------------------------------------------------------------------- -// vtkWebGPUFullScreenQuad methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUFullScreenQuad(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUFullScreenQuad'); - publicAPI.replaceShaderPosition = (hash, pipeline, vertexInput) => { - const vDesc = pipeline.getShaderDescription('vertex'); - vDesc.addBuiltinOutput('vec4', '@builtin(position) Position'); - vDesc.addOutput('vec4', 'vertexVC'); - let code = vDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Position::Impl', ['output.tcoordVS = vec2(vertexBC.x * 0.5 + 0.5, 1.0 - vertexBC.y * 0.5 - 0.5);', 'output.Position = vec4(vertexBC, 1.0);', 'output.vertexVC = vec4(vertexBC, 1);']).result; - vDesc.setCode(code); - }; - model.shaderReplacements.set('replaceShaderPosition', publicAPI.replaceShaderPosition); - publicAPI.updateBuffers = () => { - const buff = model.device.getBufferManager().getFullScreenQuadBuffer(); - model.vertexInput.addBuffer(buff, ['vertexBC']); - model.numberOfVertices = 6; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkWebGPUSimpleMapper.extend(publicAPI, model, initialValues); - - // Object methods - vtkWebGPUFullScreenQuad(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWebGPUFullScreenQuad'); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUFullScreenQuad$1 = { - newInstance, - extend -}; - -export { vtkWebGPUFullScreenQuad$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Glyph3DMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Glyph3DMapper.js deleted file mode 100644 index f8e4e804..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Glyph3DMapper.js +++ /dev/null @@ -1,187 +0,0 @@ -import { n as newInstance$1, o as obj } from '../../macros2.js'; -import vtkWebGPUCellArrayMapper from './CellArrayMapper.js'; -import vtkWebGPUPolyDataMapper from './PolyDataMapper.js'; -import vtkWebGPUStorageBuffer from './StorageBuffer.js'; -import vtkWebGPUShaderCache from './ShaderCache.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -function vtkWebGPUGlyph3DCellArrayMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUGlyph3DCellArrayMapper'); - const superClass = { - ...publicAPI - }; - publicAPI.setGlyphInstances = val => { - model.glyphInstances = val; - }; - publicAPI.updateBuffers = () => { - superClass.updateBuffers(); - publicAPI.setNumberOfInstances(model.glyphInstances); - }; - publicAPI.replaceShaderPosition = (hash, pipeline, vertexInput) => { - const vDesc = pipeline.getShaderDescription('vertex'); - vDesc.addBuiltinInput('u32', '@builtin(instance_index) instanceIndex'); - vDesc.addBuiltinOutput('vec4', '@builtin(position) Position'); - if (!vDesc.hasOutput('vertexVC')) vDesc.addOutput('vec3', 'vertexVC'); - let code = vDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Position::Impl', [' var vertexSC: vec4 = mapperUBO.BCSCMatrix*glyphSSBO.values[input.instanceIndex].matrix*vertexBC;', ' output.vertexVC = (rendererUBO.SCVCMatrix*vertexSC).xyz;', ' output.Position = rendererUBO.SCPCMatrix*vertexSC;']).result; - vDesc.setCode(code); - }; - model.shaderReplacements.set('replaceShaderPosition', publicAPI.replaceShaderPosition); - publicAPI.replaceShaderNormal = (hash, pipeline, vertexInput) => { - if (vertexInput.hasAttribute('normalMC')) { - const vDesc = pipeline.getShaderDescription('vertex'); - let code = vDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Normal::Impl', [' output.normalVC = normalize((rendererUBO.WCVCNormals', ' * mapperUBO.MCWCNormals', ' * glyphSSBO.values[input.instanceIndex].normal*normalMC).xyz);']).result; - vDesc.setCode(code); - } - superClass.replaceShaderNormal(hash, pipeline, vertexInput); - }; - model.shaderReplacements.set('replaceShaderNormal', publicAPI.replaceShaderNormal); - publicAPI.replaceShaderColor = (hash, pipeline, vertexInput) => { - if (!model.renderable.getColorArray()) { - superClass.replaceShaderColor(hash, pipeline, vertexInput); - return; - } - const vDesc = pipeline.getShaderDescription('vertex'); - vDesc.addOutput('vec4', 'color'); - let code = vDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Color::Impl', [' output.color = glyphSSBO.values[input.instanceIndex].color;']).result; - vDesc.setCode(code); - const fDesc = pipeline.getShaderDescription('fragment'); - code = fDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Color::Impl', ['ambientColor = input.color;', 'diffuseColor = input.color;', 'opacity = mapperUBO.Opacity * input.color.a;']).result; - fDesc.setCode(code); - }; - model.shaderReplacements.set('replaceShaderColor', publicAPI.replaceShaderColor); - publicAPI.replaceShaderSelect = (hash, pipeline, vertexInput) => { - if (hash.includes('sel')) { - const vDesc = pipeline.getShaderDescription('vertex'); - vDesc.addOutput('u32', 'compositeID', 'flat'); - let code = vDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Select::Impl', [' output.compositeID = input.instanceIndex;']).result; - vDesc.setCode(code); - const fDesc = pipeline.getShaderDescription('fragment'); - code = fDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Select::Impl', ['var compositeID: u32 = input.compositeID;']).result; - fDesc.setCode(code); - } - }; - model.shaderReplacements.set('replaceShaderSelect', publicAPI.replaceShaderSelect); -} - -// ---------------------------------------------------------------------------- -function caExtend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, {}, initialValues); - - // Inheritance - vtkWebGPUCellArrayMapper.extend(publicAPI, model, initialValues); - - // Object methods - vtkWebGPUGlyph3DCellArrayMapper(publicAPI, model); -} -const caNewInstance = newInstance$1(caExtend, 'vtkWebGPUGlyph3DCellArrayMapper'); - -// ---------------------------------------------------------------------------- -// vtkWebGPUSphereMapper methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUGlyph3DMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUGlyph3DMapper'); - publicAPI.createCellArrayMapper = () => { - const mpr = caNewInstance(); - mpr.setSSBO(model.SSBO); - mpr.setRenderable(model.renderable); - return mpr; - }; - publicAPI.buildPass = prepass => { - if (prepass) { - model.WebGPUActor = publicAPI.getFirstAncestorOfType('vtkWebGPUActor'); - if (!model.renderable.getStatic()) { - model.renderable.update(); - } - const gpoly = model.renderable.getInputData(1); - model.renderable.mapScalars(gpoly, 1.0); - publicAPI.updateSSBO(); - publicAPI.updateCellArrayMappers(gpoly); - for (let i = 0; i < model.children.length; i++) { - const cellMapper = model.children[i]; - cellMapper.setGlyphInstances(model.numInstances); - } - } - }; - publicAPI.updateSSBO = () => { - model.currentInput = model.renderable.getInputData(1); - model.renderable.buildArrays(); - - // update the buffer objects if needed - const garray = model.renderable.getMatrixArray(); - const narray = model.renderable.getNormalArray(); - model.carray = model.renderable.getColorArray(); - model.numInstances = garray.length / 16; - if (model.renderable.getBuildTime().getMTime() > model.glyphBOBuildTime.getMTime()) { - // In Core class all arrays are rebuilt when this happens - // but these arrays can be shared between all primType - model.WebGPURenderWindow = publicAPI.getFirstAncestorOfType('vtkWebGPURenderWindow'); - const device = model.WebGPURenderWindow.getDevice(); - model.SSBO.clearData(); - model.SSBO.setNumberOfInstances(model.numInstances); - model.SSBO.addEntry('matrix', 'mat4x4'); - model.SSBO.addEntry('normal', 'mat4x4'); - if (model.carray) { - model.SSBO.addEntry('color', 'vec4'); - } - model.SSBO.setAllInstancesFromArray('matrix', garray); - model.SSBO.setAllInstancesFromArray3x3To4x4('normal', narray); - if (model.carray) { - model.SSBO.setAllInstancesFromArrayColorToFloat('color', model.carray.getData()); - } - model.SSBO.send(device); - model.glyphBOBuildTime.modified(); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkWebGPUPolyDataMapper.extend(publicAPI, model, initialValues); - model.glyphBOBuildTime = {}; - obj(model.glyphBOBuildTime, { - mtime: 0 - }); - model.SSBO = vtkWebGPUStorageBuffer.newInstance({ - label: 'glyphSSBO' - }); - - // Object methods - vtkWebGPUGlyph3DMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkWebGPUGlyph3DMapper'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -// Register ourself to WebGPU backend if imported -registerOverride('vtkGlyph3DMapper', newInstance); - -export { caExtend, index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/HardwareSelectionPass.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/HardwareSelectionPass.js deleted file mode 100644 index 94f2536b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/HardwareSelectionPass.js +++ /dev/null @@ -1,140 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkWebGPURenderEncoder from './RenderEncoder.js'; -import vtkWebGPUTexture from './Texture.js'; -import vtkWebGPUShaderCache from './ShaderCache.js'; -import vtkRenderPass from '../SceneGraph/RenderPass.js'; - -// ---------------------------------------------------------------------------- - -function vtkWebGPUHardwareSelectionPass(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUHardwareSelectionPass'); - - // this pass implements a forward rendering pipeline - // if both volumes and opaque geometry are present - // it will mix the two together by capturing a zbuffer - // first - publicAPI.traverse = (viewNode, renNode) => { - if (model.deleted) { - return; - } - model._currentParent = null; - - // build - publicAPI.setCurrentOperation('buildPass'); - viewNode.traverse(publicAPI); - const device = viewNode.getDevice(); - if (!model.selectionRenderEncoder) { - publicAPI.createRenderEncoder(); - - // create color texture - model.colorTexture = vtkWebGPUTexture.newInstance({ - label: 'hardwareSelectorColor' - }); - model.colorTexture.create(device, { - width: viewNode.getCanvas().width, - height: viewNode.getCanvas().height, - format: 'rgba32uint', - /* eslint-disable no-undef */ - /* eslint-disable no-bitwise */ - usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.COPY_SRC - }); - const v1 = model.colorTexture.createView('hardwareSelectColorTexture'); - model.selectionRenderEncoder.setColorTextureView(0, v1); - - // create depth texture - model.depthTexture = vtkWebGPUTexture.newInstance({ - label: 'hardwareSelectorDepth' - }); - model.depthTexture.create(device, { - width: viewNode.getCanvas().width, - height: viewNode.getCanvas().height, - format: 'depth32float', - /* eslint-disable no-undef */ - /* eslint-disable no-bitwise */ - usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.COPY_SRC - }); - const v2 = model.depthTexture.createView('hardwareSelectDepthTexture'); - model.selectionRenderEncoder.setDepthTextureView(v2); - } else { - model.colorTexture.resize(viewNode.getCanvas().width, viewNode.getCanvas().height); - model.depthTexture.resizeToMatch(model.colorTexture); - } - model.selectionRenderEncoder.attachTextureViews(); - renNode.setRenderEncoder(model.selectionRenderEncoder); - publicAPI.setCurrentOperation('cameraPass'); - renNode.traverse(publicAPI); - // opaque pass is used for selection - publicAPI.setCurrentOperation('opaquePass'); - renNode.traverse(publicAPI); - }; - publicAPI.createRenderEncoder = () => { - model.selectionRenderEncoder = vtkWebGPURenderEncoder.newInstance({ - label: 'HardwareSelectionPass' - }); - // default settings are fine for this - model.selectionRenderEncoder.setPipelineHash('sel'); - model.selectionRenderEncoder.setReplaceShaderCodeFunction(pipeline => { - const fDesc = pipeline.getShaderDescription('fragment'); - fDesc.addOutput('vec4', 'outColor'); - let code = fDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::RenderEncoder::Impl', ['output.outColor = vec4(mapperUBO.PropID, compositeID, 0u, 0u);']).result; - fDesc.setCode(code); - }); - const renDesc = model.selectionRenderEncoder.getDescription(); - renDesc.colorAttachments[0].clearValue = [0.0, 0.0, 0.0, 0.0]; - model.selectionRenderEncoder.setPipelineSettings({ - primitive: { - cullMode: 'none' - }, - depthStencil: { - depthWriteEnabled: true, - depthCompare: 'greater', - format: 'depth32float' - }, - fragment: { - targets: [{ - format: 'rgba32uint', - blend: undefined - }] - } - }); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - selectionRenderEncoder: null, - colorTexture: null, - depthTexture: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - vtkRenderPass.extend(publicAPI, model, initialValues); - macro.get(publicAPI, model, ['colorTexture', 'depthTexture']); - - // Object methods - vtkWebGPUHardwareSelectionPass(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWebGPUHardwareSelectionPass'); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUHardwareSelectionPass$1 = { - newInstance, - extend -}; - -export { vtkWebGPUHardwareSelectionPass$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/HardwareSelector.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/HardwareSelector.js deleted file mode 100644 index 677010c8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/HardwareSelector.js +++ /dev/null @@ -1,348 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkHardwareSelector from '../Core/HardwareSelector.js'; -import vtkWebGPUBuffer from './Buffer.js'; -import vtkWebGPUHardwareSelectionPass from './HardwareSelectionPass.js'; -import vtkSelectionNode from '../../Common/DataModel/SelectionNode.js'; -import vtkDataSet from '../../Common/DataModel/DataSet.js'; - -const { - SelectionContent, - SelectionField -} = vtkSelectionNode; -const { - FieldAssociations -} = vtkDataSet; -const { - vtkErrorMacro -} = macro; -function getInfoHash(info) { - return `${info.propID} ${info.compositeID}`; -} -function convert(xx, yy, buffdata, channel) { - const offset = ((buffdata.height - yy - 1) * buffdata.colorBufferWidth + xx) * 4 + channel; - return buffdata.colorValues[offset]; -} -function getPixelInformationWithData(buffdata, inDisplayPosition, maxDistance, outSelectedPosition) { - // Base case - const maxDist = maxDistance < 0 ? 0 : maxDistance; - if (maxDist === 0) { - outSelectedPosition[0] = inDisplayPosition[0]; - outSelectedPosition[1] = inDisplayPosition[1]; - if (inDisplayPosition[0] < 0 || inDisplayPosition[0] >= buffdata.width || inDisplayPosition[1] < 0 || inDisplayPosition[1] >= buffdata.height) { - return null; - } - const actorid = convert(inDisplayPosition[0], inDisplayPosition[1], buffdata, 0); - if (actorid <= 0) { - // the pixel did not hit any actor. - return null; - } - const info = {}; - info.propID = actorid; - let compositeID = convert(inDisplayPosition[0], inDisplayPosition[1], buffdata, 1); - if (compositeID < 0 || compositeID > 0xffffff) { - compositeID = 0; - } - info.compositeID = compositeID; - if (buffdata.captureZValues) { - const offset = (buffdata.height - inDisplayPosition[1] - 1) * buffdata.zbufferBufferWidth + inDisplayPosition[0]; - info.zValue = buffdata.depthValues[offset]; - info.zValue = buffdata.webGPURenderer.convertToOpenGLDepth(info.zValue); - info.displayPosition = inDisplayPosition; - } - return info; - } - - // Iterate over successively growing boxes. - // They recursively call the base case to handle single pixels. - const dispPos = [inDisplayPosition[0], inDisplayPosition[1]]; - const curPos = [0, 0]; - let info = getPixelInformationWithData(buffdata, inDisplayPosition, 0, outSelectedPosition); - if (info) { - return info; - } - for (let dist = 1; dist < maxDist; ++dist) { - // Vertical sides of box. - for (let y = dispPos[1] > dist ? dispPos[1] - dist : 0; y <= dispPos[1] + dist; ++y) { - curPos[1] = y; - if (dispPos[0] >= dist) { - curPos[0] = dispPos[0] - dist; - info = getPixelInformationWithData(buffdata, curPos, 0, outSelectedPosition); - if (info) { - return info; - } - } - curPos[0] = dispPos[0] + dist; - info = getPixelInformationWithData(buffdata, curPos, 0, outSelectedPosition); - if (info) { - return info; - } - } - // Horizontal sides of box. - for (let x = dispPos[0] >= dist ? dispPos[0] - (dist - 1) : 0; x <= dispPos[0] + (dist - 1); ++x) { - curPos[0] = x; - if (dispPos[1] >= dist) { - curPos[1] = dispPos[1] - dist; - info = getPixelInformationWithData(buffdata, curPos, 0, outSelectedPosition); - if (info) { - return info; - } - } - curPos[1] = dispPos[1] + dist; - info = getPixelInformationWithData(buffdata, curPos, 0, outSelectedPosition); - if (info) { - return info; - } - } - } - - // nothing hit. - outSelectedPosition[0] = inDisplayPosition[0]; - outSelectedPosition[1] = inDisplayPosition[1]; - return null; -} - -//----------------------------------------------------------------------------- -function convertSelection(fieldassociation, dataMap, buffdata) { - const sel = []; - let count = 0; - dataMap.forEach((value, key) => { - const child = vtkSelectionNode.newInstance(); - child.setContentType(SelectionContent.INDICES); - switch (fieldassociation) { - case FieldAssociations.FIELD_ASSOCIATION_CELLS: - child.setFieldType(SelectionField.CELL); - break; - case FieldAssociations.FIELD_ASSOCIATION_POINTS: - child.setFieldType(SelectionField.POINT); - break; - default: - vtkErrorMacro('Unknown field association'); - } - child.getProperties().propID = value.info.propID; - const wprop = buffdata.webGPURenderer.getPropFromID(value.info.propID); - child.getProperties().prop = wprop.getRenderable(); - child.getProperties().compositeID = value.info.compositeID; - child.getProperties().pixelCount = value.pixelCount; - if (buffdata.captureZValues) { - child.getProperties().displayPosition = [value.info.displayPosition[0], value.info.displayPosition[1], value.info.zValue]; - child.getProperties().worldPosition = buffdata.webGPURenderWindow.displayToWorld(value.info.displayPosition[0], value.info.displayPosition[1], value.info.zValue, buffdata.renderer); - } - child.setSelectionList(value.attributeIDs); - sel[count] = child; - count++; - }); - return sel; -} - -//---------------------------------------------------------------------------- -function generateSelectionWithData(buffdata, fx1, fy1, fx2, fy2) { - const x1 = Math.floor(fx1); - const y1 = Math.floor(fy1); - const x2 = Math.floor(fx2); - const y2 = Math.floor(fy2); - const dataMap = new Map(); - const outSelectedPosition = [0, 0]; - for (let yy = y1; yy <= y2; yy++) { - for (let xx = x1; xx <= x2; xx++) { - const pos = [xx, yy]; - const info = getPixelInformationWithData(buffdata, pos, 0, outSelectedPosition); - if (info) { - const hash = getInfoHash(info); - if (!dataMap.has(hash)) { - dataMap.set(hash, { - info, - pixelCount: 1, - attributeIDs: [info.attributeID] - }); - } else { - const dmv = dataMap.get(hash); - dmv.pixelCount++; - if (buffdata.captureZValues) { - if (info.zValue < dmv.info.zValue) { - dmv.info = info; - } - } - if (dmv.attributeIDs.indexOf(info.attributeID) === -1) { - dmv.attributeIDs.push(info.attributeID); - } - } - } - } - } - return convertSelection(buffdata.fieldAssociation, dataMap, buffdata); -} - -// ---------------------------------------------------------------------------- -// vtkWebGPUHardwareSelector methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUHardwareSelector(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUHardwareSelector'); - - //---------------------------------------------------------------------------- - publicAPI.endSelection = () => { - model.WebGPURenderer.setSelector(null); - }; - - //---------------------------------------------------------------------------- - // note we ignore the x,y arguments as WebGPU has to do buffer copies - // of the entire depth bufer. We could realloc hardware selection textures - // based on the passed in size etc but it gets messy so for now we always - // render the full size window and copy it to the buffers. - publicAPI.getSourceDataAsync = async renderer => { - if (!renderer || !model._WebGPURenderWindow) { - vtkErrorMacro('Renderer and view must be set before calling Select.'); - return false; - } - - // todo revisit making selection part of core - // then we can do this in core - model._WebGPURenderWindow.getRenderable().preRender(); - if (!model._WebGPURenderWindow.getInitialized()) { - model._WebGPURenderWindow.initialize(); - await new Promise(resolve => { - model._WebGPURenderWindow.onInitialized(resolve); - }); - } - const webGPURenderer = model._WebGPURenderWindow.getViewNodeFor(renderer); - if (!webGPURenderer) { - return false; - } - - // Initialize renderer for selection. - // change the renderer's background to black, which will indicate a miss - const originalSuppress = webGPURenderer.getSuppressClear(); - webGPURenderer.setSuppressClear(true); - model._selectionPass.traverse(model._WebGPURenderWindow, webGPURenderer); - - // restore original background - webGPURenderer.setSuppressClear(originalSuppress); - const device = model._WebGPURenderWindow.getDevice(); - const texture = model._selectionPass.getColorTexture(); - const depthTexture = model._selectionPass.getDepthTexture(); - - // as this is async we really don't want to store things in - // the class as multiple calls may start before resolving - // so anything specific to this request gets put into the - // result object (by value in most cases) - const result = { - area: [0, 0, texture.getWidth() - 1, texture.getHeight() - 1], - captureZValues: model.captureZValues, - fieldAssociation: model.fieldAssociation, - renderer, - webGPURenderer, - webGPURenderWindow: model._WebGPURenderWindow, - width: texture.getWidth(), - height: texture.getHeight() - }; - - // must be a multiple of 256 bytes, so 16 texels with rgba32uint - result.colorBufferWidth = 16 * Math.floor((result.width + 15) / 16); - result.colorBufferSizeInBytes = result.colorBufferWidth * result.height * 4 * 4; - const colorBuffer = vtkWebGPUBuffer.newInstance({ - label: 'hardwareSelectColorBuffer' - }); - colorBuffer.setDevice(device); - /* eslint-disable no-bitwise */ - /* eslint-disable no-undef */ - colorBuffer.create(result.colorBufferSizeInBytes, GPUBufferUsage.MAP_READ | GPUBufferUsage.COPY_DST); - /* eslint-enable no-bitwise */ - /* eslint-enable no-undef */ - - const cmdEnc = model._WebGPURenderWindow.getCommandEncoder(); - cmdEnc.copyTextureToBuffer({ - texture: texture.getHandle() - }, { - buffer: colorBuffer.getHandle(), - bytesPerRow: 16 * result.colorBufferWidth, - rowsPerImage: result.height - }, { - width: result.width, - height: result.height, - depthOrArrayLayers: 1 - }); - let zbuffer; - if (model.captureZValues) { - result.zbufferBufferWidth = 64 * Math.floor((result.width + 63) / 64); - zbuffer = vtkWebGPUBuffer.newInstance({ - label: 'hardwareSelectDepthBuffer' - }); - zbuffer.setDevice(device); - result.zbufferSizeInBytes = result.height * result.zbufferBufferWidth * 4; - /* eslint-disable no-bitwise */ - /* eslint-disable no-undef */ - zbuffer.create(result.zbufferSizeInBytes, GPUBufferUsage.MAP_READ | GPUBufferUsage.COPY_DST); - /* eslint-enable no-bitwise */ - /* eslint-enable no-undef */ - - cmdEnc.copyTextureToBuffer({ - texture: depthTexture.getHandle(), - aspect: 'depth-only' - }, { - buffer: zbuffer.getHandle(), - bytesPerRow: 4 * result.zbufferBufferWidth, - rowsPerImage: result.height - }, { - width: result.width, - height: result.height, - depthOrArrayLayers: 1 - }); - } - device.submitCommandEncoder(cmdEnc); - - /* eslint-disable no-undef */ - const cLoad = colorBuffer.mapAsync(GPUMapMode.READ); - if (model.captureZValues) { - const zLoad = zbuffer.mapAsync(GPUMapMode.READ); - await Promise.all([cLoad, zLoad]); - result.depthValues = new Float32Array(zbuffer.getMappedRange().slice()); - zbuffer.unmap(); - } else { - await cLoad; - } - /* eslint-enable no-undef */ - - result.colorValues = new Uint32Array(colorBuffer.getMappedRange().slice()); - colorBuffer.unmap(); - result.generateSelection = (fx1, fy1, fx2, fy2) => generateSelectionWithData(result, fx1, fy1, fx2, fy2); - return result; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // WebGPURenderWindow: null, -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - vtkHardwareSelector.extend(publicAPI, model, initialValues); - model._selectionPass = vtkWebGPUHardwareSelectionPass.newInstance(); - macro.setGet(publicAPI, model, ['_WebGPURenderWindow']); - macro.moveToProtected(publicAPI, model, ['WebGPURenderWindow']); - - // Object methods - vtkWebGPUHardwareSelector(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWebGPUHardwareSelector'); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUHardwareSelector$1 = { - newInstance, - extend -}; - -export { vtkWebGPUHardwareSelector$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ImageMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ImageMapper.js deleted file mode 100644 index c399bb16..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ImageMapper.js +++ /dev/null @@ -1,399 +0,0 @@ -import { mat4, vec4 } from 'gl-matrix'; -import Constants from '../Core/ImageMapper/Constants.js'; -import { n as newInstance$1, o as obj } from '../../macros2.js'; -import vtkWebGPUShaderCache from './ShaderCache.js'; -import vtkWebGPUFullScreenQuad from './FullScreenQuad.js'; -import vtkWebGPUUniformBuffer from './UniformBuffer.js'; -import vtkWebGPUSampler from './Sampler.js'; -import { InterpolationType } from '../Core/ImageProperty/Constants.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -// const { vtkErrorMacro } = macro; -const { - SlicingMode -} = Constants; -const imgFragTemplate = ` -//VTK::Renderer::Dec - -//VTK::Mapper::Dec - -//VTK::TCoord::Dec - -//VTK::Image::Dec - -//VTK::RenderEncoder::Dec - -//VTK::IOStructs::Dec - -@fragment -fn main( -//VTK::IOStructs::Input -) -//VTK::IOStructs::Output -{ - var output: fragmentOutput; - - //VTK::Image::Sample - - // var computedColor: vec4 = vec4(1.0,0.7, 0.5, 1.0); - -//VTK::RenderEncoder::Impl - - return output; -} -`; - -// ---------------------------------------------------------------------------- -// helper methods -// ---------------------------------------------------------------------------- - -function computeFnToString(property, fn, numberOfComponents) { - const pwfun = fn.apply(property); - if (pwfun) { - const iComps = property.getIndependentComponents(); - return `${property.getMTime()}-${iComps}-${numberOfComponents}`; - } - return '0'; -} - -// ---------------------------------------------------------------------------- -// vtkWebGPUImageMapper methods -// ---------------------------------------------------------------------------- - -const tmpMat4 = new Float64Array(16); -const tmp2Mat4 = new Float64Array(16); -const tmp3Mat4 = new Float64Array(16); -const ptsArray1 = new Float64Array(4); -const ptsArray2 = new Float64Array(4); -function vtkWebGPUImageMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUImageMapper'); - publicAPI.buildPass = prepass => { - if (prepass) { - model.WebGPUImageSlice = publicAPI.getFirstAncestorOfType('vtkWebGPUImageSlice'); - model.WebGPURenderer = model.WebGPUImageSlice.getFirstAncestorOfType('vtkWebGPURenderer'); - model.WebGPURenderWindow = model.WebGPURenderer.getParent(); - model.device = model.WebGPURenderWindow.getDevice(); - const ren = model.WebGPURenderer.getRenderable(); - // is slice set by the camera - if (model.renderable.getSliceAtFocalPoint()) { - model.renderable.setSliceFromCamera(ren.getActiveCamera()); - } - } - }; - - // Renders myself - publicAPI.translucentPass = prepass => { - if (prepass) { - publicAPI.render(); - } - }; - publicAPI.opaquePass = prepass => { - if (prepass) { - publicAPI.render(); - } - }; - publicAPI.render = () => { - model.renderable.update(); - model.currentInput = model.renderable.getInputData(); - publicAPI.prepareToDraw(model.WebGPURenderer.getRenderEncoder()); - model.renderEncoder.registerDrawCallback(model.pipeline, publicAPI.draw); - }; - publicAPI.computePipelineHash = () => { - const ext = model.currentInput.getExtent(); - if (ext[0] === ext[1] || ext[2] === ext[3] || ext[4] === ext[5]) { - model.dimensions = 2; - model.pipelineHash = 'img2'; - } else { - model.dimensions = 3; - model.pipelineHash = 'img3'; - } - }; - publicAPI.updateUBO = () => { - const utime = model.UBO.getSendTime(); - const actor = model.WebGPUImageSlice.getRenderable(); - const volMapr = actor.getMapper(); - if (publicAPI.getMTime() > utime || model.renderable.getMTime() > utime || actor.getProperty().getMTime() > utime) { - // compute the SCTCMatrix - const image = volMapr.getInputData(); - const center = model.WebGPURenderer.getStabilizedCenterByReference(); - mat4.identity(tmpMat4); - mat4.translate(tmpMat4, tmpMat4, center); - // tmpMat4 is now SC->World - - const mcwcmat = actor.getMatrix(); - mat4.transpose(tmp2Mat4, mcwcmat); - mat4.invert(tmp2Mat4, tmp2Mat4); - // tmp2Mat4 is now world to model - - mat4.multiply(tmpMat4, tmp2Mat4, tmpMat4); - // tmp4Mat is now SC->Model - - // the method on the data is world to index but the volume is in - // model coordinates so really in this context it is model to index - const modelToIndex = image.getWorldToIndex(); - mat4.multiply(tmpMat4, modelToIndex, tmpMat4); - // tmpMat4 is now SC -> Index, save this as we need it later - mat4.invert(tmp3Mat4, tmpMat4); - - // need translation and scale - mat4.fromTranslation(tmp2Mat4, [0.5, 0.5, 0.5]); - mat4.multiply(tmpMat4, tmp2Mat4, tmpMat4); - const dims = image.getDimensions(); - mat4.identity(tmp2Mat4); - mat4.scale(tmp2Mat4, tmp2Mat4, [1.0 / dims[0], 1.0 / dims[1], 1.0 / dims[2]]); - mat4.multiply(tmpMat4, tmp2Mat4, tmpMat4); - // tmpMat4 is now SC -> Tcoord - - model.UBO.setArray('SCTCMatrix', tmpMat4); - - // need to compute the plane here in world coordinates - // then pass that down in the UBO - const ext = model.currentInput.getExtent(); - - // Find what IJK axis and what direction to slice along - const { - ijkMode - } = model.renderable.getClosestIJKAxis(); - - // Find the IJK slice - let nSlice = model.renderable.getSlice(); - if (ijkMode !== model.renderable.getSlicingMode()) { - // If not IJK slicing, get the IJK slice from the XYZ position/slice - nSlice = model.renderable.getSliceAtPosition(nSlice); - } - let axis0 = 2; - let axis1 = 0; - let axis2 = 1; - if (ijkMode === SlicingMode.I) { - axis0 = 0; - axis1 = 1; - axis2 = 2; - } else if (ijkMode === SlicingMode.J) { - axis0 = 1; - axis1 = 2; - axis2 = 0; - } - ptsArray1[axis0] = nSlice; - ptsArray1[axis1] = ext[axis1 * 2] - 0.5; - ptsArray1[axis2] = ext[axis2 * 2] - 0.5; - ptsArray1[3] = 1.0; - vec4.transformMat4(ptsArray1, ptsArray1, tmp3Mat4); - model.UBO.setArray('Origin', ptsArray1); - ptsArray2[axis0] = nSlice; - ptsArray2[axis1] = ext[axis1 * 2 + 1] + 0.5; - ptsArray2[axis2] = ext[axis2 * 2] - 0.5; - ptsArray2[3] = 1.0; - vec4.transformMat4(ptsArray2, ptsArray2, tmp3Mat4); - vec4.subtract(ptsArray2, ptsArray2, ptsArray1); - ptsArray2[3] = 1.0; - model.UBO.setArray('Axis1', ptsArray2); - ptsArray2[axis0] = nSlice; - ptsArray2[axis1] = ext[axis1 * 2] - 0.5; - ptsArray2[axis2] = ext[axis2 * 2 + 1] + 0.5; - ptsArray2[3] = 1.0; - vec4.transformMat4(ptsArray2, ptsArray2, tmp3Mat4); - vec4.subtract(ptsArray2, ptsArray2, ptsArray1); - ptsArray2[3] = 1.0; - model.UBO.setArray('Axis2', ptsArray2); - - // three levels of shift scale combined into one - // for performance in the fragment shader - const cScale = [1, 1, 1, 1]; - const cShift = [0, 0, 0, 0]; - const tView = model.textureViews[0]; - const tScale = tView.getTexture().getScale(); - const numComp = tView.getTexture().getNumberOfComponents(); - for (let i = 0; i < numComp; i++) { - let cw = actor.getProperty().getColorWindow(); - let cl = actor.getProperty().getColorLevel(); - const target = 0; - const cfun = actor.getProperty().getRGBTransferFunction(target); - if (cfun) { - const cRange = cfun.getRange(); - cw = cRange[1] - cRange[0]; - cl = 0.5 * (cRange[1] + cRange[0]); - } - cScale[i] = tScale / cw; - cShift[i] = -cl / cw + 0.5; - } - model.UBO.setArray('cScale', cScale); - model.UBO.setArray('cShift', cShift); - model.UBO.sendIfNeeded(model.device); - } - }; - publicAPI.updateLUTImage = () => { - const actorProperty = model.WebGPUImageSlice.getRenderable().getProperty(); - const tView = publicAPI.getTextureViews()[0]; - tView.getTexture().getNumberOfComponents(); - const numIComps = 1; - const cfunToString = computeFnToString(actorProperty, actorProperty.getRGBTransferFunction, numIComps); - if (model.colorTextureString !== cfunToString) { - model.numRows = numIComps; - const colorArray = new Uint8ClampedArray(model.numRows * 2 * model.rowLength * 4); - let cfun = actorProperty.getRGBTransferFunction(); - if (cfun) { - const tmpTable = new Float32Array(model.rowLength * 3); - for (let c = 0; c < numIComps; c++) { - cfun = actorProperty.getRGBTransferFunction(c); - const cRange = cfun.getRange(); - cfun.getTable(cRange[0], cRange[1], model.rowLength, tmpTable, 1); - { - for (let i = 0; i < model.rowLength; i++) { - const idx = c * model.rowLength * 8 + i * 4; - colorArray[idx] = 255.0 * tmpTable[i * 3]; - colorArray[idx + 1] = 255.0 * tmpTable[i * 3 + 1]; - colorArray[idx + 2] = 255.0 * tmpTable[i * 3 + 2]; - colorArray[idx + 3] = 255.0; - for (let j = 0; j < 4; j++) { - colorArray[idx + model.rowLength * 4 + j] = colorArray[idx + j]; - } - } - } - } - } else { - for (let i = 0; i < model.rowLength; ++i) { - const grey = 255.0 * i / (model.rowLength - 1); - colorArray[i * 4] = grey; - colorArray[i * 4 + 1] = grey; - colorArray[i * 4 + 2] = grey; - colorArray[i * 4 + 3] = 255.0; - for (let j = 0; j < 4; j++) { - colorArray[i * 4 + model.rowLength * 4 + j] = colorArray[i * 4 + j]; - } - } - } - { - const treq = { - nativeArray: colorArray, - width: model.rowLength, - height: model.numRows * 2, - depth: 1, - format: 'rgba8unorm' - }; - const newTex = model.device.getTextureManager().getTexture(treq); - const tview = newTex.createView('tfunTexture'); - model.textureViews[1] = tview; - } - model.colorTextureString = cfunToString; - } - }; - const superClassUpdateBuffers = publicAPI.updateBuffers; - publicAPI.updateBuffers = () => { - superClassUpdateBuffers(); - const newTex = model.device.getTextureManager().getTextureForImageData(model.currentInput); - const tViews = model.textureViews; - if (!tViews[0] || tViews[0].getTexture() !== newTex) { - const tview = newTex.createView('imgTexture'); - tViews[0] = tview; - } - publicAPI.updateLUTImage(); - publicAPI.updateUBO(); - - // set interpolation on the texture based on property setting - const actorProperty = model.WebGPUImageSlice.getRenderable().getProperty(); - const iType = actorProperty.getInterpolationType() === InterpolationType.NEAREST ? 'nearest' : 'linear'; - if (!model.clampSampler || iType !== model.clampSampler.getOptions().minFilter) { - model.clampSampler = vtkWebGPUSampler.newInstance({ - label: 'clampSampler' - }); - model.clampSampler.create(model.device, { - minFilter: iType, - magFilter: iType - }); - model.additionalBindables = [model.clampSampler]; - } - }; - const sr = publicAPI.getShaderReplacements(); - publicAPI.replaceShaderPosition = (hash, pipeline, vertexInput) => { - const vDesc = pipeline.getShaderDescription('vertex'); - vDesc.addBuiltinOutput('vec4', '@builtin(position) Position'); - let code = vDesc.getCode(); - const lines = ['var pos: vec4 = mapperUBO.Origin +', ' (vertexBC.x * 0.5 + 0.5) * mapperUBO.Axis1 + (vertexBC.y * 0.5 + 0.5) * mapperUBO.Axis2;', 'pos.w = 1.0;']; - if (model.dimensions === 2) { - lines.push('var tcoord : vec2 = (mapperUBO.SCTCMatrix * pos).xy;'); - } else { - lines.push('var tcoord : vec3 = (mapperUBO.SCTCMatrix * pos).xyz;'); - } - lines.push('output.tcoordVS = tcoord;', 'output.Position = rendererUBO.SCPCMatrix * pos;'); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Position::Impl', lines).result; - vDesc.setCode(code); - }; - sr.set('replaceShaderPosition', publicAPI.replaceShaderPosition); - publicAPI.replaceShaderTCoord = (hash, pipeline, vertexInput) => { - const vDesc = pipeline.getShaderDescription('vertex'); - if (model.dimensions === 2) { - vDesc.addOutput('vec2', 'tcoordVS'); - } else { - vDesc.addOutput('vec3', 'tcoordVS'); - } - }; - sr.set('replaceShaderTCoord', publicAPI.replaceShaderTCoord); - publicAPI.replaceShaderImage = (hash, pipeline, vertexInput) => { - const fDesc = pipeline.getShaderDescription('fragment'); - let code = fDesc.getCode(); - if (model.dimensions === 3) { - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Image::Sample', [` var computedColor: vec4 =`, ` textureSampleLevel(imgTexture, clampSampler, input.tcoordVS, 0.0);`, `//VTK::Image::Sample`]).result; - } else { - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Image::Sample', [` var computedColor: vec4 =`, ` textureSampleLevel(imgTexture, clampSampler, input.tcoordVS, 0.0);`, `//VTK::Image::Sample`]).result; - } - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Image::Sample', [` var coord: vec2 =`, ` vec2(computedColor.r * mapperUBO.cScale.r + mapperUBO.cShift.r, 0.5);`, ` computedColor = textureSampleLevel(tfunTexture, clampSampler, coord, 0.0);`]).result; - fDesc.setCode(code); - }; - sr.set('replaceShaderImage', publicAPI.replaceShaderImage); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - rowLength: 1024 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkWebGPUFullScreenQuad.extend(publicAPI, model, initialValues); - publicAPI.setFragmentShaderTemplate(imgFragTemplate); - model.UBO = vtkWebGPUUniformBuffer.newInstance({ - label: 'mapperUBO' - }); - model.UBO.addEntry('SCTCMatrix', 'mat4x4'); - model.UBO.addEntry('Origin', 'vec4'); - model.UBO.addEntry('Axis2', 'vec4'); - model.UBO.addEntry('Axis1', 'vec4'); - model.UBO.addEntry('cScale', 'vec4'); - model.UBO.addEntry('cShift', 'vec4'); - model.lutBuildTime = {}; - obj(model.lutBuildTime, { - mtime: 0 - }); - model.imagemat = mat4.identity(new Float64Array(16)); - model.imagematinv = mat4.identity(new Float64Array(16)); - model.VBOBuildTime = {}; - obj(model.VBOBuildTime); - - // Object methods - vtkWebGPUImageMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkWebGPUImageMapper'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -// Register ourself to WebGPU backend if imported -registerOverride('vtkImageMapper', newInstance); - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ImageSlice.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ImageSlice.js deleted file mode 100644 index 5634bbf2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ImageSlice.js +++ /dev/null @@ -1,163 +0,0 @@ -import { mat4 } from 'gl-matrix'; -import { n as newInstance$1, o as obj, g as get } from '../../macros2.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -// ---------------------------------------------------------------------------- -// vtkWebGPUImageSlice methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUImageSlice(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUImageSlice'); - - // Builds myself. - publicAPI.buildPass = prepass => { - if (!model.renderable || !model.renderable.getVisibility()) { - return; - } - if (prepass) { - if (!model.renderable) { - return; - } - model.WebGPURenderer = publicAPI.getFirstAncestorOfType('vtkWebGPURenderer'); - model.WebGPURenderWindow = model.WebGPURenderer.getFirstAncestorOfType('vtkWebGPURenderWindow'); - if (model.propID === undefined) { - model.propID = model.WebGPURenderWindow.getUniquePropID(); - } - publicAPI.prepareNodes(); - publicAPI.addMissingNode(model.renderable.getMapper()); - publicAPI.removeUnusedNodes(); - } - }; - - // we draw textures, then mapper, then post pass textures - publicAPI.traverseOpaquePass = renderPass => { - if (!model.renderable || !model.renderable.getNestedVisibility() || !model.renderable.getIsOpaque() || model.WebGPURenderer.getSelector() && !model.renderable.getNestedPickable()) { - return; - } - publicAPI.apply(renderPass, true); - model.children.forEach(child => { - child.traverse(renderPass); - }); - publicAPI.apply(renderPass, false); - }; - publicAPI.traverseTranslucentPass = renderPass => { - if (!model.renderable || !model.renderable.getNestedVisibility() || model.renderable.getIsOpaque() || model.WebGPURenderer.getSelector() && !model.renderable.getNestedPickable()) { - return; - } - publicAPI.apply(renderPass, true); - model.children.forEach(child => { - child.traverse(renderPass); - }); - publicAPI.apply(renderPass, false); - }; - publicAPI.queryPass = (prepass, renderPass) => { - if (prepass) { - if (!model.renderable || !model.renderable.getVisibility()) { - return; - } - if (model.renderable.getIsOpaque()) { - renderPass.incrementOpaqueActorCount(); - } else { - renderPass.incrementTranslucentActorCount(); - } - } - }; - publicAPI.getBufferShift = wgpuRen => { - publicAPI.getKeyMatrices(wgpuRen); - return model.bufferShift; - }; - publicAPI.getKeyMatrices = wgpuRen => { - // has the actor or stabilization center changed? - if (Math.max(model.renderable.getMTime(), wgpuRen.getStabilizedTime()) > model.keyMatricesTime.getMTime()) { - model.renderable.computeMatrix(); - const mcwc = model.renderable.getMatrix(); - - // compute the net shift - const center = wgpuRen.getStabilizedCenterByReference(); - model.bufferShift[0] = mcwc[3] - center[0]; - model.bufferShift[1] = mcwc[7] - center[1]; - model.bufferShift[2] = mcwc[11] - center[2]; - mat4.transpose(model.keyMatrices.bcwc, mcwc); - if (model.renderable.getIsIdentity()) { - mat4.identity(model.keyMatrices.normalMatrix); - } else { - // we use bcwc BEFORE the translate below (just to get transposed mcvc) - mat4.copy(model.keyMatrices.normalMatrix, model.keyMatrices.bcwc); - // zero out translation - model.keyMatrices.normalMatrix[3] = 0.0; - model.keyMatrices.normalMatrix[7] = 0.0; - model.keyMatrices.normalMatrix[11] = 0.0; - mat4.invert(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix); - mat4.transpose(model.keyMatrices.normalMatrix, model.keyMatrices.normalMatrix); - } - - // only meed the buffer shift to get to world - mat4.translate(model.keyMatrices.bcwc, model.keyMatrices.bcwc, [-model.bufferShift[0], -model.bufferShift[1], -model.bufferShift[2]]); - - // to get to stabilized we also need the center - mat4.translate(model.keyMatrices.bcsc, model.keyMatrices.bcwc, [-center[0], -center[1], -center[2]]); - model.keyMatricesTime.modified(); - } - return model.keyMatrices; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - bufferShift: undefined, - keyMatrixTime: null, - keyMatrices: null, - propID: undefined -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - model.keyMatricesTime = {}; - obj(model.keyMatricesTime, { - mtime: 0 - }); - model.keyMatrices = { - normalMatrix: new Float64Array(16), - bcwc: new Float64Array(16), - bcsc: new Float64Array(16) - }; - model.keyMatrixTime = {}; - obj(model.keyMatrixTime, { - mtime: 0 - }); - model.keyMatrices = { - mcwc: mat4.identity(new Float64Array(16)) - }; - model.bufferShift = [0, 0, 0, 0]; - get(publicAPI, model, ['propID', 'keyMatricesTime']); - - // Object methods - vtkWebGPUImageSlice(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkWebGPUImageSlice'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -// Register ourself to WebGPU backend if imported -registerOverride('vtkImageSlice', newInstance); - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/IndexBuffer.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/IndexBuffer.js deleted file mode 100644 index 7fccbf66..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/IndexBuffer.js +++ /dev/null @@ -1,363 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import Constants from './BufferManager/Constants.js'; -import vtkProperty from '../Core/Property.js'; -import vtkWebGPUBuffer from './Buffer.js'; - -const { - Representation -} = vtkProperty; -const { - PrimitiveTypes -} = Constants; - -// Simulate a small map of pointId to flatId for a cell. The original code -// used a map and was 2.6x slower (4.7 to 1.9 seconds). Using two fixed -// length arrays with a count is so much faster even with the required for -// loops and if statements. This only works as we know the usage is -// restricted to clear(), set() get() and has() so the count is always -// incrmenting except for clear where it goes back to 0. Performance -// improvement is probably due to this appoach not hitting the heap but wow -// it is so much faster. Code that adds to these vectors checks against 9 to -// make sure there is room. Switching to test against vec.length -1 results -// in a small performance hit, so if you change 10, search for 9 in this -// small class and change those as well. -class _LimitedMap { - constructor() { - this.keys = new Uint32Array(10); - this.values = new Uint32Array(10); - this.count = 0; - } - clear() { - this.count = 0; - } - has(key) { - for (let i = 0; i < this.count; i++) { - if (this.keys[i] === key) { - return true; - } - } - return undefined; - } - get(key) { - for (let i = 0; i < this.count; i++) { - if (this.keys[i] === key) { - return this.values[i]; - } - } - return undefined; - } - set(key, value) { - if (this.count < 9) { - this.keys[this.count] = key; - this.values[this.count++] = value; - } - } -} -function getPrimitiveName(primType) { - switch (primType) { - case PrimitiveTypes.Points: - return 'points'; - case PrimitiveTypes.Lines: - return 'lines'; - case PrimitiveTypes.Triangles: - case PrimitiveTypes.TriangleEdges: - return 'polys'; - case PrimitiveTypes.TriangleStripEdges: - case PrimitiveTypes.TriangleStrips: - return 'strips'; - default: - return ''; - } -} -function _getOrAddFlatId(state, ptId, cellId) { - let flatId = state.pointIdToFlatId[ptId]; - if (flatId < 0) { - flatId = state.flatId; - state.pointIdToFlatId[ptId] = flatId; - state.flatIdToPointId[state.flatId] = ptId; - state.flatIdToCellId[state.flatId] = cellId; - state.flatId++; - } - return flatId; -} -function fillCell(ptIds, cellId, state) { - const numPtIds = ptIds.length; - // are any points already marked for this cell? If so use that as the provoking point - for (let ptIdx = 0; ptIdx < numPtIds; ptIdx++) { - let ptId = ptIds[ptIdx]; - if (state.cellProvokedMap.has(ptId)) { - state.ibo[state.iboId++] = state.cellProvokedMap.get(ptId); - - // insert remaining ptIds (they do not need to provoke) - for (let ptIdx2 = ptIdx + 1; ptIdx2 < ptIdx + numPtIds; ptIdx2++) { - ptId = ptIds[ptIdx2 % numPtIds]; - const flatId = _getOrAddFlatId(state, ptId, cellId); - // add to ibo - state.ibo[state.iboId++] = flatId; - } - // all done now - return; - } - } - - // else have any of the points not been used yet? (not in provokedPointIds) - for (let ptIdx = 0; ptIdx < numPtIds; ptIdx++) { - let ptId = ptIds[ptIdx]; - if (!state.provokedPointIds[ptId]) { - let flatId = _getOrAddFlatId(state, ptId, cellId); - // mark provoking and add to ibo - state.provokedPointIds[ptId] = 1; - state.cellProvokedMap.set(ptId, flatId); - // when provoking always set the cellId as an original non-provoking value - // will have been stored and we need to overwrite that - state.flatIdToCellId[flatId] = cellId; - state.ibo[state.iboId++] = flatId; - - // insert remaining ptIds (they do not need to provoke) - for (let ptIdx2 = ptIdx + 1; ptIdx2 < ptIdx + numPtIds; ptIdx2++) { - ptId = ptIds[ptIdx2 % numPtIds]; - flatId = _getOrAddFlatId(state, ptId, cellId); - // add to ibo - state.ibo[state.iboId++] = flatId; - } - // all done now - return; - } - } - - // if we got here then none of the ptIds could be used to provoke - // so just duplicate the first one - let ptId = ptIds[0]; - let flatId = state.flatId; - state.cellProvokedMap.set(ptId, flatId); - state.flatIdToPointId[state.flatId] = ptId; - state.flatIdToCellId[state.flatId] = cellId; - state.flatId++; - - // add to ibo - state.ibo[state.iboId++] = flatId; - - // insert remaining ptIds (they do not need to provoke) - for (let ptIdx2 = 1; ptIdx2 < numPtIds; ptIdx2++) { - ptId = ptIds[ptIdx2]; - flatId = _getOrAddFlatId(state, ptId, cellId); - // add to ibo - state.ibo[state.iboId++] = flatId; - } -} -function countCell(ptIds, cellId, state) { - const numPtIds = ptIds.length; - state.iboSize += numPtIds; - - // are any points already marked for this cell? If so use that as the provoking point - for (let ptIdx = 0; ptIdx < numPtIds; ptIdx++) { - const ptId = ptIds[ptIdx]; - if (state.cellProvokedMap.has(ptId)) { - return; - } - } - - // else have any of the points not been used yet? (not in provokedPointIds) - for (let ptIdx = 0; ptIdx < numPtIds; ptIdx++) { - const ptId = ptIds[ptIdx]; - if (!state.provokedPointIds[ptId]) { - state.provokedPointIds[ptId] = 1; - state.cellProvokedMap.set(ptId, 1); - return; - } - } - // if we got here then none of the ptIds could be used to provoke - state.cellProvokedMap.set(ptIds[0], 1); - state.extraPoints++; -} -let processCell; -const _single = new Uint32Array(1); -const _double = new Uint32Array(2); -const _triple = new Uint32Array(3); -const _indexCellBuilders = { - // easy, every input point becomes an output point - anythingToPoints(numPoints, cellPts, offset, cellId, state) { - for (let i = 0; i < numPoints; ++i) { - _single[0] = cellPts[offset + i]; - processCell(_single, cellId, state); - } - }, - linesToWireframe(numPoints, cellPts, offset, cellId, state) { - // for lines we add a bunch of segments - for (let i = 0; i < numPoints - 1; ++i) { - _double[0] = cellPts[offset + i]; - _double[1] = cellPts[offset + i + 1]; - processCell(_double, cellId, state); - } - }, - polysToWireframe(numPoints, cellPts, offset, cellId, state) { - // for polys we add a bunch of segments and close it - if (numPoints > 2) { - for (let i = 0; i < numPoints; ++i) { - _double[0] = cellPts[offset + i]; - _double[1] = cellPts[offset + (i + 1) % numPoints]; - processCell(_double, cellId, state); - } - } - }, - stripsToWireframe(numPoints, cellPts, offset, cellId, state) { - if (numPoints > 2) { - // for strips we add a bunch of segments and close it - for (let i = 0; i < numPoints - 1; ++i) { - _double[0] = cellPts[offset + i]; - _double[1] = cellPts[offset + i + 1]; - processCell(_double, cellId, state); - } - for (let i = 0; i < numPoints - 2; i++) { - _double[0] = cellPts[offset + i]; - _double[1] = cellPts[offset + i + 2]; - processCell(_double, cellId, state); - } - } - }, - polysToSurface(npts, cellPts, offset, cellId, state) { - for (let i = 0; i < npts - 2; i++) { - _triple[0] = cellPts[offset]; - _triple[1] = cellPts[offset + i + 1]; - _triple[2] = cellPts[offset + i + 2]; - processCell(_triple, cellId, state); - } - }, - stripsToSurface(npts, cellPts, offset, cellId, state) { - for (let i = 0; i < npts - 2; i++) { - _triple[0] = cellPts[offset + i]; - _triple[1] = cellPts[offset + i + 1 + i % 2]; - _triple[2] = cellPts[offset + i + 1 + (i + 1) % 2]; - processCell(_triple, cellId, state); - } - } -}; - -// ---------------------------------------------------------------------------- -// vtkWebGPUIndexBufferManager methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUIndexBuffer(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUIndexBuffer'); - publicAPI.buildIndexBuffer = req => { - const cellArray = req.cells; - const primitiveType = req.primitiveType; - const representation = req.representation; - const cellOffset = req.cellOffset; - const array = cellArray.getData(); - const cellArraySize = array.length; - const inRepName = getPrimitiveName(primitiveType); - const numPts = req.numberOfPoints; - const state = { - provokedPointIds: new Uint8Array(numPts), - // size is good - extraPoints: 0, - iboSize: 0, - flatId: 0, - iboId: 0, - cellProvokedMap: new _LimitedMap() - }; - let func = null; - if (representation === Representation.POINTS || primitiveType === PrimitiveTypes.Points) { - func = _indexCellBuilders.anythingToPoints; - } else if (representation === Representation.WIREFRAME || primitiveType === PrimitiveTypes.Lines) { - func = _indexCellBuilders[`${inRepName}ToWireframe`]; - } else { - func = _indexCellBuilders[`${inRepName}ToSurface`]; - } - - // first we count how many extra provoking points we need - processCell = countCell; - let cellId = cellOffset || 0; - for (let cellArrayIndex = 0; cellArrayIndex < cellArraySize;) { - state.cellProvokedMap.clear(); - func(array[cellArrayIndex], array, cellArrayIndex + 1, cellId, state); - cellArrayIndex += array[cellArrayIndex] + 1; - cellId++; - } - - // then we allocate the remaining structures - // (we pick the best size to save space and transfer costs) - if (numPts <= 0xffff) { - state.flatIdToPointId = new Uint16Array(numPts + state.extraPoints); - } else { - state.flatIdToPointId = new Uint32Array(numPts + state.extraPoints); - } - if (numPts + state.extraPoints < 0x8fff) { - state.pointIdToFlatId = new Int16Array(numPts); - } else { - state.pointIdToFlatId = new Int32Array(numPts); - } - if (numPts + state.extraPoints <= 0xffff) { - state.ibo = new Uint16Array(state.iboSize); - req.format = 'uint16'; - } else { - state.ibo = new Uint32Array(state.iboSize); - req.format = 'uint32'; - } - if (cellId <= 0xffff) { - state.flatIdToCellId = new Uint16Array(numPts + state.extraPoints); - } else { - state.flatIdToCellId = new Uint32Array(numPts + state.extraPoints); - } - state.pointIdToFlatId.fill(-1); - state.provokedPointIds.fill(0); - - // and fill them in - processCell = fillCell; - cellId = cellOffset || 0; - for (let cellArrayIndex = 0; cellArrayIndex < cellArraySize;) { - state.cellProvokedMap.clear(); - func(array[cellArrayIndex], array, cellArrayIndex + 1, cellId, state); - cellArrayIndex += array[cellArrayIndex] + 1; - cellId++; - } - delete state.provokedPointIds; - delete state.pointIdToFlatId; - - // store the results we need - req.nativeArray = state.ibo; - model.flatIdToPointId = state.flatIdToPointId; - model.flatIdToCellId = state.flatIdToCellId; - model.flatSize = state.flatId; - model.indexCount = state.iboId; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - flatIdToPointId: null, - flatIdToCellId: null, - flatSize: 0, - indexCount: 0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkWebGPUBuffer.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['flatIdToPointId', 'flatIdToCellId', 'flatSize', 'indexCount']); - vtkWebGPUIndexBuffer(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUIndexBuffer$1 = { - newInstance, - extend, - ...Constants -}; - -export { vtkWebGPUIndexBuffer$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/OpaquePass.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/OpaquePass.js deleted file mode 100644 index f9257b43..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/OpaquePass.js +++ /dev/null @@ -1,106 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkWebGPURenderEncoder from './RenderEncoder.js'; -import vtkWebGPUTexture from './Texture.js'; -import vtkRenderPass from '../SceneGraph/RenderPass.js'; - -// ---------------------------------------------------------------------------- - -function vtkWebGPUOpaquePass(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUOpaquePass'); - - // this pass implements a forward rendering pipeline - // if both volumes and opaque geometry are present - // it will mix the two together by capturing a zbuffer - // first - publicAPI.traverse = (renNode, viewNode) => { - if (model.deleted) { - return; - } - - // we just render our delegates in order - model._currentParent = viewNode; - const device = viewNode.getDevice(); - if (!model.renderEncoder) { - publicAPI.createRenderEncoder(); - model.colorTexture = vtkWebGPUTexture.newInstance({ - label: 'opaquePassColor' - }); - model.colorTexture.create(device, { - width: viewNode.getCanvas().width, - height: viewNode.getCanvas().height, - format: 'rgba16float', - /* eslint-disable no-undef */ - /* eslint-disable no-bitwise */ - usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.COPY_SRC - }); - const ctView = model.colorTexture.createView('opaquePassColorTexture'); - model.renderEncoder.setColorTextureView(0, ctView); - model.depthFormat = 'depth32float'; - model.depthTexture = vtkWebGPUTexture.newInstance({ - label: 'opaquePassDepth' - }); - model.depthTexture.create(device, { - width: viewNode.getCanvas().width, - height: viewNode.getCanvas().height, - format: model.depthFormat, - usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.COPY_SRC - }); - const dView = model.depthTexture.createView('opaquePassDepthTexture'); - model.renderEncoder.setDepthTextureView(dView); - } else { - model.colorTexture.resize(viewNode.getCanvas().width, viewNode.getCanvas().height); - model.depthTexture.resize(viewNode.getCanvas().width, viewNode.getCanvas().height); - } - model.renderEncoder.attachTextureViews(); - publicAPI.setCurrentOperation('opaquePass'); - renNode.setRenderEncoder(model.renderEncoder); - renNode.traverse(publicAPI); - }; - publicAPI.getColorTextureView = () => model.renderEncoder.getColorTextureViews()[0]; - publicAPI.getDepthTextureView = () => model.renderEncoder.getDepthTextureView(); - publicAPI.createRenderEncoder = () => { - model.renderEncoder = vtkWebGPURenderEncoder.newInstance({ - label: 'OpaquePass' - }); - // default settings are fine for this - model.renderEncoder.setPipelineHash('op'); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - renderEncoder: null, - colorTexture: null, - depthTexture: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - vtkRenderPass.extend(publicAPI, model, initialValues); - macro.get(publicAPI, model, ['colorTexture', 'depthTexture']); - - // Object methods - vtkWebGPUOpaquePass(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWebGPUOpaquePass'); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUOpaquePass$1 = { - newInstance, - extend -}; - -export { vtkWebGPUOpaquePass$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/OrderIndependentTranslucentPass.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/OrderIndependentTranslucentPass.js deleted file mode 100644 index f0d49a1f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/OrderIndependentTranslucentPass.js +++ /dev/null @@ -1,256 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkWebGPUTexture from './Texture.js'; -import vtkWebGPURenderEncoder from './RenderEncoder.js'; -import vtkWebGPUShaderCache from './ShaderCache.js'; -import vtkRenderPass from '../SceneGraph/RenderPass.js'; -import vtkWebGPUFullScreenQuad from './FullScreenQuad.js'; - -// ---------------------------------------------------------------------------- - -const oitpFragTemplate = ` -//VTK::Mapper::Dec - -//VTK::TCoord::Dec - -//VTK::RenderEncoder::Dec - -//VTK::IOStructs::Dec - -@fragment -fn main( -//VTK::IOStructs::Input -) -//VTK::IOStructs::Output -{ - var output: fragmentOutput; - - var tcoord: vec2 = vec2(i32(input.fragPos.x), i32(input.fragPos.y)); - var reveal: f32 = textureLoad(oitpAccumTexture, tcoord, 0).r; - if (reveal == 1.0) { discard; } - var tcolor: vec4 = textureLoad(oitpColorTexture, tcoord, 0); - var total: f32 = max(tcolor.a, 0.01); - var computedColor: vec4 = vec4(tcolor.r/total, tcolor.g/total, tcolor.b/total, 1.0 - reveal); - - //VTK::RenderEncoder::Impl - return output; -} -`; -function vtkWebGPUOrderIndependentTranslucentPass(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUOrderIndependentTranslucentPass'); - - // this pass implements a forward rendering pipeline - // if both volumes and opaque geometry are present - // it will mix the two together by capturing a zbuffer - // first - publicAPI.traverse = (renNode, viewNode) => { - if (model.deleted) { - return; - } - - // we just render our delegates in order - model._currentParent = viewNode; - const device = viewNode.getDevice(); - if (!model.translucentRenderEncoder) { - publicAPI.createRenderEncoder(); - publicAPI.createFinalEncoder(); - model.translucentColorTexture = vtkWebGPUTexture.newInstance({ - label: 'translucentPassColor' - }); - model.translucentColorTexture.create(device, { - width: viewNode.getCanvas().width, - height: viewNode.getCanvas().height, - format: 'rgba16float', - /* eslint-disable no-undef */ - /* eslint-disable no-bitwise */ - usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.TEXTURE_BINDING - }); - const v1 = model.translucentColorTexture.createView('oitpColorTexture'); - model.translucentRenderEncoder.setColorTextureView(0, v1); - model.translucentAccumulateTexture = vtkWebGPUTexture.newInstance({ - label: 'translucentPassAccumulate' - }); - model.translucentAccumulateTexture.create(device, { - width: viewNode.getCanvas().width, - height: viewNode.getCanvas().height, - format: 'r16float', - /* eslint-disable no-undef */ - /* eslint-disable no-bitwise */ - usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.TEXTURE_BINDING - }); - const v2 = model.translucentAccumulateTexture.createView('oitpAccumTexture'); - model.translucentRenderEncoder.setColorTextureView(1, v2); - model.fullScreenQuad = vtkWebGPUFullScreenQuad.newInstance(); - model.fullScreenQuad.setDevice(viewNode.getDevice()); - model.fullScreenQuad.setPipelineHash('oitpfsq'); - model.fullScreenQuad.setTextureViews(model.translucentRenderEncoder.getColorTextureViews()); - model.fullScreenQuad.setFragmentShaderTemplate(oitpFragTemplate); - } else { - model.translucentColorTexture.resizeToMatch(model.colorTextureView.getTexture()); - model.translucentAccumulateTexture.resizeToMatch(model.colorTextureView.getTexture()); - } - model.translucentRenderEncoder.setDepthTextureView(model.depthTextureView); - model.translucentRenderEncoder.attachTextureViews(); - publicAPI.setCurrentOperation('translucentPass'); - renNode.setRenderEncoder(model.translucentRenderEncoder); - renNode.traverse(publicAPI); - publicAPI.finalPass(viewNode, renNode); - }; - publicAPI.finalPass = (viewNode, renNode) => { - model.translucentFinalEncoder.setColorTextureView(0, model.colorTextureView); - model.translucentFinalEncoder.attachTextureViews(); - model.translucentFinalEncoder.begin(viewNode.getCommandEncoder()); - renNode.scissorAndViewport(model.translucentFinalEncoder); - model.fullScreenQuad.prepareAndDraw(model.translucentFinalEncoder); - model.translucentFinalEncoder.end(); - }; - publicAPI.getTextures = () => [model.translucentColorTexture, model.translucentAccumulateTexture]; - publicAPI.createRenderEncoder = () => { - model.translucentRenderEncoder = vtkWebGPURenderEncoder.newInstance({ - label: 'translucentRender' - }); - const rDesc = model.translucentRenderEncoder.getDescription(); - rDesc.colorAttachments = [{ - view: undefined, - clearValue: [0.0, 0.0, 0.0, 0.0], - loadOp: 'clear', - storeOp: 'store' - }, { - view: undefined, - clearValue: [1.0, 0.0, 0.0, 0.0], - loadOp: 'clear', - storeOp: 'store' - }]; - rDesc.depthStencilAttachment = { - view: undefined, - depthLoadOp: 'load', - depthStoreOp: 'store' - }; - model.translucentRenderEncoder.setReplaceShaderCodeFunction(pipeline => { - const fDesc = pipeline.getShaderDescription('fragment'); - fDesc.addOutput('vec4', 'outColor'); - fDesc.addOutput('f32', 'outAccum'); - fDesc.addBuiltinInput('vec4', '@builtin(position) fragPos'); - let code = fDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::RenderEncoder::Impl', [ - // very simple depth weighting in w z ranges from 1.0 near to 0.0 - 'var w: f32 = computedColor.a * pow(0.1 + input.fragPos.z, 2.0);', 'output.outColor = vec4(computedColor.rgb*w, w);', 'output.outAccum = computedColor.a;']).result; - fDesc.setCode(code); - }); - model.translucentRenderEncoder.setPipelineHash('oitpr'); - model.translucentRenderEncoder.setPipelineSettings({ - primitive: { - cullMode: 'none' - }, - depthStencil: { - depthWriteEnabled: false, - depthCompare: 'greater', - format: 'depth32float' - }, - fragment: { - targets: [{ - format: 'rgba16float', - blend: { - color: { - srcFactor: 'one', - dstFactor: 'one' - }, - alpha: { - srcFactor: 'one', - dstFactor: 'one' - } - } - }, { - format: 'r16float', - blend: { - color: { - srcFactor: 'zero', - dstFactor: 'one-minus-src' - }, - alpha: { - srcFactor: 'one', - dstFactor: 'one-minus-src-alpha' - } - } - }] - } - }); - }; - publicAPI.createFinalEncoder = () => { - model.translucentFinalEncoder = vtkWebGPURenderEncoder.newInstance({ - label: 'translucentFinal' - }); - model.translucentFinalEncoder.setDescription({ - colorAttachments: [{ - view: null, - loadOp: 'load', - storeOp: 'store' - }] - }); - model.translucentFinalEncoder.setReplaceShaderCodeFunction(pipeline => { - const fDesc = pipeline.getShaderDescription('fragment'); - fDesc.addOutput('vec4', 'outColor'); - fDesc.addBuiltinInput('vec4', '@builtin(position) fragPos'); - let code = fDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::RenderEncoder::Impl', ['output.outColor = vec4(computedColor.rgb, computedColor.a);']).result; - fDesc.setCode(code); - }); - model.translucentFinalEncoder.setPipelineHash('oitpf'); - model.translucentFinalEncoder.setPipelineSettings({ - primitive: { - cullMode: 'none' - }, - fragment: { - targets: [{ - format: 'rgba16float', - blend: { - color: { - srcFactor: 'src-alpha', - dstFactor: 'one-minus-src-alpha' - }, - alpha: { - srcFactor: 'one', - dstFactor: 'one-minus-src-alpha' - } - } - }] - } - }); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - colorTextureView: null, - depthTextureView: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - vtkRenderPass.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['colorTextureView', 'depthTextureView']); - - // Object methods - vtkWebGPUOrderIndependentTranslucentPass(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWebGPUOrderIndependentTranslucentPass'); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUOrderIndepenentTranslucentPass = { - newInstance, - extend -}; - -export { vtkWebGPUOrderIndepenentTranslucentPass as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Pipeline.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Pipeline.js deleted file mode 100644 index 3e4f695a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Pipeline.js +++ /dev/null @@ -1,108 +0,0 @@ -import { n as newInstance$1, o as obj, g as get, e as setGet } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkWebGPUPipeline methods -// ---------------------------------------------------------------------------- -function vtkWebGPUPipeline(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUPipeline'); - publicAPI.getShaderDescriptions = () => model.shaderDescriptions; - publicAPI.initialize = (device, hash) => { - // start with the renderencoder settings - model.pipelineDescription = model.renderEncoder.getPipelineSettings(); - model.pipelineDescription.primitive.topology = model.topology; - model.pipelineDescription.vertex = model.vertexState; - model.pipelineDescription.label = hash; - - // add in bind group layouts - const bindGroupLayouts = []; - for (let i = 0; i < model.layouts.length; i++) { - bindGroupLayouts.push(model.layouts[i].layout); - } - model.pipelineLayout = device.getHandle().createPipelineLayout({ - bindGroupLayouts - }); - model.pipelineDescription.layout = model.pipelineLayout; - for (let i = 0; i < model.shaderDescriptions.length; i++) { - const sd = model.shaderDescriptions[i]; - const sm = device.getShaderModule(sd); - if (sd.getType() === 'vertex') { - model.pipelineDescription.vertex.module = sm.getHandle(); - model.pipelineDescription.vertex.entryPoint = 'main'; - } - if (sd.getType() === 'fragment') { - model.pipelineDescription.fragment.module = sm.getHandle(); - model.pipelineDescription.fragment.entryPoint = 'main'; - } - } - model.handle = device.getHandle().createRenderPipeline(model.pipelineDescription); - }; - publicAPI.getShaderDescription = stype => { - for (let i = 0; i < model.shaderDescriptions.length; i++) { - if (model.shaderDescriptions[i].getType() === stype) return model.shaderDescriptions[i]; - } - return null; - }; - publicAPI.addBindGroupLayout = bindGroup => { - if (!bindGroup) { - return; - } - model.layouts.push({ - layout: bindGroup.getBindGroupLayout(model.device), - label: bindGroup.getLabel() - }); - }; - publicAPI.getBindGroupLayout = idx => model.layouts[idx].layout; - publicAPI.getBindGroupLayoutCount = llabel => { - for (let i = 0; i < model.layouts.length; i++) { - if (model.layouts[i].label === llabel) { - return i; - } - } - return 0; - }; - publicAPI.bindVertexInput = (renderEncoder, vInput) => { - vInput.bindBuffers(renderEncoder); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- -const DEFAULT_VALUES = { - handle: null, - layouts: null, - renderEncoder: null, - shaderDescriptions: null, - vertexState: null, - topology: null, - pipelineDescription: null -}; - -// ---------------------------------------------------------------------------- -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - obj(publicAPI, model); - model.layouts = []; - model.shaderDescriptions = []; - get(publicAPI, model, ['handle', 'pipelineDescription']); - setGet(publicAPI, model, ['device', 'renderEncoder', 'topology', 'vertexState']); - - // For more macro methods, see "Sources/macros.js" - // Object specific methods - vtkWebGPUPipeline(publicAPI, model); -} - -// ---------------------------------------------------------------------------- -const newInstance = newInstance$1(extend, 'vtkWebGPUPipeline'); - -// ---------------------------------------------------------------------------- -var vtkWebGPUPipeline$1 = { - newInstance, - extend -}; - -export { vtkWebGPUPipeline$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/PixelSpaceCallbackMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/PixelSpaceCallbackMapper.js deleted file mode 100644 index 1f02d670..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/PixelSpaceCallbackMapper.js +++ /dev/null @@ -1,56 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -// ---------------------------------------------------------------------------- -// vtkWebGPUPixelSpaceCallbackMapper methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUPixelSpaceCallbackMapper(publicAPI, model) { - model.classHierarchy.push('vtkWebGPUPixelSpaceCallbackMapper'); - publicAPI.opaquePass = (prepass, renderPass) => { - model.WebGPURenderer = publicAPI.getFirstAncestorOfType('vtkWebGPURenderer'); - model.WebGPURenderWindow = model.WebGPURenderer.getParent(); - const aspectRatio = model.WebGPURenderer.getAspectRatio(); - const camera = model.WebGPURenderer ? model.WebGPURenderer.getRenderable().getActiveCamera() : null; - const tsize = model.WebGPURenderer.getTiledSizeAndOrigin(); - const texels = null; - if (model.renderable.getUseZValues()) ; - model.renderable.invokeCallback(model.renderable.getInputData(), camera, aspectRatio, tsize, texels); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - - // Object methods - vtkWebGPUPixelSpaceCallbackMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWebGPUPixelSpaceCallbackMapper'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -// Register ourself to WebGPU backend if imported -registerOverride('vtkPixelSpaceCallbackMapper', newInstance); - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/PolyDataMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/PolyDataMapper.js deleted file mode 100644 index f3815cbf..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/PolyDataMapper.js +++ /dev/null @@ -1,138 +0,0 @@ -import { n as newInstance$1, r as vtkErrorMacro } from '../../macros2.js'; -import vtkWebGPUBufferManager from './BufferManager.js'; -import vtkWebGPUCellArrayMapper from './CellArrayMapper.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -const { - PrimitiveTypes -} = vtkWebGPUBufferManager; - -// ---------------------------------------------------------------------------- -// vtkWebGPUPolyDataMapper methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUPolyDataMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUPolyDataMapper'); - publicAPI.createCellArrayMapper = () => vtkWebGPUCellArrayMapper.newInstance(); - publicAPI.buildPass = prepass => { - if (prepass) { - model.WebGPUActor = publicAPI.getFirstAncestorOfType('vtkWebGPUActor'); - if (!model.renderable.getStatic()) { - model.renderable.update(); - } - const poly = model.renderable.getInputData(); - model.renderable.mapScalars(poly, 1.0); - publicAPI.updateCellArrayMappers(poly); - } - }; - publicAPI.updateCellArrayMappers = poly => { - if (!poly) { - vtkErrorMacro('No input!'); - return; - } - const prims = [poly.getVerts(), poly.getLines(), poly.getPolys(), poly.getStrips()]; - - // we instantiate a cell array mapper for each cellArray that has cells - // and they handle the rendering of that cell array - const cellMappers = []; - let cellOffset = 0; - // Handle all primitive types including strips - for (let i = PrimitiveTypes.Points; i <= PrimitiveTypes.TriangleStrips; i++) { - if (prims[i].getNumberOfValues() > 0) { - if (!model.primitives[i]) { - model.primitives[i] = publicAPI.createCellArrayMapper(); - } - const cellMapper = model.primitives[i]; - cellMapper.setCellArray(prims[i]); - cellMapper.setCurrentInput(poly); - cellMapper.setCellOffset(cellOffset); - cellMapper.setPrimitiveType(i); - cellMapper.setRenderable(model.renderable); - cellOffset += prims[i].getNumberOfCells(); - cellMappers.push(cellMapper); - } else { - model.primitives[i] = null; - } - } - - // Handle edge visibility for both triangles and triangle strips - if (model.WebGPUActor.getRenderable().getProperty().getEdgeVisibility()) { - // Handle triangle edges - if (prims[PrimitiveTypes.Triangles].getNumberOfValues() > 0) { - const i = PrimitiveTypes.TriangleEdges; - if (!model.primitives[i]) { - model.primitives[i] = publicAPI.createCellArrayMapper(); - } - const cellMapper = model.primitives[i]; - cellMapper.setCellArray(prims[PrimitiveTypes.Triangles]); - cellMapper.setCurrentInput(poly); - cellMapper.setCellOffset(model.primitives[PrimitiveTypes.Triangles].getCellOffset()); - cellMapper.setPrimitiveType(i); - cellMapper.setRenderable(model.renderable); - cellMappers.push(cellMapper); - } else { - model.primitives[PrimitiveTypes.TriangleEdges] = null; - } - - // Handle triangle strip edges - if (prims[PrimitiveTypes.TriangleStrips].getNumberOfValues() > 0) { - const i = PrimitiveTypes.TriangleStripEdges; - if (!model.primitives[i]) { - model.primitives[i] = publicAPI.createCellArrayMapper(); - } - const cellMapper = model.primitives[i]; - cellMapper.setCellArray(prims[PrimitiveTypes.TriangleStrips]); - cellMapper.setCurrentInput(poly); - cellMapper.setCellOffset(model.primitives[PrimitiveTypes.TriangleStrips].getCellOffset()); - cellMapper.setPrimitiveType(i); - cellMapper.setRenderable(model.renderable); - cellMappers.push(cellMapper); - } else { - model.primitives[PrimitiveTypes.TriangleStripEdges] = null; - } - } - publicAPI.prepareNodes(); - publicAPI.addMissingChildren(cellMappers); - publicAPI.removeUnusedNodes(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - primitives: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - model.primitives = []; - - // Object methods - vtkWebGPUPolyDataMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkWebGPUPolyDataMapper'); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUPolyDataMapper$1 = { - newInstance, - extend -}; - -// Register ourself to WebGPU backend if imported -registerOverride('vtkMapper', newInstance); - -export { vtkWebGPUPolyDataMapper$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/PolyDataMapper2D.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/PolyDataMapper2D.js deleted file mode 100644 index 62f03cb9..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/PolyDataMapper2D.js +++ /dev/null @@ -1,99 +0,0 @@ -import { n as newInstance$1 } from '../../macros2.js'; -import vtkWebGPUBufferManager from './BufferManager.js'; -import vtkWebGPUCellArrayMapper from './CellArrayMapper.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -const { - PrimitiveTypes -} = vtkWebGPUBufferManager; - -// ---------------------------------------------------------------------------- -// vtkWebGPUPolyDataMapper methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUPolyDataMapper2D(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUPolyDataMapper2D'); - publicAPI.createCellArrayMapper = () => vtkWebGPUCellArrayMapper.newInstance(); - publicAPI.buildPass = prepass => { - if (prepass) { - model.WebGPUActor = publicAPI.getFirstAncestorOfType('vtkWebGPUActor2D'); - if (!model.renderable.getStatic()) { - model.renderable.update(); - } - const poly = model.renderable.getInputData(); - model.renderable.mapScalars(poly, 1.0); - publicAPI.updateCellArrayMappers(poly); - } - }; - publicAPI.updateCellArrayMappers = poly => { - const prims = [poly.getVerts(), poly.getLines(), poly.getPolys(), poly.getStrips()]; - - // we instantiate a cell array mapper for each cellArray that has cells - // and they handle the rendering of that cell array - const cellMappers = []; - let cellOffset = 0; - for (let i = PrimitiveTypes.Points; i <= PrimitiveTypes.Triangles; i++) { - if (prims[i].getNumberOfValues() > 0) { - if (!model.primitives[i]) { - model.primitives[i] = publicAPI.createCellArrayMapper(); - } - const cellMapper = model.primitives[i]; - cellMapper.setCellArray(prims[i]); - cellMapper.setCurrentInput(poly); - cellMapper.setCellOffset(cellOffset); - cellMapper.setPrimitiveType(i); - cellMapper.setRenderable(model.renderable); - cellMapper.setIs2D(true); - cellOffset += prims[i].getNumberOfCells(); - cellMappers.push(cellMapper); - } else { - model.primitives[i] = null; - } - } - publicAPI.prepareNodes(); - publicAPI.addMissingChildren(cellMappers); - publicAPI.removeUnusedNodes(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - return { - primitives: [], - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - model.primitives = []; - - // Object methods - vtkWebGPUPolyDataMapper2D(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkWebGPUPolyDataMapper2D'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -// Register ourself to WebGPU backend if imported -registerOverride('vtkMapper2D', newInstance); - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Profiles/All.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Profiles/All.js deleted file mode 100644 index fc67f390..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Profiles/All.js +++ /dev/null @@ -1,16 +0,0 @@ -import '../Camera.js'; -import '../Renderer.js'; -import '../Actor.js'; -import '../Actor2D.js'; -import '../CubeAxesActor.js'; -import '../PolyDataMapper.js'; -import '../PolyDataMapper2D.js'; -import '../ScalarBarActor.js'; -import '../Texture.js'; -import '../Glyph3DMapper.js'; -import '../ImageMapper.js'; -import '../ImageSlice.js'; -import '../Volume.js'; -import '../PixelSpaceCallbackMapper.js'; -import '../SphereMapper.js'; -import '../StickMapper.js'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Profiles/Geometry.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Profiles/Geometry.js deleted file mode 100644 index c9b372b1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Profiles/Geometry.js +++ /dev/null @@ -1,10 +0,0 @@ -import '../Camera.js'; -import '../Renderer.js'; -import '../Actor.js'; -import '../Actor2D.js'; -import '../CubeAxesActor.js'; -import '../PolyDataMapper.js'; -import '../PolyDataMapper2D.js'; -import '../ScalarBarActor.js'; -import '../Texture.js'; -import '../PixelSpaceCallbackMapper.js'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Profiles/Glyph.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Profiles/Glyph.js deleted file mode 100644 index 643c9472..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Profiles/Glyph.js +++ /dev/null @@ -1 +0,0 @@ -import '../Glyph3DMapper.js'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Profiles/LIC.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Profiles/LIC.js deleted file mode 100644 index 8b137891..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Profiles/LIC.js +++ /dev/null @@ -1 +0,0 @@ - diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Profiles/Molecule.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Profiles/Molecule.js deleted file mode 100644 index 6e6c5625..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Profiles/Molecule.js +++ /dev/null @@ -1,2 +0,0 @@ -import '../SphereMapper.js'; -import '../StickMapper.js'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Profiles/Volume.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Profiles/Volume.js deleted file mode 100644 index 9dd6948b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Profiles/Volume.js +++ /dev/null @@ -1,6 +0,0 @@ -import '../Camera.js'; -import '../Renderer.js'; -import '../ImageMapper.js'; -import '../ImageSlice.js'; -import '../Volume.js'; -import '../PixelSpaceCallbackMapper.js'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/RenderEncoder.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/RenderEncoder.js deleted file mode 100644 index a960f217..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/RenderEncoder.js +++ /dev/null @@ -1,218 +0,0 @@ -import { n as newInstance$1, o as obj, g as get, e as setGet } from '../../macros2.js'; -import vtkWebGPUShaderCache from './ShaderCache.js'; - -// methods we forward to the handle -const forwarded = ['setBindGroup', 'setIndexBuffer', 'setVertexBuffer', 'draw', 'drawIndexed']; - -// ---------------------------------------------------------------------------- -// vtkWebGPURenderEncoder methods -// ---------------------------------------------------------------------------- -function vtkWebGPURenderEncoder(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPURenderEncoder'); - publicAPI.begin = encoder => { - model.drawCallbacks = []; - model.handle = encoder.beginRenderPass(model.description); - if (model.label) { - model.handle.pushDebugGroup(model.label); - } - }; - publicAPI.end = () => { - // loop over registered pipelines and their callbacks - for (let i = 0; i < model.drawCallbacks.length; i++) { - const pStruct = model.drawCallbacks[i]; - const pl = pStruct.pipeline; - publicAPI.setPipeline(pl); - for (let cb = 0; cb < pStruct.callbacks.length; cb++) { - pStruct.callbacks[cb](publicAPI); - } - } - if (model.label) { - model.handle.popDebugGroup(); - } - model.handle.end(); - model.boundPipeline = null; - }; - publicAPI.setPipeline = pl => { - if (model.boundPipeline === pl) { - return; - } - model.handle.setPipeline(pl.getHandle()); - const pd = pl.getPipelineDescription(); - - // check attachment state - if (model.colorTextureViews.length !== pd.fragment.targets.length) { - console.log(`mismatched attachment counts on pipeline ${pd.fragment.targets.length} while encoder has ${model.colorTextureViews.length}`); - console.trace(); - } else { - for (let i = 0; i < model.colorTextureViews.length; i++) { - const fmt = model.colorTextureViews[i].getTexture()?.getFormat(); - if (fmt && fmt !== pd.fragment.targets[i].format) { - console.log(`mismatched attachments for attachment ${i} on pipeline ${pd.fragment.targets[i].format} while encoder has ${fmt}`); - console.trace(); - } - } - } - - // check depth buffer - if (!model.depthTextureView !== !('depthStencil' in pd)) { - console.log('mismatched depth attachments'); - console.trace(); - } else if (model.depthTextureView) { - const dfmt = model.depthTextureView.getTexture()?.getFormat(); - if (dfmt && dfmt !== pd.depthStencil.format) { - console.log(`mismatched depth attachments on pipeline ${pd.depthStencil.format} while encoder has ${dfmt}`); - console.trace(); - } - } - model.boundPipeline = pl; - }; - publicAPI.replaceShaderCode = pipeline => { - model.replaceShaderCodeFunction(pipeline); - }; - publicAPI.setColorTextureView = (idx, view) => { - if (model.colorTextureViews[idx] === view) { - return; - } - model.colorTextureViews[idx] = view; - }; - publicAPI.activateBindGroup = bg => { - const device = model.boundPipeline.getDevice(); - const midx = model.boundPipeline.getBindGroupLayoutCount(bg.getLabel()); - model.handle.setBindGroup(midx, bg.getBindGroup(device)); - // verify bind group layout matches - const bgl1 = device.getBindGroupLayoutDescription(bg.getBindGroupLayout(device)); - const bgl2 = device.getBindGroupLayoutDescription(model.boundPipeline.getBindGroupLayout(midx)); - if (bgl1 !== bgl2) { - console.log(`renderEncoder ${model.pipelineHash} mismatched bind group layouts bind group has\n${bgl1}\n versus pipeline\n${bgl2}\n`); - console.trace(); - } - }; - publicAPI.attachTextureViews = () => { - // for each texture create a view if we do not already have one - for (let i = 0; i < model.colorTextureViews.length; i++) { - if (!model.description.colorAttachments[i]) { - model.description.colorAttachments[i] = { - view: model.colorTextureViews[i].getHandle() - }; - } else { - model.description.colorAttachments[i].view = model.colorTextureViews[i].getHandle(); - } - } - if (model.depthTextureView) { - model.description.depthStencilAttachment.view = model.depthTextureView.getHandle(); - } - }; - - // register pipeline callbacks from a mapper - publicAPI.registerDrawCallback = (pipeline, cb) => { - // if there is a matching pipeline just add the cb - for (let i = 0; i < model.drawCallbacks.length; i++) { - if (model.drawCallbacks[i].pipeline === pipeline) { - model.drawCallbacks[i].callbacks.push(cb); - return; - } - } - model.drawCallbacks.push({ - pipeline, - callbacks: [cb] - }); - }; - - // simple forwarders - for (let i = 0; i < forwarded.length; i++) { - publicAPI[forwarded[i]] = function () { - return model.handle[forwarded[i]](...arguments); - }; - } -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- -const DEFAULT_VALUES = { - description: null, - handle: null, - boundPipeline: null, - pipelineHash: null, - pipelineSettings: null, - replaceShaderCodeFunction: null, - depthTextureView: null, - label: null -}; - -// ---------------------------------------------------------------------------- -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - obj(publicAPI, model); - model.description = { - colorAttachments: [{ - view: undefined, - loadOp: 'load', - storeOp: 'store' - }], - depthStencilAttachment: { - view: undefined, - depthLoadOp: 'clear', - depthClearValue: 0.0, - depthStoreOp: 'store' - } - }; - - // default shader code just writes out the computedColor - model.replaceShaderCodeFunction = pipeline => { - const fDesc = pipeline.getShaderDescription('fragment'); - fDesc.addOutput('vec4', 'outColor'); - let code = fDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::RenderEncoder::Impl', ['output.outColor = computedColor;']).result; - fDesc.setCode(code); - }; - - // default pipeline settings - model.pipelineSettings = { - primitive: { - cullMode: 'none' - }, - depthStencil: { - depthWriteEnabled: true, - depthCompare: 'greater-equal', - format: 'depth32float' - }, - fragment: { - targets: [{ - format: 'rgba16float', - blend: { - color: { - srcFactor: 'src-alpha', - dstFactor: 'one-minus-src-alpha' - }, - alpha: { - srcFactor: 'one', - dstFactor: 'one-minus-src-alpha' - } - } - }] - } - }; - model.colorTextureViews = []; - get(publicAPI, model, ['boundPipeline', 'colorTextureViews']); - setGet(publicAPI, model, ['depthTextureView', 'description', 'handle', 'label', 'pipelineHash', 'pipelineSettings', 'replaceShaderCodeFunction']); - - // For more macro methods, see "Sources/macros.js" - // Object specific methods - vtkWebGPURenderEncoder(publicAPI, model); -} - -// ---------------------------------------------------------------------------- -const newInstance = newInstance$1(extend, 'vtkWebGPURenderEncoder'); - -// ---------------------------------------------------------------------------- -var vtkWebGPURenderEncoder$1 = { - newInstance, - extend -}; - -export { vtkWebGPURenderEncoder$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/RenderWindow.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/RenderWindow.js deleted file mode 100644 index aeb42363..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/RenderWindow.js +++ /dev/null @@ -1,592 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { registerViewConstructor } from '../Core/RenderWindow.js'; -import vtkForwardPass from './ForwardPass.js'; -import vtkWebGPUBuffer from './Buffer.js'; -import vtkWebGPUDevice from './Device.js'; -import vtkWebGPUHardwareSelector from './HardwareSelector.js'; -import vtkWebGPUViewNodeFactory, { registerOverride } from './ViewNodeFactory.js'; -import vtkRenderPass from '../SceneGraph/RenderPass.js'; -import vtkRenderWindowViewNode from '../SceneGraph/RenderWindowViewNode.js'; -import HalfFloat from '../../Common/Core/HalfFloat.js'; - -const { - vtkErrorMacro -} = macro; -// const IS_CHROME = navigator.userAgent.indexOf('Chrome') !== -1; -const SCREENSHOT_PLACEHOLDER = { - position: 'absolute', - top: 0, - left: 0, - width: '100%', - height: '100%' -}; - -// ---------------------------------------------------------------------------- -// vtkWebGPURenderWindow methods -// ---------------------------------------------------------------------------- - -function vtkWebGPURenderWindow(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPURenderWindow'); - publicAPI.getViewNodeFactory = () => model.myFactory; - - // Auto update style - const previousSize = [0, 0]; - function updateWindow() { - // Canvas size - if (model.renderable) { - if (model.size[0] !== previousSize[0] || model.size[1] !== previousSize[1]) { - previousSize[0] = model.size[0]; - previousSize[1] = model.size[1]; - model.canvas.setAttribute('width', model.size[0]); - model.canvas.setAttribute('height', model.size[1]); - publicAPI.recreateSwapChain(); - } - } - - // ImageStream size - if (model.viewStream) { - // If same size that's a NoOp - model.viewStream.setSize(model.size[0], model.size[1]); - } - - // Offscreen ? - model.canvas.style.display = model.useOffScreen ? 'none' : 'block'; - - // Cursor type - if (model.el) { - model.el.style.cursor = model.cursorVisibility ? model.cursor : 'none'; - } - - // Invalidate cached DOM container size - model.containerSize = null; - } - publicAPI.onModified(updateWindow); - publicAPI.recreateSwapChain = () => { - if (model.context) { - model.context.unconfigure(); - model.presentationFormat = navigator.gpu.getPreferredCanvasFormat(model.adapter); - - /* eslint-disable no-undef */ - /* eslint-disable no-bitwise */ - model.context.configure({ - device: model.device.getHandle(), - format: model.presentationFormat, - alphaMode: 'premultiplied', - usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.COPY_DST, - width: model.size[0], - height: model.size[1] - }); - model._configured = true; - } - }; - publicAPI.getCurrentTexture = () => model.context.getCurrentTexture(); - - // Builds myself. - publicAPI.buildPass = prepass => { - if (prepass) { - if (!model.renderable) { - return; - } - publicAPI.prepareNodes(); - publicAPI.addMissingNodes(model.renderable.getRenderersByReference()); - publicAPI.removeUnusedNodes(); - publicAPI.initialize(); - } else if (model.initialized) { - if (!model._configured) { - publicAPI.recreateSwapChain(); - } - model.commandEncoder = model.device.createCommandEncoder(); - } - }; - - // publicAPI.traverseRenderers = (renPass) => { - // // iterate over renderers - // const numlayers = publicAPI.getRenderable().getNumberOfLayers(); - // const renderers = publicAPI.getChildren(); - // for (let i = 0; i < numlayers; i++) { - // for (let index = 0; index < renderers.length; index++) { - // const renNode = renderers[index]; - // const ren = publicAPI.getRenderable().getRenderers()[index]; - // if (ren.getDraw() && ren.getLayer() === i) { - // renNode.traverse(renPass); - // } - // } - // } - // }; - - publicAPI.initialize = () => { - if (!model.initializing) { - model.initializing = true; - if (!navigator.gpu) { - vtkErrorMacro('WebGPU is not enabled.'); - return; - } - publicAPI.create3DContextAsync().then(() => { - model.initialized = true; - if (model.deleted) { - return; - } - publicAPI.invokeInitialized(); - }); - } - }; - publicAPI.setContainer = el => { - if (model.el && model.el !== el) { - if (model.canvas.parentNode !== model.el) { - vtkErrorMacro('Error: canvas parent node does not match container'); - } - - // Remove canvas from previous container - model.el.removeChild(model.canvas); - - // If the renderer has previously added - // a background image, remove it from the DOM. - if (model.el.contains(model.bgImage)) { - model.el.removeChild(model.bgImage); - } - } - if (model.el !== el) { - model.el = el; - if (model.el) { - model.el.appendChild(model.canvas); - - // If the renderer is set to use a background - // image, attach it to the DOM. - if (model.useBackgroundImage) { - model.el.appendChild(model.bgImage); - } - } - - // Trigger modified() - publicAPI.modified(); - } - }; - publicAPI.getContainer = () => model.el; - publicAPI.getContainerSize = () => { - if (!model.containerSize && model.el) { - const { - width, - height - } = model.el.getBoundingClientRect(); - model.containerSize = [width, height]; - } - return model.containerSize || model.size; - }; - publicAPI.getFramebufferSize = () => model.size; - publicAPI.create3DContextAsync = async () => { - // Get a GPU device to render with - model.adapter = await navigator.gpu.requestAdapter({ - powerPreference: 'high-performance' - }); - if (model.deleted) { - return; - } - // console.log([...model.adapter.features]); - model.device = vtkWebGPUDevice.newInstance(); - model.device.initialize(await model.adapter.requestDevice()); - if (model.deleted) { - model.device = null; - return; - } - // model.device.getHandle().lost.then((info) => { - // console.log(`${info.message}`); - // publicAPI.releaseGraphicsResources(); - // }); - model.context = model.canvas.getContext('webgpu'); - }; - publicAPI.releaseGraphicsResources = () => { - const rp = vtkRenderPass.newInstance(); - rp.setCurrentOperation('Release'); - rp.traverse(publicAPI, null); - model.adapter = null; - model.device = null; - model.context = null; - model.initialized = false; - model.initializing = false; - }; - publicAPI.setBackgroundImage = img => { - model.bgImage.src = img.src; - }; - publicAPI.setUseBackgroundImage = value => { - model.useBackgroundImage = value; - - // Add or remove the background image from the - // DOM as specified. - if (model.useBackgroundImage && !model.el.contains(model.bgImage)) { - model.el.appendChild(model.bgImage); - } else if (!model.useBackgroundImage && model.el.contains(model.bgImage)) { - model.el.removeChild(model.bgImage); - } - }; - async function getCanvasDataURL() { - let format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : model.imageFormat; - // Copy current canvas to not modify the original - const temporaryCanvas = document.createElement('canvas'); - const temporaryContext = temporaryCanvas.getContext('2d'); - temporaryCanvas.width = model.canvas.width; - temporaryCanvas.height = model.canvas.height; - const result = await publicAPI.getPixelsAsync(); - const imageData = new ImageData(result.colorValues, result.width, result.height); - // temporaryCanvas.putImageData(imageData, 0, 0); - temporaryContext.putImageData(imageData, 0, 0); - - // Get current client rect to place canvas - const mainBoundingClientRect = model.canvas.getBoundingClientRect(); - const renderWindow = model.renderable; - const renderers = renderWindow.getRenderers(); - renderers.forEach(renderer => { - const viewProps = renderer.getViewProps(); - viewProps.forEach(viewProp => { - // Check if the prop has a container that should have canvas - if (viewProp.getContainer) { - const container = viewProp.getContainer(); - const canvasList = container.getElementsByTagName('canvas'); - // Go throughout all canvas and copy it into temporary main canvas - for (let i = 0; i < canvasList.length; i++) { - const currentCanvas = canvasList[i]; - const boundingClientRect = currentCanvas.getBoundingClientRect(); - const newXPosition = boundingClientRect.x - mainBoundingClientRect.x; - const newYPosition = boundingClientRect.y - mainBoundingClientRect.y; - temporaryContext.drawImage(currentCanvas, newXPosition, newYPosition); - } - } - }); - }); - const screenshot = temporaryCanvas.toDataURL(format); - temporaryCanvas.remove(); - publicAPI.invokeImageReady(screenshot); - } - publicAPI.captureNextImage = function () { - let format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'image/png'; - let { - resetCamera = false, - size = null, - scale = 1 - } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - if (model.deleted) { - return null; - } - model.imageFormat = format; - const previous = model.notifyStartCaptureImage; - model.notifyStartCaptureImage = true; - model._screenshot = { - size: !!size || scale !== 1 ? size || model.size.map(val => val * scale) : null - }; - return new Promise((resolve, reject) => { - const subscription = publicAPI.onImageReady(imageURL => { - if (model._screenshot.size === null) { - model.notifyStartCaptureImage = previous; - subscription.unsubscribe(); - if (model._screenshot.placeHolder) { - // resize the main canvas back to its original size and show it - model.size = model._screenshot.originalSize; - - // process the resize - publicAPI.modified(); - - // restore the saved camera parameters, if applicable - if (model._screenshot.cameras) { - model._screenshot.cameras.forEach(_ref => { - let { - restoreParamsFn, - arg - } = _ref; - return restoreParamsFn(arg); - }); - } - - // Trigger a render at the original size - publicAPI.traverseAllPasses(); - - // Remove and clean up the placeholder, revealing the original - model.el.removeChild(model._screenshot.placeHolder); - model._screenshot.placeHolder.remove(); - model._screenshot = null; - } - resolve(imageURL); - } else { - // Create a placeholder image overlay while we resize and render - const tmpImg = document.createElement('img'); - tmpImg.style = SCREENSHOT_PLACEHOLDER; - tmpImg.src = imageURL; - model._screenshot.placeHolder = model.el.appendChild(tmpImg); - - // hide the main canvas - model.canvas.style.display = 'none'; - - // remember the main canvas original size, then resize it - model._screenshot.originalSize = model.size; - model.size = model._screenshot.size; - model._screenshot.size = null; - - // process the resize - publicAPI.modified(); - if (resetCamera) { - const isUserResetCamera = resetCamera !== true; - - // If resetCamera was requested, we first save camera parameters - // from all the renderers, so we can restore them later - model._screenshot.cameras = model.renderable.getRenderers().map(renderer => { - const camera = renderer.getActiveCamera(); - const params = camera.get('focalPoint', 'position', 'parallelScale'); - return { - resetCameraArgs: isUserResetCamera ? { - renderer - } : undefined, - resetCameraFn: isUserResetCamera ? resetCamera : renderer.resetCamera, - restoreParamsFn: camera.set, - // "clone" the params so we don't keep refs to properties - arg: JSON.parse(JSON.stringify(params)) - }; - }); - - // Perform the resetCamera() on each renderer only after capturing - // the params from all active cameras, in case there happen to be - // linked cameras among the renderers. - model._screenshot.cameras.forEach(_ref2 => { - let { - resetCameraFn, - resetCameraArgs - } = _ref2; - return resetCameraFn(resetCameraArgs); - }); - } - - // Trigger a render at the custom size - publicAPI.traverseAllPasses(); - } - }); - }); - }; - publicAPI.traverseAllPasses = () => { - if (model.deleted) { - return; - } - // if we are not initialized then we call initialize - // which is async so we will not actually get a render - // so we queue up another traverse for when we are initialized - if (!model.initialized) { - publicAPI.initialize(); - const subscription = publicAPI.onInitialized(() => { - subscription.unsubscribe(); - publicAPI.traverseAllPasses(); - }); - } else { - if (model.renderPasses) { - for (let index = 0; index < model.renderPasses.length; ++index) { - model.renderPasses[index].traverse(publicAPI, null); - } - } - if (model.commandEncoder) { - model.device.submitCommandEncoder(model.commandEncoder); - model.commandEncoder = null; - if (model.notifyStartCaptureImage) { - model.device.onSubmittedWorkDone().then(() => { - getCanvasDataURL(); - }); - } - } - } - }; - publicAPI.setViewStream = stream => { - if (model.viewStream === stream) { - return false; - } - if (model.subscription) { - model.subscription.unsubscribe(); - model.subscription = null; - } - model.viewStream = stream; - if (model.viewStream) { - // Force background to be transparent + render - const mainRenderer = model.renderable.getRenderers()[0]; - mainRenderer.getBackgroundByReference()[3] = 0; - - // Enable display of the background image - publicAPI.setUseBackgroundImage(true); - - // Bind to remote stream - model.subscription = model.viewStream.onImageReady(e => publicAPI.setBackgroundImage(e.image)); - model.viewStream.setSize(model.size[0], model.size[1]); - model.viewStream.invalidateCache(); - model.viewStream.render(); - publicAPI.modified(); - } - return true; - }; - publicAPI.getUniquePropID = () => model.nextPropID++; - publicAPI.getPropFromID = id => { - for (let i = 0; i < model.children.length; i++) { - const res = model.children[i].getPropFromID(id); - if (res !== null) { - return res; - } - } - return null; - }; - publicAPI.getPixelsAsync = async () => { - const device = model.device; - const texture = model.renderPasses[0].getOpaquePass().getColorTexture(); - - // as this is async we really don't want to store things in - // the class as multiple calls may start before resolving - // so anything specific to this request gets put into the - // result object (by value in most cases) - const result = { - width: texture.getWidth(), - height: texture.getHeight() - }; - - // must be a multiple of 256 bytes, so 32 texels with rgba16 - result.colorBufferWidth = 32 * Math.floor((result.width + 31) / 32); - result.colorBufferSizeInBytes = result.colorBufferWidth * result.height * 8; - const colorBuffer = vtkWebGPUBuffer.newInstance(); - colorBuffer.setDevice(device); - /* eslint-disable no-bitwise */ - /* eslint-disable no-undef */ - colorBuffer.create(result.colorBufferSizeInBytes, GPUBufferUsage.MAP_READ | GPUBufferUsage.COPY_DST); - /* eslint-enable no-bitwise */ - /* eslint-enable no-undef */ - - const cmdEnc = model.device.createCommandEncoder(); - cmdEnc.copyTextureToBuffer({ - texture: texture.getHandle() - }, { - buffer: colorBuffer.getHandle(), - bytesPerRow: 8 * result.colorBufferWidth, - rowsPerImage: result.height - }, { - width: result.width, - height: result.height, - depthOrArrayLayers: 1 - }); - device.submitCommandEncoder(cmdEnc); - - /* eslint-disable no-undef */ - const cLoad = colorBuffer.mapAsync(GPUMapMode.READ); - await cLoad; - /* eslint-enable no-undef */ - - result.colorValues = new Uint16Array(colorBuffer.getMappedRange().slice()); - colorBuffer.unmap(); - // repack the array - const tmparray = new Uint8ClampedArray(result.height * result.width * 4); - for (let y = 0; y < result.height; y++) { - for (let x = 0; x < result.width; x++) { - const doffset = (y * result.width + x) * 4; - const soffset = (y * result.colorBufferWidth + x) * 4; - tmparray[doffset] = 255.0 * HalfFloat.fromHalf(result.colorValues[soffset]); - tmparray[doffset + 1] = 255.0 * HalfFloat.fromHalf(result.colorValues[soffset + 1]); - tmparray[doffset + 2] = 255.0 * HalfFloat.fromHalf(result.colorValues[soffset + 2]); - tmparray[doffset + 3] = 255.0 * HalfFloat.fromHalf(result.colorValues[soffset + 3]); - } - } - result.colorValues = tmparray; - return result; - }; - publicAPI.createSelector = () => { - const ret = vtkWebGPUHardwareSelector.newInstance(); - ret.setWebGPURenderWindow(publicAPI); - return ret; - }; - const superSetSize = publicAPI.setSize; - publicAPI.setSize = (width, height) => { - const modified = superSetSize(width, height); - if (modified) { - publicAPI.invokeWindowResizeEvent({ - width, - height - }); - } - return modified; - }; - publicAPI.delete = macro.chain(publicAPI.delete, publicAPI.setViewStream); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - initialized: false, - context: null, - adapter: null, - device: null, - canvas: null, - cursorVisibility: true, - cursor: 'pointer', - containerSize: null, - renderPasses: [], - notifyStartCaptureImage: false, - imageFormat: 'image/png', - useOffScreen: false, - useBackgroundImage: false, - nextPropID: 1, - xrSupported: false, - presentationFormat: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Create internal instances - model.canvas = document.createElement('canvas'); - model.canvas.style.width = '100%'; - - // Create internal bgImage - model.bgImage = new Image(); - model.bgImage.style.position = 'absolute'; - model.bgImage.style.left = '0'; - model.bgImage.style.top = '0'; - model.bgImage.style.width = '100%'; - model.bgImage.style.height = '100%'; - model.bgImage.style.zIndex = '-1'; - - // Inheritance - vtkRenderWindowViewNode.extend(publicAPI, model, initialValues); - model.myFactory = vtkWebGPUViewNodeFactory.newInstance(); - - // setup default forward pass rendering - model.renderPasses[0] = vtkForwardPass.newInstance(); - if (!model.selector) { - model.selector = vtkWebGPUHardwareSelector.newInstance(); - model.selector.setWebGPURenderWindow(publicAPI); - } - macro.event(publicAPI, model, 'imageReady'); - macro.event(publicAPI, model, 'initialized'); - - // Build VTK API - macro.get(publicAPI, model, ['commandEncoder', 'device', 'presentationFormat', 'useBackgroundImage', 'xrSupported']); - macro.setGet(publicAPI, model, ['initialized', 'context', 'canvas', 'device', 'renderPasses', 'notifyStartCaptureImage', 'cursor', 'useOffScreen']); - macro.setGetArray(publicAPI, model, ['size'], 2); - macro.event(publicAPI, model, 'windowResizeEvent'); - - // Object methods - vtkWebGPURenderWindow(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWebGPURenderWindow'); - -// ---------------------------------------------------------------------------- -// Register API specific RenderWindow implementation -// ---------------------------------------------------------------------------- - -registerViewConstructor('WebGPU', newInstance); - -// ---------------------------------------------------------------------------- - -var vtkRenderWindow = { - newInstance, - extend -}; - -// Register ourself to WebGPU backend if imported -registerOverride('vtkRenderWindow', newInstance); - -export { vtkRenderWindow as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Renderer.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Renderer.js deleted file mode 100644 index a30902b2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Renderer.js +++ /dev/null @@ -1,518 +0,0 @@ -import { mat4, vec3 } from 'gl-matrix'; -import { n as newInstance$1, o as obj, g as get, k as getArray, e as setGet, c as macro } from '../../macros2.js'; -import { r as radiansFromDegrees } from '../../Common/Core/Math/index.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import vtkWebGPUBindGroup from './BindGroup.js'; -import vtkWebGPUFullScreenQuad from './FullScreenQuad.js'; -import vtkWebGPUStorageBuffer from './StorageBuffer.js'; -import vtkWebGPUUniformBuffer from './UniformBuffer.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -const { - vtkDebugMacro -} = macro; -const clearFragColorTemplate = ` -//VTK::Renderer::Dec - -//VTK::Mapper::Dec - -//VTK::TCoord::Dec - -//VTK::RenderEncoder::Dec - -//VTK::IOStructs::Dec - -@fragment -fn main( -//VTK::IOStructs::Input -) -//VTK::IOStructs::Output -{ - var output: fragmentOutput; - - var computedColor: vec4 = mapperUBO.BackgroundColor; - - //VTK::RenderEncoder::Impl - return output; -} -`; -const clearFragTextureTemplate = ` -fn vecToRectCoord(dir: vec3) -> vec2 { - var tau: f32 = 6.28318530718; - var pi: f32 = 3.14159265359; - var out: vec2 = vec2(0.0); - - out.x = atan2(dir.z, dir.x) / tau; - out.x += 0.5; - - var phix: f32 = length(vec2(dir.x, dir.z)); - out.y = atan2(dir.y, phix) / pi + 0.5; - - return out; -} - -//VTK::Renderer::Dec - -//VTK::Mapper::Dec - -//VTK::TCoord::Dec - -//VTK::RenderEncoder::Dec - -//VTK::IOStructs::Dec - -@fragment -fn main( -//VTK::IOStructs::Input -) -//VTK::IOStructs::Output -{ - var output: fragmentOutput; - - var tcoord: vec4 = vec4(input.vertexVC.xy, -1, 1); - var V: vec4 = normalize(mapperUBO.FSQMatrix * tcoord); // vec2((input.tcoordVS.x - 0.5) * 2, -(input.tcoordVS.y - 0.5) * 2); - // textureSampleLevel gets rid of some ugly artifacts - var background = textureSampleLevel(EnvironmentTexture, EnvironmentTextureSampler, vecToRectCoord(V.xyz), 0.0); - var computedColor: vec4 = vec4(background.rgb, 1); - - //VTK::RenderEncoder::Impl - return output; -} -`; -const _fsqClearMat4 = new Float64Array(16); -const _tNormalMat4 = new Float64Array(16); - -// Light type index gives either 0, 1, or 2 which indicates what type of light there is. -// While technically, there are only spot and directional lights, within the CellArrayMapper -// there is a third, positional light. It is technically just a variant of a spot light with -// a cone angle of 90 or above, however certain calculations can be skipped if it is treated -// separately. -// The mappings are shown below: -// 0 -> positional light -// 1 -> directional light -// 2 -> spot light -function getLightTypeIndex(light) { - if (light.getPositional()) { - if (light.getConeAngle() >= 90) { - return 0; - } - return 2; - } - return 1; -} - -// ---------------------------------------------------------------------------- -// vtkWebGPURenderer methods -// ---------------------------------------------------------------------------- -/* eslint-disable no-bitwise */ - -function vtkWebGPURenderer(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPURenderer'); - - // Builds myself. - publicAPI.buildPass = prepass => { - if (prepass) { - if (!model.renderable) { - return; - } - model.camera = model.renderable.getActiveCamera(); - publicAPI.updateLights(); - publicAPI.prepareNodes(); - publicAPI.addMissingNode(model.camera); - publicAPI.addMissingNodes(model.renderable.getViewPropsWithNestedProps()); - publicAPI.removeUnusedNodes(); - model.webgpuCamera = publicAPI.getViewNodeFor(model.camera); - publicAPI.updateStabilizedMatrix(); - } - }; - publicAPI.updateStabilizedMatrix = () => { - // This method is designed to help with floating point - // issues when rendering datasets that push the limits of - // resolutions on float. - // - // One of the most common cases is when the dataset is located far - // away from the origin relative to the clipping range we are looking - // at. For that case we want to perform the floating point sensitive - // multiplications on the CPU in double. To this end we want the - // vertex rendering ops to look something like - // - // Compute shifted points and load those into the VBO - // pointCoordsSC = WorldToStabilizedMatrix * pointCoords; - // - // In the vertex shader do the following - // positionVC = StabilizedToDeviceMatrix * ModelToStabilizedMatrix*vertexIn; - // - // We use two matrices because it is expensive to change the - // WorldToStabilized matrix as we have to reupload all pointCoords - // So that matrix (MCSCMatrix) is fairly static, the Stabilized to - // Device matrix is the one that gets updated every time the camera - // changes. - // - // The basic idea is that we should translate the data so that - // when the center of the view frustum moves a lot - // we recenter it. The center of the view frustum is roughly - // camPos + dirOfProj*(far + near)*0.5 - const clipRange = model.camera.getClippingRange(); - const pos = model.camera.getPositionByReference(); - const dop = model.camera.getDirectionOfProjectionByReference(); - const center = []; - const offset = []; - vec3.scale(offset, dop, 0.5 * (clipRange[0] + clipRange[1])); - vec3.add(center, pos, offset); - vec3.sub(offset, center, model.stabilizedCenter); - const length = vec3.len(offset); - if (length / (clipRange[1] - clipRange[0]) > model.recenterThreshold) { - model.stabilizedCenter = center; - model.stabilizedTime.modified(); - } - }; - publicAPI.updateLights = () => { - let count = 0; - const lights = model.renderable.getLightsByReference(); - for (let index = 0; index < lights.length; ++index) { - if (lights[index].getSwitch() > 0.0) { - count++; - } - } - if (!count) { - vtkDebugMacro('No lights are on, creating one.'); - model.renderable.createLight(); - } - return count; - }; - publicAPI.updateUBO = () => { - // make sure the data is up to date - // has the camera changed? - const utime = model.UBO.getSendTime(); - if (model._parent.getMTime() > utime || publicAPI.getMTime() > utime || model.camera.getMTime() > utime || model.renderable.getMTime() > utime) { - const keyMats = model.webgpuCamera.getKeyMatrices(publicAPI); - model.UBO.setArray('WCVCMatrix', keyMats.wcvc); - model.UBO.setArray('SCPCMatrix', keyMats.scpc); - model.UBO.setArray('PCSCMatrix', keyMats.pcsc); - model.UBO.setArray('SCVCMatrix', keyMats.scvc); - model.UBO.setArray('VCPCMatrix', keyMats.vcpc); - model.UBO.setArray('WCVCNormals', keyMats.normalMatrix); - model.UBO.setValue('LightCount', model.renderable.getLights().length); - model.UBO.setValue('MaxEnvironmentMipLevel', model.renderable.getEnvironmentTexture()?.getMipLevel()); - model.UBO.setValue('BackgroundDiffuseStrength', model.renderable.getEnvironmentTextureDiffuseStrength()); - model.UBO.setValue('BackgroundSpecularStrength', model.renderable.getEnvironmentTextureSpecularStrength()); - const tsize = publicAPI.getYInvertedTiledSizeAndOrigin(); - model.UBO.setArray('viewportSize', [tsize.usize, tsize.vsize]); - model.UBO.setValue('cameraParallel', model.camera.getParallelProjection()); - const device = model._parent.getDevice(); - model.UBO.sendIfNeeded(device); - } - }; - publicAPI.updateSSBO = () => { - const lights = model.renderable.getLights(); - const keyMats = model.webgpuCamera.getKeyMatrices(publicAPI); - let lightTimeString = `${model.renderable.getMTime()}`; - for (let i = 0; i < lights.length; i++) { - lightTimeString += lights[i].getMTime(); - } - if (lightTimeString !== model.lightTimeString) { - const lightPosArray = new Float32Array(lights.length * 4); - const lightDirArray = new Float32Array(lights.length * 4); - const lightColorArray = new Float32Array(lights.length * 4); - const lightTypeArray = new Float32Array(lights.length * 4); - for (let i = 0; i < lights.length; i++) { - const offset = i * 4; - - // Position - const viewCoordinatePosition = lights[i].getPosition(); - vec3.transformMat4(viewCoordinatePosition, viewCoordinatePosition, keyMats.wcvc); - // viewCoordinatePosition - lightPosArray[offset] = viewCoordinatePosition[0]; - lightPosArray[offset + 1] = viewCoordinatePosition[1]; - lightPosArray[offset + 2] = viewCoordinatePosition[2]; - lightPosArray[offset + 3] = 0; - - // Rotation (All are negative to correct for -Z being forward) - lightDirArray[offset] = -lights[i].getDirection()[0]; - lightDirArray[offset + 1] = -lights[i].getDirection()[1]; - lightDirArray[offset + 2] = -lights[i].getDirection()[2]; - lightDirArray[offset + 3] = 0; - - // Color - lightColorArray[offset] = lights[i].getColor()[0]; - lightColorArray[offset + 1] = lights[i].getColor()[1]; - lightColorArray[offset + 2] = lights[i].getColor()[2]; - lightColorArray[offset + 3] = lights[i].getIntensity() * 5; // arbitrary multiplication to fix the dullness of low value PBR lights - - // Type - lightTypeArray[offset] = getLightTypeIndex(lights[i]); // Type - lightTypeArray[offset + 1] = Math.cos(radiansFromDegrees(lights[i].getConeAngle())); // Inner Phi, should probably do some check on these to make sure they dont excede limits - lightTypeArray[offset + 2] = Math.cos(radiansFromDegrees(lights[i].getConeAngle() + lights[i].getConeFalloff())); // Outer Phi - lightTypeArray[offset + 3] = 0; - } - - // Im not sure how correct this is, but this is what the example does - // https://kitware.github.io/vtk-js/api/Rendering_WebGPU_VolumePassFSQ.html - model.SSBO.clearData(); - model.SSBO.setNumberOfInstances(lights.length); - model.SSBO.addEntry('LightPos', 'vec4'); // Position - model.SSBO.addEntry('LightDir', 'vec4'); // Direction - model.SSBO.addEntry('LightColor', 'vec4'); // Color (r, g, b, intensity) - model.SSBO.addEntry('LightData', 'vec4'); // Other data (type, etc, etc, etc) - - model.SSBO.setAllInstancesFromArray('LightPos', lightPosArray); - model.SSBO.setAllInstancesFromArray('LightDir', lightDirArray); - model.SSBO.setAllInstancesFromArray('LightColor', lightColorArray); - model.SSBO.setAllInstancesFromArray('LightData', lightTypeArray); - const device = model._parent.getDevice(); - model.SSBO.send(device); - } - model.lightTimeString = lightTimeString; - }; - publicAPI.scissorAndViewport = encoder => { - const tsize = publicAPI.getYInvertedTiledSizeAndOrigin(); - encoder.getHandle().setViewport(tsize.lowerLeftU, tsize.lowerLeftV, tsize.usize, tsize.vsize, 0.0, 1.0); - // set scissor - encoder.getHandle().setScissorRect(tsize.lowerLeftU, tsize.lowerLeftV, tsize.usize, tsize.vsize); - }; - publicAPI.bindUBO = renderEncoder => { - renderEncoder.activateBindGroup(model.bindGroup); - }; - - // Renders myself - publicAPI.opaquePass = prepass => { - if (prepass) { - model.renderEncoder.begin(model._parent.getCommandEncoder()); - publicAPI.updateUBO(); - publicAPI.updateSSBO(); - } else { - publicAPI.scissorAndViewport(model.renderEncoder); - publicAPI.clear(); - model.renderEncoder.end(); - } - }; - publicAPI.clear = () => { - if (model.renderable.getTransparent() || model.suppressClear) { - return; - } - const device = model._parent.getDevice(); - // Normal Solid Color - if (!model.clearFSQ) { - model.clearFSQ = vtkWebGPUFullScreenQuad.newInstance(); - model.clearFSQ.setDevice(device); - model.clearFSQ.setPipelineHash('clearfsq'); - model.clearFSQ.setFragmentShaderTemplate(clearFragColorTemplate); - const ubo = vtkWebGPUUniformBuffer.newInstance({ - label: 'mapperUBO' - }); - ubo.addEntry('FSQMatrix', 'mat4x4'); - ubo.addEntry('BackgroundColor', 'vec4'); - model.clearFSQ.setUBO(ubo); - model.backgroundTex = model.renderable.getEnvironmentTexture(); - } - // Textured Background - if (model.clearFSQ.getPipelineHash() !== 'clearfsqwithtexture' && model.renderable.getUseEnvironmentTextureAsBackground() && model.backgroundTex?.getImageLoaded()) { - model.clearFSQ.setFragmentShaderTemplate(clearFragTextureTemplate); - const ubo = vtkWebGPUUniformBuffer.newInstance({ - label: 'mapperUBO' - }); - ubo.addEntry('FSQMatrix', 'mat4x4'); - ubo.addEntry('BackgroundColor', 'vec4'); - model.clearFSQ.setUBO(ubo); - const environmentTextureHash = device.getTextureManager().getTextureForVTKTexture(model.backgroundTex, 'EnvironmentTexture'); - if (environmentTextureHash.getReady()) { - const tview = environmentTextureHash.createView(`EnvironmentTexture`); - model.clearFSQ.setTextureViews([tview]); - model.backgroundTexLoaded = true; - const interpolate = model.backgroundTex.getInterpolate() ? 'linear' : 'nearest'; - tview.addSampler(device, { - addressModeU: 'repeat', - addressModeV: 'clamp-to-edge', - addressModeW: 'repeat', - minFilter: interpolate, - magFilter: interpolate, - mipmapFilter: 'linear' - }); - } - model.clearFSQ.setPipelineHash('clearfsqwithtexture'); - } else if (model.clearFSQ.getPipelineHash() === 'clearfsqwithtexture' && !model.renderable.getUseEnvironmentTextureAsBackground()) { - // In case the mode is changed at runtime - model.clearFSQ = vtkWebGPUFullScreenQuad.newInstance(); - model.clearFSQ.setDevice(device); - model.clearFSQ.setPipelineHash('clearfsq'); - model.clearFSQ.setFragmentShaderTemplate(clearFragColorTemplate); - const ubo = vtkWebGPUUniformBuffer.newInstance({ - label: 'mapperUBO' - }); - ubo.addEntry('FSQMatrix', 'mat4x4'); - ubo.addEntry('BackgroundColor', 'vec4'); - model.clearFSQ.setUBO(ubo); - } - const keyMats = model.webgpuCamera.getKeyMatrices(publicAPI); - const background = model.renderable.getBackgroundByReference(); - model.clearFSQ.getUBO().setArray('BackgroundColor', background); - mat4.transpose(_tNormalMat4, keyMats.normalMatrix); - mat4.mul(_fsqClearMat4, keyMats.scvc, keyMats.pcsc); - mat4.mul(_fsqClearMat4, _tNormalMat4, _fsqClearMat4); - model.clearFSQ.getUBO().setArray('FSQMatrix', _fsqClearMat4); - model.clearFSQ.getUBO().sendIfNeeded(device); - model.clearFSQ.prepareAndDraw(model.renderEncoder); - }; - publicAPI.translucentPass = prepass => { - if (prepass) { - model.renderEncoder.begin(model._parent.getCommandEncoder()); - } else { - publicAPI.scissorAndViewport(model.renderEncoder); - model.renderEncoder.end(); - } - }; - publicAPI.volumeDepthRangePass = prepass => { - if (prepass) { - model.renderEncoder.begin(model._parent.getCommandEncoder()); - } else { - publicAPI.scissorAndViewport(model.renderEncoder); - model.renderEncoder.end(); - } - }; - publicAPI.getAspectRatio = () => { - const size = model._parent.getSizeByReference(); - const viewport = model.renderable.getViewportByReference(); - return size[0] * (viewport[2] - viewport[0]) / ((viewport[3] - viewport[1]) * size[1]); - }; - publicAPI.convertToOpenGLDepth = val => model.webgpuCamera.convertToOpenGLDepth(val); - publicAPI.getYInvertedTiledSizeAndOrigin = () => { - const res = publicAPI.getTiledSizeAndOrigin(); - const size = model._parent.getSizeByReference(); - res.lowerLeftV = size[1] - res.vsize - res.lowerLeftV; - return res; - }; - publicAPI.getTiledSizeAndOrigin = () => { - const vport = model.renderable.getViewportByReference(); - - // if there is no window assume 0 1 - const tileViewPort = [0.0, 0.0, 1.0, 1.0]; - - // find the lower left corner of the viewport, taking into account the - // lower left boundary of this tile - const vpu = vport[0] - tileViewPort[0]; - const vpv = vport[1] - tileViewPort[1]; - - // store the result as a pixel value - const ndvp = model._parent.normalizedDisplayToDisplay(vpu, vpv); - const lowerLeftU = Math.round(ndvp[0]); - const lowerLeftV = Math.round(ndvp[1]); - - // find the upper right corner of the viewport, taking into account the - // lower left boundary of this tile - const vpu2 = vport[2] - tileViewPort[0]; - const vpv2 = vport[3] - tileViewPort[1]; - const ndvp2 = model._parent.normalizedDisplayToDisplay(vpu2, vpv2); - - // now compute the size of the intersection of the viewport with the - // current tile - let usize = Math.round(ndvp2[0]) - lowerLeftU; - let vsize = Math.round(ndvp2[1]) - lowerLeftV; - if (usize < 0) { - usize = 0; - } - if (vsize < 0) { - vsize = 0; - } - return { - usize, - vsize, - lowerLeftU, - lowerLeftV - }; - }; - publicAPI.getPropFromID = id => { - for (let i = 0; i < model.children.length; i++) { - const res = model.children[i].getPropID ? model.children[i].getPropID() : -1; - if (res === id) { - return model.children[i]; - } - } - return null; - }; - publicAPI.getStabilizedTime = () => model.stabilizedTime.getMTime(); - publicAPI.releaseGraphicsResources = () => { - if (model.selector !== null) { - model.selector.releaseGraphicsResources(); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - bindGroup: null, - selector: null, - renderEncoder: null, - recenterThreshold: 20.0, - suppressClear: false, - stabilizedCenter: [0.0, 0.0, 0.0] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - - // UBO - model.UBO = vtkWebGPUUniformBuffer.newInstance({ - label: 'rendererUBO' - }); - model.UBO.addEntry('WCVCMatrix', 'mat4x4'); - model.UBO.addEntry('SCPCMatrix', 'mat4x4'); - model.UBO.addEntry('PCSCMatrix', 'mat4x4'); - model.UBO.addEntry('SCVCMatrix', 'mat4x4'); - model.UBO.addEntry('VCPCMatrix', 'mat4x4'); - model.UBO.addEntry('WCVCNormals', 'mat4x4'); - model.UBO.addEntry('viewportSize', 'vec2'); - model.UBO.addEntry('LightCount', 'i32'); - model.UBO.addEntry('MaxEnvironmentMipLevel', 'f32'); - model.UBO.addEntry('BackgroundDiffuseStrength', 'f32'); - model.UBO.addEntry('BackgroundSpecularStrength', 'f32'); - model.UBO.addEntry('cameraParallel', 'u32'); - - // SSBO (Light data) - model.SSBO = vtkWebGPUStorageBuffer.newInstance({ - label: 'rendererLightSSBO' - }); - model.lightTimeString = ''; - model.bindGroup = vtkWebGPUBindGroup.newInstance({ - label: 'rendererBG' - }); - model.bindGroup.setBindables([model.UBO, model.SSBO]); - model.tmpMat4 = mat4.identity(new Float64Array(16)); - model.stabilizedTime = {}; - obj(model.stabilizedTime, { - mtime: 0 - }); - - // Build VTK API - get(publicAPI, model, ['bindGroup', 'stabilizedTime']); - getArray(publicAPI, model, ['stabilizedCenter']); - setGet(publicAPI, model, ['renderEncoder', 'selector', 'suppressClear', 'UBO']); - - // Object methods - vtkWebGPURenderer(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkWebGPURenderer'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -// Register ourself to WebGPU backend if imported -registerOverride('vtkRenderer', newInstance); - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Sampler.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Sampler.js deleted file mode 100644 index 86c062b1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Sampler.js +++ /dev/null @@ -1,85 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -/* eslint-disable no-bitwise */ - -// ---------------------------------------------------------------------------- -// vtkWebGPUSampler methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUSampler(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUSampler'); - publicAPI.create = function (device) { - let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - model.device = device; - model.options.addressModeU = options.addressModeU ? options.addressModeU : 'clamp-to-edge'; - model.options.addressModeV = options.addressModeV ? options.addressModeV : 'clamp-to-edge'; - model.options.addressModeW = options.addressModeW ? options.addressModeW : 'clamp-to-edge'; - model.options.magFilter = options.magFilter ? options.magFilter : 'nearest'; - model.options.minFilter = options.minFilter ? options.minFilter : 'nearest'; - model.options.mipmapFilter = options.mipmapFilter ? options.mipmapFilter : 'nearest'; - model.options.label = model.label; - model.handle = model.device.getHandle().createSampler(model.options); - model.bindGroupTime.modified(); - }; - publicAPI.getShaderCode = (binding, group) => { - const result = `@binding(${binding}) @group(${group}) var ${model.label}: sampler;`; - return result; - }; - publicAPI.getBindGroupEntry = () => { - const foo = { - resource: model.handle - }; - return foo; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - device: null, - handle: null, - label: null, - options: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - model.options = {}; - model.bindGroupLayoutEntry = { - /* eslint-disable no-undef */ - visibility: GPUShaderStage.VERTEX | GPUShaderStage.FRAGMENT, - /* eslint-enable no-undef */ - sampler: { - // type: 'filtering', - } - }; - model.bindGroupTime = {}; - macro.obj(model.bindGroupTime, { - mtime: 0 - }); - macro.get(publicAPI, model, ['bindGroupTime', 'handle', 'options']); - macro.setGet(publicAPI, model, ['bindGroupLayoutEntry', 'device', 'label']); - vtkWebGPUSampler(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUSampler$1 = { - newInstance, - extend -}; - -export { vtkWebGPUSampler$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ScalarBarActor.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ScalarBarActor.js deleted file mode 100644 index 148b0f68..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ScalarBarActor.js +++ /dev/null @@ -1,70 +0,0 @@ -import { n as newInstance$1 } from '../../macros2.js'; -import vtkScalarBarActor from '../Core/ScalarBarActor.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -// ---------------------------------------------------------------------------- -// vtkWebGPUScalarBarActor methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUScalarBarActor(publicAPI, model) { - model.classHierarchy.push('vtkWebGPUScalarBarActor'); - - // Builds myself. - publicAPI.buildPass = prepass => { - if (prepass) { - model.WebGPURenderer = publicAPI.getFirstAncestorOfType('vtkWebGPURenderer'); - model.WebGPURenderWindow = model.WebGPURenderer.getParent(); - if (!model.scalarBarActorHelper.getRenderable()) { - model.scalarBarActorHelper.setRenderable(model.renderable); - } - publicAPI.prepareNodes(); - publicAPI.addMissingNode(model.scalarBarActorHelper.getBarActor()); - publicAPI.addMissingNode(model.scalarBarActorHelper.getTmActor()); - publicAPI.removeUnusedNodes(); - } - }; - publicAPI.opaquePass = (prepass, renderPass) => { - if (prepass) { - const camera = model.WebGPURenderer ? model.WebGPURenderer.getRenderable().getActiveCamera() : null; - const tsize = model.WebGPURenderer.getTiledSizeAndOrigin(); - model.scalarBarActorHelper.updateAPISpecificData([tsize.usize, tsize.vsize], camera, model.WebGPURenderWindow.getRenderable()); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - model.scalarBarActorHelper = vtkScalarBarActor.newScalarBarActorHelper(); - - // Object methods - vtkWebGPUScalarBarActor(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkWebGPUScalarBarActor'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -// Register ourself to WebGPU backend if imported -registerOverride('vtkScalarBarActor', newInstance); - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ShaderCache.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ShaderCache.js deleted file mode 100644 index 0d5eb6e1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ShaderCache.js +++ /dev/null @@ -1,93 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkWebGPUShaderModule from './ShaderModule.js'; - -// perform in place string substitutions, indicate if a substitution was done -// this is useful for building up shader strings which typically involve -// lots of string substitutions. Return true if a substitution was done. -function substitute(source, search, replace) { - let all = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; - const replaceStr = Array.isArray(replace) ? replace.join('\n') : replace; - let replaced = false; - if (source.search(search) !== -1) { - replaced = true; - } - let gflag = ''; - if (all) { - gflag = 'g'; - } - const regex = new RegExp(search, gflag); - const resultstr = source.replace(regex, replaceStr); - return { - replace: replaced, - result: resultstr - }; -} - -// ---------------------------------------------------------------------------- -// vtkWebGPUShaderCache methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUShaderCache(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUShaderCache'); - publicAPI.getShaderModule = shaderDesc => { - // has it already been created? - const sType = shaderDesc.getType(); - const sHash = shaderDesc.getHash(); - const keys = model._shaderModules.keys(); - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - if (key.getHash() === sHash && key.getType() === sType) { - return model._shaderModules.get(key); - } - } - - // console.log(JSON.stringify(shaderDesc)); - - const sm = vtkWebGPUShaderModule.newInstance(); - sm.initialize(model.device, shaderDesc); - model._shaderModules.set(shaderDesc, sm); - return sm; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - shaderModules: null, - device: null, - window: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Internal objects - model._shaderModules = new Map(); - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['device', 'window']); - - // Object methods - vtkWebGPUShaderCache(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWebGPUShaderCache'); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUShaderCache$1 = { - newInstance, - extend, - substitute -}; - -export { vtkWebGPUShaderCache$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ShaderDescription.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ShaderDescription.js deleted file mode 100644 index 0497433c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ShaderDescription.js +++ /dev/null @@ -1,131 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkWebGPUShaderCache from './ShaderCache.js'; - -// ---------------------------------------------------------------------------- -// vtkWebGPUShaderDescription methods -// ---------------------------------------------------------------------------- - -// shader description - -function vtkWebGPUShaderDescription(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUShaderDescription'); - publicAPI.hasOutput = name => model.outputNames.includes(name); - publicAPI.addOutput = function (type, name) { - let interpolation = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; - model.outputTypes.push(type); - model.outputNames.push(name); - model.outputInterpolations.push(interpolation); - }; - publicAPI.addBuiltinOutput = (type, name) => { - model.builtinOutputTypes.push(type); - model.builtinOutputNames.push(name); - }; - publicAPI.addBuiltinInput = (type, name) => { - model.builtinInputTypes.push(type); - model.builtinInputNames.push(name); - }; - - // perform shader replacements for the input and outputs - // of this shader. That includes vertex inputs if specified - publicAPI.replaceShaderCode = (priorStage, vertexInput) => { - const inputImpl = []; - let iodec = []; - if (vertexInput) { - inputImpl.push(vertexInput.getShaderCode()); - } - if (priorStage || model.builtinInputNames.length) { - const inputStruct = []; - inputStruct.push(`struct ${model.type}Input\n{`); - if (priorStage) { - const inputNames = priorStage.getOutputNamesByReference(); - const inputTypes = priorStage.getOutputTypesByReference(); - const inputInterpolations = priorStage.getOutputInterpolationsByReference(); - for (let i = 0; i < inputNames.length; i++) { - if (inputInterpolations[i] !== undefined) { - inputStruct.push(` @location(${i}) @interpolate(${inputInterpolations[i]}) ${inputNames[i]} : ${inputTypes[i]},`); - } else { - inputStruct.push(` @location(${i}) ${inputNames[i]} : ${inputTypes[i]},`); - } - } - } - for (let i = 0; i < model.builtinInputNames.length; i++) { - inputStruct.push(` ${model.builtinInputNames[i]} : ${model.builtinInputTypes[i]},`); - } - if (inputStruct.length > 1) { - inputStruct.push('};'); - iodec = inputStruct; - inputImpl[inputImpl.length - 1] += ','; - inputImpl.push(`input: ${model.type}Input`); - } - } - if (inputImpl.length) { - model.code = vtkWebGPUShaderCache.substitute(model.code, '//VTK::IOStructs::Input', inputImpl).result; - } - if (model.outputNames.length + model.builtinOutputNames.length) { - const outputStruct = [`struct ${model.type}Output\n{`]; - for (let i = 0; i < model.outputNames.length; i++) { - if (model.outputInterpolations[i] !== undefined) { - outputStruct.push(` @location(${i}) @interpolate(${model.outputInterpolations[i]}) ${model.outputNames[i]} : ${model.outputTypes[i]},`); - } else { - outputStruct.push(` @location(${i}) ${model.outputNames[i]} : ${model.outputTypes[i]},`); - } - } - for (let i = 0; i < model.builtinOutputNames.length; i++) { - outputStruct.push(` ${model.builtinOutputNames[i]} : ${model.builtinOutputTypes[i]},`); - } - outputStruct.push('};'); - iodec = iodec.concat(outputStruct); - model.code = vtkWebGPUShaderCache.substitute(model.code, '//VTK::IOStructs::Output', [`-> ${model.type}Output`]).result; - } - model.code = vtkWebGPUShaderCache.substitute(model.code, '//VTK::IOStructs::Dec', iodec).result; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - type: null, - // 'vertex' or 'fragment' - hash: null, - code: null, - outputNames: null, - outputTypes: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - model.outputNames = []; - model.outputTypes = []; - model.outputInterpolations = []; - model.builtinOutputNames = []; - model.builtinOutputTypes = []; - model.builtinInputNames = []; - model.builtinInputTypes = []; - - // Build VTK API - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['type', 'hash', 'code']); - macro.getArray(publicAPI, model, ['outputTypes', 'outputNames', 'outputInterpolations']); - - // Object methods - vtkWebGPUShaderDescription(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWebGPUShaderDescription'); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUShaderDescription$1 = { - newInstance, - extend -}; - -export { vtkWebGPUShaderDescription$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ShaderModule.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ShaderModule.js deleted file mode 100644 index 9019b93b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ShaderModule.js +++ /dev/null @@ -1,58 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkWebGPUShaderModule methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUShaderModule(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUShaderModule'); - publicAPI.initialize = (device, shaderDesc) => { - model.device = device; - // console.log(shaderDesc.getCode()); - model.handle = model.device.getHandle().createShaderModule({ - code: shaderDesc.getCode() - }); - }; - - // publicAPI.setLastCameraMTime = (mtime) => { - // model.lastCameraMTime = mtime; - // }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - device: null, - handle: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['lastCameraMTime']); - macro.setGet(publicAPI, model, ['device', 'handle']); - - // Object methods - vtkWebGPUShaderModule(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWebGPUShaderModule'); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUShaderModule$1 = { - newInstance, - extend -}; - -export { vtkWebGPUShaderModule$1 as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/SimpleMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/SimpleMapper.js deleted file mode 100644 index a7768f2a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/SimpleMapper.js +++ /dev/null @@ -1,354 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import vtkWebGPUBindGroup from './BindGroup.js'; -import vtkWebGPUPipeline from './Pipeline.js'; -import vtkWebGPUShaderCache from './ShaderCache.js'; -import vtkWebGPUShaderDescription from './ShaderDescription.js'; -import vtkWebGPUVertexInput from './VertexInput.js'; - -const vtkWebGPUSimpleMapperVS = ` -//VTK::Renderer::Dec - -//VTK::Color::Dec - -//VTK::Normal::Dec - -//VTK::TCoord::Dec - -//VTK::Select::Dec - -//VTK::Mapper::Dec - -//VTK::IOStructs::Dec - -@vertex -fn main( -//VTK::IOStructs::Input -) -//VTK::IOStructs::Output -{ - var output : vertexOutput; - - // var vertex: vec4 = vertexBC; - - //VTK::Color::Impl - - //VTK::Normal::Impl - - //VTK::TCoord::Impl - - //VTK::Select::Impl - - //VTK::Position::Impl - - return output; -} -`; -const vtkWebGPUSimpleMapperFS = ` -//VTK::Renderer::Dec - -//VTK::Color::Dec - -//VTK::Normal::Dec - -//VTK::TCoord::Dec - -//VTK::Select::Dec - -//VTK::RenderEncoder::Dec - -//VTK::Mapper::Dec - -//VTK::IOStructs::Dec - -@fragment -fn main( -//VTK::IOStructs::Input -) -//VTK::IOStructs::Output -{ - var output : fragmentOutput; - - //VTK::Color::Impl - - //VTK::Normal::Impl - - //VTK::Light::Impl - - //VTK::TCoord::Impl - - //VTK::Select::Impl - - // var computedColor:vec4 = vec4(1.0,0.5,0.5,1.0); - - //VTK::RenderEncoder::Impl - return output; -} -`; - -// ---------------------------------------------------------------------------- -// vtkWebGPUSimpleMapper methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUSimpleMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUSimpleMapper'); - publicAPI.generateShaderDescriptions = (hash, pipeline, vertexInput) => { - // create the shader descriptions - const vDesc = vtkWebGPUShaderDescription.newInstance({ - type: 'vertex', - hash, - code: model.vertexShaderTemplate - }); - const fDesc = vtkWebGPUShaderDescription.newInstance({ - type: 'fragment', - hash, - code: model.fragmentShaderTemplate - }); - - // add them to the pipeline - const sdrs = pipeline.getShaderDescriptions(); - sdrs.push(vDesc); - sdrs.push(fDesc); - - // look for replacements to invoke - const scode = model.vertexShaderTemplate + model.fragmentShaderTemplate; - // eslint-disable-next-line prefer-regex-literals - const re = new RegExp('//VTK::[^:]*::', 'g'); - const unique = scode.match(re).filter((v, i, a) => a.indexOf(v) === i); - const fnames = unique.map(v => `replaceShader${v.substring(7, v.length - 2)}`); - - // now invoke shader replacement functions - for (let i = 0; i < fnames.length; i++) { - const fname = fnames[i]; - if (fname !== 'replaceShaderIOStructs' && model.shaderReplacements.has(fname)) { - model.shaderReplacements.get(fname)(hash, pipeline, vertexInput); - } - } - - // always replace the IOStructs last as other replacement funcs may - // add inputs or outputs - publicAPI.replaceShaderIOStructs(hash, pipeline, vertexInput); - - // console.log(vDesc.getCode()); - // console.log(fDesc.getCode()); - }; - - publicAPI.replaceShaderIOStructs = (hash, pipeline, vertexInput) => { - const vDesc = pipeline.getShaderDescription('vertex'); - vDesc.replaceShaderCode(null, vertexInput); - const fDesc = pipeline.getShaderDescription('fragment'); - fDesc.replaceShaderCode(vDesc); - }; - publicAPI.replaceShaderRenderEncoder = (hash, pipeline, vertexInput) => { - model.renderEncoder.replaceShaderCode(pipeline); - }; - model.shaderReplacements.set('replaceShaderRenderEncoder', publicAPI.replaceShaderRenderEncoder); - publicAPI.replaceShaderRenderer = (hash, pipeline, vertexInput) => { - if (!model.WebGPURenderer) { - return; - } - const ubocode = model.WebGPURenderer.getBindGroup().getShaderCode(pipeline); - const vDesc = pipeline.getShaderDescription('vertex'); - let code = vDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Renderer::Dec', [ubocode]).result; - vDesc.setCode(code); - const fDesc = pipeline.getShaderDescription('fragment'); - code = fDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Renderer::Dec', [ubocode]).result; - fDesc.setCode(code); - }; - model.shaderReplacements.set('replaceShaderRenderer', publicAPI.replaceShaderRenderer); - publicAPI.replaceShaderMapper = (hash, pipeline, vertexInput) => { - const ubocode = model.bindGroup.getShaderCode(pipeline); - const vDesc = pipeline.getShaderDescription('vertex'); - let code = vDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Mapper::Dec', [ubocode]).result; - vDesc.setCode(code); - const fDesc = pipeline.getShaderDescription('fragment'); - fDesc.addBuiltinInput('bool', '@builtin(front_facing) frontFacing'); - code = fDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Mapper::Dec', [ubocode]).result; - fDesc.setCode(code); - }; - model.shaderReplacements.set('replaceShaderMapper', publicAPI.replaceShaderMapper); - publicAPI.replaceShaderPosition = (hash, pipeline, vertexInput) => { - const vDesc = pipeline.getShaderDescription('vertex'); - vDesc.addBuiltinOutput('vec4', '@builtin(position) Position'); - let code = vDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Position::Impl', [' output.Position = rendererUBO.SCPCMatrix*vertexBC;']).result; - vDesc.setCode(code); - }; - model.shaderReplacements.set('replaceShaderPosition', publicAPI.replaceShaderPosition); - publicAPI.replaceShaderTCoord = (hash, pipeline, vertexInput) => { - const vDesc = pipeline.getShaderDescription('vertex'); - vDesc.addOutput('vec2', 'tcoordVS'); - }; - model.shaderReplacements.set('replaceShaderTCoord', publicAPI.replaceShaderTCoord); - publicAPI.addTextureView = view => { - // is it already there? - if (model.textureViews.includes(view)) { - return; - } - model.textureViews.push(view); - }; - - // do everything required for this mapper to be rerady to draw - // but do not bind or do the actual draw commands as the pipeline - // is not neccessarily bound yet - publicAPI.prepareToDraw = renderEncoder => { - model.renderEncoder = renderEncoder; - - // do anything needed to get our input data up to date - publicAPI.updateInput(); - - // make sure buffers are created and up to date - publicAPI.updateBuffers(); - - // update bindings and bind groups/layouts - // does not acutally bind them, that is done in draw(...) - publicAPI.updateBindings(); - - // update the pipeline, includes computing the hash, and if needed - // creating the pipeline, shader code etc - publicAPI.updatePipeline(); - }; - publicAPI.updateInput = () => {}; - publicAPI.updateBuffers = () => {}; - publicAPI.updateBindings = () => { - // bindings can change without a pipeline change - // as long as their layout remains the same. - // That is why this is done even when the pipeline - // hash doesn't change. - model.bindGroup.setBindables(publicAPI.getBindables()); - }; - publicAPI.computePipelineHash = () => {}; - publicAPI.registerDrawCallback = encoder => { - encoder.registerDrawCallback(model.pipeline, publicAPI.draw); - }; - publicAPI.prepareAndDraw = encoder => { - publicAPI.prepareToDraw(encoder); - encoder.setPipeline(model.pipeline); - publicAPI.draw(encoder); - }; - - // do the rest of the calls required to draw this mapper - // at this point the command encouder and pipeline are - // created and bound - publicAPI.draw = renderEncoder => { - const pipeline = renderEncoder.getBoundPipeline(); - - // bind the mapper bind group - renderEncoder.activateBindGroup(model.bindGroup); - if (model.WebGPURenderer) { - model.WebGPURenderer.bindUBO(renderEncoder); - } - - // bind the vertex input - pipeline.bindVertexInput(renderEncoder, model.vertexInput); - const indexBuffer = model.vertexInput.getIndexBuffer(); - if (indexBuffer) { - renderEncoder.drawIndexed(indexBuffer.getIndexCount(), model.numberOfInstances, 0, 0, 0); - } else { - renderEncoder.draw(model.numberOfVertices, model.numberOfInstances, 0, 0); - } - }; - publicAPI.getBindables = () => { - const bindables = [...model.additionalBindables]; - if (model.UBO) { - bindables.push(model.UBO); - } - if (model.SSBO) { - bindables.push(model.SSBO); - } - - // add texture BindGroupLayouts - for (let t = 0; t < model.textureViews.length; t++) { - bindables.push(model.textureViews[t]); - const samp = model.textureViews[t].getSampler(); - if (samp) { - bindables.push(samp); - } - } - return bindables; - }; - publicAPI.updatePipeline = () => { - publicAPI.computePipelineHash(); - model.pipeline = model.device.getPipeline(model.pipelineHash); - - // build the pipeline if needed - if (!model.pipeline) { - model.pipeline = vtkWebGPUPipeline.newInstance(); - model.pipeline.setDevice(model.device); - if (model.WebGPURenderer) { - model.pipeline.addBindGroupLayout(model.WebGPURenderer.getBindGroup()); - } - model.pipeline.addBindGroupLayout(model.bindGroup); - publicAPI.generateShaderDescriptions(model.pipelineHash, model.pipeline, model.vertexInput); - model.pipeline.setTopology(model.topology); - model.pipeline.setRenderEncoder(model.renderEncoder); - model.pipeline.setVertexState(model.vertexInput.getVertexInputInformation()); - model.device.createPipeline(model.pipelineHash, model.pipeline); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - additionalBindables: undefined, - bindGroup: null, - device: null, - fragmentShaderTemplate: null, - numberOfInstances: 1, - numberOfVertices: 0, - pipelineHash: null, - shaderReplacements: null, - SSBO: null, - textureViews: null, - topology: 'triangle-list', - UBO: null, - vertexShaderTemplate: null, - WebGPURenderer: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - model.textureViews = []; - model.vertexInput = vtkWebGPUVertexInput.newInstance(); - model.bindGroup = vtkWebGPUBindGroup.newInstance({ - label: 'mapperBG' - }); - model.additionalBindables = []; - model.fragmentShaderTemplate = model.fragmentShaderTemplate || vtkWebGPUSimpleMapperFS; - model.vertexShaderTemplate = model.vertexShaderTemplate || vtkWebGPUSimpleMapperVS; - model.shaderReplacements = new Map(); - - // Build VTK API - macro.get(publicAPI, model, ['pipeline', 'vertexInput']); - macro.setGet(publicAPI, model, ['additionalBindables', 'device', 'fragmentShaderTemplate', 'interpolate', 'numberOfInstances', 'numberOfVertices', 'pipelineHash', 'shaderReplacements', 'SSBO', 'textureViews', 'topology', 'UBO', 'vertexShaderTemplate', 'WebGPURenderer']); - - // Object methods - vtkWebGPUSimpleMapper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWebGPUSimpleMapper'); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUSimpleMapper$1 = { - newInstance, - extend -}; - -export { vtkWebGPUSimpleMapper$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/SphereMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/SphereMapper.js deleted file mode 100644 index 7f4ce6c2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/SphereMapper.js +++ /dev/null @@ -1,312 +0,0 @@ -import { n as newInstance$1, c as macro } from '../../macros2.js'; -import { r as radiansFromDegrees } from '../../Common/Core/Math/index.js'; -import vtkWebGPUCellArrayMapper from './CellArrayMapper.js'; -import vtkWebGPUBufferManager from './BufferManager.js'; -import vtkWebGPUShaderCache from './ShaderCache.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -const { - BufferUsage -} = vtkWebGPUBufferManager; -const { - vtkErrorMacro -} = macro; -const vtkWebGPUSphereMapperVS = ` -//VTK::Renderer::Dec - -//VTK::Mapper::Dec - -//VTK::Color::Dec - -//VTK::IOStructs::Dec - -@vertex -fn main( -//VTK::IOStructs::Input -) -//VTK::IOStructs::Output -{ - var output : vertexOutput; - - var vertexVC: vec4 = rendererUBO.SCVCMatrix * mapperUBO.BCSCMatrix * vec4(vertexBC.xyz, 1.0); - - //VTK::Color::Impl - - // compute the projected vertex position - output.centerVC = vertexVC.xyz; - output.radiusVC = length(offsetMC)*0.5; - - // make the triangle face the camera - if (rendererUBO.cameraParallel == 0u) - { - var dir: vec3 = normalize(-vertexVC.xyz); - var base2: vec3 = normalize(cross(dir,vec3(1.0,0.0,0.0))); - var base1: vec3 = cross(base2,dir); - dir = vertexVC.xyz + offsetMC.x*base1 + offsetMC.y*base2; - vertexVC = vec4(dir, 1.0); - } - else - { - // add in the offset - var tmp2: vec2 = vertexVC.xy + offsetMC; - vertexVC = vec4(tmp2, vertexVC.zw); - } - - output.vertexVC = vec4(vertexVC.xyz, 0.0); - - //VTK::Position::Impl - - return output; -} -`; - -// ---------------------------------------------------------------------------- -// vtkWebGPUSphereMapper methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUSphereMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUSphereMapper'); - const cellMapperBuildPass = publicAPI.buildPass; - publicAPI.buildPass = prepass => { - if (prepass) { - if (!model.renderable.getStatic()) { - model.renderable.update(); - } - const poly = model.renderable.getInputData(); - publicAPI.setCellArray(poly.getVerts()); - publicAPI.setCurrentInput(poly); - } - cellMapperBuildPass(prepass); - }; - publicAPI.replaceShaderNormal = (hash, pipeline, vertexInput) => { - const vDesc = pipeline.getShaderDescription('vertex'); - if (!vDesc.hasOutput('vertexVC')) vDesc.addOutput('vec4', 'vertexVC'); - vDesc.addOutput('vec3', 'centerVC'); - vDesc.addOutput('f32', 'radiusVC'); - const fDesc = pipeline.getShaderDescription('fragment'); - fDesc.addBuiltinOutput('f32', '@builtin(frag_depth) fragDepth'); - const sphereFrag = ` - // compute the eye position and unit direction - var vertexVC: vec4; - var EyePos: vec3; - var EyeDir: vec3; - var invertedDepth: f32 = 1.0; - if (rendererUBO.cameraParallel != 0u) { - EyePos = vec3(input.vertexVC.x, input.vertexVC.y, input.vertexVC.z + 3.0*input.radiusVC); - EyeDir = vec3(0.0, 0.0, -1.0); - } - else { - EyeDir = input.vertexVC.xyz; - EyePos = vec3(0.0,0.0,0.0); - var lengthED: f32 = length(EyeDir); - EyeDir = normalize(EyeDir); - // we adjust the EyePos to be closer if it is too far away - // to prevent floating point precision noise - if (lengthED > input.radiusVC*3.0) { - EyePos = input.vertexVC.xyz - EyeDir*3.0*input.radiusVC; - } - } - - // translate to Sphere center - EyePos = EyePos - input.centerVC; - // scale to radius 1.0 - EyePos = EyePos * (1.0 / input.radiusVC); - // find the intersection - var b: f32 = 2.0*dot(EyePos,EyeDir); - var c: f32 = dot(EyePos,EyePos) - 1.0; - var d: f32 = b*b - 4.0*c; - var normal: vec3 = vec3(0.0,0.0,1.0); - if (d < 0.0) { discard; } - else { - var t: f32 = (-b - invertedDepth*sqrt(d))*0.5; - - // compute the normal, for unit sphere this is just - // the intersection point - normal = invertedDepth*normalize(EyePos + t*EyeDir); - // compute the intersection point in VC - vertexVC = vec4(normal * input.radiusVC + input.centerVC, 1.0); - } - // compute the pixel's depth - var pos: vec4 = rendererUBO.VCPCMatrix * vertexVC; - output.fragDepth = pos.z / pos.w; - `; - let code = fDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Normal::Impl', [sphereFrag]).result; - fDesc.setCode(code); - }; - publicAPI.replaceShaderPosition = (hash, pipeline, vertexInput) => { - const vDesc = pipeline.getShaderDescription('vertex'); - vDesc.addBuiltinOutput('vec4', '@builtin(position) Position'); - let code = vDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Position::Impl', [' output.Position = rendererUBO.VCPCMatrix*vertexVC;']).result; - vDesc.setCode(code); - }; - - // compute a unique hash for a pipeline, this needs to be unique enough to - // capture any pipeline code changes (which includes shader changes) - // or vertex input changes/ bind groups/ etc - publicAPI.computePipelineHash = () => { - model.pipelineHash = 'spm'; - if (model.vertexInput.hasAttribute(`colorVI`)) { - model.pipelineHash += `c`; - } - model.pipelineHash += model.renderEncoder.getPipelineHash(); - }; - publicAPI.updateBuffers = () => { - const poly = model.currentInput; - model.renderable.mapScalars(poly, 1.0); - const points = poly.getPoints(); - const numPoints = points.getNumberOfPoints(); - const pointArray = points.getData(); - - // default to one instance and computed number of verts - publicAPI.setNumberOfInstances(1); - publicAPI.setNumberOfVertices(3 * numPoints); - const vertexInput = model.vertexInput; - let hash = `spm${points.getMTime()}float32x3`; - if (!model.device.getBufferManager().hasBuffer(hash)) { - const buffRequest = { - hash, - usage: BufferUsage.RawVertex, - format: 'float32x3' - }; - // xyz v1 v2 v3 - const tmpVBO = new Float32Array(3 * numPoints * 3); - let pointIdx = 0; - let vboIdx = 0; - for (let id = 0; id < numPoints; ++id) { - pointIdx = id * 3; - tmpVBO[vboIdx++] = pointArray[pointIdx]; - tmpVBO[vboIdx++] = pointArray[pointIdx + 1]; - tmpVBO[vboIdx++] = pointArray[pointIdx + 2]; - tmpVBO[vboIdx++] = pointArray[pointIdx]; - tmpVBO[vboIdx++] = pointArray[pointIdx + 1]; - tmpVBO[vboIdx++] = pointArray[pointIdx + 2]; - tmpVBO[vboIdx++] = pointArray[pointIdx]; - tmpVBO[vboIdx++] = pointArray[pointIdx + 1]; - tmpVBO[vboIdx++] = pointArray[pointIdx + 2]; - } - buffRequest.nativeArray = tmpVBO; - const buff = model.device.getBufferManager().getBuffer(buffRequest); - vertexInput.addBuffer(buff, ['vertexBC']); - } - - // compute offset VBO - const pointData = poly.getPointData(); - let scales = null; - if (model.renderable.getScaleArray() != null && pointData.hasArray(model.renderable.getScaleArray())) { - scales = pointData.getArray(model.renderable.getScaleArray()).getData(); - } - const defaultRadius = model.renderable.getRadius(); - if (scales || defaultRadius !== model._lastRadius) { - hash = `spm${scales ? pointData.getArray(model.renderable.getScaleArray()).getMTime() : defaultRadius}float32x2`; - if (!model.device.getBufferManager().hasBuffer(hash)) { - const buffRequest = { - hash, - usage: BufferUsage.RawVertex, - format: 'float32x2' - }; - const tmpVBO = new Float32Array(3 * numPoints * 2); - const cos30 = Math.cos(radiansFromDegrees(30.0)); - let vboIdx = 0; - for (let id = 0; id < numPoints; ++id) { - let radius = model.renderable.getRadius(); - if (scales) { - radius = scales[id] * model.renderable.getScaleFactor(); - } - tmpVBO[vboIdx++] = -2.0 * radius * cos30; - tmpVBO[vboIdx++] = -radius; - tmpVBO[vboIdx++] = 2.0 * radius * cos30; - tmpVBO[vboIdx++] = -radius; - tmpVBO[vboIdx++] = 0.0; - tmpVBO[vboIdx++] = 2.0 * radius; - } - buffRequest.nativeArray = tmpVBO; - const buff = model.device.getBufferManager().getBuffer(buffRequest); - vertexInput.addBuffer(buff, ['offsetMC']); - } - model._lastRadius = defaultRadius; - } - - // deal with colors but only if modified - let haveColors = false; - if (model.renderable.getScalarVisibility()) { - const c = model.renderable.getColorMapColors(); - if (c) { - hash = `spm${c.getMTime()}unorm8x4`; - if (!model.device.getBufferManager().hasBuffer(hash)) { - const buffRequest = { - hash, - usage: BufferUsage.RawVertex, - format: 'unorm8x4' - }; - const colorComponents = c.getNumberOfComponents(); - if (colorComponents !== 4) { - vtkErrorMacro('this should be 4'); - } - const tmpVBO = new Uint8ClampedArray(3 * numPoints * 4); - let vboIdx = 0; - const colorData = c.getData(); - for (let id = 0; id < numPoints; ++id) { - const colorIdx = id * colorComponents; - for (let v = 0; v < 3; v++) { - tmpVBO[vboIdx++] = colorData[colorIdx]; - tmpVBO[vboIdx++] = colorData[colorIdx + 1]; - tmpVBO[vboIdx++] = colorData[colorIdx + 2]; - tmpVBO[vboIdx++] = colorData[colorIdx + 3]; - } - } - buffRequest.nativeArray = tmpVBO; - const buff = model.device.getBufferManager().getBuffer(buffRequest); - vertexInput.addBuffer(buff, ['colorVI']); - } - haveColors = true; - } - } - if (!haveColors) { - vertexInput.removeBufferIfPresent('colorVI'); - } - publicAPI.setTopology('triangle-list'); - publicAPI.updateUBO(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkWebGPUCellArrayMapper.extend(publicAPI, model, initialValues); - publicAPI.setVertexShaderTemplate(vtkWebGPUSphereMapperVS); - - // Object methods - vtkWebGPUSphereMapper(publicAPI, model); - const sr = model.shaderReplacements; - sr.set('replaceShaderPosition', publicAPI.replaceShaderPosition); - sr.set('replaceShaderNormal', publicAPI.replaceShaderNormal); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkWebGPUSphereMapper'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -// Register ourself to WebGPU backend if imported -registerOverride('vtkSphereMapper', newInstance); - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/StickMapper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/StickMapper.js deleted file mode 100644 index 0d0689c1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/StickMapper.js +++ /dev/null @@ -1,427 +0,0 @@ -import { n as newInstance$1, c as macro } from '../../macros2.js'; -import vtkWebGPUCellArrayMapper from './CellArrayMapper.js'; -import vtkWebGPUBufferManager from './BufferManager.js'; -import vtkWebGPUShaderCache from './ShaderCache.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -const { - BufferUsage -} = vtkWebGPUBufferManager; -const { - vtkErrorMacro -} = macro; - -// Vertices -// 013 - 032 - 324 - 453 -// -// _.4---_.5 -// .-* .-* -// 2-----3 -// | /| -// | / | -// | / | -// | / | -// |/ | -// 0-----1 -// -// coord for each points -// 0: 000 -// 1: 100 -// 2: 001 -// 3: 101 -// 4: 011 -// 5: 111 - -const vtkWebGPUStickMapperVS = ` -//VTK::Renderer::Dec - -//VTK::Mapper::Dec - -//VTK::Color::Dec - -//VTK::IOStructs::Dec - -@vertex -fn main( -//VTK::IOStructs::Input -) -//VTK::IOStructs::Output -{ - var offsetsArray: array, 12> = array, 12>( - vec3(-1.0, -1.0, -1.0), - vec3(1.0, -1.0, -1.0), - vec3(1.0, -1.0, 1.0), - - vec3(-1.0, -1.0, -1.0), - vec3(1.0, -1.0, 1.0), - vec3(-1.0, -1.0, 1.0), - - vec3(-1.0, -1.0, 1.0), - vec3(1.0, -1.0, 1.0), - vec3(1.0, 1.0, 1.0), - - vec3(-1.0, -1.0, 1.0), - vec3(1.0, 1.0, 1.0), - vec3(-1.0, 1.0, 1.0) - ); - - var output : vertexOutput; - - var vertexVC: vec4 = rendererUBO.SCVCMatrix * mapperUBO.BCSCMatrix * vec4(vertexBC.xyz, 1.0); - - //VTK::Color::Impl - - // compute the projected vertex position - output.centerVC = vertexVC.xyz; - output.radiusVC = radiusMC; - output.lengthVC = length(orientMC); - output.orientVC = (rendererUBO.WCVCNormals * vec4(normalize(orientMC), 0.0)).xyz; - - // make sure it is pointing out of the screen - if (output.orientVC.z < 0.0) - { - output.orientVC = -output.orientVC; - } - - // make the basis - var xbase: vec3; - var ybase: vec3; - var dir: vec3 = vec3(0.0,0.0,1.0); - if (rendererUBO.cameraParallel == 0u) - { - dir = normalize(-vertexVC.xyz); - } - if (abs(dot(dir,output.orientVC)) == 1.0) - { - xbase = normalize(cross(vec3(0.0,1.0,0.0),output.orientVC)); - ybase = cross(xbase,output.orientVC); - } - else - { - xbase = normalize(cross(output.orientVC,dir)); - ybase = cross(output.orientVC,xbase); - } - - - var vertIdx: u32 = input.vertexIndex % 12u; - var offsets: vec3 = offsetsArray[vertIdx]; - - vertexVC = vec4(vertexVC.xyz + - output.radiusVC * offsets.x * xbase + - output.radiusVC * offsets.y * ybase + - 0.5 * output.lengthVC * offsets.z * output.orientVC, 1.0); - - output.vertexVC = vertexVC; - - //VTK::Position::Impl - - return output; -} -`; - -// ---------------------------------------------------------------------------- -// vtkWebGPUStickMapper methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUStickMapper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUStickMapper'); - const cellMapperBuildPass = publicAPI.buildPass; - publicAPI.buildPass = prepass => { - if (prepass) { - if (!model.renderable.getStatic()) { - model.renderable.update(); - } - const poly = model.renderable.getInputData(); - publicAPI.setCellArray(poly.getVerts()); - publicAPI.setCurrentInput(poly); - } - cellMapperBuildPass(prepass); - }; - publicAPI.replaceShaderNormal = (hash, pipeline, vertexInput) => { - const vDesc = pipeline.getShaderDescription('vertex'); - if (!vDesc.hasOutput('vertexVC')) vDesc.addOutput('vec4', 'vertexVC'); - vDesc.addOutput('vec3', 'centerVC'); - vDesc.addOutput('vec3', 'orientVC'); - vDesc.addOutput('f32', 'radiusVC'); - vDesc.addOutput('f32', 'lengthVC'); - vDesc.addBuiltinInput('u32', '@builtin(vertex_index) vertexIndex'); - const fDesc = pipeline.getShaderDescription('fragment'); - fDesc.addBuiltinOutput('f32', '@builtin(frag_depth) fragDepth'); - const stickFrag = ` - // compute the eye position and unit direction - var vertexVC: vec4; - var EyePos: vec3; - var EyeDir: vec3; - - if (rendererUBO.cameraParallel != 0u) - { - EyePos = vec3(input.vertexVC.x, input.vertexVC.y, input.vertexVC.z + 3.0*input.radiusVC); - EyeDir = vec3(0.0, 0.0, -1.0); - } - else - { - EyeDir = input.vertexVC.xyz; - EyePos = vec3(0.0,0.0,0.0); - var lengthED: f32 = length(EyeDir); - EyeDir = normalize(EyeDir); - // we adjust the EyePos to be closer if it is too far away - // to prevent floating point precision noise - if (lengthED > input.radiusVC*3.0) - { - EyePos = input.vertexVC.xyz - EyeDir*3.0*input.radiusVC; - } - } - // translate to Sphere center - EyePos = EyePos - input.centerVC; - - // rotate to new basis - // base1, base2, orientVC - var base1: vec3; - if (abs(input.orientVC.z) < 0.99) - { - base1 = normalize(cross(input.orientVC,vec3(0.0,0.0,1.0))); - } - else - { - base1 = normalize(cross(input.orientVC,vec3(0.0,1.0,0.0))); - } - var base2: vec3 = cross(input.orientVC,base1); - EyePos = vec3(dot(EyePos,base1),dot(EyePos,base2),dot(EyePos,input.orientVC)); - EyeDir = vec3(dot(EyeDir,base1),dot(EyeDir,base2),dot(EyeDir,input.orientVC)); - - // scale to radius 1.0 - EyePos = EyePos * (1.0 / input.radiusVC); - - // find the intersection - var a: f32 = EyeDir.x*EyeDir.x + EyeDir.y*EyeDir.y; - var b: f32 = 2.0*(EyePos.x*EyeDir.x + EyePos.y*EyeDir.y); - var c: f32 = EyePos.x*EyePos.x + EyePos.y*EyePos.y - 1.0; - var d: f32 = b*b - 4.0*a*c; - var normal: vec3 = vec3(0.0,0.0,1.0); - if (d < 0.0) { discard; } - else - { - var t: f32 = (-b - sqrt(d))*(0.5 / a); - var tz: f32 = EyePos.z + t*EyeDir.z; - var iPoint: vec3 = EyePos + t*EyeDir; - if (abs(iPoint.z)*input.radiusVC > input.lengthVC*0.5) - { - // test for end cap - var t2: f32 = (-b + sqrt(d))*(0.5 / a); - var tz2: f32 = EyePos.z + t2*EyeDir.z; - if (tz2*input.radiusVC > input.lengthVC*0.5 || tz*input.radiusVC < -0.5*input.lengthVC) { discard; } - else - { - normal = input.orientVC; - var t3: f32 = (input.lengthVC*0.5/input.radiusVC - EyePos.z)/EyeDir.z; - iPoint = EyePos + t3*EyeDir; - vertexVC = vec4(input.radiusVC*(iPoint.x*base1 + iPoint.y*base2 + iPoint.z*input.orientVC) + input.centerVC, 1.0); - } - } - else - { - // The normal is the iPoint.xy rotated back into VC - normal = iPoint.x*base1 + iPoint.y*base2; - // rescale rerotate and translate - vertexVC = vec4(input.radiusVC*(normal + iPoint.z*input.orientVC) + input.centerVC, 1.0); - } - } - // compute the pixel's depth - var pos: vec4 = rendererUBO.VCPCMatrix * vertexVC; - output.fragDepth = pos.z / pos.w; - `; - let code = fDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Normal::Impl', [stickFrag]).result; - fDesc.setCode(code); - }; - publicAPI.replaceShaderPosition = (hash, pipeline, vertexInput) => { - const vDesc = pipeline.getShaderDescription('vertex'); - vDesc.addBuiltinOutput('vec4', '@builtin(position) Position'); - let code = vDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Position::Impl', [' output.Position = rendererUBO.VCPCMatrix*vertexVC;']).result; - vDesc.setCode(code); - }; - - // compute a unique hash for a pipeline, this needs to be unique enough to - // capture any pipeline code changes (which includes shader changes) - // or vertex input changes/ bind groups/ etc - publicAPI.computePipelineHash = () => { - model.pipelineHash = 'stm'; - if (model.vertexInput.hasAttribute(`colorVI`)) { - model.pipelineHash += `c`; - } - model.pipelineHash += model.renderEncoder.getPipelineHash(); - }; - publicAPI.updateBuffers = () => { - const poly = model.currentInput; - model.renderable.mapScalars(poly, 1.0); - const device = model.device; - const points = poly.getPoints(); - const pointData = poly.getPointData(); - const numPoints = points.getNumberOfPoints(); - const pointArray = points.getData(); - publicAPI.setNumberOfInstances(numPoints); - publicAPI.setNumberOfVertices(12); - const vertexInput = model.vertexInput; - let hash = `stm${points.getMTime()}float32x3`; - if (!device.getBufferManager().hasBuffer(hash)) { - const buffRequest = { - hash, - usage: BufferUsage.RawVertex, - format: 'float32x3' - }; - // xyz v1 v2 v3 - const tmpVBO = new Float32Array(numPoints * 3); - let pointIdx = 0; - let vboIdx = 0; - for (let id = 0; id < numPoints; ++id) { - pointIdx = id * 3; - tmpVBO[vboIdx++] = pointArray[pointIdx]; - tmpVBO[vboIdx++] = pointArray[pointIdx + 1]; - tmpVBO[vboIdx++] = pointArray[pointIdx + 2]; - } - buffRequest.nativeArray = tmpVBO; - const buff = device.getBufferManager().getBuffer(buffRequest); - vertexInput.addBuffer(buff, ['vertexBC'], 'instance'); - } - - // compute offset VBO - let scales = null; - if (model.renderable.getScaleArray() != null && pointData.hasArray(model.renderable.getScaleArray())) { - scales = pointData.getArray(model.renderable.getScaleArray()).getData(); - } - const defaultRadius = model.renderable.getRadius(); - if (scales || defaultRadius !== model._lastRadius) { - hash = `stm${scales ? pointData.getArray(model.renderable.getScaleArray()).getMTime() : defaultRadius}float32`; - if (!device.getBufferManager().hasBuffer(hash)) { - const buffRequest = { - hash, - usage: BufferUsage.RawVertex, - format: 'float32' - }; - const tmpVBO = new Float32Array(numPoints); - let vboIdx = 0; - for (let id = 0; id < numPoints; ++id) { - let radius = model.renderable.getRadius(); - if (scales) { - radius = scales[id * 2 + 1]; - } - tmpVBO[vboIdx++] = radius; - } - buffRequest.nativeArray = tmpVBO; - const buff = device.getBufferManager().getBuffer(buffRequest); - vertexInput.addBuffer(buff, ['radiusMC'], 'instance'); - } - model._lastRadius = defaultRadius; - } - let orientationArray = null; - if (model.renderable.getOrientationArray() != null && pointData.hasArray(model.renderable.getOrientationArray())) { - orientationArray = pointData.getArray(model.renderable.getOrientationArray()).getData(); - } else { - vtkErrorMacro(['Error setting orientationArray.\n', 'You have to specify the stick orientation']); - } - hash = `stm${pointData.getArray(model.renderable.getOrientationArray()).getMTime()}float32x3`; - if (!device.getBufferManager().hasBuffer(hash)) { - const buffRequest = { - hash, - usage: BufferUsage.RawVertex, - format: 'float32x3' - }; - // xyz v1 v2 v3 - const tmpVBO = new Float32Array(numPoints * 3); - let pointIdx = 0; - let vboIdx = 0; - for (let id = 0; id < numPoints; ++id) { - pointIdx = id * 3; - let length = model.renderable.getLength(); - if (scales) { - length = scales[id * 2]; - } - tmpVBO[vboIdx++] = orientationArray[pointIdx] * length; - tmpVBO[vboIdx++] = orientationArray[pointIdx + 1] * length; - tmpVBO[vboIdx++] = orientationArray[pointIdx + 2] * length; - } - buffRequest.nativeArray = tmpVBO; - const buff = device.getBufferManager().getBuffer(buffRequest); - vertexInput.addBuffer(buff, ['orientMC'], 'instance'); - } - - // deal with colors but only if modified - let haveColors = false; - if (model.renderable.getScalarVisibility()) { - const c = model.renderable.getColorMapColors(); - if (c) { - hash = `stm${c.getMTime()}unorm8x4`; - if (!device.getBufferManager().hasBuffer(hash)) { - const buffRequest = { - usage: BufferUsage.RawVertex, - format: 'unorm8x4' - }; - const colorComponents = c.getNumberOfComponents(); - if (colorComponents !== 4) { - vtkErrorMacro('this should be 4'); - } - const tmpVBO = new Uint8ClampedArray(numPoints * 4); - let vboIdx = 0; - const colorData = c.getData(); - for (let id = 0; id < numPoints; ++id) { - const colorIdx = id * colorComponents; - tmpVBO[vboIdx++] = colorData[colorIdx]; - tmpVBO[vboIdx++] = colorData[colorIdx + 1]; - tmpVBO[vboIdx++] = colorData[colorIdx + 2]; - tmpVBO[vboIdx++] = colorData[colorIdx + 3]; - } - buffRequest.nativeArray = tmpVBO; - const buff = device.getBufferManager().getBuffer(buffRequest); - vertexInput.addBuffer(buff, ['colorVI'], 'instance'); - } - haveColors = true; - } - } - if (!haveColors) { - vertexInput.removeBufferIfPresent('colorVI'); - } - publicAPI.setTopology('triangle-list'); - publicAPI.updateUBO(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkWebGPUCellArrayMapper.extend(publicAPI, model, initialValues); - publicAPI.setVertexShaderTemplate(vtkWebGPUStickMapperVS); - - // Object methods - vtkWebGPUStickMapper(publicAPI, model); - const sr = model.shaderReplacements; - sr.set('replaceShaderPosition', publicAPI.replaceShaderPosition); - sr.set('replaceShaderNormal', publicAPI.replaceShaderNormal); -} - -// ---------------------------------------------------------------------------- - -const newInstance = newInstance$1(extend, 'vtkWebGPUStickMapper'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -// Register ourself to WebGPU backend if imported -registerOverride('vtkStickMapper', newInstance); - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/StorageBuffer.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/StorageBuffer.js deleted file mode 100644 index b9cc5042..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/StorageBuffer.js +++ /dev/null @@ -1,236 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkWebGPUBufferManager from './BufferManager.js'; -import vtkWebGPUTypes from './Types.js'; - -const { - BufferUsage -} = vtkWebGPUBufferManager; -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkWebGPUStorageBuffer - similar to the UniformBuffer class -// but YOU are responsible for layout issues and alignment. -// The order you add entries is the order they will be layed out -// in memory. But you must follow layout rules. -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -// vtkWebGPUStorageBuffer methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUStorageBuffer(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUStorageBuffer'); - publicAPI.addEntry = (name, type) => { - if (model._bufferEntryNames.has(name)) { - vtkErrorMacro(`entry named ${name} already exists`); - return; - } - model._bufferEntryNames.set(name, model.bufferEntries.length); - const sizeInBytes = vtkWebGPUTypes.getByteStrideFromShaderFormat(type); - model.bufferEntries.push({ - name, - type, - sizeInBytes, - offset: model.sizeInBytes, - nativeType: vtkWebGPUTypes.getNativeTypeFromShaderFormat(type) - }); - model.sizeInBytes += sizeInBytes; - }; - publicAPI.send = device => { - if (!model._buffer) { - const req = { - nativeArray: model.Float32Array, - usage: BufferUsage.Storage, - label: model.label - }; - model._buffer = device.getBufferManager().getBuffer(req); - model.bindGroupTime.modified(); - model._sendTime.modified(); - return; - } - device.getHandle().queue.writeBuffer(model._buffer.getHandle(), 0, model.arrayBuffer, 0, model.sizeInBytes * model.numberOfInstances); - model._sendTime.modified(); - }; - publicAPI.createView = type => { - if (type in model === false) { - if (!model.arrayBuffer) { - model.arrayBuffer = new ArrayBuffer(model.sizeInBytes * model.numberOfInstances); - } - model[type] = macro.newTypedArray(type, model.arrayBuffer); - } - }; - publicAPI.setValue = (name, instance, val) => { - const idx = model._bufferEntryNames.get(name); - if (idx === undefined) { - vtkErrorMacro(`entry named ${name} not found in UBO`); - return; - } - const entry = model.bufferEntries[idx]; - publicAPI.createView(entry.nativeType); - const view = model[entry.nativeType]; - view[(entry.offset + instance * model.sizeInBytes) / view.BYTES_PER_ELEMENT] = val; - }; - publicAPI.setArray = (name, instance, arr) => { - const idx = model._bufferEntryNames.get(name); - if (idx === undefined) { - vtkErrorMacro(`entry named ${name} not found in UBO`); - return; - } - const entry = model.bufferEntries[idx]; - publicAPI.createView(entry.nativeType); - const view = model[entry.nativeType]; - const ioffset = (entry.offset + instance * model.sizeInBytes) / view.BYTES_PER_ELEMENT; - for (let i = 0; i < arr.length; i++) { - view[ioffset + i] = arr[i]; - } - }; - publicAPI.setAllInstancesFromArray = (name, arr) => { - const idx = model._bufferEntryNames.get(name); - if (idx === undefined) { - vtkErrorMacro(`entry named ${name} not found in UBO`); - return; - } - const entry = model.bufferEntries[idx]; - publicAPI.createView(entry.nativeType); - const view = model[entry.nativeType]; - const numComponents = arr.length / model.numberOfInstances; - for (let inst = 0; inst < model.numberOfInstances; inst++) { - const ioffset = (entry.offset + inst * model.sizeInBytes) / view.BYTES_PER_ELEMENT; - for (let i = 0; i < numComponents; i++) { - view[ioffset + i] = arr[inst * numComponents + i]; - } - } - }; - publicAPI.setAllInstancesFromArrayColorToFloat = (name, arr) => { - const idx = model._bufferEntryNames.get(name); - if (idx === undefined) { - vtkErrorMacro(`entry named ${name} not found in UBO`); - return; - } - const entry = model.bufferEntries[idx]; - publicAPI.createView(entry.nativeType); - const view = model[entry.nativeType]; - const numComponents = arr.length / model.numberOfInstances; - for (let inst = 0; inst < model.numberOfInstances; inst++) { - const ioffset = (entry.offset + inst * model.sizeInBytes) / view.BYTES_PER_ELEMENT; - for (let i = 0; i < numComponents; i++) { - view[ioffset + i] = arr[inst * numComponents + i] / 255.0; - } - } - }; - publicAPI.setAllInstancesFromArray3x3To4x4 = (name, arr) => { - const idx = model._bufferEntryNames.get(name); - if (idx === undefined) { - vtkErrorMacro(`entry named ${name} not found in UBO`); - return; - } - const entry = model.bufferEntries[idx]; - publicAPI.createView(entry.nativeType); - const view = model[entry.nativeType]; - const numComponents = 9; - for (let inst = 0; inst < model.numberOfInstances; inst++) { - const ioffset = (entry.offset + inst * model.sizeInBytes) / view.BYTES_PER_ELEMENT; - for (let j = 0; j < 3; j++) { - for (let i = 0; i < 3; i++) { - view[ioffset + j * 4 + i] = arr[inst * numComponents + j * 3 + i]; - } - } - } - }; - publicAPI.getSendTime = () => model._sendTime.getMTime(); - publicAPI.getShaderCode = (binding, group) => { - const lines = [`struct ${model.label}StructEntry\n{`]; - for (let i = 0; i < model.bufferEntries.length; i++) { - const entry = model.bufferEntries[i]; - lines.push(` ${entry.name}: ${entry.type},`); - } - lines.push(` -}; -struct ${model.label}Struct -{ - values: array<${model.label}StructEntry>, -}; -@binding(${binding}) @group(${group}) var ${model.label}: ${model.label}Struct; -`); - return lines.join('\n'); - }; - publicAPI.getBindGroupEntry = () => { - const foo = { - resource: { - buffer: model._buffer.getHandle() - } - }; - return foo; - }; - publicAPI.clearData = () => { - model.numberOfInstances = 0; - model.sizeInBytes = 0; - model.bufferEntries = []; - model._bufferEntryNames = new Map(); - model._buffer = null; - delete model.arrayBuffer; - delete model.Float32Array; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - bufferEntries: null, - bufferEntryNames: null, - sizeInBytes: 0, - label: null, - numberOfInstances: 1 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - - // Internal objects - model._bufferEntryNames = new Map(); - model.bufferEntries = []; - model._sendTime = {}; - macro.obj(model._sendTime, { - mtime: 0 - }); - model.bindGroupTime = {}; - macro.obj(model.bindGroupTime, { - mtime: 0 - }); - - // default SSBO desc - model.bindGroupLayoutEntry = model.bindGroupLayoutEntry || { - buffer: { - type: 'read-only-storage' - } - }; - macro.get(publicAPI, model, ['bindGroupTime']); - macro.setGet(publicAPI, model, ['device', 'bindGroupLayoutEntry', 'label', 'numberOfInstances', 'sizeInBytes']); - - // Object methods - vtkWebGPUStorageBuffer(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWebGPUStorageBuffer'); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUStorageBuffer$1 = { - newInstance, - extend -}; - -export { vtkWebGPUStorageBuffer$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Texture.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Texture.js deleted file mode 100644 index 10eb28f2..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Texture.js +++ /dev/null @@ -1,290 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import HalfFloat from '../../Common/Core/HalfFloat.js'; -import vtkWebGPUTextureView from './TextureView.js'; -import vtkWebGPUTypes from './Types.js'; -import vtkTexture from '../Core/Texture.js'; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -// vtkWebGPUTexture methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUTexture(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUTexture'); - publicAPI.create = (device, options) => { - model.device = device; - model.width = options.width; - model.height = options.height; - model.depth = options.depth ? options.depth : 1; - const dimension = model.depth === 1 ? '2d' : '3d'; - model.format = options.format ? options.format : 'rgba8unorm'; - model.mipLevel = options.mipLevel ? options.mipLevel : 0; - /* eslint-disable no-undef */ - /* eslint-disable no-bitwise */ - model.usage = options.usage ? options.usage : GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.COPY_DST; - /* eslint-enable no-undef */ - /* eslint-enable no-bitwise */ - model.handle = model.device.getHandle().createTexture({ - size: [model.width, model.height, model.depth], - format: model.format, - // 'rgba8unorm', - usage: model.usage, - label: model.label, - dimension, - mipLevelCount: model.mipLevel + 1 - }); - }; - publicAPI.assignFromHandle = (device, handle, options) => { - model.device = device; - model.handle = handle; - model.width = options.width; - model.height = options.height; - model.depth = options.depth ? options.depth : 1; - model.format = options.format ? options.format : 'rgba8unorm'; - /* eslint-disable no-undef */ - /* eslint-disable no-bitwise */ - model.usage = options.usage ? options.usage : GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.COPY_DST; - /* eslint-enable no-undef */ - /* eslint-enable no-bitwise */ - }; - - publicAPI.writeImageData = req => { - let nativeArray = []; - const _copyImageToTexture = source => { - model.device.getHandle().queue.copyExternalImageToTexture({ - source, - flipY: req.flip - }, { - texture: model.handle, - premultipliedAlpha: true, - mipLevel: 0, - origin: { - x: 0, - y: 0, - z: 0 - } - }, [source.width, source.height, model.depth]); - - // Generate mipmaps on GPU if needed - if (publicAPI.getDimensionality() !== 3 && model.mipLevel > 0) { - vtkTexture.generateMipmaps(model.device.getHandle(), model.handle, model.mipLevel + 1); - } - model.ready = true; - }; - if (req.canvas) { - _copyImageToTexture(req.canvas); - return; - } - if (req.imageBitmap) { - req.width = req.imageBitmap.width; - req.height = req.imageBitmap.height; - req.depth = 1; - req.format = 'rgba8unorm'; - req.flip = true; - _copyImageToTexture(req.imageBitmap); - return; - } - if (req.jsImageData) { - req.width = req.jsImageData.width; - req.height = req.jsImageData.height; - req.depth = 1; - req.format = 'rgba8unorm'; - req.flip = true; - _copyImageToTexture(req.jsImageData); - return; - } - if (req.image) { - req.width = req.image.width; - req.height = req.image.height; - req.depth = 1; - req.format = 'rgba8unorm'; - req.flip = true; - _copyImageToTexture(req.image); - return; - } - const tDetails = vtkWebGPUTypes.getDetailsFromTextureFormat(model.format); - let bufferBytesPerRow = model.width * tDetails.stride; - - /** - * Align texture data to ensure bytesPerRow is a multiple of 256. - * This is necessary for WebGPU texture uploads, especially for half-float formats. - * It also handles half-float conversion if the texture format requires it. - * @param {*} arr - The input array containing texture data. - * @param {*} height - The height of the texture. - * @param {*} depth - The depth of the texture (1 for 2D textures). - * @returns - */ - const alignTextureData = (arr, height, depth) => { - // bytesPerRow must be a multiple of 256 so we might need to rebuild - // the data here before passing to the buffer. e.g. if it is unorm8x4 then - // we need to have width be a multiple of 64 - // Check if the texture is half float - const halfFloat = tDetails.elementSize === 2 && tDetails.sampleType === 'float'; - const bytesPerElement = arr.BYTES_PER_ELEMENT; - const inWidthInBytes = arr.length / (height * depth) * bytesPerElement; - - // No changes needed if not half float and already aligned - if (!halfFloat && inWidthInBytes % 256 === 0) { - return [arr, inWidthInBytes]; - } - - // Calculate dimensions for the new buffer - const inWidth = inWidthInBytes / bytesPerElement; - const outBytesPerElement = tDetails.elementSize; - const outWidthInBytes = 256 * Math.floor((inWidth * outBytesPerElement + 255) / 256); - const outWidth = outWidthInBytes / outBytesPerElement; - - // Create the output array - const outArray = macro.newTypedArray(halfFloat ? 'Uint16Array' : arr.constructor.name, outWidth * height * depth); - - // Copy and convert data when needed - const totalRows = height * depth; - if (halfFloat) { - for (let v = 0; v < totalRows; v++) { - const inOffset = v * inWidth; - const outOffset = v * outWidth; - for (let i = 0; i < inWidth; i++) { - outArray[outOffset + i] = HalfFloat.toHalf(arr[inOffset + i]); - } - } - } else if (outWidth === inWidth) { - // If the output width is the same as input, just copy - outArray.set(arr); - } else { - for (let v = 0; v < totalRows; v++) { - outArray.set(arr.subarray(v * inWidth, (v + 1) * inWidth), v * outWidth); - } - } - return [outArray, outWidthInBytes]; - }; - if (req.nativeArray) { - nativeArray = req.nativeArray; - } - const is3D = publicAPI.getDimensionality() === 3; - const alignedTextureData = alignTextureData(nativeArray, model.height, is3D ? model.depth : 1); - bufferBytesPerRow = alignedTextureData[1]; - const data = alignedTextureData[0]; - model.device.getHandle().queue.writeTexture({ - texture: model.handle, - mipLevel: 0, - origin: { - x: 0, - y: 0, - z: 0 - } - }, data, { - offset: 0, - bytesPerRow: bufferBytesPerRow, - rowsPerImage: model.height - }, { - width: model.width, - height: model.height, - depthOrArrayLayers: is3D ? model.depth : 1 - }); - if (!is3D && model.mipLevel > 0) { - vtkTexture.generateMipmaps(model.device.getHandle(), model.handle, model.mipLevel + 1); - } - model.ready = true; - }; - - // when data is pulled out of this texture what scale must be applied to - // get back to the original source data. For formats such as r8unorm we - // have to multiply by 255.0, for formats such as r16float it is 1.0 - publicAPI.getScale = () => { - const tDetails = vtkWebGPUTypes.getDetailsFromTextureFormat(model.format); - const halfFloat = tDetails.elementSize === 2 && tDetails.sampleType === 'float'; - return halfFloat ? 1.0 : 255.0; - }; - publicAPI.getNumberOfComponents = () => { - const tDetails = vtkWebGPUTypes.getDetailsFromTextureFormat(model.format); - return tDetails.numComponents; - }; - publicAPI.getDimensionality = () => { - let dims = 0; - if (model.width > 1) dims++; - if (model.height > 1) dims++; - if (model.depth > 1) dims++; - return dims; - }; - publicAPI.resizeToMatch = tex => { - if (tex.getWidth() !== model.width || tex.getHeight() !== model.height || tex.getDepth() !== model.depth) { - model.width = tex.getWidth(); - model.height = tex.getHeight(); - model.depth = tex.getDepth(); - model.handle = model.device.getHandle().createTexture({ - size: [model.width, model.height, model.depth], - format: model.format, - usage: model.usage, - label: model.label - }); - } - }; - publicAPI.resize = function (width, height) { - let depth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - if (width !== model.width || height !== model.height || depth !== model.depth) { - model.width = width; - model.height = height; - model.depth = depth; - model.handle = model.device.getHandle().createTexture({ - size: [model.width, model.height, model.depth], - format: model.format, - usage: model.usage, - label: model.label - }); - } - }; - publicAPI.createView = function (label) { - let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - // if options is missing values try to add them in - if (!options.dimension) { - options.dimension = model.depth === 1 ? '2d' : '3d'; - } - const view = vtkWebGPUTextureView.newInstance({ - label - }); - view.create(publicAPI, options); - return view; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - device: null, - handle: null, - buffer: null, - ready: false, - label: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['handle', 'ready', 'width', 'height', 'depth', 'format', 'usage']); - macro.setGet(publicAPI, model, ['device', 'label']); - vtkWebGPUTexture(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUTexture$1 = { - newInstance, - extend -}; - -export { vtkWebGPUTexture$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/TextureManager.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/TextureManager.js deleted file mode 100644 index 00080349..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/TextureManager.js +++ /dev/null @@ -1,220 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkWebGPUTexture from './Texture.js'; - -const { - VtkDataTypes -} = vtkDataArray; - -// ---------------------------------------------------------------------------- -// Global methods -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -// vtkWebGPUTextureManager methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUTextureManager(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUTextureManager'); - - // fills in request values based on what is missing/provided - function _fillRequest(req) { - // fill in values based on imageData if the request has it - if (req.imageData) { - req.dataArray = req.imageData.getPointData().getScalars(); - req.time = req.dataArray.getMTime(); - req.nativeArray = req.dataArray.getData(); - const dims = req.imageData.getDimensions(); - req.width = dims[0]; - req.height = dims[1]; - req.depth = dims[2]; - const numComp = req.dataArray.getNumberOfComponents(); - // todo fix handling of 3 component - switch (numComp) { - case 1: - req.format = 'r'; - break; - case 2: - req.format = 'rg'; - break; - case 3: - case 4: - default: - req.format = 'rgba'; - break; - } - const dataType = req.dataArray.getDataType(); - switch (dataType) { - case VtkDataTypes.UNSIGNED_CHAR: - req.format += '8unorm'; - break; - // todo extend to other types that are not filterable - // as they can be useful - case VtkDataTypes.FLOAT: - case VtkDataTypes.UNSIGNED_INT: - case VtkDataTypes.INT: - case VtkDataTypes.DOUBLE: - case VtkDataTypes.UNSIGNED_SHORT: - case VtkDataTypes.SHORT: - default: - req.format += '16float'; - break; - } - } - - // fill in values based on image if the request has it - if (req.image) { - req.width = req.image.width; - req.height = req.image.height; - req.depth = 1; - req.format = 'rgba8unorm'; - req.flip = true; - /* eslint-disable no-undef */ - /* eslint-disable no-bitwise */ - req.usage = GPUTextureUsage.STORAGE_BINDING | GPUTextureUsage.COPY_DST | GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.RENDER_ATTACHMENT; - /* eslint-enable no-undef */ - /* eslint-enable no-bitwise */ - } - - // fill in based on js imageData - if (req.jsImageData) { - req.width = req.jsImageData.width; - req.height = req.jsImageData.height; - req.depth = 1; - req.format = 'rgba8unorm'; - req.flip = true; - req.nativeArray = req.jsImageData.data; - /* eslint-disable no-undef */ - /* eslint-disable no-bitwise */ - req.usage = GPUTextureUsage.STORAGE_BINDING | GPUTextureUsage.COPY_DST | GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.RENDER_ATTACHMENT; - /* eslint-enable no-undef */ - /* eslint-enable no-bitwise */ - } - - if (req.imageBitmap) { - req.width = req.imageBitmap.width; - req.height = req.imageBitmap.height; - req.depth = 1; - req.format = 'rgba8unorm'; - req.flip = true; - /* eslint-disable no-undef */ - /* eslint-disable no-bitwise */ - req.usage = GPUTextureUsage.STORAGE_BINDING | GPUTextureUsage.COPY_DST | GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.RENDER_ATTACHMENT; - /* eslint-enable no-undef */ - /* eslint-enable no-bitwise */ - } - - if (req.canvas) { - req.width = req.canvas.width; - req.height = req.canvas.height; - req.depth = 1; - req.format = 'rgba8unorm'; - req.flip = true; - /* eslint-disable no-undef */ - /* eslint-disable no-bitwise */ - req.usage = GPUTextureUsage.STORAGE_BINDING | GPUTextureUsage.COPY_DST | GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.RENDER_ATTACHMENT; - /* eslint-enable no-undef */ - /* eslint-enable no-bitwise */ - } - } - - // create a texture (used by getTexture) - function _createTexture(req) { - const newTex = vtkWebGPUTexture.newInstance({ - label: req.label - }); - newTex.create(model.device, { - width: req.width, - height: req.height, - depth: req.depth, - format: req.format, - usage: req.usage, - mipLevel: req.mipLevel - }); - - // fill the texture if we have data - if (req.nativeArray || req.image || req.canvas || req.imageBitmap) { - newTex.writeImageData(req); - } - return newTex; - } - - // get a texture or create it if not cached. - // this is the main entry point - publicAPI.getTexture = req => { - // if we have a source then get/create/cache the texture - if (req.hash) { - // if a matching texture already exists then return it - return model.device.getCachedObject(req.hash, _createTexture, req); - } - return _createTexture(req); - }; - publicAPI.getTextureForImageData = imgData => { - const treq = { - time: imgData.getMTime() - }; - treq.imageData = imgData; - // fill out the req time and format based on imageData/image - _fillRequest(treq); - treq.hash = treq.time + treq.format + treq.mipLevel; - return model.device.getTextureManager().getTexture(treq); - }; - publicAPI.getTextureForVTKTexture = function (srcTexture) { - let label = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; - const treq = { - time: srcTexture.getMTime(), - label - }; - if (srcTexture.getInputData()) { - treq.imageData = srcTexture.getInputData(); - } else if (srcTexture.getImage()) { - treq.image = srcTexture.getImage(); - } else if (srcTexture.getJsImageData()) { - treq.jsImageData = srcTexture.getJsImageData(); - } else if (srcTexture.getImageBitmap()) { - treq.imageBitmap = srcTexture.getImageBitmap(); - } else if (srcTexture.getCanvas()) { - treq.canvas = srcTexture.getCanvas(); - } - // fill out the req time and format based on imageData/image - _fillRequest(treq); - treq.mipLevel = srcTexture.getMipLevel(); - treq.hash = treq.time + treq.format + treq.mipLevel; - return model.device.getTextureManager().getTexture(treq); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - handle: null, - device: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['device']); - vtkWebGPUTextureManager(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUTextureManager$1 = { - newInstance, - extend -}; - -export { vtkWebGPUTextureManager$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/TextureView.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/TextureView.js deleted file mode 100644 index c189422a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/TextureView.js +++ /dev/null @@ -1,134 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkWebGPUSampler from './Sampler.js'; -import vtkWebGPUTypes from './Types.js'; - -// ---------------------------------------------------------------------------- -// vtkWebGPUTextureView methods -// ---------------------------------------------------------------------------- - -/* eslint-disable no-bitwise */ - -function vtkWebGPUTextureView(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUTextureView'); - publicAPI.create = (texture, options) => { - model.texture = texture; - model.options = options; - model.options.dimension = model.options.dimension || '2d'; - model.options.label = model.label; - model.textureHandle = texture.getHandle(); - model.handle = model.textureHandle.createView(model.options); - model.bindGroupLayoutEntry.texture.viewDimension = model.options.dimension; - const tDetails = vtkWebGPUTypes.getDetailsFromTextureFormat(model.texture.getFormat()); - model.bindGroupLayoutEntry.texture.sampleType = tDetails.sampleType; - }; - publicAPI.createFromTextureHandle = (textureHandle, options) => { - model.texture = null; - model.options = options; - model.options.dimension = model.options.dimension || '2d'; - model.options.label = model.label; - model.textureHandle = textureHandle; - model.handle = model.textureHandle.createView(model.options); - model.bindGroupLayoutEntry.texture.viewDimension = model.options.dimension; - const tDetails = vtkWebGPUTypes.getDetailsFromTextureFormat(options.format); - model.bindGroupLayoutEntry.texture.sampleType = tDetails.sampleType; - model.bindGroupTime.modified(); - }; - publicAPI.getBindGroupEntry = () => { - const foo = { - resource: publicAPI.getHandle() - }; - return foo; - }; - publicAPI.getShaderCode = (binding, group) => { - let ttype = 'f32'; - if (model.bindGroupLayoutEntry.texture.sampleType === 'sint') { - ttype = 'i32'; - } else if (model.bindGroupLayoutEntry.texture.sampleType === 'uint') { - ttype = 'u32'; - } - let result = `@binding(${binding}) @group(${group}) var ${model.label}: texture_${model.options.dimension}<${ttype}>;`; - if (model.bindGroupLayoutEntry.texture.sampleType === 'depth') { - result = `@binding(${binding}) @group(${group}) var ${model.label}: texture_depth_${model.options.dimension};`; - } - return result; - }; - publicAPI.addSampler = (device, options) => { - const newSamp = vtkWebGPUSampler.newInstance({ - label: `${model.label}Sampler` - }); - newSamp.create(device, options); - publicAPI.setSampler(newSamp); - }; - publicAPI.getBindGroupTime = () => { - // check if the handle changed - if (model.texture && model.texture.getHandle() !== model.textureHandle) { - model.textureHandle = model.texture.getHandle(); - model.handle = model.textureHandle.createView(model.options); - model.bindGroupTime.modified(); - } - return model.bindGroupTime; - }; - - // if the texture has changed then get a new view - publicAPI.getHandle = () => { - if (model.texture && model.texture.getHandle() !== model.textureHandle) { - model.textureHandle = model.texture.getHandle(); - model.handle = model.textureHandle.createView(model.options); - model.bindGroupTime.modified(); - } - return model.handle; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - texture: null, - handle: null, - sampler: null, - label: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Object methods - macro.obj(publicAPI, model); - model.bindGroupLayoutEntry = { - /* eslint-disable no-undef */ - visibility: GPUShaderStage.VERTEX | GPUShaderStage.FRAGMENT, - /* eslint-enable no-undef */ - texture: { - sampleType: 'float', - viewDimension: '2d' - // multisampled: false, - } - }; - - model.bindGroupTime = {}; - macro.obj(model.bindGroupTime, { - mtime: 0 - }); - macro.get(publicAPI, model, ['bindGroupTime', 'texture']); - macro.setGet(publicAPI, model, ['bindGroupLayoutEntry', 'label', 'sampler']); - vtkWebGPUTextureView(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUTextureView$1 = { - newInstance, - extend -}; - -export { vtkWebGPUTextureView$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Types.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Types.js deleted file mode 100644 index 988ee0d8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Types.js +++ /dev/null @@ -1,435 +0,0 @@ -import { r as vtkErrorMacro } from '../../macros2.js'; - -// ---------------------------------------------------------------------------- -// vtkWebGPUDevice static functions -// -// WebGPU uses types in a many places and calls, and often those types -// need to be associated with byte sizes, alignments, native arrays etc. -// The folowing methods are designed to help vtk.js introspect those types. -// WebGPU currently tends to use multiple type formats: -// - buffer types such as float32x4 -// - shader types suchs as vec4 -// - texture types such as rgba32float -// ---------------------------------------------------------------------------- - -// see https://gpuweb.github.io/gpuweb/#texture-formats -// for possible formats, there are a lot of them -const textureDetails = { - // 8-bit formats - r8unorm: { - numComponents: 1, - nativeType: Uint8Array, - stride: 1, - elementSize: 1, - sampleType: 'float' - }, - r8snorm: { - numComponents: 1, - nativeType: Int8Array, - stride: 1, - elementSize: 1, - sampleType: 'float' - }, - r8uint: { - numComponents: 1, - nativeType: Uint8Array, - stride: 1, - elementSize: 1, - sampleType: 'uint' - }, - r8sint: { - numComponents: 1, - nativeType: Int8Array, - stride: 1, - elementSize: 1, - sampleType: 'sint' - }, - // 16-bit formats - r16uint: { - numComponents: 1, - nativeType: Uint16Array, - stride: 2, - elementSize: 2, - sampleType: 'uint' - }, - r16sint: { - numComponents: 1, - nativeType: Int16Array, - stride: 2, - elementSize: 2, - sampleType: 'sint' - }, - r16float: { - numComponents: 1, - nativeType: Float32Array, - stride: 2, - elementSize: 2, - sampleType: 'float' - }, - rg8unorm: { - numComponents: 2, - nativeType: Uint8Array, - stride: 2, - elementSize: 1, - sampleType: 'float' - }, - rg8snorm: { - numComponents: 2, - nativeType: Int8Array, - stride: 2, - elementSize: 1, - sampleType: 'float' - }, - rg8uint: { - numComponents: 2, - nativeType: Uint8Array, - stride: 2, - elementSize: 1, - sampleType: 'uint' - }, - rg8sint: { - numComponents: 2, - nativeType: Int8Array, - stride: 2, - elementSize: 1, - sampleType: 'sint' - }, - // 32-bit formats - r32uint: { - numComponents: 1, - nativeType: Uint32Array, - stride: 4, - elementSize: 4, - sampleType: 'uint' - }, - r32sint: { - numComponents: 1, - nativeType: Int32Array, - stride: 4, - elementSize: 4, - sampleType: 'sint' - }, - r32float: { - numComponents: 1, - nativeType: Float32Array, - stride: 4, - elementSize: 4, - sampleType: 'unfilterable-float' - }, - rg16uint: { - numComponents: 2, - nativeType: Uint16Array, - stride: 4, - elementSize: 2, - sampleType: 'uint' - }, - rg16sint: { - numComponents: 2, - nativeType: Int16Array, - stride: 4, - elementSize: 2, - sampleType: 'sint' - }, - rg16float: { - numComponents: 2, - nativeType: Float32Array, - stride: 4, - elementSize: 2, - sampleType: 'float' - }, - rgba8unorm: { - numComponents: 4, - nativeType: Uint8Array, - stride: 4, - elementSize: 1, - sampleType: 'float' - }, - 'rgba8unorm-srgb': { - numComponents: 4, - nativeType: Uint8Array, - stride: 4, - elementSize: 1, - sampleType: 'float' - }, - rgba8snorm: { - numComponents: 4, - nativeType: Int8Array, - stride: 4, - elementSize: 1, - sampleType: 'float' - }, - rgba8uint: { - numComponents: 4, - nativeType: Uint8Array, - stride: 4, - elementSize: 1, - sampleType: 'uint' - }, - rgba8sint: { - numComponents: 4, - nativeType: Int8Array, - stride: 4, - elementSize: 1, - sampleType: 'sint' - }, - bgra8unorm: { - numComponents: 4, - nativeType: Uint8Array, - stride: 4, - elementSize: 1, - sampleType: 'float' - }, - 'bgra8unorm-srgb': { - numComponents: 4, - nativeType: Uint8Array, - stride: 4, - elementSize: 1, - sampleType: 'float' - }, - // Packed 32-bit formats - rgb9e5ufloat: { - numComponents: 4, - nativeType: Uint32Array, - stride: 4, - sampleType: 'float' - }, - rgb10a2unorm: { - numComponents: 4, - nativeType: Uint32Array, - stride: 4, - sampleType: 'float' - }, - rg11b10ufloat: { - numComponents: 4, - nativeType: Float32Array, - stride: 4, - sampleType: 'float' - }, - // 64-bit formats - rg32uint: { - numComponents: 2, - nativeType: Uint32Array, - stride: 8, - elementSize: 4, - sampleType: 'uint' - }, - rg32sint: { - numComponents: 2, - nativeType: Int32Array, - stride: 8, - elementSize: 4, - sampleType: 'sint' - }, - rg32float: { - numComponents: 2, - nativeType: Float32Array, - stride: 8, - elementSize: 4, - sampleType: 'unfilterable-float' - }, - rgba16uint: { - numComponents: 4, - nativeType: Uint16Array, - stride: 8, - elementSize: 2, - sampleType: 'uint' - }, - rgba16sint: { - numComponents: 4, - nativeType: Int16Array, - stride: 8, - elementSize: 2, - sampleType: 'sint' - }, - rgba16float: { - numComponents: 4, - nativeType: Float32Array, - stride: 8, - elementSize: 2, - sampleType: 'float' - }, - // 128-bit formats - rgba32uint: { - numComponents: 4, - nativeType: Uint32Array, - stride: 16, - elementSize: 4, - sampleType: 'uint' - }, - rgba32sint: { - numComponents: 4, - nativeType: Int32Array, - stride: 16, - elementSize: 4, - sampleType: 'sint' - }, - rgba32float: { - numComponents: 4, - nativeType: Float32Array, - stride: 16, - elementSize: 4, - sampleType: 'unfilterable-float' - }, - // Depth and stencil formats - stencil8: { - numComponents: 1, - nativeType: Uint8Array, - stride: 1, - elementSize: 1, - sampleType: 'uint' - }, - depth16unorm: { - numComponents: 1, - nativeType: Uint16Array, - stride: 2, - elementSize: 2, - sampleType: 'depth' - }, - depth24plus: { - numComponents: 1, - nativeType: Uint32Array, - stride: 4, - elementSize: 3, - sampleType: 'depth' - }, - 'depth24plus-stencil8': { - numComponents: 2, - nativeType: Uint32Array, - stride: 4, - sampleType: 'mixed' - }, - depth32float: { - numComponents: 1, - nativeType: Float32Array, - stride: 4, - elementSize: 4, - sampleType: 'depth' - } -}; -function getDetailsFromTextureFormat(format) { - if (!format || format.length < 6) return 0; - if (format in textureDetails === true) { - return textureDetails[format]; - } - vtkErrorMacro(`unknown format ${format}`); - return null; -} - -// see https://gpuweb.github.io/gpuweb/#enumdef-gpuvertexformat -// for possible formats -function getByteStrideFromBufferFormat(format) { - if (!format || format.length < 5) return 0; - - // options are x2, x3, x4 or nothing - let numComp = 1; - if (format[format.length - 2] === 'x') { - numComp = Number(format[format.length - 1]); - } - const sizeStart = numComp === 1 ? format.length - 1 : format.length - 3; - // options are 8, 16, 32 resulting in 8, 6, 2 as the last char - // plugged into the formula below gives 1, 2, 4 respectively - const num = Number(format[sizeStart]); - if (Number.isNaN(num)) { - vtkErrorMacro(`unknown format ${format}`); - return 0; - } - const typeSize = 5 - num / 2; - return numComp * typeSize; -} - -// see https://gpuweb.github.io/gpuweb/#enumdef-gpuvertexformat -// for possible formats -function getNumberOfComponentsFromBufferFormat(format) { - if (!format || format.length < 5) return 0; - - // options are x2, x3, x4 or nothing - let numComp = 1; - if (format[format.length - 2] === 'x') { - numComp = Number(format[format.length - 1]); - } - return numComp; -} - -// see https://gpuweb.github.io/gpuweb/#enumdef-gpuvertexformat -// for possible formats -function getNativeTypeFromBufferFormat(format) { - if (!format || format.length < 5) return 0; - - // raw types are Uint Int or Float as follows - let result; - if (format[0] === 'f') { - result = 'Float'; - } else if (format[0] === 's') { - result = 'Int'; - } else if (format[0] === 'u') { - result = 'Uint'; - } else { - vtkErrorMacro(`unknown format ${format}`); - return undefined; - } - - // options are 8, 16, 32 resulting in 8, 6, 2 as the last char - // plugged into the formula below gives 1, 2, 4 respectively - const base = format.split('x')[0]; - const num = Number(base[base.length - 1]); - if (Number.isNaN(num)) { - vtkErrorMacro(`unknown format ${format}`); - return undefined; - } - result += 8 * (5 - num / 2); - result += 'Array'; - return result; -} -function getShaderTypeFromBufferFormat(format) { - let dataType; - if (format[0] === 'f' || format[1] === 'n') { - dataType = 'f32'; - } else if (format[0] === 's' && format[1] === 'i') { - dataType = 'i32'; - } else if (format[0] === 'u' && format[1] === 'i') { - dataType = 'u32'; - } else { - vtkErrorMacro(`unknown format ${format}`); - return undefined; - } - - // options are x2, x3, x4 or nothing - let numComp = 1; - if (format[format.length - 2] === 'x') { - numComp = Number(format[format.length - 1]); - } - if (numComp === 4) return `vec4<${dataType}>`; - if (numComp === 3) return `vec3<${dataType}>`; - if (numComp === 2) return `vec2<${dataType}>`; - return dataType; -} -function getByteStrideFromShaderFormat(format) { - if (!format) return 0; - let numComp = 1; - if (format.substring(0, 3) === 'vec') { - numComp = Number(format[3]); - } else if (format.substring(0, 3) === 'mat') { - numComp = format[3] * format[5]; - } - const typeSize = 4; - return numComp * typeSize; -} -function getNativeTypeFromShaderFormat(format) { - if (!format) return undefined; - if (format.includes('f32')) return 'Float32Array'; - if (format.includes('i32')) return 'Int32Array'; - if (format.includes('u32')) return 'Uint32Array'; - vtkErrorMacro(`unknown format ${format}`); - return undefined; -} -var vtkWebGPUTypes = { - getDetailsFromTextureFormat, - getByteStrideFromBufferFormat, - getNumberOfComponentsFromBufferFormat, - getNativeTypeFromBufferFormat, - getShaderTypeFromBufferFormat, - getByteStrideFromShaderFormat, - getNativeTypeFromShaderFormat -}; - -export { vtkWebGPUTypes as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/UniformBuffer.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/UniformBuffer.js deleted file mode 100644 index a182dc53..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/UniformBuffer.js +++ /dev/null @@ -1,339 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkWebGPUBufferManager from './BufferManager.js'; -import vtkWebGPUTypes from './Types.js'; - -const { - BufferUsage -} = vtkWebGPUBufferManager; -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// vtkWebGPUUniformBuffer methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUUniformBuffer(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUUniformBuffer'); - publicAPI.addEntry = (name, type) => { - if (model._bufferEntryNames.has(name)) { - vtkErrorMacro(`entry named ${name} already exists`); - return; - } - model.sortDirty = true; - model._bufferEntryNames.set(name, model.bufferEntries.length); - model.bufferEntries.push({ - name, - type, - sizeInBytes: vtkWebGPUTypes.getByteStrideFromShaderFormat(type), - offset: -1, - nativeType: vtkWebGPUTypes.getNativeTypeFromShaderFormat(type), - packed: false - }); - }; - - // UBOs have layout rules in terms of how memory is aligned so we - // have to be careful how we order the entries. For example a vec4 - // must be aligned on a 16 byte offset, etc. See - // https://gpuweb.github.io/gpuweb/wgsl/#memory-layouts - // for more details. Right now you can create a situation that would fail - // in the future we could add dummy spacer entries where needed to - // handle alignment issues - publicAPI.sortBufferEntries = () => { - if (!model.sortDirty) { - return; - } - let currOffset = 0; - const newEntries = []; - - // compute the max alignment, this is required as WebGPU defines a UBO to have - // a size that is a multiple of the maxAlignment - let maxAlignment = 4; - for (let i = 0; i < model.bufferEntries.length; i++) { - const entry = model.bufferEntries[i]; - if (entry.sizeInBytes % 16 === 0) { - maxAlignment = Math.max(16, maxAlignment); - } - if (entry.sizeInBytes % 8 === 0) { - maxAlignment = Math.max(8, maxAlignment); - } - } - - // pack anything whose size is a multiple of 16 bytes first - // this includes a couple types that don't require 16 byte alignment - // such as mat2x2 but that is OK - for (let i = 0; i < model.bufferEntries.length; i++) { - const entry = model.bufferEntries[i]; - if (entry.packed === false && entry.sizeInBytes % 16 === 0) { - entry.packed = true; - entry.offset = currOffset; - newEntries.push(entry); - currOffset += entry.sizeInBytes; - } - } - - // now it gets tough, we have the following common types (f32, i32, u32) - // - vec2 8 byte size, 8 byte alignment - // - vec3 12 byte size, 16 byte alignment - // - f32 4 byte size, 4 byte alignment - - // try adding 12 byte, 4 byte pairs - for (let i = 0; i < model.bufferEntries.length; i++) { - const entry = model.bufferEntries[i]; - if (entry.packed === false && entry.sizeInBytes === 12) { - for (let i2 = 0; i2 < model.bufferEntries.length; i2++) { - const entry2 = model.bufferEntries[i2]; - if (entry2.packed === false && entry2.sizeInBytes === 4) { - entry.packed = true; - entry.offset = currOffset; - newEntries.push(entry); - currOffset += entry.sizeInBytes; - entry2.packed = true; - entry2.offset = currOffset; - newEntries.push(entry2); - currOffset += entry2.sizeInBytes; - break; - } - } - } - } - - // try adding 8 byte, 8 byte pairs - for (let i = 0; i < model.bufferEntries.length; i++) { - const entry = model.bufferEntries[i]; - if (!entry.packed && entry.sizeInBytes % 8 === 0) { - for (let i2 = i + 1; i2 < model.bufferEntries.length; i2++) { - const entry2 = model.bufferEntries[i2]; - if (!entry2.packed && entry2.sizeInBytes % 8 === 0) { - entry.packed = true; - entry.offset = currOffset; - newEntries.push(entry); - currOffset += entry.sizeInBytes; - entry2.packed = true; - entry2.offset = currOffset; - newEntries.push(entry2); - currOffset += entry2.sizeInBytes; - break; - } - } - } - } - - // try adding 8 byte, 4 byte 4 byte triplets - for (let i = 0; i < model.bufferEntries.length; i++) { - const entry = model.bufferEntries[i]; - if (!entry.packed && entry.sizeInBytes % 8 === 0) { - let found = false; - for (let i2 = 0; !found && i2 < model.bufferEntries.length; i2++) { - const entry2 = model.bufferEntries[i2]; - if (!entry2.packed && entry2.sizeInBytes === 4) { - for (let i3 = i2 + 1; i3 < model.bufferEntries.length; i3++) { - const entry3 = model.bufferEntries[i3]; - if (!entry3.packed && entry3.sizeInBytes === 4) { - entry.packed = true; - entry.offset = currOffset; - newEntries.push(entry); - currOffset += entry.sizeInBytes; - entry2.packed = true; - entry2.offset = currOffset; - newEntries.push(entry2); - currOffset += entry2.sizeInBytes; - entry3.packed = true; - entry3.offset = currOffset; - newEntries.push(entry3); - currOffset += entry3.sizeInBytes; - found = true; - break; - } - } - } - } - } - } - - // Add anything remaining that is larger than 4 bytes and hope we get lucky. - // Likely if there is more than one item added here it will result - // in a failed UBO - for (let i = 0; i < model.bufferEntries.length; i++) { - const entry = model.bufferEntries[i]; - if (!entry.packed && entry.sizeInBytes > 4) { - entry.packed = true; - entry.offset = currOffset; - newEntries.push(entry); - currOffset += entry.sizeInBytes; - } - } - - // finally add remaining 4 byte items - for (let i = 0; i < model.bufferEntries.length; i++) { - const entry = model.bufferEntries[i]; - if (!entry.packed) { - entry.packed = true; - entry.offset = currOffset; - newEntries.push(entry); - currOffset += entry.sizeInBytes; - } - } - - // update entries and entryNames - model.bufferEntries = newEntries; - model._bufferEntryNames.clear(); - for (let i = 0; i < model.bufferEntries.length; i++) { - model._bufferEntryNames.set(model.bufferEntries[i].name, i); - } - model.sizeInBytes = currOffset; - model.sizeInBytes = maxAlignment * Math.ceil(model.sizeInBytes / maxAlignment); - model.sortDirty = false; - }; - publicAPI.sendIfNeeded = device => { - if (!model.UBO) { - const req = { - nativeArray: model.Float32Array, - usage: BufferUsage.UniformArray, - label: model.label - }; - model.UBO = device.getBufferManager().getBuffer(req); - model.bindGroupTime.modified(); - model.sendDirty = false; - } - - // send data down if needed - if (model.sendDirty) { - device.getHandle().queue.writeBuffer(model.UBO.getHandle(), 0, model.arrayBuffer, 0, model.sizeInBytes); - model.sendDirty = false; - } - - // always updated as mappers depend on this time - // it is more of a sentIfNeededTime - model.sendTime.modified(); - }; - publicAPI.createView = type => { - if (type in model === false) { - if (!model.arrayBuffer) { - model.arrayBuffer = new ArrayBuffer(model.sizeInBytes); - } - model[type] = macro.newTypedArray(type, model.arrayBuffer); - } - }; - publicAPI.setValue = (name, val) => { - publicAPI.sortBufferEntries(); - const idx = model._bufferEntryNames.get(name); - if (idx === undefined) { - vtkErrorMacro(`entry named ${name} not found in UBO`); - return; - } - const entry = model.bufferEntries[idx]; - publicAPI.createView(entry.nativeType); - const view = model[entry.nativeType]; - if (entry.lastValue !== val) { - view[entry.offset / view.BYTES_PER_ELEMENT] = val; - model.sendDirty = true; - } - entry.lastValue = val; - }; - publicAPI.setArray = (name, arr) => { - publicAPI.sortBufferEntries(); - const idx = model._bufferEntryNames.get(name); - if (idx === undefined) { - vtkErrorMacro(`entry named ${name} not found in UBO`); - return; - } - const entry = model.bufferEntries[idx]; - publicAPI.createView(entry.nativeType); - const view = model[entry.nativeType]; - let changed = false; - for (let i = 0; i < arr.length; i++) { - if (!entry.lastValue || entry.lastValue[i] !== arr[i]) { - view[entry.offset / view.BYTES_PER_ELEMENT + i] = arr[i]; - changed = true; - } - } - if (changed) { - model.sendDirty = true; - entry.lastValue = [...arr]; - } - }; - publicAPI.getBindGroupEntry = () => { - const foo = { - resource: { - buffer: model.UBO.getHandle() - } - }; - return foo; - }; - publicAPI.getSendTime = () => model.sendTime.getMTime(); - publicAPI.getShaderCode = (binding, group) => { - // sort the entries - publicAPI.sortBufferEntries(); - const lines = [`struct ${model.label}Struct\n{`]; - for (let i = 0; i < model.bufferEntries.length; i++) { - const entry = model.bufferEntries[i]; - lines.push(` ${entry.name}: ${entry.type},`); - } - lines.push(`};\n@binding(${binding}) @group(${group}) var ${model.label}: ${model.label}Struct;`); - return lines.join('\n'); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - bufferEntries: null, - bufferEntryNames: null, - sizeInBytes: 0, - label: null, - bindGroupLayoutEntry: null, - bindGroupEntry: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - - // Internal objects - model._bufferEntryNames = new Map(); - model.bufferEntries = []; - - // default UBO desc - model.bindGroupLayoutEntry = model.bindGroupLayoutEntry || { - buffer: { - type: 'uniform' - } - }; - model.sendTime = {}; - macro.obj(model.sendTime, { - mtime: 0 - }); - model.bindGroupTime = {}; - macro.obj(model.bindGroupTime, { - mtime: 0 - }); - model.sendDirty = true; - model.sortDirty = true; - macro.get(publicAPI, model, ['binding', 'bindGroupTime']); - macro.setGet(publicAPI, model, ['bindGroupLayoutEntry', 'device', 'label', 'sizeInBytes']); - - // Object methods - vtkWebGPUUniformBuffer(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWebGPUUniformBuffer'); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUUniformBuffer$1 = { - newInstance, - extend -}; - -export { vtkWebGPUUniformBuffer$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/VertexInput.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/VertexInput.js deleted file mode 100644 index cdb3c8c9..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/VertexInput.js +++ /dev/null @@ -1,183 +0,0 @@ -import { n as newInstance$1, o as obj, e as setGet } from '../../macros2.js'; -import vtkWebGPUTypes from './Types.js'; - -function arraysEqual(a, b) { - if (a === b) return true; - if (a == null || b == null) return false; - if (a.length !== b.length) return false; - for (let i = 0; i < a.length; ++i) { - if (!b.includes(a[i])) return false; - } - return true; -} - -// ---------------------------------------------------------------------------- -// vtkWebGPUVertexInput methods -// ---------------------------------------------------------------------------- -function vtkWebGPUVertexInput(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUVertexInput'); - publicAPI.addBuffer = function (buffer, inames) { - let stepMode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'vertex'; - let names = inames; - if (!Array.isArray(names)) { - names = [names]; - } - // only add if it is a new setting - for (let i = 0; i < model.inputs.length; i++) { - if (arraysEqual(model.inputs[i].names, names)) { - if (model.inputs[i].buffer === buffer) { - return; - } - model.inputs[i].buffer = buffer; - return; - } - } - - // when adding a new entry, make sure we sort the array - // as the order is important to the shader and must always - // be the same, so alphabetical is an easy option - model.inputs.push({ - buffer, - stepMode, - names - }); - model.inputs = model.inputs.sort((v1, v2) => { - if (v1.names[0] < v2.names[0]) { - return -1; - } - if (v1.names[0] > v2.names[0]) { - return 1; - } - return 0; - }); - }; - publicAPI.removeBufferIfPresent = name => { - for (let i = 0; i < model.inputs.length; i++) { - if (model.inputs[i].names.includes(name)) { - model.inputs.splice(i, 1); - } - } - }; - publicAPI.getBuffer = name => { - for (let i = 0; i < model.inputs.length; i++) { - if (model.inputs[i].names.includes(name)) { - return model.inputs[i].buffer; - } - } - return null; - }; - publicAPI.hasAttribute = name => { - for (let i = 0; i < model.inputs.length; i++) { - if (model.inputs[i].names.includes(name)) { - return true; - } - } - return false; - }; - publicAPI.getAttributeTime = name => { - for (let i = 0; i < model.inputs.length; i++) { - if (model.inputs[i].names.includes(name)) { - return model.inputs[i].buffer.getSourceTime(); - } - } - return 0; - }; - publicAPI.getShaderCode = () => { - let result = ''; - let nameCount = 0; - for (let i = 0; i < model.inputs.length; i++) { - for (let nm = 0; nm < model.inputs[i].names.length; nm++) { - const arrayInfo = model.inputs[i].buffer.getArrayInformation()[nm]; - const type = vtkWebGPUTypes.getShaderTypeFromBufferFormat(arrayInfo.format); - if (nameCount > 0) { - result += ',\n'; - } - result = `${result} @location(${nameCount}) ${model.inputs[i].names[nm]} : ${type}`; - nameCount++; - } - } - return result; - }; - publicAPI.getVertexInputInformation = () => { - const info = {}; - if (model.inputs.length) { - const vertexBuffers = []; - let nameCount = 0; - for (let i = 0; i < model.inputs.length; i++) { - const buf = model.inputs[i].buffer; - const buffer = { - arrayStride: buf.getStrideInBytes(), - stepMode: model.inputs[i].stepMode, - attributes: [] - }; - const arrayInfo = buf.getArrayInformation(); - for (let nm = 0; nm < model.inputs[i].names.length; nm++) { - buffer.attributes.push({ - shaderLocation: nameCount, - offset: arrayInfo[nm].offset, - format: arrayInfo[nm].format - }); - nameCount++; - } - vertexBuffers.push(buffer); - } - info.buffers = vertexBuffers; - } - return info; - }; - publicAPI.bindBuffers = renderEncoder => { - for (let i = 0; i < model.inputs.length; i++) { - renderEncoder.setVertexBuffer(i, model.inputs[i].buffer.getHandle()); - } - if (model.indexBuffer) { - renderEncoder.setIndexBuffer(model.indexBuffer.getHandle(), model.indexBuffer.getArrayInformation()[0].format); - } - }; - publicAPI.getReady = () => {}; - publicAPI.releaseGraphicsResources = () => { - if (model.created) { - model.inputs = []; - model.bindingDescriptions = []; - model.attributeDescriptions = []; - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- -const DEFAULT_VALUES = { - inputs: null, - bindingDescriptions: false, - attributeDescriptions: null, - indexBuffer: null -}; - -// ---------------------------------------------------------------------------- -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - obj(publicAPI, model); - model.bindingDescriptions = []; - model.attributeDescriptions = []; - model.inputs = []; - setGet(publicAPI, model, ['created', 'device', 'handle', 'indexBuffer']); - - // For more macro methods, see "Sources/macros.js" - // Object specific methods - vtkWebGPUVertexInput(publicAPI, model); -} - -// ---------------------------------------------------------------------------- -const newInstance = newInstance$1(extend, 'vtkWebGPUVertexInput'); - -// ---------------------------------------------------------------------------- -var vtkWebGPUVertexInput$1 = { - newInstance, - extend -}; - -export { vtkWebGPUVertexInput$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ViewNodeFactory.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ViewNodeFactory.js deleted file mode 100644 index 4f5f962b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/ViewNodeFactory.js +++ /dev/null @@ -1,51 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkViewNodeFactory from '../SceneGraph/ViewNodeFactory.js'; - -const CLASS_MAPPING = Object.create(null); -function registerOverride(className, fn) { - CLASS_MAPPING[className] = fn; -} - -// ---------------------------------------------------------------------------- -// vtkWebGPUViewNodeFactory methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUViewNodeFactory(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUViewNodeFactory'); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = {}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Static class mapping shared across instances - model.overrides = CLASS_MAPPING; - - // Inheritance - vtkViewNodeFactory.extend(publicAPI, model, initialValues); - - // Object methods - vtkWebGPUViewNodeFactory(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWebGPUViewNodeFactory'); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUViewNodeFactory$1 = { - newInstance, - extend -}; - -export { vtkWebGPUViewNodeFactory$1 as default, extend, newInstance, registerOverride }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Volume.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Volume.js deleted file mode 100644 index d5651494..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/Volume.js +++ /dev/null @@ -1,134 +0,0 @@ -import { mat4 } from 'gl-matrix'; -import { m as macro } from '../../macros2.js'; -import vtkViewNode from '../SceneGraph/ViewNode.js'; -import { registerOverride } from './ViewNodeFactory.js'; - -// ---------------------------------------------------------------------------- -// vtkWebGPUVolume methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUVolume(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUVolume'); - - // Builds myself. - publicAPI.buildPass = prepass => { - if (!model.renderable || !model.renderable.getVisibility()) { - return; - } - if (prepass) { - model.WebGPURenderer = publicAPI.getFirstAncestorOfType('vtkWebGPURenderer'); - model.WebGPURenderWindow = model.WebGPURenderer.getFirstAncestorOfType('vtkWebGPURenderWindow'); - // for the future if we support hardware selection of volumes - if (model.propID === undefined) { - model.propID = model.WebGPURenderWindow.getUniquePropID(); - } - model.renderable.getMapper().update(); - } - }; - publicAPI.queryPass = (prepass, renderPass) => { - if (prepass) { - if (!model.renderable || !model.renderable.getVisibility()) { - return; - } - - // Check for the special case when the mapper's bounds are unknown - const bds = model.renderable.getMapper().getBounds(); - if (!bds || bds.length !== 6 || bds[0] > bds[1]) { - return; - } - renderPass.addVolume(publicAPI); - } - }; - - // used in the method below - const idx = new Float64Array(3); - const vout = new Float64Array(3); - publicAPI.getBoundingCubePoints = (result, offset) => { - const input = model.renderable.getMapper().getInputData(); - if (!input) { - return; - } - const extent = input.getExtent(); - const m = model.renderable.getMatrix(); - let count = 0; - for (let iz = 4; iz < 6; iz++) { - idx[2] = extent[iz]; - for (let iy = 2; iy < 4; iy++) { - idx[1] = extent[iy]; - for (let ix = 0; ix < 2; ix++) { - idx[0] = extent[ix]; - input.indexToWorld(idx, vout); - let poffset = offset + count * 3; - result[poffset++] = m[0] * vout[0] + m[1] * vout[1] + m[2] * vout[2] + m[3]; - result[poffset++] = m[4] * vout[0] + m[5] * vout[1] + m[6] * vout[2] + m[7]; - result[poffset++] = m[8] * vout[0] + m[9] * vout[1] + m[10] * vout[2] + m[11]; - count++; - } - } - } - }; - publicAPI.getKeyMatrices = wgpuRen => { - // has the actor or stabilization center changed? - if (Math.max(model.renderable.getMTime(), wgpuRen.getStabilizedTime()) > model.keyMatricesTime.getMTime()) { - model.renderable.computeMatrix(); - const mcwc = model.renderable.getMatrix(); - - // compute the net shift - const center = wgpuRen.getStabilizedCenterByReference(); - mat4.transpose(model.keyMatrices.bcwc, mcwc); - - // to get to stabilized we also need the center - mat4.translate(model.keyMatrices.bcsc, model.keyMatrices.bcwc, [-center[0], -center[1], -center[2]]); - model.keyMatricesTime.modified(); - } - return model.keyMatrices; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - propID: undefined, - keyMatricesTime: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkViewNode.extend(publicAPI, model, initialValues); - model.keyMatricesTime = {}; - macro.obj(model.keyMatricesTime, { - mtime: 0 - }); - model.keyMatrices = { - bcwc: new Float64Array(16), - bcsc: new Float64Array(16) - }; - macro.get(publicAPI, model, ['propID', 'keyMatricesTime']); - - // Object methods - vtkWebGPUVolume(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWebGPUVolume'); - -// ---------------------------------------------------------------------------- - -var index = { - newInstance, - extend -}; - -// Register ourself to WebGPU backend if imported -registerOverride('vtkVolume', newInstance); - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/VolumePass.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/VolumePass.js deleted file mode 100644 index f653aa2b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/VolumePass.js +++ /dev/null @@ -1,662 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkProperty from '../Core/Property.js'; -import vtkRenderPass from '../SceneGraph/RenderPass.js'; -import vtkWebGPUBufferManager from './BufferManager.js'; -import vtkWebGPUSimpleMapper from './SimpleMapper.js'; -import vtkWebGPURenderEncoder from './RenderEncoder.js'; -import vtkWebGPUShaderCache from './ShaderCache.js'; -import vtkWebGPUTexture from './Texture.js'; -import vtkWebGPUUniformBuffer from './UniformBuffer.js'; -import vtkWebGPUFullScreenQuad from './FullScreenQuad.js'; -import vtkWebGPUVolumePassFSQ from './VolumePassFSQ.js'; -import { f as distance2BetweenPoints } from '../../Common/Core/Math/index.js'; - -const { - Representation -} = vtkProperty; -const { - BufferUsage, - PrimitiveTypes -} = vtkWebGPUBufferManager; - -// The volume rendering pass consists of two sub passes. The first -// (depthRange) renders polygonal cubes for the volumes to compute min and -// max bounds in depth for the image. This is then fed into the second pass -// (final) which actually does the raycasting between those bounds sampling -// the volumes along the way. So the first pass tends to be very fast whicle -// the second is where most of the work is done. - -// given x then y then z ordering -// -// 2-----3 -// / | / | -// 6-----7 | -// | | | | -// | 0-----1 -// |/ |/ -// 4-----5 -// -const cubeFaceTriangles = [[0, 4, 6], [0, 6, 2], [1, 3, 7], [1, 7, 5], [0, 5, 4], [0, 1, 5], [2, 6, 7], [2, 7, 3], [0, 3, 1], [0, 2, 3], [4, 5, 7], [4, 7, 6]]; -const DepthBoundsFS = ` -//VTK::Renderer::Dec - -//VTK::Select::Dec - -//VTK::VolumePass::Dec - -//VTK::TCoord::Dec - -//VTK::RenderEncoder::Dec - -//VTK::Mapper::Dec - -//VTK::IOStructs::Dec - -@fragment -fn main( -//VTK::IOStructs::Input -) -//VTK::IOStructs::Output -{ - var output : fragmentOutput; - - //VTK::Select::Impl - - //VTK::TCoord::Impl - - //VTK::VolumePass::Impl - - // use the maximum (closest) of the current value and the zbuffer - // the blend func will then take the min to find the farthest stop value - var stopval: f32 = max(input.fragPos.z, textureLoad(opaquePassDepthTexture, vec2(i32(input.fragPos.x), i32(input.fragPos.y)), 0)); - - //VTK::RenderEncoder::Impl - return output; -} -`; -const volumeCopyFragTemplate = ` -//VTK::Renderer::Dec - -//VTK::Mapper::Dec - -//VTK::TCoord::Dec - -//VTK::RenderEncoder::Dec - -//VTK::IOStructs::Dec - -@fragment -fn main( -//VTK::IOStructs::Input -) -//VTK::IOStructs::Output -{ - var output: fragmentOutput; - - var computedColor: vec4 = textureSample(volumePassColorTexture, - volumePassColorTextureSampler, mapperUBO.tscale*input.tcoordVS); - - //VTK::RenderEncoder::Impl - return output; -} -`; - -/* eslint-disable no-undef */ -/* eslint-disable no-bitwise */ - -// ---------------------------------------------------------------------------- - -function vtkWebGPUVolumePass(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUVolumePass'); - - // create the required textures, encoders, FSQ etc - publicAPI.initialize = viewNode => { - if (!model._clearEncoder) { - publicAPI.createClearEncoder(viewNode); - } - if (!model._mergeEncoder) { - publicAPI.createMergeEncoder(viewNode); - } - if (!model._copyEncoder) { - publicAPI.createCopyEncoder(viewNode); - } - if (!model._depthRangeEncoder) { - publicAPI.createDepthRangeEncoder(viewNode); - } - if (!model.fullScreenQuad) { - model.fullScreenQuad = vtkWebGPUVolumePassFSQ.newInstance(); - model.fullScreenQuad.setDevice(viewNode.getDevice()); - model.fullScreenQuad.setTextureViews([...model._depthRangeEncoder.getColorTextureViews()]); - } - if (!model._volumeCopyQuad) { - model._volumeCopyQuad = vtkWebGPUFullScreenQuad.newInstance(); - model._volumeCopyQuad.setPipelineHash('volpassfsq'); - model._volumeCopyQuad.setDevice(viewNode.getDevice()); - model._volumeCopyQuad.setFragmentShaderTemplate(volumeCopyFragTemplate); - model._copyUBO = vtkWebGPUUniformBuffer.newInstance({ - label: 'mapperUBO' - }); - model._copyUBO.addEntry('tscale', 'vec2'); - model._volumeCopyQuad.setUBO(model._copyUBO); - model._volumeCopyQuad.setTextureViews([model._colorTextureView]); - } - }; - publicAPI.traverse = (renNode, viewNode) => { - if (model.deleted) { - return; - } - - // we just render our delegates in order - model._currentParent = viewNode; - - // create stuff we need - publicAPI.initialize(viewNode); - - // determine if we are rendering a small size - publicAPI.computeTiming(viewNode); - - // first render the boxes to generate a min max depth - // map for all the volumes - publicAPI.renderDepthBounds(renNode, viewNode); - - // always mark true - model._firstGroup = true; - const device = viewNode.getDevice(); - - // determine how many volumes we can render at a time. We subtract - // 4 because we use know we use textures for min, max, ofun and tfun - const maxVolumes = device.getHandle().limits.maxSampledTexturesPerShaderStage - 4; - - // if we have to make multiple passes then break the volumes up into groups - // rendered from farthest to closest - if (model.volumes.length > maxVolumes) { - const cameraPos = renNode.getRenderable().getActiveCamera().getPosition(); - // sort from back to front based on volume centroid - const distances = []; - for (let v = 0; v < model.volumes.length; v++) { - const bounds = model.volumes[v].getRenderable().getBounds(); - const centroid = [0.5 * (bounds[1] + bounds[0]), 0.5 * (bounds[3] + bounds[2]), 0.5 * (bounds[5] + bounds[4])]; - distances[v] = distance2BetweenPoints(centroid, cameraPos); - } - - // sort by distance - const volumeOrder = [...Array(model.volumes.length).keys()]; - volumeOrder.sort((a, b) => distances[b] - distances[a]); - - // render in chunks back to front - let volumesToRender = []; - // start with smallest chunk so that the last (closest) chunk - // has a full maxVolumes; - let chunkSize = volumeOrder.length % maxVolumes; - for (let v = 0; v < volumeOrder.length; v++) { - volumesToRender.push(model.volumes[volumeOrder[v]]); - if (volumesToRender.length >= chunkSize) { - publicAPI.rayCastPass(viewNode, renNode, volumesToRender); - volumesToRender = []; - chunkSize = maxVolumes; - model._firstGroup = false; - } - } - } else { - // if not rendering in chunks then just draw all of them at once - publicAPI.rayCastPass(viewNode, renNode, model.volumes); - } - - // copy back to the original color buffer - - // final composite - model._volumeCopyQuad.setWebGPURenderer(renNode); - if (model._useSmallViewport) { - const width = model._colorTextureView.getTexture().getWidth(); - const height = model._colorTextureView.getTexture().getHeight(); - model._copyUBO.setArray('tscale', [model._smallViewportWidth / width, model._smallViewportHeight / height]); - } else { - model._copyUBO.setArray('tscale', [1.0, 1.0]); - } - model._copyUBO.sendIfNeeded(device); - model._copyEncoder.setColorTextureView(0, model.colorTextureView); - model._copyEncoder.attachTextureViews(); - model._copyEncoder.begin(viewNode.getCommandEncoder()); - renNode.scissorAndViewport(model._copyEncoder); - model._volumeCopyQuad.prepareAndDraw(model._copyEncoder); - model._copyEncoder.end(); - }; - - // unsubscribe from our listeners - publicAPI.delete = macro.chain(() => { - if (model._animationRateSubscription) { - model._animationRateSubscription.unsubscribe(); - model._animationRateSubscription = null; - } - }, publicAPI.delete); - publicAPI.computeTiming = viewNode => { - const rwi = viewNode.getRenderable().getInteractor(); - if (model._lastScale == null) { - const firstMapper = model.volumes[0].getRenderable().getMapper(); - model._lastScale = firstMapper.getInitialInteractionScale() || 1.0; - } - model._useSmallViewport = false; - if (rwi.isAnimating() && model._lastScale > 1.5) { - model._useSmallViewport = true; - } - model._colorTexture.resize(viewNode.getCanvas().width, viewNode.getCanvas().height); - if (!model._animationRateSubscription) { - // when the animation frame rate changes recompute the scale factor - model._animationRateSubscription = rwi.onAnimationFrameRateUpdate(() => { - const firstMapper = model.volumes[0].getRenderable().getMapper(); - if (firstMapper.getAutoAdjustSampleDistances()) { - const frate = rwi.getRecentAnimationFrameRate(); - const targetScale = model._lastScale * rwi.getDesiredUpdateRate() / frate; - model._lastScale = targetScale; - // clamp scale to some reasonable values. - // Below 1.5 we will just be using full resolution as that is close enough - // Above 400 seems like a lot so we limit to that 1/20th per axis - if (model._lastScale > 400) { - model._lastScale = 400; - } - } else { - model._lastScale = firstMapper.getImageSampleDistance() * firstMapper.getImageSampleDistance(); - } - if (model._lastScale < 1.5) { - model._lastScale = 1.5; - } - }); - } - }; - publicAPI.rayCastPass = (viewNode, renNode, volumes) => { - const encoder = model._firstGroup ? model._clearEncoder : model._mergeEncoder; - encoder.attachTextureViews(); - encoder.begin(viewNode.getCommandEncoder()); - let width = model._colorTextureView.getTexture().getWidth(); - let height = model._colorTextureView.getTexture().getHeight(); - if (model._useSmallViewport) { - const canvas = viewNode.getCanvas(); - const scaleFactor = 1 / Math.sqrt(model._lastScale); - model._smallViewportWidth = Math.ceil(scaleFactor * canvas.width); - model._smallViewportHeight = Math.ceil(scaleFactor * canvas.height); - width = model._smallViewportWidth; - height = model._smallViewportHeight; - } - encoder.getHandle().setViewport(0, 0, width, height, 0.0, 1.0); - // set scissor - encoder.getHandle().setScissorRect(0, 0, width, height); - model.fullScreenQuad.setWebGPURenderer(renNode); - model.fullScreenQuad.setVolumes(volumes); - model.fullScreenQuad.prepareAndDraw(encoder); - encoder.end(); - }; - publicAPI.renderDepthBounds = (renNode, viewNode) => { - publicAPI.updateDepthPolyData(renNode); - const pd = model._boundsPoly; - const points = pd.getPoints(); - const cells = pd.getPolys(); - let buffRequest = { - hash: `vp${cells.getMTime()}`, - usage: BufferUsage.Index, - cells, - numberOfPoints: points.getNumberOfPoints(), - primitiveType: PrimitiveTypes.Triangles, - representation: Representation.SURFACE - }; - const indexBuffer = viewNode.getDevice().getBufferManager().getBuffer(buffRequest); - model._mapper.getVertexInput().setIndexBuffer(indexBuffer); - - // points - buffRequest = { - usage: BufferUsage.PointArray, - format: 'float32x4', - hash: `vp${points.getMTime()}${cells.getMTime()}`, - dataArray: points, - indexBuffer, - packExtra: true - }; - const buff = viewNode.getDevice().getBufferManager().getBuffer(buffRequest); - model._mapper.getVertexInput().addBuffer(buff, ['vertexBC']); - model._mapper.setNumberOfVertices(buff.getSizeInBytes() / buff.getStrideInBytes()); - publicAPI.drawDepthRange(renNode, viewNode); - }; - publicAPI.updateDepthPolyData = renNode => { - // check mtimes first - let update = false; - for (let i = 0; i < model.volumes.length; i++) { - const mtime = model.volumes[i].getMTime(); - if (!model._lastMTimes[i] || mtime !== model._lastMTimes[i]) { - update = true; - model._lastMTimes[i] = mtime; - } - } - - // also check stabilized time - const stime = renNode.getStabilizedTime(); - if (model._lastMTimes.length <= model.volumes.length || stime !== model._lastMTimes[model.volumes.length]) { - update = true; - model._lastMTimes[model.volumes.length] = stime; - } - - // if no need to update then return - if (!update) { - return; - } - - // rebuild - const center = renNode.getStabilizedCenterByReference(); - const numPts = model.volumes.length * 8; - const points = new Float64Array(numPts * 3); - const numTris = model.volumes.length * 12; - const polys = new Uint16Array(numTris * 4); - - // add points and cells - for (let i = 0; i < model.volumes.length; i++) { - model.volumes[i].getBoundingCubePoints(points, i * 24); - let cellIdx = i * 12 * 4; - const offset = i * 8; - for (let t = 0; t < 12; t++) { - polys[cellIdx++] = 3; - polys[cellIdx++] = offset + cubeFaceTriangles[t][0]; - polys[cellIdx++] = offset + cubeFaceTriangles[t][1]; - polys[cellIdx++] = offset + cubeFaceTriangles[t][2]; - } - } - for (let p = 0; p < points.length; p += 3) { - points[p] -= center[0]; - points[p + 1] -= center[1]; - points[p + 2] -= center[2]; - } - model._boundsPoly.getPoints().setData(points, 3); - model._boundsPoly.getPoints().modified(); - model._boundsPoly.getPolys().setData(polys, 1); - model._boundsPoly.getPolys().modified(); - model._boundsPoly.modified(); - }; - publicAPI.drawDepthRange = (renNode, viewNode) => { - // copy current depth buffer to - model._depthRangeTexture.resizeToMatch(model.colorTextureView.getTexture()); - model._depthRangeTexture2.resizeToMatch(model.colorTextureView.getTexture()); - model._depthRangeEncoder.attachTextureViews(); - publicAPI.setCurrentOperation('volumeDepthRangePass'); - renNode.setRenderEncoder(model._depthRangeEncoder); - renNode.volumeDepthRangePass(true); - model._mapper.setWebGPURenderer(renNode); - model._mapper.prepareToDraw(model._depthRangeEncoder); - model._mapper.registerDrawCallback(model._depthRangeEncoder); - renNode.volumeDepthRangePass(false); - }; - publicAPI.createDepthRangeEncoder = viewNode => { - const device = viewNode.getDevice(); - model._depthRangeEncoder = vtkWebGPURenderEncoder.newInstance({ - label: 'VolumePass DepthRange' - }); - model._depthRangeEncoder.setPipelineHash('volr'); - model._depthRangeEncoder.setReplaceShaderCodeFunction(pipeline => { - const fDesc = pipeline.getShaderDescription('fragment'); - fDesc.addOutput('vec4', 'outColor1'); - fDesc.addOutput('vec4', 'outColor2'); - let code = fDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::RenderEncoder::Impl', ['output.outColor1 = vec4(input.fragPos.z, 0.0, 0.0, 0.0);', 'output.outColor2 = vec4(stopval, 0.0, 0.0, 0.0);']).result; - fDesc.setCode(code); - }); - model._depthRangeEncoder.setDescription({ - colorAttachments: [{ - view: null, - clearValue: [0.0, 0.0, 0.0, 0.0], - loadOp: 'clear', - storeOp: 'store' - }, { - view: null, - clearValue: [1.0, 1.0, 1.0, 1.0], - loadOp: 'clear', - storeOp: 'store' - }] - }); - model._depthRangeEncoder.setPipelineSettings({ - primitive: { - cullMode: 'none' - }, - fragment: { - targets: [{ - format: 'r16float', - blend: { - color: { - srcFactor: 'one', - dstFactor: 'one', - operation: 'max' - }, - alpha: { - srcFactor: 'one', - dstFactor: 'one', - operation: 'max' - } - } - }, { - format: 'r16float', - blend: { - color: { - srcFactor: 'one', - dstFactor: 'one', - operation: 'min' - }, - alpha: { - srcFactor: 'one', - dstFactor: 'one', - operation: 'min' - } - } - }] - } - }); - - // and the textures it needs - model._depthRangeTexture = vtkWebGPUTexture.newInstance({ - label: 'volumePassMaxDepth' - }); - model._depthRangeTexture.create(device, { - width: viewNode.getCanvas().width, - height: viewNode.getCanvas().height, - format: 'r16float', - usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.TEXTURE_BINDING - }); - const maxView = model._depthRangeTexture.createView('maxTexture'); - model._depthRangeEncoder.setColorTextureView(0, maxView); - model._depthRangeTexture2 = vtkWebGPUTexture.newInstance({ - label: 'volumePassDepthMin' - }); - model._depthRangeTexture2.create(device, { - width: viewNode.getCanvas().width, - height: viewNode.getCanvas().height, - format: 'r16float', - usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.TEXTURE_BINDING - }); - const minView = model._depthRangeTexture2.createView('minTexture'); - model._depthRangeEncoder.setColorTextureView(1, minView); - model._mapper.setDevice(viewNode.getDevice()); - model._mapper.setTextureViews([model.depthTextureView]); - }; - publicAPI.createClearEncoder = viewNode => { - model._colorTexture = vtkWebGPUTexture.newInstance({ - label: 'volumePassColor' - }); - model._colorTexture.create(viewNode.getDevice(), { - width: viewNode.getCanvas().width, - height: viewNode.getCanvas().height, - format: 'bgra8unorm', - /* eslint-disable no-undef */ - /* eslint-disable no-bitwise */ - usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.COPY_SRC - }); - model._colorTextureView = model._colorTexture.createView('volumePassColorTexture'); - model._colorTextureView.addSampler(viewNode.getDevice(), { - minFilter: 'linear', - magFilter: 'linear' - }); - model._clearEncoder = vtkWebGPURenderEncoder.newInstance({ - label: 'VolumePass Clear' - }); - model._clearEncoder.setColorTextureView(0, model._colorTextureView); - model._clearEncoder.setDescription({ - colorAttachments: [{ - view: null, - clearValue: [0.0, 0.0, 0.0, 0.0], - loadOp: 'clear', - storeOp: 'store' - }] - }); - model._clearEncoder.setPipelineHash('volpf'); - model._clearEncoder.setPipelineSettings({ - primitive: { - cullMode: 'none' - }, - fragment: { - targets: [{ - format: 'bgra8unorm', - blend: { - color: { - srcFactor: 'src-alpha', - dstFactor: 'one-minus-src-alpha' - }, - alpha: { - srcFactor: 'one', - dstFactor: 'one-minus-src-alpha' - } - } - }] - } - }); - }; - publicAPI.createCopyEncoder = viewNode => { - model._copyEncoder = vtkWebGPURenderEncoder.newInstance({ - label: 'volumePassCopy' - }); - model._copyEncoder.setDescription({ - colorAttachments: [{ - view: null, - loadOp: 'load', - storeOp: 'store' - }] - }); - model._copyEncoder.setPipelineHash('volcopypf'); - model._copyEncoder.setPipelineSettings({ - primitive: { - cullMode: 'none' - }, - fragment: { - targets: [{ - format: 'rgba16float', - blend: { - color: { - srcFactor: 'one', - dstFactor: 'one-minus-src-alpha' - }, - alpha: { - srcFactor: 'one', - dstFactor: 'one-minus-src-alpha' - } - } - }] - } - }); - }; - publicAPI.createMergeEncoder = viewNode => { - model._mergeEncoder = vtkWebGPURenderEncoder.newInstance({ - label: 'volumePassMerge' - }); - model._mergeEncoder.setColorTextureView(0, model._colorTextureView); - model._mergeEncoder.setDescription({ - colorAttachments: [{ - view: null, - loadOp: 'load', - storeOp: 'store' - }] - }); - model._mergeEncoder.setReplaceShaderCodeFunction(pipeline => { - const fDesc = pipeline.getShaderDescription('fragment'); - fDesc.addOutput('vec4', 'outColor'); - let code = fDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::RenderEncoder::Impl', ['output.outColor = vec4(computedColor.rgb, computedColor.a);']).result; - fDesc.setCode(code); - }); - model._mergeEncoder.setPipelineHash('volpf'); - model._mergeEncoder.setPipelineSettings({ - primitive: { - cullMode: 'none' - }, - fragment: { - targets: [{ - format: 'bgra8unorm', - blend: { - color: { - srcFactor: 'src-alpha', - dstFactor: 'one-minus-src-alpha' - }, - alpha: { - srcFactor: 'one', - dstFactor: 'one-minus-src-alpha' - } - } - }] - } - }); - }; - - // marks modified when needed - publicAPI.setVolumes = val => { - if (!model.volumes || model.volumes.length !== val.length) { - model.volumes = [...val]; - publicAPI.modified(); - return; - } - for (let i = 0; i < val.length; i++) { - if (val[i] !== model.volumes[i]) { - model.volumes = [...val]; - publicAPI.modified(); - return; - } - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - colorTextureView: null, - depthTextureView: null, - volumes: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Build VTK API - vtkRenderPass.extend(publicAPI, model, initialValues); - model._mapper = vtkWebGPUSimpleMapper.newInstance(); - model._mapper.setFragmentShaderTemplate(DepthBoundsFS); - model._mapper.getShaderReplacements().set('replaceShaderVolumePass', (hash, pipeline, vertexInput) => { - const fDesc = pipeline.getShaderDescription('fragment'); - fDesc.addBuiltinInput('vec4', '@builtin(position) fragPos'); - }); - model._boundsPoly = vtkPolyData.newInstance(); - model._lastMTimes = []; - macro.setGet(publicAPI, model, ['colorTextureView', 'depthTextureView']); - - // Object methods - vtkWebGPUVolumePass(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWebGPUVolumePass'); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUVolumePass$1 = { - newInstance, - extend -}; - -export { vtkWebGPUVolumePass$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/VolumePassFSQ.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/VolumePassFSQ.js deleted file mode 100644 index 4975e759..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebGPU/VolumePassFSQ.js +++ /dev/null @@ -1,884 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { mat4 } from 'gl-matrix'; -import vtkWebGPUFullScreenQuad from './FullScreenQuad.js'; -import vtkWebGPUUniformBuffer from './UniformBuffer.js'; -import vtkWebGPUShaderCache from './ShaderCache.js'; -import vtkWebGPUStorageBuffer from './StorageBuffer.js'; -import vtkWebGPUSampler from './Sampler.js'; -import vtkWebGPUTypes from './Types.js'; -import { BlendMode } from '../Core/VolumeMapper/Constants.js'; - -const volFragTemplate = ` -//VTK::Renderer::Dec - -//VTK::Mapper::Dec - -//VTK::TCoord::Dec - -//VTK::Volume::TraverseDec - -//VTK::RenderEncoder::Dec - -//VTK::IOStructs::Dec - -fn getTextureValue(vTex: texture_3d, tpos: vec4) -> f32 -{ - // todo multicomponent support - return textureSampleLevel(vTex, clampSampler, tpos.xyz, 0.0).r; -} - -fn getGradient(vTex: texture_3d, tpos: vec4, vNum: i32, scalar: f32) -> vec4 -{ - var result: vec4; - - var tstep: vec4 = volumeSSBO.values[vNum].tstep; - result.x = getTextureValue(vTex, tpos + vec4(tstep.x, 0.0, 0.0, 1.0)) - scalar; - result.y = getTextureValue(vTex, tpos + vec4(0.0, tstep.y, 0.0, 1.0)) - scalar; - result.z = getTextureValue(vTex, tpos + vec4(0.0, 0.0, tstep.z, 1.0)) - scalar; - result.w = 0.0; - - // divide by spacing as that is our delta - result = result / volumeSSBO.values[vNum].spacing; - // now we have a gradient in unit tcoords - - var grad: f32 = length(result.xyz); - if (grad > 0.0) - { - // rotate to View Coords, needed for lighting and shading - var nMat: mat4x4 = rendererUBO.SCVCMatrix * volumeSSBO.values[vNum].planeNormals; - result = nMat * result; - result = result / length(result); - } - - // store gradient magnitude in .w - result.w = grad; - - return result; -} - -fn processVolume(vTex: texture_3d, vNum: i32, cNum: i32, posSC: vec4, tfunRows: f32) -> vec4 -{ - var outColor: vec4 = vec4(0.0, 0.0, 0.0, 0.0); - - // convert to tcoords and reject if outside the volume - var tpos: vec4 = volumeSSBO.values[vNum].SCTCMatrix*posSC; - if (tpos.x < 0.0 || tpos.y < 0.0 || tpos.z < 0.0 || - tpos.x > 1.0 || tpos.y > 1.0 || tpos.z > 1.0) { return outColor; } - - var scalar: f32 = getTextureValue(vTex, tpos); - - var coord: vec2 = - vec2(scalar * componentSSBO.values[cNum].cScale + componentSSBO.values[cNum].cShift, - (0.5 + 2.0 * f32(vNum)) / tfunRows); - var color: vec4 = textureSampleLevel(tfunTexture, clampSampler, coord, 0.0); - - var gofactor: f32 = 1.0; - var normal: vec4 = vec4(0.0,0.0,0.0,0.0); - if (componentSSBO.values[cNum].gomin < 1.0 || volumeSSBO.values[vNum].shade[0] > 0.0) - { - normal = getGradient(vTex, tpos, vNum, scalar); - if (componentSSBO.values[cNum].gomin < 1.0) - { - gofactor = clamp(normal.a*componentSSBO.values[cNum].goScale + componentSSBO.values[cNum].goShift, - componentSSBO.values[cNum].gomin, componentSSBO.values[cNum].gomax); - } - } - - coord.x = (scalar * componentSSBO.values[cNum].oScale + componentSSBO.values[cNum].oShift); - var opacity: f32 = textureSampleLevel(ofunTexture, clampSampler, coord, 0.0).r; - - if (volumeSSBO.values[vNum].shade[0] > 0.0) - { - color = color*abs(normal.z); - } - - outColor = vec4(color.rgb, gofactor * opacity); - - return outColor; -} - -// adjust the start and end point of a raycast such that it intersects the unit cube. -// This function is used to take a raycast starting point and step vector -// and numSteps and return the startijng and ending steps for intersecting the -// unit cube. Recall for a 3D texture, the unit cube is the range of texture coordsinates -// that have valid values. So this funtion can be used to take a ray in texture coordinates -// and bound it to intersecting the texture. -// -fn adjustBounds(tpos: vec4, tstep: vec4, numSteps: f32) -> vec2 -{ - var result: vec2 = vec2(0.0, numSteps); - var tpos2: vec4 = tpos + tstep*numSteps; - - // move tpos to the start of the volume - var adjust: f32 = - min( - max(tpos.x/tstep.x, (tpos.x - 1.0)/tstep.x), - min( - max((tpos.y - 1.0)/tstep.y, tpos.y/tstep.y), - max((tpos.z - 1.0)/tstep.z, tpos.z/tstep.z))); - if (adjust < 0.0) - { - result.x = result.x - adjust; - } - - // adjust length to the end - adjust = - max( - min(tpos2.x/tstep.x, (tpos2.x - 1.0)/tstep.x), - max( - min((tpos2.y - 1.0)/tstep.y, tpos2.y/tstep.y), - min((tpos2.z - 1.0)/tstep.z, tpos2.z/tstep.z))); - if (adjust > 0.0) - { - result.y = result.y - adjust; - } - - return result; -} - -fn getSimpleColor(scalar: f32, vNum: i32, cNum: i32) -> vec4 -{ - // how many rows (tfuns) do we have in our tfunTexture - var tfunRows: f32 = f32(textureDimensions(tfunTexture).y); - - var coord: vec2 = - vec2(scalar * componentSSBO.values[cNum].cScale + componentSSBO.values[cNum].cShift, - (0.5 + 2.0 * f32(vNum)) / tfunRows); - var color: vec4 = textureSampleLevel(tfunTexture, clampSampler, coord, 0.0); - coord.x = (scalar * componentSSBO.values[cNum].oScale + componentSSBO.values[cNum].oShift); - var opacity: f32 = textureSampleLevel(ofunTexture, clampSampler, coord, 0.0).r; - return vec4(color.rgb, opacity); -} - -fn traverseMax(vTex: texture_3d, vNum: i32, cNum: i32, rayLengthSC: f32, minPosSC: vec4, rayStepSC: vec4) -{ - // convert to tcoords and reject if outside the volume - var numSteps: f32 = rayLengthSC/mapperUBO.SampleDistance; - var tpos: vec4 = volumeSSBO.values[vNum].SCTCMatrix*minPosSC; - var tpos2: vec4 = volumeSSBO.values[vNum].SCTCMatrix*(minPosSC + rayStepSC); - var tstep: vec4 = tpos2 - tpos; - - var rayBounds: vec2 = adjustBounds(tpos, tstep, numSteps); - - // did we hit anything - if (rayBounds.x >= rayBounds.y) - { - traverseVals[vNum] = vec4(0.0,0.0,0.0,0.0); - return; - } - - tpos = tpos + tstep*rayBounds.x; - var curDist: f32 = rayBounds.x; - var maxVal: f32 = -1.0e37; - loop - { - var scalar: f32 = getTextureValue(vTex, tpos); - if (scalar > maxVal) - { - maxVal = scalar; - } - - // increment position - curDist = curDist + 1.0; - tpos = tpos + tstep; - - // check if we have reached a terminating condition - if (curDist > rayBounds.y) { break; } - } - - // process to get the color and opacity - traverseVals[vNum] = getSimpleColor(maxVal, vNum, cNum); -} - -fn traverseMin(vTex: texture_3d, vNum: i32, cNum: i32, rayLengthSC: f32, minPosSC: vec4, rayStepSC: vec4) -{ - // convert to tcoords and reject if outside the volume - var numSteps: f32 = rayLengthSC/mapperUBO.SampleDistance; - var tpos: vec4 = volumeSSBO.values[vNum].SCTCMatrix*minPosSC; - var tpos2: vec4 = volumeSSBO.values[vNum].SCTCMatrix*(minPosSC + rayStepSC); - var tstep: vec4 = tpos2 - tpos; - - var rayBounds: vec2 = adjustBounds(tpos, tstep, numSteps); - - // did we hit anything - if (rayBounds.x >= rayBounds.y) - { - traverseVals[vNum] = vec4(0.0,0.0,0.0,0.0); - return; - } - - tpos = tpos + tstep*rayBounds.x; - var curDist: f32 = rayBounds.x; - var minVal: f32 = 1.0e37; - loop - { - var scalar: f32 = getTextureValue(vTex, tpos); - if (scalar < minVal) - { - minVal = scalar; - } - - // increment position - curDist = curDist + 1.0; - tpos = tpos + tstep; - - // check if we have reached a terminating condition - if (curDist > rayBounds.y) { break; } - } - - // process to get the color and opacity - traverseVals[vNum] = getSimpleColor(minVal, vNum, cNum); -} - -fn traverseAverage(vTex: texture_3d, vNum: i32, cNum: i32, rayLengthSC: f32, minPosSC: vec4, rayStepSC: vec4) -{ - // convert to tcoords and reject if outside the volume - var numSteps: f32 = rayLengthSC/mapperUBO.SampleDistance; - var tpos: vec4 = volumeSSBO.values[vNum].SCTCMatrix*minPosSC; - var tpos2: vec4 = volumeSSBO.values[vNum].SCTCMatrix*(minPosSC + rayStepSC); - var tstep: vec4 = tpos2 - tpos; - - var rayBounds: vec2 = adjustBounds(tpos, tstep, numSteps); - - // did we hit anything - if (rayBounds.x >= rayBounds.y) - { - traverseVals[vNum] = vec4(0.0,0.0,0.0,0.0); - return; - } - - let ipRange: vec4 = volumeSSBO.values[vNum].ipScalarRange; - tpos = tpos + tstep*rayBounds.x; - var curDist: f32 = rayBounds.x; - var avgVal: f32 = 0.0; - var sampleCount: f32 = 0.0; - loop - { - var sample: f32 = getTextureValue(vTex, tpos); - // right now leave filtering off until WebGL changes get merged - // if (ipRange.z == 0.0 || sample >= ipRange.x && sample <= ipRange.y) - // { - avgVal = avgVal + sample; - sampleCount = sampleCount + 1.0; - // } - - // increment position - curDist = curDist + 1.0; - tpos = tpos + tstep; - - // check if we have reached a terminating condition - if (curDist > rayBounds.y) { break; } - } - - if (sampleCount <= 0.0) - { - traverseVals[vNum] = vec4(0.0,0.0,0.0,0.0); - } - - // process to get the color and opacity - traverseVals[vNum] = getSimpleColor(avgVal/sampleCount, vNum, cNum); -} - -fn traverseAdditive(vTex: texture_3d, vNum: i32, cNum: i32, rayLengthSC: f32, minPosSC: vec4, rayStepSC: vec4) -{ - // convert to tcoords and reject if outside the volume - var numSteps: f32 = rayLengthSC/mapperUBO.SampleDistance; - var tpos: vec4 = volumeSSBO.values[vNum].SCTCMatrix*minPosSC; - var tpos2: vec4 = volumeSSBO.values[vNum].SCTCMatrix*(minPosSC + rayStepSC); - var tstep: vec4 = tpos2 - tpos; - - var rayBounds: vec2 = adjustBounds(tpos, tstep, numSteps); - - // did we hit anything - if (rayBounds.x >= rayBounds.y) - { - traverseVals[vNum] = vec4(0.0,0.0,0.0,0.0); - return; - } - - let ipRange: vec4 = volumeSSBO.values[vNum].ipScalarRange; - tpos = tpos + tstep*rayBounds.x; - var curDist: f32 = rayBounds.x; - var sumVal: f32 = 0.0; - loop - { - var sample: f32 = getTextureValue(vTex, tpos); - // right now leave filtering off until WebGL changes get merged - // if (ipRange.z == 0.0 || sample >= ipRange.x && sample <= ipRange.y) - // { - sumVal = sumVal + sample; - // } - - // increment position - curDist = curDist + 1.0; - tpos = tpos + tstep; - - // check if we have reached a terminating condition - if (curDist > rayBounds.y) { break; } - } - - // process to get the color and opacity - traverseVals[vNum] = getSimpleColor(sumVal, vNum, cNum); -} - -fn composite(rayLengthSC: f32, minPosSC: vec4, rayStepSC: vec4) -> vec4 -{ - // initial ray position is at the beginning - var rayPosSC: vec4 = minPosSC; - - // how many rows (tfuns) do we have in our tfunTexture - var tfunRows: f32 = f32(textureDimensions(tfunTexture).y); - - var curDist: f32 = 0.0; - var computedColor: vec4 = vec4(0.0, 0.0, 0.0, 0.0); - var sampleColor: vec4; -//VTK::Volume::TraverseCalls - - loop - { - // for each volume, sample and accumulate color -//VTK::Volume::CompositeCalls - - // increment position - curDist = curDist + mapperUBO.SampleDistance; - rayPosSC = rayPosSC + rayStepSC; - - // check if we have reached a terminating condition - if (curDist > rayLengthSC) { break; } - if (computedColor.a > 0.98) { break; } - } - return computedColor; -} - -@fragment -fn main( -//VTK::IOStructs::Input -) -//VTK::IOStructs::Output -{ - var output: fragmentOutput; - - var rayMax: f32 = textureSampleLevel(maxTexture, clampSampler, input.tcoordVS, 0.0).r; - var rayMin: f32 = textureSampleLevel(minTexture, clampSampler, input.tcoordVS, 0.0).r; - - // discard empty rays - if (rayMax <= rayMin) { discard; } - else - { - // compute start and end ray positions in view coordinates - var minPosSC: vec4 = rendererUBO.PCSCMatrix*vec4(2.0 * input.tcoordVS.x - 1.0, 1.0 - 2.0 * input.tcoordVS.y, rayMax, 1.0); - minPosSC = minPosSC * (1.0 / minPosSC.w); - var maxPosSC: vec4 = rendererUBO.PCSCMatrix*vec4(2.0 * input.tcoordVS.x - 1.0, 1.0 - 2.0 * input.tcoordVS.y, rayMin, 1.0); - maxPosSC = maxPosSC * (1.0 / maxPosSC.w); - - var rayLengthSC: f32 = distance(minPosSC.xyz, maxPosSC.xyz); - var rayStepSC: vec4 = (maxPosSC - minPosSC)*(mapperUBO.SampleDistance/rayLengthSC); - rayStepSC.w = 0.0; - - var computedColor: vec4; - -//VTK::Volume::Loop - -//VTK::RenderEncoder::Impl - } - - return output; -} -`; -const tmpMat4 = new Float64Array(16); -const tmp2Mat4 = new Float64Array(16); - -// ---------------------------------------------------------------------------- -// vtkWebGPUVolumePassFSQ methods -// ---------------------------------------------------------------------------- - -function vtkWebGPUVolumePassFSQ(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebGPUVolumePassFSQ'); - publicAPI.replaceShaderPosition = (hash, pipeline, vertexInput) => { - const vDesc = pipeline.getShaderDescription('vertex'); - vDesc.addBuiltinOutput('vec4', '@builtin(position) Position'); - let code = vDesc.getCode(); - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Position::Impl', ['output.tcoordVS = vec2(vertexBC.x * 0.5 + 0.5, 1.0 - vertexBC.y * 0.5 - 0.5);', 'output.Position = vec4(vertexBC, 1.0);']).result; - vDesc.setCode(code); - const fDesc = pipeline.getShaderDescription('fragment'); - fDesc.addBuiltinInput('vec4', '@builtin(position) fragPos'); - }; - model.shaderReplacements.set('replaceShaderPosition', publicAPI.replaceShaderPosition); - publicAPI.replaceShaderVolume = (hash, pipeline, vertexInput) => { - const fDesc = pipeline.getShaderDescription('fragment'); - let code = fDesc.getCode(); - const compositeCalls = []; - const traverseCalls = []; - for (let i = 0; i < model.volumes.length; i++) { - // todo pass rowPos - const blendMode = model.volumes[i].getRenderable().getMapper().getBlendMode(); - if (blendMode === BlendMode.COMPOSITE_BLEND) { - compositeCalls.push(` sampleColor = processVolume(volTexture${i}, ${i}, ${model.rowStarts[i]}, rayPosSC, tfunRows);`); - compositeCalls.push(` computedColor = vec4( - sampleColor.a * sampleColor.rgb * (1.0 - computedColor.a) + computedColor.rgb, - (1.0 - computedColor.a)*sampleColor.a + computedColor.a);`); - } else { - traverseCalls.push(` sampleColor = traverseVals[${i}];`); - traverseCalls.push(` computedColor = vec4( - sampleColor.a * sampleColor.rgb * (1.0 - computedColor.a) + computedColor.rgb, - (1.0 - computedColor.a)*sampleColor.a + computedColor.a);`); - } - } - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Volume::CompositeCalls', compositeCalls).result; - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Volume::TraverseCalls', traverseCalls).result; - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Volume::TraverseDec', [`var traverseVals: array,${model.volumes.length}>;`]).result; - - // call the full and partial methods as needed - let compositeWhileTraversing = false; - for (let vidx = 0; vidx < model.volumes.length; vidx++) { - const blendMode = model.volumes[vidx].getRenderable().getMapper().getBlendMode(); - if (blendMode === BlendMode.COMPOSITE_BLEND) { - compositeWhileTraversing = true; - } else if (blendMode === BlendMode.MAXIMUM_INTENSITY_BLEND) { - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Volume::Loop', [` traverseMax(volTexture${vidx}, ${vidx}, ${vidx}, rayLengthSC, minPosSC, rayStepSC);`, ` computedColor = traverseVals[${vidx}];`, '//VTK::Volume::Loop']).result; - } else if (blendMode === BlendMode.MINIMUM_INTENSITY_BLEND) { - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Volume::Loop', [` traverseMin(volTexture${vidx}, ${vidx}, ${vidx}, rayLengthSC, minPosSC, rayStepSC);`, ` computedColor = traverseVals[${vidx}];`, '//VTK::Volume::Loop']).result; - } else if (blendMode === BlendMode.AVERAGE_INTENSITY_BLEND) { - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Volume::Loop', [` traverseAverage(volTexture${vidx}, ${vidx}, ${vidx}, rayLengthSC, minPosSC, rayStepSC);`, ` computedColor = traverseVals[${vidx}];`, '//VTK::Volume::Loop']).result; - } else if (blendMode === BlendMode.ADDITIVE_INTENSITY_BLEND) { - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Volume::Loop', [` traverseAdditive(volTexture${vidx}, ${vidx}, ${vidx}, rayLengthSC, minPosSC, rayStepSC);`, ` computedColor = traverseVals[${vidx}];`, '//VTK::Volume::Loop']).result; - } - } - if (compositeWhileTraversing) { - code = vtkWebGPUShaderCache.substitute(code, '//VTK::Volume::Loop', [' computedColor = composite(rayLengthSC, minPosSC, rayStepSC);']).result; - } - fDesc.setCode(code); - }; - model.shaderReplacements.set('replaceShaderVolume', publicAPI.replaceShaderVolume); - publicAPI.updateLUTImage = device => { - // depends on - // - volumes array (length and values) - mtime - // - tfun arrays - renderable/property mtime - - let mtime = publicAPI.getMTime(); - for (let i = 0; i < model.volumes.length; i++) { - const vol = model.volumes[i].getRenderable(); - const image = vol.getMapper().getInputData(); - mtime = Math.max(mtime, vol.getMTime(), image.getMTime()); - } - if (mtime < model.lutBuildTime.getMTime()) { - return; - } - - // first determine how large the image should be - model.numRows = 0; - model.rowStarts = []; - for (let vidx = 0; vidx < model.volumes.length; vidx++) { - model.rowStarts.push(model.numRows); - const webgpuvol = model.volumes[vidx]; - const actor = webgpuvol.getRenderable(); - const volMapr = actor.getMapper(); - const vprop = actor.getProperty(); - const image = volMapr.getInputData(); - const scalars = image.getPointData() && image.getPointData().getScalars(); - const numComp = scalars.getNumberOfComponents(); - const iComps = vprop.getIndependentComponents(); - const numIComps = iComps ? numComp : 1; - model.numRows += numIComps; - } - - // allocate the image array - const colorArray = new Uint8ClampedArray(model.numRows * 2 * model.rowLength * 4); - const opacityArray = new Float32Array(model.numRows * 2 * model.rowLength); - let imgRow = 0; - const tmpTable = new Float32Array(model.rowLength * 3); - const rowLength = model.rowLength; - for (let vidx = 0; vidx < model.volumes.length; vidx++) { - const webgpuvol = model.volumes[vidx]; - const actor = webgpuvol.getRenderable(); - const volMapr = actor.getMapper(); - const vprop = actor.getProperty(); - const image = volMapr.getInputData(); - const scalars = image.getPointData() && image.getPointData().getScalars(); - const numComp = scalars.getNumberOfComponents(); - const iComps = vprop.getIndependentComponents(); - const numIComps = iComps ? numComp : 1; - for (let c = 0; c < numIComps; ++c) { - const cfun = vprop.getRGBTransferFunction(c); - const cRange = cfun.getRange(); - cfun.getTable(cRange[0], cRange[1], rowLength, tmpTable, 1); - let ioffset = imgRow * rowLength * 4; - for (let i = 0; i < rowLength; ++i) { - colorArray[ioffset + i * 4] = 255.0 * tmpTable[i * 3]; - colorArray[ioffset + i * 4 + 1] = 255.0 * tmpTable[i * 3 + 1]; - colorArray[ioffset + i * 4 + 2] = 255.0 * tmpTable[i * 3 + 2]; - colorArray[ioffset + i * 4 + 3] = 255.0; - for (let co = 0; co < 4; co++) { - colorArray[ioffset + (rowLength + i) * 4 + co] = colorArray[ioffset + i * 4 + co]; - } - } - const ofun = vprop.getScalarOpacity(c); - const opacityFactor = model.sampleDist / vprop.getScalarOpacityUnitDistance(c); - const oRange = ofun.getRange(); - ofun.getTable(oRange[0], oRange[1], rowLength, tmpTable, 1); - // adjust for sample distance etc - ioffset = imgRow * rowLength; - for (let i = 0; i < rowLength; ++i) { - opacityArray[ioffset + i] = 1.0 - (1.0 - tmpTable[i]) ** opacityFactor; - opacityArray[ioffset + i + rowLength] = opacityArray[ioffset + i]; - } - imgRow += 2; - } - } - { - const treq = { - nativeArray: colorArray, - width: model.rowLength, - height: model.numRows * 2, - depth: 1, - format: 'rgba8unorm' - }; - const newTex = device.getTextureManager().getTexture(treq); - const tview = newTex.createView('tfunTexture'); - model.textureViews[2] = tview; - } - { - const treq = { - nativeArray: opacityArray, - width: model.rowLength, - height: model.numRows * 2, - depth: 1, - format: 'r16float' - }; - const newTex = device.getTextureManager().getTexture(treq); - const tview = newTex.createView('ofunTexture'); - model.textureViews[3] = tview; - } - model.lutBuildTime.modified(); - }; - publicAPI.updateSSBO = device => { - // if any of - // - color or opacity tfun ranges changed - volume Mtime - // - any volume matrix changed - volume MTime - // - stabilized center changed - ren.stabilizedMTime - // - any volume's input data worldtoindex or dimensions changed - input's mtime - // - let mtime = Math.max(publicAPI.getMTime(), model.WebGPURenderer.getStabilizedTime()); - for (let i = 0; i < model.volumes.length; i++) { - const vol = model.volumes[i].getRenderable(); - const volMapr = vol.getMapper(); - const image = volMapr.getInputData(); - mtime = Math.max(mtime, vol.getMTime(), image.getMTime(), volMapr.getMTime()); - } - if (mtime < model.SSBO.getSendTime()) { - return; - } - - // create the volumeSBBO - const center = model.WebGPURenderer.getStabilizedCenterByReference(); - model.SSBO.clearData(); - model.SSBO.setNumberOfInstances(model.volumes.length); - - // create SCTC matrices SC -> world -> model -> index -> tcoord - // - // when doing coord conversions from A to C recall - // the order is mat4.mult(AtoC, BtoC, AtoB); - // - const marray = new Float64Array(model.volumes.length * 16); - const vPlaneArray = new Float64Array(model.volumes.length * 16); - const tstepArray = new Float64Array(model.volumes.length * 4); - const shadeArray = new Float64Array(model.volumes.length * 4); - const spacingArray = new Float64Array(model.volumes.length * 4); - const ipScalarRangeArray = new Float64Array(model.volumes.length * 4); - for (let vidx = 0; vidx < model.volumes.length; vidx++) { - const webgpuvol = model.volumes[vidx]; - const actor = webgpuvol.getRenderable(); - const volMapr = actor.getMapper(); - const image = volMapr.getInputData(); - mat4.identity(tmpMat4); - mat4.translate(tmpMat4, tmpMat4, center); - // tmpMat4 is now SC->World - - const mcwcmat = actor.getMatrix(); - mat4.transpose(tmp2Mat4, mcwcmat); - mat4.invert(tmp2Mat4, tmp2Mat4); - // tmp2Mat4 is now world to model - - mat4.multiply(tmpMat4, tmp2Mat4, tmpMat4); - // tmp4Mat is now SC->Model - - // the method on the data is world to index but the volume is in - // model coordinates so really in this context it is model to index - const modelToIndex = image.getWorldToIndex(); - mat4.multiply(tmpMat4, modelToIndex, tmpMat4); - // tmpMat4 is now SC -> Index - - const dims = image.getDimensions(); - mat4.identity(tmp2Mat4); - mat4.scale(tmp2Mat4, tmp2Mat4, [1.0 / dims[0], 1.0 / dims[1], 1.0 / dims[2]]); - mat4.multiply(tmpMat4, tmp2Mat4, tmpMat4); - // tmpMat4 is now SC -> Tcoord - - for (let j = 0; j < 16; j++) { - marray[vidx * 16 + j] = tmpMat4[j]; - } - mat4.invert(tmpMat4, tmpMat4); - // now it is Tcoord To SC - - for (let j = 0; j < 4; j++) { - vPlaneArray[vidx * 16 + j * 4] = tmpMat4[j * 4]; - vPlaneArray[vidx * 16 + j * 4 + 1] = tmpMat4[j * 4 + 1]; - vPlaneArray[vidx * 16 + j * 4 + 2] = tmpMat4[j * 4 + 2]; - vPlaneArray[vidx * 16 + j * 4 + 3] = 0.0; - } - tstepArray[vidx * 4] = 1.0 / dims[0]; - tstepArray[vidx * 4 + 1] = 1.0 / dims[1]; - tstepArray[vidx * 4 + 2] = 1.0 / dims[2]; - tstepArray[vidx * 4 + 3] = 1.0; - shadeArray[vidx * 4] = actor.getProperty().getShade() ? 1.0 : 0.0; - const spacing = image.getSpacing(); - spacingArray[vidx * 4] = spacing[0]; - spacingArray[vidx * 4 + 1] = spacing[1]; - spacingArray[vidx * 4 + 2] = spacing[2]; - spacingArray[vidx * 4 + 3] = 1.0; - - // handle filteringMode - const tScale = model.textureViews[vidx + 4].getTexture().getScale(); - const ipScalarRange = actor.getProperty().getIpScalarRange(); - ipScalarRangeArray[vidx * 4] = ipScalarRange[0] / tScale; - ipScalarRangeArray[vidx * 4 + 1] = ipScalarRange[1] / tScale; - ipScalarRangeArray[vidx * 4 + 2] = actor.getProperty().getFilterMode(); - } - model.SSBO.addEntry('SCTCMatrix', 'mat4x4'); - model.SSBO.addEntry('planeNormals', 'mat4x4'); - model.SSBO.addEntry('shade', 'vec4'); - model.SSBO.addEntry('tstep', 'vec4'); - model.SSBO.addEntry('spacing', 'vec4'); - model.SSBO.addEntry('ipScalarRange', 'vec4'); - model.SSBO.setAllInstancesFromArray('SCTCMatrix', marray); - model.SSBO.setAllInstancesFromArray('planeNormals', vPlaneArray); - model.SSBO.setAllInstancesFromArray('shade', shadeArray); - model.SSBO.setAllInstancesFromArray('tstep', tstepArray); - model.SSBO.setAllInstancesFromArray('spacing', spacingArray); - model.SSBO.setAllInstancesFromArray('ipScalarRange', ipScalarRangeArray); - model.SSBO.send(device); - - // now create the componentSSBO - model.componentSSBO.clearData(); - model.componentSSBO.setNumberOfInstances(model.numRows); - const cScaleArray = new Float64Array(model.numRows); - const cShiftArray = new Float64Array(model.numRows); - const oScaleArray = new Float64Array(model.numRows); - const oShiftArray = new Float64Array(model.numRows); - const gominArray = new Float64Array(model.numRows); - const gomaxArray = new Float64Array(model.numRows); - const goshiftArray = new Float64Array(model.numRows); - const goscaleArray = new Float64Array(model.numRows); - let rowIdx = 0; - for (let vidx = 0; vidx < model.volumes.length; vidx++) { - const webgpuvol = model.volumes[vidx]; - const actor = webgpuvol.getRenderable(); - const volMapr = actor.getMapper(); - const vprop = actor.getProperty(); - const image = volMapr.getInputData(); - const scalars = image.getPointData() && image.getPointData().getScalars(); - const numComp = scalars.getNumberOfComponents(); - const iComps = vprop.getIndependentComponents(); - // const numIComps = iComps ? numComp : 1; - - // half float? - const tformat = model.textureViews[vidx + 4].getTexture().getFormat(); - const tDetails = vtkWebGPUTypes.getDetailsFromTextureFormat(tformat); - const halfFloat = tDetails.elementSize === 2 && tDetails.sampleType === 'float'; - const volInfo = { - scale: [255.0], - offset: [0.0] - }; - if (halfFloat) { - volInfo.scale[0] = 1.0; - } - - // three levels of shift scale combined into one - // for performance in the fragment shader - for (let compIdx = 0; compIdx < numComp; compIdx++) { - const target = iComps ? compIdx : 0; - const sscale = volInfo.scale[compIdx]; - const ofun = vprop.getScalarOpacity(target); - const oRange = ofun.getRange(); - const oscale = sscale / (oRange[1] - oRange[0]); - const oshift = (volInfo.offset[compIdx] - oRange[0]) / (oRange[1] - oRange[0]); - oShiftArray[rowIdx] = oshift; - oScaleArray[rowIdx] = oscale; - const cfun = vprop.getRGBTransferFunction(target); - const cRange = cfun.getRange(); - cShiftArray[rowIdx] = (volInfo.offset[compIdx] - cRange[0]) / (cRange[1] - cRange[0]); - cScaleArray[rowIdx] = sscale / (cRange[1] - cRange[0]); - - // todo sscale for dependent should be based off of the A channel? - // not target (which is 0 in that case) - const useGO = vprop.getUseGradientOpacity(target); - if (useGO) { - const gomin = vprop.getGradientOpacityMinimumOpacity(target); - const gomax = vprop.getGradientOpacityMaximumOpacity(target); - gominArray[rowIdx] = gomin; - gomaxArray[rowIdx] = gomax; - const goRange = [vprop.getGradientOpacityMinimumValue(target), vprop.getGradientOpacityMaximumValue(target)]; - goscaleArray[rowIdx] = sscale * (gomax - gomin) / (goRange[1] - goRange[0]); - goshiftArray[rowIdx] = -goRange[0] * (gomax - gomin) / (goRange[1] - goRange[0]) + gomin; - } else { - gominArray[rowIdx] = 1.0; - gomaxArray[rowIdx] = 1.0; - goscaleArray[rowIdx] = 0.0; - goshiftArray[rowIdx] = 1.0; - } - rowIdx++; - } - } - model.componentSSBO.addEntry('cScale', 'f32'); - model.componentSSBO.addEntry('cShift', 'f32'); - model.componentSSBO.addEntry('oScale', 'f32'); - model.componentSSBO.addEntry('oShift', 'f32'); - model.componentSSBO.addEntry('goShift', 'f32'); - model.componentSSBO.addEntry('goScale', 'f32'); - model.componentSSBO.addEntry('gomin', 'f32'); - model.componentSSBO.addEntry('gomax', 'f32'); - model.componentSSBO.setAllInstancesFromArray('cScale', cScaleArray); - model.componentSSBO.setAllInstancesFromArray('cShift', cShiftArray); - model.componentSSBO.setAllInstancesFromArray('oScale', oScaleArray); - model.componentSSBO.setAllInstancesFromArray('oShift', oShiftArray); - model.componentSSBO.setAllInstancesFromArray('goScale', goscaleArray); - model.componentSSBO.setAllInstancesFromArray('goShift', goshiftArray); - model.componentSSBO.setAllInstancesFromArray('gomin', gominArray); - model.componentSSBO.setAllInstancesFromArray('gomax', gomaxArray); - model.componentSSBO.send(device); - }; - const superClassUpdateBuffers = publicAPI.updateBuffers; - publicAPI.updateBuffers = () => { - superClassUpdateBuffers(); - // compute the min step size - let sampleDist = model.volumes[0].getRenderable().getMapper().getSampleDistance(); - for (let i = 0; i < model.volumes.length; i++) { - const vol = model.volumes[i]; - const volMapr = vol.getRenderable().getMapper(); - const sd = volMapr.getSampleDistance(); - if (sd < sampleDist) { - sampleDist = sd; - } - } - if (model.sampleDist !== sampleDist) { - model.sampleDist = sampleDist; - model.UBO.setValue('SampleDistance', sampleDist); - model.UBO.sendIfNeeded(model.device); - } - - // add in 3d volume textures - for (let vidx = 0; vidx < model.volumes.length; vidx++) { - const webgpuvol = model.volumes[vidx]; - const actor = webgpuvol.getRenderable(); - const volMapr = actor.getMapper(); - const image = volMapr.getInputData(); - const newTex = model.device.getTextureManager().getTextureForImageData(image); - if (!model.textureViews[vidx + 4] || model.textureViews[vidx + 4].getTexture() !== newTex) { - const tview = newTex.createView(`volTexture${vidx}`); - model.textureViews[vidx + 4] = tview; - } - } - - // clear any old leftovers - if (model.volumes.length < model.lastVolumeLength) { - // we may have gaps in the array right now so no splice - for (let i = model.volumes.length; i < model.lastVolumeLength; i++) { - model.textureViews.pop(); - } - } - model.lastVolumeLength = model.volumes.length; - publicAPI.updateLUTImage(model.device); - publicAPI.updateSSBO(model.device); - if (!model.clampSampler) { - model.clampSampler = vtkWebGPUSampler.newInstance({ - label: 'clampSampler' - }); - model.clampSampler.create(model.device, { - minFilter: 'linear', - magFilter: 'linear' - }); - } - }; - publicAPI.computePipelineHash = () => { - model.pipelineHash = 'volfsq'; - for (let vidx = 0; vidx < model.volumes.length; vidx++) { - const blendMode = model.volumes[vidx].getRenderable().getMapper().getBlendMode(); - model.pipelineHash += `${blendMode}`; - } - }; - - // marks modified when needed - publicAPI.setVolumes = val => { - if (!model.volumes || model.volumes.length !== val.length) { - model.volumes = [...val]; - publicAPI.modified(); - return; - } - for (let i = 0; i < val.length; i++) { - if (val[i] !== model.volumes[i]) { - model.volumes = [...val]; - publicAPI.modified(); - return; - } - } - }; - const superclassGetBindables = publicAPI.getBindables; - publicAPI.getBindables = () => { - const bindables = superclassGetBindables(); - bindables.push(model.componentSSBO); - bindables.push(model.clampSampler); - return bindables; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - volumes: null, - rowLength: 1024, - lastVolumeLength: 0 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - - // Inheritance - vtkWebGPUFullScreenQuad.extend(publicAPI, model, initialValues); - model.fragmentShaderTemplate = volFragTemplate; - model.UBO = vtkWebGPUUniformBuffer.newInstance({ - label: 'mapperUBO' - }); - model.UBO.addEntry('SampleDistance', 'f32'); - model.SSBO = vtkWebGPUStorageBuffer.newInstance({ - label: 'volumeSSBO' - }); - model.componentSSBO = vtkWebGPUStorageBuffer.newInstance({ - label: 'componentSSBO' - }); - model.lutBuildTime = {}; - macro.obj(model.lutBuildTime, { - mtime: 0 - }); - - // Object methods - vtkWebGPUVolumePassFSQ(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWebGPUVolumePassFSQ'); - -// ---------------------------------------------------------------------------- - -var vtkWebGPUVolumePassFSQ$1 = { - newInstance, - extend -}; - -export { vtkWebGPUVolumePassFSQ$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebXR.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebXR.js deleted file mode 100644 index 9b232f08..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebXR.js +++ /dev/null @@ -1,7 +0,0 @@ -import vtkRenderWindowHelper from './WebXR/RenderWindowHelper.js'; - -var WebXR = { - vtkRenderWindowHelper -}; - -export { WebXR as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebXR/RenderWindowHelper.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebXR/RenderWindowHelper.d.ts deleted file mode 100644 index 57b0dfe5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebXR/RenderWindowHelper.d.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { Nullable } from './../../types'; -import vtkOpenGLRenderWindow from './../OpenGL/RenderWindow'; - -/** - * - */ -export interface IWebXRRenderWindowHelperInitialValues { - initialized: boolean; - initCanvasSize?: [number, number]; - initBackground?: [number, number, number, number]; - renderWindow?: Nullable; - xrSession?: Nullable; - xrSessionType: number; - xrReferenceSpace?: any; -} - -export interface vtkWebXRRenderWindowHelper extends vtkObject { - /** - * Initialize the instance. - */ - initialize(): void; - - /** - * Request an XR session on the user device with WebXR, - * typically in response to a user request such as a button press. - */ - startXR(xrSessionType: Number): void; - - /** - * When an XR session is available, set up the XRWebGLLayer - * and request the first animation frame for the device - */ - enterXR(): void; - - /** - * Adjust world-to-physical parameters for different viewing modalities - * - * @param {Number} inputRescaleFactor - * @param {Number} inputTranslateZ - */ - resetXRScene(inputRescaleFactor: number, inputTranslateZ: number): void; - - /** - * Request to stop the current XR session - */ - stopXR(): void; - - /** - * Get the underlying render window to drive XR rendering. - */ - getRenderWindow(): Nullable; - - /** - * Set the underlying render window to drive XR rendering. - */ - setRenderWindow(renderWindow: Nullable); - - /** - * Get the active WebXR session. - */ - getXrSession(): Nullable; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkWebXRRenderWindowHelper characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IWebXRRenderWindowHelperInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IWebXRRenderWindowHelperInitialValues -): void; - -/** - * Method used to create a new instance of vtkWebXRRenderWindowHelper. - * @param {IWebXRRenderWindowHelperInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IWebXRRenderWindowHelperInitialValues -): vtkWebXRRenderWindowHelper; - -/** - * WebXR rendering helper - * - * vtkWebXRRenderWindowHelper is designed to wrap a vtkRenderWindow for XR rendering. - */ -export declare const vtkWebXRRenderWindowHelper: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkWebXRRenderWindowHelper; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebXR/RenderWindowHelper.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebXR/RenderWindowHelper.js deleted file mode 100644 index 8ee07378..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebXR/RenderWindowHelper.js +++ /dev/null @@ -1,307 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import Constants from './RenderWindowHelper/Constants.js'; -import vtkActor from '../Core/Actor.js'; -import vtkLineSource from '../../Filters/Sources/LineSource.js'; -import vtkMapper from '../Core/Mapper.js'; -import { GET_UNDERLYING_CONTEXT } from '../OpenGL/RenderWindow/ContextProxy.js'; -import { vec3 } from 'gl-matrix'; - -const { - XrSessionTypes -} = Constants; -const DEFAULT_RESET_FACTORS = { - rescaleFactor: 0.25, - // isotropic scale factor reduces apparent size of objects - translateZ: -1.5 // default translation initializes object in front of camera -}; - -function createRay() { - const targetRayLineSource = vtkLineSource.newInstance(); - const targetRayMapper = vtkMapper.newInstance(); - targetRayMapper.setInputConnection(targetRayLineSource.getOutputPort()); - const targetRayActor = vtkActor.newInstance(); - targetRayActor.getProperty().setColor(1, 0, 0); - targetRayActor.getProperty().setLineWidth(5); - targetRayActor.setMapper(targetRayMapper); - targetRayActor.setPickable(false); - return { - lineSource: targetRayLineSource, - mapper: targetRayMapper, - actor: targetRayActor, - visible: false - }; -} - -// ---------------------------------------------------------------------------- -// vtkWebXRRenderWindowHelper methods -// ---------------------------------------------------------------------------- - -function vtkWebXRRenderWindowHelper(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWebXRRenderWindowHelper'); - publicAPI.initialize = renderWindow => { - if (!model.initialized) { - model.renderWindow = renderWindow; - model.initialized = true; - } - }; - publicAPI.getXrSupported = () => navigator.xr !== undefined; - - // Request an XR session on the user device with WebXR, - // typically in response to a user request such as a button press - publicAPI.startXR = xrSessionType => { - if (navigator.xr === undefined) { - throw new Error('WebXR is not available'); - } - model.xrSessionType = xrSessionType !== undefined ? xrSessionType : XrSessionTypes.HmdVR; - const isXrSessionAR = [XrSessionTypes.HmdAR, XrSessionTypes.MobileAR].includes(model.xrSessionType); - const sessionType = isXrSessionAR ? 'immersive-ar' : 'immersive-vr'; - if (!navigator.xr.isSessionSupported(sessionType)) { - if (isXrSessionAR) { - throw new Error('Device does not support AR session'); - } else { - throw new Error('VR display is not available'); - } - } - if (model.xrSession === null) { - navigator.xr.requestSession(sessionType).then(publicAPI.enterXR, () => { - throw new Error('Failed to create XR session!'); - }); - } else { - throw new Error('XR Session already exists!'); - } - }; - - // When an XR session is available, set up the XRWebGLLayer - // and request the first animation frame for the device - publicAPI.enterXR = async xrSession => { - model.xrSession = xrSession; - model.initCanvasSize = model.renderWindow.getSize(); - if (model.xrSession !== null) { - const gl = model.renderWindow.get3DContext(); - await gl.makeXRCompatible(); - - // XRWebGLLayer definition is deferred to here to give any WebXR polyfill - // an opportunity to override this definition. - const { - XRWebGLLayer - } = window; - const glLayer = new XRWebGLLayer(model.xrSession, - // constructor needs unproxied context - gl[GET_UNDERLYING_CONTEXT]()); - model.renderWindow.setSize(glLayer.framebufferWidth, glLayer.framebufferHeight); - model.xrSession.updateRenderState({ - baseLayer: glLayer - }); - model.xrSession.requestReferenceSpace('local').then(refSpace => { - model.xrReferenceSpace = refSpace; - }); - - // Initialize transparent background for augmented reality session - const isXrSessionAR = [XrSessionTypes.HmdAR, XrSessionTypes.MobileAR].includes(model.xrSessionType); - if (isXrSessionAR) { - const ren = model.renderWindow.getRenderable().getRenderers()[0]; - model.initBackground = ren.getBackground(); - ren.setBackground([0, 0, 0, 0]); - } - publicAPI.resetXRScene(); - model.renderWindow.getRenderable().getInteractor().switchToXRAnimation(); - model.xrSceneFrame = model.xrSession.requestAnimationFrame(model.xrRender); - publicAPI.modified(); - } else { - throw new Error('Failed to enter XR with a null xrSession.'); - } - }; - publicAPI.resetXRScene = function () { - let rescaleFactor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_RESET_FACTORS.rescaleFactor; - let translateZ = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_RESET_FACTORS.translateZ; - // Adjust world-to-physical parameters for different modalities - - const ren = model.renderWindow.getRenderable().getRenderers()[0]; - ren.resetCamera(); - const camera = ren.getActiveCamera(); - let physicalScale = camera.getPhysicalScale(); - const physicalTranslation = camera.getPhysicalTranslation(); - const rescaledTranslateZ = translateZ * physicalScale; - physicalScale /= rescaleFactor; - physicalTranslation[2] += rescaledTranslateZ; - camera.setPhysicalScale(physicalScale); - camera.setPhysicalTranslation(physicalTranslation); - // Clip at 0.1m, 100.0m in physical space by default - camera.setClippingRange(0.1 * physicalScale, 100.0 * physicalScale); - }; - publicAPI.stopXR = async () => { - if (navigator.xr === undefined) { - // WebXR polyfill not available so nothing to do - return; - } - if (model.xrSession !== null) { - model.xrSession.cancelAnimationFrame(model.xrSceneFrame); - model.renderWindow.getRenderable().getInteractor().returnFromXRAnimation(); - const gl = model.renderWindow.get3DContext(); - gl.bindFramebuffer(gl.FRAMEBUFFER, null); - - // Remove controllers ray - const ren = model.renderWindow.getRenderable().getRenderers()[0]; - model.xrSession.inputSources.forEach(inputSource => { - if (model.inputSourceToRay[inputSource.handedness]) { - ren.removeActor(model.inputSourceToRay[inputSource.handedness].actor); - model.inputSourceToRay[inputSource.handedness].visible = false; - } - }); - await model.xrSession.end().catch(error => { - if (!(error instanceof DOMException)) { - throw error; - } - }); - model.xrSession = null; - } - if (model.initCanvasSize !== null) { - model.renderWindow.setSize(...model.initCanvasSize); - } - - // Reset to default canvas - const ren = model.renderWindow.getRenderable().getRenderers()[0]; - if (model.initBackground != null) { - ren.setBackground(model.initBackground); - model.initBackground = null; - } - ren.getActiveCamera().setProjectionMatrix(null); - ren.resetCamera(); - ren.setViewport(0.0, 0, 1.0, 1.0); - model.renderWindow.traverseAllPasses(); - publicAPI.modified(); - }; - model.xrRender = async (t, frame) => { - const xrSession = frame.session; - const isXrSessionHMD = [XrSessionTypes.HmdVR, XrSessionTypes.HmdAR].includes(model.xrSessionType); - if (isXrSessionHMD && model.drawControllersRay && model.xrReferenceSpace) { - const renderer = model.renderWindow.getRenderable().getRenderers()[0]; - const camera = renderer.getActiveCamera(); - const physicalToWorldMatrix = []; - camera.getPhysicalToWorldMatrix(physicalToWorldMatrix); - xrSession.inputSources.forEach(inputSource => { - if (inputSource.targetRaySpace == null || inputSource.gripSpace == null || inputSource.targetRayMode !== 'tracked-pointer') { - return; - } - if (model.inputSourceToRay[inputSource.handedness] == null) { - model.inputSourceToRay[inputSource.handedness] = createRay(); - } - const ray = model.inputSourceToRay[inputSource.handedness]; - const targetRayPose = frame.getPose(inputSource.targetRaySpace, model.xrReferenceSpace); - if (targetRayPose == null) { - return; - } - const targetRayPosition = vec3.fromValues(targetRayPose.transform.position.x, targetRayPose.transform.position.y, targetRayPose.transform.position.z); - const dir = camera.physicalOrientationToWorldDirection([targetRayPose.transform.orientation.x, targetRayPose.transform.orientation.y, targetRayPose.transform.orientation.z, targetRayPose.transform.orientation.w]); - const targetRayWorldPosition = vec3.transformMat4([], targetRayPosition, physicalToWorldMatrix); - const dist = renderer.getActiveCamera().getClippingRange()[1]; - if (!ray.visible) { - renderer.addActor(ray.actor); - ray.visible = true; - } - ray.lineSource.setPoint1(targetRayWorldPosition[0] - dir[0] * dist, targetRayWorldPosition[1] - dir[1] * dist, targetRayWorldPosition[2] - dir[2] * dist); - ray.lineSource.setPoint2(...targetRayWorldPosition); - }); - model.renderWindow.render(); - } - model.renderWindow.getRenderable().getInteractor().updateXRGamepads(xrSession, frame, model.xrReferenceSpace); - model.xrSceneFrame = model.xrSession.requestAnimationFrame(model.xrRender); - const xrPose = frame.getViewerPose(model.xrReferenceSpace); - if (xrPose) { - const gl = model.renderWindow.get3DContext(); - if (model.xrSessionType === XrSessionTypes.MobileAR && model.initCanvasSize !== null) { - gl.canvas.width = model.initCanvasSize[0]; - gl.canvas.height = model.initCanvasSize[1]; - } - const glLayer = xrSession.renderState.baseLayer; - gl.bindFramebuffer(gl.FRAMEBUFFER, glLayer.framebuffer); - gl.clear(gl.COLOR_BUFFER_BIT); - gl.clear(gl.DEPTH_BUFFER_BIT); - model.renderWindow.setSize(glLayer.framebufferWidth, glLayer.framebufferHeight); - - // get the first renderer - const ren = model.renderWindow.getRenderable().getRenderers()[0]; - - // Do a render pass for each eye - xrPose.views.forEach((view, index) => { - const viewport = glLayer.getViewport(view); - if (isXrSessionHMD) { - if (view.eye === 'left') { - ren.setViewport(0, 0, 0.5, 1.0); - } else if (view.eye === 'right') { - ren.setViewport(0.5, 0, 1.0, 1.0); - } else { - // No handling for non-eye viewport - return; - } - } else if (model.xrSessionType === XrSessionTypes.LookingGlassVR) { - const startX = viewport.x / glLayer.framebufferWidth; - const startY = viewport.y / glLayer.framebufferHeight; - const endX = (viewport.x + viewport.width) / glLayer.framebufferWidth; - const endY = (viewport.y + viewport.height) / glLayer.framebufferHeight; - ren.setViewport(startX, startY, endX, endY); - } else { - ren.setViewport(0, 0, 1, 1); - } - ren.getActiveCamera().computeViewParametersFromPhysicalMatrix(view.transform.inverse.matrix); - ren.getActiveCamera().setProjectionMatrix(view.projectionMatrix); - model.renderWindow.traverseAllPasses(); - }); - - // Reset scissorbox before any subsequent rendering to external displays - // on frame end, such as rendering to a Looking Glass display. - gl.scissor(0, 0, glLayer.framebufferWidth, glLayer.framebufferHeight); - gl.disable(gl.SCISSOR_TEST); - } - }; - publicAPI.delete = macro.chain(publicAPI.delete); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function defaultValues() { - return { - initialized: false, - drawControllersRay: false, - inputSourceToRay: {}, - initCanvasSize: null, - initBackground: null, - renderWindow: null, - xrSession: null, - xrSessionType: 0, - xrReferenceSpace: null - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(), initialValues); - - // Build VTK API - macro.obj(publicAPI, model); - macro.event(publicAPI, model, 'event'); - macro.get(publicAPI, model, ['xrSession']); - macro.setGet(publicAPI, model, ['renderWindow', 'drawControllersRay']); - - // Object methods - vtkWebXRRenderWindowHelper(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWebXRRenderWindowHelper'); - -// ---------------------------------------------------------------------------- - -var vtkRenderWindowHelper = { - newInstance, - extend, - ...Constants -}; - -export { vtkRenderWindowHelper as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebXR/RenderWindowHelper/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebXR/RenderWindowHelper/Constants.d.ts deleted file mode 100644 index 6008787f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebXR/RenderWindowHelper/Constants.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export declare enum XrSessionTypes { - HmdVR = 0, - MobileAR = 1, - LookingGlassVR = 2, - HmdAR = 3, -} - -declare const _default: { - XrSessionTypes: typeof XrSessionTypes; -}; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebXR/RenderWindowHelper/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebXR/RenderWindowHelper/Constants.js deleted file mode 100644 index 20d7091e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/WebXR/RenderWindowHelper/Constants.js +++ /dev/null @@ -1,14 +0,0 @@ -const XrSessionTypes = { - HmdVR: 0, - // Head-mounted display (HMD), two-camera virtual reality session - MobileAR: 1, - // Mobile device, single-camera augmented reality session - LookingGlassVR: 2, - // Looking Glass hologram display, N-camera virtual reality session - HmdAR: 3 -}; -var Constants = { - XrSessionTypes -}; - -export { XrSessionTypes, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/index.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/index.js deleted file mode 100644 index 0cb5fb13..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Rendering/index.js +++ /dev/null @@ -1,17 +0,0 @@ -import Core from './Core.js'; -import Misc from './Misc.js'; -import OpenGL from './OpenGL.js'; -import SceneGraph from './SceneGraph.js'; -import WebGPU from './WebGPU.js'; -import WebXR from './WebXR.js'; - -var Rendering = { - Core, - Misc, - OpenGL, - SceneGraph, - WebGPU, - WebXR -}; - -export { Rendering as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/DataGenerator/convert-cli.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/DataGenerator/convert-cli.js deleted file mode 100755 index b5d3bf30..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/DataGenerator/convert-cli.js +++ /dev/null @@ -1,90 +0,0 @@ -#! /usr/bin/env node - -var fs = require('fs'); -var { program } = require('commander'); -var shell = require('shelljs'); -var path = require('path'); -var paraview = process.env.PARAVIEW_HOME; - -program.version('1.0.0') - .option('-i, --input [file.vtk]', 'Input data file to convert') - .option('-o, --output [directory]', 'Destination directory\n') - .option('-m, --merge', 'Merge dataset') - .option('-e, --extract-surface', 'Extract surface\n') - .option('--paraview [path]', 'Provide the ParaView root path to use') - .option('--sample-data [path]', 'Convert sample data from ParaViewData\n') - .parse(process.argv); - -const options = program.opts(); - -// ---------------------------------------------------------------------------- -// Need argument otherwise print help/usage -// ---------------------------------------------------------------------------- - -// Try to find a paraview directory inside /Applications or /opt -const pvPossibleBasePath = []; -['/Applications', '/opt', '/usr/local/opt/'].forEach(function (directoryPath) { - shell.ls(directoryPath).forEach(function (fileName) { - if (fileName.toLowerCase().indexOf('paraview') !== -1) { - pvPossibleBasePath.push(path.join(directoryPath, fileName)); - } - }); -}); - -if(!paraview) { - paraview = []; - [options.paraview].concat(pvPossibleBasePath).forEach(function(directory){ - try { - if(fs.statSync(directory).isDirectory()) { - paraview.push(directory); - } - } catch(err) { - // skip - } - }); -} - -if (!process.argv.slice(2).length || !options.help || paraview.length === 0) { - program.outputHelp(); - process.exit(0); -} - -var pvPythonExecs = shell.find(paraview).filter(function(file) { return file.match(/pvpython$/) || file.match(/pvpython.exe$/); }); -if(pvPythonExecs.length < 1) { - console.log('Could not find pvpython in your ParaView HOME directory ($PARAVIEW_HOME)'); - program.outputHelp(); -} else if (options.sampleData) { - console.log('Extract sample datasets'); - const cmdLineSample = [ - pvPythonExecs[0], '-dr', - path.normalize(path.join(__dirname, 'vtk-data-converter.py')), - '--sample-data', options.sampleData, - '--output', path.normalize(path.join(__dirname, '../../Data')),, - ]; - console.log('\n==============================================================================='); - console.log('| Execute:'); - console.log('| $', cmdLineSample.join('\n|\t')); - console.log('===============================================================================\n'); - shell.exec(cmdLineSample.join(' ')); -} else { - const cmdLine = [ - pvPythonExecs[0], '-dr', - path.normalize(path.join(__dirname, 'vtk-data-converter.py')), - '--input', options.input, - '--output', options.output, - ]; - - if (options.extractSurface) { - cmdLine.push('--extract-surface'); - } - - if (options.merge) { - cmdLine.push('--merge'); - } - - console.log('\n==============================================================================='); - console.log('| Execute:'); - console.log('| $', cmdLine.join('\n|\t')); - console.log('===============================================================================\n'); - shell.exec(cmdLine.join(' ')); -} diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/DataGenerator/vtk-data-converter.py b/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/DataGenerator/vtk-data-converter.py deleted file mode 100644 index 81bce038..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/DataGenerator/vtk-data-converter.py +++ /dev/null @@ -1,461 +0,0 @@ -from __future__ import print_function -import sys, json, os, math, gzip, shutil, argparse, hashlib - -from paraview import simple -from paraview.vtk import * -import sys - -if sys.version_info[0] == 3: - buffer = memoryview - -# ----------------------------------------------------------------------------- - -arrayTypesMapping = ' bBhHiIlLfdL' # last one is idtype - -jsMapping = { - 'b': 'Int8Array', - 'B': 'Uint8Array', - 'h': 'Int16Array', - 'H': 'Uint16Array', - 'i': 'Int32Array', - 'I': 'Uint32Array', - 'l': 'Int32Array', - 'L': 'Uint32Array', - 'f': 'Float32Array', - 'd': 'Float64Array' -} - -writerMapping = {} - -# ----------------------------------------------------------------------------- - -def getRangeInfo(array, component): - r = array.GetRange(component) - compRange = {} - compRange['min'] = r[0] - compRange['max'] = r[1] - compRange['component'] = array.GetComponentName(component) - return compRange - -# ----------------------------------------------------------------------------- - -def getRef(destDirectory, md5): - ref = {} - ref['id'] = md5 - ref['encode'] = 'BigEndian' if sys.byteorder == 'big' else 'LittleEndian' - ref['basepath'] = destDirectory - return ref - -# ----------------------------------------------------------------------------- - -def dumpStringArray(datasetDir, dataDir, array, root = {}, compress = True): - if not array: - return None - - stringArray = [] - arraySize = array.GetNumberOfTuples() - for i in range(arraySize): - stringArray.append(array.GetValue(i)) - - strData = json.dumps(stringArray) - - pMd5 = hashlib.md5(strData).hexdigest() - pPath = os.path.join(dataDir, pMd5) - with open(pPath, 'wb') as f: - f.write(strData) - - if compress: - with open(pPath, 'rb') as f_in, gzip.open(os.path.join(dataDir, pMd5 + '.gz'), 'wb') as f_out: - shutil.copyfileobj(f_in, f_out) - f_in.close() - os.remove(pPath) - - root['ref'] = getRef(os.path.relpath(dataDir, datasetDir), pMd5) - root['vtkClass'] = 'vtkStringArray' - root['name'] = array.GetName() - root['dataType'] = 'JSON' - root['numberOfComponents'] = array.GetNumberOfComponents() - root['size'] = array.GetNumberOfComponents() * array.GetNumberOfTuples() - - return root - -# ----------------------------------------------------------------------------- - -def dumpDataArray(datasetDir, dataDir, array, root = {}, compress = True): - if not array: - return None - - if array.GetDataType() == 12: - # IdType need to be converted to Uint32 - arraySize = array.GetNumberOfTuples() * array.GetNumberOfComponents() - newArray = vtkTypeUInt32Array() - newArray.SetNumberOfTuples(arraySize) - for i in range(arraySize): - newArray.SetValue(i, -1 if array.GetValue(i) < 0 else array.GetValue(i)) - pBuffer = buffer(newArray) - else: - pBuffer = buffer(array) - - pMd5 = hashlib.md5(pBuffer).hexdigest() - pPath = os.path.join(dataDir, pMd5) - with open(pPath, 'wb') as f: - f.write(pBuffer) - - if compress: - with open(pPath, 'rb') as f_in, gzip.open(os.path.join(dataDir, pMd5 + '.gz'), 'wb') as f_out: - shutil.copyfileobj(f_in, f_out) - f_in.close() - os.remove(pPath) - - # print array - # print array.GetName(), '=>', jsMapping[arrayTypesMapping[array.GetDataType()]] - - root['ref'] = getRef(os.path.relpath(dataDir, datasetDir), pMd5) - root['vtkClass'] = 'vtkDataArray' - root['name'] = array.GetName() - root['dataType'] = jsMapping[arrayTypesMapping[array.GetDataType()]] - root['numberOfComponents'] = array.GetNumberOfComponents() - root['size'] = array.GetNumberOfComponents() * array.GetNumberOfTuples() - root['ranges'] = [] - if root['numberOfComponents'] > 1: - for i in range(root['numberOfComponents']): - root['ranges'].append(getRangeInfo(array, i)) - root['ranges'].append(getRangeInfo(array, -1)) - else: - root['ranges'].append(getRangeInfo(array, 0)) - - return root - -# ----------------------------------------------------------------------------- - -def dumpAttributes(datasetDir, dataDir, dataset, root = {}, compress = True): - # PointData - _pointData = root['pointData'] = { "vtkClass": "vtkDataSetAttributes", "arrays": [] } - _nbFields = dataset.GetPointData().GetNumberOfArrays() - for i in range(_nbFields): - array = dataset.GetPointData().GetArray(i) - abstractArray = dataset.GetPointData().GetAbstractArray(i) - if array: - _array = dumpDataArray(datasetDir, dataDir, array, {}, compress) - if _array: - if (root['vtkClass'] == 'vtkImageData'): - _array['ref']['registration']="setScalars" - - _pointData['arrays'].append({ "data": _array }) - elif abstractArray: - _array = dumpStringArray(datasetDir, dataDir, abstractArray, {}, compress) - if _array: - _pointData['arrays'].append({ "data": _array }) - - # CellData - _cellData = root['cellData'] = { "vtkClass": "vtkDataSetAttributes", "arrays": [] } - _nbFields = dataset.GetCellData().GetNumberOfArrays() - for i in range(_nbFields): - array = dataset.GetCellData().GetArray(i) - abstractArray = dataset.GetCellData().GetAbstractArray(i) - if array: - _array = dumpDataArray(datasetDir, dataDir, array, {}, compress) - if _array: - _cellData['arrays'].append({ "data": _array }) - elif abstractArray: - _array = dumpStringArray(datasetDir, dataDir, abstractArray, {}, compress) - if _array: - _cellData['arrays'].append({ "data": _array }) - - # FieldData - _fieldData = root['FieldData'] = { "vtkClass": "vtkDataSetAttributes", "arrays": [] } - _nbFields = dataset.GetFieldData().GetNumberOfArrays() - for i in range(_nbFields): - array = dataset.GetFieldData().GetArray(i) - abstractArray = dataset.GetFieldData().GetAbstractArray(i) - if array: - _array = dumpDataArray(datasetDir, dataDir, array, {}, compress) - if _array: - _fieldData['arrays'].append({ "data": _array }) - elif abstractArray: - _array = dumpStringArray(datasetDir, dataDir, abstractArray, {}, compress) - if _array: - _fieldData['arrays'].append({ "data": _array }) - return root - -# ----------------------------------------------------------------------------- - -def dumpPolyData(datasetDir, dataDir, dataset, container = {}, compress = True): - container['vtkClass'] = 'vtkPolyData' - - # Points - points = dumpDataArray(datasetDir, dataDir, dataset.GetPoints().GetData(), {}, compress) - container['points'] = points - container['points']['vtkClass'] = 'vtkPoints' - container['points']['numberOfComponents'] = 3 - - # Cells - _cells = container - - ## Verts - if dataset.GetVerts() and dataset.GetVerts().GetData().GetNumberOfTuples() > 0: - _verts = dumpDataArray(datasetDir, dataDir, dataset.GetVerts().GetData(), {}, compress) - _verts['name'] = '_verts' - _cells['verts'] = _verts - _cells['verts']['vtkClass'] = 'vtkCellArray' - - ## Lines - if dataset.GetLines() and dataset.GetLines().GetData().GetNumberOfTuples() > 0: - _lines = dumpDataArray(datasetDir, dataDir, dataset.GetLines().GetData(), {}, compress) - _lines['name'] = '_lines' - _cells['lines'] = _lines - _cells['lines']['vtkClass'] = 'vtkCellArray' - - ## Polys - if dataset.GetPolys() and dataset.GetPolys().GetData().GetNumberOfTuples() > 0: - _polys = dumpDataArray(datasetDir, dataDir, dataset.GetPolys().GetData(), {}, compress) - _polys['name'] = '_polys' - _cells['polys'] = _polys - _cells['polys']['vtkClass'] = 'vtkCellArray' - - ## Strips - if dataset.GetStrips() and dataset.GetStrips().GetData().GetNumberOfTuples() > 0: - _strips = dumpDataArray(datasetDir, dataDir, dataset.GetStrips().GetData(), {}, compress) - _strips['name'] = '_strips' - _cells['strips'] = _strips - _cells['strips']['vtkClass'] = 'vtkCellArray' - - # Attributes (PointData, CellData, FieldData) - dumpAttributes(datasetDir, dataDir, dataset, container, compress) - - return container - -# ----------------------------------------------------------------------------- -writerMapping['vtkPolyData'] = dumpPolyData -# ----------------------------------------------------------------------------- - -def dumpUnstructuredGrid(datasetDir, dataDir, dataset, container = {}, compress = True): - container['vtkClass'] = 'vtkUnstructuredGrid' - - # Points - points = dumpDataArray(datasetDir, dataDir, dataset.GetPoints().GetData(), {}, compress) - points['name'] = '_points' - container['points'] = points - container['points']['vtkClass'] = 'vtkPoints' - - # Cells - container['cells'] = dumpDataArray(datasetDir, dataDir, dataset.GetCells().GetData(), {}, compress) - container['cells']['vtkClass'] = 'vtkCellArray' - - # CellTypes - container['cellTypes'] = dumpDataArray(datasetDir, dataDir, dataset.GetCellTypesArray(), {}, compress) - - # Attributes (PointData, CellData, FieldData) - dumpAttributes(datasetDir, dataDir, dataset, container, compress) - - return container - -# ----------------------------------------------------------------------------- -writerMapping['vtkUnstructuredGrid'] = dumpUnstructuredGrid -# ----------------------------------------------------------------------------- - -def dumpImageData(datasetDir, dataDir, dataset, container = {}, compress = True): - container['vtkClass'] = 'vtkImageData' - - # Origin / Spacing / Dimension - container['origin'] = tuple(dataset.GetOrigin()) - container['spacing'] = tuple(dataset.GetSpacing()) - container['extent'] = tuple(dataset.GetExtent()) - - # Attributes (PointData, CellData, FieldData) - dumpAttributes(datasetDir, dataDir, dataset, container, compress) - - return container - -# ----------------------------------------------------------------------------- -writerMapping['vtkImageData'] = dumpImageData -# ----------------------------------------------------------------------------- - -def dumpRectilinearGrid(datasetDir, dataDir, dataset, container = {}, compress = True): - container['vtkClass'] = 'vtkRectilinearGrid' - - # Dimensions - container['dimensions'] = tuple(dataset.GetDimensions()) - - # X, Y, Z - container['xCoordinates'] = dumpDataArray(datasetDir, dataDir, dataset.GetXCoordinates(), {}, compress) - container['yCoordinates'] = dumpDataArray(datasetDir, dataDir, dataset.GetYCoordinates(), {}, compress) - container['zCoordinates'] = dumpDataArray(datasetDir, dataDir, dataset.GetZCoordinates(), {}, compress) - - # Attributes (PointData, CellData, FieldData) - dumpAttributes(datasetDir, dataDir, dataset, container, compress) - - return container - -# ----------------------------------------------------------------------------- -writerMapping['vtkRectilinearGrid'] = dumpRectilinearGrid -# ----------------------------------------------------------------------------- - -def dumpTable(datasetDir, dataDir, dataset, container = {}, compress = True): - container['vtkClass'] = 'vtkTable' - - # Columns - _columns = container['Columns'] = {} - _nbFields = dataset.GetNumberOfColumns() - for i in range(_nbFields): - array = dumpDataArray(datasetDir, dataDir, dataset.GetColumn(i), {}, compress) - if array: - _columns[array['name']] = array - - return container - -# ----------------------------------------------------------------------------- -writerMapping['vtkTable'] = dumpTable -# ----------------------------------------------------------------------------- - -def dumpMultiBlock(datasetDir, dataDir, dataset, container = {}, compress = True): - container['vtkClass'] = 'vtkMultiBlock' - - _blocks = container['Blocks'] = {} - _nbBlocks = dataset.GetNumberOfBlocks() - for i in range(_nbBlocks): - name = dataset.GetMetaData(i).Get(vtkCompositeDataSet.NAME()) - blockDataset = dataset.GetBlock(i) - if blockDataset: - writer = writerMapping[blockDataset.GetClassName()] - if writer: - _blocks[name] = writer(datasetDir, dataDir, blockDataset, {}, compress) - else: - _blocks[name] = blockDataset.GetClassName() - - return container - -# ----------------------------------------------------------------------------- -writerMapping['vtkMultiBlockDataSet'] = dumpMultiBlock -# ----------------------------------------------------------------------------- - -def writeDataSet(filePath, dataset, outputDir, newDSName = None, compress = True): - fileName = newDSName if newDSName else os.path.basename(filePath) - datasetDir = os.path.join(outputDir, fileName) - dataDir = os.path.join(datasetDir, 'data') - - if not os.path.exists(dataDir): - os.makedirs(dataDir) - - root = {} - root['metadata'] = {} - root['metadata']['name'] = fileName - - writer = writerMapping[dataset.GetClassName()] - if writer: - writer(datasetDir, dataDir, dataset, root, compress) - else: - print (dataObject.GetClassName(), 'is not supported') - - with open(os.path.join(datasetDir, "index.json"), 'w') as f: - f.write(json.dumps(root, indent=2)) - -# ----------------------------------------------------------------------------- - -def writeTimeDataSource(filePath, datasource, sourceToExport, outputDir, newDSName = None, compress = True): - fileName = newDSName if newDSName else os.path.basename(filePath) - datasetDir = os.path.join(outputDir, fileName) - dataDir = os.path.join(datasetDir, 'data') - - if not os.path.exists(dataDir): - os.makedirs(dataDir) - - root = {} - root['metadata'] = {} - root['metadata']['name'] = fileName - root['type'] = 'Parametric' - container = root['Parametric'] = {} - _params = container['parameters'] = { 'time': [ '%02d' % idx for idx in range(len(datasource.TimestepValues))] } - _refs = container['refs'] = { 'dataset': { 'id': '{time}/index.json', 'pattern': True, 'basepath': '', 'encode': 'JSON' } } - - - for idx in range(len(datasource.TimestepValues)): - t = datasource.TimestepValues[idx] - sourceToExport.UpdatePipeline(t) - ds = sourceToExport.GetClientSideObject().GetOutputDataObject(0) - writer = writerMapping[ds.GetClassName()] - if writer: - dsDir = os.path.join(datasetDir, "%02d" % idx) - dsFileName = os.path.join(dsDir, "index.json") - if not os.path.exists(dsDir): - os.makedirs(dsDir) - with open(dsFileName, 'w') as f: - f.write(json.dumps(writer(dsDir, dataDir, ds, {}, compress), indent=2)) - else: - print (dataObject.GetClassName(), 'is not supported') - - - with open(os.path.join(datasetDir, "index.json"), 'w') as f: - f.write(json.dumps(root, indent=2)) - -# ----------------------------------------------------------------------------- - -def convert(inputFile, outputDir, merge = False, extract = False, newName = None): - print (inputFile, outputDir) - reader = simple.OpenDataFile(inputFile) - activeSource = reader - - if merge: - activeSource = simple.MergeBlocks(activeSource) - - if extract: - activeSource = simple.ExtractSurface(activeSource) - - activeSource.UpdatePipeline() - dataObject = activeSource.GetClientSideObject().GetOutputDataObject(0) - - if 'TimestepValues' in reader.ListProperties(): - if len(reader.TimestepValues) == 0: - writeDataSet(inputFile, dataObject, outputDir, newName) - else: - writeTimeDataSource(inputFile, reader, activeSource, outputDir, newName) - else: - writeDataSet(inputFile, dataObject, outputDir, newName) - - -# ----------------------------------------------------------------------------- - -def sample(dataDir, outputDir): - convert(os.path.join(dataDir, 'Data/bot2.wrl'), outputDir, True, True) - convert(os.path.join(dataDir, 'Data/can.ex2'), outputDir) - convert(os.path.join(dataDir, 'Data/can.ex2'), outputDir, True, True, 'can_MS.ex2') - convert(os.path.join(dataDir, 'Data/can.ex2'), outputDir, True, False, 'can_M.ex2') - convert(os.path.join(dataDir, 'Data/can.ex2'), outputDir, False, True, 'can_S.ex2') - convert(os.path.join(dataDir, 'Data/disk_out_ref.ex2'), outputDir, True, False, 'disk_out_ref_M.ex2') - convert(os.path.join(dataDir, 'Data/disk_out_ref.ex2'), outputDir) - convert(os.path.join(dataDir, 'Data/RectGrid2.vtk'), outputDir) - - # Create image data based on the Wavelet source - wavelet = simple.Wavelet() - wavelet.UpdatePipeline() - imageData = wavelet.GetClientSideObject().GetOutputDataObject(0) - writeDataSet('Wavelet.vti', imageData, outputDir) - - # Create a table based on the disk_out_ref - diskout = simple.ExtractSurface(simple.MergeBlocks(simple.OpenDataFile(os.path.join(dataDir, 'Data/disk_out_ref.ex2')))) - diskout.UpdatePipeline() - unstructuredGrid = diskout.GetClientSideObject().GetOutputDataObject(0) - table = vtkTable() - _nbFields = unstructuredGrid.GetPointData().GetNumberOfArrays() - for i in range(_nbFields): - table.AddColumn(unstructuredGrid.GetPointData().GetArray(i)) - writeDataSet('table', table, outputDir) - -# ============================================================================= -# Main: Parse args and start data conversion -# ============================================================================= - -if __name__ == "__main__": - parser = argparse.ArgumentParser(description="Data conversion") - parser.add_argument("--input", help="path to the file to convert", dest="input") - parser.add_argument("--output", help="path to the directory where to write the output", dest="output") - parser.add_argument("--merge", help="Merge multiblock into single dataset", default=False, action='store_true', dest="merge") - parser.add_argument("--extract-surface", help="Extract surface mesh", default=False, action='store_true', dest="extract") - parser.add_argument("--sample-data", help="Generate sample data from ParaView Data", dest="sample") - - args = parser.parse_args() - - if args.sample: - sample(args.sample, args.output) - else: - convert(args.input, args.output, args.merge, args.extract) diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry-mapper/README.md b/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry-mapper/README.md deleted file mode 100644 index fc8e1caf..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry-mapper/README.md +++ /dev/null @@ -1 +0,0 @@ -xml2json -i $PWD/Utilities/XMLConverter/chemistry/elements.xml -o $PWD/Utilities/XMLConverter/chemistry-mapper/elements.json -p chemistry-mapper diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry-mapper/elements.json b/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry-mapper/elements.json deleted file mode 100644 index d46ad9ea..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry-mapper/elements.json +++ /dev/null @@ -1,356 +0,0 @@ -{ - "H": [ - 1 - ], - "He": [ - 2 - ], - "Li": [ - 3 - ], - "Be": [ - 4 - ], - "B": [ - 5 - ], - "C": [ - 6 - ], - "N": [ - 7 - ], - "O": [ - 8 - ], - "F": [ - 9 - ], - "Ne": [ - 10 - ], - "Na": [ - 11 - ], - "Mg": [ - 12 - ], - "Al": [ - 13 - ], - "Si": [ - 14 - ], - "P": [ - 15 - ], - "S": [ - 16 - ], - "Cl": [ - 17 - ], - "Ar": [ - 18 - ], - "K": [ - 19 - ], - "Ca": [ - 20 - ], - "Sc": [ - 21 - ], - "Ti": [ - 22 - ], - "V": [ - 23 - ], - "Cr": [ - 24 - ], - "Mn": [ - 25 - ], - "Fe": [ - 26 - ], - "Co": [ - 27 - ], - "Ni": [ - 28 - ], - "Cu": [ - 29 - ], - "Zn": [ - 30 - ], - "Ga": [ - 31 - ], - "Ge": [ - 32 - ], - "As": [ - 33 - ], - "Se": [ - 34 - ], - "Br": [ - 35 - ], - "Kr": [ - 36 - ], - "Rb": [ - 37 - ], - "Sr": [ - 38 - ], - "Y": [ - 39 - ], - "Zr": [ - 40 - ], - "Nb": [ - 41 - ], - "Mo": [ - 42 - ], - "Tc": [ - 43 - ], - "Ru": [ - 44 - ], - "Rh": [ - 45 - ], - "Pd": [ - 46 - ], - "Ag": [ - 47 - ], - "Cd": [ - 48 - ], - "In": [ - 49 - ], - "Sn": [ - 50 - ], - "Sb": [ - 51 - ], - "Te": [ - 52 - ], - "I": [ - 53 - ], - "Xe": [ - 54 - ], - "Cs": [ - 55 - ], - "Ba": [ - 56 - ], - "La": [ - 57 - ], - "Ce": [ - 58 - ], - "Pr": [ - 59 - ], - "Nd": [ - 60 - ], - "Pm": [ - 61 - ], - "Sm": [ - 62 - ], - "Eu": [ - 63 - ], - "Gd": [ - 64 - ], - "Tb": [ - 65 - ], - "Dy": [ - 66 - ], - "Ho": [ - 67 - ], - "Er": [ - 68 - ], - "Tm": [ - 69 - ], - "Yb": [ - 70 - ], - "Lu": [ - 71 - ], - "Hf": [ - 72 - ], - "Ta": [ - 73 - ], - "W": [ - 74 - ], - "Re": [ - 75 - ], - "Os": [ - 76 - ], - "Ir": [ - 77 - ], - "Pt": [ - 78 - ], - "Au": [ - 79 - ], - "Hg": [ - 80 - ], - "Tl": [ - 81 - ], - "Pb": [ - 82 - ], - "Bi": [ - 83 - ], - "Po": [ - 84 - ], - "At": [ - 85 - ], - "Rn": [ - 86 - ], - "Fr": [ - 87 - ], - "Ra": [ - 88 - ], - "Ac": [ - 89 - ], - "Th": [ - 90 - ], - "Pa": [ - 91 - ], - "U": [ - 92 - ], - "Np": [ - 93 - ], - "Pu": [ - 94 - ], - "Am": [ - 95 - ], - "Cm": [ - 96 - ], - "Bk": [ - 97 - ], - "Cf": [ - 98 - ], - "Es": [ - 99 - ], - "Fm": [ - 100 - ], - "Md": [ - 101 - ], - "No": [ - 102 - ], - "Lr": [ - 103 - ], - "Rf": [ - 104 - ], - "Db": [ - 105 - ], - "Sg": [ - 106 - ], - "Bh": [ - 107 - ], - "Hs": [ - 108 - ], - "Mt": [ - 109 - ], - "Ds": [ - 110 - ], - "Rg": [ - 111 - ], - "Cn": [ - 112 - ], - "Uut": [ - 113 - ], - "Uuq": [ - 114 - ], - "Uup": [ - 115 - ], - "Uuh": [ - 116 - ], - "Uus": [ - 117 - ], - "Uuo": [ - 118 - ] -} diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry-mapper/elements.json.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry-mapper/elements.json.js deleted file mode 100644 index 51bbca46..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry-mapper/elements.json.js +++ /dev/null @@ -1,476 +0,0 @@ -var H = [ - 1 -]; -var He = [ - 2 -]; -var Li = [ - 3 -]; -var Be = [ - 4 -]; -var B = [ - 5 -]; -var C = [ - 6 -]; -var N = [ - 7 -]; -var O = [ - 8 -]; -var F = [ - 9 -]; -var Ne = [ - 10 -]; -var Na = [ - 11 -]; -var Mg = [ - 12 -]; -var Al = [ - 13 -]; -var Si = [ - 14 -]; -var P = [ - 15 -]; -var S = [ - 16 -]; -var Cl = [ - 17 -]; -var Ar = [ - 18 -]; -var K = [ - 19 -]; -var Ca = [ - 20 -]; -var Sc = [ - 21 -]; -var Ti = [ - 22 -]; -var V = [ - 23 -]; -var Cr = [ - 24 -]; -var Mn = [ - 25 -]; -var Fe = [ - 26 -]; -var Co = [ - 27 -]; -var Ni = [ - 28 -]; -var Cu = [ - 29 -]; -var Zn = [ - 30 -]; -var Ga = [ - 31 -]; -var Ge = [ - 32 -]; -var As = [ - 33 -]; -var Se = [ - 34 -]; -var Br = [ - 35 -]; -var Kr = [ - 36 -]; -var Rb = [ - 37 -]; -var Sr = [ - 38 -]; -var Y = [ - 39 -]; -var Zr = [ - 40 -]; -var Nb = [ - 41 -]; -var Mo = [ - 42 -]; -var Tc = [ - 43 -]; -var Ru = [ - 44 -]; -var Rh = [ - 45 -]; -var Pd = [ - 46 -]; -var Ag = [ - 47 -]; -var Cd = [ - 48 -]; -var In = [ - 49 -]; -var Sn = [ - 50 -]; -var Sb = [ - 51 -]; -var Te = [ - 52 -]; -var I = [ - 53 -]; -var Xe = [ - 54 -]; -var Cs = [ - 55 -]; -var Ba = [ - 56 -]; -var La = [ - 57 -]; -var Ce = [ - 58 -]; -var Pr = [ - 59 -]; -var Nd = [ - 60 -]; -var Pm = [ - 61 -]; -var Sm = [ - 62 -]; -var Eu = [ - 63 -]; -var Gd = [ - 64 -]; -var Tb = [ - 65 -]; -var Dy = [ - 66 -]; -var Ho = [ - 67 -]; -var Er = [ - 68 -]; -var Tm = [ - 69 -]; -var Yb = [ - 70 -]; -var Lu = [ - 71 -]; -var Hf = [ - 72 -]; -var Ta = [ - 73 -]; -var W = [ - 74 -]; -var Re = [ - 75 -]; -var Os = [ - 76 -]; -var Ir = [ - 77 -]; -var Pt = [ - 78 -]; -var Au = [ - 79 -]; -var Hg = [ - 80 -]; -var Tl = [ - 81 -]; -var Pb = [ - 82 -]; -var Bi = [ - 83 -]; -var Po = [ - 84 -]; -var At = [ - 85 -]; -var Rn = [ - 86 -]; -var Fr = [ - 87 -]; -var Ra = [ - 88 -]; -var Ac = [ - 89 -]; -var Th = [ - 90 -]; -var Pa = [ - 91 -]; -var U = [ - 92 -]; -var Np = [ - 93 -]; -var Pu = [ - 94 -]; -var Am = [ - 95 -]; -var Cm = [ - 96 -]; -var Bk = [ - 97 -]; -var Cf = [ - 98 -]; -var Es = [ - 99 -]; -var Fm = [ - 100 -]; -var Md = [ - 101 -]; -var No = [ - 102 -]; -var Lr = [ - 103 -]; -var Rf = [ - 104 -]; -var Db = [ - 105 -]; -var Sg = [ - 106 -]; -var Bh = [ - 107 -]; -var Hs = [ - 108 -]; -var Mt = [ - 109 -]; -var Ds = [ - 110 -]; -var Rg = [ - 111 -]; -var Cn = [ - 112 -]; -var Uut = [ - 113 -]; -var Uuq = [ - 114 -]; -var Uup = [ - 115 -]; -var Uuh = [ - 116 -]; -var Uus = [ - 117 -]; -var Uuo = [ - 118 -]; -var ATOMS = { - H: H, - He: He, - Li: Li, - Be: Be, - B: B, - C: C, - N: N, - O: O, - F: F, - Ne: Ne, - Na: Na, - Mg: Mg, - Al: Al, - Si: Si, - P: P, - S: S, - Cl: Cl, - Ar: Ar, - K: K, - Ca: Ca, - Sc: Sc, - Ti: Ti, - V: V, - Cr: Cr, - Mn: Mn, - Fe: Fe, - Co: Co, - Ni: Ni, - Cu: Cu, - Zn: Zn, - Ga: Ga, - Ge: Ge, - As: As, - Se: Se, - Br: Br, - Kr: Kr, - Rb: Rb, - Sr: Sr, - Y: Y, - Zr: Zr, - Nb: Nb, - Mo: Mo, - Tc: Tc, - Ru: Ru, - Rh: Rh, - Pd: Pd, - Ag: Ag, - Cd: Cd, - In: In, - Sn: Sn, - Sb: Sb, - Te: Te, - I: I, - Xe: Xe, - Cs: Cs, - Ba: Ba, - La: La, - Ce: Ce, - Pr: Pr, - Nd: Nd, - Pm: Pm, - Sm: Sm, - Eu: Eu, - Gd: Gd, - Tb: Tb, - Dy: Dy, - Ho: Ho, - Er: Er, - Tm: Tm, - Yb: Yb, - Lu: Lu, - Hf: Hf, - Ta: Ta, - W: W, - Re: Re, - Os: Os, - Ir: Ir, - Pt: Pt, - Au: Au, - Hg: Hg, - Tl: Tl, - Pb: Pb, - Bi: Bi, - Po: Po, - At: At, - Rn: Rn, - Fr: Fr, - Ra: Ra, - Ac: Ac, - Th: Th, - Pa: Pa, - U: U, - Np: Np, - Pu: Pu, - Am: Am, - Cm: Cm, - Bk: Bk, - Cf: Cf, - Es: Es, - Fm: Fm, - Md: Md, - No: No, - Lr: Lr, - Rf: Rf, - Db: Db, - Sg: Sg, - Bh: Bh, - Hs: Hs, - Mt: Mt, - Ds: Ds, - Rg: Rg, - Cn: Cn, - Uut: Uut, - Uuq: Uuq, - Uup: Uup, - Uuh: Uuh, - Uus: Uus, - Uuo: Uuo -}; - -export { ATOMS as A }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry-mapper/post-process.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry-mapper/post-process.js deleted file mode 100644 index 84049540..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry-mapper/post-process.js +++ /dev/null @@ -1,18 +0,0 @@ -var preProcessing = require('../chemistry/post-process.js'); - -const valueToExtract = ['atomicNumber']; - -module.exports = function (xml) { - var atoms = {}; - var fullJSON = preProcessing(xml); - fullJSON.atoms.forEach(function (a) { - var values = valueToExtract.map(function (key) { - return a[key]; - }); - // Remove atoms that have no radiusCovalent - if (values[0]) { - atoms[a.id] = values; - } - }); - return atoms; -}; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry/README.md b/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry/README.md deleted file mode 100644 index 71ee3a33..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry/README.md +++ /dev/null @@ -1 +0,0 @@ -xml2json -i $PWD/Utilities/XMLConverter/chemistry/elements.xml -o $PWD/Utilities/XMLConverter/chemistry/elements.json -p chemistry diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry/elements.json b/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry/elements.json deleted file mode 100644 index ddbf8632..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry/elements.json +++ /dev/null @@ -1,3791 +0,0 @@ -{ - "atoms": [ - { - "id": "Xx", - "atomicNumber": 0, - "mass": 0, - "exactMass": 0, - "radiusCovalent": 0, - "radiusVDW": 0, - "symbol": "Xx", - "name": "Dummy", - "elementColor": [ - 0.07, - 0.5, - 0.7 - ] - }, - { - "id": "H", - "atomicNumber": 1, - "mass": 1.00794, - "exactMass": 1.007825032, - "ionization": 13.5984, - "electronAffinity": 0.75420375, - "electronegativityPauling": 2.2, - "nameOrigin": "Greek 'hydro' and 'gennao' for 'forms water'", - "radiusCovalent": 0.37, - "radiusVDW": 1.2, - "boilingpoint": 20.28, - "meltingpoint": 14.01, - "periodTableBlock": "s", - "discoveryDate": "1766", - "period": "1", - "group": "1", - "electronicConfiguration": "1s1", - "family": "Non-Metal", - "symbol": "H", - "name": "Hydrogen", - "elementColor": [ - 1, - 1, - 1 - ], - "discoveryCountry": [ - "uk" - ], - "discoverers": [ - "C.", - "Cavendish" - ] - }, - { - "id": "He", - "atomicNumber": 2, - "mass": 4.002602, - "exactMass": 4.002603254, - "ionization": 24.5874, - "electronAffinity": 0, - "nameOrigin": "The Greek word for the sun was 'helios'", - "radiusCovalent": 0.32, - "radiusVDW": 1.4, - "boilingpoint": 4.216, - "meltingpoint": 0.95, - "periodTableBlock": "p", - "discoveryDate": "1895", - "period": "1", - "group": "8", - "electronicConfiguration": "1s2", - "family": "Noblegas", - "symbol": "He", - "name": "Helium", - "elementColor": [ - 0.85, - 1, - 1 - ], - "discoveryCountry": [ - "se", - "uk" - ], - "discoverers": [ - "P. J. Janssen", - "J. N. Lockyer" - ] - }, - { - "id": "Li", - "atomicNumber": 3, - "mass": 6.941, - "exactMass": 7.01600455, - "ionization": 5.3917, - "electronAffinity": 0.618049, - "electronegativityPauling": 0.98, - "nameOrigin": "Greek 'lithos' means 'stone'", - "radiusCovalent": 1.34, - "radiusVDW": 2.2, - "boilingpoint": 1615, - "meltingpoint": 453.7, - "periodTableBlock": "s", - "discoveryDate": "1817", - "period": "2", - "group": "1", - "electronicConfiguration": "He 2s1", - "family": "Alkali_Earth", - "symbol": "Li", - "name": "Lithium", - "elementColor": [ - 0.8, - 0.5, - 1 - ], - "discoveryCountry": [ - "se" - ], - "discoverers": [ - "A.", - "Arfvedson" - ] - }, - { - "id": "Be", - "atomicNumber": 4, - "mass": 9.012182, - "exactMass": 9.0121822, - "ionization": 9.3227, - "electronAffinity": 0, - "electronegativityPauling": 1.57, - "nameOrigin": "Greek 'beryllos' for 'light-green stone'", - "radiusCovalent": 0.9, - "radiusVDW": 1.9, - "boilingpoint": 3243, - "meltingpoint": 1560, - "periodTableBlock": "s", - "discoveryDate": "1797", - "period": "2", - "group": "2", - "electronicConfiguration": "He 2s2", - "family": "Alkaline_Earth", - "symbol": "Be", - "name": "Beryllium", - "elementColor": [ - 0.76, - 1, - 0 - ], - "discoveryCountry": [ - "fr" - ], - "discoverers": [ - "Nicholas", - "Louis", - "Vauquelin" - ] - }, - { - "id": "B", - "atomicNumber": 5, - "mass": 10.811, - "exactMass": 11.0093054, - "ionization": 8.298, - "electronAffinity": 0.279723, - "electronegativityPauling": 2.04, - "nameOrigin": "Boron means 'Bor(ax) + (carb)on'. It is found in borax and behaves a lot like carbon", - "radiusCovalent": 0.82, - "radiusVDW": 1.8, - "boilingpoint": 4275, - "meltingpoint": 2365, - "periodTableBlock": "p", - "discoveryDate": "1808", - "period": "2", - "group": "3", - "electronicConfiguration": "He 2s2 2p1", - "family": "Metalloids", - "symbol": "B", - "name": "Boron", - "elementColor": [ - 1, - 0.71, - 0.71 - ], - "discoveryCountry": [ - "uk", - "fr" - ], - "discoverers": [ - "Louis Joseph Gay-Lussac", - "Louis Jacques Thenard" - ] - }, - { - "id": "C", - "atomicNumber": 6, - "mass": 12.0107, - "exactMass": 12, - "ionization": 11.2603, - "electronAffinity": 1.262118, - "electronegativityPauling": 2.55, - "nameOrigin": "Latin 'carboneum' for carbon", - "radiusCovalent": 0.77, - "radiusVDW": 1.7, - "boilingpoint": 5100, - "meltingpoint": 3825, - "periodTableBlock": "p", - "discoveryDate": "0", - "period": "2", - "group": "4", - "electronicConfiguration": "He 2s2 2p2", - "family": "Non-Metal", - "symbol": "C", - "name": "Carbon", - "elementColor": [ - 0.5, - 0.5, - 0.5 - ], - "discoveryCountry": [ - "ancient" - ] - }, - { - "id": "N", - "atomicNumber": 7, - "mass": 14.0067, - "exactMass": 14.003074, - "ionization": 14.5341, - "electronAffinity": -0.07, - "electronegativityPauling": 3.04, - "nameOrigin": "Latin 'nitrogenium' ('forms saltpeter')", - "radiusCovalent": 0.75, - "radiusVDW": 1.6, - "boilingpoint": 77.344, - "meltingpoint": 63.15, - "periodTableBlock": "p", - "discoveryDate": "1772", - "period": "2", - "group": "5", - "electronicConfiguration": "He 2s2 2p3", - "family": "Non-Metal", - "symbol": "N", - "name": "Nitrogen", - "elementColor": [ - 0.05, - 0.05, - 1 - ], - "discoveryCountry": [ - "uk" - ], - "discoverers": [ - "D.", - "Rutherford" - ] - }, - { - "id": "O", - "atomicNumber": 8, - "mass": 15.9994, - "exactMass": 15.99491462, - "ionization": 13.6181, - "electronAffinity": 1.461112, - "electronegativityPauling": 3.44, - "nameOrigin": "Latin 'oxygenium' (forms acids)", - "radiusCovalent": 0.73, - "radiusVDW": 1.55, - "boilingpoint": 90.188, - "meltingpoint": 54.8, - "periodTableBlock": "p", - "discoveryDate": "1774", - "period": "2", - "group": "6", - "electronicConfiguration": "He 2s2 2p4", - "family": "Non-Metal", - "symbol": "O", - "name": "Oxygen", - "elementColor": [ - 1, - 0.05, - 0.05 - ], - "discoveryCountry": [ - "se", - "uk" - ], - "discoverers": [ - "J.", - "Priestley" - ] - }, - { - "id": "F", - "atomicNumber": 9, - "mass": 18.9984032, - "exactMass": 18.99840322, - "ionization": 17.4228, - "electronAffinity": 3.4011887, - "electronegativityPauling": 3.98, - "nameOrigin": "Latin 'fluere' ('floats')", - "radiusCovalent": 0.71, - "radiusVDW": 1.5, - "boilingpoint": 85, - "meltingpoint": 53.55, - "periodTableBlock": "p", - "discoveryDate": "1886", - "period": "2", - "group": "7", - "electronicConfiguration": "He 2s2 2p5", - "family": "Halogen", - "symbol": "F", - "name": "Fluorine", - "elementColor": [ - 0.7, - 1, - 1 - ], - "discoveryCountry": [ - "fr" - ], - "discoverers": [ - "H.", - "F.", - "Moissan" - ] - }, - { - "id": "Ne", - "atomicNumber": 10, - "mass": 20.1797, - "exactMass": 19.99244018, - "ionization": 21.5645, - "electronAffinity": 0, - "nameOrigin": "Greek 'neo'. meaning 'new'", - "radiusCovalent": 0.69, - "radiusVDW": 1.54, - "boilingpoint": 27.1, - "meltingpoint": 24.55, - "periodTableBlock": "p", - "discoveryDate": "1898", - "period": "2", - "group": "8", - "electronicConfiguration": "He 2s2 2p6", - "family": "Noblegas", - "symbol": "Ne", - "name": "Neon", - "elementColor": [ - 0.7, - 0.89, - 0.96 - ], - "discoveryCountry": [ - "uk" - ], - "discoverers": [ - "W. Ramsay", - "M.W. Travers" - ] - }, - { - "id": "Na", - "atomicNumber": 11, - "mass": 22.98976928, - "exactMass": 22.98976928, - "ionization": 5.1391, - "electronAffinity": 0.547926, - "electronegativityPauling": 0.93, - "nameOrigin": "Arabic 'natrun' for 'soda'", - "radiusCovalent": 1.54, - "radiusVDW": 2.4, - "boilingpoint": 1156, - "meltingpoint": 371, - "periodTableBlock": "s", - "discoveryDate": "1807", - "period": "3", - "group": "1", - "electronicConfiguration": "Ne 3s1", - "family": "Alkali_Earth", - "symbol": "Na", - "name": "Sodium", - "elementColor": [ - 0.67, - 0.36, - 0.95 - ], - "discoveryCountry": [ - "uk" - ], - "discoverers": [ - "Sir", - "Humphrey", - "Davy" - ] - }, - { - "id": "Mg", - "atomicNumber": 12, - "mass": 24.305, - "exactMass": 23.9850417, - "ionization": 7.6462, - "electronAffinity": 0, - "electronegativityPauling": 1.31, - "nameOrigin": "Named after the city of Magnesia", - "radiusCovalent": 1.3, - "radiusVDW": 2.2, - "boilingpoint": 1380, - "meltingpoint": 922, - "periodTableBlock": "s", - "discoveryDate": "1808", - "period": "3", - "group": "2", - "electronicConfiguration": "Ne 3s2", - "family": "Alkaline_Earth", - "symbol": "Mg", - "name": "Magnesium", - "elementColor": [ - 0.54, - 1, - 0 - ], - "discoveryCountry": [ - "uk" - ], - "discoverers": [ - "H.", - "B.", - "Davy" - ] - }, - { - "id": "Al", - "atomicNumber": 13, - "mass": 26.9815386, - "exactMass": 26.98153863, - "ionization": 5.9858, - "electronAffinity": 0.43283, - "electronegativityPauling": 1.61, - "nameOrigin": "Latin 'alumen'", - "radiusCovalent": 1.18, - "radiusVDW": 2.1, - "boilingpoint": 2740, - "meltingpoint": 933.5, - "periodTableBlock": "p", - "discoveryDate": "1825", - "period": "3", - "group": "3", - "electronicConfiguration": "Ne 3s2 3p1", - "family": "Other_Metal", - "symbol": "Al", - "name": "Aluminium", - "elementColor": [ - 0.75, - 0.65, - 0.65 - ], - "discoveryCountry": [ - "dk" - ], - "discoverers": [ - "H.", - "Ch.", - "Oersted" - ] - }, - { - "id": "Si", - "atomicNumber": 14, - "mass": 28.0855, - "exactMass": 27.97692653, - "ionization": 8.1517, - "electronAffinity": 1.389521, - "electronegativityPauling": 1.9, - "nameOrigin": "Latin 'silex'", - "radiusCovalent": 1.11, - "radiusVDW": 2.1, - "boilingpoint": 2630, - "meltingpoint": 1683, - "periodTableBlock": "p", - "discoveryDate": "1823", - "period": "3", - "group": "4", - "electronicConfiguration": "Ne 3s2 3p2", - "family": "Metalloids", - "symbol": "Si", - "name": "Silicon", - "elementColor": [ - 0.5, - 0.6, - 0.6 - ], - "discoveryCountry": [ - "se" - ], - "discoverers": [ - "J.", - "J.", - "Berzelius" - ] - }, - { - "id": "P", - "atomicNumber": 15, - "mass": 30.973762, - "exactMass": 30.97376163, - "ionization": 10.4867, - "electronAffinity": 0.7465, - "electronegativityPauling": 2.19, - "nameOrigin": "Greek 'phosphoros' for 'carries light'", - "radiusCovalent": 1.06, - "radiusVDW": 1.95, - "boilingpoint": 553, - "meltingpoint": 317.3, - "periodTableBlock": "p", - "discoveryDate": "1669", - "period": "3", - "group": "5", - "electronicConfiguration": "Ne 3s2 3p3", - "family": "Non-Metal", - "symbol": "P", - "name": "Phosphorus", - "elementColor": [ - 1, - 0.5, - 0 - ], - "discoveryCountry": [ - "de" - ], - "discoverers": [ - "H.", - "Brandt" - ] - }, - { - "id": "S", - "atomicNumber": 16, - "mass": 32.065, - "exactMass": 31.972071, - "ionization": 10.36, - "electronAffinity": 2.0771029, - "electronegativityPauling": 2.58, - "nameOrigin": "In sanskrit 'sweb' means 'to sleep'", - "radiusCovalent": 1.02, - "radiusVDW": 1.8, - "boilingpoint": 717.82, - "meltingpoint": 392.2, - "periodTableBlock": "p", - "discoveryDate": "0", - "period": "3", - "group": "6", - "electronicConfiguration": "Ne 3s2 3p4", - "family": "Non-Metal", - "symbol": "S", - "name": "Sulfur", - "elementColor": [ - 1, - 1, - 0.19 - ], - "discoveryCountry": [ - "ancient" - ] - }, - { - "id": "Cl", - "atomicNumber": 17, - "mass": 35.453, - "exactMass": 34.96885268, - "ionization": 12.9676, - "electronAffinity": 3.612724, - "electronegativityPauling": 3.16, - "nameOrigin": "Greek 'chloros' for 'yellow-green'", - "radiusCovalent": 0.99, - "radiusVDW": 1.8, - "boilingpoint": 239.18, - "meltingpoint": 172.17, - "periodTableBlock": "p", - "discoveryDate": "1774", - "period": "3", - "group": "7", - "electronicConfiguration": "Ne 3s2 3p5", - "family": "Halogen", - "symbol": "Cl", - "name": "Chlorine", - "elementColor": [ - 0.12, - 0.94, - 0.12 - ], - "discoveryCountry": [ - "se" - ], - "discoverers": [ - "C.", - "W.", - "Scheele" - ] - }, - { - "id": "Ar", - "atomicNumber": 18, - "mass": 39.948, - "exactMass": 39.96238312, - "ionization": 15.7596, - "electronAffinity": 0, - "nameOrigin": "Greek 'aergon' for 'inactive'", - "radiusCovalent": 0.97, - "radiusVDW": 1.88, - "boilingpoint": 87.45, - "meltingpoint": 83.95, - "periodTableBlock": "p", - "discoveryDate": "1894", - "period": "3", - "group": "8", - "electronicConfiguration": "Ne 3s2 3p6", - "family": "Noblegas", - "symbol": "Ar", - "name": "Argon", - "elementColor": [ - 0.5, - 0.82, - 0.89 - ], - "discoveryCountry": [ - "uk" - ], - "discoverers": [ - "W. Ramsay", - "J. Rayleigh" - ] - }, - { - "id": "K", - "atomicNumber": 19, - "mass": 39.0983, - "exactMass": 38.96370668, - "ionization": 4.3407, - "electronAffinity": 0.501459, - "electronegativityPauling": 0.82, - "nameOrigin": "Arabic 'al qaliy' for potash", - "radiusCovalent": 1.96, - "radiusVDW": 2.8, - "boilingpoint": 1033, - "meltingpoint": 336.8, - "periodTableBlock": "s", - "discoveryDate": "1807", - "period": "4", - "group": "1", - "electronicConfiguration": "Ar 4s1", - "family": "Alkali_Earth", - "symbol": "K", - "name": "Potassium", - "elementColor": [ - 0.56, - 0.25, - 0.83 - ], - "discoveryCountry": [ - "uk" - ], - "discoverers": [ - "H.", - "B.", - "Davy" - ] - }, - { - "id": "Ca", - "atomicNumber": 20, - "mass": 40.078, - "exactMass": 39.96259098, - "ionization": 6.1132, - "electronAffinity": 0.02455, - "electronegativityPauling": 1, - "nameOrigin": "Latin 'calx' for 'lime'", - "radiusCovalent": 1.74, - "radiusVDW": 2.4, - "boilingpoint": 1757, - "meltingpoint": 1112, - "periodTableBlock": "s", - "discoveryDate": "1808", - "period": "4", - "group": "2", - "electronicConfiguration": "Ar 4s2", - "family": "Alkaline_Earth", - "symbol": "Ca", - "name": "Calcium", - "elementColor": [ - 0.24, - 1, - 0 - ], - "discoveryCountry": [ - "uk" - ], - "discoverers": [ - "H.", - "B.", - "Davy" - ] - }, - { - "id": "Sc", - "atomicNumber": 21, - "mass": 44.955912, - "exactMass": 44.9559119, - "ionization": 6.5615, - "electronAffinity": 0.188, - "electronegativityPauling": 1.36, - "nameOrigin": "Named because it was found in Scandinavia", - "radiusCovalent": 1.44, - "radiusVDW": 2.3, - "boilingpoint": 3109, - "meltingpoint": 1814, - "periodTableBlock": "d", - "discoveryDate": "1879", - "period": "4", - "group": "3", - "electronicConfiguration": "Ar 3d1 4s2", - "family": "Transition", - "symbol": "Sc", - "name": "Scandium", - "elementColor": [ - 0.9, - 0.9, - 0.9 - ], - "discoveryCountry": [ - "se" - ], - "discoverers": [ - "L.", - "Nilson" - ] - }, - { - "id": "Ti", - "atomicNumber": 22, - "mass": 47.867, - "exactMass": 47.9479463, - "ionization": 6.8281, - "electronAffinity": 0.084, - "electronegativityPauling": 1.54, - "nameOrigin": "The Titans were giants in Greek mythology", - "radiusCovalent": 1.36, - "radiusVDW": 2.15, - "boilingpoint": 3560, - "meltingpoint": 1935, - "periodTableBlock": "d", - "discoveryDate": "1791", - "period": "4", - "group": "4", - "electronicConfiguration": "Ar 3d2 4s2", - "family": "Transition", - "symbol": "Ti", - "name": "Titanium", - "elementColor": [ - 0.75, - 0.76, - 0.78 - ], - "discoveryCountry": [ - "uk" - ], - "discoverers": [ - "W.", - "Gregor" - ] - }, - { - "id": "V", - "atomicNumber": 23, - "mass": 50.9415, - "exactMass": 50.9439595, - "ionization": 6.7462, - "electronAffinity": 0.525, - "electronegativityPauling": 1.63, - "nameOrigin": "'Vanadis' is another name for the Nordic goddess Freyja", - "radiusCovalent": 1.25, - "radiusVDW": 2.05, - "boilingpoint": 3650, - "meltingpoint": 2163, - "periodTableBlock": "d", - "discoveryDate": "1830", - "period": "4", - "group": "5", - "electronicConfiguration": "Ar 3d3 4s2", - "family": "Transition", - "symbol": "V", - "name": "Vanadium", - "elementColor": [ - 0.65, - 0.65, - 0.67 - ], - "discoveryCountry": [ - "se" - ], - "discoverers": [ - "N.", - "Sefström" - ] - }, - { - "id": "Cr", - "atomicNumber": 24, - "mass": 51.9961, - "exactMass": 51.9405075, - "ionization": 6.7665, - "electronAffinity": 0.67584, - "electronegativityPauling": 1.66, - "nameOrigin": "Greek 'chroma' means 'color'", - "radiusCovalent": 1.27, - "radiusVDW": 2.05, - "boilingpoint": 2945, - "meltingpoint": 2130, - "periodTableBlock": "d", - "discoveryDate": "1797", - "period": "4", - "group": "6", - "electronicConfiguration": "Ar 3d5 4s1", - "family": "Transition", - "symbol": "Cr", - "name": "Chromium", - "elementColor": [ - 0.54, - 0.6, - 0.78 - ], - "discoveryCountry": [ - "fr" - ], - "discoverers": [ - "Nicholas", - "Louis", - "Vauquelin" - ] - }, - { - "id": "Mn", - "atomicNumber": 25, - "mass": 54.938045, - "exactMass": 54.9380451, - "ionization": 7.434, - "electronAffinity": 0, - "electronegativityPauling": 1.55, - "nameOrigin": "It was discovered near a town named Magnesia in black earth. Thus, it was named 'magnesia nigra', or for short, Manganese.", - "radiusCovalent": 1.39, - "radiusVDW": 2.05, - "boilingpoint": 2235, - "meltingpoint": 1518, - "periodTableBlock": "d", - "discoveryDate": "1774", - "period": "4", - "group": "7", - "electronicConfiguration": "Ar 3d5 4s2", - "family": "Transition", - "symbol": "Mn", - "name": "Manganese", - "elementColor": [ - 0.61, - 0.48, - 0.78 - ], - "discoveryCountry": [ - "se" - ], - "discoverers": [ - "C.", - "W.", - "Scheele" - ] - }, - { - "id": "Fe", - "atomicNumber": 26, - "mass": 55.845, - "exactMass": 55.9349375, - "ionization": 7.9024, - "electronAffinity": 0.151, - "electronegativityPauling": 1.83, - "nameOrigin": "Latin 'ferrum'", - "radiusCovalent": 1.25, - "radiusVDW": 2.05, - "boilingpoint": 3023, - "meltingpoint": 1808, - "periodTableBlock": "d", - "discoveryDate": "0", - "period": "4", - "group": "8", - "electronicConfiguration": "Ar 3d6 4s2", - "family": "Transition", - "symbol": "Fe", - "name": "Iron", - "elementColor": [ - 0.5, - 0.48, - 0.78 - ], - "discoveryCountry": [ - "ancient" - ] - }, - { - "id": "Co", - "atomicNumber": 27, - "mass": 58.933195, - "exactMass": 58.933195, - "ionization": 7.881, - "electronAffinity": 0.6633, - "electronegativityPauling": 1.88, - "nameOrigin": "Named after the German word 'Kobold' for 'goblin'", - "radiusCovalent": 1.26, - "radiusVDW": 2, - "boilingpoint": 3143, - "meltingpoint": 1768, - "periodTableBlock": "d", - "discoveryDate": "1737", - "period": "4", - "group": "8", - "electronicConfiguration": "Ar 3d7 4s2", - "family": "Transition", - "symbol": "Co", - "name": "Cobalt", - "elementColor": [ - 0.44, - 0.48, - 0.78 - ], - "discoveryCountry": [ - "se" - ], - "discoverers": [ - "G.", - "Brandt" - ] - }, - { - "id": "Ni", - "atomicNumber": 28, - "mass": 58.6934, - "exactMass": 57.9353429, - "ionization": 7.6398, - "electronAffinity": 1.15716, - "electronegativityPauling": 1.91, - "nameOrigin": "'Nickel' was the name of a mountain goblin", - "radiusCovalent": 1.21, - "radiusVDW": 2, - "boilingpoint": 3005, - "meltingpoint": 1726, - "periodTableBlock": "d", - "discoveryDate": "1751", - "period": "4", - "group": "8", - "electronicConfiguration": "Ar 3d8 4s2", - "family": "Transition", - "symbol": "Ni", - "name": "Nickel", - "elementColor": [ - 0.36, - 0.48, - 0.76 - ], - "discoveryCountry": [ - "se" - ], - "discoverers": [ - "A.", - "F.", - "Cronstedt" - ] - }, - { - "id": "Cu", - "atomicNumber": 29, - "mass": 63.546, - "exactMass": 62.9295975, - "ionization": 7.7264, - "electronAffinity": 1.23578, - "electronegativityPauling": 1.9, - "nameOrigin": "Greek 'cuprum' for Cypres", - "radiusCovalent": 1.38, - "radiusVDW": 2, - "boilingpoint": 2840, - "meltingpoint": 1356.6, - "periodTableBlock": "d", - "discoveryDate": "0", - "period": "4", - "group": "1", - "electronicConfiguration": "Ar 3d10 4s1", - "family": "Transition", - "symbol": "Cu", - "name": "Copper", - "elementColor": [ - 1, - 0.48, - 0.38 - ], - "discoveryCountry": [ - "ancient" - ] - }, - { - "id": "Zn", - "atomicNumber": 30, - "mass": 65.38, - "exactMass": 63.9291422, - "ionization": 9.3942, - "electronAffinity": 0, - "electronegativityPauling": 1.65, - "nameOrigin": "German 'zinking' for 'rough', because zinc ore is very rough", - "radiusCovalent": 1.31, - "radiusVDW": 2.1, - "boilingpoint": 1180, - "meltingpoint": 692.73, - "periodTableBlock": "d", - "discoveryDate": "1746", - "period": "4", - "group": "2", - "electronicConfiguration": "Ar 3d10 4s2", - "family": "Transition", - "symbol": "Zn", - "name": "Zinc", - "elementColor": [ - 0.49, - 0.5, - 0.69 - ], - "discoveryCountry": [ - "de" - ], - "discoverers": [ - "Andreas", - "Marggraf" - ] - }, - { - "id": "Ga", - "atomicNumber": 31, - "mass": 69.723, - "exactMass": 68.9255736, - "ionization": 5.9993, - "electronAffinity": 0.41, - "electronegativityPauling": 1.81, - "nameOrigin": "'Gallia' is an old name for France", - "radiusCovalent": 1.26, - "radiusVDW": 2.1, - "boilingpoint": 2478, - "meltingpoint": 302.92, - "periodTableBlock": "p", - "discoveryDate": "1875", - "period": "4", - "group": "3", - "electronicConfiguration": "Ar 3d10 4s2 4p1", - "family": "Other_Metal", - "symbol": "Ga", - "name": "Gallium", - "elementColor": [ - 0.76, - 0.56, - 0.56 - ], - "discoveryCountry": [ - "fr" - ], - "discoverers": [ - "P.", - "E.", - "Lecoq", - "de", - "Boisbaudran" - ] - }, - { - "id": "Ge", - "atomicNumber": 32, - "mass": 72.64, - "exactMass": 73.9211778, - "ionization": 7.8994, - "electronAffinity": 1.232712, - "electronegativityPauling": 2.01, - "nameOrigin": "Latin 'germania' is an old name for Germany", - "radiusCovalent": 1.22, - "radiusVDW": 2.1, - "boilingpoint": 3107, - "meltingpoint": 1211.5, - "periodTableBlock": "p", - "discoveryDate": "1886", - "period": "4", - "group": "4", - "electronicConfiguration": "Ar 3d10 4s2 4p2", - "family": "Metalloids", - "symbol": "Ge", - "name": "Germanium", - "elementColor": [ - 0.4, - 0.56, - 0.56 - ], - "discoveryCountry": [ - "de" - ], - "discoverers": [ - "C.", - "A.", - "Winkler" - ] - }, - { - "id": "As", - "atomicNumber": 33, - "mass": 74.9216, - "exactMass": 74.9215965, - "ionization": 9.7886, - "electronAffinity": 0.814, - "electronegativityPauling": 2.18, - "nameOrigin": "Greek 'arsenikos' for 'male' or 'bold'", - "radiusCovalent": 1.19, - "radiusVDW": 2.05, - "boilingpoint": 876, - "meltingpoint": 1090, - "periodTableBlock": "p", - "discoveryDate": "0", - "period": "4", - "group": "5", - "electronicConfiguration": "Ar 3d10 4s2 4p3", - "family": "Metalloids", - "symbol": "As", - "name": "Arsenic", - "elementColor": [ - 0.74, - 0.5, - 0.89 - ], - "discoveryCountry": [ - "ancient" - ] - }, - { - "id": "Se", - "atomicNumber": 34, - "mass": 78.96, - "exactMass": 79.9165213, - "ionization": 9.7524, - "electronAffinity": 2.02067, - "electronegativityPauling": 2.55, - "nameOrigin": "Greek 'selena' for 'moon'", - "radiusCovalent": 1.16, - "radiusVDW": 1.9, - "boilingpoint": 958, - "meltingpoint": 494, - "periodTableBlock": "p", - "discoveryDate": "1817", - "period": "4", - "group": "6", - "electronicConfiguration": "Ar 3d10 4s2 4p4", - "family": "Non-Metal", - "symbol": "Se", - "name": "Selenium", - "elementColor": [ - 1, - 0.63, - 0 - ], - "discoveryCountry": [ - "se" - ], - "discoverers": [ - "J.", - "J.", - "Berzelius" - ] - }, - { - "id": "Br", - "atomicNumber": 35, - "mass": 79.904, - "exactMass": 78.9183371, - "ionization": 11.8138, - "electronAffinity": 3.363588, - "electronegativityPauling": 2.96, - "nameOrigin": "Greek 'bromos' for 'smells badly'", - "radiusCovalent": 1.14, - "radiusVDW": 1.9, - "boilingpoint": 331.85, - "meltingpoint": 265.95, - "periodTableBlock": "p", - "discoveryDate": "1826", - "period": "4", - "group": "7", - "electronicConfiguration": "Ar 3d10 4s2 4p5", - "family": "Halogen", - "symbol": "Br", - "name": "Bromine", - "elementColor": [ - 0.65, - 0.16, - 0.16 - ], - "discoveryCountry": [ - "fr" - ], - "discoverers": [ - "A.", - "J.", - "Balard" - ] - }, - { - "id": "Kr", - "atomicNumber": 36, - "mass": 83.798, - "exactMass": 83.911507, - "ionization": 13.9996, - "electronAffinity": 0, - "electronegativityPauling": 3, - "nameOrigin": "Greek 'kryptos' for 'hidden'", - "radiusCovalent": 1.1, - "radiusVDW": 2.02, - "boilingpoint": 120.85, - "meltingpoint": 116, - "periodTableBlock": "p", - "discoveryDate": "1898", - "period": "4", - "group": "8", - "electronicConfiguration": "Ar 3d10 4s2 4p6", - "family": "Noblegas", - "symbol": "Kr", - "name": "Krypton", - "elementColor": [ - 0.36, - 0.72, - 0.82 - ], - "discoveryCountry": [ - "uk" - ], - "discoverers": [ - "W. Ramsay", - "M. W. Travers" - ] - }, - { - "id": "Rb", - "atomicNumber": 37, - "mass": 85.4678, - "exactMass": 84.91178974, - "ionization": 4.1771, - "electronAffinity": 0.485916, - "electronegativityPauling": 0.82, - "nameOrigin": "Latin 'rubidus' for 'dark red'", - "radiusCovalent": 2.11, - "radiusVDW": 2.9, - "boilingpoint": 961, - "meltingpoint": 312.63, - "periodTableBlock": "s", - "discoveryDate": "1861", - "period": "5", - "group": "1", - "electronicConfiguration": "Kr 5s1", - "family": "Alkali_Earth", - "symbol": "Rb", - "name": "Rubidium", - "elementColor": [ - 0.44, - 0.18, - 0.69 - ], - "discoveryCountry": [ - "de" - ], - "discoverers": [ - "Robert W. Bunsen", - "Gustav R. Kirchhoff" - ] - }, - { - "id": "Sr", - "atomicNumber": 38, - "mass": 87.62, - "exactMass": 87.9056121, - "ionization": 5.6949, - "electronAffinity": 0.05206, - "electronegativityPauling": 0.95, - "nameOrigin": "Named after the mineral Strontianit", - "radiusCovalent": 1.92, - "radiusVDW": 2.55, - "boilingpoint": 1655, - "meltingpoint": 1042, - "periodTableBlock": "s", - "discoveryDate": "1790", - "period": "5", - "group": "2", - "electronicConfiguration": "Kr 5s2", - "family": "Alkaline_Earth", - "symbol": "Sr", - "name": "Strontium", - "elementColor": [ - 0, - 1, - 0 - ], - "discoveryCountry": [ - "uk" - ], - "discoverers": [ - "H.", - "B.", - "Davy" - ] - }, - { - "id": "Y", - "atomicNumber": 39, - "mass": 88.90585, - "exactMass": 88.9058483, - "ionization": 6.2173, - "electronAffinity": 0.307, - "electronegativityPauling": 1.22, - "nameOrigin": "Named after the small town of Ytterby near Stockholm in Sweden. Terbium. Ytterbium and Gadolinium are also named after this town.", - "radiusCovalent": 1.62, - "radiusVDW": 2.4, - "boilingpoint": 3611, - "meltingpoint": 1795, - "periodTableBlock": "d", - "discoveryDate": "1794", - "period": "5", - "group": "3", - "electronicConfiguration": "Kr 4d1 5s2", - "family": "Transition", - "symbol": "Y", - "name": "Yttrium", - "elementColor": [ - 0.58, - 1, - 1 - ], - "discoveryCountry": [ - "fi" - ], - "discoverers": [ - "Johann", - "Gadolin" - ] - }, - { - "id": "Zr", - "atomicNumber": 40, - "mass": 91.224, - "exactMass": 89.9047044, - "ionization": 6.6339, - "electronAffinity": 0.426, - "electronegativityPauling": 1.33, - "nameOrigin": "Named after the mineral zircon", - "radiusCovalent": 1.48, - "radiusVDW": 2.3, - "boilingpoint": 4682, - "meltingpoint": 2128, - "periodTableBlock": "d", - "discoveryDate": "1789", - "period": "5", - "group": "4", - "electronicConfiguration": "Kr 4d2 5s2", - "family": "Transition", - "symbol": "Zr", - "name": "Zirconium", - "elementColor": [ - 0.58, - 0.88, - 0.88 - ], - "discoveryCountry": [ - "de" - ], - "discoverers": [ - "Martin", - "Heinrich", - "Klaproth" - ] - }, - { - "id": "Nb", - "atomicNumber": 41, - "mass": 92.90638, - "exactMass": 92.9063781, - "ionization": 6.7589, - "electronAffinity": 0.893, - "electronegativityPauling": 1.6, - "nameOrigin": "Named after Niobe, the daughter of the Greek god Tantalus.", - "radiusCovalent": 1.37, - "radiusVDW": 2.15, - "boilingpoint": 5015, - "meltingpoint": 2742, - "periodTableBlock": "d", - "discoveryDate": "1801", - "period": "5", - "group": "5", - "electronicConfiguration": "Kr 4d4", - "family": "Transition", - "symbol": "Nb", - "name": "Niobium", - "elementColor": [ - 0.45, - 0.76, - 0.79 - ], - "discoveryCountry": [ - "uk" - ], - "discoverers": [ - "Ch.", - "Hatchett" - ] - }, - { - "id": "Mo", - "atomicNumber": 42, - "mass": 95.96, - "exactMass": 97.9054082, - "ionization": 7.0924, - "electronAffinity": 0.7472, - "electronegativityPauling": 2.16, - "nameOrigin": "This name has Greek roots. It means 'like Platinum' - it was difficult to distinguish Molybdenum from Platinum.", - "radiusCovalent": 1.45, - "radiusVDW": 2.1, - "boilingpoint": 4912, - "meltingpoint": 2896, - "periodTableBlock": "d", - "discoveryDate": "1778", - "period": "5", - "group": "6", - "electronicConfiguration": "Kr 4d5 5s1", - "family": "Transition", - "symbol": "Mo", - "name": "Molybdenum", - "elementColor": [ - 0.33, - 0.71, - 0.71 - ], - "discoveryCountry": [ - "se" - ], - "discoverers": [ - "C.", - "W.", - "Scheele" - ] - }, - { - "id": "Tc", - "atomicNumber": 43, - "mass": 98, - "exactMass": 97.907216, - "ionization": 7.28, - "electronAffinity": 0.55, - "electronegativityPauling": 1.9, - "nameOrigin": "Greek 'technetos' for artificial", - "radiusCovalent": 1.56, - "radiusVDW": 2.05, - "boilingpoint": 4538, - "meltingpoint": 2477, - "periodTableBlock": "d", - "discoveryDate": "1937", - "period": "5", - "group": "7", - "electronicConfiguration": "Kr 4d6 5s1", - "family": "Transition", - "symbol": "Tc", - "name": "Technetium", - "elementColor": [ - 0.23, - 0.62, - 0.62 - ], - "discoveryCountry": [ - "it" - ], - "discoverers": [ - "C. Perrier", - "E. G. Segre" - ] - }, - { - "id": "Ru", - "atomicNumber": 44, - "mass": 101.07, - "exactMass": 101.9043493, - "ionization": 7.3605, - "electronAffinity": 1.04638, - "electronegativityPauling": 2.2, - "nameOrigin": "Ruthenia is the old name of Russia", - "radiusCovalent": 1.26, - "radiusVDW": 2.05, - "boilingpoint": 4425, - "meltingpoint": 2610, - "periodTableBlock": "d", - "discoveryDate": "1844", - "period": "5", - "group": "8", - "electronicConfiguration": "Kr 4d7 5s1", - "family": "Transition", - "symbol": "Ru", - "name": "Ruthenium", - "elementColor": [ - 0.14, - 0.56, - 0.56 - ], - "discoveryCountry": [ - "ru" - ], - "discoverers": [ - "K.", - "Klaus" - ] - }, - { - "id": "Rh", - "atomicNumber": 45, - "mass": 102.9055, - "exactMass": 102.905504, - "ionization": 7.4589, - "electronAffinity": 1.14289, - "electronegativityPauling": 2.28, - "nameOrigin": "Greek 'rhodeos' means 'red like a rose'", - "radiusCovalent": 1.35, - "radiusVDW": 2, - "boilingpoint": 3970, - "meltingpoint": 2236, - "periodTableBlock": "d", - "discoveryDate": "1803", - "period": "5", - "group": "8", - "electronicConfiguration": "Kr 4d8 5s1", - "family": "Transition", - "symbol": "Rh", - "name": "Rhodium", - "elementColor": [ - 0.04, - 0.49, - 0.55 - ], - "discoveryCountry": [ - "uk" - ], - "discoverers": [ - "W.", - "Wollaston" - ] - }, - { - "id": "Pd", - "atomicNumber": 46, - "mass": 106.42, - "exactMass": 105.903486, - "ionization": 8.3369, - "electronAffinity": 0.56214, - "electronegativityPauling": 2.2, - "nameOrigin": "Named after the asteroid Pallas", - "radiusCovalent": 1.31, - "radiusVDW": 2.05, - "boilingpoint": 3240, - "meltingpoint": 1825, - "periodTableBlock": "d", - "discoveryDate": "1803", - "period": "5", - "group": "8", - "electronicConfiguration": "Kr 4d10", - "family": "Transition", - "symbol": "Pd", - "name": "Palladium", - "elementColor": [ - 0, - 0.41, - 0.52 - ], - "discoveryCountry": [ - "uk" - ] - }, - { - "id": "Ag", - "atomicNumber": 47, - "mass": 107.8682, - "exactMass": 106.905097, - "ionization": 7.5762, - "electronAffinity": 1.30447, - "electronegativityPauling": 1.93, - "nameOrigin": "Latin 'argentum' for silver", - "radiusCovalent": 1.53, - "radiusVDW": 2.1, - "boilingpoint": 2436, - "meltingpoint": 1235.1, - "periodTableBlock": "d", - "discoveryDate": "0", - "period": "5", - "group": "1", - "electronicConfiguration": "Kr 4d10 5s1", - "family": "Transition", - "symbol": "Ag", - "name": "Silver", - "elementColor": [ - 0.88, - 0.88, - 1 - ], - "discoveryCountry": [ - "ancient" - ] - }, - { - "id": "Cd", - "atomicNumber": 48, - "mass": 112.411, - "exactMass": 113.9033585, - "ionization": 8.9938, - "electronAffinity": 0, - "electronegativityPauling": 1.69, - "nameOrigin": "Greek 'kadmia' ('Galmei' = Zinc carbonate)", - "radiusCovalent": 1.48, - "radiusVDW": 2.2, - "boilingpoint": 1040, - "meltingpoint": 594.26, - "periodTableBlock": "d", - "discoveryDate": "1817", - "period": "5", - "group": "2", - "electronicConfiguration": "Kr 4d10 5s2", - "family": "Transition", - "symbol": "Cd", - "name": "Cadmium", - "elementColor": [ - 1, - 0.85, - 0.56 - ], - "discoveryCountry": [ - "de" - ], - "discoverers": [ - "F.", - "Stromeyer" - ] - }, - { - "id": "In", - "atomicNumber": 49, - "mass": 114.818, - "exactMass": 114.903878, - "ionization": 5.7864, - "electronAffinity": 0.404, - "electronegativityPauling": 1.78, - "nameOrigin": "Named after 'Indigo' because of its blue spectrum", - "radiusCovalent": 1.44, - "radiusVDW": 2.2, - "boilingpoint": 2350, - "meltingpoint": 429.78, - "periodTableBlock": "p", - "discoveryDate": "1863", - "period": "5", - "group": "3", - "electronicConfiguration": "Kr 4d10 5s2 5p1", - "family": "Other_Metal", - "symbol": "In", - "name": "Indium", - "elementColor": [ - 0.65, - 0.46, - 0.45 - ], - "discoveryCountry": [ - "de" - ], - "discoverers": [ - "F. Reich", - "H.T. Richter" - ] - }, - { - "id": "Sn", - "atomicNumber": 50, - "mass": 118.71, - "exactMass": 119.9021947, - "ionization": 7.3439, - "electronAffinity": 1.112066, - "electronegativityPauling": 1.96, - "nameOrigin": "Latin 'stannum' for tin", - "radiusCovalent": 1.41, - "radiusVDW": 2.25, - "boilingpoint": 2876, - "meltingpoint": 505.12, - "periodTableBlock": "p", - "discoveryDate": "0", - "period": "5", - "group": "4", - "electronicConfiguration": "Kr 4d10 5s2 5p2", - "family": "Other_Metal", - "symbol": "Sn", - "name": "Tin", - "elementColor": [ - 0.4, - 0.5, - 0.5 - ], - "discoveryCountry": [ - "ancient" - ] - }, - { - "id": "Sb", - "atomicNumber": 51, - "mass": 121.76, - "exactMass": 120.9038157, - "ionization": 8.6084, - "electronAffinity": 1.047401, - "electronegativityPauling": 2.05, - "nameOrigin": "Arabic 'anthos ammonos' for 'blossom of the god Ammon'", - "radiusCovalent": 1.38, - "radiusVDW": 2.2, - "boilingpoint": 1860, - "meltingpoint": 903.91, - "periodTableBlock": "p", - "discoveryDate": "0", - "period": "5", - "group": "5", - "electronicConfiguration": "Kr 4d10 5s2 5p3", - "family": "Metalloids", - "symbol": "Sb", - "name": "Antimony", - "elementColor": [ - 0.62, - 0.39, - 0.71 - ], - "discoveryCountry": [ - "ancient" - ] - }, - { - "id": "Te", - "atomicNumber": 52, - "mass": 127.6, - "exactMass": 129.9062244, - "ionization": 9.0096, - "electronAffinity": 1.970875, - "electronegativityPauling": 2.1, - "nameOrigin": "Latin 'tellus' or 'telluris' for 'Planet Earth'", - "radiusCovalent": 1.35, - "radiusVDW": 2.1, - "boilingpoint": 1261, - "meltingpoint": 722.72, - "periodTableBlock": "p", - "discoveryDate": "1782", - "period": "5", - "group": "6", - "electronicConfiguration": "Kr 4d10 5s2 5p4", - "family": "Metalloids", - "symbol": "Te", - "name": "Tellurium", - "elementColor": [ - 0.83, - 0.48, - 0 - ], - "discoveryCountry": [ - "de" - ], - "discoverers": [ - "Franz", - "Joseph", - "Muller", - "von", - "Reichstein" - ] - }, - { - "id": "I", - "atomicNumber": 53, - "mass": 126.90447, - "exactMass": 126.904473, - "ionization": 10.4513, - "electronAffinity": 3.059038, - "electronegativityPauling": 2.66, - "nameOrigin": "Greek 'ioeides' for 'violet'.", - "radiusCovalent": 1.33, - "radiusVDW": 2.1, - "boilingpoint": 457.5, - "meltingpoint": 386.7, - "periodTableBlock": "p", - "discoveryDate": "1811", - "period": "5", - "group": "7", - "electronicConfiguration": "Kr 4d10 5s2 5p5", - "family": "Halogen", - "symbol": "I", - "name": "Iodine", - "elementColor": [ - 0.58, - 0, - 0.58 - ], - "discoveryCountry": [ - "fr" - ], - "discoverers": [ - "Bernard", - "Courtois" - ] - }, - { - "id": "Xe", - "atomicNumber": 54, - "mass": 131.293, - "exactMass": 131.9041535, - "ionization": 12.1298, - "electronAffinity": 0, - "electronegativityPauling": 2.6, - "nameOrigin": "Greek 'xenos' for 'foreigner'", - "radiusCovalent": 1.3, - "radiusVDW": 2.16, - "boilingpoint": 165.1, - "meltingpoint": 161.39, - "periodTableBlock": "p", - "discoveryDate": "1898", - "period": "5", - "group": "8", - "electronicConfiguration": "Kr 4d10 5s2 5p6", - "family": "Noblegas", - "symbol": "Xe", - "name": "Xenon", - "elementColor": [ - 0.26, - 0.62, - 0.69 - ], - "discoveryCountry": [ - "uk" - ], - "discoverers": [ - "W. Ramsay", - "M. W. Travers" - ] - }, - { - "id": "Cs", - "atomicNumber": 55, - "mass": 132.9054519, - "exactMass": 132.9054519, - "ionization": 3.8939, - "electronAffinity": 0.471626, - "electronegativityPauling": 0.79, - "nameOrigin": "Latin 'caesius' for 'heaven blue'.", - "radiusCovalent": 2.25, - "radiusVDW": 3, - "boilingpoint": 944, - "meltingpoint": 301.54, - "periodTableBlock": "s", - "discoveryDate": "1860", - "period": "6", - "group": "1", - "electronicConfiguration": "Xe 6s1", - "family": "Alkali_Earth", - "symbol": "Cs", - "name": "Caesium", - "elementColor": [ - 0.34, - 0.09, - 0.56 - ], - "discoveryCountry": [ - "de" - ], - "discoverers": [ - "Robert Wilhelm Bunsen", - "Gustav Robert Kirchhoff" - ] - }, - { - "id": "Ba", - "atomicNumber": 56, - "mass": 137.327, - "exactMass": 137.9052472, - "ionization": 5.2117, - "electronAffinity": 0.14462, - "electronegativityPauling": 0.89, - "nameOrigin": "Greek 'barys' for 'heavy'", - "radiusCovalent": 1.98, - "radiusVDW": 2.7, - "boilingpoint": 2078, - "meltingpoint": 1002, - "periodTableBlock": "s", - "discoveryDate": "1808", - "period": "6", - "group": "2", - "electronicConfiguration": "Xe 6s2", - "family": "Alkaline_Earth", - "symbol": "Ba", - "name": "Barium", - "elementColor": [ - 0, - 0.79, - 0 - ], - "discoveryCountry": [ - "uk" - ], - "discoverers": [ - "Humphry", - "Bartholomew", - "Davy" - ] - }, - { - "id": "La", - "atomicNumber": 57, - "mass": 138.90547, - "exactMass": 138.9063533, - "ionization": 5.5769, - "electronAffinity": 0.47, - "electronegativityPauling": 1.1, - "nameOrigin": "Greek 'lanthanein' for 'hidden'. The Lanthanoids are also called the 'rare earth' elements.", - "radiusCovalent": 1.69, - "radiusVDW": 2.5, - "boilingpoint": 3737, - "meltingpoint": 1191, - "periodTableBlock": "f", - "discoveryDate": "1839", - "period": "6", - "group": "3", - "electronicConfiguration": "Xe 5d1 6s2", - "family": "Rare_Earth", - "symbol": "La", - "name": "Lanthanum", - "elementColor": [ - 0.44, - 0.83, - 1 - ], - "discoveryCountry": [ - "se" - ], - "discoverers": [ - "K.", - "G.", - "Mosander" - ] - }, - { - "id": "Ce", - "atomicNumber": 58, - "mass": 140.116, - "exactMass": 139.9054387, - "ionization": 5.5387, - "electronAffinity": 0.5, - "electronegativityPauling": 1.12, - "nameOrigin": "Named after the planetoid Ceres", - "radiusVDW": 2.48, - "boilingpoint": 3715, - "meltingpoint": 1071, - "periodTableBlock": "f", - "discoveryDate": "1803", - "period": "6", - "group": "4", - "electronicConfiguration": "Xe 4f1 5d1 6s2", - "family": "Rare_Earth", - "symbol": "Ce", - "name": "Cerium", - "elementColor": [ - 1, - 1, - 0.78 - ], - "discoverers": [ - "Jöns Jacob Berzelius", - "W. Hisinger", - "M. Klaproth" - ] - }, - { - "id": "Pr", - "atomicNumber": 59, - "mass": 140.90765, - "exactMass": 140.9076528, - "ionization": 5.473, - "electronAffinity": 0.5, - "electronegativityPauling": 1.13, - "nameOrigin": "Greek 'prasinos didymos' for 'green twin'", - "radiusVDW": 2.47, - "boilingpoint": 3785, - "meltingpoint": 1204, - "periodTableBlock": "f", - "discoveryDate": "1885", - "period": "6", - "group": "5", - "electronicConfiguration": "Xe 4f3 6s2", - "family": "Rare_Earth", - "symbol": "Pr", - "name": "Praseodymium", - "elementColor": [ - 0.85, - 1, - 0.78 - ], - "discoverers": [ - "Carl", - "F.", - "Auer", - "von", - "Welsbach" - ] - }, - { - "id": "Nd", - "atomicNumber": 60, - "mass": 144.242, - "exactMass": 141.9077233, - "ionization": 5.525, - "electronAffinity": 0.5, - "electronegativityPauling": 1.14, - "nameOrigin": "Greek 'neos didymos' for 'new twin'", - "radiusVDW": 2.45, - "boilingpoint": 3347, - "meltingpoint": 1294, - "periodTableBlock": "f", - "discoveryDate": "1885", - "period": "6", - "group": "6", - "electronicConfiguration": "Xe 4f4 6s2", - "family": "Rare_Earth", - "symbol": "Nd", - "name": "Neodymium", - "elementColor": [ - 0.78, - 1, - 0.78 - ], - "discoverers": [ - "Carl", - "F.", - "Auer", - "von", - "Welsbach" - ] - }, - { - "id": "Pm", - "atomicNumber": 61, - "mass": 145, - "exactMass": 144.912749, - "ionization": 5.582, - "electronAffinity": 0.5, - "nameOrigin": "Named after the Greek Prometheus. Prometheus stole the fire from the gods and gave it to mankind.", - "radiusVDW": 2.43, - "boilingpoint": 3273, - "meltingpoint": 1315, - "periodTableBlock": "f", - "discoveryDate": "1945", - "period": "6", - "group": "7", - "electronicConfiguration": "Xe 4f5 6s2", - "family": "Rare_Earth", - "symbol": "Pm", - "name": "Promethium", - "elementColor": [ - 0.64, - 1, - 0.78 - ], - "discoverers": [ - "J. A. Marinsky", - "C. D. Coryell", - "L. E. Glendenin" - ] - }, - { - "id": "Sm", - "atomicNumber": 62, - "mass": 150.36, - "exactMass": 151.9197324, - "ionization": 5.6437, - "electronAffinity": 0.5, - "electronegativityPauling": 1.17, - "nameOrigin": "Named after the mineral Samarskit", - "radiusVDW": 2.42, - "boilingpoint": 2067, - "meltingpoint": 1347, - "periodTableBlock": "f", - "discoveryDate": "1879", - "period": "6", - "group": "8", - "electronicConfiguration": "Xe 4f6 6s2", - "family": "Rare_Earth", - "symbol": "Sm", - "name": "Samarium", - "elementColor": [ - 0.56, - 1, - 0.78 - ], - "discoverers": [ - "P.", - "Lecoq", - "de", - "Boisbaudran" - ] - }, - { - "id": "Eu", - "atomicNumber": 63, - "mass": 151.964, - "exactMass": 152.9212303, - "ionization": 5.6704, - "electronAffinity": 0.5, - "nameOrigin": "Named after Europe", - "radiusVDW": 2.4, - "boilingpoint": 1800, - "meltingpoint": 1095, - "periodTableBlock": "f", - "discoveryDate": "1901", - "period": "6", - "group": "8", - "electronicConfiguration": "Xe 4f7 6s2", - "family": "Rare_Earth", - "symbol": "Eu", - "name": "Europium", - "elementColor": [ - 0.38, - 1, - 0.78 - ], - "discoverers": [ - "E.", - "A.", - "Demarcay" - ] - }, - { - "id": "Gd", - "atomicNumber": 64, - "mass": 157.25, - "exactMass": 157.9241039, - "ionization": 6.1498, - "electronAffinity": 0.5, - "electronegativityPauling": 1.2, - "nameOrigin": "Named after the Finnish chemist Johan Gadolin", - "radiusVDW": 2.38, - "boilingpoint": 3545, - "meltingpoint": 1585, - "periodTableBlock": "f", - "discoveryDate": "1880", - "period": "6", - "group": "8", - "electronicConfiguration": "Xe 4f7 5d1 6s2", - "family": "Rare_Earth", - "symbol": "Gd", - "name": "Gadolinium", - "elementColor": [ - 0.27, - 1, - 0.78 - ], - "discoverers": [ - "Jean", - "de", - "Marignac" - ] - }, - { - "id": "Tb", - "atomicNumber": 65, - "mass": 158.92535, - "exactMass": 158.9253468, - "ionization": 5.8638, - "electronAffinity": 0.5, - "nameOrigin": "Named after the Swedish town of Ytterby", - "radiusVDW": 2.37, - "boilingpoint": 3500, - "meltingpoint": 1629, - "periodTableBlock": "f", - "discoveryDate": "1843", - "period": "6", - "group": "1", - "electronicConfiguration": "Xe 4f9 6s2", - "family": "Rare_Earth", - "symbol": "Tb", - "name": "Terbium", - "elementColor": [ - 0.19, - 1, - 0.78 - ], - "discoverers": [ - "K.", - "G.", - "Mosander" - ] - }, - { - "id": "Dy", - "atomicNumber": 66, - "mass": 162.5, - "exactMass": 163.9291748, - "ionization": 5.9389, - "electronAffinity": 0.5, - "electronegativityPauling": 1.22, - "nameOrigin": "Greek 'dysprositor' for 'difficult to reach'", - "radiusVDW": 2.35, - "boilingpoint": 2840, - "meltingpoint": 1685, - "periodTableBlock": "f", - "discoveryDate": "1886", - "period": "6", - "group": "2", - "electronicConfiguration": "Xe 4f10 6s2", - "family": "Rare_Earth", - "symbol": "Dy", - "name": "Dysprosium", - "elementColor": [ - 0.12, - 1, - 0.78 - ], - "discoverers": [ - "F.", - "E.", - "Lecoq", - "de", - "Boisbaudran" - ] - }, - { - "id": "Ho", - "atomicNumber": 67, - "mass": 164.93032, - "exactMass": 164.9303221, - "ionization": 6.0215, - "electronAffinity": 0.5, - "electronegativityPauling": 1.23, - "nameOrigin": "Latin 'holmia' for the old name of Stockholm", - "radiusVDW": 2.33, - "boilingpoint": 2968, - "meltingpoint": 1747, - "periodTableBlock": "f", - "discoveryDate": "1878", - "period": "6", - "group": "3", - "electronicConfiguration": "Xe 4f11 6s2", - "family": "Rare_Earth", - "symbol": "Ho", - "name": "Holmium", - "elementColor": [ - 0, - 1, - 0.61 - ], - "discoverers": [ - "J. L. Soret", - "P.T. Cleve" - ] - }, - { - "id": "Er", - "atomicNumber": 68, - "mass": 167.259, - "exactMass": 165.9302931, - "ionization": 6.1077, - "electronAffinity": 0.5, - "electronegativityPauling": 1.24, - "nameOrigin": "Named ofter the Swedish town of Ytterby. Terbium and Ytterbium are also named after this town.", - "radiusVDW": 2.32, - "boilingpoint": 3140, - "meltingpoint": 1802, - "periodTableBlock": "f", - "discoveryDate": "1843", - "period": "6", - "group": "4", - "electronicConfiguration": "Xe 4f12 6s2", - "family": "Rare_Earth", - "symbol": "Er", - "name": "Erbium", - "elementColor": [ - 0, - 0.9, - 0.46 - ], - "discoverers": [ - "K.", - "G.", - "Mosander" - ] - }, - { - "id": "Tm", - "atomicNumber": 69, - "mass": 168.93421, - "exactMass": 168.9342133, - "ionization": 6.1843, - "electronAffinity": 0.5, - "electronegativityPauling": 1.25, - "nameOrigin": "Named after the old name of Scandinavia, 'Thule'.", - "radiusVDW": 2.3, - "boilingpoint": 2223, - "meltingpoint": 1818, - "periodTableBlock": "f", - "discoveryDate": "1879", - "period": "6", - "group": "5", - "electronicConfiguration": "Xe 4f13 6s2", - "family": "Rare_Earth", - "symbol": "Tm", - "name": "Thulium", - "elementColor": [ - 0, - 0.83, - 0.32 - ], - "discoverers": [ - "P.", - "T.", - "Cleve" - ] - }, - { - "id": "Yb", - "atomicNumber": 70, - "mass": 173.054, - "exactMass": 173.9388621, - "ionization": 6.2542, - "electronAffinity": 0.5, - "nameOrigin": "Like Terbium and Gadolinium, this is named after the Swedish town of Ytterby.", - "radiusVDW": 2.28, - "boilingpoint": 1469, - "meltingpoint": 1092, - "periodTableBlock": "f", - "discoveryDate": "1878", - "period": "6", - "group": "6", - "electronicConfiguration": "Xe 4f14 6s2", - "family": "Rare_Earth", - "symbol": "Yb", - "name": "Ytterbium", - "elementColor": [ - 0, - 0.75, - 0.22 - ], - "discoverers": [ - "J.", - "Ch.", - "Marignac" - ] - }, - { - "id": "Lu", - "atomicNumber": 71, - "mass": 174.9668, - "exactMass": 174.9407718, - "ionization": 5.4259, - "electronAffinity": 0.5, - "electronegativityPauling": 1.27, - "nameOrigin": "Named after the Roman name 'Lutetia' for Paris", - "radiusCovalent": 1.6, - "radiusVDW": 2.27, - "boilingpoint": 3668, - "meltingpoint": 1936, - "periodTableBlock": "f", - "discoveryDate": "1907", - "period": "6", - "group": "7", - "electronicConfiguration": "Xe 4f14 5d1 6s2", - "family": "Rare_Earth", - "symbol": "Lu", - "name": "Lutetium", - "elementColor": [ - 0, - 0.67, - 0.14 - ], - "discoverers": [ - "Carl F. Auer von Welsbach", - "G. Urbain" - ] - }, - { - "id": "Hf", - "atomicNumber": 72, - "mass": 178.49, - "exactMass": 179.94655, - "ionization": 6.8251, - "electronAffinity": 0, - "electronegativityPauling": 1.3, - "nameOrigin": "'Hafnia' is the old name of Kopenhagen (Denmark)", - "radiusCovalent": 1.5, - "radiusVDW": 2.25, - "boilingpoint": 4875, - "meltingpoint": 2504, - "periodTableBlock": "d", - "discoveryDate": "1923", - "period": "6", - "group": "4", - "electronicConfiguration": "Xe 4f14 5d2 6s2", - "family": "Transition", - "symbol": "Hf", - "name": "Hafnium", - "elementColor": [ - 0.3, - 0.76, - 1 - ], - "discoveryCountry": [ - "dk" - ], - "discoverers": [ - "D. Coster", - "G. Hevesy" - ] - }, - { - "id": "Ta", - "atomicNumber": 73, - "mass": 180.94788, - "exactMass": 180.9479958, - "ionization": 7.5496, - "electronAffinity": 0.322, - "electronegativityPauling": 1.5, - "nameOrigin": "Named after the Greek myth of Tantalos", - "radiusCovalent": 1.38, - "radiusVDW": 2.2, - "boilingpoint": 5730, - "meltingpoint": 3293, - "periodTableBlock": "d", - "discoveryDate": "1802", - "period": "6", - "group": "5", - "electronicConfiguration": "Xe 4f14 5d3 6s2", - "family": "Transition", - "symbol": "Ta", - "name": "Tantalum", - "elementColor": [ - 0.3, - 0.65, - 1 - ], - "discoveryCountry": [ - "se" - ], - "discoverers": [ - "A.", - "Ekeberg" - ] - }, - { - "id": "W", - "atomicNumber": 74, - "mass": 183.84, - "exactMass": 183.9509312, - "ionization": 7.864, - "electronAffinity": 0.815, - "electronegativityPauling": 2.36, - "nameOrigin": "'tung sten' means 'heavy stone' in Swedish. The old name (and thus the symbol 'W') was Wolfram, named after a mineral.", - "radiusCovalent": 1.46, - "radiusVDW": 2.1, - "boilingpoint": 5825, - "meltingpoint": 3695, - "periodTableBlock": "d", - "discoveryDate": "1783", - "period": "6", - "group": "6", - "electronicConfiguration": "Xe 4f14 5d4 6s2", - "family": "Transition", - "symbol": "W", - "name": "Tungsten", - "elementColor": [ - 0.13, - 0.58, - 0.84 - ], - "discoveryCountry": [ - "es" - ], - "discoverers": [ - "C.", - "W.", - "Scheele" - ] - }, - { - "id": "Re", - "atomicNumber": 75, - "mass": 186.207, - "exactMass": 186.9557531, - "ionization": 7.8335, - "electronAffinity": 0.15, - "electronegativityPauling": 1.9, - "nameOrigin": "Named after the German river Rhine (latin 'Rhenium').", - "radiusCovalent": 1.59, - "radiusVDW": 2.05, - "boilingpoint": 5870, - "meltingpoint": 3455, - "periodTableBlock": "d", - "discoveryDate": "1925", - "period": "6", - "group": "7", - "electronicConfiguration": "Xe 4f14 5d5 6s2", - "family": "Transition", - "symbol": "Re", - "name": "Rhenium", - "elementColor": [ - 0.15, - 0.49, - 0.67 - ], - "discoveryCountry": [ - "de" - ], - "discoverers": [ - "Walter Noddack", - "Ida Tacke-Noddack", - "Otto Berg" - ] - }, - { - "id": "Os", - "atomicNumber": 76, - "mass": 190.23, - "exactMass": 191.9614807, - "ionization": 8.4382, - "electronAffinity": 1.0778, - "electronegativityPauling": 2.2, - "nameOrigin": "Greek for 'smell'. Its oxides smell strongly like radishes.", - "radiusCovalent": 1.28, - "radiusVDW": 2, - "boilingpoint": 5300, - "meltingpoint": 3300, - "periodTableBlock": "d", - "discoveryDate": "1804", - "period": "6", - "group": "8", - "electronicConfiguration": "Xe 4f14 5d6 6s2", - "family": "Transition", - "symbol": "Os", - "name": "Osmium", - "elementColor": [ - 0.15, - 0.4, - 0.59 - ], - "discoveryCountry": [ - "uk" - ], - "discoverers": [ - "S.", - "Tennant" - ] - }, - { - "id": "Ir", - "atomicNumber": 77, - "mass": 192.217, - "exactMass": 192.9629264, - "ionization": 8.967, - "electronAffinity": 1.56436, - "electronegativityPauling": 2.2, - "nameOrigin": "Greek 'iris' for 'rainbow'", - "radiusCovalent": 1.37, - "radiusVDW": 2, - "boilingpoint": 4700, - "meltingpoint": 2720, - "periodTableBlock": "d", - "discoveryDate": "1804", - "period": "6", - "group": "8", - "electronicConfiguration": "Xe 4f14 5d7 6s2", - "family": "Transition", - "symbol": "Ir", - "name": "Iridium", - "elementColor": [ - 0.09, - 0.33, - 0.53 - ], - "discoveryCountry": [ - "uk" - ], - "discoverers": [ - "S.", - "Tennant" - ] - }, - { - "id": "Pt", - "atomicNumber": 78, - "mass": 195.084, - "exactMass": 194.9647911, - "ionization": 8.9588, - "electronAffinity": 2.1251, - "electronegativityPauling": 2.28, - "nameOrigin": "Spanish 'platina' means 'small silver'", - "radiusCovalent": 1.28, - "radiusVDW": 2.05, - "boilingpoint": 4100, - "meltingpoint": 2042.1, - "periodTableBlock": "d", - "discoveryDate": "1735", - "period": "6", - "group": "8", - "electronicConfiguration": "Xe 4f14 5d9 6s1", - "family": "Transition", - "symbol": "Pt", - "name": "Platinum", - "elementColor": [ - 0.96, - 0.93, - 0.82 - ], - "discoveryCountry": [ - "uk" - ], - "discoverers": [ - "A.", - "de", - "Ulloa" - ] - }, - { - "id": "Au", - "atomicNumber": 79, - "mass": 196.966569, - "exactMass": 196.9665687, - "ionization": 9.2255, - "electronAffinity": 2.30861, - "electronegativityPauling": 2.54, - "nameOrigin": "Latin 'aurum'. Named after Aurora, the goddess of sunrise", - "radiusCovalent": 1.44, - "radiusVDW": 2.1, - "boilingpoint": 3130, - "meltingpoint": 1337.58, - "periodTableBlock": "d", - "discoveryDate": "0", - "period": "6", - "group": "1", - "electronicConfiguration": "Xe 4f14 5d10 6s1", - "family": "Transition", - "symbol": "Au", - "name": "Gold", - "elementColor": [ - 0.8, - 0.82, - 0.12 - ], - "discoveryCountry": [ - "ancient" - ] - }, - { - "id": "Hg", - "atomicNumber": 80, - "mass": 200.59, - "exactMass": 201.970643, - "ionization": 10.4375, - "electronAffinity": 0, - "electronegativityPauling": 2, - "nameOrigin": "Graeco-Latin 'hydrargyrum' for 'liquid silver'", - "radiusCovalent": 1.49, - "radiusVDW": 2.05, - "boilingpoint": 629.88, - "meltingpoint": 234.31, - "periodTableBlock": "d", - "discoveryDate": "0", - "period": "6", - "group": "2", - "electronicConfiguration": "Xe 4f14 5d10 6s2", - "family": "Transition", - "symbol": "Hg", - "name": "Mercury", - "elementColor": [ - 0.71, - 0.71, - 0.76 - ], - "discoveryCountry": [ - "ancient" - ] - }, - { - "id": "Tl", - "atomicNumber": 81, - "mass": 204.3833, - "exactMass": 204.9744275, - "ionization": 6.1082, - "electronAffinity": 0.377, - "electronegativityPauling": 1.62, - "nameOrigin": "Greek 'tallos' for 'young twig'", - "radiusCovalent": 1.48, - "radiusVDW": 2.2, - "boilingpoint": 1746, - "meltingpoint": 577, - "periodTableBlock": "p", - "discoveryDate": "1861", - "period": "6", - "group": "3", - "electronicConfiguration": "Xe 4f14 5d10 6s2 6p1", - "family": "Other_Metal", - "symbol": "Tl", - "name": "Thallium", - "elementColor": [ - 0.65, - 0.33, - 0.3 - ], - "discoveryCountry": [ - "uk" - ], - "discoverers": [ - "W.", - "Crookes" - ] - }, - { - "id": "Pb", - "atomicNumber": 82, - "mass": 207.2, - "exactMass": 207.9766521, - "ionization": 7.4167, - "electronAffinity": 0.364, - "electronegativityPauling": 2.33, - "nameOrigin": "Latin 'plumbum' for Lead", - "radiusCovalent": 1.47, - "radiusVDW": 2.3, - "boilingpoint": 2023, - "meltingpoint": 600.65, - "periodTableBlock": "p", - "discoveryDate": "0", - "period": "6", - "group": "4", - "electronicConfiguration": "Xe 4f14 5d10 6s2 6p2", - "family": "Other_Metal", - "symbol": "Pb", - "name": "Lead", - "elementColor": [ - 0.34, - 0.35, - 0.38 - ], - "discoveryCountry": [ - "ancient" - ] - }, - { - "id": "Bi", - "atomicNumber": 83, - "mass": 208.9804, - "exactMass": 208.9803987, - "ionization": 7.2855, - "electronAffinity": 0.942363, - "electronegativityPauling": 2.02, - "nameOrigin": "The old name of Bismuth is 'Wismut', which stood for 'white mass'.", - "radiusCovalent": 1.46, - "radiusVDW": 2.3, - "boilingpoint": 1837, - "meltingpoint": 544.59, - "periodTableBlock": "p", - "discoveryDate": "0", - "period": "6", - "group": "5", - "electronicConfiguration": "Xe 4f14 5d10 6s2 6p3", - "family": "Other_Metal", - "symbol": "Bi", - "name": "Bismuth", - "elementColor": [ - 0.62, - 0.31, - 0.71 - ], - "discoveryCountry": [ - "ancient" - ] - }, - { - "id": "Po", - "atomicNumber": 84, - "mass": 209, - "exactMass": 208.9824304, - "ionization": 8.414, - "electronAffinity": 1.9, - "electronegativityPauling": 2, - "nameOrigin": "Named after Poland to honor Marie Curie", - "radiusVDW": 2, - "meltingpoint": 527, - "periodTableBlock": "p", - "discoveryDate": "1898", - "period": "6", - "group": "6", - "electronicConfiguration": "Xe 4f14 5d10 6s2 6p4", - "family": "Metalloids", - "symbol": "Po", - "name": "Polonium", - "elementColor": [ - 0.67, - 0.36, - 0 - ], - "discoveryCountry": [ - "fr" - ], - "discoverers": [ - "M. Sklodowska-Curie", - "P. Curie" - ] - }, - { - "id": "At", - "atomicNumber": 85, - "mass": 210, - "exactMass": 209.987148, - "ionization": 0, - "electronAffinity": 2.8, - "electronegativityPauling": 2.2, - "nameOrigin": "Greek 'astator' for 'changing'", - "radiusVDW": 2, - "boilingpoint": 610, - "meltingpoint": 575, - "periodTableBlock": "p", - "discoveryDate": "1940", - "period": "6", - "group": "7", - "electronicConfiguration": "Xe 4f14 5d10 6s2 6p5", - "family": "Halogen", - "symbol": "At", - "name": "Astatine", - "elementColor": [ - 0.46, - 0.31, - 0.27 - ], - "discoveryCountry": [ - "us" - ], - "discoverers": [ - "D. R. Corson", - "K. R. McKenzie", - "E. Segre" - ] - }, - { - "id": "Rn", - "atomicNumber": 86, - "mass": 222, - "exactMass": 222.0175777, - "ionization": 10.7485, - "electronAffinity": 0, - "nameOrigin": "Named after Radium. It ends with 'on' to make it clear that it is a noble gas.", - "radiusCovalent": 1.45, - "radiusVDW": 2, - "boilingpoint": 211.4, - "meltingpoint": 202, - "periodTableBlock": "p", - "discoveryDate": "1898", - "period": "6", - "group": "8", - "electronicConfiguration": "Xe 4f14 5d10 6s2 6p6", - "family": "Noblegas", - "symbol": "Rn", - "name": "Radon", - "elementColor": [ - 0.26, - 0.51, - 0.59 - ], - "discoveryCountry": [ - "de" - ], - "discoverers": [ - "E.", - "Dorn" - ] - }, - { - "id": "Fr", - "atomicNumber": 87, - "mass": 223, - "exactMass": 223.0197359, - "ionization": 4.0727, - "electronegativityPauling": 0.7, - "nameOrigin": "Named after France to honor Marguerite Perey", - "radiusVDW": 2, - "boilingpoint": 950, - "meltingpoint": 300, - "periodTableBlock": "s", - "discoveryDate": "1939", - "period": "7", - "group": "1", - "electronicConfiguration": "Rn 7s1", - "family": "Alkali_Earth", - "symbol": "Fr", - "name": "Francium", - "elementColor": [ - 0.26, - 0, - 0.4 - ], - "discoveryCountry": [ - "fr" - ], - "discoverers": [ - "M.", - "Perey" - ] - }, - { - "id": "Ra", - "atomicNumber": 88, - "mass": 226, - "exactMass": 226.0254098, - "ionization": 5.2784, - "electronegativityPauling": 0.9, - "nameOrigin": "Latin 'radius' for 'beam', as it is radioactive", - "radiusVDW": 2, - "boilingpoint": 1413, - "meltingpoint": 973, - "periodTableBlock": "s", - "discoveryDate": "1898", - "period": "7", - "group": "2", - "electronicConfiguration": "Rn 7s2", - "family": "Alkaline_Earth", - "symbol": "Ra", - "name": "Radium", - "elementColor": [ - 0, - 0.49, - 0 - ], - "discoveryCountry": [ - "fr" - ], - "discoverers": [ - "M. Sklodowska-Curie", - "P. Curie" - ] - }, - { - "id": "Ac", - "atomicNumber": 89, - "mass": 227, - "exactMass": 227.0277521, - "ionization": 5.17, - "electronegativityPauling": 1.1, - "nameOrigin": "Greek 'aktis' for 'beam' - actinium is radioactive", - "radiusVDW": 2, - "boilingpoint": 3470, - "meltingpoint": 1324, - "periodTableBlock": "f", - "discoveryDate": "1899", - "period": "7", - "group": "3", - "electronicConfiguration": "Rn 6d1 7s2", - "family": "Other_Metal", - "symbol": "Ac", - "name": "Actinium", - "elementColor": [ - 0.44, - 0.67, - 0.98 - ], - "discoveryCountry": [ - "fr" - ], - "discoverers": [ - "A.", - "L.", - "Debierne" - ] - }, - { - "id": "Th", - "atomicNumber": 90, - "mass": 232.03806, - "exactMass": 232.0380553, - "ionization": 6.3067, - "electronegativityPauling": 1.3, - "nameOrigin": "Named after the German god of thunder: Thor", - "radiusVDW": 2.4, - "boilingpoint": 5060, - "meltingpoint": 2028, - "periodTableBlock": "f", - "discoveryDate": "1828", - "period": "7", - "group": "4", - "electronicConfiguration": "Rn 6d2 7s2", - "family": "Other_Metal", - "symbol": "Th", - "name": "Thorium", - "elementColor": [ - 0, - 0.73, - 1 - ], - "discoverers": [ - "J.", - "J.", - "Berzelius" - ] - }, - { - "id": "Pa", - "atomicNumber": 91, - "mass": 231.03588, - "exactMass": 231.035884, - "ionization": 5.89, - "electronegativityPauling": 1.5, - "nameOrigin": "Greek 'protos' for 'ancester'. Protactinium is before Actinium in the periodic table.", - "radiusVDW": 2, - "boilingpoint": 4300, - "meltingpoint": 1845, - "periodTableBlock": "f", - "discoveryDate": "1917", - "period": "7", - "group": "5", - "electronicConfiguration": "Rn 5f2 6d1 7s2", - "family": "Other_Metal", - "symbol": "Pa", - "name": "Protactinium", - "elementColor": [ - 0, - 0.63, - 1 - ], - "discoverers": [ - "O. Hahn", - "L. Meitern", - "W. Wollaston" - ] - }, - { - "id": "U", - "atomicNumber": 92, - "mass": 238.02891, - "exactMass": 238.0507882, - "ionization": 6.1941, - "electronegativityPauling": 1.38, - "nameOrigin": "Greek 'ouranos' for 'heaven'. Named after the planet Uranus.", - "radiusVDW": 2.3, - "boilingpoint": 4407, - "meltingpoint": 1408, - "periodTableBlock": "f", - "discoveryDate": "1789", - "period": "7", - "group": "6", - "electronicConfiguration": "Rn 5f3 6d1 7s2", - "family": "Other_Metal", - "symbol": "U", - "name": "Uranium", - "elementColor": [ - 0, - 0.56, - 1 - ], - "discoverers": [ - "M.", - "M.", - "Klaproth" - ] - }, - { - "id": "Np", - "atomicNumber": 93, - "mass": 237, - "exactMass": 237.0481734, - "ionization": 6.2657, - "electronegativityPauling": 1.36, - "nameOrigin": "Named after the planet Neptune.", - "radiusVDW": 2, - "boilingpoint": 4175, - "meltingpoint": 912, - "periodTableBlock": "f", - "discoveryDate": "1940", - "period": "7", - "group": "7", - "electronicConfiguration": "Rn 5f4 6d1 7s2", - "family": "Other_Metal", - "symbol": "Np", - "name": "Neptunium", - "elementColor": [ - 0, - 0.5, - 1 - ], - "discoverers": [ - "E. M. McMillan", - "P. Aberson" - ] - }, - { - "id": "Pu", - "atomicNumber": 94, - "mass": 244, - "exactMass": 244.064204, - "ionization": 6.026, - "electronegativityPauling": 1.28, - "nameOrigin": "Named after the planet Pluto.", - "radiusVDW": 2, - "boilingpoint": 3505, - "meltingpoint": 913, - "periodTableBlock": "f", - "discoveryDate": "1940", - "period": "7", - "group": "8", - "electronicConfiguration": "Rn 5f6 7s2", - "family": "Other_Metal", - "symbol": "Pu", - "name": "Plutonium", - "elementColor": [ - 0, - 0.42, - 1 - ], - "discoverers": [ - "Glenn T. Seaborg", - "E. M. McMillan", - "J. W. Kennedy", - "A.C. Wahl" - ] - }, - { - "id": "Am", - "atomicNumber": 95, - "mass": 243, - "exactMass": 243.0613811, - "ionization": 5.9738, - "electronegativityPauling": 1.3, - "nameOrigin": "Named after America.", - "radiusVDW": 2, - "boilingpoint": 2880, - "meltingpoint": 1449, - "periodTableBlock": "f", - "discoveryDate": "1945", - "period": "7", - "group": "8", - "electronicConfiguration": "Rn 5f7 7s2", - "family": "Other_Metal", - "symbol": "Am", - "name": "Americium", - "elementColor": [ - 0.33, - 0.36, - 0.95 - ], - "discoverers": [ - "Glenn T. Seaborg", - "L. O. Morgan", - "R. A. James", - "A. Ghiors" - ] - }, - { - "id": "Cm", - "atomicNumber": 96, - "mass": 247, - "exactMass": 247.070354, - "ionization": 5.9914, - "electronegativityPauling": 1.3, - "nameOrigin": "Named after Marie Curie.", - "radiusVDW": 2, - "boilingpoint": 3383, - "meltingpoint": 1620, - "periodTableBlock": "f", - "discoveryDate": "1944", - "period": "7", - "group": "8", - "electronicConfiguration": "Rn 5f7 6d1 7s2", - "family": "Other_Metal", - "symbol": "Cm", - "name": "Curium", - "elementColor": [ - 0.47, - 0.36, - 0.89 - ], - "discoverers": [ - "Glenn T. Seaborg", - "R. A. James", - "A. Ghiors" - ] - }, - { - "id": "Bk", - "atomicNumber": 97, - "mass": 247, - "exactMass": 247.070307, - "ionization": 6.1979, - "electronegativityPauling": 1.3, - "nameOrigin": "Named after the town Berkeley where it was discovered.", - "radiusVDW": 2, - "boilingpoint": 983, - "meltingpoint": 1258, - "periodTableBlock": "f", - "discoveryDate": "1949", - "period": "7", - "group": "1", - "electronicConfiguration": "Rn 5f9 7s2", - "family": "Other_Metal", - "symbol": "Bk", - "name": "Berkelium", - "elementColor": [ - 0.54, - 0.31, - 0.89 - ], - "discoverers": [ - "Glenn T. Seaborg", - "A. Ghiors", - "S. G. Thompson" - ] - }, - { - "id": "Cf", - "atomicNumber": 98, - "mass": 251, - "exactMass": 251.079587, - "ionization": 6.2817, - "electronegativityPauling": 1.3, - "nameOrigin": "Named after the US-State of California.", - "radiusVDW": 2, - "boilingpoint": 1173, - "meltingpoint": 1172, - "periodTableBlock": "f", - "discoveryDate": "1950", - "period": "7", - "group": "2", - "electronicConfiguration": "Rn 5f10 7s2", - "family": "Other_Metal", - "symbol": "Cf", - "name": "Californium", - "elementColor": [ - 0.63, - 0.21, - 0.83 - ], - "discoverers": [ - "Glenn T. Seaborg", - "A. Ghiors", - "S. G. Thompson" - ] - }, - { - "id": "Es", - "atomicNumber": 99, - "mass": 252, - "exactMass": 252.08298, - "ionization": 6.42, - "electronegativityPauling": 1.3, - "nameOrigin": "Named after the scientist Albert Einstein.", - "radiusVDW": 2, - "meltingpoint": 1130, - "periodTableBlock": "f", - "discoveryDate": "1952", - "period": "7", - "group": "3", - "electronicConfiguration": "Rn 5f11 7s2", - "family": "Other_Metal", - "symbol": "Es", - "name": "Einsteinium", - "elementColor": [ - 0.7, - 0.12, - 0.83 - ], - "discoverers": [ - "Glenn T. Seaborg", - "et al." - ] - }, - { - "id": "Fm", - "atomicNumber": 100, - "mass": 257, - "exactMass": 257.095105, - "ionization": 6.5, - "electronegativityPauling": 1.3, - "nameOrigin": "Named after the scientist Enrico Fermi.", - "radiusVDW": 2, - "meltingpoint": 1800, - "periodTableBlock": "f", - "discoveryDate": "1953", - "period": "7", - "group": "4", - "electronicConfiguration": "Rn 5f12 7s2", - "family": "Other_Metal", - "symbol": "Fm", - "name": "Fermium", - "elementColor": [ - 0.7, - 0.12, - 0.73 - ], - "discoverers": [ - "Glenn T. Seaborg", - "et al." - ] - }, - { - "id": "Md", - "atomicNumber": 101, - "mass": 258, - "exactMass": 258.098431, - "ionization": 6.58, - "electronegativityPauling": 1.3, - "nameOrigin": "Named after the scientist D.I. Mendeleev.", - "radiusVDW": 2, - "meltingpoint": 1100, - "periodTableBlock": "f", - "discoveryDate": "1955", - "period": "7", - "group": "5", - "electronicConfiguration": "Rn 5f13 7s2", - "family": "Other_Metal", - "symbol": "Md", - "name": "Mendelevium", - "elementColor": [ - 0.7, - 0.05, - 0.65 - ], - "discoverers": [ - "Glenn T. Seaborg", - "Albert Ghiorso", - "Bernard Harvey", - "Gregory Choppin", - "Stanley G. Thompson" - ] - }, - { - "id": "No", - "atomicNumber": 102, - "mass": 259, - "exactMass": 259.10103, - "ionization": 6.65, - "electronegativityPauling": 1.3, - "nameOrigin": "Named after the scientist Alfred Nobel.", - "radiusVDW": 2, - "meltingpoint": 1100, - "periodTableBlock": "f", - "discoveryDate": "1958", - "period": "7", - "group": "6", - "electronicConfiguration": "Rn 5f14 7s2", - "family": "Other_Metal", - "symbol": "No", - "name": "Nobelium", - "elementColor": [ - 0.74, - 0.05, - 0.53 - ] - }, - { - "id": "Lr", - "atomicNumber": 103, - "mass": 262, - "exactMass": 262.10963, - "ionization": 4.9, - "nameOrigin": "Named after the scientist Ernest Orlando Lawrence.", - "radiusVDW": 2, - "meltingpoint": 1900, - "periodTableBlock": "f", - "discoveryDate": "1961", - "period": "7", - "group": "7", - "electronicConfiguration": "Rn 5f14 7s2 7p1", - "family": "Other_Metal", - "symbol": "Lr", - "name": "Lawrencium", - "elementColor": [ - 0.78, - 0, - 0.4 - ], - "discoverers": [ - "Albert Ghiorso", - "Torbjorn Sikkeland", - "Almon Larsh", - "Robert M. Latimer" - ] - }, - { - "id": "Rf", - "atomicNumber": 104, - "mass": 267, - "exactMass": 261.10877, - "ionization": 6, - "nameOrigin": "Named after the scientist Ernest Rutherford", - "radiusVDW": 2, - "periodTableBlock": "d", - "discoveryDate": "1964", - "period": "7", - "group": "4", - "electronicConfiguration": "Rn 5f14 6d2 7s2", - "family": "Transition", - "symbol": "Rf", - "name": "Rutherfordium", - "elementColor": [ - 0.8, - 0, - 0.35 - ], - "discoveryCountry": [ - "ru", - "us" - ] - }, - { - "id": "Db", - "atomicNumber": 105, - "mass": 268, - "exactMass": 262.11408, - "nameOrigin": "Named after the science-town Dubna in Russia", - "radiusVDW": 2, - "periodTableBlock": "d", - "discoveryDate": "1967", - "period": "7", - "group": "5", - "electronicConfiguration": "Rn 5f14 6d3 7s2", - "family": "Transition", - "symbol": "Db", - "name": "Dubnium", - "elementColor": [ - 0.82, - 0, - 0.31 - ], - "discoveryCountry": [ - "ru", - "us" - ] - }, - { - "id": "Sg", - "atomicNumber": 106, - "mass": 271, - "exactMass": 263.11832, - "nameOrigin": "Named after the scientist G. Theodore Seaborg.", - "radiusVDW": 2, - "periodTableBlock": "d", - "discoveryDate": "1974", - "period": "7", - "group": "6", - "family": "Transition", - "symbol": "Sg", - "name": "Seaborgium", - "elementColor": [ - 0.85, - 0, - 0.27 - ], - "discoveryCountry": [ - "ru", - "us" - ], - "discoverers": [ - "Albert Ghiorso", - "et al." - ] - }, - { - "id": "Bh", - "atomicNumber": 107, - "mass": 272, - "exactMass": 264.1246, - "nameOrigin": "Named after the scientist Niels Bohr.", - "radiusVDW": 2, - "periodTableBlock": "d", - "discoveryDate": "1981", - "period": "7", - "group": "7", - "family": "Transition", - "symbol": "Bh", - "name": "Bohrium", - "elementColor": [ - 0.88, - 0, - 0.22 - ], - "discoveryCountry": [ - "ru" - ], - "discoverers": [ - "Peter Armbruster", - "Gottfried Münzenber", - "et al." - ] - }, - { - "id": "Hs", - "atomicNumber": 108, - "mass": 270, - "exactMass": 265.13009, - "nameOrigin": "Latin 'hassia' for the German county Hessen. In Hessen a lot elements have been discovered.", - "radiusVDW": 2, - "periodTableBlock": "d", - "discoveryDate": "1984", - "period": "7", - "group": "8", - "family": "Transition", - "symbol": "Hs", - "name": "Hassium", - "elementColor": [ - 0.9, - 0, - 0.18 - ], - "discoveryCountry": [ - "de" - ], - "discoverers": [ - "Peter Armbruster", - "Gottfried Münzenber", - "et al." - ] - }, - { - "id": "Mt", - "atomicNumber": 109, - "mass": 276, - "exactMass": 268.13873, - "nameOrigin": "Named after the scientist Lise Meitner.", - "radiusVDW": 2, - "periodTableBlock": "d", - "discoveryDate": "1982", - "period": "7", - "group": "8", - "family": "Transition", - "symbol": "Mt", - "name": "Meitnerium", - "elementColor": [ - 0.91, - 0, - 0.15 - ], - "discoveryCountry": [ - "de" - ], - "discoverers": [ - "Peter Armbruster", - "Gottfried Münzenber", - "et al." - ] - }, - { - "id": "Ds", - "atomicNumber": 110, - "mass": 281, - "exactMass": 271.14606, - "nameOrigin": "Named after the German city Darmstadt where many elements have been discovered.", - "periodTableBlock": "d", - "discoveryDate": "1994", - "period": "7", - "group": "8", - "family": "Transition", - "symbol": "Ds", - "name": "Darmstadtium", - "elementColor": [ - 0.92, - 0, - 0.14 - ], - "discoveryCountry": [ - "de" - ], - "discoverers": [ - "S. Hofmann", - "V. Ninov", - "F. P. Hessberger", - "P. Armbruster", - "H. Folger", - "G. Münzenberg", - "H. J. Schött", - "et al." - ] - }, - { - "id": "Rg", - "atomicNumber": 111, - "mass": 280, - "exactMass": 272.15362, - "nameOrigin": "Named after Wilhelm Conrad Röntgen.", - "periodTableBlock": "d", - "discoveryDate": "1994", - "period": "7", - "group": "1", - "family": "Transition", - "symbol": "Rg", - "name": "Roentgenium", - "elementColor": [ - 0.93, - 0, - 0.13 - ], - "discoveryCountry": [ - "de" - ], - "discoverers": [ - "S. Hofmann", - "V. Ninov", - "F. P. Hessberger", - "P. Armbruster", - "H. Folger", - "G. Münzenberg", - "et al." - ] - }, - { - "id": "Cn", - "atomicNumber": 112, - "mass": 285, - "exactMass": 285.17411, - "nameOrigin": "Historically known as eka-mercury. Ununbium is a temporary IUPAC systematic element name.", - "periodTableBlock": "d", - "discoveryDate": "1996", - "period": "7", - "family": "Transition", - "symbol": "Cn", - "name": "Copernicium", - "elementColor": [ - 0.94, - 0, - 0.12 - ], - "discoveryCountry": [ - "de" - ], - "discoverers": [ - "First", - "created", - "at", - "the", - "Gesellschaft", - "für", - "Schwerionenforschung" - ] - }, - { - "id": "Uut", - "atomicNumber": 113, - "mass": 284, - "exactMass": 284.17808, - "nameOrigin": "Historically known as eka-thallium. Ununtrium is a temporary IUPAC systematic element name.", - "periodTableBlock": "p", - "discoveryDate": "2003", - "period": "7", - "family": "Other_Metal", - "symbol": "Uut", - "name": "Ununtrium", - "elementColor": [ - 0.95, - 0, - 0.11 - ], - "discoveryCountry": [ - "ru", - "us" - ], - "discoverers": [ - "Russian scientists at Dubna (JINR)", - "American scientists at the Lawrence Livermore National Laboratory." - ] - }, - { - "id": "Uuq", - "atomicNumber": 114, - "mass": 289, - "exactMass": 289.18728, - "nameOrigin": "Historically known as eka-lead. Ununquadium is a temporary IUPAC systematic element name.", - "periodTableBlock": "p", - "discoveryDate": "1998", - "period": "7", - "family": "Other_Metal", - "symbol": "Uuq", - "name": "Ununquadium", - "elementColor": [ - 0.96, - 0, - 0.1 - ], - "discoveryCountry": [ - "ru", - "us" - ], - "discoverers": [ - "Joint", - "Institute", - "for", - "Nuclear", - "Research" - ] - }, - { - "id": "Uup", - "atomicNumber": 115, - "mass": 288, - "exactMass": 288.19249, - "nameOrigin": "Historically known as eka-bismuth. Ununpentium is a temporary IUPAC systematic element name.", - "periodTableBlock": "p", - "discoveryDate": "2004", - "period": "7", - "family": "Other_Metal", - "symbol": "Uup", - "name": "Ununpentium", - "elementColor": [ - 0.97, - 0, - 0.09 - ], - "discoveryCountry": [ - "ru", - "us" - ], - "discoverers": [ - "Russian scientists at Dubna (JINR)", - "American scientists at the Lawrence Livermore National Laboratory." - ] - }, - { - "id": "Uuh", - "atomicNumber": 116, - "mass": 293, - "exactMass": 292.19979, - "nameOrigin": "Historically known as eka-polonium. Ununhexium is a temporary IUPAC systematic element name.", - "periodTableBlock": "p", - "discoveryDate": "2000", - "period": "7", - "family": "Other_Metal", - "symbol": "Uuh", - "name": "Ununhexium", - "elementColor": [ - 0.98, - 0, - 0.08 - ], - "discoveryCountry": [ - "ru" - ], - "discoverers": [ - "Joint", - "Institute", - "for", - "Nuclear", - "Research" - ] - }, - { - "id": "Uus", - "atomicNumber": 117, - "nameOrigin": "Temporary symbol and name. Can also be referred to as eka-astatine.", - "periodTableBlock": "p", - "discoveryDate": "0", - "period": "7", - "family": "Halogen", - "symbol": "Uus", - "name": "Ununseptium", - "elementColor": [ - 0.99, - 0, - 0.07 - ] - }, - { - "id": "Uuo", - "atomicNumber": 118, - "mass": 294, - "nameOrigin": "Historically known as eka-radon, eka-emanation before 1960. Ununoctium is a temporary IUPAC systematic element name.", - "periodTableBlock": "p", - "discoveryDate": "2002", - "period": "7", - "family": "Noblegas", - "symbol": "Uuo", - "name": "Ununoctium", - "elementColor": [ - 1, - 0, - 0.06 - ], - "discoveryCountry": [ - "ru", - "us" - ], - "discoverers": [ - "Russian scientists at Dubna (JINR)", - "American scientists at the Lawrence Livermore National Laboratory." - ] - } - ] -} diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry/elements.json.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry/elements.json.js deleted file mode 100644 index 8fb72dd1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry/elements.json.js +++ /dev/null @@ -1,3794 +0,0 @@ -var atoms = [ - { - id: "Xx", - atomicNumber: 0, - mass: 0, - exactMass: 0, - radiusCovalent: 0, - radiusVDW: 0, - symbol: "Xx", - name: "Dummy", - elementColor: [ - 0.07, - 0.5, - 0.7 - ] - }, - { - id: "H", - atomicNumber: 1, - mass: 1.00794, - exactMass: 1.007825032, - ionization: 13.5984, - electronAffinity: 0.75420375, - electronegativityPauling: 2.2, - nameOrigin: "Greek 'hydro' and 'gennao' for 'forms water'", - radiusCovalent: 0.37, - radiusVDW: 1.2, - boilingpoint: 20.28, - meltingpoint: 14.01, - periodTableBlock: "s", - discoveryDate: "1766", - period: "1", - group: "1", - electronicConfiguration: "1s1", - family: "Non-Metal", - symbol: "H", - name: "Hydrogen", - elementColor: [ - 1, - 1, - 1 - ], - discoveryCountry: [ - "uk" - ], - discoverers: [ - "C.", - "Cavendish" - ] - }, - { - id: "He", - atomicNumber: 2, - mass: 4.002602, - exactMass: 4.002603254, - ionization: 24.5874, - electronAffinity: 0, - nameOrigin: "The Greek word for the sun was 'helios'", - radiusCovalent: 0.32, - radiusVDW: 1.4, - boilingpoint: 4.216, - meltingpoint: 0.95, - periodTableBlock: "p", - discoveryDate: "1895", - period: "1", - group: "8", - electronicConfiguration: "1s2", - family: "Noblegas", - symbol: "He", - name: "Helium", - elementColor: [ - 0.85, - 1, - 1 - ], - discoveryCountry: [ - "se", - "uk" - ], - discoverers: [ - "P. J. Janssen", - "J. N. Lockyer" - ] - }, - { - id: "Li", - atomicNumber: 3, - mass: 6.941, - exactMass: 7.01600455, - ionization: 5.3917, - electronAffinity: 0.618049, - electronegativityPauling: 0.98, - nameOrigin: "Greek 'lithos' means 'stone'", - radiusCovalent: 1.34, - radiusVDW: 2.2, - boilingpoint: 1615, - meltingpoint: 453.7, - periodTableBlock: "s", - discoveryDate: "1817", - period: "2", - group: "1", - electronicConfiguration: "He 2s1", - family: "Alkali_Earth", - symbol: "Li", - name: "Lithium", - elementColor: [ - 0.8, - 0.5, - 1 - ], - discoveryCountry: [ - "se" - ], - discoverers: [ - "A.", - "Arfvedson" - ] - }, - { - id: "Be", - atomicNumber: 4, - mass: 9.012182, - exactMass: 9.0121822, - ionization: 9.3227, - electronAffinity: 0, - electronegativityPauling: 1.57, - nameOrigin: "Greek 'beryllos' for 'light-green stone'", - radiusCovalent: 0.9, - radiusVDW: 1.9, - boilingpoint: 3243, - meltingpoint: 1560, - periodTableBlock: "s", - discoveryDate: "1797", - period: "2", - group: "2", - electronicConfiguration: "He 2s2", - family: "Alkaline_Earth", - symbol: "Be", - name: "Beryllium", - elementColor: [ - 0.76, - 1, - 0 - ], - discoveryCountry: [ - "fr" - ], - discoverers: [ - "Nicholas", - "Louis", - "Vauquelin" - ] - }, - { - id: "B", - atomicNumber: 5, - mass: 10.811, - exactMass: 11.0093054, - ionization: 8.298, - electronAffinity: 0.279723, - electronegativityPauling: 2.04, - nameOrigin: "Boron means 'Bor(ax) + (carb)on'. It is found in borax and behaves a lot like carbon", - radiusCovalent: 0.82, - radiusVDW: 1.8, - boilingpoint: 4275, - meltingpoint: 2365, - periodTableBlock: "p", - discoveryDate: "1808", - period: "2", - group: "3", - electronicConfiguration: "He 2s2 2p1", - family: "Metalloids", - symbol: "B", - name: "Boron", - elementColor: [ - 1, - 0.71, - 0.71 - ], - discoveryCountry: [ - "uk", - "fr" - ], - discoverers: [ - "Louis Joseph Gay-Lussac", - "Louis Jacques Thenard" - ] - }, - { - id: "C", - atomicNumber: 6, - mass: 12.0107, - exactMass: 12, - ionization: 11.2603, - electronAffinity: 1.262118, - electronegativityPauling: 2.55, - nameOrigin: "Latin 'carboneum' for carbon", - radiusCovalent: 0.77, - radiusVDW: 1.7, - boilingpoint: 5100, - meltingpoint: 3825, - periodTableBlock: "p", - discoveryDate: "0", - period: "2", - group: "4", - electronicConfiguration: "He 2s2 2p2", - family: "Non-Metal", - symbol: "C", - name: "Carbon", - elementColor: [ - 0.5, - 0.5, - 0.5 - ], - discoveryCountry: [ - "ancient" - ] - }, - { - id: "N", - atomicNumber: 7, - mass: 14.0067, - exactMass: 14.003074, - ionization: 14.5341, - electronAffinity: -0.07, - electronegativityPauling: 3.04, - nameOrigin: "Latin 'nitrogenium' ('forms saltpeter')", - radiusCovalent: 0.75, - radiusVDW: 1.6, - boilingpoint: 77.344, - meltingpoint: 63.15, - periodTableBlock: "p", - discoveryDate: "1772", - period: "2", - group: "5", - electronicConfiguration: "He 2s2 2p3", - family: "Non-Metal", - symbol: "N", - name: "Nitrogen", - elementColor: [ - 0.05, - 0.05, - 1 - ], - discoveryCountry: [ - "uk" - ], - discoverers: [ - "D.", - "Rutherford" - ] - }, - { - id: "O", - atomicNumber: 8, - mass: 15.9994, - exactMass: 15.99491462, - ionization: 13.6181, - electronAffinity: 1.461112, - electronegativityPauling: 3.44, - nameOrigin: "Latin 'oxygenium' (forms acids)", - radiusCovalent: 0.73, - radiusVDW: 1.55, - boilingpoint: 90.188, - meltingpoint: 54.8, - periodTableBlock: "p", - discoveryDate: "1774", - period: "2", - group: "6", - electronicConfiguration: "He 2s2 2p4", - family: "Non-Metal", - symbol: "O", - name: "Oxygen", - elementColor: [ - 1, - 0.05, - 0.05 - ], - discoveryCountry: [ - "se", - "uk" - ], - discoverers: [ - "J.", - "Priestley" - ] - }, - { - id: "F", - atomicNumber: 9, - mass: 18.9984032, - exactMass: 18.99840322, - ionization: 17.4228, - electronAffinity: 3.4011887, - electronegativityPauling: 3.98, - nameOrigin: "Latin 'fluere' ('floats')", - radiusCovalent: 0.71, - radiusVDW: 1.5, - boilingpoint: 85, - meltingpoint: 53.55, - periodTableBlock: "p", - discoveryDate: "1886", - period: "2", - group: "7", - electronicConfiguration: "He 2s2 2p5", - family: "Halogen", - symbol: "F", - name: "Fluorine", - elementColor: [ - 0.7, - 1, - 1 - ], - discoveryCountry: [ - "fr" - ], - discoverers: [ - "H.", - "F.", - "Moissan" - ] - }, - { - id: "Ne", - atomicNumber: 10, - mass: 20.1797, - exactMass: 19.99244018, - ionization: 21.5645, - electronAffinity: 0, - nameOrigin: "Greek 'neo'. meaning 'new'", - radiusCovalent: 0.69, - radiusVDW: 1.54, - boilingpoint: 27.1, - meltingpoint: 24.55, - periodTableBlock: "p", - discoveryDate: "1898", - period: "2", - group: "8", - electronicConfiguration: "He 2s2 2p6", - family: "Noblegas", - symbol: "Ne", - name: "Neon", - elementColor: [ - 0.7, - 0.89, - 0.96 - ], - discoveryCountry: [ - "uk" - ], - discoverers: [ - "W. Ramsay", - "M.W. Travers" - ] - }, - { - id: "Na", - atomicNumber: 11, - mass: 22.98976928, - exactMass: 22.98976928, - ionization: 5.1391, - electronAffinity: 0.547926, - electronegativityPauling: 0.93, - nameOrigin: "Arabic 'natrun' for 'soda'", - radiusCovalent: 1.54, - radiusVDW: 2.4, - boilingpoint: 1156, - meltingpoint: 371, - periodTableBlock: "s", - discoveryDate: "1807", - period: "3", - group: "1", - electronicConfiguration: "Ne 3s1", - family: "Alkali_Earth", - symbol: "Na", - name: "Sodium", - elementColor: [ - 0.67, - 0.36, - 0.95 - ], - discoveryCountry: [ - "uk" - ], - discoverers: [ - "Sir", - "Humphrey", - "Davy" - ] - }, - { - id: "Mg", - atomicNumber: 12, - mass: 24.305, - exactMass: 23.9850417, - ionization: 7.6462, - electronAffinity: 0, - electronegativityPauling: 1.31, - nameOrigin: "Named after the city of Magnesia", - radiusCovalent: 1.3, - radiusVDW: 2.2, - boilingpoint: 1380, - meltingpoint: 922, - periodTableBlock: "s", - discoveryDate: "1808", - period: "3", - group: "2", - electronicConfiguration: "Ne 3s2", - family: "Alkaline_Earth", - symbol: "Mg", - name: "Magnesium", - elementColor: [ - 0.54, - 1, - 0 - ], - discoveryCountry: [ - "uk" - ], - discoverers: [ - "H.", - "B.", - "Davy" - ] - }, - { - id: "Al", - atomicNumber: 13, - mass: 26.9815386, - exactMass: 26.98153863, - ionization: 5.9858, - electronAffinity: 0.43283, - electronegativityPauling: 1.61, - nameOrigin: "Latin 'alumen'", - radiusCovalent: 1.18, - radiusVDW: 2.1, - boilingpoint: 2740, - meltingpoint: 933.5, - periodTableBlock: "p", - discoveryDate: "1825", - period: "3", - group: "3", - electronicConfiguration: "Ne 3s2 3p1", - family: "Other_Metal", - symbol: "Al", - name: "Aluminium", - elementColor: [ - 0.75, - 0.65, - 0.65 - ], - discoveryCountry: [ - "dk" - ], - discoverers: [ - "H.", - "Ch.", - "Oersted" - ] - }, - { - id: "Si", - atomicNumber: 14, - mass: 28.0855, - exactMass: 27.97692653, - ionization: 8.1517, - electronAffinity: 1.389521, - electronegativityPauling: 1.9, - nameOrigin: "Latin 'silex'", - radiusCovalent: 1.11, - radiusVDW: 2.1, - boilingpoint: 2630, - meltingpoint: 1683, - periodTableBlock: "p", - discoveryDate: "1823", - period: "3", - group: "4", - electronicConfiguration: "Ne 3s2 3p2", - family: "Metalloids", - symbol: "Si", - name: "Silicon", - elementColor: [ - 0.5, - 0.6, - 0.6 - ], - discoveryCountry: [ - "se" - ], - discoverers: [ - "J.", - "J.", - "Berzelius" - ] - }, - { - id: "P", - atomicNumber: 15, - mass: 30.973762, - exactMass: 30.97376163, - ionization: 10.4867, - electronAffinity: 0.7465, - electronegativityPauling: 2.19, - nameOrigin: "Greek 'phosphoros' for 'carries light'", - radiusCovalent: 1.06, - radiusVDW: 1.95, - boilingpoint: 553, - meltingpoint: 317.3, - periodTableBlock: "p", - discoveryDate: "1669", - period: "3", - group: "5", - electronicConfiguration: "Ne 3s2 3p3", - family: "Non-Metal", - symbol: "P", - name: "Phosphorus", - elementColor: [ - 1, - 0.5, - 0 - ], - discoveryCountry: [ - "de" - ], - discoverers: [ - "H.", - "Brandt" - ] - }, - { - id: "S", - atomicNumber: 16, - mass: 32.065, - exactMass: 31.972071, - ionization: 10.36, - electronAffinity: 2.0771029, - electronegativityPauling: 2.58, - nameOrigin: "In sanskrit 'sweb' means 'to sleep'", - radiusCovalent: 1.02, - radiusVDW: 1.8, - boilingpoint: 717.82, - meltingpoint: 392.2, - periodTableBlock: "p", - discoveryDate: "0", - period: "3", - group: "6", - electronicConfiguration: "Ne 3s2 3p4", - family: "Non-Metal", - symbol: "S", - name: "Sulfur", - elementColor: [ - 1, - 1, - 0.19 - ], - discoveryCountry: [ - "ancient" - ] - }, - { - id: "Cl", - atomicNumber: 17, - mass: 35.453, - exactMass: 34.96885268, - ionization: 12.9676, - electronAffinity: 3.612724, - electronegativityPauling: 3.16, - nameOrigin: "Greek 'chloros' for 'yellow-green'", - radiusCovalent: 0.99, - radiusVDW: 1.8, - boilingpoint: 239.18, - meltingpoint: 172.17, - periodTableBlock: "p", - discoveryDate: "1774", - period: "3", - group: "7", - electronicConfiguration: "Ne 3s2 3p5", - family: "Halogen", - symbol: "Cl", - name: "Chlorine", - elementColor: [ - 0.12, - 0.94, - 0.12 - ], - discoveryCountry: [ - "se" - ], - discoverers: [ - "C.", - "W.", - "Scheele" - ] - }, - { - id: "Ar", - atomicNumber: 18, - mass: 39.948, - exactMass: 39.96238312, - ionization: 15.7596, - electronAffinity: 0, - nameOrigin: "Greek 'aergon' for 'inactive'", - radiusCovalent: 0.97, - radiusVDW: 1.88, - boilingpoint: 87.45, - meltingpoint: 83.95, - periodTableBlock: "p", - discoveryDate: "1894", - period: "3", - group: "8", - electronicConfiguration: "Ne 3s2 3p6", - family: "Noblegas", - symbol: "Ar", - name: "Argon", - elementColor: [ - 0.5, - 0.82, - 0.89 - ], - discoveryCountry: [ - "uk" - ], - discoverers: [ - "W. Ramsay", - "J. Rayleigh" - ] - }, - { - id: "K", - atomicNumber: 19, - mass: 39.0983, - exactMass: 38.96370668, - ionization: 4.3407, - electronAffinity: 0.501459, - electronegativityPauling: 0.82, - nameOrigin: "Arabic 'al qaliy' for potash", - radiusCovalent: 1.96, - radiusVDW: 2.8, - boilingpoint: 1033, - meltingpoint: 336.8, - periodTableBlock: "s", - discoveryDate: "1807", - period: "4", - group: "1", - electronicConfiguration: "Ar 4s1", - family: "Alkali_Earth", - symbol: "K", - name: "Potassium", - elementColor: [ - 0.56, - 0.25, - 0.83 - ], - discoveryCountry: [ - "uk" - ], - discoverers: [ - "H.", - "B.", - "Davy" - ] - }, - { - id: "Ca", - atomicNumber: 20, - mass: 40.078, - exactMass: 39.96259098, - ionization: 6.1132, - electronAffinity: 0.02455, - electronegativityPauling: 1, - nameOrigin: "Latin 'calx' for 'lime'", - radiusCovalent: 1.74, - radiusVDW: 2.4, - boilingpoint: 1757, - meltingpoint: 1112, - periodTableBlock: "s", - discoveryDate: "1808", - period: "4", - group: "2", - electronicConfiguration: "Ar 4s2", - family: "Alkaline_Earth", - symbol: "Ca", - name: "Calcium", - elementColor: [ - 0.24, - 1, - 0 - ], - discoveryCountry: [ - "uk" - ], - discoverers: [ - "H.", - "B.", - "Davy" - ] - }, - { - id: "Sc", - atomicNumber: 21, - mass: 44.955912, - exactMass: 44.9559119, - ionization: 6.5615, - electronAffinity: 0.188, - electronegativityPauling: 1.36, - nameOrigin: "Named because it was found in Scandinavia", - radiusCovalent: 1.44, - radiusVDW: 2.3, - boilingpoint: 3109, - meltingpoint: 1814, - periodTableBlock: "d", - discoveryDate: "1879", - period: "4", - group: "3", - electronicConfiguration: "Ar 3d1 4s2", - family: "Transition", - symbol: "Sc", - name: "Scandium", - elementColor: [ - 0.9, - 0.9, - 0.9 - ], - discoveryCountry: [ - "se" - ], - discoverers: [ - "L.", - "Nilson" - ] - }, - { - id: "Ti", - atomicNumber: 22, - mass: 47.867, - exactMass: 47.9479463, - ionization: 6.8281, - electronAffinity: 0.084, - electronegativityPauling: 1.54, - nameOrigin: "The Titans were giants in Greek mythology", - radiusCovalent: 1.36, - radiusVDW: 2.15, - boilingpoint: 3560, - meltingpoint: 1935, - periodTableBlock: "d", - discoveryDate: "1791", - period: "4", - group: "4", - electronicConfiguration: "Ar 3d2 4s2", - family: "Transition", - symbol: "Ti", - name: "Titanium", - elementColor: [ - 0.75, - 0.76, - 0.78 - ], - discoveryCountry: [ - "uk" - ], - discoverers: [ - "W.", - "Gregor" - ] - }, - { - id: "V", - atomicNumber: 23, - mass: 50.9415, - exactMass: 50.9439595, - ionization: 6.7462, - electronAffinity: 0.525, - electronegativityPauling: 1.63, - nameOrigin: "'Vanadis' is another name for the Nordic goddess Freyja", - radiusCovalent: 1.25, - radiusVDW: 2.05, - boilingpoint: 3650, - meltingpoint: 2163, - periodTableBlock: "d", - discoveryDate: "1830", - period: "4", - group: "5", - electronicConfiguration: "Ar 3d3 4s2", - family: "Transition", - symbol: "V", - name: "Vanadium", - elementColor: [ - 0.65, - 0.65, - 0.67 - ], - discoveryCountry: [ - "se" - ], - discoverers: [ - "N.", - "Sefström" - ] - }, - { - id: "Cr", - atomicNumber: 24, - mass: 51.9961, - exactMass: 51.9405075, - ionization: 6.7665, - electronAffinity: 0.67584, - electronegativityPauling: 1.66, - nameOrigin: "Greek 'chroma' means 'color'", - radiusCovalent: 1.27, - radiusVDW: 2.05, - boilingpoint: 2945, - meltingpoint: 2130, - periodTableBlock: "d", - discoveryDate: "1797", - period: "4", - group: "6", - electronicConfiguration: "Ar 3d5 4s1", - family: "Transition", - symbol: "Cr", - name: "Chromium", - elementColor: [ - 0.54, - 0.6, - 0.78 - ], - discoveryCountry: [ - "fr" - ], - discoverers: [ - "Nicholas", - "Louis", - "Vauquelin" - ] - }, - { - id: "Mn", - atomicNumber: 25, - mass: 54.938045, - exactMass: 54.9380451, - ionization: 7.434, - electronAffinity: 0, - electronegativityPauling: 1.55, - nameOrigin: "It was discovered near a town named Magnesia in black earth. Thus, it was named 'magnesia nigra', or for short, Manganese.", - radiusCovalent: 1.39, - radiusVDW: 2.05, - boilingpoint: 2235, - meltingpoint: 1518, - periodTableBlock: "d", - discoveryDate: "1774", - period: "4", - group: "7", - electronicConfiguration: "Ar 3d5 4s2", - family: "Transition", - symbol: "Mn", - name: "Manganese", - elementColor: [ - 0.61, - 0.48, - 0.78 - ], - discoveryCountry: [ - "se" - ], - discoverers: [ - "C.", - "W.", - "Scheele" - ] - }, - { - id: "Fe", - atomicNumber: 26, - mass: 55.845, - exactMass: 55.9349375, - ionization: 7.9024, - electronAffinity: 0.151, - electronegativityPauling: 1.83, - nameOrigin: "Latin 'ferrum'", - radiusCovalent: 1.25, - radiusVDW: 2.05, - boilingpoint: 3023, - meltingpoint: 1808, - periodTableBlock: "d", - discoveryDate: "0", - period: "4", - group: "8", - electronicConfiguration: "Ar 3d6 4s2", - family: "Transition", - symbol: "Fe", - name: "Iron", - elementColor: [ - 0.5, - 0.48, - 0.78 - ], - discoveryCountry: [ - "ancient" - ] - }, - { - id: "Co", - atomicNumber: 27, - mass: 58.933195, - exactMass: 58.933195, - ionization: 7.881, - electronAffinity: 0.6633, - electronegativityPauling: 1.88, - nameOrigin: "Named after the German word 'Kobold' for 'goblin'", - radiusCovalent: 1.26, - radiusVDW: 2, - boilingpoint: 3143, - meltingpoint: 1768, - periodTableBlock: "d", - discoveryDate: "1737", - period: "4", - group: "8", - electronicConfiguration: "Ar 3d7 4s2", - family: "Transition", - symbol: "Co", - name: "Cobalt", - elementColor: [ - 0.44, - 0.48, - 0.78 - ], - discoveryCountry: [ - "se" - ], - discoverers: [ - "G.", - "Brandt" - ] - }, - { - id: "Ni", - atomicNumber: 28, - mass: 58.6934, - exactMass: 57.9353429, - ionization: 7.6398, - electronAffinity: 1.15716, - electronegativityPauling: 1.91, - nameOrigin: "'Nickel' was the name of a mountain goblin", - radiusCovalent: 1.21, - radiusVDW: 2, - boilingpoint: 3005, - meltingpoint: 1726, - periodTableBlock: "d", - discoveryDate: "1751", - period: "4", - group: "8", - electronicConfiguration: "Ar 3d8 4s2", - family: "Transition", - symbol: "Ni", - name: "Nickel", - elementColor: [ - 0.36, - 0.48, - 0.76 - ], - discoveryCountry: [ - "se" - ], - discoverers: [ - "A.", - "F.", - "Cronstedt" - ] - }, - { - id: "Cu", - atomicNumber: 29, - mass: 63.546, - exactMass: 62.9295975, - ionization: 7.7264, - electronAffinity: 1.23578, - electronegativityPauling: 1.9, - nameOrigin: "Greek 'cuprum' for Cypres", - radiusCovalent: 1.38, - radiusVDW: 2, - boilingpoint: 2840, - meltingpoint: 1356.6, - periodTableBlock: "d", - discoveryDate: "0", - period: "4", - group: "1", - electronicConfiguration: "Ar 3d10 4s1", - family: "Transition", - symbol: "Cu", - name: "Copper", - elementColor: [ - 1, - 0.48, - 0.38 - ], - discoveryCountry: [ - "ancient" - ] - }, - { - id: "Zn", - atomicNumber: 30, - mass: 65.38, - exactMass: 63.9291422, - ionization: 9.3942, - electronAffinity: 0, - electronegativityPauling: 1.65, - nameOrigin: "German 'zinking' for 'rough', because zinc ore is very rough", - radiusCovalent: 1.31, - radiusVDW: 2.1, - boilingpoint: 1180, - meltingpoint: 692.73, - periodTableBlock: "d", - discoveryDate: "1746", - period: "4", - group: "2", - electronicConfiguration: "Ar 3d10 4s2", - family: "Transition", - symbol: "Zn", - name: "Zinc", - elementColor: [ - 0.49, - 0.5, - 0.69 - ], - discoveryCountry: [ - "de" - ], - discoverers: [ - "Andreas", - "Marggraf" - ] - }, - { - id: "Ga", - atomicNumber: 31, - mass: 69.723, - exactMass: 68.9255736, - ionization: 5.9993, - electronAffinity: 0.41, - electronegativityPauling: 1.81, - nameOrigin: "'Gallia' is an old name for France", - radiusCovalent: 1.26, - radiusVDW: 2.1, - boilingpoint: 2478, - meltingpoint: 302.92, - periodTableBlock: "p", - discoveryDate: "1875", - period: "4", - group: "3", - electronicConfiguration: "Ar 3d10 4s2 4p1", - family: "Other_Metal", - symbol: "Ga", - name: "Gallium", - elementColor: [ - 0.76, - 0.56, - 0.56 - ], - discoveryCountry: [ - "fr" - ], - discoverers: [ - "P.", - "E.", - "Lecoq", - "de", - "Boisbaudran" - ] - }, - { - id: "Ge", - atomicNumber: 32, - mass: 72.64, - exactMass: 73.9211778, - ionization: 7.8994, - electronAffinity: 1.232712, - electronegativityPauling: 2.01, - nameOrigin: "Latin 'germania' is an old name for Germany", - radiusCovalent: 1.22, - radiusVDW: 2.1, - boilingpoint: 3107, - meltingpoint: 1211.5, - periodTableBlock: "p", - discoveryDate: "1886", - period: "4", - group: "4", - electronicConfiguration: "Ar 3d10 4s2 4p2", - family: "Metalloids", - symbol: "Ge", - name: "Germanium", - elementColor: [ - 0.4, - 0.56, - 0.56 - ], - discoveryCountry: [ - "de" - ], - discoverers: [ - "C.", - "A.", - "Winkler" - ] - }, - { - id: "As", - atomicNumber: 33, - mass: 74.9216, - exactMass: 74.9215965, - ionization: 9.7886, - electronAffinity: 0.814, - electronegativityPauling: 2.18, - nameOrigin: "Greek 'arsenikos' for 'male' or 'bold'", - radiusCovalent: 1.19, - radiusVDW: 2.05, - boilingpoint: 876, - meltingpoint: 1090, - periodTableBlock: "p", - discoveryDate: "0", - period: "4", - group: "5", - electronicConfiguration: "Ar 3d10 4s2 4p3", - family: "Metalloids", - symbol: "As", - name: "Arsenic", - elementColor: [ - 0.74, - 0.5, - 0.89 - ], - discoveryCountry: [ - "ancient" - ] - }, - { - id: "Se", - atomicNumber: 34, - mass: 78.96, - exactMass: 79.9165213, - ionization: 9.7524, - electronAffinity: 2.02067, - electronegativityPauling: 2.55, - nameOrigin: "Greek 'selena' for 'moon'", - radiusCovalent: 1.16, - radiusVDW: 1.9, - boilingpoint: 958, - meltingpoint: 494, - periodTableBlock: "p", - discoveryDate: "1817", - period: "4", - group: "6", - electronicConfiguration: "Ar 3d10 4s2 4p4", - family: "Non-Metal", - symbol: "Se", - name: "Selenium", - elementColor: [ - 1, - 0.63, - 0 - ], - discoveryCountry: [ - "se" - ], - discoverers: [ - "J.", - "J.", - "Berzelius" - ] - }, - { - id: "Br", - atomicNumber: 35, - mass: 79.904, - exactMass: 78.9183371, - ionization: 11.8138, - electronAffinity: 3.363588, - electronegativityPauling: 2.96, - nameOrigin: "Greek 'bromos' for 'smells badly'", - radiusCovalent: 1.14, - radiusVDW: 1.9, - boilingpoint: 331.85, - meltingpoint: 265.95, - periodTableBlock: "p", - discoveryDate: "1826", - period: "4", - group: "7", - electronicConfiguration: "Ar 3d10 4s2 4p5", - family: "Halogen", - symbol: "Br", - name: "Bromine", - elementColor: [ - 0.65, - 0.16, - 0.16 - ], - discoveryCountry: [ - "fr" - ], - discoverers: [ - "A.", - "J.", - "Balard" - ] - }, - { - id: "Kr", - atomicNumber: 36, - mass: 83.798, - exactMass: 83.911507, - ionization: 13.9996, - electronAffinity: 0, - electronegativityPauling: 3, - nameOrigin: "Greek 'kryptos' for 'hidden'", - radiusCovalent: 1.1, - radiusVDW: 2.02, - boilingpoint: 120.85, - meltingpoint: 116, - periodTableBlock: "p", - discoveryDate: "1898", - period: "4", - group: "8", - electronicConfiguration: "Ar 3d10 4s2 4p6", - family: "Noblegas", - symbol: "Kr", - name: "Krypton", - elementColor: [ - 0.36, - 0.72, - 0.82 - ], - discoveryCountry: [ - "uk" - ], - discoverers: [ - "W. Ramsay", - "M. W. Travers" - ] - }, - { - id: "Rb", - atomicNumber: 37, - mass: 85.4678, - exactMass: 84.91178974, - ionization: 4.1771, - electronAffinity: 0.485916, - electronegativityPauling: 0.82, - nameOrigin: "Latin 'rubidus' for 'dark red'", - radiusCovalent: 2.11, - radiusVDW: 2.9, - boilingpoint: 961, - meltingpoint: 312.63, - periodTableBlock: "s", - discoveryDate: "1861", - period: "5", - group: "1", - electronicConfiguration: "Kr 5s1", - family: "Alkali_Earth", - symbol: "Rb", - name: "Rubidium", - elementColor: [ - 0.44, - 0.18, - 0.69 - ], - discoveryCountry: [ - "de" - ], - discoverers: [ - "Robert W. Bunsen", - "Gustav R. Kirchhoff" - ] - }, - { - id: "Sr", - atomicNumber: 38, - mass: 87.62, - exactMass: 87.9056121, - ionization: 5.6949, - electronAffinity: 0.05206, - electronegativityPauling: 0.95, - nameOrigin: "Named after the mineral Strontianit", - radiusCovalent: 1.92, - radiusVDW: 2.55, - boilingpoint: 1655, - meltingpoint: 1042, - periodTableBlock: "s", - discoveryDate: "1790", - period: "5", - group: "2", - electronicConfiguration: "Kr 5s2", - family: "Alkaline_Earth", - symbol: "Sr", - name: "Strontium", - elementColor: [ - 0, - 1, - 0 - ], - discoveryCountry: [ - "uk" - ], - discoverers: [ - "H.", - "B.", - "Davy" - ] - }, - { - id: "Y", - atomicNumber: 39, - mass: 88.90585, - exactMass: 88.9058483, - ionization: 6.2173, - electronAffinity: 0.307, - electronegativityPauling: 1.22, - nameOrigin: "Named after the small town of Ytterby near Stockholm in Sweden. Terbium. Ytterbium and Gadolinium are also named after this town.", - radiusCovalent: 1.62, - radiusVDW: 2.4, - boilingpoint: 3611, - meltingpoint: 1795, - periodTableBlock: "d", - discoveryDate: "1794", - period: "5", - group: "3", - electronicConfiguration: "Kr 4d1 5s2", - family: "Transition", - symbol: "Y", - name: "Yttrium", - elementColor: [ - 0.58, - 1, - 1 - ], - discoveryCountry: [ - "fi" - ], - discoverers: [ - "Johann", - "Gadolin" - ] - }, - { - id: "Zr", - atomicNumber: 40, - mass: 91.224, - exactMass: 89.9047044, - ionization: 6.6339, - electronAffinity: 0.426, - electronegativityPauling: 1.33, - nameOrigin: "Named after the mineral zircon", - radiusCovalent: 1.48, - radiusVDW: 2.3, - boilingpoint: 4682, - meltingpoint: 2128, - periodTableBlock: "d", - discoveryDate: "1789", - period: "5", - group: "4", - electronicConfiguration: "Kr 4d2 5s2", - family: "Transition", - symbol: "Zr", - name: "Zirconium", - elementColor: [ - 0.58, - 0.88, - 0.88 - ], - discoveryCountry: [ - "de" - ], - discoverers: [ - "Martin", - "Heinrich", - "Klaproth" - ] - }, - { - id: "Nb", - atomicNumber: 41, - mass: 92.90638, - exactMass: 92.9063781, - ionization: 6.7589, - electronAffinity: 0.893, - electronegativityPauling: 1.6, - nameOrigin: "Named after Niobe, the daughter of the Greek god Tantalus.", - radiusCovalent: 1.37, - radiusVDW: 2.15, - boilingpoint: 5015, - meltingpoint: 2742, - periodTableBlock: "d", - discoveryDate: "1801", - period: "5", - group: "5", - electronicConfiguration: "Kr 4d4", - family: "Transition", - symbol: "Nb", - name: "Niobium", - elementColor: [ - 0.45, - 0.76, - 0.79 - ], - discoveryCountry: [ - "uk" - ], - discoverers: [ - "Ch.", - "Hatchett" - ] - }, - { - id: "Mo", - atomicNumber: 42, - mass: 95.96, - exactMass: 97.9054082, - ionization: 7.0924, - electronAffinity: 0.7472, - electronegativityPauling: 2.16, - nameOrigin: "This name has Greek roots. It means 'like Platinum' - it was difficult to distinguish Molybdenum from Platinum.", - radiusCovalent: 1.45, - radiusVDW: 2.1, - boilingpoint: 4912, - meltingpoint: 2896, - periodTableBlock: "d", - discoveryDate: "1778", - period: "5", - group: "6", - electronicConfiguration: "Kr 4d5 5s1", - family: "Transition", - symbol: "Mo", - name: "Molybdenum", - elementColor: [ - 0.33, - 0.71, - 0.71 - ], - discoveryCountry: [ - "se" - ], - discoverers: [ - "C.", - "W.", - "Scheele" - ] - }, - { - id: "Tc", - atomicNumber: 43, - mass: 98, - exactMass: 97.907216, - ionization: 7.28, - electronAffinity: 0.55, - electronegativityPauling: 1.9, - nameOrigin: "Greek 'technetos' for artificial", - radiusCovalent: 1.56, - radiusVDW: 2.05, - boilingpoint: 4538, - meltingpoint: 2477, - periodTableBlock: "d", - discoveryDate: "1937", - period: "5", - group: "7", - electronicConfiguration: "Kr 4d6 5s1", - family: "Transition", - symbol: "Tc", - name: "Technetium", - elementColor: [ - 0.23, - 0.62, - 0.62 - ], - discoveryCountry: [ - "it" - ], - discoverers: [ - "C. Perrier", - "E. G. Segre" - ] - }, - { - id: "Ru", - atomicNumber: 44, - mass: 101.07, - exactMass: 101.9043493, - ionization: 7.3605, - electronAffinity: 1.04638, - electronegativityPauling: 2.2, - nameOrigin: "Ruthenia is the old name of Russia", - radiusCovalent: 1.26, - radiusVDW: 2.05, - boilingpoint: 4425, - meltingpoint: 2610, - periodTableBlock: "d", - discoveryDate: "1844", - period: "5", - group: "8", - electronicConfiguration: "Kr 4d7 5s1", - family: "Transition", - symbol: "Ru", - name: "Ruthenium", - elementColor: [ - 0.14, - 0.56, - 0.56 - ], - discoveryCountry: [ - "ru" - ], - discoverers: [ - "K.", - "Klaus" - ] - }, - { - id: "Rh", - atomicNumber: 45, - mass: 102.9055, - exactMass: 102.905504, - ionization: 7.4589, - electronAffinity: 1.14289, - electronegativityPauling: 2.28, - nameOrigin: "Greek 'rhodeos' means 'red like a rose'", - radiusCovalent: 1.35, - radiusVDW: 2, - boilingpoint: 3970, - meltingpoint: 2236, - periodTableBlock: "d", - discoveryDate: "1803", - period: "5", - group: "8", - electronicConfiguration: "Kr 4d8 5s1", - family: "Transition", - symbol: "Rh", - name: "Rhodium", - elementColor: [ - 0.04, - 0.49, - 0.55 - ], - discoveryCountry: [ - "uk" - ], - discoverers: [ - "W.", - "Wollaston" - ] - }, - { - id: "Pd", - atomicNumber: 46, - mass: 106.42, - exactMass: 105.903486, - ionization: 8.3369, - electronAffinity: 0.56214, - electronegativityPauling: 2.2, - nameOrigin: "Named after the asteroid Pallas", - radiusCovalent: 1.31, - radiusVDW: 2.05, - boilingpoint: 3240, - meltingpoint: 1825, - periodTableBlock: "d", - discoveryDate: "1803", - period: "5", - group: "8", - electronicConfiguration: "Kr 4d10", - family: "Transition", - symbol: "Pd", - name: "Palladium", - elementColor: [ - 0, - 0.41, - 0.52 - ], - discoveryCountry: [ - "uk" - ] - }, - { - id: "Ag", - atomicNumber: 47, - mass: 107.8682, - exactMass: 106.905097, - ionization: 7.5762, - electronAffinity: 1.30447, - electronegativityPauling: 1.93, - nameOrigin: "Latin 'argentum' for silver", - radiusCovalent: 1.53, - radiusVDW: 2.1, - boilingpoint: 2436, - meltingpoint: 1235.1, - periodTableBlock: "d", - discoveryDate: "0", - period: "5", - group: "1", - electronicConfiguration: "Kr 4d10 5s1", - family: "Transition", - symbol: "Ag", - name: "Silver", - elementColor: [ - 0.88, - 0.88, - 1 - ], - discoveryCountry: [ - "ancient" - ] - }, - { - id: "Cd", - atomicNumber: 48, - mass: 112.411, - exactMass: 113.9033585, - ionization: 8.9938, - electronAffinity: 0, - electronegativityPauling: 1.69, - nameOrigin: "Greek 'kadmia' ('Galmei' = Zinc carbonate)", - radiusCovalent: 1.48, - radiusVDW: 2.2, - boilingpoint: 1040, - meltingpoint: 594.26, - periodTableBlock: "d", - discoveryDate: "1817", - period: "5", - group: "2", - electronicConfiguration: "Kr 4d10 5s2", - family: "Transition", - symbol: "Cd", - name: "Cadmium", - elementColor: [ - 1, - 0.85, - 0.56 - ], - discoveryCountry: [ - "de" - ], - discoverers: [ - "F.", - "Stromeyer" - ] - }, - { - id: "In", - atomicNumber: 49, - mass: 114.818, - exactMass: 114.903878, - ionization: 5.7864, - electronAffinity: 0.404, - electronegativityPauling: 1.78, - nameOrigin: "Named after 'Indigo' because of its blue spectrum", - radiusCovalent: 1.44, - radiusVDW: 2.2, - boilingpoint: 2350, - meltingpoint: 429.78, - periodTableBlock: "p", - discoveryDate: "1863", - period: "5", - group: "3", - electronicConfiguration: "Kr 4d10 5s2 5p1", - family: "Other_Metal", - symbol: "In", - name: "Indium", - elementColor: [ - 0.65, - 0.46, - 0.45 - ], - discoveryCountry: [ - "de" - ], - discoverers: [ - "F. Reich", - "H.T. Richter" - ] - }, - { - id: "Sn", - atomicNumber: 50, - mass: 118.71, - exactMass: 119.9021947, - ionization: 7.3439, - electronAffinity: 1.112066, - electronegativityPauling: 1.96, - nameOrigin: "Latin 'stannum' for tin", - radiusCovalent: 1.41, - radiusVDW: 2.25, - boilingpoint: 2876, - meltingpoint: 505.12, - periodTableBlock: "p", - discoveryDate: "0", - period: "5", - group: "4", - electronicConfiguration: "Kr 4d10 5s2 5p2", - family: "Other_Metal", - symbol: "Sn", - name: "Tin", - elementColor: [ - 0.4, - 0.5, - 0.5 - ], - discoveryCountry: [ - "ancient" - ] - }, - { - id: "Sb", - atomicNumber: 51, - mass: 121.76, - exactMass: 120.9038157, - ionization: 8.6084, - electronAffinity: 1.047401, - electronegativityPauling: 2.05, - nameOrigin: "Arabic 'anthos ammonos' for 'blossom of the god Ammon'", - radiusCovalent: 1.38, - radiusVDW: 2.2, - boilingpoint: 1860, - meltingpoint: 903.91, - periodTableBlock: "p", - discoveryDate: "0", - period: "5", - group: "5", - electronicConfiguration: "Kr 4d10 5s2 5p3", - family: "Metalloids", - symbol: "Sb", - name: "Antimony", - elementColor: [ - 0.62, - 0.39, - 0.71 - ], - discoveryCountry: [ - "ancient" - ] - }, - { - id: "Te", - atomicNumber: 52, - mass: 127.6, - exactMass: 129.9062244, - ionization: 9.0096, - electronAffinity: 1.970875, - electronegativityPauling: 2.1, - nameOrigin: "Latin 'tellus' or 'telluris' for 'Planet Earth'", - radiusCovalent: 1.35, - radiusVDW: 2.1, - boilingpoint: 1261, - meltingpoint: 722.72, - periodTableBlock: "p", - discoveryDate: "1782", - period: "5", - group: "6", - electronicConfiguration: "Kr 4d10 5s2 5p4", - family: "Metalloids", - symbol: "Te", - name: "Tellurium", - elementColor: [ - 0.83, - 0.48, - 0 - ], - discoveryCountry: [ - "de" - ], - discoverers: [ - "Franz", - "Joseph", - "Muller", - "von", - "Reichstein" - ] - }, - { - id: "I", - atomicNumber: 53, - mass: 126.90447, - exactMass: 126.904473, - ionization: 10.4513, - electronAffinity: 3.059038, - electronegativityPauling: 2.66, - nameOrigin: "Greek 'ioeides' for 'violet'.", - radiusCovalent: 1.33, - radiusVDW: 2.1, - boilingpoint: 457.5, - meltingpoint: 386.7, - periodTableBlock: "p", - discoveryDate: "1811", - period: "5", - group: "7", - electronicConfiguration: "Kr 4d10 5s2 5p5", - family: "Halogen", - symbol: "I", - name: "Iodine", - elementColor: [ - 0.58, - 0, - 0.58 - ], - discoveryCountry: [ - "fr" - ], - discoverers: [ - "Bernard", - "Courtois" - ] - }, - { - id: "Xe", - atomicNumber: 54, - mass: 131.293, - exactMass: 131.9041535, - ionization: 12.1298, - electronAffinity: 0, - electronegativityPauling: 2.6, - nameOrigin: "Greek 'xenos' for 'foreigner'", - radiusCovalent: 1.3, - radiusVDW: 2.16, - boilingpoint: 165.1, - meltingpoint: 161.39, - periodTableBlock: "p", - discoveryDate: "1898", - period: "5", - group: "8", - electronicConfiguration: "Kr 4d10 5s2 5p6", - family: "Noblegas", - symbol: "Xe", - name: "Xenon", - elementColor: [ - 0.26, - 0.62, - 0.69 - ], - discoveryCountry: [ - "uk" - ], - discoverers: [ - "W. Ramsay", - "M. W. Travers" - ] - }, - { - id: "Cs", - atomicNumber: 55, - mass: 132.9054519, - exactMass: 132.9054519, - ionization: 3.8939, - electronAffinity: 0.471626, - electronegativityPauling: 0.79, - nameOrigin: "Latin 'caesius' for 'heaven blue'.", - radiusCovalent: 2.25, - radiusVDW: 3, - boilingpoint: 944, - meltingpoint: 301.54, - periodTableBlock: "s", - discoveryDate: "1860", - period: "6", - group: "1", - electronicConfiguration: "Xe 6s1", - family: "Alkali_Earth", - symbol: "Cs", - name: "Caesium", - elementColor: [ - 0.34, - 0.09, - 0.56 - ], - discoveryCountry: [ - "de" - ], - discoverers: [ - "Robert Wilhelm Bunsen", - "Gustav Robert Kirchhoff" - ] - }, - { - id: "Ba", - atomicNumber: 56, - mass: 137.327, - exactMass: 137.9052472, - ionization: 5.2117, - electronAffinity: 0.14462, - electronegativityPauling: 0.89, - nameOrigin: "Greek 'barys' for 'heavy'", - radiusCovalent: 1.98, - radiusVDW: 2.7, - boilingpoint: 2078, - meltingpoint: 1002, - periodTableBlock: "s", - discoveryDate: "1808", - period: "6", - group: "2", - electronicConfiguration: "Xe 6s2", - family: "Alkaline_Earth", - symbol: "Ba", - name: "Barium", - elementColor: [ - 0, - 0.79, - 0 - ], - discoveryCountry: [ - "uk" - ], - discoverers: [ - "Humphry", - "Bartholomew", - "Davy" - ] - }, - { - id: "La", - atomicNumber: 57, - mass: 138.90547, - exactMass: 138.9063533, - ionization: 5.5769, - electronAffinity: 0.47, - electronegativityPauling: 1.1, - nameOrigin: "Greek 'lanthanein' for 'hidden'. The Lanthanoids are also called the 'rare earth' elements.", - radiusCovalent: 1.69, - radiusVDW: 2.5, - boilingpoint: 3737, - meltingpoint: 1191, - periodTableBlock: "f", - discoveryDate: "1839", - period: "6", - group: "3", - electronicConfiguration: "Xe 5d1 6s2", - family: "Rare_Earth", - symbol: "La", - name: "Lanthanum", - elementColor: [ - 0.44, - 0.83, - 1 - ], - discoveryCountry: [ - "se" - ], - discoverers: [ - "K.", - "G.", - "Mosander" - ] - }, - { - id: "Ce", - atomicNumber: 58, - mass: 140.116, - exactMass: 139.9054387, - ionization: 5.5387, - electronAffinity: 0.5, - electronegativityPauling: 1.12, - nameOrigin: "Named after the planetoid Ceres", - radiusVDW: 2.48, - boilingpoint: 3715, - meltingpoint: 1071, - periodTableBlock: "f", - discoveryDate: "1803", - period: "6", - group: "4", - electronicConfiguration: "Xe 4f1 5d1 6s2", - family: "Rare_Earth", - symbol: "Ce", - name: "Cerium", - elementColor: [ - 1, - 1, - 0.78 - ], - discoverers: [ - "Jöns Jacob Berzelius", - "W. Hisinger", - "M. Klaproth" - ] - }, - { - id: "Pr", - atomicNumber: 59, - mass: 140.90765, - exactMass: 140.9076528, - ionization: 5.473, - electronAffinity: 0.5, - electronegativityPauling: 1.13, - nameOrigin: "Greek 'prasinos didymos' for 'green twin'", - radiusVDW: 2.47, - boilingpoint: 3785, - meltingpoint: 1204, - periodTableBlock: "f", - discoveryDate: "1885", - period: "6", - group: "5", - electronicConfiguration: "Xe 4f3 6s2", - family: "Rare_Earth", - symbol: "Pr", - name: "Praseodymium", - elementColor: [ - 0.85, - 1, - 0.78 - ], - discoverers: [ - "Carl", - "F.", - "Auer", - "von", - "Welsbach" - ] - }, - { - id: "Nd", - atomicNumber: 60, - mass: 144.242, - exactMass: 141.9077233, - ionization: 5.525, - electronAffinity: 0.5, - electronegativityPauling: 1.14, - nameOrigin: "Greek 'neos didymos' for 'new twin'", - radiusVDW: 2.45, - boilingpoint: 3347, - meltingpoint: 1294, - periodTableBlock: "f", - discoveryDate: "1885", - period: "6", - group: "6", - electronicConfiguration: "Xe 4f4 6s2", - family: "Rare_Earth", - symbol: "Nd", - name: "Neodymium", - elementColor: [ - 0.78, - 1, - 0.78 - ], - discoverers: [ - "Carl", - "F.", - "Auer", - "von", - "Welsbach" - ] - }, - { - id: "Pm", - atomicNumber: 61, - mass: 145, - exactMass: 144.912749, - ionization: 5.582, - electronAffinity: 0.5, - nameOrigin: "Named after the Greek Prometheus. Prometheus stole the fire from the gods and gave it to mankind.", - radiusVDW: 2.43, - boilingpoint: 3273, - meltingpoint: 1315, - periodTableBlock: "f", - discoveryDate: "1945", - period: "6", - group: "7", - electronicConfiguration: "Xe 4f5 6s2", - family: "Rare_Earth", - symbol: "Pm", - name: "Promethium", - elementColor: [ - 0.64, - 1, - 0.78 - ], - discoverers: [ - "J. A. Marinsky", - "C. D. Coryell", - "L. E. Glendenin" - ] - }, - { - id: "Sm", - atomicNumber: 62, - mass: 150.36, - exactMass: 151.9197324, - ionization: 5.6437, - electronAffinity: 0.5, - electronegativityPauling: 1.17, - nameOrigin: "Named after the mineral Samarskit", - radiusVDW: 2.42, - boilingpoint: 2067, - meltingpoint: 1347, - periodTableBlock: "f", - discoveryDate: "1879", - period: "6", - group: "8", - electronicConfiguration: "Xe 4f6 6s2", - family: "Rare_Earth", - symbol: "Sm", - name: "Samarium", - elementColor: [ - 0.56, - 1, - 0.78 - ], - discoverers: [ - "P.", - "Lecoq", - "de", - "Boisbaudran" - ] - }, - { - id: "Eu", - atomicNumber: 63, - mass: 151.964, - exactMass: 152.9212303, - ionization: 5.6704, - electronAffinity: 0.5, - nameOrigin: "Named after Europe", - radiusVDW: 2.4, - boilingpoint: 1800, - meltingpoint: 1095, - periodTableBlock: "f", - discoveryDate: "1901", - period: "6", - group: "8", - electronicConfiguration: "Xe 4f7 6s2", - family: "Rare_Earth", - symbol: "Eu", - name: "Europium", - elementColor: [ - 0.38, - 1, - 0.78 - ], - discoverers: [ - "E.", - "A.", - "Demarcay" - ] - }, - { - id: "Gd", - atomicNumber: 64, - mass: 157.25, - exactMass: 157.9241039, - ionization: 6.1498, - electronAffinity: 0.5, - electronegativityPauling: 1.2, - nameOrigin: "Named after the Finnish chemist Johan Gadolin", - radiusVDW: 2.38, - boilingpoint: 3545, - meltingpoint: 1585, - periodTableBlock: "f", - discoveryDate: "1880", - period: "6", - group: "8", - electronicConfiguration: "Xe 4f7 5d1 6s2", - family: "Rare_Earth", - symbol: "Gd", - name: "Gadolinium", - elementColor: [ - 0.27, - 1, - 0.78 - ], - discoverers: [ - "Jean", - "de", - "Marignac" - ] - }, - { - id: "Tb", - atomicNumber: 65, - mass: 158.92535, - exactMass: 158.9253468, - ionization: 5.8638, - electronAffinity: 0.5, - nameOrigin: "Named after the Swedish town of Ytterby", - radiusVDW: 2.37, - boilingpoint: 3500, - meltingpoint: 1629, - periodTableBlock: "f", - discoveryDate: "1843", - period: "6", - group: "1", - electronicConfiguration: "Xe 4f9 6s2", - family: "Rare_Earth", - symbol: "Tb", - name: "Terbium", - elementColor: [ - 0.19, - 1, - 0.78 - ], - discoverers: [ - "K.", - "G.", - "Mosander" - ] - }, - { - id: "Dy", - atomicNumber: 66, - mass: 162.5, - exactMass: 163.9291748, - ionization: 5.9389, - electronAffinity: 0.5, - electronegativityPauling: 1.22, - nameOrigin: "Greek 'dysprositor' for 'difficult to reach'", - radiusVDW: 2.35, - boilingpoint: 2840, - meltingpoint: 1685, - periodTableBlock: "f", - discoveryDate: "1886", - period: "6", - group: "2", - electronicConfiguration: "Xe 4f10 6s2", - family: "Rare_Earth", - symbol: "Dy", - name: "Dysprosium", - elementColor: [ - 0.12, - 1, - 0.78 - ], - discoverers: [ - "F.", - "E.", - "Lecoq", - "de", - "Boisbaudran" - ] - }, - { - id: "Ho", - atomicNumber: 67, - mass: 164.93032, - exactMass: 164.9303221, - ionization: 6.0215, - electronAffinity: 0.5, - electronegativityPauling: 1.23, - nameOrigin: "Latin 'holmia' for the old name of Stockholm", - radiusVDW: 2.33, - boilingpoint: 2968, - meltingpoint: 1747, - periodTableBlock: "f", - discoveryDate: "1878", - period: "6", - group: "3", - electronicConfiguration: "Xe 4f11 6s2", - family: "Rare_Earth", - symbol: "Ho", - name: "Holmium", - elementColor: [ - 0, - 1, - 0.61 - ], - discoverers: [ - "J. L. Soret", - "P.T. Cleve" - ] - }, - { - id: "Er", - atomicNumber: 68, - mass: 167.259, - exactMass: 165.9302931, - ionization: 6.1077, - electronAffinity: 0.5, - electronegativityPauling: 1.24, - nameOrigin: "Named ofter the Swedish town of Ytterby. Terbium and Ytterbium are also named after this town.", - radiusVDW: 2.32, - boilingpoint: 3140, - meltingpoint: 1802, - periodTableBlock: "f", - discoveryDate: "1843", - period: "6", - group: "4", - electronicConfiguration: "Xe 4f12 6s2", - family: "Rare_Earth", - symbol: "Er", - name: "Erbium", - elementColor: [ - 0, - 0.9, - 0.46 - ], - discoverers: [ - "K.", - "G.", - "Mosander" - ] - }, - { - id: "Tm", - atomicNumber: 69, - mass: 168.93421, - exactMass: 168.9342133, - ionization: 6.1843, - electronAffinity: 0.5, - electronegativityPauling: 1.25, - nameOrigin: "Named after the old name of Scandinavia, 'Thule'.", - radiusVDW: 2.3, - boilingpoint: 2223, - meltingpoint: 1818, - periodTableBlock: "f", - discoveryDate: "1879", - period: "6", - group: "5", - electronicConfiguration: "Xe 4f13 6s2", - family: "Rare_Earth", - symbol: "Tm", - name: "Thulium", - elementColor: [ - 0, - 0.83, - 0.32 - ], - discoverers: [ - "P.", - "T.", - "Cleve" - ] - }, - { - id: "Yb", - atomicNumber: 70, - mass: 173.054, - exactMass: 173.9388621, - ionization: 6.2542, - electronAffinity: 0.5, - nameOrigin: "Like Terbium and Gadolinium, this is named after the Swedish town of Ytterby.", - radiusVDW: 2.28, - boilingpoint: 1469, - meltingpoint: 1092, - periodTableBlock: "f", - discoveryDate: "1878", - period: "6", - group: "6", - electronicConfiguration: "Xe 4f14 6s2", - family: "Rare_Earth", - symbol: "Yb", - name: "Ytterbium", - elementColor: [ - 0, - 0.75, - 0.22 - ], - discoverers: [ - "J.", - "Ch.", - "Marignac" - ] - }, - { - id: "Lu", - atomicNumber: 71, - mass: 174.9668, - exactMass: 174.9407718, - ionization: 5.4259, - electronAffinity: 0.5, - electronegativityPauling: 1.27, - nameOrigin: "Named after the Roman name 'Lutetia' for Paris", - radiusCovalent: 1.6, - radiusVDW: 2.27, - boilingpoint: 3668, - meltingpoint: 1936, - periodTableBlock: "f", - discoveryDate: "1907", - period: "6", - group: "7", - electronicConfiguration: "Xe 4f14 5d1 6s2", - family: "Rare_Earth", - symbol: "Lu", - name: "Lutetium", - elementColor: [ - 0, - 0.67, - 0.14 - ], - discoverers: [ - "Carl F. Auer von Welsbach", - "G. Urbain" - ] - }, - { - id: "Hf", - atomicNumber: 72, - mass: 178.49, - exactMass: 179.94655, - ionization: 6.8251, - electronAffinity: 0, - electronegativityPauling: 1.3, - nameOrigin: "'Hafnia' is the old name of Kopenhagen (Denmark)", - radiusCovalent: 1.5, - radiusVDW: 2.25, - boilingpoint: 4875, - meltingpoint: 2504, - periodTableBlock: "d", - discoveryDate: "1923", - period: "6", - group: "4", - electronicConfiguration: "Xe 4f14 5d2 6s2", - family: "Transition", - symbol: "Hf", - name: "Hafnium", - elementColor: [ - 0.3, - 0.76, - 1 - ], - discoveryCountry: [ - "dk" - ], - discoverers: [ - "D. Coster", - "G. Hevesy" - ] - }, - { - id: "Ta", - atomicNumber: 73, - mass: 180.94788, - exactMass: 180.9479958, - ionization: 7.5496, - electronAffinity: 0.322, - electronegativityPauling: 1.5, - nameOrigin: "Named after the Greek myth of Tantalos", - radiusCovalent: 1.38, - radiusVDW: 2.2, - boilingpoint: 5730, - meltingpoint: 3293, - periodTableBlock: "d", - discoveryDate: "1802", - period: "6", - group: "5", - electronicConfiguration: "Xe 4f14 5d3 6s2", - family: "Transition", - symbol: "Ta", - name: "Tantalum", - elementColor: [ - 0.3, - 0.65, - 1 - ], - discoveryCountry: [ - "se" - ], - discoverers: [ - "A.", - "Ekeberg" - ] - }, - { - id: "W", - atomicNumber: 74, - mass: 183.84, - exactMass: 183.9509312, - ionization: 7.864, - electronAffinity: 0.815, - electronegativityPauling: 2.36, - nameOrigin: "'tung sten' means 'heavy stone' in Swedish. The old name (and thus the symbol 'W') was Wolfram, named after a mineral.", - radiusCovalent: 1.46, - radiusVDW: 2.1, - boilingpoint: 5825, - meltingpoint: 3695, - periodTableBlock: "d", - discoveryDate: "1783", - period: "6", - group: "6", - electronicConfiguration: "Xe 4f14 5d4 6s2", - family: "Transition", - symbol: "W", - name: "Tungsten", - elementColor: [ - 0.13, - 0.58, - 0.84 - ], - discoveryCountry: [ - "es" - ], - discoverers: [ - "C.", - "W.", - "Scheele" - ] - }, - { - id: "Re", - atomicNumber: 75, - mass: 186.207, - exactMass: 186.9557531, - ionization: 7.8335, - electronAffinity: 0.15, - electronegativityPauling: 1.9, - nameOrigin: "Named after the German river Rhine (latin 'Rhenium').", - radiusCovalent: 1.59, - radiusVDW: 2.05, - boilingpoint: 5870, - meltingpoint: 3455, - periodTableBlock: "d", - discoveryDate: "1925", - period: "6", - group: "7", - electronicConfiguration: "Xe 4f14 5d5 6s2", - family: "Transition", - symbol: "Re", - name: "Rhenium", - elementColor: [ - 0.15, - 0.49, - 0.67 - ], - discoveryCountry: [ - "de" - ], - discoverers: [ - "Walter Noddack", - "Ida Tacke-Noddack", - "Otto Berg" - ] - }, - { - id: "Os", - atomicNumber: 76, - mass: 190.23, - exactMass: 191.9614807, - ionization: 8.4382, - electronAffinity: 1.0778, - electronegativityPauling: 2.2, - nameOrigin: "Greek for 'smell'. Its oxides smell strongly like radishes.", - radiusCovalent: 1.28, - radiusVDW: 2, - boilingpoint: 5300, - meltingpoint: 3300, - periodTableBlock: "d", - discoveryDate: "1804", - period: "6", - group: "8", - electronicConfiguration: "Xe 4f14 5d6 6s2", - family: "Transition", - symbol: "Os", - name: "Osmium", - elementColor: [ - 0.15, - 0.4, - 0.59 - ], - discoveryCountry: [ - "uk" - ], - discoverers: [ - "S.", - "Tennant" - ] - }, - { - id: "Ir", - atomicNumber: 77, - mass: 192.217, - exactMass: 192.9629264, - ionization: 8.967, - electronAffinity: 1.56436, - electronegativityPauling: 2.2, - nameOrigin: "Greek 'iris' for 'rainbow'", - radiusCovalent: 1.37, - radiusVDW: 2, - boilingpoint: 4700, - meltingpoint: 2720, - periodTableBlock: "d", - discoveryDate: "1804", - period: "6", - group: "8", - electronicConfiguration: "Xe 4f14 5d7 6s2", - family: "Transition", - symbol: "Ir", - name: "Iridium", - elementColor: [ - 0.09, - 0.33, - 0.53 - ], - discoveryCountry: [ - "uk" - ], - discoverers: [ - "S.", - "Tennant" - ] - }, - { - id: "Pt", - atomicNumber: 78, - mass: 195.084, - exactMass: 194.9647911, - ionization: 8.9588, - electronAffinity: 2.1251, - electronegativityPauling: 2.28, - nameOrigin: "Spanish 'platina' means 'small silver'", - radiusCovalent: 1.28, - radiusVDW: 2.05, - boilingpoint: 4100, - meltingpoint: 2042.1, - periodTableBlock: "d", - discoveryDate: "1735", - period: "6", - group: "8", - electronicConfiguration: "Xe 4f14 5d9 6s1", - family: "Transition", - symbol: "Pt", - name: "Platinum", - elementColor: [ - 0.96, - 0.93, - 0.82 - ], - discoveryCountry: [ - "uk" - ], - discoverers: [ - "A.", - "de", - "Ulloa" - ] - }, - { - id: "Au", - atomicNumber: 79, - mass: 196.966569, - exactMass: 196.9665687, - ionization: 9.2255, - electronAffinity: 2.30861, - electronegativityPauling: 2.54, - nameOrigin: "Latin 'aurum'. Named after Aurora, the goddess of sunrise", - radiusCovalent: 1.44, - radiusVDW: 2.1, - boilingpoint: 3130, - meltingpoint: 1337.58, - periodTableBlock: "d", - discoveryDate: "0", - period: "6", - group: "1", - electronicConfiguration: "Xe 4f14 5d10 6s1", - family: "Transition", - symbol: "Au", - name: "Gold", - elementColor: [ - 0.8, - 0.82, - 0.12 - ], - discoveryCountry: [ - "ancient" - ] - }, - { - id: "Hg", - atomicNumber: 80, - mass: 200.59, - exactMass: 201.970643, - ionization: 10.4375, - electronAffinity: 0, - electronegativityPauling: 2, - nameOrigin: "Graeco-Latin 'hydrargyrum' for 'liquid silver'", - radiusCovalent: 1.49, - radiusVDW: 2.05, - boilingpoint: 629.88, - meltingpoint: 234.31, - periodTableBlock: "d", - discoveryDate: "0", - period: "6", - group: "2", - electronicConfiguration: "Xe 4f14 5d10 6s2", - family: "Transition", - symbol: "Hg", - name: "Mercury", - elementColor: [ - 0.71, - 0.71, - 0.76 - ], - discoveryCountry: [ - "ancient" - ] - }, - { - id: "Tl", - atomicNumber: 81, - mass: 204.3833, - exactMass: 204.9744275, - ionization: 6.1082, - electronAffinity: 0.377, - electronegativityPauling: 1.62, - nameOrigin: "Greek 'tallos' for 'young twig'", - radiusCovalent: 1.48, - radiusVDW: 2.2, - boilingpoint: 1746, - meltingpoint: 577, - periodTableBlock: "p", - discoveryDate: "1861", - period: "6", - group: "3", - electronicConfiguration: "Xe 4f14 5d10 6s2 6p1", - family: "Other_Metal", - symbol: "Tl", - name: "Thallium", - elementColor: [ - 0.65, - 0.33, - 0.3 - ], - discoveryCountry: [ - "uk" - ], - discoverers: [ - "W.", - "Crookes" - ] - }, - { - id: "Pb", - atomicNumber: 82, - mass: 207.2, - exactMass: 207.9766521, - ionization: 7.4167, - electronAffinity: 0.364, - electronegativityPauling: 2.33, - nameOrigin: "Latin 'plumbum' for Lead", - radiusCovalent: 1.47, - radiusVDW: 2.3, - boilingpoint: 2023, - meltingpoint: 600.65, - periodTableBlock: "p", - discoveryDate: "0", - period: "6", - group: "4", - electronicConfiguration: "Xe 4f14 5d10 6s2 6p2", - family: "Other_Metal", - symbol: "Pb", - name: "Lead", - elementColor: [ - 0.34, - 0.35, - 0.38 - ], - discoveryCountry: [ - "ancient" - ] - }, - { - id: "Bi", - atomicNumber: 83, - mass: 208.9804, - exactMass: 208.9803987, - ionization: 7.2855, - electronAffinity: 0.942363, - electronegativityPauling: 2.02, - nameOrigin: "The old name of Bismuth is 'Wismut', which stood for 'white mass'.", - radiusCovalent: 1.46, - radiusVDW: 2.3, - boilingpoint: 1837, - meltingpoint: 544.59, - periodTableBlock: "p", - discoveryDate: "0", - period: "6", - group: "5", - electronicConfiguration: "Xe 4f14 5d10 6s2 6p3", - family: "Other_Metal", - symbol: "Bi", - name: "Bismuth", - elementColor: [ - 0.62, - 0.31, - 0.71 - ], - discoveryCountry: [ - "ancient" - ] - }, - { - id: "Po", - atomicNumber: 84, - mass: 209, - exactMass: 208.9824304, - ionization: 8.414, - electronAffinity: 1.9, - electronegativityPauling: 2, - nameOrigin: "Named after Poland to honor Marie Curie", - radiusVDW: 2, - meltingpoint: 527, - periodTableBlock: "p", - discoveryDate: "1898", - period: "6", - group: "6", - electronicConfiguration: "Xe 4f14 5d10 6s2 6p4", - family: "Metalloids", - symbol: "Po", - name: "Polonium", - elementColor: [ - 0.67, - 0.36, - 0 - ], - discoveryCountry: [ - "fr" - ], - discoverers: [ - "M. Sklodowska-Curie", - "P. Curie" - ] - }, - { - id: "At", - atomicNumber: 85, - mass: 210, - exactMass: 209.987148, - ionization: 0, - electronAffinity: 2.8, - electronegativityPauling: 2.2, - nameOrigin: "Greek 'astator' for 'changing'", - radiusVDW: 2, - boilingpoint: 610, - meltingpoint: 575, - periodTableBlock: "p", - discoveryDate: "1940", - period: "6", - group: "7", - electronicConfiguration: "Xe 4f14 5d10 6s2 6p5", - family: "Halogen", - symbol: "At", - name: "Astatine", - elementColor: [ - 0.46, - 0.31, - 0.27 - ], - discoveryCountry: [ - "us" - ], - discoverers: [ - "D. R. Corson", - "K. R. McKenzie", - "E. Segre" - ] - }, - { - id: "Rn", - atomicNumber: 86, - mass: 222, - exactMass: 222.0175777, - ionization: 10.7485, - electronAffinity: 0, - nameOrigin: "Named after Radium. It ends with 'on' to make it clear that it is a noble gas.", - radiusCovalent: 1.45, - radiusVDW: 2, - boilingpoint: 211.4, - meltingpoint: 202, - periodTableBlock: "p", - discoveryDate: "1898", - period: "6", - group: "8", - electronicConfiguration: "Xe 4f14 5d10 6s2 6p6", - family: "Noblegas", - symbol: "Rn", - name: "Radon", - elementColor: [ - 0.26, - 0.51, - 0.59 - ], - discoveryCountry: [ - "de" - ], - discoverers: [ - "E.", - "Dorn" - ] - }, - { - id: "Fr", - atomicNumber: 87, - mass: 223, - exactMass: 223.0197359, - ionization: 4.0727, - electronegativityPauling: 0.7, - nameOrigin: "Named after France to honor Marguerite Perey", - radiusVDW: 2, - boilingpoint: 950, - meltingpoint: 300, - periodTableBlock: "s", - discoveryDate: "1939", - period: "7", - group: "1", - electronicConfiguration: "Rn 7s1", - family: "Alkali_Earth", - symbol: "Fr", - name: "Francium", - elementColor: [ - 0.26, - 0, - 0.4 - ], - discoveryCountry: [ - "fr" - ], - discoverers: [ - "M.", - "Perey" - ] - }, - { - id: "Ra", - atomicNumber: 88, - mass: 226, - exactMass: 226.0254098, - ionization: 5.2784, - electronegativityPauling: 0.9, - nameOrigin: "Latin 'radius' for 'beam', as it is radioactive", - radiusVDW: 2, - boilingpoint: 1413, - meltingpoint: 973, - periodTableBlock: "s", - discoveryDate: "1898", - period: "7", - group: "2", - electronicConfiguration: "Rn 7s2", - family: "Alkaline_Earth", - symbol: "Ra", - name: "Radium", - elementColor: [ - 0, - 0.49, - 0 - ], - discoveryCountry: [ - "fr" - ], - discoverers: [ - "M. Sklodowska-Curie", - "P. Curie" - ] - }, - { - id: "Ac", - atomicNumber: 89, - mass: 227, - exactMass: 227.0277521, - ionization: 5.17, - electronegativityPauling: 1.1, - nameOrigin: "Greek 'aktis' for 'beam' - actinium is radioactive", - radiusVDW: 2, - boilingpoint: 3470, - meltingpoint: 1324, - periodTableBlock: "f", - discoveryDate: "1899", - period: "7", - group: "3", - electronicConfiguration: "Rn 6d1 7s2", - family: "Other_Metal", - symbol: "Ac", - name: "Actinium", - elementColor: [ - 0.44, - 0.67, - 0.98 - ], - discoveryCountry: [ - "fr" - ], - discoverers: [ - "A.", - "L.", - "Debierne" - ] - }, - { - id: "Th", - atomicNumber: 90, - mass: 232.03806, - exactMass: 232.0380553, - ionization: 6.3067, - electronegativityPauling: 1.3, - nameOrigin: "Named after the German god of thunder: Thor", - radiusVDW: 2.4, - boilingpoint: 5060, - meltingpoint: 2028, - periodTableBlock: "f", - discoveryDate: "1828", - period: "7", - group: "4", - electronicConfiguration: "Rn 6d2 7s2", - family: "Other_Metal", - symbol: "Th", - name: "Thorium", - elementColor: [ - 0, - 0.73, - 1 - ], - discoverers: [ - "J.", - "J.", - "Berzelius" - ] - }, - { - id: "Pa", - atomicNumber: 91, - mass: 231.03588, - exactMass: 231.035884, - ionization: 5.89, - electronegativityPauling: 1.5, - nameOrigin: "Greek 'protos' for 'ancester'. Protactinium is before Actinium in the periodic table.", - radiusVDW: 2, - boilingpoint: 4300, - meltingpoint: 1845, - periodTableBlock: "f", - discoveryDate: "1917", - period: "7", - group: "5", - electronicConfiguration: "Rn 5f2 6d1 7s2", - family: "Other_Metal", - symbol: "Pa", - name: "Protactinium", - elementColor: [ - 0, - 0.63, - 1 - ], - discoverers: [ - "O. Hahn", - "L. Meitern", - "W. Wollaston" - ] - }, - { - id: "U", - atomicNumber: 92, - mass: 238.02891, - exactMass: 238.0507882, - ionization: 6.1941, - electronegativityPauling: 1.38, - nameOrigin: "Greek 'ouranos' for 'heaven'. Named after the planet Uranus.", - radiusVDW: 2.3, - boilingpoint: 4407, - meltingpoint: 1408, - periodTableBlock: "f", - discoveryDate: "1789", - period: "7", - group: "6", - electronicConfiguration: "Rn 5f3 6d1 7s2", - family: "Other_Metal", - symbol: "U", - name: "Uranium", - elementColor: [ - 0, - 0.56, - 1 - ], - discoverers: [ - "M.", - "M.", - "Klaproth" - ] - }, - { - id: "Np", - atomicNumber: 93, - mass: 237, - exactMass: 237.0481734, - ionization: 6.2657, - electronegativityPauling: 1.36, - nameOrigin: "Named after the planet Neptune.", - radiusVDW: 2, - boilingpoint: 4175, - meltingpoint: 912, - periodTableBlock: "f", - discoveryDate: "1940", - period: "7", - group: "7", - electronicConfiguration: "Rn 5f4 6d1 7s2", - family: "Other_Metal", - symbol: "Np", - name: "Neptunium", - elementColor: [ - 0, - 0.5, - 1 - ], - discoverers: [ - "E. M. McMillan", - "P. Aberson" - ] - }, - { - id: "Pu", - atomicNumber: 94, - mass: 244, - exactMass: 244.064204, - ionization: 6.026, - electronegativityPauling: 1.28, - nameOrigin: "Named after the planet Pluto.", - radiusVDW: 2, - boilingpoint: 3505, - meltingpoint: 913, - periodTableBlock: "f", - discoveryDate: "1940", - period: "7", - group: "8", - electronicConfiguration: "Rn 5f6 7s2", - family: "Other_Metal", - symbol: "Pu", - name: "Plutonium", - elementColor: [ - 0, - 0.42, - 1 - ], - discoverers: [ - "Glenn T. Seaborg", - "E. M. McMillan", - "J. W. Kennedy", - "A.C. Wahl" - ] - }, - { - id: "Am", - atomicNumber: 95, - mass: 243, - exactMass: 243.0613811, - ionization: 5.9738, - electronegativityPauling: 1.3, - nameOrigin: "Named after America.", - radiusVDW: 2, - boilingpoint: 2880, - meltingpoint: 1449, - periodTableBlock: "f", - discoveryDate: "1945", - period: "7", - group: "8", - electronicConfiguration: "Rn 5f7 7s2", - family: "Other_Metal", - symbol: "Am", - name: "Americium", - elementColor: [ - 0.33, - 0.36, - 0.95 - ], - discoverers: [ - "Glenn T. Seaborg", - "L. O. Morgan", - "R. A. James", - "A. Ghiors" - ] - }, - { - id: "Cm", - atomicNumber: 96, - mass: 247, - exactMass: 247.070354, - ionization: 5.9914, - electronegativityPauling: 1.3, - nameOrigin: "Named after Marie Curie.", - radiusVDW: 2, - boilingpoint: 3383, - meltingpoint: 1620, - periodTableBlock: "f", - discoveryDate: "1944", - period: "7", - group: "8", - electronicConfiguration: "Rn 5f7 6d1 7s2", - family: "Other_Metal", - symbol: "Cm", - name: "Curium", - elementColor: [ - 0.47, - 0.36, - 0.89 - ], - discoverers: [ - "Glenn T. Seaborg", - "R. A. James", - "A. Ghiors" - ] - }, - { - id: "Bk", - atomicNumber: 97, - mass: 247, - exactMass: 247.070307, - ionization: 6.1979, - electronegativityPauling: 1.3, - nameOrigin: "Named after the town Berkeley where it was discovered.", - radiusVDW: 2, - boilingpoint: 983, - meltingpoint: 1258, - periodTableBlock: "f", - discoveryDate: "1949", - period: "7", - group: "1", - electronicConfiguration: "Rn 5f9 7s2", - family: "Other_Metal", - symbol: "Bk", - name: "Berkelium", - elementColor: [ - 0.54, - 0.31, - 0.89 - ], - discoverers: [ - "Glenn T. Seaborg", - "A. Ghiors", - "S. G. Thompson" - ] - }, - { - id: "Cf", - atomicNumber: 98, - mass: 251, - exactMass: 251.079587, - ionization: 6.2817, - electronegativityPauling: 1.3, - nameOrigin: "Named after the US-State of California.", - radiusVDW: 2, - boilingpoint: 1173, - meltingpoint: 1172, - periodTableBlock: "f", - discoveryDate: "1950", - period: "7", - group: "2", - electronicConfiguration: "Rn 5f10 7s2", - family: "Other_Metal", - symbol: "Cf", - name: "Californium", - elementColor: [ - 0.63, - 0.21, - 0.83 - ], - discoverers: [ - "Glenn T. Seaborg", - "A. Ghiors", - "S. G. Thompson" - ] - }, - { - id: "Es", - atomicNumber: 99, - mass: 252, - exactMass: 252.08298, - ionization: 6.42, - electronegativityPauling: 1.3, - nameOrigin: "Named after the scientist Albert Einstein.", - radiusVDW: 2, - meltingpoint: 1130, - periodTableBlock: "f", - discoveryDate: "1952", - period: "7", - group: "3", - electronicConfiguration: "Rn 5f11 7s2", - family: "Other_Metal", - symbol: "Es", - name: "Einsteinium", - elementColor: [ - 0.7, - 0.12, - 0.83 - ], - discoverers: [ - "Glenn T. Seaborg", - "et al." - ] - }, - { - id: "Fm", - atomicNumber: 100, - mass: 257, - exactMass: 257.095105, - ionization: 6.5, - electronegativityPauling: 1.3, - nameOrigin: "Named after the scientist Enrico Fermi.", - radiusVDW: 2, - meltingpoint: 1800, - periodTableBlock: "f", - discoveryDate: "1953", - period: "7", - group: "4", - electronicConfiguration: "Rn 5f12 7s2", - family: "Other_Metal", - symbol: "Fm", - name: "Fermium", - elementColor: [ - 0.7, - 0.12, - 0.73 - ], - discoverers: [ - "Glenn T. Seaborg", - "et al." - ] - }, - { - id: "Md", - atomicNumber: 101, - mass: 258, - exactMass: 258.098431, - ionization: 6.58, - electronegativityPauling: 1.3, - nameOrigin: "Named after the scientist D.I. Mendeleev.", - radiusVDW: 2, - meltingpoint: 1100, - periodTableBlock: "f", - discoveryDate: "1955", - period: "7", - group: "5", - electronicConfiguration: "Rn 5f13 7s2", - family: "Other_Metal", - symbol: "Md", - name: "Mendelevium", - elementColor: [ - 0.7, - 0.05, - 0.65 - ], - discoverers: [ - "Glenn T. Seaborg", - "Albert Ghiorso", - "Bernard Harvey", - "Gregory Choppin", - "Stanley G. Thompson" - ] - }, - { - id: "No", - atomicNumber: 102, - mass: 259, - exactMass: 259.10103, - ionization: 6.65, - electronegativityPauling: 1.3, - nameOrigin: "Named after the scientist Alfred Nobel.", - radiusVDW: 2, - meltingpoint: 1100, - periodTableBlock: "f", - discoveryDate: "1958", - period: "7", - group: "6", - electronicConfiguration: "Rn 5f14 7s2", - family: "Other_Metal", - symbol: "No", - name: "Nobelium", - elementColor: [ - 0.74, - 0.05, - 0.53 - ] - }, - { - id: "Lr", - atomicNumber: 103, - mass: 262, - exactMass: 262.10963, - ionization: 4.9, - nameOrigin: "Named after the scientist Ernest Orlando Lawrence.", - radiusVDW: 2, - meltingpoint: 1900, - periodTableBlock: "f", - discoveryDate: "1961", - period: "7", - group: "7", - electronicConfiguration: "Rn 5f14 7s2 7p1", - family: "Other_Metal", - symbol: "Lr", - name: "Lawrencium", - elementColor: [ - 0.78, - 0, - 0.4 - ], - discoverers: [ - "Albert Ghiorso", - "Torbjorn Sikkeland", - "Almon Larsh", - "Robert M. Latimer" - ] - }, - { - id: "Rf", - atomicNumber: 104, - mass: 267, - exactMass: 261.10877, - ionization: 6, - nameOrigin: "Named after the scientist Ernest Rutherford", - radiusVDW: 2, - periodTableBlock: "d", - discoveryDate: "1964", - period: "7", - group: "4", - electronicConfiguration: "Rn 5f14 6d2 7s2", - family: "Transition", - symbol: "Rf", - name: "Rutherfordium", - elementColor: [ - 0.8, - 0, - 0.35 - ], - discoveryCountry: [ - "ru", - "us" - ] - }, - { - id: "Db", - atomicNumber: 105, - mass: 268, - exactMass: 262.11408, - nameOrigin: "Named after the science-town Dubna in Russia", - radiusVDW: 2, - periodTableBlock: "d", - discoveryDate: "1967", - period: "7", - group: "5", - electronicConfiguration: "Rn 5f14 6d3 7s2", - family: "Transition", - symbol: "Db", - name: "Dubnium", - elementColor: [ - 0.82, - 0, - 0.31 - ], - discoveryCountry: [ - "ru", - "us" - ] - }, - { - id: "Sg", - atomicNumber: 106, - mass: 271, - exactMass: 263.11832, - nameOrigin: "Named after the scientist G. Theodore Seaborg.", - radiusVDW: 2, - periodTableBlock: "d", - discoveryDate: "1974", - period: "7", - group: "6", - family: "Transition", - symbol: "Sg", - name: "Seaborgium", - elementColor: [ - 0.85, - 0, - 0.27 - ], - discoveryCountry: [ - "ru", - "us" - ], - discoverers: [ - "Albert Ghiorso", - "et al." - ] - }, - { - id: "Bh", - atomicNumber: 107, - mass: 272, - exactMass: 264.1246, - nameOrigin: "Named after the scientist Niels Bohr.", - radiusVDW: 2, - periodTableBlock: "d", - discoveryDate: "1981", - period: "7", - group: "7", - family: "Transition", - symbol: "Bh", - name: "Bohrium", - elementColor: [ - 0.88, - 0, - 0.22 - ], - discoveryCountry: [ - "ru" - ], - discoverers: [ - "Peter Armbruster", - "Gottfried Münzenber", - "et al." - ] - }, - { - id: "Hs", - atomicNumber: 108, - mass: 270, - exactMass: 265.13009, - nameOrigin: "Latin 'hassia' for the German county Hessen. In Hessen a lot elements have been discovered.", - radiusVDW: 2, - periodTableBlock: "d", - discoveryDate: "1984", - period: "7", - group: "8", - family: "Transition", - symbol: "Hs", - name: "Hassium", - elementColor: [ - 0.9, - 0, - 0.18 - ], - discoveryCountry: [ - "de" - ], - discoverers: [ - "Peter Armbruster", - "Gottfried Münzenber", - "et al." - ] - }, - { - id: "Mt", - atomicNumber: 109, - mass: 276, - exactMass: 268.13873, - nameOrigin: "Named after the scientist Lise Meitner.", - radiusVDW: 2, - periodTableBlock: "d", - discoveryDate: "1982", - period: "7", - group: "8", - family: "Transition", - symbol: "Mt", - name: "Meitnerium", - elementColor: [ - 0.91, - 0, - 0.15 - ], - discoveryCountry: [ - "de" - ], - discoverers: [ - "Peter Armbruster", - "Gottfried Münzenber", - "et al." - ] - }, - { - id: "Ds", - atomicNumber: 110, - mass: 281, - exactMass: 271.14606, - nameOrigin: "Named after the German city Darmstadt where many elements have been discovered.", - periodTableBlock: "d", - discoveryDate: "1994", - period: "7", - group: "8", - family: "Transition", - symbol: "Ds", - name: "Darmstadtium", - elementColor: [ - 0.92, - 0, - 0.14 - ], - discoveryCountry: [ - "de" - ], - discoverers: [ - "S. Hofmann", - "V. Ninov", - "F. P. Hessberger", - "P. Armbruster", - "H. Folger", - "G. Münzenberg", - "H. J. Schött", - "et al." - ] - }, - { - id: "Rg", - atomicNumber: 111, - mass: 280, - exactMass: 272.15362, - nameOrigin: "Named after Wilhelm Conrad Röntgen.", - periodTableBlock: "d", - discoveryDate: "1994", - period: "7", - group: "1", - family: "Transition", - symbol: "Rg", - name: "Roentgenium", - elementColor: [ - 0.93, - 0, - 0.13 - ], - discoveryCountry: [ - "de" - ], - discoverers: [ - "S. Hofmann", - "V. Ninov", - "F. P. Hessberger", - "P. Armbruster", - "H. Folger", - "G. Münzenberg", - "et al." - ] - }, - { - id: "Cn", - atomicNumber: 112, - mass: 285, - exactMass: 285.17411, - nameOrigin: "Historically known as eka-mercury. Ununbium is a temporary IUPAC systematic element name.", - periodTableBlock: "d", - discoveryDate: "1996", - period: "7", - family: "Transition", - symbol: "Cn", - name: "Copernicium", - elementColor: [ - 0.94, - 0, - 0.12 - ], - discoveryCountry: [ - "de" - ], - discoverers: [ - "First", - "created", - "at", - "the", - "Gesellschaft", - "für", - "Schwerionenforschung" - ] - }, - { - id: "Uut", - atomicNumber: 113, - mass: 284, - exactMass: 284.17808, - nameOrigin: "Historically known as eka-thallium. Ununtrium is a temporary IUPAC systematic element name.", - periodTableBlock: "p", - discoveryDate: "2003", - period: "7", - family: "Other_Metal", - symbol: "Uut", - name: "Ununtrium", - elementColor: [ - 0.95, - 0, - 0.11 - ], - discoveryCountry: [ - "ru", - "us" - ], - discoverers: [ - "Russian scientists at Dubna (JINR)", - "American scientists at the Lawrence Livermore National Laboratory." - ] - }, - { - id: "Uuq", - atomicNumber: 114, - mass: 289, - exactMass: 289.18728, - nameOrigin: "Historically known as eka-lead. Ununquadium is a temporary IUPAC systematic element name.", - periodTableBlock: "p", - discoveryDate: "1998", - period: "7", - family: "Other_Metal", - symbol: "Uuq", - name: "Ununquadium", - elementColor: [ - 0.96, - 0, - 0.1 - ], - discoveryCountry: [ - "ru", - "us" - ], - discoverers: [ - "Joint", - "Institute", - "for", - "Nuclear", - "Research" - ] - }, - { - id: "Uup", - atomicNumber: 115, - mass: 288, - exactMass: 288.19249, - nameOrigin: "Historically known as eka-bismuth. Ununpentium is a temporary IUPAC systematic element name.", - periodTableBlock: "p", - discoveryDate: "2004", - period: "7", - family: "Other_Metal", - symbol: "Uup", - name: "Ununpentium", - elementColor: [ - 0.97, - 0, - 0.09 - ], - discoveryCountry: [ - "ru", - "us" - ], - discoverers: [ - "Russian scientists at Dubna (JINR)", - "American scientists at the Lawrence Livermore National Laboratory." - ] - }, - { - id: "Uuh", - atomicNumber: 116, - mass: 293, - exactMass: 292.19979, - nameOrigin: "Historically known as eka-polonium. Ununhexium is a temporary IUPAC systematic element name.", - periodTableBlock: "p", - discoveryDate: "2000", - period: "7", - family: "Other_Metal", - symbol: "Uuh", - name: "Ununhexium", - elementColor: [ - 0.98, - 0, - 0.08 - ], - discoveryCountry: [ - "ru" - ], - discoverers: [ - "Joint", - "Institute", - "for", - "Nuclear", - "Research" - ] - }, - { - id: "Uus", - atomicNumber: 117, - nameOrigin: "Temporary symbol and name. Can also be referred to as eka-astatine.", - periodTableBlock: "p", - discoveryDate: "0", - period: "7", - family: "Halogen", - symbol: "Uus", - name: "Ununseptium", - elementColor: [ - 0.99, - 0, - 0.07 - ] - }, - { - id: "Uuo", - atomicNumber: 118, - mass: 294, - nameOrigin: "Historically known as eka-radon, eka-emanation before 1960. Ununoctium is a temporary IUPAC systematic element name.", - periodTableBlock: "p", - discoveryDate: "2002", - period: "7", - family: "Noblegas", - symbol: "Uuo", - name: "Ununoctium", - elementColor: [ - 1, - 0, - 0.06 - ], - discoveryCountry: [ - "ru", - "us" - ], - discoverers: [ - "Russian scientists at Dubna (JINR)", - "American scientists at the Lawrence Livermore National Laboratory." - ] - } -]; -var atomElem = { - atoms: atoms -}; - -export { atomElem as a }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry/elements.xml b/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry/elements.xml deleted file mode 100644 index bada409d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry/elements.xml +++ /dev/null @@ -1,2640 +0,0 @@ - - - - - - - - - - - - - - - - - 0 - - - 1 - - - 2 - - - 3 - - - 4 - - - 5 - - - 6 - - - 7 - - - 8 - - - 9 - - - 10 - - - 11 - - - 12 - - - 13 - - - 14 - - - 15 - - - 16 - - - 17 - - - 18 - - - 19 - - - 20 - - - 21 - - - 22 - - - 23 - - - 24 - - - 25 - - - 26 - - - 27 - - - 28 - - - 29 - - - 30 - - - 31 - - - 32 - - - 33 - - - 34 - - - 35 - - - 36 - - - 37 - - - 38 - - - 39 - - - 40 - - - 41 - - - 42 - - - 43 - - - 44 - - - 45 - - - 46 - - - 47 - - - 48 - - - 49 - - - 50 - - - 51 - - - 52 - - - 53 - - - 54 - - - 55 - - - 56 - - - 57 - - - 58 - - - 59 - - - 60 - - - 61 - - - 62 - - - 63 - - - 64 - - - 65 - - - 66 - - - 67 - - - 68 - - - 69 - - - 70 - - - 71 - - - 72 - - - 73 - - - 74 - - - 75 - - - 76 - - - 77 - - - 78 - - - 79 - - - 80 - - - 81 - - - 82 - - - 83 - - - 84 - - - 85 - - - 86 - - - 87 - - - 88 - - - 89 - - - 90 - - - 91 - - - 92 - - - 93 - - - 94 - - - 95 - - - 96 - - - 97 - - - 98 - - - 99 - - - 100 - - - 101 - - - 102 - - - 103 - - - 104 - - - 105 - - - 106 - - - 107 - - - 108 - - - 109 - - - 110 - - - 111 - - - 112 - - - 113 - - - 114 - - - 115 - - - 116 - - - 117 - - - 118 - - diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry/post-process.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry/post-process.js deleted file mode 100644 index e7088efa..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/chemistry/post-process.js +++ /dev/null @@ -1,43 +0,0 @@ -function convert(value, type) { - if (['xsd:Integer', 'xsd:float'].indexOf(type) !== -1) { - return Number(value); - } - return value; -} - -module.exports = function (xml) { - var atomsXML = xml.list.atom; - var outputAtoms = []; - - atomsXML.forEach(function (atomXML) { - var atom = {}; - outputAtoms.push(atom); - - // Fill atom with information - atom.id = atomXML.$.id; - - // scalars - atomXML.scalar.forEach(function (scalar) { - var key = scalar.$.dictRef.split(':')[1]; - var value = convert(scalar._, scalar.$.dataType); - atom[key] = value; - }); - - // label - atomXML.label.forEach(function (label) { - var key = label.$.dictRef.split(':')[1]; - var value = label.$.value; - atom[key] = value; - }); - // array - atomXML.array.forEach(function (array) { - var key = array.$.dictRef.split(':')[1]; - var delimiter = array.$.delimiter || ' '; - var type = array.$.dataType; - var value = array._.split(delimiter).map(function (v) { return convert(v, type); }); - atom[key] = value; - }); - }); - - return { atoms: outputAtoms }; -} diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/xml2json-cli.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/xml2json-cli.js deleted file mode 100755 index 7d7004fb..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/XMLConverter/xml2json-cli.js +++ /dev/null @@ -1,30 +0,0 @@ -#! /usr/bin/env node - -var fs = require('fs'); -var { program } = require('commander'); -var xml2js = require('xml2js'); - -program.version('1.0.0') - .option('-i, --input [file.xml]', 'Input file to convert') - .option('-o, --output [file.json]', 'Destination file\n') - .option('-p, --process [chemistry]', 'Name of post-processor to apply') - .parse(process.argv); -const options = program.opts(); - -var parser = new xml2js.Parser(); -fs.readFile(options.input, function (err, data) { - parser.parseString(data, function (err, result) { - var dataToWrite = result; - if (options.process) { - var postProcessor = require('./' + options.process + '/post-process.js'); - dataToWrite = postProcessor(result); - } - fs.writeFile(options.output, JSON.stringify(dataToWrite, null, 2), function(err) { - if(err) { - return console.log(err); - } - - console.log("Success"); - }); - }); -}); diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/config/chainWebpack.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/config/chainWebpack.js deleted file mode 100644 index 6f182660..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/config/chainWebpack.js +++ /dev/null @@ -1,68 +0,0 @@ -module.exports = function chainWebpack(config) { - config.module - .rule('vtk-glsl') - .test(/\.glsl$/i) - .include.add(/vtk\.js[/\\]Sources/) - .end() - .use('shader-loader') - .loader('shader-loader') - .end(); - - config.module - .rule('vtk-js') - .test(/\.js$/i) - .include.add(/vtk\.js[/\\]Sources/) - .end() - .use('babel-loader') - .loader('babel-loader') - .end(); - - config.module - .rule('vtk-worker') - .test(/\.worker\.js$/) - .include.add(/vtk\.js[/\\]Sources/) - .end() - .use('worker-loader') - .loader('worker-loader') - .options({ inline: 'no-fallback' }) - .end(); - - config.module - .rule('vtk-css') - .test(/\.css$/) - .exclude.add(/\.module\.css$/) - .end() - .include.add(/vtk\.js[/\\]Sources/) - .end() - .use('styles') - .loader('style-loader') - .loader('css-loader') - .loader('postcss-loader') - .end(); - - config.module - .rule('vtk-svg') - .test(/\.svg$/) - .include.add(/vtk\.js[/\\]Sources/) - .end() - .use('raw-loader') - .loader('raw-loader') - .end(); - - config.module - .rule('vtk-module-css') - .test(/\.css$/) - .include.add(/vtk\.js[/\\]Sources/) - .add(/\.module\.css$/) - .end() - .use('styles') - .loader('style-loader') - .loader('css-loader') - .options({ - modules: { - localIdentName: '[name]-[local]_[sha512:hash:base64:5]', - }, - }) - .loader('postcss-loader') - .end(); -} diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/config/dependency.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/config/dependency.js deleted file mode 100644 index b98819f3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/config/dependency.js +++ /dev/null @@ -1,80 +0,0 @@ -const autoprefixer = require('autoprefixer'); - -module.exports = { - webpack: { - core: { - rules: [ - { - test: /\.glsl$/i, - include: /vtk\.js[\/\\]Sources/, - loader: 'shader-loader', - }, - { - test: /\.js$/, - include: /vtk\.js[\/\\]Sources/, - use: [ - { - loader: 'babel-loader', - options: { - presets: ['@babel/preset-env'], - }, - }, - ], - }, - { - test: /\.worker\.js$/, - include: /vtk\.js[\/\\]Sources/, - use: [ - { - loader: 'worker-loader', - options: { inline: 'no-fallback' }, - }, - ], - }, - ], - }, - css: { - rules: [ - { - test: /\.css$/, - exclude: /\.module\.css$/, - use: [ - 'style-loader', - 'css-loader', - { - loader: 'postcss-loader', - options: { - postcssOptions: { - plugins: [autoprefixer('last 2 version', 'ie >= 10')], - }, - }, - }, - ], - }, - { - test: /\.css$/, - include: /\.module\.css$/, - use: [ - { loader: 'style-loader' }, - { - loader: 'css-loader', - options: { - modules: { - localIdentName: '[name]-[local]_[sha512:hash:base64:5]', - }, - }, - }, - { - loader: 'postcss-loader', - options: { - postcssOptions: { - plugins: [autoprefixer('last 2 version', 'ie >= 10')], - }, - }, - }, - ], - }, - ], - }, - }, -}; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/config/rules-examples.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/config/rules-examples.js deleted file mode 100644 index d0a87e3d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/config/rules-examples.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = [ - { test: /\.(png|jpg)$/, type: 'asset' }, - { test: /\.html$/, loader: 'html-loader' }, - { test: /\.cjson$/, loader: 'hson-loader' }, - { test: /\.hson$/, loader: 'hson-loader' }, -]; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/config/rules-tests.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/config/rules-tests.js deleted file mode 100644 index 05c63bbc..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/config/rules-tests.js +++ /dev/null @@ -1,70 +0,0 @@ -module.exports = [ - { test: /\.cjson$/, loader: 'hson-loader' }, - { - test: /test[^\.]*\.(png|jpg)$/, - type: 'asset', - parser: { - dataUrlCondition: { - maxSize: 1024 * 1024, - }, - }, - }, - { test: /\.glsl$/i, loader: 'shader-loader' }, - { - test: /\.worker\.js$/, - use: [ - { loader: 'worker-loader', options: { inline: 'no-fallback' } }, - ], - }, - { - test: /\.css$/, - exclude: /\.module\.css$/, - use: [ - { loader: 'style-loader' }, - { loader: 'css-loader' }, - { loader: 'postcss-loader' }, - ], - }, - { - test: /\.module\.css$/, - use: [ - { loader: 'style-loader' }, - { - loader: 'css-loader', - options: { - modules: { - localIdentName: '[name]-[local]_[sha512:hash:base64:5]', - }, - }, - }, - { loader: 'postcss-loader' }, - ], - }, - { - test: /\.svg$/, - type: 'asset/source', - }, - { - test: /\.js$/, - use: [ - { loader: 'babel-loader' }, - { - loader: 'string-replace-loader', - options: { - multiple: [ - { - search: 'test.onlyIfWebGL', - replace: process.env.NO_WEBGL ? 'test.skip' : 'test', - flags: 'g', - }, - { - search: 'test.onlyIfWebGPU', - replace: process.env.WEBGPU ? 'test' : 'test.skip', - flags: 'g', - }, - ], - }, - }, - ], - }, -]; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/config/rules-vtk.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/config/rules-vtk.js deleted file mode 100644 index 0d156284..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/config/rules-vtk.js +++ /dev/null @@ -1,59 +0,0 @@ -module.exports = [ - { - test: /\.glsl$/i, - loader: 'shader-loader', - }, - { - test: /\.js$/, - use: [ - { - loader: 'babel-loader', - options: { - presets: [ - [ - '@babel/preset-env', - { - debug: false, - useBuiltIns: false, - }, - ], - ], - }, - }, - ], - }, - { - test: /\.css$/, - exclude: /\.module\.css$/, - use: [ - { loader: 'style-loader' }, - { loader: 'css-loader' }, - { loader: 'postcss-loader' }, - ], - }, - { - test: /\.module\.css$/, - use: [ - { loader: 'style-loader' }, - { - loader: 'css-loader', - options: { - modules: { - localIdentName: '[name]-[local]_[sha512:hash:base64:5]', - }, - }, - }, - { loader: 'postcss-loader' }, - ], - }, - { - test: /\.svg$/, - type: 'asset/source', - }, - { - test: /\.worker\.js$/, - use: [ - { loader: 'worker-loader', options: { inline: 'no-fallback' } }, - ], - }, -]; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/prepare.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/prepare.js deleted file mode 100644 index db1d3fcc..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Utilities/prepare.js +++ /dev/null @@ -1,8 +0,0 @@ -if (process.env.CI === undefined) { - try { - require('husky').install(); - } catch (e) { - // error out, but don't break install - console.warn('[husky warning]:', e.message); - } -} diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core.js deleted file mode 100644 index fabf8e17..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core.js +++ /dev/null @@ -1,15 +0,0 @@ -import vtkAbstractWidget from './Core/AbstractWidget.js'; -import vtkAbstractWidgetFactory from './Core/AbstractWidgetFactory.js'; -import vtkStateBuilder from './Core/StateBuilder.js'; -import vtkWidgetManager from './Core/WidgetManager.js'; -import vtkWidgetState from './Core/WidgetState.js'; - -var Core = { - vtkAbstractWidget, - vtkAbstractWidgetFactory, - vtkStateBuilder, - vtkWidgetManager, - vtkWidgetState -}; - -export { Core as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/AbstractWidget.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/AbstractWidget.d.ts deleted file mode 100644 index c012f4d4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/AbstractWidget.d.ts +++ /dev/null @@ -1,192 +0,0 @@ -import { vtkInteractorObserver } from './../../Rendering/Core/InteractorObserver'; -import { vtkProp } from './../../Rendering/Core/Prop'; -import { vtkWidgetManager } from './WidgetManager'; -import { vtkWidgetRepresentation } from './../Representations/WidgetRepresentation'; -import { vtkWidgetState } from './WidgetState'; -import { Bounds } from './../../types'; -import { RenderingTypes } from './WidgetManager/Constants'; -import { EventHandler, vtkSubscription } from './../../interfaces'; - -export interface vtkAbstractWidget extends vtkProp, vtkInteractorObserver { - /** - * Get the bounds of the widget - */ - getBounds(): Bounds; - - /** - * Get all representations of the widget. - */ - getNestedProps(): vtkWidgetRepresentation[]; - - /** - * Activate a handle, identified by both a state and a representation. - * Will also invoke appropriate events. - * - * @param locator An object describing the handle to activate. - */ - activateHandle(locator: { - selectedState: vtkWidgetState; - representation: vtkWidgetRepresentation; - }): void; - - /** - * Deactivate all the handles on the widget instance. - */ - deactivateAllHandles(): void; - - /** - * Returns true if the widget instance holds the given actor, false otherwise. - * - * @param {vtkProp} actor - */ - hasActor(actor: vtkProp): boolean; - - /** - * Make the widget instance grab the focus. - * Should not be called directly or this will lead to unexpected behavior. - * To grab the focus on a widget, one should call `vtkWidgetManager.grabFocus(widgetInstanceToGiveFocusTo)` - */ - grabFocus(): void; - - /** - * Make the widget instance release the focus. - */ - loseFocus(): void; - - /** - * Returns true if the widget instance holds the focus, false otherwise. - */ - hasFocus(): boolean; - - /** - * Place a widget at the given bounds. - * - * @param {Bounds} bounds - */ - placeWidget(bounds: Bounds): void; - - /** - * Get the place factor. - */ - getPlaceFactor(): number; - - /** - * Set the place factor. - * - * @param {Number} factor The place factor. - */ - setPlaceFactor(factor: number): void; - - /** - * Get the `vtkWidgetRepresentation` instance associated with the given `vtkActor` instance. - * - * @param {vtkProp} actor - */ - getRepresentationFromActor(actor: vtkProp): vtkWidgetRepresentation; - - /** - * Update all the widget representations for render. - * - * @param {RenderingTypes} renderingType Default value if `RenderingTypes.FRONT_BUFFER` - */ - updateRepresentationForRender(renderingType: RenderingTypes): void; - - /** - * Get all the underlyings view widgets. - */ - getViewWidgets(): vtkAbstractWidget[]; - - /** - * Set the context visibility. - * - * @param {Boolean} visible - */ - setContextVisibility(visible: boolean): void; - - /** - * Get the context visibility. - */ - getContextVisibility(): boolean; - - /** - * Defines if the handles should be visible or not. - * - * @param {Boolean} visible - */ - setHandleVisibility(visible: boolean): void; - - /** - * Returns true if the handles are visible, false otherwise. - */ - getHandleVisibility(): boolean; - - /** - * Set the widget manager associated with the widget instance. - * - * @param {vtkWidgetManager} wm The widget manager instance - */ - setWidgetManager(wm: vtkWidgetManager): void; - - /** - * Get the widget manager associated with the widget instance. - */ - getWidgetManager(): vtkWidgetManager; - - /** - * Get all the representations of the widget instance. - */ - getRepresentations(): vtkWidgetRepresentation[]; - - /** - * Get the the state of the widget instance. - */ - getWidgetState(): vtkWidgetState; - - /** - * Register a callback to be invoked when the `ActivateHandle` event occurs. - * - * @param {EventHandler} cb The callback to register - * @param {Number} [priority] Priority of this subscription - */ - onActivateHandle( - cb: EventHandler, - priority?: number - ): Readonly; - - /** - * Invoke the `ActivateHandle` event with the given payload. - * - * @param args The event payload - */ - invokeActivateHandle(...args: unknown[]): void; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkAbstractWidget characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param initialValues (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: object -): void; - -/** - * Method used to create a new instance of vtkAbstractWidget - * - * @param initialValues For pre-setting some of its content - */ -export function newInstance(initialValues?: object): vtkAbstractWidget; - -/** - * vtkAbstractWidget is an abstract class to construct a widget. - */ -export declare const vtkAbstractWidget: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkAbstractWidget; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/AbstractWidget.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/AbstractWidget.js deleted file mode 100644 index 542574e3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/AbstractWidget.js +++ /dev/null @@ -1,124 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkInteractorObserver from '../../Rendering/Core/InteractorObserver.js'; -import vtkProp from '../../Rendering/Core/Prop.js'; -import { RenderingTypes } from './WidgetManager/Constants.js'; -import { WIDGET_PRIORITY } from './AbstractWidget/Constants.js'; - -// ---------------------------------------------------------------------------- - -function vtkAbstractWidget(publicAPI, model) { - model.classHierarchy.push('vtkAbstractWidget'); - model.actorToRepresentationMap = new WeakMap(); - - // -------------------------------------------------------------------------- - publicAPI.getBounds = model.widgetState.getBounds; - publicAPI.getNestedProps = () => model.representations; - // -------------------------------------------------------------------------- - - publicAPI.activateHandle = _ref => { - let { - selectedState, - representation - } = _ref; - model.widgetState.activateOnly(selectedState); - model.activeState = selectedState; - if (selectedState && selectedState.updateManipulator) { - selectedState.updateManipulator(); - } - publicAPI.invokeActivateHandle({ - selectedState, - representation - }); - if (publicAPI.updateCursor) { - publicAPI.updateCursor(); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.deactivateAllHandles = () => { - model.widgetState.deactivate(); - }; - - // -------------------------------------------------------------------------- - - publicAPI.hasActor = actor => model.actorToRepresentationMap.has(actor); - - // -------------------------------------------------------------------------- - - publicAPI.grabFocus = () => { - model.hasFocus = true; - }; - publicAPI.loseFocus = () => { - model.hasFocus = false; - }; - publicAPI.hasFocus = () => model.hasFocus; - - // -------------------------------------------------------------------------- - - publicAPI.placeWidget = bounds => model.widgetState.placeWidget(bounds); - publicAPI.getPlaceFactor = () => model.widgetState.getPlaceFactor(); - publicAPI.setPlaceFactor = factor => model.widgetState.setPlaceFactor(factor); - - // -------------------------------------------------------------------------- - - publicAPI.getRepresentationFromActor = actor => model.actorToRepresentationMap.get(actor); - - // -------------------------------------------------------------------------- - - publicAPI.updateRepresentationForRender = function () { - let renderingType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : RenderingTypes.FRONT_BUFFER; - for (let i = 0; i < model.representations.length; i++) { - const representation = model.representations[i]; - representation.updateActorVisibility(renderingType, model.contextVisibility, model.handleVisibility); - } - }; - publicAPI.getViewWidgets = () => model._factory.getViewWidgets(); - - // -------------------------------------------------------------------------- - // Initialization calls - // -------------------------------------------------------------------------- - - publicAPI.setPriority(WIDGET_PRIORITY); -} - -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - contextVisibility: true, - handleVisibility: true, - hasFocus: false -}; - -/** - * @param {*} publicAPI public methods to populate - * @param {*} model internal values to populate - * @param {object} initialValues Contains at least - * {viewType, _renderer, _camera, _openGLRenderWindow, _factory} - */ -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkProp.extend(publicAPI, model, initialValues); - vtkInteractorObserver.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['contextVisibility', 'handleVisibility', '_widgetManager']); - macro.get(publicAPI, model, ['representations', 'widgetState', 'activeState' // stores the last activated sub state(handle) - ]); - - macro.moveToProtected(publicAPI, model, ['widgetManager']); - macro.event(publicAPI, model, 'ActivateHandle'); - vtkAbstractWidget(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkAbstractWidget'); - -// ---------------------------------------------------------------------------- - -var vtkAbstractWidget$1 = { - newInstance, - extend -}; - -export { vtkAbstractWidget$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/AbstractWidget/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/AbstractWidget/Constants.js deleted file mode 100644 index 91d32031..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/AbstractWidget/Constants.js +++ /dev/null @@ -1,6 +0,0 @@ -const WIDGET_PRIORITY = 0.5; -var Constants = { - WIDGET_PRIORITY -}; - -export { WIDGET_PRIORITY, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/AbstractWidgetFactory.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/AbstractWidgetFactory.d.ts deleted file mode 100644 index 7ddfd7ca..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/AbstractWidgetFactory.d.ts +++ /dev/null @@ -1,173 +0,0 @@ -import vtkAbstractWidget from './AbstractWidget'; -import vtkRenderer from './../../Rendering/Core/Renderer'; -import vtkWidgetState from './WidgetState'; -import { ViewTypes } from './WidgetManager/Constants'; -import { Bounds, Nullable } from './../../types'; -import { EventHandler, vtkSubscription, vtkObject } from './../../interfaces'; - -export interface IGetWidgetForViewParams { - viewId: number; - renderer?: vtkRenderer; - viewType?: ViewTypes; - initialValues?: object; -} - -export interface vtkAbstractWidgetFactory< - WidgetInstance extends vtkAbstractWidget -> extends vtkObject { - /** - * Will return the widget associated with the view with Id id `locator.viewId`. - * If there is no widget associated with the view, a new widget will be constructed, provided - * that the renderer, viewType, and optionally initialValues are also provided. - * - * @param {IGetWidgetForViewParams} locator - */ - getWidgetForView(locator: IGetWidgetForViewParams): Nullable; - - /** - * Get a list of all the view ids. - */ - getViewIds(): string[]; - - /** - * Get a list of all the instances of the widget. - */ - getViewWidgets(): vtkAbstractWidget[]; - - /** - * Set the visiblity on each underlying view widget. - * - * @param {Boolean} visible - */ - setVisibility(visible: boolean): void; - - /** - * Set the pickable flag for each underlying view widget. - * - * @param {Boolean} pickable - */ - setPickable(pickable: boolean): void; - - /** - * Set the dragable flag for each underlying view widget. - * - * @param {Boolean} dragable - */ - setDragable(dragable: boolean): void; - - /** - * Set the context visibility for each associated view widget. - * - * @param {Boolean} visible - */ - setContextVisibility(visible: boolean): void; - - /** - * Set the handles visibility for each underlying view widget. - * - * @param {Boolean} visible - */ - setHandleVisiblity(visible: boolean): void; - - /** - * Place a new widget at the given bounds. - * - * @param {Bounds} bounds - */ - placeWidget(bounds: Bounds): void; - - /** - * Get the place factor. - */ - getPlaceFactor(): number; - - /** - * Set the place factor. - * - * @param {Number} factor - */ - setPlaceFactor(factor: number): void; - - /** - * Get the `vtkWidgetState` instance - */ - getWidgetState(): vtkWidgetState; - - /** - * Register a callback to be called when the WidgetChange event arise. - * - * @param {EventHandler} cb The callback to be invoked. - * @param {Number} [priority] The priority of this subscription - */ - onWidgetChangeEvent( - cb: EventHandler, - priority?: number - ): Readonly; - - /** - * Invoke the WidgetChange event - * - * @param args The event payload - */ - invokeWidgetChangeEvent(...args: unknown[]): void; -} - -/** - * This hack is to "remember" the generic type T that this function turn publicAPI into - * This is because typescript is completely "structural" and doesn't have any way to declare "nominal" types - * See: https://github.com/microsoft/TypeScript/issues/202 - * For example, in this code, widgetInstance is a vtkResliceCursorWidgetCPRInstance: - * - * import vtkResliceCursorWidget from '@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget'; - * import widgetBehavior from '@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/cprBehavior'; - * - * const widget = vtkResliceCursorWidget.newInstance({ - * planes: ['Y', 'Z'], - * behavior: widgetBehavior, - * }); - * const widgetInstance = widgetManager.addWidget(widget); - */ -declare const ExtendSymbol: unique symbol; -export type ExtendWidgetBehavior = (( - publicAPI: object, - model: object -) => void) & { [ExtendSymbol]: WidgetInstance }; - -export interface IAbstractWidgetFactoryInitialValues< - WidgetInstance extends vtkAbstractWidget = vtkAbstractWidget -> { - behavior?: ExtendWidgetBehavior; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkAbstractWidgetFactory characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param initialValues (default: {}) - */ -export function extend< - WidgetInstance extends vtkAbstractWidget = vtkAbstractWidget ->( - publicAPI: object, - model: object, - initialValues?: IAbstractWidgetFactoryInitialValues -): void; - -/** - * Method used to create a new instance of vtkAbstractWidgetFactory - * - * @param initialValues for pre-setting some of its content - */ -export function newInstance< - WidgetInstance extends vtkAbstractWidget = vtkAbstractWidget ->( - initialValues?: IAbstractWidgetFactoryInitialValues -): vtkAbstractWidgetFactory; - -export declare const vtkAbstractWidgetFactory: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkAbstractWidgetFactory; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/AbstractWidgetFactory.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/AbstractWidgetFactory.js deleted file mode 100644 index 6a1ab0e5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/AbstractWidgetFactory.js +++ /dev/null @@ -1,200 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkAbstractWidget from './AbstractWidget.js'; -import { extractRenderingComponents } from './WidgetManager.js'; - -function NoOp() {} - -// ---------------------------------------------------------------------------- - -function vtkAbstractWidgetFactory(publicAPI, model) { - model.classHierarchy.push('vtkAbstractWidgetFactory'); - - // DO NOT share on the model ------------------------------------------------ - const viewToWidget = {}; - // DO NOT share on the model ------------------------------------------------ - - // Can be called with just ViewId after the widget has been registered - publicAPI.getWidgetForView = _ref => { - let { - viewId, - renderer, - viewType, - initialValues - } = _ref; - if (!viewToWidget[viewId]) { - if (!renderer) { - return null; - } - const { - interactor, - apiSpecificRenderWindow, - camera - } = extractRenderingComponents(renderer); - const widgetModel = {}; - const widgetPublicAPI = {}; - macro.obj(widgetPublicAPI, widgetModel); - Object.assign(widgetPublicAPI, { - onWidgetChange: publicAPI.onWidgetChange - }); - Object.assign(widgetModel, { - widgetState: model.widgetState, - manipulator: model.manipulator, - viewType, - renderer, - camera, - apiSpecificRenderWindow, - factory: publicAPI - }); - macro.moveToProtected(widgetPublicAPI, widgetModel, ['renderer', 'camera', 'apiSpecificRenderWindow', 'factory']); - macro.get(widgetPublicAPI, widgetModel, ['viewType']); - macro.safeArrays(widgetModel); - vtkAbstractWidget.extend(widgetPublicAPI, widgetModel, initialValues); - - // Create representations for that view - /* eslint-disable no-shadow */ - const widgetInitialValues = initialValues; // Avoid shadowing - widgetModel.representations = publicAPI.getRepresentationsForViewType(viewType).map(_ref2 => { - let { - builder, - labels, - initialValues - } = _ref2; - return builder.newInstance({ - _parentProp: widgetPublicAPI, - labels, - ...initialValues, - ...widgetInitialValues - }); - }); - /* eslint-enable no-shadow */ - - widgetModel.representations.forEach(r => { - r.setInputData(widgetModel.widgetState); - r.getActors().forEach(actor => { - widgetModel.actorToRepresentationMap.set(actor, r); - }); - }); - model.behavior(widgetPublicAPI, widgetModel); - // Forward representation methods - ['coincidentTopologyParameters', ...(model.methodsToLink || [])].forEach(methodName => { - const set = `set${macro.capitalize(methodName)}`; - const get = `get${macro.capitalize(methodName)}`; - const methods = { - [methodName]: [], - [set]: [], - [get]: [] - }; - widgetModel.representations.forEach(representation => { - if (representation[methodName]) { - methods[methodName].push(representation[methodName]); - } - if (representation[set]) { - methods[set].push(representation[set]); - } - if (representation[get]) { - methods[get].push(representation[get]); - } - }); - Object.keys(methods).forEach(name => { - const calls = methods[name]; - if (calls.length === 1) { - widgetPublicAPI[name] = calls[0]; - } else if (calls.length > 1) { - widgetPublicAPI[name] = macro.chain(...calls); - } - }); - }); - - // Custom delete to detach from parent - widgetPublicAPI.delete = macro.chain(() => { - delete viewToWidget[viewId]; - }, widgetPublicAPI.delete); - widgetPublicAPI.setInteractor(interactor); - const viewWidget = Object.freeze(widgetPublicAPI); - viewToWidget[viewId] = viewWidget; - return viewWidget; - } - return viewToWidget[viewId]; - }; - - // List of all the views the widget has been registered to. - publicAPI.getViewIds = () => Object.keys(viewToWidget); - publicAPI.getViewWidgets = () => Object.values(viewToWidget); - - // -------------------------------------------------------------------------- - // Widget visibility / enable - // -------------------------------------------------------------------------- - // Call methods on all its view widgets - - publicAPI.setVisibility = value => { - const viewIds = Object.keys(viewToWidget); - for (let i = 0; i < viewIds.length; i++) { - viewToWidget[viewIds[i]].setVisibility(value); - } - }; - publicAPI.setPickable = value => { - const viewIds = Object.keys(viewToWidget); - for (let i = 0; i < viewIds.length; i++) { - viewToWidget[viewIds[i]].setPickable(value); - } - }; - publicAPI.setDragable = value => { - const viewIds = Object.keys(viewToWidget); - for (let i = 0; i < viewIds.length; i++) { - viewToWidget[viewIds[i]].setDragable(value); - } - }; - publicAPI.setContextVisibility = value => { - const viewIds = Object.keys(viewToWidget); - for (let i = 0; i < viewIds.length; i++) { - viewToWidget[viewIds[i]].setContextVisibility(value); - } - }; - publicAPI.setHandleVisibility = value => { - const viewIds = Object.keys(viewToWidget); - for (let i = 0; i < viewIds.length; i++) { - viewToWidget[viewIds[i]].setHandleVisibility(value); - } - }; - - // -------------------------------------------------------------------------- - // Place Widget API - // -------------------------------------------------------------------------- - - publicAPI.placeWidget = bounds => model.widgetState.placeWidget(bounds); - publicAPI.getPlaceFactor = () => model.widgetState.getPlaceFactor(); - publicAPI.setPlaceFactor = factor => model.widgetState.setPlaceFactor(factor); - - // -------------------------------------------------------------------------- - // Event Widget API - // -------------------------------------------------------------------------- - let unsubscribe = NoOp; - publicAPI.delete = macro.chain(publicAPI.delete, () => unsubscribe()); - if (model.widgetState) { - unsubscribe = model.widgetState.onModified(() => publicAPI.invokeWidgetChange(model.widgetState)).unsubscribe; - } -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, initialValues); - macro.obj(publicAPI, model); - macro.get(publicAPI, model, ['widgetState']); - macro.event(publicAPI, model, 'WidgetChange'); - vtkAbstractWidgetFactory(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkAbstractWidget'); - -// ---------------------------------------------------------------------------- - -var vtkAbstractWidgetFactory$1 = { - newInstance, - extend -}; - -export { vtkAbstractWidgetFactory$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder.d.ts deleted file mode 100644 index d88bdd3a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import vtkWidgetState from './WidgetState'; - -export interface StateBuilder { - addDynamicMixinState(buildInfo: { - labels: string[]; - mixins: string[]; - name: string; - initialValues?: object; - }): StateBuilder; - addStateFromMixin(buildInfo: { - labels: string[]; - mixins: string[]; - name: string; - initialValues?: object; - }): StateBuilder; - addStateFromInstance(stateInfo: { - labels: string[]; - name: string; - instance: vtkWidgetState; - }); - addField(field: { name: string; initialValue: any }); - build(...mixins: string[]): vtkWidgetState; -} - -export function createBuilder(): StateBuilder; - -export declare const vtkStateBuilder: { - createBuilder: typeof createBuilder; -}; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder.js deleted file mode 100644 index 832afb15..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder.js +++ /dev/null @@ -1,176 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkWidgetState from './WidgetState.js'; -import bounds from './StateBuilder/boundsMixin.js'; -import color from './StateBuilder/colorMixin.js'; -import color3 from './StateBuilder/color3Mixin.js'; -import corner from './StateBuilder/cornerMixin.js'; -import direction from './StateBuilder/directionMixin.js'; -import manipulator from './StateBuilder/manipulatorMixin.js'; -import name from './StateBuilder/nameMixin.js'; -import orientation from './StateBuilder/orientationMixin.js'; -import origin from './StateBuilder/originMixin.js'; -import scale1 from './StateBuilder/scale1Mixin.js'; -import scale3 from './StateBuilder/scale3Mixin.js'; -import text from './StateBuilder/textMixin.js'; -import visible from './StateBuilder/visibleMixin.js'; -import shape from './StateBuilder/shapeMixin.js'; - -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// Global type lookup map -// ---------------------------------------------------------------------------- - -const MIXINS = { - bounds, - color, - color3, - corner, - direction, - manipulator, - name, - orientation, - origin, - scale1, - scale3, - text, - visible, - shape -}; - -// ---------------------------------------------------------------------------- - -function newInstance(mixins, initialValues) { - let publicAPI = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - let model = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; - let skipWidgetState = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false; - if (!skipWidgetState) { - vtkWidgetState.extend(publicAPI, model, initialValues); - } - for (let i = 0; i < mixins.length; i++) { - const mixin = MIXINS[mixins[i]]; - if (mixin) { - mixin.extend(publicAPI, model, initialValues); - } else { - vtkErrorMacro('Invalid mixin name:', mixins[i]); - } - } - macro.safeArrays(model); - return Object.freeze(publicAPI); -} - -// ---------------------------------------------------------------------------- - -class Builder { - constructor() { - this.publicAPI = {}; - this.model = {}; - vtkWidgetState.extend(this.publicAPI, this.model); - // The root state should always have the bounds/placeWidget/widgetFactor - bounds.extend(this.publicAPI, this.model); - } - - /* eslint-disable no-shadow */ - addDynamicMixinState(_ref) { - let { - labels, - mixins, - name, - initialValues - } = _ref; - const listName = `${name}List`; - this.model[listName] = []; - // Create new Instance method - this.publicAPI[`add${macro.capitalize(name)}`] = values => { - const instance = newInstance(mixins, { - ...initialValues, - ...values - }); - this.publicAPI.bindState(instance, labels); - this.model[listName].push(instance); - this.publicAPI.modified(); - return instance; - }; - this.publicAPI[`remove${macro.capitalize(name)}`] = instanceOrIndex => { - let removeIndex = this.model[listName].indexOf(instanceOrIndex); - if (removeIndex === -1 && instanceOrIndex < this.model[listName].length) { - removeIndex = instanceOrIndex; - } - const instance = this.model[listName][removeIndex]; - if (instance) { - this.publicAPI.unbindState(instance); - } - this.model[listName].splice(removeIndex, 1); - this.publicAPI.modified(); - }; - this.publicAPI[`get${macro.capitalize(name)}List`] = () => this.model[listName].slice(); - this.publicAPI[`clear${macro.capitalize(name)}List`] = () => { - while (this.model[listName].length) { - const instance = this.model[listName].pop(); - if (instance) { - this.publicAPI.unbindState(instance); - } - } - this.publicAPI.modified(); - }; - return this; - } - addStateFromMixin(_ref2) { - let { - labels, - mixins, - name, - initialValues - } = _ref2; - const instance = newInstance(mixins, initialValues); - this.model[name] = instance; - this.publicAPI.bindState(instance, labels); - macro.setGet(this.publicAPI, this.model, [name]); - return this; - } - addStateFromInstance(_ref3) { - let { - labels, - name, - instance - } = _ref3; - this.model[name] = instance; - this.publicAPI.bindState(instance, labels); - macro.setGet(this.publicAPI, this.model, [name]); - return this; - } - addField(_ref4) { - let { - name, - initialValue - } = _ref4; - if (Array.isArray(initialValue)) { - macro.setGetArray(this.publicAPI, this.model, [name], initialValue.length); - } else { - macro.setGet(this.publicAPI, this.model, [name]); - } - this.model[name] = initialValue; - return this; - } - build() { - for (var _len = arguments.length, mixins = new Array(_len), _key = 0; _key < _len; _key++) { - mixins[_key] = arguments[_key]; - } - return newInstance(mixins, {}, this.publicAPI, this.model, true); - } -} - -// ---------------------------------------------------------------------------- -// Public API -// ---------------------------------------------------------------------------- - -function createBuilder() { - return new Builder(); -} -var vtkStateBuilder = { - createBuilder -}; - -export { createBuilder, vtkStateBuilder as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/boundsMixin.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/boundsMixin.js deleted file mode 100644 index 1e578918..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/boundsMixin.js +++ /dev/null @@ -1,66 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import vtkBoundingBox from '../../../Common/DataModel/BoundingBox.js'; - -function vtkBoundsMixin(publicAPI, model) { - const sourceBounds = []; - const bbox = [...vtkBoundingBox.INIT_BOUNDS]; - publicAPI.containsPoint = (x, y, z) => { - if (Array.isArray(x)) { - return vtkBoundingBox.containsPoint(bbox, x[0], x[1], x[2]); - } - return vtkBoundingBox.containsPoint(bbox, x, y, z); - }; - publicAPI.placeWidget = bounds => { - model.bounds = []; - const center = [(bounds[0] + bounds[1]) / 2.0, (bounds[2] + bounds[3]) / 2.0, (bounds[4] + bounds[5]) / 2.0]; - for (let i = 0; i < 6; i++) { - const axisCenter = center[Math.floor(i / 2)]; - sourceBounds[i] = bounds[i]; - model.bounds[i] = (bounds[i] - axisCenter) * model.placeFactor + axisCenter; - } - vtkBoundingBox.setBounds(bbox, model.bounds); - publicAPI.invokeBoundsChange(model.bounds); - publicAPI.modified(); - }; - publicAPI.setPlaceFactor = factor => { - if (model.placeFactor !== factor) { - model.placeFactor = factor; - model.bounds = []; - const center = [(sourceBounds[0] + sourceBounds[1]) / 2.0, (sourceBounds[2] + sourceBounds[3]) / 2.0, (sourceBounds[4] + sourceBounds[5]) / 2.0]; - for (let i = 0; i < 6; i++) { - const axisCenter = center[Math.floor(i / 2)]; - model.bounds[i] = (sourceBounds[i] - axisCenter) * model.placeFactor + axisCenter; - } - vtkBoundingBox.setBounds(bbox, model.bounds); - publicAPI.invokeBoundsChange(model.bounds); - publicAPI.modified(); - } - }; -} - -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - bounds: [-1, 1, -1, 1, -1, 1], - placeFactor: 1 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.setGetArray(publicAPI, model, ['bounds'], 6); - macro.get(publicAPI, model, ['placeFactor']); - macro.event(publicAPI, model, 'BoundsChange'); - model.bounds = model.bounds.slice(); - vtkBoundsMixin(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -var bounds = { - extend -}; - -export { bounds as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/color3Mixin.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/color3Mixin.js deleted file mode 100644 index 59bab2f1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/color3Mixin.js +++ /dev/null @@ -1,27 +0,0 @@ -import { m as macro } from '../../../macros2.js'; - -/** - * RGB Uint8 color mixin. Not to be used in conjunction with `color` mixin. - * @see color - */ -const DEFAULT_VALUES = { - color3: [255, 255, 255], - opacity: 255 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.setGetArray(publicAPI, model, ['color3'], 3, 255); - macro.setGet(publicAPI, model, ['opacity']); -} - -// ---------------------------------------------------------------------------- - -var color3 = { - extend -}; - -export { color3 as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/colorMixin.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/colorMixin.js deleted file mode 100644 index 53d69022..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/colorMixin.js +++ /dev/null @@ -1,28 +0,0 @@ -import { m as macro } from '../../../macros2.js'; - -/** - * Scalar color mixin. - * Scalar value [0, 1] references a color in the mapper LUT. - * Not to be used in conjunction with `color3` mixin. - * @see color3 - */ - -const DEFAULT_VALUES = { - color: 0.5 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.setGet(publicAPI, model, ['color']); -} - -// ---------------------------------------------------------------------------- - -var color = { - extend -}; - -export { color as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/cornerMixin.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/cornerMixin.js deleted file mode 100644 index 06fb2ca8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/cornerMixin.js +++ /dev/null @@ -1,33 +0,0 @@ -import { m as macro } from '../../../macros2.js'; - -// ---------------------------------------------------------------------------- - -function vtkCornerMixin(publicAPI, model) { - publicAPI.translate = (dx, dy, dz) => { - const [x, y, z] = publicAPI.getCornerByReference(); - publicAPI.setCorner(x + dx, y + dy, z + dz); - }; -} - -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - corner: [0, 0, 0] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.setGetArray(publicAPI, model, ['corner'], 3); - vtkCornerMixin(publicAPI); -} - -// ---------------------------------------------------------------------------- - -var corner = { - extend -}; - -export { corner as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/directionMixin.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/directionMixin.js deleted file mode 100644 index 05272652..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/directionMixin.js +++ /dev/null @@ -1,47 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import vtkMatrixBuilder from '../../../Common/Core/MatrixBuilder.js'; - -// ---------------------------------------------------------------------------- - -function vtkDirectionMixin(publicAPI, model) { - const transform = model.angleUnit === 'degree' ? vtkMatrixBuilder.buildFromDegree() : vtkMatrixBuilder.buildFromRadian(); - publicAPI.rotateFromDirections = (originDirection, targetDirection) => { - transform.identity().rotateFromDirections(originDirection, targetDirection).apply(model.direction); - publicAPI.modified(); - }; - publicAPI.rotate = (angle, axis) => { - transform.identity().rotate(angle, axis).apply(model.direction); - }; - publicAPI.rotateX = angle => { - transform.identity().rotateX(angle).apply(model.direction); - }; - publicAPI.rotateY = angle => { - transform.identity().rotateY(angle).apply(model.direction); - }; - publicAPI.rotateZ = angle => { - transform.identity().rotateZ(angle).apply(model.direction); - }; -} - -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - direction: [1, 0, 0] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.setGetArray(publicAPI, model, ['direction'], 3); - vtkDirectionMixin(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -var direction = { - extend -}; - -export { direction as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/manipulatorMixin.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/manipulatorMixin.js deleted file mode 100644 index 1c4d4ecb..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/manipulatorMixin.js +++ /dev/null @@ -1,56 +0,0 @@ -import { m as macro } from '../../../macros2.js'; - -// ---------------------------------------------------------------------------- - -function vtkManipulatorMixin(publicAPI, model) { - publicAPI.updateManipulator = () => { - if (model.manipulator) { - const { - origin, - normal, - direction - } = model; - const { - setHandleOrigin, - setHandleCenter, - setHandleNormal, - setHandleDirection - } = model.manipulator; - if (origin && setHandleOrigin) { - setHandleOrigin(origin); - } else if (origin && setHandleCenter) { - setHandleCenter(origin); - } - if (direction && setHandleDirection) { - setHandleDirection(direction); - } else if (direction && !normal && setHandleNormal) { - setHandleNormal(direction); - } else if (normal && setHandleDirection) { - setHandleDirection(normal); - } - } - }; -} - -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - manipulator: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.setGet(publicAPI, model, ['manipulator']); - vtkManipulatorMixin(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -var manipulator = { - extend -}; - -export { manipulator as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/nameMixin.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/nameMixin.js deleted file mode 100644 index ccc5d04e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/nameMixin.js +++ /dev/null @@ -1,21 +0,0 @@ -import { m as macro } from '../../../macros2.js'; - -const DEFAULT_VALUES = { - name: '' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.setGet(publicAPI, model, ['name']); -} - -// ---------------------------------------------------------------------------- - -var name = { - extend -}; - -export { name as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/orientationMixin.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/orientationMixin.js deleted file mode 100644 index abef3a9e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/orientationMixin.js +++ /dev/null @@ -1,77 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import { l as normalize, j as cross } from '../../../Common/Core/Math/index.js'; - -function eq(v1, v2) { - return v1.length === 3 && v2.length === 3 && v1[0] === v2[0] && v1[1] === v2[1] && v1[2] === v2[2]; -} -function isSame(o, p1, p2, before) { - return eq(o, before.o) && eq(p1, before.p1) && eq(p2, before.p2); -} - -// function axis(o, p1, p2) { -// if (o[0] === p1[0] && p1[0] === p2[0]) { -// return 'X'; -// } -// if (o[1] === p1[1] && p1[1] === p2[1]) { -// return 'Y'; -// } -// if (o[2] === p1[2] && p1[2] === p2[2]) { -// return 'Z'; -// } -// return '?'; -// } - -// ---------------------------------------------------------------------------- - -function vtkOrientationMixin(publicAPI, model) { - const previousPoints = { - o: [], - p1: [], - p2: [] - }; - publicAPI.normalize = () => { - normalize(model.up); - normalize(model.right); - normalize(model.direction); - publicAPI.modified(); - }; - publicAPI.updateFromOriginRightUp = (o, p1, p2) => { - if (isSame(o, p1, p2, previousPoints)) { - return; - } - previousPoints.o = o.slice(); - previousPoints.p1 = p1.slice(); - previousPoints.p2 = p2.slice(); - model.up = [p2[0] - o[0], p2[1] - o[1], p2[2] - o[2]]; - model.right = [p1[0] - o[0], p1[1] - o[1], p1[2] - o[2]]; - cross(model.up, model.right, model.direction); - cross(model.direction, model.up, model.right); - publicAPI.normalize(); - publicAPI.modified(); - }; -} - -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - up: [0, 1, 0], - right: [1, 0, 0], - direction: [0, 0, 1] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.setGetArray(publicAPI, model, ['up', 'right', 'direction'], 3); - vtkOrientationMixin(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -var orientation = { - extend -}; - -export { orientation as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/originMixin.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/originMixin.js deleted file mode 100644 index e1d42124..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/originMixin.js +++ /dev/null @@ -1,56 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import { b as vtkMath } from '../../../Common/Core/Math/index.js'; -import { getPixelWorldHeightAtCoord } from '../WidgetManager.js'; - -// ---------------------------------------------------------------------------- - -function vtkOriginMixin(publicAPI, model) { - const superClass = { - ...publicAPI - }; - publicAPI.translate = (dx, dy, dz) => { - const [x, y, z] = publicAPI.getOriginByReference(); - publicAPI.setOrigin(x + dx, y + dy, z + dz); - }; - publicAPI.getOrigin = displayScaleParams => { - const origin = superClass.getOrigin(); - if (!model.offset) { - return origin; - } - if (!displayScaleParams) { - return vtkMath.add(origin, model.offset, origin); - } - const pixelWorldHeight = getPixelWorldHeightAtCoord(origin, displayScaleParams); - const { - rendererPixelDims - } = displayScaleParams; - const totalSize = Math.min(rendererPixelDims[0], rendererPixelDims[1]); - return vtkMath.multiplyAccumulate(origin, model.offset, totalSize * pixelWorldHeight, origin); - }; -} - -// ---------------------------------------------------------------------------- -/** - * offset: optional offset that can be scaled to pixel screen space. - */ -const DEFAULT_VALUES = { - origin: null, - offset: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.setGetArray(publicAPI, model, ['origin', 'offset'], 3); - vtkOriginMixin(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -var origin = { - extend -}; - -export { origin as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/scale1Mixin.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/scale1Mixin.js deleted file mode 100644 index 1f698141..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/scale1Mixin.js +++ /dev/null @@ -1,21 +0,0 @@ -import { m as macro } from '../../../macros2.js'; - -const DEFAULT_VALUES = { - scale1: 0.5 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.setGet(publicAPI, model, ['scale1']); -} - -// ---------------------------------------------------------------------------- - -var scale1 = { - extend -}; - -export { scale1 as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/scale3Mixin.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/scale3Mixin.js deleted file mode 100644 index c8aa47c4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/scale3Mixin.js +++ /dev/null @@ -1,21 +0,0 @@ -import { m as macro } from '../../../macros2.js'; - -const DEFAULT_VALUES = { - scale3: [1, 1, 1] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.setGetArray(publicAPI, model, ['scale3'], 3); -} - -// ---------------------------------------------------------------------------- - -var scale3 = { - extend -}; - -export { scale3 as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/shapeMixin.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/shapeMixin.js deleted file mode 100644 index d1b514c9..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/shapeMixin.js +++ /dev/null @@ -1,23 +0,0 @@ -import { m as macro } from '../../../macros2.js'; - -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - shape: '' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.setGet(publicAPI, model, ['shape']); -} - -// ---------------------------------------------------------------------------- - -var shape = { - extend -}; - -export { shape as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/textMixin.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/textMixin.js deleted file mode 100644 index 88a3a535..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/textMixin.js +++ /dev/null @@ -1,21 +0,0 @@ -import { m as macro } from '../../../macros2.js'; - -const DEFAULT_VALUES = { - text: 'DefaultText' -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.setGet(publicAPI, model, ['text']); -} - -// ---------------------------------------------------------------------------- - -var text = { - extend -}; - -export { text as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/visibleMixin.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/visibleMixin.js deleted file mode 100644 index a60b4737..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/StateBuilder/visibleMixin.js +++ /dev/null @@ -1,22 +0,0 @@ -import { m as macro } from '../../../macros2.js'; - -const DEFAULT_VALUES = { - visible: true -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.setGet(publicAPI, model, ['visible']); - publicAPI.isVisible = publicAPI.getVisible; -} - -// ---------------------------------------------------------------------------- - -var visible = { - extend -}; - -export { visible as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/WidgetManager.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/WidgetManager.d.ts deleted file mode 100644 index 7ce34143..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/WidgetManager.d.ts +++ /dev/null @@ -1,241 +0,0 @@ -import vtkAbstractWidget from './AbstractWidget'; -import vtkAbstractWidgetFactory from './AbstractWidgetFactory'; -import vtkCamera from './../../Rendering/Core/Camera'; -import vtkProp from './../../Rendering/Core/Prop'; -import vtkRenderer from './../../Rendering/Core/Renderer'; -import vtkRenderWindow from './../../Rendering/Core/RenderWindow'; -import vtkRenderWindowInteractor from './../../Rendering/Core/RenderWindowInteractor'; -import vtkSelectionNode from './../../Common/DataModel/SelectionNode'; -import vtkWidgetRepresentation from './../Representations/WidgetRepresentation'; -import vtkWidgetState from './WidgetState'; -import { vtkObject } from './../../interfaces'; -import { CaptureOn, ViewTypes } from './WidgetManager/Constants'; -import { Nullable } from './../../types'; - -export interface IDisplayScaleParams { - dispHeightFactor: number; - cameraPosition: number[]; - cameraDir: number[]; - isParallel: boolean; - rendererPixelDims: number[]; -} - -export interface ISelectedData { - requestCount: number; - propID: number; - compositeID: number; - prop: vtkProp; - widget: vtkAbstractWidget; - representation: vtkWidgetRepresentation; - selectedState: vtkWidgetState; -} - -export interface IRenderingComponents { - renderer: vtkRenderer; - renderWindow: vtkRenderWindow; - interactor: vtkRenderWindowInteractor; - apiSpecificRenderWindow: vtkRenderWindow; - camera: vtkCamera; -} - -/** - * Extract the rendering components from the given renderer. - * - * @param {vtkRenderer} renderer The vtkRenderer instance. - */ -export function extractRenderingComponents( - renderer: vtkRenderer -): IRenderingComponents; - -/** - * This method returns the world distance that corresponds to the height of a - * single display pixel at a given coordinate. For example, to determine the - * (vertical) distance that matches a display distance of 30px for a coordinate - * `coord`, you would compute `30 * getPixelWorldHeightAtCoord(coord)`. - */ -export function getPixelWorldHeightAtCoord( - coord: [], - displayScaleParams: IDisplayScaleParams -): Number; - -export interface vtkWidgetManager extends vtkObject { - /** - * The the captureOn value. - * `CaptureOn.MOUSE_MOVE`: captures small region when moving mouse - * `CaptureOn.MOUSE_RELEASE`: captures entire region when mouse button is released - * - * @param {CaptureOn} captureOn - */ - setCaptureOn(captureOn: CaptureOn): boolean; - - /** - * Get the captureOn value. - */ - getCaptureOn(): CaptureOn; - - /** - * The the view type. - * - * @param {ViewTypes} type - */ - setViewType(type: ViewTypes): boolean; - - /** - * Get the view type. - */ - getViewType(): ViewTypes; - - /** - * Get the current selection. - */ - getSelections(): vtkSelectionNode[]; - - /** - * Get all the underlying widgets. - */ - getWidgets(): vtkAbstractWidget[]; - - /** - * Get the active widget. - * - * If no widget is active, returns null. - */ - getActiveWidget(): Nullable; - - /** - * Get the view id. - */ - getViewId(): string; - - /** - * Returns true if picking is enabled, false otherwise. - */ - getPickingEnabled(): boolean; - - /** - * Enable the picking. - */ - enablePicking(): void; - - /** - * Renders all the widgets. - */ - renderWidgets(): void; - - /** - * Disable the picking. - */ - disablePicking(): void; - - /** - * Set the renderer. - * - * @param {vtkRenderer} renderer - */ - setRenderer(renderer: vtkRenderer): void; - - /** - * Register a widget on the widget manager instance. - * Please note that one should link the widget manager to a view before calling this method. - * - * @param {vtkAbstractWidgetFactory} widget The abstract widget factory. - * @param {ViewTypes} [viewType] - * @param {Object} [initialValues] - */ - addWidget>( - widget: WidgetFactory, - viewType?: ViewTypes, - initialValues?: object - ): WidgetFactory extends vtkAbstractWidgetFactory - ? WidgetInstance - : never; - - /** - * Unregister all widgets from the widget manager. - */ - removeWidgets(): void; - - /** - * Remove a widget from the widget manager. - * - * @param {vtkAbstractWidget | vtkAbstractWidgetFactory} widget The widget to remove - */ - removeWidget(widget: vtkAbstractWidget | vtkAbstractWidgetFactory): void; - - /** - * Given x and y parameter, get selected data. - * - * @param {Number} x - * @param {Number} y - */ - getSelectedDataForXY(x: number, y: number): Promise; - - /** - * The all currently selected data. - */ - getSelectedData(): ISelectedData | {}; - - /** - * Given the focus to the given widget instance. - * - * @param {vtkAbstractWidget | vtkAbstractWidgetFactory} widget The widget instance which should get the focus. - */ - grabFocus(widget: vtkAbstractWidget | vtkAbstractWidgetFactory): void; - - /** - * Release the focus. - */ - releaseFocus(): void; - - /** - * Sets the default cursor styles. - * - * Known style keys: - * - default: when not interacting with a widget - * - hover: when hovering over a widget. - * - * If a known style key is not present, the cursor style will not be changed. - * @param {Record} cursorStyles - */ - setCursorStyles(cursorStyles: Record): boolean; - - /** - * Retrieves the current cursor styles. - */ - getCursorStyles(): Record; -} - -export interface IWidgetManagerInitialValues { - captureOn?: CaptureOn; - viewType?: ViewTypes; - pickingEnabled?: boolean; -} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkWidgetManager characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param initialValues (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IWidgetManagerInitialValues -): vtkWidgetManager; - -/** - * Method used to create a new instance of vtkCellArray - * - * @param initialValues for pre-setting some of its content - */ -export function newInstance( - initialValues?: IWidgetManagerInitialValues -): vtkWidgetManager; - -export declare const vtkWidgetManager: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkWidgetManager; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/WidgetManager.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/WidgetManager.js deleted file mode 100644 index 12cd91a1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/WidgetManager.js +++ /dev/null @@ -1,483 +0,0 @@ -import { b as vtkMath } from '../../Common/Core/Math/index.js'; -import { FieldAssociations } from '../../Common/DataModel/DataSet/Constants.js'; -import { m as macro } from '../../macros2.js'; -import WidgetManagerConst from './WidgetManager/Constants.js'; -import { WIDGET_PRIORITY } from './AbstractWidget/Constants.js'; - -const { - ViewTypes, - RenderingTypes, - CaptureOn -} = WidgetManagerConst; -const { - vtkErrorMacro -} = macro; -let viewIdCount = 1; - -// ---------------------------------------------------------------------------- -// Helper -// ---------------------------------------------------------------------------- - -function extractRenderingComponents(renderer) { - const camera = renderer.getActiveCamera(); - const renderWindow = renderer.getRenderWindow(); - const interactor = renderWindow.getInteractor(); - const apiSpecificRenderWindow = interactor.getView(); - return { - renderer, - renderWindow, - interactor, - apiSpecificRenderWindow, - camera - }; -} -function getPixelWorldHeightAtCoord(worldCoord, displayScaleParams) { - const { - dispHeightFactor, - cameraPosition, - cameraDir, - isParallel, - rendererPixelDims - } = displayScaleParams; - let scale = 1; - if (isParallel) { - scale = dispHeightFactor; - } else { - const worldCoordToCamera = [...worldCoord]; - vtkMath.subtract(worldCoordToCamera, cameraPosition, worldCoordToCamera); - scale = vtkMath.dot(worldCoordToCamera, cameraDir) * dispHeightFactor; - } - const rHeight = rendererPixelDims[1]; - return scale / rHeight; -} -// ---------------------------------------------------------------------------- -// vtkWidgetManager methods -// ---------------------------------------------------------------------------- - -function vtkWidgetManager(publicAPI, model) { - if (!model.viewId) { - model.viewId = `view-${viewIdCount++}`; - } - model.classHierarchy.push('vtkWidgetManager'); - const propsWeakMap = new WeakMap(); - const subscriptions = []; - - // -------------------------------------------------------------------------- - // API internal - // -------------------------------------------------------------------------- - - function updateWidgetWeakMap(widget) { - const representations = widget.getRepresentations(); - for (let i = 0; i < representations.length; i++) { - const representation = representations[i]; - const origin = { - widget, - representation - }; - const actors = representation.getActors(); - for (let j = 0; j < actors.length; j++) { - const actor = actors[j]; - propsWeakMap.set(actor, origin); - } - } - } - function getViewWidget(widget) { - return widget && (widget.isA('vtkAbstractWidget') ? widget : widget.getWidgetForView({ - viewId: model.viewId - })); - } - - // -------------------------------------------------------------------------- - // Widget scaling - // -------------------------------------------------------------------------- - - function updateDisplayScaleParams() { - const { - _apiSpecificRenderWindow, - _camera, - _renderer - } = model; - if (_renderer && _apiSpecificRenderWindow && _camera) { - const [rwW, rwH] = _apiSpecificRenderWindow.getSize(); - const [vxmin, vymin, vxmax, vymax] = _renderer.getViewport(); - const pixelRatio = _apiSpecificRenderWindow.getComputedDevicePixelRatio(); - const rendererPixelDims = [rwW * (vxmax - vxmin) / pixelRatio, rwH * (vymax - vymin) / pixelRatio]; - const cameraPosition = _camera.getPosition(); - const cameraDir = _camera.getDirectionOfProjection(); - const isParallel = _camera.getParallelProjection(); - const dispHeightFactor = isParallel ? 2 * _camera.getParallelScale() : 2 * Math.tan(vtkMath.radiansFromDegrees(_camera.getViewAngle()) / 2); - model.widgets.forEach(w => { - w.getNestedProps().forEach(r => { - if (r.getScaleInPixels()) { - r.setDisplayScaleParams({ - dispHeightFactor, - cameraPosition, - cameraDir, - isParallel, - rendererPixelDims - }); - } - }); - }); - } - } - - // -------------------------------------------------------------------------- - // API public - // -------------------------------------------------------------------------- - - async function updateSelection(callData, fromTouchEvent, callID) { - const { - position - } = callData; - const { - requestCount, - selectedState, - representation, - widget - } = await publicAPI.getSelectedDataForXY(position.x, position.y); - if (requestCount || callID !== model._currentUpdateSelectionCallID) { - // requestCount > 0: Call activate only once - // callID check: drop old calls - return; - } - function activateHandle(w) { - if (fromTouchEvent) { - // release any previous left button interaction - model._interactor.invokeLeftButtonRelease(callData); - } - w.activateHandle({ - selectedState, - representation - }); - if (fromTouchEvent) { - // re-trigger the left button press to pick the now-active widget - model._interactor.invokeLeftButtonPress(callData); - } - } - - // Default cursor behavior - const cursorStyles = publicAPI.getCursorStyles(); - const style = widget ? 'hover' : 'default'; - const cursor = cursorStyles[style]; - if (cursor) { - model._apiSpecificRenderWindow.setCursor(cursor); - } - model.activeWidget = null; - let wantRender = false; - if (model.widgetInFocus === widget && widget.hasFocus()) { - activateHandle(widget); - model.activeWidget = widget; - wantRender = true; - } else { - for (let i = 0; i < model.widgets.length; i++) { - const w = model.widgets[i]; - if (w === widget && w.getNestedPickable()) { - activateHandle(w); - model.activeWidget = w; - wantRender = true; - } else { - wantRender ||= !!w.getActiveState(); - w.deactivateAllHandles(); - } - } - } - if (wantRender) { - model._interactor.render(); - } - } - const deactivateAllWidgets = () => { - let wantRender = false; - for (let i = 0; i < model.widgets.length; i++) { - const w = model.widgets[i]; - wantRender ||= !!w.getActiveState(); - w.deactivateAllHandles(); - } - if (wantRender) model._interactor.render(); - }; - const handleEvent = async function (callData) { - let fromTouchEvent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - if (!model.isAnimating && model.pickingEnabled && callData.pokedRenderer === model._renderer) { - const callID = Symbol('UpdateSelection'); - model._currentUpdateSelectionCallID = callID; - await updateSelection(callData, fromTouchEvent, callID); - } else { - deactivateAllWidgets(); - } - }; - function updateWidgetForRender(w) { - w.updateRepresentationForRender(model.renderingType); - } - function renderPickingBuffer() { - model.renderingType = RenderingTypes.PICKING_BUFFER; - model.widgets.forEach(updateWidgetForRender); - } - function renderFrontBuffer() { - model.renderingType = RenderingTypes.FRONT_BUFFER; - model.widgets.forEach(updateWidgetForRender); - } - async function captureBuffers(x1, y1, x2, y2) { - if (model._captureInProgress) { - await model._captureInProgress; - return; - } - renderPickingBuffer(); - model._capturedBuffers = null; - model._captureInProgress = model._selector.getSourceDataAsync(model._renderer, x1, y1, x2, y2); - model._capturedBuffers = await model._captureInProgress; - model._captureInProgress = null; - model.previousSelectedData = null; - renderFrontBuffer(); - } - publicAPI.enablePicking = () => { - model.pickingEnabled = true; - publicAPI.renderWidgets(); - }; - publicAPI.renderWidgets = () => { - if (model.pickingEnabled && model.captureOn === CaptureOn.MOUSE_RELEASE) { - const [w, h] = model._apiSpecificRenderWindow.getSize(); - captureBuffers(0, 0, w, h); - } - renderFrontBuffer(); - publicAPI.modified(); - }; - publicAPI.disablePicking = () => { - model.pickingEnabled = false; - }; - publicAPI.setRenderer = renderer => { - const renderingComponents = extractRenderingComponents(renderer); - Object.assign(model, renderingComponents); - macro.moveToProtected({}, model, Object.keys(renderingComponents)); - while (subscriptions.length) { - subscriptions.pop().unsubscribe(); - } - model._selector = model._apiSpecificRenderWindow.createSelector(); - model._selector.setFieldAssociation(FieldAssociations.FIELD_ASSOCIATION_POINTS); - subscriptions.push(model._apiSpecificRenderWindow.onWindowResizeEvent(updateDisplayScaleParams)); - subscriptions.push(model._camera.onModified(updateDisplayScaleParams)); - updateDisplayScaleParams(); - subscriptions.push(model._interactor.onStartAnimation(() => { - model.isAnimating = true; - })); - subscriptions.push(model._interactor.onEndAnimation(() => { - model.isAnimating = false; - publicAPI.renderWidgets(); - })); - subscriptions.push(model._interactor.onMouseMove(eventData => { - handleEvent(eventData); - return macro.VOID; - })); - - // must be handled after widgets, hence the given priority. - subscriptions.push(model._interactor.onLeftButtonPress(eventData => { - const { - deviceType - } = eventData; - const touchEvent = deviceType === 'touch' || deviceType === 'pen'; - // only try selection if the left button press is from touch. - if (touchEvent) { - handleEvent(eventData, touchEvent); - } - return macro.VOID; - }, WIDGET_PRIORITY / 2)); - publicAPI.modified(); - if (model.pickingEnabled) { - publicAPI.enablePicking(); - } - }; - function addWidgetInternal(viewWidget) { - viewWidget.setWidgetManager(publicAPI); - updateWidgetWeakMap(viewWidget); - updateDisplayScaleParams(); - - // Register to renderer - model._renderer.addActor(viewWidget); - } - publicAPI.addWidget = (widget, viewType, initialValues) => { - if (!model._renderer) { - vtkErrorMacro('Widget manager MUST BE link to a view before registering widgets'); - return null; - } - const { - viewId, - _renderer - } = model; - const w = widget.getWidgetForView({ - viewId, - renderer: _renderer, - viewType: viewType || ViewTypes.DEFAULT, - initialValues - }); - if (w != null && model.widgets.indexOf(w) === -1) { - model.widgets.push(w); - addWidgetInternal(w); - publicAPI.modified(); - } - return w; - }; - function removeWidgetInternal(viewWidget) { - model._renderer.removeActor(viewWidget); - viewWidget.delete(); - } - function onWidgetRemoved() { - model._renderer.getRenderWindow().getInteractor().render(); - publicAPI.renderWidgets(); - } - publicAPI.removeWidgets = () => { - model.widgets.forEach(removeWidgetInternal); - model.widgets = []; - model.widgetInFocus = null; - onWidgetRemoved(); - }; - publicAPI.removeWidget = widget => { - const viewWidget = getViewWidget(widget); - const index = model.widgets.indexOf(viewWidget); - if (index !== -1) { - model.widgets.splice(index, 1); - const isWidgetInFocus = model.widgetInFocus === viewWidget; - if (isWidgetInFocus) { - publicAPI.releaseFocus(); - } - removeWidgetInternal(viewWidget); - onWidgetRemoved(); - } - }; - publicAPI.getSelectedDataForXY = async (x, y) => { - model.selections = null; - if (model.pickingEnabled) { - // do we require a new capture? - if (!model._capturedBuffers || model.captureOn === CaptureOn.MOUSE_MOVE) { - await captureBuffers(x, y, x, y); - } else { - // or do we need a pixel that is outside the last capture? - const capturedRegion = model._capturedBuffers.area; - if (x < capturedRegion[0] || x > capturedRegion[2] || y < capturedRegion[1] || y > capturedRegion[3]) { - await captureBuffers(x, y, x, y); - } - } - model.selections = model._capturedBuffers.generateSelection(x, y, x, y); - } - return publicAPI.getSelectedData(); - }; - publicAPI.getSelectedData = () => { - if (!model.selections || !model.selections.length) { - model.previousSelectedData = null; - return {}; - } - const { - propID, - compositeID, - prop - } = model.selections[0].getProperties(); - let { - widget, - representation - } = model.selections[0].getProperties(); - // widget is undefined for handle representation. - if (model.previousSelectedData && model.previousSelectedData.prop === prop && model.previousSelectedData.widget === widget && model.previousSelectedData.compositeID === compositeID) { - model.previousSelectedData.requestCount++; - return model.previousSelectedData; - } - if (propsWeakMap.has(prop)) { - const props = propsWeakMap.get(prop); - widget = props.widget; - representation = props.representation; - } - if (widget && representation) { - const selectedState = representation.getSelectedState(prop, compositeID); - model.previousSelectedData = { - requestCount: 0, - propID, - compositeID, - prop, - widget, - representation, - selectedState - }; - return model.previousSelectedData; - } - model.previousSelectedData = null; - return {}; - }; - publicAPI.grabFocus = widget => { - const viewWidget = getViewWidget(widget); - if (model.widgetInFocus && model.widgetInFocus !== viewWidget) { - model.widgetInFocus.loseFocus(); - } - model.widgetInFocus = viewWidget; - if (model.widgetInFocus) { - model.widgetInFocus.grabFocus(); - } - }; - publicAPI.releaseFocus = () => publicAPI.grabFocus(null); - const superDelete = publicAPI.delete; - publicAPI.delete = () => { - while (subscriptions.length) { - subscriptions.pop().unsubscribe(); - } - superDelete(); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const defaultValues = function () { - let initialValues = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return { - // _camera: null, - // _selector: null, - // _currentUpdateSelectionCallID: null, - viewId: null, - widgets: [], - activeWidget: null, - renderer: null, - viewType: ViewTypes.DEFAULT, - isAnimating: false, - pickingEnabled: true, - selections: null, - previousSelectedData: null, - widgetInFocus: null, - captureOn: CaptureOn.MOUSE_MOVE, - ...initialValues, - cursorStyles: initialValues.cursorStyles ? { - ...initialValues.cursorStyles - } : { - default: 'default', - hover: 'pointer' - } - }; -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['captureOn', 'cursorStyles', { - type: 'enum', - name: 'viewType', - enum: ViewTypes - }]); - macro.get(publicAPI, model, ['selections', 'widgets', 'viewId', 'pickingEnabled', 'activeWidget']); - - // Object specific methods - vtkWidgetManager(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkWidgetManager'); - -// ---------------------------------------------------------------------------- - -var vtkWidgetManager$1 = { - newInstance, - extend, - Constants: WidgetManagerConst, - getPixelWorldHeightAtCoord -}; - -export { vtkWidgetManager$1 as default, extend, extractRenderingComponents, getPixelWorldHeightAtCoord, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/WidgetManager/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/WidgetManager/Constants.d.ts deleted file mode 100644 index 1ffc3493..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/WidgetManager/Constants.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -export declare enum ViewTypes { - DEFAULT = 0, - GEOMETRY = 1, - SLICE = 2, - VOLUME = 3, - YZ_PLANE = 4, - XZ_PLANE = 5, - XY_PLANE = 6, -} - -export declare enum RenderingTypes { - PICKING_BUFFER = 0, - FRONT_BUFFER = 1, -} - -export declare enum CaptureOn { - MOUSE_MOVE = 0, - MOUSE_RELEASE = 1, -} - -declare const _default: { - ViewTypes: typeof ViewTypes; - RenderingTypes: typeof RenderingTypes; - CaptureOn: typeof CaptureOn; -}; - -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/WidgetManager/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/WidgetManager/Constants.js deleted file mode 100644 index b2552987..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/WidgetManager/Constants.js +++ /dev/null @@ -1,27 +0,0 @@ -const ViewTypes = { - DEFAULT: 0, - GEOMETRY: 1, - SLICE: 2, - VOLUME: 3, - YZ_PLANE: 4, - // Sagittal - XZ_PLANE: 5, - // Coronal - XY_PLANE: 6 // Axial -}; - -const RenderingTypes = { - PICKING_BUFFER: 0, - FRONT_BUFFER: 1 -}; -const CaptureOn = { - MOUSE_MOVE: 0, - MOUSE_RELEASE: 1 -}; -var WidgetManagerConst = { - ViewTypes, - RenderingTypes, - CaptureOn -}; - -export { CaptureOn, RenderingTypes, ViewTypes, WidgetManagerConst as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/WidgetState.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/WidgetState.d.ts deleted file mode 100644 index 32678040..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/WidgetState.d.ts +++ /dev/null @@ -1,85 +0,0 @@ -import { vtkObject } from './../../interfaces'; - -export interface vtkWidgetState extends vtkObject { - /** - * Set the active flag of the widget state instance - * - * @param active The active flag - */ - setActive(active: boolean): boolean; - - /** - * Get the active flag of the widget state instance - */ - getActive(): boolean; - - /** - * Bind a state to one or more labels. If no label is provided, the default one will be used. - * - * @param {vtkWidgetState} subState The state to bound. - * @param {String | String[]} [labels] The labels to which the state should be bound. - */ - bindState(subState: vtkWidgetState, labels?: string | string[]): void; - - /** - * Unbind a specific state from the widget state instance - * - * @param {vtkWidgetState} subState The state to be unbound. - */ - unbindState(subState: vtkWidgetState): void; - - /** - * Unbind all states from the widget state instance - */ - unbindAll(): void; - - /** - * Activate the widget state instance. Same as calling `vtkWidgetState.setActive(true)` - */ - activate(): void; - - /** - * Deactivate thie widget state instance and all its sub states, except the `excludingState` argument. - * - * @param {vtkWidgetState} [excludingState] A sub-state instance that should not be deactivated. - */ - deactivate(excludingState?: vtkWidgetState): void; - - /** - * Activate only the passed in sub state. Every other sub states will be deactivated. - * - * @param {vtkWidgetState} subState The sub-state that should be activated. - */ - activateOnly(subState: vtkWidgetState): void; - - /** - * Get every states that are associated with the given label. - * - * @param {String} label The label from which to retrieve the states. - */ - getStatesWithLabel(label: string): vtkWidgetState[]; - - /** - * Get all the nested states on the widget state instance. - */ - getAllNestedStates(): vtkWidgetState[]; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkWidgetState characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {object} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: object -): vtkWidgetState; - -export declare const vtkWidgetState: { - extend: typeof extend; -}; - -export default vtkWidgetState; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/WidgetState.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/WidgetState.js deleted file mode 100644 index 73bd77f5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Core/WidgetState.js +++ /dev/null @@ -1,128 +0,0 @@ -import { m as macro } from '../../macros2.js'; - -const DEFAULT_LABEL = 'default'; -function removeObjectInArray(array, obj) { - const idx = array.indexOf(obj); - if (idx !== -1) { - array.splice(idx, 1); - } -} - -// ---------------------------------------------------------------------------- - -function vtkWidgetState(publicAPI, model) { - model.classHierarchy.push('vtkWidgetState'); - const subscriptions = []; - model.labels = {}; - model.nestedStates = []; - - // -------------------------------------------------------------------------- - // labels can be a string or an array of strings. - // If nothing (or empty array) provided the default label will be used. - // -------------------------------------------------------------------------- - - publicAPI.bindState = function (nested) { - let labels = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [DEFAULT_LABEL]; - model.nestedStates.push(nested); - subscriptions.push(nested.onModified(publicAPI.modified)); - if (Array.isArray(labels) && labels.length) { - for (let i = 0; i < labels.length; i++) { - const label = labels[i]; - if (!model.labels[label]) { - model.labels[label] = []; - } - model.labels[label].push(nested); - } - } else { - // Need to bind to a label - const labelToUse = Array.isArray(labels) ? DEFAULT_LABEL : labels || DEFAULT_LABEL; - if (!model.labels[labelToUse]) { - model.labels[labelToUse] = []; - } - model.labels[labelToUse].push(nested); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.unbindState = nested => { - while (subscriptions.length) { - subscriptions.pop().unsubscribe(); - } - removeObjectInArray(model.nestedStates, nested); - for (let i = 0; i < model.nestedStates.length; i++) { - subscriptions.push(model.nestedStates[i].onModified(publicAPI.modified)); - } - Object.keys(model.labels).forEach(label => { - const list = model.labels[label]; - removeObjectInArray(list, nested); - }); - }; - - // -------------------------------------------------------------------------- - - publicAPI.unbindAll = () => { - while (subscriptions.length) { - subscriptions.pop().unsubscribe(); - } - model.nestedStates = []; - }; - - // -------------------------------------------------------------------------- - // Active flag API - // -------------------------------------------------------------------------- - - publicAPI.activate = () => publicAPI.setActive(true); - publicAPI.deactivate = excludingState => { - if (excludingState !== publicAPI) { - publicAPI.setActive(false); - } - for (let i = 0; i < model.nestedStates.length; i++) { - model.nestedStates[i].deactivate(excludingState); - } - }; - publicAPI.activateOnly = subState => { - if (subState) { - subState.setActive(true); - } - // deactivate current state, but exclude the sub-state - publicAPI.deactivate(subState); - }; - - // -------------------------------------------------------------------------- - // Nested state methods - // -------------------------------------------------------------------------- - - publicAPI.getStatesWithLabel = name => model.labels[name]; - publicAPI.getAllNestedStates = () => model.nestedStates; - - // -------------------------------------------------------------------------- - // Clean on delete - // -------------------------------------------------------------------------- - - publicAPI.delete = macro.chain(publicAPI.unbindAll, publicAPI.delete); -} - -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - active: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['active']); - vtkWidgetState(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -var vtkWidgetState$1 = { - extend -}; - -export { vtkWidgetState$1 as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators.js deleted file mode 100644 index 79b1006a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators.js +++ /dev/null @@ -1,13 +0,0 @@ -import vtkPickerManipulator from './Manipulators/PickerManipulator.js'; -import vtkLineManipulator from './Manipulators/LineManipulator.js'; -import vtkPlaneManipulator from './Manipulators/PlaneManipulator.js'; -import vtkTrackballManipulator from './Manipulators/TrackballManipulator.js'; - -var Manipulators = { - vtkPickerManipulator, - vtkLineManipulator, - vtkPlaneManipulator, - vtkTrackballManipulator -}; - -export { Manipulators as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/AbstractManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/AbstractManipulator.d.ts deleted file mode 100644 index fef5e35d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/AbstractManipulator.d.ts +++ /dev/null @@ -1,254 +0,0 @@ -import { vtkObject } from './../../interfaces'; -import { vtkOpenGLRenderWindow } from './../../Rendering/OpenGL/RenderWindow'; -import { Matrix3x3, Nullable, Vector3 } from './../../types'; - -/** - * - */ -export interface IAbstractManipulatorInitialValues { - userOrigin?: Vector3; - handleOrigin?: Vector3; - widgetOrigin?: Vector3; - userNormal?: Vector3; - handleNormal?: Vector3; - widgetNormal?: Vector3; -} - -export interface vtkAbstractManipulator extends vtkObject { - /** - * Get the normal of the line - */ - getNormal(callData: any): Vector3; - - /** - * Get the origin of the line - */ - getOrigin(callData: any): Vector3; - - /** - * Get the value of useCameraFocalPoint - */ - getUseCameraFocalPoint(): boolean; - - /** - * Set the value of useCameraFocalPoint - * @param useCameraFocalPoint if true, the focal point of the camera will be used if userOrigin is not set. - */ - setUseCameraFocalPoint(useCameraFocalPoint: boolean): boolean; - - /** - * Get the value of useCameraNormal - */ - getUseCameraNormal(): boolean; - - /** - * Set the value of useCameraNormal - * @param useCameraNormal if true, the normal of the camera will be used if userNormal is not set. - */ - setUseCameraNormal(useCameraNormal: boolean): boolean; - - /** - * Processes a vtkRenderWindowInteractor event into 3D world positional info. - * - * Returns an object containing: - * - worldCoords: a 3D coordinate corresponding to the 2D event. - * - worldDelta: a 3D position delta between the current and the previous call to handleEvent. - * - worldDirection: a 3D directional vector. Only on select manipulators. - * - * worldCoords can be null if the pointer event enters an invalid manipulator region. For example, - * the PickerManipulator returns null when the pointer event is off of the picked geometry. - * - * worldDelta only makes sense between two calls of `handleEvent`. In a queue of `handleEvent` calls, - * the i-th call returns the delta between the i-th worldCoords and the (i-1)-th worldCoords. - * Thus, calling `handleEvent` is necessary for maintaining a valid worldDelta even when the return - * value is ignored. - * - * There are three cases where worldDelta needs to handle null events: - * 1. the first call to `handleEvent`, since there is no previously cached event position. - * worldDelta is set to [0, 0, 0]. - * 2. if the current `handleEvent` call returns a null worldCoords. worldDelta is set to [0, 0, 0]. - * 3. if the previous `handleEvent` call returned a null worldCoords. In this case, worldDelta is the - * delta between the current worldCoords and the previous non-null worldCoords, referring to the - * previous 2 cases when applicable. - * - * @param callData - * @param glRenderWindow - */ - handleEvent( - callData: any, - glRenderWindow: vtkOpenGLRenderWindow - ): { - worldCoords: Nullable; - worldDelta: Vector3; - worldDirection?: Matrix3x3; - }; - - /* ------------------------------------------------------------------- */ - - /** - * Set the user normal. - * This normal take precedence on the handleNormal and the widgetNormal. - * This normal should not be set within the widget internal code. - * @param {Vector3} normal The normal coordinate. - */ - setUserNormal(normal: Vector3): boolean; - - /** - * Set the user normal (see setUserNormal). - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setUserNormal(x: number, y: number, z: number): boolean; - - /** - * Set the user normal (see setUserNormal). - * @param {Vector3} normal The normal coordinate. - */ - setUserNormalFrom(normal: Vector3): boolean; - - /** - * Set the user origin. - * This origin take precedence on the handleOrigin and the widgetOrigin. - * This origin should not be set within the widget internal code. - * @param {Vector3} origin The coordinate of the origin point. - */ - setUserOrigin(origin: Vector3): boolean; - - /** - * Set the user origin (see setUserOrigin). - * @param {Number} x The x coordinate of the origin point. - * @param {Number} y The y coordinate of the origin point. - * @param {Number} z The z coordinate of the origin point. - */ - setUserOrigin(x: number, y: number, z: number): boolean; - - /** - * Set the user origin (see setUserOrigin). - * @param {Vector3} origin The coordinate of the origin point. - */ - setUserOriginFrom(origin: Vector3): boolean; - - /* ------------------------------------------------------------------- */ - - /** - * Set the handle normal. - * This normal is used after the userNormal and before the widgetNormal. - * This normal is automatically set by any state having a manipulatorMixin, - * and can be overridden in the widget code. - * @param {Vector3} normal The normal coordinate. - */ - setHandleNormal(normal: Vector3): boolean; - - /** - * Set the handle normal (see setHandleNormal). - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setHandleNormal(x: number, y: number, z: number): boolean; - - /** - * Set the handle normal (see setHandleNormal). - * @param {Vector3} normal The normal coordinate. - */ - setHandleNormalFrom(normal: Vector3): boolean; - - /** - * Set the handle origin. - * This origin is used after the userOrigin and before the widgetOrigin. - * This origin is automatically set by any state having a manipulatorMixin, - * and can be overridden in the widget code. - * @param {Vector3} origin The coordinate of the origin point. - */ - setHandleOrigin(origin: Vector3): boolean; - - /** - * Set the handle origin (see setHandleOrigin). - * @param {Number} x The x coordinate of the origin point. - * @param {Number} y The y coordinate of the origin point. - * @param {Number} z The z coordinate of the origin point. - */ - setHandleOrigin(x: number, y: number, z: number): boolean; - - /** - * Set the handle origin (see setHandleOrigin). - * @param {Vector3} origin The coordinate of the origin point. - */ - setHandleOriginFrom(origin: Vector3): boolean; - - /* ------------------------------------------------------------------- */ - - /** - * Set the widget normal. - * This normal is used if no other normals are set. - * It can be used to define a normal global to the whole widget. - * @param {Vector3} normal The normal coordinate. - */ - setWidgetNormal(normal: Vector3): boolean; - - /** - * Set the widget normal (see setWidgetNormal). - * @param {Number} x The x coordinate. - * @param {Number} y The y coordinate. - * @param {Number} z The z coordinate. - */ - setWidgetNormal(x: number, y: number, z: number): boolean; - - /** - * Set the widget normal (see setWidgetNormal). - * @param {Vector3} normal The normal coordinate. - */ - setWidgetNormalFrom(normal: Vector3): boolean; - - /** - * Set the widget origin. - * This origin is used if no other origins are set. - * It can be used to define an origin global to the whole widget. - * @param {Vector3} origin The coordinate of the origin point. - */ - setWidgetOrigin(origin: Vector3): boolean; - - /** - * Set the widget origin (see setWidgetOrigin). - * @param {Number} x The x coordinate of the origin point. - * @param {Number} y The y coordinate of the origin point. - * @param {Number} z The z coordinate of the origin point. - */ - setWidgetOrigin(x: number, y: number, z: number): boolean; - - /** - * Set the widget origin (see setWidgetOrigin). - * @param {Vector3} origin The coordinate of the origin point. - */ - setWidgetOriginFrom(origin: Vector3): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkAbstractManipulator characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IAbstractManipulatorInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IAbstractManipulatorInitialValues -): void; - -/** - * Method use to create a new instance of vtkAbstractManipulator - */ -export function newInstance( - initialValues?: IAbstractManipulatorInitialValues -): vtkAbstractManipulator; - -/** - * vtkAbstractManipulator. - */ -export declare const vtkAbstractManipulator: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkAbstractManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/AbstractManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/AbstractManipulator.js deleted file mode 100644 index 51684029..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/AbstractManipulator.js +++ /dev/null @@ -1,83 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { s as subtract } from '../../Common/Core/Math/index.js'; - -// ---------------------------------------------------------------------------- -// vtkAbstractManipulator methods -// ---------------------------------------------------------------------------- - -function vtkAbstractManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkAbstractManipulator'); - model._prevWorldCoords = []; - publicAPI.getOrigin = callData => { - if (model.userOrigin) return model.userOrigin; - if (model.useCameraFocalPoint) return callData.pokedRenderer.getActiveCamera().getFocalPoint(); - if (model.handleOrigin) return model.handleOrigin; - if (model.widgetOrigin) return model.widgetOrigin; - return [0, 0, 0]; - }; - publicAPI.getNormal = callData => { - if (model.userNormal) return model.userNormal; - if (model.useCameraNormal) return callData.pokedRenderer.getActiveCamera().getDirectionOfProjection(); - if (model.handleNormal) return model.handleNormal; - if (model.widgetNormal) return model.widgetNormal; - return [0, 0, 1]; - }; - model._computeDeltaFromPrevCoords = curWorldCoords => { - if (!model._prevWorldCoords?.length || !curWorldCoords?.length) return [0, 0, 0]; - return subtract(curWorldCoords, model._prevWorldCoords, []); - }; - model._addWorldDeltas = manipulatorResults => { - const { - worldCoords: curWorldCoords - } = manipulatorResults; - const worldDelta = model._computeDeltaFromPrevCoords(curWorldCoords); - if (curWorldCoords) model._prevWorldCoords = curWorldCoords; - const deltas = { - worldDelta - }; - return { - ...manipulatorResults, - ...deltas - }; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - // userOrigin: null, - // handleOrigin: null, - // widgetOrigin: null, - // userNormal: null, - // handleNormal: null, - // widgetNormal: null - useCameraFocalPoint: false, - useCameraNormal: false -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - macro.obj(publicAPI, model); - macro.setGet(publicAPI, model, ['useCameraFocalPoint', 'useCameraNormal']); - macro.setGetArray(publicAPI, model, ['userOrigin', 'handleOrigin', 'widgetOrigin', 'userNormal', 'handleNormal', 'widgetNormal'], 3); - vtkAbstractManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkAbstractManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkAbstractManipulator$1 = { - extend, - newInstance -}; - -export { vtkAbstractManipulator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/CPRManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/CPRManipulator.js deleted file mode 100644 index 50a6dc7c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/CPRManipulator.js +++ /dev/null @@ -1,122 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPlane from '../../Common/DataModel/Plane.js'; -import vtkAbstractManipulator from './AbstractManipulator.js'; -import { mat4, vec3, mat3 } from 'gl-matrix'; - -function intersectDisplayWithPlane(x, y, planeOrigin, planeNormal, renderer, glRenderWindow) { - const near = glRenderWindow.displayToWorld(x, y, 0, renderer); - const far = glRenderWindow.displayToWorld(x, y, 1, renderer); - return vtkPlane.intersectWithLine(near, far, planeOrigin, planeNormal).x; -} - -// ---------------------------------------------------------------------------- -// vtkCPRManipulator methods -// ---------------------------------------------------------------------------- - -function vtkCPRManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCPRManipulator'); - publicAPI.handleEvent = (callData, glRenderWindow) => { - const mapper = model.cprActor?.getMapper(); - if (!mapper) { - return model._addWorldDeltas({ - worldCoords: null - }); - } - - // Get normal and origin of the picking plane from the actor matrix - const cprActorMatrix = []; - mat4.transpose(cprActorMatrix, model.cprActor.getMatrix()); - const worldPlaneNormal = cprActorMatrix.slice(8, 11); // 3rd column - const worldPlaneOrigin = cprActorMatrix.slice(12, 15); // 4th column - - // Convert world plane position to 2D position in the plane - const inversecprActorMatrix = []; - mat4.invert(inversecprActorMatrix, cprActorMatrix); - const worldPlanePicking = intersectDisplayWithPlane(callData.position.x, callData.position.y, worldPlaneOrigin, worldPlaneNormal, callData.pokedRenderer, glRenderWindow); - const modelPlanePicking = []; // (x, height - distance, 0) - vec3.transformMat4(modelPlanePicking, worldPlanePicking, inversecprActorMatrix); - const height = mapper.getHeight(); - const distance = height - modelPlanePicking[1]; - return model._addWorldDeltas(publicAPI.distanceEvent(distance)); - }; - publicAPI.distanceEvent = distance => { - const mapper = model.cprActor?.getMapper(); - if (!mapper) { - return { - worldCoords: null - }; - } - const height = mapper.getHeight(); - const clampedDistance = Math.max(0, Math.min(height, distance)); - const { - position, - orientation - } = mapper.getCenterlinePositionAndOrientation(clampedDistance); - let worldDirection; - if (orientation) { - const modelDirections = mat3.fromQuat([], orientation); - const baseDirections = mapper.getDirectionMatrix(); - worldDirection = mat3.mul([], modelDirections, baseDirections); - } - model.currentDistance = clampedDistance; - return { - worldCoords: position, - worldDirection - }; - }; - publicAPI.handleScroll = nbSteps => { - const distance = model.currentDistance + publicAPI.getDistanceStep() * nbSteps; - return publicAPI.distanceEvent(distance); - }; - publicAPI.getDistanceStep = () => { - // Find default distanceStep from image spacing - // This only works if the mapper in the actor already has an ImageData - if (!model.distanceStep) { - const imageSpacing = model.cprActor?.getMapper()?.getInputData(0)?.getSpacing?.(); - if (imageSpacing) { - return Math.min(...imageSpacing); - } - } - return model.distanceStep; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -// currentDistance is the distance from the first point of the centerline -// cprActor.getMapper() should be a vtkImageCPRMapper -function defaultValues(initialValues) { - return { - distanceStep: 0, - currentDistance: 0, - cprActor: null, - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - vtkAbstractManipulator.extend(publicAPI, model, defaultValues(initialValues)); - macro.setGet(publicAPI, model, ['distance', 'currentDistance', 'cprActor']); - macro.set(publicAPI, model, ['distanceStep']); - vtkCPRManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCPRManipulator'); - -// ---------------------------------------------------------------------------- - -var index = { - intersectDisplayWithPlane, - extend, - newInstance -}; - -export { index as default, extend, intersectDisplayWithPlane, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/LineManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/LineManipulator.d.ts deleted file mode 100644 index d1b69c40..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/LineManipulator.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { - IAbstractManipulatorInitialValues, - vtkAbstractManipulator, -} from './AbstractManipulator'; -import { Vector3 } from './../../types'; - -/** - * - */ -export interface ILineManipulatorInitialValues - extends IAbstractManipulatorInitialValues {} - -export interface vtkLineManipulator extends vtkAbstractManipulator {} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkLineManipulator characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ILineManipulatorInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ILineManipulatorInitialValues -): void; - -/** - * Method use to create a new instance of vtkLineManipulator - */ -export function newInstance( - initialValues?: ILineManipulatorInitialValues -): vtkLineManipulator; - -/** - * - * @param {Number} x - * @param {Number} y - * @param {Vector3} lineOrigin - * @param {Vector3} lineDirection - * @param renderer - * @param glRenderWindow - */ -export function projectDisplayToLine( - x: number, - y: number, - lineOrigin: Vector3, - lineDirection: Vector3, - renderer: any, - glRenderWindow: any -): Vector3; - -/** - * vtkLineManipulator. - */ -export declare const vtkLineManipulator: { - newInstance: typeof newInstance; - extend: typeof extend; - projectDisplayToLine: typeof projectDisplayToLine; -}; -export default vtkLineManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/LineManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/LineManipulator.js deleted file mode 100644 index 35b6a712..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/LineManipulator.js +++ /dev/null @@ -1,74 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { d as dot, s as subtract, j as cross, x as multiplyScalar, k as add } from '../../Common/Core/Math/index.js'; -import vtkAbstractManipulator from './AbstractManipulator.js'; -import { EPSILON } from '../../Common/Core/Math/Constants.js'; - -function projectDisplayToLine(x, y, lineOrigin, lineDirection, renderer, glRenderWindow) { - // if the active camera viewPlaneNormal and line direction are parallel, no change is allowed - const dotProduct = Math.abs(dot(renderer.getActiveCamera().getViewPlaneNormal(), lineDirection)); - if (1 - dotProduct < EPSILON) { - return []; - } - const near = glRenderWindow.displayToWorld(x, y, 0, renderer); - const far = glRenderWindow.displayToWorld(x, y, 1, renderer); - const viewDir = [0, 0, 0]; - subtract(far, near, viewDir); - const normal = [0, 0, 0]; - cross(lineDirection, viewDir, normal); - cross(normal, viewDir, normal); - const numerator = dot([near[0] - lineOrigin[0], near[1] - lineOrigin[1], near[2] - lineOrigin[2]], normal); - const denominator = dot(normal, lineDirection); - const result = lineDirection.slice(); - if (denominator === 0) { - // no change is allowed - multiplyScalar(result, 0); - } else { - multiplyScalar(result, numerator / denominator); - } - add(lineOrigin, result, result); - return result; -} - -// ---------------------------------------------------------------------------- -// vtkLineManipulator methods -// ---------------------------------------------------------------------------- - -function vtkLineManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkLineManipulator'); - publicAPI.handleEvent = (callData, glRenderWindow) => model._addWorldDeltas({ - worldCoords: projectDisplayToLine(callData.position.x, callData.position.y, publicAPI.getOrigin(callData), publicAPI.getNormal(callData), callData.pokedRenderer, glRenderWindow) - }); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - return { - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - vtkAbstractManipulator.extend(publicAPI, model, defaultValues(initialValues)); - vtkLineManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkLineManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkLineManipulator$1 = { - projectDisplayToLine, - extend, - newInstance -}; - -export { vtkLineManipulator$1 as default, extend, newInstance, projectDisplayToLine }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/PickerManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/PickerManipulator.d.ts deleted file mode 100644 index 8fa2e136..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/PickerManipulator.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { - IAbstractManipulatorInitialValues, - vtkAbstractManipulator, -} from './AbstractManipulator'; -import vtkPicker from './../../Rendering/Core/Picker'; - -/** - * - */ -export interface IPickerManipulatorInitialValues - extends IAbstractManipulatorInitialValues {} - -export interface vtkPickerManipulator extends vtkAbstractManipulator { - /** - * - */ - getPicker(): vtkPicker; - - /** - * - */ - setPicker(picker: vtkPicker): void; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkPickerManipulator characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPickerManipulatorInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPickerManipulatorInitialValues -): void; - -/** - * Method use to create a new instance of vtkPickerManipulator - */ -export function newInstance( - initialValues?: IPickerManipulatorInitialValues -): vtkPickerManipulator; - -/** - * vtkPickerManipulator. - */ -export declare const vtkPickerManipulator: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkPickerManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/PickerManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/PickerManipulator.js deleted file mode 100644 index dfdc1aa6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/PickerManipulator.js +++ /dev/null @@ -1,67 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCellPicker from '../../Rendering/Core/CellPicker.js'; -import vtkAbstractManipulator from './AbstractManipulator.js'; - -// ---------------------------------------------------------------------------- -// vtkPickerManipulator methods -// ---------------------------------------------------------------------------- - -function vtkPickerManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPickerManipulator'); - publicAPI.handleEvent = callData => { - const { - position, - pokedRenderer - } = callData; - model.picker.pick([position.x, position.y, 0.0], pokedRenderer); - if (model.picker.getPickedPositions().length > 0) { - model.position = model.picker.getPickedPositions()[0]; - } else { - model.position = null; - } - return model._addWorldDeltas({ - worldCoords: model.position - }); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - if (!initialValues.picker) { - // Default picker - const picker = vtkCellPicker.newInstance(); - picker.initializePickList(); - picker.setPickFromList(true); - picker.setTolerance(0); - initialValues.picker = picker; - } - return { - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - vtkAbstractManipulator.extend(publicAPI, model, defaultValues(initialValues)); - macro.setGet(publicAPI, model, ['picker']); - vtkPickerManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPickerManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkPickerManipulator$1 = { - extend, - newInstance -}; - -export { vtkPickerManipulator$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/PlaneManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/PlaneManipulator.d.ts deleted file mode 100644 index 50fade22..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/PlaneManipulator.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { - IAbstractManipulatorInitialValues, - vtkAbstractManipulator, -} from './AbstractManipulator'; -import { Vector3 } from './../../types'; - -/** - * - */ -export interface IPlaneManipulatorInitialValues - extends IAbstractManipulatorInitialValues {} - -export interface vtkPlaneManipulator extends vtkAbstractManipulator {} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkPlaneManipulator characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IPlaneManipulatorInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IPlaneManipulatorInitialValues -): void; - -/** - * Method use to create a new instance of vtkPlaneManipulator - */ -export function newInstance( - initialValues?: IPlaneManipulatorInitialValues -): vtkPlaneManipulator; - -/** - * - * @param {Number} x - * @param {Number} y - * @param {Vector3} planeOrigin - * @param {Vector3} planeNormal - * @param renderer - * @param glRenderWindow - */ -export function intersectDisplayWithPlane( - x: number, - y: number, - planeOrigin: Vector3, - planeNormal: Vector3, - renderer: any, - glRenderWindow: any -): Vector3; - -/** - * vtkPlaneManipulator. - */ -export declare const vtkPlaneManipulator: { - newInstance: typeof newInstance; - extend: typeof extend; - intersectDisplayWithPlane: typeof intersectDisplayWithPlane; -}; -export default vtkPlaneManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/PlaneManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/PlaneManipulator.js deleted file mode 100644 index 3ea12900..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/PlaneManipulator.js +++ /dev/null @@ -1,53 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPlane from '../../Common/DataModel/Plane.js'; -import vtkAbstractManipulator from './AbstractManipulator.js'; - -function intersectDisplayWithPlane(x, y, planeOrigin, planeNormal, renderer, glRenderWindow) { - const near = glRenderWindow.displayToWorld(x, y, 0, renderer); - const far = glRenderWindow.displayToWorld(x, y, 1, renderer); - return vtkPlane.intersectWithLine(near, far, planeOrigin, planeNormal).x; -} - -// ---------------------------------------------------------------------------- -// vtkPlaneManipulator methods -// ---------------------------------------------------------------------------- - -function vtkPlaneManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPlaneManipulator'); - publicAPI.handleEvent = (callData, glRenderWindow) => model._addWorldDeltas({ - worldCoords: intersectDisplayWithPlane(callData.position.x, callData.position.y, publicAPI.getOrigin(callData), publicAPI.getNormal(callData), callData.pokedRenderer, glRenderWindow) - }); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - return { - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - vtkAbstractManipulator.extend(publicAPI, model, defaultValues(initialValues)); - vtkPlaneManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPlaneManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkPlaneManipulator$1 = { - intersectDisplayWithPlane, - extend, - newInstance -}; - -export { vtkPlaneManipulator$1 as default, extend, intersectDisplayWithPlane, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/TrackballManipulator.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/TrackballManipulator.d.ts deleted file mode 100644 index 2d5d9a7b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/TrackballManipulator.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { - IAbstractManipulatorInitialValues, - vtkAbstractManipulator, -} from './AbstractManipulator'; -import { Vector3 } from './../../types'; - -/** - * - */ -export interface ITrackballManipulatorInitialValues - extends IAbstractManipulatorInitialValues {} - -export interface vtkTrackballManipulator extends vtkAbstractManipulator { - /** - * - */ - reset(callData: any): void; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkTrackballManipulator characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {ITrackballManipulatorInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: ITrackballManipulatorInitialValues -): void; - -/** - * Method use to create a new instance of vtkTrackballManipulator - */ -export function newInstance( - initialValues?: ITrackballManipulatorInitialValues -): vtkTrackballManipulator; - -/** - * - * @param {Number} prevX - * @param {Number} prevY - * @param {Number} curX - * @param {Number} curY - * @param {Vector3} origin - * @param {Vector3} direction - * @param renderer - * @param glRenderWindow - */ -export function trackballRotate( - prevX: number, - prevY: number, - curX: number, - curY: number, - origin: Vector3, - direction: Vector3, - renderer: any, - glRenderWindow: any -): void; - -/** - * vtkTrackballManipulator. - */ -export declare const vtkTrackballManipulator: { - newInstance: typeof newInstance; - extend: typeof extend; - trackballRotate: typeof trackballRotate; -}; -export default vtkTrackballManipulator; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/TrackballManipulator.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/TrackballManipulator.js deleted file mode 100644 index 90756601..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Manipulators/TrackballManipulator.js +++ /dev/null @@ -1,79 +0,0 @@ -import { mat4, vec3 } from 'gl-matrix'; -import { m as macro } from '../../macros2.js'; -import { j as cross, r as radiansFromDegrees } from '../../Common/Core/Math/index.js'; -import vtkAbstractManipulator from './AbstractManipulator.js'; - -function trackballRotate(prevX, prevY, curX, curY, origin, direction, renderer, glRenderWindow) { - const dx = curX - prevX; - const dy = curY - prevY; - const camera = renderer.getActiveCamera(); - const viewUp = camera.getViewUp(); - const dop = camera.getDirectionOfProjection(); - const size = renderer.getRenderWindow().getInteractor().getView().getViewportSize(renderer); - const xdeg = 360.0 * dx / size[0]; - const ydeg = 360.0 * dy / size[1]; - const newDirection = new Float64Array([direction[0], direction[1], direction[2]]); - const xDisplayAxis = viewUp; - const yDisplayAxis = [0, 0, 0]; - cross(dop, viewUp, yDisplayAxis); - const rot = mat4.identity(new Float64Array(16)); - mat4.rotate(rot, rot, radiansFromDegrees(xdeg), xDisplayAxis); - mat4.rotate(rot, rot, radiansFromDegrees(-ydeg), yDisplayAxis); - vec3.transformMat4(newDirection, newDirection, rot); - return newDirection; -} - -// ---------------------------------------------------------------------------- -// vtkTrackballManipulator methods -// ---------------------------------------------------------------------------- - -function vtkTrackballManipulator(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkTrackballManipulator'); - let prevX = 0; - let prevY = 0; - publicAPI.handleEvent = (callData, glRenderWindow) => { - const newDirection = trackballRotate(prevX, prevY, callData.position.x, callData.position.y, publicAPI.getOrigin(callData), publicAPI.getNormal(callData), callData.pokedRenderer); - prevX = callData.position.x; - prevY = callData.position.y; - return model._addWorldDeltas({ - worldCoords: newDirection - }); - }; - publicAPI.reset = callData => { - prevX = callData.position.x; - prevY = callData.position.y; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - return { - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - vtkAbstractManipulator.extend(publicAPI, model, defaultValues(initialValues)); - vtkTrackballManipulator(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkTrackballManipulator'); - -// ---------------------------------------------------------------------------- - -var vtkTrackballManipulator$1 = { - trackballRotate, - extend, - newInstance -}; - -export { vtkTrackballManipulator$1 as default, extend, newInstance, trackballRotate }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations.js deleted file mode 100644 index 5749d54a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations.js +++ /dev/null @@ -1,37 +0,0 @@ -import vtkCircleContextRepresentation from './Representations/CircleContextRepresentation.js'; -import vtkContextRepresentation from './Representations/ContextRepresentation.js'; -import vtkConvexFaceContextRepresentation from './Representations/ConvexFaceContextRepresentation.js'; -import vtkCubeHandleRepresentation from './Representations/CubeHandleRepresentation.js'; -import vtkGlyphRepresentation from './Representations/GlyphRepresentation.js'; -import vtkHandleRepresentation from './Representations/HandleRepresentation.js'; -import vtkImplicitPlaneRepresentation from './Representations/ImplicitPlaneRepresentation.js'; -import vtkLineHandleRepresentation from './Representations/LineHandleRepresentation.js'; -import vtkOutlineContextRepresentation from './Representations/OutlineContextRepresentation.js'; -import vtkPolyLineRepresentation from './Representations/PolyLineRepresentation.js'; -import vtkRotateTransformHandleRepresentation from './Representations/RotateTransformHandleRepresentation.js'; -import vtkScaleTransformHandleRepresentation from './Representations/ScaleTransformHandleRepresentation.js'; -import vtkSphereHandleRepresentation from './Representations/SphereHandleRepresentation.js'; -import vtkSplineContextRepresentation from './Representations/SplineContextRepresentation.js'; -import vtkTranslateTransformHandleRepresentation from './Representations/TranslateTransformHandleRepresentation.js'; -import vtkWidgetRepresentation from './Representations/WidgetRepresentation.js'; - -var Representations = { - vtkCircleContextRepresentation, - vtkContextRepresentation, - vtkConvexFaceContextRepresentation, - vtkCubeHandleRepresentation, - vtkGlyphRepresentation, - vtkHandleRepresentation, - vtkImplicitPlaneRepresentation, - vtkLineHandleRepresentation, - vtkOutlineContextRepresentation, - vtkPolyLineRepresentation, - vtkRotateTransformHandleRepresentation, - vtkScaleTransformHandleRepresentation, - vtkSphereHandleRepresentation, - vtkSplineContextRepresentation, - vtkTranslateTransformHandleRepresentation, - vtkWidgetRepresentation -}; - -export { Representations as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/ArrowHandleRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/ArrowHandleRepresentation.js deleted file mode 100644 index 115bc688..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/ArrowHandleRepresentation.js +++ /dev/null @@ -1,298 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkActor from '../../Rendering/Core/Actor.js'; -import vtkArrow2DSource from '../../Filters/Sources/Arrow2DSource.js'; -import vtkGlyphRepresentation from './GlyphRepresentation.js'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; -import vtkPixelSpaceCallbackMapper from '../../Rendering/Core/PixelSpaceCallbackMapper.js'; -import vtkConeSource from '../../Filters/Sources/ConeSource.js'; -import vtkSphereSource from '../../Filters/Sources/SphereSource.js'; -import vtkCircleSource from '../../Filters/Sources/CircleSource.js'; -import vtkCubeSource from '../../Filters/Sources/CubeSource.js'; -import vtkViewFinderSource from '../../Filters/Sources/ViewFinderSource.js'; -import Constants from '../Widgets3D/LineWidget/Constants.js'; -import { mat4, mat3, vec3 } from 'gl-matrix'; -import { RenderingTypes } from '../Core/WidgetManager/Constants.js'; -import { OrientationModes } from '../../Rendering/Core/Glyph3DMapper/Constants.js'; -import { allocateArray } from './WidgetRepresentation.js'; - -const { - ShapeType, - Shapes2D, - ShapesOrientable -} = Constants; - -// ---------------------------------------------------------------------------- -// vtkArrowHandleRepresentation methods -// ---------------------------------------------------------------------------- - -function vtkArrowHandleRepresentation(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkArrowHandleRepresentation'); - const superClass = { - ...publicAPI - }; - // -------------------------------------------------------------------------- - // Internal polydata dataset - // -------------------------------------------------------------------------- - - /** - * Set the shape for the glyph according to lineWidget state inputs - */ - function createGlyph(shape) { - const representationToSource = { - [ShapeType.STAR]: { - builder: vtkArrow2DSource, - initialValues: { - shape: 'star', - height: 0.6 - } - }, - [ShapeType.ARROWHEAD3]: { - builder: vtkArrow2DSource, - initialValues: { - shape: 'triangle' - } - }, - [ShapeType.ARROWHEAD4]: { - builder: vtkArrow2DSource, - initialValues: { - shape: 'arrow4points' - } - }, - [ShapeType.ARROWHEAD6]: { - builder: vtkArrow2DSource, - initialValues: { - shape: 'arrow6points' - } - }, - [ShapeType.CONE]: { - builder: vtkConeSource, - initialValues: { - direction: [0, 1, 0] - } - }, - [ShapeType.SPHERE]: { - builder: vtkSphereSource - }, - [ShapeType.CUBE]: { - builder: vtkCubeSource, - initialValues: { - xLength: 0.8, - yLength: 0.8, - zLength: 0.8 - } - }, - [ShapeType.DISK]: { - builder: vtkCircleSource, - initialValues: { - resolution: 30, - radius: 0.5, - direction: [0, 0, 1], - lines: false, - face: true - } - }, - [ShapeType.CIRCLE]: { - builder: vtkCircleSource, - initialValues: { - resolution: 30, - radius: 0.5, - direction: [0, 0, 1], - lines: true, - face: false - } - }, - [ShapeType.VIEWFINDER]: { - builder: vtkViewFinderSource, - initialValues: { - radius: 0.1, - spacing: 0.3, - width: 1.4 - } - }, - [ShapeType.NONE]: { - builder: vtkSphereSource - } - }; - const rep = representationToSource[shape]; - return rep.builder.newInstance(rep.initialValues); - } - - // -------------------------------------------------------------------------- - // Generic rendering pipeline - // -------------------------------------------------------------------------- - - // displayActors and displayMappers are used to render objects in HTML, - // allowing objects to be 'rendered' internally in a VTK scene without - // being visible on the final output. - model.displayMapper = vtkPixelSpaceCallbackMapper.newInstance(); - model.displayActor = vtkActor.newInstance({ - parentProp: publicAPI - }); - // model.displayActor.getProperty().setOpacity(0); // don't show in 3D - model.displayActor.setMapper(model.displayMapper); - model.displayMapper.setInputConnection(publicAPI.getOutputPort()); - publicAPI.addActor(model.displayActor); - model.alwaysVisibleActors = [model.displayActor]; - - // -------------------------------------------------------------------------- - - publicAPI.setGlyphResolution = macro.chain(publicAPI.setGlyphResolution, r => model._pipeline.glyph.setPhiResolution(r), r => model._pipeline.glyph.setThetaResolution(r)); - - // -------------------------------------------------------------------------- - - function callbackProxy(coords) { - if (model.displayCallback) { - const filteredList = []; - const states = publicAPI.getRepresentationStates(); - for (let i = 0; i < states.length; i++) { - if (states[i].getActive()) { - filteredList.push(coords[i]); - } - } - if (filteredList.length) { - model.displayCallback(filteredList); - return; - } - } - model.displayCallback(); - } - publicAPI.setDisplayCallback = callback => { - model.displayCallback = callback; - model.displayMapper.setCallback(callback ? callbackProxy : null); - }; - - // -------------------------------------------------------------------------- - - publicAPI.is2DShape = () => Shapes2D.includes(model.shape); - publicAPI.isOrientableShape = () => ShapesOrientable.includes(model.shape); - - /** - * Returns the orientation matrix to align glyph on model.orientation. - * */ - function getOrientationRotation(viewMatrixInv) { - const displayOrientation = new Float64Array(3); - const baseDir = [0, 1, 0]; - vec3.transformMat3(displayOrientation, model.orientation, viewMatrixInv); - displayOrientation[2] = 0; - const displayMatrix = vtkMatrixBuilder.buildFromDegree().rotateFromDirections(baseDir, displayOrientation).getMatrix(); - const displayRotation = new Float64Array(9); - mat3.fromMat4(displayRotation, displayMatrix); - return displayRotation; - } - function getCameraFacingRotation(scale3, displayRotation, viewMatrix) { - const rotation = new Float64Array(9); - mat3.multiply(rotation, viewMatrix, displayRotation); - vec3.transformMat3(scale3, scale3, rotation); - return rotation; - } - - /** - * Computes the rotation matrix of the glyph. There are 2 rotations: - * - a first rotation to be oriented along model.rotation - * - an optional second rotation to face the camera - * @param {vec3} scale3 Scale of the glyph, rotated when glyph is rotated. - */ - function getGlyphRotation(scale3) { - const shouldFaceCamera = model.faceCamera === true || model.faceCamera == null && publicAPI.is2DShape(); - const viewMatrix = new Float64Array(9); - mat3.fromMat4(viewMatrix, model.viewMatrix); - const viewMatrixInv = mat3.identity(new Float64Array(9)); - if (shouldFaceCamera) { - mat3.invert(viewMatrixInv, viewMatrix); - } - let orientationRotation = null; - if (publicAPI.isOrientableShape()) { - orientationRotation = getOrientationRotation(viewMatrixInv); - } else { - orientationRotation = mat3.identity(new Float64Array(9)); - } - if (shouldFaceCamera) { - orientationRotation = getCameraFacingRotation(scale3, orientationRotation, viewMatrix); - } - return orientationRotation; - } - function applyOrientation(polyData, states) { - model._pipeline.mapper.setOrientationArray('orientation'); - model._pipeline.mapper.setOrientationMode(OrientationModes.MATRIX); - const orientation = allocateArray(polyData, 'orientation', states.length, 'Float32Array', 9).getData(); - const defaultScale3 = [1, 1, 1]; - for (let i = 0; i < states.length; ++i) { - const scale3 = states[i].getScale3?.() ?? defaultScale3; - const rotation = getGlyphRotation(scale3); - orientation.set(rotation, 9 * i); - } - } - publicAPI.setDirection(applyOrientation); - publicAPI.setNoOrientation(applyOrientation); - publicAPI.requestData = (inData, outData) => { - // FIXME: shape should NOT be mixin, but a representation property. - const shape = publicAPI.getRepresentationStates(inData[0])[0]?.getShape(); - let shouldCreateGlyph = model._pipeline.glyph == null; - if (model.shape !== shape && Object.values(ShapeType).includes(shape)) { - model.shape = shape; - shouldCreateGlyph = true; - } - if (shouldCreateGlyph && model.shape) { - model._pipeline.glyph = createGlyph(model.shape); - model._pipeline.mapper.setInputConnection(model._pipeline.glyph.getOutputPort(), 1); - } - return superClass.requestData(inData, outData); - }; - publicAPI.updateActorVisibility = function () { - let renderingType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : RenderingTypes.FRONT_BUFFER; - let ctxVisible = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - let handleVisible = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - const hasValidState = publicAPI.getRepresentationStates().length > 0; - superClass.updateActorVisibility(renderingType, ctxVisible, handleVisible && hasValidState); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -/** - * 'shape' default value is used first time 'shape' mixin is invalid. - * 'faceCamera' controls wether the glyph should face camera or not: - * - null or undefined to leave it to shape type (i.e. 2D are facing camera, - * 3D are not) - * - true to face camera - * - false to not face camera - */ -function defaultValues(initialValues) { - return { - faceCamera: null, - orientation: [1, 0, 0], - shape: ShapeType.SPHERE, - viewMatrix: mat4.identity(new Float64Array(16)), - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - vtkGlyphRepresentation.extend(publicAPI, model, initialValues); - macro.setGetArray(publicAPI, model, ['visibilityFlagArray'], 2); - macro.setGetArray(publicAPI, model, ['orientation'], 3); - macro.setGetArray(publicAPI, model, ['viewMatrix'], 16); - macro.setGet(publicAPI, model, ['faceCamera']); - // Object specific methods - vtkArrowHandleRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkArrowHandleRepresentation'); - -// ---------------------------------------------------------------------------- - -var vtkArrowHandleRepresentation$1 = { - newInstance, - extend -}; - -export { vtkArrowHandleRepresentation$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/CircleContextRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/CircleContextRepresentation.js deleted file mode 100644 index 2a7e0c19..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/CircleContextRepresentation.js +++ /dev/null @@ -1,90 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCircleSource from '../../Filters/Sources/CircleSource.js'; -import vtkGlyphRepresentation from './GlyphRepresentation.js'; -import { Behavior } from './WidgetRepresentation/Constants.js'; -import '../../Rendering/Core/Mapper/CoincidentTopologyHelper.js'; -import { Resolve } from '../../Rendering/Core/Mapper/Static.js'; - -// ---------------------------------------------------------------------------- -// vtkCircleContextRepresentation methods -// ---------------------------------------------------------------------------- - -function vtkCircleContextRepresentation(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCircleContextRepresentation'); - - // -------------------------------------------------------------------------- - // Generic rendering pipeline - // -------------------------------------------------------------------------- - - model._pipeline.actor.getProperty().setOpacity(0.2); - model._pipeline.mapper.setResolveCoincidentTopology(Resolve.PolygonOffset); - model._pipeline.mapper.setRelativeCoincidentTopologyPolygonOffsetParameters(-1, -1); - - // -------------------------------------------------------------------------- - - publicAPI.setGlyphResolution = macro.chain(publicAPI.setGlyphResolution, model._pipeline.glyph.setResolution); - - // -------------------------------------------------------------------------- - - publicAPI.setDrawBorder = macro.chain(publicAPI.setDrawBorder, draw => model._pipeline.glyph.setLines(draw)); - - // -------------------------------------------------------------------------- - - publicAPI.setDrawFace = macro.chain(publicAPI.setDrawFace, draw => model._pipeline.glyph.setFace(draw)); - - // -------------------------------------------------------------------------- - - publicAPI.setOpacity = opacity => { - model._pipeline.actor.getProperty().setOpacity(opacity); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - return { - behavior: Behavior.CONTEXT, - glyphResolution: 32, - drawBorder: false, - drawFace: true, - ...initialValues, - _pipeline: { - glyph: initialValues?.pipeline?.glyph ?? vtkCircleSource.newInstance({ - resolution: initialValues.glyphResolution ?? 32, - radius: 1, - lines: initialValues.drawBorder ?? false, - face: initialValues.drawFace ?? true, - direction: [0, 0, 1] - }), - ...initialValues?.pipeline - } - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - vtkGlyphRepresentation.extend(publicAPI, model, defaultValues(initialValues)); - macro.setGet(publicAPI, model, ['glyphResolution', 'drawFace', 'drawBorder']); - macro.get(publicAPI, model._pipeline, ['glyph', 'mapper', 'actor']); - - // Object specific methods - vtkCircleContextRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCircleContextRepresentation'); - -// ---------------------------------------------------------------------------- - -var vtkCircleContextRepresentation$1 = { - newInstance, - extend -}; - -export { vtkCircleContextRepresentation$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/ContextRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/ContextRepresentation.js deleted file mode 100644 index 3fec49b4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/ContextRepresentation.js +++ /dev/null @@ -1,40 +0,0 @@ -import vtkWidgetRepresentation from './WidgetRepresentation.js'; -import { Behavior } from './WidgetRepresentation/Constants.js'; - -// ---------------------------------------------------------------------------- -// vtkWidgetRepresentation -// ---------------------------------------------------------------------------- - -function vtkContextRepresentation(publicAPI, model) { - model.classHierarchy.push('vtkContextRepresentation'); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - behavior: Behavior.CONTEXT, - pickable: false, - dragable: true -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - const newDefault = { - ...DEFAULT_VALUES, - ...initialValues - }; - vtkWidgetRepresentation.extend(publicAPI, model, newDefault); - vtkContextRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -var vtkContextRepresentation$1 = { - extend -}; - -export { vtkContextRepresentation$1 as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/ConvexFaceContextRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/ConvexFaceContextRepresentation.js deleted file mode 100644 index 00aa51af..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/ConvexFaceContextRepresentation.js +++ /dev/null @@ -1,144 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkActor from '../../Rendering/Core/Actor.js'; -import vtkContextRepresentation from './ContextRepresentation.js'; -import vtkMapper from '../../Rendering/Core/Mapper.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import { allocateArray } from './WidgetRepresentation.js'; -import { Behavior } from './WidgetRepresentation/Constants.js'; -import { RenderingTypes } from '../Core/WidgetManager/Constants.js'; - -// ---------------------------------------------------------------------------- -// vtkPlaneHandleRepresentation methods -// ---------------------------------------------------------------------------- - -function vtkConvexFaceContextRepresentation(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkConvexFaceContextRepresentation'); - - // -------------------------------------------------------------------------- - // Internal polydata dataset - // -------------------------------------------------------------------------- - - model.internalPolyData = vtkPolyData.newInstance({ - mtime: 0 - }); - model.points = new Float32Array(3 * 4); - model.cells = new Uint8Array([4, 0, 1, 2, 3]); - model.internalPolyData.getPoints().setData(model.points, 3); - model.internalPolyData.getPolys().setData(model.cells); - function allocateSize(polyData, size) { - const points = allocateArray(polyData, 'points', size).getData(); - const oldCellsSize = polyData.getPolys().getNumberOfValues(); - const cells = allocateArray(polyData, 'polys', size + 1).getData(); - if (oldCellsSize !== cells.length) { - cells[0] = size; - for (let i = 0; i < size; i++) { - cells[i + 1] = i; - } - } - return points; - } - - // -------------------------------------------------------------------------- - // Generic rendering pipeline - // -------------------------------------------------------------------------- - - model.mapper = vtkMapper.newInstance({ - scalarVisibility: false - }); - model.actor = vtkActor.newInstance({ - parentProp: publicAPI - }); - model.actor.getProperty().setOpacity(model.opacity); - model.mapper.setInputConnection(publicAPI.getOutputPort()); - model.actor.setMapper(model.mapper); - publicAPI.addActor(model.actor); - - // -------------------------------------------------------------------------- - - publicAPI.requestData = (inData, outData) => { - const list = publicAPI.getRepresentationStates(inData[0]); - const validState = list.filter(state => state.getOrigin()); - const points = allocateSize(model.internalPolyData, validState.length); - for (let i = 0; i < validState.length; i++) { - const coords = validState[i].getOrigin(); - points[i * 3] = coords[0]; - points[i * 3 + 1] = coords[1]; - points[i * 3 + 2] = coords[2]; - } - model.internalPolyData.modified(); - outData[0] = model.internalPolyData; - }; - - // -------------------------------------------------------------------------- - - publicAPI.getSelectedState = (prop, compositeID) => { - const state = model.inputData[0]; - const list = publicAPI.getRepresentationStates(state); - - // Update state orientation based on face - if (state.updateFromOriginRightUp) { - state.updateFromOriginRightUp(list[0].getOrigin(), list[list.length - 1].getOrigin(), list[1].getOrigin()); - } - return state; - }; - - // -------------------------------------------------------------------------- - - const superUpdateActorVisibility = publicAPI.updateActorVisibility; - publicAPI.updateActorVisibility = function () { - let renderingType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : RenderingTypes.FRONT_BUFFER; - let ctxVisible = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - let handleVisible = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - switch (model.behavior) { - case Behavior.HANDLE: - if (renderingType === RenderingTypes.PICKING_BUFFER) { - model.actor.getProperty().setOpacity(1); - } else { - model.actor.getProperty().setOpacity(model.opacity); - } - break; - case Behavior.CONTEXT: - default: - model.actor.getProperty().setOpacity(model.opacity); - break; - } - superUpdateActorVisibility(renderingType, ctxVisible, handleVisible); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - defaultColor: [1, 0, 0.5], - opacity: 0.2 -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkContextRepresentation.extend(publicAPI, model, initialValues); - macro.setGetArray(publicAPI, model, ['defaultColor'], 3); - macro.get(publicAPI, model, ['mapper', 'actor']); - macro.setGet(publicAPI, model, ['opacity']); - - // Object specific methods - vtkConvexFaceContextRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkConvexFaceContextRepresentation'); - -// ---------------------------------------------------------------------------- - -var vtkConvexFaceContextRepresentation$1 = { - newInstance, - extend -}; - -export { vtkConvexFaceContextRepresentation$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/CroppingOutlineRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/CroppingOutlineRepresentation.js deleted file mode 100644 index 9430cb4d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/CroppingOutlineRepresentation.js +++ /dev/null @@ -1,99 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkActor from '../../Rendering/Core/Actor.js'; -import vtkContextRepresentation from './ContextRepresentation.js'; -import vtkMapper from '../../Rendering/Core/Mapper.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import { origin } from './GlyphRepresentation.js'; -import { allocateArray } from './WidgetRepresentation.js'; - -const { - vtkErrorMacro -} = macro; - -// prettier-ignore -const OUTLINE_ARRAY = [2, 0, 1, 2, 0, 2, 2, 0, 4, 2, 1, 3, 2, 1, 5, 2, 2, 3, 2, 2, 6, 2, 3, 7, 2, 4, 5, 2, 4, 6, 2, 5, 7, 2, 6, 7]; - -// ---------------------------------------------------------------------------- -// vtkCroppingOutlineRepresentation methods -// ---------------------------------------------------------------------------- - -// Represents a box outline given 8 points as corners. -// Does not work with an arbitrary set of points. An oriented bounding box -// algorithm may be implemented in the future. -function vtkCroppingOutlineRepresentation(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCroppingOutlineRepresentation'); - - // -------------------------------------------------------------------------- - // Internal polydata dataset - // -------------------------------------------------------------------------- - - model.internalPolyData = vtkPolyData.newInstance({ - mtime: 0 - }); - allocateArray(model.internalPolyData, 'lines', OUTLINE_ARRAY.length).getData().set(OUTLINE_ARRAY); - const applyOrigin = origin(publicAPI, model); - - // -------------------------------------------------------------------------- - // Generic rendering pipeline - // -------------------------------------------------------------------------- - - model.mapper = vtkMapper.newInstance({ - scalarVisibility: false - }); - model.actor = vtkActor.newInstance({ - parentProp: publicAPI - }); - model.actor.getProperty().setEdgeColor(...model.edgeColor); - model.mapper.setInputConnection(publicAPI.getOutputPort()); - model.actor.setMapper(model.mapper); - publicAPI.addActor(model.actor); - - // -------------------------------------------------------------------------- - - publicAPI.requestData = (inData, outData) => { - const list = publicAPI.getRepresentationStates(inData[0]).filter(state => state.getOrigin && state.getOrigin()); - if (list.length === 8) { - applyOrigin(model.internalPolyData, list); - model.internalPolyData.getPoints().modified(); - model.internalPolyData.modified(); - outData[0] = model.internalPolyData; - } else { - vtkErrorMacro('CroppingOutlineRepresentation did not get 8 states'); - } - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - edgeColor: [1, 1, 1] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkContextRepresentation.extend(publicAPI, model, initialValues); - macro.setGetArray(publicAPI, model, ['edgeColor'], 3); - macro.get(publicAPI, model, ['mapper', 'actor']); - - // Object specific methods - vtkCroppingOutlineRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCroppingOutlineRepresentation'); - -// ---------------------------------------------------------------------------- - -var vtkCroppingOutlineRepresentation$1 = { - newInstance, - extend -}; - -export { vtkCroppingOutlineRepresentation$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/CubeHandleRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/CubeHandleRepresentation.js deleted file mode 100644 index b0d05f8e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/CubeHandleRepresentation.js +++ /dev/null @@ -1,46 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCubeSource from '../../Filters/Sources/CubeSource.js'; -import vtkGlyphRepresentation from './GlyphRepresentation.js'; - -// ---------------------------------------------------------------------------- -// vtkCubeHandleRepresentation methods -// ---------------------------------------------------------------------------- - -function vtkCubeHandleRepresentation(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkCubeHandleRepresentation'); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -function defaultValues(initialValues) { - return { - _pipeline: { - glyph: vtkCubeSource.newInstance() - }, - ...initialValues - }; -} -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - vtkGlyphRepresentation.extend(publicAPI, model, defaultValues(initialValues)); - - // Object specific methods - vtkCubeHandleRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkCubeHandleRepresentation'); - -// ---------------------------------------------------------------------------- - -var vtkCubeHandleRepresentation$1 = { - newInstance, - extend -}; - -export { vtkCubeHandleRepresentation$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/GlyphRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/GlyphRepresentation.js deleted file mode 100644 index 22b0d52a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/GlyphRepresentation.js +++ /dev/null @@ -1,283 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkActor from '../../Rendering/Core/Actor.js'; -import vtkGlyph3DMapper from '../../Rendering/Core/Glyph3DMapper.js'; -import vtkHandleRepresentation from './HandleRepresentation.js'; -import vtkContextRepresentation from './ContextRepresentation.js'; -import vtkSphereSource from '../../Filters/Sources/SphereSource.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import { ScalarMode } from '../../Rendering/Core/Mapper/Constants.js'; -import { getPixelWorldHeightAtCoord } from '../Core/WidgetManager.js'; -import vtkWidgetRepresentation, { allocateArray } from './WidgetRepresentation.js'; -import { Behavior } from './WidgetRepresentation/Constants.js'; -import { OrientationModes } from '../../Rendering/Core/Glyph3DMapper/Constants.js'; - -// ---------------------------------------------------------------------------- -// vtkGlyphRepresentation methods -// ---------------------------------------------------------------------------- -function origin(publicAPI, model) { - return (polyData, states) => { - const points = allocateArray(polyData, 'points', states.length).getData(); - let j = 0; - for (let i = 0; i < states.length; ++i) { - const coord = states[i].getOrigin(model.scaleInPixels && model.displayScaleParams); - points[j++] = coord[0]; - points[j++] = coord[1]; - points[j++] = coord[2]; - } - }; -} -function noPosition(publicAPI, model) { - return (polyData, states) => { - allocateArray(polyData, 'points', 0); - }; -} -function color3(publicAPI, model) { - return (polyData, states) => { - model._pipeline.mapper.setColorByArrayName('color'); - const colorArray = allocateArray(polyData, 'color', states.length, 'Uint8Array', - // RGBA - 4); - const colors = colorArray.getData(); - let j = 0; - for (let i = 0; i < states.length; ++i) { - let c3 = states[i].getColor3(); - if (states[i].getActive() && model.useActiveColor) { - c3 = model.activeColor; - } - colors[j++] = c3[0]; - colors[j++] = c3[1]; - colors[j++] = c3[2]; - colors[j++] = states[i].getOpacity(); - } - colorArray.dataChange(); - }; -} -function color(publicAPI, model) { - return (polyData, states) => { - model._pipeline.mapper.setColorByArrayName('color'); - const colors = allocateArray(polyData, 'color', states.length).getData(); - for (let i = 0; i < states.length; ++i) { - let c = states[i].getColor(); - if (states[i].getActive() && model.useActiveColor) { - c = model.activeColor; - } - colors[i] = c; - } - }; -} -function noColor(publicAPI, model) { - return (polyData, states) => { - model._pipeline.mapper.setColorByArrayName(null); - }; -} -function scale3(publicAPI, model) { - return (polyData, states) => { - model._pipeline.mapper.setScaleArray('scale'); - model._pipeline.mapper.setScaleFactor(1); - model._pipeline.mapper.setScaling(true); - model._pipeline.mapper.setScaleMode(vtkGlyph3DMapper.ScaleModes.SCALE_BY_COMPONENTS); - const scales = allocateArray(polyData, 'scale', states.length, 'Float32Array', 3).getData(); - let j = 0; - for (let i = 0; i < states.length; ++i) { - const state = states[i]; - let scaleFactor = state.getActive() ? model.activeScaleFactor : 1; - if (publicAPI.getScaleInPixels()) { - scaleFactor *= getPixelWorldHeightAtCoord(state.getOrigin(), model.displayScaleParams); - } - const scale = state.getScale3?.() ?? model.defaultScale; - scales[j++] = scaleFactor * scale[0]; - scales[j++] = scaleFactor * scale[1]; - scales[j++] = scaleFactor * scale[2]; - } - }; -} -function scale1(publicAPI, model) { - return (polyData, states) => { - model._pipeline.mapper.setScaleArray('scale'); - model._pipeline.mapper.setScaleFactor(1); - model._pipeline.mapper.setScaling(true); - const scales = allocateArray(polyData, 'scale', states.length).getData(); - for (let i = 0; i < states.length; ++i) { - const state = states[i]; - let scaleFactor = state.getActive() ? model.activeScaleFactor : 1; - if (publicAPI.getScaleInPixels()) { - scaleFactor *= getPixelWorldHeightAtCoord(state.getOrigin(), model.displayScaleParams); - } - const scale = state.getScale1?.() ?? model.defaultScale; - scales[i] = scaleFactor * scale; - } - }; -} -function noScale(publicAPI, model) { - return (polyData, states) => { - model._pipeline.mapper.setScaleArray(null); - model._pipeline.mapper.setScaleFactor(model.defaultScale); - model._pipeline.mapper.setScaling(model.defaultScale !== 1); - }; -} -function direction(publicAPI, model) { - return (polyData, states) => { - model._pipeline.mapper.setOrientationArray('orientation'); - model._pipeline.mapper.setOrientationMode(OrientationModes.MATRIX); - const orientation = allocateArray(polyData, 'orientation', states.length, 'Float64Array', 9).getData(); - for (let i = 0; i < states.length; ++i) { - const state = states[i]; - const right = state.getRight ? state.getRight() : [1, 0, 0]; - const up = state.getUp ? state.getUp() : [0, 1, 0]; - const dir = state.getDirection ? state.getDirection() : [0, 0, 1]; - orientation.set(right, 9 * i); - orientation.set(up, 9 * i + 3); - orientation.set(dir, 9 * i + 6); - } - }; -} -function noOrientation(publicAPI, model) { - return (polyData, states) => { - model._pipeline.mapper.setOrientationArray(null); - }; -} -function vtkGlyphRepresentation(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkGlyphRepresentation'); - const superClass = { - ...publicAPI - }; - const internalPolyData = vtkPolyData.newInstance({ - mtime: 0 - }); - function hasMixin(states) { - for (var _len = arguments.length, requiredMixins = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - requiredMixins[_key - 1] = arguments[_key]; - } - return requiredMixins.every(requiredMixin => states[0]?.[`get${macro.capitalize(requiredMixin)}`]?.() != null); - } - // -------------------------------------------------------------------------- - // Generic rendering pipeline - // -------------------------------------------------------------------------- - - // -------------------------------------------------------------------------- - - publicAPI.getRepresentationStates = function () { - let input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : model.inputData[0]; - return superClass.getRepresentationStates(input).filter(state => state.getOrigin?.() && (state.isVisible?.() ?? true)); - }; - - // -------------------------------------------------------------------------- - publicAPI.getMixins = states => { - const glyphProperties = {}; - if (hasMixin(states, 'origin')) { - glyphProperties.position = model.applyMixin.origin; - } else { - glyphProperties.position = model.applyMixin.noPosition; - } - if (hasMixin(states, 'color3')) { - glyphProperties.color = model.applyMixin.color3; - } else if (hasMixin(states, 'color')) { - glyphProperties.color = model.applyMixin.color; - } else { - glyphProperties.color = model.applyMixin.noColor; - } - if (hasMixin(states, 'scale3')) { - glyphProperties.scale = model.applyMixin.scale3; - } else if (hasMixin(states, 'scale1')) { - glyphProperties.scale = model.applyMixin.scale1; - } else { - glyphProperties.scale = model.applyMixin.noScale; - } - if (hasMixin(states, 'direction')) { - glyphProperties.orientation = model.applyMixin.direction; - } else { - glyphProperties.orientation = model.applyMixin.noOrientation; - } - return glyphProperties; - }; - publicAPI.requestData = (inData, outData) => { - const states = publicAPI.getRepresentationStates(inData[0]); - outData[0] = internalPolyData; - const glyphProperties = publicAPI.getMixins(states); - Object.values(glyphProperties).forEach(property => property(internalPolyData, states)); - internalPolyData.getPoints().modified(); - internalPolyData.modified(); - }; - vtkWidgetRepresentation.connectPipeline(model._pipeline); - publicAPI.addActor(model._pipeline.actor); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function defaultValues(publicAPI, model, initialValues) { - return { - defaultScale: 1, - ...initialValues, - _pipeline: { - source: initialValues._pipeline?.source ?? publicAPI, - glyph: initialValues._pipeline?.glyph ?? - // in case glyph was provided - vtkSphereSource.newInstance({ - phiResolution: 8, - thetaResolution: 8 - }), - mapper: initialValues._pipeline?.mapper ?? - // in case mapper was provided - vtkGlyph3DMapper.newInstance({ - scalarMode: ScalarMode.USE_POINT_FIELD_DATA - }), - actor: initialValues._pipeline?.actor ?? - // in case actor was provided - vtkActor.newInstance({ - parentProp: publicAPI - }), - ...initialValues._pipeline // in case there is something else to add to pipeline - }, - - applyMixin: { - origin: initialValues.applyMixin?.origin ?? origin(publicAPI, model), - noPosition: initialValues.applyMixin?.noPosition ?? noPosition(), - color3: initialValues.applyMixin?.color3 ?? color3(publicAPI, model), - color: initialValues.applyMixin?.color ?? color(publicAPI, model), - noColor: initialValues.applyMixin?.noColor ?? noColor(publicAPI, model), - scale3: initialValues.applyMixin?.scale3 ?? scale3(publicAPI, model), - scale1: initialValues.applyMixin?.scale1 ?? scale1(publicAPI, model), - noScale: initialValues.applyMixin?.noScale ?? noScale(publicAPI, model), - direction: initialValues.applyMixin?.direction ?? direction(publicAPI, model), - noOrientation: initialValues.applyMixin?.noOrientation ?? noOrientation(publicAPI, model), - ...initialValues.applyMixin - } - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - if (initialValues.behavior === Behavior.CONTEXT) { - vtkContextRepresentation.extend(publicAPI, model, defaultValues(publicAPI, model, initialValues)); - } else { - vtkHandleRepresentation.extend(publicAPI, model, defaultValues(publicAPI, model, initialValues)); - } - if ('lighting' in initialValues) { - model._pipeline.actor.getProperty().setLighting(initialValues.lighting); - } - macro.setGet(publicAPI, model._pipeline, ['defaultScale']); - macro.get(publicAPI, model._pipeline, ['glyph', 'mapper', 'actor']); - // Expose the mixin functions to allow overwriting - macro.setGet(publicAPI, model.applyMixin, Object.keys(model.applyMixin)); - - // Object specific methods - vtkGlyphRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkGlyphRepresentation'); - -// ---------------------------------------------------------------------------- - -var vtkGlyphRepresentation$1 = { - newInstance, - extend -}; - -export { color, color3, vtkGlyphRepresentation$1 as default, direction, extend, newInstance, noColor, noOrientation, noPosition, noScale, origin, scale1, scale3 }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/HandleRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/HandleRepresentation.js deleted file mode 100644 index 44f498ca..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/HandleRepresentation.js +++ /dev/null @@ -1,42 +0,0 @@ -import vtkWidgetRepresentation from './WidgetRepresentation.js'; -import { Behavior } from './WidgetRepresentation/Constants.js'; - -// ---------------------------------------------------------------------------- -// vtkHandleRepresentation methods -// ---------------------------------------------------------------------------- - -function vtkHandleRepresentation(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkHandleRepresentation'); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - behavior: Behavior.HANDLE, - pickable: true, - dragable: true, - scaleInPixels: true -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - const newDefault = { - ...DEFAULT_VALUES, - ...initialValues - }; - vtkWidgetRepresentation.extend(publicAPI, model, newDefault); - vtkHandleRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -var vtkHandleRepresentation$1 = { - extend -}; - -export { vtkHandleRepresentation$1 as default, extend }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/ImplicitPlaneRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/ImplicitPlaneRepresentation.js deleted file mode 100644 index 435fd0d0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/ImplicitPlaneRepresentation.js +++ /dev/null @@ -1,349 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkActor from '../../Rendering/Core/Actor.js'; -import vtkClosedPolyLineToSurfaceFilter from '../../Filters/General/ClosedPolyLineToSurfaceFilter.js'; -import vtkCubeSource from '../../Filters/Sources/CubeSource.js'; -import vtkCutter from '../../Filters/Core/Cutter.js'; -import vtkCylinderSource from '../../Filters/Sources/CylinderSource.js'; -import vtkMapper from '../../Rendering/Core/Mapper.js'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; -import vtkPixelSpaceCallbackMapper from '../../Rendering/Core/PixelSpaceCallbackMapper.js'; -import vtkPlane from '../../Common/DataModel/Plane.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkSphereSource from '../../Filters/Sources/SphereSource.js'; -import vtkStateBuilder from '../Core/StateBuilder.js'; -import { getPixelWorldHeightAtCoord } from '../Core/WidgetManager.js'; -import vtkWidgetRepresentation from './WidgetRepresentation.js'; -import WidgetManagerConst from '../Core/WidgetManager/Constants.js'; -import PropertyConst from '../../Rendering/Core/Property/Constants.js'; - -const { - RenderingTypes -} = WidgetManagerConst; -const { - Interpolation, - Representation -} = PropertyConst; - -// ---------------------------------------------------------------------------- -// Static methods to build state -// ---------------------------------------------------------------------------- - -function generateState() { - return vtkStateBuilder.createBuilder().addField({ - name: 'origin', - initialValue: [0, 0, 0] - }).addField({ - name: 'normal', - initialValue: [0, 0, 1] - }).addField({ - name: 'activeHandle', - initialValue: null - }).addField({ - name: 'updateMethodName' - }).build(); -} - -// ---------------------------------------------------------------------------- -// Representation style -// ---------------------------------------------------------------------------- - -const STYLE_PIPELINE_NAMES = ['plane', 'outline', 'normal', 'origin', 'display2D']; -const STYLE_DEFAULT = { - active: { - plane: { - opacity: 1, - color: [0, 0.9, 0] - }, - normal: { - opacity: 1, - color: [0, 0.9, 0] - }, - origin: { - opacity: 1, - color: [0, 0.9, 0] - } - }, - inactive: { - plane: { - opacity: 0.6, - color: [1, 1, 1] - }, - normal: { - opacity: 1, - color: [0.9, 0, 0] - }, - origin: { - opacity: 1, - color: [1, 0, 0] - } - }, - static: { - display2D: { - representation: Representation.POINT - }, - outline: { - color: [1, 1, 1], - opacity: 1, - representation: Representation.WIREFRAME, - interpolation: Interpolation.FLAT - } - } -}; - -// ---------------------------------------------------------------------------- -// vtkImplicitPlaneRepresentation methods -// ---------------------------------------------------------------------------- - -function vtkImplicitPlaneRepresentation(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkImplicitPlaneRepresentation'); - - // -------------------------------------------------------------------------- - // Internal polydata dataset - // -------------------------------------------------------------------------- - - model.plane = vtkPlane.newInstance(); - model.matrix = vtkMatrixBuilder.buildFromDegree(); - model._pipelines = {}; - model._pipelines.outline = { - source: vtkCubeSource.newInstance(), - mapper: vtkMapper.newInstance(), - actor: vtkActor.newInstance({ - pickable: false, - _parentProp: publicAPI - }) - }; - model._pipelines.plane = { - source: vtkCutter.newInstance({ - cutFunction: model.plane - }), - filter: vtkClosedPolyLineToSurfaceFilter.newInstance(), - mapper: vtkMapper.newInstance(), - actor: vtkActor.newInstance({ - pickable: true, - _parentProp: publicAPI - }) - }; - model._pipelines.origin = { - source: vtkSphereSource.newInstance(), - mapper: vtkMapper.newInstance(), - actor: vtkActor.newInstance({ - pickable: true, - _parentProp: publicAPI - }) - }; - model._pipelines.normal = { - source: vtkCylinderSource.newInstance(), - mapper: vtkMapper.newInstance(), - actor: vtkActor.newInstance({ - pickable: true, - _parentProp: publicAPI - }) - }; - model._pipelines.display2D = { - source: publicAPI, - mapper: vtkPixelSpaceCallbackMapper.newInstance(), - actor: vtkActor.newInstance({ - pickable: false, - _parentProp: publicAPI - }) - }; - - // Plane generation pipeline - model._pipelines.plane.source.setInputConnection(model._pipelines.outline.source.getOutputPort()); - vtkWidgetRepresentation.connectPipeline(model._pipelines.outline); - vtkWidgetRepresentation.connectPipeline(model._pipelines.plane); - vtkWidgetRepresentation.connectPipeline(model._pipelines.origin); - vtkWidgetRepresentation.connectPipeline(model._pipelines.normal); - vtkWidgetRepresentation.connectPipeline(model._pipelines.display2D); - publicAPI.addActor(model._pipelines.outline.actor); - publicAPI.addActor(model._pipelines.plane.actor); - publicAPI.addActor(model._pipelines.origin.actor); - publicAPI.addActor(model._pipelines.normal.actor); - publicAPI.addActor(model._pipelines.display2D.actor); - - // -------------------------------------------------------------------------- - - publicAPI.requestData = (inData, outData) => { - const state = inData[0]; - const origin = state.getOrigin(); - if (!origin) { - return; - } - const normal = state.getNormal(); - const bounds = state.getBounds(); - model.plane.setOrigin(origin); - model.plane.setNormal(normal); - - // -------------------------------- - // Update cube parameters - // -------------------------------- - - model._pipelines.outline.source.setCenter((bounds[0] + bounds[1]) * 0.5, (bounds[2] + bounds[3]) * 0.5, (bounds[4] + bounds[5]) * 0.5); - const xRange = bounds[1] - bounds[0]; - const yRange = bounds[3] - bounds[2]; - const zRange = bounds[5] - bounds[4]; - model._pipelines.outline.source.setXLength(xRange); - model._pipelines.outline.source.setYLength(yRange); - model._pipelines.outline.source.setZLength(zRange); - - // -------------------------------- - // Update normal parameters - // -------------------------------- - - let pixelScale = 1; - if (model.scaleInPixels) { - pixelScale = getPixelWorldHeightAtCoord(origin, model.displayScaleParams); - } - model._pipelines.normal.source.set({ - height: Math.max(xRange, yRange, zRange), - radius: model.handleSizeRatio * Math.min(xRange, yRange, zRange) * model.axisScale * pixelScale, - resolution: model.sphereResolution - }); - const yAxis = model._pipelines.normal.source.getOutputData(); - const newAxis = vtkPolyData.newInstance(); - newAxis.shallowCopy(yAxis); - newAxis.getPoints().setData(Float32Array.from(yAxis.getPoints().getData()), 3); - newAxis.getPointData().removeAllArrays(); - model.matrix.identity().translate(origin[0], origin[1], origin[2]).rotateFromDirections([0, 1, 0], normal).apply(newAxis.getPoints().getData()); - model._pipelines.normal.mapper.setInputData(newAxis); - - // -------------------------------- - // Update origin parameters - // -------------------------------- - - model._pipelines.origin.actor.setPosition(origin); - const handleScale = model.handleSizeRatio * Math.min(xRange, yRange, zRange) * pixelScale; - model._pipelines.origin.actor.setScale(handleScale, handleScale, handleScale); - - // -------------------------------- - // Update style since state changed - // -------------------------------- - - vtkWidgetRepresentation.applyStyles(model._pipelines, model.representationStyle, state.getActive() && state.getActiveHandle()); - const output = outData[0]?.initialize() || vtkPolyData.newInstance(); - output.shallowCopy(model._pipelines.plane.filter.getOutputData()); - outData[0] = output; - }; - - // -------------------------------------------------------------------------- - // Set/Get Forwarding - // -------------------------------------------------------------------------- - - publicAPI.setSphereResolution = res => { - model.sphereResolution = res; - return model._pipelines.origin.source.setPhiResolution(res) && model._pipelines.origin.source.setThetaResolution(res); - }; - publicAPI.setRepresentationStyle = style => { - model.representationStyle = vtkWidgetRepresentation.mergeStyles(STYLE_PIPELINE_NAMES, model.representationStyle, style); - - // Apply static and inactive - vtkWidgetRepresentation.applyStyles(model._pipelines, model.representationStyle); - - // Force requestData to execute - publicAPI.modified(); - }; - - // -------------------------------------------------------------------------- - // WidgetRepresentation API - // -------------------------------------------------------------------------- - - publicAPI.updateActorVisibility = (renderingType, ctxVisible, hVisible) => { - const { - planeVisible, - originVisible, - normalVisible, - outlineVisible - } = model; - if (renderingType === RenderingTypes.PICKING_BUFFER) { - model._pipelines.plane.actor.setVisibility(planeVisible); - model._pipelines.origin.actor.setVisibility(originVisible); - model._pipelines.normal.actor.setVisibility(normalVisible); - // - model._pipelines.plane.actor.getProperty().setOpacity(1); - } else { - model._pipelines.outline.actor.setVisibility(outlineVisible && ctxVisible); - model._pipelines.plane.actor.setVisibility(planeVisible && hVisible); - model._pipelines.origin.actor.setVisibility(originVisible && hVisible); - model._pipelines.normal.actor.setVisibility(normalVisible && hVisible); - // - const state = model.inputData[0]; - if (state) { - vtkWidgetRepresentation.applyStyles(model._pipelines, model.representationStyle, state.getActive() && state.getActiveHandle()); - } - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.getSelectedState = (prop, compositeID) => { - // We only have one state to control us - // we may want to update some field on the state to highlight the - // selected handle later on... - const state = model.inputData[0]; - state.setActiveHandle(prop); - switch (prop) { - case model._pipelines.plane.actor: - state.setUpdateMethodName('updateFromPlane'); - break; - case model._pipelines.origin.actor: - state.setUpdateMethodName('updateFromOrigin'); - break; - case model._pipelines.normal.actor: - state.setUpdateMethodName('updateFromNormal'); - break; - default: - state.setUpdateMethodName('updateFromPlane'); - break; - } - return state; - }; - - // -------------------------------------------------------------------------- - // Initialization - // -------------------------------------------------------------------------- - - publicAPI.setRepresentationStyle(STYLE_DEFAULT); - publicAPI.setSphereResolution(model.sphereResolution); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - sphereResolution: 24, - handleSizeRatio: 0.05, - axisScale: 0.1, - normalVisible: true, - originVisible: true, - planeVisible: true, - outlineVisible: true -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkWidgetRepresentation.extend(publicAPI, model, initialValues); - macro.get(publicAPI, model, ['sphereResolution', 'representationStyle']); - macro.setGet(publicAPI, model, ['handleSizeRatio', 'axisScale', 'normalVisible', 'originVisible', 'planeVisible', 'outlineVisible']); - - // Object specific methods - vtkImplicitPlaneRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImplicitPlaneRepresentation'); - -// ---------------------------------------------------------------------------- - -var vtkImplicitPlaneRepresentation$1 = { - newInstance, - extend, - generateState -}; - -export { vtkImplicitPlaneRepresentation$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/LineHandleRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/LineHandleRepresentation.js deleted file mode 100644 index 4240fde4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/LineHandleRepresentation.js +++ /dev/null @@ -1,178 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkActor from '../../Rendering/Core/Actor.js'; -import vtkGlyphRepresentation from './GlyphRepresentation.js'; -import vtkPixelSpaceCallbackMapper from '../../Rendering/Core/PixelSpaceCallbackMapper.js'; -import vtkCylinderSource from '../../Filters/Sources/CylinderSource.js'; -import { allocateArray } from './WidgetRepresentation.js'; -import { getPixelWorldHeightAtCoord } from '../Core/WidgetManager.js'; -import { vec3 } from 'gl-matrix'; - -const INFINITE_RATIO = 100000; - -// ---------------------------------------------------------------------------- -// vtkLineHandleRepresentation methods -// ---------------------------------------------------------------------------- - -function vtkLineHandleRepresentation(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkLineHandleRepresentation'); - - // -------------------------------------------------------------------------- - // Generic rendering pipeline - // -------------------------------------------------------------------------- - - /* - * displayActors and displayMappers are used to render objects in HTML, allowing objects - * to be 'rendered' internally in a VTK scene without being visible on the final output - */ - - model.displayMapper = vtkPixelSpaceCallbackMapper.newInstance(); - model.displayActor = vtkActor.newInstance({ - parentProp: publicAPI - }); - // model.displayActor.getProperty().setOpacity(0); // don't show in 3D - model.displayActor.setMapper(model.displayMapper); - model.displayMapper.setInputConnection(publicAPI.getOutputPort()); - publicAPI.addActor(model.displayActor); - model.alwaysVisibleActors = [model.displayActor]; - - // -------------------------------------------------------------------------- - - publicAPI.setGlyphResolution = macro.chain(publicAPI.setGlyphResolution, model._pipeline.glyph.setThetaResolution, model._pipeline.glyph.setPhiResolution); - - // -------------------------------------------------------------------------- - - function callbackProxy(coords) { - if (model.displayCallback) { - const filteredList = []; - const states = publicAPI.getRepresentationStates(); - for (let i = 0; i < states.length; i++) { - if (states[i].getActive()) { - filteredList.push(coords[i]); - } - } - if (filteredList.length) { - model.displayCallback(filteredList); - return; - } - } - model.displayCallback(); - } - publicAPI.setDisplayCallback = callback => { - model.displayCallback = callback; - model.displayMapper.setCallback(callback ? callbackProxy : null); - }; - const superPublicAPI = { - ...publicAPI - }; - publicAPI.requestData = (inData, outData) => { - superPublicAPI.requestData(inData, outData); - if (!model.holeWidth) { - return; - } - const internalPolyData = outData[0]; - - // Duplicate points and point data - const points = internalPolyData.getPoints(); - const dataArrays = internalPolyData.getPointData().getArrays(); - [points, ...dataArrays].forEach(array => { - const oldNumberOfValues = array.getNumberOfValues(); - array.resize(2 * array.getNumberOfTuples()); - const arrayData = array.getData(); - for (let i = 0; i < oldNumberOfValues; ++i) { - arrayData[i + oldNumberOfValues] = arrayData[i]; - } - }); - - // Change the scale and origin of each line - const states = publicAPI.getRepresentationStates(inData[0]); - const nStates = states.length; - const scaleArray = internalPolyData.getPointData().getArrayByName('scale'); - const orientationArray = internalPolyData.getPointData().getArrayByName('orientation'); - const defaultScale = [1, 1, 1]; - const defaultOrientation = [1, 0, 0, 0, 1, 0, 0, 0, 1]; - for (let i = 0; i < nStates; ++i) { - const j = i + nStates; - const scale = scaleArray?.getTuple(i) ?? defaultScale; - const orientationMatrix = orientationArray?.getTuple(i) ?? defaultOrientation; - const originalPoint = points.getTuple(i); - - // Divide the scale by two in the direction of the cylinder, as we duplicate the line - scale[2] *= 0.5; - scaleArray?.setTuple(i, scale); - scaleArray?.setTuple(j, scale); - - // Add or subtract an offset to each point depending on the hole width - let holeWidth = model.holeWidth; - if (publicAPI.getScaleInPixels()) { - holeWidth *= getPixelWorldHeightAtCoord(originalPoint, model.displayScaleParams); - } - const offset = vec3.fromValues(0, 0, 0.5 * scale[2] + holeWidth); - vec3.transformMat3(offset, offset, orientationMatrix); - points.setTuple(i, vec3.add(vec3.create(), originalPoint, offset)); - points.setTuple(j, vec3.sub(vec3.create(), originalPoint, offset)); - } - }; - publicAPI.getSelectedState = (prop, compositeID) => { - const representationStates = publicAPI.getRepresentationStates(); - return representationStates[compositeID % representationStates.length]; - }; - - /** - * Overwrite scale3 to optionally make lines infinite - */ - const superScale3 = publicAPI.getScale3(); - publicAPI.setScale3((polyData, states) => { - superScale3(polyData, states); - if (model.infiniteLine) { - const scales = allocateArray(polyData, 'scale', states.length, 'Float32Array', 3).getData(); - for (let i = 0; i < states.length; ++i) { - scales[3 * i + 2] = INFINITE_RATIO; - } - } - }); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - return { - infiniteLine: true, - glyphResolution: 4, - holeWidth: 0, - _pipeline: { - glyph: vtkCylinderSource.newInstance({ - resolution: initialValues.glyphResolution ?? 4, - initAngle: initialValues.glyphAngle ?? Math.PI / 4, - direction: [0, 0, 1] - }) - }, - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - vtkGlyphRepresentation.extend(publicAPI, model, defaultValues(initialValues)); - macro.setGet(publicAPI, model, ['infiniteLine', 'glyphResolution', 'holeWidth']); - - // Object specific methods - vtkLineHandleRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkLineHandleRepresentation'); - -// ---------------------------------------------------------------------------- - -var vtkLineHandleRepresentation$1 = { - newInstance, - extend -}; - -export { vtkLineHandleRepresentation$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/OutlineContextRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/OutlineContextRepresentation.js deleted file mode 100644 index a814ceea..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/OutlineContextRepresentation.js +++ /dev/null @@ -1,103 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkActor from '../../Rendering/Core/Actor.js'; -import vtkContextRepresentation from './ContextRepresentation.js'; -import vtkMapper from '../../Rendering/Core/Mapper.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; -import { LINE_ARRAY, BOUNDS_MAP } from '../../Filters/General/OutlineFilter.js'; - -// ---------------------------------------------------------------------------- -// vtkOutlineContextRepresentation methods -// ---------------------------------------------------------------------------- - -// Represents a box outline given 8 points as corners. -// Does not work with an arbitrary set of points. An oriented bounding box -// algorithm may be implemented in the future. -function vtkOutlineContextRepresentation(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkOutlineContextRepresentation'); - - // internal bounding box - model.bbox = [...vtkBoundingBox.INIT_BOUNDS]; - - // -------------------------------------------------------------------------- - // Internal polydata dataset - // -------------------------------------------------------------------------- - - model.internalPolyData = vtkPolyData.newInstance({ - mtime: 0 - }); - model.points = new Float32Array(8 * 3); - model.internalPolyData.getPoints().setData(model.points, 3); - model.internalPolyData.getLines().setData(Uint16Array.from(LINE_ARRAY)); - - // -------------------------------------------------------------------------- - // Generic rendering pipeline - // -------------------------------------------------------------------------- - - model.mapper = vtkMapper.newInstance({ - scalarVisibility: false - }); - model.actor = vtkActor.newInstance({ - parentProp: publicAPI - }); - model.actor.getProperty().setEdgeColor(...model.edgeColor); - model.mapper.setInputConnection(publicAPI.getOutputPort()); - model.actor.setMapper(model.mapper); - publicAPI.addActor(model.actor); - - // -------------------------------------------------------------------------- - - publicAPI.requestData = (inData, outData) => { - const list = publicAPI.getRepresentationStates(inData[0]).filter(state => state.getOrigin && state.getOrigin()); - vtkBoundingBox.reset(model.bbox); - for (let i = 0; i < list.length; i++) { - const pt = list[i].getOrigin(); - if (pt) { - vtkBoundingBox.addPoint(model.bbox, ...pt); - } - } - - // BOUNDS_MAP.length should equal model.points.length - for (let i = 0; i < BOUNDS_MAP.length; i++) { - model.points[i] = model.bbox[BOUNDS_MAP[i]]; - } - model.internalPolyData.getPoints().modified(); - model.internalPolyData.modified(); - outData[0] = model.internalPolyData; - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - edgeColor: [1, 1, 1] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkContextRepresentation.extend(publicAPI, model, initialValues); - macro.setGetArray(publicAPI, model, ['edgeColor'], 3); - macro.get(publicAPI, model, ['mapper', 'actor']); - - // Object specific methods - vtkOutlineContextRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkOutlineContextRepresentation'); - -// ---------------------------------------------------------------------------- - -var vtkOutlineContextRepresentation$1 = { - newInstance, - extend -}; - -export { vtkOutlineContextRepresentation$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/PolyLineRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/PolyLineRepresentation.js deleted file mode 100644 index 8eb8733b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/PolyLineRepresentation.js +++ /dev/null @@ -1,177 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkActor from '../../Rendering/Core/Actor.js'; -import vtkMapper from '../../Rendering/Core/Mapper.js'; -import { E as areEquals } from '../../Common/Core/Math/index.js'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; -import vtkTubeFilter from '../../Filters/General/TubeFilter.js'; -import { getPixelWorldHeightAtCoord } from '../Core/WidgetManager.js'; -import vtkWidgetRepresentation, { allocateArray } from './WidgetRepresentation.js'; -import { RenderingTypes } from '../Core/WidgetManager/Constants.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; - -// ---------------------------------------------------------------------------- -// vtkPolyLineRepresentation methods -// ---------------------------------------------------------------------------- - -function vtkPolyLineRepresentation(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkPolyLineRepresentation'); - const superClass = { - ...publicAPI - }; - - // -------------------------------------------------------------------------- - // Internal polydata dataset - // -------------------------------------------------------------------------- - const internalPolyData = vtkPolyData.newInstance({ - mtime: 0 - }); - function allocateSize(polyData, size) { - let closePolyLine = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; - let points = null; - if (size < 2) { - // FIXME: Why 1 point and not 0 ? - points = allocateArray(polyData, 'points', 1).getData(); - points.set([0, 0, 0]); - allocateArray(polyData, 'lines', 0).getData(); - } else if (!polyData.getPoints() || polyData.getPoints().length !== size * 3) { - points = allocateArray(polyData, 'points', size).getData(); - const cellSize = size + (closePolyLine ? 1 : 0); - if (polyData.getLines().getNumberOfCells() !== 1 || polyData.getLines().getCellSizes()[0] !== cellSize) { - const lines = allocateArray(polyData, 'lines', cellSize + 1); // +1 for the number of points - const cellData = lines.getData(); - cellData[0] = cellSize; - for (let i = 1; i <= cellSize; i++) { - cellData[i] = i - 1; - } - if (closePolyLine) { - cellData[cellSize] = 0; - } - lines.setData(cellData); - } - } - return points; - } - - /** - * Change the line/tube thickness. - * @param {number} lineThickness - */ - function applyLineThickness(lineThickness) { - let scaledLineThickness = lineThickness; - if (publicAPI.getScaleInPixels() && internalPolyData) { - const center = vtkBoundingBox.getCenter(internalPolyData.getBounds()); - scaledLineThickness *= getPixelWorldHeightAtCoord(center, model.displayScaleParams); - } - model._pipelines.tubes.filter.setRadius(scaledLineThickness); - } - - // -------------------------------------------------------------------------- - // Generic rendering pipeline - // -------------------------------------------------------------------------- - - model._pipelines = { - tubes: { - source: publicAPI, - filter: vtkTubeFilter.newInstance({ - radius: model.lineThickness, - numberOfSides: 12, - capping: false - }), - mapper: vtkMapper.newInstance(), - actor: vtkActor.newInstance({ - parentProp: publicAPI - }) - } - }; - vtkWidgetRepresentation.connectPipeline(model._pipelines.tubes); - publicAPI.addActor(model._pipelines.tubes.actor); - - // -------------------------------------------------------------------------- - publicAPI.requestData = (inData, outData) => { - const state = inData[0]; - outData[0] = internalPolyData; - - // Remove invalid and coincident points for tube filter. - const list = publicAPI.getRepresentationStates(state).reduce((subStates, subState) => { - const subStateOrigin = subState.getOrigin && subState.getOrigin() ? subState.getOrigin() : null; - const previousSubStateOrigin = subStates.length && subStates[subStates.length - 1].getOrigin(); - if (!subStateOrigin || previousSubStateOrigin && areEquals(subStateOrigin, previousSubStateOrigin)) { - return subStates; - } - subStates.push(subState); - return subStates; - }, []); - const size = list.length; - const points = allocateSize(outData[0], size, model.closePolyLine && size > 2); - if (points) { - for (let i = 0; i < size; i++) { - const coords = list[i].getOrigin(); - points[i * 3] = coords[0]; - points[i * 3 + 1] = coords[1]; - points[i * 3 + 2] = coords[2]; - } - } - outData[0].getPoints().modified(); - outData[0].modified(); - const lineThickness = state.getLineThickness?.() ?? model.lineThickness; - applyLineThickness(lineThickness); - }; - - /** - * When mousing over the line, if behavior != CONTEXT, - * returns the parent state. - * @param {object} prop - * @param {number} compositeID - * @returns {object} - */ - publicAPI.getSelectedState = (prop, compositeID) => model.inputData[0]; - publicAPI.updateActorVisibility = (renderingType, ctxVisible, hVisible) => { - const state = model.inputData[0]; - - // Make lines/tubes thicker for picking - let lineThickness = state.getLineThickness?.() ?? model.lineThickness; - if (renderingType === RenderingTypes.PICKING_BUFFER) { - lineThickness = Math.max(4, lineThickness); - } - applyLineThickness(lineThickness); - return superClass.updateActorVisibility(renderingType, ctxVisible, hVisible); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - threshold: Number.EPSILON, - closePolyLine: false, - lineThickness: 2, - scaleInPixels: true -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - const newDefault = { - ...DEFAULT_VALUES, - ...initialValues - }; - vtkWidgetRepresentation.extend(publicAPI, model, newDefault); - macro.setGet(publicAPI, model, ['threshold', 'closePolyLine', 'lineThickness']); - vtkPolyLineRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPolyLineRepresentation'); - -// ---------------------------------------------------------------------------- - -var vtkPolyLineRepresentation$1 = { - newInstance, - extend -}; - -export { vtkPolyLineRepresentation$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/RectangleContextRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/RectangleContextRepresentation.js deleted file mode 100644 index ba4e3836..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/RectangleContextRepresentation.js +++ /dev/null @@ -1,118 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkActor from '../../Rendering/Core/Actor.js'; -import vtkContextRepresentation from './ContextRepresentation.js'; -import vtkMapper from '../../Rendering/Core/Mapper.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import { allocateArray } from './WidgetRepresentation.js'; -import { vec3 } from 'gl-matrix'; - -// ---------------------------------------------------------------------------- -// vtkRectangleContextRepresentation methods -// ---------------------------------------------------------------------------- - -function vtkRectangleContextRepresentation(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkRectangleContextRepresentation'); - - // -------------------------------------------------------------------------- - // Generic rendering pipeline - // -------------------------------------------------------------------------- - model.internalPolyData = vtkPolyData.newInstance({ - mtime: 0 - }); - model.mapper = vtkMapper.newInstance(); - model.actor = vtkActor.newInstance({ - parentProp: publicAPI - }); - model.mapper.setInputConnection(publicAPI.getOutputPort()); - model.actor.setMapper(model.mapper); - model.actor.getProperty().setOpacity(0.2); - model.actor.getProperty().setColor(0, 1, 0); - publicAPI.addActor(model.actor); - - // -------------------------------------------------------------------------- - - publicAPI.setOpacity = opacity => { - model.actor.getProperty().setOpacity(opacity); - }; - - // -------------------------------------------------------------------------- - - publicAPI.requestData = (inData, outData) => { - const list = publicAPI.getRepresentationStates(inData[0]); - // FIXME: support list > 1. - const state = list[0]; - if (state?.getVisible() && state?.getOrigin()) { - const point1 = state.getOrigin(); - const point2 = state.getCorner(); - const diagonal = [0, 0, 0]; - vec3.subtract(diagonal, point2, point1); - const up = state.getUp(); - const upComponent = vec3.dot(diagonal, up); - const points = allocateArray(model.internalPolyData, 'points', 4).getData(); - points[0] = point1[0]; - points[1] = point1[1]; - points[2] = point1[2]; - points[3] = point1[0] + upComponent * up[0]; - points[4] = point1[1] + upComponent * up[1]; - points[5] = point1[2] + upComponent * up[2]; - points[6] = point2[0]; - points[7] = point2[1]; - points[8] = point2[2]; - points[9] = point2[0] - upComponent * up[0]; - points[10] = point2[1] - upComponent * up[1]; - points[11] = point2[2] - upComponent * up[2]; - if (model.drawFace) { - const polys = new Uint32Array([4, 0, 1, 2, 3]); - model.internalPolyData.getPolys().setData(polys, 1); - } - if (model.drawBorder) { - const line = new Uint32Array([5, 0, 1, 2, 3, 0]); - model.internalPolyData.getLines().setData(line, 1); - } - } else { - model.internalPolyData.getPoints().setData([], 0); - model.internalPolyData.getPolys().setData([], 0); - model.internalPolyData.getLines().setData([], 0); - } - model.internalPolyData.modified(); - outData[0] = model.internalPolyData; - }; - publicAPI.getSelectedState = (prop, compositeID) => model.state; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - drawBorder: false, - drawFace: true -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkContextRepresentation.extend(publicAPI, model, initialValues); - macro.setGetArray(publicAPI, model, ['color'], 1); - macro.setGet(publicAPI, model, ['drawBorder', 'drawFace']); - macro.get(publicAPI, model, ['mapper', 'actor']); - - // Object specific methods - vtkRectangleContextRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkRectangleContextRepresentation'); - -// ---------------------------------------------------------------------------- - -var vtkRectangleContextRepresentation$1 = { - newInstance, - extend -}; - -export { vtkRectangleContextRepresentation$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/RotateTransformHandleRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/RotateTransformHandleRepresentation.js deleted file mode 100644 index b82b80cd..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/RotateTransformHandleRepresentation.js +++ /dev/null @@ -1,46 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkGlyphRepresentation from './GlyphRepresentation.js'; -import vtkTorusSource from '../../Filters/Sources/TorusSource.js'; - -// ---------------------------------------------------------------------------- -// vtkRotateTransformHandleRepresentation methods -// ---------------------------------------------------------------------------- - -function vtkRotateTransformHandleRepresentation(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkRotateTransformHandleRepresentation'); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -function defaultValues(initialValues) { - return { - _pipeline: { - glyph: vtkTorusSource.newInstance({}) - }, - ...initialValues - }; -} -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - vtkGlyphRepresentation.extend(publicAPI, model, defaultValues(initialValues)); - - // Object specific methods - vtkRotateTransformHandleRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkRotateTransformHandleRepresentation'); - -// ---------------------------------------------------------------------------- - -var vtkRotateTransformHandleRepresentation$1 = { - newInstance, - extend -}; - -export { vtkRotateTransformHandleRepresentation$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/ScaleTransformHandleRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/ScaleTransformHandleRepresentation.js deleted file mode 100644 index 7545c596..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/ScaleTransformHandleRepresentation.js +++ /dev/null @@ -1,57 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkGlyphRepresentation from './GlyphRepresentation.js'; -import vtkCubeSource from '../../Filters/Sources/CubeSource.js'; -import vtkTransformHandleSource from './TranslateTransformHandleRepresentation/TransformHandleSource.js'; - -// ---------------------------------------------------------------------------- -// vtkScaleTransformHandleRepresentation methods -// ---------------------------------------------------------------------------- - -function vtkScaleTransformHandleRepresentation(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkScaleTransformHandleRepresentation'); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -function defaultValues(initialValues) { - const source = vtkTransformHandleSource.newInstance({ - height: initialValues.height ?? 1, - radius: initialValues.radius ?? 1, - resolution: initialValues.glyphResolution ?? 12, - direction: [0, 0, 1] - }); - const cube1 = vtkCubeSource.newInstance(initialValues.cubeSource); - const cube2 = vtkCubeSource.newInstance(initialValues.cubeSource); - source.addInputConnection(cube1.getOutputPort()); - source.addInputConnection(cube2.getOutputPort()); - return { - _pipeline: { - glyph: source - }, - ...initialValues - }; -} -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - vtkGlyphRepresentation.extend(publicAPI, model, defaultValues(initialValues)); - - // Object specific methods - vtkScaleTransformHandleRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkScaleTransformHandleRepresentation'); - -// ---------------------------------------------------------------------------- - -var vtkScaleTransformHandleRepresentation$1 = { - newInstance, - extend -}; - -export { vtkScaleTransformHandleRepresentation$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/SphereContextRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/SphereContextRepresentation.js deleted file mode 100644 index 6a308175..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/SphereContextRepresentation.js +++ /dev/null @@ -1,53 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkSphereSource from '../../Filters/Sources/SphereSource.js'; -import vtkGlyphRepresentation from './GlyphRepresentation.js'; -import { Behavior } from './WidgetRepresentation/Constants.js'; - -function vtkSphereContextRepresentation(publicAPI, model) { - model.classHierarchy.push('vtkSphereContextRepresentation'); - publicAPI.setGlyphResolution = macro.chain(publicAPI.setGlyphResolution, model._pipeline.glyph.setThetaResolution, model._pipeline.glyph.setPhiResolution); - publicAPI.setDrawBorder = draw => { - model._pipeline.glyph.setLines(draw); - }; - publicAPI.setDrawFace = draw => { - model._pipeline.glyph.setFace(draw); - }; - publicAPI.setOpacity = opacity => { - model._pipeline.actor.getProperty().setOpacity(opacity); - }; - model._pipeline.actor.getProperty().setOpacity(0.2); -} -function defaultValues(initialValues) { - return { - glyphResolution: 32, - drawBorder: false, - drawFace: true, - behavior: Behavior.CONTEXT, - _pipeline: { - glyph: vtkSphereSource.newInstance({ - phiResolution: initialValues.glyphResolution ?? 32, - thetaResolution: initialValues.glyphResolution ?? 32 - }) - }, - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - vtkGlyphRepresentation.extend(publicAPI, model, defaultValues(initialValues)); - macro.setGet(publicAPI, model, ['glyphResolution']); - vtkSphereContextRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSphereContextRepresentation'); -var vtkSphereContextRepresentation$1 = { - newInstance, - extend -}; - -export { vtkSphereContextRepresentation$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/SphereHandleRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/SphereHandleRepresentation.js deleted file mode 100644 index d9b8ea15..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/SphereHandleRepresentation.js +++ /dev/null @@ -1,87 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkActor from '../../Rendering/Core/Actor.js'; -import vtkGlyphRepresentation from './GlyphRepresentation.js'; -import vtkPixelSpaceCallbackMapper from '../../Rendering/Core/PixelSpaceCallbackMapper.js'; - -// ---------------------------------------------------------------------------- -// vtkSphereHandleRepresentation methods -// ---------------------------------------------------------------------------- - -function vtkSphereHandleRepresentation(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkSphereHandleRepresentation'); - - // -------------------------------------------------------------------------- - // Generic rendering pipeline - // -------------------------------------------------------------------------- - - /* - * displayActors and displayMappers are used to render objects in HTML, allowing objects - * to be 'rendered' internally in a VTK scene without being visible on the final output - */ - - model.displayMapper = vtkPixelSpaceCallbackMapper.newInstance(); - model.displayActor = vtkActor.newInstance({ - parentProp: publicAPI - }); - // model.displayActor.getProperty().setOpacity(0); // don't show in 3D - model.displayActor.setMapper(model.displayMapper); - model.displayMapper.setInputConnection(publicAPI.getOutputPort()); - publicAPI.addActor(model.displayActor); - model.alwaysVisibleActors = [model.displayActor]; - - // -------------------------------------------------------------------------- - - publicAPI.getGlyphResolution = () => model._pipeline.glyph.getPhiResolution(); - publicAPI.setGlyphResolution = resolution => model._pipeline.glyph.setPhiResolution(resolution) || model._pipeline.glyph.setThetaResolution(resolution); - - // -------------------------------------------------------------------------- - - function callbackProxy(coords) { - if (model.displayCallback) { - const filteredList = []; - const states = publicAPI.getRepresentationStates(); - for (let i = 0; i < states.length; i++) { - if (states[i].getActive()) { - filteredList.push(coords[i]); - } - } - if (filteredList.length) { - model.displayCallback(filteredList); - return; - } - } - model.displayCallback(); - } - publicAPI.setDisplayCallback = callback => { - model.displayCallback = callback; - model.displayMapper.setCallback(callback ? callbackProxy : null); - }; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - vtkGlyphRepresentation.extend(publicAPI, model, initialValues); - - // Object specific methods - vtkSphereHandleRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSphereHandleRepresentation'); - -// ---------------------------------------------------------------------------- - -var vtkSphereHandleRepresentation$1 = { - newInstance, - extend -}; - -export { vtkSphereHandleRepresentation$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/SplineContextRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/SplineContextRepresentation.js deleted file mode 100644 index d9941a7b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/SplineContextRepresentation.js +++ /dev/null @@ -1,163 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkActor from '../../Rendering/Core/Actor.js'; -import vtkContextRepresentation from './ContextRepresentation.js'; -import vtkMapper from '../../Rendering/Core/Mapper.js'; -import vtkPolyData from '../../Common/DataModel/PolyData.js'; -import vtkSpline3D from '../../Common/DataModel/Spline3D.js'; -import vtkTriangleFilter from '../../Filters/General/TriangleFilter.js'; -import vtkLineFilter from '../../Filters/General/LineFilter.js'; -import vtkWidgetRepresentation, { allocateArray } from './WidgetRepresentation.js'; - -// ---------------------------------------------------------------------------- -// vtkSplineContextRepresentation methods -// ---------------------------------------------------------------------------- - -function vtkSplineContextRepresentation(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkSplineContextRepresentation'); - - // -------------------------------------------------------------------------- - // Generic rendering pipeline - // -------------------------------------------------------------------------- - - model.internalPolyData = vtkPolyData.newInstance({ - mtime: 0 - }); - model._pipelines = { - area: { - source: publicAPI, - filter: vtkTriangleFilter.newInstance(), - mapper: vtkMapper.newInstance(), - actor: vtkActor.newInstance({ - parentProp: publicAPI - }) - }, - border: { - source: publicAPI, - filter: vtkLineFilter.newInstance(), - mapper: vtkMapper.newInstance(), - actor: vtkActor.newInstance({ - parentProp: publicAPI - }) - } - }; - vtkWidgetRepresentation.connectPipeline(model._pipelines.area); - model._pipelines.area.actor.getProperty().setOpacity(0.2); - model._pipelines.area.actor.getProperty().setColor(0, 1, 0); - publicAPI.addActor(model._pipelines.area.actor); - vtkWidgetRepresentation.connectPipeline(model._pipelines.border); - model._pipelines.border.actor.getProperty().setOpacity(1); - model._pipelines.border.actor.getProperty().setColor(0.1, 1, 0.1); - model._pipelines.border.actor.setVisibility(model.outputBorder); - publicAPI.addActor(model._pipelines.border.actor); - - // -------------------------------------------------------------------------- - const superGetRepresentationStates = publicAPI.getRepresentationStates; - publicAPI.getRepresentationStates = function () { - let input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : model.inputData[0]; - return superGetRepresentationStates(input).filter(state => state.getOrigin?.() && state.isVisible?.()); - }; - publicAPI.requestData = (inData, outData) => { - const widgetState = inData[0]; - outData[0] = model.internalPolyData; - const closed = widgetState.getSplineClosed(); - const list = publicAPI.getRepresentationStates(widgetState); - const inPoints = list.map(state => state.getOrigin()); - if (inPoints.length <= 1) { - return; - } - let numVertices = inPoints.length; - if (!closed) { - --numVertices; - } else { - inPoints.push(inPoints[0]); - } - const spline = vtkSpline3D.newInstance({ - close: widgetState.getSplineClosed(), - kind: widgetState.getSplineKind(), - tension: widgetState.getSplineTension(), - bias: widgetState.getSplineBias(), - continuity: widgetState.getSplineContinuity(), - boundaryCondition: widgetState.getSplineBoundaryCondition(), - boundaryConditionValues: widgetState.getSplineBoundaryConditionValues() - }); - spline.computeCoefficients(inPoints); - const outPoints = allocateArray(model.internalPolyData, 'points', (numVertices + !closed) * model.resolution).getData(); - const outCells = new Uint32Array(numVertices * model.resolution + 2); - outCells[0] = numVertices * model.resolution + 1; - outCells[numVertices * model.resolution + 1] = 0; - for (let i = 0; i < numVertices; i++) { - for (let j = 0; j < model.resolution; j++) { - const t = j / model.resolution; - const point = spline.getPoint(i, t); - outPoints[3 * (i * model.resolution + j) + 0] = point[0]; - outPoints[3 * (i * model.resolution + j) + 1] = point[1]; - outPoints[3 * (i * model.resolution + j) + 2] = point[2]; - outCells[i * model.resolution + j + 1] = i * model.resolution + j; - } - } - if (closed) { - outCells[numVertices * model.resolution + 1] = 0; - } else { - const lastPointIndex = numVertices * model.resolution + 1; - const lastPoint = spline.getPoint(numVertices, 0); - outPoints[3 * lastPointIndex + 0] = lastPoint[0]; - outPoints[3 * lastPointIndex + 1] = lastPoint[1]; - outPoints[3 * lastPointIndex + 2] = lastPoint[2]; - outCells[numVertices * model.resolution + 1] = lastPointIndex; - } - if (model.fill) { - model.internalPolyData.getPolys().setData(outCells); - } - model.internalPolyData.getLines().setData(model.outputBorder ? outCells : []); - model.internalPolyData.modified(); - model._pipelines.area.filter.update(); - model._pipelines.border.actor.getProperty().setColor(...(inPoints.length <= 3 || model._pipelines.area.filter.getErrorCount() === 0 ? model.borderColor : model.errorBorderColor)); - }; - publicAPI.getSelectedState = (prop, compositeID) => model.state; - function updateAreaVisibility() { - model._pipelines.area.actor.setVisibility(model.fill); - } - publicAPI.setFill = macro.chain(publicAPI.setFill, updateAreaVisibility); - publicAPI.setOutputBorder = macro.chain(publicAPI.setOutputBorder, v => model._pipelines.border.actor.setVisibility(v)); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - resolution: 16, - fill: true, - // boundaryCondition : BoundaryCondition.DEFAULT - outputBorder: false, - borderColor: [0.1, 1, 0.1], - errorBorderColor: [1, 0, 0] -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkContextRepresentation.extend(publicAPI, model, initialValues); - macro.get(publicAPI, model, ['mapper']); - macro.setGet(publicAPI, model, ['resolution', 'boundaryCondition', 'fill', 'outputBorder']); - macro.setGetArray(publicAPI, model, ['borderColor', 'errorBorderColor'], 3); - - // Object specific methods - vtkSplineContextRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSplineContextRepresentation'); - -// ---------------------------------------------------------------------------- - -var vtkSplineContextRepresentation$1 = { - newInstance, - extend -}; - -export { vtkSplineContextRepresentation$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/TranslateTransformHandleRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/TranslateTransformHandleRepresentation.js deleted file mode 100644 index 981dae12..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/TranslateTransformHandleRepresentation.js +++ /dev/null @@ -1,57 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkGlyphRepresentation from './GlyphRepresentation.js'; -import vtkConeSource from '../../Filters/Sources/ConeSource.js'; -import vtkTransformHandleSource from './TranslateTransformHandleRepresentation/TransformHandleSource.js'; - -// ---------------------------------------------------------------------------- -// vtkTranslateTransformHandleRepresentation methods -// ---------------------------------------------------------------------------- - -function vtkTranslateTransformHandleRepresentation(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkTranslateTransformHandleRepresentation'); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -function defaultValues(initialValues) { - const source = vtkTransformHandleSource.newInstance({ - height: initialValues.height ?? 1, - radius: initialValues.radius ?? 1, - resolution: initialValues.glyphResolution ?? 12, - direction: [0, 0, 1] - }); - const cone1 = vtkConeSource.newInstance(initialValues.coneSource); - const cone2 = vtkConeSource.newInstance(initialValues.coneSource); - source.addInputConnection(cone1.getOutputPort()); - source.addInputConnection(cone2.getOutputPort()); - return { - _pipeline: { - glyph: source - }, - ...initialValues - }; -} -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - vtkGlyphRepresentation.extend(publicAPI, model, defaultValues(initialValues)); - - // Object specific methods - vtkTranslateTransformHandleRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkTranslateTransformHandleRepresentation'); - -// ---------------------------------------------------------------------------- - -var vtkTranslateTransformHandleRepresentation$1 = { - newInstance, - extend -}; - -export { vtkTranslateTransformHandleRepresentation$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/TranslateTransformHandleRepresentation/TransformHandleSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/TranslateTransformHandleRepresentation/TransformHandleSource.js deleted file mode 100644 index fa4624cf..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/TranslateTransformHandleRepresentation/TransformHandleSource.js +++ /dev/null @@ -1,85 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import vtkMatrixBuilder from '../../../Common/Core/MatrixBuilder.js'; -import vtkAppendPolyData from '../../../Filters/General/AppendPolyData.js'; -import vtkCylinderSource from '../../../Filters/Sources/CylinderSource.js'; - -function rotatePolyData(pd, direction) { - const points = pd.getPoints().getData(); - vtkMatrixBuilder.buildFromRadian().rotateFromDirections([0, 1, 0], direction).apply(points); - pd.getPoints().modified(); - pd.modified(); -} -function translatePolyData(pd, translation) { - const points = pd.getPoints().getData(); - vtkMatrixBuilder.buildFromRadian().translate(...translation).apply(points); - pd.modified(); -} -function vtkTransformHandleSource(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkTransformHandleSource'); - function requestData(inData, outData) { - const cylinderSource = vtkCylinderSource.newInstance({ - height: model.height, - initAngle: model.initAngle, - radius: model.radius, - resolution: model.resolution, - capping: model.capping, - pointType: model.pointType, - center: [0, 0, 0], - direction: [0, 1, 0] - }); - const appendFilter = vtkAppendPolyData.newInstance(); - appendFilter.setInputConnection(cylinderSource.getOutputPort(), 0); - if (inData[0]) { - translatePolyData(inData[0], [0, model.height / 2, 0]); - appendFilter.addInputData(inData[0]); - } - if (inData[1]) { - rotatePolyData(inData[1], [0, -1, 0]); - translatePolyData(inData[1], [0, -model.height / 2, 0]); - appendFilter.addInputData(inData[1]); - } - const poly = appendFilter.getOutputData(); - const points = poly.getPoints().getData(); - - // Apply transformation to the points coordinates - vtkMatrixBuilder.buildFromRadian().translate(...model.center).rotateFromDirections([0, 1, 0], model.direction).translate(...model.center.map(c => c * -1)).apply(points); - - // Update output - outData[0] = poly; - } - - // Expose methods - publicAPI.requestData = requestData; -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - capPolyData: null -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkCylinderSource.extend(publicAPI, model, initialValues); - macro.algo(publicAPI, model, 2, 1); - vtkTransformHandleSource(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkTransformHandleSource'); - -// ---------------------------------------------------------------------------- - -var vtkTransformHandleSource$1 = { - newInstance, - extend -}; - -export { vtkTransformHandleSource$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/WidgetRepresentation.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/WidgetRepresentation.d.ts deleted file mode 100644 index 9f20fcab..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/WidgetRepresentation.d.ts +++ /dev/null @@ -1,118 +0,0 @@ -import vtkDataArray from './../../Common/Core/DataArray'; -import vtkPolyData from './../../Common/DataModel/PolyData'; -import { vtkObject } from './../../interfaces'; -import vtkProp from './../../Rendering/Core/Prop'; -import { IDisplayScaleParams } from './../Core/WidgetManager'; - -export interface IWidgetRepresentationInitialValues { - labels?: Array; - coincidentTopologyParameters?: object; - displayScaleParams?: IDisplayScaleParams; - scaleInPixels?: boolean; -} - -export interface vtkWidgetRepresentation extends vtkProp { - getLabels(): Array; - setLabels(labels: Array): void; - - /** - * Gets the coincident topology parameters applied on the actor mappers - */ - getCoincidentTopologyParameters(): object; - /** - * Sets the coincident topology parameters applied on the actor mappers - */ - setCoincidentTopologyParameters(parameters: object): boolean; - - /** - * Sets the current view and camera scale parameters. - * Called by the WidgetManager. - * @see setScaleInPixels() - */ - setDisplayScaleParams(params: object): boolean; - - /** - * Gets wether actors should have a fix size in display coordinates. - * @see setScaleInPixels() - */ - getScaleInPixels(): boolean; - - /** - * Sets wether actors should have a fix size in display coordinates. - * @see getScaleInPixels() - */ - setScaleInPixels(scale: boolean): boolean; -} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkWidgetRepresentation characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {IWidgetRepresentationInitialValues} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IWidgetRepresentationInitialValues -): void; - -/** - * Method use to create a new instance of vtkWidgetRepresentation - * @param {IWidgetRepresentationInitialValues} [initialValues] for pre-setting some of its content - */ -export function newInstance( - initialValues?: IWidgetRepresentationInitialValues -): vtkWidgetRepresentation; - -/** - * Static function to get the pixel size of a 3D point. - * @param {Number[]} worldCoord 3D point in world coordinates - * @param {IDisplayScaleParams} displayScaleParams Display and camera information - */ -export function getPixelWorldHeightAtCoord( - worldCoord: number[], - displayScaleParams: IDisplayScaleParams -): number[]; - -export interface IWidgetPipeline { - source?: object; - filter?: object; - glyph?: object; - mapper: object; - actor: object; -} -/** - * If provided, connects `source` (dataset or filter) to `filter`. - * If provided, connects `filter` (otherwise `source`) to mapper - * If provided, connects glyph as 2nd input to mapper. This is typically for the glyph mapper. - * Connects mapper to actor. - * @param {IWidgetPipeline} pipeline of source, filter, mapper and actor to connect - */ -export function connectPipeline(pipeline: IWidgetPipeline): void; - -/** - * Allocate or resize a vtkPoint(name='point'), vtkCellArray (name= - * 'line'|'poly') or vtkDataArray (name=any) and add it to the vtkPolyData. - * If allocated, the array is automatically added to the polydata - * Connects mapper to actor. - * @param {vtkPolyData} polyData The polydata to add array to - * @param {string} name The name of the array to add (special handling for - * 'point', 'line, 'poly') - * @param {Number} numberOfTuples The number of tuples to (re)allocate. - * @param {String} dataType The typed array type name. - * @param {Number} numberOfComponents The number of components of the array. - */ -export function allocateArray( - polyData: vtkPolyData, - name: string, - numberOfTuples: number, - dataType?: string, - numberOfComponents?: number -): vtkDataArray | null; - -export declare const vtkWidgetRepresentation: { - newInstance: typeof newInstance; - extend: typeof extend; -}; -export default vtkWidgetRepresentation; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/WidgetRepresentation.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/WidgetRepresentation.js deleted file mode 100644 index 9c074749..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/WidgetRepresentation.js +++ /dev/null @@ -1,323 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkProp from '../../Rendering/Core/Prop.js'; -import vtkCellArray from '../../Common/Core/CellArray.js'; -import vtkDataArray from '../../Common/Core/DataArray.js'; -import vtkPoints from '../../Common/Core/Points.js'; -import { Behavior } from './WidgetRepresentation/Constants.js'; -import { RenderingTypes } from '../Core/WidgetManager/Constants.js'; -import { CATEGORIES } from '../../Rendering/Core/Mapper/CoincidentTopologyHelper.js'; -import { POLYDATA_FIELDS } from '../../Common/DataModel/PolyData/Constants.js'; - -const { - vtkErrorMacro, - vtkWarningMacro -} = macro; - -// ---------------------------------------------------------------------------- -const STYLE_CATEGORIES = ['active', 'inactive', 'static']; -function applyCoincidentTopologyParametersToMapper(mapper, parameters) { - if (mapper && mapper.setResolveCoincidentTopologyToPolygonOffset) { - mapper.setResolveCoincidentTopologyToPolygonOffset(); - CATEGORIES.forEach(category => { - if (parameters[category]) { - const methodName = `setRelativeCoincidentTopology${category}OffsetParameters`; - if (mapper[methodName]) { - const { - factor, - offset - } = parameters[category]; - mapper[methodName](factor, offset); - } - } - }); - } -} -function mergeStyles(elementNames) { - for (var _len = arguments.length, stylesToMerge = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - stylesToMerge[_key - 1] = arguments[_key]; - } - const newStyleObject = { - active: {}, - inactive: {}, - static: {} - }; - STYLE_CATEGORIES.forEach(category => { - const cat = newStyleObject[category]; - elementNames.forEach(name => { - if (!cat[name]) { - cat[name] = {}; - } - stylesToMerge.filter(s => s && s[category] && s[category][name]).forEach(s => Object.assign(cat[name], s[category][name])); - }); - }); - return newStyleObject; -} - -// ---------------------------------------------------------------------------- - -function applyStyles(pipelines, styles, activeActor) { - if (!activeActor) { - // static - Object.keys(styles.static).forEach(name => { - if (pipelines[name]) { - pipelines[name].actor.getProperty().set(styles.static[name]); - } - }); - // inactive - Object.keys(styles.inactive).forEach(name => { - if (pipelines[name]) { - pipelines[name].actor.getProperty().set(styles.inactive[name]); - } - }); - } else { - Object.keys(pipelines).forEach(name => { - const style = pipelines[name].actor === activeActor ? styles.active[name] : styles.inactive[name]; - if (style) { - pipelines[name].actor.getProperty().set(style); - } - }); - } -} - -// ---------------------------------------------------------------------------- - -function connectPipeline(pipeline) { - let source = pipeline.source; - if (pipeline.filter) { - if (source.isA('vtkDataSet')) { - pipeline.filter.setInputData(source); - } else { - pipeline.filter.setInputConnection(source.getOutputPort()); - } - source = pipeline.filter; - } - if (source) { - if (source.isA('vtkDataSet')) { - pipeline.mapper.setInputData(source); - } else { - pipeline.mapper.setInputConnection(source.getOutputPort()); - } - } - if (pipeline.glyph) { - pipeline.mapper.setInputConnection(pipeline.glyph.getOutputPort(), 1); - } - pipeline.actor.setMapper(pipeline.mapper); -} - -// Internal convenient function to create a data array: -function allocateArray(polyData, name, numberOfTuples, dataType, numberOfComponents) { - // Check first whether name is points, verts, lines, polys, otherwise it is a point data array. - let dataArray = polyData[`get${macro.capitalize(name)}`]?.() || polyData.getPointData().getArrayByName(name); - if (!dataArray || dataType !== undefined && dataArray.getDataType() !== dataType || numberOfComponents !== undefined && dataArray.getNumberOfComponents() !== numberOfComponents) { - let arrayType = vtkDataArray; - let arrayDataType = dataType; - let arrayNumberOfComponents = numberOfComponents; - if (name === 'points') { - arrayType = vtkPoints; - arrayDataType = arrayDataType ?? 'Float32Array'; - arrayNumberOfComponents = numberOfComponents ?? 3; - } else if (POLYDATA_FIELDS.includes(name)) { - arrayType = vtkCellArray; - arrayDataType = arrayDataType ?? 'Uint16Array'; - arrayNumberOfComponents = numberOfComponents ?? 1; - } else { - // data array - arrayDataType = arrayDataType ?? 'Float32Array'; - arrayNumberOfComponents = numberOfComponents ?? 1; - } - dataArray = arrayType.newInstance({ - name, - dataType: arrayDataType, - numberOfComponents: arrayNumberOfComponents, - size: arrayNumberOfComponents * numberOfTuples, - empty: numberOfTuples === 0 - }); - if (name === 'points' || POLYDATA_FIELDS.includes(name)) { - polyData[`set${macro.capitalize(name)}`](dataArray); - } else { - polyData.getPointData().addArray(dataArray); - } - } else if (dataArray.getNumberOfTuples() !== numberOfTuples) { - dataArray.resize(numberOfTuples); - } - return dataArray; -} - -// ---------------------------------------------------------------------------- -// vtkWidgetRepresentation -// ---------------------------------------------------------------------------- - -function vtkWidgetRepresentation(publicAPI, model) { - // Set our className - model.classHierarchy.push('vtkWidgetRepresentation'); - - // Internal cache - const cache = { - mtimes: {}, - states: [] - }; - model._onCoincidentTopologyParametersChanged = () => { - publicAPI.getActors().forEach(actor => { - applyCoincidentTopologyParametersToMapper(actor.getMapper(), model.coincidentTopologyParameters); - }); - }; - - // -------------------------------------------------------------------------- - publicAPI.getActors = () => model.actors; - publicAPI.getNestedProps = publicAPI.getActors; - // -------------------------------------------------------------------------- - - publicAPI.setLabels = function () { - for (var _len2 = arguments.length, labels = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - labels[_key2] = arguments[_key2]; - } - if (labels.length === 1) { - model.labels = [].concat(labels[0]); - } else { - model.labels = labels; - } - publicAPI.modified(); - }; - publicAPI.getRepresentationStates = function () { - let input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : model.inputData[0]; - if (cache.mtimes.representation === publicAPI.getMTime() && cache.mtimes.input === input.getMTime()) { - return cache.states; - } - - // Reinitialize cache - cache.mtimes.representation = publicAPI.getMTime(); - cache.mtimes.input = input.getMTime(); - cache.states = []; - - // Fill states that are going to be used in the representation - model.labels.forEach(name => { - cache.states = cache.states.concat(input.getStatesWithLabel(name) || []); - }); - return cache.states; - }; - publicAPI.getSelectedState = (prop, compositeID) => { - const representationStates = publicAPI.getRepresentationStates(); - if (compositeID < representationStates.length) { - return representationStates[compositeID]; - } - vtkErrorMacro(`Representation ${publicAPI.getClassName()} should implement getSelectedState(prop, compositeID) method.`); - return null; - }; - publicAPI.updateActorVisibility = function () { - let renderingType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : RenderingTypes.FRONT_BUFFER; - let ctxVisible = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - let handleVisible = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - let otherFlag = true; - switch (model.behavior) { - case Behavior.HANDLE: - otherFlag = renderingType === RenderingTypes.PICKING_BUFFER || handleVisible; - break; - case Behavior.CONTEXT: - otherFlag = ctxVisible; - break; - default: - otherFlag = true; - break; - } - const visibilityFlag = otherFlag; - for (let i = 0; i < model.actors.length; i++) { - if (model.visibilityFlagArray) { - model.actors[i].setVisibility(visibilityFlag && model.visibilityFlagArray[i]); - } else { - model.actors[i].setVisibility(visibilityFlag); - } - } - if (model.alwaysVisibleActors) { - for (let i = 0; i < model.alwaysVisibleActors.length; i++) { - model.alwaysVisibleActors[i].setVisibility(true); - } - } - }; - - // Add warning to model.actors.push - model.actors.push = function () { - vtkWarningMacro('You should use publicAPI.addActor() to initialize the actor properly'); - for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { - args[_key3] = arguments[_key3]; - } - args.forEach(actor => publicAPI.addActor(actor)); - }; - publicAPI.addActor = actor => { - applyCoincidentTopologyParametersToMapper(actor.getMapper(), model.coincidentTopologyParameters); - Array.prototype.push.apply(model.actors, [actor]); - }; - - // Make sure setting the labels at build time works with string/array... - publicAPI.setLabels(model.labels); -} - -// ---------------------------------------------------------------------------- -// Object factory -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - return { - activeScaleFactor: 1.2, - activeColor: 1, - useActiveColor: true, - actors: [], - labels: [], - behavior: Behavior.CONTEXT, - coincidentTopologyParameters: { - Point: { - factor: -1.0, - offset: -1.0 - }, - Line: { - factor: -1.0, - offset: -1.0 - }, - Polygon: { - factor: -1.0, - offset: -1.0 - } - }, - scaleInPixels: false, - displayScaleParams: { - dispHeightFactor: 1, - cameraPosition: [0, 0, 0], - cameraDir: [1, 0, 0], - isParallel: false, - rendererPixelDims: [1, 1] - }, - _internalArrays: {}, - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - // Object methods - vtkProp.extend(publicAPI, model, defaultValues(initialValues)); - macro.algo(publicAPI, model, 1, 1); - macro.get(publicAPI, model, ['labels', 'displayScaleParams', 'coincidentTopologyParameters']); - macro.set(publicAPI, model, [{ - type: 'object', - name: 'displayScaleParams' - }, { - type: 'object', - name: 'coincidentTopologyParameters' - }]); - macro.setGet(publicAPI, model, ['scaleInPixels', 'activeScaleFactor', 'activeColor', 'useActiveColor']); - - // Object specific methods - vtkWidgetRepresentation(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -var vtkWidgetRepresentation$1 = { - extend, - mergeStyles, - applyStyles, - connectPipeline -}; - -export { allocateArray, applyStyles, connectPipeline, vtkWidgetRepresentation$1 as default, extend, mergeStyles }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/WidgetRepresentation/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/WidgetRepresentation/Constants.js deleted file mode 100644 index bb77f706..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Representations/WidgetRepresentation/Constants.js +++ /dev/null @@ -1,9 +0,0 @@ -const Behavior = { - HANDLE: 0, - CONTEXT: 1 -}; -var Constants = { - Behavior -}; - -export { Behavior, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D.js deleted file mode 100644 index 5716c2e0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D.js +++ /dev/null @@ -1,35 +0,0 @@ -import vtkAngleWidget from './Widgets3D/AngleWidget.js'; -import vtkEllipseWidget from './Widgets3D/EllipseWidget.js'; -import vtkImageCroppingWidget from './Widgets3D/ImageCroppingWidget.js'; -import vtkImplicitPlaneWidget from './Widgets3D/ImplicitPlaneWidget.js'; -import vtkInteractiveOrientationWidget from './Widgets3D/InteractiveOrientationWidget.js'; -import vtkLabelWidget from './Widgets3D/LabelWidget.js'; -import vtkLineWidget from './Widgets3D/LineWidget.js'; -import vtkPaintWidget from './Widgets3D/PaintWidget.js'; -import vtkPolyLineWidget from './Widgets3D/PolyLineWidget.js'; -import vtkRectangleWidget from './Widgets3D/RectangleWidget.js'; -import vtkResliceCursorWidget from './Widgets3D/ResliceCursorWidget.js'; -import vtkShapeWidget from './Widgets3D/ShapeWidget.js'; -import vtkSphereWidget from './Widgets3D/SphereWidget.js'; -import vtkSplineWidget from './Widgets3D/SplineWidget.js'; -import vtkTransformControlsWidget from './Widgets3D/TransformControlsWidget.js'; - -var Widgets3D = { - vtkAngleWidget, - vtkEllipseWidget, - vtkImageCroppingWidget, - vtkImplicitPlaneWidget, - vtkInteractiveOrientationWidget, - vtkLabelWidget, - vtkLineWidget, - vtkPaintWidget, - vtkPolyLineWidget, - vtkRectangleWidget, - vtkResliceCursorWidget, - vtkShapeWidget, - vtkSphereWidget, - vtkSplineWidget, - vtkTransformControlsWidget -}; - -export { Widgets3D as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/AngleWidget.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/AngleWidget.js deleted file mode 100644 index d144389d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/AngleWidget.js +++ /dev/null @@ -1,107 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkAbstractWidgetFactory from '../Core/AbstractWidgetFactory.js'; -import vtkPlaneManipulator from '../Manipulators/PlaneManipulator.js'; -import vtkPolyLineRepresentation from '../Representations/PolyLineRepresentation.js'; -import vtkSphereHandleRepresentation from '../Representations/SphereHandleRepresentation.js'; -import { s as subtract, Z as angleBetweenVectors } from '../../Common/Core/Math/index.js'; -import widgetBehavior from './AngleWidget/behavior.js'; -import generateState from './AngleWidget/state.js'; -import { ViewTypes } from '../Core/WidgetManager/Constants.js'; - -// ---------------------------------------------------------------------------- -// Factory -// ---------------------------------------------------------------------------- - -function vtkAngleWidget(publicAPI, model) { - model.classHierarchy.push('vtkAngleWidget'); - - // --- Widget Requirement --------------------------------------------------- - - model.methodsToLink = ['activeScaleFactor', 'activeColor', 'useActiveColor', 'glyphResolution', 'defaultScale', 'scaleInPixels']; - model._onManipulatorChanged = () => { - model.widgetState.getMoveHandle().setManipulator(model.manipulator); - model.widgetState.getHandleList().forEach(handle => { - handle.setManipulator(model.manipulator); - }); - }; - publicAPI.getRepresentationsForViewType = viewType => { - switch (viewType) { - case ViewTypes.DEFAULT: - case ViewTypes.GEOMETRY: - case ViewTypes.SLICE: - case ViewTypes.VOLUME: - default: - return [{ - builder: vtkSphereHandleRepresentation, - labels: ['handles', 'moveHandle'] - }, { - builder: vtkPolyLineRepresentation, - labels: ['handles', 'moveHandle'] - }]; - } - }; - - // --- Public methods ------------------------------------------------------- - - // Returns angle in radians - publicAPI.getAngle = () => { - const handles = model.widgetState.getHandleList(); - if (handles.length !== 3) { - return 0; - } - if (!handles[0].getOrigin() || !handles[1].getOrigin() || !handles[2].getOrigin()) { - return 0; - } - const vec1 = [0, 0, 0]; - const vec2 = [0, 0, 0]; - subtract(handles[0].getOrigin(), handles[1].getOrigin(), vec1); - subtract(handles[2].getOrigin(), handles[1].getOrigin(), vec2); - return angleBetweenVectors(vec1, vec2); - }; - - // -------------------------------------------------------------------------- - // initialization - // -------------------------------------------------------------------------- - - model.widgetState.onBoundsChange(bounds => { - const center = [(bounds[0] + bounds[1]) * 0.5, (bounds[2] + bounds[3]) * 0.5, (bounds[4] + bounds[5]) * 0.5]; - model.widgetState.getMoveHandle().setOrigin(center); - }); - - // Default manipulator - publicAPI.setManipulator(model.manipulator || vtkPlaneManipulator.newInstance({ - useCameraNormal: true - })); -} - -// ---------------------------------------------------------------------------- - -const defaultValues = initialValues => ({ - // manipulator: null, - behavior: widgetBehavior, - widgetState: generateState(), - ...initialValues -}); - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - vtkAbstractWidgetFactory.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['manipulator']); - vtkAngleWidget(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkAngleWidget'); - -// ---------------------------------------------------------------------------- - -var vtkAngleWidget$1 = { - newInstance, - extend -}; - -export { vtkAngleWidget$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/AngleWidget/behavior.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/AngleWidget/behavior.js deleted file mode 100644 index 908462fc..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/AngleWidget/behavior.js +++ /dev/null @@ -1,150 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import { k as add } from '../../../Common/Core/Math/index.js'; -import vtkBoundingBox from '../../../Common/DataModel/BoundingBox.js'; -import vtkPointPicker from '../../../Rendering/Core/PointPicker.js'; - -const MAX_POINTS = 3; -function widgetBehavior(publicAPI, model) { - model.classHierarchy.push('vtkAngleWidgetProp'); - model._isDragging = false; - const picker = vtkPointPicker.newInstance(); - picker.setPickFromList(1); - publicAPI.getBounds = () => model.widgetState.getHandleList().reduce((bounds, handle) => vtkBoundingBox.inflate(vtkBoundingBox.addPoint(bounds, ...handle.getOrigin()), publicAPI.getScaleInPixels() ? 0 : handle.getScale1() / 2), [...vtkBoundingBox.INIT_BOUNDS]); - - // -------------------------------------------------------------------------- - // Display 2D - // -------------------------------------------------------------------------- - - publicAPI.setDisplayCallback = callback => model.representations[0].setDisplayCallback(callback); - - // -------------------------------------------------------------------------- - // Interactor events - // -------------------------------------------------------------------------- - - function ignoreKey(e) { - return e.altKey || e.controlKey || e.shiftKey; - } - - // -------------------------------------------------------------------------- - // Left press: Select handle to drag - // -------------------------------------------------------------------------- - - publicAPI.handleLeftButtonPress = e => { - if (!model.activeState || !model.activeState.getActive() || !model.pickable || ignoreKey(e)) { - return macro.VOID; - } - picker.initializePickList(); - picker.setPickList(publicAPI.getNestedProps()); - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - const { - worldCoords - } = manipulator.handleEvent(e, model._apiSpecificRenderWindow); - if (model.activeState === model.widgetState.getMoveHandle() && model.widgetState.getHandleList().length < MAX_POINTS && manipulator) { - // Commit handle to location - const moveHandle = model.widgetState.getMoveHandle(); - moveHandle.setOrigin(...worldCoords); - const newHandle = model.widgetState.addHandle(); - newHandle.setOrigin(...moveHandle.getOrigin()); - newHandle.setColor(moveHandle.getColor()); - newHandle.setScale1(moveHandle.getScale1()); - newHandle.setManipulator(manipulator); - } else if (model.dragable) { - model._isDragging = true; - model._apiSpecificRenderWindow.setCursor('grabbing'); - model._interactor.requestAnimation(publicAPI); - } - publicAPI.invokeStartInteractionEvent(); - return macro.EVENT_ABORT; - }; - - // -------------------------------------------------------------------------- - // Mouse move: Drag selected handle / Handle follow the mouse - // -------------------------------------------------------------------------- - - publicAPI.handleMouseMove = callData => { - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - if (manipulator && model.pickable && model.dragable && model.activeState && model.activeState.getActive() && !ignoreKey(callData)) { - const { - worldCoords, - worldDelta - } = manipulator.handleEvent(callData, model._apiSpecificRenderWindow); - const isHandleMoving = model.activeState === model.widgetState.getMoveHandle() || model._isDragging; - if (isHandleMoving && worldCoords.length && model.activeState.setOrigin) { - const curOrigin = model.activeState.getOrigin(); - if (curOrigin) { - model.activeState.setOrigin(add(curOrigin, worldDelta, [])); - } else { - model.activeState.setOrigin(worldCoords); - } - publicAPI.invokeInteractionEvent(); - return macro.EVENT_ABORT; - } - } - if (model.hasFocus) { - model._widgetManager.disablePicking(); - } - return macro.VOID; - }; - - // -------------------------------------------------------------------------- - // Left release: Finish drag / Create new handle - // -------------------------------------------------------------------------- - - publicAPI.handleLeftButtonRelease = () => { - if (!model.activeState || !model.activeState.getActive() || !model.pickable) { - return macro.VOID; - } - if (model.hasFocus && model.widgetState.getHandleList().length === MAX_POINTS) { - publicAPI.loseFocus(); - return macro.VOID; - } - if (model._isDragging) { - model._apiSpecificRenderWindow.setCursor('pointer'); - model.widgetState.deactivate(); - model._interactor.cancelAnimation(publicAPI); - model._isDragging = false; - } else if (model.activeState !== model.widgetState.getMoveHandle()) { - model.widgetState.deactivate(); - } - if (model.hasFocus && !model.activeState || model.activeState && !model.activeState.getActive()) { - model._widgetManager.enablePicking(); - model._interactor.render(); - } - publicAPI.invokeEndInteractionEvent(); - return macro.EVENT_ABORT; - }; - - // -------------------------------------------------------------------------- - // Focus API - modeHandle follow mouse when widget has focus - // -------------------------------------------------------------------------- - - publicAPI.grabFocus = () => { - if (!model.hasFocus && model.widgetState.getHandleList().length < MAX_POINTS) { - model.activeState = model.widgetState.getMoveHandle(); - model.activeState.activate(); - model.activeState.setVisible(true); - model._interactor.requestAnimation(publicAPI); - publicAPI.invokeStartInteractionEvent(); - } - model.hasFocus = true; - }; - - // -------------------------------------------------------------------------- - - publicAPI.loseFocus = () => { - if (model.hasFocus) { - model._interactor.cancelAnimation(publicAPI); - publicAPI.invokeEndInteractionEvent(); - } - model.widgetState.deactivate(); - model.widgetState.getMoveHandle().deactivate(); - model.widgetState.getMoveHandle().setVisible(false); - model.widgetState.getMoveHandle().setOrigin(null); - model.activeState = null; - model.hasFocus = false; - model._widgetManager.enablePicking(); - model._interactor.render(); - }; -} - -export { widgetBehavior as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/AngleWidget/state.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/AngleWidget/state.js deleted file mode 100644 index d9aa772f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/AngleWidget/state.js +++ /dev/null @@ -1,22 +0,0 @@ -import vtkStateBuilder from '../../Core/StateBuilder.js'; - -function generateState() { - return vtkStateBuilder.createBuilder().addStateFromMixin({ - labels: ['moveHandle'], - mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator'], - name: 'moveHandle', - initialValues: { - scale1: 30, - visible: false - } - }).addDynamicMixinState({ - labels: ['handles'], - mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator'], - name: 'handle', - initialValues: { - scale1: 30 - } - }).build(); -} - -export { generateState as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/EllipseWidget.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/EllipseWidget.js deleted file mode 100644 index 3e88f514..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/EllipseWidget.js +++ /dev/null @@ -1,90 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkCircleContextRepresentation from '../Representations/CircleContextRepresentation.js'; -import vtkPlaneManipulator from '../Manipulators/PlaneManipulator.js'; -import vtkShapeWidget from './ShapeWidget.js'; -import vtkSphereHandleRepresentation from '../Representations/SphereHandleRepresentation.js'; -import widgetBehavior from './EllipseWidget/behavior.js'; -import generateState from './EllipseWidget/state.js'; -import { BehaviorCategory, ShapeBehavior } from './ShapeWidget/Constants.js'; -import { ViewTypes } from '../Core/WidgetManager/Constants.js'; - -// ---------------------------------------------------------------------------- -// Factory -// ---------------------------------------------------------------------------- - -function vtkEllipseWidget(publicAPI, model) { - model.classHierarchy.push('vtkEllipseWidget'); - - // --- Widget Requirement --------------------------------------------------- - - model.methodsToLink = [...model.methodsToLink, 'activeScaleFactor', 'activeColor', 'useActiveColor', 'glyphResolution', 'defaultScale', 'drawBorder', 'drawFace', 'opacity']; - publicAPI.getRepresentationsForViewType = viewType => { - switch (viewType) { - case ViewTypes.DEFAULT: - case ViewTypes.GEOMETRY: - case ViewTypes.SLICE: - case ViewTypes.VOLUME: - default: - return [{ - builder: vtkSphereHandleRepresentation, - labels: ['moveHandle'] - }, { - builder: vtkCircleContextRepresentation, - labels: ['ellipseHandle'] - }]; - } - }; - - // -------------------------------------------------------------------------- - // initialization - // -------------------------------------------------------------------------- - - publicAPI.setManipulator(model.manipulator || vtkPlaneManipulator.newInstance({ - useCameraNormal: true - })); -} - -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - return { - behavior: widgetBehavior, - widgetState: generateState(), - modifierBehavior: { - None: { - [BehaviorCategory.PLACEMENT]: ShapeBehavior[BehaviorCategory.PLACEMENT].CLICK_AND_DRAG, - [BehaviorCategory.POINTS]: ShapeBehavior[BehaviorCategory.POINTS].CENTER_TO_CORNER, - [BehaviorCategory.RATIO]: ShapeBehavior[BehaviorCategory.RATIO].FREE - }, - Shift: { - [BehaviorCategory.RATIO]: ShapeBehavior[BehaviorCategory.RATIO].FIXED - }, - Control: { - [BehaviorCategory.POINTS]: ShapeBehavior[BehaviorCategory.POINTS].CORNER_TO_CORNER - } - }, - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - vtkShapeWidget.extend(publicAPI, model, defaultValues(initialValues)); - macro.setGet(publicAPI, model, ['widgetState']); - vtkEllipseWidget(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkEllipseWidget'); - -// ---------------------------------------------------------------------------- - -var vtkEllipseWidget$1 = { - newInstance, - extend -}; - -export { vtkEllipseWidget$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/EllipseWidget/behavior.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/EllipseWidget/behavior.js deleted file mode 100644 index 94e123f4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/EllipseWidget/behavior.js +++ /dev/null @@ -1,35 +0,0 @@ -import widgetBehavior$1 from '../ShapeWidget/behavior.js'; -import { vec3 } from 'gl-matrix'; - -function widgetBehavior(publicAPI, model) { - model.shapeHandle = model.widgetState.getEllipseHandle(); - model.point1Handle = model.widgetState.getPoint1Handle(); - model.point2Handle = model.widgetState.getPoint2Handle(); - model.point1Handle.setManipulator(model.manipulator); - model.point2Handle.setManipulator(model.manipulator); - - // We inherit shapeBehavior - widgetBehavior$1(publicAPI, model); - const superClass = { - ...publicAPI - }; - model.classHierarchy.push('vtkEllipseWidgetProp'); - publicAPI.setCorners = (point1, point2) => { - if (superClass.setCorners) { - superClass.setCorners(point1, point2); - } - const center = [0.5 * (point1[0] + point2[0]), 0.5 * (point1[1] + point2[1]), 0.5 * (point1[2] + point2[2])]; - const diagonal = [0, 0, 0]; - vec3.subtract(diagonal, point2, center); - const right = model.shapeHandle.getRight(); - const up = model.shapeHandle.getUp(); - const dir = model.shapeHandle.getDirection(); - const rightComponent = vec3.dot(diagonal, right); - const upComponent = vec3.dot(diagonal, up); - const dirComponent = vec3.dot(diagonal, dir); - model.shapeHandle.setOrigin(center); - model.shapeHandle.setScale3([rightComponent, upComponent, dirComponent]); - }; -} - -export { widgetBehavior as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/EllipseWidget/state.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/EllipseWidget/state.js deleted file mode 100644 index 8380f3c7..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/EllipseWidget/state.js +++ /dev/null @@ -1,51 +0,0 @@ -import vtkStateBuilder from '../../Core/StateBuilder.js'; -import { TextPosition } from '../ShapeWidget/Constants.js'; - -function generateState() { - return vtkStateBuilder.createBuilder().addStateFromMixin({ - labels: ['moveHandle'], - mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator'], - name: 'point1Handle', - initialValues: { - scale1: 10, - visible: false - } - }).addStateFromMixin({ - labels: ['moveHandle'], - mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator'], - name: 'point2Handle', - initialValues: { - scale1: 10, - visible: false - } - }).addStateFromMixin({ - labels: ['ellipseHandle'], - mixins: ['origin', 'color', 'scale3', 'visible', 'orientation'], - name: 'ellipseHandle', - initialValues: { - // visible: false, - scale3: [1, 1, 1] - } - }) - // FIXME: How to not duplicate with RectangleWidget - .addStateFromMixin({ - labels: ['SVGtext'], - mixins: ['origin', 'color', 'text', 'visible'], - name: 'text', - initialValues: { - /* text is empty to set a text filed in the SVGLayer and to avoid - * displaying text before positioning the handles */ - text: '' - } - }) - // FIXME: to move in text handle sub state - .addField({ - name: 'textPosition', - initialValue: [TextPosition.CENTER, TextPosition.CENTER, TextPosition.CENTER] - }).addField({ - name: 'textWorldMargin', - initialValue: 0 - }).build(); -} - -export { generateState as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ImageCroppingWidget.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ImageCroppingWidget.js deleted file mode 100644 index e51ed75c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ImageCroppingWidget.js +++ /dev/null @@ -1,171 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkAbstractWidgetFactory from '../Core/AbstractWidgetFactory.js'; -import vtkPlaneManipulator from '../Manipulators/PlaneManipulator.js'; -import vtkLineManipulator from '../Manipulators/LineManipulator.js'; -import vtkSphereHandleRepresentation from '../Representations/SphereHandleRepresentation.js'; -import vtkCroppingOutlineRepresentation from '../Representations/CroppingOutlineRepresentation.js'; -import widgetBehavior from './ImageCroppingWidget/behavior.js'; -import build from './ImageCroppingWidget/state.js'; -import { transformVec3, AXES } from './ImageCroppingWidget/helpers.js'; -import { ViewTypes } from '../Core/WidgetManager/Constants.js'; - -// ---------------------------------------------------------------------------- - -// ---------------------------------------------------------------------------- -// Factory -// ---------------------------------------------------------------------------- - -function vtkImageCroppingWidget(publicAPI, model) { - model.classHierarchy.push('vtkImageCroppingWidget'); - const superClass = { - ...publicAPI - }; - let stateSub = null; - - // -------------------------------------------------------------------------- - - function setHandlesEnabled(label, flag) { - model.widgetState.getStatesWithLabel(label).forEach(handle => { - handle.setVisible(flag); - }); - } - - // Set the visibility of the three classes of handles: face, edge, corner - publicAPI.setFaceHandlesEnabled = flag => setHandlesEnabled('faces', flag); - publicAPI.setEdgeHandlesEnabled = flag => setHandlesEnabled('edges', flag); - publicAPI.setCornerHandlesEnabled = flag => setHandlesEnabled('corners', flag); - - // -------------------------------------------------------------------------- - - // Copies the transforms and dimension of a vtkImageData - publicAPI.copyImageDataDescription = im => { - model.widgetState.setIndexToWorldT(...im.getIndexToWorld()); - model.widgetState.setWorldToIndexT(...im.getWorldToIndex()); - const dims = im.getDimensions(); - const planeState = model.widgetState.getCroppingPlanes(); - planeState.setPlanes([0, dims[0], 0, dims[1], 0, dims[2]]); - publicAPI.modified(); - }; - - // -------------------------------------------------------------------------- - - // Updates handle positions based on cropping planes - publicAPI.updateHandles = () => { - const planes = model.widgetState.getCroppingPlanes().getPlanes(); - const midpts = [(planes[0] + planes[1]) / 2, (planes[2] + planes[3]) / 2, (planes[4] + planes[5]) / 2]; - const iAxis = [planes[0], midpts[0], planes[1]]; - const jAxis = [planes[2], midpts[1], planes[3]]; - const kAxis = [planes[4], midpts[2], planes[5]]; - const indexToWorldT = model.widgetState.getIndexToWorldT(); - const getAxis = a => AXES[a]; - for (let i = 0; i < 3; i++) { - for (let j = 0; j < 3; j++) { - for (let k = 0; k < 3; k++) { - // skip center of box - if (i !== 1 || j !== 1 || k !== 1) { - const name = [i, j, k].map(getAxis).join(''); - const coord = transformVec3([iAxis[i], jAxis[j], kAxis[k]], indexToWorldT); - const [handle] = model.widgetState.getStatesWithLabel(name); - handle.setOrigin(...coord); - } - } - } - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.delete = macro.chain(publicAPI.delete, () => { - if (stateSub) { - stateSub.unsubscribe(); - } - }); - - // --- Widget Requirement --------------------------------------------------- - - model.methodsToLink = ['scaleInPixels']; - - // Given a view type (geometry, slice, volume), return a description - // of what representations to create and what widget state to pass - // to the respective representations. - publicAPI.getRepresentationsForViewType = viewType => { - switch (viewType) { - case ViewTypes.DEFAULT: - case ViewTypes.GEOMETRY: - case ViewTypes.SLICE: - case ViewTypes.VOLUME: - default: - return [ - // Describes constructing a vtkSphereHandleRepresentation, and every - // time the widget state updates, we will give the representation - // a list of all handle states (which have the label "handles"). - { - builder: vtkSphereHandleRepresentation, - labels: ['handles'] - }, { - builder: vtkCroppingOutlineRepresentation, - // outline is defined by corner points - labels: ['corners'] - }]; - } - }; - - // Update handle positions when cropping planes update - stateSub = model.widgetState.getCroppingPlanes().onModified(publicAPI.updateHandles); - publicAPI.setCornerManipulator = manipulator => { - superClass.setCornerManipulator(manipulator); - model.widgetState.getStatesWithLabel('corners').forEach(handle => handle.setManipulator(manipulator)); - }; - publicAPI.setEdgeManipulator = manipulator => { - superClass.setEdgeManipulator(manipulator); - model.widgetState.getStatesWithLabel('edges').forEach(handle => handle.setManipulator(manipulator)); - }; - publicAPI.setFaceManipulator = manipulator => { - superClass.setFaceManipulator(manipulator); - model.widgetState.getStatesWithLabel('faces').forEach(handle => handle.setManipulator(manipulator)); - }; - - // -------------------------------------------------------------------------- - // initialization - // -------------------------------------------------------------------------- - - publicAPI.setCornerManipulator(vtkPlaneManipulator.newInstance({ - useCameraNormal: true - })); - publicAPI.setEdgeManipulator(vtkPlaneManipulator.newInstance()); - publicAPI.setFaceManipulator(vtkLineManipulator.newInstance()); -} - -// ---------------------------------------------------------------------------- - -const defaultValues = initialValues => ({ - // cornerManipulator: null, - // edgeManipulator: null, - // faceManipulator: null, - behavior: widgetBehavior, - widgetState: build(), - ...initialValues -}); - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - vtkAbstractWidgetFactory.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['cornerManipulator', 'edgeManipulator', 'faceManipulator']); - vtkImageCroppingWidget(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImageCroppingWidget'); - -// ---------------------------------------------------------------------------- - -var vtkImageCroppingWidget$1 = { - newInstance, - extend -}; - -export { vtkImageCroppingWidget$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ImageCroppingWidget/behavior.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ImageCroppingWidget/behavior.js deleted file mode 100644 index 7017e419..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ImageCroppingWidget/behavior.js +++ /dev/null @@ -1,107 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import { k as add } from '../../../Common/Core/Math/index.js'; -import { handleTypeFromName, AXES, calculateCropperCenter, calculateDirection, transformVec3 } from './helpers.js'; - -function widgetBehavior(publicAPI, model) { - model._isDragging = false; - publicAPI.setDisplayCallback = callback => model.representations[0].setDisplayCallback(callback); - publicAPI.handleLeftButtonPress = callData => { - if (!model.activeState || !model.activeState.getActive() || !model.pickable) { - return macro.VOID; - } - if (model.dragable) { - // updates worldDelta - model.activeState.getManipulator().handleEvent(callData, model._apiSpecificRenderWindow); - model._isDragging = true; - model._apiSpecificRenderWindow.setCursor('grabbing'); - model._interactor.requestAnimation(publicAPI); - } - return macro.EVENT_ABORT; - }; - publicAPI.handleMouseMove = callData => { - if (model._isDragging) { - return publicAPI.handleEvent(callData); - } - return macro.VOID; - }; - publicAPI.handleLeftButtonRelease = () => { - if (!model.activeState || !model.activeState.getActive() || !model.pickable) { - return macro.VOID; - } - if (model._isDragging) { - model._isDragging = false; - model._interactor.cancelAnimation(publicAPI); - model.widgetState.deactivate(); - } - return macro.EVENT_ABORT; - }; - publicAPI.handleEvent = callData => { - if (model.pickable && model.activeState && model.activeState.getActive()) { - const manipulator = model.activeState.getManipulator(); - if (manipulator) { - const name = model.activeState.getName(); - const type = handleTypeFromName(name); - const index = name.split('').map(l => AXES.indexOf(l)); - const planes = model.widgetState.getCroppingPlanes().getPlanes(); - const indexToWorldT = model.widgetState.getIndexToWorldT(); - let worldCoords = []; - let worldDelta = []; - if (type === 'corners') { - // manipulator should be a plane manipulator - ({ - worldCoords, - worldDelta - } = manipulator.handleEvent(callData, model._apiSpecificRenderWindow)); - } - if (type === 'faces') { - // get center of current crop box - const worldCenter = calculateCropperCenter(planes, indexToWorldT); - manipulator.setHandleOrigin(worldCenter); - manipulator.setHandleNormal(calculateDirection(model.activeState.getOrigin(), worldCenter)); - ({ - worldCoords, - worldDelta - } = manipulator.handleEvent(callData, model._apiSpecificRenderWindow)); - } - if (type === 'edges') { - // constrain to a plane with a normal parallel to the edge - const edgeAxis = index.map(a => a === 1 ? a : 0); - const faceName = edgeAxis.map(i => AXES[i + 1]).join(''); - const handle = model.widgetState.getStatesWithLabel(faceName)[0]; - // get center of current crop box - const worldCenter = calculateCropperCenter(planes, indexToWorldT); - manipulator.setHandleNormal(calculateDirection(handle.getOrigin(), worldCenter)); - ({ - worldCoords, - worldDelta - } = manipulator.handleEvent(callData, model._apiSpecificRenderWindow)); - } - if (worldCoords.length && worldDelta.length) { - // transform worldCoords to indexCoords, and then update the croppingPlanes() state with setPlanes(). - const worldToIndexT = model.widgetState.getWorldToIndexT(); - const indexCoords = transformVec3(worldCoords, worldToIndexT); - for (let i = 0; i < 3; i++) { - if (index[i] === 0) { - planes[i * 2] = indexCoords[i]; - } else if (index[i] === 2) { - planes[i * 2 + 1] = indexCoords[i]; - } - } - model.activeState.setOrigin(add(model.activeState.getOrigin(), worldDelta, [])); - model.widgetState.getCroppingPlanes().setPlanes(...planes); - return macro.EVENT_ABORT; - } - } - } - return macro.VOID; - }; - - // -------------------------------------------------------------------------- - // initialization - // -------------------------------------------------------------------------- - - model._camera = model._renderer.getActiveCamera(); - model.classHierarchy.push('vtkImageCroppingWidgetProp'); -} - -export { widgetBehavior as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ImageCroppingWidget/helpers.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ImageCroppingWidget/helpers.js deleted file mode 100644 index 09f82c9d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ImageCroppingWidget/helpers.js +++ /dev/null @@ -1,49 +0,0 @@ -import { vec3, quat, mat4 } from 'gl-matrix'; - -// Labels used to encode handle position in the handle state's name property -const AXES = ['-', '=', '+']; - -// ---------------------------------------------------------------------------- - -function transformVec3(ain, transform) { - const vout = new Float64Array(3); - vec3.transformMat4(vout, ain, transform); - return vout; -} - -// ---------------------------------------------------------------------------- - -function rotateVec3(vec, transform) { - // transform is a mat4 - const out = vec3.create(); - const q = quat.create(); - mat4.getRotation(q, transform); - vec3.transformQuat(out, vec, q); - return out; -} - -// ---------------------------------------------------------------------------- - -function handleTypeFromName(name) { - const [i, j, k] = name.split('').map(l => AXES.indexOf(l) - 1); - if (i * j * k !== 0) { - return 'corners'; - } - if (i * j !== 0 || j * k !== 0 || k * i !== 0) { - return 'edges'; - } - return 'faces'; -} -function calculateCropperCenter(planes, transform) { - // get center of current crop box - const center = [(planes[0] + planes[1]) / 2, (planes[2] + planes[3]) / 2, (planes[4] + planes[5]) / 2]; - return transformVec3(center, transform); -} -function calculateDirection(v1, v2) { - const direction = vec3.create(); - vec3.subtract(direction, v1, v2); - vec3.normalize(direction, direction); - return direction; -} - -export { AXES, calculateCropperCenter, calculateDirection, handleTypeFromName, rotateVec3, transformVec3 }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ImageCroppingWidget/state.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ImageCroppingWidget/state.js deleted file mode 100644 index 6da2a638..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ImageCroppingWidget/state.js +++ /dev/null @@ -1,62 +0,0 @@ -import vtkStateBuilder from '../../Core/StateBuilder.js'; -import { AXES, handleTypeFromName } from './helpers.js'; - -function build() { - // create our state builder - const builder = vtkStateBuilder.createBuilder(); - - // add image data description fields - builder.addField({ - name: 'indexToWorldT', - initialValue: Array(16).fill(0) - }).addField({ - name: 'worldToIndexT', - initialValue: Array(16).fill(0) - }); - - // make cropping planes a sub-state so we can listen to it - // separately from the rest of the widget state. - const croppingState = vtkStateBuilder.createBuilder().addField({ - name: 'planes', - // index space - initialValue: [0, 1, 0, 1, 0, 1] - }).build(); - - // add cropping planes state to our primary state - builder.addStateFromInstance({ - labels: ['croppingPlanes'], - name: 'croppingPlanes', - instance: croppingState - }); - - // add all handle states - // default bounds is [-1, 1] in all dimensions - for (let i = -1; i < 2; i++) { - for (let j = -1; j < 2; j++) { - for (let k = -1; k < 2; k++) { - // skip center of box - if (i !== 0 || j !== 0 || k !== 0) { - const name = AXES[i + 1] + AXES[j + 1] + AXES[k + 1]; - const type = handleTypeFromName(name); - - // since handle states are rendered via vtkSphereHandleRepresentation, - // we can dictate the handle origin, size (scale1), color, and visibility. - builder.addStateFromMixin({ - labels: ['handles', name, type], - mixins: ['name', 'origin', 'color', 'scale1', 'visible', 'manipulator'], - name, - initialValues: { - scale1: 30, - origin: [i, j, k], - visible: true, - name - } - }); - } - } - } - } - return builder.build(); -} - -export { build as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ImplicitPlaneWidget.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ImplicitPlaneWidget.js deleted file mode 100644 index a1d457c5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ImplicitPlaneWidget.js +++ /dev/null @@ -1,204 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import { k as add } from '../../Common/Core/Math/index.js'; -import vtkAbstractWidgetFactory from '../Core/AbstractWidgetFactory.js'; -import vtkImplicitPlaneRepresentation from '../Representations/ImplicitPlaneRepresentation.js'; -import vtkLineManipulator from '../Manipulators/LineManipulator.js'; -import vtkTrackballManipulator from '../Manipulators/TrackballManipulator.js'; -import vtkPlaneManipulator from '../Manipulators/PlaneManipulator.js'; -import { ViewTypes } from '../Core/WidgetManager/Constants.js'; - -// ---------------------------------------------------------------------------- -// Widget linked to a view -// ---------------------------------------------------------------------------- - -function widgetBehavior(publicAPI, model) { - model.classHierarchy.push('vtkPlaneWidget'); - model._isDragging = false; - // used to track the constrained widget position - model._draggingWidgetOrigin = [0, 0, 0]; - publicAPI.setDisplayCallback = callback => model.representations[0].setDisplayCallback(callback); - publicAPI.updateCursor = () => { - switch (model.activeState.getUpdateMethodName()) { - case 'updateFromOrigin': - model._apiSpecificRenderWindow.setCursor('crosshair'); - break; - case 'updateFromPlane': - model._apiSpecificRenderWindow.setCursor('move'); - break; - case 'updateFromNormal': - model._apiSpecificRenderWindow.setCursor('alias'); - break; - default: - model._apiSpecificRenderWindow.setCursor('grabbing'); - break; - } - }; - publicAPI.handleLeftButtonPress = callData => { - if (!model.activeState || !model.activeState.getActive() || !model.pickable) { - return macro.VOID; - } - model.lineManipulator.setWidgetOrigin(model.activeState.getOrigin()); - model.lineManipulator.setWidgetNormal(model.activeState.getNormal()); - model.planeManipulator.setWidgetOrigin(model.activeState.getOrigin()); - model.planeManipulator.setWidgetNormal(model.activeState.getNormal()); - model.trackballManipulator.reset(callData); // setup trackball delta - model.trackballManipulator.setWidgetNormal(model.activeState.getNormal()); - - // update worldDelta with the proper manipulator - let activeManipulator = null; - switch (model.activeState.getUpdateMethodName()) { - case 'updateFromOrigin': - activeManipulator = model.planeManipulator; - break; - case 'updateFromPlane': - activeManipulator = model.lineManipulator; - break; - case 'updateFromNormal': - activeManipulator = model.trackballManipulator; - break; - // skip - } - - if (activeManipulator) { - activeManipulator.handleEvent(callData, model._apiSpecificRenderWindow); - } - if (model.dragable) { - model._draggingWidgetOrigin = model.widgetState.getOrigin(); - model._isDragging = true; - model._apiSpecificRenderWindow.setCursor('grabbing'); - model._interactor.requestAnimation(publicAPI); - } - publicAPI.invokeStartInteractionEvent(); - return macro.EVENT_ABORT; - }; - publicAPI.handleMouseMove = callData => { - if (model._isDragging) { - return publicAPI.handleEvent(callData); - } - return macro.VOID; - }; - publicAPI.handleLeftButtonRelease = () => { - if (!model.activeState || !model.activeState.getActive() || !model.pickable) { - return macro.VOID; - } - if (model._isDragging) { - model._interactor.cancelAnimation(publicAPI); - model._isDragging = false; - } - model.widgetState.deactivate(); - publicAPI.invokeEndInteractionEvent(); - return macro.EVENT_ABORT; - }; - publicAPI.handleEvent = callData => { - if (model.pickable && model.activeState && model.activeState.getActive()) { - publicAPI[model.activeState.getUpdateMethodName()](callData); - publicAPI.invokeInteractionEvent(); - return macro.EVENT_ABORT; - } - return macro.VOID; - }; - - // -------------------------------------------------------------------------- - // Event coordinate translation - // -------------------------------------------------------------------------- - - publicAPI.updateFromOrigin = callData => { - model.planeManipulator.setWidgetNormal(model.widgetState.getNormal()); - const { - worldCoords, - worldDelta - } = model.planeManipulator.handleEvent(callData, model._apiSpecificRenderWindow); - add(model._draggingWidgetOrigin, worldDelta, model._draggingWidgetOrigin); - - // test containment of interaction coords - if (model.widgetState.containsPoint(...worldCoords)) { - model.activeState.setOrigin(model._draggingWidgetOrigin); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.updateFromPlane = callData => { - // Move origin along normal axis - model.lineManipulator.setWidgetNormal(model.activeState.getNormal()); - const { - worldDelta - } = model.lineManipulator.handleEvent(callData, model._apiSpecificRenderWindow); - add(model._draggingWidgetOrigin, worldDelta, model._draggingWidgetOrigin); - if (model.widgetState.containsPoint(...model._draggingWidgetOrigin)) { - model.activeState.setOrigin(model._draggingWidgetOrigin); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.updateFromNormal = callData => { - model.trackballManipulator.setWidgetNormal(model.activeState.getNormal()); - const { - worldCoords: newNormal - } = model.trackballManipulator.handleEvent(callData, model._apiSpecificRenderWindow); - model.activeState.setNormal(newNormal); - }; - - // -------------------------------------------------------------------------- - // initialization - // -------------------------------------------------------------------------- - - model.lineManipulator = vtkLineManipulator.newInstance(); - model.planeManipulator = vtkPlaneManipulator.newInstance(); - model.trackballManipulator = vtkTrackballManipulator.newInstance(); -} - -// ---------------------------------------------------------------------------- -// Factory -// ---------------------------------------------------------------------------- - -function vtkImplicitPlaneWidget(publicAPI, model) { - model.classHierarchy.push('vtkPlaneWidget'); - - // --- Widget Requirement --------------------------------------------------- - - model.methodsToLink = ['representationStyle', 'sphereResolution', 'handleSizeRatio', 'axisScale', 'normalVisible', 'originVisible', 'planeVisible', 'outlineVisible']; - publicAPI.getRepresentationsForViewType = viewType => { - switch (viewType) { - case ViewTypes.DEFAULT: - case ViewTypes.GEOMETRY: - case ViewTypes.SLICE: - case ViewTypes.VOLUME: - default: - return [{ - builder: vtkImplicitPlaneRepresentation - }]; - } - }; -} - -// ---------------------------------------------------------------------------- - -const defaultValues = initialValues => ({ - behavior: widgetBehavior, - widgetState: vtkImplicitPlaneRepresentation.generateState(), - ...initialValues -}); - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - vtkAbstractWidgetFactory.extend(publicAPI, model, initialValues); - vtkImplicitPlaneWidget(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkImplicitPlaneWidget'); - -// ---------------------------------------------------------------------------- - -var vtkImplicitPlaneWidget$1 = { - newInstance, - extend -}; - -export { vtkImplicitPlaneWidget$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/InteractiveOrientationWidget.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/InteractiveOrientationWidget.d.ts deleted file mode 100644 index bdf9614d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/InteractiveOrientationWidget.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { - vtkAbstractWidgetFactory, - IAbstractWidgetFactoryInitialValues, -} from './../Core/AbstractWidgetFactory'; -import vtkAbstractWidget from './../Core/AbstractWidget'; -import { Bounds } from './../../types'; -import { ViewTypes } from './../Core/WidgetManager/Constants'; - -export interface vtkInteractiveOrientationWidget< - WidgetInstance extends vtkAbstractWidget = vtkAbstractWidget -> extends vtkAbstractWidgetFactory { - /** - * Set the widget bounds - * - * @param {Bounds} bounds The widget bounds - */ - setBounds(bounds: Bounds): void; - - /** - * @param {ViewTypes} viewType - */ - getRepresentationForViewType(viewType: ViewTypes): unknown; -} - -export interface IInteractiveOrientationWidgetInitialValues< - WidgetInstance extends vtkAbstractWidget -> extends IAbstractWidgetFactoryInitialValues {} - -/** - * Method use to decorate a given object (publicAPI+model) with vtkInteractiveOrientationWidget characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param {object} [initialValues] (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IInteractiveOrientationWidgetInitialValues -): void; - -/** - * Creates a new instance of vtkInteractiveOrientationWidget - * - * @param {object} [initialValues] for pre-setting some of its content - */ -export function newInstance< - WidgetInstance extends vtkAbstractWidget = vtkAbstractWidget ->( - initialValues?: IInteractiveOrientationWidgetInitialValues -): vtkInteractiveOrientationWidget; - -export declare const vtkInteractiveOrientationWidget: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkInteractiveOrientationWidget; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/InteractiveOrientationWidget.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/InteractiveOrientationWidget.js deleted file mode 100644 index 83b000e3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/InteractiveOrientationWidget.js +++ /dev/null @@ -1,135 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkAbstractWidgetFactory from '../Core/AbstractWidgetFactory.js'; -import vtkConvexFaceContextRepresentation from '../Representations/ConvexFaceContextRepresentation.js'; -import widgetBehavior from './InteractiveOrientationWidget/behavior.js'; -import { INITIAL_POINTS, generateState } from './InteractiveOrientationWidget/state.js'; -import { Behavior } from '../Representations/WidgetRepresentation/Constants.js'; -import { ViewTypes } from '../Core/WidgetManager/Constants.js'; - -// ---------------------------------------------------------------------------- -// Factory -// ---------------------------------------------------------------------------- - -function vtkInteractiveOrientationWidget(publicAPI, model) { - model.classHierarchy.push('vtkInteractiveOrientationWidget'); - - // --- Widget Requirement --------------------------------------------------- - - model.methodsToLink = ['closePolyLine', 'activeScaleFactor', 'activeColor', 'useActiveColor', 'glyphResolution', 'defaultScale']; - publicAPI.setBounds = bounds => { - const handles = model.widgetState.getStatesWithLabel('handles'); - for (let i = 0; i < handles.length; i++) { - const xyz = INITIAL_POINTS[i]; - const x = xyz[0] > 0 ? bounds[1] : bounds[0]; - const y = xyz[1] > 0 ? bounds[3] : bounds[2]; - const z = xyz[2] > 0 ? bounds[5] : bounds[4]; - handles[i].setOrigin(x, y, z); - } - }; - publicAPI.getRepresentationsForViewType = viewType => { - switch (viewType) { - case ViewTypes.DEFAULT: - case ViewTypes.GEOMETRY: - case ViewTypes.SLICE: - case ViewTypes.VOLUME: - default: - return [{ - builder: vtkConvexFaceContextRepresentation, - labels: ['---', '--+', '-++', '-+-'], - initialValues: { - behavior: Behavior.HANDLE, - pickable: true, - activeScaleFactor: 1.2, - activeColor: 1, - useActiveColor: true, - name: 'Face 1' - } - }, { - builder: vtkConvexFaceContextRepresentation, - labels: ['---', '+--', '+-+', '--+'], - initialValues: { - behavior: Behavior.HANDLE, - pickable: true, - activeScaleFactor: 1.2, - activeColor: 1, - useActiveColor: true, - name: 'Face 2' - } - }, { - builder: vtkConvexFaceContextRepresentation, - labels: ['+--', '++-', '+++', '+-+'], - initialValues: { - behavior: Behavior.HANDLE, - pickable: true, - activeScaleFactor: 1.2, - activeColor: 1, - useActiveColor: true, - name: 'Face 3' - } - }, { - builder: vtkConvexFaceContextRepresentation, - labels: ['++-', '-+-', '-++', '+++'], - initialValues: { - behavior: Behavior.HANDLE, - pickable: true, - activeScaleFactor: 1.2, - activeColor: 1, - useActiveColor: true, - name: 'Face 4' - } - }, { - builder: vtkConvexFaceContextRepresentation, - labels: ['-++', '--+', '+-+', '+++'], - initialValues: { - behavior: Behavior.HANDLE, - pickable: true, - activeScaleFactor: 1.2, - activeColor: 1, - useActiveColor: true, - name: 'Face 5' - } - }, { - builder: vtkConvexFaceContextRepresentation, - labels: ['-+-', '++-', '+--', '---'], - initialValues: { - behavior: Behavior.HANDLE, - pickable: true, - activeScaleFactor: 1.2, - activeColor: 1, - useActiveColor: true, - name: 'Face 6' - } - }]; - } - }; -} - -// ---------------------------------------------------------------------------- - -const defaultValues = initialValues => ({ - behavior: widgetBehavior, - widgetState: generateState(), - ...initialValues -}); - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - vtkAbstractWidgetFactory.extend(publicAPI, model, initialValues); - vtkInteractiveOrientationWidget(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkInteractiveOrientationWidget'); - -// ---------------------------------------------------------------------------- - -var vtkInteractiveOrientationWidget$1 = { - newInstance, - extend -}; - -export { vtkInteractiveOrientationWidget$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/InteractiveOrientationWidget/behavior.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/InteractiveOrientationWidget/behavior.js deleted file mode 100644 index bcfbeed7..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/InteractiveOrientationWidget/behavior.js +++ /dev/null @@ -1,40 +0,0 @@ -import { m as macro } from '../../../macros2.js'; - -function widgetBehavior(publicAPI, model) { - model.classHierarchy.push('vtkInteractiveOrientationWidgetProp'); - macro.event(publicAPI, model, 'OrientationChange'); - - // -------------------------------------------------------------------------- - // Right click: Delete handle - // -------------------------------------------------------------------------- - - publicAPI.handleRightButtonPress = e => { - if (!model.activeState || !model.activeState.getActive() || !model.pickable) { - return macro.VOID; - } - publicAPI.invokeOrientationChange({ - action: 'rightPress', - event: e, - ...model.activeState.get('up', 'right', 'direction') - }); - return macro.EVENT_ABORT; - }; - - // -------------------------------------------------------------------------- - // Left press: Select handle to drag - // -------------------------------------------------------------------------- - - publicAPI.handleLeftButtonPress = e => { - if (!model.activeState || !model.activeState.getActive() || !model.pickable) { - return macro.VOID; - } - publicAPI.invokeOrientationChange({ - action: 'leftPress', - event: e, - ...model.activeState.get('up', 'right', 'direction') - }); - return macro.EVENT_ABORT; - }; -} - -export { widgetBehavior as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/InteractiveOrientationWidget/helpers.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/InteractiveOrientationWidget/helpers.d.ts deleted file mode 100644 index cb9adc2c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/InteractiveOrientationWidget/helpers.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -import vtkAbstractWidget from '../../../Widgets/Core/AbstractWidget'; -import vtkCamera from '../../../Rendering/Core/Camera'; -import vtkInteractiveOrientationWidget from '../InteractiveOrientationWidget'; -import vtkOrientationMarkerWidget from '../../../Interaction/Widgets/OrientationMarkerWidget'; -import vtkRenderer from '../../../Rendering/Core/Renderer'; -import vtkRenderWindowInteractor from '../../../Rendering/Core/RenderWindowInteractor'; -import vtkWidgetManager from '../../../Widgets/Core/WidgetManager'; -import { vtkSubscription } from '../../../interfaces'; -import { Bounds, Vector3 } from '../../../types'; - -export function majorAxis( - vec3: Vector3, - idxA: number, - idxB: number -): [number, number, number]; - -/** - * Create a new vtkOrientationMarkerWidget instance from the provided interactor and parentRenderer and sensible defaults. - * - * @param {vtkRenderWindowInteractor} interactor - * @param {vtkRenderer} parentRenderer - * @returns {vtkOrientationMarkerWidget} - */ -export function createOrientationMarkerWidget( - interactor: vtkRenderWindowInteractor, - parentRenderer: vtkRenderer -): vtkOrientationMarkerWidget; - -/** - * Create a new vtkInteractiveOrientationWidget instance and place it at the given bounds. - * - * @param {Bounds} bounds - * @returns {vtkInteractiveOrientationWidget} - */ -export function createInteractiveOrientationWidget( - bounds: Bounds -): vtkInteractiveOrientationWidget; - -/** - * Create a new vtkOrientationMarkerWidget alongside with a new vtkInteractiveOrientationWidget with sensible defaults. - * - * @param {vtkWidgetManager} widgetManager - * @param {vtkRenderWindowInteractor} interactor - * @param {vtkRenderer} mainRenderer - * @returns {Object} the constructed widget instances - */ -export function createInteractiveOrientationMarkerWidget( - widgetManager: vtkWidgetManager, - interactor: vtkRenderWindowInteractor, - mainRenderer: vtkRenderer -): { - interactiveOrientationWidget: vtkInteractiveOrientationWidget; - orientationMarkerWidget: vtkOrientationMarkerWidget; -}; - -/** - * Listen to OrientationChange events on the given view widget. - * The event handler will align the provided camera and update the provided vtkOrientationMarkerWidget instance. - * - * @param {vtkAbstractWidget} viewWidget Must be a vtkInteractiveOrientationWidget view widget - * @param {vtkCamera} camera The camera instance to upate when orientation changes - * @param {vtkOrientationMarkerWidget} orientationMarkerWidget The instance to update when orientation changes - * @param {vtkWidgetManager} widgetManager - * @param {Function} render A callback that should render the view - * @returns {vtkSubscription} the corresponding event subscription, can be used to unsubscribe from the event - */ -export function alignCameraOnViewWidgetOrientationChange( - viewWidget: vtkAbstractWidget, - camera: vtkCamera, - orientationMarkerWidget: vtkOrientationMarkerWidget, - widgetManager: vtkWidgetManager, - render: () => void -): vtkSubscription; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/InteractiveOrientationWidget/helpers.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/InteractiveOrientationWidget/helpers.js deleted file mode 100644 index c2208f9e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/InteractiveOrientationWidget/helpers.js +++ /dev/null @@ -1,71 +0,0 @@ -import * as vtkMath from '@kitware/vtk.js/Common/Core/Math'; -import vtkOrientationMarkerWidget from '@kitware/vtk.js/Interaction/Widgets/OrientationMarkerWidget'; -import vtkAxesActor from '@kitware/vtk.js/Rendering/Core/AxesActor'; -import vtkInteractiveOrientationWidget from '@kitware/vtk.js/Widgets/Widgets3D/InteractiveOrientationWidget'; - -function majorAxis(vec3, idxA, idxB) { - const axis = [0, 0, 0]; - const idx = Math.abs(vec3[idxA]) > Math.abs(vec3[idxB]) ? idxA : idxB; - const value = vec3[idx] > 0 ? 1 : -1; - axis[idx] = value; - return axis; -} -function createOrientationMarkerWidget(interactor, parentRenderer) { - const axes = vtkAxesActor.newInstance(); - const orientationWidget = vtkOrientationMarkerWidget.newInstance({ - actor: axes, - interactor, - interactiveRenderer: true, - viewportSize: 0.1, - minPixelSize: 100, - maxPixelSize: 300, - parentRenderer - }); - orientationWidget.setEnabled(true); - orientationWidget.setViewportCorner(vtkOrientationMarkerWidget.Corners.BOTTOM_LEFT); - return orientationWidget; -} -function createInteractiveOrientationWidget(bounds) { - const widget = vtkInteractiveOrientationWidget.newInstance(); - widget.placeWidget(bounds); - widget.setBounds(bounds.map(v => v * 0.45)); - return widget; -} -function createInteractiveOrientationMarkerWidget(widgetManager, interactor, mainRenderer) { - const orientationMarkerWidget = createOrientationMarkerWidget(interactor, mainRenderer); - interactor.getInteractorStyle().setFocusedRenderer(mainRenderer); - widgetManager.setRenderer(orientationMarkerWidget.getRenderer()); - const widget = createInteractiveOrientationWidget(orientationMarkerWidget.getActor().getBounds()); - return { - interactiveOrientationWidget: widget, - orientationMarkerWidget - }; -} -function alignCameraOnViewWidgetOrientationChange(viewWidget, camera, orientationMarkerWidget, widgetManager, render) { - return viewWidget.onOrientationChange(_ref => { - let { - up, - direction, - action, - event - } = _ref; - const focalPoint = camera.getFocalPoint(); - const position = camera.getPosition(); - const viewUp = camera.getViewUp(); - const distance = Math.sqrt(vtkMath.distance2BetweenPoints(position, focalPoint)); - camera.setPosition(focalPoint[0] + direction[0] * distance, focalPoint[1] + direction[1] * distance, focalPoint[2] + direction[2] * distance); - if (direction[0]) { - camera.setViewUp(majorAxis(viewUp, 1, 2)); - } - if (direction[1]) { - camera.setViewUp(majorAxis(viewUp, 0, 2)); - } - if (direction[2]) { - camera.setViewUp(majorAxis(viewUp, 0, 1)); - } - orientationMarkerWidget.updateMarkerOrientation(); - render(); - }); -} - -export { alignCameraOnViewWidgetOrientationChange, createInteractiveOrientationMarkerWidget, createInteractiveOrientationWidget, createOrientationMarkerWidget, majorAxis }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/InteractiveOrientationWidget/state.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/InteractiveOrientationWidget/state.js deleted file mode 100644 index 32c7d6ac..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/InteractiveOrientationWidget/state.js +++ /dev/null @@ -1,80 +0,0 @@ -import vtkStateBuilder from '../../Core/StateBuilder.js'; - -const INITIAL_POINTS = [[-1, -1, -1], -// 0 -[-1, 1, -1], -// 1 -[1, -1, -1], -// 2 -[1, 1, -1], -// 3 -[-1, -1, 1], -// 4 -[-1, 1, 1], -// 5 -[1, -1, 1], -// 6 -[1, 1, 1] // 7 -]; - -function generateState() { - return vtkStateBuilder.createBuilder().addStateFromMixin({ - labels: ['handles', '---'], - mixins: ['origin'], - name: 'handle', - initialValues: { - origin: INITIAL_POINTS[0] - } - }).addStateFromMixin({ - labels: ['handles', '-+-'], - mixins: ['origin'], - name: 'handle', - initialValues: { - origin: INITIAL_POINTS[1] - } - }).addStateFromMixin({ - labels: ['handles', '+--'], - mixins: ['origin'], - name: 'handle', - initialValues: { - origin: INITIAL_POINTS[2] - } - }).addStateFromMixin({ - labels: ['handles', '++-'], - mixins: ['origin'], - name: 'handle', - initialValues: { - origin: INITIAL_POINTS[3] - } - }).addStateFromMixin({ - labels: ['handles', '--+'], - mixins: ['origin'], - name: 'handle', - initialValues: { - origin: INITIAL_POINTS[4] - } - }).addStateFromMixin({ - labels: ['handles', '-++'], - mixins: ['origin'], - name: 'handle', - initialValues: { - origin: INITIAL_POINTS[5] - } - }).addStateFromMixin({ - labels: ['handles', '+-+'], - mixins: ['origin'], - name: 'handle', - initialValues: { - origin: INITIAL_POINTS[6] - } - }).addStateFromMixin({ - labels: ['handles', '+++'], - mixins: ['origin'], - name: 'handle', - initialValues: { - origin: INITIAL_POINTS[7] - } - }).build('orientation', 'name'); -} - -export { INITIAL_POINTS, generateState as default, generateState }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LabelWidget.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LabelWidget.js deleted file mode 100644 index d56bbaae..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LabelWidget.js +++ /dev/null @@ -1,84 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkAbstractWidgetFactory from '../Core/AbstractWidgetFactory.js'; -import vtkSphereHandleRepresentation from '../Representations/SphereHandleRepresentation.js'; -import vtkPlaneManipulator from '../Manipulators/PlaneManipulator.js'; -import widgetBehavior from './LabelWidget/behavior.js'; -import generateState from './LabelWidget/state.js'; -import { ViewTypes } from '../Core/WidgetManager/Constants.js'; - -// ---------------------------------------------------------------------------- -// Factory -// ---------------------------------------------------------------------------- - -function vtkLabelWidget(publicAPI, model) { - model.classHierarchy.push('vtkLabelWidget'); - const superClass = { - ...publicAPI - }; - - // --- Widget Requirement --------------------------------------------------- - model.methodsToLink = ['scaleInPixels']; - publicAPI.getRepresentationsForViewType = viewType => { - switch (viewType) { - case ViewTypes.DEFAULT: - case ViewTypes.GEOMETRY: - case ViewTypes.SLICE: - case ViewTypes.VOLUME: - default: - return [{ - builder: vtkSphereHandleRepresentation, - labels: ['moveHandle'] - }]; - } - }; - - // --- Public methods ------------------------------------------------------- - - publicAPI.setManipulator = manipulator => { - superClass.setManipulator(manipulator); - model.widgetState.getMoveHandle().setManipulator(manipulator); - model.widgetState.getText().setManipulator(manipulator); - }; - - // -------------------------------------------------------------------------- - // initialization - // -------------------------------------------------------------------------- - - // Default manipulator - publicAPI.setManipulator(model.manipulator || vtkPlaneManipulator.newInstance({ - useCameraNormal: true - })); -} - -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - return { - behavior: widgetBehavior, - widgetState: generateState(), - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - vtkAbstractWidgetFactory.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['manipulator']); - vtkLabelWidget(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkLabelWidget'); - -// ---------------------------------------------------------------------------- - -var vtkLabelWidget$1 = { - newInstance, - extend -}; - -export { vtkLabelWidget$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LabelWidget/behavior.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LabelWidget/behavior.js deleted file mode 100644 index 6a700a99..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LabelWidget/behavior.js +++ /dev/null @@ -1,139 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import { k as add } from '../../../Common/Core/Math/index.js'; - -function widgetBehavior(publicAPI, model) { - model.classHierarchy.push('vtkLabelWidgetProp'); - model._isDragging = false; - - // -------------------------------------------------------------------------- - // Public methods - // -------------------------------------------------------------------------- - - publicAPI.setText = text => { - model.widgetState.getText().setText(text); - model._interactor.render(); - }; - publicAPI.getText = () => model.widgetState.getText().getText(); - - // -------------------------------------------------------------------------- - // Display 2D - // -------------------------------------------------------------------------- - - publicAPI.setDisplayCallback = callback => model.representations[0].setDisplayCallback(callback); - - // -------------------------------------------------------------------------- - // Interactor events - // -------------------------------------------------------------------------- - - function ignoreKey(e) { - return e.altKey || e.controlKey || e.shiftKey; - } - - // -------------------------------------------------------------------------- - // Left press: Select handle to drag / Place text handle - // -------------------------------------------------------------------------- - - publicAPI.handleLeftButtonPress = e => { - if (!model.activeState || !model.activeState.getActive() || !model.pickable || ignoreKey(e)) { - return macro.VOID; - } - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - const { - worldCoords - } = manipulator.handleEvent(e, model._apiSpecificRenderWindow); - if (model.activeState === model.widgetState.getMoveHandle() && manipulator) { - // Commit handle to location - const moveHandle = model.widgetState.getMoveHandle(); - moveHandle.setOrigin(worldCoords); - model.widgetState.getText().setOrigin(moveHandle.getOrigin()); - publicAPI.loseFocus(); - } else if (model.dragable) { - model._isDragging = true; - model._apiSpecificRenderWindow.setCursor('grabbing'); - model._interactor.requestAnimation(publicAPI); - } - publicAPI.invokeStartInteractionEvent(); - return macro.EVENT_ABORT; - }; - - // -------------------------------------------------------------------------- - // Left release: Finish drag - // -------------------------------------------------------------------------- - - publicAPI.handleLeftButtonRelease = () => { - if (!model.activeState || !model.activeState.getActive() || !model.pickable) { - return macro.VOID; - } - if (model._isDragging) { - model._apiSpecificRenderWindow.setCursor('pointer'); - model.widgetState.deactivate(); - model._interactor.cancelAnimation(publicAPI); - model._isDragging = false; - } else if (model.activeState !== model.widgetState.getMoveHandle()) { - model.widgetState.deactivate(); - } - if (model.hasFocus && !model.activeState || model.activeState && !model.activeState.getActive()) { - model._widgetManager.enablePicking(); - model._interactor.render(); - } - publicAPI.invokeEndInteractionEvent(); - return macro.EVENT_ABORT; - }; - - // -------------------------------------------------------------------------- - // Mouse move: Drag selected handle / Handle follow the mouse - // -------------------------------------------------------------------------- - - publicAPI.handleMouseMove = callData => { - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - if (manipulator && model.pickable && model.dragable && model.activeState && model.activeState.getActive() && !ignoreKey(callData)) { - const { - worldCoords, - worldDelta - } = manipulator.handleEvent(callData, model._apiSpecificRenderWindow); - const isHandleMoving = model.widgetState.getMoveHandle() === model.activeState || model._isDragging; - if (!isHandleMoving || !worldCoords.length || !worldDelta.length) return macro.VOID; - const curOrigin = model.activeState.getOrigin(); - const newOrigin = curOrigin ? add(curOrigin, worldDelta, []) : worldCoords; - model.activeState.setOrigin(newOrigin); - model.widgetState.getText().setOrigin(newOrigin); - publicAPI.invokeInteractionEvent(); - return macro.EVENT_ABORT; - } - return macro.VOID; - }; - - // -------------------------------------------------------------------------- - // Focus API - // -------------------------------------------------------------------------- - - publicAPI.reset = () => { - model.widgetState.getMoveHandle().setOrigin(null); - model.widgetState.getText().setOrigin(null); - model.widgetState.getText().setText(''); - }; - publicAPI.grabFocus = () => { - if (!model.hasFocus) { - publicAPI.reset(); - model.activeState = model.widgetState.getMoveHandle(); - model.widgetState.getMoveHandle().activate(); - model._interactor.requestAnimation(publicAPI); - publicAPI.invokeStartInteractionEvent(); - } - model.hasFocus = true; - }; - publicAPI.loseFocus = () => { - if (model.hasFocus) { - model._interactor.cancelAnimation(publicAPI); - publicAPI.invokeEndInteractionEvent(); - } - model.widgetState.deactivate(); - model.widgetState.getMoveHandle().deactivate(); - model.activeState = null; - model.hasFocus = false; - model._widgetManager.enablePicking(); - model._interactor.render(); - }; -} - -export { widgetBehavior as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LabelWidget/state.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LabelWidget/state.js deleted file mode 100644 index fdb1acf9..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LabelWidget/state.js +++ /dev/null @@ -1,22 +0,0 @@ -import vtkStateBuilder from '../../Core/StateBuilder.js'; - -function generateState() { - return vtkStateBuilder.createBuilder().addStateFromMixin({ - labels: ['moveHandle'], - mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator'], - name: 'moveHandle', - initialValues: { - scale1: 10, - visible: false - } - }).addStateFromMixin({ - labels: ['SVGtext'], - mixins: ['origin', 'color', 'text', 'visible', 'manipulator'], - name: 'text', - initialValues: { - visible: true - } - }).build(); -} - -export { generateState as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LineWidget.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LineWidget.js deleted file mode 100644 index 795c3af0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LineWidget.js +++ /dev/null @@ -1,187 +0,0 @@ -import { f as distance2BetweenPoints } from '../../Common/Core/Math/index.js'; -import { m as macro } from '../../macros2.js'; -import generateState from './LineWidget/state.js'; -import vtkAbstractWidgetFactory from '../Core/AbstractWidgetFactory.js'; -import vtkArrowHandleRepresentation from '../Representations/ArrowHandleRepresentation.js'; -import vtkPlaneManipulator from '../Manipulators/PlaneManipulator.js'; -import vtkPolyLineRepresentation from '../Representations/PolyLineRepresentation.js'; -import widgetBehavior from './LineWidget/behavior.js'; -import { Behavior } from '../Representations/WidgetRepresentation/Constants.js'; -import { ViewTypes } from '../Core/WidgetManager/Constants.js'; -import { getPoint, updateTextPosition } from './LineWidget/helpers.js'; - -// ---------------------------------------------------------------------------- -// Factory -// ---------------------------------------------------------------------------- - -function vtkLineWidget(publicAPI, model) { - model.classHierarchy.push('vtkLineWidget'); - const superClass = { - ...publicAPI - }; - - // --- Widget Requirement --------------------------------------------------- - - model.methodsToLink = ['activeScaleFactor', 'activeColor', 'useActiveColor', 'glyphResolution', 'defaultScale', 'scaleInPixels']; - publicAPI.getRepresentationsForViewType = viewType => { - switch (viewType) { - case ViewTypes.DEFAULT: - case ViewTypes.GEOMETRY: - case ViewTypes.SLICE: - case ViewTypes.VOLUME: - default: - return [{ - builder: vtkArrowHandleRepresentation, - labels: ['handle1'], - initialValues: { - /* - * This table sets the visibility of the handles' actors - * 1st actor is a displayActor, which hides a rendered object on the HTML layer. - * operating on its value allows to hide a handle to the user while still being - * able to detect its presence, so the user can move it. 2nd actor is a classic VTK - * actor which renders the object on the VTK scene - */ - visibilityFlagArray: [false, false], - coincidentTopologyParameters: { - Point: { - factor: -1.0, - offset: -1.0 - }, - Line: { - factor: -1.0, - offset: -1.0 - }, - Polygon: { - factor: -3.0, - offset: -3.0 - } - } - } - }, { - builder: vtkArrowHandleRepresentation, - labels: ['handle2'], - initialValues: { - /* - * This table sets the visibility of the handles' actors - * 1st actor is a displayActor, which hides a rendered object on the HTML layer. - * operating on its value allows to hide a handle to the user while still being - * able to detect its presence, so the user can move it. 2nd actor is a classic VTK - * actor which renders the object on the VTK scene - */ - visibilityFlagArray: [false, false], - coincidentTopologyParameters: { - Point: { - factor: -1.0, - offset: -1.0 - }, - Line: { - factor: -1.0, - offset: -1.0 - }, - Polygon: { - factor: -3.0, - offset: -3.0 - } - } - } - }, { - builder: vtkArrowHandleRepresentation, - labels: ['moveHandle'], - initialValues: { - visibilityFlagArray: [false, false], - coincidentTopologyParameters: { - Point: { - factor: -1.0, - offset: -1.0 - }, - Line: { - factor: -1.0, - offset: -1.0 - }, - Polygon: { - factor: -3.0, - offset: -3.0 - } - } - } - }, { - builder: vtkPolyLineRepresentation, - labels: ['handle1', 'handle2', 'moveHandle'], - initialValues: { - behavior: Behavior.HANDLE, - pickable: true - } - }]; - } - }; - - // --- Public methods ------------------------------------------------------- - - publicAPI.getDistance = () => { - const p1 = getPoint(0, model.widgetState); - const p2 = getPoint(1, model.widgetState); - return p1 && p2 ? Math.sqrt(distance2BetweenPoints(p1, p2)) : 0; - }; - publicAPI.setManipulator = manipulator => { - superClass.setManipulator(manipulator); - model.widgetState.getMoveHandle().setManipulator(manipulator); - model.widgetState.getHandle1().setManipulator(manipulator); - model.widgetState.getHandle2().setManipulator(manipulator); - }; - - // -------------------------------------------------------------------------- - // initialization - // -------------------------------------------------------------------------- - - /** - * TBD: Why setting the move handle ? - */ - model.widgetState.onBoundsChange(bounds => { - const center = [(bounds[0] + bounds[1]) * 0.5, (bounds[2] + bounds[3]) * 0.5, (bounds[4] + bounds[5]) * 0.5]; - model.widgetState.getMoveHandle().setOrigin(center); - }); - let linePosSub = model.widgetState.getPositionOnLine().onModified(() => { - updateTextPosition(model); - }); - - // Default manipulator - publicAPI.setManipulator(model.manipulator || vtkPlaneManipulator.newInstance({ - useCameraNormal: true - })); - publicAPI.delete = macro.chain(publicAPI.delete, () => { - linePosSub.unsubscribe(); - linePosSub = null; - }); -} - -// ---------------------------------------------------------------------------- - -const defaultValues = initialValues => ({ - // manipulator: null, - behavior: widgetBehavior, - widgetState: generateState(), - ...initialValues -}); - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - vtkAbstractWidgetFactory.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['manipulator']); - vtkLineWidget(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkLineWidget'); - -// ---------------------------------------------------------------------------- - -var vtkLineWidget$1 = { - newInstance, - extend -}; - -export { vtkLineWidget$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LineWidget/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LineWidget/Constants.js deleted file mode 100644 index 7323bc8b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LineWidget/Constants.js +++ /dev/null @@ -1,28 +0,0 @@ -const ShapeType = { - // NONE is a sphere handle always invisible even on mouseover, which - // prevents user from moving handle once it is placed - NONE: 'voidSphere', - // 3D handles - SPHERE: 'sphere', - CUBE: 'cube', - CONE: 'cone', - // 2D handles - ARROWHEAD3: 'triangle', - ARROWHEAD4: '4pointsArrowHead', - ARROWHEAD6: '6pointsArrowHead', - STAR: 'star', - DISK: 'disk', - CIRCLE: 'circle', - VIEWFINDER: 'viewFinder' -}; -const Shapes2D = [ShapeType.ARROWHEAD3, ShapeType.ARROWHEAD4, ShapeType.ARROWHEAD6, ShapeType.STAR, ShapeType.DISK, ShapeType.CIRCLE, ShapeType.VIEWFINDER]; -const Shapes3D = [ShapeType.SPHERE, ShapeType.CUBE, ShapeType.CONE]; -const ShapesOrientable = [ShapeType.CONE, ShapeType.ARROWHEAD3, ShapeType.ARROWHEAD4, ShapeType.ARROWHEAD6]; -var Constants = { - ShapeType, - Shapes2D, - Shapes3D, - ShapesOrientable -}; - -export { ShapeType, Shapes2D, Shapes3D, ShapesOrientable, Constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LineWidget/behavior.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LineWidget/behavior.js deleted file mode 100644 index e4288698..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LineWidget/behavior.js +++ /dev/null @@ -1,297 +0,0 @@ -import Constants from './Constants.js'; -import { m as macro } from '../../../macros2.js'; -import { k as add, s as subtract, l as normalize } from '../../../Common/Core/Math/index.js'; -import { getNumberOfPlacedHandles, isHandlePlaced, calculateTextPosition, updateTextPosition, getPoint } from './helpers.js'; - -const { - ShapeType -} = Constants; -// Total number of points to place -const MAX_POINTS = 2; -const handleGetters = ['getHandle1', 'getHandle2', 'getMoveHandle']; -function widgetBehavior(publicAPI, model) { - model.classHierarchy.push('vtkLineWidgetProp'); - model._isDragging = false; - - /** - * Returns the handle at the handleIndex'th index. - * @param {number} handleIndex 0, 1 or 2 - */ - publicAPI.getHandle = handleIndex => model.widgetState[handleGetters[handleIndex]](); - - /** - * Return the index in the of tbe handle in `representations` array, - * or -1 if the handle is not present in the widget state. - */ - publicAPI.getHandleIndex = handle => { - switch (handle) { - case model.widgetState.getHandle1(): - return 0; - case model.widgetState.getHandle2(): - return 1; - case model.widgetState.getMoveHandle(): - return 2; - default: - return -1; - } - }; - publicAPI.isPlaced = () => getNumberOfPlacedHandles(model.widgetState) === MAX_POINTS; - - // -------------------------------------------------------------------------- - // Interactor event - // -------------------------------------------------------------------------- - - function ignoreKey(e) { - return e.altKey || e.controlKey || e.shiftKey; - } - function updateCursor(callData) { - model._isDragging = true; - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - manipulator.handleEvent(callData, model._apiSpecificRenderWindow); - model._apiSpecificRenderWindow.setCursor('grabbing'); - model._interactor.requestAnimation(publicAPI); - } - - // -------------------------------------------------------------------------- - // Text methods - // -------------------------------------------------------------------------- - - publicAPI.setText = text => { - model.widgetState.getText().setText(text); - model._interactor.render(); - }; - - // -------------------------------------------------------------------------- - // Handle positioning methods - // -------------------------------------------------------------------------- - - // Handle utilities --------------------------------------------------------- - - function getLineDirection(p1, p2) { - const dir = subtract(p1, p2, []); - normalize(dir); - return dir; - } - - // Handle orientation & rotation --------------------------------------------------------- - - function computeMousePosition(p1, callData) { - const displayMousePos = publicAPI.computeWorldToDisplay(model._renderer, ...p1); - const worldMousePos = publicAPI.computeDisplayToWorld(model._renderer, callData.position.x, callData.position.y, displayMousePos[2]); - return worldMousePos; - } - - /** - * Returns the handle orientation to match the direction vector of the polyLine from one tip to another - * @param {number} handleIndex 0 for handle1, 1 for handle2 - * @param {object} callData if specified, uses mouse position as 2nd point - */ - function getHandleOrientation(handleIndex) { - let callData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - const point1 = getPoint(handleIndex, model.widgetState); - const point2 = callData ? computeMousePosition(point1, callData) : getPoint(1 - handleIndex, model.widgetState); - return point1 && point2 ? getLineDirection(point1, point2) : null; - } - - /** - * Orient handle - * @param {number} handleIndex 0, 1 or 2 - * @param {object} callData optional, see getHandleOrientation for details. - */ - function updateHandleOrientation(handleIndex) { - const orientation = getHandleOrientation(Math.min(1, handleIndex)); - model.representations[handleIndex].setOrientation(orientation); - } - publicAPI.updateHandleOrientations = () => { - updateHandleOrientation(0); - updateHandleOrientation(1); - updateHandleOrientation(2); - }; - publicAPI.rotateHandlesToFaceCamera = () => { - model.representations[0].setViewMatrix(Array.from(model._camera.getViewMatrix())); - model.representations[1].setViewMatrix(Array.from(model._camera.getViewMatrix())); - }; - - // Handles visibility --------------------------------------------------------- - - /** - * Set actor visibility to true unless it is a NONE handle - * and uses state visibility variable for the displayActor visibility to - * allow pickable handles even when they are not displayed on screen - * @param handle : the handle state object - * @param handleNb : the handle number according to its label in widget state - */ - publicAPI.updateHandleVisibility = handleIndex => { - const handle = publicAPI.getHandle(handleIndex); - const visibility = handle.getVisible() && isHandlePlaced(handleIndex, model.widgetState); - model.representations[handleIndex].setVisibilityFlagArray([visibility, visibility && handle.getShape() !== ShapeType.NONE]); - model.representations[handleIndex].updateActorVisibility(); - model._interactor.render(); - }; - - /** - * Called when placing a point from the first time. - * @param {number} handleIndex - */ - publicAPI.placeHandle = handleIndex => { - const handle = publicAPI.getHandle(handleIndex); - handle.setOrigin(...model.widgetState.getMoveHandle().getOrigin()); - publicAPI.updateHandleOrientations(); - publicAPI.rotateHandlesToFaceCamera(); - model.widgetState.getText().setOrigin(calculateTextPosition(model)); - publicAPI.updateHandleVisibility(handleIndex); - if (handleIndex === 0) { - // For the line (handle1, handle2, moveHandle) to be displayed - // correctly, handle2 origin must be valid. - publicAPI.getHandle(1).setOrigin(...model.widgetState.getMoveHandle().getOrigin()); - // Now that handle2 has a valid origin, hide it - publicAPI.updateHandleVisibility(1); - model.widgetState.getMoveHandle().setShape(publicAPI.getHandle(1).getShape()); - } - if (handleIndex === 1) { - publicAPI.loseFocus(); - } - }; - - // -------------------------------------------------------------------------- - // Left press: Select handle to drag - // -------------------------------------------------------------------------- - - publicAPI.handleLeftButtonPress = e => { - if (!model.activeState || !model.activeState.getActive() || !model.pickable || ignoreKey(e)) { - return macro.VOID; - } - if (model.activeState === model.widgetState.getMoveHandle() && getNumberOfPlacedHandles(model.widgetState) === 0) { - publicAPI.placeHandle(0); - } else if (model.widgetState.getMoveHandle().getActive() && getNumberOfPlacedHandles(model.widgetState) === 1) { - publicAPI.placeHandle(1); - } else if (model.dragable && !model.widgetState.getText().getActive()) { - // Grab handle1, handle2 or whole widget - updateCursor(e); - } - publicAPI.invokeStartInteractionEvent(); - return macro.EVENT_ABORT; - }; - - // -------------------------------------------------------------------------- - // Mouse move: Drag selected handle / Handle follow the mouse - // -------------------------------------------------------------------------- - - publicAPI.handleMouseMove = callData => { - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - if (manipulator && model.pickable && model.dragable && model.activeState && model.activeState.getActive() && !ignoreKey(callData)) { - const { - worldCoords, - worldDelta - } = manipulator.handleEvent(callData, model._apiSpecificRenderWindow); - const isHandleMoving = - // is placing first or second handle - model.activeState === model.widgetState.getMoveHandle() || - // is dragging already placed first or second handle - model._isDragging; - - // the line state doesn't have setOrigin - const isDraggingLine = !model.activeState.setOrigin; - if (isHandleMoving) { - if (!isDraggingLine) { - const curOrigin = model.activeState.getOrigin(); - if (curOrigin) { - model.activeState.setOrigin(add(model.activeState.getOrigin(), worldDelta, [])); - } else { - model.activeState.setOrigin(worldCoords); - } - publicAPI.updateHandleVisibility(publicAPI.getHandleIndex(model.activeState)); - } else { - // Dragging line; move all handles - for (let i = 0; i < 2; i++) { - const handleOrigin = publicAPI.getHandle(i).getOrigin(); - publicAPI.getHandle(i).setOrigin(add(handleOrigin, worldDelta, [])); - } - } - publicAPI.updateHandleOrientations(); - updateTextPosition(model); - publicAPI.invokeInteractionEvent(); - return macro.EVENT_ABORT; - } - } - return macro.VOID; - }; - - // -------------------------------------------------------------------------- - // Left release: Finish drag - // -------------------------------------------------------------------------- - - publicAPI.handleLeftButtonRelease = () => { - if (!model.activeState || !model.activeState.getActive() || !model.pickable) { - publicAPI.rotateHandlesToFaceCamera(); - return macro.VOID; - } - if (model.hasFocus && publicAPI.isPlaced()) { - publicAPI.loseFocus(); - return macro.VOID; - } - if (model._isDragging && publicAPI.isPlaced()) { - const wasTextActive = model.widgetState.getText().getActive(); - // Recompute offsets - model.widgetState.deactivate(); - model.activeState = null; - if (!wasTextActive) { - model._interactor.cancelAnimation(publicAPI); - } - model._apiSpecificRenderWindow.setCursor('pointer'); - model.hasFocus = false; - model._isDragging = false; - } else if (model.activeState !== model.widgetState.getMoveHandle()) { - model.widgetState.deactivate(); - } - if (model.hasFocus && !model.activeState || model.activeState && !model.activeState.getActive()) { - model._widgetManager.enablePicking(); - model._interactor.render(); - } - publicAPI.invokeEndInteractionEvent(); - return macro.EVENT_ABORT; - }; - - // -------------------------------------------------------------------------- - // Focus API - moveHandle follow mouse when widget has focus - // -------------------------------------------------------------------------- - - publicAPI.grabFocus = () => { - if (!model.hasFocus && !publicAPI.isPlaced()) { - model.activeState = model.widgetState.getMoveHandle(); - model.activeState.setShape(publicAPI.getHandle(0).getShape()); - model.activeState.activate(); - model._interactor.requestAnimation(publicAPI); - publicAPI.invokeStartInteractionEvent(); - } - model.hasFocus = true; - }; - - // -------------------------------------------------------------------------- - - publicAPI.loseFocus = () => { - if (model.hasFocus) { - model._interactor.cancelAnimation(publicAPI); - publicAPI.invokeEndInteractionEvent(); - } - model.widgetState.deactivate(); - model.widgetState.getMoveHandle().deactivate(); - model.widgetState.getMoveHandle().setOrigin(null); - model.activeState = null; - model.hasFocus = false; - model._widgetManager.enablePicking(); - model._interactor.render(); - }; - publicAPI.reset = () => { - model.widgetState.deactivate(); - model.widgetState.getMoveHandle().deactivate(); - model.widgetState.getHandle1().setOrigin(null); - model.widgetState.getHandle2().setOrigin(null); - model.widgetState.getMoveHandle().setOrigin(null); - model.widgetState.getText().setOrigin(null); - model.widgetState.getText().setText(''); - model.activeState = null; - }; -} - -export { widgetBehavior as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LineWidget/helpers.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LineWidget/helpers.js deleted file mode 100644 index c194f6a0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LineWidget/helpers.js +++ /dev/null @@ -1,60 +0,0 @@ -import { s as subtract, x as multiplyScalar, k as add, E as areEquals } from '../../../Common/Core/Math/index.js'; - -function calculateTextPosition(model) { - const vector = [0, 0, 0]; - const handle1WorldPos = model.widgetState.getHandle1().getOrigin(); - const handle2WorldPos = model.widgetState.getHandle2().getOrigin(); - if (!handle1WorldPos || !handle2WorldPos) { - return null; - } - let statePositionOnLine = model.widgetState.getPositionOnLine().getPosOnLine(); - statePositionOnLine = 1 - statePositionOnLine; - subtract(handle1WorldPos, handle2WorldPos, vector); - multiplyScalar(vector, statePositionOnLine); - add(vector, handle2WorldPos, vector); - return vector; -} -function updateTextPosition(model) { - const SVGTextState = model.widgetState.getText(); - SVGTextState.setOrigin(calculateTextPosition(model)); -} -function isHandlePlaced(handleIndex, widgetState) { - if (handleIndex === 2) { - return widgetState.getMoveHandle().getOrigin() != null; - } - const handle1Origin = widgetState.getHandle1().getOrigin(); - if (handleIndex === 0) { - return handle1Origin != null; - } - const handle2Origin = widgetState.getHandle2().getOrigin(); - return handle1Origin && handle2Origin && !areEquals(handle1Origin, handle2Origin, 0); -} - -/** - * Returns the world position of line extremities (placed or not). - * Returns null if no extremity exist. - * @param {number} handleIndex 0 or 1 - * @param {object} widgetState state of line widget - * @param {bool} moveHandle Get move handle position if moveHandle is true and handle is not placed - */ -function getPoint(handleIndex, widgetState) { - let moveHandle = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; - const handle = moveHandle && !isHandlePlaced(handleIndex, widgetState) ? widgetState.getMoveHandle() : widgetState[`getHandle${handleIndex + 1}`](); - const origin = handle.getOrigin(); - return origin || null; -} - -/** - * Returns the number of handle placed on the scene by checking - * handle positions. Returns 2 when the user is still - * placing 2nd handle - * */ -function getNumberOfPlacedHandles(widgetState) { - let numberOfPlacedHandles = 0; - if (isHandlePlaced(0, widgetState)) { - numberOfPlacedHandles = 1 + isHandlePlaced(1, widgetState); - } - return numberOfPlacedHandles; -} - -export { calculateTextPosition, getNumberOfPlacedHandles, getPoint, isHandlePlaced, updateTextPosition }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LineWidget/state.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LineWidget/state.js deleted file mode 100644 index f445442d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/LineWidget/state.js +++ /dev/null @@ -1,50 +0,0 @@ -import vtkStateBuilder from '../../Core/StateBuilder.js'; - -// make line position a sub-state so we can listen to it -// separately from the rest of the widget state. - -const linePosState = vtkStateBuilder.createBuilder().addField({ - name: 'posOnLine', - initialValue: 0.5 -}).build(); -function generateState() { - return vtkStateBuilder.createBuilder().addStateFromMixin({ - labels: ['moveHandle'], - mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator', 'shape'], - name: 'moveHandle', - initialValues: { - scale1: 30, - visible: true - } - }).addStateFromMixin({ - labels: ['handle1'], - mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator', 'shape'], - name: 'handle1', - initialValues: { - scale1: 30 - } - }).addStateFromMixin({ - labels: ['handle2'], - mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator', 'shape'], - name: 'handle2', - initialValues: { - scale1: 30 - } - }).addStateFromMixin({ - labels: ['SVGtext'], - mixins: ['origin', 'color', 'text', 'visible'], - name: 'text', - initialValues: { - /* text is empty to set a text filed in the SVGLayer and to avoid - * displaying text before positioning the handles */ - text: '' - } - }).addStateFromInstance({ - name: 'positionOnLine', - instance: linePosState - }).addField({ - name: 'lineThickness' - }).build(); -} - -export { generateState as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/PaintWidget.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/PaintWidget.js deleted file mode 100644 index c6b58e80..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/PaintWidget.js +++ /dev/null @@ -1,99 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkAbstractWidgetFactory from '../Core/AbstractWidgetFactory.js'; -import vtkCircleContextRepresentation from '../Representations/CircleContextRepresentation.js'; -import vtkPlaneManipulator from '../Manipulators/PlaneManipulator.js'; -import vtkSphereHandleRepresentation from '../Representations/SphereHandleRepresentation.js'; -import widgetBehavior from './PaintWidget/behavior.js'; -import generateState from './PaintWidget/state.js'; -import { ViewTypes } from '../Core/WidgetManager/Constants.js'; - -// ---------------------------------------------------------------------------- -// Factory -// ---------------------------------------------------------------------------- - -function vtkPaintWidget(publicAPI, model) { - model.classHierarchy.push('vtkPaintWidget'); - const superClass = { - ...publicAPI - }; - - // --- Widget Requirement --------------------------------------------------- - - publicAPI.getRepresentationsForViewType = viewType => { - switch (viewType) { - case ViewTypes.DEFAULT: - case ViewTypes.GEOMETRY: - case ViewTypes.SLICE: - return [{ - builder: vtkCircleContextRepresentation, - labels: ['handle', 'trail'] - }]; - case ViewTypes.VOLUME: - default: - return [{ - builder: vtkSphereHandleRepresentation, - labels: ['handle'] - }]; - } - }; - - // --- Public methods ------------------------------------------------------- - - publicAPI.setManipulator = manipulator => { - superClass.setManipulator(manipulator); - model.widgetState.getHandle().setManipulator(manipulator); - }; - - // override - const superSetRadius = publicAPI.setRadius; - publicAPI.setRadius = r => { - if (superSetRadius(r)) { - model.widgetState.getHandle().setScale1(r); - } - }; - - // -------------------------------------------------------------------------- - // initialization - // -------------------------------------------------------------------------- - - // Default manipulator - publicAPI.setManipulator(model.manipulator || vtkPlaneManipulator.newInstance({ - useCameraNormal: true - })); -} - -// ---------------------------------------------------------------------------- - -const defaultValues = initialValues => ({ - // manipulator: null, - radius: 1, - painting: false, - color: [1], - behavior: widgetBehavior, - widgetState: generateState(initialValues?.radius ?? 1), - ...initialValues -}); - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - vtkAbstractWidgetFactory.extend(publicAPI, model, initialValues); - macro.get(publicAPI, model, ['painting']); - macro.setGet(publicAPI, model, ['manipulator', 'radius', 'color']); - vtkPaintWidget(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPaintWidget'); - -// ---------------------------------------------------------------------------- - -var vtkPaintWidget$1 = { - newInstance, - extend -}; - -export { vtkPaintWidget$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/PaintWidget/behavior.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/PaintWidget/behavior.js deleted file mode 100644 index b238f1d5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/PaintWidget/behavior.js +++ /dev/null @@ -1,95 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import { vec3 } from 'gl-matrix'; - -function widgetBehavior(publicAPI, model) { - model.painting = model._factory.getPainting(); - publicAPI.handleLeftButtonPress = callData => { - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - if (!(manipulator && model.activeState && model.activeState.getActive())) { - model.painting = false; - return macro.VOID; - } - const { - worldCoords - } = manipulator.handleEvent(callData, model._apiSpecificRenderWindow); - if (!worldCoords?.length) { - model.painting = false; - return macro.VOID; - } - model.painting = true; - const trailCircle = model.widgetState.addTrail(); - trailCircle.set(model.activeState.get('origin', 'up', 'right', 'direction', 'scale1')); - publicAPI.invokeStartInteractionEvent(); - return macro.EVENT_ABORT; - }; - publicAPI.handleMouseMove = callData => publicAPI.handleEvent(callData); - publicAPI.handleLeftButtonRelease = () => { - if (model.painting) { - publicAPI.invokeEndInteractionEvent(); - model.widgetState.clearTrailList(); - } - model.painting = false; - return macro.VOID; - }; - publicAPI.handleEvent = callData => { - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - if (!(manipulator && model.activeState && model.activeState.getActive())) { - model.painting = false; - return macro.VOID; - } - const normal = model._camera.getDirectionOfProjection(); - const up = model._camera.getViewUp(); - const right = []; - vec3.cross(right, up, normal); - model.activeState.setUp(...up); - model.activeState.setRight(...right); - model.activeState.setDirection(...normal); - const { - worldCoords - } = manipulator.handleEvent(callData, model._apiSpecificRenderWindow); - if (!worldCoords?.length) { - return macro.VOID; - } - model.widgetState.setTrueOrigin(...worldCoords); - model.activeState.setOrigin(...worldCoords); - if (model.painting) { - const trailCircle = model.widgetState.addTrail(); - trailCircle.set(model.activeState.get('origin', 'up', 'right', 'direction', 'scale1')); - } else { - return macro.VOID; - } - publicAPI.invokeInteractionEvent(); - return macro.EVENT_ABORT; - }; - publicAPI.grabFocus = () => { - if (!model.hasFocus) { - model.activeState = model.widgetState.getHandle(); - model.activeState.activate(); - model._interactor.requestAnimation(publicAPI); - const canvas = model._apiSpecificRenderWindow.getCanvas(); - canvas.onmouseenter = () => { - if (model.hasFocus && model.activeState === model.widgetState.getHandle()) { - model.activeState.setVisible(true); - } - }; - canvas.onmouseleave = () => { - if (model.hasFocus && model.activeState === model.widgetState.getHandle()) { - model.activeState.setVisible(false); - } - }; - } - model.hasFocus = true; - }; - publicAPI.loseFocus = () => { - if (model.hasFocus) { - model._interactor.cancelAnimation(publicAPI); - } - model.widgetState.deactivate(); - model.widgetState.getHandle().deactivate(); - model.activeState = null; - model.hasFocus = false; - }; - macro.get(publicAPI, model, ['painting']); -} - -export { widgetBehavior as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/PaintWidget/state.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/PaintWidget/state.js deleted file mode 100644 index 14bbd5e5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/PaintWidget/state.js +++ /dev/null @@ -1,26 +0,0 @@ -import vtkStateBuilder from '../../Core/StateBuilder.js'; - -function generateState(radius) { - return vtkStateBuilder.createBuilder().addField({ - name: 'trueOrigin', - initialValue: [0, 0, 0] - }).addStateFromMixin({ - labels: ['handle'], - mixins: ['origin', 'color', 'scale1', 'orientation', 'manipulator', 'visible'], - name: 'handle', - initialValues: { - scale1: radius * 2, - orientation: [1, 0, 0, 0, 1, 0, 0, 0, 1] - } - }).addDynamicMixinState({ - labels: ['trail'], - mixins: ['origin', 'color', 'scale1', 'orientation', 'visible'], - name: 'trail', - initialValues: { - scale1: radius * 2, - orientation: [1, 0, 0, 0, 1, 0, 0, 0, 1] - } - }).build(); -} - -export { generateState as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/PolyLineWidget.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/PolyLineWidget.js deleted file mode 100644 index 3436c40d..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/PolyLineWidget.js +++ /dev/null @@ -1,93 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkAbstractWidgetFactory from '../Core/AbstractWidgetFactory.js'; -import vtkPlaneManipulator from '../Manipulators/PlaneManipulator.js'; -import vtkPolyLineRepresentation from '../Representations/PolyLineRepresentation.js'; -import vtkSphereHandleRepresentation from '../Representations/SphereHandleRepresentation.js'; -import widgetBehavior from './PolyLineWidget/behavior.js'; -import generateState from './PolyLineWidget/state.js'; -import { ViewTypes } from '../Core/WidgetManager/Constants.js'; - -// ---------------------------------------------------------------------------- -// Factory -// ---------------------------------------------------------------------------- - -function vtkPolyLineWidget(publicAPI, model) { - model.classHierarchy.push('vtkPolyLineWidget'); - const superClass = { - ...publicAPI - }; - - // --- Widget Requirement --------------------------------------------------- - - model.methodsToLink = ['activeColor', 'activeScaleFactor', 'closePolyLine', 'defaultScale', 'glyphResolution', 'lineThickness', 'useActiveColor', 'scaleInPixels']; - publicAPI.getRepresentationsForViewType = viewType => { - switch (viewType) { - case ViewTypes.DEFAULT: - case ViewTypes.GEOMETRY: - case ViewTypes.SLICE: - case ViewTypes.VOLUME: - default: - return [{ - builder: vtkSphereHandleRepresentation, - labels: ['handles'] - }, { - builder: vtkSphereHandleRepresentation, - labels: ['moveHandle'] - }, { - builder: vtkPolyLineRepresentation, - labels: ['handles', 'moveHandle'] - }]; - } - }; - - // --- Public methods ------------------------------------------------------- - publicAPI.setManipulator = manipulator => { - superClass.setManipulator(manipulator); - model.widgetState.getMoveHandle().setManipulator(manipulator); - model.widgetState.getHandleList().forEach(handle => { - handle.setManipulator(manipulator); - }); - }; - - // -------------------------------------------------------------------------- - // initialization - // -------------------------------------------------------------------------- - - // Default manipulator - publicAPI.setManipulator(model.manipulator || vtkPlaneManipulator.newInstance({ - useCameraFocalPoint: true, - useCameraNormal: true - })); -} - -// ---------------------------------------------------------------------------- - -const defaultValues = initialValues => ({ - manipulator: null, - behavior: widgetBehavior, - widgetState: generateState(), - ...initialValues -}); - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - vtkAbstractWidgetFactory.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['manipulator']); - vtkPolyLineWidget(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkPolyLineWidget'); - -// ---------------------------------------------------------------------------- - -var vtkPolyLineWidget$1 = { - newInstance, - extend -}; - -export { vtkPolyLineWidget$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/PolyLineWidget/behavior.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/PolyLineWidget/behavior.js deleted file mode 100644 index 9b4c8f3b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/PolyLineWidget/behavior.js +++ /dev/null @@ -1,182 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import { k as add } from '../../../Common/Core/Math/index.js'; - -function widgetBehavior(publicAPI, model) { - model.classHierarchy.push('vtkPolyLineWidgetProp'); - model._isDragging = false; - - // -------------------------------------------------------------------------- - // Display 2D - // -------------------------------------------------------------------------- - - publicAPI.setDisplayCallback = callback => model.representations[0].setDisplayCallback(callback); - - // -------------------------------------------------------------------------- - // Interactor events - // -------------------------------------------------------------------------- - - function ignoreKey(e) { - return e.altKey || e.controlKey || e.shiftKey; - } - function updateMoveHandle(callData) { - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - if (!manipulator) { - return macro.VOID; - } - const { - worldCoords, - worldDelta - } = manipulator.handleEvent(callData, model._apiSpecificRenderWindow); - const isHandleMoving = model.activeState === model.widgetState.getMoveHandle() || model._isDragging; - - // the line is pickable but not draggable - const isPickingLine = !model.activeState.setOrigin; - if (worldCoords.length && isHandleMoving && !isPickingLine) { - const curOrigin = model.activeState.getOrigin(); - if (curOrigin) { - model.activeState.setOrigin(add(curOrigin, worldDelta, [])); - } else { - model.activeState.setOrigin(worldCoords); - } - publicAPI.invokeInteractionEvent(); - return macro.EVENT_ABORT; - } - return macro.VOID; - } - - // -------------------------------------------------------------------------- - // Right click: Delete handle - // -------------------------------------------------------------------------- - - publicAPI.handleRightButtonPress = e => { - if (!model.activeState || !model.activeState.getActive() || !model.pickable || ignoreKey(e)) { - return macro.VOID; - } - if (model.activeState !== model.widgetState.getMoveHandle()) { - model._interactor.requestAnimation(publicAPI); - model.activeState.deactivate(); - model.widgetState.removeHandle(model.activeState); - model.activeState = null; - model._interactor.cancelAnimation(publicAPI); - } - publicAPI.invokeStartInteractionEvent(); - publicAPI.invokeInteractionEvent(); - publicAPI.invokeEndInteractionEvent(); - return macro.EVENT_ABORT; - }; - - // -------------------------------------------------------------------------- - // Left press: Select handle to drag - // -------------------------------------------------------------------------- - - publicAPI.handleLeftButtonPress = e => { - if (!model.activeState || !model.activeState.getActive() || !model.pickable || ignoreKey(e)) { - return macro.VOID; - } - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - if (model.activeState === model.widgetState.getMoveHandle() && manipulator) { - updateMoveHandle(e); - const moveHandle = model.widgetState.getMoveHandle(); - const newHandle = model.widgetState.addHandle(); - newHandle.setOrigin(moveHandle.getOrigin()); - newHandle.setColor(moveHandle.getColor()); - newHandle.setScale1(moveHandle.getScale1()); - newHandle.setManipulator(manipulator); - } else if (model.dragable) { - // Update worldDelta - manipulator.handleEvent(e, model._apiSpecificRenderWindow); - model._isDragging = true; - model._apiSpecificRenderWindow.setCursor('grabbing'); - model._interactor.requestAnimation(publicAPI); - } - publicAPI.invokeStartInteractionEvent(); - return macro.EVENT_ABORT; - }; - - // -------------------------------------------------------------------------- - // Mouse move: Drag selected handle / Handle follow the mouse - // -------------------------------------------------------------------------- - - publicAPI.handleMouseMove = callData => { - if (model.pickable && model.dragable && model.activeState && model.activeState.getActive() && !ignoreKey(callData)) { - if (updateMoveHandle(callData) === macro.EVENT_ABORT) { - return macro.EVENT_ABORT; - } - } - if (model.hasFocus) { - model._widgetManager.disablePicking(); - } - return macro.VOID; - }; - - // -------------------------------------------------------------------------- - // Left release: Finish drag / Create new handle - // -------------------------------------------------------------------------- - - publicAPI.handleLeftButtonRelease = () => { - if (!model.activeState || !model.activeState.getActive() || !model.pickable) { - return macro.VOID; - } - if (model._isDragging) { - model._apiSpecificRenderWindow.setCursor('pointer'); - model.widgetState.deactivate(); - model._interactor.cancelAnimation(publicAPI); - model._isDragging = false; - } else if (model.activeState !== model.widgetState.getMoveHandle()) { - model.widgetState.deactivate(); - } - if (model.hasFocus && !model.activeState || model.activeState && !model.activeState.getActive()) { - model._widgetManager.enablePicking(); - model._interactor.render(); - } - publicAPI.invokeEndInteractionEvent(); - return macro.EVENT_ABORT; - }; - - // -------------------------------------------------------------------------- - // Escape key: Release focus to switch to drag mode - // -------------------------------------------------------------------------- - - publicAPI.handleKeyDown = _ref => { - let { - key - } = _ref; - if (key === 'Escape') { - publicAPI.loseFocus(); - } - }; - - // -------------------------------------------------------------------------- - // Focus API - modeHandle follow mouse when widget has focus - // -------------------------------------------------------------------------- - - publicAPI.grabFocus = () => { - if (!model.hasFocus) { - model.activeState = model.widgetState.getMoveHandle(); - model.activeState.activate(); - model.activeState.setVisible(true); - model._interactor.requestAnimation(publicAPI); - publicAPI.invokeStartInteractionEvent(); - } - model.hasFocus = true; - }; - - // -------------------------------------------------------------------------- - - publicAPI.loseFocus = () => { - if (model.hasFocus) { - model._interactor.cancelAnimation(publicAPI); - publicAPI.invokeEndInteractionEvent(); - } - model.widgetState.deactivate(); - model.widgetState.getMoveHandle().deactivate(); - model.widgetState.getMoveHandle().setVisible(false); - model.widgetState.getMoveHandle().setOrigin(null); - model.activeState = null; - model.hasFocus = false; - model._widgetManager.enablePicking(); - model._interactor.render(); - }; -} - -export { widgetBehavior as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/PolyLineWidget/state.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/PolyLineWidget/state.js deleted file mode 100644 index fd76ffbf..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/PolyLineWidget/state.js +++ /dev/null @@ -1,23 +0,0 @@ -import vtkStateBuilder from '../../Core/StateBuilder.js'; - -function generateState() { - return vtkStateBuilder.createBuilder().addStateFromMixin({ - labels: ['moveHandle'], - mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator'], - name: 'moveHandle', - initialValues: { - // when scaleInPixels=true, the handles have 30px height - scale1: 30, - visible: false - } - }).addDynamicMixinState({ - labels: ['handles'], - mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator'], - name: 'handle', - initialValues: { - scale1: 30 - } - }).build(); -} - -export { generateState as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/RectangleWidget.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/RectangleWidget.js deleted file mode 100644 index b8d8221a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/RectangleWidget.js +++ /dev/null @@ -1,90 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkPlaneManipulator from '../Manipulators/PlaneManipulator.js'; -import vtkShapeWidget from './ShapeWidget.js'; -import vtkSphereHandleRepresentation from '../Representations/SphereHandleRepresentation.js'; -import vtkRectangleContextRepresentation from '../Representations/RectangleContextRepresentation.js'; -import widgetBehavior from './RectangleWidget/behavior.js'; -import generateState from './RectangleWidget/state.js'; -import { BehaviorCategory, ShapeBehavior } from './ShapeWidget/Constants.js'; -import { ViewTypes } from '../Core/WidgetManager/Constants.js'; - -// ---------------------------------------------------------------------------- -// Factory -// ---------------------------------------------------------------------------- - -function vtkRectangleWidget(publicAPI, model) { - model.classHierarchy.push('vtkRectangleWidget'); - model.methodsToLink = [...model.methodsToLink, 'activeScaleFactor', 'activeColor', 'useActiveColor', 'drawBorder', 'drawFace', 'opacity']; - - // --- Widget Requirement --------------------------------------------------- - - publicAPI.getRepresentationsForViewType = viewType => { - switch (viewType) { - case ViewTypes.DEFAULT: - case ViewTypes.GEOMETRY: - case ViewTypes.SLICE: - case ViewTypes.VOLUME: - default: - return [{ - builder: vtkSphereHandleRepresentation, - labels: ['moveHandle'] - }, { - builder: vtkRectangleContextRepresentation, - labels: ['rectangleHandle'] - }]; - } - }; - - // -------------------------------------------------------------------------- - // initialization - // -------------------------------------------------------------------------- - - model.manipulator = vtkPlaneManipulator.newInstance({ - useCameraNormal: true - }); -} - -// ---------------------------------------------------------------------------- - -function defaultValues(initialValues) { - return { - behavior: widgetBehavior, - widgetState: generateState(), - modifierBehavior: { - None: { - [BehaviorCategory.PLACEMENT]: ShapeBehavior[BehaviorCategory.PLACEMENT].CLICK_AND_DRAG, - [BehaviorCategory.POINTS]: ShapeBehavior[BehaviorCategory.POINTS].CORNER_TO_CORNER, - [BehaviorCategory.RATIO]: ShapeBehavior[BehaviorCategory.RATIO].FREE - }, - Shift: { - [BehaviorCategory.RATIO]: ShapeBehavior[BehaviorCategory.RATIO].FIXED - }, - Control: { - [BehaviorCategory.POINTS]: ShapeBehavior[BehaviorCategory.POINTS].CENTER_TO_CORNER - } - }, - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - vtkShapeWidget.extend(publicAPI, model, defaultValues(initialValues)); - macro.setGet(publicAPI, model, ['widgetState']); - vtkRectangleWidget(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkRectangleWidget'); - -// ---------------------------------------------------------------------------- - -var vtkRectangleWidget$1 = { - newInstance, - extend -}; - -export { vtkRectangleWidget$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/RectangleWidget/behavior.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/RectangleWidget/behavior.js deleted file mode 100644 index b3423296..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/RectangleWidget/behavior.js +++ /dev/null @@ -1,25 +0,0 @@ -import widgetBehavior$1 from '../ShapeWidget/behavior.js'; - -function widgetBehavior(publicAPI, model) { - model.shapeHandle = model.widgetState.getRectangleHandle(); - model.point1Handle = model.widgetState.getPoint1Handle(); - model.point2Handle = model.widgetState.getPoint2Handle(); - model.point1Handle.setManipulator(model.manipulator); - model.point2Handle.setManipulator(model.manipulator); - - // We inherit shapeBehavior - widgetBehavior$1(publicAPI, model); - const superClass = { - ...publicAPI - }; - model.classHierarchy.push('vtkRectangleWidgetProp'); - publicAPI.setCorners = (point1, point2) => { - if (superClass.setCorners) { - superClass.setCorners(point1, point2); - } - model.shapeHandle.setOrigin(point1); - model.shapeHandle.setCorner(point2); - }; -} - -export { widgetBehavior as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/RectangleWidget/state.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/RectangleWidget/state.js deleted file mode 100644 index 9b22e52a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/RectangleWidget/state.js +++ /dev/null @@ -1,50 +0,0 @@ -import vtkStateBuilder from '../../Core/StateBuilder.js'; -import { TextPosition } from '../ShapeWidget/Constants.js'; - -function generateState() { - return vtkStateBuilder.createBuilder().addStateFromMixin({ - labels: ['moveHandle'], - mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator'], - name: 'point1Handle', - initialValues: { - scale1: 10, - visible: false - } - }).addStateFromMixin({ - labels: ['moveHandle'], - mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator'], - name: 'point2Handle', - initialValues: { - scale1: 10, - visible: false - } - }).addStateFromMixin({ - labels: ['rectangleHandle'], - mixins: ['origin', 'corner', 'color', 'visible', 'orientation'], - name: 'rectangleHandle', - initialValues: { - visible: false - } - }) - // FIXME: How to not duplicate with EllipseWidget - .addStateFromMixin({ - labels: ['SVGtext'], - mixins: ['origin', 'color', 'text', 'visible'], - name: 'text', - initialValues: { - /* text is empty to set a text filed in the SVGLayer and to avoid - * displaying text before positioning the handles */ - text: '' - } - }) - // FIXME: to move in text handle sub state - .addField({ - name: 'textPosition', - initialValue: [TextPosition.CENTER, TextPosition.CENTER, TextPosition.CENTER] - }).addField({ - name: 'textWorldMargin', - initialValue: 0 - }).build(); -} - -export { generateState as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget.d.ts deleted file mode 100644 index 18c2d17a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget.d.ts +++ /dev/null @@ -1,132 +0,0 @@ -import { mat4 } from 'gl-matrix'; -import { - vtkAbstractWidgetFactory, - IAbstractWidgetFactoryInitialValues, -} from './../Core/AbstractWidgetFactory'; -import { vtkResliceCursorWidgetDefaultInstance } from './ResliceCursorWidget/behavior'; -import { vtkAbstractWidget } from './../Core/AbstractWidget'; -import { vtkImageData } from './../../Common/DataModel/ImageData'; -import { vtkImageReslice } from './../../Imaging/Core/ImageReslice'; -import { vtkPlaneSource } from './../../Filters/Sources/PlaneSource'; -import { vtkRenderer } from './../../Rendering/Core/Renderer'; -import { vtkPlaneManipulator } from './../Manipulators/PlaneManipulator'; -import { ViewTypes } from './../Core/WidgetManager/Constants'; -import { Vector2, Vector3 } from './../../types'; -import { IDisplayScaleParams } from './../Core/WidgetManager'; - -export interface vtkResliceCursorWidget< - WidgetInstance extends vtkAbstractWidget = vtkResliceCursorWidgetDefaultInstance -> extends vtkAbstractWidgetFactory { - /** - * @param {ViewTypes} viewType - */ - getRepresentationsForViewType(viewType: ViewTypes): unknown; - - setImage(image: vtkImageData): void; - - setCenter(center: Vector3): void; - - updateCameraPoints( - renderer: vtkRenderer, - viewType: ViewTypes, - resetFocalPoint: boolean, - computeFocalPointOffset: boolean - ): void; - - resetCamera( - renderer: vtkRenderer, - viewType: ViewTypes, - resetFocalPoint: boolean, - keepCenterFocalDistance: boolean - ): void; - - getPlaneSource(viewType: ViewTypes): vtkPlaneSource; - - getResliceAxes(viewType: ViewTypes): mat4; - - updateReslicePlane( - imageReslice: vtkImageReslice, - viewType: ViewTypes - ): boolean; - - getPlaneSourceFromViewType(type: ViewTypes): vtkPlaneSource; - - getPlaneNormalFromViewType(viewType: ViewTypes): Vector3; - - getOtherPlaneNormals(viewType: ViewTypes): Array; - - getResliceMatrix(): mat4; - - getDisplayScaleParams(): IDisplayScaleParams; - - setScaleInPixels(scale: boolean): boolean; - - getScaleInPixels(): boolean; - - setHoleWidth(holeWidth: number): boolean; - - getHoleWidth(): number; - - /** - * Defines the length of the line - * The scaling of each line representation always define the dimensions of the circle / elipse (X and Y axes) - * The unit of this scaling is either in world coordinates or in pixels depending in scaleInPixels - * When the line is finite, this scaling on the Z axis also defines the length of the line - * When the line is infinite, the scaling on the Z axis is automatically huge - * @param infiniteLine - */ - setInfiniteLine(infiniteLine: boolean): boolean; - - getInfiniteLine(): boolean; - - setRotationHandlePosition(position: number): boolean; - - getRotationHandlePosition(): number; - - setManipulator(manipulator: vtkPlaneManipulator): boolean; - - getManipulator(): vtkPlaneManipulator; - - /** - * Return an array of the first and the last possible points of the plane - * along its normal. - * @param {ViewTypes} viewType - * @returns {Array} two Vector3 arrays (first and last points) - */ - getPlaneExtremities(viewType: ViewTypes): Array; -} - -export interface IResliceCursorWidgetInitialValues< - WidgetInstance extends vtkAbstractWidget -> extends IAbstractWidgetFactoryInitialValues {} - -/** - * Method used to decorate a given object (publicAPI+model) with vtkResliceCursorWidget characteristics. - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param initialValues (default: {}) - */ -export function extend( - publicAPI: object, - model: object, - initialValues?: IResliceCursorWidgetInitialValues -): void; - -/** - * Method used to create a new instance of vtkResliceCursorWidget - * - * @param initialValues for pre-setting some of its content - */ -export function newInstance< - WidgetInstance extends vtkAbstractWidget = vtkResliceCursorWidgetDefaultInstance ->( - initialValues?: IResliceCursorWidgetInitialValues -): vtkResliceCursorWidget; - -export declare const vtkResliceCursorWidget: { - newInstance: typeof newInstance; - extend: typeof extend; -}; - -export default vtkResliceCursorWidget; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget.js deleted file mode 100644 index 236813e6..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget.js +++ /dev/null @@ -1,456 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkAbstractWidgetFactory from '../Core/AbstractWidgetFactory.js'; -import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js'; -import vtkBox from '../../Common/DataModel/Box.js'; -import vtkPlane from '../../Common/DataModel/Plane.js'; -import vtkPlaneSource from '../../Filters/Sources/PlaneSource.js'; -import vtkPlaneManipulator from '../Manipulators/PlaneManipulator.js'; -import vtkLineHandleRepresentation from '../Representations/LineHandleRepresentation.js'; -import vtkSphereHandleRepresentation from '../Representations/SphereHandleRepresentation.js'; -import { f as distance2BetweenPoints, m as multiplyAccumulate, s as subtract, l as normalize, x as multiplyScalar, k as add } from '../../Common/Core/Math/index.js'; -import widgetBehavior from './ResliceCursorWidget/behavior.js'; -import generateState from './ResliceCursorWidget/state.js'; -import { updateState, transformPlane, boundPlane } from './ResliceCursorWidget/helpers.js'; -import { viewTypeToPlaneName } from './ResliceCursorWidget/Constants.js'; -import { ViewTypes } from '../Core/WidgetManager/Constants.js'; -import { mat4 } from 'gl-matrix'; -import vtkMatrixBuilder from '../../Common/Core/MatrixBuilder.js'; - -const VTK_INT_MAX = 2147483647; -const { - vtkErrorMacro -} = macro; - -// ---------------------------------------------------------------------------- -// Factory -// ---------------------------------------------------------------------------- - -function vtkResliceCursorWidget(publicAPI, model) { - model.classHierarchy.push('vtkResliceCursorWidget'); - model.methodsToLink = [ - // For all representations - 'scaleInPixels', - // For line representations - 'holeWidth', 'infiniteLine']; - - // -------------------------------------------------------------------------- - // Private methods - // -------------------------------------------------------------------------- - - /** - * Compute the origin of the reslice plane prior to transformations - * It does not take into account the current view normal. (always axis aligned) - * @param {*} viewType axial, coronal or sagittal - */ - function computeReslicePlaneOrigin(viewType) { - const bounds = model.widgetState.getImage().getBounds(); - const center = publicAPI.getWidgetState().getCenter(); - const imageCenter = model.widgetState.getImage().getCenter(); - - // Offset based on the center of the image and how far from it the - // reslice cursor is. This allows us to capture the whole image even - // if we resliced in awkward places. - const offset = []; - for (let i = 0; i < 3; i++) { - offset[i] = -Math.abs(center[i] - imageCenter[i]); - offset[i] *= 2; // give us room - } - - // Now set the size of the plane based on the location of the cursor so as to - // at least completely cover the viewed region - const planeSource = vtkPlaneSource.newInstance(); - if (viewType === ViewTypes.XZ_PLANE) { - planeSource.setOrigin(bounds[0] + offset[0], center[1], bounds[4] + offset[2]); - planeSource.setPoint1(bounds[1] - offset[0], center[1], bounds[4] + offset[2]); - planeSource.setPoint2(bounds[0] + offset[0], center[1], bounds[5] - offset[2]); - } else if (viewType === ViewTypes.XY_PLANE) { - planeSource.setOrigin(bounds[0] + offset[0], bounds[2] + offset[1], center[2]); - planeSource.setPoint1(bounds[1] - offset[0], bounds[2] + offset[1], center[2]); - planeSource.setPoint2(bounds[0] + offset[0], bounds[3] - offset[1], center[2]); - } else if (viewType === ViewTypes.YZ_PLANE) { - planeSource.setOrigin(center[0], bounds[2] + offset[1], bounds[4] + offset[2]); - planeSource.setPoint1(center[0], bounds[3] - offset[1], bounds[4] + offset[2]); - planeSource.setPoint2(center[0], bounds[2] + offset[1], bounds[5] - offset[2]); - } - return planeSource; - } - - /** - * Compute the offset between display reslice cursor position and - * display focal point position - * This will be used to keep the same offset between reslice cursor - * center and focal point when needed. - */ - function computeFocalPointOffsetFromResliceCursorCenter(viewType, renderer) { - const worldFocalPoint = renderer.getActiveCamera().getFocalPoint(); - const worldResliceCenter = model.widgetState.getCenter(); - const view = renderer.getRenderWindow().getViews()[0]; - const dims = view.getViewportSize(renderer); - const aspect = dims[0] / dims[1]; - const displayFocalPoint = renderer.worldToNormalizedDisplay(...worldFocalPoint, aspect); - const displayResliceCenter = renderer.worldToNormalizedDisplay(...worldResliceCenter, aspect); - const newOffset = subtract(displayFocalPoint, displayResliceCenter, [0, 0, 0]); - const cameraOffsets = model.widgetState.getCameraOffsets(); - cameraOffsets[viewType] = newOffset; - model.widgetState.setCameraOffsets(cameraOffsets); - } - function updateCamera(renderer, normal, viewType, resetFocalPoint, keepCenterFocalDistance) { - // When the reslice plane is changed, update the camera to look at the - // normal to the reslice plane. - - const focalPoint = renderer.getActiveCamera().getFocalPoint(); - const distance = renderer.getActiveCamera().getDistance(); - const estimatedCameraPosition = multiplyAccumulate(focalPoint, normal, distance, [0, 0, 0]); - let newFocalPoint = focalPoint; - if (resetFocalPoint) { - // intersect with the plane to get updated focal point - const intersection = vtkPlane.intersectWithLine(focalPoint, estimatedCameraPosition, model.widgetState.getCenter(), - // reslice cursor center - normal); - newFocalPoint = intersection.x; - } - - // Update the estimated focal point so that it will be at the same - // distance from the reslice center - if (keepCenterFocalDistance) { - const worldResliceCenter = model.widgetState.getCenter(); - const view = renderer.getRenderWindow().getViews()[0]; - const dims = view.getViewportSize(renderer); - const aspect = dims[0] / dims[1]; - const displayResliceCenter = renderer.worldToNormalizedDisplay(...worldResliceCenter, aspect); - const realOffset = model.widgetState.getCameraOffsets()[viewType]; - const displayFocal = add(displayResliceCenter, realOffset, [0, 0, 0]); - const worldFocal = renderer.normalizedDisplayToWorld(...displayFocal, aspect); - - // Reproject focal point on slice in order to keep it on the - // same plane as the reslice cursor center - const intersection2 = vtkPlane.intersectWithLine(worldFocal, estimatedCameraPosition, worldResliceCenter, normal); - newFocalPoint[0] = intersection2.x[0]; - newFocalPoint[1] = intersection2.x[1]; - newFocalPoint[2] = intersection2.x[2]; - } - renderer.getActiveCamera().setFocalPoint(newFocalPoint[0], newFocalPoint[1], newFocalPoint[2]); - const newCameraPosition = multiplyAccumulate(newFocalPoint, normal, distance, [0, 0, 0]); - renderer.getActiveCamera().setPosition(newCameraPosition[0], newCameraPosition[1], newCameraPosition[2]); - - // Don't clip away any part of the data. - // Renderer may not have yet actor bounds - const bounds = model.widgetState.getImage().getBounds(); - if (resetFocalPoint) { - renderer.resetCamera(bounds); - } - renderer.resetCameraClippingRange(bounds); - } - - /** - * Convenient function to return the widget for a given viewType - * @param {string} viewType - * @returns the widget instanced in the given viewType. - */ - function findWidgetForViewType(viewType) { - return publicAPI.getViewIds().map(viewId => publicAPI.getWidgetForView({ - viewId - })).find(widget => widget.getViewType() === viewType); - } - /** - * Convenient function to return the ResliceCursorRepresentation for a given viewType - * @param {string} viewType - * @returns an array of 3 representations (for line handles, rotation handles, center handle) - * or an empty array if the widget has not yet been added to the view type. - */ - function findRepresentationsForViewType(viewType) { - const widgetForViewType = findWidgetForViewType(viewType); - return widgetForViewType ? widgetForViewType.getRepresentations() : []; - } - - // -------------------------------------------------------------------------- - // initialization - // -------------------------------------------------------------------------- - - publicAPI.getRepresentationsForViewType = viewType => { - switch (viewType) { - case ViewTypes.XY_PLANE: - case ViewTypes.XZ_PLANE: - case ViewTypes.YZ_PLANE: - return [{ - builder: vtkLineHandleRepresentation, - labels: [`lineIn${viewTypeToPlaneName[viewType]}`], - initialValues: { - useActiveColor: false, - scaleInPixels: model.scaleInPixels - } - }, { - builder: vtkSphereHandleRepresentation, - labels: [`rotationIn${viewTypeToPlaneName[viewType]}`], - initialValues: { - useActiveColor: false, - scaleInPixels: model.scaleInPixels, - lighting: false - } - }, { - builder: vtkSphereHandleRepresentation, - labels: ['center'], - initialValues: { - useActiveColor: false, - scaleInPixels: model.scaleInPixels, - lighting: false - } - }]; - case ViewTypes.DEFAULT: - case ViewTypes.GEOMETRY: - case ViewTypes.SLICE: - case ViewTypes.VOLUME: - default: - return []; - } - }; - publicAPI.setImage = image => { - model.widgetState.setImage(image); - const center = image.getCenter(); - publicAPI.setCenter(center); - }; - publicAPI.setCenter = center => { - model.widgetState.setCenter(center); - updateState(model.widgetState, model.scaleInPixels, model.rotationHandlePosition); - publicAPI.modified(); - }; - - // -------------------------------------------------------------------------- - // Methods - // -------------------------------------------------------------------------- - - publicAPI.updateCameraPoints = (renderer, viewType, resetFocalPoint, computeFocalPointOffset) => { - publicAPI.resetCamera(renderer, viewType, resetFocalPoint, !computeFocalPointOffset); - if (computeFocalPointOffset) { - computeFocalPointOffsetFromResliceCursorCenter(viewType, renderer); - } - }; - - /** - * - * @param {*} renderer - * @param {*} viewType - * @param {*} resetFocalPoint Defines if the focal point is reset to the image center - * @param {*} keepCenterFocalDistance Defines if the estimated focal point has to be updated - * in order to keep the same distance to the center (according to the computed focal point - * shift) - */ - publicAPI.resetCamera = (renderer, viewType, resetFocalPoint, keepCenterFocalDistance) => { - const center = model.widgetState.getImage().getCenter(); - const focalPoint = renderer.getActiveCamera().getFocalPoint(); - const position = renderer.getActiveCamera().getPosition(); - - // Distance is preserved - const distance = Math.sqrt(distance2BetweenPoints(position, focalPoint)); - const normal = publicAPI.getPlaneNormalFromViewType(viewType); - - // ResetFocalPoint will reset focal point to the center of the image - const estimatedFocalPoint = resetFocalPoint ? center : focalPoint; - const estimatedCameraPosition = multiplyAccumulate(estimatedFocalPoint, normal, distance, [0, 0, 0]); - renderer.getActiveCamera().setFocalPoint(...estimatedFocalPoint); - renderer.getActiveCamera().setPosition(...estimatedCameraPosition); - renderer.getActiveCamera().setViewUp(model.widgetState.getPlanes()[viewType].viewUp); - - // Project focalPoint onto image plane and preserve distance - updateCamera(renderer, normal, viewType, resetFocalPoint, keepCenterFocalDistance); - }; - publicAPI.getPlaneSource = viewType => { - // Compute original (i.e. before rotation) plane (i.e. origin, p1, p2) - // centered on cursor center. - const planeSource = computeReslicePlaneOrigin(viewType); - const { - normal, - viewUp - } = model.widgetState.getPlanes()[viewType]; - // Adapt plane orientation in order to fit the correct viewUp - // so that the rotations will be more understandable than now. - transformPlane(planeSource, model.widgetState.getCenter(), normal, viewUp); - - // Clip to bounds - const boundedOrigin = [...planeSource.getOrigin()]; - const boundedP1 = [...planeSource.getPoint1()]; - const boundedP2 = [...planeSource.getPoint2()]; - boundPlane(model.widgetState.getImage().getBounds(), boundedOrigin, boundedP1, boundedP2); - planeSource.setOrigin(...boundedOrigin); - planeSource.setPoint1(...boundedP1); - planeSource.setPoint2(...boundedP2); - return planeSource; - }; - publicAPI.getResliceAxes = viewType => { - // Compute original (i.e. before rotation) plane (i.e. origin, p1, p2) - // centered on cursor center. - const planeSource = publicAPI.getPlaneSource(viewType); - - // TBD: use normal from planeSource ? - const { - normal - } = model.widgetState.getPlanes()[viewType]; - const planeOrigin = planeSource.getOrigin(); - const p1 = planeSource.getPoint1(); - const planeAxis1 = []; - subtract(p1, planeOrigin, planeAxis1); - normalize(planeAxis1); - const p2 = planeSource.getPoint2(); - const planeAxis2 = []; - subtract(p2, planeOrigin, planeAxis2); - normalize(planeAxis2); - const newResliceAxes = mat4.identity(new Float64Array(16)); - for (let i = 0; i < 3; i++) { - newResliceAxes[i] = planeAxis1[i]; - newResliceAxes[4 + i] = planeAxis2[i]; - newResliceAxes[8 + i] = normal[i]; - newResliceAxes[12 + i] = planeOrigin[i]; - } - return newResliceAxes; - }; - publicAPI.updateReslicePlane = (imageReslice, viewType) => { - // Calculate appropriate pixel spacing for the reslicing - const spacing = model.widgetState.getImage().getSpacing(); - const planeSource = publicAPI.getPlaneSource(viewType); - const newResliceAxes = publicAPI.getResliceAxes(viewType); - const planeOrigin = planeSource.getOrigin(); - const p1 = planeSource.getPoint1(); - const planeAxis1 = subtract(p1, planeOrigin, []); - const planeSizeX = normalize(planeAxis1); - const p2 = planeSource.getPoint2(); - const planeAxis2 = subtract(p2, planeOrigin, []); - const planeSizeY = normalize(planeAxis2); - const spacingX = Math.abs(planeAxis1[0] * spacing[0]) + Math.abs(planeAxis1[1] * spacing[1]) + Math.abs(planeAxis1[2] * spacing[2]); - const spacingY = Math.abs(planeAxis2[0] * spacing[0]) + Math.abs(planeAxis2[1] * spacing[1]) + Math.abs(planeAxis2[2] * spacing[2]); - - // Compute a new set of resliced extents - let extentX = 0; - let extentY = 0; - - // Pad extent up to a power of two for efficient texture mapping - // make sure we're working with valid values - const realExtentX = spacingX === 0 ? Number.MAX_SAFE_INTEGER : planeSizeX / spacingX; - - // Sanity check the input data: - // * if realExtentX is too large, extentX will wrap - // * if spacingX is 0, things will blow up. - - const value = VTK_INT_MAX >> 1; // eslint-disable-line no-bitwise - - if (realExtentX > value) { - vtkErrorMacro('Invalid X extent: ', realExtentX, ' on view type : ', viewType); - extentX = 0; - } else { - extentX = 1; - while (extentX < realExtentX) { - extentX <<= 1; // eslint-disable-line no-bitwise - } - } - - // make sure extentY doesn't wrap during padding - const realExtentY = spacingY === 0 ? Number.MAX_SAFE_INTEGER : planeSizeY / spacingY; - if (realExtentY > value) { - vtkErrorMacro('Invalid Y extent:', realExtentY, ' on view type : ', viewType); - extentY = 0; - } else { - extentY = 1; - while (extentY < realExtentY) { - extentY <<= 1; // eslint-disable-line no-bitwise - } - } - - const outputSpacingX = extentX === 0 ? 1.0 : planeSizeX / extentX; - const outputSpacingY = extentY === 0 ? 1.0 : planeSizeY / extentY; - let modified = imageReslice.setResliceAxes(newResliceAxes); - modified = imageReslice.setOutputSpacing([outputSpacingX, outputSpacingY, 1]) || modified; - modified = imageReslice.setOutputOrigin([0.5 * outputSpacingX, 0.5 * outputSpacingY, 0]) || modified; - modified = imageReslice.setOutputExtent([0, extentX - 1, 0, extentY - 1, 0, 0]) || modified; - return modified; - }; - - /** - * Returns a plane source with origin at cursor center and - * normal from the view. - * @param {ViewType} type: Axial, Coronal or Sagittal - */ - publicAPI.getPlaneSourceFromViewType = type => { - const planeSource = vtkPlaneSource.newInstance(); - const origin = publicAPI.getWidgetState().getCenter(); - const planeNormal = publicAPI.getPlaneNormalFromViewType(type); - planeSource.setNormal(planeNormal); - planeSource.setOrigin(origin); - return planeSource; - }; - publicAPI.getPlaneNormalFromViewType = viewType => publicAPI.getWidgetState().getPlanes()[viewType].normal; - - /** - * Returns the normals of the planes that are not viewType. - * @param {ViewType} viewType ViewType to extract other normals - */ - publicAPI.getOtherPlaneNormals = viewType => [ViewTypes.YZ_PLANE, ViewTypes.XZ_PLANE, ViewTypes.XY_PLANE].filter(vt => vt !== viewType).map(vt => publicAPI.getPlaneNormalFromViewType(vt)); - - /** - * Return the reslice cursor matrix built as such: [YZ, XZ, XY, center] - */ - publicAPI.getResliceMatrix = () => { - const resliceMatrix = mat4.identity(new Float64Array(16)); - for (let i = 0; i < 3; i++) { - resliceMatrix[4 * i + 0] = publicAPI.getPlaneNormalFromViewType(ViewTypes.YZ_PLANE)[i]; - resliceMatrix[4 * i + 1] = publicAPI.getPlaneNormalFromViewType(ViewTypes.XZ_PLANE)[i]; - resliceMatrix[4 * i + 2] = publicAPI.getPlaneNormalFromViewType(ViewTypes.XY_PLANE)[i]; - } - const origin = publicAPI.getWidgetState().getCenter(); - const m = vtkMatrixBuilder.buildFromRadian().translate(...origin).multiply(resliceMatrix).translate(...multiplyScalar([...origin], -1)).getMatrix(); - return m; - }; - publicAPI.getDisplayScaleParams = () => [ViewTypes.YZ_PLANE, ViewTypes.XZ_PLANE, ViewTypes.XY_PLANE].reduce((res, viewType) => { - res[viewType] = findRepresentationsForViewType(viewType)[0]?.getDisplayScaleParams?.(); - return res; - }, {}); - publicAPI.setScaleInPixels = macro.chain(publicAPI.setScaleInPixels, scale => { - publicAPI.getViewWidgets().forEach(w => w.setScaleInPixels(scale)); - updateState(model.widgetState, model.scaleInPixels, model.rotationHandlePosition); - }); - publicAPI.getPlaneExtremities = viewType => { - const dirProj = publicAPI.getWidgetState().getPlanes()[viewType].normal; - const length = vtkBoundingBox.getDiagonalLength(publicAPI.getWidgetState().getImage().getBounds()); - const p1 = multiplyAccumulate(publicAPI.getWidgetState().getCenter(), dirProj, -length, []); - const p2 = multiplyAccumulate(publicAPI.getWidgetState().getCenter(), dirProj, length, []); - // FIXME: support oriented bounds - const intersectionPoints = vtkBox.intersectWithLine(publicAPI.getWidgetState().getImage().getBounds(), p1, p2); - return [intersectionPoints.x1, intersectionPoints.x2]; - }; -} - -// ---------------------------------------------------------------------------- -/** - * Initializes the model. - * @param {*} initialValues optional object of member variables. initialValues.planes is an optional list of axis names (e.g. ['X', 'Y']) - * @returns the initial model object - */ -const defaultValues = initialValues => ({ - behavior: widgetBehavior, - widgetState: generateState(initialValues.planes), - rotationHandlePosition: 0.5, - scaleInPixels: true, - manipulator: vtkPlaneManipulator.newInstance(), - ...initialValues -}); - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - vtkAbstractWidgetFactory.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['scaleInPixels', 'rotationHandlePosition', 'manipulator']); - vtkResliceCursorWidget(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkResliceCursorWidget'); - -// ---------------------------------------------------------------------------- - -var vtkResliceCursorWidget$1 = { - newInstance, - extend -}; - -export { vtkResliceCursorWidget$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/Constants.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/Constants.d.ts deleted file mode 100644 index d40c3c8c..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/Constants.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { Vector3 } from '../../../types'; -import { ViewTypes } from '../../Core/WidgetManager/Constants'; - -// Different types of plane from ViewTypes: -export type PlaneViewType = - | ViewTypes.YZ_PLANE - | ViewTypes.XZ_PLANE - | ViewTypes.XY_PLANE; - -// 0, 1, 2 for X, Y, Z -export type AxisIndex = 0 | 1 | 2; - -// Should be X, Y, Z -export type PlaneName = typeof planeNames extends (infer U)[] ? U : never; - -export declare enum ScrollingMethods { - MIDDLE_MOUSE_BUTTON = 0, - LEFT_MOUSE_BUTTON = 1, - RIGHT_MOUSE_BUTTON = 2, -} - -// Note: These strings are used in ResliceCursorWidget/behavior.js -// as method's names -export declare enum InteractionMethodsName { - TranslateAxis = 'translateAxis', - RotateLine = 'rotateLine', - TranslateCenter = 'translateCenter', - TranslateCenterAndUpdatePlanes = 'translateCenterAndUpdatePlanes', -} - -export declare const defaultViewUpFromViewType: { - [plane in PlaneViewType]: Vector3; -}; - -export declare const xyzToViewType: [ - PlaneViewType, - PlaneViewType, - PlaneViewType -]; - -export declare const viewTypeToXYZ: { [plane in PlaneViewType]: AxisIndex }; - -export declare const planeNames: ['X', 'Y', 'Z']; - -export declare const viewTypeToPlaneName: { - [plane in PlaneViewType]: PlaneName; -}; - -export declare const planeNameToViewType: { - [planeName in PlaneName]: PlaneViewType; -}; - -export declare const lineNames: [ - 'YinX', - 'ZinX', - 'XinY', - 'ZinY', - 'XinZ', - 'YinZ' -]; - -declare const _default: { - ScrollingMethods: typeof ScrollingMethods; - InteractionMethodsName: typeof InteractionMethodsName; - xyzToViewType: typeof xyzToViewType; - viewTypeToXYZ: typeof viewTypeToXYZ; - planeNames: typeof planeNames; - viewTypeToPlaneName: typeof viewTypeToPlaneName; - planeNameToViewType: typeof planeNameToViewType; - lineNames: typeof lineNames; -}; - -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/Constants.js deleted file mode 100644 index 26e1fcb4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/Constants.js +++ /dev/null @@ -1,54 +0,0 @@ -import { ViewTypes } from '../../Core/WidgetManager/Constants.js'; - -const ScrollingMethods = { - MIDDLE_MOUSE_BUTTON: 0, - LEFT_MOUSE_BUTTON: 1, - RIGHT_MOUSE_BUTTON: 2 -}; - -// Note: These strings are used in ResliceCursorWidget/behavior.js -// as method's names -const InteractionMethodsName = { - TranslateAxis: 'translateAxis', - RotateLine: 'rotateLine', - TranslateCenter: 'translateCenter', - TranslateCenterAndUpdatePlanes: 'translateCenterAndUpdatePlanes' -}; -const defaultViewUpFromViewType = { - [ViewTypes.YZ_PLANE]: [0, 0, 1], - // Sagittal - [ViewTypes.XZ_PLANE]: [0, 0, 1], - // Coronal - [ViewTypes.XY_PLANE]: [0, -1, 0] // Axial -}; - -const xyzToViewType = [ViewTypes.YZ_PLANE, ViewTypes.XZ_PLANE, ViewTypes.XY_PLANE]; -const viewTypeToXYZ = { - [ViewTypes.YZ_PLANE]: 0, - [ViewTypes.XZ_PLANE]: 1, - [ViewTypes.XY_PLANE]: 2 -}; -const planeNames = ['X', 'Y', 'Z']; -const viewTypeToPlaneName = { - [ViewTypes.YZ_PLANE]: 'X', - [ViewTypes.XZ_PLANE]: 'Y', - [ViewTypes.XY_PLANE]: 'Z' -}; -const planeNameToViewType = { - X: ViewTypes.YZ_PLANE, - Y: ViewTypes.XZ_PLANE, - Z: ViewTypes.XY_PLANE -}; -const lineNames = ['YinX', 'ZinX', 'XinY', 'ZinY', 'XinZ', 'YinZ']; -var Constants = { - ScrollingMethods, - InteractionMethodsName, - xyzToViewType, - viewTypeToXYZ, - planeNames, - viewTypeToPlaneName, - planeNameToViewType, - lineNames -}; - -export { InteractionMethodsName, ScrollingMethods, Constants as default, defaultViewUpFromViewType, lineNames, planeNameToViewType, planeNames, viewTypeToPlaneName, viewTypeToXYZ, xyzToViewType }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/behavior.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/behavior.d.ts deleted file mode 100644 index e8729bc0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/behavior.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Nullable } from '../../../types'; -import { InteractionMethodsName, lineNames } from './Constants'; -import { vtkAbstractWidget } from '../../Core/AbstractWidget'; - -type TLineName = typeof lineNames[number]; - -type TCursorStyles = { - [key in InteractionMethodsName]?: string; -} & { - default?: string; -}; - -export interface vtkResliceCursorWidgetDefaultInstance - extends vtkAbstractWidget { - getActiveInteraction(): Nullable; - - getScaleInPixels(): boolean; - setScaleInPixels(scaleInPixels: boolean): boolean; - - getHoleWidth(): number; - setHoleWidth(holeWidth: number): boolean; - - setKeepOrthogonality(keepOrthogonality: boolean): boolean; - getKeepOrthogonality(): boolean; - - setCursorStyles(cursorStyles: TCursorStyles): boolean; - getCursorStyles(): TCursorStyles; - - setEnableTranslation(enableTranslation: boolean): void; - setEnableRotation(enableRotation: boolean): void; - - getActiveLineName(): TLineName | undefined; -} - -declare const _default: vtkResliceCursorWidgetDefaultInstance; -export default _default; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/behavior.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/behavior.js deleted file mode 100644 index 0948d725..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/behavior.js +++ /dev/null @@ -1,367 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import vtkBoundingBox from '../../../Common/DataModel/BoundingBox.js'; -import vtkLine from '../../../Common/DataModel/Line.js'; -import { k as add, l as normalize, s as subtract, d as dot, j as cross, m as multiplyAccumulate, x as multiplyScalar, _ as signedAngleBetweenVectors } from '../../../Common/Core/Math/index.js'; -import { getLineNames, getOtherLineName, updateState, boundPointOnPlane, getLinePlaneName, getLineInPlaneName, rotateVector } from './helpers.js'; -import { InteractionMethodsName, ScrollingMethods, planeNameToViewType } from './Constants.js'; - -function widgetBehavior(publicAPI, model) { - model._isDragging = false; - let isScrolling = false; - let previousPosition; - macro.setGet(publicAPI, model, ['keepOrthogonality', { - type: 'object', - name: 'cursorStyles' - }]); - - // Set default value for cursorStyles - publicAPI.setCursorStyles({ - [InteractionMethodsName.TranslateCenter]: 'move', - [InteractionMethodsName.RotateLine]: 'alias', - [InteractionMethodsName.TranslateAxis]: 'pointer', - default: 'default' - }); - publicAPI.setEnableTranslation = enable => { - model.representations[0].setPickable(enable); // line handle - model.representations[2].setPickable(enable); // center handle - }; - - publicAPI.setEnableRotation = enable => { - model.representations[1].setPickable(enable); // rotation handle - }; - - // FIXME: label information should be accessible from activeState instead of parent state. - publicAPI.getActiveInteraction = () => { - if (model.widgetState.getStatesWithLabel('rotation').includes(model.activeState)) { - return InteractionMethodsName.RotateLine; - } - if (model.widgetState.getStatesWithLabel('line').includes(model.activeState)) { - return InteractionMethodsName.TranslateAxis; - } - if (model.widgetState.getStatesWithLabel('center').includes(model.activeState)) { - return InteractionMethodsName.TranslateCenter; - } - return null; - }; - - /** - * ActiveState can be RotationHandle or a LineHandle - * @returns 'YinX', 'ZinX', 'XinY', 'ZinY', 'XinZ' or 'YinZ' - */ - publicAPI.getActiveLineName = () => getLineNames(model.widgetState).find(lineName => model.widgetState.getStatesWithLabel(lineName).includes(model.activeState)); - - // FIXME: label information should be accessible from activeState instead of parent state. - publicAPI.getActiveLineHandle = () => model.widgetState[`getAxis${publicAPI.getActiveLineName()}`]?.(); - - /** - * Return the line handle of the other line in the same view. - * @param {string} lineName name of the line (YinX, ZinX, XinY, ZinY, XinZ, YinZ) - * @returns ZinX if lineName == YinX, YinX if lineName == ZinX, ZinY if lineName == XinY... - */ - publicAPI.getOtherLineHandle = lineName => model.widgetState[`getAxis${getOtherLineName(model.widgetState, lineName)}`]?.(); - - // FIXME: label information should be accessible from activeState instead of parent state. - /** - * There are 2 rotation handles per axis: 'point0' and 'point1'. - * This function returns which rotation handle (point0 or point1) is currently active. - * ActiveState must be a RotationHandle. - * @returns 'point0', 'point1' or null if no point is active (e.g. line is being rotated) - */ - publicAPI.getActiveRotationPointName = () => { - if (model.widgetState.getStatesWithLabel('point0').includes(model.activeState)) { - return 'point0'; - } - if (model.widgetState.getStatesWithLabel('point1').includes(model.activeState)) { - return 'point1'; - } - return null; - }; - publicAPI.startScrolling = newPosition => { - if (newPosition) { - previousPosition = newPosition; - } - isScrolling = true; - publicAPI.startInteraction(); - }; - publicAPI.endScrolling = () => { - isScrolling = false; - publicAPI.endInteraction(); - }; - publicAPI.updateCursor = () => { - const cursorStyles = publicAPI.getCursorStyles(); - if (cursorStyles) { - switch (publicAPI.getActiveInteraction()) { - case InteractionMethodsName.TranslateCenter: - model._apiSpecificRenderWindow.setCursor(cursorStyles.translateCenter); - break; - case InteractionMethodsName.RotateLine: - model._apiSpecificRenderWindow.setCursor(cursorStyles.rotateLine); - break; - case InteractionMethodsName.TranslateAxis: - model._apiSpecificRenderWindow.setCursor(cursorStyles.translateAxis); - break; - default: - model._apiSpecificRenderWindow.setCursor(cursorStyles.default); - break; - } - } - }; - publicAPI.handleLeftButtonPress = callData => { - if (model.activeState && model.activeState.getActive()) { - model._isDragging = true; - const viewType = model.viewType; - const currentPlaneNormal = model.widgetState.getPlanes()[viewType].normal; - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - manipulator.setWidgetOrigin(model.widgetState.getCenter()); - manipulator.setWidgetNormal(currentPlaneNormal); - const { - worldCoords - } = manipulator.handleEvent(callData, model._apiSpecificRenderWindow); - previousPosition = worldCoords; - publicAPI.startInteraction(); - } else if (model.widgetState.getScrollingMethod() === ScrollingMethods.LEFT_MOUSE_BUTTON) { - publicAPI.startScrolling(callData.position); - } else { - return macro.VOID; - } - return macro.EVENT_ABORT; - }; - publicAPI.handleMouseMove = callData => { - if (model._isDragging) { - return publicAPI.handleEvent(callData); - } - if (isScrolling) { - if (previousPosition.y !== callData.position.y) { - const step = previousPosition.y - callData.position.y; - publicAPI.translateCenterOnPlaneDirection(step); - previousPosition = callData.position; - publicAPI.invokeInteractionEvent(publicAPI.getActiveInteraction()); - } - } - return macro.VOID; - }; - publicAPI.handleLeftButtonRelease = () => { - if (model._isDragging || isScrolling) { - publicAPI.endScrolling(); - } - model._isDragging = false; - model.widgetState.deactivate(); - }; - publicAPI.handleRightButtonPress = calldata => { - if (model.widgetState.getScrollingMethod() === ScrollingMethods.RIGHT_MOUSE_BUTTON) { - publicAPI.startScrolling(calldata.position); - } - }; - publicAPI.handleRightButtonRelease = () => { - if (model.widgetState.getScrollingMethod() === ScrollingMethods.RIGHT_MOUSE_BUTTON) { - publicAPI.endScrolling(); - } - }; - publicAPI.handleStartMouseWheel = () => { - publicAPI.startInteraction(); - }; - publicAPI.handleMouseWheel = calldata => { - const step = calldata.spinY; - isScrolling = true; - publicAPI.translateCenterOnPlaneDirection(step); - publicAPI.invokeInteractionEvent( - // Force interaction mode because mouse cursor could be above rotation handle - InteractionMethodsName.TranslateCenter); - isScrolling = false; - return macro.EVENT_ABORT; - }; - publicAPI.handleEndMouseWheel = () => { - publicAPI.endScrolling(); - }; - publicAPI.handleMiddleButtonPress = calldata => { - if (model.widgetState.getScrollingMethod() === ScrollingMethods.MIDDLE_MOUSE_BUTTON) { - publicAPI.startScrolling(calldata.position); - } - }; - publicAPI.handleMiddleButtonRelease = () => { - if (model.widgetState.getScrollingMethod() === ScrollingMethods.MIDDLE_MOUSE_BUTTON) { - publicAPI.endScrolling(); - } - }; - publicAPI.handleEvent = callData => { - if (model.activeState.getActive()) { - const methodName = publicAPI.getActiveInteraction(); - publicAPI[methodName](callData); - publicAPI.invokeInteractionEvent(methodName); - return macro.EVENT_ABORT; - } - return macro.VOID; - }; - publicAPI.startInteraction = () => { - publicAPI.invokeStartInteractionEvent(); - // When interacting, plane actor and lines must be re-rendered on other views - publicAPI.getViewWidgets().forEach(viewWidget => { - viewWidget.getInteractor().requestAnimation(publicAPI); - }); - }; - publicAPI.endInteraction = () => { - publicAPI.invokeEndInteractionEvent(); - publicAPI.getViewWidgets().forEach(viewWidget => { - viewWidget.getInteractor().cancelAnimation(publicAPI); - }); - }; - publicAPI.translateCenterOnPlaneDirection = nbSteps => { - const dirProj = model.widgetState.getPlanes()[model.viewType].normal; - const oldCenter = model.widgetState.getCenter(); - const image = model.widgetState.getImage(); - const imageSpacing = image.getSpacing(); - - // Use Chebyshev norm - // https://math.stackexchange.com/questions/71423/what-is-the-term-for-the-projection-of-a-vector-onto-the-unit-cube - const absDirProj = dirProj.map(value => Math.abs(value)); - const index = absDirProj.indexOf(Math.max(...absDirProj)); - const movingFactor = nbSteps * imageSpacing[index] / Math.abs(dirProj[index]); - - // Define the potentially new center - let newCenter = [oldCenter[0] + movingFactor * dirProj[0], oldCenter[1] + movingFactor * dirProj[1], oldCenter[2] + movingFactor * dirProj[2]]; - newCenter = publicAPI.getBoundedCenter(newCenter); - model.widgetState.setCenter(newCenter); - updateState(model.widgetState, model._factory.getScaleInPixels(), model._factory.getRotationHandlePosition()); - }; - publicAPI[InteractionMethodsName.TranslateAxis] = calldata => { - const lineHandle = publicAPI.getActiveLineHandle(); - const lineName = publicAPI.getActiveLineName(); - const pointOnLine = add(lineHandle.getOrigin(), lineHandle.getDirection(), []); - const currentLineVector = lineHandle.getDirection(); - normalize(currentLineVector); - - // Translate the current line along the other line - const otherLineHandle = publicAPI.getOtherLineHandle(lineName); - const center = model.widgetState.getCenter(); - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - let worldCoords = null; - let newOrigin = []; - if (model.activeState?.getManipulator?.()) { - worldCoords = manipulator.handleEvent(calldata, model._apiSpecificRenderWindow).worldCoords; - const translation = subtract(worldCoords, previousPosition, []); - add(center, translation, newOrigin); - } else if (otherLineHandle) { - const otherLineVector = otherLineHandle.getDirection(); - normalize(otherLineVector); - const axisTranslation = otherLineVector; - const dot$1 = dot(currentLineVector, otherLineVector); - // lines are colinear, translate along perpendicular axis from current line - if (dot$1 === 1 || dot$1 === -1) { - cross(currentLineVector, manipulator.getWidgetNormal(), axisTranslation); - } - const closestPoint = []; - worldCoords = manipulator.handleEvent(calldata, model._apiSpecificRenderWindow).worldCoords; - vtkLine.distanceToLine(worldCoords, lineHandle.getOrigin(), pointOnLine, closestPoint); - const translationVector = subtract(worldCoords, closestPoint, []); - const translationDistance = dot(translationVector, axisTranslation); - newOrigin = multiplyAccumulate(center, axisTranslation, translationDistance, newOrigin); - } - newOrigin = publicAPI.getBoundedCenter(newOrigin); - model.widgetState.setCenter(newOrigin); - updateState(model.widgetState, model._factory.getScaleInPixels(), model._factory.getRotationHandlePosition()); - previousPosition = worldCoords; - }; - publicAPI.getBoundedCenter = newCenter => { - const oldCenter = model.widgetState.getCenter(); - const imageBounds = model.widgetState.getImage().getBounds(); - if (vtkBoundingBox.containsPoint(imageBounds, ...newCenter)) { - return newCenter; - } - return boundPointOnPlane(newCenter, oldCenter, imageBounds); - }; - publicAPI[InteractionMethodsName.TranslateCenter] = calldata => { - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - const { - worldCoords - } = manipulator.handleEvent(calldata, model._apiSpecificRenderWindow); - const translation = subtract(worldCoords, previousPosition, []); - previousPosition = worldCoords; - let newCenter = add(model.widgetState.getCenter(), translation, []); - newCenter = publicAPI.getBoundedCenter(newCenter); - model.widgetState.setCenter(newCenter); - updateState(model.widgetState, model._factory.getScaleInPixels(), model._factory.getRotationHandlePosition()); - }; - publicAPI[InteractionMethodsName.RotateLine] = calldata => { - const activeLineHandle = publicAPI.getActiveLineHandle(); - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - const planeNormal = manipulator.getWidgetNormal(); - const { - worldCoords - } = manipulator.handleEvent(calldata, model._apiSpecificRenderWindow); - if (!worldCoords || !worldCoords.length) { - return; - } - const center = model.widgetState.getCenter(); - const currentVectorToOrigin = [0, 0, 0]; - subtract(worldCoords, center, currentVectorToOrigin); - normalize(currentVectorToOrigin); - const previousLineDirection = activeLineHandle.getDirection(); - normalize(previousLineDirection); - const activePointName = publicAPI.getActiveRotationPointName(); - if (activePointName === 'point1' || !activePointName && dot(currentVectorToOrigin, previousLineDirection) < 0) { - multiplyScalar(previousLineDirection, -1); - } - const radianAngle = signedAngleBetweenVectors(previousLineDirection, currentVectorToOrigin, planeNormal); - publicAPI.rotateLineInView(publicAPI.getActiveLineName(), radianAngle); - }; - - /** - * Rotate a line by a specified angle - * @param {string} lineName The line name to rotate (e.g. YinX, ZinX, XinY, ZinY, XinZ, YinZ) - * @param {Number} radianAngle Applied angle in radian - */ - publicAPI.rotateLineInView = (lineName, radianAngle) => { - const viewType = planeNameToViewType[getLinePlaneName(lineName)]; - const inViewType = planeNameToViewType[getLineInPlaneName(lineName)]; - const planeNormal = model.widgetState.getPlanes()[inViewType].normal; - publicAPI.rotatePlane(viewType, radianAngle, planeNormal); - if (publicAPI.getKeepOrthogonality()) { - const otherLineName = getOtherLineName(model.widgetState, lineName); - const otherPlaneName = getLinePlaneName(otherLineName); - publicAPI.rotatePlane(planeNameToViewType[otherPlaneName], radianAngle, planeNormal); - } - updateState(model.widgetState, model._factory.getScaleInPixels(), model._factory.getRotationHandlePosition()); - }; - - /** - * Rotate a specified plane around an other specified plane. - * @param {ViewTypes} viewType Define which plane will be rotated - * @param {Number} radianAngle Applied angle in radian - * @param {vec3} planeNormal Define the axis to rotate around - */ - publicAPI.rotatePlane = (viewType, radianAngle, planeNormal) => { - const { - normal, - viewUp - } = model.widgetState.getPlanes()[viewType]; - const newNormal = rotateVector(normal, planeNormal, radianAngle); - const newViewUp = rotateVector(viewUp, planeNormal, radianAngle); - model.widgetState.getPlanes()[viewType] = { - normal: newNormal, - viewUp: newViewUp - }; - }; - - /** - * Rotate a line by a specified angle - * @param {string} lineName The line name to rotate (e.g. YinX, ZinX, XinY, ZinY, XinZ, YinZ) - * @param {Number} radianAngle Applied angle in radian - */ - publicAPI.setViewPlane = (viewType, normal, viewUp) => { - let newViewUp = viewUp; - if (newViewUp == null) { - newViewUp = model.widgetState.getPlanes()[viewType].viewUp; - } - model.widgetState.getPlanes()[viewType] = { - normal, - viewUp: newViewUp - }; - updateState(model.widgetState, model._factory.getScaleInPixels(), model._factory.getRotationHandlePosition()); - }; - - // -------------------------------------------------------------------------- - // initialization - // -------------------------------------------------------------------------- -} - -export { widgetBehavior as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/cprBehavior.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/cprBehavior.js deleted file mode 100644 index f6c88ad3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/cprBehavior.js +++ /dev/null @@ -1,77 +0,0 @@ -import widgetBehavior$1 from './behavior.js'; -import { InteractionMethodsName } from './Constants.js'; -import { updateState } from './helpers.js'; -import { ViewTypes } from '../../Core/WidgetManager/Constants.js'; -import { vec3 } from 'gl-matrix'; - -// import macro from 'vtk.js/Sources/macros'; - -function widgetBehavior(publicAPI, model) { - // We inherit resliceCursorBehavior - widgetBehavior$1(publicAPI, model); - const stretchPlaneName = 'Y'; - const crossPlaneName = 'Z'; - publicAPI.getActiveInteraction = () => { - if (model.widgetState.getStatesWithLabel(`lineIn${stretchPlaneName}`).includes(model.activeState)) { - return InteractionMethodsName.TranslateCenterAndUpdatePlanes; - } - if (model.widgetState.getStatesWithLabel(`lineIn${crossPlaneName}`).includes(model.activeState) || model.widgetState.getStatesWithLabel(`rotationIn${crossPlaneName}`).includes(model.activeState)) { - return InteractionMethodsName.RotateLine; - } - return null; - }; - publicAPI[InteractionMethodsName.TranslateCenterAndUpdatePlanes] = calldata => { - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - const { - worldCoords, - worldDirection - } = manipulator.handleEvent(calldata, model._apiSpecificRenderWindow); - publicAPI.updateCenterAndPlanes(worldCoords, worldDirection); - }; - publicAPI.updateCenterAndPlanes = (worldCoords, worldDirection) => { - // Update center - const newBoundedCenter = publicAPI.getBoundedCenter(worldCoords); - model.widgetState.setCenter(newBoundedCenter); - - // Update planes if axes are given - if (worldDirection) { - const getAxis = idx => vec3.normalize([], worldDirection.slice(3 * idx, 3 * idx + 3)); - const planes = model.widgetState.getPlanes(); - Object.keys(planes).forEach(viewType => { - switch (Number.parseInt(viewType, 10)) { - case ViewTypes.YZ_PLANE: - planes[viewType] = { - normal: getAxis(0), - viewUp: getAxis(2) - }; - break; - case ViewTypes.XZ_PLANE: - planes[viewType] = { - normal: getAxis(1), - viewUp: getAxis(2) - }; - break; - case ViewTypes.XY_PLANE: - planes[viewType] = { - normal: getAxis(2), - viewUp: getAxis(1) - }; - break; - } - }); - } - updateState(model.widgetState, model._factory.getScaleInPixels(), model._factory.getRotationHandlePosition()); - }; - publicAPI.translateCenterOnPlaneDirection = nbSteps => { - const handleScroll = model._factory.getManipulator()?.handleScroll; - if (handleScroll) { - const { - worldCoords, - worldDirection - } = handleScroll(nbSteps); - publicAPI.updateCenterAndPlanes(worldCoords, worldDirection); - } - }; -} - -export { widgetBehavior as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/helpers.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/helpers.js deleted file mode 100644 index a332884a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/helpers.js +++ /dev/null @@ -1,242 +0,0 @@ -import vtkBoundingBox, { STATIC } from '../../../Common/DataModel/BoundingBox.js'; -import vtkCubeSource from '../../../Filters/Sources/CubeSource.js'; -import vtkCutter from '../../../Filters/Core/Cutter.js'; -import vtkPlane from '../../../Common/DataModel/Plane.js'; -import { s as subtract, l as normalize, j as cross, x as multiplyScalar, m as multiplyAccumulate, _ as signedAngleBetweenVectors } from '../../../Common/Core/Math/index.js'; -import vtkMatrixBuilder from '../../../Common/Core/MatrixBuilder.js'; -import { viewTypeToPlaneName, planeNameToViewType, planeNames } from './Constants.js'; - -const EPSILON = 10e-7; - -/** - * Fit the plane defined by origin, p1, p2 onto the bounds. - * Plane is untouched if does not intersect bounds. - * @param {Array} bounds - * @param {Array} origin - * @param {Array} p1 - * @param {Array} p2 - * @return {Boolean} false if no bounds have been found, else true - */ -function boundPlane(bounds, origin, p1, p2) { - const v1 = []; - subtract(p1, origin, v1); - normalize(v1); - const v2 = []; - subtract(p2, origin, v2); - normalize(v2); - const n = [0, 0, 1]; - cross(v1, v2, n); - normalize(n); - - // Inflate bounds in order to avoid precision error when cutting cubesource - const inflatedBounds = [...bounds]; - const eps = [...n]; - multiplyScalar(eps, EPSILON); - vtkBoundingBox.addBounds(inflatedBounds, bounds[0] + eps[0], bounds[1] + eps[0], bounds[2] + eps[1], bounds[3] + eps[1], bounds[4] + eps[2], bounds[5] + eps[2]); - vtkBoundingBox.addBounds(inflatedBounds, bounds[0] - eps[0], bounds[1] - eps[0], bounds[2] - eps[1], bounds[3] - eps[1], bounds[4] - eps[2], bounds[5] - eps[2]); - const plane = vtkPlane.newInstance(); - plane.setOrigin(...origin); - plane.setNormal(...n); - const cubeSource = vtkCubeSource.newInstance(); - cubeSource.setBounds(inflatedBounds); - const cutter = vtkCutter.newInstance(); - cutter.setCutFunction(plane); - cutter.setInputConnection(cubeSource.getOutputPort()); - const cutBounds = cutter.getOutputData(); - if (cutBounds.getNumberOfPoints() === 0) { - return false; - } - const localBounds = STATIC.computeLocalBounds(cutBounds.getPoints(), v1, v2, n); - for (let i = 0; i < 3; i += 1) { - origin[i] = localBounds[0] * v1[i] + localBounds[2] * v2[i] + localBounds[4] * n[i]; - p1[i] = localBounds[1] * v1[i] + localBounds[2] * v2[i] + localBounds[4] * n[i]; - p2[i] = localBounds[0] * v1[i] + localBounds[3] * v2[i] + localBounds[4] * n[i]; - } - return true; -} -// Project point (inPoint) to the bounds of the image according to a plane -// defined by two vectors (v1, v2) -function boundPoint(inPoint, v1, v2, bounds) { - const absT1 = v1.map(val => Math.abs(val)); - const absT2 = v2.map(val => Math.abs(val)); - let o1 = 0.0; - let o2 = 0.0; - for (let i = 0; i < 3; i++) { - let axisOffset = 0; - const useT1 = absT1[i] > absT2[i]; - const t = useT1 ? v1 : v2; - const absT = useT1 ? absT1 : absT2; - if (inPoint[i] < bounds[i * 2]) { - axisOffset = absT[i] > EPSILON ? (bounds[2 * i] - inPoint[i]) / t[i] : 0; - } else if (inPoint[i] > bounds[2 * i + 1]) { - axisOffset = absT[i] > EPSILON ? (bounds[2 * i + 1] - inPoint[i]) / t[i] : 0; - } - if (useT1) { - if (Math.abs(axisOffset) > Math.abs(o1)) { - o1 = axisOffset; - } - } else if (Math.abs(axisOffset) > Math.abs(o2)) { - o2 = axisOffset; - } - } - const outPoint = [inPoint[0], inPoint[1], inPoint[2]]; - if (o1 !== 0.0) { - multiplyAccumulate(outPoint, v1, o1, outPoint); - } - if (o2 !== 0.0) { - multiplyAccumulate(outPoint, v2, o2, outPoint); - } - return outPoint; -} - -// Compute the intersection between p1 and p2 on bounds -function boundPointOnPlane(p1, p2, bounds) { - const dir12 = [0, 0, 0]; - subtract(p2, p1, dir12); - const out = [0, 0, 0]; - const tolerance = [0, 0, 0]; - vtkBoundingBox.intersectBox(bounds, p1, dir12, out, tolerance); - return out; -} - -/** - * Rotates a vector around another. - * @param {vec3} vectorToBeRotated Vector to rate - * @param {vec3} axis Axis to rotate around - * @param {Number} angle Angle in radian - * @returns The rotated vector - */ -function rotateVector(vectorToBeRotated, axis, angle) { - const rotatedVector = [...vectorToBeRotated]; - vtkMatrixBuilder.buildFromRadian().rotate(angle, axis).apply(rotatedVector); - return rotatedVector; -} - -/** - * Return ['X'] if there are only 1 plane defined in the widget state. - * Return ['X', 'Y'] if there are only 2 planes defined in the widget state. - * Return ['X', 'Y', 'Z'] if there are 3 planes defined in the widget state. - * @param {object} widgetState the state of the widget - * @returns An array of plane names - */ -function getPlaneNames(widgetState) { - return Object.keys(widgetState.getPlanes()).map(viewType => viewTypeToPlaneName[viewType]); -} - -/** - * Return X if lineName == XinY|XinZ, Y if lineName == YinX|YinZ and Z otherwise - * @param {string} lineName name of the line (YinX, ZinX, XinY, ZinY, XinZ, YinZ) - */ -function getLinePlaneName(lineName) { - return lineName[0]; -} -/** - * Return X if lineName == YinX|ZinX, Y if lineName == XinY|ZinY and Z otherwise - * @param {string} lineName name of the line (YinX, ZinX, XinY, ZinY, XinZ, YinZ) - */ -function getLineInPlaneName(lineName) { - return lineName[3]; -} - -/** - * Returns ['XinY', 'YinX'] if planes == ['X', 'Y'] - * ['XinY', 'XinZ', 'YinX', 'YinZ', 'ZinX', 'ZinY'] if planes == ['X', 'Y', 'Z'] - * @param {string} planes name of the planes (e.g. ['X', 'Y']) - */ -function getPlanesLineNames() { - let planes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : planeNames; - const lines = []; - planes.forEach(plane => { - planes.forEach(inPlane => { - if (plane !== inPlane) { - lines.push(`${plane}in${inPlane}`); - } - }); - }); - return lines; -} -function getLineNames(widgetState) { - const planes = Object.keys(widgetState.getPlanes()).map(viewType => viewTypeToPlaneName[viewType]); - return getPlanesLineNames(planes); -} - -/** - * Return ZinX if lineName == YinX, YinX if lineName == ZinX, ZinY if lineName == XinY... - * @param {string} lineName name of the line (YinX, ZinX, XinY, ZinY, XinZ, YinZ) - */ -function getOtherLineName(widgetState, lineName) { - const linePlaneName = getLinePlaneName(lineName); - const lineInPlaneName = getLineInPlaneName(lineName); - const otherLineName = getPlaneNames(widgetState).find(planeName => planeName !== linePlaneName && planeName !== lineInPlaneName); - return `${otherLineName}in${lineInPlaneName}`; -} - -// Compute the offset of the rotation handle origin -function computeRotationHandleOriginOffset(axis, rotationHandlePosition, volumeDiagonalLength, scaleInPixels) { - // FIXME: p1 and p2 could be placed on the exact boundaries of the volume. - return multiplyScalar([...axis], rotationHandlePosition * (scaleInPixels ? 1 : volumeDiagonalLength) / 2); -} - -// Update the reslice cursor state according to the three planes normals and the origin -function updateState(widgetState, scaleInPixels, rotationHandlePosition) { - const planes = Object.keys(widgetState.getPlanes()).map(viewType => viewTypeToPlaneName[viewType]); - // Generates an object as such: - // axes = {'XY': cross(X, Y), 'YX': cross(X, Y), 'YZ': cross(Y, Z)...} - const axes = planes.reduce((res, plane) => { - planes.filter(otherPlane => plane !== otherPlane).forEach(otherPlane => { - const cross$1 = cross(widgetState.getPlanes()[planeNameToViewType[plane]].normal, widgetState.getPlanes()[planeNameToViewType[otherPlane]].normal, []); - res[`${plane}${otherPlane}`] = cross$1; - res[`${otherPlane}${plane}`] = cross$1; - }); - return res; - }, {}); - const bounds = widgetState.getImage().getBounds(); - const center = widgetState.getCenter(); - - // Length of the principal diagonal. - const pdLength = vtkBoundingBox.getDiagonalLength(bounds); - widgetState.getCenterHandle().setOrigin(center); - getPlanesLineNames(planes).forEach(lineName => { - const planeName = getLinePlaneName(lineName); - const inPlaneName = getLineInPlaneName(lineName); - const direction = axes[`${planeName}${inPlaneName}`]; - widgetState[`getRotationHandle${lineName}0`]().setOrigin(center); - widgetState[`getRotationHandle${lineName}0`]().getManipulator()?.setHandleOrigin(center); - widgetState[`getRotationHandle${lineName}0`]().getManipulator()?.setHandleNormal(widgetState.getPlanes()[planeNameToViewType[planeName]].normal); - widgetState[`getRotationHandle${lineName}0`]().setOffset(computeRotationHandleOriginOffset(direction, rotationHandlePosition, pdLength, scaleInPixels)); - widgetState[`getRotationHandle${lineName}1`]().setOrigin(center); - widgetState[`getRotationHandle${lineName}1`]().getManipulator()?.setHandleOrigin(center); - widgetState[`getRotationHandle${lineName}1`]().getManipulator()?.setHandleNormal(widgetState.getPlanes()[planeNameToViewType[planeName]].normal); - widgetState[`getRotationHandle${lineName}1`]().setOffset(computeRotationHandleOriginOffset(direction, -rotationHandlePosition, pdLength, scaleInPixels)); - const lineHandle = widgetState[`getAxis${lineName}`](); - lineHandle.setOrigin(center); - lineHandle.getManipulator()?.setHandleOrigin(center); - lineHandle.getManipulator()?.setHandleNormal(widgetState.getPlanes()[planeNameToViewType[planeName]].normal); - normalize(direction); - const right = widgetState.getPlanes()[planeNameToViewType[inPlaneName]].normal; - const up = cross(direction, right, []); - lineHandle.setRight(right); - lineHandle.setUp(up); - lineHandle.setDirection(direction); - }); -} - -/** - * First rotate planeToTransform to match targetPlane normal. - * Then rotate around targetNormal to enforce targetViewUp "up" vector (i.e. Origin->p2 ). - * There is an infinite number of options to rotate a plane normal to another. Here we attempt to - * preserve Origin, P1 and P2 when rotating around targetPlane. - * @param {vtkPlaneSource} planeToTransform - * @param {vec3} targetOrigin Center of the plane - * @param {vec3} targetNormal Normal to state to the plane - * @param {vec3} viewType Vector that enforces view up - */ -function transformPlane(planeToTransform, targetCenter, targetNormal, targetViewUp) { - planeToTransform.setNormal(targetNormal); - const viewUp = subtract(planeToTransform.getPoint2(), planeToTransform.getOrigin(), []); - const angle = signedAngleBetweenVectors(viewUp, targetViewUp, targetNormal); - planeToTransform.rotate(angle, targetNormal); - planeToTransform.setCenter(targetCenter); -} - -export { boundPlane, boundPoint, boundPointOnPlane, getLineInPlaneName, getLineNames, getLinePlaneName, getOtherLineName, getPlaneNames, getPlanesLineNames, rotateVector, transformPlane, updateState }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/state.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/state.js deleted file mode 100644 index f50f0348..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ResliceCursorWidget/state.js +++ /dev/null @@ -1,95 +0,0 @@ -import vtkStateBuilder from '../../Core/StateBuilder.js'; -import { planeNameToViewType, ScrollingMethods, planeNames } from './Constants.js'; - -const defaultPlanes = { - X: { - normal: [1, 0, 0], - viewUp: [0, 0, 1], - color3: [255, 0, 0] - }, - Y: { - normal: [0, -1, 0], - viewUp: [0, 0, 1], - color3: [0, 255, 0] - }, - Z: { - normal: [0, 0, -1], - viewUp: [0, -1, 0], - color3: [0, 0, 255] - } -}; -const viewsColor3 = { - X: [255, 0, 0], - // red - Y: [0, 255, 0], - // green - Z: [0, 0, 255] // blue -}; - -function generateState() { - let planes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : planeNames; - const state = vtkStateBuilder.createBuilder().addField({ - name: 'center', - initialValue: [0, 0, 0] - }).addField({ - name: 'image', - initialValue: null - }).addField({ - name: 'activeViewType', - initialValue: null - }).addField({ - name: 'planes', - initialValue: planes.reduce((res, planeName) => ({ - ...res, - [planeNameToViewType[planeName]]: { - normal: defaultPlanes[planeName].normal, - viewUp: defaultPlanes[planeName].viewUp - } - }), {}) - }).addField({ - name: 'scrollingMethod', - initialValue: ScrollingMethods.MIDDLE_MOUSE_BUTTON - }).addField({ - name: 'cameraOffsets', - initialValue: {} - }).addField({ - name: 'viewUpFromViewType', - initialValue: {} - }).addStateFromMixin({ - labels: ['handles', 'sphere', 'center'], - mixins: ['origin', 'color3', 'scale1', 'visible', 'manipulator'], - name: 'centerHandle', - initialValues: { - scale1: 30, - color3: [255, 255, 255] - } - }); - planes.reduce((viewState, view) => planes.filter(v => v !== view).reduce((axisState, axis) => { - // Line handle - axisState.addStateFromMixin({ - labels: ['handles', 'line', `lineIn${view}`, `${axis}in${view}`], - mixins: ['origin', 'color3', 'scale3', 'orientation', 'visible', 'manipulator'], - name: `axis${axis}in${view}`, - initialValues: { - scale3: [4, 4, 4], - color3: viewsColor3[axis] - } - }); - // Rotation handle - for (let rotationHandle = 0; rotationHandle < 2; ++rotationHandle) { - axisState.addStateFromMixin({ - labels: ['handles', 'sphere', 'rotation', `rotationIn${view}`, `${axis}in${view}`, `point${rotationHandle}`], - mixins: ['origin', 'color3', 'scale1', 'visible', 'manipulator'], - name: `rotationHandle${axis}in${view}${rotationHandle}`, - initialValues: { - scale1: 30, - color3: viewsColor3[axis] - } - }); - } - return axisState; - }, viewState), state); - return state.build(); -} - -export { generateState as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SeedWidget.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SeedWidget.d.ts deleted file mode 100644 index e8a489e8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SeedWidget.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import vtkAbstractWidget from './../Core/AbstractWidget'; -import { Vector3, Bounds } from './../../types'; - -export interface ISeedWidgetHandleState { - getOrigin(): Vector3; - setOrigin(arg: Vector3): void; - getColor3(): string; - setColor3(arg: string): void; - getScale1(): number; - setScale1(arg: number): void; - getVisible(): boolean; - setVisible(arg: boolean): void; - setShape(arg: string): void; - getShape(): string; -} - -// The internal state of the widget. -export interface vtkSeedWidgetState { - // A handle that defines the location - getMoveHandle(): ISeedWidgetHandleState; -} - -// The type of object returned by vtkWidgetManager.addWidget() -export interface vtkSeedWidgetHandle { - setCenter(center: Vector3): void; -} - -export interface vtkSeedWidget { - // Abstract widget methods. - getWidgetState(): vtkSeedWidgetState; - onWidgetChange(fn: () => void): void; - placeWidget(bounds: Bounds): void; - setPlaceFactor(factor: number): void; -} - -export interface ISeedWidgetInitialValues {} - -export function newInstance(props?: ISeedWidgetInitialValues): vtkSeedWidget; - -export const vtkSeedWidget: { - newInstance: typeof newInstance; -}; - -export default vtkSeedWidget; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SeedWidget.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SeedWidget.js deleted file mode 100644 index 17e053c5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SeedWidget.js +++ /dev/null @@ -1,43 +0,0 @@ -import vtkAbstractWidgetFactory from '../Core/AbstractWidgetFactory.js'; -import vtkCubeHandleRepresentation from '../Representations/CubeHandleRepresentation.js'; -import { m as macro } from '../../macros2.js'; -import widgetBehavior from './SeedWidget/behavior.js'; -import stateGenerator from './SeedWidget/state.js'; - -function vtkSeedWidget(publicAPI, model) { - model.classHierarchy.push('vtkSeedWidget'); - const superClass = { - ...publicAPI - }; - model.methodsToLink = ['scaleInPixels']; - publicAPI.getRepresentationsForViewType = viewType => [{ - builder: vtkCubeHandleRepresentation, - labels: ['moveHandle'], - initialValues: { - useActiveColor: false - } - }]; - publicAPI.setManipulator = manipulator => { - superClass.setManipulator(manipulator); - model.widgetState.getMoveHandle().setManipulator(manipulator); - }; -} -const defaultValues = initialValues => ({ - behavior: widgetBehavior, - widgetState: stateGenerator(), - ...initialValues -}); -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - vtkAbstractWidgetFactory.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['manipulator', 'widgetState']); - vtkSeedWidget(publicAPI, model); -} -const newInstance = macro.newInstance(extend, 'vtkSeedWidget'); -var index = { - newInstance, - extend -}; - -export { index as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SeedWidget/behavior.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SeedWidget/behavior.js deleted file mode 100644 index ceabc405..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SeedWidget/behavior.js +++ /dev/null @@ -1,78 +0,0 @@ -import { m as macro } from '../../../macros2.js'; - -function widgetBehavior(publicAPI, model) { - model.classHierarchy.push('SeedWidgetProp'); - const moveHandle = model.widgetState.getMoveHandle(); - moveHandle.setVisible(true); - model._isDragging = false; - function isValidHandle(handle) { - return handle === moveHandle; - } - function isPlaced() { - return !!moveHandle.getOrigin(); - } - function currentWorldCoords(e) { - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - return manipulator.handleEvent(e, model._apiSpecificRenderWindow).worldCoords; - } - - // Update the handle's center. Example: - // handle.setCenter([1,2,3]); - publicAPI.setCenter = newCenter => { - moveHandle.setOrigin(newCenter); - model._widgetManager.enablePicking(); - }; - publicAPI.handleLeftButtonPress = e => { - if (!isValidHandle(model.activeState)) { - model.activeState = null; - return macro.VOID; - } - const worldCoords = currentWorldCoords(e); - if (model.activeState === moveHandle) { - if (!moveHandle.getOrigin() && worldCoords) { - moveHandle.setOrigin(worldCoords); - } - } - model._isDragging = true; - model._apiSpecificRenderWindow.setCursor('grabbing'); - publicAPI.invokeStartInteractionEvent(); - return macro.EVENT_ABORT; - }; - publicAPI.handleLeftButtonRelease = e => { - if (!model._isDragging) { - model.activeState = null; - return macro.VOID; - } - if (isPlaced()) { - model._widgetManager.enablePicking(); - model._apiSpecificRenderWindow.setCursor('pointer'); - model._isDragging = false; - model.activeState = null; - model.widgetState.deactivate(); - } - publicAPI.invokeEndInteractionEvent(); - return macro.EVENT_ABORT; - }; - publicAPI.handleMouseMove = e => { - if (!model._isDragging) { - model.activeState = null; - return macro.VOID; - } - if (!model.activeState) throw Error('no activestate'); - const worldCoords = currentWorldCoords(e); - model.activeState.setOrigin(worldCoords); - return macro.VOID; - }; - publicAPI.grabFocus = () => { - moveHandle.setVisible(true); - model._isDragging = true; - model.activeState = moveHandle; - model._interactor.render(); - }; - publicAPI.loseFocus = () => { - model._isDragging = false; - model.activeState = null; - }; -} - -export { widgetBehavior as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SeedWidget/state.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SeedWidget/state.js deleted file mode 100644 index cc3193ab..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SeedWidget/state.js +++ /dev/null @@ -1,18 +0,0 @@ -import vtkStateBuilder from '../../Core/StateBuilder.js'; - -// Defines the structure of the widget state. -// See https://kitware.github.io/vtk-js/docs/concepts_widgets.html. -function stateGenerator() { - return vtkStateBuilder.createBuilder().addStateFromMixin({ - labels: ['moveHandle'], - mixins: ['origin', 'color3', 'scale1', 'direction', 'visible', 'manipulator'], - name: 'moveHandle', - initialValues: { - scale1: 20, - visible: true, - direction: [0, 0, 1] - } - }).build(); -} - -export { stateGenerator as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ShapeWidget.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ShapeWidget.js deleted file mode 100644 index 4c12f8c4..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ShapeWidget.js +++ /dev/null @@ -1,49 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkAbstractWidgetFactory from '../Core/AbstractWidgetFactory.js'; -import { BehaviorCategory, ShapeBehavior } from './ShapeWidget/Constants.js'; - -function vtkShapeWidget(publicAPI, model) { - model.classHierarchy.push('vtkShapeWidget'); - const superClass = { - ...publicAPI - }; - model.methodsToLink = ['scaleInPixels']; - publicAPI.setManipulator = manipulator => { - superClass.setManipulator(manipulator); - model.widgetState.getStatesWithLabel('moveHandle').forEach(handle => handle.setManipulator(manipulator)); - }; -} -function defaultValues(initialValues) { - return { - // manipulator: null, - modifierBehavior: { - None: { - [BehaviorCategory.PLACEMENT]: ShapeBehavior[BehaviorCategory.PLACEMENT].CLICK_AND_DRAG, - [BehaviorCategory.POINTS]: ShapeBehavior[BehaviorCategory.POINTS].CORNER_TO_CORNER, - [BehaviorCategory.RATIO]: ShapeBehavior[BehaviorCategory.RATIO].FREE - } - }, - resetAfterPointPlacement: false, - ...initialValues - }; -} - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - vtkAbstractWidgetFactory.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['manipulator', 'modifierBehavior', 'resetAfterPointPlacement']); - vtkShapeWidget(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkShapeWidget'); -var vtkShapeWidget$1 = { - newInstance, - extend -}; - -export { vtkShapeWidget$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ShapeWidget/Constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ShapeWidget/Constants.js deleted file mode 100644 index b10939c8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ShapeWidget/Constants.js +++ /dev/null @@ -1,29 +0,0 @@ -const BehaviorCategory = { - POINTS: 'POINTS', - PLACEMENT: 'PLACEMENT', - RATIO: 'RATIO' -}; -const ShapeBehavior = { - [BehaviorCategory.POINTS]: { - CORNER_TO_CORNER: 0, - CENTER_TO_CORNER: 1, - RADIUS: 2, - DIAMETER: 3 - }, - [BehaviorCategory.PLACEMENT]: { - CLICK: 0, - DRAG: 1, - CLICK_AND_DRAG: 2 - }, - [BehaviorCategory.RATIO]: { - FIXED: 0, - FREE: 1 - } -}; -const TextPosition = { - MIN: 'MIN', - CENTER: 'CENTER', - MAX: 'MAX' -}; - -export { BehaviorCategory, ShapeBehavior, TextPosition, ShapeBehavior as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ShapeWidget/behavior.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ShapeWidget/behavior.js deleted file mode 100644 index 8b34f398..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/ShapeWidget/behavior.js +++ /dev/null @@ -1,481 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import { b as vtkMath } from '../../../Common/Core/Math/index.js'; -import vtkBoundingBox from '../../../Common/DataModel/BoundingBox.js'; -import vtkPlane from '../../../Common/DataModel/Plane.js'; -import { ShapeBehavior, BehaviorCategory, TextPosition } from './Constants.js'; -import { boundPlane } from '../ResliceCursorWidget/helpers.js'; -import { vec3 } from 'gl-matrix'; - -const { - vtkErrorMacro -} = macro; -const EPSILON = 1e-6; -function widgetBehavior(publicAPI, model) { - model.classHierarchy.push('vtkShapeWidgetProp'); - model._isDragging = false; - model.keysDown = {}; - const superClass = { - ...publicAPI - }; - - // -------------------------------------------------------------------------- - // Display 2D - // -------------------------------------------------------------------------- - - publicAPI.setDisplayCallback = callback => model.representations[0].setDisplayCallback(callback); - publicAPI.setText = text => { - model.widgetState.getText().setText(text); - // Recompute position - model._interactor.render(); - }; - - // -------------------------------------------------------------------------- - // Public methods - // -------------------------------------------------------------------------- - publicAPI.setResetAfterPointPlacement = model._factory.setResetAfterPointPlacement; - publicAPI.getResetAfterPointPlacement = model._factory.getResetAfterPointPlacement; - publicAPI.setModifierBehavior = model._factory.setModifierBehavior; - publicAPI.getModifierBehavior = model._factory.getModifierBehavior; - publicAPI.isBehaviorActive = (category, flag) => Object.keys(model.keysDown).some(key => model.keysDown[key] && publicAPI.getModifierBehavior()[key] && publicAPI.getModifierBehavior()[key][category] === flag); - publicAPI.isOppositeBehaviorActive = (category, flag) => Object.values(ShapeBehavior[category]).some(flagToTry => flag !== flagToTry && publicAPI.isBehaviorActive(category, flagToTry)); - publicAPI.getActiveBehaviorFromCategory = category => Object.values(ShapeBehavior[category]).find(flag => publicAPI.isBehaviorActive(category, flag) || !publicAPI.isOppositeBehaviorActive(category, flag) && publicAPI.getModifierBehavior().None[category] === flag); - publicAPI.isRatioFixed = () => publicAPI.getActiveBehaviorFromCategory(BehaviorCategory.RATIO) === ShapeBehavior[BehaviorCategory.RATIO].FIXED; - publicAPI.isDraggingEnabled = () => { - const behavior = publicAPI.getActiveBehaviorFromCategory(BehaviorCategory.PLACEMENT); - return behavior === ShapeBehavior[BehaviorCategory.PLACEMENT].DRAG || behavior === ShapeBehavior[BehaviorCategory.PLACEMENT].CLICK_AND_DRAG; - }; - publicAPI.isDraggingForced = () => publicAPI.isBehaviorActive(BehaviorCategory.PLACEMENT, ShapeBehavior[BehaviorCategory.PLACEMENT].DRAG) || publicAPI.getModifierBehavior().None[BehaviorCategory.PLACEMENT] === ShapeBehavior[BehaviorCategory.PLACEMENT].DRAG; - publicAPI.getPoint1 = () => model.point1; - publicAPI.getPoint2 = () => model.point2; - publicAPI.setPoints = (point1, point2) => { - model.point1 = point1; - model.point2 = point2; - model.point1Handle.setOrigin(model.point1); - model.point2Handle.setOrigin(model.point2); - publicAPI.updateShapeBounds(); - }; - - // This method is to be called to place the first point - // for the first time. It is not inlined so that - // the user can specify himself where the first point - // is right after publicAPI.grabFocus() without waiting - // for interactions. - publicAPI.placePoint1 = point => { - if (model.hasFocus) { - publicAPI.setPoints(point, point); - model.point1Handle.deactivate(); - model.point2Handle.activate(); - model.activeState = model.point2Handle; - model.point2Handle.setVisible(true); - model.widgetState.getText().setVisible(true); - publicAPI.updateShapeBounds(); - model.shapeHandle.setVisible(true); - } - }; - publicAPI.placePoint2 = point2 => { - if (model.hasFocus) { - model.point2 = point2; - model.point2Handle.setOrigin(model.point2); - publicAPI.updateShapeBounds(); - } - }; - - // -------------------------------------------------------------------------- - // Private methods - // -------------------------------------------------------------------------- - - publicAPI.makeSquareFromPoints = (point1, point2) => { - const diagonal = [0, 0, 0]; - vec3.subtract(diagonal, point2, point1); - const dir = model.shapeHandle.getDirection(); - const right = model.shapeHandle.getRight(); - const up = model.shapeHandle.getUp(); - const dirComponent = vec3.dot(diagonal, dir); - let rightComponent = vec3.dot(diagonal, right); - let upComponent = vec3.dot(diagonal, up); - const absRightComponent = Math.abs(rightComponent); - const absUpComponent = Math.abs(upComponent); - if (absRightComponent < EPSILON) { - rightComponent = upComponent; - } else if (absUpComponent < EPSILON) { - upComponent = rightComponent; - } else if (absRightComponent > absUpComponent) { - upComponent = upComponent / absUpComponent * absRightComponent; - } else { - rightComponent = rightComponent / absRightComponent * absUpComponent; - } - return [point1[0] + rightComponent * right[0] + upComponent * up[0] + dirComponent * dir[0], point1[1] + rightComponent * right[1] + upComponent * up[1] + dirComponent * dir[1], point1[2] + rightComponent * right[2] + upComponent * up[2] + dirComponent * dir[2]]; - }; - const getCornersFromRadius = (center, pointOnCircle) => { - const radius = vec3.distance(center, pointOnCircle); - const up = model.shapeHandle.getUp(); - const right = model.shapeHandle.getRight(); - const point1 = [center[0] + (up[0] - right[0]) * radius, center[1] + (up[1] - right[1]) * radius, center[2] + (up[2] - right[2]) * radius]; - const point2 = [center[0] + (right[0] - up[0]) * radius, center[1] + (right[1] - up[1]) * radius, center[2] + (right[2] - up[2]) * radius]; - return { - point1, - point2 - }; - }; - const getCornersFromDiameter = (point1, point2) => { - const center = [0.5 * (point1[0] + point2[0]), 0.5 * (point1[1] + point2[1]), 0.5 * (point1[2] + point2[2])]; - return getCornersFromRadius(center, point1); - }; - - // TODO: move to ShapeWidget/index.js - publicAPI.getBounds = () => model.point1 && model.point2 ? vtkBoundingBox.addPoints(vtkBoundingBox.reset([]), [model.point1, model.point2]) : vtkMath.uninitializeBounds([]); - - // To be reimplemented by subclass - publicAPI.setCorners = (point1, point2) => { - publicAPI.updateTextPosition(point1, point2); - }; - publicAPI.updateShapeBounds = () => { - if (model.point1 && model.point2) { - const point1 = [...model.point1]; - let point2 = [...model.point2]; - if (publicAPI.isRatioFixed()) { - point2 = publicAPI.makeSquareFromPoints(point1, point2); - } - switch (publicAPI.getActiveBehaviorFromCategory(BehaviorCategory.POINTS)) { - case ShapeBehavior[BehaviorCategory.POINTS].CORNER_TO_CORNER: - { - publicAPI.setCorners(point1, point2); - break; - } - case ShapeBehavior[BehaviorCategory.POINTS].CENTER_TO_CORNER: - { - const diagonal = [0, 0, 0]; - vec3.subtract(diagonal, point1, point2); - vec3.add(point1, point1, diagonal); - publicAPI.setCorners(point1, point2); - break; - } - case ShapeBehavior[BehaviorCategory.POINTS].RADIUS: - { - const points = getCornersFromRadius(point1, point2); - publicAPI.setCorners(points.point1, points.point2); - break; - } - case ShapeBehavior[BehaviorCategory.POINTS].DIAMETER: - { - const points = getCornersFromDiameter(point1, point2); - publicAPI.setCorners(points.point1, points.point2); - break; - } - default: - // This should never be executed - vtkErrorMacro('vtk internal error'); - } - } - }; - const computePositionVector = (textPosition, minPoint, maxPoint) => { - const positionVector = [0, 0, 0]; - switch (textPosition) { - case TextPosition.MIN: - break; - case TextPosition.MAX: - vtkMath.subtract(maxPoint, minPoint, positionVector); - break; - case TextPosition.CENTER: - default: - vtkMath.subtract(maxPoint, minPoint, positionVector); - vtkMath.multiplyScalar(positionVector, 0.5); - break; - } - return positionVector; - }; - const computeTextPosition = function (worldBounds, textPosition) { - let worldMargin = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; - const viewPlaneOrigin = vtkBoundingBox.getCenter(worldBounds); - const viewPlaneNormal = model._renderer.getActiveCamera().getDirectionOfProjection(); - const viewUp = model._renderer.getActiveCamera().getViewUp(); - const positionMargin = Array.isArray(worldMargin) ? [...worldMargin] : [worldMargin, worldMargin, viewPlaneOrigin ? worldMargin : 0]; - - // Map bounds from world positions to display positions - const minPoint = model._apiSpecificRenderWindow.worldToDisplay(...vtkBoundingBox.getMinPoint(worldBounds), model._renderer); - const maxPoint = model._apiSpecificRenderWindow.worldToDisplay(...vtkBoundingBox.getMaxPoint(worldBounds), model._renderer); - const displayBounds = vtkBoundingBox.addPoints(vtkBoundingBox.reset([]), [minPoint, maxPoint]); - let planeOrigin = []; - let p1 = []; - let p2 = []; - let p3 = []; - - // If we are in a 2D projection - if (viewPlaneOrigin && viewPlaneNormal && viewUp && vtkBoundingBox.intersectPlane(displayBounds, viewPlaneOrigin, viewPlaneNormal)) { - // Map plane origin from world positions to display positions - const displayPlaneOrigin = model._apiSpecificRenderWindow.worldToDisplay(...viewPlaneOrigin, model._renderer); - // Map plane normal from world positions to display positions - const planeNormalPoint = vtkMath.add(viewPlaneOrigin, viewPlaneNormal, []); - const displayPlaneNormalPoint = model._apiSpecificRenderWindow.worldToDisplay(...planeNormalPoint, model._renderer); - const displayPlaneNormal = vtkMath.subtract(displayPlaneNormalPoint, displayPlaneOrigin, []); - - // Project view plane into bounding box - const largeDistance = 10 * vtkBoundingBox.getDiagonalLength(displayBounds); - vtkPlane.projectPoint(vtkBoundingBox.getCenter(displayBounds), displayPlaneOrigin, displayPlaneNormal, planeOrigin); - const planeU = vtkMath.cross(viewUp, displayPlaneNormal, []); - vtkMath.normalize(planeU); // u - vtkMath.normalize(viewUp); // v - vtkMath.normalize(displayPlaneNormal); // w - - vtkMath.multiplyAccumulate(planeOrigin, viewUp, -largeDistance, planeOrigin); - vtkMath.multiplyAccumulate(planeOrigin, planeU, -largeDistance, planeOrigin); - p1 = vtkMath.multiplyAccumulate(planeOrigin, planeU, 2 * largeDistance, []); - p2 = vtkMath.multiplyAccumulate(planeOrigin, viewUp, 2 * largeDistance, []); - p3 = planeOrigin; - boundPlane(displayBounds, planeOrigin, p1, p2); - } else { - planeOrigin = [displayBounds[0], displayBounds[2], displayBounds[4]]; - p1 = [displayBounds[1], displayBounds[2], displayBounds[4]]; - p2 = [displayBounds[0], displayBounds[3], displayBounds[4]]; - p3 = [displayBounds[0], displayBounds[2], displayBounds[5]]; - } - - // Compute horizontal, vertical and depth position - const u = computePositionVector(textPosition[0], planeOrigin, p1); - const v = computePositionVector(textPosition[1], planeOrigin, p2); - const w = computePositionVector(textPosition[2], planeOrigin, p3); - const finalPosition = planeOrigin; - vtkMath.add(finalPosition, u, finalPosition); - vtkMath.add(finalPosition, v, finalPosition); - vtkMath.add(finalPosition, w, finalPosition); - vtkMath.add(finalPosition, positionMargin, finalPosition); - return model._apiSpecificRenderWindow.displayToWorld(...finalPosition, model._renderer); - }; - publicAPI.updateTextPosition = (point1, point2) => { - const bounds = vtkBoundingBox.addPoints(vtkBoundingBox.reset([]), [point1, point2]); - const screenPosition = computeTextPosition(bounds, model.widgetState.getTextPosition(), model.widgetState.getTextWorldMargin()); - const textHandle = model.widgetState.getText(); - textHandle.setOrigin(screenPosition); - }; - - /* - * If the widget has the focus, this method reset the widget - * to it's state just after it grabbed the focus. Otherwise - * it resets the widget to its state before it grabbed the focus. - */ - publicAPI.reset = () => { - model.point1 = null; - model.point2 = null; - model.widgetState.getText().setVisible(false); - model.point1Handle.setOrigin(null); - model.point2Handle.setOrigin(null); - model.shapeHandle.setOrigin(null); - model.shapeHandle.setVisible(false); - model.point2Handle.setVisible(false); - model.point2Handle.deactivate(); - if (model.hasFocus) { - model.point1Handle.activate(); - model.activeState = model.point1Handle; - } else { - model.point1Handle.setVisible(false); - model.point1Handle.deactivate(); - model.activeState = null; - } - publicAPI.updateShapeBounds(); - }; - - // -------------------------------------------------------------------------- - // Interactor events - // -------------------------------------------------------------------------- - - publicAPI.handleMouseMove = callData => { - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - if (!manipulator || !model.activeState || !model.activeState.getActive() || !model.pickable || !model.dragable) { - return macro.VOID; - } - if (!model.point2) { - // Update orientation to match the camera's plane - // if the corners are not yet placed - const normal = model._camera.getDirectionOfProjection(); - const up = model._camera.getViewUp(); - const right = []; - vec3.cross(right, up, normal); - vtkMath.normalize(right); - vec3.cross(up, normal, right); - vtkMath.normalize(up); - model.shapeHandle.setUp(up); - model.shapeHandle.setRight(right); - model.shapeHandle.setDirection(normal); - } - const { - worldCoords, - worldDelta - } = manipulator.handleEvent(callData, model._apiSpecificRenderWindow); - if (!worldCoords.length) { - return macro.VOID; - } - if (model.hasFocus) { - if (!model.point1) { - model.point1Handle.setOrigin(worldCoords); - } else { - model.point2Handle.setOrigin(worldCoords); - model.point2 = worldCoords; - publicAPI.updateShapeBounds(); - publicAPI.invokeInteractionEvent(); - } - } else if (model._isDragging) { - if (model.activeState === model.point1Handle) { - vtkMath.add(model.point1Handle.getOrigin(), worldDelta, model.point1); - model.point1Handle.setOrigin(model.point1); - } else { - vtkMath.add(model.point2Handle.getOrigin(), worldDelta, model.point2); - model.point2Handle.setOrigin(model.point2); - } - publicAPI.updateShapeBounds(); - publicAPI.invokeInteractionEvent(); - } - return model.hasFocus || model._isDragging ? macro.EVENT_ABORT : macro.VOID; - }; - - // -------------------------------------------------------------------------- - // Left click: Add point / End interaction - // -------------------------------------------------------------------------- - - publicAPI.handleLeftButtonPress = e => { - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - if (!model.activeState || !model.activeState.getActive() || !model.pickable || !manipulator) { - return macro.VOID; - } - const { - worldCoords - } = manipulator.handleEvent(e, model._apiSpecificRenderWindow); - if (model.hasFocus) { - if (!model.point1) { - model.point1Handle.setOrigin(worldCoords); - publicAPI.placePoint1(model.point1Handle.getOrigin()); - publicAPI.invokeStartInteractionEvent(); - } else { - model.point2Handle.setOrigin(worldCoords); - publicAPI.placePoint2(model.point2Handle.getOrigin()); - publicAPI.invokeInteractionEvent(); - publicAPI.invokeEndInteractionEvent(); - if (publicAPI.getResetAfterPointPlacement()) { - publicAPI.reset(); - } else { - publicAPI.loseFocus(); - } - } - return macro.EVENT_ABORT; - } - if (model.point1 && (model.activeState === model.point1Handle || model.activeState === model.point2Handle) && model.dragable) { - model._isDragging = true; - model._apiSpecificRenderWindow.setCursor('grabbing'); - model._interactor.requestAnimation(publicAPI); - } - publicAPI.invokeStartInteractionEvent(); - return macro.EVENT_ABORT; - }; - - // -------------------------------------------------------------------------- - // Left release: Maybe end interaction - // -------------------------------------------------------------------------- - - publicAPI.handleLeftButtonRelease = e => { - if (model._isDragging) { - model._isDragging = false; - model._apiSpecificRenderWindow.setCursor('pointer'); - model.widgetState.deactivate(); - model._interactor.cancelAnimation(publicAPI); - publicAPI.invokeEndInteractionEvent(); - return macro.EVENT_ABORT; - } - if (!model.hasFocus || !model.pickable) { - return macro.VOID; - } - const viewSize = model._apiSpecificRenderWindow.getSize(); - if (e.position.x < 0 || e.position.x > viewSize[0] - 1 || e.position.y < 0 || e.position.y > viewSize[1] - 1) { - return macro.VOID; - } - if (model.point1) { - publicAPI.placePoint2(model.point2Handle.getOrigin()); - if (publicAPI.isDraggingEnabled()) { - const distance = vec3.squaredDistance(model.point1, model.point2); - const maxDistance = 100; - if (distance > maxDistance || publicAPI.isDraggingForced()) { - publicAPI.invokeInteractionEvent(); - publicAPI.invokeEndInteractionEvent(); - if (publicAPI.getResetAfterPointPlacement()) { - publicAPI.reset(); - } else { - publicAPI.loseFocus(); - } - } - } - } - return macro.EVENT_ABORT; - }; - - // -------------------------------------------------------------------------- - // Register key presses/releases - // -------------------------------------------------------------------------- - - publicAPI.handleKeyDown = _ref => { - let { - key - } = _ref; - if (key === 'Escape') { - if (model.hasFocus) { - publicAPI.reset(); - publicAPI.loseFocus(); - publicAPI.invokeEndInteractionEvent(); - } - } else { - model.keysDown[key] = true; - } - if (model.hasFocus) { - if (model.point1) { - model.point2 = model.point2Handle.getOrigin(); - publicAPI.updateShapeBounds(); - } - } - }; - publicAPI.handleKeyUp = _ref2 => { - let { - key - } = _ref2; - model.keysDown[key] = false; - if (model.hasFocus) { - if (model.point1) { - model.point2 = model.point2Handle.getOrigin(); - publicAPI.updateShapeBounds(); - } - } - }; - - // -------------------------------------------------------------------------- - // Focus API - follow mouse when widget has focus - // -------------------------------------------------------------------------- - - publicAPI.grabFocus = () => { - if (!model.hasFocus) { - publicAPI.reset(); - model.point1Handle.activate(); - model.activeState = model.point1Handle; - model.point1Handle.setVisible(true); - model.shapeHandle.setVisible(false); - model._interactor.requestAnimation(publicAPI); - } - superClass.grabFocus(); - }; - - // -------------------------------------------------------------------------- - - publicAPI.loseFocus = () => { - if (model.hasFocus) { - model._interactor.cancelAnimation(publicAPI); - } - if (!model.point1) { - model.point1Handle.setVisible(false); - model.point2Handle.setVisible(false); - } - model.widgetState.deactivate(); - model.point1Handle.deactivate(); - model.point2Handle.deactivate(); - model.activeState = null; - model._interactor.render(); - model._widgetManager.enablePicking(); - superClass.loseFocus(); - }; -} - -export { widgetBehavior as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SphereWidget.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SphereWidget.d.ts deleted file mode 100644 index 70b77df1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SphereWidget.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -import vtkAbstractWidget from './../Core/AbstractWidget'; -import { Vector3, Bounds } from './../../types'; - -export interface ISphereWidgetHandleState { - getOrigin(): Vector3; - setOrigin(arg: Vector3): void; - getColor(): string; - setColor(arg: string): void; - getScale1(): number; - setScale1(arg: number): void; - getVisible(): boolean; - setVisible(arg: boolean): void; - setShape(arg: string): void; - getShape(): string; -} - -// The internal state of the widget. -export interface vtkSphereWidgetState { - // A handle that defines the center of the sphere. - getCenterHandle(): ISphereWidgetHandleState; - // An arbitrary point at the sphere border. Used only to set the radius. - getBorderHandle(): ISphereWidgetHandleState; -} - -// The type of object returned by vtkWidgetManager.addWidget() -export interface vtkSphereWidgetHandle { - // Set the sphere parameters. - setCenterAndRadius(center: Vector3, radius: number): void; -} - -export interface vtkSphereWidget { - // Abstract widget methods. - getWidgetState(): vtkSphereWidgetState; - onWidgetChange(fn: () => void): void; - placeWidget(bounds: Bounds): void; - setPlaceFactor(factor: number): void; - - // Methods specific to vtkSphereWidget. - getRadius(): number; -} - -export interface ISphereWidgetInitialValues {} - -export function newInstance( - props?: ISphereWidgetInitialValues -): vtkSphereWidget; - -export const vtkSphereWidget: { - newInstance: typeof newInstance; -}; - -export default vtkSphereWidget; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SphereWidget.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SphereWidget.js deleted file mode 100644 index 978c38d3..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SphereWidget.js +++ /dev/null @@ -1,70 +0,0 @@ -import { f as distance2BetweenPoints } from '../../Common/Core/Math/index.js'; -import vtkAbstractWidgetFactory from '../Core/AbstractWidgetFactory.js'; -import vtkPlaneManipulator from '../Manipulators/PlaneManipulator.js'; -import vtkSphereHandleRepresentation from '../Representations/SphereHandleRepresentation.js'; -import vtkSphereContextRepresentation from '../Representations/SphereContextRepresentation.js'; -import { m as macro } from '../../macros2.js'; -import widgetBehavior from './SphereWidget/behavior.js'; -import stateGenerator from './SphereWidget/state.js'; - -function vtkSphereWidget(publicAPI, model) { - model.classHierarchy.push('vtkSphereWidget'); - const superClass = { - ...publicAPI - }; - model.methodsToLink = ['scaleInPixels']; - publicAPI.getRepresentationsForViewType = viewType => [{ - builder: vtkSphereHandleRepresentation, - labels: ['moveHandle'] - }, { - builder: vtkSphereHandleRepresentation, - labels: ['centerHandle'] - }, { - builder: vtkSphereHandleRepresentation, - labels: ['borderHandle'] - }, { - builder: vtkSphereContextRepresentation, - labels: ['sphereHandle'] - }]; - - // --- Public methods ------------------------------------------------------- - - publicAPI.getRadius = () => { - const h1 = model.widgetState.getCenterHandle(); - const h2 = model.widgetState.getBorderHandle(); - return Math.sqrt(distance2BetweenPoints(h1.getOrigin(), h2.getOrigin())); - }; - publicAPI.setManipulator = manipulator => { - superClass.setManipulator(manipulator); - model.widgetState.getMoveHandle().setManipulator(manipulator); - model.widgetState.getCenterHandle().setManipulator(manipulator); - model.widgetState.getBorderHandle().setManipulator(manipulator); - }; - - // -------------------------------------------------------------------------- - // initialization - // -------------------------------------------------------------------------- - - publicAPI.setManipulator(model.manipulator || vtkPlaneManipulator.newInstance({ - useCameraNormal: true - })); -} -const defaultValues = initialValues => ({ - behavior: widgetBehavior, - widgetState: stateGenerator(), - ...initialValues -}); -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - vtkAbstractWidgetFactory.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['manipulator', 'widgetState']); - vtkSphereWidget(publicAPI, model); -} -const newInstance = macro.newInstance(extend, 'vtkSphereWidget'); -var vtkSphereWidget$1 = { - newInstance, - extend -}; - -export { vtkSphereWidget$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SphereWidget/behavior.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SphereWidget/behavior.js deleted file mode 100644 index e9ac06c8..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SphereWidget/behavior.js +++ /dev/null @@ -1,143 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import { k as add } from '../../../Common/Core/Math/index.js'; -import { vec3 } from 'gl-matrix'; - -function widgetBehavior(publicAPI, model) { - const state = model.widgetState; - const moveHandle = state.getMoveHandle(); - const centerHandle = state.getCenterHandle(); - const borderHandle = state.getBorderHandle(); - const shapeHandle = state.getSphereHandle(); - - // Set while moving the center or border handle. - model._isDragging = false; - model.classHierarchy.push('vtkSphereWidgetProp'); - moveHandle.setVisible(true); - centerHandle.setVisible(false); - borderHandle.setVisible(false); - shapeHandle.setVisible(true); - function isValidHandle(handle) { - return handle === centerHandle || handle === borderHandle || handle === moveHandle; - } - function isPlaced() { - return !!centerHandle.getOrigin() && !!borderHandle.getOrigin(); - } - - // Update the sphereHandle parameters from {center,border}Handle. - function updateSphere() { - const center = centerHandle.getOrigin(); - if (!center) return; - centerHandle.setVisible(true); - let border = borderHandle.getOrigin(); - if (border) { - borderHandle.setVisible(true); - } else { - border = moveHandle.getOrigin(); - if (!border) return; - } - if (isPlaced()) { - moveHandle.setVisible(false); - } - const radius = vec3.distance(center, border); - shapeHandle.setVisible(true); - shapeHandle.setOrigin(center); - shapeHandle.setScale1(radius * 2); - model._interactor.render(); - } - function currentWorldCoords(e) { - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - return manipulator.handleEvent(e, model._apiSpecificRenderWindow); - } - - // Update the sphere's center and radius. Example: - // handle.setCenterAndRadius([1,2,3], 10); - publicAPI.setCenterAndRadius = (newCenter, newRadius) => { - const oldCenter = centerHandle.getOrigin(); - const oldBorder = borderHandle.getOrigin(); - let newBorder = [newCenter[0] + newRadius, newCenter[1], newCenter[2]]; - if (oldBorder) { - // Move the boundary handle to reflect the new radius, while preserving - // its direction relative to the center. - const direction = vec3.sub(vec3.create(), oldBorder, oldCenter); - const oldRadius = vec3.length(direction); - if (oldRadius > 1e-10) { - newBorder = vec3.add(vec3.create(), newCenter, vec3.scale(vec3.create(), direction, newRadius / oldRadius)); - } - } - centerHandle.setOrigin(newCenter); - borderHandle.setOrigin(newBorder); - updateSphere(); - model._widgetManager.enablePicking(); - }; - publicAPI.handleLeftButtonPress = e => { - if (!isValidHandle(model.activeState)) { - model.activeState = null; - return macro.VOID; - } - const { - worldCoords - } = currentWorldCoords(e); - if (model.activeState === moveHandle) { - // Initial sphere placement. - if (!centerHandle.getOrigin()) { - centerHandle.setOrigin(worldCoords); - } else if (!borderHandle.getOrigin()) { - borderHandle.setOrigin(worldCoords); - publicAPI.loseFocus(); - } - updateSphere(); - return macro.EVENT_ABORT; - } - model._isDragging = true; - model._apiSpecificRenderWindow.setCursor('grabbing'); - publicAPI.invokeStartInteractionEvent(); - return macro.EVENT_ABORT; - }; - publicAPI.handleLeftButtonRelease = e => { - if (!model._isDragging) { - model.activeState = null; - return macro.VOID; - } - if (isPlaced()) { - model._widgetManager.enablePicking(); - model._apiSpecificRenderWindow.setCursor('pointer'); - model._isDragging = false; - model.activeState = null; - state.deactivate(); - } - publicAPI.invokeEndInteractionEvent(); - return macro.EVENT_ABORT; - }; - publicAPI.handleMouseMove = e => { - if (!model.activeState) return macro.VOID; - const { - worldCoords, - worldDelta - } = currentWorldCoords(e); - if (model.hasFocus) { - model.activeState.setOrigin(worldCoords); - } else if (model._isDragging) { - model.activeState.setOrigin(add(model.activeState.getOrigin(), worldDelta, [])); - } - updateSphere(); - return macro.VOID; - }; - const superGrabFocus = publicAPI.grabFocus; - publicAPI.grabFocus = () => { - superGrabFocus(); - moveHandle.setVisible(true); - centerHandle.setVisible(false); - borderHandle.setVisible(false); - centerHandle.setOrigin(null); - borderHandle.setOrigin(null); - model.activeState = moveHandle; - model._interactor.render(); - }; - const superLoseFocus = publicAPI.loseFocus; - publicAPI.loseFocus = () => { - superLoseFocus(); - model.activeState = null; - }; -} - -export { widgetBehavior as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SphereWidget/state.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SphereWidget/state.js deleted file mode 100644 index 52da2fac..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SphereWidget/state.js +++ /dev/null @@ -1,49 +0,0 @@ -import vtkStateBuilder from '../../Core/StateBuilder.js'; - -// Defines the structure of the widget state. -// See https://kitware.github.io/vtk-js/docs/concepts_widgets.html. -function stateGenerator() { - return vtkStateBuilder.createBuilder() - // The handle used only for during initial placement. - .addStateFromMixin({ - labels: ['moveHandle'], - mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator'], - name: 'moveHandle', - initialValues: { - scale1: 20, - visible: true - } - }) - // The handle for the center of the sphere. - .addStateFromMixin({ - labels: ['centerHandle'], - mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator'], - name: 'centerHandle', - initialValues: { - scale1: 20, - visible: true - } - }) - // The handle for a border point of the sphere. - .addStateFromMixin({ - labels: ['borderHandle'], - mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator'], - name: 'borderHandle', - initialValues: { - scale1: 20, - visible: true - } - }) - // For displaying the sphere. - .addStateFromMixin({ - labels: ['sphereHandle'], - mixins: ['origin', 'color', 'scale1', 'visible', 'orientation'], - name: 'sphereHandle', - initialValues: { - visible: true, - radius: 1 - } - }).build(); -} - -export { stateGenerator as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SplineWidget.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SplineWidget.js deleted file mode 100644 index a1d737c9..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SplineWidget.js +++ /dev/null @@ -1,97 +0,0 @@ -import { m as macro } from '../../macros2.js'; -import vtkAbstractWidgetFactory from '../Core/AbstractWidgetFactory.js'; -import vtkPlaneManipulator from '../Manipulators/PlaneManipulator.js'; -import vtkSplineContextRepresentation from '../Representations/SplineContextRepresentation.js'; -import vtkSphereHandleRepresentation from '../Representations/SphereHandleRepresentation.js'; -import widgetBehavior from './SplineWidget/behavior.js'; -import generateState from './SplineWidget/state.js'; -import { ViewTypes } from '../Core/WidgetManager/Constants.js'; - -// ---------------------------------------------------------------------------- -// Factory -// ---------------------------------------------------------------------------- - -function vtkSplineWidget(publicAPI, model) { - model.classHierarchy.push('vtkSplineWidget'); - const superClass = { - ...publicAPI - }; - - // --- Widget Requirement --------------------------------------------------- - - model.methodsToLink = ['boundaryCondition', 'close', 'outputBorder', 'fill', 'borderColor', 'errorBorderColor', 'scaleInPixels']; - publicAPI.getRepresentationsForViewType = viewType => { - switch (viewType) { - case ViewTypes.DEFAULT: - case ViewTypes.GEOMETRY: - case ViewTypes.SLICE: - case ViewTypes.VOLUME: - default: - return [{ - builder: vtkSphereHandleRepresentation, - labels: ['handles', 'moveHandle'] - }, { - builder: vtkSplineContextRepresentation, - labels: ['handles', 'moveHandle'] - }]; - } - }; - - // --- Public methods ------------------------------------------------------- - publicAPI.setManipulator = manipulator => { - superClass.setManipulator(manipulator); - model.widgetState.getMoveHandle().setManipulator(manipulator); - model.widgetState.getHandleList().forEach(handle => { - handle.setManipulator(manipulator); - }); - }; - - // -------------------------------------------------------------------------- - // initialization - // -------------------------------------------------------------------------- - - // Default manipulator - publicAPI.setManipulator(model.manipulator || model.manipulator || vtkPlaneManipulator.newInstance({ - useCameraNormal: true - })); -} - -// ---------------------------------------------------------------------------- - -const defaultValues = initialValues => ({ - // manipulator: null, - freehandMinDistance: 0.1, - allowFreehand: true, - resolution: 32, - // propagates to SplineContextRepresentation - defaultCursor: 'pointer', - handleSizeInPixels: 10, - // propagates to SplineContextRepresentation - resetAfterPointPlacement: false, - behavior: widgetBehavior, - widgetState: generateState(), - ...initialValues -}); - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, defaultValues(initialValues)); - vtkAbstractWidgetFactory.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['manipulator', 'freehandMinDistance', 'allowFreehand', 'resolution', 'defaultCursor', 'handleSizeInPixels', 'resetAfterPointPlacement']); - vtkSplineWidget(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkSplineWidget'); - -// ---------------------------------------------------------------------------- - -var vtkSplineWidget$1 = { - newInstance, - extend -}; - -export { vtkSplineWidget$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SplineWidget/behavior.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SplineWidget/behavior.js deleted file mode 100644 index e63e8519..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SplineWidget/behavior.js +++ /dev/null @@ -1,345 +0,0 @@ -import { m as macro } from '../../../macros2.js'; -import { k as add } from '../../../Common/Core/Math/index.js'; -import { vec3 } from 'gl-matrix'; - -function widgetBehavior(publicAPI, model) { - model.classHierarchy.push('vtkSplineWidgetProp'); - model._isDragging = false; - model.keysDown = {}; - model.moveHandle = model.widgetState.getMoveHandle(); - - // -------------------------------------------------------------------------- - // Private methods - // -------------------------------------------------------------------------- - - const updateHandlesSize = () => { - if (publicAPI.getHandleSizeInPixels() != null) { - const scale = publicAPI.getHandleSizeInPixels(); - model.moveHandle.setScale1(scale); - model.widgetState.getHandleList().forEach(handle => { - handle.setScale1(scale); - }); - } - }; - - // -------------------------------------------------------------------------- - - const addPoint = () => { - // Commit handle to location - if (!model.lastHandle || model.keysDown.Control || !model.freeHand || vec3.squaredDistance(model.moveHandle.getOrigin(), model.lastHandle.getOrigin()) > publicAPI.getFreehandMinDistance() * publicAPI.getFreehandMinDistance()) { - model.lastHandle = model.widgetState.addHandle(); - model.lastHandle.setVisible(false); - model.lastHandle.setOrigin(...model.moveHandle.getOrigin()); - model.lastHandle.setColor(model.moveHandle.getColor()); - model.lastHandle.setScale1(model.moveHandle.getScale1()); - model.lastHandle.setManipulator(model.manipulator); - if (!model.firstHandle) { - model.firstHandle = model.lastHandle; - } - model._apiSpecificRenderWindow.setCursor('grabbing'); - } - }; - - // -------------------------------------------------------------------------- - - const getHoveredHandle = () => { - const handles = model.widgetState.getHandleList(); - const scale = model.moveHandle.getScale1() * vec3.distance(model._apiSpecificRenderWindow.displayToWorld(0, 0, 0, model._renderer), model._apiSpecificRenderWindow.displayToWorld(1, 0, 0, model._renderer)); - return handles.reduce((_ref, handle) => { - let { - closestHandle, - closestDistance - } = _ref; - if (handle !== model.moveHandle && model.moveHandle.getOrigin() && handle.getOrigin()) { - const distance = vec3.squaredDistance(model.moveHandle.getOrigin(), handle.getOrigin()); - if (distance < closestDistance) { - return { - closestHandle: handle, - closestDistance: distance - }; - } - } - return { - closestHandle, - closestDistance - }; - }, { - closestHandle: null, - closestDistance: scale * scale - }).closestHandle; - }; - - // -------------------------------------------------------------------------- - // Display 2D - // -------------------------------------------------------------------------- - - publicAPI.setDisplayCallback = callback => model.representations[0].setDisplayCallback(callback); - - // -------------------------------------------------------------------------- - // Public methods - // -------------------------------------------------------------------------- - - publicAPI.setResetAfterPointPlacement = model._factory.setResetAfterPointPlacement; - publicAPI.getResetAfterPointPlacement = model._factory.getResetAfterPointPlacement; - publicAPI.setResetAfterPointPlacement(publicAPI.getResetAfterPointPlacement()); - publicAPI.setFreehandMinDistance = model._factory.setFreehandMinDistance; - publicAPI.getFreehandMinDistance = model._factory.getFreehandMinDistance; - publicAPI.setFreehandMinDistance(publicAPI.getFreehandMinDistance()); - publicAPI.setAllowFreehand = model._factory.setAllowFreehand; - publicAPI.getAllowFreehand = model._factory.getAllowFreehand; - publicAPI.setAllowFreehand(publicAPI.getAllowFreehand()); - publicAPI.setDefaultCursor = model._factory.setDefaultCursor; - publicAPI.getDefaultCursor = model._factory.getDefaultCursor; - publicAPI.setDefaultCursor(publicAPI.getDefaultCursor()); - - // -------------------------------------------------------------------------- - - publicAPI.setHandleSizeInPixels = size => { - model._factory.setHandleSizeInPixels(size); - updateHandlesSize(); - }; - publicAPI.getHandleSizeInPixels = model._factory.getHandleSizeInPixels; - publicAPI.setHandleSizeInPixels(model._factory.getHandleSizeInPixels()); // set initial value - - // -------------------------------------------------------------------------- - - publicAPI.setResolution = resolution => { - model._factory.setResolution(resolution); - model.representations[1].setResolution(resolution); - }; - publicAPI.setResolution(model._factory.getResolution()); // set initial value - - // -------------------------------------------------------------------------- - - publicAPI.getPoints = () => model.representations[1].getOutputData().getPoints().getData(); - - // -------------------------------------------------------------------------- - - publicAPI.reset = () => { - model.widgetState.clearHandleList(); - model.lastHandle = null; - model.firstHandle = null; - }; - - // -------------------------------------------------------------------------- - // Right click: Delete handle - // -------------------------------------------------------------------------- - - publicAPI.handleRightButtonPress = e => { - if (!model.activeState || !model.activeState.getActive() || !model.pickable) { - return macro.VOID; - } - if (model.activeState !== model.moveHandle) { - model._interactor.requestAnimation(publicAPI); - model.activeState.deactivate(); - model.widgetState.removeHandle(model.activeState); - model.activeState = null; - model._interactor.cancelAnimation(publicAPI); - } else { - const handle = getHoveredHandle(); - if (handle) { - model.widgetState.removeHandle(handle); - } else if (model.lastHandle) { - model.widgetState.removeHandle(model.lastHandle); - const handles = model.widgetState.getHandleList(); - model.lastHandle = handles[handles.length - 1]; - } - } - publicAPI.invokeInteractionEvent(); - return macro.EVENT_ABORT; - }; - - // -------------------------------------------------------------------------- - // Left press: Add new point - // -------------------------------------------------------------------------- - - publicAPI.handleLeftButtonPress = e => { - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - if (!manipulator || !model.activeState || !model.activeState.getActive() || !model.pickable) { - return macro.VOID; - } - - // update worldDelta - manipulator.handleEvent(e, model._apiSpecificRenderWindow); - if (model.activeState === model.moveHandle) { - if (model.widgetState.getHandleList().length === 0) { - addPoint(); - } else { - const hoveredHandle = getHoveredHandle(); - if (hoveredHandle && !model.keysDown.Control) { - model.moveHandle.deactivate(); - model.moveHandle.setVisible(false); - model.activeState = hoveredHandle; - hoveredHandle.activate(); - model._isDragging = true; - model.lastHandle.setVisible(true); - } else { - addPoint(); - } - } - model.freeHand = publicAPI.getAllowFreehand() && !model._isDragging; - } else if (model.dragable) { - model._isDragging = true; - model._apiSpecificRenderWindow.setCursor('grabbing'); - model._interactor.requestAnimation(publicAPI); - } - publicAPI.invokeStartInteractionEvent(); - return macro.EVENT_ABORT; - }; - - // -------------------------------------------------------------------------- - // Left release - // -------------------------------------------------------------------------- - - publicAPI.handleLeftButtonRelease = e => { - if (model._isDragging) { - if (!model.hasFocus) { - model._apiSpecificRenderWindow.setCursor(model.defaultCursor); - model.widgetState.deactivate(); - model._interactor.cancelAnimation(publicAPI); - publicAPI.invokeEndInteractionEvent(); - } else { - model.moveHandle.setOrigin(...model.activeState.getOrigin()); - model.activeState.deactivate(); - model.moveHandle.activate(); - model.activeState = model.moveHandle; - if (!model.draggedPoint) { - if (vec3.squaredDistance(model.moveHandle.getOrigin(), model.lastHandle.getOrigin()) < model.moveHandle.getScale1() * model.moveHandle.getScale1() || vec3.squaredDistance(model.moveHandle.getOrigin(), model.firstHandle.getOrigin()) < model.moveHandle.getScale1() * model.moveHandle.getScale1()) { - model.lastHandle.setVisible(true); - publicAPI.invokeEndInteractionEvent(); - if (publicAPI.getResetAfterPointPlacement()) { - publicAPI.reset(); - } else { - publicAPI.loseFocus(); - } - } - } - model._interactor.render(); - } - } else if (model.activeState !== model.moveHandle) { - model.widgetState.deactivate(); - } - model.freeHand = false; - model.draggedPoint = false; - model._isDragging = false; - return model.hasFocus ? macro.EVENT_ABORT : macro.VOID; - }; - - // -------------------------------------------------------------------------- - // Mouse move: Drag selected handle / Handle follow the mouse - // -------------------------------------------------------------------------- - - publicAPI.handleMouseMove = callData => { - const manipulator = model.activeState?.getManipulator?.() ?? model.manipulator; - if (!manipulator || !model.activeState || !model.activeState.getActive() || !model.pickable) { - return macro.VOID; - } - const { - worldCoords, - worldDelta - } = manipulator.handleEvent(callData, model._apiSpecificRenderWindow); - const hoveredHandle = getHoveredHandle(); - if (hoveredHandle) { - model.moveHandle.setVisible(false); - if (hoveredHandle !== model.firstHandle) { - model._apiSpecificRenderWindow.setCursor('grabbing'); - } - } else if (!model._isDragging && model.hasFocus) { - model.moveHandle.setVisible(true); - model._apiSpecificRenderWindow.setCursor(model.defaultCursor); - } - if (model.lastHandle) { - model.lastHandle.setVisible(true); - } - const isHandleMoving = model._isDragging || model.activeState === model.moveHandle; - if (worldCoords.length && isHandleMoving) { - const curOrigin = model.activeState.getOrigin(); - if (curOrigin) { - model.activeState.setOrigin(add(curOrigin, worldDelta, [])); - } else { - model.activeState.setOrigin(worldCoords); - } - if (model._isDragging) { - model.draggedPoint = true; - } - if (model.freeHand && model.activeState === model.moveHandle) { - addPoint(); - } - } - return model.hasFocus ? macro.EVENT_ABORT : macro.VOID; - }; - - // -------------------------------------------------------------------------- - // Mofifier keys - // -------------------------------------------------------------------------- - - publicAPI.handleKeyDown = _ref2 => { - let { - key - } = _ref2; - model.keysDown[key] = true; - if (!model.hasFocus) { - return; - } - if (key === 'Enter') { - if (model.widgetState.getHandleList().length > 0) { - publicAPI.invokeEndInteractionEvent(); - if (publicAPI.getResetAfterPointPlacement()) { - publicAPI.reset(); - } else { - publicAPI.loseFocus(); - } - } - } else if (key === 'Escape') { - publicAPI.reset(); - publicAPI.loseFocus(); - publicAPI.invokeEndInteractionEvent(); - } else if (key === 'Delete' || key === 'Backspace') { - if (model.lastHandle) { - model.widgetState.removeHandle(model.lastHandle); - const handleList = model.widgetState.getHandleList(); - model.lastHandle = handleList[handleList.length - 1]; - } - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.handleKeyUp = _ref3 => { - let { - key - } = _ref3; - model.keysDown[key] = false; - }; - - // -------------------------------------------------------------------------- - // Focus API - modeHandle follow mouse when widget has focus - // -------------------------------------------------------------------------- - - publicAPI.grabFocus = () => { - if (!model.hasFocus) { - model.activeState = model.moveHandle; - model.activeState.activate(); - model.activeState.setVisible(true); - model._interactor.requestAnimation(publicAPI); - updateHandlesSize(); - } - model.hasFocus = true; - }; - - // -------------------------------------------------------------------------- - - publicAPI.loseFocus = () => { - if (model.hasFocus) { - model._interactor.cancelAnimation(publicAPI); - } - model.widgetState.deactivate(); - model.moveHandle.deactivate(); - model.moveHandle.setVisible(false); - model.activeState = null; - model._interactor.render(); - model.hasFocus = false; - }; -} - -export { widgetBehavior as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SplineWidget/state.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SplineWidget/state.js deleted file mode 100644 index 1df31c86..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/SplineWidget/state.js +++ /dev/null @@ -1,45 +0,0 @@ -import vtkStateBuilder from '../../Core/StateBuilder.js'; -import { splineKind } from '../../../Common/DataModel/Spline3D/Constants.js'; -import { BoundaryCondition } from '../../../Common/DataModel/Spline1D/Constants.js'; - -function generateState() { - return vtkStateBuilder.createBuilder().addField({ - name: 'splineKind', - initialValue: splineKind.KOCHANEK_SPLINE - }).addField({ - name: 'splineClosed', - initialValue: true - }).addField({ - name: 'splineBoundaryCondition', - initialValue: BoundaryCondition.DEFAULT - }).addField({ - name: 'splineBoundaryConditionValues', - initialValue: [0, 0, 0] - }).addField({ - name: 'splineTension', - initialValue: 0 - }).addField({ - name: 'splineContinuity', - initialValue: 0 - }).addField({ - name: 'splineBias', - initialValue: 0 - }).addStateFromMixin({ - labels: ['moveHandle'], - mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator'], - name: 'moveHandle', - initialValues: { - scale1: 10, - visible: false - } - }).addDynamicMixinState({ - labels: ['handles'], - mixins: ['origin', 'color', 'scale1', 'visible', 'manipulator'], - name: 'handle', - initialValues: { - scale1: 10 - } - }).build(); -} - -export { generateState as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/TransformControlsWidget.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/TransformControlsWidget.js deleted file mode 100644 index 1fef321a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/TransformControlsWidget.js +++ /dev/null @@ -1,147 +0,0 @@ -import { mat3 } from 'gl-matrix'; -import { m as macro } from '../../macros2.js'; -import vtkAbstractWidgetFactory from '../Core/AbstractWidgetFactory.js'; -import vtkTranslateTransformHandleRepresentation from '../Representations/TranslateTransformHandleRepresentation.js'; -import vtkScaleTransformHandleRepresentation from '../Representations/ScaleTransformHandleRepresentation.js'; -import vtkRotateTransformHandleRepresentation from '../Representations/RotateTransformHandleRepresentation.js'; -import { TransformMode, TRANSLATE_HANDLE_RADIUS, SCALE_HANDLE_RADIUS, SCALE_HANDLE_CUBE_SIDE_LENGTH, SCALE_HANDLE_PIXEL_SCALE } from './TransformControlsWidget/constants.js'; -import widgetBehavior from './TransformControlsWidget/behavior.js'; -import stateGenerator from './TransformControlsWidget/state.js'; - -function updateHandleTransforms(widgetState) { - const transformState = widgetState.getTransform(); - const sx = widgetState.getScaleHandleX(); - const sy = widgetState.getScaleHandleY(); - const sz = widgetState.getScaleHandleZ(); - const hx = widgetState.getRotateHandleX(); - const hy = widgetState.getRotateHandleY(); - const hz = widgetState.getRotateHandleZ(); - - // translation - widgetState.getStatesWithLabel('handles').forEach(state => { - state.setOrigin(transformState.getTranslation()); - }); - - // rotation - const m3 = mat3.create(); - mat3.fromQuat(m3, transformState.getRotation()); - [sx, hx].forEach(state => { - state.setDirection(m3.slice(0, 3)); - state.setUp(m3.slice(3, 6).map(c => -c)); - state.setRight(m3.slice(6, 9)); - }); - [sy, hy].forEach(state => { - state.setDirection(m3.slice(3, 6)); - state.setUp(m3.slice(6, 9)); - state.setRight(m3.slice(0, 3)); - }); - [sz, hz].forEach(state => { - state.setDirection(m3.slice(6, 9)); - state.setUp(m3.slice(3, 6)); - state.setRight(m3.slice(0, 3)); - }); -} - -// ---------------------------------------------------------------------------- -// Factory -// ---------------------------------------------------------------------------- - -function vtkTransformControlsWidget(publicAPI, model) { - model.classHierarchy.push('vtkTransformControlsWidget'); - - // --- Widget Requirement --------------------------------------------------- - - model.behavior = widgetBehavior; - model.widgetState = stateGenerator(); - model.methodsToLink = ['scaleInPixels', 'activeScaleFactor', 'useActiveColor', 'activeColor']; - publicAPI.getRepresentationsForViewType = viewType => { - switch (viewType) { - default: - return [{ - builder: vtkTranslateTransformHandleRepresentation, - labels: ['translateHandles'], - initialValues: { - radius: TRANSLATE_HANDLE_RADIUS, - glyphResolution: 12, - coneSource: { - radius: 8, - height: 0.05, - direction: [0, 1, 0] - } - } - }, { - builder: vtkScaleTransformHandleRepresentation, - labels: ['scaleHandles'], - initialValues: { - radius: SCALE_HANDLE_RADIUS, - glyphResolution: 12, - cubeSource: { - xLength: SCALE_HANDLE_CUBE_SIDE_LENGTH, - yLength: SCALE_HANDLE_CUBE_SIDE_LENGTH / SCALE_HANDLE_PIXEL_SCALE, - zLength: SCALE_HANDLE_CUBE_SIDE_LENGTH - } - } - }, { - builder: vtkRotateTransformHandleRepresentation, - labels: ['rotateHandles'] - }]; - } - }; - publicAPI.updateHandleVisibility = () => { - model.widgetState.getStatesWithLabel('translateHandles').forEach(state => { - state.setVisible(model.mode === 'translate'); - }); - model.widgetState.getStatesWithLabel('scaleHandles').forEach(state => { - state.setVisible(model.mode === 'scale'); - }); - model.widgetState.getStatesWithLabel('rotateHandles').forEach(state => { - state.setVisible(model.mode === 'rotate'); - }); - }; - model._onModeChanged = () => { - publicAPI.updateHandleVisibility(); - }; - - // --- Widget Requirement --------------------------------------------------- - - // sync translation/scale/rotation states to the handle states - const transformSubscription = model.widgetState.getTransform().onModified(state => { - updateHandleTransforms(model.widgetState); - }); - publicAPI.delete = macro.chain(publicAPI.delete, () => { - transformSubscription.unsubscribe(); - }); - updateHandleTransforms(model.widgetState); - publicAPI.updateHandleVisibility(); -} - -// ---------------------------------------------------------------------------- - -const DEFAULT_VALUES = { - mode: TransformMode.TRANSLATE -}; - -// ---------------------------------------------------------------------------- - -function extend(publicAPI, model) { - let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - Object.assign(model, DEFAULT_VALUES, initialValues); - vtkAbstractWidgetFactory.extend(publicAPI, model, initialValues); - macro.setGet(publicAPI, model, ['mode']); - macro.get(publicAPI, model, ['lineManipulator', 'rotateManipulator']); - vtkTransformControlsWidget(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -const newInstance = macro.newInstance(extend, 'vtkTransformControlsWidget'); - -// ---------------------------------------------------------------------------- - -var vtkTransformControlsWidget$1 = { - newInstance, - extend, - TransformMode -}; - -export { vtkTransformControlsWidget$1 as default, extend, newInstance }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/TransformControlsWidget/behavior.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/TransformControlsWidget/behavior.js deleted file mode 100644 index ce005c77..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/TransformControlsWidget/behavior.js +++ /dev/null @@ -1,182 +0,0 @@ -import { quat, vec3 } from 'gl-matrix'; -import { m as macro } from '../../../macros2.js'; -import vtkBoundingBox from '../../../Common/DataModel/BoundingBox.js'; -import vtkPlaneManipulator from '../../Manipulators/PlaneManipulator.js'; -import vtkLineManipulator from '../../Manipulators/LineManipulator.js'; - -function widgetBehavior(publicAPI, model) { - let isDragging = false; - model.rotationManipulator = vtkPlaneManipulator.newInstance(); - model.lineManipulator = vtkLineManipulator.newInstance(); - const rotateState = { - startQuat: quat.create(), - dragStartVec: [0, 0, 0] - }; - const scaleState = { - startDistFromOrigin: 0, - startScale: 1 - }; - const translateState = { - startPos: 0, - dragStartCoord: [0, 0, 0] - }; - publicAPI.getBounds = () => [...vtkBoundingBox.INIT_BOUNDS]; - publicAPI.setDisplayCallback = callback => model.representations[0].setDisplayCallback(callback); - publicAPI.handleLeftButtonPress = callData => { - if (!model.activeState || !model.activeState.getActive() || !model.pickable) { - return macro.VOID; - } - const [type, axis] = model.activeState.getName().split(':'); - const axisIndex = 'XYZ'.indexOf(axis); - if (type === 'translate') { - publicAPI.handleTranslateStartEvent(callData, axis, axisIndex); - } else if (type === 'scale') { - publicAPI.handleScaleStartEvent(callData, axis, axisIndex); - } else if (type === 'rotate') { - publicAPI.handleRotateStartEvent(callData, axis, axisIndex); - } - model._interactor.requestAnimation(publicAPI); - return macro.EVENT_ABORT; - }; - publicAPI.handleTranslateStartEvent = (callData, axis, axisIndex) => { - model.lineManipulator.setHandleOrigin(model.activeState.getOrigin()); - model.lineManipulator.setHandleNormal(model.activeState.getDirection()); - const { - worldCoords - } = model.lineManipulator.handleEvent(callData, model._apiSpecificRenderWindow); - if (worldCoords.length) { - isDragging = true; - translateState.dragStartCoord = worldCoords; - translateState.startPos = model.widgetState.getTransform().getTranslation()[axisIndex]; - } - }; - publicAPI.handleScaleStartEvent = (callData, axis, axisIndex) => { - model.lineManipulator.setHandleOrigin(model.activeState.getOrigin()); - model.lineManipulator.setHandleNormal(model.activeState.getDirection()); - const { - worldCoords - } = model.lineManipulator.handleEvent(callData, model._apiSpecificRenderWindow); - if (worldCoords.length) { - isDragging = true; - scaleState.startScale = model.widgetState.getTransform().getScale()[axisIndex]; - scaleState.startDistFromOrigin = vec3.dist(worldCoords, model.activeState.getOrigin()) || 0.0001; - } - }; - publicAPI.handleRotateStartEvent = (callData, axis) => { - model.rotationManipulator.setHandleOrigin(model.activeState.getOrigin()); - model.rotationManipulator.setHandleNormal(model.activeState.getDirection()); - - // compute unit vector from center of rotation - // to the click point on the plane defined by - // the center of rotation and the rotation normal. - const { - worldCoords - } = model.rotationManipulator.handleEvent(callData, model._apiSpecificRenderWindow); - if (worldCoords.length) { - isDragging = true; - vec3.sub(rotateState.dragStartVec, worldCoords, model.activeState.getOrigin()); - vec3.normalize(rotateState.dragStartVec, rotateState.dragStartVec); - rotateState.startQuat = model.widgetState.getTransform().getRotation(); - } - }; - publicAPI.handleMouseMove = callData => { - if (isDragging && model.pickable) { - return publicAPI.handleEvent(callData); - } - return macro.VOID; - }; - publicAPI.handleLeftButtonRelease = () => { - if (isDragging && model.pickable) { - model._interactor.cancelAnimation(publicAPI); - } - isDragging = false; - model.widgetState.deactivate(); - }; - publicAPI.handleEvent = callData => { - if (model.pickable && model.activeState && model.activeState.getActive()) { - const [type, axis] = model.activeState.getName().split(':'); - const axisIndex = 'XYZ'.indexOf(axis); - if (type === 'translate') { - return publicAPI.handleTranslateEvent(callData, axis, axisIndex); - } - if (type === 'scale') { - return publicAPI.handleScaleEvent(callData, axis, axisIndex); - } - if (type === 'rotate') { - return publicAPI.handleRotateEvent(callData, axis, axisIndex); - } - } - return macro.VOID; - }; - publicAPI.handleTranslateEvent = (callData, axis, axisIndex) => { - model.lineManipulator.setHandleOrigin(model.activeState.getOrigin()); - model.lineManipulator.setHandleNormal(model.activeState.getDirection()); - const { - worldCoords - } = model.lineManipulator.handleEvent(callData, model._apiSpecificRenderWindow); - if (worldCoords.length) { - const positiveDir = [0, 0, 0]; - positiveDir[axisIndex] = 1; - const toWorldCoords = [0, 0, 0]; - vec3.sub(toWorldCoords, worldCoords, translateState.dragStartCoord); - const dir = Math.sign(vec3.dot(positiveDir, toWorldCoords)); - const dist = vec3.len(toWorldCoords); - const delta = dir * dist; - const translation = model.widgetState.getTransform().getTranslation(); - translation[axisIndex] = translateState.startPos + delta; - model.widgetState.getTransform().setTranslation(translation); - } - return macro.EVENT_ABORT; - }; - publicAPI.handleScaleEvent = (callData, axis, axisIndex) => { - model.lineManipulator.setHandleOrigin(model.activeState.getOrigin()); - model.lineManipulator.setHandleNormal(model.activeState.getDirection()); - const { - worldCoords - } = model.lineManipulator.handleEvent(callData, model._apiSpecificRenderWindow); - if (worldCoords.length) { - const dist = vec3.dist(model.activeState.getOrigin(), worldCoords); - const scale = dist / scaleState.startDistFromOrigin * scaleState.startScale; - const scales = model.widgetState.getTransform().getScale(); - scales[axisIndex] = scale; - model.widgetState.getTransform().setScale(scales); - } - return macro.EVENT_ABORT; - }; - publicAPI.handleRotateEvent = callData => { - model.rotationManipulator.setHandleOrigin(model.activeState.getOrigin()); - model.rotationManipulator.setHandleNormal(model.activeState.getDirection()); - const { - worldCoords - } = model.rotationManipulator.handleEvent(callData, model._apiSpecificRenderWindow); - const curPointerVec = [0, 0, 0]; - if (worldCoords.length) { - vec3.sub(curPointerVec, worldCoords, model.activeState.getOrigin()); - vec3.normalize(curPointerVec, curPointerVec); - const angle = vec3.angle(rotateState.dragStartVec, curPointerVec); - const signVec = [0, 0, 0]; - vec3.cross(signVec, curPointerVec, rotateState.dragStartVec); - vec3.normalize(signVec, signVec); - const sign = vec3.dot(signVec, model.activeState.getDirection()); - const q = quat.create(); - quat.setAxisAngle(q, model.activeState.getDirection(), -sign * angle); - quat.mul(q, q, rotateState.startQuat); - quat.normalize(q, q); - - // do not amplify fp errors when editing a particular direction - const direction = model.activeState.getDirection(); - model.widgetState.getTransform().setRotation(q); - model.activeState.setDirection(direction); - } - return macro.EVENT_ABORT; - }; - - // -------------------------------------------------------------------------- - // initialization - // -------------------------------------------------------------------------- - - model.camera = model._renderer.getActiveCamera(); - model.classHierarchy.push('vtkTransformControlsWidgetProp'); -} - -export { widgetBehavior as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/TransformControlsWidget/constants.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/TransformControlsWidget/constants.js deleted file mode 100644 index c264131e..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/TransformControlsWidget/constants.js +++ /dev/null @@ -1,15 +0,0 @@ -const ROTATE_HANDLE_PIXEL_SCALE = 240; -const TRANSLATE_HANDLE_RADIUS = 3; -const SCALE_HANDLE_RADIUS = 3; -const SCALE_HANDLE_CUBE_SIDE_LENGTH = 20; -const SCALE_HANDLE_PIXEL_SCALE = 320; -const TransformMode = { - TRANSLATE: 'translate', - SCALE: 'scale', - ROTATE: 'rotate' -}; -var constants = { - TransformMode -}; - -export { ROTATE_HANDLE_PIXEL_SCALE, SCALE_HANDLE_CUBE_SIDE_LENGTH, SCALE_HANDLE_PIXEL_SCALE, SCALE_HANDLE_RADIUS, TRANSLATE_HANDLE_RADIUS, TransformMode, constants as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/TransformControlsWidget/state.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/TransformControlsWidget/state.js deleted file mode 100644 index aa487167..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/Widgets3D/TransformControlsWidget/state.js +++ /dev/null @@ -1,157 +0,0 @@ -import vtkStateBuilder from '../../Core/StateBuilder.js'; -import { SCALE_HANDLE_PIXEL_SCALE, ROTATE_HANDLE_PIXEL_SCALE } from './constants.js'; - -function stateGenerator() { - const transformState = vtkStateBuilder.createBuilder().addField({ - name: 'translation', - initialValue: [0, 0, 0] - }).addField({ - name: 'scale', - initialValue: [1, 1, 1] - }).addField({ - name: 'rotation', - initialValue: [0, 0, 0, 1] - }).build(); - return vtkStateBuilder.createBuilder().addStateFromInstance({ - labels: [], - name: 'transform', - instance: transformState - }) - - // translate state - .addStateFromMixin({ - labels: ['handles', 'translateHandles'], - mixins: ['name', 'origin', 'color3', 'scale3', 'orientation', 'visible'], - name: 'translateHandleZ', - initialValues: { - name: 'translate:Z', - scale3: [1, 1, SCALE_HANDLE_PIXEL_SCALE], - origin: [0, 0, 0], - color3: [0, 255, 0], - // these are fixed to the world axes - up: [0, 1, 0], - right: [1, 0, 0], - direction: [0, 0, 1] - } - }).addStateFromMixin({ - labels: ['handles', 'translateHandles'], - mixins: ['name', 'origin', 'color3', 'scale3', 'orientation', 'visible'], - name: 'translateHandleX', - initialValues: { - name: 'translate:X', - scale3: [1, 1, SCALE_HANDLE_PIXEL_SCALE], - origin: [0, 0, 0], - color3: [0, 0, 255], - // these are fixed to the world axes - up: [0, 1, 0], - right: [0, 0, -1], - direction: [1, 0, 0] - } - }).addStateFromMixin({ - labels: ['handles', 'translateHandles'], - mixins: ['name', 'origin', 'color3', 'scale3', 'orientation', 'visible'], - name: 'translateHandleY', - initialValues: { - name: 'translate:Y', - scale3: [1, 1, SCALE_HANDLE_PIXEL_SCALE], - origin: [0, 0, 0], - color3: [255, 0, 0], - // these are fixed to the world axes - up: [0, 0, 1], - right: [1, 0, 0], - direction: [0, 1, 0] - } - }) - - // scale state - .addStateFromMixin({ - labels: ['handles', 'scaleHandles'], - mixins: ['name', 'origin', 'color3', 'scale3', 'orientation', 'visible'], - name: 'scaleHandleZ', - initialValues: { - name: 'scale:Z', - scale3: [1, 1, SCALE_HANDLE_PIXEL_SCALE], - origin: [0, 0, 0], - color3: [0, 255, 0], - // these are set via setHandleOrientationsFromQuat - up: [0, 0, 1], - right: [0, 1, 0], - direction: [1, 0, 0] - } - }).addStateFromMixin({ - labels: ['handles', 'scaleHandles'], - mixins: ['name', 'origin', 'color3', 'scale3', 'orientation', 'visible'], - name: 'scaleHandleX', - initialValues: { - name: 'scale:X', - scale3: [1, 1, SCALE_HANDLE_PIXEL_SCALE], - origin: [0, 0, 0], - color3: [0, 0, 255], - // these are set via setHandleOrientationsFromQuat - up: [1, 0, 0], - right: [0, -1, 0], - direction: [0, 0, 1] - } - }).addStateFromMixin({ - labels: ['handles', 'scaleHandles'], - mixins: ['name', 'origin', 'color3', 'scale3', 'orientation', 'visible'], - name: 'scaleHandleY', - initialValues: { - name: 'scale:Y', - scale3: [1, 1, SCALE_HANDLE_PIXEL_SCALE], - origin: [0, 0, 0], - color3: [255, 0, 0], - // these are set via setHandleOrientationsFromQuat - up: [0, 1, 0], - right: [1, 0, 0], - direction: [0, 0, 1] - } - }) - - // rotation state - .addStateFromMixin({ - labels: ['handles', 'rotateHandles'], - mixins: ['name', 'origin', 'color3', 'scale1', 'orientation', 'visible'], - name: 'rotateHandleZ', - initialValues: { - name: 'rotate:Z', - scale1: ROTATE_HANDLE_PIXEL_SCALE, - origin: [0, 0, 0], - color3: [0, 255, 0], - // these are set via setHandleOrientationsFromQuat - up: [0, 1, 0], - right: [1, 0, 0], - direction: [0, 0, 1] - } - }).addStateFromMixin({ - labels: ['handles', 'rotateHandles'], - mixins: ['name', 'origin', 'color3', 'scale1', 'orientation', 'visible'], - name: 'rotateHandleX', - initialValues: { - name: 'rotate:X', - scale1: ROTATE_HANDLE_PIXEL_SCALE, - origin: [0, 0, 0], - color3: [0, 0, 255], - // these are set via setHandleOrientationsFromQuat - up: [0, 1, 0], - right: [0, 0, -1], - direction: [1, 0, 0] - } - }).addStateFromMixin({ - labels: ['handles', 'rotateHandles'], - mixins: ['name', 'origin', 'color3', 'scale1', 'orientation', 'visible'], - name: 'rotateHandleY', - initialValues: { - name: 'rotate:Y', - scale1: ROTATE_HANDLE_PIXEL_SCALE, - origin: [0, 0, 0], - color3: [255, 0, 0], - // these are set via setHandleOrientationsFromQuat - up: [0, 0, 1], - right: [1, 0, 0], - direction: [0, 1, 0] - } - }).build(); -} - -export { stateGenerator as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/index.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/index.js deleted file mode 100644 index 06a54207..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/Widgets/index.js +++ /dev/null @@ -1,13 +0,0 @@ -import Core from './Core.js'; -import Manipulators from './Manipulators.js'; -import Representations from './Representations.js'; -import Widgets3D from './Widgets3D.js'; - -var Widgets = { - Core, - Manipulators, - Representations, - Widgets3D -}; - -export { Widgets as default }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/_virtual/rollup-plugin-web-worker-loader__helper__browser__createInlineWorkerFactory.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/_virtual/rollup-plugin-web-worker-loader__helper__browser__createInlineWorkerFactory.js deleted file mode 100644 index 5ecc41b1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/_virtual/rollup-plugin-web-worker-loader__helper__browser__createInlineWorkerFactory.js +++ /dev/null @@ -1,17 +0,0 @@ -import { f as funcToSource } from './rollup-plugin-web-worker-loader__helper__funcToSource.js'; - -function createURL(fn, sourcemapArg) { - var lines = funcToSource(fn, sourcemapArg); - var blob = new Blob(lines, { type: 'application/javascript' }); - return URL.createObjectURL(blob); -} - -function createInlineWorkerFactory(fn, sourcemapArg) { - var url; - return function WorkerFactory(options) { - url = url || createURL(fn, sourcemapArg); - return new Worker(url, options); - }; -} - -export { createInlineWorkerFactory as c }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/_virtual/rollup-plugin-web-worker-loader__helper__funcToSource.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/_virtual/rollup-plugin-web-worker-loader__helper__funcToSource.js deleted file mode 100644 index 0e6edcf5..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/_virtual/rollup-plugin-web-worker-loader__helper__funcToSource.js +++ /dev/null @@ -1,18 +0,0 @@ -function funcToSource(fn, sourcemapArg) { - var sourcemap = sourcemapArg === undefined ? null : sourcemapArg; - var regex = /(['"])__worker_loader_strict__(['"])/g; - var lines = []; - - // instead of extracting the function source code, just return the function as if it's being evaluated - // by the caller. - var source = fn.toString(); - source = source.replace(regex, '$1use strict$2'); - lines.push('(' + source + ')()'); - - if (sourcemap) { - lines.push('\/\/# sourceMappingURL=' + sourcemap + '\n'); - } - return lines; -} - -export { funcToSource as f }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/_virtual/rollup-plugin-worker-loader__module_Sources/Filters/General/PaintFilter/PaintFilter.worker.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/_virtual/rollup-plugin-worker-loader__module_Sources/Filters/General/PaintFilter/PaintFilter.worker.js deleted file mode 100644 index e151adf0..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/_virtual/rollup-plugin-worker-loader__module_Sources/Filters/General/PaintFilter/PaintFilter.worker.js +++ /dev/null @@ -1,590 +0,0 @@ -import { c as createInlineWorkerFactory } from '../../../../rollup-plugin-web-worker-loader__helper__browser__createInlineWorkerFactory.js'; - -var WorkerFactory = createInlineWorkerFactory(/* rollup-plugin-web-worker-loader */function () { -(function () { - '__worker_loader_strict__'; - - var register = {exports: {}}; - - var _createClass$1 = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - var TinyEmitter$1 = function () { - function TinyEmitter() { - _classCallCheck$1(this, TinyEmitter); - - Object.defineProperty(this, '__listeners', { - value: {}, - enumerable: false, - writable: false - }); - } - - _createClass$1(TinyEmitter, [{ - key: 'emit', - value: function emit(eventName) { - if (!this.__listeners[eventName]) return this; - - for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; - - try { - for (var _iterator = this.__listeners[eventName][Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { - var handler = _step.value; - - handler.apply(undefined, args); - } - } catch (err) { - _didIteratorError = true; - _iteratorError = err; - } finally { - try { - if (!_iteratorNormalCompletion && _iterator.return) { - _iterator.return(); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } - } - - return this; - } - }, { - key: 'once', - value: function once(eventName, handler) { - var _this = this; - - var once = function once() { - _this.off(eventName, once); - handler.apply(undefined, arguments); - }; - - return this.on(eventName, once); - } - }, { - key: 'on', - value: function on(eventName, handler) { - if (!this.__listeners[eventName]) this.__listeners[eventName] = []; - - this.__listeners[eventName].push(handler); - - return this; - } - }, { - key: 'off', - value: function off(eventName, handler) { - if (handler) this.__listeners[eventName] = this.__listeners[eventName].filter(function (h) { - return h !== handler; - });else this.__listeners[eventName] = []; - - return this; - } - }]); - - return TinyEmitter; - }(); - - var tinyEmitter = TinyEmitter$1; - - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - - function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var TinyEmitter = tinyEmitter; - - var MESSAGE_RESULT = 0; - var MESSAGE_EVENT = 1; - - var RESULT_ERROR = 0; - var RESULT_SUCCESS = 1; - - var DEFAULT_HANDLER = 'main'; - - var isPromise = function isPromise(o) { - return (typeof o === 'undefined' ? 'undefined' : _typeof(o)) === 'object' && o !== null && typeof o.then === 'function' && typeof o.catch === 'function'; - }; - - function RegisterPromise(fn) { - var handlers = _defineProperty({}, DEFAULT_HANDLER, fn); - var sendPostMessage = self.postMessage.bind(self); - - var server = new (function (_TinyEmitter) { - _inherits(WorkerRegister, _TinyEmitter); - - function WorkerRegister() { - _classCallCheck(this, WorkerRegister); - - return _possibleConstructorReturn(this, (WorkerRegister.__proto__ || Object.getPrototypeOf(WorkerRegister)).apply(this, arguments)); - } - - _createClass(WorkerRegister, [{ - key: 'emit', - value: function emit(eventName) { - for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - if (args.length == 1 && args[0] instanceof TransferableResponse) { - sendPostMessage({ eventName: eventName, args: args }, args[0].transferable); - } else { - sendPostMessage({ eventName: eventName, args: args }); - } - return this; - } - }, { - key: 'emitLocally', - value: function emitLocally(eventName) { - var _get2; - - for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; - } - - (_get2 = _get(WorkerRegister.prototype.__proto__ || Object.getPrototypeOf(WorkerRegister.prototype), 'emit', this)).call.apply(_get2, [this, eventName].concat(args)); - } - }, { - key: 'operation', - value: function operation(name, handler) { - handlers[name] = handler; - return this; - } - }]); - - return WorkerRegister; - }(TinyEmitter))(); - - var run = function run(messageId, payload, handlerName) { - - var onSuccess = function onSuccess(result) { - if (result && result instanceof TransferableResponse) { - sendResult(messageId, RESULT_SUCCESS, result.payload, result.transferable); - } else { - sendResult(messageId, RESULT_SUCCESS, result); - } - }; - - var onError = function onError(e) { - sendResult(messageId, RESULT_ERROR, { - message: e.message, - stack: e.stack - }); - }; - - try { - var result = runFn(messageId, payload, handlerName); - if (isPromise(result)) { - result.then(onSuccess).catch(onError); - } else { - onSuccess(result); - } - } catch (e) { - onError(e); - } - }; - - var runFn = function runFn(messageId, payload, handlerName) { - var handler = handlers[handlerName || DEFAULT_HANDLER]; - if (!handler) throw new Error('Not found handler for this request'); - - return handler(payload, sendEvent.bind(null, messageId)); - }; - - var sendResult = function sendResult(messageId, success, payload) { - var transferable = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : []; - - sendPostMessage([MESSAGE_RESULT, messageId, success, payload], transferable); - }; - - var sendEvent = function sendEvent(messageId, eventName, payload) { - if (!eventName) throw new Error('eventName is required'); - - if (typeof eventName !== 'string') throw new Error('eventName should be string'); - - sendPostMessage([MESSAGE_EVENT, messageId, eventName, payload]); - }; - - self.addEventListener('message', function (_ref) { - var data = _ref.data; - - if (Array.isArray(data)) { - run.apply(undefined, _toConsumableArray(data)); - } else if (data && data.eventName) { - server.emitLocally.apply(server, [data.eventName].concat(_toConsumableArray(data.args))); - } - }); - - return server; - } - - var TransferableResponse = function TransferableResponse(payload, transferable) { - _classCallCheck(this, TransferableResponse); - - this.payload = payload; - this.transferable = transferable; - }; - - register.exports = RegisterPromise; - register.exports.TransferableResponse = TransferableResponse; - - var registerWebworker = register.exports; - - const SlicingMode = { - NONE: -1, - I: 0, - J: 1, - K: 2, - X: 3, - Y: 4, - Z: 5 - }; - - /** - * Common utilities - * @module glMatrix - */ - var ARRAY_TYPE = typeof Float32Array !== 'undefined' ? Float32Array : Array; - if (!Math.hypot) Math.hypot = function () { - var y = 0, - i = arguments.length; - - while (i--) { - y += arguments[i] * arguments[i]; - } - - return Math.sqrt(y); - }; - - /** - * 3 Dimensional Vector - * @module vec3 - */ - - /** - * Creates a new, empty vec3 - * - * @returns {vec3} a new 3D vector - */ - - function create() { - var out = new ARRAY_TYPE(3); - - if (ARRAY_TYPE != Float32Array) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - } - - return out; - } - /** - * Subtracts vector b from vector a - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - - function subtract(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - out[2] = a[2] - b[2]; - return out; - } - /** - * Scales a vec3 by a scalar number - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the vector to scale - * @param {Number} b amount to scale the vector by - * @returns {vec3} out - */ - - function scale(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - return out; - } - /** - * Adds two vec3's after scaling the second operand by a scalar value - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @param {Number} scale the amount to scale b by before adding - * @returns {vec3} out - */ - - function scaleAndAdd(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - out[2] = a[2] + b[2] * scale; - return out; - } - /** - * Perform some operation over an array of vec3s. - * - * @param {Array} a the array of vectors to iterate over - * @param {Number} stride Number of elements between the start of each vec3. If 0 assumes tightly packed - * @param {Number} offset Number of elements to skip at the beginning of the array - * @param {Number} count Number of vec3s to iterate over. If 0 iterates over entire array - * @param {Function} fn Function to call for each vector in the array - * @param {Object} [arg] additional argument to pass to fn - * @returns {Array} a - * @function - */ - - (function () { - var vec = create(); - return function (a, stride, offset, count, fn, arg) { - var i, l; - - if (!stride) { - stride = 3; - } - - if (!offset) { - offset = 0; - } - - if (count) { - l = Math.min(count * stride + offset, a.length); - } else { - l = a.length; - } - - for (i = offset; i < l; i += stride) { - vec[0] = a[i]; - vec[1] = a[i + 1]; - vec[2] = a[i + 2]; - fn(vec, vec, arg); - a[i] = vec[0]; - a[i + 1] = vec[1]; - a[i + 2] = vec[2]; - } - - return a; - }; - })(); - - const globals = { - // single-component labelmap - buffer: null, - dimensions: [0, 0, 0], - prevPoint: null, - slicingMode: null // 2D or 3D painting - }; - - // -------------------------------------------------------------------------- - - function handlePaintRectangle(_ref) { - let { - point1, - point2 - } = _ref; - const [x1, y1, z1] = point1; - const [x2, y2, z2] = point2; - const xstart = Math.max(Math.min(x1, x2), 0); - const xend = Math.min(Math.max(x1, x2), globals.dimensions[0] - 1); - if (xstart <= xend) { - const ystart = Math.max(Math.min(y1, y2), 0); - const yend = Math.min(Math.max(y1, y2), globals.dimensions[1] - 1); - const zstart = Math.max(Math.min(z1, z2), 0); - const zend = Math.min(Math.max(z1, z2), globals.dimensions[2] - 1); - const jStride = globals.dimensions[0]; - const kStride = globals.dimensions[0] * globals.dimensions[1]; - for (let k = zstart; k <= zend; k++) { - for (let j = ystart; j <= yend; j++) { - const index = j * jStride + k * kStride; - globals.buffer.fill(1, index + xstart, index + xend + 1); - } - } - } - } - - // -------------------------------------------------------------------------- - // center and scale3 are in IJK coordinates - function handlePaintEllipse(_ref2) { - let { - center, - scale3 - } = _ref2; - const radius3 = [...scale3]; - const indexCenter = center.map(val => Math.round(val)); - let sliceAxis = -1; - if (globals.slicingMode != null && globals.slicingMode !== SlicingMode.NONE) { - sliceAxis = globals.slicingMode % 3; - } - const yStride = globals.dimensions[0]; - const zStride = globals.dimensions[0] * globals.dimensions[1]; - let [xmin, ymin, zmin] = indexCenter; - let [xmax, ymax, zmax] = indexCenter; - if (sliceAxis !== 2) { - zmin = Math.round(Math.max(indexCenter[2] - radius3[2], 0)); - zmax = Math.round(Math.min(indexCenter[2] + radius3[2], globals.dimensions[2] - 1)); - } - for (let z = zmin; z <= zmax; z++) { - let dz = 0; - if (sliceAxis !== 2) { - dz = (indexCenter[2] - z) / radius3[2]; - } - const dzSquared = dz * dz; - if (dzSquared <= 1) { - const ay = radius3[1] * Math.sqrt(1 - dzSquared); - if (sliceAxis !== 1) { - ymin = Math.round(Math.max(indexCenter[1] - ay, 0)); - ymax = Math.round(Math.min(indexCenter[1] + ay, globals.dimensions[1] - 1)); - } - for (let y = ymin; y <= ymax; y++) { - let dy = 0; - if (sliceAxis !== 1) { - dy = (indexCenter[1] - y) / radius3[1]; - } - const dySquared = dy * dy; - if (dySquared + dzSquared <= 1) { - if (sliceAxis !== 0) { - const ax = radius3[0] * Math.sqrt(1 - dySquared - dzSquared); - xmin = Math.round(Math.max(indexCenter[0] - ax, 0)); - xmax = Math.round(Math.min(indexCenter[0] + ax, globals.dimensions[0] - 1)); - } - if (xmin <= xmax) { - const index = y * yStride + z * zStride; - globals.buffer.fill(1, index + xmin, index + xmax + 1); - } - } - } - } - } - } - - // -------------------------------------------------------------------------- - - function handlePaint(_ref3) { - let { - point, - radius - } = _ref3; - if (!globals.prevPoint) { - globals.prevPoint = point; - } - - // DDA params - const delta = [point[0] - globals.prevPoint[0], point[1] - globals.prevPoint[1], point[2] - globals.prevPoint[2]]; - const inc = [1, 1, 1]; - for (let i = 0; i < 3; i++) { - if (delta[i] < 0) { - delta[i] = -delta[i]; - inc[i] = -1; - } - } - const step = Math.max(...delta); - - // DDA - const thresh = [step, step, step]; - const pt = [...globals.prevPoint]; - for (let s = 0; s <= step; s++) { - handlePaintEllipse({ - center: pt, - scale3: radius - }); - for (let ii = 0; ii < 3; ii++) { - thresh[ii] -= delta[ii]; - if (thresh[ii] <= 0) { - thresh[ii] += step; - pt[ii] += inc[ii]; - } - } - } - globals.prevPoint = point; - } - - // -------------------------------------------------------------------------- - - function handlePaintTriangles(_ref4) { - let { - triangleList - } = _ref4; - // debugger; - - const triangleCount = Math.floor(triangleList.length / 9); - for (let i = 0; i < triangleCount; i++) { - const point0 = triangleList.subarray(9 * i + 0, 9 * i + 3); - const point1 = triangleList.subarray(9 * i + 3, 9 * i + 6); - const point2 = triangleList.subarray(9 * i + 6, 9 * i + 9); - const v1 = [0, 0, 0]; - const v2 = [0, 0, 0]; - subtract(v1, point1, point0); - subtract(v2, point2, point0); - const step1 = [0, 0, 0]; - const numStep1 = 2 * Math.max(Math.abs(v1[0]), Math.abs(v1[1]), Math.abs(v1[2])); - scale(step1, v1, 1 / numStep1); - const step2 = [0, 0, 0]; - const numStep2 = 2 * Math.max(Math.abs(v2[0]), Math.abs(v2[1]), Math.abs(v2[2])); - scale(step2, v2, 1 / numStep2); - const jStride = globals.dimensions[0]; - const kStride = globals.dimensions[0] * globals.dimensions[1]; - for (let u = 0; u <= numStep1 + 1; u++) { - const maxV = numStep2 - u * (numStep2 / numStep1); - for (let v = 0; v <= maxV + 1; v++) { - const point = [...point0]; - scaleAndAdd(point, point, step1, u); - scaleAndAdd(point, point, step2, v); - point[0] = Math.round(point[0]); - point[1] = Math.round(point[1]); - point[2] = Math.round(point[2]); - if (point[0] >= 0 && point[0] < globals.dimensions[0] && point[1] >= 0 && point[1] < globals.dimensions[1] && point[2] >= 0 && point[2] < globals.dimensions[2]) { - globals.buffer[point[0] + jStride * point[1] + kStride * point[2]] = 1; - } - } - } - } - } - - // -------------------------------------------------------------------------- - - registerWebworker().operation('start', _ref5 => { - let { - bufferType, - dimensions, - slicingMode - } = _ref5; - if (!globals.buffer) { - const bufferSize = dimensions[0] * dimensions[1] * dimensions[2]; - /* eslint-disable-next-line */ - globals.buffer = new self[bufferType](bufferSize); - globals.dimensions = dimensions; - globals.prevPoint = null; - globals.slicingMode = slicingMode; - } - }).operation('paint', handlePaint).operation('paintRectangle', handlePaintRectangle).operation('paintEllipse', handlePaintEllipse).operation('paintTriangles', handlePaintTriangles).operation('end', () => { - const response = new registerWebworker.TransferableResponse(globals.buffer.buffer, [globals.buffer.buffer]); - globals.buffer = null; - return response; - }); - -})(); -}, null); -/* eslint-enable */ - -export { WorkerFactory as W }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/_virtual/rollup-plugin-worker-loader__module_Sources/Interaction/Widgets/PiecewiseGaussianWidget/ComputeHistogram.worker.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/_virtual/rollup-plugin-worker-loader__module_Sources/Interaction/Widgets/PiecewiseGaussianWidget/ComputeHistogram.worker.js deleted file mode 100644 index 06638ff9..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/_virtual/rollup-plugin-worker-loader__module_Sources/Interaction/Widgets/PiecewiseGaussianWidget/ComputeHistogram.worker.js +++ /dev/null @@ -1,275 +0,0 @@ -import { c as createInlineWorkerFactory } from '../../../../rollup-plugin-web-worker-loader__helper__browser__createInlineWorkerFactory.js'; - -var WorkerFactory = createInlineWorkerFactory(/* rollup-plugin-web-worker-loader */function () { -(function () { - '__worker_loader_strict__'; - - var register = {exports: {}}; - - var _createClass$1 = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - var TinyEmitter$1 = function () { - function TinyEmitter() { - _classCallCheck$1(this, TinyEmitter); - - Object.defineProperty(this, '__listeners', { - value: {}, - enumerable: false, - writable: false - }); - } - - _createClass$1(TinyEmitter, [{ - key: 'emit', - value: function emit(eventName) { - if (!this.__listeners[eventName]) return this; - - for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; - - try { - for (var _iterator = this.__listeners[eventName][Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { - var handler = _step.value; - - handler.apply(undefined, args); - } - } catch (err) { - _didIteratorError = true; - _iteratorError = err; - } finally { - try { - if (!_iteratorNormalCompletion && _iterator.return) { - _iterator.return(); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } - } - - return this; - } - }, { - key: 'once', - value: function once(eventName, handler) { - var _this = this; - - var once = function once() { - _this.off(eventName, once); - handler.apply(undefined, arguments); - }; - - return this.on(eventName, once); - } - }, { - key: 'on', - value: function on(eventName, handler) { - if (!this.__listeners[eventName]) this.__listeners[eventName] = []; - - this.__listeners[eventName].push(handler); - - return this; - } - }, { - key: 'off', - value: function off(eventName, handler) { - if (handler) this.__listeners[eventName] = this.__listeners[eventName].filter(function (h) { - return h !== handler; - });else this.__listeners[eventName] = []; - - return this; - } - }]); - - return TinyEmitter; - }(); - - var tinyEmitter = TinyEmitter$1; - - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - - function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } - - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - - function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - - function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - - function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - - var TinyEmitter = tinyEmitter; - - var MESSAGE_RESULT = 0; - var MESSAGE_EVENT = 1; - - var RESULT_ERROR = 0; - var RESULT_SUCCESS = 1; - - var DEFAULT_HANDLER = 'main'; - - var isPromise = function isPromise(o) { - return (typeof o === 'undefined' ? 'undefined' : _typeof(o)) === 'object' && o !== null && typeof o.then === 'function' && typeof o.catch === 'function'; - }; - - function RegisterPromise(fn) { - var handlers = _defineProperty({}, DEFAULT_HANDLER, fn); - var sendPostMessage = self.postMessage.bind(self); - - var server = new (function (_TinyEmitter) { - _inherits(WorkerRegister, _TinyEmitter); - - function WorkerRegister() { - _classCallCheck(this, WorkerRegister); - - return _possibleConstructorReturn(this, (WorkerRegister.__proto__ || Object.getPrototypeOf(WorkerRegister)).apply(this, arguments)); - } - - _createClass(WorkerRegister, [{ - key: 'emit', - value: function emit(eventName) { - for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - if (args.length == 1 && args[0] instanceof TransferableResponse) { - sendPostMessage({ eventName: eventName, args: args }, args[0].transferable); - } else { - sendPostMessage({ eventName: eventName, args: args }); - } - return this; - } - }, { - key: 'emitLocally', - value: function emitLocally(eventName) { - var _get2; - - for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; - } - - (_get2 = _get(WorkerRegister.prototype.__proto__ || Object.getPrototypeOf(WorkerRegister.prototype), 'emit', this)).call.apply(_get2, [this, eventName].concat(args)); - } - }, { - key: 'operation', - value: function operation(name, handler) { - handlers[name] = handler; - return this; - } - }]); - - return WorkerRegister; - }(TinyEmitter))(); - - var run = function run(messageId, payload, handlerName) { - - var onSuccess = function onSuccess(result) { - if (result && result instanceof TransferableResponse) { - sendResult(messageId, RESULT_SUCCESS, result.payload, result.transferable); - } else { - sendResult(messageId, RESULT_SUCCESS, result); - } - }; - - var onError = function onError(e) { - sendResult(messageId, RESULT_ERROR, { - message: e.message, - stack: e.stack - }); - }; - - try { - var result = runFn(messageId, payload, handlerName); - if (isPromise(result)) { - result.then(onSuccess).catch(onError); - } else { - onSuccess(result); - } - } catch (e) { - onError(e); - } - }; - - var runFn = function runFn(messageId, payload, handlerName) { - var handler = handlers[handlerName || DEFAULT_HANDLER]; - if (!handler) throw new Error('Not found handler for this request'); - - return handler(payload, sendEvent.bind(null, messageId)); - }; - - var sendResult = function sendResult(messageId, success, payload) { - var transferable = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : []; - - sendPostMessage([MESSAGE_RESULT, messageId, success, payload], transferable); - }; - - var sendEvent = function sendEvent(messageId, eventName, payload) { - if (!eventName) throw new Error('eventName is required'); - - if (typeof eventName !== 'string') throw new Error('eventName should be string'); - - sendPostMessage([MESSAGE_EVENT, messageId, eventName, payload]); - }; - - self.addEventListener('message', function (_ref) { - var data = _ref.data; - - if (Array.isArray(data)) { - run.apply(undefined, _toConsumableArray(data)); - } else if (data && data.eventName) { - server.emitLocally.apply(server, [data.eventName].concat(_toConsumableArray(data.args))); - } - }); - - return server; - } - - var TransferableResponse = function TransferableResponse(payload, transferable) { - _classCallCheck(this, TransferableResponse); - - this.payload = payload; - this.transferable = transferable; - }; - - register.exports = RegisterPromise; - register.exports.TransferableResponse = TransferableResponse; - - var registerWebworker = register.exports; - - /* eslint-disable */ - // prettier-ignore - registerWebworker(function (message, emit) { - var array = message.array; - var min = message.min; - var max = message.max; - var offset = message.component || 0; - var step = message.numberOfComponents || 1; - var numberOfBins = message.numberOfBins; - var delta = max - min; - var histogram = new Float32Array(numberOfBins); - histogram.fill(0); - var len = array.length; - for (var i = offset; i < len; i += step) { - var idx = Math.floor((numberOfBins - 1) * (Number(array[i]) - min) / delta); - histogram[idx] += 1; - } - return Promise.resolve(new registerWebworker.TransferableResponse(histogram, [histogram.buffer])); - }); - -})(); -}, null); -/* eslint-enable */ - -export { WorkerFactory as W }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/favicon.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/favicon.js deleted file mode 100644 index 7b3feb85..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/favicon.js +++ /dev/null @@ -1,11 +0,0 @@ -const head = document.querySelector('head'); -if (head) { - [16, 32, 96, 160, 196].forEach(resolution => { - const link = document.createElement('link'); - link.setAttribute('rel', 'icon'); - link.setAttribute('href', `https://kitware.github.io/vtk-js/icon/favicon-${resolution}x${resolution}.png`); - link.setAttribute('sizes', `${resolution}x${resolution}`); - link.setAttribute('type', 'image/png'); - head.appendChild(link); - }); -} diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/index.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/index.d.ts deleted file mode 100644 index 1a638e0a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/index.d.ts +++ /dev/null @@ -1,274 +0,0 @@ -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/index.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/index.js deleted file mode 100644 index dfd80239..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/index.js +++ /dev/null @@ -1,25 +0,0 @@ -import Common from './Common/index.js'; -import Filters from './Filters/index.js'; -import Imaging from './Imaging/index.js'; -import Interaction from './Interaction/index.js'; -import IO from './IO/index.js'; -import Rendering from './Rendering/index.js'; -import VTKProxy from './Proxy/index.js'; -import Widgets from './Widgets/index.js'; -import { m as macro } from './macros2.js'; -import vtk from './vtk.js'; - -vtk.Common = Common; -vtk.Filters = Filters; -vtk.Imaging = Imaging; -vtk.Interaction = Interaction; -vtk.IO = IO; -vtk.Proxy = VTKProxy; -vtk.Rendering = Rendering; -vtk.Widgets = Widgets; -vtk.mtime = macro.getCurrentGlobalMTime; -vtk.macro = macro; - -// Expose vtk to global scope without exporting it so nested namespace -// do not pollute the global one. -window.vtk = vtk; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/interfaces.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/interfaces.d.ts deleted file mode 100644 index a5d3178b..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/interfaces.d.ts +++ /dev/null @@ -1,283 +0,0 @@ -import vtkDataArray from './Common/Core/DataArray'; -import { vtkPipelineConnection } from './types'; -import { EVENT_ABORT, VOID } from './macros'; - -/** - * Object returned on any subscription call - */ -export interface vtkSubscription { - unsubscribe(): void; -} - -/** - * Basic object representing a data range - */ -export interface vtkRange { - min: number; - max: number; -} - -/** - * Represents a debounced function. - */ -export interface vtkDebouncedFunction { - (...args: any): any; - cancel(): void; -} - -export interface vtkOutputPort { - filter: vtkAlgorithm; -} - -/** - * vtkAlgorithm API - */ -export interface vtkAlgorithm { - /** - * Assign a data object as input. - * @param dataset The dataset object. - * @param {Number} [port] The port number (default 0). - */ - setInputData(dataset: any, port?: number): void; - - /** - * @param {Number} [port] The port number (default 0). - */ - getInputData(port?: number): any; - - /** - * @param outputPort - * @param {Number} [port] The port number (default 0). - */ - setInputConnection(outputPort: vtkPipelineConnection, port?: number): void; - - /** - * @param {Number} [port] The port number (default 0). - */ - getInputConnection(port?: number): vtkPipelineConnection; - - /** - * Add a connection to the given input port index. - * @param {vtkPipelineConnection} outputPort - */ - addInputConnection(outputPort: vtkPipelineConnection): void; - - /** - * - * @param dataset - */ - addInputData(dataset: any): void; - - /** - * Get the data object that will contain the algorithm output for the given - * port. - * @param {Number} [port] The port number (default 0). - */ - getOutputData(port?: number): any; - - /** - * - */ - shouldUpdate(): boolean; - - /** - * Get a proxy object corresponding to the given output port of this - * algorithm. - * @param {Number} [port] The port number (default 0). - */ - getOutputPort(port?: number): vtkPipelineConnection; - - /** - * Bring this algorithm's outputs up-to-date. - */ - update(): void; - - /** - * Get the number of input ports used by the algorithm. - */ - getNumberOfInputPorts(): number; - - /** - * Get the number of output ports provided by the algorithm. - */ - getNumberOfOutputPorts(): number; - - /** - * Get the actual data array for the input array sepcified by idx. - * @param {Number} port (default 0) - */ - getInputArrayToProcess(inputPort?: number): vtkDataArray; - - /** - * Set the input data arrays that this algorithm will process. - * @param {Number} inputPort The port number. - * @param {String} arrayName The name of the array. - * @param {String} fieldAssociation The name of the association field. - * @param {String} attributeType (default 'Scalars') - */ - setInputArrayToProcess( - inputPort: number, - arrayName: string, - fieldAssociation: string, - attributeType?: string - ): void; -} - -/** - * Base vtkClass which provides MTime tracking and class infrastructure - */ -export interface vtkObject { - /** - * Allow to check if that object was deleted (.delete() was called before). - * @returns true if delete() was previously called - */ - isDeleted(): boolean; - - /** - * Mark the object dirty by increasing its MTime. - * Such action also trigger the onModified() callbacks if any was registered. - * This naturally happens when you call any setXXX(value) with a different value. - */ - modified(): void; - - /** - * Method to register callback when the object is modified(). - * - * @param callback function - * @returns subscription object so you can easily unsubscribe later on - */ - onModified(callback: (instance: vtkObject) => any): vtkSubscription; - - /** - * Return the `Modified Time` which is a monotonic increasing integer - * global for all vtkObjects. - * - * This allow to solve a question such as: - * - Is that object created/modified after another one? - * - Do I need to re-execute this filter, or not? ... - * - * @return {Number} the global modified time. - */ - getMTime(): number; - - /** - * Method to check if an instance is of a given class name. - * For example such method for a vtkCellArray will return true - * for any of the following string: ['vtkObject', 'vtkDataArray', 'vtkCellArray'] - */ - isA(className: string): boolean; - - /** - * Return the instance class name. - */ - getClassName(): string; - - /** - * Generic method to set many fields at one. - * - * For example calling the following function - * ```js - * changeDetected = sphereSourceInstance.set({ - * phiResolution: 10, - * thetaResolution: 20, - * }); - * ``` - * will be equivalent of calling - * ```js - * changeDetected += sphereSourceInstance.setPhiResolution(10); - * changeDetected += sphereSourceInstance.setThetaResolution(20); - * changeDetected = !!changeDetected; - * ``` - * - * In case you provide other field names that do not belong to the instance, - * vtkWarningMacro will be used to warn you. To disable those warning, - * you can set `noWarning` to true. - * - * If `noFunction` is set to true, the field will be set directly on the model - * without calling the `set${FieldName}()` method. - * - * @param [map] (default: {}) Object capturing the set of fieldNames and associated values to set. - * @param [noWarning] (default: false) Boolean to disable any warning. - * @param [noFunctions] (default: false) Boolean to skip any function execution and rely on only setting the fields on the model. - * @return true if a change was actually performed. False otherwise when the value provided were equal to the ones already set inside the instance. - */ - set(map?: object, noWarning?: boolean, noFunction?: boolean): boolean; - - /** - * Extract a set of properties at once from a vtkObject. - * - * This can be convenient to pass a partial state of - * one object to another. - * - * ``` - * cameraB.set(cameraA.get('position', 'viewUp', 'focalPoint')); - * ``` - * - * @param listOfKeys set of field names that you want to retrieve. If not provided, the full model get returned as a new object. - * @returns a new object containing only the values of requested fields - */ - get(...listOfKeys: Array): object; - - /** - * Allow to get a direct reference of a model element - * - * @param name of the field to extract from the instance model - * @returns model[name] - */ - getReferenceByName(name: string): any; - - /** - * Dereference any internal object and remove any subscription. - * It gives custom class to properly detach themselves from the DOM - * or any external dependency that could prevent their deletion - * when the GC runs. - */ - delete(): void; - - /** - * Try to extract a serializable (JSON) object of the given - * instance tree. - * - * Such state can then be reused to clone or rebuild a full - * vtkObject tree using the root vtk() function. - * - * The following example will grab mapper and dataset that are - * beneath the vtkActor instance as well. - * - * ``` - * const actorStr = JSON.stringify(actor.getState()); - * const newActor = vtk(JSON.parse(actorStr)); - * ``` - */ - getState(): object; - - /** - * Used internally by JSON.stringify to get the content to serialize. - * Allow to call directly JSON.stringify on the vtkObject instead of using getState before doing so. - * - * ``` - * const actorStr = JSON.stringify(actor); - * const newActor = vtk(JSON.parse(actorStr)); - * ``` - */ - toJSON(): object; - - /** - * Try to copy the state of the other to ourselves by just using references. - * - * @param {vtkObject} other instance to copy the reference from - * @param {Boolean} [debug] (default: false) if true feedback will be provided when mismatch happen - */ - shallowCopy(other: vtkObject, debug?: boolean): void; -} - -export interface vtkProperty { - name: string; - children?: vtkProperty[]; -} - -export interface vtkPropertyDomain {} - -export type EventHandler = ( - ...args: unknown[] -) => typeof EVENT_ABORT | typeof VOID | void; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/macro.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/macro.d.ts deleted file mode 100644 index 13811aff..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/macro.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import Macro from './macros'; - -export * from './macros'; -export default Macro; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/macro.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/macro.js deleted file mode 100644 index 33e744da..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/macro.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Macro shim to provide backwards compat with - * projects that still import from 'macro.js' - */ -import macro from './macros.js'; - -export * from './macros.js'; -export default macro; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/macros.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/macros.d.ts deleted file mode 100644 index eff6b623..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/macros.d.ts +++ /dev/null @@ -1,759 +0,0 @@ -import { - vtkSubscription, - vtkDebouncedFunction, - vtkProperty, - vtkPropertyDomain, - vtkObject, -} from './interfaces'; - -/** - * Allow user to redefine vtkXXXMacro method call. - * @param name of the macro type [Log, Info, Debug, Error, Warning] - * @param fn function to use when vtkXXXMacro is called. - */ -export function setLoggerFunction( - name: string, - fn: (...args: any) => void -): void; - -/** - * Logging function used for level: Log - * @param args arguments to print - */ -export function vtkLogMacro(...args: any): void; - -/** - * Logging function used for level: Info - * @param args arguments to print - */ -export function vtkInfoMacro(...args: any): void; - -/** - * Logging function used for level: Debug - * @param args arguments to print - */ -export function vtkDebugMacro(...args: any): void; - -/** - * Logging function used for level: Error - * @param args arguments to print - */ -export function vtkErrorMacro(...args: any): void; - -/** - * Logging function used for level: Warning - * @param args arguments to print - */ -export function vtkWarningMacro(...args: any): void; - -/** - * Output error only once - * This is convenient when the error happen in a loop. - * This allow you to catch the issue while not overloading your output console. - */ -export function vtkOnceErrorMacro(str: string): void; - -/** - * A way to create typed array based on its name without using the window namespace - */ -export enum TYPED_ARRAYS { - Float32Array, - Float64Array, - Uint8Array, - Int8Array, - Uint16Array, - Int16Array, - Uint32Array, - Int32Array, -} - -/** - * Capitalize provided string. - * This is typically used to convert the name of a field into its method name. - * - * ``` - * const set = `set${capitalize(fieldName)}`; - * ``` - * @param str String to capitalize - */ -export function capitalize(str: string): string; - -/** - * Capitalize provided string. - * This is typically used to convert the name of a field into its method name. - * Ignore the first letter if it starts with underscore (i.e. _). - * - * ``` - * const set = `set${capitalize(fieldName)}`; - * ``` - */ -export function _capitalize(str: string): string; - -/** - * Lowercase the first letter of the provided string. - */ -export function uncapitalize(str: string): string; - -/** - * Convert byte size into a well formatted string. - * - * @param size number of bytes - * @param precision (default: 2) how many digit you want behind the unit - * @param chunkSize (default: 1000) base 1000 or 1024 - */ -export function formatBytesToProperUnit( - size: number, - precision?: number, - chunkSize?: number -): string; - -// ---------------------------------------------------------------------------- -// Convert thousand number with proper separator -// ---------------------------------------------------------------------------- - -/** - * - * @param n number to format - * @param separator (default: ' ') - */ -export function formatNumbersWithThousandSeparator( - n: number, - separator?: string -): string; - -// ---------------------------------------------------------------------------- -// Array helper -// ---------------------------------------------------------------------------- - -/** - * Replace internal arrays with new reference but with same content - * - * @param model - */ -declare function safeArrays(model: object): void; - -/** - * Extract the key of an object where the given value match the given one - * - * @param e enum object to search key/value from - * @param value to look for inside object - */ -declare function enumToString(e: object, value: any): string; - -/** - * If item is a VtkObject, return its getState() otherwise return itself. - * - * @param item object to extract its state from - */ -declare function getStateArrayMapFunc(item: any): any; - -/** - * Call provided function on the next EDT pass - * - * @param fn function to execute - */ -export function setImmediateVTK(fn: () => void): void; - -/** - * Measures the time it takes for a promise to finish from the time this function is invoked. - * - * The callback receives the time it took for the promise to resolve or reject. - * - * @param promise promise to measure - * @param callback called with the elapsed time for the promise - */ -export function measurePromiseExecution( - promise: Promise, - callback: (elapsed: number) => void -): void; - -/** - * Turns the provided publicAPI into a VtkObject - * - * @param publicAPI (default: {}) object on which public methods get attached to - * @param model (default: {}) object on which protected fields are stored - * @returns publicAPI - */ -export function obj(publicAPI?: object, model?: object): object; - -/** - * Add getter methods to the provided publicAPI - * - * @param publicAPI object on which public methods get attached to - * @param model object on which protected fields are stored - * @param fieldNames list of fields available in model that we want to expose as get{FieldName} methods on the publicAPI - */ -export function get( - publicAPI: object, - model: object, - fieldNames: Array -): void; - -/** - * Add setter methods to the provided publicAPI - * - * @param publicAPI object on which public methods get attached to - * @param model object on which protected fields are stored - * @param fieldNames list of fields available in model that we want to expose as set{FieldName} methods on the publicAPI - * * Can be a string (the name of the field to expose) or an object (e.g. {type:enum, name: {FieldName}, enum: FieldEnum}). - */ -export function set( - publicAPI: object, - model: object, - fields: Array -): void; - -/** - * Add setter+getter methods to the provided publicAPI - * - * @param publicAPI object on which public methods get attached to - * @param model object on which protected fields are stored - * @param fieldNames list of fields available in model that we want to expose as set{FieldName}+get{FieldName} methods on the publicAPI. - * Can be a string (the name of the field to expose) or an object (e.g. {type:enum, name: {FieldName}, enum: FieldEnum}). - */ -export function setGet( - publicAPI: object, - model: object, - fields: Array -): void; - -/** - * Add getter methods to the provided publicAPI for arrays. - * A new array is used as returned value with get{FieldName}() method - * unless get{FieldName}ByReference() is used. - * - * ``` - * get{FieldName}() // add getters for object of type array with copy to be safe - * get{FieldName}ByReference() // add getters for object of type array without copy - * ``` - * - * @param publicAPI object on which public methods get attached to - * @param model object on which protected fields are stored - * @param fieldNames list of fields available in model that we want to expose as get{FieldName}+get{FieldName}ByReference methods on the publicAPI - */ -export function getArray( - publicAPI: object, - model: object, - fields: Array -): void; - -/** - * Add setter methods to the provided publicAPI for arrays. - * if 'defaultVal' is supplied, shorter arrays will be padded to 'size' with - * 'defaultVal'. - * set{FieldName}From(abc) will copy the content of abc into current field - * without calling modified. - * - * ``` - * set{FieldName}(a, b, c) / set{FieldName}([a, b, c]) / set{FieldName}(new Uint8Array(...)) / set{FieldName}(null) - * set{FieldName}From([a, b, c]) - * ``` - * - * @param publicAPI - * @param model - * @param fieldNames - * @param size - * @param defaultVal - */ -export function setArray( - publicAPI: object, - model: object, - fieldNames: Array, - size: Number, - defaultVal?: any -): void; - -/** - * set/get XXX: add setter and getter for object of type array - * @param publicAPI - * @param model - * @param fieldNames - * @param size - * @param defaultVal - */ -export function setGetArray( - publicAPI: object, - model: object, - fieldNames: Array, - size: Number, - defaultVal?: any -): void; - -/** - * Convert model and publicAPI references to _fieldName into fieldName. - * It renames: - * - model.fieldName into model._fieldName - * - publicAPI.set_fieldName and publicAPI.set_fieldNameFrom into publicAPI.setFieldName and publicAPI.setFieldNameFrom - * - publicAPI.get_fieldName and publicAPI.get_fieldNameByReference into publicAPI.getFieldName and publicAPI.getFieldNameByReference - * @param publicAPI - * @param model - * @param fieldNames List of field names to move to protected, e.g. ['interactor', 'renderWindow'] - * @see get - * @see set - */ -export function moveToProtected( - publicAPI: object, - model: object, - fieldNames: Array -): void; - -/** - * Add algorithm methods onto the provided publicAPI - * - * @param publicAPI object on which methods will be bounds (public) - * @param model object on which data structure will be bounds (protected) - * @param numberOfInputs - * @param numberOfOutputs - */ -export function algo( - publicAPI: object, - model: object, - numberOfInputs: number, - numberOfOutputs: number -): void; - -/** - * Symbols used as return value for callback - */ -export const VOID: Symbol; - -/** - * Symbols used as return value for callback when you want to stop - * any further callback calls after yours. - */ -export const EVENT_ABORT: Symbol; - -export function event( - publicAPI: object, - model: object, - eventName: string -): void; - -/** - * Event callback - * @param args - * @returns symbol to either keep going or interrupt existing callback call stack - */ -export function VtkCallback(...args: any): void | symbol; - -// Example of event(,, 'change') -export interface VtkChangeEvent { - /** - * Call any registered callbacks with the given arguments - * @param args - */ - invokeChange(...args: any): void; - /** - * Execute higher priority callback first - * negative priority use setTimeout(cb, -priority) for later callback - * - * @param VtkCallback - * @param priority (default 0.0) - */ - onChange( - VtkCallback: (...args: any) => void | symbol, - priority?: number - ): vtkSubscription; -} - -// ---------------------------------------------------------------------------- -// newInstance -// ---------------------------------------------------------------------------- - -export type VtkExtend = ( - publicAPI: object, - model: object, - initialValues: object -) => void; - -export function newInstance(extend: VtkExtend, className: string): any; - -// ---------------------------------------------------------------------------- -// Chain function calls -// ---------------------------------------------------------------------------- - -/** - * Create a new closure that will chain the call of any provided methods - * @param fn list of function to call - */ -export function chain(...fn: Array): Function; - -/** - * Test if provided object is an actual vtkObject or not - * @param instance - */ -export function isVtkObject(instance: any): boolean; - -/** - * Traverse an instance tree of vtkObjects - * - * @param instance root of the tree to traverse - * @param extractFunction function used to decorate vtkObject - * @param accumulator (default []) array use to capture decorated by the extractFunction - * @param visitedInstances (default []) array use to capture visitedInstances - * @returns the accumulator is actually returned - */ -export function traverseInstanceTree( - instance: any, - extractFunction: any, - accumulator?: Array, - visitedInstances?: Array -): Array; - -/** - * Returns a function, that, as long as it continues to be invoked, will not - * be triggered. The function will be called after it stops being called for - * N milliseconds. If `immediate` is passed, trigger the function on the - * leading edge, instead of the trailing. - * - * @param func - * @param wait - * @param immediate (default false) - * @returns vtkDebouncedFunction A debounced function that can be called. - * Use .cancel() to clear any pending debounced call. - */ -export function debounce( - func: (...args: any) => any, - wait: number, - immediate?: boolean -): vtkDebouncedFunction; - -/** - * Creates a throttled function that only invokes `func` at most once per - * every `wait` milliseconds. - * - * @param callback - * @param delay - */ -export function throttle( - callback: (...args: any) => any, - delay: number -): (...args: any) => any; - -/** - * keystore(publicAPI, model, initialKeystore) - * - * - initialKeystore: Initial keystore. This can be either a Map or an - * object. - * - * Generated API - * setKey(key, value) : mixed (returns value) - * getKey(key) : mixed - * getAllKeys() : [mixed] - * deleteKey(key) : Boolean - */ -export interface VtkKeyStore { - setKey: (key: string, value: any) => void; - getKey: (key: string) => any; - getAllKeys: () => Array; - deleteKey: (key: string) => void; - clearKeystore: () => void; -} - -/** - * - * @param publicAPI - * @param model - * @param initialKeystore (default {}) - */ -export function keystore( - publicAPI: object, - model: object, - initialKeystore?: object -): void; - -// ---------------------------------------------------------------------------- -// proxy(publicAPI, model, sectionName, propertyUI) -// -// - sectionName: Name of the section for UI -// - propertyUI: List of props with their UI description -// -// Generated API -// getProxyId() : String -// listProxyProperties() : [string] -// updateProxyProperty(name, prop) -// getProxySection() => List of properties for UI generation -// ---------------------------------------------------------------------------- - -export interface VtkProxyManager {} - -export interface VtkProxySection { - id: string; - name: string; - ui: object; - properties: Array; -} - -export interface VtkLink { - /** - * - * @param instance - * @param propertyName - * @param updateMe (default: false) - */ - bind(instance: VtkProxy, propertyName: string, updateMe?: boolean): void; - unbind: (instance: VtkProxy, propertyName: string) => void; - unsubscribe: () => void; - persistent: boolean; -} - -export interface VtkProxy extends VtkKeyStore, vtkObject { - getProxyId(): string; - getProxyGroup(): string; - getProxyName: () => string; - setProxyManager: (pxm: VtkProxyManager) => boolean; - getProxyManager: () => VtkProxyManager; - - updateUI: (ui: object) => void; - listProxyProperties: (groupName: string) => Array; - updateProxyProperty: (propertyName: string, propUI: object) => void; - activate: () => void; - registerPropertyLinkForGC: (otherLink: VtkLink, type: string) => void; - gcPropertyLinks(type: string): void; - - /** - * - * @param id - * @param persistent (default: false) - */ - getPropertyLink(id: string, persistent?: boolean): VtkLink; - - /** - * - * @param groupName (default: ROOT_GROUP_NAME) - */ - getProperties(groupName?: string): Array; - listPropertyNames: () => Array; - getPropertyByName: (name: string) => vtkProperty; - getPropertyDomainByName: (name: string) => vtkPropertyDomain; - - getProxySection: () => VtkProxySection; -} - -export function proxy(publicAPI: object, model: object): void; - -/** - * proxyPropertyMapping(publicAPI, model, map) - * - * ``` - * map = { - * opacity: { modelKey: 'property', property: 'opacity' }, - * } - * ``` - * - * Generated API: - * Elevate set/get methods from internal object stored in the model to current one - * - * @param publicAPI - * @param model - * @param map - */ -export function proxyPropertyMapping( - publicAPI: object, - model: object, - map: object -): void; - -/** - * proxyPropertyState(publicAPI, model, state, defaults) - * - * ``` - * state = { - * representation: { - * 'Surface with edges': { property: { edgeVisibility: true, representation: 2 } }, - * Surface: { property: { edgeVisibility: false, representation: 2 } }, - * Wireframe: { property: { edgeVisibility: false, representation: 1 } }, - * Points: { property: { edgeVisibility: false, representation: 0 } }, - * }, - * } - * - * defaults = { - * representation: 'Surface', - * } - * ``` - * - * Generated API - * get / set Representation ( string ) => push state to various internal objects - * - * @param publicAPI - * @param model - * @param state (default: {}) - * @param defaults (default: {}) - */ -export function proxyPropertyState( - publicAPI: object, - model: object, - state?: object, - defaults?: object -): void; - -// ---------------------------------------------------------------------------- -// From : https://github.com/facebookarchive/fixed-data-table/blob/master/src/vendor_upstream/dom/normalizeWheel.js -// -// -// Copyright (c) 2015, Facebook, Inc. -// All rights reserved. -// -// This source code is licensed under the BSD-style license found in the -// LICENSE file in the root directory of this source tree. An additional grant -// of patent rights can be found in the PATENTS file in the same directory. -// -// -// Mouse wheel (and 2-finger trackpad) support on the web sucks. It is -// complicated, thus this doc is long and (hopefully) detailed enough to answer -// your questions. -// -// If you need to react to the mouse wheel in a predictable way, this code is -// like your bestest friend.// hugs// -// -// As of today, there are 4 DOM event types you can listen to: -// -// 'wheel' -- Chrome(31+), FF(17+), IE(9+) -// 'mousewheel' -- Chrome, IE(6+), Opera, Safari -// 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother! -// 'DOMMouseScroll' -- FF(0.9.7+) since 2003 -// -// So what to do? The is the best: -// -// normalizeWheel.getEventType(); -// -// In your event callback, use this code to get sane interpretation of the -// deltas. This code will return an object with properties: -// -// spinX -- normalized spin speed (use for zoom) - x plane -// spinY -- " - y plane -// pixelX -- normalized distance (to pixels) - x plane -// pixelY -- " - y plane -// -// Wheel values are provided by the browser assuming you are using the wheel to -// scroll a web page by a number of lines or pixels (or pages). Values can vary -// significantly on different platforms and browsers, forgetting that you can -// scroll at different speeds. Some devices (like trackpads) emit more events -// at smaller increments with fine granularity, and some emit massive jumps with -// linear speed or acceleration. -// -// This code does its best to normalize the deltas for you: -// -// - spin is trying to normalize how far the wheel was spun (or trackpad -// dragged). This is super useful for zoom support where you want to -// throw away the chunky scroll steps on the PC and make those equal to -// the slow and smooth tiny steps on the Mac. Key data: This code tries to -// resolve a single slow step on a wheel to 1. -// -// - pixel is normalizing the desired scroll delta in pixel units. You'll -// get the crazy differences between browsers, but at least it'll be in -// pixels! -// -// - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This -// should translate to positive value zooming IN, negative zooming OUT. -// This matches the newer 'wheel' event. -// -// Why are there spinX, spinY (or pixels)? -// -// - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn -// with a mouse. It results in side-scrolling in the browser by default. -// -// - spinY is what you expect -- it's the classic axis of a mouse wheel. -// -// - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and -// probably is by browsers in conjunction with fancy 3D controllers .. but -// you know. -// -// Implementation info: -// -// Examples of 'wheel' event if you scroll slowly (down) by one step with an -// average mouse: -// -// OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120) -// OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12) -// OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A) -// Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120) -// Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120) -// -// On the trackpad: -// -// OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6) -// OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A) -// -// On other/older browsers.. it's more complicated as there can be multiple and -// also missing delta values. -// -// The 'wheel' event is more standard: -// -// http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents -// -// The basics is that it includes a unit, deltaMode (pixels, lines, pages), and -// deltaX, deltaY and deltaZ. Some browsers provide other values to maintain -// backward compatibility with older events. Those other values help us -// better normalize spin speed. Example of what the browsers provide: -// -// | event.wheelDelta | event.detail -// ------------------+------------------+-------------- -// Safari v5/OS X | -120 | 0 -// Safari v5/Win7 | -120 | 0 -// Chrome v17/OS X | -120 | 0 -// Chrome v17/Win7 | -120 | 0 -// IE9/Win7 | -120 | undefined -// Firefox v4/OS X | undefined | 1 -// Firefox v4/Win7 | undefined | 3 -// -// ---------------------------------------------------------------------------- - -export interface VtkNormalizedWheelEvent { - spinX: number; - spinY: number; - pixelX: number; - pixelY: number; -} - -export function normalizeWheel(wheelEvent: object): VtkNormalizedWheelEvent; - -// ---------------------------------------------------------------------------- -// Default export -// ---------------------------------------------------------------------------- - -declare const Macro: { - algo: typeof algo; - capitalize: typeof capitalize; - chain: typeof chain; - debounce: typeof debounce; - enumToString: typeof enumToString; - event: typeof event; - EVENT_ABORT: typeof EVENT_ABORT; - formatBytesToProperUnit: typeof formatBytesToProperUnit; - formatNumbersWithThousandSeparator: typeof formatNumbersWithThousandSeparator; - get: typeof get; - getArray: typeof getArray; - getCurrentGlobalMTime(): Number; - getStateArrayMapFunc: typeof getStateArrayMapFunc; - isVtkObject: typeof isVtkObject; - keystore: typeof keystore; - measurePromiseExecution: typeof measurePromiseExecution; - moveToProtected: typeof moveToProtected; - newInstance: typeof newInstance; - normalizeWheel: typeof normalizeWheel; - obj: typeof obj; - proxy: typeof proxy; - proxyPropertyMapping: typeof proxyPropertyMapping; - proxyPropertyState: typeof proxyPropertyState; - safeArrays: typeof safeArrays; - set: typeof set; - setArray: typeof setArray; - setGet: typeof setGet; - setGetArray: typeof setGetArray; - setImmediate: typeof setImmediateVTK; - setLoggerFunction: typeof setLoggerFunction; - throttle: typeof throttle; - traverseInstanceTree: typeof traverseInstanceTree; - TYPED_ARRAYS: typeof TYPED_ARRAYS; - uncapitalize: typeof uncapitalize; - VOID: typeof VOID; - vtkDebugMacro: typeof vtkDebugMacro; - vtkErrorMacro: typeof vtkErrorMacro; - vtkInfoMacro: typeof vtkInfoMacro; - vtkLogMacro: typeof vtkLogMacro; - vtkOnceErrorMacro: typeof vtkOnceErrorMacro; - vtkWarningMacro: typeof vtkWarningMacro; -}; - -export default Macro; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/macros.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/macros.js deleted file mode 100644 index 3354c36f..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/macros.js +++ /dev/null @@ -1,4 +0,0 @@ -import 'fast-deep-equal'; -import './vtk.js'; -import './Common/Core/ClassHierarchy.js'; -export { H as EVENT_ABORT, T as TYPED_ARRAYS, V as VOID, _ as _capitalize, d as algo, q as capitalize, h as chain, J as debounce, m as default, f as event, C as formatBytesToProperUnit, D as formatNumbersWithThousandSeparator, g as get, k as getArray, I as isVtkObject, L as keystore, F as measurePromiseExecution, i as moveToProtected, n as newInstance, a as newTypedArray, b as newTypedArrayFrom, N as normalizeWheel, o as obj, p as proxy, j as proxyPropertyMapping, M as proxyPropertyState, u as requiredParam, s as set, G as setArray, e as setGet, l as setGetArray, E as setImmediateVTK, w as setLoggerFunction, K as throttle, t as traverseInstanceTree, B as uncapitalize, z as vtkDebugMacro, r as vtkErrorMacro, y as vtkInfoMacro, x as vtkLogMacro, A as vtkOnceErrorMacro, v as vtkWarningMacro } from './macros2.js'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/macros2.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/macros2.js deleted file mode 100644 index 64e47502..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/macros2.js +++ /dev/null @@ -1,1710 +0,0 @@ -import DeepEqual from 'fast-deep-equal'; -import vtk, { vtkGlobal } from './vtk.js'; -import ClassHierarchy from './Common/Core/ClassHierarchy.js'; - -/** - * macros.js is the old macro.js. - * The name change is so we do not get eaten by babel-plugin-macros. - */ -let globalMTime = 0; -const requiredParam = name => { - throw new Error(`Named parameter '${name}' is missing`); -}; -const VOID = Symbol('void'); -function getCurrentGlobalMTime() { - return globalMTime; -} - -// ---------------------------------------------------------------------------- -// Logging function calls -// ---------------------------------------------------------------------------- -/* eslint-disable no-prototype-builtins */ - -const fakeConsole = {}; -function noOp() {} -const consoleMethods = ['log', 'debug', 'info', 'warn', 'error', 'time', 'timeEnd', 'group', 'groupEnd']; -consoleMethods.forEach(methodName => { - fakeConsole[methodName] = noOp; -}); -vtkGlobal.console = console.hasOwnProperty('log') ? console : fakeConsole; -const loggerFunctions = { - debug: noOp, - // Don't print debug by default - error: vtkGlobal.console.error || noOp, - info: vtkGlobal.console.info || noOp, - log: vtkGlobal.console.log || noOp, - warn: vtkGlobal.console.warn || noOp -}; -function setLoggerFunction(name, fn) { - if (loggerFunctions[name]) { - loggerFunctions[name] = fn || noOp; - } -} -function vtkLogMacro() { - loggerFunctions.log(...arguments); -} -function vtkInfoMacro() { - loggerFunctions.info(...arguments); -} -function vtkDebugMacro() { - loggerFunctions.debug(...arguments); -} -function vtkErrorMacro() { - loggerFunctions.error(...arguments); -} -function vtkWarningMacro() { - loggerFunctions.warn(...arguments); -} -const ERROR_ONCE_MAP = {}; -function vtkOnceErrorMacro(str) { - if (!ERROR_ONCE_MAP[str]) { - loggerFunctions.error(str); - ERROR_ONCE_MAP[str] = true; - } -} - -// ---------------------------------------------------------------------------- -// TypedArray -// ---------------------------------------------------------------------------- - -const TYPED_ARRAYS = Object.create(null); -TYPED_ARRAYS.Float32Array = Float32Array; -TYPED_ARRAYS.Float64Array = Float64Array; -TYPED_ARRAYS.Uint8Array = Uint8Array; -TYPED_ARRAYS.Int8Array = Int8Array; -TYPED_ARRAYS.Uint16Array = Uint16Array; -TYPED_ARRAYS.Int16Array = Int16Array; -TYPED_ARRAYS.Uint32Array = Uint32Array; -TYPED_ARRAYS.Int32Array = Int32Array; -TYPED_ARRAYS.Uint8ClampedArray = Uint8ClampedArray; -try { - TYPED_ARRAYS.BigInt64Array = BigInt64Array; - TYPED_ARRAYS.BigUint64Array = BigUint64Array; -} catch { - // ignore -} -function newTypedArray(type) { - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - return new (TYPED_ARRAYS[type] || Float64Array)(...args); -} -function newTypedArrayFrom(type) { - for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; - } - return (TYPED_ARRAYS[type] || Float64Array).from(...args); -} - -// ---------------------------------------------------------------------------- -// capitilize provided string -// ---------------------------------------------------------------------------- - -function capitalize(str) { - return str.charAt(0).toUpperCase() + str.slice(1); -} -function _capitalize(str) { - return capitalize(str[0] === '_' ? str.slice(1) : str); -} -function uncapitalize(str) { - return str.charAt(0).toLowerCase() + str.slice(1); -} - -// ---------------------------------------------------------------------------- -// Convert byte size into a well formatted string -// ---------------------------------------------------------------------------- - -function formatBytesToProperUnit(size) { - let precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2; - let chunkSize = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1000; - const units = ['TB', 'GB', 'MB', 'KB']; - let value = Number(size); - let currentUnit = 'B'; - while (value > chunkSize) { - value /= chunkSize; - currentUnit = units.pop(); - } - return `${value.toFixed(precision)} ${currentUnit}`; -} - -// ---------------------------------------------------------------------------- -// Convert thousand number with proper separator -// ---------------------------------------------------------------------------- - -function formatNumbersWithThousandSeparator(n) { - let separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' '; - const sections = []; - let size = n; - while (size > 1000) { - sections.push(`000${size % 1000}`.slice(-3)); - size = Math.floor(size / 1000); - } - if (size > 0) { - sections.push(size); - } - sections.reverse(); - return sections.join(separator); -} - -// ---------------------------------------------------------------------------- -// Array helper -// ---------------------------------------------------------------------------- - -function safeArrays(model) { - Object.keys(model).forEach(key => { - if (Array.isArray(model[key])) { - model[key] = [].concat(model[key]); - } - }); -} -function isTypedArray(value) { - return Object.values(TYPED_ARRAYS).some(ctor => value instanceof ctor); -} - -// ---------------------------------------------------------------------------- -// shallow equals -// ---------------------------------------------------------------------------- - -function shallowEquals(a, b) { - if (a === b) { - return true; - } - if (Array.isArray(a) && Array.isArray(b)) { - if (a.length !== b.length) { - return false; - } - for (let i = 0; i < a.length; i++) { - if (a[i] !== b[i]) { - return false; - } - } - return true; - } - return false; -} - -// ---------------------------------------------------------------------------- - -function enumToString(e, value) { - return Object.keys(e).find(key => e[key] === value); -} -function getStateArrayMapFunc(item) { - if (item && item.isA) { - return item.getState(); - } - return item; -} - -// ---------------------------------------------------------------------------- -// setImmediate -// ---------------------------------------------------------------------------- - -function setImmediateVTK(fn) { - setTimeout(fn, 0); -} - -// ---------------------------------------------------------------------------- -// measurePromiseExecution -// -// Measures the time it takes for a promise to finish from -// the time this function is invoked. -// The callback receives the time it took for the promise to resolve or reject. -// ---------------------------------------------------------------------------- - -function measurePromiseExecution(promise, callback) { - const start = performance.now(); - promise.finally(() => { - const delta = performance.now() - start; - callback(delta); - }); -} - -// ---------------------------------------------------------------------------- -// vtkObject: modified(), onModified(callback), delete() -// ---------------------------------------------------------------------------- - -function obj() { - let publicAPI = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - let model = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - // Ensure each instance as a unique ref of array - safeArrays(model); - const callbacks = []; - if (!Number.isInteger(model.mtime)) { - model.mtime = ++globalMTime; - } - if (!('classHierarchy' in model)) { - model.classHierarchy = new ClassHierarchy('vtkObject'); - } else if (!(model.classHierarchy instanceof ClassHierarchy)) { - const hierarchy = new ClassHierarchy(); - for (let i = 0; i < model.classHierarchy.length; i++) { - hierarchy.push(model.classHierarchy[i]); - } - model.classHierarchy = hierarchy; - } - function off(index) { - callbacks[index] = null; - } - function on(index) { - function unsubscribe() { - off(index); - } - return Object.freeze({ - unsubscribe - }); - } - publicAPI.isDeleted = () => !!model.deleted; - publicAPI.modified = otherMTime => { - if (model.deleted) { - vtkErrorMacro('instance deleted - cannot call any method'); - return; - } - if (otherMTime && otherMTime < publicAPI.getMTime()) { - return; - } - model.mtime = ++globalMTime; - callbacks.forEach(callback => callback && callback(publicAPI)); - }; - publicAPI.onModified = callback => { - if (model.deleted) { - vtkErrorMacro('instance deleted - cannot call any method'); - return null; - } - const index = callbacks.length; - callbacks.push(callback); - return on(index); - }; - publicAPI.getMTime = () => model.mtime; - publicAPI.isA = className => { - let count = model.classHierarchy.length; - // we go backwards as that is more likely for - // early termination - while (count--) { - if (model.classHierarchy[count] === className) { - return true; - } - } - return false; - }; - publicAPI.getClassName = function () { - let depth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - return model.classHierarchy[model.classHierarchy.length - 1 - depth]; - }; - publicAPI.set = function () { - let map = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - let noWarning = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - let noFunction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; - let ret = false; - Object.keys(map).forEach(name => { - const fn = noFunction ? null : publicAPI[`set${capitalize(name)}`]; - if (fn && Array.isArray(map[name]) && fn.length > 1) { - ret = fn(...map[name]) || ret; - } else if (fn) { - ret = fn(map[name]) || ret; - } else { - // Set data on model directly - if (['mtime'].indexOf(name) === -1 && !noWarning) { - vtkWarningMacro(`Warning: Set value to model directly ${name}, ${map[name]}`); - } - ret = model[name] !== map[name] || ret; - model[name] = map[name]; - } - }); - return ret; - }; - publicAPI.get = function () { - for (var _len3 = arguments.length, list = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { - list[_key3] = arguments[_key3]; - } - if (!list.length) { - return model; - } - const subset = {}; - list.forEach(name => { - subset[name] = model[name]; - }); - return subset; - }; - publicAPI.getReferenceByName = val => model[val]; - publicAPI.delete = () => { - Object.keys(model).forEach(field => delete model[field]); - callbacks.forEach((el, index) => off(index)); - - // Flag the instance being deleted - model.deleted = true; - }; - - // Add serialization support - publicAPI.getState = () => { - if (model.deleted) { - return null; - } - const jsonArchive = { - ...model, - vtkClass: publicAPI.getClassName() - }; - - // Convert every vtkObject to its serializable form - Object.keys(jsonArchive).forEach(keyName => { - if (jsonArchive[keyName] === null || jsonArchive[keyName] === undefined || keyName[0] === '_' // protected members start with _ - ) { - delete jsonArchive[keyName]; - } else if (jsonArchive[keyName].isA) { - jsonArchive[keyName] = jsonArchive[keyName].getState(); - } else if (Array.isArray(jsonArchive[keyName])) { - jsonArchive[keyName] = jsonArchive[keyName].map(getStateArrayMapFunc); - } else if (isTypedArray(jsonArchive[keyName])) { - jsonArchive[keyName] = Array.from(jsonArchive[keyName]); - } - }); - - // Sort resulting object by key name - const sortedObj = {}; - Object.keys(jsonArchive).sort().forEach(name => { - sortedObj[name] = jsonArchive[name]; - }); - - // Remove mtime - if (sortedObj.mtime) { - delete sortedObj.mtime; - } - return sortedObj; - }; - - // Add shallowCopy(otherInstance) support - publicAPI.shallowCopy = function (other) { - let debug = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - if (other.getClassName() !== publicAPI.getClassName()) { - throw new Error(`Cannot ShallowCopy ${other.getClassName()} into ${publicAPI.getClassName()}`); - } - const otherModel = other.get(); - const keyList = Object.keys(model).sort(); - const otherKeyList = Object.keys(otherModel).sort(); - otherKeyList.forEach(key => { - const keyIdx = keyList.indexOf(key); - if (keyIdx === -1) { - if (debug) { - vtkDebugMacro(`add ${key} in shallowCopy`); - } - } else { - keyList.splice(keyIdx, 1); - } - model[key] = otherModel[key]; - }); - if (keyList.length && debug) { - vtkDebugMacro(`Untouched keys: ${keyList.join(', ')}`); - } - publicAPI.modified(); - }; - - // This function will get called when one invoke JSON.stringify(vtkObject) - // JSON.stringify will only stringify the return value of this function - publicAPI.toJSON = function vtkObjToJSON() { - return publicAPI.getState(); - }; - - // Allow usage as decorator - return publicAPI; -} - -// ---------------------------------------------------------------------------- -// getXXX: add getters -// ---------------------------------------------------------------------------- - -const objectGetterMap = { - object(publicAPI, model, field) { - return function getter() { - return { - ...model[field.name] - }; - }; - } -}; -function get(publicAPI, model, fieldNames) { - fieldNames.forEach(field => { - if (typeof field === 'object') { - const getter = objectGetterMap[field.type]; - if (getter) { - publicAPI[`get${_capitalize(field.name)}`] = getter(publicAPI, model, field); - } else { - publicAPI[`get${_capitalize(field.name)}`] = () => model[field.name]; - } - } else { - publicAPI[`get${_capitalize(field)}`] = () => model[field]; - } - }); -} - -// ---------------------------------------------------------------------------- -// setXXX: add setters -// ---------------------------------------------------------------------------- - -const objectSetterMap = { - enum(publicAPI, model, field) { - const onChanged = `_on${_capitalize(field.name)}Changed`; - return value => { - if (typeof value === 'string') { - if (field.enum[value] !== undefined) { - if (model[field.name] !== field.enum[value]) { - model[field.name] = field.enum[value]; - publicAPI.modified(); - return true; - } - return false; - } - vtkErrorMacro(`Set Enum with invalid argument ${field}, ${value}`); - throw new RangeError('Set Enum with invalid string argument'); - } - if (typeof value === 'number') { - if (model[field.name] !== value) { - if (Object.keys(field.enum).map(key => field.enum[key]).indexOf(value) !== -1) { - const previousValue = model[field.name]; - model[field.name] = value; - model[onChanged]?.(publicAPI, model, value, previousValue); - publicAPI.modified(); - return true; - } - vtkErrorMacro(`Set Enum outside numeric range ${field}, ${value}`); - throw new RangeError('Set Enum outside numeric range'); - } - return false; - } - vtkErrorMacro(`Set Enum with invalid argument (String/Number) ${field}, ${value}`); - throw new TypeError('Set Enum with invalid argument (String/Number)'); - }; - }, - object(publicAPI, model, field) { - if (field.params?.length === 1) { - vtkWarningMacro('Setter of type "object" with a single "param" field is not supported'); - } - const onChanged = `_on${_capitalize(field.name)}Changed`; - return function () { - for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) { - args[_key4] = arguments[_key4]; - } - let value; - if (args.length > 1 && field.params?.length) { - value = field.params.reduce((acc, prop, idx) => Object.assign(acc, { - [prop]: args[idx] - }), {}); - } else { - value = args[0]; - } - if (!DeepEqual(model[field.name], value)) { - const previousValue = model[field.name]; - model[field.name] = value; - model[onChanged]?.(publicAPI, model, value, previousValue); - publicAPI.modified(); - return true; - } - return false; - }; - } -}; -function findSetter(field) { - if (typeof field === 'object') { - const fn = objectSetterMap[field.type]; - if (fn) { - return (publicAPI, model) => fn(publicAPI, model, field); - } - vtkErrorMacro(`No setter for field ${field}`); - throw new TypeError('No setter for field'); - } - return function getSetter(publicAPI, model) { - const onChanged = `_on${_capitalize(field)}Changed`; - return function setter(value) { - if (model.deleted) { - vtkErrorMacro('instance deleted - cannot call any method'); - return false; - } - if (model[field] !== value) { - const previousValue = model[field.name]; - model[field] = value; - model[onChanged]?.(publicAPI, model, value, previousValue); - publicAPI.modified(); - return true; - } - return false; - }; - }; -} -function set(publicAPI, model, fields) { - fields.forEach(field => { - if (typeof field === 'object') { - publicAPI[`set${_capitalize(field.name)}`] = findSetter(field)(publicAPI, model); - } else { - publicAPI[`set${_capitalize(field)}`] = findSetter(field)(publicAPI, model); - } - }); -} - -// ---------------------------------------------------------------------------- -// set/get XXX: add both setters and getters -// ---------------------------------------------------------------------------- - -function setGet(publicAPI, model, fieldNames) { - get(publicAPI, model, fieldNames); - set(publicAPI, model, fieldNames); -} - -// ---------------------------------------------------------------------------- -// getXXX: add getters for object of type array with copy to be safe -// getXXXByReference: add getters for object of type array without copy -// ---------------------------------------------------------------------------- - -function getArray(publicAPI, model, fieldNames) { - fieldNames.forEach(field => { - publicAPI[`get${_capitalize(field)}`] = () => model[field] ? Array.from(model[field]) : model[field]; - publicAPI[`get${_capitalize(field)}ByReference`] = () => model[field]; - }); -} - -// ---------------------------------------------------------------------------- -// setXXX: add setter for object of type array -// if 'defaultVal' is supplied, shorter arrays will be padded to 'size' with 'defaultVal' -// set...From: fast path to copy the content of an array to the current one without call to modified. -// ---------------------------------------------------------------------------- - -function setArray(publicAPI, model, fieldNames, size) { - let defaultVal = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : undefined; - fieldNames.forEach(field => { - if (model[field] && size && model[field].length !== size) { - throw new RangeError(`Invalid initial number of values for array (${field})`); - } - const onChanged = `_on${_capitalize(field)}Changed`; - publicAPI[`set${_capitalize(field)}`] = function () { - if (model.deleted) { - vtkErrorMacro('instance deleted - cannot call any method'); - return false; - } - for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) { - args[_key5] = arguments[_key5]; - } - let array = args; - let changeDetected; - let needCopy = false; - // allow null or an array to be passed as a single arg. - if (array.length === 1 && (array[0] == null || array[0].length >= 0)) { - /* eslint-disable prefer-destructuring */ - array = array[0]; - /* eslint-enable prefer-destructuring */ - needCopy = true; - } - if (array == null) { - changeDetected = model[field] !== array; - } else { - if (size && array.length !== size) { - if (array.length < size && defaultVal !== undefined) { - array = Array.from(array); - needCopy = false; - while (array.length < size) array.push(defaultVal); - } else { - throw new RangeError(`Invalid number of values for array setter (${field})`); - } - } - changeDetected = model[field] == null || model[field].length !== array.length; - for (let i = 0; !changeDetected && i < array.length; ++i) { - changeDetected = model[field][i] !== array[i]; - } - if (changeDetected && needCopy) { - array = Array.from(array); - } - } - if (changeDetected) { - const previousValue = model[field.name]; - model[field] = array; - model[onChanged]?.(publicAPI, model, array, previousValue); - publicAPI.modified(); - } - return changeDetected; - }; - publicAPI[`set${_capitalize(field)}From`] = otherArray => { - const target = model[field]; - otherArray.forEach((v, i) => { - target[i] = v; - }); - }; - }); -} - -// ---------------------------------------------------------------------------- -// set/get XXX: add setter and getter for object of type array -// ---------------------------------------------------------------------------- - -function setGetArray(publicAPI, model, fieldNames, size) { - let defaultVal = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : undefined; - getArray(publicAPI, model, fieldNames); - setArray(publicAPI, model, fieldNames, size, defaultVal); -} -function moveToProtected(publicAPI, model, fieldNames) { - for (let i = 0; i < fieldNames.length; i++) { - const fieldName = fieldNames[i]; - if (model[fieldName] !== undefined) { - model[`_${fieldName}`] = model[fieldName]; - delete model[fieldName]; - } - } -} -// ---------------------------------------------------------------------------- -// vtkAlgorithm: setInputData(), setInputConnection(), getOutputData(), getOutputPort() -// ---------------------------------------------------------------------------- - -function algo(publicAPI, model, numberOfInputs, numberOfOutputs) { - if (model.inputData) { - model.inputData = model.inputData.map(vtk); - } else { - model.inputData = []; - } - if (model.inputConnection) { - model.inputConnection = model.inputConnection.map(vtk); - } else { - model.inputConnection = []; - } - if (model.output) { - model.output = model.output.map(vtk); - } else { - model.output = []; - } - if (model.inputArrayToProcess) { - model.inputArrayToProcess = model.inputArrayToProcess.map(vtk); - } else { - model.inputArrayToProcess = []; - } - - // Cache the argument for later manipulation - model.numberOfInputs = numberOfInputs; - - // Methods - function setInputData(dataset) { - let port = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - if (model.deleted) { - vtkErrorMacro('instance deleted - cannot call any method'); - return; - } - if (port >= model.numberOfInputs) { - vtkErrorMacro(`algorithm ${publicAPI.getClassName()} only has ${model.numberOfInputs} input ports. To add more input ports, use addInputData()`); - return; - } - if (model.inputData[port] !== dataset || model.inputConnection[port]) { - model.inputData[port] = dataset; - model.inputConnection[port] = null; - if (publicAPI.modified) { - publicAPI.modified(); - } - } - } - function getInputData() { - let port = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - if (model.inputConnection[port]) { - model.inputData[port] = model.inputConnection[port](); - } - return model.inputData[port]; - } - function setInputConnection(outputPort) { - let port = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - if (model.deleted) { - vtkErrorMacro('instance deleted - cannot call any method'); - return; - } - if (port >= model.numberOfInputs) { - let msg = `algorithm ${publicAPI.getClassName()} only has `; - msg += `${model.numberOfInputs}`; - msg += ' input ports. To add more input ports, use addInputConnection()'; - vtkErrorMacro(msg); - return; - } - model.inputData[port] = null; - model.inputConnection[port] = outputPort; - } - function getInputConnection() { - let port = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - return model.inputConnection[port]; - } - function getPortToFill() { - let portToFill = model.numberOfInputs; - while (portToFill && !model.inputData[portToFill - 1] && !model.inputConnection[portToFill - 1]) { - portToFill--; - } - if (portToFill === model.numberOfInputs) { - model.numberOfInputs++; - } - return portToFill; - } - function addInputConnection(outputPort) { - if (model.deleted) { - vtkErrorMacro('instance deleted - cannot call any method'); - return; - } - setInputConnection(outputPort, getPortToFill()); - } - function addInputData(dataset) { - if (model.deleted) { - vtkErrorMacro('instance deleted - cannot call any method'); - return; - } - setInputData(dataset, getPortToFill()); - } - function getOutputData() { - let port = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - if (model.deleted) { - vtkErrorMacro('instance deleted - cannot call any method'); - return null; - } - if (publicAPI.shouldUpdate()) { - publicAPI.update(); - } - return model.output[port]; - } - publicAPI.shouldUpdate = () => { - const localMTime = publicAPI.getMTime(); - let minOutputMTime = Infinity; - let count = numberOfOutputs; - while (count--) { - if (!model.output[count] || model.output[count].isDeleted()) { - return true; - } - const mt = model.output[count].getMTime(); - if (mt < localMTime) { - return true; - } - if (mt < minOutputMTime) { - minOutputMTime = mt; - } - } - count = model.numberOfInputs; - while (count--) { - if (model.inputConnection[count]?.filter.shouldUpdate() || publicAPI.getInputData(count)?.getMTime() > minOutputMTime) { - return true; - } - } - return false; - }; - function getOutputPort() { - let port = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; - const outputPortAccess = () => getOutputData(port); - // Add reference to filter - outputPortAccess.filter = publicAPI; - return outputPortAccess; - } - - // Handle input if needed - if (model.numberOfInputs) { - // Reserve inputs - let count = model.numberOfInputs; - while (count--) { - model.inputData.push(null); - model.inputConnection.push(null); - } - - // Expose public methods - publicAPI.setInputData = setInputData; - publicAPI.setInputConnection = setInputConnection; - publicAPI.addInputData = addInputData; - publicAPI.addInputConnection = addInputConnection; - publicAPI.getInputData = getInputData; - publicAPI.getInputConnection = getInputConnection; - } - if (numberOfOutputs) { - publicAPI.getOutputData = getOutputData; - publicAPI.getOutputPort = getOutputPort; - } - publicAPI.update = () => { - const ins = []; - if (model.numberOfInputs) { - let count = 0; - while (count < model.numberOfInputs) { - ins[count] = publicAPI.getInputData(count); - count++; - } - } - if (publicAPI.requestData && !publicAPI.isDeleted() && publicAPI.shouldUpdate()) { - publicAPI.requestData(ins, model.output); - } - }; - publicAPI.getNumberOfInputPorts = () => model.numberOfInputs; - publicAPI.getNumberOfOutputPorts = () => numberOfOutputs || model.output.length; - publicAPI.getInputArrayToProcess = inputPort => { - const arrayDesc = model.inputArrayToProcess[inputPort]; - const ds = model.inputData[inputPort]; - if (arrayDesc && ds) { - return ds[`get${arrayDesc.fieldAssociation}`]().getArray(arrayDesc.arrayName); - } - return null; - }; - publicAPI.setInputArrayToProcess = function (inputPort, arrayName, fieldAssociation) { - let attributeType = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'Scalars'; - while (model.inputArrayToProcess.length < inputPort) { - model.inputArrayToProcess.push(null); - } - model.inputArrayToProcess[inputPort] = { - arrayName, - fieldAssociation, - attributeType - }; - }; -} - -// ---------------------------------------------------------------------------- -// Event handling: onXXX(callback), invokeXXX(args...) -// ---------------------------------------------------------------------------- - -const EVENT_ABORT = Symbol('Event abort'); -function event(publicAPI, model, eventName) { - const callbacks = []; - const previousDelete = publicAPI.delete; - let curCallbackID = 1; - function off(callbackID) { - for (let i = 0; i < callbacks.length; ++i) { - const [cbID] = callbacks[i]; - if (cbID === callbackID) { - callbacks.splice(i, 1); - return; - } - } - } - function on(callbackID) { - function unsubscribe() { - off(callbackID); - } - return Object.freeze({ - unsubscribe - }); - } - function invoke() { - if (model.deleted) { - vtkErrorMacro('instance deleted - cannot call any method'); - return; - } - /* eslint-disable prefer-rest-params */ - // Go through a copy of the callbacks array in case new callbacks - // get prepended within previous callbacks - const currentCallbacks = callbacks.slice(); - for (let index = 0; index < currentCallbacks.length; ++index) { - const [, cb, priority] = currentCallbacks[index]; - if (!cb) { - continue; // eslint-disable-line - } - - if (priority < 0) { - setTimeout(() => cb.apply(publicAPI, arguments), 1 - priority); - } else { - // Abort only if the callback explicitly returns false - const continueNext = cb.apply(publicAPI, arguments); - if (continueNext === EVENT_ABORT) { - break; - } - } - } - /* eslint-enable prefer-rest-params */ - } - - publicAPI[`invoke${_capitalize(eventName)}`] = invoke; - publicAPI[`on${_capitalize(eventName)}`] = function (callback) { - let priority = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.0; - if (!callback.apply) { - console.error(`Invalid callback for event ${eventName}`); - return null; - } - if (model.deleted) { - vtkErrorMacro('instance deleted - cannot call any method'); - return null; - } - const callbackID = curCallbackID++; - callbacks.push([callbackID, callback, priority]); - callbacks.sort((cb1, cb2) => cb2[2] - cb1[2]); - return on(callbackID); - }; - publicAPI.delete = () => { - previousDelete(); - callbacks.forEach(_ref => { - let [cbID] = _ref; - return off(cbID); - }); - }; -} - -// ---------------------------------------------------------------------------- -// newInstance -// ---------------------------------------------------------------------------- - -function newInstance(extend, className) { - const constructor = function () { - let initialValues = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - const model = {}; - const publicAPI = {}; - extend(publicAPI, model, initialValues); - return Object.freeze(publicAPI); - }; - - // Register constructor to factory - if (className) { - vtk.register(className, constructor); - } - return constructor; -} - -// ---------------------------------------------------------------------------- -// Chain function calls -// ---------------------------------------------------------------------------- - -function chain() { - for (var _len6 = arguments.length, fn = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) { - fn[_key6] = arguments[_key6]; - } - return function () { - for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) { - args[_key7] = arguments[_key7]; - } - return fn.filter(i => !!i).map(i => i(...args)); - }; -} - -// ---------------------------------------------------------------------------- -// Some utility methods for vtk objects -// ---------------------------------------------------------------------------- - -function isVtkObject(instance) { - return instance && instance.isA && instance.isA('vtkObject'); -} -function traverseInstanceTree(instance, extractFunction) { - let accumulator = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; - let visitedInstances = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : []; - if (isVtkObject(instance)) { - if (visitedInstances.indexOf(instance) >= 0) { - // avoid cycles - return accumulator; - } - visitedInstances.push(instance); - const result = extractFunction(instance); - if (result !== undefined) { - accumulator.push(result); - } - - // Now go through this instance's model - const model = instance.get(); - Object.keys(model).forEach(key => { - const modelObj = model[key]; - if (Array.isArray(modelObj)) { - modelObj.forEach(subObj => { - traverseInstanceTree(subObj, extractFunction, accumulator, visitedInstances); - }); - } else { - traverseInstanceTree(modelObj, extractFunction, accumulator, visitedInstances); - } - }); - } - return accumulator; -} - -// ---------------------------------------------------------------------------- -// Returns a function, that, as long as it continues to be invoked, will not -// be triggered. The function will be called after it stops being called for -// N milliseconds. If `immediate` is passed, trigger the function on the -// leading edge, instead of the trailing. - -function debounce(func, wait, immediate) { - var _this = this; - let timeout; - const debounced = function () { - for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) { - args[_key8] = arguments[_key8]; - } - const context = _this; - const later = () => { - timeout = null; - if (!immediate) { - func.apply(context, args); - } - }; - const callNow = immediate && !timeout; - clearTimeout(timeout); - timeout = setTimeout(later, wait); - if (callNow) { - func.apply(context, args); - } - }; - debounced.cancel = () => clearTimeout(timeout); - return debounced; -} - -// ---------------------------------------------------------------------------- -// Creates a throttled function that only invokes `func` at most once per -// every `wait` milliseconds. - -function throttle(callback, delay) { - let isThrottled = false; - let argsToUse = null; - function next() { - isThrottled = false; - if (argsToUse !== null) { - wrapper(...argsToUse); // eslint-disable-line - argsToUse = null; - } - } - function wrapper() { - for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) { - args[_key9] = arguments[_key9]; - } - if (isThrottled) { - argsToUse = args; - return; - } - isThrottled = true; - callback(...args); - setTimeout(next, delay); - } - return wrapper; -} - -// ---------------------------------------------------------------------------- -// keystore(publicAPI, model, initialKeystore) -// -// - initialKeystore: Initial keystore. This can be either a Map or an -// object. -// -// Generated API -// setKey(key, value) : mixed (returns value) -// getKey(key) : mixed -// getAllKeys() : [mixed] -// deleteKey(key) : Boolean -// ---------------------------------------------------------------------------- - -function keystore(publicAPI, model) { - let initialKeystore = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - model.keystore = Object.assign(model.keystore || {}, initialKeystore); - publicAPI.setKey = (key, value) => { - model.keystore[key] = value; - }; - publicAPI.getKey = key => model.keystore[key]; - publicAPI.getAllKeys = () => Object.keys(model.keystore); - publicAPI.deleteKey = key => delete model.keystore[key]; - publicAPI.clearKeystore = () => publicAPI.getAllKeys().forEach(key => delete model.keystore[key]); -} - -// ---------------------------------------------------------------------------- -// proxy(publicAPI, model, sectionName, propertyUI) -// -// - sectionName: Name of the section for UI -// - propertyUI: List of props with their UI description -// -// Generated API -// getProxyId() : String -// listProxyProperties() : [string] -// updateProxyProperty(name, prop) -// getProxySection() => List of properties for UI generation -// ---------------------------------------------------------------------------- -let nextProxyId = 1; -const ROOT_GROUP_NAME = '__root__'; -function proxy(publicAPI, model) { - // Proxies are keystores - keystore(publicAPI, model); - const parentDelete = publicAPI.delete; - - // getProxyId - model.proxyId = `${nextProxyId++}`; - - // ui handling - model.ui = JSON.parse(JSON.stringify(model.ui || [])); // deep copy - get(publicAPI, model, ['proxyId', 'proxyGroup', 'proxyName']); - setGet(publicAPI, model, ['proxyManager']); - - // group properties - const propertyMap = {}; - const groupChildrenNames = {}; - function registerProperties(descriptionList, currentGroupName) { - if (!groupChildrenNames[currentGroupName]) { - groupChildrenNames[currentGroupName] = []; - } - const childrenNames = groupChildrenNames[currentGroupName]; - for (let i = 0; i < descriptionList.length; i++) { - childrenNames.push(descriptionList[i].name); - propertyMap[descriptionList[i].name] = descriptionList[i]; - if (descriptionList[i].children && descriptionList[i].children.length) { - registerProperties(descriptionList[i].children, descriptionList[i].name); - } - } - } - registerProperties(model.ui, ROOT_GROUP_NAME); - publicAPI.updateUI = ui => { - model.ui = JSON.parse(JSON.stringify(ui || [])); // deep copy - Object.keys(propertyMap).forEach(k => delete propertyMap[k]); - Object.keys(groupChildrenNames).forEach(k => delete groupChildrenNames[k]); - registerProperties(model.ui, ROOT_GROUP_NAME); - publicAPI.modified(); - }; - function listProxyProperties() { - let gName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ROOT_GROUP_NAME; - return groupChildrenNames[gName]; - } - publicAPI.updateProxyProperty = (propertyName, propUI) => { - const prop = propertyMap[propertyName]; - if (prop) { - Object.assign(prop, propUI); - } else { - propertyMap[propertyName] = { - ...propUI - }; - } - }; - publicAPI.activate = () => { - if (model.proxyManager) { - const setActiveMethod = `setActive${_capitalize(publicAPI.getProxyGroup().slice(0, -1))}`; - if (model.proxyManager[setActiveMethod]) { - model.proxyManager[setActiveMethod](publicAPI); - } - } - }; - - // property link - model.propertyLinkSubscribers = {}; - publicAPI.registerPropertyLinkForGC = (otherLink, type) => { - if (!(type in model.propertyLinkSubscribers)) { - model.propertyLinkSubscribers[type] = []; - } - model.propertyLinkSubscribers[type].push(otherLink); - }; - publicAPI.gcPropertyLinks = type => { - const subscribers = model.propertyLinkSubscribers[type] || []; - while (subscribers.length) { - subscribers.pop().unbind(publicAPI); - } - }; - model.propertyLinkMap = {}; - publicAPI.getPropertyLink = function (id) { - let persistent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - if (model.propertyLinkMap[id]) { - return model.propertyLinkMap[id]; - } - let value = null; - const links = []; - let count = 0; - let updateInProgress = false; - function update(source) { - let force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - if (updateInProgress) { - return null; - } - const needUpdate = []; - let sourceLink = null; - count = links.length; - while (count--) { - const link = links[count]; - if (link.instance === source) { - sourceLink = link; - } else { - needUpdate.push(link); - } - } - if (!sourceLink) { - return null; - } - const newValue = sourceLink.instance[`get${_capitalize(sourceLink.propertyName)}`](); - if (!shallowEquals(newValue, value) || force) { - value = newValue; - updateInProgress = true; - while (needUpdate.length) { - const linkToUpdate = needUpdate.pop(); - linkToUpdate.instance.set({ - [linkToUpdate.propertyName]: value - }); - } - updateInProgress = false; - } - if (model.propertyLinkMap[id].persistent) { - model.propertyLinkMap[id].value = newValue; - } - return newValue; - } - function unbind(instance, propertyName) { - const indexToDelete = []; - count = links.length; - while (count--) { - const link = links[count]; - if (link.instance === instance && (link.propertyName === propertyName || propertyName === undefined)) { - link.subscription.unsubscribe(); - indexToDelete.push(count); - } - } - while (indexToDelete.length) { - links.splice(indexToDelete.pop(), 1); - } - } - function bind(instance, propertyName) { - let updateMe = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; - const subscription = instance.onModified(update); - const other = links[0]; - links.push({ - instance, - propertyName, - subscription - }); - if (updateMe) { - if (model.propertyLinkMap[id].persistent && model.propertyLinkMap[id].value !== undefined) { - instance.set({ - [propertyName]: model.propertyLinkMap[id].value - }); - } else if (other) { - update(other.instance, true); - } - } - return { - unsubscribe: () => unbind(instance, propertyName) - }; - } - function unsubscribe() { - while (links.length) { - links.pop().subscription.unsubscribe(); - } - } - const linkHandler = { - bind, - unbind, - unsubscribe, - persistent - }; - model.propertyLinkMap[id] = linkHandler; - return linkHandler; - }; - - // extract values - function getProperties() { - let groupName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ROOT_GROUP_NAME; - const values = []; - const id = model.proxyId; - const propertyNames = listProxyProperties(groupName) || []; - for (let i = 0; i < propertyNames.length; i++) { - const name = propertyNames[i]; - const method = publicAPI[`get${_capitalize(name)}`]; - const value = method ? method() : undefined; - const prop = { - id, - name, - value - }; - const children = getProperties(name); - if (children.length) { - prop.children = children; - } - values.push(prop); - } - return values; - } - publicAPI.listPropertyNames = () => getProperties().map(p => p.name); - publicAPI.getPropertyByName = name => getProperties().find(p => p.name === name); - publicAPI.getPropertyDomainByName = name => (propertyMap[name] || {}).domain; - - // ui section - publicAPI.getProxySection = () => ({ - id: model.proxyId, - name: model.proxyGroup, - ui: model.ui, - properties: getProperties() - }); - - // free resources - publicAPI.delete = () => { - const list = Object.keys(model.propertyLinkMap); - let count = list.length; - while (count--) { - model.propertyLinkMap[list[count]].unsubscribe(); - } - Object.keys(model.propertyLinkSubscribers).forEach(publicAPI.gcPropertyLinks); - parentDelete(); - }; - - // @todo fix infinite recursion due to active source - publicAPI.getState = () => null; - function registerLinks() { - // Allow dynamic registration of links at the application level - if (model.links) { - for (let i = 0; i < model.links.length; i++) { - const { - link, - property, - persistent, - updateOnBind, - type - } = model.links[i]; - if (type === 'application') { - const sLink = model.proxyManager.getPropertyLink(link, persistent); - publicAPI.registerPropertyLinkForGC(sLink, 'application'); - sLink.bind(publicAPI, property, updateOnBind); - } - } - } - } - setImmediateVTK(registerLinks); -} - -// ---------------------------------------------------------------------------- -// proxyPropertyMapping(publicAPI, model, map) -// -// map = { -// opacity: { modelKey: 'property', property: 'opacity' }, -// } -// -// Generated API: -// Elevate set/get methods from internal object stored in the model to current one -// ---------------------------------------------------------------------------- - -function proxyPropertyMapping(publicAPI, model, map) { - const parentDelete = publicAPI.delete; - const subscriptions = []; - const propertyNames = Object.keys(map); - let count = propertyNames.length; - while (count--) { - const propertyName = propertyNames[count]; - const { - modelKey, - property, - modified = true - } = map[propertyName]; - const methodSrc = _capitalize(property); - const methodDst = _capitalize(propertyName); - publicAPI[`get${methodDst}`] = model[modelKey][`get${methodSrc}`]; - publicAPI[`set${methodDst}`] = model[modelKey][`set${methodSrc}`]; - if (modified) { - subscriptions.push(model[modelKey].onModified(publicAPI.modified)); - } - } - publicAPI.delete = () => { - while (subscriptions.length) { - subscriptions.pop().unsubscribe(); - } - parentDelete(); - }; -} - -// ---------------------------------------------------------------------------- -// proxyPropertyState(publicAPI, model, state, defaults) -// -// state = { -// representation: { -// 'Surface with edges': { property: { edgeVisibility: true, representation: 2 } }, -// Surface: { property: { edgeVisibility: false, representation: 2 } }, -// Wireframe: { property: { edgeVisibility: false, representation: 1 } }, -// Points: { property: { edgeVisibility: false, representation: 0 } }, -// }, -// } -// -// defaults = { -// representation: 'Surface', -// } -// -// Generated API -// get / set Representation ( string ) => push state to various internal objects -// ---------------------------------------------------------------------------- - -function proxyPropertyState(publicAPI, model) { - let state = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - let defaults = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; - model.this = publicAPI; - function applyState(map) { - const modelKeys = Object.keys(map); - let count = modelKeys.length; - while (count--) { - const modelKey = modelKeys[count]; - model[modelKey].set(map[modelKey]); - } - } - const modelKeys = Object.keys(defaults); - let count = modelKeys.length; - while (count--) { - // Add default - const key = modelKeys[count]; - model[key] = defaults[key]; - - // Add set method - const mapping = state[key]; - publicAPI[`set${_capitalize(key)}`] = value => { - if (value !== model[key]) { - model[key] = value; - const propValues = mapping[value]; - applyState(propValues); - publicAPI.modified(); - } - }; - } - - // Add getter - if (modelKeys.length) { - get(publicAPI, model, modelKeys); - } -} - -// ---------------------------------------------------------------------------- -// From : https://github.com/facebookarchive/fixed-data-table/blob/master/src/vendor_upstream/dom/normalizeWheel.js -// -// -// Copyright (c) 2015, Facebook, Inc. -// All rights reserved. -// -// This source code is licensed under the BSD-style license found in the -// LICENSE file in the root directory of this source tree. An additional grant -// of patent rights can be found in the PATENTS file in the same directory. -// -// -// Mouse wheel (and 2-finger trackpad) support on the web sucks. It is -// complicated, thus this doc is long and (hopefully) detailed enough to answer -// your questions. -// -// If you need to react to the mouse wheel in a predictable way, this code is -// like your bestest friend.// hugs// -// -// As of today, there are 4 DOM event types you can listen to: -// -// 'wheel' -- Chrome(31+), FF(17+), IE(9+) -// 'mousewheel' -- Chrome, IE(6+), Opera, Safari -// 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother! -// 'DOMMouseScroll' -- FF(0.9.7+) since 2003 -// -// So what to do? The is the best: -// -// normalizeWheel.getEventType(); -// -// In your event callback, use this code to get sane interpretation of the -// deltas. This code will return an object with properties: -// -// spinX -- normalized spin speed (use for zoom) - x plane -// spinY -- " - y plane -// pixelX -- normalized distance (to pixels) - x plane -// pixelY -- " - y plane -// -// Wheel values are provided by the browser assuming you are using the wheel to -// scroll a web page by a number of lines or pixels (or pages). Values can vary -// significantly on different platforms and browsers, forgetting that you can -// scroll at different speeds. Some devices (like trackpads) emit more events -// at smaller increments with fine granularity, and some emit massive jumps with -// linear speed or acceleration. -// -// This code does its best to normalize the deltas for you: -// -// - spin is trying to normalize how far the wheel was spun (or trackpad -// dragged). This is super useful for zoom support where you want to -// throw away the chunky scroll steps on the PC and make those equal to -// the slow and smooth tiny steps on the Mac. Key data: This code tries to -// resolve a single slow step on a wheel to 1. -// -// - pixel is normalizing the desired scroll delta in pixel units. You'll -// get the crazy differences between browsers, but at least it'll be in -// pixels! -// -// - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This -// should translate to positive value zooming IN, negative zooming OUT. -// This matches the newer 'wheel' event. -// -// Why are there spinX, spinY (or pixels)? -// -// - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn -// with a mouse. It results in side-scrolling in the browser by default. -// -// - spinY is what you expect -- it's the classic axis of a mouse wheel. -// -// - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and -// probably is by browsers in conjunction with fancy 3D controllers .. but -// you know. -// -// Implementation info: -// -// Examples of 'wheel' event if you scroll slowly (down) by one step with an -// average mouse: -// -// OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120) -// OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12) -// OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A) -// Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120) -// Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120) -// -// On the trackpad: -// -// OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6) -// OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A) -// -// On other/older browsers.. it's more complicated as there can be multiple and -// also missing delta values. -// -// The 'wheel' event is more standard: -// -// http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents -// -// The basics is that it includes a unit, deltaMode (pixels, lines, pages), and -// deltaX, deltaY and deltaZ. Some browsers provide other values to maintain -// backward compatibility with older events. Those other values help us -// better normalize spin speed. Example of what the browsers provide: -// -// | event.wheelDelta | event.detail -// ------------------+------------------+-------------- -// Safari v5/OS X | -120 | 0 -// Safari v5/Win7 | -120 | 0 -// Chrome v17/OS X | -120 | 0 -// Chrome v17/Win7 | -120 | 0 -// IE9/Win7 | -120 | undefined -// Firefox v4/OS X | undefined | 1 -// Firefox v4/Win7 | undefined | 3 -// -// ---------------------------------------------------------------------------- - -// Reasonable defaults -const PIXEL_STEP = 10; -const LINE_HEIGHT = 40; -const PAGE_HEIGHT = 800; -function normalizeWheel(wheelEvent) { - let sX = 0; // spinX - let sY = 0; // spinY - let pX = 0; // pixelX - let pY = 0; // pixelY - - // Legacy - if ('detail' in wheelEvent) { - sY = wheelEvent.detail; - } - if ('wheelDelta' in wheelEvent) { - sY = -wheelEvent.wheelDelta / 120; - } - if ('wheelDeltaY' in wheelEvent) { - sY = -wheelEvent.wheelDeltaY / 120; - } - if ('wheelDeltaX' in wheelEvent) { - sX = -wheelEvent.wheelDeltaX / 120; - } - - // side scrolling on FF with DOMMouseScroll - if ('axis' in wheelEvent && wheelEvent.axis === wheelEvent.HORIZONTAL_AXIS) { - sX = sY; - sY = 0; - } - pX = sX * PIXEL_STEP; - pY = sY * PIXEL_STEP; - if ('deltaY' in wheelEvent) { - pY = wheelEvent.deltaY; - } - if ('deltaX' in wheelEvent) { - pX = wheelEvent.deltaX; - } - if ((pX || pY) && wheelEvent.deltaMode) { - if (wheelEvent.deltaMode === 1) { - // delta in LINE units - pX *= LINE_HEIGHT; - pY *= LINE_HEIGHT; - } else { - // delta in PAGE units - pX *= PAGE_HEIGHT; - pY *= PAGE_HEIGHT; - } - } - - // Fall-back if spin cannot be determined - if (pX && !sX) { - sX = pX < 1 ? -1 : 1; - } - if (pY && !sY) { - sY = pY < 1 ? -1 : 1; - } - return { - spinX: sX, - spinY: sY || sX, - pixelX: pX, - pixelY: pY || pX - }; -} - -// ---------------------------------------------------------------------------- -// Default export -// ---------------------------------------------------------------------------- - -var macro = { - algo, - capitalize, - chain, - debounce, - enumToString, - event, - EVENT_ABORT, - formatBytesToProperUnit, - formatNumbersWithThousandSeparator, - get, - getArray, - getCurrentGlobalMTime, - getStateArrayMapFunc, - isVtkObject, - keystore, - measurePromiseExecution, - moveToProtected, - newInstance, - newTypedArray, - newTypedArrayFrom, - normalizeWheel, - obj, - proxy, - proxyPropertyMapping, - proxyPropertyState, - safeArrays, - set, - setArray, - setGet, - setGetArray, - setImmediate: setImmediateVTK, - setLoggerFunction, - throttle, - traverseInstanceTree, - TYPED_ARRAYS, - // deprecated todo remove on breaking API revision - uncapitalize, - VOID, - vtkDebugMacro, - vtkErrorMacro, - vtkInfoMacro, - vtkLogMacro, - vtkOnceErrorMacro, - vtkWarningMacro, - // vtk.js internal use - objectSetterMap, - requiredParam -}; - -var macro$1 = /*#__PURE__*/Object.freeze({ - __proto__: null, - requiredParam: requiredParam, - VOID: VOID, - setLoggerFunction: setLoggerFunction, - vtkLogMacro: vtkLogMacro, - vtkInfoMacro: vtkInfoMacro, - vtkDebugMacro: vtkDebugMacro, - vtkErrorMacro: vtkErrorMacro, - vtkWarningMacro: vtkWarningMacro, - vtkOnceErrorMacro: vtkOnceErrorMacro, - TYPED_ARRAYS: TYPED_ARRAYS, - newTypedArray: newTypedArray, - newTypedArrayFrom: newTypedArrayFrom, - capitalize: capitalize, - _capitalize: _capitalize, - uncapitalize: uncapitalize, - formatBytesToProperUnit: formatBytesToProperUnit, - formatNumbersWithThousandSeparator: formatNumbersWithThousandSeparator, - setImmediateVTK: setImmediateVTK, - measurePromiseExecution: measurePromiseExecution, - obj: obj, - get: get, - set: set, - setGet: setGet, - getArray: getArray, - setArray: setArray, - setGetArray: setGetArray, - moveToProtected: moveToProtected, - algo: algo, - EVENT_ABORT: EVENT_ABORT, - event: event, - newInstance: newInstance, - chain: chain, - isVtkObject: isVtkObject, - traverseInstanceTree: traverseInstanceTree, - debounce: debounce, - throttle: throttle, - keystore: keystore, - proxy: proxy, - proxyPropertyMapping: proxyPropertyMapping, - proxyPropertyState: proxyPropertyState, - normalizeWheel: normalizeWheel, - 'default': macro -}); - -export { vtkOnceErrorMacro as A, uncapitalize as B, formatBytesToProperUnit as C, formatNumbersWithThousandSeparator as D, setImmediateVTK as E, measurePromiseExecution as F, setArray as G, EVENT_ABORT as H, isVtkObject as I, debounce as J, throttle as K, keystore as L, proxyPropertyState as M, normalizeWheel as N, TYPED_ARRAYS as T, VOID as V, _capitalize as _, newTypedArray as a, newTypedArrayFrom as b, macro$1 as c, algo as d, setGet as e, event as f, get as g, chain as h, moveToProtected as i, proxyPropertyMapping as j, getArray as k, setGetArray as l, macro as m, newInstance as n, obj as o, proxy as p, capitalize as q, vtkErrorMacro as r, set as s, traverseInstanceTree as t, requiredParam as u, vtkWarningMacro as v, setLoggerFunction as w, vtkLogMacro as x, vtkInfoMacro as y, vtkDebugMacro as z }; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/package.json b/build_vtk_bundle/node_modules/@kitware/vtk.js/package.json deleted file mode 100644 index 4ded2d42..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/package.json +++ /dev/null @@ -1,244 +0,0 @@ -{ - "name": "@kitware/vtk.js", - "version": "34.15.1", - "description": "Visualization Toolkit for the Web", - "keywords": [ - "3d", - "visualization", - "webgl", - "medical", - "scientific", - "vtk", - "paraview", - "geometry", - "point cloud", - "mesh", - "gl-vis", - "volume", - "graphics", - "paraviewweb" - ], - "repository": { - "type": "git", - "url": "https://github.com/Kitware/vtk-js.git" - }, - "license": "BSD-3-Clause", - "bugs": { - "url": "https://github.com/kitware/vtk-js/issues" - }, - "homepage": "https://github.com/kitware/vtk-js#readme", - "main": "./index.js", - "module": "./index.js", - "dependencies": { - "@babel/runtime": "^7.28.2", - "@types/webxr": "^0.5.5", - "commander": "9.2.0", - "d3-scale": "4.0.2", - "fast-deep-equal": "^3.1.3", - "fflate": "0.7.3", - "gl-matrix": "3.4.3", - "globalthis": "1.0.3", - "seedrandom": "3.0.5", - "shader-loader": "1.3.1", - "shelljs": "0.8.5", - "spark-md5": "3.0.2", - "stream-browserify": "3.0.0", - "utif": "3.1.0", - "webworker-promise": "0.5.0", - "worker-loader": "3.0.8", - "xmlbuilder2": "3.0.2" - }, - "devDependencies": { - "@babel/core": "7.22.11", - "@babel/eslint-parser": "7.22.11", - "@babel/plugin-transform-runtime": "7.22.10", - "@babel/preset-env": "7.22.10", - "@commitlint/cli": "19.7.1", - "@commitlint/config-conventional": "19.7.1", - "@mapbox/node-pre-gyp": "1.0.9", - "@rollup/plugin-alias": "3.1.9", - "@rollup/plugin-babel": "5.3.1", - "@rollup/plugin-commonjs": "21.1.0", - "@rollup/plugin-eslint": "8.0.2", - "@rollup/plugin-json": "4.1.0", - "@rollup/plugin-node-resolve": "13.1.3", - "@types/node": "^22.13.1", - "autoprefixer": "10.4.7", - "babel-loader": "8.2.5", - "babel-plugin-istanbul": "6.1.1", - "buffer": "6.0.3", - "commitizen": "^4.3.1", - "concurrently": "7.1.0", - "copy-webpack-plugin": "10.2.4", - "cross-env": "7.0.3", - "css-loader": "6.7.1", - "dotenv": "16.0.1", - "dox": "1.0.0", - "eslint": "8.15.0", - "eslint-config-airbnb": "19.0.4", - "eslint-config-prettier": "8.5.0", - "eslint-import-resolver-webpack": "0.13.2", - "eslint-plugin-import": "2.26.0", - "eslint-plugin-jsx-a11y": "6.5.1", - "eslint-plugin-prettier": "4.0.0", - "eslint-webpack-plugin": "3.1.1", - "expose-loader": "3.1.0", - "glob": "8.0.3", - "handlebars": "4.7.7", - "hson-loader": "2.0.0", - "html-loader": "3.1.0", - "html-webpack-plugin": "5.5.0", - "husky": "8.0.1", - "ignore-loader": "0.1.2", - "karma": "6.3.20", - "karma-chrome-launcher": "3.1.1", - "karma-coverage": "2.2.0", - "karma-firefox-launcher": "2.1.2", - "karma-junit-reporter": "2.0.1", - "karma-webpack": "5.0.0", - "kw-doc": "3.1.2", - "lil-gui": "0.19.2", - "lodash": "4.17.21", - "magic-string": "0.26.2", - "moment": "2.29.4", - "patch-package": "6.4.7", - "pixelmatch": "5.3.0", - "postcss-loader": "6.2.1", - "prettier": "2.6.2", - "process": "0.11.10", - "regenerator-runtime": "0.13.9", - "rollup": "2.79.2", - "rollup-plugin-auto-external": "2.0.0", - "rollup-plugin-copy": "3.4.0", - "rollup-plugin-ignore": "1.0.10", - "rollup-plugin-polyfill-node": "0.9.0", - "rollup-plugin-postcss": "4.0.2", - "rollup-plugin-string": "3.0.0", - "rollup-plugin-svgo": "2.0.0", - "rollup-plugin-web-worker-loader": "1.6.1", - "semantic-release": "24.2.0", - "snabbdom": "^3.5.1", - "string-replace-loader": "3.1.0", - "style-loader": "3.3.1", - "tape": "5.5.3", - "typescript": "^5.8.3", - "webpack": "^5.97.1", - "webpack-bundle-analyzer": "4.5.0", - "webpack-cli": "^5.1.4", - "webpack-dashboard": "3.3.7", - "webpack-dev-server": "^4.9.0", - "webpack-merge": "5.8.0", - "webpack-notifier": "1.15.0", - "wslink": "1.12.4", - "xml2js": "0.5.0" - }, - "peerDependencies": { - "@babel/preset-env": "^7.17.10", - "autoprefixer": "^10.4.7", - "wslink": ">=1.1.0 || ^2.0.0" - }, - "scripts": { - "validate": "prettier --config ./prettier.config.js --list-different \"Sources/**/*.[tj]s\" \"Examples/**/*.[tj]s\"", - "reformat": "prettier --config ./prettier.config.js --write \"Sources/**/*.[tj]s\" \"Examples/**/*.[tj]s\"", - "reformat-only": "prettier --single-quote --trailing-comma es5 --print-width 80 --arrow-parens always --write", - "lint-fix": "eslint --fix Sources Examples", - "lint": "eslint Sources Examples", - "typecheck": "tsc --noEmit", - "doc": "npm run build:pre && kw-doc -c ./Documentation/config.js", - "doc:www": "npm t -- --single-run && npm run build:pre && kw-doc -c ./Documentation/config.js -s", - "doc:minified": "npm run build:pre && kw-doc -c ./Documentation/config.js -m", - "doc:generate-api": "npm run build:pre && node ./Documentation/generate-api-docs.js", - "example": "node ./Utilities/ExampleRunner/example-runner-cli.js -c ./Documentation/config.js", - "example:https": "node ./Utilities/ExampleRunner/example-runner-cli.js --server-type https -c ./Documentation/config.js", - "example:webgpu": "cross-env WEBGPU=1 NO_WEBGL=1 node ./Utilities/ExampleRunner/example-runner-cli.js --server-type https -c ./Documentation/config.js", - "build:pre": "patch-package", - "dev:esm": "npm run build:esm -- -w", - "dev:umd": "npm run build:pre && webpack --watch --config webpack.dev.js --progress", - "build": "npm run build:release", - "build:esm": "npm run build:pre && rollup -c rollup.config.js", - "build:umd": "npm run build:pre && webpack --config webpack.prod.js --progress", - "build:release": "npm run lint && npm run build:pre && concurrently \"cross-env NOLINT=1 npm run build:esm\" \"cross-env NOLINT=1 npm run build:umd\"", - "release:create-packages": "node ./Utilities/ci/build-npm-package.js", - "test": "karma start ./karma.conf.js", - "test:headless": "karma start ./karma.conf.js --browsers ChromeHeadlessNoSandbox --single-run", - "test:debug": "karma start ./karma.conf.js --log-level debug --no-single-run", - "test:firefox": "karma start ./karma.conf.js --browsers Firefox", - "test:webgpu": "cross-env WEBGPU=1 NO_WEBGL=1 karma start ./karma.conf.js --browsers ChromeWebGPU --no-single-run", - "test:firefox-debug": "karma start ./karma.conf.js --browsers Firefox --no-single-run", - "commit": "git cz", - "semantic-release": "semantic-release", - "prepare": "node ./Utilities/prepare.js" - }, - "config": { - "commitizen": { - "path": "cz-conventional-changelog" - } - }, - "bin": { - "vtkDataConverter": "./Utilities/DataGenerator/convert-cli.js", - "xml2json": "./Utilities/XMLConverter/xml2json-cli.js" - }, - "nyc": { - "include": [ - "Sources/**/*.js" - ], - "exclude": [ - "Sources/**/test/*.js" - ] - }, - "commitlint": { - "extends": [ - "@commitlint/config-conventional" - ], - "rules": { - "subject-case": [ - 2, - "never", - [ - "start-case", - "pascal-case", - "upper-case" - ] - ] - } - }, - "release": { - "branches": [ - "+([0-9])?(.{+([0-9]),x}).x", - "master", - "next", - "next-major", - { - "name": "beta", - "prerelease": true - } - ], - "plugins": [ - "@semantic-release/commit-analyzer", - "@semantic-release/release-notes-generator", - [ - "@semantic-release/npm", - { - "pkgRoot": "./dist/umd" - } - ], - [ - "@semantic-release/npm", - { - "pkgRoot": "./dist/esm" - } - ], - [ - "@semantic-release/github", - { - "successCommentCondition": "<% return branch.name === 'master'; %>" - } - ] - ] - }, - "publishConfig": { - "access": "public" - }, - "type": "module", - "types": "./index.d.ts" -} diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/tsconfig.json b/build_vtk_bundle/node_modules/@kitware/vtk.js/tsconfig.json deleted file mode 100644 index 9fbf53c1..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/tsconfig.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "include": ["Sources/**/*.d.ts", "Utilities/**/*.d.ts"], - "exclude": ["Utilities/build/macro-shim.d.ts"], - "compilerOptions": { - "noEmit": true - } -} diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/types.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/types.d.ts deleted file mode 100644 index 4f655f4a..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/types.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { vtkOutputPort } from './interfaces'; - -/** Alias type for value that can be null */ -declare type Nullable = T | null; - -/** - * Alias type for number that are floats - * @ignorenaming - */ -declare type float = number; - -/** - * Alias type for number that are doubles. - * @ignorenaming - */ -declare type double = number; - -/** - * Alias type for number that are integer - * @ignorenaming - */ -declare type int = number; - -declare type TypedArray = - | Uint32Array - | Uint16Array - | Uint8Array - | Uint8ClampedArray - | Int32Array - | Int16Array - | Int8Array - | Float64Array - | Float32Array; - -declare type Bounds = [number, number, number, number, number, number]; -declare type CellType = number; -declare type Extent = [number, number, number, number, number, number]; -declare type Placement = 'top' | 'left' | 'right' | 'bottom'; -declare type Size = [number, number]; -declare type Range = [number, number]; -declare type Vector2 = [number, number]; -declare type Vector3 = [number, number, number]; -declare type Vector4 = [number, number, number, number]; - -declare type Matrix = number[]; -declare type Matrix2x2 = [number, number, number, number, number, number]; -declare type Matrix3x3 = [ - number, - number, - number, - number, - number, - number, - number, - number, - number -]; -/** - * @deprecated The `Point` type is deprecated, please use `Vector3` instead. - */ -declare type Point = Vector3; -declare type HSLColor = [number, number, number]; -declare type HSVColor = [number, number, number]; -declare type RGBColor = [number, number, number]; -declare type RGBAColor = [number, number, number, number]; -declare type Color = HSLColor | HSVColor | RGBColor | RGBAColor; - -declare type vtkPipelineConnection = () => any | vtkOutputPort; - -declare type CrossOrigin = '' | 'anonymous' | 'use-credentials'; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/vtk.d.ts b/build_vtk_bundle/node_modules/@kitware/vtk.js/vtk.d.ts deleted file mode 100644 index c0ad5e93..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/vtk.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { vtkObject } from './interfaces'; - -interface ISerializedVtkObject { - vtkClass: string; - [attrName: string]: unknown; -} - -interface Ivtk { - /** - * Deserializes a serialized VTK.js object. - */ - (obj: ISerializedVtkObject): vtkObject; - - register(vtkClassName: string, constructor: (model: unknown) => T): void; -} - -declare const vtk: Ivtk; - -export default vtk; diff --git a/build_vtk_bundle/node_modules/@kitware/vtk.js/vtk.js b/build_vtk_bundle/node_modules/@kitware/vtk.js/vtk.js deleted file mode 100644 index 9e972976..00000000 --- a/build_vtk_bundle/node_modules/@kitware/vtk.js/vtk.js +++ /dev/null @@ -1,55 +0,0 @@ -import globalThisShim from 'globalthis'; - -const vtkGlobal = globalThisShim(); // returns native globalThis if compliant - -const factoryMapping = { - vtkObject: () => null -}; -function vtk(obj) { - if (obj === null || obj === undefined) { - return obj; - } - if (obj.isA) { - return obj; - } - if (!obj.vtkClass) { - if (vtkGlobal.console && vtkGlobal.console.error) { - vtkGlobal.console.error('Invalid VTK object'); - } - return null; - } - const constructor = factoryMapping[obj.vtkClass]; - if (!constructor) { - if (vtkGlobal.console && vtkGlobal.console.error) { - vtkGlobal.console.error(`No vtk class found for Object of type ${obj.vtkClass}`); - } - return null; - } - - // Shallow copy object - const model = { - ...obj - }; - - // Convert into vtkObject any nested key - Object.keys(model).forEach(keyName => { - if (model[keyName] && typeof model[keyName] === 'object' && model[keyName].vtkClass) { - model[keyName] = vtk(model[keyName]); - } - }); - - // Return the root - const newInst = constructor(model); - if (newInst && newInst.modified) { - newInst.modified(); - } - return newInst; -} -function register(vtkClassName, constructor) { - factoryMapping[vtkClassName] = constructor; -} - -// Nest register method under the vtk function -vtk.register = register; - -export { vtk as default, vtkGlobal }; diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/LICENSE b/build_vtk_bundle/node_modules/@msgpack/msgpack/LICENSE deleted file mode 100644 index f0e7f3e7..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/LICENSE +++ /dev/null @@ -1,5 +0,0 @@ -Copyright 2019 The MessagePack Community. - -Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/README.md b/build_vtk_bundle/node_modules/@msgpack/msgpack/README.md deleted file mode 100644 index 19854d60..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/README.md +++ /dev/null @@ -1,621 +0,0 @@ -# MessagePack for JavaScript/ECMA-262 - -[![npm version](https://img.shields.io/npm/v/@msgpack/msgpack.svg)](https://www.npmjs.com/package/@msgpack/msgpack) ![CI](https://github.com/msgpack/msgpack-javascript/workflows/CI/badge.svg) [![codecov](https://codecov.io/gh/msgpack/msgpack-javascript/branch/master/graphs/badge.svg)](https://codecov.io/gh/msgpack/msgpack-javascript) [![minzip](https://badgen.net/bundlephobia/minzip/@msgpack/msgpack)](https://bundlephobia.com/result?p=@msgpack/msgpack) [![tree-shaking](https://badgen.net/bundlephobia/tree-shaking/@msgpack/msgpack)](https://bundlephobia.com/result?p=@msgpack/msgpack) - -This is a JavaScript/ECMA-262 implementation of **MessagePack**, an efficient binary serilization format: - -https://msgpack.org/ - -This library is a universal JavaScript, meaning it is compatible with all the major browsers and NodeJS. In addition, because it is implemented in [TypeScript](https://www.typescriptlang.org/), type definition files (`d.ts`) are always up-to-date and bundled in the distribution. - -*Note that this is the second version of MessagePack for JavaScript. The first version, which was implemented in ES5 and was never released to npmjs.com, is tagged as [classic](https://github.com/msgpack/msgpack-javascript/tree/classic).* - -## Synopsis - -```typescript -import { deepStrictEqual } from "assert"; -import { encode, decode } from "@msgpack/msgpack"; - -const object = { - nil: null, - integer: 1, - float: Math.PI, - string: "Hello, world!", - binary: Uint8Array.from([1, 2, 3]), - array: [10, 20, 30], - map: { foo: "bar" }, - timestampExt: new Date(), -}; - -const encoded: Uint8Array = encode(object); - -deepStrictEqual(decode(encoded), object); -``` - -## Table of Contents - -- [Synopsis](#synopsis) -- [Table of Contents](#table-of-contents) -- [Install](#install) -- [API](#api) - - [`encode(data: unknown, options?: EncodeOptions): Uint8Array`](#encodedata-unknown-options-encodeoptions-uint8array) - - [`EncodeOptions`](#encodeoptions) - - [`decode(buffer: ArrayLike | BufferSource, options?: DecodeOptions): unknown`](#decodebuffer-arraylikenumber--buffersource-options-decodeoptions-unknown) - - [`DecodeOptions`](#decodeoptions) - - [`decodeMulti(buffer: ArrayLike | BufferSource, options?: DecodeOptions): Generator`](#decodemultibuffer-arraylikenumber--buffersource-options-decodeoptions-generatorunknown-void-unknown) - - [`decodeAsync(stream: ReadableStreamLike | BufferSource>, options?: DecodeAsyncOptions): Promise`](#decodeasyncstream-readablestreamlikearraylikenumber--buffersource-options-decodeasyncoptions-promiseunknown) - - [`decodeArrayStream(stream: ReadableStreamLike | BufferSource>, options?: DecodeAsyncOptions): AsyncIterable`](#decodearraystreamstream-readablestreamlikearraylikenumber--buffersource-options-decodeasyncoptions-asynciterableunknown) - - [`decodeMultiStream(stream: ReadableStreamLike | BufferSource>, options?: DecodeAsyncOptions): AsyncIterable`](#decodemultistreamstream-readablestreamlikearraylikenumber--buffersource-options-decodeasyncoptions-asynciterableunknown) - - [Reusing Encoder and Decoder instances](#reusing-encoder-and-decoder-instances) -- [Extension Types](#extension-types) - - [ExtensionCodec context](#extensioncodec-context) - - [Handling BigInt with ExtensionCodec](#handling-bigint-with-extensioncodec) - - [The temporal module as timestamp extensions](#the-temporal-module-as-timestamp-extensions) -- [Decoding a Blob](#decoding-a-blob) -- [MessagePack Specification](#messagepack-specification) - - [MessagePack Mapping Table](#messagepack-mapping-table) -- [Prerequisites](#prerequisites) - - [ECMA-262](#ecma-262) - - [NodeJS](#nodejs) - - [TypeScript Compiler / Type Definitions](#typescript-compiler--type-definitions) -- [Benchmark](#benchmark) -- [Distribution](#distribution) - - [NPM / npmjs.com](#npm--npmjscom) - - [CDN / unpkg.com](#cdn--unpkgcom) -- [Deno Support](#deno-support) -- [Maintenance](#maintenance) - - [Testing](#testing) - - [Continuous Integration](#continuous-integration) - - [Release Engineering](#release-engineering) - - [Updating Dependencies](#updating-dependencies) -- [License](#license) - -## Install - -This library is published to `npmjs.com` as [@msgpack/msgpack](https://www.npmjs.com/package/@msgpack/msgpack). - -```shell -npm install @msgpack/msgpack -``` - -## API - -### `encode(data: unknown, options?: EncodeOptions): Uint8Array` - -It encodes `data` into a single MessagePack-encoded object, and returns a byte array as `Uint8Array`. It throws errors if `data` is, or includes, a non-serializable object such as a `function` or a `symbol`. - -for example: - -```typescript -import { encode } from "@msgpack/msgpack"; - -const encoded: Uint8Array = encode({ foo: "bar" }); -console.log(encoded); -``` - -If you'd like to convert an `uint8array` to a NodeJS `Buffer`, use `Buffer.from(arrayBuffer, offset, length)` in order not to copy the underlying `ArrayBuffer`, while `Buffer.from(uint8array)` copies it: - -```typescript -import { encode } from "@msgpack/msgpack"; - -const encoded: Uint8Array = encode({ foo: "bar" }); - -// `buffer` refers the same ArrayBuffer as `encoded`. -const buffer: Buffer = Buffer.from(encoded.buffer, encoded.byteOffset, encoded.byteLength); -console.log(buffer); -``` - -#### `EncodeOptions` - -Name|Type|Default -----|----|---- -extensionCodec | ExtensionCodec | `ExtensionCodec.defaultCodec` -maxDepth | number | `100` -initialBufferSize | number | `2048` -sortKeys | boolean | false -forceFloat32 | boolean | false -forceIntegerToFloat | boolean | false -ignoreUndefined | boolean | false -context | user-defined | - - -### `decode(buffer: ArrayLike | BufferSource, options?: DecodeOptions): unknown` - -It decodes `buffer` that includes a MessagePack-encoded object, and returns the decoded object typed `unknown`. - -`buffer` must be an array of bytes, which is typically `Uint8Array` or `ArrayBuffer`. `BufferSource` is defined as `ArrayBuffer | ArrayBufferView`. - -The `buffer` must include a single encoded object. If the `buffer` includes extra bytes after an object or the `buffer` is empty, it throws `RangeError`. To decode `buffer` that includes multiple encoded objects, use `decodeMulti()` or `decodeMultiStream()` (recommended) instead. - -for example: - -```typescript -import { decode } from "@msgpack/msgpack"; - -const encoded: Uint8Array; -const object = decode(encoded); -console.log(object); -``` - -NodeJS `Buffer` is also acceptable because it is a subclass of `Uint8Array`. - -#### `DecodeOptions` - -Name|Type|Default -----|----|---- -extensionCodec | ExtensionCodec | `ExtensionCodec.defaultCodec` -maxStrLength | number | `4_294_967_295` (UINT32_MAX) -maxBinLength | number | `4_294_967_295` (UINT32_MAX) -maxArrayLength | number | `4_294_967_295` (UINT32_MAX) -maxMapLength | number | `4_294_967_295` (UINT32_MAX) -maxExtLength | number | `4_294_967_295` (UINT32_MAX) -context | user-defined | - - -You can use `max${Type}Length` to limit the length of each type decoded. - -### `decodeMulti(buffer: ArrayLike | BufferSource, options?: DecodeOptions): Generator` - -It decodes `buffer` that includes multiple MessagePack-encoded objects, and returns decoded objects as a generator. See also `decodeMultiStream()`, which is an asynchronous variant of this function. - -This function is not recommended to decode a MessagePack binary via I/O stream including sockets because it's synchronous. Instead, `decodeMultiStream()` decodes a binary stream asynchronously, typically spending less CPU and memory. - -for example: - -```typescript -import { decode } from "@msgpack/msgpack"; - -const encoded: Uint8Array; - -for (const object of decodeMulti(encoded)) { - console.log(object); -} -``` - -### `decodeAsync(stream: ReadableStreamLike | BufferSource>, options?: DecodeAsyncOptions): Promise` - -It decodes `stream`, where `ReadableStreamLike` is defined as `ReadableStream | AsyncIterable`, in an async iterable of byte arrays, and returns decoded object as `unknown` type, wrapped in `Promise`. - -This function works asynchronously, and might CPU resources more efficiently compared with synchronous `decode()`, because it doesn't wait for the completion of downloading. - -`DecodeAsyncOptions` is the same as `DecodeOptions` for `decode()`. - -This function is designed to work with whatwg `fetch()` like this: - -```typescript -import { decodeAsync } from "@msgpack/msgpack"; - -const MSGPACK_TYPE = "application/x-msgpack"; - -const response = await fetch(url); -const contentType = response.headers.get("Content-Type"); -if (contentType && contentType.startsWith(MSGPACK_TYPE) && response.body != null) { - const object = await decodeAsync(response.body); - // do something with object -} else { /* handle errors */ } -``` - -### `decodeArrayStream(stream: ReadableStreamLike | BufferSource>, options?: DecodeAsyncOptions): AsyncIterable` - -It is alike to `decodeAsync()`, but only accepts a `stream` that includes an array of items, and emits a decoded item one by one. - -for example: - -```typescript -import { decodeArrayStream } from "@msgpack/msgpack"; - -const stream: AsyncIterator; - -// in an async function: -for await (const item of decodeArrayStream(stream)) { - console.log(item); -} -``` - -### `decodeMultiStream(stream: ReadableStreamLike | BufferSource>, options?: DecodeAsyncOptions): AsyncIterable` - -It is alike to `decodeAsync()` and `decodeArrayStream()`, but the input `stream` must consist of multiple MessagePack-encoded items. This is an asynchronous variant for `decodeMulti()`. - -In other words, it could decode an unlimited stream and emits a decoded item one by one. - -for example: - -```typescript -import { decodeMultiStream } from "@msgpack/msgpack"; - -const stream: AsyncIterator; - -// in an async function: -for await (const item of decodeMultiStream(stream)) { - console.log(item); -} -``` - -This function is available since v2.4.0; previously it was called as `decodeStream()`. - -### Reusing Encoder and Decoder instances - -`Encoder` and `Decoder` classes is provided to have better performance by reusing instances: - -```typescript -import { deepStrictEqual } from "assert"; -import { Encoder, Decoder } from "@msgpack/msgpack"; - -const encoder = new Encoder(); -const decoder = new Decoder(); - -const encoded: Uint8Array = encoder.encode(object); -deepStrictEqual(decoder.decode(encoded), object); -``` - -According to our benchmark, reusing `Encoder` instance is about 20% faster -than `encode()` function, and reusing `Decoder` instance is about 2% faster -than `decode()` function. Note that the result should vary in environments -and data structure. - -## Extension Types - -To handle [MessagePack Extension Types](https://github.com/msgpack/msgpack/blob/master/spec.md#extension-types), this library provides `ExtensionCodec` class. - -This is an example to setup custom extension types that handles `Map` and `Set` classes in TypeScript: - -```typescript -import { encode, decode, ExtensionCodec } from "@msgpack/msgpack"; - -const extensionCodec = new ExtensionCodec(); - -// Set -const SET_EXT_TYPE = 0 // Any in 0-127 -extensionCodec.register({ - type: SET_EXT_TYPE, - encode: (object: unknown): Uint8Array | null => { - if (object instanceof Set) { - return encode([...object]); - } else { - return null; - } - }, - decode: (data: Uint8Array) => { - const array = decode(data) as Array; - return new Set(array); - }, -}); - -// Map -const MAP_EXT_TYPE = 1; // Any in 0-127 -extensionCodec.register({ - type: MAP_EXT_TYPE, - encode: (object: unknown): Uint8Array => { - if (object instanceof Map) { - return encode([...object]); - } else { - return null; - } - }, - decode: (data: Uint8Array) => { - const array = decode(data) as Array<[unknown, unknown]>; - return new Map(array); - }, -}); - -const encoded = encode([new Set(), new Map()], { extensionCodec }); -const decoded = decode(encoded, { extensionCodec }); -``` - -Not that extension types for custom objects must be `[0, 127]`, while `[-1, -128]` is reserved for MessagePack itself. - -#### ExtensionCodec context - -When you use an extension codec, it might be necessary to have encoding/decoding state to keep track of which objects got encoded/re-created. To do this, pass a `context` to the `EncodeOptions` and `DecodeOptions`: - -```typescript -import { encode, decode, ExtensionCodec } from "@msgpack/msgpack"; - -class MyContext { - track(object: any) { /*...*/ } -} - -class MyType { /* ... */ } - -const extensionCodec = new ExtensionCodec(); - -// MyType -const MYTYPE_EXT_TYPE = 0 // Any in 0-127 -extensionCodec.register({ - type: MYTYPE_EXT_TYPE, - encode: (object, context) => { - if (object instanceof MyType) { - context.track(object); // <-- like this - return encode(object.toJSON(), { extensionCodec, context }); - } else { - return null; - } - }, - decode: (data, extType, context) => { - const decoded = decode(data, { extensionCodec, context }); - const my = new MyType(decoded); - context.track(my); // <-- and like this - return my; - }, -}); - -// and later -import { encode, decode } from "@msgpack/msgpack"; - -const context = new MyContext(); - -const encoded = = encode({myType: new MyType()}, { extensionCodec, context }); -const decoded = decode(encoded, { extensionCodec, context }); -``` - -#### Handling BigInt with ExtensionCodec - -This library does not handle BigInt by default, but you can handle it with `ExtensionCodec` like this: - -```typescript -import { deepStrictEqual } from "assert"; -import { encode, decode, ExtensionCodec } from "@msgpack/msgpack"; - -const BIGINT_EXT_TYPE = 0; // Any in 0-127 -const extensionCodec = new ExtensionCodec(); -extensionCodec.register({ - type: BIGINT_EXT_TYPE, - encode: (input: unknown) => { - if (typeof input === "bigint") { - if (input <= Number.MAX_SAFE_INTEGER && input >= Number.MIN_SAFE_INTEGER) { - return encode(parseInt(input.toString(), 10)); - } else { - return encode(input.toString()); - } - } else { - return null; - } - }, - decode: (data: Uint8Array) => { - return BigInt(decode(data)); - }, -}); - -const value = BigInt(Number.MAX_SAFE_INTEGER) + BigInt(1); -const encoded: = encode(value, { extensionCodec }); -deepStrictEqual(decode(encoded, { extensionCodec }), value); -``` - -#### The temporal module as timestamp extensions - -There is a proposal for a new date/time representations in JavaScript: - -* https://github.com/tc39/proposal-temporal - -This library maps `Date` to the MessagePack timestamp extension by default, but you can re-map the temporal module (or [Temporal Polyfill](https://github.com/tc39/proposal-temporal/tree/main/polyfill)) to the timestamp extension like this: - -```typescript -import { Instant } from "@std-proposal/temporal"; -import { deepStrictEqual } from "assert"; -import { - encode, - decode, - ExtensionCodec, - EXT_TIMESTAMP, - encodeTimeSpecToTimestamp, - decodeTimestampToTimeSpec, -} from "@msgpack/msgpack"; - -const extensionCodec = new ExtensionCodec(); -extensionCodec.register({ - type: EXT_TIMESTAMP, // override the default behavior! - encode: (input: any) => { - if (input instanceof Instant) { - const sec = input.seconds; - const nsec = Number(input.nanoseconds - BigInt(sec) * BigInt(1e9)); - return encodeTimeSpecToTimestamp({ sec, nsec }); - } else { - return null; - } - }, - decode: (data: Uint8Array) => { - const timeSpec = decodeTimestampToTimeSpec(data); - const sec = BigInt(timeSpec.sec); - const nsec = BigInt(timeSpec.nsec); - return Instant.fromEpochNanoseconds(sec * BigInt(1e9) + nsec); - }, -}); - -const instant = Instant.fromEpochMilliseconds(Date.now()); -const encoded = encode(instant, { extensionCodec }); -const decoded = decode(encoded, { extensionCodec }); -deepStrictEqual(decoded, instant); -``` - -This will become default in this library with major-version increment, if the temporal module is standardized. - -## Decoding a Blob - -[`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) is a binary data container provided by browsers. To read its contents, you can use `Blob#arrayBuffer()` or `Blob#stream()`. `Blob#stream()` -is recommended if your target platform support it. This is because streaming -decode should be faster for large objects. In both ways, you need to use -asynchronous API. - -```typescript -async function decodeFromBlob(blob: Blob): unknown { - if (blob.stream) { - // Blob#stream(): ReadableStream (recommended) - return await decodeAsync(blob.stream()); - } else { - // Blob#arrayBuffer(): Promise (if stream() is not available) - return decode(await blob.arrayBuffer()); - } -} -``` - -## MessagePack Specification - -This library is compatible with the "August 2017" revision of MessagePack specification at the point where timestamp ext was added: - -* [x] str/bin separation, added at August 2013 -* [x] extension types, added at August 2013 -* [x] timestamp ext type, added at August 2017 - -The living specification is here: - -https://github.com/msgpack/msgpack - -Note that as of June 2019 there're no official "version" on the MessagePack specification. See https://github.com/msgpack/msgpack/issues/195 for the discussions. - -### MessagePack Mapping Table - -The following table shows how JavaScript values are mapped to [MessagePack formats](https://github.com/msgpack/msgpack/blob/master/spec.md) and vice versa. - -Source Value|MessagePack Format|Value Decoded -----|----|---- -null, undefined|nil|null (*1) -boolean (true, false)|bool family|boolean (true, false) -number (53-bit int)|int family|number (53-bit int) -number (64-bit float)|float family|number (64-bit float) -string|str family|string -ArrayBufferView |bin family|Uint8Array (*2) -Array|array family|Array -Object|map family|Object (*3) -Date|timestamp ext family|Date (*4) - -* *1 Both `null` and `undefined` are mapped to `nil` (`0xC0`) type, and are decoded into `null` -* *2 Any `ArrayBufferView`s including NodeJS's `Buffer` are mapped to `bin` family, and are decoded into `Uint8Array` -* *3 In handling `Object`, it is regarded as `Record` in terms of TypeScript -* *4 MessagePack timestamps may have nanoseconds, which will lost when it is decoded into JavaScript `Date`. This behavior can be overridden by registering `-1` for the extension codec. - -## Prerequisites - -This is a universal JavaScript library that supports major browsers and NodeJS. - -### ECMA-262 - -* ES5 language features -* ES2018 standard library, including: - * Typed arrays (ES2015) - * Async iterations (ES2018) - * Features added in ES2015-ES2018 - -ES2018 standard library used in this library can be polyfilled with [core-js](https://github.com/zloirock/core-js). - -If you support IE11, import `core-js` in your application entrypoints, as this library does in testing for browsers. - -### NodeJS - -NodeJS v10 is required, but NodeJS v12 or later is recommended because it includes the V8 feature of [Improving DataView performance in V8](https://v8.dev/blog/dataview). - -NodeJS before v10 will work by importing `@msgpack/msgpack/dist.es5+umd/msgpack`. - -### TypeScript Compiler / Type Definitions - -This module requires type definitions of `AsyncIterator`, `SourceBuffer`, whatwg streams, and so on. They are provided by `"lib": ["ES2021", "DOM"]` in `tsconfig.json`. - -Regarding the TypeScript compiler version, only the latest TypeScript is tested in development. - -## Benchmark - -Run-time performance is not the only reason to use MessagePack, but it's important to choose MessagePack libraries, so a benchmark suite is provided to monitor the performance of this library. - -V8's built-in JSON has been improved for years, esp. `JSON.parse()` is [significantly improved in V8/7.6](https://v8.dev/blog/v8-release-76), it is the fastest deserializer as of 2019, as the benchmark result bellow suggests. - -However, MessagePack can handles binary data effectively, actual performance depends on situations. You'd better take benchmark on your own use-case if performance matters. - -Benchmark on NodeJS/v18.1.0 (V8/10.1) - -operation | op | ms | op/s ------------------------------------------------------------------ | ------: | ----: | ------: -buf = Buffer.from(JSON.stringify(obj)); | 902100 | 5000 | 180420 -obj = JSON.parse(buf.toString("utf-8")); | 898700 | 5000 | 179740 -buf = require("msgpack-lite").encode(obj); | 411000 | 5000 | 82200 -obj = require("msgpack-lite").decode(buf); | 246200 | 5001 | 49230 -buf = require("@msgpack/msgpack").encode(obj); | 843300 | 5000 | 168660 -obj = require("@msgpack/msgpack").decode(buf); | 489300 | 5000 | 97860 -buf = /* @msgpack/msgpack */ encoder.encode(obj); | 1154200 | 5000 | 230840 -obj = /* @msgpack/msgpack */ decoder.decode(buf); | 448900 | 5000 | 89780 - -Note that `JSON` cases use `Buffer` to emulate I/O where a JavaScript string must be converted into a byte array encoded in UTF-8, whereas MessagePack modules deal with byte arrays. - -## Distribution - -### NPM / npmjs.com - -The NPM package distributed in npmjs.com includes both ES2015+ and ES5 files: - -* `dist/` is compiled into ES2019 with CommomJS, provided for NodeJS v10 -* `dist.es5+umd/` is compiled into ES5 with UMD - * `dist.es5+umd/msgpack.min.js` - the minified file - * `dist.es5+umd/msgpack.js` - the non-minified file -* `dist.es5+esm/` is compiled into ES5 with ES modules, provided for webpack-like bundlers and NodeJS's ESM-mode - -If you use NodeJS and/or webpack, their module resolvers use the suitable one automatically. - -### CDN / unpkg.com - -This library is available via CDN: - -```html - -``` - -It loads `MessagePack` module to the global object. - - -## Deno Support - -You can use this module on Deno. - -See `example/deno-*.ts` for examples. - -`deno.land/x` is not supported yet. - -## Maintenance - -### Testing - -For simple testing: - -``` -npm run test -``` - -### Continuous Integration - -This library uses Travis CI. - -test matrix: - -* TypeScript targets - * `target=es2019` / `target=es5` -* JavaScript engines - * NodeJS, browsers (Chrome, Firefox, Safari, IE11, and so on) - -See [test:* in package.json](./package.json) and [.travis.yml](./.travis.yml) for details. - -### Release Engineering - -```console -# run tests on NodeJS, Chrome, and Firefox -make test-all - -# edit the changelog -code CHANGELOG.md - -# bump version -npm version patch|minor|major - -# run the publishing task -make publish -``` - -### Updating Dependencies - -```console -npm run update-dependencies -``` - -## License - -Copyright 2019 The MessagePack community. - -This software uses the ISC license: - -https://opensource.org/licenses/ISC - -See [LICENSE](./LICENSE) for details. diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/CachedKeyDecoder.mjs b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/CachedKeyDecoder.mjs deleted file mode 100644 index 853b7cdb..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/CachedKeyDecoder.mjs +++ /dev/null @@ -1,64 +0,0 @@ -import { utf8DecodeJs } from "./utils/utf8.mjs"; -var DEFAULT_MAX_KEY_LENGTH = 16; -var DEFAULT_MAX_LENGTH_PER_KEY = 16; -var CachedKeyDecoder = /** @class */ (function () { - function CachedKeyDecoder(maxKeyLength, maxLengthPerKey) { - if (maxKeyLength === void 0) { maxKeyLength = DEFAULT_MAX_KEY_LENGTH; } - if (maxLengthPerKey === void 0) { maxLengthPerKey = DEFAULT_MAX_LENGTH_PER_KEY; } - this.maxKeyLength = maxKeyLength; - this.maxLengthPerKey = maxLengthPerKey; - this.hit = 0; - this.miss = 0; - // avoid `new Array(N)`, which makes a sparse array, - // because a sparse array is typically slower than a non-sparse array. - this.caches = []; - for (var i = 0; i < this.maxKeyLength; i++) { - this.caches.push([]); - } - } - CachedKeyDecoder.prototype.canBeCached = function (byteLength) { - return byteLength > 0 && byteLength <= this.maxKeyLength; - }; - CachedKeyDecoder.prototype.find = function (bytes, inputOffset, byteLength) { - var records = this.caches[byteLength - 1]; - FIND_CHUNK: for (var _i = 0, records_1 = records; _i < records_1.length; _i++) { - var record = records_1[_i]; - var recordBytes = record.bytes; - for (var j = 0; j < byteLength; j++) { - if (recordBytes[j] !== bytes[inputOffset + j]) { - continue FIND_CHUNK; - } - } - return record.str; - } - return null; - }; - CachedKeyDecoder.prototype.store = function (bytes, value) { - var records = this.caches[bytes.length - 1]; - var record = { bytes: bytes, str: value }; - if (records.length >= this.maxLengthPerKey) { - // `records` are full! - // Set `record` to an arbitrary position. - records[(Math.random() * records.length) | 0] = record; - } - else { - records.push(record); - } - }; - CachedKeyDecoder.prototype.decode = function (bytes, inputOffset, byteLength) { - var cachedValue = this.find(bytes, inputOffset, byteLength); - if (cachedValue != null) { - this.hit++; - return cachedValue; - } - this.miss++; - var str = utf8DecodeJs(bytes, inputOffset, byteLength); - // Ensure to copy a slice of bytes because the byte may be NodeJS Buffer and Buffer#slice() returns a reference to its internal ArrayBuffer. - var slicedCopyOfBytes = Uint8Array.prototype.slice.call(bytes, inputOffset, inputOffset + byteLength); - this.store(slicedCopyOfBytes, str); - return str; - }; - return CachedKeyDecoder; -}()); -export { CachedKeyDecoder }; -//# sourceMappingURL=CachedKeyDecoder.mjs.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/CachedKeyDecoder.mjs.map b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/CachedKeyDecoder.mjs.map deleted file mode 100644 index 328257db..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/CachedKeyDecoder.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CachedKeyDecoder.mjs","sourceRoot":"","sources":["../src/CachedKeyDecoder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,IAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,IAAM,0BAA0B,GAAG,EAAE,CAAC;AAWtC;IAKE,0BAAqB,YAAqC,EAAW,eAA4C;QAA5F,6BAAA,EAAA,qCAAqC;QAAW,gCAAA,EAAA,4CAA4C;QAA5F,iBAAY,GAAZ,YAAY,CAAyB;QAAW,oBAAe,GAAf,eAAe,CAA6B;QAJjH,QAAG,GAAG,CAAC,CAAC;QACR,SAAI,GAAG,CAAC,CAAC;QAIP,oDAAoD;QACpD,sEAAsE;QACtE,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC,EAAE,EAAE;YAC1C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SACtB;IACH,CAAC;IAEM,sCAAW,GAAlB,UAAmB,UAAkB;QACnC,OAAO,UAAU,GAAG,CAAC,IAAI,UAAU,IAAI,IAAI,CAAC,YAAY,CAAC;IAC3D,CAAC;IAEO,+BAAI,GAAZ,UAAa,KAAiB,EAAE,WAAmB,EAAE,UAAkB;QACrE,IAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,GAAG,CAAC,CAAE,CAAC;QAE7C,UAAU,EAAE,KAAqB,UAAO,EAAP,mBAAO,EAAP,qBAAO,EAAP,IAAO,EAAE;YAAzB,IAAM,MAAM,gBAAA;YAC3B,IAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC;YAEjC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,EAAE,CAAC,EAAE,EAAE;gBACnC,IAAI,WAAW,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE;oBAC7C,SAAS,UAAU,CAAC;iBACrB;aACF;YACD,OAAO,MAAM,CAAC,GAAG,CAAC;SACnB;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEO,gCAAK,GAAb,UAAc,KAAiB,EAAE,KAAa;QAC5C,IAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC;QAC/C,IAAM,MAAM,GAAmB,EAAE,KAAK,OAAA,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;QAErD,IAAI,OAAO,CAAC,MAAM,IAAI,IAAI,CAAC,eAAe,EAAE;YAC1C,sBAAsB;YACtB,yCAAyC;YACzC,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC;SACxD;aAAM;YACL,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACtB;IACH,CAAC;IAEM,iCAAM,GAAb,UAAc,KAAiB,EAAE,WAAmB,EAAE,UAAkB;QACtE,IAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;QAC9D,IAAI,WAAW,IAAI,IAAI,EAAE;YACvB,IAAI,CAAC,GAAG,EAAE,CAAC;YACX,OAAO,WAAW,CAAC;SACpB;QACD,IAAI,CAAC,IAAI,EAAE,CAAC;QAEZ,IAAM,GAAG,GAAG,YAAY,CAAC,KAAK,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;QACzD,4IAA4I;QAC5I,IAAM,iBAAiB,GAAG,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,WAAW,EAAE,WAAW,GAAG,UAAU,CAAC,CAAC;QACxG,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC;QACnC,OAAO,GAAG,CAAC;IACb,CAAC;IACH,uBAAC;AAAD,CAAC,AA7DD,IA6DC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/DecodeError.mjs b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/DecodeError.mjs deleted file mode 100644 index 983f3f6f..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/DecodeError.mjs +++ /dev/null @@ -1,33 +0,0 @@ -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var DecodeError = /** @class */ (function (_super) { - __extends(DecodeError, _super); - function DecodeError(message) { - var _this = _super.call(this, message) || this; - // fix the prototype chain in a cross-platform way - var proto = Object.create(DecodeError.prototype); - Object.setPrototypeOf(_this, proto); - Object.defineProperty(_this, "name", { - configurable: true, - enumerable: false, - value: DecodeError.name, - }); - return _this; - } - return DecodeError; -}(Error)); -export { DecodeError }; -//# sourceMappingURL=DecodeError.mjs.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/DecodeError.mjs.map b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/DecodeError.mjs.map deleted file mode 100644 index 537cb78d..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/DecodeError.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DecodeError.mjs","sourceRoot":"","sources":["../src/DecodeError.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;IAAiC,+BAAK;IACpC,qBAAY,OAAe;QAA3B,YACE,kBAAM,OAAO,CAAC,SAWf;QATC,kDAAkD;QAClD,IAAM,KAAK,GAAiC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;QACjF,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,KAAK,CAAC,CAAC;QAEnC,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,MAAM,EAAE;YAClC,YAAY,EAAE,IAAI;YAClB,UAAU,EAAE,KAAK;YACjB,KAAK,EAAE,WAAW,CAAC,IAAI;SACxB,CAAC,CAAC;;IACL,CAAC;IACH,kBAAC;AAAD,CAAC,AAdD,CAAiC,KAAK,GAcrC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/Decoder.mjs b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/Decoder.mjs deleted file mode 100644 index bb6ed34e..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/Decoder.mjs +++ /dev/null @@ -1,734 +0,0 @@ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -var __asyncValues = (this && this.__asyncValues) || function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -}; -var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } -var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -}; -import { prettyByte } from "./utils/prettyByte.mjs"; -import { ExtensionCodec } from "./ExtensionCodec.mjs"; -import { getInt64, getUint64, UINT32_MAX } from "./utils/int.mjs"; -import { utf8DecodeJs, TEXT_DECODER_THRESHOLD, utf8DecodeTD } from "./utils/utf8.mjs"; -import { createDataView, ensureUint8Array } from "./utils/typedArrays.mjs"; -import { CachedKeyDecoder } from "./CachedKeyDecoder.mjs"; -import { DecodeError } from "./DecodeError.mjs"; -var isValidMapKeyType = function (key) { - var keyType = typeof key; - return keyType === "string" || keyType === "number"; -}; -var HEAD_BYTE_REQUIRED = -1; -var EMPTY_VIEW = new DataView(new ArrayBuffer(0)); -var EMPTY_BYTES = new Uint8Array(EMPTY_VIEW.buffer); -// IE11: Hack to support IE11. -// IE11: Drop this hack and just use RangeError when IE11 is obsolete. -export var DataViewIndexOutOfBoundsError = (function () { - try { - // IE11: The spec says it should throw RangeError, - // IE11: but in IE11 it throws TypeError. - EMPTY_VIEW.getInt8(0); - } - catch (e) { - return e.constructor; - } - throw new Error("never reached"); -})(); -var MORE_DATA = new DataViewIndexOutOfBoundsError("Insufficient data"); -var sharedCachedKeyDecoder = new CachedKeyDecoder(); -var Decoder = /** @class */ (function () { - function Decoder(extensionCodec, context, maxStrLength, maxBinLength, maxArrayLength, maxMapLength, maxExtLength, keyDecoder) { - if (extensionCodec === void 0) { extensionCodec = ExtensionCodec.defaultCodec; } - if (context === void 0) { context = undefined; } - if (maxStrLength === void 0) { maxStrLength = UINT32_MAX; } - if (maxBinLength === void 0) { maxBinLength = UINT32_MAX; } - if (maxArrayLength === void 0) { maxArrayLength = UINT32_MAX; } - if (maxMapLength === void 0) { maxMapLength = UINT32_MAX; } - if (maxExtLength === void 0) { maxExtLength = UINT32_MAX; } - if (keyDecoder === void 0) { keyDecoder = sharedCachedKeyDecoder; } - this.extensionCodec = extensionCodec; - this.context = context; - this.maxStrLength = maxStrLength; - this.maxBinLength = maxBinLength; - this.maxArrayLength = maxArrayLength; - this.maxMapLength = maxMapLength; - this.maxExtLength = maxExtLength; - this.keyDecoder = keyDecoder; - this.totalPos = 0; - this.pos = 0; - this.view = EMPTY_VIEW; - this.bytes = EMPTY_BYTES; - this.headByte = HEAD_BYTE_REQUIRED; - this.stack = []; - } - Decoder.prototype.reinitializeState = function () { - this.totalPos = 0; - this.headByte = HEAD_BYTE_REQUIRED; - this.stack.length = 0; - // view, bytes, and pos will be re-initialized in setBuffer() - }; - Decoder.prototype.setBuffer = function (buffer) { - this.bytes = ensureUint8Array(buffer); - this.view = createDataView(this.bytes); - this.pos = 0; - }; - Decoder.prototype.appendBuffer = function (buffer) { - if (this.headByte === HEAD_BYTE_REQUIRED && !this.hasRemaining(1)) { - this.setBuffer(buffer); - } - else { - var remainingData = this.bytes.subarray(this.pos); - var newData = ensureUint8Array(buffer); - // concat remainingData + newData - var newBuffer = new Uint8Array(remainingData.length + newData.length); - newBuffer.set(remainingData); - newBuffer.set(newData, remainingData.length); - this.setBuffer(newBuffer); - } - }; - Decoder.prototype.hasRemaining = function (size) { - return this.view.byteLength - this.pos >= size; - }; - Decoder.prototype.createExtraByteError = function (posToShow) { - var _a = this, view = _a.view, pos = _a.pos; - return new RangeError("Extra ".concat(view.byteLength - pos, " of ").concat(view.byteLength, " byte(s) found at buffer[").concat(posToShow, "]")); - }; - /** - * @throws {@link DecodeError} - * @throws {@link RangeError} - */ - Decoder.prototype.decode = function (buffer) { - this.reinitializeState(); - this.setBuffer(buffer); - var object = this.doDecodeSync(); - if (this.hasRemaining(1)) { - throw this.createExtraByteError(this.pos); - } - return object; - }; - Decoder.prototype.decodeMulti = function (buffer) { - return __generator(this, function (_a) { - switch (_a.label) { - case 0: - this.reinitializeState(); - this.setBuffer(buffer); - _a.label = 1; - case 1: - if (!this.hasRemaining(1)) return [3 /*break*/, 3]; - return [4 /*yield*/, this.doDecodeSync()]; - case 2: - _a.sent(); - return [3 /*break*/, 1]; - case 3: return [2 /*return*/]; - } - }); - }; - Decoder.prototype.decodeAsync = function (stream) { - var stream_1, stream_1_1; - var e_1, _a; - return __awaiter(this, void 0, void 0, function () { - var decoded, object, buffer, e_1_1, _b, headByte, pos, totalPos; - return __generator(this, function (_c) { - switch (_c.label) { - case 0: - decoded = false; - _c.label = 1; - case 1: - _c.trys.push([1, 6, 7, 12]); - stream_1 = __asyncValues(stream); - _c.label = 2; - case 2: return [4 /*yield*/, stream_1.next()]; - case 3: - if (!(stream_1_1 = _c.sent(), !stream_1_1.done)) return [3 /*break*/, 5]; - buffer = stream_1_1.value; - if (decoded) { - throw this.createExtraByteError(this.totalPos); - } - this.appendBuffer(buffer); - try { - object = this.doDecodeSync(); - decoded = true; - } - catch (e) { - if (!(e instanceof DataViewIndexOutOfBoundsError)) { - throw e; // rethrow - } - // fallthrough - } - this.totalPos += this.pos; - _c.label = 4; - case 4: return [3 /*break*/, 2]; - case 5: return [3 /*break*/, 12]; - case 6: - e_1_1 = _c.sent(); - e_1 = { error: e_1_1 }; - return [3 /*break*/, 12]; - case 7: - _c.trys.push([7, , 10, 11]); - if (!(stream_1_1 && !stream_1_1.done && (_a = stream_1.return))) return [3 /*break*/, 9]; - return [4 /*yield*/, _a.call(stream_1)]; - case 8: - _c.sent(); - _c.label = 9; - case 9: return [3 /*break*/, 11]; - case 10: - if (e_1) throw e_1.error; - return [7 /*endfinally*/]; - case 11: return [7 /*endfinally*/]; - case 12: - if (decoded) { - if (this.hasRemaining(1)) { - throw this.createExtraByteError(this.totalPos); - } - return [2 /*return*/, object]; - } - _b = this, headByte = _b.headByte, pos = _b.pos, totalPos = _b.totalPos; - throw new RangeError("Insufficient data in parsing ".concat(prettyByte(headByte), " at ").concat(totalPos, " (").concat(pos, " in the current buffer)")); - } - }); - }); - }; - Decoder.prototype.decodeArrayStream = function (stream) { - return this.decodeMultiAsync(stream, true); - }; - Decoder.prototype.decodeStream = function (stream) { - return this.decodeMultiAsync(stream, false); - }; - Decoder.prototype.decodeMultiAsync = function (stream, isArray) { - return __asyncGenerator(this, arguments, function decodeMultiAsync_1() { - var isArrayHeaderRequired, arrayItemsLeft, stream_2, stream_2_1, buffer, e_2, e_3_1; - var e_3, _a; - return __generator(this, function (_b) { - switch (_b.label) { - case 0: - isArrayHeaderRequired = isArray; - arrayItemsLeft = -1; - _b.label = 1; - case 1: - _b.trys.push([1, 13, 14, 19]); - stream_2 = __asyncValues(stream); - _b.label = 2; - case 2: return [4 /*yield*/, __await(stream_2.next())]; - case 3: - if (!(stream_2_1 = _b.sent(), !stream_2_1.done)) return [3 /*break*/, 12]; - buffer = stream_2_1.value; - if (isArray && arrayItemsLeft === 0) { - throw this.createExtraByteError(this.totalPos); - } - this.appendBuffer(buffer); - if (isArrayHeaderRequired) { - arrayItemsLeft = this.readArraySize(); - isArrayHeaderRequired = false; - this.complete(); - } - _b.label = 4; - case 4: - _b.trys.push([4, 9, , 10]); - _b.label = 5; - case 5: - if (!true) return [3 /*break*/, 8]; - return [4 /*yield*/, __await(this.doDecodeSync())]; - case 6: return [4 /*yield*/, _b.sent()]; - case 7: - _b.sent(); - if (--arrayItemsLeft === 0) { - return [3 /*break*/, 8]; - } - return [3 /*break*/, 5]; - case 8: return [3 /*break*/, 10]; - case 9: - e_2 = _b.sent(); - if (!(e_2 instanceof DataViewIndexOutOfBoundsError)) { - throw e_2; // rethrow - } - return [3 /*break*/, 10]; - case 10: - this.totalPos += this.pos; - _b.label = 11; - case 11: return [3 /*break*/, 2]; - case 12: return [3 /*break*/, 19]; - case 13: - e_3_1 = _b.sent(); - e_3 = { error: e_3_1 }; - return [3 /*break*/, 19]; - case 14: - _b.trys.push([14, , 17, 18]); - if (!(stream_2_1 && !stream_2_1.done && (_a = stream_2.return))) return [3 /*break*/, 16]; - return [4 /*yield*/, __await(_a.call(stream_2))]; - case 15: - _b.sent(); - _b.label = 16; - case 16: return [3 /*break*/, 18]; - case 17: - if (e_3) throw e_3.error; - return [7 /*endfinally*/]; - case 18: return [7 /*endfinally*/]; - case 19: return [2 /*return*/]; - } - }); - }); - }; - Decoder.prototype.doDecodeSync = function () { - DECODE: while (true) { - var headByte = this.readHeadByte(); - var object = void 0; - if (headByte >= 0xe0) { - // negative fixint (111x xxxx) 0xe0 - 0xff - object = headByte - 0x100; - } - else if (headByte < 0xc0) { - if (headByte < 0x80) { - // positive fixint (0xxx xxxx) 0x00 - 0x7f - object = headByte; - } - else if (headByte < 0x90) { - // fixmap (1000 xxxx) 0x80 - 0x8f - var size = headByte - 0x80; - if (size !== 0) { - this.pushMapState(size); - this.complete(); - continue DECODE; - } - else { - object = {}; - } - } - else if (headByte < 0xa0) { - // fixarray (1001 xxxx) 0x90 - 0x9f - var size = headByte - 0x90; - if (size !== 0) { - this.pushArrayState(size); - this.complete(); - continue DECODE; - } - else { - object = []; - } - } - else { - // fixstr (101x xxxx) 0xa0 - 0xbf - var byteLength = headByte - 0xa0; - object = this.decodeUtf8String(byteLength, 0); - } - } - else if (headByte === 0xc0) { - // nil - object = null; - } - else if (headByte === 0xc2) { - // false - object = false; - } - else if (headByte === 0xc3) { - // true - object = true; - } - else if (headByte === 0xca) { - // float 32 - object = this.readF32(); - } - else if (headByte === 0xcb) { - // float 64 - object = this.readF64(); - } - else if (headByte === 0xcc) { - // uint 8 - object = this.readU8(); - } - else if (headByte === 0xcd) { - // uint 16 - object = this.readU16(); - } - else if (headByte === 0xce) { - // uint 32 - object = this.readU32(); - } - else if (headByte === 0xcf) { - // uint 64 - object = this.readU64(); - } - else if (headByte === 0xd0) { - // int 8 - object = this.readI8(); - } - else if (headByte === 0xd1) { - // int 16 - object = this.readI16(); - } - else if (headByte === 0xd2) { - // int 32 - object = this.readI32(); - } - else if (headByte === 0xd3) { - // int 64 - object = this.readI64(); - } - else if (headByte === 0xd9) { - // str 8 - var byteLength = this.lookU8(); - object = this.decodeUtf8String(byteLength, 1); - } - else if (headByte === 0xda) { - // str 16 - var byteLength = this.lookU16(); - object = this.decodeUtf8String(byteLength, 2); - } - else if (headByte === 0xdb) { - // str 32 - var byteLength = this.lookU32(); - object = this.decodeUtf8String(byteLength, 4); - } - else if (headByte === 0xdc) { - // array 16 - var size = this.readU16(); - if (size !== 0) { - this.pushArrayState(size); - this.complete(); - continue DECODE; - } - else { - object = []; - } - } - else if (headByte === 0xdd) { - // array 32 - var size = this.readU32(); - if (size !== 0) { - this.pushArrayState(size); - this.complete(); - continue DECODE; - } - else { - object = []; - } - } - else if (headByte === 0xde) { - // map 16 - var size = this.readU16(); - if (size !== 0) { - this.pushMapState(size); - this.complete(); - continue DECODE; - } - else { - object = {}; - } - } - else if (headByte === 0xdf) { - // map 32 - var size = this.readU32(); - if (size !== 0) { - this.pushMapState(size); - this.complete(); - continue DECODE; - } - else { - object = {}; - } - } - else if (headByte === 0xc4) { - // bin 8 - var size = this.lookU8(); - object = this.decodeBinary(size, 1); - } - else if (headByte === 0xc5) { - // bin 16 - var size = this.lookU16(); - object = this.decodeBinary(size, 2); - } - else if (headByte === 0xc6) { - // bin 32 - var size = this.lookU32(); - object = this.decodeBinary(size, 4); - } - else if (headByte === 0xd4) { - // fixext 1 - object = this.decodeExtension(1, 0); - } - else if (headByte === 0xd5) { - // fixext 2 - object = this.decodeExtension(2, 0); - } - else if (headByte === 0xd6) { - // fixext 4 - object = this.decodeExtension(4, 0); - } - else if (headByte === 0xd7) { - // fixext 8 - object = this.decodeExtension(8, 0); - } - else if (headByte === 0xd8) { - // fixext 16 - object = this.decodeExtension(16, 0); - } - else if (headByte === 0xc7) { - // ext 8 - var size = this.lookU8(); - object = this.decodeExtension(size, 1); - } - else if (headByte === 0xc8) { - // ext 16 - var size = this.lookU16(); - object = this.decodeExtension(size, 2); - } - else if (headByte === 0xc9) { - // ext 32 - var size = this.lookU32(); - object = this.decodeExtension(size, 4); - } - else { - throw new DecodeError("Unrecognized type byte: ".concat(prettyByte(headByte))); - } - this.complete(); - var stack = this.stack; - while (stack.length > 0) { - // arrays and maps - var state = stack[stack.length - 1]; - if (state.type === 0 /* State.ARRAY */) { - state.array[state.position] = object; - state.position++; - if (state.position === state.size) { - stack.pop(); - object = state.array; - } - else { - continue DECODE; - } - } - else if (state.type === 1 /* State.MAP_KEY */) { - if (!isValidMapKeyType(object)) { - throw new DecodeError("The type of key must be string or number but " + typeof object); - } - if (object === "__proto__") { - throw new DecodeError("The key __proto__ is not allowed"); - } - state.key = object; - state.type = 2 /* State.MAP_VALUE */; - continue DECODE; - } - else { - // it must be `state.type === State.MAP_VALUE` here - state.map[state.key] = object; - state.readCount++; - if (state.readCount === state.size) { - stack.pop(); - object = state.map; - } - else { - state.key = null; - state.type = 1 /* State.MAP_KEY */; - continue DECODE; - } - } - } - return object; - } - }; - Decoder.prototype.readHeadByte = function () { - if (this.headByte === HEAD_BYTE_REQUIRED) { - this.headByte = this.readU8(); - // console.log("headByte", prettyByte(this.headByte)); - } - return this.headByte; - }; - Decoder.prototype.complete = function () { - this.headByte = HEAD_BYTE_REQUIRED; - }; - Decoder.prototype.readArraySize = function () { - var headByte = this.readHeadByte(); - switch (headByte) { - case 0xdc: - return this.readU16(); - case 0xdd: - return this.readU32(); - default: { - if (headByte < 0xa0) { - return headByte - 0x90; - } - else { - throw new DecodeError("Unrecognized array type byte: ".concat(prettyByte(headByte))); - } - } - } - }; - Decoder.prototype.pushMapState = function (size) { - if (size > this.maxMapLength) { - throw new DecodeError("Max length exceeded: map length (".concat(size, ") > maxMapLengthLength (").concat(this.maxMapLength, ")")); - } - this.stack.push({ - type: 1 /* State.MAP_KEY */, - size: size, - key: null, - readCount: 0, - map: {}, - }); - }; - Decoder.prototype.pushArrayState = function (size) { - if (size > this.maxArrayLength) { - throw new DecodeError("Max length exceeded: array length (".concat(size, ") > maxArrayLength (").concat(this.maxArrayLength, ")")); - } - this.stack.push({ - type: 0 /* State.ARRAY */, - size: size, - array: new Array(size), - position: 0, - }); - }; - Decoder.prototype.decodeUtf8String = function (byteLength, headerOffset) { - var _a; - if (byteLength > this.maxStrLength) { - throw new DecodeError("Max length exceeded: UTF-8 byte length (".concat(byteLength, ") > maxStrLength (").concat(this.maxStrLength, ")")); - } - if (this.bytes.byteLength < this.pos + headerOffset + byteLength) { - throw MORE_DATA; - } - var offset = this.pos + headerOffset; - var object; - if (this.stateIsMapKey() && ((_a = this.keyDecoder) === null || _a === void 0 ? void 0 : _a.canBeCached(byteLength))) { - object = this.keyDecoder.decode(this.bytes, offset, byteLength); - } - else if (byteLength > TEXT_DECODER_THRESHOLD) { - object = utf8DecodeTD(this.bytes, offset, byteLength); - } - else { - object = utf8DecodeJs(this.bytes, offset, byteLength); - } - this.pos += headerOffset + byteLength; - return object; - }; - Decoder.prototype.stateIsMapKey = function () { - if (this.stack.length > 0) { - var state = this.stack[this.stack.length - 1]; - return state.type === 1 /* State.MAP_KEY */; - } - return false; - }; - Decoder.prototype.decodeBinary = function (byteLength, headOffset) { - if (byteLength > this.maxBinLength) { - throw new DecodeError("Max length exceeded: bin length (".concat(byteLength, ") > maxBinLength (").concat(this.maxBinLength, ")")); - } - if (!this.hasRemaining(byteLength + headOffset)) { - throw MORE_DATA; - } - var offset = this.pos + headOffset; - var object = this.bytes.subarray(offset, offset + byteLength); - this.pos += headOffset + byteLength; - return object; - }; - Decoder.prototype.decodeExtension = function (size, headOffset) { - if (size > this.maxExtLength) { - throw new DecodeError("Max length exceeded: ext length (".concat(size, ") > maxExtLength (").concat(this.maxExtLength, ")")); - } - var extType = this.view.getInt8(this.pos + headOffset); - var data = this.decodeBinary(size, headOffset + 1 /* extType */); - return this.extensionCodec.decode(data, extType, this.context); - }; - Decoder.prototype.lookU8 = function () { - return this.view.getUint8(this.pos); - }; - Decoder.prototype.lookU16 = function () { - return this.view.getUint16(this.pos); - }; - Decoder.prototype.lookU32 = function () { - return this.view.getUint32(this.pos); - }; - Decoder.prototype.readU8 = function () { - var value = this.view.getUint8(this.pos); - this.pos++; - return value; - }; - Decoder.prototype.readI8 = function () { - var value = this.view.getInt8(this.pos); - this.pos++; - return value; - }; - Decoder.prototype.readU16 = function () { - var value = this.view.getUint16(this.pos); - this.pos += 2; - return value; - }; - Decoder.prototype.readI16 = function () { - var value = this.view.getInt16(this.pos); - this.pos += 2; - return value; - }; - Decoder.prototype.readU32 = function () { - var value = this.view.getUint32(this.pos); - this.pos += 4; - return value; - }; - Decoder.prototype.readI32 = function () { - var value = this.view.getInt32(this.pos); - this.pos += 4; - return value; - }; - Decoder.prototype.readU64 = function () { - var value = getUint64(this.view, this.pos); - this.pos += 8; - return value; - }; - Decoder.prototype.readI64 = function () { - var value = getInt64(this.view, this.pos); - this.pos += 8; - return value; - }; - Decoder.prototype.readF32 = function () { - var value = this.view.getFloat32(this.pos); - this.pos += 4; - return value; - }; - Decoder.prototype.readF64 = function () { - var value = this.view.getFloat64(this.pos); - this.pos += 8; - return value; - }; - return Decoder; -}()); -export { Decoder }; -//# sourceMappingURL=Decoder.mjs.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/Decoder.mjs.map b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/Decoder.mjs.map deleted file mode 100644 index 4a664b7b..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/Decoder.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Decoder.mjs","sourceRoot":"","sources":["../src/Decoder.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAsB,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAc,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAU5C,IAAM,iBAAiB,GAAG,UAAC,GAAY;IACrC,IAAM,OAAO,GAAG,OAAO,GAAG,CAAC;IAE3B,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,QAAQ,CAAC;AACtD,CAAC,CAAC;AAmBF,IAAM,kBAAkB,GAAG,CAAC,CAAC,CAAC;AAE9B,IAAM,UAAU,GAAG,IAAI,QAAQ,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;AACpD,IAAM,WAAW,GAAG,IAAI,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AAEtD,8BAA8B;AAC9B,sEAAsE;AACtE,MAAM,CAAC,IAAM,6BAA6B,GAAiB,CAAC;IAC1D,IAAI;QACF,kDAAkD;QAClD,yCAAyC;QACzC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;KACvB;IAAC,OAAO,CAAM,EAAE;QACf,OAAO,CAAC,CAAC,WAAW,CAAC;KACtB;IACD,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;AACnC,CAAC,CAAC,EAAE,CAAC;AAEL,IAAM,SAAS,GAAG,IAAI,6BAA6B,CAAC,mBAAmB,CAAC,CAAC;AAEzE,IAAM,sBAAsB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAEtD;IASE,iBACmB,cAAoF,EACpF,OAAuC,EACvC,YAAyB,EACzB,YAAyB,EACzB,cAA2B,EAC3B,YAAyB,EACzB,YAAyB,EACzB,UAAsD;QAPtD,+BAAA,EAAA,iBAAkD,cAAc,CAAC,YAAmB;QACpF,wBAAA,EAAA,UAAuB,SAAgB;QACvC,6BAAA,EAAA,yBAAyB;QACzB,6BAAA,EAAA,yBAAyB;QACzB,+BAAA,EAAA,2BAA2B;QAC3B,6BAAA,EAAA,yBAAyB;QACzB,6BAAA,EAAA,yBAAyB;QACzB,2BAAA,EAAA,mCAAsD;QAPtD,mBAAc,GAAd,cAAc,CAAsE;QACpF,YAAO,GAAP,OAAO,CAAgC;QACvC,iBAAY,GAAZ,YAAY,CAAa;QACzB,iBAAY,GAAZ,YAAY,CAAa;QACzB,mBAAc,GAAd,cAAc,CAAa;QAC3B,iBAAY,GAAZ,YAAY,CAAa;QACzB,iBAAY,GAAZ,YAAY,CAAa;QACzB,eAAU,GAAV,UAAU,CAA4C;QAhBjE,aAAQ,GAAG,CAAC,CAAC;QACb,QAAG,GAAG,CAAC,CAAC;QAER,SAAI,GAAG,UAAU,CAAC;QAClB,UAAK,GAAG,WAAW,CAAC;QACpB,aAAQ,GAAG,kBAAkB,CAAC;QACrB,UAAK,GAAsB,EAAE,CAAC;IAW5C,CAAC;IAEI,mCAAiB,GAAzB;QACE,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QAClB,IAAI,CAAC,QAAQ,GAAG,kBAAkB,CAAC;QACnC,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;QAEtB,6DAA6D;IAC/D,CAAC;IAEO,2BAAS,GAAjB,UAAkB,MAAwC;QACxD,IAAI,CAAC,KAAK,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACvC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;IACf,CAAC;IAEO,8BAAY,GAApB,UAAqB,MAAwC;QAC3D,IAAI,IAAI,CAAC,QAAQ,KAAK,kBAAkB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE;YACjE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;SACxB;aAAM;YACL,IAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACpD,IAAM,OAAO,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;YAEzC,iCAAiC;YACjC,IAAM,SAAS,GAAG,IAAI,UAAU,CAAC,aAAa,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;YACxE,SAAS,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;YAC7B,SAAS,CAAC,GAAG,CAAC,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;YAC7C,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;SAC3B;IACH,CAAC;IAEO,8BAAY,GAApB,UAAqB,IAAY;QAC/B,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC;IACjD,CAAC;IAEO,sCAAoB,GAA5B,UAA6B,SAAiB;QACtC,IAAA,KAAgB,IAAI,EAAlB,IAAI,UAAA,EAAE,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,UAAU,CAAC,gBAAS,IAAI,CAAC,UAAU,GAAG,GAAG,iBAAO,IAAI,CAAC,UAAU,sCAA4B,SAAS,MAAG,CAAC,CAAC;IACtH,CAAC;IAED;;;OAGG;IACI,wBAAM,GAAb,UAAc,MAAwC;QACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAEvB,IAAM,MAAM,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QACnC,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE;YACxB,MAAM,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SAC3C;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAEO,6BAAW,GAAnB,UAAoB,MAAwC;;;;oBAC1D,IAAI,CAAC,iBAAiB,EAAE,CAAC;oBACzB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;;;yBAEhB,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;oBACzB,qBAAM,IAAI,CAAC,YAAY,EAAE,EAAA;;oBAAzB,SAAyB,CAAC;;;;;KAE7B;IAEY,6BAAW,GAAxB,UAAyB,MAAuD;;;;;;;;wBAC1E,OAAO,GAAG,KAAK,CAAC;;;;wBAEO,WAAA,cAAA,MAAM,CAAA;;;;;wBAAhB,MAAM,mBAAA,CAAA;wBACrB,IAAI,OAAO,EAAE;4BACX,MAAM,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;yBAChD;wBAED,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;wBAE1B,IAAI;4BACF,MAAM,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;4BAC7B,OAAO,GAAG,IAAI,CAAC;yBAChB;wBAAC,OAAO,CAAC,EAAE;4BACV,IAAI,CAAC,CAAC,CAAC,YAAY,6BAA6B,CAAC,EAAE;gCACjD,MAAM,CAAC,CAAC,CAAC,UAAU;6BACpB;4BACD,cAAc;yBACf;wBACD,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;wBAG5B,IAAI,OAAO,EAAE;4BACX,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE;gCACxB,MAAM,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;6BAChD;4BACD,sBAAO,MAAM,EAAC;yBACf;wBAEK,KAA8B,IAAI,EAAhC,QAAQ,cAAA,EAAE,GAAG,SAAA,EAAE,QAAQ,cAAA,CAAU;wBACzC,MAAM,IAAI,UAAU,CAClB,uCAAgC,UAAU,CAAC,QAAQ,CAAC,iBAAO,QAAQ,eAAK,GAAG,4BAAyB,CACrG,CAAC;;;;KACH;IAEM,mCAAiB,GAAxB,UACE,MAAuD;QAEvD,OAAO,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC7C,CAAC;IAEM,8BAAY,GAAnB,UAAoB,MAAuD;QACzE,OAAO,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC9C,CAAC;IAEc,kCAAgB,GAA/B,UAAgC,MAAuD,EAAE,OAAgB;;;;;;;wBACnG,qBAAqB,GAAG,OAAO,CAAC;wBAChC,cAAc,GAAG,CAAC,CAAC,CAAC;;;;wBAEG,WAAA,cAAA,MAAM,CAAA;;;;;wBAAhB,MAAM,mBAAA,CAAA;wBACrB,IAAI,OAAO,IAAI,cAAc,KAAK,CAAC,EAAE;4BACnC,MAAM,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;yBAChD;wBAED,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;wBAE1B,IAAI,qBAAqB,EAAE;4BACzB,cAAc,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;4BACtC,qBAAqB,GAAG,KAAK,CAAC;4BAC9B,IAAI,CAAC,QAAQ,EAAE,CAAC;yBACjB;;;;;;6BAGQ,IAAI;qDACH,IAAI,CAAC,YAAY,EAAE;4BAAzB,gCAAyB;;wBAAzB,SAAyB,CAAC;wBAC1B,IAAI,EAAE,cAAc,KAAK,CAAC,EAAE;4BAC1B,wBAAM;yBACP;;;;;wBAGH,IAAI,CAAC,CAAC,GAAC,YAAY,6BAA6B,CAAC,EAAE;4BACjD,MAAM,GAAC,CAAC,CAAC,UAAU;yBACpB;;;wBAGH,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;KAE7B;IAEO,8BAAY,GAApB;QACE,MAAM,EAAE,OAAO,IAAI,EAAE;YACnB,IAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;YACrC,IAAI,MAAM,SAAS,CAAC;YAEpB,IAAI,QAAQ,IAAI,IAAI,EAAE;gBACpB,0CAA0C;gBAC1C,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;aAC3B;iBAAM,IAAI,QAAQ,GAAG,IAAI,EAAE;gBAC1B,IAAI,QAAQ,GAAG,IAAI,EAAE;oBACnB,0CAA0C;oBAC1C,MAAM,GAAG,QAAQ,CAAC;iBACnB;qBAAM,IAAI,QAAQ,GAAG,IAAI,EAAE;oBAC1B,iCAAiC;oBACjC,IAAM,IAAI,GAAG,QAAQ,GAAG,IAAI,CAAC;oBAC7B,IAAI,IAAI,KAAK,CAAC,EAAE;wBACd,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;wBACxB,IAAI,CAAC,QAAQ,EAAE,CAAC;wBAChB,SAAS,MAAM,CAAC;qBACjB;yBAAM;wBACL,MAAM,GAAG,EAAE,CAAC;qBACb;iBACF;qBAAM,IAAI,QAAQ,GAAG,IAAI,EAAE;oBAC1B,mCAAmC;oBACnC,IAAM,IAAI,GAAG,QAAQ,GAAG,IAAI,CAAC;oBAC7B,IAAI,IAAI,KAAK,CAAC,EAAE;wBACd,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;wBAC1B,IAAI,CAAC,QAAQ,EAAE,CAAC;wBAChB,SAAS,MAAM,CAAC;qBACjB;yBAAM;wBACL,MAAM,GAAG,EAAE,CAAC;qBACb;iBACF;qBAAM;oBACL,iCAAiC;oBACjC,IAAM,UAAU,GAAG,QAAQ,GAAG,IAAI,CAAC;oBACnC,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;iBAC/C;aACF;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,MAAM;gBACN,MAAM,GAAG,IAAI,CAAC;aACf;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,QAAQ;gBACR,MAAM,GAAG,KAAK,CAAC;aAChB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,OAAO;gBACP,MAAM,GAAG,IAAI,CAAC;aACf;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,WAAW;gBACX,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;aACzB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,WAAW;gBACX,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;aACzB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;aACxB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,UAAU;gBACV,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;aACzB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,UAAU;gBACV,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;aACzB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,UAAU;gBACV,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;aACzB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,QAAQ;gBACR,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;aACxB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;aACzB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;aACzB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;aACzB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,QAAQ;gBACR,IAAM,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;gBACjC,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;aAC/C;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,IAAM,UAAU,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBAClC,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;aAC/C;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,IAAM,UAAU,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBAClC,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;aAC/C;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,WAAW;gBACX,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBAC5B,IAAI,IAAI,KAAK,CAAC,EAAE;oBACd,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;oBAC1B,IAAI,CAAC,QAAQ,EAAE,CAAC;oBAChB,SAAS,MAAM,CAAC;iBACjB;qBAAM;oBACL,MAAM,GAAG,EAAE,CAAC;iBACb;aACF;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,WAAW;gBACX,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBAC5B,IAAI,IAAI,KAAK,CAAC,EAAE;oBACd,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;oBAC1B,IAAI,CAAC,QAAQ,EAAE,CAAC;oBAChB,SAAS,MAAM,CAAC;iBACjB;qBAAM;oBACL,MAAM,GAAG,EAAE,CAAC;iBACb;aACF;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBAC5B,IAAI,IAAI,KAAK,CAAC,EAAE;oBACd,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;oBACxB,IAAI,CAAC,QAAQ,EAAE,CAAC;oBAChB,SAAS,MAAM,CAAC;iBACjB;qBAAM;oBACL,MAAM,GAAG,EAAE,CAAC;iBACb;aACF;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBAC5B,IAAI,IAAI,KAAK,CAAC,EAAE;oBACd,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;oBACxB,IAAI,CAAC,QAAQ,EAAE,CAAC;oBAChB,SAAS,MAAM,CAAC;iBACjB;qBAAM;oBACL,MAAM,GAAG,EAAE,CAAC;iBACb;aACF;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,QAAQ;gBACR,IAAM,IAAI,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;gBAC3B,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;aACrC;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBAC5B,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;aACrC;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBAC5B,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;aACrC;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,WAAW;gBACX,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aACrC;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,WAAW;gBACX,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aACrC;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,WAAW;gBACX,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aACrC;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,WAAW;gBACX,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aACrC;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,YAAY;gBACZ,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;aACtC;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,QAAQ;gBACR,IAAM,IAAI,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;gBAC3B,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;aACxC;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBAC5B,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;aACxC;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBAC5B,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;aACxC;iBAAM;gBACL,MAAM,IAAI,WAAW,CAAC,kCAA2B,UAAU,CAAC,QAAQ,CAAC,CAAE,CAAC,CAAC;aAC1E;YAED,IAAI,CAAC,QAAQ,EAAE,CAAC;YAEhB,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;YACzB,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;gBACvB,kBAAkB;gBAClB,IAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC;gBACvC,IAAI,KAAK,CAAC,IAAI,wBAAgB,EAAE;oBAC9B,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;oBACrC,KAAK,CAAC,QAAQ,EAAE,CAAC;oBACjB,IAAI,KAAK,CAAC,QAAQ,KAAK,KAAK,CAAC,IAAI,EAAE;wBACjC,KAAK,CAAC,GAAG,EAAE,CAAC;wBACZ,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC;qBACtB;yBAAM;wBACL,SAAS,MAAM,CAAC;qBACjB;iBACF;qBAAM,IAAI,KAAK,CAAC,IAAI,0BAAkB,EAAE;oBACvC,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE;wBAC9B,MAAM,IAAI,WAAW,CAAC,+CAA+C,GAAG,OAAO,MAAM,CAAC,CAAC;qBACxF;oBACD,IAAI,MAAM,KAAK,WAAW,EAAE;wBAC1B,MAAM,IAAI,WAAW,CAAC,kCAAkC,CAAC,CAAC;qBAC3D;oBAED,KAAK,CAAC,GAAG,GAAG,MAAM,CAAC;oBACnB,KAAK,CAAC,IAAI,0BAAkB,CAAC;oBAC7B,SAAS,MAAM,CAAC;iBACjB;qBAAM;oBACL,mDAAmD;oBAEnD,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,GAAI,CAAC,GAAG,MAAM,CAAC;oBAC/B,KAAK,CAAC,SAAS,EAAE,CAAC;oBAElB,IAAI,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,IAAI,EAAE;wBAClC,KAAK,CAAC,GAAG,EAAE,CAAC;wBACZ,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC;qBACpB;yBAAM;wBACL,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC;wBACjB,KAAK,CAAC,IAAI,wBAAgB,CAAC;wBAC3B,SAAS,MAAM,CAAC;qBACjB;iBACF;aACF;YAED,OAAO,MAAM,CAAC;SACf;IACH,CAAC;IAEO,8BAAY,GAApB;QACE,IAAI,IAAI,CAAC,QAAQ,KAAK,kBAAkB,EAAE;YACxC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YAC9B,sDAAsD;SACvD;QAED,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAEO,0BAAQ,GAAhB;QACE,IAAI,CAAC,QAAQ,GAAG,kBAAkB,CAAC;IACrC,CAAC;IAEO,+BAAa,GAArB;QACE,IAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAErC,QAAQ,QAAQ,EAAE;YAChB,KAAK,IAAI;gBACP,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;YACxB,KAAK,IAAI;gBACP,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;YACxB,OAAO,CAAC,CAAC;gBACP,IAAI,QAAQ,GAAG,IAAI,EAAE;oBACnB,OAAO,QAAQ,GAAG,IAAI,CAAC;iBACxB;qBAAM;oBACL,MAAM,IAAI,WAAW,CAAC,wCAAiC,UAAU,CAAC,QAAQ,CAAC,CAAE,CAAC,CAAC;iBAChF;aACF;SACF;IACH,CAAC;IAEO,8BAAY,GAApB,UAAqB,IAAY;QAC/B,IAAI,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE;YAC5B,MAAM,IAAI,WAAW,CAAC,2CAAoC,IAAI,qCAA2B,IAAI,CAAC,YAAY,MAAG,CAAC,CAAC;SAChH;QAED,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;YACd,IAAI,uBAAe;YACnB,IAAI,MAAA;YACJ,GAAG,EAAE,IAAI;YACT,SAAS,EAAE,CAAC;YACZ,GAAG,EAAE,EAAE;SACR,CAAC,CAAC;IACL,CAAC;IAEO,gCAAc,GAAtB,UAAuB,IAAY;QACjC,IAAI,IAAI,GAAG,IAAI,CAAC,cAAc,EAAE;YAC9B,MAAM,IAAI,WAAW,CAAC,6CAAsC,IAAI,iCAAuB,IAAI,CAAC,cAAc,MAAG,CAAC,CAAC;SAChH;QAED,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;YACd,IAAI,qBAAa;YACjB,IAAI,MAAA;YACJ,KAAK,EAAE,IAAI,KAAK,CAAU,IAAI,CAAC;YAC/B,QAAQ,EAAE,CAAC;SACZ,CAAC,CAAC;IACL,CAAC;IAEO,kCAAgB,GAAxB,UAAyB,UAAkB,EAAE,YAAoB;;QAC/D,IAAI,UAAU,GAAG,IAAI,CAAC,YAAY,EAAE;YAClC,MAAM,IAAI,WAAW,CACnB,kDAA2C,UAAU,+BAAqB,IAAI,CAAC,YAAY,MAAG,CAC/F,CAAC;SACH;QAED,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,GAAG,YAAY,GAAG,UAAU,EAAE;YAChE,MAAM,SAAS,CAAC;SACjB;QAED,IAAM,MAAM,GAAG,IAAI,CAAC,GAAG,GAAG,YAAY,CAAC;QACvC,IAAI,MAAc,CAAC;QACnB,IAAI,IAAI,CAAC,aAAa,EAAE,KAAI,MAAA,IAAI,CAAC,UAAU,0CAAE,WAAW,CAAC,UAAU,CAAC,CAAA,EAAE;YACpE,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;SACjE;aAAM,IAAI,UAAU,GAAG,sBAAsB,EAAE;YAC9C,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;SACvD;aAAM;YACL,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;SACvD;QACD,IAAI,CAAC,GAAG,IAAI,YAAY,GAAG,UAAU,CAAC;QACtC,OAAO,MAAM,CAAC;IAChB,CAAC;IAEO,+BAAa,GAArB;QACE,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;YACzB,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC;YACjD,OAAO,KAAK,CAAC,IAAI,0BAAkB,CAAC;SACrC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,8BAAY,GAApB,UAAqB,UAAkB,EAAE,UAAkB;QACzD,IAAI,UAAU,GAAG,IAAI,CAAC,YAAY,EAAE;YAClC,MAAM,IAAI,WAAW,CAAC,2CAAoC,UAAU,+BAAqB,IAAI,CAAC,YAAY,MAAG,CAAC,CAAC;SAChH;QAED,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,GAAG,UAAU,CAAC,EAAE;YAC/C,MAAM,SAAS,CAAC;SACjB;QAED,IAAM,MAAM,GAAG,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC;QACrC,IAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC;QAChE,IAAI,CAAC,GAAG,IAAI,UAAU,GAAG,UAAU,CAAC;QACpC,OAAO,MAAM,CAAC;IAChB,CAAC;IAEO,iCAAe,GAAvB,UAAwB,IAAY,EAAE,UAAkB;QACtD,IAAI,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE;YAC5B,MAAM,IAAI,WAAW,CAAC,2CAAoC,IAAI,+BAAqB,IAAI,CAAC,YAAY,MAAG,CAAC,CAAC;SAC1G;QAED,IAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,CAAC;QACzD,IAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,CAAC,CAAC,aAAa,CAAC,CAAC;QACnE,OAAO,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACjE,CAAC;IAEO,wBAAM,GAAd;QACE,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACtC,CAAC;IAEO,yBAAO,GAAf;QACE,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAEO,yBAAO,GAAf;QACE,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAEO,wBAAM,GAAd;QACE,IAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC3C,IAAI,CAAC,GAAG,EAAE,CAAC;QACX,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,wBAAM,GAAd;QACE,IAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1C,IAAI,CAAC,GAAG,EAAE,CAAC;QACX,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,yBAAO,GAAf;QACE,IAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC5C,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,yBAAO,GAAf;QACE,IAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC3C,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,yBAAO,GAAf;QACE,IAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC5C,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,yBAAO,GAAf;QACE,IAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC3C,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,yBAAO,GAAf;QACE,IAAM,KAAK,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QAC7C,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,yBAAO,GAAf;QACE,IAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QAC5C,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,yBAAO,GAAf;QACE,IAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC7C,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,yBAAO,GAAf;QACE,IAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC7C,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;IACH,cAAC;AAAD,CAAC,AArjBD,IAqjBC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/Encoder.mjs b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/Encoder.mjs deleted file mode 100644 index 6b24b572..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/Encoder.mjs +++ /dev/null @@ -1,417 +0,0 @@ -import { utf8EncodeJs, utf8Count, TEXT_ENCODER_THRESHOLD, utf8EncodeTE } from "./utils/utf8.mjs"; -import { ExtensionCodec } from "./ExtensionCodec.mjs"; -import { setInt64, setUint64 } from "./utils/int.mjs"; -import { ensureUint8Array } from "./utils/typedArrays.mjs"; -export var DEFAULT_MAX_DEPTH = 100; -export var DEFAULT_INITIAL_BUFFER_SIZE = 2048; -var Encoder = /** @class */ (function () { - function Encoder(extensionCodec, context, maxDepth, initialBufferSize, sortKeys, forceFloat32, ignoreUndefined, forceIntegerToFloat) { - if (extensionCodec === void 0) { extensionCodec = ExtensionCodec.defaultCodec; } - if (context === void 0) { context = undefined; } - if (maxDepth === void 0) { maxDepth = DEFAULT_MAX_DEPTH; } - if (initialBufferSize === void 0) { initialBufferSize = DEFAULT_INITIAL_BUFFER_SIZE; } - if (sortKeys === void 0) { sortKeys = false; } - if (forceFloat32 === void 0) { forceFloat32 = false; } - if (ignoreUndefined === void 0) { ignoreUndefined = false; } - if (forceIntegerToFloat === void 0) { forceIntegerToFloat = false; } - this.extensionCodec = extensionCodec; - this.context = context; - this.maxDepth = maxDepth; - this.initialBufferSize = initialBufferSize; - this.sortKeys = sortKeys; - this.forceFloat32 = forceFloat32; - this.ignoreUndefined = ignoreUndefined; - this.forceIntegerToFloat = forceIntegerToFloat; - this.pos = 0; - this.view = new DataView(new ArrayBuffer(this.initialBufferSize)); - this.bytes = new Uint8Array(this.view.buffer); - } - Encoder.prototype.reinitializeState = function () { - this.pos = 0; - }; - /** - * This is almost equivalent to {@link Encoder#encode}, but it returns an reference of the encoder's internal buffer and thus much faster than {@link Encoder#encode}. - * - * @returns Encodes the object and returns a shared reference the encoder's internal buffer. - */ - Encoder.prototype.encodeSharedRef = function (object) { - this.reinitializeState(); - this.doEncode(object, 1); - return this.bytes.subarray(0, this.pos); - }; - /** - * @returns Encodes the object and returns a copy of the encoder's internal buffer. - */ - Encoder.prototype.encode = function (object) { - this.reinitializeState(); - this.doEncode(object, 1); - return this.bytes.slice(0, this.pos); - }; - Encoder.prototype.doEncode = function (object, depth) { - if (depth > this.maxDepth) { - throw new Error("Too deep objects in depth ".concat(depth)); - } - if (object == null) { - this.encodeNil(); - } - else if (typeof object === "boolean") { - this.encodeBoolean(object); - } - else if (typeof object === "number") { - this.encodeNumber(object); - } - else if (typeof object === "string") { - this.encodeString(object); - } - else { - this.encodeObject(object, depth); - } - }; - Encoder.prototype.ensureBufferSizeToWrite = function (sizeToWrite) { - var requiredSize = this.pos + sizeToWrite; - if (this.view.byteLength < requiredSize) { - this.resizeBuffer(requiredSize * 2); - } - }; - Encoder.prototype.resizeBuffer = function (newSize) { - var newBuffer = new ArrayBuffer(newSize); - var newBytes = new Uint8Array(newBuffer); - var newView = new DataView(newBuffer); - newBytes.set(this.bytes); - this.view = newView; - this.bytes = newBytes; - }; - Encoder.prototype.encodeNil = function () { - this.writeU8(0xc0); - }; - Encoder.prototype.encodeBoolean = function (object) { - if (object === false) { - this.writeU8(0xc2); - } - else { - this.writeU8(0xc3); - } - }; - Encoder.prototype.encodeNumber = function (object) { - if (Number.isSafeInteger(object) && !this.forceIntegerToFloat) { - if (object >= 0) { - if (object < 0x80) { - // positive fixint - this.writeU8(object); - } - else if (object < 0x100) { - // uint 8 - this.writeU8(0xcc); - this.writeU8(object); - } - else if (object < 0x10000) { - // uint 16 - this.writeU8(0xcd); - this.writeU16(object); - } - else if (object < 0x100000000) { - // uint 32 - this.writeU8(0xce); - this.writeU32(object); - } - else { - // uint 64 - this.writeU8(0xcf); - this.writeU64(object); - } - } - else { - if (object >= -0x20) { - // negative fixint - this.writeU8(0xe0 | (object + 0x20)); - } - else if (object >= -0x80) { - // int 8 - this.writeU8(0xd0); - this.writeI8(object); - } - else if (object >= -0x8000) { - // int 16 - this.writeU8(0xd1); - this.writeI16(object); - } - else if (object >= -0x80000000) { - // int 32 - this.writeU8(0xd2); - this.writeI32(object); - } - else { - // int 64 - this.writeU8(0xd3); - this.writeI64(object); - } - } - } - else { - // non-integer numbers - if (this.forceFloat32) { - // float 32 - this.writeU8(0xca); - this.writeF32(object); - } - else { - // float 64 - this.writeU8(0xcb); - this.writeF64(object); - } - } - }; - Encoder.prototype.writeStringHeader = function (byteLength) { - if (byteLength < 32) { - // fixstr - this.writeU8(0xa0 + byteLength); - } - else if (byteLength < 0x100) { - // str 8 - this.writeU8(0xd9); - this.writeU8(byteLength); - } - else if (byteLength < 0x10000) { - // str 16 - this.writeU8(0xda); - this.writeU16(byteLength); - } - else if (byteLength < 0x100000000) { - // str 32 - this.writeU8(0xdb); - this.writeU32(byteLength); - } - else { - throw new Error("Too long string: ".concat(byteLength, " bytes in UTF-8")); - } - }; - Encoder.prototype.encodeString = function (object) { - var maxHeaderSize = 1 + 4; - var strLength = object.length; - if (strLength > TEXT_ENCODER_THRESHOLD) { - var byteLength = utf8Count(object); - this.ensureBufferSizeToWrite(maxHeaderSize + byteLength); - this.writeStringHeader(byteLength); - utf8EncodeTE(object, this.bytes, this.pos); - this.pos += byteLength; - } - else { - var byteLength = utf8Count(object); - this.ensureBufferSizeToWrite(maxHeaderSize + byteLength); - this.writeStringHeader(byteLength); - utf8EncodeJs(object, this.bytes, this.pos); - this.pos += byteLength; - } - }; - Encoder.prototype.encodeObject = function (object, depth) { - // try to encode objects with custom codec first of non-primitives - var ext = this.extensionCodec.tryToEncode(object, this.context); - if (ext != null) { - this.encodeExtension(ext); - } - else if (Array.isArray(object)) { - this.encodeArray(object, depth); - } - else if (ArrayBuffer.isView(object)) { - this.encodeBinary(object); - } - else if (typeof object === "object") { - this.encodeMap(object, depth); - } - else { - // symbol, function and other special object come here unless extensionCodec handles them. - throw new Error("Unrecognized object: ".concat(Object.prototype.toString.apply(object))); - } - }; - Encoder.prototype.encodeBinary = function (object) { - var size = object.byteLength; - if (size < 0x100) { - // bin 8 - this.writeU8(0xc4); - this.writeU8(size); - } - else if (size < 0x10000) { - // bin 16 - this.writeU8(0xc5); - this.writeU16(size); - } - else if (size < 0x100000000) { - // bin 32 - this.writeU8(0xc6); - this.writeU32(size); - } - else { - throw new Error("Too large binary: ".concat(size)); - } - var bytes = ensureUint8Array(object); - this.writeU8a(bytes); - }; - Encoder.prototype.encodeArray = function (object, depth) { - var size = object.length; - if (size < 16) { - // fixarray - this.writeU8(0x90 + size); - } - else if (size < 0x10000) { - // array 16 - this.writeU8(0xdc); - this.writeU16(size); - } - else if (size < 0x100000000) { - // array 32 - this.writeU8(0xdd); - this.writeU32(size); - } - else { - throw new Error("Too large array: ".concat(size)); - } - for (var _i = 0, object_1 = object; _i < object_1.length; _i++) { - var item = object_1[_i]; - this.doEncode(item, depth + 1); - } - }; - Encoder.prototype.countWithoutUndefined = function (object, keys) { - var count = 0; - for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) { - var key = keys_1[_i]; - if (object[key] !== undefined) { - count++; - } - } - return count; - }; - Encoder.prototype.encodeMap = function (object, depth) { - var keys = Object.keys(object); - if (this.sortKeys) { - keys.sort(); - } - var size = this.ignoreUndefined ? this.countWithoutUndefined(object, keys) : keys.length; - if (size < 16) { - // fixmap - this.writeU8(0x80 + size); - } - else if (size < 0x10000) { - // map 16 - this.writeU8(0xde); - this.writeU16(size); - } - else if (size < 0x100000000) { - // map 32 - this.writeU8(0xdf); - this.writeU32(size); - } - else { - throw new Error("Too large map object: ".concat(size)); - } - for (var _i = 0, keys_2 = keys; _i < keys_2.length; _i++) { - var key = keys_2[_i]; - var value = object[key]; - if (!(this.ignoreUndefined && value === undefined)) { - this.encodeString(key); - this.doEncode(value, depth + 1); - } - } - }; - Encoder.prototype.encodeExtension = function (ext) { - var size = ext.data.length; - if (size === 1) { - // fixext 1 - this.writeU8(0xd4); - } - else if (size === 2) { - // fixext 2 - this.writeU8(0xd5); - } - else if (size === 4) { - // fixext 4 - this.writeU8(0xd6); - } - else if (size === 8) { - // fixext 8 - this.writeU8(0xd7); - } - else if (size === 16) { - // fixext 16 - this.writeU8(0xd8); - } - else if (size < 0x100) { - // ext 8 - this.writeU8(0xc7); - this.writeU8(size); - } - else if (size < 0x10000) { - // ext 16 - this.writeU8(0xc8); - this.writeU16(size); - } - else if (size < 0x100000000) { - // ext 32 - this.writeU8(0xc9); - this.writeU32(size); - } - else { - throw new Error("Too large extension object: ".concat(size)); - } - this.writeI8(ext.type); - this.writeU8a(ext.data); - }; - Encoder.prototype.writeU8 = function (value) { - this.ensureBufferSizeToWrite(1); - this.view.setUint8(this.pos, value); - this.pos++; - }; - Encoder.prototype.writeU8a = function (values) { - var size = values.length; - this.ensureBufferSizeToWrite(size); - this.bytes.set(values, this.pos); - this.pos += size; - }; - Encoder.prototype.writeI8 = function (value) { - this.ensureBufferSizeToWrite(1); - this.view.setInt8(this.pos, value); - this.pos++; - }; - Encoder.prototype.writeU16 = function (value) { - this.ensureBufferSizeToWrite(2); - this.view.setUint16(this.pos, value); - this.pos += 2; - }; - Encoder.prototype.writeI16 = function (value) { - this.ensureBufferSizeToWrite(2); - this.view.setInt16(this.pos, value); - this.pos += 2; - }; - Encoder.prototype.writeU32 = function (value) { - this.ensureBufferSizeToWrite(4); - this.view.setUint32(this.pos, value); - this.pos += 4; - }; - Encoder.prototype.writeI32 = function (value) { - this.ensureBufferSizeToWrite(4); - this.view.setInt32(this.pos, value); - this.pos += 4; - }; - Encoder.prototype.writeF32 = function (value) { - this.ensureBufferSizeToWrite(4); - this.view.setFloat32(this.pos, value); - this.pos += 4; - }; - Encoder.prototype.writeF64 = function (value) { - this.ensureBufferSizeToWrite(8); - this.view.setFloat64(this.pos, value); - this.pos += 8; - }; - Encoder.prototype.writeU64 = function (value) { - this.ensureBufferSizeToWrite(8); - setUint64(this.view, this.pos, value); - this.pos += 8; - }; - Encoder.prototype.writeI64 = function (value) { - this.ensureBufferSizeToWrite(8); - setInt64(this.view, this.pos, value); - this.pos += 8; - }; - return Encoder; -}()); -export { Encoder }; -//# sourceMappingURL=Encoder.mjs.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/Encoder.mjs.map b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/Encoder.mjs.map deleted file mode 100644 index 064915b5..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/Encoder.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Encoder.mjs","sourceRoot":"","sources":["../src/Encoder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC7F,OAAO,EAAE,cAAc,EAAsB,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD,MAAM,CAAC,IAAM,iBAAiB,GAAG,GAAG,CAAC;AACrC,MAAM,CAAC,IAAM,2BAA2B,GAAG,IAAI,CAAC;AAEhD;IAKE,iBACmB,cAAoF,EACpF,OAAuC,EACvC,QAA4B,EAC5B,iBAA+C,EAC/C,QAAgB,EAChB,YAAoB,EACpB,eAAuB,EACvB,mBAA2B;QAP3B,+BAAA,EAAA,iBAAkD,cAAc,CAAC,YAAmB;QACpF,wBAAA,EAAA,UAAuB,SAAgB;QACvC,yBAAA,EAAA,4BAA4B;QAC5B,kCAAA,EAAA,+CAA+C;QAC/C,yBAAA,EAAA,gBAAgB;QAChB,6BAAA,EAAA,oBAAoB;QACpB,gCAAA,EAAA,uBAAuB;QACvB,oCAAA,EAAA,2BAA2B;QAP3B,mBAAc,GAAd,cAAc,CAAsE;QACpF,YAAO,GAAP,OAAO,CAAgC;QACvC,aAAQ,GAAR,QAAQ,CAAoB;QAC5B,sBAAiB,GAAjB,iBAAiB,CAA8B;QAC/C,aAAQ,GAAR,QAAQ,CAAQ;QAChB,iBAAY,GAAZ,YAAY,CAAQ;QACpB,oBAAe,GAAf,eAAe,CAAQ;QACvB,wBAAmB,GAAnB,mBAAmB,CAAQ;QAZtC,QAAG,GAAG,CAAC,CAAC;QACR,SAAI,GAAG,IAAI,QAAQ,CAAC,IAAI,WAAW,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;QAC7D,UAAK,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAW9C,CAAC;IAEI,mCAAiB,GAAzB;QACE,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;IACf,CAAC;IAED;;;;OAIG;IACI,iCAAe,GAAtB,UAAuB,MAAe;QACpC,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1C,CAAC;IAED;;OAEG;IACI,wBAAM,GAAb,UAAc,MAAe;QAC3B,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAEO,0BAAQ,GAAhB,UAAiB,MAAe,EAAE,KAAa;QAC7C,IAAI,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE;YACzB,MAAM,IAAI,KAAK,CAAC,oCAA6B,KAAK,CAAE,CAAC,CAAC;SACvD;QAED,IAAI,MAAM,IAAI,IAAI,EAAE;YAClB,IAAI,CAAC,SAAS,EAAE,CAAC;SAClB;aAAM,IAAI,OAAO,MAAM,KAAK,SAAS,EAAE;YACtC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;SAC5B;aAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;YACrC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;SAC3B;aAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;YACrC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;SAC3B;aAAM;YACL,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;SAClC;IACH,CAAC;IAEO,yCAAuB,GAA/B,UAAgC,WAAmB;QACjD,IAAM,YAAY,GAAG,IAAI,CAAC,GAAG,GAAG,WAAW,CAAC;QAE5C,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,GAAG,YAAY,EAAE;YACvC,IAAI,CAAC,YAAY,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC;SACrC;IACH,CAAC;IAEO,8BAAY,GAApB,UAAqB,OAAe;QAClC,IAAM,SAAS,GAAG,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC;QAC3C,IAAM,QAAQ,GAAG,IAAI,UAAU,CAAC,SAAS,CAAC,CAAC;QAC3C,IAAM,OAAO,GAAG,IAAI,QAAQ,CAAC,SAAS,CAAC,CAAC;QAExC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEzB,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC;QACpB,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC;IACxB,CAAC;IAEO,2BAAS,GAAjB;QACE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC;IAEO,+BAAa,GAArB,UAAsB,MAAe;QACnC,IAAI,MAAM,KAAK,KAAK,EAAE;YACpB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACpB;aAAM;YACL,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACpB;IACH,CAAC;IACO,8BAAY,GAApB,UAAqB,MAAc;QACjC,IAAI,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE;YAC7D,IAAI,MAAM,IAAI,CAAC,EAAE;gBACf,IAAI,MAAM,GAAG,IAAI,EAAE;oBACjB,kBAAkB;oBAClB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;iBACtB;qBAAM,IAAI,MAAM,GAAG,KAAK,EAAE;oBACzB,SAAS;oBACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACnB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;iBACtB;qBAAM,IAAI,MAAM,GAAG,OAAO,EAAE;oBAC3B,UAAU;oBACV,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACnB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;iBACvB;qBAAM,IAAI,MAAM,GAAG,WAAW,EAAE;oBAC/B,UAAU;oBACV,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACnB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;iBACvB;qBAAM;oBACL,UAAU;oBACV,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACnB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;iBACvB;aACF;iBAAM;gBACL,IAAI,MAAM,IAAI,CAAC,IAAI,EAAE;oBACnB,kBAAkB;oBAClB,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;iBACtC;qBAAM,IAAI,MAAM,IAAI,CAAC,IAAI,EAAE;oBAC1B,QAAQ;oBACR,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACnB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;iBACtB;qBAAM,IAAI,MAAM,IAAI,CAAC,MAAM,EAAE;oBAC5B,SAAS;oBACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACnB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;iBACvB;qBAAM,IAAI,MAAM,IAAI,CAAC,UAAU,EAAE;oBAChC,SAAS;oBACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACnB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;iBACvB;qBAAM;oBACL,SAAS;oBACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACnB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;iBACvB;aACF;SACF;aAAM;YACL,sBAAsB;YACtB,IAAI,IAAI,CAAC,YAAY,EAAE;gBACrB,WAAW;gBACX,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;gBACnB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;aACvB;iBAAM;gBACL,WAAW;gBACX,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;gBACnB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;aACvB;SACF;IACH,CAAC;IAEO,mCAAiB,GAAzB,UAA0B,UAAkB;QAC1C,IAAI,UAAU,GAAG,EAAE,EAAE;YACnB,SAAS;YACT,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,UAAU,CAAC,CAAC;SACjC;aAAM,IAAI,UAAU,GAAG,KAAK,EAAE;YAC7B,QAAQ;YACR,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;SAC1B;aAAM,IAAI,UAAU,GAAG,OAAO,EAAE;YAC/B,SAAS;YACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;SAC3B;aAAM,IAAI,UAAU,GAAG,WAAW,EAAE;YACnC,SAAS;YACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;SAC3B;aAAM;YACL,MAAM,IAAI,KAAK,CAAC,2BAAoB,UAAU,oBAAiB,CAAC,CAAC;SAClE;IACH,CAAC;IAEO,8BAAY,GAApB,UAAqB,MAAc;QACjC,IAAM,aAAa,GAAG,CAAC,GAAG,CAAC,CAAC;QAC5B,IAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC;QAEhC,IAAI,SAAS,GAAG,sBAAsB,EAAE;YACtC,IAAM,UAAU,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;YACrC,IAAI,CAAC,uBAAuB,CAAC,aAAa,GAAG,UAAU,CAAC,CAAC;YACzD,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACnC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;YAC3C,IAAI,CAAC,GAAG,IAAI,UAAU,CAAC;SACxB;aAAM;YACL,IAAM,UAAU,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;YACrC,IAAI,CAAC,uBAAuB,CAAC,aAAa,GAAG,UAAU,CAAC,CAAC;YACzD,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACnC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;YAC3C,IAAI,CAAC,GAAG,IAAI,UAAU,CAAC;SACxB;IACH,CAAC;IAEO,8BAAY,GAApB,UAAqB,MAAe,EAAE,KAAa;QACjD,kEAAkE;QAClE,IAAM,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAClE,IAAI,GAAG,IAAI,IAAI,EAAE;YACf,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;SAC3B;aAAM,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;YAChC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;SACjC;aAAM,IAAI,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;YACrC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;SAC3B;aAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;YACrC,IAAI,CAAC,SAAS,CAAC,MAAiC,EAAE,KAAK,CAAC,CAAC;SAC1D;aAAM;YACL,0FAA0F;YAC1F,MAAM,IAAI,KAAK,CAAC,+BAAwB,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAE,CAAC,CAAC;SACpF;IACH,CAAC;IAEO,8BAAY,GAApB,UAAqB,MAAuB;QAC1C,IAAM,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC;QAC/B,IAAI,IAAI,GAAG,KAAK,EAAE;YAChB,QAAQ;YACR,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACpB;aAAM,IAAI,IAAI,GAAG,OAAO,EAAE;YACzB,SAAS;YACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACrB;aAAM,IAAI,IAAI,GAAG,WAAW,EAAE;YAC7B,SAAS;YACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACrB;aAAM;YACL,MAAM,IAAI,KAAK,CAAC,4BAAqB,IAAI,CAAE,CAAC,CAAC;SAC9C;QACD,IAAM,KAAK,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;QACvC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;IAEO,6BAAW,GAAnB,UAAoB,MAAsB,EAAE,KAAa;QACvD,IAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;QAC3B,IAAI,IAAI,GAAG,EAAE,EAAE;YACb,WAAW;YACX,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;SAC3B;aAAM,IAAI,IAAI,GAAG,OAAO,EAAE;YACzB,WAAW;YACX,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACrB;aAAM,IAAI,IAAI,GAAG,WAAW,EAAE;YAC7B,WAAW;YACX,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACrB;aAAM;YACL,MAAM,IAAI,KAAK,CAAC,2BAAoB,IAAI,CAAE,CAAC,CAAC;SAC7C;QACD,KAAmB,UAAM,EAAN,iBAAM,EAAN,oBAAM,EAAN,IAAM,EAAE;YAAtB,IAAM,IAAI,eAAA;YACb,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;SAChC;IACH,CAAC;IAEO,uCAAqB,GAA7B,UAA8B,MAA+B,EAAE,IAA2B;QACxF,IAAI,KAAK,GAAG,CAAC,CAAC;QAEd,KAAkB,UAAI,EAAJ,aAAI,EAAJ,kBAAI,EAAJ,IAAI,EAAE;YAAnB,IAAM,GAAG,aAAA;YACZ,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,SAAS,EAAE;gBAC7B,KAAK,EAAE,CAAC;aACT;SACF;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,2BAAS,GAAjB,UAAkB,MAA+B,EAAE,KAAa;QAC9D,IAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjC,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,IAAI,CAAC,IAAI,EAAE,CAAC;SACb;QAED,IAAM,IAAI,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QAE3F,IAAI,IAAI,GAAG,EAAE,EAAE;YACb,SAAS;YACT,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;SAC3B;aAAM,IAAI,IAAI,GAAG,OAAO,EAAE;YACzB,SAAS;YACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACrB;aAAM,IAAI,IAAI,GAAG,WAAW,EAAE;YAC7B,SAAS;YACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACrB;aAAM;YACL,MAAM,IAAI,KAAK,CAAC,gCAAyB,IAAI,CAAE,CAAC,CAAC;SAClD;QAED,KAAkB,UAAI,EAAJ,aAAI,EAAJ,kBAAI,EAAJ,IAAI,EAAE;YAAnB,IAAM,GAAG,aAAA;YACZ,IAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;YAE1B,IAAI,CAAC,CAAC,IAAI,CAAC,eAAe,IAAI,KAAK,KAAK,SAAS,CAAC,EAAE;gBAClD,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;gBACvB,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;aACjC;SACF;IACH,CAAC;IAEO,iCAAe,GAAvB,UAAwB,GAAY;QAClC,IAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC;QAC7B,IAAI,IAAI,KAAK,CAAC,EAAE;YACd,WAAW;YACX,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACpB;aAAM,IAAI,IAAI,KAAK,CAAC,EAAE;YACrB,WAAW;YACX,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACpB;aAAM,IAAI,IAAI,KAAK,CAAC,EAAE;YACrB,WAAW;YACX,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACpB;aAAM,IAAI,IAAI,KAAK,CAAC,EAAE;YACrB,WAAW;YACX,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACpB;aAAM,IAAI,IAAI,KAAK,EAAE,EAAE;YACtB,YAAY;YACZ,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACpB;aAAM,IAAI,IAAI,GAAG,KAAK,EAAE;YACvB,QAAQ;YACR,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACpB;aAAM,IAAI,IAAI,GAAG,OAAO,EAAE;YACzB,SAAS;YACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACrB;aAAM,IAAI,IAAI,GAAG,WAAW,EAAE;YAC7B,SAAS;YACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACrB;aAAM;YACL,MAAM,IAAI,KAAK,CAAC,sCAA+B,IAAI,CAAE,CAAC,CAAC;SACxD;QACD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACvB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAEO,yBAAO,GAAf,UAAgB,KAAa;QAC3B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAEhC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACpC,IAAI,CAAC,GAAG,EAAE,CAAC;IACb,CAAC;IAEO,0BAAQ,GAAhB,UAAiB,MAAyB;QACxC,IAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAEnC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC;IACnB,CAAC;IAEO,yBAAO,GAAf,UAAgB,KAAa;QAC3B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAEhC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACnC,IAAI,CAAC,GAAG,EAAE,CAAC;IACb,CAAC;IAEO,0BAAQ,GAAhB,UAAiB,KAAa;QAC5B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAEhC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACrC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAChB,CAAC;IAEO,0BAAQ,GAAhB,UAAiB,KAAa;QAC5B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAEhC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACpC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAChB,CAAC;IAEO,0BAAQ,GAAhB,UAAiB,KAAa;QAC5B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAEhC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACrC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAChB,CAAC;IAEO,0BAAQ,GAAhB,UAAiB,KAAa;QAC5B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAEhC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACpC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAChB,CAAC;IAEO,0BAAQ,GAAhB,UAAiB,KAAa;QAC5B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAChC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACtC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAChB,CAAC;IAEO,0BAAQ,GAAhB,UAAiB,KAAa;QAC5B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAChC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACtC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAChB,CAAC;IAEO,0BAAQ,GAAhB,UAAiB,KAAa;QAC5B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAEhC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACtC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAChB,CAAC;IAEO,0BAAQ,GAAhB,UAAiB,KAAa;QAC5B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAEhC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACrC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAChB,CAAC;IACH,cAAC;AAAD,CAAC,AAlZD,IAkZC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/ExtData.mjs b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/ExtData.mjs deleted file mode 100644 index d0d86a52..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/ExtData.mjs +++ /dev/null @@ -1,12 +0,0 @@ -/** - * ExtData is used to handle Extension Types that are not registered to ExtensionCodec. - */ -var ExtData = /** @class */ (function () { - function ExtData(type, data) { - this.type = type; - this.data = data; - } - return ExtData; -}()); -export { ExtData }; -//# sourceMappingURL=ExtData.mjs.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/ExtData.mjs.map b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/ExtData.mjs.map deleted file mode 100644 index a2e020b4..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/ExtData.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ExtData.mjs","sourceRoot":"","sources":["../src/ExtData.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;IACE,iBAAqB,IAAY,EAAW,IAAgB;QAAvC,SAAI,GAAJ,IAAI,CAAQ;QAAW,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAClE,cAAC;AAAD,CAAC,AAFD,IAEC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/ExtensionCodec.mjs b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/ExtensionCodec.mjs deleted file mode 100644 index 56bac535..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/ExtensionCodec.mjs +++ /dev/null @@ -1,71 +0,0 @@ -// ExtensionCodec to handle MessagePack extensions -import { ExtData } from "./ExtData.mjs"; -import { timestampExtension } from "./timestamp.mjs"; -var ExtensionCodec = /** @class */ (function () { - function ExtensionCodec() { - // built-in extensions - this.builtInEncoders = []; - this.builtInDecoders = []; - // custom extensions - this.encoders = []; - this.decoders = []; - this.register(timestampExtension); - } - ExtensionCodec.prototype.register = function (_a) { - var type = _a.type, encode = _a.encode, decode = _a.decode; - if (type >= 0) { - // custom extensions - this.encoders[type] = encode; - this.decoders[type] = decode; - } - else { - // built-in extensions - var index = 1 + type; - this.builtInEncoders[index] = encode; - this.builtInDecoders[index] = decode; - } - }; - ExtensionCodec.prototype.tryToEncode = function (object, context) { - // built-in extensions - for (var i = 0; i < this.builtInEncoders.length; i++) { - var encodeExt = this.builtInEncoders[i]; - if (encodeExt != null) { - var data = encodeExt(object, context); - if (data != null) { - var type = -1 - i; - return new ExtData(type, data); - } - } - } - // custom extensions - for (var i = 0; i < this.encoders.length; i++) { - var encodeExt = this.encoders[i]; - if (encodeExt != null) { - var data = encodeExt(object, context); - if (data != null) { - var type = i; - return new ExtData(type, data); - } - } - } - if (object instanceof ExtData) { - // to keep ExtData as is - return object; - } - return null; - }; - ExtensionCodec.prototype.decode = function (data, type, context) { - var decodeExt = type < 0 ? this.builtInDecoders[-1 - type] : this.decoders[type]; - if (decodeExt) { - return decodeExt(data, type, context); - } - else { - // decode() does not fail, returns ExtData instead. - return new ExtData(type, data); - } - }; - ExtensionCodec.defaultCodec = new ExtensionCodec(); - return ExtensionCodec; -}()); -export { ExtensionCodec }; -//# sourceMappingURL=ExtensionCodec.mjs.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/ExtensionCodec.mjs.map b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/ExtensionCodec.mjs.map deleted file mode 100644 index fe9949d6..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/ExtensionCodec.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ExtensionCodec.mjs","sourceRoot":"","sources":["../src/ExtensionCodec.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAElD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAkBjD;IAgBE;QARA,sBAAsB;QACL,oBAAe,GAAgE,EAAE,CAAC;QAClF,oBAAe,GAAgE,EAAE,CAAC;QAEnG,oBAAoB;QACH,aAAQ,GAAgE,EAAE,CAAC;QAC3E,aAAQ,GAAgE,EAAE,CAAC;QAG1F,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IACpC,CAAC;IAEM,iCAAQ,GAAf,UAAgB,EAQf;YAPC,IAAI,UAAA,EACJ,MAAM,YAAA,EACN,MAAM,YAAA;QAMN,IAAI,IAAI,IAAI,CAAC,EAAE;YACb,oBAAoB;YACpB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;YAC7B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;SAC9B;aAAM;YACL,sBAAsB;YACtB,IAAM,KAAK,GAAG,CAAC,GAAG,IAAI,CAAC;YACvB,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC;YACrC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC;SACtC;IACH,CAAC;IAEM,oCAAW,GAAlB,UAAmB,MAAe,EAAE,OAAoB;QACtD,sBAAsB;QACtB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACpD,IAAM,SAAS,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAC1C,IAAI,SAAS,IAAI,IAAI,EAAE;gBACrB,IAAM,IAAI,GAAG,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBACxC,IAAI,IAAI,IAAI,IAAI,EAAE;oBAChB,IAAM,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;oBACpB,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;iBAChC;aACF;SACF;QAED,oBAAoB;QACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC7C,IAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YACnC,IAAI,SAAS,IAAI,IAAI,EAAE;gBACrB,IAAM,IAAI,GAAG,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBACxC,IAAI,IAAI,IAAI,IAAI,EAAE;oBAChB,IAAM,IAAI,GAAG,CAAC,CAAC;oBACf,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;iBAChC;aACF;SACF;QAED,IAAI,MAAM,YAAY,OAAO,EAAE;YAC7B,wBAAwB;YACxB,OAAO,MAAM,CAAC;SACf;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,+BAAM,GAAb,UAAc,IAAgB,EAAE,IAAY,EAAE,OAAoB;QAChE,IAAM,SAAS,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACnF,IAAI,SAAS,EAAE;YACb,OAAO,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;SACvC;aAAM;YACL,mDAAmD;YACnD,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;SAChC;IACH,CAAC;IAhFsB,2BAAY,GAAkC,IAAI,cAAc,EAAE,CAAC;IAiF5F,qBAAC;CAAA,AAlFD,IAkFC;SAlFY,cAAc"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/context.mjs b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/context.mjs deleted file mode 100644 index b14618b0..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/context.mjs +++ /dev/null @@ -1,3 +0,0 @@ -/* eslint-disable @typescript-eslint/ban-types */ -export {}; -//# sourceMappingURL=context.mjs.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/context.mjs.map b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/context.mjs.map deleted file mode 100644 index c5cb5211..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/context.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"context.mjs","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,iDAAiD"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/decode.mjs b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/decode.mjs deleted file mode 100644 index d26588d8..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/decode.mjs +++ /dev/null @@ -1,29 +0,0 @@ -import { Decoder } from "./Decoder.mjs"; -export var defaultDecodeOptions = {}; -/** - * It decodes a single MessagePack object in a buffer. - * - * This is a synchronous decoding function. - * See other variants for asynchronous decoding: {@link decodeAsync()}, {@link decodeStream()}, or {@link decodeArrayStream()}. - * - * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty. - * @throws {@link DecodeError} if the buffer contains invalid data. - */ -export function decode(buffer, options) { - if (options === void 0) { options = defaultDecodeOptions; } - var decoder = new Decoder(options.extensionCodec, options.context, options.maxStrLength, options.maxBinLength, options.maxArrayLength, options.maxMapLength, options.maxExtLength); - return decoder.decode(buffer); -} -/** - * It decodes multiple MessagePack objects in a buffer. - * This is corresponding to {@link decodeMultiStream()}. - * - * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty. - * @throws {@link DecodeError} if the buffer contains invalid data. - */ -export function decodeMulti(buffer, options) { - if (options === void 0) { options = defaultDecodeOptions; } - var decoder = new Decoder(options.extensionCodec, options.context, options.maxStrLength, options.maxBinLength, options.maxArrayLength, options.maxMapLength, options.maxExtLength); - return decoder.decodeMulti(buffer); -} -//# sourceMappingURL=decode.mjs.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/decode.mjs.map b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/decode.mjs.map deleted file mode 100644 index e58ef6c8..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/decode.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"decode.mjs","sourceRoot":"","sources":["../src/decode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA0CpC,MAAM,CAAC,IAAM,oBAAoB,GAAkB,EAAE,CAAC;AAEtD;;;;;;;;GAQG;AACH,MAAM,UAAU,MAAM,CACpB,MAAwC,EACxC,OAAiF;IAAjF,wBAAA,EAAA,UAAsD,oBAA2B;IAEjF,IAAM,OAAO,GAAG,IAAI,OAAO,CACzB,OAAO,CAAC,cAAc,EACrB,OAA6C,CAAC,OAAO,EACtD,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,cAAc,EACtB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,YAAY,CACrB,CAAC;IACF,OAAO,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAChC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,WAAW,CACzB,MAAwC,EACxC,OAAiF;IAAjF,wBAAA,EAAA,UAAsD,oBAA2B;IAEjF,IAAM,OAAO,GAAG,IAAI,OAAO,CACzB,OAAO,CAAC,cAAc,EACrB,OAA6C,CAAC,OAAO,EACtD,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,cAAc,EACtB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,YAAY,CACrB,CAAC;IACF,OAAO,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;AACrC,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/decodeAsync.mjs b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/decodeAsync.mjs deleted file mode 100644 index 614150c5..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/decodeAsync.mjs +++ /dev/null @@ -1,82 +0,0 @@ -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -import { Decoder } from "./Decoder.mjs"; -import { ensureAsyncIterable } from "./utils/stream.mjs"; -import { defaultDecodeOptions } from "./decode.mjs"; -/** - * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty. - * @throws {@link DecodeError} if the buffer contains invalid data. - */ -export function decodeAsync(streamLike, options) { - if (options === void 0) { options = defaultDecodeOptions; } - return __awaiter(this, void 0, void 0, function () { - var stream, decoder; - return __generator(this, function (_a) { - stream = ensureAsyncIterable(streamLike); - decoder = new Decoder(options.extensionCodec, options.context, options.maxStrLength, options.maxBinLength, options.maxArrayLength, options.maxMapLength, options.maxExtLength); - return [2 /*return*/, decoder.decodeAsync(stream)]; - }); - }); -} -/** - * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty. - * @throws {@link DecodeError} if the buffer contains invalid data. - */ -export function decodeArrayStream(streamLike, options) { - if (options === void 0) { options = defaultDecodeOptions; } - var stream = ensureAsyncIterable(streamLike); - var decoder = new Decoder(options.extensionCodec, options.context, options.maxStrLength, options.maxBinLength, options.maxArrayLength, options.maxMapLength, options.maxExtLength); - return decoder.decodeArrayStream(stream); -} -/** - * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty. - * @throws {@link DecodeError} if the buffer contains invalid data. - */ -export function decodeMultiStream(streamLike, options) { - if (options === void 0) { options = defaultDecodeOptions; } - var stream = ensureAsyncIterable(streamLike); - var decoder = new Decoder(options.extensionCodec, options.context, options.maxStrLength, options.maxBinLength, options.maxArrayLength, options.maxMapLength, options.maxExtLength); - return decoder.decodeStream(stream); -} -/** - * @deprecated Use {@link decodeMultiStream()} instead. - */ -export function decodeStream(streamLike, options) { - if (options === void 0) { options = defaultDecodeOptions; } - return decodeMultiStream(streamLike, options); -} -//# sourceMappingURL=decodeAsync.mjs.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/decodeAsync.mjs.map b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/decodeAsync.mjs.map deleted file mode 100644 index 1c0cb5da..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/decodeAsync.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"decodeAsync.mjs","sourceRoot":"","sources":["../src/decodeAsync.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAKhD;;;GAGG;AACF,MAAM,UAAgB,WAAW,CAChC,UAAgE,EAChE,OAAiF;IAAjF,wBAAA,EAAA,UAAsD,oBAA2B;;;;YAE3E,MAAM,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;YAEzC,OAAO,GAAG,IAAI,OAAO,CACzB,OAAO,CAAC,cAAc,EACrB,OAA6C,CAAC,OAAO,EACtD,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,cAAc,EACtB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,YAAY,CACrB,CAAC;YACF,sBAAO,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,EAAC;;;CACpC;AAED;;;GAGG;AACF,MAAM,UAAU,iBAAiB,CAChC,UAAgE,EAChE,OAAiF;IAAjF,wBAAA,EAAA,UAAsD,oBAA2B;IAEjF,IAAM,MAAM,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;IAE/C,IAAM,OAAO,GAAG,IAAI,OAAO,CACzB,OAAO,CAAC,cAAc,EACrB,OAA6C,CAAC,OAAO,EACtD,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,cAAc,EACtB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,YAAY,CACrB,CAAC;IAEF,OAAO,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;AAC3C,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAC/B,UAAgE,EAChE,OAAiF;IAAjF,wBAAA,EAAA,UAAsD,oBAA2B;IAEjF,IAAM,MAAM,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;IAE/C,IAAM,OAAO,GAAG,IAAI,OAAO,CACzB,OAAO,CAAC,cAAc,EACrB,OAA6C,CAAC,OAAO,EACtD,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,cAAc,EACtB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,YAAY,CACrB,CAAC;IAEF,OAAO,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;AACtC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAC1B,UAAgE,EAChE,OAAiF;IAAjF,wBAAA,EAAA,UAAsD,oBAA2B;IAEjF,OAAO,iBAAiB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAChD,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/encode.mjs b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/encode.mjs deleted file mode 100644 index 24919739..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/encode.mjs +++ /dev/null @@ -1,14 +0,0 @@ -import { Encoder } from "./Encoder.mjs"; -var defaultEncodeOptions = {}; -/** - * It encodes `value` in the MessagePack format and - * returns a byte buffer. - * - * The returned buffer is a slice of a larger `ArrayBuffer`, so you have to use its `#byteOffset` and `#byteLength` in order to convert it to another typed arrays including NodeJS `Buffer`. - */ -export function encode(value, options) { - if (options === void 0) { options = defaultEncodeOptions; } - var encoder = new Encoder(options.extensionCodec, options.context, options.maxDepth, options.initialBufferSize, options.sortKeys, options.forceFloat32, options.ignoreUndefined, options.forceIntegerToFloat); - return encoder.encodeSharedRef(value); -} -//# sourceMappingURL=encode.mjs.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/encode.mjs.map b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/encode.mjs.map deleted file mode 100644 index 0342ca3f..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/encode.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"encode.mjs","sourceRoot":"","sources":["../src/encode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAyDpC,IAAM,oBAAoB,GAAkB,EAAE,CAAC;AAE/C;;;;;GAKG;AACH,MAAM,UAAU,MAAM,CACpB,KAAc,EACd,OAAiF;IAAjF,wBAAA,EAAA,UAAsD,oBAA2B;IAEjF,IAAM,OAAO,GAAG,IAAI,OAAO,CACzB,OAAO,CAAC,cAAc,EACrB,OAA6C,CAAC,OAAO,EACtD,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,iBAAiB,EACzB,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,eAAe,EACvB,OAAO,CAAC,mBAAmB,CAC5B,CAAC;IACF,OAAO,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;AACxC,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/index.mjs b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/index.mjs deleted file mode 100644 index a0179b27..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/index.mjs +++ /dev/null @@ -1,20 +0,0 @@ -// Main Functions: -import { encode } from "./encode.mjs"; -export { encode }; -import { decode, decodeMulti } from "./decode.mjs"; -export { decode, decodeMulti }; -import { decodeAsync, decodeArrayStream, decodeMultiStream, decodeStream } from "./decodeAsync.mjs"; -export { decodeAsync, decodeArrayStream, decodeMultiStream, decodeStream }; -import { Decoder, DataViewIndexOutOfBoundsError } from "./Decoder.mjs"; -import { DecodeError } from "./DecodeError.mjs"; -export { Decoder, DecodeError, DataViewIndexOutOfBoundsError }; -import { Encoder } from "./Encoder.mjs"; -export { Encoder }; -// Utilitiies for Extension Types: -import { ExtensionCodec } from "./ExtensionCodec.mjs"; -export { ExtensionCodec }; -import { ExtData } from "./ExtData.mjs"; -export { ExtData }; -import { EXT_TIMESTAMP, encodeDateToTimeSpec, encodeTimeSpecToTimestamp, decodeTimestampToTimeSpec, encodeTimestampExtension, decodeTimestampExtension, } from "./timestamp.mjs"; -export { EXT_TIMESTAMP, encodeDateToTimeSpec, encodeTimeSpecToTimestamp, decodeTimestampToTimeSpec, encodeTimestampExtension, decodeTimestampExtension, }; -//# sourceMappingURL=index.mjs.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/index.mjs.map b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/index.mjs.map deleted file mode 100644 index dfaef4a5..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,CAAC;AAIlB,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;AAI/B,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC;AAE3E,OAAO,EAAE,OAAO,EAAE,6BAA6B,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;AAE/D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB,kCAAkC;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,CAAC;AAG1B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,GACzB,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/timestamp.mjs b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/timestamp.mjs deleted file mode 100644 index bbfd3649..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/timestamp.mjs +++ /dev/null @@ -1,97 +0,0 @@ -// https://github.com/msgpack/msgpack/blob/master/spec.md#timestamp-extension-type -import { DecodeError } from "./DecodeError.mjs"; -import { getInt64, setInt64 } from "./utils/int.mjs"; -export var EXT_TIMESTAMP = -1; -var TIMESTAMP32_MAX_SEC = 0x100000000 - 1; // 32-bit unsigned int -var TIMESTAMP64_MAX_SEC = 0x400000000 - 1; // 34-bit unsigned int -export function encodeTimeSpecToTimestamp(_a) { - var sec = _a.sec, nsec = _a.nsec; - if (sec >= 0 && nsec >= 0 && sec <= TIMESTAMP64_MAX_SEC) { - // Here sec >= 0 && nsec >= 0 - if (nsec === 0 && sec <= TIMESTAMP32_MAX_SEC) { - // timestamp 32 = { sec32 (unsigned) } - var rv = new Uint8Array(4); - var view = new DataView(rv.buffer); - view.setUint32(0, sec); - return rv; - } - else { - // timestamp 64 = { nsec30 (unsigned), sec34 (unsigned) } - var secHigh = sec / 0x100000000; - var secLow = sec & 0xffffffff; - var rv = new Uint8Array(8); - var view = new DataView(rv.buffer); - // nsec30 | secHigh2 - view.setUint32(0, (nsec << 2) | (secHigh & 0x3)); - // secLow32 - view.setUint32(4, secLow); - return rv; - } - } - else { - // timestamp 96 = { nsec32 (unsigned), sec64 (signed) } - var rv = new Uint8Array(12); - var view = new DataView(rv.buffer); - view.setUint32(0, nsec); - setInt64(view, 4, sec); - return rv; - } -} -export function encodeDateToTimeSpec(date) { - var msec = date.getTime(); - var sec = Math.floor(msec / 1e3); - var nsec = (msec - sec * 1e3) * 1e6; - // Normalizes { sec, nsec } to ensure nsec is unsigned. - var nsecInSec = Math.floor(nsec / 1e9); - return { - sec: sec + nsecInSec, - nsec: nsec - nsecInSec * 1e9, - }; -} -export function encodeTimestampExtension(object) { - if (object instanceof Date) { - var timeSpec = encodeDateToTimeSpec(object); - return encodeTimeSpecToTimestamp(timeSpec); - } - else { - return null; - } -} -export function decodeTimestampToTimeSpec(data) { - var view = new DataView(data.buffer, data.byteOffset, data.byteLength); - // data may be 32, 64, or 96 bits - switch (data.byteLength) { - case 4: { - // timestamp 32 = { sec32 } - var sec = view.getUint32(0); - var nsec = 0; - return { sec: sec, nsec: nsec }; - } - case 8: { - // timestamp 64 = { nsec30, sec34 } - var nsec30AndSecHigh2 = view.getUint32(0); - var secLow32 = view.getUint32(4); - var sec = (nsec30AndSecHigh2 & 0x3) * 0x100000000 + secLow32; - var nsec = nsec30AndSecHigh2 >>> 2; - return { sec: sec, nsec: nsec }; - } - case 12: { - // timestamp 96 = { nsec32 (unsigned), sec64 (signed) } - var sec = getInt64(view, 4); - var nsec = view.getUint32(0); - return { sec: sec, nsec: nsec }; - } - default: - throw new DecodeError("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(data.length)); - } -} -export function decodeTimestampExtension(data) { - var timeSpec = decodeTimestampToTimeSpec(data); - return new Date(timeSpec.sec * 1e3 + timeSpec.nsec / 1e6); -} -export var timestampExtension = { - type: EXT_TIMESTAMP, - encode: encodeTimestampExtension, - decode: decodeTimestampExtension, -}; -//# sourceMappingURL=timestamp.mjs.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/timestamp.mjs.map b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/timestamp.mjs.map deleted file mode 100644 index cfb7100a..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/timestamp.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timestamp.mjs","sourceRoot":"","sources":["../src/timestamp.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEjD,MAAM,CAAC,IAAM,aAAa,GAAG,CAAC,CAAC,CAAC;AAOhC,IAAM,mBAAmB,GAAG,WAAW,GAAG,CAAC,CAAC,CAAC,sBAAsB;AACnE,IAAM,mBAAmB,GAAG,WAAW,GAAG,CAAC,CAAC,CAAC,sBAAsB;AAEnE,MAAM,UAAU,yBAAyB,CAAC,EAAuB;QAArB,GAAG,SAAA,EAAE,IAAI,UAAA;IACnD,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,GAAG,IAAI,mBAAmB,EAAE;QACvD,6BAA6B;QAC7B,IAAI,IAAI,KAAK,CAAC,IAAI,GAAG,IAAI,mBAAmB,EAAE;YAC5C,sCAAsC;YACtC,IAAM,EAAE,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;YAC7B,IAAM,IAAI,GAAG,IAAI,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;YACrC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;YACvB,OAAO,EAAE,CAAC;SACX;aAAM;YACL,yDAAyD;YACzD,IAAM,OAAO,GAAG,GAAG,GAAG,WAAW,CAAC;YAClC,IAAM,MAAM,GAAG,GAAG,GAAG,UAAU,CAAC;YAChC,IAAM,EAAE,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;YAC7B,IAAM,IAAI,GAAG,IAAI,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;YACrC,oBAAoB;YACpB,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,CAAC,CAAC;YACjD,WAAW;YACX,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;YAC1B,OAAO,EAAE,CAAC;SACX;KACF;SAAM;QACL,uDAAuD;QACvD,IAAM,EAAE,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;QAC9B,IAAM,IAAI,GAAG,IAAI,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;QACrC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;QACxB,QAAQ,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;QACvB,OAAO,EAAE,CAAC;KACX;AACH,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAU;IAC7C,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;IAC5B,IAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC;IACnC,IAAM,IAAI,GAAG,CAAC,IAAI,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;IAEtC,uDAAuD;IACvD,IAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC;IACzC,OAAO;QACL,GAAG,EAAE,GAAG,GAAG,SAAS;QACpB,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,GAAG;KAC7B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,MAAe;IACtD,IAAI,MAAM,YAAY,IAAI,EAAE;QAC1B,IAAM,QAAQ,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC;QAC9C,OAAO,yBAAyB,CAAC,QAAQ,CAAC,CAAC;KAC5C;SAAM;QACL,OAAO,IAAI,CAAC;KACb;AACH,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,IAAgB;IACxD,IAAM,IAAI,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAEzE,iCAAiC;IACjC,QAAQ,IAAI,CAAC,UAAU,EAAE;QACvB,KAAK,CAAC,CAAC,CAAC;YACN,2BAA2B;YAC3B,IAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YAC9B,IAAM,IAAI,GAAG,CAAC,CAAC;YACf,OAAO,EAAE,GAAG,KAAA,EAAE,IAAI,MAAA,EAAE,CAAC;SACtB;QACD,KAAK,CAAC,CAAC,CAAC;YACN,mCAAmC;YACnC,IAAM,iBAAiB,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YAC5C,IAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACnC,IAAM,GAAG,GAAG,CAAC,iBAAiB,GAAG,GAAG,CAAC,GAAG,WAAW,GAAG,QAAQ,CAAC;YAC/D,IAAM,IAAI,GAAG,iBAAiB,KAAK,CAAC,CAAC;YACrC,OAAO,EAAE,GAAG,KAAA,EAAE,IAAI,MAAA,EAAE,CAAC;SACtB;QACD,KAAK,EAAE,CAAC,CAAC;YACP,uDAAuD;YAEvD,IAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YAC9B,IAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YAC/B,OAAO,EAAE,GAAG,KAAA,EAAE,IAAI,MAAA,EAAE,CAAC;SACtB;QACD;YACE,MAAM,IAAI,WAAW,CAAC,uEAAgE,IAAI,CAAC,MAAM,CAAE,CAAC,CAAC;KACxG;AACH,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,IAAgB;IACvD,IAAM,QAAQ,GAAG,yBAAyB,CAAC,IAAI,CAAC,CAAC;IACjD,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,GAAG,GAAG,GAAG,QAAQ,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,CAAC,IAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,wBAAwB;IAChC,MAAM,EAAE,wBAAwB;CACjC,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/int.mjs b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/int.mjs deleted file mode 100644 index 139369b9..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/int.mjs +++ /dev/null @@ -1,27 +0,0 @@ -// Integer Utility -export var UINT32_MAX = 4294967295; -// DataView extension to handle int64 / uint64, -// where the actual range is 53-bits integer (a.k.a. safe integer) -export function setUint64(view, offset, value) { - var high = value / 4294967296; - var low = value; // high bits are truncated by DataView - view.setUint32(offset, high); - view.setUint32(offset + 4, low); -} -export function setInt64(view, offset, value) { - var high = Math.floor(value / 4294967296); - var low = value; // high bits are truncated by DataView - view.setUint32(offset, high); - view.setUint32(offset + 4, low); -} -export function getInt64(view, offset) { - var high = view.getInt32(offset); - var low = view.getUint32(offset + 4); - return high * 4294967296 + low; -} -export function getUint64(view, offset) { - var high = view.getUint32(offset); - var low = view.getUint32(offset + 4); - return high * 4294967296 + low; -} -//# sourceMappingURL=int.mjs.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/int.mjs.map b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/int.mjs.map deleted file mode 100644 index 52d29e8c..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/int.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"int.mjs","sourceRoot":"","sources":["../../src/utils/int.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,MAAM,CAAC,IAAM,UAAU,GAAG,UAAW,CAAC;AAEtC,+CAA+C;AAC/C,kEAAkE;AAElE,MAAM,UAAU,SAAS,CAAC,IAAc,EAAE,MAAc,EAAE,KAAa;IACrE,IAAM,IAAI,GAAG,KAAK,GAAG,UAAa,CAAC;IACnC,IAAM,GAAG,GAAG,KAAK,CAAC,CAAC,sCAAsC;IACzD,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC7B,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,IAAc,EAAE,MAAc,EAAE,KAAa;IACpE,IAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,UAAa,CAAC,CAAC;IAC/C,IAAM,GAAG,GAAG,KAAK,CAAC,CAAC,sCAAsC;IACzD,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC7B,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,IAAc,EAAE,MAAc;IACrD,IAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnC,IAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACvC,OAAO,IAAI,GAAG,UAAa,GAAG,GAAG,CAAC;AACpC,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,IAAc,EAAE,MAAc;IACtD,IAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACpC,IAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACvC,OAAO,IAAI,GAAG,UAAa,GAAG,GAAG,CAAC;AACpC,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/prettyByte.mjs b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/prettyByte.mjs deleted file mode 100644 index b5cbaf9e..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/prettyByte.mjs +++ /dev/null @@ -1,4 +0,0 @@ -export function prettyByte(byte) { - return "".concat(byte < 0 ? "-" : "", "0x").concat(Math.abs(byte).toString(16).padStart(2, "0")); -} -//# sourceMappingURL=prettyByte.mjs.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/prettyByte.mjs.map b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/prettyByte.mjs.map deleted file mode 100644 index eef54de3..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/prettyByte.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prettyByte.mjs","sourceRoot":"","sources":["../../src/utils/prettyByte.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,UAAU,CAAC,IAAY;IACrC,OAAO,UAAG,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,eAAK,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAE,CAAC;AACnF,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/stream.mjs b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/stream.mjs deleted file mode 100644 index 51e9d8a1..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/stream.mjs +++ /dev/null @@ -1,92 +0,0 @@ -// utility for whatwg streams -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } -var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -}; -export function isAsyncIterable(object) { - return object[Symbol.asyncIterator] != null; -} -function assertNonNull(value) { - if (value == null) { - throw new Error("Assertion Failure: value must not be null nor undefined"); - } -} -export function asyncIterableFromStream(stream) { - return __asyncGenerator(this, arguments, function asyncIterableFromStream_1() { - var reader, _a, done, value; - return __generator(this, function (_b) { - switch (_b.label) { - case 0: - reader = stream.getReader(); - _b.label = 1; - case 1: - _b.trys.push([1, , 9, 10]); - _b.label = 2; - case 2: - if (!true) return [3 /*break*/, 8]; - return [4 /*yield*/, __await(reader.read())]; - case 3: - _a = _b.sent(), done = _a.done, value = _a.value; - if (!done) return [3 /*break*/, 5]; - return [4 /*yield*/, __await(void 0)]; - case 4: return [2 /*return*/, _b.sent()]; - case 5: - assertNonNull(value); - return [4 /*yield*/, __await(value)]; - case 6: return [4 /*yield*/, _b.sent()]; - case 7: - _b.sent(); - return [3 /*break*/, 2]; - case 8: return [3 /*break*/, 10]; - case 9: - reader.releaseLock(); - return [7 /*endfinally*/]; - case 10: return [2 /*return*/]; - } - }); - }); -} -export function ensureAsyncIterable(streamLike) { - if (isAsyncIterable(streamLike)) { - return streamLike; - } - else { - return asyncIterableFromStream(streamLike); - } -} -//# sourceMappingURL=stream.mjs.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/stream.mjs.map b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/stream.mjs.map deleted file mode 100644 index ad04a36a..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/stream.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"stream.mjs","sourceRoot":"","sources":["../../src/utils/stream.ts"],"names":[],"mappings":"AAAA,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQ7B,MAAM,UAAU,eAAe,CAAI,MAA6B;IAC9D,OAAQ,MAAc,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC;AACvD,CAAC;AAED,SAAS,aAAa,CAAI,KAA2B;IACnD,IAAI,KAAK,IAAI,IAAI,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;KAC5E;AACH,CAAC;AAED,MAAM,UAAiB,uBAAuB,CAAI,MAAyB;;;;;;oBACnE,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;;;;;;yBAGzB,IAAI;oBACe,6BAAM,MAAM,CAAC,IAAI,EAAE,GAAA;;oBAArC,KAAkB,SAAmB,EAAnC,IAAI,UAAA,EAAE,KAAK,WAAA;yBACf,IAAI,EAAJ,wBAAI;;wBACN,iCAAO;;oBAET,aAAa,CAAC,KAAK,CAAC,CAAC;iDACf,KAAK;wBAAX,gCAAW;;oBAAX,SAAW,CAAC;;;;oBAGd,MAAM,CAAC,WAAW,EAAE,CAAC;;;;;;CAExB;AAED,MAAM,UAAU,mBAAmB,CAAI,UAAiC;IACtE,IAAI,eAAe,CAAC,UAAU,CAAC,EAAE;QAC/B,OAAO,UAAU,CAAC;KACnB;SAAM;QACL,OAAO,uBAAuB,CAAC,UAAU,CAAC,CAAC;KAC5C;AACH,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/typedArrays.mjs b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/typedArrays.mjs deleted file mode 100644 index fe3ba43b..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/typedArrays.mjs +++ /dev/null @@ -1,23 +0,0 @@ -export function ensureUint8Array(buffer) { - if (buffer instanceof Uint8Array) { - return buffer; - } - else if (ArrayBuffer.isView(buffer)) { - return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); - } - else if (buffer instanceof ArrayBuffer) { - return new Uint8Array(buffer); - } - else { - // ArrayLike - return Uint8Array.from(buffer); - } -} -export function createDataView(buffer) { - if (buffer instanceof ArrayBuffer) { - return new DataView(buffer); - } - var bufferView = ensureUint8Array(buffer); - return new DataView(bufferView.buffer, bufferView.byteOffset, bufferView.byteLength); -} -//# sourceMappingURL=typedArrays.mjs.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/typedArrays.mjs.map b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/typedArrays.mjs.map deleted file mode 100644 index 1a116d84..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/typedArrays.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"typedArrays.mjs","sourceRoot":"","sources":["../../src/utils/typedArrays.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,gBAAgB,CAAC,MAAsE;IACrG,IAAI,MAAM,YAAY,UAAU,EAAE;QAChC,OAAO,MAAM,CAAC;KACf;SAAM,IAAI,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;QACrC,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;KAC5E;SAAM,IAAI,MAAM,YAAY,WAAW,EAAE;QACxC,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;KAC/B;SAAM;QACL,oBAAoB;QACpB,OAAO,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KAChC;AACH,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,MAAyD;IACtF,IAAI,MAAM,YAAY,WAAW,EAAE;QACjC,OAAO,IAAI,QAAQ,CAAC,MAAM,CAAC,CAAC;KAC7B;IAED,IAAM,UAAU,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC5C,OAAO,IAAI,QAAQ,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;AACvF,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/utf8.mjs b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/utf8.mjs deleted file mode 100644 index 0cc4f8e8..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/utf8.mjs +++ /dev/null @@ -1,160 +0,0 @@ -var _a, _b, _c; -/* eslint-disable @typescript-eslint/no-unnecessary-condition */ -import { UINT32_MAX } from "./int.mjs"; -var TEXT_ENCODING_AVAILABLE = (typeof process === "undefined" || ((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a["TEXT_ENCODING"]) !== "never") && - typeof TextEncoder !== "undefined" && - typeof TextDecoder !== "undefined"; -export function utf8Count(str) { - var strLength = str.length; - var byteLength = 0; - var pos = 0; - while (pos < strLength) { - var value = str.charCodeAt(pos++); - if ((value & 0xffffff80) === 0) { - // 1-byte - byteLength++; - continue; - } - else if ((value & 0xfffff800) === 0) { - // 2-bytes - byteLength += 2; - } - else { - // handle surrogate pair - if (value >= 0xd800 && value <= 0xdbff) { - // high surrogate - if (pos < strLength) { - var extra = str.charCodeAt(pos); - if ((extra & 0xfc00) === 0xdc00) { - ++pos; - value = ((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000; - } - } - } - if ((value & 0xffff0000) === 0) { - // 3-byte - byteLength += 3; - } - else { - // 4-byte - byteLength += 4; - } - } - } - return byteLength; -} -export function utf8EncodeJs(str, output, outputOffset) { - var strLength = str.length; - var offset = outputOffset; - var pos = 0; - while (pos < strLength) { - var value = str.charCodeAt(pos++); - if ((value & 0xffffff80) === 0) { - // 1-byte - output[offset++] = value; - continue; - } - else if ((value & 0xfffff800) === 0) { - // 2-bytes - output[offset++] = ((value >> 6) & 0x1f) | 0xc0; - } - else { - // handle surrogate pair - if (value >= 0xd800 && value <= 0xdbff) { - // high surrogate - if (pos < strLength) { - var extra = str.charCodeAt(pos); - if ((extra & 0xfc00) === 0xdc00) { - ++pos; - value = ((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000; - } - } - } - if ((value & 0xffff0000) === 0) { - // 3-byte - output[offset++] = ((value >> 12) & 0x0f) | 0xe0; - output[offset++] = ((value >> 6) & 0x3f) | 0x80; - } - else { - // 4-byte - output[offset++] = ((value >> 18) & 0x07) | 0xf0; - output[offset++] = ((value >> 12) & 0x3f) | 0x80; - output[offset++] = ((value >> 6) & 0x3f) | 0x80; - } - } - output[offset++] = (value & 0x3f) | 0x80; - } -} -var sharedTextEncoder = TEXT_ENCODING_AVAILABLE ? new TextEncoder() : undefined; -export var TEXT_ENCODER_THRESHOLD = !TEXT_ENCODING_AVAILABLE - ? UINT32_MAX - : typeof process !== "undefined" && ((_b = process === null || process === void 0 ? void 0 : process.env) === null || _b === void 0 ? void 0 : _b["TEXT_ENCODING"]) !== "force" - ? 200 - : 0; -function utf8EncodeTEencode(str, output, outputOffset) { - output.set(sharedTextEncoder.encode(str), outputOffset); -} -function utf8EncodeTEencodeInto(str, output, outputOffset) { - sharedTextEncoder.encodeInto(str, output.subarray(outputOffset)); -} -export var utf8EncodeTE = (sharedTextEncoder === null || sharedTextEncoder === void 0 ? void 0 : sharedTextEncoder.encodeInto) ? utf8EncodeTEencodeInto : utf8EncodeTEencode; -var CHUNK_SIZE = 4096; -export function utf8DecodeJs(bytes, inputOffset, byteLength) { - var offset = inputOffset; - var end = offset + byteLength; - var units = []; - var result = ""; - while (offset < end) { - var byte1 = bytes[offset++]; - if ((byte1 & 0x80) === 0) { - // 1 byte - units.push(byte1); - } - else if ((byte1 & 0xe0) === 0xc0) { - // 2 bytes - var byte2 = bytes[offset++] & 0x3f; - units.push(((byte1 & 0x1f) << 6) | byte2); - } - else if ((byte1 & 0xf0) === 0xe0) { - // 3 bytes - var byte2 = bytes[offset++] & 0x3f; - var byte3 = bytes[offset++] & 0x3f; - units.push(((byte1 & 0x1f) << 12) | (byte2 << 6) | byte3); - } - else if ((byte1 & 0xf8) === 0xf0) { - // 4 bytes - var byte2 = bytes[offset++] & 0x3f; - var byte3 = bytes[offset++] & 0x3f; - var byte4 = bytes[offset++] & 0x3f; - var unit = ((byte1 & 0x07) << 0x12) | (byte2 << 0x0c) | (byte3 << 0x06) | byte4; - if (unit > 0xffff) { - unit -= 0x10000; - units.push(((unit >>> 10) & 0x3ff) | 0xd800); - unit = 0xdc00 | (unit & 0x3ff); - } - units.push(unit); - } - else { - units.push(byte1); - } - if (units.length >= CHUNK_SIZE) { - result += String.fromCharCode.apply(String, units); - units.length = 0; - } - } - if (units.length > 0) { - result += String.fromCharCode.apply(String, units); - } - return result; -} -var sharedTextDecoder = TEXT_ENCODING_AVAILABLE ? new TextDecoder() : null; -export var TEXT_DECODER_THRESHOLD = !TEXT_ENCODING_AVAILABLE - ? UINT32_MAX - : typeof process !== "undefined" && ((_c = process === null || process === void 0 ? void 0 : process.env) === null || _c === void 0 ? void 0 : _c["TEXT_DECODER"]) !== "force" - ? 200 - : 0; -export function utf8DecodeTD(bytes, inputOffset, byteLength) { - var stringBytes = bytes.subarray(inputOffset, inputOffset + byteLength); - return sharedTextDecoder.decode(stringBytes); -} -//# sourceMappingURL=utf8.mjs.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/utf8.mjs.map b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/utf8.mjs.map deleted file mode 100644 index 9a84a9af..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+esm/utils/utf8.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utf8.mjs","sourceRoot":"","sources":["../../src/utils/utf8.ts"],"names":[],"mappings":";AAAA,gEAAgE;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,IAAM,uBAAuB,GAC3B,CAAC,OAAO,OAAO,KAAK,WAAW,IAAI,CAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,0CAAG,eAAe,CAAC,MAAK,OAAO,CAAC;IAC/E,OAAO,WAAW,KAAK,WAAW;IAClC,OAAO,WAAW,KAAK,WAAW,CAAC;AAErC,MAAM,UAAU,SAAS,CAAC,GAAW;IACnC,IAAM,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC;IAE7B,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,OAAO,GAAG,GAAG,SAAS,EAAE;QACtB,IAAI,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC;QAElC,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE;YAC9B,SAAS;YACT,UAAU,EAAE,CAAC;YACb,SAAS;SACV;aAAM,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE;YACrC,UAAU;YACV,UAAU,IAAI,CAAC,CAAC;SACjB;aAAM;YACL,wBAAwB;YACxB,IAAI,KAAK,IAAI,MAAM,IAAI,KAAK,IAAI,MAAM,EAAE;gBACtC,iBAAiB;gBACjB,IAAI,GAAG,GAAG,SAAS,EAAE;oBACnB,IAAM,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;oBAClC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,MAAM,EAAE;wBAC/B,EAAE,GAAG,CAAC;wBACN,KAAK,GAAG,CAAC,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,OAAO,CAAC;qBAC7D;iBACF;aACF;YAED,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE;gBAC9B,SAAS;gBACT,UAAU,IAAI,CAAC,CAAC;aACjB;iBAAM;gBACL,SAAS;gBACT,UAAU,IAAI,CAAC,CAAC;aACjB;SACF;KACF;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,GAAW,EAAE,MAAkB,EAAE,YAAoB;IAChF,IAAM,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC;IAC7B,IAAI,MAAM,GAAG,YAAY,CAAC;IAC1B,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,OAAO,GAAG,GAAG,SAAS,EAAE;QACtB,IAAI,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC;QAElC,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE;YAC9B,SAAS;YACT,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,KAAK,CAAC;YACzB,SAAS;SACV;aAAM,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE;YACrC,UAAU;YACV,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;SACjD;aAAM;YACL,wBAAwB;YACxB,IAAI,KAAK,IAAI,MAAM,IAAI,KAAK,IAAI,MAAM,EAAE;gBACtC,iBAAiB;gBACjB,IAAI,GAAG,GAAG,SAAS,EAAE;oBACnB,IAAM,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;oBAClC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,MAAM,EAAE;wBAC/B,EAAE,GAAG,CAAC;wBACN,KAAK,GAAG,CAAC,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,OAAO,CAAC;qBAC7D;iBACF;aACF;YAED,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE;gBAC9B,SAAS;gBACT,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;gBACjD,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;aACjD;iBAAM;gBACL,SAAS;gBACT,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;gBACjD,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;gBACjD,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;aACjD;SACF;QAED,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;KAC1C;AACH,CAAC;AAED,IAAM,iBAAiB,GAAG,uBAAuB,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAClF,MAAM,CAAC,IAAM,sBAAsB,GAAG,CAAC,uBAAuB;IAC5D,CAAC,CAAC,UAAU;IACZ,CAAC,CAAC,OAAO,OAAO,KAAK,WAAW,IAAI,CAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,0CAAG,eAAe,CAAC,MAAK,OAAO;QAC/E,CAAC,CAAC,GAAG;QACL,CAAC,CAAC,CAAC,CAAC;AAEN,SAAS,kBAAkB,CAAC,GAAW,EAAE,MAAkB,EAAE,YAAoB;IAC/E,MAAM,CAAC,GAAG,CAAC,iBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,YAAY,CAAC,CAAC;AAC3D,CAAC;AAED,SAAS,sBAAsB,CAAC,GAAW,EAAE,MAAkB,EAAE,YAAoB;IACnF,iBAAkB,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC;AACpE,CAAC;AAED,MAAM,CAAC,IAAM,YAAY,GAAG,CAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,UAAU,EAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,kBAAkB,CAAC;AAExG,IAAM,UAAU,GAAG,IAAO,CAAC;AAE3B,MAAM,UAAU,YAAY,CAAC,KAAiB,EAAE,WAAmB,EAAE,UAAkB;IACrF,IAAI,MAAM,GAAG,WAAW,CAAC;IACzB,IAAM,GAAG,GAAG,MAAM,GAAG,UAAU,CAAC;IAEhC,IAAM,KAAK,GAAkB,EAAE,CAAC;IAChC,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,OAAO,MAAM,GAAG,GAAG,EAAE;QACnB,IAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,CAAE,CAAC;QAC/B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE;YACxB,SAAS;YACT,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACnB;aAAM,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE;YAClC,UAAU;YACV,IAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,CAAE,GAAG,IAAI,CAAC;YACtC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;SAC3C;aAAM,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE;YAClC,UAAU;YACV,IAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,CAAE,GAAG,IAAI,CAAC;YACtC,IAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,CAAE,GAAG,IAAI,CAAC;YACtC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;SAC3D;aAAM,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE;YAClC,UAAU;YACV,IAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,CAAE,GAAG,IAAI,CAAC;YACtC,IAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,CAAE,GAAG,IAAI,CAAC;YACtC,IAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,CAAE,GAAG,IAAI,CAAC;YACtC,IAAI,IAAI,GAAG,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG,KAAK,CAAC;YAChF,IAAI,IAAI,GAAG,MAAM,EAAE;gBACjB,IAAI,IAAI,OAAO,CAAC;gBAChB,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,KAAK,EAAE,CAAC,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,CAAC;gBAC7C,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC;aAChC;YACD,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAClB;aAAM;YACL,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACnB;QAED,IAAI,KAAK,CAAC,MAAM,IAAI,UAAU,EAAE;YAC9B,MAAM,IAAI,MAAM,CAAC,YAAY,OAAnB,MAAM,EAAiB,KAAK,CAAC,CAAC;YACxC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;SAClB;KACF;IAED,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QACpB,MAAM,IAAI,MAAM,CAAC,YAAY,OAAnB,MAAM,EAAiB,KAAK,CAAC,CAAC;KACzC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,IAAM,iBAAiB,GAAG,uBAAuB,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7E,MAAM,CAAC,IAAM,sBAAsB,GAAG,CAAC,uBAAuB;IAC5D,CAAC,CAAC,UAAU;IACZ,CAAC,CAAC,OAAO,OAAO,KAAK,WAAW,IAAI,CAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,0CAAG,cAAc,CAAC,MAAK,OAAO;QAC9E,CAAC,CAAC,GAAG;QACL,CAAC,CAAC,CAAC,CAAC;AAEN,MAAM,UAAU,YAAY,CAAC,KAAiB,EAAE,WAAmB,EAAE,UAAkB;IACrF,IAAM,WAAW,GAAG,KAAK,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,GAAG,UAAU,CAAC,CAAC;IAC1E,OAAO,iBAAkB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAChD,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+umd/msgpack.js b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+umd/msgpack.js deleted file mode 100644 index 33e5b233..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+umd/msgpack.js +++ /dev/null @@ -1,2059 +0,0 @@ -(function webpackUniversalModuleDefinition(root, factory) { - if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(); - else if(typeof define === 'function' && define.amd) - define([], factory); - else if(typeof exports === 'object') - exports["MessagePack"] = factory(); - else - root["MessagePack"] = factory(); -})(this, function() { -return /******/ (function() { // webpackBootstrap -/******/ "use strict"; -/******/ // The require scope -/******/ var __webpack_require__ = {}; -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/define property getters */ -/******/ !function() { -/******/ // define getter functions for harmony exports -/******/ __webpack_require__.d = function(exports, definition) { -/******/ for(var key in definition) { -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ }(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ !function() { -/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } -/******/ }(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ !function() { -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ }(); -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "DataViewIndexOutOfBoundsError": function() { return /* reexport */ DataViewIndexOutOfBoundsError; }, - "DecodeError": function() { return /* reexport */ DecodeError; }, - "Decoder": function() { return /* reexport */ Decoder; }, - "EXT_TIMESTAMP": function() { return /* reexport */ EXT_TIMESTAMP; }, - "Encoder": function() { return /* reexport */ Encoder; }, - "ExtData": function() { return /* reexport */ ExtData; }, - "ExtensionCodec": function() { return /* reexport */ ExtensionCodec; }, - "decode": function() { return /* reexport */ decode; }, - "decodeArrayStream": function() { return /* reexport */ decodeArrayStream; }, - "decodeAsync": function() { return /* reexport */ decodeAsync; }, - "decodeMulti": function() { return /* reexport */ decodeMulti; }, - "decodeMultiStream": function() { return /* reexport */ decodeMultiStream; }, - "decodeStream": function() { return /* reexport */ decodeStream; }, - "decodeTimestampExtension": function() { return /* reexport */ decodeTimestampExtension; }, - "decodeTimestampToTimeSpec": function() { return /* reexport */ decodeTimestampToTimeSpec; }, - "encode": function() { return /* reexport */ encode; }, - "encodeDateToTimeSpec": function() { return /* reexport */ encodeDateToTimeSpec; }, - "encodeTimeSpecToTimestamp": function() { return /* reexport */ encodeTimeSpecToTimestamp; }, - "encodeTimestampExtension": function() { return /* reexport */ encodeTimestampExtension; } -}); - -;// CONCATENATED MODULE: ./src/utils/int.ts -// Integer Utility -var UINT32_MAX = 4294967295; -// DataView extension to handle int64 / uint64, -// where the actual range is 53-bits integer (a.k.a. safe integer) -function setUint64(view, offset, value) { - var high = value / 4294967296; - var low = value; // high bits are truncated by DataView - view.setUint32(offset, high); - view.setUint32(offset + 4, low); -} -function setInt64(view, offset, value) { - var high = Math.floor(value / 4294967296); - var low = value; // high bits are truncated by DataView - view.setUint32(offset, high); - view.setUint32(offset + 4, low); -} -function getInt64(view, offset) { - var high = view.getInt32(offset); - var low = view.getUint32(offset + 4); - return high * 4294967296 + low; -} -function getUint64(view, offset) { - var high = view.getUint32(offset); - var low = view.getUint32(offset + 4); - return high * 4294967296 + low; -} - -;// CONCATENATED MODULE: ./src/utils/utf8.ts -var __read = (undefined && undefined.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -var _a, _b, _c; -/* eslint-disable @typescript-eslint/no-unnecessary-condition */ - -var TEXT_ENCODING_AVAILABLE = (typeof process === "undefined" || ((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a["TEXT_ENCODING"]) !== "never") && - typeof TextEncoder !== "undefined" && - typeof TextDecoder !== "undefined"; -function utf8Count(str) { - var strLength = str.length; - var byteLength = 0; - var pos = 0; - while (pos < strLength) { - var value = str.charCodeAt(pos++); - if ((value & 0xffffff80) === 0) { - // 1-byte - byteLength++; - continue; - } - else if ((value & 0xfffff800) === 0) { - // 2-bytes - byteLength += 2; - } - else { - // handle surrogate pair - if (value >= 0xd800 && value <= 0xdbff) { - // high surrogate - if (pos < strLength) { - var extra = str.charCodeAt(pos); - if ((extra & 0xfc00) === 0xdc00) { - ++pos; - value = ((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000; - } - } - } - if ((value & 0xffff0000) === 0) { - // 3-byte - byteLength += 3; - } - else { - // 4-byte - byteLength += 4; - } - } - } - return byteLength; -} -function utf8EncodeJs(str, output, outputOffset) { - var strLength = str.length; - var offset = outputOffset; - var pos = 0; - while (pos < strLength) { - var value = str.charCodeAt(pos++); - if ((value & 0xffffff80) === 0) { - // 1-byte - output[offset++] = value; - continue; - } - else if ((value & 0xfffff800) === 0) { - // 2-bytes - output[offset++] = ((value >> 6) & 0x1f) | 0xc0; - } - else { - // handle surrogate pair - if (value >= 0xd800 && value <= 0xdbff) { - // high surrogate - if (pos < strLength) { - var extra = str.charCodeAt(pos); - if ((extra & 0xfc00) === 0xdc00) { - ++pos; - value = ((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000; - } - } - } - if ((value & 0xffff0000) === 0) { - // 3-byte - output[offset++] = ((value >> 12) & 0x0f) | 0xe0; - output[offset++] = ((value >> 6) & 0x3f) | 0x80; - } - else { - // 4-byte - output[offset++] = ((value >> 18) & 0x07) | 0xf0; - output[offset++] = ((value >> 12) & 0x3f) | 0x80; - output[offset++] = ((value >> 6) & 0x3f) | 0x80; - } - } - output[offset++] = (value & 0x3f) | 0x80; - } -} -var sharedTextEncoder = TEXT_ENCODING_AVAILABLE ? new TextEncoder() : undefined; -var TEXT_ENCODER_THRESHOLD = !TEXT_ENCODING_AVAILABLE - ? UINT32_MAX - : typeof process !== "undefined" && ((_b = process === null || process === void 0 ? void 0 : process.env) === null || _b === void 0 ? void 0 : _b["TEXT_ENCODING"]) !== "force" - ? 200 - : 0; -function utf8EncodeTEencode(str, output, outputOffset) { - output.set(sharedTextEncoder.encode(str), outputOffset); -} -function utf8EncodeTEencodeInto(str, output, outputOffset) { - sharedTextEncoder.encodeInto(str, output.subarray(outputOffset)); -} -var utf8EncodeTE = (sharedTextEncoder === null || sharedTextEncoder === void 0 ? void 0 : sharedTextEncoder.encodeInto) ? utf8EncodeTEencodeInto : utf8EncodeTEencode; -var CHUNK_SIZE = 4096; -function utf8DecodeJs(bytes, inputOffset, byteLength) { - var offset = inputOffset; - var end = offset + byteLength; - var units = []; - var result = ""; - while (offset < end) { - var byte1 = bytes[offset++]; - if ((byte1 & 0x80) === 0) { - // 1 byte - units.push(byte1); - } - else if ((byte1 & 0xe0) === 0xc0) { - // 2 bytes - var byte2 = bytes[offset++] & 0x3f; - units.push(((byte1 & 0x1f) << 6) | byte2); - } - else if ((byte1 & 0xf0) === 0xe0) { - // 3 bytes - var byte2 = bytes[offset++] & 0x3f; - var byte3 = bytes[offset++] & 0x3f; - units.push(((byte1 & 0x1f) << 12) | (byte2 << 6) | byte3); - } - else if ((byte1 & 0xf8) === 0xf0) { - // 4 bytes - var byte2 = bytes[offset++] & 0x3f; - var byte3 = bytes[offset++] & 0x3f; - var byte4 = bytes[offset++] & 0x3f; - var unit = ((byte1 & 0x07) << 0x12) | (byte2 << 0x0c) | (byte3 << 0x06) | byte4; - if (unit > 0xffff) { - unit -= 0x10000; - units.push(((unit >>> 10) & 0x3ff) | 0xd800); - unit = 0xdc00 | (unit & 0x3ff); - } - units.push(unit); - } - else { - units.push(byte1); - } - if (units.length >= CHUNK_SIZE) { - result += String.fromCharCode.apply(String, __spreadArray([], __read(units), false)); - units.length = 0; - } - } - if (units.length > 0) { - result += String.fromCharCode.apply(String, __spreadArray([], __read(units), false)); - } - return result; -} -var sharedTextDecoder = TEXT_ENCODING_AVAILABLE ? new TextDecoder() : null; -var TEXT_DECODER_THRESHOLD = !TEXT_ENCODING_AVAILABLE - ? UINT32_MAX - : typeof process !== "undefined" && ((_c = process === null || process === void 0 ? void 0 : process.env) === null || _c === void 0 ? void 0 : _c["TEXT_DECODER"]) !== "force" - ? 200 - : 0; -function utf8DecodeTD(bytes, inputOffset, byteLength) { - var stringBytes = bytes.subarray(inputOffset, inputOffset + byteLength); - return sharedTextDecoder.decode(stringBytes); -} - -;// CONCATENATED MODULE: ./src/ExtData.ts -/** - * ExtData is used to handle Extension Types that are not registered to ExtensionCodec. - */ -var ExtData = /** @class */ (function () { - function ExtData(type, data) { - this.type = type; - this.data = data; - } - return ExtData; -}()); - - -;// CONCATENATED MODULE: ./src/DecodeError.ts -var __extends = (undefined && undefined.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var DecodeError = /** @class */ (function (_super) { - __extends(DecodeError, _super); - function DecodeError(message) { - var _this = _super.call(this, message) || this; - // fix the prototype chain in a cross-platform way - var proto = Object.create(DecodeError.prototype); - Object.setPrototypeOf(_this, proto); - Object.defineProperty(_this, "name", { - configurable: true, - enumerable: false, - value: DecodeError.name, - }); - return _this; - } - return DecodeError; -}(Error)); - - -;// CONCATENATED MODULE: ./src/timestamp.ts -// https://github.com/msgpack/msgpack/blob/master/spec.md#timestamp-extension-type - - -var EXT_TIMESTAMP = -1; -var TIMESTAMP32_MAX_SEC = 0x100000000 - 1; // 32-bit unsigned int -var TIMESTAMP64_MAX_SEC = 0x400000000 - 1; // 34-bit unsigned int -function encodeTimeSpecToTimestamp(_a) { - var sec = _a.sec, nsec = _a.nsec; - if (sec >= 0 && nsec >= 0 && sec <= TIMESTAMP64_MAX_SEC) { - // Here sec >= 0 && nsec >= 0 - if (nsec === 0 && sec <= TIMESTAMP32_MAX_SEC) { - // timestamp 32 = { sec32 (unsigned) } - var rv = new Uint8Array(4); - var view = new DataView(rv.buffer); - view.setUint32(0, sec); - return rv; - } - else { - // timestamp 64 = { nsec30 (unsigned), sec34 (unsigned) } - var secHigh = sec / 0x100000000; - var secLow = sec & 0xffffffff; - var rv = new Uint8Array(8); - var view = new DataView(rv.buffer); - // nsec30 | secHigh2 - view.setUint32(0, (nsec << 2) | (secHigh & 0x3)); - // secLow32 - view.setUint32(4, secLow); - return rv; - } - } - else { - // timestamp 96 = { nsec32 (unsigned), sec64 (signed) } - var rv = new Uint8Array(12); - var view = new DataView(rv.buffer); - view.setUint32(0, nsec); - setInt64(view, 4, sec); - return rv; - } -} -function encodeDateToTimeSpec(date) { - var msec = date.getTime(); - var sec = Math.floor(msec / 1e3); - var nsec = (msec - sec * 1e3) * 1e6; - // Normalizes { sec, nsec } to ensure nsec is unsigned. - var nsecInSec = Math.floor(nsec / 1e9); - return { - sec: sec + nsecInSec, - nsec: nsec - nsecInSec * 1e9, - }; -} -function encodeTimestampExtension(object) { - if (object instanceof Date) { - var timeSpec = encodeDateToTimeSpec(object); - return encodeTimeSpecToTimestamp(timeSpec); - } - else { - return null; - } -} -function decodeTimestampToTimeSpec(data) { - var view = new DataView(data.buffer, data.byteOffset, data.byteLength); - // data may be 32, 64, or 96 bits - switch (data.byteLength) { - case 4: { - // timestamp 32 = { sec32 } - var sec = view.getUint32(0); - var nsec = 0; - return { sec: sec, nsec: nsec }; - } - case 8: { - // timestamp 64 = { nsec30, sec34 } - var nsec30AndSecHigh2 = view.getUint32(0); - var secLow32 = view.getUint32(4); - var sec = (nsec30AndSecHigh2 & 0x3) * 0x100000000 + secLow32; - var nsec = nsec30AndSecHigh2 >>> 2; - return { sec: sec, nsec: nsec }; - } - case 12: { - // timestamp 96 = { nsec32 (unsigned), sec64 (signed) } - var sec = getInt64(view, 4); - var nsec = view.getUint32(0); - return { sec: sec, nsec: nsec }; - } - default: - throw new DecodeError("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(data.length)); - } -} -function decodeTimestampExtension(data) { - var timeSpec = decodeTimestampToTimeSpec(data); - return new Date(timeSpec.sec * 1e3 + timeSpec.nsec / 1e6); -} -var timestampExtension = { - type: EXT_TIMESTAMP, - encode: encodeTimestampExtension, - decode: decodeTimestampExtension, -}; - -;// CONCATENATED MODULE: ./src/ExtensionCodec.ts -// ExtensionCodec to handle MessagePack extensions - - -var ExtensionCodec = /** @class */ (function () { - function ExtensionCodec() { - // built-in extensions - this.builtInEncoders = []; - this.builtInDecoders = []; - // custom extensions - this.encoders = []; - this.decoders = []; - this.register(timestampExtension); - } - ExtensionCodec.prototype.register = function (_a) { - var type = _a.type, encode = _a.encode, decode = _a.decode; - if (type >= 0) { - // custom extensions - this.encoders[type] = encode; - this.decoders[type] = decode; - } - else { - // built-in extensions - var index = 1 + type; - this.builtInEncoders[index] = encode; - this.builtInDecoders[index] = decode; - } - }; - ExtensionCodec.prototype.tryToEncode = function (object, context) { - // built-in extensions - for (var i = 0; i < this.builtInEncoders.length; i++) { - var encodeExt = this.builtInEncoders[i]; - if (encodeExt != null) { - var data = encodeExt(object, context); - if (data != null) { - var type = -1 - i; - return new ExtData(type, data); - } - } - } - // custom extensions - for (var i = 0; i < this.encoders.length; i++) { - var encodeExt = this.encoders[i]; - if (encodeExt != null) { - var data = encodeExt(object, context); - if (data != null) { - var type = i; - return new ExtData(type, data); - } - } - } - if (object instanceof ExtData) { - // to keep ExtData as is - return object; - } - return null; - }; - ExtensionCodec.prototype.decode = function (data, type, context) { - var decodeExt = type < 0 ? this.builtInDecoders[-1 - type] : this.decoders[type]; - if (decodeExt) { - return decodeExt(data, type, context); - } - else { - // decode() does not fail, returns ExtData instead. - return new ExtData(type, data); - } - }; - ExtensionCodec.defaultCodec = new ExtensionCodec(); - return ExtensionCodec; -}()); - - -;// CONCATENATED MODULE: ./src/utils/typedArrays.ts -function ensureUint8Array(buffer) { - if (buffer instanceof Uint8Array) { - return buffer; - } - else if (ArrayBuffer.isView(buffer)) { - return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); - } - else if (buffer instanceof ArrayBuffer) { - return new Uint8Array(buffer); - } - else { - // ArrayLike - return Uint8Array.from(buffer); - } -} -function createDataView(buffer) { - if (buffer instanceof ArrayBuffer) { - return new DataView(buffer); - } - var bufferView = ensureUint8Array(buffer); - return new DataView(bufferView.buffer, bufferView.byteOffset, bufferView.byteLength); -} - -;// CONCATENATED MODULE: ./src/Encoder.ts -var Encoder_values = (undefined && undefined.__values) || function(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -}; - - - - -var DEFAULT_MAX_DEPTH = 100; -var DEFAULT_INITIAL_BUFFER_SIZE = 2048; -var Encoder = /** @class */ (function () { - function Encoder(extensionCodec, context, maxDepth, initialBufferSize, sortKeys, forceFloat32, ignoreUndefined, forceIntegerToFloat) { - if (extensionCodec === void 0) { extensionCodec = ExtensionCodec.defaultCodec; } - if (context === void 0) { context = undefined; } - if (maxDepth === void 0) { maxDepth = DEFAULT_MAX_DEPTH; } - if (initialBufferSize === void 0) { initialBufferSize = DEFAULT_INITIAL_BUFFER_SIZE; } - if (sortKeys === void 0) { sortKeys = false; } - if (forceFloat32 === void 0) { forceFloat32 = false; } - if (ignoreUndefined === void 0) { ignoreUndefined = false; } - if (forceIntegerToFloat === void 0) { forceIntegerToFloat = false; } - this.extensionCodec = extensionCodec; - this.context = context; - this.maxDepth = maxDepth; - this.initialBufferSize = initialBufferSize; - this.sortKeys = sortKeys; - this.forceFloat32 = forceFloat32; - this.ignoreUndefined = ignoreUndefined; - this.forceIntegerToFloat = forceIntegerToFloat; - this.pos = 0; - this.view = new DataView(new ArrayBuffer(this.initialBufferSize)); - this.bytes = new Uint8Array(this.view.buffer); - } - Encoder.prototype.reinitializeState = function () { - this.pos = 0; - }; - /** - * This is almost equivalent to {@link Encoder#encode}, but it returns an reference of the encoder's internal buffer and thus much faster than {@link Encoder#encode}. - * - * @returns Encodes the object and returns a shared reference the encoder's internal buffer. - */ - Encoder.prototype.encodeSharedRef = function (object) { - this.reinitializeState(); - this.doEncode(object, 1); - return this.bytes.subarray(0, this.pos); - }; - /** - * @returns Encodes the object and returns a copy of the encoder's internal buffer. - */ - Encoder.prototype.encode = function (object) { - this.reinitializeState(); - this.doEncode(object, 1); - return this.bytes.slice(0, this.pos); - }; - Encoder.prototype.doEncode = function (object, depth) { - if (depth > this.maxDepth) { - throw new Error("Too deep objects in depth ".concat(depth)); - } - if (object == null) { - this.encodeNil(); - } - else if (typeof object === "boolean") { - this.encodeBoolean(object); - } - else if (typeof object === "number") { - this.encodeNumber(object); - } - else if (typeof object === "string") { - this.encodeString(object); - } - else { - this.encodeObject(object, depth); - } - }; - Encoder.prototype.ensureBufferSizeToWrite = function (sizeToWrite) { - var requiredSize = this.pos + sizeToWrite; - if (this.view.byteLength < requiredSize) { - this.resizeBuffer(requiredSize * 2); - } - }; - Encoder.prototype.resizeBuffer = function (newSize) { - var newBuffer = new ArrayBuffer(newSize); - var newBytes = new Uint8Array(newBuffer); - var newView = new DataView(newBuffer); - newBytes.set(this.bytes); - this.view = newView; - this.bytes = newBytes; - }; - Encoder.prototype.encodeNil = function () { - this.writeU8(0xc0); - }; - Encoder.prototype.encodeBoolean = function (object) { - if (object === false) { - this.writeU8(0xc2); - } - else { - this.writeU8(0xc3); - } - }; - Encoder.prototype.encodeNumber = function (object) { - if (Number.isSafeInteger(object) && !this.forceIntegerToFloat) { - if (object >= 0) { - if (object < 0x80) { - // positive fixint - this.writeU8(object); - } - else if (object < 0x100) { - // uint 8 - this.writeU8(0xcc); - this.writeU8(object); - } - else if (object < 0x10000) { - // uint 16 - this.writeU8(0xcd); - this.writeU16(object); - } - else if (object < 0x100000000) { - // uint 32 - this.writeU8(0xce); - this.writeU32(object); - } - else { - // uint 64 - this.writeU8(0xcf); - this.writeU64(object); - } - } - else { - if (object >= -0x20) { - // negative fixint - this.writeU8(0xe0 | (object + 0x20)); - } - else if (object >= -0x80) { - // int 8 - this.writeU8(0xd0); - this.writeI8(object); - } - else if (object >= -0x8000) { - // int 16 - this.writeU8(0xd1); - this.writeI16(object); - } - else if (object >= -0x80000000) { - // int 32 - this.writeU8(0xd2); - this.writeI32(object); - } - else { - // int 64 - this.writeU8(0xd3); - this.writeI64(object); - } - } - } - else { - // non-integer numbers - if (this.forceFloat32) { - // float 32 - this.writeU8(0xca); - this.writeF32(object); - } - else { - // float 64 - this.writeU8(0xcb); - this.writeF64(object); - } - } - }; - Encoder.prototype.writeStringHeader = function (byteLength) { - if (byteLength < 32) { - // fixstr - this.writeU8(0xa0 + byteLength); - } - else if (byteLength < 0x100) { - // str 8 - this.writeU8(0xd9); - this.writeU8(byteLength); - } - else if (byteLength < 0x10000) { - // str 16 - this.writeU8(0xda); - this.writeU16(byteLength); - } - else if (byteLength < 0x100000000) { - // str 32 - this.writeU8(0xdb); - this.writeU32(byteLength); - } - else { - throw new Error("Too long string: ".concat(byteLength, " bytes in UTF-8")); - } - }; - Encoder.prototype.encodeString = function (object) { - var maxHeaderSize = 1 + 4; - var strLength = object.length; - if (strLength > TEXT_ENCODER_THRESHOLD) { - var byteLength = utf8Count(object); - this.ensureBufferSizeToWrite(maxHeaderSize + byteLength); - this.writeStringHeader(byteLength); - utf8EncodeTE(object, this.bytes, this.pos); - this.pos += byteLength; - } - else { - var byteLength = utf8Count(object); - this.ensureBufferSizeToWrite(maxHeaderSize + byteLength); - this.writeStringHeader(byteLength); - utf8EncodeJs(object, this.bytes, this.pos); - this.pos += byteLength; - } - }; - Encoder.prototype.encodeObject = function (object, depth) { - // try to encode objects with custom codec first of non-primitives - var ext = this.extensionCodec.tryToEncode(object, this.context); - if (ext != null) { - this.encodeExtension(ext); - } - else if (Array.isArray(object)) { - this.encodeArray(object, depth); - } - else if (ArrayBuffer.isView(object)) { - this.encodeBinary(object); - } - else if (typeof object === "object") { - this.encodeMap(object, depth); - } - else { - // symbol, function and other special object come here unless extensionCodec handles them. - throw new Error("Unrecognized object: ".concat(Object.prototype.toString.apply(object))); - } - }; - Encoder.prototype.encodeBinary = function (object) { - var size = object.byteLength; - if (size < 0x100) { - // bin 8 - this.writeU8(0xc4); - this.writeU8(size); - } - else if (size < 0x10000) { - // bin 16 - this.writeU8(0xc5); - this.writeU16(size); - } - else if (size < 0x100000000) { - // bin 32 - this.writeU8(0xc6); - this.writeU32(size); - } - else { - throw new Error("Too large binary: ".concat(size)); - } - var bytes = ensureUint8Array(object); - this.writeU8a(bytes); - }; - Encoder.prototype.encodeArray = function (object, depth) { - var e_1, _a; - var size = object.length; - if (size < 16) { - // fixarray - this.writeU8(0x90 + size); - } - else if (size < 0x10000) { - // array 16 - this.writeU8(0xdc); - this.writeU16(size); - } - else if (size < 0x100000000) { - // array 32 - this.writeU8(0xdd); - this.writeU32(size); - } - else { - throw new Error("Too large array: ".concat(size)); - } - try { - for (var object_1 = Encoder_values(object), object_1_1 = object_1.next(); !object_1_1.done; object_1_1 = object_1.next()) { - var item = object_1_1.value; - this.doEncode(item, depth + 1); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (object_1_1 && !object_1_1.done && (_a = object_1.return)) _a.call(object_1); - } - finally { if (e_1) throw e_1.error; } - } - }; - Encoder.prototype.countWithoutUndefined = function (object, keys) { - var e_2, _a; - var count = 0; - try { - for (var keys_1 = Encoder_values(keys), keys_1_1 = keys_1.next(); !keys_1_1.done; keys_1_1 = keys_1.next()) { - var key = keys_1_1.value; - if (object[key] !== undefined) { - count++; - } - } - } - catch (e_2_1) { e_2 = { error: e_2_1 }; } - finally { - try { - if (keys_1_1 && !keys_1_1.done && (_a = keys_1.return)) _a.call(keys_1); - } - finally { if (e_2) throw e_2.error; } - } - return count; - }; - Encoder.prototype.encodeMap = function (object, depth) { - var e_3, _a; - var keys = Object.keys(object); - if (this.sortKeys) { - keys.sort(); - } - var size = this.ignoreUndefined ? this.countWithoutUndefined(object, keys) : keys.length; - if (size < 16) { - // fixmap - this.writeU8(0x80 + size); - } - else if (size < 0x10000) { - // map 16 - this.writeU8(0xde); - this.writeU16(size); - } - else if (size < 0x100000000) { - // map 32 - this.writeU8(0xdf); - this.writeU32(size); - } - else { - throw new Error("Too large map object: ".concat(size)); - } - try { - for (var keys_2 = Encoder_values(keys), keys_2_1 = keys_2.next(); !keys_2_1.done; keys_2_1 = keys_2.next()) { - var key = keys_2_1.value; - var value = object[key]; - if (!(this.ignoreUndefined && value === undefined)) { - this.encodeString(key); - this.doEncode(value, depth + 1); - } - } - } - catch (e_3_1) { e_3 = { error: e_3_1 }; } - finally { - try { - if (keys_2_1 && !keys_2_1.done && (_a = keys_2.return)) _a.call(keys_2); - } - finally { if (e_3) throw e_3.error; } - } - }; - Encoder.prototype.encodeExtension = function (ext) { - var size = ext.data.length; - if (size === 1) { - // fixext 1 - this.writeU8(0xd4); - } - else if (size === 2) { - // fixext 2 - this.writeU8(0xd5); - } - else if (size === 4) { - // fixext 4 - this.writeU8(0xd6); - } - else if (size === 8) { - // fixext 8 - this.writeU8(0xd7); - } - else if (size === 16) { - // fixext 16 - this.writeU8(0xd8); - } - else if (size < 0x100) { - // ext 8 - this.writeU8(0xc7); - this.writeU8(size); - } - else if (size < 0x10000) { - // ext 16 - this.writeU8(0xc8); - this.writeU16(size); - } - else if (size < 0x100000000) { - // ext 32 - this.writeU8(0xc9); - this.writeU32(size); - } - else { - throw new Error("Too large extension object: ".concat(size)); - } - this.writeI8(ext.type); - this.writeU8a(ext.data); - }; - Encoder.prototype.writeU8 = function (value) { - this.ensureBufferSizeToWrite(1); - this.view.setUint8(this.pos, value); - this.pos++; - }; - Encoder.prototype.writeU8a = function (values) { - var size = values.length; - this.ensureBufferSizeToWrite(size); - this.bytes.set(values, this.pos); - this.pos += size; - }; - Encoder.prototype.writeI8 = function (value) { - this.ensureBufferSizeToWrite(1); - this.view.setInt8(this.pos, value); - this.pos++; - }; - Encoder.prototype.writeU16 = function (value) { - this.ensureBufferSizeToWrite(2); - this.view.setUint16(this.pos, value); - this.pos += 2; - }; - Encoder.prototype.writeI16 = function (value) { - this.ensureBufferSizeToWrite(2); - this.view.setInt16(this.pos, value); - this.pos += 2; - }; - Encoder.prototype.writeU32 = function (value) { - this.ensureBufferSizeToWrite(4); - this.view.setUint32(this.pos, value); - this.pos += 4; - }; - Encoder.prototype.writeI32 = function (value) { - this.ensureBufferSizeToWrite(4); - this.view.setInt32(this.pos, value); - this.pos += 4; - }; - Encoder.prototype.writeF32 = function (value) { - this.ensureBufferSizeToWrite(4); - this.view.setFloat32(this.pos, value); - this.pos += 4; - }; - Encoder.prototype.writeF64 = function (value) { - this.ensureBufferSizeToWrite(8); - this.view.setFloat64(this.pos, value); - this.pos += 8; - }; - Encoder.prototype.writeU64 = function (value) { - this.ensureBufferSizeToWrite(8); - setUint64(this.view, this.pos, value); - this.pos += 8; - }; - Encoder.prototype.writeI64 = function (value) { - this.ensureBufferSizeToWrite(8); - setInt64(this.view, this.pos, value); - this.pos += 8; - }; - return Encoder; -}()); - - -;// CONCATENATED MODULE: ./src/encode.ts - -var defaultEncodeOptions = {}; -/** - * It encodes `value` in the MessagePack format and - * returns a byte buffer. - * - * The returned buffer is a slice of a larger `ArrayBuffer`, so you have to use its `#byteOffset` and `#byteLength` in order to convert it to another typed arrays including NodeJS `Buffer`. - */ -function encode(value, options) { - if (options === void 0) { options = defaultEncodeOptions; } - var encoder = new Encoder(options.extensionCodec, options.context, options.maxDepth, options.initialBufferSize, options.sortKeys, options.forceFloat32, options.ignoreUndefined, options.forceIntegerToFloat); - return encoder.encodeSharedRef(value); -} - -;// CONCATENATED MODULE: ./src/utils/prettyByte.ts -function prettyByte(byte) { - return "".concat(byte < 0 ? "-" : "", "0x").concat(Math.abs(byte).toString(16).padStart(2, "0")); -} - -;// CONCATENATED MODULE: ./src/CachedKeyDecoder.ts -var CachedKeyDecoder_values = (undefined && undefined.__values) || function(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -}; - -var DEFAULT_MAX_KEY_LENGTH = 16; -var DEFAULT_MAX_LENGTH_PER_KEY = 16; -var CachedKeyDecoder = /** @class */ (function () { - function CachedKeyDecoder(maxKeyLength, maxLengthPerKey) { - if (maxKeyLength === void 0) { maxKeyLength = DEFAULT_MAX_KEY_LENGTH; } - if (maxLengthPerKey === void 0) { maxLengthPerKey = DEFAULT_MAX_LENGTH_PER_KEY; } - this.maxKeyLength = maxKeyLength; - this.maxLengthPerKey = maxLengthPerKey; - this.hit = 0; - this.miss = 0; - // avoid `new Array(N)`, which makes a sparse array, - // because a sparse array is typically slower than a non-sparse array. - this.caches = []; - for (var i = 0; i < this.maxKeyLength; i++) { - this.caches.push([]); - } - } - CachedKeyDecoder.prototype.canBeCached = function (byteLength) { - return byteLength > 0 && byteLength <= this.maxKeyLength; - }; - CachedKeyDecoder.prototype.find = function (bytes, inputOffset, byteLength) { - var e_1, _a; - var records = this.caches[byteLength - 1]; - try { - FIND_CHUNK: for (var records_1 = CachedKeyDecoder_values(records), records_1_1 = records_1.next(); !records_1_1.done; records_1_1 = records_1.next()) { - var record = records_1_1.value; - var recordBytes = record.bytes; - for (var j = 0; j < byteLength; j++) { - if (recordBytes[j] !== bytes[inputOffset + j]) { - continue FIND_CHUNK; - } - } - return record.str; - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (records_1_1 && !records_1_1.done && (_a = records_1.return)) _a.call(records_1); - } - finally { if (e_1) throw e_1.error; } - } - return null; - }; - CachedKeyDecoder.prototype.store = function (bytes, value) { - var records = this.caches[bytes.length - 1]; - var record = { bytes: bytes, str: value }; - if (records.length >= this.maxLengthPerKey) { - // `records` are full! - // Set `record` to an arbitrary position. - records[(Math.random() * records.length) | 0] = record; - } - else { - records.push(record); - } - }; - CachedKeyDecoder.prototype.decode = function (bytes, inputOffset, byteLength) { - var cachedValue = this.find(bytes, inputOffset, byteLength); - if (cachedValue != null) { - this.hit++; - return cachedValue; - } - this.miss++; - var str = utf8DecodeJs(bytes, inputOffset, byteLength); - // Ensure to copy a slice of bytes because the byte may be NodeJS Buffer and Buffer#slice() returns a reference to its internal ArrayBuffer. - var slicedCopyOfBytes = Uint8Array.prototype.slice.call(bytes, inputOffset, inputOffset + byteLength); - this.store(slicedCopyOfBytes, str); - return str; - }; - return CachedKeyDecoder; -}()); - - -;// CONCATENATED MODULE: ./src/Decoder.ts -var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __generator = (undefined && undefined.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -var __asyncValues = (undefined && undefined.__asyncValues) || function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -}; -var __await = (undefined && undefined.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } -var __asyncGenerator = (undefined && undefined.__asyncGenerator) || function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -}; - - - - - - - -var isValidMapKeyType = function (key) { - var keyType = typeof key; - return keyType === "string" || keyType === "number"; -}; -var HEAD_BYTE_REQUIRED = -1; -var EMPTY_VIEW = new DataView(new ArrayBuffer(0)); -var EMPTY_BYTES = new Uint8Array(EMPTY_VIEW.buffer); -// IE11: Hack to support IE11. -// IE11: Drop this hack and just use RangeError when IE11 is obsolete. -var DataViewIndexOutOfBoundsError = (function () { - try { - // IE11: The spec says it should throw RangeError, - // IE11: but in IE11 it throws TypeError. - EMPTY_VIEW.getInt8(0); - } - catch (e) { - return e.constructor; - } - throw new Error("never reached"); -})(); -var MORE_DATA = new DataViewIndexOutOfBoundsError("Insufficient data"); -var sharedCachedKeyDecoder = new CachedKeyDecoder(); -var Decoder = /** @class */ (function () { - function Decoder(extensionCodec, context, maxStrLength, maxBinLength, maxArrayLength, maxMapLength, maxExtLength, keyDecoder) { - if (extensionCodec === void 0) { extensionCodec = ExtensionCodec.defaultCodec; } - if (context === void 0) { context = undefined; } - if (maxStrLength === void 0) { maxStrLength = UINT32_MAX; } - if (maxBinLength === void 0) { maxBinLength = UINT32_MAX; } - if (maxArrayLength === void 0) { maxArrayLength = UINT32_MAX; } - if (maxMapLength === void 0) { maxMapLength = UINT32_MAX; } - if (maxExtLength === void 0) { maxExtLength = UINT32_MAX; } - if (keyDecoder === void 0) { keyDecoder = sharedCachedKeyDecoder; } - this.extensionCodec = extensionCodec; - this.context = context; - this.maxStrLength = maxStrLength; - this.maxBinLength = maxBinLength; - this.maxArrayLength = maxArrayLength; - this.maxMapLength = maxMapLength; - this.maxExtLength = maxExtLength; - this.keyDecoder = keyDecoder; - this.totalPos = 0; - this.pos = 0; - this.view = EMPTY_VIEW; - this.bytes = EMPTY_BYTES; - this.headByte = HEAD_BYTE_REQUIRED; - this.stack = []; - } - Decoder.prototype.reinitializeState = function () { - this.totalPos = 0; - this.headByte = HEAD_BYTE_REQUIRED; - this.stack.length = 0; - // view, bytes, and pos will be re-initialized in setBuffer() - }; - Decoder.prototype.setBuffer = function (buffer) { - this.bytes = ensureUint8Array(buffer); - this.view = createDataView(this.bytes); - this.pos = 0; - }; - Decoder.prototype.appendBuffer = function (buffer) { - if (this.headByte === HEAD_BYTE_REQUIRED && !this.hasRemaining(1)) { - this.setBuffer(buffer); - } - else { - var remainingData = this.bytes.subarray(this.pos); - var newData = ensureUint8Array(buffer); - // concat remainingData + newData - var newBuffer = new Uint8Array(remainingData.length + newData.length); - newBuffer.set(remainingData); - newBuffer.set(newData, remainingData.length); - this.setBuffer(newBuffer); - } - }; - Decoder.prototype.hasRemaining = function (size) { - return this.view.byteLength - this.pos >= size; - }; - Decoder.prototype.createExtraByteError = function (posToShow) { - var _a = this, view = _a.view, pos = _a.pos; - return new RangeError("Extra ".concat(view.byteLength - pos, " of ").concat(view.byteLength, " byte(s) found at buffer[").concat(posToShow, "]")); - }; - /** - * @throws {@link DecodeError} - * @throws {@link RangeError} - */ - Decoder.prototype.decode = function (buffer) { - this.reinitializeState(); - this.setBuffer(buffer); - var object = this.doDecodeSync(); - if (this.hasRemaining(1)) { - throw this.createExtraByteError(this.pos); - } - return object; - }; - Decoder.prototype.decodeMulti = function (buffer) { - return __generator(this, function (_a) { - switch (_a.label) { - case 0: - this.reinitializeState(); - this.setBuffer(buffer); - _a.label = 1; - case 1: - if (!this.hasRemaining(1)) return [3 /*break*/, 3]; - return [4 /*yield*/, this.doDecodeSync()]; - case 2: - _a.sent(); - return [3 /*break*/, 1]; - case 3: return [2 /*return*/]; - } - }); - }; - Decoder.prototype.decodeAsync = function (stream) { - var stream_1, stream_1_1; - var e_1, _a; - return __awaiter(this, void 0, void 0, function () { - var decoded, object, buffer, e_1_1, _b, headByte, pos, totalPos; - return __generator(this, function (_c) { - switch (_c.label) { - case 0: - decoded = false; - _c.label = 1; - case 1: - _c.trys.push([1, 6, 7, 12]); - stream_1 = __asyncValues(stream); - _c.label = 2; - case 2: return [4 /*yield*/, stream_1.next()]; - case 3: - if (!(stream_1_1 = _c.sent(), !stream_1_1.done)) return [3 /*break*/, 5]; - buffer = stream_1_1.value; - if (decoded) { - throw this.createExtraByteError(this.totalPos); - } - this.appendBuffer(buffer); - try { - object = this.doDecodeSync(); - decoded = true; - } - catch (e) { - if (!(e instanceof DataViewIndexOutOfBoundsError)) { - throw e; // rethrow - } - // fallthrough - } - this.totalPos += this.pos; - _c.label = 4; - case 4: return [3 /*break*/, 2]; - case 5: return [3 /*break*/, 12]; - case 6: - e_1_1 = _c.sent(); - e_1 = { error: e_1_1 }; - return [3 /*break*/, 12]; - case 7: - _c.trys.push([7, , 10, 11]); - if (!(stream_1_1 && !stream_1_1.done && (_a = stream_1.return))) return [3 /*break*/, 9]; - return [4 /*yield*/, _a.call(stream_1)]; - case 8: - _c.sent(); - _c.label = 9; - case 9: return [3 /*break*/, 11]; - case 10: - if (e_1) throw e_1.error; - return [7 /*endfinally*/]; - case 11: return [7 /*endfinally*/]; - case 12: - if (decoded) { - if (this.hasRemaining(1)) { - throw this.createExtraByteError(this.totalPos); - } - return [2 /*return*/, object]; - } - _b = this, headByte = _b.headByte, pos = _b.pos, totalPos = _b.totalPos; - throw new RangeError("Insufficient data in parsing ".concat(prettyByte(headByte), " at ").concat(totalPos, " (").concat(pos, " in the current buffer)")); - } - }); - }); - }; - Decoder.prototype.decodeArrayStream = function (stream) { - return this.decodeMultiAsync(stream, true); - }; - Decoder.prototype.decodeStream = function (stream) { - return this.decodeMultiAsync(stream, false); - }; - Decoder.prototype.decodeMultiAsync = function (stream, isArray) { - return __asyncGenerator(this, arguments, function decodeMultiAsync_1() { - var isArrayHeaderRequired, arrayItemsLeft, stream_2, stream_2_1, buffer, e_2, e_3_1; - var e_3, _a; - return __generator(this, function (_b) { - switch (_b.label) { - case 0: - isArrayHeaderRequired = isArray; - arrayItemsLeft = -1; - _b.label = 1; - case 1: - _b.trys.push([1, 13, 14, 19]); - stream_2 = __asyncValues(stream); - _b.label = 2; - case 2: return [4 /*yield*/, __await(stream_2.next())]; - case 3: - if (!(stream_2_1 = _b.sent(), !stream_2_1.done)) return [3 /*break*/, 12]; - buffer = stream_2_1.value; - if (isArray && arrayItemsLeft === 0) { - throw this.createExtraByteError(this.totalPos); - } - this.appendBuffer(buffer); - if (isArrayHeaderRequired) { - arrayItemsLeft = this.readArraySize(); - isArrayHeaderRequired = false; - this.complete(); - } - _b.label = 4; - case 4: - _b.trys.push([4, 9, , 10]); - _b.label = 5; - case 5: - if (false) {} - return [4 /*yield*/, __await(this.doDecodeSync())]; - case 6: return [4 /*yield*/, _b.sent()]; - case 7: - _b.sent(); - if (--arrayItemsLeft === 0) { - return [3 /*break*/, 8]; - } - return [3 /*break*/, 5]; - case 8: return [3 /*break*/, 10]; - case 9: - e_2 = _b.sent(); - if (!(e_2 instanceof DataViewIndexOutOfBoundsError)) { - throw e_2; // rethrow - } - return [3 /*break*/, 10]; - case 10: - this.totalPos += this.pos; - _b.label = 11; - case 11: return [3 /*break*/, 2]; - case 12: return [3 /*break*/, 19]; - case 13: - e_3_1 = _b.sent(); - e_3 = { error: e_3_1 }; - return [3 /*break*/, 19]; - case 14: - _b.trys.push([14, , 17, 18]); - if (!(stream_2_1 && !stream_2_1.done && (_a = stream_2.return))) return [3 /*break*/, 16]; - return [4 /*yield*/, __await(_a.call(stream_2))]; - case 15: - _b.sent(); - _b.label = 16; - case 16: return [3 /*break*/, 18]; - case 17: - if (e_3) throw e_3.error; - return [7 /*endfinally*/]; - case 18: return [7 /*endfinally*/]; - case 19: return [2 /*return*/]; - } - }); - }); - }; - Decoder.prototype.doDecodeSync = function () { - DECODE: while (true) { - var headByte = this.readHeadByte(); - var object = void 0; - if (headByte >= 0xe0) { - // negative fixint (111x xxxx) 0xe0 - 0xff - object = headByte - 0x100; - } - else if (headByte < 0xc0) { - if (headByte < 0x80) { - // positive fixint (0xxx xxxx) 0x00 - 0x7f - object = headByte; - } - else if (headByte < 0x90) { - // fixmap (1000 xxxx) 0x80 - 0x8f - var size = headByte - 0x80; - if (size !== 0) { - this.pushMapState(size); - this.complete(); - continue DECODE; - } - else { - object = {}; - } - } - else if (headByte < 0xa0) { - // fixarray (1001 xxxx) 0x90 - 0x9f - var size = headByte - 0x90; - if (size !== 0) { - this.pushArrayState(size); - this.complete(); - continue DECODE; - } - else { - object = []; - } - } - else { - // fixstr (101x xxxx) 0xa0 - 0xbf - var byteLength = headByte - 0xa0; - object = this.decodeUtf8String(byteLength, 0); - } - } - else if (headByte === 0xc0) { - // nil - object = null; - } - else if (headByte === 0xc2) { - // false - object = false; - } - else if (headByte === 0xc3) { - // true - object = true; - } - else if (headByte === 0xca) { - // float 32 - object = this.readF32(); - } - else if (headByte === 0xcb) { - // float 64 - object = this.readF64(); - } - else if (headByte === 0xcc) { - // uint 8 - object = this.readU8(); - } - else if (headByte === 0xcd) { - // uint 16 - object = this.readU16(); - } - else if (headByte === 0xce) { - // uint 32 - object = this.readU32(); - } - else if (headByte === 0xcf) { - // uint 64 - object = this.readU64(); - } - else if (headByte === 0xd0) { - // int 8 - object = this.readI8(); - } - else if (headByte === 0xd1) { - // int 16 - object = this.readI16(); - } - else if (headByte === 0xd2) { - // int 32 - object = this.readI32(); - } - else if (headByte === 0xd3) { - // int 64 - object = this.readI64(); - } - else if (headByte === 0xd9) { - // str 8 - var byteLength = this.lookU8(); - object = this.decodeUtf8String(byteLength, 1); - } - else if (headByte === 0xda) { - // str 16 - var byteLength = this.lookU16(); - object = this.decodeUtf8String(byteLength, 2); - } - else if (headByte === 0xdb) { - // str 32 - var byteLength = this.lookU32(); - object = this.decodeUtf8String(byteLength, 4); - } - else if (headByte === 0xdc) { - // array 16 - var size = this.readU16(); - if (size !== 0) { - this.pushArrayState(size); - this.complete(); - continue DECODE; - } - else { - object = []; - } - } - else if (headByte === 0xdd) { - // array 32 - var size = this.readU32(); - if (size !== 0) { - this.pushArrayState(size); - this.complete(); - continue DECODE; - } - else { - object = []; - } - } - else if (headByte === 0xde) { - // map 16 - var size = this.readU16(); - if (size !== 0) { - this.pushMapState(size); - this.complete(); - continue DECODE; - } - else { - object = {}; - } - } - else if (headByte === 0xdf) { - // map 32 - var size = this.readU32(); - if (size !== 0) { - this.pushMapState(size); - this.complete(); - continue DECODE; - } - else { - object = {}; - } - } - else if (headByte === 0xc4) { - // bin 8 - var size = this.lookU8(); - object = this.decodeBinary(size, 1); - } - else if (headByte === 0xc5) { - // bin 16 - var size = this.lookU16(); - object = this.decodeBinary(size, 2); - } - else if (headByte === 0xc6) { - // bin 32 - var size = this.lookU32(); - object = this.decodeBinary(size, 4); - } - else if (headByte === 0xd4) { - // fixext 1 - object = this.decodeExtension(1, 0); - } - else if (headByte === 0xd5) { - // fixext 2 - object = this.decodeExtension(2, 0); - } - else if (headByte === 0xd6) { - // fixext 4 - object = this.decodeExtension(4, 0); - } - else if (headByte === 0xd7) { - // fixext 8 - object = this.decodeExtension(8, 0); - } - else if (headByte === 0xd8) { - // fixext 16 - object = this.decodeExtension(16, 0); - } - else if (headByte === 0xc7) { - // ext 8 - var size = this.lookU8(); - object = this.decodeExtension(size, 1); - } - else if (headByte === 0xc8) { - // ext 16 - var size = this.lookU16(); - object = this.decodeExtension(size, 2); - } - else if (headByte === 0xc9) { - // ext 32 - var size = this.lookU32(); - object = this.decodeExtension(size, 4); - } - else { - throw new DecodeError("Unrecognized type byte: ".concat(prettyByte(headByte))); - } - this.complete(); - var stack = this.stack; - while (stack.length > 0) { - // arrays and maps - var state = stack[stack.length - 1]; - if (state.type === 0 /* State.ARRAY */) { - state.array[state.position] = object; - state.position++; - if (state.position === state.size) { - stack.pop(); - object = state.array; - } - else { - continue DECODE; - } - } - else if (state.type === 1 /* State.MAP_KEY */) { - if (!isValidMapKeyType(object)) { - throw new DecodeError("The type of key must be string or number but " + typeof object); - } - if (object === "__proto__") { - throw new DecodeError("The key __proto__ is not allowed"); - } - state.key = object; - state.type = 2 /* State.MAP_VALUE */; - continue DECODE; - } - else { - // it must be `state.type === State.MAP_VALUE` here - state.map[state.key] = object; - state.readCount++; - if (state.readCount === state.size) { - stack.pop(); - object = state.map; - } - else { - state.key = null; - state.type = 1 /* State.MAP_KEY */; - continue DECODE; - } - } - } - return object; - } - }; - Decoder.prototype.readHeadByte = function () { - if (this.headByte === HEAD_BYTE_REQUIRED) { - this.headByte = this.readU8(); - // console.log("headByte", prettyByte(this.headByte)); - } - return this.headByte; - }; - Decoder.prototype.complete = function () { - this.headByte = HEAD_BYTE_REQUIRED; - }; - Decoder.prototype.readArraySize = function () { - var headByte = this.readHeadByte(); - switch (headByte) { - case 0xdc: - return this.readU16(); - case 0xdd: - return this.readU32(); - default: { - if (headByte < 0xa0) { - return headByte - 0x90; - } - else { - throw new DecodeError("Unrecognized array type byte: ".concat(prettyByte(headByte))); - } - } - } - }; - Decoder.prototype.pushMapState = function (size) { - if (size > this.maxMapLength) { - throw new DecodeError("Max length exceeded: map length (".concat(size, ") > maxMapLengthLength (").concat(this.maxMapLength, ")")); - } - this.stack.push({ - type: 1 /* State.MAP_KEY */, - size: size, - key: null, - readCount: 0, - map: {}, - }); - }; - Decoder.prototype.pushArrayState = function (size) { - if (size > this.maxArrayLength) { - throw new DecodeError("Max length exceeded: array length (".concat(size, ") > maxArrayLength (").concat(this.maxArrayLength, ")")); - } - this.stack.push({ - type: 0 /* State.ARRAY */, - size: size, - array: new Array(size), - position: 0, - }); - }; - Decoder.prototype.decodeUtf8String = function (byteLength, headerOffset) { - var _a; - if (byteLength > this.maxStrLength) { - throw new DecodeError("Max length exceeded: UTF-8 byte length (".concat(byteLength, ") > maxStrLength (").concat(this.maxStrLength, ")")); - } - if (this.bytes.byteLength < this.pos + headerOffset + byteLength) { - throw MORE_DATA; - } - var offset = this.pos + headerOffset; - var object; - if (this.stateIsMapKey() && ((_a = this.keyDecoder) === null || _a === void 0 ? void 0 : _a.canBeCached(byteLength))) { - object = this.keyDecoder.decode(this.bytes, offset, byteLength); - } - else if (byteLength > TEXT_DECODER_THRESHOLD) { - object = utf8DecodeTD(this.bytes, offset, byteLength); - } - else { - object = utf8DecodeJs(this.bytes, offset, byteLength); - } - this.pos += headerOffset + byteLength; - return object; - }; - Decoder.prototype.stateIsMapKey = function () { - if (this.stack.length > 0) { - var state = this.stack[this.stack.length - 1]; - return state.type === 1 /* State.MAP_KEY */; - } - return false; - }; - Decoder.prototype.decodeBinary = function (byteLength, headOffset) { - if (byteLength > this.maxBinLength) { - throw new DecodeError("Max length exceeded: bin length (".concat(byteLength, ") > maxBinLength (").concat(this.maxBinLength, ")")); - } - if (!this.hasRemaining(byteLength + headOffset)) { - throw MORE_DATA; - } - var offset = this.pos + headOffset; - var object = this.bytes.subarray(offset, offset + byteLength); - this.pos += headOffset + byteLength; - return object; - }; - Decoder.prototype.decodeExtension = function (size, headOffset) { - if (size > this.maxExtLength) { - throw new DecodeError("Max length exceeded: ext length (".concat(size, ") > maxExtLength (").concat(this.maxExtLength, ")")); - } - var extType = this.view.getInt8(this.pos + headOffset); - var data = this.decodeBinary(size, headOffset + 1 /* extType */); - return this.extensionCodec.decode(data, extType, this.context); - }; - Decoder.prototype.lookU8 = function () { - return this.view.getUint8(this.pos); - }; - Decoder.prototype.lookU16 = function () { - return this.view.getUint16(this.pos); - }; - Decoder.prototype.lookU32 = function () { - return this.view.getUint32(this.pos); - }; - Decoder.prototype.readU8 = function () { - var value = this.view.getUint8(this.pos); - this.pos++; - return value; - }; - Decoder.prototype.readI8 = function () { - var value = this.view.getInt8(this.pos); - this.pos++; - return value; - }; - Decoder.prototype.readU16 = function () { - var value = this.view.getUint16(this.pos); - this.pos += 2; - return value; - }; - Decoder.prototype.readI16 = function () { - var value = this.view.getInt16(this.pos); - this.pos += 2; - return value; - }; - Decoder.prototype.readU32 = function () { - var value = this.view.getUint32(this.pos); - this.pos += 4; - return value; - }; - Decoder.prototype.readI32 = function () { - var value = this.view.getInt32(this.pos); - this.pos += 4; - return value; - }; - Decoder.prototype.readU64 = function () { - var value = getUint64(this.view, this.pos); - this.pos += 8; - return value; - }; - Decoder.prototype.readI64 = function () { - var value = getInt64(this.view, this.pos); - this.pos += 8; - return value; - }; - Decoder.prototype.readF32 = function () { - var value = this.view.getFloat32(this.pos); - this.pos += 4; - return value; - }; - Decoder.prototype.readF64 = function () { - var value = this.view.getFloat64(this.pos); - this.pos += 8; - return value; - }; - return Decoder; -}()); - - -;// CONCATENATED MODULE: ./src/decode.ts - -var defaultDecodeOptions = {}; -/** - * It decodes a single MessagePack object in a buffer. - * - * This is a synchronous decoding function. - * See other variants for asynchronous decoding: {@link decodeAsync()}, {@link decodeStream()}, or {@link decodeArrayStream()}. - * - * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty. - * @throws {@link DecodeError} if the buffer contains invalid data. - */ -function decode(buffer, options) { - if (options === void 0) { options = defaultDecodeOptions; } - var decoder = new Decoder(options.extensionCodec, options.context, options.maxStrLength, options.maxBinLength, options.maxArrayLength, options.maxMapLength, options.maxExtLength); - return decoder.decode(buffer); -} -/** - * It decodes multiple MessagePack objects in a buffer. - * This is corresponding to {@link decodeMultiStream()}. - * - * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty. - * @throws {@link DecodeError} if the buffer contains invalid data. - */ -function decodeMulti(buffer, options) { - if (options === void 0) { options = defaultDecodeOptions; } - var decoder = new Decoder(options.extensionCodec, options.context, options.maxStrLength, options.maxBinLength, options.maxArrayLength, options.maxMapLength, options.maxExtLength); - return decoder.decodeMulti(buffer); -} - -;// CONCATENATED MODULE: ./src/utils/stream.ts -// utility for whatwg streams -var stream_generator = (undefined && undefined.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -var stream_await = (undefined && undefined.__await) || function (v) { return this instanceof stream_await ? (this.v = v, this) : new stream_await(v); } -var stream_asyncGenerator = (undefined && undefined.__asyncGenerator) || function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof stream_await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -}; -function isAsyncIterable(object) { - return object[Symbol.asyncIterator] != null; -} -function assertNonNull(value) { - if (value == null) { - throw new Error("Assertion Failure: value must not be null nor undefined"); - } -} -function asyncIterableFromStream(stream) { - return stream_asyncGenerator(this, arguments, function asyncIterableFromStream_1() { - var reader, _a, done, value; - return stream_generator(this, function (_b) { - switch (_b.label) { - case 0: - reader = stream.getReader(); - _b.label = 1; - case 1: - _b.trys.push([1, , 9, 10]); - _b.label = 2; - case 2: - if (false) {} - return [4 /*yield*/, stream_await(reader.read())]; - case 3: - _a = _b.sent(), done = _a.done, value = _a.value; - if (!done) return [3 /*break*/, 5]; - return [4 /*yield*/, stream_await(void 0)]; - case 4: return [2 /*return*/, _b.sent()]; - case 5: - assertNonNull(value); - return [4 /*yield*/, stream_await(value)]; - case 6: return [4 /*yield*/, _b.sent()]; - case 7: - _b.sent(); - return [3 /*break*/, 2]; - case 8: return [3 /*break*/, 10]; - case 9: - reader.releaseLock(); - return [7 /*endfinally*/]; - case 10: return [2 /*return*/]; - } - }); - }); -} -function ensureAsyncIterable(streamLike) { - if (isAsyncIterable(streamLike)) { - return streamLike; - } - else { - return asyncIterableFromStream(streamLike); - } -} - -;// CONCATENATED MODULE: ./src/decodeAsync.ts -var decodeAsync_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var decodeAsync_generator = (undefined && undefined.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; - - - -/** - * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty. - * @throws {@link DecodeError} if the buffer contains invalid data. - */ -function decodeAsync(streamLike, options) { - if (options === void 0) { options = defaultDecodeOptions; } - return decodeAsync_awaiter(this, void 0, void 0, function () { - var stream, decoder; - return decodeAsync_generator(this, function (_a) { - stream = ensureAsyncIterable(streamLike); - decoder = new Decoder(options.extensionCodec, options.context, options.maxStrLength, options.maxBinLength, options.maxArrayLength, options.maxMapLength, options.maxExtLength); - return [2 /*return*/, decoder.decodeAsync(stream)]; - }); - }); -} -/** - * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty. - * @throws {@link DecodeError} if the buffer contains invalid data. - */ -function decodeArrayStream(streamLike, options) { - if (options === void 0) { options = defaultDecodeOptions; } - var stream = ensureAsyncIterable(streamLike); - var decoder = new Decoder(options.extensionCodec, options.context, options.maxStrLength, options.maxBinLength, options.maxArrayLength, options.maxMapLength, options.maxExtLength); - return decoder.decodeArrayStream(stream); -} -/** - * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty. - * @throws {@link DecodeError} if the buffer contains invalid data. - */ -function decodeMultiStream(streamLike, options) { - if (options === void 0) { options = defaultDecodeOptions; } - var stream = ensureAsyncIterable(streamLike); - var decoder = new Decoder(options.extensionCodec, options.context, options.maxStrLength, options.maxBinLength, options.maxArrayLength, options.maxMapLength, options.maxExtLength); - return decoder.decodeStream(stream); -} -/** - * @deprecated Use {@link decodeMultiStream()} instead. - */ -function decodeStream(streamLike, options) { - if (options === void 0) { options = defaultDecodeOptions; } - return decodeMultiStream(streamLike, options); -} - -;// CONCATENATED MODULE: ./src/index.ts -// Main Functions: - - - - - - - - - - - -// Utilitiies for Extension Types: - - - - - - - -/******/ return __webpack_exports__; -/******/ })() -; -}); -//# sourceMappingURL=msgpack.js.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+umd/msgpack.js.map b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+umd/msgpack.js.map deleted file mode 100644 index 0389f552..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+umd/msgpack.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"msgpack.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;UCVA;UACA;;;;;WCDA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA,8CAA8C;;;;;WCA9C;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACNA,kBAAkB;AAEX,IAAM,UAAU,GAAG,UAAW,CAAC;AAEtC,+CAA+C;AAC/C,kEAAkE;AAE3D,SAAS,SAAS,CAAC,IAAc,EAAE,MAAc,EAAE,KAAa;IACrE,IAAM,IAAI,GAAG,KAAK,GAAG,UAAa,CAAC;IACnC,IAAM,GAAG,GAAG,KAAK,CAAC,CAAC,sCAAsC;IACzD,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC7B,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;AAClC,CAAC;AAEM,SAAS,QAAQ,CAAC,IAAc,EAAE,MAAc,EAAE,KAAa;IACpE,IAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,UAAa,CAAC,CAAC;IAC/C,IAAM,GAAG,GAAG,KAAK,CAAC,CAAC,sCAAsC;IACzD,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC7B,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;AAClC,CAAC;AAEM,SAAS,QAAQ,CAAC,IAAc,EAAE,MAAc;IACrD,IAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnC,IAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACvC,OAAO,IAAI,GAAG,UAAa,GAAG,GAAG,CAAC;AACpC,CAAC;AAEM,SAAS,SAAS,CAAC,IAAc,EAAE,MAAc;IACtD,IAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACpC,IAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACvC,OAAO,IAAI,GAAG,UAAa,GAAG,GAAG,CAAC;AACpC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC/BD,gEAAgE;AAC7B;AAEnC,IAAM,uBAAuB,GAC3B,CAAC,OAAO,OAAO,KAAK,WAAW,IAAI,cAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,0CAAG,eAAe,CAAC,MAAK,OAAO,CAAC;IAC/E,OAAO,WAAW,KAAK,WAAW;IAClC,OAAO,WAAW,KAAK,WAAW,CAAC;AAE9B,SAAS,SAAS,CAAC,GAAW;IACnC,IAAM,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC;IAE7B,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,OAAO,GAAG,GAAG,SAAS,EAAE;QACtB,IAAI,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC;QAElC,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE;YAC9B,SAAS;YACT,UAAU,EAAE,CAAC;YACb,SAAS;SACV;aAAM,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE;YACrC,UAAU;YACV,UAAU,IAAI,CAAC,CAAC;SACjB;aAAM;YACL,wBAAwB;YACxB,IAAI,KAAK,IAAI,MAAM,IAAI,KAAK,IAAI,MAAM,EAAE;gBACtC,iBAAiB;gBACjB,IAAI,GAAG,GAAG,SAAS,EAAE;oBACnB,IAAM,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;oBAClC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,MAAM,EAAE;wBAC/B,EAAE,GAAG,CAAC;wBACN,KAAK,GAAG,CAAC,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,OAAO,CAAC;qBAC7D;iBACF;aACF;YAED,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE;gBAC9B,SAAS;gBACT,UAAU,IAAI,CAAC,CAAC;aACjB;iBAAM;gBACL,SAAS;gBACT,UAAU,IAAI,CAAC,CAAC;aACjB;SACF;KACF;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAEM,SAAS,YAAY,CAAC,GAAW,EAAE,MAAkB,EAAE,YAAoB;IAChF,IAAM,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC;IAC7B,IAAI,MAAM,GAAG,YAAY,CAAC;IAC1B,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,OAAO,GAAG,GAAG,SAAS,EAAE;QACtB,IAAI,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC;QAElC,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE;YAC9B,SAAS;YACT,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,KAAK,CAAC;YACzB,SAAS;SACV;aAAM,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE;YACrC,UAAU;YACV,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;SACjD;aAAM;YACL,wBAAwB;YACxB,IAAI,KAAK,IAAI,MAAM,IAAI,KAAK,IAAI,MAAM,EAAE;gBACtC,iBAAiB;gBACjB,IAAI,GAAG,GAAG,SAAS,EAAE;oBACnB,IAAM,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;oBAClC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,MAAM,EAAE;wBAC/B,EAAE,GAAG,CAAC;wBACN,KAAK,GAAG,CAAC,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,OAAO,CAAC;qBAC7D;iBACF;aACF;YAED,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE;gBAC9B,SAAS;gBACT,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;gBACjD,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;aACjD;iBAAM;gBACL,SAAS;gBACT,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;gBACjD,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;gBACjD,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;aACjD;SACF;QAED,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;KAC1C;AACH,CAAC;AAED,IAAM,iBAAiB,GAAG,uBAAuB,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3E,IAAM,sBAAsB,GAAG,CAAC,uBAAuB;IAC5D,CAAC,CAAC,UAAU;IACZ,CAAC,CAAC,OAAO,OAAO,KAAK,WAAW,IAAI,cAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,0CAAG,eAAe,CAAC,MAAK,OAAO;QAC/E,CAAC,CAAC,GAAG;QACL,CAAC,CAAC,CAAC,CAAC;AAEN,SAAS,kBAAkB,CAAC,GAAW,EAAE,MAAkB,EAAE,YAAoB;IAC/E,MAAM,CAAC,GAAG,CAAC,iBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,YAAY,CAAC,CAAC;AAC3D,CAAC;AAED,SAAS,sBAAsB,CAAC,GAAW,EAAE,MAAkB,EAAE,YAAoB;IACnF,iBAAkB,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC;AACpE,CAAC;AAEM,IAAM,YAAY,GAAG,kBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,UAAU,EAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,kBAAkB,CAAC;AAExG,IAAM,UAAU,GAAG,IAAO,CAAC;AAEpB,SAAS,YAAY,CAAC,KAAiB,EAAE,WAAmB,EAAE,UAAkB;IACrF,IAAI,MAAM,GAAG,WAAW,CAAC;IACzB,IAAM,GAAG,GAAG,MAAM,GAAG,UAAU,CAAC;IAEhC,IAAM,KAAK,GAAkB,EAAE,CAAC;IAChC,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,OAAO,MAAM,GAAG,GAAG,EAAE;QACnB,IAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,CAAE,CAAC;QAC/B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE;YACxB,SAAS;YACT,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACnB;aAAM,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE;YAClC,UAAU;YACV,IAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,CAAE,GAAG,IAAI,CAAC;YACtC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;SAC3C;aAAM,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE;YAClC,UAAU;YACV,IAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,CAAE,GAAG,IAAI,CAAC;YACtC,IAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,CAAE,GAAG,IAAI,CAAC;YACtC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;SAC3D;aAAM,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE;YAClC,UAAU;YACV,IAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,CAAE,GAAG,IAAI,CAAC;YACtC,IAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,CAAE,GAAG,IAAI,CAAC;YACtC,IAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,CAAE,GAAG,IAAI,CAAC;YACtC,IAAI,IAAI,GAAG,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG,KAAK,CAAC;YAChF,IAAI,IAAI,GAAG,MAAM,EAAE;gBACjB,IAAI,IAAI,OAAO,CAAC;gBAChB,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,KAAK,EAAE,CAAC,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,CAAC;gBAC7C,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC;aAChC;YACD,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAClB;aAAM;YACL,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACnB;QAED,IAAI,KAAK,CAAC,MAAM,IAAI,UAAU,EAAE;YAC9B,MAAM,IAAI,MAAM,CAAC,YAAY,OAAnB,MAAM,2BAAiB,KAAK,UAAC,CAAC;YACxC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;SAClB;KACF;IAED,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QACpB,MAAM,IAAI,MAAM,CAAC,YAAY,OAAnB,MAAM,2BAAiB,KAAK,UAAC,CAAC;KACzC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,IAAM,iBAAiB,GAAG,uBAAuB,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AACtE,IAAM,sBAAsB,GAAG,CAAC,uBAAuB;IAC5D,CAAC,CAAC,UAAU;IACZ,CAAC,CAAC,OAAO,OAAO,KAAK,WAAW,IAAI,cAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,0CAAG,cAAc,CAAC,MAAK,OAAO;QAC9E,CAAC,CAAC,GAAG;QACL,CAAC,CAAC,CAAC,CAAC;AAEC,SAAS,YAAY,CAAC,KAAiB,EAAE,WAAmB,EAAE,UAAkB;IACrF,IAAM,WAAW,GAAG,KAAK,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,GAAG,UAAU,CAAC,CAAC;IAC1E,OAAO,iBAAkB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAChD,CAAC;;;ACzKD;;GAEG;AACH;IACE,iBAAqB,IAAY,EAAW,IAAgB;QAAvC,SAAI,GAAJ,IAAI,CAAQ;QAAW,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAClE,cAAC;AAAD,CAAC;;;;;;;;;;;;;;;;;;;ACLD;IAAiC,+BAAK;IACpC,qBAAY,OAAe;QAA3B,YACE,kBAAM,OAAO,CAAC,SAWf;QATC,kDAAkD;QAClD,IAAM,KAAK,GAAiC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;QACjF,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,KAAK,CAAC,CAAC;QAEnC,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,MAAM,EAAE;YAClC,YAAY,EAAE,IAAI;YAClB,UAAU,EAAE,KAAK;YACjB,KAAK,EAAE,WAAW,CAAC,IAAI;SACxB,CAAC,CAAC;;IACL,CAAC;IACH,kBAAC;AAAD,CAAC,CAdgC,KAAK,GAcrC;;;;ACdD,kFAAkF;AACtC;AACK;AAE1C,IAAM,aAAa,GAAG,CAAC,CAAC,CAAC;AAOhC,IAAM,mBAAmB,GAAG,WAAW,GAAG,CAAC,CAAC,CAAC,sBAAsB;AACnE,IAAM,mBAAmB,GAAG,WAAW,GAAG,CAAC,CAAC,CAAC,sBAAsB;AAE5D,SAAS,yBAAyB,CAAC,EAAuB;QAArB,GAAG,WAAE,IAAI;IACnD,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,GAAG,IAAI,mBAAmB,EAAE;QACvD,6BAA6B;QAC7B,IAAI,IAAI,KAAK,CAAC,IAAI,GAAG,IAAI,mBAAmB,EAAE;YAC5C,sCAAsC;YACtC,IAAM,EAAE,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;YAC7B,IAAM,IAAI,GAAG,IAAI,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;YACrC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;YACvB,OAAO,EAAE,CAAC;SACX;aAAM;YACL,yDAAyD;YACzD,IAAM,OAAO,GAAG,GAAG,GAAG,WAAW,CAAC;YAClC,IAAM,MAAM,GAAG,GAAG,GAAG,UAAU,CAAC;YAChC,IAAM,EAAE,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;YAC7B,IAAM,IAAI,GAAG,IAAI,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;YACrC,oBAAoB;YACpB,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,CAAC,CAAC;YACjD,WAAW;YACX,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;YAC1B,OAAO,EAAE,CAAC;SACX;KACF;SAAM;QACL,uDAAuD;QACvD,IAAM,EAAE,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;QAC9B,IAAM,IAAI,GAAG,IAAI,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;QACrC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;QACxB,QAAQ,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;QACvB,OAAO,EAAE,CAAC;KACX;AACH,CAAC;AAEM,SAAS,oBAAoB,CAAC,IAAU;IAC7C,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;IAC5B,IAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC;IACnC,IAAM,IAAI,GAAG,CAAC,IAAI,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;IAEtC,uDAAuD;IACvD,IAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC;IACzC,OAAO;QACL,GAAG,EAAE,GAAG,GAAG,SAAS;QACpB,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,GAAG;KAC7B,CAAC;AACJ,CAAC;AAEM,SAAS,wBAAwB,CAAC,MAAe;IACtD,IAAI,MAAM,YAAY,IAAI,EAAE;QAC1B,IAAM,QAAQ,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC;QAC9C,OAAO,yBAAyB,CAAC,QAAQ,CAAC,CAAC;KAC5C;SAAM;QACL,OAAO,IAAI,CAAC;KACb;AACH,CAAC;AAEM,SAAS,yBAAyB,CAAC,IAAgB;IACxD,IAAM,IAAI,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAEzE,iCAAiC;IACjC,QAAQ,IAAI,CAAC,UAAU,EAAE;QACvB,KAAK,CAAC,CAAC,CAAC;YACN,2BAA2B;YAC3B,IAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YAC9B,IAAM,IAAI,GAAG,CAAC,CAAC;YACf,OAAO,EAAE,GAAG,OAAE,IAAI,QAAE,CAAC;SACtB;QACD,KAAK,CAAC,CAAC,CAAC;YACN,mCAAmC;YACnC,IAAM,iBAAiB,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YAC5C,IAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACnC,IAAM,GAAG,GAAG,CAAC,iBAAiB,GAAG,GAAG,CAAC,GAAG,WAAW,GAAG,QAAQ,CAAC;YAC/D,IAAM,IAAI,GAAG,iBAAiB,KAAK,CAAC,CAAC;YACrC,OAAO,EAAE,GAAG,OAAE,IAAI,QAAE,CAAC;SACtB;QACD,KAAK,EAAE,CAAC,CAAC;YACP,uDAAuD;YAEvD,IAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YAC9B,IAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YAC/B,OAAO,EAAE,GAAG,OAAE,IAAI,QAAE,CAAC;SACtB;QACD;YACE,MAAM,IAAI,WAAW,CAAC,uEAAgE,IAAI,CAAC,MAAM,CAAE,CAAC,CAAC;KACxG;AACH,CAAC;AAEM,SAAS,wBAAwB,CAAC,IAAgB;IACvD,IAAM,QAAQ,GAAG,yBAAyB,CAAC,IAAI,CAAC,CAAC;IACjD,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,GAAG,GAAG,GAAG,QAAQ,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC;AAC5D,CAAC;AAEM,IAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,wBAAwB;IAChC,MAAM,EAAE,wBAAwB;CACjC,CAAC;;;AC3GF,kDAAkD;AAEd;AACa;AAkBjD;IAgBE;QARA,sBAAsB;QACL,oBAAe,GAAgE,EAAE,CAAC;QAClF,oBAAe,GAAgE,EAAE,CAAC;QAEnG,oBAAoB;QACH,aAAQ,GAAgE,EAAE,CAAC;QAC3E,aAAQ,GAAgE,EAAE,CAAC;QAG1F,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IACpC,CAAC;IAEM,iCAAQ,GAAf,UAAgB,EAQf;YAPC,IAAI,YACJ,MAAM,cACN,MAAM;QAMN,IAAI,IAAI,IAAI,CAAC,EAAE;YACb,oBAAoB;YACpB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;YAC7B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;SAC9B;aAAM;YACL,sBAAsB;YACtB,IAAM,KAAK,GAAG,CAAC,GAAG,IAAI,CAAC;YACvB,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC;YACrC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC;SACtC;IACH,CAAC;IAEM,oCAAW,GAAlB,UAAmB,MAAe,EAAE,OAAoB;QACtD,sBAAsB;QACtB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACpD,IAAM,SAAS,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YAC1C,IAAI,SAAS,IAAI,IAAI,EAAE;gBACrB,IAAM,IAAI,GAAG,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBACxC,IAAI,IAAI,IAAI,IAAI,EAAE;oBAChB,IAAM,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;oBACpB,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;iBAChC;aACF;SACF;QAED,oBAAoB;QACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC7C,IAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YACnC,IAAI,SAAS,IAAI,IAAI,EAAE;gBACrB,IAAM,IAAI,GAAG,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBACxC,IAAI,IAAI,IAAI,IAAI,EAAE;oBAChB,IAAM,IAAI,GAAG,CAAC,CAAC;oBACf,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;iBAChC;aACF;SACF;QAED,IAAI,MAAM,YAAY,OAAO,EAAE;YAC7B,wBAAwB;YACxB,OAAO,MAAM,CAAC;SACf;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,+BAAM,GAAb,UAAc,IAAgB,EAAE,IAAY,EAAE,OAAoB;QAChE,IAAM,SAAS,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACnF,IAAI,SAAS,EAAE;YACb,OAAO,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;SACvC;aAAM;YACL,mDAAmD;YACnD,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;SAChC;IACH,CAAC;IAhFsB,2BAAY,GAAkC,IAAI,cAAc,EAAE,CAAC;IAiF5F,qBAAC;CAAA;AAlF0B;;;ACrBpB,SAAS,gBAAgB,CAAC,MAAsE;IACrG,IAAI,MAAM,YAAY,UAAU,EAAE;QAChC,OAAO,MAAM,CAAC;KACf;SAAM,IAAI,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;QACrC,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;KAC5E;SAAM,IAAI,MAAM,YAAY,WAAW,EAAE;QACxC,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;KAC/B;SAAM;QACL,oBAAoB;QACpB,OAAO,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KAChC;AACH,CAAC;AAEM,SAAS,cAAc,CAAC,MAAyD;IACtF,IAAI,MAAM,YAAY,WAAW,EAAE;QACjC,OAAO,IAAI,QAAQ,CAAC,MAAM,CAAC,CAAC;KAC7B;IAED,IAAM,UAAU,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC5C,OAAO,IAAI,QAAQ,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;AACvF,CAAC;;;;;;;;;;;;;;ACpB4F;AACvB;AACpB;AACK;AAGhD,IAAM,iBAAiB,GAAG,GAAG,CAAC;AAC9B,IAAM,2BAA2B,GAAG,IAAI,CAAC;AAEhD;IAKE,iBACmB,cAAoF,EACpF,OAAuC,EACvC,QAA4B,EAC5B,iBAA+C,EAC/C,QAAgB,EAChB,YAAoB,EACpB,eAAuB,EACvB,mBAA2B;QAP3B,kDAAkD,2BAAkC;QACpF,oCAAuB,SAAgB;QACvC,uDAA4B;QAC5B,mFAA+C;QAC/C,2CAAgB;QAChB,mDAAoB;QACpB,yDAAuB;QACvB,iEAA2B;QAP3B,mBAAc,GAAd,cAAc,CAAsE;QACpF,YAAO,GAAP,OAAO,CAAgC;QACvC,aAAQ,GAAR,QAAQ,CAAoB;QAC5B,sBAAiB,GAAjB,iBAAiB,CAA8B;QAC/C,aAAQ,GAAR,QAAQ,CAAQ;QAChB,iBAAY,GAAZ,YAAY,CAAQ;QACpB,oBAAe,GAAf,eAAe,CAAQ;QACvB,wBAAmB,GAAnB,mBAAmB,CAAQ;QAZtC,QAAG,GAAG,CAAC,CAAC;QACR,SAAI,GAAG,IAAI,QAAQ,CAAC,IAAI,WAAW,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;QAC7D,UAAK,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAW9C,CAAC;IAEI,mCAAiB,GAAzB;QACE,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;IACf,CAAC;IAED;;;;OAIG;IACI,iCAAe,GAAtB,UAAuB,MAAe;QACpC,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1C,CAAC;IAED;;OAEG;IACI,wBAAM,GAAb,UAAc,MAAe;QAC3B,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAEO,0BAAQ,GAAhB,UAAiB,MAAe,EAAE,KAAa;QAC7C,IAAI,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE;YACzB,MAAM,IAAI,KAAK,CAAC,oCAA6B,KAAK,CAAE,CAAC,CAAC;SACvD;QAED,IAAI,MAAM,IAAI,IAAI,EAAE;YAClB,IAAI,CAAC,SAAS,EAAE,CAAC;SAClB;aAAM,IAAI,OAAO,MAAM,KAAK,SAAS,EAAE;YACtC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;SAC5B;aAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;YACrC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;SAC3B;aAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;YACrC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;SAC3B;aAAM;YACL,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;SAClC;IACH,CAAC;IAEO,yCAAuB,GAA/B,UAAgC,WAAmB;QACjD,IAAM,YAAY,GAAG,IAAI,CAAC,GAAG,GAAG,WAAW,CAAC;QAE5C,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,GAAG,YAAY,EAAE;YACvC,IAAI,CAAC,YAAY,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC;SACrC;IACH,CAAC;IAEO,8BAAY,GAApB,UAAqB,OAAe;QAClC,IAAM,SAAS,GAAG,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC;QAC3C,IAAM,QAAQ,GAAG,IAAI,UAAU,CAAC,SAAS,CAAC,CAAC;QAC3C,IAAM,OAAO,GAAG,IAAI,QAAQ,CAAC,SAAS,CAAC,CAAC;QAExC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEzB,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC;QACpB,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC;IACxB,CAAC;IAEO,2BAAS,GAAjB;QACE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC;IAEO,+BAAa,GAArB,UAAsB,MAAe;QACnC,IAAI,MAAM,KAAK,KAAK,EAAE;YACpB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACpB;aAAM;YACL,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACpB;IACH,CAAC;IACO,8BAAY,GAApB,UAAqB,MAAc;QACjC,IAAI,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE;YAC7D,IAAI,MAAM,IAAI,CAAC,EAAE;gBACf,IAAI,MAAM,GAAG,IAAI,EAAE;oBACjB,kBAAkB;oBAClB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;iBACtB;qBAAM,IAAI,MAAM,GAAG,KAAK,EAAE;oBACzB,SAAS;oBACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACnB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;iBACtB;qBAAM,IAAI,MAAM,GAAG,OAAO,EAAE;oBAC3B,UAAU;oBACV,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACnB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;iBACvB;qBAAM,IAAI,MAAM,GAAG,WAAW,EAAE;oBAC/B,UAAU;oBACV,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACnB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;iBACvB;qBAAM;oBACL,UAAU;oBACV,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACnB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;iBACvB;aACF;iBAAM;gBACL,IAAI,MAAM,IAAI,CAAC,IAAI,EAAE;oBACnB,kBAAkB;oBAClB,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;iBACtC;qBAAM,IAAI,MAAM,IAAI,CAAC,IAAI,EAAE;oBAC1B,QAAQ;oBACR,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACnB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;iBACtB;qBAAM,IAAI,MAAM,IAAI,CAAC,MAAM,EAAE;oBAC5B,SAAS;oBACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACnB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;iBACvB;qBAAM,IAAI,MAAM,IAAI,CAAC,UAAU,EAAE;oBAChC,SAAS;oBACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACnB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;iBACvB;qBAAM;oBACL,SAAS;oBACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACnB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;iBACvB;aACF;SACF;aAAM;YACL,sBAAsB;YACtB,IAAI,IAAI,CAAC,YAAY,EAAE;gBACrB,WAAW;gBACX,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;gBACnB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;aACvB;iBAAM;gBACL,WAAW;gBACX,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;gBACnB,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;aACvB;SACF;IACH,CAAC;IAEO,mCAAiB,GAAzB,UAA0B,UAAkB;QAC1C,IAAI,UAAU,GAAG,EAAE,EAAE;YACnB,SAAS;YACT,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,UAAU,CAAC,CAAC;SACjC;aAAM,IAAI,UAAU,GAAG,KAAK,EAAE;YAC7B,QAAQ;YACR,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;SAC1B;aAAM,IAAI,UAAU,GAAG,OAAO,EAAE;YAC/B,SAAS;YACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;SAC3B;aAAM,IAAI,UAAU,GAAG,WAAW,EAAE;YACnC,SAAS;YACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;SAC3B;aAAM;YACL,MAAM,IAAI,KAAK,CAAC,2BAAoB,UAAU,oBAAiB,CAAC,CAAC;SAClE;IACH,CAAC;IAEO,8BAAY,GAApB,UAAqB,MAAc;QACjC,IAAM,aAAa,GAAG,CAAC,GAAG,CAAC,CAAC;QAC5B,IAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC;QAEhC,IAAI,SAAS,GAAG,sBAAsB,EAAE;YACtC,IAAM,UAAU,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;YACrC,IAAI,CAAC,uBAAuB,CAAC,aAAa,GAAG,UAAU,CAAC,CAAC;YACzD,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACnC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;YAC3C,IAAI,CAAC,GAAG,IAAI,UAAU,CAAC;SACxB;aAAM;YACL,IAAM,UAAU,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;YACrC,IAAI,CAAC,uBAAuB,CAAC,aAAa,GAAG,UAAU,CAAC,CAAC;YACzD,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YACnC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;YAC3C,IAAI,CAAC,GAAG,IAAI,UAAU,CAAC;SACxB;IACH,CAAC;IAEO,8BAAY,GAApB,UAAqB,MAAe,EAAE,KAAa;QACjD,kEAAkE;QAClE,IAAM,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAClE,IAAI,GAAG,IAAI,IAAI,EAAE;YACf,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;SAC3B;aAAM,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;YAChC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;SACjC;aAAM,IAAI,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;YACrC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;SAC3B;aAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;YACrC,IAAI,CAAC,SAAS,CAAC,MAAiC,EAAE,KAAK,CAAC,CAAC;SAC1D;aAAM;YACL,0FAA0F;YAC1F,MAAM,IAAI,KAAK,CAAC,+BAAwB,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAE,CAAC,CAAC;SACpF;IACH,CAAC;IAEO,8BAAY,GAApB,UAAqB,MAAuB;QAC1C,IAAM,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC;QAC/B,IAAI,IAAI,GAAG,KAAK,EAAE;YAChB,QAAQ;YACR,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACpB;aAAM,IAAI,IAAI,GAAG,OAAO,EAAE;YACzB,SAAS;YACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACrB;aAAM,IAAI,IAAI,GAAG,WAAW,EAAE;YAC7B,SAAS;YACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACrB;aAAM;YACL,MAAM,IAAI,KAAK,CAAC,4BAAqB,IAAI,CAAE,CAAC,CAAC;SAC9C;QACD,IAAM,KAAK,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;QACvC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;IAEO,6BAAW,GAAnB,UAAoB,MAAsB,EAAE,KAAa;;QACvD,IAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;QAC3B,IAAI,IAAI,GAAG,EAAE,EAAE;YACb,WAAW;YACX,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;SAC3B;aAAM,IAAI,IAAI,GAAG,OAAO,EAAE;YACzB,WAAW;YACX,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACrB;aAAM,IAAI,IAAI,GAAG,WAAW,EAAE;YAC7B,WAAW;YACX,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACrB;aAAM;YACL,MAAM,IAAI,KAAK,CAAC,2BAAoB,IAAI,CAAE,CAAC,CAAC;SAC7C;;YACD,KAAmB,oCAAM,iFAAE;gBAAtB,IAAM,IAAI;gBACb,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;aAChC;;;;;;;;;IACH,CAAC;IAEO,uCAAqB,GAA7B,UAA8B,MAA+B,EAAE,IAA2B;;QACxF,IAAI,KAAK,GAAG,CAAC,CAAC;;YAEd,KAAkB,gCAAI,uEAAE;gBAAnB,IAAM,GAAG;gBACZ,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,SAAS,EAAE;oBAC7B,KAAK,EAAE,CAAC;iBACT;aACF;;;;;;;;;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,2BAAS,GAAjB,UAAkB,MAA+B,EAAE,KAAa;;QAC9D,IAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjC,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,IAAI,CAAC,IAAI,EAAE,CAAC;SACb;QAED,IAAM,IAAI,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QAE3F,IAAI,IAAI,GAAG,EAAE,EAAE;YACb,SAAS;YACT,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;SAC3B;aAAM,IAAI,IAAI,GAAG,OAAO,EAAE;YACzB,SAAS;YACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACrB;aAAM,IAAI,IAAI,GAAG,WAAW,EAAE;YAC7B,SAAS;YACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACrB;aAAM;YACL,MAAM,IAAI,KAAK,CAAC,gCAAyB,IAAI,CAAE,CAAC,CAAC;SAClD;;YAED,KAAkB,gCAAI,uEAAE;gBAAnB,IAAM,GAAG;gBACZ,IAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;gBAE1B,IAAI,CAAC,CAAC,IAAI,CAAC,eAAe,IAAI,KAAK,KAAK,SAAS,CAAC,EAAE;oBAClD,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;oBACvB,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;iBACjC;aACF;;;;;;;;;IACH,CAAC;IAEO,iCAAe,GAAvB,UAAwB,GAAY;QAClC,IAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC;QAC7B,IAAI,IAAI,KAAK,CAAC,EAAE;YACd,WAAW;YACX,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACpB;aAAM,IAAI,IAAI,KAAK,CAAC,EAAE;YACrB,WAAW;YACX,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACpB;aAAM,IAAI,IAAI,KAAK,CAAC,EAAE;YACrB,WAAW;YACX,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACpB;aAAM,IAAI,IAAI,KAAK,CAAC,EAAE;YACrB,WAAW;YACX,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACpB;aAAM,IAAI,IAAI,KAAK,EAAE,EAAE;YACtB,YAAY;YACZ,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACpB;aAAM,IAAI,IAAI,GAAG,KAAK,EAAE;YACvB,QAAQ;YACR,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACpB;aAAM,IAAI,IAAI,GAAG,OAAO,EAAE;YACzB,SAAS;YACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACrB;aAAM,IAAI,IAAI,GAAG,WAAW,EAAE;YAC7B,SAAS;YACT,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;SACrB;aAAM;YACL,MAAM,IAAI,KAAK,CAAC,sCAA+B,IAAI,CAAE,CAAC,CAAC;SACxD;QACD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACvB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAEO,yBAAO,GAAf,UAAgB,KAAa;QAC3B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAEhC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACpC,IAAI,CAAC,GAAG,EAAE,CAAC;IACb,CAAC;IAEO,0BAAQ,GAAhB,UAAiB,MAAyB;QACxC,IAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAEnC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC;IACnB,CAAC;IAEO,yBAAO,GAAf,UAAgB,KAAa;QAC3B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAEhC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACnC,IAAI,CAAC,GAAG,EAAE,CAAC;IACb,CAAC;IAEO,0BAAQ,GAAhB,UAAiB,KAAa;QAC5B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAEhC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACrC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAChB,CAAC;IAEO,0BAAQ,GAAhB,UAAiB,KAAa;QAC5B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAEhC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACpC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAChB,CAAC;IAEO,0BAAQ,GAAhB,UAAiB,KAAa;QAC5B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAEhC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACrC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAChB,CAAC;IAEO,0BAAQ,GAAhB,UAAiB,KAAa;QAC5B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAEhC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACpC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAChB,CAAC;IAEO,0BAAQ,GAAhB,UAAiB,KAAa;QAC5B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAChC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACtC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAChB,CAAC;IAEO,0BAAQ,GAAhB,UAAiB,KAAa;QAC5B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAChC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACtC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAChB,CAAC;IAEO,0BAAQ,GAAhB,UAAiB,KAAa;QAC5B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAEhC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACtC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAChB,CAAC;IAEO,0BAAQ,GAAhB,UAAiB,KAAa;QAC5B,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAEhC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACrC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAChB,CAAC;IACH,cAAC;AAAD,CAAC;;;;AC3ZmC;AAyDpC,IAAM,oBAAoB,GAAkB,EAAE,CAAC;AAE/C;;;;;GAKG;AACI,SAAS,MAAM,CACpB,KAAc,EACd,OAAiF;IAAjF,oCAAsD,oBAA2B;IAEjF,IAAM,OAAO,GAAG,IAAI,OAAO,CACzB,OAAO,CAAC,cAAc,EACrB,OAA6C,CAAC,OAAO,EACtD,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,iBAAiB,EACzB,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,eAAe,EACvB,OAAO,CAAC,mBAAmB,CAC5B,CAAC;IACF,OAAO,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;AACxC,CAAC;;;AChFM,SAAS,UAAU,CAAC,IAAY;IACrC,OAAO,UAAG,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,eAAK,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAE,CAAC;AACnF,CAAC;;;;;;;;;;;;;;ACF2C;AAE5C,IAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,IAAM,0BAA0B,GAAG,EAAE,CAAC;AAWtC;IAKE,0BAAqB,YAAqC,EAAW,eAA4C;QAA5F,oEAAqC;QAAW,8EAA4C;QAA5F,iBAAY,GAAZ,YAAY,CAAyB;QAAW,oBAAe,GAAf,eAAe,CAA6B;QAJjH,QAAG,GAAG,CAAC,CAAC;QACR,SAAI,GAAG,CAAC,CAAC;QAIP,oDAAoD;QACpD,sEAAsE;QACtE,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC,EAAE,EAAE;YAC1C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SACtB;IACH,CAAC;IAEM,sCAAW,GAAlB,UAAmB,UAAkB;QACnC,OAAO,UAAU,GAAG,CAAC,IAAI,UAAU,IAAI,IAAI,CAAC,YAAY,CAAC;IAC3D,CAAC;IAEO,+BAAI,GAAZ,UAAa,KAAiB,EAAE,WAAmB,EAAE,UAAkB;;QACrE,IAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,GAAG,CAAC,CAAE,CAAC;;YAE7C,UAAU,EAAE,KAAqB,+CAAO,sFAAE;gBAAzB,IAAM,MAAM;gBAC3B,IAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC;gBAEjC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,EAAE,CAAC,EAAE,EAAE;oBACnC,IAAI,WAAW,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE;wBAC7C,SAAS,UAAU,CAAC;qBACrB;iBACF;gBACD,OAAO,MAAM,CAAC,GAAG,CAAC;aACnB;;;;;;;;;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEO,gCAAK,GAAb,UAAc,KAAiB,EAAE,KAAa;QAC5C,IAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC;QAC/C,IAAM,MAAM,GAAmB,EAAE,KAAK,SAAE,GAAG,EAAE,KAAK,EAAE,CAAC;QAErD,IAAI,OAAO,CAAC,MAAM,IAAI,IAAI,CAAC,eAAe,EAAE;YAC1C,sBAAsB;YACtB,yCAAyC;YACzC,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC;SACxD;aAAM;YACL,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACtB;IACH,CAAC;IAEM,iCAAM,GAAb,UAAc,KAAiB,EAAE,WAAmB,EAAE,UAAkB;QACtE,IAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;QAC9D,IAAI,WAAW,IAAI,IAAI,EAAE;YACvB,IAAI,CAAC,GAAG,EAAE,CAAC;YACX,OAAO,WAAW,CAAC;SACpB;QACD,IAAI,CAAC,IAAI,EAAE,CAAC;QAEZ,IAAM,GAAG,GAAG,YAAY,CAAC,KAAK,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;QACzD,4IAA4I;QAC5I,IAAM,iBAAiB,GAAG,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,WAAW,EAAE,WAAW,GAAG,UAAU,CAAC,CAAC;QACxG,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC;QACnC,OAAO,GAAG,CAAC;IACb,CAAC;IACH,uBAAC;AAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3E+C;AACsB;AACR;AACoB;AACX;AACL;AACtB;AAU5C,IAAM,iBAAiB,GAAG,UAAC,GAAY;IACrC,IAAM,OAAO,GAAG,OAAO,GAAG,CAAC;IAE3B,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,QAAQ,CAAC;AACtD,CAAC,CAAC;AAmBF,IAAM,kBAAkB,GAAG,CAAC,CAAC,CAAC;AAE9B,IAAM,UAAU,GAAG,IAAI,QAAQ,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;AACpD,IAAM,WAAW,GAAG,IAAI,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AAEtD,8BAA8B;AAC9B,sEAAsE;AAC/D,IAAM,6BAA6B,GAAiB,CAAC;IAC1D,IAAI;QACF,kDAAkD;QAClD,yCAAyC;QACzC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;KACvB;IAAC,OAAO,CAAM,EAAE;QACf,OAAO,CAAC,CAAC,WAAW,CAAC;KACtB;IACD,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;AACnC,CAAC,CAAC,EAAE,CAAC;AAEL,IAAM,SAAS,GAAG,IAAI,6BAA6B,CAAC,mBAAmB,CAAC,CAAC;AAEzE,IAAM,sBAAsB,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAEtD;IASE,iBACmB,cAAoF,EACpF,OAAuC,EACvC,YAAyB,EACzB,YAAyB,EACzB,cAA2B,EAC3B,YAAyB,EACzB,YAAyB,EACzB,UAAsD;QAPtD,kDAAkD,2BAAkC;QACpF,oCAAuB,SAAgB;QACvC,8CAAe,UAAU;QACzB,8CAAe,UAAU;QACzB,kDAAiB,UAAU;QAC3B,8CAAe,UAAU;QACzB,8CAAe,UAAU;QACzB,gEAAsD;QAPtD,mBAAc,GAAd,cAAc,CAAsE;QACpF,YAAO,GAAP,OAAO,CAAgC;QACvC,iBAAY,GAAZ,YAAY,CAAa;QACzB,iBAAY,GAAZ,YAAY,CAAa;QACzB,mBAAc,GAAd,cAAc,CAAa;QAC3B,iBAAY,GAAZ,YAAY,CAAa;QACzB,iBAAY,GAAZ,YAAY,CAAa;QACzB,eAAU,GAAV,UAAU,CAA4C;QAhBjE,aAAQ,GAAG,CAAC,CAAC;QACb,QAAG,GAAG,CAAC,CAAC;QAER,SAAI,GAAG,UAAU,CAAC;QAClB,UAAK,GAAG,WAAW,CAAC;QACpB,aAAQ,GAAG,kBAAkB,CAAC;QACrB,UAAK,GAAsB,EAAE,CAAC;IAW5C,CAAC;IAEI,mCAAiB,GAAzB;QACE,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QAClB,IAAI,CAAC,QAAQ,GAAG,kBAAkB,CAAC;QACnC,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;QAEtB,6DAA6D;IAC/D,CAAC;IAEO,2BAAS,GAAjB,UAAkB,MAAwC;QACxD,IAAI,CAAC,KAAK,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACvC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;IACf,CAAC;IAEO,8BAAY,GAApB,UAAqB,MAAwC;QAC3D,IAAI,IAAI,CAAC,QAAQ,KAAK,kBAAkB,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE;YACjE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;SACxB;aAAM;YACL,IAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACpD,IAAM,OAAO,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC;YAEzC,iCAAiC;YACjC,IAAM,SAAS,GAAG,IAAI,UAAU,CAAC,aAAa,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;YACxE,SAAS,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;YAC7B,SAAS,CAAC,GAAG,CAAC,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;YAC7C,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;SAC3B;IACH,CAAC;IAEO,8BAAY,GAApB,UAAqB,IAAY;QAC/B,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC;IACjD,CAAC;IAEO,sCAAoB,GAA5B,UAA6B,SAAiB;QACtC,SAAgB,IAAI,EAAlB,IAAI,YAAE,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,UAAU,CAAC,gBAAS,IAAI,CAAC,UAAU,GAAG,GAAG,iBAAO,IAAI,CAAC,UAAU,sCAA4B,SAAS,MAAG,CAAC,CAAC;IACtH,CAAC;IAED;;;OAGG;IACI,wBAAM,GAAb,UAAc,MAAwC;QACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAEvB,IAAM,MAAM,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QACnC,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE;YACxB,MAAM,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SAC3C;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAEO,6BAAW,GAAnB,UAAoB,MAAwC;;;;oBAC1D,IAAI,CAAC,iBAAiB,EAAE,CAAC;oBACzB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;;;yBAEhB,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;oBACzB,qBAAM,IAAI,CAAC,YAAY,EAAE;;oBAAzB,SAAyB,CAAC;;;;;KAE7B;IAEY,6BAAW,GAAxB,UAAyB,MAAuD;;;;;;;;wBAC1E,OAAO,GAAG,KAAK,CAAC;;;;wBAEO,+BAAM;;;;;wBAAhB,MAAM;wBACrB,IAAI,OAAO,EAAE;4BACX,MAAM,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;yBAChD;wBAED,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;wBAE1B,IAAI;4BACF,MAAM,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;4BAC7B,OAAO,GAAG,IAAI,CAAC;yBAChB;wBAAC,OAAO,CAAC,EAAE;4BACV,IAAI,CAAC,CAAC,CAAC,YAAY,6BAA6B,CAAC,EAAE;gCACjD,MAAM,CAAC,CAAC,CAAC,UAAU;6BACpB;4BACD,cAAc;yBACf;wBACD,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;wBAG5B,IAAI,OAAO,EAAE;4BACX,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE;gCACxB,MAAM,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;6BAChD;4BACD,sBAAO,MAAM,EAAC;yBACf;wBAEK,KAA8B,IAAI,EAAhC,QAAQ,gBAAE,GAAG,WAAE,QAAQ,eAAU;wBACzC,MAAM,IAAI,UAAU,CAClB,uCAAgC,UAAU,CAAC,QAAQ,CAAC,iBAAO,QAAQ,eAAK,GAAG,4BAAyB,CACrG,CAAC;;;;KACH;IAEM,mCAAiB,GAAxB,UACE,MAAuD;QAEvD,OAAO,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC7C,CAAC;IAEM,8BAAY,GAAnB,UAAoB,MAAuD;QACzE,OAAO,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC9C,CAAC;IAEc,kCAAgB,GAA/B,UAAgC,MAAuD,EAAE,OAAgB;;;;;;;wBACnG,qBAAqB,GAAG,OAAO,CAAC;wBAChC,cAAc,GAAG,CAAC,CAAC,CAAC;;;;wBAEG,+BAAM;;;;;wBAAhB,MAAM;wBACrB,IAAI,OAAO,IAAI,cAAc,KAAK,CAAC,EAAE;4BACnC,MAAM,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;yBAChD;wBAED,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;wBAE1B,IAAI,qBAAqB,EAAE;4BACzB,cAAc,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;4BACtC,qBAAqB,GAAG,KAAK,CAAC;4BAC9B,IAAI,CAAC,QAAQ,EAAE,CAAC;yBACjB;;;;;;iCAGY,EAAE;qDACL,IAAI,CAAC,YAAY,EAAE;4BAAzB,gCAAyB;;wBAAzB,SAAyB,CAAC;wBAC1B,IAAI,EAAE,cAAc,KAAK,CAAC,EAAE;4BAC1B,wBAAM;yBACP;;;;;wBAGH,IAAI,CAAC,CAAC,GAAC,YAAY,6BAA6B,CAAC,EAAE;4BACjD,MAAM,GAAC,CAAC,CAAC,UAAU;yBACpB;;;wBAGH,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;KAE7B;IAEO,8BAAY,GAApB;QACE,MAAM,EAAE,OAAO,IAAI,EAAE;YACnB,IAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;YACrC,IAAI,MAAM,SAAS,CAAC;YAEpB,IAAI,QAAQ,IAAI,IAAI,EAAE;gBACpB,0CAA0C;gBAC1C,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;aAC3B;iBAAM,IAAI,QAAQ,GAAG,IAAI,EAAE;gBAC1B,IAAI,QAAQ,GAAG,IAAI,EAAE;oBACnB,0CAA0C;oBAC1C,MAAM,GAAG,QAAQ,CAAC;iBACnB;qBAAM,IAAI,QAAQ,GAAG,IAAI,EAAE;oBAC1B,iCAAiC;oBACjC,IAAM,IAAI,GAAG,QAAQ,GAAG,IAAI,CAAC;oBAC7B,IAAI,IAAI,KAAK,CAAC,EAAE;wBACd,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;wBACxB,IAAI,CAAC,QAAQ,EAAE,CAAC;wBAChB,SAAS,MAAM,CAAC;qBACjB;yBAAM;wBACL,MAAM,GAAG,EAAE,CAAC;qBACb;iBACF;qBAAM,IAAI,QAAQ,GAAG,IAAI,EAAE;oBAC1B,mCAAmC;oBACnC,IAAM,IAAI,GAAG,QAAQ,GAAG,IAAI,CAAC;oBAC7B,IAAI,IAAI,KAAK,CAAC,EAAE;wBACd,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;wBAC1B,IAAI,CAAC,QAAQ,EAAE,CAAC;wBAChB,SAAS,MAAM,CAAC;qBACjB;yBAAM;wBACL,MAAM,GAAG,EAAE,CAAC;qBACb;iBACF;qBAAM;oBACL,iCAAiC;oBACjC,IAAM,UAAU,GAAG,QAAQ,GAAG,IAAI,CAAC;oBACnC,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;iBAC/C;aACF;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,MAAM;gBACN,MAAM,GAAG,IAAI,CAAC;aACf;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,QAAQ;gBACR,MAAM,GAAG,KAAK,CAAC;aAChB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,OAAO;gBACP,MAAM,GAAG,IAAI,CAAC;aACf;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,WAAW;gBACX,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;aACzB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,WAAW;gBACX,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;aACzB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;aACxB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,UAAU;gBACV,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;aACzB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,UAAU;gBACV,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;aACzB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,UAAU;gBACV,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;aACzB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,QAAQ;gBACR,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;aACxB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;aACzB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;aACzB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;aACzB;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,QAAQ;gBACR,IAAM,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;gBACjC,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;aAC/C;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,IAAM,UAAU,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBAClC,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;aAC/C;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,IAAM,UAAU,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBAClC,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;aAC/C;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,WAAW;gBACX,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBAC5B,IAAI,IAAI,KAAK,CAAC,EAAE;oBACd,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;oBAC1B,IAAI,CAAC,QAAQ,EAAE,CAAC;oBAChB,SAAS,MAAM,CAAC;iBACjB;qBAAM;oBACL,MAAM,GAAG,EAAE,CAAC;iBACb;aACF;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,WAAW;gBACX,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBAC5B,IAAI,IAAI,KAAK,CAAC,EAAE;oBACd,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;oBAC1B,IAAI,CAAC,QAAQ,EAAE,CAAC;oBAChB,SAAS,MAAM,CAAC;iBACjB;qBAAM;oBACL,MAAM,GAAG,EAAE,CAAC;iBACb;aACF;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBAC5B,IAAI,IAAI,KAAK,CAAC,EAAE;oBACd,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;oBACxB,IAAI,CAAC,QAAQ,EAAE,CAAC;oBAChB,SAAS,MAAM,CAAC;iBACjB;qBAAM;oBACL,MAAM,GAAG,EAAE,CAAC;iBACb;aACF;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBAC5B,IAAI,IAAI,KAAK,CAAC,EAAE;oBACd,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;oBACxB,IAAI,CAAC,QAAQ,EAAE,CAAC;oBAChB,SAAS,MAAM,CAAC;iBACjB;qBAAM;oBACL,MAAM,GAAG,EAAE,CAAC;iBACb;aACF;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,QAAQ;gBACR,IAAM,IAAI,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;gBAC3B,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;aACrC;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBAC5B,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;aACrC;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBAC5B,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;aACrC;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,WAAW;gBACX,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aACrC;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,WAAW;gBACX,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aACrC;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,WAAW;gBACX,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aACrC;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,WAAW;gBACX,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aACrC;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,YAAY;gBACZ,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;aACtC;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,QAAQ;gBACR,IAAM,IAAI,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;gBAC3B,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;aACxC;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBAC5B,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;aACxC;iBAAM,IAAI,QAAQ,KAAK,IAAI,EAAE;gBAC5B,SAAS;gBACT,IAAM,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;gBAC5B,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;aACxC;iBAAM;gBACL,MAAM,IAAI,WAAW,CAAC,kCAA2B,UAAU,CAAC,QAAQ,CAAC,CAAE,CAAC,CAAC;aAC1E;YAED,IAAI,CAAC,QAAQ,EAAE,CAAC;YAEhB,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;YACzB,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;gBACvB,kBAAkB;gBAClB,IAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC;gBACvC,IAAI,KAAK,CAAC,IAAI,wBAAgB,EAAE;oBAC9B,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;oBACrC,KAAK,CAAC,QAAQ,EAAE,CAAC;oBACjB,IAAI,KAAK,CAAC,QAAQ,KAAK,KAAK,CAAC,IAAI,EAAE;wBACjC,KAAK,CAAC,GAAG,EAAE,CAAC;wBACZ,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC;qBACtB;yBAAM;wBACL,SAAS,MAAM,CAAC;qBACjB;iBACF;qBAAM,IAAI,KAAK,CAAC,IAAI,0BAAkB,EAAE;oBACvC,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE;wBAC9B,MAAM,IAAI,WAAW,CAAC,+CAA+C,GAAG,OAAO,MAAM,CAAC,CAAC;qBACxF;oBACD,IAAI,MAAM,KAAK,WAAW,EAAE;wBAC1B,MAAM,IAAI,WAAW,CAAC,kCAAkC,CAAC,CAAC;qBAC3D;oBAED,KAAK,CAAC,GAAG,GAAG,MAAM,CAAC;oBACnB,KAAK,CAAC,IAAI,0BAAkB,CAAC;oBAC7B,SAAS,MAAM,CAAC;iBACjB;qBAAM;oBACL,mDAAmD;oBAEnD,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,GAAI,CAAC,GAAG,MAAM,CAAC;oBAC/B,KAAK,CAAC,SAAS,EAAE,CAAC;oBAElB,IAAI,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,IAAI,EAAE;wBAClC,KAAK,CAAC,GAAG,EAAE,CAAC;wBACZ,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC;qBACpB;yBAAM;wBACL,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC;wBACjB,KAAK,CAAC,IAAI,wBAAgB,CAAC;wBAC3B,SAAS,MAAM,CAAC;qBACjB;iBACF;aACF;YAED,OAAO,MAAM,CAAC;SACf;IACH,CAAC;IAEO,8BAAY,GAApB;QACE,IAAI,IAAI,CAAC,QAAQ,KAAK,kBAAkB,EAAE;YACxC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YAC9B,sDAAsD;SACvD;QAED,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAEO,0BAAQ,GAAhB;QACE,IAAI,CAAC,QAAQ,GAAG,kBAAkB,CAAC;IACrC,CAAC;IAEO,+BAAa,GAArB;QACE,IAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAErC,QAAQ,QAAQ,EAAE;YAChB,KAAK,IAAI;gBACP,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;YACxB,KAAK,IAAI;gBACP,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;YACxB,OAAO,CAAC,CAAC;gBACP,IAAI,QAAQ,GAAG,IAAI,EAAE;oBACnB,OAAO,QAAQ,GAAG,IAAI,CAAC;iBACxB;qBAAM;oBACL,MAAM,IAAI,WAAW,CAAC,wCAAiC,UAAU,CAAC,QAAQ,CAAC,CAAE,CAAC,CAAC;iBAChF;aACF;SACF;IACH,CAAC;IAEO,8BAAY,GAApB,UAAqB,IAAY;QAC/B,IAAI,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE;YAC5B,MAAM,IAAI,WAAW,CAAC,2CAAoC,IAAI,qCAA2B,IAAI,CAAC,YAAY,MAAG,CAAC,CAAC;SAChH;QAED,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;YACd,IAAI,uBAAe;YACnB,IAAI;YACJ,GAAG,EAAE,IAAI;YACT,SAAS,EAAE,CAAC;YACZ,GAAG,EAAE,EAAE;SACR,CAAC,CAAC;IACL,CAAC;IAEO,gCAAc,GAAtB,UAAuB,IAAY;QACjC,IAAI,IAAI,GAAG,IAAI,CAAC,cAAc,EAAE;YAC9B,MAAM,IAAI,WAAW,CAAC,6CAAsC,IAAI,iCAAuB,IAAI,CAAC,cAAc,MAAG,CAAC,CAAC;SAChH;QAED,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;YACd,IAAI,qBAAa;YACjB,IAAI;YACJ,KAAK,EAAE,IAAI,KAAK,CAAU,IAAI,CAAC;YAC/B,QAAQ,EAAE,CAAC;SACZ,CAAC,CAAC;IACL,CAAC;IAEO,kCAAgB,GAAxB,UAAyB,UAAkB,EAAE,YAAoB;;QAC/D,IAAI,UAAU,GAAG,IAAI,CAAC,YAAY,EAAE;YAClC,MAAM,IAAI,WAAW,CACnB,kDAA2C,UAAU,+BAAqB,IAAI,CAAC,YAAY,MAAG,CAC/F,CAAC;SACH;QAED,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,GAAG,YAAY,GAAG,UAAU,EAAE;YAChE,MAAM,SAAS,CAAC;SACjB;QAED,IAAM,MAAM,GAAG,IAAI,CAAC,GAAG,GAAG,YAAY,CAAC;QACvC,IAAI,MAAc,CAAC;QACnB,IAAI,IAAI,CAAC,aAAa,EAAE,KAAI,UAAI,CAAC,UAAU,0CAAE,WAAW,CAAC,UAAU,CAAC,GAAE;YACpE,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;SACjE;aAAM,IAAI,UAAU,GAAG,sBAAsB,EAAE;YAC9C,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;SACvD;aAAM;YACL,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;SACvD;QACD,IAAI,CAAC,GAAG,IAAI,YAAY,GAAG,UAAU,CAAC;QACtC,OAAO,MAAM,CAAC;IAChB,CAAC;IAEO,+BAAa,GAArB;QACE,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;YACzB,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC;YACjD,OAAO,KAAK,CAAC,IAAI,0BAAkB,CAAC;SACrC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,8BAAY,GAApB,UAAqB,UAAkB,EAAE,UAAkB;QACzD,IAAI,UAAU,GAAG,IAAI,CAAC,YAAY,EAAE;YAClC,MAAM,IAAI,WAAW,CAAC,2CAAoC,UAAU,+BAAqB,IAAI,CAAC,YAAY,MAAG,CAAC,CAAC;SAChH;QAED,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,GAAG,UAAU,CAAC,EAAE;YAC/C,MAAM,SAAS,CAAC;SACjB;QAED,IAAM,MAAM,GAAG,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC;QACrC,IAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC;QAChE,IAAI,CAAC,GAAG,IAAI,UAAU,GAAG,UAAU,CAAC;QACpC,OAAO,MAAM,CAAC;IAChB,CAAC;IAEO,iCAAe,GAAvB,UAAwB,IAAY,EAAE,UAAkB;QACtD,IAAI,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE;YAC5B,MAAM,IAAI,WAAW,CAAC,2CAAoC,IAAI,+BAAqB,IAAI,CAAC,YAAY,MAAG,CAAC,CAAC;SAC1G;QAED,IAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,CAAC;QACzD,IAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,CAAC,CAAC,aAAa,CAAC,CAAC;QACnE,OAAO,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACjE,CAAC;IAEO,wBAAM,GAAd;QACE,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACtC,CAAC;IAEO,yBAAO,GAAf;QACE,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAEO,yBAAO,GAAf;QACE,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAEO,wBAAM,GAAd;QACE,IAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC3C,IAAI,CAAC,GAAG,EAAE,CAAC;QACX,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,wBAAM,GAAd;QACE,IAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1C,IAAI,CAAC,GAAG,EAAE,CAAC;QACX,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,yBAAO,GAAf;QACE,IAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC5C,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,yBAAO,GAAf;QACE,IAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC3C,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,yBAAO,GAAf;QACE,IAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC5C,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,yBAAO,GAAf;QACE,IAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC3C,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,yBAAO,GAAf;QACE,IAAM,KAAK,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QAC7C,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,yBAAO,GAAf;QACE,IAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QAC5C,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,yBAAO,GAAf;QACE,IAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC7C,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,yBAAO,GAAf;QACE,IAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC7C,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;IACH,cAAC;AAAD,CAAC;;;;AClnBmC;AA0C7B,IAAM,oBAAoB,GAAkB,EAAE,CAAC;AAEtD;;;;;;;;GAQG;AACI,SAAS,MAAM,CACpB,MAAwC,EACxC,OAAiF;IAAjF,oCAAsD,oBAA2B;IAEjF,IAAM,OAAO,GAAG,IAAI,OAAO,CACzB,OAAO,CAAC,cAAc,EACrB,OAA6C,CAAC,OAAO,EACtD,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,cAAc,EACtB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,YAAY,CACrB,CAAC;IACF,OAAO,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAChC,CAAC;AAED;;;;;;GAMG;AACI,SAAS,WAAW,CACzB,MAAwC,EACxC,OAAiF;IAAjF,oCAAsD,oBAA2B;IAEjF,IAAM,OAAO,GAAG,IAAI,OAAO,CACzB,OAAO,CAAC,cAAc,EACrB,OAA6C,CAAC,OAAO,EACtD,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,cAAc,EACtB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,YAAY,CACrB,CAAC;IACF,OAAO,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;AACrC,CAAC;;;AC1FD,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQtB,SAAS,eAAe,CAAI,MAA6B;IAC9D,OAAQ,MAAc,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC;AACvD,CAAC;AAED,SAAS,aAAa,CAAI,KAA2B;IACnD,IAAI,KAAK,IAAI,IAAI,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;KAC5E;AACH,CAAC;AAEM,SAAgB,uBAAuB,CAAI,MAAyB;;;;;;oBACnE,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;;;;;;6BAGrB,EAAE;oBACa,kCAAM,MAAM,CAAC,IAAI,EAAE;;oBAArC,KAAkB,SAAmB,EAAnC,IAAI,YAAE,KAAK;yBACf,IAAI,EAAJ,wBAAI;;wBACN,iCAAO;;oBAET,aAAa,CAAC,KAAK,CAAC,CAAC;sDACf,KAAK;wBAAX,gCAAW;;oBAAX,SAAW,CAAC;;;;oBAGd,MAAM,CAAC,WAAW,EAAE,CAAC;;;;;;CAExB;AAEM,SAAS,mBAAmB,CAAI,UAAiC;IACtE,IAAI,eAAe,CAAC,UAAU,CAAC,EAAE;QAC/B,OAAO,UAAU,CAAC;KACnB;SAAM;QACL,OAAO,uBAAuB,CAAC,UAAU,CAAC,CAAC;KAC5C;AACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACzCmC;AACiB;AACL;AAKhD;;;GAGG;AACK,SAAe,WAAW,CAChC,UAAgE,EAChE,OAAiF;IAAjF,oCAAsD,oBAA2B;;;;YAE3E,MAAM,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;YAEzC,OAAO,GAAG,IAAI,OAAO,CACzB,OAAO,CAAC,cAAc,EACrB,OAA6C,CAAC,OAAO,EACtD,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,cAAc,EACtB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,YAAY,CACrB,CAAC;YACF,sBAAO,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,EAAC;;;CACpC;AAED;;;GAGG;AACK,SAAS,iBAAiB,CAChC,UAAgE,EAChE,OAAiF;IAAjF,oCAAsD,oBAA2B;IAEjF,IAAM,MAAM,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;IAE/C,IAAM,OAAO,GAAG,IAAI,OAAO,CACzB,OAAO,CAAC,cAAc,EACrB,OAA6C,CAAC,OAAO,EACtD,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,cAAc,EACtB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,YAAY,CACrB,CAAC;IAEF,OAAO,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;AAC3C,CAAC;AAED;;;GAGG;AACI,SAAS,iBAAiB,CAC/B,UAAgE,EAChE,OAAiF;IAAjF,oCAAsD,oBAA2B;IAEjF,IAAM,MAAM,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;IAE/C,IAAM,OAAO,GAAG,IAAI,OAAO,CACzB,OAAO,CAAC,cAAc,EACrB,OAA6C,CAAC,OAAO,EACtD,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,cAAc,EACtB,OAAO,CAAC,YAAY,EACpB,OAAO,CAAC,YAAY,CACrB,CAAC;IAEF,OAAO,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;AACtC,CAAC;AAED;;GAEG;AACI,SAAS,YAAY,CAC1B,UAAgE,EAChE,OAAiF;IAAjF,oCAAsD,oBAA2B;IAEjF,OAAO,iBAAiB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAChD,CAAC;;;ACnFD,kBAAkB;AAEgB;AAChB;AAI6B;AAChB;AAIiE;AACrB;AAER;AACvB;AACmB;AAE3B;AACjB;AAEnB,kCAAkC;AAEgB;AACxB;AAGU;AACjB;AASE;AAQnB","sources":["webpack://MessagePack/webpack/universalModuleDefinition","webpack://MessagePack/webpack/bootstrap","webpack://MessagePack/webpack/runtime/define property getters","webpack://MessagePack/webpack/runtime/hasOwnProperty shorthand","webpack://MessagePack/webpack/runtime/make namespace object","webpack://MessagePack/./src/utils/int.ts","webpack://MessagePack/./src/utils/utf8.ts","webpack://MessagePack/./src/ExtData.ts","webpack://MessagePack/./src/DecodeError.ts","webpack://MessagePack/./src/timestamp.ts","webpack://MessagePack/./src/ExtensionCodec.ts","webpack://MessagePack/./src/utils/typedArrays.ts","webpack://MessagePack/./src/Encoder.ts","webpack://MessagePack/./src/encode.ts","webpack://MessagePack/./src/utils/prettyByte.ts","webpack://MessagePack/./src/CachedKeyDecoder.ts","webpack://MessagePack/./src/Decoder.ts","webpack://MessagePack/./src/decode.ts","webpack://MessagePack/./src/utils/stream.ts","webpack://MessagePack/./src/decodeAsync.ts","webpack://MessagePack/./src/index.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"MessagePack\"] = factory();\n\telse\n\t\troot[\"MessagePack\"] = factory();\n})(this, function() {\nreturn ","// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// Integer Utility\n\nexport const UINT32_MAX = 0xffff_ffff;\n\n// DataView extension to handle int64 / uint64,\n// where the actual range is 53-bits integer (a.k.a. safe integer)\n\nexport function setUint64(view: DataView, offset: number, value: number): void {\n const high = value / 0x1_0000_0000;\n const low = value; // high bits are truncated by DataView\n view.setUint32(offset, high);\n view.setUint32(offset + 4, low);\n}\n\nexport function setInt64(view: DataView, offset: number, value: number): void {\n const high = Math.floor(value / 0x1_0000_0000);\n const low = value; // high bits are truncated by DataView\n view.setUint32(offset, high);\n view.setUint32(offset + 4, low);\n}\n\nexport function getInt64(view: DataView, offset: number): number {\n const high = view.getInt32(offset);\n const low = view.getUint32(offset + 4);\n return high * 0x1_0000_0000 + low;\n}\n\nexport function getUint64(view: DataView, offset: number): number {\n const high = view.getUint32(offset);\n const low = view.getUint32(offset + 4);\n return high * 0x1_0000_0000 + low;\n}\n","/* eslint-disable @typescript-eslint/no-unnecessary-condition */\nimport { UINT32_MAX } from \"./int\";\n\nconst TEXT_ENCODING_AVAILABLE =\n (typeof process === \"undefined\" || process?.env?.[\"TEXT_ENCODING\"] !== \"never\") &&\n typeof TextEncoder !== \"undefined\" &&\n typeof TextDecoder !== \"undefined\";\n\nexport function utf8Count(str: string): number {\n const strLength = str.length;\n\n let byteLength = 0;\n let pos = 0;\n while (pos < strLength) {\n let value = str.charCodeAt(pos++);\n\n if ((value & 0xffffff80) === 0) {\n // 1-byte\n byteLength++;\n continue;\n } else if ((value & 0xfffff800) === 0) {\n // 2-bytes\n byteLength += 2;\n } else {\n // handle surrogate pair\n if (value >= 0xd800 && value <= 0xdbff) {\n // high surrogate\n if (pos < strLength) {\n const extra = str.charCodeAt(pos);\n if ((extra & 0xfc00) === 0xdc00) {\n ++pos;\n value = ((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000;\n }\n }\n }\n\n if ((value & 0xffff0000) === 0) {\n // 3-byte\n byteLength += 3;\n } else {\n // 4-byte\n byteLength += 4;\n }\n }\n }\n return byteLength;\n}\n\nexport function utf8EncodeJs(str: string, output: Uint8Array, outputOffset: number): void {\n const strLength = str.length;\n let offset = outputOffset;\n let pos = 0;\n while (pos < strLength) {\n let value = str.charCodeAt(pos++);\n\n if ((value & 0xffffff80) === 0) {\n // 1-byte\n output[offset++] = value;\n continue;\n } else if ((value & 0xfffff800) === 0) {\n // 2-bytes\n output[offset++] = ((value >> 6) & 0x1f) | 0xc0;\n } else {\n // handle surrogate pair\n if (value >= 0xd800 && value <= 0xdbff) {\n // high surrogate\n if (pos < strLength) {\n const extra = str.charCodeAt(pos);\n if ((extra & 0xfc00) === 0xdc00) {\n ++pos;\n value = ((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000;\n }\n }\n }\n\n if ((value & 0xffff0000) === 0) {\n // 3-byte\n output[offset++] = ((value >> 12) & 0x0f) | 0xe0;\n output[offset++] = ((value >> 6) & 0x3f) | 0x80;\n } else {\n // 4-byte\n output[offset++] = ((value >> 18) & 0x07) | 0xf0;\n output[offset++] = ((value >> 12) & 0x3f) | 0x80;\n output[offset++] = ((value >> 6) & 0x3f) | 0x80;\n }\n }\n\n output[offset++] = (value & 0x3f) | 0x80;\n }\n}\n\nconst sharedTextEncoder = TEXT_ENCODING_AVAILABLE ? new TextEncoder() : undefined;\nexport const TEXT_ENCODER_THRESHOLD = !TEXT_ENCODING_AVAILABLE\n ? UINT32_MAX\n : typeof process !== \"undefined\" && process?.env?.[\"TEXT_ENCODING\"] !== \"force\"\n ? 200\n : 0;\n\nfunction utf8EncodeTEencode(str: string, output: Uint8Array, outputOffset: number): void {\n output.set(sharedTextEncoder!.encode(str), outputOffset);\n}\n\nfunction utf8EncodeTEencodeInto(str: string, output: Uint8Array, outputOffset: number): void {\n sharedTextEncoder!.encodeInto(str, output.subarray(outputOffset));\n}\n\nexport const utf8EncodeTE = sharedTextEncoder?.encodeInto ? utf8EncodeTEencodeInto : utf8EncodeTEencode;\n\nconst CHUNK_SIZE = 0x1_000;\n\nexport function utf8DecodeJs(bytes: Uint8Array, inputOffset: number, byteLength: number): string {\n let offset = inputOffset;\n const end = offset + byteLength;\n\n const units: Array = [];\n let result = \"\";\n while (offset < end) {\n const byte1 = bytes[offset++]!;\n if ((byte1 & 0x80) === 0) {\n // 1 byte\n units.push(byte1);\n } else if ((byte1 & 0xe0) === 0xc0) {\n // 2 bytes\n const byte2 = bytes[offset++]! & 0x3f;\n units.push(((byte1 & 0x1f) << 6) | byte2);\n } else if ((byte1 & 0xf0) === 0xe0) {\n // 3 bytes\n const byte2 = bytes[offset++]! & 0x3f;\n const byte3 = bytes[offset++]! & 0x3f;\n units.push(((byte1 & 0x1f) << 12) | (byte2 << 6) | byte3);\n } else if ((byte1 & 0xf8) === 0xf0) {\n // 4 bytes\n const byte2 = bytes[offset++]! & 0x3f;\n const byte3 = bytes[offset++]! & 0x3f;\n const byte4 = bytes[offset++]! & 0x3f;\n let unit = ((byte1 & 0x07) << 0x12) | (byte2 << 0x0c) | (byte3 << 0x06) | byte4;\n if (unit > 0xffff) {\n unit -= 0x10000;\n units.push(((unit >>> 10) & 0x3ff) | 0xd800);\n unit = 0xdc00 | (unit & 0x3ff);\n }\n units.push(unit);\n } else {\n units.push(byte1);\n }\n\n if (units.length >= CHUNK_SIZE) {\n result += String.fromCharCode(...units);\n units.length = 0;\n }\n }\n\n if (units.length > 0) {\n result += String.fromCharCode(...units);\n }\n\n return result;\n}\n\nconst sharedTextDecoder = TEXT_ENCODING_AVAILABLE ? new TextDecoder() : null;\nexport const TEXT_DECODER_THRESHOLD = !TEXT_ENCODING_AVAILABLE\n ? UINT32_MAX\n : typeof process !== \"undefined\" && process?.env?.[\"TEXT_DECODER\"] !== \"force\"\n ? 200\n : 0;\n\nexport function utf8DecodeTD(bytes: Uint8Array, inputOffset: number, byteLength: number): string {\n const stringBytes = bytes.subarray(inputOffset, inputOffset + byteLength);\n return sharedTextDecoder!.decode(stringBytes);\n}\n","/**\n * ExtData is used to handle Extension Types that are not registered to ExtensionCodec.\n */\nexport class ExtData {\n constructor(readonly type: number, readonly data: Uint8Array) {}\n}\n","export class DecodeError extends Error {\n constructor(message: string) {\n super(message);\n\n // fix the prototype chain in a cross-platform way\n const proto: typeof DecodeError.prototype = Object.create(DecodeError.prototype);\n Object.setPrototypeOf(this, proto);\n\n Object.defineProperty(this, \"name\", {\n configurable: true,\n enumerable: false,\n value: DecodeError.name,\n });\n }\n}\n","// https://github.com/msgpack/msgpack/blob/master/spec.md#timestamp-extension-type\nimport { DecodeError } from \"./DecodeError\";\nimport { getInt64, setInt64 } from \"./utils/int\";\n\nexport const EXT_TIMESTAMP = -1;\n\nexport type TimeSpec = {\n sec: number;\n nsec: number;\n};\n\nconst TIMESTAMP32_MAX_SEC = 0x100000000 - 1; // 32-bit unsigned int\nconst TIMESTAMP64_MAX_SEC = 0x400000000 - 1; // 34-bit unsigned int\n\nexport function encodeTimeSpecToTimestamp({ sec, nsec }: TimeSpec): Uint8Array {\n if (sec >= 0 && nsec >= 0 && sec <= TIMESTAMP64_MAX_SEC) {\n // Here sec >= 0 && nsec >= 0\n if (nsec === 0 && sec <= TIMESTAMP32_MAX_SEC) {\n // timestamp 32 = { sec32 (unsigned) }\n const rv = new Uint8Array(4);\n const view = new DataView(rv.buffer);\n view.setUint32(0, sec);\n return rv;\n } else {\n // timestamp 64 = { nsec30 (unsigned), sec34 (unsigned) }\n const secHigh = sec / 0x100000000;\n const secLow = sec & 0xffffffff;\n const rv = new Uint8Array(8);\n const view = new DataView(rv.buffer);\n // nsec30 | secHigh2\n view.setUint32(0, (nsec << 2) | (secHigh & 0x3));\n // secLow32\n view.setUint32(4, secLow);\n return rv;\n }\n } else {\n // timestamp 96 = { nsec32 (unsigned), sec64 (signed) }\n const rv = new Uint8Array(12);\n const view = new DataView(rv.buffer);\n view.setUint32(0, nsec);\n setInt64(view, 4, sec);\n return rv;\n }\n}\n\nexport function encodeDateToTimeSpec(date: Date): TimeSpec {\n const msec = date.getTime();\n const sec = Math.floor(msec / 1e3);\n const nsec = (msec - sec * 1e3) * 1e6;\n\n // Normalizes { sec, nsec } to ensure nsec is unsigned.\n const nsecInSec = Math.floor(nsec / 1e9);\n return {\n sec: sec + nsecInSec,\n nsec: nsec - nsecInSec * 1e9,\n };\n}\n\nexport function encodeTimestampExtension(object: unknown): Uint8Array | null {\n if (object instanceof Date) {\n const timeSpec = encodeDateToTimeSpec(object);\n return encodeTimeSpecToTimestamp(timeSpec);\n } else {\n return null;\n }\n}\n\nexport function decodeTimestampToTimeSpec(data: Uint8Array): TimeSpec {\n const view = new DataView(data.buffer, data.byteOffset, data.byteLength);\n\n // data may be 32, 64, or 96 bits\n switch (data.byteLength) {\n case 4: {\n // timestamp 32 = { sec32 }\n const sec = view.getUint32(0);\n const nsec = 0;\n return { sec, nsec };\n }\n case 8: {\n // timestamp 64 = { nsec30, sec34 }\n const nsec30AndSecHigh2 = view.getUint32(0);\n const secLow32 = view.getUint32(4);\n const sec = (nsec30AndSecHigh2 & 0x3) * 0x100000000 + secLow32;\n const nsec = nsec30AndSecHigh2 >>> 2;\n return { sec, nsec };\n }\n case 12: {\n // timestamp 96 = { nsec32 (unsigned), sec64 (signed) }\n\n const sec = getInt64(view, 4);\n const nsec = view.getUint32(0);\n return { sec, nsec };\n }\n default:\n throw new DecodeError(`Unrecognized data size for timestamp (expected 4, 8, or 12): ${data.length}`);\n }\n}\n\nexport function decodeTimestampExtension(data: Uint8Array): Date {\n const timeSpec = decodeTimestampToTimeSpec(data);\n return new Date(timeSpec.sec * 1e3 + timeSpec.nsec / 1e6);\n}\n\nexport const timestampExtension = {\n type: EXT_TIMESTAMP,\n encode: encodeTimestampExtension,\n decode: decodeTimestampExtension,\n};\n","// ExtensionCodec to handle MessagePack extensions\n\nimport { ExtData } from \"./ExtData\";\nimport { timestampExtension } from \"./timestamp\";\n\nexport type ExtensionDecoderType = (\n data: Uint8Array,\n extensionType: number,\n context: ContextType,\n) => unknown;\n\nexport type ExtensionEncoderType = (input: unknown, context: ContextType) => Uint8Array | null;\n\n// immutable interface to ExtensionCodec\nexport type ExtensionCodecType = {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n __brand?: ContextType;\n tryToEncode(object: unknown, context: ContextType): ExtData | null;\n decode(data: Uint8Array, extType: number, context: ContextType): unknown;\n};\n\nexport class ExtensionCodec implements ExtensionCodecType {\n public static readonly defaultCodec: ExtensionCodecType = new ExtensionCodec();\n\n // ensures ExtensionCodecType matches ExtensionCodec\n // this will make type errors a lot more clear\n // eslint-disable-next-line @typescript-eslint/naming-convention\n __brand?: ContextType;\n\n // built-in extensions\n private readonly builtInEncoders: Array | undefined | null> = [];\n private readonly builtInDecoders: Array | undefined | null> = [];\n\n // custom extensions\n private readonly encoders: Array | undefined | null> = [];\n private readonly decoders: Array | undefined | null> = [];\n\n public constructor() {\n this.register(timestampExtension);\n }\n\n public register({\n type,\n encode,\n decode,\n }: {\n type: number;\n encode: ExtensionEncoderType;\n decode: ExtensionDecoderType;\n }): void {\n if (type >= 0) {\n // custom extensions\n this.encoders[type] = encode;\n this.decoders[type] = decode;\n } else {\n // built-in extensions\n const index = 1 + type;\n this.builtInEncoders[index] = encode;\n this.builtInDecoders[index] = decode;\n }\n }\n\n public tryToEncode(object: unknown, context: ContextType): ExtData | null {\n // built-in extensions\n for (let i = 0; i < this.builtInEncoders.length; i++) {\n const encodeExt = this.builtInEncoders[i];\n if (encodeExt != null) {\n const data = encodeExt(object, context);\n if (data != null) {\n const type = -1 - i;\n return new ExtData(type, data);\n }\n }\n }\n\n // custom extensions\n for (let i = 0; i < this.encoders.length; i++) {\n const encodeExt = this.encoders[i];\n if (encodeExt != null) {\n const data = encodeExt(object, context);\n if (data != null) {\n const type = i;\n return new ExtData(type, data);\n }\n }\n }\n\n if (object instanceof ExtData) {\n // to keep ExtData as is\n return object;\n }\n return null;\n }\n\n public decode(data: Uint8Array, type: number, context: ContextType): unknown {\n const decodeExt = type < 0 ? this.builtInDecoders[-1 - type] : this.decoders[type];\n if (decodeExt) {\n return decodeExt(data, type, context);\n } else {\n // decode() does not fail, returns ExtData instead.\n return new ExtData(type, data);\n }\n }\n}\n","export function ensureUint8Array(buffer: ArrayLike | Uint8Array | ArrayBufferView | ArrayBuffer): Uint8Array {\n if (buffer instanceof Uint8Array) {\n return buffer;\n } else if (ArrayBuffer.isView(buffer)) {\n return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);\n } else if (buffer instanceof ArrayBuffer) {\n return new Uint8Array(buffer);\n } else {\n // ArrayLike\n return Uint8Array.from(buffer);\n }\n}\n\nexport function createDataView(buffer: ArrayLike | ArrayBufferView | ArrayBuffer): DataView {\n if (buffer instanceof ArrayBuffer) {\n return new DataView(buffer);\n }\n\n const bufferView = ensureUint8Array(buffer);\n return new DataView(bufferView.buffer, bufferView.byteOffset, bufferView.byteLength);\n}\n","import { utf8EncodeJs, utf8Count, TEXT_ENCODER_THRESHOLD, utf8EncodeTE } from \"./utils/utf8\";\nimport { ExtensionCodec, ExtensionCodecType } from \"./ExtensionCodec\";\nimport { setInt64, setUint64 } from \"./utils/int\";\nimport { ensureUint8Array } from \"./utils/typedArrays\";\nimport type { ExtData } from \"./ExtData\";\n\nexport const DEFAULT_MAX_DEPTH = 100;\nexport const DEFAULT_INITIAL_BUFFER_SIZE = 2048;\n\nexport class Encoder {\n private pos = 0;\n private view = new DataView(new ArrayBuffer(this.initialBufferSize));\n private bytes = new Uint8Array(this.view.buffer);\n\n public constructor(\n private readonly extensionCodec: ExtensionCodecType = ExtensionCodec.defaultCodec as any,\n private readonly context: ContextType = undefined as any,\n private readonly maxDepth = DEFAULT_MAX_DEPTH,\n private readonly initialBufferSize = DEFAULT_INITIAL_BUFFER_SIZE,\n private readonly sortKeys = false,\n private readonly forceFloat32 = false,\n private readonly ignoreUndefined = false,\n private readonly forceIntegerToFloat = false,\n ) {}\n\n private reinitializeState() {\n this.pos = 0;\n }\n\n /**\n * This is almost equivalent to {@link Encoder#encode}, but it returns an reference of the encoder's internal buffer and thus much faster than {@link Encoder#encode}.\n *\n * @returns Encodes the object and returns a shared reference the encoder's internal buffer.\n */\n public encodeSharedRef(object: unknown): Uint8Array {\n this.reinitializeState();\n this.doEncode(object, 1);\n return this.bytes.subarray(0, this.pos);\n }\n\n /**\n * @returns Encodes the object and returns a copy of the encoder's internal buffer.\n */\n public encode(object: unknown): Uint8Array {\n this.reinitializeState();\n this.doEncode(object, 1);\n return this.bytes.slice(0, this.pos);\n }\n\n private doEncode(object: unknown, depth: number): void {\n if (depth > this.maxDepth) {\n throw new Error(`Too deep objects in depth ${depth}`);\n }\n\n if (object == null) {\n this.encodeNil();\n } else if (typeof object === \"boolean\") {\n this.encodeBoolean(object);\n } else if (typeof object === \"number\") {\n this.encodeNumber(object);\n } else if (typeof object === \"string\") {\n this.encodeString(object);\n } else {\n this.encodeObject(object, depth);\n }\n }\n\n private ensureBufferSizeToWrite(sizeToWrite: number) {\n const requiredSize = this.pos + sizeToWrite;\n\n if (this.view.byteLength < requiredSize) {\n this.resizeBuffer(requiredSize * 2);\n }\n }\n\n private resizeBuffer(newSize: number) {\n const newBuffer = new ArrayBuffer(newSize);\n const newBytes = new Uint8Array(newBuffer);\n const newView = new DataView(newBuffer);\n\n newBytes.set(this.bytes);\n\n this.view = newView;\n this.bytes = newBytes;\n }\n\n private encodeNil() {\n this.writeU8(0xc0);\n }\n\n private encodeBoolean(object: boolean) {\n if (object === false) {\n this.writeU8(0xc2);\n } else {\n this.writeU8(0xc3);\n }\n }\n private encodeNumber(object: number) {\n if (Number.isSafeInteger(object) && !this.forceIntegerToFloat) {\n if (object >= 0) {\n if (object < 0x80) {\n // positive fixint\n this.writeU8(object);\n } else if (object < 0x100) {\n // uint 8\n this.writeU8(0xcc);\n this.writeU8(object);\n } else if (object < 0x10000) {\n // uint 16\n this.writeU8(0xcd);\n this.writeU16(object);\n } else if (object < 0x100000000) {\n // uint 32\n this.writeU8(0xce);\n this.writeU32(object);\n } else {\n // uint 64\n this.writeU8(0xcf);\n this.writeU64(object);\n }\n } else {\n if (object >= -0x20) {\n // negative fixint\n this.writeU8(0xe0 | (object + 0x20));\n } else if (object >= -0x80) {\n // int 8\n this.writeU8(0xd0);\n this.writeI8(object);\n } else if (object >= -0x8000) {\n // int 16\n this.writeU8(0xd1);\n this.writeI16(object);\n } else if (object >= -0x80000000) {\n // int 32\n this.writeU8(0xd2);\n this.writeI32(object);\n } else {\n // int 64\n this.writeU8(0xd3);\n this.writeI64(object);\n }\n }\n } else {\n // non-integer numbers\n if (this.forceFloat32) {\n // float 32\n this.writeU8(0xca);\n this.writeF32(object);\n } else {\n // float 64\n this.writeU8(0xcb);\n this.writeF64(object);\n }\n }\n }\n\n private writeStringHeader(byteLength: number) {\n if (byteLength < 32) {\n // fixstr\n this.writeU8(0xa0 + byteLength);\n } else if (byteLength < 0x100) {\n // str 8\n this.writeU8(0xd9);\n this.writeU8(byteLength);\n } else if (byteLength < 0x10000) {\n // str 16\n this.writeU8(0xda);\n this.writeU16(byteLength);\n } else if (byteLength < 0x100000000) {\n // str 32\n this.writeU8(0xdb);\n this.writeU32(byteLength);\n } else {\n throw new Error(`Too long string: ${byteLength} bytes in UTF-8`);\n }\n }\n\n private encodeString(object: string) {\n const maxHeaderSize = 1 + 4;\n const strLength = object.length;\n\n if (strLength > TEXT_ENCODER_THRESHOLD) {\n const byteLength = utf8Count(object);\n this.ensureBufferSizeToWrite(maxHeaderSize + byteLength);\n this.writeStringHeader(byteLength);\n utf8EncodeTE(object, this.bytes, this.pos);\n this.pos += byteLength;\n } else {\n const byteLength = utf8Count(object);\n this.ensureBufferSizeToWrite(maxHeaderSize + byteLength);\n this.writeStringHeader(byteLength);\n utf8EncodeJs(object, this.bytes, this.pos);\n this.pos += byteLength;\n }\n }\n\n private encodeObject(object: unknown, depth: number) {\n // try to encode objects with custom codec first of non-primitives\n const ext = this.extensionCodec.tryToEncode(object, this.context);\n if (ext != null) {\n this.encodeExtension(ext);\n } else if (Array.isArray(object)) {\n this.encodeArray(object, depth);\n } else if (ArrayBuffer.isView(object)) {\n this.encodeBinary(object);\n } else if (typeof object === \"object\") {\n this.encodeMap(object as Record, depth);\n } else {\n // symbol, function and other special object come here unless extensionCodec handles them.\n throw new Error(`Unrecognized object: ${Object.prototype.toString.apply(object)}`);\n }\n }\n\n private encodeBinary(object: ArrayBufferView) {\n const size = object.byteLength;\n if (size < 0x100) {\n // bin 8\n this.writeU8(0xc4);\n this.writeU8(size);\n } else if (size < 0x10000) {\n // bin 16\n this.writeU8(0xc5);\n this.writeU16(size);\n } else if (size < 0x100000000) {\n // bin 32\n this.writeU8(0xc6);\n this.writeU32(size);\n } else {\n throw new Error(`Too large binary: ${size}`);\n }\n const bytes = ensureUint8Array(object);\n this.writeU8a(bytes);\n }\n\n private encodeArray(object: Array, depth: number) {\n const size = object.length;\n if (size < 16) {\n // fixarray\n this.writeU8(0x90 + size);\n } else if (size < 0x10000) {\n // array 16\n this.writeU8(0xdc);\n this.writeU16(size);\n } else if (size < 0x100000000) {\n // array 32\n this.writeU8(0xdd);\n this.writeU32(size);\n } else {\n throw new Error(`Too large array: ${size}`);\n }\n for (const item of object) {\n this.doEncode(item, depth + 1);\n }\n }\n\n private countWithoutUndefined(object: Record, keys: ReadonlyArray): number {\n let count = 0;\n\n for (const key of keys) {\n if (object[key] !== undefined) {\n count++;\n }\n }\n\n return count;\n }\n\n private encodeMap(object: Record, depth: number) {\n const keys = Object.keys(object);\n if (this.sortKeys) {\n keys.sort();\n }\n\n const size = this.ignoreUndefined ? this.countWithoutUndefined(object, keys) : keys.length;\n\n if (size < 16) {\n // fixmap\n this.writeU8(0x80 + size);\n } else if (size < 0x10000) {\n // map 16\n this.writeU8(0xde);\n this.writeU16(size);\n } else if (size < 0x100000000) {\n // map 32\n this.writeU8(0xdf);\n this.writeU32(size);\n } else {\n throw new Error(`Too large map object: ${size}`);\n }\n\n for (const key of keys) {\n const value = object[key];\n\n if (!(this.ignoreUndefined && value === undefined)) {\n this.encodeString(key);\n this.doEncode(value, depth + 1);\n }\n }\n }\n\n private encodeExtension(ext: ExtData) {\n const size = ext.data.length;\n if (size === 1) {\n // fixext 1\n this.writeU8(0xd4);\n } else if (size === 2) {\n // fixext 2\n this.writeU8(0xd5);\n } else if (size === 4) {\n // fixext 4\n this.writeU8(0xd6);\n } else if (size === 8) {\n // fixext 8\n this.writeU8(0xd7);\n } else if (size === 16) {\n // fixext 16\n this.writeU8(0xd8);\n } else if (size < 0x100) {\n // ext 8\n this.writeU8(0xc7);\n this.writeU8(size);\n } else if (size < 0x10000) {\n // ext 16\n this.writeU8(0xc8);\n this.writeU16(size);\n } else if (size < 0x100000000) {\n // ext 32\n this.writeU8(0xc9);\n this.writeU32(size);\n } else {\n throw new Error(`Too large extension object: ${size}`);\n }\n this.writeI8(ext.type);\n this.writeU8a(ext.data);\n }\n\n private writeU8(value: number) {\n this.ensureBufferSizeToWrite(1);\n\n this.view.setUint8(this.pos, value);\n this.pos++;\n }\n\n private writeU8a(values: ArrayLike) {\n const size = values.length;\n this.ensureBufferSizeToWrite(size);\n\n this.bytes.set(values, this.pos);\n this.pos += size;\n }\n\n private writeI8(value: number) {\n this.ensureBufferSizeToWrite(1);\n\n this.view.setInt8(this.pos, value);\n this.pos++;\n }\n\n private writeU16(value: number) {\n this.ensureBufferSizeToWrite(2);\n\n this.view.setUint16(this.pos, value);\n this.pos += 2;\n }\n\n private writeI16(value: number) {\n this.ensureBufferSizeToWrite(2);\n\n this.view.setInt16(this.pos, value);\n this.pos += 2;\n }\n\n private writeU32(value: number) {\n this.ensureBufferSizeToWrite(4);\n\n this.view.setUint32(this.pos, value);\n this.pos += 4;\n }\n\n private writeI32(value: number) {\n this.ensureBufferSizeToWrite(4);\n\n this.view.setInt32(this.pos, value);\n this.pos += 4;\n }\n\n private writeF32(value: number) {\n this.ensureBufferSizeToWrite(4);\n this.view.setFloat32(this.pos, value);\n this.pos += 4;\n }\n\n private writeF64(value: number) {\n this.ensureBufferSizeToWrite(8);\n this.view.setFloat64(this.pos, value);\n this.pos += 8;\n }\n\n private writeU64(value: number) {\n this.ensureBufferSizeToWrite(8);\n\n setUint64(this.view, this.pos, value);\n this.pos += 8;\n }\n\n private writeI64(value: number) {\n this.ensureBufferSizeToWrite(8);\n\n setInt64(this.view, this.pos, value);\n this.pos += 8;\n }\n}\n","import { Encoder } from \"./Encoder\";\nimport type { ExtensionCodecType } from \"./ExtensionCodec\";\nimport type { ContextOf, SplitUndefined } from \"./context\";\n\nexport type EncodeOptions = Partial<\n Readonly<{\n extensionCodec: ExtensionCodecType;\n\n /**\n * The maximum depth in nested objects and arrays.\n *\n * Defaults to 100.\n */\n maxDepth: number;\n\n /**\n * The initial size of the internal buffer.\n *\n * Defaults to 2048.\n */\n initialBufferSize: number;\n\n /**\n * If `true`, the keys of an object is sorted. In other words, the encoded\n * binary is canonical and thus comparable to another encoded binary.\n *\n * Defaults to `false`. If enabled, it spends more time in encoding objects.\n */\n sortKeys: boolean;\n /**\n * If `true`, non-integer numbers are encoded in float32, not in float64 (the default).\n *\n * Only use it if precisions don't matter.\n *\n * Defaults to `false`.\n */\n forceFloat32: boolean;\n\n /**\n * If `true`, an object property with `undefined` value are ignored.\n * e.g. `{ foo: undefined }` will be encoded as `{}`, as `JSON.stringify()` does.\n *\n * Defaults to `false`. If enabled, it spends more time in encoding objects.\n */\n ignoreUndefined: boolean;\n\n /**\n * If `true`, integer numbers are encoded as floating point numbers,\n * with the `forceFloat32` option taken into account.\n *\n * Defaults to `false`.\n */\n forceIntegerToFloat: boolean;\n }>\n> &\n ContextOf;\n\nconst defaultEncodeOptions: EncodeOptions = {};\n\n/**\n * It encodes `value` in the MessagePack format and\n * returns a byte buffer.\n *\n * The returned buffer is a slice of a larger `ArrayBuffer`, so you have to use its `#byteOffset` and `#byteLength` in order to convert it to another typed arrays including NodeJS `Buffer`.\n */\nexport function encode(\n value: unknown,\n options: EncodeOptions> = defaultEncodeOptions as any,\n): Uint8Array {\n const encoder = new Encoder(\n options.extensionCodec,\n (options as typeof options & { context: any }).context,\n options.maxDepth,\n options.initialBufferSize,\n options.sortKeys,\n options.forceFloat32,\n options.ignoreUndefined,\n options.forceIntegerToFloat,\n );\n return encoder.encodeSharedRef(value);\n}\n","export function prettyByte(byte: number): string {\n return `${byte < 0 ? \"-\" : \"\"}0x${Math.abs(byte).toString(16).padStart(2, \"0\")}`;\n}\n","import { utf8DecodeJs } from \"./utils/utf8\";\n\nconst DEFAULT_MAX_KEY_LENGTH = 16;\nconst DEFAULT_MAX_LENGTH_PER_KEY = 16;\n\nexport interface KeyDecoder {\n canBeCached(byteLength: number): boolean;\n decode(bytes: Uint8Array, inputOffset: number, byteLength: number): string;\n}\ninterface KeyCacheRecord {\n readonly bytes: Uint8Array;\n readonly str: string;\n}\n\nexport class CachedKeyDecoder implements KeyDecoder {\n hit = 0;\n miss = 0;\n private readonly caches: Array>;\n\n constructor(readonly maxKeyLength = DEFAULT_MAX_KEY_LENGTH, readonly maxLengthPerKey = DEFAULT_MAX_LENGTH_PER_KEY) {\n // avoid `new Array(N)`, which makes a sparse array,\n // because a sparse array is typically slower than a non-sparse array.\n this.caches = [];\n for (let i = 0; i < this.maxKeyLength; i++) {\n this.caches.push([]);\n }\n }\n\n public canBeCached(byteLength: number): boolean {\n return byteLength > 0 && byteLength <= this.maxKeyLength;\n }\n\n private find(bytes: Uint8Array, inputOffset: number, byteLength: number): string | null {\n const records = this.caches[byteLength - 1]!;\n\n FIND_CHUNK: for (const record of records) {\n const recordBytes = record.bytes;\n\n for (let j = 0; j < byteLength; j++) {\n if (recordBytes[j] !== bytes[inputOffset + j]) {\n continue FIND_CHUNK;\n }\n }\n return record.str;\n }\n return null;\n }\n\n private store(bytes: Uint8Array, value: string) {\n const records = this.caches[bytes.length - 1]!;\n const record: KeyCacheRecord = { bytes, str: value };\n\n if (records.length >= this.maxLengthPerKey) {\n // `records` are full!\n // Set `record` to an arbitrary position.\n records[(Math.random() * records.length) | 0] = record;\n } else {\n records.push(record);\n }\n }\n\n public decode(bytes: Uint8Array, inputOffset: number, byteLength: number): string {\n const cachedValue = this.find(bytes, inputOffset, byteLength);\n if (cachedValue != null) {\n this.hit++;\n return cachedValue;\n }\n this.miss++;\n\n const str = utf8DecodeJs(bytes, inputOffset, byteLength);\n // Ensure to copy a slice of bytes because the byte may be NodeJS Buffer and Buffer#slice() returns a reference to its internal ArrayBuffer.\n const slicedCopyOfBytes = Uint8Array.prototype.slice.call(bytes, inputOffset, inputOffset + byteLength);\n this.store(slicedCopyOfBytes, str);\n return str;\n }\n}\n","import { prettyByte } from \"./utils/prettyByte\";\nimport { ExtensionCodec, ExtensionCodecType } from \"./ExtensionCodec\";\nimport { getInt64, getUint64, UINT32_MAX } from \"./utils/int\";\nimport { utf8DecodeJs, TEXT_DECODER_THRESHOLD, utf8DecodeTD } from \"./utils/utf8\";\nimport { createDataView, ensureUint8Array } from \"./utils/typedArrays\";\nimport { CachedKeyDecoder, KeyDecoder } from \"./CachedKeyDecoder\";\nimport { DecodeError } from \"./DecodeError\";\n\nconst enum State {\n ARRAY,\n MAP_KEY,\n MAP_VALUE,\n}\n\ntype MapKeyType = string | number;\n\nconst isValidMapKeyType = (key: unknown): key is MapKeyType => {\n const keyType = typeof key;\n\n return keyType === \"string\" || keyType === \"number\";\n};\n\ntype StackMapState = {\n type: State.MAP_KEY | State.MAP_VALUE;\n size: number;\n key: MapKeyType | null;\n readCount: number;\n map: Record;\n};\n\ntype StackArrayState = {\n type: State.ARRAY;\n size: number;\n array: Array;\n position: number;\n};\n\ntype StackState = StackArrayState | StackMapState;\n\nconst HEAD_BYTE_REQUIRED = -1;\n\nconst EMPTY_VIEW = new DataView(new ArrayBuffer(0));\nconst EMPTY_BYTES = new Uint8Array(EMPTY_VIEW.buffer);\n\n// IE11: Hack to support IE11.\n// IE11: Drop this hack and just use RangeError when IE11 is obsolete.\nexport const DataViewIndexOutOfBoundsError: typeof Error = (() => {\n try {\n // IE11: The spec says it should throw RangeError,\n // IE11: but in IE11 it throws TypeError.\n EMPTY_VIEW.getInt8(0);\n } catch (e: any) {\n return e.constructor;\n }\n throw new Error(\"never reached\");\n})();\n\nconst MORE_DATA = new DataViewIndexOutOfBoundsError(\"Insufficient data\");\n\nconst sharedCachedKeyDecoder = new CachedKeyDecoder();\n\nexport class Decoder {\n private totalPos = 0;\n private pos = 0;\n\n private view = EMPTY_VIEW;\n private bytes = EMPTY_BYTES;\n private headByte = HEAD_BYTE_REQUIRED;\n private readonly stack: Array = [];\n\n public constructor(\n private readonly extensionCodec: ExtensionCodecType = ExtensionCodec.defaultCodec as any,\n private readonly context: ContextType = undefined as any,\n private readonly maxStrLength = UINT32_MAX,\n private readonly maxBinLength = UINT32_MAX,\n private readonly maxArrayLength = UINT32_MAX,\n private readonly maxMapLength = UINT32_MAX,\n private readonly maxExtLength = UINT32_MAX,\n private readonly keyDecoder: KeyDecoder | null = sharedCachedKeyDecoder,\n ) {}\n\n private reinitializeState() {\n this.totalPos = 0;\n this.headByte = HEAD_BYTE_REQUIRED;\n this.stack.length = 0;\n\n // view, bytes, and pos will be re-initialized in setBuffer()\n }\n\n private setBuffer(buffer: ArrayLike | BufferSource): void {\n this.bytes = ensureUint8Array(buffer);\n this.view = createDataView(this.bytes);\n this.pos = 0;\n }\n\n private appendBuffer(buffer: ArrayLike | BufferSource) {\n if (this.headByte === HEAD_BYTE_REQUIRED && !this.hasRemaining(1)) {\n this.setBuffer(buffer);\n } else {\n const remainingData = this.bytes.subarray(this.pos);\n const newData = ensureUint8Array(buffer);\n\n // concat remainingData + newData\n const newBuffer = new Uint8Array(remainingData.length + newData.length);\n newBuffer.set(remainingData);\n newBuffer.set(newData, remainingData.length);\n this.setBuffer(newBuffer);\n }\n }\n\n private hasRemaining(size: number) {\n return this.view.byteLength - this.pos >= size;\n }\n\n private createExtraByteError(posToShow: number): Error {\n const { view, pos } = this;\n return new RangeError(`Extra ${view.byteLength - pos} of ${view.byteLength} byte(s) found at buffer[${posToShow}]`);\n }\n\n /**\n * @throws {@link DecodeError}\n * @throws {@link RangeError}\n */\n public decode(buffer: ArrayLike | BufferSource): unknown {\n this.reinitializeState();\n this.setBuffer(buffer);\n\n const object = this.doDecodeSync();\n if (this.hasRemaining(1)) {\n throw this.createExtraByteError(this.pos);\n }\n return object;\n }\n\n public *decodeMulti(buffer: ArrayLike | BufferSource): Generator {\n this.reinitializeState();\n this.setBuffer(buffer);\n\n while (this.hasRemaining(1)) {\n yield this.doDecodeSync();\n }\n }\n\n public async decodeAsync(stream: AsyncIterable | BufferSource>): Promise {\n let decoded = false;\n let object: unknown;\n for await (const buffer of stream) {\n if (decoded) {\n throw this.createExtraByteError(this.totalPos);\n }\n\n this.appendBuffer(buffer);\n\n try {\n object = this.doDecodeSync();\n decoded = true;\n } catch (e) {\n if (!(e instanceof DataViewIndexOutOfBoundsError)) {\n throw e; // rethrow\n }\n // fallthrough\n }\n this.totalPos += this.pos;\n }\n\n if (decoded) {\n if (this.hasRemaining(1)) {\n throw this.createExtraByteError(this.totalPos);\n }\n return object;\n }\n\n const { headByte, pos, totalPos } = this;\n throw new RangeError(\n `Insufficient data in parsing ${prettyByte(headByte)} at ${totalPos} (${pos} in the current buffer)`,\n );\n }\n\n public decodeArrayStream(\n stream: AsyncIterable | BufferSource>,\n ): AsyncGenerator {\n return this.decodeMultiAsync(stream, true);\n }\n\n public decodeStream(stream: AsyncIterable | BufferSource>): AsyncGenerator {\n return this.decodeMultiAsync(stream, false);\n }\n\n private async *decodeMultiAsync(stream: AsyncIterable | BufferSource>, isArray: boolean) {\n let isArrayHeaderRequired = isArray;\n let arrayItemsLeft = -1;\n\n for await (const buffer of stream) {\n if (isArray && arrayItemsLeft === 0) {\n throw this.createExtraByteError(this.totalPos);\n }\n\n this.appendBuffer(buffer);\n\n if (isArrayHeaderRequired) {\n arrayItemsLeft = this.readArraySize();\n isArrayHeaderRequired = false;\n this.complete();\n }\n\n try {\n while (true) {\n yield this.doDecodeSync();\n if (--arrayItemsLeft === 0) {\n break;\n }\n }\n } catch (e) {\n if (!(e instanceof DataViewIndexOutOfBoundsError)) {\n throw e; // rethrow\n }\n // fallthrough\n }\n this.totalPos += this.pos;\n }\n }\n\n private doDecodeSync(): unknown {\n DECODE: while (true) {\n const headByte = this.readHeadByte();\n let object: unknown;\n\n if (headByte >= 0xe0) {\n // negative fixint (111x xxxx) 0xe0 - 0xff\n object = headByte - 0x100;\n } else if (headByte < 0xc0) {\n if (headByte < 0x80) {\n // positive fixint (0xxx xxxx) 0x00 - 0x7f\n object = headByte;\n } else if (headByte < 0x90) {\n // fixmap (1000 xxxx) 0x80 - 0x8f\n const size = headByte - 0x80;\n if (size !== 0) {\n this.pushMapState(size);\n this.complete();\n continue DECODE;\n } else {\n object = {};\n }\n } else if (headByte < 0xa0) {\n // fixarray (1001 xxxx) 0x90 - 0x9f\n const size = headByte - 0x90;\n if (size !== 0) {\n this.pushArrayState(size);\n this.complete();\n continue DECODE;\n } else {\n object = [];\n }\n } else {\n // fixstr (101x xxxx) 0xa0 - 0xbf\n const byteLength = headByte - 0xa0;\n object = this.decodeUtf8String(byteLength, 0);\n }\n } else if (headByte === 0xc0) {\n // nil\n object = null;\n } else if (headByte === 0xc2) {\n // false\n object = false;\n } else if (headByte === 0xc3) {\n // true\n object = true;\n } else if (headByte === 0xca) {\n // float 32\n object = this.readF32();\n } else if (headByte === 0xcb) {\n // float 64\n object = this.readF64();\n } else if (headByte === 0xcc) {\n // uint 8\n object = this.readU8();\n } else if (headByte === 0xcd) {\n // uint 16\n object = this.readU16();\n } else if (headByte === 0xce) {\n // uint 32\n object = this.readU32();\n } else if (headByte === 0xcf) {\n // uint 64\n object = this.readU64();\n } else if (headByte === 0xd0) {\n // int 8\n object = this.readI8();\n } else if (headByte === 0xd1) {\n // int 16\n object = this.readI16();\n } else if (headByte === 0xd2) {\n // int 32\n object = this.readI32();\n } else if (headByte === 0xd3) {\n // int 64\n object = this.readI64();\n } else if (headByte === 0xd9) {\n // str 8\n const byteLength = this.lookU8();\n object = this.decodeUtf8String(byteLength, 1);\n } else if (headByte === 0xda) {\n // str 16\n const byteLength = this.lookU16();\n object = this.decodeUtf8String(byteLength, 2);\n } else if (headByte === 0xdb) {\n // str 32\n const byteLength = this.lookU32();\n object = this.decodeUtf8String(byteLength, 4);\n } else if (headByte === 0xdc) {\n // array 16\n const size = this.readU16();\n if (size !== 0) {\n this.pushArrayState(size);\n this.complete();\n continue DECODE;\n } else {\n object = [];\n }\n } else if (headByte === 0xdd) {\n // array 32\n const size = this.readU32();\n if (size !== 0) {\n this.pushArrayState(size);\n this.complete();\n continue DECODE;\n } else {\n object = [];\n }\n } else if (headByte === 0xde) {\n // map 16\n const size = this.readU16();\n if (size !== 0) {\n this.pushMapState(size);\n this.complete();\n continue DECODE;\n } else {\n object = {};\n }\n } else if (headByte === 0xdf) {\n // map 32\n const size = this.readU32();\n if (size !== 0) {\n this.pushMapState(size);\n this.complete();\n continue DECODE;\n } else {\n object = {};\n }\n } else if (headByte === 0xc4) {\n // bin 8\n const size = this.lookU8();\n object = this.decodeBinary(size, 1);\n } else if (headByte === 0xc5) {\n // bin 16\n const size = this.lookU16();\n object = this.decodeBinary(size, 2);\n } else if (headByte === 0xc6) {\n // bin 32\n const size = this.lookU32();\n object = this.decodeBinary(size, 4);\n } else if (headByte === 0xd4) {\n // fixext 1\n object = this.decodeExtension(1, 0);\n } else if (headByte === 0xd5) {\n // fixext 2\n object = this.decodeExtension(2, 0);\n } else if (headByte === 0xd6) {\n // fixext 4\n object = this.decodeExtension(4, 0);\n } else if (headByte === 0xd7) {\n // fixext 8\n object = this.decodeExtension(8, 0);\n } else if (headByte === 0xd8) {\n // fixext 16\n object = this.decodeExtension(16, 0);\n } else if (headByte === 0xc7) {\n // ext 8\n const size = this.lookU8();\n object = this.decodeExtension(size, 1);\n } else if (headByte === 0xc8) {\n // ext 16\n const size = this.lookU16();\n object = this.decodeExtension(size, 2);\n } else if (headByte === 0xc9) {\n // ext 32\n const size = this.lookU32();\n object = this.decodeExtension(size, 4);\n } else {\n throw new DecodeError(`Unrecognized type byte: ${prettyByte(headByte)}`);\n }\n\n this.complete();\n\n const stack = this.stack;\n while (stack.length > 0) {\n // arrays and maps\n const state = stack[stack.length - 1]!;\n if (state.type === State.ARRAY) {\n state.array[state.position] = object;\n state.position++;\n if (state.position === state.size) {\n stack.pop();\n object = state.array;\n } else {\n continue DECODE;\n }\n } else if (state.type === State.MAP_KEY) {\n if (!isValidMapKeyType(object)) {\n throw new DecodeError(\"The type of key must be string or number but \" + typeof object);\n }\n if (object === \"__proto__\") {\n throw new DecodeError(\"The key __proto__ is not allowed\");\n }\n\n state.key = object;\n state.type = State.MAP_VALUE;\n continue DECODE;\n } else {\n // it must be `state.type === State.MAP_VALUE` here\n\n state.map[state.key!] = object;\n state.readCount++;\n\n if (state.readCount === state.size) {\n stack.pop();\n object = state.map;\n } else {\n state.key = null;\n state.type = State.MAP_KEY;\n continue DECODE;\n }\n }\n }\n\n return object;\n }\n }\n\n private readHeadByte(): number {\n if (this.headByte === HEAD_BYTE_REQUIRED) {\n this.headByte = this.readU8();\n // console.log(\"headByte\", prettyByte(this.headByte));\n }\n\n return this.headByte;\n }\n\n private complete(): void {\n this.headByte = HEAD_BYTE_REQUIRED;\n }\n\n private readArraySize(): number {\n const headByte = this.readHeadByte();\n\n switch (headByte) {\n case 0xdc:\n return this.readU16();\n case 0xdd:\n return this.readU32();\n default: {\n if (headByte < 0xa0) {\n return headByte - 0x90;\n } else {\n throw new DecodeError(`Unrecognized array type byte: ${prettyByte(headByte)}`);\n }\n }\n }\n }\n\n private pushMapState(size: number) {\n if (size > this.maxMapLength) {\n throw new DecodeError(`Max length exceeded: map length (${size}) > maxMapLengthLength (${this.maxMapLength})`);\n }\n\n this.stack.push({\n type: State.MAP_KEY,\n size,\n key: null,\n readCount: 0,\n map: {},\n });\n }\n\n private pushArrayState(size: number) {\n if (size > this.maxArrayLength) {\n throw new DecodeError(`Max length exceeded: array length (${size}) > maxArrayLength (${this.maxArrayLength})`);\n }\n\n this.stack.push({\n type: State.ARRAY,\n size,\n array: new Array(size),\n position: 0,\n });\n }\n\n private decodeUtf8String(byteLength: number, headerOffset: number): string {\n if (byteLength > this.maxStrLength) {\n throw new DecodeError(\n `Max length exceeded: UTF-8 byte length (${byteLength}) > maxStrLength (${this.maxStrLength})`,\n );\n }\n\n if (this.bytes.byteLength < this.pos + headerOffset + byteLength) {\n throw MORE_DATA;\n }\n\n const offset = this.pos + headerOffset;\n let object: string;\n if (this.stateIsMapKey() && this.keyDecoder?.canBeCached(byteLength)) {\n object = this.keyDecoder.decode(this.bytes, offset, byteLength);\n } else if (byteLength > TEXT_DECODER_THRESHOLD) {\n object = utf8DecodeTD(this.bytes, offset, byteLength);\n } else {\n object = utf8DecodeJs(this.bytes, offset, byteLength);\n }\n this.pos += headerOffset + byteLength;\n return object;\n }\n\n private stateIsMapKey(): boolean {\n if (this.stack.length > 0) {\n const state = this.stack[this.stack.length - 1]!;\n return state.type === State.MAP_KEY;\n }\n return false;\n }\n\n private decodeBinary(byteLength: number, headOffset: number): Uint8Array {\n if (byteLength > this.maxBinLength) {\n throw new DecodeError(`Max length exceeded: bin length (${byteLength}) > maxBinLength (${this.maxBinLength})`);\n }\n\n if (!this.hasRemaining(byteLength + headOffset)) {\n throw MORE_DATA;\n }\n\n const offset = this.pos + headOffset;\n const object = this.bytes.subarray(offset, offset + byteLength);\n this.pos += headOffset + byteLength;\n return object;\n }\n\n private decodeExtension(size: number, headOffset: number): unknown {\n if (size > this.maxExtLength) {\n throw new DecodeError(`Max length exceeded: ext length (${size}) > maxExtLength (${this.maxExtLength})`);\n }\n\n const extType = this.view.getInt8(this.pos + headOffset);\n const data = this.decodeBinary(size, headOffset + 1 /* extType */);\n return this.extensionCodec.decode(data, extType, this.context);\n }\n\n private lookU8() {\n return this.view.getUint8(this.pos);\n }\n\n private lookU16() {\n return this.view.getUint16(this.pos);\n }\n\n private lookU32() {\n return this.view.getUint32(this.pos);\n }\n\n private readU8(): number {\n const value = this.view.getUint8(this.pos);\n this.pos++;\n return value;\n }\n\n private readI8(): number {\n const value = this.view.getInt8(this.pos);\n this.pos++;\n return value;\n }\n\n private readU16(): number {\n const value = this.view.getUint16(this.pos);\n this.pos += 2;\n return value;\n }\n\n private readI16(): number {\n const value = this.view.getInt16(this.pos);\n this.pos += 2;\n return value;\n }\n\n private readU32(): number {\n const value = this.view.getUint32(this.pos);\n this.pos += 4;\n return value;\n }\n\n private readI32(): number {\n const value = this.view.getInt32(this.pos);\n this.pos += 4;\n return value;\n }\n\n private readU64(): number {\n const value = getUint64(this.view, this.pos);\n this.pos += 8;\n return value;\n }\n\n private readI64(): number {\n const value = getInt64(this.view, this.pos);\n this.pos += 8;\n return value;\n }\n\n private readF32() {\n const value = this.view.getFloat32(this.pos);\n this.pos += 4;\n return value;\n }\n\n private readF64() {\n const value = this.view.getFloat64(this.pos);\n this.pos += 8;\n return value;\n }\n}\n","import { Decoder } from \"./Decoder\";\nimport type { ExtensionCodecType } from \"./ExtensionCodec\";\nimport type { ContextOf, SplitUndefined } from \"./context\";\n\nexport type DecodeOptions = Readonly<\n Partial<{\n extensionCodec: ExtensionCodecType;\n\n /**\n * Maximum string length.\n *\n * Defaults to 4_294_967_295 (UINT32_MAX).\n */\n maxStrLength: number;\n /**\n * Maximum binary length.\n *\n * Defaults to 4_294_967_295 (UINT32_MAX).\n */\n maxBinLength: number;\n /**\n * Maximum array length.\n *\n * Defaults to 4_294_967_295 (UINT32_MAX).\n */\n maxArrayLength: number;\n /**\n * Maximum map length.\n *\n * Defaults to 4_294_967_295 (UINT32_MAX).\n */\n maxMapLength: number;\n /**\n * Maximum extension length.\n *\n * Defaults to 4_294_967_295 (UINT32_MAX).\n */\n maxExtLength: number;\n }>\n> &\n ContextOf;\n\nexport const defaultDecodeOptions: DecodeOptions = {};\n\n/**\n * It decodes a single MessagePack object in a buffer.\n *\n * This is a synchronous decoding function.\n * See other variants for asynchronous decoding: {@link decodeAsync()}, {@link decodeStream()}, or {@link decodeArrayStream()}.\n *\n * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty.\n * @throws {@link DecodeError} if the buffer contains invalid data.\n */\nexport function decode(\n buffer: ArrayLike | BufferSource,\n options: DecodeOptions> = defaultDecodeOptions as any,\n): unknown {\n const decoder = new Decoder(\n options.extensionCodec,\n (options as typeof options & { context: any }).context,\n options.maxStrLength,\n options.maxBinLength,\n options.maxArrayLength,\n options.maxMapLength,\n options.maxExtLength,\n );\n return decoder.decode(buffer);\n}\n\n/**\n * It decodes multiple MessagePack objects in a buffer.\n * This is corresponding to {@link decodeMultiStream()}.\n *\n * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty.\n * @throws {@link DecodeError} if the buffer contains invalid data.\n */\nexport function decodeMulti(\n buffer: ArrayLike | BufferSource,\n options: DecodeOptions> = defaultDecodeOptions as any,\n): Generator {\n const decoder = new Decoder(\n options.extensionCodec,\n (options as typeof options & { context: any }).context,\n options.maxStrLength,\n options.maxBinLength,\n options.maxArrayLength,\n options.maxMapLength,\n options.maxExtLength,\n );\n return decoder.decodeMulti(buffer);\n}\n","// utility for whatwg streams\n\n// The living standard of whatwg streams says\n// ReadableStream is also AsyncIterable, but\n// as of June 2019, no browser implements it.\n// See https://streams.spec.whatwg.org/ for details\nexport type ReadableStreamLike = AsyncIterable | ReadableStream;\n\nexport function isAsyncIterable(object: ReadableStreamLike): object is AsyncIterable {\n return (object as any)[Symbol.asyncIterator] != null;\n}\n\nfunction assertNonNull(value: T | null | undefined): asserts value is T {\n if (value == null) {\n throw new Error(\"Assertion Failure: value must not be null nor undefined\");\n }\n}\n\nexport async function* asyncIterableFromStream(stream: ReadableStream): AsyncIterable {\n const reader = stream.getReader();\n\n try {\n while (true) {\n const { done, value } = await reader.read();\n if (done) {\n return;\n }\n assertNonNull(value);\n yield value;\n }\n } finally {\n reader.releaseLock();\n }\n}\n\nexport function ensureAsyncIterable(streamLike: ReadableStreamLike): AsyncIterable {\n if (isAsyncIterable(streamLike)) {\n return streamLike;\n } else {\n return asyncIterableFromStream(streamLike);\n }\n}\n","import { Decoder } from \"./Decoder\";\nimport { ensureAsyncIterable } from \"./utils/stream\";\nimport { defaultDecodeOptions } from \"./decode\";\nimport type { ReadableStreamLike } from \"./utils/stream\";\nimport type { DecodeOptions } from \"./decode\";\nimport type { SplitUndefined } from \"./context\";\n\n/**\n * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty.\n * @throws {@link DecodeError} if the buffer contains invalid data.\n */\n export async function decodeAsync(\n streamLike: ReadableStreamLike | BufferSource>,\n options: DecodeOptions> = defaultDecodeOptions as any,\n): Promise {\n const stream = ensureAsyncIterable(streamLike);\n\n const decoder = new Decoder(\n options.extensionCodec,\n (options as typeof options & { context: any }).context,\n options.maxStrLength,\n options.maxBinLength,\n options.maxArrayLength,\n options.maxMapLength,\n options.maxExtLength,\n );\n return decoder.decodeAsync(stream);\n}\n\n/**\n * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty.\n * @throws {@link DecodeError} if the buffer contains invalid data.\n */\n export function decodeArrayStream(\n streamLike: ReadableStreamLike | BufferSource>,\n options: DecodeOptions> = defaultDecodeOptions as any,\n): AsyncGenerator {\n const stream = ensureAsyncIterable(streamLike);\n\n const decoder = new Decoder(\n options.extensionCodec,\n (options as typeof options & { context: any }).context,\n options.maxStrLength,\n options.maxBinLength,\n options.maxArrayLength,\n options.maxMapLength,\n options.maxExtLength,\n );\n\n return decoder.decodeArrayStream(stream);\n}\n\n/**\n * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty.\n * @throws {@link DecodeError} if the buffer contains invalid data.\n */\nexport function decodeMultiStream(\n streamLike: ReadableStreamLike | BufferSource>,\n options: DecodeOptions> = defaultDecodeOptions as any,\n): AsyncGenerator {\n const stream = ensureAsyncIterable(streamLike);\n\n const decoder = new Decoder(\n options.extensionCodec,\n (options as typeof options & { context: any }).context,\n options.maxStrLength,\n options.maxBinLength,\n options.maxArrayLength,\n options.maxMapLength,\n options.maxExtLength,\n );\n\n return decoder.decodeStream(stream);\n}\n\n/**\n * @deprecated Use {@link decodeMultiStream()} instead.\n */\nexport function decodeStream(\n streamLike: ReadableStreamLike | BufferSource>,\n options: DecodeOptions> = defaultDecodeOptions as any,\n): AsyncGenerator {\n return decodeMultiStream(streamLike, options);\n}\n","// Main Functions:\n\nimport { encode } from \"./encode\";\nexport { encode };\nimport type { EncodeOptions } from \"./encode\";\nexport type { EncodeOptions };\n\nimport { decode, decodeMulti } from \"./decode\";\nexport { decode, decodeMulti };\nimport type { DecodeOptions } from \"./decode\";\nexport { DecodeOptions };\n\nimport { decodeAsync, decodeArrayStream, decodeMultiStream, decodeStream } from \"./decodeAsync\";\nexport { decodeAsync, decodeArrayStream, decodeMultiStream, decodeStream };\n\nimport { Decoder, DataViewIndexOutOfBoundsError } from \"./Decoder\";\nimport { DecodeError } from \"./DecodeError\";\nexport { Decoder, DecodeError, DataViewIndexOutOfBoundsError };\n\nimport { Encoder } from \"./Encoder\";\nexport { Encoder };\n\n// Utilitiies for Extension Types:\n\nimport { ExtensionCodec } from \"./ExtensionCodec\";\nexport { ExtensionCodec };\nimport type { ExtensionCodecType, ExtensionDecoderType, ExtensionEncoderType } from \"./ExtensionCodec\";\nexport type { ExtensionCodecType, ExtensionDecoderType, ExtensionEncoderType };\nimport { ExtData } from \"./ExtData\";\nexport { ExtData };\n\nimport {\n EXT_TIMESTAMP,\n encodeDateToTimeSpec,\n encodeTimeSpecToTimestamp,\n decodeTimestampToTimeSpec,\n encodeTimestampExtension,\n decodeTimestampExtension,\n} from \"./timestamp\";\nexport {\n EXT_TIMESTAMP,\n encodeDateToTimeSpec,\n encodeTimeSpecToTimestamp,\n decodeTimestampToTimeSpec,\n encodeTimestampExtension,\n decodeTimestampExtension,\n};\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+umd/msgpack.min.js b/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+umd/msgpack.min.js deleted file mode 100644 index cbf87a44..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/dist.es5+umd/msgpack.min.js +++ /dev/null @@ -1,2 +0,0 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.MessagePack=t():e.MessagePack=t()}(this,(function(){return function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{DataViewIndexOutOfBoundsError:function(){return K},DecodeError:function(){return m},Decoder:function(){return G},EXT_TIMESTAMP:function(){return U},Encoder:function(){return z},ExtData:function(){return b},ExtensionCodec:function(){return A},decode:function(){return q},decodeArrayStream:function(){return ne},decodeAsync:function(){return te},decodeMulti:function(){return J},decodeMultiStream:function(){return re},decodeStream:function(){return ie},decodeTimestampExtension:function(){return L},decodeTimestampToTimeSpec:function(){return T},encode:function(){return C},encodeDateToTimeSpec:function(){return E},encodeTimeSpecToTimestamp:function(){return S},encodeTimestampExtension:function(){return B}});var n=4294967295;function r(e,t,n){var r=Math.floor(n/4294967296),i=n;e.setUint32(t,r),e.setUint32(t+4,i)}function i(e,t){return 4294967296*e.getInt32(t)+e.getUint32(t+4)}var o,s,a,c=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},h=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i=55296&&i<=56319&&r65535&&(l-=65536,o.push(l>>>10&1023|55296),l=56320|1023&l),o.push(l)}else o.push(a);o.length>=4096&&(s+=String.fromCharCode.apply(String,h([],c(o),!1)),o.length=0)}return o.length>0&&(s+=String.fromCharCode.apply(String,h([],c(o),!1))),s}var w,v=u?new TextDecoder:null,g=u?"undefined"!=typeof process&&"force"!==(null===(a=null===process||void 0===process?void 0:process.env)||void 0===a?void 0:a.TEXT_DECODER)?200:0:n,b=function(e,t){this.type=e,this.data=t},x=(w=function(e,t){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},w(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e){function t(n){var r=e.call(this,n)||this,i=Object.create(t.prototype);return Object.setPrototypeOf(r,i),Object.defineProperty(r,"name",{configurable:!0,enumerable:!1,value:t.name}),r}return x(t,e),t}(Error),U=-1;function S(e){var t,n=e.sec,i=e.nsec;if(n>=0&&i>=0&&n<=17179869183){if(0===i&&n<=4294967295){var o=new Uint8Array(4);return(t=new DataView(o.buffer)).setUint32(0,n),o}var s=n/4294967296,a=4294967295&n;return o=new Uint8Array(8),(t=new DataView(o.buffer)).setUint32(0,i<<2|3&s),t.setUint32(4,a),o}return o=new Uint8Array(12),(t=new DataView(o.buffer)).setUint32(0,i),r(t,4,n),o}function E(e){var t=e.getTime(),n=Math.floor(t/1e3),r=1e6*(t-1e3*n),i=Math.floor(r/1e9);return{sec:n+i,nsec:r-1e9*i}}function B(e){return e instanceof Date?S(E(e)):null}function T(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);switch(e.byteLength){case 4:return{sec:t.getUint32(0),nsec:0};case 8:var n=t.getUint32(0);return{sec:4294967296*(3&n)+t.getUint32(4),nsec:n>>>2};case 12:return{sec:i(t,4),nsec:t.getUint32(0)};default:throw new m("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(e.length))}}function L(e){var t=T(e);return new Date(1e3*t.sec+t.nsec/1e6)}var I={type:U,encode:B,decode:L},A=function(){function e(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(I)}return e.prototype.register=function(e){var t=e.type,n=e.encode,r=e.decode;if(t>=0)this.encoders[t]=n,this.decoders[t]=r;else{var i=1+t;this.builtInEncoders[i]=n,this.builtInDecoders[i]=r}},e.prototype.tryToEncode=function(e,t){for(var n=0;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},z=function(){function e(e,t,n,r,i,o,s,a){void 0===e&&(e=A.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=100),void 0===r&&(r=2048),void 0===i&&(i=!1),void 0===o&&(o=!1),void 0===s&&(s=!1),void 0===a&&(a=!1),this.extensionCodec=e,this.context=t,this.maxDepth=n,this.initialBufferSize=r,this.sortKeys=i,this.forceFloat32=o,this.ignoreUndefined=s,this.forceIntegerToFloat=a,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}return e.prototype.reinitializeState=function(){this.pos=0},e.prototype.encodeSharedRef=function(e){return this.reinitializeState(),this.doEncode(e,1),this.bytes.subarray(0,this.pos)},e.prototype.encode=function(e){return this.reinitializeState(),this.doEncode(e,1),this.bytes.slice(0,this.pos)},e.prototype.doEncode=function(e,t){if(t>this.maxDepth)throw new Error("Too deep objects in depth ".concat(t));null==e?this.encodeNil():"boolean"==typeof e?this.encodeBoolean(e):"number"==typeof e?this.encodeNumber(e):"string"==typeof e?this.encodeString(e):this.encodeObject(e,t)},e.prototype.ensureBufferSizeToWrite=function(e){var t=this.pos+e;this.view.byteLength=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):(this.writeU8(211),this.writeI64(e)):this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},e.prototype.writeStringHeader=function(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else{if(!(e<4294967296))throw new Error("Too long string: ".concat(e," bytes in UTF-8"));this.writeU8(219),this.writeU32(e)}},e.prototype.encodeString=function(e){if(e.length>p){var t=f(e);this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),d(e,this.bytes,this.pos),this.pos+=t}else t=f(e),this.ensureBufferSizeToWrite(5+t),this.writeStringHeader(t),function(e,t,n){for(var r=e.length,i=n,o=0;o>6&31|192;else{if(s>=55296&&s<=56319&&o>12&15|224,t[i++]=s>>6&63|128):(t[i++]=s>>18&7|240,t[i++]=s>>12&63|128,t[i++]=s>>6&63|128)}t[i++]=63&s|128}else t[i++]=s}}(e,this.bytes,this.pos),this.pos+=t},e.prototype.encodeObject=function(e,t){var n=this.extensionCodec.tryToEncode(e,this.context);if(null!=n)this.encodeExtension(n);else if(Array.isArray(e))this.encodeArray(e,t);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else{if("object"!=typeof e)throw new Error("Unrecognized object: ".concat(Object.prototype.toString.apply(e)));this.encodeMap(e,t)}},e.prototype.encodeBinary=function(e){var t=e.byteLength;if(t<256)this.writeU8(196),this.writeU8(t);else if(t<65536)this.writeU8(197),this.writeU16(t);else{if(!(t<4294967296))throw new Error("Too large binary: ".concat(t));this.writeU8(198),this.writeU32(t)}var n=k(e);this.writeU8a(n)},e.prototype.encodeArray=function(e,t){var n,r,i=e.length;if(i<16)this.writeU8(144+i);else if(i<65536)this.writeU8(220),this.writeU16(i);else{if(!(i<4294967296))throw new Error("Too large array: ".concat(i));this.writeU8(221),this.writeU32(i)}try{for(var o=M(e),s=o.next();!s.done;s=o.next()){var a=s.value;this.doEncode(a,t+1)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.countWithoutUndefined=function(e,t){var n,r,i=0;try{for(var o=M(t),s=o.next();!s.done;s=o.next())void 0!==e[s.value]&&i++}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},e.prototype.encodeMap=function(e,t){var n,r,i=Object.keys(e);this.sortKeys&&i.sort();var o=this.ignoreUndefined?this.countWithoutUndefined(e,i):i.length;if(o<16)this.writeU8(128+o);else if(o<65536)this.writeU8(222),this.writeU16(o);else{if(!(o<4294967296))throw new Error("Too large map object: ".concat(o));this.writeU8(223),this.writeU32(o)}try{for(var s=M(i),a=s.next();!a.done;a=s.next()){var c=a.value,h=e[c];this.ignoreUndefined&&void 0===h||(this.encodeString(c),this.doEncode(h,t+1))}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}},e.prototype.encodeExtension=function(e){var t=e.data.length;if(1===t)this.writeU8(212);else if(2===t)this.writeU8(213);else if(4===t)this.writeU8(214);else if(8===t)this.writeU8(215);else if(16===t)this.writeU8(216);else if(t<256)this.writeU8(199),this.writeU8(t);else if(t<65536)this.writeU8(200),this.writeU16(t);else{if(!(t<4294967296))throw new Error("Too large extension object: ".concat(t));this.writeU8(201),this.writeU32(t)}this.writeI8(e.type),this.writeU8a(e.data)},e.prototype.writeU8=function(e){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,e),this.pos++},e.prototype.writeU8a=function(e){var t=e.length;this.ensureBufferSizeToWrite(t),this.bytes.set(e,this.pos),this.pos+=t},e.prototype.writeI8=function(e){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,e),this.pos++},e.prototype.writeU16=function(e){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,e),this.pos+=2},e.prototype.writeI16=function(e){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,e),this.pos+=2},e.prototype.writeU32=function(e){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,e),this.pos+=4},e.prototype.writeI32=function(e){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,e),this.pos+=4},e.prototype.writeF32=function(e){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,e),this.pos+=4},e.prototype.writeF64=function(e){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,e),this.pos+=8},e.prototype.writeU64=function(e){this.ensureBufferSizeToWrite(8),function(e,t,n){var r=n/4294967296,i=n;e.setUint32(t,r),e.setUint32(t+4,i)}(this.view,this.pos,e),this.pos+=8},e.prototype.writeI64=function(e){this.ensureBufferSizeToWrite(8),r(this.view,this.pos,e),this.pos+=8},e}(),D={};function C(e,t){return void 0===t&&(t=D),new z(t.extensionCodec,t.context,t.maxDepth,t.initialBufferSize,t.sortKeys,t.forceFloat32,t.ignoreUndefined,t.forceIntegerToFloat).encodeSharedRef(e)}function P(e){return"".concat(e<0?"-":"","0x").concat(Math.abs(e).toString(16).padStart(2,"0"))}var O=function(){function e(e,t){void 0===e&&(e=16),void 0===t&&(t=16),this.maxKeyLength=e,this.maxLengthPerKey=t,this.hit=0,this.miss=0,this.caches=[];for(var n=0;n0&&e<=this.maxKeyLength},e.prototype.find=function(e,t,n){var r,i,o=this.caches[n-1];try{e:for(var s=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),a=s.next();!a.done;a=s.next()){for(var c=a.value,h=c.bytes,u=0;u=this.maxLengthPerKey?n[Math.random()*n.length|0]=r:n.push(r)},e.prototype.decode=function(e,t,n){var r=this.find(e,t,n);if(null!=r)return this.hit++,r;this.miss++;var i=y(e,t,n),o=Uint8Array.prototype.slice.call(e,t,t+n);return this.store(o,i),i},e}(),_=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof F?Promise.resolve(n.value.v).then(c,h):u(o[0][2],n)}catch(e){u(o[0][3],e)}var n}function c(e){a("next",e)}function h(e){a("throw",e)}function u(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}},R=new DataView(new ArrayBuffer(0)),V=new Uint8Array(R.buffer),K=function(){try{R.getInt8(0)}catch(e){return e.constructor}throw new Error("never reached")}(),N=new K("Insufficient data"),H=new O,G=function(){function e(e,t,r,i,o,s,a,c){void 0===e&&(e=A.defaultCodec),void 0===t&&(t=void 0),void 0===r&&(r=n),void 0===i&&(i=n),void 0===o&&(o=n),void 0===s&&(s=n),void 0===a&&(a=n),void 0===c&&(c=H),this.extensionCodec=e,this.context=t,this.maxStrLength=r,this.maxBinLength=i,this.maxArrayLength=o,this.maxMapLength=s,this.maxExtLength=a,this.keyDecoder=c,this.totalPos=0,this.pos=0,this.view=R,this.bytes=V,this.headByte=-1,this.stack=[]}return e.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=-1,this.stack.length=0},e.prototype.setBuffer=function(e){this.bytes=k(e),this.view=function(e){if(e instanceof ArrayBuffer)return new DataView(e);var t=k(e);return new DataView(t.buffer,t.byteOffset,t.byteLength)}(this.bytes),this.pos=0},e.prototype.appendBuffer=function(e){if(-1!==this.headByte||this.hasRemaining(1)){var t=this.bytes.subarray(this.pos),n=k(e),r=new Uint8Array(t.length+n.length);r.set(t),r.set(n,t.length),this.setBuffer(r)}else this.setBuffer(e)},e.prototype.hasRemaining=function(e){return this.view.byteLength-this.pos>=e},e.prototype.createExtraByteError=function(e){var t=this.view,n=this.pos;return new RangeError("Extra ".concat(t.byteLength-n," of ").concat(t.byteLength," byte(s) found at buffer[").concat(e,"]"))},e.prototype.decode=function(e){this.reinitializeState(),this.setBuffer(e);var t=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return t},e.prototype.decodeMulti=function(e){return _(this,(function(t){switch(t.label){case 0:this.reinitializeState(),this.setBuffer(e),t.label=1;case 1:return this.hasRemaining(1)?[4,this.doDecodeSync()]:[3,3];case 2:return t.sent(),[3,1];case 3:return[2]}}))},e.prototype.decodeAsync=function(e){var t,n,r,i,o,s,a,c;return o=this,s=void 0,c=function(){var o,s,a,c,h,u,f,l;return _(this,(function(p){switch(p.label){case 0:o=!1,p.label=1;case 1:p.trys.push([1,6,7,12]),t=j(e),p.label=2;case 2:return[4,t.next()];case 3:if((n=p.sent()).done)return[3,5];if(a=n.value,o)throw this.createExtraByteError(this.totalPos);this.appendBuffer(a);try{s=this.doDecodeSync(),o=!0}catch(e){if(!(e instanceof K))throw e}this.totalPos+=this.pos,p.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return c=p.sent(),r={error:c},[3,12];case 7:return p.trys.push([7,,10,11]),n&&!n.done&&(i=t.return)?[4,i.call(t)]:[3,9];case 8:p.sent(),p.label=9;case 9:return[3,11];case 10:if(r)throw r.error;return[7];case 11:return[7];case 12:if(o){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return[2,s]}throw u=(h=this).headByte,f=h.pos,l=h.totalPos,new RangeError("Insufficient data in parsing ".concat(P(u)," at ").concat(l," (").concat(f," in the current buffer)"))}}))},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{i(c.next(e))}catch(e){t(e)}}function r(e){try{i(c.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):(i=t.value,i instanceof a?i:new a((function(e){e(i)}))).then(n,r)}i((c=c.apply(o,s||[])).next())}))},e.prototype.decodeArrayStream=function(e){return this.decodeMultiAsync(e,!0)},e.prototype.decodeStream=function(e){return this.decodeMultiAsync(e,!1)},e.prototype.decodeMultiAsync=function(e,t){return W(this,arguments,(function(){var n,r,i,o,s,a,c,h,u;return _(this,(function(f){switch(f.label){case 0:n=t,r=-1,f.label=1;case 1:f.trys.push([1,13,14,19]),i=j(e),f.label=2;case 2:return[4,F(i.next())];case 3:if((o=f.sent()).done)return[3,12];if(s=o.value,t&&0===r)throw this.createExtraByteError(this.totalPos);this.appendBuffer(s),n&&(r=this.readArraySize(),n=!1,this.complete()),f.label=4;case 4:f.trys.push([4,9,,10]),f.label=5;case 5:return[4,F(this.doDecodeSync())];case 6:return[4,f.sent()];case 7:return f.sent(),0==--r?[3,8]:[3,5];case 8:return[3,10];case 9:if(!((a=f.sent())instanceof K))throw a;return[3,10];case 10:this.totalPos+=this.pos,f.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return c=f.sent(),h={error:c},[3,19];case 14:return f.trys.push([14,,17,18]),o&&!o.done&&(u=i.return)?[4,F(u.call(i))]:[3,16];case 15:f.sent(),f.label=16;case 16:return[3,18];case 17:if(h)throw h.error;return[7];case 18:return[7];case 19:return[2]}}))}))},e.prototype.doDecodeSync=function(){e:for(;;){var e=this.readHeadByte(),t=void 0;if(e>=224)t=e-256;else if(e<192)if(e<128)t=e;else if(e<144){if(0!=(r=e-128)){this.pushMapState(r),this.complete();continue e}t={}}else if(e<160){if(0!=(r=e-144)){this.pushArrayState(r),this.complete();continue e}t=[]}else{var n=e-160;t=this.decodeUtf8String(n,0)}else if(192===e)t=null;else if(194===e)t=!1;else if(195===e)t=!0;else if(202===e)t=this.readF32();else if(203===e)t=this.readF64();else if(204===e)t=this.readU8();else if(205===e)t=this.readU16();else if(206===e)t=this.readU32();else if(207===e)t=this.readU64();else if(208===e)t=this.readI8();else if(209===e)t=this.readI16();else if(210===e)t=this.readI32();else if(211===e)t=this.readI64();else if(217===e)n=this.lookU8(),t=this.decodeUtf8String(n,1);else if(218===e)n=this.lookU16(),t=this.decodeUtf8String(n,2);else if(219===e)n=this.lookU32(),t=this.decodeUtf8String(n,4);else if(220===e){if(0!==(r=this.readU16())){this.pushArrayState(r),this.complete();continue e}t=[]}else if(221===e){if(0!==(r=this.readU32())){this.pushArrayState(r),this.complete();continue e}t=[]}else if(222===e){if(0!==(r=this.readU16())){this.pushMapState(r),this.complete();continue e}t={}}else if(223===e){if(0!==(r=this.readU32())){this.pushMapState(r),this.complete();continue e}t={}}else if(196===e){var r=this.lookU8();t=this.decodeBinary(r,1)}else if(197===e)r=this.lookU16(),t=this.decodeBinary(r,2);else if(198===e)r=this.lookU32(),t=this.decodeBinary(r,4);else if(212===e)t=this.decodeExtension(1,0);else if(213===e)t=this.decodeExtension(2,0);else if(214===e)t=this.decodeExtension(4,0);else if(215===e)t=this.decodeExtension(8,0);else if(216===e)t=this.decodeExtension(16,0);else if(199===e)r=this.lookU8(),t=this.decodeExtension(r,1);else if(200===e)r=this.lookU16(),t=this.decodeExtension(r,2);else{if(201!==e)throw new m("Unrecognized type byte: ".concat(P(e)));r=this.lookU32(),t=this.decodeExtension(r,4)}this.complete();for(var i=this.stack;i.length>0;){var o=i[i.length-1];if(0===o.type){if(o.array[o.position]=t,o.position++,o.position!==o.size)continue e;i.pop(),t=o.array}else{if(1===o.type){if(void 0,"string"!=(s=typeof t)&&"number"!==s)throw new m("The type of key must be string or number but "+typeof t);if("__proto__"===t)throw new m("The key __proto__ is not allowed");o.key=t,o.type=2;continue e}if(o.map[o.key]=t,o.readCount++,o.readCount!==o.size){o.key=null,o.type=1;continue e}i.pop(),t=o.map}}return t}var s},e.prototype.readHeadByte=function(){return-1===this.headByte&&(this.headByte=this.readU8()),this.headByte},e.prototype.complete=function(){this.headByte=-1},e.prototype.readArraySize=function(){var e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:if(e<160)return e-144;throw new m("Unrecognized array type byte: ".concat(P(e)))}},e.prototype.pushMapState=function(e){if(e>this.maxMapLength)throw new m("Max length exceeded: map length (".concat(e,") > maxMapLengthLength (").concat(this.maxMapLength,")"));this.stack.push({type:1,size:e,key:null,readCount:0,map:{}})},e.prototype.pushArrayState=function(e){if(e>this.maxArrayLength)throw new m("Max length exceeded: array length (".concat(e,") > maxArrayLength (").concat(this.maxArrayLength,")"));this.stack.push({type:0,size:e,array:new Array(e),position:0})},e.prototype.decodeUtf8String=function(e,t){var n;if(e>this.maxStrLength)throw new m("Max length exceeded: UTF-8 byte length (".concat(e,") > maxStrLength (").concat(this.maxStrLength,")"));if(this.bytes.byteLengthg?function(e,t,n){var r=e.subarray(t,t+n);return v.decode(r)}(this.bytes,i,e):y(this.bytes,i,e),this.pos+=t+e,r},e.prototype.stateIsMapKey=function(){return this.stack.length>0&&1===this.stack[this.stack.length-1].type},e.prototype.decodeBinary=function(e,t){if(e>this.maxBinLength)throw new m("Max length exceeded: bin length (".concat(e,") > maxBinLength (").concat(this.maxBinLength,")"));if(!this.hasRemaining(e+t))throw N;var n=this.pos+t,r=this.bytes.subarray(n,n+e);return this.pos+=t+e,r},e.prototype.decodeExtension=function(e,t){if(e>this.maxExtLength)throw new m("Max length exceeded: ext length (".concat(e,") > maxExtLength (").concat(this.maxExtLength,")"));var n=this.view.getInt8(this.pos+t),r=this.decodeBinary(e,t+1);return this.extensionCodec.decode(r,n,this.context)},e.prototype.lookU8=function(){return this.view.getUint8(this.pos)},e.prototype.lookU16=function(){return this.view.getUint16(this.pos)},e.prototype.lookU32=function(){return this.view.getUint32(this.pos)},e.prototype.readU8=function(){var e=this.view.getUint8(this.pos);return this.pos++,e},e.prototype.readI8=function(){var e=this.view.getInt8(this.pos);return this.pos++,e},e.prototype.readU16=function(){var e=this.view.getUint16(this.pos);return this.pos+=2,e},e.prototype.readI16=function(){var e=this.view.getInt16(this.pos);return this.pos+=2,e},e.prototype.readU32=function(){var e=this.view.getUint32(this.pos);return this.pos+=4,e},e.prototype.readI32=function(){var e=this.view.getInt32(this.pos);return this.pos+=4,e},e.prototype.readU64=function(){var e,t,n=(e=this.view,t=this.pos,4294967296*e.getUint32(t)+e.getUint32(t+4));return this.pos+=8,n},e.prototype.readI64=function(){var e=i(this.view,this.pos);return this.pos+=8,e},e.prototype.readF32=function(){var e=this.view.getFloat32(this.pos);return this.pos+=4,e},e.prototype.readF64=function(){var e=this.view.getFloat64(this.pos);return this.pos+=8,e},e}(),X={};function q(e,t){return void 0===t&&(t=X),new G(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength).decode(e)}function J(e,t){return void 0===t&&(t=X),new G(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength).decodeMulti(e)}var Q=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof Y?Promise.resolve(n.value.v).then(c,h):u(o[0][2],n)}catch(e){u(o[0][3],e)}var n}function c(e){a("next",e)}function h(e){a("throw",e)}function u(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}};function $(e){if(null==e)throw new Error("Assertion Failure: value must not be null nor undefined")}function ee(e){return null!=e[Symbol.asyncIterator]?e:function(e){return Z(this,arguments,(function(){var t,n,r,i;return Q(this,(function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,Y(t.read())];case 3:return n=o.sent(),r=n.done,i=n.value,r?[4,Y(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return $(i),[4,Y(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}(e)}function te(e,t){return void 0===t&&(t=X),n=this,r=void 0,o=function(){var n;return function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]= 0xd800 && value <= 0xdbff) {\n // high surrogate\n if (pos < strLength) {\n const extra = str.charCodeAt(pos);\n if ((extra & 0xfc00) === 0xdc00) {\n ++pos;\n value = ((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000;\n }\n }\n }\n\n if ((value & 0xffff0000) === 0) {\n // 3-byte\n byteLength += 3;\n } else {\n // 4-byte\n byteLength += 4;\n }\n }\n }\n return byteLength;\n}\n\nexport function utf8EncodeJs(str: string, output: Uint8Array, outputOffset: number): void {\n const strLength = str.length;\n let offset = outputOffset;\n let pos = 0;\n while (pos < strLength) {\n let value = str.charCodeAt(pos++);\n\n if ((value & 0xffffff80) === 0) {\n // 1-byte\n output[offset++] = value;\n continue;\n } else if ((value & 0xfffff800) === 0) {\n // 2-bytes\n output[offset++] = ((value >> 6) & 0x1f) | 0xc0;\n } else {\n // handle surrogate pair\n if (value >= 0xd800 && value <= 0xdbff) {\n // high surrogate\n if (pos < strLength) {\n const extra = str.charCodeAt(pos);\n if ((extra & 0xfc00) === 0xdc00) {\n ++pos;\n value = ((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000;\n }\n }\n }\n\n if ((value & 0xffff0000) === 0) {\n // 3-byte\n output[offset++] = ((value >> 12) & 0x0f) | 0xe0;\n output[offset++] = ((value >> 6) & 0x3f) | 0x80;\n } else {\n // 4-byte\n output[offset++] = ((value >> 18) & 0x07) | 0xf0;\n output[offset++] = ((value >> 12) & 0x3f) | 0x80;\n output[offset++] = ((value >> 6) & 0x3f) | 0x80;\n }\n }\n\n output[offset++] = (value & 0x3f) | 0x80;\n }\n}\n\nconst sharedTextEncoder = TEXT_ENCODING_AVAILABLE ? new TextEncoder() : undefined;\nexport const TEXT_ENCODER_THRESHOLD = !TEXT_ENCODING_AVAILABLE\n ? UINT32_MAX\n : typeof process !== \"undefined\" && process?.env?.[\"TEXT_ENCODING\"] !== \"force\"\n ? 200\n : 0;\n\nfunction utf8EncodeTEencode(str: string, output: Uint8Array, outputOffset: number): void {\n output.set(sharedTextEncoder!.encode(str), outputOffset);\n}\n\nfunction utf8EncodeTEencodeInto(str: string, output: Uint8Array, outputOffset: number): void {\n sharedTextEncoder!.encodeInto(str, output.subarray(outputOffset));\n}\n\nexport const utf8EncodeTE = sharedTextEncoder?.encodeInto ? utf8EncodeTEencodeInto : utf8EncodeTEencode;\n\nconst CHUNK_SIZE = 0x1_000;\n\nexport function utf8DecodeJs(bytes: Uint8Array, inputOffset: number, byteLength: number): string {\n let offset = inputOffset;\n const end = offset + byteLength;\n\n const units: Array = [];\n let result = \"\";\n while (offset < end) {\n const byte1 = bytes[offset++]!;\n if ((byte1 & 0x80) === 0) {\n // 1 byte\n units.push(byte1);\n } else if ((byte1 & 0xe0) === 0xc0) {\n // 2 bytes\n const byte2 = bytes[offset++]! & 0x3f;\n units.push(((byte1 & 0x1f) << 6) | byte2);\n } else if ((byte1 & 0xf0) === 0xe0) {\n // 3 bytes\n const byte2 = bytes[offset++]! & 0x3f;\n const byte3 = bytes[offset++]! & 0x3f;\n units.push(((byte1 & 0x1f) << 12) | (byte2 << 6) | byte3);\n } else if ((byte1 & 0xf8) === 0xf0) {\n // 4 bytes\n const byte2 = bytes[offset++]! & 0x3f;\n const byte3 = bytes[offset++]! & 0x3f;\n const byte4 = bytes[offset++]! & 0x3f;\n let unit = ((byte1 & 0x07) << 0x12) | (byte2 << 0x0c) | (byte3 << 0x06) | byte4;\n if (unit > 0xffff) {\n unit -= 0x10000;\n units.push(((unit >>> 10) & 0x3ff) | 0xd800);\n unit = 0xdc00 | (unit & 0x3ff);\n }\n units.push(unit);\n } else {\n units.push(byte1);\n }\n\n if (units.length >= CHUNK_SIZE) {\n result += String.fromCharCode(...units);\n units.length = 0;\n }\n }\n\n if (units.length > 0) {\n result += String.fromCharCode(...units);\n }\n\n return result;\n}\n\nconst sharedTextDecoder = TEXT_ENCODING_AVAILABLE ? new TextDecoder() : null;\nexport const TEXT_DECODER_THRESHOLD = !TEXT_ENCODING_AVAILABLE\n ? UINT32_MAX\n : typeof process !== \"undefined\" && process?.env?.[\"TEXT_DECODER\"] !== \"force\"\n ? 200\n : 0;\n\nexport function utf8DecodeTD(bytes: Uint8Array, inputOffset: number, byteLength: number): string {\n const stringBytes = bytes.subarray(inputOffset, inputOffset + byteLength);\n return sharedTextDecoder!.decode(stringBytes);\n}\n","/**\n * ExtData is used to handle Extension Types that are not registered to ExtensionCodec.\n */\nexport class ExtData {\n constructor(readonly type: number, readonly data: Uint8Array) {}\n}\n","export class DecodeError extends Error {\n constructor(message: string) {\n super(message);\n\n // fix the prototype chain in a cross-platform way\n const proto: typeof DecodeError.prototype = Object.create(DecodeError.prototype);\n Object.setPrototypeOf(this, proto);\n\n Object.defineProperty(this, \"name\", {\n configurable: true,\n enumerable: false,\n value: DecodeError.name,\n });\n }\n}\n","// https://github.com/msgpack/msgpack/blob/master/spec.md#timestamp-extension-type\nimport { DecodeError } from \"./DecodeError\";\nimport { getInt64, setInt64 } from \"./utils/int\";\n\nexport const EXT_TIMESTAMP = -1;\n\nexport type TimeSpec = {\n sec: number;\n nsec: number;\n};\n\nconst TIMESTAMP32_MAX_SEC = 0x100000000 - 1; // 32-bit unsigned int\nconst TIMESTAMP64_MAX_SEC = 0x400000000 - 1; // 34-bit unsigned int\n\nexport function encodeTimeSpecToTimestamp({ sec, nsec }: TimeSpec): Uint8Array {\n if (sec >= 0 && nsec >= 0 && sec <= TIMESTAMP64_MAX_SEC) {\n // Here sec >= 0 && nsec >= 0\n if (nsec === 0 && sec <= TIMESTAMP32_MAX_SEC) {\n // timestamp 32 = { sec32 (unsigned) }\n const rv = new Uint8Array(4);\n const view = new DataView(rv.buffer);\n view.setUint32(0, sec);\n return rv;\n } else {\n // timestamp 64 = { nsec30 (unsigned), sec34 (unsigned) }\n const secHigh = sec / 0x100000000;\n const secLow = sec & 0xffffffff;\n const rv = new Uint8Array(8);\n const view = new DataView(rv.buffer);\n // nsec30 | secHigh2\n view.setUint32(0, (nsec << 2) | (secHigh & 0x3));\n // secLow32\n view.setUint32(4, secLow);\n return rv;\n }\n } else {\n // timestamp 96 = { nsec32 (unsigned), sec64 (signed) }\n const rv = new Uint8Array(12);\n const view = new DataView(rv.buffer);\n view.setUint32(0, nsec);\n setInt64(view, 4, sec);\n return rv;\n }\n}\n\nexport function encodeDateToTimeSpec(date: Date): TimeSpec {\n const msec = date.getTime();\n const sec = Math.floor(msec / 1e3);\n const nsec = (msec - sec * 1e3) * 1e6;\n\n // Normalizes { sec, nsec } to ensure nsec is unsigned.\n const nsecInSec = Math.floor(nsec / 1e9);\n return {\n sec: sec + nsecInSec,\n nsec: nsec - nsecInSec * 1e9,\n };\n}\n\nexport function encodeTimestampExtension(object: unknown): Uint8Array | null {\n if (object instanceof Date) {\n const timeSpec = encodeDateToTimeSpec(object);\n return encodeTimeSpecToTimestamp(timeSpec);\n } else {\n return null;\n }\n}\n\nexport function decodeTimestampToTimeSpec(data: Uint8Array): TimeSpec {\n const view = new DataView(data.buffer, data.byteOffset, data.byteLength);\n\n // data may be 32, 64, or 96 bits\n switch (data.byteLength) {\n case 4: {\n // timestamp 32 = { sec32 }\n const sec = view.getUint32(0);\n const nsec = 0;\n return { sec, nsec };\n }\n case 8: {\n // timestamp 64 = { nsec30, sec34 }\n const nsec30AndSecHigh2 = view.getUint32(0);\n const secLow32 = view.getUint32(4);\n const sec = (nsec30AndSecHigh2 & 0x3) * 0x100000000 + secLow32;\n const nsec = nsec30AndSecHigh2 >>> 2;\n return { sec, nsec };\n }\n case 12: {\n // timestamp 96 = { nsec32 (unsigned), sec64 (signed) }\n\n const sec = getInt64(view, 4);\n const nsec = view.getUint32(0);\n return { sec, nsec };\n }\n default:\n throw new DecodeError(`Unrecognized data size for timestamp (expected 4, 8, or 12): ${data.length}`);\n }\n}\n\nexport function decodeTimestampExtension(data: Uint8Array): Date {\n const timeSpec = decodeTimestampToTimeSpec(data);\n return new Date(timeSpec.sec * 1e3 + timeSpec.nsec / 1e6);\n}\n\nexport const timestampExtension = {\n type: EXT_TIMESTAMP,\n encode: encodeTimestampExtension,\n decode: decodeTimestampExtension,\n};\n","// ExtensionCodec to handle MessagePack extensions\n\nimport { ExtData } from \"./ExtData\";\nimport { timestampExtension } from \"./timestamp\";\n\nexport type ExtensionDecoderType = (\n data: Uint8Array,\n extensionType: number,\n context: ContextType,\n) => unknown;\n\nexport type ExtensionEncoderType = (input: unknown, context: ContextType) => Uint8Array | null;\n\n// immutable interface to ExtensionCodec\nexport type ExtensionCodecType = {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n __brand?: ContextType;\n tryToEncode(object: unknown, context: ContextType): ExtData | null;\n decode(data: Uint8Array, extType: number, context: ContextType): unknown;\n};\n\nexport class ExtensionCodec implements ExtensionCodecType {\n public static readonly defaultCodec: ExtensionCodecType = new ExtensionCodec();\n\n // ensures ExtensionCodecType matches ExtensionCodec\n // this will make type errors a lot more clear\n // eslint-disable-next-line @typescript-eslint/naming-convention\n __brand?: ContextType;\n\n // built-in extensions\n private readonly builtInEncoders: Array | undefined | null> = [];\n private readonly builtInDecoders: Array | undefined | null> = [];\n\n // custom extensions\n private readonly encoders: Array | undefined | null> = [];\n private readonly decoders: Array | undefined | null> = [];\n\n public constructor() {\n this.register(timestampExtension);\n }\n\n public register({\n type,\n encode,\n decode,\n }: {\n type: number;\n encode: ExtensionEncoderType;\n decode: ExtensionDecoderType;\n }): void {\n if (type >= 0) {\n // custom extensions\n this.encoders[type] = encode;\n this.decoders[type] = decode;\n } else {\n // built-in extensions\n const index = 1 + type;\n this.builtInEncoders[index] = encode;\n this.builtInDecoders[index] = decode;\n }\n }\n\n public tryToEncode(object: unknown, context: ContextType): ExtData | null {\n // built-in extensions\n for (let i = 0; i < this.builtInEncoders.length; i++) {\n const encodeExt = this.builtInEncoders[i];\n if (encodeExt != null) {\n const data = encodeExt(object, context);\n if (data != null) {\n const type = -1 - i;\n return new ExtData(type, data);\n }\n }\n }\n\n // custom extensions\n for (let i = 0; i < this.encoders.length; i++) {\n const encodeExt = this.encoders[i];\n if (encodeExt != null) {\n const data = encodeExt(object, context);\n if (data != null) {\n const type = i;\n return new ExtData(type, data);\n }\n }\n }\n\n if (object instanceof ExtData) {\n // to keep ExtData as is\n return object;\n }\n return null;\n }\n\n public decode(data: Uint8Array, type: number, context: ContextType): unknown {\n const decodeExt = type < 0 ? this.builtInDecoders[-1 - type] : this.decoders[type];\n if (decodeExt) {\n return decodeExt(data, type, context);\n } else {\n // decode() does not fail, returns ExtData instead.\n return new ExtData(type, data);\n }\n }\n}\n","export function ensureUint8Array(buffer: ArrayLike | Uint8Array | ArrayBufferView | ArrayBuffer): Uint8Array {\n if (buffer instanceof Uint8Array) {\n return buffer;\n } else if (ArrayBuffer.isView(buffer)) {\n return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);\n } else if (buffer instanceof ArrayBuffer) {\n return new Uint8Array(buffer);\n } else {\n // ArrayLike\n return Uint8Array.from(buffer);\n }\n}\n\nexport function createDataView(buffer: ArrayLike | ArrayBufferView | ArrayBuffer): DataView {\n if (buffer instanceof ArrayBuffer) {\n return new DataView(buffer);\n }\n\n const bufferView = ensureUint8Array(buffer);\n return new DataView(bufferView.buffer, bufferView.byteOffset, bufferView.byteLength);\n}\n","import { utf8EncodeJs, utf8Count, TEXT_ENCODER_THRESHOLD, utf8EncodeTE } from \"./utils/utf8\";\nimport { ExtensionCodec, ExtensionCodecType } from \"./ExtensionCodec\";\nimport { setInt64, setUint64 } from \"./utils/int\";\nimport { ensureUint8Array } from \"./utils/typedArrays\";\nimport type { ExtData } from \"./ExtData\";\n\nexport const DEFAULT_MAX_DEPTH = 100;\nexport const DEFAULT_INITIAL_BUFFER_SIZE = 2048;\n\nexport class Encoder {\n private pos = 0;\n private view = new DataView(new ArrayBuffer(this.initialBufferSize));\n private bytes = new Uint8Array(this.view.buffer);\n\n public constructor(\n private readonly extensionCodec: ExtensionCodecType = ExtensionCodec.defaultCodec as any,\n private readonly context: ContextType = undefined as any,\n private readonly maxDepth = DEFAULT_MAX_DEPTH,\n private readonly initialBufferSize = DEFAULT_INITIAL_BUFFER_SIZE,\n private readonly sortKeys = false,\n private readonly forceFloat32 = false,\n private readonly ignoreUndefined = false,\n private readonly forceIntegerToFloat = false,\n ) {}\n\n private reinitializeState() {\n this.pos = 0;\n }\n\n /**\n * This is almost equivalent to {@link Encoder#encode}, but it returns an reference of the encoder's internal buffer and thus much faster than {@link Encoder#encode}.\n *\n * @returns Encodes the object and returns a shared reference the encoder's internal buffer.\n */\n public encodeSharedRef(object: unknown): Uint8Array {\n this.reinitializeState();\n this.doEncode(object, 1);\n return this.bytes.subarray(0, this.pos);\n }\n\n /**\n * @returns Encodes the object and returns a copy of the encoder's internal buffer.\n */\n public encode(object: unknown): Uint8Array {\n this.reinitializeState();\n this.doEncode(object, 1);\n return this.bytes.slice(0, this.pos);\n }\n\n private doEncode(object: unknown, depth: number): void {\n if (depth > this.maxDepth) {\n throw new Error(`Too deep objects in depth ${depth}`);\n }\n\n if (object == null) {\n this.encodeNil();\n } else if (typeof object === \"boolean\") {\n this.encodeBoolean(object);\n } else if (typeof object === \"number\") {\n this.encodeNumber(object);\n } else if (typeof object === \"string\") {\n this.encodeString(object);\n } else {\n this.encodeObject(object, depth);\n }\n }\n\n private ensureBufferSizeToWrite(sizeToWrite: number) {\n const requiredSize = this.pos + sizeToWrite;\n\n if (this.view.byteLength < requiredSize) {\n this.resizeBuffer(requiredSize * 2);\n }\n }\n\n private resizeBuffer(newSize: number) {\n const newBuffer = new ArrayBuffer(newSize);\n const newBytes = new Uint8Array(newBuffer);\n const newView = new DataView(newBuffer);\n\n newBytes.set(this.bytes);\n\n this.view = newView;\n this.bytes = newBytes;\n }\n\n private encodeNil() {\n this.writeU8(0xc0);\n }\n\n private encodeBoolean(object: boolean) {\n if (object === false) {\n this.writeU8(0xc2);\n } else {\n this.writeU8(0xc3);\n }\n }\n private encodeNumber(object: number) {\n if (Number.isSafeInteger(object) && !this.forceIntegerToFloat) {\n if (object >= 0) {\n if (object < 0x80) {\n // positive fixint\n this.writeU8(object);\n } else if (object < 0x100) {\n // uint 8\n this.writeU8(0xcc);\n this.writeU8(object);\n } else if (object < 0x10000) {\n // uint 16\n this.writeU8(0xcd);\n this.writeU16(object);\n } else if (object < 0x100000000) {\n // uint 32\n this.writeU8(0xce);\n this.writeU32(object);\n } else {\n // uint 64\n this.writeU8(0xcf);\n this.writeU64(object);\n }\n } else {\n if (object >= -0x20) {\n // negative fixint\n this.writeU8(0xe0 | (object + 0x20));\n } else if (object >= -0x80) {\n // int 8\n this.writeU8(0xd0);\n this.writeI8(object);\n } else if (object >= -0x8000) {\n // int 16\n this.writeU8(0xd1);\n this.writeI16(object);\n } else if (object >= -0x80000000) {\n // int 32\n this.writeU8(0xd2);\n this.writeI32(object);\n } else {\n // int 64\n this.writeU8(0xd3);\n this.writeI64(object);\n }\n }\n } else {\n // non-integer numbers\n if (this.forceFloat32) {\n // float 32\n this.writeU8(0xca);\n this.writeF32(object);\n } else {\n // float 64\n this.writeU8(0xcb);\n this.writeF64(object);\n }\n }\n }\n\n private writeStringHeader(byteLength: number) {\n if (byteLength < 32) {\n // fixstr\n this.writeU8(0xa0 + byteLength);\n } else if (byteLength < 0x100) {\n // str 8\n this.writeU8(0xd9);\n this.writeU8(byteLength);\n } else if (byteLength < 0x10000) {\n // str 16\n this.writeU8(0xda);\n this.writeU16(byteLength);\n } else if (byteLength < 0x100000000) {\n // str 32\n this.writeU8(0xdb);\n this.writeU32(byteLength);\n } else {\n throw new Error(`Too long string: ${byteLength} bytes in UTF-8`);\n }\n }\n\n private encodeString(object: string) {\n const maxHeaderSize = 1 + 4;\n const strLength = object.length;\n\n if (strLength > TEXT_ENCODER_THRESHOLD) {\n const byteLength = utf8Count(object);\n this.ensureBufferSizeToWrite(maxHeaderSize + byteLength);\n this.writeStringHeader(byteLength);\n utf8EncodeTE(object, this.bytes, this.pos);\n this.pos += byteLength;\n } else {\n const byteLength = utf8Count(object);\n this.ensureBufferSizeToWrite(maxHeaderSize + byteLength);\n this.writeStringHeader(byteLength);\n utf8EncodeJs(object, this.bytes, this.pos);\n this.pos += byteLength;\n }\n }\n\n private encodeObject(object: unknown, depth: number) {\n // try to encode objects with custom codec first of non-primitives\n const ext = this.extensionCodec.tryToEncode(object, this.context);\n if (ext != null) {\n this.encodeExtension(ext);\n } else if (Array.isArray(object)) {\n this.encodeArray(object, depth);\n } else if (ArrayBuffer.isView(object)) {\n this.encodeBinary(object);\n } else if (typeof object === \"object\") {\n this.encodeMap(object as Record, depth);\n } else {\n // symbol, function and other special object come here unless extensionCodec handles them.\n throw new Error(`Unrecognized object: ${Object.prototype.toString.apply(object)}`);\n }\n }\n\n private encodeBinary(object: ArrayBufferView) {\n const size = object.byteLength;\n if (size < 0x100) {\n // bin 8\n this.writeU8(0xc4);\n this.writeU8(size);\n } else if (size < 0x10000) {\n // bin 16\n this.writeU8(0xc5);\n this.writeU16(size);\n } else if (size < 0x100000000) {\n // bin 32\n this.writeU8(0xc6);\n this.writeU32(size);\n } else {\n throw new Error(`Too large binary: ${size}`);\n }\n const bytes = ensureUint8Array(object);\n this.writeU8a(bytes);\n }\n\n private encodeArray(object: Array, depth: number) {\n const size = object.length;\n if (size < 16) {\n // fixarray\n this.writeU8(0x90 + size);\n } else if (size < 0x10000) {\n // array 16\n this.writeU8(0xdc);\n this.writeU16(size);\n } else if (size < 0x100000000) {\n // array 32\n this.writeU8(0xdd);\n this.writeU32(size);\n } else {\n throw new Error(`Too large array: ${size}`);\n }\n for (const item of object) {\n this.doEncode(item, depth + 1);\n }\n }\n\n private countWithoutUndefined(object: Record, keys: ReadonlyArray): number {\n let count = 0;\n\n for (const key of keys) {\n if (object[key] !== undefined) {\n count++;\n }\n }\n\n return count;\n }\n\n private encodeMap(object: Record, depth: number) {\n const keys = Object.keys(object);\n if (this.sortKeys) {\n keys.sort();\n }\n\n const size = this.ignoreUndefined ? this.countWithoutUndefined(object, keys) : keys.length;\n\n if (size < 16) {\n // fixmap\n this.writeU8(0x80 + size);\n } else if (size < 0x10000) {\n // map 16\n this.writeU8(0xde);\n this.writeU16(size);\n } else if (size < 0x100000000) {\n // map 32\n this.writeU8(0xdf);\n this.writeU32(size);\n } else {\n throw new Error(`Too large map object: ${size}`);\n }\n\n for (const key of keys) {\n const value = object[key];\n\n if (!(this.ignoreUndefined && value === undefined)) {\n this.encodeString(key);\n this.doEncode(value, depth + 1);\n }\n }\n }\n\n private encodeExtension(ext: ExtData) {\n const size = ext.data.length;\n if (size === 1) {\n // fixext 1\n this.writeU8(0xd4);\n } else if (size === 2) {\n // fixext 2\n this.writeU8(0xd5);\n } else if (size === 4) {\n // fixext 4\n this.writeU8(0xd6);\n } else if (size === 8) {\n // fixext 8\n this.writeU8(0xd7);\n } else if (size === 16) {\n // fixext 16\n this.writeU8(0xd8);\n } else if (size < 0x100) {\n // ext 8\n this.writeU8(0xc7);\n this.writeU8(size);\n } else if (size < 0x10000) {\n // ext 16\n this.writeU8(0xc8);\n this.writeU16(size);\n } else if (size < 0x100000000) {\n // ext 32\n this.writeU8(0xc9);\n this.writeU32(size);\n } else {\n throw new Error(`Too large extension object: ${size}`);\n }\n this.writeI8(ext.type);\n this.writeU8a(ext.data);\n }\n\n private writeU8(value: number) {\n this.ensureBufferSizeToWrite(1);\n\n this.view.setUint8(this.pos, value);\n this.pos++;\n }\n\n private writeU8a(values: ArrayLike) {\n const size = values.length;\n this.ensureBufferSizeToWrite(size);\n\n this.bytes.set(values, this.pos);\n this.pos += size;\n }\n\n private writeI8(value: number) {\n this.ensureBufferSizeToWrite(1);\n\n this.view.setInt8(this.pos, value);\n this.pos++;\n }\n\n private writeU16(value: number) {\n this.ensureBufferSizeToWrite(2);\n\n this.view.setUint16(this.pos, value);\n this.pos += 2;\n }\n\n private writeI16(value: number) {\n this.ensureBufferSizeToWrite(2);\n\n this.view.setInt16(this.pos, value);\n this.pos += 2;\n }\n\n private writeU32(value: number) {\n this.ensureBufferSizeToWrite(4);\n\n this.view.setUint32(this.pos, value);\n this.pos += 4;\n }\n\n private writeI32(value: number) {\n this.ensureBufferSizeToWrite(4);\n\n this.view.setInt32(this.pos, value);\n this.pos += 4;\n }\n\n private writeF32(value: number) {\n this.ensureBufferSizeToWrite(4);\n this.view.setFloat32(this.pos, value);\n this.pos += 4;\n }\n\n private writeF64(value: number) {\n this.ensureBufferSizeToWrite(8);\n this.view.setFloat64(this.pos, value);\n this.pos += 8;\n }\n\n private writeU64(value: number) {\n this.ensureBufferSizeToWrite(8);\n\n setUint64(this.view, this.pos, value);\n this.pos += 8;\n }\n\n private writeI64(value: number) {\n this.ensureBufferSizeToWrite(8);\n\n setInt64(this.view, this.pos, value);\n this.pos += 8;\n }\n}\n","import { Encoder } from \"./Encoder\";\nimport type { ExtensionCodecType } from \"./ExtensionCodec\";\nimport type { ContextOf, SplitUndefined } from \"./context\";\n\nexport type EncodeOptions = Partial<\n Readonly<{\n extensionCodec: ExtensionCodecType;\n\n /**\n * The maximum depth in nested objects and arrays.\n *\n * Defaults to 100.\n */\n maxDepth: number;\n\n /**\n * The initial size of the internal buffer.\n *\n * Defaults to 2048.\n */\n initialBufferSize: number;\n\n /**\n * If `true`, the keys of an object is sorted. In other words, the encoded\n * binary is canonical and thus comparable to another encoded binary.\n *\n * Defaults to `false`. If enabled, it spends more time in encoding objects.\n */\n sortKeys: boolean;\n /**\n * If `true`, non-integer numbers are encoded in float32, not in float64 (the default).\n *\n * Only use it if precisions don't matter.\n *\n * Defaults to `false`.\n */\n forceFloat32: boolean;\n\n /**\n * If `true`, an object property with `undefined` value are ignored.\n * e.g. `{ foo: undefined }` will be encoded as `{}`, as `JSON.stringify()` does.\n *\n * Defaults to `false`. If enabled, it spends more time in encoding objects.\n */\n ignoreUndefined: boolean;\n\n /**\n * If `true`, integer numbers are encoded as floating point numbers,\n * with the `forceFloat32` option taken into account.\n *\n * Defaults to `false`.\n */\n forceIntegerToFloat: boolean;\n }>\n> &\n ContextOf;\n\nconst defaultEncodeOptions: EncodeOptions = {};\n\n/**\n * It encodes `value` in the MessagePack format and\n * returns a byte buffer.\n *\n * The returned buffer is a slice of a larger `ArrayBuffer`, so you have to use its `#byteOffset` and `#byteLength` in order to convert it to another typed arrays including NodeJS `Buffer`.\n */\nexport function encode(\n value: unknown,\n options: EncodeOptions> = defaultEncodeOptions as any,\n): Uint8Array {\n const encoder = new Encoder(\n options.extensionCodec,\n (options as typeof options & { context: any }).context,\n options.maxDepth,\n options.initialBufferSize,\n options.sortKeys,\n options.forceFloat32,\n options.ignoreUndefined,\n options.forceIntegerToFloat,\n );\n return encoder.encodeSharedRef(value);\n}\n","export function prettyByte(byte: number): string {\n return `${byte < 0 ? \"-\" : \"\"}0x${Math.abs(byte).toString(16).padStart(2, \"0\")}`;\n}\n","import { utf8DecodeJs } from \"./utils/utf8\";\n\nconst DEFAULT_MAX_KEY_LENGTH = 16;\nconst DEFAULT_MAX_LENGTH_PER_KEY = 16;\n\nexport interface KeyDecoder {\n canBeCached(byteLength: number): boolean;\n decode(bytes: Uint8Array, inputOffset: number, byteLength: number): string;\n}\ninterface KeyCacheRecord {\n readonly bytes: Uint8Array;\n readonly str: string;\n}\n\nexport class CachedKeyDecoder implements KeyDecoder {\n hit = 0;\n miss = 0;\n private readonly caches: Array>;\n\n constructor(readonly maxKeyLength = DEFAULT_MAX_KEY_LENGTH, readonly maxLengthPerKey = DEFAULT_MAX_LENGTH_PER_KEY) {\n // avoid `new Array(N)`, which makes a sparse array,\n // because a sparse array is typically slower than a non-sparse array.\n this.caches = [];\n for (let i = 0; i < this.maxKeyLength; i++) {\n this.caches.push([]);\n }\n }\n\n public canBeCached(byteLength: number): boolean {\n return byteLength > 0 && byteLength <= this.maxKeyLength;\n }\n\n private find(bytes: Uint8Array, inputOffset: number, byteLength: number): string | null {\n const records = this.caches[byteLength - 1]!;\n\n FIND_CHUNK: for (const record of records) {\n const recordBytes = record.bytes;\n\n for (let j = 0; j < byteLength; j++) {\n if (recordBytes[j] !== bytes[inputOffset + j]) {\n continue FIND_CHUNK;\n }\n }\n return record.str;\n }\n return null;\n }\n\n private store(bytes: Uint8Array, value: string) {\n const records = this.caches[bytes.length - 1]!;\n const record: KeyCacheRecord = { bytes, str: value };\n\n if (records.length >= this.maxLengthPerKey) {\n // `records` are full!\n // Set `record` to an arbitrary position.\n records[(Math.random() * records.length) | 0] = record;\n } else {\n records.push(record);\n }\n }\n\n public decode(bytes: Uint8Array, inputOffset: number, byteLength: number): string {\n const cachedValue = this.find(bytes, inputOffset, byteLength);\n if (cachedValue != null) {\n this.hit++;\n return cachedValue;\n }\n this.miss++;\n\n const str = utf8DecodeJs(bytes, inputOffset, byteLength);\n // Ensure to copy a slice of bytes because the byte may be NodeJS Buffer and Buffer#slice() returns a reference to its internal ArrayBuffer.\n const slicedCopyOfBytes = Uint8Array.prototype.slice.call(bytes, inputOffset, inputOffset + byteLength);\n this.store(slicedCopyOfBytes, str);\n return str;\n }\n}\n","import { prettyByte } from \"./utils/prettyByte\";\nimport { ExtensionCodec, ExtensionCodecType } from \"./ExtensionCodec\";\nimport { getInt64, getUint64, UINT32_MAX } from \"./utils/int\";\nimport { utf8DecodeJs, TEXT_DECODER_THRESHOLD, utf8DecodeTD } from \"./utils/utf8\";\nimport { createDataView, ensureUint8Array } from \"./utils/typedArrays\";\nimport { CachedKeyDecoder, KeyDecoder } from \"./CachedKeyDecoder\";\nimport { DecodeError } from \"./DecodeError\";\n\nconst enum State {\n ARRAY,\n MAP_KEY,\n MAP_VALUE,\n}\n\ntype MapKeyType = string | number;\n\nconst isValidMapKeyType = (key: unknown): key is MapKeyType => {\n const keyType = typeof key;\n\n return keyType === \"string\" || keyType === \"number\";\n};\n\ntype StackMapState = {\n type: State.MAP_KEY | State.MAP_VALUE;\n size: number;\n key: MapKeyType | null;\n readCount: number;\n map: Record;\n};\n\ntype StackArrayState = {\n type: State.ARRAY;\n size: number;\n array: Array;\n position: number;\n};\n\ntype StackState = StackArrayState | StackMapState;\n\nconst HEAD_BYTE_REQUIRED = -1;\n\nconst EMPTY_VIEW = new DataView(new ArrayBuffer(0));\nconst EMPTY_BYTES = new Uint8Array(EMPTY_VIEW.buffer);\n\n// IE11: Hack to support IE11.\n// IE11: Drop this hack and just use RangeError when IE11 is obsolete.\nexport const DataViewIndexOutOfBoundsError: typeof Error = (() => {\n try {\n // IE11: The spec says it should throw RangeError,\n // IE11: but in IE11 it throws TypeError.\n EMPTY_VIEW.getInt8(0);\n } catch (e: any) {\n return e.constructor;\n }\n throw new Error(\"never reached\");\n})();\n\nconst MORE_DATA = new DataViewIndexOutOfBoundsError(\"Insufficient data\");\n\nconst sharedCachedKeyDecoder = new CachedKeyDecoder();\n\nexport class Decoder {\n private totalPos = 0;\n private pos = 0;\n\n private view = EMPTY_VIEW;\n private bytes = EMPTY_BYTES;\n private headByte = HEAD_BYTE_REQUIRED;\n private readonly stack: Array = [];\n\n public constructor(\n private readonly extensionCodec: ExtensionCodecType = ExtensionCodec.defaultCodec as any,\n private readonly context: ContextType = undefined as any,\n private readonly maxStrLength = UINT32_MAX,\n private readonly maxBinLength = UINT32_MAX,\n private readonly maxArrayLength = UINT32_MAX,\n private readonly maxMapLength = UINT32_MAX,\n private readonly maxExtLength = UINT32_MAX,\n private readonly keyDecoder: KeyDecoder | null = sharedCachedKeyDecoder,\n ) {}\n\n private reinitializeState() {\n this.totalPos = 0;\n this.headByte = HEAD_BYTE_REQUIRED;\n this.stack.length = 0;\n\n // view, bytes, and pos will be re-initialized in setBuffer()\n }\n\n private setBuffer(buffer: ArrayLike | BufferSource): void {\n this.bytes = ensureUint8Array(buffer);\n this.view = createDataView(this.bytes);\n this.pos = 0;\n }\n\n private appendBuffer(buffer: ArrayLike | BufferSource) {\n if (this.headByte === HEAD_BYTE_REQUIRED && !this.hasRemaining(1)) {\n this.setBuffer(buffer);\n } else {\n const remainingData = this.bytes.subarray(this.pos);\n const newData = ensureUint8Array(buffer);\n\n // concat remainingData + newData\n const newBuffer = new Uint8Array(remainingData.length + newData.length);\n newBuffer.set(remainingData);\n newBuffer.set(newData, remainingData.length);\n this.setBuffer(newBuffer);\n }\n }\n\n private hasRemaining(size: number) {\n return this.view.byteLength - this.pos >= size;\n }\n\n private createExtraByteError(posToShow: number): Error {\n const { view, pos } = this;\n return new RangeError(`Extra ${view.byteLength - pos} of ${view.byteLength} byte(s) found at buffer[${posToShow}]`);\n }\n\n /**\n * @throws {@link DecodeError}\n * @throws {@link RangeError}\n */\n public decode(buffer: ArrayLike | BufferSource): unknown {\n this.reinitializeState();\n this.setBuffer(buffer);\n\n const object = this.doDecodeSync();\n if (this.hasRemaining(1)) {\n throw this.createExtraByteError(this.pos);\n }\n return object;\n }\n\n public *decodeMulti(buffer: ArrayLike | BufferSource): Generator {\n this.reinitializeState();\n this.setBuffer(buffer);\n\n while (this.hasRemaining(1)) {\n yield this.doDecodeSync();\n }\n }\n\n public async decodeAsync(stream: AsyncIterable | BufferSource>): Promise {\n let decoded = false;\n let object: unknown;\n for await (const buffer of stream) {\n if (decoded) {\n throw this.createExtraByteError(this.totalPos);\n }\n\n this.appendBuffer(buffer);\n\n try {\n object = this.doDecodeSync();\n decoded = true;\n } catch (e) {\n if (!(e instanceof DataViewIndexOutOfBoundsError)) {\n throw e; // rethrow\n }\n // fallthrough\n }\n this.totalPos += this.pos;\n }\n\n if (decoded) {\n if (this.hasRemaining(1)) {\n throw this.createExtraByteError(this.totalPos);\n }\n return object;\n }\n\n const { headByte, pos, totalPos } = this;\n throw new RangeError(\n `Insufficient data in parsing ${prettyByte(headByte)} at ${totalPos} (${pos} in the current buffer)`,\n );\n }\n\n public decodeArrayStream(\n stream: AsyncIterable | BufferSource>,\n ): AsyncGenerator {\n return this.decodeMultiAsync(stream, true);\n }\n\n public decodeStream(stream: AsyncIterable | BufferSource>): AsyncGenerator {\n return this.decodeMultiAsync(stream, false);\n }\n\n private async *decodeMultiAsync(stream: AsyncIterable | BufferSource>, isArray: boolean) {\n let isArrayHeaderRequired = isArray;\n let arrayItemsLeft = -1;\n\n for await (const buffer of stream) {\n if (isArray && arrayItemsLeft === 0) {\n throw this.createExtraByteError(this.totalPos);\n }\n\n this.appendBuffer(buffer);\n\n if (isArrayHeaderRequired) {\n arrayItemsLeft = this.readArraySize();\n isArrayHeaderRequired = false;\n this.complete();\n }\n\n try {\n while (true) {\n yield this.doDecodeSync();\n if (--arrayItemsLeft === 0) {\n break;\n }\n }\n } catch (e) {\n if (!(e instanceof DataViewIndexOutOfBoundsError)) {\n throw e; // rethrow\n }\n // fallthrough\n }\n this.totalPos += this.pos;\n }\n }\n\n private doDecodeSync(): unknown {\n DECODE: while (true) {\n const headByte = this.readHeadByte();\n let object: unknown;\n\n if (headByte >= 0xe0) {\n // negative fixint (111x xxxx) 0xe0 - 0xff\n object = headByte - 0x100;\n } else if (headByte < 0xc0) {\n if (headByte < 0x80) {\n // positive fixint (0xxx xxxx) 0x00 - 0x7f\n object = headByte;\n } else if (headByte < 0x90) {\n // fixmap (1000 xxxx) 0x80 - 0x8f\n const size = headByte - 0x80;\n if (size !== 0) {\n this.pushMapState(size);\n this.complete();\n continue DECODE;\n } else {\n object = {};\n }\n } else if (headByte < 0xa0) {\n // fixarray (1001 xxxx) 0x90 - 0x9f\n const size = headByte - 0x90;\n if (size !== 0) {\n this.pushArrayState(size);\n this.complete();\n continue DECODE;\n } else {\n object = [];\n }\n } else {\n // fixstr (101x xxxx) 0xa0 - 0xbf\n const byteLength = headByte - 0xa0;\n object = this.decodeUtf8String(byteLength, 0);\n }\n } else if (headByte === 0xc0) {\n // nil\n object = null;\n } else if (headByte === 0xc2) {\n // false\n object = false;\n } else if (headByte === 0xc3) {\n // true\n object = true;\n } else if (headByte === 0xca) {\n // float 32\n object = this.readF32();\n } else if (headByte === 0xcb) {\n // float 64\n object = this.readF64();\n } else if (headByte === 0xcc) {\n // uint 8\n object = this.readU8();\n } else if (headByte === 0xcd) {\n // uint 16\n object = this.readU16();\n } else if (headByte === 0xce) {\n // uint 32\n object = this.readU32();\n } else if (headByte === 0xcf) {\n // uint 64\n object = this.readU64();\n } else if (headByte === 0xd0) {\n // int 8\n object = this.readI8();\n } else if (headByte === 0xd1) {\n // int 16\n object = this.readI16();\n } else if (headByte === 0xd2) {\n // int 32\n object = this.readI32();\n } else if (headByte === 0xd3) {\n // int 64\n object = this.readI64();\n } else if (headByte === 0xd9) {\n // str 8\n const byteLength = this.lookU8();\n object = this.decodeUtf8String(byteLength, 1);\n } else if (headByte === 0xda) {\n // str 16\n const byteLength = this.lookU16();\n object = this.decodeUtf8String(byteLength, 2);\n } else if (headByte === 0xdb) {\n // str 32\n const byteLength = this.lookU32();\n object = this.decodeUtf8String(byteLength, 4);\n } else if (headByte === 0xdc) {\n // array 16\n const size = this.readU16();\n if (size !== 0) {\n this.pushArrayState(size);\n this.complete();\n continue DECODE;\n } else {\n object = [];\n }\n } else if (headByte === 0xdd) {\n // array 32\n const size = this.readU32();\n if (size !== 0) {\n this.pushArrayState(size);\n this.complete();\n continue DECODE;\n } else {\n object = [];\n }\n } else if (headByte === 0xde) {\n // map 16\n const size = this.readU16();\n if (size !== 0) {\n this.pushMapState(size);\n this.complete();\n continue DECODE;\n } else {\n object = {};\n }\n } else if (headByte === 0xdf) {\n // map 32\n const size = this.readU32();\n if (size !== 0) {\n this.pushMapState(size);\n this.complete();\n continue DECODE;\n } else {\n object = {};\n }\n } else if (headByte === 0xc4) {\n // bin 8\n const size = this.lookU8();\n object = this.decodeBinary(size, 1);\n } else if (headByte === 0xc5) {\n // bin 16\n const size = this.lookU16();\n object = this.decodeBinary(size, 2);\n } else if (headByte === 0xc6) {\n // bin 32\n const size = this.lookU32();\n object = this.decodeBinary(size, 4);\n } else if (headByte === 0xd4) {\n // fixext 1\n object = this.decodeExtension(1, 0);\n } else if (headByte === 0xd5) {\n // fixext 2\n object = this.decodeExtension(2, 0);\n } else if (headByte === 0xd6) {\n // fixext 4\n object = this.decodeExtension(4, 0);\n } else if (headByte === 0xd7) {\n // fixext 8\n object = this.decodeExtension(8, 0);\n } else if (headByte === 0xd8) {\n // fixext 16\n object = this.decodeExtension(16, 0);\n } else if (headByte === 0xc7) {\n // ext 8\n const size = this.lookU8();\n object = this.decodeExtension(size, 1);\n } else if (headByte === 0xc8) {\n // ext 16\n const size = this.lookU16();\n object = this.decodeExtension(size, 2);\n } else if (headByte === 0xc9) {\n // ext 32\n const size = this.lookU32();\n object = this.decodeExtension(size, 4);\n } else {\n throw new DecodeError(`Unrecognized type byte: ${prettyByte(headByte)}`);\n }\n\n this.complete();\n\n const stack = this.stack;\n while (stack.length > 0) {\n // arrays and maps\n const state = stack[stack.length - 1]!;\n if (state.type === State.ARRAY) {\n state.array[state.position] = object;\n state.position++;\n if (state.position === state.size) {\n stack.pop();\n object = state.array;\n } else {\n continue DECODE;\n }\n } else if (state.type === State.MAP_KEY) {\n if (!isValidMapKeyType(object)) {\n throw new DecodeError(\"The type of key must be string or number but \" + typeof object);\n }\n if (object === \"__proto__\") {\n throw new DecodeError(\"The key __proto__ is not allowed\");\n }\n\n state.key = object;\n state.type = State.MAP_VALUE;\n continue DECODE;\n } else {\n // it must be `state.type === State.MAP_VALUE` here\n\n state.map[state.key!] = object;\n state.readCount++;\n\n if (state.readCount === state.size) {\n stack.pop();\n object = state.map;\n } else {\n state.key = null;\n state.type = State.MAP_KEY;\n continue DECODE;\n }\n }\n }\n\n return object;\n }\n }\n\n private readHeadByte(): number {\n if (this.headByte === HEAD_BYTE_REQUIRED) {\n this.headByte = this.readU8();\n // console.log(\"headByte\", prettyByte(this.headByte));\n }\n\n return this.headByte;\n }\n\n private complete(): void {\n this.headByte = HEAD_BYTE_REQUIRED;\n }\n\n private readArraySize(): number {\n const headByte = this.readHeadByte();\n\n switch (headByte) {\n case 0xdc:\n return this.readU16();\n case 0xdd:\n return this.readU32();\n default: {\n if (headByte < 0xa0) {\n return headByte - 0x90;\n } else {\n throw new DecodeError(`Unrecognized array type byte: ${prettyByte(headByte)}`);\n }\n }\n }\n }\n\n private pushMapState(size: number) {\n if (size > this.maxMapLength) {\n throw new DecodeError(`Max length exceeded: map length (${size}) > maxMapLengthLength (${this.maxMapLength})`);\n }\n\n this.stack.push({\n type: State.MAP_KEY,\n size,\n key: null,\n readCount: 0,\n map: {},\n });\n }\n\n private pushArrayState(size: number) {\n if (size > this.maxArrayLength) {\n throw new DecodeError(`Max length exceeded: array length (${size}) > maxArrayLength (${this.maxArrayLength})`);\n }\n\n this.stack.push({\n type: State.ARRAY,\n size,\n array: new Array(size),\n position: 0,\n });\n }\n\n private decodeUtf8String(byteLength: number, headerOffset: number): string {\n if (byteLength > this.maxStrLength) {\n throw new DecodeError(\n `Max length exceeded: UTF-8 byte length (${byteLength}) > maxStrLength (${this.maxStrLength})`,\n );\n }\n\n if (this.bytes.byteLength < this.pos + headerOffset + byteLength) {\n throw MORE_DATA;\n }\n\n const offset = this.pos + headerOffset;\n let object: string;\n if (this.stateIsMapKey() && this.keyDecoder?.canBeCached(byteLength)) {\n object = this.keyDecoder.decode(this.bytes, offset, byteLength);\n } else if (byteLength > TEXT_DECODER_THRESHOLD) {\n object = utf8DecodeTD(this.bytes, offset, byteLength);\n } else {\n object = utf8DecodeJs(this.bytes, offset, byteLength);\n }\n this.pos += headerOffset + byteLength;\n return object;\n }\n\n private stateIsMapKey(): boolean {\n if (this.stack.length > 0) {\n const state = this.stack[this.stack.length - 1]!;\n return state.type === State.MAP_KEY;\n }\n return false;\n }\n\n private decodeBinary(byteLength: number, headOffset: number): Uint8Array {\n if (byteLength > this.maxBinLength) {\n throw new DecodeError(`Max length exceeded: bin length (${byteLength}) > maxBinLength (${this.maxBinLength})`);\n }\n\n if (!this.hasRemaining(byteLength + headOffset)) {\n throw MORE_DATA;\n }\n\n const offset = this.pos + headOffset;\n const object = this.bytes.subarray(offset, offset + byteLength);\n this.pos += headOffset + byteLength;\n return object;\n }\n\n private decodeExtension(size: number, headOffset: number): unknown {\n if (size > this.maxExtLength) {\n throw new DecodeError(`Max length exceeded: ext length (${size}) > maxExtLength (${this.maxExtLength})`);\n }\n\n const extType = this.view.getInt8(this.pos + headOffset);\n const data = this.decodeBinary(size, headOffset + 1 /* extType */);\n return this.extensionCodec.decode(data, extType, this.context);\n }\n\n private lookU8() {\n return this.view.getUint8(this.pos);\n }\n\n private lookU16() {\n return this.view.getUint16(this.pos);\n }\n\n private lookU32() {\n return this.view.getUint32(this.pos);\n }\n\n private readU8(): number {\n const value = this.view.getUint8(this.pos);\n this.pos++;\n return value;\n }\n\n private readI8(): number {\n const value = this.view.getInt8(this.pos);\n this.pos++;\n return value;\n }\n\n private readU16(): number {\n const value = this.view.getUint16(this.pos);\n this.pos += 2;\n return value;\n }\n\n private readI16(): number {\n const value = this.view.getInt16(this.pos);\n this.pos += 2;\n return value;\n }\n\n private readU32(): number {\n const value = this.view.getUint32(this.pos);\n this.pos += 4;\n return value;\n }\n\n private readI32(): number {\n const value = this.view.getInt32(this.pos);\n this.pos += 4;\n return value;\n }\n\n private readU64(): number {\n const value = getUint64(this.view, this.pos);\n this.pos += 8;\n return value;\n }\n\n private readI64(): number {\n const value = getInt64(this.view, this.pos);\n this.pos += 8;\n return value;\n }\n\n private readF32() {\n const value = this.view.getFloat32(this.pos);\n this.pos += 4;\n return value;\n }\n\n private readF64() {\n const value = this.view.getFloat64(this.pos);\n this.pos += 8;\n return value;\n }\n}\n","import { Decoder } from \"./Decoder\";\nimport type { ExtensionCodecType } from \"./ExtensionCodec\";\nimport type { ContextOf, SplitUndefined } from \"./context\";\n\nexport type DecodeOptions = Readonly<\n Partial<{\n extensionCodec: ExtensionCodecType;\n\n /**\n * Maximum string length.\n *\n * Defaults to 4_294_967_295 (UINT32_MAX).\n */\n maxStrLength: number;\n /**\n * Maximum binary length.\n *\n * Defaults to 4_294_967_295 (UINT32_MAX).\n */\n maxBinLength: number;\n /**\n * Maximum array length.\n *\n * Defaults to 4_294_967_295 (UINT32_MAX).\n */\n maxArrayLength: number;\n /**\n * Maximum map length.\n *\n * Defaults to 4_294_967_295 (UINT32_MAX).\n */\n maxMapLength: number;\n /**\n * Maximum extension length.\n *\n * Defaults to 4_294_967_295 (UINT32_MAX).\n */\n maxExtLength: number;\n }>\n> &\n ContextOf;\n\nexport const defaultDecodeOptions: DecodeOptions = {};\n\n/**\n * It decodes a single MessagePack object in a buffer.\n *\n * This is a synchronous decoding function.\n * See other variants for asynchronous decoding: {@link decodeAsync()}, {@link decodeStream()}, or {@link decodeArrayStream()}.\n *\n * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty.\n * @throws {@link DecodeError} if the buffer contains invalid data.\n */\nexport function decode(\n buffer: ArrayLike | BufferSource,\n options: DecodeOptions> = defaultDecodeOptions as any,\n): unknown {\n const decoder = new Decoder(\n options.extensionCodec,\n (options as typeof options & { context: any }).context,\n options.maxStrLength,\n options.maxBinLength,\n options.maxArrayLength,\n options.maxMapLength,\n options.maxExtLength,\n );\n return decoder.decode(buffer);\n}\n\n/**\n * It decodes multiple MessagePack objects in a buffer.\n * This is corresponding to {@link decodeMultiStream()}.\n *\n * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty.\n * @throws {@link DecodeError} if the buffer contains invalid data.\n */\nexport function decodeMulti(\n buffer: ArrayLike | BufferSource,\n options: DecodeOptions> = defaultDecodeOptions as any,\n): Generator {\n const decoder = new Decoder(\n options.extensionCodec,\n (options as typeof options & { context: any }).context,\n options.maxStrLength,\n options.maxBinLength,\n options.maxArrayLength,\n options.maxMapLength,\n options.maxExtLength,\n );\n return decoder.decodeMulti(buffer);\n}\n","// utility for whatwg streams\n\n// The living standard of whatwg streams says\n// ReadableStream is also AsyncIterable, but\n// as of June 2019, no browser implements it.\n// See https://streams.spec.whatwg.org/ for details\nexport type ReadableStreamLike = AsyncIterable | ReadableStream;\n\nexport function isAsyncIterable(object: ReadableStreamLike): object is AsyncIterable {\n return (object as any)[Symbol.asyncIterator] != null;\n}\n\nfunction assertNonNull(value: T | null | undefined): asserts value is T {\n if (value == null) {\n throw new Error(\"Assertion Failure: value must not be null nor undefined\");\n }\n}\n\nexport async function* asyncIterableFromStream(stream: ReadableStream): AsyncIterable {\n const reader = stream.getReader();\n\n try {\n while (true) {\n const { done, value } = await reader.read();\n if (done) {\n return;\n }\n assertNonNull(value);\n yield value;\n }\n } finally {\n reader.releaseLock();\n }\n}\n\nexport function ensureAsyncIterable(streamLike: ReadableStreamLike): AsyncIterable {\n if (isAsyncIterable(streamLike)) {\n return streamLike;\n } else {\n return asyncIterableFromStream(streamLike);\n }\n}\n","import { Decoder } from \"./Decoder\";\nimport { ensureAsyncIterable } from \"./utils/stream\";\nimport { defaultDecodeOptions } from \"./decode\";\nimport type { ReadableStreamLike } from \"./utils/stream\";\nimport type { DecodeOptions } from \"./decode\";\nimport type { SplitUndefined } from \"./context\";\n\n/**\n * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty.\n * @throws {@link DecodeError} if the buffer contains invalid data.\n */\n export async function decodeAsync(\n streamLike: ReadableStreamLike | BufferSource>,\n options: DecodeOptions> = defaultDecodeOptions as any,\n): Promise {\n const stream = ensureAsyncIterable(streamLike);\n\n const decoder = new Decoder(\n options.extensionCodec,\n (options as typeof options & { context: any }).context,\n options.maxStrLength,\n options.maxBinLength,\n options.maxArrayLength,\n options.maxMapLength,\n options.maxExtLength,\n );\n return decoder.decodeAsync(stream);\n}\n\n/**\n * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty.\n * @throws {@link DecodeError} if the buffer contains invalid data.\n */\n export function decodeArrayStream(\n streamLike: ReadableStreamLike | BufferSource>,\n options: DecodeOptions> = defaultDecodeOptions as any,\n): AsyncGenerator {\n const stream = ensureAsyncIterable(streamLike);\n\n const decoder = new Decoder(\n options.extensionCodec,\n (options as typeof options & { context: any }).context,\n options.maxStrLength,\n options.maxBinLength,\n options.maxArrayLength,\n options.maxMapLength,\n options.maxExtLength,\n );\n\n return decoder.decodeArrayStream(stream);\n}\n\n/**\n * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty.\n * @throws {@link DecodeError} if the buffer contains invalid data.\n */\nexport function decodeMultiStream(\n streamLike: ReadableStreamLike | BufferSource>,\n options: DecodeOptions> = defaultDecodeOptions as any,\n): AsyncGenerator {\n const stream = ensureAsyncIterable(streamLike);\n\n const decoder = new Decoder(\n options.extensionCodec,\n (options as typeof options & { context: any }).context,\n options.maxStrLength,\n options.maxBinLength,\n options.maxArrayLength,\n options.maxMapLength,\n options.maxExtLength,\n );\n\n return decoder.decodeStream(stream);\n}\n\n/**\n * @deprecated Use {@link decodeMultiStream()} instead.\n */\nexport function decodeStream(\n streamLike: ReadableStreamLike | BufferSource>,\n options: DecodeOptions> = defaultDecodeOptions as any,\n): AsyncGenerator {\n return decodeMultiStream(streamLike, options);\n}\n"],"names":["root","factory","exports","module","define","amd","this","__webpack_require__","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","UINT32_MAX","setInt64","view","offset","high","Math","floor","low","setUint32","getInt64","getInt32","getUint32","TEXT_ENCODING_AVAILABLE","process","env","TextEncoder","TextDecoder","utf8Count","str","strLength","length","byteLength","pos","charCodeAt","extra","sharedTextEncoder","undefined","TEXT_ENCODER_THRESHOLD","utf8EncodeTE","encodeInto","output","outputOffset","subarray","set","encode","utf8DecodeJs","bytes","inputOffset","end","units","result","byte1","push","byte2","byte3","unit","String","fromCharCode","sharedTextDecoder","TEXT_DECODER_THRESHOLD","type","data","message","proto","create","DecodeError","setPrototypeOf","configurable","name","Error","EXT_TIMESTAMP","encodeTimeSpecToTimestamp","sec","nsec","rv","Uint8Array","DataView","buffer","secHigh","secLow","encodeDateToTimeSpec","date","msec","getTime","nsecInSec","encodeTimestampExtension","object","Date","decodeTimestampToTimeSpec","byteOffset","nsec30AndSecHigh2","decodeTimestampExtension","timeSpec","timestampExtension","decode","builtInEncoders","builtInDecoders","encoders","decoders","register","index","tryToEncode","context","i","encodeExt","ExtData","decodeExt","defaultCodec","ExtensionCodec","ensureUint8Array","ArrayBuffer","isView","from","extensionCodec","maxDepth","initialBufferSize","sortKeys","forceFloat32","ignoreUndefined","forceIntegerToFloat","reinitializeState","encodeSharedRef","doEncode","slice","depth","encodeNil","encodeBoolean","encodeNumber","encodeString","encodeObject","ensureBufferSizeToWrite","sizeToWrite","requiredSize","resizeBuffer","newSize","newBuffer","newBytes","newView","writeU8","Number","isSafeInteger","writeU16","writeU32","writeU64","writeI8","writeI16","writeI32","writeI64","writeF32","writeF64","writeStringHeader","utf8EncodeJs","ext","encodeExtension","Array","isArray","encodeArray","encodeBinary","toString","apply","encodeMap","size","writeU8a","item","countWithoutUndefined","keys","count","sort","setUint8","values","setInt8","setUint16","setInt16","setInt32","setFloat32","setFloat64","setUint64","defaultEncodeOptions","options","Encoder","prettyByte","byte","abs","padStart","maxKeyLength","maxLengthPerKey","hit","miss","caches","canBeCached","find","records","FIND_CHUNK","record","recordBytes","j","store","random","cachedValue","slicedCopyOfBytes","EMPTY_VIEW","EMPTY_BYTES","DataViewIndexOutOfBoundsError","getInt8","e","constructor","MORE_DATA","sharedCachedKeyDecoder","CachedKeyDecoder","maxStrLength","maxBinLength","maxArrayLength","maxMapLength","maxExtLength","keyDecoder","totalPos","headByte","stack","setBuffer","bufferView","createDataView","appendBuffer","hasRemaining","remainingData","newData","createExtraByteError","posToShow","RangeError","doDecodeSync","decodeMulti","decodeAsync","stream","decoded","decodeArrayStream","decodeMultiAsync","decodeStream","isArrayHeaderRequired","arrayItemsLeft","readArraySize","complete","DECODE","readHeadByte","pushMapState","pushArrayState","decodeUtf8String","readF32","readF64","readU8","readU16","readU32","readU64","readI8","readI16","readI32","readI64","lookU8","lookU16","lookU32","decodeBinary","decodeExtension","state","array","position","pop","keyType","map","readCount","headerOffset","stateIsMapKey","stringBytes","utf8DecodeTD","headOffset","extType","getUint8","getUint16","getInt16","getFloat32","getFloat64","defaultDecodeOptions","Decoder","assertNonNull","ensureAsyncIterable","streamLike","asyncIterator","reader","getReader","read","done","releaseLock","asyncIterableFromStream","decodeMultiStream"],"sourceRoot":""} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/mod.ts b/build_vtk_bundle/node_modules/@msgpack/msgpack/mod.ts deleted file mode 100644 index 47fe56b2..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/mod.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./dist.es5+esm/index.mjs"; diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/package.json b/build_vtk_bundle/node_modules/@msgpack/msgpack/package.json deleted file mode 100644 index ec6eaa9f..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/package.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "name": "@msgpack/msgpack", - "version": "2.8.0", - "description": "MessagePack for ECMA-262/JavaScript/TypeScript", - "author": "The MessagePack community", - "license": "ISC", - "main": "./dist/index.js", - "module": "./dist.es5+esm/index.mjs", - "cdn": "./dist.es5+umd/msgpack.min.js", - "unpkg": "./dist.es5+umd/msgpack.min.js", - "types": "./dist/index.d.ts", - "sideEffects": false, - "scripts": { - "build": "npm publish --dry-run", - "prepare": "npm run clean && webpack --bail && tsc --build tsconfig.dist.json tsconfig.dist.es5+esm.json && ts-node tools/esmify.ts dist.es5+esm/*.js dist.es5+esm/*/*.js", - "prepublishOnly": "run-p 'test:dist:*' && npm run test:browser", - "clean": "rimraf build dist dist.*", - "test": "mocha 'test/**/*.test.ts'", - "test:purejs": "TEXT_ENCODING=never mocha 'test/**/*.test.ts'", - "test:te": "TEXT_ENCODING=force mocha 'test/**/*.test.ts'", - "test:dist:purejs": "TS_NODE_PROJECT=tsconfig.test-dist-es5-purejs.json npm run test:purejs -- --reporter=dot", - "test:cover": "npm run cover:clean && npm-run-all 'test:cover:*' && npm run cover:report", - "test:cover:purejs": "npx nyc --no-clean npm run test:purejs", - "test:cover:te": "npx nyc --no-clean npm run test:te", - "test:deno": "deno test test/deno_test.ts", - "test:fuzz": "npm exec --yes -- jsfuzz@git+https://gitlab.com/gitlab-org/security-products/analyzers/fuzzers/jsfuzz.git --fuzzTime 60 --no-versifier test/decode.jsfuzz.js corpus", - "cover:clean": "rimraf .nyc_output coverage/", - "cover:report": "npx nyc report --reporter=text-summary --reporter=html --reporter=json", - "test:browser": "karma start --single-run", - "test:browser:firefox": "karma start --single-run --browsers FirefoxHeadless", - "test:browser:chrome": "karma start --single-run --browsers ChromeHeadless", - "test:watch:browser": "karma start --browsers ChromeHeadless,FirefoxHeadless", - "test:watch:nodejs": "mocha -w 'test/**/*.test.ts'", - "lint": "eslint --ext .ts src test", - "lint:fix": "prettier --loglevel=warn --write 'src/**/*.ts' 'test/**/*.ts' && eslint --fix --ext .ts src test", - "lint:print-config": "eslint --print-config .eslintrc.js", - "update-dependencies": "npx rimraf node_modules/ package-lock.json ; npm install ; npm audit fix --force ; git restore package.json ; npm install" - }, - "homepage": "https://msgpack.org/", - "repository": { - "type": "git", - "url": "https://github.com/msgpack/msgpack-javascript.git" - }, - "bugs": { - "url": "https://github.com/msgpack/msgpack-javascript/issues" - }, - "keywords": [ - "msgpack", - "MessagePack", - "serialization", - "universal" - ], - "engines": { - "node": ">= 10" - }, - "devDependencies": { - "@bitjourney/check-es-version-webpack-plugin": "latest", - "@types/lodash": "latest", - "@types/mocha": "latest", - "@types/node": "latest", - "@typescript-eslint/eslint-plugin": "latest", - "@typescript-eslint/parser": "latest", - "assert": "latest", - "blob-polyfill": "latest", - "buffer": "latest", - "core-js": "latest", - "eslint": "latest", - "eslint-config-prettier": "latest", - "eslint-plugin-import": "latest", - "eslint-plugin-tsdoc": "latest", - "ieee754": "latest", - "karma": "latest", - "karma-chrome-launcher": "latest", - "karma-cli": "latest", - "karma-firefox-launcher": "latest", - "karma-mocha": "latest", - "karma-sourcemap-loader": "latest", - "karma-webpack": "latest", - "lodash": "latest", - "mocha": "latest", - "msgpack-test-js": "latest", - "npm-run-all": "latest", - "prettier": "latest", - "rimraf": "latest", - "ts-loader": "latest", - "ts-node": "latest", - "tsconfig-paths": "latest", - "typescript": "latest", - "web-streams-polyfill": "latest", - "webpack": "latest", - "webpack-cli": "latest" - }, - "files": [ - "mod.ts", - "src/**/*.*", - "dist/**/*.*", - "dist.es5+umd/**/*.*", - "dist.es5+esm/**/*.*" - ] -} diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/CachedKeyDecoder.ts b/build_vtk_bundle/node_modules/@msgpack/msgpack/src/CachedKeyDecoder.ts deleted file mode 100644 index cd21b2d2..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/CachedKeyDecoder.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { utf8DecodeJs } from "./utils/utf8"; - -const DEFAULT_MAX_KEY_LENGTH = 16; -const DEFAULT_MAX_LENGTH_PER_KEY = 16; - -export interface KeyDecoder { - canBeCached(byteLength: number): boolean; - decode(bytes: Uint8Array, inputOffset: number, byteLength: number): string; -} -interface KeyCacheRecord { - readonly bytes: Uint8Array; - readonly str: string; -} - -export class CachedKeyDecoder implements KeyDecoder { - hit = 0; - miss = 0; - private readonly caches: Array>; - - constructor(readonly maxKeyLength = DEFAULT_MAX_KEY_LENGTH, readonly maxLengthPerKey = DEFAULT_MAX_LENGTH_PER_KEY) { - // avoid `new Array(N)`, which makes a sparse array, - // because a sparse array is typically slower than a non-sparse array. - this.caches = []; - for (let i = 0; i < this.maxKeyLength; i++) { - this.caches.push([]); - } - } - - public canBeCached(byteLength: number): boolean { - return byteLength > 0 && byteLength <= this.maxKeyLength; - } - - private find(bytes: Uint8Array, inputOffset: number, byteLength: number): string | null { - const records = this.caches[byteLength - 1]!; - - FIND_CHUNK: for (const record of records) { - const recordBytes = record.bytes; - - for (let j = 0; j < byteLength; j++) { - if (recordBytes[j] !== bytes[inputOffset + j]) { - continue FIND_CHUNK; - } - } - return record.str; - } - return null; - } - - private store(bytes: Uint8Array, value: string) { - const records = this.caches[bytes.length - 1]!; - const record: KeyCacheRecord = { bytes, str: value }; - - if (records.length >= this.maxLengthPerKey) { - // `records` are full! - // Set `record` to an arbitrary position. - records[(Math.random() * records.length) | 0] = record; - } else { - records.push(record); - } - } - - public decode(bytes: Uint8Array, inputOffset: number, byteLength: number): string { - const cachedValue = this.find(bytes, inputOffset, byteLength); - if (cachedValue != null) { - this.hit++; - return cachedValue; - } - this.miss++; - - const str = utf8DecodeJs(bytes, inputOffset, byteLength); - // Ensure to copy a slice of bytes because the byte may be NodeJS Buffer and Buffer#slice() returns a reference to its internal ArrayBuffer. - const slicedCopyOfBytes = Uint8Array.prototype.slice.call(bytes, inputOffset, inputOffset + byteLength); - this.store(slicedCopyOfBytes, str); - return str; - } -} diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/DecodeError.ts b/build_vtk_bundle/node_modules/@msgpack/msgpack/src/DecodeError.ts deleted file mode 100644 index 203fe1b0..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/DecodeError.ts +++ /dev/null @@ -1,15 +0,0 @@ -export class DecodeError extends Error { - constructor(message: string) { - super(message); - - // fix the prototype chain in a cross-platform way - const proto: typeof DecodeError.prototype = Object.create(DecodeError.prototype); - Object.setPrototypeOf(this, proto); - - Object.defineProperty(this, "name", { - configurable: true, - enumerable: false, - value: DecodeError.name, - }); - } -} diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/Decoder.ts b/build_vtk_bundle/node_modules/@msgpack/msgpack/src/Decoder.ts deleted file mode 100644 index eb6fa157..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/Decoder.ts +++ /dev/null @@ -1,627 +0,0 @@ -import { prettyByte } from "./utils/prettyByte"; -import { ExtensionCodec, ExtensionCodecType } from "./ExtensionCodec"; -import { getInt64, getUint64, UINT32_MAX } from "./utils/int"; -import { utf8DecodeJs, TEXT_DECODER_THRESHOLD, utf8DecodeTD } from "./utils/utf8"; -import { createDataView, ensureUint8Array } from "./utils/typedArrays"; -import { CachedKeyDecoder, KeyDecoder } from "./CachedKeyDecoder"; -import { DecodeError } from "./DecodeError"; - -const enum State { - ARRAY, - MAP_KEY, - MAP_VALUE, -} - -type MapKeyType = string | number; - -const isValidMapKeyType = (key: unknown): key is MapKeyType => { - const keyType = typeof key; - - return keyType === "string" || keyType === "number"; -}; - -type StackMapState = { - type: State.MAP_KEY | State.MAP_VALUE; - size: number; - key: MapKeyType | null; - readCount: number; - map: Record; -}; - -type StackArrayState = { - type: State.ARRAY; - size: number; - array: Array; - position: number; -}; - -type StackState = StackArrayState | StackMapState; - -const HEAD_BYTE_REQUIRED = -1; - -const EMPTY_VIEW = new DataView(new ArrayBuffer(0)); -const EMPTY_BYTES = new Uint8Array(EMPTY_VIEW.buffer); - -// IE11: Hack to support IE11. -// IE11: Drop this hack and just use RangeError when IE11 is obsolete. -export const DataViewIndexOutOfBoundsError: typeof Error = (() => { - try { - // IE11: The spec says it should throw RangeError, - // IE11: but in IE11 it throws TypeError. - EMPTY_VIEW.getInt8(0); - } catch (e: any) { - return e.constructor; - } - throw new Error("never reached"); -})(); - -const MORE_DATA = new DataViewIndexOutOfBoundsError("Insufficient data"); - -const sharedCachedKeyDecoder = new CachedKeyDecoder(); - -export class Decoder { - private totalPos = 0; - private pos = 0; - - private view = EMPTY_VIEW; - private bytes = EMPTY_BYTES; - private headByte = HEAD_BYTE_REQUIRED; - private readonly stack: Array = []; - - public constructor( - private readonly extensionCodec: ExtensionCodecType = ExtensionCodec.defaultCodec as any, - private readonly context: ContextType = undefined as any, - private readonly maxStrLength = UINT32_MAX, - private readonly maxBinLength = UINT32_MAX, - private readonly maxArrayLength = UINT32_MAX, - private readonly maxMapLength = UINT32_MAX, - private readonly maxExtLength = UINT32_MAX, - private readonly keyDecoder: KeyDecoder | null = sharedCachedKeyDecoder, - ) {} - - private reinitializeState() { - this.totalPos = 0; - this.headByte = HEAD_BYTE_REQUIRED; - this.stack.length = 0; - - // view, bytes, and pos will be re-initialized in setBuffer() - } - - private setBuffer(buffer: ArrayLike | BufferSource): void { - this.bytes = ensureUint8Array(buffer); - this.view = createDataView(this.bytes); - this.pos = 0; - } - - private appendBuffer(buffer: ArrayLike | BufferSource) { - if (this.headByte === HEAD_BYTE_REQUIRED && !this.hasRemaining(1)) { - this.setBuffer(buffer); - } else { - const remainingData = this.bytes.subarray(this.pos); - const newData = ensureUint8Array(buffer); - - // concat remainingData + newData - const newBuffer = new Uint8Array(remainingData.length + newData.length); - newBuffer.set(remainingData); - newBuffer.set(newData, remainingData.length); - this.setBuffer(newBuffer); - } - } - - private hasRemaining(size: number) { - return this.view.byteLength - this.pos >= size; - } - - private createExtraByteError(posToShow: number): Error { - const { view, pos } = this; - return new RangeError(`Extra ${view.byteLength - pos} of ${view.byteLength} byte(s) found at buffer[${posToShow}]`); - } - - /** - * @throws {@link DecodeError} - * @throws {@link RangeError} - */ - public decode(buffer: ArrayLike | BufferSource): unknown { - this.reinitializeState(); - this.setBuffer(buffer); - - const object = this.doDecodeSync(); - if (this.hasRemaining(1)) { - throw this.createExtraByteError(this.pos); - } - return object; - } - - public *decodeMulti(buffer: ArrayLike | BufferSource): Generator { - this.reinitializeState(); - this.setBuffer(buffer); - - while (this.hasRemaining(1)) { - yield this.doDecodeSync(); - } - } - - public async decodeAsync(stream: AsyncIterable | BufferSource>): Promise { - let decoded = false; - let object: unknown; - for await (const buffer of stream) { - if (decoded) { - throw this.createExtraByteError(this.totalPos); - } - - this.appendBuffer(buffer); - - try { - object = this.doDecodeSync(); - decoded = true; - } catch (e) { - if (!(e instanceof DataViewIndexOutOfBoundsError)) { - throw e; // rethrow - } - // fallthrough - } - this.totalPos += this.pos; - } - - if (decoded) { - if (this.hasRemaining(1)) { - throw this.createExtraByteError(this.totalPos); - } - return object; - } - - const { headByte, pos, totalPos } = this; - throw new RangeError( - `Insufficient data in parsing ${prettyByte(headByte)} at ${totalPos} (${pos} in the current buffer)`, - ); - } - - public decodeArrayStream( - stream: AsyncIterable | BufferSource>, - ): AsyncGenerator { - return this.decodeMultiAsync(stream, true); - } - - public decodeStream(stream: AsyncIterable | BufferSource>): AsyncGenerator { - return this.decodeMultiAsync(stream, false); - } - - private async *decodeMultiAsync(stream: AsyncIterable | BufferSource>, isArray: boolean) { - let isArrayHeaderRequired = isArray; - let arrayItemsLeft = -1; - - for await (const buffer of stream) { - if (isArray && arrayItemsLeft === 0) { - throw this.createExtraByteError(this.totalPos); - } - - this.appendBuffer(buffer); - - if (isArrayHeaderRequired) { - arrayItemsLeft = this.readArraySize(); - isArrayHeaderRequired = false; - this.complete(); - } - - try { - while (true) { - yield this.doDecodeSync(); - if (--arrayItemsLeft === 0) { - break; - } - } - } catch (e) { - if (!(e instanceof DataViewIndexOutOfBoundsError)) { - throw e; // rethrow - } - // fallthrough - } - this.totalPos += this.pos; - } - } - - private doDecodeSync(): unknown { - DECODE: while (true) { - const headByte = this.readHeadByte(); - let object: unknown; - - if (headByte >= 0xe0) { - // negative fixint (111x xxxx) 0xe0 - 0xff - object = headByte - 0x100; - } else if (headByte < 0xc0) { - if (headByte < 0x80) { - // positive fixint (0xxx xxxx) 0x00 - 0x7f - object = headByte; - } else if (headByte < 0x90) { - // fixmap (1000 xxxx) 0x80 - 0x8f - const size = headByte - 0x80; - if (size !== 0) { - this.pushMapState(size); - this.complete(); - continue DECODE; - } else { - object = {}; - } - } else if (headByte < 0xa0) { - // fixarray (1001 xxxx) 0x90 - 0x9f - const size = headByte - 0x90; - if (size !== 0) { - this.pushArrayState(size); - this.complete(); - continue DECODE; - } else { - object = []; - } - } else { - // fixstr (101x xxxx) 0xa0 - 0xbf - const byteLength = headByte - 0xa0; - object = this.decodeUtf8String(byteLength, 0); - } - } else if (headByte === 0xc0) { - // nil - object = null; - } else if (headByte === 0xc2) { - // false - object = false; - } else if (headByte === 0xc3) { - // true - object = true; - } else if (headByte === 0xca) { - // float 32 - object = this.readF32(); - } else if (headByte === 0xcb) { - // float 64 - object = this.readF64(); - } else if (headByte === 0xcc) { - // uint 8 - object = this.readU8(); - } else if (headByte === 0xcd) { - // uint 16 - object = this.readU16(); - } else if (headByte === 0xce) { - // uint 32 - object = this.readU32(); - } else if (headByte === 0xcf) { - // uint 64 - object = this.readU64(); - } else if (headByte === 0xd0) { - // int 8 - object = this.readI8(); - } else if (headByte === 0xd1) { - // int 16 - object = this.readI16(); - } else if (headByte === 0xd2) { - // int 32 - object = this.readI32(); - } else if (headByte === 0xd3) { - // int 64 - object = this.readI64(); - } else if (headByte === 0xd9) { - // str 8 - const byteLength = this.lookU8(); - object = this.decodeUtf8String(byteLength, 1); - } else if (headByte === 0xda) { - // str 16 - const byteLength = this.lookU16(); - object = this.decodeUtf8String(byteLength, 2); - } else if (headByte === 0xdb) { - // str 32 - const byteLength = this.lookU32(); - object = this.decodeUtf8String(byteLength, 4); - } else if (headByte === 0xdc) { - // array 16 - const size = this.readU16(); - if (size !== 0) { - this.pushArrayState(size); - this.complete(); - continue DECODE; - } else { - object = []; - } - } else if (headByte === 0xdd) { - // array 32 - const size = this.readU32(); - if (size !== 0) { - this.pushArrayState(size); - this.complete(); - continue DECODE; - } else { - object = []; - } - } else if (headByte === 0xde) { - // map 16 - const size = this.readU16(); - if (size !== 0) { - this.pushMapState(size); - this.complete(); - continue DECODE; - } else { - object = {}; - } - } else if (headByte === 0xdf) { - // map 32 - const size = this.readU32(); - if (size !== 0) { - this.pushMapState(size); - this.complete(); - continue DECODE; - } else { - object = {}; - } - } else if (headByte === 0xc4) { - // bin 8 - const size = this.lookU8(); - object = this.decodeBinary(size, 1); - } else if (headByte === 0xc5) { - // bin 16 - const size = this.lookU16(); - object = this.decodeBinary(size, 2); - } else if (headByte === 0xc6) { - // bin 32 - const size = this.lookU32(); - object = this.decodeBinary(size, 4); - } else if (headByte === 0xd4) { - // fixext 1 - object = this.decodeExtension(1, 0); - } else if (headByte === 0xd5) { - // fixext 2 - object = this.decodeExtension(2, 0); - } else if (headByte === 0xd6) { - // fixext 4 - object = this.decodeExtension(4, 0); - } else if (headByte === 0xd7) { - // fixext 8 - object = this.decodeExtension(8, 0); - } else if (headByte === 0xd8) { - // fixext 16 - object = this.decodeExtension(16, 0); - } else if (headByte === 0xc7) { - // ext 8 - const size = this.lookU8(); - object = this.decodeExtension(size, 1); - } else if (headByte === 0xc8) { - // ext 16 - const size = this.lookU16(); - object = this.decodeExtension(size, 2); - } else if (headByte === 0xc9) { - // ext 32 - const size = this.lookU32(); - object = this.decodeExtension(size, 4); - } else { - throw new DecodeError(`Unrecognized type byte: ${prettyByte(headByte)}`); - } - - this.complete(); - - const stack = this.stack; - while (stack.length > 0) { - // arrays and maps - const state = stack[stack.length - 1]!; - if (state.type === State.ARRAY) { - state.array[state.position] = object; - state.position++; - if (state.position === state.size) { - stack.pop(); - object = state.array; - } else { - continue DECODE; - } - } else if (state.type === State.MAP_KEY) { - if (!isValidMapKeyType(object)) { - throw new DecodeError("The type of key must be string or number but " + typeof object); - } - if (object === "__proto__") { - throw new DecodeError("The key __proto__ is not allowed"); - } - - state.key = object; - state.type = State.MAP_VALUE; - continue DECODE; - } else { - // it must be `state.type === State.MAP_VALUE` here - - state.map[state.key!] = object; - state.readCount++; - - if (state.readCount === state.size) { - stack.pop(); - object = state.map; - } else { - state.key = null; - state.type = State.MAP_KEY; - continue DECODE; - } - } - } - - return object; - } - } - - private readHeadByte(): number { - if (this.headByte === HEAD_BYTE_REQUIRED) { - this.headByte = this.readU8(); - // console.log("headByte", prettyByte(this.headByte)); - } - - return this.headByte; - } - - private complete(): void { - this.headByte = HEAD_BYTE_REQUIRED; - } - - private readArraySize(): number { - const headByte = this.readHeadByte(); - - switch (headByte) { - case 0xdc: - return this.readU16(); - case 0xdd: - return this.readU32(); - default: { - if (headByte < 0xa0) { - return headByte - 0x90; - } else { - throw new DecodeError(`Unrecognized array type byte: ${prettyByte(headByte)}`); - } - } - } - } - - private pushMapState(size: number) { - if (size > this.maxMapLength) { - throw new DecodeError(`Max length exceeded: map length (${size}) > maxMapLengthLength (${this.maxMapLength})`); - } - - this.stack.push({ - type: State.MAP_KEY, - size, - key: null, - readCount: 0, - map: {}, - }); - } - - private pushArrayState(size: number) { - if (size > this.maxArrayLength) { - throw new DecodeError(`Max length exceeded: array length (${size}) > maxArrayLength (${this.maxArrayLength})`); - } - - this.stack.push({ - type: State.ARRAY, - size, - array: new Array(size), - position: 0, - }); - } - - private decodeUtf8String(byteLength: number, headerOffset: number): string { - if (byteLength > this.maxStrLength) { - throw new DecodeError( - `Max length exceeded: UTF-8 byte length (${byteLength}) > maxStrLength (${this.maxStrLength})`, - ); - } - - if (this.bytes.byteLength < this.pos + headerOffset + byteLength) { - throw MORE_DATA; - } - - const offset = this.pos + headerOffset; - let object: string; - if (this.stateIsMapKey() && this.keyDecoder?.canBeCached(byteLength)) { - object = this.keyDecoder.decode(this.bytes, offset, byteLength); - } else if (byteLength > TEXT_DECODER_THRESHOLD) { - object = utf8DecodeTD(this.bytes, offset, byteLength); - } else { - object = utf8DecodeJs(this.bytes, offset, byteLength); - } - this.pos += headerOffset + byteLength; - return object; - } - - private stateIsMapKey(): boolean { - if (this.stack.length > 0) { - const state = this.stack[this.stack.length - 1]!; - return state.type === State.MAP_KEY; - } - return false; - } - - private decodeBinary(byteLength: number, headOffset: number): Uint8Array { - if (byteLength > this.maxBinLength) { - throw new DecodeError(`Max length exceeded: bin length (${byteLength}) > maxBinLength (${this.maxBinLength})`); - } - - if (!this.hasRemaining(byteLength + headOffset)) { - throw MORE_DATA; - } - - const offset = this.pos + headOffset; - const object = this.bytes.subarray(offset, offset + byteLength); - this.pos += headOffset + byteLength; - return object; - } - - private decodeExtension(size: number, headOffset: number): unknown { - if (size > this.maxExtLength) { - throw new DecodeError(`Max length exceeded: ext length (${size}) > maxExtLength (${this.maxExtLength})`); - } - - const extType = this.view.getInt8(this.pos + headOffset); - const data = this.decodeBinary(size, headOffset + 1 /* extType */); - return this.extensionCodec.decode(data, extType, this.context); - } - - private lookU8() { - return this.view.getUint8(this.pos); - } - - private lookU16() { - return this.view.getUint16(this.pos); - } - - private lookU32() { - return this.view.getUint32(this.pos); - } - - private readU8(): number { - const value = this.view.getUint8(this.pos); - this.pos++; - return value; - } - - private readI8(): number { - const value = this.view.getInt8(this.pos); - this.pos++; - return value; - } - - private readU16(): number { - const value = this.view.getUint16(this.pos); - this.pos += 2; - return value; - } - - private readI16(): number { - const value = this.view.getInt16(this.pos); - this.pos += 2; - return value; - } - - private readU32(): number { - const value = this.view.getUint32(this.pos); - this.pos += 4; - return value; - } - - private readI32(): number { - const value = this.view.getInt32(this.pos); - this.pos += 4; - return value; - } - - private readU64(): number { - const value = getUint64(this.view, this.pos); - this.pos += 8; - return value; - } - - private readI64(): number { - const value = getInt64(this.view, this.pos); - this.pos += 8; - return value; - } - - private readF32() { - const value = this.view.getFloat32(this.pos); - this.pos += 4; - return value; - } - - private readF64() { - const value = this.view.getFloat64(this.pos); - this.pos += 8; - return value; - } -} diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/Encoder.ts b/build_vtk_bundle/node_modules/@msgpack/msgpack/src/Encoder.ts deleted file mode 100644 index 14a16322..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/Encoder.ts +++ /dev/null @@ -1,412 +0,0 @@ -import { utf8EncodeJs, utf8Count, TEXT_ENCODER_THRESHOLD, utf8EncodeTE } from "./utils/utf8"; -import { ExtensionCodec, ExtensionCodecType } from "./ExtensionCodec"; -import { setInt64, setUint64 } from "./utils/int"; -import { ensureUint8Array } from "./utils/typedArrays"; -import type { ExtData } from "./ExtData"; - -export const DEFAULT_MAX_DEPTH = 100; -export const DEFAULT_INITIAL_BUFFER_SIZE = 2048; - -export class Encoder { - private pos = 0; - private view = new DataView(new ArrayBuffer(this.initialBufferSize)); - private bytes = new Uint8Array(this.view.buffer); - - public constructor( - private readonly extensionCodec: ExtensionCodecType = ExtensionCodec.defaultCodec as any, - private readonly context: ContextType = undefined as any, - private readonly maxDepth = DEFAULT_MAX_DEPTH, - private readonly initialBufferSize = DEFAULT_INITIAL_BUFFER_SIZE, - private readonly sortKeys = false, - private readonly forceFloat32 = false, - private readonly ignoreUndefined = false, - private readonly forceIntegerToFloat = false, - ) {} - - private reinitializeState() { - this.pos = 0; - } - - /** - * This is almost equivalent to {@link Encoder#encode}, but it returns an reference of the encoder's internal buffer and thus much faster than {@link Encoder#encode}. - * - * @returns Encodes the object and returns a shared reference the encoder's internal buffer. - */ - public encodeSharedRef(object: unknown): Uint8Array { - this.reinitializeState(); - this.doEncode(object, 1); - return this.bytes.subarray(0, this.pos); - } - - /** - * @returns Encodes the object and returns a copy of the encoder's internal buffer. - */ - public encode(object: unknown): Uint8Array { - this.reinitializeState(); - this.doEncode(object, 1); - return this.bytes.slice(0, this.pos); - } - - private doEncode(object: unknown, depth: number): void { - if (depth > this.maxDepth) { - throw new Error(`Too deep objects in depth ${depth}`); - } - - if (object == null) { - this.encodeNil(); - } else if (typeof object === "boolean") { - this.encodeBoolean(object); - } else if (typeof object === "number") { - this.encodeNumber(object); - } else if (typeof object === "string") { - this.encodeString(object); - } else { - this.encodeObject(object, depth); - } - } - - private ensureBufferSizeToWrite(sizeToWrite: number) { - const requiredSize = this.pos + sizeToWrite; - - if (this.view.byteLength < requiredSize) { - this.resizeBuffer(requiredSize * 2); - } - } - - private resizeBuffer(newSize: number) { - const newBuffer = new ArrayBuffer(newSize); - const newBytes = new Uint8Array(newBuffer); - const newView = new DataView(newBuffer); - - newBytes.set(this.bytes); - - this.view = newView; - this.bytes = newBytes; - } - - private encodeNil() { - this.writeU8(0xc0); - } - - private encodeBoolean(object: boolean) { - if (object === false) { - this.writeU8(0xc2); - } else { - this.writeU8(0xc3); - } - } - private encodeNumber(object: number) { - if (Number.isSafeInteger(object) && !this.forceIntegerToFloat) { - if (object >= 0) { - if (object < 0x80) { - // positive fixint - this.writeU8(object); - } else if (object < 0x100) { - // uint 8 - this.writeU8(0xcc); - this.writeU8(object); - } else if (object < 0x10000) { - // uint 16 - this.writeU8(0xcd); - this.writeU16(object); - } else if (object < 0x100000000) { - // uint 32 - this.writeU8(0xce); - this.writeU32(object); - } else { - // uint 64 - this.writeU8(0xcf); - this.writeU64(object); - } - } else { - if (object >= -0x20) { - // negative fixint - this.writeU8(0xe0 | (object + 0x20)); - } else if (object >= -0x80) { - // int 8 - this.writeU8(0xd0); - this.writeI8(object); - } else if (object >= -0x8000) { - // int 16 - this.writeU8(0xd1); - this.writeI16(object); - } else if (object >= -0x80000000) { - // int 32 - this.writeU8(0xd2); - this.writeI32(object); - } else { - // int 64 - this.writeU8(0xd3); - this.writeI64(object); - } - } - } else { - // non-integer numbers - if (this.forceFloat32) { - // float 32 - this.writeU8(0xca); - this.writeF32(object); - } else { - // float 64 - this.writeU8(0xcb); - this.writeF64(object); - } - } - } - - private writeStringHeader(byteLength: number) { - if (byteLength < 32) { - // fixstr - this.writeU8(0xa0 + byteLength); - } else if (byteLength < 0x100) { - // str 8 - this.writeU8(0xd9); - this.writeU8(byteLength); - } else if (byteLength < 0x10000) { - // str 16 - this.writeU8(0xda); - this.writeU16(byteLength); - } else if (byteLength < 0x100000000) { - // str 32 - this.writeU8(0xdb); - this.writeU32(byteLength); - } else { - throw new Error(`Too long string: ${byteLength} bytes in UTF-8`); - } - } - - private encodeString(object: string) { - const maxHeaderSize = 1 + 4; - const strLength = object.length; - - if (strLength > TEXT_ENCODER_THRESHOLD) { - const byteLength = utf8Count(object); - this.ensureBufferSizeToWrite(maxHeaderSize + byteLength); - this.writeStringHeader(byteLength); - utf8EncodeTE(object, this.bytes, this.pos); - this.pos += byteLength; - } else { - const byteLength = utf8Count(object); - this.ensureBufferSizeToWrite(maxHeaderSize + byteLength); - this.writeStringHeader(byteLength); - utf8EncodeJs(object, this.bytes, this.pos); - this.pos += byteLength; - } - } - - private encodeObject(object: unknown, depth: number) { - // try to encode objects with custom codec first of non-primitives - const ext = this.extensionCodec.tryToEncode(object, this.context); - if (ext != null) { - this.encodeExtension(ext); - } else if (Array.isArray(object)) { - this.encodeArray(object, depth); - } else if (ArrayBuffer.isView(object)) { - this.encodeBinary(object); - } else if (typeof object === "object") { - this.encodeMap(object as Record, depth); - } else { - // symbol, function and other special object come here unless extensionCodec handles them. - throw new Error(`Unrecognized object: ${Object.prototype.toString.apply(object)}`); - } - } - - private encodeBinary(object: ArrayBufferView) { - const size = object.byteLength; - if (size < 0x100) { - // bin 8 - this.writeU8(0xc4); - this.writeU8(size); - } else if (size < 0x10000) { - // bin 16 - this.writeU8(0xc5); - this.writeU16(size); - } else if (size < 0x100000000) { - // bin 32 - this.writeU8(0xc6); - this.writeU32(size); - } else { - throw new Error(`Too large binary: ${size}`); - } - const bytes = ensureUint8Array(object); - this.writeU8a(bytes); - } - - private encodeArray(object: Array, depth: number) { - const size = object.length; - if (size < 16) { - // fixarray - this.writeU8(0x90 + size); - } else if (size < 0x10000) { - // array 16 - this.writeU8(0xdc); - this.writeU16(size); - } else if (size < 0x100000000) { - // array 32 - this.writeU8(0xdd); - this.writeU32(size); - } else { - throw new Error(`Too large array: ${size}`); - } - for (const item of object) { - this.doEncode(item, depth + 1); - } - } - - private countWithoutUndefined(object: Record, keys: ReadonlyArray): number { - let count = 0; - - for (const key of keys) { - if (object[key] !== undefined) { - count++; - } - } - - return count; - } - - private encodeMap(object: Record, depth: number) { - const keys = Object.keys(object); - if (this.sortKeys) { - keys.sort(); - } - - const size = this.ignoreUndefined ? this.countWithoutUndefined(object, keys) : keys.length; - - if (size < 16) { - // fixmap - this.writeU8(0x80 + size); - } else if (size < 0x10000) { - // map 16 - this.writeU8(0xde); - this.writeU16(size); - } else if (size < 0x100000000) { - // map 32 - this.writeU8(0xdf); - this.writeU32(size); - } else { - throw new Error(`Too large map object: ${size}`); - } - - for (const key of keys) { - const value = object[key]; - - if (!(this.ignoreUndefined && value === undefined)) { - this.encodeString(key); - this.doEncode(value, depth + 1); - } - } - } - - private encodeExtension(ext: ExtData) { - const size = ext.data.length; - if (size === 1) { - // fixext 1 - this.writeU8(0xd4); - } else if (size === 2) { - // fixext 2 - this.writeU8(0xd5); - } else if (size === 4) { - // fixext 4 - this.writeU8(0xd6); - } else if (size === 8) { - // fixext 8 - this.writeU8(0xd7); - } else if (size === 16) { - // fixext 16 - this.writeU8(0xd8); - } else if (size < 0x100) { - // ext 8 - this.writeU8(0xc7); - this.writeU8(size); - } else if (size < 0x10000) { - // ext 16 - this.writeU8(0xc8); - this.writeU16(size); - } else if (size < 0x100000000) { - // ext 32 - this.writeU8(0xc9); - this.writeU32(size); - } else { - throw new Error(`Too large extension object: ${size}`); - } - this.writeI8(ext.type); - this.writeU8a(ext.data); - } - - private writeU8(value: number) { - this.ensureBufferSizeToWrite(1); - - this.view.setUint8(this.pos, value); - this.pos++; - } - - private writeU8a(values: ArrayLike) { - const size = values.length; - this.ensureBufferSizeToWrite(size); - - this.bytes.set(values, this.pos); - this.pos += size; - } - - private writeI8(value: number) { - this.ensureBufferSizeToWrite(1); - - this.view.setInt8(this.pos, value); - this.pos++; - } - - private writeU16(value: number) { - this.ensureBufferSizeToWrite(2); - - this.view.setUint16(this.pos, value); - this.pos += 2; - } - - private writeI16(value: number) { - this.ensureBufferSizeToWrite(2); - - this.view.setInt16(this.pos, value); - this.pos += 2; - } - - private writeU32(value: number) { - this.ensureBufferSizeToWrite(4); - - this.view.setUint32(this.pos, value); - this.pos += 4; - } - - private writeI32(value: number) { - this.ensureBufferSizeToWrite(4); - - this.view.setInt32(this.pos, value); - this.pos += 4; - } - - private writeF32(value: number) { - this.ensureBufferSizeToWrite(4); - this.view.setFloat32(this.pos, value); - this.pos += 4; - } - - private writeF64(value: number) { - this.ensureBufferSizeToWrite(8); - this.view.setFloat64(this.pos, value); - this.pos += 8; - } - - private writeU64(value: number) { - this.ensureBufferSizeToWrite(8); - - setUint64(this.view, this.pos, value); - this.pos += 8; - } - - private writeI64(value: number) { - this.ensureBufferSizeToWrite(8); - - setInt64(this.view, this.pos, value); - this.pos += 8; - } -} diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/ExtData.ts b/build_vtk_bundle/node_modules/@msgpack/msgpack/src/ExtData.ts deleted file mode 100644 index f69060e8..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/ExtData.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * ExtData is used to handle Extension Types that are not registered to ExtensionCodec. - */ -export class ExtData { - constructor(readonly type: number, readonly data: Uint8Array) {} -} diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/ExtensionCodec.ts b/build_vtk_bundle/node_modules/@msgpack/msgpack/src/ExtensionCodec.ts deleted file mode 100644 index 6ca94956..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/ExtensionCodec.ts +++ /dev/null @@ -1,104 +0,0 @@ -// ExtensionCodec to handle MessagePack extensions - -import { ExtData } from "./ExtData"; -import { timestampExtension } from "./timestamp"; - -export type ExtensionDecoderType = ( - data: Uint8Array, - extensionType: number, - context: ContextType, -) => unknown; - -export type ExtensionEncoderType = (input: unknown, context: ContextType) => Uint8Array | null; - -// immutable interface to ExtensionCodec -export type ExtensionCodecType = { - // eslint-disable-next-line @typescript-eslint/naming-convention - __brand?: ContextType; - tryToEncode(object: unknown, context: ContextType): ExtData | null; - decode(data: Uint8Array, extType: number, context: ContextType): unknown; -}; - -export class ExtensionCodec implements ExtensionCodecType { - public static readonly defaultCodec: ExtensionCodecType = new ExtensionCodec(); - - // ensures ExtensionCodecType matches ExtensionCodec - // this will make type errors a lot more clear - // eslint-disable-next-line @typescript-eslint/naming-convention - __brand?: ContextType; - - // built-in extensions - private readonly builtInEncoders: Array | undefined | null> = []; - private readonly builtInDecoders: Array | undefined | null> = []; - - // custom extensions - private readonly encoders: Array | undefined | null> = []; - private readonly decoders: Array | undefined | null> = []; - - public constructor() { - this.register(timestampExtension); - } - - public register({ - type, - encode, - decode, - }: { - type: number; - encode: ExtensionEncoderType; - decode: ExtensionDecoderType; - }): void { - if (type >= 0) { - // custom extensions - this.encoders[type] = encode; - this.decoders[type] = decode; - } else { - // built-in extensions - const index = 1 + type; - this.builtInEncoders[index] = encode; - this.builtInDecoders[index] = decode; - } - } - - public tryToEncode(object: unknown, context: ContextType): ExtData | null { - // built-in extensions - for (let i = 0; i < this.builtInEncoders.length; i++) { - const encodeExt = this.builtInEncoders[i]; - if (encodeExt != null) { - const data = encodeExt(object, context); - if (data != null) { - const type = -1 - i; - return new ExtData(type, data); - } - } - } - - // custom extensions - for (let i = 0; i < this.encoders.length; i++) { - const encodeExt = this.encoders[i]; - if (encodeExt != null) { - const data = encodeExt(object, context); - if (data != null) { - const type = i; - return new ExtData(type, data); - } - } - } - - if (object instanceof ExtData) { - // to keep ExtData as is - return object; - } - return null; - } - - public decode(data: Uint8Array, type: number, context: ContextType): unknown { - const decodeExt = type < 0 ? this.builtInDecoders[-1 - type] : this.decoders[type]; - if (decodeExt) { - return decodeExt(data, type, context); - } else { - // decode() does not fail, returns ExtData instead. - return new ExtData(type, data); - } - } -} diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/context.ts b/build_vtk_bundle/node_modules/@msgpack/msgpack/src/context.ts deleted file mode 100644 index 68c4c966..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/context.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* eslint-disable @typescript-eslint/ban-types */ - -export type SplitTypes = U extends T ? (Exclude extends never ? T : Exclude) : T; - -export type SplitUndefined = SplitTypes; - -export type ContextOf = ContextType extends undefined - ? {} - : { - /** - * Custom user-defined data, read/writable - */ - context: ContextType; - }; diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/decode.ts b/build_vtk_bundle/node_modules/@msgpack/msgpack/src/decode.ts deleted file mode 100644 index 30a88ab3..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/decode.ts +++ /dev/null @@ -1,91 +0,0 @@ -import { Decoder } from "./Decoder"; -import type { ExtensionCodecType } from "./ExtensionCodec"; -import type { ContextOf, SplitUndefined } from "./context"; - -export type DecodeOptions = Readonly< - Partial<{ - extensionCodec: ExtensionCodecType; - - /** - * Maximum string length. - * - * Defaults to 4_294_967_295 (UINT32_MAX). - */ - maxStrLength: number; - /** - * Maximum binary length. - * - * Defaults to 4_294_967_295 (UINT32_MAX). - */ - maxBinLength: number; - /** - * Maximum array length. - * - * Defaults to 4_294_967_295 (UINT32_MAX). - */ - maxArrayLength: number; - /** - * Maximum map length. - * - * Defaults to 4_294_967_295 (UINT32_MAX). - */ - maxMapLength: number; - /** - * Maximum extension length. - * - * Defaults to 4_294_967_295 (UINT32_MAX). - */ - maxExtLength: number; - }> -> & - ContextOf; - -export const defaultDecodeOptions: DecodeOptions = {}; - -/** - * It decodes a single MessagePack object in a buffer. - * - * This is a synchronous decoding function. - * See other variants for asynchronous decoding: {@link decodeAsync()}, {@link decodeStream()}, or {@link decodeArrayStream()}. - * - * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty. - * @throws {@link DecodeError} if the buffer contains invalid data. - */ -export function decode( - buffer: ArrayLike | BufferSource, - options: DecodeOptions> = defaultDecodeOptions as any, -): unknown { - const decoder = new Decoder( - options.extensionCodec, - (options as typeof options & { context: any }).context, - options.maxStrLength, - options.maxBinLength, - options.maxArrayLength, - options.maxMapLength, - options.maxExtLength, - ); - return decoder.decode(buffer); -} - -/** - * It decodes multiple MessagePack objects in a buffer. - * This is corresponding to {@link decodeMultiStream()}. - * - * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty. - * @throws {@link DecodeError} if the buffer contains invalid data. - */ -export function decodeMulti( - buffer: ArrayLike | BufferSource, - options: DecodeOptions> = defaultDecodeOptions as any, -): Generator { - const decoder = new Decoder( - options.extensionCodec, - (options as typeof options & { context: any }).context, - options.maxStrLength, - options.maxBinLength, - options.maxArrayLength, - options.maxMapLength, - options.maxExtLength, - ); - return decoder.decodeMulti(buffer); -} diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/decodeAsync.ts b/build_vtk_bundle/node_modules/@msgpack/msgpack/src/decodeAsync.ts deleted file mode 100644 index ee9922fa..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/decodeAsync.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { Decoder } from "./Decoder"; -import { ensureAsyncIterable } from "./utils/stream"; -import { defaultDecodeOptions } from "./decode"; -import type { ReadableStreamLike } from "./utils/stream"; -import type { DecodeOptions } from "./decode"; -import type { SplitUndefined } from "./context"; - -/** - * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty. - * @throws {@link DecodeError} if the buffer contains invalid data. - */ - export async function decodeAsync( - streamLike: ReadableStreamLike | BufferSource>, - options: DecodeOptions> = defaultDecodeOptions as any, -): Promise { - const stream = ensureAsyncIterable(streamLike); - - const decoder = new Decoder( - options.extensionCodec, - (options as typeof options & { context: any }).context, - options.maxStrLength, - options.maxBinLength, - options.maxArrayLength, - options.maxMapLength, - options.maxExtLength, - ); - return decoder.decodeAsync(stream); -} - -/** - * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty. - * @throws {@link DecodeError} if the buffer contains invalid data. - */ - export function decodeArrayStream( - streamLike: ReadableStreamLike | BufferSource>, - options: DecodeOptions> = defaultDecodeOptions as any, -): AsyncGenerator { - const stream = ensureAsyncIterable(streamLike); - - const decoder = new Decoder( - options.extensionCodec, - (options as typeof options & { context: any }).context, - options.maxStrLength, - options.maxBinLength, - options.maxArrayLength, - options.maxMapLength, - options.maxExtLength, - ); - - return decoder.decodeArrayStream(stream); -} - -/** - * @throws {@link RangeError} if the buffer is incomplete, including the case where the buffer is empty. - * @throws {@link DecodeError} if the buffer contains invalid data. - */ -export function decodeMultiStream( - streamLike: ReadableStreamLike | BufferSource>, - options: DecodeOptions> = defaultDecodeOptions as any, -): AsyncGenerator { - const stream = ensureAsyncIterable(streamLike); - - const decoder = new Decoder( - options.extensionCodec, - (options as typeof options & { context: any }).context, - options.maxStrLength, - options.maxBinLength, - options.maxArrayLength, - options.maxMapLength, - options.maxExtLength, - ); - - return decoder.decodeStream(stream); -} - -/** - * @deprecated Use {@link decodeMultiStream()} instead. - */ -export function decodeStream( - streamLike: ReadableStreamLike | BufferSource>, - options: DecodeOptions> = defaultDecodeOptions as any, -): AsyncGenerator { - return decodeMultiStream(streamLike, options); -} diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/encode.ts b/build_vtk_bundle/node_modules/@msgpack/msgpack/src/encode.ts deleted file mode 100644 index 7e6a602e..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/encode.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { Encoder } from "./Encoder"; -import type { ExtensionCodecType } from "./ExtensionCodec"; -import type { ContextOf, SplitUndefined } from "./context"; - -export type EncodeOptions = Partial< - Readonly<{ - extensionCodec: ExtensionCodecType; - - /** - * The maximum depth in nested objects and arrays. - * - * Defaults to 100. - */ - maxDepth: number; - - /** - * The initial size of the internal buffer. - * - * Defaults to 2048. - */ - initialBufferSize: number; - - /** - * If `true`, the keys of an object is sorted. In other words, the encoded - * binary is canonical and thus comparable to another encoded binary. - * - * Defaults to `false`. If enabled, it spends more time in encoding objects. - */ - sortKeys: boolean; - /** - * If `true`, non-integer numbers are encoded in float32, not in float64 (the default). - * - * Only use it if precisions don't matter. - * - * Defaults to `false`. - */ - forceFloat32: boolean; - - /** - * If `true`, an object property with `undefined` value are ignored. - * e.g. `{ foo: undefined }` will be encoded as `{}`, as `JSON.stringify()` does. - * - * Defaults to `false`. If enabled, it spends more time in encoding objects. - */ - ignoreUndefined: boolean; - - /** - * If `true`, integer numbers are encoded as floating point numbers, - * with the `forceFloat32` option taken into account. - * - * Defaults to `false`. - */ - forceIntegerToFloat: boolean; - }> -> & - ContextOf; - -const defaultEncodeOptions: EncodeOptions = {}; - -/** - * It encodes `value` in the MessagePack format and - * returns a byte buffer. - * - * The returned buffer is a slice of a larger `ArrayBuffer`, so you have to use its `#byteOffset` and `#byteLength` in order to convert it to another typed arrays including NodeJS `Buffer`. - */ -export function encode( - value: unknown, - options: EncodeOptions> = defaultEncodeOptions as any, -): Uint8Array { - const encoder = new Encoder( - options.extensionCodec, - (options as typeof options & { context: any }).context, - options.maxDepth, - options.initialBufferSize, - options.sortKeys, - options.forceFloat32, - options.ignoreUndefined, - options.forceIntegerToFloat, - ); - return encoder.encodeSharedRef(value); -} diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/index.ts b/build_vtk_bundle/node_modules/@msgpack/msgpack/src/index.ts deleted file mode 100644 index 28560f1b..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/index.ts +++ /dev/null @@ -1,47 +0,0 @@ -// Main Functions: - -import { encode } from "./encode"; -export { encode }; -import type { EncodeOptions } from "./encode"; -export type { EncodeOptions }; - -import { decode, decodeMulti } from "./decode"; -export { decode, decodeMulti }; -import type { DecodeOptions } from "./decode"; -export { DecodeOptions }; - -import { decodeAsync, decodeArrayStream, decodeMultiStream, decodeStream } from "./decodeAsync"; -export { decodeAsync, decodeArrayStream, decodeMultiStream, decodeStream }; - -import { Decoder, DataViewIndexOutOfBoundsError } from "./Decoder"; -import { DecodeError } from "./DecodeError"; -export { Decoder, DecodeError, DataViewIndexOutOfBoundsError }; - -import { Encoder } from "./Encoder"; -export { Encoder }; - -// Utilitiies for Extension Types: - -import { ExtensionCodec } from "./ExtensionCodec"; -export { ExtensionCodec }; -import type { ExtensionCodecType, ExtensionDecoderType, ExtensionEncoderType } from "./ExtensionCodec"; -export type { ExtensionCodecType, ExtensionDecoderType, ExtensionEncoderType }; -import { ExtData } from "./ExtData"; -export { ExtData }; - -import { - EXT_TIMESTAMP, - encodeDateToTimeSpec, - encodeTimeSpecToTimestamp, - decodeTimestampToTimeSpec, - encodeTimestampExtension, - decodeTimestampExtension, -} from "./timestamp"; -export { - EXT_TIMESTAMP, - encodeDateToTimeSpec, - encodeTimeSpecToTimestamp, - decodeTimestampToTimeSpec, - encodeTimestampExtension, - decodeTimestampExtension, -}; diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/timestamp.ts b/build_vtk_bundle/node_modules/@msgpack/msgpack/src/timestamp.ts deleted file mode 100644 index e3fe0155..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/timestamp.ts +++ /dev/null @@ -1,108 +0,0 @@ -// https://github.com/msgpack/msgpack/blob/master/spec.md#timestamp-extension-type -import { DecodeError } from "./DecodeError"; -import { getInt64, setInt64 } from "./utils/int"; - -export const EXT_TIMESTAMP = -1; - -export type TimeSpec = { - sec: number; - nsec: number; -}; - -const TIMESTAMP32_MAX_SEC = 0x100000000 - 1; // 32-bit unsigned int -const TIMESTAMP64_MAX_SEC = 0x400000000 - 1; // 34-bit unsigned int - -export function encodeTimeSpecToTimestamp({ sec, nsec }: TimeSpec): Uint8Array { - if (sec >= 0 && nsec >= 0 && sec <= TIMESTAMP64_MAX_SEC) { - // Here sec >= 0 && nsec >= 0 - if (nsec === 0 && sec <= TIMESTAMP32_MAX_SEC) { - // timestamp 32 = { sec32 (unsigned) } - const rv = new Uint8Array(4); - const view = new DataView(rv.buffer); - view.setUint32(0, sec); - return rv; - } else { - // timestamp 64 = { nsec30 (unsigned), sec34 (unsigned) } - const secHigh = sec / 0x100000000; - const secLow = sec & 0xffffffff; - const rv = new Uint8Array(8); - const view = new DataView(rv.buffer); - // nsec30 | secHigh2 - view.setUint32(0, (nsec << 2) | (secHigh & 0x3)); - // secLow32 - view.setUint32(4, secLow); - return rv; - } - } else { - // timestamp 96 = { nsec32 (unsigned), sec64 (signed) } - const rv = new Uint8Array(12); - const view = new DataView(rv.buffer); - view.setUint32(0, nsec); - setInt64(view, 4, sec); - return rv; - } -} - -export function encodeDateToTimeSpec(date: Date): TimeSpec { - const msec = date.getTime(); - const sec = Math.floor(msec / 1e3); - const nsec = (msec - sec * 1e3) * 1e6; - - // Normalizes { sec, nsec } to ensure nsec is unsigned. - const nsecInSec = Math.floor(nsec / 1e9); - return { - sec: sec + nsecInSec, - nsec: nsec - nsecInSec * 1e9, - }; -} - -export function encodeTimestampExtension(object: unknown): Uint8Array | null { - if (object instanceof Date) { - const timeSpec = encodeDateToTimeSpec(object); - return encodeTimeSpecToTimestamp(timeSpec); - } else { - return null; - } -} - -export function decodeTimestampToTimeSpec(data: Uint8Array): TimeSpec { - const view = new DataView(data.buffer, data.byteOffset, data.byteLength); - - // data may be 32, 64, or 96 bits - switch (data.byteLength) { - case 4: { - // timestamp 32 = { sec32 } - const sec = view.getUint32(0); - const nsec = 0; - return { sec, nsec }; - } - case 8: { - // timestamp 64 = { nsec30, sec34 } - const nsec30AndSecHigh2 = view.getUint32(0); - const secLow32 = view.getUint32(4); - const sec = (nsec30AndSecHigh2 & 0x3) * 0x100000000 + secLow32; - const nsec = nsec30AndSecHigh2 >>> 2; - return { sec, nsec }; - } - case 12: { - // timestamp 96 = { nsec32 (unsigned), sec64 (signed) } - - const sec = getInt64(view, 4); - const nsec = view.getUint32(0); - return { sec, nsec }; - } - default: - throw new DecodeError(`Unrecognized data size for timestamp (expected 4, 8, or 12): ${data.length}`); - } -} - -export function decodeTimestampExtension(data: Uint8Array): Date { - const timeSpec = decodeTimestampToTimeSpec(data); - return new Date(timeSpec.sec * 1e3 + timeSpec.nsec / 1e6); -} - -export const timestampExtension = { - type: EXT_TIMESTAMP, - encode: encodeTimestampExtension, - decode: decodeTimestampExtension, -}; diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/utils/int.ts b/build_vtk_bundle/node_modules/@msgpack/msgpack/src/utils/int.ts deleted file mode 100644 index 7fa93fb7..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/utils/int.ts +++ /dev/null @@ -1,32 +0,0 @@ -// Integer Utility - -export const UINT32_MAX = 0xffff_ffff; - -// DataView extension to handle int64 / uint64, -// where the actual range is 53-bits integer (a.k.a. safe integer) - -export function setUint64(view: DataView, offset: number, value: number): void { - const high = value / 0x1_0000_0000; - const low = value; // high bits are truncated by DataView - view.setUint32(offset, high); - view.setUint32(offset + 4, low); -} - -export function setInt64(view: DataView, offset: number, value: number): void { - const high = Math.floor(value / 0x1_0000_0000); - const low = value; // high bits are truncated by DataView - view.setUint32(offset, high); - view.setUint32(offset + 4, low); -} - -export function getInt64(view: DataView, offset: number): number { - const high = view.getInt32(offset); - const low = view.getUint32(offset + 4); - return high * 0x1_0000_0000 + low; -} - -export function getUint64(view: DataView, offset: number): number { - const high = view.getUint32(offset); - const low = view.getUint32(offset + 4); - return high * 0x1_0000_0000 + low; -} diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/utils/prettyByte.ts b/build_vtk_bundle/node_modules/@msgpack/msgpack/src/utils/prettyByte.ts deleted file mode 100644 index c598138e..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/utils/prettyByte.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function prettyByte(byte: number): string { - return `${byte < 0 ? "-" : ""}0x${Math.abs(byte).toString(16).padStart(2, "0")}`; -} diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/utils/stream.ts b/build_vtk_bundle/node_modules/@msgpack/msgpack/src/utils/stream.ts deleted file mode 100644 index b7549e1a..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/utils/stream.ts +++ /dev/null @@ -1,42 +0,0 @@ -// utility for whatwg streams - -// The living standard of whatwg streams says -// ReadableStream is also AsyncIterable, but -// as of June 2019, no browser implements it. -// See https://streams.spec.whatwg.org/ for details -export type ReadableStreamLike = AsyncIterable | ReadableStream; - -export function isAsyncIterable(object: ReadableStreamLike): object is AsyncIterable { - return (object as any)[Symbol.asyncIterator] != null; -} - -function assertNonNull(value: T | null | undefined): asserts value is T { - if (value == null) { - throw new Error("Assertion Failure: value must not be null nor undefined"); - } -} - -export async function* asyncIterableFromStream(stream: ReadableStream): AsyncIterable { - const reader = stream.getReader(); - - try { - while (true) { - const { done, value } = await reader.read(); - if (done) { - return; - } - assertNonNull(value); - yield value; - } - } finally { - reader.releaseLock(); - } -} - -export function ensureAsyncIterable(streamLike: ReadableStreamLike): AsyncIterable { - if (isAsyncIterable(streamLike)) { - return streamLike; - } else { - return asyncIterableFromStream(streamLike); - } -} diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/utils/typedArrays.ts b/build_vtk_bundle/node_modules/@msgpack/msgpack/src/utils/typedArrays.ts deleted file mode 100644 index 6e04c21e..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/utils/typedArrays.ts +++ /dev/null @@ -1,21 +0,0 @@ -export function ensureUint8Array(buffer: ArrayLike | Uint8Array | ArrayBufferView | ArrayBuffer): Uint8Array { - if (buffer instanceof Uint8Array) { - return buffer; - } else if (ArrayBuffer.isView(buffer)) { - return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); - } else if (buffer instanceof ArrayBuffer) { - return new Uint8Array(buffer); - } else { - // ArrayLike - return Uint8Array.from(buffer); - } -} - -export function createDataView(buffer: ArrayLike | ArrayBufferView | ArrayBuffer): DataView { - if (buffer instanceof ArrayBuffer) { - return new DataView(buffer); - } - - const bufferView = ensureUint8Array(buffer); - return new DataView(bufferView.buffer, bufferView.byteOffset, bufferView.byteLength); -} diff --git a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/utils/utf8.ts b/build_vtk_bundle/node_modules/@msgpack/msgpack/src/utils/utf8.ts deleted file mode 100644 index 4d08690c..00000000 --- a/build_vtk_bundle/node_modules/@msgpack/msgpack/src/utils/utf8.ts +++ /dev/null @@ -1,170 +0,0 @@ -/* eslint-disable @typescript-eslint/no-unnecessary-condition */ -import { UINT32_MAX } from "./int"; - -const TEXT_ENCODING_AVAILABLE = - (typeof process === "undefined" || process?.env?.["TEXT_ENCODING"] !== "never") && - typeof TextEncoder !== "undefined" && - typeof TextDecoder !== "undefined"; - -export function utf8Count(str: string): number { - const strLength = str.length; - - let byteLength = 0; - let pos = 0; - while (pos < strLength) { - let value = str.charCodeAt(pos++); - - if ((value & 0xffffff80) === 0) { - // 1-byte - byteLength++; - continue; - } else if ((value & 0xfffff800) === 0) { - // 2-bytes - byteLength += 2; - } else { - // handle surrogate pair - if (value >= 0xd800 && value <= 0xdbff) { - // high surrogate - if (pos < strLength) { - const extra = str.charCodeAt(pos); - if ((extra & 0xfc00) === 0xdc00) { - ++pos; - value = ((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000; - } - } - } - - if ((value & 0xffff0000) === 0) { - // 3-byte - byteLength += 3; - } else { - // 4-byte - byteLength += 4; - } - } - } - return byteLength; -} - -export function utf8EncodeJs(str: string, output: Uint8Array, outputOffset: number): void { - const strLength = str.length; - let offset = outputOffset; - let pos = 0; - while (pos < strLength) { - let value = str.charCodeAt(pos++); - - if ((value & 0xffffff80) === 0) { - // 1-byte - output[offset++] = value; - continue; - } else if ((value & 0xfffff800) === 0) { - // 2-bytes - output[offset++] = ((value >> 6) & 0x1f) | 0xc0; - } else { - // handle surrogate pair - if (value >= 0xd800 && value <= 0xdbff) { - // high surrogate - if (pos < strLength) { - const extra = str.charCodeAt(pos); - if ((extra & 0xfc00) === 0xdc00) { - ++pos; - value = ((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000; - } - } - } - - if ((value & 0xffff0000) === 0) { - // 3-byte - output[offset++] = ((value >> 12) & 0x0f) | 0xe0; - output[offset++] = ((value >> 6) & 0x3f) | 0x80; - } else { - // 4-byte - output[offset++] = ((value >> 18) & 0x07) | 0xf0; - output[offset++] = ((value >> 12) & 0x3f) | 0x80; - output[offset++] = ((value >> 6) & 0x3f) | 0x80; - } - } - - output[offset++] = (value & 0x3f) | 0x80; - } -} - -const sharedTextEncoder = TEXT_ENCODING_AVAILABLE ? new TextEncoder() : undefined; -export const TEXT_ENCODER_THRESHOLD = !TEXT_ENCODING_AVAILABLE - ? UINT32_MAX - : typeof process !== "undefined" && process?.env?.["TEXT_ENCODING"] !== "force" - ? 200 - : 0; - -function utf8EncodeTEencode(str: string, output: Uint8Array, outputOffset: number): void { - output.set(sharedTextEncoder!.encode(str), outputOffset); -} - -function utf8EncodeTEencodeInto(str: string, output: Uint8Array, outputOffset: number): void { - sharedTextEncoder!.encodeInto(str, output.subarray(outputOffset)); -} - -export const utf8EncodeTE = sharedTextEncoder?.encodeInto ? utf8EncodeTEencodeInto : utf8EncodeTEencode; - -const CHUNK_SIZE = 0x1_000; - -export function utf8DecodeJs(bytes: Uint8Array, inputOffset: number, byteLength: number): string { - let offset = inputOffset; - const end = offset + byteLength; - - const units: Array = []; - let result = ""; - while (offset < end) { - const byte1 = bytes[offset++]!; - if ((byte1 & 0x80) === 0) { - // 1 byte - units.push(byte1); - } else if ((byte1 & 0xe0) === 0xc0) { - // 2 bytes - const byte2 = bytes[offset++]! & 0x3f; - units.push(((byte1 & 0x1f) << 6) | byte2); - } else if ((byte1 & 0xf0) === 0xe0) { - // 3 bytes - const byte2 = bytes[offset++]! & 0x3f; - const byte3 = bytes[offset++]! & 0x3f; - units.push(((byte1 & 0x1f) << 12) | (byte2 << 6) | byte3); - } else if ((byte1 & 0xf8) === 0xf0) { - // 4 bytes - const byte2 = bytes[offset++]! & 0x3f; - const byte3 = bytes[offset++]! & 0x3f; - const byte4 = bytes[offset++]! & 0x3f; - let unit = ((byte1 & 0x07) << 0x12) | (byte2 << 0x0c) | (byte3 << 0x06) | byte4; - if (unit > 0xffff) { - unit -= 0x10000; - units.push(((unit >>> 10) & 0x3ff) | 0xd800); - unit = 0xdc00 | (unit & 0x3ff); - } - units.push(unit); - } else { - units.push(byte1); - } - - if (units.length >= CHUNK_SIZE) { - result += String.fromCharCode(...units); - units.length = 0; - } - } - - if (units.length > 0) { - result += String.fromCharCode(...units); - } - - return result; -} - -const sharedTextDecoder = TEXT_ENCODING_AVAILABLE ? new TextDecoder() : null; -export const TEXT_DECODER_THRESHOLD = !TEXT_ENCODING_AVAILABLE - ? UINT32_MAX - : typeof process !== "undefined" && process?.env?.["TEXT_DECODER"] !== "force" - ? 200 - : 0; - -export function utf8DecodeTD(bytes: Uint8Array, inputOffset: number, byteLength: number): string { - const stringBytes = bytes.subarray(inputOffset, inputOffset + byteLength); - return sharedTextDecoder!.decode(stringBytes); -} diff --git a/build_vtk_bundle/node_modules/@oozcitak/dom/LICENSE b/build_vtk_bundle/node_modules/@oozcitak/dom/LICENSE deleted file mode 100644 index 79495d57..00000000 --- a/build_vtk_bundle/node_modules/@oozcitak/dom/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2019 Ozgur Ozcitak - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@oozcitak/dom/README.md b/build_vtk_bundle/node_modules/@oozcitak/dom/README.md deleted file mode 100644 index 8bf30d41..00000000 --- a/build_vtk_bundle/node_modules/@oozcitak/dom/README.md +++ /dev/null @@ -1,32 +0,0 @@ -# DOM -A Javascript implementation of the [DOM Living Standard](https://dom.spec.whatwg.org/). - -[![License](http://img.shields.io/npm/l/@oozcitak/dom.svg?style=flat-square)](http://opensource.org/licenses/MIT) -[![NPM Version](https://img.shields.io/npm/v/@oozcitak/dom?logo=npm&style=flat-square)](https://www.npmjs.com/package/@oozcitak/dom) - -[![Travis Build Status](https://img.shields.io/travis/oozcitak/dom?logo=travis&style=flat-square)](http://travis-ci.org/oozcitak/dom) -[![AppVeyor Build status](https://img.shields.io/appveyor/ci/oozcitak/dom?logo=appveyor&style=flat-square)](https://ci.appveyor.com/project/oozcitak/dom) -[![Dev Dependency Status](http://img.shields.io/david/dev/oozcitak/dom.svg?style=flat-square)](https://david-dm.org/oozcitak/dom) -[![Code Coverage](https://img.shields.io/codecov/c/github/oozcitak/dom?logo=codecov&style=flat-square)](https://codecov.io/gh/oozcitak/dom) - -# Version -Current version implements the standard as of commit [57512fa](https://dom.spec.whatwg.org/commit-snapshots/57512fac17cf2f1c4c85be4aec178c8086ee5ee4/) (Last Updated 24 September 2019). - -This DOM implementation is for _XML documents only_. - -# Installation -``` -npm install @oozcitak/dom -``` - -# Usage -Create an instance of the [`DOMImplementation`](https://dom.spec.whatwg.org/#interface-domimplementation) class to construct the DOM tree. - -```js -const { DOMImplementation } = require("@oozcitak/dom"); - -const dom = new DOMImplementation(); -const doc = dom.createDocument('ns', 'root'); -``` - -The module also exports [`DOMParser`](https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#domparser) and [`XMLSerializer`](https://w3c.github.io/DOM-Parsing/#the-xmlserializer-interface) classes as in the browser. diff --git a/build_vtk_bundle/node_modules/@oozcitak/dom/package.json b/build_vtk_bundle/node_modules/@oozcitak/dom/package.json deleted file mode 100644 index e5618576..00000000 --- a/build_vtk_bundle/node_modules/@oozcitak/dom/package.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "name": "@oozcitak/dom", - "version": "1.15.10", - "keywords": [ - "dom", - "whatwg" - ], - "homepage": "http://github.com/oozcitak/dom", - "description": "A modern DOM implementation", - "author": "Ozgur Ozcitak ", - "contributors": [], - "license": "MIT", - "repository": { - "type": "git", - "url": "git://github.com/oozcitak/dom.git" - }, - "bugs": { - "url": "http://github.com/oozcitak/dom/issues" - }, - "main": "./lib/index", - "engines": { - "node": ">=8.0" - }, - "files": [ - "lib/**/*" - ], - "dependencies": { - "@oozcitak/infra": "1.0.8", - "@oozcitak/url": "1.0.4", - "@oozcitak/util": "8.3.8" - }, - "devDependencies": { - "@types/benchmark": "*", - "@types/dedent": "*", - "@types/jest": "*", - "@types/jsdom": "*", - "@types/node": "*", - "@types/semver": "*", - "@types/xmldom": "*", - "benchmark": "*", - "chalk": "*", - "dedent": "*", - "fast-xml-parser": "*", - "glob": "*", - "jest": "*", - "jsdom": "*", - "semver": "*", - "ts-jest": "^26.3.0", - "ts-node": "*", - "typescript": "*", - "xmldom": "*" - }, - "jest": { - "transform": { - "^.+\\.tsx?$": "ts-jest" - }, - "testRegex": "/test/.*\\.test\\.tsx?$", - "testEnvironment": "node", - "collectCoverageFrom": [ - "src/**/*.{ts,tsx}" - ] - }, - "scripts": { - "compile": "rm -rf lib && tsc --version && tsc", - "test": "npm run compile && jest --coverage", - "perf": "npm run compile && ts-node ./perf/perf.ts", - "prof-create": "npm run compile && rm -f isolate-*-v8.log && node --prof ./perf/prof-create.js && find . -name isolate-*-v8.log -exec mv {} isolate-v8.log ; && node --prof-process isolate-v8.log > isolate-create.log && rm isolate-v8.log", - "prof-parse": "npm run compile && rm -f isolate-*-v8.log && node --prof ./perf/prof-parse.js && find . -name isolate-*-v8.log -exec mv {} isolate-v8.log ; && node --prof-process isolate-v8.log > isolate-parse.log && rm isolate-v8.log", - "prof-serialize": "npm run compile && rm -f isolate-*-v8.log && node --prof ./perf/prof-serialize.js && find . -name isolate-*-v8.log -exec mv {} isolate-v8.log ; && node --prof-process isolate-v8.log > isolate-serialize.log && rm isolate-v8.log", - "publish-public": "npm run test && npm publish --access public" - } -} diff --git a/build_vtk_bundle/node_modules/@oozcitak/infra/LICENSE b/build_vtk_bundle/node_modules/@oozcitak/infra/LICENSE deleted file mode 100644 index eee50f61..00000000 --- a/build_vtk_bundle/node_modules/@oozcitak/infra/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2019 Ozgur Ozcitak - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@oozcitak/infra/README.md b/build_vtk_bundle/node_modules/@oozcitak/infra/README.md deleted file mode 100644 index c811d95b..00000000 --- a/build_vtk_bundle/node_modules/@oozcitak/infra/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# infra -A Javascript implementation of the [Infra Living Standard](https://infra.spec.whatwg.org/). - -[![License](http://img.shields.io/npm/l/@oozcitak/infra.svg?style=flat-square)](http://opensource.org/licenses/MIT) -[![NPM Version](http://img.shields.io/npm/v/@oozcitak/infra.svg?style=flat-square)](https://www.npmjs.com/package/@oozcitak/infra) - -[![Travis Build Status](http://img.shields.io/travis/oozcitak/infra.svg?style=flat-square)](http://travis-ci.org/oozcitak/infra) -[![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/eq3de0oihhp9p5h2?svg=true)](https://ci.appveyor.com/project/oozcitak/infra) -[![Dev Dependency Status](http://img.shields.io/david/dev/oozcitak/infra.svg?style=flat-square)](https://david-dm.org/oozcitak/infra) -[![Code Coverage](https://img.shields.io/codecov/c/github/oozcitak/infra?style=flat-square)](https://codecov.io/gh/oozcitak/infra) - -# version -Current version implements the standard as of commit [d4a3e90](https://infra.spec.whatwg.org/commit-snapshots/d4a3e9003e6695e3e1379a8581d945759566bfac/). diff --git a/build_vtk_bundle/node_modules/@oozcitak/infra/package.json b/build_vtk_bundle/node_modules/@oozcitak/infra/package.json deleted file mode 100644 index 8e9ed0d4..00000000 --- a/build_vtk_bundle/node_modules/@oozcitak/infra/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "@oozcitak/infra", - "version": "1.0.8", - "keywords": [ - "infra", - "whatwg" - ], - "homepage": "http://github.com/oozcitak/infra", - "description": "An implementation of the Infra Living Standard", - "author": "Ozgur Ozcitak ", - "contributors": [], - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/oozcitak/infra.git" - }, - "bugs": { - "url": "http://github.com/oozcitak/infra/issues" - }, - "main": "./lib/index", - "types": "lib/index.d.ts", - "engines": { - "node": ">=6.0" - }, - "files": [ - "lib/**/*" - ], - "dependencies": { - "@oozcitak/util": "8.3.8" - }, - "devDependencies": { - "@types/jest": "^24.0.22", - "@types/node": "^12.12.6", - "coveralls": "^3.0.7", - "jest": "^24.9.0", - "ts-jest": "^24.1.0", - "typescript": "^3.7.2" - }, - "jest": { - "transform": { - "^.+\\.tsx?$": "ts-jest" - }, - "testRegex": "/test/.*\\.test\\.tsx?$", - "testEnvironment": "node", - "collectCoverageFrom": [ - "src/**/*.{ts,tsx}" - ] - }, - "scripts": { - "compile": "rm -rf lib && tsc --version && tsc", - "test": "npm run compile && jest --coverage", - "publish-public": "npm run test && npm publish --access public" - } -} diff --git a/build_vtk_bundle/node_modules/@oozcitak/url/LICENSE b/build_vtk_bundle/node_modules/@oozcitak/url/LICENSE deleted file mode 100644 index eee50f61..00000000 --- a/build_vtk_bundle/node_modules/@oozcitak/url/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2019 Ozgur Ozcitak - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@oozcitak/url/README.md b/build_vtk_bundle/node_modules/@oozcitak/url/README.md deleted file mode 100644 index 4150aad0..00000000 --- a/build_vtk_bundle/node_modules/@oozcitak/url/README.md +++ /dev/null @@ -1,27 +0,0 @@ -# URL -A Javascript implementation of the [URL Living Standard](https://url.spec.whatwg.org/). - -[![License](http://img.shields.io/npm/l/@oozcitak/url.svg?style=flat-square)](http://opensource.org/licenses/MIT) -[![NPM Version](http://img.shields.io/npm/v/@oozcitak/url.svg?style=flat-square)](https://www.npmjs.com/package/@oozcitak/url) - -[![Travis Build Status](http://img.shields.io/travis/oozcitak/url.svg?style=flat-square)](http://travis-ci.org/oozcitak/url) -[![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/vmmfuvai1o3yips8?svg=true)](https://ci.appveyor.com/project/oozcitak/url) -[![Dev Dependency Status](http://img.shields.io/david/dev/oozcitak/url.svg?style=flat-square)](https://david-dm.org/oozcitak/url) -[![Code Coverage](https://img.shields.io/codecov/c/github/oozcitak/url?style=flat-square)](https://codecov.io/gh/oozcitak/url) - -# Version -Current version implements the standard as of commit [7ae1c69](https://url.spec.whatwg.org/commit-snapshots/7ae1c691c96f0d82fafa24c33aa1e8df9ffbf2bc/). - -# Installation -``` -npm install @oozcitak/url -``` - -# Usage -Create an instance of the `URL` or `URLSearchParams` classes. - -```js -const { URL } = require("@oozcitak/url"); - -const url = new URL("https://example.org/file.aspx") -``` diff --git a/build_vtk_bundle/node_modules/@oozcitak/url/package.json b/build_vtk_bundle/node_modules/@oozcitak/url/package.json deleted file mode 100644 index 8bc92dc0..00000000 --- a/build_vtk_bundle/node_modules/@oozcitak/url/package.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "name": "@oozcitak/url", - "version": "1.0.4", - "keywords": [ - "url", - "whatwg" - ], - "homepage": "http://github.com/oozcitak/url", - "description": "An implementation of the URL Living Standard", - "author": "Ozgur Ozcitak ", - "contributors": [], - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/oozcitak/url.git" - }, - "bugs": { - "url": "http://github.com/oozcitak/url/issues" - }, - "main": "./lib/index", - "types": "lib/index.d.ts", - "engines": { - "node": ">=8.0" - }, - "files": [ - "lib/**/*" - ], - "dependencies": { - "@oozcitak/util": "8.3.8", - "@oozcitak/infra": "1.0.8" - }, - "devDependencies": { - "typescript": "*", - "jest": "*", - "ts-jest": "*", - "coveralls": "*", - "@types/node": "*", - "@types/jest": "*" - }, - "jest": { - "transform": { - "^.+\\.tsx?$": "ts-jest" - }, - "testRegex": "/test/.*\\.test\\.tsx?$", - "testEnvironment": "node", - "collectCoverageFrom": [ - "src/**/*.{ts,tsx}" - ] - }, - "scripts": { - "compile": "rm -rf ./lib && tsc --version && tsc", - "test": "npm run compile && jest --coverage", - "publish-public": "npm run test && npm publish --access public" - } -} diff --git a/build_vtk_bundle/node_modules/@oozcitak/util/LICENSE b/build_vtk_bundle/node_modules/@oozcitak/util/LICENSE deleted file mode 100644 index eee50f61..00000000 --- a/build_vtk_bundle/node_modules/@oozcitak/util/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2019 Ozgur Ozcitak - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/@oozcitak/util/README.md b/build_vtk_bundle/node_modules/@oozcitak/util/README.md deleted file mode 100644 index 5ea96932..00000000 --- a/build_vtk_bundle/node_modules/@oozcitak/util/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# util -Utility functions used by [@oozcitak/dom](http://github.com/oozcitak/dom) and related packages. - -[![License](http://img.shields.io/npm/l/@oozcitak/util.svg?style=flat-square)](http://opensource.org/licenses/MIT) -[![NPM Version](http://img.shields.io/npm/v/@oozcitak/util.svg?style=flat-square)](https://www.npmjs.com/package/@oozcitak/util) - -[![Travis Build Status](http://img.shields.io/travis/oozcitak/util.svg?style=flat-square)](http://travis-ci.org/oozcitak/util) -[![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/n7pq9g2n9eipuh98?svg=true)](https://ci.appveyor.com/project/oozcitak/util) -[![Dev Dependency Status](http://img.shields.io/david/dev/oozcitak/util.svg?style=flat-square)](https://david-dm.org/oozcitak/util) -[![Code Coverage](https://img.shields.io/codecov/c/github/oozcitak/util?style=flat-square)](https://codecov.io/gh/oozcitak/util) diff --git a/build_vtk_bundle/node_modules/@oozcitak/util/package.json b/build_vtk_bundle/node_modules/@oozcitak/util/package.json deleted file mode 100644 index 10fa420d..00000000 --- a/build_vtk_bundle/node_modules/@oozcitak/util/package.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "name": "@oozcitak/util", - "version": "8.3.8", - "keywords": [ - "util", - "js" - ], - "homepage": "http://github.com/oozcitak/util", - "description": "Utility functions", - "author": "Ozgur Ozcitak ", - "contributors": [], - "license": "MIT", - "repository": { - "type": "git", - "url": "git://github.com/oozcitak/util.git" - }, - "bugs": { - "url": "http://github.com/oozcitak/util/issues" - }, - "main": "./lib/index", - "engines": { - "node": ">=8.0" - }, - "files": [ - "lib/**/*" - ], - "dependencies": {}, - "devDependencies": { - "typescript": "*", - "jest": "*", - "ts-jest": "*", - "coveralls": "*", - "@types/node": "*", - "@types/jest": "*" - }, - "jest": { - "transform": { - "^.+\\.tsx?$": "ts-jest" - }, - "testEnvironment": "node", - "collectCoverageFrom": [ - "src/**/*.{ts,tsx}" - ] - }, - "scripts": { - "compile": "rm -rf lib && tsc", - "test": "npm run compile && jest --coverage", - "publish-public": "npm run test && npm publish --access public" - } -} diff --git a/build_vtk_bundle/node_modules/@types/eslint-scope/LICENSE b/build_vtk_bundle/node_modules/@types/eslint-scope/LICENSE deleted file mode 100644 index 9e841e7a..00000000 --- a/build_vtk_bundle/node_modules/@types/eslint-scope/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - MIT License - - Copyright (c) Microsoft Corporation. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE diff --git a/build_vtk_bundle/node_modules/@types/eslint-scope/README.md b/build_vtk_bundle/node_modules/@types/eslint-scope/README.md deleted file mode 100644 index cae6d8b2..00000000 --- a/build_vtk_bundle/node_modules/@types/eslint-scope/README.md +++ /dev/null @@ -1,90 +0,0 @@ -# Installation -> `npm install --save @types/eslint-scope` - -# Summary -This package contains type definitions for eslint-scope (https://github.com/eslint/eslint-scope). - -# Details -Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint-scope. -## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint-scope/index.d.ts) -````ts -import * as eslint from "eslint"; -import * as estree from "estree"; - -export const version: string; - -export class ScopeManager implements eslint.Scope.ScopeManager { - scopes: Scope[]; - globalScope: Scope; - acquire(node: {}, inner?: boolean): Scope | null; - getDeclaredVariables(node: {}): Variable[]; -} - -export class Scope implements eslint.Scope.Scope { - type: - | "block" - | "catch" - | "class" - | "for" - | "function" - | "function-expression-name" - | "global" - | "module" - | "switch" - | "with" - | "TDZ"; - isStrict: boolean; - upper: Scope | null; - childScopes: Scope[]; - variableScope: Scope; - block: estree.Node; - variables: Variable[]; - set: Map; - references: Reference[]; - through: Reference[]; - functionExpressionScope: boolean; -} - -export class Variable implements eslint.Scope.Variable { - name: string; - scope: Scope; - identifiers: estree.Identifier[]; - references: Reference[]; - defs: eslint.Scope.Definition[]; -} - -export class Reference implements eslint.Scope.Reference { - identifier: estree.Identifier; - from: Scope; - resolved: Variable | null; - writeExpr: estree.Node | null; - init: boolean; - - isWrite(): boolean; - isRead(): boolean; - isWriteOnly(): boolean; - isReadOnly(): boolean; - isReadWrite(): boolean; -} - -export interface AnalysisOptions { - optimistic?: boolean; - directive?: boolean; - ignoreEval?: boolean; - nodejsScope?: boolean; - impliedStrict?: boolean; - fallback?: string | ((node: {}) => string[]); - sourceType?: "script" | "module"; - ecmaVersion?: number; -} - -export function analyze(ast: {}, options?: AnalysisOptions): ScopeManager; - -```` - -### Additional Details - * Last updated: Mon, 06 Nov 2023 22:41:05 GMT - * Dependencies: [@types/eslint](https://npmjs.com/package/@types/eslint), [@types/estree](https://npmjs.com/package/@types/estree) - -# Credits -These definitions were written by [Toru Nagashima](https://github.com/mysticatea). diff --git a/build_vtk_bundle/node_modules/@types/eslint-scope/index.d.ts b/build_vtk_bundle/node_modules/@types/eslint-scope/index.d.ts deleted file mode 100644 index 96e3fb37..00000000 --- a/build_vtk_bundle/node_modules/@types/eslint-scope/index.d.ts +++ /dev/null @@ -1,71 +0,0 @@ -import * as eslint from "eslint"; -import * as estree from "estree"; - -export const version: string; - -export class ScopeManager implements eslint.Scope.ScopeManager { - scopes: Scope[]; - globalScope: Scope; - acquire(node: {}, inner?: boolean): Scope | null; - getDeclaredVariables(node: {}): Variable[]; -} - -export class Scope implements eslint.Scope.Scope { - type: - | "block" - | "catch" - | "class" - | "for" - | "function" - | "function-expression-name" - | "global" - | "module" - | "switch" - | "with" - | "TDZ"; - isStrict: boolean; - upper: Scope | null; - childScopes: Scope[]; - variableScope: Scope; - block: estree.Node; - variables: Variable[]; - set: Map; - references: Reference[]; - through: Reference[]; - functionExpressionScope: boolean; -} - -export class Variable implements eslint.Scope.Variable { - name: string; - scope: Scope; - identifiers: estree.Identifier[]; - references: Reference[]; - defs: eslint.Scope.Definition[]; -} - -export class Reference implements eslint.Scope.Reference { - identifier: estree.Identifier; - from: Scope; - resolved: Variable | null; - writeExpr: estree.Node | null; - init: boolean; - - isWrite(): boolean; - isRead(): boolean; - isWriteOnly(): boolean; - isReadOnly(): boolean; - isReadWrite(): boolean; -} - -export interface AnalysisOptions { - optimistic?: boolean; - directive?: boolean; - ignoreEval?: boolean; - nodejsScope?: boolean; - impliedStrict?: boolean; - fallback?: string | ((node: {}) => string[]); - sourceType?: "script" | "module"; - ecmaVersion?: number; -} - -export function analyze(ast: {}, options?: AnalysisOptions): ScopeManager; diff --git a/build_vtk_bundle/node_modules/@types/eslint-scope/package.json b/build_vtk_bundle/node_modules/@types/eslint-scope/package.json deleted file mode 100644 index 4dabc9ba..00000000 --- a/build_vtk_bundle/node_modules/@types/eslint-scope/package.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "@types/eslint-scope", - "version": "3.7.7", - "description": "TypeScript definitions for eslint-scope", - "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint-scope", - "license": "MIT", - "contributors": [ - { - "name": "Toru Nagashima", - "githubUsername": "mysticatea", - "url": "https://github.com/mysticatea" - } - ], - "main": "", - "types": "index.d.ts", - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", - "directory": "types/eslint-scope" - }, - "scripts": {}, - "dependencies": { - "@types/eslint": "*", - "@types/estree": "*" - }, - "typesPublisherContentHash": "49eee35b78c19e2c83bc96ce190c7a88329006f876dd7f1fb378c1e8034fc8f2", - "typeScriptVersion": "4.5" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@types/eslint/LICENSE b/build_vtk_bundle/node_modules/@types/eslint/LICENSE deleted file mode 100644 index 9e841e7a..00000000 --- a/build_vtk_bundle/node_modules/@types/eslint/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - MIT License - - Copyright (c) Microsoft Corporation. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE diff --git a/build_vtk_bundle/node_modules/@types/eslint/README.md b/build_vtk_bundle/node_modules/@types/eslint/README.md deleted file mode 100644 index 4757ca94..00000000 --- a/build_vtk_bundle/node_modules/@types/eslint/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Installation -> `npm install --save @types/eslint` - -# Summary -This package contains type definitions for eslint (https://eslint.org). - -# Details -Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint. - -### Additional Details - * Last updated: Mon, 26 Aug 2024 07:08:02 GMT - * Dependencies: [@types/estree](https://npmjs.com/package/@types/estree), [@types/json-schema](https://npmjs.com/package/@types/json-schema) - -# Credits -These definitions were written by [Pierre-Marie Dartus](https://github.com/pmdartus), [Jed Fox](https://github.com/j-f1), [Saad Quadri](https://github.com/saadq), [Jason Kwok](https://github.com/JasonHK), [Brad Zacher](https://github.com/bradzacher), [JounQin](https://github.com/JounQin), and [Bryan Mishkin](https://github.com/bmish). diff --git a/build_vtk_bundle/node_modules/@types/eslint/index.d.ts b/build_vtk_bundle/node_modules/@types/eslint/index.d.ts deleted file mode 100644 index 76dab774..00000000 --- a/build_vtk_bundle/node_modules/@types/eslint/index.d.ts +++ /dev/null @@ -1,1596 +0,0 @@ -import * as ESTree from "estree"; -import { JSONSchema4 } from "json-schema"; -import { LegacyESLint } from "./use-at-your-own-risk"; - -export namespace AST { - type TokenType = - | "Boolean" - | "Null" - | "Identifier" - | "Keyword" - | "Punctuator" - | "JSXIdentifier" - | "JSXText" - | "Numeric" - | "String" - | "RegularExpression"; - - interface Token { - type: TokenType; - value: string; - range: Range; - loc: SourceLocation; - } - - interface SourceLocation { - start: ESTree.Position; - end: ESTree.Position; - } - - type Range = [number, number]; - - interface Program extends ESTree.Program { - comments: ESTree.Comment[]; - tokens: Token[]; - loc: SourceLocation; - range: Range; - } -} - -export namespace Scope { - interface ScopeManager { - scopes: Scope[]; - globalScope: Scope | null; - - acquire(node: ESTree.Node, inner?: boolean): Scope | null; - - getDeclaredVariables(node: ESTree.Node): Variable[]; - } - - interface Scope { - type: - | "block" - | "catch" - | "class" - | "for" - | "function" - | "function-expression-name" - | "global" - | "module" - | "switch" - | "with" - | "TDZ"; - isStrict: boolean; - upper: Scope | null; - childScopes: Scope[]; - variableScope: Scope; - block: ESTree.Node; - variables: Variable[]; - set: Map; - references: Reference[]; - through: Reference[]; - functionExpressionScope: boolean; - } - - interface Variable { - name: string; - scope: Scope; - identifiers: ESTree.Identifier[]; - references: Reference[]; - defs: Definition[]; - } - - interface Reference { - identifier: ESTree.Identifier; - from: Scope; - resolved: Variable | null; - writeExpr: ESTree.Node | null; - init: boolean; - - isWrite(): boolean; - - isRead(): boolean; - - isWriteOnly(): boolean; - - isReadOnly(): boolean; - - isReadWrite(): boolean; - } - - type DefinitionType = - | { type: "CatchClause"; node: ESTree.CatchClause; parent: null } - | { type: "ClassName"; node: ESTree.ClassDeclaration | ESTree.ClassExpression; parent: null } - | { type: "FunctionName"; node: ESTree.FunctionDeclaration | ESTree.FunctionExpression; parent: null } - | { type: "ImplicitGlobalVariable"; node: ESTree.Program; parent: null } - | { - type: "ImportBinding"; - node: ESTree.ImportSpecifier | ESTree.ImportDefaultSpecifier | ESTree.ImportNamespaceSpecifier; - parent: ESTree.ImportDeclaration; - } - | { - type: "Parameter"; - node: ESTree.FunctionDeclaration | ESTree.FunctionExpression | ESTree.ArrowFunctionExpression; - parent: null; - } - | { type: "TDZ"; node: any; parent: null } - | { type: "Variable"; node: ESTree.VariableDeclarator; parent: ESTree.VariableDeclaration }; - - type Definition = DefinitionType & { name: ESTree.Identifier }; -} - -// #region SourceCode - -export class SourceCode { - text: string; - ast: AST.Program; - lines: string[]; - hasBOM: boolean; - parserServices: SourceCode.ParserServices; - scopeManager: Scope.ScopeManager; - visitorKeys: SourceCode.VisitorKeys; - - constructor(text: string, ast: AST.Program); - constructor(config: SourceCode.Config); - - static splitLines(text: string): string[]; - - getText(node?: ESTree.Node, beforeCount?: number, afterCount?: number): string; - - getLines(): string[]; - - getAllComments(): ESTree.Comment[]; - - getAncestors(node: ESTree.Node): ESTree.Node[]; - - getDeclaredVariables(node: ESTree.Node): Scope.Variable[]; - - getJSDocComment(node: ESTree.Node): ESTree.Comment | null; - - getNodeByRangeIndex(index: number): ESTree.Node | null; - - isSpaceBetweenTokens(first: AST.Token, second: AST.Token): boolean; - - getLocFromIndex(index: number): ESTree.Position; - - getIndexFromLoc(location: ESTree.Position): number; - - // Inherited methods from TokenStore - // --------------------------------- - - getTokenByRangeStart(offset: number, options?: { includeComments: false }): AST.Token | null; - getTokenByRangeStart(offset: number, options: { includeComments: boolean }): AST.Token | ESTree.Comment | null; - - getFirstToken: SourceCode.UnaryNodeCursorWithSkipOptions; - - getFirstTokens: SourceCode.UnaryNodeCursorWithCountOptions; - - getLastToken: SourceCode.UnaryNodeCursorWithSkipOptions; - - getLastTokens: SourceCode.UnaryNodeCursorWithCountOptions; - - getTokenBefore: SourceCode.UnaryCursorWithSkipOptions; - - getTokensBefore: SourceCode.UnaryCursorWithCountOptions; - - getTokenAfter: SourceCode.UnaryCursorWithSkipOptions; - - getTokensAfter: SourceCode.UnaryCursorWithCountOptions; - - getFirstTokenBetween: SourceCode.BinaryCursorWithSkipOptions; - - getFirstTokensBetween: SourceCode.BinaryCursorWithCountOptions; - - getLastTokenBetween: SourceCode.BinaryCursorWithSkipOptions; - - getLastTokensBetween: SourceCode.BinaryCursorWithCountOptions; - - getTokensBetween: SourceCode.BinaryCursorWithCountOptions; - - getTokens: - & ((node: ESTree.Node, beforeCount?: number, afterCount?: number) => AST.Token[]) - & SourceCode.UnaryNodeCursorWithCountOptions; - - commentsExistBetween( - left: ESTree.Node | AST.Token | ESTree.Comment, - right: ESTree.Node | AST.Token | ESTree.Comment, - ): boolean; - - getCommentsBefore(nodeOrToken: ESTree.Node | AST.Token): ESTree.Comment[]; - - getCommentsAfter(nodeOrToken: ESTree.Node | AST.Token): ESTree.Comment[]; - - getCommentsInside(node: ESTree.Node): ESTree.Comment[]; - - getScope(node: ESTree.Node): Scope.Scope; - - isSpaceBetween( - first: ESTree.Node | AST.Token, - second: ESTree.Node | AST.Token, - ): boolean; - - markVariableAsUsed(name: string, refNode?: ESTree.Node): boolean; -} - -export namespace SourceCode { - interface Config { - text: string; - ast: AST.Program; - parserServices?: ParserServices | undefined; - scopeManager?: Scope.ScopeManager | undefined; - visitorKeys?: VisitorKeys | undefined; - } - - type ParserServices = any; - - interface VisitorKeys { - [nodeType: string]: string[]; - } - - interface UnaryNodeCursorWithSkipOptions { - ( - node: ESTree.Node, - options: - | ((token: AST.Token) => token is T) - | { - filter: (token: AST.Token) => token is T; - includeComments?: false | undefined; - skip?: number | undefined; - }, - ): T | null; - ( - node: ESTree.Node, - options: { - filter: (tokenOrComment: AST.Token | ESTree.Comment) => tokenOrComment is T; - includeComments: boolean; - skip?: number | undefined; - }, - ): T | null; - ( - node: ESTree.Node, - options?: - | { - filter?: ((token: AST.Token) => boolean) | undefined; - includeComments?: false | undefined; - skip?: number | undefined; - } - | ((token: AST.Token) => boolean) - | number, - ): AST.Token | null; - ( - node: ESTree.Node, - options: { - filter?: ((token: AST.Token | ESTree.Comment) => boolean) | undefined; - includeComments: boolean; - skip?: number | undefined; - }, - ): AST.Token | ESTree.Comment | null; - } - - interface UnaryNodeCursorWithCountOptions { - ( - node: ESTree.Node, - options: - | ((token: AST.Token) => token is T) - | { - filter: (token: AST.Token) => token is T; - includeComments?: false | undefined; - count?: number | undefined; - }, - ): T[]; - ( - node: ESTree.Node, - options: { - filter: (tokenOrComment: AST.Token | ESTree.Comment) => tokenOrComment is T; - includeComments: boolean; - count?: number | undefined; - }, - ): T[]; - ( - node: ESTree.Node, - options?: - | { - filter?: ((token: AST.Token) => boolean) | undefined; - includeComments?: false | undefined; - count?: number | undefined; - } - | ((token: AST.Token) => boolean) - | number, - ): AST.Token[]; - ( - node: ESTree.Node, - options: { - filter?: ((token: AST.Token | ESTree.Comment) => boolean) | undefined; - includeComments: boolean; - count?: number | undefined; - }, - ): Array; - } - - interface UnaryCursorWithSkipOptions { - ( - node: ESTree.Node | AST.Token | ESTree.Comment, - options: - | ((token: AST.Token) => token is T) - | { - filter: (token: AST.Token) => token is T; - includeComments?: false | undefined; - skip?: number | undefined; - }, - ): T | null; - ( - node: ESTree.Node | AST.Token | ESTree.Comment, - options: { - filter: (tokenOrComment: AST.Token | ESTree.Comment) => tokenOrComment is T; - includeComments: boolean; - skip?: number | undefined; - }, - ): T | null; - ( - node: ESTree.Node | AST.Token | ESTree.Comment, - options?: - | { - filter?: ((token: AST.Token) => boolean) | undefined; - includeComments?: false | undefined; - skip?: number | undefined; - } - | ((token: AST.Token) => boolean) - | number, - ): AST.Token | null; - ( - node: ESTree.Node | AST.Token | ESTree.Comment, - options: { - filter?: ((token: AST.Token | ESTree.Comment) => boolean) | undefined; - includeComments: boolean; - skip?: number | undefined; - }, - ): AST.Token | ESTree.Comment | null; - } - - interface UnaryCursorWithCountOptions { - ( - node: ESTree.Node | AST.Token | ESTree.Comment, - options: - | ((token: AST.Token) => token is T) - | { - filter: (token: AST.Token) => token is T; - includeComments?: false | undefined; - count?: number | undefined; - }, - ): T[]; - ( - node: ESTree.Node | AST.Token | ESTree.Comment, - options: { - filter: (tokenOrComment: AST.Token | ESTree.Comment) => tokenOrComment is T; - includeComments: boolean; - count?: number | undefined; - }, - ): T[]; - ( - node: ESTree.Node | AST.Token | ESTree.Comment, - options?: - | { - filter?: ((token: AST.Token) => boolean) | undefined; - includeComments?: false | undefined; - count?: number | undefined; - } - | ((token: AST.Token) => boolean) - | number, - ): AST.Token[]; - ( - node: ESTree.Node | AST.Token | ESTree.Comment, - options: { - filter?: ((token: AST.Token | ESTree.Comment) => boolean) | undefined; - includeComments: boolean; - count?: number | undefined; - }, - ): Array; - } - - interface BinaryCursorWithSkipOptions { - ( - left: ESTree.Node | AST.Token | ESTree.Comment, - right: ESTree.Node | AST.Token | ESTree.Comment, - options: - | ((token: AST.Token) => token is T) - | { - filter: (token: AST.Token) => token is T; - includeComments?: false | undefined; - skip?: number | undefined; - }, - ): T | null; - ( - left: ESTree.Node | AST.Token | ESTree.Comment, - right: ESTree.Node | AST.Token | ESTree.Comment, - options: { - filter: (tokenOrComment: AST.Token | ESTree.Comment) => tokenOrComment is T; - includeComments: boolean; - skip?: number | undefined; - }, - ): T | null; - ( - left: ESTree.Node | AST.Token | ESTree.Comment, - right: ESTree.Node | AST.Token | ESTree.Comment, - options?: - | { - filter?: ((token: AST.Token) => boolean) | undefined; - includeComments?: false | undefined; - skip?: number | undefined; - } - | ((token: AST.Token) => boolean) - | number, - ): AST.Token | null; - ( - left: ESTree.Node | AST.Token | ESTree.Comment, - right: ESTree.Node | AST.Token | ESTree.Comment, - options: { - filter?: ((token: AST.Token | ESTree.Comment) => boolean) | undefined; - includeComments: boolean; - skip?: number | undefined; - }, - ): AST.Token | ESTree.Comment | null; - } - - interface BinaryCursorWithCountOptions { - ( - left: ESTree.Node | AST.Token | ESTree.Comment, - right: ESTree.Node | AST.Token | ESTree.Comment, - options: - | ((token: AST.Token) => token is T) - | { - filter: (token: AST.Token) => token is T; - includeComments?: false | undefined; - count?: number | undefined; - }, - ): T[]; - ( - left: ESTree.Node | AST.Token | ESTree.Comment, - right: ESTree.Node | AST.Token | ESTree.Comment, - options: { - filter: (tokenOrComment: AST.Token | ESTree.Comment) => tokenOrComment is T; - includeComments: boolean; - count?: number | undefined; - }, - ): T[]; - ( - left: ESTree.Node | AST.Token | ESTree.Comment, - right: ESTree.Node | AST.Token | ESTree.Comment, - options?: - | { - filter?: ((token: AST.Token) => boolean) | undefined; - includeComments?: false | undefined; - count?: number | undefined; - } - | ((token: AST.Token) => boolean) - | number, - ): AST.Token[]; - ( - left: ESTree.Node | AST.Token | ESTree.Comment, - right: ESTree.Node | AST.Token | ESTree.Comment, - options: { - filter?: ((token: AST.Token | ESTree.Comment) => boolean) | undefined; - includeComments: boolean; - count?: number | undefined; - }, - ): Array; - } -} - -// #endregion - -export namespace Rule { - interface RuleModule { - create(context: RuleContext): RuleListener; - meta?: RuleMetaData | undefined; - } - - type NodeTypes = ESTree.Node["type"]; - interface NodeListener { - ArrayExpression?: ((node: ESTree.ArrayExpression & NodeParentExtension) => void) | undefined; - "ArrayExpression:exit"?: ((node: ESTree.ArrayExpression & NodeParentExtension) => void) | undefined; - ArrayPattern?: ((node: ESTree.ArrayPattern & NodeParentExtension) => void) | undefined; - "ArrayPattern:exit"?: ((node: ESTree.ArrayPattern & NodeParentExtension) => void) | undefined; - ArrowFunctionExpression?: ((node: ESTree.ArrowFunctionExpression & NodeParentExtension) => void) | undefined; - "ArrowFunctionExpression:exit"?: - | ((node: ESTree.ArrowFunctionExpression & NodeParentExtension) => void) - | undefined; - AssignmentExpression?: ((node: ESTree.AssignmentExpression & NodeParentExtension) => void) | undefined; - "AssignmentExpression:exit"?: ((node: ESTree.AssignmentExpression & NodeParentExtension) => void) | undefined; - AssignmentPattern?: ((node: ESTree.AssignmentPattern & NodeParentExtension) => void) | undefined; - "AssignmentPattern:exit"?: ((node: ESTree.AssignmentPattern & NodeParentExtension) => void) | undefined; - AwaitExpression?: ((node: ESTree.AwaitExpression & NodeParentExtension) => void) | undefined; - "AwaitExpression:exit"?: ((node: ESTree.AwaitExpression & NodeParentExtension) => void) | undefined; - BinaryExpression?: ((node: ESTree.BinaryExpression & NodeParentExtension) => void) | undefined; - "BinaryExpression:exit"?: ((node: ESTree.BinaryExpression & NodeParentExtension) => void) | undefined; - BlockStatement?: ((node: ESTree.BlockStatement & NodeParentExtension) => void) | undefined; - "BlockStatement:exit"?: ((node: ESTree.BlockStatement & NodeParentExtension) => void) | undefined; - BreakStatement?: ((node: ESTree.BreakStatement & NodeParentExtension) => void) | undefined; - "BreakStatement:exit"?: ((node: ESTree.BreakStatement & NodeParentExtension) => void) | undefined; - CallExpression?: ((node: ESTree.CallExpression & NodeParentExtension) => void) | undefined; - "CallExpression:exit"?: ((node: ESTree.CallExpression & NodeParentExtension) => void) | undefined; - CatchClause?: ((node: ESTree.CatchClause & NodeParentExtension) => void) | undefined; - "CatchClause:exit"?: ((node: ESTree.CatchClause & NodeParentExtension) => void) | undefined; - ChainExpression?: ((node: ESTree.ChainExpression & NodeParentExtension) => void) | undefined; - "ChainExpression:exit"?: ((node: ESTree.ChainExpression & NodeParentExtension) => void) | undefined; - ClassBody?: ((node: ESTree.ClassBody & NodeParentExtension) => void) | undefined; - "ClassBody:exit"?: ((node: ESTree.ClassBody & NodeParentExtension) => void) | undefined; - ClassDeclaration?: ((node: ESTree.ClassDeclaration & NodeParentExtension) => void) | undefined; - "ClassDeclaration:exit"?: ((node: ESTree.ClassDeclaration & NodeParentExtension) => void) | undefined; - ClassExpression?: ((node: ESTree.ClassExpression & NodeParentExtension) => void) | undefined; - "ClassExpression:exit"?: ((node: ESTree.ClassExpression & NodeParentExtension) => void) | undefined; - ConditionalExpression?: ((node: ESTree.ConditionalExpression & NodeParentExtension) => void) | undefined; - "ConditionalExpression:exit"?: ((node: ESTree.ConditionalExpression & NodeParentExtension) => void) | undefined; - ContinueStatement?: ((node: ESTree.ContinueStatement & NodeParentExtension) => void) | undefined; - "ContinueStatement:exit"?: ((node: ESTree.ContinueStatement & NodeParentExtension) => void) | undefined; - DebuggerStatement?: ((node: ESTree.DebuggerStatement & NodeParentExtension) => void) | undefined; - "DebuggerStatement:exit"?: ((node: ESTree.DebuggerStatement & NodeParentExtension) => void) | undefined; - DoWhileStatement?: ((node: ESTree.DoWhileStatement & NodeParentExtension) => void) | undefined; - "DoWhileStatement:exit"?: ((node: ESTree.DoWhileStatement & NodeParentExtension) => void) | undefined; - EmptyStatement?: ((node: ESTree.EmptyStatement & NodeParentExtension) => void) | undefined; - "EmptyStatement:exit"?: ((node: ESTree.EmptyStatement & NodeParentExtension) => void) | undefined; - ExportAllDeclaration?: ((node: ESTree.ExportAllDeclaration & NodeParentExtension) => void) | undefined; - "ExportAllDeclaration:exit"?: ((node: ESTree.ExportAllDeclaration & NodeParentExtension) => void) | undefined; - ExportDefaultDeclaration?: ((node: ESTree.ExportDefaultDeclaration & NodeParentExtension) => void) | undefined; - "ExportDefaultDeclaration:exit"?: - | ((node: ESTree.ExportDefaultDeclaration & NodeParentExtension) => void) - | undefined; - ExportNamedDeclaration?: ((node: ESTree.ExportNamedDeclaration & NodeParentExtension) => void) | undefined; - "ExportNamedDeclaration:exit"?: - | ((node: ESTree.ExportNamedDeclaration & NodeParentExtension) => void) - | undefined; - ExportSpecifier?: ((node: ESTree.ExportSpecifier & NodeParentExtension) => void) | undefined; - "ExportSpecifier:exit"?: ((node: ESTree.ExportSpecifier & NodeParentExtension) => void) | undefined; - ExpressionStatement?: ((node: ESTree.ExpressionStatement & NodeParentExtension) => void) | undefined; - "ExpressionStatement:exit"?: ((node: ESTree.ExpressionStatement & NodeParentExtension) => void) | undefined; - ForInStatement?: ((node: ESTree.ForInStatement & NodeParentExtension) => void) | undefined; - "ForInStatement:exit"?: ((node: ESTree.ForInStatement & NodeParentExtension) => void) | undefined; - ForOfStatement?: ((node: ESTree.ForOfStatement & NodeParentExtension) => void) | undefined; - "ForOfStatement:exit"?: ((node: ESTree.ForOfStatement & NodeParentExtension) => void) | undefined; - ForStatement?: ((node: ESTree.ForStatement & NodeParentExtension) => void) | undefined; - "ForStatement:exit"?: ((node: ESTree.ForStatement & NodeParentExtension) => void) | undefined; - FunctionDeclaration?: ((node: ESTree.FunctionDeclaration & NodeParentExtension) => void) | undefined; - "FunctionDeclaration:exit"?: ((node: ESTree.FunctionDeclaration & NodeParentExtension) => void) | undefined; - FunctionExpression?: ((node: ESTree.FunctionExpression & NodeParentExtension) => void) | undefined; - "FunctionExpression:exit"?: ((node: ESTree.FunctionExpression & NodeParentExtension) => void) | undefined; - Identifier?: ((node: ESTree.Identifier & NodeParentExtension) => void) | undefined; - "Identifier:exit"?: ((node: ESTree.Identifier & NodeParentExtension) => void) | undefined; - IfStatement?: ((node: ESTree.IfStatement & NodeParentExtension) => void) | undefined; - "IfStatement:exit"?: ((node: ESTree.IfStatement & NodeParentExtension) => void) | undefined; - ImportDeclaration?: ((node: ESTree.ImportDeclaration & NodeParentExtension) => void) | undefined; - "ImportDeclaration:exit"?: ((node: ESTree.ImportDeclaration & NodeParentExtension) => void) | undefined; - ImportDefaultSpecifier?: ((node: ESTree.ImportDefaultSpecifier & NodeParentExtension) => void) | undefined; - "ImportDefaultSpecifier:exit"?: - | ((node: ESTree.ImportDefaultSpecifier & NodeParentExtension) => void) - | undefined; - ImportExpression?: ((node: ESTree.ImportExpression & NodeParentExtension) => void) | undefined; - "ImportExpression:exit"?: ((node: ESTree.ImportExpression & NodeParentExtension) => void) | undefined; - ImportNamespaceSpecifier?: ((node: ESTree.ImportNamespaceSpecifier & NodeParentExtension) => void) | undefined; - "ImportNamespaceSpecifier:exit"?: - | ((node: ESTree.ImportNamespaceSpecifier & NodeParentExtension) => void) - | undefined; - ImportSpecifier?: ((node: ESTree.ImportSpecifier & NodeParentExtension) => void) | undefined; - "ImportSpecifier:exit"?: ((node: ESTree.ImportSpecifier & NodeParentExtension) => void) | undefined; - LabeledStatement?: ((node: ESTree.LabeledStatement & NodeParentExtension) => void) | undefined; - "LabeledStatement:exit"?: ((node: ESTree.LabeledStatement & NodeParentExtension) => void) | undefined; - Literal?: ((node: ESTree.Literal & NodeParentExtension) => void) | undefined; - "Literal:exit"?: ((node: ESTree.Literal & NodeParentExtension) => void) | undefined; - LogicalExpression?: ((node: ESTree.LogicalExpression & NodeParentExtension) => void) | undefined; - "LogicalExpression:exit"?: ((node: ESTree.LogicalExpression & NodeParentExtension) => void) | undefined; - MemberExpression?: ((node: ESTree.MemberExpression & NodeParentExtension) => void) | undefined; - "MemberExpression:exit"?: ((node: ESTree.MemberExpression & NodeParentExtension) => void) | undefined; - MetaProperty?: ((node: ESTree.MetaProperty & NodeParentExtension) => void) | undefined; - "MetaProperty:exit"?: ((node: ESTree.MetaProperty & NodeParentExtension) => void) | undefined; - MethodDefinition?: ((node: ESTree.MethodDefinition & NodeParentExtension) => void) | undefined; - "MethodDefinition:exit"?: ((node: ESTree.MethodDefinition & NodeParentExtension) => void) | undefined; - NewExpression?: ((node: ESTree.NewExpression & NodeParentExtension) => void) | undefined; - "NewExpression:exit"?: ((node: ESTree.NewExpression & NodeParentExtension) => void) | undefined; - ObjectExpression?: ((node: ESTree.ObjectExpression & NodeParentExtension) => void) | undefined; - "ObjectExpression:exit"?: ((node: ESTree.ObjectExpression & NodeParentExtension) => void) | undefined; - ObjectPattern?: ((node: ESTree.ObjectPattern & NodeParentExtension) => void) | undefined; - "ObjectPattern:exit"?: ((node: ESTree.ObjectPattern & NodeParentExtension) => void) | undefined; - PrivateIdentifier?: ((node: ESTree.PrivateIdentifier & NodeParentExtension) => void) | undefined; - "PrivateIdentifier:exit"?: ((node: ESTree.PrivateIdentifier & NodeParentExtension) => void) | undefined; - Program?: ((node: ESTree.Program) => void) | undefined; - "Program:exit"?: ((node: ESTree.Program) => void) | undefined; - Property?: ((node: ESTree.Property & NodeParentExtension) => void) | undefined; - "Property:exit"?: ((node: ESTree.Property & NodeParentExtension) => void) | undefined; - PropertyDefinition?: ((node: ESTree.PropertyDefinition & NodeParentExtension) => void) | undefined; - "PropertyDefinition:exit"?: ((node: ESTree.PropertyDefinition & NodeParentExtension) => void) | undefined; - RestElement?: ((node: ESTree.RestElement & NodeParentExtension) => void) | undefined; - "RestElement:exit"?: ((node: ESTree.RestElement & NodeParentExtension) => void) | undefined; - ReturnStatement?: ((node: ESTree.ReturnStatement & NodeParentExtension) => void) | undefined; - "ReturnStatement:exit"?: ((node: ESTree.ReturnStatement & NodeParentExtension) => void) | undefined; - SequenceExpression?: ((node: ESTree.SequenceExpression & NodeParentExtension) => void) | undefined; - "SequenceExpression:exit"?: ((node: ESTree.SequenceExpression & NodeParentExtension) => void) | undefined; - SpreadElement?: ((node: ESTree.SpreadElement & NodeParentExtension) => void) | undefined; - "SpreadElement:exit"?: ((node: ESTree.SpreadElement & NodeParentExtension) => void) | undefined; - StaticBlock?: ((node: ESTree.StaticBlock & NodeParentExtension) => void) | undefined; - "StaticBlock:exit"?: ((node: ESTree.StaticBlock & NodeParentExtension) => void) | undefined; - Super?: ((node: ESTree.Super & NodeParentExtension) => void) | undefined; - "Super:exit"?: ((node: ESTree.Super & NodeParentExtension) => void) | undefined; - SwitchCase?: ((node: ESTree.SwitchCase & NodeParentExtension) => void) | undefined; - "SwitchCase:exit"?: ((node: ESTree.SwitchCase & NodeParentExtension) => void) | undefined; - SwitchStatement?: ((node: ESTree.SwitchStatement & NodeParentExtension) => void) | undefined; - "SwitchStatement:exit"?: ((node: ESTree.SwitchStatement & NodeParentExtension) => void) | undefined; - TaggedTemplateExpression?: ((node: ESTree.TaggedTemplateExpression & NodeParentExtension) => void) | undefined; - "TaggedTemplateExpression:exit"?: - | ((node: ESTree.TaggedTemplateExpression & NodeParentExtension) => void) - | undefined; - TemplateElement?: ((node: ESTree.TemplateElement & NodeParentExtension) => void) | undefined; - "TemplateElement:exit"?: ((node: ESTree.TemplateElement & NodeParentExtension) => void) | undefined; - TemplateLiteral?: ((node: ESTree.TemplateLiteral & NodeParentExtension) => void) | undefined; - "TemplateLiteral:exit"?: ((node: ESTree.TemplateLiteral & NodeParentExtension) => void) | undefined; - ThisExpression?: ((node: ESTree.ThisExpression & NodeParentExtension) => void) | undefined; - "ThisExpression:exit"?: ((node: ESTree.ThisExpression & NodeParentExtension) => void) | undefined; - ThrowStatement?: ((node: ESTree.ThrowStatement & NodeParentExtension) => void) | undefined; - "ThrowStatement:exit"?: ((node: ESTree.ThrowStatement & NodeParentExtension) => void) | undefined; - TryStatement?: ((node: ESTree.TryStatement & NodeParentExtension) => void) | undefined; - "TryStatement:exit"?: ((node: ESTree.TryStatement & NodeParentExtension) => void) | undefined; - UnaryExpression?: ((node: ESTree.UnaryExpression & NodeParentExtension) => void) | undefined; - "UnaryExpression:exit"?: ((node: ESTree.UnaryExpression & NodeParentExtension) => void) | undefined; - UpdateExpression?: ((node: ESTree.UpdateExpression & NodeParentExtension) => void) | undefined; - "UpdateExpression:exit"?: ((node: ESTree.UpdateExpression & NodeParentExtension) => void) | undefined; - VariableDeclaration?: ((node: ESTree.VariableDeclaration & NodeParentExtension) => void) | undefined; - "VariableDeclaration:exit"?: ((node: ESTree.VariableDeclaration & NodeParentExtension) => void) | undefined; - VariableDeclarator?: ((node: ESTree.VariableDeclarator & NodeParentExtension) => void) | undefined; - "VariableDeclarator:exit"?: ((node: ESTree.VariableDeclarator & NodeParentExtension) => void) | undefined; - WhileStatement?: ((node: ESTree.WhileStatement & NodeParentExtension) => void) | undefined; - "WhileStatement:exit"?: ((node: ESTree.WhileStatement & NodeParentExtension) => void) | undefined; - WithStatement?: ((node: ESTree.WithStatement & NodeParentExtension) => void) | undefined; - "WithStatement:exit"?: ((node: ESTree.WithStatement & NodeParentExtension) => void) | undefined; - YieldExpression?: ((node: ESTree.YieldExpression & NodeParentExtension) => void) | undefined; - "YieldExpression:exit"?: ((node: ESTree.YieldExpression & NodeParentExtension) => void) | undefined; - } - - interface NodeParentExtension { - parent: Node; - } - type Node = ESTree.Node & NodeParentExtension; - - interface RuleListener extends NodeListener { - onCodePathStart?(codePath: CodePath, node: Node): void; - - onCodePathEnd?(codePath: CodePath, node: Node): void; - - onCodePathSegmentStart?(segment: CodePathSegment, node: Node): void; - - onCodePathSegmentEnd?(segment: CodePathSegment, node: Node): void; - - onCodePathSegmentLoop?(fromSegment: CodePathSegment, toSegment: CodePathSegment, node: Node): void; - - [key: string]: - | ((codePath: CodePath, node: Node) => void) - | ((segment: CodePathSegment, node: Node) => void) - | ((fromSegment: CodePathSegment, toSegment: CodePathSegment, node: Node) => void) - | ((node: Node) => void) - | NodeListener[keyof NodeListener] - | undefined; - } - - type CodePathOrigin = "program" | "function" | "class-field-initializer" | "class-static-block"; - - interface CodePath { - id: string; - origin: CodePathOrigin; - initialSegment: CodePathSegment; - finalSegments: CodePathSegment[]; - returnedSegments: CodePathSegment[]; - thrownSegments: CodePathSegment[]; - upper: CodePath | null; - childCodePaths: CodePath[]; - } - - interface CodePathSegment { - id: string; - nextSegments: CodePathSegment[]; - prevSegments: CodePathSegment[]; - reachable: boolean; - } - - interface RuleMetaData { - /** Properties often used for documentation generation and tooling. */ - docs?: { - /** Provides a short description of the rule. Commonly used when generating lists of rules. */ - description?: string | undefined; - /** Historically used by some plugins that divide rules into categories in their documentation. */ - category?: string | undefined; - /** Historically used by some plugins to indicate a rule belongs in their `recommended` configuration. */ - recommended?: boolean | undefined; - /** Specifies the URL at which the full documentation can be accessed. Code editors often use this to provide a helpful link on highlighted rule violations. */ - url?: string | undefined; - } | undefined; - /** Violation and suggestion messages. */ - messages?: { [messageId: string]: string } | undefined; - /** - * Specifies if the `--fix` option on the command line automatically fixes problems reported by the rule. - * Mandatory for fixable rules. - */ - fixable?: "code" | "whitespace" | undefined; - /** - * Specifies the [options](https://eslint.org/docs/latest/extend/custom-rules#options-schemas) - * so ESLint can prevent invalid [rule configurations](https://eslint.org/docs/latest/use/configure/rules#configuring-rules). - * Mandatory for rules with options. - */ - schema?: JSONSchema4 | JSONSchema4[] | false | undefined; - - /** Indicates whether the rule has been deprecated. Omit if not deprecated. */ - deprecated?: boolean | undefined; - /** The name of the rule(s) this rule was replaced by, if it was deprecated. */ - replacedBy?: readonly string[]; - - /** - * Indicates the type of rule: - * - `"problem"` means the rule is identifying code that either will cause an error or may cause a confusing behavior. Developers should consider this a high priority to resolve. - * - `"suggestion"` means the rule is identifying something that could be done in a better way but no errors will occur if the code isn’t changed. - * - `"layout"` means the rule cares primarily about whitespace, semicolons, commas, and parentheses, - * all the parts of the program that determine how the code looks rather than how it executes. - * These rules work on parts of the code that aren’t specified in the AST. - */ - type?: "problem" | "suggestion" | "layout" | undefined; - /** - * Specifies whether the rule can return suggestions (defaults to `false` if omitted). - * Mandatory for rules that provide suggestions. - */ - hasSuggestions?: boolean | undefined; - } - - interface RuleContext { - id: string; - options: any[]; - settings: { [name: string]: any }; - parserPath: string | undefined; - languageOptions: Linter.LanguageOptions; - parserOptions: Linter.ParserOptions; - cwd: string; - filename: string; - physicalFilename: string; - sourceCode: SourceCode; - - getAncestors(): ESTree.Node[]; - - getDeclaredVariables(node: ESTree.Node): Scope.Variable[]; - - /** @deprecated Use property `filename` directly instead */ - getFilename(): string; - - /** @deprecated Use property `physicalFilename` directly instead */ - getPhysicalFilename(): string; - - /** @deprecated Use property `cwd` directly instead */ - getCwd(): string; - - getScope(): Scope.Scope; - - /** @deprecated Use property `sourceCode` directly instead */ - getSourceCode(): SourceCode; - - markVariableAsUsed(name: string): boolean; - - report(descriptor: ReportDescriptor): void; - } - - type ReportFixer = (fixer: RuleFixer) => null | Fix | IterableIterator | Fix[]; - - interface ReportDescriptorOptionsBase { - data?: { [key: string]: string }; - - fix?: null | ReportFixer; - } - - interface SuggestionReportOptions { - data?: { [key: string]: string }; - - fix: ReportFixer; - } - - type SuggestionDescriptorMessage = { desc: string } | { messageId: string }; - type SuggestionReportDescriptor = SuggestionDescriptorMessage & SuggestionReportOptions; - - interface ReportDescriptorOptions extends ReportDescriptorOptionsBase { - suggest?: SuggestionReportDescriptor[] | null | undefined; - } - - type ReportDescriptor = ReportDescriptorMessage & ReportDescriptorLocation & ReportDescriptorOptions; - type ReportDescriptorMessage = { message: string } | { messageId: string }; - type ReportDescriptorLocation = - | { node: ESTree.Node } - | { loc: AST.SourceLocation | { line: number; column: number } }; - - interface RuleFixer { - insertTextAfter(nodeOrToken: ESTree.Node | AST.Token, text: string): Fix; - - insertTextAfterRange(range: AST.Range, text: string): Fix; - - insertTextBefore(nodeOrToken: ESTree.Node | AST.Token, text: string): Fix; - - insertTextBeforeRange(range: AST.Range, text: string): Fix; - - remove(nodeOrToken: ESTree.Node | AST.Token): Fix; - - removeRange(range: AST.Range): Fix; - - replaceText(nodeOrToken: ESTree.Node | AST.Token, text: string): Fix; - - replaceTextRange(range: AST.Range, text: string): Fix; - } - - interface Fix { - range: AST.Range; - text: string; - } -} - -// #region Linter - -export class Linter { - static readonly version: string; - - version: string; - - constructor(options?: { cwd?: string | undefined; configType?: "flat" | "eslintrc" }); - - verify( - code: SourceCode | string, - config: Linter.LegacyConfig | Linter.Config | Linter.Config[], - filename?: string, - ): Linter.LintMessage[]; - verify( - code: SourceCode | string, - config: Linter.LegacyConfig | Linter.Config | Linter.Config[], - options: Linter.LintOptions, - ): Linter.LintMessage[]; - - verifyAndFix( - code: string, - config: Linter.LegacyConfig | Linter.Config | Linter.Config[], - filename?: string, - ): Linter.FixReport; - verifyAndFix( - code: string, - config: Linter.LegacyConfig | Linter.Config | Linter.Config[], - options: Linter.FixOptions, - ): Linter.FixReport; - - getSourceCode(): SourceCode; - - defineRule(name: string, rule: Rule.RuleModule): void; - - defineRules(rules: { [name: string]: Rule.RuleModule }): void; - - getRules(): Map; - - defineParser(name: string, parser: Linter.Parser): void; - - getTimes(): Linter.Stats["times"]; - - getFixPassCount(): Linter.Stats["fixPasses"]; -} - -export namespace Linter { - /** - * The numeric severity level for a rule. - * - * - `0` means off. - * - `1` means warn. - * - `2` means error. - * - * @see [Rule Severities](https://eslint.org/docs/latest/use/configure/rules#rule-severities) - */ - type Severity = 0 | 1 | 2; - - /** - * The human readable severity level for a rule. - * - * @see [Rule Severities](https://eslint.org/docs/latest/use/configure/rules#rule-severities) - */ - type StringSeverity = "off" | "warn" | "error"; - - /** - * The numeric or human readable severity level for a rule. - * - * @see [Rule Severities](https://eslint.org/docs/latest/use/configure/rules#rule-severities) - */ - type RuleSeverity = Severity | StringSeverity; - - /** - * An array containing the rule severity level, followed by the rule options. - * - * @see [Rules](https://eslint.org/docs/latest/use/configure/rules) - */ - type RuleSeverityAndOptions = [RuleSeverity, ...Partial]; - - /** - * The severity level for the rule or an array containing the rule severity level, followed by the rule options. - * - * @see [Rules](https://eslint.org/docs/latest/use/configure/rules) - */ - type RuleEntry = RuleSeverity | RuleSeverityAndOptions; - - /** - * The rules config object is a key/value map of rule names and their severity and options. - */ - interface RulesRecord { - [rule: string]: RuleEntry; - } - - /** - * A configuration object that may have a `rules` block. - */ - interface HasRules { - rules?: Partial | undefined; - } - - /** - * The ECMAScript version of the code being linted. - */ - type EcmaVersion = - | 3 - | 5 - | 6 - | 7 - | 8 - | 9 - | 10 - | 11 - | 12 - | 13 - | 14 - | 15 - | 16 - | 2015 - | 2016 - | 2017 - | 2018 - | 2019 - | 2020 - | 2021 - | 2022 - | 2023 - | 2024 - | 2025 - | "latest"; - - /** - * The type of JavaScript source code. - */ - type SourceType = "script" | "module" | "commonjs"; - - /** - * ESLint legacy configuration. - * - * @see [ESLint Legacy Configuration](https://eslint.org/docs/latest/use/configure/) - */ - interface BaseConfig - extends HasRules - { - $schema?: string | undefined; - - /** - * An environment provides predefined global variables. - * - * @see [Environments](https://eslint.org/docs/latest/use/configure/language-options-deprecated#specifying-environments) - */ - env?: { [name: string]: boolean } | undefined; - - /** - * Extending configuration files. - * - * @see [Extends](https://eslint.org/docs/latest/use/configure/configuration-files-deprecated#extending-configuration-files) - */ - extends?: string | string[] | undefined; - - /** - * Specifying globals. - * - * @see [Globals](https://eslint.org/docs/latest/use/configure/language-options-deprecated#specifying-globals) - */ - globals?: Linter.Globals | undefined; - - /** - * Disable processing of inline comments. - * - * @see [Disabling Inline Comments](https://eslint.org/docs/latest/use/configure/rules-deprecated#disabling-inline-comments) - */ - noInlineConfig?: boolean | undefined; - - /** - * Overrides can be used to use a differing configuration for matching sub-directories and files. - * - * @see [How do overrides work](https://eslint.org/docs/latest/use/configure/configuration-files-deprecated#how-do-overrides-work) - */ - overrides?: Array> | undefined; - - /** - * Parser. - * - * @see [Working with Custom Parsers](https://eslint.org/docs/latest/extend/custom-parsers) - * @see [Specifying Parser](https://eslint.org/docs/latest/use/configure/parser-deprecated) - */ - parser?: string | undefined; - - /** - * Parser options. - * - * @see [Working with Custom Parsers](https://eslint.org/docs/latest/extend/custom-parsers) - * @see [Specifying Parser Options](https://eslint.org/docs/latest/use/configure/language-options-deprecated#specifying-parser-options) - */ - parserOptions?: ParserOptions | undefined; - - /** - * Which third-party plugins define additional rules, environments, configs, etc. for ESLint to use. - * - * @see [Configuring Plugins](https://eslint.org/docs/latest/use/configure/plugins-deprecated#configure-plugins) - */ - plugins?: string[] | undefined; - - /** - * Specifying processor. - * - * @see [processor](https://eslint.org/docs/latest/use/configure/plugins-deprecated#specify-a-processor) - */ - processor?: string | undefined; - - /** - * Report unused eslint-disable comments as warning. - * - * @see [Report unused eslint-disable comments](https://eslint.org/docs/latest/use/configure/rules-deprecated#report-unused-eslint-disable-comments) - */ - reportUnusedDisableDirectives?: boolean | undefined; - - /** - * Settings. - * - * @see [Settings](https://eslint.org/docs/latest/use/configure/configuration-files-deprecated#adding-shared-settings) - */ - settings?: { [name: string]: any } | undefined; - } - - /** - * The overwrites that apply more differing configuration to specific files or directories. - */ - interface ConfigOverride extends BaseConfig { - /** - * The glob patterns for excluded files. - */ - excludedFiles?: string | string[] | undefined; - - /** - * The glob patterns for target files. - */ - files: string | string[]; - } - - /** - * ESLint legacy configuration. - * - * @see [ESLint Legacy Configuration](https://eslint.org/docs/latest/use/configure/) - */ - // https://github.com/eslint/eslint/blob/v8.57.0/conf/config-schema.js - interface LegacyConfig - extends BaseConfig - { - /** - * Tell ESLint to ignore specific files and directories. - * - * @see [Ignore Patterns](https://eslint.org/docs/latest/use/configure/ignore-deprecated#ignorepatterns-in-config-files) - */ - ignorePatterns?: string | string[] | undefined; - - /** - * @see [Using Configuration Files](https://eslint.org/docs/latest/use/configure/configuration-files-deprecated#using-configuration-files) - */ - root?: boolean | undefined; - } - - /** - * Parser options. - * - * @see [Specifying Parser Options](https://eslint.org/docs/latest/use/configure/language-options-deprecated#specifying-parser-options) - */ - interface ParserOptions { - /** - * Accepts any valid ECMAScript version number or `'latest'`: - * - * - A version: es3, es5, es6, es7, es8, es9, es10, es11, es12, es13, es14, ..., or - * - A year: es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, ..., or - * - `'latest'` - * - * When it's a version or a year, the value must be a number - so do not include the `es` prefix. - * - * Specifies the version of ECMAScript syntax you want to use. This is used by the parser to determine how to perform scope analysis, and it affects the default - * - * @default 5 - */ - ecmaVersion?: EcmaVersion | undefined; - - /** - * The type of JavaScript source code. Possible values are "script" for - * traditional script files, "module" for ECMAScript modules (ESM), and - * "commonjs" for CommonJS files. - * - * @default 'script' - * - * @see https://eslint.org/docs/latest/use/configure/language-options-deprecated#specifying-parser-options - */ - sourceType?: SourceType | undefined; - - /** - * An object indicating which additional language features you'd like to use. - * - * @see https://eslint.org/docs/latest/use/configure/language-options-deprecated#specifying-parser-options - */ - ecmaFeatures?: { - globalReturn?: boolean | undefined; - impliedStrict?: boolean | undefined; - jsx?: boolean | undefined; - experimentalObjectRestSpread?: boolean | undefined; - [key: string]: any; - } | undefined; - [key: string]: any; - } - - interface LintOptions { - filename?: string | undefined; - preprocess?: ((code: string) => string[]) | undefined; - postprocess?: ((problemLists: LintMessage[][]) => LintMessage[]) | undefined; - filterCodeBlock?: boolean | undefined; - disableFixes?: boolean | undefined; - allowInlineConfig?: boolean | undefined; - reportUnusedDisableDirectives?: boolean | undefined; - } - - interface LintSuggestion { - desc: string; - fix: Rule.Fix; - messageId?: string | undefined; - } - - interface LintMessage { - column: number; - line: number; - endColumn?: number | undefined; - endLine?: number | undefined; - ruleId: string | null; - message: string; - messageId?: string | undefined; - nodeType?: string | undefined; - fatal?: true | undefined; - severity: Exclude; - fix?: Rule.Fix | undefined; - suggestions?: LintSuggestion[] | undefined; - } - - interface LintSuppression { - kind: string; - justification: string; - } - - interface SuppressedLintMessage extends LintMessage { - suppressions: LintSuppression[]; - } - - interface FixOptions extends LintOptions { - fix?: boolean | undefined; - } - - interface FixReport { - fixed: boolean; - output: string; - messages: LintMessage[]; - } - - // Temporarily loosen type for just flat config files (see #68232) - type NonESTreeParser = - & Omit - & ({ - parse(text: string, options?: any): unknown; - } | { - parseForESLint(text: string, options?: any): Omit & { - ast: unknown; - scopeManager?: unknown; - }; - }); - - type ESTreeParser = - & ESLint.ObjectMetaProperties - & ( - | { parse(text: string, options?: any): AST.Program } - | { parseForESLint(text: string, options?: any): ESLintParseResult } - ); - - type Parser = NonESTreeParser | ESTreeParser; - - interface ESLintParseResult { - ast: AST.Program; - parserServices?: SourceCode.ParserServices | undefined; - scopeManager?: Scope.ScopeManager | undefined; - visitorKeys?: SourceCode.VisitorKeys | undefined; - } - - interface ProcessorFile { - text: string; - filename: string; - } - - // https://eslint.org/docs/latest/extend/plugins#processors-in-plugins - interface Processor extends ESLint.ObjectMetaProperties { - supportsAutofix?: boolean | undefined; - preprocess?(text: string, filename: string): T[]; - postprocess?(messages: LintMessage[][], filename: string): LintMessage[]; - } - - interface Config { - /** - * An string to identify the configuration object. Used in error messages and - * inspection tools. - */ - name?: string; - - /** - * An array of glob patterns indicating the files that the configuration - * object should apply to. If not specified, the configuration object applies - * to all files - */ - files?: Array; - - /** - * An array of glob patterns indicating the files that the configuration - * object should not apply to. If not specified, the configuration object - * applies to all files matched by files - */ - ignores?: string[]; - - /** - * An object containing settings related to how JavaScript is configured for - * linting. - */ - languageOptions?: LanguageOptions; - - /** - * An object containing settings related to the linting process - */ - linterOptions?: LinterOptions; - - /** - * Either an object containing preprocess() and postprocess() methods or a - * string indicating the name of a processor inside of a plugin - * (i.e., "pluginName/processorName"). - */ - processor?: string | Processor; - - /** - * An object containing a name-value mapping of plugin names to plugin objects. - * When files is specified, these plugins are only available to the matching files. - */ - plugins?: Record; - - /** - * An object containing the configured rules. When files or ignores are specified, - * these rule configurations are only available to the matching files. - */ - rules?: Partial; - - /** - * An object containing name-value pairs of information that should be - * available to all rules. - */ - settings?: Record; - } - - /** @deprecated Use `Config` instead of `FlatConfig` */ - type FlatConfig = Config; - - type GlobalConf = boolean | "off" | "readable" | "readonly" | "writable" | "writeable"; - - interface Globals { - [name: string]: GlobalConf; - } - - interface LanguageOptions { - /** - * The version of ECMAScript to support. May be any year (i.e., 2022) or - * version (i.e., 5). Set to "latest" for the most recent supported version. - * @default "latest" - */ - ecmaVersion?: EcmaVersion | undefined; - - /** - * The type of JavaScript source code. Possible values are "script" for - * traditional script files, "module" for ECMAScript modules (ESM), and - * "commonjs" for CommonJS files. (default: "module" for .js and .mjs - * files; "commonjs" for .cjs files) - */ - sourceType?: SourceType | undefined; - - /** - * An object specifying additional objects that should be added to the - * global scope during linting. - */ - globals?: Globals | undefined; - - /** - * An object containing a parse() or parseForESLint() method. - * If not configured, the default ESLint parser (Espree) will be used. - */ - parser?: Parser | undefined; - - /** - * An object specifying additional options that are passed directly to the - * parser() method on the parser. The available options are parser-dependent - */ - parserOptions?: Linter.ParserOptions | undefined; - } - - interface LinterOptions { - /** - * A boolean value indicating if inline configuration is allowed. - */ - noInlineConfig?: boolean; - - /** - * A severity value indicating if and how unused disable directives should be - * tracked and reported. - */ - reportUnusedDisableDirectives?: Severity | StringSeverity | boolean; - } - - interface Stats { - /** - * The number of times ESLint has applied at least one fix after linting. - */ - fixPasses: number; - - /** - * The times spent on (parsing, fixing, linting) a file, where the linting refers to the timing information for each rule. - */ - times: { passes: TimePass[] }; - } - - interface TimePass { - parse: { total: number }; - rules?: Record; - fix: { total: number }; - total: number; - } -} - -// #endregion - -// #region ESLint - -export class ESLint { - static configType: "flat"; - - static readonly version: string; - - static outputFixes(results: ESLint.LintResult[]): Promise; - - static getErrorResults(results: ESLint.LintResult[]): ESLint.LintResult[]; - - constructor(options?: ESLint.Options); - - lintFiles(patterns: string | string[]): Promise; - - lintText( - code: string, - options?: { filePath?: string | undefined; warnIgnored?: boolean | undefined }, - ): Promise; - - getRulesMetaForResults(results: ESLint.LintResult[]): ESLint.LintResultData["rulesMeta"]; - - hasFlag(flag: string): boolean; - - calculateConfigForFile(filePath: string): Promise; - - findConfigFile(): Promise; - - isPathIgnored(filePath: string): Promise; - - loadFormatter(nameOrPath?: string): Promise; -} - -export namespace ESLint { - type ConfigData = Omit< - Linter.LegacyConfig, - "$schema" - >; - - interface Environment { - globals?: Linter.Globals | undefined; - parserOptions?: Linter.ParserOptions | undefined; - } - - interface ObjectMetaProperties { - /** @deprecated Use `meta.name` instead. */ - name?: string | undefined; - - /** @deprecated Use `meta.version` instead. */ - version?: string | undefined; - - meta?: { - name?: string | undefined; - version?: string | undefined; - }; - } - - interface Plugin extends ObjectMetaProperties { - configs?: Record | undefined; - environments?: Record | undefined; - processors?: Record | undefined; - rules?: Record | undefined; - } - - type FixType = "directive" | "problem" | "suggestion" | "layout"; - - type CacheStrategy = "content" | "metadata"; - - interface Options { - // File enumeration - cwd?: string | undefined; - errorOnUnmatchedPattern?: boolean | undefined; - globInputPaths?: boolean | undefined; - ignore?: boolean | undefined; - ignorePatterns?: string[] | null | undefined; - passOnNoPatterns?: boolean | undefined; - warnIgnored?: boolean | undefined; - - // Linting - allowInlineConfig?: boolean | undefined; - baseConfig?: Linter.Config | Linter.Config[] | null | undefined; - overrideConfig?: Linter.Config | Linter.Config[] | null | undefined; - overrideConfigFile?: string | boolean | undefined; - plugins?: Record | null | undefined; - ruleFilter?: ((arg: { ruleId: string; severity: Exclude }) => boolean) | undefined; - stats?: boolean | undefined; - - // Autofix - fix?: boolean | ((message: Linter.LintMessage) => boolean) | undefined; - fixTypes?: FixType[] | undefined; - - // Cache-related - cache?: boolean | undefined; - cacheLocation?: string | undefined; - cacheStrategy?: CacheStrategy | undefined; - - // Other Options - flags?: string[] | undefined; - } - - interface LegacyOptions { - // File enumeration - cwd?: string | undefined; - errorOnUnmatchedPattern?: boolean | undefined; - extensions?: string[] | undefined; - globInputPaths?: boolean | undefined; - ignore?: boolean | undefined; - ignorePath?: string | undefined; - - // Linting - allowInlineConfig?: boolean | undefined; - baseConfig?: Linter.LegacyConfig | undefined; - overrideConfig?: Linter.LegacyConfig | undefined; - overrideConfigFile?: string | undefined; - plugins?: Record | undefined; - reportUnusedDisableDirectives?: Linter.StringSeverity | undefined; - resolvePluginsRelativeTo?: string | undefined; - rulePaths?: string[] | undefined; - useEslintrc?: boolean | undefined; - - // Autofix - fix?: boolean | ((message: Linter.LintMessage) => boolean) | undefined; - fixTypes?: FixType[] | undefined; - - // Cache-related - cache?: boolean | undefined; - cacheLocation?: string | undefined; - cacheStrategy?: CacheStrategy | undefined; - - // Other Options - flags?: string[] | undefined; - } - - interface LintResult { - filePath: string; - messages: Linter.LintMessage[]; - suppressedMessages: Linter.SuppressedLintMessage[]; - errorCount: number; - fatalErrorCount: number; - warningCount: number; - fixableErrorCount: number; - fixableWarningCount: number; - output?: string | undefined; - source?: string | undefined; - stats?: Linter.Stats | undefined; - usedDeprecatedRules: DeprecatedRuleUse[]; - } - - interface LintResultData { - cwd: string; - rulesMeta: { - [ruleId: string]: Rule.RuleMetaData; - }; - } - - interface DeprecatedRuleUse { - ruleId: string; - replacedBy: string[]; - } - - interface Formatter { - format(results: LintResult[], data: LintResultData): string | Promise; - } - - // Docs reference the types by those name - type EditInfo = Rule.Fix; - type LoadedFormatter = Formatter; - type ResultsMeta = LintResultData; -} - -// #endregion - -export function loadESLint(options: { useFlatConfig: true }): Promise; -export function loadESLint(options: { useFlatConfig: false }): Promise; -export function loadESLint( - options?: { useFlatConfig?: boolean | undefined }, -): Promise; - -// #region RuleTester - -export class RuleTester { - static describe: ((...args: any) => any) | null; - static it: ((...args: any) => any) | null; - static itOnly: ((...args: any) => any) | null; - - constructor(config?: Linter.Config); - - run( - name: string, - rule: Rule.RuleModule, - tests: { - valid: Array; - invalid: RuleTester.InvalidTestCase[]; - }, - ): void; - - static only( - item: string | RuleTester.ValidTestCase | RuleTester.InvalidTestCase, - ): RuleTester.ValidTestCase | RuleTester.InvalidTestCase; -} - -export namespace RuleTester { - interface ValidTestCase { - name?: string; - code: string; - options?: any; - filename?: string | undefined; - only?: boolean; - languageOptions?: Linter.LanguageOptions | undefined; - settings?: { [name: string]: any } | undefined; - } - - interface SuggestionOutput { - messageId?: string; - desc?: string; - data?: Record | undefined; - output: string; - } - - interface InvalidTestCase extends ValidTestCase { - errors: number | Array; - output?: string | null | undefined; - } - - interface TestCaseError { - message?: string | RegExp; - messageId?: string; - type?: string | undefined; - data?: any; - line?: number | undefined; - column?: number | undefined; - endLine?: number | undefined; - endColumn?: number | undefined; - suggestions?: SuggestionOutput[] | undefined; - } -} - -// #endregion diff --git a/build_vtk_bundle/node_modules/@types/eslint/package.json b/build_vtk_bundle/node_modules/@types/eslint/package.json deleted file mode 100644 index ef52af65..00000000 --- a/build_vtk_bundle/node_modules/@types/eslint/package.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "name": "@types/eslint", - "version": "9.6.1", - "description": "TypeScript definitions for eslint", - "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/eslint", - "license": "MIT", - "contributors": [ - { - "name": "Pierre-Marie Dartus", - "githubUsername": "pmdartus", - "url": "https://github.com/pmdartus" - }, - { - "name": "Jed Fox", - "githubUsername": "j-f1", - "url": "https://github.com/j-f1" - }, - { - "name": "Saad Quadri", - "githubUsername": "saadq", - "url": "https://github.com/saadq" - }, - { - "name": "Jason Kwok", - "githubUsername": "JasonHK", - "url": "https://github.com/JasonHK" - }, - { - "name": "Brad Zacher", - "githubUsername": "bradzacher", - "url": "https://github.com/bradzacher" - }, - { - "name": "JounQin", - "githubUsername": "JounQin", - "url": "https://github.com/JounQin" - }, - { - "name": "Bryan Mishkin", - "githubUsername": "bmish", - "url": "https://github.com/bmish" - } - ], - "main": "", - "types": "index.d.ts", - "exports": { - ".": { - "types": "./index.d.ts" - }, - "./use-at-your-own-risk": { - "types": "./use-at-your-own-risk.d.ts" - }, - "./rules": { - "types": "./rules/index.d.ts" - }, - "./package.json": "./package.json" - }, - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", - "directory": "types/eslint" - }, - "scripts": {}, - "dependencies": { - "@types/estree": "*", - "@types/json-schema": "*" - }, - "typesPublisherContentHash": "bc2620143f844d291da2d199e7b8e2605e3277f1941a508dc72ac92843b149b6", - "typeScriptVersion": "4.8" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@types/eslint/rules/best-practices.d.ts b/build_vtk_bundle/node_modules/@types/eslint/rules/best-practices.d.ts deleted file mode 100644 index fdb3067b..00000000 --- a/build_vtk_bundle/node_modules/@types/eslint/rules/best-practices.d.ts +++ /dev/null @@ -1,1048 +0,0 @@ -import { Linter } from "../index"; - -export interface BestPractices extends Linter.RulesRecord { - /** - * Rule to enforce getter and setter pairs in objects. - * - * @since 0.22.0 - * @see https://eslint.org/docs/rules/accessor-pairs - */ - "accessor-pairs": Linter.RuleEntry< - [ - Partial<{ - /** - * @default true - */ - setWithoutGet: boolean; - /** - * @default false - */ - getWithoutSet: boolean; - /** - * @default true - */ - enforceForClassMembers: boolean; - }>, - ] - >; - - /** - * Rule to enforce `return` statements in callbacks of array methods. - * - * @since 2.0.0-alpha-1 - * @see https://eslint.org/docs/rules/array-callback-return - */ - "array-callback-return": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - allowImplicit: boolean; - /** - * @default false - */ - checkForEach: boolean; - /** - * @default false - */ - allowVoid: boolean; - }>, - ] - >; - - /** - * Rule to enforce the use of variables within the scope they are defined. - * - * @since 0.1.0 - * @see https://eslint.org/docs/rules/block-scoped-var - */ - "block-scoped-var": Linter.RuleEntry<[]>; - - /** - * Rule to enforce that class methods utilize `this`. - * - * @since 3.4.0 - * @see https://eslint.org/docs/rules/class-methods-use-this - */ - "class-methods-use-this": Linter.RuleEntry< - [ - Partial<{ - exceptMethods: string[]; - }>, - ] - >; - - /** - * Rule to enforce a maximum cyclomatic complexity allowed in a program. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/complexity - */ - complexity: Linter.RuleEntry< - [ - | Partial<{ - /** - * @default 20 - */ - max: number; - /** - * @deprecated - * @default 20 - */ - maximum: number; - }> - | number, - ] - >; - - /** - * Rule to require `return` statements to either always or never specify values. - * - * @since 0.4.0 - * @see https://eslint.org/docs/rules/consistent-return - */ - "consistent-return": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - treatUndefinedAsUnspecified: boolean; - }>, - ] - >; - - /** - * Rule to enforce consistent brace style for all control statements. - * - * @since 0.0.2 - * @see https://eslint.org/docs/rules/curly - */ - curly: Linter.RuleEntry<["all" | "multi" | "multi-line" | "multi-or-nest" | "consistent"]>; - - /** - * Rule to require `default` cases in `switch` statements. - * - * @since 0.6.0 - * @see https://eslint.org/docs/rules/default-case - */ - "default-case": Linter.RuleEntry< - [ - Partial<{ - /** - * @default '^no default$' - */ - commentPattern: string; - }>, - ] - >; - - /** - * Rule to enforce default clauses in switch statements to be last - * - * @since 7.0.0 - * @see https://eslint.org/docs/latest/rules/default-case-last - */ - "default-case-last": Linter.RuleEntry<[]>; - - /** - * Enforce default parameters to be last - * - * @since 6.4.0 - * @see https://eslint.org/docs/latest/rules/default-param-last - */ - "default-param-last": Linter.RuleEntry<[]>; - - /** - * Rule to enforce consistent newlines before and after dots. - * - * @since 0.21.0 - * @see https://eslint.org/docs/rules/dot-location - */ - "dot-location": Linter.RuleEntry<["object" | "property"]>; - - /** - * Rule to enforce dot notation whenever possible. - * - * @since 0.0.7 - * @see https://eslint.org/docs/rules/dot-notation - */ - "dot-notation": Linter.RuleEntry< - [ - Partial<{ - /** - * @default true - */ - allowKeywords: boolean; - allowPattern: string; - }>, - ] - >; - - /** - * Rule to require the use of `===` and `!==`. - * - * @since 0.0.2 - * @see https://eslint.org/docs/rules/eqeqeq - */ - eqeqeq: - | Linter.RuleEntry< - [ - "always", - Partial<{ - /** - * @default 'always' - */ - null: "always" | "never" | "ignore"; - }>, - ] - > - | Linter.RuleEntry<["smart" | "allow-null"]>; - - /** - * Require grouped accessor pairs in object literals and classes. - * - * @since 6.7.0 - * @see https://eslint.org/docs/latest/rules/grouped-accessor-pairs - */ - "grouped-accessor-pairs": Linter.RuleEntry<["anyOrder" | "getBeforeSet" | "setBeforeGet"]>; - - /** - * Rule to require `for-in` loops to include an `if` statement. - * - * @since 0.0.6 - * @see https://eslint.org/docs/rules/guard-for-in - */ - "guard-for-in": Linter.RuleEntry<[]>; - - /** - * Rule to enforce a maximum number of classes per file. - * - * @since 5.0.0-alpha.3 - * @see https://eslint.org/docs/rules/max-classes-per-file - */ - "max-classes-per-file": Linter.RuleEntry<[number]>; - - /** - * Rule to disallow the use of `alert`, `confirm`, and `prompt`. - * - * @since 0.0.5 - * @see https://eslint.org/docs/rules/no-alert - */ - "no-alert": Linter.RuleEntry<[]>; - - /** - * Rule to disallow the use of `arguments.caller` or `arguments.callee`. - * - * @since 0.0.6 - * @see https://eslint.org/docs/rules/no-caller - */ - "no-caller": Linter.RuleEntry<[]>; - - /** - * Rule to disallow lexical declarations in case clauses. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 1.9.0 - * @see https://eslint.org/docs/rules/no-case-declarations - */ - "no-case-declarations": Linter.RuleEntry<[]>; - - /** - * Rule to disallow division operators explicitly at the beginning of regular expressions. - * - * @since 0.1.0 - * @see https://eslint.org/docs/rules/no-div-regex - */ - "no-div-regex": Linter.RuleEntry<[]>; - - /** - * Rule to disallow `else` blocks after `return` statements in `if` statements. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-else-return - */ - "no-else-return": Linter.RuleEntry< - [ - Partial<{ - /** - * @default true - */ - allowElseIf: boolean; - }>, - ] - >; - - /** - * Rule to disallow empty functions. - * - * @since 2.0.0 - * @see https://eslint.org/docs/rules/no-empty-function - */ - "no-empty-function": Linter.RuleEntry< - [ - Partial<{ - /** - * @default [] - */ - allow: Array< - | "functions" - | "arrowFunctions" - | "generatorFunctions" - | "methods" - | "generatorMethods" - | "getters" - | "setters" - | "constructors" - >; - }>, - ] - >; - - /** - * Rule to disallow empty destructuring patterns. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 1.7.0 - * @see https://eslint.org/docs/rules/no-empty-pattern - */ - "no-empty-pattern": Linter.RuleEntry<[]>; - - /** - * Rule to disallow `null` comparisons without type-checking operators. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-eq-null - */ - "no-eq-null": Linter.RuleEntry<[]>; - - /** - * Rule to disallow the use of `eval()`. - * - * @since 0.0.2 - * @see https://eslint.org/docs/rules/no-eval - */ - "no-eval": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - allowIndirect: boolean; - }>, - ] - >; - - /** - * Rule to disallow extending native types. - * - * @since 0.1.4 - * @see https://eslint.org/docs/rules/no-extend-native - */ - "no-extend-native": Linter.RuleEntry< - [ - Partial<{ - exceptions: string[]; - }>, - ] - >; - - /** - * Rule to disallow unnecessary calls to `.bind()`. - * - * @since 0.8.0 - * @see https://eslint.org/docs/rules/no-extra-bind - */ - "no-extra-bind": Linter.RuleEntry<[]>; - - /** - * Rule to disallow unnecessary labels. - * - * @since 2.0.0-rc.0 - * @see https://eslint.org/docs/rules/no-extra-label - */ - "no-extra-label": Linter.RuleEntry<[]>; - - /** - * Rule to disallow fallthrough of `case` statements. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.0.7 - * @see https://eslint.org/docs/rules/no-fallthrough - */ - "no-fallthrough": Linter.RuleEntry< - [ - Partial<{ - /** - * @default 'falls?\s?through' - */ - commentPattern: string; - /** - * @default false - */ - allowEmptyCase: boolean; - }>, - ] - >; - - /** - * Rule to disallow leading or trailing decimal points in numeric literals. - * - * @since 0.0.6 - * @see https://eslint.org/docs/rules/no-floating-decimal - */ - "no-floating-decimal": Linter.RuleEntry<[]>; - - /** - * Rule to disallow assignments to native objects or read-only global variables. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 3.3.0 - * @see https://eslint.org/docs/rules/no-global-assign - */ - "no-global-assign": Linter.RuleEntry< - [ - Partial<{ - exceptions: string[]; - }>, - ] - >; - - /** - * Rule to disallow shorthand type conversions. - * - * @since 1.0.0-rc-2 - * @see https://eslint.org/docs/rules/no-implicit-coercion - */ - "no-implicit-coercion": Linter.RuleEntry< - [ - Partial<{ - /** - * @default true - */ - boolean: boolean; - /** - * @default true - */ - number: boolean; - /** - * @default true - */ - string: boolean; - /** - * @default false - */ - disallowTemplateShorthand: boolean; - /** - * @default [] - */ - allow: Array<"~" | "!!" | "+" | "*">; - }>, - ] - >; - - /** - * Rule to disallow variable and `function` declarations in the global scope. - * - * @since 2.0.0-alpha-1 - * @see https://eslint.org/docs/rules/no-implicit-globals - */ - "no-implicit-globals": Linter.RuleEntry<[]>; - - /** - * Rule to disallow the use of `eval()`-like methods. - * - * @since 0.0.7 - * @see https://eslint.org/docs/rules/no-implied-eval - */ - "no-implied-eval": Linter.RuleEntry<[]>; - - /** - * Disallow assigning to imported bindings. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 6.4.0 - * @see https://eslint.org/docs/latest/rules/no-import-assign - */ - "no-import-assign": Linter.RuleEntry<[]>; - - /** - * Rule to disallow `this` keywords outside of classes or class-like objects. - * - * @since 1.0.0-rc-2 - * @see https://eslint.org/docs/rules/no-invalid-this - */ - "no-invalid-this": Linter.RuleEntry< - [ - Partial<{ - /** - * @default true - */ - capIsConstructor: boolean; - }>, - ] - >; - - /** - * Rule to disallow the use of the `__iterator__` property. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-iterator - */ - "no-iterator": Linter.RuleEntry<[]>; - - /** - * Rule to disallow labeled statements. - * - * @since 0.4.0 - * @see https://eslint.org/docs/rules/no-labels - */ - "no-labels": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - allowLoop: boolean; - /** - * @default false - */ - allowSwitch: boolean; - }>, - ] - >; - - /** - * Rule to disallow unnecessary nested blocks. - * - * @since 0.4.0 - * @see https://eslint.org/docs/rules/no-lone-blocks - */ - "no-lone-blocks": Linter.RuleEntry<[]>; - - /** - * Rule to disallow function declarations that contain unsafe references inside loop statements. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-loop-func - */ - "no-loop-func": Linter.RuleEntry<[]>; - - /** - * Rule to disallow magic numbers. - * - * @since 1.7.0 - * @see https://eslint.org/docs/rules/no-magic-numbers - */ - "no-magic-numbers": Linter.RuleEntry< - [ - Partial<{ - /** - * @default [] - */ - ignore: number[]; - /** - * @default false - */ - ignoreArrayIndexes: boolean; - /** - * @default false - */ - enforceConst: boolean; - /** - * @default false - */ - detectObjects: boolean; - }>, - ] - >; - - /** - * Rule to disallow multiple spaces. - * - * @since 0.9.0 - * @see https://eslint.org/docs/rules/no-multi-spaces - */ - "no-multi-spaces": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - ignoreEOLComments: boolean; - /** - * @default { Property: true } - */ - exceptions: Record; - }>, - ] - >; - - /** - * Rule to disallow multiline strings. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-multi-str - */ - "no-multi-str": Linter.RuleEntry<[]>; - - /** - * Rule to disallow `new` operators outside of assignments or comparisons. - * - * @since 0.0.7 - * @see https://eslint.org/docs/rules/no-new - */ - "no-new": Linter.RuleEntry<[]>; - - /** - * Rule to disallow `new` operators with the `Function` object. - * - * @since 0.0.7 - * @see https://eslint.org/docs/rules/no-new-func - */ - "no-new-func": Linter.RuleEntry<[]>; - - /** - * Rule to disallow `new` operators with the `String`, `Number`, and `Boolean` objects. - * - * @since 0.0.6 - * @see https://eslint.org/docs/rules/no-new-wrappers - */ - "no-new-wrappers": Linter.RuleEntry<[]>; - - /** - * Disallow `\\8` and `\\9` escape sequences in string literals. - * - * @since 7.14.0 - * @see https://eslint.org/docs/rules/no-nonoctal-decimal-escape - */ - "no-nonoctal-decimal-escape": Linter.RuleEntry<[]>; - - /** - * Rule to disallow octal literals. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.0.6 - * @see https://eslint.org/docs/rules/no-octal - */ - "no-octal": Linter.RuleEntry<[]>; - - /** - * Rule to disallow octal escape sequences in string literals. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-octal-escape - */ - "no-octal-escape": Linter.RuleEntry<[]>; - - /** - * Rule to disallow reassigning `function` parameters. - * - * @since 0.18.0 - * @see https://eslint.org/docs/rules/no-param-reassign - */ - "no-param-reassign": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - props: boolean; - /** - * @default [] - */ - ignorePropertyModificationsFor: string[]; - }>, - ] - >; - - /** - * Rule to disallow the use of the `__proto__` property. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-proto - */ - "no-proto": Linter.RuleEntry<[]>; - - /** - * Rule to disallow variable redeclaration. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-redeclare - */ - "no-redeclare": Linter.RuleEntry< - [ - Partial<{ - /** - * @default true - */ - builtinGlobals: boolean; - }>, - ] - >; - - /** - * Rule to disallow certain properties on certain objects. - * - * @since 3.5.0 - * @see https://eslint.org/docs/rules/no-restricted-properties - */ - "no-restricted-properties": Linter.RuleEntry< - [ - ...Array< - | { - object: string; - property?: string | undefined; - message?: string | undefined; - } - | { - property: string; - message?: string | undefined; - } - >, - ] - >; - - /** - * Rule to disallow assignment operators in `return` statements. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-return-assign - */ - "no-return-assign": Linter.RuleEntry<["except-parens" | "always"]>; - - /** - * Rule to disallow unnecessary `return await`. - * - * @since 3.10.0 - * @see https://eslint.org/docs/rules/no-return-await - */ - "no-return-await": Linter.RuleEntry<[]>; - - /** - * Rule to disallow `javascript:` urls. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-script-url - */ - "no-script-url": Linter.RuleEntry<[]>; - - /** - * Rule to disallow assignments where both sides are exactly the same. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 2.0.0-rc.0 - * @see https://eslint.org/docs/rules/no-self-assign - */ - "no-self-assign": Linter.RuleEntry<[]>; - - /** - * Rule to disallow comparisons where both sides are exactly the same. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-self-compare - */ - "no-self-compare": Linter.RuleEntry<[]>; - - /** - * Rule to disallow comma operators. - * - * @since 0.5.1 - * @see https://eslint.org/docs/rules/no-sequences - */ - "no-sequences": Linter.RuleEntry<[]>; - - /** - * Rule to disallow throwing literals as exceptions. - * - * @since 0.15.0 - * @see https://eslint.org/docs/rules/no-throw-literal - */ - "no-throw-literal": Linter.RuleEntry<[]>; - - /** - * Rule to disallow unmodified loop conditions. - * - * @since 2.0.0-alpha-2 - * @see https://eslint.org/docs/rules/no-unmodified-loop-condition - */ - "no-unmodified-loop-condition": Linter.RuleEntry<[]>; - - /** - * Rule to disallow unused expressions. - * - * @since 0.1.0 - * @see https://eslint.org/docs/rules/no-unused-expressions - */ - "no-unused-expressions": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - allowShortCircuit: boolean; - /** - * @default false - */ - allowTernary: boolean; - /** - * @default false - */ - allowTaggedTemplates: boolean; - }>, - ] - >; - - /** - * Rule to disallow unused labels. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 2.0.0-rc.0 - * @see https://eslint.org/docs/rules/no-unused-labels - */ - "no-unused-labels": Linter.RuleEntry<[]>; - - /** - * Disallow useless backreferences in regular expressions - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 7.0.0-alpha.0 - * @see https://eslint.org/docs/latest/rules/no-useless-backreference - */ - "no-useless-backreference": Linter.RuleEntry<[]>; - - /** - * Rule to disallow unnecessary calls to `.call()` and `.apply()`. - * - * @since 1.0.0-rc-1 - * @see https://eslint.org/docs/rules/no-useless-call - */ - "no-useless-call": Linter.RuleEntry<[]>; - - /** - * Rule to disallow unnecessary `catch` clauses. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 5.11.0 - * @see https://eslint.org/docs/rules/no-useless-catch - */ - "no-useless-catch": Linter.RuleEntry<[]>; - - /** - * Rule to disallow unnecessary concatenation of literals or template literals. - * - * @since 1.3.0 - * @see https://eslint.org/docs/rules/no-useless-concat - */ - "no-useless-concat": Linter.RuleEntry<[]>; - - /** - * Rule to disallow unnecessary escape characters. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 2.5.0 - * @see https://eslint.org/docs/rules/no-useless-escape - */ - "no-useless-escape": Linter.RuleEntry<[]>; - - /** - * Rule to disallow redundant return statements. - * - * @since 3.9.0 - * @see https://eslint.org/docs/rules/no-useless-return - */ - "no-useless-return": Linter.RuleEntry<[]>; - - /** - * Rule to disallow `void` operators. - * - * @since 0.8.0 - * @see https://eslint.org/docs/rules/no-void - */ - "no-void": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - allowAsStatement: boolean; - }>, - ] - >; - - /** - * Rule to disallow specified warning terms in comments. - * - * @since 0.4.4 - * @see https://eslint.org/docs/rules/no-warning-comments - */ - "no-warning-comments": Linter.RuleEntry< - [ - { - /** - * @default ["todo", "fixme", "xxx"] - */ - terms: string[]; - /** - * @default 'start' - */ - location: "start" | "anywhere"; - }, - ] - >; - - /** - * Rule to disallow `with` statements. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.0.2 - * @see https://eslint.org/docs/rules/no-with - */ - "no-with": Linter.RuleEntry<[]>; - - /** - * Rule to enforce using named capture group in regular expression. - * - * @since 5.15.0 - * @see https://eslint.org/docs/rules/prefer-named-capture-group - */ - "prefer-named-capture-group": Linter.RuleEntry<[]>; - - /** - * Disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()`. - * - * @since 3.5.0 - * @see https://eslint.org/docs/rules/prefer-object-has-own - */ - "prefer-object-has-own": Linter.RuleEntry<[]>; - - /** - * Rule to require using Error objects as Promise rejection reasons. - * - * @since 3.14.0 - * @see https://eslint.org/docs/rules/prefer-promise-reject-errors - */ - "prefer-promise-reject-errors": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - allowEmptyReject: boolean; - }>, - ] - >; - - /** - * Disallow use of the `RegExp` constructor in favor of regular expression literals. - * - * @since 6.4.0 - * @see https://eslint.org/docs/latest/rules/prefer-regex-literals - */ - "prefer-regex-literals": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - disallowRedundantWrapping: boolean; - }>, - ] - >; - - /** - * Rule to enforce the consistent use of the radix argument when using `parseInt()`. - * - * @since 0.0.7 - * @see https://eslint.org/docs/rules/radix - */ - radix: Linter.RuleEntry<["always" | "as-needed"]>; - - /** - * Rule to disallow async functions which have no `await` expression. - * - * @since 3.11.0 - * @see https://eslint.org/docs/rules/require-await - */ - "require-await": Linter.RuleEntry<[]>; - - /** - * Rule to enforce the use of `u` flag on RegExp. - * - * @since 5.3.0 - * @see https://eslint.org/docs/rules/require-unicode-regexp - */ - "require-unicode-regexp": Linter.RuleEntry<[]>; - - /** - * Rule to require `var` declarations be placed at the top of their containing scope. - * - * @since 0.8.0 - * @see https://eslint.org/docs/rules/vars-on-top - */ - "vars-on-top": Linter.RuleEntry<[]>; - - /** - * Rule to require parentheses around immediate `function` invocations. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/wrap-iife - */ - "wrap-iife": Linter.RuleEntry< - [ - "outside" | "inside" | "any", - Partial<{ - /** - * @default false - */ - functionPrototypeMethods: boolean; - }>, - ] - >; - - /** - * Rule to require or disallow “Yoda” conditions. - * - * @since 0.7.1 - * @see https://eslint.org/docs/rules/yoda - */ - yoda: - | Linter.RuleEntry< - [ - "never", - Partial<{ - exceptRange: boolean; - onlyEquality: boolean; - }>, - ] - > - | Linter.RuleEntry<["always"]>; -} diff --git a/build_vtk_bundle/node_modules/@types/eslint/rules/deprecated.d.ts b/build_vtk_bundle/node_modules/@types/eslint/rules/deprecated.d.ts deleted file mode 100644 index 0024d892..00000000 --- a/build_vtk_bundle/node_modules/@types/eslint/rules/deprecated.d.ts +++ /dev/null @@ -1,267 +0,0 @@ -import { Linter } from "../index"; - -export interface Deprecated extends Linter.RulesRecord { - /** - * Rule to enforce consistent indentation. - * - * @since 4.0.0-alpha.0 - * @deprecated since 4.0.0, use [`indent`](https://eslint.org/docs/rules/indent) instead. - * @see https://eslint.org/docs/rules/indent-legacy - */ - "indent-legacy": Linter.RuleEntry< - [ - number | "tab", - Partial<{ - /** - * @default 0 - */ - SwitchCase: number; - /** - * @default 1 - */ - VariableDeclarator: - | Partial<{ - /** - * @default 1 - */ - var: number | "first"; - /** - * @default 1 - */ - let: number | "first"; - /** - * @default 1 - */ - const: number | "first"; - }> - | number - | "first"; - /** - * @default 1 - */ - outerIIFEBody: number; - /** - * @default 1 - */ - MemberExpression: number | "off"; - /** - * @default { parameters: 1, body: 1 } - */ - FunctionDeclaration: Partial<{ - /** - * @default 1 - */ - parameters: number | "first" | "off"; - /** - * @default 1 - */ - body: number; - }>; - /** - * @default { parameters: 1, body: 1 } - */ - FunctionExpression: Partial<{ - /** - * @default 1 - */ - parameters: number | "first" | "off"; - /** - * @default 1 - */ - body: number; - }>; - /** - * @default { arguments: 1 } - */ - CallExpression: Partial<{ - /** - * @default 1 - */ - arguments: number | "first" | "off"; - }>; - /** - * @default 1 - */ - ArrayExpression: number | "first" | "off"; - /** - * @default 1 - */ - ObjectExpression: number | "first" | "off"; - /** - * @default 1 - */ - ImportDeclaration: number | "first" | "off"; - /** - * @default false - */ - flatTernaryExpressions: boolean; - ignoredNodes: string[]; - /** - * @default false - */ - ignoreComments: boolean; - }>, - ] - >; - - /** - * Rule to require or disallow newlines around directives. - * - * @since 3.5.0 - * @deprecated since 4.0.0, use [`padding-line-between-statements`](https://eslint.org/docs/rules/padding-line-between-statements) instead. - * @see https://eslint.org/docs/rules/lines-around-directive - */ - "lines-around-directive": Linter.RuleEntry<["always" | "never"]>; - - /** - * Rule to require or disallow an empty line after variable declarations. - * - * @since 0.18.0 - * @deprecated since 4.0.0, use [`padding-line-between-statements`](https://eslint.org/docs/rules/padding-line-between-statements) instead. - * @see https://eslint.org/docs/rules/newline-after-var - */ - "newline-after-var": Linter.RuleEntry<["always" | "never"]>; - - /** - * Rule to require an empty line before `return` statements. - * - * @since 2.3.0 - * @deprecated since 4.0.0, use [`padding-line-between-statements`](https://eslint.org/docs/rules/padding-line-between-statements) instead. - * @see https://eslint.org/docs/rules/newline-before-return - */ - "newline-before-return": Linter.RuleEntry<[]>; - - /** - * Rule to disallow shadowing of variables inside of `catch`. - * - * @since 0.0.9 - * @deprecated since 5.1.0, use [`no-shadow`](https://eslint.org/docs/rules/no-shadow) instead. - * @see https://eslint.org/docs/rules/no-catch-shadow - */ - "no-catch-shadow": Linter.RuleEntry<[]>; - - /** - * Rule to disallow reassignment of native objects. - * - * @since 0.0.9 - * @deprecated since 3.3.0, use [`no-global-assign`](https://eslint.org/docs/rules/no-global-assign) instead. - * @see https://eslint.org/docs/rules/no-native-reassign - */ - "no-native-reassign": Linter.RuleEntry< - [ - Partial<{ - exceptions: string[]; - }>, - ] - >; - - /** - * Rule to disallow negating the left operand in `in` expressions. - * - * @since 0.1.2 - * @deprecated since 3.3.0, use [`no-unsafe-negation`](https://eslint.org/docs/rules/no-unsafe-negation) instead. - * @see https://eslint.org/docs/rules/no-negated-in-lhs - */ - "no-negated-in-lhs": Linter.RuleEntry<[]>; - - /** - * Rule to disallow spacing between function identifiers and their applications. - * - * @since 0.1.2 - * @deprecated since 3.3.0, use [`func-call-spacing`](https://eslint.org/docs/rules/func-call-spacing) instead. - * @see https://eslint.org/docs/rules/no-spaced-func - */ - "no-spaced-func": Linter.RuleEntry<[]>; - - /** - * Rule to suggest using `Reflect` methods where applicable. - * - * @since 1.0.0-rc-2 - * @deprecated since 3.9.0 - * @see https://eslint.org/docs/rules/prefer-reflect - */ - "prefer-reflect": Linter.RuleEntry< - [ - Partial<{ - exceptions: string[]; - }>, - ] - >; - - /** - * Rule to require JSDoc comments. - * - * @since 1.4.0 - * @deprecated since 5.10.0 - * @see https://eslint.org/docs/rules/require-jsdoc - */ - "require-jsdoc": Linter.RuleEntry< - [ - Partial<{ - require: Partial<{ - /** - * @default true - */ - FunctionDeclaration: boolean; - /** - * @default false - */ - MethodDefinition: boolean; - /** - * @default false - */ - ClassDeclaration: boolean; - /** - * @default false - */ - ArrowFunctionExpression: boolean; - /** - * @default false - */ - FunctionExpression: boolean; - }>; - }>, - ] - >; - - /** - * Rule to enforce valid JSDoc comments. - * - * @since 0.4.0 - * @deprecated since 5.10.0 - * @see https://eslint.org/docs/rules/valid-jsdoc - */ - "valid-jsdoc": Linter.RuleEntry< - [ - Partial<{ - prefer: Record; - preferType: Record; - /** - * @default true - */ - requireReturn: boolean; - /** - * @default true - */ - requireReturnType: boolean; - /** - * @remarks - * Also accept for regular expression pattern - */ - matchDescription: string; - /** - * @default true - */ - requireParamDescription: boolean; - /** - * @default true - */ - requireReturnDescription: boolean; - /** - * @default true - */ - requireParamType: boolean; - }>, - ] - >; -} diff --git a/build_vtk_bundle/node_modules/@types/eslint/rules/ecmascript-6.d.ts b/build_vtk_bundle/node_modules/@types/eslint/rules/ecmascript-6.d.ts deleted file mode 100644 index 564a1dca..00000000 --- a/build_vtk_bundle/node_modules/@types/eslint/rules/ecmascript-6.d.ts +++ /dev/null @@ -1,534 +0,0 @@ -import { Linter } from "../index"; - -export interface ECMAScript6 extends Linter.RulesRecord { - /** - * Rule to require braces around arrow function bodies. - * - * @since 1.8.0 - * @see https://eslint.org/docs/rules/arrow-body-style - */ - "arrow-body-style": - | Linter.RuleEntry< - [ - "as-needed", - Partial<{ - /** - * @default false - */ - requireReturnForObjectLiteral: boolean; - }>, - ] - > - | Linter.RuleEntry<["always" | "never"]>; - - /** - * Rule to require parentheses around arrow function arguments. - * - * @since 1.0.0-rc-1 - * @see https://eslint.org/docs/rules/arrow-parens - */ - "arrow-parens": - | Linter.RuleEntry<["always"]> - | Linter.RuleEntry< - [ - "as-needed", - Partial<{ - /** - * @default false - */ - requireForBlockBody: boolean; - }>, - ] - >; - - /** - * Rule to enforce consistent spacing before and after the arrow in arrow functions. - * - * @since 1.0.0-rc-1 - * @see https://eslint.org/docs/rules/arrow-spacing - */ - "arrow-spacing": Linter.RuleEntry<[]>; - - /** - * Rule to require `super()` calls in constructors. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.24.0 - * @see https://eslint.org/docs/rules/constructor-super - */ - "constructor-super": Linter.RuleEntry<[]>; - - /** - * Rule to enforce consistent spacing around `*` operators in generator functions. - * - * @since 0.17.0 - * @see https://eslint.org/docs/rules/generator-star-spacing - */ - "generator-star-spacing": Linter.RuleEntry< - [ - | Partial<{ - before: boolean; - after: boolean; - named: - | Partial<{ - before: boolean; - after: boolean; - }> - | "before" - | "after" - | "both" - | "neither"; - anonymous: - | Partial<{ - before: boolean; - after: boolean; - }> - | "before" - | "after" - | "both" - | "neither"; - method: - | Partial<{ - before: boolean; - after: boolean; - }> - | "before" - | "after" - | "both" - | "neither"; - }> - | "before" - | "after" - | "both" - | "neither", - ] - >; - - /** - * Require or disallow logical assignment operator shorthand. - * - * @since 8.24.0 - * @see https://eslint.org/docs/rules/logical-assignment-operators - */ - "logical-assignment-operators": - | Linter.RuleEntry< - [ - "always", - Partial<{ - /** - * @default false - */ - enforceForIfStatements: boolean; - }>, - ] - > - | Linter.RuleEntry<["never"]>; - - /** - * Rule to disallow reassigning class members. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 1.0.0-rc-1 - * @see https://eslint.org/docs/rules/no-class-assign - */ - "no-class-assign": Linter.RuleEntry<[]>; - - /** - * Rule to disallow arrow functions where they could be confused with comparisons. - * - * @since 2.0.0-alpha-2 - * @see https://eslint.org/docs/rules/no-confusing-arrow - */ - "no-confusing-arrow": Linter.RuleEntry< - [ - Partial<{ - /** - * @default true - */ - allowParens: boolean; - }>, - ] - >; - - /** - * Rule to disallow reassigning `const` variables. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 1.0.0-rc-1 - * @see https://eslint.org/docs/rules/no-const-assign - */ - "no-const-assign": Linter.RuleEntry<[]>; - - /** - * Rule to disallow duplicate class members. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 1.2.0 - * @see https://eslint.org/docs/rules/no-dupe-class-members - */ - "no-dupe-class-members": Linter.RuleEntry<[]>; - - /** - * Rule to disallow duplicate module imports. - * - * @since 2.5.0 - * @see https://eslint.org/docs/rules/no-duplicate-imports - */ - "no-duplicate-imports": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - includeExports: boolean; - }>, - ] - >; - - /** - * Rule to disallow `new` operators with the `Symbol` object. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 2.0.0-beta.1 - * @see https://eslint.org/docs/rules/no-new-symbol - */ - "no-new-symbol": Linter.RuleEntry<[]>; - - /** - * Rule to disallow specified modules when loaded by `import`. - * - * @since 2.0.0-alpha-1 - * @see https://eslint.org/docs/rules/no-restricted-imports - */ - "no-restricted-imports": Linter.RuleEntry< - [ - ...Array< - | string - | { - name: string; - importNames?: string[] | undefined; - message?: string | undefined; - } - | Partial<{ - paths: Array< - | string - | { - name: string; - importNames?: string[] | undefined; - message?: string | undefined; - } - >; - patterns: string[]; - }> - >, - ] - >; - - /** - * Rule to disallow `this`/`super` before calling `super()` in constructors. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.24.0 - * @see https://eslint.org/docs/rules/no-this-before-super - */ - "no-this-before-super": Linter.RuleEntry<[]>; - - /** - * Rule to disallow unnecessary computed property keys in object literals. - * - * @since 2.9.0 - * @see https://eslint.org/docs/rules/no-useless-computed-key - */ - "no-useless-computed-key": Linter.RuleEntry<[]>; - - /** - * Rule to disallow unnecessary constructors. - * - * @since 2.0.0-beta.1 - * @see https://eslint.org/docs/rules/no-useless-constructor - */ - "no-useless-constructor": Linter.RuleEntry<[]>; - - /** - * Rule to disallow renaming import, export, and destructured assignments to the same name. - * - * @since 2.11.0 - * @see https://eslint.org/docs/rules/no-useless-rename - */ - "no-useless-rename": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - ignoreImport: boolean; - /** - * @default false - */ - ignoreExport: boolean; - /** - * @default false - */ - ignoreDestructuring: boolean; - }>, - ] - >; - - /** - * Rule to require `let` or `const` instead of `var`. - * - * @since 0.12.0 - * @see https://eslint.org/docs/rules/no-var - */ - "no-var": Linter.RuleEntry<[]>; - - /** - * Rule to require or disallow method and property shorthand syntax for object literals. - * - * @since 0.20.0 - * @see https://eslint.org/docs/rules/object-shorthand - */ - "object-shorthand": - | Linter.RuleEntry< - [ - "always" | "methods", - Partial<{ - /** - * @default false - */ - avoidQuotes: boolean; - /** - * @default false - */ - ignoreConstructors: boolean; - /** - * @default false - */ - avoidExplicitReturnArrows: boolean; - }>, - ] - > - | Linter.RuleEntry< - [ - "properties", - Partial<{ - /** - * @default false - */ - avoidQuotes: boolean; - }>, - ] - > - | Linter.RuleEntry<["never" | "consistent" | "consistent-as-needed"]>; - - /** - * Rule to require using arrow functions for callbacks. - * - * @since 1.2.0 - * @see https://eslint.org/docs/rules/prefer-arrow-callback - */ - "prefer-arrow-callback": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - allowNamedFunctions: boolean; - /** - * @default true - */ - allowUnboundThis: boolean; - }>, - ] - >; - - /** - * Rule to require `const` declarations for variables that are never reassigned after declared. - * - * @since 0.23.0 - * @see https://eslint.org/docs/rules/prefer-const - */ - "prefer-const": Linter.RuleEntry< - [ - Partial<{ - /** - * @default 'any' - */ - destructuring: "any" | "all"; - /** - * @default false - */ - ignoreReadBeforeAssign: boolean; - }>, - ] - >; - - /** - * Rule to require destructuring from arrays and/or objects. - * - * @since 3.13.0 - * @see https://eslint.org/docs/rules/prefer-destructuring - */ - "prefer-destructuring": Linter.RuleEntry< - [ - Partial< - | { - VariableDeclarator: Partial<{ - array: boolean; - object: boolean; - }>; - AssignmentExpression: Partial<{ - array: boolean; - object: boolean; - }>; - } - | { - array: boolean; - object: boolean; - } - >, - Partial<{ - enforceForRenamedProperties: boolean; - }>, - ] - >; - - /** - * Disallow the use of `Math.pow` in favor of the `**` operator. - * - * @since 6.7.0 - * @see https://eslint.org/docs/latest/rules/prefer-exponentiation-operator - */ - "prefer-exponentiation-operator": Linter.RuleEntry<[]>; - - /** - * Rule to disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals. - * - * @since 3.5.0 - * @see https://eslint.org/docs/rules/prefer-numeric-literals - */ - "prefer-numeric-literals": Linter.RuleEntry<[]>; - - /** - * Rule to require rest parameters instead of `arguments`. - * - * @since 2.0.0-alpha-1 - * @see https://eslint.org/docs/rules/prefer-rest-params - */ - "prefer-rest-params": Linter.RuleEntry<[]>; - - /** - * Rule to require spread operators instead of `.apply()`. - * - * @since 1.0.0-rc-1 - * @see https://eslint.org/docs/rules/prefer-spread - */ - "prefer-spread": Linter.RuleEntry<[]>; - - /** - * Rule to require template literals instead of string concatenation. - * - * @since 1.2.0 - * @see https://eslint.org/docs/rules/prefer-template - */ - "prefer-template": Linter.RuleEntry<[]>; - - /** - * Rule to require generator functions to contain `yield`. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 1.0.0-rc-1 - * @see https://eslint.org/docs/rules/require-yield - */ - "require-yield": Linter.RuleEntry<[]>; - - /** - * Rule to enforce spacing between rest and spread operators and their expressions. - * - * @since 2.12.0 - * @see https://eslint.org/docs/rules/rest-spread-spacing - */ - "rest-spread-spacing": Linter.RuleEntry<["never" | "always"]>; - - /** - * Rule to enforce sorted import declarations within modules. - * - * @since 2.0.0-beta.1 - * @see https://eslint.org/docs/rules/sort-imports - */ - "sort-imports": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - ignoreCase: boolean; - /** - * @default false - */ - ignoreDeclarationSort: boolean; - /** - * @default false - */ - ignoreMemberSort: boolean; - /** - * @default ['none', 'all', 'multiple', 'single'] - */ - memberSyntaxSortOrder: Array<"none" | "all" | "multiple" | "single">; - /** - * @default false - */ - allowSeparatedGroups: boolean; - }>, - ] - >; - - /** - * Rule to require symbol descriptions. - * - * @since 3.4.0 - * @see https://eslint.org/docs/rules/symbol-description - */ - "symbol-description": Linter.RuleEntry<[]>; - - /** - * Rule to require or disallow spacing around embedded expressions of template strings. - * - * @since 2.0.0-rc.0 - * @see https://eslint.org/docs/rules/template-curly-spacing - */ - "template-curly-spacing": Linter.RuleEntry<["never" | "always"]>; - - /** - * Rule to require or disallow spacing around the `*` in `yield*` expressions. - * - * @since 2.0.0-alpha-1 - * @see https://eslint.org/docs/rules/yield-star-spacing - */ - "yield-star-spacing": Linter.RuleEntry< - [ - | Partial<{ - before: boolean; - after: boolean; - }> - | "before" - | "after" - | "both" - | "neither", - ] - >; -} diff --git a/build_vtk_bundle/node_modules/@types/eslint/rules/index.d.ts b/build_vtk_bundle/node_modules/@types/eslint/rules/index.d.ts deleted file mode 100644 index 7470777c..00000000 --- a/build_vtk_bundle/node_modules/@types/eslint/rules/index.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Linter } from "../index"; - -import { BestPractices } from "./best-practices"; -import { Deprecated } from "./deprecated"; -import { ECMAScript6 } from "./ecmascript-6"; -import { NodeJSAndCommonJS } from "./node-commonjs"; -import { PossibleErrors } from "./possible-errors"; -import { StrictMode } from "./strict-mode"; -import { StylisticIssues } from "./stylistic-issues"; -import { Variables } from "./variables"; - -export interface ESLintRules - extends - Linter.RulesRecord, - PossibleErrors, - BestPractices, - StrictMode, - Variables, - NodeJSAndCommonJS, - StylisticIssues, - ECMAScript6, - Deprecated -{} diff --git a/build_vtk_bundle/node_modules/@types/eslint/rules/node-commonjs.d.ts b/build_vtk_bundle/node_modules/@types/eslint/rules/node-commonjs.d.ts deleted file mode 100644 index 56a96e3e..00000000 --- a/build_vtk_bundle/node_modules/@types/eslint/rules/node-commonjs.d.ts +++ /dev/null @@ -1,133 +0,0 @@ -import { Linter } from "../index"; - -export interface NodeJSAndCommonJS extends Linter.RulesRecord { - /** - * Rule to require `return` statements after callbacks. - * - * @since 1.0.0-rc-1 - * @see https://eslint.org/docs/rules/callback-return - */ - "callback-return": Linter.RuleEntry<[string[]]>; - - /** - * Rule to require `require()` calls to be placed at top-level module scope. - * - * @since 1.4.0 - * @see https://eslint.org/docs/rules/global-require - */ - "global-require": Linter.RuleEntry<[]>; - - /** - * Rule to require error handling in callbacks. - * - * @since 0.4.5 - * @see https://eslint.org/docs/rules/handle-callback-err - */ - "handle-callback-err": Linter.RuleEntry<[string]>; - - /** - * Rule to disallow use of the `Buffer()` constructor. - * - * @since 4.0.0-alpha.0 - * @see https://eslint.org/docs/rules/no-buffer-constructor - */ - "no-buffer-constructor": Linter.RuleEntry<[]>; - - /** - * Rule to disallow `require` calls to be mixed with regular variable declarations. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-mixed-requires - */ - "no-mixed-requires": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - grouping: boolean; - /** - * @default false - */ - allowCall: boolean; - }>, - ] - >; - - /** - * Rule to disallow `new` operators with calls to `require`. - * - * @since 0.6.0 - * @see https://eslint.org/docs/rules/no-new-require - */ - "no-new-require": Linter.RuleEntry<[]>; - - /** - * Rule to disallow string concatenation when using `__dirname` and `__filename`. - * - * @since 0.4.0 - * @see https://eslint.org/docs/rules/no-path-concat - */ - "no-path-concat": Linter.RuleEntry<[]>; - - /** - * Rule to disallow the use of `process.env`. - * - * @since 0.9.0 - * @see https://eslint.org/docs/rules/no-process-env - */ - "no-process-env": Linter.RuleEntry<[]>; - - /** - * Rule to disallow the use of `process.exit()`. - * - * @since 0.4.0 - * @see https://eslint.org/docs/rules/no-process-exit - */ - "no-process-exit": Linter.RuleEntry<[]>; - - /** - * Rule to disallow specified modules when loaded by `require`. - * - * @since 0.6.0 - * @see https://eslint.org/docs/rules/no-restricted-modules - */ - "no-restricted-modules": Linter.RuleEntry< - [ - ...Array< - | string - | { - name: string; - message?: string | undefined; - } - | Partial<{ - paths: Array< - | string - | { - name: string; - message?: string | undefined; - } - >; - patterns: string[]; - }> - >, - ] - >; - - /** - * Rule to disallow synchronous methods. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-sync - */ - "no-sync": Linter.RuleEntry< - [ - { - /** - * @default false - */ - allowAtRootLevel: boolean; - }, - ] - >; -} diff --git a/build_vtk_bundle/node_modules/@types/eslint/rules/possible-errors.d.ts b/build_vtk_bundle/node_modules/@types/eslint/rules/possible-errors.d.ts deleted file mode 100644 index b6fb185d..00000000 --- a/build_vtk_bundle/node_modules/@types/eslint/rules/possible-errors.d.ts +++ /dev/null @@ -1,571 +0,0 @@ -import { Linter } from "../index"; - -export interface PossibleErrors extends Linter.RulesRecord { - /** - * Rule to enforce `for` loop update clause moving the counter in the right direction. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 4.0.0-beta.0 - * @see https://eslint.org/docs/rules/for-direction - */ - "for-direction": Linter.RuleEntry<[]>; - - /** - * Rule to enforce `return` statements in getters. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 4.2.0 - * @see https://eslint.org/docs/rules/getter-return - */ - "getter-return": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - allowImplicit: boolean; - }>, - ] - >; - - /** - * Rule to disallow using an async function as a `Promise` executor. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 5.3.0 - * @see https://eslint.org/docs/rules/no-async-promise-executor - */ - "no-async-promise-executor": Linter.RuleEntry<[]>; - - /** - * Rule to disallow `await` inside of loops. - * - * @since 3.12.0 - * @see https://eslint.org/docs/rules/no-await-in-loop - */ - "no-await-in-loop": Linter.RuleEntry<[]>; - - /** - * Rule to disallow comparing against `-0`. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 3.17.0 - * @see https://eslint.org/docs/rules/no-compare-neg-zero - */ - "no-compare-neg-zero": Linter.RuleEntry<[]>; - - /** - * Rule to disallow assignment operators in conditional statements. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-cond-assign - */ - "no-cond-assign": Linter.RuleEntry<["except-parens" | "always"]>; - - /** - * Rule to disallow the use of `console`. - * - * @since 0.0.2 - * @see https://eslint.org/docs/rules/no-console - */ - "no-console": Linter.RuleEntry< - [ - Partial<{ - allow: Array; - }>, - ] - >; - - /** - * Rule to disallow constant expressions in conditions. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.4.1 - * @see https://eslint.org/docs/rules/no-constant-condition - */ - "no-constant-condition": Linter.RuleEntry< - [ - { - /** - * @default true - */ - checkLoops: boolean; - }, - ] - >; - - /** - * Rule to disallow control characters in regular expressions. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.1.0 - * @see https://eslint.org/docs/rules/no-control-regex - */ - "no-control-regex": Linter.RuleEntry<[]>; - - /** - * Rule to disallow the use of `debugger`. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.0.2 - * @see https://eslint.org/docs/rules/no-debugger - */ - "no-debugger": Linter.RuleEntry<[]>; - - /** - * Rule to disallow duplicate arguments in `function` definitions. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.16.0 - * @see https://eslint.org/docs/rules/no-dupe-args - */ - "no-dupe-args": Linter.RuleEntry<[]>; - - /** - * Disallow duplicate conditions in if-else-if chains. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 6.7.0 - * @see https://eslint.org/docs/rules/no-dupe-else-if - */ - "no-dupe-else-if": Linter.RuleEntry<[]>; - - /** - * Rule to disallow duplicate keys in object literals. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-dupe-keys - */ - "no-dupe-keys": Linter.RuleEntry<[]>; - - /** - * Rule to disallow a duplicate case label. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.17.0 - * @see https://eslint.org/docs/rules/no-duplicate-case - */ - "no-duplicate-case": Linter.RuleEntry<[]>; - - /** - * Rule to disallow empty block statements. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.0.2 - * @see https://eslint.org/docs/rules/no-empty - */ - "no-empty": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - allowEmptyCatch: boolean; - }>, - ] - >; - - /** - * Rule to disallow empty character classes in regular expressions. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.22.0 - * @see https://eslint.org/docs/rules/no-empty-character-class - */ - "no-empty-character-class": Linter.RuleEntry<[]>; - - /** - * Rule to disallow reassigning exceptions in `catch` clauses. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-ex-assign - */ - "no-ex-assign": Linter.RuleEntry<[]>; - - /** - * Rule to disallow unnecessary boolean casts. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.4.0 - * @see https://eslint.org/docs/rules/no-extra-boolean-cast - */ - "no-extra-boolean-cast": Linter.RuleEntry<[]>; - - /** - * Rule to disallow unnecessary parentheses. - * - * @since 0.1.4 - * @see https://eslint.org/docs/rules/no-extra-parens - */ - "no-extra-parens": - | Linter.RuleEntry< - [ - "all", - Partial<{ - /** - * @default true, - */ - conditionalAssign: boolean; - /** - * @default true - */ - returnAssign: boolean; - /** - * @default true - */ - nestedBinaryExpressions: boolean; - /** - * @default 'none' - */ - ignoreJSX: "none" | "all" | "multi-line" | "single-line"; - /** - * @default true - */ - enforceForArrowConditionals: boolean; - }>, - ] - > - | Linter.RuleEntry<["functions"]>; - - /** - * Rule to disallow unnecessary semicolons. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-extra-semi - */ - "no-extra-semi": Linter.RuleEntry<[]>; - - /** - * Rule to disallow reassigning `function` declarations. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-func-assign - */ - "no-func-assign": Linter.RuleEntry<[]>; - - /** - * Rule to disallow variable or `function` declarations in nested blocks. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.6.0 - * @see https://eslint.org/docs/rules/no-inner-declarations - */ - "no-inner-declarations": Linter.RuleEntry<["functions" | "both"]>; - - /** - * Rule to disallow invalid regular expression strings in `RegExp` constructors. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.1.4 - * @see https://eslint.org/docs/rules/no-invalid-regexp - */ - "no-invalid-regexp": Linter.RuleEntry< - [ - Partial<{ - allowConstructorFlags: string[]; - }>, - ] - >; - - /** - * Rule to disallow irregular whitespace. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.9.0 - * @see https://eslint.org/docs/rules/no-irregular-whitespace - */ - "no-irregular-whitespace": Linter.RuleEntry< - [ - Partial<{ - /** - * @default true - */ - skipStrings: boolean; - /** - * @default false - */ - skipComments: boolean; - /** - * @default false - */ - skipRegExps: boolean; - /** - * @default false - */ - skipTemplates: boolean; - }>, - ] - >; - - /** - * Disallow literal numbers that lose precision. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 7.1.0 - * @see https://eslint.org/docs/latest/rules/no-loss-of-precision - */ - "no-loss-of-precision": Linter.RuleEntry<[]>; - - /** - * Rule to disallow characters which are made with multiple code points in character class syntax. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 5.3.0 - * @see https://eslint.org/docs/rules/no-misleading-character-class - */ - "no-misleading-character-class": Linter.RuleEntry<[]>; - - /** - * Rule to disallow calling global object properties as functions. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-obj-calls - */ - "no-obj-calls": Linter.RuleEntry<[]>; - - /** - * Rule to disallow returning values from Promise executor functions. - * - * @since 7.3.0 - * @see https://eslint.org/docs/rules/no-promise-executor-return - */ - "no-promise-executor-return": Linter.RuleEntry<[ - { - /** - * @default false - */ - allowVoid?: boolean; - }, - ]>; - - /** - * Rule to disallow use of `Object.prototypes` builtins directly. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 2.11.0 - * @see https://eslint.org/docs/rules/no-prototype-builtins - */ - "no-prototype-builtins": Linter.RuleEntry<[]>; - - /** - * Rule to disallow multiple spaces in regular expressions. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.4.0 - * @see https://eslint.org/docs/rules/no-regex-spaces - */ - "no-regex-spaces": Linter.RuleEntry<[]>; - - /** - * Rule to disallow sparse arrays. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.4.0 - * @see https://eslint.org/docs/rules/no-sparse-arrays - */ - "no-sparse-arrays": Linter.RuleEntry<[]>; - - /** - * Rule to disallow template literal placeholder syntax in regular strings. - * - * @since 3.3.0 - * @see https://eslint.org/docs/rules/no-template-curly-in-string - */ - "no-template-curly-in-string": Linter.RuleEntry<[]>; - - /** - * Rule to disallow confusing multiline expressions. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.24.0 - * @see https://eslint.org/docs/rules/no-unexpected-multiline - */ - "no-unexpected-multiline": Linter.RuleEntry<[]>; - - /** - * Rule to disallow unreachable code after `return`, `throw`, `continue`, and `break` statements. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.0.6 - * @see https://eslint.org/docs/rules/no-unreachable - */ - "no-unreachable": Linter.RuleEntry<[]>; - - /** - * Disallow loops with a body that allows only one iteration. - * - * @since 7.3.0 - * @see https://eslint.org/docs/latest/rules/no-unreachable-loop - */ - "no-unreachable-loop": Linter.RuleEntry< - [ - Partial<{ - /** - * @default [] - */ - ignore: "WhileStatement" | "DoWhileStatement" | "ForStatement" | "ForInStatement" | "ForOfStatement"; - }>, - ] - >; - - /** - * Rule to disallow control flow statements in `finally` blocks. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 2.9.0 - * @see https://eslint.org/docs/rules/no-unsafe-finally - */ - "no-unsafe-finally": Linter.RuleEntry<[]>; - - /** - * Rule to disallow negating the left operand of relational operators. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 3.3.0 - * @see https://eslint.org/docs/rules/no-unsafe-negation - */ - "no-unsafe-negation": Linter.RuleEntry<[]>; - - /** - * Disallow use of optional chaining in contexts where the `undefined` value is not allowed. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 7.15.0 - * @see https://eslint.org/docs/rules/no-unsafe-optional-chaining - */ - "no-unsafe-optional-chaining": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - disallowArithmeticOperators: boolean; - }>, - ] - >; - - /** - * Rule to disallow assignments that can lead to race conditions due to usage of `await` or `yield`. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 5.3.0 - * @see https://eslint.org/docs/rules/require-atomic-updates - */ - "require-atomic-updates": Linter.RuleEntry<[]>; - - /** - * Rule to require calls to `isNaN()` when checking for `NaN`. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.0.6 - * @see https://eslint.org/docs/rules/use-isnan - */ - "use-isnan": Linter.RuleEntry< - [ - Partial<{ - /** - * @default true - */ - enforceForSwitchCase: boolean; - /** - * @default true - */ - enforceForIndexOf: boolean; - }>, - ] - >; - - /** - * Rule to enforce comparing `typeof` expressions against valid strings. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.5.0 - * @see https://eslint.org/docs/rules/valid-typeof - */ - "valid-typeof": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - requireStringLiterals: boolean; - }>, - ] - >; -} diff --git a/build_vtk_bundle/node_modules/@types/eslint/rules/strict-mode.d.ts b/build_vtk_bundle/node_modules/@types/eslint/rules/strict-mode.d.ts deleted file mode 100644 index d63929b1..00000000 --- a/build_vtk_bundle/node_modules/@types/eslint/rules/strict-mode.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Linter } from "../index"; - -export interface StrictMode extends Linter.RulesRecord { - /** - * Rule to require or disallow strict mode directives. - * - * @since 0.1.0 - * @see https://eslint.org/docs/rules/strict - */ - strict: Linter.RuleEntry<["safe" | "global" | "function" | "never"]>; -} diff --git a/build_vtk_bundle/node_modules/@types/eslint/rules/stylistic-issues.d.ts b/build_vtk_bundle/node_modules/@types/eslint/rules/stylistic-issues.d.ts deleted file mode 100644 index ec2f2028..00000000 --- a/build_vtk_bundle/node_modules/@types/eslint/rules/stylistic-issues.d.ts +++ /dev/null @@ -1,1905 +0,0 @@ -import { Linter } from "../index"; - -export interface StylisticIssues extends Linter.RulesRecord { - /** - * Rule to enforce linebreaks after opening and before closing array brackets. - * - * @since 4.0.0-alpha.1 - * @see https://eslint.org/docs/rules/array-bracket-newline - */ - "array-bracket-newline": Linter.RuleEntry< - [ - | "always" - | "never" - | "consistent" - | Partial<{ - /** - * @default true - */ - multiline: boolean; - /** - * @default null - */ - minItems: number | null; - }>, - ] - >; - - /** - * Rule to enforce consistent spacing inside array brackets. - * - * @since 0.24.0 - * @see https://eslint.org/docs/rules/array-bracket-spacing - */ - "array-bracket-spacing": - | Linter.RuleEntry< - [ - "never", - Partial<{ - /** - * @default false - */ - singleValue: boolean; - /** - * @default false - */ - objectsInArrays: boolean; - /** - * @default false - */ - arraysInArrays: boolean; - }>, - ] - > - | Linter.RuleEntry< - [ - "always", - Partial<{ - /** - * @default true - */ - singleValue: boolean; - /** - * @default true - */ - objectsInArrays: boolean; - /** - * @default true - */ - arraysInArrays: boolean; - }>, - ] - >; - - /** - * Rule to enforce line breaks after each array element. - * - * @since 4.0.0-rc.0 - * @see https://eslint.org/docs/rules/array-element-newline - */ - "array-element-newline": Linter.RuleEntry< - [ - | "always" - | "never" - | "consistent" - | Partial<{ - /** - * @default true - */ - multiline: boolean; - /** - * @default null - */ - minItems: number | null; - }>, - ] - >; - - /** - * Rule to disallow or enforce spaces inside of blocks after opening block and before closing block. - * - * @since 1.2.0 - * @see https://eslint.org/docs/rules/block-spacing - */ - "block-spacing": Linter.RuleEntry<["always" | "never"]>; - - /** - * Rule to enforce consistent brace style for blocks. - * - * @since 0.0.7 - * @see https://eslint.org/docs/rules/brace-style - */ - "brace-style": Linter.RuleEntry< - [ - "1tbs" | "stroustrup" | "allman", - Partial<{ - /** - * @default false - */ - allowSingleLine: boolean; - }>, - ] - >; - - /** - * Rule to enforce camelcase naming convention. - * - * @since 0.0.2 - * @see https://eslint.org/docs/rules/camelcase - */ - camelcase: Linter.RuleEntry< - [ - Partial<{ - /** - * @default 'always' - */ - properties: "always" | "never"; - /** - * @default false - */ - ignoreDestructuring: boolean; - /** - * @remarks - * Also accept for regular expression patterns - */ - allow: string[]; - }>, - ] - >; - - /** - * Rule to enforce or disallow capitalization of the first letter of a comment. - * - * @since 3.11.0 - * @see https://eslint.org/docs/rules/capitalized-comments - */ - "capitalized-comments": Linter.RuleEntry< - [ - "always" | "never", - Partial<{ - ignorePattern: string; - /** - * @default false - */ - ignoreInlineComments: boolean; - /** - * @default false - */ - ignoreConsecutiveComments: boolean; - }>, - ] - >; - - /** - * Rule to require or disallow trailing commas. - * - * @since 0.16.0 - * @see https://eslint.org/docs/rules/comma-dangle - */ - "comma-dangle": Linter.RuleEntry< - [ - | "never" - | "always" - | "always-multiline" - | "only-multiline" - | Partial<{ - /** - * @default 'never' - */ - arrays: "never" | "always" | "always-multiline" | "only-multiline"; - /** - * @default 'never' - */ - objects: "never" | "always" | "always-multiline" | "only-multiline"; - /** - * @default 'never' - */ - imports: "never" | "always" | "always-multiline" | "only-multiline"; - /** - * @default 'never' - */ - exports: "never" | "always" | "always-multiline" | "only-multiline"; - /** - * @default 'never' - */ - functions: "never" | "always" | "always-multiline" | "only-multiline"; - }>, - ] - >; - - /** - * Rule to enforce consistent spacing before and after commas. - * - * @since 0.9.0 - * @see https://eslint.org/docs/rules/comma-spacing - */ - "comma-spacing": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - before: boolean; - /** - * @default true - */ - after: boolean; - }>, - ] - >; - - /** - * Rule to enforce consistent comma style. - * - * @since 0.9.0 - * @see https://eslint.org/docs/rules/comma-style - */ - "comma-style": Linter.RuleEntry< - [ - "last" | "first", - Partial<{ - exceptions: Record; - }>, - ] - >; - - /** - * Rule to enforce consistent spacing inside computed property brackets. - * - * @since 0.23.0 - * @see https://eslint.org/docs/rules/computed-property-spacing - */ - "computed-property-spacing": Linter.RuleEntry<["never" | "always"]>; - - /** - * Rule to enforce consistent naming when capturing the current execution context. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/consistent-this - */ - "consistent-this": Linter.RuleEntry<[...string[]]>; - - /** - * Rule to require or disallow newline at the end of files. - * - * @since 0.7.1 - * @see https://eslint.org/docs/rules/eol-last - */ - "eol-last": Linter.RuleEntry< - [ - "always" | "never", // | 'unix' | 'windows' - ] - >; - - /** - * Rule to require or disallow spacing between function identifiers and their invocations. - * - * @since 3.3.0 - * @see https://eslint.org/docs/rules/func-call-spacing - */ - "func-call-spacing": Linter.RuleEntry<["never" | "always"]>; - - /** - * Rule to require function names to match the name of the variable or property to which they are assigned. - * - * @since 3.8.0 - * @see https://eslint.org/docs/rules/func-name-matching - */ - "func-name-matching": - | Linter.RuleEntry< - [ - "always" | "never", - Partial<{ - /** - * @default false - */ - considerPropertyDescriptor: boolean; - /** - * @default false - */ - includeCommonJSModuleExports: boolean; - }>, - ] - > - | Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - considerPropertyDescriptor: boolean; - /** - * @default false - */ - includeCommonJSModuleExports: boolean; - }>, - ] - >; - - /** - * Rule to require or disallow named `function` expressions. - * - * @since 0.4.0 - * @see https://eslint.org/docs/rules/func-names - */ - "func-names": Linter.RuleEntry< - [ - "always" | "as-needed" | "never", - Partial<{ - generators: "always" | "as-needed" | "never"; - }>, - ] - >; - - /** - * Rule to enforce the consistent use of either `function` declarations or expressions. - * - * @since 0.2.0 - * @see https://eslint.org/docs/rules/func-style - */ - "func-style": Linter.RuleEntry< - [ - "expression" | "declaration", - Partial<{ - /** - * @default false - */ - allowArrowFunctions: boolean; - }>, - ] - >; - - /** - * Rule to enforce consistent line breaks inside function parentheses. - * - * @since 4.6.0 - * @see https://eslint.org/docs/rules/function-paren-newline - */ - "function-paren-newline": Linter.RuleEntry< - [ - | "always" - | "never" - | "multiline" - | "multiline-arguments" - | "consistent" - | Partial<{ - minItems: number; - }>, - ] - >; - - /** - * Rule to disallow specified identifiers. - * - * @since 2.0.0-beta.2 - * @see https://eslint.org/docs/rules/id-blacklist - */ - "id-blacklist": Linter.RuleEntry<[...string[]]>; - - /** - * Rule to enforce minimum and maximum identifier lengths. - * - * @since 1.0.0 - * @see https://eslint.org/docs/rules/id-length - */ - "id-length": Linter.RuleEntry< - [ - Partial<{ - /** - * @default 2 - */ - min: number; - /** - * @default Infinity - */ - max: number; - /** - * @default 'always' - */ - properties: "always" | "never"; - exceptions: string[]; - }>, - ] - >; - - /** - * Rule to require identifiers to match a specified regular expression. - * - * @since 1.0.0 - * @see https://eslint.org/docs/rules/id-match - */ - "id-match": Linter.RuleEntry< - [ - string, - Partial<{ - /** - * @default false - */ - properties: boolean; - /** - * @default false - */ - onlyDeclarations: boolean; - /** - * @default false - */ - ignoreDestructuring: boolean; - }>, - ] - >; - - /** - * Rule to enforce the location of arrow function bodies. - * - * @since 4.12.0 - * @see https://eslint.org/docs/rules/implicit-arrow-linebreak - */ - "implicit-arrow-linebreak": Linter.RuleEntry<["beside" | "below"]>; - - /** - * Rule to enforce consistent indentation. - * - * @since 0.14.0 - * @see https://eslint.org/docs/rules/indent - */ - indent: Linter.RuleEntry< - [ - number | "tab", - Partial<{ - /** - * @default 0 - */ - SwitchCase: number; - /** - * @default 1 - */ - VariableDeclarator: - | Partial<{ - /** - * @default 1 - */ - var: number | "first"; - /** - * @default 1 - */ - let: number | "first"; - /** - * @default 1 - */ - const: number | "first"; - }> - | number - | "first"; - /** - * @default 1 - */ - outerIIFEBody: number; - /** - * @default 1 - */ - MemberExpression: number | "off"; - /** - * @default { parameters: 1, body: 1 } - */ - FunctionDeclaration: Partial<{ - /** - * @default 1 - */ - parameters: number | "first" | "off"; - /** - * @default 1 - */ - body: number; - }>; - /** - * @default { parameters: 1, body: 1 } - */ - FunctionExpression: Partial<{ - /** - * @default 1 - */ - parameters: number | "first" | "off"; - /** - * @default 1 - */ - body: number; - }>; - /** - * @default { arguments: 1 } - */ - CallExpression: Partial<{ - /** - * @default 1 - */ - arguments: number | "first" | "off"; - }>; - /** - * @default 1 - */ - ArrayExpression: number | "first" | "off"; - /** - * @default 1 - */ - ObjectExpression: number | "first" | "off"; - /** - * @default 1 - */ - ImportDeclaration: number | "first" | "off"; - /** - * @default false - */ - flatTernaryExpressions: boolean; - ignoredNodes: string[]; - /** - * @default false - */ - ignoreComments: boolean; - }>, - ] - >; - - /** - * Rule to enforce the consistent use of either double or single quotes in JSX attributes. - * - * @since 1.4.0 - * @see https://eslint.org/docs/rules/jsx-quotes - */ - "jsx-quotes": Linter.RuleEntry<["prefer-double" | "prefer-single"]>; - - /** - * Rule to enforce consistent spacing between keys and values in object literal properties. - * - * @since 0.9.0 - * @see https://eslint.org/docs/rules/key-spacing - */ - "key-spacing": Linter.RuleEntry< - [ - | Partial< - | { - /** - * @default false - */ - beforeColon: boolean; - /** - * @default true - */ - afterColon: boolean; - /** - * @default 'strict' - */ - mode: "strict" | "minimum"; - align: - | Partial<{ - /** - * @default false - */ - beforeColon: boolean; - /** - * @default true - */ - afterColon: boolean; - /** - * @default 'colon' - */ - on: "value" | "colon"; - /** - * @default 'strict' - */ - mode: "strict" | "minimum"; - }> - | "value" - | "colon"; - } - | { - singleLine?: - | Partial<{ - /** - * @default false - */ - beforeColon: boolean; - /** - * @default true - */ - afterColon: boolean; - /** - * @default 'strict' - */ - mode: "strict" | "minimum"; - }> - | undefined; - multiLine?: - | Partial<{ - /** - * @default false - */ - beforeColon: boolean; - /** - * @default true - */ - afterColon: boolean; - /** - * @default 'strict' - */ - mode: "strict" | "minimum"; - align: - | Partial<{ - /** - * @default false - */ - beforeColon: boolean; - /** - * @default true - */ - afterColon: boolean; - /** - * @default 'colon' - */ - on: "value" | "colon"; - /** - * @default 'strict' - */ - mode: "strict" | "minimum"; - }> - | "value" - | "colon"; - }> - | undefined; - } - > - | { - align: Partial<{ - /** - * @default false - */ - beforeColon: boolean; - /** - * @default true - */ - afterColon: boolean; - /** - * @default 'colon' - */ - on: "value" | "colon"; - /** - * @default 'strict' - */ - mode: "strict" | "minimum"; - }>; - singleLine?: - | Partial<{ - /** - * @default false - */ - beforeColon: boolean; - /** - * @default true - */ - afterColon: boolean; - /** - * @default 'strict' - */ - mode: "strict" | "minimum"; - }> - | undefined; - multiLine?: - | Partial<{ - /** - * @default false - */ - beforeColon: boolean; - /** - * @default true - */ - afterColon: boolean; - /** - * @default 'strict' - */ - mode: "strict" | "minimum"; - }> - | undefined; - }, - ] - >; - - /** - * Rule to enforce consistent spacing before and after keywords. - * - * @since 2.0.0-beta.1 - * @see https://eslint.org/docs/rules/keyword-spacing - */ - "keyword-spacing": Linter.RuleEntry< - [ - Partial<{ - /** - * @default true - */ - before: boolean; - /** - * @default true - */ - after: boolean; - overrides: Record< - string, - Partial<{ - before: boolean; - after: boolean; - }> - >; - }>, - ] - >; - - /** - * Rule to enforce position of line comments. - * - * @since 3.5.0 - * @see https://eslint.org/docs/rules/line-comment-position - */ - "line-comment-position": Linter.RuleEntry< - [ - Partial<{ - /** - * @default 'above' - */ - position: "above" | "beside"; - ignorePattern: string; - /** - * @default true - */ - applyDefaultIgnorePatterns: boolean; - }>, - ] - >; - - /** - * Rule to enforce consistent linebreak style. - * - * @since 0.21.0 - * @see https://eslint.org/docs/rules/linebreak-style - */ - "linebreak-style": Linter.RuleEntry<["unix" | "windows"]>; - - /** - * Rule to require empty lines around comments. - * - * @since 0.22.0 - * @see https://eslint.org/docs/rules/lines-around-comment - */ - "lines-around-comment": Linter.RuleEntry< - [ - Partial<{ - /** - * @default true - */ - beforeBlockComment: boolean; - /** - * @default false - */ - afterBlockComment: boolean; - /** - * @default false - */ - beforeLineComment: boolean; - /** - * @default false - */ - afterLineComment: boolean; - /** - * @default false - */ - allowBlockStart: boolean; - /** - * @default false - */ - allowBlockEnd: boolean; - /** - * @default false - */ - allowObjectStart: boolean; - /** - * @default false - */ - allowObjectEnd: boolean; - /** - * @default false - */ - allowArrayStart: boolean; - /** - * @default false - */ - allowArrayEnd: boolean; - /** - * @default false - */ - allowClassStart: boolean; - /** - * @default false - */ - allowClassEnd: boolean; - ignorePattern: string; - /** - * @default true - */ - applyDefaultIgnorePatterns: boolean; - }>, - ] - >; - - /** - * Rule to require or disallow an empty line between class members. - * - * @since 4.9.0 - * @see https://eslint.org/docs/rules/lines-between-class-members - */ - "lines-between-class-members": Linter.RuleEntry< - [ - "always" | "never", - Partial<{ - /** - * @default false - */ - exceptAfterSingleLine: boolean; - }>, - ] - >; - - /** - * Rule to enforce a maximum depth that blocks can be nested. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/max-depth - */ - "max-depth": Linter.RuleEntry< - [ - Partial<{ - /** - * @default 4 - */ - max: number; - }>, - ] - >; - - /** - * Rule to enforce a maximum line length. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/max-len - */ - "max-len": Linter.RuleEntry< - [ - Partial<{ - /** - * @default 80 - */ - code: number; - /** - * @default 4 - */ - tabWidth: number; - comments: number; - ignorePattern: string; - /** - * @default false - */ - ignoreComments: boolean; - /** - * @default false - */ - ignoreTrailingComments: boolean; - /** - * @default false - */ - ignoreUrls: boolean; - /** - * @default false - */ - ignoreStrings: boolean; - /** - * @default false - */ - ignoreTemplateLiterals: boolean; - /** - * @default false - */ - ignoreRegExpLiterals: boolean; - }>, - ] - >; - - /** - * Rule to enforce a maximum number of lines per file. - * - * @since 2.12.0 - * @see https://eslint.org/docs/rules/max-lines - */ - "max-lines": Linter.RuleEntry< - [ - | Partial<{ - /** - * @default 300 - */ - max: number; - /** - * @default false - */ - skipBlankLines: boolean; - /** - * @default false - */ - skipComments: boolean; - }> - | number, - ] - >; - - /** - * Rule to enforce a maximum number of line of code in a function. - * - * @since 5.0.0 - * @see https://eslint.org/docs/rules/max-lines-per-function - */ - "max-lines-per-function": Linter.RuleEntry< - [ - Partial<{ - /** - * @default 50 - */ - max: number; - /** - * @default false - */ - skipBlankLines: boolean; - /** - * @default false - */ - skipComments: boolean; - /** - * @default false - */ - IIFEs: boolean; - }>, - ] - >; - - /** - * Rule to enforce a maximum depth that callbacks can be nested. - * - * @since 0.2.0 - * @see https://eslint.org/docs/rules/max-nested-callbacks - */ - "max-nested-callbacks": Linter.RuleEntry< - [ - | Partial<{ - /** - * @default 10 - */ - max: number; - }> - | number, - ] - >; - - /** - * Rule to enforce a maximum number of parameters in function definitions. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/max-params - */ - "max-params": Linter.RuleEntry< - [ - | Partial<{ - /** - * @default 3 - */ - max: number; - }> - | number, - ] - >; - - /** - * Rule to enforce a maximum number of statements allowed in function blocks. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/max-statements - */ - "max-statements": Linter.RuleEntry< - [ - | Partial<{ - /** - * @default 10 - */ - max: number; - /** - * @default false - */ - ignoreTopLevelFunctions: boolean; - }> - | number, - ] - >; - - /** - * Rule to enforce a maximum number of statements allowed per line. - * - * @since 2.5.0 - * @see https://eslint.org/docs/rules/max-statements-per-line - */ - "max-statements-per-line": Linter.RuleEntry< - [ - | Partial<{ - /** - * @default 1 - */ - max: number; - }> - | number, - ] - >; - - /** - * Rule to enforce a particular style for multiline comments. - * - * @since 4.10.0 - * @see https://eslint.org/docs/rules/multiline-comment-style - */ - "multiline-comment-style": Linter.RuleEntry<["starred-block" | "bare-block" | "separate-lines"]>; - - /** - * Rule to enforce newlines between operands of ternary expressions. - * - * @since 3.1.0 - * @see https://eslint.org/docs/rules/multiline-ternary - */ - "multiline-ternary": Linter.RuleEntry<["always" | "always-multiline" | "never"]>; - - /** - * Rule to require constructor names to begin with a capital letter. - * - * @since 0.0.3-0 - * @see https://eslint.org/docs/rules/new-cap - */ - "new-cap": Linter.RuleEntry< - [ - Partial<{ - /** - * @default true - */ - newIsCap: boolean; - /** - * @default true - */ - capIsNew: boolean; - newIsCapExceptions: string[]; - newIsCapExceptionPattern: string; - capIsNewExceptions: string[]; - capIsNewExceptionPattern: string; - /** - * @default true - */ - properties: boolean; - }>, - ] - >; - - /** - * Rule to enforce or disallow parentheses when invoking a constructor with no arguments. - * - * @since 0.0.6 - * @see https://eslint.org/docs/rules/new-parens - */ - "new-parens": Linter.RuleEntry<["always" | "never"]>; - - /** - * Rule to require a newline after each call in a method chain. - * - * @since 2.0.0-rc.0 - * @see https://eslint.org/docs/rules/newline-per-chained-call - */ - "newline-per-chained-call": Linter.RuleEntry< - [ - { - /** - * @default 2 - */ - ignoreChainWithDepth: number; - }, - ] - >; - - /** - * Rule to disallow `Array` constructors. - * - * @since 0.4.0 - * @see https://eslint.org/docs/rules/no-array-constructor - */ - "no-array-constructor": Linter.RuleEntry<[]>; - - /** - * Rule to disallow bitwise operators. - * - * @since 0.0.2 - * @see https://eslint.org/docs/rules/no-bitwise - */ - "no-bitwise": Linter.RuleEntry< - [ - Partial<{ - allow: string[]; - /** - * @default false - */ - int32Hint: boolean; - }>, - ] - >; - - /** - * Rule to disallow `continue` statements. - * - * @since 0.19.0 - * @see https://eslint.org/docs/rules/no-continue - */ - "no-continue": Linter.RuleEntry<[]>; - - /** - * Rule to disallow inline comments after code. - * - * @since 0.10.0 - * @see https://eslint.org/docs/rules/no-inline-comments - */ - "no-inline-comments": Linter.RuleEntry<[]>; - - /** - * Rule to disallow `if` statements as the only statement in `else` blocks. - * - * @since 0.6.0 - * @see https://eslint.org/docs/rules/no-lonely-if - */ - "no-lonely-if": Linter.RuleEntry<[]>; - - /** - * Rule to disallow mixed binary operators. - * - * @since 2.12.0 - * @see https://eslint.org/docs/rules/no-mixed-operators - */ - "no-mixed-operators": Linter.RuleEntry< - [ - Partial<{ - /** - * @default - * [ - * ["+", "-", "*", "/", "%", "**"], - * ["&", "|", "^", "~", "<<", ">>", ">>>"], - * ["==", "!=", "===", "!==", ">", ">=", "<", "<="], - * ["&&", "||"], - * ["in", "instanceof"] - * ] - */ - groups: string[][]; - /** - * @default true - */ - allowSamePrecedence: boolean; - }>, - ] - >; - - /** - * Rule to disallow mixed spaces and tabs for indentation. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.7.1 - * @see https://eslint.org/docs/rules/no-mixed-spaces-and-tabs - */ - "no-mixed-spaces-and-tabs": Linter.RuleEntry<["smart-tabs"]>; - - /** - * Rule to disallow use of chained assignment expressions. - * - * @since 3.14.0 - * @see https://eslint.org/docs/rules/no-multi-assign - */ - "no-multi-assign": Linter.RuleEntry<[]>; - - /** - * Rule to disallow multiple empty lines. - * - * @since 0.9.0 - * @see https://eslint.org/docs/rules/no-multiple-empty-lines - */ - "no-multiple-empty-lines": Linter.RuleEntry< - [ - | Partial<{ - /** - * @default 2 - */ - max: number; - maxEOF: number; - maxBOF: number; - }> - | number, - ] - >; - - /** - * Rule to disallow negated conditions. - * - * @since 1.6.0 - * @see https://eslint.org/docs/rules/no-negated-condition - */ - "no-negated-condition": Linter.RuleEntry<[]>; - - /** - * Rule to disallow nested ternary expressions. - * - * @since 0.2.0 - * @see https://eslint.org/docs/rules/no-nested-ternary - */ - "no-nested-ternary": Linter.RuleEntry<[]>; - - /** - * Rule to disallow `Object` constructors. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-new-object - */ - "no-new-object": Linter.RuleEntry<[]>; - - /** - * Rule to disallow the unary operators `++` and `--`. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-plusplus - */ - "no-plusplus": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - allowForLoopAfterthoughts: boolean; - }>, - ] - >; - - /** - * Rule to disallow specified syntax. - * - * @since 1.4.0 - * @see https://eslint.org/docs/rules/no-restricted-syntax - */ - "no-restricted-syntax": Linter.RuleEntry< - [ - ...Array< - | string - | { - selector: string; - message?: string | undefined; - } - >, - ] - >; - - /** - * Rule to disallow all tabs. - * - * @since 3.2.0 - * @see https://eslint.org/docs/rules/no-tabs - */ - "no-tabs": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - allowIndentationTabs: boolean; - }>, - ] - >; - - /** - * Rule to disallow ternary operators. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-ternary - */ - "no-ternary": Linter.RuleEntry<[]>; - - /** - * Rule to disallow trailing whitespace at the end of lines. - * - * @since 0.7.1 - * @see https://eslint.org/docs/rules/no-trailing-spaces - */ - "no-trailing-spaces": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - skipBlankLines: boolean; - /** - * @default false - */ - ignoreComments: boolean; - }>, - ] - >; - - /** - * Rule to disallow dangling underscores in identifiers. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-underscore-dangle - */ - "no-underscore-dangle": Linter.RuleEntry< - [ - Partial<{ - allow: string[]; - /** - * @default false - */ - allowAfterThis: boolean; - /** - * @default false - */ - allowAfterSuper: boolean; - /** - * @default false - */ - enforceInMethodNames: boolean; - }>, - ] - >; - - /** - * Rule to disallow ternary operators when simpler alternatives exist. - * - * @since 0.21.0 - * @see https://eslint.org/docs/rules/no-unneeded-ternary - */ - "no-unneeded-ternary": Linter.RuleEntry< - [ - Partial<{ - /** - * @default true - */ - defaultAssignment: boolean; - }>, - ] - >; - - /** - * Rule to disallow whitespace before properties. - * - * @since 2.0.0-beta.1 - * @see https://eslint.org/docs/rules/no-whitespace-before-property - */ - "no-whitespace-before-property": Linter.RuleEntry<[]>; - - /** - * Rule to enforce the location of single-line statements. - * - * @since 3.17.0 - * @see https://eslint.org/docs/rules/nonblock-statement-body-position - */ - "nonblock-statement-body-position": Linter.RuleEntry< - [ - "beside" | "below" | "any", - Partial<{ - overrides: Record; - }>, - ] - >; - - /** - * Rule to enforce consistent line breaks inside braces. - * - * @since 2.12.0 - * @see https://eslint.org/docs/rules/object-curly-newline - */ - "object-curly-newline": Linter.RuleEntry< - [ - | "always" - | "never" - | Partial<{ - /** - * @default false - */ - multiline: boolean; - minProperties: number; - /** - * @default true - */ - consistent: boolean; - }> - | Partial< - Record< - "ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportDeclaration", - | "always" - | "never" - | Partial<{ - /** - * @default false - */ - multiline: boolean; - minProperties: number; - /** - * @default true - */ - consistent: boolean; - }> - > - >, - ] - >; - - /** - * Rule to enforce consistent spacing inside braces. - * - * @since 0.22.0 - * @see https://eslint.org/docs/rules/object-curly-spacing - */ - "object-curly-spacing": - | Linter.RuleEntry< - [ - "never", - { - /** - * @default false - */ - arraysInObjects: boolean; - /** - * @default false - */ - objectsInObjects: boolean; - }, - ] - > - | Linter.RuleEntry< - [ - "always", - { - /** - * @default true - */ - arraysInObjects: boolean; - /** - * @default true - */ - objectsInObjects: boolean; - }, - ] - >; - - /** - * Rule to enforce placing object properties on separate lines. - * - * @since 2.10.0 - * @see https://eslint.org/docs/rules/object-property-newline - */ - "object-property-newline": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - allowAllPropertiesOnSameLine: boolean; - }>, - ] - >; - - /** - * Rule to enforce variables to be declared either together or separately in functions. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/one-var - */ - "one-var": Linter.RuleEntry< - [ - | "always" - | "never" - | "consecutive" - | Partial< - { - /** - * @default false - */ - separateRequires: boolean; - } & Record<"var" | "let" | "const", "always" | "never" | "consecutive"> - > - | Partial>, - ] - >; - - /** - * Rule to require or disallow newlines around variable declarations. - * - * @since 2.0.0-beta.3 - * @see https://eslint.org/docs/rules/one-var-declaration-per-line - */ - "one-var-declaration-per-line": Linter.RuleEntry<["initializations" | "always"]>; - - /** - * Rule to require or disallow assignment operator shorthand where possible. - * - * @since 0.10.0 - * @see https://eslint.org/docs/rules/operator-assignment - */ - "operator-assignment": Linter.RuleEntry<["always" | "never"]>; - - /** - * Rule to enforce consistent linebreak style for operators. - * - * @since 0.19.0 - * @see https://eslint.org/docs/rules/operator-linebreak - */ - "operator-linebreak": Linter.RuleEntry< - [ - "after" | "before" | "none", - Partial<{ - overrides: Record; - }>, - ] - >; - - /** - * Rule to require or disallow padding within blocks. - * - * @since 0.9.0 - * @see https://eslint.org/docs/rules/padded-blocks - */ - "padded-blocks": Linter.RuleEntry< - [ - "always" | "never" | Partial>, - { - /** - * @default false - */ - allowSingleLineBlocks: boolean; - }, - ] - >; - - /** - * Rule to require or disallow padding lines between statements. - * - * @since 4.0.0-beta.0 - * @see https://eslint.org/docs/rules/padding-line-between-statements - */ - "padding-line-between-statements": Linter.RuleEntry< - [ - ...Array< - { - blankLine: "any" | "never" | "always"; - } & Record<"prev" | "next", string | string[]> - >, - ] - >; - - /** - * Rule to disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead. - * - * @since 5.0.0-alpha.3 - * @see https://eslint.org/docs/rules/prefer-object-spread - */ - "prefer-object-spread": Linter.RuleEntry<[]>; - - /** - * Rule to require quotes around object literal property names. - * - * @since 0.0.6 - * @see https://eslint.org/docs/rules/quote-props - */ - "quote-props": - | Linter.RuleEntry<["always" | "consistent"]> - | Linter.RuleEntry< - [ - "as-needed", - Partial<{ - /** - * @default false - */ - keywords: boolean; - /** - * @default true - */ - unnecessary: boolean; - /** - * @default false - */ - numbers: boolean; - }>, - ] - > - | Linter.RuleEntry< - [ - "consistent-as-needed", - Partial<{ - /** - * @default false - */ - keywords: boolean; - }>, - ] - >; - - /** - * Rule to enforce the consistent use of either backticks, double, or single quotes. - * - * @since 0.0.7 - * @see https://eslint.org/docs/rules/quotes - */ - quotes: Linter.RuleEntry< - [ - "double" | "single" | "backtick", - Partial<{ - /** - * @default false - */ - avoidEscape: boolean; - /** - * @default false - */ - allowTemplateLiterals: boolean; - }>, - ] - >; - - /** - * Rule to require or disallow semicolons instead of ASI. - * - * @since 0.0.6 - * @see https://eslint.org/docs/rules/semi - */ - semi: - | Linter.RuleEntry< - [ - "always", - Partial<{ - /** - * @default false - */ - omitLastInOneLineBlock: boolean; - }>, - ] - > - | Linter.RuleEntry< - [ - "never", - Partial<{ - /** - * @default 'any' - */ - beforeStatementContinuationChars: "any" | "always" | "never"; - }>, - ] - >; - - /** - * Rule to enforce consistent spacing before and after semicolons. - * - * @since 0.16.0 - * @see https://eslint.org/docs/rules/semi-spacing - */ - "semi-spacing": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - before: boolean; - /** - * @default true - */ - after: boolean; - }>, - ] - >; - - /** - * Rule to enforce location of semicolons. - * - * @since 4.0.0-beta.0 - * @see https://eslint.org/docs/rules/semi-style - */ - "semi-style": Linter.RuleEntry<["last" | "first"]>; - - /** - * Rule to require object keys to be sorted. - * - * @since 3.3.0 - * @see https://eslint.org/docs/rules/sort-keys - */ - "sort-keys": Linter.RuleEntry< - [ - "asc" | "desc", - Partial<{ - /** - * @default true - */ - caseSensitive: boolean; - /** - * @default 2 - */ - minKeys: number; - /** - * @default false - */ - natural: boolean; - /** - * @default false - */ - allowLineSeparatedGroups: boolean; - }>, - ] - >; - - /** - * Rule to require variables within the same declaration block to be sorted. - * - * @since 0.2.0 - * @see https://eslint.org/docs/rules/sort-vars - */ - "sort-vars": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - ignoreCase: boolean; - }>, - ] - >; - - /** - * Rule to enforce consistent spacing before blocks. - * - * @since 0.9.0 - * @see https://eslint.org/docs/rules/space-before-blocks - */ - "space-before-blocks": Linter.RuleEntry< - ["always" | "never" | Partial>] - >; - - /** - * Rule to enforce consistent spacing before `function` definition opening parenthesis. - * - * @since 0.18.0 - * @see https://eslint.org/docs/rules/space-before-function-paren - */ - "space-before-function-paren": Linter.RuleEntry< - ["always" | "never" | Partial>] - >; - - /** - * Rule to enforce consistent spacing inside parentheses. - * - * @since 0.8.0 - * @see https://eslint.org/docs/rules/space-in-parens - */ - "space-in-parens": Linter.RuleEntry< - [ - "never" | "always", - Partial<{ - exceptions: string[]; - }>, - ] - >; - - /** - * Rule to require spacing around infix operators. - * - * @since 0.2.0 - * @see https://eslint.org/docs/rules/space-infix-ops - */ - "space-infix-ops": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - int32Hint: boolean; - }>, - ] - >; - - /** - * Rule to enforce consistent spacing before or after unary operators. - * - * @since 0.10.0 - * @see https://eslint.org/docs/rules/space-unary-ops - */ - "space-unary-ops": Linter.RuleEntry< - [ - Partial<{ - /** - * @default true - */ - words: boolean; - /** - * @default false - */ - nonwords: boolean; - overrides: Record; - }>, - ] - >; - - /** - * Rule to enforce consistent spacing after the `//` or `/*` in a comment. - * - * @since 0.23.0 - * @see https://eslint.org/docs/rules/spaced-comment - */ - "spaced-comment": Linter.RuleEntry< - [ - "always" | "never", - { - exceptions: string[]; - markers: string[]; - line: { - exceptions: string[]; - markers: string[]; - }; - block: { - exceptions: string[]; - markers: string[]; - /** - * @default false - */ - balanced: boolean; - }; - }, - ] - >; - - /** - * Rule to enforce spacing around colons of switch statements. - * - * @since 4.0.0-beta.0 - * @see https://eslint.org/docs/rules/switch-colon-spacing - */ - "switch-colon-spacing": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - before: boolean; - /** - * @default true - */ - after: boolean; - }>, - ] - >; - - /** - * Rule to require or disallow spacing between template tags and their literals. - * - * @since 3.15.0 - * @see https://eslint.org/docs/rules/template-tag-spacing - */ - "template-tag-spacing": Linter.RuleEntry<["never" | "always"]>; - - /** - * Rule to require or disallow Unicode byte order mark (BOM). - * - * @since 2.11.0 - * @see https://eslint.org/docs/rules/unicode-bom - */ - "unicode-bom": Linter.RuleEntry<["never" | "always"]>; - - /** - * Rule to require parenthesis around regex literals. - * - * @since 0.1.0 - * @see https://eslint.org/docs/rules/wrap-regex - */ - "wrap-regex": Linter.RuleEntry<[]>; -} diff --git a/build_vtk_bundle/node_modules/@types/eslint/rules/variables.d.ts b/build_vtk_bundle/node_modules/@types/eslint/rules/variables.d.ts deleted file mode 100644 index 796274d1..00000000 --- a/build_vtk_bundle/node_modules/@types/eslint/rules/variables.d.ts +++ /dev/null @@ -1,194 +0,0 @@ -import { Linter } from "../index"; - -export interface Variables extends Linter.RulesRecord { - /** - * Rule to require or disallow initialization in variable declarations. - * - * @since 1.0.0-rc-1 - * @see https://eslint.org/docs/rules/init-declarations - */ - "init-declarations": - | Linter.RuleEntry<["always"]> - | Linter.RuleEntry< - [ - "never", - Partial<{ - ignoreForLoopInit: boolean; - }>, - ] - >; - - /** - * Rule to disallow deleting variables. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-delete-var - */ - "no-delete-var": Linter.RuleEntry<[]>; - - /** - * Rule to disallow labels that share a name with a variable. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-label-var - */ - "no-label-var": Linter.RuleEntry<[]>; - - /** - * Rule to disallow specified global variables. - * - * @since 2.3.0 - * @see https://eslint.org/docs/rules/no-restricted-globals - */ - "no-restricted-globals": Linter.RuleEntry< - [ - ...Array< - | string - | { - name: string; - message?: string | undefined; - } - >, - ] - >; - - /** - * Rule to disallow variable declarations from shadowing variables declared in the outer scope. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-shadow - */ - "no-shadow": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - builtinGlobals: boolean; - /** - * @default 'functions' - */ - hoist: "functions" | "all" | "never"; - allow: string[]; - }>, - ] - >; - - /** - * Rule to disallow identifiers from shadowing restricted names. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.1.4 - * @see https://eslint.org/docs/rules/no-shadow-restricted-names - */ - "no-shadow-restricted-names": Linter.RuleEntry<[]>; - - /** - * Rule to disallow the use of undeclared variables unless mentioned in `global` comments. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-undef - */ - "no-undef": Linter.RuleEntry< - [ - Partial<{ - /** - * @default false - */ - typeof: boolean; - }>, - ] - >; - - /** - * Rule to disallow initializing variables to `undefined`. - * - * @since 0.0.6 - * @see https://eslint.org/docs/rules/no-undef-init - */ - "no-undef-init": Linter.RuleEntry<[]>; - - /** - * Rule to disallow the use of `undefined` as an identifier. - * - * @since 0.7.1 - * @see https://eslint.org/docs/rules/no-undefined - */ - "no-undefined": Linter.RuleEntry<[]>; - - /** - * Rule to disallow unused variables. - * - * @remarks - * Recommended by ESLint, the rule was enabled in `eslint:recommended`. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-unused-vars - */ - "no-unused-vars": Linter.RuleEntry< - [ - | "all" - | "local" - | Partial<{ - /** - * @default 'all' - */ - vars: "all" | "local"; - varsIgnorePattern: string; - /** - * @default 'after-used' - */ - args: "after-used" | "all" | "none"; - /** - * @default false - */ - ignoreRestSiblings: boolean; - argsIgnorePattern: string; - /** - * @default 'none' - */ - caughtErrors: "none" | "all"; - caughtErrorsIgnorePattern: string; - destructuredArrayIgnorePattern: string; - }>, - ] - >; - - /** - * Rule to disallow the use of variables before they are defined. - * - * @since 0.0.9 - * @see https://eslint.org/docs/rules/no-use-before-define - */ - "no-use-before-define": Linter.RuleEntry< - [ - | Partial<{ - /** - * @default true - */ - functions: boolean; - /** - * @default true - */ - classes: boolean; - /** - * @default true - */ - variables: boolean; - /** - * @default false - */ - allowNamedExports: boolean; - }> - | "nofunc", - ] - >; -} diff --git a/build_vtk_bundle/node_modules/@types/eslint/use-at-your-own-risk.d.ts b/build_vtk_bundle/node_modules/@types/eslint/use-at-your-own-risk.d.ts deleted file mode 100644 index e2ce2c55..00000000 --- a/build_vtk_bundle/node_modules/@types/eslint/use-at-your-own-risk.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { ESLint, Rule } from "./index.js"; - -/** @deprecated */ -export const builtinRules: Map; - -/** @deprecated */ -export class FileEnumerator { - constructor( - params?: { - cwd?: string; - configArrayFactory?: any; - extensions?: any; - globInputPaths?: boolean; - errorOnUnmatchedPattern?: boolean; - ignore?: boolean; - }, - ); - isTargetPath(filePath: string, providedConfig?: any): boolean; - iterateFiles( - patternOrPatterns: string | string[], - ): IterableIterator<{ config: any; filePath: string; ignored: boolean }>; -} - -export { /** @deprecated */ ESLint as FlatESLint }; - -/** @deprecated */ -export class LegacyESLint { - static configType: "eslintrc"; - - static readonly version: string; - - static outputFixes(results: ESLint.LintResult[]): Promise; - - static getErrorResults(results: ESLint.LintResult[]): ESLint.LintResult[]; - - constructor(options?: ESLint.LegacyOptions); - - lintFiles(patterns: string | string[]): Promise; - - lintText( - code: string, - options?: { filePath?: string | undefined; warnIgnored?: boolean | undefined }, - ): Promise; - - getRulesMetaForResults(results: ESLint.LintResult[]): ESLint.LintResultData["rulesMeta"]; - - hasFlag(flag: string): false; - - calculateConfigForFile(filePath: string): Promise; - - isPathIgnored(filePath: string): Promise; - - loadFormatter(nameOrPath?: string): Promise; -} - -/** @deprecated */ -export function shouldUseFlatConfig(): Promise; diff --git a/build_vtk_bundle/node_modules/@types/estree/LICENSE b/build_vtk_bundle/node_modules/@types/estree/LICENSE deleted file mode 100644 index 9e841e7a..00000000 --- a/build_vtk_bundle/node_modules/@types/estree/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - MIT License - - Copyright (c) Microsoft Corporation. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE diff --git a/build_vtk_bundle/node_modules/@types/estree/README.md b/build_vtk_bundle/node_modules/@types/estree/README.md deleted file mode 100644 index 2af760b2..00000000 --- a/build_vtk_bundle/node_modules/@types/estree/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Installation -> `npm install --save @types/estree` - -# Summary -This package contains type definitions for estree (https://github.com/estree/estree). - -# Details -Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/estree. - -### Additional Details - * Last updated: Fri, 06 Jun 2025 00:04:33 GMT - * Dependencies: none - -# Credits -These definitions were written by [RReverser](https://github.com/RReverser). diff --git a/build_vtk_bundle/node_modules/@types/estree/flow.d.ts b/build_vtk_bundle/node_modules/@types/estree/flow.d.ts deleted file mode 100644 index 9d001a92..00000000 --- a/build_vtk_bundle/node_modules/@types/estree/flow.d.ts +++ /dev/null @@ -1,167 +0,0 @@ -declare namespace ESTree { - interface FlowTypeAnnotation extends Node {} - - interface FlowBaseTypeAnnotation extends FlowTypeAnnotation {} - - interface FlowLiteralTypeAnnotation extends FlowTypeAnnotation, Literal {} - - interface FlowDeclaration extends Declaration {} - - interface AnyTypeAnnotation extends FlowBaseTypeAnnotation {} - - interface ArrayTypeAnnotation extends FlowTypeAnnotation { - elementType: FlowTypeAnnotation; - } - - interface BooleanLiteralTypeAnnotation extends FlowLiteralTypeAnnotation {} - - interface BooleanTypeAnnotation extends FlowBaseTypeAnnotation {} - - interface ClassImplements extends Node { - id: Identifier; - typeParameters?: TypeParameterInstantiation | null; - } - - interface ClassProperty { - key: Expression; - value?: Expression | null; - typeAnnotation?: TypeAnnotation | null; - computed: boolean; - static: boolean; - } - - interface DeclareClass extends FlowDeclaration { - id: Identifier; - typeParameters?: TypeParameterDeclaration | null; - body: ObjectTypeAnnotation; - extends: InterfaceExtends[]; - } - - interface DeclareFunction extends FlowDeclaration { - id: Identifier; - } - - interface DeclareModule extends FlowDeclaration { - id: Literal | Identifier; - body: BlockStatement; - } - - interface DeclareVariable extends FlowDeclaration { - id: Identifier; - } - - interface FunctionTypeAnnotation extends FlowTypeAnnotation { - params: FunctionTypeParam[]; - returnType: FlowTypeAnnotation; - rest?: FunctionTypeParam | null; - typeParameters?: TypeParameterDeclaration | null; - } - - interface FunctionTypeParam { - name: Identifier; - typeAnnotation: FlowTypeAnnotation; - optional: boolean; - } - - interface GenericTypeAnnotation extends FlowTypeAnnotation { - id: Identifier | QualifiedTypeIdentifier; - typeParameters?: TypeParameterInstantiation | null; - } - - interface InterfaceExtends extends Node { - id: Identifier | QualifiedTypeIdentifier; - typeParameters?: TypeParameterInstantiation | null; - } - - interface InterfaceDeclaration extends FlowDeclaration { - id: Identifier; - typeParameters?: TypeParameterDeclaration | null; - extends: InterfaceExtends[]; - body: ObjectTypeAnnotation; - } - - interface IntersectionTypeAnnotation extends FlowTypeAnnotation { - types: FlowTypeAnnotation[]; - } - - interface MixedTypeAnnotation extends FlowBaseTypeAnnotation {} - - interface NullableTypeAnnotation extends FlowTypeAnnotation { - typeAnnotation: TypeAnnotation; - } - - interface NumberLiteralTypeAnnotation extends FlowLiteralTypeAnnotation {} - - interface NumberTypeAnnotation extends FlowBaseTypeAnnotation {} - - interface StringLiteralTypeAnnotation extends FlowLiteralTypeAnnotation {} - - interface StringTypeAnnotation extends FlowBaseTypeAnnotation {} - - interface TupleTypeAnnotation extends FlowTypeAnnotation { - types: FlowTypeAnnotation[]; - } - - interface TypeofTypeAnnotation extends FlowTypeAnnotation { - argument: FlowTypeAnnotation; - } - - interface TypeAlias extends FlowDeclaration { - id: Identifier; - typeParameters?: TypeParameterDeclaration | null; - right: FlowTypeAnnotation; - } - - interface TypeAnnotation extends Node { - typeAnnotation: FlowTypeAnnotation; - } - - interface TypeCastExpression extends Expression { - expression: Expression; - typeAnnotation: TypeAnnotation; - } - - interface TypeParameterDeclaration extends Node { - params: Identifier[]; - } - - interface TypeParameterInstantiation extends Node { - params: FlowTypeAnnotation[]; - } - - interface ObjectTypeAnnotation extends FlowTypeAnnotation { - properties: ObjectTypeProperty[]; - indexers: ObjectTypeIndexer[]; - callProperties: ObjectTypeCallProperty[]; - } - - interface ObjectTypeCallProperty extends Node { - value: FunctionTypeAnnotation; - static: boolean; - } - - interface ObjectTypeIndexer extends Node { - id: Identifier; - key: FlowTypeAnnotation; - value: FlowTypeAnnotation; - static: boolean; - } - - interface ObjectTypeProperty extends Node { - key: Expression; - value: FlowTypeAnnotation; - optional: boolean; - static: boolean; - } - - interface QualifiedTypeIdentifier extends Node { - qualification: Identifier | QualifiedTypeIdentifier; - id: Identifier; - } - - interface UnionTypeAnnotation extends FlowTypeAnnotation { - types: FlowTypeAnnotation[]; - } - - interface VoidTypeAnnotation extends FlowBaseTypeAnnotation {} -} diff --git a/build_vtk_bundle/node_modules/@types/estree/index.d.ts b/build_vtk_bundle/node_modules/@types/estree/index.d.ts deleted file mode 100644 index 2bc66fb6..00000000 --- a/build_vtk_bundle/node_modules/@types/estree/index.d.ts +++ /dev/null @@ -1,694 +0,0 @@ -// This definition file follows a somewhat unusual format. ESTree allows -// runtime type checks based on the `type` parameter. In order to explain this -// to typescript we want to use discriminated union types: -// https://github.com/Microsoft/TypeScript/pull/9163 -// -// For ESTree this is a bit tricky because the high level interfaces like -// Node or Function are pulling double duty. We want to pass common fields down -// to the interfaces that extend them (like Identifier or -// ArrowFunctionExpression), but you can't extend a type union or enforce -// common fields on them. So we've split the high level interfaces into two -// types, a base type which passes down inherited fields, and a type union of -// all types which extend the base type. Only the type union is exported, and -// the union is how other types refer to the collection of inheriting types. -// -// This makes the definitions file here somewhat more difficult to maintain, -// but it has the notable advantage of making ESTree much easier to use as -// an end user. - -export interface BaseNodeWithoutComments { - // Every leaf interface that extends BaseNode must specify a type property. - // The type property should be a string literal. For example, Identifier - // has: `type: "Identifier"` - type: string; - loc?: SourceLocation | null | undefined; - range?: [number, number] | undefined; -} - -export interface BaseNode extends BaseNodeWithoutComments { - leadingComments?: Comment[] | undefined; - trailingComments?: Comment[] | undefined; -} - -export interface NodeMap { - AssignmentProperty: AssignmentProperty; - CatchClause: CatchClause; - Class: Class; - ClassBody: ClassBody; - Expression: Expression; - Function: Function; - Identifier: Identifier; - Literal: Literal; - MethodDefinition: MethodDefinition; - ModuleDeclaration: ModuleDeclaration; - ModuleSpecifier: ModuleSpecifier; - Pattern: Pattern; - PrivateIdentifier: PrivateIdentifier; - Program: Program; - Property: Property; - PropertyDefinition: PropertyDefinition; - SpreadElement: SpreadElement; - Statement: Statement; - Super: Super; - SwitchCase: SwitchCase; - TemplateElement: TemplateElement; - VariableDeclarator: VariableDeclarator; -} - -export type Node = NodeMap[keyof NodeMap]; - -export interface Comment extends BaseNodeWithoutComments { - type: "Line" | "Block"; - value: string; -} - -export interface SourceLocation { - source?: string | null | undefined; - start: Position; - end: Position; -} - -export interface Position { - /** >= 1 */ - line: number; - /** >= 0 */ - column: number; -} - -export interface Program extends BaseNode { - type: "Program"; - sourceType: "script" | "module"; - body: Array; - comments?: Comment[] | undefined; -} - -export interface Directive extends BaseNode { - type: "ExpressionStatement"; - expression: Literal; - directive: string; -} - -export interface BaseFunction extends BaseNode { - params: Pattern[]; - generator?: boolean | undefined; - async?: boolean | undefined; - // The body is either BlockStatement or Expression because arrow functions - // can have a body that's either. FunctionDeclarations and - // FunctionExpressions have only BlockStatement bodies. - body: BlockStatement | Expression; -} - -export type Function = FunctionDeclaration | FunctionExpression | ArrowFunctionExpression; - -export type Statement = - | ExpressionStatement - | BlockStatement - | StaticBlock - | EmptyStatement - | DebuggerStatement - | WithStatement - | ReturnStatement - | LabeledStatement - | BreakStatement - | ContinueStatement - | IfStatement - | SwitchStatement - | ThrowStatement - | TryStatement - | WhileStatement - | DoWhileStatement - | ForStatement - | ForInStatement - | ForOfStatement - | Declaration; - -export interface BaseStatement extends BaseNode {} - -export interface EmptyStatement extends BaseStatement { - type: "EmptyStatement"; -} - -export interface BlockStatement extends BaseStatement { - type: "BlockStatement"; - body: Statement[]; - innerComments?: Comment[] | undefined; -} - -export interface StaticBlock extends Omit { - type: "StaticBlock"; -} - -export interface ExpressionStatement extends BaseStatement { - type: "ExpressionStatement"; - expression: Expression; -} - -export interface IfStatement extends BaseStatement { - type: "IfStatement"; - test: Expression; - consequent: Statement; - alternate?: Statement | null | undefined; -} - -export interface LabeledStatement extends BaseStatement { - type: "LabeledStatement"; - label: Identifier; - body: Statement; -} - -export interface BreakStatement extends BaseStatement { - type: "BreakStatement"; - label?: Identifier | null | undefined; -} - -export interface ContinueStatement extends BaseStatement { - type: "ContinueStatement"; - label?: Identifier | null | undefined; -} - -export interface WithStatement extends BaseStatement { - type: "WithStatement"; - object: Expression; - body: Statement; -} - -export interface SwitchStatement extends BaseStatement { - type: "SwitchStatement"; - discriminant: Expression; - cases: SwitchCase[]; -} - -export interface ReturnStatement extends BaseStatement { - type: "ReturnStatement"; - argument?: Expression | null | undefined; -} - -export interface ThrowStatement extends BaseStatement { - type: "ThrowStatement"; - argument: Expression; -} - -export interface TryStatement extends BaseStatement { - type: "TryStatement"; - block: BlockStatement; - handler?: CatchClause | null | undefined; - finalizer?: BlockStatement | null | undefined; -} - -export interface WhileStatement extends BaseStatement { - type: "WhileStatement"; - test: Expression; - body: Statement; -} - -export interface DoWhileStatement extends BaseStatement { - type: "DoWhileStatement"; - body: Statement; - test: Expression; -} - -export interface ForStatement extends BaseStatement { - type: "ForStatement"; - init?: VariableDeclaration | Expression | null | undefined; - test?: Expression | null | undefined; - update?: Expression | null | undefined; - body: Statement; -} - -export interface BaseForXStatement extends BaseStatement { - left: VariableDeclaration | Pattern; - right: Expression; - body: Statement; -} - -export interface ForInStatement extends BaseForXStatement { - type: "ForInStatement"; -} - -export interface DebuggerStatement extends BaseStatement { - type: "DebuggerStatement"; -} - -export type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration; - -export interface BaseDeclaration extends BaseStatement {} - -export interface MaybeNamedFunctionDeclaration extends BaseFunction, BaseDeclaration { - type: "FunctionDeclaration"; - /** It is null when a function declaration is a part of the `export default function` statement */ - id: Identifier | null; - body: BlockStatement; -} - -export interface FunctionDeclaration extends MaybeNamedFunctionDeclaration { - id: Identifier; -} - -export interface VariableDeclaration extends BaseDeclaration { - type: "VariableDeclaration"; - declarations: VariableDeclarator[]; - kind: "var" | "let" | "const" | "using" | "await using"; -} - -export interface VariableDeclarator extends BaseNode { - type: "VariableDeclarator"; - id: Pattern; - init?: Expression | null | undefined; -} - -export interface ExpressionMap { - ArrayExpression: ArrayExpression; - ArrowFunctionExpression: ArrowFunctionExpression; - AssignmentExpression: AssignmentExpression; - AwaitExpression: AwaitExpression; - BinaryExpression: BinaryExpression; - CallExpression: CallExpression; - ChainExpression: ChainExpression; - ClassExpression: ClassExpression; - ConditionalExpression: ConditionalExpression; - FunctionExpression: FunctionExpression; - Identifier: Identifier; - ImportExpression: ImportExpression; - Literal: Literal; - LogicalExpression: LogicalExpression; - MemberExpression: MemberExpression; - MetaProperty: MetaProperty; - NewExpression: NewExpression; - ObjectExpression: ObjectExpression; - SequenceExpression: SequenceExpression; - TaggedTemplateExpression: TaggedTemplateExpression; - TemplateLiteral: TemplateLiteral; - ThisExpression: ThisExpression; - UnaryExpression: UnaryExpression; - UpdateExpression: UpdateExpression; - YieldExpression: YieldExpression; -} - -export type Expression = ExpressionMap[keyof ExpressionMap]; - -export interface BaseExpression extends BaseNode {} - -export type ChainElement = SimpleCallExpression | MemberExpression; - -export interface ChainExpression extends BaseExpression { - type: "ChainExpression"; - expression: ChainElement; -} - -export interface ThisExpression extends BaseExpression { - type: "ThisExpression"; -} - -export interface ArrayExpression extends BaseExpression { - type: "ArrayExpression"; - elements: Array; -} - -export interface ObjectExpression extends BaseExpression { - type: "ObjectExpression"; - properties: Array; -} - -export interface PrivateIdentifier extends BaseNode { - type: "PrivateIdentifier"; - name: string; -} - -export interface Property extends BaseNode { - type: "Property"; - key: Expression | PrivateIdentifier; - value: Expression | Pattern; // Could be an AssignmentProperty - kind: "init" | "get" | "set"; - method: boolean; - shorthand: boolean; - computed: boolean; -} - -export interface PropertyDefinition extends BaseNode { - type: "PropertyDefinition"; - key: Expression | PrivateIdentifier; - value?: Expression | null | undefined; - computed: boolean; - static: boolean; -} - -export interface FunctionExpression extends BaseFunction, BaseExpression { - id?: Identifier | null | undefined; - type: "FunctionExpression"; - body: BlockStatement; -} - -export interface SequenceExpression extends BaseExpression { - type: "SequenceExpression"; - expressions: Expression[]; -} - -export interface UnaryExpression extends BaseExpression { - type: "UnaryExpression"; - operator: UnaryOperator; - prefix: true; - argument: Expression; -} - -export interface BinaryExpression extends BaseExpression { - type: "BinaryExpression"; - operator: BinaryOperator; - left: Expression | PrivateIdentifier; - right: Expression; -} - -export interface AssignmentExpression extends BaseExpression { - type: "AssignmentExpression"; - operator: AssignmentOperator; - left: Pattern | MemberExpression; - right: Expression; -} - -export interface UpdateExpression extends BaseExpression { - type: "UpdateExpression"; - operator: UpdateOperator; - argument: Expression; - prefix: boolean; -} - -export interface LogicalExpression extends BaseExpression { - type: "LogicalExpression"; - operator: LogicalOperator; - left: Expression; - right: Expression; -} - -export interface ConditionalExpression extends BaseExpression { - type: "ConditionalExpression"; - test: Expression; - alternate: Expression; - consequent: Expression; -} - -export interface BaseCallExpression extends BaseExpression { - callee: Expression | Super; - arguments: Array; -} -export type CallExpression = SimpleCallExpression | NewExpression; - -export interface SimpleCallExpression extends BaseCallExpression { - type: "CallExpression"; - optional: boolean; -} - -export interface NewExpression extends BaseCallExpression { - type: "NewExpression"; -} - -export interface MemberExpression extends BaseExpression, BasePattern { - type: "MemberExpression"; - object: Expression | Super; - property: Expression | PrivateIdentifier; - computed: boolean; - optional: boolean; -} - -export type Pattern = Identifier | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | MemberExpression; - -export interface BasePattern extends BaseNode {} - -export interface SwitchCase extends BaseNode { - type: "SwitchCase"; - test?: Expression | null | undefined; - consequent: Statement[]; -} - -export interface CatchClause extends BaseNode { - type: "CatchClause"; - param: Pattern | null; - body: BlockStatement; -} - -export interface Identifier extends BaseNode, BaseExpression, BasePattern { - type: "Identifier"; - name: string; -} - -export type Literal = SimpleLiteral | RegExpLiteral | BigIntLiteral; - -export interface SimpleLiteral extends BaseNode, BaseExpression { - type: "Literal"; - value: string | boolean | number | null; - raw?: string | undefined; -} - -export interface RegExpLiteral extends BaseNode, BaseExpression { - type: "Literal"; - value?: RegExp | null | undefined; - regex: { - pattern: string; - flags: string; - }; - raw?: string | undefined; -} - -export interface BigIntLiteral extends BaseNode, BaseExpression { - type: "Literal"; - value?: bigint | null | undefined; - bigint: string; - raw?: string | undefined; -} - -export type UnaryOperator = "-" | "+" | "!" | "~" | "typeof" | "void" | "delete"; - -export type BinaryOperator = - | "==" - | "!=" - | "===" - | "!==" - | "<" - | "<=" - | ">" - | ">=" - | "<<" - | ">>" - | ">>>" - | "+" - | "-" - | "*" - | "/" - | "%" - | "**" - | "|" - | "^" - | "&" - | "in" - | "instanceof"; - -export type LogicalOperator = "||" | "&&" | "??"; - -export type AssignmentOperator = - | "=" - | "+=" - | "-=" - | "*=" - | "/=" - | "%=" - | "**=" - | "<<=" - | ">>=" - | ">>>=" - | "|=" - | "^=" - | "&=" - | "||=" - | "&&=" - | "??="; - -export type UpdateOperator = "++" | "--"; - -export interface ForOfStatement extends BaseForXStatement { - type: "ForOfStatement"; - await: boolean; -} - -export interface Super extends BaseNode { - type: "Super"; -} - -export interface SpreadElement extends BaseNode { - type: "SpreadElement"; - argument: Expression; -} - -export interface ArrowFunctionExpression extends BaseExpression, BaseFunction { - type: "ArrowFunctionExpression"; - expression: boolean; - body: BlockStatement | Expression; -} - -export interface YieldExpression extends BaseExpression { - type: "YieldExpression"; - argument?: Expression | null | undefined; - delegate: boolean; -} - -export interface TemplateLiteral extends BaseExpression { - type: "TemplateLiteral"; - quasis: TemplateElement[]; - expressions: Expression[]; -} - -export interface TaggedTemplateExpression extends BaseExpression { - type: "TaggedTemplateExpression"; - tag: Expression; - quasi: TemplateLiteral; -} - -export interface TemplateElement extends BaseNode { - type: "TemplateElement"; - tail: boolean; - value: { - /** It is null when the template literal is tagged and the text has an invalid escape (e.g. - tag`\unicode and \u{55}`) */ - cooked?: string | null | undefined; - raw: string; - }; -} - -export interface AssignmentProperty extends Property { - value: Pattern; - kind: "init"; - method: boolean; // false -} - -export interface ObjectPattern extends BasePattern { - type: "ObjectPattern"; - properties: Array; -} - -export interface ArrayPattern extends BasePattern { - type: "ArrayPattern"; - elements: Array; -} - -export interface RestElement extends BasePattern { - type: "RestElement"; - argument: Pattern; -} - -export interface AssignmentPattern extends BasePattern { - type: "AssignmentPattern"; - left: Pattern; - right: Expression; -} - -export type Class = ClassDeclaration | ClassExpression; -export interface BaseClass extends BaseNode { - superClass?: Expression | null | undefined; - body: ClassBody; -} - -export interface ClassBody extends BaseNode { - type: "ClassBody"; - body: Array; -} - -export interface MethodDefinition extends BaseNode { - type: "MethodDefinition"; - key: Expression | PrivateIdentifier; - value: FunctionExpression; - kind: "constructor" | "method" | "get" | "set"; - computed: boolean; - static: boolean; -} - -export interface MaybeNamedClassDeclaration extends BaseClass, BaseDeclaration { - type: "ClassDeclaration"; - /** It is null when a class declaration is a part of the `export default class` statement */ - id: Identifier | null; -} - -export interface ClassDeclaration extends MaybeNamedClassDeclaration { - id: Identifier; -} - -export interface ClassExpression extends BaseClass, BaseExpression { - type: "ClassExpression"; - id?: Identifier | null | undefined; -} - -export interface MetaProperty extends BaseExpression { - type: "MetaProperty"; - meta: Identifier; - property: Identifier; -} - -export type ModuleDeclaration = - | ImportDeclaration - | ExportNamedDeclaration - | ExportDefaultDeclaration - | ExportAllDeclaration; -export interface BaseModuleDeclaration extends BaseNode {} - -export type ModuleSpecifier = ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier; -export interface BaseModuleSpecifier extends BaseNode { - local: Identifier; -} - -export interface ImportDeclaration extends BaseModuleDeclaration { - type: "ImportDeclaration"; - specifiers: Array; - attributes: ImportAttribute[]; - source: Literal; -} - -export interface ImportSpecifier extends BaseModuleSpecifier { - type: "ImportSpecifier"; - imported: Identifier | Literal; -} - -export interface ImportAttribute extends BaseNode { - type: "ImportAttribute"; - key: Identifier | Literal; - value: Literal; -} - -export interface ImportExpression extends BaseExpression { - type: "ImportExpression"; - source: Expression; - options?: Expression | null | undefined; -} - -export interface ImportDefaultSpecifier extends BaseModuleSpecifier { - type: "ImportDefaultSpecifier"; -} - -export interface ImportNamespaceSpecifier extends BaseModuleSpecifier { - type: "ImportNamespaceSpecifier"; -} - -export interface ExportNamedDeclaration extends BaseModuleDeclaration { - type: "ExportNamedDeclaration"; - declaration?: Declaration | null | undefined; - specifiers: ExportSpecifier[]; - attributes: ImportAttribute[]; - source?: Literal | null | undefined; -} - -export interface ExportSpecifier extends Omit { - type: "ExportSpecifier"; - local: Identifier | Literal; - exported: Identifier | Literal; -} - -export interface ExportDefaultDeclaration extends BaseModuleDeclaration { - type: "ExportDefaultDeclaration"; - declaration: MaybeNamedFunctionDeclaration | MaybeNamedClassDeclaration | Expression; -} - -export interface ExportAllDeclaration extends BaseModuleDeclaration { - type: "ExportAllDeclaration"; - exported: Identifier | Literal | null; - attributes: ImportAttribute[]; - source: Literal; -} - -export interface AwaitExpression extends BaseExpression { - type: "AwaitExpression"; - argument: Expression; -} diff --git a/build_vtk_bundle/node_modules/@types/estree/package.json b/build_vtk_bundle/node_modules/@types/estree/package.json deleted file mode 100644 index 68c0782c..00000000 --- a/build_vtk_bundle/node_modules/@types/estree/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "@types/estree", - "version": "1.0.8", - "description": "TypeScript definitions for estree", - "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/estree", - "license": "MIT", - "contributors": [ - { - "name": "RReverser", - "githubUsername": "RReverser", - "url": "https://github.com/RReverser" - } - ], - "main": "", - "types": "index.d.ts", - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", - "directory": "types/estree" - }, - "scripts": {}, - "dependencies": {}, - "peerDependencies": {}, - "typesPublisherContentHash": "7a167b6e4a4d9f6e9a2cb9fd3fc45c885f89cbdeb44b3e5961bb057a45c082fd", - "typeScriptVersion": "5.1", - "nonNpm": true -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@types/json-schema/LICENSE b/build_vtk_bundle/node_modules/@types/json-schema/LICENSE deleted file mode 100644 index 9e841e7a..00000000 --- a/build_vtk_bundle/node_modules/@types/json-schema/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - MIT License - - Copyright (c) Microsoft Corporation. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE diff --git a/build_vtk_bundle/node_modules/@types/json-schema/README.md b/build_vtk_bundle/node_modules/@types/json-schema/README.md deleted file mode 100644 index 78c610f0..00000000 --- a/build_vtk_bundle/node_modules/@types/json-schema/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Installation -> `npm install --save @types/json-schema` - -# Summary -This package contains type definitions for json-schema (https://github.com/kriszyp/json-schema). - -# Details -Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-schema. - -### Additional Details - * Last updated: Tue, 07 Nov 2023 03:09:37 GMT - * Dependencies: none - -# Credits -These definitions were written by [Boris Cherny](https://github.com/bcherny), [Lucian Buzzo](https://github.com/lucianbuzzo), [Roland Groza](https://github.com/rolandjitsu), and [Jason Kwok](https://github.com/JasonHK). diff --git a/build_vtk_bundle/node_modules/@types/json-schema/index.d.ts b/build_vtk_bundle/node_modules/@types/json-schema/index.d.ts deleted file mode 100644 index 9381e999..00000000 --- a/build_vtk_bundle/node_modules/@types/json-schema/index.d.ts +++ /dev/null @@ -1,749 +0,0 @@ -// ================================================================================================== -// JSON Schema Draft 04 -// ================================================================================================== - -/** - * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1 - */ -export type JSONSchema4TypeName = - | "string" // - | "number" - | "integer" - | "boolean" - | "object" - | "array" - | "null" - | "any"; - -/** - * @see https://tools.ietf.org/html/draft-zyp-json-schema-04#section-3.5 - */ -export type JSONSchema4Type = - | string // - | number - | boolean - | JSONSchema4Object - | JSONSchema4Array - | null; - -// Workaround for infinite type recursion -export interface JSONSchema4Object { - [key: string]: JSONSchema4Type; -} - -// Workaround for infinite type recursion -// https://github.com/Microsoft/TypeScript/issues/3496#issuecomment-128553540 -export interface JSONSchema4Array extends Array {} - -/** - * Meta schema - * - * Recommended values: - * - 'http://json-schema.org/schema#' - * - 'http://json-schema.org/hyper-schema#' - * - 'http://json-schema.org/draft-04/schema#' - * - 'http://json-schema.org/draft-04/hyper-schema#' - * - 'http://json-schema.org/draft-03/schema#' - * - 'http://json-schema.org/draft-03/hyper-schema#' - * - * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5 - */ -export type JSONSchema4Version = string; - -/** - * JSON Schema V4 - * @see https://tools.ietf.org/html/draft-zyp-json-schema-04 - */ -export interface JSONSchema4 { - id?: string | undefined; - $ref?: string | undefined; - $schema?: JSONSchema4Version | undefined; - - /** - * This attribute is a string that provides a short description of the - * instance property. - * - * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.21 - */ - title?: string | undefined; - - /** - * This attribute is a string that provides a full description of the of - * purpose the instance property. - * - * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.22 - */ - description?: string | undefined; - - default?: JSONSchema4Type | undefined; - multipleOf?: number | undefined; - maximum?: number | undefined; - exclusiveMaximum?: boolean | undefined; - minimum?: number | undefined; - exclusiveMinimum?: boolean | undefined; - maxLength?: number | undefined; - minLength?: number | undefined; - pattern?: string | undefined; - - /** - * May only be defined when "items" is defined, and is a tuple of JSONSchemas. - * - * This provides a definition for additional items in an array instance - * when tuple definitions of the items is provided. This can be false - * to indicate additional items in the array are not allowed, or it can - * be a schema that defines the schema of the additional items. - * - * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.6 - */ - additionalItems?: boolean | JSONSchema4 | undefined; - - /** - * This attribute defines the allowed items in an instance array, and - * MUST be a schema or an array of schemas. The default value is an - * empty schema which allows any value for items in the instance array. - * - * When this attribute value is a schema and the instance value is an - * array, then all the items in the array MUST be valid according to the - * schema. - * - * When this attribute value is an array of schemas and the instance - * value is an array, each position in the instance array MUST conform - * to the schema in the corresponding position for this array. This - * called tuple typing. When tuple typing is used, additional items are - * allowed, disallowed, or constrained by the "additionalItems" - * (Section 5.6) attribute using the same rules as - * "additionalProperties" (Section 5.4) for objects. - * - * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.5 - */ - items?: JSONSchema4 | JSONSchema4[] | undefined; - - maxItems?: number | undefined; - minItems?: number | undefined; - uniqueItems?: boolean | undefined; - maxProperties?: number | undefined; - minProperties?: number | undefined; - - /** - * This attribute indicates if the instance must have a value, and not - * be undefined. This is false by default, making the instance - * optional. - * - * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.7 - */ - required?: boolean | string[] | undefined; - - /** - * This attribute defines a schema for all properties that are not - * explicitly defined in an object type definition. If specified, the - * value MUST be a schema or a boolean. If false is provided, no - * additional properties are allowed beyond the properties defined in - * the schema. The default value is an empty schema which allows any - * value for additional properties. - * - * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.4 - */ - additionalProperties?: boolean | JSONSchema4 | undefined; - - definitions?: { - [k: string]: JSONSchema4; - } | undefined; - - /** - * This attribute is an object with property definitions that define the - * valid values of instance object property values. When the instance - * value is an object, the property values of the instance object MUST - * conform to the property definitions in this object. In this object, - * each property definition's value MUST be a schema, and the property's - * name MUST be the name of the instance property that it defines. The - * instance property value MUST be valid according to the schema from - * the property definition. Properties are considered unordered, the - * order of the instance properties MAY be in any order. - * - * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.2 - */ - properties?: { - [k: string]: JSONSchema4; - } | undefined; - - /** - * This attribute is an object that defines the schema for a set of - * property names of an object instance. The name of each property of - * this attribute's object is a regular expression pattern in the ECMA - * 262/Perl 5 format, while the value is a schema. If the pattern - * matches the name of a property on the instance object, the value of - * the instance's property MUST be valid against the pattern name's - * schema value. - * - * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.3 - */ - patternProperties?: { - [k: string]: JSONSchema4; - } | undefined; - dependencies?: { - [k: string]: JSONSchema4 | string[]; - } | undefined; - - /** - * This provides an enumeration of all possible values that are valid - * for the instance property. This MUST be an array, and each item in - * the array represents a possible value for the instance value. If - * this attribute is defined, the instance value MUST be one of the - * values in the array in order for the schema to be valid. - * - * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.19 - */ - enum?: JSONSchema4Type[] | undefined; - - /** - * A single type, or a union of simple types - */ - type?: JSONSchema4TypeName | JSONSchema4TypeName[] | undefined; - - allOf?: JSONSchema4[] | undefined; - anyOf?: JSONSchema4[] | undefined; - oneOf?: JSONSchema4[] | undefined; - not?: JSONSchema4 | undefined; - - /** - * The value of this property MUST be another schema which will provide - * a base schema which the current schema will inherit from. The - * inheritance rules are such that any instance that is valid according - * to the current schema MUST be valid according to the referenced - * schema. This MAY also be an array, in which case, the instance MUST - * be valid for all the schemas in the array. A schema that extends - * another schema MAY define additional attributes, constrain existing - * attributes, or add other constraints. - * - * Conceptually, the behavior of extends can be seen as validating an - * instance against all constraints in the extending schema as well as - * the extended schema(s). - * - * @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.26 - */ - extends?: string | string[] | undefined; - - /** - * @see https://tools.ietf.org/html/draft-zyp-json-schema-04#section-5.6 - */ - [k: string]: any; - - format?: string | undefined; -} - -// ================================================================================================== -// JSON Schema Draft 06 -// ================================================================================================== - -export type JSONSchema6TypeName = - | "string" // - | "number" - | "integer" - | "boolean" - | "object" - | "array" - | "null" - | "any"; - -export type JSONSchema6Type = - | string // - | number - | boolean - | JSONSchema6Object - | JSONSchema6Array - | null; - -// Workaround for infinite type recursion -export interface JSONSchema6Object { - [key: string]: JSONSchema6Type; -} - -// Workaround for infinite type recursion -// https://github.com/Microsoft/TypeScript/issues/3496#issuecomment-128553540 -export interface JSONSchema6Array extends Array {} - -/** - * Meta schema - * - * Recommended values: - * - 'http://json-schema.org/schema#' - * - 'http://json-schema.org/hyper-schema#' - * - 'http://json-schema.org/draft-06/schema#' - * - 'http://json-schema.org/draft-06/hyper-schema#' - * - * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5 - */ -export type JSONSchema6Version = string; - -/** - * JSON Schema V6 - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01 - */ -export type JSONSchema6Definition = JSONSchema6 | boolean; -export interface JSONSchema6 { - $id?: string | undefined; - $ref?: string | undefined; - $schema?: JSONSchema6Version | undefined; - - /** - * Must be strictly greater than 0. - * A numeric instance is valid only if division by this keyword's value results in an integer. - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.1 - */ - multipleOf?: number | undefined; - - /** - * Representing an inclusive upper limit for a numeric instance. - * This keyword validates only if the instance is less than or exactly equal to "maximum". - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.2 - */ - maximum?: number | undefined; - - /** - * Representing an exclusive upper limit for a numeric instance. - * This keyword validates only if the instance is strictly less than (not equal to) to "exclusiveMaximum". - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.3 - */ - exclusiveMaximum?: number | undefined; - - /** - * Representing an inclusive lower limit for a numeric instance. - * This keyword validates only if the instance is greater than or exactly equal to "minimum". - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.4 - */ - minimum?: number | undefined; - - /** - * Representing an exclusive lower limit for a numeric instance. - * This keyword validates only if the instance is strictly greater than (not equal to) to "exclusiveMinimum". - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.5 - */ - exclusiveMinimum?: number | undefined; - - /** - * Must be a non-negative integer. - * A string instance is valid against this keyword if its length is less than, or equal to, the value of this keyword. - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.6 - */ - maxLength?: number | undefined; - - /** - * Must be a non-negative integer. - * A string instance is valid against this keyword if its length is greater than, or equal to, the value of this keyword. - * Omitting this keyword has the same behavior as a value of 0. - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.7 - */ - minLength?: number | undefined; - - /** - * Should be a valid regular expression, according to the ECMA 262 regular expression dialect. - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.8 - */ - pattern?: string | undefined; - - /** - * This keyword determines how child instances validate for arrays, and does not directly validate the immediate instance itself. - * Omitting this keyword has the same behavior as an empty schema. - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.9 - */ - items?: JSONSchema6Definition | JSONSchema6Definition[] | undefined; - - /** - * This keyword determines how child instances validate for arrays, and does not directly validate the immediate instance itself. - * If "items" is an array of schemas, validation succeeds if every instance element - * at a position greater than the size of "items" validates against "additionalItems". - * Otherwise, "additionalItems" MUST be ignored, as the "items" schema - * (possibly the default value of an empty schema) is applied to all elements. - * Omitting this keyword has the same behavior as an empty schema. - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.10 - */ - additionalItems?: JSONSchema6Definition | undefined; - - /** - * Must be a non-negative integer. - * An array instance is valid against "maxItems" if its size is less than, or equal to, the value of this keyword. - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.11 - */ - maxItems?: number | undefined; - - /** - * Must be a non-negative integer. - * An array instance is valid against "maxItems" if its size is greater than, or equal to, the value of this keyword. - * Omitting this keyword has the same behavior as a value of 0. - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.12 - */ - minItems?: number | undefined; - - /** - * If this keyword has boolean value false, the instance validates successfully. - * If it has boolean value true, the instance validates successfully if all of its elements are unique. - * Omitting this keyword has the same behavior as a value of false. - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.13 - */ - uniqueItems?: boolean | undefined; - - /** - * An array instance is valid against "contains" if at least one of its elements is valid against the given schema. - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.14 - */ - contains?: JSONSchema6Definition | undefined; - - /** - * Must be a non-negative integer. - * An object instance is valid against "maxProperties" if its number of properties is less than, or equal to, the value of this keyword. - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.15 - */ - maxProperties?: number | undefined; - - /** - * Must be a non-negative integer. - * An object instance is valid against "maxProperties" if its number of properties is greater than, - * or equal to, the value of this keyword. - * Omitting this keyword has the same behavior as a value of 0. - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.16 - */ - minProperties?: number | undefined; - - /** - * Elements of this array must be unique. - * An object instance is valid against this keyword if every item in the array is the name of a property in the instance. - * Omitting this keyword has the same behavior as an empty array. - * - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.17 - */ - required?: string[] | undefined; - - /** - * This keyword determines how child instances validate for objects, and does not directly validate the immediate instance itself. - * Validation succeeds if, for each name that appears in both the instance and as a name within this keyword's value, - * the child instance for that name successfully validates against the corresponding schema. - * Omitting this keyword has the same behavior as an empty object. - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.18 - */ - properties?: { - [k: string]: JSONSchema6Definition; - } | undefined; - - /** - * This attribute is an object that defines the schema for a set of property names of an object instance. - * The name of each property of this attribute's object is a regular expression pattern in the ECMA 262, while the value is a schema. - * If the pattern matches the name of a property on the instance object, the value of the instance's property - * MUST be valid against the pattern name's schema value. - * Omitting this keyword has the same behavior as an empty object. - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.19 - */ - patternProperties?: { - [k: string]: JSONSchema6Definition; - } | undefined; - - /** - * This attribute defines a schema for all properties that are not explicitly defined in an object type definition. - * If specified, the value MUST be a schema or a boolean. - * If false is provided, no additional properties are allowed beyond the properties defined in the schema. - * The default value is an empty schema which allows any value for additional properties. - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.20 - */ - additionalProperties?: JSONSchema6Definition | undefined; - - /** - * This keyword specifies rules that are evaluated if the instance is an object and contains a certain property. - * Each property specifies a dependency. - * If the dependency value is an array, each element in the array must be unique. - * Omitting this keyword has the same behavior as an empty object. - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.21 - */ - dependencies?: { - [k: string]: JSONSchema6Definition | string[]; - } | undefined; - - /** - * Takes a schema which validates the names of all properties rather than their values. - * Note the property name that the schema is testing will always be a string. - * Omitting this keyword has the same behavior as an empty schema. - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.22 - */ - propertyNames?: JSONSchema6Definition | undefined; - - /** - * This provides an enumeration of all possible values that are valid - * for the instance property. This MUST be an array, and each item in - * the array represents a possible value for the instance value. If - * this attribute is defined, the instance value MUST be one of the - * values in the array in order for the schema to be valid. - * - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.23 - */ - enum?: JSONSchema6Type[] | undefined; - - /** - * More readable form of a one-element "enum" - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.24 - */ - const?: JSONSchema6Type | undefined; - - /** - * A single type, or a union of simple types - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.25 - */ - type?: JSONSchema6TypeName | JSONSchema6TypeName[] | undefined; - - /** - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.26 - */ - allOf?: JSONSchema6Definition[] | undefined; - - /** - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.27 - */ - anyOf?: JSONSchema6Definition[] | undefined; - - /** - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.28 - */ - oneOf?: JSONSchema6Definition[] | undefined; - - /** - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.29 - */ - not?: JSONSchema6Definition | undefined; - - /** - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.1 - */ - definitions?: { - [k: string]: JSONSchema6Definition; - } | undefined; - - /** - * This attribute is a string that provides a short description of the instance property. - * - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.2 - */ - title?: string | undefined; - - /** - * This attribute is a string that provides a full description of the of purpose the instance property. - * - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.2 - */ - description?: string | undefined; - - /** - * This keyword can be used to supply a default JSON value associated with a particular schema. - * It is RECOMMENDED that a default value be valid against the associated schema. - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.3 - */ - default?: JSONSchema6Type | undefined; - - /** - * Array of examples with no validation effect the value of "default" is usable as an example without repeating it under this keyword - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.4 - */ - examples?: JSONSchema6Type[] | undefined; - - /** - * @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-8 - */ - format?: string | undefined; -} - -// ================================================================================================== -// JSON Schema Draft 07 -// ================================================================================================== -// https://tools.ietf.org/html/draft-handrews-json-schema-validation-01 -// -------------------------------------------------------------------------------------------------- - -/** - * Primitive type - * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1 - */ -export type JSONSchema7TypeName = - | "string" // - | "number" - | "integer" - | "boolean" - | "object" - | "array" - | "null"; - -/** - * Primitive type - * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1 - */ -export type JSONSchema7Type = - | string // - | number - | boolean - | JSONSchema7Object - | JSONSchema7Array - | null; - -// Workaround for infinite type recursion -export interface JSONSchema7Object { - [key: string]: JSONSchema7Type; -} - -// Workaround for infinite type recursion -// https://github.com/Microsoft/TypeScript/issues/3496#issuecomment-128553540 -export interface JSONSchema7Array extends Array {} - -/** - * Meta schema - * - * Recommended values: - * - 'http://json-schema.org/schema#' - * - 'http://json-schema.org/hyper-schema#' - * - 'http://json-schema.org/draft-07/schema#' - * - 'http://json-schema.org/draft-07/hyper-schema#' - * - * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5 - */ -export type JSONSchema7Version = string; - -/** - * JSON Schema v7 - * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01 - */ -export type JSONSchema7Definition = JSONSchema7 | boolean; -export interface JSONSchema7 { - $id?: string | undefined; - $ref?: string | undefined; - $schema?: JSONSchema7Version | undefined; - $comment?: string | undefined; - - /** - * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-8.2.4 - * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#appendix-A - */ - $defs?: { - [key: string]: JSONSchema7Definition; - } | undefined; - - /** - * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1 - */ - type?: JSONSchema7TypeName | JSONSchema7TypeName[] | undefined; - enum?: JSONSchema7Type[] | undefined; - const?: JSONSchema7Type | undefined; - - /** - * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.2 - */ - multipleOf?: number | undefined; - maximum?: number | undefined; - exclusiveMaximum?: number | undefined; - minimum?: number | undefined; - exclusiveMinimum?: number | undefined; - - /** - * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.3 - */ - maxLength?: number | undefined; - minLength?: number | undefined; - pattern?: string | undefined; - - /** - * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.4 - */ - items?: JSONSchema7Definition | JSONSchema7Definition[] | undefined; - additionalItems?: JSONSchema7Definition | undefined; - maxItems?: number | undefined; - minItems?: number | undefined; - uniqueItems?: boolean | undefined; - contains?: JSONSchema7Definition | undefined; - - /** - * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.5 - */ - maxProperties?: number | undefined; - minProperties?: number | undefined; - required?: string[] | undefined; - properties?: { - [key: string]: JSONSchema7Definition; - } | undefined; - patternProperties?: { - [key: string]: JSONSchema7Definition; - } | undefined; - additionalProperties?: JSONSchema7Definition | undefined; - dependencies?: { - [key: string]: JSONSchema7Definition | string[]; - } | undefined; - propertyNames?: JSONSchema7Definition | undefined; - - /** - * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.6 - */ - if?: JSONSchema7Definition | undefined; - then?: JSONSchema7Definition | undefined; - else?: JSONSchema7Definition | undefined; - - /** - * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.7 - */ - allOf?: JSONSchema7Definition[] | undefined; - anyOf?: JSONSchema7Definition[] | undefined; - oneOf?: JSONSchema7Definition[] | undefined; - not?: JSONSchema7Definition | undefined; - - /** - * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-7 - */ - format?: string | undefined; - - /** - * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-8 - */ - contentMediaType?: string | undefined; - contentEncoding?: string | undefined; - - /** - * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-9 - */ - definitions?: { - [key: string]: JSONSchema7Definition; - } | undefined; - - /** - * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-10 - */ - title?: string | undefined; - description?: string | undefined; - default?: JSONSchema7Type | undefined; - readOnly?: boolean | undefined; - writeOnly?: boolean | undefined; - examples?: JSONSchema7Type | undefined; -} - -export interface ValidationResult { - valid: boolean; - errors: ValidationError[]; -} - -export interface ValidationError { - property: string; - message: string; -} - -/** - * To use the validator call JSONSchema.validate with an instance object and an optional schema object. - * If a schema is provided, it will be used to validate. If the instance object refers to a schema (self-validating), - * that schema will be used to validate and the schema parameter is not necessary (if both exist, - * both validations will occur). - */ -export function validate(instance: {}, schema: JSONSchema4 | JSONSchema6 | JSONSchema7): ValidationResult; - -/** - * The checkPropertyChange method will check to see if an value can legally be in property with the given schema - * This is slightly different than the validate method in that it will fail if the schema is readonly and it will - * not check for self-validation, it is assumed that the passed in value is already internally valid. - */ -export function checkPropertyChange( - value: any, - schema: JSONSchema4 | JSONSchema6 | JSONSchema7, - property: string, -): ValidationResult; - -/** - * This checks to ensure that the result is valid and will throw an appropriate error message if it is not. - */ -export function mustBeValid(result: ValidationResult): void; diff --git a/build_vtk_bundle/node_modules/@types/json-schema/package.json b/build_vtk_bundle/node_modules/@types/json-schema/package.json deleted file mode 100644 index 3c41bd7f..00000000 --- a/build_vtk_bundle/node_modules/@types/json-schema/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "@types/json-schema", - "version": "7.0.15", - "description": "TypeScript definitions for json-schema", - "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-schema", - "license": "MIT", - "contributors": [ - { - "name": "Boris Cherny", - "githubUsername": "bcherny", - "url": "https://github.com/bcherny" - }, - { - "name": "Lucian Buzzo", - "githubUsername": "lucianbuzzo", - "url": "https://github.com/lucianbuzzo" - }, - { - "name": "Roland Groza", - "githubUsername": "rolandjitsu", - "url": "https://github.com/rolandjitsu" - }, - { - "name": "Jason Kwok", - "githubUsername": "JasonHK", - "url": "https://github.com/JasonHK" - } - ], - "main": "", - "types": "index.d.ts", - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", - "directory": "types/json-schema" - }, - "scripts": {}, - "dependencies": {}, - "typesPublisherContentHash": "79984fd70cd25c3f7d72b84368778c763c89728ea0073832d745d4691b705257", - "typeScriptVersion": "4.5" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@types/node/LICENSE b/build_vtk_bundle/node_modules/@types/node/LICENSE deleted file mode 100644 index 9e841e7a..00000000 --- a/build_vtk_bundle/node_modules/@types/node/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - MIT License - - Copyright (c) Microsoft Corporation. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE diff --git a/build_vtk_bundle/node_modules/@types/node/README.md b/build_vtk_bundle/node_modules/@types/node/README.md deleted file mode 100644 index d05ecf1f..00000000 --- a/build_vtk_bundle/node_modules/@types/node/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# Installation -> `npm install --save @types/node` - -# Summary -This package contains type definitions for node (https://nodejs.org/). - -# Details -Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node. - -### Additional Details - * Last updated: Tue, 11 Nov 2025 23:33:13 GMT - * Dependencies: [undici-types](https://npmjs.com/package/undici-types) - -# Credits -These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [Alberto Schiabel](https://github.com/jkomyno), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [David Junger](https://github.com/touffy), [Mohsen Azimi](https://github.com/mohsen1), [Nikita Galkin](https://github.com/galkin), [Sebastian Silbermann](https://github.com/eps1lon), [Wilco Bakker](https://github.com/WilcoBakker), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), [Dmitry Semigradsky](https://github.com/Semigradsky), [René](https://github.com/Renegade334), and [Yagiz Nizipli](https://github.com/anonrig). diff --git a/build_vtk_bundle/node_modules/@types/node/assert.d.ts b/build_vtk_bundle/node_modules/@types/node/assert.d.ts deleted file mode 100644 index cd6d6df9..00000000 --- a/build_vtk_bundle/node_modules/@types/node/assert.d.ts +++ /dev/null @@ -1,1115 +0,0 @@ -/** - * The `node:assert` module provides a set of assertion functions for verifying - * invariants. - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/assert.js) - */ -declare module "assert" { - import strict = require("assert/strict"); - /** - * An alias of {@link assert.ok}. - * @since v0.5.9 - * @param value The input that is checked for being truthy. - */ - function assert(value: unknown, message?: string | Error): asserts value; - const kOptions: unique symbol; - namespace assert { - type AssertMethodNames = - | "deepEqual" - | "deepStrictEqual" - | "doesNotMatch" - | "doesNotReject" - | "doesNotThrow" - | "equal" - | "fail" - | "ifError" - | "match" - | "notDeepEqual" - | "notDeepStrictEqual" - | "notEqual" - | "notStrictEqual" - | "ok" - | "partialDeepStrictEqual" - | "rejects" - | "strictEqual" - | "throws"; - interface AssertOptions { - /** - * If set to `'full'`, shows the full diff in assertion errors. - * @default 'simple' - */ - diff?: "simple" | "full" | undefined; - /** - * If set to `true`, non-strict methods behave like their - * corresponding strict methods. - * @default true - */ - strict?: boolean | undefined; - /** - * If set to `true`, skips prototype and constructor - * comparison in deep equality checks. - * @since v24.9.0 - * @default false - */ - skipPrototype?: boolean | undefined; - } - interface Assert extends Pick { - readonly [kOptions]: AssertOptions & { strict: false }; - } - interface AssertStrict extends Pick { - readonly [kOptions]: AssertOptions & { strict: true }; - } - /** - * The `Assert` class allows creating independent assertion instances with custom options. - * @since v24.6.0 - */ - var Assert: { - /** - * Creates a new assertion instance. The `diff` option controls the verbosity of diffs in assertion error messages. - * - * ```js - * const { Assert } = require('node:assert'); - * const assertInstance = new Assert({ diff: 'full' }); - * assertInstance.deepStrictEqual({ a: 1 }, { a: 2 }); - * // Shows a full diff in the error message. - * ``` - * - * **Important**: When destructuring assertion methods from an `Assert` instance, - * the methods lose their connection to the instance's configuration options (such - * as `diff`, `strict`, and `skipPrototype` settings). - * The destructured methods will fall back to default behavior instead. - * - * ```js - * const myAssert = new Assert({ diff: 'full' }); - * - * // This works as expected - uses 'full' diff - * myAssert.strictEqual({ a: 1 }, { b: { c: 1 } }); - * - * // This loses the 'full' diff setting - falls back to default 'simple' diff - * const { strictEqual } = myAssert; - * strictEqual({ a: 1 }, { b: { c: 1 } }); - * ``` - * - * The `skipPrototype` option affects all deep equality methods: - * - * ```js - * class Foo { - * constructor(a) { - * this.a = a; - * } - * } - * - * class Bar { - * constructor(a) { - * this.a = a; - * } - * } - * - * const foo = new Foo(1); - * const bar = new Bar(1); - * - * // Default behavior - fails due to different constructors - * const assert1 = new Assert(); - * assert1.deepStrictEqual(foo, bar); // AssertionError - * - * // Skip prototype comparison - passes if properties are equal - * const assert2 = new Assert({ skipPrototype: true }); - * assert2.deepStrictEqual(foo, bar); // OK - * ``` - * - * When destructured, methods lose access to the instance's `this` context and revert to default assertion behavior - * (diff: 'simple', non-strict mode). - * To maintain custom options when using destructured methods, avoid - * destructuring and call methods directly on the instance. - * @since v24.6.0 - */ - new( - options?: AssertOptions & { strict?: true | undefined }, - ): AssertStrict; - new( - options: AssertOptions, - ): Assert; - }; - interface AssertionErrorOptions { - /** - * If provided, the error message is set to this value. - */ - message?: string | undefined; - /** - * The `actual` property on the error instance. - */ - actual?: unknown; - /** - * The `expected` property on the error instance. - */ - expected?: unknown; - /** - * The `operator` property on the error instance. - */ - operator?: string | undefined; - /** - * If provided, the generated stack trace omits frames before this function. - */ - stackStartFn?: Function | undefined; - /** - * If set to `'full'`, shows the full diff in assertion errors. - * @default 'simple' - */ - diff?: "simple" | "full" | undefined; - } - /** - * Indicates the failure of an assertion. All errors thrown by the `node:assert` module will be instances of the `AssertionError` class. - */ - class AssertionError extends Error { - constructor(options: AssertionErrorOptions); - /** - * Set to the `actual` argument for methods such as {@link assert.strictEqual()}. - */ - actual: unknown; - /** - * Set to the `expected` argument for methods such as {@link assert.strictEqual()}. - */ - expected: unknown; - /** - * Indicates if the message was auto-generated (`true`) or not. - */ - generatedMessage: boolean; - /** - * Value is always `ERR_ASSERTION` to show that the error is an assertion error. - */ - code: "ERR_ASSERTION"; - /** - * Set to the passed in operator value. - */ - operator: string; - } - /** - * This feature is deprecated and will be removed in a future version. - * Please consider using alternatives such as the `mock` helper function. - * @since v14.2.0, v12.19.0 - * @deprecated Deprecated - */ - class CallTracker { - /** - * The wrapper function is expected to be called exactly `exact` times. If the - * function has not been called exactly `exact` times when `tracker.verify()` is called, then `tracker.verify()` will throw an - * error. - * - * ```js - * import assert from 'node:assert'; - * - * // Creates call tracker. - * const tracker = new assert.CallTracker(); - * - * function func() {} - * - * // Returns a function that wraps func() that must be called exact times - * // before tracker.verify(). - * const callsfunc = tracker.calls(func); - * ``` - * @since v14.2.0, v12.19.0 - * @param [fn='A no-op function'] - * @param [exact=1] - * @return A function that wraps `fn`. - */ - calls(exact?: number): () => void; - calls(fn: undefined, exact?: number): () => void; - calls any>(fn: Func, exact?: number): Func; - calls any>(fn?: Func, exact?: number): Func | (() => void); - /** - * Example: - * - * ```js - * import assert from 'node:assert'; - * - * const tracker = new assert.CallTracker(); - * - * function func() {} - * const callsfunc = tracker.calls(func); - * callsfunc(1, 2, 3); - * - * assert.deepStrictEqual(tracker.getCalls(callsfunc), - * [{ thisArg: undefined, arguments: [1, 2, 3] }]); - * ``` - * @since v18.8.0, v16.18.0 - * @return An array with all the calls to a tracked function. - */ - getCalls(fn: Function): CallTrackerCall[]; - /** - * The arrays contains information about the expected and actual number of calls of - * the functions that have not been called the expected number of times. - * - * ```js - * import assert from 'node:assert'; - * - * // Creates call tracker. - * const tracker = new assert.CallTracker(); - * - * function func() {} - * - * // Returns a function that wraps func() that must be called exact times - * // before tracker.verify(). - * const callsfunc = tracker.calls(func, 2); - * - * // Returns an array containing information on callsfunc() - * console.log(tracker.report()); - * // [ - * // { - * // message: 'Expected the func function to be executed 2 time(s) but was - * // executed 0 time(s).', - * // actual: 0, - * // expected: 2, - * // operator: 'func', - * // stack: stack trace - * // } - * // ] - * ``` - * @since v14.2.0, v12.19.0 - * @return An array of objects containing information about the wrapper functions returned by {@link tracker.calls()}. - */ - report(): CallTrackerReportInformation[]; - /** - * Reset calls of the call tracker. If a tracked function is passed as an argument, the calls will be reset for it. - * If no arguments are passed, all tracked functions will be reset. - * - * ```js - * import assert from 'node:assert'; - * - * const tracker = new assert.CallTracker(); - * - * function func() {} - * const callsfunc = tracker.calls(func); - * - * callsfunc(); - * // Tracker was called once - * assert.strictEqual(tracker.getCalls(callsfunc).length, 1); - * - * tracker.reset(callsfunc); - * assert.strictEqual(tracker.getCalls(callsfunc).length, 0); - * ``` - * @since v18.8.0, v16.18.0 - * @param fn a tracked function to reset. - */ - reset(fn?: Function): void; - /** - * Iterates through the list of functions passed to {@link tracker.calls()} and will throw an error for functions that - * have not been called the expected number of times. - * - * ```js - * import assert from 'node:assert'; - * - * // Creates call tracker. - * const tracker = new assert.CallTracker(); - * - * function func() {} - * - * // Returns a function that wraps func() that must be called exact times - * // before tracker.verify(). - * const callsfunc = tracker.calls(func, 2); - * - * callsfunc(); - * - * // Will throw an error since callsfunc() was only called once. - * tracker.verify(); - * ``` - * @since v14.2.0, v12.19.0 - */ - verify(): void; - } - interface CallTrackerCall { - thisArg: object; - arguments: unknown[]; - } - interface CallTrackerReportInformation { - message: string; - /** The actual number of times the function was called. */ - actual: number; - /** The number of times the function was expected to be called. */ - expected: number; - /** The name of the function that is wrapped. */ - operator: string; - /** A stack trace of the function. */ - stack: object; - } - type AssertPredicate = RegExp | (new() => object) | ((thrown: unknown) => boolean) | object | Error; - /** - * Throws an `AssertionError` with the provided error message or a default - * error message. If the `message` parameter is an instance of an `Error` then - * it will be thrown instead of the `AssertionError`. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.fail(); - * // AssertionError [ERR_ASSERTION]: Failed - * - * assert.fail('boom'); - * // AssertionError [ERR_ASSERTION]: boom - * - * assert.fail(new TypeError('need array')); - * // TypeError: need array - * ``` - * - * Using `assert.fail()` with more than two arguments is possible but deprecated. - * See below for further details. - * @since v0.1.21 - * @param [message='Failed'] - */ - function fail(message?: string | Error): never; - /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */ - function fail( - actual: unknown, - expected: unknown, - message?: string | Error, - operator?: string, - // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type - stackStartFn?: Function, - ): never; - /** - * Tests if `value` is truthy. It is equivalent to `assert.equal(!!value, true, message)`. - * - * If `value` is not truthy, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is `undefined`, a default - * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`. - * If no arguments are passed in at all `message` will be set to the string:`` 'No value argument passed to `assert.ok()`' ``. - * - * Be aware that in the `repl` the error message will be different to the one - * thrown in a file! See below for further details. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.ok(true); - * // OK - * assert.ok(1); - * // OK - * - * assert.ok(); - * // AssertionError: No value argument passed to `assert.ok()` - * - * assert.ok(false, 'it\'s false'); - * // AssertionError: it's false - * - * // In the repl: - * assert.ok(typeof 123 === 'string'); - * // AssertionError: false == true - * - * // In a file (e.g. test.js): - * assert.ok(typeof 123 === 'string'); - * // AssertionError: The expression evaluated to a falsy value: - * // - * // assert.ok(typeof 123 === 'string') - * - * assert.ok(false); - * // AssertionError: The expression evaluated to a falsy value: - * // - * // assert.ok(false) - * - * assert.ok(0); - * // AssertionError: The expression evaluated to a falsy value: - * // - * // assert.ok(0) - * ``` - * - * ```js - * import assert from 'node:assert/strict'; - * - * // Using `assert()` works the same: - * assert(0); - * // AssertionError: The expression evaluated to a falsy value: - * // - * // assert(0) - * ``` - * @since v0.1.21 - */ - function ok(value: unknown, message?: string | Error): asserts value; - /** - * **Strict assertion mode** - * - * An alias of {@link strictEqual}. - * - * **Legacy assertion mode** - * - * > Stability: 3 - Legacy: Use {@link strictEqual} instead. - * - * Tests shallow, coercive equality between the `actual` and `expected` parameters - * using the [`==` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality). `NaN` is specially handled - * and treated as being identical if both sides are `NaN`. - * - * ```js - * import assert from 'node:assert'; - * - * assert.equal(1, 1); - * // OK, 1 == 1 - * assert.equal(1, '1'); - * // OK, 1 == '1' - * assert.equal(NaN, NaN); - * // OK - * - * assert.equal(1, 2); - * // AssertionError: 1 == 2 - * assert.equal({ a: { b: 1 } }, { a: { b: 1 } }); - * // AssertionError: { a: { b: 1 } } == { a: { b: 1 } } - * ``` - * - * If the values are not equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default - * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`. - * @since v0.1.21 - */ - function equal(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * **Strict assertion mode** - * - * An alias of {@link notStrictEqual}. - * - * **Legacy assertion mode** - * - * > Stability: 3 - Legacy: Use {@link notStrictEqual} instead. - * - * Tests shallow, coercive inequality with the [`!=` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality). `NaN` is - * specially handled and treated as being identical if both sides are `NaN`. - * - * ```js - * import assert from 'node:assert'; - * - * assert.notEqual(1, 2); - * // OK - * - * assert.notEqual(1, 1); - * // AssertionError: 1 != 1 - * - * assert.notEqual(1, '1'); - * // AssertionError: 1 != '1' - * ``` - * - * If the values are equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default error - * message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`. - * @since v0.1.21 - */ - function notEqual(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * **Strict assertion mode** - * - * An alias of {@link deepStrictEqual}. - * - * **Legacy assertion mode** - * - * > Stability: 3 - Legacy: Use {@link deepStrictEqual} instead. - * - * Tests for deep equality between the `actual` and `expected` parameters. Consider - * using {@link deepStrictEqual} instead. {@link deepEqual} can have - * surprising results. - * - * _Deep equality_ means that the enumerable "own" properties of child objects - * are also recursively evaluated by the following rules. - * @since v0.1.21 - */ - function deepEqual(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * **Strict assertion mode** - * - * An alias of {@link notDeepStrictEqual}. - * - * **Legacy assertion mode** - * - * > Stability: 3 - Legacy: Use {@link notDeepStrictEqual} instead. - * - * Tests for any deep inequality. Opposite of {@link deepEqual}. - * - * ```js - * import assert from 'node:assert'; - * - * const obj1 = { - * a: { - * b: 1, - * }, - * }; - * const obj2 = { - * a: { - * b: 2, - * }, - * }; - * const obj3 = { - * a: { - * b: 1, - * }, - * }; - * const obj4 = { __proto__: obj1 }; - * - * assert.notDeepEqual(obj1, obj1); - * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } } - * - * assert.notDeepEqual(obj1, obj2); - * // OK - * - * assert.notDeepEqual(obj1, obj3); - * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } } - * - * assert.notDeepEqual(obj1, obj4); - * // OK - * ``` - * - * If the values are deeply equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a default - * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown - * instead of the `AssertionError`. - * @since v0.1.21 - */ - function notDeepEqual(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * Tests strict equality between the `actual` and `expected` parameters as - * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is). - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.strictEqual(1, 2); - * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal: - * // - * // 1 !== 2 - * - * assert.strictEqual(1, 1); - * // OK - * - * assert.strictEqual('Hello foobar', 'Hello World!'); - * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal: - * // + actual - expected - * // - * // + 'Hello foobar' - * // - 'Hello World!' - * // ^ - * - * const apples = 1; - * const oranges = 2; - * assert.strictEqual(apples, oranges, `apples ${apples} !== oranges ${oranges}`); - * // AssertionError [ERR_ASSERTION]: apples 1 !== oranges 2 - * - * assert.strictEqual(1, '1', new TypeError('Inputs are not identical')); - * // TypeError: Inputs are not identical - * ``` - * - * If the values are not strictly equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a - * default error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown - * instead of the `AssertionError`. - * @since v0.1.21 - */ - function strictEqual(actual: unknown, expected: T, message?: string | Error): asserts actual is T; - /** - * Tests strict inequality between the `actual` and `expected` parameters as - * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is). - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.notStrictEqual(1, 2); - * // OK - * - * assert.notStrictEqual(1, 1); - * // AssertionError [ERR_ASSERTION]: Expected "actual" to be strictly unequal to: - * // - * // 1 - * - * assert.notStrictEqual(1, '1'); - * // OK - * ``` - * - * If the values are strictly equal, an `AssertionError` is thrown with a `message` property set equal to the value of the `message` parameter. If the `message` parameter is undefined, a - * default error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown - * instead of the `AssertionError`. - * @since v0.1.21 - */ - function notStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * Tests for deep equality between the `actual` and `expected` parameters. - * "Deep" equality means that the enumerable "own" properties of child objects - * are recursively evaluated also by the following rules. - * @since v1.2.0 - */ - function deepStrictEqual(actual: unknown, expected: T, message?: string | Error): asserts actual is T; - /** - * Tests for deep strict inequality. Opposite of {@link deepStrictEqual}. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.notDeepStrictEqual({ a: 1 }, { a: '1' }); - * // OK - * ``` - * - * If the values are deeply and strictly equal, an `AssertionError` is thrown - * with a `message` property set equal to the value of the `message` parameter. If - * the `message` parameter is undefined, a default error message is assigned. If - * the `message` parameter is an instance of an `Error` then it will be thrown - * instead of the `AssertionError`. - * @since v1.2.0 - */ - function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * Expects the function `fn` to throw an error. - * - * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), - * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function, - * a validation object where each property will be tested for strict deep equality, - * or an instance of error where each property will be tested for strict deep - * equality including the non-enumerable `message` and `name` properties. When - * using an object, it is also possible to use a regular expression, when - * validating against a string property. See below for examples. - * - * If specified, `message` will be appended to the message provided by the `AssertionError` if the `fn` call fails to throw or in case the error validation - * fails. - * - * Custom validation object/error instance: - * - * ```js - * import assert from 'node:assert/strict'; - * - * const err = new TypeError('Wrong value'); - * err.code = 404; - * err.foo = 'bar'; - * err.info = { - * nested: true, - * baz: 'text', - * }; - * err.reg = /abc/i; - * - * assert.throws( - * () => { - * throw err; - * }, - * { - * name: 'TypeError', - * message: 'Wrong value', - * info: { - * nested: true, - * baz: 'text', - * }, - * // Only properties on the validation object will be tested for. - * // Using nested objects requires all properties to be present. Otherwise - * // the validation is going to fail. - * }, - * ); - * - * // Using regular expressions to validate error properties: - * assert.throws( - * () => { - * throw err; - * }, - * { - * // The `name` and `message` properties are strings and using regular - * // expressions on those will match against the string. If they fail, an - * // error is thrown. - * name: /^TypeError$/, - * message: /Wrong/, - * foo: 'bar', - * info: { - * nested: true, - * // It is not possible to use regular expressions for nested properties! - * baz: 'text', - * }, - * // The `reg` property contains a regular expression and only if the - * // validation object contains an identical regular expression, it is going - * // to pass. - * reg: /abc/i, - * }, - * ); - * - * // Fails due to the different `message` and `name` properties: - * assert.throws( - * () => { - * const otherErr = new Error('Not found'); - * // Copy all enumerable properties from `err` to `otherErr`. - * for (const [key, value] of Object.entries(err)) { - * otherErr[key] = value; - * } - * throw otherErr; - * }, - * // The error's `message` and `name` properties will also be checked when using - * // an error as validation object. - * err, - * ); - * ``` - * - * Validate instanceof using constructor: - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.throws( - * () => { - * throw new Error('Wrong value'); - * }, - * Error, - * ); - * ``` - * - * Validate error message using [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions): - * - * Using a regular expression runs `.toString` on the error object, and will - * therefore also include the error name. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.throws( - * () => { - * throw new Error('Wrong value'); - * }, - * /^Error: Wrong value$/, - * ); - * ``` - * - * Custom error validation: - * - * The function must return `true` to indicate all internal validations passed. - * It will otherwise fail with an `AssertionError`. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.throws( - * () => { - * throw new Error('Wrong value'); - * }, - * (err) => { - * assert(err instanceof Error); - * assert(/value/.test(err)); - * // Avoid returning anything from validation functions besides `true`. - * // Otherwise, it's not clear what part of the validation failed. Instead, - * // throw an error about the specific validation that failed (as done in this - * // example) and add as much helpful debugging information to that error as - * // possible. - * return true; - * }, - * 'unexpected error', - * ); - * ``` - * - * `error` cannot be a string. If a string is provided as the second - * argument, then `error` is assumed to be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes. Using the same - * message as the thrown error message is going to result in an `ERR_AMBIGUOUS_ARGUMENT` error. Please read the example below carefully if using - * a string as the second argument gets considered: - * - * ```js - * import assert from 'node:assert/strict'; - * - * function throwingFirst() { - * throw new Error('First'); - * } - * - * function throwingSecond() { - * throw new Error('Second'); - * } - * - * function notThrowing() {} - * - * // The second argument is a string and the input function threw an Error. - * // The first case will not throw as it does not match for the error message - * // thrown by the input function! - * assert.throws(throwingFirst, 'Second'); - * // In the next example the message has no benefit over the message from the - * // error and since it is not clear if the user intended to actually match - * // against the error message, Node.js throws an `ERR_AMBIGUOUS_ARGUMENT` error. - * assert.throws(throwingSecond, 'Second'); - * // TypeError [ERR_AMBIGUOUS_ARGUMENT] - * - * // The string is only used (as message) in case the function does not throw: - * assert.throws(notThrowing, 'Second'); - * // AssertionError [ERR_ASSERTION]: Missing expected exception: Second - * - * // If it was intended to match for the error message do this instead: - * // It does not throw because the error messages match. - * assert.throws(throwingSecond, /Second$/); - * - * // If the error message does not match, an AssertionError is thrown. - * assert.throws(throwingFirst, /Second$/); - * // AssertionError [ERR_ASSERTION] - * ``` - * - * Due to the confusing error-prone notation, avoid a string as the second - * argument. - * @since v0.1.21 - */ - function throws(block: () => unknown, message?: string | Error): void; - function throws(block: () => unknown, error: AssertPredicate, message?: string | Error): void; - /** - * Asserts that the function `fn` does not throw an error. - * - * Using `assert.doesNotThrow()` is actually not useful because there - * is no benefit in catching an error and then rethrowing it. Instead, consider - * adding a comment next to the specific code path that should not throw and keep - * error messages as expressive as possible. - * - * When `assert.doesNotThrow()` is called, it will immediately call the `fn` function. - * - * If an error is thrown and it is the same type as that specified by the `error` parameter, then an `AssertionError` is thrown. If the error is of a - * different type, or if the `error` parameter is undefined, the error is - * propagated back to the caller. - * - * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), - * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), or a validation - * function. See {@link throws} for more details. - * - * The following, for instance, will throw the `TypeError` because there is no - * matching error type in the assertion: - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.doesNotThrow( - * () => { - * throw new TypeError('Wrong value'); - * }, - * SyntaxError, - * ); - * ``` - * - * However, the following will result in an `AssertionError` with the message - * 'Got unwanted exception...': - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.doesNotThrow( - * () => { - * throw new TypeError('Wrong value'); - * }, - * TypeError, - * ); - * ``` - * - * If an `AssertionError` is thrown and a value is provided for the `message` parameter, the value of `message` will be appended to the `AssertionError` message: - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.doesNotThrow( - * () => { - * throw new TypeError('Wrong value'); - * }, - * /Wrong value/, - * 'Whoops', - * ); - * // Throws: AssertionError: Got unwanted exception: Whoops - * ``` - * @since v0.1.21 - */ - function doesNotThrow(block: () => unknown, message?: string | Error): void; - function doesNotThrow(block: () => unknown, error: AssertPredicate, message?: string | Error): void; - /** - * Throws `value` if `value` is not `undefined` or `null`. This is useful when - * testing the `error` argument in callbacks. The stack trace contains all frames - * from the error passed to `ifError()` including the potential new frames for `ifError()` itself. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.ifError(null); - * // OK - * assert.ifError(0); - * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 0 - * assert.ifError('error'); - * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 'error' - * assert.ifError(new Error()); - * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Error - * - * // Create some random error frames. - * let err; - * (function errorFrame() { - * err = new Error('test error'); - * })(); - * - * (function ifErrorFrame() { - * assert.ifError(err); - * })(); - * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error - * // at ifErrorFrame - * // at errorFrame - * ``` - * @since v0.1.97 - */ - function ifError(value: unknown): asserts value is null | undefined; - /** - * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately - * calls the function and awaits the returned promise to complete. It will then - * check that the promise is rejected. - * - * If `asyncFn` is a function and it throws an error synchronously, `assert.rejects()` will return a rejected `Promise` with that error. If the - * function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v24.x/api/errors.html#err_invalid_return_value) - * error. In both cases the error handler is skipped. - * - * Besides the async nature to await the completion behaves identically to {@link throws}. - * - * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), - * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function, - * an object where each property will be tested for, or an instance of error where - * each property will be tested for including the non-enumerable `message` and `name` properties. - * - * If specified, `message` will be the message provided by the `{@link AssertionError}` if the `asyncFn` fails to reject. - * - * ```js - * import assert from 'node:assert/strict'; - * - * await assert.rejects( - * async () => { - * throw new TypeError('Wrong value'); - * }, - * { - * name: 'TypeError', - * message: 'Wrong value', - * }, - * ); - * ``` - * - * ```js - * import assert from 'node:assert/strict'; - * - * await assert.rejects( - * async () => { - * throw new TypeError('Wrong value'); - * }, - * (err) => { - * assert.strictEqual(err.name, 'TypeError'); - * assert.strictEqual(err.message, 'Wrong value'); - * return true; - * }, - * ); - * ``` - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.rejects( - * Promise.reject(new Error('Wrong value')), - * Error, - * ).then(() => { - * // ... - * }); - * ``` - * - * `error` cannot be a string. If a string is provided as the second argument, then `error` is assumed to - * be omitted and the string will be used for `message` instead. This can lead to easy-to-miss mistakes. Please read the - * example in {@link throws} carefully if using a string as the second argument gets considered. - * @since v10.0.0 - */ - function rejects(block: (() => Promise) | Promise, message?: string | Error): Promise; - function rejects( - block: (() => Promise) | Promise, - error: AssertPredicate, - message?: string | Error, - ): Promise; - /** - * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately - * calls the function and awaits the returned promise to complete. It will then - * check that the promise is not rejected. - * - * If `asyncFn` is a function and it throws an error synchronously, `assert.doesNotReject()` will return a rejected `Promise` with that error. If - * the function does not return a promise, `assert.doesNotReject()` will return a - * rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v24.x/api/errors.html#err_invalid_return_value) error. In both cases - * the error handler is skipped. - * - * Using `assert.doesNotReject()` is actually not useful because there is little - * benefit in catching a rejection and then rejecting it again. Instead, consider - * adding a comment next to the specific code path that should not reject and keep - * error messages as expressive as possible. - * - * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), - * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), or a validation - * function. See {@link throws} for more details. - * - * Besides the async nature to await the completion behaves identically to {@link doesNotThrow}. - * - * ```js - * import assert from 'node:assert/strict'; - * - * await assert.doesNotReject( - * async () => { - * throw new TypeError('Wrong value'); - * }, - * SyntaxError, - * ); - * ``` - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.doesNotReject(Promise.reject(new TypeError('Wrong value'))) - * .then(() => { - * // ... - * }); - * ``` - * @since v10.0.0 - */ - function doesNotReject( - block: (() => Promise) | Promise, - message?: string | Error, - ): Promise; - function doesNotReject( - block: (() => Promise) | Promise, - error: AssertPredicate, - message?: string | Error, - ): Promise; - /** - * Expects the `string` input to match the regular expression. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.match('I will fail', /pass/); - * // AssertionError [ERR_ASSERTION]: The input did not match the regular ... - * - * assert.match(123, /pass/); - * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string. - * - * assert.match('I will pass', /pass/); - * // OK - * ``` - * - * If the values do not match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal - * to the value of the `message` parameter. If the `message` parameter is - * undefined, a default error message is assigned. If the `message` parameter is an - * instance of an [Error](https://nodejs.org/docs/latest-v24.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`. - * @since v13.6.0, v12.16.0 - */ - function match(value: string, regExp: RegExp, message?: string | Error): void; - /** - * Expects the `string` input not to match the regular expression. - * - * ```js - * import assert from 'node:assert/strict'; - * - * assert.doesNotMatch('I will fail', /fail/); - * // AssertionError [ERR_ASSERTION]: The input was expected to not match the ... - * - * assert.doesNotMatch(123, /pass/); - * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string. - * - * assert.doesNotMatch('I will pass', /different/); - * // OK - * ``` - * - * If the values do match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal - * to the value of the `message` parameter. If the `message` parameter is - * undefined, a default error message is assigned. If the `message` parameter is an - * instance of an [Error](https://nodejs.org/docs/latest-v24.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`. - * @since v13.6.0, v12.16.0 - */ - function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void; - /** - * Tests for partial deep equality between the `actual` and `expected` parameters. - * "Deep" equality means that the enumerable "own" properties of child objects - * are recursively evaluated also by the following rules. "Partial" equality means - * that only properties that exist on the `expected` parameter are going to be - * compared. - * - * This method always passes the same test cases as `assert.deepStrictEqual()`, - * behaving as a super set of it. - * @since v22.13.0 - */ - function partialDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void; - } - namespace assert { - export { strict }; - } - export = assert; -} -declare module "node:assert" { - import assert = require("assert"); - export = assert; -} diff --git a/build_vtk_bundle/node_modules/@types/node/assert/strict.d.ts b/build_vtk_bundle/node_modules/@types/node/assert/strict.d.ts deleted file mode 100644 index 4ed7395a..00000000 --- a/build_vtk_bundle/node_modules/@types/node/assert/strict.d.ts +++ /dev/null @@ -1,111 +0,0 @@ -/** - * In strict assertion mode, non-strict methods behave like their corresponding - * strict methods. For example, `assert.deepEqual()` will behave like - * `assert.deepStrictEqual()`. - * - * In strict assertion mode, error messages for objects display a diff. In legacy - * assertion mode, error messages for objects display the objects, often truncated. - * - * To use strict assertion mode: - * - * ```js - * import { strict as assert } from 'node:assert'; - * ``` - * - * ```js - * import assert from 'node:assert/strict'; - * ``` - * - * Example error diff: - * - * ```js - * import { strict as assert } from 'node:assert'; - * - * assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, '3']], 4, 5]); - * // AssertionError: Expected inputs to be strictly deep-equal: - * // + actual - expected ... Lines skipped - * // - * // [ - * // [ - * // ... - * // 2, - * // + 3 - * // - '3' - * // ], - * // ... - * // 5 - * // ] - * ``` - * - * To deactivate the colors, use the `NO_COLOR` or `NODE_DISABLE_COLORS` - * environment variables. This will also deactivate the colors in the REPL. For - * more on color support in terminal environments, read the tty - * [`getColorDepth()`](https://nodejs.org/docs/latest-v24.x/api/tty.html#writestreamgetcolordepthenv) documentation. - * @since v15.0.0 - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/assert/strict.js) - */ -declare module "assert/strict" { - import { - Assert, - AssertionError, - AssertionErrorOptions, - AssertOptions, - AssertPredicate, - AssertStrict, - CallTracker, - CallTrackerCall, - CallTrackerReportInformation, - deepStrictEqual, - doesNotMatch, - doesNotReject, - doesNotThrow, - fail, - ifError, - match, - notDeepStrictEqual, - notStrictEqual, - ok, - partialDeepStrictEqual, - rejects, - strictEqual, - throws, - } from "node:assert"; - function strict(value: unknown, message?: string | Error): asserts value; - namespace strict { - export { - Assert, - AssertionError, - AssertionErrorOptions, - AssertOptions, - AssertPredicate, - AssertStrict, - CallTracker, - CallTrackerCall, - CallTrackerReportInformation, - deepStrictEqual, - deepStrictEqual as deepEqual, - doesNotMatch, - doesNotReject, - doesNotThrow, - fail, - ifError, - match, - notDeepStrictEqual, - notDeepStrictEqual as notDeepEqual, - notStrictEqual, - notStrictEqual as notEqual, - ok, - partialDeepStrictEqual, - rejects, - strict, - strictEqual, - strictEqual as equal, - throws, - }; - } - export = strict; -} -declare module "node:assert/strict" { - import strict = require("assert/strict"); - export = strict; -} diff --git a/build_vtk_bundle/node_modules/@types/node/async_hooks.d.ts b/build_vtk_bundle/node_modules/@types/node/async_hooks.d.ts deleted file mode 100644 index 2377689f..00000000 --- a/build_vtk_bundle/node_modules/@types/node/async_hooks.d.ts +++ /dev/null @@ -1,623 +0,0 @@ -/** - * We strongly discourage the use of the `async_hooks` API. - * Other APIs that can cover most of its use cases include: - * - * * [`AsyncLocalStorage`](https://nodejs.org/docs/latest-v24.x/api/async_context.html#class-asynclocalstorage) tracks async context - * * [`process.getActiveResourcesInfo()`](https://nodejs.org/docs/latest-v24.x/api/process.html#processgetactiveresourcesinfo) tracks active resources - * - * The `node:async_hooks` module provides an API to track asynchronous resources. - * It can be accessed using: - * - * ```js - * import async_hooks from 'node:async_hooks'; - * ``` - * @experimental - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/async_hooks.js) - */ -declare module "async_hooks" { - /** - * ```js - * import { executionAsyncId } from 'node:async_hooks'; - * import fs from 'node:fs'; - * - * console.log(executionAsyncId()); // 1 - bootstrap - * const path = '.'; - * fs.open(path, 'r', (err, fd) => { - * console.log(executionAsyncId()); // 6 - open() - * }); - * ``` - * - * The ID returned from `executionAsyncId()` is related to execution timing, not - * causality (which is covered by `triggerAsyncId()`): - * - * ```js - * const server = net.createServer((conn) => { - * // Returns the ID of the server, not of the new connection, because the - * // callback runs in the execution scope of the server's MakeCallback(). - * async_hooks.executionAsyncId(); - * - * }).listen(port, () => { - * // Returns the ID of a TickObject (process.nextTick()) because all - * // callbacks passed to .listen() are wrapped in a nextTick(). - * async_hooks.executionAsyncId(); - * }); - * ``` - * - * Promise contexts may not get precise `executionAsyncIds` by default. - * See the section on [promise execution tracking](https://nodejs.org/docs/latest-v24.x/api/async_hooks.html#promise-execution-tracking). - * @since v8.1.0 - * @return The `asyncId` of the current execution context. Useful to track when something calls. - */ - function executionAsyncId(): number; - /** - * Resource objects returned by `executionAsyncResource()` are most often internal - * Node.js handle objects with undocumented APIs. Using any functions or properties - * on the object is likely to crash your application and should be avoided. - * - * Using `executionAsyncResource()` in the top-level execution context will - * return an empty object as there is no handle or request object to use, - * but having an object representing the top-level can be helpful. - * - * ```js - * import { open } from 'node:fs'; - * import { executionAsyncId, executionAsyncResource } from 'node:async_hooks'; - * - * console.log(executionAsyncId(), executionAsyncResource()); // 1 {} - * open(new URL(import.meta.url), 'r', (err, fd) => { - * console.log(executionAsyncId(), executionAsyncResource()); // 7 FSReqWrap - * }); - * ``` - * - * This can be used to implement continuation local storage without the - * use of a tracking `Map` to store the metadata: - * - * ```js - * import { createServer } from 'node:http'; - * import { - * executionAsyncId, - * executionAsyncResource, - * createHook, - * } from 'node:async_hooks'; - * const sym = Symbol('state'); // Private symbol to avoid pollution - * - * createHook({ - * init(asyncId, type, triggerAsyncId, resource) { - * const cr = executionAsyncResource(); - * if (cr) { - * resource[sym] = cr[sym]; - * } - * }, - * }).enable(); - * - * const server = createServer((req, res) => { - * executionAsyncResource()[sym] = { state: req.url }; - * setTimeout(function() { - * res.end(JSON.stringify(executionAsyncResource()[sym])); - * }, 100); - * }).listen(3000); - * ``` - * @since v13.9.0, v12.17.0 - * @return The resource representing the current execution. Useful to store data within the resource. - */ - function executionAsyncResource(): object; - /** - * ```js - * const server = net.createServer((conn) => { - * // The resource that caused (or triggered) this callback to be called - * // was that of the new connection. Thus the return value of triggerAsyncId() - * // is the asyncId of "conn". - * async_hooks.triggerAsyncId(); - * - * }).listen(port, () => { - * // Even though all callbacks passed to .listen() are wrapped in a nextTick() - * // the callback itself exists because the call to the server's .listen() - * // was made. So the return value would be the ID of the server. - * async_hooks.triggerAsyncId(); - * }); - * ``` - * - * Promise contexts may not get valid `triggerAsyncId`s by default. See - * the section on [promise execution tracking](https://nodejs.org/docs/latest-v24.x/api/async_hooks.html#promise-execution-tracking). - * @return The ID of the resource responsible for calling the callback that is currently being executed. - */ - function triggerAsyncId(): number; - interface HookCallbacks { - /** - * Called when a class is constructed that has the possibility to emit an asynchronous event. - * @param asyncId A unique ID for the async resource - * @param type The type of the async resource - * @param triggerAsyncId The unique ID of the async resource in whose execution context this async resource was created - * @param resource Reference to the resource representing the async operation, needs to be released during destroy - */ - init?(asyncId: number, type: string, triggerAsyncId: number, resource: object): void; - /** - * When an asynchronous operation is initiated or completes a callback is called to notify the user. - * The before callback is called just before said callback is executed. - * @param asyncId the unique identifier assigned to the resource about to execute the callback. - */ - before?(asyncId: number): void; - /** - * Called immediately after the callback specified in `before` is completed. - * - * If an uncaught exception occurs during execution of the callback, then `after` will run after the `'uncaughtException'` event is emitted or a `domain`'s handler runs. - * @param asyncId the unique identifier assigned to the resource which has executed the callback. - */ - after?(asyncId: number): void; - /** - * Called when a promise has resolve() called. This may not be in the same execution id - * as the promise itself. - * @param asyncId the unique id for the promise that was resolve()d. - */ - promiseResolve?(asyncId: number): void; - /** - * Called after the resource corresponding to asyncId is destroyed - * @param asyncId a unique ID for the async resource - */ - destroy?(asyncId: number): void; - } - interface AsyncHook { - /** - * Enable the callbacks for a given AsyncHook instance. If no callbacks are provided enabling is a noop. - */ - enable(): this; - /** - * Disable the callbacks for a given AsyncHook instance from the global pool of AsyncHook callbacks to be executed. Once a hook has been disabled it will not be called again until enabled. - */ - disable(): this; - } - /** - * Registers functions to be called for different lifetime events of each async - * operation. - * - * The callbacks `init()`/`before()`/`after()`/`destroy()` are called for the - * respective asynchronous event during a resource's lifetime. - * - * All callbacks are optional. For example, if only resource cleanup needs to - * be tracked, then only the `destroy` callback needs to be passed. The - * specifics of all functions that can be passed to `callbacks` is in the `Hook Callbacks` section. - * - * ```js - * import { createHook } from 'node:async_hooks'; - * - * const asyncHook = createHook({ - * init(asyncId, type, triggerAsyncId, resource) { }, - * destroy(asyncId) { }, - * }); - * ``` - * - * The callbacks will be inherited via the prototype chain: - * - * ```js - * class MyAsyncCallbacks { - * init(asyncId, type, triggerAsyncId, resource) { } - * destroy(asyncId) {} - * } - * - * class MyAddedCallbacks extends MyAsyncCallbacks { - * before(asyncId) { } - * after(asyncId) { } - * } - * - * const asyncHook = async_hooks.createHook(new MyAddedCallbacks()); - * ``` - * - * Because promises are asynchronous resources whose lifecycle is tracked - * via the async hooks mechanism, the `init()`, `before()`, `after()`, and`destroy()` callbacks _must not_ be async functions that return promises. - * @since v8.1.0 - * @param callbacks The `Hook Callbacks` to register - * @return Instance used for disabling and enabling hooks - */ - function createHook(callbacks: HookCallbacks): AsyncHook; - interface AsyncResourceOptions { - /** - * The ID of the execution context that created this async event. - * @default executionAsyncId() - */ - triggerAsyncId?: number | undefined; - /** - * Disables automatic `emitDestroy` when the object is garbage collected. - * This usually does not need to be set (even if `emitDestroy` is called - * manually), unless the resource's `asyncId` is retrieved and the - * sensitive API's `emitDestroy` is called with it. - * @default false - */ - requireManualDestroy?: boolean | undefined; - } - /** - * The class `AsyncResource` is designed to be extended by the embedder's async - * resources. Using this, users can easily trigger the lifetime events of their - * own resources. - * - * The `init` hook will trigger when an `AsyncResource` is instantiated. - * - * The following is an overview of the `AsyncResource` API. - * - * ```js - * import { AsyncResource, executionAsyncId } from 'node:async_hooks'; - * - * // AsyncResource() is meant to be extended. Instantiating a - * // new AsyncResource() also triggers init. If triggerAsyncId is omitted then - * // async_hook.executionAsyncId() is used. - * const asyncResource = new AsyncResource( - * type, { triggerAsyncId: executionAsyncId(), requireManualDestroy: false }, - * ); - * - * // Run a function in the execution context of the resource. This will - * // * establish the context of the resource - * // * trigger the AsyncHooks before callbacks - * // * call the provided function `fn` with the supplied arguments - * // * trigger the AsyncHooks after callbacks - * // * restore the original execution context - * asyncResource.runInAsyncScope(fn, thisArg, ...args); - * - * // Call AsyncHooks destroy callbacks. - * asyncResource.emitDestroy(); - * - * // Return the unique ID assigned to the AsyncResource instance. - * asyncResource.asyncId(); - * - * // Return the trigger ID for the AsyncResource instance. - * asyncResource.triggerAsyncId(); - * ``` - */ - class AsyncResource { - /** - * AsyncResource() is meant to be extended. Instantiating a - * new AsyncResource() also triggers init. If triggerAsyncId is omitted then - * async_hook.executionAsyncId() is used. - * @param type The type of async event. - * @param triggerAsyncId The ID of the execution context that created - * this async event (default: `executionAsyncId()`), or an - * AsyncResourceOptions object (since v9.3.0) - */ - constructor(type: string, triggerAsyncId?: number | AsyncResourceOptions); - /** - * Binds the given function to the current execution context. - * @since v14.8.0, v12.19.0 - * @param fn The function to bind to the current execution context. - * @param type An optional name to associate with the underlying `AsyncResource`. - */ - static bind any, ThisArg>( - fn: Func, - type?: string, - thisArg?: ThisArg, - ): Func; - /** - * Binds the given function to execute to this `AsyncResource`'s scope. - * @since v14.8.0, v12.19.0 - * @param fn The function to bind to the current `AsyncResource`. - */ - bind any>(fn: Func): Func; - /** - * Call the provided function with the provided arguments in the execution context - * of the async resource. This will establish the context, trigger the AsyncHooks - * before callbacks, call the function, trigger the AsyncHooks after callbacks, and - * then restore the original execution context. - * @since v9.6.0 - * @param fn The function to call in the execution context of this async resource. - * @param thisArg The receiver to be used for the function call. - * @param args Optional arguments to pass to the function. - */ - runInAsyncScope( - fn: (this: This, ...args: any[]) => Result, - thisArg?: This, - ...args: any[] - ): Result; - /** - * Call all `destroy` hooks. This should only ever be called once. An error will - * be thrown if it is called more than once. This **must** be manually called. If - * the resource is left to be collected by the GC then the `destroy` hooks will - * never be called. - * @return A reference to `asyncResource`. - */ - emitDestroy(): this; - /** - * @return The unique `asyncId` assigned to the resource. - */ - asyncId(): number; - /** - * @return The same `triggerAsyncId` that is passed to the `AsyncResource` constructor. - */ - triggerAsyncId(): number; - } - interface AsyncLocalStorageOptions { - /** - * The default value to be used when no store is provided. - */ - defaultValue?: any; - /** - * A name for the `AsyncLocalStorage` value. - */ - name?: string | undefined; - } - /** - * This class creates stores that stay coherent through asynchronous operations. - * - * While you can create your own implementation on top of the `node:async_hooks` module, `AsyncLocalStorage` should be preferred as it is a performant and memory - * safe implementation that involves significant optimizations that are non-obvious - * to implement. - * - * The following example uses `AsyncLocalStorage` to build a simple logger - * that assigns IDs to incoming HTTP requests and includes them in messages - * logged within each request. - * - * ```js - * import http from 'node:http'; - * import { AsyncLocalStorage } from 'node:async_hooks'; - * - * const asyncLocalStorage = new AsyncLocalStorage(); - * - * function logWithId(msg) { - * const id = asyncLocalStorage.getStore(); - * console.log(`${id !== undefined ? id : '-'}:`, msg); - * } - * - * let idSeq = 0; - * http.createServer((req, res) => { - * asyncLocalStorage.run(idSeq++, () => { - * logWithId('start'); - * // Imagine any chain of async operations here - * setImmediate(() => { - * logWithId('finish'); - * res.end(); - * }); - * }); - * }).listen(8080); - * - * http.get('http://localhost:8080'); - * http.get('http://localhost:8080'); - * // Prints: - * // 0: start - * // 0: finish - * // 1: start - * // 1: finish - * ``` - * - * Each instance of `AsyncLocalStorage` maintains an independent storage context. - * Multiple instances can safely exist simultaneously without risk of interfering - * with each other's data. - * @since v13.10.0, v12.17.0 - */ - class AsyncLocalStorage { - /** - * Creates a new instance of `AsyncLocalStorage`. Store is only provided within a - * `run()` call or after an `enterWith()` call. - */ - constructor(options?: AsyncLocalStorageOptions); - /** - * Binds the given function to the current execution context. - * @since v19.8.0 - * @param fn The function to bind to the current execution context. - * @return A new function that calls `fn` within the captured execution context. - */ - static bind any>(fn: Func): Func; - /** - * Captures the current execution context and returns a function that accepts a - * function as an argument. Whenever the returned function is called, it - * calls the function passed to it within the captured context. - * - * ```js - * const asyncLocalStorage = new AsyncLocalStorage(); - * const runInAsyncScope = asyncLocalStorage.run(123, () => AsyncLocalStorage.snapshot()); - * const result = asyncLocalStorage.run(321, () => runInAsyncScope(() => asyncLocalStorage.getStore())); - * console.log(result); // returns 123 - * ``` - * - * AsyncLocalStorage.snapshot() can replace the use of AsyncResource for simple - * async context tracking purposes, for example: - * - * ```js - * class Foo { - * #runInAsyncScope = AsyncLocalStorage.snapshot(); - * - * get() { return this.#runInAsyncScope(() => asyncLocalStorage.getStore()); } - * } - * - * const foo = asyncLocalStorage.run(123, () => new Foo()); - * console.log(asyncLocalStorage.run(321, () => foo.get())); // returns 123 - * ``` - * @since v19.8.0 - * @return A new function with the signature `(fn: (...args) : R, ...args) : R`. - */ - static snapshot(): (fn: (...args: TArgs) => R, ...args: TArgs) => R; - /** - * Disables the instance of `AsyncLocalStorage`. All subsequent calls - * to `asyncLocalStorage.getStore()` will return `undefined` until `asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()` is called again. - * - * When calling `asyncLocalStorage.disable()`, all current contexts linked to the - * instance will be exited. - * - * Calling `asyncLocalStorage.disable()` is required before the `asyncLocalStorage` can be garbage collected. This does not apply to stores - * provided by the `asyncLocalStorage`, as those objects are garbage collected - * along with the corresponding async resources. - * - * Use this method when the `asyncLocalStorage` is not in use anymore - * in the current process. - * @since v13.10.0, v12.17.0 - * @experimental - */ - disable(): void; - /** - * Returns the current store. - * If called outside of an asynchronous context initialized by - * calling `asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()`, it - * returns `undefined`. - * @since v13.10.0, v12.17.0 - */ - getStore(): T | undefined; - /** - * The name of the `AsyncLocalStorage` instance if provided. - * @since v24.0.0 - */ - readonly name: string; - /** - * Runs a function synchronously within a context and returns its - * return value. The store is not accessible outside of the callback function. - * The store is accessible to any asynchronous operations created within the - * callback. - * - * The optional `args` are passed to the callback function. - * - * If the callback function throws an error, the error is thrown by `run()` too. - * The stacktrace is not impacted by this call and the context is exited. - * - * Example: - * - * ```js - * const store = { id: 2 }; - * try { - * asyncLocalStorage.run(store, () => { - * asyncLocalStorage.getStore(); // Returns the store object - * setTimeout(() => { - * asyncLocalStorage.getStore(); // Returns the store object - * }, 200); - * throw new Error(); - * }); - * } catch (e) { - * asyncLocalStorage.getStore(); // Returns undefined - * // The error will be caught here - * } - * ``` - * @since v13.10.0, v12.17.0 - */ - run(store: T, callback: () => R): R; - run(store: T, callback: (...args: TArgs) => R, ...args: TArgs): R; - /** - * Runs a function synchronously outside of a context and returns its - * return value. The store is not accessible within the callback function or - * the asynchronous operations created within the callback. Any `getStore()` call done within the callback function will always return `undefined`. - * - * The optional `args` are passed to the callback function. - * - * If the callback function throws an error, the error is thrown by `exit()` too. - * The stacktrace is not impacted by this call and the context is re-entered. - * - * Example: - * - * ```js - * // Within a call to run - * try { - * asyncLocalStorage.getStore(); // Returns the store object or value - * asyncLocalStorage.exit(() => { - * asyncLocalStorage.getStore(); // Returns undefined - * throw new Error(); - * }); - * } catch (e) { - * asyncLocalStorage.getStore(); // Returns the same object or value - * // The error will be caught here - * } - * ``` - * @since v13.10.0, v12.17.0 - * @experimental - */ - exit(callback: (...args: TArgs) => R, ...args: TArgs): R; - /** - * Transitions into the context for the remainder of the current - * synchronous execution and then persists the store through any following - * asynchronous calls. - * - * Example: - * - * ```js - * const store = { id: 1 }; - * // Replaces previous store with the given store object - * asyncLocalStorage.enterWith(store); - * asyncLocalStorage.getStore(); // Returns the store object - * someAsyncOperation(() => { - * asyncLocalStorage.getStore(); // Returns the same object - * }); - * ``` - * - * This transition will continue for the _entire_ synchronous execution. - * This means that if, for example, the context is entered within an event - * handler subsequent event handlers will also run within that context unless - * specifically bound to another context with an `AsyncResource`. That is why `run()` should be preferred over `enterWith()` unless there are strong reasons - * to use the latter method. - * - * ```js - * const store = { id: 1 }; - * - * emitter.on('my-event', () => { - * asyncLocalStorage.enterWith(store); - * }); - * emitter.on('my-event', () => { - * asyncLocalStorage.getStore(); // Returns the same object - * }); - * - * asyncLocalStorage.getStore(); // Returns undefined - * emitter.emit('my-event'); - * asyncLocalStorage.getStore(); // Returns the same object - * ``` - * @since v13.11.0, v12.17.0 - * @experimental - */ - enterWith(store: T): void; - } - /** - * @since v17.2.0, v16.14.0 - * @return A map of provider types to the corresponding numeric id. - * This map contains all the event types that might be emitted by the `async_hooks.init()` event. - */ - namespace asyncWrapProviders { - const NONE: number; - const DIRHANDLE: number; - const DNSCHANNEL: number; - const ELDHISTOGRAM: number; - const FILEHANDLE: number; - const FILEHANDLECLOSEREQ: number; - const FIXEDSIZEBLOBCOPY: number; - const FSEVENTWRAP: number; - const FSREQCALLBACK: number; - const FSREQPROMISE: number; - const GETADDRINFOREQWRAP: number; - const GETNAMEINFOREQWRAP: number; - const HEAPSNAPSHOT: number; - const HTTP2SESSION: number; - const HTTP2STREAM: number; - const HTTP2PING: number; - const HTTP2SETTINGS: number; - const HTTPINCOMINGMESSAGE: number; - const HTTPCLIENTREQUEST: number; - const JSSTREAM: number; - const JSUDPWRAP: number; - const MESSAGEPORT: number; - const PIPECONNECTWRAP: number; - const PIPESERVERWRAP: number; - const PIPEWRAP: number; - const PROCESSWRAP: number; - const PROMISE: number; - const QUERYWRAP: number; - const SHUTDOWNWRAP: number; - const SIGNALWRAP: number; - const STATWATCHER: number; - const STREAMPIPE: number; - const TCPCONNECTWRAP: number; - const TCPSERVERWRAP: number; - const TCPWRAP: number; - const TTYWRAP: number; - const UDPSENDWRAP: number; - const UDPWRAP: number; - const SIGINTWATCHDOG: number; - const WORKER: number; - const WORKERHEAPSNAPSHOT: number; - const WRITEWRAP: number; - const ZLIB: number; - const CHECKPRIMEREQUEST: number; - const PBKDF2REQUEST: number; - const KEYPAIRGENREQUEST: number; - const KEYGENREQUEST: number; - const KEYEXPORTREQUEST: number; - const CIPHERREQUEST: number; - const DERIVEBITSREQUEST: number; - const HASHREQUEST: number; - const RANDOMBYTESREQUEST: number; - const RANDOMPRIMEREQUEST: number; - const SCRYPTREQUEST: number; - const SIGNREQUEST: number; - const TLSWRAP: number; - const VERIFYREQUEST: number; - } -} -declare module "node:async_hooks" { - export * from "async_hooks"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/buffer.buffer.d.ts b/build_vtk_bundle/node_modules/@types/node/buffer.buffer.d.ts deleted file mode 100644 index 8823deeb..00000000 --- a/build_vtk_bundle/node_modules/@types/node/buffer.buffer.d.ts +++ /dev/null @@ -1,472 +0,0 @@ -declare module "buffer" { - type ImplicitArrayBuffer> = T extends - { valueOf(): infer V extends ArrayBufferLike } ? V : T; - global { - interface BufferConstructor { - // see buffer.d.ts for implementation shared with all TypeScript versions - - /** - * Allocates a new buffer containing the given {str}. - * - * @param str String to store in buffer. - * @param encoding encoding to use, optional. Default is 'utf8' - * @deprecated since v10.0.0 - Use `Buffer.from(string[, encoding])` instead. - */ - new(str: string, encoding?: BufferEncoding): Buffer; - /** - * Allocates a new buffer of {size} octets. - * - * @param size count of octets to allocate. - * @deprecated since v10.0.0 - Use `Buffer.alloc()` instead (also see `Buffer.allocUnsafe()`). - */ - new(size: number): Buffer; - /** - * Allocates a new buffer containing the given {array} of octets. - * - * @param array The octets to store. - * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead. - */ - new(array: ArrayLike): Buffer; - /** - * Produces a Buffer backed by the same allocated memory as - * the given {ArrayBuffer}/{SharedArrayBuffer}. - * - * @param arrayBuffer The ArrayBuffer with which to share memory. - * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead. - */ - new(arrayBuffer: TArrayBuffer): Buffer; - /** - * Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`. - * Array entries outside that range will be truncated to fit into it. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Creates a new Buffer containing the UTF-8 bytes of the string 'buffer'. - * const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]); - * ``` - * - * If `array` is an `Array`-like object (that is, one with a `length` property of - * type `number`), it is treated as if it is an array, unless it is a `Buffer` or - * a `Uint8Array`. This means all other `TypedArray` variants get treated as an - * `Array`. To create a `Buffer` from the bytes backing a `TypedArray`, use - * `Buffer.copyBytesFrom()`. - * - * A `TypeError` will be thrown if `array` is not an `Array` or another type - * appropriate for `Buffer.from()` variants. - * - * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal - * `Buffer` pool like `Buffer.allocUnsafe()` does. - * @since v5.10.0 - */ - from(array: WithImplicitCoercion>): Buffer; - /** - * This creates a view of the `ArrayBuffer` without copying the underlying - * memory. For example, when passed a reference to the `.buffer` property of a - * `TypedArray` instance, the newly created `Buffer` will share the same - * allocated memory as the `TypedArray`'s underlying `ArrayBuffer`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const arr = new Uint16Array(2); - * - * arr[0] = 5000; - * arr[1] = 4000; - * - * // Shares memory with `arr`. - * const buf = Buffer.from(arr.buffer); - * - * console.log(buf); - * // Prints: - * - * // Changing the original Uint16Array changes the Buffer also. - * arr[1] = 6000; - * - * console.log(buf); - * // Prints: - * ``` - * - * The optional `byteOffset` and `length` arguments specify a memory range within - * the `arrayBuffer` that will be shared by the `Buffer`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const ab = new ArrayBuffer(10); - * const buf = Buffer.from(ab, 0, 2); - * - * console.log(buf.length); - * // Prints: 2 - * ``` - * - * A `TypeError` will be thrown if `arrayBuffer` is not an `ArrayBuffer` or a - * `SharedArrayBuffer` or another type appropriate for `Buffer.from()` - * variants. - * - * It is important to remember that a backing `ArrayBuffer` can cover a range - * of memory that extends beyond the bounds of a `TypedArray` view. A new - * `Buffer` created using the `buffer` property of a `TypedArray` may extend - * beyond the range of the `TypedArray`: - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const arrA = Uint8Array.from([0x63, 0x64, 0x65, 0x66]); // 4 elements - * const arrB = new Uint8Array(arrA.buffer, 1, 2); // 2 elements - * console.log(arrA.buffer === arrB.buffer); // true - * - * const buf = Buffer.from(arrB.buffer); - * console.log(buf); - * // Prints: - * ``` - * @since v5.10.0 - * @param arrayBuffer An `ArrayBuffer`, `SharedArrayBuffer`, for example the - * `.buffer` property of a `TypedArray`. - * @param byteOffset Index of first byte to expose. **Default:** `0`. - * @param length Number of bytes to expose. **Default:** - * `arrayBuffer.byteLength - byteOffset`. - */ - from>( - arrayBuffer: TArrayBuffer, - byteOffset?: number, - length?: number, - ): Buffer>; - /** - * Creates a new `Buffer` containing `string`. The `encoding` parameter identifies - * the character encoding to be used when converting `string` into bytes. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from('this is a tést'); - * const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex'); - * - * console.log(buf1.toString()); - * // Prints: this is a tést - * console.log(buf2.toString()); - * // Prints: this is a tést - * console.log(buf1.toString('latin1')); - * // Prints: this is a tést - * ``` - * - * A `TypeError` will be thrown if `string` is not a string or another type - * appropriate for `Buffer.from()` variants. - * - * `Buffer.from(string)` may also use the internal `Buffer` pool like - * `Buffer.allocUnsafe()` does. - * @since v5.10.0 - * @param string A string to encode. - * @param encoding The encoding of `string`. **Default:** `'utf8'`. - */ - from(string: WithImplicitCoercion, encoding?: BufferEncoding): Buffer; - from(arrayOrString: WithImplicitCoercion | string>): Buffer; - /** - * Creates a new Buffer using the passed {data} - * @param values to create a new Buffer - */ - of(...items: number[]): Buffer; - /** - * Returns a new `Buffer` which is the result of concatenating all the `Buffer` instances in the `list` together. - * - * If the list has no items, or if the `totalLength` is 0, then a new zero-length `Buffer` is returned. - * - * If `totalLength` is not provided, it is calculated from the `Buffer` instances - * in `list` by adding their lengths. - * - * If `totalLength` is provided, it is coerced to an unsigned integer. If the - * combined length of the `Buffer`s in `list` exceeds `totalLength`, the result is - * truncated to `totalLength`. If the combined length of the `Buffer`s in `list` is - * less than `totalLength`, the remaining space is filled with zeros. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Create a single `Buffer` from a list of three `Buffer` instances. - * - * const buf1 = Buffer.alloc(10); - * const buf2 = Buffer.alloc(14); - * const buf3 = Buffer.alloc(18); - * const totalLength = buf1.length + buf2.length + buf3.length; - * - * console.log(totalLength); - * // Prints: 42 - * - * const bufA = Buffer.concat([buf1, buf2, buf3], totalLength); - * - * console.log(bufA); - * // Prints: - * console.log(bufA.length); - * // Prints: 42 - * ``` - * - * `Buffer.concat()` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does. - * @since v0.7.11 - * @param list List of `Buffer` or {@link Uint8Array} instances to concatenate. - * @param totalLength Total length of the `Buffer` instances in `list` when concatenated. - */ - concat(list: readonly Uint8Array[], totalLength?: number): Buffer; - /** - * Copies the underlying memory of `view` into a new `Buffer`. - * - * ```js - * const u16 = new Uint16Array([0, 0xffff]); - * const buf = Buffer.copyBytesFrom(u16, 1, 1); - * u16[1] = 0; - * console.log(buf.length); // 2 - * console.log(buf[0]); // 255 - * console.log(buf[1]); // 255 - * ``` - * @since v19.8.0 - * @param view The {TypedArray} to copy. - * @param [offset=0] The starting offset within `view`. - * @param [length=view.length - offset] The number of elements from `view` to copy. - */ - copyBytesFrom(view: NodeJS.TypedArray, offset?: number, length?: number): Buffer; - /** - * Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(5); - * - * console.log(buf); - * // Prints: - * ``` - * - * If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. - * - * If `fill` is specified, the allocated `Buffer` will be initialized by calling `buf.fill(fill)`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(5, 'a'); - * - * console.log(buf); - * // Prints: - * ``` - * - * If both `fill` and `encoding` are specified, the allocated `Buffer` will be - * initialized by calling `buf.fill(fill, encoding)`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64'); - * - * console.log(buf); - * // Prints: - * ``` - * - * Calling `Buffer.alloc()` can be measurably slower than the alternative `Buffer.allocUnsafe()` but ensures that the newly created `Buffer` instance - * contents will never contain sensitive data from previous allocations, including - * data that might not have been allocated for `Buffer`s. - * - * A `TypeError` will be thrown if `size` is not a number. - * @since v5.10.0 - * @param size The desired length of the new `Buffer`. - * @param [fill=0] A value to pre-fill the new `Buffer` with. - * @param [encoding='utf8'] If `fill` is a string, this is its encoding. - */ - alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer; - /** - * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. - * - * The underlying memory for `Buffer` instances created in this way is _not_ - * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(10); - * - * console.log(buf); - * // Prints (contents may vary): - * - * buf.fill(0); - * - * console.log(buf); - * // Prints: - * ``` - * - * A `TypeError` will be thrown if `size` is not a number. - * - * The `Buffer` module pre-allocates an internal `Buffer` instance of - * size `Buffer.poolSize` that is used as a pool for the fast allocation of new `Buffer` instances created using `Buffer.allocUnsafe()`, `Buffer.from(array)`, - * and `Buffer.concat()` only when `size` is less than `Buffer.poolSize >>> 1` (floor of `Buffer.poolSize` divided by two). - * - * Use of this pre-allocated internal memory pool is a key difference between - * calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`. - * Specifically, `Buffer.alloc(size, fill)` will _never_ use the internal `Buffer`pool, while `Buffer.allocUnsafe(size).fill(fill)`_will_ use the internal`Buffer` pool if `size` is less - * than or equal to half `Buffer.poolSize`. The - * difference is subtle but can be important when an application requires the - * additional performance that `Buffer.allocUnsafe()` provides. - * @since v5.10.0 - * @param size The desired length of the new `Buffer`. - */ - allocUnsafe(size: number): Buffer; - /** - * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. A zero-length `Buffer` is created if - * `size` is 0. - * - * The underlying memory for `Buffer` instances created in this way is _not_ - * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `buf.fill(0)` to initialize - * such `Buffer` instances with zeroes. - * - * When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances, - * allocations under 4 KiB are sliced from a single pre-allocated `Buffer`. This - * allows applications to avoid the garbage collection overhead of creating many - * individually allocated `Buffer` instances. This approach improves both - * performance and memory usage by eliminating the need to track and clean up as - * many individual `ArrayBuffer` objects. - * - * However, in the case where a developer may need to retain a small chunk of - * memory from a pool for an indeterminate amount of time, it may be appropriate - * to create an un-pooled `Buffer` instance using `Buffer.allocUnsafeSlow()` and - * then copying out the relevant bits. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Need to keep around a few small chunks of memory. - * const store = []; - * - * socket.on('readable', () => { - * let data; - * while (null !== (data = readable.read())) { - * // Allocate for retained data. - * const sb = Buffer.allocUnsafeSlow(10); - * - * // Copy the data into the new allocation. - * data.copy(sb, 0, 0, 10); - * - * store.push(sb); - * } - * }); - * ``` - * - * A `TypeError` will be thrown if `size` is not a number. - * @since v5.12.0 - * @param size The desired length of the new `Buffer`. - */ - allocUnsafeSlow(size: number): Buffer; - } - interface Buffer extends Uint8Array { - // see buffer.d.ts for implementation shared with all TypeScript versions - - /** - * Returns a new `Buffer` that references the same memory as the original, but - * offset and cropped by the `start` and `end` indices. - * - * This method is not compatible with the `Uint8Array.prototype.slice()`, - * which is a superclass of `Buffer`. To copy the slice, use`Uint8Array.prototype.slice()`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('buffer'); - * - * const copiedBuf = Uint8Array.prototype.slice.call(buf); - * copiedBuf[0]++; - * console.log(copiedBuf.toString()); - * // Prints: cuffer - * - * console.log(buf.toString()); - * // Prints: buffer - * - * // With buf.slice(), the original buffer is modified. - * const notReallyCopiedBuf = buf.slice(); - * notReallyCopiedBuf[0]++; - * console.log(notReallyCopiedBuf.toString()); - * // Prints: cuffer - * console.log(buf.toString()); - * // Also prints: cuffer (!) - * ``` - * @since v0.3.0 - * @deprecated Use `subarray` instead. - * @param [start=0] Where the new `Buffer` will start. - * @param [end=buf.length] Where the new `Buffer` will end (not inclusive). - */ - slice(start?: number, end?: number): Buffer; - /** - * Returns a new `Buffer` that references the same memory as the original, but - * offset and cropped by the `start` and `end` indices. - * - * Specifying `end` greater than `buf.length` will return the same result as - * that of `end` equal to `buf.length`. - * - * This method is inherited from [`TypedArray.prototype.subarray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray). - * - * Modifying the new `Buffer` slice will modify the memory in the original `Buffer`because the allocated memory of the two objects overlap. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Create a `Buffer` with the ASCII alphabet, take a slice, and modify one byte - * // from the original `Buffer`. - * - * const buf1 = Buffer.allocUnsafe(26); - * - * for (let i = 0; i < 26; i++) { - * // 97 is the decimal ASCII value for 'a'. - * buf1[i] = i + 97; - * } - * - * const buf2 = buf1.subarray(0, 3); - * - * console.log(buf2.toString('ascii', 0, buf2.length)); - * // Prints: abc - * - * buf1[0] = 33; - * - * console.log(buf2.toString('ascii', 0, buf2.length)); - * // Prints: !bc - * ``` - * - * Specifying negative indexes causes the slice to be generated relative to the - * end of `buf` rather than the beginning. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('buffer'); - * - * console.log(buf.subarray(-6, -1).toString()); - * // Prints: buffe - * // (Equivalent to buf.subarray(0, 5).) - * - * console.log(buf.subarray(-6, -2).toString()); - * // Prints: buff - * // (Equivalent to buf.subarray(0, 4).) - * - * console.log(buf.subarray(-5, -2).toString()); - * // Prints: uff - * // (Equivalent to buf.subarray(1, 4).) - * ``` - * @since v3.0.0 - * @param [start=0] Where the new `Buffer` will start. - * @param [end=buf.length] Where the new `Buffer` will end (not inclusive). - */ - subarray(start?: number, end?: number): Buffer; - } - // TODO: remove globals in future version - /** - * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports - * TypeScript versions earlier than 5.7. - */ - type NonSharedBuffer = Buffer; - /** - * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports - * TypeScript versions earlier than 5.7. - */ - type AllowSharedBuffer = Buffer; - } - /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */ - var SlowBuffer: { - /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */ - new(size: number): Buffer; - prototype: Buffer; - }; -} diff --git a/build_vtk_bundle/node_modules/@types/node/buffer.d.ts b/build_vtk_bundle/node_modules/@types/node/buffer.d.ts deleted file mode 100644 index 9a62ccf9..00000000 --- a/build_vtk_bundle/node_modules/@types/node/buffer.d.ts +++ /dev/null @@ -1,1934 +0,0 @@ -// If lib.dom.d.ts or lib.webworker.d.ts is loaded, then use the global types. -// Otherwise, use the types from node. -type _Blob = typeof globalThis extends { onmessage: any; Blob: any } ? {} : import("buffer").Blob; -type _File = typeof globalThis extends { onmessage: any; File: any } ? {} : import("buffer").File; - -/** - * `Buffer` objects are used to represent a fixed-length sequence of bytes. Many - * Node.js APIs support `Buffer`s. - * - * The `Buffer` class is a subclass of JavaScript's [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) class and - * extends it with methods that cover additional use cases. Node.js APIs accept - * plain [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) s wherever `Buffer`s are supported as well. - * - * While the `Buffer` class is available within the global scope, it is still - * recommended to explicitly reference it via an import or require statement. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Creates a zero-filled Buffer of length 10. - * const buf1 = Buffer.alloc(10); - * - * // Creates a Buffer of length 10, - * // filled with bytes which all have the value `1`. - * const buf2 = Buffer.alloc(10, 1); - * - * // Creates an uninitialized buffer of length 10. - * // This is faster than calling Buffer.alloc() but the returned - * // Buffer instance might contain old data that needs to be - * // overwritten using fill(), write(), or other functions that fill the Buffer's - * // contents. - * const buf3 = Buffer.allocUnsafe(10); - * - * // Creates a Buffer containing the bytes [1, 2, 3]. - * const buf4 = Buffer.from([1, 2, 3]); - * - * // Creates a Buffer containing the bytes [1, 1, 1, 1] – the entries - * // are all truncated using `(value & 255)` to fit into the range 0–255. - * const buf5 = Buffer.from([257, 257.5, -255, '1']); - * - * // Creates a Buffer containing the UTF-8-encoded bytes for the string 'tést': - * // [0x74, 0xc3, 0xa9, 0x73, 0x74] (in hexadecimal notation) - * // [116, 195, 169, 115, 116] (in decimal notation) - * const buf6 = Buffer.from('tést'); - * - * // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74]. - * const buf7 = Buffer.from('tést', 'latin1'); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/buffer.js) - */ -declare module "buffer" { - import { BinaryLike } from "node:crypto"; - import { ReadableStream as WebReadableStream } from "node:stream/web"; - /** - * This function returns `true` if `input` contains only valid UTF-8-encoded data, - * including the case in which `input` is empty. - * - * Throws if the `input` is a detached array buffer. - * @since v19.4.0, v18.14.0 - * @param input The input to validate. - */ - export function isUtf8(input: ArrayBuffer | NodeJS.TypedArray): boolean; - /** - * This function returns `true` if `input` contains only valid ASCII-encoded data, - * including the case in which `input` is empty. - * - * Throws if the `input` is a detached array buffer. - * @since v19.6.0, v18.15.0 - * @param input The input to validate. - */ - export function isAscii(input: ArrayBuffer | NodeJS.TypedArray): boolean; - export let INSPECT_MAX_BYTES: number; - export const kMaxLength: number; - export const kStringMaxLength: number; - export const constants: { - MAX_LENGTH: number; - MAX_STRING_LENGTH: number; - }; - export type TranscodeEncoding = - | "ascii" - | "utf8" - | "utf-8" - | "utf16le" - | "utf-16le" - | "ucs2" - | "ucs-2" - | "latin1" - | "binary"; - /** - * Re-encodes the given `Buffer` or `Uint8Array` instance from one character - * encoding to another. Returns a new `Buffer` instance. - * - * Throws if the `fromEnc` or `toEnc` specify invalid character encodings or if - * conversion from `fromEnc` to `toEnc` is not permitted. - * - * Encodings supported by `buffer.transcode()` are: `'ascii'`, `'utf8'`, `'utf16le'`, `'ucs2'`, `'latin1'`, and `'binary'`. - * - * The transcoding process will use substitution characters if a given byte - * sequence cannot be adequately represented in the target encoding. For instance: - * - * ```js - * import { Buffer, transcode } from 'node:buffer'; - * - * const newBuf = transcode(Buffer.from('€'), 'utf8', 'ascii'); - * console.log(newBuf.toString('ascii')); - * // Prints: '?' - * ``` - * - * Because the Euro (`€`) sign is not representable in US-ASCII, it is replaced - * with `?` in the transcoded `Buffer`. - * @since v7.1.0 - * @param source A `Buffer` or `Uint8Array` instance. - * @param fromEnc The current encoding. - * @param toEnc To target encoding. - */ - export function transcode( - source: Uint8Array, - fromEnc: TranscodeEncoding, - toEnc: TranscodeEncoding, - ): NonSharedBuffer; - /** - * Resolves a `'blob:nodedata:...'` an associated `Blob` object registered using - * a prior call to `URL.createObjectURL()`. - * @since v16.7.0 - * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`. - */ - export function resolveObjectURL(id: string): Blob | undefined; - export { type AllowSharedBuffer, Buffer, type NonSharedBuffer }; - /** - * @experimental - */ - export interface BlobOptions { - /** - * One of either `'transparent'` or `'native'`. When set to `'native'`, line endings in string source parts - * will be converted to the platform native line-ending as specified by `import { EOL } from 'node:os'`. - */ - endings?: "transparent" | "native"; - /** - * The Blob content-type. The intent is for `type` to convey - * the MIME media type of the data, however no validation of the type format - * is performed. - */ - type?: string | undefined; - } - /** - * A `Blob` encapsulates immutable, raw data that can be safely shared across - * multiple worker threads. - * @since v15.7.0, v14.18.0 - */ - export class Blob { - /** - * The total size of the `Blob` in bytes. - * @since v15.7.0, v14.18.0 - */ - readonly size: number; - /** - * The content-type of the `Blob`. - * @since v15.7.0, v14.18.0 - */ - readonly type: string; - /** - * Creates a new `Blob` object containing a concatenation of the given sources. - * - * {ArrayBuffer}, {TypedArray}, {DataView}, and {Buffer} sources are copied into - * the 'Blob' and can therefore be safely modified after the 'Blob' is created. - * - * String sources are also copied into the `Blob`. - */ - constructor(sources: Array, options?: BlobOptions); - /** - * Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of - * the `Blob` data. - * @since v15.7.0, v14.18.0 - */ - arrayBuffer(): Promise; - /** - * The `blob.bytes()` method returns the byte of the `Blob` object as a `Promise`. - * - * ```js - * const blob = new Blob(['hello']); - * blob.bytes().then((bytes) => { - * console.log(bytes); // Outputs: Uint8Array(5) [ 104, 101, 108, 108, 111 ] - * }); - * ``` - */ - bytes(): Promise; - /** - * Creates and returns a new `Blob` containing a subset of this `Blob` objects - * data. The original `Blob` is not altered. - * @since v15.7.0, v14.18.0 - * @param start The starting index. - * @param end The ending index. - * @param type The content-type for the new `Blob` - */ - slice(start?: number, end?: number, type?: string): Blob; - /** - * Returns a promise that fulfills with the contents of the `Blob` decoded as a - * UTF-8 string. - * @since v15.7.0, v14.18.0 - */ - text(): Promise; - /** - * Returns a new `ReadableStream` that allows the content of the `Blob` to be read. - * @since v16.7.0 - */ - stream(): WebReadableStream; - } - export interface FileOptions { - /** - * One of either `'transparent'` or `'native'`. When set to `'native'`, line endings in string source parts will be - * converted to the platform native line-ending as specified by `import { EOL } from 'node:os'`. - */ - endings?: "native" | "transparent"; - /** The File content-type. */ - type?: string; - /** The last modified date of the file. `Default`: Date.now(). */ - lastModified?: number; - } - /** - * A [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) provides information about files. - * @since v19.2.0, v18.13.0 - */ - export class File extends Blob { - constructor(sources: Array, fileName: string, options?: FileOptions); - /** - * The name of the `File`. - * @since v19.2.0, v18.13.0 - */ - readonly name: string; - /** - * The last modified date of the `File`. - * @since v19.2.0, v18.13.0 - */ - readonly lastModified: number; - } - export import atob = globalThis.atob; - export import btoa = globalThis.btoa; - export type WithImplicitCoercion = - | T - | { valueOf(): T } - | (T extends string ? { [Symbol.toPrimitive](hint: "string"): T } : never); - global { - namespace NodeJS { - export { BufferEncoding }; - } - // Buffer class - type BufferEncoding = - | "ascii" - | "utf8" - | "utf-8" - | "utf16le" - | "utf-16le" - | "ucs2" - | "ucs-2" - | "base64" - | "base64url" - | "latin1" - | "binary" - | "hex"; - /** - * Raw data is stored in instances of the Buffer class. - * A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized. - * Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex' - */ - interface BufferConstructor { - // see buffer.buffer.d.ts for implementation specific to TypeScript 5.7 and later - // see ts5.6/buffer.buffer.d.ts for implementation specific to TypeScript 5.6 and earlier - - /** - * Returns `true` if `obj` is a `Buffer`, `false` otherwise. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * Buffer.isBuffer(Buffer.alloc(10)); // true - * Buffer.isBuffer(Buffer.from('foo')); // true - * Buffer.isBuffer('a string'); // false - * Buffer.isBuffer([]); // false - * Buffer.isBuffer(new Uint8Array(1024)); // false - * ``` - * @since v0.1.101 - */ - isBuffer(obj: any): obj is Buffer; - /** - * Returns `true` if `encoding` is the name of a supported character encoding, - * or `false` otherwise. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * console.log(Buffer.isEncoding('utf8')); - * // Prints: true - * - * console.log(Buffer.isEncoding('hex')); - * // Prints: true - * - * console.log(Buffer.isEncoding('utf/8')); - * // Prints: false - * - * console.log(Buffer.isEncoding('')); - * // Prints: false - * ``` - * @since v0.9.1 - * @param encoding A character encoding name to check. - */ - isEncoding(encoding: string): encoding is BufferEncoding; - /** - * Returns the byte length of a string when encoded using `encoding`. - * This is not the same as [`String.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length), which does not account - * for the encoding that is used to convert the string into bytes. - * - * For `'base64'`, `'base64url'`, and `'hex'`, this function assumes valid input. - * For strings that contain non-base64/hex-encoded data (e.g. whitespace), the - * return value might be greater than the length of a `Buffer` created from the - * string. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const str = '\u00bd + \u00bc = \u00be'; - * - * console.log(`${str}: ${str.length} characters, ` + - * `${Buffer.byteLength(str, 'utf8')} bytes`); - * // Prints: ½ + ¼ = ¾: 9 characters, 12 bytes - * ``` - * - * When `string` is a - * `Buffer`/[`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView)/[`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/- - * Reference/Global_Objects/TypedArray)/[`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)/[`SharedArrayBuffer`](https://develop- - * er.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer), the byte length as reported by `.byteLength`is returned. - * @since v0.1.90 - * @param string A value to calculate the length of. - * @param [encoding='utf8'] If `string` is a string, this is its encoding. - * @return The number of bytes contained within `string`. - */ - byteLength( - string: string | NodeJS.ArrayBufferView | ArrayBufferLike, - encoding?: BufferEncoding, - ): number; - /** - * Compares `buf1` to `buf2`, typically for the purpose of sorting arrays of `Buffer` instances. This is equivalent to calling `buf1.compare(buf2)`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from('1234'); - * const buf2 = Buffer.from('0123'); - * const arr = [buf1, buf2]; - * - * console.log(arr.sort(Buffer.compare)); - * // Prints: [ , ] - * // (This result is equal to: [buf2, buf1].) - * ``` - * @since v0.11.13 - * @return Either `-1`, `0`, or `1`, depending on the result of the comparison. See `compare` for details. - */ - compare(buf1: Uint8Array, buf2: Uint8Array): -1 | 0 | 1; - /** - * This is the size (in bytes) of pre-allocated internal `Buffer` instances used - * for pooling. This value may be modified. - * @since v0.11.3 - */ - poolSize: number; - } - interface Buffer { - // see buffer.buffer.d.ts for implementation specific to TypeScript 5.7 and later - // see ts5.6/buffer.buffer.d.ts for implementation specific to TypeScript 5.6 and earlier - - /** - * Writes `string` to `buf` at `offset` according to the character encoding in`encoding`. The `length` parameter is the number of bytes to write. If `buf` did - * not contain enough space to fit the entire string, only part of `string` will be - * written. However, partially encoded characters will not be written. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(256); - * - * const len = buf.write('\u00bd + \u00bc = \u00be', 0); - * - * console.log(`${len} bytes: ${buf.toString('utf8', 0, len)}`); - * // Prints: 12 bytes: ½ + ¼ = ¾ - * - * const buffer = Buffer.alloc(10); - * - * const length = buffer.write('abcd', 8); - * - * console.log(`${length} bytes: ${buffer.toString('utf8', 8, 10)}`); - * // Prints: 2 bytes : ab - * ``` - * @since v0.1.90 - * @param string String to write to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write `string`. - * @param [length=buf.length - offset] Maximum number of bytes to write (written bytes will not exceed `buf.length - offset`). - * @param [encoding='utf8'] The character encoding of `string`. - * @return Number of bytes written. - */ - write(string: string, encoding?: BufferEncoding): number; - write(string: string, offset: number, encoding?: BufferEncoding): number; - write(string: string, offset: number, length: number, encoding?: BufferEncoding): number; - /** - * Decodes `buf` to a string according to the specified character encoding in`encoding`. `start` and `end` may be passed to decode only a subset of `buf`. - * - * If `encoding` is `'utf8'` and a byte sequence in the input is not valid UTF-8, - * then each invalid byte is replaced with the replacement character `U+FFFD`. - * - * The maximum length of a string instance (in UTF-16 code units) is available - * as {@link constants.MAX_STRING_LENGTH}. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.allocUnsafe(26); - * - * for (let i = 0; i < 26; i++) { - * // 97 is the decimal ASCII value for 'a'. - * buf1[i] = i + 97; - * } - * - * console.log(buf1.toString('utf8')); - * // Prints: abcdefghijklmnopqrstuvwxyz - * console.log(buf1.toString('utf8', 0, 5)); - * // Prints: abcde - * - * const buf2 = Buffer.from('tést'); - * - * console.log(buf2.toString('hex')); - * // Prints: 74c3a97374 - * console.log(buf2.toString('utf8', 0, 3)); - * // Prints: té - * console.log(buf2.toString(undefined, 0, 3)); - * // Prints: té - * ``` - * @since v0.1.90 - * @param [encoding='utf8'] The character encoding to use. - * @param [start=0] The byte offset to start decoding at. - * @param [end=buf.length] The byte offset to stop decoding at (not inclusive). - */ - toString(encoding?: BufferEncoding, start?: number, end?: number): string; - /** - * Returns a JSON representation of `buf`. [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) implicitly calls - * this function when stringifying a `Buffer` instance. - * - * `Buffer.from()` accepts objects in the format returned from this method. - * In particular, `Buffer.from(buf.toJSON())` works like `Buffer.from(buf)`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5]); - * const json = JSON.stringify(buf); - * - * console.log(json); - * // Prints: {"type":"Buffer","data":[1,2,3,4,5]} - * - * const copy = JSON.parse(json, (key, value) => { - * return value && value.type === 'Buffer' ? - * Buffer.from(value) : - * value; - * }); - * - * console.log(copy); - * // Prints: - * ``` - * @since v0.9.2 - */ - toJSON(): { - type: "Buffer"; - data: number[]; - }; - /** - * Returns `true` if both `buf` and `otherBuffer` have exactly the same bytes,`false` otherwise. Equivalent to `buf.compare(otherBuffer) === 0`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from('ABC'); - * const buf2 = Buffer.from('414243', 'hex'); - * const buf3 = Buffer.from('ABCD'); - * - * console.log(buf1.equals(buf2)); - * // Prints: true - * console.log(buf1.equals(buf3)); - * // Prints: false - * ``` - * @since v0.11.13 - * @param otherBuffer A `Buffer` or {@link Uint8Array} with which to compare `buf`. - */ - equals(otherBuffer: Uint8Array): boolean; - /** - * Compares `buf` with `target` and returns a number indicating whether `buf`comes before, after, or is the same as `target` in sort order. - * Comparison is based on the actual sequence of bytes in each `Buffer`. - * - * * `0` is returned if `target` is the same as `buf` - * * `1` is returned if `target` should come _before_`buf` when sorted. - * * `-1` is returned if `target` should come _after_`buf` when sorted. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from('ABC'); - * const buf2 = Buffer.from('BCD'); - * const buf3 = Buffer.from('ABCD'); - * - * console.log(buf1.compare(buf1)); - * // Prints: 0 - * console.log(buf1.compare(buf2)); - * // Prints: -1 - * console.log(buf1.compare(buf3)); - * // Prints: -1 - * console.log(buf2.compare(buf1)); - * // Prints: 1 - * console.log(buf2.compare(buf3)); - * // Prints: 1 - * console.log([buf1, buf2, buf3].sort(Buffer.compare)); - * // Prints: [ , , ] - * // (This result is equal to: [buf1, buf3, buf2].) - * ``` - * - * The optional `targetStart`, `targetEnd`, `sourceStart`, and `sourceEnd` arguments can be used to limit the comparison to specific ranges within `target` and `buf` respectively. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8, 9]); - * const buf2 = Buffer.from([5, 6, 7, 8, 9, 1, 2, 3, 4]); - * - * console.log(buf1.compare(buf2, 5, 9, 0, 4)); - * // Prints: 0 - * console.log(buf1.compare(buf2, 0, 6, 4)); - * // Prints: -1 - * console.log(buf1.compare(buf2, 5, 6, 5)); - * // Prints: 1 - * ``` - * - * `ERR_OUT_OF_RANGE` is thrown if `targetStart < 0`, `sourceStart < 0`, `targetEnd > target.byteLength`, or `sourceEnd > source.byteLength`. - * @since v0.11.13 - * @param target A `Buffer` or {@link Uint8Array} with which to compare `buf`. - * @param [targetStart=0] The offset within `target` at which to begin comparison. - * @param [targetEnd=target.length] The offset within `target` at which to end comparison (not inclusive). - * @param [sourceStart=0] The offset within `buf` at which to begin comparison. - * @param [sourceEnd=buf.length] The offset within `buf` at which to end comparison (not inclusive). - */ - compare( - target: Uint8Array, - targetStart?: number, - targetEnd?: number, - sourceStart?: number, - sourceEnd?: number, - ): -1 | 0 | 1; - /** - * Copies data from a region of `buf` to a region in `target`, even if the `target`memory region overlaps with `buf`. - * - * [`TypedArray.prototype.set()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) performs the same operation, and is available - * for all TypedArrays, including Node.js `Buffer`s, although it takes - * different function arguments. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Create two `Buffer` instances. - * const buf1 = Buffer.allocUnsafe(26); - * const buf2 = Buffer.allocUnsafe(26).fill('!'); - * - * for (let i = 0; i < 26; i++) { - * // 97 is the decimal ASCII value for 'a'. - * buf1[i] = i + 97; - * } - * - * // Copy `buf1` bytes 16 through 19 into `buf2` starting at byte 8 of `buf2`. - * buf1.copy(buf2, 8, 16, 20); - * // This is equivalent to: - * // buf2.set(buf1.subarray(16, 20), 8); - * - * console.log(buf2.toString('ascii', 0, 25)); - * // Prints: !!!!!!!!qrst!!!!!!!!!!!!! - * ``` - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Create a `Buffer` and copy data from one region to an overlapping region - * // within the same `Buffer`. - * - * const buf = Buffer.allocUnsafe(26); - * - * for (let i = 0; i < 26; i++) { - * // 97 is the decimal ASCII value for 'a'. - * buf[i] = i + 97; - * } - * - * buf.copy(buf, 0, 4, 10); - * - * console.log(buf.toString()); - * // Prints: efghijghijklmnopqrstuvwxyz - * ``` - * @since v0.1.90 - * @param target A `Buffer` or {@link Uint8Array} to copy into. - * @param [targetStart=0] The offset within `target` at which to begin writing. - * @param [sourceStart=0] The offset within `buf` from which to begin copying. - * @param [sourceEnd=buf.length] The offset within `buf` at which to stop copying (not inclusive). - * @return The number of bytes copied. - */ - copy(target: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. - * - * `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeBigInt64BE(0x0102030405060708n, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v12.0.0, v10.20.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeBigInt64BE(value: bigint, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. - * - * `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeBigInt64LE(0x0102030405060708n, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v12.0.0, v10.20.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeBigInt64LE(value: bigint, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. - * - * This function is also available under the `writeBigUint64BE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeBigUInt64BE(0xdecafafecacefaden, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v12.0.0, v10.20.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeBigUInt64BE(value: bigint, offset?: number): number; - /** - * @alias Buffer.writeBigUInt64BE - * @since v14.10.0, v12.19.0 - */ - writeBigUint64BE(value: bigint, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeBigUInt64LE(0xdecafafecacefaden, 0); - * - * console.log(buf); - * // Prints: - * ``` - * - * This function is also available under the `writeBigUint64LE` alias. - * @since v12.0.0, v10.20.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeBigUInt64LE(value: bigint, offset?: number): number; - /** - * @alias Buffer.writeBigUInt64LE - * @since v14.10.0, v12.19.0 - */ - writeBigUint64LE(value: bigint, offset?: number): number; - /** - * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined - * when `value` is anything other than an unsigned integer. - * - * This function is also available under the `writeUintLE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(6); - * - * buf.writeUIntLE(0x1234567890ab, 0, 6); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. - * @return `offset` plus the number of bytes written. - */ - writeUIntLE(value: number, offset: number, byteLength: number): number; - /** - * @alias Buffer.writeUIntLE - * @since v14.9.0, v12.19.0 - */ - writeUintLE(value: number, offset: number, byteLength: number): number; - /** - * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined - * when `value` is anything other than an unsigned integer. - * - * This function is also available under the `writeUintBE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(6); - * - * buf.writeUIntBE(0x1234567890ab, 0, 6); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. - * @return `offset` plus the number of bytes written. - */ - writeUIntBE(value: number, offset: number, byteLength: number): number; - /** - * @alias Buffer.writeUIntBE - * @since v14.9.0, v12.19.0 - */ - writeUintBE(value: number, offset: number, byteLength: number): number; - /** - * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined - * when `value` is anything other than a signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(6); - * - * buf.writeIntLE(0x1234567890ab, 0, 6); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. - * @return `offset` plus the number of bytes written. - */ - writeIntLE(value: number, offset: number, byteLength: number): number; - /** - * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined when`value` is anything other than a - * signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(6); - * - * buf.writeIntBE(0x1234567890ab, 0, 6); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. - * @return `offset` plus the number of bytes written. - */ - writeIntBE(value: number, offset: number, byteLength: number): number; - /** - * Reads an unsigned, big-endian 64-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readBigUint64BE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]); - * - * console.log(buf.readBigUInt64BE(0)); - * // Prints: 4294967295n - * ``` - * @since v12.0.0, v10.20.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. - */ - readBigUInt64BE(offset?: number): bigint; - /** - * @alias Buffer.readBigUInt64BE - * @since v14.10.0, v12.19.0 - */ - readBigUint64BE(offset?: number): bigint; - /** - * Reads an unsigned, little-endian 64-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readBigUint64LE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]); - * - * console.log(buf.readBigUInt64LE(0)); - * // Prints: 18446744069414584320n - * ``` - * @since v12.0.0, v10.20.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. - */ - readBigUInt64LE(offset?: number): bigint; - /** - * @alias Buffer.readBigUInt64LE - * @since v14.10.0, v12.19.0 - */ - readBigUint64LE(offset?: number): bigint; - /** - * Reads a signed, big-endian 64-bit integer from `buf` at the specified `offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed - * values. - * @since v12.0.0, v10.20.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. - */ - readBigInt64BE(offset?: number): bigint; - /** - * Reads a signed, little-endian 64-bit integer from `buf` at the specified`offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed - * values. - * @since v12.0.0, v10.20.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. - */ - readBigInt64LE(offset?: number): bigint; - /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an unsigned, little-endian integer supporting - * up to 48 bits of accuracy. - * - * This function is also available under the `readUintLE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); - * - * console.log(buf.readUIntLE(0, 6).toString(16)); - * // Prints: ab9078563412 - * ``` - * @since v0.11.15 - * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. - */ - readUIntLE(offset: number, byteLength: number): number; - /** - * @alias Buffer.readUIntLE - * @since v14.9.0, v12.19.0 - */ - readUintLE(offset: number, byteLength: number): number; - /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an unsigned big-endian integer supporting - * up to 48 bits of accuracy. - * - * This function is also available under the `readUintBE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); - * - * console.log(buf.readUIntBE(0, 6).toString(16)); - * // Prints: 1234567890ab - * console.log(buf.readUIntBE(1, 6).toString(16)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.11.15 - * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. - */ - readUIntBE(offset: number, byteLength: number): number; - /** - * @alias Buffer.readUIntBE - * @since v14.9.0, v12.19.0 - */ - readUintBE(offset: number, byteLength: number): number; - /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a little-endian, two's complement signed value - * supporting up to 48 bits of accuracy. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); - * - * console.log(buf.readIntLE(0, 6).toString(16)); - * // Prints: -546f87a9cbee - * ``` - * @since v0.11.15 - * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. - */ - readIntLE(offset: number, byteLength: number): number; - /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a big-endian, two's complement signed value - * supporting up to 48 bits of accuracy. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); - * - * console.log(buf.readIntBE(0, 6).toString(16)); - * // Prints: 1234567890ab - * console.log(buf.readIntBE(1, 6).toString(16)); - * // Throws ERR_OUT_OF_RANGE. - * console.log(buf.readIntBE(1, 0).toString(16)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.11.15 - * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. - */ - readIntBE(offset: number, byteLength: number): number; - /** - * Reads an unsigned 8-bit integer from `buf` at the specified `offset`. - * - * This function is also available under the `readUint8` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([1, -2]); - * - * console.log(buf.readUInt8(0)); - * // Prints: 1 - * console.log(buf.readUInt8(1)); - * // Prints: 254 - * console.log(buf.readUInt8(2)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`. - */ - readUInt8(offset?: number): number; - /** - * @alias Buffer.readUInt8 - * @since v14.9.0, v12.19.0 - */ - readUint8(offset?: number): number; - /** - * Reads an unsigned, little-endian 16-bit integer from `buf` at the specified `offset`. - * - * This function is also available under the `readUint16LE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56]); - * - * console.log(buf.readUInt16LE(0).toString(16)); - * // Prints: 3412 - * console.log(buf.readUInt16LE(1).toString(16)); - * // Prints: 5634 - * console.log(buf.readUInt16LE(2).toString(16)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. - */ - readUInt16LE(offset?: number): number; - /** - * @alias Buffer.readUInt16LE - * @since v14.9.0, v12.19.0 - */ - readUint16LE(offset?: number): number; - /** - * Reads an unsigned, big-endian 16-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readUint16BE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56]); - * - * console.log(buf.readUInt16BE(0).toString(16)); - * // Prints: 1234 - * console.log(buf.readUInt16BE(1).toString(16)); - * // Prints: 3456 - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. - */ - readUInt16BE(offset?: number): number; - /** - * @alias Buffer.readUInt16BE - * @since v14.9.0, v12.19.0 - */ - readUint16BE(offset?: number): number; - /** - * Reads an unsigned, little-endian 32-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readUint32LE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]); - * - * console.log(buf.readUInt32LE(0).toString(16)); - * // Prints: 78563412 - * console.log(buf.readUInt32LE(1).toString(16)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readUInt32LE(offset?: number): number; - /** - * @alias Buffer.readUInt32LE - * @since v14.9.0, v12.19.0 - */ - readUint32LE(offset?: number): number; - /** - * Reads an unsigned, big-endian 32-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readUint32BE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]); - * - * console.log(buf.readUInt32BE(0).toString(16)); - * // Prints: 12345678 - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readUInt32BE(offset?: number): number; - /** - * @alias Buffer.readUInt32BE - * @since v14.9.0, v12.19.0 - */ - readUint32BE(offset?: number): number; - /** - * Reads a signed 8-bit integer from `buf` at the specified `offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed values. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([-1, 5]); - * - * console.log(buf.readInt8(0)); - * // Prints: -1 - * console.log(buf.readInt8(1)); - * // Prints: 5 - * console.log(buf.readInt8(2)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`. - */ - readInt8(offset?: number): number; - /** - * Reads a signed, little-endian 16-bit integer from `buf` at the specified`offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed values. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0, 5]); - * - * console.log(buf.readInt16LE(0)); - * // Prints: 1280 - * console.log(buf.readInt16LE(1)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. - */ - readInt16LE(offset?: number): number; - /** - * Reads a signed, big-endian 16-bit integer from `buf` at the specified `offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed values. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0, 5]); - * - * console.log(buf.readInt16BE(0)); - * // Prints: 5 - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. - */ - readInt16BE(offset?: number): number; - /** - * Reads a signed, little-endian 32-bit integer from `buf` at the specified`offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed values. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0, 0, 0, 5]); - * - * console.log(buf.readInt32LE(0)); - * // Prints: 83886080 - * console.log(buf.readInt32LE(1)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readInt32LE(offset?: number): number; - /** - * Reads a signed, big-endian 32-bit integer from `buf` at the specified `offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed values. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([0, 0, 0, 5]); - * - * console.log(buf.readInt32BE(0)); - * // Prints: 5 - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readInt32BE(offset?: number): number; - /** - * Reads a 32-bit, little-endian float from `buf` at the specified `offset`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([1, 2, 3, 4]); - * - * console.log(buf.readFloatLE(0)); - * // Prints: 1.539989614439558e-36 - * console.log(buf.readFloatLE(1)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.11.15 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readFloatLE(offset?: number): number; - /** - * Reads a 32-bit, big-endian float from `buf` at the specified `offset`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([1, 2, 3, 4]); - * - * console.log(buf.readFloatBE(0)); - * // Prints: 2.387939260590663e-38 - * ``` - * @since v0.11.15 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readFloatBE(offset?: number): number; - /** - * Reads a 64-bit, little-endian double from `buf` at the specified `offset`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]); - * - * console.log(buf.readDoubleLE(0)); - * // Prints: 5.447603722011605e-270 - * console.log(buf.readDoubleLE(1)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.11.15 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 8`. - */ - readDoubleLE(offset?: number): number; - /** - * Reads a 64-bit, big-endian double from `buf` at the specified `offset`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]); - * - * console.log(buf.readDoubleBE(0)); - * // Prints: 8.20788039913184e-304 - * ``` - * @since v0.11.15 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 8`. - */ - readDoubleBE(offset?: number): number; - reverse(): this; - /** - * Interprets `buf` as an array of unsigned 16-bit integers and swaps the - * byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 2. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]); - * - * console.log(buf1); - * // Prints: - * - * buf1.swap16(); - * - * console.log(buf1); - * // Prints: - * - * const buf2 = Buffer.from([0x1, 0x2, 0x3]); - * - * buf2.swap16(); - * // Throws ERR_INVALID_BUFFER_SIZE. - * ``` - * - * One convenient use of `buf.swap16()` is to perform a fast in-place conversion - * between UTF-16 little-endian and UTF-16 big-endian: - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('This is little-endian UTF-16', 'utf16le'); - * buf.swap16(); // Convert to big-endian UTF-16 text. - * ``` - * @since v5.10.0 - * @return A reference to `buf`. - */ - swap16(): this; - /** - * Interprets `buf` as an array of unsigned 32-bit integers and swaps the - * byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 4. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]); - * - * console.log(buf1); - * // Prints: - * - * buf1.swap32(); - * - * console.log(buf1); - * // Prints: - * - * const buf2 = Buffer.from([0x1, 0x2, 0x3]); - * - * buf2.swap32(); - * // Throws ERR_INVALID_BUFFER_SIZE. - * ``` - * @since v5.10.0 - * @return A reference to `buf`. - */ - swap32(): this; - /** - * Interprets `buf` as an array of 64-bit numbers and swaps byte order _in-place_. - * Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 8. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]); - * - * console.log(buf1); - * // Prints: - * - * buf1.swap64(); - * - * console.log(buf1); - * // Prints: - * - * const buf2 = Buffer.from([0x1, 0x2, 0x3]); - * - * buf2.swap64(); - * // Throws ERR_INVALID_BUFFER_SIZE. - * ``` - * @since v6.3.0 - * @return A reference to `buf`. - */ - swap64(): this; - /** - * Writes `value` to `buf` at the specified `offset`. `value` must be a - * valid unsigned 8-bit integer. Behavior is undefined when `value` is anything - * other than an unsigned 8-bit integer. - * - * This function is also available under the `writeUint8` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeUInt8(0x3, 0); - * buf.writeUInt8(0x4, 1); - * buf.writeUInt8(0x23, 2); - * buf.writeUInt8(0x42, 3); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 1`. - * @return `offset` plus the number of bytes written. - */ - writeUInt8(value: number, offset?: number): number; - /** - * @alias Buffer.writeUInt8 - * @since v14.9.0, v12.19.0 - */ - writeUint8(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid unsigned 16-bit integer. Behavior is undefined when `value` is - * anything other than an unsigned 16-bit integer. - * - * This function is also available under the `writeUint16LE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeUInt16LE(0xdead, 0); - * buf.writeUInt16LE(0xbeef, 2); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. - * @return `offset` plus the number of bytes written. - */ - writeUInt16LE(value: number, offset?: number): number; - /** - * @alias Buffer.writeUInt16LE - * @since v14.9.0, v12.19.0 - */ - writeUint16LE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid unsigned 16-bit integer. Behavior is undefined when `value`is anything other than an - * unsigned 16-bit integer. - * - * This function is also available under the `writeUint16BE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeUInt16BE(0xdead, 0); - * buf.writeUInt16BE(0xbeef, 2); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. - * @return `offset` plus the number of bytes written. - */ - writeUInt16BE(value: number, offset?: number): number; - /** - * @alias Buffer.writeUInt16BE - * @since v14.9.0, v12.19.0 - */ - writeUint16BE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid unsigned 32-bit integer. Behavior is undefined when `value` is - * anything other than an unsigned 32-bit integer. - * - * This function is also available under the `writeUint32LE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeUInt32LE(0xfeedface, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeUInt32LE(value: number, offset?: number): number; - /** - * @alias Buffer.writeUInt32LE - * @since v14.9.0, v12.19.0 - */ - writeUint32LE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid unsigned 32-bit integer. Behavior is undefined when `value`is anything other than an - * unsigned 32-bit integer. - * - * This function is also available under the `writeUint32BE` alias. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeUInt32BE(0xfeedface, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeUInt32BE(value: number, offset?: number): number; - /** - * @alias Buffer.writeUInt32BE - * @since v14.9.0, v12.19.0 - */ - writeUint32BE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset`. `value` must be a valid - * signed 8-bit integer. Behavior is undefined when `value` is anything other than - * a signed 8-bit integer. - * - * `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(2); - * - * buf.writeInt8(2, 0); - * buf.writeInt8(-2, 1); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 1`. - * @return `offset` plus the number of bytes written. - */ - writeInt8(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid signed 16-bit integer. Behavior is undefined when `value` is - * anything other than a signed 16-bit integer. - * - * The `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(2); - * - * buf.writeInt16LE(0x0304, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. - * @return `offset` plus the number of bytes written. - */ - writeInt16LE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid signed 16-bit integer. Behavior is undefined when `value` is - * anything other than a signed 16-bit integer. - * - * The `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(2); - * - * buf.writeInt16BE(0x0102, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. - * @return `offset` plus the number of bytes written. - */ - writeInt16BE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid signed 32-bit integer. Behavior is undefined when `value` is - * anything other than a signed 32-bit integer. - * - * The `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeInt32LE(0x05060708, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeInt32LE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid signed 32-bit integer. Behavior is undefined when `value` is - * anything other than a signed 32-bit integer. - * - * The `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeInt32BE(0x01020304, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeInt32BE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. Behavior is - * undefined when `value` is anything other than a JavaScript number. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeFloatLE(0xcafebabe, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeFloatLE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. Behavior is - * undefined when `value` is anything other than a JavaScript number. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeFloatBE(0xcafebabe, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeFloatBE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a JavaScript number. Behavior is undefined when `value` is anything - * other than a JavaScript number. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeDoubleLE(123.456, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeDoubleLE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a JavaScript number. Behavior is undefined when `value` is anything - * other than a JavaScript number. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeDoubleBE(123.456, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeDoubleBE(value: number, offset?: number): number; - /** - * Fills `buf` with the specified `value`. If the `offset` and `end` are not given, - * the entire `buf` will be filled: - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Fill a `Buffer` with the ASCII character 'h'. - * - * const b = Buffer.allocUnsafe(50).fill('h'); - * - * console.log(b.toString()); - * // Prints: hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh - * - * // Fill a buffer with empty string - * const c = Buffer.allocUnsafe(5).fill(''); - * - * console.log(c.fill('')); - * // Prints: - * ``` - * - * `value` is coerced to a `uint32` value if it is not a string, `Buffer`, or - * integer. If the resulting integer is greater than `255` (decimal), `buf` will be - * filled with `value & 255`. - * - * If the final write of a `fill()` operation falls on a multi-byte character, - * then only the bytes of that character that fit into `buf` are written: - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Fill a `Buffer` with character that takes up two bytes in UTF-8. - * - * console.log(Buffer.allocUnsafe(5).fill('\u0222')); - * // Prints: - * ``` - * - * If `value` contains invalid characters, it is truncated; if no valid - * fill data remains, an exception is thrown: - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(5); - * - * console.log(buf.fill('a')); - * // Prints: - * console.log(buf.fill('aazz', 'hex')); - * // Prints: - * console.log(buf.fill('zz', 'hex')); - * // Throws an exception. - * ``` - * @since v0.5.0 - * @param value The value with which to fill `buf`. Empty value (string, Uint8Array, Buffer) is coerced to `0`. - * @param [offset=0] Number of bytes to skip before starting to fill `buf`. - * @param [end=buf.length] Where to stop filling `buf` (not inclusive). - * @param [encoding='utf8'] The encoding for `value` if `value` is a string. - * @return A reference to `buf`. - */ - fill(value: string | Uint8Array | number, offset?: number, end?: number, encoding?: BufferEncoding): this; - fill(value: string | Uint8Array | number, offset: number, encoding: BufferEncoding): this; - fill(value: string | Uint8Array | number, encoding: BufferEncoding): this; - /** - * If `value` is: - * - * * a string, `value` is interpreted according to the character encoding in `encoding`. - * * a `Buffer` or [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array), `value` will be used in its entirety. - * To compare a partial `Buffer`, use `buf.subarray`. - * * a number, `value` will be interpreted as an unsigned 8-bit integer - * value between `0` and `255`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('this is a buffer'); - * - * console.log(buf.indexOf('this')); - * // Prints: 0 - * console.log(buf.indexOf('is')); - * // Prints: 2 - * console.log(buf.indexOf(Buffer.from('a buffer'))); - * // Prints: 8 - * console.log(buf.indexOf(97)); - * // Prints: 8 (97 is the decimal ASCII value for 'a') - * console.log(buf.indexOf(Buffer.from('a buffer example'))); - * // Prints: -1 - * console.log(buf.indexOf(Buffer.from('a buffer example').slice(0, 8))); - * // Prints: 8 - * - * const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'utf16le'); - * - * console.log(utf16Buffer.indexOf('\u03a3', 0, 'utf16le')); - * // Prints: 4 - * console.log(utf16Buffer.indexOf('\u03a3', -4, 'utf16le')); - * // Prints: 6 - * ``` - * - * If `value` is not a string, number, or `Buffer`, this method will throw a `TypeError`. If `value` is a number, it will be coerced to a valid byte value, - * an integer between 0 and 255. - * - * If `byteOffset` is not a number, it will be coerced to a number. If the result - * of coercion is `NaN` or `0`, then the entire buffer will be searched. This - * behavior matches [`String.prototype.indexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf). - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const b = Buffer.from('abcdef'); - * - * // Passing a value that's a number, but not a valid byte. - * // Prints: 2, equivalent to searching for 99 or 'c'. - * console.log(b.indexOf(99.9)); - * console.log(b.indexOf(256 + 99)); - * - * // Passing a byteOffset that coerces to NaN or 0. - * // Prints: 1, searching the whole buffer. - * console.log(b.indexOf('b', undefined)); - * console.log(b.indexOf('b', {})); - * console.log(b.indexOf('b', null)); - * console.log(b.indexOf('b', [])); - * ``` - * - * If `value` is an empty string or empty `Buffer` and `byteOffset` is less - * than `buf.length`, `byteOffset` will be returned. If `value` is empty and`byteOffset` is at least `buf.length`, `buf.length` will be returned. - * @since v1.5.0 - * @param value What to search for. - * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`. - * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`. - * @return The index of the first occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`. - */ - indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number; - indexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number; - /** - * Identical to `buf.indexOf()`, except the last occurrence of `value` is found - * rather than the first occurrence. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('this buffer is a buffer'); - * - * console.log(buf.lastIndexOf('this')); - * // Prints: 0 - * console.log(buf.lastIndexOf('buffer')); - * // Prints: 17 - * console.log(buf.lastIndexOf(Buffer.from('buffer'))); - * // Prints: 17 - * console.log(buf.lastIndexOf(97)); - * // Prints: 15 (97 is the decimal ASCII value for 'a') - * console.log(buf.lastIndexOf(Buffer.from('yolo'))); - * // Prints: -1 - * console.log(buf.lastIndexOf('buffer', 5)); - * // Prints: 5 - * console.log(buf.lastIndexOf('buffer', 4)); - * // Prints: -1 - * - * const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'utf16le'); - * - * console.log(utf16Buffer.lastIndexOf('\u03a3', undefined, 'utf16le')); - * // Prints: 6 - * console.log(utf16Buffer.lastIndexOf('\u03a3', -5, 'utf16le')); - * // Prints: 4 - * ``` - * - * If `value` is not a string, number, or `Buffer`, this method will throw a `TypeError`. If `value` is a number, it will be coerced to a valid byte value, - * an integer between 0 and 255. - * - * If `byteOffset` is not a number, it will be coerced to a number. Any arguments - * that coerce to `NaN`, like `{}` or `undefined`, will search the whole buffer. - * This behavior matches [`String.prototype.lastIndexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf). - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const b = Buffer.from('abcdef'); - * - * // Passing a value that's a number, but not a valid byte. - * // Prints: 2, equivalent to searching for 99 or 'c'. - * console.log(b.lastIndexOf(99.9)); - * console.log(b.lastIndexOf(256 + 99)); - * - * // Passing a byteOffset that coerces to NaN. - * // Prints: 1, searching the whole buffer. - * console.log(b.lastIndexOf('b', undefined)); - * console.log(b.lastIndexOf('b', {})); - * - * // Passing a byteOffset that coerces to 0. - * // Prints: -1, equivalent to passing 0. - * console.log(b.lastIndexOf('b', null)); - * console.log(b.lastIndexOf('b', [])); - * ``` - * - * If `value` is an empty string or empty `Buffer`, `byteOffset` will be returned. - * @since v6.0.0 - * @param value What to search for. - * @param [byteOffset=buf.length - 1] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`. - * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`. - * @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`. - */ - lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number; - lastIndexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number; - /** - * Equivalent to `buf.indexOf() !== -1`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('this is a buffer'); - * - * console.log(buf.includes('this')); - * // Prints: true - * console.log(buf.includes('is')); - * // Prints: true - * console.log(buf.includes(Buffer.from('a buffer'))); - * // Prints: true - * console.log(buf.includes(97)); - * // Prints: true (97 is the decimal ASCII value for 'a') - * console.log(buf.includes(Buffer.from('a buffer example'))); - * // Prints: false - * console.log(buf.includes(Buffer.from('a buffer example').slice(0, 8))); - * // Prints: true - * console.log(buf.includes('this', 4)); - * // Prints: false - * ``` - * @since v5.3.0 - * @param value What to search for. - * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`. - * @param [encoding='utf8'] If `value` is a string, this is its encoding. - * @return `true` if `value` was found in `buf`, `false` otherwise. - */ - includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean; - includes(value: string | number | Buffer, encoding: BufferEncoding): boolean; - } - var Buffer: BufferConstructor; - /** - * Decodes a string of Base64-encoded data into bytes, and encodes those bytes - * into a string using Latin-1 (ISO-8859-1). - * - * The `data` may be any JavaScript-value that can be coerced into a string. - * - * **This function is only provided for compatibility with legacy web platform APIs** - * **and should never be used in new code, because they use strings to represent** - * **binary data and predate the introduction of typed arrays in JavaScript.** - * **For code running using Node.js APIs, converting between base64-encoded strings** - * **and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.** - * @since v15.13.0, v14.17.0 - * @legacy Use `Buffer.from(data, 'base64')` instead. - * @param data The Base64-encoded input string. - */ - function atob(data: string): string; - /** - * Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes - * into a string using Base64. - * - * The `data` may be any JavaScript-value that can be coerced into a string. - * - * **This function is only provided for compatibility with legacy web platform APIs** - * **and should never be used in new code, because they use strings to represent** - * **binary data and predate the introduction of typed arrays in JavaScript.** - * **For code running using Node.js APIs, converting between base64-encoded strings** - * **and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.** - * @since v15.13.0, v14.17.0 - * @legacy Use `buf.toString('base64')` instead. - * @param data An ASCII (Latin1) string. - */ - function btoa(data: string): string; - interface Blob extends _Blob {} - /** - * `Blob` class is a global reference for `import { Blob } from 'node:buffer'` - * https://nodejs.org/api/buffer.html#class-blob - * @since v18.0.0 - */ - var Blob: typeof globalThis extends { onmessage: any; Blob: infer T } ? T - : typeof import("buffer").Blob; - interface File extends _File {} - /** - * `File` class is a global reference for `import { File } from 'node:buffer'` - * https://nodejs.org/api/buffer.html#class-file - * @since v20.0.0 - */ - var File: typeof globalThis extends { onmessage: any; File: infer T } ? T - : typeof import("buffer").File; - } -} -declare module "node:buffer" { - export * from "buffer"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/child_process.d.ts b/build_vtk_bundle/node_modules/@types/node/child_process.d.ts deleted file mode 100644 index ecad7d8e..00000000 --- a/build_vtk_bundle/node_modules/@types/node/child_process.d.ts +++ /dev/null @@ -1,1476 +0,0 @@ -/** - * The `node:child_process` module provides the ability to spawn subprocesses in - * a manner that is similar, but not identical, to [`popen(3)`](http://man7.org/linux/man-pages/man3/popen.3.html). This capability - * is primarily provided by the {@link spawn} function: - * - * ```js - * import { spawn } from 'node:child_process'; - * const ls = spawn('ls', ['-lh', '/usr']); - * - * ls.stdout.on('data', (data) => { - * console.log(`stdout: ${data}`); - * }); - * - * ls.stderr.on('data', (data) => { - * console.error(`stderr: ${data}`); - * }); - * - * ls.on('close', (code) => { - * console.log(`child process exited with code ${code}`); - * }); - * ``` - * - * By default, pipes for `stdin`, `stdout`, and `stderr` are established between - * the parent Node.js process and the spawned subprocess. These pipes have - * limited (and platform-specific) capacity. If the subprocess writes to - * stdout in excess of that limit without the output being captured, the - * subprocess blocks, waiting for the pipe buffer to accept more data. This is - * identical to the behavior of pipes in the shell. Use the `{ stdio: 'ignore' }` option if the output will not be consumed. - * - * The command lookup is performed using the `options.env.PATH` environment - * variable if `env` is in the `options` object. Otherwise, `process.env.PATH` is - * used. If `options.env` is set without `PATH`, lookup on Unix is performed - * on a default search path search of `/usr/bin:/bin` (see your operating system's - * manual for execvpe/execvp), on Windows the current processes environment - * variable `PATH` is used. - * - * On Windows, environment variables are case-insensitive. Node.js - * lexicographically sorts the `env` keys and uses the first one that - * case-insensitively matches. Only first (in lexicographic order) entry will be - * passed to the subprocess. This might lead to issues on Windows when passing - * objects to the `env` option that have multiple variants of the same key, such as `PATH` and `Path`. - * - * The {@link spawn} method spawns the child process asynchronously, - * without blocking the Node.js event loop. The {@link spawnSync} function provides equivalent functionality in a synchronous manner that blocks - * the event loop until the spawned process either exits or is terminated. - * - * For convenience, the `node:child_process` module provides a handful of - * synchronous and asynchronous alternatives to {@link spawn} and {@link spawnSync}. Each of these alternatives are implemented on - * top of {@link spawn} or {@link spawnSync}. - * - * * {@link exec}: spawns a shell and runs a command within that - * shell, passing the `stdout` and `stderr` to a callback function when - * complete. - * * {@link execFile}: similar to {@link exec} except - * that it spawns the command directly without first spawning a shell by - * default. - * * {@link fork}: spawns a new Node.js process and invokes a - * specified module with an IPC communication channel established that allows - * sending messages between parent and child. - * * {@link execSync}: a synchronous version of {@link exec} that will block the Node.js event loop. - * * {@link execFileSync}: a synchronous version of {@link execFile} that will block the Node.js event loop. - * - * For certain use cases, such as automating shell scripts, the `synchronous counterparts` may be more convenient. In many cases, however, - * the synchronous methods can have significant impact on performance due to - * stalling the event loop while spawned processes complete. - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/child_process.js) - */ -declare module "child_process" { - import { NonSharedBuffer } from "node:buffer"; - import { Abortable, EventEmitter } from "node:events"; - import * as dgram from "node:dgram"; - import * as net from "node:net"; - import { Readable, Stream, Writable } from "node:stream"; - import { URL } from "node:url"; - type Serializable = string | object | number | boolean | bigint; - type SendHandle = net.Socket | net.Server | dgram.Socket | undefined; - /** - * Instances of the `ChildProcess` represent spawned child processes. - * - * Instances of `ChildProcess` are not intended to be created directly. Rather, - * use the {@link spawn}, {@link exec},{@link execFile}, or {@link fork} methods to create - * instances of `ChildProcess`. - * @since v2.2.0 - */ - class ChildProcess extends EventEmitter { - /** - * A `Writable Stream` that represents the child process's `stdin`. - * - * If a child process waits to read all of its input, the child will not continue - * until this stream has been closed via `end()`. - * - * If the child was spawned with `stdio[0]` set to anything other than `'pipe'`, - * then this will be `null`. - * - * `subprocess.stdin` is an alias for `subprocess.stdio[0]`. Both properties will - * refer to the same value. - * - * The `subprocess.stdin` property can be `null` or `undefined` if the child process could not be successfully spawned. - * @since v0.1.90 - */ - stdin: Writable | null; - /** - * A `Readable Stream` that represents the child process's `stdout`. - * - * If the child was spawned with `stdio[1]` set to anything other than `'pipe'`, - * then this will be `null`. - * - * `subprocess.stdout` is an alias for `subprocess.stdio[1]`. Both properties will - * refer to the same value. - * - * ```js - * import { spawn } from 'node:child_process'; - * - * const subprocess = spawn('ls'); - * - * subprocess.stdout.on('data', (data) => { - * console.log(`Received chunk ${data}`); - * }); - * ``` - * - * The `subprocess.stdout` property can be `null` or `undefined` if the child process could not be successfully spawned. - * @since v0.1.90 - */ - stdout: Readable | null; - /** - * A `Readable Stream` that represents the child process's `stderr`. - * - * If the child was spawned with `stdio[2]` set to anything other than `'pipe'`, - * then this will be `null`. - * - * `subprocess.stderr` is an alias for `subprocess.stdio[2]`. Both properties will - * refer to the same value. - * - * The `subprocess.stderr` property can be `null` or `undefined` if the child process could not be successfully spawned. - * @since v0.1.90 - */ - stderr: Readable | null; - /** - * The `subprocess.channel` property is a reference to the child's IPC channel. If - * no IPC channel exists, this property is `undefined`. - * @since v7.1.0 - */ - readonly channel?: Control | null; - /** - * A sparse array of pipes to the child process, corresponding with positions in - * the `stdio` option passed to {@link spawn} that have been set - * to the value `'pipe'`. `subprocess.stdio[0]`, `subprocess.stdio[1]`, and `subprocess.stdio[2]` are also available as `subprocess.stdin`, `subprocess.stdout`, and `subprocess.stderr`, - * respectively. - * - * In the following example, only the child's fd `1` (stdout) is configured as a - * pipe, so only the parent's `subprocess.stdio[1]` is a stream, all other values - * in the array are `null`. - * - * ```js - * import assert from 'node:assert'; - * import fs from 'node:fs'; - * import child_process from 'node:child_process'; - * - * const subprocess = child_process.spawn('ls', { - * stdio: [ - * 0, // Use parent's stdin for child. - * 'pipe', // Pipe child's stdout to parent. - * fs.openSync('err.out', 'w'), // Direct child's stderr to a file. - * ], - * }); - * - * assert.strictEqual(subprocess.stdio[0], null); - * assert.strictEqual(subprocess.stdio[0], subprocess.stdin); - * - * assert(subprocess.stdout); - * assert.strictEqual(subprocess.stdio[1], subprocess.stdout); - * - * assert.strictEqual(subprocess.stdio[2], null); - * assert.strictEqual(subprocess.stdio[2], subprocess.stderr); - * ``` - * - * The `subprocess.stdio` property can be `undefined` if the child process could - * not be successfully spawned. - * @since v0.7.10 - */ - readonly stdio: [ - Writable | null, - // stdin - Readable | null, - // stdout - Readable | null, - // stderr - Readable | Writable | null | undefined, - // extra - Readable | Writable | null | undefined, // extra - ]; - /** - * The `subprocess.killed` property indicates whether the child process - * successfully received a signal from `subprocess.kill()`. The `killed` property - * does not indicate that the child process has been terminated. - * @since v0.5.10 - */ - readonly killed: boolean; - /** - * Returns the process identifier (PID) of the child process. If the child process - * fails to spawn due to errors, then the value is `undefined` and `error` is - * emitted. - * - * ```js - * import { spawn } from 'node:child_process'; - * const grep = spawn('grep', ['ssh']); - * - * console.log(`Spawned child pid: ${grep.pid}`); - * grep.stdin.end(); - * ``` - * @since v0.1.90 - */ - readonly pid?: number | undefined; - /** - * The `subprocess.connected` property indicates whether it is still possible to - * send and receive messages from a child process. When `subprocess.connected` is `false`, it is no longer possible to send or receive messages. - * @since v0.7.2 - */ - readonly connected: boolean; - /** - * The `subprocess.exitCode` property indicates the exit code of the child process. - * If the child process is still running, the field will be `null`. - */ - readonly exitCode: number | null; - /** - * The `subprocess.signalCode` property indicates the signal received by - * the child process if any, else `null`. - */ - readonly signalCode: NodeJS.Signals | null; - /** - * The `subprocess.spawnargs` property represents the full list of command-line - * arguments the child process was launched with. - */ - readonly spawnargs: string[]; - /** - * The `subprocess.spawnfile` property indicates the executable file name of - * the child process that is launched. - * - * For {@link fork}, its value will be equal to `process.execPath`. - * For {@link spawn}, its value will be the name of - * the executable file. - * For {@link exec}, its value will be the name of the shell - * in which the child process is launched. - */ - readonly spawnfile: string; - /** - * The `subprocess.kill()` method sends a signal to the child process. If no - * argument is given, the process will be sent the `'SIGTERM'` signal. See [`signal(7)`](http://man7.org/linux/man-pages/man7/signal.7.html) for a list of available signals. This function - * returns `true` if [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) succeeds, and `false` otherwise. - * - * ```js - * import { spawn } from 'node:child_process'; - * const grep = spawn('grep', ['ssh']); - * - * grep.on('close', (code, signal) => { - * console.log( - * `child process terminated due to receipt of signal ${signal}`); - * }); - * - * // Send SIGHUP to process. - * grep.kill('SIGHUP'); - * ``` - * - * The `ChildProcess` object may emit an `'error'` event if the signal - * cannot be delivered. Sending a signal to a child process that has already exited - * is not an error but may have unforeseen consequences. Specifically, if the - * process identifier (PID) has been reassigned to another process, the signal will - * be delivered to that process instead which can have unexpected results. - * - * While the function is called `kill`, the signal delivered to the child process - * may not actually terminate the process. - * - * See [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) for reference. - * - * On Windows, where POSIX signals do not exist, the `signal` argument will be - * ignored, and the process will be killed forcefully and abruptly (similar to `'SIGKILL'`). - * See `Signal Events` for more details. - * - * On Linux, child processes of child processes will not be terminated - * when attempting to kill their parent. This is likely to happen when running a - * new process in a shell or with the use of the `shell` option of `ChildProcess`: - * - * ```js - * 'use strict'; - * import { spawn } from 'node:child_process'; - * - * const subprocess = spawn( - * 'sh', - * [ - * '-c', - * `node -e "setInterval(() => { - * console.log(process.pid, 'is alive') - * }, 500);"`, - * ], { - * stdio: ['inherit', 'inherit', 'inherit'], - * }, - * ); - * - * setTimeout(() => { - * subprocess.kill(); // Does not terminate the Node.js process in the shell. - * }, 2000); - * ``` - * @since v0.1.90 - */ - kill(signal?: NodeJS.Signals | number): boolean; - /** - * Calls {@link ChildProcess.kill} with `'SIGTERM'`. - * @since v20.5.0 - */ - [Symbol.dispose](): void; - /** - * When an IPC channel has been established between the parent and child ( - * i.e. when using {@link fork}), the `subprocess.send()` method can - * be used to send messages to the child process. When the child process is a - * Node.js instance, these messages can be received via the `'message'` event. - * - * The message goes through serialization and parsing. The resulting - * message might not be the same as what is originally sent. - * - * For example, in the parent script: - * - * ```js - * import cp from 'node:child_process'; - * const n = cp.fork(`${__dirname}/sub.js`); - * - * n.on('message', (m) => { - * console.log('PARENT got message:', m); - * }); - * - * // Causes the child to print: CHILD got message: { hello: 'world' } - * n.send({ hello: 'world' }); - * ``` - * - * And then the child script, `'sub.js'` might look like this: - * - * ```js - * process.on('message', (m) => { - * console.log('CHILD got message:', m); - * }); - * - * // Causes the parent to print: PARENT got message: { foo: 'bar', baz: null } - * process.send({ foo: 'bar', baz: NaN }); - * ``` - * - * Child Node.js processes will have a `process.send()` method of their own - * that allows the child to send messages back to the parent. - * - * There is a special case when sending a `{cmd: 'NODE_foo'}` message. Messages - * containing a `NODE_` prefix in the `cmd` property are reserved for use within - * Node.js core and will not be emitted in the child's `'message'` event. Rather, such messages are emitted using the `'internalMessage'` event and are consumed internally by Node.js. - * Applications should avoid using such messages or listening for `'internalMessage'` events as it is subject to change without notice. - * - * The optional `sendHandle` argument that may be passed to `subprocess.send()` is - * for passing a TCP server or socket object to the child process. The child will - * receive the object as the second argument passed to the callback function - * registered on the `'message'` event. Any data that is received and buffered in - * the socket will not be sent to the child. Sending IPC sockets is not supported on Windows. - * - * The optional `callback` is a function that is invoked after the message is - * sent but before the child may have received it. The function is called with a - * single argument: `null` on success, or an `Error` object on failure. - * - * If no `callback` function is provided and the message cannot be sent, an `'error'` event will be emitted by the `ChildProcess` object. This can - * happen, for instance, when the child process has already exited. - * - * `subprocess.send()` will return `false` if the channel has closed or when the - * backlog of unsent messages exceeds a threshold that makes it unwise to send - * more. Otherwise, the method returns `true`. The `callback` function can be - * used to implement flow control. - * - * #### Example: sending a server object - * - * The `sendHandle` argument can be used, for instance, to pass the handle of - * a TCP server object to the child process as illustrated in the example below: - * - * ```js - * import { createServer } from 'node:net'; - * import { fork } from 'node:child_process'; - * const subprocess = fork('subprocess.js'); - * - * // Open up the server object and send the handle. - * const server = createServer(); - * server.on('connection', (socket) => { - * socket.end('handled by parent'); - * }); - * server.listen(1337, () => { - * subprocess.send('server', server); - * }); - * ``` - * - * The child would then receive the server object as: - * - * ```js - * process.on('message', (m, server) => { - * if (m === 'server') { - * server.on('connection', (socket) => { - * socket.end('handled by child'); - * }); - * } - * }); - * ``` - * - * Once the server is now shared between the parent and child, some connections - * can be handled by the parent and some by the child. - * - * While the example above uses a server created using the `node:net` module, `node:dgram` module servers use exactly the same workflow with the exceptions of - * listening on a `'message'` event instead of `'connection'` and using `server.bind()` instead of `server.listen()`. This is, however, only - * supported on Unix platforms. - * - * #### Example: sending a socket object - * - * Similarly, the `sendHandler` argument can be used to pass the handle of a - * socket to the child process. The example below spawns two children that each - * handle connections with "normal" or "special" priority: - * - * ```js - * import { createServer } from 'node:net'; - * import { fork } from 'node:child_process'; - * const normal = fork('subprocess.js', ['normal']); - * const special = fork('subprocess.js', ['special']); - * - * // Open up the server and send sockets to child. Use pauseOnConnect to prevent - * // the sockets from being read before they are sent to the child process. - * const server = createServer({ pauseOnConnect: true }); - * server.on('connection', (socket) => { - * - * // If this is special priority... - * if (socket.remoteAddress === '74.125.127.100') { - * special.send('socket', socket); - * return; - * } - * // This is normal priority. - * normal.send('socket', socket); - * }); - * server.listen(1337); - * ``` - * - * The `subprocess.js` would receive the socket handle as the second argument - * passed to the event callback function: - * - * ```js - * process.on('message', (m, socket) => { - * if (m === 'socket') { - * if (socket) { - * // Check that the client socket exists. - * // It is possible for the socket to be closed between the time it is - * // sent and the time it is received in the child process. - * socket.end(`Request handled with ${process.argv[2]} priority`); - * } - * } - * }); - * ``` - * - * Do not use `.maxConnections` on a socket that has been passed to a subprocess. - * The parent cannot track when the socket is destroyed. - * - * Any `'message'` handlers in the subprocess should verify that `socket` exists, - * as the connection may have been closed during the time it takes to send the - * connection to the child. - * @since v0.5.9 - * @param sendHandle `undefined`, or a [`net.Socket`](https://nodejs.org/docs/latest-v24.x/api/net.html#class-netsocket), [`net.Server`](https://nodejs.org/docs/latest-v24.x/api/net.html#class-netserver), or [`dgram.Socket`](https://nodejs.org/docs/latest-v24.x/api/dgram.html#class-dgramsocket) object. - * @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. `options` supports the following properties: - */ - send(message: Serializable, callback?: (error: Error | null) => void): boolean; - send(message: Serializable, sendHandle?: SendHandle, callback?: (error: Error | null) => void): boolean; - send( - message: Serializable, - sendHandle?: SendHandle, - options?: MessageOptions, - callback?: (error: Error | null) => void, - ): boolean; - /** - * Closes the IPC channel between parent and child, allowing the child to exit - * gracefully once there are no other connections keeping it alive. After calling - * this method the `subprocess.connected` and `process.connected` properties in - * both the parent and child (respectively) will be set to `false`, and it will be - * no longer possible to pass messages between the processes. - * - * The `'disconnect'` event will be emitted when there are no messages in the - * process of being received. This will most often be triggered immediately after - * calling `subprocess.disconnect()`. - * - * When the child process is a Node.js instance (e.g. spawned using {@link fork}), the `process.disconnect()` method can be invoked - * within the child process to close the IPC channel as well. - * @since v0.7.2 - */ - disconnect(): void; - /** - * By default, the parent will wait for the detached child to exit. To prevent the - * parent from waiting for a given `subprocess` to exit, use the `subprocess.unref()` method. Doing so will cause the parent's event loop to not - * include the child in its reference count, allowing the parent to exit - * independently of the child, unless there is an established IPC channel between - * the child and the parent. - * - * ```js - * import { spawn } from 'node:child_process'; - * - * const subprocess = spawn(process.argv[0], ['child_program.js'], { - * detached: true, - * stdio: 'ignore', - * }); - * - * subprocess.unref(); - * ``` - * @since v0.7.10 - */ - unref(): void; - /** - * Calling `subprocess.ref()` after making a call to `subprocess.unref()` will - * restore the removed reference count for the child process, forcing the parent - * to wait for the child to exit before exiting itself. - * - * ```js - * import { spawn } from 'node:child_process'; - * - * const subprocess = spawn(process.argv[0], ['child_program.js'], { - * detached: true, - * stdio: 'ignore', - * }); - * - * subprocess.unref(); - * subprocess.ref(); - * ``` - * @since v0.7.10 - */ - ref(): void; - /** - * events.EventEmitter - * 1. close - * 2. disconnect - * 3. error - * 4. exit - * 5. message - * 6. spawn - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - addListener(event: "disconnect", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - addListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; - addListener(event: "spawn", listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "close", code: number | null, signal: NodeJS.Signals | null): boolean; - emit(event: "disconnect"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "exit", code: number | null, signal: NodeJS.Signals | null): boolean; - emit(event: "message", message: Serializable, sendHandle: SendHandle): boolean; - emit(event: "spawn", listener: () => void): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - on(event: "disconnect", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - on(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; - on(event: "spawn", listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - once(event: "disconnect", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - once(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; - once(event: "spawn", listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - prependListener(event: "disconnect", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "exit", listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - prependListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; - prependListener(event: "spawn", listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener( - event: "close", - listener: (code: number | null, signal: NodeJS.Signals | null) => void, - ): this; - prependOnceListener(event: "disconnect", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener( - event: "exit", - listener: (code: number | null, signal: NodeJS.Signals | null) => void, - ): this; - prependOnceListener(event: "message", listener: (message: Serializable, sendHandle: SendHandle) => void): this; - prependOnceListener(event: "spawn", listener: () => void): this; - } - // return this object when stdio option is undefined or not specified - interface ChildProcessWithoutNullStreams extends ChildProcess { - stdin: Writable; - stdout: Readable; - stderr: Readable; - readonly stdio: [ - Writable, - Readable, - Readable, - // stderr - Readable | Writable | null | undefined, - // extra, no modification - Readable | Writable | null | undefined, // extra, no modification - ]; - } - // return this object when stdio option is a tuple of 3 - interface ChildProcessByStdio - extends ChildProcess - { - stdin: I; - stdout: O; - stderr: E; - readonly stdio: [ - I, - O, - E, - Readable | Writable | null | undefined, - // extra, no modification - Readable | Writable | null | undefined, // extra, no modification - ]; - } - interface Control extends EventEmitter { - ref(): void; - unref(): void; - } - interface MessageOptions { - keepOpen?: boolean | undefined; - } - type IOType = "overlapped" | "pipe" | "ignore" | "inherit"; - type StdioOptions = IOType | Array; - type SerializationType = "json" | "advanced"; - interface MessagingOptions extends Abortable { - /** - * Specify the kind of serialization used for sending messages between processes. - * @default 'json' - */ - serialization?: SerializationType | undefined; - /** - * The signal value to be used when the spawned process will be killed by the abort signal. - * @default 'SIGTERM' - */ - killSignal?: NodeJS.Signals | number | undefined; - /** - * In milliseconds the maximum amount of time the process is allowed to run. - */ - timeout?: number | undefined; - } - interface ProcessEnvOptions { - uid?: number | undefined; - gid?: number | undefined; - cwd?: string | URL | undefined; - env?: NodeJS.ProcessEnv | undefined; - } - interface CommonOptions extends ProcessEnvOptions { - /** - * @default false - */ - windowsHide?: boolean | undefined; - /** - * @default 0 - */ - timeout?: number | undefined; - } - interface CommonSpawnOptions extends CommonOptions, MessagingOptions, Abortable { - argv0?: string | undefined; - /** - * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings. - * If passed as an array, the first element is used for `stdin`, the second for - * `stdout`, and the third for `stderr`. A fourth element can be used to - * specify the `stdio` behavior beyond the standard streams. See - * {@link ChildProcess.stdio} for more information. - * - * @default 'pipe' - */ - stdio?: StdioOptions | undefined; - shell?: boolean | string | undefined; - windowsVerbatimArguments?: boolean | undefined; - } - interface SpawnOptions extends CommonSpawnOptions { - detached?: boolean | undefined; - } - interface SpawnOptionsWithoutStdio extends SpawnOptions { - stdio?: StdioPipeNamed | StdioPipe[] | undefined; - } - type StdioNull = "inherit" | "ignore" | Stream; - type StdioPipeNamed = "pipe" | "overlapped"; - type StdioPipe = undefined | null | StdioPipeNamed; - interface SpawnOptionsWithStdioTuple< - Stdin extends StdioNull | StdioPipe, - Stdout extends StdioNull | StdioPipe, - Stderr extends StdioNull | StdioPipe, - > extends SpawnOptions { - stdio: [Stdin, Stdout, Stderr]; - } - /** - * The `child_process.spawn()` method spawns a new process using the given `command`, with command-line arguments in `args`. If omitted, `args` defaults - * to an empty array. - * - * **If the `shell` option is enabled, do not pass unsanitized user input to this** - * **function. Any input containing shell metacharacters may be used to trigger** - * **arbitrary command execution.** - * - * A third argument may be used to specify additional options, with these defaults: - * - * ```js - * const defaults = { - * cwd: undefined, - * env: process.env, - * }; - * ``` - * - * Use `cwd` to specify the working directory from which the process is spawned. - * If not given, the default is to inherit the current working directory. If given, - * but the path does not exist, the child process emits an `ENOENT` error - * and exits immediately. `ENOENT` is also emitted when the command - * does not exist. - * - * Use `env` to specify environment variables that will be visible to the new - * process, the default is `process.env`. - * - * `undefined` values in `env` will be ignored. - * - * Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the - * exit code: - * - * ```js - * import { spawn } from 'node:child_process'; - * const ls = spawn('ls', ['-lh', '/usr']); - * - * ls.stdout.on('data', (data) => { - * console.log(`stdout: ${data}`); - * }); - * - * ls.stderr.on('data', (data) => { - * console.error(`stderr: ${data}`); - * }); - * - * ls.on('close', (code) => { - * console.log(`child process exited with code ${code}`); - * }); - * ``` - * - * Example: A very elaborate way to run `ps ax | grep ssh` - * - * ```js - * import { spawn } from 'node:child_process'; - * const ps = spawn('ps', ['ax']); - * const grep = spawn('grep', ['ssh']); - * - * ps.stdout.on('data', (data) => { - * grep.stdin.write(data); - * }); - * - * ps.stderr.on('data', (data) => { - * console.error(`ps stderr: ${data}`); - * }); - * - * ps.on('close', (code) => { - * if (code !== 0) { - * console.log(`ps process exited with code ${code}`); - * } - * grep.stdin.end(); - * }); - * - * grep.stdout.on('data', (data) => { - * console.log(data.toString()); - * }); - * - * grep.stderr.on('data', (data) => { - * console.error(`grep stderr: ${data}`); - * }); - * - * grep.on('close', (code) => { - * if (code !== 0) { - * console.log(`grep process exited with code ${code}`); - * } - * }); - * ``` - * - * Example of checking for failed `spawn`: - * - * ```js - * import { spawn } from 'node:child_process'; - * const subprocess = spawn('bad_command'); - * - * subprocess.on('error', (err) => { - * console.error('Failed to start subprocess.'); - * }); - * ``` - * - * Certain platforms (macOS, Linux) will use the value of `argv[0]` for the process - * title while others (Windows, SunOS) will use `command`. - * - * Node.js overwrites `argv[0]` with `process.execPath` on startup, so `process.argv[0]` in a Node.js child process will not match the `argv0` parameter passed to `spawn` from the parent. Retrieve - * it with the `process.argv0` property instead. - * - * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.kill()` on the child process except - * the error passed to the callback will be an `AbortError`: - * - * ```js - * import { spawn } from 'node:child_process'; - * const controller = new AbortController(); - * const { signal } = controller; - * const grep = spawn('grep', ['ssh'], { signal }); - * grep.on('error', (err) => { - * // This will be called with err being an AbortError if the controller aborts - * }); - * controller.abort(); // Stops the child process - * ``` - * @since v0.1.90 - * @param command The command to run. - * @param args List of string arguments. - */ - function spawn(command: string, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn(command: string, options: SpawnOptions): ChildProcess; - // overloads of spawn with 'args' - function spawn( - command: string, - args?: readonly string[], - options?: SpawnOptionsWithoutStdio, - ): ChildProcessWithoutNullStreams; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn( - command: string, - args: readonly string[], - options: SpawnOptionsWithStdioTuple, - ): ChildProcessByStdio; - function spawn(command: string, args: readonly string[], options: SpawnOptions): ChildProcess; - interface ExecOptions extends CommonOptions { - shell?: string | undefined; - signal?: AbortSignal | undefined; - maxBuffer?: number | undefined; - killSignal?: NodeJS.Signals | number | undefined; - encoding?: string | null | undefined; - } - interface ExecOptionsWithStringEncoding extends ExecOptions { - encoding?: BufferEncoding | undefined; - } - interface ExecOptionsWithBufferEncoding extends ExecOptions { - encoding: "buffer" | null; // specify `null`. - } - // TODO: Just Plain Wrong™ (see also nodejs/node#57392) - interface ExecException extends Error { - cmd?: string; - killed?: boolean; - code?: number; - signal?: NodeJS.Signals; - stdout?: string; - stderr?: string; - } - /** - * Spawns a shell then executes the `command` within that shell, buffering any - * generated output. The `command` string passed to the exec function is processed - * directly by the shell and special characters (vary based on [shell](https://en.wikipedia.org/wiki/List_of_command-line_interpreters)) - * need to be dealt with accordingly: - * - * ```js - * import { exec } from 'node:child_process'; - * - * exec('"/path/to/test file/test.sh" arg1 arg2'); - * // Double quotes are used so that the space in the path is not interpreted as - * // a delimiter of multiple arguments. - * - * exec('echo "The \\$HOME variable is $HOME"'); - * // The $HOME variable is escaped in the first instance, but not in the second. - * ``` - * - * **Never pass unsanitized user input to this function. Any input containing shell** - * **metacharacters may be used to trigger arbitrary command execution.** - * - * If a `callback` function is provided, it is called with the arguments `(error, stdout, stderr)`. On success, `error` will be `null`. On error, `error` will be an instance of `Error`. The - * `error.code` property will be - * the exit code of the process. By convention, any exit code other than `0` indicates an error. `error.signal` will be the signal that terminated the - * process. - * - * The `stdout` and `stderr` arguments passed to the callback will contain the - * stdout and stderr output of the child process. By default, Node.js will decode - * the output as UTF-8 and pass strings to the callback. The `encoding` option - * can be used to specify the character encoding used to decode the stdout and - * stderr output. If `encoding` is `'buffer'`, or an unrecognized character - * encoding, `Buffer` objects will be passed to the callback instead. - * - * ```js - * import { exec } from 'node:child_process'; - * exec('cat *.js missing_file | wc -l', (error, stdout, stderr) => { - * if (error) { - * console.error(`exec error: ${error}`); - * return; - * } - * console.log(`stdout: ${stdout}`); - * console.error(`stderr: ${stderr}`); - * }); - * ``` - * - * If `timeout` is greater than `0`, the parent will send the signal - * identified by the `killSignal` property (the default is `'SIGTERM'`) if the - * child runs longer than `timeout` milliseconds. - * - * Unlike the [`exec(3)`](http://man7.org/linux/man-pages/man3/exec.3.html) POSIX system call, `child_process.exec()` does not replace - * the existing process and uses a shell to execute the command. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a `Promise` for an `Object` with `stdout` and `stderr` properties. The returned `ChildProcess` instance is attached to the `Promise` as a `child` property. In - * case of an error (including any error resulting in an exit code other than 0), a - * rejected promise is returned, with the same `error` object given in the - * callback, but with two additional properties `stdout` and `stderr`. - * - * ```js - * import util from 'node:util'; - * import child_process from 'node:child_process'; - * const exec = util.promisify(child_process.exec); - * - * async function lsExample() { - * const { stdout, stderr } = await exec('ls'); - * console.log('stdout:', stdout); - * console.error('stderr:', stderr); - * } - * lsExample(); - * ``` - * - * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.kill()` on the child process except - * the error passed to the callback will be an `AbortError`: - * - * ```js - * import { exec } from 'node:child_process'; - * const controller = new AbortController(); - * const { signal } = controller; - * const child = exec('grep ssh', { signal }, (error) => { - * console.error(error); // an AbortError - * }); - * controller.abort(); - * ``` - * @since v0.1.90 - * @param command The command to run, with space-separated arguments. - * @param callback called with the output when process terminates. - */ - function exec( - command: string, - callback?: (error: ExecException | null, stdout: string, stderr: string) => void, - ): ChildProcess; - // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`. - function exec( - command: string, - options: ExecOptionsWithBufferEncoding, - callback?: (error: ExecException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void, - ): ChildProcess; - // `options` with well-known or absent `encoding` means stdout/stderr are definitely `string`. - function exec( - command: string, - options: ExecOptionsWithStringEncoding, - callback?: (error: ExecException | null, stdout: string, stderr: string) => void, - ): ChildProcess; - // fallback if nothing else matches. Worst case is always `string | Buffer`. - function exec( - command: string, - options: ExecOptions | undefined | null, - callback?: ( - error: ExecException | null, - stdout: string | NonSharedBuffer, - stderr: string | NonSharedBuffer, - ) => void, - ): ChildProcess; - interface PromiseWithChild extends Promise { - child: ChildProcess; - } - namespace exec { - function __promisify__(command: string): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - command: string, - options: ExecOptionsWithBufferEncoding, - ): PromiseWithChild<{ - stdout: NonSharedBuffer; - stderr: NonSharedBuffer; - }>; - function __promisify__( - command: string, - options: ExecOptionsWithStringEncoding, - ): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - command: string, - options: ExecOptions | undefined | null, - ): PromiseWithChild<{ - stdout: string | NonSharedBuffer; - stderr: string | NonSharedBuffer; - }>; - } - interface ExecFileOptions extends CommonOptions, Abortable { - maxBuffer?: number | undefined; - killSignal?: NodeJS.Signals | number | undefined; - windowsVerbatimArguments?: boolean | undefined; - shell?: boolean | string | undefined; - signal?: AbortSignal | undefined; - encoding?: string | null | undefined; - } - interface ExecFileOptionsWithStringEncoding extends ExecFileOptions { - encoding?: BufferEncoding | undefined; - } - interface ExecFileOptionsWithBufferEncoding extends ExecFileOptions { - encoding: "buffer" | null; - } - /** @deprecated Use `ExecFileOptions` instead. */ - interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {} - // TODO: execFile exceptions can take many forms... this accurately describes none of them - type ExecFileException = - & Omit - & Omit - & { code?: string | number | null }; - /** - * The `child_process.execFile()` function is similar to {@link exec} except that it does not spawn a shell by default. Rather, the specified - * executable `file` is spawned directly as a new process making it slightly more - * efficient than {@link exec}. - * - * The same options as {@link exec} are supported. Since a shell is - * not spawned, behaviors such as I/O redirection and file globbing are not - * supported. - * - * ```js - * import { execFile } from 'node:child_process'; - * const child = execFile('node', ['--version'], (error, stdout, stderr) => { - * if (error) { - * throw error; - * } - * console.log(stdout); - * }); - * ``` - * - * The `stdout` and `stderr` arguments passed to the callback will contain the - * stdout and stderr output of the child process. By default, Node.js will decode - * the output as UTF-8 and pass strings to the callback. The `encoding` option - * can be used to specify the character encoding used to decode the stdout and - * stderr output. If `encoding` is `'buffer'`, or an unrecognized character - * encoding, `Buffer` objects will be passed to the callback instead. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a `Promise` for an `Object` with `stdout` and `stderr` properties. The returned `ChildProcess` instance is attached to the `Promise` as a `child` property. In - * case of an error (including any error resulting in an exit code other than 0), a - * rejected promise is returned, with the same `error` object given in the - * callback, but with two additional properties `stdout` and `stderr`. - * - * ```js - * import util from 'node:util'; - * import child_process from 'node:child_process'; - * const execFile = util.promisify(child_process.execFile); - * async function getVersion() { - * const { stdout } = await execFile('node', ['--version']); - * console.log(stdout); - * } - * getVersion(); - * ``` - * - * **If the `shell` option is enabled, do not pass unsanitized user input to this** - * **function. Any input containing shell metacharacters may be used to trigger** - * **arbitrary command execution.** - * - * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.kill()` on the child process except - * the error passed to the callback will be an `AbortError`: - * - * ```js - * import { execFile } from 'node:child_process'; - * const controller = new AbortController(); - * const { signal } = controller; - * const child = execFile('node', ['--version'], { signal }, (error) => { - * console.error(error); // an AbortError - * }); - * controller.abort(); - * ``` - * @since v0.1.91 - * @param file The name or path of the executable file to run. - * @param args List of string arguments. - * @param callback Called with the output when process terminates. - */ - // no `options` definitely means stdout/stderr are `string`. - function execFile( - file: string, - callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void, - ): ChildProcess; - function execFile( - file: string, - args: readonly string[] | undefined | null, - callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void, - ): ChildProcess; - // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`. - function execFile( - file: string, - options: ExecFileOptionsWithBufferEncoding, - callback?: (error: ExecFileException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void, - ): ChildProcess; - function execFile( - file: string, - args: readonly string[] | undefined | null, - options: ExecFileOptionsWithBufferEncoding, - callback?: (error: ExecFileException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void, - ): ChildProcess; - // `options` with well-known or absent `encoding` means stdout/stderr are definitely `string`. - function execFile( - file: string, - options: ExecFileOptionsWithStringEncoding, - callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void, - ): ChildProcess; - function execFile( - file: string, - args: readonly string[] | undefined | null, - options: ExecFileOptionsWithStringEncoding, - callback?: (error: ExecFileException | null, stdout: string, stderr: string) => void, - ): ChildProcess; - // fallback if nothing else matches. Worst case is always `string | Buffer`. - function execFile( - file: string, - options: ExecFileOptions | undefined | null, - callback: - | (( - error: ExecFileException | null, - stdout: string | NonSharedBuffer, - stderr: string | NonSharedBuffer, - ) => void) - | undefined - | null, - ): ChildProcess; - function execFile( - file: string, - args: readonly string[] | undefined | null, - options: ExecFileOptions | undefined | null, - callback: - | (( - error: ExecFileException | null, - stdout: string | NonSharedBuffer, - stderr: string | NonSharedBuffer, - ) => void) - | undefined - | null, - ): ChildProcess; - namespace execFile { - function __promisify__(file: string): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - file: string, - args: readonly string[] | undefined | null, - ): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - file: string, - options: ExecFileOptionsWithBufferEncoding, - ): PromiseWithChild<{ - stdout: NonSharedBuffer; - stderr: NonSharedBuffer; - }>; - function __promisify__( - file: string, - args: readonly string[] | undefined | null, - options: ExecFileOptionsWithBufferEncoding, - ): PromiseWithChild<{ - stdout: NonSharedBuffer; - stderr: NonSharedBuffer; - }>; - function __promisify__( - file: string, - options: ExecFileOptionsWithStringEncoding, - ): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - file: string, - args: readonly string[] | undefined | null, - options: ExecFileOptionsWithStringEncoding, - ): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - file: string, - options: ExecFileOptions | undefined | null, - ): PromiseWithChild<{ - stdout: string | NonSharedBuffer; - stderr: string | NonSharedBuffer; - }>; - function __promisify__( - file: string, - args: readonly string[] | undefined | null, - options: ExecFileOptions | undefined | null, - ): PromiseWithChild<{ - stdout: string | NonSharedBuffer; - stderr: string | NonSharedBuffer; - }>; - } - interface ForkOptions extends ProcessEnvOptions, MessagingOptions, Abortable { - execPath?: string | undefined; - execArgv?: string[] | undefined; - silent?: boolean | undefined; - /** - * Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings. - * If passed as an array, the first element is used for `stdin`, the second for - * `stdout`, and the third for `stderr`. A fourth element can be used to - * specify the `stdio` behavior beyond the standard streams. See - * {@link ChildProcess.stdio} for more information. - * - * @default 'pipe' - */ - stdio?: StdioOptions | undefined; - detached?: boolean | undefined; - windowsVerbatimArguments?: boolean | undefined; - } - /** - * The `child_process.fork()` method is a special case of {@link spawn} used specifically to spawn new Node.js processes. - * Like {@link spawn}, a `ChildProcess` object is returned. The - * returned `ChildProcess` will have an additional communication channel - * built-in that allows messages to be passed back and forth between the parent and - * child. See `subprocess.send()` for details. - * - * Keep in mind that spawned Node.js child processes are - * independent of the parent with exception of the IPC communication channel - * that is established between the two. Each process has its own memory, with - * their own V8 instances. Because of the additional resource allocations - * required, spawning a large number of child Node.js processes is not - * recommended. - * - * By default, `child_process.fork()` will spawn new Node.js instances using the `process.execPath` of the parent process. The `execPath` property in the `options` object allows for an alternative - * execution path to be used. - * - * Node.js processes launched with a custom `execPath` will communicate with the - * parent process using the file descriptor (fd) identified using the - * environment variable `NODE_CHANNEL_FD` on the child process. - * - * Unlike the [`fork(2)`](http://man7.org/linux/man-pages/man2/fork.2.html) POSIX system call, `child_process.fork()` does not clone the - * current process. - * - * The `shell` option available in {@link spawn} is not supported by `child_process.fork()` and will be ignored if set. - * - * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.kill()` on the child process except - * the error passed to the callback will be an `AbortError`: - * - * ```js - * if (process.argv[2] === 'child') { - * setTimeout(() => { - * console.log(`Hello from ${process.argv[2]}!`); - * }, 1_000); - * } else { - * import { fork } from 'node:child_process'; - * const controller = new AbortController(); - * const { signal } = controller; - * const child = fork(__filename, ['child'], { signal }); - * child.on('error', (err) => { - * // This will be called with err being an AbortError if the controller aborts - * }); - * controller.abort(); // Stops the child process - * } - * ``` - * @since v0.5.0 - * @param modulePath The module to run in the child. - * @param args List of string arguments. - */ - function fork(modulePath: string | URL, options?: ForkOptions): ChildProcess; - function fork(modulePath: string | URL, args?: readonly string[], options?: ForkOptions): ChildProcess; - interface SpawnSyncOptions extends CommonSpawnOptions { - input?: string | NodeJS.ArrayBufferView | undefined; - maxBuffer?: number | undefined; - encoding?: BufferEncoding | "buffer" | null | undefined; - } - interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions { - encoding: BufferEncoding; - } - interface SpawnSyncOptionsWithBufferEncoding extends SpawnSyncOptions { - encoding?: "buffer" | null | undefined; - } - interface SpawnSyncReturns { - pid: number; - output: Array; - stdout: T; - stderr: T; - status: number | null; - signal: NodeJS.Signals | null; - error?: Error; - } - /** - * The `child_process.spawnSync()` method is generally identical to {@link spawn} with the exception that the function will not return - * until the child process has fully closed. When a timeout has been encountered - * and `killSignal` is sent, the method won't return until the process has - * completely exited. If the process intercepts and handles the `SIGTERM` signal - * and doesn't exit, the parent process will wait until the child process has - * exited. - * - * **If the `shell` option is enabled, do not pass unsanitized user input to this** - * **function. Any input containing shell metacharacters may be used to trigger** - * **arbitrary command execution.** - * @since v0.11.12 - * @param command The command to run. - * @param args List of string arguments. - */ - function spawnSync(command: string): SpawnSyncReturns; - function spawnSync(command: string, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns; - function spawnSync(command: string, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns; - function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns; - function spawnSync(command: string, args: readonly string[]): SpawnSyncReturns; - function spawnSync( - command: string, - args: readonly string[], - options: SpawnSyncOptionsWithStringEncoding, - ): SpawnSyncReturns; - function spawnSync( - command: string, - args: readonly string[], - options: SpawnSyncOptionsWithBufferEncoding, - ): SpawnSyncReturns; - function spawnSync( - command: string, - args?: readonly string[], - options?: SpawnSyncOptions, - ): SpawnSyncReturns; - interface CommonExecOptions extends CommonOptions { - input?: string | NodeJS.ArrayBufferView | undefined; - /** - * Can be set to 'pipe', 'inherit, or 'ignore', or an array of these strings. - * If passed as an array, the first element is used for `stdin`, the second for - * `stdout`, and the third for `stderr`. A fourth element can be used to - * specify the `stdio` behavior beyond the standard streams. See - * {@link ChildProcess.stdio} for more information. - * - * @default 'pipe' - */ - stdio?: StdioOptions | undefined; - killSignal?: NodeJS.Signals | number | undefined; - maxBuffer?: number | undefined; - encoding?: BufferEncoding | "buffer" | null | undefined; - } - interface ExecSyncOptions extends CommonExecOptions { - shell?: string | undefined; - } - interface ExecSyncOptionsWithStringEncoding extends ExecSyncOptions { - encoding: BufferEncoding; - } - interface ExecSyncOptionsWithBufferEncoding extends ExecSyncOptions { - encoding?: "buffer" | null | undefined; - } - /** - * The `child_process.execSync()` method is generally identical to {@link exec} with the exception that the method will not return - * until the child process has fully closed. When a timeout has been encountered - * and `killSignal` is sent, the method won't return until the process has - * completely exited. If the child process intercepts and handles the `SIGTERM` signal and doesn't exit, the parent process will wait until the child process - * has exited. - * - * If the process times out or has a non-zero exit code, this method will throw. - * The `Error` object will contain the entire result from {@link spawnSync}. - * - * **Never pass unsanitized user input to this function. Any input containing shell** - * **metacharacters may be used to trigger arbitrary command execution.** - * @since v0.11.12 - * @param command The command to run. - * @return The stdout from the command. - */ - function execSync(command: string): NonSharedBuffer; - function execSync(command: string, options: ExecSyncOptionsWithStringEncoding): string; - function execSync(command: string, options: ExecSyncOptionsWithBufferEncoding): NonSharedBuffer; - function execSync(command: string, options?: ExecSyncOptions): string | NonSharedBuffer; - interface ExecFileSyncOptions extends CommonExecOptions { - shell?: boolean | string | undefined; - } - interface ExecFileSyncOptionsWithStringEncoding extends ExecFileSyncOptions { - encoding: BufferEncoding; - } - interface ExecFileSyncOptionsWithBufferEncoding extends ExecFileSyncOptions { - encoding?: "buffer" | null | undefined; // specify `null`. - } - /** - * The `child_process.execFileSync()` method is generally identical to {@link execFile} with the exception that the method will not - * return until the child process has fully closed. When a timeout has been - * encountered and `killSignal` is sent, the method won't return until the process - * has completely exited. - * - * If the child process intercepts and handles the `SIGTERM` signal and - * does not exit, the parent process will still wait until the child process has - * exited. - * - * If the process times out or has a non-zero exit code, this method will throw an `Error` that will include the full result of the underlying {@link spawnSync}. - * - * **If the `shell` option is enabled, do not pass unsanitized user input to this** - * **function. Any input containing shell metacharacters may be used to trigger** - * **arbitrary command execution.** - * @since v0.11.12 - * @param file The name or path of the executable file to run. - * @param args List of string arguments. - * @return The stdout from the command. - */ - function execFileSync(file: string): NonSharedBuffer; - function execFileSync(file: string, options: ExecFileSyncOptionsWithStringEncoding): string; - function execFileSync(file: string, options: ExecFileSyncOptionsWithBufferEncoding): NonSharedBuffer; - function execFileSync(file: string, options?: ExecFileSyncOptions): string | NonSharedBuffer; - function execFileSync(file: string, args: readonly string[]): NonSharedBuffer; - function execFileSync( - file: string, - args: readonly string[], - options: ExecFileSyncOptionsWithStringEncoding, - ): string; - function execFileSync( - file: string, - args: readonly string[], - options: ExecFileSyncOptionsWithBufferEncoding, - ): NonSharedBuffer; - function execFileSync( - file: string, - args?: readonly string[], - options?: ExecFileSyncOptions, - ): string | NonSharedBuffer; -} -declare module "node:child_process" { - export * from "child_process"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/cluster.d.ts b/build_vtk_bundle/node_modules/@types/node/cluster.d.ts deleted file mode 100644 index cdbc2190..00000000 --- a/build_vtk_bundle/node_modules/@types/node/cluster.d.ts +++ /dev/null @@ -1,578 +0,0 @@ -/** - * Clusters of Node.js processes can be used to run multiple instances of Node.js - * that can distribute workloads among their application threads. When process isolation - * is not needed, use the [`worker_threads`](https://nodejs.org/docs/latest-v24.x/api/worker_threads.html) - * module instead, which allows running multiple application threads within a single Node.js instance. - * - * The cluster module allows easy creation of child processes that all share - * server ports. - * - * ```js - * import cluster from 'node:cluster'; - * import http from 'node:http'; - * import { availableParallelism } from 'node:os'; - * import process from 'node:process'; - * - * const numCPUs = availableParallelism(); - * - * if (cluster.isPrimary) { - * console.log(`Primary ${process.pid} is running`); - * - * // Fork workers. - * for (let i = 0; i < numCPUs; i++) { - * cluster.fork(); - * } - * - * cluster.on('exit', (worker, code, signal) => { - * console.log(`worker ${worker.process.pid} died`); - * }); - * } else { - * // Workers can share any TCP connection - * // In this case it is an HTTP server - * http.createServer((req, res) => { - * res.writeHead(200); - * res.end('hello world\n'); - * }).listen(8000); - * - * console.log(`Worker ${process.pid} started`); - * } - * ``` - * - * Running Node.js will now share port 8000 between the workers: - * - * ```console - * $ node server.js - * Primary 3596 is running - * Worker 4324 started - * Worker 4520 started - * Worker 6056 started - * Worker 5644 started - * ``` - * - * On Windows, it is not yet possible to set up a named pipe server in a worker. - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/cluster.js) - */ -declare module "cluster" { - import * as child from "node:child_process"; - import EventEmitter = require("node:events"); - import * as net from "node:net"; - type SerializationType = "json" | "advanced"; - export interface ClusterSettings { - /** - * List of string arguments passed to the Node.js executable. - * @default process.execArgv - */ - execArgv?: string[] | undefined; - /** - * File path to worker file. - * @default process.argv[1] - */ - exec?: string | undefined; - /** - * String arguments passed to worker. - * @default process.argv.slice(2) - */ - args?: readonly string[] | undefined; - /** - * Whether or not to send output to parent's stdio. - * @default false - */ - silent?: boolean | undefined; - /** - * Configures the stdio of forked processes. Because the cluster module relies on IPC to function, this configuration must - * contain an `'ipc'` entry. When this option is provided, it overrides `silent`. See [`child_prcess.spawn()`](https://nodejs.org/docs/latest-v24.x/api/child_process.html#child_processspawncommand-args-options)'s - * [`stdio`](https://nodejs.org/docs/latest-v24.x/api/child_process.html#optionsstdio). - */ - stdio?: any[] | undefined; - /** - * Sets the user identity of the process. (See [`setuid(2)`](https://man7.org/linux/man-pages/man2/setuid.2.html).) - */ - uid?: number | undefined; - /** - * Sets the group identity of the process. (See [`setgid(2)`](https://man7.org/linux/man-pages/man2/setgid.2.html).) - */ - gid?: number | undefined; - /** - * Sets inspector port of worker. This can be a number, or a function that takes no arguments and returns a number. - * By default each worker gets its own port, incremented from the primary's `process.debugPort`. - */ - inspectPort?: number | (() => number) | undefined; - /** - * Specify the kind of serialization used for sending messages between processes. Possible values are `'json'` and `'advanced'`. - * See [Advanced serialization for `child_process`](https://nodejs.org/docs/latest-v24.x/api/child_process.html#advanced-serialization) for more details. - * @default false - */ - serialization?: SerializationType | undefined; - /** - * Current working directory of the worker process. - * @default undefined (inherits from parent process) - */ - cwd?: string | undefined; - /** - * Hide the forked processes console window that would normally be created on Windows systems. - * @default false - */ - windowsHide?: boolean | undefined; - } - export interface Address { - address: string; - port: number; - /** - * The `addressType` is one of: - * - * * `4` (TCPv4) - * * `6` (TCPv6) - * * `-1` (Unix domain socket) - * * `'udp4'` or `'udp6'` (UDPv4 or UDPv6) - */ - addressType: 4 | 6 | -1 | "udp4" | "udp6"; - } - /** - * A `Worker` object contains all public information and method about a worker. - * In the primary it can be obtained using `cluster.workers`. In a worker - * it can be obtained using `cluster.worker`. - * @since v0.7.0 - */ - export class Worker extends EventEmitter { - /** - * Each new worker is given its own unique id, this id is stored in the `id`. - * - * While a worker is alive, this is the key that indexes it in `cluster.workers`. - * @since v0.8.0 - */ - id: number; - /** - * All workers are created using [`child_process.fork()`](https://nodejs.org/docs/latest-v24.x/api/child_process.html#child_processforkmodulepath-args-options), the returned object - * from this function is stored as `.process`. In a worker, the global `process` is stored. - * - * See: [Child Process module](https://nodejs.org/docs/latest-v24.x/api/child_process.html#child_processforkmodulepath-args-options). - * - * Workers will call `process.exit(0)` if the `'disconnect'` event occurs - * on `process` and `.exitedAfterDisconnect` is not `true`. This protects against - * accidental disconnection. - * @since v0.7.0 - */ - process: child.ChildProcess; - /** - * Send a message to a worker or primary, optionally with a handle. - * - * In the primary, this sends a message to a specific worker. It is identical to [`ChildProcess.send()`](https://nodejs.org/docs/latest-v24.x/api/child_process.html#subprocesssendmessage-sendhandle-options-callback). - * - * In a worker, this sends a message to the primary. It is identical to `process.send()`. - * - * This example will echo back all messages from the primary: - * - * ```js - * if (cluster.isPrimary) { - * const worker = cluster.fork(); - * worker.send('hi there'); - * - * } else if (cluster.isWorker) { - * process.on('message', (msg) => { - * process.send(msg); - * }); - * } - * ``` - * @since v0.7.0 - * @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. - */ - send(message: child.Serializable, callback?: (error: Error | null) => void): boolean; - send( - message: child.Serializable, - sendHandle: child.SendHandle, - callback?: (error: Error | null) => void, - ): boolean; - send( - message: child.Serializable, - sendHandle: child.SendHandle, - options?: child.MessageOptions, - callback?: (error: Error | null) => void, - ): boolean; - /** - * This function will kill the worker. In the primary worker, it does this by - * disconnecting the `worker.process`, and once disconnected, killing with `signal`. In the worker, it does it by killing the process with `signal`. - * - * The `kill()` function kills the worker process without waiting for a graceful - * disconnect, it has the same behavior as `worker.process.kill()`. - * - * This method is aliased as `worker.destroy()` for backwards compatibility. - * - * In a worker, `process.kill()` exists, but it is not this function; - * it is [`kill()`](https://nodejs.org/docs/latest-v24.x/api/process.html#processkillpid-signal). - * @since v0.9.12 - * @param [signal='SIGTERM'] Name of the kill signal to send to the worker process. - */ - kill(signal?: string): void; - destroy(signal?: string): void; - /** - * In a worker, this function will close all servers, wait for the `'close'` event - * on those servers, and then disconnect the IPC channel. - * - * In the primary, an internal message is sent to the worker causing it to call `.disconnect()` on itself. - * - * Causes `.exitedAfterDisconnect` to be set. - * - * After a server is closed, it will no longer accept new connections, - * but connections may be accepted by any other listening worker. Existing - * connections will be allowed to close as usual. When no more connections exist, - * see `server.close()`, the IPC channel to the worker will close allowing it - * to die gracefully. - * - * The above applies _only_ to server connections, client connections are not - * automatically closed by workers, and disconnect does not wait for them to close - * before exiting. - * - * In a worker, `process.disconnect` exists, but it is not this function; - * it is `disconnect()`. - * - * Because long living server connections may block workers from disconnecting, it - * may be useful to send a message, so application specific actions may be taken to - * close them. It also may be useful to implement a timeout, killing a worker if - * the `'disconnect'` event has not been emitted after some time. - * - * ```js - * import net from 'node:net'; - * - * if (cluster.isPrimary) { - * const worker = cluster.fork(); - * let timeout; - * - * worker.on('listening', (address) => { - * worker.send('shutdown'); - * worker.disconnect(); - * timeout = setTimeout(() => { - * worker.kill(); - * }, 2000); - * }); - * - * worker.on('disconnect', () => { - * clearTimeout(timeout); - * }); - * - * } else if (cluster.isWorker) { - * const server = net.createServer((socket) => { - * // Connections never end - * }); - * - * server.listen(8000); - * - * process.on('message', (msg) => { - * if (msg === 'shutdown') { - * // Initiate graceful close of any connections to server - * } - * }); - * } - * ``` - * @since v0.7.7 - * @return A reference to `worker`. - */ - disconnect(): this; - /** - * This function returns `true` if the worker is connected to its primary via its - * IPC channel, `false` otherwise. A worker is connected to its primary after it - * has been created. It is disconnected after the `'disconnect'` event is emitted. - * @since v0.11.14 - */ - isConnected(): boolean; - /** - * This function returns `true` if the worker's process has terminated (either - * because of exiting or being signaled). Otherwise, it returns `false`. - * - * ```js - * import cluster from 'node:cluster'; - * import http from 'node:http'; - * import { availableParallelism } from 'node:os'; - * import process from 'node:process'; - * - * const numCPUs = availableParallelism(); - * - * if (cluster.isPrimary) { - * console.log(`Primary ${process.pid} is running`); - * - * // Fork workers. - * for (let i = 0; i < numCPUs; i++) { - * cluster.fork(); - * } - * - * cluster.on('fork', (worker) => { - * console.log('worker is dead:', worker.isDead()); - * }); - * - * cluster.on('exit', (worker, code, signal) => { - * console.log('worker is dead:', worker.isDead()); - * }); - * } else { - * // Workers can share any TCP connection. In this case, it is an HTTP server. - * http.createServer((req, res) => { - * res.writeHead(200); - * res.end(`Current process\n ${process.pid}`); - * process.kill(process.pid); - * }).listen(8000); - * } - * ``` - * @since v0.11.14 - */ - isDead(): boolean; - /** - * This property is `true` if the worker exited due to `.disconnect()`. - * If the worker exited any other way, it is `false`. If the - * worker has not exited, it is `undefined`. - * - * The boolean `worker.exitedAfterDisconnect` allows distinguishing between - * voluntary and accidental exit, the primary may choose not to respawn a worker - * based on this value. - * - * ```js - * cluster.on('exit', (worker, code, signal) => { - * if (worker.exitedAfterDisconnect === true) { - * console.log('Oh, it was just voluntary – no need to worry'); - * } - * }); - * - * // kill worker - * worker.kill(); - * ``` - * @since v6.0.0 - */ - exitedAfterDisconnect: boolean; - /** - * events.EventEmitter - * 1. disconnect - * 2. error - * 3. exit - * 4. listening - * 5. message - * 6. online - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "disconnect", listener: () => void): this; - addListener(event: "error", listener: (error: Error) => void): this; - addListener(event: "exit", listener: (code: number, signal: string) => void): this; - addListener(event: "listening", listener: (address: Address) => void): this; - addListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - addListener(event: "online", listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "disconnect"): boolean; - emit(event: "error", error: Error): boolean; - emit(event: "exit", code: number, signal: string): boolean; - emit(event: "listening", address: Address): boolean; - emit(event: "message", message: any, handle: net.Socket | net.Server): boolean; - emit(event: "online"): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "disconnect", listener: () => void): this; - on(event: "error", listener: (error: Error) => void): this; - on(event: "exit", listener: (code: number, signal: string) => void): this; - on(event: "listening", listener: (address: Address) => void): this; - on(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - on(event: "online", listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "disconnect", listener: () => void): this; - once(event: "error", listener: (error: Error) => void): this; - once(event: "exit", listener: (code: number, signal: string) => void): this; - once(event: "listening", listener: (address: Address) => void): this; - once(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - once(event: "online", listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "disconnect", listener: () => void): this; - prependListener(event: "error", listener: (error: Error) => void): this; - prependListener(event: "exit", listener: (code: number, signal: string) => void): this; - prependListener(event: "listening", listener: (address: Address) => void): this; - prependListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - prependListener(event: "online", listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "disconnect", listener: () => void): this; - prependOnceListener(event: "error", listener: (error: Error) => void): this; - prependOnceListener(event: "exit", listener: (code: number, signal: string) => void): this; - prependOnceListener(event: "listening", listener: (address: Address) => void): this; - prependOnceListener(event: "message", listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - prependOnceListener(event: "online", listener: () => void): this; - } - export interface Cluster extends EventEmitter { - disconnect(callback?: () => void): void; - /** - * Spawn a new worker process. - * - * This can only be called from the primary process. - * @param env Key/value pairs to add to worker process environment. - * @since v0.6.0 - */ - fork(env?: any): Worker; - /** @deprecated since v16.0.0 - use isPrimary. */ - readonly isMaster: boolean; - /** - * True if the process is a primary. This is determined by the `process.env.NODE_UNIQUE_ID`. If `process.env.NODE_UNIQUE_ID` - * is undefined, then `isPrimary` is `true`. - * @since v16.0.0 - */ - readonly isPrimary: boolean; - /** - * True if the process is not a primary (it is the negation of `cluster.isPrimary`). - * @since v0.6.0 - */ - readonly isWorker: boolean; - /** - * The scheduling policy, either `cluster.SCHED_RR` for round-robin or `cluster.SCHED_NONE` to leave it to the operating system. This is a - * global setting and effectively frozen once either the first worker is spawned, or [`.setupPrimary()`](https://nodejs.org/docs/latest-v24.x/api/cluster.html#clustersetupprimarysettings) - * is called, whichever comes first. - * - * `SCHED_RR` is the default on all operating systems except Windows. Windows will change to `SCHED_RR` once libuv is able to effectively distribute - * IOCP handles without incurring a large performance hit. - * - * `cluster.schedulingPolicy` can also be set through the `NODE_CLUSTER_SCHED_POLICY` environment variable. Valid values are `'rr'` and `'none'`. - * @since v0.11.2 - */ - schedulingPolicy: number; - /** - * After calling [`.setupPrimary()`](https://nodejs.org/docs/latest-v24.x/api/cluster.html#clustersetupprimarysettings) - * (or [`.fork()`](https://nodejs.org/docs/latest-v24.x/api/cluster.html#clusterforkenv)) this settings object will contain - * the settings, including the default values. - * - * This object is not intended to be changed or set manually. - * @since v0.7.1 - */ - readonly settings: ClusterSettings; - /** @deprecated since v16.0.0 - use [`.setupPrimary()`](https://nodejs.org/docs/latest-v24.x/api/cluster.html#clustersetupprimarysettings) instead. */ - setupMaster(settings?: ClusterSettings): void; - /** - * `setupPrimary` is used to change the default 'fork' behavior. Once called, the settings will be present in `cluster.settings`. - * - * Any settings changes only affect future calls to [`.fork()`](https://nodejs.org/docs/latest-v24.x/api/cluster.html#clusterforkenv) - * and have no effect on workers that are already running. - * - * The only attribute of a worker that cannot be set via `.setupPrimary()` is the `env` passed to - * [`.fork()`](https://nodejs.org/docs/latest-v24.x/api/cluster.html#clusterforkenv). - * - * The defaults above apply to the first call only; the defaults for later calls are the current values at the time of - * `cluster.setupPrimary()` is called. - * - * ```js - * import cluster from 'node:cluster'; - * - * cluster.setupPrimary({ - * exec: 'worker.js', - * args: ['--use', 'https'], - * silent: true, - * }); - * cluster.fork(); // https worker - * cluster.setupPrimary({ - * exec: 'worker.js', - * args: ['--use', 'http'], - * }); - * cluster.fork(); // http worker - * ``` - * - * This can only be called from the primary process. - * @since v16.0.0 - */ - setupPrimary(settings?: ClusterSettings): void; - /** - * A reference to the current worker object. Not available in the primary process. - * - * ```js - * import cluster from 'node:cluster'; - * - * if (cluster.isPrimary) { - * console.log('I am primary'); - * cluster.fork(); - * cluster.fork(); - * } else if (cluster.isWorker) { - * console.log(`I am worker #${cluster.worker.id}`); - * } - * ``` - * @since v0.7.0 - */ - readonly worker?: Worker; - /** - * A hash that stores the active worker objects, keyed by `id` field. This makes it easy to loop through all the workers. It is only available in the primary process. - * - * A worker is removed from `cluster.workers` after the worker has disconnected _and_ exited. The order between these two events cannot be determined in advance. However, it - * is guaranteed that the removal from the `cluster.workers` list happens before the last `'disconnect'` or `'exit'` event is emitted. - * - * ```js - * import cluster from 'node:cluster'; - * - * for (const worker of Object.values(cluster.workers)) { - * worker.send('big announcement to all workers'); - * } - * ``` - * @since v0.7.0 - */ - readonly workers?: NodeJS.Dict; - readonly SCHED_NONE: number; - readonly SCHED_RR: number; - /** - * events.EventEmitter - * 1. disconnect - * 2. exit - * 3. fork - * 4. listening - * 5. message - * 6. online - * 7. setup - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "disconnect", listener: (worker: Worker) => void): this; - addListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; - addListener(event: "fork", listener: (worker: Worker) => void): this; - addListener(event: "listening", listener: (worker: Worker, address: Address) => void): this; - addListener( - event: "message", - listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void, - ): this; // the handle is a net.Socket or net.Server object, or undefined. - addListener(event: "online", listener: (worker: Worker) => void): this; - addListener(event: "setup", listener: (settings: ClusterSettings) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "disconnect", worker: Worker): boolean; - emit(event: "exit", worker: Worker, code: number, signal: string): boolean; - emit(event: "fork", worker: Worker): boolean; - emit(event: "listening", worker: Worker, address: Address): boolean; - emit(event: "message", worker: Worker, message: any, handle: net.Socket | net.Server): boolean; - emit(event: "online", worker: Worker): boolean; - emit(event: "setup", settings: ClusterSettings): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "disconnect", listener: (worker: Worker) => void): this; - on(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; - on(event: "fork", listener: (worker: Worker) => void): this; - on(event: "listening", listener: (worker: Worker, address: Address) => void): this; - on(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - on(event: "online", listener: (worker: Worker) => void): this; - on(event: "setup", listener: (settings: ClusterSettings) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "disconnect", listener: (worker: Worker) => void): this; - once(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; - once(event: "fork", listener: (worker: Worker) => void): this; - once(event: "listening", listener: (worker: Worker, address: Address) => void): this; - once(event: "message", listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - once(event: "online", listener: (worker: Worker) => void): this; - once(event: "setup", listener: (settings: ClusterSettings) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "disconnect", listener: (worker: Worker) => void): this; - prependListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; - prependListener(event: "fork", listener: (worker: Worker) => void): this; - prependListener(event: "listening", listener: (worker: Worker, address: Address) => void): this; - prependListener( - event: "message", - listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void, - ): this; - prependListener(event: "online", listener: (worker: Worker) => void): this; - prependListener(event: "setup", listener: (settings: ClusterSettings) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "disconnect", listener: (worker: Worker) => void): this; - prependOnceListener(event: "exit", listener: (worker: Worker, code: number, signal: string) => void): this; - prependOnceListener(event: "fork", listener: (worker: Worker) => void): this; - prependOnceListener(event: "listening", listener: (worker: Worker, address: Address) => void): this; - // the handle is a net.Socket or net.Server object, or undefined. - prependOnceListener( - event: "message", - listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void, - ): this; - prependOnceListener(event: "online", listener: (worker: Worker) => void): this; - prependOnceListener(event: "setup", listener: (settings: ClusterSettings) => void): this; - } - const cluster: Cluster; - export default cluster; -} -declare module "node:cluster" { - export * from "cluster"; - export { default as default } from "cluster"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/compatibility/iterators.d.ts b/build_vtk_bundle/node_modules/@types/node/compatibility/iterators.d.ts deleted file mode 100644 index 156e7856..00000000 --- a/build_vtk_bundle/node_modules/@types/node/compatibility/iterators.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -// Backwards-compatible iterator interfaces, augmented with iterator helper methods by lib.esnext.iterator in TypeScript 5.6. -// The IterableIterator interface does not contain these methods, which creates assignability issues in places where IteratorObjects -// are expected (eg. DOM-compatible APIs) if lib.esnext.iterator is loaded. -// Also ensures that iterators returned by the Node API, which inherit from Iterator.prototype, correctly expose the iterator helper methods -// if lib.esnext.iterator is loaded. -// TODO: remove once this package no longer supports TS 5.5, and replace NodeJS.BuiltinIteratorReturn with BuiltinIteratorReturn. - -// Placeholders for TS <5.6 -interface IteratorObject {} -interface AsyncIteratorObject {} - -declare namespace NodeJS { - // Populate iterator methods for TS <5.6 - interface Iterator extends globalThis.Iterator {} - interface AsyncIterator extends globalThis.AsyncIterator {} - - // Polyfill for TS 5.6's instrinsic BuiltinIteratorReturn type, required for DOM-compatible iterators - type BuiltinIteratorReturn = ReturnType extends - globalThis.Iterator ? TReturn - : any; -} diff --git a/build_vtk_bundle/node_modules/@types/node/console.d.ts b/build_vtk_bundle/node_modules/@types/node/console.d.ts deleted file mode 100644 index 3c8a6825..00000000 --- a/build_vtk_bundle/node_modules/@types/node/console.d.ts +++ /dev/null @@ -1,453 +0,0 @@ -/** - * The `node:console` module provides a simple debugging console that is similar to - * the JavaScript console mechanism provided by web browsers. - * - * The module exports two specific components: - * - * * A `Console` class with methods such as `console.log()`, `console.error()`, and `console.warn()` that can be used to write to any Node.js stream. - * * A global `console` instance configured to write to [`process.stdout`](https://nodejs.org/docs/latest-v24.x/api/process.html#processstdout) and - * [`process.stderr`](https://nodejs.org/docs/latest-v24.x/api/process.html#processstderr). The global `console` can be used without importing the `node:console` module. - * - * _**Warning**_: The global console object's methods are neither consistently - * synchronous like the browser APIs they resemble, nor are they consistently - * asynchronous like all other Node.js streams. See the [`note on process I/O`](https://nodejs.org/docs/latest-v24.x/api/process.html#a-note-on-process-io) for - * more information. - * - * Example using the global `console`: - * - * ```js - * console.log('hello world'); - * // Prints: hello world, to stdout - * console.log('hello %s', 'world'); - * // Prints: hello world, to stdout - * console.error(new Error('Whoops, something bad happened')); - * // Prints error message and stack trace to stderr: - * // Error: Whoops, something bad happened - * // at [eval]:5:15 - * // at Script.runInThisContext (node:vm:132:18) - * // at Object.runInThisContext (node:vm:309:38) - * // at node:internal/process/execution:77:19 - * // at [eval]-wrapper:6:22 - * // at evalScript (node:internal/process/execution:76:60) - * // at node:internal/main/eval_string:23:3 - * - * const name = 'Will Robinson'; - * console.warn(`Danger ${name}! Danger!`); - * // Prints: Danger Will Robinson! Danger!, to stderr - * ``` - * - * Example using the `Console` class: - * - * ```js - * const out = getStreamSomehow(); - * const err = getStreamSomehow(); - * const myConsole = new console.Console(out, err); - * - * myConsole.log('hello world'); - * // Prints: hello world, to out - * myConsole.log('hello %s', 'world'); - * // Prints: hello world, to out - * myConsole.error(new Error('Whoops, something bad happened')); - * // Prints: [Error: Whoops, something bad happened], to err - * - * const name = 'Will Robinson'; - * myConsole.warn(`Danger ${name}! Danger!`); - * // Prints: Danger Will Robinson! Danger!, to err - * ``` - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/console.js) - */ -declare module "console" { - import console = require("node:console"); - export = console; -} -declare module "node:console" { - import { InspectOptions } from "node:util"; - global { - // This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build - interface Console { - Console: console.ConsoleConstructor; - /** - * `console.assert()` writes a message if `value` is [falsy](https://developer.mozilla.org/en-US/docs/Glossary/Falsy) or omitted. It only - * writes a message and does not otherwise affect execution. The output always - * starts with `"Assertion failed"`. If provided, `message` is formatted using - * [`util.format()`](https://nodejs.org/docs/latest-v24.x/api/util.html#utilformatformat-args). - * - * If `value` is [truthy](https://developer.mozilla.org/en-US/docs/Glossary/Truthy), nothing happens. - * - * ```js - * console.assert(true, 'does nothing'); - * - * console.assert(false, 'Whoops %s work', 'didn\'t'); - * // Assertion failed: Whoops didn't work - * - * console.assert(); - * // Assertion failed - * ``` - * @since v0.1.101 - * @param value The value tested for being truthy. - * @param message All arguments besides `value` are used as error message. - */ - assert(value: any, message?: string, ...optionalParams: any[]): void; - /** - * When `stdout` is a TTY, calling `console.clear()` will attempt to clear the - * TTY. When `stdout` is not a TTY, this method does nothing. - * - * The specific operation of `console.clear()` can vary across operating systems - * and terminal types. For most Linux operating systems, `console.clear()` operates similarly to the `clear` shell command. On Windows, `console.clear()` will clear only the output in the - * current terminal viewport for the Node.js - * binary. - * @since v8.3.0 - */ - clear(): void; - /** - * Maintains an internal counter specific to `label` and outputs to `stdout` the - * number of times `console.count()` has been called with the given `label`. - * - * ```js - * > console.count() - * default: 1 - * undefined - * > console.count('default') - * default: 2 - * undefined - * > console.count('abc') - * abc: 1 - * undefined - * > console.count('xyz') - * xyz: 1 - * undefined - * > console.count('abc') - * abc: 2 - * undefined - * > console.count() - * default: 3 - * undefined - * > - * ``` - * @since v8.3.0 - * @param [label='default'] The display label for the counter. - */ - count(label?: string): void; - /** - * Resets the internal counter specific to `label`. - * - * ```js - * > console.count('abc'); - * abc: 1 - * undefined - * > console.countReset('abc'); - * undefined - * > console.count('abc'); - * abc: 1 - * undefined - * > - * ``` - * @since v8.3.0 - * @param [label='default'] The display label for the counter. - */ - countReset(label?: string): void; - /** - * The `console.debug()` function is an alias for {@link log}. - * @since v8.0.0 - */ - debug(message?: any, ...optionalParams: any[]): void; - /** - * Uses [`util.inspect()`](https://nodejs.org/docs/latest-v24.x/api/util.html#utilinspectobject-options) on `obj` and prints the resulting string to `stdout`. - * This function bypasses any custom `inspect()` function defined on `obj`. - * @since v0.1.101 - */ - dir(obj: any, options?: InspectOptions): void; - /** - * This method calls `console.log()` passing it the arguments received. - * This method does not produce any XML formatting. - * @since v8.0.0 - */ - dirxml(...data: any[]): void; - /** - * Prints to `stderr` with newline. Multiple arguments can be passed, with the - * first used as the primary message and all additional used as substitution - * values similar to [`printf(3)`](http://man7.org/linux/man-pages/man3/printf.3.html) - * (the arguments are all passed to [`util.format()`](https://nodejs.org/docs/latest-v24.x/api/util.html#utilformatformat-args)). - * - * ```js - * const code = 5; - * console.error('error #%d', code); - * // Prints: error #5, to stderr - * console.error('error', code); - * // Prints: error 5, to stderr - * ``` - * - * If formatting elements (e.g. `%d`) are not found in the first string then - * [`util.inspect()`](https://nodejs.org/docs/latest-v24.x/api/util.html#utilinspectobject-options) is called on each argument and the - * resulting string values are concatenated. See [`util.format()`](https://nodejs.org/docs/latest-v24.x/api/util.html#utilformatformat-args) - * for more information. - * @since v0.1.100 - */ - error(message?: any, ...optionalParams: any[]): void; - /** - * Increases indentation of subsequent lines by spaces for `groupIndentation` length. - * - * If one or more `label`s are provided, those are printed first without the - * additional indentation. - * @since v8.5.0 - */ - group(...label: any[]): void; - /** - * An alias for {@link group}. - * @since v8.5.0 - */ - groupCollapsed(...label: any[]): void; - /** - * Decreases indentation of subsequent lines by spaces for `groupIndentation` length. - * @since v8.5.0 - */ - groupEnd(): void; - /** - * The `console.info()` function is an alias for {@link log}. - * @since v0.1.100 - */ - info(message?: any, ...optionalParams: any[]): void; - /** - * Prints to `stdout` with newline. Multiple arguments can be passed, with the - * first used as the primary message and all additional used as substitution - * values similar to [`printf(3)`](http://man7.org/linux/man-pages/man3/printf.3.html) - * (the arguments are all passed to [`util.format()`](https://nodejs.org/docs/latest-v24.x/api/util.html#utilformatformat-args)). - * - * ```js - * const count = 5; - * console.log('count: %d', count); - * // Prints: count: 5, to stdout - * console.log('count:', count); - * // Prints: count: 5, to stdout - * ``` - * - * See [`util.format()`](https://nodejs.org/docs/latest-v24.x/api/util.html#utilformatformat-args) for more information. - * @since v0.1.100 - */ - log(message?: any, ...optionalParams: any[]): void; - /** - * Try to construct a table with the columns of the properties of `tabularData` (or use `properties`) and rows of `tabularData` and log it. Falls back to just - * logging the argument if it can't be parsed as tabular. - * - * ```js - * // These can't be parsed as tabular data - * console.table(Symbol()); - * // Symbol() - * - * console.table(undefined); - * // undefined - * - * console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }]); - * // ┌─────────┬─────┬─────┐ - * // │ (index) │ a │ b │ - * // ├─────────┼─────┼─────┤ - * // │ 0 │ 1 │ 'Y' │ - * // │ 1 │ 'Z' │ 2 │ - * // └─────────┴─────┴─────┘ - * - * console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }], ['a']); - * // ┌─────────┬─────┐ - * // │ (index) │ a │ - * // ├─────────┼─────┤ - * // │ 0 │ 1 │ - * // │ 1 │ 'Z' │ - * // └─────────┴─────┘ - * ``` - * @since v10.0.0 - * @param properties Alternate properties for constructing the table. - */ - table(tabularData: any, properties?: readonly string[]): void; - /** - * Starts a timer that can be used to compute the duration of an operation. Timers - * are identified by a unique `label`. Use the same `label` when calling {@link timeEnd} to stop the timer and output the elapsed time in - * suitable time units to `stdout`. For example, if the elapsed - * time is 3869ms, `console.timeEnd()` displays "3.869s". - * @since v0.1.104 - * @param [label='default'] - */ - time(label?: string): void; - /** - * Stops a timer that was previously started by calling {@link time} and - * prints the result to `stdout`: - * - * ```js - * console.time('bunch-of-stuff'); - * // Do a bunch of stuff. - * console.timeEnd('bunch-of-stuff'); - * // Prints: bunch-of-stuff: 225.438ms - * ``` - * @since v0.1.104 - * @param [label='default'] - */ - timeEnd(label?: string): void; - /** - * For a timer that was previously started by calling {@link time}, prints - * the elapsed time and other `data` arguments to `stdout`: - * - * ```js - * console.time('process'); - * const value = expensiveProcess1(); // Returns 42 - * console.timeLog('process', value); - * // Prints "process: 365.227ms 42". - * doExpensiveProcess2(value); - * console.timeEnd('process'); - * ``` - * @since v10.7.0 - * @param [label='default'] - */ - timeLog(label?: string, ...data: any[]): void; - /** - * Prints to `stderr` the string `'Trace: '`, followed by the [`util.format()`](https://nodejs.org/docs/latest-v24.x/api/util.html#utilformatformat-args) - * formatted message and stack trace to the current position in the code. - * - * ```js - * console.trace('Show me'); - * // Prints: (stack trace will vary based on where trace is called) - * // Trace: Show me - * // at repl:2:9 - * // at REPLServer.defaultEval (repl.js:248:27) - * // at bound (domain.js:287:14) - * // at REPLServer.runBound [as eval] (domain.js:300:12) - * // at REPLServer. (repl.js:412:12) - * // at emitOne (events.js:82:20) - * // at REPLServer.emit (events.js:169:7) - * // at REPLServer.Interface._onLine (readline.js:210:10) - * // at REPLServer.Interface._line (readline.js:549:8) - * // at REPLServer.Interface._ttyWrite (readline.js:826:14) - * ``` - * @since v0.1.104 - */ - trace(message?: any, ...optionalParams: any[]): void; - /** - * The `console.warn()` function is an alias for {@link error}. - * @since v0.1.100 - */ - warn(message?: any, ...optionalParams: any[]): void; - // --- Inspector mode only --- - /** - * This method does not display anything unless used in the inspector. The `console.profile()` - * method starts a JavaScript CPU profile with an optional label until {@link profileEnd} - * is called. The profile is then added to the Profile panel of the inspector. - * - * ```js - * console.profile('MyLabel'); - * // Some code - * console.profileEnd('MyLabel'); - * // Adds the profile 'MyLabel' to the Profiles panel of the inspector. - * ``` - * @since v8.0.0 - */ - profile(label?: string): void; - /** - * This method does not display anything unless used in the inspector. Stops the current - * JavaScript CPU profiling session if one has been started and prints the report to the - * Profiles panel of the inspector. See {@link profile} for an example. - * - * If this method is called without a label, the most recently started profile is stopped. - * @since v8.0.0 - */ - profileEnd(label?: string): void; - /** - * This method does not display anything unless used in the inspector. The `console.timeStamp()` - * method adds an event with the label `'label'` to the Timeline panel of the inspector. - * @since v8.0.0 - */ - timeStamp(label?: string): void; - } - /** - * The `console` module provides a simple debugging console that is similar to the - * JavaScript console mechanism provided by web browsers. - * - * The module exports two specific components: - * - * * A `Console` class with methods such as `console.log()`, `console.error()` and `console.warn()` that can be used to write to any Node.js stream. - * * A global `console` instance configured to write to [`process.stdout`](https://nodejs.org/docs/latest-v24.x/api/process.html#processstdout) and - * [`process.stderr`](https://nodejs.org/docs/latest-v24.x/api/process.html#processstderr). The global `console` can be used without importing the `node:console` module. - * - * _**Warning**_: The global console object's methods are neither consistently - * synchronous like the browser APIs they resemble, nor are they consistently - * asynchronous like all other Node.js streams. See the [`note on process I/O`](https://nodejs.org/docs/latest-v24.x/api/process.html#a-note-on-process-io) for - * more information. - * - * Example using the global `console`: - * - * ```js - * console.log('hello world'); - * // Prints: hello world, to stdout - * console.log('hello %s', 'world'); - * // Prints: hello world, to stdout - * console.error(new Error('Whoops, something bad happened')); - * // Prints error message and stack trace to stderr: - * // Error: Whoops, something bad happened - * // at [eval]:5:15 - * // at Script.runInThisContext (node:vm:132:18) - * // at Object.runInThisContext (node:vm:309:38) - * // at node:internal/process/execution:77:19 - * // at [eval]-wrapper:6:22 - * // at evalScript (node:internal/process/execution:76:60) - * // at node:internal/main/eval_string:23:3 - * - * const name = 'Will Robinson'; - * console.warn(`Danger ${name}! Danger!`); - * // Prints: Danger Will Robinson! Danger!, to stderr - * ``` - * - * Example using the `Console` class: - * - * ```js - * const out = getStreamSomehow(); - * const err = getStreamSomehow(); - * const myConsole = new console.Console(out, err); - * - * myConsole.log('hello world'); - * // Prints: hello world, to out - * myConsole.log('hello %s', 'world'); - * // Prints: hello world, to out - * myConsole.error(new Error('Whoops, something bad happened')); - * // Prints: [Error: Whoops, something bad happened], to err - * - * const name = 'Will Robinson'; - * myConsole.warn(`Danger ${name}! Danger!`); - * // Prints: Danger Will Robinson! Danger!, to err - * ``` - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/console.js) - */ - namespace console { - interface ConsoleConstructorOptions { - stdout: NodeJS.WritableStream; - stderr?: NodeJS.WritableStream | undefined; - /** - * Ignore errors when writing to the underlying streams. - * @default true - */ - ignoreErrors?: boolean | undefined; - /** - * Set color support for this `Console` instance. Setting to true enables coloring while inspecting - * values. Setting to `false` disables coloring while inspecting values. Setting to `'auto'` makes color - * support depend on the value of the `isTTY` property and the value returned by `getColorDepth()` on the - * respective stream. This option can not be used, if `inspectOptions.colors` is set as well. - * @default auto - */ - colorMode?: boolean | "auto" | undefined; - /** - * Specifies options that are passed along to - * `util.inspect()`. Can be an options object or, if different options - * for stdout and stderr are desired, a `Map` from stream objects to options. - */ - inspectOptions?: InspectOptions | ReadonlyMap | undefined; - /** - * Set group indentation. - * @default 2 - */ - groupIndentation?: number | undefined; - } - interface ConsoleConstructor { - prototype: Console; - new(stdout: NodeJS.WritableStream, stderr?: NodeJS.WritableStream, ignoreErrors?: boolean): Console; - new(options: ConsoleConstructorOptions): Console; - } - } - var console: Console; - } - export = globalThis.console; -} diff --git a/build_vtk_bundle/node_modules/@types/node/constants.d.ts b/build_vtk_bundle/node_modules/@types/node/constants.d.ts deleted file mode 100644 index 5685a9df..00000000 --- a/build_vtk_bundle/node_modules/@types/node/constants.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * @deprecated The `node:constants` module is deprecated. When requiring access to constants - * relevant to specific Node.js builtin modules, developers should instead refer - * to the `constants` property exposed by the relevant module. For instance, - * `require('node:fs').constants` and `require('node:os').constants`. - */ -declare module "constants" { - const constants: - & typeof import("node:os").constants.dlopen - & typeof import("node:os").constants.errno - & typeof import("node:os").constants.priority - & typeof import("node:os").constants.signals - & typeof import("node:fs").constants - & typeof import("node:crypto").constants; - export = constants; -} - -declare module "node:constants" { - import constants = require("constants"); - export = constants; -} diff --git a/build_vtk_bundle/node_modules/@types/node/crypto.d.ts b/build_vtk_bundle/node_modules/@types/node/crypto.d.ts deleted file mode 100644 index d975cafc..00000000 --- a/build_vtk_bundle/node_modules/@types/node/crypto.d.ts +++ /dev/null @@ -1,5417 +0,0 @@ -/** - * The `node:crypto` module provides cryptographic functionality that includes a - * set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify - * functions. - * - * ```js - * const { createHmac } = await import('node:crypto'); - * - * const secret = 'abcdefg'; - * const hash = createHmac('sha256', secret) - * .update('I love cupcakes') - * .digest('hex'); - * console.log(hash); - * // Prints: - * // c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e - * ``` - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/crypto.js) - */ -declare module "crypto" { - import { NonSharedBuffer } from "node:buffer"; - import * as stream from "node:stream"; - import { PeerCertificate } from "node:tls"; - /** - * SPKAC is a Certificate Signing Request mechanism originally implemented by - * Netscape and was specified formally as part of HTML5's `keygen` element. - * - * `` is deprecated since [HTML 5.2](https://www.w3.org/TR/html52/changes.html#features-removed) and new projects - * should not use this element anymore. - * - * The `node:crypto` module provides the `Certificate` class for working with SPKAC - * data. The most common usage is handling output generated by the HTML5 `` element. Node.js uses [OpenSSL's SPKAC - * implementation](https://www.openssl.org/docs/man3.0/man1/openssl-spkac.html) internally. - * @since v0.11.8 - */ - class Certificate { - /** - * ```js - * const { Certificate } = await import('node:crypto'); - * const spkac = getSpkacSomehow(); - * const challenge = Certificate.exportChallenge(spkac); - * console.log(challenge.toString('utf8')); - * // Prints: the challenge as a UTF8 string - * ``` - * @since v9.0.0 - * @param encoding The `encoding` of the `spkac` string. - * @return The challenge component of the `spkac` data structure, which includes a public key and a challenge. - */ - static exportChallenge(spkac: BinaryLike): NonSharedBuffer; - /** - * ```js - * const { Certificate } = await import('node:crypto'); - * const spkac = getSpkacSomehow(); - * const publicKey = Certificate.exportPublicKey(spkac); - * console.log(publicKey); - * // Prints: the public key as - * ``` - * @since v9.0.0 - * @param encoding The `encoding` of the `spkac` string. - * @return The public key component of the `spkac` data structure, which includes a public key and a challenge. - */ - static exportPublicKey(spkac: BinaryLike, encoding?: string): NonSharedBuffer; - /** - * ```js - * import { Buffer } from 'node:buffer'; - * const { Certificate } = await import('node:crypto'); - * - * const spkac = getSpkacSomehow(); - * console.log(Certificate.verifySpkac(Buffer.from(spkac))); - * // Prints: true or false - * ``` - * @since v9.0.0 - * @param encoding The `encoding` of the `spkac` string. - * @return `true` if the given `spkac` data structure is valid, `false` otherwise. - */ - static verifySpkac(spkac: NodeJS.ArrayBufferView): boolean; - /** - * @deprecated - * @param spkac - * @returns The challenge component of the `spkac` data structure, - * which includes a public key and a challenge. - */ - exportChallenge(spkac: BinaryLike): NonSharedBuffer; - /** - * @deprecated - * @param spkac - * @param encoding The encoding of the spkac string. - * @returns The public key component of the `spkac` data structure, - * which includes a public key and a challenge. - */ - exportPublicKey(spkac: BinaryLike, encoding?: string): NonSharedBuffer; - /** - * @deprecated - * @param spkac - * @returns `true` if the given `spkac` data structure is valid, - * `false` otherwise. - */ - verifySpkac(spkac: NodeJS.ArrayBufferView): boolean; - } - namespace constants { - // https://nodejs.org/dist/latest-v24.x/docs/api/crypto.html#crypto-constants - const OPENSSL_VERSION_NUMBER: number; - /** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */ - const SSL_OP_ALL: number; - /** Instructs OpenSSL to allow a non-[EC]DHE-based key exchange mode for TLS v1.3 */ - const SSL_OP_ALLOW_NO_DHE_KEX: number; - /** Allows legacy insecure renegotiation between OpenSSL and unpatched clients or servers. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */ - const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number; - /** Attempts to use the server's preferences instead of the client's when selecting a cipher. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */ - const SSL_OP_CIPHER_SERVER_PREFERENCE: number; - /** Instructs OpenSSL to use Cisco's version identifier of DTLS_BAD_VER. */ - const SSL_OP_CISCO_ANYCONNECT: number; - /** Instructs OpenSSL to turn on cookie exchange. */ - const SSL_OP_COOKIE_EXCHANGE: number; - /** Instructs OpenSSL to add server-hello extension from an early version of the cryptopro draft. */ - const SSL_OP_CRYPTOPRO_TLSEXT_BUG: number; - /** Instructs OpenSSL to disable a SSL 3.0/TLS 1.0 vulnerability workaround added in OpenSSL 0.9.6d. */ - const SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number; - /** Allows initial connection to servers that do not support RI. */ - const SSL_OP_LEGACY_SERVER_CONNECT: number; - /** Instructs OpenSSL to disable support for SSL/TLS compression. */ - const SSL_OP_NO_COMPRESSION: number; - /** Instructs OpenSSL to disable encrypt-then-MAC. */ - const SSL_OP_NO_ENCRYPT_THEN_MAC: number; - const SSL_OP_NO_QUERY_MTU: number; - /** Instructs OpenSSL to disable renegotiation. */ - const SSL_OP_NO_RENEGOTIATION: number; - /** Instructs OpenSSL to always start a new session when performing renegotiation. */ - const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number; - /** Instructs OpenSSL to turn off SSL v2 */ - const SSL_OP_NO_SSLv2: number; - /** Instructs OpenSSL to turn off SSL v3 */ - const SSL_OP_NO_SSLv3: number; - /** Instructs OpenSSL to disable use of RFC4507bis tickets. */ - const SSL_OP_NO_TICKET: number; - /** Instructs OpenSSL to turn off TLS v1 */ - const SSL_OP_NO_TLSv1: number; - /** Instructs OpenSSL to turn off TLS v1.1 */ - const SSL_OP_NO_TLSv1_1: number; - /** Instructs OpenSSL to turn off TLS v1.2 */ - const SSL_OP_NO_TLSv1_2: number; - /** Instructs OpenSSL to turn off TLS v1.3 */ - const SSL_OP_NO_TLSv1_3: number; - /** Instructs OpenSSL server to prioritize ChaCha20-Poly1305 when the client does. This option has no effect if `SSL_OP_CIPHER_SERVER_PREFERENCE` is not enabled. */ - const SSL_OP_PRIORITIZE_CHACHA: number; - /** Instructs OpenSSL to disable version rollback attack detection. */ - const SSL_OP_TLS_ROLLBACK_BUG: number; - const ENGINE_METHOD_RSA: number; - const ENGINE_METHOD_DSA: number; - const ENGINE_METHOD_DH: number; - const ENGINE_METHOD_RAND: number; - const ENGINE_METHOD_EC: number; - const ENGINE_METHOD_CIPHERS: number; - const ENGINE_METHOD_DIGESTS: number; - const ENGINE_METHOD_PKEY_METHS: number; - const ENGINE_METHOD_PKEY_ASN1_METHS: number; - const ENGINE_METHOD_ALL: number; - const ENGINE_METHOD_NONE: number; - const DH_CHECK_P_NOT_SAFE_PRIME: number; - const DH_CHECK_P_NOT_PRIME: number; - const DH_UNABLE_TO_CHECK_GENERATOR: number; - const DH_NOT_SUITABLE_GENERATOR: number; - const RSA_PKCS1_PADDING: number; - const RSA_SSLV23_PADDING: number; - const RSA_NO_PADDING: number; - const RSA_PKCS1_OAEP_PADDING: number; - const RSA_X931_PADDING: number; - const RSA_PKCS1_PSS_PADDING: number; - /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the digest size when signing or verifying. */ - const RSA_PSS_SALTLEN_DIGEST: number; - /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the maximum permissible value when signing data. */ - const RSA_PSS_SALTLEN_MAX_SIGN: number; - /** Causes the salt length for RSA_PKCS1_PSS_PADDING to be determined automatically when verifying a signature. */ - const RSA_PSS_SALTLEN_AUTO: number; - const POINT_CONVERSION_COMPRESSED: number; - const POINT_CONVERSION_UNCOMPRESSED: number; - const POINT_CONVERSION_HYBRID: number; - /** Specifies the built-in default cipher list used by Node.js (colon-separated values). */ - const defaultCoreCipherList: string; - /** Specifies the active default cipher list used by the current Node.js process (colon-separated values). */ - const defaultCipherList: string; - } - interface HashOptions extends stream.TransformOptions { - /** - * For XOF hash functions such as `shake256`, the - * outputLength option can be used to specify the desired output length in bytes. - */ - outputLength?: number | undefined; - } - /** @deprecated since v10.0.0 */ - const fips: boolean; - /** - * Creates and returns a `Hash` object that can be used to generate hash digests - * using the given `algorithm`. Optional `options` argument controls stream - * behavior. For XOF hash functions such as `'shake256'`, the `outputLength` option - * can be used to specify the desired output length in bytes. - * - * The `algorithm` is dependent on the available algorithms supported by the - * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. - * On recent releases of OpenSSL, `openssl list -digest-algorithms` will - * display the available digest algorithms. - * - * Example: generating the sha256 sum of a file - * - * ```js - * import { - * createReadStream, - * } from 'node:fs'; - * import { argv } from 'node:process'; - * const { - * createHash, - * } = await import('node:crypto'); - * - * const filename = argv[2]; - * - * const hash = createHash('sha256'); - * - * const input = createReadStream(filename); - * input.on('readable', () => { - * // Only one element is going to be produced by the - * // hash stream. - * const data = input.read(); - * if (data) - * hash.update(data); - * else { - * console.log(`${hash.digest('hex')} ${filename}`); - * } - * }); - * ``` - * @since v0.1.92 - * @param options `stream.transform` options - */ - function createHash(algorithm: string, options?: HashOptions): Hash; - /** - * Creates and returns an `Hmac` object that uses the given `algorithm` and `key`. - * Optional `options` argument controls stream behavior. - * - * The `algorithm` is dependent on the available algorithms supported by the - * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. - * On recent releases of OpenSSL, `openssl list -digest-algorithms` will - * display the available digest algorithms. - * - * The `key` is the HMAC key used to generate the cryptographic HMAC hash. If it is - * a `KeyObject`, its type must be `secret`. If it is a string, please consider `caveats when using strings as inputs to cryptographic APIs`. If it was - * obtained from a cryptographically secure source of entropy, such as {@link randomBytes} or {@link generateKey}, its length should not - * exceed the block size of `algorithm` (e.g., 512 bits for SHA-256). - * - * Example: generating the sha256 HMAC of a file - * - * ```js - * import { - * createReadStream, - * } from 'node:fs'; - * import { argv } from 'node:process'; - * const { - * createHmac, - * } = await import('node:crypto'); - * - * const filename = argv[2]; - * - * const hmac = createHmac('sha256', 'a secret'); - * - * const input = createReadStream(filename); - * input.on('readable', () => { - * // Only one element is going to be produced by the - * // hash stream. - * const data = input.read(); - * if (data) - * hmac.update(data); - * else { - * console.log(`${hmac.digest('hex')} ${filename}`); - * } - * }); - * ``` - * @since v0.1.94 - * @param options `stream.transform` options - */ - function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac; - // https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings - type BinaryToTextEncoding = "base64" | "base64url" | "hex" | "binary"; - type CharacterEncoding = "utf8" | "utf-8" | "utf16le" | "utf-16le" | "latin1"; - type LegacyCharacterEncoding = "ascii" | "binary" | "ucs2" | "ucs-2"; - type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding; - type ECDHKeyFormat = "compressed" | "uncompressed" | "hybrid"; - /** - * The `Hash` class is a utility for creating hash digests of data. It can be - * used in one of two ways: - * - * * As a `stream` that is both readable and writable, where data is written - * to produce a computed hash digest on the readable side, or - * * Using the `hash.update()` and `hash.digest()` methods to produce the - * computed hash. - * - * The {@link createHash} method is used to create `Hash` instances. `Hash`objects are not to be created directly using the `new` keyword. - * - * Example: Using `Hash` objects as streams: - * - * ```js - * const { - * createHash, - * } = await import('node:crypto'); - * - * const hash = createHash('sha256'); - * - * hash.on('readable', () => { - * // Only one element is going to be produced by the - * // hash stream. - * const data = hash.read(); - * if (data) { - * console.log(data.toString('hex')); - * // Prints: - * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50 - * } - * }); - * - * hash.write('some data to hash'); - * hash.end(); - * ``` - * - * Example: Using `Hash` and piped streams: - * - * ```js - * import { createReadStream } from 'node:fs'; - * import { stdout } from 'node:process'; - * const { createHash } = await import('node:crypto'); - * - * const hash = createHash('sha256'); - * - * const input = createReadStream('test.js'); - * input.pipe(hash).setEncoding('hex').pipe(stdout); - * ``` - * - * Example: Using the `hash.update()` and `hash.digest()` methods: - * - * ```js - * const { - * createHash, - * } = await import('node:crypto'); - * - * const hash = createHash('sha256'); - * - * hash.update('some data to hash'); - * console.log(hash.digest('hex')); - * // Prints: - * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50 - * ``` - * @since v0.1.92 - */ - class Hash extends stream.Transform { - private constructor(); - /** - * Creates a new `Hash` object that contains a deep copy of the internal state - * of the current `Hash` object. - * - * The optional `options` argument controls stream behavior. For XOF hash - * functions such as `'shake256'`, the `outputLength` option can be used to - * specify the desired output length in bytes. - * - * An error is thrown when an attempt is made to copy the `Hash` object after - * its `hash.digest()` method has been called. - * - * ```js - * // Calculate a rolling hash. - * const { - * createHash, - * } = await import('node:crypto'); - * - * const hash = createHash('sha256'); - * - * hash.update('one'); - * console.log(hash.copy().digest('hex')); - * - * hash.update('two'); - * console.log(hash.copy().digest('hex')); - * - * hash.update('three'); - * console.log(hash.copy().digest('hex')); - * - * // Etc. - * ``` - * @since v13.1.0 - * @param options `stream.transform` options - */ - copy(options?: HashOptions): Hash; - /** - * Updates the hash content with the given `data`, the encoding of which - * is given in `inputEncoding`. - * If `encoding` is not provided, and the `data` is a string, an - * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. - * - * This can be called many times with new data as it is streamed. - * @since v0.1.92 - * @param inputEncoding The `encoding` of the `data` string. - */ - update(data: BinaryLike): Hash; - update(data: string, inputEncoding: Encoding): Hash; - /** - * Calculates the digest of all of the data passed to be hashed (using the `hash.update()` method). - * If `encoding` is provided a string will be returned; otherwise - * a `Buffer` is returned. - * - * The `Hash` object can not be used again after `hash.digest()` method has been - * called. Multiple calls will cause an error to be thrown. - * @since v0.1.92 - * @param encoding The `encoding` of the return value. - */ - digest(): NonSharedBuffer; - digest(encoding: BinaryToTextEncoding): string; - } - /** - * The `Hmac` class is a utility for creating cryptographic HMAC digests. It can - * be used in one of two ways: - * - * * As a `stream` that is both readable and writable, where data is written - * to produce a computed HMAC digest on the readable side, or - * * Using the `hmac.update()` and `hmac.digest()` methods to produce the - * computed HMAC digest. - * - * The {@link createHmac} method is used to create `Hmac` instances. `Hmac`objects are not to be created directly using the `new` keyword. - * - * Example: Using `Hmac` objects as streams: - * - * ```js - * const { - * createHmac, - * } = await import('node:crypto'); - * - * const hmac = createHmac('sha256', 'a secret'); - * - * hmac.on('readable', () => { - * // Only one element is going to be produced by the - * // hash stream. - * const data = hmac.read(); - * if (data) { - * console.log(data.toString('hex')); - * // Prints: - * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e - * } - * }); - * - * hmac.write('some data to hash'); - * hmac.end(); - * ``` - * - * Example: Using `Hmac` and piped streams: - * - * ```js - * import { createReadStream } from 'node:fs'; - * import { stdout } from 'node:process'; - * const { - * createHmac, - * } = await import('node:crypto'); - * - * const hmac = createHmac('sha256', 'a secret'); - * - * const input = createReadStream('test.js'); - * input.pipe(hmac).pipe(stdout); - * ``` - * - * Example: Using the `hmac.update()` and `hmac.digest()` methods: - * - * ```js - * const { - * createHmac, - * } = await import('node:crypto'); - * - * const hmac = createHmac('sha256', 'a secret'); - * - * hmac.update('some data to hash'); - * console.log(hmac.digest('hex')); - * // Prints: - * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e - * ``` - * @since v0.1.94 - * @deprecated Since v20.13.0 Calling `Hmac` class directly with `Hmac()` or `new Hmac()` is deprecated due to being internals, not intended for public use. Please use the {@link createHmac} method to create Hmac instances. - */ - class Hmac extends stream.Transform { - private constructor(); - /** - * Updates the `Hmac` content with the given `data`, the encoding of which - * is given in `inputEncoding`. - * If `encoding` is not provided, and the `data` is a string, an - * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. - * - * This can be called many times with new data as it is streamed. - * @since v0.1.94 - * @param inputEncoding The `encoding` of the `data` string. - */ - update(data: BinaryLike): Hmac; - update(data: string, inputEncoding: Encoding): Hmac; - /** - * Calculates the HMAC digest of all of the data passed using `hmac.update()`. - * If `encoding` is - * provided a string is returned; otherwise a `Buffer` is returned; - * - * The `Hmac` object can not be used again after `hmac.digest()` has been - * called. Multiple calls to `hmac.digest()` will result in an error being thrown. - * @since v0.1.94 - * @param encoding The `encoding` of the return value. - */ - digest(): NonSharedBuffer; - digest(encoding: BinaryToTextEncoding): string; - } - type KeyObjectType = "secret" | "public" | "private"; - interface KeyExportOptions { - type: "pkcs1" | "spki" | "pkcs8" | "sec1"; - format: T; - cipher?: string | undefined; - passphrase?: string | Buffer | undefined; - } - interface JwkKeyExportOptions { - format: "jwk"; - } - interface JsonWebKey { - crv?: string; - d?: string; - dp?: string; - dq?: string; - e?: string; - k?: string; - kty?: string; - n?: string; - p?: string; - q?: string; - qi?: string; - x?: string; - y?: string; - [key: string]: unknown; - } - interface AsymmetricKeyDetails { - /** - * Key size in bits (RSA, DSA). - */ - modulusLength?: number; - /** - * Public exponent (RSA). - */ - publicExponent?: bigint; - /** - * Name of the message digest (RSA-PSS). - */ - hashAlgorithm?: string; - /** - * Name of the message digest used by MGF1 (RSA-PSS). - */ - mgf1HashAlgorithm?: string; - /** - * Minimal salt length in bytes (RSA-PSS). - */ - saltLength?: number; - /** - * Size of q in bits (DSA). - */ - divisorLength?: number; - /** - * Name of the curve (EC). - */ - namedCurve?: string; - } - /** - * Node.js uses a `KeyObject` class to represent a symmetric or asymmetric key, - * and each kind of key exposes different functions. The {@link createSecretKey}, {@link createPublicKey} and {@link createPrivateKey} methods are used to create `KeyObject`instances. `KeyObject` - * objects are not to be created directly using the `new`keyword. - * - * Most applications should consider using the new `KeyObject` API instead of - * passing keys as strings or `Buffer`s due to improved security features. - * - * `KeyObject` instances can be passed to other threads via `postMessage()`. - * The receiver obtains a cloned `KeyObject`, and the `KeyObject` does not need to - * be listed in the `transferList` argument. - * @since v11.6.0 - */ - class KeyObject { - private constructor(); - /** - * Example: Converting a `CryptoKey` instance to a `KeyObject`: - * - * ```js - * const { KeyObject } = await import('node:crypto'); - * const { subtle } = globalThis.crypto; - * - * const key = await subtle.generateKey({ - * name: 'HMAC', - * hash: 'SHA-256', - * length: 256, - * }, true, ['sign', 'verify']); - * - * const keyObject = KeyObject.from(key); - * console.log(keyObject.symmetricKeySize); - * // Prints: 32 (symmetric key size in bytes) - * ``` - * @since v15.0.0 - */ - static from(key: webcrypto.CryptoKey): KeyObject; - /** - * For asymmetric keys, this property represents the type of the key. See the - * supported [asymmetric key types](https://nodejs.org/docs/latest-v24.x/api/crypto.html#asymmetric-key-types). - * - * This property is `undefined` for unrecognized `KeyObject` types and symmetric - * keys. - * @since v11.6.0 - */ - asymmetricKeyType?: KeyType; - /** - * This property exists only on asymmetric keys. Depending on the type of the key, - * this object contains information about the key. None of the information obtained - * through this property can be used to uniquely identify a key or to compromise - * the security of the key. - * - * For RSA-PSS keys, if the key material contains a `RSASSA-PSS-params` sequence, - * the `hashAlgorithm`, `mgf1HashAlgorithm`, and `saltLength` properties will be - * set. - * - * Other key details might be exposed via this API using additional attributes. - * @since v15.7.0 - */ - asymmetricKeyDetails?: AsymmetricKeyDetails; - /** - * For symmetric keys, the following encoding options can be used: - * - * For public keys, the following encoding options can be used: - * - * For private keys, the following encoding options can be used: - * - * The result type depends on the selected encoding format, when PEM the - * result is a string, when DER it will be a buffer containing the data - * encoded as DER, when [JWK](https://tools.ietf.org/html/rfc7517) it will be an object. - * - * When [JWK](https://tools.ietf.org/html/rfc7517) encoding format was selected, all other encoding options are - * ignored. - * - * PKCS#1, SEC1, and PKCS#8 type keys can be encrypted by using a combination of - * the `cipher` and `format` options. The PKCS#8 `type` can be used with any`format` to encrypt any key algorithm (RSA, EC, or DH) by specifying a`cipher`. PKCS#1 and SEC1 can only be - * encrypted by specifying a `cipher`when the PEM `format` is used. For maximum compatibility, use PKCS#8 for - * encrypted private keys. Since PKCS#8 defines its own - * encryption mechanism, PEM-level encryption is not supported when encrypting - * a PKCS#8 key. See [RFC 5208](https://www.rfc-editor.org/rfc/rfc5208.txt) for PKCS#8 encryption and [RFC 1421](https://www.rfc-editor.org/rfc/rfc1421.txt) for - * PKCS#1 and SEC1 encryption. - * @since v11.6.0 - */ - export(options: KeyExportOptions<"pem">): string | NonSharedBuffer; - export(options?: KeyExportOptions<"der">): NonSharedBuffer; - export(options?: JwkKeyExportOptions): JsonWebKey; - /** - * Returns `true` or `false` depending on whether the keys have exactly the same - * type, value, and parameters. This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack). - * @since v17.7.0, v16.15.0 - * @param otherKeyObject A `KeyObject` with which to compare `keyObject`. - */ - equals(otherKeyObject: KeyObject): boolean; - /** - * For secret keys, this property represents the size of the key in bytes. This - * property is `undefined` for asymmetric keys. - * @since v11.6.0 - */ - symmetricKeySize?: number; - /** - * Converts a `KeyObject` instance to a `CryptoKey`. - * @since 22.10.0 - */ - toCryptoKey( - algorithm: - | webcrypto.AlgorithmIdentifier - | webcrypto.RsaHashedImportParams - | webcrypto.EcKeyImportParams - | webcrypto.HmacImportParams, - extractable: boolean, - keyUsages: readonly webcrypto.KeyUsage[], - ): webcrypto.CryptoKey; - /** - * Depending on the type of this `KeyObject`, this property is either`'secret'` for secret (symmetric) keys, `'public'` for public (asymmetric) keys - * or `'private'` for private (asymmetric) keys. - * @since v11.6.0 - */ - type: KeyObjectType; - } - type CipherCCMTypes = "aes-128-ccm" | "aes-192-ccm" | "aes-256-ccm"; - type CipherGCMTypes = "aes-128-gcm" | "aes-192-gcm" | "aes-256-gcm"; - type CipherOCBTypes = "aes-128-ocb" | "aes-192-ocb" | "aes-256-ocb"; - type CipherChaCha20Poly1305Types = "chacha20-poly1305"; - type BinaryLike = string | NodeJS.ArrayBufferView; - type CipherKey = BinaryLike | KeyObject; - interface CipherCCMOptions extends stream.TransformOptions { - authTagLength: number; - } - interface CipherGCMOptions extends stream.TransformOptions { - authTagLength?: number | undefined; - } - interface CipherOCBOptions extends stream.TransformOptions { - authTagLength: number; - } - interface CipherChaCha20Poly1305Options extends stream.TransformOptions { - /** @default 16 */ - authTagLength?: number | undefined; - } - /** - * Creates and returns a `Cipher` object, with the given `algorithm`, `key` and - * initialization vector (`iv`). - * - * The `options` argument controls stream behavior and is optional except when a - * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the - * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication - * tag that will be returned by `getAuthTag()` and defaults to 16 bytes. - * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes. - * - * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On - * recent OpenSSL releases, `openssl list -cipher-algorithms` will - * display the available cipher algorithms. - * - * The `key` is the raw key used by the `algorithm` and `iv` is an [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded - * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be - * a `KeyObject` of type `secret`. If the cipher does not need - * an initialization vector, `iv` may be `null`. - * - * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * Initialization vectors should be unpredictable and unique; ideally, they will be - * cryptographically random. They do not have to be secret: IVs are typically just - * added to ciphertext messages unencrypted. It may sound contradictory that - * something has to be unpredictable and unique, but does not have to be secret; - * remember that an attacker must not be able to predict ahead of time what a - * given IV will be. - * @since v0.1.94 - * @param options `stream.transform` options - */ - function createCipheriv( - algorithm: CipherCCMTypes, - key: CipherKey, - iv: BinaryLike, - options: CipherCCMOptions, - ): CipherCCM; - function createCipheriv( - algorithm: CipherOCBTypes, - key: CipherKey, - iv: BinaryLike, - options: CipherOCBOptions, - ): CipherOCB; - function createCipheriv( - algorithm: CipherGCMTypes, - key: CipherKey, - iv: BinaryLike, - options?: CipherGCMOptions, - ): CipherGCM; - function createCipheriv( - algorithm: CipherChaCha20Poly1305Types, - key: CipherKey, - iv: BinaryLike, - options?: CipherChaCha20Poly1305Options, - ): CipherChaCha20Poly1305; - function createCipheriv( - algorithm: string, - key: CipherKey, - iv: BinaryLike | null, - options?: stream.TransformOptions, - ): Cipheriv; - /** - * Instances of the `Cipheriv` class are used to encrypt data. The class can be - * used in one of two ways: - * - * * As a `stream` that is both readable and writable, where plain unencrypted - * data is written to produce encrypted data on the readable side, or - * * Using the `cipher.update()` and `cipher.final()` methods to produce - * the encrypted data. - * - * The {@link createCipheriv} method is - * used to create `Cipheriv` instances. `Cipheriv` objects are not to be created - * directly using the `new` keyword. - * - * Example: Using `Cipheriv` objects as streams: - * - * ```js - * const { - * scrypt, - * randomFill, - * createCipheriv, - * } = await import('node:crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * - * // First, we'll generate the key. The key length is dependent on the algorithm. - * // In this case for aes192, it is 24 bytes (192 bits). - * scrypt(password, 'salt', 24, (err, key) => { - * if (err) throw err; - * // Then, we'll generate a random initialization vector - * randomFill(new Uint8Array(16), (err, iv) => { - * if (err) throw err; - * - * // Once we have the key and iv, we can create and use the cipher... - * const cipher = createCipheriv(algorithm, key, iv); - * - * let encrypted = ''; - * cipher.setEncoding('hex'); - * - * cipher.on('data', (chunk) => encrypted += chunk); - * cipher.on('end', () => console.log(encrypted)); - * - * cipher.write('some clear text data'); - * cipher.end(); - * }); - * }); - * ``` - * - * Example: Using `Cipheriv` and piped streams: - * - * ```js - * import { - * createReadStream, - * createWriteStream, - * } from 'node:fs'; - * - * import { - * pipeline, - * } from 'node:stream'; - * - * const { - * scrypt, - * randomFill, - * createCipheriv, - * } = await import('node:crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * - * // First, we'll generate the key. The key length is dependent on the algorithm. - * // In this case for aes192, it is 24 bytes (192 bits). - * scrypt(password, 'salt', 24, (err, key) => { - * if (err) throw err; - * // Then, we'll generate a random initialization vector - * randomFill(new Uint8Array(16), (err, iv) => { - * if (err) throw err; - * - * const cipher = createCipheriv(algorithm, key, iv); - * - * const input = createReadStream('test.js'); - * const output = createWriteStream('test.enc'); - * - * pipeline(input, cipher, output, (err) => { - * if (err) throw err; - * }); - * }); - * }); - * ``` - * - * Example: Using the `cipher.update()` and `cipher.final()` methods: - * - * ```js - * const { - * scrypt, - * randomFill, - * createCipheriv, - * } = await import('node:crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * - * // First, we'll generate the key. The key length is dependent on the algorithm. - * // In this case for aes192, it is 24 bytes (192 bits). - * scrypt(password, 'salt', 24, (err, key) => { - * if (err) throw err; - * // Then, we'll generate a random initialization vector - * randomFill(new Uint8Array(16), (err, iv) => { - * if (err) throw err; - * - * const cipher = createCipheriv(algorithm, key, iv); - * - * let encrypted = cipher.update('some clear text data', 'utf8', 'hex'); - * encrypted += cipher.final('hex'); - * console.log(encrypted); - * }); - * }); - * ``` - * @since v0.1.94 - */ - class Cipheriv extends stream.Transform { - private constructor(); - /** - * Updates the cipher with `data`. If the `inputEncoding` argument is given, - * the `data`argument is a string using the specified encoding. If the `inputEncoding`argument is not given, `data` must be a `Buffer`, `TypedArray`, or `DataView`. If `data` is a `Buffer`, - * `TypedArray`, or `DataView`, then `inputEncoding` is ignored. - * - * The `outputEncoding` specifies the output format of the enciphered - * data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned. - * - * The `cipher.update()` method can be called multiple times with new data until `cipher.final()` is called. Calling `cipher.update()` after `cipher.final()` will result in an error being - * thrown. - * @since v0.1.94 - * @param inputEncoding The `encoding` of the data. - * @param outputEncoding The `encoding` of the return value. - */ - update(data: BinaryLike): NonSharedBuffer; - update(data: string, inputEncoding: Encoding): NonSharedBuffer; - update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string; - update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string; - /** - * Once the `cipher.final()` method has been called, the `Cipheriv` object can no - * longer be used to encrypt data. Attempts to call `cipher.final()` more than - * once will result in an error being thrown. - * @since v0.1.94 - * @param outputEncoding The `encoding` of the return value. - * @return Any remaining enciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned. - */ - final(): NonSharedBuffer; - final(outputEncoding: BufferEncoding): string; - /** - * When using block encryption algorithms, the `Cipheriv` class will automatically - * add padding to the input data to the appropriate block size. To disable the - * default padding call `cipher.setAutoPadding(false)`. - * - * When `autoPadding` is `false`, the length of the entire input data must be a - * multiple of the cipher's block size or `cipher.final()` will throw an error. - * Disabling automatic padding is useful for non-standard padding, for instance - * using `0x0` instead of PKCS padding. - * - * The `cipher.setAutoPadding()` method must be called before `cipher.final()`. - * @since v0.7.1 - * @param [autoPadding=true] - * @return for method chaining. - */ - setAutoPadding(autoPadding?: boolean): this; - } - interface CipherCCM extends Cipheriv { - setAAD( - buffer: NodeJS.ArrayBufferView, - options: { - plaintextLength: number; - }, - ): this; - getAuthTag(): NonSharedBuffer; - } - interface CipherGCM extends Cipheriv { - setAAD( - buffer: NodeJS.ArrayBufferView, - options?: { - plaintextLength: number; - }, - ): this; - getAuthTag(): NonSharedBuffer; - } - interface CipherOCB extends Cipheriv { - setAAD( - buffer: NodeJS.ArrayBufferView, - options?: { - plaintextLength: number; - }, - ): this; - getAuthTag(): NonSharedBuffer; - } - interface CipherChaCha20Poly1305 extends Cipheriv { - setAAD( - buffer: NodeJS.ArrayBufferView, - options: { - plaintextLength: number; - }, - ): this; - getAuthTag(): NonSharedBuffer; - } - /** - * Creates and returns a `Decipheriv` object that uses the given `algorithm`, `key` and initialization vector (`iv`). - * - * The `options` argument controls stream behavior and is optional except when a - * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the `authTagLength` option is required and specifies the length of the - * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength` option is not required but can be used to restrict accepted authentication tags - * to those with the specified length. - * For `chacha20-poly1305`, the `authTagLength` option defaults to 16 bytes. - * - * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On - * recent OpenSSL releases, `openssl list -cipher-algorithms` will - * display the available cipher algorithms. - * - * The `key` is the raw key used by the `algorithm` and `iv` is an [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded - * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be - * a `KeyObject` of type `secret`. If the cipher does not need - * an initialization vector, `iv` may be `null`. - * - * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * Initialization vectors should be unpredictable and unique; ideally, they will be - * cryptographically random. They do not have to be secret: IVs are typically just - * added to ciphertext messages unencrypted. It may sound contradictory that - * something has to be unpredictable and unique, but does not have to be secret; - * remember that an attacker must not be able to predict ahead of time what a given - * IV will be. - * @since v0.1.94 - * @param options `stream.transform` options - */ - function createDecipheriv( - algorithm: CipherCCMTypes, - key: CipherKey, - iv: BinaryLike, - options: CipherCCMOptions, - ): DecipherCCM; - function createDecipheriv( - algorithm: CipherOCBTypes, - key: CipherKey, - iv: BinaryLike, - options: CipherOCBOptions, - ): DecipherOCB; - function createDecipheriv( - algorithm: CipherGCMTypes, - key: CipherKey, - iv: BinaryLike, - options?: CipherGCMOptions, - ): DecipherGCM; - function createDecipheriv( - algorithm: CipherChaCha20Poly1305Types, - key: CipherKey, - iv: BinaryLike, - options?: CipherChaCha20Poly1305Options, - ): DecipherChaCha20Poly1305; - function createDecipheriv( - algorithm: string, - key: CipherKey, - iv: BinaryLike | null, - options?: stream.TransformOptions, - ): Decipheriv; - /** - * Instances of the `Decipheriv` class are used to decrypt data. The class can be - * used in one of two ways: - * - * * As a `stream` that is both readable and writable, where plain encrypted - * data is written to produce unencrypted data on the readable side, or - * * Using the `decipher.update()` and `decipher.final()` methods to - * produce the unencrypted data. - * - * The {@link createDecipheriv} method is - * used to create `Decipheriv` instances. `Decipheriv` objects are not to be created - * directly using the `new` keyword. - * - * Example: Using `Decipheriv` objects as streams: - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { - * scryptSync, - * createDecipheriv, - * } = await import('node:crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * // Key length is dependent on the algorithm. In this case for aes192, it is - * // 24 bytes (192 bits). - * // Use the async `crypto.scrypt()` instead. - * const key = scryptSync(password, 'salt', 24); - * // The IV is usually passed along with the ciphertext. - * const iv = Buffer.alloc(16, 0); // Initialization vector. - * - * const decipher = createDecipheriv(algorithm, key, iv); - * - * let decrypted = ''; - * decipher.on('readable', () => { - * let chunk; - * while (null !== (chunk = decipher.read())) { - * decrypted += chunk.toString('utf8'); - * } - * }); - * decipher.on('end', () => { - * console.log(decrypted); - * // Prints: some clear text data - * }); - * - * // Encrypted with same algorithm, key and iv. - * const encrypted = - * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa'; - * decipher.write(encrypted, 'hex'); - * decipher.end(); - * ``` - * - * Example: Using `Decipheriv` and piped streams: - * - * ```js - * import { - * createReadStream, - * createWriteStream, - * } from 'node:fs'; - * import { Buffer } from 'node:buffer'; - * const { - * scryptSync, - * createDecipheriv, - * } = await import('node:crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * // Use the async `crypto.scrypt()` instead. - * const key = scryptSync(password, 'salt', 24); - * // The IV is usually passed along with the ciphertext. - * const iv = Buffer.alloc(16, 0); // Initialization vector. - * - * const decipher = createDecipheriv(algorithm, key, iv); - * - * const input = createReadStream('test.enc'); - * const output = createWriteStream('test.js'); - * - * input.pipe(decipher).pipe(output); - * ``` - * - * Example: Using the `decipher.update()` and `decipher.final()` methods: - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { - * scryptSync, - * createDecipheriv, - * } = await import('node:crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * // Use the async `crypto.scrypt()` instead. - * const key = scryptSync(password, 'salt', 24); - * // The IV is usually passed along with the ciphertext. - * const iv = Buffer.alloc(16, 0); // Initialization vector. - * - * const decipher = createDecipheriv(algorithm, key, iv); - * - * // Encrypted using same algorithm, key and iv. - * const encrypted = - * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa'; - * let decrypted = decipher.update(encrypted, 'hex', 'utf8'); - * decrypted += decipher.final('utf8'); - * console.log(decrypted); - * // Prints: some clear text data - * ``` - * @since v0.1.94 - */ - class Decipheriv extends stream.Transform { - private constructor(); - /** - * Updates the decipher with `data`. If the `inputEncoding` argument is given, - * the `data` argument is a string using the specified encoding. If the `inputEncoding` argument is not given, `data` must be a `Buffer`. If `data` is a `Buffer` then `inputEncoding` is - * ignored. - * - * The `outputEncoding` specifies the output format of the enciphered - * data. If the `outputEncoding` is specified, a string using the specified encoding is returned. If no `outputEncoding` is provided, a `Buffer` is returned. - * - * The `decipher.update()` method can be called multiple times with new data until `decipher.final()` is called. Calling `decipher.update()` after `decipher.final()` will result in an error - * being thrown. - * @since v0.1.94 - * @param inputEncoding The `encoding` of the `data` string. - * @param outputEncoding The `encoding` of the return value. - */ - update(data: NodeJS.ArrayBufferView): NonSharedBuffer; - update(data: string, inputEncoding: Encoding): NonSharedBuffer; - update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string; - update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string; - /** - * Once the `decipher.final()` method has been called, the `Decipheriv` object can - * no longer be used to decrypt data. Attempts to call `decipher.final()` more - * than once will result in an error being thrown. - * @since v0.1.94 - * @param outputEncoding The `encoding` of the return value. - * @return Any remaining deciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned. - */ - final(): NonSharedBuffer; - final(outputEncoding: BufferEncoding): string; - /** - * When data has been encrypted without standard block padding, calling `decipher.setAutoPadding(false)` will disable automatic padding to prevent `decipher.final()` from checking for and - * removing padding. - * - * Turning auto padding off will only work if the input data's length is a - * multiple of the ciphers block size. - * - * The `decipher.setAutoPadding()` method must be called before `decipher.final()`. - * @since v0.7.1 - * @param [autoPadding=true] - * @return for method chaining. - */ - setAutoPadding(auto_padding?: boolean): this; - } - interface DecipherCCM extends Decipheriv { - setAuthTag(buffer: NodeJS.ArrayBufferView): this; - setAAD( - buffer: NodeJS.ArrayBufferView, - options: { - plaintextLength: number; - }, - ): this; - } - interface DecipherGCM extends Decipheriv { - setAuthTag(buffer: NodeJS.ArrayBufferView): this; - setAAD( - buffer: NodeJS.ArrayBufferView, - options?: { - plaintextLength: number; - }, - ): this; - } - interface DecipherOCB extends Decipheriv { - setAuthTag(buffer: NodeJS.ArrayBufferView): this; - setAAD( - buffer: NodeJS.ArrayBufferView, - options?: { - plaintextLength: number; - }, - ): this; - } - interface DecipherChaCha20Poly1305 extends Decipheriv { - setAuthTag(buffer: NodeJS.ArrayBufferView): this; - setAAD( - buffer: NodeJS.ArrayBufferView, - options: { - plaintextLength: number; - }, - ): this; - } - interface PrivateKeyInput { - key: string | Buffer; - format?: KeyFormat | undefined; - type?: "pkcs1" | "pkcs8" | "sec1" | undefined; - passphrase?: string | Buffer | undefined; - encoding?: string | undefined; - } - interface PublicKeyInput { - key: string | Buffer; - format?: KeyFormat | undefined; - type?: "pkcs1" | "spki" | undefined; - encoding?: string | undefined; - } - /** - * Asynchronously generates a new random secret key of the given `length`. The `type` will determine which validations will be performed on the `length`. - * - * ```js - * const { - * generateKey, - * } = await import('node:crypto'); - * - * generateKey('hmac', { length: 512 }, (err, key) => { - * if (err) throw err; - * console.log(key.export().toString('hex')); // 46e..........620 - * }); - * ``` - * - * The size of a generated HMAC key should not exceed the block size of the - * underlying hash function. See {@link createHmac} for more information. - * @since v15.0.0 - * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`. - */ - function generateKey( - type: "hmac" | "aes", - options: { - length: number; - }, - callback: (err: Error | null, key: KeyObject) => void, - ): void; - /** - * Synchronously generates a new random secret key of the given `length`. The `type` will determine which validations will be performed on the `length`. - * - * ```js - * const { - * generateKeySync, - * } = await import('node:crypto'); - * - * const key = generateKeySync('hmac', { length: 512 }); - * console.log(key.export().toString('hex')); // e89..........41e - * ``` - * - * The size of a generated HMAC key should not exceed the block size of the - * underlying hash function. See {@link createHmac} for more information. - * @since v15.0.0 - * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`. - */ - function generateKeySync( - type: "hmac" | "aes", - options: { - length: number; - }, - ): KeyObject; - interface JsonWebKeyInput { - key: JsonWebKey; - format: "jwk"; - } - /** - * Creates and returns a new key object containing a private key. If `key` is a - * string or `Buffer`, `format` is assumed to be `'pem'`; otherwise, `key` must be an object with the properties described above. - * - * If the private key is encrypted, a `passphrase` must be specified. The length - * of the passphrase is limited to 1024 bytes. - * @since v11.6.0 - */ - function createPrivateKey(key: PrivateKeyInput | string | Buffer | JsonWebKeyInput): KeyObject; - /** - * Creates and returns a new key object containing a public key. If `key` is a - * string or `Buffer`, `format` is assumed to be `'pem'`; if `key` is a `KeyObject` with type `'private'`, the public key is derived from the given private key; - * otherwise, `key` must be an object with the properties described above. - * - * If the format is `'pem'`, the `'key'` may also be an X.509 certificate. - * - * Because public keys can be derived from private keys, a private key may be - * passed instead of a public key. In that case, this function behaves as if {@link createPrivateKey} had been called, except that the type of the - * returned `KeyObject` will be `'public'` and that the private key cannot be - * extracted from the returned `KeyObject`. Similarly, if a `KeyObject` with type `'private'` is given, a new `KeyObject` with type `'public'` will be returned - * and it will be impossible to extract the private key from the returned object. - * @since v11.6.0 - */ - function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject | JsonWebKeyInput): KeyObject; - /** - * Creates and returns a new key object containing a secret key for symmetric - * encryption or `Hmac`. - * @since v11.6.0 - * @param encoding The string encoding when `key` is a string. - */ - function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject; - function createSecretKey(key: string, encoding: BufferEncoding): KeyObject; - /** - * Creates and returns a `Sign` object that uses the given `algorithm`. Use {@link getHashes} to obtain the names of the available digest algorithms. - * Optional `options` argument controls the `stream.Writable` behavior. - * - * In some cases, a `Sign` instance can be created using the name of a signature - * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use - * the corresponding digest algorithm. This does not work for all signature - * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest - * algorithm names. - * @since v0.1.92 - * @param options `stream.Writable` options - */ - // TODO: signing algorithm type - function createSign(algorithm: string, options?: stream.WritableOptions): Sign; - type DSAEncoding = "der" | "ieee-p1363"; - interface SigningOptions { - /** - * @see crypto.constants.RSA_PKCS1_PADDING - */ - padding?: number | undefined; - saltLength?: number | undefined; - dsaEncoding?: DSAEncoding | undefined; - context?: ArrayBuffer | NodeJS.ArrayBufferView | undefined; - } - interface SignPrivateKeyInput extends PrivateKeyInput, SigningOptions {} - interface SignKeyObjectInput extends SigningOptions { - key: KeyObject; - } - interface SignJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {} - interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {} - interface VerifyKeyObjectInput extends SigningOptions { - key: KeyObject; - } - interface VerifyJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {} - type KeyLike = string | Buffer | KeyObject; - /** - * The `Sign` class is a utility for generating signatures. It can be used in one - * of two ways: - * - * * As a writable `stream`, where data to be signed is written and the `sign.sign()` method is used to generate and return the signature, or - * * Using the `sign.update()` and `sign.sign()` methods to produce the - * signature. - * - * The {@link createSign} method is used to create `Sign` instances. The - * argument is the string name of the hash function to use. `Sign` objects are not - * to be created directly using the `new` keyword. - * - * Example: Using `Sign` and `Verify` objects as streams: - * - * ```js - * const { - * generateKeyPairSync, - * createSign, - * createVerify, - * } = await import('node:crypto'); - * - * const { privateKey, publicKey } = generateKeyPairSync('ec', { - * namedCurve: 'sect239k1', - * }); - * - * const sign = createSign('SHA256'); - * sign.write('some data to sign'); - * sign.end(); - * const signature = sign.sign(privateKey, 'hex'); - * - * const verify = createVerify('SHA256'); - * verify.write('some data to sign'); - * verify.end(); - * console.log(verify.verify(publicKey, signature, 'hex')); - * // Prints: true - * ``` - * - * Example: Using the `sign.update()` and `verify.update()` methods: - * - * ```js - * const { - * generateKeyPairSync, - * createSign, - * createVerify, - * } = await import('node:crypto'); - * - * const { privateKey, publicKey } = generateKeyPairSync('rsa', { - * modulusLength: 2048, - * }); - * - * const sign = createSign('SHA256'); - * sign.update('some data to sign'); - * sign.end(); - * const signature = sign.sign(privateKey); - * - * const verify = createVerify('SHA256'); - * verify.update('some data to sign'); - * verify.end(); - * console.log(verify.verify(publicKey, signature)); - * // Prints: true - * ``` - * @since v0.1.92 - */ - class Sign extends stream.Writable { - private constructor(); - /** - * Updates the `Sign` content with the given `data`, the encoding of which - * is given in `inputEncoding`. - * If `encoding` is not provided, and the `data` is a string, an - * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. - * - * This can be called many times with new data as it is streamed. - * @since v0.1.92 - * @param inputEncoding The `encoding` of the `data` string. - */ - update(data: BinaryLike): this; - update(data: string, inputEncoding: Encoding): this; - /** - * Calculates the signature on all the data passed through using either `sign.update()` or `sign.write()`. - * - * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an - * object, the following additional properties can be passed: - * - * If `outputEncoding` is provided a string is returned; otherwise a `Buffer` is returned. - * - * The `Sign` object can not be again used after `sign.sign()` method has been - * called. Multiple calls to `sign.sign()` will result in an error being thrown. - * @since v0.1.92 - */ - sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput): NonSharedBuffer; - sign( - privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput, - outputFormat: BinaryToTextEncoding, - ): string; - } - /** - * Creates and returns a `Verify` object that uses the given algorithm. - * Use {@link getHashes} to obtain an array of names of the available - * signing algorithms. Optional `options` argument controls the `stream.Writable` behavior. - * - * In some cases, a `Verify` instance can be created using the name of a signature - * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use - * the corresponding digest algorithm. This does not work for all signature - * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest - * algorithm names. - * @since v0.1.92 - * @param options `stream.Writable` options - */ - function createVerify(algorithm: string, options?: stream.WritableOptions): Verify; - /** - * The `Verify` class is a utility for verifying signatures. It can be used in one - * of two ways: - * - * * As a writable `stream` where written data is used to validate against the - * supplied signature, or - * * Using the `verify.update()` and `verify.verify()` methods to verify - * the signature. - * - * The {@link createVerify} method is used to create `Verify` instances. `Verify` objects are not to be created directly using the `new` keyword. - * - * See `Sign` for examples. - * @since v0.1.92 - */ - class Verify extends stream.Writable { - private constructor(); - /** - * Updates the `Verify` content with the given `data`, the encoding of which - * is given in `inputEncoding`. - * If `inputEncoding` is not provided, and the `data` is a string, an - * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or `DataView`, then `inputEncoding` is ignored. - * - * This can be called many times with new data as it is streamed. - * @since v0.1.92 - * @param inputEncoding The `encoding` of the `data` string. - */ - update(data: BinaryLike): Verify; - update(data: string, inputEncoding: Encoding): Verify; - /** - * Verifies the provided data using the given `object` and `signature`. - * - * If `object` is not a `KeyObject`, this function behaves as if `object` had been passed to {@link createPublicKey}. If it is an - * object, the following additional properties can be passed: - * - * The `signature` argument is the previously calculated signature for the data, in - * the `signatureEncoding`. - * If a `signatureEncoding` is specified, the `signature` is expected to be a - * string; otherwise `signature` is expected to be a `Buffer`, `TypedArray`, or `DataView`. - * - * The `verify` object can not be used again after `verify.verify()` has been - * called. Multiple calls to `verify.verify()` will result in an error being - * thrown. - * - * Because public keys can be derived from private keys, a private key may - * be passed instead of a public key. - * @since v0.1.92 - */ - verify( - object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, - signature: NodeJS.ArrayBufferView, - ): boolean; - verify( - object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, - signature: string, - signature_format?: BinaryToTextEncoding, - ): boolean; - } - /** - * Creates a `DiffieHellman` key exchange object using the supplied `prime` and an - * optional specific `generator`. - * - * The `generator` argument can be a number, string, or `Buffer`. If `generator` is not specified, the value `2` is used. - * - * If `primeEncoding` is specified, `prime` is expected to be a string; otherwise - * a `Buffer`, `TypedArray`, or `DataView` is expected. - * - * If `generatorEncoding` is specified, `generator` is expected to be a string; - * otherwise a number, `Buffer`, `TypedArray`, or `DataView` is expected. - * @since v0.11.12 - * @param primeEncoding The `encoding` of the `prime` string. - * @param [generator=2] - * @param generatorEncoding The `encoding` of the `generator` string. - */ - function createDiffieHellman(primeLength: number, generator?: number): DiffieHellman; - function createDiffieHellman( - prime: ArrayBuffer | NodeJS.ArrayBufferView, - generator?: number | ArrayBuffer | NodeJS.ArrayBufferView, - ): DiffieHellman; - function createDiffieHellman( - prime: ArrayBuffer | NodeJS.ArrayBufferView, - generator: string, - generatorEncoding: BinaryToTextEncoding, - ): DiffieHellman; - function createDiffieHellman( - prime: string, - primeEncoding: BinaryToTextEncoding, - generator?: number | ArrayBuffer | NodeJS.ArrayBufferView, - ): DiffieHellman; - function createDiffieHellman( - prime: string, - primeEncoding: BinaryToTextEncoding, - generator: string, - generatorEncoding: BinaryToTextEncoding, - ): DiffieHellman; - /** - * The `DiffieHellman` class is a utility for creating Diffie-Hellman key - * exchanges. - * - * Instances of the `DiffieHellman` class can be created using the {@link createDiffieHellman} function. - * - * ```js - * import assert from 'node:assert'; - * - * const { - * createDiffieHellman, - * } = await import('node:crypto'); - * - * // Generate Alice's keys... - * const alice = createDiffieHellman(2048); - * const aliceKey = alice.generateKeys(); - * - * // Generate Bob's keys... - * const bob = createDiffieHellman(alice.getPrime(), alice.getGenerator()); - * const bobKey = bob.generateKeys(); - * - * // Exchange and generate the secret... - * const aliceSecret = alice.computeSecret(bobKey); - * const bobSecret = bob.computeSecret(aliceKey); - * - * // OK - * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex')); - * ``` - * @since v0.5.0 - */ - class DiffieHellman { - private constructor(); - /** - * Generates private and public Diffie-Hellman key values unless they have been - * generated or computed already, and returns - * the public key in the specified `encoding`. This key should be - * transferred to the other party. - * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned. - * - * This function is a thin wrapper around [`DH_generate_key()`](https://www.openssl.org/docs/man3.0/man3/DH_generate_key.html). In particular, - * once a private key has been generated or set, calling this function only updates - * the public key but does not generate a new private key. - * @since v0.5.0 - * @param encoding The `encoding` of the return value. - */ - generateKeys(): NonSharedBuffer; - generateKeys(encoding: BinaryToTextEncoding): string; - /** - * Computes the shared secret using `otherPublicKey` as the other - * party's public key and returns the computed shared secret. The supplied - * key is interpreted using the specified `inputEncoding`, and secret is - * encoded using specified `outputEncoding`. - * If the `inputEncoding` is not - * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`. - * - * If `outputEncoding` is given a string is returned; otherwise, a `Buffer` is returned. - * @since v0.5.0 - * @param inputEncoding The `encoding` of an `otherPublicKey` string. - * @param outputEncoding The `encoding` of the return value. - */ - computeSecret( - otherPublicKey: NodeJS.ArrayBufferView, - inputEncoding?: null, - outputEncoding?: null, - ): NonSharedBuffer; - computeSecret( - otherPublicKey: string, - inputEncoding: BinaryToTextEncoding, - outputEncoding?: null, - ): NonSharedBuffer; - computeSecret( - otherPublicKey: NodeJS.ArrayBufferView, - inputEncoding: null, - outputEncoding: BinaryToTextEncoding, - ): string; - computeSecret( - otherPublicKey: string, - inputEncoding: BinaryToTextEncoding, - outputEncoding: BinaryToTextEncoding, - ): string; - /** - * Returns the Diffie-Hellman prime in the specified `encoding`. - * If `encoding` is provided a string is - * returned; otherwise a `Buffer` is returned. - * @since v0.5.0 - * @param encoding The `encoding` of the return value. - */ - getPrime(): NonSharedBuffer; - getPrime(encoding: BinaryToTextEncoding): string; - /** - * Returns the Diffie-Hellman generator in the specified `encoding`. - * If `encoding` is provided a string is - * returned; otherwise a `Buffer` is returned. - * @since v0.5.0 - * @param encoding The `encoding` of the return value. - */ - getGenerator(): NonSharedBuffer; - getGenerator(encoding: BinaryToTextEncoding): string; - /** - * Returns the Diffie-Hellman public key in the specified `encoding`. - * If `encoding` is provided a - * string is returned; otherwise a `Buffer` is returned. - * @since v0.5.0 - * @param encoding The `encoding` of the return value. - */ - getPublicKey(): NonSharedBuffer; - getPublicKey(encoding: BinaryToTextEncoding): string; - /** - * Returns the Diffie-Hellman private key in the specified `encoding`. - * If `encoding` is provided a - * string is returned; otherwise a `Buffer` is returned. - * @since v0.5.0 - * @param encoding The `encoding` of the return value. - */ - getPrivateKey(): NonSharedBuffer; - getPrivateKey(encoding: BinaryToTextEncoding): string; - /** - * Sets the Diffie-Hellman public key. If the `encoding` argument is provided, `publicKey` is expected - * to be a string. If no `encoding` is provided, `publicKey` is expected - * to be a `Buffer`, `TypedArray`, or `DataView`. - * @since v0.5.0 - * @param encoding The `encoding` of the `publicKey` string. - */ - setPublicKey(publicKey: NodeJS.ArrayBufferView): void; - setPublicKey(publicKey: string, encoding: BufferEncoding): void; - /** - * Sets the Diffie-Hellman private key. If the `encoding` argument is provided,`privateKey` is expected - * to be a string. If no `encoding` is provided, `privateKey` is expected - * to be a `Buffer`, `TypedArray`, or `DataView`. - * - * This function does not automatically compute the associated public key. Either `diffieHellman.setPublicKey()` or `diffieHellman.generateKeys()` can be - * used to manually provide the public key or to automatically derive it. - * @since v0.5.0 - * @param encoding The `encoding` of the `privateKey` string. - */ - setPrivateKey(privateKey: NodeJS.ArrayBufferView): void; - setPrivateKey(privateKey: string, encoding: BufferEncoding): void; - /** - * A bit field containing any warnings and/or errors resulting from a check - * performed during initialization of the `DiffieHellman` object. - * - * The following values are valid for this property (as defined in `node:constants` module): - * - * * `DH_CHECK_P_NOT_SAFE_PRIME` - * * `DH_CHECK_P_NOT_PRIME` - * * `DH_UNABLE_TO_CHECK_GENERATOR` - * * `DH_NOT_SUITABLE_GENERATOR` - * @since v0.11.12 - */ - verifyError: number; - } - /** - * The `DiffieHellmanGroup` class takes a well-known modp group as its argument. - * It works the same as `DiffieHellman`, except that it does not allow changing its keys after creation. - * In other words, it does not implement `setPublicKey()` or `setPrivateKey()` methods. - * - * ```js - * const { createDiffieHellmanGroup } = await import('node:crypto'); - * const dh = createDiffieHellmanGroup('modp1'); - * ``` - * The name (e.g. `'modp1'`) is taken from [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt) (modp1 and 2) and [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt): - * ```bash - * $ perl -ne 'print "$1\n" if /"(modp\d+)"/' src/node_crypto_groups.h - * modp1 # 768 bits - * modp2 # 1024 bits - * modp5 # 1536 bits - * modp14 # 2048 bits - * modp15 # etc. - * modp16 - * modp17 - * modp18 - * ``` - * @since v0.7.5 - */ - const DiffieHellmanGroup: DiffieHellmanGroupConstructor; - interface DiffieHellmanGroupConstructor { - new(name: string): DiffieHellmanGroup; - (name: string): DiffieHellmanGroup; - readonly prototype: DiffieHellmanGroup; - } - type DiffieHellmanGroup = Omit; - /** - * Creates a predefined `DiffieHellmanGroup` key exchange object. The - * supported groups are listed in the documentation for `DiffieHellmanGroup`. - * - * The returned object mimics the interface of objects created by {@link createDiffieHellman}, but will not allow changing - * the keys (with `diffieHellman.setPublicKey()`, for example). The - * advantage of using this method is that the parties do not have to - * generate nor exchange a group modulus beforehand, saving both processor - * and communication time. - * - * Example (obtaining a shared secret): - * - * ```js - * const { - * getDiffieHellman, - * } = await import('node:crypto'); - * const alice = getDiffieHellman('modp14'); - * const bob = getDiffieHellman('modp14'); - * - * alice.generateKeys(); - * bob.generateKeys(); - * - * const aliceSecret = alice.computeSecret(bob.getPublicKey(), null, 'hex'); - * const bobSecret = bob.computeSecret(alice.getPublicKey(), null, 'hex'); - * - * // aliceSecret and bobSecret should be the same - * console.log(aliceSecret === bobSecret); - * ``` - * @since v0.7.5 - */ - function getDiffieHellman(groupName: string): DiffieHellmanGroup; - /** - * An alias for {@link getDiffieHellman} - * @since v0.9.3 - */ - function createDiffieHellmanGroup(name: string): DiffieHellmanGroup; - /** - * Provides an asynchronous Password-Based Key Derivation Function 2 (PBKDF2) - * implementation. A selected HMAC digest algorithm specified by `digest` is - * applied to derive a key of the requested byte length (`keylen`) from the `password`, `salt` and `iterations`. - * - * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an error occurs while deriving the key, `err` will be set; - * otherwise `err` will be `null`. By default, the successfully generated `derivedKey` will be passed to the callback as a `Buffer`. An error will be - * thrown if any of the input arguments specify invalid values or types. - * - * The `iterations` argument must be a number set as high as possible. The - * higher the number of iterations, the more secure the derived key will be, - * but will take a longer amount of time to complete. - * - * The `salt` should be as unique as possible. It is recommended that a salt is - * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. - * - * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * ```js - * const { - * pbkdf2, - * } = await import('node:crypto'); - * - * pbkdf2('secret', 'salt', 100000, 64, 'sha512', (err, derivedKey) => { - * if (err) throw err; - * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae' - * }); - * ``` - * - * An array of supported digest functions can be retrieved using {@link getHashes}. - * - * This API uses libuv's threadpool, which can have surprising and - * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information. - * @since v0.5.5 - */ - function pbkdf2( - password: BinaryLike, - salt: BinaryLike, - iterations: number, - keylen: number, - digest: string, - callback: (err: Error | null, derivedKey: NonSharedBuffer) => void, - ): void; - /** - * Provides a synchronous Password-Based Key Derivation Function 2 (PBKDF2) - * implementation. A selected HMAC digest algorithm specified by `digest` is - * applied to derive a key of the requested byte length (`keylen`) from the `password`, `salt` and `iterations`. - * - * If an error occurs an `Error` will be thrown, otherwise the derived key will be - * returned as a `Buffer`. - * - * The `iterations` argument must be a number set as high as possible. The - * higher the number of iterations, the more secure the derived key will be, - * but will take a longer amount of time to complete. - * - * The `salt` should be as unique as possible. It is recommended that a salt is - * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. - * - * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * ```js - * const { - * pbkdf2Sync, - * } = await import('node:crypto'); - * - * const key = pbkdf2Sync('secret', 'salt', 100000, 64, 'sha512'); - * console.log(key.toString('hex')); // '3745e48...08d59ae' - * ``` - * - * An array of supported digest functions can be retrieved using {@link getHashes}. - * @since v0.9.3 - */ - function pbkdf2Sync( - password: BinaryLike, - salt: BinaryLike, - iterations: number, - keylen: number, - digest: string, - ): NonSharedBuffer; - /** - * Generates cryptographically strong pseudorandom data. The `size` argument - * is a number indicating the number of bytes to generate. - * - * If a `callback` function is provided, the bytes are generated asynchronously - * and the `callback` function is invoked with two arguments: `err` and `buf`. - * If an error occurs, `err` will be an `Error` object; otherwise it is `null`. The `buf` argument is a `Buffer` containing the generated bytes. - * - * ```js - * // Asynchronous - * const { - * randomBytes, - * } = await import('node:crypto'); - * - * randomBytes(256, (err, buf) => { - * if (err) throw err; - * console.log(`${buf.length} bytes of random data: ${buf.toString('hex')}`); - * }); - * ``` - * - * If the `callback` function is not provided, the random bytes are generated - * synchronously and returned as a `Buffer`. An error will be thrown if - * there is a problem generating the bytes. - * - * ```js - * // Synchronous - * const { - * randomBytes, - * } = await import('node:crypto'); - * - * const buf = randomBytes(256); - * console.log( - * `${buf.length} bytes of random data: ${buf.toString('hex')}`); - * ``` - * - * The `crypto.randomBytes()` method will not complete until there is - * sufficient entropy available. - * This should normally never take longer than a few milliseconds. The only time - * when generating the random bytes may conceivably block for a longer period of - * time is right after boot, when the whole system is still low on entropy. - * - * This API uses libuv's threadpool, which can have surprising and - * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information. - * - * The asynchronous version of `crypto.randomBytes()` is carried out in a single - * threadpool request. To minimize threadpool task length variation, partition - * large `randomBytes` requests when doing so as part of fulfilling a client - * request. - * @since v0.5.8 - * @param size The number of bytes to generate. The `size` must not be larger than `2**31 - 1`. - * @return if the `callback` function is not provided. - */ - function randomBytes(size: number): NonSharedBuffer; - function randomBytes(size: number, callback: (err: Error | null, buf: NonSharedBuffer) => void): void; - function pseudoRandomBytes(size: number): NonSharedBuffer; - function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: NonSharedBuffer) => void): void; - /** - * Return a random integer `n` such that `min <= n < max`. This - * implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias). - * - * The range (`max - min`) must be less than 2**48. `min` and `max` must - * be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger). - * - * If the `callback` function is not provided, the random integer is - * generated synchronously. - * - * ```js - * // Asynchronous - * const { - * randomInt, - * } = await import('node:crypto'); - * - * randomInt(3, (err, n) => { - * if (err) throw err; - * console.log(`Random number chosen from (0, 1, 2): ${n}`); - * }); - * ``` - * - * ```js - * // Synchronous - * const { - * randomInt, - * } = await import('node:crypto'); - * - * const n = randomInt(3); - * console.log(`Random number chosen from (0, 1, 2): ${n}`); - * ``` - * - * ```js - * // With `min` argument - * const { - * randomInt, - * } = await import('node:crypto'); - * - * const n = randomInt(1, 7); - * console.log(`The dice rolled: ${n}`); - * ``` - * @since v14.10.0, v12.19.0 - * @param [min=0] Start of random range (inclusive). - * @param max End of random range (exclusive). - * @param callback `function(err, n) {}`. - */ - function randomInt(max: number): number; - function randomInt(min: number, max: number): number; - function randomInt(max: number, callback: (err: Error | null, value: number) => void): void; - function randomInt(min: number, max: number, callback: (err: Error | null, value: number) => void): void; - /** - * Synchronous version of {@link randomFill}. - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { randomFillSync } = await import('node:crypto'); - * - * const buf = Buffer.alloc(10); - * console.log(randomFillSync(buf).toString('hex')); - * - * randomFillSync(buf, 5); - * console.log(buf.toString('hex')); - * - * // The above is equivalent to the following: - * randomFillSync(buf, 5, 5); - * console.log(buf.toString('hex')); - * ``` - * - * Any `ArrayBuffer`, `TypedArray` or `DataView` instance may be passed as`buffer`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { randomFillSync } = await import('node:crypto'); - * - * const a = new Uint32Array(10); - * console.log(Buffer.from(randomFillSync(a).buffer, - * a.byteOffset, a.byteLength).toString('hex')); - * - * const b = new DataView(new ArrayBuffer(10)); - * console.log(Buffer.from(randomFillSync(b).buffer, - * b.byteOffset, b.byteLength).toString('hex')); - * - * const c = new ArrayBuffer(10); - * console.log(Buffer.from(randomFillSync(c)).toString('hex')); - * ``` - * @since v7.10.0, v6.13.0 - * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`. - * @param [offset=0] - * @param [size=buffer.length - offset] - * @return The object passed as `buffer` argument. - */ - function randomFillSync(buffer: T, offset?: number, size?: number): T; - /** - * This function is similar to {@link randomBytes} but requires the first - * argument to be a `Buffer` that will be filled. It also - * requires that a callback is passed in. - * - * If the `callback` function is not provided, an error will be thrown. - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { randomFill } = await import('node:crypto'); - * - * const buf = Buffer.alloc(10); - * randomFill(buf, (err, buf) => { - * if (err) throw err; - * console.log(buf.toString('hex')); - * }); - * - * randomFill(buf, 5, (err, buf) => { - * if (err) throw err; - * console.log(buf.toString('hex')); - * }); - * - * // The above is equivalent to the following: - * randomFill(buf, 5, 5, (err, buf) => { - * if (err) throw err; - * console.log(buf.toString('hex')); - * }); - * ``` - * - * Any `ArrayBuffer`, `TypedArray`, or `DataView` instance may be passed as `buffer`. - * - * While this includes instances of `Float32Array` and `Float64Array`, this - * function should not be used to generate random floating-point numbers. The - * result may contain `+Infinity`, `-Infinity`, and `NaN`, and even if the array - * contains finite numbers only, they are not drawn from a uniform random - * distribution and have no meaningful lower or upper bounds. - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { randomFill } = await import('node:crypto'); - * - * const a = new Uint32Array(10); - * randomFill(a, (err, buf) => { - * if (err) throw err; - * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength) - * .toString('hex')); - * }); - * - * const b = new DataView(new ArrayBuffer(10)); - * randomFill(b, (err, buf) => { - * if (err) throw err; - * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength) - * .toString('hex')); - * }); - * - * const c = new ArrayBuffer(10); - * randomFill(c, (err, buf) => { - * if (err) throw err; - * console.log(Buffer.from(buf).toString('hex')); - * }); - * ``` - * - * This API uses libuv's threadpool, which can have surprising and - * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information. - * - * The asynchronous version of `crypto.randomFill()` is carried out in a single - * threadpool request. To minimize threadpool task length variation, partition - * large `randomFill` requests when doing so as part of fulfilling a client - * request. - * @since v7.10.0, v6.13.0 - * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`. - * @param [offset=0] - * @param [size=buffer.length - offset] - * @param callback `function(err, buf) {}`. - */ - function randomFill( - buffer: T, - callback: (err: Error | null, buf: T) => void, - ): void; - function randomFill( - buffer: T, - offset: number, - callback: (err: Error | null, buf: T) => void, - ): void; - function randomFill( - buffer: T, - offset: number, - size: number, - callback: (err: Error | null, buf: T) => void, - ): void; - interface ScryptOptions { - cost?: number | undefined; - blockSize?: number | undefined; - parallelization?: number | undefined; - N?: number | undefined; - r?: number | undefined; - p?: number | undefined; - maxmem?: number | undefined; - } - /** - * Provides an asynchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based - * key derivation function that is designed to be expensive computationally and - * memory-wise in order to make brute-force attacks unrewarding. - * - * The `salt` should be as unique as possible. It is recommended that a salt is - * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. - * - * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * The `callback` function is called with two arguments: `err` and `derivedKey`. `err` is an exception object when key derivation fails, otherwise `err` is `null`. `derivedKey` is passed to the - * callback as a `Buffer`. - * - * An exception is thrown when any of the input arguments specify invalid values - * or types. - * - * ```js - * const { - * scrypt, - * } = await import('node:crypto'); - * - * // Using the factory defaults. - * scrypt('password', 'salt', 64, (err, derivedKey) => { - * if (err) throw err; - * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae' - * }); - * // Using a custom N parameter. Must be a power of two. - * scrypt('password', 'salt', 64, { N: 1024 }, (err, derivedKey) => { - * if (err) throw err; - * console.log(derivedKey.toString('hex')); // '3745e48...aa39b34' - * }); - * ``` - * @since v10.5.0 - */ - function scrypt( - password: BinaryLike, - salt: BinaryLike, - keylen: number, - callback: (err: Error | null, derivedKey: NonSharedBuffer) => void, - ): void; - function scrypt( - password: BinaryLike, - salt: BinaryLike, - keylen: number, - options: ScryptOptions, - callback: (err: Error | null, derivedKey: NonSharedBuffer) => void, - ): void; - /** - * Provides a synchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based - * key derivation function that is designed to be expensive computationally and - * memory-wise in order to make brute-force attacks unrewarding. - * - * The `salt` should be as unique as possible. It is recommended that a salt is - * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. - * - * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * An exception is thrown when key derivation fails, otherwise the derived key is - * returned as a `Buffer`. - * - * An exception is thrown when any of the input arguments specify invalid values - * or types. - * - * ```js - * const { - * scryptSync, - * } = await import('node:crypto'); - * // Using the factory defaults. - * - * const key1 = scryptSync('password', 'salt', 64); - * console.log(key1.toString('hex')); // '3745e48...08d59ae' - * // Using a custom N parameter. Must be a power of two. - * const key2 = scryptSync('password', 'salt', 64, { N: 1024 }); - * console.log(key2.toString('hex')); // '3745e48...aa39b34' - * ``` - * @since v10.5.0 - */ - function scryptSync( - password: BinaryLike, - salt: BinaryLike, - keylen: number, - options?: ScryptOptions, - ): NonSharedBuffer; - interface RsaPublicKey { - key: KeyLike; - padding?: number | undefined; - } - interface RsaPrivateKey { - key: KeyLike; - passphrase?: string | undefined; - /** - * @default 'sha1' - */ - oaepHash?: string | undefined; - oaepLabel?: NodeJS.TypedArray | undefined; - padding?: number | undefined; - } - /** - * Encrypts the content of `buffer` with `key` and returns a new `Buffer` with encrypted content. The returned data can be decrypted using - * the corresponding private key, for example using {@link privateDecrypt}. - * - * If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an - * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`. - * - * Because RSA public keys can be derived from private keys, a private key may - * be passed instead of a public key. - * @since v0.11.14 - */ - function publicEncrypt( - key: RsaPublicKey | RsaPrivateKey | KeyLike, - buffer: NodeJS.ArrayBufferView | string, - ): NonSharedBuffer; - /** - * Decrypts `buffer` with `key`.`buffer` was previously encrypted using - * the corresponding private key, for example using {@link privateEncrypt}. - * - * If `key` is not a `KeyObject`, this function behaves as if `key` had been passed to {@link createPublicKey}. If it is an - * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`. - * - * Because RSA public keys can be derived from private keys, a private key may - * be passed instead of a public key. - * @since v1.1.0 - */ - function publicDecrypt( - key: RsaPublicKey | RsaPrivateKey | KeyLike, - buffer: NodeJS.ArrayBufferView | string, - ): NonSharedBuffer; - /** - * Decrypts `buffer` with `privateKey`. `buffer` was previously encrypted using - * the corresponding public key, for example using {@link publicEncrypt}. - * - * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an - * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`. - * @since v0.11.14 - */ - function privateDecrypt( - privateKey: RsaPrivateKey | KeyLike, - buffer: NodeJS.ArrayBufferView | string, - ): NonSharedBuffer; - /** - * Encrypts `buffer` with `privateKey`. The returned data can be decrypted using - * the corresponding public key, for example using {@link publicDecrypt}. - * - * If `privateKey` is not a `KeyObject`, this function behaves as if `privateKey` had been passed to {@link createPrivateKey}. If it is an - * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`. - * @since v1.1.0 - */ - function privateEncrypt( - privateKey: RsaPrivateKey | KeyLike, - buffer: NodeJS.ArrayBufferView | string, - ): NonSharedBuffer; - /** - * ```js - * const { - * getCiphers, - * } = await import('node:crypto'); - * - * console.log(getCiphers()); // ['aes-128-cbc', 'aes-128-ccm', ...] - * ``` - * @since v0.9.3 - * @return An array with the names of the supported cipher algorithms. - */ - function getCiphers(): string[]; - /** - * ```js - * const { - * getCurves, - * } = await import('node:crypto'); - * - * console.log(getCurves()); // ['Oakley-EC2N-3', 'Oakley-EC2N-4', ...] - * ``` - * @since v2.3.0 - * @return An array with the names of the supported elliptic curves. - */ - function getCurves(): string[]; - /** - * @since v10.0.0 - * @return `1` if and only if a FIPS compliant crypto provider is currently in use, `0` otherwise. A future semver-major release may change the return type of this API to a {boolean}. - */ - function getFips(): 1 | 0; - /** - * Enables the FIPS compliant crypto provider in a FIPS-enabled Node.js build. - * Throws an error if FIPS mode is not available. - * @since v10.0.0 - * @param bool `true` to enable FIPS mode. - */ - function setFips(bool: boolean): void; - /** - * ```js - * const { - * getHashes, - * } = await import('node:crypto'); - * - * console.log(getHashes()); // ['DSA', 'DSA-SHA', 'DSA-SHA1', ...] - * ``` - * @since v0.9.3 - * @return An array of the names of the supported hash algorithms, such as `'RSA-SHA256'`. Hash algorithms are also called "digest" algorithms. - */ - function getHashes(): string[]; - /** - * The `ECDH` class is a utility for creating Elliptic Curve Diffie-Hellman (ECDH) - * key exchanges. - * - * Instances of the `ECDH` class can be created using the {@link createECDH} function. - * - * ```js - * import assert from 'node:assert'; - * - * const { - * createECDH, - * } = await import('node:crypto'); - * - * // Generate Alice's keys... - * const alice = createECDH('secp521r1'); - * const aliceKey = alice.generateKeys(); - * - * // Generate Bob's keys... - * const bob = createECDH('secp521r1'); - * const bobKey = bob.generateKeys(); - * - * // Exchange and generate the secret... - * const aliceSecret = alice.computeSecret(bobKey); - * const bobSecret = bob.computeSecret(aliceKey); - * - * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex')); - * // OK - * ``` - * @since v0.11.14 - */ - class ECDH { - private constructor(); - /** - * Converts the EC Diffie-Hellman public key specified by `key` and `curve` to the - * format specified by `format`. The `format` argument specifies point encoding - * and can be `'compressed'`, `'uncompressed'` or `'hybrid'`. The supplied key is - * interpreted using the specified `inputEncoding`, and the returned key is encoded - * using the specified `outputEncoding`. - * - * Use {@link getCurves} to obtain a list of available curve names. - * On recent OpenSSL releases, `openssl ecparam -list_curves` will also display - * the name and description of each available elliptic curve. - * - * If `format` is not specified the point will be returned in `'uncompressed'` format. - * - * If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`, `TypedArray`, or `DataView`. - * - * Example (uncompressing a key): - * - * ```js - * const { - * createECDH, - * ECDH, - * } = await import('node:crypto'); - * - * const ecdh = createECDH('secp256k1'); - * ecdh.generateKeys(); - * - * const compressedKey = ecdh.getPublicKey('hex', 'compressed'); - * - * const uncompressedKey = ECDH.convertKey(compressedKey, - * 'secp256k1', - * 'hex', - * 'hex', - * 'uncompressed'); - * - * // The converted key and the uncompressed public key should be the same - * console.log(uncompressedKey === ecdh.getPublicKey('hex')); - * ``` - * @since v10.0.0 - * @param inputEncoding The `encoding` of the `key` string. - * @param outputEncoding The `encoding` of the return value. - * @param [format='uncompressed'] - */ - static convertKey( - key: BinaryLike, - curve: string, - inputEncoding?: BinaryToTextEncoding, - outputEncoding?: "latin1" | "hex" | "base64" | "base64url", - format?: "uncompressed" | "compressed" | "hybrid", - ): NonSharedBuffer | string; - /** - * Generates private and public EC Diffie-Hellman key values, and returns - * the public key in the specified `format` and `encoding`. This key should be - * transferred to the other party. - * - * The `format` argument specifies point encoding and can be `'compressed'` or `'uncompressed'`. If `format` is not specified, the point will be returned in`'uncompressed'` format. - * - * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned. - * @since v0.11.14 - * @param encoding The `encoding` of the return value. - * @param [format='uncompressed'] - */ - generateKeys(): NonSharedBuffer; - generateKeys(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string; - /** - * Computes the shared secret using `otherPublicKey` as the other - * party's public key and returns the computed shared secret. The supplied - * key is interpreted using specified `inputEncoding`, and the returned secret - * is encoded using the specified `outputEncoding`. - * If the `inputEncoding` is not - * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`. - * - * If `outputEncoding` is given a string will be returned; otherwise a `Buffer` is returned. - * - * `ecdh.computeSecret` will throw an`ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY` error when `otherPublicKey` lies outside of the elliptic curve. Since `otherPublicKey` is - * usually supplied from a remote user over an insecure network, - * be sure to handle this exception accordingly. - * @since v0.11.14 - * @param inputEncoding The `encoding` of the `otherPublicKey` string. - * @param outputEncoding The `encoding` of the return value. - */ - computeSecret(otherPublicKey: NodeJS.ArrayBufferView): NonSharedBuffer; - computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): NonSharedBuffer; - computeSecret(otherPublicKey: NodeJS.ArrayBufferView, outputEncoding: BinaryToTextEncoding): string; - computeSecret( - otherPublicKey: string, - inputEncoding: BinaryToTextEncoding, - outputEncoding: BinaryToTextEncoding, - ): string; - /** - * If `encoding` is specified, a string is returned; otherwise a `Buffer` is - * returned. - * @since v0.11.14 - * @param encoding The `encoding` of the return value. - * @return The EC Diffie-Hellman in the specified `encoding`. - */ - getPrivateKey(): NonSharedBuffer; - getPrivateKey(encoding: BinaryToTextEncoding): string; - /** - * The `format` argument specifies point encoding and can be `'compressed'` or `'uncompressed'`. If `format` is not specified the point will be returned in`'uncompressed'` format. - * - * If `encoding` is specified, a string is returned; otherwise a `Buffer` is - * returned. - * @since v0.11.14 - * @param encoding The `encoding` of the return value. - * @param [format='uncompressed'] - * @return The EC Diffie-Hellman public key in the specified `encoding` and `format`. - */ - getPublicKey(encoding?: null, format?: ECDHKeyFormat): NonSharedBuffer; - getPublicKey(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string; - /** - * Sets the EC Diffie-Hellman private key. - * If `encoding` is provided, `privateKey` is expected - * to be a string; otherwise `privateKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`. - * - * If `privateKey` is not valid for the curve specified when the `ECDH` object was - * created, an error is thrown. Upon setting the private key, the associated - * public point (key) is also generated and set in the `ECDH` object. - * @since v0.11.14 - * @param encoding The `encoding` of the `privateKey` string. - */ - setPrivateKey(privateKey: NodeJS.ArrayBufferView): void; - setPrivateKey(privateKey: string, encoding: BinaryToTextEncoding): void; - } - /** - * Creates an Elliptic Curve Diffie-Hellman (`ECDH`) key exchange object using a - * predefined curve specified by the `curveName` string. Use {@link getCurves} to obtain a list of available curve names. On recent - * OpenSSL releases, `openssl ecparam -list_curves` will also display the name - * and description of each available elliptic curve. - * @since v0.11.14 - */ - function createECDH(curveName: string): ECDH; - /** - * This function compares the underlying bytes that represent the given `ArrayBuffer`, `TypedArray`, or `DataView` instances using a constant-time - * algorithm. - * - * This function does not leak timing information that - * would allow an attacker to guess one of the values. This is suitable for - * comparing HMAC digests or secret values like authentication cookies or [capability urls](https://www.w3.org/TR/capability-urls/). - * - * `a` and `b` must both be `Buffer`s, `TypedArray`s, or `DataView`s, and they - * must have the same byte length. An error is thrown if `a` and `b` have - * different byte lengths. - * - * If at least one of `a` and `b` is a `TypedArray` with more than one byte per - * entry, such as `Uint16Array`, the result will be computed using the platform - * byte order. - * - * **When both of the inputs are `Float32Array`s or `Float64Array`s, this function might return unexpected results due to IEEE 754** - * **encoding of floating-point numbers. In particular, neither `x === y` nor `Object.is(x, y)` implies that the byte representations of two floating-point** - * **numbers `x` and `y` are equal.** - * - * Use of `crypto.timingSafeEqual` does not guarantee that the _surrounding_ code - * is timing-safe. Care should be taken to ensure that the surrounding code does - * not introduce timing vulnerabilities. - * @since v6.6.0 - */ - function timingSafeEqual(a: NodeJS.ArrayBufferView, b: NodeJS.ArrayBufferView): boolean; - type KeyType = - | "dh" - | "dsa" - | "ec" - | "ed25519" - | "ed448" - | "ml-dsa-44" - | "ml-dsa-65" - | "ml-dsa-87" - | "ml-kem-1024" - | "ml-kem-512" - | "ml-kem-768" - | "rsa-pss" - | "rsa" - | "slh-dsa-sha2-128f" - | "slh-dsa-sha2-128s" - | "slh-dsa-sha2-192f" - | "slh-dsa-sha2-192s" - | "slh-dsa-sha2-256f" - | "slh-dsa-sha2-256s" - | "slh-dsa-shake-128f" - | "slh-dsa-shake-128s" - | "slh-dsa-shake-192f" - | "slh-dsa-shake-192s" - | "slh-dsa-shake-256f" - | "slh-dsa-shake-256s" - | "x25519" - | "x448"; - type KeyFormat = "pem" | "der" | "jwk"; - interface BasePrivateKeyEncodingOptions { - format: T; - cipher?: string | undefined; - passphrase?: string | undefined; - } - interface KeyPairKeyObjectResult { - publicKey: KeyObject; - privateKey: KeyObject; - } - interface ED25519KeyPairKeyObjectOptions {} - interface ED448KeyPairKeyObjectOptions {} - interface X25519KeyPairKeyObjectOptions {} - interface X448KeyPairKeyObjectOptions {} - interface MLDSAKeyPairKeyObjectOptions {} - interface MLKEMKeyPairKeyObjectOptions {} - interface SLHDSAKeyPairKeyObjectOptions {} - interface ECKeyPairKeyObjectOptions { - /** - * Name of the curve to use - */ - namedCurve: string; - /** - * Must be `'named'` or `'explicit'`. Default: `'named'`. - */ - paramEncoding?: "explicit" | "named" | undefined; - } - interface RSAKeyPairKeyObjectOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * Public exponent - * @default 0x10001 - */ - publicExponent?: number | undefined; - } - interface RSAPSSKeyPairKeyObjectOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * Public exponent - * @default 0x10001 - */ - publicExponent?: number | undefined; - /** - * Name of the message digest - */ - hashAlgorithm?: string | undefined; - /** - * Name of the message digest used by MGF1 - */ - mgf1HashAlgorithm?: string | undefined; - /** - * Minimal salt length in bytes - */ - saltLength?: string | undefined; - } - interface DSAKeyPairKeyObjectOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * Size of q in bits - */ - divisorLength: number; - } - interface RSAKeyPairOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * Public exponent - * @default 0x10001 - */ - publicExponent?: number | undefined; - publicKeyEncoding: { - type: "pkcs1" | "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs1" | "pkcs8"; - }; - } - interface RSAPSSKeyPairOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * Public exponent - * @default 0x10001 - */ - publicExponent?: number | undefined; - /** - * Name of the message digest - */ - hashAlgorithm?: string | undefined; - /** - * Name of the message digest used by MGF1 - */ - mgf1HashAlgorithm?: string | undefined; - /** - * Minimal salt length in bytes - */ - saltLength?: string | undefined; - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface DSAKeyPairOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * Size of q in bits - */ - divisorLength: number; - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface ECKeyPairOptions extends ECKeyPairKeyObjectOptions { - publicKeyEncoding: { - type: "pkcs1" | "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "sec1" | "pkcs8"; - }; - } - interface ED25519KeyPairOptions { - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface ED448KeyPairOptions { - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface X25519KeyPairOptions { - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface X448KeyPairOptions { - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface MLDSAKeyPairOptions { - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface MLKEMKeyPairOptions { - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface SLHDSAKeyPairOptions { - publicKeyEncoding: { - type: "spki"; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: "pkcs8"; - }; - } - interface KeyPairSyncResult { - publicKey: T1; - privateKey: T2; - } - /** - * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC, - * Ed25519, Ed448, X25519, X448, DH, and ML-DSA are currently supported. - * - * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function - * behaves as if `keyObject.export()` had been called on its result. Otherwise, - * the respective part of the key is returned as a `KeyObject`. - * - * When encoding public keys, it is recommended to use `'spki'`. When encoding - * private keys, it is recommended to use `'pkcs8'` with a strong passphrase, - * and to keep the passphrase confidential. - * - * ```js - * const { - * generateKeyPairSync, - * } = await import('node:crypto'); - * - * const { - * publicKey, - * privateKey, - * } = generateKeyPairSync('rsa', { - * modulusLength: 4096, - * publicKeyEncoding: { - * type: 'spki', - * format: 'pem', - * }, - * privateKeyEncoding: { - * type: 'pkcs8', - * format: 'pem', - * cipher: 'aes-256-cbc', - * passphrase: 'top secret', - * }, - * }); - * ``` - * - * The return value `{ publicKey, privateKey }` represents the generated key pair. - * When PEM encoding was selected, the respective key will be a string, otherwise - * it will be a buffer containing the data encoded as DER. - * @since v10.12.0 - * @param type The asymmetric key type to generate. See the - * supported [asymmetric key types](https://nodejs.org/docs/latest-v24.x/api/crypto.html#asymmetric-key-types). - */ - function generateKeyPairSync( - type: "rsa", - options: RSAKeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "rsa", - options: RSAKeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "rsa", - options: RSAKeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "rsa", - options: RSAKeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "rsa", options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "rsa-pss", options: RSAPSSKeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "dsa", - options: DSAKeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "dsa", - options: DSAKeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "dsa", - options: DSAKeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "dsa", - options: DSAKeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "dsa", options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "ec", - options: ECKeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ec", - options: ECKeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ec", - options: ECKeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ec", - options: ECKeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "ec", options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "ed25519", - options: ED25519KeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ed25519", - options: ED25519KeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ed25519", - options: ED25519KeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ed25519", - options: ED25519KeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "ed25519", options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "ed448", - options: ED448KeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ed448", - options: ED448KeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ed448", - options: ED448KeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ed448", - options: ED448KeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "ed448", options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "x25519", - options: X25519KeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "x25519", - options: X25519KeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "x25519", - options: X25519KeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "x25519", - options: X25519KeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "x25519", options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "x448", - options: X448KeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "x448", - options: X448KeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "x448", - options: X448KeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "x448", - options: X448KeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync(type: "x448", options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87", - options: MLDSAKeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87", - options: MLDSAKeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87", - options: MLDSAKeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87", - options: MLDSAKeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87", - options?: MLDSAKeyPairKeyObjectOptions, - ): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768", - options: MLKEMKeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768", - options: MLKEMKeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768", - options: MLKEMKeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768", - options: MLKEMKeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768", - options?: MLKEMKeyPairKeyObjectOptions, - ): KeyPairKeyObjectResult; - function generateKeyPairSync( - type: - | "slh-dsa-sha2-128f" - | "slh-dsa-sha2-128s" - | "slh-dsa-sha2-192f" - | "slh-dsa-sha2-192s" - | "slh-dsa-sha2-256f" - | "slh-dsa-sha2-256s" - | "slh-dsa-shake-128f" - | "slh-dsa-shake-128s" - | "slh-dsa-shake-192f" - | "slh-dsa-shake-192s" - | "slh-dsa-shake-256f" - | "slh-dsa-shake-256s", - options: SLHDSAKeyPairOptions<"pem", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: - | "slh-dsa-sha2-128f" - | "slh-dsa-sha2-128s" - | "slh-dsa-sha2-192f" - | "slh-dsa-sha2-192s" - | "slh-dsa-sha2-256f" - | "slh-dsa-sha2-256s" - | "slh-dsa-shake-128f" - | "slh-dsa-shake-128s" - | "slh-dsa-shake-192f" - | "slh-dsa-shake-192s" - | "slh-dsa-shake-256f" - | "slh-dsa-shake-256s", - options: SLHDSAKeyPairOptions<"pem", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: - | "slh-dsa-sha2-128f" - | "slh-dsa-sha2-128s" - | "slh-dsa-sha2-192f" - | "slh-dsa-sha2-192s" - | "slh-dsa-sha2-256f" - | "slh-dsa-sha2-256s" - | "slh-dsa-shake-128f" - | "slh-dsa-shake-128s" - | "slh-dsa-shake-192f" - | "slh-dsa-shake-192s" - | "slh-dsa-shake-256f" - | "slh-dsa-shake-256s", - options: SLHDSAKeyPairOptions<"der", "pem">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: - | "slh-dsa-sha2-128f" - | "slh-dsa-sha2-128s" - | "slh-dsa-sha2-192f" - | "slh-dsa-sha2-192s" - | "slh-dsa-sha2-256f" - | "slh-dsa-sha2-256s" - | "slh-dsa-shake-128f" - | "slh-dsa-shake-128s" - | "slh-dsa-shake-192f" - | "slh-dsa-shake-192s" - | "slh-dsa-shake-256f" - | "slh-dsa-shake-256s", - options: SLHDSAKeyPairOptions<"der", "der">, - ): KeyPairSyncResult; - function generateKeyPairSync( - type: - | "slh-dsa-sha2-128f" - | "slh-dsa-sha2-128s" - | "slh-dsa-sha2-192f" - | "slh-dsa-sha2-192s" - | "slh-dsa-sha2-256f" - | "slh-dsa-sha2-256s" - | "slh-dsa-shake-128f" - | "slh-dsa-shake-128s" - | "slh-dsa-shake-192f" - | "slh-dsa-shake-192s" - | "slh-dsa-shake-256f" - | "slh-dsa-shake-256s", - options?: SLHDSAKeyPairKeyObjectOptions, - ): KeyPairKeyObjectResult; - /** - * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC, - * Ed25519, Ed448, X25519, X448, and DH are currently supported. - * - * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function - * behaves as if `keyObject.export()` had been called on its result. Otherwise, - * the respective part of the key is returned as a `KeyObject`. - * - * It is recommended to encode public keys as `'spki'` and private keys as `'pkcs8'` with encryption for long-term storage: - * - * ```js - * const { - * generateKeyPair, - * } = await import('node:crypto'); - * - * generateKeyPair('rsa', { - * modulusLength: 4096, - * publicKeyEncoding: { - * type: 'spki', - * format: 'pem', - * }, - * privateKeyEncoding: { - * type: 'pkcs8', - * format: 'pem', - * cipher: 'aes-256-cbc', - * passphrase: 'top secret', - * }, - * }, (err, publicKey, privateKey) => { - * // Handle errors and use the generated key pair. - * }); - * ``` - * - * On completion, `callback` will be called with `err` set to `undefined` and `publicKey` / `privateKey` representing the generated key pair. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a `Promise` for an `Object` with `publicKey` and `privateKey` properties. - * @since v10.12.0 - * @param type The asymmetric key type to generate. See the - * supported [asymmetric key types](https://nodejs.org/docs/latest-v24.x/api/crypto.html#asymmetric-key-types). - */ - function generateKeyPair( - type: "rsa", - options: RSAKeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "rsa", - options: RSAKeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "rsa", - options: RSAKeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "rsa", - options: RSAKeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "rsa", - options: RSAKeyPairKeyObjectOptions, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "rsa-pss", - options: RSAPSSKeyPairKeyObjectOptions, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "dsa", - options: DSAKeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "dsa", - options: DSAKeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "dsa", - options: DSAKeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "dsa", - options: DSAKeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "dsa", - options: DSAKeyPairKeyObjectOptions, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "ec", - options: ECKeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ec", - options: ECKeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ec", - options: ECKeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ec", - options: ECKeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ec", - options: ECKeyPairKeyObjectOptions, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "ed25519", - options: ED25519KeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ed25519", - options: ED25519KeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ed25519", - options: ED25519KeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ed25519", - options: ED25519KeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ed25519", - options: ED25519KeyPairKeyObjectOptions | undefined, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "ed448", - options: ED448KeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ed448", - options: ED448KeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ed448", - options: ED448KeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ed448", - options: ED448KeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ed448", - options: ED448KeyPairKeyObjectOptions | undefined, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "x25519", - options: X25519KeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "x25519", - options: X25519KeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "x25519", - options: X25519KeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "x25519", - options: X25519KeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "x25519", - options: X25519KeyPairKeyObjectOptions | undefined, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "x448", - options: X448KeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "x448", - options: X448KeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "x448", - options: X448KeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "x448", - options: X448KeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "x448", - options: X448KeyPairKeyObjectOptions | undefined, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87", - options: MLDSAKeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87", - options: MLDSAKeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87", - options: MLDSAKeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87", - options: MLDSAKeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87", - options: MLDSAKeyPairKeyObjectOptions | undefined, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768", - options: MLKEMKeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768", - options: MLKEMKeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768", - options: MLKEMKeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768", - options: MLKEMKeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: NonSharedBuffer, privateKey: NonSharedBuffer) => void, - ): void; - function generateKeyPair( - type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768", - options: MLKEMKeyPairKeyObjectOptions | undefined, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - function generateKeyPair( - type: - | "slh-dsa-sha2-128f" - | "slh-dsa-sha2-128s" - | "slh-dsa-sha2-192f" - | "slh-dsa-sha2-192s" - | "slh-dsa-sha2-256f" - | "slh-dsa-sha2-256s" - | "slh-dsa-shake-128f" - | "slh-dsa-shake-128s" - | "slh-dsa-shake-192f" - | "slh-dsa-shake-192s" - | "slh-dsa-shake-256f" - | "slh-dsa-shake-256s", - options: SLHDSAKeyPairOptions<"pem", "pem">, - callback: (err: Error | null, publicKey: string, privateKey: string) => void, - ): void; - function generateKeyPair( - type: - | "slh-dsa-sha2-128f" - | "slh-dsa-sha2-128s" - | "slh-dsa-sha2-192f" - | "slh-dsa-sha2-192s" - | "slh-dsa-sha2-256f" - | "slh-dsa-sha2-256s" - | "slh-dsa-shake-128f" - | "slh-dsa-shake-128s" - | "slh-dsa-shake-192f" - | "slh-dsa-shake-192s" - | "slh-dsa-shake-256f" - | "slh-dsa-shake-256s", - options: SLHDSAKeyPairOptions<"pem", "der">, - callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void, - ): void; - function generateKeyPair( - type: - | "slh-dsa-sha2-128f" - | "slh-dsa-sha2-128s" - | "slh-dsa-sha2-192f" - | "slh-dsa-sha2-192s" - | "slh-dsa-sha2-256f" - | "slh-dsa-sha2-256s" - | "slh-dsa-shake-128f" - | "slh-dsa-shake-128s" - | "slh-dsa-shake-192f" - | "slh-dsa-shake-192s" - | "slh-dsa-shake-256f" - | "slh-dsa-shake-256s", - options: SLHDSAKeyPairOptions<"der", "pem">, - callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void, - ): void; - function generateKeyPair( - type: - | "slh-dsa-sha2-128f" - | "slh-dsa-sha2-128s" - | "slh-dsa-sha2-192f" - | "slh-dsa-sha2-192s" - | "slh-dsa-sha2-256f" - | "slh-dsa-sha2-256s" - | "slh-dsa-shake-128f" - | "slh-dsa-shake-128s" - | "slh-dsa-shake-192f" - | "slh-dsa-shake-192s" - | "slh-dsa-shake-256f" - | "slh-dsa-shake-256s", - options: SLHDSAKeyPairOptions<"der", "der">, - callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void, - ): void; - function generateKeyPair( - type: - | "slh-dsa-sha2-128f" - | "slh-dsa-sha2-128s" - | "slh-dsa-sha2-192f" - | "slh-dsa-sha2-192s" - | "slh-dsa-sha2-256f" - | "slh-dsa-sha2-256s" - | "slh-dsa-shake-128f" - | "slh-dsa-shake-128s" - | "slh-dsa-shake-192f" - | "slh-dsa-shake-192s" - | "slh-dsa-shake-256f" - | "slh-dsa-shake-256s", - options: SLHDSAKeyPairKeyObjectOptions | undefined, - callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void, - ): void; - namespace generateKeyPair { - function __promisify__( - type: "rsa", - options: RSAKeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "rsa", - options: RSAKeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "rsa", - options: RSAKeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "rsa", - options: RSAKeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__(type: "rsa", options: RSAKeyPairKeyObjectOptions): Promise; - function __promisify__( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "rsa-pss", - options: RSAPSSKeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "rsa-pss", - options: RSAPSSKeyPairKeyObjectOptions, - ): Promise; - function __promisify__( - type: "dsa", - options: DSAKeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "dsa", - options: DSAKeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "dsa", - options: DSAKeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "dsa", - options: DSAKeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__(type: "dsa", options: DSAKeyPairKeyObjectOptions): Promise; - function __promisify__( - type: "ec", - options: ECKeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "ec", - options: ECKeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "ec", - options: ECKeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "ec", - options: ECKeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__(type: "ec", options: ECKeyPairKeyObjectOptions): Promise; - function __promisify__( - type: "ed25519", - options: ED25519KeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "ed25519", - options: ED25519KeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "ed25519", - options: ED25519KeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "ed25519", - options: ED25519KeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "ed25519", - options?: ED25519KeyPairKeyObjectOptions, - ): Promise; - function __promisify__( - type: "ed448", - options: ED448KeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "ed448", - options: ED448KeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "ed448", - options: ED448KeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "ed448", - options: ED448KeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__(type: "ed448", options?: ED448KeyPairKeyObjectOptions): Promise; - function __promisify__( - type: "x25519", - options: X25519KeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "x25519", - options: X25519KeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "x25519", - options: X25519KeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "x25519", - options: X25519KeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "x25519", - options?: X25519KeyPairKeyObjectOptions, - ): Promise; - function __promisify__( - type: "x448", - options: X448KeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "x448", - options: X448KeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "x448", - options: X448KeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "x448", - options: X448KeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__(type: "x448", options?: X448KeyPairKeyObjectOptions): Promise; - function __promisify__( - type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87", - options: MLDSAKeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87", - options: MLDSAKeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87", - options: MLDSAKeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87", - options: MLDSAKeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "ml-dsa-44" | "ml-dsa-65" | "ml-dsa-87", - options?: MLDSAKeyPairKeyObjectOptions, - ): Promise; - function __promisify__( - type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768", - options: MLKEMKeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768", - options: MLKEMKeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768", - options: MLKEMKeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: string; - }>; - function __promisify__( - type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768", - options: MLKEMKeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: NonSharedBuffer; - privateKey: NonSharedBuffer; - }>; - function __promisify__( - type: "ml-kem-1024" | "ml-kem-512" | "ml-kem-768", - options?: MLKEMKeyPairKeyObjectOptions, - ): Promise; - function __promisify__( - type: - | "slh-dsa-sha2-128f" - | "slh-dsa-sha2-128s" - | "slh-dsa-sha2-192f" - | "slh-dsa-sha2-192s" - | "slh-dsa-sha2-256f" - | "slh-dsa-sha2-256s" - | "slh-dsa-shake-128f" - | "slh-dsa-shake-128s" - | "slh-dsa-shake-192f" - | "slh-dsa-shake-192s" - | "slh-dsa-shake-256f" - | "slh-dsa-shake-256s", - options: SLHDSAKeyPairOptions<"pem", "pem">, - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: - | "slh-dsa-sha2-128f" - | "slh-dsa-sha2-128s" - | "slh-dsa-sha2-192f" - | "slh-dsa-sha2-192s" - | "slh-dsa-sha2-256f" - | "slh-dsa-sha2-256s" - | "slh-dsa-shake-128f" - | "slh-dsa-shake-128s" - | "slh-dsa-shake-192f" - | "slh-dsa-shake-192s" - | "slh-dsa-shake-256f" - | "slh-dsa-shake-256s", - options: SLHDSAKeyPairOptions<"pem", "der">, - ): Promise<{ - publicKey: string; - privateKey: Buffer; - }>; - function __promisify__( - type: - | "slh-dsa-sha2-128f" - | "slh-dsa-sha2-128s" - | "slh-dsa-sha2-192f" - | "slh-dsa-sha2-192s" - | "slh-dsa-sha2-256f" - | "slh-dsa-sha2-256s" - | "slh-dsa-shake-128f" - | "slh-dsa-shake-128s" - | "slh-dsa-shake-192f" - | "slh-dsa-shake-192s" - | "slh-dsa-shake-256f" - | "slh-dsa-shake-256s", - options: SLHDSAKeyPairOptions<"der", "pem">, - ): Promise<{ - publicKey: Buffer; - privateKey: string; - }>; - function __promisify__( - type: - | "slh-dsa-sha2-128f" - | "slh-dsa-sha2-128s" - | "slh-dsa-sha2-192f" - | "slh-dsa-sha2-192s" - | "slh-dsa-sha2-256f" - | "slh-dsa-sha2-256s" - | "slh-dsa-shake-128f" - | "slh-dsa-shake-128s" - | "slh-dsa-shake-192f" - | "slh-dsa-shake-192s" - | "slh-dsa-shake-256f" - | "slh-dsa-shake-256s", - options: SLHDSAKeyPairOptions<"der", "der">, - ): Promise<{ - publicKey: Buffer; - privateKey: Buffer; - }>; - function __promisify__( - type: - | "slh-dsa-sha2-128f" - | "slh-dsa-sha2-128s" - | "slh-dsa-sha2-192f" - | "slh-dsa-sha2-192s" - | "slh-dsa-sha2-256f" - | "slh-dsa-sha2-256s" - | "slh-dsa-shake-128f" - | "slh-dsa-shake-128s" - | "slh-dsa-shake-192f" - | "slh-dsa-shake-192s" - | "slh-dsa-shake-256f" - | "slh-dsa-shake-256s", - options?: SLHDSAKeyPairKeyObjectOptions, - ): Promise; - } - /** - * Calculates and returns the signature for `data` using the given private key and - * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is - * dependent upon the key type. - * - * `algorithm` is required to be `null` or `undefined` for Ed25519, Ed448, and - * ML-DSA. - * - * If `key` is not a `KeyObject`, this function behaves as if `key` had been - * passed to {@link createPrivateKey}. If it is an object, the following - * additional properties can be passed: - * - * If the `callback` function is provided this function uses libuv's threadpool. - * @since v12.0.0 - */ - function sign( - algorithm: string | null | undefined, - data: NodeJS.ArrayBufferView, - key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput, - ): NonSharedBuffer; - function sign( - algorithm: string | null | undefined, - data: NodeJS.ArrayBufferView, - key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput, - callback: (error: Error | null, data: NonSharedBuffer) => void, - ): void; - /** - * Verifies the given signature for `data` using the given key and algorithm. If - * `algorithm` is `null` or `undefined`, then the algorithm is dependent upon the - * key type. - * - * `algorithm` is required to be `null` or `undefined` for Ed25519, Ed448, and - * ML-DSA. - * - * If `key` is not a `KeyObject`, this function behaves as if `key` had been - * passed to {@link createPublicKey}. If it is an object, the following - * additional properties can be passed: - * - * The `signature` argument is the previously calculated signature for the `data`. - * - * Because public keys can be derived from private keys, a private key or a public - * key may be passed for `key`. - * - * If the `callback` function is provided this function uses libuv's threadpool. - * @since v12.0.0 - */ - function verify( - algorithm: string | null | undefined, - data: NodeJS.ArrayBufferView, - key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, - signature: NodeJS.ArrayBufferView, - ): boolean; - function verify( - algorithm: string | null | undefined, - data: NodeJS.ArrayBufferView, - key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, - signature: NodeJS.ArrayBufferView, - callback: (error: Error | null, result: boolean) => void, - ): void; - /** - * Key decapsulation using a KEM algorithm with a private key. - * - * Supported key types and their KEM algorithms are: - * - * * `'rsa'` RSA Secret Value Encapsulation - * * `'ec'` DHKEM(P-256, HKDF-SHA256), DHKEM(P-384, HKDF-SHA256), DHKEM(P-521, HKDF-SHA256) - * * `'x25519'` DHKEM(X25519, HKDF-SHA256) - * * `'x448'` DHKEM(X448, HKDF-SHA512) - * * `'ml-kem-512'` ML-KEM - * * `'ml-kem-768'` ML-KEM - * * `'ml-kem-1024'` ML-KEM - * - * If `key` is not a {@link KeyObject}, this function behaves as if `key` had been - * passed to `crypto.createPrivateKey()`. - * - * If the `callback` function is provided this function uses libuv's threadpool. - * @since v24.7.0 - */ - function decapsulate( - key: KeyLike | PrivateKeyInput | JsonWebKeyInput, - ciphertext: ArrayBuffer | NodeJS.ArrayBufferView, - ): NonSharedBuffer; - function decapsulate( - key: KeyLike | PrivateKeyInput | JsonWebKeyInput, - ciphertext: ArrayBuffer | NodeJS.ArrayBufferView, - callback: (err: Error, sharedKey: NonSharedBuffer) => void, - ): void; - /** - * Computes the Diffie-Hellman shared secret based on a `privateKey` and a `publicKey`. - * Both keys must have the same `asymmetricKeyType` and must support either the DH or - * ECDH operation. - * - * If the `callback` function is provided this function uses libuv's threadpool. - * @since v13.9.0, v12.17.0 - */ - function diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject }): NonSharedBuffer; - function diffieHellman( - options: { privateKey: KeyObject; publicKey: KeyObject }, - callback: (err: Error | null, secret: NonSharedBuffer) => void, - ): void; - /** - * Key encapsulation using a KEM algorithm with a public key. - * - * Supported key types and their KEM algorithms are: - * - * * `'rsa'` RSA Secret Value Encapsulation - * * `'ec'` DHKEM(P-256, HKDF-SHA256), DHKEM(P-384, HKDF-SHA256), DHKEM(P-521, HKDF-SHA256) - * * `'x25519'` DHKEM(X25519, HKDF-SHA256) - * * `'x448'` DHKEM(X448, HKDF-SHA512) - * * `'ml-kem-512'` ML-KEM - * * `'ml-kem-768'` ML-KEM - * * `'ml-kem-1024'` ML-KEM - * - * If `key` is not a {@link KeyObject}, this function behaves as if `key` had been - * passed to `crypto.createPublicKey()`. - * - * If the `callback` function is provided this function uses libuv's threadpool. - * @since v24.7.0 - */ - function encapsulate( - key: KeyLike | PublicKeyInput | JsonWebKeyInput, - ): { sharedKey: NonSharedBuffer; ciphertext: NonSharedBuffer }; - function encapsulate( - key: KeyLike | PublicKeyInput | JsonWebKeyInput, - callback: (err: Error, result: { sharedKey: NonSharedBuffer; ciphertext: NonSharedBuffer }) => void, - ): void; - interface OneShotDigestOptions { - /** - * Encoding used to encode the returned digest. - * @default 'hex' - */ - outputEncoding?: BinaryToTextEncoding | "buffer" | undefined; - /** - * For XOF hash functions such as 'shake256', the outputLength option - * can be used to specify the desired output length in bytes. - */ - outputLength?: number | undefined; - } - interface OneShotDigestOptionsWithStringEncoding extends OneShotDigestOptions { - outputEncoding?: BinaryToTextEncoding | undefined; - } - interface OneShotDigestOptionsWithBufferEncoding extends OneShotDigestOptions { - outputEncoding: "buffer"; - } - /** - * A utility for creating one-shot hash digests of data. It can be faster than - * the object-based `crypto.createHash()` when hashing a smaller amount of data - * (<= 5MB) that's readily available. If the data can be big or if it is streamed, - * it's still recommended to use `crypto.createHash()` instead. - * - * The `algorithm` is dependent on the available algorithms supported by the - * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. - * On recent releases of OpenSSL, `openssl list -digest-algorithms` will - * display the available digest algorithms. - * - * If `options` is a string, then it specifies the `outputEncoding`. - * - * Example: - * - * ```js - * import crypto from 'node:crypto'; - * import { Buffer } from 'node:buffer'; - * - * // Hashing a string and return the result as a hex-encoded string. - * const string = 'Node.js'; - * // 10b3493287f831e81a438811a1ffba01f8cec4b7 - * console.log(crypto.hash('sha1', string)); - * - * // Encode a base64-encoded string into a Buffer, hash it and return - * // the result as a buffer. - * const base64 = 'Tm9kZS5qcw=='; - * // - * console.log(crypto.hash('sha1', Buffer.from(base64, 'base64'), 'buffer')); - * ``` - * @since v21.7.0, v20.12.0 - * @param data When `data` is a string, it will be encoded as UTF-8 before being hashed. If a different - * input encoding is desired for a string input, user could encode the string - * into a `TypedArray` using either `TextEncoder` or `Buffer.from()` and passing - * the encoded `TypedArray` into this API instead. - */ - function hash( - algorithm: string, - data: BinaryLike, - options?: OneShotDigestOptionsWithStringEncoding | BinaryToTextEncoding, - ): string; - function hash( - algorithm: string, - data: BinaryLike, - options: OneShotDigestOptionsWithBufferEncoding | "buffer", - ): NonSharedBuffer; - function hash( - algorithm: string, - data: BinaryLike, - options: OneShotDigestOptions | BinaryToTextEncoding | "buffer", - ): string | NonSharedBuffer; - type CipherMode = "cbc" | "ccm" | "cfb" | "ctr" | "ecb" | "gcm" | "ocb" | "ofb" | "stream" | "wrap" | "xts"; - interface CipherInfoOptions { - /** - * A test key length. - */ - keyLength?: number | undefined; - /** - * A test IV length. - */ - ivLength?: number | undefined; - } - interface CipherInfo { - /** - * The name of the cipher. - */ - name: string; - /** - * The nid of the cipher. - */ - nid: number; - /** - * The block size of the cipher in bytes. - * This property is omitted when mode is 'stream'. - */ - blockSize?: number | undefined; - /** - * The expected or default initialization vector length in bytes. - * This property is omitted if the cipher does not use an initialization vector. - */ - ivLength?: number | undefined; - /** - * The expected or default key length in bytes. - */ - keyLength: number; - /** - * The cipher mode. - */ - mode: CipherMode; - } - /** - * Returns information about a given cipher. - * - * Some ciphers accept variable length keys and initialization vectors. By default, - * the `crypto.getCipherInfo()` method will return the default values for these - * ciphers. To test if a given key length or iv length is acceptable for given - * cipher, use the `keyLength` and `ivLength` options. If the given values are - * unacceptable, `undefined` will be returned. - * @since v15.0.0 - * @param nameOrNid The name or nid of the cipher to query. - */ - function getCipherInfo(nameOrNid: string | number, options?: CipherInfoOptions): CipherInfo | undefined; - /** - * HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes. - * - * The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an errors occurs while deriving the key, `err` will be set; - * otherwise `err` will be `null`. The successfully generated `derivedKey` will - * be passed to the callback as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). An error will be thrown if any - * of the input arguments specify invalid values or types. - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { - * hkdf, - * } = await import('node:crypto'); - * - * hkdf('sha512', 'key', 'salt', 'info', 64, (err, derivedKey) => { - * if (err) throw err; - * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653' - * }); - * ``` - * @since v15.0.0 - * @param digest The digest algorithm to use. - * @param ikm The input keying material. Must be provided but can be zero-length. - * @param salt The salt value. Must be provided but can be zero-length. - * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes. - * @param keylen The length of the key to generate. Must be greater than 0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512` - * generates 64-byte hashes, making the maximum HKDF output 16320 bytes). - */ - function hkdf( - digest: string, - irm: BinaryLike | KeyObject, - salt: BinaryLike, - info: BinaryLike, - keylen: number, - callback: (err: Error | null, derivedKey: ArrayBuffer) => void, - ): void; - /** - * Provides a synchronous HKDF key derivation function as defined in RFC 5869\. The - * given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes. - * - * The successfully generated `derivedKey` will be returned as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). - * - * An error will be thrown if any of the input arguments specify invalid values or - * types, or if the derived key cannot be generated. - * - * ```js - * import { Buffer } from 'node:buffer'; - * const { - * hkdfSync, - * } = await import('node:crypto'); - * - * const derivedKey = hkdfSync('sha512', 'key', 'salt', 'info', 64); - * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653' - * ``` - * @since v15.0.0 - * @param digest The digest algorithm to use. - * @param ikm The input keying material. Must be provided but can be zero-length. - * @param salt The salt value. Must be provided but can be zero-length. - * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes. - * @param keylen The length of the key to generate. Must be greater than 0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512` - * generates 64-byte hashes, making the maximum HKDF output 16320 bytes). - */ - function hkdfSync( - digest: string, - ikm: BinaryLike | KeyObject, - salt: BinaryLike, - info: BinaryLike, - keylen: number, - ): ArrayBuffer; - interface SecureHeapUsage { - /** - * The total allocated secure heap size as specified using the `--secure-heap=n` command-line flag. - */ - total: number; - /** - * The minimum allocation from the secure heap as specified using the `--secure-heap-min` command-line flag. - */ - min: number; - /** - * The total number of bytes currently allocated from the secure heap. - */ - used: number; - /** - * The calculated ratio of `used` to `total` allocated bytes. - */ - utilization: number; - } - /** - * @since v15.6.0 - */ - function secureHeapUsed(): SecureHeapUsage; - interface RandomUUIDOptions { - /** - * By default, to improve performance, - * Node.js will pre-emptively generate and persistently cache enough - * random data to generate up to 128 random UUIDs. To generate a UUID - * without using the cache, set `disableEntropyCache` to `true`. - * - * @default `false` - */ - disableEntropyCache?: boolean | undefined; - } - type UUID = `${string}-${string}-${string}-${string}-${string}`; - /** - * Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a - * cryptographic pseudorandom number generator. - * @since v15.6.0, v14.17.0 - */ - function randomUUID(options?: RandomUUIDOptions): UUID; - interface X509CheckOptions { - /** - * @default 'always' - */ - subject?: "always" | "default" | "never" | undefined; - /** - * @default true - */ - wildcards?: boolean | undefined; - /** - * @default true - */ - partialWildcards?: boolean | undefined; - /** - * @default false - */ - multiLabelWildcards?: boolean | undefined; - /** - * @default false - */ - singleLabelSubdomains?: boolean | undefined; - } - /** - * Encapsulates an X509 certificate and provides read-only access to - * its information. - * - * ```js - * const { X509Certificate } = await import('node:crypto'); - * - * const x509 = new X509Certificate('{... pem encoded cert ...}'); - * - * console.log(x509.subject); - * ``` - * @since v15.6.0 - */ - class X509Certificate { - /** - * Will be \`true\` if this is a Certificate Authority (CA) certificate. - * @since v15.6.0 - */ - readonly ca: boolean; - /** - * The SHA-1 fingerprint of this certificate. - * - * Because SHA-1 is cryptographically broken and because the security of SHA-1 is - * significantly worse than that of algorithms that are commonly used to sign - * certificates, consider using `x509.fingerprint256` instead. - * @since v15.6.0 - */ - readonly fingerprint: string; - /** - * The SHA-256 fingerprint of this certificate. - * @since v15.6.0 - */ - readonly fingerprint256: string; - /** - * The SHA-512 fingerprint of this certificate. - * - * Because computing the SHA-256 fingerprint is usually faster and because it is - * only half the size of the SHA-512 fingerprint, `x509.fingerprint256` may be - * a better choice. While SHA-512 presumably provides a higher level of security in - * general, the security of SHA-256 matches that of most algorithms that are - * commonly used to sign certificates. - * @since v17.2.0, v16.14.0 - */ - readonly fingerprint512: string; - /** - * The complete subject of this certificate. - * @since v15.6.0 - */ - readonly subject: string; - /** - * The subject alternative name specified for this certificate. - * - * This is a comma-separated list of subject alternative names. Each entry begins - * with a string identifying the kind of the subject alternative name followed by - * a colon and the value associated with the entry. - * - * Earlier versions of Node.js incorrectly assumed that it is safe to split this - * property at the two-character sequence `', '` (see [CVE-2021-44532](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44532)). However, - * both malicious and legitimate certificates can contain subject alternative names - * that include this sequence when represented as a string. - * - * After the prefix denoting the type of the entry, the remainder of each entry - * might be enclosed in quotes to indicate that the value is a JSON string literal. - * For backward compatibility, Node.js only uses JSON string literals within this - * property when necessary to avoid ambiguity. Third-party code should be prepared - * to handle both possible entry formats. - * @since v15.6.0 - */ - readonly subjectAltName: string | undefined; - /** - * A textual representation of the certificate's authority information access - * extension. - * - * This is a line feed separated list of access descriptions. Each line begins with - * the access method and the kind of the access location, followed by a colon and - * the value associated with the access location. - * - * After the prefix denoting the access method and the kind of the access location, - * the remainder of each line might be enclosed in quotes to indicate that the - * value is a JSON string literal. For backward compatibility, Node.js only uses - * JSON string literals within this property when necessary to avoid ambiguity. - * Third-party code should be prepared to handle both possible entry formats. - * @since v15.6.0 - */ - readonly infoAccess: string | undefined; - /** - * An array detailing the key usages for this certificate. - * @since v15.6.0 - */ - readonly keyUsage: string[]; - /** - * The issuer identification included in this certificate. - * @since v15.6.0 - */ - readonly issuer: string; - /** - * The issuer certificate or `undefined` if the issuer certificate is not - * available. - * @since v15.9.0 - */ - readonly issuerCertificate: X509Certificate | undefined; - /** - * The public key `KeyObject` for this certificate. - * @since v15.6.0 - */ - readonly publicKey: KeyObject; - /** - * A `Buffer` containing the DER encoding of this certificate. - * @since v15.6.0 - */ - readonly raw: NonSharedBuffer; - /** - * The serial number of this certificate. - * - * Serial numbers are assigned by certificate authorities and do not uniquely - * identify certificates. Consider using `x509.fingerprint256` as a unique - * identifier instead. - * @since v15.6.0 - */ - readonly serialNumber: string; - /** - * The algorithm used to sign the certificate or `undefined` if the signature algorithm is unknown by OpenSSL. - * @since v24.9.0 - */ - readonly signatureAlgorithm: string | undefined; - /** - * The OID of the algorithm used to sign the certificate. - * @since v24.9.0 - */ - readonly signatureAlgorithmOid: string; - /** - * The date/time from which this certificate is considered valid. - * @since v15.6.0 - */ - readonly validFrom: string; - /** - * The date/time from which this certificate is valid, encapsulated in a `Date` object. - * @since v22.10.0 - */ - readonly validFromDate: Date; - /** - * The date/time until which this certificate is considered valid. - * @since v15.6.0 - */ - readonly validTo: string; - /** - * The date/time until which this certificate is valid, encapsulated in a `Date` object. - * @since v22.10.0 - */ - readonly validToDate: Date; - constructor(buffer: BinaryLike); - /** - * Checks whether the certificate matches the given email address. - * - * If the `'subject'` option is undefined or set to `'default'`, the certificate - * subject is only considered if the subject alternative name extension either does - * not exist or does not contain any email addresses. - * - * If the `'subject'` option is set to `'always'` and if the subject alternative - * name extension either does not exist or does not contain a matching email - * address, the certificate subject is considered. - * - * If the `'subject'` option is set to `'never'`, the certificate subject is never - * considered, even if the certificate contains no subject alternative names. - * @since v15.6.0 - * @return Returns `email` if the certificate matches, `undefined` if it does not. - */ - checkEmail(email: string, options?: Pick): string | undefined; - /** - * Checks whether the certificate matches the given host name. - * - * If the certificate matches the given host name, the matching subject name is - * returned. The returned name might be an exact match (e.g., `foo.example.com`) - * or it might contain wildcards (e.g., `*.example.com`). Because host name - * comparisons are case-insensitive, the returned subject name might also differ - * from the given `name` in capitalization. - * - * If the `'subject'` option is undefined or set to `'default'`, the certificate - * subject is only considered if the subject alternative name extension either does - * not exist or does not contain any DNS names. This behavior is consistent with [RFC 2818](https://www.rfc-editor.org/rfc/rfc2818.txt) ("HTTP Over TLS"). - * - * If the `'subject'` option is set to `'always'` and if the subject alternative - * name extension either does not exist or does not contain a matching DNS name, - * the certificate subject is considered. - * - * If the `'subject'` option is set to `'never'`, the certificate subject is never - * considered, even if the certificate contains no subject alternative names. - * @since v15.6.0 - * @return Returns a subject name that matches `name`, or `undefined` if no subject name matches `name`. - */ - checkHost(name: string, options?: X509CheckOptions): string | undefined; - /** - * Checks whether the certificate matches the given IP address (IPv4 or IPv6). - * - * Only [RFC 5280](https://www.rfc-editor.org/rfc/rfc5280.txt) `iPAddress` subject alternative names are considered, and they - * must match the given `ip` address exactly. Other subject alternative names as - * well as the subject field of the certificate are ignored. - * @since v15.6.0 - * @return Returns `ip` if the certificate matches, `undefined` if it does not. - */ - checkIP(ip: string): string | undefined; - /** - * Checks whether this certificate was potentially issued by the given `otherCert` - * by comparing the certificate metadata. - * - * This is useful for pruning a list of possible issuer certificates which have been - * selected using a more rudimentary filtering routine, i.e. just based on subject - * and issuer names. - * - * Finally, to verify that this certificate's signature was produced by a private key - * corresponding to `otherCert`'s public key use `x509.verify(publicKey)` - * with `otherCert`'s public key represented as a `KeyObject` - * like so - * - * ```js - * if (!x509.verify(otherCert.publicKey)) { - * throw new Error('otherCert did not issue x509'); - * } - * ``` - * @since v15.6.0 - */ - checkIssued(otherCert: X509Certificate): boolean; - /** - * Checks whether the public key for this certificate is consistent with - * the given private key. - * @since v15.6.0 - * @param privateKey A private key. - */ - checkPrivateKey(privateKey: KeyObject): boolean; - /** - * There is no standard JSON encoding for X509 certificates. The`toJSON()` method returns a string containing the PEM encoded - * certificate. - * @since v15.6.0 - */ - toJSON(): string; - /** - * Returns information about this certificate using the legacy `certificate object` encoding. - * @since v15.6.0 - */ - toLegacyObject(): PeerCertificate; - /** - * Returns the PEM-encoded certificate. - * @since v15.6.0 - */ - toString(): string; - /** - * Verifies that this certificate was signed by the given public key. - * Does not perform any other validation checks on the certificate. - * @since v15.6.0 - * @param publicKey A public key. - */ - verify(publicKey: KeyObject): boolean; - } - type LargeNumberLike = NodeJS.ArrayBufferView | SharedArrayBuffer | ArrayBuffer | bigint; - interface GeneratePrimeOptions { - add?: LargeNumberLike | undefined; - rem?: LargeNumberLike | undefined; - /** - * @default false - */ - safe?: boolean | undefined; - bigint?: boolean | undefined; - } - interface GeneratePrimeOptionsBigInt extends GeneratePrimeOptions { - bigint: true; - } - interface GeneratePrimeOptionsArrayBuffer extends GeneratePrimeOptions { - bigint?: false | undefined; - } - /** - * Generates a pseudorandom prime of `size` bits. - * - * If `options.safe` is `true`, the prime will be a safe prime -- that is, `(prime - 1) / 2` will also be a prime. - * - * The `options.add` and `options.rem` parameters can be used to enforce additional - * requirements, e.g., for Diffie-Hellman: - * - * * If `options.add` and `options.rem` are both set, the prime will satisfy the - * condition that `prime % add = rem`. - * * If only `options.add` is set and `options.safe` is not `true`, the prime will - * satisfy the condition that `prime % add = 1`. - * * If only `options.add` is set and `options.safe` is set to `true`, the prime - * will instead satisfy the condition that `prime % add = 3`. This is necessary - * because `prime % add = 1` for `options.add > 2` would contradict the condition - * enforced by `options.safe`. - * * `options.rem` is ignored if `options.add` is not given. - * - * Both `options.add` and `options.rem` must be encoded as big-endian sequences - * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or `DataView`. - * - * By default, the prime is encoded as a big-endian sequence of octets - * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a - * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided. - * @since v15.8.0 - * @param size The size (in bits) of the prime to generate. - */ - function generatePrime(size: number, callback: (err: Error | null, prime: ArrayBuffer) => void): void; - function generatePrime( - size: number, - options: GeneratePrimeOptionsBigInt, - callback: (err: Error | null, prime: bigint) => void, - ): void; - function generatePrime( - size: number, - options: GeneratePrimeOptionsArrayBuffer, - callback: (err: Error | null, prime: ArrayBuffer) => void, - ): void; - function generatePrime( - size: number, - options: GeneratePrimeOptions, - callback: (err: Error | null, prime: ArrayBuffer | bigint) => void, - ): void; - /** - * Generates a pseudorandom prime of `size` bits. - * - * If `options.safe` is `true`, the prime will be a safe prime -- that is, `(prime - 1) / 2` will also be a prime. - * - * The `options.add` and `options.rem` parameters can be used to enforce additional - * requirements, e.g., for Diffie-Hellman: - * - * * If `options.add` and `options.rem` are both set, the prime will satisfy the - * condition that `prime % add = rem`. - * * If only `options.add` is set and `options.safe` is not `true`, the prime will - * satisfy the condition that `prime % add = 1`. - * * If only `options.add` is set and `options.safe` is set to `true`, the prime - * will instead satisfy the condition that `prime % add = 3`. This is necessary - * because `prime % add = 1` for `options.add > 2` would contradict the condition - * enforced by `options.safe`. - * * `options.rem` is ignored if `options.add` is not given. - * - * Both `options.add` and `options.rem` must be encoded as big-endian sequences - * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or `DataView`. - * - * By default, the prime is encoded as a big-endian sequence of octets - * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a - * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided. - * @since v15.8.0 - * @param size The size (in bits) of the prime to generate. - */ - function generatePrimeSync(size: number): ArrayBuffer; - function generatePrimeSync(size: number, options: GeneratePrimeOptionsBigInt): bigint; - function generatePrimeSync(size: number, options: GeneratePrimeOptionsArrayBuffer): ArrayBuffer; - function generatePrimeSync(size: number, options: GeneratePrimeOptions): ArrayBuffer | bigint; - interface CheckPrimeOptions { - /** - * The number of Miller-Rabin probabilistic primality iterations to perform. - * When the value is 0 (zero), a number of checks is used that yields a false positive rate of at most `2**-64` for random input. - * Care must be used when selecting a number of checks. - * Refer to the OpenSSL documentation for the BN_is_prime_ex function nchecks options for more details. - * - * @default 0 - */ - checks?: number | undefined; - } - /** - * Checks the primality of the `candidate`. - * @since v15.8.0 - * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length. - */ - function checkPrime(value: LargeNumberLike, callback: (err: Error | null, result: boolean) => void): void; - function checkPrime( - value: LargeNumberLike, - options: CheckPrimeOptions, - callback: (err: Error | null, result: boolean) => void, - ): void; - /** - * Checks the primality of the `candidate`. - * @since v15.8.0 - * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length. - * @return `true` if the candidate is a prime with an error probability less than `0.25 ** options.checks`. - */ - function checkPrimeSync(candidate: LargeNumberLike, options?: CheckPrimeOptions): boolean; - /** - * Load and set the `engine` for some or all OpenSSL functions (selected by flags). - * - * `engine` could be either an id or a path to the engine's shared library. - * - * The optional `flags` argument uses `ENGINE_METHOD_ALL` by default. The `flags` is a bit field taking one of or a mix of the following flags (defined in `crypto.constants`): - * - * * `crypto.constants.ENGINE_METHOD_RSA` - * * `crypto.constants.ENGINE_METHOD_DSA` - * * `crypto.constants.ENGINE_METHOD_DH` - * * `crypto.constants.ENGINE_METHOD_RAND` - * * `crypto.constants.ENGINE_METHOD_EC` - * * `crypto.constants.ENGINE_METHOD_CIPHERS` - * * `crypto.constants.ENGINE_METHOD_DIGESTS` - * * `crypto.constants.ENGINE_METHOD_PKEY_METHS` - * * `crypto.constants.ENGINE_METHOD_PKEY_ASN1_METHS` - * * `crypto.constants.ENGINE_METHOD_ALL` - * * `crypto.constants.ENGINE_METHOD_NONE` - * @since v0.11.11 - * @param flags - */ - function setEngine(engine: string, flags?: number): void; - /** - * A convenient alias for {@link webcrypto.getRandomValues}. This - * implementation is not compliant with the Web Crypto spec, to write - * web-compatible code use {@link webcrypto.getRandomValues} instead. - * @since v17.4.0 - * @return Returns `typedArray`. - */ - function getRandomValues(typedArray: T): T; - type Argon2Algorithm = "argon2d" | "argon2i" | "argon2id"; - interface Argon2Parameters { - /** - * REQUIRED, this is the password for password hashing applications of Argon2. - */ - message: string | ArrayBuffer | NodeJS.ArrayBufferView; - /** - * REQUIRED, must be at least 8 bytes long. This is the salt for password hashing applications of Argon2. - */ - nonce: string | ArrayBuffer | NodeJS.ArrayBufferView; - /** - * REQUIRED, degree of parallelism determines how many computational chains (lanes) - * can be run. Must be greater than 1 and less than `2**24-1`. - */ - parallelism: number; - /** - * REQUIRED, the length of the key to generate. Must be greater than 4 and - * less than `2**32-1`. - */ - tagLength: number; - /** - * REQUIRED, memory cost in 1KiB blocks. Must be greater than - * `8 * parallelism` and less than `2**32-1`. The actual number of blocks is rounded - * down to the nearest multiple of `4 * parallelism`. - */ - memory: number; - /** - * REQUIRED, number of passes (iterations). Must be greater than 1 and less - * than `2**32-1`. - */ - passes: number; - /** - * OPTIONAL, Random additional input, - * similar to the salt, that should **NOT** be stored with the derived key. This is known as pepper in - * password hashing applications. If used, must have a length not greater than `2**32-1` bytes. - */ - secret?: string | ArrayBuffer | NodeJS.ArrayBufferView | undefined; - /** - * OPTIONAL, Additional data to - * be added to the hash, functionally equivalent to salt or secret, but meant for - * non-random data. If used, must have a length not greater than `2**32-1` bytes. - */ - associatedData?: string | ArrayBuffer | NodeJS.ArrayBufferView | undefined; - } - /** - * Provides an asynchronous [Argon2](https://www.rfc-editor.org/rfc/rfc9106.html) implementation. Argon2 is a password-based - * key derivation function that is designed to be expensive computationally and - * memory-wise in order to make brute-force attacks unrewarding. - * - * The `nonce` should be as unique as possible. It is recommended that a nonce is - * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. - * - * When passing strings for `message`, `nonce`, `secret` or `associatedData`, please - * consider [caveats when using strings as inputs to cryptographic APIs](https://nodejs.org/docs/latest-v24.x/api/crypto.html#using-strings-as-inputs-to-cryptographic-apis). - * - * The `callback` function is called with two arguments: `err` and `derivedKey`. - * `err` is an exception object when key derivation fails, otherwise `err` is - * `null`. `derivedKey` is passed to the callback as a `Buffer`. - * - * An exception is thrown when any of the input arguments specify invalid values - * or types. - * - * ```js - * const { argon2, randomBytes } = await import('node:crypto'); - * - * const parameters = { - * message: 'password', - * nonce: randomBytes(16), - * parallelism: 4, - * tagLength: 64, - * memory: 65536, - * passes: 3, - * }; - * - * argon2('argon2id', parameters, (err, derivedKey) => { - * if (err) throw err; - * console.log(derivedKey.toString('hex')); // 'af91dad...9520f15' - * }); - * ``` - * @since v24.7.0 - * @param algorithm Variant of Argon2, one of `"argon2d"`, `"argon2i"` or `"argon2id"`. - * @experimental - */ - function argon2( - algorithm: Argon2Algorithm, - parameters: Argon2Parameters, - callback: (err: Error | null, derivedKey: NonSharedBuffer) => void, - ): void; - /** - * Provides a synchronous [Argon2][] implementation. Argon2 is a password-based - * key derivation function that is designed to be expensive computationally and - * memory-wise in order to make brute-force attacks unrewarding. - * - * The `nonce` should be as unique as possible. It is recommended that a nonce is - * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. - * - * When passing strings for `message`, `nonce`, `secret` or `associatedData`, please - * consider [caveats when using strings as inputs to cryptographic APIs](https://nodejs.org/docs/latest-v24.x/api/crypto.html#using-strings-as-inputs-to-cryptographic-apis). - * - * An exception is thrown when key derivation fails, otherwise the derived key is - * returned as a `Buffer`. - * - * An exception is thrown when any of the input arguments specify invalid values - * or types. - * - * ```js - * const { argon2Sync, randomBytes } = await import('node:crypto'); - * - * const parameters = { - * message: 'password', - * nonce: randomBytes(16), - * parallelism: 4, - * tagLength: 64, - * memory: 65536, - * passes: 3, - * }; - * - * const derivedKey = argon2Sync('argon2id', parameters); - * console.log(derivedKey.toString('hex')); // 'af91dad...9520f15' - * ``` - * @since v24.7.0 - * @experimental - */ - function argon2Sync(algorithm: Argon2Algorithm, parameters: Argon2Parameters): NonSharedBuffer; - /** - * A convenient alias for `crypto.webcrypto.subtle`. - * @since v17.4.0 - */ - const subtle: webcrypto.SubtleCrypto; - /** - * An implementation of the Web Crypto API standard. - * - * See the {@link https://nodejs.org/docs/latest/api/webcrypto.html Web Crypto API documentation} for details. - * @since v15.0.0 - */ - const webcrypto: webcrypto.Crypto; - namespace webcrypto { - type BufferSource = ArrayBufferView | ArrayBuffer; - type KeyFormat = "jwk" | "pkcs8" | "raw" | "raw-public" | "raw-secret" | "raw-seed" | "spki"; - type KeyType = "private" | "public" | "secret"; - type KeyUsage = - | "encrypt" - | "decrypt" - | "sign" - | "verify" - | "deriveKey" - | "deriveBits" - | "encapsulateBits" - | "decapsulateBits" - | "encapsulateKey" - | "decapsulateKey" - | "wrapKey" - | "unwrapKey"; - type AlgorithmIdentifier = Algorithm | string; - type HashAlgorithmIdentifier = AlgorithmIdentifier; - type NamedCurve = string; - type BigInteger = Uint8Array; - interface AeadParams extends Algorithm { - additionalData?: BufferSource; - iv: BufferSource; - tagLength: number; - } - interface AesCbcParams extends Algorithm { - iv: BufferSource; - } - interface AesCtrParams extends Algorithm { - counter: BufferSource; - length: number; - } - interface AesDerivedKeyParams extends Algorithm { - length: number; - } - // TODO: remove in next major - /** @deprecated Replaced by `AeadParams`. */ - interface AesGcmParams extends Algorithm { - additionalData?: BufferSource; - iv: BufferSource; - tagLength?: number; - } - interface AesKeyAlgorithm extends KeyAlgorithm { - length: number; - } - interface AesKeyGenParams extends Algorithm { - length: number; - } - interface Algorithm { - name: string; - } - interface Argon2Params extends Algorithm { - associatedData?: BufferSource; - memory: number; - nonce: BufferSource; - parallelism: number; - passes: number; - secretValue?: BufferSource; - version?: number; - } - interface CShakeParams extends Algorithm { - customization?: BufferSource; - functionName?: BufferSource; - length: number; - } - interface ContextParams extends Algorithm { - context?: BufferSource; - } - interface EcKeyAlgorithm extends KeyAlgorithm { - namedCurve: NamedCurve; - } - interface EcKeyGenParams extends Algorithm { - namedCurve: NamedCurve; - } - interface EcKeyImportParams extends Algorithm { - namedCurve: NamedCurve; - } - interface EcdhKeyDeriveParams extends Algorithm { - public: CryptoKey; - } - interface EcdsaParams extends Algorithm { - hash: HashAlgorithmIdentifier; - } - interface HkdfParams extends Algorithm { - hash: HashAlgorithmIdentifier; - info: BufferSource; - salt: BufferSource; - } - interface HmacImportParams extends Algorithm { - hash: HashAlgorithmIdentifier; - length?: number; - } - interface HmacKeyAlgorithm extends KeyAlgorithm { - hash: KeyAlgorithm; - length: number; - } - interface HmacKeyGenParams extends Algorithm { - hash: HashAlgorithmIdentifier; - length?: number; - } - interface JsonWebKey { - alg?: string; - crv?: string; - d?: string; - dp?: string; - dq?: string; - e?: string; - ext?: boolean; - k?: string; - key_ops?: string[]; - kty?: string; - n?: string; - oth?: RsaOtherPrimesInfo[]; - p?: string; - q?: string; - qi?: string; - use?: string; - x?: string; - y?: string; - } - interface KeyAlgorithm { - name: string; - } - interface KmacImportParams extends Algorithm { - length?: number; - } - interface KmacKeyAlgorithm extends KeyAlgorithm { - length: number; - } - interface KmacKeyGenParams extends Algorithm { - length?: number; - } - interface KmacParams extends Algorithm { - customization?: BufferSource; - length: number; - } - interface Pbkdf2Params extends Algorithm { - hash: HashAlgorithmIdentifier; - iterations: number; - salt: BufferSource; - } - interface RsaHashedImportParams extends Algorithm { - hash: HashAlgorithmIdentifier; - } - interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm { - hash: KeyAlgorithm; - } - interface RsaHashedKeyGenParams extends RsaKeyGenParams { - hash: HashAlgorithmIdentifier; - } - interface RsaKeyAlgorithm extends KeyAlgorithm { - modulusLength: number; - publicExponent: BigInteger; - } - interface RsaKeyGenParams extends Algorithm { - modulusLength: number; - publicExponent: BigInteger; - } - interface RsaOaepParams extends Algorithm { - label?: BufferSource; - } - interface RsaOtherPrimesInfo { - d?: string; - r?: string; - t?: string; - } - interface RsaPssParams extends Algorithm { - saltLength: number; - } - /** - * Importing the `webcrypto` object (`import { webcrypto } from 'node:crypto'`) gives an instance of the `Crypto` class. - * `Crypto` is a singleton that provides access to the remainder of the crypto API. - * @since v15.0.0 - */ - interface Crypto { - /** - * Provides access to the `SubtleCrypto` API. - * @since v15.0.0 - */ - readonly subtle: SubtleCrypto; - /** - * Generates cryptographically strong random values. - * The given `typedArray` is filled with random values, and a reference to `typedArray` is returned. - * - * The given `typedArray` must be an integer-based instance of {@link NodeJS.TypedArray}, i.e. `Float32Array` and `Float64Array` are not accepted. - * - * An error will be thrown if the given `typedArray` is larger than 65,536 bytes. - * @since v15.0.0 - */ - getRandomValues>( - typedArray: T, - ): T; - /** - * Generates a random {@link https://www.rfc-editor.org/rfc/rfc4122.txt RFC 4122} version 4 UUID. - * The UUID is generated using a cryptographic pseudorandom number generator. - * @since v16.7.0 - */ - randomUUID(): UUID; - } - /** - * @since v15.0.0 - */ - interface CryptoKey { - /** - * An object detailing the algorithm for which the key can be used along with additional algorithm-specific parameters. - * @since v15.0.0 - */ - readonly algorithm: KeyAlgorithm; - /** - * When `true`, the {@link CryptoKey} can be extracted using either `subtleCrypto.exportKey()` or `subtleCrypto.wrapKey()`. - * @since v15.0.0 - */ - readonly extractable: boolean; - /** - * A string identifying whether the key is a symmetric (`'secret'`) or asymmetric (`'private'` or `'public'`) key. - * @since v15.0.0 - */ - readonly type: KeyType; - /** - * An array of strings identifying the operations for which the key may be used. - * - * The possible usages are: - * - `'encrypt'` - The key may be used to encrypt data. - * - `'decrypt'` - The key may be used to decrypt data. - * - `'sign'` - The key may be used to generate digital signatures. - * - `'verify'` - The key may be used to verify digital signatures. - * - `'deriveKey'` - The key may be used to derive a new key. - * - `'deriveBits'` - The key may be used to derive bits. - * - `'wrapKey'` - The key may be used to wrap another key. - * - `'unwrapKey'` - The key may be used to unwrap another key. - * - * Valid key usages depend on the key algorithm (identified by `cryptokey.algorithm.name`). - * @since v15.0.0 - */ - readonly usages: KeyUsage[]; - } - /** - * The `CryptoKeyPair` is a simple dictionary object with `publicKey` and `privateKey` properties, representing an asymmetric key pair. - * @since v15.0.0 - */ - interface CryptoKeyPair { - /** - * A {@link CryptoKey} whose type will be `'private'`. - * @since v15.0.0 - */ - privateKey: CryptoKey; - /** - * A {@link CryptoKey} whose type will be `'public'`. - * @since v15.0.0 - */ - publicKey: CryptoKey; - } - interface EncapsulatedBits { - sharedKey: ArrayBuffer; - ciphertext: ArrayBuffer; - } - interface EncapsulatedKey { - sharedKey: CryptoKey; - ciphertext: ArrayBuffer; - } - /** - * @since v15.0.0 - */ - interface SubtleCrypto { - /** - * A message recipient uses their asymmetric private key to decrypt an - * "encapsulated key" (ciphertext), thereby recovering a temporary symmetric - * key (represented as `ArrayBuffer`) which is then used to decrypt a message. - * - * The algorithms currently supported include: - * - * * `'ML-KEM-512'` - * * `'ML-KEM-768'` - * * `'ML-KEM-1024'` - * @since v24.7.0 - * @returns Fulfills with `ArrayBuffer` upon success. - */ - decapsulateBits( - decapsulationAlgorithm: AlgorithmIdentifier, - decapsulationKey: CryptoKey, - ciphertext: BufferSource, - ): Promise; - /** - * A message recipient uses their asymmetric private key to decrypt an - * "encapsulated key" (ciphertext), thereby recovering a temporary symmetric - * key (represented as `CryptoKey`) which is then used to decrypt a message. - * - * The algorithms currently supported include: - * - * * `'ML-KEM-512'` - * * `'ML-KEM-768'` - * * `'ML-KEM-1024'` - * @since v24.7.0 - * @param usages See [Key usages](https://nodejs.org/docs/latest-v24.x/api/webcrypto.html#cryptokeyusages). - * @returns Fulfills with `CryptoKey` upon success. - */ - decapsulateKey( - decapsulationAlgorithm: AlgorithmIdentifier, - decapsulationKey: CryptoKey, - ciphertext: BufferSource, - sharedKeyAlgorithm: AlgorithmIdentifier | HmacImportParams | AesDerivedKeyParams | KmacImportParams, - extractable: boolean, - usages: KeyUsage[], - ): Promise; - /** - * Using the method and parameters specified in `algorithm` and the keying material provided by `key`, - * this method attempts to decipher the provided `data`. If successful, - * the returned promise will be resolved with an `` containing the plaintext result. - * - * The algorithms currently supported include: - * - * * `'AES-CBC'` - * * `'AES-CTR'` - * * `'AES-GCM'` - * * `'AES-OCB'` - * * `'ChaCha20-Poly1305'` - * * `'RSA-OAEP'` - * @since v15.0.0 - */ - decrypt( - algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AeadParams, - key: CryptoKey, - data: BufferSource, - ): Promise; - /** - * Using the method and parameters specified in `algorithm` and the keying material provided by `baseKey`, - * this method attempts to generate `length` bits. - * The Node.js implementation requires that when `length` is a number it must be multiple of `8`. - * When `length` is `null` the maximum number of bits for a given algorithm is generated. This is allowed - * for the `'ECDH'`, `'X25519'`, and `'X448'` algorithms. - * If successful, the returned promise will be resolved with an `` containing the generated data. - * - * The algorithms currently supported include: - * - * * `'Argon2d'` - * * `'Argon2i'` - * * `'Argon2id'` - * * `'ECDH'` - * * `'HKDF'` - * * `'PBKDF2'` - * * `'X25519'` - * * `'X448'` - * @since v15.0.0 - */ - deriveBits( - algorithm: EcdhKeyDeriveParams, - baseKey: CryptoKey, - length?: number | null, - ): Promise; - deriveBits( - algorithm: EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params | Argon2Params, - baseKey: CryptoKey, - length: number, - ): Promise; - /** - * Using the method and parameters specified in `algorithm`, and the keying material provided by `baseKey`, - * this method attempts to generate a new ` based on the method and parameters in `derivedKeyAlgorithm`. - * - * Calling `subtle.deriveKey()` is equivalent to calling `subtle.deriveBits()` to generate raw keying material, - * then passing the result into the `subtle.importKey()` method using the `deriveKeyAlgorithm`, `extractable`, and `keyUsages` parameters as input. - * - * The algorithms currently supported include: - * - * * `'Argon2d'` - * * `'Argon2i'` - * * `'Argon2id'` - * * `'ECDH'` - * * `'HKDF'` - * * `'PBKDF2'` - * * `'X25519'` - * * `'X448'` - * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}. - * @since v15.0.0 - */ - deriveKey( - algorithm: EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params | Argon2Params, - baseKey: CryptoKey, - derivedKeyAlgorithm: AlgorithmIdentifier | HmacImportParams | AesDerivedKeyParams | KmacImportParams, - extractable: boolean, - keyUsages: readonly KeyUsage[], - ): Promise; - /** - * Using the method identified by `algorithm`, `subtle.digest()` attempts to generate a digest of `data`. - * If successful, the returned promise is resolved with an `` containing the computed digest. - * - * If `algorithm` is provided as a ``, it must be one of: - * - * * `'cSHAKE128'` - * * `'cSHAKE256'` - * * `'SHA-1'` - * * `'SHA-256'` - * * `'SHA-384'` - * * `'SHA-512'` - * * `'SHA3-256'` - * * `'SHA3-384'` - * * `'SHA3-512'` - * - * If `algorithm` is provided as an ``, it must have a `name` property whose value is one of the above. - * @since v15.0.0 - */ - digest(algorithm: AlgorithmIdentifier | CShakeParams, data: BufferSource): Promise; - /** - * Uses a message recipient's asymmetric public key to encrypt a temporary symmetric key. - * This encrypted key is the "encapsulated key" represented as `EncapsulatedBits`. - * - * The algorithms currently supported include: - * - * * `'ML-KEM-512'` - * * `'ML-KEM-768'` - * * `'ML-KEM-1024'` - * @since v24.7.0 - * @returns Fulfills with `EncapsulatedBits` upon success. - */ - encapsulateBits( - encapsulationAlgorithm: AlgorithmIdentifier, - encapsulationKey: CryptoKey, - ): Promise; - /** - * Uses a message recipient's asymmetric public key to encrypt a temporary symmetric key. - * This encrypted key is the "encapsulated key" represented as `EncapsulatedKey`. - * - * The algorithms currently supported include: - * - * * `'ML-KEM-512'` - * * `'ML-KEM-768'` - * * `'ML-KEM-1024'` - * @since v24.7.0 - * @param usages See [Key usages](https://nodejs.org/docs/latest-v24.x/api/webcrypto.html#cryptokeyusages). - * @returns Fulfills with `EncapsulatedKey` upon success. - */ - encapsulateKey( - encapsulationAlgorithm: AlgorithmIdentifier, - encapsulationKey: CryptoKey, - sharedKeyAlgorithm: AlgorithmIdentifier | HmacImportParams | AesDerivedKeyParams | KmacImportParams, - extractable: boolean, - usages: KeyUsage[], - ): Promise; - /** - * Using the method and parameters specified by `algorithm` and the keying material provided by `key`, - * this method attempts to encipher `data`. If successful, - * the returned promise is resolved with an `` containing the encrypted result. - * - * The algorithms currently supported include: - * - * * `'AES-CBC'` - * * `'AES-CTR'` - * * `'AES-GCM'` - * * `'AES-OCB'` - * * `'ChaCha20-Poly1305'` - * * `'RSA-OAEP'` - * @since v15.0.0 - */ - encrypt( - algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AeadParams, - key: CryptoKey, - data: BufferSource, - ): Promise; - /** - * Exports the given key into the specified format, if supported. - * - * If the `` is not extractable, the returned promise will reject. - * - * When `format` is either `'pkcs8'` or `'spki'` and the export is successful, - * the returned promise will be resolved with an `` containing the exported key data. - * - * When `format` is `'jwk'` and the export is successful, the returned promise will be resolved with a - * JavaScript object conforming to the {@link https://tools.ietf.org/html/rfc7517 JSON Web Key} specification. - * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, `'jwk'`, `'raw-secret'`, - * `'raw-public'`, or `'raw-seed'`. - * @returns `` containing ``. - * @since v15.0.0 - */ - exportKey(format: "jwk", key: CryptoKey): Promise; - exportKey(format: Exclude, key: CryptoKey): Promise; - /** - * Using the parameters provided in `algorithm`, this method - * attempts to generate new keying material. Depending on the algorithm used - * either a single `CryptoKey` or a `CryptoKeyPair` is generated. - * - * The `CryptoKeyPair` (public and private key) generating algorithms supported - * include: - * - * * `'ECDH'` - * * `'ECDSA'` - * * `'Ed25519'` - * * `'Ed448'` - * * `'ML-DSA-44'` - * * `'ML-DSA-65'` - * * `'ML-DSA-87'` - * * `'ML-KEM-512'` - * * `'ML-KEM-768'` - * * `'ML-KEM-1024'` - * * `'RSA-OAEP'` - * * `'RSA-PSS'` - * * `'RSASSA-PKCS1-v1_5'` - * * `'X25519'` - * * `'X448'` - * - * The `CryptoKey` (secret key) generating algorithms supported include: - * * `'AES-CBC'` - * * `'AES-CTR'` - * * `'AES-GCM'` - * * `'AES-KW'` - * * `'AES-OCB'` - * * `'ChaCha20-Poly1305'` - * * `'HMAC'` - * * `'KMAC128'` - * * `'KMAC256'` - * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}. - * @since v15.0.0 - */ - generateKey( - algorithm: RsaHashedKeyGenParams | EcKeyGenParams, - extractable: boolean, - keyUsages: readonly KeyUsage[], - ): Promise; - generateKey( - algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params | KmacKeyGenParams, - extractable: boolean, - keyUsages: readonly KeyUsage[], - ): Promise; - generateKey( - algorithm: AlgorithmIdentifier, - extractable: boolean, - keyUsages: KeyUsage[], - ): Promise; - /** - * Derives the public key from a given private key. - * @since v24.7.0 - * @param key A private key from which to derive the corresponding public key. - * @param keyUsages See [Key usages](https://nodejs.org/docs/latest-v24.x/api/webcrypto.html#cryptokeyusages). - * @returns Fulfills with a `CryptoKey` upon success. - */ - getPublicKey(key: CryptoKey, keyUsages: KeyUsage[]): Promise; - /** - * This method attempts to interpret the provided `keyData` - * as the given `format` to create a `CryptoKey` instance using the provided - * `algorithm`, `extractable`, and `keyUsages` arguments. If the import is - * successful, the returned promise will be resolved with a {CryptoKey} - * representation of the key material. - * - * If importing KDF algorithm keys, `extractable` must be `false`. - * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, `'jwk'`, `'raw-secret'`, - * `'raw-public'`, or `'raw-seed'`. - * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}. - * @since v15.0.0 - */ - importKey( - format: "jwk", - keyData: JsonWebKey, - algorithm: - | AlgorithmIdentifier - | RsaHashedImportParams - | EcKeyImportParams - | HmacImportParams - | AesKeyAlgorithm - | KmacImportParams, - extractable: boolean, - keyUsages: readonly KeyUsage[], - ): Promise; - importKey( - format: Exclude, - keyData: BufferSource, - algorithm: - | AlgorithmIdentifier - | RsaHashedImportParams - | EcKeyImportParams - | HmacImportParams - | AesKeyAlgorithm - | KmacImportParams, - extractable: boolean, - keyUsages: KeyUsage[], - ): Promise; - /** - * Using the method and parameters given by `algorithm` and the keying material provided by `key`, - * this method attempts to generate a cryptographic signature of `data`. If successful, - * the returned promise is resolved with an `` containing the generated signature. - * - * The algorithms currently supported include: - * - * * `'ECDSA'` - * * `'Ed25519'` - * * `'Ed448'` - * * `'HMAC'` - * * `'KMAC128'` - * * `'KMAC256'` - * * `'ML-DSA-44'` - * * `'ML-DSA-65'` - * * `'ML-DSA-87'` - * * `'RSA-PSS'` - * * `'RSASSA-PKCS1-v1_5'` - * @since v15.0.0 - */ - sign( - algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | ContextParams | KmacParams, - key: CryptoKey, - data: BufferSource, - ): Promise; - /** - * In cryptography, "wrapping a key" refers to exporting and then encrypting the keying material. - * This method attempts to decrypt a wrapped key and create a `` instance. - * It is equivalent to calling `subtle.decrypt()` first on the encrypted key data (using the `wrappedKey`, `unwrapAlgo`, and `unwrappingKey` arguments as input) - * then passing the results in to the `subtle.importKey()` method using the `unwrappedKeyAlgo`, `extractable`, and `keyUsages` arguments as inputs. - * If successful, the returned promise is resolved with a `` object. - * - * The wrapping algorithms currently supported include: - * - * * `'AES-CBC'` - * * `'AES-CTR'` - * * `'AES-GCM'` - * * `'AES-KW'` - * * `'AES-OCB'` - * * `'ChaCha20-Poly1305'` - * * `'RSA-OAEP'` - * - * The unwrapped key algorithms supported include: - * - * * `'AES-CBC'` - * * `'AES-CTR'` - * * `'AES-GCM'` - * * `'AES-KW'` - * * `'AES-OCB'` - * * `'ChaCha20-Poly1305'` - * * `'ECDH'` - * * `'ECDSA'` - * * `'Ed25519'` - * * `'Ed448'` - * * `'HMAC'` - * * `'KMAC128'` - * * `'KMAC256'` - * * `'ML-DSA-44'` - * * `'ML-DSA-65'` - * * `'ML-DSA-87'` - * * `'ML-KEM-512'` - * * `'ML-KEM-768'` - * * `'ML-KEM-1024'` - * * `'RSA-OAEP'` - * * `'RSA-PSS'` - * * `'RSASSA-PKCS1-v1_5'` - * * `'X25519'` - * * `'X448'` - * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, `'jwk'`, `'raw-secret'`, - * `'raw-public'`, or `'raw-seed'`. - * @param keyUsages See {@link https://nodejs.org/docs/latest/api/webcrypto.html#cryptokeyusages Key usages}. - * @since v15.0.0 - */ - unwrapKey( - format: KeyFormat, - wrappedKey: BufferSource, - unwrappingKey: CryptoKey, - unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AeadParams, - unwrappedKeyAlgorithm: - | AlgorithmIdentifier - | RsaHashedImportParams - | EcKeyImportParams - | HmacImportParams - | AesKeyAlgorithm - | KmacImportParams, - extractable: boolean, - keyUsages: KeyUsage[], - ): Promise; - /** - * Using the method and parameters given in `algorithm` and the keying material provided by `key`, - * This method attempts to verify that `signature` is a valid cryptographic signature of `data`. - * The returned promise is resolved with either `true` or `false`. - * - * The algorithms currently supported include: - * - * * `'ECDSA'` - * * `'Ed25519'` - * * `'Ed448'` - * * `'HMAC'` - * * `'KMAC128'` - * * `'KMAC256'` - * * `'ML-DSA-44'` - * * `'ML-DSA-65'` - * * `'ML-DSA-87'` - * * `'RSA-PSS'` - * * `'RSASSA-PKCS1-v1_5'` - * @since v15.0.0 - */ - verify( - algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | ContextParams | KmacParams, - key: CryptoKey, - signature: BufferSource, - data: BufferSource, - ): Promise; - /** - * In cryptography, "wrapping a key" refers to exporting and then encrypting the keying material. - * This method exports the keying material into the format identified by `format`, - * then encrypts it using the method and parameters specified by `wrapAlgo` and the keying material provided by `wrappingKey`. - * It is the equivalent to calling `subtle.exportKey()` using `format` and `key` as the arguments, - * then passing the result to the `subtle.encrypt()` method using `wrappingKey` and `wrapAlgo` as inputs. - * If successful, the returned promise will be resolved with an `` containing the encrypted key data. - * - * The wrapping algorithms currently supported include: - * - * * `'AES-CBC'` - * * `'AES-CTR'` - * * `'AES-GCM'` - * * `'AES-KW'` - * * `'AES-OCB'` - * * `'ChaCha20-Poly1305'` - * * `'RSA-OAEP'` - * @param format Must be one of `'raw'`, `'pkcs8'`, `'spki'`, `'jwk'`, `'raw-secret'`, - * `'raw-public'`, or `'raw-seed'`. - * @since v15.0.0 - */ - wrapKey( - format: KeyFormat, - key: CryptoKey, - wrappingKey: CryptoKey, - wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AeadParams, - ): Promise; - } - } -} -declare module "node:crypto" { - export * from "crypto"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/dgram.d.ts b/build_vtk_bundle/node_modules/@types/node/dgram.d.ts deleted file mode 100644 index bc69f0b4..00000000 --- a/build_vtk_bundle/node_modules/@types/node/dgram.d.ts +++ /dev/null @@ -1,600 +0,0 @@ -/** - * The `node:dgram` module provides an implementation of UDP datagram sockets. - * - * ```js - * import dgram from 'node:dgram'; - * - * const server = dgram.createSocket('udp4'); - * - * server.on('error', (err) => { - * console.error(`server error:\n${err.stack}`); - * server.close(); - * }); - * - * server.on('message', (msg, rinfo) => { - * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`); - * }); - * - * server.on('listening', () => { - * const address = server.address(); - * console.log(`server listening ${address.address}:${address.port}`); - * }); - * - * server.bind(41234); - * // Prints: server listening 0.0.0.0:41234 - * ``` - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/dgram.js) - */ -declare module "dgram" { - import { NonSharedBuffer } from "node:buffer"; - import { AddressInfo, BlockList } from "node:net"; - import * as dns from "node:dns"; - import { Abortable, EventEmitter } from "node:events"; - interface RemoteInfo { - address: string; - family: "IPv4" | "IPv6"; - port: number; - size: number; - } - interface BindOptions { - port?: number | undefined; - address?: string | undefined; - exclusive?: boolean | undefined; - fd?: number | undefined; - } - type SocketType = "udp4" | "udp6"; - interface SocketOptions extends Abortable { - type: SocketType; - reuseAddr?: boolean | undefined; - reusePort?: boolean | undefined; - /** - * @default false - */ - ipv6Only?: boolean | undefined; - recvBufferSize?: number | undefined; - sendBufferSize?: number | undefined; - lookup?: - | (( - hostname: string, - options: dns.LookupOneOptions, - callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void, - ) => void) - | undefined; - receiveBlockList?: BlockList | undefined; - sendBlockList?: BlockList | undefined; - } - /** - * Creates a `dgram.Socket` object. Once the socket is created, calling `socket.bind()` will instruct the socket to begin listening for datagram - * messages. When `address` and `port` are not passed to `socket.bind()` the - * method will bind the socket to the "all interfaces" address on a random port - * (it does the right thing for both `udp4` and `udp6` sockets). The bound address - * and port can be retrieved using `socket.address().address` and `socket.address().port`. - * - * If the `signal` option is enabled, calling `.abort()` on the corresponding `AbortController` is similar to calling `.close()` on the socket: - * - * ```js - * const controller = new AbortController(); - * const { signal } = controller; - * const server = dgram.createSocket({ type: 'udp4', signal }); - * server.on('message', (msg, rinfo) => { - * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`); - * }); - * // Later, when you want to close the server. - * controller.abort(); - * ``` - * @since v0.11.13 - * @param options Available options are: - * @param callback Attached as a listener for `'message'` events. Optional. - */ - function createSocket(type: SocketType, callback?: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): Socket; - function createSocket(options: SocketOptions, callback?: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): Socket; - /** - * Encapsulates the datagram functionality. - * - * New instances of `dgram.Socket` are created using {@link createSocket}. - * The `new` keyword is not to be used to create `dgram.Socket` instances. - * @since v0.1.99 - */ - class Socket extends EventEmitter { - /** - * Tells the kernel to join a multicast group at the given `multicastAddress` and `multicastInterface` using the `IP_ADD_MEMBERSHIP` socket option. If the `multicastInterface` argument is not - * specified, the operating system will choose - * one interface and will add membership to it. To add membership to every - * available interface, call `addMembership` multiple times, once per interface. - * - * When called on an unbound socket, this method will implicitly bind to a random - * port, listening on all interfaces. - * - * When sharing a UDP socket across multiple `cluster` workers, the`socket.addMembership()` function must be called only once or an`EADDRINUSE` error will occur: - * - * ```js - * import cluster from 'node:cluster'; - * import dgram from 'node:dgram'; - * - * if (cluster.isPrimary) { - * cluster.fork(); // Works ok. - * cluster.fork(); // Fails with EADDRINUSE. - * } else { - * const s = dgram.createSocket('udp4'); - * s.bind(1234, () => { - * s.addMembership('224.0.0.114'); - * }); - * } - * ``` - * @since v0.6.9 - */ - addMembership(multicastAddress: string, multicastInterface?: string): void; - /** - * Returns an object containing the address information for a socket. - * For UDP sockets, this object will contain `address`, `family`, and `port` properties. - * - * This method throws `EBADF` if called on an unbound socket. - * @since v0.1.99 - */ - address(): AddressInfo; - /** - * For UDP sockets, causes the `dgram.Socket` to listen for datagram - * messages on a named `port` and optional `address`. If `port` is not - * specified or is `0`, the operating system will attempt to bind to a - * random port. If `address` is not specified, the operating system will - * attempt to listen on all addresses. Once binding is complete, a `'listening'` event is emitted and the optional `callback` function is - * called. - * - * Specifying both a `'listening'` event listener and passing a `callback` to the `socket.bind()` method is not harmful but not very - * useful. - * - * A bound datagram socket keeps the Node.js process running to receive - * datagram messages. - * - * If binding fails, an `'error'` event is generated. In rare case (e.g. - * attempting to bind with a closed socket), an `Error` may be thrown. - * - * Example of a UDP server listening on port 41234: - * - * ```js - * import dgram from 'node:dgram'; - * - * const server = dgram.createSocket('udp4'); - * - * server.on('error', (err) => { - * console.error(`server error:\n${err.stack}`); - * server.close(); - * }); - * - * server.on('message', (msg, rinfo) => { - * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`); - * }); - * - * server.on('listening', () => { - * const address = server.address(); - * console.log(`server listening ${address.address}:${address.port}`); - * }); - * - * server.bind(41234); - * // Prints: server listening 0.0.0.0:41234 - * ``` - * @since v0.1.99 - * @param callback with no parameters. Called when binding is complete. - */ - bind(port?: number, address?: string, callback?: () => void): this; - bind(port?: number, callback?: () => void): this; - bind(callback?: () => void): this; - bind(options: BindOptions, callback?: () => void): this; - /** - * Close the underlying socket and stop listening for data on it. If a callback is - * provided, it is added as a listener for the `'close'` event. - * @since v0.1.99 - * @param callback Called when the socket has been closed. - */ - close(callback?: () => void): this; - /** - * Associates the `dgram.Socket` to a remote address and port. Every - * message sent by this handle is automatically sent to that destination. Also, - * the socket will only receive messages from that remote peer. - * Trying to call `connect()` on an already connected socket will result - * in an `ERR_SOCKET_DGRAM_IS_CONNECTED` exception. If `address` is not - * provided, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for `udp6` sockets) - * will be used by default. Once the connection is complete, a `'connect'` event - * is emitted and the optional `callback` function is called. In case of failure, - * the `callback` is called or, failing this, an `'error'` event is emitted. - * @since v12.0.0 - * @param callback Called when the connection is completed or on error. - */ - connect(port: number, address?: string, callback?: () => void): void; - connect(port: number, callback: () => void): void; - /** - * A synchronous function that disassociates a connected `dgram.Socket` from - * its remote address. Trying to call `disconnect()` on an unbound or already - * disconnected socket will result in an `ERR_SOCKET_DGRAM_NOT_CONNECTED` exception. - * @since v12.0.0 - */ - disconnect(): void; - /** - * Instructs the kernel to leave a multicast group at `multicastAddress` using the `IP_DROP_MEMBERSHIP` socket option. This method is automatically called by the - * kernel when the socket is closed or the process terminates, so most apps will - * never have reason to call this. - * - * If `multicastInterface` is not specified, the operating system will attempt to - * drop membership on all valid interfaces. - * @since v0.6.9 - */ - dropMembership(multicastAddress: string, multicastInterface?: string): void; - /** - * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. - * @since v8.7.0 - * @return the `SO_RCVBUF` socket receive buffer size in bytes. - */ - getRecvBufferSize(): number; - /** - * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. - * @since v8.7.0 - * @return the `SO_SNDBUF` socket send buffer size in bytes. - */ - getSendBufferSize(): number; - /** - * @since v18.8.0, v16.19.0 - * @return Number of bytes queued for sending. - */ - getSendQueueSize(): number; - /** - * @since v18.8.0, v16.19.0 - * @return Number of send requests currently in the queue awaiting to be processed. - */ - getSendQueueCount(): number; - /** - * By default, binding a socket will cause it to block the Node.js process from - * exiting as long as the socket is open. The `socket.unref()` method can be used - * to exclude the socket from the reference counting that keeps the Node.js - * process active. The `socket.ref()` method adds the socket back to the reference - * counting and restores the default behavior. - * - * Calling `socket.ref()` multiples times will have no additional effect. - * - * The `socket.ref()` method returns a reference to the socket so calls can be - * chained. - * @since v0.9.1 - */ - ref(): this; - /** - * Returns an object containing the `address`, `family`, and `port` of the remote - * endpoint. This method throws an `ERR_SOCKET_DGRAM_NOT_CONNECTED` exception - * if the socket is not connected. - * @since v12.0.0 - */ - remoteAddress(): AddressInfo; - /** - * Broadcasts a datagram on the socket. - * For connectionless sockets, the destination `port` and `address` must be - * specified. Connected sockets, on the other hand, will use their associated - * remote endpoint, so the `port` and `address` arguments must not be set. - * - * The `msg` argument contains the message to be sent. - * Depending on its type, different behavior can apply. If `msg` is a `Buffer`, - * any `TypedArray` or a `DataView`, - * the `offset` and `length` specify the offset within the `Buffer` where the - * message begins and the number of bytes in the message, respectively. - * If `msg` is a `String`, then it is automatically converted to a `Buffer` with `'utf8'` encoding. With messages that - * contain multi-byte characters, `offset` and `length` will be calculated with - * respect to `byte length` and not the character position. - * If `msg` is an array, `offset` and `length` must not be specified. - * - * The `address` argument is a string. If the value of `address` is a host name, - * DNS will be used to resolve the address of the host. If `address` is not - * provided or otherwise nullish, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for `udp6` sockets) will be used by default. - * - * If the socket has not been previously bound with a call to `bind`, the socket - * is assigned a random port number and is bound to the "all interfaces" address - * (`'0.0.0.0'` for `udp4` sockets, `'::0'` for `udp6` sockets.) - * - * An optional `callback` function may be specified to as a way of reporting - * DNS errors or for determining when it is safe to reuse the `buf` object. - * DNS lookups delay the time to send for at least one tick of the - * Node.js event loop. - * - * The only way to know for sure that the datagram has been sent is by using a `callback`. If an error occurs and a `callback` is given, the error will be - * passed as the first argument to the `callback`. If a `callback` is not given, - * the error is emitted as an `'error'` event on the `socket` object. - * - * Offset and length are optional but both _must_ be set if either are used. - * They are supported only when the first argument is a `Buffer`, a `TypedArray`, - * or a `DataView`. - * - * This method throws `ERR_SOCKET_BAD_PORT` if called on an unbound socket. - * - * Example of sending a UDP packet to a port on `localhost`; - * - * ```js - * import dgram from 'node:dgram'; - * import { Buffer } from 'node:buffer'; - * - * const message = Buffer.from('Some bytes'); - * const client = dgram.createSocket('udp4'); - * client.send(message, 41234, 'localhost', (err) => { - * client.close(); - * }); - * ``` - * - * Example of sending a UDP packet composed of multiple buffers to a port on`127.0.0.1`; - * - * ```js - * import dgram from 'node:dgram'; - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from('Some '); - * const buf2 = Buffer.from('bytes'); - * const client = dgram.createSocket('udp4'); - * client.send([buf1, buf2], 41234, (err) => { - * client.close(); - * }); - * ``` - * - * Sending multiple buffers might be faster or slower depending on the - * application and operating system. Run benchmarks to - * determine the optimal strategy on a case-by-case basis. Generally speaking, - * however, sending multiple buffers is faster. - * - * Example of sending a UDP packet using a socket connected to a port on `localhost`: - * - * ```js - * import dgram from 'node:dgram'; - * import { Buffer } from 'node:buffer'; - * - * const message = Buffer.from('Some bytes'); - * const client = dgram.createSocket('udp4'); - * client.connect(41234, 'localhost', (err) => { - * client.send(message, (err) => { - * client.close(); - * }); - * }); - * ``` - * @since v0.1.99 - * @param msg Message to be sent. - * @param offset Offset in the buffer where the message starts. - * @param length Number of bytes in the message. - * @param port Destination port. - * @param address Destination host name or IP address. - * @param callback Called when the message has been sent. - */ - send( - msg: string | NodeJS.ArrayBufferView | readonly any[], - port?: number, - address?: string, - callback?: (error: Error | null, bytes: number) => void, - ): void; - send( - msg: string | NodeJS.ArrayBufferView | readonly any[], - port?: number, - callback?: (error: Error | null, bytes: number) => void, - ): void; - send( - msg: string | NodeJS.ArrayBufferView | readonly any[], - callback?: (error: Error | null, bytes: number) => void, - ): void; - send( - msg: string | NodeJS.ArrayBufferView, - offset: number, - length: number, - port?: number, - address?: string, - callback?: (error: Error | null, bytes: number) => void, - ): void; - send( - msg: string | NodeJS.ArrayBufferView, - offset: number, - length: number, - port?: number, - callback?: (error: Error | null, bytes: number) => void, - ): void; - send( - msg: string | NodeJS.ArrayBufferView, - offset: number, - length: number, - callback?: (error: Error | null, bytes: number) => void, - ): void; - /** - * Sets or clears the `SO_BROADCAST` socket option. When set to `true`, UDP - * packets may be sent to a local interface's broadcast address. - * - * This method throws `EBADF` if called on an unbound socket. - * @since v0.6.9 - */ - setBroadcast(flag: boolean): void; - /** - * _All references to scope in this section are referring to [IPv6 Zone Indices](https://en.wikipedia.org/wiki/IPv6_address#Scoped_literal_IPv6_addresses), which are defined by [RFC - * 4007](https://tools.ietf.org/html/rfc4007). In string form, an IP_ - * _with a scope index is written as `'IP%scope'` where scope is an interface name_ - * _or interface number._ - * - * Sets the default outgoing multicast interface of the socket to a chosen - * interface or back to system interface selection. The `multicastInterface` must - * be a valid string representation of an IP from the socket's family. - * - * For IPv4 sockets, this should be the IP configured for the desired physical - * interface. All packets sent to multicast on the socket will be sent on the - * interface determined by the most recent successful use of this call. - * - * For IPv6 sockets, `multicastInterface` should include a scope to indicate the - * interface as in the examples that follow. In IPv6, individual `send` calls can - * also use explicit scope in addresses, so only packets sent to a multicast - * address without specifying an explicit scope are affected by the most recent - * successful use of this call. - * - * This method throws `EBADF` if called on an unbound socket. - * - * #### Example: IPv6 outgoing multicast interface - * - * On most systems, where scope format uses the interface name: - * - * ```js - * const socket = dgram.createSocket('udp6'); - * - * socket.bind(1234, () => { - * socket.setMulticastInterface('::%eth1'); - * }); - * ``` - * - * On Windows, where scope format uses an interface number: - * - * ```js - * const socket = dgram.createSocket('udp6'); - * - * socket.bind(1234, () => { - * socket.setMulticastInterface('::%2'); - * }); - * ``` - * - * #### Example: IPv4 outgoing multicast interface - * - * All systems use an IP of the host on the desired physical interface: - * - * ```js - * const socket = dgram.createSocket('udp4'); - * - * socket.bind(1234, () => { - * socket.setMulticastInterface('10.0.0.2'); - * }); - * ``` - * @since v8.6.0 - */ - setMulticastInterface(multicastInterface: string): void; - /** - * Sets or clears the `IP_MULTICAST_LOOP` socket option. When set to `true`, - * multicast packets will also be received on the local interface. - * - * This method throws `EBADF` if called on an unbound socket. - * @since v0.3.8 - */ - setMulticastLoopback(flag: boolean): boolean; - /** - * Sets the `IP_MULTICAST_TTL` socket option. While TTL generally stands for - * "Time to Live", in this context it specifies the number of IP hops that a - * packet is allowed to travel through, specifically for multicast traffic. Each - * router or gateway that forwards a packet decrements the TTL. If the TTL is - * decremented to 0 by a router, it will not be forwarded. - * - * The `ttl` argument may be between 0 and 255\. The default on most systems is `1`. - * - * This method throws `EBADF` if called on an unbound socket. - * @since v0.3.8 - */ - setMulticastTTL(ttl: number): number; - /** - * Sets the `SO_RCVBUF` socket option. Sets the maximum socket receive buffer - * in bytes. - * - * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. - * @since v8.7.0 - */ - setRecvBufferSize(size: number): void; - /** - * Sets the `SO_SNDBUF` socket option. Sets the maximum socket send buffer - * in bytes. - * - * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. - * @since v8.7.0 - */ - setSendBufferSize(size: number): void; - /** - * Sets the `IP_TTL` socket option. While TTL generally stands for "Time to Live", - * in this context it specifies the number of IP hops that a packet is allowed to - * travel through. Each router or gateway that forwards a packet decrements the - * TTL. If the TTL is decremented to 0 by a router, it will not be forwarded. - * Changing TTL values is typically done for network probes or when multicasting. - * - * The `ttl` argument may be between 1 and 255\. The default on most systems - * is 64. - * - * This method throws `EBADF` if called on an unbound socket. - * @since v0.1.101 - */ - setTTL(ttl: number): number; - /** - * By default, binding a socket will cause it to block the Node.js process from - * exiting as long as the socket is open. The `socket.unref()` method can be used - * to exclude the socket from the reference counting that keeps the Node.js - * process active, allowing the process to exit even if the socket is still - * listening. - * - * Calling `socket.unref()` multiple times will have no additional effect. - * - * The `socket.unref()` method returns a reference to the socket so calls can be - * chained. - * @since v0.9.1 - */ - unref(): this; - /** - * Tells the kernel to join a source-specific multicast channel at the given `sourceAddress` and `groupAddress`, using the `multicastInterface` with the `IP_ADD_SOURCE_MEMBERSHIP` socket - * option. If the `multicastInterface` argument - * is not specified, the operating system will choose one interface and will add - * membership to it. To add membership to every available interface, call `socket.addSourceSpecificMembership()` multiple times, once per interface. - * - * When called on an unbound socket, this method will implicitly bind to a random - * port, listening on all interfaces. - * @since v13.1.0, v12.16.0 - */ - addSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void; - /** - * Instructs the kernel to leave a source-specific multicast channel at the given `sourceAddress` and `groupAddress` using the `IP_DROP_SOURCE_MEMBERSHIP` socket option. This method is - * automatically called by the kernel when the - * socket is closed or the process terminates, so most apps will never have - * reason to call this. - * - * If `multicastInterface` is not specified, the operating system will attempt to - * drop membership on all valid interfaces. - * @since v13.1.0, v12.16.0 - */ - dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void; - /** - * events.EventEmitter - * 1. close - * 2. connect - * 3. error - * 4. listening - * 5. message - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "connect", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "listening", listener: () => void): this; - addListener(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "close"): boolean; - emit(event: "connect"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "listening"): boolean; - emit(event: "message", msg: NonSharedBuffer, rinfo: RemoteInfo): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: () => void): this; - on(event: "connect", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "listening", listener: () => void): this; - on(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "connect", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "listening", listener: () => void): this; - once(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "connect", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "listening", listener: () => void): this; - prependListener(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "connect", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "listening", listener: () => void): this; - prependOnceListener(event: "message", listener: (msg: NonSharedBuffer, rinfo: RemoteInfo) => void): this; - /** - * Calls `socket.close()` and returns a promise that fulfills when the socket has closed. - * @since v20.5.0 - */ - [Symbol.asyncDispose](): Promise; - } -} -declare module "node:dgram" { - export * from "dgram"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/diagnostics_channel.d.ts b/build_vtk_bundle/node_modules/@types/node/diagnostics_channel.d.ts deleted file mode 100644 index 025847de..00000000 --- a/build_vtk_bundle/node_modules/@types/node/diagnostics_channel.d.ts +++ /dev/null @@ -1,576 +0,0 @@ -/** - * The `node:diagnostics_channel` module provides an API to create named channels - * to report arbitrary message data for diagnostics purposes. - * - * It can be accessed using: - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * ``` - * - * It is intended that a module writer wanting to report diagnostics messages - * will create one or many top-level channels to report messages through. - * Channels may also be acquired at runtime but it is not encouraged - * due to the additional overhead of doing so. Channels may be exported for - * convenience, but as long as the name is known it can be acquired anywhere. - * - * If you intend for your module to produce diagnostics data for others to - * consume it is recommended that you include documentation of what named - * channels are used along with the shape of the message data. Channel names - * should generally include the module name to avoid collisions with data from - * other modules. - * @since v15.1.0, v14.17.0 - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/diagnostics_channel.js) - */ -declare module "diagnostics_channel" { - import { AsyncLocalStorage } from "node:async_hooks"; - /** - * Check if there are active subscribers to the named channel. This is helpful if - * the message you want to send might be expensive to prepare. - * - * This API is optional but helpful when trying to publish messages from very - * performance-sensitive code. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * if (diagnostics_channel.hasSubscribers('my-channel')) { - * // There are subscribers, prepare and publish message - * } - * ``` - * @since v15.1.0, v14.17.0 - * @param name The channel name - * @return If there are active subscribers - */ - function hasSubscribers(name: string | symbol): boolean; - /** - * This is the primary entry-point for anyone wanting to publish to a named - * channel. It produces a channel object which is optimized to reduce overhead at - * publish time as much as possible. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channel = diagnostics_channel.channel('my-channel'); - * ``` - * @since v15.1.0, v14.17.0 - * @param name The channel name - * @return The named channel object - */ - function channel(name: string | symbol): Channel; - type ChannelListener = (message: unknown, name: string | symbol) => void; - /** - * Register a message handler to subscribe to this channel. This message handler - * will be run synchronously whenever a message is published to the channel. Any - * errors thrown in the message handler will trigger an `'uncaughtException'`. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * diagnostics_channel.subscribe('my-channel', (message, name) => { - * // Received data - * }); - * ``` - * @since v18.7.0, v16.17.0 - * @param name The channel name - * @param onMessage The handler to receive channel messages - */ - function subscribe(name: string | symbol, onMessage: ChannelListener): void; - /** - * Remove a message handler previously registered to this channel with {@link subscribe}. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * function onMessage(message, name) { - * // Received data - * } - * - * diagnostics_channel.subscribe('my-channel', onMessage); - * - * diagnostics_channel.unsubscribe('my-channel', onMessage); - * ``` - * @since v18.7.0, v16.17.0 - * @param name The channel name - * @param onMessage The previous subscribed handler to remove - * @return `true` if the handler was found, `false` otherwise. - */ - function unsubscribe(name: string | symbol, onMessage: ChannelListener): boolean; - /** - * Creates a `TracingChannel` wrapper for the given `TracingChannel Channels`. If a name is given, the corresponding tracing - * channels will be created in the form of `tracing:${name}:${eventType}` where `eventType` corresponds to the types of `TracingChannel Channels`. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channelsByName = diagnostics_channel.tracingChannel('my-channel'); - * - * // or... - * - * const channelsByCollection = diagnostics_channel.tracingChannel({ - * start: diagnostics_channel.channel('tracing:my-channel:start'), - * end: diagnostics_channel.channel('tracing:my-channel:end'), - * asyncStart: diagnostics_channel.channel('tracing:my-channel:asyncStart'), - * asyncEnd: diagnostics_channel.channel('tracing:my-channel:asyncEnd'), - * error: diagnostics_channel.channel('tracing:my-channel:error'), - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param nameOrChannels Channel name or object containing all the `TracingChannel Channels` - * @return Collection of channels to trace with - */ - function tracingChannel< - StoreType = unknown, - ContextType extends object = StoreType extends object ? StoreType : object, - >( - nameOrChannels: string | TracingChannelCollection, - ): TracingChannel; - /** - * The class `Channel` represents an individual named channel within the data - * pipeline. It is used to track subscribers and to publish messages when there - * are subscribers present. It exists as a separate object to avoid channel - * lookups at publish time, enabling very fast publish speeds and allowing - * for heavy use while incurring very minimal cost. Channels are created with {@link channel}, constructing a channel directly - * with `new Channel(name)` is not supported. - * @since v15.1.0, v14.17.0 - */ - class Channel { - readonly name: string | symbol; - /** - * Check if there are active subscribers to this channel. This is helpful if - * the message you want to send might be expensive to prepare. - * - * This API is optional but helpful when trying to publish messages from very - * performance-sensitive code. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * if (channel.hasSubscribers) { - * // There are subscribers, prepare and publish message - * } - * ``` - * @since v15.1.0, v14.17.0 - */ - readonly hasSubscribers: boolean; - private constructor(name: string | symbol); - /** - * Publish a message to any subscribers to the channel. This will trigger - * message handlers synchronously so they will execute within the same context. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * channel.publish({ - * some: 'message', - * }); - * ``` - * @since v15.1.0, v14.17.0 - * @param message The message to send to the channel subscribers - */ - publish(message: unknown): void; - /** - * Register a message handler to subscribe to this channel. This message handler - * will be run synchronously whenever a message is published to the channel. Any - * errors thrown in the message handler will trigger an `'uncaughtException'`. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * channel.subscribe((message, name) => { - * // Received data - * }); - * ``` - * @since v15.1.0, v14.17.0 - * @param onMessage The handler to receive channel messages - */ - subscribe(onMessage: ChannelListener): void; - /** - * Remove a message handler previously registered to this channel with `channel.subscribe(onMessage)`. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * function onMessage(message, name) { - * // Received data - * } - * - * channel.subscribe(onMessage); - * - * channel.unsubscribe(onMessage); - * ``` - * @since v15.1.0, v14.17.0 - * @param onMessage The previous subscribed handler to remove - * @return `true` if the handler was found, `false` otherwise. - */ - unsubscribe(onMessage: ChannelListener): void; - /** - * When `channel.runStores(context, ...)` is called, the given context data - * will be applied to any store bound to the channel. If the store has already been - * bound the previous `transform` function will be replaced with the new one. - * The `transform` function may be omitted to set the given context data as the - * context directly. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * import { AsyncLocalStorage } from 'node:async_hooks'; - * - * const store = new AsyncLocalStorage(); - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * channel.bindStore(store, (data) => { - * return { data }; - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param store The store to which to bind the context data - * @param transform Transform context data before setting the store context - */ - bindStore(store: AsyncLocalStorage, transform?: (context: ContextType) => StoreType): void; - /** - * Remove a message handler previously registered to this channel with `channel.bindStore(store)`. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * import { AsyncLocalStorage } from 'node:async_hooks'; - * - * const store = new AsyncLocalStorage(); - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * channel.bindStore(store); - * channel.unbindStore(store); - * ``` - * @since v19.9.0 - * @experimental - * @param store The store to unbind from the channel. - * @return `true` if the store was found, `false` otherwise. - */ - unbindStore(store: AsyncLocalStorage): boolean; - /** - * Applies the given data to any AsyncLocalStorage instances bound to the channel - * for the duration of the given function, then publishes to the channel within - * the scope of that data is applied to the stores. - * - * If a transform function was given to `channel.bindStore(store)` it will be - * applied to transform the message data before it becomes the context value for - * the store. The prior storage context is accessible from within the transform - * function in cases where context linking is required. - * - * The context applied to the store should be accessible in any async code which - * continues from execution which began during the given function, however - * there are some situations in which `context loss` may occur. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * import { AsyncLocalStorage } from 'node:async_hooks'; - * - * const store = new AsyncLocalStorage(); - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * channel.bindStore(store, (message) => { - * const parent = store.getStore(); - * return new Span(message, parent); - * }); - * channel.runStores({ some: 'message' }, () => { - * store.getStore(); // Span({ some: 'message' }) - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param context Message to send to subscribers and bind to stores - * @param fn Handler to run within the entered storage context - * @param thisArg The receiver to be used for the function call. - * @param args Optional arguments to pass to the function. - */ - runStores( - context: ContextType, - fn: (this: ThisArg, ...args: Args) => Result, - thisArg?: ThisArg, - ...args: Args - ): Result; - } - interface TracingChannelSubscribers { - start: (message: ContextType) => void; - end: ( - message: ContextType & { - error?: unknown; - result?: unknown; - }, - ) => void; - asyncStart: ( - message: ContextType & { - error?: unknown; - result?: unknown; - }, - ) => void; - asyncEnd: ( - message: ContextType & { - error?: unknown; - result?: unknown; - }, - ) => void; - error: ( - message: ContextType & { - error: unknown; - }, - ) => void; - } - interface TracingChannelCollection { - start: Channel; - end: Channel; - asyncStart: Channel; - asyncEnd: Channel; - error: Channel; - } - /** - * The class `TracingChannel` is a collection of `TracingChannel Channels` which - * together express a single traceable action. It is used to formalize and - * simplify the process of producing events for tracing application flow. {@link tracingChannel} is used to construct a `TracingChannel`. As with `Channel` it is recommended to create and reuse a - * single `TracingChannel` at the top-level of the file rather than creating them - * dynamically. - * @since v19.9.0 - * @experimental - */ - class TracingChannel implements TracingChannelCollection { - start: Channel; - end: Channel; - asyncStart: Channel; - asyncEnd: Channel; - error: Channel; - /** - * Helper to subscribe a collection of functions to the corresponding channels. - * This is the same as calling `channel.subscribe(onMessage)` on each channel - * individually. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * - * channels.subscribe({ - * start(message) { - * // Handle start message - * }, - * end(message) { - * // Handle end message - * }, - * asyncStart(message) { - * // Handle asyncStart message - * }, - * asyncEnd(message) { - * // Handle asyncEnd message - * }, - * error(message) { - * // Handle error message - * }, - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param subscribers Set of `TracingChannel Channels` subscribers - */ - subscribe(subscribers: TracingChannelSubscribers): void; - /** - * Helper to unsubscribe a collection of functions from the corresponding channels. - * This is the same as calling `channel.unsubscribe(onMessage)` on each channel - * individually. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * - * channels.unsubscribe({ - * start(message) { - * // Handle start message - * }, - * end(message) { - * // Handle end message - * }, - * asyncStart(message) { - * // Handle asyncStart message - * }, - * asyncEnd(message) { - * // Handle asyncEnd message - * }, - * error(message) { - * // Handle error message - * }, - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param subscribers Set of `TracingChannel Channels` subscribers - * @return `true` if all handlers were successfully unsubscribed, and `false` otherwise. - */ - unsubscribe(subscribers: TracingChannelSubscribers): void; - /** - * Trace a synchronous function call. This will always produce a `start event` and `end event` around the execution and may produce an `error event` if the given function throws an error. - * This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all - * events should have any bound stores set to match this trace context. - * - * To ensure only correct trace graphs are formed, events will only be published if subscribers are present prior to starting the trace. Subscriptions - * which are added after the trace begins will not receive future events from that trace, only future traces will be seen. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * - * channels.traceSync(() => { - * // Do something - * }, { - * some: 'thing', - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param fn Function to wrap a trace around - * @param context Shared object to correlate events through - * @param thisArg The receiver to be used for the function call - * @param args Optional arguments to pass to the function - * @return The return value of the given function - */ - traceSync( - fn: (this: ThisArg, ...args: Args) => Result, - context?: ContextType, - thisArg?: ThisArg, - ...args: Args - ): Result; - /** - * Trace a promise-returning function call. This will always produce a `start event` and `end event` around the synchronous portion of the - * function execution, and will produce an `asyncStart event` and `asyncEnd event` when a promise continuation is reached. It may also - * produce an `error event` if the given function throws an error or the - * returned promise rejects. This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all - * events should have any bound stores set to match this trace context. - * - * To ensure only correct trace graphs are formed, events will only be published if subscribers are present prior to starting the trace. Subscriptions - * which are added after the trace begins will not receive future events from that trace, only future traces will be seen. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * - * channels.tracePromise(async () => { - * // Do something - * }, { - * some: 'thing', - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param fn Promise-returning function to wrap a trace around - * @param context Shared object to correlate trace events through - * @param thisArg The receiver to be used for the function call - * @param args Optional arguments to pass to the function - * @return Chained from promise returned by the given function - */ - tracePromise( - fn: (this: ThisArg, ...args: Args) => Promise, - context?: ContextType, - thisArg?: ThisArg, - ...args: Args - ): Promise; - /** - * Trace a callback-receiving function call. This will always produce a `start event` and `end event` around the synchronous portion of the - * function execution, and will produce a `asyncStart event` and `asyncEnd event` around the callback execution. It may also produce an `error event` if the given function throws an error or - * the returned - * promise rejects. This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all - * events should have any bound stores set to match this trace context. - * - * The `position` will be -1 by default to indicate the final argument should - * be used as the callback. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * - * channels.traceCallback((arg1, callback) => { - * // Do something - * callback(null, 'result'); - * }, 1, { - * some: 'thing', - * }, thisArg, arg1, callback); - * ``` - * - * The callback will also be run with `channel.runStores(context, ...)` which - * enables context loss recovery in some cases. - * - * To ensure only correct trace graphs are formed, events will only be published if subscribers are present prior to starting the trace. Subscriptions - * which are added after the trace begins will not receive future events from that trace, only future traces will be seen. - * - * ```js - * import diagnostics_channel from 'node:diagnostics_channel'; - * import { AsyncLocalStorage } from 'node:async_hooks'; - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * const myStore = new AsyncLocalStorage(); - * - * // The start channel sets the initial store data to something - * // and stores that store data value on the trace context object - * channels.start.bindStore(myStore, (data) => { - * const span = new Span(data); - * data.span = span; - * return span; - * }); - * - * // Then asyncStart can restore from that data it stored previously - * channels.asyncStart.bindStore(myStore, (data) => { - * return data.span; - * }); - * ``` - * @since v19.9.0 - * @experimental - * @param fn callback using function to wrap a trace around - * @param position Zero-indexed argument position of expected callback - * @param context Shared object to correlate trace events through - * @param thisArg The receiver to be used for the function call - * @param args Optional arguments to pass to the function - * @return The return value of the given function - */ - traceCallback( - fn: (this: ThisArg, ...args: Args) => Result, - position?: number, - context?: ContextType, - thisArg?: ThisArg, - ...args: Args - ): Result; - /** - * `true` if any of the individual channels has a subscriber, `false` if not. - * - * This is a helper method available on a {@link TracingChannel} instance to check - * if any of the [TracingChannel Channels](https://nodejs.org/api/diagnostics_channel.html#tracingchannel-channels) have subscribers. - * A `true` is returned if any of them have at least one subscriber, a `false` is returned otherwise. - * - * ```js - * const diagnostics_channel = require('node:diagnostics_channel'); - * - * const channels = diagnostics_channel.tracingChannel('my-channel'); - * - * if (channels.hasSubscribers) { - * // Do something - * } - * ``` - * @since v22.0.0, v20.13.0 - */ - readonly hasSubscribers: boolean; - } -} -declare module "node:diagnostics_channel" { - export * from "diagnostics_channel"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/dns.d.ts b/build_vtk_bundle/node_modules/@types/node/dns.d.ts deleted file mode 100644 index ba0d1221..00000000 --- a/build_vtk_bundle/node_modules/@types/node/dns.d.ts +++ /dev/null @@ -1,923 +0,0 @@ -/** - * The `node:dns` module enables name resolution. For example, use it to look up IP - * addresses of host names. - * - * Although named for the [Domain Name System (DNS)](https://en.wikipedia.org/wiki/Domain_Name_System), it does not always use the - * DNS protocol for lookups. {@link lookup} uses the operating system - * facilities to perform name resolution. It may not need to perform any network - * communication. To perform name resolution the way other applications on the same - * system do, use {@link lookup}. - * - * ```js - * import dns from 'node:dns'; - * - * dns.lookup('example.org', (err, address, family) => { - * console.log('address: %j family: IPv%s', address, family); - * }); - * // address: "93.184.216.34" family: IPv4 - * ``` - * - * All other functions in the `node:dns` module connect to an actual DNS server to - * perform name resolution. They will always use the network to perform DNS - * queries. These functions do not use the same set of configuration files used by {@link lookup} (e.g. `/etc/hosts`). Use these functions to always perform - * DNS queries, bypassing other name-resolution facilities. - * - * ```js - * import dns from 'node:dns'; - * - * dns.resolve4('archive.org', (err, addresses) => { - * if (err) throw err; - * - * console.log(`addresses: ${JSON.stringify(addresses)}`); - * - * addresses.forEach((a) => { - * dns.reverse(a, (err, hostnames) => { - * if (err) { - * throw err; - * } - * console.log(`reverse for ${a}: ${JSON.stringify(hostnames)}`); - * }); - * }); - * }); - * ``` - * - * See the [Implementation considerations section](https://nodejs.org/docs/latest-v24.x/api/dns.html#implementation-considerations) for more information. - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/dns.js) - */ -declare module "dns" { - import * as dnsPromises from "node:dns/promises"; - // Supported getaddrinfo flags. - /** - * Limits returned address types to the types of non-loopback addresses configured on the system. For example, IPv4 addresses are - * only returned if the current system has at least one IPv4 address configured. - */ - export const ADDRCONFIG: number; - /** - * If the IPv6 family was specified, but no IPv6 addresses were found, then return IPv4 mapped IPv6 addresses. It is not supported - * on some operating systems (e.g. FreeBSD 10.1). - */ - export const V4MAPPED: number; - /** - * If `dns.V4MAPPED` is specified, return resolved IPv6 addresses as - * well as IPv4 mapped IPv6 addresses. - */ - export const ALL: number; - export interface LookupOptions { - /** - * The record family. Must be `4`, `6`, or `0`. For backward compatibility reasons, `'IPv4'` and `'IPv6'` are interpreted - * as `4` and `6` respectively. The value 0 indicates that either an IPv4 or IPv6 address is returned. If the value `0` is used - * with `{ all: true } (see below)`, both IPv4 and IPv6 addresses are returned. - * @default 0 - */ - family?: number | "IPv4" | "IPv6" | undefined; - /** - * One or more [supported `getaddrinfo`](https://nodejs.org/docs/latest-v24.x/api/dns.html#supported-getaddrinfo-flags) flags. Multiple flags may be - * passed by bitwise `OR`ing their values. - */ - hints?: number | undefined; - /** - * When `true`, the callback returns all resolved addresses in an array. Otherwise, returns a single address. - * @default false - */ - all?: boolean | undefined; - /** - * When `verbatim`, the resolved addresses are return unsorted. When `ipv4first`, the resolved addresses are sorted - * by placing IPv4 addresses before IPv6 addresses. When `ipv6first`, the resolved addresses are sorted by placing IPv6 - * addresses before IPv4 addresses. Default value is configurable using - * {@link setDefaultResultOrder} or [`--dns-result-order`](https://nodejs.org/docs/latest-v24.x/api/cli.html#--dns-result-orderorder). - * @default `verbatim` (addresses are not reordered) - * @since v22.1.0 - */ - order?: "ipv4first" | "ipv6first" | "verbatim" | undefined; - /** - * When `true`, the callback receives IPv4 and IPv6 addresses in the order the DNS resolver returned them. When `false`, IPv4 - * addresses are placed before IPv6 addresses. This option will be deprecated in favor of `order`. When both are specified, - * `order` has higher precedence. New code should only use `order`. Default value is configurable using {@link setDefaultResultOrder} - * @default true (addresses are not reordered) - * @deprecated Please use `order` option - */ - verbatim?: boolean | undefined; - } - export interface LookupOneOptions extends LookupOptions { - all?: false | undefined; - } - export interface LookupAllOptions extends LookupOptions { - all: true; - } - export interface LookupAddress { - /** - * A string representation of an IPv4 or IPv6 address. - */ - address: string; - /** - * `4` or `6`, denoting the family of `address`, or `0` if the address is not an IPv4 or IPv6 address. `0` is a likely indicator of a - * bug in the name resolution service used by the operating system. - */ - family: number; - } - /** - * Resolves a host name (e.g. `'nodejs.org'`) into the first found A (IPv4) or - * AAAA (IPv6) record. All `option` properties are optional. If `options` is an - * integer, then it must be `4` or `6` – if `options` is `0` or not provided, then - * IPv4 and IPv6 addresses are both returned if found. - * - * With the `all` option set to `true`, the arguments for `callback` change to `(err, addresses)`, with `addresses` being an array of objects with the - * properties `address` and `family`. - * - * On error, `err` is an `Error` object, where `err.code` is the error code. - * Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when - * the host name does not exist but also when the lookup fails in other ways - * such as no available file descriptors. - * - * `dns.lookup()` does not necessarily have anything to do with the DNS protocol. - * The implementation uses an operating system facility that can associate names - * with addresses and vice versa. This implementation can have subtle but - * important consequences on the behavior of any Node.js program. Please take some - * time to consult the [Implementation considerations section](https://nodejs.org/docs/latest-v24.x/api/dns.html#implementation-considerations) - * before using `dns.lookup()`. - * - * Example usage: - * - * ```js - * import dns from 'node:dns'; - * const options = { - * family: 6, - * hints: dns.ADDRCONFIG | dns.V4MAPPED, - * }; - * dns.lookup('example.com', options, (err, address, family) => - * console.log('address: %j family: IPv%s', address, family)); - * // address: "2606:2800:220:1:248:1893:25c8:1946" family: IPv6 - * - * // When options.all is true, the result will be an Array. - * options.all = true; - * dns.lookup('example.com', options, (err, addresses) => - * console.log('addresses: %j', addresses)); - * // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}] - * ``` - * - * If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-v24.x/api/util.html#utilpromisifyoriginal) ed - * version, and `all` is not set to `true`, it returns a `Promise` for an `Object` with `address` and `family` properties. - * @since v0.1.90 - */ - export function lookup( - hostname: string, - family: number, - callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void, - ): void; - export function lookup( - hostname: string, - options: LookupOneOptions, - callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void, - ): void; - export function lookup( - hostname: string, - options: LookupAllOptions, - callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void, - ): void; - export function lookup( - hostname: string, - options: LookupOptions, - callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void, - ): void; - export function lookup( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void, - ): void; - export namespace lookup { - function __promisify__(hostname: string, options: LookupAllOptions): Promise; - function __promisify__(hostname: string, options?: LookupOneOptions | number): Promise; - function __promisify__(hostname: string, options: LookupOptions): Promise; - } - /** - * Resolves the given `address` and `port` into a host name and service using - * the operating system's underlying `getnameinfo` implementation. - * - * If `address` is not a valid IP address, a `TypeError` will be thrown. - * The `port` will be coerced to a number. If it is not a legal port, a `TypeError` will be thrown. - * - * On an error, `err` is an [`Error`](https://nodejs.org/docs/latest-v24.x/api/errors.html#class-error) object, - * where `err.code` is the error code. - * - * ```js - * import dns from 'node:dns'; - * dns.lookupService('127.0.0.1', 22, (err, hostname, service) => { - * console.log(hostname, service); - * // Prints: localhost ssh - * }); - * ``` - * - * If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-v24.x/api/util.html#utilpromisifyoriginal) ed - * version, it returns a `Promise` for an `Object` with `hostname` and `service` properties. - * @since v0.11.14 - */ - export function lookupService( - address: string, - port: number, - callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void, - ): void; - export namespace lookupService { - function __promisify__( - address: string, - port: number, - ): Promise<{ - hostname: string; - service: string; - }>; - } - export interface ResolveOptions { - ttl: boolean; - } - export interface ResolveWithTtlOptions extends ResolveOptions { - ttl: true; - } - export interface RecordWithTtl { - address: string; - ttl: number; - } - /** @deprecated Use `AnyARecord` or `AnyAaaaRecord` instead. */ - export type AnyRecordWithTtl = AnyARecord | AnyAaaaRecord; - export interface AnyARecord extends RecordWithTtl { - type: "A"; - } - export interface AnyAaaaRecord extends RecordWithTtl { - type: "AAAA"; - } - export interface CaaRecord { - critical: number; - issue?: string | undefined; - issuewild?: string | undefined; - iodef?: string | undefined; - contactemail?: string | undefined; - contactphone?: string | undefined; - } - export interface AnyCaaRecord extends CaaRecord { - type: "CAA"; - } - export interface MxRecord { - priority: number; - exchange: string; - } - export interface AnyMxRecord extends MxRecord { - type: "MX"; - } - export interface NaptrRecord { - flags: string; - service: string; - regexp: string; - replacement: string; - order: number; - preference: number; - } - export interface AnyNaptrRecord extends NaptrRecord { - type: "NAPTR"; - } - export interface SoaRecord { - nsname: string; - hostmaster: string; - serial: number; - refresh: number; - retry: number; - expire: number; - minttl: number; - } - export interface AnySoaRecord extends SoaRecord { - type: "SOA"; - } - export interface SrvRecord { - priority: number; - weight: number; - port: number; - name: string; - } - export interface AnySrvRecord extends SrvRecord { - type: "SRV"; - } - export interface TlsaRecord { - certUsage: number; - selector: number; - match: number; - data: ArrayBuffer; - } - export interface AnyTlsaRecord extends TlsaRecord { - type: "TLSA"; - } - export interface AnyTxtRecord { - type: "TXT"; - entries: string[]; - } - export interface AnyNsRecord { - type: "NS"; - value: string; - } - export interface AnyPtrRecord { - type: "PTR"; - value: string; - } - export interface AnyCnameRecord { - type: "CNAME"; - value: string; - } - export type AnyRecord = - | AnyARecord - | AnyAaaaRecord - | AnyCaaRecord - | AnyCnameRecord - | AnyMxRecord - | AnyNaptrRecord - | AnyNsRecord - | AnyPtrRecord - | AnySoaRecord - | AnySrvRecord - | AnyTlsaRecord - | AnyTxtRecord; - /** - * Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array - * of the resource records. The `callback` function has arguments `(err, records)`. When successful, `records` will be an array of resource - * records. The type and structure of individual results varies based on `rrtype`: - * - * - * - * On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v24.x/api/errors.html#class-error) object, - * where `err.code` is one of the `DNS error codes`. - * @since v0.1.27 - * @param hostname Host name to resolve. - * @param [rrtype='A'] Resource record type. - */ - export function resolve( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR", - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "ANY", - callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "CAA", - callback: (err: NodeJS.ErrnoException | null, address: CaaRecord[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "MX", - callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "NAPTR", - callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "SOA", - callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "SRV", - callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "TLSA", - callback: (err: NodeJS.ErrnoException | null, addresses: TlsaRecord[]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: "TXT", - callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void, - ): void; - export function resolve( - hostname: string, - rrtype: string, - callback: ( - err: NodeJS.ErrnoException | null, - addresses: - | string[] - | CaaRecord[] - | MxRecord[] - | NaptrRecord[] - | SoaRecord - | SrvRecord[] - | TlsaRecord[] - | string[][] - | AnyRecord[], - ) => void, - ): void; - export namespace resolve { - function __promisify__(hostname: string, rrtype?: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise; - function __promisify__(hostname: string, rrtype: "ANY"): Promise; - function __promisify__(hostname: string, rrtype: "CAA"): Promise; - function __promisify__(hostname: string, rrtype: "MX"): Promise; - function __promisify__(hostname: string, rrtype: "NAPTR"): Promise; - function __promisify__(hostname: string, rrtype: "SOA"): Promise; - function __promisify__(hostname: string, rrtype: "SRV"): Promise; - function __promisify__(hostname: string, rrtype: "TLSA"): Promise; - function __promisify__(hostname: string, rrtype: "TXT"): Promise; - function __promisify__( - hostname: string, - rrtype: string, - ): Promise< - | string[] - | CaaRecord[] - | MxRecord[] - | NaptrRecord[] - | SoaRecord - | SrvRecord[] - | TlsaRecord[] - | string[][] - | AnyRecord[] - >; - } - /** - * Uses the DNS protocol to resolve a IPv4 addresses (`A` records) for the `hostname`. The `addresses` argument passed to the `callback` function - * will contain an array of IPv4 addresses (e.g.`['74.125.79.104', '74.125.79.105', '74.125.79.106']`). - * @since v0.1.16 - * @param hostname Host name to resolve. - */ - export function resolve4( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export function resolve4( - hostname: string, - options: ResolveWithTtlOptions, - callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void, - ): void; - export function resolve4( - hostname: string, - options: ResolveOptions, - callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void, - ): void; - export namespace resolve4 { - function __promisify__(hostname: string): Promise; - function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise; - function __promisify__(hostname: string, options?: ResolveOptions): Promise; - } - /** - * Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the `hostname`. The `addresses` argument passed to the `callback` function - * will contain an array of IPv6 addresses. - * @since v0.1.16 - * @param hostname Host name to resolve. - */ - export function resolve6( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export function resolve6( - hostname: string, - options: ResolveWithTtlOptions, - callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void, - ): void; - export function resolve6( - hostname: string, - options: ResolveOptions, - callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void, - ): void; - export namespace resolve6 { - function __promisify__(hostname: string): Promise; - function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise; - function __promisify__(hostname: string, options?: ResolveOptions): Promise; - } - /** - * Uses the DNS protocol to resolve `CNAME` records for the `hostname`. The `addresses` argument passed to the `callback` function - * will contain an array of canonical name records available for the `hostname` (e.g. `['bar.example.com']`). - * @since v0.3.2 - */ - export function resolveCname( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export namespace resolveCname { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve `CAA` records for the `hostname`. The `addresses` argument passed to the `callback` function - * will contain an array of certification authority authorization records - * available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'}, {critical: 128, issue: 'pki.example.com'}]`). - * @since v15.0.0, v14.17.0 - */ - export function resolveCaa( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, records: CaaRecord[]) => void, - ): void; - export namespace resolveCaa { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve mail exchange records (`MX` records) for the `hostname`. The `addresses` argument passed to the `callback` function will - * contain an array of objects containing both a `priority` and `exchange` property (e.g. `[{priority: 10, exchange: 'mx.example.com'}, ...]`). - * @since v0.1.27 - */ - export function resolveMx( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void, - ): void; - export namespace resolveMx { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve regular expression-based records (`NAPTR` records) for the `hostname`. The `addresses` argument passed to the `callback` function will contain an array of - * objects with the following properties: - * - * * `flags` - * * `service` - * * `regexp` - * * `replacement` - * * `order` - * * `preference` - * - * ```js - * { - * flags: 's', - * service: 'SIP+D2U', - * regexp: '', - * replacement: '_sip._udp.example.com', - * order: 30, - * preference: 100 - * } - * ``` - * @since v0.9.12 - */ - export function resolveNaptr( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void, - ): void; - export namespace resolveNaptr { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve name server records (`NS` records) for the `hostname`. The `addresses` argument passed to the `callback` function will - * contain an array of name server records available for `hostname` (e.g. `['ns1.example.com', 'ns2.example.com']`). - * @since v0.1.90 - */ - export function resolveNs( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export namespace resolveNs { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve pointer records (`PTR` records) for the `hostname`. The `addresses` argument passed to the `callback` function will - * be an array of strings containing the reply records. - * @since v6.0.0 - */ - export function resolvePtr( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, - ): void; - export namespace resolvePtr { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve a start of authority record (`SOA` record) for - * the `hostname`. The `address` argument passed to the `callback` function will - * be an object with the following properties: - * - * * `nsname` - * * `hostmaster` - * * `serial` - * * `refresh` - * * `retry` - * * `expire` - * * `minttl` - * - * ```js - * { - * nsname: 'ns.example.com', - * hostmaster: 'root.example.com', - * serial: 2013101809, - * refresh: 10000, - * retry: 2400, - * expire: 604800, - * minttl: 3600 - * } - * ``` - * @since v0.11.10 - */ - export function resolveSoa( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void, - ): void; - export namespace resolveSoa { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve service records (`SRV` records) for the `hostname`. The `addresses` argument passed to the `callback` function will - * be an array of objects with the following properties: - * - * * `priority` - * * `weight` - * * `port` - * * `name` - * - * ```js - * { - * priority: 10, - * weight: 5, - * port: 21223, - * name: 'service.example.com' - * } - * ``` - * @since v0.1.27 - */ - export function resolveSrv( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void, - ): void; - export namespace resolveSrv { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve certificate associations (`TLSA` records) for - * the `hostname`. The `records` argument passed to the `callback` function is an - * array of objects with these properties: - * - * * `certUsage` - * * `selector` - * * `match` - * * `data` - * - * ```js - * { - * certUsage: 3, - * selector: 1, - * match: 1, - * data: [ArrayBuffer] - * } - * ``` - * @since v23.9.0, v22.15.0 - */ - export function resolveTlsa( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: TlsaRecord[]) => void, - ): void; - export namespace resolveTlsa { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve text queries (`TXT` records) for the `hostname`. The `records` argument passed to the `callback` function is a - * two-dimensional array of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of - * one record. Depending on the use case, these could be either joined together or - * treated separately. - * @since v0.1.27 - */ - export function resolveTxt( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void, - ): void; - export namespace resolveTxt { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query). - * The `ret` argument passed to the `callback` function will be an array containing - * various types of records. Each object has a property `type` that indicates the - * type of the current record. And depending on the `type`, additional properties - * will be present on the object: - * - * - * - * Here is an example of the `ret` object passed to the callback: - * - * ```js - * [ { type: 'A', address: '127.0.0.1', ttl: 299 }, - * { type: 'CNAME', value: 'example.com' }, - * { type: 'MX', exchange: 'alt4.aspmx.l.example.com', priority: 50 }, - * { type: 'NS', value: 'ns1.example.com' }, - * { type: 'TXT', entries: [ 'v=spf1 include:_spf.example.com ~all' ] }, - * { type: 'SOA', - * nsname: 'ns1.example.com', - * hostmaster: 'admin.example.com', - * serial: 156696742, - * refresh: 900, - * retry: 900, - * expire: 1800, - * minttl: 60 } ] - * ``` - * - * DNS server operators may choose not to respond to `ANY` queries. It may be better to call individual methods like {@link resolve4}, {@link resolveMx}, and so on. For more details, see - * [RFC 8482](https://tools.ietf.org/html/rfc8482). - */ - export function resolveAny( - hostname: string, - callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void, - ): void; - export namespace resolveAny { - function __promisify__(hostname: string): Promise; - } - /** - * Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an - * array of host names. - * - * On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v24.x/api/errors.html#class-error) object, where `err.code` is - * one of the [DNS error codes](https://nodejs.org/docs/latest-v24.x/api/dns.html#error-codes). - * @since v0.1.16 - */ - export function reverse( - ip: string, - callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void, - ): void; - /** - * Get the default value for `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v24.x/api/dns.html#dnspromiseslookuphostname-options). - * The value could be: - * - * * `ipv4first`: for `order` defaulting to `ipv4first`. - * * `ipv6first`: for `order` defaulting to `ipv6first`. - * * `verbatim`: for `order` defaulting to `verbatim`. - * @since v18.17.0 - */ - export function getDefaultResultOrder(): "ipv4first" | "ipv6first" | "verbatim"; - /** - * Sets the IP address and port of servers to be used when performing DNS - * resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted - * addresses. If the port is the IANA default DNS port (53) it can be omitted. - * - * ```js - * dns.setServers([ - * '4.4.4.4', - * '[2001:4860:4860::8888]', - * '4.4.4.4:1053', - * '[2001:4860:4860::8888]:1053', - * ]); - * ``` - * - * An error will be thrown if an invalid address is provided. - * - * The `dns.setServers()` method must not be called while a DNS query is in - * progress. - * - * The {@link setServers} method affects only {@link resolve}, `dns.resolve*()` and {@link reverse} (and specifically _not_ {@link lookup}). - * - * This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html). - * That is, if attempting to resolve with the first server provided results in a `NOTFOUND` error, the `resolve()` method will _not_ attempt to resolve with - * subsequent servers provided. Fallback DNS servers will only be used if the - * earlier ones time out or result in some other error. - * @since v0.11.3 - * @param servers array of [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952#section-6) formatted addresses - */ - export function setServers(servers: readonly string[]): void; - /** - * Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6), - * that are currently configured for DNS resolution. A string will include a port - * section if a custom port is used. - * - * ```js - * [ - * '4.4.4.4', - * '2001:4860:4860::8888', - * '4.4.4.4:1053', - * '[2001:4860:4860::8888]:1053', - * ] - * ``` - * @since v0.11.3 - */ - export function getServers(): string[]; - /** - * Set the default value of `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v24.x/api/dns.html#dnspromiseslookuphostname-options). - * The value could be: - * - * * `ipv4first`: sets default `order` to `ipv4first`. - * * `ipv6first`: sets default `order` to `ipv6first`. - * * `verbatim`: sets default `order` to `verbatim`. - * - * The default is `verbatim` and {@link setDefaultResultOrder} have higher - * priority than [`--dns-result-order`](https://nodejs.org/docs/latest-v24.x/api/cli.html#--dns-result-orderorder). When using - * [worker threads](https://nodejs.org/docs/latest-v24.x/api/worker_threads.html), {@link setDefaultResultOrder} from the main - * thread won't affect the default dns orders in workers. - * @since v16.4.0, v14.18.0 - * @param order must be `'ipv4first'`, `'ipv6first'` or `'verbatim'`. - */ - export function setDefaultResultOrder(order: "ipv4first" | "ipv6first" | "verbatim"): void; - // Error codes - export const NODATA: "ENODATA"; - export const FORMERR: "EFORMERR"; - export const SERVFAIL: "ESERVFAIL"; - export const NOTFOUND: "ENOTFOUND"; - export const NOTIMP: "ENOTIMP"; - export const REFUSED: "EREFUSED"; - export const BADQUERY: "EBADQUERY"; - export const BADNAME: "EBADNAME"; - export const BADFAMILY: "EBADFAMILY"; - export const BADRESP: "EBADRESP"; - export const CONNREFUSED: "ECONNREFUSED"; - export const TIMEOUT: "ETIMEOUT"; - export const EOF: "EOF"; - export const FILE: "EFILE"; - export const NOMEM: "ENOMEM"; - export const DESTRUCTION: "EDESTRUCTION"; - export const BADSTR: "EBADSTR"; - export const BADFLAGS: "EBADFLAGS"; - export const NONAME: "ENONAME"; - export const BADHINTS: "EBADHINTS"; - export const NOTINITIALIZED: "ENOTINITIALIZED"; - export const LOADIPHLPAPI: "ELOADIPHLPAPI"; - export const ADDRGETNETWORKPARAMS: "EADDRGETNETWORKPARAMS"; - export const CANCELLED: "ECANCELLED"; - export interface ResolverOptions { - /** - * Query timeout in milliseconds, or `-1` to use the default timeout. - */ - timeout?: number | undefined; - /** - * The number of tries the resolver will try contacting each name server before giving up. - * @default 4 - */ - tries?: number | undefined; - /** - * The max retry timeout, in milliseconds. - * @default 0 - */ - maxTimeout?: number | undefined; - } - /** - * An independent resolver for DNS requests. - * - * Creating a new resolver uses the default server settings. Setting - * the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-v24.x/api/dns.html#dnssetserversservers) does not affect - * other resolvers: - * - * ```js - * import { Resolver } from 'node:dns'; - * const resolver = new Resolver(); - * resolver.setServers(['4.4.4.4']); - * - * // This request will use the server at 4.4.4.4, independent of global settings. - * resolver.resolve4('example.org', (err, addresses) => { - * // ... - * }); - * ``` - * - * The following methods from the `node:dns` module are available: - * - * * `resolver.getServers()` - * * `resolver.resolve()` - * * `resolver.resolve4()` - * * `resolver.resolve6()` - * * `resolver.resolveAny()` - * * `resolver.resolveCaa()` - * * `resolver.resolveCname()` - * * `resolver.resolveMx()` - * * `resolver.resolveNaptr()` - * * `resolver.resolveNs()` - * * `resolver.resolvePtr()` - * * `resolver.resolveSoa()` - * * `resolver.resolveSrv()` - * * `resolver.resolveTxt()` - * * `resolver.reverse()` - * * `resolver.setServers()` - * @since v8.3.0 - */ - export class Resolver { - constructor(options?: ResolverOptions); - /** - * Cancel all outstanding DNS queries made by this resolver. The corresponding - * callbacks will be called with an error with code `ECANCELLED`. - * @since v8.3.0 - */ - cancel(): void; - getServers: typeof getServers; - resolve: typeof resolve; - resolve4: typeof resolve4; - resolve6: typeof resolve6; - resolveAny: typeof resolveAny; - resolveCaa: typeof resolveCaa; - resolveCname: typeof resolveCname; - resolveMx: typeof resolveMx; - resolveNaptr: typeof resolveNaptr; - resolveNs: typeof resolveNs; - resolvePtr: typeof resolvePtr; - resolveSoa: typeof resolveSoa; - resolveSrv: typeof resolveSrv; - resolveTlsa: typeof resolveTlsa; - resolveTxt: typeof resolveTxt; - reverse: typeof reverse; - /** - * The resolver instance will send its requests from the specified IP address. - * This allows programs to specify outbound interfaces when used on multi-homed - * systems. - * - * If a v4 or v6 address is not specified, it is set to the default and the - * operating system will choose a local address automatically. - * - * The resolver will use the v4 local address when making requests to IPv4 DNS - * servers, and the v6 local address when making requests to IPv6 DNS servers. - * The `rrtype` of resolution requests has no impact on the local address used. - * @since v15.1.0, v14.17.0 - * @param [ipv4='0.0.0.0'] A string representation of an IPv4 address. - * @param [ipv6='::0'] A string representation of an IPv6 address. - */ - setLocalAddress(ipv4?: string, ipv6?: string): void; - setServers: typeof setServers; - } - export { dnsPromises as promises }; -} -declare module "node:dns" { - export * from "dns"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/dns/promises.d.ts b/build_vtk_bundle/node_modules/@types/node/dns/promises.d.ts deleted file mode 100644 index efb9fbfd..00000000 --- a/build_vtk_bundle/node_modules/@types/node/dns/promises.d.ts +++ /dev/null @@ -1,503 +0,0 @@ -/** - * The `dns.promises` API provides an alternative set of asynchronous DNS methods - * that return `Promise` objects rather than using callbacks. The API is accessible - * via `import { promises as dnsPromises } from 'node:dns'` or `import dnsPromises from 'node:dns/promises'`. - * @since v10.6.0 - */ -declare module "dns/promises" { - import { - AnyRecord, - CaaRecord, - LookupAddress, - LookupAllOptions, - LookupOneOptions, - LookupOptions, - MxRecord, - NaptrRecord, - RecordWithTtl, - ResolveOptions, - ResolverOptions, - ResolveWithTtlOptions, - SoaRecord, - SrvRecord, - TlsaRecord, - } from "node:dns"; - /** - * Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6), - * that are currently configured for DNS resolution. A string will include a port - * section if a custom port is used. - * - * ```js - * [ - * '4.4.4.4', - * '2001:4860:4860::8888', - * '4.4.4.4:1053', - * '[2001:4860:4860::8888]:1053', - * ] - * ``` - * @since v10.6.0 - */ - function getServers(): string[]; - /** - * Resolves a host name (e.g. `'nodejs.org'`) into the first found A (IPv4) or - * AAAA (IPv6) record. All `option` properties are optional. If `options` is an - * integer, then it must be `4` or `6` – if `options` is not provided, then IPv4 - * and IPv6 addresses are both returned if found. - * - * With the `all` option set to `true`, the `Promise` is resolved with `addresses` being an array of objects with the properties `address` and `family`. - * - * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is the error code. - * Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when - * the host name does not exist but also when the lookup fails in other ways - * such as no available file descriptors. - * - * [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options) does not necessarily have anything to do with the DNS - * protocol. The implementation uses an operating system facility that can - * associate names with addresses and vice versa. This implementation can have - * subtle but important consequences on the behavior of any Node.js program. Please - * take some time to consult the [Implementation considerations section](https://nodejs.org/docs/latest-v20.x/api/dns.html#implementation-considerations) before - * using `dnsPromises.lookup()`. - * - * Example usage: - * - * ```js - * import dns from 'node:dns'; - * const dnsPromises = dns.promises; - * const options = { - * family: 6, - * hints: dns.ADDRCONFIG | dns.V4MAPPED, - * }; - * - * dnsPromises.lookup('example.com', options).then((result) => { - * console.log('address: %j family: IPv%s', result.address, result.family); - * // address: "2606:2800:220:1:248:1893:25c8:1946" family: IPv6 - * }); - * - * // When options.all is true, the result will be an Array. - * options.all = true; - * dnsPromises.lookup('example.com', options).then((result) => { - * console.log('addresses: %j', result); - * // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}] - * }); - * ``` - * @since v10.6.0 - */ - function lookup(hostname: string, family: number): Promise; - function lookup(hostname: string, options: LookupOneOptions): Promise; - function lookup(hostname: string, options: LookupAllOptions): Promise; - function lookup(hostname: string, options: LookupOptions): Promise; - function lookup(hostname: string): Promise; - /** - * Resolves the given `address` and `port` into a host name and service using - * the operating system's underlying `getnameinfo` implementation. - * - * If `address` is not a valid IP address, a `TypeError` will be thrown. - * The `port` will be coerced to a number. If it is not a legal port, a `TypeError` will be thrown. - * - * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is the error code. - * - * ```js - * import dnsPromises from 'node:dns'; - * dnsPromises.lookupService('127.0.0.1', 22).then((result) => { - * console.log(result.hostname, result.service); - * // Prints: localhost ssh - * }); - * ``` - * @since v10.6.0 - */ - function lookupService( - address: string, - port: number, - ): Promise<{ - hostname: string; - service: string; - }>; - /** - * Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array - * of the resource records. When successful, the `Promise` is resolved with an - * array of resource records. The type and structure of individual results vary - * based on `rrtype`: - * - * - * - * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` - * is one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes). - * @since v10.6.0 - * @param hostname Host name to resolve. - * @param [rrtype='A'] Resource record type. - */ - function resolve(hostname: string): Promise; - function resolve(hostname: string, rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise; - function resolve(hostname: string, rrtype: "ANY"): Promise; - function resolve(hostname: string, rrtype: "CAA"): Promise; - function resolve(hostname: string, rrtype: "MX"): Promise; - function resolve(hostname: string, rrtype: "NAPTR"): Promise; - function resolve(hostname: string, rrtype: "SOA"): Promise; - function resolve(hostname: string, rrtype: "SRV"): Promise; - function resolve(hostname: string, rrtype: "TLSA"): Promise; - function resolve(hostname: string, rrtype: "TXT"): Promise; - function resolve(hostname: string, rrtype: string): Promise< - | string[] - | CaaRecord[] - | MxRecord[] - | NaptrRecord[] - | SoaRecord - | SrvRecord[] - | TlsaRecord[] - | string[][] - | AnyRecord[] - >; - /** - * Uses the DNS protocol to resolve IPv4 addresses (`A` records) for the `hostname`. On success, the `Promise` is resolved with an array of IPv4 - * addresses (e.g. `['74.125.79.104', '74.125.79.105', '74.125.79.106']`). - * @since v10.6.0 - * @param hostname Host name to resolve. - */ - function resolve4(hostname: string): Promise; - function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise; - function resolve4(hostname: string, options: ResolveOptions): Promise; - /** - * Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the `hostname`. On success, the `Promise` is resolved with an array of IPv6 - * addresses. - * @since v10.6.0 - * @param hostname Host name to resolve. - */ - function resolve6(hostname: string): Promise; - function resolve6(hostname: string, options: ResolveWithTtlOptions): Promise; - function resolve6(hostname: string, options: ResolveOptions): Promise; - /** - * Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query). - * On success, the `Promise` is resolved with an array containing various types of - * records. Each object has a property `type` that indicates the type of the - * current record. And depending on the `type`, additional properties will be - * present on the object: - * - * - * - * Here is an example of the result object: - * - * ```js - * [ { type: 'A', address: '127.0.0.1', ttl: 299 }, - * { type: 'CNAME', value: 'example.com' }, - * { type: 'MX', exchange: 'alt4.aspmx.l.example.com', priority: 50 }, - * { type: 'NS', value: 'ns1.example.com' }, - * { type: 'TXT', entries: [ 'v=spf1 include:_spf.example.com ~all' ] }, - * { type: 'SOA', - * nsname: 'ns1.example.com', - * hostmaster: 'admin.example.com', - * serial: 156696742, - * refresh: 900, - * retry: 900, - * expire: 1800, - * minttl: 60 } ] - * ``` - * @since v10.6.0 - */ - function resolveAny(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve `CAA` records for the `hostname`. On success, - * the `Promise` is resolved with an array of objects containing available - * certification authority authorization records available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'},{critical: 128, issue: 'pki.example.com'}]`). - * @since v15.0.0, v14.17.0 - */ - function resolveCaa(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve `CNAME` records for the `hostname`. On success, - * the `Promise` is resolved with an array of canonical name records available for - * the `hostname` (e.g. `['bar.example.com']`). - * @since v10.6.0 - */ - function resolveCname(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve mail exchange records (`MX` records) for the `hostname`. On success, the `Promise` is resolved with an array of objects - * containing both a `priority` and `exchange` property (e.g.`[{priority: 10, exchange: 'mx.example.com'}, ...]`). - * @since v10.6.0 - */ - function resolveMx(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve regular expression-based records (`NAPTR` records) for the `hostname`. On success, the `Promise` is resolved with an array - * of objects with the following properties: - * - * * `flags` - * * `service` - * * `regexp` - * * `replacement` - * * `order` - * * `preference` - * - * ```js - * { - * flags: 's', - * service: 'SIP+D2U', - * regexp: '', - * replacement: '_sip._udp.example.com', - * order: 30, - * preference: 100 - * } - * ``` - * @since v10.6.0 - */ - function resolveNaptr(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve name server records (`NS` records) for the `hostname`. On success, the `Promise` is resolved with an array of name server - * records available for `hostname` (e.g.`['ns1.example.com', 'ns2.example.com']`). - * @since v10.6.0 - */ - function resolveNs(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve pointer records (`PTR` records) for the `hostname`. On success, the `Promise` is resolved with an array of strings - * containing the reply records. - * @since v10.6.0 - */ - function resolvePtr(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve a start of authority record (`SOA` record) for - * the `hostname`. On success, the `Promise` is resolved with an object with the - * following properties: - * - * * `nsname` - * * `hostmaster` - * * `serial` - * * `refresh` - * * `retry` - * * `expire` - * * `minttl` - * - * ```js - * { - * nsname: 'ns.example.com', - * hostmaster: 'root.example.com', - * serial: 2013101809, - * refresh: 10000, - * retry: 2400, - * expire: 604800, - * minttl: 3600 - * } - * ``` - * @since v10.6.0 - */ - function resolveSoa(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve service records (`SRV` records) for the `hostname`. On success, the `Promise` is resolved with an array of objects with - * the following properties: - * - * * `priority` - * * `weight` - * * `port` - * * `name` - * - * ```js - * { - * priority: 10, - * weight: 5, - * port: 21223, - * name: 'service.example.com' - * } - * ``` - * @since v10.6.0 - */ - function resolveSrv(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve certificate associations (`TLSA` records) for - * the `hostname`. On success, the `Promise` is resolved with an array of objectsAdd commentMore actions - * with these properties: - * - * * `certUsage` - * * `selector` - * * `match` - * * `data` - * - * ```js - * { - * certUsage: 3, - * selector: 1, - * match: 1, - * data: [ArrayBuffer] - * } - * ``` - * @since v23.9.0, v22.15.0 - */ - function resolveTlsa(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve text queries (`TXT` records) for the `hostname`. On success, the `Promise` is resolved with a two-dimensional array - * of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of - * one record. Depending on the use case, these could be either joined together or - * treated separately. - * @since v10.6.0 - */ - function resolveTxt(hostname: string): Promise; - /** - * Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an - * array of host names. - * - * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` - * is one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes). - * @since v10.6.0 - */ - function reverse(ip: string): Promise; - /** - * Get the default value for `verbatim` in {@link lookup} and [dnsPromises.lookup()](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromiseslookuphostname-options). - * The value could be: - * - * * `ipv4first`: for `verbatim` defaulting to `false`. - * * `verbatim`: for `verbatim` defaulting to `true`. - * @since v20.1.0 - */ - function getDefaultResultOrder(): "ipv4first" | "verbatim"; - /** - * Sets the IP address and port of servers to be used when performing DNS - * resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted - * addresses. If the port is the IANA default DNS port (53) it can be omitted. - * - * ```js - * dnsPromises.setServers([ - * '4.4.4.4', - * '[2001:4860:4860::8888]', - * '4.4.4.4:1053', - * '[2001:4860:4860::8888]:1053', - * ]); - * ``` - * - * An error will be thrown if an invalid address is provided. - * - * The `dnsPromises.setServers()` method must not be called while a DNS query is in - * progress. - * - * This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html). - * That is, if attempting to resolve with the first server provided results in a `NOTFOUND` error, the `resolve()` method will _not_ attempt to resolve with - * subsequent servers provided. Fallback DNS servers will only be used if the - * earlier ones time out or result in some other error. - * @since v10.6.0 - * @param servers array of `RFC 5952` formatted addresses - */ - function setServers(servers: readonly string[]): void; - /** - * Set the default value of `order` in `dns.lookup()` and `{@link lookup}`. The value could be: - * - * * `ipv4first`: sets default `order` to `ipv4first`. - * * `ipv6first`: sets default `order` to `ipv6first`. - * * `verbatim`: sets default `order` to `verbatim`. - * - * The default is `verbatim` and [dnsPromises.setDefaultResultOrder()](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetdefaultresultorderorder) - * have higher priority than [`--dns-result-order`](https://nodejs.org/docs/latest-v20.x/api/cli.html#--dns-result-orderorder). - * When using [worker threads](https://nodejs.org/docs/latest-v20.x/api/worker_threads.html), [`dnsPromises.setDefaultResultOrder()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetdefaultresultorderorder) - * from the main thread won't affect the default dns orders in workers. - * @since v16.4.0, v14.18.0 - * @param order must be `'ipv4first'`, `'ipv6first'` or `'verbatim'`. - */ - function setDefaultResultOrder(order: "ipv4first" | "ipv6first" | "verbatim"): void; - // Error codes - const NODATA: "ENODATA"; - const FORMERR: "EFORMERR"; - const SERVFAIL: "ESERVFAIL"; - const NOTFOUND: "ENOTFOUND"; - const NOTIMP: "ENOTIMP"; - const REFUSED: "EREFUSED"; - const BADQUERY: "EBADQUERY"; - const BADNAME: "EBADNAME"; - const BADFAMILY: "EBADFAMILY"; - const BADRESP: "EBADRESP"; - const CONNREFUSED: "ECONNREFUSED"; - const TIMEOUT: "ETIMEOUT"; - const EOF: "EOF"; - const FILE: "EFILE"; - const NOMEM: "ENOMEM"; - const DESTRUCTION: "EDESTRUCTION"; - const BADSTR: "EBADSTR"; - const BADFLAGS: "EBADFLAGS"; - const NONAME: "ENONAME"; - const BADHINTS: "EBADHINTS"; - const NOTINITIALIZED: "ENOTINITIALIZED"; - const LOADIPHLPAPI: "ELOADIPHLPAPI"; - const ADDRGETNETWORKPARAMS: "EADDRGETNETWORKPARAMS"; - const CANCELLED: "ECANCELLED"; - - /** - * An independent resolver for DNS requests. - * - * Creating a new resolver uses the default server settings. Setting - * the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-v20.x/api/dns.html#dnspromisessetserversservers) does not affect - * other resolvers: - * - * ```js - * import { promises } from 'node:dns'; - * const resolver = new promises.Resolver(); - * resolver.setServers(['4.4.4.4']); - * - * // This request will use the server at 4.4.4.4, independent of global settings. - * resolver.resolve4('example.org').then((addresses) => { - * // ... - * }); - * - * // Alternatively, the same code can be written using async-await style. - * (async function() { - * const addresses = await resolver.resolve4('example.org'); - * })(); - * ``` - * - * The following methods from the `dnsPromises` API are available: - * - * * `resolver.getServers()` - * * `resolver.resolve()` - * * `resolver.resolve4()` - * * `resolver.resolve6()` - * * `resolver.resolveAny()` - * * `resolver.resolveCaa()` - * * `resolver.resolveCname()` - * * `resolver.resolveMx()` - * * `resolver.resolveNaptr()` - * * `resolver.resolveNs()` - * * `resolver.resolvePtr()` - * * `resolver.resolveSoa()` - * * `resolver.resolveSrv()` - * * `resolver.resolveTxt()` - * * `resolver.reverse()` - * * `resolver.setServers()` - * @since v10.6.0 - */ - class Resolver { - constructor(options?: ResolverOptions); - /** - * Cancel all outstanding DNS queries made by this resolver. The corresponding - * callbacks will be called with an error with code `ECANCELLED`. - * @since v8.3.0 - */ - cancel(): void; - getServers: typeof getServers; - resolve: typeof resolve; - resolve4: typeof resolve4; - resolve6: typeof resolve6; - resolveAny: typeof resolveAny; - resolveCaa: typeof resolveCaa; - resolveCname: typeof resolveCname; - resolveMx: typeof resolveMx; - resolveNaptr: typeof resolveNaptr; - resolveNs: typeof resolveNs; - resolvePtr: typeof resolvePtr; - resolveSoa: typeof resolveSoa; - resolveSrv: typeof resolveSrv; - resolveTlsa: typeof resolveTlsa; - resolveTxt: typeof resolveTxt; - reverse: typeof reverse; - /** - * The resolver instance will send its requests from the specified IP address. - * This allows programs to specify outbound interfaces when used on multi-homed - * systems. - * - * If a v4 or v6 address is not specified, it is set to the default and the - * operating system will choose a local address automatically. - * - * The resolver will use the v4 local address when making requests to IPv4 DNS - * servers, and the v6 local address when making requests to IPv6 DNS servers. - * The `rrtype` of resolution requests has no impact on the local address used. - * @since v15.1.0, v14.17.0 - * @param [ipv4='0.0.0.0'] A string representation of an IPv4 address. - * @param [ipv6='::0'] A string representation of an IPv6 address. - */ - setLocalAddress(ipv4?: string, ipv6?: string): void; - setServers: typeof setServers; - } -} -declare module "node:dns/promises" { - export * from "dns/promises"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/domain.d.ts b/build_vtk_bundle/node_modules/@types/node/domain.d.ts deleted file mode 100644 index 4c641153..00000000 --- a/build_vtk_bundle/node_modules/@types/node/domain.d.ts +++ /dev/null @@ -1,170 +0,0 @@ -/** - * **This module is pending deprecation.** Once a replacement API has been - * finalized, this module will be fully deprecated. Most developers should - * **not** have cause to use this module. Users who absolutely must have - * the functionality that domains provide may rely on it for the time being - * but should expect to have to migrate to a different solution - * in the future. - * - * Domains provide a way to handle multiple different IO operations as a - * single group. If any of the event emitters or callbacks registered to a - * domain emit an `'error'` event, or throw an error, then the domain object - * will be notified, rather than losing the context of the error in the `process.on('uncaughtException')` handler, or causing the program to - * exit immediately with an error code. - * @deprecated Since v1.4.2 - Deprecated - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/domain.js) - */ -declare module "domain" { - import EventEmitter = require("node:events"); - /** - * The `Domain` class encapsulates the functionality of routing errors and - * uncaught exceptions to the active `Domain` object. - * - * To handle the errors that it catches, listen to its `'error'` event. - */ - class Domain extends EventEmitter { - /** - * An array of timers and event emitters that have been explicitly added - * to the domain. - */ - members: Array; - /** - * The `enter()` method is plumbing used by the `run()`, `bind()`, and `intercept()` methods to set the active domain. It sets `domain.active` and `process.domain` to the domain, and implicitly - * pushes the domain onto the domain - * stack managed by the domain module (see {@link exit} for details on the - * domain stack). The call to `enter()` delimits the beginning of a chain of - * asynchronous calls and I/O operations bound to a domain. - * - * Calling `enter()` changes only the active domain, and does not alter the domain - * itself. `enter()` and `exit()` can be called an arbitrary number of times on a - * single domain. - */ - enter(): void; - /** - * The `exit()` method exits the current domain, popping it off the domain stack. - * Any time execution is going to switch to the context of a different chain of - * asynchronous calls, it's important to ensure that the current domain is exited. - * The call to `exit()` delimits either the end of or an interruption to the chain - * of asynchronous calls and I/O operations bound to a domain. - * - * If there are multiple, nested domains bound to the current execution context, `exit()` will exit any domains nested within this domain. - * - * Calling `exit()` changes only the active domain, and does not alter the domain - * itself. `enter()` and `exit()` can be called an arbitrary number of times on a - * single domain. - */ - exit(): void; - /** - * Run the supplied function in the context of the domain, implicitly - * binding all event emitters, timers, and low-level requests that are - * created in that context. Optionally, arguments can be passed to - * the function. - * - * This is the most basic way to use a domain. - * - * ```js - * import domain from 'node:domain'; - * import fs from 'node:fs'; - * const d = domain.create(); - * d.on('error', (er) => { - * console.error('Caught error!', er); - * }); - * d.run(() => { - * process.nextTick(() => { - * setTimeout(() => { // Simulating some various async stuff - * fs.open('non-existent file', 'r', (er, fd) => { - * if (er) throw er; - * // proceed... - * }); - * }, 100); - * }); - * }); - * ``` - * - * In this example, the `d.on('error')` handler will be triggered, rather - * than crashing the program. - */ - run(fn: (...args: any[]) => T, ...args: any[]): T; - /** - * Explicitly adds an emitter to the domain. If any event handlers called by - * the emitter throw an error, or if the emitter emits an `'error'` event, it - * will be routed to the domain's `'error'` event, just like with implicit - * binding. - * - * This also works with timers that are returned from `setInterval()` and `setTimeout()`. If their callback function throws, it will be caught by - * the domain `'error'` handler. - * - * If the Timer or `EventEmitter` was already bound to a domain, it is removed - * from that one, and bound to this one instead. - * @param emitter emitter or timer to be added to the domain - */ - add(emitter: EventEmitter | NodeJS.Timer): void; - /** - * The opposite of {@link add}. Removes domain handling from the - * specified emitter. - * @param emitter emitter or timer to be removed from the domain - */ - remove(emitter: EventEmitter | NodeJS.Timer): void; - /** - * The returned function will be a wrapper around the supplied callback - * function. When the returned function is called, any errors that are - * thrown will be routed to the domain's `'error'` event. - * - * ```js - * const d = domain.create(); - * - * function readSomeFile(filename, cb) { - * fs.readFile(filename, 'utf8', d.bind((er, data) => { - * // If this throws, it will also be passed to the domain. - * return cb(er, data ? JSON.parse(data) : null); - * })); - * } - * - * d.on('error', (er) => { - * // An error occurred somewhere. If we throw it now, it will crash the program - * // with the normal line number and stack message. - * }); - * ``` - * @param callback The callback function - * @return The bound function - */ - bind(callback: T): T; - /** - * This method is almost identical to {@link bind}. However, in - * addition to catching thrown errors, it will also intercept `Error` objects sent as the first argument to the function. - * - * In this way, the common `if (err) return callback(err);` pattern can be replaced - * with a single error handler in a single place. - * - * ```js - * const d = domain.create(); - * - * function readSomeFile(filename, cb) { - * fs.readFile(filename, 'utf8', d.intercept((data) => { - * // Note, the first argument is never passed to the - * // callback since it is assumed to be the 'Error' argument - * // and thus intercepted by the domain. - * - * // If this throws, it will also be passed to the domain - * // so the error-handling logic can be moved to the 'error' - * // event on the domain instead of being repeated throughout - * // the program. - * return cb(null, JSON.parse(data)); - * })); - * } - * - * d.on('error', (er) => { - * // An error occurred somewhere. If we throw it now, it will crash the program - * // with the normal line number and stack message. - * }); - * ``` - * @param callback The callback function - * @return The intercepted function - */ - intercept(callback: T): T; - } - function create(): Domain; -} -declare module "node:domain" { - export * from "domain"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/events.d.ts b/build_vtk_bundle/node_modules/@types/node/events.d.ts deleted file mode 100644 index 023348e0..00000000 --- a/build_vtk_bundle/node_modules/@types/node/events.d.ts +++ /dev/null @@ -1,976 +0,0 @@ -/** - * Much of the Node.js core API is built around an idiomatic asynchronous - * event-driven architecture in which certain kinds of objects (called "emitters") - * emit named events that cause `Function` objects ("listeners") to be called. - * - * For instance: a `net.Server` object emits an event each time a peer - * connects to it; a `fs.ReadStream` emits an event when the file is opened; - * a `stream` emits an event whenever data is available to be read. - * - * All objects that emit events are instances of the `EventEmitter` class. These - * objects expose an `eventEmitter.on()` function that allows one or more - * functions to be attached to named events emitted by the object. Typically, - * event names are camel-cased strings but any valid JavaScript property key - * can be used. - * - * When the `EventEmitter` object emits an event, all of the functions attached - * to that specific event are called _synchronously_. Any values returned by the - * called listeners are _ignored_ and discarded. - * - * The following example shows a simple `EventEmitter` instance with a single - * listener. The `eventEmitter.on()` method is used to register listeners, while - * the `eventEmitter.emit()` method is used to trigger the event. - * - * ```js - * import { EventEmitter } from 'node:events'; - * - * class MyEmitter extends EventEmitter {} - * - * const myEmitter = new MyEmitter(); - * myEmitter.on('event', () => { - * console.log('an event occurred!'); - * }); - * myEmitter.emit('event'); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/events.js) - */ -declare module "events" { - import { AsyncResource, AsyncResourceOptions } from "node:async_hooks"; - interface EventEmitterOptions { - /** - * Enables automatic capturing of promise rejection. - */ - captureRejections?: boolean | undefined; - } - interface StaticEventEmitterOptions { - /** - * Can be used to cancel awaiting events. - */ - signal?: AbortSignal | undefined; - } - interface StaticEventEmitterIteratorOptions extends StaticEventEmitterOptions { - /** - * Names of events that will end the iteration. - */ - close?: string[] | undefined; - /** - * The high watermark. The emitter is paused every time the size of events being buffered is higher than it. - * Supported only on emitters implementing `pause()` and `resume()` methods. - * @default Number.MAX_SAFE_INTEGER - */ - highWaterMark?: number | undefined; - /** - * The low watermark. The emitter is resumed every time the size of events being buffered is lower than it. - * Supported only on emitters implementing `pause()` and `resume()` methods. - * @default 1 - */ - lowWaterMark?: number | undefined; - } - interface EventEmitter = DefaultEventMap> extends NodeJS.EventEmitter {} - type EventMap = Record | DefaultEventMap; - type DefaultEventMap = [never]; - type AnyRest = [...args: any[]]; - type Args = T extends DefaultEventMap ? AnyRest : ( - K extends keyof T ? T[K] : never - ); - type Key = T extends DefaultEventMap ? string | symbol : K | keyof T; - type Key2 = T extends DefaultEventMap ? string | symbol : K & keyof T; - type Listener = T extends DefaultEventMap ? F : ( - K extends keyof T ? ( - T[K] extends unknown[] ? (...args: T[K]) => void : never - ) - : never - ); - type Listener1 = Listener void>; - type Listener2 = Listener; - - /** - * The `EventEmitter` class is defined and exposed by the `node:events` module: - * - * ```js - * import { EventEmitter } from 'node:events'; - * ``` - * - * All `EventEmitter`s emit the event `'newListener'` when new listeners are - * added and `'removeListener'` when existing listeners are removed. - * - * It supports the following option: - * @since v0.1.26 - */ - class EventEmitter = DefaultEventMap> { - constructor(options?: EventEmitterOptions); - - [EventEmitter.captureRejectionSymbol]?(error: Error, event: Key, ...args: Args): void; - - /** - * Creates a `Promise` that is fulfilled when the `EventEmitter` emits the given - * event or that is rejected if the `EventEmitter` emits `'error'` while waiting. - * The `Promise` will resolve with an array of all the arguments emitted to the - * given event. - * - * This method is intentionally generic and works with the web platform [EventTarget](https://dom.spec.whatwg.org/#interface-eventtarget) interface, which has no special`'error'` event - * semantics and does not listen to the `'error'` event. - * - * ```js - * import { once, EventEmitter } from 'node:events'; - * import process from 'node:process'; - * - * const ee = new EventEmitter(); - * - * process.nextTick(() => { - * ee.emit('myevent', 42); - * }); - * - * const [value] = await once(ee, 'myevent'); - * console.log(value); - * - * const err = new Error('kaboom'); - * process.nextTick(() => { - * ee.emit('error', err); - * }); - * - * try { - * await once(ee, 'myevent'); - * } catch (err) { - * console.error('error happened', err); - * } - * ``` - * - * The special handling of the `'error'` event is only used when `events.once()` is used to wait for another event. If `events.once()` is used to wait for the - * '`error'` event itself, then it is treated as any other kind of event without - * special handling: - * - * ```js - * import { EventEmitter, once } from 'node:events'; - * - * const ee = new EventEmitter(); - * - * once(ee, 'error') - * .then(([err]) => console.log('ok', err.message)) - * .catch((err) => console.error('error', err.message)); - * - * ee.emit('error', new Error('boom')); - * - * // Prints: ok boom - * ``` - * - * An `AbortSignal` can be used to cancel waiting for the event: - * - * ```js - * import { EventEmitter, once } from 'node:events'; - * - * const ee = new EventEmitter(); - * const ac = new AbortController(); - * - * async function foo(emitter, event, signal) { - * try { - * await once(emitter, event, { signal }); - * console.log('event emitted!'); - * } catch (error) { - * if (error.name === 'AbortError') { - * console.error('Waiting for the event was canceled!'); - * } else { - * console.error('There was an error', error.message); - * } - * } - * } - * - * foo(ee, 'foo', ac.signal); - * ac.abort(); // Abort waiting for the event - * ee.emit('foo'); // Prints: Waiting for the event was canceled! - * ``` - * @since v11.13.0, v10.16.0 - */ - static once( - emitter: NodeJS.EventEmitter, - eventName: string | symbol, - options?: StaticEventEmitterOptions, - ): Promise; - static once(emitter: EventTarget, eventName: string, options?: StaticEventEmitterOptions): Promise; - /** - * ```js - * import { on, EventEmitter } from 'node:events'; - * import process from 'node:process'; - * - * const ee = new EventEmitter(); - * - * // Emit later on - * process.nextTick(() => { - * ee.emit('foo', 'bar'); - * ee.emit('foo', 42); - * }); - * - * for await (const event of on(ee, 'foo')) { - * // The execution of this inner block is synchronous and it - * // processes one event at a time (even with await). Do not use - * // if concurrent execution is required. - * console.log(event); // prints ['bar'] [42] - * } - * // Unreachable here - * ``` - * - * Returns an `AsyncIterator` that iterates `eventName` events. It will throw - * if the `EventEmitter` emits `'error'`. It removes all listeners when - * exiting the loop. The `value` returned by each iteration is an array - * composed of the emitted event arguments. - * - * An `AbortSignal` can be used to cancel waiting on events: - * - * ```js - * import { on, EventEmitter } from 'node:events'; - * import process from 'node:process'; - * - * const ac = new AbortController(); - * - * (async () => { - * const ee = new EventEmitter(); - * - * // Emit later on - * process.nextTick(() => { - * ee.emit('foo', 'bar'); - * ee.emit('foo', 42); - * }); - * - * for await (const event of on(ee, 'foo', { signal: ac.signal })) { - * // The execution of this inner block is synchronous and it - * // processes one event at a time (even with await). Do not use - * // if concurrent execution is required. - * console.log(event); // prints ['bar'] [42] - * } - * // Unreachable here - * })(); - * - * process.nextTick(() => ac.abort()); - * ``` - * - * Use the `close` option to specify an array of event names that will end the iteration: - * - * ```js - * import { on, EventEmitter } from 'node:events'; - * import process from 'node:process'; - * - * const ee = new EventEmitter(); - * - * // Emit later on - * process.nextTick(() => { - * ee.emit('foo', 'bar'); - * ee.emit('foo', 42); - * ee.emit('close'); - * }); - * - * for await (const event of on(ee, 'foo', { close: ['close'] })) { - * console.log(event); // prints ['bar'] [42] - * } - * // the loop will exit after 'close' is emitted - * console.log('done'); // prints 'done' - * ``` - * @since v13.6.0, v12.16.0 - * @return An `AsyncIterator` that iterates `eventName` events emitted by the `emitter` - */ - static on( - emitter: NodeJS.EventEmitter, - eventName: string | symbol, - options?: StaticEventEmitterIteratorOptions, - ): NodeJS.AsyncIterator; - static on( - emitter: EventTarget, - eventName: string, - options?: StaticEventEmitterIteratorOptions, - ): NodeJS.AsyncIterator; - /** - * A class method that returns the number of listeners for the given `eventName` registered on the given `emitter`. - * - * ```js - * import { EventEmitter, listenerCount } from 'node:events'; - * - * const myEmitter = new EventEmitter(); - * myEmitter.on('event', () => {}); - * myEmitter.on('event', () => {}); - * console.log(listenerCount(myEmitter, 'event')); - * // Prints: 2 - * ``` - * @since v0.9.12 - * @deprecated Since v3.2.0 - Use `listenerCount` instead. - * @param emitter The emitter to query - * @param eventName The event name - */ - static listenerCount(emitter: NodeJS.EventEmitter, eventName: string | symbol): number; - /** - * Returns a copy of the array of listeners for the event named `eventName`. - * - * For `EventEmitter`s this behaves exactly the same as calling `.listeners` on - * the emitter. - * - * For `EventTarget`s this is the only way to get the event listeners for the - * event target. This is useful for debugging and diagnostic purposes. - * - * ```js - * import { getEventListeners, EventEmitter } from 'node:events'; - * - * { - * const ee = new EventEmitter(); - * const listener = () => console.log('Events are fun'); - * ee.on('foo', listener); - * console.log(getEventListeners(ee, 'foo')); // [ [Function: listener] ] - * } - * { - * const et = new EventTarget(); - * const listener = () => console.log('Events are fun'); - * et.addEventListener('foo', listener); - * console.log(getEventListeners(et, 'foo')); // [ [Function: listener] ] - * } - * ``` - * @since v15.2.0, v14.17.0 - */ - static getEventListeners(emitter: EventTarget | NodeJS.EventEmitter, name: string | symbol): Function[]; - /** - * Returns the currently set max amount of listeners. - * - * For `EventEmitter`s this behaves exactly the same as calling `.getMaxListeners` on - * the emitter. - * - * For `EventTarget`s this is the only way to get the max event listeners for the - * event target. If the number of event handlers on a single EventTarget exceeds - * the max set, the EventTarget will print a warning. - * - * ```js - * import { getMaxListeners, setMaxListeners, EventEmitter } from 'node:events'; - * - * { - * const ee = new EventEmitter(); - * console.log(getMaxListeners(ee)); // 10 - * setMaxListeners(11, ee); - * console.log(getMaxListeners(ee)); // 11 - * } - * { - * const et = new EventTarget(); - * console.log(getMaxListeners(et)); // 10 - * setMaxListeners(11, et); - * console.log(getMaxListeners(et)); // 11 - * } - * ``` - * @since v19.9.0 - */ - static getMaxListeners(emitter: EventTarget | NodeJS.EventEmitter): number; - /** - * ```js - * import { setMaxListeners, EventEmitter } from 'node:events'; - * - * const target = new EventTarget(); - * const emitter = new EventEmitter(); - * - * setMaxListeners(5, target, emitter); - * ``` - * @since v15.4.0 - * @param n A non-negative number. The maximum number of listeners per `EventTarget` event. - * @param eventTargets Zero or more {EventTarget} or {EventEmitter} instances. If none are specified, `n` is set as the default max for all newly created {EventTarget} and {EventEmitter} - * objects. - */ - static setMaxListeners(n?: number, ...eventTargets: Array): void; - /** - * Listens once to the `abort` event on the provided `signal`. - * - * Listening to the `abort` event on abort signals is unsafe and may - * lead to resource leaks since another third party with the signal can - * call `e.stopImmediatePropagation()`. Unfortunately Node.js cannot change - * this since it would violate the web standard. Additionally, the original - * API makes it easy to forget to remove listeners. - * - * This API allows safely using `AbortSignal`s in Node.js APIs by solving these - * two issues by listening to the event such that `stopImmediatePropagation` does - * not prevent the listener from running. - * - * Returns a disposable so that it may be unsubscribed from more easily. - * - * ```js - * import { addAbortListener } from 'node:events'; - * - * function example(signal) { - * let disposable; - * try { - * signal.addEventListener('abort', (e) => e.stopImmediatePropagation()); - * disposable = addAbortListener(signal, (e) => { - * // Do something when signal is aborted. - * }); - * } finally { - * disposable?.[Symbol.dispose](); - * } - * } - * ``` - * @since v20.5.0 - * @return Disposable that removes the `abort` listener. - */ - static addAbortListener(signal: AbortSignal, resource: (event: Event) => void): Disposable; - /** - * This symbol shall be used to install a listener for only monitoring `'error'` events. Listeners installed using this symbol are called before the regular `'error'` listeners are called. - * - * Installing a listener using this symbol does not change the behavior once an `'error'` event is emitted. Therefore, the process will still crash if no - * regular `'error'` listener is installed. - * @since v13.6.0, v12.17.0 - */ - static readonly errorMonitor: unique symbol; - /** - * Value: `Symbol.for('nodejs.rejection')` - * - * See how to write a custom `rejection handler`. - * @since v13.4.0, v12.16.0 - */ - static readonly captureRejectionSymbol: unique symbol; - /** - * Value: [boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type) - * - * Change the default `captureRejections` option on all new `EventEmitter` objects. - * @since v13.4.0, v12.16.0 - */ - static captureRejections: boolean; - /** - * By default, a maximum of `10` listeners can be registered for any single - * event. This limit can be changed for individual `EventEmitter` instances - * using the `emitter.setMaxListeners(n)` method. To change the default - * for _all_`EventEmitter` instances, the `events.defaultMaxListeners` property - * can be used. If this value is not a positive number, a `RangeError` is thrown. - * - * Take caution when setting the `events.defaultMaxListeners` because the - * change affects _all_ `EventEmitter` instances, including those created before - * the change is made. However, calling `emitter.setMaxListeners(n)` still has - * precedence over `events.defaultMaxListeners`. - * - * This is not a hard limit. The `EventEmitter` instance will allow - * more listeners to be added but will output a trace warning to stderr indicating - * that a "possible EventEmitter memory leak" has been detected. For any single - * `EventEmitter`, the `emitter.getMaxListeners()` and `emitter.setMaxListeners()` methods can be used to - * temporarily avoid this warning: - * - * ```js - * import { EventEmitter } from 'node:events'; - * const emitter = new EventEmitter(); - * emitter.setMaxListeners(emitter.getMaxListeners() + 1); - * emitter.once('event', () => { - * // do stuff - * emitter.setMaxListeners(Math.max(emitter.getMaxListeners() - 1, 0)); - * }); - * ``` - * - * The `--trace-warnings` command-line flag can be used to display the - * stack trace for such warnings. - * - * The emitted warning can be inspected with `process.on('warning')` and will - * have the additional `emitter`, `type`, and `count` properties, referring to - * the event emitter instance, the event's name and the number of attached - * listeners, respectively. - * Its `name` property is set to `'MaxListenersExceededWarning'`. - * @since v0.11.2 - */ - static defaultMaxListeners: number; - } - import internal = require("node:events"); - namespace EventEmitter { - // Should just be `export { EventEmitter }`, but that doesn't work in TypeScript 3.4 - export { internal as EventEmitter }; - export interface Abortable { - /** - * When provided the corresponding `AbortController` can be used to cancel an asynchronous action. - */ - signal?: AbortSignal | undefined; - } - - export interface EventEmitterReferencingAsyncResource extends AsyncResource { - readonly eventEmitter: EventEmitterAsyncResource; - } - - export interface EventEmitterAsyncResourceOptions extends AsyncResourceOptions, EventEmitterOptions { - /** - * The type of async event, this is required when instantiating `EventEmitterAsyncResource` - * directly rather than as a child class. - * @default new.target.name if instantiated as a child class. - */ - name?: string | undefined; - } - - /** - * Integrates `EventEmitter` with `AsyncResource` for `EventEmitter`s that - * require manual async tracking. Specifically, all events emitted by instances - * of `events.EventEmitterAsyncResource` will run within its `async context`. - * - * ```js - * import { EventEmitterAsyncResource, EventEmitter } from 'node:events'; - * import { notStrictEqual, strictEqual } from 'node:assert'; - * import { executionAsyncId, triggerAsyncId } from 'node:async_hooks'; - * - * // Async tracking tooling will identify this as 'Q'. - * const ee1 = new EventEmitterAsyncResource({ name: 'Q' }); - * - * // 'foo' listeners will run in the EventEmitters async context. - * ee1.on('foo', () => { - * strictEqual(executionAsyncId(), ee1.asyncId); - * strictEqual(triggerAsyncId(), ee1.triggerAsyncId); - * }); - * - * const ee2 = new EventEmitter(); - * - * // 'foo' listeners on ordinary EventEmitters that do not track async - * // context, however, run in the same async context as the emit(). - * ee2.on('foo', () => { - * notStrictEqual(executionAsyncId(), ee2.asyncId); - * notStrictEqual(triggerAsyncId(), ee2.triggerAsyncId); - * }); - * - * Promise.resolve().then(() => { - * ee1.emit('foo'); - * ee2.emit('foo'); - * }); - * ``` - * - * The `EventEmitterAsyncResource` class has the same methods and takes the - * same options as `EventEmitter` and `AsyncResource` themselves. - * @since v17.4.0, v16.14.0 - */ - export class EventEmitterAsyncResource extends EventEmitter { - /** - * @param options Only optional in child class. - */ - constructor(options?: EventEmitterAsyncResourceOptions); - /** - * Call all `destroy` hooks. This should only ever be called once. An error will - * be thrown if it is called more than once. This **must** be manually called. If - * the resource is left to be collected by the GC then the `destroy` hooks will - * never be called. - */ - emitDestroy(): void; - /** - * The unique `asyncId` assigned to the resource. - */ - readonly asyncId: number; - /** - * The same triggerAsyncId that is passed to the AsyncResource constructor. - */ - readonly triggerAsyncId: number; - /** - * The returned `AsyncResource` object has an additional `eventEmitter` property - * that provides a reference to this `EventEmitterAsyncResource`. - */ - readonly asyncResource: EventEmitterReferencingAsyncResource; - } - /** - * The `NodeEventTarget` is a Node.js-specific extension to `EventTarget` - * that emulates a subset of the `EventEmitter` API. - * @since v14.5.0 - */ - export interface NodeEventTarget extends EventTarget { - /** - * Node.js-specific extension to the `EventTarget` class that emulates the - * equivalent `EventEmitter` API. The only difference between `addListener()` and - * `addEventListener()` is that `addListener()` will return a reference to the - * `EventTarget`. - * @since v14.5.0 - */ - addListener(type: string, listener: (arg: any) => void): this; - /** - * Node.js-specific extension to the `EventTarget` class that dispatches the - * `arg` to the list of handlers for `type`. - * @since v15.2.0 - * @returns `true` if event listeners registered for the `type` exist, - * otherwise `false`. - */ - emit(type: string, arg: any): boolean; - /** - * Node.js-specific extension to the `EventTarget` class that returns an array - * of event `type` names for which event listeners are registered. - * @since 14.5.0 - */ - eventNames(): string[]; - /** - * Node.js-specific extension to the `EventTarget` class that returns the number - * of event listeners registered for the `type`. - * @since v14.5.0 - */ - listenerCount(type: string): number; - /** - * Node.js-specific extension to the `EventTarget` class that sets the number - * of max event listeners as `n`. - * @since v14.5.0 - */ - setMaxListeners(n: number): void; - /** - * Node.js-specific extension to the `EventTarget` class that returns the number - * of max event listeners. - * @since v14.5.0 - */ - getMaxListeners(): number; - /** - * Node.js-specific alias for `eventTarget.removeEventListener()`. - * @since v14.5.0 - */ - off(type: string, listener: (arg: any) => void, options?: EventListenerOptions): this; - /** - * Node.js-specific alias for `eventTarget.addEventListener()`. - * @since v14.5.0 - */ - on(type: string, listener: (arg: any) => void): this; - /** - * Node.js-specific extension to the `EventTarget` class that adds a `once` - * listener for the given event `type`. This is equivalent to calling `on` - * with the `once` option set to `true`. - * @since v14.5.0 - */ - once(type: string, listener: (arg: any) => void): this; - /** - * Node.js-specific extension to the `EventTarget` class. If `type` is specified, - * removes all registered listeners for `type`, otherwise removes all registered - * listeners. - * @since v14.5.0 - */ - removeAllListeners(type?: string): this; - /** - * Node.js-specific extension to the `EventTarget` class that removes the - * `listener` for the given `type`. The only difference between `removeListener()` - * and `removeEventListener()` is that `removeListener()` will return a reference - * to the `EventTarget`. - * @since v14.5.0 - */ - removeListener(type: string, listener: (arg: any) => void, options?: EventListenerOptions): this; - } - } - global { - namespace NodeJS { - interface EventEmitter = DefaultEventMap> { - [EventEmitter.captureRejectionSymbol]?(error: Error, event: Key, ...args: Args): void; - /** - * Alias for `emitter.on(eventName, listener)`. - * @since v0.1.26 - */ - addListener(eventName: Key, listener: Listener1): this; - /** - * Adds the `listener` function to the end of the listeners array for the event - * named `eventName`. No checks are made to see if the `listener` has already - * been added. Multiple calls passing the same combination of `eventName` and - * `listener` will result in the `listener` being added, and called, multiple times. - * - * ```js - * server.on('connection', (stream) => { - * console.log('someone connected!'); - * }); - * ``` - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * - * By default, event listeners are invoked in the order they are added. The `emitter.prependListener()` method can be used as an alternative to add the - * event listener to the beginning of the listeners array. - * - * ```js - * import { EventEmitter } from 'node:events'; - * const myEE = new EventEmitter(); - * myEE.on('foo', () => console.log('a')); - * myEE.prependListener('foo', () => console.log('b')); - * myEE.emit('foo'); - * // Prints: - * // b - * // a - * ``` - * @since v0.1.101 - * @param eventName The name of the event. - * @param listener The callback function - */ - on(eventName: Key, listener: Listener1): this; - /** - * Adds a **one-time** `listener` function for the event named `eventName`. The - * next time `eventName` is triggered, this listener is removed and then invoked. - * - * ```js - * server.once('connection', (stream) => { - * console.log('Ah, we have our first user!'); - * }); - * ``` - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * - * By default, event listeners are invoked in the order they are added. The `emitter.prependOnceListener()` method can be used as an alternative to add the - * event listener to the beginning of the listeners array. - * - * ```js - * import { EventEmitter } from 'node:events'; - * const myEE = new EventEmitter(); - * myEE.once('foo', () => console.log('a')); - * myEE.prependOnceListener('foo', () => console.log('b')); - * myEE.emit('foo'); - * // Prints: - * // b - * // a - * ``` - * @since v0.3.0 - * @param eventName The name of the event. - * @param listener The callback function - */ - once(eventName: Key, listener: Listener1): this; - /** - * Removes the specified `listener` from the listener array for the event named `eventName`. - * - * ```js - * const callback = (stream) => { - * console.log('someone connected!'); - * }; - * server.on('connection', callback); - * // ... - * server.removeListener('connection', callback); - * ``` - * - * `removeListener()` will remove, at most, one instance of a listener from the - * listener array. If any single listener has been added multiple times to the - * listener array for the specified `eventName`, then `removeListener()` must be - * called multiple times to remove each instance. - * - * Once an event is emitted, all listeners attached to it at the - * time of emitting are called in order. This implies that any `removeListener()` or `removeAllListeners()` calls _after_ emitting and _before_ the last listener finishes execution - * will not remove them from`emit()` in progress. Subsequent events behave as expected. - * - * ```js - * import { EventEmitter } from 'node:events'; - * class MyEmitter extends EventEmitter {} - * const myEmitter = new MyEmitter(); - * - * const callbackA = () => { - * console.log('A'); - * myEmitter.removeListener('event', callbackB); - * }; - * - * const callbackB = () => { - * console.log('B'); - * }; - * - * myEmitter.on('event', callbackA); - * - * myEmitter.on('event', callbackB); - * - * // callbackA removes listener callbackB but it will still be called. - * // Internal listener array at time of emit [callbackA, callbackB] - * myEmitter.emit('event'); - * // Prints: - * // A - * // B - * - * // callbackB is now removed. - * // Internal listener array [callbackA] - * myEmitter.emit('event'); - * // Prints: - * // A - * ``` - * - * Because listeners are managed using an internal array, calling this will - * change the position indices of any listener registered _after_ the listener - * being removed. This will not impact the order in which listeners are called, - * but it means that any copies of the listener array as returned by - * the `emitter.listeners()` method will need to be recreated. - * - * When a single function has been added as a handler multiple times for a single - * event (as in the example below), `removeListener()` will remove the most - * recently added instance. In the example the `once('ping')` listener is removed: - * - * ```js - * import { EventEmitter } from 'node:events'; - * const ee = new EventEmitter(); - * - * function pong() { - * console.log('pong'); - * } - * - * ee.on('ping', pong); - * ee.once('ping', pong); - * ee.removeListener('ping', pong); - * - * ee.emit('ping'); - * ee.emit('ping'); - * ``` - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * @since v0.1.26 - */ - removeListener(eventName: Key, listener: Listener1): this; - /** - * Alias for `emitter.removeListener()`. - * @since v10.0.0 - */ - off(eventName: Key, listener: Listener1): this; - /** - * Removes all listeners, or those of the specified `eventName`. - * - * It is bad practice to remove listeners added elsewhere in the code, - * particularly when the `EventEmitter` instance was created by some other - * component or module (e.g. sockets or file streams). - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * @since v0.1.26 - */ - removeAllListeners(eventName?: Key): this; - /** - * By default `EventEmitter`s will print a warning if more than `10` listeners are - * added for a particular event. This is a useful default that helps finding - * memory leaks. The `emitter.setMaxListeners()` method allows the limit to be - * modified for this specific `EventEmitter` instance. The value can be set to `Infinity` (or `0`) to indicate an unlimited number of listeners. - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * @since v0.3.5 - */ - setMaxListeners(n: number): this; - /** - * Returns the current max listener value for the `EventEmitter` which is either - * set by `emitter.setMaxListeners(n)` or defaults to {@link EventEmitter.defaultMaxListeners}. - * @since v1.0.0 - */ - getMaxListeners(): number; - /** - * Returns a copy of the array of listeners for the event named `eventName`. - * - * ```js - * server.on('connection', (stream) => { - * console.log('someone connected!'); - * }); - * console.log(util.inspect(server.listeners('connection'))); - * // Prints: [ [Function] ] - * ``` - * @since v0.1.26 - */ - listeners(eventName: Key): Array>; - /** - * Returns a copy of the array of listeners for the event named `eventName`, - * including any wrappers (such as those created by `.once()`). - * - * ```js - * import { EventEmitter } from 'node:events'; - * const emitter = new EventEmitter(); - * emitter.once('log', () => console.log('log once')); - * - * // Returns a new Array with a function `onceWrapper` which has a property - * // `listener` which contains the original listener bound above - * const listeners = emitter.rawListeners('log'); - * const logFnWrapper = listeners[0]; - * - * // Logs "log once" to the console and does not unbind the `once` event - * logFnWrapper.listener(); - * - * // Logs "log once" to the console and removes the listener - * logFnWrapper(); - * - * emitter.on('log', () => console.log('log persistently')); - * // Will return a new Array with a single function bound by `.on()` above - * const newListeners = emitter.rawListeners('log'); - * - * // Logs "log persistently" twice - * newListeners[0](); - * emitter.emit('log'); - * ``` - * @since v9.4.0 - */ - rawListeners(eventName: Key): Array>; - /** - * Synchronously calls each of the listeners registered for the event named `eventName`, in the order they were registered, passing the supplied arguments - * to each. - * - * Returns `true` if the event had listeners, `false` otherwise. - * - * ```js - * import { EventEmitter } from 'node:events'; - * const myEmitter = new EventEmitter(); - * - * // First listener - * myEmitter.on('event', function firstListener() { - * console.log('Helloooo! first listener'); - * }); - * // Second listener - * myEmitter.on('event', function secondListener(arg1, arg2) { - * console.log(`event with parameters ${arg1}, ${arg2} in second listener`); - * }); - * // Third listener - * myEmitter.on('event', function thirdListener(...args) { - * const parameters = args.join(', '); - * console.log(`event with parameters ${parameters} in third listener`); - * }); - * - * console.log(myEmitter.listeners('event')); - * - * myEmitter.emit('event', 1, 2, 3, 4, 5); - * - * // Prints: - * // [ - * // [Function: firstListener], - * // [Function: secondListener], - * // [Function: thirdListener] - * // ] - * // Helloooo! first listener - * // event with parameters 1, 2 in second listener - * // event with parameters 1, 2, 3, 4, 5 in third listener - * ``` - * @since v0.1.26 - */ - emit(eventName: Key, ...args: Args): boolean; - /** - * Returns the number of listeners listening for the event named `eventName`. - * If `listener` is provided, it will return how many times the listener is found - * in the list of the listeners of the event. - * @since v3.2.0 - * @param eventName The name of the event being listened for - * @param listener The event handler function - */ - listenerCount(eventName: Key, listener?: Listener2): number; - /** - * Adds the `listener` function to the _beginning_ of the listeners array for the - * event named `eventName`. No checks are made to see if the `listener` has - * already been added. Multiple calls passing the same combination of `eventName` - * and `listener` will result in the `listener` being added, and called, multiple times. - * - * ```js - * server.prependListener('connection', (stream) => { - * console.log('someone connected!'); - * }); - * ``` - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * @since v6.0.0 - * @param eventName The name of the event. - * @param listener The callback function - */ - prependListener(eventName: Key, listener: Listener1): this; - /** - * Adds a **one-time**`listener` function for the event named `eventName` to the _beginning_ of the listeners array. The next time `eventName` is triggered, this - * listener is removed, and then invoked. - * - * ```js - * server.prependOnceListener('connection', (stream) => { - * console.log('Ah, we have our first user!'); - * }); - * ``` - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * @since v6.0.0 - * @param eventName The name of the event. - * @param listener The callback function - */ - prependOnceListener(eventName: Key, listener: Listener1): this; - /** - * Returns an array listing the events for which the emitter has registered - * listeners. The values in the array are strings or `Symbol`s. - * - * ```js - * import { EventEmitter } from 'node:events'; - * - * const myEE = new EventEmitter(); - * myEE.on('foo', () => {}); - * myEE.on('bar', () => {}); - * - * const sym = Symbol('symbol'); - * myEE.on(sym, () => {}); - * - * console.log(myEE.eventNames()); - * // Prints: [ 'foo', 'bar', Symbol(symbol) ] - * ``` - * @since v6.0.0 - */ - eventNames(): Array<(string | symbol) & Key2>; - } - } - } - export = EventEmitter; -} -declare module "node:events" { - import events = require("events"); - export = events; -} diff --git a/build_vtk_bundle/node_modules/@types/node/fs.d.ts b/build_vtk_bundle/node_modules/@types/node/fs.d.ts deleted file mode 100644 index b300ca45..00000000 --- a/build_vtk_bundle/node_modules/@types/node/fs.d.ts +++ /dev/null @@ -1,4714 +0,0 @@ -/** - * The `node:fs` module enables interacting with the file system in a - * way modeled on standard POSIX functions. - * - * To use the promise-based APIs: - * - * ```js - * import * as fs from 'node:fs/promises'; - * ``` - * - * To use the callback and sync APIs: - * - * ```js - * import * as fs from 'node:fs'; - * ``` - * - * All file system operations have synchronous, callback, and promise-based - * forms, and are accessible using both CommonJS syntax and ES6 Modules (ESM). - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/fs.js) - */ -declare module "fs" { - import { NonSharedBuffer } from "node:buffer"; - import * as stream from "node:stream"; - import { Abortable, EventEmitter } from "node:events"; - import { URL } from "node:url"; - import * as promises from "node:fs/promises"; - export { promises }; - /** - * Valid types for path values in "fs". - */ - export type PathLike = string | Buffer | URL; - export type PathOrFileDescriptor = PathLike | number; - export type TimeLike = string | number | Date; - export type NoParamCallback = (err: NodeJS.ErrnoException | null) => void; - export type BufferEncodingOption = - | "buffer" - | { - encoding: "buffer"; - }; - export interface ObjectEncodingOptions { - encoding?: BufferEncoding | null | undefined; - } - export type EncodingOption = ObjectEncodingOptions | BufferEncoding | undefined | null; - export type OpenMode = number | string; - export type Mode = number | string; - export interface StatsBase { - isFile(): boolean; - isDirectory(): boolean; - isBlockDevice(): boolean; - isCharacterDevice(): boolean; - isSymbolicLink(): boolean; - isFIFO(): boolean; - isSocket(): boolean; - dev: T; - ino: T; - mode: T; - nlink: T; - uid: T; - gid: T; - rdev: T; - size: T; - blksize: T; - blocks: T; - atimeMs: T; - mtimeMs: T; - ctimeMs: T; - birthtimeMs: T; - atime: Date; - mtime: Date; - ctime: Date; - birthtime: Date; - } - export interface Stats extends StatsBase {} - /** - * A `fs.Stats` object provides information about a file. - * - * Objects returned from {@link stat}, {@link lstat}, {@link fstat}, and - * their synchronous counterparts are of this type. - * If `bigint` in the `options` passed to those methods is true, the numeric values - * will be `bigint` instead of `number`, and the object will contain additional - * nanosecond-precision properties suffixed with `Ns`. `Stat` objects are not to be created directly using the `new` keyword. - * - * ```console - * Stats { - * dev: 2114, - * ino: 48064969, - * mode: 33188, - * nlink: 1, - * uid: 85, - * gid: 100, - * rdev: 0, - * size: 527, - * blksize: 4096, - * blocks: 8, - * atimeMs: 1318289051000.1, - * mtimeMs: 1318289051000.1, - * ctimeMs: 1318289051000.1, - * birthtimeMs: 1318289051000.1, - * atime: Mon, 10 Oct 2011 23:24:11 GMT, - * mtime: Mon, 10 Oct 2011 23:24:11 GMT, - * ctime: Mon, 10 Oct 2011 23:24:11 GMT, - * birthtime: Mon, 10 Oct 2011 23:24:11 GMT } - * ``` - * - * `bigint` version: - * - * ```console - * BigIntStats { - * dev: 2114n, - * ino: 48064969n, - * mode: 33188n, - * nlink: 1n, - * uid: 85n, - * gid: 100n, - * rdev: 0n, - * size: 527n, - * blksize: 4096n, - * blocks: 8n, - * atimeMs: 1318289051000n, - * mtimeMs: 1318289051000n, - * ctimeMs: 1318289051000n, - * birthtimeMs: 1318289051000n, - * atimeNs: 1318289051000000000n, - * mtimeNs: 1318289051000000000n, - * ctimeNs: 1318289051000000000n, - * birthtimeNs: 1318289051000000000n, - * atime: Mon, 10 Oct 2011 23:24:11 GMT, - * mtime: Mon, 10 Oct 2011 23:24:11 GMT, - * ctime: Mon, 10 Oct 2011 23:24:11 GMT, - * birthtime: Mon, 10 Oct 2011 23:24:11 GMT } - * ``` - * @since v0.1.21 - */ - export class Stats { - private constructor(); - } - export interface StatsFsBase { - /** Type of file system. */ - type: T; - /** Optimal transfer block size. */ - bsize: T; - /** Total data blocks in file system. */ - blocks: T; - /** Free blocks in file system. */ - bfree: T; - /** Available blocks for unprivileged users */ - bavail: T; - /** Total file nodes in file system. */ - files: T; - /** Free file nodes in file system. */ - ffree: T; - } - export interface StatsFs extends StatsFsBase {} - /** - * Provides information about a mounted file system. - * - * Objects returned from {@link statfs} and its synchronous counterpart are of - * this type. If `bigint` in the `options` passed to those methods is `true`, the - * numeric values will be `bigint` instead of `number`. - * - * ```console - * StatFs { - * type: 1397114950, - * bsize: 4096, - * blocks: 121938943, - * bfree: 61058895, - * bavail: 61058895, - * files: 999, - * ffree: 1000000 - * } - * ``` - * - * `bigint` version: - * - * ```console - * StatFs { - * type: 1397114950n, - * bsize: 4096n, - * blocks: 121938943n, - * bfree: 61058895n, - * bavail: 61058895n, - * files: 999n, - * ffree: 1000000n - * } - * ``` - * @since v19.6.0, v18.15.0 - */ - export class StatsFs {} - export interface BigIntStatsFs extends StatsFsBase {} - export interface StatFsOptions { - bigint?: boolean | undefined; - } - /** - * A representation of a directory entry, which can be a file or a subdirectory - * within the directory, as returned by reading from an `fs.Dir`. The - * directory entry is a combination of the file name and file type pairs. - * - * Additionally, when {@link readdir} or {@link readdirSync} is called with - * the `withFileTypes` option set to `true`, the resulting array is filled with `fs.Dirent` objects, rather than strings or `Buffer` s. - * @since v10.10.0 - */ - export class Dirent { - /** - * Returns `true` if the `fs.Dirent` object describes a regular file. - * @since v10.10.0 - */ - isFile(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a file system - * directory. - * @since v10.10.0 - */ - isDirectory(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a block device. - * @since v10.10.0 - */ - isBlockDevice(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a character device. - * @since v10.10.0 - */ - isCharacterDevice(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a symbolic link. - * @since v10.10.0 - */ - isSymbolicLink(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a first-in-first-out - * (FIFO) pipe. - * @since v10.10.0 - */ - isFIFO(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a socket. - * @since v10.10.0 - */ - isSocket(): boolean; - /** - * The file name that this `fs.Dirent` object refers to. The type of this - * value is determined by the `options.encoding` passed to {@link readdir} or {@link readdirSync}. - * @since v10.10.0 - */ - name: Name; - /** - * The path to the parent directory of the file this `fs.Dirent` object refers to. - * @since v20.12.0, v18.20.0 - */ - parentPath: string; - } - /** - * A class representing a directory stream. - * - * Created by {@link opendir}, {@link opendirSync}, or `fsPromises.opendir()`. - * - * ```js - * import { opendir } from 'node:fs/promises'; - * - * try { - * const dir = await opendir('./'); - * for await (const dirent of dir) - * console.log(dirent.name); - * } catch (err) { - * console.error(err); - * } - * ``` - * - * When using the async iterator, the `fs.Dir` object will be automatically - * closed after the iterator exits. - * @since v12.12.0 - */ - export class Dir implements AsyncIterable { - /** - * The read-only path of this directory as was provided to {@link opendir},{@link opendirSync}, or `fsPromises.opendir()`. - * @since v12.12.0 - */ - readonly path: string; - /** - * Asynchronously iterates over the directory via `readdir(3)` until all entries have been read. - */ - [Symbol.asyncIterator](): NodeJS.AsyncIterator; - /** - * Asynchronously close the directory's underlying resource handle. - * Subsequent reads will result in errors. - * - * A promise is returned that will be fulfilled after the resource has been - * closed. - * @since v12.12.0 - */ - close(): Promise; - close(cb: NoParamCallback): void; - /** - * Synchronously close the directory's underlying resource handle. - * Subsequent reads will result in errors. - * @since v12.12.0 - */ - closeSync(): void; - /** - * Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`. - * - * A promise is returned that will be fulfilled with an `fs.Dirent`, or `null` if there are no more directory entries to read. - * - * Directory entries returned by this function are in no particular order as - * provided by the operating system's underlying directory mechanisms. - * Entries added or removed while iterating over the directory might not be - * included in the iteration results. - * @since v12.12.0 - * @return containing {fs.Dirent|null} - */ - read(): Promise; - read(cb: (err: NodeJS.ErrnoException | null, dirEnt: Dirent | null) => void): void; - /** - * Synchronously read the next directory entry as an `fs.Dirent`. See the - * POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more detail. - * - * If there are no more directory entries to read, `null` will be returned. - * - * Directory entries returned by this function are in no particular order as - * provided by the operating system's underlying directory mechanisms. - * Entries added or removed while iterating over the directory might not be - * included in the iteration results. - * @since v12.12.0 - */ - readSync(): Dirent | null; - /** - * Calls `dir.close()` if the directory handle is open, and returns a promise that - * fulfills when disposal is complete. - * @since v24.1.0 - */ - [Symbol.asyncDispose](): Promise; - /** - * Calls `dir.closeSync()` if the directory handle is open, and returns - * `undefined`. - * @since v24.1.0 - */ - [Symbol.dispose](): void; - } - /** - * Class: fs.StatWatcher - * @since v14.3.0, v12.20.0 - * Extends `EventEmitter` - * A successful call to {@link watchFile} method will return a new fs.StatWatcher object. - */ - export interface StatWatcher extends EventEmitter { - /** - * When called, requests that the Node.js event loop _not_ exit so long as the `fs.StatWatcher` is active. Calling `watcher.ref()` multiple times will have - * no effect. - * - * By default, all `fs.StatWatcher` objects are "ref'ed", making it normally - * unnecessary to call `watcher.ref()` unless `watcher.unref()` had been - * called previously. - * @since v14.3.0, v12.20.0 - */ - ref(): this; - /** - * When called, the active `fs.StatWatcher` object will not require the Node.js - * event loop to remain active. If there is no other activity keeping the - * event loop running, the process may exit before the `fs.StatWatcher` object's - * callback is invoked. Calling `watcher.unref()` multiple times will have - * no effect. - * @since v14.3.0, v12.20.0 - */ - unref(): this; - } - export interface FSWatcher extends EventEmitter { - /** - * Stop watching for changes on the given `fs.FSWatcher`. Once stopped, the `fs.FSWatcher` object is no longer usable. - * @since v0.5.8 - */ - close(): void; - /** - * When called, requests that the Node.js event loop _not_ exit so long as the `fs.FSWatcher` is active. Calling `watcher.ref()` multiple times will have - * no effect. - * - * By default, all `fs.FSWatcher` objects are "ref'ed", making it normally - * unnecessary to call `watcher.ref()` unless `watcher.unref()` had been - * called previously. - * @since v14.3.0, v12.20.0 - */ - ref(): this; - /** - * When called, the active `fs.FSWatcher` object will not require the Node.js - * event loop to remain active. If there is no other activity keeping the - * event loop running, the process may exit before the `fs.FSWatcher` object's - * callback is invoked. Calling `watcher.unref()` multiple times will have - * no effect. - * @since v14.3.0, v12.20.0 - */ - unref(): this; - /** - * events.EventEmitter - * 1. change - * 2. close - * 3. error - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "change", listener: (eventType: string, filename: string | NonSharedBuffer) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "error", listener: (error: Error) => void): this; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "change", listener: (eventType: string, filename: string | NonSharedBuffer) => void): this; - on(event: "close", listener: () => void): this; - on(event: "error", listener: (error: Error) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "change", listener: (eventType: string, filename: string | NonSharedBuffer) => void): this; - once(event: "close", listener: () => void): this; - once(event: "error", listener: (error: Error) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener( - event: "change", - listener: (eventType: string, filename: string | NonSharedBuffer) => void, - ): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "error", listener: (error: Error) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener( - event: "change", - listener: (eventType: string, filename: string | NonSharedBuffer) => void, - ): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "error", listener: (error: Error) => void): this; - } - /** - * Instances of `fs.ReadStream` are created and returned using the {@link createReadStream} function. - * @since v0.1.93 - */ - export class ReadStream extends stream.Readable { - close(callback?: (err?: NodeJS.ErrnoException | null) => void): void; - /** - * The number of bytes that have been read so far. - * @since v6.4.0 - */ - bytesRead: number; - /** - * The path to the file the stream is reading from as specified in the first - * argument to `fs.createReadStream()`. If `path` is passed as a string, then`readStream.path` will be a string. If `path` is passed as a `Buffer`, then`readStream.path` will be a - * `Buffer`. If `fd` is specified, then`readStream.path` will be `undefined`. - * @since v0.1.93 - */ - path: string | Buffer; - /** - * This property is `true` if the underlying file has not been opened yet, - * i.e. before the `'ready'` event is emitted. - * @since v11.2.0, v10.16.0 - */ - pending: boolean; - /** - * events.EventEmitter - * 1. open - * 2. close - * 3. ready - */ - addListener(event: K, listener: ReadStreamEvents[K]): this; - on(event: K, listener: ReadStreamEvents[K]): this; - once(event: K, listener: ReadStreamEvents[K]): this; - prependListener(event: K, listener: ReadStreamEvents[K]): this; - prependOnceListener(event: K, listener: ReadStreamEvents[K]): this; - } - export interface Utf8StreamOptions { - /** - * Appends writes to dest file instead of truncating it. - * @default true - */ - append?: boolean | undefined; - /** - * Which type of data you can send to the write - * function, supported values are `'utf8'` or `'buffer'`. - * @default 'utf8' - */ - contentMode?: "utf8" | "buffer" | undefined; - /** - * A path to a file to be written to (mode controlled by the - * append option). - */ - dest?: string | undefined; - /** - * A file descriptor, something that is returned by `fs.open()` - * or `fs.openSync()`. - */ - fd?: number | undefined; - /** - * An object that has the same API as the `fs` module, useful - * for mocking, testing, or customizing the behavior of the stream. - */ - fs?: object | undefined; - /** - * Perform a `fs.fsyncSync()` every time a write is - * completed. - */ - fsync?: boolean | undefined; - /** - * The maximum length of the internal buffer. If a write - * operation would cause the buffer to exceed `maxLength`, the data written is - * dropped and a drop event is emitted with the dropped data - */ - maxLength?: number | undefined; - /** - * The maximum number of bytes that can be written; - * @default 16384 - */ - maxWrite?: number | undefined; - /** - * The minimum length of the internal buffer that is - * required to be full before flushing. - */ - minLength?: number | undefined; - /** - * Ensure directory for `dest` file exists when true. - * @default false - */ - mkdir?: boolean | undefined; - /** - * Specify the creating file mode (see `fs.open()`). - */ - mode?: number | string | undefined; - /** - * Calls flush every `periodicFlush` milliseconds. - */ - periodicFlush?: number | undefined; - /** - * A function that will be called when `write()`, - * `writeSync()`, or `flushSync()` encounters an `EAGAIN` or `EBUSY` error. - * If the return value is `true` the operation will be retried, otherwise it - * will bubble the error. The `err` is the error that caused this function to - * be called, `writeBufferLen` is the length of the buffer that was written, - * and `remainingBufferLen` is the length of the remaining buffer that the - * stream did not try to write. - */ - retryEAGAIN?: ((err: Error | null, writeBufferLen: number, remainingBufferLen: number) => boolean) | undefined; - /** - * Perform writes synchronously. - */ - sync?: boolean | undefined; - } - /** - * An optimized UTF-8 stream writer that allows for flushing all the internal - * buffering on demand. It handles `EAGAIN` errors correctly, allowing for - * customization, for example, by dropping content if the disk is busy. - * @since v24.6.0 - * @experimental - */ - export class Utf8Stream extends EventEmitter { - constructor(options: Utf8StreamOptions); - /** - * Whether the stream is appending to the file or truncating it. - */ - readonly append: boolean; - /** - * The type of data that can be written to the stream. Supported - * values are `'utf8'` or `'buffer'`. - * @default 'utf8' - */ - readonly contentMode: "utf8" | "buffer"; - /** - * Close the stream immediately, without flushing the internal buffer. - */ - destroy(): void; - /** - * Close the stream gracefully, flushing the internal buffer before closing. - */ - end(): void; - /** - * The file descriptor that is being written to. - */ - readonly fd: number; - /** - * The file that is being written to. - */ - readonly file: string; - /** - * Writes the current buffer to the file if a write was not in progress. Do - * nothing if `minLength` is zero or if it is already writing. - */ - flush(callback: (err: Error | null) => void): void; - /** - * Flushes the buffered data synchronously. This is a costly operation. - */ - flushSync(): void; - /** - * Whether the stream is performing a `fs.fsyncSync()` after every - * write operation. - */ - readonly fsync: boolean; - /** - * The maximum length of the internal buffer. If a write - * operation would cause the buffer to exceed `maxLength`, the data written is - * dropped and a drop event is emitted with the dropped data. - */ - readonly maxLength: number; - /** - * The minimum length of the internal buffer that is required to be - * full before flushing. - */ - readonly minLength: number; - /** - * Whether the stream should ensure that the directory for the - * `dest` file exists. If `true`, it will create the directory if it does not - * exist. - * @default false - */ - readonly mkdir: boolean; - /** - * The mode of the file that is being written to. - */ - readonly mode: number | string; - /** - * The number of milliseconds between flushes. If set to `0`, no - * periodic flushes will be performed. - */ - readonly periodicFlush: number; - /** - * Reopen the file in place, useful for log rotation. - * @param file A path to a file to be written to (mode - * controlled by the append option). - */ - reopen(file: PathLike): void; - /** - * Whether the stream is writing synchronously or asynchronously. - */ - readonly sync: boolean; - /** - * When the `options.contentMode` is set to `'utf8'` when the stream is created, - * the `data` argument must be a string. If the `contentMode` is set to `'buffer'`, - * the `data` argument must be a `Buffer`. - * @param data The data to write. - */ - write(data: string | Buffer): boolean; - /** - * Whether the stream is currently writing data to the file. - */ - readonly writing: boolean; - /** - * Calls `utf8Stream.destroy()`. - */ - [Symbol.dispose](): void; - /** - * events.EventEmitter - * 1. change - * 2. close - * 3. error - */ - addListener(event: "close", listener: () => void): this; - addListener(event: "drain", listener: () => void): this; - addListener(event: "drop", listener: (data: string | Buffer) => void): this; - addListener(event: "error", listener: (error: Error) => void): this; - addListener(event: "finish", listener: () => void): this; - addListener(event: "ready", listener: () => void): this; - addListener(event: "write", listener: (n: number) => void): this; - addListener(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: () => void): this; - on(event: "drain", listener: () => void): this; - on(event: "drop", listener: (data: string | Buffer) => void): this; - on(event: "error", listener: (error: Error) => void): this; - on(event: "finish", listener: () => void): this; - on(event: "ready", listener: () => void): this; - on(event: "write", listener: (n: number) => void): this; - on(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "drain", listener: () => void): this; - once(event: "drop", listener: (data: string | Buffer) => void): this; - once(event: "error", listener: (error: Error) => void): this; - once(event: "finish", listener: () => void): this; - once(event: "ready", listener: () => void): this; - once(event: "write", listener: (n: number) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "drain", listener: () => void): this; - prependListener(event: "drop", listener: (data: string | Buffer) => void): this; - prependListener(event: "error", listener: (error: Error) => void): this; - prependListener(event: "finish", listener: () => void): this; - prependListener(event: "ready", listener: () => void): this; - prependListener(event: "write", listener: (n: number) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "drain", listener: () => void): this; - prependOnceListener(event: "drop", listener: (data: string | Buffer) => void): this; - prependOnceListener(event: "error", listener: (error: Error) => void): this; - prependOnceListener(event: "finish", listener: () => void): this; - prependOnceListener(event: "ready", listener: () => void): this; - prependOnceListener(event: "write", listener: (n: number) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - } - - /** - * The Keys are events of the ReadStream and the values are the functions that are called when the event is emitted. - */ - type ReadStreamEvents = { - close: () => void; - data: (chunk: Buffer | string) => void; - end: () => void; - error: (err: Error) => void; - open: (fd: number) => void; - pause: () => void; - readable: () => void; - ready: () => void; - resume: () => void; - } & CustomEvents; - - /** - * string & {} allows to allow any kind of strings for the event - * but still allows to have auto completion for the normal events. - */ - type CustomEvents = { [Key in string & {} | symbol]: (...args: any[]) => void }; - - /** - * The Keys are events of the WriteStream and the values are the functions that are called when the event is emitted. - */ - type WriteStreamEvents = { - close: () => void; - drain: () => void; - error: (err: Error) => void; - finish: () => void; - open: (fd: number) => void; - pipe: (src: stream.Readable) => void; - ready: () => void; - unpipe: (src: stream.Readable) => void; - } & CustomEvents; - /** - * * Extends `stream.Writable` - * - * Instances of `fs.WriteStream` are created and returned using the {@link createWriteStream} function. - * @since v0.1.93 - */ - export class WriteStream extends stream.Writable { - /** - * Closes `writeStream`. Optionally accepts a - * callback that will be executed once the `writeStream`is closed. - * @since v0.9.4 - */ - close(callback?: (err?: NodeJS.ErrnoException | null) => void): void; - /** - * The number of bytes written so far. Does not include data that is still queued - * for writing. - * @since v0.4.7 - */ - bytesWritten: number; - /** - * The path to the file the stream is writing to as specified in the first - * argument to {@link createWriteStream}. If `path` is passed as a string, then`writeStream.path` will be a string. If `path` is passed as a `Buffer`, then`writeStream.path` will be a - * `Buffer`. - * @since v0.1.93 - */ - path: string | Buffer; - /** - * This property is `true` if the underlying file has not been opened yet, - * i.e. before the `'ready'` event is emitted. - * @since v11.2.0 - */ - pending: boolean; - /** - * events.EventEmitter - * 1. open - * 2. close - * 3. ready - */ - addListener(event: K, listener: WriteStreamEvents[K]): this; - on(event: K, listener: WriteStreamEvents[K]): this; - once(event: K, listener: WriteStreamEvents[K]): this; - prependListener(event: K, listener: WriteStreamEvents[K]): this; - prependOnceListener(event: K, listener: WriteStreamEvents[K]): this; - } - /** - * Asynchronously rename file at `oldPath` to the pathname provided - * as `newPath`. In the case that `newPath` already exists, it will - * be overwritten. If there is a directory at `newPath`, an error will - * be raised instead. No arguments other than a possible exception are - * given to the completion callback. - * - * See also: [`rename(2)`](http://man7.org/linux/man-pages/man2/rename.2.html). - * - * ```js - * import { rename } from 'node:fs'; - * - * rename('oldFile.txt', 'newFile.txt', (err) => { - * if (err) throw err; - * console.log('Rename complete!'); - * }); - * ``` - * @since v0.0.2 - */ - export function rename(oldPath: PathLike, newPath: PathLike, callback: NoParamCallback): void; - export namespace rename { - /** - * Asynchronous rename(2) - Change the name or location of a file or directory. - * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - */ - function __promisify__(oldPath: PathLike, newPath: PathLike): Promise; - } - /** - * Renames the file from `oldPath` to `newPath`. Returns `undefined`. - * - * See the POSIX [`rename(2)`](http://man7.org/linux/man-pages/man2/rename.2.html) documentation for more details. - * @since v0.1.21 - */ - export function renameSync(oldPath: PathLike, newPath: PathLike): void; - /** - * Truncates the file. No arguments other than a possible exception are - * given to the completion callback. A file descriptor can also be passed as the - * first argument. In this case, `fs.ftruncate()` is called. - * - * ```js - * import { truncate } from 'node:fs'; - * // Assuming that 'path/file.txt' is a regular file. - * truncate('path/file.txt', (err) => { - * if (err) throw err; - * console.log('path/file.txt was truncated'); - * }); - * ``` - * - * Passing a file descriptor is deprecated and may result in an error being thrown - * in the future. - * - * See the POSIX [`truncate(2)`](http://man7.org/linux/man-pages/man2/truncate.2.html) documentation for more details. - * @since v0.8.6 - * @param [len=0] - */ - export function truncate(path: PathLike, len: number | undefined, callback: NoParamCallback): void; - /** - * Asynchronous truncate(2) - Truncate a file to a specified length. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function truncate(path: PathLike, callback: NoParamCallback): void; - export namespace truncate { - /** - * Asynchronous truncate(2) - Truncate a file to a specified length. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param len If not specified, defaults to `0`. - */ - function __promisify__(path: PathLike, len?: number): Promise; - } - /** - * Truncates the file. Returns `undefined`. A file descriptor can also be - * passed as the first argument. In this case, `fs.ftruncateSync()` is called. - * - * Passing a file descriptor is deprecated and may result in an error being thrown - * in the future. - * @since v0.8.6 - * @param [len=0] - */ - export function truncateSync(path: PathLike, len?: number): void; - /** - * Truncates the file descriptor. No arguments other than a possible exception are - * given to the completion callback. - * - * See the POSIX [`ftruncate(2)`](http://man7.org/linux/man-pages/man2/ftruncate.2.html) documentation for more detail. - * - * If the file referred to by the file descriptor was larger than `len` bytes, only - * the first `len` bytes will be retained in the file. - * - * For example, the following program retains only the first four bytes of the - * file: - * - * ```js - * import { open, close, ftruncate } from 'node:fs'; - * - * function closeFd(fd) { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * - * open('temp.txt', 'r+', (err, fd) => { - * if (err) throw err; - * - * try { - * ftruncate(fd, 4, (err) => { - * closeFd(fd); - * if (err) throw err; - * }); - * } catch (err) { - * closeFd(fd); - * if (err) throw err; - * } - * }); - * ``` - * - * If the file previously was shorter than `len` bytes, it is extended, and the - * extended part is filled with null bytes (`'\0'`): - * - * If `len` is negative then `0` will be used. - * @since v0.8.6 - * @param [len=0] - */ - export function ftruncate(fd: number, len: number | undefined, callback: NoParamCallback): void; - /** - * Asynchronous ftruncate(2) - Truncate a file to a specified length. - * @param fd A file descriptor. - */ - export function ftruncate(fd: number, callback: NoParamCallback): void; - export namespace ftruncate { - /** - * Asynchronous ftruncate(2) - Truncate a file to a specified length. - * @param fd A file descriptor. - * @param len If not specified, defaults to `0`. - */ - function __promisify__(fd: number, len?: number): Promise; - } - /** - * Truncates the file descriptor. Returns `undefined`. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link ftruncate}. - * @since v0.8.6 - * @param [len=0] - */ - export function ftruncateSync(fd: number, len?: number): void; - /** - * Asynchronously changes owner and group of a file. No arguments other than a - * possible exception are given to the completion callback. - * - * See the POSIX [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html) documentation for more detail. - * @since v0.1.97 - */ - export function chown(path: PathLike, uid: number, gid: number, callback: NoParamCallback): void; - export namespace chown { - /** - * Asynchronous chown(2) - Change ownership of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__(path: PathLike, uid: number, gid: number): Promise; - } - /** - * Synchronously changes owner and group of a file. Returns `undefined`. - * This is the synchronous version of {@link chown}. - * - * See the POSIX [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html) documentation for more detail. - * @since v0.1.97 - */ - export function chownSync(path: PathLike, uid: number, gid: number): void; - /** - * Sets the owner of the file. No arguments other than a possible exception are - * given to the completion callback. - * - * See the POSIX [`fchown(2)`](http://man7.org/linux/man-pages/man2/fchown.2.html) documentation for more detail. - * @since v0.4.7 - */ - export function fchown(fd: number, uid: number, gid: number, callback: NoParamCallback): void; - export namespace fchown { - /** - * Asynchronous fchown(2) - Change ownership of a file. - * @param fd A file descriptor. - */ - function __promisify__(fd: number, uid: number, gid: number): Promise; - } - /** - * Sets the owner of the file. Returns `undefined`. - * - * See the POSIX [`fchown(2)`](http://man7.org/linux/man-pages/man2/fchown.2.html) documentation for more detail. - * @since v0.4.7 - * @param uid The file's new owner's user id. - * @param gid The file's new group's group id. - */ - export function fchownSync(fd: number, uid: number, gid: number): void; - /** - * Set the owner of the symbolic link. No arguments other than a possible - * exception are given to the completion callback. - * - * See the POSIX [`lchown(2)`](http://man7.org/linux/man-pages/man2/lchown.2.html) documentation for more detail. - */ - export function lchown(path: PathLike, uid: number, gid: number, callback: NoParamCallback): void; - export namespace lchown { - /** - * Asynchronous lchown(2) - Change ownership of a file. Does not dereference symbolic links. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__(path: PathLike, uid: number, gid: number): Promise; - } - /** - * Set the owner for the path. Returns `undefined`. - * - * See the POSIX [`lchown(2)`](http://man7.org/linux/man-pages/man2/lchown.2.html) documentation for more details. - * @param uid The file's new owner's user id. - * @param gid The file's new group's group id. - */ - export function lchownSync(path: PathLike, uid: number, gid: number): void; - /** - * Changes the access and modification times of a file in the same way as {@link utimes}, with the difference that if the path refers to a symbolic - * link, then the link is not dereferenced: instead, the timestamps of the - * symbolic link itself are changed. - * - * No arguments other than a possible exception are given to the completion - * callback. - * @since v14.5.0, v12.19.0 - */ - export function lutimes(path: PathLike, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void; - export namespace lutimes { - /** - * Changes the access and modification times of a file in the same way as `fsPromises.utimes()`, - * with the difference that if the path refers to a symbolic link, then the link is not - * dereferenced: instead, the timestamps of the symbolic link itself are changed. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param atime The last access time. If a string is provided, it will be coerced to number. - * @param mtime The last modified time. If a string is provided, it will be coerced to number. - */ - function __promisify__(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise; - } - /** - * Change the file system timestamps of the symbolic link referenced by `path`. - * Returns `undefined`, or throws an exception when parameters are incorrect or - * the operation fails. This is the synchronous version of {@link lutimes}. - * @since v14.5.0, v12.19.0 - */ - export function lutimesSync(path: PathLike, atime: TimeLike, mtime: TimeLike): void; - /** - * Asynchronously changes the permissions of a file. No arguments other than a - * possible exception are given to the completion callback. - * - * See the POSIX [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html) documentation for more detail. - * - * ```js - * import { chmod } from 'node:fs'; - * - * chmod('my_file.txt', 0o775, (err) => { - * if (err) throw err; - * console.log('The permissions for file "my_file.txt" have been changed!'); - * }); - * ``` - * @since v0.1.30 - */ - export function chmod(path: PathLike, mode: Mode, callback: NoParamCallback): void; - export namespace chmod { - /** - * Asynchronous chmod(2) - Change permissions of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param mode A file mode. If a string is passed, it is parsed as an octal integer. - */ - function __promisify__(path: PathLike, mode: Mode): Promise; - } - /** - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link chmod}. - * - * See the POSIX [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html) documentation for more detail. - * @since v0.6.7 - */ - export function chmodSync(path: PathLike, mode: Mode): void; - /** - * Sets the permissions on the file. No arguments other than a possible exception - * are given to the completion callback. - * - * See the POSIX [`fchmod(2)`](http://man7.org/linux/man-pages/man2/fchmod.2.html) documentation for more detail. - * @since v0.4.7 - */ - export function fchmod(fd: number, mode: Mode, callback: NoParamCallback): void; - export namespace fchmod { - /** - * Asynchronous fchmod(2) - Change permissions of a file. - * @param fd A file descriptor. - * @param mode A file mode. If a string is passed, it is parsed as an octal integer. - */ - function __promisify__(fd: number, mode: Mode): Promise; - } - /** - * Sets the permissions on the file. Returns `undefined`. - * - * See the POSIX [`fchmod(2)`](http://man7.org/linux/man-pages/man2/fchmod.2.html) documentation for more detail. - * @since v0.4.7 - */ - export function fchmodSync(fd: number, mode: Mode): void; - /** - * Changes the permissions on a symbolic link. No arguments other than a possible - * exception are given to the completion callback. - * - * This method is only implemented on macOS. - * - * See the POSIX [`lchmod(2)`](https://www.freebsd.org/cgi/man.cgi?query=lchmod&sektion=2) documentation for more detail. - * @deprecated Since v0.4.7 - */ - export function lchmod(path: PathLike, mode: Mode, callback: NoParamCallback): void; - /** @deprecated */ - export namespace lchmod { - /** - * Asynchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param mode A file mode. If a string is passed, it is parsed as an octal integer. - */ - function __promisify__(path: PathLike, mode: Mode): Promise; - } - /** - * Changes the permissions on a symbolic link. Returns `undefined`. - * - * This method is only implemented on macOS. - * - * See the POSIX [`lchmod(2)`](https://www.freebsd.org/cgi/man.cgi?query=lchmod&sektion=2) documentation for more detail. - * @deprecated Since v0.4.7 - */ - export function lchmodSync(path: PathLike, mode: Mode): void; - /** - * Asynchronous [`stat(2)`](http://man7.org/linux/man-pages/man2/stat.2.html). The callback gets two arguments `(err, stats)` where`stats` is an `fs.Stats` object. - * - * In case of an error, the `err.code` will be one of `Common System Errors`. - * - * {@link stat} follows symbolic links. Use {@link lstat} to look at the - * links themselves. - * - * Using `fs.stat()` to check for the existence of a file before calling`fs.open()`, `fs.readFile()`, or `fs.writeFile()` is not recommended. - * Instead, user code should open/read/write the file directly and handle the - * error raised if the file is not available. - * - * To check if a file exists without manipulating it afterwards, {@link access} is recommended. - * - * For example, given the following directory structure: - * - * ```text - * - txtDir - * -- file.txt - * - app.js - * ``` - * - * The next program will check for the stats of the given paths: - * - * ```js - * import { stat } from 'node:fs'; - * - * const pathsToCheck = ['./txtDir', './txtDir/file.txt']; - * - * for (let i = 0; i < pathsToCheck.length; i++) { - * stat(pathsToCheck[i], (err, stats) => { - * console.log(stats.isDirectory()); - * console.log(stats); - * }); - * } - * ``` - * - * The resulting output will resemble: - * - * ```console - * true - * Stats { - * dev: 16777220, - * mode: 16877, - * nlink: 3, - * uid: 501, - * gid: 20, - * rdev: 0, - * blksize: 4096, - * ino: 14214262, - * size: 96, - * blocks: 0, - * atimeMs: 1561174653071.963, - * mtimeMs: 1561174614583.3518, - * ctimeMs: 1561174626623.5366, - * birthtimeMs: 1561174126937.2893, - * atime: 2019-06-22T03:37:33.072Z, - * mtime: 2019-06-22T03:36:54.583Z, - * ctime: 2019-06-22T03:37:06.624Z, - * birthtime: 2019-06-22T03:28:46.937Z - * } - * false - * Stats { - * dev: 16777220, - * mode: 33188, - * nlink: 1, - * uid: 501, - * gid: 20, - * rdev: 0, - * blksize: 4096, - * ino: 14214074, - * size: 8, - * blocks: 8, - * atimeMs: 1561174616618.8555, - * mtimeMs: 1561174614584, - * ctimeMs: 1561174614583.8145, - * birthtimeMs: 1561174007710.7478, - * atime: 2019-06-22T03:36:56.619Z, - * mtime: 2019-06-22T03:36:54.584Z, - * ctime: 2019-06-22T03:36:54.584Z, - * birthtime: 2019-06-22T03:26:47.711Z - * } - * ``` - * @since v0.0.2 - */ - export function stat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; - export function stat( - path: PathLike, - options: - | (StatOptions & { - bigint?: false | undefined; - }) - | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void, - ): void; - export function stat( - path: PathLike, - options: StatOptions & { - bigint: true; - }, - callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void, - ): void; - export function stat( - path: PathLike, - options: StatOptions | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void, - ): void; - export namespace stat { - /** - * Asynchronous stat(2) - Get file status. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__( - path: PathLike, - options?: StatOptions & { - bigint?: false | undefined; - }, - ): Promise; - function __promisify__( - path: PathLike, - options: StatOptions & { - bigint: true; - }, - ): Promise; - function __promisify__(path: PathLike, options?: StatOptions): Promise; - } - export interface StatSyncFn extends Function { - (path: PathLike, options?: undefined): Stats; - ( - path: PathLike, - options?: StatSyncOptions & { - bigint?: false | undefined; - throwIfNoEntry: false; - }, - ): Stats | undefined; - ( - path: PathLike, - options: StatSyncOptions & { - bigint: true; - throwIfNoEntry: false; - }, - ): BigIntStats | undefined; - ( - path: PathLike, - options?: StatSyncOptions & { - bigint?: false | undefined; - }, - ): Stats; - ( - path: PathLike, - options: StatSyncOptions & { - bigint: true; - }, - ): BigIntStats; - ( - path: PathLike, - options: StatSyncOptions & { - bigint: boolean; - throwIfNoEntry?: false | undefined; - }, - ): Stats | BigIntStats; - (path: PathLike, options?: StatSyncOptions): Stats | BigIntStats | undefined; - } - /** - * Synchronous stat(2) - Get file status. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export const statSync: StatSyncFn; - /** - * Invokes the callback with the `fs.Stats` for the file descriptor. - * - * See the POSIX [`fstat(2)`](http://man7.org/linux/man-pages/man2/fstat.2.html) documentation for more detail. - * @since v0.1.95 - */ - export function fstat(fd: number, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; - export function fstat( - fd: number, - options: - | (StatOptions & { - bigint?: false | undefined; - }) - | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void, - ): void; - export function fstat( - fd: number, - options: StatOptions & { - bigint: true; - }, - callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void, - ): void; - export function fstat( - fd: number, - options: StatOptions | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void, - ): void; - export namespace fstat { - /** - * Asynchronous fstat(2) - Get file status. - * @param fd A file descriptor. - */ - function __promisify__( - fd: number, - options?: StatOptions & { - bigint?: false | undefined; - }, - ): Promise; - function __promisify__( - fd: number, - options: StatOptions & { - bigint: true; - }, - ): Promise; - function __promisify__(fd: number, options?: StatOptions): Promise; - } - /** - * Retrieves the `fs.Stats` for the file descriptor. - * - * See the POSIX [`fstat(2)`](http://man7.org/linux/man-pages/man2/fstat.2.html) documentation for more detail. - * @since v0.1.95 - */ - export function fstatSync( - fd: number, - options?: StatOptions & { - bigint?: false | undefined; - }, - ): Stats; - export function fstatSync( - fd: number, - options: StatOptions & { - bigint: true; - }, - ): BigIntStats; - export function fstatSync(fd: number, options?: StatOptions): Stats | BigIntStats; - /** - * Retrieves the `fs.Stats` for the symbolic link referred to by the path. - * The callback gets two arguments `(err, stats)` where `stats` is a `fs.Stats` object. `lstat()` is identical to `stat()`, except that if `path` is a symbolic - * link, then the link itself is stat-ed, not the file that it refers to. - * - * See the POSIX [`lstat(2)`](http://man7.org/linux/man-pages/man2/lstat.2.html) documentation for more details. - * @since v0.1.30 - */ - export function lstat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; - export function lstat( - path: PathLike, - options: - | (StatOptions & { - bigint?: false | undefined; - }) - | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void, - ): void; - export function lstat( - path: PathLike, - options: StatOptions & { - bigint: true; - }, - callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void, - ): void; - export function lstat( - path: PathLike, - options: StatOptions | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void, - ): void; - export namespace lstat { - /** - * Asynchronous lstat(2) - Get file status. Does not dereference symbolic links. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__( - path: PathLike, - options?: StatOptions & { - bigint?: false | undefined; - }, - ): Promise; - function __promisify__( - path: PathLike, - options: StatOptions & { - bigint: true; - }, - ): Promise; - function __promisify__(path: PathLike, options?: StatOptions): Promise; - } - /** - * Asynchronous [`statfs(2)`](http://man7.org/linux/man-pages/man2/statfs.2.html). Returns information about the mounted file system which - * contains `path`. The callback gets two arguments `(err, stats)` where `stats`is an `fs.StatFs` object. - * - * In case of an error, the `err.code` will be one of `Common System Errors`. - * @since v19.6.0, v18.15.0 - * @param path A path to an existing file or directory on the file system to be queried. - */ - export function statfs(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void): void; - export function statfs( - path: PathLike, - options: - | (StatFsOptions & { - bigint?: false | undefined; - }) - | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: StatsFs) => void, - ): void; - export function statfs( - path: PathLike, - options: StatFsOptions & { - bigint: true; - }, - callback: (err: NodeJS.ErrnoException | null, stats: BigIntStatsFs) => void, - ): void; - export function statfs( - path: PathLike, - options: StatFsOptions | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: StatsFs | BigIntStatsFs) => void, - ): void; - export namespace statfs { - /** - * Asynchronous statfs(2) - Returns information about the mounted file system which contains path. The callback gets two arguments (err, stats) where stats is an object. - * @param path A path to an existing file or directory on the file system to be queried. - */ - function __promisify__( - path: PathLike, - options?: StatFsOptions & { - bigint?: false | undefined; - }, - ): Promise; - function __promisify__( - path: PathLike, - options: StatFsOptions & { - bigint: true; - }, - ): Promise; - function __promisify__(path: PathLike, options?: StatFsOptions): Promise; - } - /** - * Synchronous [`statfs(2)`](http://man7.org/linux/man-pages/man2/statfs.2.html). Returns information about the mounted file system which - * contains `path`. - * - * In case of an error, the `err.code` will be one of `Common System Errors`. - * @since v19.6.0, v18.15.0 - * @param path A path to an existing file or directory on the file system to be queried. - */ - export function statfsSync( - path: PathLike, - options?: StatFsOptions & { - bigint?: false | undefined; - }, - ): StatsFs; - export function statfsSync( - path: PathLike, - options: StatFsOptions & { - bigint: true; - }, - ): BigIntStatsFs; - export function statfsSync(path: PathLike, options?: StatFsOptions): StatsFs | BigIntStatsFs; - /** - * Synchronous lstat(2) - Get file status. Does not dereference symbolic links. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export const lstatSync: StatSyncFn; - /** - * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. No arguments other than - * a possible - * exception are given to the completion callback. - * @since v0.1.31 - */ - export function link(existingPath: PathLike, newPath: PathLike, callback: NoParamCallback): void; - export namespace link { - /** - * Asynchronous link(2) - Create a new link (also known as a hard link) to an existing file. - * @param existingPath A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__(existingPath: PathLike, newPath: PathLike): Promise; - } - /** - * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. Returns `undefined`. - * @since v0.1.31 - */ - export function linkSync(existingPath: PathLike, newPath: PathLike): void; - /** - * Creates the link called `path` pointing to `target`. No arguments other than a - * possible exception are given to the completion callback. - * - * See the POSIX [`symlink(2)`](http://man7.org/linux/man-pages/man2/symlink.2.html) documentation for more details. - * - * The `type` argument is only available on Windows and ignored on other platforms. - * It can be set to `'dir'`, `'file'`, or `'junction'`. If the `type` argument is - * not a string, Node.js will autodetect `target` type and use `'file'` or `'dir'`. - * If the `target` does not exist, `'file'` will be used. Windows junction points - * require the destination path to be absolute. When using `'junction'`, the`target` argument will automatically be normalized to absolute path. Junction - * points on NTFS volumes can only point to directories. - * - * Relative targets are relative to the link's parent directory. - * - * ```js - * import { symlink } from 'node:fs'; - * - * symlink('./mew', './mewtwo', callback); - * ``` - * - * The above example creates a symbolic link `mewtwo` which points to `mew` in the - * same directory: - * - * ```bash - * $ tree . - * . - * ├── mew - * └── mewtwo -> ./mew - * ``` - * @since v0.1.31 - * @param [type='null'] - */ - export function symlink( - target: PathLike, - path: PathLike, - type: symlink.Type | undefined | null, - callback: NoParamCallback, - ): void; - /** - * Asynchronous symlink(2) - Create a new symbolic link to an existing file. - * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol. - * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol. - */ - export function symlink(target: PathLike, path: PathLike, callback: NoParamCallback): void; - export namespace symlink { - /** - * Asynchronous symlink(2) - Create a new symbolic link to an existing file. - * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol. - * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol. - * @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms). - * When using `'junction'`, the `target` argument will automatically be normalized to an absolute path. - */ - function __promisify__(target: PathLike, path: PathLike, type?: string | null): Promise; - type Type = "dir" | "file" | "junction"; - } - /** - * Returns `undefined`. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link symlink}. - * @since v0.1.31 - * @param [type='null'] - */ - export function symlinkSync(target: PathLike, path: PathLike, type?: symlink.Type | null): void; - /** - * Reads the contents of the symbolic link referred to by `path`. The callback gets - * two arguments `(err, linkString)`. - * - * See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more details. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the link path passed to the callback. If the `encoding` is set to `'buffer'`, - * the link path returned will be passed as a `Buffer` object. - * @since v0.1.31 - */ - export function readlink( - path: PathLike, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, linkString: string) => void, - ): void; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readlink( - path: PathLike, - options: BufferEncodingOption, - callback: (err: NodeJS.ErrnoException | null, linkString: NonSharedBuffer) => void, - ): void; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readlink( - path: PathLike, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, linkString: string | NonSharedBuffer) => void, - ): void; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function readlink( - path: PathLike, - callback: (err: NodeJS.ErrnoException | null, linkString: string) => void, - ): void; - export namespace readlink { - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options?: EncodingOption): Promise; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options: BufferEncodingOption): Promise; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options?: EncodingOption): Promise; - } - /** - * Returns the symbolic link's string value. - * - * See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more details. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the link path returned. If the `encoding` is set to `'buffer'`, - * the link path returned will be passed as a `Buffer` object. - * @since v0.1.31 - */ - export function readlinkSync(path: PathLike, options?: EncodingOption): string; - /** - * Synchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readlinkSync(path: PathLike, options: BufferEncodingOption): NonSharedBuffer; - /** - * Synchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readlinkSync(path: PathLike, options?: EncodingOption): string | NonSharedBuffer; - /** - * Asynchronously computes the canonical pathname by resolving `.`, `..`, and - * symbolic links. - * - * A canonical pathname is not necessarily unique. Hard links and bind mounts can - * expose a file system entity through many pathnames. - * - * This function behaves like [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html), with some exceptions: - * - * 1. No case conversion is performed on case-insensitive file systems. - * 2. The maximum number of symbolic links is platform-independent and generally - * (much) higher than what the native [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html) implementation supports. - * - * The `callback` gets two arguments `(err, resolvedPath)`. May use `process.cwd` to resolve relative paths. - * - * Only paths that can be converted to UTF8 strings are supported. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the path passed to the callback. If the `encoding` is set to `'buffer'`, - * the path returned will be passed as a `Buffer` object. - * - * If `path` resolves to a socket or a pipe, the function will return a system - * dependent name for that object. - * @since v0.1.31 - */ - export function realpath( - path: PathLike, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void, - ): void; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function realpath( - path: PathLike, - options: BufferEncodingOption, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: NonSharedBuffer) => void, - ): void; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function realpath( - path: PathLike, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | NonSharedBuffer) => void, - ): void; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function realpath( - path: PathLike, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void, - ): void; - export namespace realpath { - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options?: EncodingOption): Promise; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options: BufferEncodingOption): Promise; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options?: EncodingOption): Promise; - /** - * Asynchronous [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html). - * - * The `callback` gets two arguments `(err, resolvedPath)`. - * - * Only paths that can be converted to UTF8 strings are supported. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the path passed to the callback. If the `encoding` is set to `'buffer'`, - * the path returned will be passed as a `Buffer` object. - * - * On Linux, when Node.js is linked against musl libc, the procfs file system must - * be mounted on `/proc` in order for this function to work. Glibc does not have - * this restriction. - * @since v9.2.0 - */ - function native( - path: PathLike, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void, - ): void; - function native( - path: PathLike, - options: BufferEncodingOption, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: NonSharedBuffer) => void, - ): void; - function native( - path: PathLike, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | NonSharedBuffer) => void, - ): void; - function native( - path: PathLike, - callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void, - ): void; - } - /** - * Returns the resolved pathname. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link realpath}. - * @since v0.1.31 - */ - export function realpathSync(path: PathLike, options?: EncodingOption): string; - /** - * Synchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function realpathSync(path: PathLike, options: BufferEncodingOption): NonSharedBuffer; - /** - * Synchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function realpathSync(path: PathLike, options?: EncodingOption): string | NonSharedBuffer; - export namespace realpathSync { - function native(path: PathLike, options?: EncodingOption): string; - function native(path: PathLike, options: BufferEncodingOption): NonSharedBuffer; - function native(path: PathLike, options?: EncodingOption): string | NonSharedBuffer; - } - /** - * Asynchronously removes a file or symbolic link. No arguments other than a - * possible exception are given to the completion callback. - * - * ```js - * import { unlink } from 'node:fs'; - * // Assuming that 'path/file.txt' is a regular file. - * unlink('path/file.txt', (err) => { - * if (err) throw err; - * console.log('path/file.txt was deleted'); - * }); - * ``` - * - * `fs.unlink()` will not work on a directory, empty or otherwise. To remove a - * directory, use {@link rmdir}. - * - * See the POSIX [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html) documentation for more details. - * @since v0.0.2 - */ - export function unlink(path: PathLike, callback: NoParamCallback): void; - export namespace unlink { - /** - * Asynchronous unlink(2) - delete a name and possibly the file it refers to. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__(path: PathLike): Promise; - } - /** - * Synchronous [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html). Returns `undefined`. - * @since v0.1.21 - */ - export function unlinkSync(path: PathLike): void; - export interface RmDirOptions { - /** - * If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or - * `EPERM` error is encountered, Node.js will retry the operation with a linear - * backoff wait of `retryDelay` ms longer on each try. This option represents the - * number of retries. This option is ignored if the `recursive` option is not - * `true`. - * @default 0 - */ - maxRetries?: number | undefined; - /** - * @deprecated since v14.14.0 In future versions of Node.js and will trigger a warning - * `fs.rmdir(path, { recursive: true })` will throw if `path` does not exist or is a file. - * Use `fs.rm(path, { recursive: true, force: true })` instead. - * - * If `true`, perform a recursive directory removal. In - * recursive mode, operations are retried on failure. - * @default false - */ - recursive?: boolean | undefined; - /** - * The amount of time in milliseconds to wait between retries. - * This option is ignored if the `recursive` option is not `true`. - * @default 100 - */ - retryDelay?: number | undefined; - } - /** - * Asynchronous [`rmdir(2)`](http://man7.org/linux/man-pages/man2/rmdir.2.html). No arguments other than a possible exception are given - * to the completion callback. - * - * Using `fs.rmdir()` on a file (not a directory) results in an `ENOENT` error on - * Windows and an `ENOTDIR` error on POSIX. - * - * To get a behavior similar to the `rm -rf` Unix command, use {@link rm} with options `{ recursive: true, force: true }`. - * @since v0.0.2 - */ - export function rmdir(path: PathLike, callback: NoParamCallback): void; - export function rmdir(path: PathLike, options: RmDirOptions, callback: NoParamCallback): void; - export namespace rmdir { - /** - * Asynchronous rmdir(2) - delete a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__(path: PathLike, options?: RmDirOptions): Promise; - } - /** - * Synchronous [`rmdir(2)`](http://man7.org/linux/man-pages/man2/rmdir.2.html). Returns `undefined`. - * - * Using `fs.rmdirSync()` on a file (not a directory) results in an `ENOENT` error - * on Windows and an `ENOTDIR` error on POSIX. - * - * To get a behavior similar to the `rm -rf` Unix command, use {@link rmSync} with options `{ recursive: true, force: true }`. - * @since v0.1.21 - */ - export function rmdirSync(path: PathLike, options?: RmDirOptions): void; - export interface RmOptions { - /** - * When `true`, exceptions will be ignored if `path` does not exist. - * @default false - */ - force?: boolean | undefined; - /** - * If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or - * `EPERM` error is encountered, Node.js will retry the operation with a linear - * backoff wait of `retryDelay` ms longer on each try. This option represents the - * number of retries. This option is ignored if the `recursive` option is not - * `true`. - * @default 0 - */ - maxRetries?: number | undefined; - /** - * If `true`, perform a recursive directory removal. In - * recursive mode, operations are retried on failure. - * @default false - */ - recursive?: boolean | undefined; - /** - * The amount of time in milliseconds to wait between retries. - * This option is ignored if the `recursive` option is not `true`. - * @default 100 - */ - retryDelay?: number | undefined; - } - /** - * Asynchronously removes files and directories (modeled on the standard POSIX `rm` utility). No arguments other than a possible exception are given to the - * completion callback. - * @since v14.14.0 - */ - export function rm(path: PathLike, callback: NoParamCallback): void; - export function rm(path: PathLike, options: RmOptions, callback: NoParamCallback): void; - export namespace rm { - /** - * Asynchronously removes files and directories (modeled on the standard POSIX `rm` utility). - */ - function __promisify__(path: PathLike, options?: RmOptions): Promise; - } - /** - * Synchronously removes files and directories (modeled on the standard POSIX `rm` utility). Returns `undefined`. - * @since v14.14.0 - */ - export function rmSync(path: PathLike, options?: RmOptions): void; - export interface MakeDirectoryOptions { - /** - * Indicates whether parent folders should be created. - * If a folder was created, the path to the first created folder will be returned. - * @default false - */ - recursive?: boolean | undefined; - /** - * A file mode. If a string is passed, it is parsed as an octal integer. If not specified - * @default 0o777 - */ - mode?: Mode | undefined; - } - /** - * Asynchronously creates a directory. - * - * The callback is given a possible exception and, if `recursive` is `true`, the - * first directory path created, `(err[, path])`.`path` can still be `undefined` when `recursive` is `true`, if no directory was - * created (for instance, if it was previously created). - * - * The optional `options` argument can be an integer specifying `mode` (permission - * and sticky bits), or an object with a `mode` property and a `recursive` property indicating whether parent directories should be created. Calling `fs.mkdir()` when `path` is a directory that - * exists results in an error only - * when `recursive` is false. If `recursive` is false and the directory exists, - * an `EEXIST` error occurs. - * - * ```js - * import { mkdir } from 'node:fs'; - * - * // Create ./tmp/a/apple, regardless of whether ./tmp and ./tmp/a exist. - * mkdir('./tmp/a/apple', { recursive: true }, (err) => { - * if (err) throw err; - * }); - * ``` - * - * On Windows, using `fs.mkdir()` on the root directory even with recursion will - * result in an error: - * - * ```js - * import { mkdir } from 'node:fs'; - * - * mkdir('/', { recursive: true }, (err) => { - * // => [Error: EPERM: operation not permitted, mkdir 'C:\'] - * }); - * ``` - * - * See the POSIX [`mkdir(2)`](http://man7.org/linux/man-pages/man2/mkdir.2.html) documentation for more details. - * @since v0.1.8 - */ - export function mkdir( - path: PathLike, - options: MakeDirectoryOptions & { - recursive: true; - }, - callback: (err: NodeJS.ErrnoException | null, path?: string) => void, - ): void; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - export function mkdir( - path: PathLike, - options: - | Mode - | (MakeDirectoryOptions & { - recursive?: false | undefined; - }) - | null - | undefined, - callback: NoParamCallback, - ): void; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - export function mkdir( - path: PathLike, - options: Mode | MakeDirectoryOptions | null | undefined, - callback: (err: NodeJS.ErrnoException | null, path?: string) => void, - ): void; - /** - * Asynchronous mkdir(2) - create a directory with a mode of `0o777`. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function mkdir(path: PathLike, callback: NoParamCallback): void; - export namespace mkdir { - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - function __promisify__( - path: PathLike, - options: MakeDirectoryOptions & { - recursive: true; - }, - ): Promise; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - function __promisify__( - path: PathLike, - options?: - | Mode - | (MakeDirectoryOptions & { - recursive?: false | undefined; - }) - | null, - ): Promise; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - function __promisify__( - path: PathLike, - options?: Mode | MakeDirectoryOptions | null, - ): Promise; - } - /** - * Synchronously creates a directory. Returns `undefined`, or if `recursive` is `true`, the first directory path created. - * This is the synchronous version of {@link mkdir}. - * - * See the POSIX [`mkdir(2)`](http://man7.org/linux/man-pages/man2/mkdir.2.html) documentation for more details. - * @since v0.1.21 - */ - export function mkdirSync( - path: PathLike, - options: MakeDirectoryOptions & { - recursive: true; - }, - ): string | undefined; - /** - * Synchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - export function mkdirSync( - path: PathLike, - options?: - | Mode - | (MakeDirectoryOptions & { - recursive?: false | undefined; - }) - | null, - ): void; - /** - * Synchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - export function mkdirSync(path: PathLike, options?: Mode | MakeDirectoryOptions | null): string | undefined; - /** - * Creates a unique temporary directory. - * - * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. Due to platform - * inconsistencies, avoid trailing `X` characters in `prefix`. Some platforms, - * notably the BSDs, can return more than six random characters, and replace - * trailing `X` characters in `prefix` with random characters. - * - * The created directory path is passed as a string to the callback's second - * parameter. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use. - * - * ```js - * import { mkdtemp } from 'node:fs'; - * import { join } from 'node:path'; - * import { tmpdir } from 'node:os'; - * - * mkdtemp(join(tmpdir(), 'foo-'), (err, directory) => { - * if (err) throw err; - * console.log(directory); - * // Prints: /tmp/foo-itXde2 or C:\Users\...\AppData\Local\Temp\foo-itXde2 - * }); - * ``` - * - * The `fs.mkdtemp()` method will append the six randomly selected characters - * directly to the `prefix` string. For instance, given a directory `/tmp`, if the - * intention is to create a temporary directory _within_`/tmp`, the `prefix`must end with a trailing platform-specific path separator - * (`import { sep } from 'node:path'`). - * - * ```js - * import { tmpdir } from 'node:os'; - * import { mkdtemp } from 'node:fs'; - * - * // The parent directory for the new temporary directory - * const tmpDir = tmpdir(); - * - * // This method is *INCORRECT*: - * mkdtemp(tmpDir, (err, directory) => { - * if (err) throw err; - * console.log(directory); - * // Will print something similar to `/tmpabc123`. - * // A new temporary directory is created at the file system root - * // rather than *within* the /tmp directory. - * }); - * - * // This method is *CORRECT*: - * import { sep } from 'node:path'; - * mkdtemp(`${tmpDir}${sep}`, (err, directory) => { - * if (err) throw err; - * console.log(directory); - * // Will print something similar to `/tmp/abc123`. - * // A new temporary directory is created within - * // the /tmp directory. - * }); - * ``` - * @since v5.10.0 - */ - export function mkdtemp( - prefix: string, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, folder: string) => void, - ): void; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function mkdtemp( - prefix: string, - options: BufferEncodingOption, - callback: (err: NodeJS.ErrnoException | null, folder: NonSharedBuffer) => void, - ): void; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function mkdtemp( - prefix: string, - options: EncodingOption, - callback: (err: NodeJS.ErrnoException | null, folder: string | NonSharedBuffer) => void, - ): void; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - */ - export function mkdtemp( - prefix: string, - callback: (err: NodeJS.ErrnoException | null, folder: string) => void, - ): void; - export namespace mkdtemp { - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(prefix: string, options?: EncodingOption): Promise; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(prefix: string, options: BufferEncodingOption): Promise; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(prefix: string, options?: EncodingOption): Promise; - } - /** - * Returns the created directory path. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link mkdtemp}. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use. - * @since v5.10.0 - */ - export function mkdtempSync(prefix: string, options?: EncodingOption): string; - /** - * Synchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function mkdtempSync(prefix: string, options: BufferEncodingOption): NonSharedBuffer; - /** - * Synchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function mkdtempSync(prefix: string, options?: EncodingOption): string | NonSharedBuffer; - export interface DisposableTempDir extends AsyncDisposable { - /** - * The path of the created directory. - */ - path: string; - /** - * A function which removes the created directory. - */ - remove(): Promise; - /** - * The same as `remove`. - */ - [Symbol.asyncDispose](): Promise; - } - /** - * Returns a disposable object whose `path` property holds the created directory - * path. When the object is disposed, the directory and its contents will be - * removed if it still exists. If the directory cannot be deleted, disposal will - * throw an error. The object has a `remove()` method which will perform the same - * task. - * - * - * - * For detailed information, see the documentation of `fs.mkdtemp()`. - * - * There is no callback-based version of this API because it is designed for use - * with the `using` syntax. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use. - * @since v24.4.0 - */ - export function mkdtempDisposableSync(prefix: string, options?: EncodingOption): DisposableTempDir; - /** - * Reads the contents of a directory. The callback gets two arguments `(err, files)` where `files` is an array of the names of the files in the directory excluding `'.'` and `'..'`. - * - * See the POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more details. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the filenames passed to the callback. If the `encoding` is set to `'buffer'`, - * the filenames returned will be passed as `Buffer` objects. - * - * If `options.withFileTypes` is set to `true`, the `files` array will contain `fs.Dirent` objects. - * @since v0.1.8 - */ - export function readdir( - path: PathLike, - options: - | { - encoding: BufferEncoding | null; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - } - | BufferEncoding - | undefined - | null, - callback: (err: NodeJS.ErrnoException | null, files: string[]) => void, - ): void; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readdir( - path: PathLike, - options: - | { - encoding: "buffer"; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - } - | "buffer", - callback: (err: NodeJS.ErrnoException | null, files: NonSharedBuffer[]) => void, - ): void; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readdir( - path: PathLike, - options: - | (ObjectEncodingOptions & { - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - }) - | BufferEncoding - | undefined - | null, - callback: (err: NodeJS.ErrnoException | null, files: string[] | NonSharedBuffer[]) => void, - ): void; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function readdir( - path: PathLike, - callback: (err: NodeJS.ErrnoException | null, files: string[]) => void, - ): void; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. - */ - export function readdir( - path: PathLike, - options: ObjectEncodingOptions & { - withFileTypes: true; - recursive?: boolean | undefined; - }, - callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void, - ): void; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Must include `withFileTypes: true` and `encoding: 'buffer'`. - */ - export function readdir( - path: PathLike, - options: { - encoding: "buffer"; - withFileTypes: true; - recursive?: boolean | undefined; - }, - callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void, - ): void; - export namespace readdir { - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__( - path: PathLike, - options?: - | { - encoding: BufferEncoding | null; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - } - | BufferEncoding - | null, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__( - path: PathLike, - options: - | "buffer" - | { - encoding: "buffer"; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - }, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__( - path: PathLike, - options?: - | (ObjectEncodingOptions & { - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - }) - | BufferEncoding - | null, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options If called with `withFileTypes: true` the result data will be an array of Dirent - */ - function __promisify__( - path: PathLike, - options: ObjectEncodingOptions & { - withFileTypes: true; - recursive?: boolean | undefined; - }, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Must include `withFileTypes: true` and `encoding: 'buffer'`. - */ - function __promisify__( - path: PathLike, - options: { - encoding: "buffer"; - withFileTypes: true; - recursive?: boolean | undefined; - }, - ): Promise[]>; - } - /** - * Reads the contents of the directory. - * - * See the POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more details. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the filenames returned. If the `encoding` is set to `'buffer'`, - * the filenames returned will be passed as `Buffer` objects. - * - * If `options.withFileTypes` is set to `true`, the result will contain `fs.Dirent` objects. - * @since v0.1.21 - */ - export function readdirSync( - path: PathLike, - options?: - | { - encoding: BufferEncoding | null; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - } - | BufferEncoding - | null, - ): string[]; - /** - * Synchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readdirSync( - path: PathLike, - options: - | { - encoding: "buffer"; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - } - | "buffer", - ): NonSharedBuffer[]; - /** - * Synchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readdirSync( - path: PathLike, - options?: - | (ObjectEncodingOptions & { - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - }) - | BufferEncoding - | null, - ): string[] | NonSharedBuffer[]; - /** - * Synchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. - */ - export function readdirSync( - path: PathLike, - options: ObjectEncodingOptions & { - withFileTypes: true; - recursive?: boolean | undefined; - }, - ): Dirent[]; - /** - * Synchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Must include `withFileTypes: true` and `encoding: 'buffer'`. - */ - export function readdirSync( - path: PathLike, - options: { - encoding: "buffer"; - withFileTypes: true; - recursive?: boolean | undefined; - }, - ): Dirent[]; - /** - * Closes the file descriptor. No arguments other than a possible exception are - * given to the completion callback. - * - * Calling `fs.close()` on any file descriptor (`fd`) that is currently in use - * through any other `fs` operation may lead to undefined behavior. - * - * See the POSIX [`close(2)`](http://man7.org/linux/man-pages/man2/close.2.html) documentation for more detail. - * @since v0.0.2 - */ - export function close(fd: number, callback?: NoParamCallback): void; - export namespace close { - /** - * Asynchronous close(2) - close a file descriptor. - * @param fd A file descriptor. - */ - function __promisify__(fd: number): Promise; - } - /** - * Closes the file descriptor. Returns `undefined`. - * - * Calling `fs.closeSync()` on any file descriptor (`fd`) that is currently in use - * through any other `fs` operation may lead to undefined behavior. - * - * See the POSIX [`close(2)`](http://man7.org/linux/man-pages/man2/close.2.html) documentation for more detail. - * @since v0.1.21 - */ - export function closeSync(fd: number): void; - /** - * Asynchronous file open. See the POSIX [`open(2)`](http://man7.org/linux/man-pages/man2/open.2.html) documentation for more details. - * - * `mode` sets the file mode (permission and sticky bits), but only if the file was - * created. On Windows, only the write permission can be manipulated; see {@link chmod}. - * - * The callback gets two arguments `(err, fd)`. - * - * Some characters (`< > : " / \ | ? *`) are reserved under Windows as documented - * by [Naming Files, Paths, and Namespaces](https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file). Under NTFS, if the filename contains - * a colon, Node.js will open a file system stream, as described by [this MSDN page](https://docs.microsoft.com/en-us/windows/desktop/FileIO/using-streams). - * - * Functions based on `fs.open()` exhibit this behavior as well:`fs.writeFile()`, `fs.readFile()`, etc. - * @since v0.0.2 - * @param [flags='r'] See `support of file system `flags``. - * @param [mode=0o666] - */ - export function open( - path: PathLike, - flags: OpenMode | undefined, - mode: Mode | undefined | null, - callback: (err: NodeJS.ErrnoException | null, fd: number) => void, - ): void; - /** - * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param [flags='r'] See `support of file system `flags``. - */ - export function open( - path: PathLike, - flags: OpenMode | undefined, - callback: (err: NodeJS.ErrnoException | null, fd: number) => void, - ): void; - /** - * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function open(path: PathLike, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void; - export namespace open { - /** - * Asynchronous open(2) - open and possibly create a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param mode A file mode. If a string is passed, it is parsed as an octal integer. If not supplied, defaults to `0o666`. - */ - function __promisify__(path: PathLike, flags: OpenMode, mode?: Mode | null): Promise; - } - /** - * Returns an integer representing the file descriptor. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link open}. - * @since v0.1.21 - * @param [flags='r'] - * @param [mode=0o666] - */ - export function openSync(path: PathLike, flags: OpenMode, mode?: Mode | null): number; - /** - * Change the file system timestamps of the object referenced by `path`. - * - * The `atime` and `mtime` arguments follow these rules: - * - * * Values can be either numbers representing Unix epoch time in seconds, `Date`s, or a numeric string like `'123456789.0'`. - * * If the value can not be converted to a number, or is `NaN`, `Infinity`, or `-Infinity`, an `Error` will be thrown. - * @since v0.4.2 - */ - export function utimes(path: PathLike, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void; - export namespace utimes { - /** - * Asynchronously change file timestamps of the file referenced by the supplied path. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param atime The last access time. If a string is provided, it will be coerced to number. - * @param mtime The last modified time. If a string is provided, it will be coerced to number. - */ - function __promisify__(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise; - } - /** - * Returns `undefined`. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link utimes}. - * @since v0.4.2 - */ - export function utimesSync(path: PathLike, atime: TimeLike, mtime: TimeLike): void; - /** - * Change the file system timestamps of the object referenced by the supplied file - * descriptor. See {@link utimes}. - * @since v0.4.2 - */ - export function futimes(fd: number, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void; - export namespace futimes { - /** - * Asynchronously change file timestamps of the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param atime The last access time. If a string is provided, it will be coerced to number. - * @param mtime The last modified time. If a string is provided, it will be coerced to number. - */ - function __promisify__(fd: number, atime: TimeLike, mtime: TimeLike): Promise; - } - /** - * Synchronous version of {@link futimes}. Returns `undefined`. - * @since v0.4.2 - */ - export function futimesSync(fd: number, atime: TimeLike, mtime: TimeLike): void; - /** - * Request that all data for the open file descriptor is flushed to the storage - * device. The specific implementation is operating system and device specific. - * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. No arguments other - * than a possible exception are given to the completion callback. - * @since v0.1.96 - */ - export function fsync(fd: number, callback: NoParamCallback): void; - export namespace fsync { - /** - * Asynchronous fsync(2) - synchronize a file's in-core state with the underlying storage device. - * @param fd A file descriptor. - */ - function __promisify__(fd: number): Promise; - } - /** - * Request that all data for the open file descriptor is flushed to the storage - * device. The specific implementation is operating system and device specific. - * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. Returns `undefined`. - * @since v0.1.96 - */ - export function fsyncSync(fd: number): void; - export interface WriteOptions { - /** - * @default 0 - */ - offset?: number | undefined; - /** - * @default `buffer.byteLength - offset` - */ - length?: number | undefined; - /** - * @default null - */ - position?: number | null | undefined; - } - /** - * Write `buffer` to the file specified by `fd`. - * - * `offset` determines the part of the buffer to be written, and `length` is - * an integer specifying the number of bytes to write. - * - * `position` refers to the offset from the beginning of the file where this data - * should be written. If `typeof position !== 'number'`, the data will be written - * at the current position. See [`pwrite(2)`](http://man7.org/linux/man-pages/man2/pwrite.2.html). - * - * The callback will be given three arguments `(err, bytesWritten, buffer)` where `bytesWritten` specifies how many _bytes_ were written from `buffer`. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a promise for an `Object` with `bytesWritten` and `buffer` properties. - * - * It is unsafe to use `fs.write()` multiple times on the same file without waiting - * for the callback. For this scenario, {@link createWriteStream} is - * recommended. - * - * On Linux, positional writes don't work when the file is opened in append mode. - * The kernel ignores the position argument and always appends the data to - * the end of the file. - * @since v0.0.2 - * @param [offset=0] - * @param [length=buffer.byteLength - offset] - * @param [position='null'] - */ - export function write( - fd: number, - buffer: TBuffer, - offset: number | undefined | null, - length: number | undefined | null, - position: number | undefined | null, - callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, - ): void; - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. - * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. - */ - export function write( - fd: number, - buffer: TBuffer, - offset: number | undefined | null, - length: number | undefined | null, - callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, - ): void; - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. - */ - export function write( - fd: number, - buffer: TBuffer, - offset: number | undefined | null, - callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, - ): void; - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - */ - export function write( - fd: number, - buffer: TBuffer, - callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, - ): void; - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param options An object with the following properties: - * * `offset` The part of the buffer to be written. If not supplied, defaults to `0`. - * * `length` The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. - * * `position` The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - */ - export function write( - fd: number, - buffer: TBuffer, - options: WriteOptions, - callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void, - ): void; - /** - * Asynchronously writes `string` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param string A string to write. - * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - * @param encoding The expected string encoding. - */ - export function write( - fd: number, - string: string, - position: number | undefined | null, - encoding: BufferEncoding | undefined | null, - callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void, - ): void; - /** - * Asynchronously writes `string` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param string A string to write. - * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - */ - export function write( - fd: number, - string: string, - position: number | undefined | null, - callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void, - ): void; - /** - * Asynchronously writes `string` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param string A string to write. - */ - export function write( - fd: number, - string: string, - callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void, - ): void; - export namespace write { - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. - * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. - * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - */ - function __promisify__( - fd: number, - buffer?: TBuffer, - offset?: number, - length?: number, - position?: number | null, - ): Promise<{ - bytesWritten: number; - buffer: TBuffer; - }>; - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param options An object with the following properties: - * * `offset` The part of the buffer to be written. If not supplied, defaults to `0`. - * * `length` The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. - * * `position` The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - */ - function __promisify__( - fd: number, - buffer?: TBuffer, - options?: WriteOptions, - ): Promise<{ - bytesWritten: number; - buffer: TBuffer; - }>; - /** - * Asynchronously writes `string` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param string A string to write. - * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - * @param encoding The expected string encoding. - */ - function __promisify__( - fd: number, - string: string, - position?: number | null, - encoding?: BufferEncoding | null, - ): Promise<{ - bytesWritten: number; - buffer: string; - }>; - } - /** - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link write}. - * @since v0.1.21 - * @param [offset=0] - * @param [length=buffer.byteLength - offset] - * @param [position='null'] - * @return The number of bytes written. - */ - export function writeSync( - fd: number, - buffer: NodeJS.ArrayBufferView, - offset?: number | null, - length?: number | null, - position?: number | null, - ): number; - /** - * Synchronously writes `string` to the file referenced by the supplied file descriptor, returning the number of bytes written. - * @param fd A file descriptor. - * @param string A string to write. - * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - * @param encoding The expected string encoding. - */ - export function writeSync( - fd: number, - string: string, - position?: number | null, - encoding?: BufferEncoding | null, - ): number; - export type ReadPosition = number | bigint; - export interface ReadOptions { - /** - * @default 0 - */ - offset?: number | undefined; - /** - * @default `length of buffer` - */ - length?: number | undefined; - /** - * @default null - */ - position?: ReadPosition | null | undefined; - } - export interface ReadOptionsWithBuffer extends ReadOptions { - buffer?: T | undefined; - } - /** @deprecated Use `ReadOptions` instead. */ - // TODO: remove in future major - export interface ReadSyncOptions extends ReadOptions {} - /** @deprecated Use `ReadOptionsWithBuffer` instead. */ - // TODO: remove in future major - export interface ReadAsyncOptions extends ReadOptionsWithBuffer {} - /** - * Read data from the file specified by `fd`. - * - * The callback is given the three arguments, `(err, bytesRead, buffer)`. - * - * If the file is not modified concurrently, the end-of-file is reached when the - * number of bytes read is zero. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a promise for an `Object` with `bytesRead` and `buffer` properties. - * @since v0.0.2 - * @param buffer The buffer that the data will be written to. - * @param offset The position in `buffer` to write the data to. - * @param length The number of bytes to read. - * @param position Specifies where to begin reading from in the file. If `position` is `null` or `-1 `, data will be read from the current file position, and the file position will be updated. If - * `position` is an integer, the file position will be unchanged. - */ - export function read( - fd: number, - buffer: TBuffer, - offset: number, - length: number, - position: ReadPosition | null, - callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, - ): void; - /** - * Similar to the above `fs.read` function, this version takes an optional `options` object. - * If not otherwise specified in an `options` object, - * `buffer` defaults to `Buffer.alloc(16384)`, - * `offset` defaults to `0`, - * `length` defaults to `buffer.byteLength`, `- offset` as of Node 17.6.0 - * `position` defaults to `null` - * @since v12.17.0, 13.11.0 - */ - export function read( - fd: number, - options: ReadOptionsWithBuffer, - callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, - ): void; - export function read( - fd: number, - buffer: TBuffer, - options: ReadOptions, - callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, - ): void; - export function read( - fd: number, - buffer: TBuffer, - callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void, - ): void; - export function read( - fd: number, - callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NonSharedBuffer) => void, - ): void; - export namespace read { - /** - * @param fd A file descriptor. - * @param buffer The buffer that the data will be written to. - * @param offset The offset in the buffer at which to start writing. - * @param length The number of bytes to read. - * @param position The offset from the beginning of the file from which data should be read. If `null`, data will be read from the current position. - */ - function __promisify__( - fd: number, - buffer: TBuffer, - offset: number, - length: number, - position: ReadPosition | null, - ): Promise<{ - bytesRead: number; - buffer: TBuffer; - }>; - function __promisify__( - fd: number, - options: ReadOptionsWithBuffer, - ): Promise<{ - bytesRead: number; - buffer: TBuffer; - }>; - function __promisify__(fd: number): Promise<{ - bytesRead: number; - buffer: NonSharedBuffer; - }>; - } - /** - * Returns the number of `bytesRead`. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link read}. - * @since v0.1.21 - * @param [position='null'] - */ - export function readSync( - fd: number, - buffer: NodeJS.ArrayBufferView, - offset: number, - length: number, - position: ReadPosition | null, - ): number; - /** - * Similar to the above `fs.readSync` function, this version takes an optional `options` object. - * If no `options` object is specified, it will default with the above values. - */ - export function readSync(fd: number, buffer: NodeJS.ArrayBufferView, opts?: ReadOptions): number; - /** - * Asynchronously reads the entire contents of a file. - * - * ```js - * import { readFile } from 'node:fs'; - * - * readFile('/etc/passwd', (err, data) => { - * if (err) throw err; - * console.log(data); - * }); - * ``` - * - * The callback is passed two arguments `(err, data)`, where `data` is the - * contents of the file. - * - * If no encoding is specified, then the raw buffer is returned. - * - * If `options` is a string, then it specifies the encoding: - * - * ```js - * import { readFile } from 'node:fs'; - * - * readFile('/etc/passwd', 'utf8', callback); - * ``` - * - * When the path is a directory, the behavior of `fs.readFile()` and {@link readFileSync} is platform-specific. On macOS, Linux, and Windows, an - * error will be returned. On FreeBSD, a representation of the directory's contents - * will be returned. - * - * ```js - * import { readFile } from 'node:fs'; - * - * // macOS, Linux, and Windows - * readFile('', (err, data) => { - * // => [Error: EISDIR: illegal operation on a directory, read ] - * }); - * - * // FreeBSD - * readFile('', (err, data) => { - * // => null, - * }); - * ``` - * - * It is possible to abort an ongoing request using an `AbortSignal`. If a - * request is aborted the callback is called with an `AbortError`: - * - * ```js - * import { readFile } from 'node:fs'; - * - * const controller = new AbortController(); - * const signal = controller.signal; - * readFile(fileInfo[0].name, { signal }, (err, buf) => { - * // ... - * }); - * // When you want to abort the request - * controller.abort(); - * ``` - * - * The `fs.readFile()` function buffers the entire file. To minimize memory costs, - * when possible prefer streaming via `fs.createReadStream()`. - * - * Aborting an ongoing request does not abort individual operating - * system requests but rather the internal buffering `fs.readFile` performs. - * @since v0.1.29 - * @param path filename or file descriptor - */ - export function readFile( - path: PathOrFileDescriptor, - options: - | ({ - encoding?: null | undefined; - flag?: string | undefined; - } & Abortable) - | undefined - | null, - callback: (err: NodeJS.ErrnoException | null, data: NonSharedBuffer) => void, - ): void; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - export function readFile( - path: PathOrFileDescriptor, - options: - | ({ - encoding: BufferEncoding; - flag?: string | undefined; - } & Abortable) - | BufferEncoding, - callback: (err: NodeJS.ErrnoException | null, data: string) => void, - ): void; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - export function readFile( - path: PathOrFileDescriptor, - options: - | (ObjectEncodingOptions & { - flag?: string | undefined; - } & Abortable) - | BufferEncoding - | undefined - | null, - callback: (err: NodeJS.ErrnoException | null, data: string | NonSharedBuffer) => void, - ): void; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - */ - export function readFile( - path: PathOrFileDescriptor, - callback: (err: NodeJS.ErrnoException | null, data: NonSharedBuffer) => void, - ): void; - export namespace readFile { - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options An object that may contain an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - function __promisify__( - path: PathOrFileDescriptor, - options?: { - encoding?: null | undefined; - flag?: string | undefined; - } | null, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - function __promisify__( - path: PathOrFileDescriptor, - options: - | { - encoding: BufferEncoding; - flag?: string | undefined; - } - | BufferEncoding, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - function __promisify__( - path: PathOrFileDescriptor, - options?: - | (ObjectEncodingOptions & { - flag?: string | undefined; - }) - | BufferEncoding - | null, - ): Promise; - } - /** - * Returns the contents of the `path`. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link readFile}. - * - * If the `encoding` option is specified then this function returns a - * string. Otherwise it returns a buffer. - * - * Similar to {@link readFile}, when the path is a directory, the behavior of `fs.readFileSync()` is platform-specific. - * - * ```js - * import { readFileSync } from 'node:fs'; - * - * // macOS, Linux, and Windows - * readFileSync(''); - * // => [Error: EISDIR: illegal operation on a directory, read ] - * - * // FreeBSD - * readFileSync(''); // => - * ``` - * @since v0.1.8 - * @param path filename or file descriptor - */ - export function readFileSync( - path: PathOrFileDescriptor, - options?: { - encoding?: null | undefined; - flag?: string | undefined; - } | null, - ): NonSharedBuffer; - /** - * Synchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - export function readFileSync( - path: PathOrFileDescriptor, - options: - | { - encoding: BufferEncoding; - flag?: string | undefined; - } - | BufferEncoding, - ): string; - /** - * Synchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - export function readFileSync( - path: PathOrFileDescriptor, - options?: - | (ObjectEncodingOptions & { - flag?: string | undefined; - }) - | BufferEncoding - | null, - ): string | NonSharedBuffer; - export type WriteFileOptions = - | ( - & ObjectEncodingOptions - & Abortable - & { - mode?: Mode | undefined; - flag?: string | undefined; - flush?: boolean | undefined; - } - ) - | BufferEncoding - | null; - /** - * When `file` is a filename, asynchronously writes data to the file, replacing the - * file if it already exists. `data` can be a string or a buffer. - * - * When `file` is a file descriptor, the behavior is similar to calling `fs.write()` directly (which is recommended). See the notes below on using - * a file descriptor. - * - * The `encoding` option is ignored if `data` is a buffer. - * - * The `mode` option only affects the newly created file. See {@link open} for more details. - * - * ```js - * import { writeFile } from 'node:fs'; - * import { Buffer } from 'node:buffer'; - * - * const data = new Uint8Array(Buffer.from('Hello Node.js')); - * writeFile('message.txt', data, (err) => { - * if (err) throw err; - * console.log('The file has been saved!'); - * }); - * ``` - * - * If `options` is a string, then it specifies the encoding: - * - * ```js - * import { writeFile } from 'node:fs'; - * - * writeFile('message.txt', 'Hello Node.js', 'utf8', callback); - * ``` - * - * It is unsafe to use `fs.writeFile()` multiple times on the same file without - * waiting for the callback. For this scenario, {@link createWriteStream} is - * recommended. - * - * Similarly to `fs.readFile` \- `fs.writeFile` is a convenience method that - * performs multiple `write` calls internally to write the buffer passed to it. - * For performance sensitive code consider using {@link createWriteStream}. - * - * It is possible to use an `AbortSignal` to cancel an `fs.writeFile()`. - * Cancelation is "best effort", and some amount of data is likely still - * to be written. - * - * ```js - * import { writeFile } from 'node:fs'; - * import { Buffer } from 'node:buffer'; - * - * const controller = new AbortController(); - * const { signal } = controller; - * const data = new Uint8Array(Buffer.from('Hello Node.js')); - * writeFile('message.txt', data, { signal }, (err) => { - * // When a request is aborted - the callback is called with an AbortError - * }); - * // When the request should be aborted - * controller.abort(); - * ``` - * - * Aborting an ongoing request does not abort individual operating - * system requests but rather the internal buffering `fs.writeFile` performs. - * @since v0.1.29 - * @param file filename or file descriptor - */ - export function writeFile( - file: PathOrFileDescriptor, - data: string | NodeJS.ArrayBufferView, - options: WriteFileOptions, - callback: NoParamCallback, - ): void; - /** - * Asynchronously writes data to a file, replacing the file if it already exists. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. - */ - export function writeFile( - path: PathOrFileDescriptor, - data: string | NodeJS.ArrayBufferView, - callback: NoParamCallback, - ): void; - export namespace writeFile { - /** - * Asynchronously writes data to a file, replacing the file if it already exists. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. - * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. - * If `encoding` is not supplied, the default of `'utf8'` is used. - * If `mode` is not supplied, the default of `0o666` is used. - * If `mode` is a string, it is parsed as an octal integer. - * If `flag` is not supplied, the default of `'w'` is used. - */ - function __promisify__( - path: PathOrFileDescriptor, - data: string | NodeJS.ArrayBufferView, - options?: WriteFileOptions, - ): Promise; - } - /** - * Returns `undefined`. - * - * The `mode` option only affects the newly created file. See {@link open} for more details. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link writeFile}. - * @since v0.1.29 - * @param file filename or file descriptor - */ - export function writeFileSync( - file: PathOrFileDescriptor, - data: string | NodeJS.ArrayBufferView, - options?: WriteFileOptions, - ): void; - /** - * Asynchronously append data to a file, creating the file if it does not yet - * exist. `data` can be a string or a `Buffer`. - * - * The `mode` option only affects the newly created file. See {@link open} for more details. - * - * ```js - * import { appendFile } from 'node:fs'; - * - * appendFile('message.txt', 'data to append', (err) => { - * if (err) throw err; - * console.log('The "data to append" was appended to file!'); - * }); - * ``` - * - * If `options` is a string, then it specifies the encoding: - * - * ```js - * import { appendFile } from 'node:fs'; - * - * appendFile('message.txt', 'data to append', 'utf8', callback); - * ``` - * - * The `path` may be specified as a numeric file descriptor that has been opened - * for appending (using `fs.open()` or `fs.openSync()`). The file descriptor will - * not be closed automatically. - * - * ```js - * import { open, close, appendFile } from 'node:fs'; - * - * function closeFd(fd) { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * - * open('message.txt', 'a', (err, fd) => { - * if (err) throw err; - * - * try { - * appendFile(fd, 'data to append', 'utf8', (err) => { - * closeFd(fd); - * if (err) throw err; - * }); - * } catch (err) { - * closeFd(fd); - * throw err; - * } - * }); - * ``` - * @since v0.6.7 - * @param path filename or file descriptor - */ - export function appendFile( - path: PathOrFileDescriptor, - data: string | Uint8Array, - options: WriteFileOptions, - callback: NoParamCallback, - ): void; - /** - * Asynchronously append data to a file, creating the file if it does not exist. - * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. - */ - export function appendFile(file: PathOrFileDescriptor, data: string | Uint8Array, callback: NoParamCallback): void; - export namespace appendFile { - /** - * Asynchronously append data to a file, creating the file if it does not exist. - * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. - * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. - * If `encoding` is not supplied, the default of `'utf8'` is used. - * If `mode` is not supplied, the default of `0o666` is used. - * If `mode` is a string, it is parsed as an octal integer. - * If `flag` is not supplied, the default of `'a'` is used. - */ - function __promisify__( - file: PathOrFileDescriptor, - data: string | Uint8Array, - options?: WriteFileOptions, - ): Promise; - } - /** - * Synchronously append data to a file, creating the file if it does not yet - * exist. `data` can be a string or a `Buffer`. - * - * The `mode` option only affects the newly created file. See {@link open} for more details. - * - * ```js - * import { appendFileSync } from 'node:fs'; - * - * try { - * appendFileSync('message.txt', 'data to append'); - * console.log('The "data to append" was appended to file!'); - * } catch (err) { - * // Handle the error - * } - * ``` - * - * If `options` is a string, then it specifies the encoding: - * - * ```js - * import { appendFileSync } from 'node:fs'; - * - * appendFileSync('message.txt', 'data to append', 'utf8'); - * ``` - * - * The `path` may be specified as a numeric file descriptor that has been opened - * for appending (using `fs.open()` or `fs.openSync()`). The file descriptor will - * not be closed automatically. - * - * ```js - * import { openSync, closeSync, appendFileSync } from 'node:fs'; - * - * let fd; - * - * try { - * fd = openSync('message.txt', 'a'); - * appendFileSync(fd, 'data to append', 'utf8'); - * } catch (err) { - * // Handle the error - * } finally { - * if (fd !== undefined) - * closeSync(fd); - * } - * ``` - * @since v0.6.7 - * @param path filename or file descriptor - */ - export function appendFileSync( - path: PathOrFileDescriptor, - data: string | Uint8Array, - options?: WriteFileOptions, - ): void; - /** - * Watch for changes on `filename`. The callback `listener` will be called each - * time the file is accessed. - * - * The `options` argument may be omitted. If provided, it should be an object. The `options` object may contain a boolean named `persistent` that indicates - * whether the process should continue to run as long as files are being watched. - * The `options` object may specify an `interval` property indicating how often the - * target should be polled in milliseconds. - * - * The `listener` gets two arguments the current stat object and the previous - * stat object: - * - * ```js - * import { watchFile } from 'node:fs'; - * - * watchFile('message.text', (curr, prev) => { - * console.log(`the current mtime is: ${curr.mtime}`); - * console.log(`the previous mtime was: ${prev.mtime}`); - * }); - * ``` - * - * These stat objects are instances of `fs.Stat`. If the `bigint` option is `true`, - * the numeric values in these objects are specified as `BigInt`s. - * - * To be notified when the file was modified, not just accessed, it is necessary - * to compare `curr.mtimeMs` and `prev.mtimeMs`. - * - * When an `fs.watchFile` operation results in an `ENOENT` error, it - * will invoke the listener once, with all the fields zeroed (or, for dates, the - * Unix Epoch). If the file is created later on, the listener will be called - * again, with the latest stat objects. This is a change in functionality since - * v0.10. - * - * Using {@link watch} is more efficient than `fs.watchFile` and `fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and `fs.unwatchFile` when possible. - * - * When a file being watched by `fs.watchFile()` disappears and reappears, - * then the contents of `previous` in the second callback event (the file's - * reappearance) will be the same as the contents of `previous` in the first - * callback event (its disappearance). - * - * This happens when: - * - * * the file is deleted, followed by a restore - * * the file is renamed and then renamed a second time back to its original name - * @since v0.1.31 - */ - export interface WatchFileOptions { - bigint?: boolean | undefined; - persistent?: boolean | undefined; - interval?: number | undefined; - } - /** - * Watch for changes on `filename`. The callback `listener` will be called each - * time the file is accessed. - * - * The `options` argument may be omitted. If provided, it should be an object. The `options` object may contain a boolean named `persistent` that indicates - * whether the process should continue to run as long as files are being watched. - * The `options` object may specify an `interval` property indicating how often the - * target should be polled in milliseconds. - * - * The `listener` gets two arguments the current stat object and the previous - * stat object: - * - * ```js - * import { watchFile } from 'node:fs'; - * - * watchFile('message.text', (curr, prev) => { - * console.log(`the current mtime is: ${curr.mtime}`); - * console.log(`the previous mtime was: ${prev.mtime}`); - * }); - * ``` - * - * These stat objects are instances of `fs.Stat`. If the `bigint` option is `true`, - * the numeric values in these objects are specified as `BigInt`s. - * - * To be notified when the file was modified, not just accessed, it is necessary - * to compare `curr.mtimeMs` and `prev.mtimeMs`. - * - * When an `fs.watchFile` operation results in an `ENOENT` error, it - * will invoke the listener once, with all the fields zeroed (or, for dates, the - * Unix Epoch). If the file is created later on, the listener will be called - * again, with the latest stat objects. This is a change in functionality since - * v0.10. - * - * Using {@link watch} is more efficient than `fs.watchFile` and `fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and `fs.unwatchFile` when possible. - * - * When a file being watched by `fs.watchFile()` disappears and reappears, - * then the contents of `previous` in the second callback event (the file's - * reappearance) will be the same as the contents of `previous` in the first - * callback event (its disappearance). - * - * This happens when: - * - * * the file is deleted, followed by a restore - * * the file is renamed and then renamed a second time back to its original name - * @since v0.1.31 - */ - export function watchFile( - filename: PathLike, - options: - | (WatchFileOptions & { - bigint?: false | undefined; - }) - | undefined, - listener: StatsListener, - ): StatWatcher; - export function watchFile( - filename: PathLike, - options: - | (WatchFileOptions & { - bigint: true; - }) - | undefined, - listener: BigIntStatsListener, - ): StatWatcher; - /** - * Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed. - * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - */ - export function watchFile(filename: PathLike, listener: StatsListener): StatWatcher; - /** - * Stop watching for changes on `filename`. If `listener` is specified, only that - * particular listener is removed. Otherwise, _all_ listeners are removed, - * effectively stopping watching of `filename`. - * - * Calling `fs.unwatchFile()` with a filename that is not being watched is a - * no-op, not an error. - * - * Using {@link watch} is more efficient than `fs.watchFile()` and `fs.unwatchFile()`. `fs.watch()` should be used instead of `fs.watchFile()` and `fs.unwatchFile()` when possible. - * @since v0.1.31 - * @param listener Optional, a listener previously attached using `fs.watchFile()` - */ - export function unwatchFile(filename: PathLike, listener?: StatsListener): void; - export function unwatchFile(filename: PathLike, listener?: BigIntStatsListener): void; - export interface WatchOptions extends Abortable { - encoding?: BufferEncoding | "buffer" | undefined; - persistent?: boolean | undefined; - recursive?: boolean | undefined; - } - export interface WatchOptionsWithBufferEncoding extends WatchOptions { - encoding: "buffer"; - } - export interface WatchOptionsWithStringEncoding extends WatchOptions { - encoding?: BufferEncoding | undefined; - } - export type WatchEventType = "rename" | "change"; - export type WatchListener = (event: WatchEventType, filename: T | null) => void; - export type StatsListener = (curr: Stats, prev: Stats) => void; - export type BigIntStatsListener = (curr: BigIntStats, prev: BigIntStats) => void; - /** - * Watch for changes on `filename`, where `filename` is either a file or a - * directory. - * - * The second argument is optional. If `options` is provided as a string, it - * specifies the `encoding`. Otherwise `options` should be passed as an object. - * - * The listener callback gets two arguments `(eventType, filename)`. `eventType`is either `'rename'` or `'change'`, and `filename` is the name of the file - * which triggered the event. - * - * On most platforms, `'rename'` is emitted whenever a filename appears or - * disappears in the directory. - * - * The listener callback is attached to the `'change'` event fired by `fs.FSWatcher`, but it is not the same thing as the `'change'` value of `eventType`. - * - * If a `signal` is passed, aborting the corresponding AbortController will close - * the returned `fs.FSWatcher`. - * @since v0.5.10 - * @param listener - */ - export function watch( - filename: PathLike, - options?: WatchOptionsWithStringEncoding | BufferEncoding | null, - listener?: WatchListener, - ): FSWatcher; - export function watch( - filename: PathLike, - options: WatchOptionsWithBufferEncoding | "buffer", - listener: WatchListener, - ): FSWatcher; - export function watch( - filename: PathLike, - options: WatchOptions | BufferEncoding | "buffer" | null, - listener: WatchListener, - ): FSWatcher; - export function watch(filename: PathLike, listener: WatchListener): FSWatcher; - /** - * Test whether or not the given path exists by checking with the file system. - * Then call the `callback` argument with either true or false: - * - * ```js - * import { exists } from 'node:fs'; - * - * exists('/etc/passwd', (e) => { - * console.log(e ? 'it exists' : 'no passwd!'); - * }); - * ``` - * - * **The parameters for this callback are not consistent with other Node.js** - * **callbacks.** Normally, the first parameter to a Node.js callback is an `err` parameter, optionally followed by other parameters. The `fs.exists()` callback - * has only one boolean parameter. This is one reason `fs.access()` is recommended - * instead of `fs.exists()`. - * - * Using `fs.exists()` to check for the existence of a file before calling `fs.open()`, `fs.readFile()`, or `fs.writeFile()` is not recommended. Doing - * so introduces a race condition, since other processes may change the file's - * state between the two calls. Instead, user code should open/read/write the - * file directly and handle the error raised if the file does not exist. - * - * **write (NOT RECOMMENDED)** - * - * ```js - * import { exists, open, close } from 'node:fs'; - * - * exists('myfile', (e) => { - * if (e) { - * console.error('myfile already exists'); - * } else { - * open('myfile', 'wx', (err, fd) => { - * if (err) throw err; - * - * try { - * writeMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * } - * }); - * ``` - * - * **write (RECOMMENDED)** - * - * ```js - * import { open, close } from 'node:fs'; - * open('myfile', 'wx', (err, fd) => { - * if (err) { - * if (err.code === 'EEXIST') { - * console.error('myfile already exists'); - * return; - * } - * - * throw err; - * } - * - * try { - * writeMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * ``` - * - * **read (NOT RECOMMENDED)** - * - * ```js - * import { open, close, exists } from 'node:fs'; - * - * exists('myfile', (e) => { - * if (e) { - * open('myfile', 'r', (err, fd) => { - * if (err) throw err; - * - * try { - * readMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * } else { - * console.error('myfile does not exist'); - * } - * }); - * ``` - * - * **read (RECOMMENDED)** - * - * ```js - * import { open, close } from 'node:fs'; - * - * open('myfile', 'r', (err, fd) => { - * if (err) { - * if (err.code === 'ENOENT') { - * console.error('myfile does not exist'); - * return; - * } - * - * throw err; - * } - * - * try { - * readMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * ``` - * - * The "not recommended" examples above check for existence and then use the - * file; the "recommended" examples are better because they use the file directly - * and handle the error, if any. - * - * In general, check for the existence of a file only if the file won't be - * used directly, for example when its existence is a signal from another - * process. - * @since v0.0.2 - * @deprecated Since v1.0.0 - Use {@link stat} or {@link access} instead. - */ - export function exists(path: PathLike, callback: (exists: boolean) => void): void; - /** @deprecated */ - export namespace exists { - /** - * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - */ - function __promisify__(path: PathLike): Promise; - } - /** - * Returns `true` if the path exists, `false` otherwise. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link exists}. - * - * `fs.exists()` is deprecated, but `fs.existsSync()` is not. The `callback` parameter to `fs.exists()` accepts parameters that are inconsistent with other - * Node.js callbacks. `fs.existsSync()` does not use a callback. - * - * ```js - * import { existsSync } from 'node:fs'; - * - * if (existsSync('/etc/passwd')) - * console.log('The path exists.'); - * ``` - * @since v0.1.21 - */ - export function existsSync(path: PathLike): boolean; - export namespace constants { - // File Access Constants - /** Constant for fs.access(). File is visible to the calling process. */ - const F_OK: number; - /** Constant for fs.access(). File can be read by the calling process. */ - const R_OK: number; - /** Constant for fs.access(). File can be written by the calling process. */ - const W_OK: number; - /** Constant for fs.access(). File can be executed by the calling process. */ - const X_OK: number; - // File Copy Constants - /** Constant for fs.copyFile. Flag indicating the destination file should not be overwritten if it already exists. */ - const COPYFILE_EXCL: number; - /** - * Constant for fs.copyFile. copy operation will attempt to create a copy-on-write reflink. - * If the underlying platform does not support copy-on-write, then a fallback copy mechanism is used. - */ - const COPYFILE_FICLONE: number; - /** - * Constant for fs.copyFile. Copy operation will attempt to create a copy-on-write reflink. - * If the underlying platform does not support copy-on-write, then the operation will fail with an error. - */ - const COPYFILE_FICLONE_FORCE: number; - // File Open Constants - /** Constant for fs.open(). Flag indicating to open a file for read-only access. */ - const O_RDONLY: number; - /** Constant for fs.open(). Flag indicating to open a file for write-only access. */ - const O_WRONLY: number; - /** Constant for fs.open(). Flag indicating to open a file for read-write access. */ - const O_RDWR: number; - /** Constant for fs.open(). Flag indicating to create the file if it does not already exist. */ - const O_CREAT: number; - /** Constant for fs.open(). Flag indicating that opening a file should fail if the O_CREAT flag is set and the file already exists. */ - const O_EXCL: number; - /** - * Constant for fs.open(). Flag indicating that if path identifies a terminal device, - * opening the path shall not cause that terminal to become the controlling terminal for the process - * (if the process does not already have one). - */ - const O_NOCTTY: number; - /** Constant for fs.open(). Flag indicating that if the file exists and is a regular file, and the file is opened successfully for write access, its length shall be truncated to zero. */ - const O_TRUNC: number; - /** Constant for fs.open(). Flag indicating that data will be appended to the end of the file. */ - const O_APPEND: number; - /** Constant for fs.open(). Flag indicating that the open should fail if the path is not a directory. */ - const O_DIRECTORY: number; - /** - * constant for fs.open(). - * Flag indicating reading accesses to the file system will no longer result in - * an update to the atime information associated with the file. - * This flag is available on Linux operating systems only. - */ - const O_NOATIME: number; - /** Constant for fs.open(). Flag indicating that the open should fail if the path is a symbolic link. */ - const O_NOFOLLOW: number; - /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O. */ - const O_SYNC: number; - /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O with write operations waiting for data integrity. */ - const O_DSYNC: number; - /** Constant for fs.open(). Flag indicating to open the symbolic link itself rather than the resource it is pointing to. */ - const O_SYMLINK: number; - /** Constant for fs.open(). When set, an attempt will be made to minimize caching effects of file I/O. */ - const O_DIRECT: number; - /** Constant for fs.open(). Flag indicating to open the file in nonblocking mode when possible. */ - const O_NONBLOCK: number; - // File Type Constants - /** Constant for fs.Stats mode property for determining a file's type. Bit mask used to extract the file type code. */ - const S_IFMT: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a regular file. */ - const S_IFREG: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a directory. */ - const S_IFDIR: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a character-oriented device file. */ - const S_IFCHR: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a block-oriented device file. */ - const S_IFBLK: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a FIFO/pipe. */ - const S_IFIFO: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a symbolic link. */ - const S_IFLNK: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a socket. */ - const S_IFSOCK: number; - // File Mode Constants - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by owner. */ - const S_IRWXU: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by owner. */ - const S_IRUSR: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by owner. */ - const S_IWUSR: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by owner. */ - const S_IXUSR: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by group. */ - const S_IRWXG: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by group. */ - const S_IRGRP: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by group. */ - const S_IWGRP: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by group. */ - const S_IXGRP: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by others. */ - const S_IRWXO: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by others. */ - const S_IROTH: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by others. */ - const S_IWOTH: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by others. */ - const S_IXOTH: number; - /** - * When set, a memory file mapping is used to access the file. This flag - * is available on Windows operating systems only. On other operating systems, - * this flag is ignored. - */ - const UV_FS_O_FILEMAP: number; - } - /** - * Tests a user's permissions for the file or directory specified by `path`. - * The `mode` argument is an optional integer that specifies the accessibility - * checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK` - * (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for - * possible values of `mode`. - * - * The final argument, `callback`, is a callback function that is invoked with - * a possible error argument. If any of the accessibility checks fail, the error - * argument will be an `Error` object. The following examples check if `package.json` exists, and if it is readable or writable. - * - * ```js - * import { access, constants } from 'node:fs'; - * - * const file = 'package.json'; - * - * // Check if the file exists in the current directory. - * access(file, constants.F_OK, (err) => { - * console.log(`${file} ${err ? 'does not exist' : 'exists'}`); - * }); - * - * // Check if the file is readable. - * access(file, constants.R_OK, (err) => { - * console.log(`${file} ${err ? 'is not readable' : 'is readable'}`); - * }); - * - * // Check if the file is writable. - * access(file, constants.W_OK, (err) => { - * console.log(`${file} ${err ? 'is not writable' : 'is writable'}`); - * }); - * - * // Check if the file is readable and writable. - * access(file, constants.R_OK | constants.W_OK, (err) => { - * console.log(`${file} ${err ? 'is not' : 'is'} readable and writable`); - * }); - * ``` - * - * Do not use `fs.access()` to check for the accessibility of a file before calling `fs.open()`, `fs.readFile()`, or `fs.writeFile()`. Doing - * so introduces a race condition, since other processes may change the file's - * state between the two calls. Instead, user code should open/read/write the - * file directly and handle the error raised if the file is not accessible. - * - * **write (NOT RECOMMENDED)** - * - * ```js - * import { access, open, close } from 'node:fs'; - * - * access('myfile', (err) => { - * if (!err) { - * console.error('myfile already exists'); - * return; - * } - * - * open('myfile', 'wx', (err, fd) => { - * if (err) throw err; - * - * try { - * writeMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * }); - * ``` - * - * **write (RECOMMENDED)** - * - * ```js - * import { open, close } from 'node:fs'; - * - * open('myfile', 'wx', (err, fd) => { - * if (err) { - * if (err.code === 'EEXIST') { - * console.error('myfile already exists'); - * return; - * } - * - * throw err; - * } - * - * try { - * writeMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * ``` - * - * **read (NOT RECOMMENDED)** - * - * ```js - * import { access, open, close } from 'node:fs'; - * access('myfile', (err) => { - * if (err) { - * if (err.code === 'ENOENT') { - * console.error('myfile does not exist'); - * return; - * } - * - * throw err; - * } - * - * open('myfile', 'r', (err, fd) => { - * if (err) throw err; - * - * try { - * readMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * }); - * ``` - * - * **read (RECOMMENDED)** - * - * ```js - * import { open, close } from 'node:fs'; - * - * open('myfile', 'r', (err, fd) => { - * if (err) { - * if (err.code === 'ENOENT') { - * console.error('myfile does not exist'); - * return; - * } - * - * throw err; - * } - * - * try { - * readMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * ``` - * - * The "not recommended" examples above check for accessibility and then use the - * file; the "recommended" examples are better because they use the file directly - * and handle the error, if any. - * - * In general, check for the accessibility of a file only if the file will not be - * used directly, for example when its accessibility is a signal from another - * process. - * - * On Windows, access-control policies (ACLs) on a directory may limit access to - * a file or directory. The `fs.access()` function, however, does not check the - * ACL and therefore may report that a path is accessible even if the ACL restricts - * the user from reading or writing to it. - * @since v0.11.15 - * @param [mode=fs.constants.F_OK] - */ - export function access(path: PathLike, mode: number | undefined, callback: NoParamCallback): void; - /** - * Asynchronously tests a user's permissions for the file specified by path. - * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - */ - export function access(path: PathLike, callback: NoParamCallback): void; - export namespace access { - /** - * Asynchronously tests a user's permissions for the file specified by path. - * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - */ - function __promisify__(path: PathLike, mode?: number): Promise; - } - /** - * Synchronously tests a user's permissions for the file or directory specified - * by `path`. The `mode` argument is an optional integer that specifies the - * accessibility checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and - * `fs.constants.X_OK` (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for - * possible values of `mode`. - * - * If any of the accessibility checks fail, an `Error` will be thrown. Otherwise, - * the method will return `undefined`. - * - * ```js - * import { accessSync, constants } from 'node:fs'; - * - * try { - * accessSync('etc/passwd', constants.R_OK | constants.W_OK); - * console.log('can read/write'); - * } catch (err) { - * console.error('no access!'); - * } - * ``` - * @since v0.11.15 - * @param [mode=fs.constants.F_OK] - */ - export function accessSync(path: PathLike, mode?: number): void; - interface StreamOptions { - flags?: string | undefined; - encoding?: BufferEncoding | undefined; - fd?: number | promises.FileHandle | undefined; - mode?: number | undefined; - autoClose?: boolean | undefined; - emitClose?: boolean | undefined; - start?: number | undefined; - signal?: AbortSignal | null | undefined; - highWaterMark?: number | undefined; - } - interface FSImplementation { - open?: (...args: any[]) => any; - close?: (...args: any[]) => any; - } - interface CreateReadStreamFSImplementation extends FSImplementation { - read: (...args: any[]) => any; - } - interface CreateWriteStreamFSImplementation extends FSImplementation { - write: (...args: any[]) => any; - writev?: (...args: any[]) => any; - } - interface ReadStreamOptions extends StreamOptions { - fs?: CreateReadStreamFSImplementation | null | undefined; - end?: number | undefined; - } - interface WriteStreamOptions extends StreamOptions { - fs?: CreateWriteStreamFSImplementation | null | undefined; - flush?: boolean | undefined; - } - /** - * `options` can include `start` and `end` values to read a range of bytes from - * the file instead of the entire file. Both `start` and `end` are inclusive and - * start counting at 0, allowed values are in the - * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. If `fd` is specified and `start` is - * omitted or `undefined`, `fs.createReadStream()` reads sequentially from the - * current file position. The `encoding` can be any one of those accepted by `Buffer`. - * - * If `fd` is specified, `ReadStream` will ignore the `path` argument and will use - * the specified file descriptor. This means that no `'open'` event will be - * emitted. `fd` should be blocking; non-blocking `fd`s should be passed to `net.Socket`. - * - * If `fd` points to a character device that only supports blocking reads - * (such as keyboard or sound card), read operations do not finish until data is - * available. This can prevent the process from exiting and the stream from - * closing naturally. - * - * By default, the stream will emit a `'close'` event after it has been - * destroyed. Set the `emitClose` option to `false` to change this behavior. - * - * By providing the `fs` option, it is possible to override the corresponding `fs` implementations for `open`, `read`, and `close`. When providing the `fs` option, - * an override for `read` is required. If no `fd` is provided, an override for `open` is also required. If `autoClose` is `true`, an override for `close` is - * also required. - * - * ```js - * import { createReadStream } from 'node:fs'; - * - * // Create a stream from some character device. - * const stream = createReadStream('/dev/input/event0'); - * setTimeout(() => { - * stream.close(); // This may not close the stream. - * // Artificially marking end-of-stream, as if the underlying resource had - * // indicated end-of-file by itself, allows the stream to close. - * // This does not cancel pending read operations, and if there is such an - * // operation, the process may still not be able to exit successfully - * // until it finishes. - * stream.push(null); - * stream.read(0); - * }, 100); - * ``` - * - * If `autoClose` is false, then the file descriptor won't be closed, even if - * there's an error. It is the application's responsibility to close it and make - * sure there's no file descriptor leak. If `autoClose` is set to true (default - * behavior), on `'error'` or `'end'` the file descriptor will be closed - * automatically. - * - * `mode` sets the file mode (permission and sticky bits), but only if the - * file was created. - * - * An example to read the last 10 bytes of a file which is 100 bytes long: - * - * ```js - * import { createReadStream } from 'node:fs'; - * - * createReadStream('sample.txt', { start: 90, end: 99 }); - * ``` - * - * If `options` is a string, then it specifies the encoding. - * @since v0.1.31 - */ - export function createReadStream(path: PathLike, options?: BufferEncoding | ReadStreamOptions): ReadStream; - /** - * `options` may also include a `start` option to allow writing data at some - * position past the beginning of the file, allowed values are in the - * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than - * replacing it may require the `flags` option to be set to `r+` rather than the - * default `w`. The `encoding` can be any one of those accepted by `Buffer`. - * - * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'` the file descriptor will be closed automatically. If `autoClose` is false, - * then the file descriptor won't be closed, even if there's an error. - * It is the application's responsibility to close it and make sure there's no - * file descriptor leak. - * - * By default, the stream will emit a `'close'` event after it has been - * destroyed. Set the `emitClose` option to `false` to change this behavior. - * - * By providing the `fs` option it is possible to override the corresponding `fs` implementations for `open`, `write`, `writev`, and `close`. Overriding `write()` without `writev()` can reduce - * performance as some optimizations (`_writev()`) - * will be disabled. When providing the `fs` option, overrides for at least one of `write` and `writev` are required. If no `fd` option is supplied, an override - * for `open` is also required. If `autoClose` is `true`, an override for `close` is also required. - * - * Like `fs.ReadStream`, if `fd` is specified, `fs.WriteStream` will ignore the `path` argument and will use the specified file descriptor. This means that no `'open'` event will be - * emitted. `fd` should be blocking; non-blocking `fd`s - * should be passed to `net.Socket`. - * - * If `options` is a string, then it specifies the encoding. - * @since v0.1.31 - */ - export function createWriteStream(path: PathLike, options?: BufferEncoding | WriteStreamOptions): WriteStream; - /** - * Forces all currently queued I/O operations associated with the file to the - * operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. No arguments other - * than a possible - * exception are given to the completion callback. - * @since v0.1.96 - */ - export function fdatasync(fd: number, callback: NoParamCallback): void; - export namespace fdatasync { - /** - * Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device. - * @param fd A file descriptor. - */ - function __promisify__(fd: number): Promise; - } - /** - * Forces all currently queued I/O operations associated with the file to the - * operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. Returns `undefined`. - * @since v0.1.96 - */ - export function fdatasyncSync(fd: number): void; - /** - * Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it - * already exists. No arguments other than a possible exception are given to the - * callback function. Node.js makes no guarantees about the atomicity of the copy - * operation. If an error occurs after the destination file has been opened for - * writing, Node.js will attempt to remove the destination. - * - * `mode` is an optional integer that specifies the behavior - * of the copy operation. It is possible to create a mask consisting of the bitwise - * OR of two or more values (e.g.`fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`). - * - * * `fs.constants.COPYFILE_EXCL`: The copy operation will fail if `dest` already - * exists. - * * `fs.constants.COPYFILE_FICLONE`: The copy operation will attempt to create a - * copy-on-write reflink. If the platform does not support copy-on-write, then a - * fallback copy mechanism is used. - * * `fs.constants.COPYFILE_FICLONE_FORCE`: The copy operation will attempt to - * create a copy-on-write reflink. If the platform does not support - * copy-on-write, then the operation will fail. - * - * ```js - * import { copyFile, constants } from 'node:fs'; - * - * function callback(err) { - * if (err) throw err; - * console.log('source.txt was copied to destination.txt'); - * } - * - * // destination.txt will be created or overwritten by default. - * copyFile('source.txt', 'destination.txt', callback); - * - * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists. - * copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL, callback); - * ``` - * @since v8.5.0 - * @param src source filename to copy - * @param dest destination filename of the copy operation - * @param [mode=0] modifiers for copy operation. - */ - export function copyFile(src: PathLike, dest: PathLike, callback: NoParamCallback): void; - export function copyFile(src: PathLike, dest: PathLike, mode: number, callback: NoParamCallback): void; - export namespace copyFile { - function __promisify__(src: PathLike, dst: PathLike, mode?: number): Promise; - } - /** - * Synchronously copies `src` to `dest`. By default, `dest` is overwritten if it - * already exists. Returns `undefined`. Node.js makes no guarantees about the - * atomicity of the copy operation. If an error occurs after the destination file - * has been opened for writing, Node.js will attempt to remove the destination. - * - * `mode` is an optional integer that specifies the behavior - * of the copy operation. It is possible to create a mask consisting of the bitwise - * OR of two or more values (e.g.`fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`). - * - * * `fs.constants.COPYFILE_EXCL`: The copy operation will fail if `dest` already - * exists. - * * `fs.constants.COPYFILE_FICLONE`: The copy operation will attempt to create a - * copy-on-write reflink. If the platform does not support copy-on-write, then a - * fallback copy mechanism is used. - * * `fs.constants.COPYFILE_FICLONE_FORCE`: The copy operation will attempt to - * create a copy-on-write reflink. If the platform does not support - * copy-on-write, then the operation will fail. - * - * ```js - * import { copyFileSync, constants } from 'node:fs'; - * - * // destination.txt will be created or overwritten by default. - * copyFileSync('source.txt', 'destination.txt'); - * console.log('source.txt was copied to destination.txt'); - * - * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists. - * copyFileSync('source.txt', 'destination.txt', constants.COPYFILE_EXCL); - * ``` - * @since v8.5.0 - * @param src source filename to copy - * @param dest destination filename of the copy operation - * @param [mode=0] modifiers for copy operation. - */ - export function copyFileSync(src: PathLike, dest: PathLike, mode?: number): void; - /** - * Write an array of `ArrayBufferView`s to the file specified by `fd` using `writev()`. - * - * `position` is the offset from the beginning of the file where this data - * should be written. If `typeof position !== 'number'`, the data will be written - * at the current position. - * - * The callback will be given three arguments: `err`, `bytesWritten`, and `buffers`. `bytesWritten` is how many bytes were written from `buffers`. - * - * If this method is `util.promisify()` ed, it returns a promise for an `Object` with `bytesWritten` and `buffers` properties. - * - * It is unsafe to use `fs.writev()` multiple times on the same file without - * waiting for the callback. For this scenario, use {@link createWriteStream}. - * - * On Linux, positional writes don't work when the file is opened in append mode. - * The kernel ignores the position argument and always appends the data to - * the end of the file. - * @since v12.9.0 - * @param [position='null'] - */ - export function writev( - fd: number, - buffers: TBuffers, - cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: TBuffers) => void, - ): void; - export function writev( - fd: number, - buffers: TBuffers, - position: number | null, - cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: TBuffers) => void, - ): void; - // Providing a default type parameter doesn't provide true BC for userland consumers, but at least suppresses TS2314 - // TODO: remove default in future major version - export interface WriteVResult { - bytesWritten: number; - buffers: T; - } - export namespace writev { - function __promisify__( - fd: number, - buffers: TBuffers, - position?: number, - ): Promise>; - } - /** - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link writev}. - * @since v12.9.0 - * @param [position='null'] - * @return The number of bytes written. - */ - export function writevSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number; - /** - * Read from a file specified by `fd` and write to an array of `ArrayBufferView`s - * using `readv()`. - * - * `position` is the offset from the beginning of the file from where data - * should be read. If `typeof position !== 'number'`, the data will be read - * from the current position. - * - * The callback will be given three arguments: `err`, `bytesRead`, and `buffers`. `bytesRead` is how many bytes were read from the file. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a promise for an `Object` with `bytesRead` and `buffers` properties. - * @since v13.13.0, v12.17.0 - * @param [position='null'] - */ - export function readv( - fd: number, - buffers: TBuffers, - cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: TBuffers) => void, - ): void; - export function readv( - fd: number, - buffers: TBuffers, - position: number | null, - cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: TBuffers) => void, - ): void; - // Providing a default type parameter doesn't provide true BC for userland consumers, but at least suppresses TS2314 - // TODO: remove default in future major version - export interface ReadVResult { - bytesRead: number; - buffers: T; - } - export namespace readv { - function __promisify__( - fd: number, - buffers: TBuffers, - position?: number, - ): Promise>; - } - /** - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link readv}. - * @since v13.13.0, v12.17.0 - * @param [position='null'] - * @return The number of bytes read. - */ - export function readvSync(fd: number, buffers: readonly NodeJS.ArrayBufferView[], position?: number): number; - - export interface OpenAsBlobOptions { - /** - * An optional mime type for the blob. - * - * @default 'undefined' - */ - type?: string | undefined; - } - - /** - * Returns a `Blob` whose data is backed by the given file. - * - * The file must not be modified after the `Blob` is created. Any modifications - * will cause reading the `Blob` data to fail with a `DOMException` error. - * Synchronous stat operations on the file when the `Blob` is created, and before - * each read in order to detect whether the file data has been modified on disk. - * - * ```js - * import { openAsBlob } from 'node:fs'; - * - * const blob = await openAsBlob('the.file.txt'); - * const ab = await blob.arrayBuffer(); - * blob.stream(); - * ``` - * @since v19.8.0 - */ - export function openAsBlob(path: PathLike, options?: OpenAsBlobOptions): Promise; - - export interface OpenDirOptions { - /** - * @default 'utf8' - */ - encoding?: BufferEncoding | undefined; - /** - * Number of directory entries that are buffered - * internally when reading from the directory. Higher values lead to better - * performance but higher memory usage. - * @default 32 - */ - bufferSize?: number | undefined; - /** - * @default false - */ - recursive?: boolean | undefined; - } - /** - * Synchronously open a directory. See [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html). - * - * Creates an `fs.Dir`, which contains all further functions for reading from - * and cleaning up the directory. - * - * The `encoding` option sets the encoding for the `path` while opening the - * directory and subsequent read operations. - * @since v12.12.0 - */ - export function opendirSync(path: PathLike, options?: OpenDirOptions): Dir; - /** - * Asynchronously open a directory. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for - * more details. - * - * Creates an `fs.Dir`, which contains all further functions for reading from - * and cleaning up the directory. - * - * The `encoding` option sets the encoding for the `path` while opening the - * directory and subsequent read operations. - * @since v12.12.0 - */ - export function opendir(path: PathLike, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void; - export function opendir( - path: PathLike, - options: OpenDirOptions, - cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void, - ): void; - export namespace opendir { - function __promisify__(path: PathLike, options?: OpenDirOptions): Promise; - } - export interface BigIntStats extends StatsBase { - atimeNs: bigint; - mtimeNs: bigint; - ctimeNs: bigint; - birthtimeNs: bigint; - } - export interface BigIntOptions { - bigint: true; - } - export interface StatOptions { - bigint?: boolean | undefined; - } - export interface StatSyncOptions extends StatOptions { - throwIfNoEntry?: boolean | undefined; - } - interface CopyOptionsBase { - /** - * Dereference symlinks - * @default false - */ - dereference?: boolean | undefined; - /** - * When `force` is `false`, and the destination - * exists, throw an error. - * @default false - */ - errorOnExist?: boolean | undefined; - /** - * Overwrite existing file or directory. _The copy - * operation will ignore errors if you set this to false and the destination - * exists. Use the `errorOnExist` option to change this behavior. - * @default true - */ - force?: boolean | undefined; - /** - * Modifiers for copy operation. See `mode` flag of {@link copyFileSync()} - */ - mode?: number | undefined; - /** - * When `true` timestamps from `src` will - * be preserved. - * @default false - */ - preserveTimestamps?: boolean | undefined; - /** - * Copy directories recursively. - * @default false - */ - recursive?: boolean | undefined; - /** - * When true, path resolution for symlinks will be skipped - * @default false - */ - verbatimSymlinks?: boolean | undefined; - } - export interface CopyOptions extends CopyOptionsBase { - /** - * Function to filter copied files/directories. Return - * `true` to copy the item, `false` to ignore it. - */ - filter?: ((source: string, destination: string) => boolean | Promise) | undefined; - } - export interface CopySyncOptions extends CopyOptionsBase { - /** - * Function to filter copied files/directories. Return - * `true` to copy the item, `false` to ignore it. - */ - filter?: ((source: string, destination: string) => boolean) | undefined; - } - /** - * Asynchronously copies the entire directory structure from `src` to `dest`, - * including subdirectories and files. - * - * When copying a directory to another directory, globs are not supported and - * behavior is similar to `cp dir1/ dir2/`. - * @since v16.7.0 - * @experimental - * @param src source path to copy. - * @param dest destination path to copy to. - */ - export function cp( - source: string | URL, - destination: string | URL, - callback: (err: NodeJS.ErrnoException | null) => void, - ): void; - export function cp( - source: string | URL, - destination: string | URL, - opts: CopyOptions, - callback: (err: NodeJS.ErrnoException | null) => void, - ): void; - /** - * Synchronously copies the entire directory structure from `src` to `dest`, - * including subdirectories and files. - * - * When copying a directory to another directory, globs are not supported and - * behavior is similar to `cp dir1/ dir2/`. - * @since v16.7.0 - * @experimental - * @param src source path to copy. - * @param dest destination path to copy to. - */ - export function cpSync(source: string | URL, destination: string | URL, opts?: CopySyncOptions): void; - - // TODO: collapse - interface _GlobOptions { - /** - * Current working directory. - * @default process.cwd() - */ - cwd?: string | URL | undefined; - /** - * `true` if the glob should return paths as `Dirent`s, `false` otherwise. - * @default false - * @since v22.2.0 - */ - withFileTypes?: boolean | undefined; - /** - * Function to filter out files/directories or a - * list of glob patterns to be excluded. If a function is provided, return - * `true` to exclude the item, `false` to include it. - * If a string array is provided, each string should be a glob pattern that - * specifies paths to exclude. Note: Negation patterns (e.g., '!foo.js') are - * not supported. - * @default undefined - */ - exclude?: ((fileName: T) => boolean) | readonly string[] | undefined; - } - export interface GlobOptions extends _GlobOptions {} - export interface GlobOptionsWithFileTypes extends _GlobOptions { - withFileTypes: true; - } - export interface GlobOptionsWithoutFileTypes extends _GlobOptions { - withFileTypes?: false | undefined; - } - - /** - * Retrieves the files matching the specified pattern. - * - * ```js - * import { glob } from 'node:fs'; - * - * glob('*.js', (err, matches) => { - * if (err) throw err; - * console.log(matches); - * }); - * ``` - * @since v22.0.0 - */ - export function glob( - pattern: string | readonly string[], - callback: (err: NodeJS.ErrnoException | null, matches: string[]) => void, - ): void; - export function glob( - pattern: string | readonly string[], - options: GlobOptionsWithFileTypes, - callback: ( - err: NodeJS.ErrnoException | null, - matches: Dirent[], - ) => void, - ): void; - export function glob( - pattern: string | readonly string[], - options: GlobOptionsWithoutFileTypes, - callback: ( - err: NodeJS.ErrnoException | null, - matches: string[], - ) => void, - ): void; - export function glob( - pattern: string | readonly string[], - options: GlobOptions, - callback: ( - err: NodeJS.ErrnoException | null, - matches: Dirent[] | string[], - ) => void, - ): void; - /** - * ```js - * import { globSync } from 'node:fs'; - * - * console.log(globSync('*.js')); - * ``` - * @since v22.0.0 - * @returns paths of files that match the pattern. - */ - export function globSync(pattern: string | readonly string[]): string[]; - export function globSync( - pattern: string | readonly string[], - options: GlobOptionsWithFileTypes, - ): Dirent[]; - export function globSync( - pattern: string | readonly string[], - options: GlobOptionsWithoutFileTypes, - ): string[]; - export function globSync( - pattern: string | readonly string[], - options: GlobOptions, - ): Dirent[] | string[]; -} -declare module "node:fs" { - export * from "fs"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/fs/promises.d.ts b/build_vtk_bundle/node_modules/@types/node/fs/promises.d.ts deleted file mode 100644 index 986b6da5..00000000 --- a/build_vtk_bundle/node_modules/@types/node/fs/promises.d.ts +++ /dev/null @@ -1,1317 +0,0 @@ -/** - * The `fs/promises` API provides asynchronous file system methods that return - * promises. - * - * The promise APIs use the underlying Node.js threadpool to perform file - * system operations off the event loop thread. These operations are not - * synchronized or threadsafe. Care must be taken when performing multiple - * concurrent modifications on the same file or data corruption may occur. - * @since v10.0.0 - */ -declare module "fs/promises" { - import { NonSharedBuffer } from "node:buffer"; - import { Abortable } from "node:events"; - import { Stream } from "node:stream"; - import { ReadableStream } from "node:stream/web"; - import { - BigIntStats, - BigIntStatsFs, - BufferEncodingOption, - constants as fsConstants, - CopyOptions, - Dir, - Dirent, - DisposableTempDir, - EncodingOption, - GlobOptions, - GlobOptionsWithFileTypes, - GlobOptionsWithoutFileTypes, - MakeDirectoryOptions, - Mode, - ObjectEncodingOptions, - OpenDirOptions, - OpenMode, - PathLike, - ReadOptions, - ReadOptionsWithBuffer, - ReadPosition, - ReadStream, - ReadVResult, - RmDirOptions, - RmOptions, - StatFsOptions, - StatOptions, - Stats, - StatsFs, - TimeLike, - WatchEventType, - WatchOptions as _WatchOptions, - WriteStream, - WriteVResult, - } from "node:fs"; - import { Interface as ReadlineInterface } from "node:readline"; - interface FileChangeInfo { - eventType: WatchEventType; - filename: T | null; - } - interface FlagAndOpenMode { - mode?: Mode | undefined; - flag?: OpenMode | undefined; - } - interface FileReadResult { - bytesRead: number; - buffer: T; - } - /** @deprecated This interface will be removed in a future version. Use `import { ReadOptionsWithBuffer } from "node:fs"` instead. */ - interface FileReadOptions { - /** - * @default `Buffer.alloc(0xffff)` - */ - buffer?: T; - /** - * @default 0 - */ - offset?: number | null; - /** - * @default `buffer.byteLength` - */ - length?: number | null; - position?: ReadPosition | null; - } - interface CreateReadStreamOptions extends Abortable { - encoding?: BufferEncoding | null | undefined; - autoClose?: boolean | undefined; - emitClose?: boolean | undefined; - start?: number | undefined; - end?: number | undefined; - highWaterMark?: number | undefined; - } - interface CreateWriteStreamOptions { - encoding?: BufferEncoding | null | undefined; - autoClose?: boolean | undefined; - emitClose?: boolean | undefined; - start?: number | undefined; - highWaterMark?: number | undefined; - flush?: boolean | undefined; - } - interface ReadableWebStreamOptions { - autoClose?: boolean | undefined; - } - // TODO: Add `EventEmitter` close - interface FileHandle { - /** - * The numeric file descriptor managed by the {FileHandle} object. - * @since v10.0.0 - */ - readonly fd: number; - /** - * Alias of `filehandle.writeFile()`. - * - * When operating on file handles, the mode cannot be changed from what it was set - * to with `fsPromises.open()`. Therefore, this is equivalent to `filehandle.writeFile()`. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - appendFile( - data: string | Uint8Array, - options?: - | (ObjectEncodingOptions & Abortable) - | BufferEncoding - | null, - ): Promise; - /** - * Changes the ownership of the file. A wrapper for [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html). - * @since v10.0.0 - * @param uid The file's new owner's user id. - * @param gid The file's new group's group id. - * @return Fulfills with `undefined` upon success. - */ - chown(uid: number, gid: number): Promise; - /** - * Modifies the permissions on the file. See [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html). - * @since v10.0.0 - * @param mode the file mode bit mask. - * @return Fulfills with `undefined` upon success. - */ - chmod(mode: Mode): Promise; - /** - * Unlike the 16 KiB default `highWaterMark` for a `stream.Readable`, the stream - * returned by this method has a default `highWaterMark` of 64 KiB. - * - * `options` can include `start` and `end` values to read a range of bytes from - * the file instead of the entire file. Both `start` and `end` are inclusive and - * start counting at 0, allowed values are in the - * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. If `start` is - * omitted or `undefined`, `filehandle.createReadStream()` reads sequentially from - * the current file position. The `encoding` can be any one of those accepted by `Buffer`. - * - * If the `FileHandle` points to a character device that only supports blocking - * reads (such as keyboard or sound card), read operations do not finish until data - * is available. This can prevent the process from exiting and the stream from - * closing naturally. - * - * By default, the stream will emit a `'close'` event after it has been - * destroyed. Set the `emitClose` option to `false` to change this behavior. - * - * ```js - * import { open } from 'node:fs/promises'; - * - * const fd = await open('/dev/input/event0'); - * // Create a stream from some character device. - * const stream = fd.createReadStream(); - * setTimeout(() => { - * stream.close(); // This may not close the stream. - * // Artificially marking end-of-stream, as if the underlying resource had - * // indicated end-of-file by itself, allows the stream to close. - * // This does not cancel pending read operations, and if there is such an - * // operation, the process may still not be able to exit successfully - * // until it finishes. - * stream.push(null); - * stream.read(0); - * }, 100); - * ``` - * - * If `autoClose` is false, then the file descriptor won't be closed, even if - * there's an error. It is the application's responsibility to close it and make - * sure there's no file descriptor leak. If `autoClose` is set to true (default - * behavior), on `'error'` or `'end'` the file descriptor will be closed - * automatically. - * - * An example to read the last 10 bytes of a file which is 100 bytes long: - * - * ```js - * import { open } from 'node:fs/promises'; - * - * const fd = await open('sample.txt'); - * fd.createReadStream({ start: 90, end: 99 }); - * ``` - * @since v16.11.0 - */ - createReadStream(options?: CreateReadStreamOptions): ReadStream; - /** - * `options` may also include a `start` option to allow writing data at some - * position past the beginning of the file, allowed values are in the - * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than - * replacing it may require the `flags` `open` option to be set to `r+` rather than - * the default `r`. The `encoding` can be any one of those accepted by `Buffer`. - * - * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'` the file descriptor will be closed automatically. If `autoClose` is false, - * then the file descriptor won't be closed, even if there's an error. - * It is the application's responsibility to close it and make sure there's no - * file descriptor leak. - * - * By default, the stream will emit a `'close'` event after it has been - * destroyed. Set the `emitClose` option to `false` to change this behavior. - * @since v16.11.0 - */ - createWriteStream(options?: CreateWriteStreamOptions): WriteStream; - /** - * Forces all currently queued I/O operations associated with the file to the - * operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. - * - * Unlike `filehandle.sync` this method does not flush modified metadata. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - datasync(): Promise; - /** - * Request that all data for the open file descriptor is flushed to the storage - * device. The specific implementation is operating system and device specific. - * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - sync(): Promise; - /** - * Reads data from the file and stores that in the given buffer. - * - * If the file is not modified concurrently, the end-of-file is reached when the - * number of bytes read is zero. - * @since v10.0.0 - * @param buffer A buffer that will be filled with the file data read. - * @param offset The location in the buffer at which to start filling. - * @param length The number of bytes to read. - * @param position The location where to begin reading data from the file. If `null`, data will be read from the current file position, and the position will be updated. If `position` is an - * integer, the current file position will remain unchanged. - * @return Fulfills upon success with an object with two properties: - */ - read( - buffer: T, - offset?: number | null, - length?: number | null, - position?: ReadPosition | null, - ): Promise>; - read( - buffer: T, - options?: ReadOptions, - ): Promise>; - read( - options?: ReadOptionsWithBuffer, - ): Promise>; - /** - * Returns a byte-oriented `ReadableStream` that may be used to read the file's - * contents. - * - * An error will be thrown if this method is called more than once or is called - * after the `FileHandle` is closed or closing. - * - * ```js - * import { - * open, - * } from 'node:fs/promises'; - * - * const file = await open('./some/file/to/read'); - * - * for await (const chunk of file.readableWebStream()) - * console.log(chunk); - * - * await file.close(); - * ``` - * - * While the `ReadableStream` will read the file to completion, it will not - * close the `FileHandle` automatically. User code must still call the`fileHandle.close()` method. - * @since v17.0.0 - */ - readableWebStream(options?: ReadableWebStreamOptions): ReadableStream; - /** - * Asynchronously reads the entire contents of a file. - * - * If `options` is a string, then it specifies the `encoding`. - * - * The `FileHandle` has to support reading. - * - * If one or more `filehandle.read()` calls are made on a file handle and then a `filehandle.readFile()` call is made, the data will be read from the current - * position till the end of the file. It doesn't always read from the beginning - * of the file. - * @since v10.0.0 - * @return Fulfills upon a successful read with the contents of the file. If no encoding is specified (using `options.encoding`), the data is returned as a {Buffer} object. Otherwise, the - * data will be a string. - */ - readFile( - options?: - | ({ encoding?: null | undefined } & Abortable) - | null, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically. - * The `FileHandle` must have been opened for reading. - */ - readFile( - options: - | ({ encoding: BufferEncoding } & Abortable) - | BufferEncoding, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically. - * The `FileHandle` must have been opened for reading. - */ - readFile( - options?: - | (ObjectEncodingOptions & Abortable) - | BufferEncoding - | null, - ): Promise; - /** - * Convenience method to create a `readline` interface and stream over the file. - * See `filehandle.createReadStream()` for the options. - * - * ```js - * import { open } from 'node:fs/promises'; - * - * const file = await open('./some/file/to/read'); - * - * for await (const line of file.readLines()) { - * console.log(line); - * } - * ``` - * @since v18.11.0 - */ - readLines(options?: CreateReadStreamOptions): ReadlineInterface; - /** - * @since v10.0.0 - * @return Fulfills with an {fs.Stats} for the file. - */ - stat( - opts?: StatOptions & { - bigint?: false | undefined; - }, - ): Promise; - stat( - opts: StatOptions & { - bigint: true; - }, - ): Promise; - stat(opts?: StatOptions): Promise; - /** - * Truncates the file. - * - * If the file was larger than `len` bytes, only the first `len` bytes will be - * retained in the file. - * - * The following example retains only the first four bytes of the file: - * - * ```js - * import { open } from 'node:fs/promises'; - * - * let filehandle = null; - * try { - * filehandle = await open('temp.txt', 'r+'); - * await filehandle.truncate(4); - * } finally { - * await filehandle?.close(); - * } - * ``` - * - * If the file previously was shorter than `len` bytes, it is extended, and the - * extended part is filled with null bytes (`'\0'`): - * - * If `len` is negative then `0` will be used. - * @since v10.0.0 - * @param [len=0] - * @return Fulfills with `undefined` upon success. - */ - truncate(len?: number): Promise; - /** - * Change the file system timestamps of the object referenced by the `FileHandle` then fulfills the promise with no arguments upon success. - * @since v10.0.0 - */ - utimes(atime: TimeLike, mtime: TimeLike): Promise; - /** - * Asynchronously writes data to a file, replacing the file if it already exists. `data` can be a string, a buffer, an - * [AsyncIterable](https://tc39.github.io/ecma262/#sec-asynciterable-interface), or an - * [Iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol) object. - * The promise is fulfilled with no arguments upon success. - * - * If `options` is a string, then it specifies the `encoding`. - * - * The `FileHandle` has to support writing. - * - * It is unsafe to use `filehandle.writeFile()` multiple times on the same file - * without waiting for the promise to be fulfilled (or rejected). - * - * If one or more `filehandle.write()` calls are made on a file handle and then a`filehandle.writeFile()` call is made, the data will be written from the - * current position till the end of the file. It doesn't always write from the - * beginning of the file. - * @since v10.0.0 - */ - writeFile( - data: string | Uint8Array, - options?: - | (ObjectEncodingOptions & Abortable) - | BufferEncoding - | null, - ): Promise; - /** - * Write `buffer` to the file. - * - * The promise is fulfilled with an object containing two properties: - * - * It is unsafe to use `filehandle.write()` multiple times on the same file - * without waiting for the promise to be fulfilled (or rejected). For this - * scenario, use `filehandle.createWriteStream()`. - * - * On Linux, positional writes do not work when the file is opened in append mode. - * The kernel ignores the position argument and always appends the data to - * the end of the file. - * @since v10.0.0 - * @param offset The start position from within `buffer` where the data to write begins. - * @param [length=buffer.byteLength - offset] The number of bytes from `buffer` to write. - * @param [position='null'] The offset from the beginning of the file where the data from `buffer` should be written. If `position` is not a `number`, the data will be written at the current - * position. See the POSIX pwrite(2) documentation for more detail. - */ - write( - buffer: TBuffer, - offset?: number | null, - length?: number | null, - position?: number | null, - ): Promise<{ - bytesWritten: number; - buffer: TBuffer; - }>; - write( - buffer: TBuffer, - options?: { offset?: number; length?: number; position?: number }, - ): Promise<{ - bytesWritten: number; - buffer: TBuffer; - }>; - write( - data: string, - position?: number | null, - encoding?: BufferEncoding | null, - ): Promise<{ - bytesWritten: number; - buffer: string; - }>; - /** - * Write an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s to the file. - * - * The promise is fulfilled with an object containing a two properties: - * - * It is unsafe to call `writev()` multiple times on the same file without waiting - * for the promise to be fulfilled (or rejected). - * - * On Linux, positional writes don't work when the file is opened in append mode. - * The kernel ignores the position argument and always appends the data to - * the end of the file. - * @since v12.9.0 - * @param [position='null'] The offset from the beginning of the file where the data from `buffers` should be written. If `position` is not a `number`, the data will be written at the current - * position. - */ - writev( - buffers: TBuffers, - position?: number, - ): Promise>; - /** - * Read from a file and write to an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s - * @since v13.13.0, v12.17.0 - * @param [position='null'] The offset from the beginning of the file where the data should be read from. If `position` is not a `number`, the data will be read from the current position. - * @return Fulfills upon success an object containing two properties: - */ - readv( - buffers: TBuffers, - position?: number, - ): Promise>; - /** - * Closes the file handle after waiting for any pending operation on the handle to - * complete. - * - * ```js - * import { open } from 'node:fs/promises'; - * - * let filehandle; - * try { - * filehandle = await open('thefile.txt', 'r'); - * } finally { - * await filehandle?.close(); - * } - * ``` - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - close(): Promise; - /** - * Calls `filehandle.close()` and returns a promise that fulfills when the - * filehandle is closed. - * @since v20.4.0, v18.8.0 - */ - [Symbol.asyncDispose](): Promise; - } - const constants: typeof fsConstants; - /** - * Tests a user's permissions for the file or directory specified by `path`. - * The `mode` argument is an optional integer that specifies the accessibility - * checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK` - * (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for - * possible values of `mode`. - * - * If the accessibility check is successful, the promise is fulfilled with no - * value. If any of the accessibility checks fail, the promise is rejected - * with an [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object. The following example checks if the file`/etc/passwd` can be read and - * written by the current process. - * - * ```js - * import { access, constants } from 'node:fs/promises'; - * - * try { - * await access('/etc/passwd', constants.R_OK | constants.W_OK); - * console.log('can access'); - * } catch { - * console.error('cannot access'); - * } - * ``` - * - * Using `fsPromises.access()` to check for the accessibility of a file before - * calling `fsPromises.open()` is not recommended. Doing so introduces a race - * condition, since other processes may change the file's state between the two - * calls. Instead, user code should open/read/write the file directly and handle - * the error raised if the file is not accessible. - * @since v10.0.0 - * @param [mode=fs.constants.F_OK] - * @return Fulfills with `undefined` upon success. - */ - function access(path: PathLike, mode?: number): Promise; - /** - * Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it - * already exists. - * - * No guarantees are made about the atomicity of the copy operation. If an - * error occurs after the destination file has been opened for writing, an attempt - * will be made to remove the destination. - * - * ```js - * import { copyFile, constants } from 'node:fs/promises'; - * - * try { - * await copyFile('source.txt', 'destination.txt'); - * console.log('source.txt was copied to destination.txt'); - * } catch { - * console.error('The file could not be copied'); - * } - * - * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists. - * try { - * await copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL); - * console.log('source.txt was copied to destination.txt'); - * } catch { - * console.error('The file could not be copied'); - * } - * ``` - * @since v10.0.0 - * @param src source filename to copy - * @param dest destination filename of the copy operation - * @param [mode=0] Optional modifiers that specify the behavior of the copy operation. It is possible to create a mask consisting of the bitwise OR of two or more values (e.g. - * `fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`) - * @return Fulfills with `undefined` upon success. - */ - function copyFile(src: PathLike, dest: PathLike, mode?: number): Promise; - /** - * Opens a `FileHandle`. - * - * Refer to the POSIX [`open(2)`](http://man7.org/linux/man-pages/man2/open.2.html) documentation for more detail. - * - * Some characters (`< > : " / \ | ? *`) are reserved under Windows as documented - * by [Naming Files, Paths, and Namespaces](https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file). Under NTFS, if the filename contains - * a colon, Node.js will open a file system stream, as described by [this MSDN page](https://docs.microsoft.com/en-us/windows/desktop/FileIO/using-streams). - * @since v10.0.0 - * @param [flags='r'] See `support of file system `flags``. - * @param [mode=0o666] Sets the file mode (permission and sticky bits) if the file is created. - * @return Fulfills with a {FileHandle} object. - */ - function open(path: PathLike, flags?: string | number, mode?: Mode): Promise; - /** - * Renames `oldPath` to `newPath`. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function rename(oldPath: PathLike, newPath: PathLike): Promise; - /** - * Truncates (shortens or extends the length) of the content at `path` to `len` bytes. - * @since v10.0.0 - * @param [len=0] - * @return Fulfills with `undefined` upon success. - */ - function truncate(path: PathLike, len?: number): Promise; - /** - * Removes the directory identified by `path`. - * - * Using `fsPromises.rmdir()` on a file (not a directory) results in the - * promise being rejected with an `ENOENT` error on Windows and an `ENOTDIR` error on POSIX. - * - * To get a behavior similar to the `rm -rf` Unix command, use `fsPromises.rm()` with options `{ recursive: true, force: true }`. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function rmdir(path: PathLike, options?: RmDirOptions): Promise; - /** - * Removes files and directories (modeled on the standard POSIX `rm` utility). - * @since v14.14.0 - * @return Fulfills with `undefined` upon success. - */ - function rm(path: PathLike, options?: RmOptions): Promise; - /** - * Asynchronously creates a directory. - * - * The optional `options` argument can be an integer specifying `mode` (permission - * and sticky bits), or an object with a `mode` property and a `recursive` property indicating whether parent directories should be created. Calling `fsPromises.mkdir()` when `path` is a directory - * that exists results in a - * rejection only when `recursive` is false. - * - * ```js - * import { mkdir } from 'node:fs/promises'; - * - * try { - * const projectFolder = new URL('./test/project/', import.meta.url); - * const createDir = await mkdir(projectFolder, { recursive: true }); - * - * console.log(`created ${createDir}`); - * } catch (err) { - * console.error(err.message); - * } - * ``` - * @since v10.0.0 - * @return Upon success, fulfills with `undefined` if `recursive` is `false`, or the first directory path created if `recursive` is `true`. - */ - function mkdir( - path: PathLike, - options: MakeDirectoryOptions & { - recursive: true; - }, - ): Promise; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - function mkdir( - path: PathLike, - options?: - | Mode - | (MakeDirectoryOptions & { - recursive?: false | undefined; - }) - | null, - ): Promise; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - function mkdir(path: PathLike, options?: Mode | MakeDirectoryOptions | null): Promise; - /** - * Reads the contents of a directory. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the filenames. If the `encoding` is set to `'buffer'`, the filenames returned - * will be passed as `Buffer` objects. - * - * If `options.withFileTypes` is set to `true`, the returned array will contain `fs.Dirent` objects. - * - * ```js - * import { readdir } from 'node:fs/promises'; - * - * try { - * const files = await readdir(path); - * for (const file of files) - * console.log(file); - * } catch (err) { - * console.error(err); - * } - * ``` - * @since v10.0.0 - * @return Fulfills with an array of the names of the files in the directory excluding `'.'` and `'..'`. - */ - function readdir( - path: PathLike, - options?: - | (ObjectEncodingOptions & { - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - }) - | BufferEncoding - | null, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function readdir( - path: PathLike, - options: - | { - encoding: "buffer"; - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - } - | "buffer", - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function readdir( - path: PathLike, - options?: - | (ObjectEncodingOptions & { - withFileTypes?: false | undefined; - recursive?: boolean | undefined; - }) - | BufferEncoding - | null, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. - */ - function readdir( - path: PathLike, - options: ObjectEncodingOptions & { - withFileTypes: true; - recursive?: boolean | undefined; - }, - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a directory. If a URL is provided, it must use the `file:` protocol. - * @param options Must include `withFileTypes: true` and `encoding: 'buffer'`. - */ - function readdir( - path: PathLike, - options: { - encoding: "buffer"; - withFileTypes: true; - recursive?: boolean | undefined; - }, - ): Promise[]>; - /** - * Reads the contents of the symbolic link referred to by `path`. See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more detail. The promise is - * fulfilled with the`linkString` upon success. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the link path returned. If the `encoding` is set to `'buffer'`, the link path - * returned will be passed as a `Buffer` object. - * @since v10.0.0 - * @return Fulfills with the `linkString` upon success. - */ - function readlink(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function readlink(path: PathLike, options: BufferEncodingOption): Promise; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function readlink( - path: PathLike, - options?: ObjectEncodingOptions | string | null, - ): Promise; - /** - * Creates a symbolic link. - * - * The `type` argument is only used on Windows platforms and can be one of `'dir'`, `'file'`, or `'junction'`. If the `type` argument is not a string, Node.js will - * autodetect `target` type and use `'file'` or `'dir'`. If the `target` does not - * exist, `'file'` will be used. Windows junction points require the destination - * path to be absolute. When using `'junction'`, the `target` argument will - * automatically be normalized to absolute path. Junction points on NTFS volumes - * can only point to directories. - * @since v10.0.0 - * @param [type='null'] - * @return Fulfills with `undefined` upon success. - */ - function symlink(target: PathLike, path: PathLike, type?: string | null): Promise; - /** - * Equivalent to `fsPromises.stat()` unless `path` refers to a symbolic link, - * in which case the link itself is stat-ed, not the file that it refers to. - * Refer to the POSIX [`lstat(2)`](http://man7.org/linux/man-pages/man2/lstat.2.html) document for more detail. - * @since v10.0.0 - * @return Fulfills with the {fs.Stats} object for the given symbolic link `path`. - */ - function lstat( - path: PathLike, - opts?: StatOptions & { - bigint?: false | undefined; - }, - ): Promise; - function lstat( - path: PathLike, - opts: StatOptions & { - bigint: true; - }, - ): Promise; - function lstat(path: PathLike, opts?: StatOptions): Promise; - /** - * @since v10.0.0 - * @return Fulfills with the {fs.Stats} object for the given `path`. - */ - function stat( - path: PathLike, - opts?: StatOptions & { - bigint?: false | undefined; - }, - ): Promise; - function stat( - path: PathLike, - opts: StatOptions & { - bigint: true; - }, - ): Promise; - function stat(path: PathLike, opts?: StatOptions): Promise; - /** - * @since v19.6.0, v18.15.0 - * @return Fulfills with the {fs.StatFs} object for the given `path`. - */ - function statfs( - path: PathLike, - opts?: StatFsOptions & { - bigint?: false | undefined; - }, - ): Promise; - function statfs( - path: PathLike, - opts: StatFsOptions & { - bigint: true; - }, - ): Promise; - function statfs(path: PathLike, opts?: StatFsOptions): Promise; - /** - * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function link(existingPath: PathLike, newPath: PathLike): Promise; - /** - * If `path` refers to a symbolic link, then the link is removed without affecting - * the file or directory to which that link refers. If the `path` refers to a file - * path that is not a symbolic link, the file is deleted. See the POSIX [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html) documentation for more detail. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function unlink(path: PathLike): Promise; - /** - * Changes the permissions of a file. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function chmod(path: PathLike, mode: Mode): Promise; - /** - * Changes the permissions on a symbolic link. - * - * This method is only implemented on macOS. - * @deprecated Since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function lchmod(path: PathLike, mode: Mode): Promise; - /** - * Changes the ownership on a symbolic link. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function lchown(path: PathLike, uid: number, gid: number): Promise; - /** - * Changes the access and modification times of a file in the same way as `fsPromises.utimes()`, with the difference that if the path refers to a - * symbolic link, then the link is not dereferenced: instead, the timestamps of - * the symbolic link itself are changed. - * @since v14.5.0, v12.19.0 - * @return Fulfills with `undefined` upon success. - */ - function lutimes(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise; - /** - * Changes the ownership of a file. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function chown(path: PathLike, uid: number, gid: number): Promise; - /** - * Change the file system timestamps of the object referenced by `path`. - * - * The `atime` and `mtime` arguments follow these rules: - * - * * Values can be either numbers representing Unix epoch time, `Date`s, or a - * numeric string like `'123456789.0'`. - * * If the value can not be converted to a number, or is `NaN`, `Infinity`, or `-Infinity`, an `Error` will be thrown. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function utimes(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise; - /** - * Determines the actual location of `path` using the same semantics as the `fs.realpath.native()` function. - * - * Only paths that can be converted to UTF8 strings are supported. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the path. If the `encoding` is set to `'buffer'`, the path returned will be - * passed as a `Buffer` object. - * - * On Linux, when Node.js is linked against musl libc, the procfs file system must - * be mounted on `/proc` in order for this function to work. Glibc does not have - * this restriction. - * @since v10.0.0 - * @return Fulfills with the resolved path upon success. - */ - function realpath(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function realpath(path: PathLike, options: BufferEncodingOption): Promise; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function realpath( - path: PathLike, - options?: ObjectEncodingOptions | BufferEncoding | null, - ): Promise; - /** - * Creates a unique temporary directory. A unique directory name is generated by - * appending six random characters to the end of the provided `prefix`. Due to - * platform inconsistencies, avoid trailing `X` characters in `prefix`. Some - * platforms, notably the BSDs, can return more than six random characters, and - * replace trailing `X` characters in `prefix` with random characters. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use. - * - * ```js - * import { mkdtemp } from 'node:fs/promises'; - * import { join } from 'node:path'; - * import { tmpdir } from 'node:os'; - * - * try { - * await mkdtemp(join(tmpdir(), 'foo-')); - * } catch (err) { - * console.error(err); - * } - * ``` - * - * The `fsPromises.mkdtemp()` method will append the six randomly selected - * characters directly to the `prefix` string. For instance, given a directory `/tmp`, if the intention is to create a temporary directory _within_ `/tmp`, the `prefix` must end with a trailing - * platform-specific path separator - * (`import { sep } from 'node:path'`). - * @since v10.0.0 - * @return Fulfills with a string containing the file system path of the newly created temporary directory. - */ - function mkdtemp(prefix: string, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function mkdtemp(prefix: string, options: BufferEncodingOption): Promise; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function mkdtemp( - prefix: string, - options?: ObjectEncodingOptions | BufferEncoding | null, - ): Promise; - /** - * The resulting Promise holds an async-disposable object whose `path` property - * holds the created directory path. When the object is disposed, the directory - * and its contents will be removed asynchronously if it still exists. If the - * directory cannot be deleted, disposal will throw an error. The object has an - * async `remove()` method which will perform the same task. - * - * Both this function and the disposal function on the resulting object are - * async, so it should be used with `await` + `await using` as in - * `await using dir = await fsPromises.mkdtempDisposable('prefix')`. - * - * - * - * For detailed information, see the documentation of `fsPromises.mkdtemp()`. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use. - * @since v24.4.0 - */ - function mkdtempDisposable(prefix: PathLike, options?: EncodingOption): Promise; - /** - * Asynchronously writes data to a file, replacing the file if it already exists. `data` can be a string, a buffer, an - * [AsyncIterable](https://tc39.github.io/ecma262/#sec-asynciterable-interface), or an - * [Iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol) object. - * - * The `encoding` option is ignored if `data` is a buffer. - * - * If `options` is a string, then it specifies the encoding. - * - * The `mode` option only affects the newly created file. See `fs.open()` for more details. - * - * Any specified `FileHandle` has to support writing. - * - * It is unsafe to use `fsPromises.writeFile()` multiple times on the same file - * without waiting for the promise to be settled. - * - * Similarly to `fsPromises.readFile` \- `fsPromises.writeFile` is a convenience - * method that performs multiple `write` calls internally to write the buffer - * passed to it. For performance sensitive code consider using `fs.createWriteStream()` or `filehandle.createWriteStream()`. - * - * It is possible to use an `AbortSignal` to cancel an `fsPromises.writeFile()`. - * Cancelation is "best effort", and some amount of data is likely still - * to be written. - * - * ```js - * import { writeFile } from 'node:fs/promises'; - * import { Buffer } from 'node:buffer'; - * - * try { - * const controller = new AbortController(); - * const { signal } = controller; - * const data = new Uint8Array(Buffer.from('Hello Node.js')); - * const promise = writeFile('message.txt', data, { signal }); - * - * // Abort the request before the promise settles. - * controller.abort(); - * - * await promise; - * } catch (err) { - * // When a request is aborted - err is an AbortError - * console.error(err); - * } - * ``` - * - * Aborting an ongoing request does not abort individual operating - * system requests but rather the internal buffering `fs.writeFile` performs. - * @since v10.0.0 - * @param file filename or `FileHandle` - * @return Fulfills with `undefined` upon success. - */ - function writeFile( - file: PathLike | FileHandle, - data: - | string - | NodeJS.ArrayBufferView - | Iterable - | AsyncIterable - | Stream, - options?: - | (ObjectEncodingOptions & { - mode?: Mode | undefined; - flag?: OpenMode | undefined; - /** - * If all data is successfully written to the file, and `flush` - * is `true`, `filehandle.sync()` is used to flush the data. - * @default false - */ - flush?: boolean | undefined; - } & Abortable) - | BufferEncoding - | null, - ): Promise; - /** - * Asynchronously append data to a file, creating the file if it does not yet - * exist. `data` can be a string or a `Buffer`. - * - * If `options` is a string, then it specifies the `encoding`. - * - * The `mode` option only affects the newly created file. See `fs.open()` for more details. - * - * The `path` may be specified as a `FileHandle` that has been opened - * for appending (using `fsPromises.open()`). - * @since v10.0.0 - * @param path filename or {FileHandle} - * @return Fulfills with `undefined` upon success. - */ - function appendFile( - path: PathLike | FileHandle, - data: string | Uint8Array, - options?: (ObjectEncodingOptions & FlagAndOpenMode & { flush?: boolean | undefined }) | BufferEncoding | null, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. - * - * If no encoding is specified (using `options.encoding`), the data is returned - * as a `Buffer` object. Otherwise, the data will be a string. - * - * If `options` is a string, then it specifies the encoding. - * - * When the `path` is a directory, the behavior of `fsPromises.readFile()` is - * platform-specific. On macOS, Linux, and Windows, the promise will be rejected - * with an error. On FreeBSD, a representation of the directory's contents will be - * returned. - * - * An example of reading a `package.json` file located in the same directory of the - * running code: - * - * ```js - * import { readFile } from 'node:fs/promises'; - * try { - * const filePath = new URL('./package.json', import.meta.url); - * const contents = await readFile(filePath, { encoding: 'utf8' }); - * console.log(contents); - * } catch (err) { - * console.error(err.message); - * } - * ``` - * - * It is possible to abort an ongoing `readFile` using an `AbortSignal`. If a - * request is aborted the promise returned is rejected with an `AbortError`: - * - * ```js - * import { readFile } from 'node:fs/promises'; - * - * try { - * const controller = new AbortController(); - * const { signal } = controller; - * const promise = readFile(fileName, { signal }); - * - * // Abort the request before the promise settles. - * controller.abort(); - * - * await promise; - * } catch (err) { - * // When a request is aborted - err is an AbortError - * console.error(err); - * } - * ``` - * - * Aborting an ongoing request does not abort individual operating - * system requests but rather the internal buffering `fs.readFile` performs. - * - * Any specified `FileHandle` has to support reading. - * @since v10.0.0 - * @param path filename or `FileHandle` - * @return Fulfills with the contents of the file. - */ - function readFile( - path: PathLike | FileHandle, - options?: - | ({ - encoding?: null | undefined; - flag?: OpenMode | undefined; - } & Abortable) - | null, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically. - * @param options An object that may contain an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - function readFile( - path: PathLike | FileHandle, - options: - | ({ - encoding: BufferEncoding; - flag?: OpenMode | undefined; - } & Abortable) - | BufferEncoding, - ): Promise; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically. - * @param options An object that may contain an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - function readFile( - path: PathLike | FileHandle, - options?: - | ( - & ObjectEncodingOptions - & Abortable - & { - flag?: OpenMode | undefined; - } - ) - | BufferEncoding - | null, - ): Promise; - /** - * Asynchronously open a directory for iterative scanning. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for more detail. - * - * Creates an `fs.Dir`, which contains all further functions for reading from - * and cleaning up the directory. - * - * The `encoding` option sets the encoding for the `path` while opening the - * directory and subsequent read operations. - * - * Example using async iteration: - * - * ```js - * import { opendir } from 'node:fs/promises'; - * - * try { - * const dir = await opendir('./'); - * for await (const dirent of dir) - * console.log(dirent.name); - * } catch (err) { - * console.error(err); - * } - * ``` - * - * When using the async iterator, the `fs.Dir` object will be automatically - * closed after the iterator exits. - * @since v12.12.0 - * @return Fulfills with an {fs.Dir}. - */ - function opendir(path: PathLike, options?: OpenDirOptions): Promise; - interface WatchOptions extends _WatchOptions { - maxQueue?: number | undefined; - overflow?: "ignore" | "throw" | undefined; - } - interface WatchOptionsWithBufferEncoding extends WatchOptions { - encoding: "buffer"; - } - interface WatchOptionsWithStringEncoding extends WatchOptions { - encoding?: BufferEncoding | undefined; - } - /** - * Returns an async iterator that watches for changes on `filename`, where `filename`is either a file or a directory. - * - * ```js - * import { watch } from 'node:fs/promises'; - * - * const ac = new AbortController(); - * const { signal } = ac; - * setTimeout(() => ac.abort(), 10000); - * - * (async () => { - * try { - * const watcher = watch(__filename, { signal }); - * for await (const event of watcher) - * console.log(event); - * } catch (err) { - * if (err.name === 'AbortError') - * return; - * throw err; - * } - * })(); - * ``` - * - * On most platforms, `'rename'` is emitted whenever a filename appears or - * disappears in the directory. - * - * All the `caveats` for `fs.watch()` also apply to `fsPromises.watch()`. - * @since v15.9.0, v14.18.0 - * @return of objects with the properties: - */ - function watch( - filename: PathLike, - options?: WatchOptionsWithStringEncoding | BufferEncoding, - ): NodeJS.AsyncIterator>; - function watch( - filename: PathLike, - options: WatchOptionsWithBufferEncoding | "buffer", - ): NodeJS.AsyncIterator>; - function watch( - filename: PathLike, - options: WatchOptions | BufferEncoding | "buffer", - ): NodeJS.AsyncIterator>; - /** - * Asynchronously copies the entire directory structure from `src` to `dest`, - * including subdirectories and files. - * - * When copying a directory to another directory, globs are not supported and - * behavior is similar to `cp dir1/ dir2/`. - * @since v16.7.0 - * @experimental - * @param src source path to copy. - * @param dest destination path to copy to. - * @return Fulfills with `undefined` upon success. - */ - function cp(source: string | URL, destination: string | URL, opts?: CopyOptions): Promise; - /** - * ```js - * import { glob } from 'node:fs/promises'; - * - * for await (const entry of glob('*.js')) - * console.log(entry); - * ``` - * @since v22.0.0 - * @returns An AsyncIterator that yields the paths of files - * that match the pattern. - */ - function glob(pattern: string | readonly string[]): NodeJS.AsyncIterator; - function glob( - pattern: string | readonly string[], - options: GlobOptionsWithFileTypes, - ): NodeJS.AsyncIterator; - function glob( - pattern: string | readonly string[], - options: GlobOptionsWithoutFileTypes, - ): NodeJS.AsyncIterator; - function glob( - pattern: string | readonly string[], - options: GlobOptions, - ): NodeJS.AsyncIterator; -} -declare module "node:fs/promises" { - export * from "fs/promises"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/globals.d.ts b/build_vtk_bundle/node_modules/@types/node/globals.d.ts deleted file mode 100644 index 9c6837d3..00000000 --- a/build_vtk_bundle/node_modules/@types/node/globals.d.ts +++ /dev/null @@ -1,170 +0,0 @@ -declare var global: typeof globalThis; - -declare var process: NodeJS.Process; -declare var console: Console; - -interface ErrorConstructor { - /** - * Creates a `.stack` property on `targetObject`, which when accessed returns - * a string representing the location in the code at which - * `Error.captureStackTrace()` was called. - * - * ```js - * const myObject = {}; - * Error.captureStackTrace(myObject); - * myObject.stack; // Similar to `new Error().stack` - * ``` - * - * The first line of the trace will be prefixed with - * `${myObject.name}: ${myObject.message}`. - * - * The optional `constructorOpt` argument accepts a function. If given, all frames - * above `constructorOpt`, including `constructorOpt`, will be omitted from the - * generated stack trace. - * - * The `constructorOpt` argument is useful for hiding implementation - * details of error generation from the user. For instance: - * - * ```js - * function a() { - * b(); - * } - * - * function b() { - * c(); - * } - * - * function c() { - * // Create an error without stack trace to avoid calculating the stack trace twice. - * const { stackTraceLimit } = Error; - * Error.stackTraceLimit = 0; - * const error = new Error(); - * Error.stackTraceLimit = stackTraceLimit; - * - * // Capture the stack trace above function b - * Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace - * throw error; - * } - * - * a(); - * ``` - */ - captureStackTrace(targetObject: object, constructorOpt?: Function): void; - /** - * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces - */ - prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any; - /** - * The `Error.stackTraceLimit` property specifies the number of stack frames - * collected by a stack trace (whether generated by `new Error().stack` or - * `Error.captureStackTrace(obj)`). - * - * The default value is `10` but may be set to any valid JavaScript number. Changes - * will affect any stack trace captured _after_ the value has been changed. - * - * If set to a non-number value, or set to a negative number, stack traces will - * not capture any frames. - */ - stackTraceLimit: number; -} - -/** - * Enable this API with the `--expose-gc` CLI flag. - */ -declare var gc: NodeJS.GCFunction | undefined; - -declare namespace NodeJS { - interface CallSite { - getColumnNumber(): number | null; - getEnclosingColumnNumber(): number | null; - getEnclosingLineNumber(): number | null; - getEvalOrigin(): string | undefined; - getFileName(): string | null; - getFunction(): Function | undefined; - getFunctionName(): string | null; - getLineNumber(): number | null; - getMethodName(): string | null; - getPosition(): number; - getPromiseIndex(): number | null; - getScriptHash(): string; - getScriptNameOrSourceURL(): string | null; - getThis(): unknown; - getTypeName(): string | null; - isAsync(): boolean; - isConstructor(): boolean; - isEval(): boolean; - isNative(): boolean; - isPromiseAll(): boolean; - isToplevel(): boolean; - } - - interface ErrnoException extends Error { - errno?: number | undefined; - code?: string | undefined; - path?: string | undefined; - syscall?: string | undefined; - } - - interface ReadableStream extends EventEmitter { - readable: boolean; - read(size?: number): string | Buffer; - setEncoding(encoding: BufferEncoding): this; - pause(): this; - resume(): this; - isPaused(): boolean; - pipe(destination: T, options?: { end?: boolean | undefined }): T; - unpipe(destination?: WritableStream): this; - unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void; - wrap(oldStream: ReadableStream): this; - [Symbol.asyncIterator](): AsyncIterableIterator; - } - - interface WritableStream extends EventEmitter { - writable: boolean; - write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean; - write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean; - end(cb?: () => void): this; - end(data: string | Uint8Array, cb?: () => void): this; - end(str: string, encoding?: BufferEncoding, cb?: () => void): this; - } - - interface ReadWriteStream extends ReadableStream, WritableStream {} - - interface RefCounted { - ref(): this; - unref(): this; - } - - interface Dict { - [key: string]: T | undefined; - } - - interface ReadOnlyDict { - readonly [key: string]: T | undefined; - } - - type PartialOptions = { [K in keyof T]?: T[K] | undefined }; - - interface GCFunction { - (minor?: boolean): void; - (options: NodeJS.GCOptions & { execution: "async" }): Promise; - (options: NodeJS.GCOptions): void; - } - - interface GCOptions { - execution?: "sync" | "async" | undefined; - flavor?: "regular" | "last-resort" | undefined; - type?: "major-snapshot" | "major" | "minor" | undefined; - filename?: string | undefined; - } - - /** An iterable iterator returned by the Node.js API. */ - interface Iterator extends IteratorObject { - [Symbol.iterator](): NodeJS.Iterator; - } - - /** An async iterable iterator returned by the Node.js API. */ - interface AsyncIterator extends AsyncIteratorObject { - [Symbol.asyncIterator](): NodeJS.AsyncIterator; - } -} diff --git a/build_vtk_bundle/node_modules/@types/node/globals.typedarray.d.ts b/build_vtk_bundle/node_modules/@types/node/globals.typedarray.d.ts deleted file mode 100644 index cae4c0b1..00000000 --- a/build_vtk_bundle/node_modules/@types/node/globals.typedarray.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -export {}; // Make this a module - -declare global { - namespace NodeJS { - type TypedArray = - | Uint8Array - | Uint8ClampedArray - | Uint16Array - | Uint32Array - | Int8Array - | Int16Array - | Int32Array - | BigUint64Array - | BigInt64Array - | Float16Array - | Float32Array - | Float64Array; - type ArrayBufferView = - | TypedArray - | DataView; - - // The following aliases are required to allow use of non-shared ArrayBufferViews in @types/node - // while maintaining compatibility with TS <=5.6. - // TODO: remove once @types/node no longer supports TS 5.6, and replace with native types. - type NonSharedUint8Array = Uint8Array; - type NonSharedUint8ClampedArray = Uint8ClampedArray; - type NonSharedUint16Array = Uint16Array; - type NonSharedUint32Array = Uint32Array; - type NonSharedInt8Array = Int8Array; - type NonSharedInt16Array = Int16Array; - type NonSharedInt32Array = Int32Array; - type NonSharedBigUint64Array = BigUint64Array; - type NonSharedBigInt64Array = BigInt64Array; - type NonSharedFloat16Array = Float16Array; - type NonSharedFloat32Array = Float32Array; - type NonSharedFloat64Array = Float64Array; - type NonSharedDataView = DataView; - type NonSharedTypedArray = TypedArray; - type NonSharedArrayBufferView = ArrayBufferView; - } -} diff --git a/build_vtk_bundle/node_modules/@types/node/http.d.ts b/build_vtk_bundle/node_modules/@types/node/http.d.ts deleted file mode 100644 index 771b8b2f..00000000 --- a/build_vtk_bundle/node_modules/@types/node/http.d.ts +++ /dev/null @@ -1,2134 +0,0 @@ -/** - * To use the HTTP server and client one must import the `node:http` module. - * - * The HTTP interfaces in Node.js are designed to support many features - * of the protocol which have been traditionally difficult to use. - * In particular, large, possibly chunk-encoded, messages. The interface is - * careful to never buffer entire requests or responses, so the - * user is able to stream data. - * - * HTTP message headers are represented by an object like this: - * - * ```json - * { "content-length": "123", - * "content-type": "text/plain", - * "connection": "keep-alive", - * "host": "example.com", - * "accept": "*" } - * ``` - * - * Keys are lowercased. Values are not modified. - * - * In order to support the full spectrum of possible HTTP applications, the Node.js - * HTTP API is very low-level. It deals with stream handling and message - * parsing only. It parses a message into headers and body but it does not - * parse the actual headers or the body. - * - * See `message.headers` for details on how duplicate headers are handled. - * - * The raw headers as they were received are retained in the `rawHeaders` property, which is an array of `[key, value, key2, value2, ...]`. For - * example, the previous message header object might have a `rawHeaders` list like the following: - * - * ```js - * [ 'ConTent-Length', '123456', - * 'content-LENGTH', '123', - * 'content-type', 'text/plain', - * 'CONNECTION', 'keep-alive', - * 'Host', 'example.com', - * 'accepT', '*' ] - * ``` - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/http.js) - */ -declare module "http" { - import { NonSharedBuffer } from "node:buffer"; - import * as stream from "node:stream"; - import { URL } from "node:url"; - import { LookupOptions } from "node:dns"; - import { EventEmitter } from "node:events"; - import { LookupFunction, Server as NetServer, Socket, TcpSocketConnectOpts } from "node:net"; - // incoming headers will never contain number - interface IncomingHttpHeaders extends NodeJS.Dict { - accept?: string | undefined; - "accept-encoding"?: string | undefined; - "accept-language"?: string | undefined; - "accept-patch"?: string | undefined; - "accept-ranges"?: string | undefined; - "access-control-allow-credentials"?: string | undefined; - "access-control-allow-headers"?: string | undefined; - "access-control-allow-methods"?: string | undefined; - "access-control-allow-origin"?: string | undefined; - "access-control-expose-headers"?: string | undefined; - "access-control-max-age"?: string | undefined; - "access-control-request-headers"?: string | undefined; - "access-control-request-method"?: string | undefined; - age?: string | undefined; - allow?: string | undefined; - "alt-svc"?: string | undefined; - authorization?: string | undefined; - "cache-control"?: string | undefined; - connection?: string | undefined; - "content-disposition"?: string | undefined; - "content-encoding"?: string | undefined; - "content-language"?: string | undefined; - "content-length"?: string | undefined; - "content-location"?: string | undefined; - "content-range"?: string | undefined; - "content-type"?: string | undefined; - cookie?: string | undefined; - date?: string | undefined; - etag?: string | undefined; - expect?: string | undefined; - expires?: string | undefined; - forwarded?: string | undefined; - from?: string | undefined; - host?: string | undefined; - "if-match"?: string | undefined; - "if-modified-since"?: string | undefined; - "if-none-match"?: string | undefined; - "if-unmodified-since"?: string | undefined; - "last-modified"?: string | undefined; - location?: string | undefined; - origin?: string | undefined; - pragma?: string | undefined; - "proxy-authenticate"?: string | undefined; - "proxy-authorization"?: string | undefined; - "public-key-pins"?: string | undefined; - range?: string | undefined; - referer?: string | undefined; - "retry-after"?: string | undefined; - "sec-fetch-site"?: string | undefined; - "sec-fetch-mode"?: string | undefined; - "sec-fetch-user"?: string | undefined; - "sec-fetch-dest"?: string | undefined; - "sec-websocket-accept"?: string | undefined; - "sec-websocket-extensions"?: string | undefined; - "sec-websocket-key"?: string | undefined; - "sec-websocket-protocol"?: string | undefined; - "sec-websocket-version"?: string | undefined; - "set-cookie"?: string[] | undefined; - "strict-transport-security"?: string | undefined; - tk?: string | undefined; - trailer?: string | undefined; - "transfer-encoding"?: string | undefined; - upgrade?: string | undefined; - "user-agent"?: string | undefined; - vary?: string | undefined; - via?: string | undefined; - warning?: string | undefined; - "www-authenticate"?: string | undefined; - } - // outgoing headers allows numbers (as they are converted internally to strings) - type OutgoingHttpHeader = number | string | string[]; - interface OutgoingHttpHeaders extends NodeJS.Dict { - accept?: string | string[] | undefined; - "accept-charset"?: string | string[] | undefined; - "accept-encoding"?: string | string[] | undefined; - "accept-language"?: string | string[] | undefined; - "accept-ranges"?: string | undefined; - "access-control-allow-credentials"?: string | undefined; - "access-control-allow-headers"?: string | undefined; - "access-control-allow-methods"?: string | undefined; - "access-control-allow-origin"?: string | undefined; - "access-control-expose-headers"?: string | undefined; - "access-control-max-age"?: string | undefined; - "access-control-request-headers"?: string | undefined; - "access-control-request-method"?: string | undefined; - age?: string | undefined; - allow?: string | undefined; - authorization?: string | undefined; - "cache-control"?: string | undefined; - "cdn-cache-control"?: string | undefined; - connection?: string | string[] | undefined; - "content-disposition"?: string | undefined; - "content-encoding"?: string | undefined; - "content-language"?: string | undefined; - "content-length"?: string | number | undefined; - "content-location"?: string | undefined; - "content-range"?: string | undefined; - "content-security-policy"?: string | undefined; - "content-security-policy-report-only"?: string | undefined; - "content-type"?: string | undefined; - cookie?: string | string[] | undefined; - dav?: string | string[] | undefined; - dnt?: string | undefined; - date?: string | undefined; - etag?: string | undefined; - expect?: string | undefined; - expires?: string | undefined; - forwarded?: string | undefined; - from?: string | undefined; - host?: string | undefined; - "if-match"?: string | undefined; - "if-modified-since"?: string | undefined; - "if-none-match"?: string | undefined; - "if-range"?: string | undefined; - "if-unmodified-since"?: string | undefined; - "last-modified"?: string | undefined; - link?: string | string[] | undefined; - location?: string | undefined; - "max-forwards"?: string | undefined; - origin?: string | undefined; - pragma?: string | string[] | undefined; - "proxy-authenticate"?: string | string[] | undefined; - "proxy-authorization"?: string | undefined; - "public-key-pins"?: string | undefined; - "public-key-pins-report-only"?: string | undefined; - range?: string | undefined; - referer?: string | undefined; - "referrer-policy"?: string | undefined; - refresh?: string | undefined; - "retry-after"?: string | undefined; - "sec-websocket-accept"?: string | undefined; - "sec-websocket-extensions"?: string | string[] | undefined; - "sec-websocket-key"?: string | undefined; - "sec-websocket-protocol"?: string | string[] | undefined; - "sec-websocket-version"?: string | undefined; - server?: string | undefined; - "set-cookie"?: string | string[] | undefined; - "strict-transport-security"?: string | undefined; - te?: string | undefined; - trailer?: string | undefined; - "transfer-encoding"?: string | undefined; - "user-agent"?: string | undefined; - upgrade?: string | undefined; - "upgrade-insecure-requests"?: string | undefined; - vary?: string | undefined; - via?: string | string[] | undefined; - warning?: string | undefined; - "www-authenticate"?: string | string[] | undefined; - "x-content-type-options"?: string | undefined; - "x-dns-prefetch-control"?: string | undefined; - "x-frame-options"?: string | undefined; - "x-xss-protection"?: string | undefined; - } - interface ClientRequestArgs extends Pick { - _defaultAgent?: Agent | undefined; - agent?: Agent | boolean | undefined; - auth?: string | null | undefined; - createConnection?: - | (( - options: ClientRequestArgs, - oncreate: (err: Error | null, socket: stream.Duplex) => void, - ) => stream.Duplex | null | undefined) - | undefined; - defaultPort?: number | string | undefined; - family?: number | undefined; - headers?: OutgoingHttpHeaders | readonly string[] | undefined; - host?: string | null | undefined; - hostname?: string | null | undefined; - insecureHTTPParser?: boolean | undefined; - localAddress?: string | undefined; - localPort?: number | undefined; - lookup?: LookupFunction | undefined; - /** - * @default 16384 - */ - maxHeaderSize?: number | undefined; - method?: string | undefined; - path?: string | null | undefined; - port?: number | string | null | undefined; - protocol?: string | null | undefined; - setDefaultHeaders?: boolean | undefined; - setHost?: boolean | undefined; - signal?: AbortSignal | undefined; - socketPath?: string | undefined; - timeout?: number | undefined; - uniqueHeaders?: Array | undefined; - joinDuplicateHeaders?: boolean | undefined; - } - interface ServerOptions< - Request extends typeof IncomingMessage = typeof IncomingMessage, - Response extends typeof ServerResponse> = typeof ServerResponse, - > { - /** - * Specifies the `IncomingMessage` class to be used. Useful for extending the original `IncomingMessage`. - */ - IncomingMessage?: Request | undefined; - /** - * Specifies the `ServerResponse` class to be used. Useful for extending the original `ServerResponse`. - */ - ServerResponse?: Response | undefined; - /** - * Sets the timeout value in milliseconds for receiving the entire request from the client. - * @see Server.requestTimeout for more information. - * @default 300000 - * @since v18.0.0 - */ - requestTimeout?: number | undefined; - /** - * It joins the field line values of multiple headers in a request with `, ` instead of discarding the duplicates. - * @default false - * @since v18.14.0 - */ - joinDuplicateHeaders?: boolean | undefined; - /** - * The number of milliseconds of inactivity a server needs to wait for additional incoming data, - * after it has finished writing the last response, before a socket will be destroyed. - * @see Server.keepAliveTimeout for more information. - * @default 5000 - * @since v18.0.0 - */ - keepAliveTimeout?: number | undefined; - /** - * An additional buffer time added to the - * `server.keepAliveTimeout` to extend the internal socket timeout. - * @since 24.6.0 - * @default 1000 - */ - keepAliveTimeoutBuffer?: number | undefined; - /** - * Sets the interval value in milliseconds to check for request and headers timeout in incomplete requests. - * @default 30000 - */ - connectionsCheckingInterval?: number | undefined; - /** - * Sets the timeout value in milliseconds for receiving the complete HTTP headers from the client. - * See {@link Server.headersTimeout} for more information. - * @default 60000 - * @since 18.0.0 - */ - headersTimeout?: number | undefined; - /** - * Optionally overrides all `socket`s' `readableHighWaterMark` and `writableHighWaterMark`. - * This affects `highWaterMark` property of both `IncomingMessage` and `ServerResponse`. - * Default: @see stream.getDefaultHighWaterMark(). - * @since v20.1.0 - */ - highWaterMark?: number | undefined; - /** - * Use an insecure HTTP parser that accepts invalid HTTP headers when `true`. - * Using the insecure parser should be avoided. - * See --insecure-http-parser for more information. - * @default false - */ - insecureHTTPParser?: boolean | undefined; - /** - * Optionally overrides the value of `--max-http-header-size` for requests received by - * this server, i.e. the maximum length of request headers in bytes. - * @default 16384 - * @since v13.3.0 - */ - maxHeaderSize?: number | undefined; - /** - * If set to `true`, it disables the use of Nagle's algorithm immediately after a new incoming connection is received. - * @default true - * @since v16.5.0 - */ - noDelay?: boolean | undefined; - /** - * If set to `true`, it forces the server to respond with a 400 (Bad Request) status code - * to any HTTP/1.1 request message that lacks a Host header (as mandated by the specification). - * @default true - * @since 20.0.0 - */ - requireHostHeader?: boolean | undefined; - /** - * If set to `true`, it enables keep-alive functionality on the socket immediately after a new incoming connection is received, - * similarly on what is done in `socket.setKeepAlive([enable][, initialDelay])`. - * @default false - * @since v16.5.0 - */ - keepAlive?: boolean | undefined; - /** - * If set to a positive number, it sets the initial delay before the first keepalive probe is sent on an idle socket. - * @default 0 - * @since v16.5.0 - */ - keepAliveInitialDelay?: number | undefined; - /** - * A list of response headers that should be sent only once. - * If the header's value is an array, the items will be joined using `; `. - */ - uniqueHeaders?: Array | undefined; - /** - * A callback which receives an - * incoming request and returns a boolean, to control which upgrade attempts - * should be accepted. Accepted upgrades will fire an `'upgrade'` event (or - * their sockets will be destroyed, if no listener is registered) while - * rejected upgrades will fire a `'request'` event like any non-upgrade - * request. - * @since v24.9.0 - * @default () => server.listenerCount('upgrade') > 0 - */ - shouldUpgradeCallback?: ((request: InstanceType) => boolean) | undefined; - /** - * If set to `true`, an error is thrown when writing to an HTTP response which does not have a body. - * @default false - * @since v18.17.0, v20.2.0 - */ - rejectNonStandardBodyWrites?: boolean | undefined; - } - type RequestListener< - Request extends typeof IncomingMessage = typeof IncomingMessage, - Response extends typeof ServerResponse> = typeof ServerResponse, - > = (req: InstanceType, res: InstanceType & { req: InstanceType }) => void; - /** - * @since v0.1.17 - */ - class Server< - Request extends typeof IncomingMessage = typeof IncomingMessage, - Response extends typeof ServerResponse> = typeof ServerResponse, - > extends NetServer { - constructor(requestListener?: RequestListener); - constructor(options: ServerOptions, requestListener?: RequestListener); - /** - * Sets the timeout value for sockets, and emits a `'timeout'` event on - * the Server object, passing the socket as an argument, if a timeout - * occurs. - * - * If there is a `'timeout'` event listener on the Server object, then it - * will be called with the timed-out socket as an argument. - * - * By default, the Server does not timeout sockets. However, if a callback - * is assigned to the Server's `'timeout'` event, timeouts must be handled - * explicitly. - * @since v0.9.12 - * @param [msecs=0 (no timeout)] - */ - setTimeout(msecs?: number, callback?: (socket: Socket) => void): this; - setTimeout(callback: (socket: Socket) => void): this; - /** - * Limits maximum incoming headers count. If set to 0, no limit will be applied. - * @since v0.7.0 - */ - maxHeadersCount: number | null; - /** - * The maximum number of requests socket can handle - * before closing keep alive connection. - * - * A value of `0` will disable the limit. - * - * When the limit is reached it will set the `Connection` header value to `close`, - * but will not actually close the connection, subsequent requests sent - * after the limit is reached will get `503 Service Unavailable` as a response. - * @since v16.10.0 - */ - maxRequestsPerSocket: number | null; - /** - * The number of milliseconds of inactivity before a socket is presumed - * to have timed out. - * - * A value of `0` will disable the timeout behavior on incoming connections. - * - * The socket timeout logic is set up on connection, so changing this - * value only affects new connections to the server, not any existing connections. - * @since v0.9.12 - */ - timeout: number; - /** - * Limit the amount of time the parser will wait to receive the complete HTTP - * headers. - * - * If the timeout expires, the server responds with status 408 without - * forwarding the request to the request listener and then closes the connection. - * - * It must be set to a non-zero value (e.g. 120 seconds) to protect against - * potential Denial-of-Service attacks in case the server is deployed without a - * reverse proxy in front. - * @since v11.3.0, v10.14.0 - */ - headersTimeout: number; - /** - * The number of milliseconds of inactivity a server needs to wait for additional - * incoming data, after it has finished writing the last response, before a socket - * will be destroyed. - * - * This timeout value is combined with the - * `server.keepAliveTimeoutBuffer` option to determine the actual socket - * timeout, calculated as: - * socketTimeout = keepAliveTimeout + keepAliveTimeoutBuffer - * If the server receives new data before the keep-alive timeout has fired, it - * will reset the regular inactivity timeout, i.e., `server.timeout`. - * - * A value of `0` will disable the keep-alive timeout behavior on incoming - * connections. - * A value of `0` makes the HTTP server behave similarly to Node.js versions prior - * to 8.0.0, which did not have a keep-alive timeout. - * - * The socket timeout logic is set up on connection, so changing this value only - * affects new connections to the server, not any existing connections. - * @since v8.0.0 - */ - keepAliveTimeout: number; - /** - * An additional buffer time added to the - * `server.keepAliveTimeout` to extend the internal socket timeout. - * - * This buffer helps reduce connection reset (`ECONNRESET`) errors by increasing - * the socket timeout slightly beyond the advertised keep-alive timeout. - * - * This option applies only to new incoming connections. - * @since v24.6.0 - * @default 1000 - */ - keepAliveTimeoutBuffer: number; - /** - * Sets the timeout value in milliseconds for receiving the entire request from - * the client. - * - * If the timeout expires, the server responds with status 408 without - * forwarding the request to the request listener and then closes the connection. - * - * It must be set to a non-zero value (e.g. 120 seconds) to protect against - * potential Denial-of-Service attacks in case the server is deployed without a - * reverse proxy in front. - * @since v14.11.0 - */ - requestTimeout: number; - /** - * Closes all connections connected to this server. - * @since v18.2.0 - */ - closeAllConnections(): void; - /** - * Closes all connections connected to this server which are not sending a request - * or waiting for a response. - * @since v18.2.0 - */ - closeIdleConnections(): void; - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "connection", listener: (socket: Socket) => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "listening", listener: () => void): this; - addListener(event: "checkContinue", listener: RequestListener): this; - addListener(event: "checkExpectation", listener: RequestListener): this; - addListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this; - addListener( - event: "connect", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - addListener(event: "dropRequest", listener: (req: InstanceType, socket: stream.Duplex) => void): this; - addListener(event: "request", listener: RequestListener): this; - addListener( - event: "upgrade", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - emit(event: string, ...args: any[]): boolean; - emit(event: "close"): boolean; - emit(event: "connection", socket: Socket): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "listening"): boolean; - emit( - event: "checkContinue", - req: InstanceType, - res: InstanceType & { req: InstanceType }, - ): boolean; - emit( - event: "checkExpectation", - req: InstanceType, - res: InstanceType & { req: InstanceType }, - ): boolean; - emit(event: "clientError", err: Error, socket: stream.Duplex): boolean; - emit(event: "connect", req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer): boolean; - emit(event: "dropRequest", req: InstanceType, socket: stream.Duplex): boolean; - emit( - event: "request", - req: InstanceType, - res: InstanceType & { req: InstanceType }, - ): boolean; - emit(event: "upgrade", req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: () => void): this; - on(event: "connection", listener: (socket: Socket) => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "listening", listener: () => void): this; - on(event: "checkContinue", listener: RequestListener): this; - on(event: "checkExpectation", listener: RequestListener): this; - on(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this; - on( - event: "connect", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - on(event: "dropRequest", listener: (req: InstanceType, socket: stream.Duplex) => void): this; - on(event: "request", listener: RequestListener): this; - on( - event: "upgrade", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "connection", listener: (socket: Socket) => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "listening", listener: () => void): this; - once(event: "checkContinue", listener: RequestListener): this; - once(event: "checkExpectation", listener: RequestListener): this; - once(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this; - once( - event: "connect", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - once(event: "dropRequest", listener: (req: InstanceType, socket: stream.Duplex) => void): this; - once(event: "request", listener: RequestListener): this; - once( - event: "upgrade", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "connection", listener: (socket: Socket) => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "listening", listener: () => void): this; - prependListener(event: "checkContinue", listener: RequestListener): this; - prependListener(event: "checkExpectation", listener: RequestListener): this; - prependListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this; - prependListener( - event: "connect", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - prependListener( - event: "dropRequest", - listener: (req: InstanceType, socket: stream.Duplex) => void, - ): this; - prependListener(event: "request", listener: RequestListener): this; - prependListener( - event: "upgrade", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "connection", listener: (socket: Socket) => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "listening", listener: () => void): this; - prependOnceListener(event: "checkContinue", listener: RequestListener): this; - prependOnceListener(event: "checkExpectation", listener: RequestListener): this; - prependOnceListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this; - prependOnceListener( - event: "connect", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - prependOnceListener( - event: "dropRequest", - listener: (req: InstanceType, socket: stream.Duplex) => void, - ): this; - prependOnceListener(event: "request", listener: RequestListener): this; - prependOnceListener( - event: "upgrade", - listener: (req: InstanceType, socket: stream.Duplex, head: NonSharedBuffer) => void, - ): this; - } - /** - * This class serves as the parent class of {@link ClientRequest} and {@link ServerResponse}. It is an abstract outgoing message from - * the perspective of the participants of an HTTP transaction. - * @since v0.1.17 - */ - class OutgoingMessage extends stream.Writable { - readonly req: Request; - chunkedEncoding: boolean; - shouldKeepAlive: boolean; - useChunkedEncodingByDefault: boolean; - sendDate: boolean; - /** - * @deprecated Use `writableEnded` instead. - */ - finished: boolean; - /** - * Read-only. `true` if the headers were sent, otherwise `false`. - * @since v0.9.3 - */ - readonly headersSent: boolean; - /** - * Alias of `outgoingMessage.socket`. - * @since v0.3.0 - * @deprecated Since v15.12.0,v14.17.1 - Use `socket` instead. - */ - readonly connection: Socket | null; - /** - * Reference to the underlying socket. Usually, users will not want to access - * this property. - * - * After calling `outgoingMessage.end()`, this property will be nulled. - * @since v0.3.0 - */ - readonly socket: Socket | null; - constructor(); - /** - * Once a socket is associated with the message and is connected, `socket.setTimeout()` will be called with `msecs` as the first parameter. - * @since v0.9.12 - * @param callback Optional function to be called when a timeout occurs. Same as binding to the `timeout` event. - */ - setTimeout(msecs: number, callback?: () => void): this; - /** - * Sets a single header value. If the header already exists in the to-be-sent - * headers, its value will be replaced. Use an array of strings to send multiple - * headers with the same name. - * @since v0.4.0 - * @param name Header name - * @param value Header value - */ - setHeader(name: string, value: number | string | readonly string[]): this; - /** - * Sets multiple header values for implicit headers. headers must be an instance of - * `Headers` or `Map`, if a header already exists in the to-be-sent headers, its - * value will be replaced. - * - * ```js - * const headers = new Headers({ foo: 'bar' }); - * outgoingMessage.setHeaders(headers); - * ``` - * - * or - * - * ```js - * const headers = new Map([['foo', 'bar']]); - * outgoingMessage.setHeaders(headers); - * ``` - * - * When headers have been set with `outgoingMessage.setHeaders()`, they will be - * merged with any headers passed to `response.writeHead()`, with the headers passed - * to `response.writeHead()` given precedence. - * - * ```js - * // Returns content-type = text/plain - * const server = http.createServer((req, res) => { - * const headers = new Headers({ 'Content-Type': 'text/html' }); - * res.setHeaders(headers); - * res.writeHead(200, { 'Content-Type': 'text/plain' }); - * res.end('ok'); - * }); - * ``` - * - * @since v19.6.0, v18.15.0 - * @param name Header name - * @param value Header value - */ - setHeaders(headers: Headers | Map): this; - /** - * Append a single header value to the header object. - * - * If the value is an array, this is equivalent to calling this method multiple - * times. - * - * If there were no previous values for the header, this is equivalent to calling `outgoingMessage.setHeader(name, value)`. - * - * Depending of the value of `options.uniqueHeaders` when the client request or the - * server were created, this will end up in the header being sent multiple times or - * a single time with values joined using `; `. - * @since v18.3.0, v16.17.0 - * @param name Header name - * @param value Header value - */ - appendHeader(name: string, value: string | readonly string[]): this; - /** - * Gets the value of the HTTP header with the given name. If that header is not - * set, the returned value will be `undefined`. - * @since v0.4.0 - * @param name Name of header - */ - getHeader(name: string): number | string | string[] | undefined; - /** - * Returns a shallow copy of the current outgoing headers. Since a shallow - * copy is used, array values may be mutated without additional calls to - * various header-related HTTP module methods. The keys of the returned - * object are the header names and the values are the respective header - * values. All header names are lowercase. - * - * The object returned by the `outgoingMessage.getHeaders()` method does - * not prototypically inherit from the JavaScript `Object`. This means that - * typical `Object` methods such as `obj.toString()`, `obj.hasOwnProperty()`, - * and others are not defined and will not work. - * - * ```js - * outgoingMessage.setHeader('Foo', 'bar'); - * outgoingMessage.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); - * - * const headers = outgoingMessage.getHeaders(); - * // headers === { foo: 'bar', 'set-cookie': ['foo=bar', 'bar=baz'] } - * ``` - * @since v7.7.0 - */ - getHeaders(): OutgoingHttpHeaders; - /** - * Returns an array containing the unique names of the current outgoing headers. - * All names are lowercase. - * @since v7.7.0 - */ - getHeaderNames(): string[]; - /** - * Returns `true` if the header identified by `name` is currently set in the - * outgoing headers. The header name is case-insensitive. - * - * ```js - * const hasContentType = outgoingMessage.hasHeader('content-type'); - * ``` - * @since v7.7.0 - */ - hasHeader(name: string): boolean; - /** - * Removes a header that is queued for implicit sending. - * - * ```js - * outgoingMessage.removeHeader('Content-Encoding'); - * ``` - * @since v0.4.0 - * @param name Header name - */ - removeHeader(name: string): void; - /** - * Adds HTTP trailers (headers but at the end of the message) to the message. - * - * Trailers will **only** be emitted if the message is chunked encoded. If not, - * the trailers will be silently discarded. - * - * HTTP requires the `Trailer` header to be sent to emit trailers, - * with a list of header field names in its value, e.g. - * - * ```js - * message.writeHead(200, { 'Content-Type': 'text/plain', - * 'Trailer': 'Content-MD5' }); - * message.write(fileData); - * message.addTrailers({ 'Content-MD5': '7895bf4b8828b55ceaf47747b4bca667' }); - * message.end(); - * ``` - * - * Attempting to set a header field name or value that contains invalid characters - * will result in a `TypeError` being thrown. - * @since v0.3.0 - */ - addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void; - /** - * Flushes the message headers. - * - * For efficiency reason, Node.js normally buffers the message headers - * until `outgoingMessage.end()` is called or the first chunk of message data - * is written. It then tries to pack the headers and data into a single TCP - * packet. - * - * It is usually desired (it saves a TCP round-trip), but not when the first - * data is not sent until possibly much later. `outgoingMessage.flushHeaders()` bypasses the optimization and kickstarts the message. - * @since v1.6.0 - */ - flushHeaders(): void; - } - /** - * This object is created internally by an HTTP server, not by the user. It is - * passed as the second parameter to the `'request'` event. - * @since v0.1.17 - */ - class ServerResponse extends OutgoingMessage { - /** - * When using implicit headers (not calling `response.writeHead()` explicitly), - * this property controls the status code that will be sent to the client when - * the headers get flushed. - * - * ```js - * response.statusCode = 404; - * ``` - * - * After response header was sent to the client, this property indicates the - * status code which was sent out. - * @since v0.4.0 - */ - statusCode: number; - /** - * When using implicit headers (not calling `response.writeHead()` explicitly), - * this property controls the status message that will be sent to the client when - * the headers get flushed. If this is left as `undefined` then the standard - * message for the status code will be used. - * - * ```js - * response.statusMessage = 'Not found'; - * ``` - * - * After response header was sent to the client, this property indicates the - * status message which was sent out. - * @since v0.11.8 - */ - statusMessage: string; - /** - * If set to `true`, Node.js will check whether the `Content-Length` header value and the size of the body, in bytes, are equal. - * Mismatching the `Content-Length` header value will result - * in an `Error` being thrown, identified by `code:``'ERR_HTTP_CONTENT_LENGTH_MISMATCH'`. - * @since v18.10.0, v16.18.0 - */ - strictContentLength: boolean; - constructor(req: Request); - assignSocket(socket: Socket): void; - detachSocket(socket: Socket): void; - /** - * Sends an HTTP/1.1 100 Continue message to the client, indicating that - * the request body should be sent. See the `'checkContinue'` event on `Server`. - * @since v0.3.0 - */ - writeContinue(callback?: () => void): void; - /** - * Sends an HTTP/1.1 103 Early Hints message to the client with a Link header, - * indicating that the user agent can preload/preconnect the linked resources. - * The `hints` is an object containing the values of headers to be sent with - * early hints message. The optional `callback` argument will be called when - * the response message has been written. - * - * **Example** - * - * ```js - * const earlyHintsLink = '; rel=preload; as=style'; - * response.writeEarlyHints({ - * 'link': earlyHintsLink, - * }); - * - * const earlyHintsLinks = [ - * '; rel=preload; as=style', - * '; rel=preload; as=script', - * ]; - * response.writeEarlyHints({ - * 'link': earlyHintsLinks, - * 'x-trace-id': 'id for diagnostics', - * }); - * - * const earlyHintsCallback = () => console.log('early hints message sent'); - * response.writeEarlyHints({ - * 'link': earlyHintsLinks, - * }, earlyHintsCallback); - * ``` - * @since v18.11.0 - * @param hints An object containing the values of headers - * @param callback Will be called when the response message has been written - */ - writeEarlyHints(hints: Record, callback?: () => void): void; - /** - * Sends a response header to the request. The status code is a 3-digit HTTP - * status code, like `404`. The last argument, `headers`, are the response headers. - * Optionally one can give a human-readable `statusMessage` as the second - * argument. - * - * `headers` may be an `Array` where the keys and values are in the same list. - * It is _not_ a list of tuples. So, the even-numbered offsets are key values, - * and the odd-numbered offsets are the associated values. The array is in the same - * format as `request.rawHeaders`. - * - * Returns a reference to the `ServerResponse`, so that calls can be chained. - * - * ```js - * const body = 'hello world'; - * response - * .writeHead(200, { - * 'Content-Length': Buffer.byteLength(body), - * 'Content-Type': 'text/plain', - * }) - * .end(body); - * ``` - * - * This method must only be called once on a message and it must - * be called before `response.end()` is called. - * - * If `response.write()` or `response.end()` are called before calling - * this, the implicit/mutable headers will be calculated and call this function. - * - * When headers have been set with `response.setHeader()`, they will be merged - * with any headers passed to `response.writeHead()`, with the headers passed - * to `response.writeHead()` given precedence. - * - * If this method is called and `response.setHeader()` has not been called, - * it will directly write the supplied header values onto the network channel - * without caching internally, and the `response.getHeader()` on the header - * will not yield the expected result. If progressive population of headers is - * desired with potential future retrieval and modification, use `response.setHeader()` instead. - * - * ```js - * // Returns content-type = text/plain - * const server = http.createServer((req, res) => { - * res.setHeader('Content-Type', 'text/html'); - * res.setHeader('X-Foo', 'bar'); - * res.writeHead(200, { 'Content-Type': 'text/plain' }); - * res.end('ok'); - * }); - * ``` - * - * `Content-Length` is read in bytes, not characters. Use `Buffer.byteLength()` to determine the length of the body in bytes. Node.js - * will check whether `Content-Length` and the length of the body which has - * been transmitted are equal or not. - * - * Attempting to set a header field name or value that contains invalid characters - * will result in a \[`Error`\]\[\] being thrown. - * @since v0.1.30 - */ - writeHead( - statusCode: number, - statusMessage?: string, - headers?: OutgoingHttpHeaders | OutgoingHttpHeader[], - ): this; - writeHead(statusCode: number, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this; - /** - * Sends a HTTP/1.1 102 Processing message to the client, indicating that - * the request body should be sent. - * @since v10.0.0 - */ - writeProcessing(callback?: () => void): void; - } - interface InformationEvent { - statusCode: number; - statusMessage: string; - httpVersion: string; - httpVersionMajor: number; - httpVersionMinor: number; - headers: IncomingHttpHeaders; - rawHeaders: string[]; - } - /** - * This object is created internally and returned from {@link request}. It - * represents an _in-progress_ request whose header has already been queued. The - * header is still mutable using the `setHeader(name, value)`, `getHeader(name)`, `removeHeader(name)` API. The actual header will - * be sent along with the first data chunk or when calling `request.end()`. - * - * To get the response, add a listener for `'response'` to the request object. `'response'` will be emitted from the request object when the response - * headers have been received. The `'response'` event is executed with one - * argument which is an instance of {@link IncomingMessage}. - * - * During the `'response'` event, one can add listeners to the - * response object; particularly to listen for the `'data'` event. - * - * If no `'response'` handler is added, then the response will be - * entirely discarded. However, if a `'response'` event handler is added, - * then the data from the response object **must** be consumed, either by - * calling `response.read()` whenever there is a `'readable'` event, or - * by adding a `'data'` handler, or by calling the `.resume()` method. - * Until the data is consumed, the `'end'` event will not fire. Also, until - * the data is read it will consume memory that can eventually lead to a - * 'process out of memory' error. - * - * For backward compatibility, `res` will only emit `'error'` if there is an `'error'` listener registered. - * - * Set `Content-Length` header to limit the response body size. - * If `response.strictContentLength` is set to `true`, mismatching the `Content-Length` header value will result in an `Error` being thrown, - * identified by `code:``'ERR_HTTP_CONTENT_LENGTH_MISMATCH'`. - * - * `Content-Length` value should be in bytes, not characters. Use `Buffer.byteLength()` to determine the length of the body in bytes. - * @since v0.1.17 - */ - class ClientRequest extends OutgoingMessage { - /** - * The `request.aborted` property will be `true` if the request has - * been aborted. - * @since v0.11.14 - * @deprecated Since v17.0.0, v16.12.0 - Check `destroyed` instead. - */ - aborted: boolean; - /** - * The request host. - * @since v14.5.0, v12.19.0 - */ - host: string; - /** - * The request protocol. - * @since v14.5.0, v12.19.0 - */ - protocol: string; - /** - * When sending request through a keep-alive enabled agent, the underlying socket - * might be reused. But if server closes connection at unfortunate time, client - * may run into a 'ECONNRESET' error. - * - * ```js - * import http from 'node:http'; - * - * // Server has a 5 seconds keep-alive timeout by default - * http - * .createServer((req, res) => { - * res.write('hello\n'); - * res.end(); - * }) - * .listen(3000); - * - * setInterval(() => { - * // Adapting a keep-alive agent - * http.get('http://localhost:3000', { agent }, (res) => { - * res.on('data', (data) => { - * // Do nothing - * }); - * }); - * }, 5000); // Sending request on 5s interval so it's easy to hit idle timeout - * ``` - * - * By marking a request whether it reused socket or not, we can do - * automatic error retry base on it. - * - * ```js - * import http from 'node:http'; - * const agent = new http.Agent({ keepAlive: true }); - * - * function retriableRequest() { - * const req = http - * .get('http://localhost:3000', { agent }, (res) => { - * // ... - * }) - * .on('error', (err) => { - * // Check if retry is needed - * if (req.reusedSocket && err.code === 'ECONNRESET') { - * retriableRequest(); - * } - * }); - * } - * - * retriableRequest(); - * ``` - * @since v13.0.0, v12.16.0 - */ - reusedSocket: boolean; - /** - * Limits maximum response headers count. If set to 0, no limit will be applied. - */ - maxHeadersCount: number; - constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void); - /** - * The request method. - * @since v0.1.97 - */ - method: string; - /** - * The request path. - * @since v0.4.0 - */ - path: string; - /** - * Marks the request as aborting. Calling this will cause remaining data - * in the response to be dropped and the socket to be destroyed. - * @since v0.3.8 - * @deprecated Since v14.1.0,v13.14.0 - Use `destroy` instead. - */ - abort(): void; - onSocket(socket: Socket): void; - /** - * Once a socket is assigned to this request and is connected `socket.setTimeout()` will be called. - * @since v0.5.9 - * @param timeout Milliseconds before a request times out. - * @param callback Optional function to be called when a timeout occurs. Same as binding to the `'timeout'` event. - */ - setTimeout(timeout: number, callback?: () => void): this; - /** - * Once a socket is assigned to this request and is connected `socket.setNoDelay()` will be called. - * @since v0.5.9 - */ - setNoDelay(noDelay?: boolean): void; - /** - * Once a socket is assigned to this request and is connected `socket.setKeepAlive()` will be called. - * @since v0.5.9 - */ - setSocketKeepAlive(enable?: boolean, initialDelay?: number): void; - /** - * Returns an array containing the unique names of the current outgoing raw - * headers. Header names are returned with their exact casing being set. - * - * ```js - * request.setHeader('Foo', 'bar'); - * request.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); - * - * const headerNames = request.getRawHeaderNames(); - * // headerNames === ['Foo', 'Set-Cookie'] - * ``` - * @since v15.13.0, v14.17.0 - */ - getRawHeaderNames(): string[]; - /** - * @deprecated - */ - addListener(event: "abort", listener: () => void): this; - addListener( - event: "connect", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - addListener(event: "continue", listener: () => void): this; - addListener(event: "information", listener: (info: InformationEvent) => void): this; - addListener(event: "response", listener: (response: IncomingMessage) => void): this; - addListener(event: "socket", listener: (socket: Socket) => void): this; - addListener(event: "timeout", listener: () => void): this; - addListener( - event: "upgrade", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "drain", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "finish", listener: () => void): this; - addListener(event: "pipe", listener: (src: stream.Readable) => void): this; - addListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - /** - * @deprecated - */ - on(event: "abort", listener: () => void): this; - on( - event: "connect", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - on(event: "continue", listener: () => void): this; - on(event: "information", listener: (info: InformationEvent) => void): this; - on(event: "response", listener: (response: IncomingMessage) => void): this; - on(event: "socket", listener: (socket: Socket) => void): this; - on(event: "timeout", listener: () => void): this; - on( - event: "upgrade", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - on(event: "close", listener: () => void): this; - on(event: "drain", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "finish", listener: () => void): this; - on(event: "pipe", listener: (src: stream.Readable) => void): this; - on(event: "unpipe", listener: (src: stream.Readable) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - /** - * @deprecated - */ - once(event: "abort", listener: () => void): this; - once( - event: "connect", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - once(event: "continue", listener: () => void): this; - once(event: "information", listener: (info: InformationEvent) => void): this; - once(event: "response", listener: (response: IncomingMessage) => void): this; - once(event: "socket", listener: (socket: Socket) => void): this; - once(event: "timeout", listener: () => void): this; - once( - event: "upgrade", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - once(event: "close", listener: () => void): this; - once(event: "drain", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "finish", listener: () => void): this; - once(event: "pipe", listener: (src: stream.Readable) => void): this; - once(event: "unpipe", listener: (src: stream.Readable) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - /** - * @deprecated - */ - prependListener(event: "abort", listener: () => void): this; - prependListener( - event: "connect", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - prependListener(event: "continue", listener: () => void): this; - prependListener(event: "information", listener: (info: InformationEvent) => void): this; - prependListener(event: "response", listener: (response: IncomingMessage) => void): this; - prependListener(event: "socket", listener: (socket: Socket) => void): this; - prependListener(event: "timeout", listener: () => void): this; - prependListener( - event: "upgrade", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "drain", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "finish", listener: () => void): this; - prependListener(event: "pipe", listener: (src: stream.Readable) => void): this; - prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - /** - * @deprecated - */ - prependOnceListener(event: "abort", listener: () => void): this; - prependOnceListener( - event: "connect", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - prependOnceListener(event: "continue", listener: () => void): this; - prependOnceListener(event: "information", listener: (info: InformationEvent) => void): this; - prependOnceListener(event: "response", listener: (response: IncomingMessage) => void): this; - prependOnceListener(event: "socket", listener: (socket: Socket) => void): this; - prependOnceListener(event: "timeout", listener: () => void): this; - prependOnceListener( - event: "upgrade", - listener: (response: IncomingMessage, socket: Socket, head: NonSharedBuffer) => void, - ): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "drain", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "finish", listener: () => void): this; - prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this; - prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - /** - * An `IncomingMessage` object is created by {@link Server} or {@link ClientRequest} and passed as the first argument to the `'request'` and `'response'` event respectively. It may be used to - * access response - * status, headers, and data. - * - * Different from its `socket` value which is a subclass of `stream.Duplex`, the `IncomingMessage` itself extends `stream.Readable` and is created separately to - * parse and emit the incoming HTTP headers and payload, as the underlying socket - * may be reused multiple times in case of keep-alive. - * @since v0.1.17 - */ - class IncomingMessage extends stream.Readable { - constructor(socket: Socket); - /** - * The `message.aborted` property will be `true` if the request has - * been aborted. - * @since v10.1.0 - * @deprecated Since v17.0.0,v16.12.0 - Check `message.destroyed` from stream.Readable. - */ - aborted: boolean; - /** - * In case of server request, the HTTP version sent by the client. In the case of - * client response, the HTTP version of the connected-to server. - * Probably either `'1.1'` or `'1.0'`. - * - * Also `message.httpVersionMajor` is the first integer and `message.httpVersionMinor` is the second. - * @since v0.1.1 - */ - httpVersion: string; - httpVersionMajor: number; - httpVersionMinor: number; - /** - * The `message.complete` property will be `true` if a complete HTTP message has - * been received and successfully parsed. - * - * This property is particularly useful as a means of determining if a client or - * server fully transmitted a message before a connection was terminated: - * - * ```js - * const req = http.request({ - * host: '127.0.0.1', - * port: 8080, - * method: 'POST', - * }, (res) => { - * res.resume(); - * res.on('end', () => { - * if (!res.complete) - * console.error( - * 'The connection was terminated while the message was still being sent'); - * }); - * }); - * ``` - * @since v0.3.0 - */ - complete: boolean; - /** - * Alias for `message.socket`. - * @since v0.1.90 - * @deprecated Since v16.0.0 - Use `socket`. - */ - connection: Socket; - /** - * The `net.Socket` object associated with the connection. - * - * With HTTPS support, use `request.socket.getPeerCertificate()` to obtain the - * client's authentication details. - * - * This property is guaranteed to be an instance of the `net.Socket` class, - * a subclass of `stream.Duplex`, unless the user specified a socket - * type other than `net.Socket` or internally nulled. - * @since v0.3.0 - */ - socket: Socket; - /** - * The request/response headers object. - * - * Key-value pairs of header names and values. Header names are lower-cased. - * - * ```js - * // Prints something like: - * // - * // { 'user-agent': 'curl/7.22.0', - * // host: '127.0.0.1:8000', - * // accept: '*' } - * console.log(request.headers); - * ``` - * - * Duplicates in raw headers are handled in the following ways, depending on the - * header name: - * - * * Duplicates of `age`, `authorization`, `content-length`, `content-type`, `etag`, `expires`, `from`, `host`, `if-modified-since`, `if-unmodified-since`, `last-modified`, `location`, - * `max-forwards`, `proxy-authorization`, `referer`, `retry-after`, `server`, or `user-agent` are discarded. - * To allow duplicate values of the headers listed above to be joined, - * use the option `joinDuplicateHeaders` in {@link request} and {@link createServer}. See RFC 9110 Section 5.3 for more - * information. - * * `set-cookie` is always an array. Duplicates are added to the array. - * * For duplicate `cookie` headers, the values are joined together with `; `. - * * For all other headers, the values are joined together with `, `. - * @since v0.1.5 - */ - headers: IncomingHttpHeaders; - /** - * Similar to `message.headers`, but there is no join logic and the values are - * always arrays of strings, even for headers received just once. - * - * ```js - * // Prints something like: - * // - * // { 'user-agent': ['curl/7.22.0'], - * // host: ['127.0.0.1:8000'], - * // accept: ['*'] } - * console.log(request.headersDistinct); - * ``` - * @since v18.3.0, v16.17.0 - */ - headersDistinct: NodeJS.Dict; - /** - * The raw request/response headers list exactly as they were received. - * - * The keys and values are in the same list. It is _not_ a - * list of tuples. So, the even-numbered offsets are key values, and the - * odd-numbered offsets are the associated values. - * - * Header names are not lowercased, and duplicates are not merged. - * - * ```js - * // Prints something like: - * // - * // [ 'user-agent', - * // 'this is invalid because there can be only one', - * // 'User-Agent', - * // 'curl/7.22.0', - * // 'Host', - * // '127.0.0.1:8000', - * // 'ACCEPT', - * // '*' ] - * console.log(request.rawHeaders); - * ``` - * @since v0.11.6 - */ - rawHeaders: string[]; - /** - * The request/response trailers object. Only populated at the `'end'` event. - * @since v0.3.0 - */ - trailers: NodeJS.Dict; - /** - * Similar to `message.trailers`, but there is no join logic and the values are - * always arrays of strings, even for headers received just once. - * Only populated at the `'end'` event. - * @since v18.3.0, v16.17.0 - */ - trailersDistinct: NodeJS.Dict; - /** - * The raw request/response trailer keys and values exactly as they were - * received. Only populated at the `'end'` event. - * @since v0.11.6 - */ - rawTrailers: string[]; - /** - * Calls `message.socket.setTimeout(msecs, callback)`. - * @since v0.5.9 - */ - setTimeout(msecs: number, callback?: () => void): this; - /** - * **Only valid for request obtained from {@link Server}.** - * - * The request method as a string. Read only. Examples: `'GET'`, `'DELETE'`. - * @since v0.1.1 - */ - method?: string | undefined; - /** - * **Only valid for request obtained from {@link Server}.** - * - * Request URL string. This contains only the URL that is present in the actual - * HTTP request. Take the following request: - * - * ```http - * GET /status?name=ryan HTTP/1.1 - * Accept: text/plain - * ``` - * - * To parse the URL into its parts: - * - * ```js - * new URL(`http://${process.env.HOST ?? 'localhost'}${request.url}`); - * ``` - * - * When `request.url` is `'/status?name=ryan'` and `process.env.HOST` is undefined: - * - * ```console - * $ node - * > new URL(`http://${process.env.HOST ?? 'localhost'}${request.url}`); - * URL { - * href: 'http://localhost/status?name=ryan', - * origin: 'http://localhost', - * protocol: 'http:', - * username: '', - * password: '', - * host: 'localhost', - * hostname: 'localhost', - * port: '', - * pathname: '/status', - * search: '?name=ryan', - * searchParams: URLSearchParams { 'name' => 'ryan' }, - * hash: '' - * } - * ``` - * - * Ensure that you set `process.env.HOST` to the server's host name, or consider replacing this part entirely. If using `req.headers.host`, ensure proper - * validation is used, as clients may specify a custom `Host` header. - * @since v0.1.90 - */ - url?: string | undefined; - /** - * **Only valid for response obtained from {@link ClientRequest}.** - * - * The 3-digit HTTP response status code. E.G. `404`. - * @since v0.1.1 - */ - statusCode?: number | undefined; - /** - * **Only valid for response obtained from {@link ClientRequest}.** - * - * The HTTP response status message (reason phrase). E.G. `OK` or `Internal Server Error`. - * @since v0.11.10 - */ - statusMessage?: string | undefined; - /** - * Calls `destroy()` on the socket that received the `IncomingMessage`. If `error` is provided, an `'error'` event is emitted on the socket and `error` is passed - * as an argument to any listeners on the event. - * @since v0.3.0 - */ - destroy(error?: Error): this; - } - interface ProxyEnv extends NodeJS.ProcessEnv { - HTTP_PROXY?: string | undefined; - HTTPS_PROXY?: string | undefined; - NO_PROXY?: string | undefined; - http_proxy?: string | undefined; - https_proxy?: string | undefined; - no_proxy?: string | undefined; - } - interface AgentOptions extends NodeJS.PartialOptions { - /** - * Keep sockets around in a pool to be used by other requests in the future. Default = false - */ - keepAlive?: boolean | undefined; - /** - * When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000. - * Only relevant if keepAlive is set to true. - */ - keepAliveMsecs?: number | undefined; - /** - * Milliseconds to subtract from - * the server-provided `keep-alive: timeout=...` hint when determining socket - * expiration time. This buffer helps ensure the agent closes the socket - * slightly before the server does, reducing the chance of sending a request - * on a socket that’s about to be closed by the server. - * @since v24.7.0 - * @default 1000 - */ - agentKeepAliveTimeoutBuffer?: number | undefined; - /** - * Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity - */ - maxSockets?: number | undefined; - /** - * Maximum number of sockets allowed for all hosts in total. Each request will use a new socket until the maximum is reached. Default: Infinity. - */ - maxTotalSockets?: number | undefined; - /** - * Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256. - */ - maxFreeSockets?: number | undefined; - /** - * Socket timeout in milliseconds. This will set the timeout after the socket is connected. - */ - timeout?: number | undefined; - /** - * Scheduling strategy to apply when picking the next free socket to use. - * @default `lifo` - */ - scheduling?: "fifo" | "lifo" | undefined; - /** - * Environment variables for proxy configuration. See - * [Built-in Proxy Support](https://nodejs.org/docs/latest-v24.x/api/http.html#built-in-proxy-support) for details. - * @since v24.5.0 - */ - proxyEnv?: ProxyEnv | undefined; - /** - * Default port to use when the port is not specified in requests. - * @since v24.5.0 - */ - defaultPort?: number | undefined; - /** - * The protocol to use for the agent. - * @since v24.5.0 - */ - protocol?: string | undefined; - } - /** - * An `Agent` is responsible for managing connection persistence - * and reuse for HTTP clients. It maintains a queue of pending requests - * for a given host and port, reusing a single socket connection for each - * until the queue is empty, at which time the socket is either destroyed - * or put into a pool where it is kept to be used again for requests to the - * same host and port. Whether it is destroyed or pooled depends on the `keepAlive` `option`. - * - * Pooled connections have TCP Keep-Alive enabled for them, but servers may - * still close idle connections, in which case they will be removed from the - * pool and a new connection will be made when a new HTTP request is made for - * that host and port. Servers may also refuse to allow multiple requests - * over the same connection, in which case the connection will have to be - * remade for every request and cannot be pooled. The `Agent` will still make - * the requests to that server, but each one will occur over a new connection. - * - * When a connection is closed by the client or the server, it is removed - * from the pool. Any unused sockets in the pool will be unrefed so as not - * to keep the Node.js process running when there are no outstanding requests. - * (see `socket.unref()`). - * - * It is good practice, to `destroy()` an `Agent` instance when it is no - * longer in use, because unused sockets consume OS resources. - * - * Sockets are removed from an agent when the socket emits either - * a `'close'` event or an `'agentRemove'` event. When intending to keep one - * HTTP request open for a long time without keeping it in the agent, something - * like the following may be done: - * - * ```js - * http.get(options, (res) => { - * // Do stuff - * }).on('socket', (socket) => { - * socket.emit('agentRemove'); - * }); - * ``` - * - * An agent may also be used for an individual request. By providing `{agent: false}` as an option to the `http.get()` or `http.request()` functions, a one-time use `Agent` with default options - * will be used - * for the client connection. - * - * `agent:false`: - * - * ```js - * http.get({ - * hostname: 'localhost', - * port: 80, - * path: '/', - * agent: false, // Create a new agent just for this one request - * }, (res) => { - * // Do stuff with response - * }); - * ``` - * - * `options` in [`socket.connect()`](https://nodejs.org/docs/latest-v24.x/api/net.html#socketconnectoptions-connectlistener) are also supported. - * - * To configure any of them, a custom {@link Agent} instance must be created. - * - * ```js - * import http from 'node:http'; - * const keepAliveAgent = new http.Agent({ keepAlive: true }); - * options.agent = keepAliveAgent; - * http.request(options, onResponseCallback) - * ``` - * @since v0.3.4 - */ - class Agent extends EventEmitter { - /** - * By default set to 256. For agents with `keepAlive` enabled, this - * sets the maximum number of sockets that will be left open in the free - * state. - * @since v0.11.7 - */ - maxFreeSockets: number; - /** - * By default set to `Infinity`. Determines how many concurrent sockets the agent - * can have open per origin. Origin is the returned value of `agent.getName()`. - * @since v0.3.6 - */ - maxSockets: number; - /** - * By default set to `Infinity`. Determines how many concurrent sockets the agent - * can have open. Unlike `maxSockets`, this parameter applies across all origins. - * @since v14.5.0, v12.19.0 - */ - maxTotalSockets: number; - /** - * An object which contains arrays of sockets currently awaiting use by - * the agent when `keepAlive` is enabled. Do not modify. - * - * Sockets in the `freeSockets` list will be automatically destroyed and - * removed from the array on `'timeout'`. - * @since v0.11.4 - */ - readonly freeSockets: NodeJS.ReadOnlyDict; - /** - * An object which contains arrays of sockets currently in use by the - * agent. Do not modify. - * @since v0.3.6 - */ - readonly sockets: NodeJS.ReadOnlyDict; - /** - * An object which contains queues of requests that have not yet been assigned to - * sockets. Do not modify. - * @since v0.5.9 - */ - readonly requests: NodeJS.ReadOnlyDict; - constructor(opts?: AgentOptions); - /** - * Destroy any sockets that are currently in use by the agent. - * - * It is usually not necessary to do this. However, if using an - * agent with `keepAlive` enabled, then it is best to explicitly shut down - * the agent when it is no longer needed. Otherwise, - * sockets might stay open for quite a long time before the server - * terminates them. - * @since v0.11.4 - */ - destroy(): void; - /** - * Produces a socket/stream to be used for HTTP requests. - * - * By default, this function is the same as `net.createConnection()`. However, - * custom agents may override this method in case greater flexibility is desired. - * - * A socket/stream can be supplied in one of two ways: by returning the - * socket/stream from this function, or by passing the socket/stream to `callback`. - * - * This method is guaranteed to return an instance of the `net.Socket` class, - * a subclass of `stream.Duplex`, unless the user specifies a socket - * type other than `net.Socket`. - * - * `callback` has a signature of `(err, stream)`. - * @since v0.11.4 - * @param options Options containing connection details. Check `createConnection` for the format of the options - * @param callback Callback function that receives the created socket - */ - createConnection( - options: ClientRequestArgs, - callback?: (err: Error | null, stream: stream.Duplex) => void, - ): stream.Duplex | null | undefined; - /** - * Called when `socket` is detached from a request and could be persisted by the`Agent`. Default behavior is to: - * - * ```js - * socket.setKeepAlive(true, this.keepAliveMsecs); - * socket.unref(); - * return true; - * ``` - * - * This method can be overridden by a particular `Agent` subclass. If this - * method returns a falsy value, the socket will be destroyed instead of persisting - * it for use with the next request. - * - * The `socket` argument can be an instance of `net.Socket`, a subclass of `stream.Duplex`. - * @since v8.1.0 - */ - keepSocketAlive(socket: stream.Duplex): void; - /** - * Called when `socket` is attached to `request` after being persisted because of - * the keep-alive options. Default behavior is to: - * - * ```js - * socket.ref(); - * ``` - * - * This method can be overridden by a particular `Agent` subclass. - * - * The `socket` argument can be an instance of `net.Socket`, a subclass of `stream.Duplex`. - * @since v8.1.0 - */ - reuseSocket(socket: stream.Duplex, request: ClientRequest): void; - /** - * Get a unique name for a set of request options, to determine whether a - * connection can be reused. For an HTTP agent, this returns`host:port:localAddress` or `host:port:localAddress:family`. For an HTTPS agent, - * the name includes the CA, cert, ciphers, and other HTTPS/TLS-specific options - * that determine socket reusability. - * @since v0.11.4 - * @param options A set of options providing information for name generation - */ - getName(options?: ClientRequestArgs): string; - } - const METHODS: string[]; - const STATUS_CODES: { - [errorCode: number]: string | undefined; - [errorCode: string]: string | undefined; - }; - /** - * Returns a new instance of {@link Server}. - * - * The `requestListener` is a function which is automatically - * added to the `'request'` event. - * - * ```js - * import http from 'node:http'; - * - * // Create a local server to receive data from - * const server = http.createServer((req, res) => { - * res.writeHead(200, { 'Content-Type': 'application/json' }); - * res.end(JSON.stringify({ - * data: 'Hello World!', - * })); - * }); - * - * server.listen(8000); - * ``` - * - * ```js - * import http from 'node:http'; - * - * // Create a local server to receive data from - * const server = http.createServer(); - * - * // Listen to the request event - * server.on('request', (request, res) => { - * res.writeHead(200, { 'Content-Type': 'application/json' }); - * res.end(JSON.stringify({ - * data: 'Hello World!', - * })); - * }); - * - * server.listen(8000); - * ``` - * @since v0.1.13 - */ - function createServer< - Request extends typeof IncomingMessage = typeof IncomingMessage, - Response extends typeof ServerResponse> = typeof ServerResponse, - >(requestListener?: RequestListener): Server; - function createServer< - Request extends typeof IncomingMessage = typeof IncomingMessage, - Response extends typeof ServerResponse> = typeof ServerResponse, - >( - options: ServerOptions, - requestListener?: RequestListener, - ): Server; - // although RequestOptions are passed as ClientRequestArgs to ClientRequest directly, - // create interface RequestOptions would make the naming more clear to developers - interface RequestOptions extends ClientRequestArgs {} - /** - * `options` in `socket.connect()` are also supported. - * - * Node.js maintains several connections per server to make HTTP requests. - * This function allows one to transparently issue requests. - * - * `url` can be a string or a `URL` object. If `url` is a - * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object. - * - * If both `url` and `options` are specified, the objects are merged, with the `options` properties taking precedence. - * - * The optional `callback` parameter will be added as a one-time listener for - * the `'response'` event. - * - * `http.request()` returns an instance of the {@link ClientRequest} class. The `ClientRequest` instance is a writable stream. If one needs to - * upload a file with a POST request, then write to the `ClientRequest` object. - * - * ```js - * import http from 'node:http'; - * import { Buffer } from 'node:buffer'; - * - * const postData = JSON.stringify({ - * 'msg': 'Hello World!', - * }); - * - * const options = { - * hostname: 'www.google.com', - * port: 80, - * path: '/upload', - * method: 'POST', - * headers: { - * 'Content-Type': 'application/json', - * 'Content-Length': Buffer.byteLength(postData), - * }, - * }; - * - * const req = http.request(options, (res) => { - * console.log(`STATUS: ${res.statusCode}`); - * console.log(`HEADERS: ${JSON.stringify(res.headers)}`); - * res.setEncoding('utf8'); - * res.on('data', (chunk) => { - * console.log(`BODY: ${chunk}`); - * }); - * res.on('end', () => { - * console.log('No more data in response.'); - * }); - * }); - * - * req.on('error', (e) => { - * console.error(`problem with request: ${e.message}`); - * }); - * - * // Write data to request body - * req.write(postData); - * req.end(); - * ``` - * - * In the example `req.end()` was called. With `http.request()` one - * must always call `req.end()` to signify the end of the request - - * even if there is no data being written to the request body. - * - * If any error is encountered during the request (be that with DNS resolution, - * TCP level errors, or actual HTTP parse errors) an `'error'` event is emitted - * on the returned request object. As with all `'error'` events, if no listeners - * are registered the error will be thrown. - * - * There are a few special headers that should be noted. - * - * * Sending a 'Connection: keep-alive' will notify Node.js that the connection to - * the server should be persisted until the next request. - * * Sending a 'Content-Length' header will disable the default chunked encoding. - * * Sending an 'Expect' header will immediately send the request headers. - * Usually, when sending 'Expect: 100-continue', both a timeout and a listener - * for the `'continue'` event should be set. See RFC 2616 Section 8.2.3 for more - * information. - * * Sending an Authorization header will override using the `auth` option - * to compute basic authentication. - * - * Example using a `URL` as `options`: - * - * ```js - * const options = new URL('http://abc:xyz@example.com'); - * - * const req = http.request(options, (res) => { - * // ... - * }); - * ``` - * - * In a successful request, the following events will be emitted in the following - * order: - * - * * `'socket'` - * * `'response'` - * * `'data'` any number of times, on the `res` object - * (`'data'` will not be emitted at all if the response body is empty, for - * instance, in most redirects) - * * `'end'` on the `res` object - * * `'close'` - * - * In the case of a connection error, the following events will be emitted: - * - * * `'socket'` - * * `'error'` - * * `'close'` - * - * In the case of a premature connection close before the response is received, - * the following events will be emitted in the following order: - * - * * `'socket'` - * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'` - * * `'close'` - * - * In the case of a premature connection close after the response is received, - * the following events will be emitted in the following order: - * - * * `'socket'` - * * `'response'` - * * `'data'` any number of times, on the `res` object - * * (connection closed here) - * * `'aborted'` on the `res` object - * * `'close'` - * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'` - * * `'close'` on the `res` object - * - * If `req.destroy()` is called before a socket is assigned, the following - * events will be emitted in the following order: - * - * * (`req.destroy()` called here) - * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called - * * `'close'` - * - * If `req.destroy()` is called before the connection succeeds, the following - * events will be emitted in the following order: - * - * * `'socket'` - * * (`req.destroy()` called here) - * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called - * * `'close'` - * - * If `req.destroy()` is called after the response is received, the following - * events will be emitted in the following order: - * - * * `'socket'` - * * `'response'` - * * `'data'` any number of times, on the `res` object - * * (`req.destroy()` called here) - * * `'aborted'` on the `res` object - * * `'close'` - * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called - * * `'close'` on the `res` object - * - * If `req.abort()` is called before a socket is assigned, the following - * events will be emitted in the following order: - * - * * (`req.abort()` called here) - * * `'abort'` - * * `'close'` - * - * If `req.abort()` is called before the connection succeeds, the following - * events will be emitted in the following order: - * - * * `'socket'` - * * (`req.abort()` called here) - * * `'abort'` - * * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'` - * * `'close'` - * - * If `req.abort()` is called after the response is received, the following - * events will be emitted in the following order: - * - * * `'socket'` - * * `'response'` - * * `'data'` any number of times, on the `res` object - * * (`req.abort()` called here) - * * `'abort'` - * * `'aborted'` on the `res` object - * * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'`. - * * `'close'` - * * `'close'` on the `res` object - * - * Setting the `timeout` option or using the `setTimeout()` function will - * not abort the request or do anything besides add a `'timeout'` event. - * - * Passing an `AbortSignal` and then calling `abort()` on the corresponding `AbortController` will behave the same way as calling `.destroy()` on the - * request. Specifically, the `'error'` event will be emitted with an error with - * the message `'AbortError: The operation was aborted'`, the code `'ABORT_ERR'` and the `cause`, if one was provided. - * @since v0.3.6 - */ - function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest; - function request( - url: string | URL, - options: RequestOptions, - callback?: (res: IncomingMessage) => void, - ): ClientRequest; - /** - * Since most requests are GET requests without bodies, Node.js provides this - * convenience method. The only difference between this method and {@link request} is that it sets the method to GET by default and calls `req.end()` automatically. The callback must take care to - * consume the response - * data for reasons stated in {@link ClientRequest} section. - * - * The `callback` is invoked with a single argument that is an instance of {@link IncomingMessage}. - * - * JSON fetching example: - * - * ```js - * http.get('http://localhost:8000/', (res) => { - * const { statusCode } = res; - * const contentType = res.headers['content-type']; - * - * let error; - * // Any 2xx status code signals a successful response but - * // here we're only checking for 200. - * if (statusCode !== 200) { - * error = new Error('Request Failed.\n' + - * `Status Code: ${statusCode}`); - * } else if (!/^application\/json/.test(contentType)) { - * error = new Error('Invalid content-type.\n' + - * `Expected application/json but received ${contentType}`); - * } - * if (error) { - * console.error(error.message); - * // Consume response data to free up memory - * res.resume(); - * return; - * } - * - * res.setEncoding('utf8'); - * let rawData = ''; - * res.on('data', (chunk) => { rawData += chunk; }); - * res.on('end', () => { - * try { - * const parsedData = JSON.parse(rawData); - * console.log(parsedData); - * } catch (e) { - * console.error(e.message); - * } - * }); - * }).on('error', (e) => { - * console.error(`Got error: ${e.message}`); - * }); - * - * // Create a local server to receive data from - * const server = http.createServer((req, res) => { - * res.writeHead(200, { 'Content-Type': 'application/json' }); - * res.end(JSON.stringify({ - * data: 'Hello World!', - * })); - * }); - * - * server.listen(8000); - * ``` - * @since v0.3.6 - * @param options Accepts the same `options` as {@link request}, with the method set to GET by default. - */ - function get(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest; - function get(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest; - /** - * Performs the low-level validations on the provided `name` that are done when `res.setHeader(name, value)` is called. - * - * Passing illegal value as `name` will result in a `TypeError` being thrown, - * identified by `code: 'ERR_INVALID_HTTP_TOKEN'`. - * - * It is not necessary to use this method before passing headers to an HTTP request - * or response. The HTTP module will automatically validate such headers. - * - * Example: - * - * ```js - * import { validateHeaderName } from 'node:http'; - * - * try { - * validateHeaderName(''); - * } catch (err) { - * console.error(err instanceof TypeError); // --> true - * console.error(err.code); // --> 'ERR_INVALID_HTTP_TOKEN' - * console.error(err.message); // --> 'Header name must be a valid HTTP token [""]' - * } - * ``` - * @since v14.3.0 - * @param [label='Header name'] Label for error message. - */ - function validateHeaderName(name: string): void; - /** - * Performs the low-level validations on the provided `value` that are done when `res.setHeader(name, value)` is called. - * - * Passing illegal value as `value` will result in a `TypeError` being thrown. - * - * * Undefined value error is identified by `code: 'ERR_HTTP_INVALID_HEADER_VALUE'`. - * * Invalid value character error is identified by `code: 'ERR_INVALID_CHAR'`. - * - * It is not necessary to use this method before passing headers to an HTTP request - * or response. The HTTP module will automatically validate such headers. - * - * Examples: - * - * ```js - * import { validateHeaderValue } from 'node:http'; - * - * try { - * validateHeaderValue('x-my-header', undefined); - * } catch (err) { - * console.error(err instanceof TypeError); // --> true - * console.error(err.code === 'ERR_HTTP_INVALID_HEADER_VALUE'); // --> true - * console.error(err.message); // --> 'Invalid value "undefined" for header "x-my-header"' - * } - * - * try { - * validateHeaderValue('x-my-header', 'oʊmɪɡə'); - * } catch (err) { - * console.error(err instanceof TypeError); // --> true - * console.error(err.code === 'ERR_INVALID_CHAR'); // --> true - * console.error(err.message); // --> 'Invalid character in header content ["x-my-header"]' - * } - * ``` - * @since v14.3.0 - * @param name Header name - * @param value Header value - */ - function validateHeaderValue(name: string, value: string): void; - /** - * Set the maximum number of idle HTTP parsers. - * @since v18.8.0, v16.18.0 - * @param [max=1000] - */ - function setMaxIdleHTTPParsers(max: number): void; - /** - * Global instance of `Agent` which is used as the default for all HTTP client - * requests. Diverges from a default `Agent` configuration by having `keepAlive` - * enabled and a `timeout` of 5 seconds. - * @since v0.5.9 - */ - let globalAgent: Agent; - /** - * Read-only property specifying the maximum allowed size of HTTP headers in bytes. - * Defaults to 16KB. Configurable using the `--max-http-header-size` CLI option. - */ - const maxHeaderSize: number; - /** - * A browser-compatible implementation of `WebSocket`. - * @since v22.5.0 - */ - const WebSocket: typeof import("undici-types").WebSocket; - /** - * @since v22.5.0 - */ - const CloseEvent: typeof import("undici-types").CloseEvent; - /** - * @since v22.5.0 - */ - const MessageEvent: typeof import("undici-types").MessageEvent; -} -declare module "node:http" { - export * from "http"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/http2.d.ts b/build_vtk_bundle/node_modules/@types/node/http2.d.ts deleted file mode 100644 index c90af905..00000000 --- a/build_vtk_bundle/node_modules/@types/node/http2.d.ts +++ /dev/null @@ -1,2756 +0,0 @@ -/** - * The `node:http2` module provides an implementation of the [HTTP/2](https://tools.ietf.org/html/rfc7540) protocol. - * It can be accessed using: - * - * ```js - * import http2 from 'node:http2'; - * ``` - * @since v8.4.0 - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/http2.js) - */ -declare module "http2" { - import { NonSharedBuffer } from "node:buffer"; - import EventEmitter = require("node:events"); - import * as fs from "node:fs"; - import * as net from "node:net"; - import * as stream from "node:stream"; - import * as tls from "node:tls"; - import * as url from "node:url"; - import { - IncomingHttpHeaders as Http1IncomingHttpHeaders, - IncomingMessage, - OutgoingHttpHeaders, - ServerResponse, - } from "node:http"; - export { OutgoingHttpHeaders } from "node:http"; - export interface IncomingHttpStatusHeader { - ":status"?: number | undefined; - } - export interface IncomingHttpHeaders extends Http1IncomingHttpHeaders { - ":path"?: string | undefined; - ":method"?: string | undefined; - ":authority"?: string | undefined; - ":scheme"?: string | undefined; - } - // Http2Stream - export interface StreamState { - localWindowSize?: number | undefined; - state?: number | undefined; - localClose?: number | undefined; - remoteClose?: number | undefined; - /** @deprecated */ - sumDependencyWeight?: number | undefined; - /** @deprecated */ - weight?: number | undefined; - } - export interface ServerStreamResponseOptions { - endStream?: boolean | undefined; - waitForTrailers?: boolean | undefined; - } - export interface StatOptions { - offset: number; - length: number; - } - export interface ServerStreamFileResponseOptions { - statCheck?: - | ((stats: fs.Stats, headers: OutgoingHttpHeaders, statOptions: StatOptions) => void) - | undefined; - waitForTrailers?: boolean | undefined; - offset?: number | undefined; - length?: number | undefined; - } - export interface ServerStreamFileResponseOptionsWithError extends ServerStreamFileResponseOptions { - onError?: ((err: NodeJS.ErrnoException) => void) | undefined; - } - export interface Http2Stream extends stream.Duplex { - /** - * Set to `true` if the `Http2Stream` instance was aborted abnormally. When set, - * the `'aborted'` event will have been emitted. - * @since v8.4.0 - */ - readonly aborted: boolean; - /** - * This property shows the number of characters currently buffered to be written. - * See `net.Socket.bufferSize` for details. - * @since v11.2.0, v10.16.0 - */ - readonly bufferSize: number; - /** - * Set to `true` if the `Http2Stream` instance has been closed. - * @since v9.4.0 - */ - readonly closed: boolean; - /** - * Set to `true` if the `Http2Stream` instance has been destroyed and is no longer - * usable. - * @since v8.4.0 - */ - readonly destroyed: boolean; - /** - * Set to `true` if the `END_STREAM` flag was set in the request or response - * HEADERS frame received, indicating that no additional data should be received - * and the readable side of the `Http2Stream` will be closed. - * @since v10.11.0 - */ - readonly endAfterHeaders: boolean; - /** - * The numeric stream identifier of this `Http2Stream` instance. Set to `undefined` if the stream identifier has not yet been assigned. - * @since v8.4.0 - */ - readonly id?: number | undefined; - /** - * Set to `true` if the `Http2Stream` instance has not yet been assigned a - * numeric stream identifier. - * @since v9.4.0 - */ - readonly pending: boolean; - /** - * Set to the `RST_STREAM` `error code` reported when the `Http2Stream` is - * destroyed after either receiving an `RST_STREAM` frame from the connected peer, - * calling `http2stream.close()`, or `http2stream.destroy()`. Will be `undefined` if the `Http2Stream` has not been closed. - * @since v8.4.0 - */ - readonly rstCode: number; - /** - * An object containing the outbound headers sent for this `Http2Stream`. - * @since v9.5.0 - */ - readonly sentHeaders: OutgoingHttpHeaders; - /** - * An array of objects containing the outbound informational (additional) headers - * sent for this `Http2Stream`. - * @since v9.5.0 - */ - readonly sentInfoHeaders?: OutgoingHttpHeaders[] | undefined; - /** - * An object containing the outbound trailers sent for this `HttpStream`. - * @since v9.5.0 - */ - readonly sentTrailers?: OutgoingHttpHeaders | undefined; - /** - * A reference to the `Http2Session` instance that owns this `Http2Stream`. The - * value will be `undefined` after the `Http2Stream` instance is destroyed. - * @since v8.4.0 - */ - readonly session: Http2Session | undefined; - /** - * Provides miscellaneous information about the current state of the `Http2Stream`. - * - * A current state of this `Http2Stream`. - * @since v8.4.0 - */ - readonly state: StreamState; - /** - * Closes the `Http2Stream` instance by sending an `RST_STREAM` frame to the - * connected HTTP/2 peer. - * @since v8.4.0 - * @param [code=http2.constants.NGHTTP2_NO_ERROR] Unsigned 32-bit integer identifying the error code. - * @param callback An optional function registered to listen for the `'close'` event. - */ - close(code?: number, callback?: () => void): void; - /** - * @deprecated Priority signaling is no longer supported in Node.js. - */ - priority(options: unknown): void; - /** - * ```js - * import http2 from 'node:http2'; - * const client = http2.connect('http://example.org:8000'); - * const { NGHTTP2_CANCEL } = http2.constants; - * const req = client.request({ ':path': '/' }); - * - * // Cancel the stream if there's no activity after 5 seconds - * req.setTimeout(5000, () => req.close(NGHTTP2_CANCEL)); - * ``` - * @since v8.4.0 - */ - setTimeout(msecs: number, callback?: () => void): void; - /** - * Sends a trailing `HEADERS` frame to the connected HTTP/2 peer. This method - * will cause the `Http2Stream` to be immediately closed and must only be - * called after the `'wantTrailers'` event has been emitted. When sending a - * request or sending a response, the `options.waitForTrailers` option must be set - * in order to keep the `Http2Stream` open after the final `DATA` frame so that - * trailers can be sent. - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * stream.respond(undefined, { waitForTrailers: true }); - * stream.on('wantTrailers', () => { - * stream.sendTrailers({ xyz: 'abc' }); - * }); - * stream.end('Hello World'); - * }); - * ``` - * - * The HTTP/1 specification forbids trailers from containing HTTP/2 pseudo-header - * fields (e.g. `':method'`, `':path'`, etc). - * @since v10.0.0 - */ - sendTrailers(headers: OutgoingHttpHeaders): void; - addListener(event: "aborted", listener: () => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - addListener(event: "drain", listener: () => void): this; - addListener(event: "end", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "finish", listener: () => void): this; - addListener(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; - addListener(event: "pipe", listener: (src: stream.Readable) => void): this; - addListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - addListener(event: "streamClosed", listener: (code: number) => void): this; - addListener(event: "timeout", listener: () => void): this; - addListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; - addListener(event: "wantTrailers", listener: () => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "aborted"): boolean; - emit(event: "close"): boolean; - emit(event: "data", chunk: NonSharedBuffer | string): boolean; - emit(event: "drain"): boolean; - emit(event: "end"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "finish"): boolean; - emit(event: "frameError", frameType: number, errorCode: number): boolean; - emit(event: "pipe", src: stream.Readable): boolean; - emit(event: "unpipe", src: stream.Readable): boolean; - emit(event: "streamClosed", code: number): boolean; - emit(event: "timeout"): boolean; - emit(event: "trailers", trailers: IncomingHttpHeaders, flags: number): boolean; - emit(event: "wantTrailers"): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "aborted", listener: () => void): this; - on(event: "close", listener: () => void): this; - on(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - on(event: "drain", listener: () => void): this; - on(event: "end", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "finish", listener: () => void): this; - on(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; - on(event: "pipe", listener: (src: stream.Readable) => void): this; - on(event: "unpipe", listener: (src: stream.Readable) => void): this; - on(event: "streamClosed", listener: (code: number) => void): this; - on(event: "timeout", listener: () => void): this; - on(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; - on(event: "wantTrailers", listener: () => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "aborted", listener: () => void): this; - once(event: "close", listener: () => void): this; - once(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - once(event: "drain", listener: () => void): this; - once(event: "end", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "finish", listener: () => void): this; - once(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; - once(event: "pipe", listener: (src: stream.Readable) => void): this; - once(event: "unpipe", listener: (src: stream.Readable) => void): this; - once(event: "streamClosed", listener: (code: number) => void): this; - once(event: "timeout", listener: () => void): this; - once(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; - once(event: "wantTrailers", listener: () => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "aborted", listener: () => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - prependListener(event: "drain", listener: () => void): this; - prependListener(event: "end", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "finish", listener: () => void): this; - prependListener(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; - prependListener(event: "pipe", listener: (src: stream.Readable) => void): this; - prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - prependListener(event: "streamClosed", listener: (code: number) => void): this; - prependListener(event: "timeout", listener: () => void): this; - prependListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; - prependListener(event: "wantTrailers", listener: () => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "aborted", listener: () => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - prependOnceListener(event: "drain", listener: () => void): this; - prependOnceListener(event: "end", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "finish", listener: () => void): this; - prependOnceListener(event: "frameError", listener: (frameType: number, errorCode: number) => void): this; - prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this; - prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - prependOnceListener(event: "streamClosed", listener: (code: number) => void): this; - prependOnceListener(event: "timeout", listener: () => void): this; - prependOnceListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; - prependOnceListener(event: "wantTrailers", listener: () => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export interface ClientHttp2Stream extends Http2Stream { - addListener(event: "continue", listener: () => {}): this; - addListener( - event: "headers", - listener: ( - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - addListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; - addListener( - event: "response", - listener: ( - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "continue"): boolean; - emit( - event: "headers", - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - rawHeaders: string[], - ): boolean; - emit(event: "push", headers: IncomingHttpHeaders, flags: number): boolean; - emit( - event: "response", - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - rawHeaders: string[], - ): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "continue", listener: () => {}): this; - on( - event: "headers", - listener: ( - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - on(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; - on( - event: "response", - listener: ( - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "continue", listener: () => {}): this; - once( - event: "headers", - listener: ( - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - once(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; - once( - event: "response", - listener: ( - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "continue", listener: () => {}): this; - prependListener( - event: "headers", - listener: ( - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - prependListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; - prependListener( - event: "response", - listener: ( - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "continue", listener: () => {}): this; - prependOnceListener( - event: "headers", - listener: ( - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - prependOnceListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this; - prependOnceListener( - event: "response", - listener: ( - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export interface ServerHttp2Stream extends Http2Stream { - /** - * True if headers were sent, false otherwise (read-only). - * @since v8.4.0 - */ - readonly headersSent: boolean; - /** - * Read-only property mapped to the `SETTINGS_ENABLE_PUSH` flag of the remote - * client's most recent `SETTINGS` frame. Will be `true` if the remote peer - * accepts push streams, `false` otherwise. Settings are the same for every `Http2Stream` in the same `Http2Session`. - * @since v8.4.0 - */ - readonly pushAllowed: boolean; - /** - * Sends an additional informational `HEADERS` frame to the connected HTTP/2 peer. - * @since v8.4.0 - */ - additionalHeaders(headers: OutgoingHttpHeaders): void; - /** - * Initiates a push stream. The callback is invoked with the new `Http2Stream` instance created for the push stream passed as the second argument, or an `Error` passed as the first argument. - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * stream.respond({ ':status': 200 }); - * stream.pushStream({ ':path': '/' }, (err, pushStream, headers) => { - * if (err) throw err; - * pushStream.respond({ ':status': 200 }); - * pushStream.end('some pushed data'); - * }); - * stream.end('some data'); - * }); - * ``` - * - * Setting the weight of a push stream is not allowed in the `HEADERS` frame. Pass - * a `weight` value to `http2stream.priority` with the `silent` option set to `true` to enable server-side bandwidth balancing between concurrent streams. - * - * Calling `http2stream.pushStream()` from within a pushed stream is not permitted - * and will throw an error. - * @since v8.4.0 - * @param callback Callback that is called once the push stream has been initiated. - */ - pushStream( - headers: OutgoingHttpHeaders, - callback?: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void, - ): void; - pushStream( - headers: OutgoingHttpHeaders, - options?: Pick, - callback?: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void, - ): void; - /** - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * stream.respond({ ':status': 200 }); - * stream.end('some data'); - * }); - * ``` - * - * Initiates a response. When the `options.waitForTrailers` option is set, the `'wantTrailers'` event - * will be emitted immediately after queuing the last chunk of payload data to be sent. - * The `http2stream.sendTrailers()` method can then be used to send trailing header fields to the peer. - * - * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically - * close when the final `DATA` frame is transmitted. User code must call either `http2stream.sendTrailers()` or `http2stream.close()` to close the `Http2Stream`. - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * stream.respond({ ':status': 200 }, { waitForTrailers: true }); - * stream.on('wantTrailers', () => { - * stream.sendTrailers({ ABC: 'some value to send' }); - * }); - * stream.end('some data'); - * }); - * ``` - * @since v8.4.0 - */ - respond(headers?: OutgoingHttpHeaders | readonly string[], options?: ServerStreamResponseOptions): void; - /** - * Initiates a response whose data is read from the given file descriptor. No - * validation is performed on the given file descriptor. If an error occurs while - * attempting to read data using the file descriptor, the `Http2Stream` will be - * closed using an `RST_STREAM` frame using the standard `INTERNAL_ERROR` code. - * - * When used, the `Http2Stream` object's `Duplex` interface will be closed - * automatically. - * - * ```js - * import http2 from 'node:http2'; - * import fs from 'node:fs'; - * - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * const fd = fs.openSync('/some/file', 'r'); - * - * const stat = fs.fstatSync(fd); - * const headers = { - * 'content-length': stat.size, - * 'last-modified': stat.mtime.toUTCString(), - * 'content-type': 'text/plain; charset=utf-8', - * }; - * stream.respondWithFD(fd, headers); - * stream.on('close', () => fs.closeSync(fd)); - * }); - * ``` - * - * The optional `options.statCheck` function may be specified to give user code - * an opportunity to set additional content headers based on the `fs.Stat` details - * of the given fd. If the `statCheck` function is provided, the `http2stream.respondWithFD()` method will - * perform an `fs.fstat()` call to collect details on the provided file descriptor. - * - * The `offset` and `length` options may be used to limit the response to a - * specific range subset. This can be used, for instance, to support HTTP Range - * requests. - * - * The file descriptor or `FileHandle` is not closed when the stream is closed, - * so it will need to be closed manually once it is no longer needed. - * Using the same file descriptor concurrently for multiple streams - * is not supported and may result in data loss. Re-using a file descriptor - * after a stream has finished is supported. - * - * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event - * will be emitted immediately after queuing the last chunk of payload data to be - * sent. The `http2stream.sendTrailers()` method can then be used to sent trailing - * header fields to the peer. - * - * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically - * close when the final `DATA` frame is transmitted. User code _must_ call either `http2stream.sendTrailers()` - * or `http2stream.close()` to close the `Http2Stream`. - * - * ```js - * import http2 from 'node:http2'; - * import fs from 'node:fs'; - * - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * const fd = fs.openSync('/some/file', 'r'); - * - * const stat = fs.fstatSync(fd); - * const headers = { - * 'content-length': stat.size, - * 'last-modified': stat.mtime.toUTCString(), - * 'content-type': 'text/plain; charset=utf-8', - * }; - * stream.respondWithFD(fd, headers, { waitForTrailers: true }); - * stream.on('wantTrailers', () => { - * stream.sendTrailers({ ABC: 'some value to send' }); - * }); - * - * stream.on('close', () => fs.closeSync(fd)); - * }); - * ``` - * @since v8.4.0 - * @param fd A readable file descriptor. - */ - respondWithFD( - fd: number | fs.promises.FileHandle, - headers?: OutgoingHttpHeaders, - options?: ServerStreamFileResponseOptions, - ): void; - /** - * Sends a regular file as the response. The `path` must specify a regular file - * or an `'error'` event will be emitted on the `Http2Stream` object. - * - * When used, the `Http2Stream` object's `Duplex` interface will be closed - * automatically. - * - * The optional `options.statCheck` function may be specified to give user code - * an opportunity to set additional content headers based on the `fs.Stat` details - * of the given file: - * - * If an error occurs while attempting to read the file data, the `Http2Stream` will be closed using an - * `RST_STREAM` frame using the standard `INTERNAL_ERROR` code. - * If the `onError` callback is defined, then it will be called. Otherwise, the stream will be destroyed. - * - * Example using a file path: - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * function statCheck(stat, headers) { - * headers['last-modified'] = stat.mtime.toUTCString(); - * } - * - * function onError(err) { - * // stream.respond() can throw if the stream has been destroyed by - * // the other side. - * try { - * if (err.code === 'ENOENT') { - * stream.respond({ ':status': 404 }); - * } else { - * stream.respond({ ':status': 500 }); - * } - * } catch (err) { - * // Perform actual error handling. - * console.error(err); - * } - * stream.end(); - * } - * - * stream.respondWithFile('/some/file', - * { 'content-type': 'text/plain; charset=utf-8' }, - * { statCheck, onError }); - * }); - * ``` - * - * The `options.statCheck` function may also be used to cancel the send operation - * by returning `false`. For instance, a conditional request may check the stat - * results to determine if the file has been modified to return an appropriate `304` response: - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * function statCheck(stat, headers) { - * // Check the stat here... - * stream.respond({ ':status': 304 }); - * return false; // Cancel the send operation - * } - * stream.respondWithFile('/some/file', - * { 'content-type': 'text/plain; charset=utf-8' }, - * { statCheck }); - * }); - * ``` - * - * The `content-length` header field will be automatically set. - * - * The `offset` and `length` options may be used to limit the response to a - * specific range subset. This can be used, for instance, to support HTTP Range - * requests. - * - * The `options.onError` function may also be used to handle all the errors - * that could happen before the delivery of the file is initiated. The - * default behavior is to destroy the stream. - * - * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event - * will be emitted immediately after queuing the last chunk of payload data to be - * sent. The `http2stream.sendTrailers()` method can then be used to sent trailing - * header fields to the peer. - * - * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically - * close when the final `DATA` frame is transmitted. User code must call either`http2stream.sendTrailers()` or `http2stream.close()` to close the`Http2Stream`. - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * stream.respondWithFile('/some/file', - * { 'content-type': 'text/plain; charset=utf-8' }, - * { waitForTrailers: true }); - * stream.on('wantTrailers', () => { - * stream.sendTrailers({ ABC: 'some value to send' }); - * }); - * }); - * ``` - * @since v8.4.0 - */ - respondWithFile( - path: string, - headers?: OutgoingHttpHeaders, - options?: ServerStreamFileResponseOptionsWithError, - ): void; - } - // Http2Session - export interface Settings { - headerTableSize?: number | undefined; - enablePush?: boolean | undefined; - initialWindowSize?: number | undefined; - maxFrameSize?: number | undefined; - maxConcurrentStreams?: number | undefined; - maxHeaderListSize?: number | undefined; - enableConnectProtocol?: boolean | undefined; - } - export interface ClientSessionRequestOptions { - endStream?: boolean | undefined; - exclusive?: boolean | undefined; - parent?: number | undefined; - waitForTrailers?: boolean | undefined; - signal?: AbortSignal | undefined; - } - export interface SessionState { - effectiveLocalWindowSize?: number | undefined; - effectiveRecvDataLength?: number | undefined; - nextStreamID?: number | undefined; - localWindowSize?: number | undefined; - lastProcStreamID?: number | undefined; - remoteWindowSize?: number | undefined; - outboundQueueSize?: number | undefined; - deflateDynamicTableSize?: number | undefined; - inflateDynamicTableSize?: number | undefined; - } - export interface Http2Session extends EventEmitter { - /** - * Value will be `undefined` if the `Http2Session` is not yet connected to a - * socket, `h2c` if the `Http2Session` is not connected to a `TLSSocket`, or - * will return the value of the connected `TLSSocket`'s own `alpnProtocol` property. - * @since v9.4.0 - */ - readonly alpnProtocol?: string | undefined; - /** - * Will be `true` if this `Http2Session` instance has been closed, otherwise `false`. - * @since v9.4.0 - */ - readonly closed: boolean; - /** - * Will be `true` if this `Http2Session` instance is still connecting, will be set - * to `false` before emitting `connect` event and/or calling the `http2.connect` callback. - * @since v10.0.0 - */ - readonly connecting: boolean; - /** - * Will be `true` if this `Http2Session` instance has been destroyed and must no - * longer be used, otherwise `false`. - * @since v8.4.0 - */ - readonly destroyed: boolean; - /** - * Value is `undefined` if the `Http2Session` session socket has not yet been - * connected, `true` if the `Http2Session` is connected with a `TLSSocket`, - * and `false` if the `Http2Session` is connected to any other kind of socket - * or stream. - * @since v9.4.0 - */ - readonly encrypted?: boolean | undefined; - /** - * A prototype-less object describing the current local settings of this `Http2Session`. - * The local settings are local to _this_`Http2Session` instance. - * @since v8.4.0 - */ - readonly localSettings: Settings; - /** - * If the `Http2Session` is connected to a `TLSSocket`, the `originSet` property - * will return an `Array` of origins for which the `Http2Session` may be - * considered authoritative. - * - * The `originSet` property is only available when using a secure TLS connection. - * @since v9.4.0 - */ - readonly originSet?: string[] | undefined; - /** - * Indicates whether the `Http2Session` is currently waiting for acknowledgment of - * a sent `SETTINGS` frame. Will be `true` after calling the `http2session.settings()` method. - * Will be `false` once all sent `SETTINGS` frames have been acknowledged. - * @since v8.4.0 - */ - readonly pendingSettingsAck: boolean; - /** - * A prototype-less object describing the current remote settings of this`Http2Session`. - * The remote settings are set by the _connected_ HTTP/2 peer. - * @since v8.4.0 - */ - readonly remoteSettings: Settings; - /** - * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but - * limits available methods to ones safe to use with HTTP/2. - * - * `destroy`, `emit`, `end`, `pause`, `read`, `resume`, and `write` will throw - * an error with code `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for more information. - * - * `setTimeout` method will be called on this `Http2Session`. - * - * All other interactions will be routed directly to the socket. - * @since v8.4.0 - */ - readonly socket: net.Socket | tls.TLSSocket; - /** - * Provides miscellaneous information about the current state of the`Http2Session`. - * - * An object describing the current status of this `Http2Session`. - * @since v8.4.0 - */ - readonly state: SessionState; - /** - * The `http2session.type` will be equal to `http2.constants.NGHTTP2_SESSION_SERVER` if this `Http2Session` instance is a - * server, and `http2.constants.NGHTTP2_SESSION_CLIENT` if the instance is a - * client. - * @since v8.4.0 - */ - readonly type: number; - /** - * Gracefully closes the `Http2Session`, allowing any existing streams to - * complete on their own and preventing new `Http2Stream` instances from being - * created. Once closed, `http2session.destroy()`_might_ be called if there - * are no open `Http2Stream` instances. - * - * If specified, the `callback` function is registered as a handler for the`'close'` event. - * @since v9.4.0 - */ - close(callback?: () => void): void; - /** - * Immediately terminates the `Http2Session` and the associated `net.Socket` or `tls.TLSSocket`. - * - * Once destroyed, the `Http2Session` will emit the `'close'` event. If `error` is not undefined, an `'error'` event will be emitted immediately before the `'close'` event. - * - * If there are any remaining open `Http2Streams` associated with the `Http2Session`, those will also be destroyed. - * @since v8.4.0 - * @param error An `Error` object if the `Http2Session` is being destroyed due to an error. - * @param code The HTTP/2 error code to send in the final `GOAWAY` frame. If unspecified, and `error` is not undefined, the default is `INTERNAL_ERROR`, otherwise defaults to `NO_ERROR`. - */ - destroy(error?: Error, code?: number): void; - /** - * Transmits a `GOAWAY` frame to the connected peer _without_ shutting down the`Http2Session`. - * @since v9.4.0 - * @param code An HTTP/2 error code - * @param lastStreamID The numeric ID of the last processed `Http2Stream` - * @param opaqueData A `TypedArray` or `DataView` instance containing additional data to be carried within the `GOAWAY` frame. - */ - goaway(code?: number, lastStreamID?: number, opaqueData?: NodeJS.ArrayBufferView): void; - /** - * Sends a `PING` frame to the connected HTTP/2 peer. A `callback` function must - * be provided. The method will return `true` if the `PING` was sent, `false` otherwise. - * - * The maximum number of outstanding (unacknowledged) pings is determined by the `maxOutstandingPings` configuration option. The default maximum is 10. - * - * If provided, the `payload` must be a `Buffer`, `TypedArray`, or `DataView` containing 8 bytes of data that will be transmitted with the `PING` and - * returned with the ping acknowledgment. - * - * The callback will be invoked with three arguments: an error argument that will - * be `null` if the `PING` was successfully acknowledged, a `duration` argument - * that reports the number of milliseconds elapsed since the ping was sent and the - * acknowledgment was received, and a `Buffer` containing the 8-byte `PING` payload. - * - * ```js - * session.ping(Buffer.from('abcdefgh'), (err, duration, payload) => { - * if (!err) { - * console.log(`Ping acknowledged in ${duration} milliseconds`); - * console.log(`With payload '${payload.toString()}'`); - * } - * }); - * ``` - * - * If the `payload` argument is not specified, the default payload will be the - * 64-bit timestamp (little endian) marking the start of the `PING` duration. - * @since v8.9.3 - * @param payload Optional ping payload. - */ - ping(callback: (err: Error | null, duration: number, payload: NonSharedBuffer) => void): boolean; - ping( - payload: NodeJS.ArrayBufferView, - callback: (err: Error | null, duration: number, payload: NonSharedBuffer) => void, - ): boolean; - /** - * Calls `ref()` on this `Http2Session` instance's underlying `net.Socket`. - * @since v9.4.0 - */ - ref(): void; - /** - * Sets the local endpoint's window size. - * The `windowSize` is the total window size to set, not - * the delta. - * - * ```js - * import http2 from 'node:http2'; - * - * const server = http2.createServer(); - * const expectedWindowSize = 2 ** 20; - * server.on('connect', (session) => { - * - * // Set local window size to be 2 ** 20 - * session.setLocalWindowSize(expectedWindowSize); - * }); - * ``` - * @since v15.3.0, v14.18.0 - */ - setLocalWindowSize(windowSize: number): void; - /** - * Used to set a callback function that is called when there is no activity on - * the `Http2Session` after `msecs` milliseconds. The given `callback` is - * registered as a listener on the `'timeout'` event. - * @since v8.4.0 - */ - setTimeout(msecs: number, callback?: () => void): void; - /** - * Updates the current local settings for this `Http2Session` and sends a new `SETTINGS` frame to the connected HTTP/2 peer. - * - * Once called, the `http2session.pendingSettingsAck` property will be `true` while the session is waiting for the remote peer to acknowledge the new - * settings. - * - * The new settings will not become effective until the `SETTINGS` acknowledgment - * is received and the `'localSettings'` event is emitted. It is possible to send - * multiple `SETTINGS` frames while acknowledgment is still pending. - * @since v8.4.0 - * @param callback Callback that is called once the session is connected or right away if the session is already connected. - */ - settings( - settings: Settings, - callback?: (err: Error | null, settings: Settings, duration: number) => void, - ): void; - /** - * Calls `unref()` on this `Http2Session`instance's underlying `net.Socket`. - * @since v9.4.0 - */ - unref(): void; - addListener(event: "close", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener( - event: "frameError", - listener: (frameType: number, errorCode: number, streamID: number) => void, - ): this; - addListener( - event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void, - ): this; - addListener(event: "localSettings", listener: (settings: Settings) => void): this; - addListener(event: "ping", listener: () => void): this; - addListener(event: "remoteSettings", listener: (settings: Settings) => void): this; - addListener(event: "timeout", listener: () => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "close"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "frameError", frameType: number, errorCode: number, streamID: number): boolean; - emit(event: "goaway", errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer): boolean; - emit(event: "localSettings", settings: Settings): boolean; - emit(event: "ping"): boolean; - emit(event: "remoteSettings", settings: Settings): boolean; - emit(event: "timeout"): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "close", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this; - on( - event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void, - ): this; - on(event: "localSettings", listener: (settings: Settings) => void): this; - on(event: "ping", listener: () => void): this; - on(event: "remoteSettings", listener: (settings: Settings) => void): this; - on(event: "timeout", listener: () => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "frameError", listener: (frameType: number, errorCode: number, streamID: number) => void): this; - once( - event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void, - ): this; - once(event: "localSettings", listener: (settings: Settings) => void): this; - once(event: "ping", listener: () => void): this; - once(event: "remoteSettings", listener: (settings: Settings) => void): this; - once(event: "timeout", listener: () => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener( - event: "frameError", - listener: (frameType: number, errorCode: number, streamID: number) => void, - ): this; - prependListener( - event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void, - ): this; - prependListener(event: "localSettings", listener: (settings: Settings) => void): this; - prependListener(event: "ping", listener: () => void): this; - prependListener(event: "remoteSettings", listener: (settings: Settings) => void): this; - prependListener(event: "timeout", listener: () => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener( - event: "frameError", - listener: (frameType: number, errorCode: number, streamID: number) => void, - ): this; - prependOnceListener( - event: "goaway", - listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void, - ): this; - prependOnceListener(event: "localSettings", listener: (settings: Settings) => void): this; - prependOnceListener(event: "ping", listener: () => void): this; - prependOnceListener(event: "remoteSettings", listener: (settings: Settings) => void): this; - prependOnceListener(event: "timeout", listener: () => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export interface ClientHttp2Session extends Http2Session { - /** - * For HTTP/2 Client `Http2Session` instances only, the `http2session.request()` creates and returns an `Http2Stream` instance that can be used to send an - * HTTP/2 request to the connected server. - * - * When a `ClientHttp2Session` is first created, the socket may not yet be - * connected. if `clienthttp2session.request()` is called during this time, the - * actual request will be deferred until the socket is ready to go. - * If the `session` is closed before the actual request be executed, an `ERR_HTTP2_GOAWAY_SESSION` is thrown. - * - * This method is only available if `http2session.type` is equal to `http2.constants.NGHTTP2_SESSION_CLIENT`. - * - * ```js - * import http2 from 'node:http2'; - * const clientSession = http2.connect('https://localhost:1234'); - * const { - * HTTP2_HEADER_PATH, - * HTTP2_HEADER_STATUS, - * } = http2.constants; - * - * const req = clientSession.request({ [HTTP2_HEADER_PATH]: '/' }); - * req.on('response', (headers) => { - * console.log(headers[HTTP2_HEADER_STATUS]); - * req.on('data', (chunk) => { // .. }); - * req.on('end', () => { // .. }); - * }); - * ``` - * - * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event - * is emitted immediately after queuing the last chunk of payload data to be sent. - * The `http2stream.sendTrailers()` method can then be called to send trailing - * headers to the peer. - * - * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically - * close when the final `DATA` frame is transmitted. User code must call either`http2stream.sendTrailers()` or `http2stream.close()` to close the`Http2Stream`. - * - * When `options.signal` is set with an `AbortSignal` and then `abort` on the - * corresponding `AbortController` is called, the request will emit an `'error'`event with an `AbortError` error. - * - * The `:method` and `:path` pseudo-headers are not specified within `headers`, - * they respectively default to: - * - * * `:method` \= `'GET'` - * * `:path` \= `/` - * @since v8.4.0 - */ - request( - headers?: OutgoingHttpHeaders | readonly string[], - options?: ClientSessionRequestOptions, - ): ClientHttp2Stream; - addListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; - addListener(event: "origin", listener: (origins: string[]) => void): this; - addListener( - event: "connect", - listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, - ): this; - addListener( - event: "stream", - listener: ( - stream: ClientHttp2Stream, - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "altsvc", alt: string, origin: string, stream: number): boolean; - emit(event: "origin", origins: readonly string[]): boolean; - emit(event: "connect", session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket): boolean; - emit( - event: "stream", - stream: ClientHttp2Stream, - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - rawHeaders: string[], - ): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; - on(event: "origin", listener: (origins: string[]) => void): this; - on(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; - on( - event: "stream", - listener: ( - stream: ClientHttp2Stream, - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; - once(event: "origin", listener: (origins: string[]) => void): this; - once( - event: "connect", - listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, - ): this; - once( - event: "stream", - listener: ( - stream: ClientHttp2Stream, - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; - prependListener(event: "origin", listener: (origins: string[]) => void): this; - prependListener( - event: "connect", - listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, - ): this; - prependListener( - event: "stream", - listener: ( - stream: ClientHttp2Stream, - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this; - prependOnceListener(event: "origin", listener: (origins: string[]) => void): this; - prependOnceListener( - event: "connect", - listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, - ): this; - prependOnceListener( - event: "stream", - listener: ( - stream: ClientHttp2Stream, - headers: IncomingHttpHeaders & IncomingHttpStatusHeader, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export interface AlternativeServiceOptions { - origin: number | string | url.URL; - } - export interface ServerHttp2Session< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends Http2Session { - readonly server: - | Http2Server - | Http2SecureServer; - /** - * Submits an `ALTSVC` frame (as defined by [RFC 7838](https://tools.ietf.org/html/rfc7838)) to the connected client. - * - * ```js - * import http2 from 'node:http2'; - * - * const server = http2.createServer(); - * server.on('session', (session) => { - * // Set altsvc for origin https://example.org:80 - * session.altsvc('h2=":8000"', 'https://example.org:80'); - * }); - * - * server.on('stream', (stream) => { - * // Set altsvc for a specific stream - * stream.session.altsvc('h2=":8000"', stream.id); - * }); - * ``` - * - * Sending an `ALTSVC` frame with a specific stream ID indicates that the alternate - * service is associated with the origin of the given `Http2Stream`. - * - * The `alt` and origin string _must_ contain only ASCII bytes and are - * strictly interpreted as a sequence of ASCII bytes. The special value `'clear'`may be passed to clear any previously set alternative service for a given - * domain. - * - * When a string is passed for the `originOrStream` argument, it will be parsed as - * a URL and the origin will be derived. For instance, the origin for the - * HTTP URL `'https://example.org/foo/bar'` is the ASCII string`'https://example.org'`. An error will be thrown if either the given string - * cannot be parsed as a URL or if a valid origin cannot be derived. - * - * A `URL` object, or any object with an `origin` property, may be passed as`originOrStream`, in which case the value of the `origin` property will be - * used. The value of the `origin` property _must_ be a properly serialized - * ASCII origin. - * @since v9.4.0 - * @param alt A description of the alternative service configuration as defined by `RFC 7838`. - * @param originOrStream Either a URL string specifying the origin (or an `Object` with an `origin` property) or the numeric identifier of an active `Http2Stream` as given by the - * `http2stream.id` property. - */ - altsvc(alt: string, originOrStream: number | string | url.URL | AlternativeServiceOptions): void; - /** - * Submits an `ORIGIN` frame (as defined by [RFC 8336](https://tools.ietf.org/html/rfc8336)) to the connected client - * to advertise the set of origins for which the server is capable of providing - * authoritative responses. - * - * ```js - * import http2 from 'node:http2'; - * const options = getSecureOptionsSomehow(); - * const server = http2.createSecureServer(options); - * server.on('stream', (stream) => { - * stream.respond(); - * stream.end('ok'); - * }); - * server.on('session', (session) => { - * session.origin('https://example.com', 'https://example.org'); - * }); - * ``` - * - * When a string is passed as an `origin`, it will be parsed as a URL and the - * origin will be derived. For instance, the origin for the HTTP URL `'https://example.org/foo/bar'` is the ASCII string` 'https://example.org'`. An error will be thrown if either the given - * string - * cannot be parsed as a URL or if a valid origin cannot be derived. - * - * A `URL` object, or any object with an `origin` property, may be passed as - * an `origin`, in which case the value of the `origin` property will be - * used. The value of the `origin` property _must_ be a properly serialized - * ASCII origin. - * - * Alternatively, the `origins` option may be used when creating a new HTTP/2 - * server using the `http2.createSecureServer()` method: - * - * ```js - * import http2 from 'node:http2'; - * const options = getSecureOptionsSomehow(); - * options.origins = ['https://example.com', 'https://example.org']; - * const server = http2.createSecureServer(options); - * server.on('stream', (stream) => { - * stream.respond(); - * stream.end('ok'); - * }); - * ``` - * @since v10.12.0 - * @param origins One or more URL Strings passed as separate arguments. - */ - origin( - ...origins: Array< - | string - | url.URL - | { - origin: string; - } - > - ): void; - addListener( - event: "connect", - listener: ( - session: ServerHttp2Session, - socket: net.Socket | tls.TLSSocket, - ) => void, - ): this; - addListener( - event: "stream", - listener: ( - stream: ServerHttp2Stream, - headers: IncomingHttpHeaders, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit( - event: "connect", - session: ServerHttp2Session, - socket: net.Socket | tls.TLSSocket, - ): boolean; - emit( - event: "stream", - stream: ServerHttp2Stream, - headers: IncomingHttpHeaders, - flags: number, - rawHeaders: string[], - ): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on( - event: "connect", - listener: ( - session: ServerHttp2Session, - socket: net.Socket | tls.TLSSocket, - ) => void, - ): this; - on( - event: "stream", - listener: ( - stream: ServerHttp2Stream, - headers: IncomingHttpHeaders, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once( - event: "connect", - listener: ( - session: ServerHttp2Session, - socket: net.Socket | tls.TLSSocket, - ) => void, - ): this; - once( - event: "stream", - listener: ( - stream: ServerHttp2Stream, - headers: IncomingHttpHeaders, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener( - event: "connect", - listener: ( - session: ServerHttp2Session, - socket: net.Socket | tls.TLSSocket, - ) => void, - ): this; - prependListener( - event: "stream", - listener: ( - stream: ServerHttp2Stream, - headers: IncomingHttpHeaders, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener( - event: "connect", - listener: ( - session: ServerHttp2Session, - socket: net.Socket | tls.TLSSocket, - ) => void, - ): this; - prependOnceListener( - event: "stream", - listener: ( - stream: ServerHttp2Stream, - headers: IncomingHttpHeaders, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - // Http2Server - export interface SessionOptions { - /** - * Sets the maximum dynamic table size for deflating header fields. - * @default 4Kib - */ - maxDeflateDynamicTableSize?: number | undefined; - /** - * Sets the maximum number of settings entries per `SETTINGS` frame. - * The minimum value allowed is `1`. - * @default 32 - */ - maxSettings?: number | undefined; - /** - * Sets the maximum memory that the `Http2Session` is permitted to use. - * The value is expressed in terms of number of megabytes, e.g. `1` equal 1 megabyte. - * The minimum value allowed is `1`. - * This is a credit based limit, existing `Http2Stream`s may cause this limit to be exceeded, - * but new `Http2Stream` instances will be rejected while this limit is exceeded. - * The current number of `Http2Stream` sessions, the current memory use of the header compression tables, - * current data queued to be sent, and unacknowledged `PING` and `SETTINGS` frames are all counted towards the current limit. - * @default 10 - */ - maxSessionMemory?: number | undefined; - /** - * Sets the maximum number of header entries. - * This is similar to `server.maxHeadersCount` or `request.maxHeadersCount` in the `node:http` module. - * The minimum value is `1`. - * @default 128 - */ - maxHeaderListPairs?: number | undefined; - /** - * Sets the maximum number of outstanding, unacknowledged pings. - * @default 10 - */ - maxOutstandingPings?: number | undefined; - /** - * Sets the maximum allowed size for a serialized, compressed block of headers. - * Attempts to send headers that exceed this limit will result in - * a `'frameError'` event being emitted and the stream being closed and destroyed. - */ - maxSendHeaderBlockLength?: number | undefined; - /** - * Strategy used for determining the amount of padding to use for `HEADERS` and `DATA` frames. - * @default http2.constants.PADDING_STRATEGY_NONE - */ - paddingStrategy?: number | undefined; - /** - * Sets the maximum number of concurrent streams for the remote peer as if a `SETTINGS` frame had been received. - * Will be overridden if the remote peer sets its own value for `maxConcurrentStreams`. - * @default 100 - */ - peerMaxConcurrentStreams?: number | undefined; - /** - * The initial settings to send to the remote peer upon connection. - */ - settings?: Settings | undefined; - /** - * The array of integer values determines the settings types, - * which are included in the `CustomSettings`-property of the received remoteSettings. - * Please see the `CustomSettings`-property of the `Http2Settings` object for more information, on the allowed setting types. - */ - remoteCustomSettings?: number[] | undefined; - /** - * Specifies a timeout in milliseconds that - * a server should wait when an [`'unknownProtocol'`][] is emitted. If the - * socket has not been destroyed by that time the server will destroy it. - * @default 100000 - */ - unknownProtocolTimeout?: number | undefined; - /** - * If `true`, it turns on strict leading - * and trailing whitespace validation for HTTP/2 header field names and values - * as per [RFC-9113](https://www.rfc-editor.org/rfc/rfc9113.html#section-8.2.1). - * @since v24.2.0 - * @default true - */ - strictFieldWhitespaceValidation?: boolean | undefined; - } - export interface ClientSessionOptions extends SessionOptions { - /** - * Sets the maximum number of reserved push streams the client will accept at any given time. - * Once the current number of currently reserved push streams exceeds reaches this limit, - * new push streams sent by the server will be automatically rejected. - * The minimum allowed value is 0. The maximum allowed value is 232-1. - * A negative value sets this option to the maximum allowed value. - * @default 200 - */ - maxReservedRemoteStreams?: number | undefined; - /** - * An optional callback that receives the `URL` instance passed to `connect` and the `options` object, - * and returns any `Duplex` stream that is to be used as the connection for this session. - */ - createConnection?: ((authority: url.URL, option: SessionOptions) => stream.Duplex) | undefined; - /** - * The protocol to connect with, if not set in the `authority`. - * Value may be either `'http:'` or `'https:'`. - * @default 'https:' - */ - protocol?: "http:" | "https:" | undefined; - } - export interface ServerSessionOptions< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends SessionOptions { - streamResetBurst?: number | undefined; - streamResetRate?: number | undefined; - Http1IncomingMessage?: Http1Request | undefined; - Http1ServerResponse?: Http1Response | undefined; - Http2ServerRequest?: Http2Request | undefined; - Http2ServerResponse?: Http2Response | undefined; - } - export interface SecureClientSessionOptions extends ClientSessionOptions, tls.ConnectionOptions {} - export interface SecureServerSessionOptions< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends ServerSessionOptions, tls.TlsOptions {} - export interface ServerOptions< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends ServerSessionOptions {} - export interface SecureServerOptions< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends SecureServerSessionOptions { - allowHTTP1?: boolean | undefined; - origins?: string[] | undefined; - } - interface HTTP2ServerCommon { - setTimeout(msec?: number, callback?: () => void): this; - /** - * Throws ERR_HTTP2_INVALID_SETTING_VALUE for invalid settings values. - * Throws ERR_INVALID_ARG_TYPE for invalid settings argument. - */ - updateSettings(settings: Settings): void; - } - export interface Http2Server< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends net.Server, HTTP2ServerCommon { - addListener( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - addListener( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - addListener( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - addListener(event: "sessionError", listener: (err: Error) => void): this; - addListener( - event: "stream", - listener: ( - stream: ServerHttp2Stream, - headers: IncomingHttpHeaders, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - addListener(event: "timeout", listener: () => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit( - event: "checkContinue", - request: InstanceType, - response: InstanceType, - ): boolean; - emit(event: "request", request: InstanceType, response: InstanceType): boolean; - emit( - event: "session", - session: ServerHttp2Session, - ): boolean; - emit(event: "sessionError", err: Error): boolean; - emit( - event: "stream", - stream: ServerHttp2Stream, - headers: IncomingHttpHeaders, - flags: number, - rawHeaders: string[], - ): boolean; - emit(event: "timeout"): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - on( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - on( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - on(event: "sessionError", listener: (err: Error) => void): this; - on( - event: "stream", - listener: ( - stream: ServerHttp2Stream, - headers: IncomingHttpHeaders, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - on(event: "timeout", listener: () => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - once( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - once( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - once(event: "sessionError", listener: (err: Error) => void): this; - once( - event: "stream", - listener: ( - stream: ServerHttp2Stream, - headers: IncomingHttpHeaders, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - once(event: "timeout", listener: () => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependListener( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependListener( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - prependListener(event: "sessionError", listener: (err: Error) => void): this; - prependListener( - event: "stream", - listener: ( - stream: ServerHttp2Stream, - headers: IncomingHttpHeaders, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - prependListener(event: "timeout", listener: () => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependOnceListener( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependOnceListener( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - prependOnceListener(event: "sessionError", listener: (err: Error) => void): this; - prependOnceListener( - event: "stream", - listener: ( - stream: ServerHttp2Stream, - headers: IncomingHttpHeaders, - flags: number, - rawHeaders: string[], - ) => void, - ): this; - prependOnceListener(event: "timeout", listener: () => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export interface Http2SecureServer< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - > extends tls.Server, HTTP2ServerCommon { - addListener( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - addListener( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - addListener( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - addListener(event: "sessionError", listener: (err: Error) => void): this; - addListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - addListener(event: "timeout", listener: () => void): this; - addListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit( - event: "checkContinue", - request: InstanceType, - response: InstanceType, - ): boolean; - emit(event: "request", request: InstanceType, response: InstanceType): boolean; - emit( - event: "session", - session: ServerHttp2Session, - ): boolean; - emit(event: "sessionError", err: Error): boolean; - emit(event: "stream", stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean; - emit(event: "timeout"): boolean; - emit(event: "unknownProtocol", socket: tls.TLSSocket): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - on( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - on( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - on(event: "sessionError", listener: (err: Error) => void): this; - on( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - on(event: "timeout", listener: () => void): this; - on(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - once( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - once( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - once(event: "sessionError", listener: (err: Error) => void): this; - once( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - once(event: "timeout", listener: () => void): this; - once(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependListener( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependListener( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - prependListener(event: "sessionError", listener: (err: Error) => void): this; - prependListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - prependListener(event: "timeout", listener: () => void): this; - prependListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener( - event: "checkContinue", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependOnceListener( - event: "request", - listener: (request: InstanceType, response: InstanceType) => void, - ): this; - prependOnceListener( - event: "session", - listener: (session: ServerHttp2Session) => void, - ): this; - prependOnceListener(event: "sessionError", listener: (err: Error) => void): this; - prependOnceListener( - event: "stream", - listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void, - ): this; - prependOnceListener(event: "timeout", listener: () => void): this; - prependOnceListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - /** - * A `Http2ServerRequest` object is created by {@link Server} or {@link SecureServer} and passed as the first argument to the `'request'` event. It may be used to access a request status, - * headers, and - * data. - * @since v8.4.0 - */ - export class Http2ServerRequest extends stream.Readable { - constructor( - stream: ServerHttp2Stream, - headers: IncomingHttpHeaders, - options: stream.ReadableOptions, - rawHeaders: readonly string[], - ); - /** - * The `request.aborted` property will be `true` if the request has - * been aborted. - * @since v10.1.0 - */ - readonly aborted: boolean; - /** - * The request authority pseudo header field. Because HTTP/2 allows requests - * to set either `:authority` or `host`, this value is derived from `req.headers[':authority']` if present. Otherwise, it is derived from `req.headers['host']`. - * @since v8.4.0 - */ - readonly authority: string; - /** - * See `request.socket`. - * @since v8.4.0 - * @deprecated Since v13.0.0 - Use `socket`. - */ - readonly connection: net.Socket | tls.TLSSocket; - /** - * The `request.complete` property will be `true` if the request has - * been completed, aborted, or destroyed. - * @since v12.10.0 - */ - readonly complete: boolean; - /** - * The request/response headers object. - * - * Key-value pairs of header names and values. Header names are lower-cased. - * - * ```js - * // Prints something like: - * // - * // { 'user-agent': 'curl/7.22.0', - * // host: '127.0.0.1:8000', - * // accept: '*' } - * console.log(request.headers); - * ``` - * - * See `HTTP/2 Headers Object`. - * - * In HTTP/2, the request path, host name, protocol, and method are represented as - * special headers prefixed with the `:` character (e.g. `':path'`). These special - * headers will be included in the `request.headers` object. Care must be taken not - * to inadvertently modify these special headers or errors may occur. For instance, - * removing all headers from the request will cause errors to occur: - * - * ```js - * removeAllHeaders(request.headers); - * assert(request.url); // Fails because the :path header has been removed - * ``` - * @since v8.4.0 - */ - readonly headers: IncomingHttpHeaders; - /** - * In case of server request, the HTTP version sent by the client. In the case of - * client response, the HTTP version of the connected-to server. Returns `'2.0'`. - * - * Also `message.httpVersionMajor` is the first integer and `message.httpVersionMinor` is the second. - * @since v8.4.0 - */ - readonly httpVersion: string; - readonly httpVersionMinor: number; - readonly httpVersionMajor: number; - /** - * The request method as a string. Read-only. Examples: `'GET'`, `'DELETE'`. - * @since v8.4.0 - */ - readonly method: string; - /** - * The raw request/response headers list exactly as they were received. - * - * The keys and values are in the same list. It is _not_ a - * list of tuples. So, the even-numbered offsets are key values, and the - * odd-numbered offsets are the associated values. - * - * Header names are not lowercased, and duplicates are not merged. - * - * ```js - * // Prints something like: - * // - * // [ 'user-agent', - * // 'this is invalid because there can be only one', - * // 'User-Agent', - * // 'curl/7.22.0', - * // 'Host', - * // '127.0.0.1:8000', - * // 'ACCEPT', - * // '*' ] - * console.log(request.rawHeaders); - * ``` - * @since v8.4.0 - */ - readonly rawHeaders: string[]; - /** - * The raw request/response trailer keys and values exactly as they were - * received. Only populated at the `'end'` event. - * @since v8.4.0 - */ - readonly rawTrailers: string[]; - /** - * The request scheme pseudo header field indicating the scheme - * portion of the target URL. - * @since v8.4.0 - */ - readonly scheme: string; - /** - * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but - * applies getters, setters, and methods based on HTTP/2 logic. - * - * `destroyed`, `readable`, and `writable` properties will be retrieved from and - * set on `request.stream`. - * - * `destroy`, `emit`, `end`, `on` and `once` methods will be called on `request.stream`. - * - * `setTimeout` method will be called on `request.stream.session`. - * - * `pause`, `read`, `resume`, and `write` will throw an error with code `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for - * more information. - * - * All other interactions will be routed directly to the socket. With TLS support, - * use `request.socket.getPeerCertificate()` to obtain the client's - * authentication details. - * @since v8.4.0 - */ - readonly socket: net.Socket | tls.TLSSocket; - /** - * The `Http2Stream` object backing the request. - * @since v8.4.0 - */ - readonly stream: ServerHttp2Stream; - /** - * The request/response trailers object. Only populated at the `'end'` event. - * @since v8.4.0 - */ - readonly trailers: IncomingHttpHeaders; - /** - * Request URL string. This contains only the URL that is present in the actual - * HTTP request. If the request is: - * - * ```http - * GET /status?name=ryan HTTP/1.1 - * Accept: text/plain - * ``` - * - * Then `request.url` will be: - * - * ```js - * '/status?name=ryan' - * ``` - * - * To parse the url into its parts, `new URL()` can be used: - * - * ```console - * $ node - * > new URL('/status?name=ryan', 'http://example.com') - * URL { - * href: 'http://example.com/status?name=ryan', - * origin: 'http://example.com', - * protocol: 'http:', - * username: '', - * password: '', - * host: 'example.com', - * hostname: 'example.com', - * port: '', - * pathname: '/status', - * search: '?name=ryan', - * searchParams: URLSearchParams { 'name' => 'ryan' }, - * hash: '' - * } - * ``` - * @since v8.4.0 - */ - url: string; - /** - * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is - * provided, then it is added as a listener on the `'timeout'` event on - * the response object. - * - * If no `'timeout'` listener is added to the request, the response, or - * the server, then `Http2Stream`s are destroyed when they time out. If a - * handler is assigned to the request, the response, or the server's `'timeout'`events, timed out sockets must be handled explicitly. - * @since v8.4.0 - */ - setTimeout(msecs: number, callback?: () => void): void; - read(size?: number): NonSharedBuffer | string | null; - addListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - addListener(event: "end", listener: () => void): this; - addListener(event: "readable", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "aborted", hadError: boolean, code: number): boolean; - emit(event: "close"): boolean; - emit(event: "data", chunk: NonSharedBuffer | string): boolean; - emit(event: "end"): boolean; - emit(event: "readable"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "aborted", listener: (hadError: boolean, code: number) => void): this; - on(event: "close", listener: () => void): this; - on(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - on(event: "end", listener: () => void): this; - on(event: "readable", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "aborted", listener: (hadError: boolean, code: number) => void): this; - once(event: "close", listener: () => void): this; - once(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - once(event: "end", listener: () => void): this; - once(event: "readable", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - prependListener(event: "end", listener: () => void): this; - prependListener(event: "readable", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this; - prependOnceListener(event: "end", listener: () => void): this; - prependOnceListener(event: "readable", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - /** - * This object is created internally by an HTTP server, not by the user. It is - * passed as the second parameter to the `'request'` event. - * @since v8.4.0 - */ - export class Http2ServerResponse extends stream.Writable { - constructor(stream: ServerHttp2Stream); - /** - * See `response.socket`. - * @since v8.4.0 - * @deprecated Since v13.0.0 - Use `socket`. - */ - readonly connection: net.Socket | tls.TLSSocket; - /** - * Append a single header value to the header object. - * - * If the value is an array, this is equivalent to calling this method multiple times. - * - * If there were no previous values for the header, this is equivalent to calling {@link setHeader}. - * - * Attempting to set a header field name or value that contains invalid characters will result in a - * [TypeError](https://nodejs.org/docs/latest-v24.x/api/errors.html#class-typeerror) being thrown. - * - * ```js - * // Returns headers including "set-cookie: a" and "set-cookie: b" - * const server = http2.createServer((req, res) => { - * res.setHeader('set-cookie', 'a'); - * res.appendHeader('set-cookie', 'b'); - * res.writeHead(200); - * res.end('ok'); - * }); - * ``` - * @since v20.12.0 - */ - appendHeader(name: string, value: string | string[]): void; - /** - * Boolean value that indicates whether the response has completed. Starts - * as `false`. After `response.end()` executes, the value will be `true`. - * @since v8.4.0 - * @deprecated Since v13.4.0,v12.16.0 - Use `writableEnded`. - */ - readonly finished: boolean; - /** - * True if headers were sent, false otherwise (read-only). - * @since v8.4.0 - */ - readonly headersSent: boolean; - /** - * A reference to the original HTTP2 `request` object. - * @since v15.7.0 - */ - readonly req: Request; - /** - * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but - * applies getters, setters, and methods based on HTTP/2 logic. - * - * `destroyed`, `readable`, and `writable` properties will be retrieved from and - * set on `response.stream`. - * - * `destroy`, `emit`, `end`, `on` and `once` methods will be called on `response.stream`. - * - * `setTimeout` method will be called on `response.stream.session`. - * - * `pause`, `read`, `resume`, and `write` will throw an error with code `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for - * more information. - * - * All other interactions will be routed directly to the socket. - * - * ```js - * import http2 from 'node:http2'; - * const server = http2.createServer((req, res) => { - * const ip = req.socket.remoteAddress; - * const port = req.socket.remotePort; - * res.end(`Your IP address is ${ip} and your source port is ${port}.`); - * }).listen(3000); - * ``` - * @since v8.4.0 - */ - readonly socket: net.Socket | tls.TLSSocket; - /** - * The `Http2Stream` object backing the response. - * @since v8.4.0 - */ - readonly stream: ServerHttp2Stream; - /** - * When true, the Date header will be automatically generated and sent in - * the response if it is not already present in the headers. Defaults to true. - * - * This should only be disabled for testing; HTTP requires the Date header - * in responses. - * @since v8.4.0 - */ - sendDate: boolean; - /** - * When using implicit headers (not calling `response.writeHead()` explicitly), - * this property controls the status code that will be sent to the client when - * the headers get flushed. - * - * ```js - * response.statusCode = 404; - * ``` - * - * After response header was sent to the client, this property indicates the - * status code which was sent out. - * @since v8.4.0 - */ - statusCode: number; - /** - * Status message is not supported by HTTP/2 (RFC 7540 8.1.2.4). It returns - * an empty string. - * @since v8.4.0 - */ - statusMessage: ""; - /** - * This method adds HTTP trailing headers (a header but at the end of the - * message) to the response. - * - * Attempting to set a header field name or value that contains invalid characters - * will result in a `TypeError` being thrown. - * @since v8.4.0 - */ - addTrailers(trailers: OutgoingHttpHeaders): void; - /** - * This method signals to the server that all of the response headers and body - * have been sent; that server should consider this message complete. - * The method, `response.end()`, MUST be called on each response. - * - * If `data` is specified, it is equivalent to calling `response.write(data, encoding)` followed by `response.end(callback)`. - * - * If `callback` is specified, it will be called when the response stream - * is finished. - * @since v8.4.0 - */ - end(callback?: () => void): this; - end(data: string | Uint8Array, callback?: () => void): this; - end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): this; - /** - * Reads out a header that has already been queued but not sent to the client. - * The name is case-insensitive. - * - * ```js - * const contentType = response.getHeader('content-type'); - * ``` - * @since v8.4.0 - */ - getHeader(name: string): string; - /** - * Returns an array containing the unique names of the current outgoing headers. - * All header names are lowercase. - * - * ```js - * response.setHeader('Foo', 'bar'); - * response.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); - * - * const headerNames = response.getHeaderNames(); - * // headerNames === ['foo', 'set-cookie'] - * ``` - * @since v8.4.0 - */ - getHeaderNames(): string[]; - /** - * Returns a shallow copy of the current outgoing headers. Since a shallow copy - * is used, array values may be mutated without additional calls to various - * header-related http module methods. The keys of the returned object are the - * header names and the values are the respective header values. All header names - * are lowercase. - * - * The object returned by the `response.getHeaders()` method _does not_ prototypically inherit from the JavaScript `Object`. This means that typical `Object` methods such as `obj.toString()`, - * `obj.hasOwnProperty()`, and others - * are not defined and _will not work_. - * - * ```js - * response.setHeader('Foo', 'bar'); - * response.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); - * - * const headers = response.getHeaders(); - * // headers === { foo: 'bar', 'set-cookie': ['foo=bar', 'bar=baz'] } - * ``` - * @since v8.4.0 - */ - getHeaders(): OutgoingHttpHeaders; - /** - * Returns `true` if the header identified by `name` is currently set in the - * outgoing headers. The header name matching is case-insensitive. - * - * ```js - * const hasContentType = response.hasHeader('content-type'); - * ``` - * @since v8.4.0 - */ - hasHeader(name: string): boolean; - /** - * Removes a header that has been queued for implicit sending. - * - * ```js - * response.removeHeader('Content-Encoding'); - * ``` - * @since v8.4.0 - */ - removeHeader(name: string): void; - /** - * Sets a single header value for implicit headers. If this header already exists - * in the to-be-sent headers, its value will be replaced. Use an array of strings - * here to send multiple headers with the same name. - * - * ```js - * response.setHeader('Content-Type', 'text/html; charset=utf-8'); - * ``` - * - * or - * - * ```js - * response.setHeader('Set-Cookie', ['type=ninja', 'language=javascript']); - * ``` - * - * Attempting to set a header field name or value that contains invalid characters - * will result in a `TypeError` being thrown. - * - * When headers have been set with `response.setHeader()`, they will be merged - * with any headers passed to `response.writeHead()`, with the headers passed - * to `response.writeHead()` given precedence. - * - * ```js - * // Returns content-type = text/plain - * const server = http2.createServer((req, res) => { - * res.setHeader('Content-Type', 'text/html; charset=utf-8'); - * res.setHeader('X-Foo', 'bar'); - * res.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8' }); - * res.end('ok'); - * }); - * ``` - * @since v8.4.0 - */ - setHeader(name: string, value: number | string | readonly string[]): void; - /** - * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is - * provided, then it is added as a listener on the `'timeout'` event on - * the response object. - * - * If no `'timeout'` listener is added to the request, the response, or - * the server, then `Http2Stream` s are destroyed when they time out. If a - * handler is assigned to the request, the response, or the server's `'timeout'` events, timed out sockets must be handled explicitly. - * @since v8.4.0 - */ - setTimeout(msecs: number, callback?: () => void): void; - /** - * If this method is called and `response.writeHead()` has not been called, - * it will switch to implicit header mode and flush the implicit headers. - * - * This sends a chunk of the response body. This method may - * be called multiple times to provide successive parts of the body. - * - * In the `node:http` module, the response body is omitted when the - * request is a HEAD request. Similarly, the `204` and `304` responses _must not_ include a message body. - * - * `chunk` can be a string or a buffer. If `chunk` is a string, - * the second parameter specifies how to encode it into a byte stream. - * By default the `encoding` is `'utf8'`. `callback` will be called when this chunk - * of data is flushed. - * - * This is the raw HTTP body and has nothing to do with higher-level multi-part - * body encodings that may be used. - * - * The first time `response.write()` is called, it will send the buffered - * header information and the first chunk of the body to the client. The second - * time `response.write()` is called, Node.js assumes data will be streamed, - * and sends the new data separately. That is, the response is buffered up to the - * first chunk of the body. - * - * Returns `true` if the entire data was flushed successfully to the kernel - * buffer. Returns `false` if all or part of the data was queued in user memory.`'drain'` will be emitted when the buffer is free again. - * @since v8.4.0 - */ - write(chunk: string | Uint8Array, callback?: (err: Error) => void): boolean; - write(chunk: string | Uint8Array, encoding: BufferEncoding, callback?: (err: Error) => void): boolean; - /** - * Sends a status `100 Continue` to the client, indicating that the request body - * should be sent. See the `'checkContinue'` event on `Http2Server` and `Http2SecureServer`. - * @since v8.4.0 - */ - writeContinue(): void; - /** - * Sends a status `103 Early Hints` to the client with a Link header, - * indicating that the user agent can preload/preconnect the linked resources. - * The `hints` is an object containing the values of headers to be sent with - * early hints message. - * - * **Example** - * - * ```js - * const earlyHintsLink = '; rel=preload; as=style'; - * response.writeEarlyHints({ - * 'link': earlyHintsLink, - * }); - * - * const earlyHintsLinks = [ - * '; rel=preload; as=style', - * '; rel=preload; as=script', - * ]; - * response.writeEarlyHints({ - * 'link': earlyHintsLinks, - * }); - * ``` - * @since v18.11.0 - */ - writeEarlyHints(hints: Record): void; - /** - * Sends a response header to the request. The status code is a 3-digit HTTP - * status code, like `404`. The last argument, `headers`, are the response headers. - * - * Returns a reference to the `Http2ServerResponse`, so that calls can be chained. - * - * For compatibility with `HTTP/1`, a human-readable `statusMessage` may be - * passed as the second argument. However, because the `statusMessage` has no - * meaning within HTTP/2, the argument will have no effect and a process warning - * will be emitted. - * - * ```js - * const body = 'hello world'; - * response.writeHead(200, { - * 'Content-Length': Buffer.byteLength(body), - * 'Content-Type': 'text/plain; charset=utf-8', - * }); - * ``` - * - * `Content-Length` is given in bytes not characters. The`Buffer.byteLength()` API may be used to determine the number of bytes in a - * given encoding. On outbound messages, Node.js does not check if Content-Length - * and the length of the body being transmitted are equal or not. However, when - * receiving messages, Node.js will automatically reject messages when the `Content-Length` does not match the actual payload size. - * - * This method may be called at most one time on a message before `response.end()` is called. - * - * If `response.write()` or `response.end()` are called before calling - * this, the implicit/mutable headers will be calculated and call this function. - * - * When headers have been set with `response.setHeader()`, they will be merged - * with any headers passed to `response.writeHead()`, with the headers passed - * to `response.writeHead()` given precedence. - * - * ```js - * // Returns content-type = text/plain - * const server = http2.createServer((req, res) => { - * res.setHeader('Content-Type', 'text/html; charset=utf-8'); - * res.setHeader('X-Foo', 'bar'); - * res.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8' }); - * res.end('ok'); - * }); - * ``` - * - * Attempting to set a header field name or value that contains invalid characters - * will result in a `TypeError` being thrown. - * @since v8.4.0 - */ - writeHead(statusCode: number, headers?: OutgoingHttpHeaders | readonly string[]): this; - writeHead(statusCode: number, statusMessage: string, headers?: OutgoingHttpHeaders | readonly string[]): this; - /** - * Call `http2stream.pushStream()` with the given headers, and wrap the - * given `Http2Stream` on a newly created `Http2ServerResponse` as the callback - * parameter if successful. When `Http2ServerRequest` is closed, the callback is - * called with an error `ERR_HTTP2_INVALID_STREAM`. - * @since v8.4.0 - * @param headers An object describing the headers - * @param callback Called once `http2stream.pushStream()` is finished, or either when the attempt to create the pushed `Http2Stream` has failed or has been rejected, or the state of - * `Http2ServerRequest` is closed prior to calling the `http2stream.pushStream()` method - */ - createPushResponse( - headers: OutgoingHttpHeaders, - callback: (err: Error | null, res: Http2ServerResponse) => void, - ): void; - addListener(event: "close", listener: () => void): this; - addListener(event: "drain", listener: () => void): this; - addListener(event: "error", listener: (error: Error) => void): this; - addListener(event: "finish", listener: () => void): this; - addListener(event: "pipe", listener: (src: stream.Readable) => void): this; - addListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "close"): boolean; - emit(event: "drain"): boolean; - emit(event: "error", error: Error): boolean; - emit(event: "finish"): boolean; - emit(event: "pipe", src: stream.Readable): boolean; - emit(event: "unpipe", src: stream.Readable): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "close", listener: () => void): this; - on(event: "drain", listener: () => void): this; - on(event: "error", listener: (error: Error) => void): this; - on(event: "finish", listener: () => void): this; - on(event: "pipe", listener: (src: stream.Readable) => void): this; - on(event: "unpipe", listener: (src: stream.Readable) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "drain", listener: () => void): this; - once(event: "error", listener: (error: Error) => void): this; - once(event: "finish", listener: () => void): this; - once(event: "pipe", listener: (src: stream.Readable) => void): this; - once(event: "unpipe", listener: (src: stream.Readable) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "drain", listener: () => void): this; - prependListener(event: "error", listener: (error: Error) => void): this; - prependListener(event: "finish", listener: () => void): this; - prependListener(event: "pipe", listener: (src: stream.Readable) => void): this; - prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "drain", listener: () => void): this; - prependOnceListener(event: "error", listener: (error: Error) => void): this; - prependOnceListener(event: "finish", listener: () => void): this; - prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this; - prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export namespace constants { - const NGHTTP2_SESSION_SERVER: number; - const NGHTTP2_SESSION_CLIENT: number; - const NGHTTP2_STREAM_STATE_IDLE: number; - const NGHTTP2_STREAM_STATE_OPEN: number; - const NGHTTP2_STREAM_STATE_RESERVED_LOCAL: number; - const NGHTTP2_STREAM_STATE_RESERVED_REMOTE: number; - const NGHTTP2_STREAM_STATE_HALF_CLOSED_LOCAL: number; - const NGHTTP2_STREAM_STATE_HALF_CLOSED_REMOTE: number; - const NGHTTP2_STREAM_STATE_CLOSED: number; - const NGHTTP2_NO_ERROR: number; - const NGHTTP2_PROTOCOL_ERROR: number; - const NGHTTP2_INTERNAL_ERROR: number; - const NGHTTP2_FLOW_CONTROL_ERROR: number; - const NGHTTP2_SETTINGS_TIMEOUT: number; - const NGHTTP2_STREAM_CLOSED: number; - const NGHTTP2_FRAME_SIZE_ERROR: number; - const NGHTTP2_REFUSED_STREAM: number; - const NGHTTP2_CANCEL: number; - const NGHTTP2_COMPRESSION_ERROR: number; - const NGHTTP2_CONNECT_ERROR: number; - const NGHTTP2_ENHANCE_YOUR_CALM: number; - const NGHTTP2_INADEQUATE_SECURITY: number; - const NGHTTP2_HTTP_1_1_REQUIRED: number; - const NGHTTP2_ERR_FRAME_SIZE_ERROR: number; - const NGHTTP2_FLAG_NONE: number; - const NGHTTP2_FLAG_END_STREAM: number; - const NGHTTP2_FLAG_END_HEADERS: number; - const NGHTTP2_FLAG_ACK: number; - const NGHTTP2_FLAG_PADDED: number; - const NGHTTP2_FLAG_PRIORITY: number; - const DEFAULT_SETTINGS_HEADER_TABLE_SIZE: number; - const DEFAULT_SETTINGS_ENABLE_PUSH: number; - const DEFAULT_SETTINGS_INITIAL_WINDOW_SIZE: number; - const DEFAULT_SETTINGS_MAX_FRAME_SIZE: number; - const MAX_MAX_FRAME_SIZE: number; - const MIN_MAX_FRAME_SIZE: number; - const MAX_INITIAL_WINDOW_SIZE: number; - const NGHTTP2_DEFAULT_WEIGHT: number; - const NGHTTP2_SETTINGS_HEADER_TABLE_SIZE: number; - const NGHTTP2_SETTINGS_ENABLE_PUSH: number; - const NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS: number; - const NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE: number; - const NGHTTP2_SETTINGS_MAX_FRAME_SIZE: number; - const NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE: number; - const PADDING_STRATEGY_NONE: number; - const PADDING_STRATEGY_MAX: number; - const PADDING_STRATEGY_CALLBACK: number; - const HTTP2_HEADER_STATUS: string; - const HTTP2_HEADER_METHOD: string; - const HTTP2_HEADER_AUTHORITY: string; - const HTTP2_HEADER_SCHEME: string; - const HTTP2_HEADER_PATH: string; - const HTTP2_HEADER_ACCEPT_CHARSET: string; - const HTTP2_HEADER_ACCEPT_ENCODING: string; - const HTTP2_HEADER_ACCEPT_LANGUAGE: string; - const HTTP2_HEADER_ACCEPT_RANGES: string; - const HTTP2_HEADER_ACCEPT: string; - const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_CREDENTIALS: string; - const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_HEADERS: string; - const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_METHODS: string; - const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN: string; - const HTTP2_HEADER_ACCESS_CONTROL_EXPOSE_HEADERS: string; - const HTTP2_HEADER_ACCESS_CONTROL_REQUEST_HEADERS: string; - const HTTP2_HEADER_ACCESS_CONTROL_REQUEST_METHOD: string; - const HTTP2_HEADER_AGE: string; - const HTTP2_HEADER_ALLOW: string; - const HTTP2_HEADER_AUTHORIZATION: string; - const HTTP2_HEADER_CACHE_CONTROL: string; - const HTTP2_HEADER_CONNECTION: string; - const HTTP2_HEADER_CONTENT_DISPOSITION: string; - const HTTP2_HEADER_CONTENT_ENCODING: string; - const HTTP2_HEADER_CONTENT_LANGUAGE: string; - const HTTP2_HEADER_CONTENT_LENGTH: string; - const HTTP2_HEADER_CONTENT_LOCATION: string; - const HTTP2_HEADER_CONTENT_MD5: string; - const HTTP2_HEADER_CONTENT_RANGE: string; - const HTTP2_HEADER_CONTENT_TYPE: string; - const HTTP2_HEADER_COOKIE: string; - const HTTP2_HEADER_DATE: string; - const HTTP2_HEADER_ETAG: string; - const HTTP2_HEADER_EXPECT: string; - const HTTP2_HEADER_EXPIRES: string; - const HTTP2_HEADER_FROM: string; - const HTTP2_HEADER_HOST: string; - const HTTP2_HEADER_IF_MATCH: string; - const HTTP2_HEADER_IF_MODIFIED_SINCE: string; - const HTTP2_HEADER_IF_NONE_MATCH: string; - const HTTP2_HEADER_IF_RANGE: string; - const HTTP2_HEADER_IF_UNMODIFIED_SINCE: string; - const HTTP2_HEADER_LAST_MODIFIED: string; - const HTTP2_HEADER_LINK: string; - const HTTP2_HEADER_LOCATION: string; - const HTTP2_HEADER_MAX_FORWARDS: string; - const HTTP2_HEADER_PREFER: string; - const HTTP2_HEADER_PROXY_AUTHENTICATE: string; - const HTTP2_HEADER_PROXY_AUTHORIZATION: string; - const HTTP2_HEADER_RANGE: string; - const HTTP2_HEADER_REFERER: string; - const HTTP2_HEADER_REFRESH: string; - const HTTP2_HEADER_RETRY_AFTER: string; - const HTTP2_HEADER_SERVER: string; - const HTTP2_HEADER_SET_COOKIE: string; - const HTTP2_HEADER_STRICT_TRANSPORT_SECURITY: string; - const HTTP2_HEADER_TRANSFER_ENCODING: string; - const HTTP2_HEADER_TE: string; - const HTTP2_HEADER_UPGRADE: string; - const HTTP2_HEADER_USER_AGENT: string; - const HTTP2_HEADER_VARY: string; - const HTTP2_HEADER_VIA: string; - const HTTP2_HEADER_WWW_AUTHENTICATE: string; - const HTTP2_HEADER_HTTP2_SETTINGS: string; - const HTTP2_HEADER_KEEP_ALIVE: string; - const HTTP2_HEADER_PROXY_CONNECTION: string; - const HTTP2_METHOD_ACL: string; - const HTTP2_METHOD_BASELINE_CONTROL: string; - const HTTP2_METHOD_BIND: string; - const HTTP2_METHOD_CHECKIN: string; - const HTTP2_METHOD_CHECKOUT: string; - const HTTP2_METHOD_CONNECT: string; - const HTTP2_METHOD_COPY: string; - const HTTP2_METHOD_DELETE: string; - const HTTP2_METHOD_GET: string; - const HTTP2_METHOD_HEAD: string; - const HTTP2_METHOD_LABEL: string; - const HTTP2_METHOD_LINK: string; - const HTTP2_METHOD_LOCK: string; - const HTTP2_METHOD_MERGE: string; - const HTTP2_METHOD_MKACTIVITY: string; - const HTTP2_METHOD_MKCALENDAR: string; - const HTTP2_METHOD_MKCOL: string; - const HTTP2_METHOD_MKREDIRECTREF: string; - const HTTP2_METHOD_MKWORKSPACE: string; - const HTTP2_METHOD_MOVE: string; - const HTTP2_METHOD_OPTIONS: string; - const HTTP2_METHOD_ORDERPATCH: string; - const HTTP2_METHOD_PATCH: string; - const HTTP2_METHOD_POST: string; - const HTTP2_METHOD_PRI: string; - const HTTP2_METHOD_PROPFIND: string; - const HTTP2_METHOD_PROPPATCH: string; - const HTTP2_METHOD_PUT: string; - const HTTP2_METHOD_REBIND: string; - const HTTP2_METHOD_REPORT: string; - const HTTP2_METHOD_SEARCH: string; - const HTTP2_METHOD_TRACE: string; - const HTTP2_METHOD_UNBIND: string; - const HTTP2_METHOD_UNCHECKOUT: string; - const HTTP2_METHOD_UNLINK: string; - const HTTP2_METHOD_UNLOCK: string; - const HTTP2_METHOD_UPDATE: string; - const HTTP2_METHOD_UPDATEREDIRECTREF: string; - const HTTP2_METHOD_VERSION_CONTROL: string; - const HTTP_STATUS_CONTINUE: number; - const HTTP_STATUS_SWITCHING_PROTOCOLS: number; - const HTTP_STATUS_PROCESSING: number; - const HTTP_STATUS_OK: number; - const HTTP_STATUS_CREATED: number; - const HTTP_STATUS_ACCEPTED: number; - const HTTP_STATUS_NON_AUTHORITATIVE_INFORMATION: number; - const HTTP_STATUS_NO_CONTENT: number; - const HTTP_STATUS_RESET_CONTENT: number; - const HTTP_STATUS_PARTIAL_CONTENT: number; - const HTTP_STATUS_MULTI_STATUS: number; - const HTTP_STATUS_ALREADY_REPORTED: number; - const HTTP_STATUS_IM_USED: number; - const HTTP_STATUS_MULTIPLE_CHOICES: number; - const HTTP_STATUS_MOVED_PERMANENTLY: number; - const HTTP_STATUS_FOUND: number; - const HTTP_STATUS_SEE_OTHER: number; - const HTTP_STATUS_NOT_MODIFIED: number; - const HTTP_STATUS_USE_PROXY: number; - const HTTP_STATUS_TEMPORARY_REDIRECT: number; - const HTTP_STATUS_PERMANENT_REDIRECT: number; - const HTTP_STATUS_BAD_REQUEST: number; - const HTTP_STATUS_UNAUTHORIZED: number; - const HTTP_STATUS_PAYMENT_REQUIRED: number; - const HTTP_STATUS_FORBIDDEN: number; - const HTTP_STATUS_NOT_FOUND: number; - const HTTP_STATUS_METHOD_NOT_ALLOWED: number; - const HTTP_STATUS_NOT_ACCEPTABLE: number; - const HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED: number; - const HTTP_STATUS_REQUEST_TIMEOUT: number; - const HTTP_STATUS_CONFLICT: number; - const HTTP_STATUS_GONE: number; - const HTTP_STATUS_LENGTH_REQUIRED: number; - const HTTP_STATUS_PRECONDITION_FAILED: number; - const HTTP_STATUS_PAYLOAD_TOO_LARGE: number; - const HTTP_STATUS_URI_TOO_LONG: number; - const HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE: number; - const HTTP_STATUS_RANGE_NOT_SATISFIABLE: number; - const HTTP_STATUS_EXPECTATION_FAILED: number; - const HTTP_STATUS_TEAPOT: number; - const HTTP_STATUS_MISDIRECTED_REQUEST: number; - const HTTP_STATUS_UNPROCESSABLE_ENTITY: number; - const HTTP_STATUS_LOCKED: number; - const HTTP_STATUS_FAILED_DEPENDENCY: number; - const HTTP_STATUS_UNORDERED_COLLECTION: number; - const HTTP_STATUS_UPGRADE_REQUIRED: number; - const HTTP_STATUS_PRECONDITION_REQUIRED: number; - const HTTP_STATUS_TOO_MANY_REQUESTS: number; - const HTTP_STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE: number; - const HTTP_STATUS_UNAVAILABLE_FOR_LEGAL_REASONS: number; - const HTTP_STATUS_INTERNAL_SERVER_ERROR: number; - const HTTP_STATUS_NOT_IMPLEMENTED: number; - const HTTP_STATUS_BAD_GATEWAY: number; - const HTTP_STATUS_SERVICE_UNAVAILABLE: number; - const HTTP_STATUS_GATEWAY_TIMEOUT: number; - const HTTP_STATUS_HTTP_VERSION_NOT_SUPPORTED: number; - const HTTP_STATUS_VARIANT_ALSO_NEGOTIATES: number; - const HTTP_STATUS_INSUFFICIENT_STORAGE: number; - const HTTP_STATUS_LOOP_DETECTED: number; - const HTTP_STATUS_BANDWIDTH_LIMIT_EXCEEDED: number; - const HTTP_STATUS_NOT_EXTENDED: number; - const HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED: number; - } - /** - * This symbol can be set as a property on the HTTP/2 headers object with - * an array value in order to provide a list of headers considered sensitive. - */ - export const sensitiveHeaders: symbol; - /** - * Returns an object containing the default settings for an `Http2Session` instance. This method returns a new object instance every time it is called - * so instances returned may be safely modified for use. - * @since v8.4.0 - */ - export function getDefaultSettings(): Settings; - /** - * Returns a `Buffer` instance containing serialized representation of the given - * HTTP/2 settings as specified in the [HTTP/2](https://tools.ietf.org/html/rfc7540) specification. This is intended - * for use with the `HTTP2-Settings` header field. - * - * ```js - * import http2 from 'node:http2'; - * - * const packed = http2.getPackedSettings({ enablePush: false }); - * - * console.log(packed.toString('base64')); - * // Prints: AAIAAAAA - * ``` - * @since v8.4.0 - */ - export function getPackedSettings(settings: Settings): NonSharedBuffer; - /** - * Returns a `HTTP/2 Settings Object` containing the deserialized settings from - * the given `Buffer` as generated by `http2.getPackedSettings()`. - * @since v8.4.0 - * @param buf The packed settings. - */ - export function getUnpackedSettings(buf: Uint8Array): Settings; - /** - * Returns a `net.Server` instance that creates and manages `Http2Session` instances. - * - * Since there are no browsers known that support [unencrypted HTTP/2](https://http2.github.io/faq/#does-http2-require-encryption), the use of {@link createSecureServer} is necessary when - * communicating - * with browser clients. - * - * ```js - * import http2 from 'node:http2'; - * - * // Create an unencrypted HTTP/2 server. - * // Since there are no browsers known that support - * // unencrypted HTTP/2, the use of `http2.createSecureServer()` - * // is necessary when communicating with browser clients. - * const server = http2.createServer(); - * - * server.on('stream', (stream, headers) => { - * stream.respond({ - * 'content-type': 'text/html; charset=utf-8', - * ':status': 200, - * }); - * stream.end('

Hello World

'); - * }); - * - * server.listen(8000); - * ``` - * @since v8.4.0 - * @param onRequestHandler See `Compatibility API` - */ - export function createServer( - onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void, - ): Http2Server; - export function createServer< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - >( - options: ServerOptions, - onRequestHandler?: (request: InstanceType, response: InstanceType) => void, - ): Http2Server; - /** - * Returns a `tls.Server` instance that creates and manages `Http2Session` instances. - * - * ```js - * import http2 from 'node:http2'; - * import fs from 'node:fs'; - * - * const options = { - * key: fs.readFileSync('server-key.pem'), - * cert: fs.readFileSync('server-cert.pem'), - * }; - * - * // Create a secure HTTP/2 server - * const server = http2.createSecureServer(options); - * - * server.on('stream', (stream, headers) => { - * stream.respond({ - * 'content-type': 'text/html; charset=utf-8', - * ':status': 200, - * }); - * stream.end('

Hello World

'); - * }); - * - * server.listen(8443); - * ``` - * @since v8.4.0 - * @param onRequestHandler See `Compatibility API` - */ - export function createSecureServer( - onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void, - ): Http2SecureServer; - export function createSecureServer< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - >( - options: SecureServerOptions, - onRequestHandler?: (request: InstanceType, response: InstanceType) => void, - ): Http2SecureServer; - /** - * Returns a `ClientHttp2Session` instance. - * - * ```js - * import http2 from 'node:http2'; - * const client = http2.connect('https://localhost:1234'); - * - * // Use the client - * - * client.close(); - * ``` - * @since v8.4.0 - * @param authority The remote HTTP/2 server to connect to. This must be in the form of a minimal, valid URL with the `http://` or `https://` prefix, host name, and IP port (if a non-default port - * is used). Userinfo (user ID and password), path, querystring, and fragment details in the URL will be ignored. - * @param listener Will be registered as a one-time listener of the {@link 'connect'} event. - */ - export function connect( - authority: string | url.URL, - listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, - ): ClientHttp2Session; - export function connect( - authority: string | url.URL, - options?: ClientSessionOptions | SecureClientSessionOptions, - listener?: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void, - ): ClientHttp2Session; - /** - * Create an HTTP/2 server session from an existing socket. - * @param socket A Duplex Stream - * @param options Any `{@link createServer}` options can be provided. - * @since v20.12.0 - */ - export function performServerHandshake< - Http1Request extends typeof IncomingMessage = typeof IncomingMessage, - Http1Response extends typeof ServerResponse> = typeof ServerResponse, - Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest, - Http2Response extends typeof Http2ServerResponse> = typeof Http2ServerResponse, - >( - socket: stream.Duplex, - options?: ServerOptions, - ): ServerHttp2Session; -} -declare module "node:http2" { - export * from "http2"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/https.d.ts b/build_vtk_bundle/node_modules/@types/node/https.d.ts deleted file mode 100644 index 53de0b9a..00000000 --- a/build_vtk_bundle/node_modules/@types/node/https.d.ts +++ /dev/null @@ -1,579 +0,0 @@ -/** - * HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a - * separate module. - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/https.js) - */ -declare module "https" { - import { NonSharedBuffer } from "node:buffer"; - import { Duplex } from "node:stream"; - import * as tls from "node:tls"; - import * as http from "node:http"; - import { URL } from "node:url"; - interface ServerOptions< - Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, - Response extends typeof http.ServerResponse> = typeof http.ServerResponse, - > extends http.ServerOptions, tls.TlsOptions {} - interface RequestOptions extends http.RequestOptions, tls.SecureContextOptions { - checkServerIdentity?: - | ((hostname: string, cert: tls.DetailedPeerCertificate) => Error | undefined) - | undefined; - rejectUnauthorized?: boolean | undefined; // Defaults to true - servername?: string | undefined; // SNI TLS Extension - } - interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions { - maxCachedSessions?: number | undefined; - } - /** - * An `Agent` object for HTTPS similar to `http.Agent`. See {@link request} for more information. - * @since v0.4.5 - */ - class Agent extends http.Agent { - constructor(options?: AgentOptions); - options: AgentOptions; - createConnection( - options: RequestOptions, - callback?: (err: Error | null, stream: Duplex) => void, - ): Duplex | null | undefined; - getName(options?: RequestOptions): string; - } - interface Server< - Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, - Response extends typeof http.ServerResponse> = typeof http.ServerResponse, - > extends http.Server {} - /** - * See `http.Server` for more information. - * @since v0.3.4 - */ - class Server< - Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, - Response extends typeof http.ServerResponse> = typeof http.ServerResponse, - > extends tls.Server { - constructor(requestListener?: http.RequestListener); - constructor( - options: ServerOptions, - requestListener?: http.RequestListener, - ); - /** - * Closes all connections connected to this server. - * @since v18.2.0 - */ - closeAllConnections(): void; - /** - * Closes all connections connected to this server which are not sending a request or waiting for a response. - * @since v18.2.0 - */ - closeIdleConnections(): void; - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this; - addListener( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - addListener( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - addListener( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - addListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this; - addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "connection", listener: (socket: Duplex) => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "listening", listener: () => void): this; - addListener(event: "checkContinue", listener: http.RequestListener): this; - addListener(event: "checkExpectation", listener: http.RequestListener): this; - addListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this; - addListener( - event: "connect", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - addListener(event: "request", listener: http.RequestListener): this; - addListener( - event: "upgrade", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - emit(event: string, ...args: any[]): boolean; - emit(event: "keylog", line: NonSharedBuffer, tlsSocket: tls.TLSSocket): boolean; - emit( - event: "newSession", - sessionId: NonSharedBuffer, - sessionData: NonSharedBuffer, - callback: () => void, - ): boolean; - emit( - event: "OCSPRequest", - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ): boolean; - emit( - event: "resumeSession", - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ): boolean; - emit(event: "secureConnection", tlsSocket: tls.TLSSocket): boolean; - emit(event: "tlsClientError", err: Error, tlsSocket: tls.TLSSocket): boolean; - emit(event: "close"): boolean; - emit(event: "connection", socket: Duplex): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "listening"): boolean; - emit( - event: "checkContinue", - req: InstanceType, - res: InstanceType, - ): boolean; - emit( - event: "checkExpectation", - req: InstanceType, - res: InstanceType, - ): boolean; - emit(event: "clientError", err: Error, socket: Duplex): boolean; - emit(event: "connect", req: InstanceType, socket: Duplex, head: NonSharedBuffer): boolean; - emit( - event: "request", - req: InstanceType, - res: InstanceType, - ): boolean; - emit(event: "upgrade", req: InstanceType, socket: Duplex, head: NonSharedBuffer): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this; - on( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - on( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - on( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - on(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this; - on(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; - on(event: "close", listener: () => void): this; - on(event: "connection", listener: (socket: Duplex) => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "listening", listener: () => void): this; - on(event: "checkContinue", listener: http.RequestListener): this; - on(event: "checkExpectation", listener: http.RequestListener): this; - on(event: "clientError", listener: (err: Error, socket: Duplex) => void): this; - on( - event: "connect", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - on(event: "request", listener: http.RequestListener): this; - on( - event: "upgrade", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this; - once( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - once( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - once( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - once(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this; - once(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; - once(event: "close", listener: () => void): this; - once(event: "connection", listener: (socket: Duplex) => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "listening", listener: () => void): this; - once(event: "checkContinue", listener: http.RequestListener): this; - once(event: "checkExpectation", listener: http.RequestListener): this; - once(event: "clientError", listener: (err: Error, socket: Duplex) => void): this; - once( - event: "connect", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - once(event: "request", listener: http.RequestListener): this; - once( - event: "upgrade", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this; - prependListener( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - prependListener( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - prependListener( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - prependListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this; - prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "connection", listener: (socket: Duplex) => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "listening", listener: () => void): this; - prependListener(event: "checkContinue", listener: http.RequestListener): this; - prependListener(event: "checkExpectation", listener: http.RequestListener): this; - prependListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this; - prependListener( - event: "connect", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - prependListener(event: "request", listener: http.RequestListener): this; - prependListener( - event: "upgrade", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this; - prependOnceListener( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - prependOnceListener( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - prependOnceListener( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - prependOnceListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this; - prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "connection", listener: (socket: Duplex) => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "listening", listener: () => void): this; - prependOnceListener(event: "checkContinue", listener: http.RequestListener): this; - prependOnceListener(event: "checkExpectation", listener: http.RequestListener): this; - prependOnceListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this; - prependOnceListener( - event: "connect", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - prependOnceListener(event: "request", listener: http.RequestListener): this; - prependOnceListener( - event: "upgrade", - listener: (req: InstanceType, socket: Duplex, head: NonSharedBuffer) => void, - ): this; - } - /** - * ```js - * // curl -k https://localhost:8000/ - * import https from 'node:https'; - * import fs from 'node:fs'; - * - * const options = { - * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), - * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'), - * }; - * - * https.createServer(options, (req, res) => { - * res.writeHead(200); - * res.end('hello world\n'); - * }).listen(8000); - * ``` - * - * Or - * - * ```js - * import https from 'node:https'; - * import fs from 'node:fs'; - * - * const options = { - * pfx: fs.readFileSync('test/fixtures/test_cert.pfx'), - * passphrase: 'sample', - * }; - * - * https.createServer(options, (req, res) => { - * res.writeHead(200); - * res.end('hello world\n'); - * }).listen(8000); - * ``` - * @since v0.3.4 - * @param options Accepts `options` from `createServer`, `createSecureContext` and `createServer`. - * @param requestListener A listener to be added to the `'request'` event. - */ - function createServer< - Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, - Response extends typeof http.ServerResponse> = typeof http.ServerResponse, - >(requestListener?: http.RequestListener): Server; - function createServer< - Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, - Response extends typeof http.ServerResponse> = typeof http.ServerResponse, - >( - options: ServerOptions, - requestListener?: http.RequestListener, - ): Server; - /** - * Makes a request to a secure web server. - * - * The following additional `options` from `tls.connect()` are also accepted: `ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`, `honorCipherOrder`, `key`, `passphrase`, - * `pfx`, `rejectUnauthorized`, `secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`, `highWaterMark`. - * - * `options` can be an object, a string, or a `URL` object. If `options` is a - * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object. - * - * `https.request()` returns an instance of the `http.ClientRequest` class. The `ClientRequest` instance is a writable stream. If one needs to - * upload a file with a POST request, then write to the `ClientRequest` object. - * - * ```js - * import https from 'node:https'; - * - * const options = { - * hostname: 'encrypted.google.com', - * port: 443, - * path: '/', - * method: 'GET', - * }; - * - * const req = https.request(options, (res) => { - * console.log('statusCode:', res.statusCode); - * console.log('headers:', res.headers); - * - * res.on('data', (d) => { - * process.stdout.write(d); - * }); - * }); - * - * req.on('error', (e) => { - * console.error(e); - * }); - * req.end(); - * ``` - * - * Example using options from `tls.connect()`: - * - * ```js - * const options = { - * hostname: 'encrypted.google.com', - * port: 443, - * path: '/', - * method: 'GET', - * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), - * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'), - * }; - * options.agent = new https.Agent(options); - * - * const req = https.request(options, (res) => { - * // ... - * }); - * ``` - * - * Alternatively, opt out of connection pooling by not using an `Agent`. - * - * ```js - * const options = { - * hostname: 'encrypted.google.com', - * port: 443, - * path: '/', - * method: 'GET', - * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), - * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'), - * agent: false, - * }; - * - * const req = https.request(options, (res) => { - * // ... - * }); - * ``` - * - * Example using a `URL` as `options`: - * - * ```js - * const options = new URL('https://abc:xyz@example.com'); - * - * const req = https.request(options, (res) => { - * // ... - * }); - * ``` - * - * Example pinning on certificate fingerprint, or the public key (similar to`pin-sha256`): - * - * ```js - * import tls from 'node:tls'; - * import https from 'node:https'; - * import crypto from 'node:crypto'; - * - * function sha256(s) { - * return crypto.createHash('sha256').update(s).digest('base64'); - * } - * const options = { - * hostname: 'github.com', - * port: 443, - * path: '/', - * method: 'GET', - * checkServerIdentity: function(host, cert) { - * // Make sure the certificate is issued to the host we are connected to - * const err = tls.checkServerIdentity(host, cert); - * if (err) { - * return err; - * } - * - * // Pin the public key, similar to HPKP pin-sha256 pinning - * const pubkey256 = 'pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU='; - * if (sha256(cert.pubkey) !== pubkey256) { - * const msg = 'Certificate verification error: ' + - * `The public key of '${cert.subject.CN}' ` + - * 'does not match our pinned fingerprint'; - * return new Error(msg); - * } - * - * // Pin the exact certificate, rather than the pub key - * const cert256 = '25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:' + - * 'D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16'; - * if (cert.fingerprint256 !== cert256) { - * const msg = 'Certificate verification error: ' + - * `The certificate of '${cert.subject.CN}' ` + - * 'does not match our pinned fingerprint'; - * return new Error(msg); - * } - * - * // This loop is informational only. - * // Print the certificate and public key fingerprints of all certs in the - * // chain. Its common to pin the public key of the issuer on the public - * // internet, while pinning the public key of the service in sensitive - * // environments. - * do { - * console.log('Subject Common Name:', cert.subject.CN); - * console.log(' Certificate SHA256 fingerprint:', cert.fingerprint256); - * - * hash = crypto.createHash('sha256'); - * console.log(' Public key ping-sha256:', sha256(cert.pubkey)); - * - * lastprint256 = cert.fingerprint256; - * cert = cert.issuerCertificate; - * } while (cert.fingerprint256 !== lastprint256); - * - * }, - * }; - * - * options.agent = new https.Agent(options); - * const req = https.request(options, (res) => { - * console.log('All OK. Server matched our pinned cert or public key'); - * console.log('statusCode:', res.statusCode); - * // Print the HPKP values - * console.log('headers:', res.headers['public-key-pins']); - * - * res.on('data', (d) => {}); - * }); - * - * req.on('error', (e) => { - * console.error(e.message); - * }); - * req.end(); - * ``` - * - * Outputs for example: - * - * ```text - * Subject Common Name: github.com - * Certificate SHA256 fingerprint: 25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16 - * Public key ping-sha256: pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU= - * Subject Common Name: DigiCert SHA2 Extended Validation Server CA - * Certificate SHA256 fingerprint: 40:3E:06:2A:26:53:05:91:13:28:5B:AF:80:A0:D4:AE:42:2C:84:8C:9F:78:FA:D0:1F:C9:4B:C5:B8:7F:EF:1A - * Public key ping-sha256: RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho= - * Subject Common Name: DigiCert High Assurance EV Root CA - * Certificate SHA256 fingerprint: 74:31:E5:F4:C3:C1:CE:46:90:77:4F:0B:61:E0:54:40:88:3B:A9:A0:1E:D0:0B:A6:AB:D7:80:6E:D3:B1:18:CF - * Public key ping-sha256: WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18= - * All OK. Server matched our pinned cert or public key - * statusCode: 200 - * headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; pin-sha256="RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho="; - * pin-sha256="k2v657xBsOVe1PQRwOsHsw3bsGT2VzIqz5K+59sNQws="; pin-sha256="K87oWBWM9UZfyddvDfoxL+8lpNyoUB2ptGtn0fv6G2Q="; pin-sha256="IQBnNBEiFuhj+8x6X8XLgh01V9Ic5/V3IRQLNFFc7v4="; - * pin-sha256="iie1VXtL7HzAMF+/PVPR9xzT80kQxdZeJ+zduCB3uj0="; pin-sha256="LvRiGEjRqfzurezaWuj8Wie2gyHMrW5Q06LspMnox7A="; includeSubDomains - * ``` - * @since v0.3.6 - * @param options Accepts all `options` from `request`, with some differences in default values: - */ - function request( - options: RequestOptions | string | URL, - callback?: (res: http.IncomingMessage) => void, - ): http.ClientRequest; - function request( - url: string | URL, - options: RequestOptions, - callback?: (res: http.IncomingMessage) => void, - ): http.ClientRequest; - /** - * Like `http.get()` but for HTTPS. - * - * `options` can be an object, a string, or a `URL` object. If `options` is a - * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object. - * - * ```js - * import https from 'node:https'; - * - * https.get('https://encrypted.google.com/', (res) => { - * console.log('statusCode:', res.statusCode); - * console.log('headers:', res.headers); - * - * res.on('data', (d) => { - * process.stdout.write(d); - * }); - * - * }).on('error', (e) => { - * console.error(e); - * }); - * ``` - * @since v0.3.6 - * @param options Accepts the same `options` as {@link request}, with the `method` always set to `GET`. - */ - function get( - options: RequestOptions | string | URL, - callback?: (res: http.IncomingMessage) => void, - ): http.ClientRequest; - function get( - url: string | URL, - options: RequestOptions, - callback?: (res: http.IncomingMessage) => void, - ): http.ClientRequest; - let globalAgent: Agent; -} -declare module "node:https" { - export * from "https"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/index.d.ts b/build_vtk_bundle/node_modules/@types/node/index.d.ts deleted file mode 100644 index c140e0b4..00000000 --- a/build_vtk_bundle/node_modules/@types/node/index.d.ts +++ /dev/null @@ -1,101 +0,0 @@ -/** - * License for programmatically and manually incorporated - * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc - * - * Copyright Node.js contributors. All rights reserved. - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to - * deal in the Software without restriction, including without limitation the - * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or - * sell copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - */ - -// NOTE: These definitions support Node.js and TypeScript 5.8+. - -// Reference required TypeScript libraries: -/// -/// -/// - -// Iterator definitions required for compatibility with TypeScript <5.6: -/// - -// Definitions for Node.js modules specific to TypeScript 5.7+: -/// -/// - -// Definitions for Node.js modules that are not specific to any version of TypeScript: -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// diff --git a/build_vtk_bundle/node_modules/@types/node/inspector.d.ts b/build_vtk_bundle/node_modules/@types/node/inspector.d.ts deleted file mode 100644 index dd0b8888..00000000 --- a/build_vtk_bundle/node_modules/@types/node/inspector.d.ts +++ /dev/null @@ -1,277 +0,0 @@ -/** - * The `node:inspector` module provides an API for interacting with the V8 - * inspector. - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/inspector.js) - */ -declare module "inspector" { - import EventEmitter = require("node:events"); - /** - * The `inspector.Session` is used for dispatching messages to the V8 inspector - * back-end and receiving message responses and notifications. - */ - class Session extends EventEmitter { - /** - * Create a new instance of the inspector.Session class. - * The inspector session needs to be connected through `session.connect()` before the messages can be dispatched to the inspector backend. - */ - constructor(); - /** - * Connects a session to the inspector back-end. - */ - connect(): void; - /** - * Connects a session to the inspector back-end. - * An exception will be thrown if this API was not called on a Worker thread. - * @since v12.11.0 - */ - connectToMainThread(): void; - /** - * Immediately close the session. All pending message callbacks will be called with an error. - * `session.connect()` will need to be called to be able to send messages again. - * Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints. - */ - disconnect(): void; - } - /** - * Activate inspector on host and port. Equivalent to `node --inspect=[[host:]port]`, but can be done programmatically after node has - * started. - * - * If wait is `true`, will block until a client has connected to the inspect port - * and flow control has been passed to the debugger client. - * - * See the [security warning](https://nodejs.org/docs/latest-v24.x/api/cli.html#warning-binding-inspector-to-a-public-ipport-combination-is-insecure) - * regarding the `host` parameter usage. - * @param port Port to listen on for inspector connections. Defaults to what was specified on the CLI. - * @param host Host to listen on for inspector connections. Defaults to what was specified on the CLI. - * @param wait Block until a client has connected. Defaults to what was specified on the CLI. - * @returns Disposable that calls `inspector.close()`. - */ - function open(port?: number, host?: string, wait?: boolean): Disposable; - /** - * Deactivate the inspector. Blocks until there are no active connections. - */ - function close(): void; - /** - * Return the URL of the active inspector, or `undefined` if there is none. - * - * ```console - * $ node --inspect -p 'inspector.url()' - * Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34 - * For help, see: https://nodejs.org/en/docs/inspector - * ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34 - * - * $ node --inspect=localhost:3000 -p 'inspector.url()' - * Debugger listening on ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a - * For help, see: https://nodejs.org/en/docs/inspector - * ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a - * - * $ node -p 'inspector.url()' - * undefined - * ``` - */ - function url(): string | undefined; - /** - * Blocks until a client (existing or connected later) has sent `Runtime.runIfWaitingForDebugger` command. - * - * An exception will be thrown if there is no active inspector. - * @since v12.7.0 - */ - function waitForDebugger(): void; - // These methods are exposed by the V8 inspector console API (inspector/v8-console.h). - // The method signatures differ from those of the Node.js console, and are deliberately - // typed permissively. - interface InspectorConsole { - debug(...data: any[]): void; - error(...data: any[]): void; - info(...data: any[]): void; - log(...data: any[]): void; - warn(...data: any[]): void; - dir(...data: any[]): void; - dirxml(...data: any[]): void; - table(...data: any[]): void; - trace(...data: any[]): void; - group(...data: any[]): void; - groupCollapsed(...data: any[]): void; - groupEnd(...data: any[]): void; - clear(...data: any[]): void; - count(label?: any): void; - countReset(label?: any): void; - assert(value?: any, ...data: any[]): void; - profile(label?: any): void; - profileEnd(label?: any): void; - time(label?: any): void; - timeLog(label?: any): void; - timeStamp(label?: any): void; - } - /** - * An object to send messages to the remote inspector console. - * @since v11.0.0 - */ - const console: InspectorConsole; - // DevTools protocol event broadcast methods - namespace Network { - /** - * This feature is only available with the `--experimental-network-inspection` flag enabled. - * - * Broadcasts the `Network.requestWillBeSent` event to connected frontends. This event indicates that - * the application is about to send an HTTP request. - * @since v22.6.0 - */ - function requestWillBeSent(params: RequestWillBeSentEventDataType): void; - /** - * This feature is only available with the `--experimental-network-inspection` flag enabled. - * - * Broadcasts the `Network.dataReceived` event to connected frontends, or buffers the data if - * `Network.streamResourceContent` command was not invoked for the given request yet. - * - * Also enables `Network.getResponseBody` command to retrieve the response data. - * @since v24.2.0 - */ - function dataReceived(params: DataReceivedEventDataType): void; - /** - * This feature is only available with the `--experimental-network-inspection` flag enabled. - * - * Enables `Network.getRequestPostData` command to retrieve the request data. - * @since v24.3.0 - */ - function dataSent(params: unknown): void; - /** - * This feature is only available with the `--experimental-network-inspection` flag enabled. - * - * Broadcasts the `Network.responseReceived` event to connected frontends. This event indicates that - * HTTP response is available. - * @since v22.6.0 - */ - function responseReceived(params: ResponseReceivedEventDataType): void; - /** - * This feature is only available with the `--experimental-network-inspection` flag enabled. - * - * Broadcasts the `Network.loadingFinished` event to connected frontends. This event indicates that - * HTTP request has finished loading. - * @since v22.6.0 - */ - function loadingFinished(params: LoadingFinishedEventDataType): void; - /** - * This feature is only available with the `--experimental-network-inspection` flag enabled. - * - * Broadcasts the `Network.loadingFailed` event to connected frontends. This event indicates that - * HTTP request has failed to load. - * @since v22.7.0 - */ - function loadingFailed(params: LoadingFailedEventDataType): void; - /** - * This feature is only available with the `--experimental-network-inspection` flag enabled. - * - * Broadcasts the `Network.webSocketCreated` event to connected frontends. This event indicates that - * a WebSocket connection has been initiated. - * @since v24.7.0 - */ - function webSocketCreated(params: WebSocketCreatedEventDataType): void; - /** - * This feature is only available with the `--experimental-network-inspection` flag enabled. - * - * Broadcasts the `Network.webSocketHandshakeResponseReceived` event to connected frontends. - * This event indicates that the WebSocket handshake response has been received. - * @since v24.7.0 - */ - function webSocketHandshakeResponseReceived(params: WebSocketHandshakeResponseReceivedEventDataType): void; - /** - * This feature is only available with the `--experimental-network-inspection` flag enabled. - * - * Broadcasts the `Network.webSocketClosed` event to connected frontends. - * This event indicates that a WebSocket connection has been closed. - * @since v24.7.0 - */ - function webSocketClosed(params: WebSocketClosedEventDataType): void; - } - namespace NetworkResources { - /** - * This feature is only available with the `--experimental-inspector-network-resource` flag enabled. - * - * The inspector.NetworkResources.put method is used to provide a response for a loadNetworkResource - * request issued via the Chrome DevTools Protocol (CDP). - * This is typically triggered when a source map is specified by URL, and a DevTools frontend—such as - * Chrome—requests the resource to retrieve the source map. - * - * This method allows developers to predefine the resource content to be served in response to such CDP requests. - * - * ```js - * const inspector = require('node:inspector'); - * // By preemptively calling put to register the resource, a source map can be resolved when - * // a loadNetworkResource request is made from the frontend. - * async function setNetworkResources() { - * const mapUrl = 'http://localhost:3000/dist/app.js.map'; - * const tsUrl = 'http://localhost:3000/src/app.ts'; - * const distAppJsMap = await fetch(mapUrl).then((res) => res.text()); - * const srcAppTs = await fetch(tsUrl).then((res) => res.text()); - * inspector.NetworkResources.put(mapUrl, distAppJsMap); - * inspector.NetworkResources.put(tsUrl, srcAppTs); - * }; - * setNetworkResources().then(() => { - * require('./dist/app'); - * }); - * ``` - * - * For more details, see the official CDP documentation: [Network.loadNetworkResource](https://chromedevtools.github.io/devtools-protocol/tot/Network/#method-loadNetworkResource) - * @since v24.5.0 - * @experimental - */ - function put(url: string, data: string): void; - } -} - -/** - * The `node:inspector` module provides an API for interacting with the V8 - * inspector. - */ -declare module "node:inspector" { - export * from "inspector"; -} - -/** - * The `node:inspector/promises` module provides an API for interacting with the V8 - * inspector. - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/inspector/promises.js) - * @since v19.0.0 - */ -declare module "inspector/promises" { - import EventEmitter = require("node:events"); - export { close, console, NetworkResources, open, url, waitForDebugger } from "inspector"; - /** - * The `inspector.Session` is used for dispatching messages to the V8 inspector - * back-end and receiving message responses and notifications. - * @since v19.0.0 - */ - export class Session extends EventEmitter { - /** - * Create a new instance of the inspector.Session class. - * The inspector session needs to be connected through `session.connect()` before the messages can be dispatched to the inspector backend. - */ - constructor(); - /** - * Connects a session to the inspector back-end. - */ - connect(): void; - /** - * Connects a session to the inspector back-end. - * An exception will be thrown if this API was not called on a Worker thread. - * @since v12.11.0 - */ - connectToMainThread(): void; - /** - * Immediately close the session. All pending message callbacks will be called with an error. - * `session.connect()` will need to be called to be able to send messages again. - * Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints. - */ - disconnect(): void; - } -} - -/** - * The `node:inspector/promises` module provides an API for interacting with the V8 - * inspector. - * @since v19.0.0 - */ -declare module "node:inspector/promises" { - export * from "inspector/promises"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/inspector.generated.d.ts b/build_vtk_bundle/node_modules/@types/node/inspector.generated.d.ts deleted file mode 100644 index 17352e79..00000000 --- a/build_vtk_bundle/node_modules/@types/node/inspector.generated.d.ts +++ /dev/null @@ -1,4233 +0,0 @@ -// These definitions are automatically generated by the generate-inspector script. -// Do not edit this file directly. -// See scripts/generate-inspector/README.md for information on how to update the protocol definitions. -// Changes to the module itself should be added to the generator template (scripts/generate-inspector/inspector.d.ts.template). - -declare module "inspector" { - interface InspectorNotification { - method: string; - params: T; - } - - namespace Schema { - /** - * Description of the protocol domain. - */ - interface Domain { - /** - * Domain name. - */ - name: string; - /** - * Domain version. - */ - version: string; - } - interface GetDomainsReturnType { - /** - * List of supported domains. - */ - domains: Domain[]; - } - } - namespace Runtime { - /** - * Unique script identifier. - */ - type ScriptId = string; - /** - * Unique object identifier. - */ - type RemoteObjectId = string; - /** - * Primitive value which cannot be JSON-stringified. - */ - type UnserializableValue = string; - /** - * Mirror object referencing original JavaScript object. - */ - interface RemoteObject { - /** - * Object type. - */ - type: string; - /** - * Object subtype hint. Specified for object type values only. - */ - subtype?: string | undefined; - /** - * Object class (constructor) name. Specified for object type values only. - */ - className?: string | undefined; - /** - * Remote object value in case of primitive values or JSON values (if it was requested). - */ - value?: any; - /** - * Primitive value which can not be JSON-stringified does not have value, but gets this property. - */ - unserializableValue?: UnserializableValue | undefined; - /** - * String representation of the object. - */ - description?: string | undefined; - /** - * Unique object identifier (for non-primitive values). - */ - objectId?: RemoteObjectId | undefined; - /** - * Preview containing abbreviated property values. Specified for object type values only. - * @experimental - */ - preview?: ObjectPreview | undefined; - /** - * @experimental - */ - customPreview?: CustomPreview | undefined; - } - /** - * @experimental - */ - interface CustomPreview { - header: string; - hasBody: boolean; - formatterObjectId: RemoteObjectId; - bindRemoteObjectFunctionId: RemoteObjectId; - configObjectId?: RemoteObjectId | undefined; - } - /** - * Object containing abbreviated remote object value. - * @experimental - */ - interface ObjectPreview { - /** - * Object type. - */ - type: string; - /** - * Object subtype hint. Specified for object type values only. - */ - subtype?: string | undefined; - /** - * String representation of the object. - */ - description?: string | undefined; - /** - * True iff some of the properties or entries of the original object did not fit. - */ - overflow: boolean; - /** - * List of the properties. - */ - properties: PropertyPreview[]; - /** - * List of the entries. Specified for map and set subtype values only. - */ - entries?: EntryPreview[] | undefined; - } - /** - * @experimental - */ - interface PropertyPreview { - /** - * Property name. - */ - name: string; - /** - * Object type. Accessor means that the property itself is an accessor property. - */ - type: string; - /** - * User-friendly property value string. - */ - value?: string | undefined; - /** - * Nested value preview. - */ - valuePreview?: ObjectPreview | undefined; - /** - * Object subtype hint. Specified for object type values only. - */ - subtype?: string | undefined; - } - /** - * @experimental - */ - interface EntryPreview { - /** - * Preview of the key. Specified for map-like collection entries. - */ - key?: ObjectPreview | undefined; - /** - * Preview of the value. - */ - value: ObjectPreview; - } - /** - * Object property descriptor. - */ - interface PropertyDescriptor { - /** - * Property name or symbol description. - */ - name: string; - /** - * The value associated with the property. - */ - value?: RemoteObject | undefined; - /** - * True if the value associated with the property may be changed (data descriptors only). - */ - writable?: boolean | undefined; - /** - * A function which serves as a getter for the property, or undefined if there is no getter (accessor descriptors only). - */ - get?: RemoteObject | undefined; - /** - * A function which serves as a setter for the property, or undefined if there is no setter (accessor descriptors only). - */ - set?: RemoteObject | undefined; - /** - * True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object. - */ - configurable: boolean; - /** - * True if this property shows up during enumeration of the properties on the corresponding object. - */ - enumerable: boolean; - /** - * True if the result was thrown during the evaluation. - */ - wasThrown?: boolean | undefined; - /** - * True if the property is owned for the object. - */ - isOwn?: boolean | undefined; - /** - * Property symbol object, if the property is of the symbol type. - */ - symbol?: RemoteObject | undefined; - } - /** - * Object internal property descriptor. This property isn't normally visible in JavaScript code. - */ - interface InternalPropertyDescriptor { - /** - * Conventional property name. - */ - name: string; - /** - * The value associated with the property. - */ - value?: RemoteObject | undefined; - } - /** - * Represents function call argument. Either remote object id objectId, primitive value, unserializable primitive value or neither of (for undefined) them should be specified. - */ - interface CallArgument { - /** - * Primitive value or serializable javascript object. - */ - value?: any; - /** - * Primitive value which can not be JSON-stringified. - */ - unserializableValue?: UnserializableValue | undefined; - /** - * Remote object handle. - */ - objectId?: RemoteObjectId | undefined; - } - /** - * Id of an execution context. - */ - type ExecutionContextId = number; - /** - * Description of an isolated world. - */ - interface ExecutionContextDescription { - /** - * Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed. - */ - id: ExecutionContextId; - /** - * Execution context origin. - */ - origin: string; - /** - * Human readable name describing given context. - */ - name: string; - /** - * Embedder-specific auxiliary data. - */ - auxData?: object | undefined; - } - /** - * Detailed information about exception (or error) that was thrown during script compilation or execution. - */ - interface ExceptionDetails { - /** - * Exception id. - */ - exceptionId: number; - /** - * Exception text, which should be used together with exception object when available. - */ - text: string; - /** - * Line number of the exception location (0-based). - */ - lineNumber: number; - /** - * Column number of the exception location (0-based). - */ - columnNumber: number; - /** - * Script ID of the exception location. - */ - scriptId?: ScriptId | undefined; - /** - * URL of the exception location, to be used when the script was not reported. - */ - url?: string | undefined; - /** - * JavaScript stack trace if available. - */ - stackTrace?: StackTrace | undefined; - /** - * Exception object if available. - */ - exception?: RemoteObject | undefined; - /** - * Identifier of the context where exception happened. - */ - executionContextId?: ExecutionContextId | undefined; - } - /** - * Number of milliseconds since epoch. - */ - type Timestamp = number; - /** - * Stack entry for runtime errors and assertions. - */ - interface CallFrame { - /** - * JavaScript function name. - */ - functionName: string; - /** - * JavaScript script id. - */ - scriptId: ScriptId; - /** - * JavaScript script name or url. - */ - url: string; - /** - * JavaScript script line number (0-based). - */ - lineNumber: number; - /** - * JavaScript script column number (0-based). - */ - columnNumber: number; - } - /** - * Call frames for assertions or error messages. - */ - interface StackTrace { - /** - * String label of this stack trace. For async traces this may be a name of the function that initiated the async call. - */ - description?: string | undefined; - /** - * JavaScript function name. - */ - callFrames: CallFrame[]; - /** - * Asynchronous JavaScript stack trace that preceded this stack, if available. - */ - parent?: StackTrace | undefined; - /** - * Asynchronous JavaScript stack trace that preceded this stack, if available. - * @experimental - */ - parentId?: StackTraceId | undefined; - } - /** - * Unique identifier of current debugger. - * @experimental - */ - type UniqueDebuggerId = string; - /** - * If debuggerId is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See Runtime.StackTrace and Debugger.paused for usages. - * @experimental - */ - interface StackTraceId { - id: string; - debuggerId?: UniqueDebuggerId | undefined; - } - interface EvaluateParameterType { - /** - * Expression to evaluate. - */ - expression: string; - /** - * Symbolic group name that can be used to release multiple objects. - */ - objectGroup?: string | undefined; - /** - * Determines whether Command Line API should be available during the evaluation. - */ - includeCommandLineAPI?: boolean | undefined; - /** - * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. - */ - silent?: boolean | undefined; - /** - * Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page. - */ - contextId?: ExecutionContextId | undefined; - /** - * Whether the result is expected to be a JSON object that should be sent by value. - */ - returnByValue?: boolean | undefined; - /** - * Whether preview should be generated for the result. - * @experimental - */ - generatePreview?: boolean | undefined; - /** - * Whether execution should be treated as initiated by user in the UI. - */ - userGesture?: boolean | undefined; - /** - * Whether execution should await for resulting value and return once awaited promise is resolved. - */ - awaitPromise?: boolean | undefined; - } - interface AwaitPromiseParameterType { - /** - * Identifier of the promise. - */ - promiseObjectId: RemoteObjectId; - /** - * Whether the result is expected to be a JSON object that should be sent by value. - */ - returnByValue?: boolean | undefined; - /** - * Whether preview should be generated for the result. - */ - generatePreview?: boolean | undefined; - } - interface CallFunctionOnParameterType { - /** - * Declaration of the function to call. - */ - functionDeclaration: string; - /** - * Identifier of the object to call function on. Either objectId or executionContextId should be specified. - */ - objectId?: RemoteObjectId | undefined; - /** - * Call arguments. All call arguments must belong to the same JavaScript world as the target object. - */ - arguments?: CallArgument[] | undefined; - /** - * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. - */ - silent?: boolean | undefined; - /** - * Whether the result is expected to be a JSON object which should be sent by value. - */ - returnByValue?: boolean | undefined; - /** - * Whether preview should be generated for the result. - * @experimental - */ - generatePreview?: boolean | undefined; - /** - * Whether execution should be treated as initiated by user in the UI. - */ - userGesture?: boolean | undefined; - /** - * Whether execution should await for resulting value and return once awaited promise is resolved. - */ - awaitPromise?: boolean | undefined; - /** - * Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified. - */ - executionContextId?: ExecutionContextId | undefined; - /** - * Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object. - */ - objectGroup?: string | undefined; - } - interface GetPropertiesParameterType { - /** - * Identifier of the object to return properties for. - */ - objectId: RemoteObjectId; - /** - * If true, returns properties belonging only to the element itself, not to its prototype chain. - */ - ownProperties?: boolean | undefined; - /** - * If true, returns accessor properties (with getter/setter) only; internal properties are not returned either. - * @experimental - */ - accessorPropertiesOnly?: boolean | undefined; - /** - * Whether preview should be generated for the results. - * @experimental - */ - generatePreview?: boolean | undefined; - } - interface ReleaseObjectParameterType { - /** - * Identifier of the object to release. - */ - objectId: RemoteObjectId; - } - interface ReleaseObjectGroupParameterType { - /** - * Symbolic object group name. - */ - objectGroup: string; - } - interface SetCustomObjectFormatterEnabledParameterType { - enabled: boolean; - } - interface CompileScriptParameterType { - /** - * Expression to compile. - */ - expression: string; - /** - * Source url to be set for the script. - */ - sourceURL: string; - /** - * Specifies whether the compiled script should be persisted. - */ - persistScript: boolean; - /** - * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page. - */ - executionContextId?: ExecutionContextId | undefined; - } - interface RunScriptParameterType { - /** - * Id of the script to run. - */ - scriptId: ScriptId; - /** - * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page. - */ - executionContextId?: ExecutionContextId | undefined; - /** - * Symbolic group name that can be used to release multiple objects. - */ - objectGroup?: string | undefined; - /** - * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. - */ - silent?: boolean | undefined; - /** - * Determines whether Command Line API should be available during the evaluation. - */ - includeCommandLineAPI?: boolean | undefined; - /** - * Whether the result is expected to be a JSON object which should be sent by value. - */ - returnByValue?: boolean | undefined; - /** - * Whether preview should be generated for the result. - */ - generatePreview?: boolean | undefined; - /** - * Whether execution should await for resulting value and return once awaited promise is resolved. - */ - awaitPromise?: boolean | undefined; - } - interface QueryObjectsParameterType { - /** - * Identifier of the prototype to return objects for. - */ - prototypeObjectId: RemoteObjectId; - } - interface GlobalLexicalScopeNamesParameterType { - /** - * Specifies in which execution context to lookup global scope variables. - */ - executionContextId?: ExecutionContextId | undefined; - } - interface EvaluateReturnType { - /** - * Evaluation result. - */ - result: RemoteObject; - /** - * Exception details. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface AwaitPromiseReturnType { - /** - * Promise result. Will contain rejected value if promise was rejected. - */ - result: RemoteObject; - /** - * Exception details if stack strace is available. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface CallFunctionOnReturnType { - /** - * Call result. - */ - result: RemoteObject; - /** - * Exception details. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface GetPropertiesReturnType { - /** - * Object properties. - */ - result: PropertyDescriptor[]; - /** - * Internal object properties (only of the element itself). - */ - internalProperties?: InternalPropertyDescriptor[] | undefined; - /** - * Exception details. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface CompileScriptReturnType { - /** - * Id of the script. - */ - scriptId?: ScriptId | undefined; - /** - * Exception details. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface RunScriptReturnType { - /** - * Run result. - */ - result: RemoteObject; - /** - * Exception details. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface QueryObjectsReturnType { - /** - * Array with objects. - */ - objects: RemoteObject; - } - interface GlobalLexicalScopeNamesReturnType { - names: string[]; - } - interface ExecutionContextCreatedEventDataType { - /** - * A newly created execution context. - */ - context: ExecutionContextDescription; - } - interface ExecutionContextDestroyedEventDataType { - /** - * Id of the destroyed context - */ - executionContextId: ExecutionContextId; - } - interface ExceptionThrownEventDataType { - /** - * Timestamp of the exception. - */ - timestamp: Timestamp; - exceptionDetails: ExceptionDetails; - } - interface ExceptionRevokedEventDataType { - /** - * Reason describing why exception was revoked. - */ - reason: string; - /** - * The id of revoked exception, as reported in exceptionThrown. - */ - exceptionId: number; - } - interface ConsoleAPICalledEventDataType { - /** - * Type of the call. - */ - type: string; - /** - * Call arguments. - */ - args: RemoteObject[]; - /** - * Identifier of the context where the call was made. - */ - executionContextId: ExecutionContextId; - /** - * Call timestamp. - */ - timestamp: Timestamp; - /** - * Stack trace captured when the call was made. - */ - stackTrace?: StackTrace | undefined; - /** - * Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context. - * @experimental - */ - context?: string | undefined; - } - interface InspectRequestedEventDataType { - object: RemoteObject; - hints: object; - } - } - namespace Debugger { - /** - * Breakpoint identifier. - */ - type BreakpointId = string; - /** - * Call frame identifier. - */ - type CallFrameId = string; - /** - * Location in the source code. - */ - interface Location { - /** - * Script identifier as reported in the Debugger.scriptParsed. - */ - scriptId: Runtime.ScriptId; - /** - * Line number in the script (0-based). - */ - lineNumber: number; - /** - * Column number in the script (0-based). - */ - columnNumber?: number | undefined; - } - /** - * Location in the source code. - * @experimental - */ - interface ScriptPosition { - lineNumber: number; - columnNumber: number; - } - /** - * JavaScript call frame. Array of call frames form the call stack. - */ - interface CallFrame { - /** - * Call frame identifier. This identifier is only valid while the virtual machine is paused. - */ - callFrameId: CallFrameId; - /** - * Name of the JavaScript function called on this call frame. - */ - functionName: string; - /** - * Location in the source code. - */ - functionLocation?: Location | undefined; - /** - * Location in the source code. - */ - location: Location; - /** - * JavaScript script name or url. - */ - url: string; - /** - * Scope chain for this call frame. - */ - scopeChain: Scope[]; - /** - * this object for this call frame. - */ - this: Runtime.RemoteObject; - /** - * The value being returned, if the function is at return point. - */ - returnValue?: Runtime.RemoteObject | undefined; - } - /** - * Scope description. - */ - interface Scope { - /** - * Scope type. - */ - type: string; - /** - * Object representing the scope. For global and with scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties. - */ - object: Runtime.RemoteObject; - name?: string | undefined; - /** - * Location in the source code where scope starts - */ - startLocation?: Location | undefined; - /** - * Location in the source code where scope ends - */ - endLocation?: Location | undefined; - } - /** - * Search match for resource. - */ - interface SearchMatch { - /** - * Line number in resource content. - */ - lineNumber: number; - /** - * Line with match content. - */ - lineContent: string; - } - interface BreakLocation { - /** - * Script identifier as reported in the Debugger.scriptParsed. - */ - scriptId: Runtime.ScriptId; - /** - * Line number in the script (0-based). - */ - lineNumber: number; - /** - * Column number in the script (0-based). - */ - columnNumber?: number | undefined; - type?: string | undefined; - } - interface SetBreakpointsActiveParameterType { - /** - * New value for breakpoints active state. - */ - active: boolean; - } - interface SetSkipAllPausesParameterType { - /** - * New value for skip pauses state. - */ - skip: boolean; - } - interface SetBreakpointByUrlParameterType { - /** - * Line number to set breakpoint at. - */ - lineNumber: number; - /** - * URL of the resources to set breakpoint on. - */ - url?: string | undefined; - /** - * Regex pattern for the URLs of the resources to set breakpoints on. Either url or urlRegex must be specified. - */ - urlRegex?: string | undefined; - /** - * Script hash of the resources to set breakpoint on. - */ - scriptHash?: string | undefined; - /** - * Offset in the line to set breakpoint at. - */ - columnNumber?: number | undefined; - /** - * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true. - */ - condition?: string | undefined; - } - interface SetBreakpointParameterType { - /** - * Location to set breakpoint in. - */ - location: Location; - /** - * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true. - */ - condition?: string | undefined; - } - interface RemoveBreakpointParameterType { - breakpointId: BreakpointId; - } - interface GetPossibleBreakpointsParameterType { - /** - * Start of range to search possible breakpoint locations in. - */ - start: Location; - /** - * End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range. - */ - end?: Location | undefined; - /** - * Only consider locations which are in the same (non-nested) function as start. - */ - restrictToFunction?: boolean | undefined; - } - interface ContinueToLocationParameterType { - /** - * Location to continue to. - */ - location: Location; - targetCallFrames?: string | undefined; - } - interface PauseOnAsyncCallParameterType { - /** - * Debugger will pause when async call with given stack trace is started. - */ - parentStackTraceId: Runtime.StackTraceId; - } - interface StepIntoParameterType { - /** - * Debugger will issue additional Debugger.paused notification if any async task is scheduled before next pause. - * @experimental - */ - breakOnAsyncCall?: boolean | undefined; - } - interface GetStackTraceParameterType { - stackTraceId: Runtime.StackTraceId; - } - interface SearchInContentParameterType { - /** - * Id of the script to search in. - */ - scriptId: Runtime.ScriptId; - /** - * String to search for. - */ - query: string; - /** - * If true, search is case sensitive. - */ - caseSensitive?: boolean | undefined; - /** - * If true, treats string parameter as regex. - */ - isRegex?: boolean | undefined; - } - interface SetScriptSourceParameterType { - /** - * Id of the script to edit. - */ - scriptId: Runtime.ScriptId; - /** - * New content of the script. - */ - scriptSource: string; - /** - * If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code. - */ - dryRun?: boolean | undefined; - } - interface RestartFrameParameterType { - /** - * Call frame identifier to evaluate on. - */ - callFrameId: CallFrameId; - } - interface GetScriptSourceParameterType { - /** - * Id of the script to get source for. - */ - scriptId: Runtime.ScriptId; - } - interface SetPauseOnExceptionsParameterType { - /** - * Pause on exceptions mode. - */ - state: string; - } - interface EvaluateOnCallFrameParameterType { - /** - * Call frame identifier to evaluate on. - */ - callFrameId: CallFrameId; - /** - * Expression to evaluate. - */ - expression: string; - /** - * String object group name to put result into (allows rapid releasing resulting object handles using releaseObjectGroup). - */ - objectGroup?: string | undefined; - /** - * Specifies whether command line API should be available to the evaluated expression, defaults to false. - */ - includeCommandLineAPI?: boolean | undefined; - /** - * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. - */ - silent?: boolean | undefined; - /** - * Whether the result is expected to be a JSON object that should be sent by value. - */ - returnByValue?: boolean | undefined; - /** - * Whether preview should be generated for the result. - * @experimental - */ - generatePreview?: boolean | undefined; - /** - * Whether to throw an exception if side effect cannot be ruled out during evaluation. - */ - throwOnSideEffect?: boolean | undefined; - } - interface SetVariableValueParameterType { - /** - * 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually. - */ - scopeNumber: number; - /** - * Variable name. - */ - variableName: string; - /** - * New variable value. - */ - newValue: Runtime.CallArgument; - /** - * Id of callframe that holds variable. - */ - callFrameId: CallFrameId; - } - interface SetReturnValueParameterType { - /** - * New return value. - */ - newValue: Runtime.CallArgument; - } - interface SetAsyncCallStackDepthParameterType { - /** - * Maximum depth of async call stacks. Setting to 0 will effectively disable collecting async call stacks (default). - */ - maxDepth: number; - } - interface SetBlackboxPatternsParameterType { - /** - * Array of regexps that will be used to check script url for blackbox state. - */ - patterns: string[]; - } - interface SetBlackboxedRangesParameterType { - /** - * Id of the script. - */ - scriptId: Runtime.ScriptId; - positions: ScriptPosition[]; - } - interface EnableReturnType { - /** - * Unique identifier of the debugger. - * @experimental - */ - debuggerId: Runtime.UniqueDebuggerId; - } - interface SetBreakpointByUrlReturnType { - /** - * Id of the created breakpoint for further reference. - */ - breakpointId: BreakpointId; - /** - * List of the locations this breakpoint resolved into upon addition. - */ - locations: Location[]; - } - interface SetBreakpointReturnType { - /** - * Id of the created breakpoint for further reference. - */ - breakpointId: BreakpointId; - /** - * Location this breakpoint resolved into. - */ - actualLocation: Location; - } - interface GetPossibleBreakpointsReturnType { - /** - * List of the possible breakpoint locations. - */ - locations: BreakLocation[]; - } - interface GetStackTraceReturnType { - stackTrace: Runtime.StackTrace; - } - interface SearchInContentReturnType { - /** - * List of search matches. - */ - result: SearchMatch[]; - } - interface SetScriptSourceReturnType { - /** - * New stack trace in case editing has happened while VM was stopped. - */ - callFrames?: CallFrame[] | undefined; - /** - * Whether current call stack was modified after applying the changes. - */ - stackChanged?: boolean | undefined; - /** - * Async stack trace, if any. - */ - asyncStackTrace?: Runtime.StackTrace | undefined; - /** - * Async stack trace, if any. - * @experimental - */ - asyncStackTraceId?: Runtime.StackTraceId | undefined; - /** - * Exception details if any. - */ - exceptionDetails?: Runtime.ExceptionDetails | undefined; - } - interface RestartFrameReturnType { - /** - * New stack trace. - */ - callFrames: CallFrame[]; - /** - * Async stack trace, if any. - */ - asyncStackTrace?: Runtime.StackTrace | undefined; - /** - * Async stack trace, if any. - * @experimental - */ - asyncStackTraceId?: Runtime.StackTraceId | undefined; - } - interface GetScriptSourceReturnType { - /** - * Script source. - */ - scriptSource: string; - } - interface EvaluateOnCallFrameReturnType { - /** - * Object wrapper for the evaluation result. - */ - result: Runtime.RemoteObject; - /** - * Exception details. - */ - exceptionDetails?: Runtime.ExceptionDetails | undefined; - } - interface ScriptParsedEventDataType { - /** - * Identifier of the script parsed. - */ - scriptId: Runtime.ScriptId; - /** - * URL or name of the script parsed (if any). - */ - url: string; - /** - * Line offset of the script within the resource with given URL (for script tags). - */ - startLine: number; - /** - * Column offset of the script within the resource with given URL. - */ - startColumn: number; - /** - * Last line of the script. - */ - endLine: number; - /** - * Length of the last line of the script. - */ - endColumn: number; - /** - * Specifies script creation context. - */ - executionContextId: Runtime.ExecutionContextId; - /** - * Content hash of the script. - */ - hash: string; - /** - * Embedder-specific auxiliary data. - */ - executionContextAuxData?: object | undefined; - /** - * True, if this script is generated as a result of the live edit operation. - * @experimental - */ - isLiveEdit?: boolean | undefined; - /** - * URL of source map associated with script (if any). - */ - sourceMapURL?: string | undefined; - /** - * True, if this script has sourceURL. - */ - hasSourceURL?: boolean | undefined; - /** - * True, if this script is ES6 module. - */ - isModule?: boolean | undefined; - /** - * This script length. - */ - length?: number | undefined; - /** - * JavaScript top stack frame of where the script parsed event was triggered if available. - * @experimental - */ - stackTrace?: Runtime.StackTrace | undefined; - } - interface ScriptFailedToParseEventDataType { - /** - * Identifier of the script parsed. - */ - scriptId: Runtime.ScriptId; - /** - * URL or name of the script parsed (if any). - */ - url: string; - /** - * Line offset of the script within the resource with given URL (for script tags). - */ - startLine: number; - /** - * Column offset of the script within the resource with given URL. - */ - startColumn: number; - /** - * Last line of the script. - */ - endLine: number; - /** - * Length of the last line of the script. - */ - endColumn: number; - /** - * Specifies script creation context. - */ - executionContextId: Runtime.ExecutionContextId; - /** - * Content hash of the script. - */ - hash: string; - /** - * Embedder-specific auxiliary data. - */ - executionContextAuxData?: object | undefined; - /** - * URL of source map associated with script (if any). - */ - sourceMapURL?: string | undefined; - /** - * True, if this script has sourceURL. - */ - hasSourceURL?: boolean | undefined; - /** - * True, if this script is ES6 module. - */ - isModule?: boolean | undefined; - /** - * This script length. - */ - length?: number | undefined; - /** - * JavaScript top stack frame of where the script parsed event was triggered if available. - * @experimental - */ - stackTrace?: Runtime.StackTrace | undefined; - } - interface BreakpointResolvedEventDataType { - /** - * Breakpoint unique identifier. - */ - breakpointId: BreakpointId; - /** - * Actual breakpoint location. - */ - location: Location; - } - interface PausedEventDataType { - /** - * Call stack the virtual machine stopped on. - */ - callFrames: CallFrame[]; - /** - * Pause reason. - */ - reason: string; - /** - * Object containing break-specific auxiliary properties. - */ - data?: object | undefined; - /** - * Hit breakpoints IDs - */ - hitBreakpoints?: string[] | undefined; - /** - * Async stack trace, if any. - */ - asyncStackTrace?: Runtime.StackTrace | undefined; - /** - * Async stack trace, if any. - * @experimental - */ - asyncStackTraceId?: Runtime.StackTraceId | undefined; - /** - * Just scheduled async call will have this stack trace as parent stack during async execution. This field is available only after Debugger.stepInto call with breakOnAsynCall flag. - * @experimental - */ - asyncCallStackTraceId?: Runtime.StackTraceId | undefined; - } - } - namespace Console { - /** - * Console message. - */ - interface ConsoleMessage { - /** - * Message source. - */ - source: string; - /** - * Message severity. - */ - level: string; - /** - * Message text. - */ - text: string; - /** - * URL of the message origin. - */ - url?: string | undefined; - /** - * Line number in the resource that generated this message (1-based). - */ - line?: number | undefined; - /** - * Column number in the resource that generated this message (1-based). - */ - column?: number | undefined; - } - interface MessageAddedEventDataType { - /** - * Console message that has been added. - */ - message: ConsoleMessage; - } - } - namespace Profiler { - /** - * Profile node. Holds callsite information, execution statistics and child nodes. - */ - interface ProfileNode { - /** - * Unique id of the node. - */ - id: number; - /** - * Function location. - */ - callFrame: Runtime.CallFrame; - /** - * Number of samples where this node was on top of the call stack. - */ - hitCount?: number | undefined; - /** - * Child node ids. - */ - children?: number[] | undefined; - /** - * The reason of being not optimized. The function may be deoptimized or marked as don't optimize. - */ - deoptReason?: string | undefined; - /** - * An array of source position ticks. - */ - positionTicks?: PositionTickInfo[] | undefined; - } - /** - * Profile. - */ - interface Profile { - /** - * The list of profile nodes. First item is the root node. - */ - nodes: ProfileNode[]; - /** - * Profiling start timestamp in microseconds. - */ - startTime: number; - /** - * Profiling end timestamp in microseconds. - */ - endTime: number; - /** - * Ids of samples top nodes. - */ - samples?: number[] | undefined; - /** - * Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime. - */ - timeDeltas?: number[] | undefined; - } - /** - * Specifies a number of samples attributed to a certain source position. - */ - interface PositionTickInfo { - /** - * Source line number (1-based). - */ - line: number; - /** - * Number of samples attributed to the source line. - */ - ticks: number; - } - /** - * Coverage data for a source range. - */ - interface CoverageRange { - /** - * JavaScript script source offset for the range start. - */ - startOffset: number; - /** - * JavaScript script source offset for the range end. - */ - endOffset: number; - /** - * Collected execution count of the source range. - */ - count: number; - } - /** - * Coverage data for a JavaScript function. - */ - interface FunctionCoverage { - /** - * JavaScript function name. - */ - functionName: string; - /** - * Source ranges inside the function with coverage data. - */ - ranges: CoverageRange[]; - /** - * Whether coverage data for this function has block granularity. - */ - isBlockCoverage: boolean; - } - /** - * Coverage data for a JavaScript script. - */ - interface ScriptCoverage { - /** - * JavaScript script id. - */ - scriptId: Runtime.ScriptId; - /** - * JavaScript script name or url. - */ - url: string; - /** - * Functions contained in the script that has coverage data. - */ - functions: FunctionCoverage[]; - } - interface SetSamplingIntervalParameterType { - /** - * New sampling interval in microseconds. - */ - interval: number; - } - interface StartPreciseCoverageParameterType { - /** - * Collect accurate call counts beyond simple 'covered' or 'not covered'. - */ - callCount?: boolean | undefined; - /** - * Collect block-based coverage. - */ - detailed?: boolean | undefined; - } - interface StopReturnType { - /** - * Recorded profile. - */ - profile: Profile; - } - interface TakePreciseCoverageReturnType { - /** - * Coverage data for the current isolate. - */ - result: ScriptCoverage[]; - } - interface GetBestEffortCoverageReturnType { - /** - * Coverage data for the current isolate. - */ - result: ScriptCoverage[]; - } - interface ConsoleProfileStartedEventDataType { - id: string; - /** - * Location of console.profile(). - */ - location: Debugger.Location; - /** - * Profile title passed as an argument to console.profile(). - */ - title?: string | undefined; - } - interface ConsoleProfileFinishedEventDataType { - id: string; - /** - * Location of console.profileEnd(). - */ - location: Debugger.Location; - profile: Profile; - /** - * Profile title passed as an argument to console.profile(). - */ - title?: string | undefined; - } - } - namespace HeapProfiler { - /** - * Heap snapshot object id. - */ - type HeapSnapshotObjectId = string; - /** - * Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes. - */ - interface SamplingHeapProfileNode { - /** - * Function location. - */ - callFrame: Runtime.CallFrame; - /** - * Allocations size in bytes for the node excluding children. - */ - selfSize: number; - /** - * Child nodes. - */ - children: SamplingHeapProfileNode[]; - } - /** - * Profile. - */ - interface SamplingHeapProfile { - head: SamplingHeapProfileNode; - } - interface StartTrackingHeapObjectsParameterType { - trackAllocations?: boolean | undefined; - } - interface StopTrackingHeapObjectsParameterType { - /** - * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped. - */ - reportProgress?: boolean | undefined; - } - interface TakeHeapSnapshotParameterType { - /** - * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken. - */ - reportProgress?: boolean | undefined; - } - interface GetObjectByHeapObjectIdParameterType { - objectId: HeapSnapshotObjectId; - /** - * Symbolic group name that can be used to release multiple objects. - */ - objectGroup?: string | undefined; - } - interface AddInspectedHeapObjectParameterType { - /** - * Heap snapshot object id to be accessible by means of $x command line API. - */ - heapObjectId: HeapSnapshotObjectId; - } - interface GetHeapObjectIdParameterType { - /** - * Identifier of the object to get heap object id for. - */ - objectId: Runtime.RemoteObjectId; - } - interface StartSamplingParameterType { - /** - * Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes. - */ - samplingInterval?: number | undefined; - } - interface GetObjectByHeapObjectIdReturnType { - /** - * Evaluation result. - */ - result: Runtime.RemoteObject; - } - interface GetHeapObjectIdReturnType { - /** - * Id of the heap snapshot object corresponding to the passed remote object id. - */ - heapSnapshotObjectId: HeapSnapshotObjectId; - } - interface StopSamplingReturnType { - /** - * Recorded sampling heap profile. - */ - profile: SamplingHeapProfile; - } - interface GetSamplingProfileReturnType { - /** - * Return the sampling profile being collected. - */ - profile: SamplingHeapProfile; - } - interface AddHeapSnapshotChunkEventDataType { - chunk: string; - } - interface ReportHeapSnapshotProgressEventDataType { - done: number; - total: number; - finished?: boolean | undefined; - } - interface LastSeenObjectIdEventDataType { - lastSeenObjectId: number; - timestamp: number; - } - interface HeapStatsUpdateEventDataType { - /** - * An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment. - */ - statsUpdate: number[]; - } - } - namespace NodeTracing { - interface TraceConfig { - /** - * Controls how the trace buffer stores data. - */ - recordMode?: string | undefined; - /** - * Included category filters. - */ - includedCategories: string[]; - } - interface StartParameterType { - traceConfig: TraceConfig; - } - interface GetCategoriesReturnType { - /** - * A list of supported tracing categories. - */ - categories: string[]; - } - interface DataCollectedEventDataType { - value: object[]; - } - } - namespace NodeWorker { - type WorkerID = string; - /** - * Unique identifier of attached debugging session. - */ - type SessionID = string; - interface WorkerInfo { - workerId: WorkerID; - type: string; - title: string; - url: string; - } - interface SendMessageToWorkerParameterType { - message: string; - /** - * Identifier of the session. - */ - sessionId: SessionID; - } - interface EnableParameterType { - /** - * Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger` - * message to run them. - */ - waitForDebuggerOnStart: boolean; - } - interface DetachParameterType { - sessionId: SessionID; - } - interface AttachedToWorkerEventDataType { - /** - * Identifier assigned to the session used to send/receive messages. - */ - sessionId: SessionID; - workerInfo: WorkerInfo; - waitingForDebugger: boolean; - } - interface DetachedFromWorkerEventDataType { - /** - * Detached session identifier. - */ - sessionId: SessionID; - } - interface ReceivedMessageFromWorkerEventDataType { - /** - * Identifier of a session which sends a message. - */ - sessionId: SessionID; - message: string; - } - } - namespace Network { - /** - * Resource type as it was perceived by the rendering engine. - */ - type ResourceType = string; - /** - * Unique request identifier. - */ - type RequestId = string; - /** - * UTC time in seconds, counted from January 1, 1970. - */ - type TimeSinceEpoch = number; - /** - * Monotonically increasing time in seconds since an arbitrary point in the past. - */ - type MonotonicTime = number; - /** - * Information about the request initiator. - */ - interface Initiator { - /** - * Type of this initiator. - */ - type: string; - /** - * Initiator JavaScript stack trace, set for Script only. - * Requires the Debugger domain to be enabled. - */ - stack?: Runtime.StackTrace | undefined; - /** - * Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type. - */ - url?: string | undefined; - /** - * Initiator line number, set for Parser type or for Script type (when script is importing - * module) (0-based). - */ - lineNumber?: number | undefined; - /** - * Initiator column number, set for Parser type or for Script type (when script is importing - * module) (0-based). - */ - columnNumber?: number | undefined; - /** - * Set if another request triggered this request (e.g. preflight). - */ - requestId?: RequestId | undefined; - } - /** - * HTTP request data. - */ - interface Request { - url: string; - method: string; - headers: Headers; - hasPostData: boolean; - } - /** - * HTTP response data. - */ - interface Response { - url: string; - status: number; - statusText: string; - headers: Headers; - mimeType: string; - charset: string; - } - /** - * Request / response headers as keys / values of JSON object. - */ - interface Headers { - } - interface LoadNetworkResourcePageResult { - success: boolean; - stream?: IO.StreamHandle | undefined; - } - /** - * WebSocket response data. - */ - interface WebSocketResponse { - /** - * HTTP response status code. - */ - status: number; - /** - * HTTP response status text. - */ - statusText: string; - /** - * HTTP response headers. - */ - headers: Headers; - } - interface GetRequestPostDataParameterType { - /** - * Identifier of the network request to get content for. - */ - requestId: RequestId; - } - interface GetResponseBodyParameterType { - /** - * Identifier of the network request to get content for. - */ - requestId: RequestId; - } - interface StreamResourceContentParameterType { - /** - * Identifier of the request to stream. - */ - requestId: RequestId; - } - interface LoadNetworkResourceParameterType { - /** - * URL of the resource to get content for. - */ - url: string; - } - interface GetRequestPostDataReturnType { - /** - * Request body string, omitting files from multipart requests - */ - postData: string; - } - interface GetResponseBodyReturnType { - /** - * Response body. - */ - body: string; - /** - * True, if content was sent as base64. - */ - base64Encoded: boolean; - } - interface StreamResourceContentReturnType { - /** - * Data that has been buffered until streaming is enabled. - */ - bufferedData: string; - } - interface LoadNetworkResourceReturnType { - resource: LoadNetworkResourcePageResult; - } - interface RequestWillBeSentEventDataType { - /** - * Request identifier. - */ - requestId: RequestId; - /** - * Request data. - */ - request: Request; - /** - * Request initiator. - */ - initiator: Initiator; - /** - * Timestamp. - */ - timestamp: MonotonicTime; - /** - * Timestamp. - */ - wallTime: TimeSinceEpoch; - } - interface ResponseReceivedEventDataType { - /** - * Request identifier. - */ - requestId: RequestId; - /** - * Timestamp. - */ - timestamp: MonotonicTime; - /** - * Resource type. - */ - type: ResourceType; - /** - * Response data. - */ - response: Response; - } - interface LoadingFailedEventDataType { - /** - * Request identifier. - */ - requestId: RequestId; - /** - * Timestamp. - */ - timestamp: MonotonicTime; - /** - * Resource type. - */ - type: ResourceType; - /** - * Error message. - */ - errorText: string; - } - interface LoadingFinishedEventDataType { - /** - * Request identifier. - */ - requestId: RequestId; - /** - * Timestamp. - */ - timestamp: MonotonicTime; - } - interface DataReceivedEventDataType { - /** - * Request identifier. - */ - requestId: RequestId; - /** - * Timestamp. - */ - timestamp: MonotonicTime; - /** - * Data chunk length. - */ - dataLength: number; - /** - * Actual bytes received (might be less than dataLength for compressed encodings). - */ - encodedDataLength: number; - /** - * Data that was received. - * @experimental - */ - data?: string | undefined; - } - interface WebSocketCreatedEventDataType { - /** - * Request identifier. - */ - requestId: RequestId; - /** - * WebSocket request URL. - */ - url: string; - /** - * Request initiator. - */ - initiator: Initiator; - } - interface WebSocketClosedEventDataType { - /** - * Request identifier. - */ - requestId: RequestId; - /** - * Timestamp. - */ - timestamp: MonotonicTime; - } - interface WebSocketHandshakeResponseReceivedEventDataType { - /** - * Request identifier. - */ - requestId: RequestId; - /** - * Timestamp. - */ - timestamp: MonotonicTime; - /** - * WebSocket response data. - */ - response: WebSocketResponse; - } - } - namespace NodeRuntime { - interface NotifyWhenWaitingForDisconnectParameterType { - enabled: boolean; - } - } - namespace Target { - type SessionID = string; - type TargetID = string; - interface TargetInfo { - targetId: TargetID; - type: string; - title: string; - url: string; - attached: boolean; - canAccessOpener: boolean; - } - interface SetAutoAttachParameterType { - autoAttach: boolean; - waitForDebuggerOnStart: boolean; - } - interface TargetCreatedEventDataType { - targetInfo: TargetInfo; - } - interface AttachedToTargetEventDataType { - sessionId: SessionID; - targetInfo: TargetInfo; - waitingForDebugger: boolean; - } - } - namespace IO { - type StreamHandle = string; - interface ReadParameterType { - /** - * Handle of the stream to read. - */ - handle: StreamHandle; - /** - * Seek to the specified offset before reading (if not specified, proceed with offset - * following the last read). Some types of streams may only support sequential reads. - */ - offset?: number | undefined; - /** - * Maximum number of bytes to read (left upon the agent discretion if not specified). - */ - size?: number | undefined; - } - interface CloseParameterType { - /** - * Handle of the stream to close. - */ - handle: StreamHandle; - } - interface ReadReturnType { - /** - * Data that were read. - */ - data: string; - /** - * Set if the end-of-file condition occurred while reading. - */ - eof: boolean; - } - } - - interface Session { - /** - * Posts a message to the inspector back-end. `callback` will be notified when - * a response is received. `callback` is a function that accepts two optional - * arguments: error and message-specific result. - * - * ```js - * session.post('Runtime.evaluate', { expression: '2 + 2' }, - * (error, { result }) => console.log(result)); - * // Output: { type: 'number', value: 4, description: '4' } - * ``` - * - * The latest version of the V8 inspector protocol is published on the - * [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/v8/). - * - * Node.js inspector supports all the Chrome DevTools Protocol domains declared - * by V8. Chrome DevTools Protocol domain provides an interface for interacting - * with one of the runtime agents used to inspect the application state and listen - * to the run-time events. - */ - post(method: string, callback?: (err: Error | null, params?: object) => void): void; - post(method: string, params?: object, callback?: (err: Error | null, params?: object) => void): void; - /** - * Returns supported domains. - */ - post(method: "Schema.getDomains", callback?: (err: Error | null, params: Schema.GetDomainsReturnType) => void): void; - /** - * Evaluates expression on global object. - */ - post(method: "Runtime.evaluate", params?: Runtime.EvaluateParameterType, callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void; - post(method: "Runtime.evaluate", callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void; - /** - * Add handler to promise with given promise object id. - */ - post(method: "Runtime.awaitPromise", params?: Runtime.AwaitPromiseParameterType, callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void; - post(method: "Runtime.awaitPromise", callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void; - /** - * Calls function with given declaration on the given object. Object group of the result is inherited from the target object. - */ - post(method: "Runtime.callFunctionOn", params?: Runtime.CallFunctionOnParameterType, callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void; - post(method: "Runtime.callFunctionOn", callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void; - /** - * Returns properties of a given object. Object group of the result is inherited from the target object. - */ - post(method: "Runtime.getProperties", params?: Runtime.GetPropertiesParameterType, callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void; - post(method: "Runtime.getProperties", callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void; - /** - * Releases remote object with given id. - */ - post(method: "Runtime.releaseObject", params?: Runtime.ReleaseObjectParameterType, callback?: (err: Error | null) => void): void; - post(method: "Runtime.releaseObject", callback?: (err: Error | null) => void): void; - /** - * Releases all remote objects that belong to a given group. - */ - post(method: "Runtime.releaseObjectGroup", params?: Runtime.ReleaseObjectGroupParameterType, callback?: (err: Error | null) => void): void; - post(method: "Runtime.releaseObjectGroup", callback?: (err: Error | null) => void): void; - /** - * Tells inspected instance to run if it was waiting for debugger to attach. - */ - post(method: "Runtime.runIfWaitingForDebugger", callback?: (err: Error | null) => void): void; - /** - * Enables reporting of execution contexts creation by means of executionContextCreated event. When the reporting gets enabled the event will be sent immediately for each existing execution context. - */ - post(method: "Runtime.enable", callback?: (err: Error | null) => void): void; - /** - * Disables reporting of execution contexts creation. - */ - post(method: "Runtime.disable", callback?: (err: Error | null) => void): void; - /** - * Discards collected exceptions and console API calls. - */ - post(method: "Runtime.discardConsoleEntries", callback?: (err: Error | null) => void): void; - /** - * @experimental - */ - post(method: "Runtime.setCustomObjectFormatterEnabled", params?: Runtime.SetCustomObjectFormatterEnabledParameterType, callback?: (err: Error | null) => void): void; - post(method: "Runtime.setCustomObjectFormatterEnabled", callback?: (err: Error | null) => void): void; - /** - * Compiles expression. - */ - post(method: "Runtime.compileScript", params?: Runtime.CompileScriptParameterType, callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void; - post(method: "Runtime.compileScript", callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void; - /** - * Runs script with given id in a given context. - */ - post(method: "Runtime.runScript", params?: Runtime.RunScriptParameterType, callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void; - post(method: "Runtime.runScript", callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void; - post(method: "Runtime.queryObjects", params?: Runtime.QueryObjectsParameterType, callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void; - post(method: "Runtime.queryObjects", callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void; - /** - * Returns all let, const and class variables from global scope. - */ - post( - method: "Runtime.globalLexicalScopeNames", - params?: Runtime.GlobalLexicalScopeNamesParameterType, - callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void - ): void; - post(method: "Runtime.globalLexicalScopeNames", callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void): void; - /** - * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received. - */ - post(method: "Debugger.enable", callback?: (err: Error | null, params: Debugger.EnableReturnType) => void): void; - /** - * Disables debugger for given page. - */ - post(method: "Debugger.disable", callback?: (err: Error | null) => void): void; - /** - * Activates / deactivates all breakpoints on the page. - */ - post(method: "Debugger.setBreakpointsActive", params?: Debugger.SetBreakpointsActiveParameterType, callback?: (err: Error | null) => void): void; - post(method: "Debugger.setBreakpointsActive", callback?: (err: Error | null) => void): void; - /** - * Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc). - */ - post(method: "Debugger.setSkipAllPauses", params?: Debugger.SetSkipAllPausesParameterType, callback?: (err: Error | null) => void): void; - post(method: "Debugger.setSkipAllPauses", callback?: (err: Error | null) => void): void; - /** - * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations property. Further matching script parsing will result in subsequent breakpointResolved events issued. This logical breakpoint will survive page reloads. - */ - post(method: "Debugger.setBreakpointByUrl", params?: Debugger.SetBreakpointByUrlParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void; - post(method: "Debugger.setBreakpointByUrl", callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void; - /** - * Sets JavaScript breakpoint at a given location. - */ - post(method: "Debugger.setBreakpoint", params?: Debugger.SetBreakpointParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void; - post(method: "Debugger.setBreakpoint", callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void; - /** - * Removes JavaScript breakpoint. - */ - post(method: "Debugger.removeBreakpoint", params?: Debugger.RemoveBreakpointParameterType, callback?: (err: Error | null) => void): void; - post(method: "Debugger.removeBreakpoint", callback?: (err: Error | null) => void): void; - /** - * Returns possible locations for breakpoint. scriptId in start and end range locations should be the same. - */ - post( - method: "Debugger.getPossibleBreakpoints", - params?: Debugger.GetPossibleBreakpointsParameterType, - callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void - ): void; - post(method: "Debugger.getPossibleBreakpoints", callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void): void; - /** - * Continues execution until specific location is reached. - */ - post(method: "Debugger.continueToLocation", params?: Debugger.ContinueToLocationParameterType, callback?: (err: Error | null) => void): void; - post(method: "Debugger.continueToLocation", callback?: (err: Error | null) => void): void; - /** - * @experimental - */ - post(method: "Debugger.pauseOnAsyncCall", params?: Debugger.PauseOnAsyncCallParameterType, callback?: (err: Error | null) => void): void; - post(method: "Debugger.pauseOnAsyncCall", callback?: (err: Error | null) => void): void; - /** - * Steps over the statement. - */ - post(method: "Debugger.stepOver", callback?: (err: Error | null) => void): void; - /** - * Steps into the function call. - */ - post(method: "Debugger.stepInto", params?: Debugger.StepIntoParameterType, callback?: (err: Error | null) => void): void; - post(method: "Debugger.stepInto", callback?: (err: Error | null) => void): void; - /** - * Steps out of the function call. - */ - post(method: "Debugger.stepOut", callback?: (err: Error | null) => void): void; - /** - * Stops on the next JavaScript statement. - */ - post(method: "Debugger.pause", callback?: (err: Error | null) => void): void; - /** - * This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called. - * @experimental - */ - post(method: "Debugger.scheduleStepIntoAsync", callback?: (err: Error | null) => void): void; - /** - * Resumes JavaScript execution. - */ - post(method: "Debugger.resume", callback?: (err: Error | null) => void): void; - /** - * Returns stack trace with given stackTraceId. - * @experimental - */ - post(method: "Debugger.getStackTrace", params?: Debugger.GetStackTraceParameterType, callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void; - post(method: "Debugger.getStackTrace", callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void; - /** - * Searches for given string in script content. - */ - post(method: "Debugger.searchInContent", params?: Debugger.SearchInContentParameterType, callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void; - post(method: "Debugger.searchInContent", callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void; - /** - * Edits JavaScript source live. - */ - post(method: "Debugger.setScriptSource", params?: Debugger.SetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void; - post(method: "Debugger.setScriptSource", callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void; - /** - * Restarts particular call frame from the beginning. - */ - post(method: "Debugger.restartFrame", params?: Debugger.RestartFrameParameterType, callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void; - post(method: "Debugger.restartFrame", callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void; - /** - * Returns source for the script with given id. - */ - post(method: "Debugger.getScriptSource", params?: Debugger.GetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void; - post(method: "Debugger.getScriptSource", callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void; - /** - * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is none. - */ - post(method: "Debugger.setPauseOnExceptions", params?: Debugger.SetPauseOnExceptionsParameterType, callback?: (err: Error | null) => void): void; - post(method: "Debugger.setPauseOnExceptions", callback?: (err: Error | null) => void): void; - /** - * Evaluates expression on a given call frame. - */ - post(method: "Debugger.evaluateOnCallFrame", params?: Debugger.EvaluateOnCallFrameParameterType, callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void; - post(method: "Debugger.evaluateOnCallFrame", callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void; - /** - * Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually. - */ - post(method: "Debugger.setVariableValue", params?: Debugger.SetVariableValueParameterType, callback?: (err: Error | null) => void): void; - post(method: "Debugger.setVariableValue", callback?: (err: Error | null) => void): void; - /** - * Changes return value in top frame. Available only at return break position. - * @experimental - */ - post(method: "Debugger.setReturnValue", params?: Debugger.SetReturnValueParameterType, callback?: (err: Error | null) => void): void; - post(method: "Debugger.setReturnValue", callback?: (err: Error | null) => void): void; - /** - * Enables or disables async call stacks tracking. - */ - post(method: "Debugger.setAsyncCallStackDepth", params?: Debugger.SetAsyncCallStackDepthParameterType, callback?: (err: Error | null) => void): void; - post(method: "Debugger.setAsyncCallStackDepth", callback?: (err: Error | null) => void): void; - /** - * Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. - * @experimental - */ - post(method: "Debugger.setBlackboxPatterns", params?: Debugger.SetBlackboxPatternsParameterType, callback?: (err: Error | null) => void): void; - post(method: "Debugger.setBlackboxPatterns", callback?: (err: Error | null) => void): void; - /** - * Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted. - * @experimental - */ - post(method: "Debugger.setBlackboxedRanges", params?: Debugger.SetBlackboxedRangesParameterType, callback?: (err: Error | null) => void): void; - post(method: "Debugger.setBlackboxedRanges", callback?: (err: Error | null) => void): void; - /** - * Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification. - */ - post(method: "Console.enable", callback?: (err: Error | null) => void): void; - /** - * Disables console domain, prevents further console messages from being reported to the client. - */ - post(method: "Console.disable", callback?: (err: Error | null) => void): void; - /** - * Does nothing. - */ - post(method: "Console.clearMessages", callback?: (err: Error | null) => void): void; - post(method: "Profiler.enable", callback?: (err: Error | null) => void): void; - post(method: "Profiler.disable", callback?: (err: Error | null) => void): void; - /** - * Changes CPU profiler sampling interval. Must be called before CPU profiles recording started. - */ - post(method: "Profiler.setSamplingInterval", params?: Profiler.SetSamplingIntervalParameterType, callback?: (err: Error | null) => void): void; - post(method: "Profiler.setSamplingInterval", callback?: (err: Error | null) => void): void; - post(method: "Profiler.start", callback?: (err: Error | null) => void): void; - post(method: "Profiler.stop", callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void; - /** - * Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters. - */ - post(method: "Profiler.startPreciseCoverage", params?: Profiler.StartPreciseCoverageParameterType, callback?: (err: Error | null) => void): void; - post(method: "Profiler.startPreciseCoverage", callback?: (err: Error | null) => void): void; - /** - * Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code. - */ - post(method: "Profiler.stopPreciseCoverage", callback?: (err: Error | null) => void): void; - /** - * Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started. - */ - post(method: "Profiler.takePreciseCoverage", callback?: (err: Error | null, params: Profiler.TakePreciseCoverageReturnType) => void): void; - /** - * Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection. - */ - post(method: "Profiler.getBestEffortCoverage", callback?: (err: Error | null, params: Profiler.GetBestEffortCoverageReturnType) => void): void; - post(method: "HeapProfiler.enable", callback?: (err: Error | null) => void): void; - post(method: "HeapProfiler.disable", callback?: (err: Error | null) => void): void; - post(method: "HeapProfiler.startTrackingHeapObjects", params?: HeapProfiler.StartTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void; - post(method: "HeapProfiler.startTrackingHeapObjects", callback?: (err: Error | null) => void): void; - post(method: "HeapProfiler.stopTrackingHeapObjects", params?: HeapProfiler.StopTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void; - post(method: "HeapProfiler.stopTrackingHeapObjects", callback?: (err: Error | null) => void): void; - post(method: "HeapProfiler.takeHeapSnapshot", params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void; - post(method: "HeapProfiler.takeHeapSnapshot", callback?: (err: Error | null) => void): void; - post(method: "HeapProfiler.collectGarbage", callback?: (err: Error | null) => void): void; - post( - method: "HeapProfiler.getObjectByHeapObjectId", - params?: HeapProfiler.GetObjectByHeapObjectIdParameterType, - callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void - ): void; - post(method: "HeapProfiler.getObjectByHeapObjectId", callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void): void; - /** - * Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions). - */ - post(method: "HeapProfiler.addInspectedHeapObject", params?: HeapProfiler.AddInspectedHeapObjectParameterType, callback?: (err: Error | null) => void): void; - post(method: "HeapProfiler.addInspectedHeapObject", callback?: (err: Error | null) => void): void; - post(method: "HeapProfiler.getHeapObjectId", params?: HeapProfiler.GetHeapObjectIdParameterType, callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void; - post(method: "HeapProfiler.getHeapObjectId", callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void; - post(method: "HeapProfiler.startSampling", params?: HeapProfiler.StartSamplingParameterType, callback?: (err: Error | null) => void): void; - post(method: "HeapProfiler.startSampling", callback?: (err: Error | null) => void): void; - post(method: "HeapProfiler.stopSampling", callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void; - post(method: "HeapProfiler.getSamplingProfile", callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void; - /** - * Gets supported tracing categories. - */ - post(method: "NodeTracing.getCategories", callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void; - /** - * Start trace events collection. - */ - post(method: "NodeTracing.start", params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void; - post(method: "NodeTracing.start", callback?: (err: Error | null) => void): void; - /** - * Stop trace events collection. Remaining collected events will be sent as a sequence of - * dataCollected events followed by tracingComplete event. - */ - post(method: "NodeTracing.stop", callback?: (err: Error | null) => void): void; - /** - * Sends protocol message over session with given id. - */ - post(method: "NodeWorker.sendMessageToWorker", params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void; - post(method: "NodeWorker.sendMessageToWorker", callback?: (err: Error | null) => void): void; - /** - * Instructs the inspector to attach to running workers. Will also attach to new workers - * as they start - */ - post(method: "NodeWorker.enable", params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void; - post(method: "NodeWorker.enable", callback?: (err: Error | null) => void): void; - /** - * Detaches from all running workers and disables attaching to new workers as they are started. - */ - post(method: "NodeWorker.disable", callback?: (err: Error | null) => void): void; - /** - * Detached from the worker with given sessionId. - */ - post(method: "NodeWorker.detach", params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void; - post(method: "NodeWorker.detach", callback?: (err: Error | null) => void): void; - /** - * Disables network tracking, prevents network events from being sent to the client. - */ - post(method: "Network.disable", callback?: (err: Error | null) => void): void; - /** - * Enables network tracking, network events will now be delivered to the client. - */ - post(method: "Network.enable", callback?: (err: Error | null) => void): void; - /** - * Returns post data sent with the request. Returns an error when no data was sent with the request. - */ - post(method: "Network.getRequestPostData", params?: Network.GetRequestPostDataParameterType, callback?: (err: Error | null, params: Network.GetRequestPostDataReturnType) => void): void; - post(method: "Network.getRequestPostData", callback?: (err: Error | null, params: Network.GetRequestPostDataReturnType) => void): void; - /** - * Returns content served for the given request. - */ - post(method: "Network.getResponseBody", params?: Network.GetResponseBodyParameterType, callback?: (err: Error | null, params: Network.GetResponseBodyReturnType) => void): void; - post(method: "Network.getResponseBody", callback?: (err: Error | null, params: Network.GetResponseBodyReturnType) => void): void; - /** - * Enables streaming of the response for the given requestId. - * If enabled, the dataReceived event contains the data that was received during streaming. - * @experimental - */ - post( - method: "Network.streamResourceContent", - params?: Network.StreamResourceContentParameterType, - callback?: (err: Error | null, params: Network.StreamResourceContentReturnType) => void - ): void; - post(method: "Network.streamResourceContent", callback?: (err: Error | null, params: Network.StreamResourceContentReturnType) => void): void; - /** - * Fetches the resource and returns the content. - */ - post(method: "Network.loadNetworkResource", params?: Network.LoadNetworkResourceParameterType, callback?: (err: Error | null, params: Network.LoadNetworkResourceReturnType) => void): void; - post(method: "Network.loadNetworkResource", callback?: (err: Error | null, params: Network.LoadNetworkResourceReturnType) => void): void; - /** - * Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`. - */ - post(method: "NodeRuntime.enable", callback?: (err: Error | null) => void): void; - /** - * Disable NodeRuntime events - */ - post(method: "NodeRuntime.disable", callback?: (err: Error | null) => void): void; - /** - * Enable the `NodeRuntime.waitingForDisconnect`. - */ - post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void; - post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", callback?: (err: Error | null) => void): void; - post(method: "Target.setAutoAttach", params?: Target.SetAutoAttachParameterType, callback?: (err: Error | null) => void): void; - post(method: "Target.setAutoAttach", callback?: (err: Error | null) => void): void; - /** - * Read a chunk of the stream - */ - post(method: "IO.read", params?: IO.ReadParameterType, callback?: (err: Error | null, params: IO.ReadReturnType) => void): void; - post(method: "IO.read", callback?: (err: Error | null, params: IO.ReadReturnType) => void): void; - post(method: "IO.close", params?: IO.CloseParameterType, callback?: (err: Error | null) => void): void; - post(method: "IO.close", callback?: (err: Error | null) => void): void; - - addListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - addListener(event: "inspectorNotification", listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - addListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - addListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - addListener(event: "Runtime.executionContextsCleared", listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - addListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - addListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - addListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - addListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - addListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - addListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - addListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - addListener(event: "Debugger.paused", listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - addListener(event: "Debugger.resumed", listener: () => void): this; - /** - * Issued when new console message is added. - */ - addListener(event: "Console.messageAdded", listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - addListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification) => void): this; - addListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification) => void): this; - addListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification) => void): this; - addListener(event: "HeapProfiler.resetProfiles", listener: () => void): this; - addListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - addListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - addListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - addListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - addListener(event: "NodeTracing.tracingComplete", listener: () => void): this; - /** - * Issued when attached to a worker. - */ - addListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - addListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - addListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - addListener(event: "Network.requestWillBeSent", listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - addListener(event: "Network.responseReceived", listener: (message: InspectorNotification) => void): this; - addListener(event: "Network.loadingFailed", listener: (message: InspectorNotification) => void): this; - addListener(event: "Network.loadingFinished", listener: (message: InspectorNotification) => void): this; - /** - * Fired when data chunk was received over the network. - */ - addListener(event: "Network.dataReceived", listener: (message: InspectorNotification) => void): this; - /** - * Fired upon WebSocket creation. - */ - addListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification) => void): this; - /** - * Fired when WebSocket is closed. - */ - addListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification) => void): this; - /** - * Fired when WebSocket handshake response becomes available. - */ - addListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - addListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - addListener(event: "NodeRuntime.waitingForDebugger", listener: () => void): this; - addListener(event: "Target.targetCreated", listener: (message: InspectorNotification) => void): this; - addListener(event: "Target.attachedToTarget", listener: (message: InspectorNotification) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "inspectorNotification", message: InspectorNotification): boolean; - emit(event: "Runtime.executionContextCreated", message: InspectorNotification): boolean; - emit(event: "Runtime.executionContextDestroyed", message: InspectorNotification): boolean; - emit(event: "Runtime.executionContextsCleared"): boolean; - emit(event: "Runtime.exceptionThrown", message: InspectorNotification): boolean; - emit(event: "Runtime.exceptionRevoked", message: InspectorNotification): boolean; - emit(event: "Runtime.consoleAPICalled", message: InspectorNotification): boolean; - emit(event: "Runtime.inspectRequested", message: InspectorNotification): boolean; - emit(event: "Debugger.scriptParsed", message: InspectorNotification): boolean; - emit(event: "Debugger.scriptFailedToParse", message: InspectorNotification): boolean; - emit(event: "Debugger.breakpointResolved", message: InspectorNotification): boolean; - emit(event: "Debugger.paused", message: InspectorNotification): boolean; - emit(event: "Debugger.resumed"): boolean; - emit(event: "Console.messageAdded", message: InspectorNotification): boolean; - emit(event: "Profiler.consoleProfileStarted", message: InspectorNotification): boolean; - emit(event: "Profiler.consoleProfileFinished", message: InspectorNotification): boolean; - emit(event: "HeapProfiler.addHeapSnapshotChunk", message: InspectorNotification): boolean; - emit(event: "HeapProfiler.resetProfiles"): boolean; - emit(event: "HeapProfiler.reportHeapSnapshotProgress", message: InspectorNotification): boolean; - emit(event: "HeapProfiler.lastSeenObjectId", message: InspectorNotification): boolean; - emit(event: "HeapProfiler.heapStatsUpdate", message: InspectorNotification): boolean; - emit(event: "NodeTracing.dataCollected", message: InspectorNotification): boolean; - emit(event: "NodeTracing.tracingComplete"): boolean; - emit(event: "NodeWorker.attachedToWorker", message: InspectorNotification): boolean; - emit(event: "NodeWorker.detachedFromWorker", message: InspectorNotification): boolean; - emit(event: "NodeWorker.receivedMessageFromWorker", message: InspectorNotification): boolean; - emit(event: "Network.requestWillBeSent", message: InspectorNotification): boolean; - emit(event: "Network.responseReceived", message: InspectorNotification): boolean; - emit(event: "Network.loadingFailed", message: InspectorNotification): boolean; - emit(event: "Network.loadingFinished", message: InspectorNotification): boolean; - emit(event: "Network.dataReceived", message: InspectorNotification): boolean; - emit(event: "Network.webSocketCreated", message: InspectorNotification): boolean; - emit(event: "Network.webSocketClosed", message: InspectorNotification): boolean; - emit(event: "Network.webSocketHandshakeResponseReceived", message: InspectorNotification): boolean; - emit(event: "NodeRuntime.waitingForDisconnect"): boolean; - emit(event: "NodeRuntime.waitingForDebugger"): boolean; - emit(event: "Target.targetCreated", message: InspectorNotification): boolean; - emit(event: "Target.attachedToTarget", message: InspectorNotification): boolean; - on(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - on(event: "inspectorNotification", listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - on(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - on(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - on(event: "Runtime.executionContextsCleared", listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - on(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - on(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - on(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - on(event: "Runtime.inspectRequested", listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - on(event: "Debugger.scriptParsed", listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - on(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - on(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - on(event: "Debugger.paused", listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - on(event: "Debugger.resumed", listener: () => void): this; - /** - * Issued when new console message is added. - */ - on(event: "Console.messageAdded", listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - on(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification) => void): this; - on(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification) => void): this; - on(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification) => void): this; - on(event: "HeapProfiler.resetProfiles", listener: () => void): this; - on(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - on(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - on(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - on(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - on(event: "NodeTracing.tracingComplete", listener: () => void): this; - /** - * Issued when attached to a worker. - */ - on(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - on(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - on(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - on(event: "Network.requestWillBeSent", listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - on(event: "Network.responseReceived", listener: (message: InspectorNotification) => void): this; - on(event: "Network.loadingFailed", listener: (message: InspectorNotification) => void): this; - on(event: "Network.loadingFinished", listener: (message: InspectorNotification) => void): this; - /** - * Fired when data chunk was received over the network. - */ - on(event: "Network.dataReceived", listener: (message: InspectorNotification) => void): this; - /** - * Fired upon WebSocket creation. - */ - on(event: "Network.webSocketCreated", listener: (message: InspectorNotification) => void): this; - /** - * Fired when WebSocket is closed. - */ - on(event: "Network.webSocketClosed", listener: (message: InspectorNotification) => void): this; - /** - * Fired when WebSocket handshake response becomes available. - */ - on(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - on(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - on(event: "NodeRuntime.waitingForDebugger", listener: () => void): this; - on(event: "Target.targetCreated", listener: (message: InspectorNotification) => void): this; - on(event: "Target.attachedToTarget", listener: (message: InspectorNotification) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - once(event: "inspectorNotification", listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - once(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - once(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - once(event: "Runtime.executionContextsCleared", listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - once(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - once(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - once(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - once(event: "Runtime.inspectRequested", listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - once(event: "Debugger.scriptParsed", listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - once(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - once(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - once(event: "Debugger.paused", listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - once(event: "Debugger.resumed", listener: () => void): this; - /** - * Issued when new console message is added. - */ - once(event: "Console.messageAdded", listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - once(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification) => void): this; - once(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification) => void): this; - once(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification) => void): this; - once(event: "HeapProfiler.resetProfiles", listener: () => void): this; - once(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - once(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - once(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - once(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - once(event: "NodeTracing.tracingComplete", listener: () => void): this; - /** - * Issued when attached to a worker. - */ - once(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - once(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - once(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - once(event: "Network.requestWillBeSent", listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - once(event: "Network.responseReceived", listener: (message: InspectorNotification) => void): this; - once(event: "Network.loadingFailed", listener: (message: InspectorNotification) => void): this; - once(event: "Network.loadingFinished", listener: (message: InspectorNotification) => void): this; - /** - * Fired when data chunk was received over the network. - */ - once(event: "Network.dataReceived", listener: (message: InspectorNotification) => void): this; - /** - * Fired upon WebSocket creation. - */ - once(event: "Network.webSocketCreated", listener: (message: InspectorNotification) => void): this; - /** - * Fired when WebSocket is closed. - */ - once(event: "Network.webSocketClosed", listener: (message: InspectorNotification) => void): this; - /** - * Fired when WebSocket handshake response becomes available. - */ - once(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - once(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - once(event: "NodeRuntime.waitingForDebugger", listener: () => void): this; - once(event: "Target.targetCreated", listener: (message: InspectorNotification) => void): this; - once(event: "Target.attachedToTarget", listener: (message: InspectorNotification) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - prependListener(event: "inspectorNotification", listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - prependListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - prependListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - prependListener(event: "Runtime.executionContextsCleared", listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - prependListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - prependListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - prependListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - prependListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - prependListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - prependListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - prependListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - prependListener(event: "Debugger.paused", listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - prependListener(event: "Debugger.resumed", listener: () => void): this; - /** - * Issued when new console message is added. - */ - prependListener(event: "Console.messageAdded", listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - prependListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification) => void): this; - prependListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification) => void): this; - prependListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification) => void): this; - prependListener(event: "HeapProfiler.resetProfiles", listener: () => void): this; - prependListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - prependListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - prependListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - prependListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - prependListener(event: "NodeTracing.tracingComplete", listener: () => void): this; - /** - * Issued when attached to a worker. - */ - prependListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - prependListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - prependListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - prependListener(event: "Network.requestWillBeSent", listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - prependListener(event: "Network.responseReceived", listener: (message: InspectorNotification) => void): this; - prependListener(event: "Network.loadingFailed", listener: (message: InspectorNotification) => void): this; - prependListener(event: "Network.loadingFinished", listener: (message: InspectorNotification) => void): this; - /** - * Fired when data chunk was received over the network. - */ - prependListener(event: "Network.dataReceived", listener: (message: InspectorNotification) => void): this; - /** - * Fired upon WebSocket creation. - */ - prependListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification) => void): this; - /** - * Fired when WebSocket is closed. - */ - prependListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification) => void): this; - /** - * Fired when WebSocket handshake response becomes available. - */ - prependListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - prependListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - prependListener(event: "NodeRuntime.waitingForDebugger", listener: () => void): this; - prependListener(event: "Target.targetCreated", listener: (message: InspectorNotification) => void): this; - prependListener(event: "Target.attachedToTarget", listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - prependOnceListener(event: "inspectorNotification", listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - prependOnceListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - prependOnceListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - prependOnceListener(event: "Runtime.executionContextsCleared", listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - prependOnceListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - prependOnceListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - prependOnceListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - prependOnceListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - prependOnceListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - prependOnceListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - prependOnceListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - prependOnceListener(event: "Debugger.paused", listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - prependOnceListener(event: "Debugger.resumed", listener: () => void): this; - /** - * Issued when new console message is added. - */ - prependOnceListener(event: "Console.messageAdded", listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - prependOnceListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: "HeapProfiler.resetProfiles", listener: () => void): this; - prependOnceListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - prependOnceListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - prependOnceListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - prependOnceListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - prependOnceListener(event: "NodeTracing.tracingComplete", listener: () => void): this; - /** - * Issued when attached to a worker. - */ - prependOnceListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - prependOnceListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - prependOnceListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - prependOnceListener(event: "Network.requestWillBeSent", listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - prependOnceListener(event: "Network.responseReceived", listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: "Network.loadingFailed", listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: "Network.loadingFinished", listener: (message: InspectorNotification) => void): this; - /** - * Fired when data chunk was received over the network. - */ - prependOnceListener(event: "Network.dataReceived", listener: (message: InspectorNotification) => void): this; - /** - * Fired upon WebSocket creation. - */ - prependOnceListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification) => void): this; - /** - * Fired when WebSocket is closed. - */ - prependOnceListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification) => void): this; - /** - * Fired when WebSocket handshake response becomes available. - */ - prependOnceListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - prependOnceListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - prependOnceListener(event: "NodeRuntime.waitingForDebugger", listener: () => void): this; - prependOnceListener(event: "Target.targetCreated", listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: "Target.attachedToTarget", listener: (message: InspectorNotification) => void): this; - } -} - -declare module "inspector/promises" { - export { - Schema, - Runtime, - Debugger, - Console, - Profiler, - HeapProfiler, - NodeTracing, - NodeWorker, - Network, - NodeRuntime, - Target, - IO, - } from 'inspector'; -} - -declare module "inspector/promises" { - import { - InspectorNotification, - Schema, - Runtime, - Debugger, - Console, - Profiler, - HeapProfiler, - NodeTracing, - NodeWorker, - Network, - NodeRuntime, - Target, - IO, - } from "inspector"; - - /** - * The `inspector.Session` is used for dispatching messages to the V8 inspector - * back-end and receiving message responses and notifications. - * @since v19.0.0 - */ - interface Session { - /** - * Posts a message to the inspector back-end. - * - * ```js - * import { Session } from 'node:inspector/promises'; - * try { - * const session = new Session(); - * session.connect(); - * const result = await session.post('Runtime.evaluate', { expression: '2 + 2' }); - * console.log(result); - * } catch (error) { - * console.error(error); - * } - * // Output: { result: { type: 'number', value: 4, description: '4' } } - * ``` - * - * The latest version of the V8 inspector protocol is published on the - * [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/v8/). - * - * Node.js inspector supports all the Chrome DevTools Protocol domains declared - * by V8. Chrome DevTools Protocol domain provides an interface for interacting - * with one of the runtime agents used to inspect the application state and listen - * to the run-time events. - */ - post(method: string, params?: object): Promise; - /** - * Returns supported domains. - */ - post(method: "Schema.getDomains"): Promise; - /** - * Evaluates expression on global object. - */ - post(method: "Runtime.evaluate", params?: Runtime.EvaluateParameterType): Promise; - /** - * Add handler to promise with given promise object id. - */ - post(method: "Runtime.awaitPromise", params?: Runtime.AwaitPromiseParameterType): Promise; - /** - * Calls function with given declaration on the given object. Object group of the result is inherited from the target object. - */ - post(method: "Runtime.callFunctionOn", params?: Runtime.CallFunctionOnParameterType): Promise; - /** - * Returns properties of a given object. Object group of the result is inherited from the target object. - */ - post(method: "Runtime.getProperties", params?: Runtime.GetPropertiesParameterType): Promise; - /** - * Releases remote object with given id. - */ - post(method: "Runtime.releaseObject", params?: Runtime.ReleaseObjectParameterType): Promise; - /** - * Releases all remote objects that belong to a given group. - */ - post(method: "Runtime.releaseObjectGroup", params?: Runtime.ReleaseObjectGroupParameterType): Promise; - /** - * Tells inspected instance to run if it was waiting for debugger to attach. - */ - post(method: "Runtime.runIfWaitingForDebugger"): Promise; - /** - * Enables reporting of execution contexts creation by means of executionContextCreated event. When the reporting gets enabled the event will be sent immediately for each existing execution context. - */ - post(method: "Runtime.enable"): Promise; - /** - * Disables reporting of execution contexts creation. - */ - post(method: "Runtime.disable"): Promise; - /** - * Discards collected exceptions and console API calls. - */ - post(method: "Runtime.discardConsoleEntries"): Promise; - /** - * @experimental - */ - post(method: "Runtime.setCustomObjectFormatterEnabled", params?: Runtime.SetCustomObjectFormatterEnabledParameterType): Promise; - /** - * Compiles expression. - */ - post(method: "Runtime.compileScript", params?: Runtime.CompileScriptParameterType): Promise; - /** - * Runs script with given id in a given context. - */ - post(method: "Runtime.runScript", params?: Runtime.RunScriptParameterType): Promise; - post(method: "Runtime.queryObjects", params?: Runtime.QueryObjectsParameterType): Promise; - /** - * Returns all let, const and class variables from global scope. - */ - post(method: "Runtime.globalLexicalScopeNames", params?: Runtime.GlobalLexicalScopeNamesParameterType): Promise; - /** - * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received. - */ - post(method: "Debugger.enable"): Promise; - /** - * Disables debugger for given page. - */ - post(method: "Debugger.disable"): Promise; - /** - * Activates / deactivates all breakpoints on the page. - */ - post(method: "Debugger.setBreakpointsActive", params?: Debugger.SetBreakpointsActiveParameterType): Promise; - /** - * Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc). - */ - post(method: "Debugger.setSkipAllPauses", params?: Debugger.SetSkipAllPausesParameterType): Promise; - /** - * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations property. Further matching script parsing will result in subsequent breakpointResolved events issued. This logical breakpoint will survive page reloads. - */ - post(method: "Debugger.setBreakpointByUrl", params?: Debugger.SetBreakpointByUrlParameterType): Promise; - /** - * Sets JavaScript breakpoint at a given location. - */ - post(method: "Debugger.setBreakpoint", params?: Debugger.SetBreakpointParameterType): Promise; - /** - * Removes JavaScript breakpoint. - */ - post(method: "Debugger.removeBreakpoint", params?: Debugger.RemoveBreakpointParameterType): Promise; - /** - * Returns possible locations for breakpoint. scriptId in start and end range locations should be the same. - */ - post(method: "Debugger.getPossibleBreakpoints", params?: Debugger.GetPossibleBreakpointsParameterType): Promise; - /** - * Continues execution until specific location is reached. - */ - post(method: "Debugger.continueToLocation", params?: Debugger.ContinueToLocationParameterType): Promise; - /** - * @experimental - */ - post(method: "Debugger.pauseOnAsyncCall", params?: Debugger.PauseOnAsyncCallParameterType): Promise; - /** - * Steps over the statement. - */ - post(method: "Debugger.stepOver"): Promise; - /** - * Steps into the function call. - */ - post(method: "Debugger.stepInto", params?: Debugger.StepIntoParameterType): Promise; - /** - * Steps out of the function call. - */ - post(method: "Debugger.stepOut"): Promise; - /** - * Stops on the next JavaScript statement. - */ - post(method: "Debugger.pause"): Promise; - /** - * This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called. - * @experimental - */ - post(method: "Debugger.scheduleStepIntoAsync"): Promise; - /** - * Resumes JavaScript execution. - */ - post(method: "Debugger.resume"): Promise; - /** - * Returns stack trace with given stackTraceId. - * @experimental - */ - post(method: "Debugger.getStackTrace", params?: Debugger.GetStackTraceParameterType): Promise; - /** - * Searches for given string in script content. - */ - post(method: "Debugger.searchInContent", params?: Debugger.SearchInContentParameterType): Promise; - /** - * Edits JavaScript source live. - */ - post(method: "Debugger.setScriptSource", params?: Debugger.SetScriptSourceParameterType): Promise; - /** - * Restarts particular call frame from the beginning. - */ - post(method: "Debugger.restartFrame", params?: Debugger.RestartFrameParameterType): Promise; - /** - * Returns source for the script with given id. - */ - post(method: "Debugger.getScriptSource", params?: Debugger.GetScriptSourceParameterType): Promise; - /** - * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is none. - */ - post(method: "Debugger.setPauseOnExceptions", params?: Debugger.SetPauseOnExceptionsParameterType): Promise; - /** - * Evaluates expression on a given call frame. - */ - post(method: "Debugger.evaluateOnCallFrame", params?: Debugger.EvaluateOnCallFrameParameterType): Promise; - /** - * Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually. - */ - post(method: "Debugger.setVariableValue", params?: Debugger.SetVariableValueParameterType): Promise; - /** - * Changes return value in top frame. Available only at return break position. - * @experimental - */ - post(method: "Debugger.setReturnValue", params?: Debugger.SetReturnValueParameterType): Promise; - /** - * Enables or disables async call stacks tracking. - */ - post(method: "Debugger.setAsyncCallStackDepth", params?: Debugger.SetAsyncCallStackDepthParameterType): Promise; - /** - * Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. - * @experimental - */ - post(method: "Debugger.setBlackboxPatterns", params?: Debugger.SetBlackboxPatternsParameterType): Promise; - /** - * Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted. - * @experimental - */ - post(method: "Debugger.setBlackboxedRanges", params?: Debugger.SetBlackboxedRangesParameterType): Promise; - /** - * Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification. - */ - post(method: "Console.enable"): Promise; - /** - * Disables console domain, prevents further console messages from being reported to the client. - */ - post(method: "Console.disable"): Promise; - /** - * Does nothing. - */ - post(method: "Console.clearMessages"): Promise; - post(method: "Profiler.enable"): Promise; - post(method: "Profiler.disable"): Promise; - /** - * Changes CPU profiler sampling interval. Must be called before CPU profiles recording started. - */ - post(method: "Profiler.setSamplingInterval", params?: Profiler.SetSamplingIntervalParameterType): Promise; - post(method: "Profiler.start"): Promise; - post(method: "Profiler.stop"): Promise; - /** - * Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters. - */ - post(method: "Profiler.startPreciseCoverage", params?: Profiler.StartPreciseCoverageParameterType): Promise; - /** - * Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code. - */ - post(method: "Profiler.stopPreciseCoverage"): Promise; - /** - * Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started. - */ - post(method: "Profiler.takePreciseCoverage"): Promise; - /** - * Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection. - */ - post(method: "Profiler.getBestEffortCoverage"): Promise; - post(method: "HeapProfiler.enable"): Promise; - post(method: "HeapProfiler.disable"): Promise; - post(method: "HeapProfiler.startTrackingHeapObjects", params?: HeapProfiler.StartTrackingHeapObjectsParameterType): Promise; - post(method: "HeapProfiler.stopTrackingHeapObjects", params?: HeapProfiler.StopTrackingHeapObjectsParameterType): Promise; - post(method: "HeapProfiler.takeHeapSnapshot", params?: HeapProfiler.TakeHeapSnapshotParameterType): Promise; - post(method: "HeapProfiler.collectGarbage"): Promise; - post(method: "HeapProfiler.getObjectByHeapObjectId", params?: HeapProfiler.GetObjectByHeapObjectIdParameterType): Promise; - /** - * Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions). - */ - post(method: "HeapProfiler.addInspectedHeapObject", params?: HeapProfiler.AddInspectedHeapObjectParameterType): Promise; - post(method: "HeapProfiler.getHeapObjectId", params?: HeapProfiler.GetHeapObjectIdParameterType): Promise; - post(method: "HeapProfiler.startSampling", params?: HeapProfiler.StartSamplingParameterType): Promise; - post(method: "HeapProfiler.stopSampling"): Promise; - post(method: "HeapProfiler.getSamplingProfile"): Promise; - /** - * Gets supported tracing categories. - */ - post(method: "NodeTracing.getCategories"): Promise; - /** - * Start trace events collection. - */ - post(method: "NodeTracing.start", params?: NodeTracing.StartParameterType): Promise; - /** - * Stop trace events collection. Remaining collected events will be sent as a sequence of - * dataCollected events followed by tracingComplete event. - */ - post(method: "NodeTracing.stop"): Promise; - /** - * Sends protocol message over session with given id. - */ - post(method: "NodeWorker.sendMessageToWorker", params?: NodeWorker.SendMessageToWorkerParameterType): Promise; - /** - * Instructs the inspector to attach to running workers. Will also attach to new workers - * as they start - */ - post(method: "NodeWorker.enable", params?: NodeWorker.EnableParameterType): Promise; - /** - * Detaches from all running workers and disables attaching to new workers as they are started. - */ - post(method: "NodeWorker.disable"): Promise; - /** - * Detached from the worker with given sessionId. - */ - post(method: "NodeWorker.detach", params?: NodeWorker.DetachParameterType): Promise; - /** - * Disables network tracking, prevents network events from being sent to the client. - */ - post(method: "Network.disable"): Promise; - /** - * Enables network tracking, network events will now be delivered to the client. - */ - post(method: "Network.enable"): Promise; - /** - * Returns post data sent with the request. Returns an error when no data was sent with the request. - */ - post(method: "Network.getRequestPostData", params?: Network.GetRequestPostDataParameterType): Promise; - /** - * Returns content served for the given request. - */ - post(method: "Network.getResponseBody", params?: Network.GetResponseBodyParameterType): Promise; - /** - * Enables streaming of the response for the given requestId. - * If enabled, the dataReceived event contains the data that was received during streaming. - * @experimental - */ - post(method: "Network.streamResourceContent", params?: Network.StreamResourceContentParameterType): Promise; - /** - * Fetches the resource and returns the content. - */ - post(method: "Network.loadNetworkResource", params?: Network.LoadNetworkResourceParameterType): Promise; - /** - * Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`. - */ - post(method: "NodeRuntime.enable"): Promise; - /** - * Disable NodeRuntime events - */ - post(method: "NodeRuntime.disable"): Promise; - /** - * Enable the `NodeRuntime.waitingForDisconnect`. - */ - post(method: "NodeRuntime.notifyWhenWaitingForDisconnect", params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType): Promise; - post(method: "Target.setAutoAttach", params?: Target.SetAutoAttachParameterType): Promise; - /** - * Read a chunk of the stream - */ - post(method: "IO.read", params?: IO.ReadParameterType): Promise; - post(method: "IO.close", params?: IO.CloseParameterType): Promise; - - addListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - addListener(event: "inspectorNotification", listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - addListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - addListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - addListener(event: "Runtime.executionContextsCleared", listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - addListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - addListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - addListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - addListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - addListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - addListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - addListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - addListener(event: "Debugger.paused", listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - addListener(event: "Debugger.resumed", listener: () => void): this; - /** - * Issued when new console message is added. - */ - addListener(event: "Console.messageAdded", listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - addListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification) => void): this; - addListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification) => void): this; - addListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification) => void): this; - addListener(event: "HeapProfiler.resetProfiles", listener: () => void): this; - addListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - addListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - addListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - addListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - addListener(event: "NodeTracing.tracingComplete", listener: () => void): this; - /** - * Issued when attached to a worker. - */ - addListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - addListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - addListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - addListener(event: "Network.requestWillBeSent", listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - addListener(event: "Network.responseReceived", listener: (message: InspectorNotification) => void): this; - addListener(event: "Network.loadingFailed", listener: (message: InspectorNotification) => void): this; - addListener(event: "Network.loadingFinished", listener: (message: InspectorNotification) => void): this; - /** - * Fired when data chunk was received over the network. - */ - addListener(event: "Network.dataReceived", listener: (message: InspectorNotification) => void): this; - /** - * Fired upon WebSocket creation. - */ - addListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification) => void): this; - /** - * Fired when WebSocket is closed. - */ - addListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification) => void): this; - /** - * Fired when WebSocket handshake response becomes available. - */ - addListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - addListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - addListener(event: "NodeRuntime.waitingForDebugger", listener: () => void): this; - addListener(event: "Target.targetCreated", listener: (message: InspectorNotification) => void): this; - addListener(event: "Target.attachedToTarget", listener: (message: InspectorNotification) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "inspectorNotification", message: InspectorNotification): boolean; - emit(event: "Runtime.executionContextCreated", message: InspectorNotification): boolean; - emit(event: "Runtime.executionContextDestroyed", message: InspectorNotification): boolean; - emit(event: "Runtime.executionContextsCleared"): boolean; - emit(event: "Runtime.exceptionThrown", message: InspectorNotification): boolean; - emit(event: "Runtime.exceptionRevoked", message: InspectorNotification): boolean; - emit(event: "Runtime.consoleAPICalled", message: InspectorNotification): boolean; - emit(event: "Runtime.inspectRequested", message: InspectorNotification): boolean; - emit(event: "Debugger.scriptParsed", message: InspectorNotification): boolean; - emit(event: "Debugger.scriptFailedToParse", message: InspectorNotification): boolean; - emit(event: "Debugger.breakpointResolved", message: InspectorNotification): boolean; - emit(event: "Debugger.paused", message: InspectorNotification): boolean; - emit(event: "Debugger.resumed"): boolean; - emit(event: "Console.messageAdded", message: InspectorNotification): boolean; - emit(event: "Profiler.consoleProfileStarted", message: InspectorNotification): boolean; - emit(event: "Profiler.consoleProfileFinished", message: InspectorNotification): boolean; - emit(event: "HeapProfiler.addHeapSnapshotChunk", message: InspectorNotification): boolean; - emit(event: "HeapProfiler.resetProfiles"): boolean; - emit(event: "HeapProfiler.reportHeapSnapshotProgress", message: InspectorNotification): boolean; - emit(event: "HeapProfiler.lastSeenObjectId", message: InspectorNotification): boolean; - emit(event: "HeapProfiler.heapStatsUpdate", message: InspectorNotification): boolean; - emit(event: "NodeTracing.dataCollected", message: InspectorNotification): boolean; - emit(event: "NodeTracing.tracingComplete"): boolean; - emit(event: "NodeWorker.attachedToWorker", message: InspectorNotification): boolean; - emit(event: "NodeWorker.detachedFromWorker", message: InspectorNotification): boolean; - emit(event: "NodeWorker.receivedMessageFromWorker", message: InspectorNotification): boolean; - emit(event: "Network.requestWillBeSent", message: InspectorNotification): boolean; - emit(event: "Network.responseReceived", message: InspectorNotification): boolean; - emit(event: "Network.loadingFailed", message: InspectorNotification): boolean; - emit(event: "Network.loadingFinished", message: InspectorNotification): boolean; - emit(event: "Network.dataReceived", message: InspectorNotification): boolean; - emit(event: "Network.webSocketCreated", message: InspectorNotification): boolean; - emit(event: "Network.webSocketClosed", message: InspectorNotification): boolean; - emit(event: "Network.webSocketHandshakeResponseReceived", message: InspectorNotification): boolean; - emit(event: "NodeRuntime.waitingForDisconnect"): boolean; - emit(event: "NodeRuntime.waitingForDebugger"): boolean; - emit(event: "Target.targetCreated", message: InspectorNotification): boolean; - emit(event: "Target.attachedToTarget", message: InspectorNotification): boolean; - on(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - on(event: "inspectorNotification", listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - on(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - on(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - on(event: "Runtime.executionContextsCleared", listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - on(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - on(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - on(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - on(event: "Runtime.inspectRequested", listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - on(event: "Debugger.scriptParsed", listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - on(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - on(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - on(event: "Debugger.paused", listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - on(event: "Debugger.resumed", listener: () => void): this; - /** - * Issued when new console message is added. - */ - on(event: "Console.messageAdded", listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - on(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification) => void): this; - on(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification) => void): this; - on(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification) => void): this; - on(event: "HeapProfiler.resetProfiles", listener: () => void): this; - on(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - on(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - on(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - on(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - on(event: "NodeTracing.tracingComplete", listener: () => void): this; - /** - * Issued when attached to a worker. - */ - on(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - on(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - on(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - on(event: "Network.requestWillBeSent", listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - on(event: "Network.responseReceived", listener: (message: InspectorNotification) => void): this; - on(event: "Network.loadingFailed", listener: (message: InspectorNotification) => void): this; - on(event: "Network.loadingFinished", listener: (message: InspectorNotification) => void): this; - /** - * Fired when data chunk was received over the network. - */ - on(event: "Network.dataReceived", listener: (message: InspectorNotification) => void): this; - /** - * Fired upon WebSocket creation. - */ - on(event: "Network.webSocketCreated", listener: (message: InspectorNotification) => void): this; - /** - * Fired when WebSocket is closed. - */ - on(event: "Network.webSocketClosed", listener: (message: InspectorNotification) => void): this; - /** - * Fired when WebSocket handshake response becomes available. - */ - on(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - on(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - on(event: "NodeRuntime.waitingForDebugger", listener: () => void): this; - on(event: "Target.targetCreated", listener: (message: InspectorNotification) => void): this; - on(event: "Target.attachedToTarget", listener: (message: InspectorNotification) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - once(event: "inspectorNotification", listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - once(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - once(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - once(event: "Runtime.executionContextsCleared", listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - once(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - once(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - once(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - once(event: "Runtime.inspectRequested", listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - once(event: "Debugger.scriptParsed", listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - once(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - once(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - once(event: "Debugger.paused", listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - once(event: "Debugger.resumed", listener: () => void): this; - /** - * Issued when new console message is added. - */ - once(event: "Console.messageAdded", listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - once(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification) => void): this; - once(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification) => void): this; - once(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification) => void): this; - once(event: "HeapProfiler.resetProfiles", listener: () => void): this; - once(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - once(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - once(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - once(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - once(event: "NodeTracing.tracingComplete", listener: () => void): this; - /** - * Issued when attached to a worker. - */ - once(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - once(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - once(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - once(event: "Network.requestWillBeSent", listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - once(event: "Network.responseReceived", listener: (message: InspectorNotification) => void): this; - once(event: "Network.loadingFailed", listener: (message: InspectorNotification) => void): this; - once(event: "Network.loadingFinished", listener: (message: InspectorNotification) => void): this; - /** - * Fired when data chunk was received over the network. - */ - once(event: "Network.dataReceived", listener: (message: InspectorNotification) => void): this; - /** - * Fired upon WebSocket creation. - */ - once(event: "Network.webSocketCreated", listener: (message: InspectorNotification) => void): this; - /** - * Fired when WebSocket is closed. - */ - once(event: "Network.webSocketClosed", listener: (message: InspectorNotification) => void): this; - /** - * Fired when WebSocket handshake response becomes available. - */ - once(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - once(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - once(event: "NodeRuntime.waitingForDebugger", listener: () => void): this; - once(event: "Target.targetCreated", listener: (message: InspectorNotification) => void): this; - once(event: "Target.attachedToTarget", listener: (message: InspectorNotification) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - prependListener(event: "inspectorNotification", listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - prependListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - prependListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - prependListener(event: "Runtime.executionContextsCleared", listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - prependListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - prependListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - prependListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - prependListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - prependListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - prependListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - prependListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - prependListener(event: "Debugger.paused", listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - prependListener(event: "Debugger.resumed", listener: () => void): this; - /** - * Issued when new console message is added. - */ - prependListener(event: "Console.messageAdded", listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - prependListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification) => void): this; - prependListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification) => void): this; - prependListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification) => void): this; - prependListener(event: "HeapProfiler.resetProfiles", listener: () => void): this; - prependListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - prependListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - prependListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - prependListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - prependListener(event: "NodeTracing.tracingComplete", listener: () => void): this; - /** - * Issued when attached to a worker. - */ - prependListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - prependListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - prependListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - prependListener(event: "Network.requestWillBeSent", listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - prependListener(event: "Network.responseReceived", listener: (message: InspectorNotification) => void): this; - prependListener(event: "Network.loadingFailed", listener: (message: InspectorNotification) => void): this; - prependListener(event: "Network.loadingFinished", listener: (message: InspectorNotification) => void): this; - /** - * Fired when data chunk was received over the network. - */ - prependListener(event: "Network.dataReceived", listener: (message: InspectorNotification) => void): this; - /** - * Fired upon WebSocket creation. - */ - prependListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification) => void): this; - /** - * Fired when WebSocket is closed. - */ - prependListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification) => void): this; - /** - * Fired when WebSocket handshake response becomes available. - */ - prependListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - prependListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - prependListener(event: "NodeRuntime.waitingForDebugger", listener: () => void): this; - prependListener(event: "Target.targetCreated", listener: (message: InspectorNotification) => void): this; - prependListener(event: "Target.attachedToTarget", listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - prependOnceListener(event: "inspectorNotification", listener: (message: InspectorNotification) => void): this; - /** - * Issued when new execution context is created. - */ - prependOnceListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - prependOnceListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - prependOnceListener(event: "Runtime.executionContextsCleared", listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - prependOnceListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - prependOnceListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - prependOnceListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - prependOnceListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - prependOnceListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - prependOnceListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - prependOnceListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - prependOnceListener(event: "Debugger.paused", listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - prependOnceListener(event: "Debugger.resumed", listener: () => void): this; - /** - * Issued when new console message is added. - */ - prependOnceListener(event: "Console.messageAdded", listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - prependOnceListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: "HeapProfiler.resetProfiles", listener: () => void): this; - prependOnceListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - prependOnceListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - prependOnceListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - prependOnceListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - prependOnceListener(event: "NodeTracing.tracingComplete", listener: () => void): this; - /** - * Issued when attached to a worker. - */ - prependOnceListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - prependOnceListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - prependOnceListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification) => void): this; - /** - * Fired when page is about to send HTTP request. - */ - prependOnceListener(event: "Network.requestWillBeSent", listener: (message: InspectorNotification) => void): this; - /** - * Fired when HTTP response is available. - */ - prependOnceListener(event: "Network.responseReceived", listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: "Network.loadingFailed", listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: "Network.loadingFinished", listener: (message: InspectorNotification) => void): this; - /** - * Fired when data chunk was received over the network. - */ - prependOnceListener(event: "Network.dataReceived", listener: (message: InspectorNotification) => void): this; - /** - * Fired upon WebSocket creation. - */ - prependOnceListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification) => void): this; - /** - * Fired when WebSocket is closed. - */ - prependOnceListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification) => void): this; - /** - * Fired when WebSocket handshake response becomes available. - */ - prependOnceListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - prependOnceListener(event: "NodeRuntime.waitingForDisconnect", listener: () => void): this; - /** - * This event is fired when the runtime is waiting for the debugger. For - * example, when inspector.waitingForDebugger is called - */ - prependOnceListener(event: "NodeRuntime.waitingForDebugger", listener: () => void): this; - prependOnceListener(event: "Target.targetCreated", listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: "Target.attachedToTarget", listener: (message: InspectorNotification) => void): this; - } -} diff --git a/build_vtk_bundle/node_modules/@types/node/module.d.ts b/build_vtk_bundle/node_modules/@types/node/module.d.ts deleted file mode 100644 index b563b4be..00000000 --- a/build_vtk_bundle/node_modules/@types/node/module.d.ts +++ /dev/null @@ -1,894 +0,0 @@ -/** - * @since v0.3.7 - */ -declare module "module" { - import { URL } from "node:url"; - class Module { - constructor(id: string, parent?: Module); - } - interface Module extends NodeJS.Module {} - namespace Module { - export { Module }; - } - namespace Module { - /** - * A list of the names of all modules provided by Node.js. Can be used to verify - * if a module is maintained by a third party or not. - * - * Note: the list doesn't contain prefix-only modules like `node:test`. - * @since v9.3.0, v8.10.0, v6.13.0 - */ - const builtinModules: readonly string[]; - /** - * @since v12.2.0 - * @param path Filename to be used to construct the require - * function. Must be a file URL object, file URL string, or absolute path - * string. - */ - function createRequire(path: string | URL): NodeJS.Require; - namespace constants { - /** - * The following constants are returned as the `status` field in the object returned by - * {@link enableCompileCache} to indicate the result of the attempt to enable the - * [module compile cache](https://nodejs.org/docs/latest-v24.x/api/module.html#module-compile-cache). - * @since v22.8.0 - */ - namespace compileCacheStatus { - /** - * Node.js has enabled the compile cache successfully. The directory used to store the - * compile cache will be returned in the `directory` field in the - * returned object. - */ - const ENABLED: number; - /** - * The compile cache has already been enabled before, either by a previous call to - * {@link enableCompileCache}, or by the `NODE_COMPILE_CACHE=dir` - * environment variable. The directory used to store the - * compile cache will be returned in the `directory` field in the - * returned object. - */ - const ALREADY_ENABLED: number; - /** - * Node.js fails to enable the compile cache. This can be caused by the lack of - * permission to use the specified directory, or various kinds of file system errors. - * The detail of the failure will be returned in the `message` field in the - * returned object. - */ - const FAILED: number; - /** - * Node.js cannot enable the compile cache because the environment variable - * `NODE_DISABLE_COMPILE_CACHE=1` has been set. - */ - const DISABLED: number; - } - } - interface EnableCompileCacheResult { - /** - * One of the {@link constants.compileCacheStatus} - */ - status: number; - /** - * If Node.js cannot enable the compile cache, this contains - * the error message. Only set if `status` is `module.constants.compileCacheStatus.FAILED`. - */ - message?: string; - /** - * If the compile cache is enabled, this contains the directory - * where the compile cache is stored. Only set if `status` is - * `module.constants.compileCacheStatus.ENABLED` or - * `module.constants.compileCacheStatus.ALREADY_ENABLED`. - */ - directory?: string; - } - /** - * Enable [module compile cache](https://nodejs.org/docs/latest-v24.x/api/module.html#module-compile-cache) - * in the current Node.js instance. - * - * If `cacheDir` is not specified, Node.js will either use the directory specified by the - * `NODE_COMPILE_CACHE=dir` environment variable if it's set, or use - * `path.join(os.tmpdir(), 'node-compile-cache')` otherwise. For general use cases, it's - * recommended to call `module.enableCompileCache()` without specifying the `cacheDir`, - * so that the directory can be overridden by the `NODE_COMPILE_CACHE` environment - * variable when necessary. - * - * Since compile cache is supposed to be a quiet optimization that is not required for the - * application to be functional, this method is designed to not throw any exception when the - * compile cache cannot be enabled. Instead, it will return an object containing an error - * message in the `message` field to aid debugging. - * If compile cache is enabled successfully, the `directory` field in the returned object - * contains the path to the directory where the compile cache is stored. The `status` - * field in the returned object would be one of the `module.constants.compileCacheStatus` - * values to indicate the result of the attempt to enable the - * [module compile cache](https://nodejs.org/docs/latest-v24.x/api/module.html#module-compile-cache). - * - * This method only affects the current Node.js instance. To enable it in child worker threads, - * either call this method in child worker threads too, or set the - * `process.env.NODE_COMPILE_CACHE` value to compile cache directory so the behavior can - * be inherited into the child workers. The directory can be obtained either from the - * `directory` field returned by this method, or with {@link getCompileCacheDir}. - * @since v22.8.0 - * @param cacheDir Optional path to specify the directory where the compile cache - * will be stored/retrieved. - */ - function enableCompileCache(cacheDir?: string): EnableCompileCacheResult; - /** - * Flush the [module compile cache](https://nodejs.org/docs/latest-v24.x/api/module.html#module-compile-cache) - * accumulated from modules already loaded - * in the current Node.js instance to disk. This returns after all the flushing - * file system operations come to an end, no matter they succeed or not. If there - * are any errors, this will fail silently, since compile cache misses should not - * interfere with the actual operation of the application. - * @since v22.10.0 - */ - function flushCompileCache(): void; - /** - * @since v22.8.0 - * @return Path to the [module compile cache](https://nodejs.org/docs/latest-v24.x/api/module.html#module-compile-cache) - * directory if it is enabled, or `undefined` otherwise. - */ - function getCompileCacheDir(): string | undefined; - /** - * ```text - * /path/to/project - * ├ packages/ - * ├ bar/ - * ├ bar.js - * └ package.json // name = '@foo/bar' - * └ qux/ - * ├ node_modules/ - * └ some-package/ - * └ package.json // name = 'some-package' - * ├ qux.js - * └ package.json // name = '@foo/qux' - * ├ main.js - * └ package.json // name = '@foo' - * ``` - * ```js - * // /path/to/project/packages/bar/bar.js - * import { findPackageJSON } from 'node:module'; - * - * findPackageJSON('..', import.meta.url); - * // '/path/to/project/package.json' - * // Same result when passing an absolute specifier instead: - * findPackageJSON(new URL('../', import.meta.url)); - * findPackageJSON(import.meta.resolve('../')); - * - * findPackageJSON('some-package', import.meta.url); - * // '/path/to/project/packages/bar/node_modules/some-package/package.json' - * // When passing an absolute specifier, you might get a different result if the - * // resolved module is inside a subfolder that has nested `package.json`. - * findPackageJSON(import.meta.resolve('some-package')); - * // '/path/to/project/packages/bar/node_modules/some-package/some-subfolder/package.json' - * - * findPackageJSON('@foo/qux', import.meta.url); - * // '/path/to/project/packages/qux/package.json' - * ``` - * @since v22.14.0 - * @param specifier The specifier for the module whose `package.json` to - * retrieve. When passing a _bare specifier_, the `package.json` at the root of - * the package is returned. When passing a _relative specifier_ or an _absolute specifier_, - * the closest parent `package.json` is returned. - * @param base The absolute location (`file:` URL string or FS path) of the - * containing module. For CJS, use `__filename` (not `__dirname`!); for ESM, use - * `import.meta.url`. You do not need to pass it if `specifier` is an _absolute specifier_. - * @returns A path if the `package.json` is found. When `startLocation` - * is a package, the package's root `package.json`; when a relative or unresolved, the closest - * `package.json` to the `startLocation`. - */ - function findPackageJSON(specifier: string | URL, base?: string | URL): string | undefined; - /** - * @since v18.6.0, v16.17.0 - */ - function isBuiltin(moduleName: string): boolean; - interface RegisterOptions { - /** - * If you want to resolve `specifier` relative to a - * base URL, such as `import.meta.url`, you can pass that URL here. This - * property is ignored if the `parentURL` is supplied as the second argument. - * @default 'data:' - */ - parentURL?: string | URL | undefined; - /** - * Any arbitrary, cloneable JavaScript value to pass into the - * {@link initialize} hook. - */ - data?: Data | undefined; - /** - * [Transferable objects](https://nodejs.org/docs/latest-v24.x/api/worker_threads.html#portpostmessagevalue-transferlist) - * to be passed into the `initialize` hook. - */ - transferList?: any[] | undefined; - } - /* eslint-disable @definitelytyped/no-unnecessary-generics */ - /** - * Register a module that exports hooks that customize Node.js module - * resolution and loading behavior. See - * [Customization hooks](https://nodejs.org/docs/latest-v24.x/api/module.html#customization-hooks). - * - * This feature requires `--allow-worker` if used with the - * [Permission Model](https://nodejs.org/docs/latest-v24.x/api/permissions.html#permission-model). - * @since v20.6.0, v18.19.0 - * @param specifier Customization hooks to be registered; this should be - * the same string that would be passed to `import()`, except that if it is - * relative, it is resolved relative to `parentURL`. - * @param parentURL f you want to resolve `specifier` relative to a base - * URL, such as `import.meta.url`, you can pass that URL here. - */ - function register( - specifier: string | URL, - parentURL?: string | URL, - options?: RegisterOptions, - ): void; - function register(specifier: string | URL, options?: RegisterOptions): void; - interface RegisterHooksOptions { - /** - * See [load hook](https://nodejs.org/docs/latest-v24.x/api/module.html#loadurl-context-nextload). - * @default undefined - */ - load?: LoadHookSync | undefined; - /** - * See [resolve hook](https://nodejs.org/docs/latest-v24.x/api/module.html#resolvespecifier-context-nextresolve). - * @default undefined - */ - resolve?: ResolveHookSync | undefined; - } - interface ModuleHooks { - /** - * Deregister the hook instance. - */ - deregister(): void; - } - /** - * Register [hooks](https://nodejs.org/docs/latest-v24.x/api/module.html#customization-hooks) - * that customize Node.js module resolution and loading behavior. - * @since v22.15.0 - * @experimental - */ - function registerHooks(options: RegisterHooksOptions): ModuleHooks; - interface StripTypeScriptTypesOptions { - /** - * Possible values are: - * * `'strip'` Only strip type annotations without performing the transformation of TypeScript features. - * * `'transform'` Strip type annotations and transform TypeScript features to JavaScript. - * @default 'strip' - */ - mode?: "strip" | "transform" | undefined; - /** - * Only when `mode` is `'transform'`, if `true`, a source map - * will be generated for the transformed code. - * @default false - */ - sourceMap?: boolean | undefined; - /** - * Specifies the source url used in the source map. - */ - sourceUrl?: string | undefined; - } - /** - * `module.stripTypeScriptTypes()` removes type annotations from TypeScript code. It - * can be used to strip type annotations from TypeScript code before running it - * with `vm.runInContext()` or `vm.compileFunction()`. - * By default, it will throw an error if the code contains TypeScript features - * that require transformation such as `Enums`, - * see [type-stripping](https://nodejs.org/docs/latest-v24.x/api/typescript.md#type-stripping) for more information. - * When mode is `'transform'`, it also transforms TypeScript features to JavaScript, - * see [transform TypeScript features](https://nodejs.org/docs/latest-v24.x/api/typescript.md#typescript-features) for more information. - * When mode is `'strip'`, source maps are not generated, because locations are preserved. - * If `sourceMap` is provided, when mode is `'strip'`, an error will be thrown. - * - * _WARNING_: The output of this function should not be considered stable across Node.js versions, - * due to changes in the TypeScript parser. - * - * ```js - * import { stripTypeScriptTypes } from 'node:module'; - * const code = 'const a: number = 1;'; - * const strippedCode = stripTypeScriptTypes(code); - * console.log(strippedCode); - * // Prints: const a = 1; - * ``` - * - * If `sourceUrl` is provided, it will be used appended as a comment at the end of the output: - * - * ```js - * import { stripTypeScriptTypes } from 'node:module'; - * const code = 'const a: number = 1;'; - * const strippedCode = stripTypeScriptTypes(code, { mode: 'strip', sourceUrl: 'source.ts' }); - * console.log(strippedCode); - * // Prints: const a = 1\n\n//# sourceURL=source.ts; - * ``` - * - * When `mode` is `'transform'`, the code is transformed to JavaScript: - * - * ```js - * import { stripTypeScriptTypes } from 'node:module'; - * const code = ` - * namespace MathUtil { - * export const add = (a: number, b: number) => a + b; - * }`; - * const strippedCode = stripTypeScriptTypes(code, { mode: 'transform', sourceMap: true }); - * console.log(strippedCode); - * // Prints: - * // var MathUtil; - * // (function(MathUtil) { - * // MathUtil.add = (a, b)=>a + b; - * // })(MathUtil || (MathUtil = {})); - * // # sourceMappingURL=data:application/json;base64, ... - * ``` - * @since v22.13.0 - * @param code The code to strip type annotations from. - * @returns The code with type annotations stripped. - */ - function stripTypeScriptTypes(code: string, options?: StripTypeScriptTypesOptions): string; - /* eslint-enable @definitelytyped/no-unnecessary-generics */ - /** - * The `module.syncBuiltinESMExports()` method updates all the live bindings for - * builtin `ES Modules` to match the properties of the `CommonJS` exports. It - * does not add or remove exported names from the `ES Modules`. - * - * ```js - * import fs from 'node:fs'; - * import assert from 'node:assert'; - * import { syncBuiltinESMExports } from 'node:module'; - * - * fs.readFile = newAPI; - * - * delete fs.readFileSync; - * - * function newAPI() { - * // ... - * } - * - * fs.newAPI = newAPI; - * - * syncBuiltinESMExports(); - * - * import('node:fs').then((esmFS) => { - * // It syncs the existing readFile property with the new value - * assert.strictEqual(esmFS.readFile, newAPI); - * // readFileSync has been deleted from the required fs - * assert.strictEqual('readFileSync' in fs, false); - * // syncBuiltinESMExports() does not remove readFileSync from esmFS - * assert.strictEqual('readFileSync' in esmFS, true); - * // syncBuiltinESMExports() does not add names - * assert.strictEqual(esmFS.newAPI, undefined); - * }); - * ``` - * @since v12.12.0 - */ - function syncBuiltinESMExports(): void; - interface ImportAttributes extends NodeJS.Dict { - type?: string | undefined; - } - type ImportPhase = "source" | "evaluation"; - type ModuleFormat = - | "addon" - | "builtin" - | "commonjs" - | "commonjs-typescript" - | "json" - | "module" - | "module-typescript" - | "wasm"; - type ModuleSource = string | ArrayBuffer | NodeJS.TypedArray; - /** - * The `initialize` hook provides a way to define a custom function that runs in - * the hooks thread when the hooks module is initialized. Initialization happens - * when the hooks module is registered via {@link register}. - * - * This hook can receive data from a {@link register} invocation, including - * ports and other transferable objects. The return value of `initialize` can be a - * `Promise`, in which case it will be awaited before the main application thread - * execution resumes. - */ - type InitializeHook = (data: Data) => void | Promise; - interface ResolveHookContext { - /** - * Export conditions of the relevant `package.json` - */ - conditions: string[]; - /** - * An object whose key-value pairs represent the assertions for the module to import - */ - importAttributes: ImportAttributes; - /** - * The module importing this one, or undefined if this is the Node.js entry point - */ - parentURL: string | undefined; - } - interface ResolveFnOutput { - /** - * A hint to the load hook (it might be ignored); can be an intermediary value. - */ - format?: string | null | undefined; - /** - * The import attributes to use when caching the module (optional; if excluded the input will be used) - */ - importAttributes?: ImportAttributes | undefined; - /** - * A signal that this hook intends to terminate the chain of `resolve` hooks. - * @default false - */ - shortCircuit?: boolean | undefined; - /** - * The absolute URL to which this input resolves - */ - url: string; - } - /** - * The `resolve` hook chain is responsible for telling Node.js where to find and - * how to cache a given `import` statement or expression, or `require` call. It can - * optionally return a format (such as `'module'`) as a hint to the `load` hook. If - * a format is specified, the `load` hook is ultimately responsible for providing - * the final `format` value (and it is free to ignore the hint provided by - * `resolve`); if `resolve` provides a `format`, a custom `load` hook is required - * even if only to pass the value to the Node.js default `load` hook. - */ - type ResolveHook = ( - specifier: string, - context: ResolveHookContext, - nextResolve: ( - specifier: string, - context?: Partial, - ) => ResolveFnOutput | Promise, - ) => ResolveFnOutput | Promise; - type ResolveHookSync = ( - specifier: string, - context: ResolveHookContext, - nextResolve: ( - specifier: string, - context?: Partial, - ) => ResolveFnOutput, - ) => ResolveFnOutput; - interface LoadHookContext { - /** - * Export conditions of the relevant `package.json` - */ - conditions: string[]; - /** - * The format optionally supplied by the `resolve` hook chain (can be an intermediary value). - */ - format: string | null | undefined; - /** - * An object whose key-value pairs represent the assertions for the module to import - */ - importAttributes: ImportAttributes; - } - interface LoadFnOutput { - format: string | null | undefined; - /** - * A signal that this hook intends to terminate the chain of `resolve` hooks. - * @default false - */ - shortCircuit?: boolean | undefined; - /** - * The source for Node.js to evaluate - */ - source?: ModuleSource | undefined; - } - /** - * The `load` hook provides a way to define a custom method of determining how a - * URL should be interpreted, retrieved, and parsed. It is also in charge of - * validating the import attributes. - */ - type LoadHook = ( - url: string, - context: LoadHookContext, - nextLoad: ( - url: string, - context?: Partial, - ) => LoadFnOutput | Promise, - ) => LoadFnOutput | Promise; - type LoadHookSync = ( - url: string, - context: LoadHookContext, - nextLoad: ( - url: string, - context?: Partial, - ) => LoadFnOutput, - ) => LoadFnOutput; - interface SourceMapsSupport { - /** - * If the source maps support is enabled - */ - enabled: boolean; - /** - * If the support is enabled for files in `node_modules`. - */ - nodeModules: boolean; - /** - * If the support is enabled for generated code from `eval` or `new Function`. - */ - generatedCode: boolean; - } - /** - * This method returns whether the [Source Map v3](https://tc39.es/ecma426/) support for stack - * traces is enabled. - * @since v23.7.0, v22.14.0 - */ - function getSourceMapsSupport(): SourceMapsSupport; - /** - * `path` is the resolved path for the file for which a corresponding source map - * should be fetched. - * @since v13.7.0, v12.17.0 - * @return Returns `module.SourceMap` if a source map is found, `undefined` otherwise. - */ - function findSourceMap(path: string): SourceMap | undefined; - interface SetSourceMapsSupportOptions { - /** - * If enabling the support for files in `node_modules`. - * @default false - */ - nodeModules?: boolean | undefined; - /** - * If enabling the support for generated code from `eval` or `new Function`. - * @default false - */ - generatedCode?: boolean | undefined; - } - /** - * This function enables or disables the [Source Map v3](https://tc39.es/ecma426/) support for - * stack traces. - * - * It provides same features as launching Node.js process with commandline options - * `--enable-source-maps`, with additional options to alter the support for files - * in `node_modules` or generated codes. - * - * Only source maps in JavaScript files that are loaded after source maps has been - * enabled will be parsed and loaded. Preferably, use the commandline options - * `--enable-source-maps` to avoid losing track of source maps of modules loaded - * before this API call. - * @since v23.7.0, v22.14.0 - */ - function setSourceMapsSupport(enabled: boolean, options?: SetSourceMapsSupportOptions): void; - interface SourceMapConstructorOptions { - /** - * @since v21.0.0, v20.5.0 - */ - lineLengths?: readonly number[] | undefined; - } - interface SourceMapPayload { - file: string; - version: number; - sources: string[]; - sourcesContent: string[]; - names: string[]; - mappings: string; - sourceRoot: string; - } - interface SourceMapping { - generatedLine: number; - generatedColumn: number; - originalSource: string; - originalLine: number; - originalColumn: number; - } - interface SourceOrigin { - /** - * The name of the range in the source map, if one was provided - */ - name: string | undefined; - /** - * The file name of the original source, as reported in the SourceMap - */ - fileName: string; - /** - * The 1-indexed lineNumber of the corresponding call site in the original source - */ - lineNumber: number; - /** - * The 1-indexed columnNumber of the corresponding call site in the original source - */ - columnNumber: number; - } - /** - * @since v13.7.0, v12.17.0 - */ - class SourceMap { - constructor(payload: SourceMapPayload, options?: SourceMapConstructorOptions); - /** - * Getter for the payload used to construct the `SourceMap` instance. - */ - readonly payload: SourceMapPayload; - /** - * Given a line offset and column offset in the generated source - * file, returns an object representing the SourceMap range in the - * original file if found, or an empty object if not. - * - * The object returned contains the following keys: - * - * The returned value represents the raw range as it appears in the - * SourceMap, based on zero-indexed offsets, _not_ 1-indexed line and - * column numbers as they appear in Error messages and CallSite - * objects. - * - * To get the corresponding 1-indexed line and column numbers from a - * lineNumber and columnNumber as they are reported by Error stacks - * and CallSite objects, use `sourceMap.findOrigin(lineNumber, columnNumber)` - * @param lineOffset The zero-indexed line number offset in the generated source - * @param columnOffset The zero-indexed column number offset in the generated source - */ - findEntry(lineOffset: number, columnOffset: number): SourceMapping | {}; - /** - * Given a 1-indexed `lineNumber` and `columnNumber` from a call site in the generated source, - * find the corresponding call site location in the original source. - * - * If the `lineNumber` and `columnNumber` provided are not found in any source map, - * then an empty object is returned. - * @param lineNumber The 1-indexed line number of the call site in the generated source - * @param columnNumber The 1-indexed column number of the call site in the generated source - */ - findOrigin(lineNumber: number, columnNumber: number): SourceOrigin | {}; - } - function runMain(main?: string): void; - function wrap(script: string): string; - } - global { - interface ImportMeta { - /** - * The directory name of the current module. - * - * This is the same as the `path.dirname()` of the `import.meta.filename`. - * - * > **Caveat**: only present on `file:` modules. - * @since v21.2.0, v20.11.0 - */ - dirname: string; - /** - * The full absolute path and filename of the current module, with - * symlinks resolved. - * - * This is the same as the `url.fileURLToPath()` of the `import.meta.url`. - * - * > **Caveat** only local modules support this property. Modules not using the - * > `file:` protocol will not provide it. - * @since v21.2.0, v20.11.0 - */ - filename: string; - /** - * The absolute `file:` URL of the module. - * - * This is defined exactly the same as it is in browsers providing the URL of the - * current module file. - * - * This enables useful patterns such as relative file loading: - * - * ```js - * import { readFileSync } from 'node:fs'; - * const buffer = readFileSync(new URL('./data.proto', import.meta.url)); - * ``` - */ - url: string; - /** - * `import.meta.resolve` is a module-relative resolution function scoped to - * each module, returning the URL string. - * - * ```js - * const dependencyAsset = import.meta.resolve('component-lib/asset.css'); - * // file:///app/node_modules/component-lib/asset.css - * import.meta.resolve('./dep.js'); - * // file:///app/dep.js - * ``` - * - * All features of the Node.js module resolution are supported. Dependency - * resolutions are subject to the permitted exports resolutions within the package. - * - * **Caveats**: - * - * * This can result in synchronous file-system operations, which - * can impact performance similarly to `require.resolve`. - * * This feature is not available within custom loaders (it would - * create a deadlock). - * @since v13.9.0, v12.16.0 - * @param specifier The module specifier to resolve relative to the - * current module. - * @param parent An optional absolute parent module URL to resolve from. - * **Default:** `import.meta.url` - * @returns The absolute URL string that the specifier would resolve to. - */ - resolve(specifier: string, parent?: string | URL): string; - /** - * `true` when the current module is the entry point of the current process; `false` otherwise. - * - * Equivalent to `require.main === module` in CommonJS. - * - * Analogous to Python's `__name__ == "__main__"`. - * - * ```js - * export function foo() { - * return 'Hello, world'; - * } - * - * function main() { - * const message = foo(); - * console.log(message); - * } - * - * if (import.meta.main) main(); - * // `foo` can be imported from another module without possible side-effects from `main` - * ``` - * @since v24.2.0 - * @experimental - */ - main: boolean; - } - namespace NodeJS { - interface Module { - /** - * The module objects required for the first time by this one. - * @since v0.1.16 - */ - children: Module[]; - /** - * The `module.exports` object is created by the `Module` system. Sometimes this is - * not acceptable; many want their module to be an instance of some class. To do - * this, assign the desired export object to `module.exports`. - * @since v0.1.16 - */ - exports: any; - /** - * The fully resolved filename of the module. - * @since v0.1.16 - */ - filename: string; - /** - * The identifier for the module. Typically this is the fully resolved - * filename. - * @since v0.1.16 - */ - id: string; - /** - * `true` if the module is running during the Node.js preload - * phase. - * @since v15.4.0, v14.17.0 - */ - isPreloading: boolean; - /** - * Whether or not the module is done loading, or is in the process of - * loading. - * @since v0.1.16 - */ - loaded: boolean; - /** - * The module that first required this one, or `null` if the current module is the - * entry point of the current process, or `undefined` if the module was loaded by - * something that is not a CommonJS module (e.g. REPL or `import`). - * @since v0.1.16 - * @deprecated Please use `require.main` and `module.children` instead. - */ - parent: Module | null | undefined; - /** - * The directory name of the module. This is usually the same as the - * `path.dirname()` of the `module.id`. - * @since v11.14.0 - */ - path: string; - /** - * The search paths for the module. - * @since v0.4.0 - */ - paths: string[]; - /** - * The `module.require()` method provides a way to load a module as if - * `require()` was called from the original module. - * @since v0.5.1 - */ - require(id: string): any; - } - interface Require { - /** - * Used to import modules, `JSON`, and local files. - * @since v0.1.13 - */ - (id: string): any; - /** - * Modules are cached in this object when they are required. By deleting a key - * value from this object, the next `require` will reload the module. - * This does not apply to - * [native addons](https://nodejs.org/docs/latest-v24.x/api/addons.html), - * for which reloading will result in an error. - * @since v0.3.0 - */ - cache: Dict; - /** - * Instruct `require` on how to handle certain file extensions. - * @since v0.3.0 - * @deprecated - */ - extensions: RequireExtensions; - /** - * The `Module` object representing the entry script loaded when the Node.js - * process launched, or `undefined` if the entry point of the program is not a - * CommonJS module. - * @since v0.1.17 - */ - main: Module | undefined; - /** - * @since v0.3.0 - */ - resolve: RequireResolve; - } - /** @deprecated */ - interface RequireExtensions extends Dict<(module: Module, filename: string) => any> { - ".js": (module: Module, filename: string) => any; - ".json": (module: Module, filename: string) => any; - ".node": (module: Module, filename: string) => any; - } - interface RequireResolveOptions { - /** - * Paths to resolve module location from. If present, these - * paths are used instead of the default resolution paths, with the exception - * of - * [GLOBAL\_FOLDERS](https://nodejs.org/docs/latest-v24.x/api/modules.html#loading-from-the-global-folders) - * like `$HOME/.node_modules`, which are - * always included. Each of these paths is used as a starting point for - * the module resolution algorithm, meaning that the `node_modules` hierarchy - * is checked from this location. - * @since v8.9.0 - */ - paths?: string[] | undefined; - } - interface RequireResolve { - /** - * Use the internal `require()` machinery to look up the location of a module, - * but rather than loading the module, just return the resolved filename. - * - * If the module can not be found, a `MODULE_NOT_FOUND` error is thrown. - * @since v0.3.0 - * @param request The module path to resolve. - */ - (request: string, options?: RequireResolveOptions): string; - /** - * Returns an array containing the paths searched during resolution of `request` or - * `null` if the `request` string references a core module, for example `http` or - * `fs`. - * @since v8.9.0 - * @param request The module path whose lookup paths are being retrieved. - */ - paths(request: string): string[] | null; - } - } - /** - * The directory name of the current module. This is the same as the - * `path.dirname()` of the `__filename`. - * @since v0.1.27 - */ - var __dirname: string; - /** - * The file name of the current module. This is the current module file's absolute - * path with symlinks resolved. - * - * For a main program this is not necessarily the same as the file name used in the - * command line. - * @since v0.0.1 - */ - var __filename: string; - /** - * The `exports` variable is available within a module's file-level scope, and is - * assigned the value of `module.exports` before the module is evaluated. - * @since v0.1.16 - */ - var exports: NodeJS.Module["exports"]; - /** - * A reference to the current module. - * @since v0.1.16 - */ - var module: NodeJS.Module; - /** - * @since v0.1.13 - */ - var require: NodeJS.Require; - // Global-scope aliases for backwards compatibility with @types/node <13.0.x - // TODO: consider removing in a future major version update - /** @deprecated Use `NodeJS.Module` instead. */ - interface NodeModule extends NodeJS.Module {} - /** @deprecated Use `NodeJS.Require` instead. */ - interface NodeRequire extends NodeJS.Require {} - /** @deprecated Use `NodeJS.RequireResolve` instead. */ - interface RequireResolve extends NodeJS.RequireResolve {} - } - export = Module; -} -declare module "node:module" { - import module = require("module"); - export = module; -} diff --git a/build_vtk_bundle/node_modules/@types/node/net.d.ts b/build_vtk_bundle/node_modules/@types/node/net.d.ts deleted file mode 100644 index 38c16275..00000000 --- a/build_vtk_bundle/node_modules/@types/node/net.d.ts +++ /dev/null @@ -1,1054 +0,0 @@ -/** - * > Stability: 2 - Stable - * - * The `node:net` module provides an asynchronous network API for creating stream-based - * TCP or `IPC` servers ({@link createServer}) and clients - * ({@link createConnection}). - * - * It can be accessed using: - * - * ```js - * import net from 'node:net'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/net.js) - */ -declare module "net" { - import { NonSharedBuffer } from "node:buffer"; - import * as stream from "node:stream"; - import { Abortable, EventEmitter } from "node:events"; - import * as dns from "node:dns"; - type LookupFunction = ( - hostname: string, - options: dns.LookupOptions, - callback: (err: NodeJS.ErrnoException | null, address: string | dns.LookupAddress[], family?: number) => void, - ) => void; - interface AddressInfo { - address: string; - family: string; - port: number; - } - interface SocketConstructorOpts { - fd?: number | undefined; - allowHalfOpen?: boolean | undefined; - onread?: OnReadOpts | undefined; - readable?: boolean | undefined; - writable?: boolean | undefined; - signal?: AbortSignal | undefined; - } - interface OnReadOpts { - buffer: Uint8Array | (() => Uint8Array); - /** - * This function is called for every chunk of incoming data. - * Two arguments are passed to it: the number of bytes written to `buffer` and a reference to `buffer`. - * Return `false` from this function to implicitly `pause()` the socket. - */ - callback(bytesWritten: number, buffer: Uint8Array): boolean; - } - interface TcpSocketConnectOpts { - port: number; - host?: string | undefined; - localAddress?: string | undefined; - localPort?: number | undefined; - hints?: number | undefined; - family?: number | undefined; - lookup?: LookupFunction | undefined; - noDelay?: boolean | undefined; - keepAlive?: boolean | undefined; - keepAliveInitialDelay?: number | undefined; - /** - * @since v18.13.0 - */ - autoSelectFamily?: boolean | undefined; - /** - * @since v18.13.0 - */ - autoSelectFamilyAttemptTimeout?: number | undefined; - blockList?: BlockList | undefined; - } - interface IpcSocketConnectOpts { - path: string; - } - type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts; - type SocketReadyState = "opening" | "open" | "readOnly" | "writeOnly" | "closed"; - /** - * This class is an abstraction of a TCP socket or a streaming `IPC` endpoint - * (uses named pipes on Windows, and Unix domain sockets otherwise). It is also - * an `EventEmitter`. - * - * A `net.Socket` can be created by the user and used directly to interact with - * a server. For example, it is returned by {@link createConnection}, - * so the user can use it to talk to the server. - * - * It can also be created by Node.js and passed to the user when a connection - * is received. For example, it is passed to the listeners of a `'connection'` event emitted on a {@link Server}, so the user can use - * it to interact with the client. - * @since v0.3.4 - */ - class Socket extends stream.Duplex { - constructor(options?: SocketConstructorOpts); - /** - * Destroys the socket after all data is written. If the `finish` event was already emitted the socket is destroyed immediately. - * If the socket is still writable it implicitly calls `socket.end()`. - * @since v0.3.4 - */ - destroySoon(): void; - /** - * Sends data on the socket. The second parameter specifies the encoding in the - * case of a string. It defaults to UTF8 encoding. - * - * Returns `true` if the entire data was flushed successfully to the kernel - * buffer. Returns `false` if all or part of the data was queued in user memory.`'drain'` will be emitted when the buffer is again free. - * - * The optional `callback` parameter will be executed when the data is finally - * written out, which may not be immediately. - * - * See `Writable` stream `write()` method for more - * information. - * @since v0.1.90 - * @param [encoding='utf8'] Only used when data is `string`. - */ - write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean; - write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean; - /** - * Initiate a connection on a given socket. - * - * Possible signatures: - * - * * `socket.connect(options[, connectListener])` - * * `socket.connect(path[, connectListener])` for `IPC` connections. - * * `socket.connect(port[, host][, connectListener])` for TCP connections. - * * Returns: `net.Socket` The socket itself. - * - * This function is asynchronous. When the connection is established, the `'connect'` event will be emitted. If there is a problem connecting, - * instead of a `'connect'` event, an `'error'` event will be emitted with - * the error passed to the `'error'` listener. - * The last parameter `connectListener`, if supplied, will be added as a listener - * for the `'connect'` event **once**. - * - * This function should only be used for reconnecting a socket after`'close'` has been emitted or otherwise it may lead to undefined - * behavior. - */ - connect(options: SocketConnectOpts, connectionListener?: () => void): this; - connect(port: number, host: string, connectionListener?: () => void): this; - connect(port: number, connectionListener?: () => void): this; - connect(path: string, connectionListener?: () => void): this; - /** - * Set the encoding for the socket as a `Readable Stream`. See `readable.setEncoding()` for more information. - * @since v0.1.90 - * @return The socket itself. - */ - setEncoding(encoding?: BufferEncoding): this; - /** - * Pauses the reading of data. That is, `'data'` events will not be emitted. - * Useful to throttle back an upload. - * @return The socket itself. - */ - pause(): this; - /** - * Close the TCP connection by sending an RST packet and destroy the stream. - * If this TCP socket is in connecting status, it will send an RST packet and destroy this TCP socket once it is connected. - * Otherwise, it will call `socket.destroy` with an `ERR_SOCKET_CLOSED` Error. - * If this is not a TCP socket (for example, a pipe), calling this method will immediately throw an `ERR_INVALID_HANDLE_TYPE` Error. - * @since v18.3.0, v16.17.0 - */ - resetAndDestroy(): this; - /** - * Resumes reading after a call to `socket.pause()`. - * @return The socket itself. - */ - resume(): this; - /** - * Sets the socket to timeout after `timeout` milliseconds of inactivity on - * the socket. By default `net.Socket` do not have a timeout. - * - * When an idle timeout is triggered the socket will receive a `'timeout'` event but the connection will not be severed. The user must manually call `socket.end()` or `socket.destroy()` to - * end the connection. - * - * ```js - * socket.setTimeout(3000); - * socket.on('timeout', () => { - * console.log('socket timeout'); - * socket.end(); - * }); - * ``` - * - * If `timeout` is 0, then the existing idle timeout is disabled. - * - * The optional `callback` parameter will be added as a one-time listener for the `'timeout'` event. - * @since v0.1.90 - * @return The socket itself. - */ - setTimeout(timeout: number, callback?: () => void): this; - /** - * Enable/disable the use of Nagle's algorithm. - * - * When a TCP connection is created, it will have Nagle's algorithm enabled. - * - * Nagle's algorithm delays data before it is sent via the network. It attempts - * to optimize throughput at the expense of latency. - * - * Passing `true` for `noDelay` or not passing an argument will disable Nagle's - * algorithm for the socket. Passing `false` for `noDelay` will enable Nagle's - * algorithm. - * @since v0.1.90 - * @param [noDelay=true] - * @return The socket itself. - */ - setNoDelay(noDelay?: boolean): this; - /** - * Enable/disable keep-alive functionality, and optionally set the initial - * delay before the first keepalive probe is sent on an idle socket. - * - * Set `initialDelay` (in milliseconds) to set the delay between the last - * data packet received and the first keepalive probe. Setting `0` for`initialDelay` will leave the value unchanged from the default - * (or previous) setting. - * - * Enabling the keep-alive functionality will set the following socket options: - * - * * `SO_KEEPALIVE=1` - * * `TCP_KEEPIDLE=initialDelay` - * * `TCP_KEEPCNT=10` - * * `TCP_KEEPINTVL=1` - * @since v0.1.92 - * @param [enable=false] - * @param [initialDelay=0] - * @return The socket itself. - */ - setKeepAlive(enable?: boolean, initialDelay?: number): this; - /** - * Returns the bound `address`, the address `family` name and `port` of the - * socket as reported by the operating system:`{ port: 12346, family: 'IPv4', address: '127.0.0.1' }` - * @since v0.1.90 - */ - address(): AddressInfo | {}; - /** - * Calling `unref()` on a socket will allow the program to exit if this is the only - * active socket in the event system. If the socket is already `unref`ed calling`unref()` again will have no effect. - * @since v0.9.1 - * @return The socket itself. - */ - unref(): this; - /** - * Opposite of `unref()`, calling `ref()` on a previously `unref`ed socket will _not_ let the program exit if it's the only socket left (the default behavior). - * If the socket is `ref`ed calling `ref` again will have no effect. - * @since v0.9.1 - * @return The socket itself. - */ - ref(): this; - /** - * This property is only present if the family autoselection algorithm is enabled in `socket.connect(options)` - * and it is an array of the addresses that have been attempted. - * - * Each address is a string in the form of `$IP:$PORT`. - * If the connection was successful, then the last address is the one that the socket is currently connected to. - * @since v19.4.0 - */ - readonly autoSelectFamilyAttemptedAddresses: string[]; - /** - * This property shows the number of characters buffered for writing. The buffer - * may contain strings whose length after encoding is not yet known. So this number - * is only an approximation of the number of bytes in the buffer. - * - * `net.Socket` has the property that `socket.write()` always works. This is to - * help users get up and running quickly. The computer cannot always keep up - * with the amount of data that is written to a socket. The network connection - * simply might be too slow. Node.js will internally queue up the data written to a - * socket and send it out over the wire when it is possible. - * - * The consequence of this internal buffering is that memory may grow. - * Users who experience large or growing `bufferSize` should attempt to - * "throttle" the data flows in their program with `socket.pause()` and `socket.resume()`. - * @since v0.3.8 - * @deprecated Since v14.6.0 - Use `writableLength` instead. - */ - readonly bufferSize: number; - /** - * The amount of received bytes. - * @since v0.5.3 - */ - readonly bytesRead: number; - /** - * The amount of bytes sent. - * @since v0.5.3 - */ - readonly bytesWritten: number; - /** - * If `true`, `socket.connect(options[, connectListener])` was - * called and has not yet finished. It will stay `true` until the socket becomes - * connected, then it is set to `false` and the `'connect'` event is emitted. Note - * that the `socket.connect(options[, connectListener])` callback is a listener for the `'connect'` event. - * @since v6.1.0 - */ - readonly connecting: boolean; - /** - * This is `true` if the socket is not connected yet, either because `.connect()`has not yet been called or because it is still in the process of connecting - * (see `socket.connecting`). - * @since v11.2.0, v10.16.0 - */ - readonly pending: boolean; - /** - * See `writable.destroyed` for further details. - */ - readonly destroyed: boolean; - /** - * The string representation of the local IP address the remote client is - * connecting on. For example, in a server listening on `'0.0.0.0'`, if a client - * connects on `'192.168.1.1'`, the value of `socket.localAddress` would be`'192.168.1.1'`. - * @since v0.9.6 - */ - readonly localAddress?: string; - /** - * The numeric representation of the local port. For example, `80` or `21`. - * @since v0.9.6 - */ - readonly localPort?: number; - /** - * The string representation of the local IP family. `'IPv4'` or `'IPv6'`. - * @since v18.8.0, v16.18.0 - */ - readonly localFamily?: string; - /** - * This property represents the state of the connection as a string. - * - * * If the stream is connecting `socket.readyState` is `opening`. - * * If the stream is readable and writable, it is `open`. - * * If the stream is readable and not writable, it is `readOnly`. - * * If the stream is not readable and writable, it is `writeOnly`. - * @since v0.5.0 - */ - readonly readyState: SocketReadyState; - /** - * The string representation of the remote IP address. For example,`'74.125.127.100'` or `'2001:4860:a005::68'`. Value may be `undefined` if - * the socket is destroyed (for example, if the client disconnected). - * @since v0.5.10 - */ - readonly remoteAddress: string | undefined; - /** - * The string representation of the remote IP family. `'IPv4'` or `'IPv6'`. Value may be `undefined` if - * the socket is destroyed (for example, if the client disconnected). - * @since v0.11.14 - */ - readonly remoteFamily: string | undefined; - /** - * The numeric representation of the remote port. For example, `80` or `21`. Value may be `undefined` if - * the socket is destroyed (for example, if the client disconnected). - * @since v0.5.10 - */ - readonly remotePort: number | undefined; - /** - * The socket timeout in milliseconds as set by `socket.setTimeout()`. - * It is `undefined` if a timeout has not been set. - * @since v10.7.0 - */ - readonly timeout?: number; - /** - * Half-closes the socket. i.e., it sends a FIN packet. It is possible the - * server will still send some data. - * - * See `writable.end()` for further details. - * @since v0.1.90 - * @param [encoding='utf8'] Only used when data is `string`. - * @param callback Optional callback for when the socket is finished. - * @return The socket itself. - */ - end(callback?: () => void): this; - end(buffer: Uint8Array | string, callback?: () => void): this; - end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): this; - /** - * events.EventEmitter - * 1. close - * 2. connect - * 3. connectionAttempt - * 4. connectionAttemptFailed - * 5. connectionAttemptTimeout - * 6. data - * 7. drain - * 8. end - * 9. error - * 10. lookup - * 11. ready - * 12. timeout - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: (hadError: boolean) => void): this; - addListener(event: "connect", listener: () => void): this; - addListener(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this; - addListener( - event: "connectionAttemptFailed", - listener: (ip: string, port: number, family: number, error: Error) => void, - ): this; - addListener( - event: "connectionAttemptTimeout", - listener: (ip: string, port: number, family: number) => void, - ): this; - addListener(event: "data", listener: (data: NonSharedBuffer) => void): this; - addListener(event: "drain", listener: () => void): this; - addListener(event: "end", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener( - event: "lookup", - listener: (err: Error, address: string, family: string | number, host: string) => void, - ): this; - addListener(event: "ready", listener: () => void): this; - addListener(event: "timeout", listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "close", hadError: boolean): boolean; - emit(event: "connect"): boolean; - emit(event: "connectionAttempt", ip: string, port: number, family: number): boolean; - emit(event: "connectionAttemptFailed", ip: string, port: number, family: number, error: Error): boolean; - emit(event: "connectionAttemptTimeout", ip: string, port: number, family: number): boolean; - emit(event: "data", data: NonSharedBuffer): boolean; - emit(event: "drain"): boolean; - emit(event: "end"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "lookup", err: Error, address: string, family: string | number, host: string): boolean; - emit(event: "ready"): boolean; - emit(event: "timeout"): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: (hadError: boolean) => void): this; - on(event: "connect", listener: () => void): this; - on(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this; - on( - event: "connectionAttemptFailed", - listener: (ip: string, port: number, family: number, error: Error) => void, - ): this; - on(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this; - on(event: "data", listener: (data: NonSharedBuffer) => void): this; - on(event: "drain", listener: () => void): this; - on(event: "end", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on( - event: "lookup", - listener: (err: Error, address: string, family: string | number, host: string) => void, - ): this; - on(event: "ready", listener: () => void): this; - on(event: "timeout", listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: (hadError: boolean) => void): this; - once(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this; - once( - event: "connectionAttemptFailed", - listener: (ip: string, port: number, family: number, error: Error) => void, - ): this; - once(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this; - once(event: "connect", listener: () => void): this; - once(event: "data", listener: (data: NonSharedBuffer) => void): this; - once(event: "drain", listener: () => void): this; - once(event: "end", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once( - event: "lookup", - listener: (err: Error, address: string, family: string | number, host: string) => void, - ): this; - once(event: "ready", listener: () => void): this; - once(event: "timeout", listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: (hadError: boolean) => void): this; - prependListener(event: "connect", listener: () => void): this; - prependListener(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this; - prependListener( - event: "connectionAttemptFailed", - listener: (ip: string, port: number, family: number, error: Error) => void, - ): this; - prependListener( - event: "connectionAttemptTimeout", - listener: (ip: string, port: number, family: number) => void, - ): this; - prependListener(event: "data", listener: (data: NonSharedBuffer) => void): this; - prependListener(event: "drain", listener: () => void): this; - prependListener(event: "end", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener( - event: "lookup", - listener: (err: Error, address: string, family: string | number, host: string) => void, - ): this; - prependListener(event: "ready", listener: () => void): this; - prependListener(event: "timeout", listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: (hadError: boolean) => void): this; - prependOnceListener(event: "connect", listener: () => void): this; - prependOnceListener( - event: "connectionAttempt", - listener: (ip: string, port: number, family: number) => void, - ): this; - prependOnceListener( - event: "connectionAttemptFailed", - listener: (ip: string, port: number, family: number, error: Error) => void, - ): this; - prependOnceListener( - event: "connectionAttemptTimeout", - listener: (ip: string, port: number, family: number) => void, - ): this; - prependOnceListener(event: "data", listener: (data: NonSharedBuffer) => void): this; - prependOnceListener(event: "drain", listener: () => void): this; - prependOnceListener(event: "end", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener( - event: "lookup", - listener: (err: Error, address: string, family: string | number, host: string) => void, - ): this; - prependOnceListener(event: "ready", listener: () => void): this; - prependOnceListener(event: "timeout", listener: () => void): this; - } - interface ListenOptions extends Abortable { - backlog?: number | undefined; - exclusive?: boolean | undefined; - host?: string | undefined; - /** - * @default false - */ - ipv6Only?: boolean | undefined; - reusePort?: boolean | undefined; - path?: string | undefined; - port?: number | undefined; - readableAll?: boolean | undefined; - writableAll?: boolean | undefined; - } - interface ServerOpts { - /** - * Indicates whether half-opened TCP connections are allowed. - * @default false - */ - allowHalfOpen?: boolean | undefined; - /** - * Indicates whether the socket should be paused on incoming connections. - * @default false - */ - pauseOnConnect?: boolean | undefined; - /** - * If set to `true`, it disables the use of Nagle's algorithm immediately after a new incoming connection is received. - * @default false - * @since v16.5.0 - */ - noDelay?: boolean | undefined; - /** - * If set to `true`, it enables keep-alive functionality on the socket immediately after a new incoming connection is received, - * similarly on what is done in `socket.setKeepAlive([enable][, initialDelay])`. - * @default false - * @since v16.5.0 - */ - keepAlive?: boolean | undefined; - /** - * If set to a positive number, it sets the initial delay before the first keepalive probe is sent on an idle socket. - * @default 0 - * @since v16.5.0 - */ - keepAliveInitialDelay?: number | undefined; - /** - * Optionally overrides all `net.Socket`s' `readableHighWaterMark` and `writableHighWaterMark`. - * @default See [stream.getDefaultHighWaterMark()](https://nodejs.org/docs/latest-v24.x/api/stream.html#streamgetdefaulthighwatermarkobjectmode). - * @since v18.17.0, v20.1.0 - */ - highWaterMark?: number | undefined; - /** - * `blockList` can be used for disabling inbound - * access to specific IP addresses, IP ranges, or IP subnets. This does not - * work if the server is behind a reverse proxy, NAT, etc. because the address - * checked against the block list is the address of the proxy, or the one - * specified by the NAT. - * @since v22.13.0 - */ - blockList?: BlockList | undefined; - } - interface DropArgument { - localAddress?: string; - localPort?: number; - localFamily?: string; - remoteAddress?: string; - remotePort?: number; - remoteFamily?: string; - } - /** - * This class is used to create a TCP or `IPC` server. - * @since v0.1.90 - */ - class Server extends EventEmitter { - constructor(connectionListener?: (socket: Socket) => void); - constructor(options?: ServerOpts, connectionListener?: (socket: Socket) => void); - /** - * Start a server listening for connections. A `net.Server` can be a TCP or - * an `IPC` server depending on what it listens to. - * - * Possible signatures: - * - * * `server.listen(handle[, backlog][, callback])` - * * `server.listen(options[, callback])` - * * `server.listen(path[, backlog][, callback])` for `IPC` servers - * * `server.listen([port[, host[, backlog]]][, callback])` for TCP servers - * - * This function is asynchronous. When the server starts listening, the `'listening'` event will be emitted. The last parameter `callback`will be added as a listener for the `'listening'` - * event. - * - * All `listen()` methods can take a `backlog` parameter to specify the maximum - * length of the queue of pending connections. The actual length will be determined - * by the OS through sysctl settings such as `tcp_max_syn_backlog` and `somaxconn` on Linux. The default value of this parameter is 511 (not 512). - * - * All {@link Socket} are set to `SO_REUSEADDR` (see [`socket(7)`](https://man7.org/linux/man-pages/man7/socket.7.html) for - * details). - * - * The `server.listen()` method can be called again if and only if there was an - * error during the first `server.listen()` call or `server.close()` has been - * called. Otherwise, an `ERR_SERVER_ALREADY_LISTEN` error will be thrown. - * - * One of the most common errors raised when listening is `EADDRINUSE`. - * This happens when another server is already listening on the requested`port`/`path`/`handle`. One way to handle this would be to retry - * after a certain amount of time: - * - * ```js - * server.on('error', (e) => { - * if (e.code === 'EADDRINUSE') { - * console.error('Address in use, retrying...'); - * setTimeout(() => { - * server.close(); - * server.listen(PORT, HOST); - * }, 1000); - * } - * }); - * ``` - */ - listen(port?: number, hostname?: string, backlog?: number, listeningListener?: () => void): this; - listen(port?: number, hostname?: string, listeningListener?: () => void): this; - listen(port?: number, backlog?: number, listeningListener?: () => void): this; - listen(port?: number, listeningListener?: () => void): this; - listen(path: string, backlog?: number, listeningListener?: () => void): this; - listen(path: string, listeningListener?: () => void): this; - listen(options: ListenOptions, listeningListener?: () => void): this; - listen(handle: any, backlog?: number, listeningListener?: () => void): this; - listen(handle: any, listeningListener?: () => void): this; - /** - * Stops the server from accepting new connections and keeps existing - * connections. This function is asynchronous, the server is finally closed - * when all connections are ended and the server emits a `'close'` event. - * The optional `callback` will be called once the `'close'` event occurs. Unlike - * that event, it will be called with an `Error` as its only argument if the server - * was not open when it was closed. - * @since v0.1.90 - * @param callback Called when the server is closed. - */ - close(callback?: (err?: Error) => void): this; - /** - * Returns the bound `address`, the address `family` name, and `port` of the server - * as reported by the operating system if listening on an IP socket - * (useful to find which port was assigned when getting an OS-assigned address):`{ port: 12346, family: 'IPv4', address: '127.0.0.1' }`. - * - * For a server listening on a pipe or Unix domain socket, the name is returned - * as a string. - * - * ```js - * const server = net.createServer((socket) => { - * socket.end('goodbye\n'); - * }).on('error', (err) => { - * // Handle errors here. - * throw err; - * }); - * - * // Grab an arbitrary unused port. - * server.listen(() => { - * console.log('opened server on', server.address()); - * }); - * ``` - * - * `server.address()` returns `null` before the `'listening'` event has been - * emitted or after calling `server.close()`. - * @since v0.1.90 - */ - address(): AddressInfo | string | null; - /** - * Asynchronously get the number of concurrent connections on the server. Works - * when sockets were sent to forks. - * - * Callback should take two arguments `err` and `count`. - * @since v0.9.7 - */ - getConnections(cb: (error: Error | null, count: number) => void): this; - /** - * Opposite of `unref()`, calling `ref()` on a previously `unref`ed server will _not_ let the program exit if it's the only server left (the default behavior). - * If the server is `ref`ed calling `ref()` again will have no effect. - * @since v0.9.1 - */ - ref(): this; - /** - * Calling `unref()` on a server will allow the program to exit if this is the only - * active server in the event system. If the server is already `unref`ed calling`unref()` again will have no effect. - * @since v0.9.1 - */ - unref(): this; - /** - * Set this property to reject connections when the server's connection count gets - * high. - * - * It is not recommended to use this option once a socket has been sent to a child - * with `child_process.fork()`. - * @since v0.2.0 - */ - maxConnections: number; - connections: number; - /** - * Indicates whether or not the server is listening for connections. - * @since v5.7.0 - */ - readonly listening: boolean; - /** - * events.EventEmitter - * 1. close - * 2. connection - * 3. error - * 4. listening - * 5. drop - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "connection", listener: (socket: Socket) => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "listening", listener: () => void): this; - addListener(event: "drop", listener: (data?: DropArgument) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "close"): boolean; - emit(event: "connection", socket: Socket): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "listening"): boolean; - emit(event: "drop", data?: DropArgument): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: () => void): this; - on(event: "connection", listener: (socket: Socket) => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "listening", listener: () => void): this; - on(event: "drop", listener: (data?: DropArgument) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "connection", listener: (socket: Socket) => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "listening", listener: () => void): this; - once(event: "drop", listener: (data?: DropArgument) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "connection", listener: (socket: Socket) => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "listening", listener: () => void): this; - prependListener(event: "drop", listener: (data?: DropArgument) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "connection", listener: (socket: Socket) => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "listening", listener: () => void): this; - prependOnceListener(event: "drop", listener: (data?: DropArgument) => void): this; - /** - * Calls {@link Server.close()} and returns a promise that fulfills when the server has closed. - * @since v20.5.0 - */ - [Symbol.asyncDispose](): Promise; - } - type IPVersion = "ipv4" | "ipv6"; - /** - * The `BlockList` object can be used with some network APIs to specify rules for - * disabling inbound or outbound access to specific IP addresses, IP ranges, or - * IP subnets. - * @since v15.0.0, v14.18.0 - */ - class BlockList { - /** - * Adds a rule to block the given IP address. - * @since v15.0.0, v14.18.0 - * @param address An IPv4 or IPv6 address. - * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. - */ - addAddress(address: string, type?: IPVersion): void; - addAddress(address: SocketAddress): void; - /** - * Adds a rule to block a range of IP addresses from `start` (inclusive) to`end` (inclusive). - * @since v15.0.0, v14.18.0 - * @param start The starting IPv4 or IPv6 address in the range. - * @param end The ending IPv4 or IPv6 address in the range. - * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. - */ - addRange(start: string, end: string, type?: IPVersion): void; - addRange(start: SocketAddress, end: SocketAddress): void; - /** - * Adds a rule to block a range of IP addresses specified as a subnet mask. - * @since v15.0.0, v14.18.0 - * @param net The network IPv4 or IPv6 address. - * @param prefix The number of CIDR prefix bits. For IPv4, this must be a value between `0` and `32`. For IPv6, this must be between `0` and `128`. - * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. - */ - addSubnet(net: SocketAddress, prefix: number): void; - addSubnet(net: string, prefix: number, type?: IPVersion): void; - /** - * Returns `true` if the given IP address matches any of the rules added to the`BlockList`. - * - * ```js - * const blockList = new net.BlockList(); - * blockList.addAddress('123.123.123.123'); - * blockList.addRange('10.0.0.1', '10.0.0.10'); - * blockList.addSubnet('8592:757c:efae:4e45::', 64, 'ipv6'); - * - * console.log(blockList.check('123.123.123.123')); // Prints: true - * console.log(blockList.check('10.0.0.3')); // Prints: true - * console.log(blockList.check('222.111.111.222')); // Prints: false - * - * // IPv6 notation for IPv4 addresses works: - * console.log(blockList.check('::ffff:7b7b:7b7b', 'ipv6')); // Prints: true - * console.log(blockList.check('::ffff:123.123.123.123', 'ipv6')); // Prints: true - * ``` - * @since v15.0.0, v14.18.0 - * @param address The IP address to check - * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. - */ - check(address: SocketAddress): boolean; - check(address: string, type?: IPVersion): boolean; - /** - * The list of rules added to the blocklist. - * @since v15.0.0, v14.18.0 - */ - rules: readonly string[]; - /** - * Returns `true` if the `value` is a `net.BlockList`. - * @since v22.13.0 - * @param value Any JS value - */ - static isBlockList(value: unknown): value is BlockList; - /** - * ```js - * const blockList = new net.BlockList(); - * const data = [ - * 'Subnet: IPv4 192.168.1.0/24', - * 'Address: IPv4 10.0.0.5', - * 'Range: IPv4 192.168.2.1-192.168.2.10', - * 'Range: IPv4 10.0.0.1-10.0.0.10', - * ]; - * blockList.fromJSON(data); - * blockList.fromJSON(JSON.stringify(data)); - * ``` - * @since v24.5.0 - * @experimental - */ - fromJSON(data: string | readonly string[]): void; - /** - * @since v24.5.0 - * @experimental - */ - toJSON(): readonly string[]; - } - interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts { - timeout?: number | undefined; - } - interface IpcNetConnectOpts extends IpcSocketConnectOpts, SocketConstructorOpts { - timeout?: number | undefined; - } - type NetConnectOpts = TcpNetConnectOpts | IpcNetConnectOpts; - /** - * Creates a new TCP or `IPC` server. - * - * If `allowHalfOpen` is set to `true`, when the other end of the socket - * signals the end of transmission, the server will only send back the end of - * transmission when `socket.end()` is explicitly called. For example, in the - * context of TCP, when a FIN packed is received, a FIN packed is sent - * back only when `socket.end()` is explicitly called. Until then the - * connection is half-closed (non-readable but still writable). See `'end'` event and [RFC 1122](https://tools.ietf.org/html/rfc1122) (section 4.2.2.13) for more information. - * - * If `pauseOnConnect` is set to `true`, then the socket associated with each - * incoming connection will be paused, and no data will be read from its handle. - * This allows connections to be passed between processes without any data being - * read by the original process. To begin reading data from a paused socket, call `socket.resume()`. - * - * The server can be a TCP server or an `IPC` server, depending on what it `listen()` to. - * - * Here is an example of a TCP echo server which listens for connections - * on port 8124: - * - * ```js - * import net from 'node:net'; - * const server = net.createServer((c) => { - * // 'connection' listener. - * console.log('client connected'); - * c.on('end', () => { - * console.log('client disconnected'); - * }); - * c.write('hello\r\n'); - * c.pipe(c); - * }); - * server.on('error', (err) => { - * throw err; - * }); - * server.listen(8124, () => { - * console.log('server bound'); - * }); - * ``` - * - * Test this by using `telnet`: - * - * ```bash - * telnet localhost 8124 - * ``` - * - * To listen on the socket `/tmp/echo.sock`: - * - * ```js - * server.listen('/tmp/echo.sock', () => { - * console.log('server bound'); - * }); - * ``` - * - * Use `nc` to connect to a Unix domain socket server: - * - * ```bash - * nc -U /tmp/echo.sock - * ``` - * @since v0.5.0 - * @param connectionListener Automatically set as a listener for the {@link 'connection'} event. - */ - function createServer(connectionListener?: (socket: Socket) => void): Server; - function createServer(options?: ServerOpts, connectionListener?: (socket: Socket) => void): Server; - /** - * Aliases to {@link createConnection}. - * - * Possible signatures: - * - * * {@link connect} - * * {@link connect} for `IPC` connections. - * * {@link connect} for TCP connections. - */ - function connect(options: NetConnectOpts, connectionListener?: () => void): Socket; - function connect(port: number, host?: string, connectionListener?: () => void): Socket; - function connect(path: string, connectionListener?: () => void): Socket; - /** - * A factory function, which creates a new {@link Socket}, - * immediately initiates connection with `socket.connect()`, - * then returns the `net.Socket` that starts the connection. - * - * When the connection is established, a `'connect'` event will be emitted - * on the returned socket. The last parameter `connectListener`, if supplied, - * will be added as a listener for the `'connect'` event **once**. - * - * Possible signatures: - * - * * {@link createConnection} - * * {@link createConnection} for `IPC` connections. - * * {@link createConnection} for TCP connections. - * - * The {@link connect} function is an alias to this function. - */ - function createConnection(options: NetConnectOpts, connectionListener?: () => void): Socket; - function createConnection(port: number, host?: string, connectionListener?: () => void): Socket; - function createConnection(path: string, connectionListener?: () => void): Socket; - /** - * Gets the current default value of the `autoSelectFamily` option of `socket.connect(options)`. - * The initial default value is `true`, unless the command line option`--no-network-family-autoselection` is provided. - * @since v19.4.0 - */ - function getDefaultAutoSelectFamily(): boolean; - /** - * Sets the default value of the `autoSelectFamily` option of `socket.connect(options)`. - * @param value The new default value. - * The initial default value is `true`, unless the command line option - * `--no-network-family-autoselection` is provided. - * @since v19.4.0 - */ - function setDefaultAutoSelectFamily(value: boolean): void; - /** - * Gets the current default value of the `autoSelectFamilyAttemptTimeout` option of `socket.connect(options)`. - * The initial default value is `250` or the value specified via the command line option `--network-family-autoselection-attempt-timeout`. - * @returns The current default value of the `autoSelectFamilyAttemptTimeout` option. - * @since v19.8.0, v18.8.0 - */ - function getDefaultAutoSelectFamilyAttemptTimeout(): number; - /** - * Sets the default value of the `autoSelectFamilyAttemptTimeout` option of `socket.connect(options)`. - * @param value The new default value, which must be a positive number. If the number is less than `10`, the value `10` is used instead. The initial default value is `250` or the value specified via the command line - * option `--network-family-autoselection-attempt-timeout`. - * @since v19.8.0, v18.8.0 - */ - function setDefaultAutoSelectFamilyAttemptTimeout(value: number): void; - /** - * Returns `6` if `input` is an IPv6 address. Returns `4` if `input` is an IPv4 - * address in [dot-decimal notation](https://en.wikipedia.org/wiki/Dot-decimal_notation) with no leading zeroes. Otherwise, returns`0`. - * - * ```js - * net.isIP('::1'); // returns 6 - * net.isIP('127.0.0.1'); // returns 4 - * net.isIP('127.000.000.001'); // returns 0 - * net.isIP('127.0.0.1/24'); // returns 0 - * net.isIP('fhqwhgads'); // returns 0 - * ``` - * @since v0.3.0 - */ - function isIP(input: string): number; - /** - * Returns `true` if `input` is an IPv4 address in [dot-decimal notation](https://en.wikipedia.org/wiki/Dot-decimal_notation) with no - * leading zeroes. Otherwise, returns `false`. - * - * ```js - * net.isIPv4('127.0.0.1'); // returns true - * net.isIPv4('127.000.000.001'); // returns false - * net.isIPv4('127.0.0.1/24'); // returns false - * net.isIPv4('fhqwhgads'); // returns false - * ``` - * @since v0.3.0 - */ - function isIPv4(input: string): boolean; - /** - * Returns `true` if `input` is an IPv6 address. Otherwise, returns `false`. - * - * ```js - * net.isIPv6('::1'); // returns true - * net.isIPv6('fhqwhgads'); // returns false - * ``` - * @since v0.3.0 - */ - function isIPv6(input: string): boolean; - interface SocketAddressInitOptions { - /** - * The network address as either an IPv4 or IPv6 string. - * @default 127.0.0.1 - */ - address?: string | undefined; - /** - * @default `'ipv4'` - */ - family?: IPVersion | undefined; - /** - * An IPv6 flow-label used only if `family` is `'ipv6'`. - * @default 0 - */ - flowlabel?: number | undefined; - /** - * An IP port. - * @default 0 - */ - port?: number | undefined; - } - /** - * @since v15.14.0, v14.18.0 - */ - class SocketAddress { - constructor(options: SocketAddressInitOptions); - /** - * Either \`'ipv4'\` or \`'ipv6'\`. - * @since v15.14.0, v14.18.0 - */ - readonly address: string; - /** - * Either \`'ipv4'\` or \`'ipv6'\`. - * @since v15.14.0, v14.18.0 - */ - readonly family: IPVersion; - /** - * @since v15.14.0, v14.18.0 - */ - readonly port: number; - /** - * @since v15.14.0, v14.18.0 - */ - readonly flowlabel: number; - /** - * @since v22.13.0 - * @param input An input string containing an IP address and optional port, - * e.g. `123.1.2.3:1234` or `[1::1]:1234`. - * @returns Returns a `SocketAddress` if parsing was successful. - * Otherwise returns `undefined`. - */ - static parse(input: string): SocketAddress | undefined; - } -} -declare module "node:net" { - export * from "net"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/os.d.ts b/build_vtk_bundle/node_modules/@types/node/os.d.ts deleted file mode 100644 index 505f5b44..00000000 --- a/build_vtk_bundle/node_modules/@types/node/os.d.ts +++ /dev/null @@ -1,507 +0,0 @@ -/** - * The `node:os` module provides operating system-related utility methods and - * properties. It can be accessed using: - * - * ```js - * import os from 'node:os'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/os.js) - */ -declare module "os" { - import { NonSharedBuffer } from "buffer"; - interface CpuInfo { - model: string; - speed: number; - times: { - /** The number of milliseconds the CPU has spent in user mode. */ - user: number; - /** The number of milliseconds the CPU has spent in nice mode. */ - nice: number; - /** The number of milliseconds the CPU has spent in sys mode. */ - sys: number; - /** The number of milliseconds the CPU has spent in idle mode. */ - idle: number; - /** The number of milliseconds the CPU has spent in irq mode. */ - irq: number; - }; - } - interface NetworkInterfaceBase { - address: string; - netmask: string; - mac: string; - internal: boolean; - cidr: string | null; - scopeid?: number; - } - interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase { - family: "IPv4"; - } - interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase { - family: "IPv6"; - scopeid: number; - } - interface UserInfo { - username: T; - uid: number; - gid: number; - shell: T | null; - homedir: T; - } - type NetworkInterfaceInfo = NetworkInterfaceInfoIPv4 | NetworkInterfaceInfoIPv6; - /** - * Returns the host name of the operating system as a string. - * @since v0.3.3 - */ - function hostname(): string; - /** - * Returns an array containing the 1, 5, and 15 minute load averages. - * - * The load average is a measure of system activity calculated by the operating - * system and expressed as a fractional number. - * - * The load average is a Unix-specific concept. On Windows, the return value is - * always `[0, 0, 0]`. - * @since v0.3.3 - */ - function loadavg(): number[]; - /** - * Returns the system uptime in number of seconds. - * @since v0.3.3 - */ - function uptime(): number; - /** - * Returns the amount of free system memory in bytes as an integer. - * @since v0.3.3 - */ - function freemem(): number; - /** - * Returns the total amount of system memory in bytes as an integer. - * @since v0.3.3 - */ - function totalmem(): number; - /** - * Returns an array of objects containing information about each logical CPU core. - * The array will be empty if no CPU information is available, such as if the `/proc` file system is unavailable. - * - * The properties included on each object include: - * - * ```js - * [ - * { - * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', - * speed: 2926, - * times: { - * user: 252020, - * nice: 0, - * sys: 30340, - * idle: 1070356870, - * irq: 0, - * }, - * }, - * { - * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', - * speed: 2926, - * times: { - * user: 306960, - * nice: 0, - * sys: 26980, - * idle: 1071569080, - * irq: 0, - * }, - * }, - * { - * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', - * speed: 2926, - * times: { - * user: 248450, - * nice: 0, - * sys: 21750, - * idle: 1070919370, - * irq: 0, - * }, - * }, - * { - * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', - * speed: 2926, - * times: { - * user: 256880, - * nice: 0, - * sys: 19430, - * idle: 1070905480, - * irq: 20, - * }, - * }, - * ] - * ``` - * - * `nice` values are POSIX-only. On Windows, the `nice` values of all processors - * are always 0. - * - * `os.cpus().length` should not be used to calculate the amount of parallelism - * available to an application. Use {@link availableParallelism} for this purpose. - * @since v0.3.3 - */ - function cpus(): CpuInfo[]; - /** - * Returns an estimate of the default amount of parallelism a program should use. - * Always returns a value greater than zero. - * - * This function is a small wrapper about libuv's [`uv_available_parallelism()`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_available_parallelism). - * @since v19.4.0, v18.14.0 - */ - function availableParallelism(): number; - /** - * Returns the operating system name as returned by [`uname(3)`](https://linux.die.net/man/3/uname). For example, it - * returns `'Linux'` on Linux, `'Darwin'` on macOS, and `'Windows_NT'` on Windows. - * - * See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for additional information - * about the output of running [`uname(3)`](https://linux.die.net/man/3/uname) on various operating systems. - * @since v0.3.3 - */ - function type(): string; - /** - * Returns the operating system as a string. - * - * On POSIX systems, the operating system release is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `GetVersionExW()` is used. See - * [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information. - * @since v0.3.3 - */ - function release(): string; - /** - * Returns an object containing network interfaces that have been assigned a - * network address. - * - * Each key on the returned object identifies a network interface. The associated - * value is an array of objects that each describe an assigned network address. - * - * The properties available on the assigned network address object include: - * - * ```js - * { - * lo: [ - * { - * address: '127.0.0.1', - * netmask: '255.0.0.0', - * family: 'IPv4', - * mac: '00:00:00:00:00:00', - * internal: true, - * cidr: '127.0.0.1/8' - * }, - * { - * address: '::1', - * netmask: 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff', - * family: 'IPv6', - * mac: '00:00:00:00:00:00', - * scopeid: 0, - * internal: true, - * cidr: '::1/128' - * } - * ], - * eth0: [ - * { - * address: '192.168.1.108', - * netmask: '255.255.255.0', - * family: 'IPv4', - * mac: '01:02:03:0a:0b:0c', - * internal: false, - * cidr: '192.168.1.108/24' - * }, - * { - * address: 'fe80::a00:27ff:fe4e:66a1', - * netmask: 'ffff:ffff:ffff:ffff::', - * family: 'IPv6', - * mac: '01:02:03:0a:0b:0c', - * scopeid: 1, - * internal: false, - * cidr: 'fe80::a00:27ff:fe4e:66a1/64' - * } - * ] - * } - * ``` - * @since v0.6.0 - */ - function networkInterfaces(): NodeJS.Dict; - /** - * Returns the string path of the current user's home directory. - * - * On POSIX, it uses the `$HOME` environment variable if defined. Otherwise it - * uses the [effective UID](https://en.wikipedia.org/wiki/User_identifier#Effective_user_ID) to look up the user's home directory. - * - * On Windows, it uses the `USERPROFILE` environment variable if defined. - * Otherwise it uses the path to the profile directory of the current user. - * @since v2.3.0 - */ - function homedir(): string; - interface UserInfoOptions { - encoding?: BufferEncoding | "buffer" | undefined; - } - interface UserInfoOptionsWithBufferEncoding extends UserInfoOptions { - encoding: "buffer"; - } - interface UserInfoOptionsWithStringEncoding extends UserInfoOptions { - encoding?: BufferEncoding | undefined; - } - /** - * Returns information about the currently effective user. On POSIX platforms, - * this is typically a subset of the password file. The returned object includes - * the `username`, `uid`, `gid`, `shell`, and `homedir`. On Windows, the `uid` and `gid` fields are `-1`, and `shell` is `null`. - * - * The value of `homedir` returned by `os.userInfo()` is provided by the operating - * system. This differs from the result of `os.homedir()`, which queries - * environment variables for the home directory before falling back to the - * operating system response. - * - * Throws a [`SystemError`](https://nodejs.org/docs/latest-v24.x/api/errors.html#class-systemerror) if a user has no `username` or `homedir`. - * @since v6.0.0 - */ - function userInfo(options?: UserInfoOptionsWithStringEncoding): UserInfo; - function userInfo(options: UserInfoOptionsWithBufferEncoding): UserInfo; - function userInfo(options: UserInfoOptions): UserInfo; - type SignalConstants = { - [key in NodeJS.Signals]: number; - }; - namespace constants { - const UV_UDP_REUSEADDR: number; - namespace signals {} - const signals: SignalConstants; - namespace errno { - const E2BIG: number; - const EACCES: number; - const EADDRINUSE: number; - const EADDRNOTAVAIL: number; - const EAFNOSUPPORT: number; - const EAGAIN: number; - const EALREADY: number; - const EBADF: number; - const EBADMSG: number; - const EBUSY: number; - const ECANCELED: number; - const ECHILD: number; - const ECONNABORTED: number; - const ECONNREFUSED: number; - const ECONNRESET: number; - const EDEADLK: number; - const EDESTADDRREQ: number; - const EDOM: number; - const EDQUOT: number; - const EEXIST: number; - const EFAULT: number; - const EFBIG: number; - const EHOSTUNREACH: number; - const EIDRM: number; - const EILSEQ: number; - const EINPROGRESS: number; - const EINTR: number; - const EINVAL: number; - const EIO: number; - const EISCONN: number; - const EISDIR: number; - const ELOOP: number; - const EMFILE: number; - const EMLINK: number; - const EMSGSIZE: number; - const EMULTIHOP: number; - const ENAMETOOLONG: number; - const ENETDOWN: number; - const ENETRESET: number; - const ENETUNREACH: number; - const ENFILE: number; - const ENOBUFS: number; - const ENODATA: number; - const ENODEV: number; - const ENOENT: number; - const ENOEXEC: number; - const ENOLCK: number; - const ENOLINK: number; - const ENOMEM: number; - const ENOMSG: number; - const ENOPROTOOPT: number; - const ENOSPC: number; - const ENOSR: number; - const ENOSTR: number; - const ENOSYS: number; - const ENOTCONN: number; - const ENOTDIR: number; - const ENOTEMPTY: number; - const ENOTSOCK: number; - const ENOTSUP: number; - const ENOTTY: number; - const ENXIO: number; - const EOPNOTSUPP: number; - const EOVERFLOW: number; - const EPERM: number; - const EPIPE: number; - const EPROTO: number; - const EPROTONOSUPPORT: number; - const EPROTOTYPE: number; - const ERANGE: number; - const EROFS: number; - const ESPIPE: number; - const ESRCH: number; - const ESTALE: number; - const ETIME: number; - const ETIMEDOUT: number; - const ETXTBSY: number; - const EWOULDBLOCK: number; - const EXDEV: number; - const WSAEINTR: number; - const WSAEBADF: number; - const WSAEACCES: number; - const WSAEFAULT: number; - const WSAEINVAL: number; - const WSAEMFILE: number; - const WSAEWOULDBLOCK: number; - const WSAEINPROGRESS: number; - const WSAEALREADY: number; - const WSAENOTSOCK: number; - const WSAEDESTADDRREQ: number; - const WSAEMSGSIZE: number; - const WSAEPROTOTYPE: number; - const WSAENOPROTOOPT: number; - const WSAEPROTONOSUPPORT: number; - const WSAESOCKTNOSUPPORT: number; - const WSAEOPNOTSUPP: number; - const WSAEPFNOSUPPORT: number; - const WSAEAFNOSUPPORT: number; - const WSAEADDRINUSE: number; - const WSAEADDRNOTAVAIL: number; - const WSAENETDOWN: number; - const WSAENETUNREACH: number; - const WSAENETRESET: number; - const WSAECONNABORTED: number; - const WSAECONNRESET: number; - const WSAENOBUFS: number; - const WSAEISCONN: number; - const WSAENOTCONN: number; - const WSAESHUTDOWN: number; - const WSAETOOMANYREFS: number; - const WSAETIMEDOUT: number; - const WSAECONNREFUSED: number; - const WSAELOOP: number; - const WSAENAMETOOLONG: number; - const WSAEHOSTDOWN: number; - const WSAEHOSTUNREACH: number; - const WSAENOTEMPTY: number; - const WSAEPROCLIM: number; - const WSAEUSERS: number; - const WSAEDQUOT: number; - const WSAESTALE: number; - const WSAEREMOTE: number; - const WSASYSNOTREADY: number; - const WSAVERNOTSUPPORTED: number; - const WSANOTINITIALISED: number; - const WSAEDISCON: number; - const WSAENOMORE: number; - const WSAECANCELLED: number; - const WSAEINVALIDPROCTABLE: number; - const WSAEINVALIDPROVIDER: number; - const WSAEPROVIDERFAILEDINIT: number; - const WSASYSCALLFAILURE: number; - const WSASERVICE_NOT_FOUND: number; - const WSATYPE_NOT_FOUND: number; - const WSA_E_NO_MORE: number; - const WSA_E_CANCELLED: number; - const WSAEREFUSED: number; - } - namespace dlopen { - const RTLD_LAZY: number; - const RTLD_NOW: number; - const RTLD_GLOBAL: number; - const RTLD_LOCAL: number; - const RTLD_DEEPBIND: number; - } - namespace priority { - const PRIORITY_LOW: number; - const PRIORITY_BELOW_NORMAL: number; - const PRIORITY_NORMAL: number; - const PRIORITY_ABOVE_NORMAL: number; - const PRIORITY_HIGH: number; - const PRIORITY_HIGHEST: number; - } - } - const devNull: string; - /** - * The operating system-specific end-of-line marker. - * * `\n` on POSIX - * * `\r\n` on Windows - */ - const EOL: string; - /** - * Returns the operating system CPU architecture for which the Node.js binary was - * compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, - * `'mips'`, `'mipsel'`, `'ppc64'`, `'riscv64'`, `'s390x'`, and `'x64'`. - * - * The return value is equivalent to [process.arch](https://nodejs.org/docs/latest-v24.x/api/process.html#processarch). - * @since v0.5.0 - */ - function arch(): NodeJS.Architecture; - /** - * Returns a string identifying the kernel version. - * - * On POSIX systems, the operating system release is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `RtlGetVersion()` is used, and if it is not - * available, `GetVersionExW()` will be used. See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information. - * @since v13.11.0, v12.17.0 - */ - function version(): string; - /** - * Returns a string identifying the operating system platform for which - * the Node.js binary was compiled. The value is set at compile time. - * Possible values are `'aix'`, `'darwin'`, `'freebsd'`, `'linux'`, `'openbsd'`, `'sunos'`, and `'win32'`. - * - * The return value is equivalent to `process.platform`. - * - * The value `'android'` may also be returned if Node.js is built on the Android - * operating system. [Android support is experimental](https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os). - * @since v0.5.0 - */ - function platform(): NodeJS.Platform; - /** - * Returns the machine type as a string, such as `arm`, `arm64`, `aarch64`, - * `mips`, `mips64`, `ppc64`, `ppc64le`, `s390x`, `i386`, `i686`, `x86_64`. - * - * On POSIX systems, the machine type is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `RtlGetVersion()` is used, and if it is not - * available, `GetVersionExW()` will be used. See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information. - * @since v18.9.0, v16.18.0 - */ - function machine(): string; - /** - * Returns the operating system's default directory for temporary files as a - * string. - * @since v0.9.9 - */ - function tmpdir(): string; - /** - * Returns a string identifying the endianness of the CPU for which the Node.js - * binary was compiled. - * - * Possible values are `'BE'` for big endian and `'LE'` for little endian. - * @since v0.9.4 - */ - function endianness(): "BE" | "LE"; - /** - * Returns the scheduling priority for the process specified by `pid`. If `pid` is - * not provided or is `0`, the priority of the current process is returned. - * @since v10.10.0 - * @param [pid=0] The process ID to retrieve scheduling priority for. - */ - function getPriority(pid?: number): number; - /** - * Attempts to set the scheduling priority for the process specified by `pid`. If `pid` is not provided or is `0`, the process ID of the current process is used. - * - * The `priority` input must be an integer between `-20` (high priority) and `19` (low priority). Due to differences between Unix priority levels and Windows - * priority classes, `priority` is mapped to one of six priority constants in `os.constants.priority`. When retrieving a process priority level, this range - * mapping may cause the return value to be slightly different on Windows. To avoid - * confusion, set `priority` to one of the priority constants. - * - * On Windows, setting priority to `PRIORITY_HIGHEST` requires elevated user - * privileges. Otherwise the set priority will be silently reduced to `PRIORITY_HIGH`. - * @since v10.10.0 - * @param [pid=0] The process ID to set scheduling priority for. - * @param priority The scheduling priority to assign to the process. - */ - function setPriority(priority: number): void; - function setPriority(pid: number, priority: number): void; -} -declare module "node:os" { - export * from "os"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/package.json b/build_vtk_bundle/node_modules/@types/node/package.json deleted file mode 100644 index 2d029392..00000000 --- a/build_vtk_bundle/node_modules/@types/node/package.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "name": "@types/node", - "version": "24.10.1", - "description": "TypeScript definitions for node", - "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", - "license": "MIT", - "contributors": [ - { - "name": "Microsoft TypeScript", - "githubUsername": "Microsoft", - "url": "https://github.com/Microsoft" - }, - { - "name": "Alberto Schiabel", - "githubUsername": "jkomyno", - "url": "https://github.com/jkomyno" - }, - { - "name": "Andrew Makarov", - "githubUsername": "r3nya", - "url": "https://github.com/r3nya" - }, - { - "name": "Benjamin Toueg", - "githubUsername": "btoueg", - "url": "https://github.com/btoueg" - }, - { - "name": "David Junger", - "githubUsername": "touffy", - "url": "https://github.com/touffy" - }, - { - "name": "Mohsen Azimi", - "githubUsername": "mohsen1", - "url": "https://github.com/mohsen1" - }, - { - "name": "Nikita Galkin", - "githubUsername": "galkin", - "url": "https://github.com/galkin" - }, - { - "name": "Sebastian Silbermann", - "githubUsername": "eps1lon", - "url": "https://github.com/eps1lon" - }, - { - "name": "Wilco Bakker", - "githubUsername": "WilcoBakker", - "url": "https://github.com/WilcoBakker" - }, - { - "name": "Marcin Kopacz", - "githubUsername": "chyzwar", - "url": "https://github.com/chyzwar" - }, - { - "name": "Trivikram Kamat", - "githubUsername": "trivikr", - "url": "https://github.com/trivikr" - }, - { - "name": "Junxiao Shi", - "githubUsername": "yoursunny", - "url": "https://github.com/yoursunny" - }, - { - "name": "Ilia Baryshnikov", - "githubUsername": "qwelias", - "url": "https://github.com/qwelias" - }, - { - "name": "ExE Boss", - "githubUsername": "ExE-Boss", - "url": "https://github.com/ExE-Boss" - }, - { - "name": "Piotr Błażejewicz", - "githubUsername": "peterblazejewicz", - "url": "https://github.com/peterblazejewicz" - }, - { - "name": "Anna Henningsen", - "githubUsername": "addaleax", - "url": "https://github.com/addaleax" - }, - { - "name": "Victor Perin", - "githubUsername": "victorperin", - "url": "https://github.com/victorperin" - }, - { - "name": "NodeJS Contributors", - "githubUsername": "NodeJS", - "url": "https://github.com/NodeJS" - }, - { - "name": "Linus Unnebäck", - "githubUsername": "LinusU", - "url": "https://github.com/LinusU" - }, - { - "name": "wafuwafu13", - "githubUsername": "wafuwafu13", - "url": "https://github.com/wafuwafu13" - }, - { - "name": "Matteo Collina", - "githubUsername": "mcollina", - "url": "https://github.com/mcollina" - }, - { - "name": "Dmitry Semigradsky", - "githubUsername": "Semigradsky", - "url": "https://github.com/Semigradsky" - }, - { - "name": "René", - "githubUsername": "Renegade334", - "url": "https://github.com/Renegade334" - }, - { - "name": "Yagiz Nizipli", - "githubUsername": "anonrig", - "url": "https://github.com/anonrig" - } - ], - "main": "", - "types": "index.d.ts", - "typesVersions": { - "<=5.6": { - "*": [ - "ts5.6/*" - ] - }, - "<=5.7": { - "*": [ - "ts5.7/*" - ] - } - }, - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", - "directory": "types/node" - }, - "scripts": {}, - "dependencies": { - "undici-types": "~7.16.0" - }, - "peerDependencies": {}, - "typesPublisherContentHash": "bf541e42e173a984f57b649839d3371001c98469b0e8944f7762074aed2acd2f", - "typeScriptVersion": "5.2" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/@types/node/path.d.ts b/build_vtk_bundle/node_modules/@types/node/path.d.ts deleted file mode 100644 index d363397f..00000000 --- a/build_vtk_bundle/node_modules/@types/node/path.d.ts +++ /dev/null @@ -1,200 +0,0 @@ -declare module "path/posix" { - import path = require("path"); - export = path; -} -declare module "path/win32" { - import path = require("path"); - export = path; -} -/** - * The `node:path` module provides utilities for working with file and directory - * paths. It can be accessed using: - * - * ```js - * import path from 'node:path'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/path.js) - */ -declare module "path" { - namespace path { - /** - * A parsed path object generated by path.parse() or consumed by path.format(). - */ - interface ParsedPath { - /** - * The root of the path such as '/' or 'c:\' - */ - root: string; - /** - * The full directory path such as '/home/user/dir' or 'c:\path\dir' - */ - dir: string; - /** - * The file name including extension (if any) such as 'index.html' - */ - base: string; - /** - * The file extension (if any) such as '.html' - */ - ext: string; - /** - * The file name without extension (if any) such as 'index' - */ - name: string; - } - interface FormatInputPathObject { - /** - * The root of the path such as '/' or 'c:\' - */ - root?: string | undefined; - /** - * The full directory path such as '/home/user/dir' or 'c:\path\dir' - */ - dir?: string | undefined; - /** - * The file name including extension (if any) such as 'index.html' - */ - base?: string | undefined; - /** - * The file extension (if any) such as '.html' - */ - ext?: string | undefined; - /** - * The file name without extension (if any) such as 'index' - */ - name?: string | undefined; - } - interface PlatformPath { - /** - * Normalize a string path, reducing '..' and '.' parts. - * When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used. - * - * @param path string path to normalize. - * @throws {TypeError} if `path` is not a string. - */ - normalize(path: string): string; - /** - * Join all arguments together and normalize the resulting path. - * - * @param paths paths to join. - * @throws {TypeError} if any of the path segments is not a string. - */ - join(...paths: string[]): string; - /** - * The right-most parameter is considered {to}. Other parameters are considered an array of {from}. - * - * Starting from leftmost {from} parameter, resolves {to} to an absolute path. - * - * If {to} isn't already absolute, {from} arguments are prepended in right to left order, - * until an absolute path is found. If after using all {from} paths still no absolute path is found, - * the current working directory is used as well. The resulting path is normalized, - * and trailing slashes are removed unless the path gets resolved to the root directory. - * - * @param paths A sequence of paths or path segments. - * @throws {TypeError} if any of the arguments is not a string. - */ - resolve(...paths: string[]): string; - /** - * The `path.matchesGlob()` method determines if `path` matches the `pattern`. - * @param path The path to glob-match against. - * @param pattern The glob to check the path against. - * @returns Whether or not the `path` matched the `pattern`. - * @throws {TypeError} if `path` or `pattern` are not strings. - * @since v22.5.0 - */ - matchesGlob(path: string, pattern: string): boolean; - /** - * Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory. - * - * If the given {path} is a zero-length string, `false` will be returned. - * - * @param path path to test. - * @throws {TypeError} if `path` is not a string. - */ - isAbsolute(path: string): boolean; - /** - * Solve the relative path from {from} to {to} based on the current working directory. - * At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve. - * - * @throws {TypeError} if either `from` or `to` is not a string. - */ - relative(from: string, to: string): string; - /** - * Return the directory name of a path. Similar to the Unix dirname command. - * - * @param path the path to evaluate. - * @throws {TypeError} if `path` is not a string. - */ - dirname(path: string): string; - /** - * Return the last portion of a path. Similar to the Unix basename command. - * Often used to extract the file name from a fully qualified path. - * - * @param path the path to evaluate. - * @param suffix optionally, an extension to remove from the result. - * @throws {TypeError} if `path` is not a string or if `ext` is given and is not a string. - */ - basename(path: string, suffix?: string): string; - /** - * Return the extension of the path, from the last '.' to end of string in the last portion of the path. - * If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string. - * - * @param path the path to evaluate. - * @throws {TypeError} if `path` is not a string. - */ - extname(path: string): string; - /** - * The platform-specific file separator. '\\' or '/'. - */ - readonly sep: "\\" | "/"; - /** - * The platform-specific file delimiter. ';' or ':'. - */ - readonly delimiter: ";" | ":"; - /** - * Returns an object from a path string - the opposite of format(). - * - * @param path path to evaluate. - * @throws {TypeError} if `path` is not a string. - */ - parse(path: string): ParsedPath; - /** - * Returns a path string from an object - the opposite of parse(). - * - * @param pathObject path to evaluate. - */ - format(pathObject: FormatInputPathObject): string; - /** - * On Windows systems only, returns an equivalent namespace-prefixed path for the given path. - * If path is not a string, path will be returned without modifications. - * This method is meaningful only on Windows system. - * On POSIX systems, the method is non-operational and always returns path without modifications. - */ - toNamespacedPath(path: string): string; - /** - * Posix specific pathing. - * Same as parent object on posix. - */ - readonly posix: PlatformPath; - /** - * Windows specific pathing. - * Same as parent object on windows - */ - readonly win32: PlatformPath; - } - } - const path: path.PlatformPath; - export = path; -} -declare module "node:path" { - import path = require("path"); - export = path; -} -declare module "node:path/posix" { - import path = require("path/posix"); - export = path; -} -declare module "node:path/win32" { - import path = require("path/win32"); - export = path; -} diff --git a/build_vtk_bundle/node_modules/@types/node/perf_hooks.d.ts b/build_vtk_bundle/node_modules/@types/node/perf_hooks.d.ts deleted file mode 100644 index ba4b9ade..00000000 --- a/build_vtk_bundle/node_modules/@types/node/perf_hooks.d.ts +++ /dev/null @@ -1,982 +0,0 @@ -/** - * This module provides an implementation of a subset of the W3C [Web Performance APIs](https://w3c.github.io/perf-timing-primer/) as well as additional APIs for - * Node.js-specific performance measurements. - * - * Node.js supports the following [Web Performance APIs](https://w3c.github.io/perf-timing-primer/): - * - * * [High Resolution Time](https://www.w3.org/TR/hr-time-2) - * * [Performance Timeline](https://w3c.github.io/performance-timeline/) - * * [User Timing](https://www.w3.org/TR/user-timing/) - * * [Resource Timing](https://www.w3.org/TR/resource-timing-2/) - * - * ```js - * import { PerformanceObserver, performance } from 'node:perf_hooks'; - * - * const obs = new PerformanceObserver((items) => { - * console.log(items.getEntries()[0].duration); - * performance.clearMarks(); - * }); - * obs.observe({ type: 'measure' }); - * performance.measure('Start to Now'); - * - * performance.mark('A'); - * doSomeLongRunningProcess(() => { - * performance.measure('A to Now', 'A'); - * - * performance.mark('B'); - * performance.measure('A to B', 'A', 'B'); - * }); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/perf_hooks.js) - */ -declare module "perf_hooks" { - import { AsyncResource } from "node:async_hooks"; - type EntryType = - | "dns" // Node.js only - | "function" // Node.js only - | "gc" // Node.js only - | "http2" // Node.js only - | "http" // Node.js only - | "mark" // available on the Web - | "measure" // available on the Web - | "net" // Node.js only - | "node" // Node.js only - | "resource"; // available on the Web - interface NodeGCPerformanceDetail { - /** - * When `performanceEntry.entryType` is equal to 'gc', the `performance.kind` property identifies - * the type of garbage collection operation that occurred. - * See perf_hooks.constants for valid values. - */ - readonly kind: number; - /** - * When `performanceEntry.entryType` is equal to 'gc', the `performance.flags` - * property contains additional information about garbage collection operation. - * See perf_hooks.constants for valid values. - */ - readonly flags: number; - } - /** - * The constructor of this class is not exposed to users directly. - * @since v8.5.0 - */ - class PerformanceEntry { - protected constructor(); - /** - * The total number of milliseconds elapsed for this entry. This value will not - * be meaningful for all Performance Entry types. - * @since v8.5.0 - */ - readonly duration: number; - /** - * The name of the performance entry. - * @since v8.5.0 - */ - readonly name: string; - /** - * The high resolution millisecond timestamp marking the starting time of the - * Performance Entry. - * @since v8.5.0 - */ - readonly startTime: number; - /** - * The type of the performance entry. It may be one of: - * - * * `'node'` (Node.js only) - * * `'mark'` (available on the Web) - * * `'measure'` (available on the Web) - * * `'gc'` (Node.js only) - * * `'function'` (Node.js only) - * * `'http2'` (Node.js only) - * * `'http'` (Node.js only) - * @since v8.5.0 - */ - readonly entryType: EntryType; - toJSON(): any; - } - /** - * Exposes marks created via the `Performance.mark()` method. - * @since v18.2.0, v16.17.0 - */ - class PerformanceMark extends PerformanceEntry { - readonly detail: any; - readonly duration: 0; - readonly entryType: "mark"; - } - /** - * Exposes measures created via the `Performance.measure()` method. - * - * The constructor of this class is not exposed to users directly. - * @since v18.2.0, v16.17.0 - */ - class PerformanceMeasure extends PerformanceEntry { - readonly detail: any; - readonly entryType: "measure"; - } - interface UVMetrics { - /** - * Number of event loop iterations. - */ - readonly loopCount: number; - /** - * Number of events that have been processed by the event handler. - */ - readonly events: number; - /** - * Number of events that were waiting to be processed when the event provider was called. - */ - readonly eventsWaiting: number; - } - // TODO: PerformanceNodeEntry is missing - /** - * _This property is an extension by Node.js. It is not available in Web browsers._ - * - * Provides timing details for Node.js itself. The constructor of this class - * is not exposed to users. - * @since v8.5.0 - */ - class PerformanceNodeTiming extends PerformanceEntry { - readonly entryType: "node"; - /** - * The high resolution millisecond timestamp at which the Node.js process - * completed bootstrapping. If bootstrapping has not yet finished, the property - * has the value of -1. - * @since v8.5.0 - */ - readonly bootstrapComplete: number; - /** - * The high resolution millisecond timestamp at which the Node.js environment was - * initialized. - * @since v8.5.0 - */ - readonly environment: number; - /** - * The high resolution millisecond timestamp of the amount of time the event loop - * has been idle within the event loop's event provider (e.g. `epoll_wait`). This - * does not take CPU usage into consideration. If the event loop has not yet - * started (e.g., in the first tick of the main script), the property has the - * value of 0. - * @since v14.10.0, v12.19.0 - */ - readonly idleTime: number; - /** - * The high resolution millisecond timestamp at which the Node.js event loop - * exited. If the event loop has not yet exited, the property has the value of -1\. - * It can only have a value of not -1 in a handler of the `'exit'` event. - * @since v8.5.0 - */ - readonly loopExit: number; - /** - * The high resolution millisecond timestamp at which the Node.js event loop - * started. If the event loop has not yet started (e.g., in the first tick of the - * main script), the property has the value of -1. - * @since v8.5.0 - */ - readonly loopStart: number; - /** - * The high resolution millisecond timestamp at which the Node.js process was initialized. - * @since v8.5.0 - */ - readonly nodeStart: number; - /** - * This is a wrapper to the `uv_metrics_info` function. - * It returns the current set of event loop metrics. - * - * It is recommended to use this property inside a function whose execution was - * scheduled using `setImmediate` to avoid collecting metrics before finishing all - * operations scheduled during the current loop iteration. - * @since v22.8.0, v20.18.0 - */ - readonly uvMetricsInfo: UVMetrics; - /** - * The high resolution millisecond timestamp at which the V8 platform was - * initialized. - * @since v8.5.0 - */ - readonly v8Start: number; - } - interface EventLoopUtilization { - idle: number; - active: number; - utilization: number; - } - /** - * @param utilization1 The result of a previous call to `eventLoopUtilization()`. - * @param utilization2 The result of a previous call to `eventLoopUtilization()` prior to `utilization1`. - */ - type EventLoopUtilityFunction = ( - utilization1?: EventLoopUtilization, - utilization2?: EventLoopUtilization, - ) => EventLoopUtilization; - interface MarkOptions { - /** - * Additional optional detail to include with the mark. - */ - detail?: unknown | undefined; - /** - * An optional timestamp to be used as the mark time. - * @default `performance.now()` - */ - startTime?: number | undefined; - } - interface MeasureOptions { - /** - * Additional optional detail to include with the mark. - */ - detail?: unknown; - /** - * Duration between start and end times. - */ - duration?: number | undefined; - /** - * Timestamp to be used as the end time, or a string identifying a previously recorded mark. - */ - end?: number | string | undefined; - /** - * Timestamp to be used as the start time, or a string identifying a previously recorded mark. - */ - start?: number | string | undefined; - } - interface TimerifyOptions { - /** - * A histogram object created using `perf_hooks.createHistogram()` that will record runtime - * durations in nanoseconds. - */ - histogram?: RecordableHistogram | undefined; - } - interface Performance { - /** - * If `name` is not provided, removes all `PerformanceMark` objects from the Performance Timeline. - * If `name` is provided, removes only the named mark. - * @since v8.5.0 - */ - clearMarks(name?: string): void; - /** - * If `name` is not provided, removes all `PerformanceMeasure` objects from the Performance Timeline. - * If `name` is provided, removes only the named measure. - * @since v16.7.0 - */ - clearMeasures(name?: string): void; - /** - * If `name` is not provided, removes all `PerformanceResourceTiming` objects from the Resource Timeline. - * If `name` is provided, removes only the named resource. - * @since v18.2.0, v16.17.0 - */ - clearResourceTimings(name?: string): void; - /** - * eventLoopUtilization is similar to CPU utilization except that it is calculated using high precision wall-clock time. - * It represents the percentage of time the event loop has spent outside the event loop's event provider (e.g. epoll_wait). - * No other CPU idle time is taken into consideration. - */ - eventLoopUtilization: EventLoopUtilityFunction; - /** - * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime`. - * If you are only interested in performance entries of certain types or that have certain names, see - * `performance.getEntriesByType()` and `performance.getEntriesByName()`. - * @since v16.7.0 - */ - getEntries(): PerformanceEntry[]; - /** - * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime` - * whose `performanceEntry.name` is equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to `type`. - * @param name - * @param type - * @since v16.7.0 - */ - getEntriesByName(name: string, type?: EntryType): PerformanceEntry[]; - /** - * Returns a list of `PerformanceEntry` objects in chronological order with respect to `performanceEntry.startTime` - * whose `performanceEntry.entryType` is equal to `type`. - * @param type - * @since v16.7.0 - */ - getEntriesByType(type: EntryType): PerformanceEntry[]; - /** - * Creates a new `PerformanceMark` entry in the Performance Timeline. - * A `PerformanceMark` is a subclass of `PerformanceEntry` whose `performanceEntry.entryType` is always `'mark'`, - * and whose `performanceEntry.duration` is always `0`. - * Performance marks are used to mark specific significant moments in the Performance Timeline. - * - * The created `PerformanceMark` entry is put in the global Performance Timeline and can be queried with - * `performance.getEntries`, `performance.getEntriesByName`, and `performance.getEntriesByType`. When the observation is - * performed, the entries should be cleared from the global Performance Timeline manually with `performance.clearMarks`. - * @param name - */ - mark(name: string, options?: MarkOptions): PerformanceMark; - /** - * Creates a new `PerformanceResourceTiming` entry in the Resource Timeline. - * A `PerformanceResourceTiming` is a subclass of `PerformanceEntry` whose `performanceEntry.entryType` is always `'resource'`. - * Performance resources are used to mark moments in the Resource Timeline. - * @param timingInfo [Fetch Timing Info](https://fetch.spec.whatwg.org/#fetch-timing-info) - * @param requestedUrl The resource url - * @param initiatorType The initiator name, e.g: 'fetch' - * @param global - * @param cacheMode The cache mode must be an empty string ('') or 'local' - * @param bodyInfo [Fetch Response Body Info](https://fetch.spec.whatwg.org/#response-body-info) - * @param responseStatus The response's status code - * @param deliveryType The delivery type. Default: ''. - * @since v18.2.0, v16.17.0 - */ - markResourceTiming( - timingInfo: object, - requestedUrl: string, - initiatorType: string, - global: object, - cacheMode: "" | "local", - bodyInfo: object, - responseStatus: number, - deliveryType?: string, - ): PerformanceResourceTiming; - /** - * Creates a new PerformanceMeasure entry in the Performance Timeline. - * A PerformanceMeasure is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'measure', - * and whose performanceEntry.duration measures the number of milliseconds elapsed since startMark and endMark. - * - * The startMark argument may identify any existing PerformanceMark in the the Performance Timeline, or may identify - * any of the timestamp properties provided by the PerformanceNodeTiming class. If the named startMark does not exist, - * then startMark is set to timeOrigin by default. - * - * The endMark argument must identify any existing PerformanceMark in the the Performance Timeline or any of the timestamp - * properties provided by the PerformanceNodeTiming class. If the named endMark does not exist, an error will be thrown. - * @param name - * @param startMark - * @param endMark - * @return The PerformanceMeasure entry that was created - */ - measure(name: string, startMark?: string, endMark?: string): PerformanceMeasure; - measure(name: string, options: MeasureOptions): PerformanceMeasure; - /** - * _This property is an extension by Node.js. It is not available in Web browsers._ - * - * An instance of the `PerformanceNodeTiming` class that provides performance metrics for specific Node.js operational milestones. - * @since v8.5.0 - */ - readonly nodeTiming: PerformanceNodeTiming; - /** - * Returns the current high resolution millisecond timestamp, where 0 represents the start of the current `node` process. - * @since v8.5.0 - */ - now(): number; - /** - * Sets the global performance resource timing buffer size to the specified number of "resource" type performance entry objects. - * - * By default the max buffer size is set to 250. - * @since v18.8.0 - */ - setResourceTimingBufferSize(maxSize: number): void; - /** - * The [`timeOrigin`](https://w3c.github.io/hr-time/#dom-performance-timeorigin) specifies the high resolution millisecond timestamp - * at which the current `node` process began, measured in Unix time. - * @since v8.5.0 - */ - readonly timeOrigin: number; - /** - * _This property is an extension by Node.js. It is not available in Web browsers._ - * - * Wraps a function within a new function that measures the running time of the wrapped function. - * A `PerformanceObserver` must be subscribed to the `'function'` event type in order for the timing details to be accessed. - * - * ```js - * import { - * performance, - * PerformanceObserver, - * } from 'node:perf_hooks'; - * - * function someFunction() { - * console.log('hello world'); - * } - * - * const wrapped = performance.timerify(someFunction); - * - * const obs = new PerformanceObserver((list) => { - * console.log(list.getEntries()[0].duration); - * - * performance.clearMarks(); - * performance.clearMeasures(); - * obs.disconnect(); - * }); - * obs.observe({ entryTypes: ['function'] }); - * - * // A performance timeline entry will be created - * wrapped(); - * ``` - * - * If the wrapped function returns a promise, a finally handler will be attached to the promise and the duration will be reported - * once the finally handler is invoked. - * @param fn - */ - timerify any>(fn: T, options?: TimerifyOptions): T; - /** - * An object which is JSON representation of the performance object. It is similar to - * [`window.performance.toJSON`](https://developer.mozilla.org/en-US/docs/Web/API/Performance/toJSON) in browsers. - * @since v16.1.0 - */ - toJSON(): any; - } - class PerformanceObserverEntryList { - /** - * Returns a list of `PerformanceEntry` objects in chronological order - * with respect to `performanceEntry.startTime`. - * - * ```js - * import { - * performance, - * PerformanceObserver, - * } from 'node:perf_hooks'; - * - * const obs = new PerformanceObserver((perfObserverList, observer) => { - * console.log(perfObserverList.getEntries()); - * - * * [ - * * PerformanceEntry { - * * name: 'test', - * * entryType: 'mark', - * * startTime: 81.465639, - * * duration: 0, - * * detail: null - * * }, - * * PerformanceEntry { - * * name: 'meow', - * * entryType: 'mark', - * * startTime: 81.860064, - * * duration: 0, - * * detail: null - * * } - * * ] - * - * performance.clearMarks(); - * performance.clearMeasures(); - * observer.disconnect(); - * }); - * obs.observe({ type: 'mark' }); - * - * performance.mark('test'); - * performance.mark('meow'); - * ``` - * @since v8.5.0 - */ - getEntries(): PerformanceEntry[]; - /** - * Returns a list of `PerformanceEntry` objects in chronological order - * with respect to `performanceEntry.startTime` whose `performanceEntry.name` is - * equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to`type`. - * - * ```js - * import { - * performance, - * PerformanceObserver, - * } from 'node:perf_hooks'; - * - * const obs = new PerformanceObserver((perfObserverList, observer) => { - * console.log(perfObserverList.getEntriesByName('meow')); - * - * * [ - * * PerformanceEntry { - * * name: 'meow', - * * entryType: 'mark', - * * startTime: 98.545991, - * * duration: 0, - * * detail: null - * * } - * * ] - * - * console.log(perfObserverList.getEntriesByName('nope')); // [] - * - * console.log(perfObserverList.getEntriesByName('test', 'mark')); - * - * * [ - * * PerformanceEntry { - * * name: 'test', - * * entryType: 'mark', - * * startTime: 63.518931, - * * duration: 0, - * * detail: null - * * } - * * ] - * - * console.log(perfObserverList.getEntriesByName('test', 'measure')); // [] - * - * performance.clearMarks(); - * performance.clearMeasures(); - * observer.disconnect(); - * }); - * obs.observe({ entryTypes: ['mark', 'measure'] }); - * - * performance.mark('test'); - * performance.mark('meow'); - * ``` - * @since v8.5.0 - */ - getEntriesByName(name: string, type?: EntryType): PerformanceEntry[]; - /** - * Returns a list of `PerformanceEntry` objects in chronological order - * with respect to `performanceEntry.startTime` whose `performanceEntry.entryType` is equal to `type`. - * - * ```js - * import { - * performance, - * PerformanceObserver, - * } from 'node:perf_hooks'; - * - * const obs = new PerformanceObserver((perfObserverList, observer) => { - * console.log(perfObserverList.getEntriesByType('mark')); - * - * * [ - * * PerformanceEntry { - * * name: 'test', - * * entryType: 'mark', - * * startTime: 55.897834, - * * duration: 0, - * * detail: null - * * }, - * * PerformanceEntry { - * * name: 'meow', - * * entryType: 'mark', - * * startTime: 56.350146, - * * duration: 0, - * * detail: null - * * } - * * ] - * - * performance.clearMarks(); - * performance.clearMeasures(); - * observer.disconnect(); - * }); - * obs.observe({ type: 'mark' }); - * - * performance.mark('test'); - * performance.mark('meow'); - * ``` - * @since v8.5.0 - */ - getEntriesByType(type: EntryType): PerformanceEntry[]; - } - type PerformanceObserverCallback = (list: PerformanceObserverEntryList, observer: PerformanceObserver) => void; - /** - * @since v8.5.0 - */ - class PerformanceObserver extends AsyncResource { - constructor(callback: PerformanceObserverCallback); - /** - * Disconnects the `PerformanceObserver` instance from all notifications. - * @since v8.5.0 - */ - disconnect(): void; - /** - * Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes` or `options.type`: - * - * ```js - * import { - * performance, - * PerformanceObserver, - * } from 'node:perf_hooks'; - * - * const obs = new PerformanceObserver((list, observer) => { - * // Called once asynchronously. `list` contains three items. - * }); - * obs.observe({ type: 'mark' }); - * - * for (let n = 0; n < 3; n++) - * performance.mark(`test${n}`); - * ``` - * @since v8.5.0 - */ - observe( - options: - | { - entryTypes: readonly EntryType[]; - buffered?: boolean | undefined; - } - | { - type: EntryType; - buffered?: boolean | undefined; - }, - ): void; - /** - * @since v16.0.0 - * @returns Current list of entries stored in the performance observer, emptying it out. - */ - takeRecords(): PerformanceEntry[]; - } - /** - * Provides detailed network timing data regarding the loading of an application's resources. - * - * The constructor of this class is not exposed to users directly. - * @since v18.2.0, v16.17.0 - */ - class PerformanceResourceTiming extends PerformanceEntry { - readonly entryType: "resource"; - protected constructor(); - /** - * The high resolution millisecond timestamp at immediately before dispatching the `fetch` - * request. If the resource is not intercepted by a worker the property will always return 0. - * @since v18.2.0, v16.17.0 - */ - readonly workerStart: number; - /** - * The high resolution millisecond timestamp that represents the start time of the fetch which - * initiates the redirect. - * @since v18.2.0, v16.17.0 - */ - readonly redirectStart: number; - /** - * The high resolution millisecond timestamp that will be created immediately after receiving - * the last byte of the response of the last redirect. - * @since v18.2.0, v16.17.0 - */ - readonly redirectEnd: number; - /** - * The high resolution millisecond timestamp immediately before the Node.js starts to fetch the resource. - * @since v18.2.0, v16.17.0 - */ - readonly fetchStart: number; - /** - * The high resolution millisecond timestamp immediately before the Node.js starts the domain name lookup - * for the resource. - * @since v18.2.0, v16.17.0 - */ - readonly domainLookupStart: number; - /** - * The high resolution millisecond timestamp representing the time immediately after the Node.js finished - * the domain name lookup for the resource. - * @since v18.2.0, v16.17.0 - */ - readonly domainLookupEnd: number; - /** - * The high resolution millisecond timestamp representing the time immediately before Node.js starts to - * establish the connection to the server to retrieve the resource. - * @since v18.2.0, v16.17.0 - */ - readonly connectStart: number; - /** - * The high resolution millisecond timestamp representing the time immediately after Node.js finishes - * establishing the connection to the server to retrieve the resource. - * @since v18.2.0, v16.17.0 - */ - readonly connectEnd: number; - /** - * The high resolution millisecond timestamp representing the time immediately before Node.js starts the - * handshake process to secure the current connection. - * @since v18.2.0, v16.17.0 - */ - readonly secureConnectionStart: number; - /** - * The high resolution millisecond timestamp representing the time immediately before Node.js receives the - * first byte of the response from the server. - * @since v18.2.0, v16.17.0 - */ - readonly requestStart: number; - /** - * The high resolution millisecond timestamp representing the time immediately after Node.js receives the - * last byte of the resource or immediately before the transport connection is closed, whichever comes first. - * @since v18.2.0, v16.17.0 - */ - readonly responseEnd: number; - /** - * A number representing the size (in octets) of the fetched resource. The size includes the response header - * fields plus the response payload body. - * @since v18.2.0, v16.17.0 - */ - readonly transferSize: number; - /** - * A number representing the size (in octets) received from the fetch (HTTP or cache), of the payload body, before - * removing any applied content-codings. - * @since v18.2.0, v16.17.0 - */ - readonly encodedBodySize: number; - /** - * A number representing the size (in octets) received from the fetch (HTTP or cache), of the message body, after - * removing any applied content-codings. - * @since v18.2.0, v16.17.0 - */ - readonly decodedBodySize: number; - /** - * Returns a `object` that is the JSON representation of the `PerformanceResourceTiming` object - * @since v18.2.0, v16.17.0 - */ - toJSON(): any; - } - namespace constants { - const NODE_PERFORMANCE_GC_MAJOR: number; - const NODE_PERFORMANCE_GC_MINOR: number; - const NODE_PERFORMANCE_GC_INCREMENTAL: number; - const NODE_PERFORMANCE_GC_WEAKCB: number; - const NODE_PERFORMANCE_GC_FLAGS_NO: number; - const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number; - const NODE_PERFORMANCE_GC_FLAGS_FORCED: number; - const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number; - const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number; - const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number; - const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number; - } - const performance: Performance; - interface EventLoopMonitorOptions { - /** - * The sampling rate in milliseconds. - * Must be greater than zero. - * @default 10 - */ - resolution?: number | undefined; - } - interface Histogram { - /** - * The number of samples recorded by the histogram. - * @since v17.4.0, v16.14.0 - */ - readonly count: number; - /** - * The number of samples recorded by the histogram. - * v17.4.0, v16.14.0 - */ - readonly countBigInt: bigint; - /** - * The number of times the event loop delay exceeded the maximum 1 hour event - * loop delay threshold. - * @since v11.10.0 - */ - readonly exceeds: number; - /** - * The number of times the event loop delay exceeded the maximum 1 hour event loop delay threshold. - * @since v17.4.0, v16.14.0 - */ - readonly exceedsBigInt: bigint; - /** - * The maximum recorded event loop delay. - * @since v11.10.0 - */ - readonly max: number; - /** - * The maximum recorded event loop delay. - * v17.4.0, v16.14.0 - */ - readonly maxBigInt: number; - /** - * The mean of the recorded event loop delays. - * @since v11.10.0 - */ - readonly mean: number; - /** - * The minimum recorded event loop delay. - * @since v11.10.0 - */ - readonly min: number; - /** - * The minimum recorded event loop delay. - * v17.4.0, v16.14.0 - */ - readonly minBigInt: bigint; - /** - * Returns the value at the given percentile. - * @since v11.10.0 - * @param percentile A percentile value in the range (0, 100]. - */ - percentile(percentile: number): number; - /** - * Returns the value at the given percentile. - * @since v17.4.0, v16.14.0 - * @param percentile A percentile value in the range (0, 100]. - */ - percentileBigInt(percentile: number): bigint; - /** - * Returns a `Map` object detailing the accumulated percentile distribution. - * @since v11.10.0 - */ - readonly percentiles: Map; - /** - * Returns a `Map` object detailing the accumulated percentile distribution. - * @since v17.4.0, v16.14.0 - */ - readonly percentilesBigInt: Map; - /** - * Resets the collected histogram data. - * @since v11.10.0 - */ - reset(): void; - /** - * The standard deviation of the recorded event loop delays. - * @since v11.10.0 - */ - readonly stddev: number; - } - interface IntervalHistogram extends Histogram { - /** - * Enables the update interval timer. Returns `true` if the timer was - * started, `false` if it was already started. - * @since v11.10.0 - */ - enable(): boolean; - /** - * Disables the update interval timer. Returns `true` if the timer was - * stopped, `false` if it was already stopped. - * @since v11.10.0 - */ - disable(): boolean; - /** - * Disables the update interval timer when the histogram is disposed. - * - * ```js - * const { monitorEventLoopDelay } = require('node:perf_hooks'); - * { - * using hist = monitorEventLoopDelay({ resolution: 20 }); - * hist.enable(); - * // The histogram will be disabled when the block is exited. - * } - * ``` - * @since v24.2.0 - */ - [Symbol.dispose](): void; - } - interface RecordableHistogram extends Histogram { - /** - * @since v15.9.0, v14.18.0 - * @param val The amount to record in the histogram. - */ - record(val: number | bigint): void; - /** - * Calculates the amount of time (in nanoseconds) that has passed since the - * previous call to `recordDelta()` and records that amount in the histogram. - * @since v15.9.0, v14.18.0 - */ - recordDelta(): void; - /** - * Adds the values from `other` to this histogram. - * @since v17.4.0, v16.14.0 - */ - add(other: RecordableHistogram): void; - } - /** - * _This property is an extension by Node.js. It is not available in Web browsers._ - * - * Creates an `IntervalHistogram` object that samples and reports the event loop - * delay over time. The delays will be reported in nanoseconds. - * - * Using a timer to detect approximate event loop delay works because the - * execution of timers is tied specifically to the lifecycle of the libuv - * event loop. That is, a delay in the loop will cause a delay in the execution - * of the timer, and those delays are specifically what this API is intended to - * detect. - * - * ```js - * import { monitorEventLoopDelay } from 'node:perf_hooks'; - * const h = monitorEventLoopDelay({ resolution: 20 }); - * h.enable(); - * // Do something. - * h.disable(); - * console.log(h.min); - * console.log(h.max); - * console.log(h.mean); - * console.log(h.stddev); - * console.log(h.percentiles); - * console.log(h.percentile(50)); - * console.log(h.percentile(99)); - * ``` - * @since v11.10.0 - */ - function monitorEventLoopDelay(options?: EventLoopMonitorOptions): IntervalHistogram; - interface CreateHistogramOptions { - /** - * The minimum recordable value. Must be an integer value greater than 0. - * @default 1 - */ - lowest?: number | bigint | undefined; - /** - * The maximum recordable value. Must be an integer value greater than min. - * @default Number.MAX_SAFE_INTEGER - */ - highest?: number | bigint | undefined; - /** - * The number of accuracy digits. Must be a number between 1 and 5. - * @default 3 - */ - figures?: number | undefined; - } - /** - * Returns a `RecordableHistogram`. - * @since v15.9.0, v14.18.0 - */ - function createHistogram(options?: CreateHistogramOptions): RecordableHistogram; - import { - performance as _performance, - PerformanceEntry as _PerformanceEntry, - PerformanceMark as _PerformanceMark, - PerformanceMeasure as _PerformanceMeasure, - PerformanceObserver as _PerformanceObserver, - PerformanceObserverEntryList as _PerformanceObserverEntryList, - PerformanceResourceTiming as _PerformanceResourceTiming, - } from "perf_hooks"; - global { - /** - * `PerformanceEntry` is a global reference for `import { PerformanceEntry } from 'node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v24.x/api/globals.html#performanceentry - * @since v19.0.0 - */ - var PerformanceEntry: typeof globalThis extends { - onmessage: any; - PerformanceEntry: infer T; - } ? T - : typeof _PerformanceEntry; - /** - * `PerformanceMark` is a global reference for `import { PerformanceMark } from 'node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v24.x/api/globals.html#performancemark - * @since v19.0.0 - */ - var PerformanceMark: typeof globalThis extends { - onmessage: any; - PerformanceMark: infer T; - } ? T - : typeof _PerformanceMark; - /** - * `PerformanceMeasure` is a global reference for `import { PerformanceMeasure } from 'node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v24.x/api/globals.html#performancemeasure - * @since v19.0.0 - */ - var PerformanceMeasure: typeof globalThis extends { - onmessage: any; - PerformanceMeasure: infer T; - } ? T - : typeof _PerformanceMeasure; - /** - * `PerformanceObserver` is a global reference for `import { PerformanceObserver } from 'node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v24.x/api/globals.html#performanceobserver - * @since v19.0.0 - */ - var PerformanceObserver: typeof globalThis extends { - onmessage: any; - PerformanceObserver: infer T; - } ? T - : typeof _PerformanceObserver; - /** - * `PerformanceObserverEntryList` is a global reference for `import { PerformanceObserverEntryList } from 'node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v24.x/api/globals.html#performanceobserverentrylist - * @since v19.0.0 - */ - var PerformanceObserverEntryList: typeof globalThis extends { - onmessage: any; - PerformanceObserverEntryList: infer T; - } ? T - : typeof _PerformanceObserverEntryList; - /** - * `PerformanceResourceTiming` is a global reference for `import { PerformanceResourceTiming } from 'node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v24.x/api/globals.html#performanceresourcetiming - * @since v19.0.0 - */ - var PerformanceResourceTiming: typeof globalThis extends { - onmessage: any; - PerformanceResourceTiming: infer T; - } ? T - : typeof _PerformanceResourceTiming; - /** - * `performance` is a global reference for `import { performance } from 'node:perf_hooks'` - * @see https://nodejs.org/docs/latest-v24.x/api/globals.html#performance - * @since v16.0.0 - */ - var performance: typeof globalThis extends { - onmessage: any; - performance: infer T; - } ? T - : typeof _performance; - } -} -declare module "node:perf_hooks" { - export * from "perf_hooks"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/process.d.ts b/build_vtk_bundle/node_modules/@types/node/process.d.ts deleted file mode 100644 index 35f031c8..00000000 --- a/build_vtk_bundle/node_modules/@types/node/process.d.ts +++ /dev/null @@ -1,2069 +0,0 @@ -declare module "process" { - import { Control, MessageOptions, SendHandle } from "node:child_process"; - import { PathLike } from "node:fs"; - import * as tty from "node:tty"; - import { Worker } from "node:worker_threads"; - - interface BuiltInModule { - "assert": typeof import("assert"); - "node:assert": typeof import("node:assert"); - "assert/strict": typeof import("assert/strict"); - "node:assert/strict": typeof import("node:assert/strict"); - "async_hooks": typeof import("async_hooks"); - "node:async_hooks": typeof import("node:async_hooks"); - "buffer": typeof import("buffer"); - "node:buffer": typeof import("node:buffer"); - "child_process": typeof import("child_process"); - "node:child_process": typeof import("node:child_process"); - "cluster": typeof import("cluster"); - "node:cluster": typeof import("node:cluster"); - "console": typeof import("console"); - "node:console": typeof import("node:console"); - "constants": typeof import("constants"); - "node:constants": typeof import("node:constants"); - "crypto": typeof import("crypto"); - "node:crypto": typeof import("node:crypto"); - "dgram": typeof import("dgram"); - "node:dgram": typeof import("node:dgram"); - "diagnostics_channel": typeof import("diagnostics_channel"); - "node:diagnostics_channel": typeof import("node:diagnostics_channel"); - "dns": typeof import("dns"); - "node:dns": typeof import("node:dns"); - "dns/promises": typeof import("dns/promises"); - "node:dns/promises": typeof import("node:dns/promises"); - "domain": typeof import("domain"); - "node:domain": typeof import("node:domain"); - "events": typeof import("events"); - "node:events": typeof import("node:events"); - "fs": typeof import("fs"); - "node:fs": typeof import("node:fs"); - "fs/promises": typeof import("fs/promises"); - "node:fs/promises": typeof import("node:fs/promises"); - "http": typeof import("http"); - "node:http": typeof import("node:http"); - "http2": typeof import("http2"); - "node:http2": typeof import("node:http2"); - "https": typeof import("https"); - "node:https": typeof import("node:https"); - "inspector": typeof import("inspector"); - "node:inspector": typeof import("node:inspector"); - "inspector/promises": typeof import("inspector/promises"); - "node:inspector/promises": typeof import("node:inspector/promises"); - "module": typeof import("module"); - "node:module": typeof import("node:module"); - "net": typeof import("net"); - "node:net": typeof import("node:net"); - "os": typeof import("os"); - "node:os": typeof import("node:os"); - "path": typeof import("path"); - "node:path": typeof import("node:path"); - "path/posix": typeof import("path/posix"); - "node:path/posix": typeof import("node:path/posix"); - "path/win32": typeof import("path/win32"); - "node:path/win32": typeof import("node:path/win32"); - "perf_hooks": typeof import("perf_hooks"); - "node:perf_hooks": typeof import("node:perf_hooks"); - "process": typeof import("process"); - "node:process": typeof import("node:process"); - "punycode": typeof import("punycode"); - "node:punycode": typeof import("node:punycode"); - "querystring": typeof import("querystring"); - "node:querystring": typeof import("node:querystring"); - "readline": typeof import("readline"); - "node:readline": typeof import("node:readline"); - "readline/promises": typeof import("readline/promises"); - "node:readline/promises": typeof import("node:readline/promises"); - "repl": typeof import("repl"); - "node:repl": typeof import("node:repl"); - "node:sea": typeof import("node:sea"); - "node:sqlite": typeof import("node:sqlite"); - "stream": typeof import("stream"); - "node:stream": typeof import("node:stream"); - "stream/consumers": typeof import("stream/consumers"); - "node:stream/consumers": typeof import("node:stream/consumers"); - "stream/promises": typeof import("stream/promises"); - "node:stream/promises": typeof import("node:stream/promises"); - "stream/web": typeof import("stream/web"); - "node:stream/web": typeof import("node:stream/web"); - "string_decoder": typeof import("string_decoder"); - "node:string_decoder": typeof import("node:string_decoder"); - "node:test": typeof import("node:test"); - "node:test/reporters": typeof import("node:test/reporters"); - "timers": typeof import("timers"); - "node:timers": typeof import("node:timers"); - "timers/promises": typeof import("timers/promises"); - "node:timers/promises": typeof import("node:timers/promises"); - "tls": typeof import("tls"); - "node:tls": typeof import("node:tls"); - "trace_events": typeof import("trace_events"); - "node:trace_events": typeof import("node:trace_events"); - "tty": typeof import("tty"); - "node:tty": typeof import("node:tty"); - "url": typeof import("url"); - "node:url": typeof import("node:url"); - "util": typeof import("util"); - "node:util": typeof import("node:util"); - "sys": typeof import("util"); - "node:sys": typeof import("node:util"); - "util/types": typeof import("util/types"); - "node:util/types": typeof import("node:util/types"); - "v8": typeof import("v8"); - "node:v8": typeof import("node:v8"); - "vm": typeof import("vm"); - "node:vm": typeof import("node:vm"); - "wasi": typeof import("wasi"); - "node:wasi": typeof import("node:wasi"); - "worker_threads": typeof import("worker_threads"); - "node:worker_threads": typeof import("node:worker_threads"); - "zlib": typeof import("zlib"); - "node:zlib": typeof import("node:zlib"); - } - global { - var process: NodeJS.Process; - namespace NodeJS { - // this namespace merge is here because these are specifically used - // as the type for process.stdin, process.stdout, and process.stderr. - // they can't live in tty.d.ts because we need to disambiguate the imported name. - interface ReadStream extends tty.ReadStream {} - interface WriteStream extends tty.WriteStream {} - interface MemoryUsageFn { - /** - * The `process.memoryUsage()` method iterate over each page to gather informations about memory - * usage which can be slow depending on the program memory allocations. - */ - (): MemoryUsage; - /** - * method returns an integer representing the Resident Set Size (RSS) in bytes. - */ - rss(): number; - } - interface MemoryUsage { - /** - * Resident Set Size, is the amount of space occupied in the main memory device (that is a subset of the total allocated memory) for the - * process, including all C++ and JavaScript objects and code. - */ - rss: number; - /** - * Refers to V8's memory usage. - */ - heapTotal: number; - /** - * Refers to V8's memory usage. - */ - heapUsed: number; - external: number; - /** - * Refers to memory allocated for `ArrayBuffer`s and `SharedArrayBuffer`s, including all Node.js Buffers. This is also included - * in the external value. When Node.js is used as an embedded library, this value may be `0` because allocations for `ArrayBuffer`s - * may not be tracked in that case. - */ - arrayBuffers: number; - } - interface CpuUsage { - user: number; - system: number; - } - interface ProcessRelease { - name: string; - sourceUrl?: string | undefined; - headersUrl?: string | undefined; - libUrl?: string | undefined; - lts?: string | undefined; - } - interface ProcessFeatures { - /** - * A boolean value that is `true` if the current Node.js build is caching builtin modules. - * @since v12.0.0 - */ - readonly cached_builtins: boolean; - /** - * A boolean value that is `true` if the current Node.js build is a debug build. - * @since v0.5.5 - */ - readonly debug: boolean; - /** - * A boolean value that is `true` if the current Node.js build includes the inspector. - * @since v11.10.0 - */ - readonly inspector: boolean; - /** - * A boolean value that is `true` if the current Node.js build includes support for IPv6. - * - * Since all Node.js builds have IPv6 support, this value is always `true`. - * @since v0.5.3 - * @deprecated This property is always true, and any checks based on it are redundant. - */ - readonly ipv6: boolean; - /** - * A boolean value that is `true` if the current Node.js build supports - * [loading ECMAScript modules using `require()`](https://nodejs.org/docs/latest-v24.x/api/modules.md#loading-ecmascript-modules-using-require). - * @since v22.10.0 - */ - readonly require_module: boolean; - /** - * A boolean value that is `true` if the current Node.js build includes support for TLS. - * @since v0.5.3 - */ - readonly tls: boolean; - /** - * A boolean value that is `true` if the current Node.js build includes support for ALPN in TLS. - * - * In Node.js 11.0.0 and later versions, the OpenSSL dependencies feature unconditional ALPN support. - * This value is therefore identical to that of `process.features.tls`. - * @since v4.8.0 - * @deprecated Use `process.features.tls` instead. - */ - readonly tls_alpn: boolean; - /** - * A boolean value that is `true` if the current Node.js build includes support for OCSP in TLS. - * - * In Node.js 11.0.0 and later versions, the OpenSSL dependencies feature unconditional OCSP support. - * This value is therefore identical to that of `process.features.tls`. - * @since v0.11.13 - * @deprecated Use `process.features.tls` instead. - */ - readonly tls_ocsp: boolean; - /** - * A boolean value that is `true` if the current Node.js build includes support for SNI in TLS. - * - * In Node.js 11.0.0 and later versions, the OpenSSL dependencies feature unconditional SNI support. - * This value is therefore identical to that of `process.features.tls`. - * @since v0.5.3 - * @deprecated Use `process.features.tls` instead. - */ - readonly tls_sni: boolean; - /** - * A value that is `"strip"` by default, - * `"transform"` if Node.js is run with `--experimental-transform-types`, and `false` if - * Node.js is run with `--no-experimental-strip-types`. - * @since v22.10.0 - */ - readonly typescript: "strip" | "transform" | false; - /** - * A boolean value that is `true` if the current Node.js build includes support for libuv. - * - * Since it's not possible to build Node.js without libuv, this value is always `true`. - * @since v0.5.3 - * @deprecated This property is always true, and any checks based on it are redundant. - */ - readonly uv: boolean; - } - interface ProcessVersions extends Dict { - http_parser: string; - node: string; - v8: string; - ares: string; - uv: string; - zlib: string; - modules: string; - openssl: string; - } - type Platform = - | "aix" - | "android" - | "darwin" - | "freebsd" - | "haiku" - | "linux" - | "openbsd" - | "sunos" - | "win32" - | "cygwin" - | "netbsd"; - type Architecture = - | "arm" - | "arm64" - | "ia32" - | "loong64" - | "mips" - | "mipsel" - | "ppc64" - | "riscv64" - | "s390x" - | "x64"; - type Signals = - | "SIGABRT" - | "SIGALRM" - | "SIGBUS" - | "SIGCHLD" - | "SIGCONT" - | "SIGFPE" - | "SIGHUP" - | "SIGILL" - | "SIGINT" - | "SIGIO" - | "SIGIOT" - | "SIGKILL" - | "SIGPIPE" - | "SIGPOLL" - | "SIGPROF" - | "SIGPWR" - | "SIGQUIT" - | "SIGSEGV" - | "SIGSTKFLT" - | "SIGSTOP" - | "SIGSYS" - | "SIGTERM" - | "SIGTRAP" - | "SIGTSTP" - | "SIGTTIN" - | "SIGTTOU" - | "SIGUNUSED" - | "SIGURG" - | "SIGUSR1" - | "SIGUSR2" - | "SIGVTALRM" - | "SIGWINCH" - | "SIGXCPU" - | "SIGXFSZ" - | "SIGBREAK" - | "SIGLOST" - | "SIGINFO"; - type UncaughtExceptionOrigin = "uncaughtException" | "unhandledRejection"; - type MultipleResolveType = "resolve" | "reject"; - type BeforeExitListener = (code: number) => void; - type DisconnectListener = () => void; - type ExitListener = (code: number) => void; - type RejectionHandledListener = (promise: Promise) => void; - type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void; - /** - * Most of the time the unhandledRejection will be an Error, but this should not be relied upon - * as *anything* can be thrown/rejected, it is therefore unsafe to assume that the value is an Error. - */ - type UnhandledRejectionListener = (reason: unknown, promise: Promise) => void; - type WarningListener = (warning: Error) => void; - type MessageListener = (message: unknown, sendHandle: SendHandle) => void; - type SignalsListener = (signal: Signals) => void; - type MultipleResolveListener = ( - type: MultipleResolveType, - promise: Promise, - value: unknown, - ) => void; - type WorkerListener = (worker: Worker) => void; - interface Socket extends ReadWriteStream { - isTTY?: true | undefined; - } - // Alias for compatibility - interface ProcessEnv extends Dict { - /** - * Can be used to change the default timezone at runtime - */ - TZ?: string | undefined; - } - interface HRTime { - /** - * This is the legacy version of {@link process.hrtime.bigint()} - * before bigint was introduced in JavaScript. - * - * The `process.hrtime()` method returns the current high-resolution real time in a `[seconds, nanoseconds]` tuple `Array`, - * where `nanoseconds` is the remaining part of the real time that can't be represented in second precision. - * - * `time` is an optional parameter that must be the result of a previous `process.hrtime()` call to diff with the current time. - * If the parameter passed in is not a tuple `Array`, a TypeError will be thrown. - * Passing in a user-defined array instead of the result of a previous call to `process.hrtime()` will lead to undefined behavior. - * - * These times are relative to an arbitrary time in the past, - * and not related to the time of day and therefore not subject to clock drift. - * The primary use is for measuring performance between intervals: - * ```js - * const { hrtime } = require('node:process'); - * const NS_PER_SEC = 1e9; - * const time = hrtime(); - * // [ 1800216, 25 ] - * - * setTimeout(() => { - * const diff = hrtime(time); - * // [ 1, 552 ] - * - * console.log(`Benchmark took ${diff[0] * NS_PER_SEC + diff[1]} nanoseconds`); - * // Benchmark took 1000000552 nanoseconds - * }, 1000); - * ``` - * @since 0.7.6 - * @legacy Use {@link process.hrtime.bigint()} instead. - * @param time The result of a previous call to `process.hrtime()` - */ - (time?: [number, number]): [number, number]; - /** - * The `bigint` version of the {@link process.hrtime()} method returning the current high-resolution real time in nanoseconds as a `bigint`. - * - * Unlike {@link process.hrtime()}, it does not support an additional time argument since the difference can just be computed directly by subtraction of the two `bigint`s. - * ```js - * import { hrtime } from 'node:process'; - * - * const start = hrtime.bigint(); - * // 191051479007711n - * - * setTimeout(() => { - * const end = hrtime.bigint(); - * // 191052633396993n - * - * console.log(`Benchmark took ${end - start} nanoseconds`); - * // Benchmark took 1154389282 nanoseconds - * }, 1000); - * ``` - * @since v10.7.0 - */ - bigint(): bigint; - } - interface ProcessPermission { - /** - * Verifies that the process is able to access the given scope and reference. - * If no reference is provided, a global scope is assumed, for instance, `process.permission.has('fs.read')` - * will check if the process has ALL file system read permissions. - * - * The reference has a meaning based on the provided scope. For example, the reference when the scope is File System means files and folders. - * - * The available scopes are: - * - * * `fs` - All File System - * * `fs.read` - File System read operations - * * `fs.write` - File System write operations - * * `child` - Child process spawning operations - * * `worker` - Worker thread spawning operation - * - * ```js - * // Check if the process has permission to read the README file - * process.permission.has('fs.read', './README.md'); - * // Check if the process has read permission operations - * process.permission.has('fs.read'); - * ``` - * @since v20.0.0 - */ - has(scope: string, reference?: string): boolean; - } - interface ProcessReport { - /** - * Write reports in a compact format, single-line JSON, more easily consumable by log processing systems - * than the default multi-line format designed for human consumption. - * @since v13.12.0, v12.17.0 - */ - compact: boolean; - /** - * Directory where the report is written. - * The default value is the empty string, indicating that reports are written to the current - * working directory of the Node.js process. - */ - directory: string; - /** - * Filename where the report is written. If set to the empty string, the output filename will be comprised - * of a timestamp, PID, and sequence number. The default value is the empty string. - */ - filename: string; - /** - * Returns a JavaScript Object representation of a diagnostic report for the running process. - * The report's JavaScript stack trace is taken from `err`, if present. - */ - getReport(err?: Error): object; - /** - * If true, a diagnostic report is generated on fatal errors, - * such as out of memory errors or failed C++ assertions. - * @default false - */ - reportOnFatalError: boolean; - /** - * If true, a diagnostic report is generated when the process - * receives the signal specified by process.report.signal. - * @default false - */ - reportOnSignal: boolean; - /** - * If true, a diagnostic report is generated on uncaught exception. - * @default false - */ - reportOnUncaughtException: boolean; - /** - * The signal used to trigger the creation of a diagnostic report. - * @default 'SIGUSR2' - */ - signal: Signals; - /** - * Writes a diagnostic report to a file. If filename is not provided, the default filename - * includes the date, time, PID, and a sequence number. - * The report's JavaScript stack trace is taken from `err`, if present. - * - * If the value of filename is set to `'stdout'` or `'stderr'`, the report is written - * to the stdout or stderr of the process respectively. - * @param fileName Name of the file where the report is written. - * This should be a relative path, that will be appended to the directory specified in - * `process.report.directory`, or the current working directory of the Node.js process, - * if unspecified. - * @param err A custom error used for reporting the JavaScript stack. - * @return Filename of the generated report. - */ - writeReport(fileName?: string, err?: Error): string; - writeReport(err?: Error): string; - } - interface ResourceUsage { - fsRead: number; - fsWrite: number; - involuntaryContextSwitches: number; - ipcReceived: number; - ipcSent: number; - majorPageFault: number; - maxRSS: number; - minorPageFault: number; - sharedMemorySize: number; - signalsCount: number; - swappedOut: number; - systemCPUTime: number; - unsharedDataSize: number; - unsharedStackSize: number; - userCPUTime: number; - voluntaryContextSwitches: number; - } - interface EmitWarningOptions { - /** - * When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted. - * - * @default 'Warning' - */ - type?: string | undefined; - /** - * A unique identifier for the warning instance being emitted. - */ - code?: string | undefined; - /** - * When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace. - * - * @default process.emitWarning - */ - ctor?: Function | undefined; - /** - * Additional text to include with the error. - */ - detail?: string | undefined; - } - interface ProcessConfig { - readonly target_defaults: { - readonly cflags: any[]; - readonly default_configuration: string; - readonly defines: string[]; - readonly include_dirs: string[]; - readonly libraries: string[]; - }; - readonly variables: { - readonly clang: number; - readonly host_arch: string; - readonly node_install_npm: boolean; - readonly node_install_waf: boolean; - readonly node_prefix: string; - readonly node_shared_openssl: boolean; - readonly node_shared_v8: boolean; - readonly node_shared_zlib: boolean; - readonly node_use_dtrace: boolean; - readonly node_use_etw: boolean; - readonly node_use_openssl: boolean; - readonly target_arch: string; - readonly v8_no_strict_aliasing: number; - readonly v8_use_snapshot: boolean; - readonly visibility: string; - }; - } - interface Process extends EventEmitter { - /** - * The `process.stdout` property returns a stream connected to`stdout` (fd `1`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `1` refers to a file, in which case it is - * a `Writable` stream. - * - * For example, to copy `process.stdin` to `process.stdout`: - * - * ```js - * import { stdin, stdout } from 'node:process'; - * - * stdin.pipe(stdout); - * ``` - * - * `process.stdout` differs from other Node.js streams in important ways. See `note on process I/O` for more information. - */ - stdout: WriteStream & { - fd: 1; - }; - /** - * The `process.stderr` property returns a stream connected to`stderr` (fd `2`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `2` refers to a file, in which case it is - * a `Writable` stream. - * - * `process.stderr` differs from other Node.js streams in important ways. See `note on process I/O` for more information. - */ - stderr: WriteStream & { - fd: 2; - }; - /** - * The `process.stdin` property returns a stream connected to`stdin` (fd `0`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `0` refers to a file, in which case it is - * a `Readable` stream. - * - * For details of how to read from `stdin` see `readable.read()`. - * - * As a `Duplex` stream, `process.stdin` can also be used in "old" mode that - * is compatible with scripts written for Node.js prior to v0.10\. - * For more information see `Stream compatibility`. - * - * In "old" streams mode the `stdin` stream is paused by default, so one - * must call `process.stdin.resume()` to read from it. Note also that calling `process.stdin.resume()` itself would switch stream to "old" mode. - */ - stdin: ReadStream & { - fd: 0; - }; - /** - * The `process.argv` property returns an array containing the command-line - * arguments passed when the Node.js process was launched. The first element will - * be {@link execPath}. See `process.argv0` if access to the original value - * of `argv[0]` is needed. The second element will be the path to the JavaScript - * file being executed. The remaining elements will be any additional command-line - * arguments. - * - * For example, assuming the following script for `process-args.js`: - * - * ```js - * import { argv } from 'node:process'; - * - * // print process.argv - * argv.forEach((val, index) => { - * console.log(`${index}: ${val}`); - * }); - * ``` - * - * Launching the Node.js process as: - * - * ```bash - * node process-args.js one two=three four - * ``` - * - * Would generate the output: - * - * ```text - * 0: /usr/local/bin/node - * 1: /Users/mjr/work/node/process-args.js - * 2: one - * 3: two=three - * 4: four - * ``` - * @since v0.1.27 - */ - argv: string[]; - /** - * The `process.argv0` property stores a read-only copy of the original value of`argv[0]` passed when Node.js starts. - * - * ```console - * $ bash -c 'exec -a customArgv0 ./node' - * > process.argv[0] - * '/Volumes/code/external/node/out/Release/node' - * > process.argv0 - * 'customArgv0' - * ``` - * @since v6.4.0 - */ - argv0: string; - /** - * The `process.execArgv` property returns the set of Node.js-specific command-line - * options passed when the Node.js process was launched. These options do not - * appear in the array returned by the {@link argv} property, and do not - * include the Node.js executable, the name of the script, or any options following - * the script name. These options are useful in order to spawn child processes with - * the same execution environment as the parent. - * - * ```bash - * node --icu-data-dir=./foo --require ./bar.js script.js --version - * ``` - * - * Results in `process.execArgv`: - * - * ```js - * ["--icu-data-dir=./foo", "--require", "./bar.js"] - * ``` - * - * And `process.argv`: - * - * ```js - * ['/usr/local/bin/node', 'script.js', '--version'] - * ``` - * - * Refer to `Worker constructor` for the detailed behavior of worker - * threads with this property. - * @since v0.7.7 - */ - execArgv: string[]; - /** - * The `process.execPath` property returns the absolute pathname of the executable - * that started the Node.js process. Symbolic links, if any, are resolved. - * - * ```js - * '/usr/local/bin/node' - * ``` - * @since v0.1.100 - */ - execPath: string; - /** - * The `process.abort()` method causes the Node.js process to exit immediately and - * generate a core file. - * - * This feature is not available in `Worker` threads. - * @since v0.7.0 - */ - abort(): never; - /** - * The `process.chdir()` method changes the current working directory of the - * Node.js process or throws an exception if doing so fails (for instance, if - * the specified `directory` does not exist). - * - * ```js - * import { chdir, cwd } from 'node:process'; - * - * console.log(`Starting directory: ${cwd()}`); - * try { - * chdir('/tmp'); - * console.log(`New directory: ${cwd()}`); - * } catch (err) { - * console.error(`chdir: ${err}`); - * } - * ``` - * - * This feature is not available in `Worker` threads. - * @since v0.1.17 - */ - chdir(directory: string): void; - /** - * The `process.cwd()` method returns the current working directory of the Node.js - * process. - * - * ```js - * import { cwd } from 'node:process'; - * - * console.log(`Current directory: ${cwd()}`); - * ``` - * @since v0.1.8 - */ - cwd(): string; - /** - * The port used by the Node.js debugger when enabled. - * - * ```js - * import process from 'node:process'; - * - * process.debugPort = 5858; - * ``` - * @since v0.7.2 - */ - debugPort: number; - /** - * The `process.dlopen()` method allows dynamically loading shared objects. It is primarily used by `require()` to load C++ Addons, and - * should not be used directly, except in special cases. In other words, `require()` should be preferred over `process.dlopen()` - * unless there are specific reasons such as custom dlopen flags or loading from ES modules. - * - * The `flags` argument is an integer that allows to specify dlopen behavior. See the `[os.constants.dlopen](https://nodejs.org/docs/latest-v24.x/api/os.html#dlopen-constants)` - * documentation for details. - * - * An important requirement when calling `process.dlopen()` is that the `module` instance must be passed. Functions exported by the C++ Addon - * are then accessible via `module.exports`. - * - * The example below shows how to load a C++ Addon, named `local.node`, that exports a `foo` function. All the symbols are loaded before the call returns, by passing the `RTLD_NOW` constant. - * In this example the constant is assumed to be available. - * - * ```js - * import { dlopen } from 'node:process'; - * import { constants } from 'node:os'; - * import { fileURLToPath } from 'node:url'; - * - * const module = { exports: {} }; - * dlopen(module, fileURLToPath(new URL('local.node', import.meta.url)), - * constants.dlopen.RTLD_NOW); - * module.exports.foo(); - * ``` - */ - dlopen(module: object, filename: string, flags?: number): void; - /** - * The `process.emitWarning()` method can be used to emit custom or application - * specific process warnings. These can be listened for by adding a handler to the `'warning'` event. - * - * ```js - * import { emitWarning } from 'node:process'; - * - * // Emit a warning using a string. - * emitWarning('Something happened!'); - * // Emits: (node: 56338) Warning: Something happened! - * ``` - * - * ```js - * import { emitWarning } from 'node:process'; - * - * // Emit a warning using a string and a type. - * emitWarning('Something Happened!', 'CustomWarning'); - * // Emits: (node:56338) CustomWarning: Something Happened! - * ``` - * - * ```js - * import { emitWarning } from 'node:process'; - * - * emitWarning('Something happened!', 'CustomWarning', 'WARN001'); - * // Emits: (node:56338) [WARN001] CustomWarning: Something happened! - * ```js - * - * In each of the previous examples, an `Error` object is generated internally by `process.emitWarning()` and passed through to the `'warning'` handler. - * - * ```js - * import process from 'node:process'; - * - * process.on('warning', (warning) => { - * console.warn(warning.name); // 'Warning' - * console.warn(warning.message); // 'Something happened!' - * console.warn(warning.code); // 'MY_WARNING' - * console.warn(warning.stack); // Stack trace - * console.warn(warning.detail); // 'This is some additional information' - * }); - * ``` - * - * If `warning` is passed as an `Error` object, it will be passed through to the `'warning'` event handler - * unmodified (and the optional `type`, `code` and `ctor` arguments will be ignored): - * - * ```js - * import { emitWarning } from 'node:process'; - * - * // Emit a warning using an Error object. - * const myWarning = new Error('Something happened!'); - * // Use the Error name property to specify the type name - * myWarning.name = 'CustomWarning'; - * myWarning.code = 'WARN001'; - * - * emitWarning(myWarning); - * // Emits: (node:56338) [WARN001] CustomWarning: Something happened! - * ``` - * - * A `TypeError` is thrown if `warning` is anything other than a string or `Error` object. - * - * While process warnings use `Error` objects, the process warning mechanism is not a replacement for normal error handling mechanisms. - * - * The following additional handling is implemented if the warning `type` is `'DeprecationWarning'`: - * * If the `--throw-deprecation` command-line flag is used, the deprecation warning is thrown as an exception rather than being emitted as an event. - * * If the `--no-deprecation` command-line flag is used, the deprecation warning is suppressed. - * * If the `--trace-deprecation` command-line flag is used, the deprecation warning is printed to `stderr` along with the full stack trace. - * @since v8.0.0 - * @param warning The warning to emit. - */ - emitWarning(warning: string | Error, ctor?: Function): void; - emitWarning(warning: string | Error, type?: string, ctor?: Function): void; - emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void; - emitWarning(warning: string | Error, options?: EmitWarningOptions): void; - /** - * The `process.env` property returns an object containing the user environment. - * See [`environ(7)`](http://man7.org/linux/man-pages/man7/environ.7.html). - * - * An example of this object looks like: - * - * ```js - * { - * TERM: 'xterm-256color', - * SHELL: '/usr/local/bin/bash', - * USER: 'maciej', - * PATH: '~/.bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin', - * PWD: '/Users/maciej', - * EDITOR: 'vim', - * SHLVL: '1', - * HOME: '/Users/maciej', - * LOGNAME: 'maciej', - * _: '/usr/local/bin/node' - * } - * ``` - * - * It is possible to modify this object, but such modifications will not be - * reflected outside the Node.js process, or (unless explicitly requested) - * to other `Worker` threads. - * In other words, the following example would not work: - * - * ```bash - * node -e 'process.env.foo = "bar"' && echo $foo - * ``` - * - * While the following will: - * - * ```js - * import { env } from 'node:process'; - * - * env.foo = 'bar'; - * console.log(env.foo); - * ``` - * - * Assigning a property on `process.env` will implicitly convert the value - * to a string. **This behavior is deprecated.** Future versions of Node.js may - * throw an error when the value is not a string, number, or boolean. - * - * ```js - * import { env } from 'node:process'; - * - * env.test = null; - * console.log(env.test); - * // => 'null' - * env.test = undefined; - * console.log(env.test); - * // => 'undefined' - * ``` - * - * Use `delete` to delete a property from `process.env`. - * - * ```js - * import { env } from 'node:process'; - * - * env.TEST = 1; - * delete env.TEST; - * console.log(env.TEST); - * // => undefined - * ``` - * - * On Windows operating systems, environment variables are case-insensitive. - * - * ```js - * import { env } from 'node:process'; - * - * env.TEST = 1; - * console.log(env.test); - * // => 1 - * ``` - * - * Unless explicitly specified when creating a `Worker` instance, - * each `Worker` thread has its own copy of `process.env`, based on its - * parent thread's `process.env`, or whatever was specified as the `env` option - * to the `Worker` constructor. Changes to `process.env` will not be visible - * across `Worker` threads, and only the main thread can make changes that - * are visible to the operating system or to native add-ons. On Windows, a copy of `process.env` on a `Worker` instance operates in a case-sensitive manner - * unlike the main thread. - * @since v0.1.27 - */ - env: ProcessEnv; - /** - * The `process.exit()` method instructs Node.js to terminate the process - * synchronously with an exit status of `code`. If `code` is omitted, exit uses - * either the 'success' code `0` or the value of `process.exitCode` if it has been - * set. Node.js will not terminate until all the `'exit'` event listeners are - * called. - * - * To exit with a 'failure' code: - * - * ```js - * import { exit } from 'node:process'; - * - * exit(1); - * ``` - * - * The shell that executed Node.js should see the exit code as `1`. - * - * Calling `process.exit()` will force the process to exit as quickly as possible - * even if there are still asynchronous operations pending that have not yet - * completed fully, including I/O operations to `process.stdout` and `process.stderr`. - * - * In most situations, it is not actually necessary to call `process.exit()` explicitly. The Node.js process will exit on its own _if there is no additional_ - * _work pending_ in the event loop. The `process.exitCode` property can be set to - * tell the process which exit code to use when the process exits gracefully. - * - * For instance, the following example illustrates a _misuse_ of the `process.exit()` method that could lead to data printed to stdout being - * truncated and lost: - * - * ```js - * import { exit } from 'node:process'; - * - * // This is an example of what *not* to do: - * if (someConditionNotMet()) { - * printUsageToStdout(); - * exit(1); - * } - * ``` - * - * The reason this is problematic is because writes to `process.stdout` in Node.js - * are sometimes _asynchronous_ and may occur over multiple ticks of the Node.js - * event loop. Calling `process.exit()`, however, forces the process to exit _before_ those additional writes to `stdout` can be performed. - * - * Rather than calling `process.exit()` directly, the code _should_ set the `process.exitCode` and allow the process to exit naturally by avoiding - * scheduling any additional work for the event loop: - * - * ```js - * import process from 'node:process'; - * - * // How to properly set the exit code while letting - * // the process exit gracefully. - * if (someConditionNotMet()) { - * printUsageToStdout(); - * process.exitCode = 1; - * } - * ``` - * - * If it is necessary to terminate the Node.js process due to an error condition, - * throwing an _uncaught_ error and allowing the process to terminate accordingly - * is safer than calling `process.exit()`. - * - * In `Worker` threads, this function stops the current thread rather - * than the current process. - * @since v0.1.13 - * @param [code=0] The exit code. For string type, only integer strings (e.g.,'1') are allowed. - */ - exit(code?: number | string | null): never; - /** - * A number which will be the process exit code, when the process either - * exits gracefully, or is exited via {@link exit} without specifying - * a code. - * - * Specifying a code to {@link exit} will override any - * previous setting of `process.exitCode`. - * @default undefined - * @since v0.11.8 - */ - exitCode: number | string | null | undefined; - finalization: { - /** - * This function registers a callback to be called when the process emits the `exit` event if the `ref` object was not garbage collected. - * If the object `ref` was garbage collected before the `exit` event is emitted, the callback will be removed from the finalization registry, and it will not be called on process exit. - * - * Inside the callback you can release the resources allocated by the `ref` object. - * Be aware that all limitations applied to the `beforeExit` event are also applied to the callback function, - * this means that there is a possibility that the callback will not be called under special circumstances. - * - * The idea of ​​this function is to help you free up resources when the starts process exiting, but also let the object be garbage collected if it is no longer being used. - * @param ref The reference to the resource that is being tracked. - * @param callback The callback function to be called when the resource is finalized. - * @since v22.5.0 - * @experimental - */ - register(ref: T, callback: (ref: T, event: "exit") => void): void; - /** - * This function behaves exactly like the `register`, except that the callback will be called when the process emits the `beforeExit` event if `ref` object was not garbage collected. - * - * Be aware that all limitations applied to the `beforeExit` event are also applied to the callback function, this means that there is a possibility that the callback will not be called under special circumstances. - * @param ref The reference to the resource that is being tracked. - * @param callback The callback function to be called when the resource is finalized. - * @since v22.5.0 - * @experimental - */ - registerBeforeExit(ref: T, callback: (ref: T, event: "beforeExit") => void): void; - /** - * This function remove the register of the object from the finalization registry, so the callback will not be called anymore. - * @param ref The reference to the resource that was registered previously. - * @since v22.5.0 - * @experimental - */ - unregister(ref: object): void; - }; - /** - * The `process.getActiveResourcesInfo()` method returns an array of strings containing - * the types of the active resources that are currently keeping the event loop alive. - * - * ```js - * import { getActiveResourcesInfo } from 'node:process'; - * import { setTimeout } from 'node:timers'; - - * console.log('Before:', getActiveResourcesInfo()); - * setTimeout(() => {}, 1000); - * console.log('After:', getActiveResourcesInfo()); - * // Prints: - * // Before: [ 'TTYWrap', 'TTYWrap', 'TTYWrap' ] - * // After: [ 'TTYWrap', 'TTYWrap', 'TTYWrap', 'Timeout' ] - * ``` - * @since v17.3.0, v16.14.0 - */ - getActiveResourcesInfo(): string[]; - /** - * Provides a way to load built-in modules in a globally available function. - * @param id ID of the built-in module being requested. - */ - getBuiltinModule(id: ID): BuiltInModule[ID]; - getBuiltinModule(id: string): object | undefined; - /** - * The `process.getgid()` method returns the numerical group identity of the - * process. (See [`getgid(2)`](http://man7.org/linux/man-pages/man2/getgid.2.html).) - * - * ```js - * import process from 'node:process'; - * - * if (process.getgid) { - * console.log(`Current gid: ${process.getgid()}`); - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * @since v0.1.31 - */ - getgid?: () => number; - /** - * The `process.setgid()` method sets the group identity of the process. (See [`setgid(2)`](http://man7.org/linux/man-pages/man2/setgid.2.html).) The `id` can be passed as either a - * numeric ID or a group name - * string. If a group name is specified, this method blocks while resolving the - * associated numeric ID. - * - * ```js - * import process from 'node:process'; - * - * if (process.getgid && process.setgid) { - * console.log(`Current gid: ${process.getgid()}`); - * try { - * process.setgid(501); - * console.log(`New gid: ${process.getgid()}`); - * } catch (err) { - * console.log(`Failed to set gid: ${err}`); - * } - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * This feature is not available in `Worker` threads. - * @since v0.1.31 - * @param id The group name or ID - */ - setgid?: (id: number | string) => void; - /** - * The `process.getuid()` method returns the numeric user identity of the process. - * (See [`getuid(2)`](http://man7.org/linux/man-pages/man2/getuid.2.html).) - * - * ```js - * import process from 'node:process'; - * - * if (process.getuid) { - * console.log(`Current uid: ${process.getuid()}`); - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * @since v0.1.28 - */ - getuid?: () => number; - /** - * The `process.setuid(id)` method sets the user identity of the process. (See [`setuid(2)`](http://man7.org/linux/man-pages/man2/setuid.2.html).) The `id` can be passed as either a - * numeric ID or a username string. - * If a username is specified, the method blocks while resolving the associated - * numeric ID. - * - * ```js - * import process from 'node:process'; - * - * if (process.getuid && process.setuid) { - * console.log(`Current uid: ${process.getuid()}`); - * try { - * process.setuid(501); - * console.log(`New uid: ${process.getuid()}`); - * } catch (err) { - * console.log(`Failed to set uid: ${err}`); - * } - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * This feature is not available in `Worker` threads. - * @since v0.1.28 - */ - setuid?: (id: number | string) => void; - /** - * The `process.geteuid()` method returns the numerical effective user identity of - * the process. (See [`geteuid(2)`](http://man7.org/linux/man-pages/man2/geteuid.2.html).) - * - * ```js - * import process from 'node:process'; - * - * if (process.geteuid) { - * console.log(`Current uid: ${process.geteuid()}`); - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * @since v2.0.0 - */ - geteuid?: () => number; - /** - * The `process.seteuid()` method sets the effective user identity of the process. - * (See [`seteuid(2)`](http://man7.org/linux/man-pages/man2/seteuid.2.html).) The `id` can be passed as either a numeric ID or a username - * string. If a username is specified, the method blocks while resolving the - * associated numeric ID. - * - * ```js - * import process from 'node:process'; - * - * if (process.geteuid && process.seteuid) { - * console.log(`Current uid: ${process.geteuid()}`); - * try { - * process.seteuid(501); - * console.log(`New uid: ${process.geteuid()}`); - * } catch (err) { - * console.log(`Failed to set uid: ${err}`); - * } - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * This feature is not available in `Worker` threads. - * @since v2.0.0 - * @param id A user name or ID - */ - seteuid?: (id: number | string) => void; - /** - * The `process.getegid()` method returns the numerical effective group identity - * of the Node.js process. (See [`getegid(2)`](http://man7.org/linux/man-pages/man2/getegid.2.html).) - * - * ```js - * import process from 'node:process'; - * - * if (process.getegid) { - * console.log(`Current gid: ${process.getegid()}`); - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * @since v2.0.0 - */ - getegid?: () => number; - /** - * The `process.setegid()` method sets the effective group identity of the process. - * (See [`setegid(2)`](http://man7.org/linux/man-pages/man2/setegid.2.html).) The `id` can be passed as either a numeric ID or a group - * name string. If a group name is specified, this method blocks while resolving - * the associated a numeric ID. - * - * ```js - * import process from 'node:process'; - * - * if (process.getegid && process.setegid) { - * console.log(`Current gid: ${process.getegid()}`); - * try { - * process.setegid(501); - * console.log(`New gid: ${process.getegid()}`); - * } catch (err) { - * console.log(`Failed to set gid: ${err}`); - * } - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * This feature is not available in `Worker` threads. - * @since v2.0.0 - * @param id A group name or ID - */ - setegid?: (id: number | string) => void; - /** - * The `process.getgroups()` method returns an array with the supplementary group - * IDs. POSIX leaves it unspecified if the effective group ID is included but - * Node.js ensures it always is. - * - * ```js - * import process from 'node:process'; - * - * if (process.getgroups) { - * console.log(process.getgroups()); // [ 16, 21, 297 ] - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * @since v0.9.4 - */ - getgroups?: () => number[]; - /** - * The `process.setgroups()` method sets the supplementary group IDs for the - * Node.js process. This is a privileged operation that requires the Node.js - * process to have `root` or the `CAP_SETGID` capability. - * - * The `groups` array can contain numeric group IDs, group names, or both. - * - * ```js - * import process from 'node:process'; - * - * if (process.getgroups && process.setgroups) { - * try { - * process.setgroups([501]); - * console.log(process.getgroups()); // new groups - * } catch (err) { - * console.log(`Failed to set groups: ${err}`); - * } - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * This feature is not available in `Worker` threads. - * @since v0.9.4 - */ - setgroups?: (groups: ReadonlyArray) => void; - /** - * The `process.setUncaughtExceptionCaptureCallback()` function sets a function - * that will be invoked when an uncaught exception occurs, which will receive the - * exception value itself as its first argument. - * - * If such a function is set, the `'uncaughtException'` event will - * not be emitted. If `--abort-on-uncaught-exception` was passed from the - * command line or set through `v8.setFlagsFromString()`, the process will - * not abort. Actions configured to take place on exceptions such as report - * generations will be affected too - * - * To unset the capture function, `process.setUncaughtExceptionCaptureCallback(null)` may be used. Calling this - * method with a non-`null` argument while another capture function is set will - * throw an error. - * - * Using this function is mutually exclusive with using the deprecated `domain` built-in module. - * @since v9.3.0 - */ - setUncaughtExceptionCaptureCallback(cb: ((err: Error) => void) | null): void; - /** - * Indicates whether a callback has been set using {@link setUncaughtExceptionCaptureCallback}. - * @since v9.3.0 - */ - hasUncaughtExceptionCaptureCallback(): boolean; - /** - * The `process.sourceMapsEnabled` property returns whether the [Source Map v3](https://sourcemaps.info/spec.html) support for stack traces is enabled. - * @since v20.7.0 - * @experimental - */ - readonly sourceMapsEnabled: boolean; - /** - * This function enables or disables the [Source Map v3](https://sourcemaps.info/spec.html) support for - * stack traces. - * - * It provides same features as launching Node.js process with commandline options `--enable-source-maps`. - * - * Only source maps in JavaScript files that are loaded after source maps has been - * enabled will be parsed and loaded. - * @since v16.6.0, v14.18.0 - * @experimental - */ - setSourceMapsEnabled(value: boolean): void; - /** - * The `process.version` property contains the Node.js version string. - * - * ```js - * import { version } from 'node:process'; - * - * console.log(`Version: ${version}`); - * // Version: v14.8.0 - * ``` - * - * To get the version string without the prepended _v_, use`process.versions.node`. - * @since v0.1.3 - */ - readonly version: string; - /** - * The `process.versions` property returns an object listing the version strings of - * Node.js and its dependencies. `process.versions.modules` indicates the current - * ABI version, which is increased whenever a C++ API changes. Node.js will refuse - * to load modules that were compiled against a different module ABI version. - * - * ```js - * import { versions } from 'node:process'; - * - * console.log(versions); - * ``` - * - * Will generate an object similar to: - * - * ```console - * { node: '20.2.0', - * acorn: '8.8.2', - * ada: '2.4.0', - * ares: '1.19.0', - * base64: '0.5.0', - * brotli: '1.0.9', - * cjs_module_lexer: '1.2.2', - * cldr: '43.0', - * icu: '73.1', - * llhttp: '8.1.0', - * modules: '115', - * napi: '8', - * nghttp2: '1.52.0', - * nghttp3: '0.7.0', - * ngtcp2: '0.8.1', - * openssl: '3.0.8+quic', - * simdutf: '3.2.9', - * tz: '2023c', - * undici: '5.22.0', - * unicode: '15.0', - * uv: '1.44.2', - * uvwasi: '0.0.16', - * v8: '11.3.244.8-node.9', - * zlib: '1.2.13' } - * ``` - * @since v0.2.0 - */ - readonly versions: ProcessVersions; - /** - * The `process.config` property returns a frozen `Object` containing the - * JavaScript representation of the configure options used to compile the current - * Node.js executable. This is the same as the `config.gypi` file that was produced - * when running the `./configure` script. - * - * An example of the possible output looks like: - * - * ```js - * { - * target_defaults: - * { cflags: [], - * default_configuration: 'Release', - * defines: [], - * include_dirs: [], - * libraries: [] }, - * variables: - * { - * host_arch: 'x64', - * napi_build_version: 5, - * node_install_npm: 'true', - * node_prefix: '', - * node_shared_cares: 'false', - * node_shared_http_parser: 'false', - * node_shared_libuv: 'false', - * node_shared_zlib: 'false', - * node_use_openssl: 'true', - * node_shared_openssl: 'false', - * strict_aliasing: 'true', - * target_arch: 'x64', - * v8_use_snapshot: 1 - * } - * } - * ``` - * @since v0.7.7 - */ - readonly config: ProcessConfig; - /** - * The `process.kill()` method sends the `signal` to the process identified by`pid`. - * - * Signal names are strings such as `'SIGINT'` or `'SIGHUP'`. See `Signal Events` and [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) for more information. - * - * This method will throw an error if the target `pid` does not exist. As a special - * case, a signal of `0` can be used to test for the existence of a process. - * Windows platforms will throw an error if the `pid` is used to kill a process - * group. - * - * Even though the name of this function is `process.kill()`, it is really just a - * signal sender, like the `kill` system call. The signal sent may do something - * other than kill the target process. - * - * ```js - * import process, { kill } from 'node:process'; - * - * process.on('SIGHUP', () => { - * console.log('Got SIGHUP signal.'); - * }); - * - * setTimeout(() => { - * console.log('Exiting.'); - * process.exit(0); - * }, 100); - * - * kill(process.pid, 'SIGHUP'); - * ``` - * - * When `SIGUSR1` is received by a Node.js process, Node.js will start the - * debugger. See `Signal Events`. - * @since v0.0.6 - * @param pid A process ID - * @param [signal='SIGTERM'] The signal to send, either as a string or number. - */ - kill(pid: number, signal?: string | number): true; - /** - * Loads the environment configuration from a `.env` file into `process.env`. If - * the file is not found, error will be thrown. - * - * To load a specific .env file by specifying its path, use the following code: - * - * ```js - * import { loadEnvFile } from 'node:process'; - * - * loadEnvFile('./development.env') - * ``` - * @since v20.12.0 - * @param path The path to the .env file - */ - loadEnvFile(path?: PathLike): void; - /** - * The `process.pid` property returns the PID of the process. - * - * ```js - * import { pid } from 'node:process'; - * - * console.log(`This process is pid ${pid}`); - * ``` - * @since v0.1.15 - */ - readonly pid: number; - /** - * The `process.ppid` property returns the PID of the parent of the - * current process. - * - * ```js - * import { ppid } from 'node:process'; - * - * console.log(`The parent process is pid ${ppid}`); - * ``` - * @since v9.2.0, v8.10.0, v6.13.0 - */ - readonly ppid: number; - /** - * The `process.threadCpuUsage()` method returns the user and system CPU time usage of - * the current worker thread, in an object with properties `user` and `system`, whose - * values are microsecond values (millionth of a second). - * - * The result of a previous call to `process.threadCpuUsage()` can be passed as the - * argument to the function, to get a diff reading. - * @since v23.9.0 - * @param previousValue A previous return value from calling - * `process.threadCpuUsage()` - */ - threadCpuUsage(previousValue?: CpuUsage): CpuUsage; - /** - * The `process.title` property returns the current process title (i.e. returns - * the current value of `ps`). Assigning a new value to `process.title` modifies - * the current value of `ps`. - * - * When a new value is assigned, different platforms will impose different maximum - * length restrictions on the title. Usually such restrictions are quite limited. - * For instance, on Linux and macOS, `process.title` is limited to the size of the - * binary name plus the length of the command-line arguments because setting the `process.title` overwrites the `argv` memory of the process. Node.js v0.8 - * allowed for longer process title strings by also overwriting the `environ` memory but that was potentially insecure and confusing in some (rather obscure) - * cases. - * - * Assigning a value to `process.title` might not result in an accurate label - * within process manager applications such as macOS Activity Monitor or Windows - * Services Manager. - * @since v0.1.104 - */ - title: string; - /** - * The operating system CPU architecture for which the Node.js binary was compiled. - * Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`, - * `'mipsel'`, `'ppc64'`, `'riscv64'`, `'s390x'`, and `'x64'`. - * - * ```js - * import { arch } from 'node:process'; - * - * console.log(`This processor architecture is ${arch}`); - * ``` - * @since v0.5.0 - */ - readonly arch: Architecture; - /** - * The `process.platform` property returns a string identifying the operating - * system platform for which the Node.js binary was compiled. - * - * Currently possible values are: - * - * * `'aix'` - * * `'darwin'` - * * `'freebsd'` - * * `'linux'` - * * `'openbsd'` - * * `'sunos'` - * * `'win32'` - * - * ```js - * import { platform } from 'node:process'; - * - * console.log(`This platform is ${platform}`); - * ``` - * - * The value `'android'` may also be returned if the Node.js is built on the - * Android operating system. However, Android support in Node.js [is experimental](https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os). - * @since v0.1.16 - */ - readonly platform: Platform; - /** - * The `process.mainModule` property provides an alternative way of retrieving `require.main`. The difference is that if the main module changes at - * runtime, `require.main` may still refer to the original main module in - * modules that were required before the change occurred. Generally, it's - * safe to assume that the two refer to the same module. - * - * As with `require.main`, `process.mainModule` will be `undefined` if there - * is no entry script. - * @since v0.1.17 - * @deprecated Since v14.0.0 - Use `main` instead. - */ - mainModule?: Module; - memoryUsage: MemoryUsageFn; - /** - * Gets the amount of memory available to the process (in bytes) based on - * limits imposed by the OS. If there is no such constraint, or the constraint - * is unknown, `0` is returned. - * - * See [`uv_get_constrained_memory`](https://docs.libuv.org/en/v1.x/misc.html#c.uv_get_constrained_memory) for more - * information. - * @since v19.6.0, v18.15.0 - */ - constrainedMemory(): number; - /** - * Gets the amount of free memory that is still available to the process (in bytes). - * See [`uv_get_available_memory`](https://nodejs.org/docs/latest-v24.x/api/process.html#processavailablememory) for more information. - * @since v20.13.0 - */ - availableMemory(): number; - /** - * The `process.cpuUsage()` method returns the user and system CPU time usage of - * the current process, in an object with properties `user` and `system`, whose - * values are microsecond values (millionth of a second). These values measure time - * spent in user and system code respectively, and may end up being greater than - * actual elapsed time if multiple CPU cores are performing work for this process. - * - * The result of a previous call to `process.cpuUsage()` can be passed as the - * argument to the function, to get a diff reading. - * - * ```js - * import { cpuUsage } from 'node:process'; - * - * const startUsage = cpuUsage(); - * // { user: 38579, system: 6986 } - * - * // spin the CPU for 500 milliseconds - * const now = Date.now(); - * while (Date.now() - now < 500); - * - * console.log(cpuUsage(startUsage)); - * // { user: 514883, system: 11226 } - * ``` - * @since v6.1.0 - * @param previousValue A previous return value from calling `process.cpuUsage()` - */ - cpuUsage(previousValue?: CpuUsage): CpuUsage; - /** - * `process.nextTick()` adds `callback` to the "next tick queue". This queue is - * fully drained after the current operation on the JavaScript stack runs to - * completion and before the event loop is allowed to continue. It's possible to - * create an infinite loop if one were to recursively call `process.nextTick()`. - * See the [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#process-nexttick) guide for more background. - * - * ```js - * import { nextTick } from 'node:process'; - * - * console.log('start'); - * nextTick(() => { - * console.log('nextTick callback'); - * }); - * console.log('scheduled'); - * // Output: - * // start - * // scheduled - * // nextTick callback - * ``` - * - * This is important when developing APIs in order to give users the opportunity - * to assign event handlers _after_ an object has been constructed but before any - * I/O has occurred: - * - * ```js - * import { nextTick } from 'node:process'; - * - * function MyThing(options) { - * this.setupOptions(options); - * - * nextTick(() => { - * this.startDoingStuff(); - * }); - * } - * - * const thing = new MyThing(); - * thing.getReadyForStuff(); - * - * // thing.startDoingStuff() gets called now, not before. - * ``` - * - * It is very important for APIs to be either 100% synchronous or 100% - * asynchronous. Consider this example: - * - * ```js - * // WARNING! DO NOT USE! BAD UNSAFE HAZARD! - * function maybeSync(arg, cb) { - * if (arg) { - * cb(); - * return; - * } - * - * fs.stat('file', cb); - * } - * ``` - * - * This API is hazardous because in the following case: - * - * ```js - * const maybeTrue = Math.random() > 0.5; - * - * maybeSync(maybeTrue, () => { - * foo(); - * }); - * - * bar(); - * ``` - * - * It is not clear whether `foo()` or `bar()` will be called first. - * - * The following approach is much better: - * - * ```js - * import { nextTick } from 'node:process'; - * - * function definitelyAsync(arg, cb) { - * if (arg) { - * nextTick(cb); - * return; - * } - * - * fs.stat('file', cb); - * } - * ``` - * @since v0.1.26 - * @param args Additional arguments to pass when invoking the `callback` - */ - nextTick(callback: Function, ...args: any[]): void; - /** - * This API is available through the [--permission](https://nodejs.org/api/cli.html#--permission) flag. - * - * `process.permission` is an object whose methods are used to manage permissions for the current process. - * Additional documentation is available in the [Permission Model](https://nodejs.org/api/permissions.html#permission-model). - * @since v20.0.0 - */ - permission: ProcessPermission; - /** - * The `process.release` property returns an `Object` containing metadata related - * to the current release, including URLs for the source tarball and headers-only - * tarball. - * - * `process.release` contains the following properties: - * - * ```js - * { - * name: 'node', - * lts: 'Hydrogen', - * sourceUrl: 'https://nodejs.org/download/release/v18.12.0/node-v18.12.0.tar.gz', - * headersUrl: 'https://nodejs.org/download/release/v18.12.0/node-v18.12.0-headers.tar.gz', - * libUrl: 'https://nodejs.org/download/release/v18.12.0/win-x64/node.lib' - * } - * ``` - * - * In custom builds from non-release versions of the source tree, only the `name` property may be present. The additional properties should not be - * relied upon to exist. - * @since v3.0.0 - */ - readonly release: ProcessRelease; - readonly features: ProcessFeatures; - /** - * `process.umask()` returns the Node.js process's file mode creation mask. Child - * processes inherit the mask from the parent process. - * @since v0.1.19 - * @deprecated Calling `process.umask()` with no argument causes the process-wide umask to be written twice. This introduces a race condition between threads, and is a potential - * security vulnerability. There is no safe, cross-platform alternative API. - */ - umask(): number; - /** - * Can only be set if not in worker thread. - */ - umask(mask: string | number): number; - /** - * The `process.uptime()` method returns the number of seconds the current Node.js - * process has been running. - * - * The return value includes fractions of a second. Use `Math.floor()` to get whole - * seconds. - * @since v0.5.0 - */ - uptime(): number; - hrtime: HRTime; - /** - * If the Node.js process was spawned with an IPC channel, the process.channel property is a reference to the IPC channel. - * If no IPC channel exists, this property is undefined. - * @since v7.1.0 - */ - channel?: Control; - /** - * If Node.js is spawned with an IPC channel, the `process.send()` method can be - * used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object. - * - * If Node.js was not spawned with an IPC channel, `process.send` will be `undefined`. - * - * The message goes through serialization and parsing. The resulting message might - * not be the same as what is originally sent. - * @since v0.5.9 - * @param options used to parameterize the sending of certain types of handles. `options` supports the following properties: - */ - send?( - message: any, - sendHandle?: SendHandle, - options?: MessageOptions, - callback?: (error: Error | null) => void, - ): boolean; - /** - * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.disconnect()` method will close the - * IPC channel to the parent process, allowing the child process to exit gracefully - * once there are no other connections keeping it alive. - * - * The effect of calling `process.disconnect()` is the same as calling `ChildProcess.disconnect()` from the parent process. - * - * If the Node.js process was not spawned with an IPC channel, `process.disconnect()` will be `undefined`. - * @since v0.7.2 - */ - disconnect(): void; - /** - * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.connected` property will return `true` so long as the IPC - * channel is connected and will return `false` after `process.disconnect()` is called. - * - * Once `process.connected` is `false`, it is no longer possible to send messages - * over the IPC channel using `process.send()`. - * @since v0.7.2 - */ - connected: boolean; - /** - * The `process.allowedNodeEnvironmentFlags` property is a special, - * read-only `Set` of flags allowable within the `NODE_OPTIONS` environment variable. - * - * `process.allowedNodeEnvironmentFlags` extends `Set`, but overrides `Set.prototype.has` to recognize several different possible flag - * representations. `process.allowedNodeEnvironmentFlags.has()` will - * return `true` in the following cases: - * - * * Flags may omit leading single (`-`) or double (`--`) dashes; e.g., `inspect-brk` for `--inspect-brk`, or `r` for `-r`. - * * Flags passed through to V8 (as listed in `--v8-options`) may replace - * one or more _non-leading_ dashes for an underscore, or vice-versa; - * e.g., `--perf_basic_prof`, `--perf-basic-prof`, `--perf_basic-prof`, - * etc. - * * Flags may contain one or more equals (`=`) characters; all - * characters after and including the first equals will be ignored; - * e.g., `--stack-trace-limit=100`. - * * Flags _must_ be allowable within `NODE_OPTIONS`. - * - * When iterating over `process.allowedNodeEnvironmentFlags`, flags will - * appear only _once_; each will begin with one or more dashes. Flags - * passed through to V8 will contain underscores instead of non-leading - * dashes: - * - * ```js - * import { allowedNodeEnvironmentFlags } from 'node:process'; - * - * allowedNodeEnvironmentFlags.forEach((flag) => { - * // -r - * // --inspect-brk - * // --abort_on_uncaught_exception - * // ... - * }); - * ``` - * - * The methods `add()`, `clear()`, and `delete()` of`process.allowedNodeEnvironmentFlags` do nothing, and will fail - * silently. - * - * If Node.js was compiled _without_ `NODE_OPTIONS` support (shown in {@link config}), `process.allowedNodeEnvironmentFlags` will - * contain what _would have_ been allowable. - * @since v10.10.0 - */ - allowedNodeEnvironmentFlags: ReadonlySet; - /** - * `process.report` is an object whose methods are used to generate diagnostic reports for the current process. - * Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-v24.x/api/report.html). - * @since v11.8.0 - */ - report: ProcessReport; - /** - * ```js - * import { resourceUsage } from 'node:process'; - * - * console.log(resourceUsage()); - * /* - * Will output: - * { - * userCPUTime: 82872, - * systemCPUTime: 4143, - * maxRSS: 33164, - * sharedMemorySize: 0, - * unsharedDataSize: 0, - * unsharedStackSize: 0, - * minorPageFault: 2469, - * majorPageFault: 0, - * swappedOut: 0, - * fsRead: 0, - * fsWrite: 8, - * ipcSent: 0, - * ipcReceived: 0, - * signalsCount: 0, - * voluntaryContextSwitches: 79, - * involuntaryContextSwitches: 1 - * } - * - * ``` - * @since v12.6.0 - * @return the resource usage for the current process. All of these values come from the `uv_getrusage` call which returns a [`uv_rusage_t` struct][uv_rusage_t]. - */ - resourceUsage(): ResourceUsage; - /** - * The initial value of `process.throwDeprecation` indicates whether the `--throw-deprecation` flag is set on the current Node.js process. `process.throwDeprecation` - * is mutable, so whether or not deprecation warnings result in errors may be altered at runtime. See the documentation for the 'warning' event and the emitWarning() - * method for more information. - * - * ```bash - * $ node --throw-deprecation -p "process.throwDeprecation" - * true - * $ node -p "process.throwDeprecation" - * undefined - * $ node - * > process.emitWarning('test', 'DeprecationWarning'); - * undefined - * > (node:26598) DeprecationWarning: test - * > process.throwDeprecation = true; - * true - * > process.emitWarning('test', 'DeprecationWarning'); - * Thrown: - * [DeprecationWarning: test] { name: 'DeprecationWarning' } - * ``` - * @since v0.9.12 - */ - throwDeprecation: boolean; - /** - * The `process.traceDeprecation` property indicates whether the `--trace-deprecation` flag is set on the current Node.js process. See the - * documentation for the `'warning' event` and the `emitWarning() method` for more information about this - * flag's behavior. - * @since v0.8.0 - */ - traceDeprecation: boolean; - /** - * An object is "refable" if it implements the Node.js "Refable protocol". - * Specifically, this means that the object implements the `Symbol.for('nodejs.ref')` - * and `Symbol.for('nodejs.unref')` methods. "Ref'd" objects will keep the Node.js - * event loop alive, while "unref'd" objects will not. Historically, this was - * implemented by using `ref()` and `unref()` methods directly on the objects. - * This pattern, however, is being deprecated in favor of the "Refable protocol" - * in order to better support Web Platform API types whose APIs cannot be modified - * to add `ref()` and `unref()` methods but still need to support that behavior. - * @since v22.14.0 - * @experimental - * @param maybeRefable An object that may be "refable". - */ - ref(maybeRefable: any): void; - /** - * An object is "unrefable" if it implements the Node.js "Refable protocol". - * Specifically, this means that the object implements the `Symbol.for('nodejs.ref')` - * and `Symbol.for('nodejs.unref')` methods. "Ref'd" objects will keep the Node.js - * event loop alive, while "unref'd" objects will not. Historically, this was - * implemented by using `ref()` and `unref()` methods directly on the objects. - * This pattern, however, is being deprecated in favor of the "Refable protocol" - * in order to better support Web Platform API types whose APIs cannot be modified - * to add `ref()` and `unref()` methods but still need to support that behavior. - * @since v22.14.0 - * @experimental - * @param maybeRefable An object that may be "unref'd". - */ - unref(maybeRefable: any): void; - /** - * Replaces the current process with a new process. - * - * This is achieved by using the `execve` POSIX function and therefore no memory or other - * resources from the current process are preserved, except for the standard input, - * standard output and standard error file descriptor. - * - * All other resources are discarded by the system when the processes are swapped, without triggering - * any exit or close events and without running any cleanup handler. - * - * This function will never return, unless an error occurred. - * - * This function is not available on Windows or IBM i. - * @since v22.15.0 - * @experimental - * @param file The name or path of the executable file to run. - * @param args List of string arguments. No argument can contain a null-byte (`\u0000`). - * @param env Environment key-value pairs. - * No key or value can contain a null-byte (`\u0000`). - * **Default:** `process.env`. - */ - execve?(file: string, args?: readonly string[], env?: ProcessEnv): never; - /* EventEmitter */ - addListener(event: "beforeExit", listener: BeforeExitListener): this; - addListener(event: "disconnect", listener: DisconnectListener): this; - addListener(event: "exit", listener: ExitListener): this; - addListener(event: "rejectionHandled", listener: RejectionHandledListener): this; - addListener(event: "uncaughtException", listener: UncaughtExceptionListener): this; - addListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this; - addListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this; - addListener(event: "warning", listener: WarningListener): this; - addListener(event: "message", listener: MessageListener): this; - addListener(event: "workerMessage", listener: (value: any, source: number) => void): this; - addListener(event: Signals, listener: SignalsListener): this; - addListener(event: "multipleResolves", listener: MultipleResolveListener): this; - addListener(event: "worker", listener: WorkerListener): this; - emit(event: "beforeExit", code: number): boolean; - emit(event: "disconnect"): boolean; - emit(event: "exit", code: number): boolean; - emit(event: "rejectionHandled", promise: Promise): boolean; - emit(event: "uncaughtException", error: Error): boolean; - emit(event: "uncaughtExceptionMonitor", error: Error): boolean; - emit(event: "unhandledRejection", reason: unknown, promise: Promise): boolean; - emit(event: "warning", warning: Error): boolean; - emit(event: "message", message: unknown, sendHandle: SendHandle): this; - emit(event: "workerMessage", value: any, source: number): this; - emit(event: Signals, signal?: Signals): boolean; - emit( - event: "multipleResolves", - type: MultipleResolveType, - promise: Promise, - value: unknown, - ): this; - emit(event: "worker", listener: WorkerListener): this; - on(event: "beforeExit", listener: BeforeExitListener): this; - on(event: "disconnect", listener: DisconnectListener): this; - on(event: "exit", listener: ExitListener): this; - on(event: "rejectionHandled", listener: RejectionHandledListener): this; - on(event: "uncaughtException", listener: UncaughtExceptionListener): this; - on(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this; - on(event: "unhandledRejection", listener: UnhandledRejectionListener): this; - on(event: "warning", listener: WarningListener): this; - on(event: "message", listener: MessageListener): this; - on(event: "workerMessage", listener: (value: any, source: number) => void): this; - on(event: Signals, listener: SignalsListener): this; - on(event: "multipleResolves", listener: MultipleResolveListener): this; - on(event: "worker", listener: WorkerListener): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "beforeExit", listener: BeforeExitListener): this; - once(event: "disconnect", listener: DisconnectListener): this; - once(event: "exit", listener: ExitListener): this; - once(event: "rejectionHandled", listener: RejectionHandledListener): this; - once(event: "uncaughtException", listener: UncaughtExceptionListener): this; - once(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this; - once(event: "unhandledRejection", listener: UnhandledRejectionListener): this; - once(event: "warning", listener: WarningListener): this; - once(event: "message", listener: MessageListener): this; - once(event: "workerMessage", listener: (value: any, source: number) => void): this; - once(event: Signals, listener: SignalsListener): this; - once(event: "multipleResolves", listener: MultipleResolveListener): this; - once(event: "worker", listener: WorkerListener): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "beforeExit", listener: BeforeExitListener): this; - prependListener(event: "disconnect", listener: DisconnectListener): this; - prependListener(event: "exit", listener: ExitListener): this; - prependListener(event: "rejectionHandled", listener: RejectionHandledListener): this; - prependListener(event: "uncaughtException", listener: UncaughtExceptionListener): this; - prependListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this; - prependListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this; - prependListener(event: "warning", listener: WarningListener): this; - prependListener(event: "message", listener: MessageListener): this; - prependListener(event: "workerMessage", listener: (value: any, source: number) => void): this; - prependListener(event: Signals, listener: SignalsListener): this; - prependListener(event: "multipleResolves", listener: MultipleResolveListener): this; - prependListener(event: "worker", listener: WorkerListener): this; - prependOnceListener(event: "beforeExit", listener: BeforeExitListener): this; - prependOnceListener(event: "disconnect", listener: DisconnectListener): this; - prependOnceListener(event: "exit", listener: ExitListener): this; - prependOnceListener(event: "rejectionHandled", listener: RejectionHandledListener): this; - prependOnceListener(event: "uncaughtException", listener: UncaughtExceptionListener): this; - prependOnceListener(event: "uncaughtExceptionMonitor", listener: UncaughtExceptionListener): this; - prependOnceListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this; - prependOnceListener(event: "warning", listener: WarningListener): this; - prependOnceListener(event: "message", listener: MessageListener): this; - prependOnceListener(event: "workerMessage", listener: (value: any, source: number) => void): this; - prependOnceListener(event: Signals, listener: SignalsListener): this; - prependOnceListener(event: "multipleResolves", listener: MultipleResolveListener): this; - prependOnceListener(event: "worker", listener: WorkerListener): this; - listeners(event: "beforeExit"): BeforeExitListener[]; - listeners(event: "disconnect"): DisconnectListener[]; - listeners(event: "exit"): ExitListener[]; - listeners(event: "rejectionHandled"): RejectionHandledListener[]; - listeners(event: "uncaughtException"): UncaughtExceptionListener[]; - listeners(event: "uncaughtExceptionMonitor"): UncaughtExceptionListener[]; - listeners(event: "unhandledRejection"): UnhandledRejectionListener[]; - listeners(event: "warning"): WarningListener[]; - listeners(event: "message"): MessageListener[]; - listeners(event: "workerMessage"): ((value: any, source: number) => void)[]; - listeners(event: Signals): SignalsListener[]; - listeners(event: "multipleResolves"): MultipleResolveListener[]; - listeners(event: "worker"): WorkerListener[]; - } - } - } - export = process; -} -declare module "node:process" { - import process = require("process"); - export = process; -} diff --git a/build_vtk_bundle/node_modules/@types/node/punycode.d.ts b/build_vtk_bundle/node_modules/@types/node/punycode.d.ts deleted file mode 100644 index 7ac26c82..00000000 --- a/build_vtk_bundle/node_modules/@types/node/punycode.d.ts +++ /dev/null @@ -1,117 +0,0 @@ -/** - * **The version of the punycode module bundled in Node.js is being deprecated. **In a future major version of Node.js this module will be removed. Users - * currently depending on the `punycode` module should switch to using the - * userland-provided [Punycode.js](https://github.com/bestiejs/punycode.js) module instead. For punycode-based URL - * encoding, see `url.domainToASCII` or, more generally, the `WHATWG URL API`. - * - * The `punycode` module is a bundled version of the [Punycode.js](https://github.com/bestiejs/punycode.js) module. It - * can be accessed using: - * - * ```js - * import punycode from 'node:punycode'; - * ``` - * - * [Punycode](https://tools.ietf.org/html/rfc3492) is a character encoding scheme defined by RFC 3492 that is - * primarily intended for use in Internationalized Domain Names. Because host - * names in URLs are limited to ASCII characters only, Domain Names that contain - * non-ASCII characters must be converted into ASCII using the Punycode scheme. - * For instance, the Japanese character that translates into the English word, `'example'` is `'例'`. The Internationalized Domain Name, `'例.com'` (equivalent - * to `'example.com'`) is represented by Punycode as the ASCII string `'xn--fsq.com'`. - * - * The `punycode` module provides a simple implementation of the Punycode standard. - * - * The `punycode` module is a third-party dependency used by Node.js and - * made available to developers as a convenience. Fixes or other modifications to - * the module must be directed to the [Punycode.js](https://github.com/bestiejs/punycode.js) project. - * @deprecated Since v7.0.0 - Deprecated - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/punycode.js) - */ -declare module "punycode" { - /** - * The `punycode.decode()` method converts a [Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only - * characters to the equivalent string of Unicode codepoints. - * - * ```js - * punycode.decode('maana-pta'); // 'mañana' - * punycode.decode('--dqo34k'); // '☃-⌘' - * ``` - * @since v0.5.1 - */ - function decode(string: string): string; - /** - * The `punycode.encode()` method converts a string of Unicode codepoints to a [Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only characters. - * - * ```js - * punycode.encode('mañana'); // 'maana-pta' - * punycode.encode('☃-⌘'); // '--dqo34k' - * ``` - * @since v0.5.1 - */ - function encode(string: string): string; - /** - * The `punycode.toUnicode()` method converts a string representing a domain name - * containing [Punycode](https://tools.ietf.org/html/rfc3492) encoded characters into Unicode. Only the [Punycode](https://tools.ietf.org/html/rfc3492) encoded parts of the domain name are be - * converted. - * - * ```js - * // decode domain names - * punycode.toUnicode('xn--maana-pta.com'); // 'mañana.com' - * punycode.toUnicode('xn----dqo34k.com'); // '☃-⌘.com' - * punycode.toUnicode('example.com'); // 'example.com' - * ``` - * @since v0.6.1 - */ - function toUnicode(domain: string): string; - /** - * The `punycode.toASCII()` method converts a Unicode string representing an - * Internationalized Domain Name to [Punycode](https://tools.ietf.org/html/rfc3492). Only the non-ASCII parts of the - * domain name will be converted. Calling `punycode.toASCII()` on a string that - * already only contains ASCII characters will have no effect. - * - * ```js - * // encode domain names - * punycode.toASCII('mañana.com'); // 'xn--maana-pta.com' - * punycode.toASCII('☃-⌘.com'); // 'xn----dqo34k.com' - * punycode.toASCII('example.com'); // 'example.com' - * ``` - * @since v0.6.1 - */ - function toASCII(domain: string): string; - /** - * @deprecated since v7.0.0 - * The version of the punycode module bundled in Node.js is being deprecated. - * In a future major version of Node.js this module will be removed. - * Users currently depending on the punycode module should switch to using - * the userland-provided Punycode.js module instead. - */ - const ucs2: ucs2; - interface ucs2 { - /** - * @deprecated since v7.0.0 - * The version of the punycode module bundled in Node.js is being deprecated. - * In a future major version of Node.js this module will be removed. - * Users currently depending on the punycode module should switch to using - * the userland-provided Punycode.js module instead. - */ - decode(string: string): number[]; - /** - * @deprecated since v7.0.0 - * The version of the punycode module bundled in Node.js is being deprecated. - * In a future major version of Node.js this module will be removed. - * Users currently depending on the punycode module should switch to using - * the userland-provided Punycode.js module instead. - */ - encode(codePoints: readonly number[]): string; - } - /** - * @deprecated since v7.0.0 - * The version of the punycode module bundled in Node.js is being deprecated. - * In a future major version of Node.js this module will be removed. - * Users currently depending on the punycode module should switch to using - * the userland-provided Punycode.js module instead. - */ - const version: string; -} -declare module "node:punycode" { - export * from "punycode"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/querystring.d.ts b/build_vtk_bundle/node_modules/@types/node/querystring.d.ts deleted file mode 100644 index aaeefe8d..00000000 --- a/build_vtk_bundle/node_modules/@types/node/querystring.d.ts +++ /dev/null @@ -1,152 +0,0 @@ -/** - * The `node:querystring` module provides utilities for parsing and formatting URL - * query strings. It can be accessed using: - * - * ```js - * import querystring from 'node:querystring'; - * ``` - * - * `querystring` is more performant than `URLSearchParams` but is not a - * standardized API. Use `URLSearchParams` when performance is not critical or - * when compatibility with browser code is desirable. - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/querystring.js) - */ -declare module "querystring" { - interface StringifyOptions { - /** - * The function to use when converting URL-unsafe characters to percent-encoding in the query string. - * @default `querystring.escape()` - */ - encodeURIComponent?: ((str: string) => string) | undefined; - } - interface ParseOptions { - /** - * Specifies the maximum number of keys to parse. Specify `0` to remove key counting limitations. - * @default 1000 - */ - maxKeys?: number | undefined; - /** - * The function to use when decoding percent-encoded characters in the query string. - * @default `querystring.unescape()` - */ - decodeURIComponent?: ((str: string) => string) | undefined; - } - interface ParsedUrlQuery extends NodeJS.Dict {} - interface ParsedUrlQueryInput extends - NodeJS.Dict< - | string - | number - | boolean - | bigint - | ReadonlyArray - | null - > - {} - /** - * The `querystring.stringify()` method produces a URL query string from a - * given `obj` by iterating through the object's "own properties". - * - * It serializes the following types of values passed in `obj`: [string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) | - * [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type) | - * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) | - * [boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type) | - * [string\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) | - * [number\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type) | - * [bigint\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) | - * [boolean\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type) The numeric values must be finite. Any other input values will be coerced to - * empty strings. - * - * ```js - * querystring.stringify({ foo: 'bar', baz: ['qux', 'quux'], corge: '' }); - * // Returns 'foo=bar&baz=qux&baz=quux&corge=' - * - * querystring.stringify({ foo: 'bar', baz: 'qux' }, ';', ':'); - * // Returns 'foo:bar;baz:qux' - * ``` - * - * By default, characters requiring percent-encoding within the query string will - * be encoded as UTF-8\. If an alternative encoding is required, then an alternative `encodeURIComponent` option will need to be specified: - * - * ```js - * // Assuming gbkEncodeURIComponent function already exists, - * - * querystring.stringify({ w: '中文', foo: 'bar' }, null, null, - * { encodeURIComponent: gbkEncodeURIComponent }); - * ``` - * @since v0.1.25 - * @param obj The object to serialize into a URL query string - * @param [sep='&'] The substring used to delimit key and value pairs in the query string. - * @param [eq='='] . The substring used to delimit keys and values in the query string. - */ - function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string; - /** - * The `querystring.parse()` method parses a URL query string (`str`) into a - * collection of key and value pairs. - * - * For example, the query string `'foo=bar&abc=xyz&abc=123'` is parsed into: - * - * ```json - * { - * "foo": "bar", - * "abc": ["xyz", "123"] - * } - * ``` - * - * The object returned by the `querystring.parse()` method _does not_ prototypically inherit from the JavaScript `Object`. This means that typical `Object` methods such as `obj.toString()`, - * `obj.hasOwnProperty()`, and others - * are not defined and _will not work_. - * - * By default, percent-encoded characters within the query string will be assumed - * to use UTF-8 encoding. If an alternative character encoding is used, then an - * alternative `decodeURIComponent` option will need to be specified: - * - * ```js - * // Assuming gbkDecodeURIComponent function already exists... - * - * querystring.parse('w=%D6%D0%CE%C4&foo=bar', null, null, - * { decodeURIComponent: gbkDecodeURIComponent }); - * ``` - * @since v0.1.25 - * @param str The URL query string to parse - * @param [sep='&'] The substring used to delimit key and value pairs in the query string. - * @param [eq='='] The substring used to delimit keys and values in the query string. - */ - function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery; - /** - * The querystring.encode() function is an alias for querystring.stringify(). - */ - const encode: typeof stringify; - /** - * The querystring.decode() function is an alias for querystring.parse(). - */ - const decode: typeof parse; - /** - * The `querystring.escape()` method performs URL percent-encoding on the given `str` in a manner that is optimized for the specific requirements of URL - * query strings. - * - * The `querystring.escape()` method is used by `querystring.stringify()` and is - * generally not expected to be used directly. It is exported primarily to allow - * application code to provide a replacement percent-encoding implementation if - * necessary by assigning `querystring.escape` to an alternative function. - * @since v0.1.25 - */ - function escape(str: string): string; - /** - * The `querystring.unescape()` method performs decoding of URL percent-encoded - * characters on the given `str`. - * - * The `querystring.unescape()` method is used by `querystring.parse()` and is - * generally not expected to be used directly. It is exported primarily to allow - * application code to provide a replacement decoding implementation if - * necessary by assigning `querystring.unescape` to an alternative function. - * - * By default, the `querystring.unescape()` method will attempt to use the - * JavaScript built-in `decodeURIComponent()` method to decode. If that fails, - * a safer equivalent that does not throw on malformed URLs will be used. - * @since v0.1.25 - */ - function unescape(str: string): string; -} -declare module "node:querystring" { - export * from "querystring"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/readline.d.ts b/build_vtk_bundle/node_modules/@types/node/readline.d.ts deleted file mode 100644 index 519b4a46..00000000 --- a/build_vtk_bundle/node_modules/@types/node/readline.d.ts +++ /dev/null @@ -1,594 +0,0 @@ -/** - * The `node:readline` module provides an interface for reading data from a [Readable](https://nodejs.org/docs/latest-v24.x/api/stream.html#readable-streams) stream - * (such as [`process.stdin`](https://nodejs.org/docs/latest-v24.x/api/process.html#processstdin)) one line at a time. - * - * To use the promise-based APIs: - * - * ```js - * import * as readline from 'node:readline/promises'; - * ``` - * - * To use the callback and sync APIs: - * - * ```js - * import * as readline from 'node:readline'; - * ``` - * - * The following simple example illustrates the basic use of the `node:readline` module. - * - * ```js - * import * as readline from 'node:readline/promises'; - * import { stdin as input, stdout as output } from 'node:process'; - * - * const rl = readline.createInterface({ input, output }); - * - * const answer = await rl.question('What do you think of Node.js? '); - * - * console.log(`Thank you for your valuable feedback: ${answer}`); - * - * rl.close(); - * ``` - * - * Once this code is invoked, the Node.js application will not terminate until the `readline.Interface` is closed because the interface waits for data to be - * received on the `input` stream. - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/readline.js) - */ -declare module "readline" { - import { Abortable, EventEmitter } from "node:events"; - import * as promises from "node:readline/promises"; - export { promises }; - export interface Key { - sequence?: string | undefined; - name?: string | undefined; - ctrl?: boolean | undefined; - meta?: boolean | undefined; - shift?: boolean | undefined; - } - /** - * Instances of the `readline.Interface` class are constructed using the `readline.createInterface()` method. Every instance is associated with a - * single `input` [Readable](https://nodejs.org/docs/latest-v24.x/api/stream.html#readable-streams) stream and a single `output` [Writable](https://nodejs.org/docs/latest-v24.x/api/stream.html#writable-streams) stream. - * The `output` stream is used to print prompts for user input that arrives on, - * and is read from, the `input` stream. - * @since v0.1.104 - */ - export class Interface extends EventEmitter implements Disposable { - readonly terminal: boolean; - /** - * The current input data being processed by node. - * - * This can be used when collecting input from a TTY stream to retrieve the - * current value that has been processed thus far, prior to the `line` event - * being emitted. Once the `line` event has been emitted, this property will - * be an empty string. - * - * Be aware that modifying the value during the instance runtime may have - * unintended consequences if `rl.cursor` is not also controlled. - * - * **If not using a TTY stream for input, use the `'line'` event.** - * - * One possible use case would be as follows: - * - * ```js - * const values = ['lorem ipsum', 'dolor sit amet']; - * const rl = readline.createInterface(process.stdin); - * const showResults = debounce(() => { - * console.log( - * '\n', - * values.filter((val) => val.startsWith(rl.line)).join(' '), - * ); - * }, 300); - * process.stdin.on('keypress', (c, k) => { - * showResults(); - * }); - * ``` - * @since v0.1.98 - */ - readonly line: string; - /** - * The cursor position relative to `rl.line`. - * - * This will track where the current cursor lands in the input string, when - * reading input from a TTY stream. The position of cursor determines the - * portion of the input string that will be modified as input is processed, - * as well as the column where the terminal caret will be rendered. - * @since v0.1.98 - */ - readonly cursor: number; - /** - * NOTE: According to the documentation: - * - * > Instances of the `readline.Interface` class are constructed using the - * > `readline.createInterface()` method. - * - * @see https://nodejs.org/dist/latest-v24.x/docs/api/readline.html#class-interfaceconstructor - */ - protected constructor( - input: NodeJS.ReadableStream, - output?: NodeJS.WritableStream, - completer?: Completer | AsyncCompleter, - terminal?: boolean, - ); - /** - * NOTE: According to the documentation: - * - * > Instances of the `readline.Interface` class are constructed using the - * > `readline.createInterface()` method. - * - * @see https://nodejs.org/dist/latest-v24.x/docs/api/readline.html#class-interfaceconstructor - */ - protected constructor(options: ReadLineOptions); - /** - * The `rl.getPrompt()` method returns the current prompt used by `rl.prompt()`. - * @since v15.3.0, v14.17.0 - * @return the current prompt string - */ - getPrompt(): string; - /** - * The `rl.setPrompt()` method sets the prompt that will be written to `output` whenever `rl.prompt()` is called. - * @since v0.1.98 - */ - setPrompt(prompt: string): void; - /** - * The `rl.prompt()` method writes the `Interface` instances configured`prompt` to a new line in `output` in order to provide a user with a new - * location at which to provide input. - * - * When called, `rl.prompt()` will resume the `input` stream if it has been - * paused. - * - * If the `Interface` was created with `output` set to `null` or `undefined` the prompt is not written. - * @since v0.1.98 - * @param preserveCursor If `true`, prevents the cursor placement from being reset to `0`. - */ - prompt(preserveCursor?: boolean): void; - /** - * The `rl.question()` method displays the `query` by writing it to the `output`, - * waits for user input to be provided on `input`, then invokes the `callback` function passing the provided input as the first argument. - * - * When called, `rl.question()` will resume the `input` stream if it has been - * paused. - * - * If the `Interface` was created with `output` set to `null` or `undefined` the `query` is not written. - * - * The `callback` function passed to `rl.question()` does not follow the typical - * pattern of accepting an `Error` object or `null` as the first argument. - * The `callback` is called with the provided answer as the only argument. - * - * An error will be thrown if calling `rl.question()` after `rl.close()`. - * - * Example usage: - * - * ```js - * rl.question('What is your favorite food? ', (answer) => { - * console.log(`Oh, so your favorite food is ${answer}`); - * }); - * ``` - * - * Using an `AbortController` to cancel a question. - * - * ```js - * const ac = new AbortController(); - * const signal = ac.signal; - * - * rl.question('What is your favorite food? ', { signal }, (answer) => { - * console.log(`Oh, so your favorite food is ${answer}`); - * }); - * - * signal.addEventListener('abort', () => { - * console.log('The food question timed out'); - * }, { once: true }); - * - * setTimeout(() => ac.abort(), 10000); - * ``` - * @since v0.3.3 - * @param query A statement or query to write to `output`, prepended to the prompt. - * @param callback A callback function that is invoked with the user's input in response to the `query`. - */ - question(query: string, callback: (answer: string) => void): void; - question(query: string, options: Abortable, callback: (answer: string) => void): void; - /** - * The `rl.pause()` method pauses the `input` stream, allowing it to be resumed - * later if necessary. - * - * Calling `rl.pause()` does not immediately pause other events (including `'line'`) from being emitted by the `Interface` instance. - * @since v0.3.4 - */ - pause(): this; - /** - * The `rl.resume()` method resumes the `input` stream if it has been paused. - * @since v0.3.4 - */ - resume(): this; - /** - * The `rl.close()` method closes the `Interface` instance and - * relinquishes control over the `input` and `output` streams. When called, - * the `'close'` event will be emitted. - * - * Calling `rl.close()` does not immediately stop other events (including `'line'`) - * from being emitted by the `Interface` instance. - * @since v0.1.98 - */ - close(): void; - /** - * Alias for `rl.close()`. - * @since v22.15.0 - */ - [Symbol.dispose](): void; - /** - * The `rl.write()` method will write either `data` or a key sequence identified - * by `key` to the `output`. The `key` argument is supported only if `output` is - * a `TTY` text terminal. See `TTY keybindings` for a list of key - * combinations. - * - * If `key` is specified, `data` is ignored. - * - * When called, `rl.write()` will resume the `input` stream if it has been - * paused. - * - * If the `Interface` was created with `output` set to `null` or `undefined` the `data` and `key` are not written. - * - * ```js - * rl.write('Delete this!'); - * // Simulate Ctrl+U to delete the line written previously - * rl.write(null, { ctrl: true, name: 'u' }); - * ``` - * - * The `rl.write()` method will write the data to the `readline` `Interface`'s `input` _as if it were provided by the user_. - * @since v0.1.98 - */ - write(data: string | Buffer, key?: Key): void; - write(data: undefined | null | string | Buffer, key: Key): void; - /** - * Returns the real position of the cursor in relation to the input - * prompt + string. Long input (wrapping) strings, as well as multiple - * line prompts are included in the calculations. - * @since v13.5.0, v12.16.0 - */ - getCursorPos(): CursorPos; - /** - * events.EventEmitter - * 1. close - * 2. line - * 3. pause - * 4. resume - * 5. SIGCONT - * 6. SIGINT - * 7. SIGTSTP - * 8. history - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "line", listener: (input: string) => void): this; - addListener(event: "pause", listener: () => void): this; - addListener(event: "resume", listener: () => void): this; - addListener(event: "SIGCONT", listener: () => void): this; - addListener(event: "SIGINT", listener: () => void): this; - addListener(event: "SIGTSTP", listener: () => void): this; - addListener(event: "history", listener: (history: string[]) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "close"): boolean; - emit(event: "line", input: string): boolean; - emit(event: "pause"): boolean; - emit(event: "resume"): boolean; - emit(event: "SIGCONT"): boolean; - emit(event: "SIGINT"): boolean; - emit(event: "SIGTSTP"): boolean; - emit(event: "history", history: string[]): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: () => void): this; - on(event: "line", listener: (input: string) => void): this; - on(event: "pause", listener: () => void): this; - on(event: "resume", listener: () => void): this; - on(event: "SIGCONT", listener: () => void): this; - on(event: "SIGINT", listener: () => void): this; - on(event: "SIGTSTP", listener: () => void): this; - on(event: "history", listener: (history: string[]) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "line", listener: (input: string) => void): this; - once(event: "pause", listener: () => void): this; - once(event: "resume", listener: () => void): this; - once(event: "SIGCONT", listener: () => void): this; - once(event: "SIGINT", listener: () => void): this; - once(event: "SIGTSTP", listener: () => void): this; - once(event: "history", listener: (history: string[]) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "line", listener: (input: string) => void): this; - prependListener(event: "pause", listener: () => void): this; - prependListener(event: "resume", listener: () => void): this; - prependListener(event: "SIGCONT", listener: () => void): this; - prependListener(event: "SIGINT", listener: () => void): this; - prependListener(event: "SIGTSTP", listener: () => void): this; - prependListener(event: "history", listener: (history: string[]) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "line", listener: (input: string) => void): this; - prependOnceListener(event: "pause", listener: () => void): this; - prependOnceListener(event: "resume", listener: () => void): this; - prependOnceListener(event: "SIGCONT", listener: () => void): this; - prependOnceListener(event: "SIGINT", listener: () => void): this; - prependOnceListener(event: "SIGTSTP", listener: () => void): this; - prependOnceListener(event: "history", listener: (history: string[]) => void): this; - [Symbol.asyncIterator](): NodeJS.AsyncIterator; - } - export type ReadLine = Interface; // type forwarded for backwards compatibility - export type Completer = (line: string) => CompleterResult; - export type AsyncCompleter = ( - line: string, - callback: (err?: null | Error, result?: CompleterResult) => void, - ) => void; - export type CompleterResult = [string[], string]; - export interface ReadLineOptions { - /** - * The [`Readable`](https://nodejs.org/docs/latest-v24.x/api/stream.html#readable-streams) stream to listen to - */ - input: NodeJS.ReadableStream; - /** - * The [`Writable`](https://nodejs.org/docs/latest-v24.x/api/stream.html#writable-streams) stream to write readline data to. - */ - output?: NodeJS.WritableStream | undefined; - /** - * An optional function used for Tab autocompletion. - */ - completer?: Completer | AsyncCompleter | undefined; - /** - * `true` if the `input` and `output` streams should be treated like a TTY, - * and have ANSI/VT100 escape codes written to it. - * Default: checking `isTTY` on the `output` stream upon instantiation. - */ - terminal?: boolean | undefined; - /** - * Initial list of history lines. - * This option makes sense only if `terminal` is set to `true` by the user or by an internal `output` check, - * otherwise the history caching mechanism is not initialized at all. - * @default [] - */ - history?: string[] | undefined; - /** - * Maximum number of history lines retained. - * To disable the history set this value to `0`. - * This option makes sense only if `terminal` is set to `true` by the user or by an internal `output` check, - * otherwise the history caching mechanism is not initialized at all. - * @default 30 - */ - historySize?: number | undefined; - /** - * If `true`, when a new input line added to the history list duplicates an older one, - * this removes the older line from the list. - * @default false - */ - removeHistoryDuplicates?: boolean | undefined; - /** - * The prompt string to use. - * @default "> " - */ - prompt?: string | undefined; - /** - * If the delay between `\r` and `\n` exceeds `crlfDelay` milliseconds, - * both `\r` and `\n` will be treated as separate end-of-line input. - * `crlfDelay` will be coerced to a number no less than `100`. - * It can be set to `Infinity`, in which case - * `\r` followed by `\n` will always be considered a single newline - * (which may be reasonable for [reading files](https://nodejs.org/docs/latest-v24.x/api/readline.html#example-read-file-stream-line-by-line) with `\r\n` line delimiter). - * @default 100 - */ - crlfDelay?: number | undefined; - /** - * The duration `readline` will wait for a character - * (when reading an ambiguous key sequence in milliseconds - * one that can both form a complete key sequence using the input read so far - * and can take additional input to complete a longer key sequence). - * @default 500 - */ - escapeCodeTimeout?: number | undefined; - /** - * The number of spaces a tab is equal to (minimum 1). - * @default 8 - */ - tabSize?: number | undefined; - /** - * Allows closing the interface using an AbortSignal. - * Aborting the signal will internally call `close` on the interface. - */ - signal?: AbortSignal | undefined; - } - /** - * The `readline.createInterface()` method creates a new `readline.Interface` instance. - * - * ```js - * import readline from 'node:readline'; - * const rl = readline.createInterface({ - * input: process.stdin, - * output: process.stdout, - * }); - * ``` - * - * Once the `readline.Interface` instance is created, the most common case is to - * listen for the `'line'` event: - * - * ```js - * rl.on('line', (line) => { - * console.log(`Received: ${line}`); - * }); - * ``` - * - * If `terminal` is `true` for this instance then the `output` stream will get - * the best compatibility if it defines an `output.columns` property and emits - * a `'resize'` event on the `output` if or when the columns ever change - * (`process.stdout` does this automatically when it is a TTY). - * - * When creating a `readline.Interface` using `stdin` as input, the program - * will not terminate until it receives an [EOF character](https://en.wikipedia.org/wiki/End-of-file#EOF_character). To exit without - * waiting for user input, call `process.stdin.unref()`. - * @since v0.1.98 - */ - export function createInterface( - input: NodeJS.ReadableStream, - output?: NodeJS.WritableStream, - completer?: Completer | AsyncCompleter, - terminal?: boolean, - ): Interface; - export function createInterface(options: ReadLineOptions): Interface; - /** - * The `readline.emitKeypressEvents()` method causes the given `Readable` stream to begin emitting `'keypress'` events corresponding to received input. - * - * Optionally, `interface` specifies a `readline.Interface` instance for which - * autocompletion is disabled when copy-pasted input is detected. - * - * If the `stream` is a `TTY`, then it must be in raw mode. - * - * This is automatically called by any readline instance on its `input` if the `input` is a terminal. Closing the `readline` instance does not stop - * the `input` from emitting `'keypress'` events. - * - * ```js - * readline.emitKeypressEvents(process.stdin); - * if (process.stdin.isTTY) - * process.stdin.setRawMode(true); - * ``` - * - * ## Example: Tiny CLI - * - * The following example illustrates the use of `readline.Interface` class to - * implement a small command-line interface: - * - * ```js - * import readline from 'node:readline'; - * const rl = readline.createInterface({ - * input: process.stdin, - * output: process.stdout, - * prompt: 'OHAI> ', - * }); - * - * rl.prompt(); - * - * rl.on('line', (line) => { - * switch (line.trim()) { - * case 'hello': - * console.log('world!'); - * break; - * default: - * console.log(`Say what? I might have heard '${line.trim()}'`); - * break; - * } - * rl.prompt(); - * }).on('close', () => { - * console.log('Have a great day!'); - * process.exit(0); - * }); - * ``` - * - * ## Example: Read file stream line-by-Line - * - * A common use case for `readline` is to consume an input file one line at a - * time. The easiest way to do so is leveraging the `fs.ReadStream` API as - * well as a `for await...of` loop: - * - * ```js - * import fs from 'node:fs'; - * import readline from 'node:readline'; - * - * async function processLineByLine() { - * const fileStream = fs.createReadStream('input.txt'); - * - * const rl = readline.createInterface({ - * input: fileStream, - * crlfDelay: Infinity, - * }); - * // Note: we use the crlfDelay option to recognize all instances of CR LF - * // ('\r\n') in input.txt as a single line break. - * - * for await (const line of rl) { - * // Each line in input.txt will be successively available here as `line`. - * console.log(`Line from file: ${line}`); - * } - * } - * - * processLineByLine(); - * ``` - * - * Alternatively, one could use the `'line'` event: - * - * ```js - * import fs from 'node:fs'; - * import readline from 'node:readline'; - * - * const rl = readline.createInterface({ - * input: fs.createReadStream('sample.txt'), - * crlfDelay: Infinity, - * }); - * - * rl.on('line', (line) => { - * console.log(`Line from file: ${line}`); - * }); - * ``` - * - * Currently, `for await...of` loop can be a bit slower. If `async` / `await` flow and speed are both essential, a mixed approach can be applied: - * - * ```js - * import { once } from 'node:events'; - * import { createReadStream } from 'node:fs'; - * import { createInterface } from 'node:readline'; - * - * (async function processLineByLine() { - * try { - * const rl = createInterface({ - * input: createReadStream('big-file.txt'), - * crlfDelay: Infinity, - * }); - * - * rl.on('line', (line) => { - * // Process the line. - * }); - * - * await once(rl, 'close'); - * - * console.log('File processed.'); - * } catch (err) { - * console.error(err); - * } - * })(); - * ``` - * @since v0.7.7 - */ - export function emitKeypressEvents(stream: NodeJS.ReadableStream, readlineInterface?: Interface): void; - export type Direction = -1 | 0 | 1; - export interface CursorPos { - rows: number; - cols: number; - } - /** - * The `readline.clearLine()` method clears current line of given [TTY](https://nodejs.org/docs/latest-v24.x/api/tty.html) stream - * in a specified direction identified by `dir`. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - export function clearLine(stream: NodeJS.WritableStream, dir: Direction, callback?: () => void): boolean; - /** - * The `readline.clearScreenDown()` method clears the given [TTY](https://nodejs.org/docs/latest-v24.x/api/tty.html) stream from - * the current position of the cursor down. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - export function clearScreenDown(stream: NodeJS.WritableStream, callback?: () => void): boolean; - /** - * The `readline.cursorTo()` method moves cursor to the specified position in a - * given [TTY](https://nodejs.org/docs/latest-v24.x/api/tty.html) `stream`. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - export function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number, callback?: () => void): boolean; - /** - * The `readline.moveCursor()` method moves the cursor _relative_ to its current - * position in a given [TTY](https://nodejs.org/docs/latest-v24.x/api/tty.html) `stream`. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - export function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean; -} -declare module "node:readline" { - export * from "readline"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/readline/promises.d.ts b/build_vtk_bundle/node_modules/@types/node/readline/promises.d.ts deleted file mode 100644 index 5bc9a0c2..00000000 --- a/build_vtk_bundle/node_modules/@types/node/readline/promises.d.ts +++ /dev/null @@ -1,161 +0,0 @@ -/** - * @since v17.0.0 - */ -declare module "readline/promises" { - import { Abortable } from "node:events"; - import { - CompleterResult, - Direction, - Interface as _Interface, - ReadLineOptions as _ReadLineOptions, - } from "node:readline"; - /** - * Instances of the `readlinePromises.Interface` class are constructed using the `readlinePromises.createInterface()` method. Every instance is associated with a - * single `input` `Readable` stream and a single `output` `Writable` stream. - * The `output` stream is used to print prompts for user input that arrives on, - * and is read from, the `input` stream. - * @since v17.0.0 - */ - class Interface extends _Interface { - /** - * The `rl.question()` method displays the `query` by writing it to the `output`, - * waits for user input to be provided on `input`, then invokes the `callback` function passing the provided input as the first argument. - * - * When called, `rl.question()` will resume the `input` stream if it has been - * paused. - * - * If the `Interface` was created with `output` set to `null` or `undefined` the `query` is not written. - * - * If the question is called after `rl.close()`, it returns a rejected promise. - * - * Example usage: - * - * ```js - * const answer = await rl.question('What is your favorite food? '); - * console.log(`Oh, so your favorite food is ${answer}`); - * ``` - * - * Using an `AbortSignal` to cancel a question. - * - * ```js - * const signal = AbortSignal.timeout(10_000); - * - * signal.addEventListener('abort', () => { - * console.log('The food question timed out'); - * }, { once: true }); - * - * const answer = await rl.question('What is your favorite food? ', { signal }); - * console.log(`Oh, so your favorite food is ${answer}`); - * ``` - * @since v17.0.0 - * @param query A statement or query to write to `output`, prepended to the prompt. - * @return A promise that is fulfilled with the user's input in response to the `query`. - */ - question(query: string): Promise; - question(query: string, options: Abortable): Promise; - } - /** - * @since v17.0.0 - */ - class Readline { - /** - * @param stream A TTY stream. - */ - constructor( - stream: NodeJS.WritableStream, - options?: { - autoCommit?: boolean | undefined; - }, - ); - /** - * The `rl.clearLine()` method adds to the internal list of pending action an - * action that clears current line of the associated `stream` in a specified - * direction identified by `dir`. - * Call `rl.commit()` to see the effect of this method, unless `autoCommit: true` was passed to the constructor. - * @since v17.0.0 - * @return this - */ - clearLine(dir: Direction): this; - /** - * The `rl.clearScreenDown()` method adds to the internal list of pending action an - * action that clears the associated stream from the current position of the - * cursor down. - * Call `rl.commit()` to see the effect of this method, unless `autoCommit: true` was passed to the constructor. - * @since v17.0.0 - * @return this - */ - clearScreenDown(): this; - /** - * The `rl.commit()` method sends all the pending actions to the associated `stream` and clears the internal list of pending actions. - * @since v17.0.0 - */ - commit(): Promise; - /** - * The `rl.cursorTo()` method adds to the internal list of pending action an action - * that moves cursor to the specified position in the associated `stream`. - * Call `rl.commit()` to see the effect of this method, unless `autoCommit: true` was passed to the constructor. - * @since v17.0.0 - * @return this - */ - cursorTo(x: number, y?: number): this; - /** - * The `rl.moveCursor()` method adds to the internal list of pending action an - * action that moves the cursor _relative_ to its current position in the - * associated `stream`. - * Call `rl.commit()` to see the effect of this method, unless `autoCommit: true` was passed to the constructor. - * @since v17.0.0 - * @return this - */ - moveCursor(dx: number, dy: number): this; - /** - * The `rl.rollback` methods clears the internal list of pending actions without - * sending it to the associated `stream`. - * @since v17.0.0 - * @return this - */ - rollback(): this; - } - type Completer = (line: string) => CompleterResult | Promise; - interface ReadLineOptions extends Omit<_ReadLineOptions, "completer"> { - /** - * An optional function used for Tab autocompletion. - */ - completer?: Completer | undefined; - } - /** - * The `readlinePromises.createInterface()` method creates a new `readlinePromises.Interface` instance. - * - * ```js - * import readlinePromises from 'node:readline/promises'; - * const rl = readlinePromises.createInterface({ - * input: process.stdin, - * output: process.stdout, - * }); - * ``` - * - * Once the `readlinePromises.Interface` instance is created, the most common case - * is to listen for the `'line'` event: - * - * ```js - * rl.on('line', (line) => { - * console.log(`Received: ${line}`); - * }); - * ``` - * - * If `terminal` is `true` for this instance then the `output` stream will get - * the best compatibility if it defines an `output.columns` property and emits - * a `'resize'` event on the `output` if or when the columns ever change - * (`process.stdout` does this automatically when it is a TTY). - * @since v17.0.0 - */ - function createInterface( - input: NodeJS.ReadableStream, - output?: NodeJS.WritableStream, - completer?: Completer, - terminal?: boolean, - ): Interface; - function createInterface(options: ReadLineOptions): Interface; -} -declare module "node:readline/promises" { - export * from "readline/promises"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/repl.d.ts b/build_vtk_bundle/node_modules/@types/node/repl.d.ts deleted file mode 100644 index 60dc94ad..00000000 --- a/build_vtk_bundle/node_modules/@types/node/repl.d.ts +++ /dev/null @@ -1,438 +0,0 @@ -/** - * The `node:repl` module provides a Read-Eval-Print-Loop (REPL) implementation - * that is available both as a standalone program or includible in other - * applications. It can be accessed using: - * - * ```js - * import repl from 'node:repl'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/repl.js) - */ -declare module "repl" { - import { AsyncCompleter, Completer, Interface } from "node:readline"; - import { Context } from "node:vm"; - import { InspectOptions } from "node:util"; - interface ReplOptions { - /** - * The input prompt to display. - * @default "> " - */ - prompt?: string | undefined; - /** - * The `Readable` stream from which REPL input will be read. - * @default process.stdin - */ - input?: NodeJS.ReadableStream | undefined; - /** - * The `Writable` stream to which REPL output will be written. - * @default process.stdout - */ - output?: NodeJS.WritableStream | undefined; - /** - * If `true`, specifies that the output should be treated as a TTY terminal, and have - * ANSI/VT100 escape codes written to it. - * Default: checking the value of the `isTTY` property on the output stream upon - * instantiation. - */ - terminal?: boolean | undefined; - /** - * The function to be used when evaluating each given line of input. - * **Default:** an async wrapper for the JavaScript `eval()` function. An `eval` function can - * error with `repl.Recoverable` to indicate the input was incomplete and prompt for - * additional lines. See the [custom evaluation functions](https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#custom-evaluation-functions) - * section for more details. - */ - eval?: REPLEval | undefined; - /** - * Defines if the repl prints output previews or not. - * @default `true` Always `false` in case `terminal` is falsy. - */ - preview?: boolean | undefined; - /** - * If `true`, specifies that the default `writer` function should include ANSI color - * styling to REPL output. If a custom `writer` function is provided then this has no - * effect. - * @default the REPL instance's `terminal` value - */ - useColors?: boolean | undefined; - /** - * If `true`, specifies that the default evaluation function will use the JavaScript - * `global` as the context as opposed to creating a new separate context for the REPL - * instance. The node CLI REPL sets this value to `true`. - * @default false - */ - useGlobal?: boolean | undefined; - /** - * If `true`, specifies that the default writer will not output the return value of a - * command if it evaluates to `undefined`. - * @default false - */ - ignoreUndefined?: boolean | undefined; - /** - * The function to invoke to format the output of each command before writing to `output`. - * @default a wrapper for `util.inspect` - * - * @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_customizing_repl_output - */ - writer?: REPLWriter | undefined; - /** - * An optional function used for custom Tab auto completion. - * - * @see https://nodejs.org/dist/latest-v24.x/docs/api/readline.html#readline_use_of_the_completer_function - */ - completer?: Completer | AsyncCompleter | undefined; - /** - * A flag that specifies whether the default evaluator executes all JavaScript commands in - * strict mode or default (sloppy) mode. - * Accepted values are: - * - `repl.REPL_MODE_SLOPPY` - evaluates expressions in sloppy mode. - * - `repl.REPL_MODE_STRICT` - evaluates expressions in strict mode. This is equivalent to - * prefacing every repl statement with `'use strict'`. - */ - replMode?: typeof REPL_MODE_SLOPPY | typeof REPL_MODE_STRICT | undefined; - /** - * Stop evaluating the current piece of code when `SIGINT` is received, i.e. `Ctrl+C` is - * pressed. This cannot be used together with a custom `eval` function. - * @default false - */ - breakEvalOnSigint?: boolean | undefined; - } - type REPLEval = ( - this: REPLServer, - evalCmd: string, - context: Context, - file: string, - cb: (err: Error | null, result: any) => void, - ) => void; - type REPLWriter = (this: REPLServer, obj: any) => string; - /** - * This is the default "writer" value, if none is passed in the REPL options, - * and it can be overridden by custom print functions. - */ - const writer: REPLWriter & { - options: InspectOptions; - }; - type REPLCommandAction = (this: REPLServer, text: string) => void; - interface REPLCommand { - /** - * Help text to be displayed when `.help` is entered. - */ - help?: string | undefined; - /** - * The function to execute, optionally accepting a single string argument. - */ - action: REPLCommandAction; - } - interface REPLServerSetupHistoryOptions { - filePath?: string | undefined; - size?: number | undefined; - removeHistoryDuplicates?: boolean | undefined; - onHistoryFileLoaded?: ((err: Error | null, repl: REPLServer) => void) | undefined; - } - /** - * Instances of `repl.REPLServer` are created using the {@link start} method - * or directly using the JavaScript `new` keyword. - * - * ```js - * import repl from 'node:repl'; - * - * const options = { useColors: true }; - * - * const firstInstance = repl.start(options); - * const secondInstance = new repl.REPLServer(options); - * ``` - * @since v0.1.91 - */ - class REPLServer extends Interface { - /** - * The `vm.Context` provided to the `eval` function to be used for JavaScript - * evaluation. - */ - readonly context: Context; - /** - * @deprecated since v14.3.0 - Use `input` instead. - */ - readonly inputStream: NodeJS.ReadableStream; - /** - * @deprecated since v14.3.0 - Use `output` instead. - */ - readonly outputStream: NodeJS.WritableStream; - /** - * The `Readable` stream from which REPL input will be read. - */ - readonly input: NodeJS.ReadableStream; - /** - * The `Writable` stream to which REPL output will be written. - */ - readonly output: NodeJS.WritableStream; - /** - * The commands registered via `replServer.defineCommand()`. - */ - readonly commands: NodeJS.ReadOnlyDict; - /** - * A value indicating whether the REPL is currently in "editor mode". - * - * @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_commands_and_special_keys - */ - readonly editorMode: boolean; - /** - * A value indicating whether the `_` variable has been assigned. - * - * @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable - */ - readonly underscoreAssigned: boolean; - /** - * The last evaluation result from the REPL (assigned to the `_` variable inside of the REPL). - * - * @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable - */ - readonly last: any; - /** - * A value indicating whether the `_error` variable has been assigned. - * - * @since v9.8.0 - * @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable - */ - readonly underscoreErrAssigned: boolean; - /** - * The last error raised inside the REPL (assigned to the `_error` variable inside of the REPL). - * - * @since v9.8.0 - * @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable - */ - readonly lastError: any; - /** - * Specified in the REPL options, this is the function to be used when evaluating each - * given line of input. If not specified in the REPL options, this is an async wrapper - * for the JavaScript `eval()` function. - */ - readonly eval: REPLEval; - /** - * Specified in the REPL options, this is a value indicating whether the default - * `writer` function should include ANSI color styling to REPL output. - */ - readonly useColors: boolean; - /** - * Specified in the REPL options, this is a value indicating whether the default `eval` - * function will use the JavaScript `global` as the context as opposed to creating a new - * separate context for the REPL instance. - */ - readonly useGlobal: boolean; - /** - * Specified in the REPL options, this is a value indicating whether the default `writer` - * function should output the result of a command if it evaluates to `undefined`. - */ - readonly ignoreUndefined: boolean; - /** - * Specified in the REPL options, this is the function to invoke to format the output of - * each command before writing to `outputStream`. If not specified in the REPL options, - * this will be a wrapper for `util.inspect`. - */ - readonly writer: REPLWriter; - /** - * Specified in the REPL options, this is the function to use for custom Tab auto-completion. - */ - readonly completer: Completer | AsyncCompleter; - /** - * Specified in the REPL options, this is a flag that specifies whether the default `eval` - * function should execute all JavaScript commands in strict mode or default (sloppy) mode. - * Possible values are: - * - `repl.REPL_MODE_SLOPPY` - evaluates expressions in sloppy mode. - * - `repl.REPL_MODE_STRICT` - evaluates expressions in strict mode. This is equivalent to - * prefacing every repl statement with `'use strict'`. - */ - readonly replMode: typeof REPL_MODE_SLOPPY | typeof REPL_MODE_STRICT; - /** - * NOTE: According to the documentation: - * - * > Instances of `repl.REPLServer` are created using the `repl.start()` method and - * > _should not_ be created directly using the JavaScript `new` keyword. - * - * `REPLServer` cannot be subclassed due to implementation specifics in NodeJS. - * - * @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_class_replserver - */ - private constructor(); - /** - * The `replServer.defineCommand()` method is used to add new `.`\-prefixed commands - * to the REPL instance. Such commands are invoked by typing a `.` followed by the `keyword`. The `cmd` is either a `Function` or an `Object` with the following - * properties: - * - * The following example shows two new commands added to the REPL instance: - * - * ```js - * import repl from 'node:repl'; - * - * const replServer = repl.start({ prompt: '> ' }); - * replServer.defineCommand('sayhello', { - * help: 'Say hello', - * action(name) { - * this.clearBufferedCommand(); - * console.log(`Hello, ${name}!`); - * this.displayPrompt(); - * }, - * }); - * replServer.defineCommand('saybye', function saybye() { - * console.log('Goodbye!'); - * this.close(); - * }); - * ``` - * - * The new commands can then be used from within the REPL instance: - * - * ```console - * > .sayhello Node.js User - * Hello, Node.js User! - * > .saybye - * Goodbye! - * ``` - * @since v0.3.0 - * @param keyword The command keyword (_without_ a leading `.` character). - * @param cmd The function to invoke when the command is processed. - */ - defineCommand(keyword: string, cmd: REPLCommandAction | REPLCommand): void; - /** - * The `replServer.displayPrompt()` method readies the REPL instance for input - * from the user, printing the configured `prompt` to a new line in the `output` and resuming the `input` to accept new input. - * - * When multi-line input is being entered, a pipe `'|'` is printed rather than the - * 'prompt'. - * - * When `preserveCursor` is `true`, the cursor placement will not be reset to `0`. - * - * The `replServer.displayPrompt` method is primarily intended to be called from - * within the action function for commands registered using the `replServer.defineCommand()` method. - * @since v0.1.91 - */ - displayPrompt(preserveCursor?: boolean): void; - /** - * The `replServer.clearBufferedCommand()` method clears any command that has been - * buffered but not yet executed. This method is primarily intended to be - * called from within the action function for commands registered using the `replServer.defineCommand()` method. - * @since v9.0.0 - */ - clearBufferedCommand(): void; - /** - * Initializes a history log file for the REPL instance. When executing the - * Node.js binary and using the command-line REPL, a history file is initialized - * by default. However, this is not the case when creating a REPL - * programmatically. Use this method to initialize a history log file when working - * with REPL instances programmatically. - * @since v11.10.0 - * @param historyPath the path to the history file - * @param callback called when history writes are ready or upon error - */ - setupHistory(historyPath: string, callback: (err: Error | null, repl: this) => void): void; - setupHistory( - historyConfig?: REPLServerSetupHistoryOptions, - callback?: (err: Error | null, repl: this) => void, - ): void; - /** - * events.EventEmitter - * 1. close - inherited from `readline.Interface` - * 2. line - inherited from `readline.Interface` - * 3. pause - inherited from `readline.Interface` - * 4. resume - inherited from `readline.Interface` - * 5. SIGCONT - inherited from `readline.Interface` - * 6. SIGINT - inherited from `readline.Interface` - * 7. SIGTSTP - inherited from `readline.Interface` - * 8. exit - * 9. reset - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "close", listener: () => void): this; - addListener(event: "line", listener: (input: string) => void): this; - addListener(event: "pause", listener: () => void): this; - addListener(event: "resume", listener: () => void): this; - addListener(event: "SIGCONT", listener: () => void): this; - addListener(event: "SIGINT", listener: () => void): this; - addListener(event: "SIGTSTP", listener: () => void): this; - addListener(event: "exit", listener: () => void): this; - addListener(event: "reset", listener: (context: Context) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "close"): boolean; - emit(event: "line", input: string): boolean; - emit(event: "pause"): boolean; - emit(event: "resume"): boolean; - emit(event: "SIGCONT"): boolean; - emit(event: "SIGINT"): boolean; - emit(event: "SIGTSTP"): boolean; - emit(event: "exit"): boolean; - emit(event: "reset", context: Context): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "close", listener: () => void): this; - on(event: "line", listener: (input: string) => void): this; - on(event: "pause", listener: () => void): this; - on(event: "resume", listener: () => void): this; - on(event: "SIGCONT", listener: () => void): this; - on(event: "SIGINT", listener: () => void): this; - on(event: "SIGTSTP", listener: () => void): this; - on(event: "exit", listener: () => void): this; - on(event: "reset", listener: (context: Context) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "line", listener: (input: string) => void): this; - once(event: "pause", listener: () => void): this; - once(event: "resume", listener: () => void): this; - once(event: "SIGCONT", listener: () => void): this; - once(event: "SIGINT", listener: () => void): this; - once(event: "SIGTSTP", listener: () => void): this; - once(event: "exit", listener: () => void): this; - once(event: "reset", listener: (context: Context) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "line", listener: (input: string) => void): this; - prependListener(event: "pause", listener: () => void): this; - prependListener(event: "resume", listener: () => void): this; - prependListener(event: "SIGCONT", listener: () => void): this; - prependListener(event: "SIGINT", listener: () => void): this; - prependListener(event: "SIGTSTP", listener: () => void): this; - prependListener(event: "exit", listener: () => void): this; - prependListener(event: "reset", listener: (context: Context) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "line", listener: (input: string) => void): this; - prependOnceListener(event: "pause", listener: () => void): this; - prependOnceListener(event: "resume", listener: () => void): this; - prependOnceListener(event: "SIGCONT", listener: () => void): this; - prependOnceListener(event: "SIGINT", listener: () => void): this; - prependOnceListener(event: "SIGTSTP", listener: () => void): this; - prependOnceListener(event: "exit", listener: () => void): this; - prependOnceListener(event: "reset", listener: (context: Context) => void): this; - } - /** - * A flag passed in the REPL options. Evaluates expressions in sloppy mode. - */ - const REPL_MODE_SLOPPY: unique symbol; - /** - * A flag passed in the REPL options. Evaluates expressions in strict mode. - * This is equivalent to prefacing every repl statement with `'use strict'`. - */ - const REPL_MODE_STRICT: unique symbol; - /** - * The `repl.start()` method creates and starts a {@link REPLServer} instance. - * - * If `options` is a string, then it specifies the input prompt: - * - * ```js - * import repl from 'node:repl'; - * - * // a Unix style prompt - * repl.start('$ '); - * ``` - * @since v0.1.91 - */ - function start(options?: string | ReplOptions): REPLServer; - /** - * Indicates a recoverable error that a `REPLServer` can use to support multi-line input. - * - * @see https://nodejs.org/dist/latest-v24.x/docs/api/repl.html#repl_recoverable_errors - */ - class Recoverable extends SyntaxError { - err: Error; - constructor(err: Error); - } -} -declare module "node:repl" { - export * from "repl"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/sea.d.ts b/build_vtk_bundle/node_modules/@types/node/sea.d.ts deleted file mode 100644 index 870c3045..00000000 --- a/build_vtk_bundle/node_modules/@types/node/sea.d.ts +++ /dev/null @@ -1,162 +0,0 @@ -/** - * This feature allows the distribution of a Node.js application conveniently to a - * system that does not have Node.js installed. - * - * Node.js supports the creation of [single executable applications](https://github.com/nodejs/single-executable) by allowing - * the injection of a blob prepared by Node.js, which can contain a bundled script, - * into the `node` binary. During start up, the program checks if anything has been - * injected. If the blob is found, it executes the script in the blob. Otherwise - * Node.js operates as it normally does. - * - * The single executable application feature currently only supports running a - * single embedded script using the `CommonJS` module system. - * - * Users can create a single executable application from their bundled script - * with the `node` binary itself and any tool which can inject resources into the - * binary. - * - * Here are the steps for creating a single executable application using one such - * tool, [postject](https://github.com/nodejs/postject): - * - * 1. Create a JavaScript file: - * ```bash - * echo 'console.log(`Hello, ${process.argv[2]}!`);' > hello.js - * ``` - * 2. Create a configuration file building a blob that can be injected into the - * single executable application (see `Generating single executable preparation blobs` for details): - * ```bash - * echo '{ "main": "hello.js", "output": "sea-prep.blob" }' > sea-config.json - * ``` - * 3. Generate the blob to be injected: - * ```bash - * node --experimental-sea-config sea-config.json - * ``` - * 4. Create a copy of the `node` executable and name it according to your needs: - * * On systems other than Windows: - * ```bash - * cp $(command -v node) hello - * ``` - * * On Windows: - * ```text - * node -e "require('fs').copyFileSync(process.execPath, 'hello.exe')" - * ``` - * The `.exe` extension is necessary. - * 5. Remove the signature of the binary (macOS and Windows only): - * * On macOS: - * ```bash - * codesign --remove-signature hello - * ``` - * * On Windows (optional): - * [signtool](https://learn.microsoft.com/en-us/windows/win32/seccrypto/signtool) can be used from the installed [Windows SDK](https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/). - * If this step is - * skipped, ignore any signature-related warning from postject. - * ```powershell - * signtool remove /s hello.exe - * ``` - * 6. Inject the blob into the copied binary by running `postject` with - * the following options: - * * `hello` / `hello.exe` \- The name of the copy of the `node` executable - * created in step 4. - * * `NODE_SEA_BLOB` \- The name of the resource / note / section in the binary - * where the contents of the blob will be stored. - * * `sea-prep.blob` \- The name of the blob created in step 1. - * * `--sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2` \- The [fuse](https://www.electronjs.org/docs/latest/tutorial/fuses) used by the Node.js project to detect if a file has been - * injected. - * * `--macho-segment-name NODE_SEA` (only needed on macOS) - The name of the - * segment in the binary where the contents of the blob will be - * stored. - * To summarize, here is the required command for each platform: - * * On Linux: - * ```bash - * npx postject hello NODE_SEA_BLOB sea-prep.blob \ - * --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 - * ``` - * * On Windows - PowerShell: - * ```powershell - * npx postject hello.exe NODE_SEA_BLOB sea-prep.blob ` - * --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 - * ``` - * * On Windows - Command Prompt: - * ```text - * npx postject hello.exe NODE_SEA_BLOB sea-prep.blob ^ - * --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 - * ``` - * * On macOS: - * ```bash - * npx postject hello NODE_SEA_BLOB sea-prep.blob \ - * --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 \ - * --macho-segment-name NODE_SEA - * ``` - * 7. Sign the binary (macOS and Windows only): - * * On macOS: - * ```bash - * codesign --sign - hello - * ``` - * * On Windows (optional): - * A certificate needs to be present for this to work. However, the unsigned - * binary would still be runnable. - * ```powershell - * signtool sign /fd SHA256 hello.exe - * ``` - * 8. Run the binary: - * * On systems other than Windows - * ```console - * $ ./hello world - * Hello, world! - * ``` - * * On Windows - * ```console - * $ .\hello.exe world - * Hello, world! - * ``` - * @since v19.7.0, v18.16.0 - * @experimental - * @see [source](https://github.com/nodejs/node/blob/v24.x/src/node_sea.cc) - */ -declare module "node:sea" { - type AssetKey = string; - /** - * @since v20.12.0 - * @return Whether this script is running inside a single-executable application. - */ - function isSea(): boolean; - /** - * This method can be used to retrieve the assets configured to be bundled into the - * single-executable application at build time. - * An error is thrown when no matching asset can be found. - * @since v20.12.0 - */ - function getAsset(key: AssetKey): ArrayBuffer; - function getAsset(key: AssetKey, encoding: string): string; - /** - * Similar to `sea.getAsset()`, but returns the result in a [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob). - * An error is thrown when no matching asset can be found. - * @since v20.12.0 - */ - function getAssetAsBlob(key: AssetKey, options?: { - type: string; - }): Blob; - /** - * This method can be used to retrieve the assets configured to be bundled into the - * single-executable application at build time. - * An error is thrown when no matching asset can be found. - * - * Unlike `sea.getRawAsset()` or `sea.getAssetAsBlob()`, this method does not - * return a copy. Instead, it returns the raw asset bundled inside the executable. - * - * For now, users should avoid writing to the returned array buffer. If the - * injected section is not marked as writable or not aligned properly, - * writes to the returned array buffer is likely to result in a crash. - * @since v20.12.0 - */ - function getRawAsset(key: AssetKey): ArrayBuffer; - /** - * This method can be used to retrieve an array of all the keys of assets - * embedded into the single-executable application. - * An error is thrown when not running inside a single-executable application. - * @since v24.8.0 - * @returns An array containing all the keys of the assets - * embedded in the executable. If no assets are embedded, returns an empty array. - */ - function getAssetKeys(): string[]; -} diff --git a/build_vtk_bundle/node_modules/@types/node/sqlite.d.ts b/build_vtk_bundle/node_modules/@types/node/sqlite.d.ts deleted file mode 100644 index 6ff7943a..00000000 --- a/build_vtk_bundle/node_modules/@types/node/sqlite.d.ts +++ /dev/null @@ -1,937 +0,0 @@ -/** - * The `node:sqlite` module facilitates working with SQLite databases. - * To access it: - * - * ```js - * import sqlite from 'node:sqlite'; - * ``` - * - * This module is only available under the `node:` scheme. The following will not - * work: - * - * ```js - * import sqlite from 'sqlite'; - * ``` - * - * The following example shows the basic usage of the `node:sqlite` module to open - * an in-memory database, write data to the database, and then read the data back. - * - * ```js - * import { DatabaseSync } from 'node:sqlite'; - * const database = new DatabaseSync(':memory:'); - * - * // Execute SQL statements from strings. - * database.exec(` - * CREATE TABLE data( - * key INTEGER PRIMARY KEY, - * value TEXT - * ) STRICT - * `); - * // Create a prepared statement to insert data into the database. - * const insert = database.prepare('INSERT INTO data (key, value) VALUES (?, ?)'); - * // Execute the prepared statement with bound values. - * insert.run(1, 'hello'); - * insert.run(2, 'world'); - * // Create a prepared statement to read data from the database. - * const query = database.prepare('SELECT * FROM data ORDER BY key'); - * // Execute the prepared statement and log the result set. - * console.log(query.all()); - * // Prints: [ { key: 1, value: 'hello' }, { key: 2, value: 'world' } ] - * ``` - * @since v22.5.0 - * @experimental - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/sqlite.js) - */ -declare module "node:sqlite" { - import { PathLike } from "node:fs"; - type SQLInputValue = null | number | bigint | string | NodeJS.ArrayBufferView; - type SQLOutputValue = null | number | bigint | string | NodeJS.NonSharedUint8Array; - interface DatabaseSyncOptions { - /** - * If `true`, the database is opened by the constructor. When - * this value is `false`, the database must be opened via the `open()` method. - * @since v22.5.0 - * @default true - */ - open?: boolean | undefined; - /** - * If `true`, foreign key constraints - * are enabled. This is recommended but can be disabled for compatibility with - * legacy database schemas. The enforcement of foreign key constraints can be - * enabled and disabled after opening the database using - * [`PRAGMA foreign_keys`](https://www.sqlite.org/pragma.html#pragma_foreign_keys). - * @since v22.10.0 - * @default true - */ - enableForeignKeyConstraints?: boolean | undefined; - /** - * If `true`, SQLite will accept - * [double-quoted string literals](https://www.sqlite.org/quirks.html#dblquote). - * This is not recommended but can be - * enabled for compatibility with legacy database schemas. - * @since v22.10.0 - * @default false - */ - enableDoubleQuotedStringLiterals?: boolean | undefined; - /** - * If `true`, the database is opened in read-only mode. - * If the database does not exist, opening it will fail. - * @since v22.12.0 - * @default false - */ - readOnly?: boolean | undefined; - /** - * If `true`, the `loadExtension` SQL function - * and the `loadExtension()` method are enabled. - * You can call `enableLoadExtension(false)` later to disable this feature. - * @since v22.13.0 - * @default false - */ - allowExtension?: boolean | undefined; - /** - * The [busy timeout](https://sqlite.org/c3ref/busy_timeout.html) in milliseconds. This is the maximum amount of - * time that SQLite will wait for a database lock to be released before - * returning an error. - * @since v24.0.0 - * @default 0 - */ - timeout?: number | undefined; - /** - * If `true`, integer fields are read as JavaScript `BigInt` values. If `false`, - * integer fields are read as JavaScript numbers. - * @since v24.4.0 - * @default false - */ - readBigInts?: boolean | undefined; - /** - * If `true`, query results are returned as arrays instead of objects. - * @since v24.4.0 - * @default false - */ - returnArrays?: boolean | undefined; - /** - * If `true`, allows binding named parameters without the prefix - * character (e.g., `foo` instead of `:foo`). - * @since v24.4.40 - * @default true - */ - allowBareNamedParameters?: boolean | undefined; - /** - * If `true`, unknown named parameters are ignored when binding. - * If `false`, an exception is thrown for unknown named parameters. - * @since v24.4.40 - * @default false - */ - allowUnknownNamedParameters?: boolean | undefined; - } - interface CreateSessionOptions { - /** - * A specific table to track changes for. By default, changes to all tables are tracked. - * @since v22.12.0 - */ - table?: string | undefined; - /** - * Name of the database to track. This is useful when multiple databases have been added using - * [`ATTACH DATABASE`](https://www.sqlite.org/lang_attach.html). - * @since v22.12.0 - * @default 'main' - */ - db?: string | undefined; - } - interface ApplyChangesetOptions { - /** - * Skip changes that, when targeted table name is supplied to this function, return a truthy value. - * By default, all changes are attempted. - * @since v22.12.0 - */ - filter?: ((tableName: string) => boolean) | undefined; - /** - * A function that determines how to handle conflicts. The function receives one argument, - * which can be one of the following values: - * - * * `SQLITE_CHANGESET_DATA`: A `DELETE` or `UPDATE` change does not contain the expected "before" values. - * * `SQLITE_CHANGESET_NOTFOUND`: A row matching the primary key of the `DELETE` or `UPDATE` change does not exist. - * * `SQLITE_CHANGESET_CONFLICT`: An `INSERT` change results in a duplicate primary key. - * * `SQLITE_CHANGESET_FOREIGN_KEY`: Applying a change would result in a foreign key violation. - * * `SQLITE_CHANGESET_CONSTRAINT`: Applying a change results in a `UNIQUE`, `CHECK`, or `NOT NULL` constraint - * violation. - * - * The function should return one of the following values: - * - * * `SQLITE_CHANGESET_OMIT`: Omit conflicting changes. - * * `SQLITE_CHANGESET_REPLACE`: Replace existing values with conflicting changes (only valid with - `SQLITE_CHANGESET_DATA` or `SQLITE_CHANGESET_CONFLICT` conflicts). - * * `SQLITE_CHANGESET_ABORT`: Abort on conflict and roll back the database. - * - * When an error is thrown in the conflict handler or when any other value is returned from the handler, - * applying the changeset is aborted and the database is rolled back. - * - * **Default**: A function that returns `SQLITE_CHANGESET_ABORT`. - * @since v22.12.0 - */ - onConflict?: ((conflictType: number) => number) | undefined; - } - interface FunctionOptions { - /** - * If `true`, the [`SQLITE_DETERMINISTIC`](https://www.sqlite.org/c3ref/c_deterministic.html) flag is - * set on the created function. - * @default false - */ - deterministic?: boolean | undefined; - /** - * If `true`, the [`SQLITE_DIRECTONLY`](https://www.sqlite.org/c3ref/c_directonly.html) flag is set on - * the created function. - * @default false - */ - directOnly?: boolean | undefined; - /** - * If `true`, integer arguments to `function` - * are converted to `BigInt`s. If `false`, integer arguments are passed as - * JavaScript numbers. - * @default false - */ - useBigIntArguments?: boolean | undefined; - /** - * If `true`, `function` may be invoked with any number of - * arguments (between zero and - * [`SQLITE_MAX_FUNCTION_ARG`](https://www.sqlite.org/limits.html#max_function_arg)). If `false`, - * `function` must be invoked with exactly `function.length` arguments. - * @default false - */ - varargs?: boolean | undefined; - } - interface AggregateOptions extends FunctionOptions { - /** - * The identity value for the aggregation function. This value is used when the aggregation - * function is initialized. When a `Function` is passed the identity will be its return value. - */ - start: T | (() => T); - /** - * The function to call for each row in the aggregation. The - * function receives the current state and the row value. The return value of - * this function should be the new state. - */ - step: (accumulator: T, ...args: SQLOutputValue[]) => T; - /** - * The function to call to get the result of the - * aggregation. The function receives the final state and should return the - * result of the aggregation. - */ - result?: ((accumulator: T) => SQLInputValue) | undefined; - /** - * When this function is provided, the `aggregate` method will work as a window function. - * The function receives the current state and the dropped row value. The return value of this function should be the - * new state. - */ - inverse?: ((accumulator: T, ...args: SQLOutputValue[]) => T) | undefined; - } - /** - * This class represents a single [connection](https://www.sqlite.org/c3ref/sqlite3.html) to a SQLite database. All APIs - * exposed by this class execute synchronously. - * @since v22.5.0 - */ - class DatabaseSync implements Disposable { - /** - * Constructs a new `DatabaseSync` instance. - * @param path The path of the database. - * A SQLite database can be stored in a file or completely [in memory](https://www.sqlite.org/inmemorydb.html). - * To use a file-backed database, the path should be a file path. - * To use an in-memory database, the path should be the special name `':memory:'`. - * @param options Configuration options for the database connection. - */ - constructor(path: PathLike, options?: DatabaseSyncOptions); - /** - * Registers a new aggregate function with the SQLite database. This method is a wrapper around - * [`sqlite3_create_window_function()`](https://www.sqlite.org/c3ref/create_function.html). - * - * When used as a window function, the `result` function will be called multiple times. - * - * ```js - * import { DatabaseSync } from 'node:sqlite'; - * - * const db = new DatabaseSync(':memory:'); - * db.exec(` - * CREATE TABLE t3(x, y); - * INSERT INTO t3 VALUES ('a', 4), - * ('b', 5), - * ('c', 3), - * ('d', 8), - * ('e', 1); - * `); - * - * db.aggregate('sumint', { - * start: 0, - * step: (acc, value) => acc + value, - * }); - * - * db.prepare('SELECT sumint(y) as total FROM t3').get(); // { total: 21 } - * ``` - * @since v24.0.0 - * @param name The name of the SQLite function to create. - * @param options Function configuration settings. - */ - aggregate(name: string, options: AggregateOptions): void; - aggregate(name: string, options: AggregateOptions): void; - /** - * Closes the database connection. An exception is thrown if the database is not - * open. This method is a wrapper around [`sqlite3_close_v2()`](https://www.sqlite.org/c3ref/close.html). - * @since v22.5.0 - */ - close(): void; - /** - * Loads a shared library into the database connection. This method is a wrapper - * around [`sqlite3_load_extension()`](https://www.sqlite.org/c3ref/load_extension.html). It is required to enable the - * `allowExtension` option when constructing the `DatabaseSync` instance. - * @since v22.13.0 - * @param path The path to the shared library to load. - */ - loadExtension(path: string): void; - /** - * Enables or disables the `loadExtension` SQL function, and the `loadExtension()` - * method. When `allowExtension` is `false` when constructing, you cannot enable - * loading extensions for security reasons. - * @since v22.13.0 - * @param allow Whether to allow loading extensions. - */ - enableLoadExtension(allow: boolean): void; - /** - * This method is a wrapper around [`sqlite3_db_filename()`](https://sqlite.org/c3ref/db_filename.html) - * @since v24.0.0 - * @param dbName Name of the database. This can be `'main'` (the default primary database) or any other - * database that has been added with [`ATTACH DATABASE`](https://www.sqlite.org/lang_attach.html) **Default:** `'main'`. - * @returns The location of the database file. When using an in-memory database, - * this method returns null. - */ - location(dbName?: string): string | null; - /** - * This method allows one or more SQL statements to be executed without returning - * any results. This method is useful when executing SQL statements read from a - * file. This method is a wrapper around [`sqlite3_exec()`](https://www.sqlite.org/c3ref/exec.html). - * @since v22.5.0 - * @param sql A SQL string to execute. - */ - exec(sql: string): void; - /** - * This method is used to create SQLite user-defined functions. This method is a - * wrapper around [`sqlite3_create_function_v2()`](https://www.sqlite.org/c3ref/create_function.html). - * @since v22.13.0 - * @param name The name of the SQLite function to create. - * @param options Optional configuration settings for the function. - * @param func The JavaScript function to call when the SQLite - * function is invoked. The return value of this function should be a valid - * SQLite data type: see - * [Type conversion between JavaScript and SQLite](https://nodejs.org/docs/latest-v24.x/api/sqlite.html#type-conversion-between-javascript-and-sqlite). - * The result defaults to `NULL` if the return value is `undefined`. - */ - function( - name: string, - options: FunctionOptions, - func: (...args: SQLOutputValue[]) => SQLInputValue, - ): void; - function(name: string, func: (...args: SQLOutputValue[]) => SQLInputValue): void; - /** - * Sets an authorizer callback that SQLite will invoke whenever it attempts to - * access data or modify the database schema through prepared statements. - * This can be used to implement security policies, audit access, or restrict certain operations. - * This method is a wrapper around [`sqlite3_set_authorizer()`](https://sqlite.org/c3ref/set_authorizer.html). - * - * When invoked, the callback receives five arguments: - * - * * `actionCode` {number} The type of operation being performed (e.g., - * `SQLITE_INSERT`, `SQLITE_UPDATE`, `SQLITE_SELECT`). - * * `arg1` {string|null} The first argument (context-dependent, often a table name). - * * `arg2` {string|null} The second argument (context-dependent, often a column name). - * * `dbName` {string|null} The name of the database. - * * `triggerOrView` {string|null} The name of the trigger or view causing the access. - * - * The callback must return one of the following constants: - * - * * `SQLITE_OK` - Allow the operation. - * * `SQLITE_DENY` - Deny the operation (causes an error). - * * `SQLITE_IGNORE` - Ignore the operation (silently skip). - * - * ```js - * import { DatabaseSync, constants } from 'node:sqlite'; - * const db = new DatabaseSync(':memory:'); - * - * // Set up an authorizer that denies all table creation - * db.setAuthorizer((actionCode) => { - * if (actionCode === constants.SQLITE_CREATE_TABLE) { - * return constants.SQLITE_DENY; - * } - * return constants.SQLITE_OK; - * }); - * - * // This will work - * db.prepare('SELECT 1').get(); - * - * // This will throw an error due to authorization denial - * try { - * db.exec('CREATE TABLE blocked (id INTEGER)'); - * } catch (err) { - * console.log('Operation blocked:', err.message); - * } - * ``` - * @since v24.10.0 - * @param callback The authorizer function to set, or `null` to - * clear the current authorizer. - */ - setAuthorizer( - callback: - | (( - actionCode: number, - arg1: string | null, - arg2: string | null, - dbName: string | null, - triggerOrView: string | null, - ) => number) - | null, - ): void; - /** - * Whether the database is currently open or not. - * @since v22.15.0 - */ - readonly isOpen: boolean; - /** - * Whether the database is currently within a transaction. This method - * is a wrapper around [`sqlite3_get_autocommit()`](https://sqlite.org/c3ref/get_autocommit.html). - * @since v24.0.0 - */ - readonly isTransaction: boolean; - /** - * Opens the database specified in the `path` argument of the `DatabaseSync`constructor. This method should only be used when the database is not opened via - * the constructor. An exception is thrown if the database is already open. - * @since v22.5.0 - */ - open(): void; - /** - * Compiles a SQL statement into a [prepared statement](https://www.sqlite.org/c3ref/stmt.html). This method is a wrapper - * around [`sqlite3_prepare_v2()`](https://www.sqlite.org/c3ref/prepare.html). - * @since v22.5.0 - * @param sql A SQL string to compile to a prepared statement. - * @return The prepared statement. - */ - prepare(sql: string): StatementSync; - /** - * Creates a new `SQLTagStore`, which is an LRU (Least Recently Used) cache for - * storing prepared statements. This allows for the efficient reuse of prepared - * statements by tagging them with a unique identifier. - * - * When a tagged SQL literal is executed, the `SQLTagStore` checks if a prepared - * statement for that specific SQL string already exists in the cache. If it does, - * the cached statement is used. If not, a new prepared statement is created, - * executed, and then stored in the cache for future use. This mechanism helps to - * avoid the overhead of repeatedly parsing and preparing the same SQL statements. - * - * ```js - * import { DatabaseSync } from 'node:sqlite'; - * - * const db = new DatabaseSync(':memory:'); - * const sql = db.createSQLTagStore(); - * - * db.exec('CREATE TABLE users (id INT, name TEXT)'); - * - * // Using the 'run' method to insert data. - * // The tagged literal is used to identify the prepared statement. - * sql.run`INSERT INTO users VALUES (1, 'Alice')`; - * sql.run`INSERT INTO users VALUES (2, 'Bob')`; - * - * // Using the 'get' method to retrieve a single row. - * const id = 1; - * const user = sql.get`SELECT * FROM users WHERE id = ${id}`; - * console.log(user); // { id: 1, name: 'Alice' } - * - * // Using the 'all' method to retrieve all rows. - * const allUsers = sql.all`SELECT * FROM users ORDER BY id`; - * console.log(allUsers); - * // [ - * // { id: 1, name: 'Alice' }, - * // { id: 2, name: 'Bob' } - * // ] - * ``` - * @since v24.9.0 - * @returns A new SQL tag store for caching prepared statements. - */ - createTagStore(maxSize?: number): SQLTagStore; - /** - * Creates and attaches a session to the database. This method is a wrapper around - * [`sqlite3session_create()`](https://www.sqlite.org/session/sqlite3session_create.html) and - * [`sqlite3session_attach()`](https://www.sqlite.org/session/sqlite3session_attach.html). - * @param options The configuration options for the session. - * @returns A session handle. - * @since v22.12.0 - */ - createSession(options?: CreateSessionOptions): Session; - /** - * An exception is thrown if the database is not - * open. This method is a wrapper around - * [`sqlite3changeset_apply()`](https://www.sqlite.org/session/sqlite3changeset_apply.html). - * - * ```js - * const sourceDb = new DatabaseSync(':memory:'); - * const targetDb = new DatabaseSync(':memory:'); - * - * sourceDb.exec('CREATE TABLE data(key INTEGER PRIMARY KEY, value TEXT)'); - * targetDb.exec('CREATE TABLE data(key INTEGER PRIMARY KEY, value TEXT)'); - * - * const session = sourceDb.createSession(); - * - * const insert = sourceDb.prepare('INSERT INTO data (key, value) VALUES (?, ?)'); - * insert.run(1, 'hello'); - * insert.run(2, 'world'); - * - * const changeset = session.changeset(); - * targetDb.applyChangeset(changeset); - * // Now that the changeset has been applied, targetDb contains the same data as sourceDb. - * ``` - * @param changeset A binary changeset or patchset. - * @param options The configuration options for how the changes will be applied. - * @returns Whether the changeset was applied successfully without being aborted. - * @since v22.12.0 - */ - applyChangeset(changeset: Uint8Array, options?: ApplyChangesetOptions): boolean; - /** - * Closes the database connection. If the database connection is already closed - * then this is a no-op. - * @since v22.15.0 - */ - [Symbol.dispose](): void; - } - /** - * @since v22.12.0 - */ - interface Session { - /** - * Retrieves a changeset containing all changes since the changeset was created. Can be called multiple times. - * An exception is thrown if the database or the session is not open. This method is a wrapper around - * [`sqlite3session_changeset()`](https://www.sqlite.org/session/sqlite3session_changeset.html). - * @returns Binary changeset that can be applied to other databases. - * @since v22.12.0 - */ - changeset(): NodeJS.NonSharedUint8Array; - /** - * Similar to the method above, but generates a more compact patchset. See - * [Changesets and Patchsets](https://www.sqlite.org/sessionintro.html#changesets_and_patchsets) - * in the documentation of SQLite. An exception is thrown if the database or the session is not open. This method is a - * wrapper around - * [`sqlite3session_patchset()`](https://www.sqlite.org/session/sqlite3session_patchset.html). - * @returns Binary patchset that can be applied to other databases. - * @since v22.12.0 - */ - patchset(): NodeJS.NonSharedUint8Array; - /** - * Closes the session. An exception is thrown if the database or the session is not open. This method is a - * wrapper around - * [`sqlite3session_delete()`](https://www.sqlite.org/session/sqlite3session_delete.html). - */ - close(): void; - } - /** - * This class represents a single LRU (Least Recently Used) cache for storing - * prepared statements. - * - * Instances of this class are created via the database.createSQLTagStore() method, - * not by using a constructor. The store caches prepared statements based on the - * provided SQL query string. When the same query is seen again, the store - * retrieves the cached statement and safely applies the new values through - * parameter binding, thereby preventing attacks like SQL injection. - * - * The cache has a maxSize that defaults to 1000 statements, but a custom size can - * be provided (e.g., database.createSQLTagStore(100)). All APIs exposed by this - * class execute synchronously. - * @since v24.9.0 - */ - interface SQLTagStore { - /** - * Executes the given SQL query and returns all resulting rows as an array of objects. - * @since v24.9.0 - */ - all( - stringElements: TemplateStringsArray, - ...boundParameters: SQLInputValue[] - ): Record[]; - /** - * Executes the given SQL query and returns the first resulting row as an object. - * @since v24.9.0 - */ - get( - stringElements: TemplateStringsArray, - ...boundParameters: SQLInputValue[] - ): Record | undefined; - /** - * Executes the given SQL query and returns an iterator over the resulting rows. - * @since v24.9.0 - */ - iterate( - stringElements: TemplateStringsArray, - ...boundParameters: SQLInputValue[] - ): NodeJS.Iterator>; - /** - * Executes the given SQL query, which is expected to not return any rows (e.g., INSERT, UPDATE, DELETE). - * @since v24.9.0 - */ - run(stringElements: TemplateStringsArray, ...boundParameters: SQLInputValue[]): StatementResultingChanges; - /** - * A read-only property that returns the number of prepared statements currently in the cache. - * @since v24.9.0 - * @returns The maximum number of prepared statements the cache can hold. - */ - size(): number; - /** - * A read-only property that returns the maximum number of prepared statements the cache can hold. - * @since v24.9.0 - */ - readonly capacity: number; - /** - * A read-only property that returns the `DatabaseSync` object associated with this `SQLTagStore`. - * @since v24.9.0 - */ - readonly db: DatabaseSync; - /** - * Resets the LRU cache, clearing all stored prepared statements. - * @since v24.9.0 - */ - clear(): void; - } - interface StatementColumnMetadata { - /** - * The unaliased name of the column in the origin - * table, or `null` if the column is the result of an expression or subquery. - * This property is the result of [`sqlite3_column_origin_name()`](https://www.sqlite.org/c3ref/column_database_name.html). - */ - column: string | null; - /** - * The unaliased name of the origin database, or - * `null` if the column is the result of an expression or subquery. This - * property is the result of [`sqlite3_column_database_name()`](https://www.sqlite.org/c3ref/column_database_name.html). - */ - database: string | null; - /** - * The name assigned to the column in the result set of a - * `SELECT` statement. This property is the result of - * [`sqlite3_column_name()`](https://www.sqlite.org/c3ref/column_name.html). - */ - name: string; - /** - * The unaliased name of the origin table, or `null` if - * the column is the result of an expression or subquery. This property is the - * result of [`sqlite3_column_table_name()`](https://www.sqlite.org/c3ref/column_database_name.html). - */ - table: string | null; - /** - * The declared data type of the column, or `null` if the - * column is the result of an expression or subquery. This property is the - * result of [`sqlite3_column_decltype()`](https://www.sqlite.org/c3ref/column_decltype.html). - */ - type: string | null; - } - interface StatementResultingChanges { - /** - * The number of rows modified, inserted, or deleted by the most recently completed `INSERT`, `UPDATE`, or `DELETE` statement. - * This field is either a number or a `BigInt` depending on the prepared statement's configuration. - * This property is the result of [`sqlite3_changes64()`](https://www.sqlite.org/c3ref/changes.html). - */ - changes: number | bigint; - /** - * The most recently inserted rowid. - * This field is either a number or a `BigInt` depending on the prepared statement's configuration. - * This property is the result of [`sqlite3_last_insert_rowid()`](https://www.sqlite.org/c3ref/last_insert_rowid.html). - */ - lastInsertRowid: number | bigint; - } - /** - * This class represents a single [prepared statement](https://www.sqlite.org/c3ref/stmt.html). This class cannot be - * instantiated via its constructor. Instead, instances are created via the`database.prepare()` method. All APIs exposed by this class execute - * synchronously. - * - * A prepared statement is an efficient binary representation of the SQL used to - * create it. Prepared statements are parameterizable, and can be invoked multiple - * times with different bound values. Parameters also offer protection against [SQL injection](https://en.wikipedia.org/wiki/SQL_injection) attacks. For these reasons, prepared statements are - * preferred - * over hand-crafted SQL strings when handling user input. - * @since v22.5.0 - */ - class StatementSync { - private constructor(); - /** - * This method executes a prepared statement and returns all results as an array of - * objects. If the prepared statement does not return any results, this method - * returns an empty array. The prepared statement [parameters are bound](https://www.sqlite.org/c3ref/bind_blob.html) using - * the values in `namedParameters` and `anonymousParameters`. - * @since v22.5.0 - * @param namedParameters An optional object used to bind named parameters. The keys of this object are used to configure the mapping. - * @param anonymousParameters Zero or more values to bind to anonymous parameters. - * @return An array of objects. Each object corresponds to a row returned by executing the prepared statement. The keys and values of each object correspond to the column names and values of - * the row. - */ - all(...anonymousParameters: SQLInputValue[]): Record[]; - all( - namedParameters: Record, - ...anonymousParameters: SQLInputValue[] - ): Record[]; - /** - * This method is used to retrieve information about the columns returned by the - * prepared statement. - * @since v23.11.0 - * @returns An array of objects. Each object corresponds to a column - * in the prepared statement, and contains the following properties: - */ - columns(): StatementColumnMetadata[]; - /** - * The source SQL text of the prepared statement with parameter - * placeholders replaced by the values that were used during the most recent - * execution of this prepared statement. This property is a wrapper around - * [`sqlite3_expanded_sql()`](https://www.sqlite.org/c3ref/expanded_sql.html). - * @since v22.5.0 - */ - readonly expandedSQL: string; - /** - * This method executes a prepared statement and returns the first result as an - * object. If the prepared statement does not return any results, this method - * returns `undefined`. The prepared statement [parameters are bound](https://www.sqlite.org/c3ref/bind_blob.html) using the - * values in `namedParameters` and `anonymousParameters`. - * @since v22.5.0 - * @param namedParameters An optional object used to bind named parameters. The keys of this object are used to configure the mapping. - * @param anonymousParameters Zero or more values to bind to anonymous parameters. - * @return An object corresponding to the first row returned by executing the prepared statement. The keys and values of the object correspond to the column names and values of the row. If no - * rows were returned from the database then this method returns `undefined`. - */ - get(...anonymousParameters: SQLInputValue[]): Record | undefined; - get( - namedParameters: Record, - ...anonymousParameters: SQLInputValue[] - ): Record | undefined; - /** - * This method executes a prepared statement and returns an iterator of - * objects. If the prepared statement does not return any results, this method - * returns an empty iterator. The prepared statement [parameters are bound](https://www.sqlite.org/c3ref/bind_blob.html) using - * the values in `namedParameters` and `anonymousParameters`. - * @since v22.13.0 - * @param namedParameters An optional object used to bind named parameters. - * The keys of this object are used to configure the mapping. - * @param anonymousParameters Zero or more values to bind to anonymous parameters. - * @returns An iterable iterator of objects. Each object corresponds to a row - * returned by executing the prepared statement. The keys and values of each - * object correspond to the column names and values of the row. - */ - iterate(...anonymousParameters: SQLInputValue[]): NodeJS.Iterator>; - iterate( - namedParameters: Record, - ...anonymousParameters: SQLInputValue[] - ): NodeJS.Iterator>; - /** - * This method executes a prepared statement and returns an object summarizing the - * resulting changes. The prepared statement [parameters are bound](https://www.sqlite.org/c3ref/bind_blob.html) using the - * values in `namedParameters` and `anonymousParameters`. - * @since v22.5.0 - * @param namedParameters An optional object used to bind named parameters. The keys of this object are used to configure the mapping. - * @param anonymousParameters Zero or more values to bind to anonymous parameters. - */ - run(...anonymousParameters: SQLInputValue[]): StatementResultingChanges; - run( - namedParameters: Record, - ...anonymousParameters: SQLInputValue[] - ): StatementResultingChanges; - /** - * The names of SQLite parameters begin with a prefix character. By default,`node:sqlite` requires that this prefix character is present when binding - * parameters. However, with the exception of dollar sign character, these - * prefix characters also require extra quoting when used in object keys. - * - * To improve ergonomics, this method can be used to also allow bare named - * parameters, which do not require the prefix character in JavaScript code. There - * are several caveats to be aware of when enabling bare named parameters: - * - * * The prefix character is still required in SQL. - * * The prefix character is still allowed in JavaScript. In fact, prefixed names - * will have slightly better binding performance. - * * Using ambiguous named parameters, such as `$k` and `@k`, in the same prepared - * statement will result in an exception as it cannot be determined how to bind - * a bare name. - * @since v22.5.0 - * @param enabled Enables or disables support for binding named parameters without the prefix character. - */ - setAllowBareNamedParameters(enabled: boolean): void; - /** - * By default, if an unknown name is encountered while binding parameters, an - * exception is thrown. This method allows unknown named parameters to be ignored. - * @since v22.15.0 - * @param enabled Enables or disables support for unknown named parameters. - */ - setAllowUnknownNamedParameters(enabled: boolean): void; - /** - * When enabled, query results returned by the `all()`, `get()`, and `iterate()` methods will be returned as arrays instead - * of objects. - * @since v24.0.0 - * @param enabled Enables or disables the return of query results as arrays. - */ - setReturnArrays(enabled: boolean): void; - /** - * When reading from the database, SQLite `INTEGER`s are mapped to JavaScript - * numbers by default. However, SQLite `INTEGER`s can store values larger than - * JavaScript numbers are capable of representing. In such cases, this method can - * be used to read `INTEGER` data using JavaScript `BigInt`s. This method has no - * impact on database write operations where numbers and `BigInt`s are both - * supported at all times. - * @since v22.5.0 - * @param enabled Enables or disables the use of `BigInt`s when reading `INTEGER` fields from the database. - */ - setReadBigInts(enabled: boolean): void; - /** - * The source SQL text of the prepared statement. This property is a - * wrapper around [`sqlite3_sql()`](https://www.sqlite.org/c3ref/expanded_sql.html). - * @since v22.5.0 - */ - readonly sourceSQL: string; - } - interface BackupOptions { - /** - * Name of the source database. This can be `'main'` (the default primary database) or any other - * database that have been added with [`ATTACH DATABASE`](https://www.sqlite.org/lang_attach.html) - * @default 'main' - */ - source?: string | undefined; - /** - * Name of the target database. This can be `'main'` (the default primary database) or any other - * database that have been added with [`ATTACH DATABASE`](https://www.sqlite.org/lang_attach.html) - * @default 'main' - */ - target?: string | undefined; - /** - * Number of pages to be transmitted in each batch of the backup. - * @default 100 - */ - rate?: number | undefined; - /** - * An optional callback function that will be called after each backup step. The argument passed - * to this callback is an `Object` with `remainingPages` and `totalPages` properties, describing the current progress - * of the backup operation. - */ - progress?: ((progressInfo: BackupProgressInfo) => void) | undefined; - } - interface BackupProgressInfo { - totalPages: number; - remainingPages: number; - } - /** - * This method makes a database backup. This method abstracts the - * [`sqlite3_backup_init()`](https://www.sqlite.org/c3ref/backup_finish.html#sqlite3backupinit), - * [`sqlite3_backup_step()`](https://www.sqlite.org/c3ref/backup_finish.html#sqlite3backupstep) - * and [`sqlite3_backup_finish()`](https://www.sqlite.org/c3ref/backup_finish.html#sqlite3backupfinish) functions. - * - * The backed-up database can be used normally during the backup process. Mutations coming from the same connection - same - * `DatabaseSync` - object will be reflected in the backup right away. However, mutations from other connections will cause - * the backup process to restart. - * - * ```js - * import { backup, DatabaseSync } from 'node:sqlite'; - * - * const sourceDb = new DatabaseSync('source.db'); - * const totalPagesTransferred = await backup(sourceDb, 'backup.db', { - * rate: 1, // Copy one page at a time. - * progress: ({ totalPages, remainingPages }) => { - * console.log('Backup in progress', { totalPages, remainingPages }); - * }, - * }); - * - * console.log('Backup completed', totalPagesTransferred); - * ``` - * @since v23.8.0 - * @param sourceDb The database to backup. The source database must be open. - * @param path The path where the backup will be created. If the file already exists, - * the contents will be overwritten. - * @param options Optional configuration for the backup. The - * following properties are supported: - * @returns A promise that fulfills with the total number of backed-up pages upon completion, or rejects if an - * error occurs. - */ - function backup(sourceDb: DatabaseSync, path: PathLike, options?: BackupOptions): Promise; - /** - * @since v22.13.0 - */ - namespace constants { - /** - * The conflict handler is invoked with this constant when processing a DELETE or UPDATE change if a row with the required PRIMARY KEY fields is present in the database, but one or more other (non primary-key) fields modified by the update do not contain the expected "before" values. - * @since v22.14.0 - */ - const SQLITE_CHANGESET_DATA: number; - /** - * The conflict handler is invoked with this constant when processing a DELETE or UPDATE change if a row with the required PRIMARY KEY fields is not present in the database. - * @since v22.14.0 - */ - const SQLITE_CHANGESET_NOTFOUND: number; - /** - * This constant is passed to the conflict handler while processing an INSERT change if the operation would result in duplicate primary key values. - * @since v22.14.0 - */ - const SQLITE_CHANGESET_CONFLICT: number; - /** - * If foreign key handling is enabled, and applying a changeset leaves the database in a state containing foreign key violations, the conflict handler is invoked with this constant exactly once before the changeset is committed. If the conflict handler returns `SQLITE_CHANGESET_OMIT`, the changes, including those that caused the foreign key constraint violation, are committed. Or, if it returns `SQLITE_CHANGESET_ABORT`, the changeset is rolled back. - * @since v22.14.0 - */ - const SQLITE_CHANGESET_FOREIGN_KEY: number; - /** - * Conflicting changes are omitted. - * @since v22.12.0 - */ - const SQLITE_CHANGESET_OMIT: number; - /** - * Conflicting changes replace existing values. Note that this value can only be returned when the type of conflict is either `SQLITE_CHANGESET_DATA` or `SQLITE_CHANGESET_CONFLICT`. - * @since v22.12.0 - */ - const SQLITE_CHANGESET_REPLACE: number; - /** - * Abort when a change encounters a conflict and roll back database. - * @since v22.12.0 - */ - const SQLITE_CHANGESET_ABORT: number; - /** - * Deny the operation and cause an error to be returned. - * @since v24.10.0 - */ - const SQLITE_DENY: number; - /** - * Ignore the operation and continue as if it had never been requested. - * @since 24.10.0 - */ - const SQLITE_IGNORE: number; - /** - * Allow the operation to proceed normally. - * @since v24.10.0 - */ - const SQLITE_OK: number; - const SQLITE_CREATE_INDEX: number; - const SQLITE_CREATE_TABLE: number; - const SQLITE_CREATE_TEMP_INDEX: number; - const SQLITE_CREATE_TEMP_TABLE: number; - const SQLITE_CREATE_TEMP_TRIGGER: number; - const SQLITE_CREATE_TEMP_VIEW: number; - const SQLITE_CREATE_TRIGGER: number; - const SQLITE_CREATE_VIEW: number; - const SQLITE_DELETE: number; - const SQLITE_DROP_INDEX: number; - const SQLITE_DROP_TABLE: number; - const SQLITE_DROP_TEMP_INDEX: number; - const SQLITE_DROP_TEMP_TABLE: number; - const SQLITE_DROP_TEMP_TRIGGER: number; - const SQLITE_DROP_TEMP_VIEW: number; - const SQLITE_DROP_TRIGGER: number; - const SQLITE_DROP_VIEW: number; - const SQLITE_INSERT: number; - const SQLITE_PRAGMA: number; - const SQLITE_READ: number; - const SQLITE_SELECT: number; - const SQLITE_TRANSACTION: number; - const SQLITE_UPDATE: number; - const SQLITE_ATTACH: number; - const SQLITE_DETACH: number; - const SQLITE_ALTER_TABLE: number; - const SQLITE_REINDEX: number; - const SQLITE_ANALYZE: number; - const SQLITE_CREATE_VTABLE: number; - const SQLITE_DROP_VTABLE: number; - const SQLITE_FUNCTION: number; - const SQLITE_SAVEPOINT: number; - const SQLITE_COPY: number; - const SQLITE_RECURSIVE: number; - } -} diff --git a/build_vtk_bundle/node_modules/@types/node/stream.d.ts b/build_vtk_bundle/node_modules/@types/node/stream.d.ts deleted file mode 100644 index 3b38302b..00000000 --- a/build_vtk_bundle/node_modules/@types/node/stream.d.ts +++ /dev/null @@ -1,1683 +0,0 @@ -/** - * A stream is an abstract interface for working with streaming data in Node.js. - * The `node:stream` module provides an API for implementing the stream interface. - * - * There are many stream objects provided by Node.js. For instance, a [request to an HTTP server](https://nodejs.org/docs/latest-v24.x/api/http.html#class-httpincomingmessage) - * and [`process.stdout`](https://nodejs.org/docs/latest-v24.x/api/process.html#processstdout) are both stream instances. - * - * Streams can be readable, writable, or both. All streams are instances of [`EventEmitter`](https://nodejs.org/docs/latest-v24.x/api/events.html#class-eventemitter). - * - * To access the `node:stream` module: - * - * ```js - * import stream from 'node:stream'; - * ``` - * - * The `node:stream` module is useful for creating new types of stream instances. - * It is usually not necessary to use the `node:stream` module to consume streams. - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/stream.js) - */ -declare module "stream" { - import { Abortable, EventEmitter } from "node:events"; - import { Blob as NodeBlob } from "node:buffer"; - import * as streamPromises from "node:stream/promises"; - import * as streamWeb from "node:stream/web"; - - type ComposeFnParam = (source: any) => void; - - class Stream extends EventEmitter { - pipe( - destination: T, - options?: { - end?: boolean | undefined; - }, - ): T; - compose( - stream: T | ComposeFnParam | Iterable | AsyncIterable, - options?: { signal: AbortSignal }, - ): T; - } - namespace Stream { - export { Stream, streamPromises as promises }; - } - namespace Stream { - interface StreamOptions extends Abortable { - emitClose?: boolean | undefined; - highWaterMark?: number | undefined; - objectMode?: boolean | undefined; - construct?: ((this: T, callback: (error?: Error | null) => void) => void) | undefined; - destroy?: ((this: T, error: Error | null, callback: (error?: Error | null) => void) => void) | undefined; - autoDestroy?: boolean | undefined; - } - interface ReadableOptions extends StreamOptions { - encoding?: BufferEncoding | undefined; - read?: ((this: T, size: number) => void) | undefined; - } - interface ArrayOptions { - /** - * The maximum concurrent invocations of `fn` to call on the stream at once. - * @default 1 - */ - concurrency?: number | undefined; - /** Allows destroying the stream if the signal is aborted. */ - signal?: AbortSignal | undefined; - } - /** - * @since v0.9.4 - */ - class Readable extends Stream implements NodeJS.ReadableStream { - /** - * A utility method for creating Readable Streams out of iterators. - * @since v12.3.0, v10.17.0 - * @param iterable Object implementing the `Symbol.asyncIterator` or `Symbol.iterator` iterable protocol. Emits an 'error' event if a null value is passed. - * @param options Options provided to `new stream.Readable([options])`. By default, `Readable.from()` will set `options.objectMode` to `true`, unless this is explicitly opted out by setting `options.objectMode` to `false`. - */ - static from(iterable: Iterable | AsyncIterable, options?: ReadableOptions): Readable; - /** - * A utility method for creating a `Readable` from a web `ReadableStream`. - * @since v17.0.0 - */ - static fromWeb( - readableStream: streamWeb.ReadableStream, - options?: Pick, - ): Readable; - /** - * A utility method for creating a web `ReadableStream` from a `Readable`. - * @since v17.0.0 - */ - static toWeb( - streamReadable: Readable, - options?: { - strategy?: streamWeb.QueuingStrategy | undefined; - }, - ): streamWeb.ReadableStream; - /** - * Returns whether the stream has been read from or cancelled. - * @since v16.8.0 - */ - static isDisturbed(stream: Readable | NodeJS.ReadableStream): boolean; - /** - * Returns whether the stream was destroyed or errored before emitting `'end'`. - * @since v16.8.0 - */ - readonly readableAborted: boolean; - /** - * Is `true` if it is safe to call {@link read}, which means - * the stream has not been destroyed or emitted `'error'` or `'end'`. - * @since v11.4.0 - */ - readable: boolean; - /** - * Returns whether `'data'` has been emitted. - * @since v16.7.0, v14.18.0 - */ - readonly readableDidRead: boolean; - /** - * Getter for the property `encoding` of a given `Readable` stream. The `encoding` property can be set using the {@link setEncoding} method. - * @since v12.7.0 - */ - readonly readableEncoding: BufferEncoding | null; - /** - * Becomes `true` when [`'end'`](https://nodejs.org/docs/latest-v24.x/api/stream.html#event-end) event is emitted. - * @since v12.9.0 - */ - readonly readableEnded: boolean; - /** - * This property reflects the current state of a `Readable` stream as described - * in the [Three states](https://nodejs.org/docs/latest-v24.x/api/stream.html#three-states) section. - * @since v9.4.0 - */ - readonly readableFlowing: boolean | null; - /** - * Returns the value of `highWaterMark` passed when creating this `Readable`. - * @since v9.3.0 - */ - readonly readableHighWaterMark: number; - /** - * This property contains the number of bytes (or objects) in the queue - * ready to be read. The value provides introspection data regarding - * the status of the `highWaterMark`. - * @since v9.4.0 - */ - readonly readableLength: number; - /** - * Getter for the property `objectMode` of a given `Readable` stream. - * @since v12.3.0 - */ - readonly readableObjectMode: boolean; - /** - * Is `true` after `readable.destroy()` has been called. - * @since v8.0.0 - */ - destroyed: boolean; - /** - * Is `true` after `'close'` has been emitted. - * @since v18.0.0 - */ - readonly closed: boolean; - /** - * Returns error if the stream has been destroyed with an error. - * @since v18.0.0 - */ - readonly errored: Error | null; - constructor(opts?: ReadableOptions); - _construct?(callback: (error?: Error | null) => void): void; - _read(size: number): void; - /** - * The `readable.read()` method reads data out of the internal buffer and - * returns it. If no data is available to be read, `null` is returned. By default, - * the data is returned as a `Buffer` object unless an encoding has been - * specified using the `readable.setEncoding()` method or the stream is operating - * in object mode. - * - * The optional `size` argument specifies a specific number of bytes to read. If - * `size` bytes are not available to be read, `null` will be returned _unless_ the - * stream has ended, in which case all of the data remaining in the internal buffer - * will be returned. - * - * If the `size` argument is not specified, all of the data contained in the - * internal buffer will be returned. - * - * The `size` argument must be less than or equal to 1 GiB. - * - * The `readable.read()` method should only be called on `Readable` streams - * operating in paused mode. In flowing mode, `readable.read()` is called - * automatically until the internal buffer is fully drained. - * - * ```js - * const readable = getReadableStreamSomehow(); - * - * // 'readable' may be triggered multiple times as data is buffered in - * readable.on('readable', () => { - * let chunk; - * console.log('Stream is readable (new data received in buffer)'); - * // Use a loop to make sure we read all currently available data - * while (null !== (chunk = readable.read())) { - * console.log(`Read ${chunk.length} bytes of data...`); - * } - * }); - * - * // 'end' will be triggered once when there is no more data available - * readable.on('end', () => { - * console.log('Reached end of stream.'); - * }); - * ``` - * - * Each call to `readable.read()` returns a chunk of data, or `null`. The chunks - * are not concatenated. A `while` loop is necessary to consume all data - * currently in the buffer. When reading a large file `.read()` may return `null`, - * having consumed all buffered content so far, but there is still more data to - * come not yet buffered. In this case a new `'readable'` event will be emitted - * when there is more data in the buffer. Finally the `'end'` event will be - * emitted when there is no more data to come. - * - * Therefore to read a file's whole contents from a `readable`, it is necessary - * to collect chunks across multiple `'readable'` events: - * - * ```js - * const chunks = []; - * - * readable.on('readable', () => { - * let chunk; - * while (null !== (chunk = readable.read())) { - * chunks.push(chunk); - * } - * }); - * - * readable.on('end', () => { - * const content = chunks.join(''); - * }); - * ``` - * - * A `Readable` stream in object mode will always return a single item from - * a call to `readable.read(size)`, regardless of the value of the `size` argument. - * - * If the `readable.read()` method returns a chunk of data, a `'data'` event will - * also be emitted. - * - * Calling {@link read} after the `'end'` event has - * been emitted will return `null`. No runtime error will be raised. - * @since v0.9.4 - * @param size Optional argument to specify how much data to read. - */ - read(size?: number): any; - /** - * The `readable.setEncoding()` method sets the character encoding for - * data read from the `Readable` stream. - * - * By default, no encoding is assigned and stream data will be returned as `Buffer` objects. Setting an encoding causes the stream data - * to be returned as strings of the specified encoding rather than as `Buffer` objects. For instance, calling `readable.setEncoding('utf8')` will cause the - * output data to be interpreted as UTF-8 data, and passed as strings. Calling `readable.setEncoding('hex')` will cause the data to be encoded in hexadecimal - * string format. - * - * The `Readable` stream will properly handle multi-byte characters delivered - * through the stream that would otherwise become improperly decoded if simply - * pulled from the stream as `Buffer` objects. - * - * ```js - * const readable = getReadableStreamSomehow(); - * readable.setEncoding('utf8'); - * readable.on('data', (chunk) => { - * assert.equal(typeof chunk, 'string'); - * console.log('Got %d characters of string data:', chunk.length); - * }); - * ``` - * @since v0.9.4 - * @param encoding The encoding to use. - */ - setEncoding(encoding: BufferEncoding): this; - /** - * The `readable.pause()` method will cause a stream in flowing mode to stop - * emitting `'data'` events, switching out of flowing mode. Any data that - * becomes available will remain in the internal buffer. - * - * ```js - * const readable = getReadableStreamSomehow(); - * readable.on('data', (chunk) => { - * console.log(`Received ${chunk.length} bytes of data.`); - * readable.pause(); - * console.log('There will be no additional data for 1 second.'); - * setTimeout(() => { - * console.log('Now data will start flowing again.'); - * readable.resume(); - * }, 1000); - * }); - * ``` - * - * The `readable.pause()` method has no effect if there is a `'readable'` event listener. - * @since v0.9.4 - */ - pause(): this; - /** - * The `readable.resume()` method causes an explicitly paused `Readable` stream to - * resume emitting `'data'` events, switching the stream into flowing mode. - * - * The `readable.resume()` method can be used to fully consume the data from a - * stream without actually processing any of that data: - * - * ```js - * getReadableStreamSomehow() - * .resume() - * .on('end', () => { - * console.log('Reached the end, but did not read anything.'); - * }); - * ``` - * - * The `readable.resume()` method has no effect if there is a `'readable'` event listener. - * @since v0.9.4 - */ - resume(): this; - /** - * The `readable.isPaused()` method returns the current operating state of the `Readable`. - * This is used primarily by the mechanism that underlies the `readable.pipe()` method. - * In most typical cases, there will be no reason to use this method directly. - * - * ```js - * const readable = new stream.Readable(); - * - * readable.isPaused(); // === false - * readable.pause(); - * readable.isPaused(); // === true - * readable.resume(); - * readable.isPaused(); // === false - * ``` - * @since v0.11.14 - */ - isPaused(): boolean; - /** - * The `readable.unpipe()` method detaches a `Writable` stream previously attached - * using the {@link pipe} method. - * - * If the `destination` is not specified, then _all_ pipes are detached. - * - * If the `destination` is specified, but no pipe is set up for it, then - * the method does nothing. - * - * ```js - * import fs from 'node:fs'; - * const readable = getReadableStreamSomehow(); - * const writable = fs.createWriteStream('file.txt'); - * // All the data from readable goes into 'file.txt', - * // but only for the first second. - * readable.pipe(writable); - * setTimeout(() => { - * console.log('Stop writing to file.txt.'); - * readable.unpipe(writable); - * console.log('Manually close the file stream.'); - * writable.end(); - * }, 1000); - * ``` - * @since v0.9.4 - * @param destination Optional specific stream to unpipe - */ - unpipe(destination?: NodeJS.WritableStream): this; - /** - * Passing `chunk` as `null` signals the end of the stream (EOF) and behaves the - * same as `readable.push(null)`, after which no more data can be written. The EOF - * signal is put at the end of the buffer and any buffered data will still be - * flushed. - * - * The `readable.unshift()` method pushes a chunk of data back into the internal - * buffer. This is useful in certain situations where a stream is being consumed by - * code that needs to "un-consume" some amount of data that it has optimistically - * pulled out of the source, so that the data can be passed on to some other party. - * - * The `stream.unshift(chunk)` method cannot be called after the `'end'` event - * has been emitted or a runtime error will be thrown. - * - * Developers using `stream.unshift()` often should consider switching to - * use of a `Transform` stream instead. See the `API for stream implementers` section for more information. - * - * ```js - * // Pull off a header delimited by \n\n. - * // Use unshift() if we get too much. - * // Call the callback with (error, header, stream). - * import { StringDecoder } from 'node:string_decoder'; - * function parseHeader(stream, callback) { - * stream.on('error', callback); - * stream.on('readable', onReadable); - * const decoder = new StringDecoder('utf8'); - * let header = ''; - * function onReadable() { - * let chunk; - * while (null !== (chunk = stream.read())) { - * const str = decoder.write(chunk); - * if (str.includes('\n\n')) { - * // Found the header boundary. - * const split = str.split(/\n\n/); - * header += split.shift(); - * const remaining = split.join('\n\n'); - * const buf = Buffer.from(remaining, 'utf8'); - * stream.removeListener('error', callback); - * // Remove the 'readable' listener before unshifting. - * stream.removeListener('readable', onReadable); - * if (buf.length) - * stream.unshift(buf); - * // Now the body of the message can be read from the stream. - * callback(null, header, stream); - * return; - * } - * // Still reading the header. - * header += str; - * } - * } - * } - * ``` - * - * Unlike {@link push}, `stream.unshift(chunk)` will not - * end the reading process by resetting the internal reading state of the stream. - * This can cause unexpected results if `readable.unshift()` is called during a - * read (i.e. from within a {@link _read} implementation on a - * custom stream). Following the call to `readable.unshift()` with an immediate {@link push} will reset the reading state appropriately, - * however it is best to simply avoid calling `readable.unshift()` while in the - * process of performing a read. - * @since v0.9.11 - * @param chunk Chunk of data to unshift onto the read queue. For streams not operating in object mode, `chunk` must - * be a {string}, {Buffer}, {TypedArray}, {DataView} or `null`. For object mode streams, `chunk` may be any JavaScript value. - * @param encoding Encoding of string chunks. Must be a valid `Buffer` encoding, such as `'utf8'` or `'ascii'`. - */ - unshift(chunk: any, encoding?: BufferEncoding): void; - /** - * Prior to Node.js 0.10, streams did not implement the entire `node:stream` module API as it is currently defined. (See `Compatibility` for more - * information.) - * - * When using an older Node.js library that emits `'data'` events and has a {@link pause} method that is advisory only, the `readable.wrap()` method can be used to create a `Readable` - * stream that uses - * the old stream as its data source. - * - * It will rarely be necessary to use `readable.wrap()` but the method has been - * provided as a convenience for interacting with older Node.js applications and - * libraries. - * - * ```js - * import { OldReader } from './old-api-module.js'; - * import { Readable } from 'node:stream'; - * const oreader = new OldReader(); - * const myReader = new Readable().wrap(oreader); - * - * myReader.on('readable', () => { - * myReader.read(); // etc. - * }); - * ``` - * @since v0.9.4 - * @param stream An "old style" readable stream - */ - wrap(stream: NodeJS.ReadableStream): this; - push(chunk: any, encoding?: BufferEncoding): boolean; - /** - * The iterator created by this method gives users the option to cancel the destruction - * of the stream if the `for await...of` loop is exited by `return`, `break`, or `throw`, - * or if the iterator should destroy the stream if the stream emitted an error during iteration. - * @since v16.3.0 - * @param options.destroyOnReturn When set to `false`, calling `return` on the async iterator, - * or exiting a `for await...of` iteration using a `break`, `return`, or `throw` will not destroy the stream. - * **Default: `true`**. - */ - iterator(options?: { destroyOnReturn?: boolean }): NodeJS.AsyncIterator; - /** - * This method allows mapping over the stream. The *fn* function will be called for every chunk in the stream. - * If the *fn* function returns a promise - that promise will be `await`ed before being passed to the result stream. - * @since v17.4.0, v16.14.0 - * @param fn a function to map over every chunk in the stream. Async or not. - * @returns a stream mapped with the function *fn*. - */ - map(fn: (data: any, options?: Pick) => any, options?: ArrayOptions): Readable; - /** - * This method allows filtering the stream. For each chunk in the stream the *fn* function will be called - * and if it returns a truthy value, the chunk will be passed to the result stream. - * If the *fn* function returns a promise - that promise will be `await`ed. - * @since v17.4.0, v16.14.0 - * @param fn a function to filter chunks from the stream. Async or not. - * @returns a stream filtered with the predicate *fn*. - */ - filter( - fn: (data: any, options?: Pick) => boolean | Promise, - options?: ArrayOptions, - ): Readable; - /** - * This method allows iterating a stream. For each chunk in the stream the *fn* function will be called. - * If the *fn* function returns a promise - that promise will be `await`ed. - * - * This method is different from `for await...of` loops in that it can optionally process chunks concurrently. - * In addition, a `forEach` iteration can only be stopped by having passed a `signal` option - * and aborting the related AbortController while `for await...of` can be stopped with `break` or `return`. - * In either case the stream will be destroyed. - * - * This method is different from listening to the `'data'` event in that it uses the `readable` event - * in the underlying machinary and can limit the number of concurrent *fn* calls. - * @since v17.5.0 - * @param fn a function to call on each chunk of the stream. Async or not. - * @returns a promise for when the stream has finished. - */ - forEach( - fn: (data: any, options?: Pick) => void | Promise, - options?: ArrayOptions, - ): Promise; - /** - * This method allows easily obtaining the contents of a stream. - * - * As this method reads the entire stream into memory, it negates the benefits of streams. It's intended - * for interoperability and convenience, not as the primary way to consume streams. - * @since v17.5.0 - * @returns a promise containing an array with the contents of the stream. - */ - toArray(options?: Pick): Promise; - /** - * This method is similar to `Array.prototype.some` and calls *fn* on each chunk in the stream - * until the awaited return value is `true` (or any truthy value). Once an *fn* call on a chunk - * `await`ed return value is truthy, the stream is destroyed and the promise is fulfilled with `true`. - * If none of the *fn* calls on the chunks return a truthy value, the promise is fulfilled with `false`. - * @since v17.5.0 - * @param fn a function to call on each chunk of the stream. Async or not. - * @returns a promise evaluating to `true` if *fn* returned a truthy value for at least one of the chunks. - */ - some( - fn: (data: any, options?: Pick) => boolean | Promise, - options?: ArrayOptions, - ): Promise; - /** - * This method is similar to `Array.prototype.find` and calls *fn* on each chunk in the stream - * to find a chunk with a truthy value for *fn*. Once an *fn* call's awaited return value is truthy, - * the stream is destroyed and the promise is fulfilled with value for which *fn* returned a truthy value. - * If all of the *fn* calls on the chunks return a falsy value, the promise is fulfilled with `undefined`. - * @since v17.5.0 - * @param fn a function to call on each chunk of the stream. Async or not. - * @returns a promise evaluating to the first chunk for which *fn* evaluated with a truthy value, - * or `undefined` if no element was found. - */ - find( - fn: (data: any, options?: Pick) => data is T, - options?: ArrayOptions, - ): Promise; - find( - fn: (data: any, options?: Pick) => boolean | Promise, - options?: ArrayOptions, - ): Promise; - /** - * This method is similar to `Array.prototype.every` and calls *fn* on each chunk in the stream - * to check if all awaited return values are truthy value for *fn*. Once an *fn* call on a chunk - * `await`ed return value is falsy, the stream is destroyed and the promise is fulfilled with `false`. - * If all of the *fn* calls on the chunks return a truthy value, the promise is fulfilled with `true`. - * @since v17.5.0 - * @param fn a function to call on each chunk of the stream. Async or not. - * @returns a promise evaluating to `true` if *fn* returned a truthy value for every one of the chunks. - */ - every( - fn: (data: any, options?: Pick) => boolean | Promise, - options?: ArrayOptions, - ): Promise; - /** - * This method returns a new stream by applying the given callback to each chunk of the stream - * and then flattening the result. - * - * It is possible to return a stream or another iterable or async iterable from *fn* and the result streams - * will be merged (flattened) into the returned stream. - * @since v17.5.0 - * @param fn a function to map over every chunk in the stream. May be async. May be a stream or generator. - * @returns a stream flat-mapped with the function *fn*. - */ - flatMap(fn: (data: any, options?: Pick) => any, options?: ArrayOptions): Readable; - /** - * This method returns a new stream with the first *limit* chunks dropped from the start. - * @since v17.5.0 - * @param limit the number of chunks to drop from the readable. - * @returns a stream with *limit* chunks dropped from the start. - */ - drop(limit: number, options?: Pick): Readable; - /** - * This method returns a new stream with the first *limit* chunks. - * @since v17.5.0 - * @param limit the number of chunks to take from the readable. - * @returns a stream with *limit* chunks taken. - */ - take(limit: number, options?: Pick): Readable; - /** - * This method returns a new stream with chunks of the underlying stream paired with a counter - * in the form `[index, chunk]`. The first index value is `0` and it increases by 1 for each chunk produced. - * @since v17.5.0 - * @returns a stream of indexed pairs. - */ - asIndexedPairs(options?: Pick): Readable; - /** - * This method calls *fn* on each chunk of the stream in order, passing it the result from the calculation - * on the previous element. It returns a promise for the final value of the reduction. - * - * If no *initial* value is supplied the first chunk of the stream is used as the initial value. - * If the stream is empty, the promise is rejected with a `TypeError` with the `ERR_INVALID_ARGS` code property. - * - * The reducer function iterates the stream element-by-element which means that there is no *concurrency* parameter - * or parallelism. To perform a reduce concurrently, you can extract the async function to `readable.map` method. - * @since v17.5.0 - * @param fn a reducer function to call over every chunk in the stream. Async or not. - * @param initial the initial value to use in the reduction. - * @returns a promise for the final value of the reduction. - */ - reduce( - fn: (previous: any, data: any, options?: Pick) => T, - initial?: undefined, - options?: Pick, - ): Promise; - reduce( - fn: (previous: T, data: any, options?: Pick) => T, - initial: T, - options?: Pick, - ): Promise; - _destroy(error: Error | null, callback: (error?: Error | null) => void): void; - /** - * Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'` event (unless `emitClose` is set to `false`). After this call, the readable - * stream will release any internal resources and subsequent calls to `push()` will be ignored. - * - * Once `destroy()` has been called any further calls will be a no-op and no - * further errors except from `_destroy()` may be emitted as `'error'`. - * - * Implementors should not override this method, but instead implement `readable._destroy()`. - * @since v8.0.0 - * @param error Error which will be passed as payload in `'error'` event - */ - destroy(error?: Error): this; - /** - * @returns `AsyncIterator` to fully consume the stream. - * @since v10.0.0 - */ - [Symbol.asyncIterator](): NodeJS.AsyncIterator; - /** - * Calls `readable.destroy()` with an `AbortError` and returns - * a promise that fulfills when the stream is finished. - * @since v20.4.0 - */ - [Symbol.asyncDispose](): Promise; - /** - * Event emitter - * The defined events on documents including: - * 1. close - * 2. data - * 3. end - * 4. error - * 5. pause - * 6. readable - * 7. resume - */ - addListener(event: "close", listener: () => void): this; - addListener(event: "data", listener: (chunk: any) => void): this; - addListener(event: "end", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "pause", listener: () => void): this; - addListener(event: "readable", listener: () => void): this; - addListener(event: "resume", listener: () => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "close"): boolean; - emit(event: "data", chunk: any): boolean; - emit(event: "end"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "pause"): boolean; - emit(event: "readable"): boolean; - emit(event: "resume"): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "close", listener: () => void): this; - on(event: "data", listener: (chunk: any) => void): this; - on(event: "end", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "pause", listener: () => void): this; - on(event: "readable", listener: () => void): this; - on(event: "resume", listener: () => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "data", listener: (chunk: any) => void): this; - once(event: "end", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "pause", listener: () => void): this; - once(event: "readable", listener: () => void): this; - once(event: "resume", listener: () => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "data", listener: (chunk: any) => void): this; - prependListener(event: "end", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "pause", listener: () => void): this; - prependListener(event: "readable", listener: () => void): this; - prependListener(event: "resume", listener: () => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "data", listener: (chunk: any) => void): this; - prependOnceListener(event: "end", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "pause", listener: () => void): this; - prependOnceListener(event: "readable", listener: () => void): this; - prependOnceListener(event: "resume", listener: () => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - removeListener(event: "close", listener: () => void): this; - removeListener(event: "data", listener: (chunk: any) => void): this; - removeListener(event: "end", listener: () => void): this; - removeListener(event: "error", listener: (err: Error) => void): this; - removeListener(event: "pause", listener: () => void): this; - removeListener(event: "readable", listener: () => void): this; - removeListener(event: "resume", listener: () => void): this; - removeListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - interface WritableOptions extends StreamOptions { - decodeStrings?: boolean | undefined; - defaultEncoding?: BufferEncoding | undefined; - write?: - | (( - this: T, - chunk: any, - encoding: BufferEncoding, - callback: (error?: Error | null) => void, - ) => void) - | undefined; - writev?: - | (( - this: T, - chunks: Array<{ - chunk: any; - encoding: BufferEncoding; - }>, - callback: (error?: Error | null) => void, - ) => void) - | undefined; - final?: ((this: T, callback: (error?: Error | null) => void) => void) | undefined; - } - /** - * @since v0.9.4 - */ - class Writable extends Stream implements NodeJS.WritableStream { - /** - * A utility method for creating a `Writable` from a web `WritableStream`. - * @since v17.0.0 - */ - static fromWeb( - writableStream: streamWeb.WritableStream, - options?: Pick, - ): Writable; - /** - * A utility method for creating a web `WritableStream` from a `Writable`. - * @since v17.0.0 - */ - static toWeb(streamWritable: Writable): streamWeb.WritableStream; - /** - * Is `true` if it is safe to call `writable.write()`, which means - * the stream has not been destroyed, errored, or ended. - * @since v11.4.0 - */ - readonly writable: boolean; - /** - * Returns whether the stream was destroyed or errored before emitting `'finish'`. - * @since v18.0.0, v16.17.0 - */ - readonly writableAborted: boolean; - /** - * Is `true` after `writable.end()` has been called. This property - * does not indicate whether the data has been flushed, for this use `writable.writableFinished` instead. - * @since v12.9.0 - */ - readonly writableEnded: boolean; - /** - * Is set to `true` immediately before the `'finish'` event is emitted. - * @since v12.6.0 - */ - readonly writableFinished: boolean; - /** - * Return the value of `highWaterMark` passed when creating this `Writable`. - * @since v9.3.0 - */ - readonly writableHighWaterMark: number; - /** - * This property contains the number of bytes (or objects) in the queue - * ready to be written. The value provides introspection data regarding - * the status of the `highWaterMark`. - * @since v9.4.0 - */ - readonly writableLength: number; - /** - * Getter for the property `objectMode` of a given `Writable` stream. - * @since v12.3.0 - */ - readonly writableObjectMode: boolean; - /** - * Number of times `writable.uncork()` needs to be - * called in order to fully uncork the stream. - * @since v13.2.0, v12.16.0 - */ - readonly writableCorked: number; - /** - * Is `true` after `writable.destroy()` has been called. - * @since v8.0.0 - */ - destroyed: boolean; - /** - * Is `true` after `'close'` has been emitted. - * @since v18.0.0 - */ - readonly closed: boolean; - /** - * Returns error if the stream has been destroyed with an error. - * @since v18.0.0 - */ - readonly errored: Error | null; - /** - * Is `true` if the stream's buffer has been full and stream will emit `'drain'`. - * @since v15.2.0, v14.17.0 - */ - readonly writableNeedDrain: boolean; - constructor(opts?: WritableOptions); - _write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void; - _writev?( - chunks: Array<{ - chunk: any; - encoding: BufferEncoding; - }>, - callback: (error?: Error | null) => void, - ): void; - _construct?(callback: (error?: Error | null) => void): void; - _destroy(error: Error | null, callback: (error?: Error | null) => void): void; - _final(callback: (error?: Error | null) => void): void; - /** - * The `writable.write()` method writes some data to the stream, and calls the - * supplied `callback` once the data has been fully handled. If an error - * occurs, the `callback` will be called with the error as its - * first argument. The `callback` is called asynchronously and before `'error'` is - * emitted. - * - * The return value is `true` if the internal buffer is less than the `highWaterMark` configured when the stream was created after admitting `chunk`. - * If `false` is returned, further attempts to write data to the stream should - * stop until the `'drain'` event is emitted. - * - * While a stream is not draining, calls to `write()` will buffer `chunk`, and - * return false. Once all currently buffered chunks are drained (accepted for - * delivery by the operating system), the `'drain'` event will be emitted. - * Once `write()` returns false, do not write more chunks - * until the `'drain'` event is emitted. While calling `write()` on a stream that - * is not draining is allowed, Node.js will buffer all written chunks until - * maximum memory usage occurs, at which point it will abort unconditionally. - * Even before it aborts, high memory usage will cause poor garbage collector - * performance and high RSS (which is not typically released back to the system, - * even after the memory is no longer required). Since TCP sockets may never - * drain if the remote peer does not read the data, writing a socket that is - * not draining may lead to a remotely exploitable vulnerability. - * - * Writing data while the stream is not draining is particularly - * problematic for a `Transform`, because the `Transform` streams are paused - * by default until they are piped or a `'data'` or `'readable'` event handler - * is added. - * - * If the data to be written can be generated or fetched on demand, it is - * recommended to encapsulate the logic into a `Readable` and use {@link pipe}. However, if calling `write()` is preferred, it is - * possible to respect backpressure and avoid memory issues using the `'drain'` event: - * - * ```js - * function write(data, cb) { - * if (!stream.write(data)) { - * stream.once('drain', cb); - * } else { - * process.nextTick(cb); - * } - * } - * - * // Wait for cb to be called before doing any other write. - * write('hello', () => { - * console.log('Write completed, do more writes now.'); - * }); - * ``` - * - * A `Writable` stream in object mode will always ignore the `encoding` argument. - * @since v0.9.4 - * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer}, - * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`. - * @param [encoding='utf8'] The encoding, if `chunk` is a string. - * @param callback Callback for when this chunk of data is flushed. - * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - write(chunk: any, callback?: (error: Error | null | undefined) => void): boolean; - write(chunk: any, encoding: BufferEncoding, callback?: (error: Error | null | undefined) => void): boolean; - /** - * The `writable.setDefaultEncoding()` method sets the default `encoding` for a `Writable` stream. - * @since v0.11.15 - * @param encoding The new default encoding - */ - setDefaultEncoding(encoding: BufferEncoding): this; - /** - * Calling the `writable.end()` method signals that no more data will be written - * to the `Writable`. The optional `chunk` and `encoding` arguments allow one - * final additional chunk of data to be written immediately before closing the - * stream. - * - * Calling the {@link write} method after calling {@link end} will raise an error. - * - * ```js - * // Write 'hello, ' and then end with 'world!'. - * import fs from 'node:fs'; - * const file = fs.createWriteStream('example.txt'); - * file.write('hello, '); - * file.end('world!'); - * // Writing more now is not allowed! - * ``` - * @since v0.9.4 - * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer}, - * {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`. - * @param encoding The encoding if `chunk` is a string - * @param callback Callback for when the stream is finished. - */ - end(cb?: () => void): this; - end(chunk: any, cb?: () => void): this; - end(chunk: any, encoding: BufferEncoding, cb?: () => void): this; - /** - * The `writable.cork()` method forces all written data to be buffered in memory. - * The buffered data will be flushed when either the {@link uncork} or {@link end} methods are called. - * - * The primary intent of `writable.cork()` is to accommodate a situation in which - * several small chunks are written to the stream in rapid succession. Instead of - * immediately forwarding them to the underlying destination, `writable.cork()` buffers all the chunks until `writable.uncork()` is called, which will pass them - * all to `writable._writev()`, if present. This prevents a head-of-line blocking - * situation where data is being buffered while waiting for the first small chunk - * to be processed. However, use of `writable.cork()` without implementing `writable._writev()` may have an adverse effect on throughput. - * - * See also: `writable.uncork()`, `writable._writev()`. - * @since v0.11.2 - */ - cork(): void; - /** - * The `writable.uncork()` method flushes all data buffered since {@link cork} was called. - * - * When using `writable.cork()` and `writable.uncork()` to manage the buffering - * of writes to a stream, defer calls to `writable.uncork()` using `process.nextTick()`. Doing so allows batching of all `writable.write()` calls that occur within a given Node.js event - * loop phase. - * - * ```js - * stream.cork(); - * stream.write('some '); - * stream.write('data '); - * process.nextTick(() => stream.uncork()); - * ``` - * - * If the `writable.cork()` method is called multiple times on a stream, the - * same number of calls to `writable.uncork()` must be called to flush the buffered - * data. - * - * ```js - * stream.cork(); - * stream.write('some '); - * stream.cork(); - * stream.write('data '); - * process.nextTick(() => { - * stream.uncork(); - * // The data will not be flushed until uncork() is called a second time. - * stream.uncork(); - * }); - * ``` - * - * See also: `writable.cork()`. - * @since v0.11.2 - */ - uncork(): void; - /** - * Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'` event (unless `emitClose` is set to `false`). After this call, the writable - * stream has ended and subsequent calls to `write()` or `end()` will result in - * an `ERR_STREAM_DESTROYED` error. - * This is a destructive and immediate way to destroy a stream. Previous calls to `write()` may not have drained, and may trigger an `ERR_STREAM_DESTROYED` error. - * Use `end()` instead of destroy if data should flush before close, or wait for - * the `'drain'` event before destroying the stream. - * - * Once `destroy()` has been called any further calls will be a no-op and no - * further errors except from `_destroy()` may be emitted as `'error'`. - * - * Implementors should not override this method, - * but instead implement `writable._destroy()`. - * @since v8.0.0 - * @param error Optional, an error to emit with `'error'` event. - */ - destroy(error?: Error): this; - /** - * Calls `writable.destroy()` with an `AbortError` and returns - * a promise that fulfills when the stream is finished. - * @since v22.4.0, v20.16.0 - */ - [Symbol.asyncDispose](): Promise; - /** - * Event emitter - * The defined events on documents including: - * 1. close - * 2. drain - * 3. error - * 4. finish - * 5. pipe - * 6. unpipe - */ - addListener(event: "close", listener: () => void): this; - addListener(event: "drain", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "finish", listener: () => void): this; - addListener(event: "pipe", listener: (src: Readable) => void): this; - addListener(event: "unpipe", listener: (src: Readable) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "close"): boolean; - emit(event: "drain"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "finish"): boolean; - emit(event: "pipe", src: Readable): boolean; - emit(event: "unpipe", src: Readable): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "close", listener: () => void): this; - on(event: "drain", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "finish", listener: () => void): this; - on(event: "pipe", listener: (src: Readable) => void): this; - on(event: "unpipe", listener: (src: Readable) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "drain", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "finish", listener: () => void): this; - once(event: "pipe", listener: (src: Readable) => void): this; - once(event: "unpipe", listener: (src: Readable) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "drain", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "finish", listener: () => void): this; - prependListener(event: "pipe", listener: (src: Readable) => void): this; - prependListener(event: "unpipe", listener: (src: Readable) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "drain", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "finish", listener: () => void): this; - prependOnceListener(event: "pipe", listener: (src: Readable) => void): this; - prependOnceListener(event: "unpipe", listener: (src: Readable) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - removeListener(event: "close", listener: () => void): this; - removeListener(event: "drain", listener: () => void): this; - removeListener(event: "error", listener: (err: Error) => void): this; - removeListener(event: "finish", listener: () => void): this; - removeListener(event: "pipe", listener: (src: Readable) => void): this; - removeListener(event: "unpipe", listener: (src: Readable) => void): this; - removeListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - interface DuplexOptions extends ReadableOptions, WritableOptions { - allowHalfOpen?: boolean | undefined; - readableObjectMode?: boolean | undefined; - writableObjectMode?: boolean | undefined; - readableHighWaterMark?: number | undefined; - writableHighWaterMark?: number | undefined; - writableCorked?: number | undefined; - } - /** - * Duplex streams are streams that implement both the `Readable` and `Writable` interfaces. - * - * Examples of `Duplex` streams include: - * - * * `TCP sockets` - * * `zlib streams` - * * `crypto streams` - * @since v0.9.4 - */ - class Duplex extends Stream implements NodeJS.ReadWriteStream { - /** - * If `false` then the stream will automatically end the writable side when the - * readable side ends. Set initially by the `allowHalfOpen` constructor option, - * which defaults to `true`. - * - * This can be changed manually to change the half-open behavior of an existing - * `Duplex` stream instance, but must be changed before the `'end'` event is emitted. - * @since v0.9.4 - */ - allowHalfOpen: boolean; - constructor(opts?: DuplexOptions); - /** - * A utility method for creating duplex streams. - * - * - `Stream` converts writable stream into writable `Duplex` and readable stream - * to `Duplex`. - * - `Blob` converts into readable `Duplex`. - * - `string` converts into readable `Duplex`. - * - `ArrayBuffer` converts into readable `Duplex`. - * - `AsyncIterable` converts into a readable `Duplex`. Cannot yield `null`. - * - `AsyncGeneratorFunction` converts into a readable/writable transform - * `Duplex`. Must take a source `AsyncIterable` as first parameter. Cannot yield - * `null`. - * - `AsyncFunction` converts into a writable `Duplex`. Must return - * either `null` or `undefined` - * - `Object ({ writable, readable })` converts `readable` and - * `writable` into `Stream` and then combines them into `Duplex` where the - * `Duplex` will write to the `writable` and read from the `readable`. - * - `Promise` converts into readable `Duplex`. Value `null` is ignored. - * - * @since v16.8.0 - */ - static from( - src: - | Stream - | NodeBlob - | ArrayBuffer - | string - | Iterable - | AsyncIterable - | AsyncGeneratorFunction - | Promise - | Object, - ): Duplex; - /** - * A utility method for creating a web `ReadableStream` and `WritableStream` from a `Duplex`. - * @since v17.0.0 - */ - static toWeb(streamDuplex: Duplex): { - readable: streamWeb.ReadableStream; - writable: streamWeb.WritableStream; - }; - /** - * A utility method for creating a `Duplex` from a web `ReadableStream` and `WritableStream`. - * @since v17.0.0 - */ - static fromWeb( - duplexStream: { - readable: streamWeb.ReadableStream; - writable: streamWeb.WritableStream; - }, - options?: Pick< - DuplexOptions, - "allowHalfOpen" | "decodeStrings" | "encoding" | "highWaterMark" | "objectMode" | "signal" - >, - ): Duplex; - /** - * Event emitter - * The defined events on documents including: - * 1. close - * 2. data - * 3. drain - * 4. end - * 5. error - * 6. finish - * 7. pause - * 8. pipe - * 9. readable - * 10. resume - * 11. unpipe - */ - addListener(event: "close", listener: () => void): this; - addListener(event: "data", listener: (chunk: any) => void): this; - addListener(event: "drain", listener: () => void): this; - addListener(event: "end", listener: () => void): this; - addListener(event: "error", listener: (err: Error) => void): this; - addListener(event: "finish", listener: () => void): this; - addListener(event: "pause", listener: () => void): this; - addListener(event: "pipe", listener: (src: Readable) => void): this; - addListener(event: "readable", listener: () => void): this; - addListener(event: "resume", listener: () => void): this; - addListener(event: "unpipe", listener: (src: Readable) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: "close"): boolean; - emit(event: "data", chunk: any): boolean; - emit(event: "drain"): boolean; - emit(event: "end"): boolean; - emit(event: "error", err: Error): boolean; - emit(event: "finish"): boolean; - emit(event: "pause"): boolean; - emit(event: "pipe", src: Readable): boolean; - emit(event: "readable"): boolean; - emit(event: "resume"): boolean; - emit(event: "unpipe", src: Readable): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "close", listener: () => void): this; - on(event: "data", listener: (chunk: any) => void): this; - on(event: "drain", listener: () => void): this; - on(event: "end", listener: () => void): this; - on(event: "error", listener: (err: Error) => void): this; - on(event: "finish", listener: () => void): this; - on(event: "pause", listener: () => void): this; - on(event: "pipe", listener: (src: Readable) => void): this; - on(event: "readable", listener: () => void): this; - on(event: "resume", listener: () => void): this; - on(event: "unpipe", listener: (src: Readable) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: "close", listener: () => void): this; - once(event: "data", listener: (chunk: any) => void): this; - once(event: "drain", listener: () => void): this; - once(event: "end", listener: () => void): this; - once(event: "error", listener: (err: Error) => void): this; - once(event: "finish", listener: () => void): this; - once(event: "pause", listener: () => void): this; - once(event: "pipe", listener: (src: Readable) => void): this; - once(event: "readable", listener: () => void): this; - once(event: "resume", listener: () => void): this; - once(event: "unpipe", listener: (src: Readable) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: "close", listener: () => void): this; - prependListener(event: "data", listener: (chunk: any) => void): this; - prependListener(event: "drain", listener: () => void): this; - prependListener(event: "end", listener: () => void): this; - prependListener(event: "error", listener: (err: Error) => void): this; - prependListener(event: "finish", listener: () => void): this; - prependListener(event: "pause", listener: () => void): this; - prependListener(event: "pipe", listener: (src: Readable) => void): this; - prependListener(event: "readable", listener: () => void): this; - prependListener(event: "resume", listener: () => void): this; - prependListener(event: "unpipe", listener: (src: Readable) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: "close", listener: () => void): this; - prependOnceListener(event: "data", listener: (chunk: any) => void): this; - prependOnceListener(event: "drain", listener: () => void): this; - prependOnceListener(event: "end", listener: () => void): this; - prependOnceListener(event: "error", listener: (err: Error) => void): this; - prependOnceListener(event: "finish", listener: () => void): this; - prependOnceListener(event: "pause", listener: () => void): this; - prependOnceListener(event: "pipe", listener: (src: Readable) => void): this; - prependOnceListener(event: "readable", listener: () => void): this; - prependOnceListener(event: "resume", listener: () => void): this; - prependOnceListener(event: "unpipe", listener: (src: Readable) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - removeListener(event: "close", listener: () => void): this; - removeListener(event: "data", listener: (chunk: any) => void): this; - removeListener(event: "drain", listener: () => void): this; - removeListener(event: "end", listener: () => void): this; - removeListener(event: "error", listener: (err: Error) => void): this; - removeListener(event: "finish", listener: () => void): this; - removeListener(event: "pause", listener: () => void): this; - removeListener(event: "pipe", listener: (src: Readable) => void): this; - removeListener(event: "readable", listener: () => void): this; - removeListener(event: "resume", listener: () => void): this; - removeListener(event: "unpipe", listener: (src: Readable) => void): this; - removeListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - interface Duplex extends Readable, Writable {} - /** - * The utility function `duplexPair` returns an Array with two items, - * each being a `Duplex` stream connected to the other side: - * - * ```js - * const [ sideA, sideB ] = duplexPair(); - * ``` - * - * Whatever is written to one stream is made readable on the other. It provides - * behavior analogous to a network connection, where the data written by the client - * becomes readable by the server, and vice-versa. - * - * The Duplex streams are symmetrical; one or the other may be used without any - * difference in behavior. - * @param options A value to pass to both {@link Duplex} constructors, - * to set options such as buffering. - * @since v22.6.0 - */ - function duplexPair(options?: DuplexOptions): [Duplex, Duplex]; - type TransformCallback = (error?: Error | null, data?: any) => void; - interface TransformOptions extends DuplexOptions { - transform?: - | ((this: T, chunk: any, encoding: BufferEncoding, callback: TransformCallback) => void) - | undefined; - flush?: ((this: T, callback: TransformCallback) => void) | undefined; - } - /** - * Transform streams are `Duplex` streams where the output is in some way - * related to the input. Like all `Duplex` streams, `Transform` streams - * implement both the `Readable` and `Writable` interfaces. - * - * Examples of `Transform` streams include: - * - * * `zlib streams` - * * `crypto streams` - * @since v0.9.4 - */ - class Transform extends Duplex { - constructor(opts?: TransformOptions); - _transform(chunk: any, encoding: BufferEncoding, callback: TransformCallback): void; - _flush(callback: TransformCallback): void; - } - /** - * The `stream.PassThrough` class is a trivial implementation of a `Transform` stream that simply passes the input bytes across to the output. Its purpose is - * primarily for examples and testing, but there are some use cases where `stream.PassThrough` is useful as a building block for novel sorts of streams. - */ - class PassThrough extends Transform {} - /** - * A stream to attach a signal to. - * - * Attaches an AbortSignal to a readable or writeable stream. This lets code - * control stream destruction using an `AbortController`. - * - * Calling `abort` on the `AbortController` corresponding to the passed `AbortSignal` will behave the same way as calling `.destroy(new AbortError())` on the - * stream, and `controller.error(new AbortError())` for webstreams. - * - * ```js - * import fs from 'node:fs'; - * - * const controller = new AbortController(); - * const read = addAbortSignal( - * controller.signal, - * fs.createReadStream(('object.json')), - * ); - * // Later, abort the operation closing the stream - * controller.abort(); - * ``` - * - * Or using an `AbortSignal` with a readable stream as an async iterable: - * - * ```js - * const controller = new AbortController(); - * setTimeout(() => controller.abort(), 10_000); // set a timeout - * const stream = addAbortSignal( - * controller.signal, - * fs.createReadStream(('object.json')), - * ); - * (async () => { - * try { - * for await (const chunk of stream) { - * await process(chunk); - * } - * } catch (e) { - * if (e.name === 'AbortError') { - * // The operation was cancelled - * } else { - * throw e; - * } - * } - * })(); - * ``` - * - * Or using an `AbortSignal` with a ReadableStream: - * - * ```js - * const controller = new AbortController(); - * const rs = new ReadableStream({ - * start(controller) { - * controller.enqueue('hello'); - * controller.enqueue('world'); - * controller.close(); - * }, - * }); - * - * addAbortSignal(controller.signal, rs); - * - * finished(rs, (err) => { - * if (err) { - * if (err.name === 'AbortError') { - * // The operation was cancelled - * } - * } - * }); - * - * const reader = rs.getReader(); - * - * reader.read().then(({ value, done }) => { - * console.log(value); // hello - * console.log(done); // false - * controller.abort(); - * }); - * ``` - * @since v15.4.0 - * @param signal A signal representing possible cancellation - * @param stream A stream to attach a signal to. - */ - function addAbortSignal(signal: AbortSignal, stream: T): T; - /** - * Returns the default highWaterMark used by streams. - * Defaults to `65536` (64 KiB), or `16` for `objectMode`. - * @since v19.9.0 - */ - function getDefaultHighWaterMark(objectMode: boolean): number; - /** - * Sets the default highWaterMark used by streams. - * @since v19.9.0 - * @param value highWaterMark value - */ - function setDefaultHighWaterMark(objectMode: boolean, value: number): void; - interface FinishedOptions extends Abortable { - error?: boolean | undefined; - readable?: boolean | undefined; - writable?: boolean | undefined; - } - /** - * A readable and/or writable stream/webstream. - * - * A function to get notified when a stream is no longer readable, writable - * or has experienced an error or a premature close event. - * - * ```js - * import { finished } from 'node:stream'; - * import fs from 'node:fs'; - * - * const rs = fs.createReadStream('archive.tar'); - * - * finished(rs, (err) => { - * if (err) { - * console.error('Stream failed.', err); - * } else { - * console.log('Stream is done reading.'); - * } - * }); - * - * rs.resume(); // Drain the stream. - * ``` - * - * Especially useful in error handling scenarios where a stream is destroyed - * prematurely (like an aborted HTTP request), and will not emit `'end'` or `'finish'`. - * - * The `finished` API provides [`promise version`](https://nodejs.org/docs/latest-v24.x/api/stream.html#streamfinishedstream-options). - * - * `stream.finished()` leaves dangling event listeners (in particular `'error'`, `'end'`, `'finish'` and `'close'`) after `callback` has been - * invoked. The reason for this is so that unexpected `'error'` events (due to - * incorrect stream implementations) do not cause unexpected crashes. - * If this is unwanted behavior then the returned cleanup function needs to be - * invoked in the callback: - * - * ```js - * const cleanup = finished(rs, (err) => { - * cleanup(); - * // ... - * }); - * ``` - * @since v10.0.0 - * @param stream A readable and/or writable stream. - * @param callback A callback function that takes an optional error argument. - * @returns A cleanup function which removes all registered listeners. - */ - function finished( - stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, - options: FinishedOptions, - callback: (err?: NodeJS.ErrnoException | null) => void, - ): () => void; - function finished( - stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, - callback: (err?: NodeJS.ErrnoException | null) => void, - ): () => void; - namespace finished { - function __promisify__( - stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, - options?: FinishedOptions, - ): Promise; - } - type PipelineSourceFunction = () => Iterable | AsyncIterable; - type PipelineSource = Iterable | AsyncIterable | NodeJS.ReadableStream | PipelineSourceFunction; - type PipelineTransform, U> = - | NodeJS.ReadWriteStream - | (( - source: S extends (...args: any[]) => Iterable | AsyncIterable ? AsyncIterable - : S, - ) => AsyncIterable); - type PipelineTransformSource = PipelineSource | PipelineTransform; - type PipelineDestinationIterableFunction = (source: AsyncIterable) => AsyncIterable; - type PipelineDestinationPromiseFunction = (source: AsyncIterable) => Promise

; - type PipelineDestination, P> = S extends - PipelineTransformSource ? - | NodeJS.WritableStream - | PipelineDestinationIterableFunction - | PipelineDestinationPromiseFunction - : never; - type PipelineCallback> = S extends - PipelineDestinationPromiseFunction ? (err: NodeJS.ErrnoException | null, value: P) => void - : (err: NodeJS.ErrnoException | null) => void; - type PipelinePromise> = S extends - PipelineDestinationPromiseFunction ? Promise

: Promise; - interface PipelineOptions { - signal?: AbortSignal | undefined; - end?: boolean | undefined; - } - /** - * A module method to pipe between streams and generators forwarding errors and - * properly cleaning up and provide a callback when the pipeline is complete. - * - * ```js - * import { pipeline } from 'node:stream'; - * import fs from 'node:fs'; - * import zlib from 'node:zlib'; - * - * // Use the pipeline API to easily pipe a series of streams - * // together and get notified when the pipeline is fully done. - * - * // A pipeline to gzip a potentially huge tar file efficiently: - * - * pipeline( - * fs.createReadStream('archive.tar'), - * zlib.createGzip(), - * fs.createWriteStream('archive.tar.gz'), - * (err) => { - * if (err) { - * console.error('Pipeline failed.', err); - * } else { - * console.log('Pipeline succeeded.'); - * } - * }, - * ); - * ``` - * - * The `pipeline` API provides a [`promise version`](https://nodejs.org/docs/latest-v24.x/api/stream.html#streampipelinesource-transforms-destination-options). - * - * `stream.pipeline()` will call `stream.destroy(err)` on all streams except: - * - * * `Readable` streams which have emitted `'end'` or `'close'`. - * * `Writable` streams which have emitted `'finish'` or `'close'`. - * - * `stream.pipeline()` leaves dangling event listeners on the streams - * after the `callback` has been invoked. In the case of reuse of streams after - * failure, this can cause event listener leaks and swallowed errors. If the last - * stream is readable, dangling event listeners will be removed so that the last - * stream can be consumed later. - * - * `stream.pipeline()` closes all the streams when an error is raised. - * The `IncomingRequest` usage with `pipeline` could lead to an unexpected behavior - * once it would destroy the socket without sending the expected response. - * See the example below: - * - * ```js - * import fs from 'node:fs'; - * import http from 'node:http'; - * import { pipeline } from 'node:stream'; - * - * const server = http.createServer((req, res) => { - * const fileStream = fs.createReadStream('./fileNotExist.txt'); - * pipeline(fileStream, res, (err) => { - * if (err) { - * console.log(err); // No such file - * // this message can't be sent once `pipeline` already destroyed the socket - * return res.end('error!!!'); - * } - * }); - * }); - * ``` - * @since v10.0.0 - * @param callback Called when the pipeline is fully done. - */ - function pipeline, B extends PipelineDestination>( - source: A, - destination: B, - callback: PipelineCallback, - ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - destination: B, - callback: PipelineCallback, - ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - destination: B, - callback: PipelineCallback, - ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - transform3: T3, - destination: B, - callback: PipelineCallback, - ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - T4 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - transform3: T3, - transform4: T4, - destination: B, - callback: PipelineCallback, - ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; - function pipeline( - streams: ReadonlyArray, - callback: (err: NodeJS.ErrnoException | null) => void, - ): NodeJS.WritableStream; - function pipeline( - stream1: NodeJS.ReadableStream, - stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream, - ...streams: Array< - NodeJS.ReadWriteStream | NodeJS.WritableStream | ((err: NodeJS.ErrnoException | null) => void) - > - ): NodeJS.WritableStream; - namespace pipeline { - function __promisify__, B extends PipelineDestination>( - source: A, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function __promisify__< - A extends PipelineSource, - T1 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function __promisify__< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function __promisify__< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - transform3: T3, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function __promisify__< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - T4 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - transform3: T3, - transform4: T4, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function __promisify__( - streams: ReadonlyArray, - options?: PipelineOptions, - ): Promise; - function __promisify__( - stream1: NodeJS.ReadableStream, - stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream, - ...streams: Array - ): Promise; - } - // TODO: this interface never existed; remove in next major - interface Pipe { - close(): void; - hasRef(): boolean; - ref(): void; - unref(): void; - } - // TODO: these should all take webstream arguments - /** - * Returns whether the stream has encountered an error. - * @since v17.3.0, v16.14.0 - */ - function isErrored(stream: Readable | Writable | NodeJS.ReadableStream | NodeJS.WritableStream): boolean; - /** - * Returns whether the stream is readable. - * @since v17.4.0, v16.14.0 - * @returns Only returns `null` if `stream` is not a valid `Readable`, `Duplex` or `ReadableStream`. - */ - function isReadable(stream: Readable | NodeJS.ReadableStream): boolean | null; - /** - * Returns whether the stream is writable. - * @since v20.0.0 - * @returns Only returns `null` if `stream` is not a valid `Writable`, `Duplex` or `WritableStream`. - */ - function isWritable(stream: Writable | NodeJS.WritableStream): boolean | null; - } - export = Stream; -} -declare module "node:stream" { - import stream = require("stream"); - export = stream; -} diff --git a/build_vtk_bundle/node_modules/@types/node/stream/consumers.d.ts b/build_vtk_bundle/node_modules/@types/node/stream/consumers.d.ts deleted file mode 100644 index 05db0257..00000000 --- a/build_vtk_bundle/node_modules/@types/node/stream/consumers.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * The utility consumer functions provide common options for consuming - * streams. - * @since v16.7.0 - */ -declare module "stream/consumers" { - import { Blob as NodeBlob, NonSharedBuffer } from "node:buffer"; - import { ReadableStream as WebReadableStream } from "node:stream/web"; - /** - * @since v16.7.0 - * @returns Fulfills with an `ArrayBuffer` containing the full contents of the stream. - */ - function arrayBuffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable): Promise; - /** - * @since v16.7.0 - * @returns Fulfills with a `Blob` containing the full contents of the stream. - */ - function blob(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable): Promise; - /** - * @since v16.7.0 - * @returns Fulfills with a `Buffer` containing the full contents of the stream. - */ - function buffer(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable): Promise; - /** - * @since v16.7.0 - * @returns Fulfills with the contents of the stream parsed as a - * UTF-8 encoded string that is then passed through `JSON.parse()`. - */ - function json(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable): Promise; - /** - * @since v16.7.0 - * @returns Fulfills with the contents of the stream parsed as a UTF-8 encoded string. - */ - function text(stream: WebReadableStream | NodeJS.ReadableStream | AsyncIterable): Promise; -} -declare module "node:stream/consumers" { - export * from "stream/consumers"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/stream/promises.d.ts b/build_vtk_bundle/node_modules/@types/node/stream/promises.d.ts deleted file mode 100644 index d54c14c6..00000000 --- a/build_vtk_bundle/node_modules/@types/node/stream/promises.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -declare module "stream/promises" { - import { - FinishedOptions as _FinishedOptions, - PipelineDestination, - PipelineOptions, - PipelinePromise, - PipelineSource, - PipelineTransform, - } from "node:stream"; - interface FinishedOptions extends _FinishedOptions { - /** - * If true, removes the listeners registered by this function before the promise is fulfilled. - * @default false - */ - cleanup?: boolean | undefined; - } - function finished( - stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, - options?: FinishedOptions, - ): Promise; - function pipeline, B extends PipelineDestination>( - source: A, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - transform3: T3, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - T4 extends PipelineTransform, - B extends PipelineDestination, - >( - source: A, - transform1: T1, - transform2: T2, - transform3: T3, - transform4: T4, - destination: B, - options?: PipelineOptions, - ): PipelinePromise; - function pipeline( - streams: ReadonlyArray, - options?: PipelineOptions, - ): Promise; - function pipeline( - stream1: NodeJS.ReadableStream, - stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream, - ...streams: Array - ): Promise; -} -declare module "node:stream/promises" { - export * from "stream/promises"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/stream/web.d.ts b/build_vtk_bundle/node_modules/@types/node/stream/web.d.ts deleted file mode 100644 index bc7c011c..00000000 --- a/build_vtk_bundle/node_modules/@types/node/stream/web.d.ts +++ /dev/null @@ -1,573 +0,0 @@ -type _ByteLengthQueuingStrategy = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ByteLengthQueuingStrategy; -type _CountQueuingStrategy = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").CountQueuingStrategy; -type _QueuingStrategy = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").QueuingStrategy; -type _ReadableByteStreamController = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ReadableByteStreamController; -type _ReadableStream = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ReadableStream; -type _ReadableStreamBYOBReader = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ReadableStreamBYOBReader; -type _ReadableStreamBYOBRequest = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ReadableStreamBYOBRequest; -type _ReadableStreamDefaultController = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ReadableStreamDefaultController; -type _ReadableStreamDefaultReader = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").ReadableStreamDefaultReader; -type _TextDecoderStream = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").TextDecoderStream; -type _TextEncoderStream = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").TextEncoderStream; -type _TransformStream = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").TransformStream; -type _TransformStreamDefaultController = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").TransformStreamDefaultController; -type _WritableStream = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").WritableStream; -type _WritableStreamDefaultController = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").WritableStreamDefaultController; -type _WritableStreamDefaultWriter = typeof globalThis extends { onmessage: any } ? {} - : import("stream/web").WritableStreamDefaultWriter; - -declare module "stream/web" { - // stub module, pending copy&paste from .d.ts or manual impl - // copy from lib.dom.d.ts - interface ReadableWritablePair { - readable: ReadableStream; - /** - * Provides a convenient, chainable way of piping this readable stream - * through a transform stream (or any other { writable, readable } - * pair). It simply pipes the stream into the writable side of the - * supplied pair, and returns the readable side for further use. - * - * Piping a stream will lock it for the duration of the pipe, preventing - * any other consumer from acquiring a reader. - */ - writable: WritableStream; - } - interface StreamPipeOptions { - preventAbort?: boolean; - preventCancel?: boolean; - /** - * Pipes this readable stream to a given writable stream destination. - * The way in which the piping process behaves under various error - * conditions can be customized with a number of passed options. It - * returns a promise that fulfills when the piping process completes - * successfully, or rejects if any errors were encountered. - * - * Piping a stream will lock it for the duration of the pipe, preventing - * any other consumer from acquiring a reader. - * - * Errors and closures of the source and destination streams propagate - * as follows: - * - * An error in this source readable stream will abort destination, - * unless preventAbort is truthy. The returned promise will be rejected - * with the source's error, or with any error that occurs during - * aborting the destination. - * - * An error in destination will cancel this source readable stream, - * unless preventCancel is truthy. The returned promise will be rejected - * with the destination's error, or with any error that occurs during - * canceling the source. - * - * When this source readable stream closes, destination will be closed, - * unless preventClose is truthy. The returned promise will be fulfilled - * once this process completes, unless an error is encountered while - * closing the destination, in which case it will be rejected with that - * error. - * - * If destination starts out closed or closing, this source readable - * stream will be canceled, unless preventCancel is true. The returned - * promise will be rejected with an error indicating piping to a closed - * stream failed, or with any error that occurs during canceling the - * source. - * - * The signal option can be set to an AbortSignal to allow aborting an - * ongoing pipe operation via the corresponding AbortController. In this - * case, this source readable stream will be canceled, and destination - * aborted, unless the respective options preventCancel or preventAbort - * are set. - */ - preventClose?: boolean; - signal?: AbortSignal; - } - interface ReadableStreamGenericReader { - readonly closed: Promise; - cancel(reason?: any): Promise; - } - type ReadableStreamController = ReadableStreamDefaultController; - interface ReadableStreamReadValueResult { - done: false; - value: T; - } - interface ReadableStreamReadDoneResult { - done: true; - value?: T; - } - type ReadableStreamReadResult = ReadableStreamReadValueResult | ReadableStreamReadDoneResult; - interface ReadableByteStreamControllerCallback { - (controller: ReadableByteStreamController): void | PromiseLike; - } - interface UnderlyingSinkAbortCallback { - (reason?: any): void | PromiseLike; - } - interface UnderlyingSinkCloseCallback { - (): void | PromiseLike; - } - interface UnderlyingSinkStartCallback { - (controller: WritableStreamDefaultController): any; - } - interface UnderlyingSinkWriteCallback { - (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike; - } - interface UnderlyingSourceCancelCallback { - (reason?: any): void | PromiseLike; - } - interface UnderlyingSourcePullCallback { - (controller: ReadableStreamController): void | PromiseLike; - } - interface UnderlyingSourceStartCallback { - (controller: ReadableStreamController): any; - } - interface TransformerFlushCallback { - (controller: TransformStreamDefaultController): void | PromiseLike; - } - interface TransformerStartCallback { - (controller: TransformStreamDefaultController): any; - } - interface TransformerTransformCallback { - (chunk: I, controller: TransformStreamDefaultController): void | PromiseLike; - } - interface TransformerCancelCallback { - (reason: any): void | PromiseLike; - } - interface UnderlyingByteSource { - autoAllocateChunkSize?: number; - cancel?: ReadableStreamErrorCallback; - pull?: ReadableByteStreamControllerCallback; - start?: ReadableByteStreamControllerCallback; - type: "bytes"; - } - interface UnderlyingSource { - cancel?: UnderlyingSourceCancelCallback; - pull?: UnderlyingSourcePullCallback; - start?: UnderlyingSourceStartCallback; - type?: undefined; - } - interface UnderlyingSink { - abort?: UnderlyingSinkAbortCallback; - close?: UnderlyingSinkCloseCallback; - start?: UnderlyingSinkStartCallback; - type?: undefined; - write?: UnderlyingSinkWriteCallback; - } - interface ReadableStreamErrorCallback { - (reason: any): void | PromiseLike; - } - interface ReadableStreamAsyncIterator extends NodeJS.AsyncIterator { - [Symbol.asyncIterator](): ReadableStreamAsyncIterator; - } - /** This Streams API interface represents a readable stream of byte data. */ - interface ReadableStream { - readonly locked: boolean; - cancel(reason?: any): Promise; - getReader(options: { mode: "byob" }): ReadableStreamBYOBReader; - getReader(): ReadableStreamDefaultReader; - getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader; - pipeThrough(transform: ReadableWritablePair, options?: StreamPipeOptions): ReadableStream; - pipeTo(destination: WritableStream, options?: StreamPipeOptions): Promise; - tee(): [ReadableStream, ReadableStream]; - values(options?: { preventCancel?: boolean }): ReadableStreamAsyncIterator; - [Symbol.asyncIterator](): ReadableStreamAsyncIterator; - } - const ReadableStream: { - prototype: ReadableStream; - from(iterable: Iterable | AsyncIterable): ReadableStream; - new(underlyingSource: UnderlyingByteSource, strategy?: QueuingStrategy): ReadableStream; - new(underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; - }; - type ReadableStreamReaderMode = "byob"; - interface ReadableStreamGetReaderOptions { - /** - * Creates a ReadableStreamBYOBReader and locks the stream to the new reader. - * - * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation. - */ - mode?: ReadableStreamReaderMode; - } - type ReadableStreamReader = ReadableStreamDefaultReader | ReadableStreamBYOBReader; - interface ReadableStreamDefaultReader extends ReadableStreamGenericReader { - read(): Promise>; - releaseLock(): void; - } - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */ - interface ReadableStreamBYOBReader extends ReadableStreamGenericReader { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */ - read( - view: T, - options?: { - min?: number; - }, - ): Promise>; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */ - releaseLock(): void; - } - const ReadableStreamDefaultReader: { - prototype: ReadableStreamDefaultReader; - new(stream: ReadableStream): ReadableStreamDefaultReader; - }; - const ReadableStreamBYOBReader: { - prototype: ReadableStreamBYOBReader; - new(stream: ReadableStream): ReadableStreamBYOBReader; - }; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */ - interface ReadableStreamBYOBRequest { - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */ - readonly view: ArrayBufferView | null; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */ - respond(bytesWritten: number): void; - /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */ - respondWithNewView(view: ArrayBufferView): void; - } - const ReadableStreamBYOBRequest: { - prototype: ReadableStreamBYOBRequest; - new(): ReadableStreamBYOBRequest; - }; - interface ReadableByteStreamController { - readonly byobRequest: undefined; - readonly desiredSize: number | null; - close(): void; - enqueue(chunk: ArrayBufferView): void; - error(error?: any): void; - } - const ReadableByteStreamController: { - prototype: ReadableByteStreamController; - new(): ReadableByteStreamController; - }; - interface ReadableStreamDefaultController { - readonly desiredSize: number | null; - close(): void; - enqueue(chunk?: R): void; - error(e?: any): void; - } - const ReadableStreamDefaultController: { - prototype: ReadableStreamDefaultController; - new(): ReadableStreamDefaultController; - }; - interface Transformer { - flush?: TransformerFlushCallback; - readableType?: undefined; - start?: TransformerStartCallback; - transform?: TransformerTransformCallback; - cancel?: TransformerCancelCallback; - writableType?: undefined; - } - interface TransformStream { - readonly readable: ReadableStream; - readonly writable: WritableStream; - } - const TransformStream: { - prototype: TransformStream; - new( - transformer?: Transformer, - writableStrategy?: QueuingStrategy, - readableStrategy?: QueuingStrategy, - ): TransformStream; - }; - interface TransformStreamDefaultController { - readonly desiredSize: number | null; - enqueue(chunk?: O): void; - error(reason?: any): void; - terminate(): void; - } - const TransformStreamDefaultController: { - prototype: TransformStreamDefaultController; - new(): TransformStreamDefaultController; - }; - /** - * This Streams API interface provides a standard abstraction for writing - * streaming data to a destination, known as a sink. This object comes with - * built-in back pressure and queuing. - */ - interface WritableStream { - readonly locked: boolean; - abort(reason?: any): Promise; - close(): Promise; - getWriter(): WritableStreamDefaultWriter; - } - const WritableStream: { - prototype: WritableStream; - new(underlyingSink?: UnderlyingSink, strategy?: QueuingStrategy): WritableStream; - }; - /** - * This Streams API interface is the object returned by - * WritableStream.getWriter() and once created locks the < writer to the - * WritableStream ensuring that no other streams can write to the underlying - * sink. - */ - interface WritableStreamDefaultWriter { - readonly closed: Promise; - readonly desiredSize: number | null; - readonly ready: Promise; - abort(reason?: any): Promise; - close(): Promise; - releaseLock(): void; - write(chunk?: W): Promise; - } - const WritableStreamDefaultWriter: { - prototype: WritableStreamDefaultWriter; - new(stream: WritableStream): WritableStreamDefaultWriter; - }; - /** - * This Streams API interface represents a controller allowing control of a - * WritableStream's state. When constructing a WritableStream, the - * underlying sink is given a corresponding WritableStreamDefaultController - * instance to manipulate. - */ - interface WritableStreamDefaultController { - error(e?: any): void; - } - const WritableStreamDefaultController: { - prototype: WritableStreamDefaultController; - new(): WritableStreamDefaultController; - }; - interface QueuingStrategy { - highWaterMark?: number; - size?: QueuingStrategySize; - } - interface QueuingStrategySize { - (chunk?: T): number; - } - interface QueuingStrategyInit { - /** - * Creates a new ByteLengthQueuingStrategy with the provided high water - * mark. - * - * Note that the provided high water mark will not be validated ahead of - * time. Instead, if it is negative, NaN, or not a number, the resulting - * ByteLengthQueuingStrategy will cause the corresponding stream - * constructor to throw. - */ - highWaterMark: number; - } - /** - * This Streams API interface provides a built-in byte length queuing - * strategy that can be used when constructing streams. - */ - interface ByteLengthQueuingStrategy extends QueuingStrategy { - readonly highWaterMark: number; - readonly size: QueuingStrategySize; - } - const ByteLengthQueuingStrategy: { - prototype: ByteLengthQueuingStrategy; - new(init: QueuingStrategyInit): ByteLengthQueuingStrategy; - }; - /** - * This Streams API interface provides a built-in byte length queuing - * strategy that can be used when constructing streams. - */ - interface CountQueuingStrategy extends QueuingStrategy { - readonly highWaterMark: number; - readonly size: QueuingStrategySize; - } - const CountQueuingStrategy: { - prototype: CountQueuingStrategy; - new(init: QueuingStrategyInit): CountQueuingStrategy; - }; - interface TextEncoderStream { - /** Returns "utf-8". */ - readonly encoding: "utf-8"; - readonly readable: ReadableStream; - readonly writable: WritableStream; - readonly [Symbol.toStringTag]: string; - } - const TextEncoderStream: { - prototype: TextEncoderStream; - new(): TextEncoderStream; - }; - interface TextDecoderOptions { - fatal?: boolean; - ignoreBOM?: boolean; - } - type BufferSource = ArrayBufferView | ArrayBuffer; - interface TextDecoderStream { - /** Returns encoding's name, lower cased. */ - readonly encoding: string; - /** Returns `true` if error mode is "fatal", and `false` otherwise. */ - readonly fatal: boolean; - /** Returns `true` if ignore BOM flag is set, and `false` otherwise. */ - readonly ignoreBOM: boolean; - readonly readable: ReadableStream; - readonly writable: WritableStream; - readonly [Symbol.toStringTag]: string; - } - const TextDecoderStream: { - prototype: TextDecoderStream; - new(encoding?: string, options?: TextDecoderOptions): TextDecoderStream; - }; - type CompressionFormat = "brotli" | "deflate" | "deflate-raw" | "gzip"; - class CompressionStream { - constructor(format: CompressionFormat); - readonly readable: ReadableStream; - readonly writable: WritableStream; - } - class DecompressionStream { - constructor(format: CompressionFormat); - readonly readable: ReadableStream; - readonly writable: WritableStream; - } - - global { - interface ByteLengthQueuingStrategy extends _ByteLengthQueuingStrategy {} - /** - * `ByteLengthQueuingStrategy` class is a global reference for `import { ByteLengthQueuingStrategy } from 'node:stream/web'`. - * https://nodejs.org/api/globals.html#class-bytelengthqueuingstrategy - * @since v18.0.0 - */ - var ByteLengthQueuingStrategy: typeof globalThis extends { onmessage: any; ByteLengthQueuingStrategy: infer T } - ? T - : typeof import("stream/web").ByteLengthQueuingStrategy; - - interface CountQueuingStrategy extends _CountQueuingStrategy {} - /** - * `CountQueuingStrategy` class is a global reference for `import { CountQueuingStrategy } from 'node:stream/web'`. - * https://nodejs.org/api/globals.html#class-countqueuingstrategy - * @since v18.0.0 - */ - var CountQueuingStrategy: typeof globalThis extends { onmessage: any; CountQueuingStrategy: infer T } ? T - : typeof import("stream/web").CountQueuingStrategy; - - interface QueuingStrategy extends _QueuingStrategy {} - - interface ReadableByteStreamController extends _ReadableByteStreamController {} - /** - * `ReadableByteStreamController` class is a global reference for `import { ReadableByteStreamController } from 'node:stream/web'`. - * https://nodejs.org/api/globals.html#class-readablebytestreamcontroller - * @since v18.0.0 - */ - var ReadableByteStreamController: typeof globalThis extends - { onmessage: any; ReadableByteStreamController: infer T } ? T - : typeof import("stream/web").ReadableByteStreamController; - - interface ReadableStream extends _ReadableStream {} - /** - * `ReadableStream` class is a global reference for `import { ReadableStream } from 'node:stream/web'`. - * https://nodejs.org/api/globals.html#class-readablestream - * @since v18.0.0 - */ - var ReadableStream: typeof globalThis extends { onmessage: any; ReadableStream: infer T } ? T - : typeof import("stream/web").ReadableStream; - - interface ReadableStreamBYOBReader extends _ReadableStreamBYOBReader {} - /** - * `ReadableStreamBYOBReader` class is a global reference for `import { ReadableStreamBYOBReader } from 'node:stream/web'`. - * https://nodejs.org/api/globals.html#class-readablestreambyobreader - * @since v18.0.0 - */ - var ReadableStreamBYOBReader: typeof globalThis extends { onmessage: any; ReadableStreamBYOBReader: infer T } - ? T - : typeof import("stream/web").ReadableStreamBYOBReader; - - interface ReadableStreamBYOBRequest extends _ReadableStreamBYOBRequest {} - /** - * `ReadableStreamBYOBRequest` class is a global reference for `import { ReadableStreamBYOBRequest } from 'node:stream/web'`. - * https://nodejs.org/api/globals.html#class-readablestreambyobrequest - * @since v18.0.0 - */ - var ReadableStreamBYOBRequest: typeof globalThis extends { onmessage: any; ReadableStreamBYOBRequest: infer T } - ? T - : typeof import("stream/web").ReadableStreamBYOBRequest; - - interface ReadableStreamDefaultController extends _ReadableStreamDefaultController {} - /** - * `ReadableStreamDefaultController` class is a global reference for `import { ReadableStreamDefaultController } from 'node:stream/web'`. - * https://nodejs.org/api/globals.html#class-readablestreamdefaultcontroller - * @since v18.0.0 - */ - var ReadableStreamDefaultController: typeof globalThis extends - { onmessage: any; ReadableStreamDefaultController: infer T } ? T - : typeof import("stream/web").ReadableStreamDefaultController; - - interface ReadableStreamDefaultReader extends _ReadableStreamDefaultReader {} - /** - * `ReadableStreamDefaultReader` class is a global reference for `import { ReadableStreamDefaultReader } from 'node:stream/web'`. - * https://nodejs.org/api/globals.html#class-readablestreamdefaultreader - * @since v18.0.0 - */ - var ReadableStreamDefaultReader: typeof globalThis extends - { onmessage: any; ReadableStreamDefaultReader: infer T } ? T - : typeof import("stream/web").ReadableStreamDefaultReader; - - interface TextDecoderStream extends _TextDecoderStream {} - /** - * `TextDecoderStream` class is a global reference for `import { TextDecoderStream } from 'node:stream/web'`. - * https://nodejs.org/api/globals.html#class-textdecoderstream - * @since v18.0.0 - */ - var TextDecoderStream: typeof globalThis extends { onmessage: any; TextDecoderStream: infer T } ? T - : typeof import("stream/web").TextDecoderStream; - - interface TextEncoderStream extends _TextEncoderStream {} - /** - * `TextEncoderStream` class is a global reference for `import { TextEncoderStream } from 'node:stream/web'`. - * https://nodejs.org/api/globals.html#class-textencoderstream - * @since v18.0.0 - */ - var TextEncoderStream: typeof globalThis extends { onmessage: any; TextEncoderStream: infer T } ? T - : typeof import("stream/web").TextEncoderStream; - - interface TransformStream extends _TransformStream {} - /** - * `TransformStream` class is a global reference for `import { TransformStream } from 'node:stream/web'`. - * https://nodejs.org/api/globals.html#class-transformstream - * @since v18.0.0 - */ - var TransformStream: typeof globalThis extends { onmessage: any; TransformStream: infer T } ? T - : typeof import("stream/web").TransformStream; - - interface TransformStreamDefaultController extends _TransformStreamDefaultController {} - /** - * `TransformStreamDefaultController` class is a global reference for `import { TransformStreamDefaultController } from 'node:stream/web'`. - * https://nodejs.org/api/globals.html#class-transformstreamdefaultcontroller - * @since v18.0.0 - */ - var TransformStreamDefaultController: typeof globalThis extends - { onmessage: any; TransformStreamDefaultController: infer T } ? T - : typeof import("stream/web").TransformStreamDefaultController; - - interface WritableStream extends _WritableStream {} - /** - * `WritableStream` class is a global reference for `import { WritableStream } from 'node:stream/web'`. - * https://nodejs.org/api/globals.html#class-writablestream - * @since v18.0.0 - */ - var WritableStream: typeof globalThis extends { onmessage: any; WritableStream: infer T } ? T - : typeof import("stream/web").WritableStream; - - interface WritableStreamDefaultController extends _WritableStreamDefaultController {} - /** - * `WritableStreamDefaultController` class is a global reference for `import { WritableStreamDefaultController } from 'node:stream/web'`. - * https://nodejs.org/api/globals.html#class-writablestreamdefaultcontroller - * @since v18.0.0 - */ - var WritableStreamDefaultController: typeof globalThis extends - { onmessage: any; WritableStreamDefaultController: infer T } ? T - : typeof import("stream/web").WritableStreamDefaultController; - - interface WritableStreamDefaultWriter extends _WritableStreamDefaultWriter {} - /** - * `WritableStreamDefaultWriter` class is a global reference for `import { WritableStreamDefaultWriter } from 'node:stream/web'`. - * https://nodejs.org/api/globals.html#class-writablestreamdefaultwriter - * @since v18.0.0 - */ - var WritableStreamDefaultWriter: typeof globalThis extends - { onmessage: any; WritableStreamDefaultWriter: infer T } ? T - : typeof import("stream/web").WritableStreamDefaultWriter; - } -} -declare module "node:stream/web" { - export * from "stream/web"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/string_decoder.d.ts b/build_vtk_bundle/node_modules/@types/node/string_decoder.d.ts deleted file mode 100644 index bcd64d5a..00000000 --- a/build_vtk_bundle/node_modules/@types/node/string_decoder.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * The `node:string_decoder` module provides an API for decoding `Buffer` objects - * into strings in a manner that preserves encoded multi-byte UTF-8 and UTF-16 - * characters. It can be accessed using: - * - * ```js - * import { StringDecoder } from 'node:string_decoder'; - * ``` - * - * The following example shows the basic use of the `StringDecoder` class. - * - * ```js - * import { StringDecoder } from 'node:string_decoder'; - * const decoder = new StringDecoder('utf8'); - * - * const cent = Buffer.from([0xC2, 0xA2]); - * console.log(decoder.write(cent)); // Prints: ¢ - * - * const euro = Buffer.from([0xE2, 0x82, 0xAC]); - * console.log(decoder.write(euro)); // Prints: € - * ``` - * - * When a `Buffer` instance is written to the `StringDecoder` instance, an - * internal buffer is used to ensure that the decoded string does not contain - * any incomplete multibyte characters. These are held in the buffer until the - * next call to `stringDecoder.write()` or until `stringDecoder.end()` is called. - * - * In the following example, the three UTF-8 encoded bytes of the European Euro - * symbol (`€`) are written over three separate operations: - * - * ```js - * import { StringDecoder } from 'node:string_decoder'; - * const decoder = new StringDecoder('utf8'); - * - * decoder.write(Buffer.from([0xE2])); - * decoder.write(Buffer.from([0x82])); - * console.log(decoder.end(Buffer.from([0xAC]))); // Prints: € - * ``` - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/string_decoder.js) - */ -declare module "string_decoder" { - class StringDecoder { - constructor(encoding?: BufferEncoding); - /** - * Returns a decoded string, ensuring that any incomplete multibyte characters at - * the end of the `Buffer`, or `TypedArray`, or `DataView` are omitted from the - * returned string and stored in an internal buffer for the next call to `stringDecoder.write()` or `stringDecoder.end()`. - * @since v0.1.99 - * @param buffer The bytes to decode. - */ - write(buffer: string | NodeJS.ArrayBufferView): string; - /** - * Returns any remaining input stored in the internal buffer as a string. Bytes - * representing incomplete UTF-8 and UTF-16 characters will be replaced with - * substitution characters appropriate for the character encoding. - * - * If the `buffer` argument is provided, one final call to `stringDecoder.write()` is performed before returning the remaining input. - * After `end()` is called, the `stringDecoder` object can be reused for new input. - * @since v0.9.3 - * @param buffer The bytes to decode. - */ - end(buffer?: string | NodeJS.ArrayBufferView): string; - } -} -declare module "node:string_decoder" { - export * from "string_decoder"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/test.d.ts b/build_vtk_bundle/node_modules/@types/node/test.d.ts deleted file mode 100644 index e1f103d7..00000000 --- a/build_vtk_bundle/node_modules/@types/node/test.d.ts +++ /dev/null @@ -1,2339 +0,0 @@ -/** - * The `node:test` module facilitates the creation of JavaScript tests. - * To access it: - * - * ```js - * import test from 'node:test'; - * ``` - * - * This module is only available under the `node:` scheme. The following will not - * work: - * - * ```js - * import test from 'node:test'; - * ``` - * - * Tests created via the `test` module consist of a single function that is - * processed in one of three ways: - * - * 1. A synchronous function that is considered failing if it throws an exception, - * and is considered passing otherwise. - * 2. A function that returns a `Promise` that is considered failing if the `Promise` rejects, and is considered passing if the `Promise` fulfills. - * 3. A function that receives a callback function. If the callback receives any - * truthy value as its first argument, the test is considered failing. If a - * falsy value is passed as the first argument to the callback, the test is - * considered passing. If the test function receives a callback function and - * also returns a `Promise`, the test will fail. - * - * The following example illustrates how tests are written using the `test` module. - * - * ```js - * test('synchronous passing test', (t) => { - * // This test passes because it does not throw an exception. - * assert.strictEqual(1, 1); - * }); - * - * test('synchronous failing test', (t) => { - * // This test fails because it throws an exception. - * assert.strictEqual(1, 2); - * }); - * - * test('asynchronous passing test', async (t) => { - * // This test passes because the Promise returned by the async - * // function is settled and not rejected. - * assert.strictEqual(1, 1); - * }); - * - * test('asynchronous failing test', async (t) => { - * // This test fails because the Promise returned by the async - * // function is rejected. - * assert.strictEqual(1, 2); - * }); - * - * test('failing test using Promises', (t) => { - * // Promises can be used directly as well. - * return new Promise((resolve, reject) => { - * setImmediate(() => { - * reject(new Error('this will cause the test to fail')); - * }); - * }); - * }); - * - * test('callback passing test', (t, done) => { - * // done() is the callback function. When the setImmediate() runs, it invokes - * // done() with no arguments. - * setImmediate(done); - * }); - * - * test('callback failing test', (t, done) => { - * // When the setImmediate() runs, done() is invoked with an Error object and - * // the test fails. - * setImmediate(() => { - * done(new Error('callback failure')); - * }); - * }); - * ``` - * - * If any tests fail, the process exit code is set to `1`. - * @since v18.0.0, v16.17.0 - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/test.js) - */ -declare module "node:test" { - import { AssertMethodNames } from "node:assert"; - import { Readable } from "node:stream"; - import TestFn = test.TestFn; - import TestOptions = test.TestOptions; - /** - * The `test()` function is the value imported from the `test` module. Each - * invocation of this function results in reporting the test to the `TestsStream`. - * - * The `TestContext` object passed to the `fn` argument can be used to perform - * actions related to the current test. Examples include skipping the test, adding - * additional diagnostic information, or creating subtests. - * - * `test()` returns a `Promise` that fulfills once the test completes. - * if `test()` is called within a suite, it fulfills immediately. - * The return value can usually be discarded for top level tests. - * However, the return value from subtests should be used to prevent the parent - * test from finishing first and cancelling the subtest - * as shown in the following example. - * - * ```js - * test('top level test', async (t) => { - * // The setTimeout() in the following subtest would cause it to outlive its - * // parent test if 'await' is removed on the next line. Once the parent test - * // completes, it will cancel any outstanding subtests. - * await t.test('longer running subtest', async (t) => { - * return new Promise((resolve, reject) => { - * setTimeout(resolve, 1000); - * }); - * }); - * }); - * ``` - * - * The `timeout` option can be used to fail the test if it takes longer than `timeout` milliseconds to complete. However, it is not a reliable mechanism for - * canceling tests because a running test might block the application thread and - * thus prevent the scheduled cancellation. - * @since v18.0.0, v16.17.0 - * @param name The name of the test, which is displayed when reporting test results. - * Defaults to the `name` property of `fn`, or `''` if `fn` does not have a name. - * @param options Configuration options for the test. - * @param fn The function under test. The first argument to this function is a {@link TestContext} object. - * If the test uses callbacks, the callback function is passed as the second argument. - * @return Fulfilled with `undefined` once the test completes, or immediately if the test runs within a suite. - */ - function test(name?: string, fn?: TestFn): Promise; - function test(name?: string, options?: TestOptions, fn?: TestFn): Promise; - function test(options?: TestOptions, fn?: TestFn): Promise; - function test(fn?: TestFn): Promise; - namespace test { - export { test }; - export { suite as describe, test as it }; - } - namespace test { - /** - * **Note:** `shard` is used to horizontally parallelize test running across - * machines or processes, ideal for large-scale executions across varied - * environments. It's incompatible with `watch` mode, tailored for rapid - * code iteration by automatically rerunning tests on file changes. - * - * ```js - * import { tap } from 'node:test/reporters'; - * import { run } from 'node:test'; - * import process from 'node:process'; - * import path from 'node:path'; - * - * run({ files: [path.resolve('./tests/test.js')] }) - * .compose(tap) - * .pipe(process.stdout); - * ``` - * @since v18.9.0, v16.19.0 - * @param options Configuration options for running tests. - */ - function run(options?: RunOptions): TestsStream; - /** - * The `suite()` function is imported from the `node:test` module. - * @param name The name of the suite, which is displayed when reporting test results. - * Defaults to the `name` property of `fn`, or `''` if `fn` does not have a name. - * @param options Configuration options for the suite. This supports the same options as {@link test}. - * @param fn The suite function declaring nested tests and suites. The first argument to this function is a {@link SuiteContext} object. - * @return Immediately fulfilled with `undefined`. - * @since v20.13.0 - */ - function suite(name?: string, options?: TestOptions, fn?: SuiteFn): Promise; - function suite(name?: string, fn?: SuiteFn): Promise; - function suite(options?: TestOptions, fn?: SuiteFn): Promise; - function suite(fn?: SuiteFn): Promise; - namespace suite { - /** - * Shorthand for skipping a suite. This is the same as calling {@link suite} with `options.skip` set to `true`. - * @since v20.13.0 - */ - function skip(name?: string, options?: TestOptions, fn?: SuiteFn): Promise; - function skip(name?: string, fn?: SuiteFn): Promise; - function skip(options?: TestOptions, fn?: SuiteFn): Promise; - function skip(fn?: SuiteFn): Promise; - /** - * Shorthand for marking a suite as `TODO`. This is the same as calling {@link suite} with `options.todo` set to `true`. - * @since v20.13.0 - */ - function todo(name?: string, options?: TestOptions, fn?: SuiteFn): Promise; - function todo(name?: string, fn?: SuiteFn): Promise; - function todo(options?: TestOptions, fn?: SuiteFn): Promise; - function todo(fn?: SuiteFn): Promise; - /** - * Shorthand for marking a suite as `only`. This is the same as calling {@link suite} with `options.only` set to `true`. - * @since v20.13.0 - */ - function only(name?: string, options?: TestOptions, fn?: SuiteFn): Promise; - function only(name?: string, fn?: SuiteFn): Promise; - function only(options?: TestOptions, fn?: SuiteFn): Promise; - function only(fn?: SuiteFn): Promise; - } - /** - * Shorthand for skipping a test. This is the same as calling {@link test} with `options.skip` set to `true`. - * @since v20.2.0 - */ - function skip(name?: string, options?: TestOptions, fn?: TestFn): Promise; - function skip(name?: string, fn?: TestFn): Promise; - function skip(options?: TestOptions, fn?: TestFn): Promise; - function skip(fn?: TestFn): Promise; - /** - * Shorthand for marking a test as `TODO`. This is the same as calling {@link test} with `options.todo` set to `true`. - * @since v20.2.0 - */ - function todo(name?: string, options?: TestOptions, fn?: TestFn): Promise; - function todo(name?: string, fn?: TestFn): Promise; - function todo(options?: TestOptions, fn?: TestFn): Promise; - function todo(fn?: TestFn): Promise; - /** - * Shorthand for marking a test as `only`. This is the same as calling {@link test} with `options.only` set to `true`. - * @since v20.2.0 - */ - function only(name?: string, options?: TestOptions, fn?: TestFn): Promise; - function only(name?: string, fn?: TestFn): Promise; - function only(options?: TestOptions, fn?: TestFn): Promise; - function only(fn?: TestFn): Promise; - /** - * The type of a function passed to {@link test}. The first argument to this function is a {@link TestContext} object. - * If the test uses callbacks, the callback function is passed as the second argument. - */ - type TestFn = (t: TestContext, done: (result?: any) => void) => void | Promise; - /** - * The type of a suite test function. The argument to this function is a {@link SuiteContext} object. - */ - type SuiteFn = (s: SuiteContext) => void | Promise; - interface TestShard { - /** - * A positive integer between 1 and `total` that specifies the index of the shard to run. - */ - index: number; - /** - * A positive integer that specifies the total number of shards to split the test files to. - */ - total: number; - } - interface RunOptions { - /** - * If a number is provided, then that many test processes would run in parallel, where each process corresponds to one test file. - * If `true`, it would run `os.availableParallelism() - 1` test files in parallel. If `false`, it would only run one test file at a time. - * @default false - */ - concurrency?: number | boolean | undefined; - /** - * Specifies the current working directory to be used by the test runner. - * Serves as the base path for resolving files according to the - * [test runner execution model](https://nodejs.org/docs/latest-v24.x/api/test.html#test-runner-execution-model). - * @since v23.0.0 - * @default process.cwd() - */ - cwd?: string | undefined; - /** - * An array containing the list of files to run. If omitted, files are run according to the - * [test runner execution model](https://nodejs.org/docs/latest-v24.x/api/test.html#test-runner-execution-model). - */ - files?: readonly string[] | undefined; - /** - * Configures the test runner to exit the process once all known - * tests have finished executing even if the event loop would - * otherwise remain active. - * @default false - */ - forceExit?: boolean | undefined; - /** - * An array containing the list of glob patterns to match test files. - * This option cannot be used together with `files`. If omitted, files are run according to the - * [test runner execution model](https://nodejs.org/docs/latest-v24.x/api/test.html#test-runner-execution-model). - * @since v22.6.0 - */ - globPatterns?: readonly string[] | undefined; - /** - * Sets inspector port of test child process. - * This can be a number, or a function that takes no arguments and returns a - * number. If a nullish value is provided, each process gets its own port, - * incremented from the primary's `process.debugPort`. This option is ignored - * if the `isolation` option is set to `'none'` as no child processes are - * spawned. - * @default undefined - */ - inspectPort?: number | (() => number) | undefined; - /** - * Configures the type of test isolation. If set to - * `'process'`, each test file is run in a separate child process. If set to - * `'none'`, all test files run in the current process. - * @default 'process' - * @since v22.8.0 - */ - isolation?: "process" | "none" | undefined; - /** - * If truthy, the test context will only run tests that have the `only` option set - */ - only?: boolean | undefined; - /** - * A function that accepts the `TestsStream` instance and can be used to setup listeners before any tests are run. - * @default undefined - */ - setup?: ((reporter: TestsStream) => void | Promise) | undefined; - /** - * An array of CLI flags to pass to the `node` executable when - * spawning the subprocesses. This option has no effect when `isolation` is `'none`'. - * @since v22.10.0 - * @default [] - */ - execArgv?: readonly string[] | undefined; - /** - * An array of CLI flags to pass to each test file when spawning the - * subprocesses. This option has no effect when `isolation` is `'none'`. - * @since v22.10.0 - * @default [] - */ - argv?: readonly string[] | undefined; - /** - * Allows aborting an in-progress test execution. - */ - signal?: AbortSignal | undefined; - /** - * If provided, only run tests whose name matches the provided pattern. - * Strings are interpreted as JavaScript regular expressions. - * @default undefined - */ - testNamePatterns?: string | RegExp | ReadonlyArray | undefined; - /** - * A String, RegExp or a RegExp Array, that can be used to exclude running tests whose - * name matches the provided pattern. Test name patterns are interpreted as JavaScript - * regular expressions. For each test that is executed, any corresponding test hooks, - * such as `beforeEach()`, are also run. - * @default undefined - * @since v22.1.0 - */ - testSkipPatterns?: string | RegExp | ReadonlyArray | undefined; - /** - * The number of milliseconds after which the test execution will fail. - * If unspecified, subtests inherit this value from their parent. - * @default Infinity - */ - timeout?: number | undefined; - /** - * Whether to run in watch mode or not. - * @default false - */ - watch?: boolean | undefined; - /** - * Running tests in a specific shard. - * @default undefined - */ - shard?: TestShard | undefined; - /** - * A file path where the test runner will - * store the state of the tests to allow rerunning only the failed tests on a next run. - * @since v24.7.0 - * @default undefined - */ - rerunFailuresFilePath?: string | undefined; - /** - * enable [code coverage](https://nodejs.org/docs/latest-v24.x/api/test.html#collecting-code-coverage) collection. - * @since v22.10.0 - * @default false - */ - coverage?: boolean | undefined; - /** - * Excludes specific files from code coverage - * using a glob pattern, which can match both absolute and relative file paths. - * This property is only applicable when `coverage` was set to `true`. - * If both `coverageExcludeGlobs` and `coverageIncludeGlobs` are provided, - * files must meet **both** criteria to be included in the coverage report. - * @since v22.10.0 - * @default undefined - */ - coverageExcludeGlobs?: string | readonly string[] | undefined; - /** - * Includes specific files in code coverage - * using a glob pattern, which can match both absolute and relative file paths. - * This property is only applicable when `coverage` was set to `true`. - * If both `coverageExcludeGlobs` and `coverageIncludeGlobs` are provided, - * files must meet **both** criteria to be included in the coverage report. - * @since v22.10.0 - * @default undefined - */ - coverageIncludeGlobs?: string | readonly string[] | undefined; - /** - * Require a minimum percent of covered lines. If code - * coverage does not reach the threshold specified, the process will exit with code `1`. - * @since v22.10.0 - * @default 0 - */ - lineCoverage?: number | undefined; - /** - * Require a minimum percent of covered branches. If code - * coverage does not reach the threshold specified, the process will exit with code `1`. - * @since v22.10.0 - * @default 0 - */ - branchCoverage?: number | undefined; - /** - * Require a minimum percent of covered functions. If code - * coverage does not reach the threshold specified, the process will exit with code `1`. - * @since v22.10.0 - * @default 0 - */ - functionCoverage?: number | undefined; - } - /** - * A successful call to `run()` will return a new `TestsStream` object, streaming a series of events representing the execution of the tests. - * - * Some of the events are guaranteed to be emitted in the same order as the tests are defined, while others are emitted in the order that the tests execute. - * @since v18.9.0, v16.19.0 - */ - interface TestsStream extends Readable { - addListener(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this; - addListener(event: "test:complete", listener: (data: EventData.TestComplete) => void): this; - addListener(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this; - addListener(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this; - addListener(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this; - addListener(event: "test:fail", listener: (data: EventData.TestFail) => void): this; - addListener(event: "test:pass", listener: (data: EventData.TestPass) => void): this; - addListener(event: "test:plan", listener: (data: EventData.TestPlan) => void): this; - addListener(event: "test:start", listener: (data: EventData.TestStart) => void): this; - addListener(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this; - addListener(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this; - addListener(event: "test:summary", listener: (data: EventData.TestSummary) => void): this; - addListener(event: "test:watch:drained", listener: () => void): this; - addListener(event: "test:watch:restarted", listener: () => void): this; - addListener(event: string, listener: (...args: any[]) => void): this; - emit(event: "test:coverage", data: EventData.TestCoverage): boolean; - emit(event: "test:complete", data: EventData.TestComplete): boolean; - emit(event: "test:dequeue", data: EventData.TestDequeue): boolean; - emit(event: "test:diagnostic", data: EventData.TestDiagnostic): boolean; - emit(event: "test:enqueue", data: EventData.TestEnqueue): boolean; - emit(event: "test:fail", data: EventData.TestFail): boolean; - emit(event: "test:pass", data: EventData.TestPass): boolean; - emit(event: "test:plan", data: EventData.TestPlan): boolean; - emit(event: "test:start", data: EventData.TestStart): boolean; - emit(event: "test:stderr", data: EventData.TestStderr): boolean; - emit(event: "test:stdout", data: EventData.TestStdout): boolean; - emit(event: "test:summary", data: EventData.TestSummary): boolean; - emit(event: "test:watch:drained"): boolean; - emit(event: "test:watch:restarted"): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this; - on(event: "test:complete", listener: (data: EventData.TestComplete) => void): this; - on(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this; - on(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this; - on(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this; - on(event: "test:fail", listener: (data: EventData.TestFail) => void): this; - on(event: "test:pass", listener: (data: EventData.TestPass) => void): this; - on(event: "test:plan", listener: (data: EventData.TestPlan) => void): this; - on(event: "test:start", listener: (data: EventData.TestStart) => void): this; - on(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this; - on(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this; - on(event: "test:summary", listener: (data: EventData.TestSummary) => void): this; - on(event: "test:watch:drained", listener: () => void): this; - on(event: "test:watch:restarted", listener: () => void): this; - on(event: string, listener: (...args: any[]) => void): this; - once(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this; - once(event: "test:complete", listener: (data: EventData.TestComplete) => void): this; - once(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this; - once(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this; - once(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this; - once(event: "test:fail", listener: (data: EventData.TestFail) => void): this; - once(event: "test:pass", listener: (data: EventData.TestPass) => void): this; - once(event: "test:plan", listener: (data: EventData.TestPlan) => void): this; - once(event: "test:start", listener: (data: EventData.TestStart) => void): this; - once(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this; - once(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this; - once(event: "test:summary", listener: (data: EventData.TestSummary) => void): this; - once(event: "test:watch:drained", listener: () => void): this; - once(event: "test:watch:restarted", listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this; - prependListener(event: "test:complete", listener: (data: EventData.TestComplete) => void): this; - prependListener(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this; - prependListener(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this; - prependListener(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this; - prependListener(event: "test:fail", listener: (data: EventData.TestFail) => void): this; - prependListener(event: "test:pass", listener: (data: EventData.TestPass) => void): this; - prependListener(event: "test:plan", listener: (data: EventData.TestPlan) => void): this; - prependListener(event: "test:start", listener: (data: EventData.TestStart) => void): this; - prependListener(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this; - prependListener(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this; - prependListener(event: "test:summary", listener: (data: EventData.TestSummary) => void): this; - prependListener(event: "test:watch:drained", listener: () => void): this; - prependListener(event: "test:watch:restarted", listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "test:coverage", listener: (data: EventData.TestCoverage) => void): this; - prependOnceListener(event: "test:complete", listener: (data: EventData.TestComplete) => void): this; - prependOnceListener(event: "test:dequeue", listener: (data: EventData.TestDequeue) => void): this; - prependOnceListener(event: "test:diagnostic", listener: (data: EventData.TestDiagnostic) => void): this; - prependOnceListener(event: "test:enqueue", listener: (data: EventData.TestEnqueue) => void): this; - prependOnceListener(event: "test:fail", listener: (data: EventData.TestFail) => void): this; - prependOnceListener(event: "test:pass", listener: (data: EventData.TestPass) => void): this; - prependOnceListener(event: "test:plan", listener: (data: EventData.TestPlan) => void): this; - prependOnceListener(event: "test:start", listener: (data: EventData.TestStart) => void): this; - prependOnceListener(event: "test:stderr", listener: (data: EventData.TestStderr) => void): this; - prependOnceListener(event: "test:stdout", listener: (data: EventData.TestStdout) => void): this; - prependOnceListener(event: "test:summary", listener: (data: EventData.TestSummary) => void): this; - prependOnceListener(event: "test:watch:drained", listener: () => void): this; - prependOnceListener(event: "test:watch:restarted", listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - } - namespace EventData { - interface Error extends globalThis.Error { - cause: globalThis.Error; - } - interface LocationInfo { - /** - * The column number where the test is defined, or - * `undefined` if the test was run through the REPL. - */ - column?: number; - /** - * The path of the test file, `undefined` if test was run through the REPL. - */ - file?: string; - /** - * The line number where the test is defined, or `undefined` if the test was run through the REPL. - */ - line?: number; - } - interface TestDiagnostic extends LocationInfo { - /** - * The diagnostic message. - */ - message: string; - /** - * The nesting level of the test. - */ - nesting: number; - /** - * The severity level of the diagnostic message. - * Possible values are: - * * `'info'`: Informational messages. - * * `'warn'`: Warnings. - * * `'error'`: Errors. - */ - level: "info" | "warn" | "error"; - } - interface TestCoverage { - /** - * An object containing the coverage report. - */ - summary: { - /** - * An array of coverage reports for individual files. - */ - files: Array<{ - /** - * The absolute path of the file. - */ - path: string; - /** - * The total number of lines. - */ - totalLineCount: number; - /** - * The total number of branches. - */ - totalBranchCount: number; - /** - * The total number of functions. - */ - totalFunctionCount: number; - /** - * The number of covered lines. - */ - coveredLineCount: number; - /** - * The number of covered branches. - */ - coveredBranchCount: number; - /** - * The number of covered functions. - */ - coveredFunctionCount: number; - /** - * The percentage of lines covered. - */ - coveredLinePercent: number; - /** - * The percentage of branches covered. - */ - coveredBranchPercent: number; - /** - * The percentage of functions covered. - */ - coveredFunctionPercent: number; - /** - * An array of functions representing function coverage. - */ - functions: Array<{ - /** - * The name of the function. - */ - name: string; - /** - * The line number where the function is defined. - */ - line: number; - /** - * The number of times the function was called. - */ - count: number; - }>; - /** - * An array of branches representing branch coverage. - */ - branches: Array<{ - /** - * The line number where the branch is defined. - */ - line: number; - /** - * The number of times the branch was taken. - */ - count: number; - }>; - /** - * An array of lines representing line numbers and the number of times they were covered. - */ - lines: Array<{ - /** - * The line number. - */ - line: number; - /** - * The number of times the line was covered. - */ - count: number; - }>; - }>; - /** - * An object containing whether or not the coverage for - * each coverage type. - * @since v22.9.0 - */ - thresholds: { - /** - * The function coverage threshold. - */ - function: number; - /** - * The branch coverage threshold. - */ - branch: number; - /** - * The line coverage threshold. - */ - line: number; - }; - /** - * An object containing a summary of coverage for all files. - */ - totals: { - /** - * The total number of lines. - */ - totalLineCount: number; - /** - * The total number of branches. - */ - totalBranchCount: number; - /** - * The total number of functions. - */ - totalFunctionCount: number; - /** - * The number of covered lines. - */ - coveredLineCount: number; - /** - * The number of covered branches. - */ - coveredBranchCount: number; - /** - * The number of covered functions. - */ - coveredFunctionCount: number; - /** - * The percentage of lines covered. - */ - coveredLinePercent: number; - /** - * The percentage of branches covered. - */ - coveredBranchPercent: number; - /** - * The percentage of functions covered. - */ - coveredFunctionPercent: number; - }; - /** - * The working directory when code coverage began. This - * is useful for displaying relative path names in case - * the tests changed the working directory of the Node.js process. - */ - workingDirectory: string; - }; - /** - * The nesting level of the test. - */ - nesting: number; - } - interface TestComplete extends LocationInfo { - /** - * Additional execution metadata. - */ - details: { - /** - * Whether the test passed or not. - */ - passed: boolean; - /** - * The duration of the test in milliseconds. - */ - duration_ms: number; - /** - * An error wrapping the error thrown by the test if it did not pass. - */ - error?: Error; - /** - * The type of the test, used to denote whether this is a suite. - */ - type?: "suite" | "test"; - }; - /** - * The test name. - */ - name: string; - /** - * The nesting level of the test. - */ - nesting: number; - /** - * The ordinal number of the test. - */ - testNumber: number; - /** - * Present if `context.todo` is called. - */ - todo?: string | boolean; - /** - * Present if `context.skip` is called. - */ - skip?: string | boolean; - } - interface TestDequeue extends LocationInfo { - /** - * The test name. - */ - name: string; - /** - * The nesting level of the test. - */ - nesting: number; - /** - * The test type. Either `'suite'` or `'test'`. - * @since v22.15.0 - */ - type: "suite" | "test"; - } - interface TestEnqueue extends LocationInfo { - /** - * The test name. - */ - name: string; - /** - * The nesting level of the test. - */ - nesting: number; - /** - * The test type. Either `'suite'` or `'test'`. - * @since v22.15.0 - */ - type: "suite" | "test"; - } - interface TestFail extends LocationInfo { - /** - * Additional execution metadata. - */ - details: { - /** - * The duration of the test in milliseconds. - */ - duration_ms: number; - /** - * An error wrapping the error thrown by the test. - */ - error: Error; - /** - * The type of the test, used to denote whether this is a suite. - * @since v20.0.0, v19.9.0, v18.17.0 - */ - type?: "suite" | "test"; - /** - * The attempt number of the test run, - * present only when using the `--test-rerun-failures` flag. - * @since v24.7.0 - */ - attempt?: number; - }; - /** - * The test name. - */ - name: string; - /** - * The nesting level of the test. - */ - nesting: number; - /** - * The ordinal number of the test. - */ - testNumber: number; - /** - * Present if `context.todo` is called. - */ - todo?: string | boolean; - /** - * Present if `context.skip` is called. - */ - skip?: string | boolean; - } - interface TestPass extends LocationInfo { - /** - * Additional execution metadata. - */ - details: { - /** - * The duration of the test in milliseconds. - */ - duration_ms: number; - /** - * The type of the test, used to denote whether this is a suite. - * @since 20.0.0, 19.9.0, 18.17.0 - */ - type?: "suite" | "test"; - /** - * The attempt number of the test run, - * present only when using the `--test-rerun-failures` flag. - * @since v24.7.0 - */ - attempt?: number; - /** - * The attempt number the test passed on, - * present only when using the `--test-rerun-failures` flag. - * @since v24.7.0 - */ - passed_on_attempt?: number; - }; - /** - * The test name. - */ - name: string; - /** - * The nesting level of the test. - */ - nesting: number; - /** - * The ordinal number of the test. - */ - testNumber: number; - /** - * Present if `context.todo` is called. - */ - todo?: string | boolean; - /** - * Present if `context.skip` is called. - */ - skip?: string | boolean; - } - interface TestPlan extends LocationInfo { - /** - * The nesting level of the test. - */ - nesting: number; - /** - * The number of subtests that have ran. - */ - count: number; - } - interface TestStart extends LocationInfo { - /** - * The test name. - */ - name: string; - /** - * The nesting level of the test. - */ - nesting: number; - } - interface TestStderr { - /** - * The path of the test file. - */ - file: string; - /** - * The message written to `stderr`. - */ - message: string; - } - interface TestStdout { - /** - * The path of the test file. - */ - file: string; - /** - * The message written to `stdout`. - */ - message: string; - } - interface TestSummary { - /** - * An object containing the counts of various test results. - */ - counts: { - /** - * The total number of cancelled tests. - */ - cancelled: number; - /** - * The total number of passed tests. - */ - passed: number; - /** - * The total number of skipped tests. - */ - skipped: number; - /** - * The total number of suites run. - */ - suites: number; - /** - * The total number of tests run, excluding suites. - */ - tests: number; - /** - * The total number of TODO tests. - */ - todo: number; - /** - * The total number of top level tests and suites. - */ - topLevel: number; - }; - /** - * The duration of the test run in milliseconds. - */ - duration_ms: number; - /** - * The path of the test file that generated the - * summary. If the summary corresponds to multiple files, this value is - * `undefined`. - */ - file: string | undefined; - /** - * Indicates whether or not the test run is considered - * successful or not. If any error condition occurs, such as a failing test or - * unmet coverage threshold, this value will be set to `false`. - */ - success: boolean; - } - } - /** - * An instance of `TestContext` is passed to each test function in order to - * interact with the test runner. However, the `TestContext` constructor is not - * exposed as part of the API. - * @since v18.0.0, v16.17.0 - */ - interface TestContext { - /** - * An object containing assertion methods bound to the test context. - * The top-level functions from the `node:assert` module are exposed here for the purpose of creating test plans. - * - * **Note:** Some of the functions from `node:assert` contain type assertions. If these are called via the - * TestContext `assert` object, then the context parameter in the test's function signature **must be explicitly typed** - * (ie. the parameter must have a type annotation), otherwise an error will be raised by the TypeScript compiler: - * ```ts - * import { test, type TestContext } from 'node:test'; - * - * // The test function's context parameter must have a type annotation. - * test('example', (t: TestContext) => { - * t.assert.deepStrictEqual(actual, expected); - * }); - * - * // Omitting the type annotation will result in a compilation error. - * test('example', t => { - * t.assert.deepStrictEqual(actual, expected); // Error: 't' needs an explicit type annotation. - * }); - * ``` - * @since v22.2.0, v20.15.0 - */ - readonly assert: TestContextAssert; - readonly attempt: number; - /** - * This function is used to create a hook running before subtest of the current test. - * @param fn The hook function. The first argument to this function is a `TestContext` object. - * If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - * @since v20.1.0, v18.17.0 - */ - before(fn?: TestContextHookFn, options?: HookOptions): void; - /** - * This function is used to create a hook running before each subtest of the current test. - * @param fn The hook function. The first argument to this function is a `TestContext` object. - * If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - * @since v18.8.0 - */ - beforeEach(fn?: TestContextHookFn, options?: HookOptions): void; - /** - * This function is used to create a hook that runs after the current test finishes. - * @param fn The hook function. The first argument to this function is a `TestContext` object. - * If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - * @since v18.13.0 - */ - after(fn?: TestContextHookFn, options?: HookOptions): void; - /** - * This function is used to create a hook running after each subtest of the current test. - * @param fn The hook function. The first argument to this function is a `TestContext` object. - * If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - * @since v18.8.0 - */ - afterEach(fn?: TestContextHookFn, options?: HookOptions): void; - /** - * This function is used to write diagnostics to the output. Any diagnostic - * information is included at the end of the test's results. This function does - * not return a value. - * - * ```js - * test('top level test', (t) => { - * t.diagnostic('A diagnostic message'); - * }); - * ``` - * @since v18.0.0, v16.17.0 - * @param message Message to be reported. - */ - diagnostic(message: string): void; - /** - * The absolute path of the test file that created the current test. If a test file imports - * additional modules that generate tests, the imported tests will return the path of the root test file. - * @since v22.6.0 - */ - readonly filePath: string | undefined; - /** - * The name of the test and each of its ancestors, separated by `>`. - * @since v22.3.0 - */ - readonly fullName: string; - /** - * The name of the test. - * @since v18.8.0, v16.18.0 - */ - readonly name: string; - /** - * This function is used to set the number of assertions and subtests that are expected to run - * within the test. If the number of assertions and subtests that run does not match the - * expected count, the test will fail. - * - * > Note: To make sure assertions are tracked, `t.assert` must be used instead of `assert` directly. - * - * ```js - * test('top level test', (t) => { - * t.plan(2); - * t.assert.ok('some relevant assertion here'); - * t.test('subtest', () => {}); - * }); - * ``` - * - * When working with asynchronous code, the `plan` function can be used to ensure that the - * correct number of assertions are run: - * - * ```js - * test('planning with streams', (t, done) => { - * function* generate() { - * yield 'a'; - * yield 'b'; - * yield 'c'; - * } - * const expected = ['a', 'b', 'c']; - * t.plan(expected.length); - * const stream = Readable.from(generate()); - * stream.on('data', (chunk) => { - * t.assert.strictEqual(chunk, expected.shift()); - * }); - * - * stream.on('end', () => { - * done(); - * }); - * }); - * ``` - * - * When using the `wait` option, you can control how long the test will wait for the expected assertions. - * For example, setting a maximum wait time ensures that the test will wait for asynchronous assertions - * to complete within the specified timeframe: - * - * ```js - * test('plan with wait: 2000 waits for async assertions', (t) => { - * t.plan(1, { wait: 2000 }); // Waits for up to 2 seconds for the assertion to complete. - * - * const asyncActivity = () => { - * setTimeout(() => { - * * t.assert.ok(true, 'Async assertion completed within the wait time'); - * }, 1000); // Completes after 1 second, within the 2-second wait time. - * }; - * - * asyncActivity(); // The test will pass because the assertion is completed in time. - * }); - * ``` - * - * Note: If a `wait` timeout is specified, it begins counting down only after the test function finishes executing. - * @since v22.2.0 - */ - plan(count: number, options?: TestContextPlanOptions): void; - /** - * If `shouldRunOnlyTests` is truthy, the test context will only run tests that - * have the `only` option set. Otherwise, all tests are run. If Node.js was not - * started with the `--test-only` command-line option, this function is a - * no-op. - * - * ```js - * test('top level test', (t) => { - * // The test context can be set to run subtests with the 'only' option. - * t.runOnly(true); - * return Promise.all([ - * t.test('this subtest is now skipped'), - * t.test('this subtest is run', { only: true }), - * ]); - * }); - * ``` - * @since v18.0.0, v16.17.0 - * @param shouldRunOnlyTests Whether or not to run `only` tests. - */ - runOnly(shouldRunOnlyTests: boolean): void; - /** - * ```js - * test('top level test', async (t) => { - * await fetch('some/uri', { signal: t.signal }); - * }); - * ``` - * @since v18.7.0, v16.17.0 - */ - readonly signal: AbortSignal; - /** - * This function causes the test's output to indicate the test as skipped. If `message` is provided, it is included in the output. Calling `skip()` does - * not terminate execution of the test function. This function does not return a - * value. - * - * ```js - * test('top level test', (t) => { - * // Make sure to return here as well if the test contains additional logic. - * t.skip('this is skipped'); - * }); - * ``` - * @since v18.0.0, v16.17.0 - * @param message Optional skip message. - */ - skip(message?: string): void; - /** - * This function adds a `TODO` directive to the test's output. If `message` is - * provided, it is included in the output. Calling `todo()` does not terminate - * execution of the test function. This function does not return a value. - * - * ```js - * test('top level test', (t) => { - * // This test is marked as `TODO` - * t.todo('this is a todo'); - * }); - * ``` - * @since v18.0.0, v16.17.0 - * @param message Optional `TODO` message. - */ - todo(message?: string): void; - /** - * This function is used to create subtests under the current test. This function behaves in - * the same fashion as the top level {@link test} function. - * @since v18.0.0 - * @param name The name of the test, which is displayed when reporting test results. - * Defaults to the `name` property of `fn`, or `''` if `fn` does not have a name. - * @param options Configuration options for the test. - * @param fn The function under test. This first argument to this function is a {@link TestContext} object. - * If the test uses callbacks, the callback function is passed as the second argument. - * @returns A {@link Promise} resolved with `undefined` once the test completes. - */ - test: typeof test; - /** - * This method polls a `condition` function until that function either returns - * successfully or the operation times out. - * @since v22.14.0 - * @param condition An assertion function that is invoked - * periodically until it completes successfully or the defined polling timeout - * elapses. Successful completion is defined as not throwing or rejecting. This - * function does not accept any arguments, and is allowed to return any value. - * @param options An optional configuration object for the polling operation. - * @returns Fulfilled with the value returned by `condition`. - */ - waitFor(condition: () => T, options?: TestContextWaitForOptions): Promise>; - /** - * Each test provides its own MockTracker instance. - */ - readonly mock: MockTracker; - } - interface TestContextAssert extends Pick { - /** - * This function serializes `value` and writes it to the file specified by `path`. - * - * ```js - * test('snapshot test with default serialization', (t) => { - * t.assert.fileSnapshot({ value1: 1, value2: 2 }, './snapshots/snapshot.json'); - * }); - * ``` - * - * This function differs from `context.assert.snapshot()` in the following ways: - * - * * The snapshot file path is explicitly provided by the user. - * * Each snapshot file is limited to a single snapshot value. - * * No additional escaping is performed by the test runner. - * - * These differences allow snapshot files to better support features such as syntax - * highlighting. - * @since v22.14.0 - * @param value A value to serialize to a string. If Node.js was started with - * the [`--test-update-snapshots`](https://nodejs.org/docs/latest-v24.x/api/cli.html#--test-update-snapshots) - * flag, the serialized value is written to - * `path`. Otherwise, the serialized value is compared to the contents of the - * existing snapshot file. - * @param path The file where the serialized `value` is written. - * @param options Optional configuration options. - */ - fileSnapshot(value: any, path: string, options?: AssertSnapshotOptions): void; - /** - * This function implements assertions for snapshot testing. - * ```js - * test('snapshot test with default serialization', (t) => { - * t.assert.snapshot({ value1: 1, value2: 2 }); - * }); - * - * test('snapshot test with custom serialization', (t) => { - * t.assert.snapshot({ value3: 3, value4: 4 }, { - * serializers: [(value) => JSON.stringify(value)] - * }); - * }); - * ``` - * @since v22.3.0 - * @param value A value to serialize to a string. If Node.js was started with - * the [`--test-update-snapshots`](https://nodejs.org/docs/latest-v24.x/api/cli.html#--test-update-snapshots) - * flag, the serialized value is written to - * the snapshot file. Otherwise, the serialized value is compared to the - * corresponding value in the existing snapshot file. - */ - snapshot(value: any, options?: AssertSnapshotOptions): void; - /** - * A custom assertion function registered with `assert.register()`. - */ - [name: string]: (...args: any[]) => void; - } - interface AssertSnapshotOptions { - /** - * An array of synchronous functions used to serialize `value` into a string. - * `value` is passed as the only argument to the first serializer function. - * The return value of each serializer is passed as input to the next serializer. - * Once all serializers have run, the resulting value is coerced to a string. - * - * If no serializers are provided, the test runner's default serializers are used. - */ - serializers?: ReadonlyArray<(value: any) => any> | undefined; - } - interface TestContextPlanOptions { - /** - * The wait time for the plan: - * * If `true`, the plan waits indefinitely for all assertions and subtests to run. - * * If `false`, the plan performs an immediate check after the test function completes, - * without waiting for any pending assertions or subtests. - * Any assertions or subtests that complete after this check will not be counted towards the plan. - * * If a number, it specifies the maximum wait time in milliseconds - * before timing out while waiting for expected assertions and subtests to be matched. - * If the timeout is reached, the test will fail. - * @default false - */ - wait?: boolean | number | undefined; - } - interface TestContextWaitForOptions { - /** - * The number of milliseconds to wait after an unsuccessful - * invocation of `condition` before trying again. - * @default 50 - */ - interval?: number | undefined; - /** - * The poll timeout in milliseconds. If `condition` has not - * succeeded by the time this elapses, an error occurs. - * @default 1000 - */ - timeout?: number | undefined; - } - /** - * An instance of `SuiteContext` is passed to each suite function in order to - * interact with the test runner. However, the `SuiteContext` constructor is not - * exposed as part of the API. - * @since v18.7.0, v16.17.0 - */ - interface SuiteContext { - /** - * The absolute path of the test file that created the current suite. If a test file imports - * additional modules that generate suites, the imported suites will return the path of the root test file. - * @since v22.6.0 - */ - readonly filePath: string | undefined; - /** - * The name of the suite. - * @since v18.8.0, v16.18.0 - */ - readonly name: string; - /** - * Can be used to abort test subtasks when the test has been aborted. - * @since v18.7.0, v16.17.0 - */ - readonly signal: AbortSignal; - } - interface TestOptions { - /** - * If a number is provided, then that many tests would run in parallel. - * If truthy, it would run (number of cpu cores - 1) tests in parallel. - * For subtests, it will be `Infinity` tests in parallel. - * If falsy, it would only run one test at a time. - * If unspecified, subtests inherit this value from their parent. - * @default false - */ - concurrency?: number | boolean | undefined; - /** - * If truthy, and the test context is configured to run `only` tests, then this test will be - * run. Otherwise, the test is skipped. - * @default false - */ - only?: boolean | undefined; - /** - * Allows aborting an in-progress test. - * @since v18.8.0 - */ - signal?: AbortSignal | undefined; - /** - * If truthy, the test is skipped. If a string is provided, that string is displayed in the - * test results as the reason for skipping the test. - * @default false - */ - skip?: boolean | string | undefined; - /** - * A number of milliseconds the test will fail after. If unspecified, subtests inherit this - * value from their parent. - * @default Infinity - * @since v18.7.0 - */ - timeout?: number | undefined; - /** - * If truthy, the test marked as `TODO`. If a string is provided, that string is displayed in - * the test results as the reason why the test is `TODO`. - * @default false - */ - todo?: boolean | string | undefined; - /** - * The number of assertions and subtests expected to be run in the test. - * If the number of assertions run in the test does not match the number - * specified in the plan, the test will fail. - * @default undefined - * @since v22.2.0 - */ - plan?: number | undefined; - } - /** - * This function creates a hook that runs before executing a suite. - * - * ```js - * describe('tests', async () => { - * before(() => console.log('about to run some test')); - * it('is a subtest', () => { - * assert.ok('some relevant assertion here'); - * }); - * }); - * ``` - * @since v18.8.0, v16.18.0 - * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - */ - function before(fn?: HookFn, options?: HookOptions): void; - /** - * This function creates a hook that runs after executing a suite. - * - * ```js - * describe('tests', async () => { - * after(() => console.log('finished running tests')); - * it('is a subtest', () => { - * assert.ok('some relevant assertion here'); - * }); - * }); - * ``` - * @since v18.8.0, v16.18.0 - * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - */ - function after(fn?: HookFn, options?: HookOptions): void; - /** - * This function creates a hook that runs before each test in the current suite. - * - * ```js - * describe('tests', async () => { - * beforeEach(() => console.log('about to run a test')); - * it('is a subtest', () => { - * assert.ok('some relevant assertion here'); - * }); - * }); - * ``` - * @since v18.8.0, v16.18.0 - * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - */ - function beforeEach(fn?: HookFn, options?: HookOptions): void; - /** - * This function creates a hook that runs after each test in the current suite. - * The `afterEach()` hook is run even if the test fails. - * - * ```js - * describe('tests', async () => { - * afterEach(() => console.log('finished running a test')); - * it('is a subtest', () => { - * assert.ok('some relevant assertion here'); - * }); - * }); - * ``` - * @since v18.8.0, v16.18.0 - * @param fn The hook function. If the hook uses callbacks, the callback function is passed as the second argument. - * @param options Configuration options for the hook. - */ - function afterEach(fn?: HookFn, options?: HookOptions): void; - /** - * The hook function. The first argument is the context in which the hook is called. - * If the hook uses callbacks, the callback function is passed as the second argument. - */ - type HookFn = (c: TestContext | SuiteContext, done: (result?: any) => void) => any; - /** - * The hook function. The first argument is a `TestContext` object. - * If the hook uses callbacks, the callback function is passed as the second argument. - */ - type TestContextHookFn = (t: TestContext, done: (result?: any) => void) => any; - /** - * Configuration options for hooks. - * @since v18.8.0 - */ - interface HookOptions { - /** - * Allows aborting an in-progress hook. - */ - signal?: AbortSignal | undefined; - /** - * A number of milliseconds the hook will fail after. If unspecified, subtests inherit this - * value from their parent. - * @default Infinity - */ - timeout?: number | undefined; - } - interface MockFunctionOptions { - /** - * The number of times that the mock will use the behavior of `implementation`. - * Once the mock function has been called `times` times, - * it will automatically restore the behavior of `original`. - * This value must be an integer greater than zero. - * @default Infinity - */ - times?: number | undefined; - } - interface MockMethodOptions extends MockFunctionOptions { - /** - * If `true`, `object[methodName]` is treated as a getter. - * This option cannot be used with the `setter` option. - */ - getter?: boolean | undefined; - /** - * If `true`, `object[methodName]` is treated as a setter. - * This option cannot be used with the `getter` option. - */ - setter?: boolean | undefined; - } - type Mock = F & { - mock: MockFunctionContext; - }; - interface MockModuleOptions { - /** - * If false, each call to `require()` or `import()` generates a new mock module. - * If true, subsequent calls will return the same module mock, and the mock module is inserted into the CommonJS cache. - * @default false - */ - cache?: boolean | undefined; - /** - * The value to use as the mocked module's default export. - * - * If this value is not provided, ESM mocks do not include a default export. - * If the mock is a CommonJS or builtin module, this setting is used as the value of `module.exports`. - * If this value is not provided, CJS and builtin mocks use an empty object as the value of `module.exports`. - */ - defaultExport?: any; - /** - * An object whose keys and values are used to create the named exports of the mock module. - * - * If the mock is a CommonJS or builtin module, these values are copied onto `module.exports`. - * Therefore, if a mock is created with both named exports and a non-object default export, - * the mock will throw an exception when used as a CJS or builtin module. - */ - namedExports?: object | undefined; - } - /** - * The `MockTracker` class is used to manage mocking functionality. The test runner - * module provides a top level `mock` export which is a `MockTracker` instance. - * Each test also provides its own `MockTracker` instance via the test context's `mock` property. - * @since v19.1.0, v18.13.0 - */ - interface MockTracker { - /** - * This function is used to create a mock function. - * - * The following example creates a mock function that increments a counter by one - * on each invocation. The `times` option is used to modify the mock behavior such - * that the first two invocations add two to the counter instead of one. - * - * ```js - * test('mocks a counting function', (t) => { - * let cnt = 0; - * - * function addOne() { - * cnt++; - * return cnt; - * } - * - * function addTwo() { - * cnt += 2; - * return cnt; - * } - * - * const fn = t.mock.fn(addOne, addTwo, { times: 2 }); - * - * assert.strictEqual(fn(), 2); - * assert.strictEqual(fn(), 4); - * assert.strictEqual(fn(), 5); - * assert.strictEqual(fn(), 6); - * }); - * ``` - * @since v19.1.0, v18.13.0 - * @param original An optional function to create a mock on. - * @param implementation An optional function used as the mock implementation for `original`. This is useful for creating mocks that exhibit one behavior for a specified number of calls and - * then restore the behavior of `original`. - * @param options Optional configuration options for the mock function. - * @return The mocked function. The mocked function contains a special `mock` property, which is an instance of {@link MockFunctionContext}, and can be used for inspecting and changing the - * behavior of the mocked function. - */ - fn undefined>( - original?: F, - options?: MockFunctionOptions, - ): Mock; - fn undefined, Implementation extends Function = F>( - original?: F, - implementation?: Implementation, - options?: MockFunctionOptions, - ): Mock; - /** - * This function is used to create a mock on an existing object method. The - * following example demonstrates how a mock is created on an existing object - * method. - * - * ```js - * test('spies on an object method', (t) => { - * const number = { - * value: 5, - * subtract(a) { - * return this.value - a; - * }, - * }; - * - * t.mock.method(number, 'subtract'); - * assert.strictEqual(number.subtract.mock.calls.length, 0); - * assert.strictEqual(number.subtract(3), 2); - * assert.strictEqual(number.subtract.mock.calls.length, 1); - * - * const call = number.subtract.mock.calls[0]; - * - * assert.deepStrictEqual(call.arguments, [3]); - * assert.strictEqual(call.result, 2); - * assert.strictEqual(call.error, undefined); - * assert.strictEqual(call.target, undefined); - * assert.strictEqual(call.this, number); - * }); - * ``` - * @since v19.1.0, v18.13.0 - * @param object The object whose method is being mocked. - * @param methodName The identifier of the method on `object` to mock. If `object[methodName]` is not a function, an error is thrown. - * @param implementation An optional function used as the mock implementation for `object[methodName]`. - * @param options Optional configuration options for the mock method. - * @return The mocked method. The mocked method contains a special `mock` property, which is an instance of {@link MockFunctionContext}, and can be used for inspecting and changing the - * behavior of the mocked method. - */ - method< - MockedObject extends object, - MethodName extends FunctionPropertyNames, - >( - object: MockedObject, - methodName: MethodName, - options?: MockFunctionOptions, - ): MockedObject[MethodName] extends Function ? Mock - : never; - method< - MockedObject extends object, - MethodName extends FunctionPropertyNames, - Implementation extends Function, - >( - object: MockedObject, - methodName: MethodName, - implementation: Implementation, - options?: MockFunctionOptions, - ): MockedObject[MethodName] extends Function ? Mock - : never; - method( - object: MockedObject, - methodName: keyof MockedObject, - options: MockMethodOptions, - ): Mock; - method( - object: MockedObject, - methodName: keyof MockedObject, - implementation: Function, - options: MockMethodOptions, - ): Mock; - /** - * This function is syntax sugar for `MockTracker.method` with `options.getter` set to `true`. - * @since v19.3.0, v18.13.0 - */ - getter< - MockedObject extends object, - MethodName extends keyof MockedObject, - >( - object: MockedObject, - methodName: MethodName, - options?: MockFunctionOptions, - ): Mock<() => MockedObject[MethodName]>; - getter< - MockedObject extends object, - MethodName extends keyof MockedObject, - Implementation extends Function, - >( - object: MockedObject, - methodName: MethodName, - implementation?: Implementation, - options?: MockFunctionOptions, - ): Mock<(() => MockedObject[MethodName]) | Implementation>; - /** - * This function is syntax sugar for `MockTracker.method` with `options.setter` set to `true`. - * @since v19.3.0, v18.13.0 - */ - setter< - MockedObject extends object, - MethodName extends keyof MockedObject, - >( - object: MockedObject, - methodName: MethodName, - options?: MockFunctionOptions, - ): Mock<(value: MockedObject[MethodName]) => void>; - setter< - MockedObject extends object, - MethodName extends keyof MockedObject, - Implementation extends Function, - >( - object: MockedObject, - methodName: MethodName, - implementation?: Implementation, - options?: MockFunctionOptions, - ): Mock<((value: MockedObject[MethodName]) => void) | Implementation>; - /** - * This function is used to mock the exports of ECMAScript modules, CommonJS modules, JSON modules, and - * Node.js builtin modules. Any references to the original module prior to mocking are not impacted. In - * order to enable module mocking, Node.js must be started with the - * [`--experimental-test-module-mocks`](https://nodejs.org/docs/latest-v24.x/api/cli.html#--experimental-test-module-mocks) - * command-line flag. - * - * The following example demonstrates how a mock is created for a module. - * - * ```js - * test('mocks a builtin module in both module systems', async (t) => { - * // Create a mock of 'node:readline' with a named export named 'fn', which - * // does not exist in the original 'node:readline' module. - * const mock = t.mock.module('node:readline', { - * namedExports: { fn() { return 42; } }, - * }); - * - * let esmImpl = await import('node:readline'); - * let cjsImpl = require('node:readline'); - * - * // cursorTo() is an export of the original 'node:readline' module. - * assert.strictEqual(esmImpl.cursorTo, undefined); - * assert.strictEqual(cjsImpl.cursorTo, undefined); - * assert.strictEqual(esmImpl.fn(), 42); - * assert.strictEqual(cjsImpl.fn(), 42); - * - * mock.restore(); - * - * // The mock is restored, so the original builtin module is returned. - * esmImpl = await import('node:readline'); - * cjsImpl = require('node:readline'); - * - * assert.strictEqual(typeof esmImpl.cursorTo, 'function'); - * assert.strictEqual(typeof cjsImpl.cursorTo, 'function'); - * assert.strictEqual(esmImpl.fn, undefined); - * assert.strictEqual(cjsImpl.fn, undefined); - * }); - * ``` - * @since v22.3.0 - * @experimental - * @param specifier A string identifying the module to mock. - * @param options Optional configuration options for the mock module. - */ - module(specifier: string, options?: MockModuleOptions): MockModuleContext; - /** - * Creates a mock for a property value on an object. This allows you to track and control access to a specific property, - * including how many times it is read (getter) or written (setter), and to restore the original value after mocking. - * - * ```js - * test('mocks a property value', (t) => { - * const obj = { foo: 42 }; - * const prop = t.mock.property(obj, 'foo', 100); - * - * assert.strictEqual(obj.foo, 100); - * assert.strictEqual(prop.mock.accessCount(), 1); - * assert.strictEqual(prop.mock.accesses[0].type, 'get'); - * assert.strictEqual(prop.mock.accesses[0].value, 100); - * - * obj.foo = 200; - * assert.strictEqual(prop.mock.accessCount(), 2); - * assert.strictEqual(prop.mock.accesses[1].type, 'set'); - * assert.strictEqual(prop.mock.accesses[1].value, 200); - * - * prop.mock.restore(); - * assert.strictEqual(obj.foo, 42); - * }); - * ``` - * @since v24.3.0 - * @param object The object whose value is being mocked. - * @param propertyName The identifier of the property on `object` to mock. - * @param value An optional value used as the mock value - * for `object[propertyName]`. **Default:** The original property value. - * @returns A proxy to the mocked object. The mocked object contains a - * special `mock` property, which is an instance of [`MockPropertyContext`][], and - * can be used for inspecting and changing the behavior of the mocked property. - */ - property< - MockedObject extends object, - PropertyName extends keyof MockedObject, - >( - object: MockedObject, - property: PropertyName, - value?: MockedObject[PropertyName], - ): MockedObject & { mock: MockPropertyContext }; - /** - * This function restores the default behavior of all mocks that were previously - * created by this `MockTracker` and disassociates the mocks from the `MockTracker` instance. Once disassociated, the mocks can still be used, but the `MockTracker` instance can no longer be - * used to reset their behavior or - * otherwise interact with them. - * - * After each test completes, this function is called on the test context's `MockTracker`. If the global `MockTracker` is used extensively, calling this - * function manually is recommended. - * @since v19.1.0, v18.13.0 - */ - reset(): void; - /** - * This function restores the default behavior of all mocks that were previously - * created by this `MockTracker`. Unlike `mock.reset()`, `mock.restoreAll()` does - * not disassociate the mocks from the `MockTracker` instance. - * @since v19.1.0, v18.13.0 - */ - restoreAll(): void; - readonly timers: MockTimers; - } - const mock: MockTracker; - interface MockFunctionCall< - F extends Function, - ReturnType = F extends (...args: any) => infer T ? T - : F extends abstract new(...args: any) => infer T ? T - : unknown, - Args = F extends (...args: infer Y) => any ? Y - : F extends abstract new(...args: infer Y) => any ? Y - : unknown[], - > { - /** - * An array of the arguments passed to the mock function. - */ - arguments: Args; - /** - * If the mocked function threw then this property contains the thrown value. - */ - error: unknown | undefined; - /** - * The value returned by the mocked function. - * - * If the mocked function threw, it will be `undefined`. - */ - result: ReturnType | undefined; - /** - * An `Error` object whose stack can be used to determine the callsite of the mocked function invocation. - */ - stack: Error; - /** - * If the mocked function is a constructor, this field contains the class being constructed. - * Otherwise this will be `undefined`. - */ - target: F extends abstract new(...args: any) => any ? F : undefined; - /** - * The mocked function's `this` value. - */ - this: unknown; - } - /** - * The `MockFunctionContext` class is used to inspect or manipulate the behavior of - * mocks created via the `MockTracker` APIs. - * @since v19.1.0, v18.13.0 - */ - interface MockFunctionContext { - /** - * A getter that returns a copy of the internal array used to track calls to the - * mock. Each entry in the array is an object with the following properties. - * @since v19.1.0, v18.13.0 - */ - readonly calls: MockFunctionCall[]; - /** - * This function returns the number of times that this mock has been invoked. This - * function is more efficient than checking `ctx.calls.length` because `ctx.calls` is a getter that creates a copy of the internal call tracking array. - * @since v19.1.0, v18.13.0 - * @return The number of times that this mock has been invoked. - */ - callCount(): number; - /** - * This function is used to change the behavior of an existing mock. - * - * The following example creates a mock function using `t.mock.fn()`, calls the - * mock function, and then changes the mock implementation to a different function. - * - * ```js - * test('changes a mock behavior', (t) => { - * let cnt = 0; - * - * function addOne() { - * cnt++; - * return cnt; - * } - * - * function addTwo() { - * cnt += 2; - * return cnt; - * } - * - * const fn = t.mock.fn(addOne); - * - * assert.strictEqual(fn(), 1); - * fn.mock.mockImplementation(addTwo); - * assert.strictEqual(fn(), 3); - * assert.strictEqual(fn(), 5); - * }); - * ``` - * @since v19.1.0, v18.13.0 - * @param implementation The function to be used as the mock's new implementation. - */ - mockImplementation(implementation: F): void; - /** - * This function is used to change the behavior of an existing mock for a single - * invocation. Once invocation `onCall` has occurred, the mock will revert to - * whatever behavior it would have used had `mockImplementationOnce()` not been - * called. - * - * The following example creates a mock function using `t.mock.fn()`, calls the - * mock function, changes the mock implementation to a different function for the - * next invocation, and then resumes its previous behavior. - * - * ```js - * test('changes a mock behavior once', (t) => { - * let cnt = 0; - * - * function addOne() { - * cnt++; - * return cnt; - * } - * - * function addTwo() { - * cnt += 2; - * return cnt; - * } - * - * const fn = t.mock.fn(addOne); - * - * assert.strictEqual(fn(), 1); - * fn.mock.mockImplementationOnce(addTwo); - * assert.strictEqual(fn(), 3); - * assert.strictEqual(fn(), 4); - * }); - * ``` - * @since v19.1.0, v18.13.0 - * @param implementation The function to be used as the mock's implementation for the invocation number specified by `onCall`. - * @param onCall The invocation number that will use `implementation`. If the specified invocation has already occurred then an exception is thrown. - */ - mockImplementationOnce(implementation: F, onCall?: number): void; - /** - * Resets the call history of the mock function. - * @since v19.3.0, v18.13.0 - */ - resetCalls(): void; - /** - * Resets the implementation of the mock function to its original behavior. The - * mock can still be used after calling this function. - * @since v19.1.0, v18.13.0 - */ - restore(): void; - } - /** - * @since v22.3.0 - * @experimental - */ - interface MockModuleContext { - /** - * Resets the implementation of the mock module. - * @since v22.3.0 - */ - restore(): void; - } - /** - * @since v24.3.0 - */ - class MockPropertyContext { - /** - * A getter that returns a copy of the internal array used to track accesses (get/set) to - * the mocked property. Each entry in the array is an object with the following properties: - */ - readonly accesses: Array<{ - type: "get" | "set"; - value: PropertyType; - stack: Error; - }>; - /** - * This function returns the number of times that the property was accessed. - * This function is more efficient than checking `ctx.accesses.length` because - * `ctx.accesses` is a getter that creates a copy of the internal access tracking array. - * @returns The number of times that the property was accessed (read or written). - */ - accessCount(): number; - /** - * This function is used to change the value returned by the mocked property getter. - * @param value The new value to be set as the mocked property value. - */ - mockImplementation(value: PropertyType): void; - /** - * This function is used to change the behavior of an existing mock for a single - * invocation. Once invocation `onAccess` has occurred, the mock will revert to - * whatever behavior it would have used had `mockImplementationOnce()` not been - * called. - * - * The following example creates a mock function using `t.mock.property()`, calls the - * mock property, changes the mock implementation to a different value for the - * next invocation, and then resumes its previous behavior. - * - * ```js - * test('changes a mock behavior once', (t) => { - * const obj = { foo: 1 }; - * - * const prop = t.mock.property(obj, 'foo', 5); - * - * assert.strictEqual(obj.foo, 5); - * prop.mock.mockImplementationOnce(25); - * assert.strictEqual(obj.foo, 25); - * assert.strictEqual(obj.foo, 5); - * }); - * ``` - * @param value The value to be used as the mock's - * implementation for the invocation number specified by `onAccess`. - * @param onAccess The invocation number that will use `value`. If - * the specified invocation has already occurred then an exception is thrown. - * **Default:** The number of the next invocation. - */ - mockImplementationOnce(value: PropertyType, onAccess?: number): void; - /** - * Resets the access history of the mocked property. - */ - resetAccesses(): void; - /** - * Resets the implementation of the mock property to its original behavior. The - * mock can still be used after calling this function. - */ - restore(): void; - } - interface MockTimersOptions { - apis: ReadonlyArray<"setInterval" | "setTimeout" | "setImmediate" | "Date">; - now?: number | Date | undefined; - } - /** - * Mocking timers is a technique commonly used in software testing to simulate and - * control the behavior of timers, such as `setInterval` and `setTimeout`, - * without actually waiting for the specified time intervals. - * - * The MockTimers API also allows for mocking of the `Date` constructor and - * `setImmediate`/`clearImmediate` functions. - * - * The `MockTracker` provides a top-level `timers` export - * which is a `MockTimers` instance. - * @since v20.4.0 - */ - interface MockTimers { - /** - * Enables timer mocking for the specified timers. - * - * **Note:** When you enable mocking for a specific timer, its associated - * clear function will also be implicitly mocked. - * - * **Note:** Mocking `Date` will affect the behavior of the mocked timers - * as they use the same internal clock. - * - * Example usage without setting initial time: - * - * ```js - * import { mock } from 'node:test'; - * mock.timers.enable({ apis: ['setInterval', 'Date'], now: 1234 }); - * ``` - * - * The above example enables mocking for the `Date` constructor, `setInterval` timer and - * implicitly mocks the `clearInterval` function. Only the `Date` constructor from `globalThis`, - * `setInterval` and `clearInterval` functions from `node:timers`, `node:timers/promises`, and `globalThis` will be mocked. - * - * Example usage with initial time set - * - * ```js - * import { mock } from 'node:test'; - * mock.timers.enable({ apis: ['Date'], now: 1000 }); - * ``` - * - * Example usage with initial Date object as time set - * - * ```js - * import { mock } from 'node:test'; - * mock.timers.enable({ apis: ['Date'], now: new Date() }); - * ``` - * - * Alternatively, if you call `mock.timers.enable()` without any parameters: - * - * All timers (`'setInterval'`, `'clearInterval'`, `'Date'`, `'setImmediate'`, `'clearImmediate'`, `'setTimeout'`, and `'clearTimeout'`) - * will be mocked. - * - * The `setInterval`, `clearInterval`, `setTimeout`, and `clearTimeout` functions from `node:timers`, `node:timers/promises`, - * and `globalThis` will be mocked. - * The `Date` constructor from `globalThis` will be mocked. - * - * If there is no initial epoch set, the initial date will be based on 0 in the Unix epoch. This is `January 1st, 1970, 00:00:00 UTC`. You can - * set an initial date by passing a now property to the `.enable()` method. This value will be used as the initial date for the mocked Date - * object. It can either be a positive integer, or another Date object. - * @since v20.4.0 - */ - enable(options?: MockTimersOptions): void; - /** - * You can use the `.setTime()` method to manually move the mocked date to another time. This method only accepts a positive integer. - * Note: This method will execute any mocked timers that are in the past from the new time. - * In the below example we are setting a new time for the mocked date. - * ```js - * import assert from 'node:assert'; - * import { test } from 'node:test'; - * test('sets the time of a date object', (context) => { - * // Optionally choose what to mock - * context.mock.timers.enable({ apis: ['Date'], now: 100 }); - * assert.strictEqual(Date.now(), 100); - * // Advance in time will also advance the date - * context.mock.timers.setTime(1000); - * context.mock.timers.tick(200); - * assert.strictEqual(Date.now(), 1200); - * }); - * ``` - */ - setTime(time: number): void; - /** - * This function restores the default behavior of all mocks that were previously - * created by this `MockTimers` instance and disassociates the mocks - * from the `MockTracker` instance. - * - * **Note:** After each test completes, this function is called on - * the test context's `MockTracker`. - * - * ```js - * import { mock } from 'node:test'; - * mock.timers.reset(); - * ``` - * @since v20.4.0 - */ - reset(): void; - /** - * Advances time for all mocked timers. - * - * **Note:** This diverges from how `setTimeout` in Node.js behaves and accepts - * only positive numbers. In Node.js, `setTimeout` with negative numbers is - * only supported for web compatibility reasons. - * - * The following example mocks a `setTimeout` function and - * by using `.tick` advances in - * time triggering all pending timers. - * - * ```js - * import assert from 'node:assert'; - * import { test } from 'node:test'; - * - * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { - * const fn = context.mock.fn(); - * - * context.mock.timers.enable({ apis: ['setTimeout'] }); - * - * setTimeout(fn, 9999); - * - * assert.strictEqual(fn.mock.callCount(), 0); - * - * // Advance in time - * context.mock.timers.tick(9999); - * - * assert.strictEqual(fn.mock.callCount(), 1); - * }); - * ``` - * - * Alternativelly, the `.tick` function can be called many times - * - * ```js - * import assert from 'node:assert'; - * import { test } from 'node:test'; - * - * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { - * const fn = context.mock.fn(); - * context.mock.timers.enable({ apis: ['setTimeout'] }); - * const nineSecs = 9000; - * setTimeout(fn, nineSecs); - * - * const twoSeconds = 3000; - * context.mock.timers.tick(twoSeconds); - * context.mock.timers.tick(twoSeconds); - * context.mock.timers.tick(twoSeconds); - * - * assert.strictEqual(fn.mock.callCount(), 1); - * }); - * ``` - * - * Advancing time using `.tick` will also advance the time for any `Date` object - * created after the mock was enabled (if `Date` was also set to be mocked). - * - * ```js - * import assert from 'node:assert'; - * import { test } from 'node:test'; - * - * test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { - * const fn = context.mock.fn(); - * - * context.mock.timers.enable({ apis: ['setTimeout', 'Date'] }); - * setTimeout(fn, 9999); - * - * assert.strictEqual(fn.mock.callCount(), 0); - * assert.strictEqual(Date.now(), 0); - * - * // Advance in time - * context.mock.timers.tick(9999); - * assert.strictEqual(fn.mock.callCount(), 1); - * assert.strictEqual(Date.now(), 9999); - * }); - * ``` - * @since v20.4.0 - */ - tick(milliseconds: number): void; - /** - * Triggers all pending mocked timers immediately. If the `Date` object is also - * mocked, it will also advance the `Date` object to the furthest timer's time. - * - * The example below triggers all pending timers immediately, - * causing them to execute without any delay. - * - * ```js - * import assert from 'node:assert'; - * import { test } from 'node:test'; - * - * test('runAll functions following the given order', (context) => { - * context.mock.timers.enable({ apis: ['setTimeout', 'Date'] }); - * const results = []; - * setTimeout(() => results.push(1), 9999); - * - * // Notice that if both timers have the same timeout, - * // the order of execution is guaranteed - * setTimeout(() => results.push(3), 8888); - * setTimeout(() => results.push(2), 8888); - * - * assert.deepStrictEqual(results, []); - * - * context.mock.timers.runAll(); - * assert.deepStrictEqual(results, [3, 2, 1]); - * // The Date object is also advanced to the furthest timer's time - * assert.strictEqual(Date.now(), 9999); - * }); - * ``` - * - * **Note:** The `runAll()` function is specifically designed for - * triggering timers in the context of timer mocking. - * It does not have any effect on real-time system - * clocks or actual timers outside of the mocking environment. - * @since v20.4.0 - */ - runAll(): void; - /** - * Calls {@link MockTimers.reset()}. - */ - [Symbol.dispose](): void; - } - /** - * An object whose methods are used to configure available assertions on the - * `TestContext` objects in the current process. The methods from `node:assert` - * and snapshot testing functions are available by default. - * - * It is possible to apply the same configuration to all files by placing common - * configuration code in a module - * preloaded with `--require` or `--import`. - * @since v22.14.0 - */ - namespace assert { - /** - * Defines a new assertion function with the provided name and function. If an - * assertion already exists with the same name, it is overwritten. - * @since v22.14.0 - */ - function register(name: string, fn: (this: TestContext, ...args: any[]) => void): void; - } - /** - * @since v22.3.0 - */ - namespace snapshot { - /** - * This function is used to customize the default serialization mechanism used by the test runner. - * - * By default, the test runner performs serialization by calling `JSON.stringify(value, null, 2)` on the provided value. - * `JSON.stringify()` does have limitations regarding circular structures and supported data types. - * If a more robust serialization mechanism is required, this function should be used to specify a list of custom serializers. - * - * Serializers are called in order, with the output of the previous serializer passed as input to the next. - * The final result must be a string value. - * @since v22.3.0 - * @param serializers An array of synchronous functions used as the default serializers for snapshot tests. - */ - function setDefaultSnapshotSerializers(serializers: ReadonlyArray<(value: any) => any>): void; - /** - * This function is used to set a custom resolver for the location of the snapshot file used for snapshot testing. - * By default, the snapshot filename is the same as the entry point filename with `.snapshot` appended. - * @since v22.3.0 - * @param fn A function used to compute the location of the snapshot file. - * The function receives the path of the test file as its only argument. If the - * test is not associated with a file (for example in the REPL), the input is - * undefined. `fn()` must return a string specifying the location of the snapshot file. - */ - function setResolveSnapshotPath(fn: (path: string | undefined) => string): void; - } - } - type FunctionPropertyNames = { - [K in keyof T]: T[K] extends Function ? K : never; - }[keyof T]; - export = test; -} - -/** - * The `node:test/reporters` module exposes the builtin-reporters for `node:test`. - * To access it: - * - * ```js - * import test from 'node:test/reporters'; - * ``` - * - * This module is only available under the `node:` scheme. The following will not - * work: - * - * ```js - * import test from 'node:test/reporters'; - * ``` - * @since v19.9.0 - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/test/reporters.js) - */ -declare module "node:test/reporters" { - import { Transform, TransformOptions } from "node:stream"; - import { EventData } from "node:test"; - - type TestEvent = - | { type: "test:coverage"; data: EventData.TestCoverage } - | { type: "test:complete"; data: EventData.TestComplete } - | { type: "test:dequeue"; data: EventData.TestDequeue } - | { type: "test:diagnostic"; data: EventData.TestDiagnostic } - | { type: "test:enqueue"; data: EventData.TestEnqueue } - | { type: "test:fail"; data: EventData.TestFail } - | { type: "test:pass"; data: EventData.TestPass } - | { type: "test:plan"; data: EventData.TestPlan } - | { type: "test:start"; data: EventData.TestStart } - | { type: "test:stderr"; data: EventData.TestStderr } - | { type: "test:stdout"; data: EventData.TestStdout } - | { type: "test:summary"; data: EventData.TestSummary } - | { type: "test:watch:drained"; data: undefined } - | { type: "test:watch:restarted"; data: undefined }; - type TestEventGenerator = AsyncGenerator; - - interface ReporterConstructorWrapper Transform> { - new(...args: ConstructorParameters): InstanceType; - (...args: ConstructorParameters): InstanceType; - } - - /** - * The `dot` reporter outputs the test results in a compact format, - * where each passing test is represented by a `.`, - * and each failing test is represented by a `X`. - * @since v20.0.0 - */ - function dot(source: TestEventGenerator): AsyncGenerator<"\n" | "." | "X", void>; - /** - * The `tap` reporter outputs the test results in the [TAP](https://testanything.org/) format. - * @since v20.0.0 - */ - function tap(source: TestEventGenerator): AsyncGenerator; - class SpecReporter extends Transform { - constructor(); - } - /** - * The `spec` reporter outputs the test results in a human-readable format. - * @since v20.0.0 - */ - const spec: ReporterConstructorWrapper; - /** - * The `junit` reporter outputs test results in a jUnit XML format. - * @since v21.0.0 - */ - function junit(source: TestEventGenerator): AsyncGenerator; - class LcovReporter extends Transform { - constructor(opts?: Omit); - } - /** - * The `lcov` reporter outputs test coverage when used with the - * [`--experimental-test-coverage`](https://nodejs.org/docs/latest-v24.x/api/cli.html#--experimental-test-coverage) flag. - * @since v22.0.0 - */ - const lcov: ReporterConstructorWrapper; - - export { dot, junit, lcov, spec, tap, TestEvent }; -} diff --git a/build_vtk_bundle/node_modules/@types/node/timers.d.ts b/build_vtk_bundle/node_modules/@types/node/timers.d.ts deleted file mode 100644 index 30a91c06..00000000 --- a/build_vtk_bundle/node_modules/@types/node/timers.d.ts +++ /dev/null @@ -1,285 +0,0 @@ -/** - * The `timer` module exposes a global API for scheduling functions to - * be called at some future period of time. Because the timer functions are - * globals, there is no need to import `node:timers` to use the API. - * - * The timer functions within Node.js implement a similar API as the timers API - * provided by Web Browsers but use a different internal implementation that is - * built around the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout). - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/timers.js) - */ -declare module "timers" { - import { Abortable } from "node:events"; - import * as promises from "node:timers/promises"; - export interface TimerOptions extends Abortable { - /** - * Set to `false` to indicate that the scheduled `Timeout` - * should not require the Node.js event loop to remain active. - * @default true - */ - ref?: boolean | undefined; - } - global { - namespace NodeJS { - /** - * This object is created internally and is returned from `setImmediate()`. It - * can be passed to `clearImmediate()` in order to cancel the scheduled - * actions. - * - * By default, when an immediate is scheduled, the Node.js event loop will continue - * running as long as the immediate is active. The `Immediate` object returned by - * `setImmediate()` exports both `immediate.ref()` and `immediate.unref()` - * functions that can be used to control this default behavior. - */ - interface Immediate extends RefCounted, Disposable { - /** - * If true, the `Immediate` object will keep the Node.js event loop active. - * @since v11.0.0 - */ - hasRef(): boolean; - /** - * When called, requests that the Node.js event loop _not_ exit so long as the - * `Immediate` is active. Calling `immediate.ref()` multiple times will have no - * effect. - * - * By default, all `Immediate` objects are "ref'ed", making it normally unnecessary - * to call `immediate.ref()` unless `immediate.unref()` had been called previously. - * @since v9.7.0 - * @returns a reference to `immediate` - */ - ref(): this; - /** - * When called, the active `Immediate` object will not require the Node.js event - * loop to remain active. If there is no other activity keeping the event loop - * running, the process may exit before the `Immediate` object's callback is - * invoked. Calling `immediate.unref()` multiple times will have no effect. - * @since v9.7.0 - * @returns a reference to `immediate` - */ - unref(): this; - /** - * Cancels the immediate. This is similar to calling `clearImmediate()`. - * @since v20.5.0, v18.18.0 - */ - [Symbol.dispose](): void; - _onImmediate(...args: any[]): void; - } - // Legacy interface used in Node.js v9 and prior - // TODO: remove in a future major version bump - /** @deprecated Use `NodeJS.Timeout` instead. */ - interface Timer extends RefCounted { - hasRef(): boolean; - refresh(): this; - [Symbol.toPrimitive](): number; - } - /** - * This object is created internally and is returned from `setTimeout()` and - * `setInterval()`. It can be passed to either `clearTimeout()` or - * `clearInterval()` in order to cancel the scheduled actions. - * - * By default, when a timer is scheduled using either `setTimeout()` or - * `setInterval()`, the Node.js event loop will continue running as long as the - * timer is active. Each of the `Timeout` objects returned by these functions - * export both `timeout.ref()` and `timeout.unref()` functions that can be used to - * control this default behavior. - */ - interface Timeout extends RefCounted, Disposable, Timer { - /** - * Cancels the timeout. - * @since v0.9.1 - * @legacy Use `clearTimeout()` instead. - * @returns a reference to `timeout` - */ - close(): this; - /** - * If true, the `Timeout` object will keep the Node.js event loop active. - * @since v11.0.0 - */ - hasRef(): boolean; - /** - * When called, requests that the Node.js event loop _not_ exit so long as the - * `Timeout` is active. Calling `timeout.ref()` multiple times will have no effect. - * - * By default, all `Timeout` objects are "ref'ed", making it normally unnecessary - * to call `timeout.ref()` unless `timeout.unref()` had been called previously. - * @since v0.9.1 - * @returns a reference to `timeout` - */ - ref(): this; - /** - * Sets the timer's start time to the current time, and reschedules the timer to - * call its callback at the previously specified duration adjusted to the current - * time. This is useful for refreshing a timer without allocating a new - * JavaScript object. - * - * Using this on a timer that has already called its callback will reactivate the - * timer. - * @since v10.2.0 - * @returns a reference to `timeout` - */ - refresh(): this; - /** - * When called, the active `Timeout` object will not require the Node.js event loop - * to remain active. If there is no other activity keeping the event loop running, - * the process may exit before the `Timeout` object's callback is invoked. Calling - * `timeout.unref()` multiple times will have no effect. - * @since v0.9.1 - * @returns a reference to `timeout` - */ - unref(): this; - /** - * Coerce a `Timeout` to a primitive. The primitive can be used to - * clear the `Timeout`. The primitive can only be used in the - * same thread where the timeout was created. Therefore, to use it - * across `worker_threads` it must first be passed to the correct - * thread. This allows enhanced compatibility with browser - * `setTimeout()` and `setInterval()` implementations. - * @since v14.9.0, v12.19.0 - */ - [Symbol.toPrimitive](): number; - /** - * Cancels the timeout. - * @since v20.5.0, v18.18.0 - */ - [Symbol.dispose](): void; - _onTimeout(...args: any[]): void; - } - } - /** - * Schedules the "immediate" execution of the `callback` after I/O events' - * callbacks. - * - * When multiple calls to `setImmediate()` are made, the `callback` functions are - * queued for execution in the order in which they are created. The entire callback - * queue is processed every event loop iteration. If an immediate timer is queued - * from inside an executing callback, that timer will not be triggered until the - * next event loop iteration. - * - * If `callback` is not a function, a `TypeError` will be thrown. - * - * This method has a custom variant for promises that is available using - * `timersPromises.setImmediate()`. - * @since v0.9.1 - * @param callback The function to call at the end of this turn of - * the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout) - * @param args Optional arguments to pass when the `callback` is called. - * @returns for use with `clearImmediate()` - */ - function setImmediate( - callback: (...args: TArgs) => void, - ...args: TArgs - ): NodeJS.Immediate; - // Allow a single void-accepting argument to be optional in arguments lists. - // Allows usage such as `new Promise(resolve => setTimeout(resolve, ms))` (#54258) - // eslint-disable-next-line @typescript-eslint/no-invalid-void-type - function setImmediate(callback: (_: void) => void): NodeJS.Immediate; - namespace setImmediate { - import __promisify__ = promises.setImmediate; - export { __promisify__ }; - } - /** - * Schedules repeated execution of `callback` every `delay` milliseconds. - * - * When `delay` is larger than `2147483647` or less than `1` or `NaN`, the `delay` - * will be set to `1`. Non-integer delays are truncated to an integer. - * - * If `callback` is not a function, a `TypeError` will be thrown. - * - * This method has a custom variant for promises that is available using - * `timersPromises.setInterval()`. - * @since v0.0.1 - * @param callback The function to call when the timer elapses. - * @param delay The number of milliseconds to wait before calling the - * `callback`. **Default:** `1`. - * @param args Optional arguments to pass when the `callback` is called. - * @returns for use with `clearInterval()` - */ - function setInterval( - callback: (...args: TArgs) => void, - delay?: number, - ...args: TArgs - ): NodeJS.Timeout; - // Allow a single void-accepting argument to be optional in arguments lists. - // Allows usage such as `new Promise(resolve => setTimeout(resolve, ms))` (#54258) - // eslint-disable-next-line @typescript-eslint/no-invalid-void-type - function setInterval(callback: (_: void) => void, delay?: number): NodeJS.Timeout; - /** - * Schedules execution of a one-time `callback` after `delay` milliseconds. - * - * The `callback` will likely not be invoked in precisely `delay` milliseconds. - * Node.js makes no guarantees about the exact timing of when callbacks will fire, - * nor of their ordering. The callback will be called as close as possible to the - * time specified. - * - * When `delay` is larger than `2147483647` or less than `1` or `NaN`, the `delay` - * will be set to `1`. Non-integer delays are truncated to an integer. - * - * If `callback` is not a function, a `TypeError` will be thrown. - * - * This method has a custom variant for promises that is available using - * `timersPromises.setTimeout()`. - * @since v0.0.1 - * @param callback The function to call when the timer elapses. - * @param delay The number of milliseconds to wait before calling the - * `callback`. **Default:** `1`. - * @param args Optional arguments to pass when the `callback` is called. - * @returns for use with `clearTimeout()` - */ - function setTimeout( - callback: (...args: TArgs) => void, - delay?: number, - ...args: TArgs - ): NodeJS.Timeout; - // Allow a single void-accepting argument to be optional in arguments lists. - // Allows usage such as `new Promise(resolve => setTimeout(resolve, ms))` (#54258) - // eslint-disable-next-line @typescript-eslint/no-invalid-void-type - function setTimeout(callback: (_: void) => void, delay?: number): NodeJS.Timeout; - namespace setTimeout { - import __promisify__ = promises.setTimeout; - export { __promisify__ }; - } - /** - * Cancels an `Immediate` object created by `setImmediate()`. - * @since v0.9.1 - * @param immediate An `Immediate` object as returned by `setImmediate()`. - */ - function clearImmediate(immediate: NodeJS.Immediate | undefined): void; - /** - * Cancels a `Timeout` object created by `setInterval()`. - * @since v0.0.1 - * @param timeout A `Timeout` object as returned by `setInterval()` - * or the primitive of the `Timeout` object as a string or a number. - */ - function clearInterval(timeout: NodeJS.Timeout | string | number | undefined): void; - /** - * Cancels a `Timeout` object created by `setTimeout()`. - * @since v0.0.1 - * @param timeout A `Timeout` object as returned by `setTimeout()` - * or the primitive of the `Timeout` object as a string or a number. - */ - function clearTimeout(timeout: NodeJS.Timeout | string | number | undefined): void; - /** - * The `queueMicrotask()` method queues a microtask to invoke `callback`. If - * `callback` throws an exception, the `process` object `'uncaughtException'` - * event will be emitted. - * - * The microtask queue is managed by V8 and may be used in a similar manner to - * the `process.nextTick()` queue, which is managed by Node.js. The - * `process.nextTick()` queue is always processed before the microtask queue - * within each turn of the Node.js event loop. - * @since v11.0.0 - * @param callback Function to be queued. - */ - function queueMicrotask(callback: () => void): void; - } - import clearImmediate = globalThis.clearImmediate; - import clearInterval = globalThis.clearInterval; - import clearTimeout = globalThis.clearTimeout; - import setImmediate = globalThis.setImmediate; - import setInterval = globalThis.setInterval; - import setTimeout = globalThis.setTimeout; - export { clearImmediate, clearInterval, clearTimeout, promises, setImmediate, setInterval, setTimeout }; -} -declare module "node:timers" { - export * from "timers"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/timers/promises.d.ts b/build_vtk_bundle/node_modules/@types/node/timers/promises.d.ts deleted file mode 100644 index 7ad2b297..00000000 --- a/build_vtk_bundle/node_modules/@types/node/timers/promises.d.ts +++ /dev/null @@ -1,108 +0,0 @@ -/** - * The `timers/promises` API provides an alternative set of timer functions - * that return `Promise` objects. The API is accessible via - * `require('node:timers/promises')`. - * - * ```js - * import { - * setTimeout, - * setImmediate, - * setInterval, - * } from 'node:timers/promises'; - * ``` - * @since v15.0.0 - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/timers/promises.js) - */ -declare module "timers/promises" { - import { TimerOptions } from "node:timers"; - /** - * ```js - * import { - * setTimeout, - * } from 'node:timers/promises'; - * - * const res = await setTimeout(100, 'result'); - * - * console.log(res); // Prints 'result' - * ``` - * @since v15.0.0 - * @param delay The number of milliseconds to wait before fulfilling the - * promise. **Default:** `1`. - * @param value A value with which the promise is fulfilled. - */ - function setTimeout(delay?: number, value?: T, options?: TimerOptions): Promise; - /** - * ```js - * import { - * setImmediate, - * } from 'node:timers/promises'; - * - * const res = await setImmediate('result'); - * - * console.log(res); // Prints 'result' - * ``` - * @since v15.0.0 - * @param value A value with which the promise is fulfilled. - */ - function setImmediate(value?: T, options?: TimerOptions): Promise; - /** - * Returns an async iterator that generates values in an interval of `delay` ms. - * If `ref` is `true`, you need to call `next()` of async iterator explicitly - * or implicitly to keep the event loop alive. - * - * ```js - * import { - * setInterval, - * } from 'node:timers/promises'; - * - * const interval = 100; - * for await (const startTime of setInterval(interval, Date.now())) { - * const now = Date.now(); - * console.log(now); - * if ((now - startTime) > 1000) - * break; - * } - * console.log(Date.now()); - * ``` - * @since v15.9.0 - * @param delay The number of milliseconds to wait between iterations. - * **Default:** `1`. - * @param value A value with which the iterator returns. - */ - function setInterval(delay?: number, value?: T, options?: TimerOptions): NodeJS.AsyncIterator; - interface Scheduler { - /** - * An experimental API defined by the [Scheduling APIs](https://github.com/WICG/scheduling-apis) draft specification - * being developed as a standard Web Platform API. - * - * Calling `timersPromises.scheduler.wait(delay, options)` is roughly equivalent - * to calling `timersPromises.setTimeout(delay, undefined, options)` except that - * the `ref` option is not supported. - * - * ```js - * import { scheduler } from 'node:timers/promises'; - * - * await scheduler.wait(1000); // Wait one second before continuing - * ``` - * @since v17.3.0, v16.14.0 - * @experimental - * @param delay The number of milliseconds to wait before resolving the - * promise. - */ - wait(delay: number, options?: { signal?: AbortSignal }): Promise; - /** - * An experimental API defined by the [Scheduling APIs](https://github.com/WICG/scheduling-apis) draft specification - * being developed as a standard Web Platform API. - * - * Calling `timersPromises.scheduler.yield()` is equivalent to calling - * `timersPromises.setImmediate()` with no arguments. - * @since v17.3.0, v16.14.0 - * @experimental - */ - yield(): Promise; - } - const scheduler: Scheduler; -} -declare module "node:timers/promises" { - export * from "timers/promises"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/tls.d.ts b/build_vtk_bundle/node_modules/@types/node/tls.d.ts deleted file mode 100644 index 5d52de81..00000000 --- a/build_vtk_bundle/node_modules/@types/node/tls.d.ts +++ /dev/null @@ -1,1269 +0,0 @@ -/** - * The `node:tls` module provides an implementation of the Transport Layer Security - * (TLS) and Secure Socket Layer (SSL) protocols that is built on top of OpenSSL. - * The module can be accessed using: - * - * ```js - * import tls from 'node:tls'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/tls.js) - */ -declare module "tls" { - import { NonSharedBuffer } from "node:buffer"; - import { X509Certificate } from "node:crypto"; - import * as net from "node:net"; - import * as stream from "stream"; - const CLIENT_RENEG_LIMIT: number; - const CLIENT_RENEG_WINDOW: number; - interface Certificate { - /** - * Country code. - */ - C: string; - /** - * Street. - */ - ST: string; - /** - * Locality. - */ - L: string; - /** - * Organization. - */ - O: string; - /** - * Organizational unit. - */ - OU: string; - /** - * Common name. - */ - CN: string; - } - interface PeerCertificate { - /** - * `true` if a Certificate Authority (CA), `false` otherwise. - * @since v18.13.0 - */ - ca: boolean; - /** - * The DER encoded X.509 certificate data. - */ - raw: NonSharedBuffer; - /** - * The certificate subject. - */ - subject: Certificate; - /** - * The certificate issuer, described in the same terms as the `subject`. - */ - issuer: Certificate; - /** - * The date-time the certificate is valid from. - */ - valid_from: string; - /** - * The date-time the certificate is valid to. - */ - valid_to: string; - /** - * The certificate serial number, as a hex string. - */ - serialNumber: string; - /** - * The SHA-1 digest of the DER encoded certificate. - * It is returned as a `:` separated hexadecimal string. - */ - fingerprint: string; - /** - * The SHA-256 digest of the DER encoded certificate. - * It is returned as a `:` separated hexadecimal string. - */ - fingerprint256: string; - /** - * The SHA-512 digest of the DER encoded certificate. - * It is returned as a `:` separated hexadecimal string. - */ - fingerprint512: string; - /** - * The extended key usage, a set of OIDs. - */ - ext_key_usage?: string[]; - /** - * A string containing concatenated names for the subject, - * an alternative to the `subject` names. - */ - subjectaltname?: string; - /** - * An array describing the AuthorityInfoAccess, used with OCSP. - */ - infoAccess?: NodeJS.Dict; - /** - * For RSA keys: The RSA bit size. - * - * For EC keys: The key size in bits. - */ - bits?: number; - /** - * The RSA exponent, as a string in hexadecimal number notation. - */ - exponent?: string; - /** - * The RSA modulus, as a hexadecimal string. - */ - modulus?: string; - /** - * The public key. - */ - pubkey?: NonSharedBuffer; - /** - * The ASN.1 name of the OID of the elliptic curve. - * Well-known curves are identified by an OID. - * While it is unusual, it is possible that the curve - * is identified by its mathematical properties, - * in which case it will not have an OID. - */ - asn1Curve?: string; - /** - * The NIST name for the elliptic curve, if it has one - * (not all well-known curves have been assigned names by NIST). - */ - nistCurve?: string; - } - interface DetailedPeerCertificate extends PeerCertificate { - /** - * The issuer certificate object. - * For self-signed certificates, this may be a circular reference. - */ - issuerCertificate: DetailedPeerCertificate; - } - interface CipherNameAndProtocol { - /** - * The cipher name. - */ - name: string; - /** - * SSL/TLS protocol version. - */ - version: string; - /** - * IETF name for the cipher suite. - */ - standardName: string; - } - interface EphemeralKeyInfo { - /** - * The supported types are 'DH' and 'ECDH'. - */ - type: string; - /** - * The name property is available only when type is 'ECDH'. - */ - name?: string | undefined; - /** - * The size of parameter of an ephemeral key exchange. - */ - size: number; - } - interface KeyObject { - /** - * Private keys in PEM format. - */ - pem: string | Buffer; - /** - * Optional passphrase. - */ - passphrase?: string | undefined; - } - interface PxfObject { - /** - * PFX or PKCS12 encoded private key and certificate chain. - */ - buf: string | Buffer; - /** - * Optional passphrase. - */ - passphrase?: string | undefined; - } - interface TLSSocketOptions extends SecureContextOptions, CommonConnectionOptions { - /** - * If true the TLS socket will be instantiated in server-mode. - * Defaults to false. - */ - isServer?: boolean | undefined; - /** - * An optional net.Server instance. - */ - server?: net.Server | undefined; - /** - * An optional Buffer instance containing a TLS session. - */ - session?: Buffer | undefined; - /** - * If true, specifies that the OCSP status request extension will be - * added to the client hello and an 'OCSPResponse' event will be - * emitted on the socket before establishing a secure communication - */ - requestOCSP?: boolean | undefined; - } - /** - * Performs transparent encryption of written data and all required TLS - * negotiation. - * - * Instances of `tls.TLSSocket` implement the duplex `Stream` interface. - * - * Methods that return TLS connection metadata (e.g.{@link TLSSocket.getPeerCertificate}) will only return data while the - * connection is open. - * @since v0.11.4 - */ - class TLSSocket extends net.Socket { - /** - * Construct a new tls.TLSSocket object from an existing TCP socket. - */ - constructor(socket: net.Socket | stream.Duplex, options?: TLSSocketOptions); - /** - * This property is `true` if the peer certificate was signed by one of the CAs - * specified when creating the `tls.TLSSocket` instance, otherwise `false`. - * @since v0.11.4 - */ - authorized: boolean; - /** - * Returns the reason why the peer's certificate was not been verified. This - * property is set only when `tlsSocket.authorized === false`. - * @since v0.11.4 - */ - authorizationError: Error; - /** - * Always returns `true`. This may be used to distinguish TLS sockets from regular`net.Socket` instances. - * @since v0.11.4 - */ - encrypted: true; - /** - * String containing the selected ALPN protocol. - * Before a handshake has completed, this value is always null. - * When a handshake is completed but not ALPN protocol was selected, tlsSocket.alpnProtocol equals false. - */ - alpnProtocol: string | false | null; - /** - * Returns an object representing the local certificate. The returned object has - * some properties corresponding to the fields of the certificate. - * - * See {@link TLSSocket.getPeerCertificate} for an example of the certificate - * structure. - * - * If there is no local certificate, an empty object will be returned. If the - * socket has been destroyed, `null` will be returned. - * @since v11.2.0 - */ - getCertificate(): PeerCertificate | object | null; - /** - * Returns an object containing information on the negotiated cipher suite. - * - * For example, a TLSv1.2 protocol with AES256-SHA cipher: - * - * ```json - * { - * "name": "AES256-SHA", - * "standardName": "TLS_RSA_WITH_AES_256_CBC_SHA", - * "version": "SSLv3" - * } - * ``` - * - * See [SSL\_CIPHER\_get\_name](https://www.openssl.org/docs/man1.1.1/man3/SSL_CIPHER_get_name.html) for more information. - * @since v0.11.4 - */ - getCipher(): CipherNameAndProtocol; - /** - * Returns an object representing the type, name, and size of parameter of - * an ephemeral key exchange in `perfect forward secrecy` on a client - * connection. It returns an empty object when the key exchange is not - * ephemeral. As this is only supported on a client socket; `null` is returned - * if called on a server socket. The supported types are `'DH'` and `'ECDH'`. The `name` property is available only when type is `'ECDH'`. - * - * For example: `{ type: 'ECDH', name: 'prime256v1', size: 256 }`. - * @since v5.0.0 - */ - getEphemeralKeyInfo(): EphemeralKeyInfo | object | null; - /** - * As the `Finished` messages are message digests of the complete handshake - * (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can - * be used for external authentication procedures when the authentication - * provided by SSL/TLS is not desired or is not enough. - * - * Corresponds to the `SSL_get_finished` routine in OpenSSL and may be used - * to implement the `tls-unique` channel binding from [RFC 5929](https://tools.ietf.org/html/rfc5929). - * @since v9.9.0 - * @return The latest `Finished` message that has been sent to the socket as part of a SSL/TLS handshake, or `undefined` if no `Finished` message has been sent yet. - */ - getFinished(): NonSharedBuffer | undefined; - /** - * Returns an object representing the peer's certificate. If the peer does not - * provide a certificate, an empty object will be returned. If the socket has been - * destroyed, `null` will be returned. - * - * If the full certificate chain was requested, each certificate will include an`issuerCertificate` property containing an object representing its issuer's - * certificate. - * @since v0.11.4 - * @param detailed Include the full certificate chain if `true`, otherwise include just the peer's certificate. - * @return A certificate object. - */ - getPeerCertificate(detailed: true): DetailedPeerCertificate; - getPeerCertificate(detailed?: false): PeerCertificate; - getPeerCertificate(detailed?: boolean): PeerCertificate | DetailedPeerCertificate; - /** - * As the `Finished` messages are message digests of the complete handshake - * (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can - * be used for external authentication procedures when the authentication - * provided by SSL/TLS is not desired or is not enough. - * - * Corresponds to the `SSL_get_peer_finished` routine in OpenSSL and may be used - * to implement the `tls-unique` channel binding from [RFC 5929](https://tools.ietf.org/html/rfc5929). - * @since v9.9.0 - * @return The latest `Finished` message that is expected or has actually been received from the socket as part of a SSL/TLS handshake, or `undefined` if there is no `Finished` message so - * far. - */ - getPeerFinished(): NonSharedBuffer | undefined; - /** - * Returns a string containing the negotiated SSL/TLS protocol version of the - * current connection. The value `'unknown'` will be returned for connected - * sockets that have not completed the handshaking process. The value `null` will - * be returned for server sockets or disconnected client sockets. - * - * Protocol versions are: - * - * * `'SSLv3'` - * * `'TLSv1'` - * * `'TLSv1.1'` - * * `'TLSv1.2'` - * * `'TLSv1.3'` - * - * See the OpenSSL [`SSL_get_version`](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html) documentation for more information. - * @since v5.7.0 - */ - getProtocol(): string | null; - /** - * Returns the TLS session data or `undefined` if no session was - * negotiated. On the client, the data can be provided to the `session` option of {@link connect} to resume the connection. On the server, it may be useful - * for debugging. - * - * See `Session Resumption` for more information. - * - * Note: `getSession()` works only for TLSv1.2 and below. For TLSv1.3, applications - * must use the `'session'` event (it also works for TLSv1.2 and below). - * @since v0.11.4 - */ - getSession(): NonSharedBuffer | undefined; - /** - * See [SSL\_get\_shared\_sigalgs](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_shared_sigalgs.html) for more information. - * @since v12.11.0 - * @return List of signature algorithms shared between the server and the client in the order of decreasing preference. - */ - getSharedSigalgs(): string[]; - /** - * For a client, returns the TLS session ticket if one is available, or`undefined`. For a server, always returns `undefined`. - * - * It may be useful for debugging. - * - * See `Session Resumption` for more information. - * @since v0.11.4 - */ - getTLSTicket(): NonSharedBuffer | undefined; - /** - * See `Session Resumption` for more information. - * @since v0.5.6 - * @return `true` if the session was reused, `false` otherwise. - */ - isSessionReused(): boolean; - /** - * The `tlsSocket.renegotiate()` method initiates a TLS renegotiation process. - * Upon completion, the `callback` function will be passed a single argument - * that is either an `Error` (if the request failed) or `null`. - * - * This method can be used to request a peer's certificate after the secure - * connection has been established. - * - * When running as the server, the socket will be destroyed with an error after `handshakeTimeout` timeout. - * - * For TLSv1.3, renegotiation cannot be initiated, it is not supported by the - * protocol. - * @since v0.11.8 - * @param callback If `renegotiate()` returned `true`, callback is attached once to the `'secure'` event. If `renegotiate()` returned `false`, `callback` will be called in the next tick with - * an error, unless the `tlsSocket` has been destroyed, in which case `callback` will not be called at all. - * @return `true` if renegotiation was initiated, `false` otherwise. - */ - renegotiate( - options: { - rejectUnauthorized?: boolean | undefined; - requestCert?: boolean | undefined; - }, - callback: (err: Error | null) => void, - ): undefined | boolean; - /** - * The `tlsSocket.setKeyCert()` method sets the private key and certificate to use for the socket. - * This is mainly useful if you wish to select a server certificate from a TLS server's `ALPNCallback`. - * @since v22.5.0, v20.17.0 - * @param context An object containing at least `key` and `cert` properties from the {@link createSecureContext()} `options`, - * or a TLS context object created with {@link createSecureContext()} itself. - */ - setKeyCert(context: SecureContextOptions | SecureContext): void; - /** - * The `tlsSocket.setMaxSendFragment()` method sets the maximum TLS fragment size. - * Returns `true` if setting the limit succeeded; `false` otherwise. - * - * Smaller fragment sizes decrease the buffering latency on the client: larger - * fragments are buffered by the TLS layer until the entire fragment is received - * and its integrity is verified; large fragments can span multiple roundtrips - * and their processing can be delayed due to packet loss or reordering. However, - * smaller fragments add extra TLS framing bytes and CPU overhead, which may - * decrease overall server throughput. - * @since v0.11.11 - * @param [size=16384] The maximum TLS fragment size. The maximum value is `16384`. - */ - setMaxSendFragment(size: number): boolean; - /** - * Disables TLS renegotiation for this `TLSSocket` instance. Once called, attempts - * to renegotiate will trigger an `'error'` event on the `TLSSocket`. - * @since v8.4.0 - */ - disableRenegotiation(): void; - /** - * When enabled, TLS packet trace information is written to `stderr`. This can be - * used to debug TLS connection problems. - * - * The format of the output is identical to the output of`openssl s_client -trace` or `openssl s_server -trace`. While it is produced by - * OpenSSL's `SSL_trace()` function, the format is undocumented, can change - * without notice, and should not be relied on. - * @since v12.2.0 - */ - enableTrace(): void; - /** - * Returns the peer certificate as an `X509Certificate` object. - * - * If there is no peer certificate, or the socket has been destroyed,`undefined` will be returned. - * @since v15.9.0 - */ - getPeerX509Certificate(): X509Certificate | undefined; - /** - * Returns the local certificate as an `X509Certificate` object. - * - * If there is no local certificate, or the socket has been destroyed,`undefined` will be returned. - * @since v15.9.0 - */ - getX509Certificate(): X509Certificate | undefined; - /** - * Keying material is used for validations to prevent different kind of attacks in - * network protocols, for example in the specifications of IEEE 802.1X. - * - * Example - * - * ```js - * const keyingMaterial = tlsSocket.exportKeyingMaterial( - * 128, - * 'client finished'); - * - * /* - * Example return value of keyingMaterial: - * - * - * ``` - * - * See the OpenSSL [`SSL_export_keying_material`](https://www.openssl.org/docs/man1.1.1/man3/SSL_export_keying_material.html) documentation for more - * information. - * @since v13.10.0, v12.17.0 - * @param length number of bytes to retrieve from keying material - * @param label an application specific label, typically this will be a value from the [IANA Exporter Label - * Registry](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#exporter-labels). - * @param context Optionally provide a context. - * @return requested bytes of the keying material - */ - exportKeyingMaterial(length: number, label: string, context: Buffer): NonSharedBuffer; - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this; - addListener(event: "secureConnect", listener: () => void): this; - addListener(event: "session", listener: (session: NonSharedBuffer) => void): this; - addListener(event: "keylog", listener: (line: NonSharedBuffer) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "OCSPResponse", response: NonSharedBuffer): boolean; - emit(event: "secureConnect"): boolean; - emit(event: "session", session: NonSharedBuffer): boolean; - emit(event: "keylog", line: NonSharedBuffer): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this; - on(event: "secureConnect", listener: () => void): this; - on(event: "session", listener: (session: NonSharedBuffer) => void): this; - on(event: "keylog", listener: (line: NonSharedBuffer) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this; - once(event: "secureConnect", listener: () => void): this; - once(event: "session", listener: (session: NonSharedBuffer) => void): this; - once(event: "keylog", listener: (line: NonSharedBuffer) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this; - prependListener(event: "secureConnect", listener: () => void): this; - prependListener(event: "session", listener: (session: NonSharedBuffer) => void): this; - prependListener(event: "keylog", listener: (line: NonSharedBuffer) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "OCSPResponse", listener: (response: NonSharedBuffer) => void): this; - prependOnceListener(event: "secureConnect", listener: () => void): this; - prependOnceListener(event: "session", listener: (session: NonSharedBuffer) => void): this; - prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer) => void): this; - } - interface CommonConnectionOptions { - /** - * An optional TLS context object from tls.createSecureContext() - */ - secureContext?: SecureContext | undefined; - /** - * When enabled, TLS packet trace information is written to `stderr`. This can be - * used to debug TLS connection problems. - * @default false - */ - enableTrace?: boolean | undefined; - /** - * If true the server will request a certificate from clients that - * connect and attempt to verify that certificate. Defaults to - * false. - */ - requestCert?: boolean | undefined; - /** - * An array of strings or a Buffer naming possible ALPN protocols. - * (Protocols should be ordered by their priority.) - */ - ALPNProtocols?: readonly string[] | NodeJS.ArrayBufferView | undefined; - /** - * SNICallback(servername, cb) A function that will be - * called if the client supports SNI TLS extension. Two arguments - * will be passed when called: servername and cb. SNICallback should - * invoke cb(null, ctx), where ctx is a SecureContext instance. - * (tls.createSecureContext(...) can be used to get a proper - * SecureContext.) If SNICallback wasn't provided the default callback - * with high-level API will be used (see below). - */ - SNICallback?: ((servername: string, cb: (err: Error | null, ctx?: SecureContext) => void) => void) | undefined; - /** - * If true the server will reject any connection which is not - * authorized with the list of supplied CAs. This option only has an - * effect if requestCert is true. - * @default true - */ - rejectUnauthorized?: boolean | undefined; - } - interface TlsOptions extends SecureContextOptions, CommonConnectionOptions, net.ServerOpts { - /** - * Abort the connection if the SSL/TLS handshake does not finish in the - * specified number of milliseconds. A 'tlsClientError' is emitted on - * the tls.Server object whenever a handshake times out. Default: - * 120000 (120 seconds). - */ - handshakeTimeout?: number | undefined; - /** - * The number of seconds after which a TLS session created by the - * server will no longer be resumable. See Session Resumption for more - * information. Default: 300. - */ - sessionTimeout?: number | undefined; - /** - * 48-bytes of cryptographically strong pseudo-random data. - */ - ticketKeys?: Buffer | undefined; - /** - * @param socket - * @param identity identity parameter sent from the client. - * @return pre-shared key that must either be - * a buffer or `null` to stop the negotiation process. Returned PSK must be - * compatible with the selected cipher's digest. - * - * When negotiating TLS-PSK (pre-shared keys), this function is called - * with the identity provided by the client. - * If the return value is `null` the negotiation process will stop and an - * "unknown_psk_identity" alert message will be sent to the other party. - * If the server wishes to hide the fact that the PSK identity was not known, - * the callback must provide some random data as `psk` to make the connection - * fail with "decrypt_error" before negotiation is finished. - * PSK ciphers are disabled by default, and using TLS-PSK thus - * requires explicitly specifying a cipher suite with the `ciphers` option. - * More information can be found in the RFC 4279. - */ - pskCallback?: ((socket: TLSSocket, identity: string) => NodeJS.ArrayBufferView | null) | undefined; - /** - * hint to send to a client to help - * with selecting the identity during TLS-PSK negotiation. Will be ignored - * in TLS 1.3. Upon failing to set pskIdentityHint `tlsClientError` will be - * emitted with `ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED` code. - */ - pskIdentityHint?: string | undefined; - } - interface PSKCallbackNegotation { - psk: NodeJS.ArrayBufferView; - identity: string; - } - interface ConnectionOptions extends SecureContextOptions, CommonConnectionOptions { - host?: string | undefined; - port?: number | undefined; - path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored. - socket?: stream.Duplex | undefined; // Establish secure connection on a given socket rather than creating a new socket - checkServerIdentity?: typeof checkServerIdentity | undefined; - servername?: string | undefined; // SNI TLS Extension - session?: Buffer | undefined; - minDHSize?: number | undefined; - lookup?: net.LookupFunction | undefined; - timeout?: number | undefined; - /** - * When negotiating TLS-PSK (pre-shared keys), this function is called - * with optional identity `hint` provided by the server or `null` - * in case of TLS 1.3 where `hint` was removed. - * It will be necessary to provide a custom `tls.checkServerIdentity()` - * for the connection as the default one will try to check hostname/IP - * of the server against the certificate but that's not applicable for PSK - * because there won't be a certificate present. - * More information can be found in the RFC 4279. - * - * @param hint message sent from the server to help client - * decide which identity to use during negotiation. - * Always `null` if TLS 1.3 is used. - * @returns Return `null` to stop the negotiation process. `psk` must be - * compatible with the selected cipher's digest. - * `identity` must use UTF-8 encoding. - */ - pskCallback?: ((hint: string | null) => PSKCallbackNegotation | null) | undefined; - } - /** - * Accepts encrypted connections using TLS or SSL. - * @since v0.3.2 - */ - class Server extends net.Server { - constructor(secureConnectionListener?: (socket: TLSSocket) => void); - constructor(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void); - /** - * The `server.addContext()` method adds a secure context that will be used if - * the client request's SNI name matches the supplied `hostname` (or wildcard). - * - * When there are multiple matching contexts, the most recently added one is - * used. - * @since v0.5.3 - * @param hostname A SNI host name or wildcard (e.g. `'*'`) - * @param context An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc), or a TLS context object created - * with {@link createSecureContext} itself. - */ - addContext(hostname: string, context: SecureContextOptions | SecureContext): void; - /** - * Returns the session ticket keys. - * - * See `Session Resumption` for more information. - * @since v3.0.0 - * @return A 48-byte buffer containing the session ticket keys. - */ - getTicketKeys(): NonSharedBuffer; - /** - * The `server.setSecureContext()` method replaces the secure context of an - * existing server. Existing connections to the server are not interrupted. - * @since v11.0.0 - * @param options An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc). - */ - setSecureContext(options: SecureContextOptions): void; - /** - * Sets the session ticket keys. - * - * Changes to the ticket keys are effective only for future server connections. - * Existing or currently pending server connections will use the previous keys. - * - * See `Session Resumption` for more information. - * @since v3.0.0 - * @param keys A 48-byte buffer containing the session ticket keys. - */ - setTicketKeys(keys: Buffer): void; - /** - * events.EventEmitter - * 1. tlsClientError - * 2. newSession - * 3. OCSPRequest - * 4. resumeSession - * 5. secureConnection - * 6. keylog - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; - addListener( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - addListener( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - addListener( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - addListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; - addListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "tlsClientError", err: Error, tlsSocket: TLSSocket): boolean; - emit( - event: "newSession", - sessionId: NonSharedBuffer, - sessionData: NonSharedBuffer, - callback: () => void, - ): boolean; - emit( - event: "OCSPRequest", - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ): boolean; - emit( - event: "resumeSession", - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ): boolean; - emit(event: "secureConnection", tlsSocket: TLSSocket): boolean; - emit(event: "keylog", line: NonSharedBuffer, tlsSocket: TLSSocket): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; - on( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - on( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - on( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - on(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; - on(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; - once( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - once( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - once( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - once(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; - once(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; - prependListener( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - prependListener( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - prependListener( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - prependListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; - prependListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: TLSSocket) => void): this; - prependOnceListener( - event: "newSession", - listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void, - ): this; - prependOnceListener( - event: "OCSPRequest", - listener: ( - certificate: NonSharedBuffer, - issuer: NonSharedBuffer, - callback: (err: Error | null, resp: Buffer | null) => void, - ) => void, - ): this; - prependOnceListener( - event: "resumeSession", - listener: ( - sessionId: NonSharedBuffer, - callback: (err: Error | null, sessionData: Buffer | null) => void, - ) => void, - ): this; - prependOnceListener(event: "secureConnection", listener: (tlsSocket: TLSSocket) => void): this; - prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: TLSSocket) => void): this; - } - type SecureVersion = "TLSv1.3" | "TLSv1.2" | "TLSv1.1" | "TLSv1"; - interface SecureContextOptions { - /** - * If set, this will be called when a client opens a connection using the ALPN extension. - * One argument will be passed to the callback: an object containing `servername` and `protocols` fields, - * respectively containing the server name from the SNI extension (if any) and an array of - * ALPN protocol name strings. The callback must return either one of the strings listed in `protocols`, - * which will be returned to the client as the selected ALPN protocol, or `undefined`, - * to reject the connection with a fatal alert. If a string is returned that does not match one of - * the client's ALPN protocols, an error will be thrown. - * This option cannot be used with the `ALPNProtocols` option, and setting both options will throw an error. - */ - ALPNCallback?: ((arg: { servername: string; protocols: string[] }) => string | undefined) | undefined; - /** - * Treat intermediate (non-self-signed) - * certificates in the trust CA certificate list as trusted. - * @since v22.9.0, v20.18.0 - */ - allowPartialTrustChain?: boolean | undefined; - /** - * Optionally override the trusted CA certificates. Default is to trust - * the well-known CAs curated by Mozilla. Mozilla's CAs are completely - * replaced when CAs are explicitly specified using this option. - */ - ca?: string | Buffer | Array | undefined; - /** - * Cert chains in PEM format. One cert chain should be provided per - * private key. Each cert chain should consist of the PEM formatted - * certificate for a provided private key, followed by the PEM - * formatted intermediate certificates (if any), in order, and not - * including the root CA (the root CA must be pre-known to the peer, - * see ca). When providing multiple cert chains, they do not have to - * be in the same order as their private keys in key. If the - * intermediate certificates are not provided, the peer will not be - * able to validate the certificate, and the handshake will fail. - */ - cert?: string | Buffer | Array | undefined; - /** - * Colon-separated list of supported signature algorithms. The list - * can contain digest algorithms (SHA256, MD5 etc.), public key - * algorithms (RSA-PSS, ECDSA etc.), combination of both (e.g - * 'RSA+SHA384') or TLS v1.3 scheme names (e.g. rsa_pss_pss_sha512). - */ - sigalgs?: string | undefined; - /** - * Cipher suite specification, replacing the default. For more - * information, see modifying the default cipher suite. Permitted - * ciphers can be obtained via tls.getCiphers(). Cipher names must be - * uppercased in order for OpenSSL to accept them. - */ - ciphers?: string | undefined; - /** - * Name of an OpenSSL engine which can provide the client certificate. - * @deprecated - */ - clientCertEngine?: string | undefined; - /** - * PEM formatted CRLs (Certificate Revocation Lists). - */ - crl?: string | Buffer | Array | undefined; - /** - * `'auto'` or custom Diffie-Hellman parameters, required for non-ECDHE perfect forward secrecy. - * If omitted or invalid, the parameters are silently discarded and DHE ciphers will not be available. - * ECDHE-based perfect forward secrecy will still be available. - */ - dhparam?: string | Buffer | undefined; - /** - * A string describing a named curve or a colon separated list of curve - * NIDs or names, for example P-521:P-384:P-256, to use for ECDH key - * agreement. Set to auto to select the curve automatically. Use - * crypto.getCurves() to obtain a list of available curve names. On - * recent releases, openssl ecparam -list_curves will also display the - * name and description of each available elliptic curve. Default: - * tls.DEFAULT_ECDH_CURVE. - */ - ecdhCurve?: string | undefined; - /** - * Attempt to use the server's cipher suite preferences instead of the - * client's. When true, causes SSL_OP_CIPHER_SERVER_PREFERENCE to be - * set in secureOptions - */ - honorCipherOrder?: boolean | undefined; - /** - * Private keys in PEM format. PEM allows the option of private keys - * being encrypted. Encrypted keys will be decrypted with - * options.passphrase. Multiple keys using different algorithms can be - * provided either as an array of unencrypted key strings or buffers, - * or an array of objects in the form {pem: [, - * passphrase: ]}. The object form can only occur in an array. - * object.passphrase is optional. Encrypted keys will be decrypted with - * object.passphrase if provided, or options.passphrase if it is not. - */ - key?: string | Buffer | Array | undefined; - /** - * Name of an OpenSSL engine to get private key from. Should be used - * together with privateKeyIdentifier. - * @deprecated - */ - privateKeyEngine?: string | undefined; - /** - * Identifier of a private key managed by an OpenSSL engine. Should be - * used together with privateKeyEngine. Should not be set together with - * key, because both options define a private key in different ways. - * @deprecated - */ - privateKeyIdentifier?: string | undefined; - /** - * Optionally set the maximum TLS version to allow. One - * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the - * `secureProtocol` option, use one or the other. - * **Default:** `'TLSv1.3'`, unless changed using CLI options. Using - * `--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using `--tls-max-v1.3` sets the default to - * `'TLSv1.3'`. If multiple of the options are provided, the highest maximum is used. - */ - maxVersion?: SecureVersion | undefined; - /** - * Optionally set the minimum TLS version to allow. One - * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the - * `secureProtocol` option, use one or the other. It is not recommended to use - * less than TLSv1.2, but it may be required for interoperability. - * **Default:** `'TLSv1.2'`, unless changed using CLI options. Using - * `--tls-v1.0` sets the default to `'TLSv1'`. Using `--tls-v1.1` sets the default to - * `'TLSv1.1'`. Using `--tls-min-v1.3` sets the default to - * 'TLSv1.3'. If multiple of the options are provided, the lowest minimum is used. - */ - minVersion?: SecureVersion | undefined; - /** - * Shared passphrase used for a single private key and/or a PFX. - */ - passphrase?: string | undefined; - /** - * PFX or PKCS12 encoded private key and certificate chain. pfx is an - * alternative to providing key and cert individually. PFX is usually - * encrypted, if it is, passphrase will be used to decrypt it. Multiple - * PFX can be provided either as an array of unencrypted PFX buffers, - * or an array of objects in the form {buf: [, - * passphrase: ]}. The object form can only occur in an array. - * object.passphrase is optional. Encrypted PFX will be decrypted with - * object.passphrase if provided, or options.passphrase if it is not. - */ - pfx?: string | Buffer | Array | undefined; - /** - * Optionally affect the OpenSSL protocol behavior, which is not - * usually necessary. This should be used carefully if at all! Value is - * a numeric bitmask of the SSL_OP_* options from OpenSSL Options - */ - secureOptions?: number | undefined; // Value is a numeric bitmask of the `SSL_OP_*` options - /** - * Legacy mechanism to select the TLS protocol version to use, it does - * not support independent control of the minimum and maximum version, - * and does not support limiting the protocol to TLSv1.3. Use - * minVersion and maxVersion instead. The possible values are listed as - * SSL_METHODS, use the function names as strings. For example, use - * 'TLSv1_1_method' to force TLS version 1.1, or 'TLS_method' to allow - * any TLS protocol version up to TLSv1.3. It is not recommended to use - * TLS versions less than 1.2, but it may be required for - * interoperability. Default: none, see minVersion. - */ - secureProtocol?: string | undefined; - /** - * Opaque identifier used by servers to ensure session state is not - * shared between applications. Unused by clients. - */ - sessionIdContext?: string | undefined; - /** - * 48-bytes of cryptographically strong pseudo-random data. - * See Session Resumption for more information. - */ - ticketKeys?: Buffer | undefined; - /** - * The number of seconds after which a TLS session created by the - * server will no longer be resumable. See Session Resumption for more - * information. Default: 300. - */ - sessionTimeout?: number | undefined; - } - interface SecureContext { - context: any; - } - /** - * Verifies the certificate `cert` is issued to `hostname`. - * - * Returns [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object, populating it with `reason`, `host`, and `cert` on - * failure. On success, returns [undefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Undefined_type). - * - * This function is intended to be used in combination with the`checkServerIdentity` option that can be passed to {@link connect} and as - * such operates on a `certificate object`. For other purposes, consider using `x509.checkHost()` instead. - * - * This function can be overwritten by providing an alternative function as the `options.checkServerIdentity` option that is passed to `tls.connect()`. The - * overwriting function can call `tls.checkServerIdentity()` of course, to augment - * the checks done with additional verification. - * - * This function is only called if the certificate passed all other checks, such as - * being issued by trusted CA (`options.ca`). - * - * Earlier versions of Node.js incorrectly accepted certificates for a given`hostname` if a matching `uniformResourceIdentifier` subject alternative name - * was present (see [CVE-2021-44531](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44531)). Applications that wish to accept`uniformResourceIdentifier` subject alternative names can use - * a custom `options.checkServerIdentity` function that implements the desired behavior. - * @since v0.8.4 - * @param hostname The host name or IP address to verify the certificate against. - * @param cert A `certificate object` representing the peer's certificate. - */ - function checkServerIdentity(hostname: string, cert: PeerCertificate): Error | undefined; - /** - * Creates a new {@link Server}. The `secureConnectionListener`, if provided, is - * automatically set as a listener for the `'secureConnection'` event. - * - * The `ticketKeys` options is automatically shared between `node:cluster` module - * workers. - * - * The following illustrates a simple echo server: - * - * ```js - * import tls from 'node:tls'; - * import fs from 'node:fs'; - * - * const options = { - * key: fs.readFileSync('server-key.pem'), - * cert: fs.readFileSync('server-cert.pem'), - * - * // This is necessary only if using client certificate authentication. - * requestCert: true, - * - * // This is necessary only if the client uses a self-signed certificate. - * ca: [ fs.readFileSync('client-cert.pem') ], - * }; - * - * const server = tls.createServer(options, (socket) => { - * console.log('server connected', - * socket.authorized ? 'authorized' : 'unauthorized'); - * socket.write('welcome!\n'); - * socket.setEncoding('utf8'); - * socket.pipe(socket); - * }); - * server.listen(8000, () => { - * console.log('server bound'); - * }); - * ``` - * - * The server can be tested by connecting to it using the example client from {@link connect}. - * @since v0.3.2 - */ - function createServer(secureConnectionListener?: (socket: TLSSocket) => void): Server; - function createServer(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void): Server; - /** - * The `callback` function, if specified, will be added as a listener for the `'secureConnect'` event. - * - * `tls.connect()` returns a {@link TLSSocket} object. - * - * Unlike the `https` API, `tls.connect()` does not enable the - * SNI (Server Name Indication) extension by default, which may cause some - * servers to return an incorrect certificate or reject the connection - * altogether. To enable SNI, set the `servername` option in addition - * to `host`. - * - * The following illustrates a client for the echo server example from {@link createServer}: - * - * ```js - * // Assumes an echo server that is listening on port 8000. - * import tls from 'node:tls'; - * import fs from 'node:fs'; - * - * const options = { - * // Necessary only if the server requires client certificate authentication. - * key: fs.readFileSync('client-key.pem'), - * cert: fs.readFileSync('client-cert.pem'), - * - * // Necessary only if the server uses a self-signed certificate. - * ca: [ fs.readFileSync('server-cert.pem') ], - * - * // Necessary only if the server's cert isn't for "localhost". - * checkServerIdentity: () => { return null; }, - * }; - * - * const socket = tls.connect(8000, options, () => { - * console.log('client connected', - * socket.authorized ? 'authorized' : 'unauthorized'); - * process.stdin.pipe(socket); - * process.stdin.resume(); - * }); - * socket.setEncoding('utf8'); - * socket.on('data', (data) => { - * console.log(data); - * }); - * socket.on('end', () => { - * console.log('server ends connection'); - * }); - * ``` - * @since v0.11.3 - */ - function connect(options: ConnectionOptions, secureConnectListener?: () => void): TLSSocket; - function connect( - port: number, - host?: string, - options?: ConnectionOptions, - secureConnectListener?: () => void, - ): TLSSocket; - function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket; - /** - * `{@link createServer}` sets the default value of the `honorCipherOrder` option - * to `true`, other APIs that create secure contexts leave it unset. - * - * `{@link createServer}` uses a 128 bit truncated SHA1 hash value generated - * from `process.argv` as the default value of the `sessionIdContext` option, other - * APIs that create secure contexts have no default value. - * - * The `tls.createSecureContext()` method creates a `SecureContext` object. It is - * usable as an argument to several `tls` APIs, such as `server.addContext()`, - * but has no public methods. The {@link Server} constructor and the {@link createServer} method do not support the `secureContext` option. - * - * A key is _required_ for ciphers that use certificates. Either `key` or `pfx` can be used to provide it. - * - * If the `ca` option is not given, then Node.js will default to using [Mozilla's publicly trusted list of - * CAs](https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt). - * - * Custom DHE parameters are discouraged in favor of the new `dhparam: 'auto' `option. When set to `'auto'`, well-known DHE parameters of sufficient strength - * will be selected automatically. Otherwise, if necessary, `openssl dhparam` can - * be used to create custom parameters. The key length must be greater than or - * equal to 1024 bits or else an error will be thrown. Although 1024 bits is - * permissible, use 2048 bits or larger for stronger security. - * @since v0.11.13 - */ - function createSecureContext(options?: SecureContextOptions): SecureContext; - /** - * Returns an array containing the CA certificates from various sources, depending on `type`: - * - * * `"default"`: return the CA certificates that will be used by the Node.js TLS clients by default. - * * When `--use-bundled-ca` is enabled (default), or `--use-openssl-ca` is not enabled, - * this would include CA certificates from the bundled Mozilla CA store. - * * When `--use-system-ca` is enabled, this would also include certificates from the system's - * trusted store. - * * When `NODE_EXTRA_CA_CERTS` is used, this would also include certificates loaded from the specified - * file. - * * `"system"`: return the CA certificates that are loaded from the system's trusted store, according - * to rules set by `--use-system-ca`. This can be used to get the certificates from the system - * when `--use-system-ca` is not enabled. - * * `"bundled"`: return the CA certificates from the bundled Mozilla CA store. This would be the same - * as `tls.rootCertificates`. - * * `"extra"`: return the CA certificates loaded from `NODE_EXTRA_CA_CERTS`. It's an empty array if - * `NODE_EXTRA_CA_CERTS` is not set. - * @since v22.15.0 - * @param type The type of CA certificates that will be returned. Valid values - * are `"default"`, `"system"`, `"bundled"` and `"extra"`. - * **Default:** `"default"`. - * @returns An array of PEM-encoded certificates. The array may contain duplicates - * if the same certificate is repeatedly stored in multiple sources. - */ - function getCACertificates(type?: "default" | "system" | "bundled" | "extra"): string[]; - /** - * Returns an array with the names of the supported TLS ciphers. The names are - * lower-case for historical reasons, but must be uppercased to be used in - * the `ciphers` option of `{@link createSecureContext}`. - * - * Not all supported ciphers are enabled by default. See - * [Modifying the default TLS cipher suite](https://nodejs.org/docs/latest-v24.x/api/tls.html#modifying-the-default-tls-cipher-suite). - * - * Cipher names that start with `'tls_'` are for TLSv1.3, all the others are for - * TLSv1.2 and below. - * - * ```js - * console.log(tls.getCiphers()); // ['aes128-gcm-sha256', 'aes128-sha', ...] - * ``` - * @since v0.10.2 - */ - function getCiphers(): string[]; - /** - * Sets the default CA certificates used by Node.js TLS clients. If the provided - * certificates are parsed successfully, they will become the default CA - * certificate list returned by {@link getCACertificates} and used - * by subsequent TLS connections that don't specify their own CA certificates. - * The certificates will be deduplicated before being set as the default. - * - * This function only affects the current Node.js thread. Previous - * sessions cached by the HTTPS agent won't be affected by this change, so - * this method should be called before any unwanted cachable TLS connections are - * made. - * - * To use system CA certificates as the default: - * - * ```js - * import tls from 'node:tls'; - * tls.setDefaultCACertificates(tls.getCACertificates('system')); - * ``` - * - * This function completely replaces the default CA certificate list. To add additional - * certificates to the existing defaults, get the current certificates and append to them: - * - * ```js - * import tls from 'node:tls'; - * const currentCerts = tls.getCACertificates('default'); - * const additionalCerts = ['-----BEGIN CERTIFICATE-----\n...']; - * tls.setDefaultCACertificates([...currentCerts, ...additionalCerts]); - * ``` - * @since v24.5.0 - * @param certs An array of CA certificates in PEM format. - */ - function setDefaultCACertificates(certs: ReadonlyArray): void; - /** - * The default curve name to use for ECDH key agreement in a tls server. - * The default value is `'auto'`. See `{@link createSecureContext()}` for further - * information. - * @since v0.11.13 - */ - let DEFAULT_ECDH_CURVE: string; - /** - * The default value of the `maxVersion` option of `{@link createSecureContext()}`. - * It can be assigned any of the supported TLS protocol versions, - * `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. **Default:** `'TLSv1.3'`, unless - * changed using CLI options. Using `--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using - * `--tls-max-v1.3` sets the default to `'TLSv1.3'`. If multiple of the options - * are provided, the highest maximum is used. - * @since v11.4.0 - */ - let DEFAULT_MAX_VERSION: SecureVersion; - /** - * The default value of the `minVersion` option of `{@link createSecureContext()}`. - * It can be assigned any of the supported TLS protocol versions, - * `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. **Default:** `'TLSv1.2'`, unless - * changed using CLI options. Using `--tls-min-v1.0` sets the default to - * `'TLSv1'`. Using `--tls-min-v1.1` sets the default to `'TLSv1.1'`. Using - * `--tls-min-v1.3` sets the default to `'TLSv1.3'`. If multiple of the options - * are provided, the lowest minimum is used. - * @since v11.4.0 - */ - let DEFAULT_MIN_VERSION: SecureVersion; - /** - * The default value of the `ciphers` option of `{@link createSecureContext()}`. - * It can be assigned any of the supported OpenSSL ciphers. - * Defaults to the content of `crypto.constants.defaultCoreCipherList`, unless - * changed using CLI options using `--tls-default-ciphers`. - * @since v19.8.0 - */ - let DEFAULT_CIPHERS: string; - /** - * An immutable array of strings representing the root certificates (in PEM format) - * from the bundled Mozilla CA store as supplied by the current Node.js version. - * - * The bundled CA store, as supplied by Node.js, is a snapshot of Mozilla CA store - * that is fixed at release time. It is identical on all supported platforms. - * @since v12.3.0 - */ - const rootCertificates: readonly string[]; -} -declare module "node:tls" { - export * from "tls"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/trace_events.d.ts b/build_vtk_bundle/node_modules/@types/node/trace_events.d.ts deleted file mode 100644 index 56e46209..00000000 --- a/build_vtk_bundle/node_modules/@types/node/trace_events.d.ts +++ /dev/null @@ -1,197 +0,0 @@ -/** - * The `node:trace_events` module provides a mechanism to centralize tracing information - * generated by V8, Node.js core, and userspace code. - * - * Tracing can be enabled with the `--trace-event-categories` command-line flag - * or by using the `trace_events` module. The `--trace-event-categories` flag - * accepts a list of comma-separated category names. - * - * The available categories are: - * - * * `node`: An empty placeholder. - * * `node.async_hooks`: Enables capture of detailed [`async_hooks`](https://nodejs.org/docs/latest-v24.x/api/async_hooks.html) trace data. - * The [`async_hooks`](https://nodejs.org/docs/latest-v24.x/api/async_hooks.html) events have a unique `asyncId` and a special `triggerId` `triggerAsyncId` property. - * * `node.bootstrap`: Enables capture of Node.js bootstrap milestones. - * * `node.console`: Enables capture of `console.time()` and `console.count()` output. - * * `node.threadpoolwork.sync`: Enables capture of trace data for threadpool synchronous operations, such as `blob`, `zlib`, `crypto` and `node_api`. - * * `node.threadpoolwork.async`: Enables capture of trace data for threadpool asynchronous operations, such as `blob`, `zlib`, `crypto` and `node_api`. - * * `node.dns.native`: Enables capture of trace data for DNS queries. - * * `node.net.native`: Enables capture of trace data for network. - * * `node.environment`: Enables capture of Node.js Environment milestones. - * * `node.fs.sync`: Enables capture of trace data for file system sync methods. - * * `node.fs_dir.sync`: Enables capture of trace data for file system sync directory methods. - * * `node.fs.async`: Enables capture of trace data for file system async methods. - * * `node.fs_dir.async`: Enables capture of trace data for file system async directory methods. - * * `node.perf`: Enables capture of [Performance API](https://nodejs.org/docs/latest-v24.x/api/perf_hooks.html) measurements. - * * `node.perf.usertiming`: Enables capture of only Performance API User Timing - * measures and marks. - * * `node.perf.timerify`: Enables capture of only Performance API timerify - * measurements. - * * `node.promises.rejections`: Enables capture of trace data tracking the number - * of unhandled Promise rejections and handled-after-rejections. - * * `node.vm.script`: Enables capture of trace data for the `node:vm` module's `runInNewContext()`, `runInContext()`, and `runInThisContext()` methods. - * * `v8`: The [V8](https://nodejs.org/docs/latest-v24.x/api/v8.html) events are GC, compiling, and execution related. - * * `node.http`: Enables capture of trace data for http request / response. - * - * By default the `node`, `node.async_hooks`, and `v8` categories are enabled. - * - * ```bash - * node --trace-event-categories v8,node,node.async_hooks server.js - * ``` - * - * Prior versions of Node.js required the use of the `--trace-events-enabled` flag to enable trace events. This requirement has been removed. However, the `--trace-events-enabled` flag _may_ still be - * used and will enable the `node`, `node.async_hooks`, and `v8` trace event categories by default. - * - * ```bash - * node --trace-events-enabled - * - * # is equivalent to - * - * node --trace-event-categories v8,node,node.async_hooks - * ``` - * - * Alternatively, trace events may be enabled using the `node:trace_events` module: - * - * ```js - * import trace_events from 'node:trace_events'; - * const tracing = trace_events.createTracing({ categories: ['node.perf'] }); - * tracing.enable(); // Enable trace event capture for the 'node.perf' category - * - * // do work - * - * tracing.disable(); // Disable trace event capture for the 'node.perf' category - * ``` - * - * Running Node.js with tracing enabled will produce log files that can be opened - * in the [`chrome://tracing`](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool) tab of Chrome. - * - * The logging file is by default called `node_trace.${rotation}.log`, where `${rotation}` is an incrementing log-rotation id. The filepath pattern can - * be specified with `--trace-event-file-pattern` that accepts a template - * string that supports `${rotation}` and `${pid}`: - * - * ```bash - * node --trace-event-categories v8 --trace-event-file-pattern '${pid}-${rotation}.log' server.js - * ``` - * - * To guarantee that the log file is properly generated after signal events like `SIGINT`, `SIGTERM`, or `SIGBREAK`, make sure to have the appropriate handlers - * in your code, such as: - * - * ```js - * process.on('SIGINT', function onSigint() { - * console.info('Received SIGINT.'); - * process.exit(130); // Or applicable exit code depending on OS and signal - * }); - * ``` - * - * The tracing system uses the same time source - * as the one used by `process.hrtime()`. - * However the trace-event timestamps are expressed in microseconds, - * unlike `process.hrtime()` which returns nanoseconds. - * - * The features from this module are not available in [`Worker`](https://nodejs.org/docs/latest-v24.x/api/worker_threads.html#class-worker) threads. - * @experimental - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/trace_events.js) - */ -declare module "trace_events" { - /** - * The `Tracing` object is used to enable or disable tracing for sets of - * categories. Instances are created using the - * `trace_events.createTracing()` method. - * - * When created, the `Tracing` object is disabled. Calling the - * `tracing.enable()` method adds the categories to the set of enabled trace - * event categories. Calling `tracing.disable()` will remove the categories - * from the set of enabled trace event categories. - */ - interface Tracing { - /** - * A comma-separated list of the trace event categories covered by this - * `Tracing` object. - * @since v10.0.0 - */ - readonly categories: string; - /** - * Disables this `Tracing` object. - * - * Only trace event categories _not_ covered by other enabled `Tracing` - * objects and _not_ specified by the `--trace-event-categories` flag - * will be disabled. - * - * ```js - * import trace_events from 'node:trace_events'; - * const t1 = trace_events.createTracing({ categories: ['node', 'v8'] }); - * const t2 = trace_events.createTracing({ categories: ['node.perf', 'node'] }); - * t1.enable(); - * t2.enable(); - * - * // Prints 'node,node.perf,v8' - * console.log(trace_events.getEnabledCategories()); - * - * t2.disable(); // Will only disable emission of the 'node.perf' category - * - * // Prints 'node,v8' - * console.log(trace_events.getEnabledCategories()); - * ``` - * @since v10.0.0 - */ - disable(): void; - /** - * Enables this `Tracing` object for the set of categories covered by - * the `Tracing` object. - * @since v10.0.0 - */ - enable(): void; - /** - * `true` only if the `Tracing` object has been enabled. - * @since v10.0.0 - */ - readonly enabled: boolean; - } - interface CreateTracingOptions { - /** - * An array of trace category names. Values included in the array are - * coerced to a string when possible. An error will be thrown if the - * value cannot be coerced. - */ - categories: string[]; - } - /** - * Creates and returns a `Tracing` object for the given set of `categories`. - * - * ```js - * import trace_events from 'node:trace_events'; - * const categories = ['node.perf', 'node.async_hooks']; - * const tracing = trace_events.createTracing({ categories }); - * tracing.enable(); - * // do stuff - * tracing.disable(); - * ``` - * @since v10.0.0 - */ - function createTracing(options: CreateTracingOptions): Tracing; - /** - * Returns a comma-separated list of all currently-enabled trace event - * categories. The current set of enabled trace event categories is determined - * by the _union_ of all currently-enabled `Tracing` objects and any categories - * enabled using the `--trace-event-categories` flag. - * - * Given the file `test.js` below, the command `node --trace-event-categories node.perf test.js` will print `'node.async_hooks,node.perf'` to the console. - * - * ```js - * import trace_events from 'node:trace_events'; - * const t1 = trace_events.createTracing({ categories: ['node.async_hooks'] }); - * const t2 = trace_events.createTracing({ categories: ['node.perf'] }); - * const t3 = trace_events.createTracing({ categories: ['v8'] }); - * - * t1.enable(); - * t2.enable(); - * - * console.log(trace_events.getEnabledCategories()); - * ``` - * @since v10.0.0 - */ - function getEnabledCategories(): string | undefined; -} -declare module "node:trace_events" { - export * from "trace_events"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/ts5.6/buffer.buffer.d.ts b/build_vtk_bundle/node_modules/@types/node/ts5.6/buffer.buffer.d.ts deleted file mode 100644 index a5f67d7c..00000000 --- a/build_vtk_bundle/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +++ /dev/null @@ -1,468 +0,0 @@ -declare module "buffer" { - global { - interface BufferConstructor { - // see ../buffer.d.ts for implementation shared with all TypeScript versions - - /** - * Allocates a new buffer containing the given {str}. - * - * @param str String to store in buffer. - * @param encoding encoding to use, optional. Default is 'utf8' - * @deprecated since v10.0.0 - Use `Buffer.from(string[, encoding])` instead. - */ - new(str: string, encoding?: BufferEncoding): Buffer; - /** - * Allocates a new buffer of {size} octets. - * - * @param size count of octets to allocate. - * @deprecated since v10.0.0 - Use `Buffer.alloc()` instead (also see `Buffer.allocUnsafe()`). - */ - new(size: number): Buffer; - /** - * Allocates a new buffer containing the given {array} of octets. - * - * @param array The octets to store. - * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead. - */ - new(array: ArrayLike): Buffer; - /** - * Produces a Buffer backed by the same allocated memory as - * the given {ArrayBuffer}/{SharedArrayBuffer}. - * - * @param arrayBuffer The ArrayBuffer with which to share memory. - * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead. - */ - new(arrayBuffer: ArrayBufferLike): Buffer; - /** - * Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`. - * Array entries outside that range will be truncated to fit into it. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Creates a new Buffer containing the UTF-8 bytes of the string 'buffer'. - * const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]); - * ``` - * - * If `array` is an `Array`-like object (that is, one with a `length` property of - * type `number`), it is treated as if it is an array, unless it is a `Buffer` or - * a `Uint8Array`. This means all other `TypedArray` variants get treated as an - * `Array`. To create a `Buffer` from the bytes backing a `TypedArray`, use - * `Buffer.copyBytesFrom()`. - * - * A `TypeError` will be thrown if `array` is not an `Array` or another type - * appropriate for `Buffer.from()` variants. - * - * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal - * `Buffer` pool like `Buffer.allocUnsafe()` does. - * @since v5.10.0 - */ - from(array: WithImplicitCoercion>): Buffer; - /** - * This creates a view of the `ArrayBuffer` without copying the underlying - * memory. For example, when passed a reference to the `.buffer` property of a - * `TypedArray` instance, the newly created `Buffer` will share the same - * allocated memory as the `TypedArray`'s underlying `ArrayBuffer`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const arr = new Uint16Array(2); - * - * arr[0] = 5000; - * arr[1] = 4000; - * - * // Shares memory with `arr`. - * const buf = Buffer.from(arr.buffer); - * - * console.log(buf); - * // Prints: - * - * // Changing the original Uint16Array changes the Buffer also. - * arr[1] = 6000; - * - * console.log(buf); - * // Prints: - * ``` - * - * The optional `byteOffset` and `length` arguments specify a memory range within - * the `arrayBuffer` that will be shared by the `Buffer`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const ab = new ArrayBuffer(10); - * const buf = Buffer.from(ab, 0, 2); - * - * console.log(buf.length); - * // Prints: 2 - * ``` - * - * A `TypeError` will be thrown if `arrayBuffer` is not an `ArrayBuffer` or a - * `SharedArrayBuffer` or another type appropriate for `Buffer.from()` - * variants. - * - * It is important to remember that a backing `ArrayBuffer` can cover a range - * of memory that extends beyond the bounds of a `TypedArray` view. A new - * `Buffer` created using the `buffer` property of a `TypedArray` may extend - * beyond the range of the `TypedArray`: - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const arrA = Uint8Array.from([0x63, 0x64, 0x65, 0x66]); // 4 elements - * const arrB = new Uint8Array(arrA.buffer, 1, 2); // 2 elements - * console.log(arrA.buffer === arrB.buffer); // true - * - * const buf = Buffer.from(arrB.buffer); - * console.log(buf); - * // Prints: - * ``` - * @since v5.10.0 - * @param arrayBuffer An `ArrayBuffer`, `SharedArrayBuffer`, for example the - * `.buffer` property of a `TypedArray`. - * @param byteOffset Index of first byte to expose. **Default:** `0`. - * @param length Number of bytes to expose. **Default:** - * `arrayBuffer.byteLength - byteOffset`. - */ - from( - arrayBuffer: WithImplicitCoercion, - byteOffset?: number, - length?: number, - ): Buffer; - /** - * Creates a new `Buffer` containing `string`. The `encoding` parameter identifies - * the character encoding to be used when converting `string` into bytes. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf1 = Buffer.from('this is a tést'); - * const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex'); - * - * console.log(buf1.toString()); - * // Prints: this is a tést - * console.log(buf2.toString()); - * // Prints: this is a tést - * console.log(buf1.toString('latin1')); - * // Prints: this is a tést - * ``` - * - * A `TypeError` will be thrown if `string` is not a string or another type - * appropriate for `Buffer.from()` variants. - * - * `Buffer.from(string)` may also use the internal `Buffer` pool like - * `Buffer.allocUnsafe()` does. - * @since v5.10.0 - * @param string A string to encode. - * @param encoding The encoding of `string`. **Default:** `'utf8'`. - */ - from(string: WithImplicitCoercion, encoding?: BufferEncoding): Buffer; - from(arrayOrString: WithImplicitCoercion | string>): Buffer; - /** - * Creates a new Buffer using the passed {data} - * @param values to create a new Buffer - */ - of(...items: number[]): Buffer; - /** - * Returns a new `Buffer` which is the result of concatenating all the `Buffer` instances in the `list` together. - * - * If the list has no items, or if the `totalLength` is 0, then a new zero-length `Buffer` is returned. - * - * If `totalLength` is not provided, it is calculated from the `Buffer` instances - * in `list` by adding their lengths. - * - * If `totalLength` is provided, it is coerced to an unsigned integer. If the - * combined length of the `Buffer`s in `list` exceeds `totalLength`, the result is - * truncated to `totalLength`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Create a single `Buffer` from a list of three `Buffer` instances. - * - * const buf1 = Buffer.alloc(10); - * const buf2 = Buffer.alloc(14); - * const buf3 = Buffer.alloc(18); - * const totalLength = buf1.length + buf2.length + buf3.length; - * - * console.log(totalLength); - * // Prints: 42 - * - * const bufA = Buffer.concat([buf1, buf2, buf3], totalLength); - * - * console.log(bufA); - * // Prints: - * console.log(bufA.length); - * // Prints: 42 - * ``` - * - * `Buffer.concat()` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does. - * @since v0.7.11 - * @param list List of `Buffer` or {@link Uint8Array} instances to concatenate. - * @param totalLength Total length of the `Buffer` instances in `list` when concatenated. - */ - concat(list: readonly Uint8Array[], totalLength?: number): Buffer; - /** - * Copies the underlying memory of `view` into a new `Buffer`. - * - * ```js - * const u16 = new Uint16Array([0, 0xffff]); - * const buf = Buffer.copyBytesFrom(u16, 1, 1); - * u16[1] = 0; - * console.log(buf.length); // 2 - * console.log(buf[0]); // 255 - * console.log(buf[1]); // 255 - * ``` - * @since v19.8.0 - * @param view The {TypedArray} to copy. - * @param [offset=0] The starting offset within `view`. - * @param [length=view.length - offset] The number of elements from `view` to copy. - */ - copyBytesFrom(view: NodeJS.TypedArray, offset?: number, length?: number): Buffer; - /** - * Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(5); - * - * console.log(buf); - * // Prints: - * ``` - * - * If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. - * - * If `fill` is specified, the allocated `Buffer` will be initialized by calling `buf.fill(fill)`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(5, 'a'); - * - * console.log(buf); - * // Prints: - * ``` - * - * If both `fill` and `encoding` are specified, the allocated `Buffer` will be - * initialized by calling `buf.fill(fill, encoding)`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64'); - * - * console.log(buf); - * // Prints: - * ``` - * - * Calling `Buffer.alloc()` can be measurably slower than the alternative `Buffer.allocUnsafe()` but ensures that the newly created `Buffer` instance - * contents will never contain sensitive data from previous allocations, including - * data that might not have been allocated for `Buffer`s. - * - * A `TypeError` will be thrown if `size` is not a number. - * @since v5.10.0 - * @param size The desired length of the new `Buffer`. - * @param [fill=0] A value to pre-fill the new `Buffer` with. - * @param [encoding='utf8'] If `fill` is a string, this is its encoding. - */ - alloc(size: number, fill?: string | Uint8Array | number, encoding?: BufferEncoding): Buffer; - /** - * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. - * - * The underlying memory for `Buffer` instances created in this way is _not_ - * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.allocUnsafe(10); - * - * console.log(buf); - * // Prints (contents may vary): - * - * buf.fill(0); - * - * console.log(buf); - * // Prints: - * ``` - * - * A `TypeError` will be thrown if `size` is not a number. - * - * The `Buffer` module pre-allocates an internal `Buffer` instance of - * size `Buffer.poolSize` that is used as a pool for the fast allocation of new `Buffer` instances created using `Buffer.allocUnsafe()`, `Buffer.from(array)`, - * and `Buffer.concat()` only when `size` is less than `Buffer.poolSize >>> 1` (floor of `Buffer.poolSize` divided by two). - * - * Use of this pre-allocated internal memory pool is a key difference between - * calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`. - * Specifically, `Buffer.alloc(size, fill)` will _never_ use the internal `Buffer`pool, while `Buffer.allocUnsafe(size).fill(fill)`_will_ use the internal`Buffer` pool if `size` is less - * than or equal to half `Buffer.poolSize`. The - * difference is subtle but can be important when an application requires the - * additional performance that `Buffer.allocUnsafe()` provides. - * @since v5.10.0 - * @param size The desired length of the new `Buffer`. - */ - allocUnsafe(size: number): Buffer; - /** - * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_OUT_OF_RANGE` is thrown. A zero-length `Buffer` is created if - * `size` is 0. - * - * The underlying memory for `Buffer` instances created in this way is _not_ - * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `buf.fill(0)` to initialize - * such `Buffer` instances with zeroes. - * - * When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances, - * allocations under 4 KiB are sliced from a single pre-allocated `Buffer`. This - * allows applications to avoid the garbage collection overhead of creating many - * individually allocated `Buffer` instances. This approach improves both - * performance and memory usage by eliminating the need to track and clean up as - * many individual `ArrayBuffer` objects. - * - * However, in the case where a developer may need to retain a small chunk of - * memory from a pool for an indeterminate amount of time, it may be appropriate - * to create an un-pooled `Buffer` instance using `Buffer.allocUnsafeSlow()` and - * then copying out the relevant bits. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Need to keep around a few small chunks of memory. - * const store = []; - * - * socket.on('readable', () => { - * let data; - * while (null !== (data = readable.read())) { - * // Allocate for retained data. - * const sb = Buffer.allocUnsafeSlow(10); - * - * // Copy the data into the new allocation. - * data.copy(sb, 0, 0, 10); - * - * store.push(sb); - * } - * }); - * ``` - * - * A `TypeError` will be thrown if `size` is not a number. - * @since v5.12.0 - * @param size The desired length of the new `Buffer`. - */ - allocUnsafeSlow(size: number): Buffer; - } - interface Buffer extends Uint8Array { - // see ../buffer.d.ts for implementation shared with all TypeScript versions - - /** - * Returns a new `Buffer` that references the same memory as the original, but - * offset and cropped by the `start` and `end` indices. - * - * This method is not compatible with the `Uint8Array.prototype.slice()`, - * which is a superclass of `Buffer`. To copy the slice, use`Uint8Array.prototype.slice()`. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('buffer'); - * - * const copiedBuf = Uint8Array.prototype.slice.call(buf); - * copiedBuf[0]++; - * console.log(copiedBuf.toString()); - * // Prints: cuffer - * - * console.log(buf.toString()); - * // Prints: buffer - * - * // With buf.slice(), the original buffer is modified. - * const notReallyCopiedBuf = buf.slice(); - * notReallyCopiedBuf[0]++; - * console.log(notReallyCopiedBuf.toString()); - * // Prints: cuffer - * console.log(buf.toString()); - * // Also prints: cuffer (!) - * ``` - * @since v0.3.0 - * @deprecated Use `subarray` instead. - * @param [start=0] Where the new `Buffer` will start. - * @param [end=buf.length] Where the new `Buffer` will end (not inclusive). - */ - slice(start?: number, end?: number): Buffer; - /** - * Returns a new `Buffer` that references the same memory as the original, but - * offset and cropped by the `start` and `end` indices. - * - * Specifying `end` greater than `buf.length` will return the same result as - * that of `end` equal to `buf.length`. - * - * This method is inherited from [`TypedArray.prototype.subarray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray). - * - * Modifying the new `Buffer` slice will modify the memory in the original `Buffer`because the allocated memory of the two objects overlap. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * // Create a `Buffer` with the ASCII alphabet, take a slice, and modify one byte - * // from the original `Buffer`. - * - * const buf1 = Buffer.allocUnsafe(26); - * - * for (let i = 0; i < 26; i++) { - * // 97 is the decimal ASCII value for 'a'. - * buf1[i] = i + 97; - * } - * - * const buf2 = buf1.subarray(0, 3); - * - * console.log(buf2.toString('ascii', 0, buf2.length)); - * // Prints: abc - * - * buf1[0] = 33; - * - * console.log(buf2.toString('ascii', 0, buf2.length)); - * // Prints: !bc - * ``` - * - * Specifying negative indexes causes the slice to be generated relative to the - * end of `buf` rather than the beginning. - * - * ```js - * import { Buffer } from 'node:buffer'; - * - * const buf = Buffer.from('buffer'); - * - * console.log(buf.subarray(-6, -1).toString()); - * // Prints: buffe - * // (Equivalent to buf.subarray(0, 5).) - * - * console.log(buf.subarray(-6, -2).toString()); - * // Prints: buff - * // (Equivalent to buf.subarray(0, 4).) - * - * console.log(buf.subarray(-5, -2).toString()); - * // Prints: uff - * // (Equivalent to buf.subarray(1, 4).) - * ``` - * @since v3.0.0 - * @param [start=0] Where the new `Buffer` will start. - * @param [end=buf.length] Where the new `Buffer` will end (not inclusive). - */ - subarray(start?: number, end?: number): Buffer; - } - /** - * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports - * TypeScript versions earlier than 5.7. - */ - type NonSharedBuffer = Buffer; - /** - * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports - * TypeScript versions earlier than 5.7. - */ - type AllowSharedBuffer = Buffer; - } - /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */ - var SlowBuffer: { - /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */ - new(size: number): Buffer; - prototype: Buffer; - }; -} diff --git a/build_vtk_bundle/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts b/build_vtk_bundle/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts deleted file mode 100644 index f148cc4f..00000000 --- a/build_vtk_bundle/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +++ /dev/null @@ -1,71 +0,0 @@ -// Interface declaration for Float16Array, required in @types/node v24+. -// These definitions are specific to TS <=5.6. - -// This needs all of the "common" properties/methods of the TypedArrays, -// otherwise the type unions `TypedArray` and `ArrayBufferView` will be -// empty objects. -interface Float16Array extends Pick { - readonly BYTES_PER_ELEMENT: number; - readonly buffer: ArrayBufferLike; - readonly byteLength: number; - readonly byteOffset: number; - readonly length: number; - readonly [Symbol.toStringTag]: "Float16Array"; - at(index: number): number | undefined; - copyWithin(target: number, start: number, end?: number): this; - every(predicate: (value: number, index: number, array: Float16Array) => unknown, thisArg?: any): boolean; - fill(value: number, start?: number, end?: number): this; - filter(predicate: (value: number, index: number, array: Float16Array) => any, thisArg?: any): Float16Array; - find(predicate: (value: number, index: number, obj: Float16Array) => boolean, thisArg?: any): number | undefined; - findIndex(predicate: (value: number, index: number, obj: Float16Array) => boolean, thisArg?: any): number; - findLast( - predicate: (value: number, index: number, array: Float16Array) => value is S, - thisArg?: any, - ): S | undefined; - findLast( - predicate: (value: number, index: number, array: Float16Array) => unknown, - thisArg?: any, - ): number | undefined; - findLastIndex(predicate: (value: number, index: number, array: Float16Array) => unknown, thisArg?: any): number; - forEach(callbackfn: (value: number, index: number, array: Float16Array) => void, thisArg?: any): void; - includes(searchElement: number, fromIndex?: number): boolean; - indexOf(searchElement: number, fromIndex?: number): number; - join(separator?: string): string; - lastIndexOf(searchElement: number, fromIndex?: number): number; - map(callbackfn: (value: number, index: number, array: Float16Array) => number, thisArg?: any): Float16Array; - reduce( - callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float16Array) => number, - ): number; - reduce( - callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float16Array) => number, - initialValue: number, - ): number; - reduce( - callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float16Array) => U, - initialValue: U, - ): U; - reduceRight( - callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float16Array) => number, - ): number; - reduceRight( - callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float16Array) => number, - initialValue: number, - ): number; - reduceRight( - callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float16Array) => U, - initialValue: U, - ): U; - reverse(): Float16Array; - set(array: ArrayLike, offset?: number): void; - slice(start?: number, end?: number): Float16Array; - some(predicate: (value: number, index: number, array: Float16Array) => unknown, thisArg?: any): boolean; - sort(compareFn?: (a: number, b: number) => number): this; - subarray(begin?: number, end?: number): Float16Array; - toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string; - toReversed(): Float16Array; - toSorted(compareFn?: (a: number, b: number) => number): Float16Array; - toString(): string; - valueOf(): Float16Array; - with(index: number, value: number): Float16Array; - [index: number]: number; -} diff --git a/build_vtk_bundle/node_modules/@types/node/ts5.6/globals.typedarray.d.ts b/build_vtk_bundle/node_modules/@types/node/ts5.6/globals.typedarray.d.ts deleted file mode 100644 index 57a1ab4f..00000000 --- a/build_vtk_bundle/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -export {}; // Make this a module - -declare global { - namespace NodeJS { - type TypedArray = - | Uint8Array - | Uint8ClampedArray - | Uint16Array - | Uint32Array - | Int8Array - | Int16Array - | Int32Array - | BigUint64Array - | BigInt64Array - | Float16Array - | Float32Array - | Float64Array; - type ArrayBufferView = TypedArray | DataView; - - type NonSharedUint8Array = Uint8Array; - type NonSharedUint8ClampedArray = Uint8ClampedArray; - type NonSharedUint16Array = Uint16Array; - type NonSharedUint32Array = Uint32Array; - type NonSharedInt8Array = Int8Array; - type NonSharedInt16Array = Int16Array; - type NonSharedInt32Array = Int32Array; - type NonSharedBigUint64Array = BigUint64Array; - type NonSharedBigInt64Array = BigInt64Array; - type NonSharedFloat16Array = Float16Array; - type NonSharedFloat32Array = Float32Array; - type NonSharedFloat64Array = Float64Array; - type NonSharedDataView = DataView; - type NonSharedTypedArray = TypedArray; - type NonSharedArrayBufferView = ArrayBufferView; - } -} diff --git a/build_vtk_bundle/node_modules/@types/node/ts5.6/index.d.ts b/build_vtk_bundle/node_modules/@types/node/ts5.6/index.d.ts deleted file mode 100644 index 52c18699..00000000 --- a/build_vtk_bundle/node_modules/@types/node/ts5.6/index.d.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * License for programmatically and manually incorporated - * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc - * - * Copyright Node.js contributors. All rights reserved. - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to - * deal in the Software without restriction, including without limitation the - * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or - * sell copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - */ - -// NOTE: These definitions support Node.js and TypeScript 5.2 through 5.6. - -// Reference required TypeScript libraries: -/// -/// - -// TypeScript library polyfills required for TypeScript <=5.6: -/// - -// Iterator definitions required for compatibility with TypeScript <5.6: -/// - -// Definitions for Node.js modules specific to TypeScript <=5.6: -/// -/// - -// Definitions for Node.js modules that are not specific to any version of TypeScript: -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// diff --git a/build_vtk_bundle/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts b/build_vtk_bundle/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts deleted file mode 100644 index 110b1ebb..00000000 --- a/build_vtk_bundle/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -// Interface declaration for Float16Array, required in @types/node v24+. -// These definitions are specific to TS 5.7. - -// This needs all of the "common" properties/methods of the TypedArrays, -// otherwise the type unions `TypedArray` and `ArrayBufferView` will be -// empty objects. -interface Float16Array { - readonly BYTES_PER_ELEMENT: number; - readonly buffer: TArrayBuffer; - readonly byteLength: number; - readonly byteOffset: number; - readonly length: number; - readonly [Symbol.toStringTag]: "Float16Array"; - at(index: number): number | undefined; - copyWithin(target: number, start: number, end?: number): this; - entries(): ArrayIterator<[number, number]>; - every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; - fill(value: number, start?: number, end?: number): this; - filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Float16Array; - find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined; - findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number; - findLast( - predicate: (value: number, index: number, array: this) => value is S, - thisArg?: any, - ): S | undefined; - findLast(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): number | undefined; - findLastIndex(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): number; - forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void; - includes(searchElement: number, fromIndex?: number): boolean; - indexOf(searchElement: number, fromIndex?: number): number; - join(separator?: string): string; - keys(): ArrayIterator; - lastIndexOf(searchElement: number, fromIndex?: number): number; - map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Float16Array; - reduce( - callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, - ): number; - reduce( - callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, - initialValue: number, - ): number; - reduce( - callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, - initialValue: U, - ): U; - reduceRight( - callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, - ): number; - reduceRight( - callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, - initialValue: number, - ): number; - reduceRight( - callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, - initialValue: U, - ): U; - reverse(): this; - set(array: ArrayLike, offset?: number): void; - slice(start?: number, end?: number): Float16Array; - some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean; - sort(compareFn?: (a: number, b: number) => number): this; - subarray(begin?: number, end?: number): Float16Array; - toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string; - toReversed(): Float16Array; - toSorted(compareFn?: (a: number, b: number) => number): Float16Array; - toString(): string; - valueOf(): this; - values(): ArrayIterator; - with(index: number, value: number): Float16Array; - [Symbol.iterator](): ArrayIterator; - [index: number]: number; -} diff --git a/build_vtk_bundle/node_modules/@types/node/ts5.7/index.d.ts b/build_vtk_bundle/node_modules/@types/node/ts5.7/index.d.ts deleted file mode 100644 index b3454a72..00000000 --- a/build_vtk_bundle/node_modules/@types/node/ts5.7/index.d.ts +++ /dev/null @@ -1,103 +0,0 @@ -/** - * License for programmatically and manually incorporated - * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc - * - * Copyright Node.js contributors. All rights reserved. - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to - * deal in the Software without restriction, including without limitation the - * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or - * sell copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - */ - -// NOTE: These definitions support Node.js and TypeScript 5.7. - -// Reference required TypeScript libraries: -/// -/// - -// TypeScript library polyfills required for TypeScript 5.7: -/// - -// Iterator definitions required for compatibility with TypeScript <5.6: -/// - -// Definitions for Node.js modules specific to TypeScript 5.7+: -/// -/// - -// Definitions for Node.js modules that are not specific to any version of TypeScript: -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// diff --git a/build_vtk_bundle/node_modules/@types/node/tty.d.ts b/build_vtk_bundle/node_modules/@types/node/tty.d.ts deleted file mode 100644 index 602324ab..00000000 --- a/build_vtk_bundle/node_modules/@types/node/tty.d.ts +++ /dev/null @@ -1,208 +0,0 @@ -/** - * The `node:tty` module provides the `tty.ReadStream` and `tty.WriteStream` classes. In most cases, it will not be necessary or possible to use this module - * directly. However, it can be accessed using: - * - * ```js - * import tty from 'node:tty'; - * ``` - * - * When Node.js detects that it is being run with a text terminal ("TTY") - * attached, `process.stdin` will, by default, be initialized as an instance of `tty.ReadStream` and both `process.stdout` and `process.stderr` will, by - * default, be instances of `tty.WriteStream`. The preferred method of determining - * whether Node.js is being run within a TTY context is to check that the value of - * the `process.stdout.isTTY` property is `true`: - * - * ```console - * $ node -p -e "Boolean(process.stdout.isTTY)" - * true - * $ node -p -e "Boolean(process.stdout.isTTY)" | cat - * false - * ``` - * - * In most cases, there should be little to no reason for an application to - * manually create instances of the `tty.ReadStream` and `tty.WriteStream` classes. - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/tty.js) - */ -declare module "tty" { - import * as net from "node:net"; - /** - * The `tty.isatty()` method returns `true` if the given `fd` is associated with - * a TTY and `false` if it is not, including whenever `fd` is not a non-negative - * integer. - * @since v0.5.8 - * @param fd A numeric file descriptor - */ - function isatty(fd: number): boolean; - /** - * Represents the readable side of a TTY. In normal circumstances `process.stdin` will be the only `tty.ReadStream` instance in a Node.js - * process and there should be no reason to create additional instances. - * @since v0.5.8 - */ - class ReadStream extends net.Socket { - constructor(fd: number, options?: net.SocketConstructorOpts); - /** - * A `boolean` that is `true` if the TTY is currently configured to operate as a - * raw device. - * - * This flag is always `false` when a process starts, even if the terminal is - * operating in raw mode. Its value will change with subsequent calls to `setRawMode`. - * @since v0.7.7 - */ - isRaw: boolean; - /** - * Allows configuration of `tty.ReadStream` so that it operates as a raw device. - * - * When in raw mode, input is always available character-by-character, not - * including modifiers. Additionally, all special processing of characters by the - * terminal is disabled, including echoing input - * characters. Ctrl+C will no longer cause a `SIGINT` when - * in this mode. - * @since v0.7.7 - * @param mode If `true`, configures the `tty.ReadStream` to operate as a raw device. If `false`, configures the `tty.ReadStream` to operate in its default mode. The `readStream.isRaw` - * property will be set to the resulting mode. - * @return The read stream instance. - */ - setRawMode(mode: boolean): this; - /** - * A `boolean` that is always `true` for `tty.ReadStream` instances. - * @since v0.5.8 - */ - isTTY: boolean; - } - /** - * -1 - to the left from cursor - * 0 - the entire line - * 1 - to the right from cursor - */ - type Direction = -1 | 0 | 1; - /** - * Represents the writable side of a TTY. In normal circumstances, `process.stdout` and `process.stderr` will be the only`tty.WriteStream` instances created for a Node.js process and there - * should be no reason to create additional instances. - * @since v0.5.8 - */ - class WriteStream extends net.Socket { - constructor(fd: number); - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: "resize", listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: "resize"): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: "resize", listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: "resize", listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: "resize", listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: "resize", listener: () => void): this; - /** - * `writeStream.clearLine()` clears the current line of this `WriteStream` in a - * direction identified by `dir`. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - clearLine(dir: Direction, callback?: () => void): boolean; - /** - * `writeStream.clearScreenDown()` clears this `WriteStream` from the current - * cursor down. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - clearScreenDown(callback?: () => void): boolean; - /** - * `writeStream.cursorTo()` moves this `WriteStream`'s cursor to the specified - * position. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - cursorTo(x: number, y?: number, callback?: () => void): boolean; - cursorTo(x: number, callback: () => void): boolean; - /** - * `writeStream.moveCursor()` moves this `WriteStream`'s cursor _relative_ to its - * current position. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - moveCursor(dx: number, dy: number, callback?: () => void): boolean; - /** - * Returns: - * - * * `1` for 2, - * * `4` for 16, - * * `8` for 256, - * * `24` for 16,777,216 colors supported. - * - * Use this to determine what colors the terminal supports. Due to the nature of - * colors in terminals it is possible to either have false positives or false - * negatives. It depends on process information and the environment variables that - * may lie about what terminal is used. - * It is possible to pass in an `env` object to simulate the usage of a specific - * terminal. This can be useful to check how specific environment settings behave. - * - * To enforce a specific color support, use one of the below environment settings. - * - * * 2 colors: `FORCE_COLOR = 0` (Disables colors) - * * 16 colors: `FORCE_COLOR = 1` - * * 256 colors: `FORCE_COLOR = 2` - * * 16,777,216 colors: `FORCE_COLOR = 3` - * - * Disabling color support is also possible by using the `NO_COLOR` and `NODE_DISABLE_COLORS` environment variables. - * @since v9.9.0 - * @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal. - */ - getColorDepth(env?: object): number; - /** - * Returns `true` if the `writeStream` supports at least as many colors as provided - * in `count`. Minimum support is 2 (black and white). - * - * This has the same false positives and negatives as described in `writeStream.getColorDepth()`. - * - * ```js - * process.stdout.hasColors(); - * // Returns true or false depending on if `stdout` supports at least 16 colors. - * process.stdout.hasColors(256); - * // Returns true or false depending on if `stdout` supports at least 256 colors. - * process.stdout.hasColors({ TMUX: '1' }); - * // Returns true. - * process.stdout.hasColors(2 ** 24, { TMUX: '1' }); - * // Returns false (the environment setting pretends to support 2 ** 8 colors). - * ``` - * @since v11.13.0, v10.16.0 - * @param [count=16] The number of colors that are requested (minimum 2). - * @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal. - */ - hasColors(count?: number): boolean; - hasColors(env?: object): boolean; - hasColors(count: number, env?: object): boolean; - /** - * `writeStream.getWindowSize()` returns the size of the TTY - * corresponding to this `WriteStream`. The array is of the type `[numColumns, numRows]` where `numColumns` and `numRows` represent the number - * of columns and rows in the corresponding TTY. - * @since v0.7.7 - */ - getWindowSize(): [number, number]; - /** - * A `number` specifying the number of columns the TTY currently has. This property - * is updated whenever the `'resize'` event is emitted. - * @since v0.7.7 - */ - columns: number; - /** - * A `number` specifying the number of rows the TTY currently has. This property - * is updated whenever the `'resize'` event is emitted. - * @since v0.7.7 - */ - rows: number; - /** - * A `boolean` that is always `true`. - * @since v0.5.8 - */ - isTTY: boolean; - } -} -declare module "node:tty" { - export * from "tty"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/url.d.ts b/build_vtk_bundle/node_modules/@types/node/url.d.ts deleted file mode 100644 index 8d0fb658..00000000 --- a/build_vtk_bundle/node_modules/@types/node/url.d.ts +++ /dev/null @@ -1,1057 +0,0 @@ -/** - * The `node:url` module provides utilities for URL resolution and parsing. It can - * be accessed using: - * - * ```js - * import url from 'node:url'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/url.js) - */ -declare module "url" { - import { Blob as NodeBlob, NonSharedBuffer } from "node:buffer"; - import { ClientRequestArgs } from "node:http"; - import { ParsedUrlQuery, ParsedUrlQueryInput } from "node:querystring"; - // Input to `url.format` - interface UrlObject { - auth?: string | null | undefined; - hash?: string | null | undefined; - host?: string | null | undefined; - hostname?: string | null | undefined; - href?: string | null | undefined; - pathname?: string | null | undefined; - protocol?: string | null | undefined; - search?: string | null | undefined; - slashes?: boolean | null | undefined; - port?: string | number | null | undefined; - query?: string | null | ParsedUrlQueryInput | undefined; - } - // Output of `url.parse` - interface Url { - auth: string | null; - hash: string | null; - host: string | null; - hostname: string | null; - href: string; - path: string | null; - pathname: string | null; - protocol: string | null; - search: string | null; - slashes: boolean | null; - port: string | null; - query: string | null | ParsedUrlQuery; - } - interface UrlWithParsedQuery extends Url { - query: ParsedUrlQuery; - } - interface UrlWithStringQuery extends Url { - query: string | null; - } - interface FileUrlToPathOptions { - /** - * `true` if the `path` should be return as a windows filepath, `false` for posix, and `undefined` for the system default. - * @default undefined - * @since v22.1.0 - */ - windows?: boolean | undefined; - } - interface PathToFileUrlOptions { - /** - * `true` if the `path` should be return as a windows filepath, `false` for posix, and `undefined` for the system default. - * @default undefined - * @since v22.1.0 - */ - windows?: boolean | undefined; - } - /** - * The `url.parse()` method takes a URL string, parses it, and returns a URL - * object. - * - * A `TypeError` is thrown if `urlString` is not a string. - * - * A `URIError` is thrown if the `auth` property is present but cannot be decoded. - * - * `url.parse()` uses a lenient, non-standard algorithm for parsing URL - * strings. It is prone to security issues such as [host name spoofing](https://hackerone.com/reports/678487) - * and incorrect handling of usernames and passwords. Do not use with untrusted - * input. CVEs are not issued for `url.parse()` vulnerabilities. Use the - * [WHATWG URL](https://nodejs.org/docs/latest-v24.x/api/url.html#the-whatwg-url-api) API instead, for example: - * - * ```js - * function getURL(req) { - * const proto = req.headers['x-forwarded-proto'] || 'https'; - * const host = req.headers['x-forwarded-host'] || req.headers.host || 'example.com'; - * return new URL(req.url || '/', `${proto}://${host}`); - * } - * ``` - * - * The example above assumes well-formed headers are forwarded from a reverse - * proxy to your Node.js server. If you are not using a reverse proxy, you should - * use the example below: - * - * ```js - * function getURL(req) { - * return new URL(req.url || '/', 'https://example.com'); - * } - * ``` - * @since v0.1.25 - * @deprecated Use the WHATWG URL API instead. - * @param urlString The URL string to parse. - * @param parseQueryString If `true`, the `query` property will always - * be set to an object returned by the [`querystring`](https://nodejs.org/docs/latest-v24.x/api/querystring.html) module's `parse()` - * method. If `false`, the `query` property on the returned URL object will be an - * unparsed, undecoded string. **Default:** `false`. - * @param slashesDenoteHost If `true`, the first token after the literal - * string `//` and preceding the next `/` will be interpreted as the `host`. - * For instance, given `//foo/bar`, the result would be - * `{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`. - * **Default:** `false`. - */ - function parse( - urlString: string, - parseQueryString?: false, - slashesDenoteHost?: boolean, - ): UrlWithStringQuery; - function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery; - function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url; - /** - * The `url.format()` method returns a formatted URL string derived from `urlObject`. - * - * ```js - * import url from 'node:url'; - * url.format({ - * protocol: 'https', - * hostname: 'example.com', - * pathname: '/some/path', - * query: { - * page: 1, - * format: 'json', - * }, - * }); - * - * // => 'https://example.com/some/path?page=1&format=json' - * ``` - * - * If `urlObject` is not an object or a string, `url.format()` will throw a `TypeError`. - * - * The formatting process operates as follows: - * - * * A new empty string `result` is created. - * * If `urlObject.protocol` is a string, it is appended as-is to `result`. - * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown. - * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII - * colon (`:`) character, the literal string `:` will be appended to `result`. - * * If either of the following conditions is true, then the literal string `//` will be appended to `result`: - * * `urlObject.slashes` property is true; - * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`; - * * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string - * and appended to `result` followed by the literal string `@`. - * * If the `urlObject.host` property is `undefined` then: - * * If the `urlObject.hostname` is a string, it is appended to `result`. - * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string, - * an `Error` is thrown. - * * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`: - * * The literal string `:` is appended to `result`, and - * * The value of `urlObject.port` is coerced to a string and appended to `result`. - * * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`. - * * If the `urlObject.pathname` property is a string that is not an empty string: - * * If the `urlObject.pathname` _does not start_ with an ASCII forward slash - * (`/`), then the literal string `'/'` is appended to `result`. - * * The value of `urlObject.pathname` is appended to `result`. - * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown. - * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the - * `querystring` module's `stringify()` method passing the value of `urlObject.query`. - * * Otherwise, if `urlObject.search` is a string: - * * If the value of `urlObject.search` _does not start_ with the ASCII question - * mark (`?`) character, the literal string `?` is appended to `result`. - * * The value of `urlObject.search` is appended to `result`. - * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown. - * * If the `urlObject.hash` property is a string: - * * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`) - * character, the literal string `#` is appended to `result`. - * * The value of `urlObject.hash` is appended to `result`. - * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a - * string, an `Error` is thrown. - * * `result` is returned. - * @since v0.1.25 - * @legacy Use the WHATWG URL API instead. - * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`. - */ - function format(urlObject: URL, options?: URLFormatOptions): string; - /** - * The `url.format()` method returns a formatted URL string derived from `urlObject`. - * - * ```js - * import url from 'node:url'; - * url.format({ - * protocol: 'https', - * hostname: 'example.com', - * pathname: '/some/path', - * query: { - * page: 1, - * format: 'json', - * }, - * }); - * - * // => 'https://example.com/some/path?page=1&format=json' - * ``` - * - * If `urlObject` is not an object or a string, `url.format()` will throw a `TypeError`. - * - * The formatting process operates as follows: - * - * * A new empty string `result` is created. - * * If `urlObject.protocol` is a string, it is appended as-is to `result`. - * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown. - * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII - * colon (`:`) character, the literal string `:` will be appended to `result`. - * * If either of the following conditions is true, then the literal string `//` will be appended to `result`: - * * `urlObject.slashes` property is true; - * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or `file`; - * * If the value of the `urlObject.auth` property is truthy, and either `urlObject.host` or `urlObject.hostname` are not `undefined`, the value of `urlObject.auth` will be coerced into a string - * and appended to `result` followed by the literal string `@`. - * * If the `urlObject.host` property is `undefined` then: - * * If the `urlObject.hostname` is a string, it is appended to `result`. - * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string, - * an `Error` is thrown. - * * If the `urlObject.port` property value is truthy, and `urlObject.hostname` is not `undefined`: - * * The literal string `:` is appended to `result`, and - * * The value of `urlObject.port` is coerced to a string and appended to `result`. - * * Otherwise, if the `urlObject.host` property value is truthy, the value of `urlObject.host` is coerced to a string and appended to `result`. - * * If the `urlObject.pathname` property is a string that is not an empty string: - * * If the `urlObject.pathname` _does not start_ with an ASCII forward slash - * (`/`), then the literal string `'/'` is appended to `result`. - * * The value of `urlObject.pathname` is appended to `result`. - * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown. - * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result` followed by the output of calling the - * `querystring` module's `stringify()` method passing the value of `urlObject.query`. - * * Otherwise, if `urlObject.search` is a string: - * * If the value of `urlObject.search` _does not start_ with the ASCII question - * mark (`?`) character, the literal string `?` is appended to `result`. - * * The value of `urlObject.search` is appended to `result`. - * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown. - * * If the `urlObject.hash` property is a string: - * * If the value of `urlObject.hash` _does not start_ with the ASCII hash (`#`) - * character, the literal string `#` is appended to `result`. - * * The value of `urlObject.hash` is appended to `result`. - * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a - * string, an `Error` is thrown. - * * `result` is returned. - * @since v0.1.25 - * @legacy Use the WHATWG URL API instead. - * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`. - */ - function format(urlObject: UrlObject | string): string; - /** - * The `url.resolve()` method resolves a target URL relative to a base URL in a - * manner similar to that of a web browser resolving an anchor tag. - * - * ```js - * import url from 'node:url'; - * url.resolve('/one/two/three', 'four'); // '/one/two/four' - * url.resolve('http://example.com/', '/one'); // 'http://example.com/one' - * url.resolve('http://example.com/one', '/two'); // 'http://example.com/two' - * ``` - * - * To achieve the same result using the WHATWG URL API: - * - * ```js - * function resolve(from, to) { - * const resolvedUrl = new URL(to, new URL(from, 'resolve://')); - * if (resolvedUrl.protocol === 'resolve:') { - * // `from` is a relative URL. - * const { pathname, search, hash } = resolvedUrl; - * return pathname + search + hash; - * } - * return resolvedUrl.toString(); - * } - * - * resolve('/one/two/three', 'four'); // '/one/two/four' - * resolve('http://example.com/', '/one'); // 'http://example.com/one' - * resolve('http://example.com/one', '/two'); // 'http://example.com/two' - * ``` - * @since v0.1.25 - * @legacy Use the WHATWG URL API instead. - * @param from The base URL to use if `to` is a relative URL. - * @param to The target URL to resolve. - */ - function resolve(from: string, to: string): string; - /** - * Returns the [Punycode](https://tools.ietf.org/html/rfc5891#section-4.4) ASCII serialization of the `domain`. If `domain` is an - * invalid domain, the empty string is returned. - * - * It performs the inverse operation to {@link domainToUnicode}. - * - * ```js - * import url from 'node:url'; - * - * console.log(url.domainToASCII('español.com')); - * // Prints xn--espaol-zwa.com - * console.log(url.domainToASCII('中文.com')); - * // Prints xn--fiq228c.com - * console.log(url.domainToASCII('xn--iñvalid.com')); - * // Prints an empty string - * ``` - * @since v7.4.0, v6.13.0 - */ - function domainToASCII(domain: string): string; - /** - * Returns the Unicode serialization of the `domain`. If `domain` is an invalid - * domain, the empty string is returned. - * - * It performs the inverse operation to {@link domainToASCII}. - * - * ```js - * import url from 'node:url'; - * - * console.log(url.domainToUnicode('xn--espaol-zwa.com')); - * // Prints español.com - * console.log(url.domainToUnicode('xn--fiq228c.com')); - * // Prints 中文.com - * console.log(url.domainToUnicode('xn--iñvalid.com')); - * // Prints an empty string - * ``` - * @since v7.4.0, v6.13.0 - */ - function domainToUnicode(domain: string): string; - /** - * This function ensures the correct decodings of percent-encoded characters as - * well as ensuring a cross-platform valid absolute path string. - * - * ```js - * import { fileURLToPath } from 'node:url'; - * - * const __filename = fileURLToPath(import.meta.url); - * - * new URL('file:///C:/path/').pathname; // Incorrect: /C:/path/ - * fileURLToPath('file:///C:/path/'); // Correct: C:\path\ (Windows) - * - * new URL('file://nas/foo.txt').pathname; // Incorrect: /foo.txt - * fileURLToPath('file://nas/foo.txt'); // Correct: \\nas\foo.txt (Windows) - * - * new URL('file:///你好.txt').pathname; // Incorrect: /%E4%BD%A0%E5%A5%BD.txt - * fileURLToPath('file:///你好.txt'); // Correct: /你好.txt (POSIX) - * - * new URL('file:///hello world').pathname; // Incorrect: /hello%20world - * fileURLToPath('file:///hello world'); // Correct: /hello world (POSIX) - * ``` - * @since v10.12.0 - * @param url The file URL string or URL object to convert to a path. - * @return The fully-resolved platform-specific Node.js file path. - */ - function fileURLToPath(url: string | URL, options?: FileUrlToPathOptions): string; - /** - * Like `url.fileURLToPath(...)` except that instead of returning a string - * representation of the path, a `Buffer` is returned. This conversion is - * helpful when the input URL contains percent-encoded segments that are - * not valid UTF-8 / Unicode sequences. - * @since v24.3.0 - * @param url The file URL string or URL object to convert to a path. - * @returns The fully-resolved platform-specific Node.js file path - * as a `Buffer`. - */ - function fileURLToPathBuffer(url: string | URL, options?: FileUrlToPathOptions): NonSharedBuffer; - /** - * This function ensures that `path` is resolved absolutely, and that the URL - * control characters are correctly encoded when converting into a File URL. - * - * ```js - * import { pathToFileURL } from 'node:url'; - * - * new URL('/foo#1', 'file:'); // Incorrect: file:///foo#1 - * pathToFileURL('/foo#1'); // Correct: file:///foo%231 (POSIX) - * - * new URL('/some/path%.c', 'file:'); // Incorrect: file:///some/path%.c - * pathToFileURL('/some/path%.c'); // Correct: file:///some/path%25.c (POSIX) - * ``` - * @since v10.12.0 - * @param path The path to convert to a File URL. - * @return The file URL object. - */ - function pathToFileURL(path: string, options?: PathToFileUrlOptions): URL; - /** - * This utility function converts a URL object into an ordinary options object as - * expected by the `http.request()` and `https.request()` APIs. - * - * ```js - * import { urlToHttpOptions } from 'node:url'; - * const myURL = new URL('https://a:b@測試?abc#foo'); - * - * console.log(urlToHttpOptions(myURL)); - * /* - * { - * protocol: 'https:', - * hostname: 'xn--g6w251d', - * hash: '#foo', - * search: '?abc', - * pathname: '/', - * path: '/?abc', - * href: 'https://a:b@xn--g6w251d/?abc#foo', - * auth: 'a:b' - * } - * - * ``` - * @since v15.7.0, v14.18.0 - * @param url The `WHATWG URL` object to convert to an options object. - * @return Options object - */ - function urlToHttpOptions(url: URL): ClientRequestArgs; - interface URLFormatOptions { - /** - * `true` if the serialized URL string should include the username and password, `false` otherwise. - * @default true - */ - auth?: boolean | undefined; - /** - * `true` if the serialized URL string should include the fragment, `false` otherwise. - * @default true - */ - fragment?: boolean | undefined; - /** - * `true` if the serialized URL string should include the search query, `false` otherwise. - * @default true - */ - search?: boolean | undefined; - /** - * `true` if Unicode characters appearing in the host component of the URL string should be encoded directly as opposed to - * being Punycode encoded. - * @default false - */ - unicode?: boolean | undefined; - } - /** - * Browser-compatible `URL` class, implemented by following the WHATWG URL - * Standard. [Examples of parsed URLs](https://url.spec.whatwg.org/#example-url-parsing) may be found in the Standard itself. - * The `URL` class is also available on the global object. - * - * In accordance with browser conventions, all properties of `URL` objects - * are implemented as getters and setters on the class prototype, rather than as - * data properties on the object itself. Thus, unlike `legacy urlObject`s, - * using the `delete` keyword on any properties of `URL` objects (e.g. `delete myURL.protocol`, `delete myURL.pathname`, etc) has no effect but will still - * return `true`. - * @since v7.0.0, v6.13.0 - */ - class URL { - /** - * Creates a `'blob:nodedata:...'` URL string that represents the given `Blob` object and can be used to retrieve the `Blob` later. - * - * ```js - * import { - * Blob, - * resolveObjectURL, - * } from 'node:buffer'; - * - * const blob = new Blob(['hello']); - * const id = URL.createObjectURL(blob); - * - * // later... - * - * const otherBlob = resolveObjectURL(id); - * console.log(otherBlob.size); - * ``` - * - * The data stored by the registered `Blob` will be retained in memory until `URL.revokeObjectURL()` is called to remove it. - * - * `Blob` objects are registered within the current thread. If using Worker - * Threads, `Blob` objects registered within one Worker will not be available - * to other workers or the main thread. - * @since v16.7.0 - */ - static createObjectURL(blob: NodeBlob): string; - /** - * Removes the stored `Blob` identified by the given ID. Attempting to revoke a - * ID that isn't registered will silently fail. - * @since v16.7.0 - * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`. - */ - static revokeObjectURL(id: string): void; - /** - * Checks if an `input` relative to the `base` can be parsed to a `URL`. - * - * ```js - * const isValid = URL.canParse('/foo', 'https://example.org/'); // true - * - * const isNotValid = URL.canParse('/foo'); // false - * ``` - * @since v19.9.0 - * @param input The absolute or relative input URL to parse. If `input` is relative, then `base` is required. If `input` is absolute, the `base` is ignored. If `input` is not a string, it is - * `converted to a string` first. - * @param base The base URL to resolve against if the `input` is not absolute. If `base` is not a string, it is `converted to a string` first. - */ - static canParse(input: string, base?: string): boolean; - /** - * Parses a string as a URL. If `base` is provided, it will be used as the base - * URL for the purpose of resolving non-absolute `input` URLs. Returns `null` - * if the parameters can't be resolved to a valid URL. - * @since v22.1.0 - * @param input The absolute or relative input URL to parse. If `input` - * is relative, then `base` is required. If `input` is absolute, the `base` - * is ignored. If `input` is not a string, it is [converted to a string](https://tc39.es/ecma262/#sec-tostring) first. - * @param base The base URL to resolve against if the `input` is not - * absolute. If `base` is not a string, it is [converted to a string](https://tc39.es/ecma262/#sec-tostring) first. - */ - static parse(input: string, base?: string): URL | null; - constructor(input: string | { toString: () => string }, base?: string | URL); - /** - * Gets and sets the fragment portion of the URL. - * - * ```js - * const myURL = new URL('https://example.org/foo#bar'); - * console.log(myURL.hash); - * // Prints #bar - * - * myURL.hash = 'baz'; - * console.log(myURL.href); - * // Prints https://example.org/foo#baz - * ``` - * - * Invalid URL characters included in the value assigned to the `hash` property - * are `percent-encoded`. The selection of which characters to - * percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. - */ - hash: string; - /** - * Gets and sets the host portion of the URL. - * - * ```js - * const myURL = new URL('https://example.org:81/foo'); - * console.log(myURL.host); - * // Prints example.org:81 - * - * myURL.host = 'example.com:82'; - * console.log(myURL.href); - * // Prints https://example.com:82/foo - * ``` - * - * Invalid host values assigned to the `host` property are ignored. - */ - host: string; - /** - * Gets and sets the host name portion of the URL. The key difference between`url.host` and `url.hostname` is that `url.hostname` does _not_ include the - * port. - * - * ```js - * const myURL = new URL('https://example.org:81/foo'); - * console.log(myURL.hostname); - * // Prints example.org - * - * // Setting the hostname does not change the port - * myURL.hostname = 'example.com'; - * console.log(myURL.href); - * // Prints https://example.com:81/foo - * - * // Use myURL.host to change the hostname and port - * myURL.host = 'example.org:82'; - * console.log(myURL.href); - * // Prints https://example.org:82/foo - * ``` - * - * Invalid host name values assigned to the `hostname` property are ignored. - */ - hostname: string; - /** - * Gets and sets the serialized URL. - * - * ```js - * const myURL = new URL('https://example.org/foo'); - * console.log(myURL.href); - * // Prints https://example.org/foo - * - * myURL.href = 'https://example.com/bar'; - * console.log(myURL.href); - * // Prints https://example.com/bar - * ``` - * - * Getting the value of the `href` property is equivalent to calling {@link toString}. - * - * Setting the value of this property to a new value is equivalent to creating a - * new `URL` object using `new URL(value)`. Each of the `URL` object's properties will be modified. - * - * If the value assigned to the `href` property is not a valid URL, a `TypeError` will be thrown. - */ - href: string; - /** - * Gets the read-only serialization of the URL's origin. - * - * ```js - * const myURL = new URL('https://example.org/foo/bar?baz'); - * console.log(myURL.origin); - * // Prints https://example.org - * ``` - * - * ```js - * const idnURL = new URL('https://測試'); - * console.log(idnURL.origin); - * // Prints https://xn--g6w251d - * - * console.log(idnURL.hostname); - * // Prints xn--g6w251d - * ``` - */ - readonly origin: string; - /** - * Gets and sets the password portion of the URL. - * - * ```js - * const myURL = new URL('https://abc:xyz@example.com'); - * console.log(myURL.password); - * // Prints xyz - * - * myURL.password = '123'; - * console.log(myURL.href); - * // Prints https://abc:123@example.com/ - * ``` - * - * Invalid URL characters included in the value assigned to the `password` property - * are `percent-encoded`. The selection of which characters to - * percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. - */ - password: string; - /** - * Gets and sets the path portion of the URL. - * - * ```js - * const myURL = new URL('https://example.org/abc/xyz?123'); - * console.log(myURL.pathname); - * // Prints /abc/xyz - * - * myURL.pathname = '/abcdef'; - * console.log(myURL.href); - * // Prints https://example.org/abcdef?123 - * ``` - * - * Invalid URL characters included in the value assigned to the `pathname` property are `percent-encoded`. The selection of which characters - * to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. - */ - pathname: string; - /** - * Gets and sets the port portion of the URL. - * - * The port value may be a number or a string containing a number in the range `0` to `65535` (inclusive). Setting the value to the default port of the `URL` objects given `protocol` will - * result in the `port` value becoming - * the empty string (`''`). - * - * The port value can be an empty string in which case the port depends on - * the protocol/scheme: - * - * - * - * Upon assigning a value to the port, the value will first be converted to a - * string using `.toString()`. - * - * If that string is invalid but it begins with a number, the leading number is - * assigned to `port`. - * If the number lies outside the range denoted above, it is ignored. - * - * ```js - * const myURL = new URL('https://example.org:8888'); - * console.log(myURL.port); - * // Prints 8888 - * - * // Default ports are automatically transformed to the empty string - * // (HTTPS protocol's default port is 443) - * myURL.port = '443'; - * console.log(myURL.port); - * // Prints the empty string - * console.log(myURL.href); - * // Prints https://example.org/ - * - * myURL.port = 1234; - * console.log(myURL.port); - * // Prints 1234 - * console.log(myURL.href); - * // Prints https://example.org:1234/ - * - * // Completely invalid port strings are ignored - * myURL.port = 'abcd'; - * console.log(myURL.port); - * // Prints 1234 - * - * // Leading numbers are treated as a port number - * myURL.port = '5678abcd'; - * console.log(myURL.port); - * // Prints 5678 - * - * // Non-integers are truncated - * myURL.port = 1234.5678; - * console.log(myURL.port); - * // Prints 1234 - * - * // Out-of-range numbers which are not represented in scientific notation - * // will be ignored. - * myURL.port = 1e10; // 10000000000, will be range-checked as described below - * console.log(myURL.port); - * // Prints 1234 - * ``` - * - * Numbers which contain a decimal point, - * such as floating-point numbers or numbers in scientific notation, - * are not an exception to this rule. - * Leading numbers up to the decimal point will be set as the URL's port, - * assuming they are valid: - * - * ```js - * myURL.port = 4.567e21; - * console.log(myURL.port); - * // Prints 4 (because it is the leading number in the string '4.567e21') - * ``` - */ - port: string; - /** - * Gets and sets the protocol portion of the URL. - * - * ```js - * const myURL = new URL('https://example.org'); - * console.log(myURL.protocol); - * // Prints https: - * - * myURL.protocol = 'ftp'; - * console.log(myURL.href); - * // Prints ftp://example.org/ - * ``` - * - * Invalid URL protocol values assigned to the `protocol` property are ignored. - */ - protocol: string; - /** - * Gets and sets the serialized query portion of the URL. - * - * ```js - * const myURL = new URL('https://example.org/abc?123'); - * console.log(myURL.search); - * // Prints ?123 - * - * myURL.search = 'abc=xyz'; - * console.log(myURL.href); - * // Prints https://example.org/abc?abc=xyz - * ``` - * - * Any invalid URL characters appearing in the value assigned the `search` property will be `percent-encoded`. The selection of which - * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. - */ - search: string; - /** - * Gets the `URLSearchParams` object representing the query parameters of the - * URL. This property is read-only but the `URLSearchParams` object it provides - * can be used to mutate the URL instance; to replace the entirety of query - * parameters of the URL, use the {@link search} setter. See `URLSearchParams` documentation for details. - * - * Use care when using `.searchParams` to modify the `URL` because, - * per the WHATWG specification, the `URLSearchParams` object uses - * different rules to determine which characters to percent-encode. For - * instance, the `URL` object will not percent encode the ASCII tilde (`~`) - * character, while `URLSearchParams` will always encode it: - * - * ```js - * const myURL = new URL('https://example.org/abc?foo=~bar'); - * - * console.log(myURL.search); // prints ?foo=~bar - * - * // Modify the URL via searchParams... - * myURL.searchParams.sort(); - * - * console.log(myURL.search); // prints ?foo=%7Ebar - * ``` - */ - readonly searchParams: URLSearchParams; - /** - * Gets and sets the username portion of the URL. - * - * ```js - * const myURL = new URL('https://abc:xyz@example.com'); - * console.log(myURL.username); - * // Prints abc - * - * myURL.username = '123'; - * console.log(myURL.href); - * // Prints https://123:xyz@example.com/ - * ``` - * - * Any invalid URL characters appearing in the value assigned the `username` property will be `percent-encoded`. The selection of which - * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. - */ - username: string; - /** - * The `toString()` method on the `URL` object returns the serialized URL. The - * value returned is equivalent to that of {@link href} and {@link toJSON}. - */ - toString(): string; - /** - * The `toJSON()` method on the `URL` object returns the serialized URL. The - * value returned is equivalent to that of {@link href} and {@link toString}. - * - * This method is automatically called when an `URL` object is serialized - * with [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify). - * - * ```js - * const myURLs = [ - * new URL('https://www.example.com'), - * new URL('https://test.example.org'), - * ]; - * console.log(JSON.stringify(myURLs)); - * // Prints ["https://www.example.com/","https://test.example.org/"] - * ``` - */ - toJSON(): string; - } - interface URLPatternComponentResult { - input: string; - groups: Record; - } - interface URLPatternInit { - protocol?: string; - username?: string; - password?: string; - hostname?: string; - port?: string; - pathname?: string; - search?: string; - hash?: string; - baseURL?: string; - } - interface URLPatternOptions { - ignoreCase?: boolean; - } - interface URLPatternResult { - inputs: (string | URLPatternInit)[]; - protocol: URLPatternComponentResult; - username: URLPatternComponentResult; - password: URLPatternComponentResult; - hostname: URLPatternComponentResult; - port: URLPatternComponentResult; - pathname: URLPatternComponentResult; - search: URLPatternComponentResult; - hash: URLPatternComponentResult; - } - /** - * @since v23.8.0 - * @experimental - */ - class URLPattern { - constructor(input: string | URLPatternInit, baseURL: string, options?: URLPatternOptions); - constructor(input?: string | URLPatternInit, options?: URLPatternOptions); - exec(input?: string | URLPatternInit, baseURL?: string): URLPatternResult | null; - readonly hasRegExpGroups: boolean; - readonly hash: string; - readonly hostname: string; - readonly password: string; - readonly pathname: string; - readonly port: string; - readonly protocol: string; - readonly search: string; - test(input?: string | URLPatternInit, baseURL?: string): boolean; - readonly username: string; - } - interface URLSearchParamsIterator extends NodeJS.Iterator { - [Symbol.iterator](): URLSearchParamsIterator; - } - /** - * The `URLSearchParams` API provides read and write access to the query of a `URL`. The `URLSearchParams` class can also be used standalone with one of the - * four following constructors. - * The `URLSearchParams` class is also available on the global object. - * - * The WHATWG `URLSearchParams` interface and the `querystring` module have - * similar purpose, but the purpose of the `querystring` module is more - * general, as it allows the customization of delimiter characters (`&` and `=`). - * On the other hand, this API is designed purely for URL query strings. - * - * ```js - * const myURL = new URL('https://example.org/?abc=123'); - * console.log(myURL.searchParams.get('abc')); - * // Prints 123 - * - * myURL.searchParams.append('abc', 'xyz'); - * console.log(myURL.href); - * // Prints https://example.org/?abc=123&abc=xyz - * - * myURL.searchParams.delete('abc'); - * myURL.searchParams.set('a', 'b'); - * console.log(myURL.href); - * // Prints https://example.org/?a=b - * - * const newSearchParams = new URLSearchParams(myURL.searchParams); - * // The above is equivalent to - * // const newSearchParams = new URLSearchParams(myURL.search); - * - * newSearchParams.append('a', 'c'); - * console.log(myURL.href); - * // Prints https://example.org/?a=b - * console.log(newSearchParams.toString()); - * // Prints a=b&a=c - * - * // newSearchParams.toString() is implicitly called - * myURL.search = newSearchParams; - * console.log(myURL.href); - * // Prints https://example.org/?a=b&a=c - * newSearchParams.delete('a'); - * console.log(myURL.href); - * // Prints https://example.org/?a=b&a=c - * ``` - * @since v7.5.0, v6.13.0 - */ - class URLSearchParams implements Iterable<[string, string]> { - constructor( - init?: - | URLSearchParams - | string - | Record - | Iterable<[string, string]> - | ReadonlyArray<[string, string]>, - ); - /** - * Append a new name-value pair to the query string. - */ - append(name: string, value: string): void; - /** - * If `value` is provided, removes all name-value pairs - * where name is `name` and value is `value`. - * - * If `value` is not provided, removes all name-value pairs whose name is `name`. - */ - delete(name: string, value?: string): void; - /** - * Returns an ES6 `Iterator` over each of the name-value pairs in the query. - * Each item of the iterator is a JavaScript `Array`. The first item of the `Array` is the `name`, the second item of the `Array` is the `value`. - * - * Alias for `urlSearchParams[Symbol.iterator]()`. - */ - entries(): URLSearchParamsIterator<[string, string]>; - /** - * Iterates over each name-value pair in the query and invokes the given function. - * - * ```js - * const myURL = new URL('https://example.org/?a=b&c=d'); - * myURL.searchParams.forEach((value, name, searchParams) => { - * console.log(name, value, myURL.searchParams === searchParams); - * }); - * // Prints: - * // a b true - * // c d true - * ``` - * @param fn Invoked for each name-value pair in the query - * @param thisArg To be used as `this` value for when `fn` is called - */ - forEach( - fn: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void, - thisArg?: TThis, - ): void; - /** - * Returns the value of the first name-value pair whose name is `name`. If there - * are no such pairs, `null` is returned. - * @return or `null` if there is no name-value pair with the given `name`. - */ - get(name: string): string | null; - /** - * Returns the values of all name-value pairs whose name is `name`. If there are - * no such pairs, an empty array is returned. - */ - getAll(name: string): string[]; - /** - * Checks if the `URLSearchParams` object contains key-value pair(s) based on `name` and an optional `value` argument. - * - * If `value` is provided, returns `true` when name-value pair with - * same `name` and `value` exists. - * - * If `value` is not provided, returns `true` if there is at least one name-value - * pair whose name is `name`. - */ - has(name: string, value?: string): boolean; - /** - * Returns an ES6 `Iterator` over the names of each name-value pair. - * - * ```js - * const params = new URLSearchParams('foo=bar&foo=baz'); - * for (const name of params.keys()) { - * console.log(name); - * } - * // Prints: - * // foo - * // foo - * ``` - */ - keys(): URLSearchParamsIterator; - /** - * Sets the value in the `URLSearchParams` object associated with `name` to `value`. If there are any pre-existing name-value pairs whose names are `name`, - * set the first such pair's value to `value` and remove all others. If not, - * append the name-value pair to the query string. - * - * ```js - * const params = new URLSearchParams(); - * params.append('foo', 'bar'); - * params.append('foo', 'baz'); - * params.append('abc', 'def'); - * console.log(params.toString()); - * // Prints foo=bar&foo=baz&abc=def - * - * params.set('foo', 'def'); - * params.set('xyz', 'opq'); - * console.log(params.toString()); - * // Prints foo=def&abc=def&xyz=opq - * ``` - */ - set(name: string, value: string): void; - /** - * The total number of parameter entries. - * @since v19.8.0 - */ - readonly size: number; - /** - * Sort all existing name-value pairs in-place by their names. Sorting is done - * with a [stable sorting algorithm](https://en.wikipedia.org/wiki/Sorting_algorithm#Stability), so relative order between name-value pairs - * with the same name is preserved. - * - * This method can be used, in particular, to increase cache hits. - * - * ```js - * const params = new URLSearchParams('query[]=abc&type=search&query[]=123'); - * params.sort(); - * console.log(params.toString()); - * // Prints query%5B%5D=abc&query%5B%5D=123&type=search - * ``` - * @since v7.7.0, v6.13.0 - */ - sort(): void; - /** - * Returns the search parameters serialized as a string, with characters - * percent-encoded where necessary. - */ - toString(): string; - /** - * Returns an ES6 `Iterator` over the values of each name-value pair. - */ - values(): URLSearchParamsIterator; - [Symbol.iterator](): URLSearchParamsIterator<[string, string]>; - } - import { - URL as _URL, - URLPattern as _URLPattern, - URLPatternInit as _URLPatternInit, - URLPatternResult as _URLPatternResult, - URLSearchParams as _URLSearchParams, - } from "url"; - global { - interface URL extends _URL {} - var URL: typeof globalThis extends { - onmessage: any; - URL: infer T; - } ? T - : typeof _URL; - interface URLSearchParams extends _URLSearchParams {} - var URLSearchParams: typeof globalThis extends { - onmessage: any; - URLSearchParams: infer T; - } ? T - : typeof _URLSearchParams; - interface URLPatternInit extends _URLPatternInit {} - interface URLPatternResult extends _URLPatternResult {} - interface URLPattern extends _URLPattern {} - var URLPattern: typeof globalThis extends { - onmessage: any; - scheduler: any; // Must be a var introduced at the same time as URLPattern. - URLPattern: infer T; - } ? T - : typeof _URLPattern; - } -} -declare module "node:url" { - export * from "url"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/util.d.ts b/build_vtk_bundle/node_modules/@types/node/util.d.ts deleted file mode 100644 index c825a79b..00000000 --- a/build_vtk_bundle/node_modules/@types/node/util.d.ts +++ /dev/null @@ -1,2325 +0,0 @@ -/** - * The `node:util` module supports the needs of Node.js internal APIs. Many of the - * utilities are useful for application and module developers as well. To access - * it: - * - * ```js - * import util from 'node:util'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/util.js) - */ -declare module "util" { - import * as types from "node:util/types"; - export interface InspectOptions { - /** - * If `true`, object's non-enumerable symbols and properties are included in the formatted result. - * `WeakMap` and `WeakSet` entries are also included as well as user defined prototype properties (excluding method properties). - * @default false - */ - showHidden?: boolean | undefined; - /** - * Specifies the number of times to recurse while formatting object. - * This is useful for inspecting large objects. - * To recurse up to the maximum call stack size pass `Infinity` or `null`. - * @default 2 - */ - depth?: number | null | undefined; - /** - * If `true`, the output is styled with ANSI color codes. Colors are customizable. - */ - colors?: boolean | undefined; - /** - * If `false`, `[util.inspect.custom](depth, opts, inspect)` functions are not invoked. - * @default true - */ - customInspect?: boolean | undefined; - /** - * If `true`, `Proxy` inspection includes the target and handler objects. - * @default false - */ - showProxy?: boolean | undefined; - /** - * Specifies the maximum number of `Array`, `TypedArray`, `WeakMap`, and `WeakSet` elements - * to include when formatting. Set to `null` or `Infinity` to show all elements. - * Set to `0` or negative to show no elements. - * @default 100 - */ - maxArrayLength?: number | null | undefined; - /** - * Specifies the maximum number of characters to - * include when formatting. Set to `null` or `Infinity` to show all elements. - * Set to `0` or negative to show no characters. - * @default 10000 - */ - maxStringLength?: number | null | undefined; - /** - * The length at which input values are split across multiple lines. - * Set to `Infinity` to format the input as a single line - * (in combination with `compact` set to `true` or any number >= `1`). - * @default 80 - */ - breakLength?: number | undefined; - /** - * Setting this to `false` causes each object key - * to be displayed on a new line. It will also add new lines to text that is - * longer than `breakLength`. If set to a number, the most `n` inner elements - * are united on a single line as long as all properties fit into - * `breakLength`. Short array elements are also grouped together. Note that no - * text will be reduced below 16 characters, no matter the `breakLength` size. - * For more information, see the example below. - * @default true - */ - compact?: boolean | number | undefined; - /** - * If set to `true` or a function, all properties of an object, and `Set` and `Map` - * entries are sorted in the resulting string. - * If set to `true` the default sort is used. - * If set to a function, it is used as a compare function. - */ - sorted?: boolean | ((a: string, b: string) => number) | undefined; - /** - * If set to `true`, getters are going to be - * inspected as well. If set to `'get'` only getters without setter are going - * to be inspected. If set to `'set'` only getters having a corresponding - * setter are going to be inspected. This might cause side effects depending on - * the getter function. - * @default false - */ - getters?: "get" | "set" | boolean | undefined; - /** - * If set to `true`, an underscore is used to separate every three digits in all bigints and numbers. - * @default false - */ - numericSeparator?: boolean | undefined; - } - export type Style = - | "special" - | "number" - | "bigint" - | "boolean" - | "undefined" - | "null" - | "string" - | "symbol" - | "date" - | "regexp" - | "module"; - export type CustomInspectFunction = (depth: number, options: InspectOptionsStylized) => any; // TODO: , inspect: inspect - export interface InspectOptionsStylized extends InspectOptions { - stylize(text: string, styleType: Style): string; - } - export interface CallSiteObject { - /** - * Returns the name of the function associated with this call site. - */ - functionName: string; - /** - * Returns the name of the resource that contains the script for the - * function for this call site. - */ - scriptName: string; - /** - * Returns the unique id of the script, as in Chrome DevTools protocol - * [`Runtime.ScriptId`](https://chromedevtools.github.io/devtools-protocol/1-3/Runtime/#type-ScriptId). - * @since v22.14.0 - */ - scriptId: string; - /** - * Returns the number, 1-based, of the line for the associate function call. - */ - lineNumber: number; - /** - * Returns the 1-based column offset on the line for the associated function call. - */ - columnNumber: number; - } - export type DiffEntry = [operation: -1 | 0 | 1, value: string]; - /** - * `util.diff()` compares two string or array values and returns an array of difference entries. - * It uses the Myers diff algorithm to compute minimal differences, which is the same algorithm - * used internally by assertion error messages. - * - * If the values are equal, an empty array is returned. - * - * ```js - * const { diff } = require('node:util'); - * - * // Comparing strings - * const actualString = '12345678'; - * const expectedString = '12!!5!7!'; - * console.log(diff(actualString, expectedString)); - * // [ - * // [0, '1'], - * // [0, '2'], - * // [1, '3'], - * // [1, '4'], - * // [-1, '!'], - * // [-1, '!'], - * // [0, '5'], - * // [1, '6'], - * // [-1, '!'], - * // [0, '7'], - * // [1, '8'], - * // [-1, '!'], - * // ] - * // Comparing arrays - * const actualArray = ['1', '2', '3']; - * const expectedArray = ['1', '3', '4']; - * console.log(diff(actualArray, expectedArray)); - * // [ - * // [0, '1'], - * // [1, '2'], - * // [0, '3'], - * // [-1, '4'], - * // ] - * // Equal values return empty array - * console.log(diff('same', 'same')); - * // [] - * ``` - * @since v22.15.0 - * @experimental - * @param actual The first value to compare - * @param expected The second value to compare - * @returns An array of difference entries. Each entry is an array with two elements: - * * Index 0: `number` Operation code: `-1` for delete, `0` for no-op/unchanged, `1` for insert - * * Index 1: `string` The value associated with the operation - */ - export function diff(actual: string | readonly string[], expected: string | readonly string[]): DiffEntry[]; - /** - * The `util.format()` method returns a formatted string using the first argument - * as a `printf`-like format string which can contain zero or more format - * specifiers. Each specifier is replaced with the converted value from the - * corresponding argument. Supported specifiers are: - * - * If a specifier does not have a corresponding argument, it is not replaced: - * - * ```js - * util.format('%s:%s', 'foo'); - * // Returns: 'foo:%s' - * ``` - * - * Values that are not part of the format string are formatted using `util.inspect()` if their type is not `string`. - * - * If there are more arguments passed to the `util.format()` method than the - * number of specifiers, the extra arguments are concatenated to the returned - * string, separated by spaces: - * - * ```js - * util.format('%s:%s', 'foo', 'bar', 'baz'); - * // Returns: 'foo:bar baz' - * ``` - * - * If the first argument does not contain a valid format specifier, `util.format()` returns a string that is the concatenation of all arguments separated by spaces: - * - * ```js - * util.format(1, 2, 3); - * // Returns: '1 2 3' - * ``` - * - * If only one argument is passed to `util.format()`, it is returned as it is - * without any formatting: - * - * ```js - * util.format('%% %s'); - * // Returns: '%% %s' - * ``` - * - * `util.format()` is a synchronous method that is intended as a debugging tool. - * Some input values can have a significant performance overhead that can block the - * event loop. Use this function with care and never in a hot code path. - * @since v0.5.3 - * @param format A `printf`-like format string. - */ - export function format(format?: any, ...param: any[]): string; - /** - * This function is identical to {@link format}, except in that it takes - * an `inspectOptions` argument which specifies options that are passed along to {@link inspect}. - * - * ```js - * util.formatWithOptions({ colors: true }, 'See object %O', { foo: 42 }); - * // Returns 'See object { foo: 42 }', where `42` is colored as a number - * // when printed to a terminal. - * ``` - * @since v10.0.0 - */ - export function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string; - interface GetCallSitesOptions { - /** - * Reconstruct the original location in the stacktrace from the source-map. - * Enabled by default with the flag `--enable-source-maps`. - */ - sourceMap?: boolean | undefined; - } - /** - * Returns an array of call site objects containing the stack of - * the caller function. - * - * ```js - * import { getCallSites } from 'node:util'; - * - * function exampleFunction() { - * const callSites = getCallSites(); - * - * console.log('Call Sites:'); - * callSites.forEach((callSite, index) => { - * console.log(`CallSite ${index + 1}:`); - * console.log(`Function Name: ${callSite.functionName}`); - * console.log(`Script Name: ${callSite.scriptName}`); - * console.log(`Line Number: ${callSite.lineNumber}`); - * console.log(`Column Number: ${callSite.column}`); - * }); - * // CallSite 1: - * // Function Name: exampleFunction - * // Script Name: /home/example.js - * // Line Number: 5 - * // Column Number: 26 - * - * // CallSite 2: - * // Function Name: anotherFunction - * // Script Name: /home/example.js - * // Line Number: 22 - * // Column Number: 3 - * - * // ... - * } - * - * // A function to simulate another stack layer - * function anotherFunction() { - * exampleFunction(); - * } - * - * anotherFunction(); - * ``` - * - * It is possible to reconstruct the original locations by setting the option `sourceMap` to `true`. - * If the source map is not available, the original location will be the same as the current location. - * When the `--enable-source-maps` flag is enabled, for example when using `--experimental-transform-types`, - * `sourceMap` will be true by default. - * - * ```ts - * import { getCallSites } from 'node:util'; - * - * interface Foo { - * foo: string; - * } - * - * const callSites = getCallSites({ sourceMap: true }); - * - * // With sourceMap: - * // Function Name: '' - * // Script Name: example.js - * // Line Number: 7 - * // Column Number: 26 - * - * // Without sourceMap: - * // Function Name: '' - * // Script Name: example.js - * // Line Number: 2 - * // Column Number: 26 - * ``` - * @param frameCount Number of frames to capture as call site objects. - * **Default:** `10`. Allowable range is between 1 and 200. - * @return An array of call site objects - * @since v22.9.0 - */ - export function getCallSites(frameCount?: number, options?: GetCallSitesOptions): CallSiteObject[]; - export function getCallSites(options: GetCallSitesOptions): CallSiteObject[]; - /** - * Returns the string name for a numeric error code that comes from a Node.js API. - * The mapping between error codes and error names is platform-dependent. - * See `Common System Errors` for the names of common errors. - * - * ```js - * fs.access('file/that/does/not/exist', (err) => { - * const name = util.getSystemErrorName(err.errno); - * console.error(name); // ENOENT - * }); - * ``` - * @since v9.7.0 - */ - export function getSystemErrorName(err: number): string; - /** - * Enable or disable printing a stack trace on `SIGINT`. The API is only available on the main thread. - * @since 24.6.0 - */ - export function setTraceSigInt(enable: boolean): void; - /** - * Returns a Map of all system error codes available from the Node.js API. - * The mapping between error codes and error names is platform-dependent. - * See `Common System Errors` for the names of common errors. - * - * ```js - * fs.access('file/that/does/not/exist', (err) => { - * const errorMap = util.getSystemErrorMap(); - * const name = errorMap.get(err.errno); - * console.error(name); // ENOENT - * }); - * ``` - * @since v16.0.0, v14.17.0 - */ - export function getSystemErrorMap(): Map; - /** - * Returns the string message for a numeric error code that comes from a Node.js - * API. - * The mapping between error codes and string messages is platform-dependent. - * - * ```js - * fs.access('file/that/does/not/exist', (err) => { - * const message = util.getSystemErrorMessage(err.errno); - * console.error(message); // no such file or directory - * }); - * ``` - * @since v22.12.0 - */ - export function getSystemErrorMessage(err: number): string; - /** - * Returns the `string` after replacing any surrogate code points - * (or equivalently, any unpaired surrogate code units) with the - * Unicode "replacement character" U+FFFD. - * @since v16.8.0, v14.18.0 - */ - export function toUSVString(string: string): string; - /** - * Creates and returns an `AbortController` instance whose `AbortSignal` is marked - * as transferable and can be used with `structuredClone()` or `postMessage()`. - * @since v18.11.0 - * @returns A transferable AbortController - */ - export function transferableAbortController(): AbortController; - /** - * Marks the given `AbortSignal` as transferable so that it can be used with`structuredClone()` and `postMessage()`. - * - * ```js - * const signal = transferableAbortSignal(AbortSignal.timeout(100)); - * const channel = new MessageChannel(); - * channel.port2.postMessage(signal, [signal]); - * ``` - * @since v18.11.0 - * @param signal The AbortSignal - * @returns The same AbortSignal - */ - export function transferableAbortSignal(signal: AbortSignal): AbortSignal; - /** - * Listens to abort event on the provided `signal` and returns a promise that resolves when the `signal` is aborted. - * If `resource` is provided, it weakly references the operation's associated object, - * so if `resource` is garbage collected before the `signal` aborts, - * then returned promise shall remain pending. - * This prevents memory leaks in long-running or non-cancelable operations. - * - * ```js - * import { aborted } from 'node:util'; - * - * // Obtain an object with an abortable signal, like a custom resource or operation. - * const dependent = obtainSomethingAbortable(); - * - * // Pass `dependent` as the resource, indicating the promise should only resolve - * // if `dependent` is still in memory when the signal is aborted. - * aborted(dependent.signal, dependent).then(() => { - * // This code runs when `dependent` is aborted. - * console.log('Dependent resource was aborted.'); - * }); - * - * // Simulate an event that triggers the abort. - * dependent.on('event', () => { - * dependent.abort(); // This will cause the `aborted` promise to resolve. - * }); - * ``` - * @since v19.7.0 - * @param resource Any non-null object tied to the abortable operation and held weakly. - * If `resource` is garbage collected before the `signal` aborts, the promise remains pending, - * allowing Node.js to stop tracking it. - * This helps prevent memory leaks in long-running or non-cancelable operations. - */ - export function aborted(signal: AbortSignal, resource: any): Promise; - /** - * The `util.inspect()` method returns a string representation of `object` that is - * intended for debugging. The output of `util.inspect` may change at any time - * and should not be depended upon programmatically. Additional `options` may be - * passed that alter the result. - * `util.inspect()` will use the constructor's name and/or `Symbol.toStringTag` - * property to make an identifiable tag for an inspected value. - * - * ```js - * class Foo { - * get [Symbol.toStringTag]() { - * return 'bar'; - * } - * } - * - * class Bar {} - * - * const baz = Object.create(null, { [Symbol.toStringTag]: { value: 'foo' } }); - * - * util.inspect(new Foo()); // 'Foo [bar] {}' - * util.inspect(new Bar()); // 'Bar {}' - * util.inspect(baz); // '[foo] {}' - * ``` - * - * Circular references point to their anchor by using a reference index: - * - * ```js - * import { inspect } from 'node:util'; - * - * const obj = {}; - * obj.a = [obj]; - * obj.b = {}; - * obj.b.inner = obj.b; - * obj.b.obj = obj; - * - * console.log(inspect(obj)); - * // { - * // a: [ [Circular *1] ], - * // b: { inner: [Circular *2], obj: [Circular *1] } - * // } - * ``` - * - * The following example inspects all properties of the `util` object: - * - * ```js - * import util from 'node:util'; - * - * console.log(util.inspect(util, { showHidden: true, depth: null })); - * ``` - * - * The following example highlights the effect of the `compact` option: - * - * ```js - * import { inspect } from 'node:util'; - * - * const o = { - * a: [1, 2, [[ - * 'Lorem ipsum dolor sit amet,\nconsectetur adipiscing elit, sed do ' + - * 'eiusmod \ntempor incididunt ut labore et dolore magna aliqua.', - * 'test', - * 'foo']], 4], - * b: new Map([['za', 1], ['zb', 'test']]), - * }; - * console.log(inspect(o, { compact: true, depth: 5, breakLength: 80 })); - * - * // { a: - * // [ 1, - * // 2, - * // [ [ 'Lorem ipsum dolor sit amet,\nconsectetur [...]', // A long line - * // 'test', - * // 'foo' ] ], - * // 4 ], - * // b: Map(2) { 'za' => 1, 'zb' => 'test' } } - * - * // Setting `compact` to false or an integer creates more reader friendly output. - * console.log(inspect(o, { compact: false, depth: 5, breakLength: 80 })); - * - * // { - * // a: [ - * // 1, - * // 2, - * // [ - * // [ - * // 'Lorem ipsum dolor sit amet,\n' + - * // 'consectetur adipiscing elit, sed do eiusmod \n' + - * // 'tempor incididunt ut labore et dolore magna aliqua.', - * // 'test', - * // 'foo' - * // ] - * // ], - * // 4 - * // ], - * // b: Map(2) { - * // 'za' => 1, - * // 'zb' => 'test' - * // } - * // } - * - * // Setting `breakLength` to e.g. 150 will print the "Lorem ipsum" text in a - * // single line. - * ``` - * - * The `showHidden` option allows `WeakMap` and `WeakSet` entries to be - * inspected. If there are more entries than `maxArrayLength`, there is no - * guarantee which entries are displayed. That means retrieving the same - * `WeakSet` entries twice may result in different output. Furthermore, entries - * with no remaining strong references may be garbage collected at any time. - * - * ```js - * import { inspect } from 'node:util'; - * - * const obj = { a: 1 }; - * const obj2 = { b: 2 }; - * const weakSet = new WeakSet([obj, obj2]); - * - * console.log(inspect(weakSet, { showHidden: true })); - * // WeakSet { { a: 1 }, { b: 2 } } - * ``` - * - * The `sorted` option ensures that an object's property insertion order does not - * impact the result of `util.inspect()`. - * - * ```js - * import { inspect } from 'node:util'; - * import assert from 'node:assert'; - * - * const o1 = { - * b: [2, 3, 1], - * a: '`a` comes before `b`', - * c: new Set([2, 3, 1]), - * }; - * console.log(inspect(o1, { sorted: true })); - * // { a: '`a` comes before `b`', b: [ 2, 3, 1 ], c: Set(3) { 1, 2, 3 } } - * console.log(inspect(o1, { sorted: (a, b) => b.localeCompare(a) })); - * // { c: Set(3) { 3, 2, 1 }, b: [ 2, 3, 1 ], a: '`a` comes before `b`' } - * - * const o2 = { - * c: new Set([2, 1, 3]), - * a: '`a` comes before `b`', - * b: [2, 3, 1], - * }; - * assert.strict.equal( - * inspect(o1, { sorted: true }), - * inspect(o2, { sorted: true }), - * ); - * ``` - * - * The `numericSeparator` option adds an underscore every three digits to all - * numbers. - * - * ```js - * import { inspect } from 'node:util'; - * - * const thousand = 1000; - * const million = 1000000; - * const bigNumber = 123456789n; - * const bigDecimal = 1234.12345; - * - * console.log(inspect(thousand, { numericSeparator: true })); - * // 1_000 - * console.log(inspect(million, { numericSeparator: true })); - * // 1_000_000 - * console.log(inspect(bigNumber, { numericSeparator: true })); - * // 123_456_789n - * console.log(inspect(bigDecimal, { numericSeparator: true })); - * // 1_234.123_45 - * ``` - * - * `util.inspect()` is a synchronous method intended for debugging. Its maximum - * output length is approximately 128 MiB. Inputs that result in longer output will - * be truncated. - * @since v0.3.0 - * @param object Any JavaScript primitive or `Object`. - * @return The representation of `object`. - */ - export function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string; - export function inspect(object: any, options?: InspectOptions): string; - export namespace inspect { - let colors: NodeJS.Dict<[number, number]>; - let styles: { - [K in Style]: string; - }; - let defaultOptions: InspectOptions; - /** - * Allows changing inspect settings from the repl. - */ - let replDefaults: InspectOptions; - /** - * That can be used to declare custom inspect functions. - */ - const custom: unique symbol; - } - /** - * Alias for [`Array.isArray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray). - * - * Returns `true` if the given `object` is an `Array`. Otherwise, returns `false`. - * - * ```js - * import util from 'node:util'; - * - * util.isArray([]); - * // Returns: true - * util.isArray(new Array()); - * // Returns: true - * util.isArray({}); - * // Returns: false - * ``` - * @since v0.6.0 - * @deprecated Since v4.0.0 - Use `isArray` instead. - */ - export function isArray(object: unknown): object is unknown[]; - /** - * Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and - * `extends` keywords to get language level inheritance support. Also note - * that the two styles are [semantically incompatible](https://github.com/nodejs/node/issues/4179). - * - * Inherit the prototype methods from one - * [constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor) into another. The - * prototype of `constructor` will be set to a new object created from - * `superConstructor`. - * - * This mainly adds some input validation on top of - * `Object.setPrototypeOf(constructor.prototype, superConstructor.prototype)`. - * As an additional convenience, `superConstructor` will be accessible - * through the `constructor.super_` property. - * - * ```js - * const util = require('node:util'); - * const EventEmitter = require('node:events'); - * - * function MyStream() { - * EventEmitter.call(this); - * } - * - * util.inherits(MyStream, EventEmitter); - * - * MyStream.prototype.write = function(data) { - * this.emit('data', data); - * }; - * - * const stream = new MyStream(); - * - * console.log(stream instanceof EventEmitter); // true - * console.log(MyStream.super_ === EventEmitter); // true - * - * stream.on('data', (data) => { - * console.log(`Received data: "${data}"`); - * }); - * stream.write('It works!'); // Received data: "It works!" - * ``` - * - * ES6 example using `class` and `extends`: - * - * ```js - * import EventEmitter from 'node:events'; - * - * class MyStream extends EventEmitter { - * write(data) { - * this.emit('data', data); - * } - * } - * - * const stream = new MyStream(); - * - * stream.on('data', (data) => { - * console.log(`Received data: "${data}"`); - * }); - * stream.write('With ES6'); - * ``` - * @since v0.3.0 - * @legacy Use ES2015 class syntax and `extends` keyword instead. - */ - export function inherits(constructor: unknown, superConstructor: unknown): void; - export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void; - export interface DebugLogger extends DebugLoggerFunction { - /** - * The `util.debuglog().enabled` getter is used to create a test that can be used - * in conditionals based on the existence of the `NODE_DEBUG` environment variable. - * If the `section` name appears within the value of that environment variable, - * then the returned value will be `true`. If not, then the returned value will be - * `false`. - * - * ```js - * import { debuglog } from 'node:util'; - * const enabled = debuglog('foo').enabled; - * if (enabled) { - * console.log('hello from foo [%d]', 123); - * } - * ``` - * - * If this program is run with `NODE_DEBUG=foo` in the environment, then it will - * output something like: - * - * ```console - * hello from foo [123] - * ``` - */ - enabled: boolean; - } - /** - * The `util.debuglog()` method is used to create a function that conditionally - * writes debug messages to `stderr` based on the existence of the `NODE_DEBUG` - * environment variable. If the `section` name appears within the value of that - * environment variable, then the returned function operates similar to - * `console.error()`. If not, then the returned function is a no-op. - * - * ```js - * import { debuglog } from 'node:util'; - * const log = debuglog('foo'); - * - * log('hello from foo [%d]', 123); - * ``` - * - * If this program is run with `NODE_DEBUG=foo` in the environment, then - * it will output something like: - * - * ```console - * FOO 3245: hello from foo [123] - * ``` - * - * where `3245` is the process id. If it is not run with that - * environment variable set, then it will not print anything. - * - * The `section` supports wildcard also: - * - * ```js - * import { debuglog } from 'node:util'; - * const log = debuglog('foo'); - * - * log('hi there, it\'s foo-bar [%d]', 2333); - * ``` - * - * if it is run with `NODE_DEBUG=foo*` in the environment, then it will output - * something like: - * - * ```console - * FOO-BAR 3257: hi there, it's foo-bar [2333] - * ``` - * - * Multiple comma-separated `section` names may be specified in the `NODE_DEBUG` - * environment variable: `NODE_DEBUG=fs,net,tls`. - * - * The optional `callback` argument can be used to replace the logging function - * with a different function that doesn't have any initialization or - * unnecessary wrapping. - * - * ```js - * import { debuglog } from 'node:util'; - * let log = debuglog('internals', (debug) => { - * // Replace with a logging function that optimizes out - * // testing if the section is enabled - * log = debug; - * }); - * ``` - * @since v0.11.3 - * @param section A string identifying the portion of the application for which the `debuglog` function is being created. - * @param callback A callback invoked the first time the logging function is called with a function argument that is a more optimized logging function. - * @return The logging function - */ - export function debuglog(section: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger; - export { debuglog as debug }; - /** - * The `util.deprecate()` method wraps `fn` (which may be a function or class) in - * such a way that it is marked as deprecated. - * - * ```js - * import { deprecate } from 'node:util'; - * - * export const obsoleteFunction = deprecate(() => { - * // Do something here. - * }, 'obsoleteFunction() is deprecated. Use newShinyFunction() instead.'); - * ``` - * - * When called, `util.deprecate()` will return a function that will emit a - * `DeprecationWarning` using the `'warning'` event. The warning will - * be emitted and printed to `stderr` the first time the returned function is - * called. After the warning is emitted, the wrapped function is called without - * emitting a warning. - * - * If the same optional `code` is supplied in multiple calls to `util.deprecate()`, - * the warning will be emitted only once for that `code`. - * - * ```js - * import { deprecate } from 'node:util'; - * - * const fn1 = deprecate( - * () => 'a value', - * 'deprecation message', - * 'DEP0001', - * ); - * const fn2 = deprecate( - * () => 'a different value', - * 'other dep message', - * 'DEP0001', - * ); - * fn1(); // Emits a deprecation warning with code DEP0001 - * fn2(); // Does not emit a deprecation warning because it has the same code - * ``` - * - * If either the `--no-deprecation` or `--no-warnings` command-line flags are - * used, or if the `process.noDeprecation` property is set to `true` _prior_ to - * the first deprecation warning, the `util.deprecate()` method does nothing. - * - * If the `--trace-deprecation` or `--trace-warnings` command-line flags are set, - * or the `process.traceDeprecation` property is set to `true`, a warning and a - * stack trace are printed to `stderr` the first time the deprecated function is - * called. - * - * If the `--throw-deprecation` command-line flag is set, or the - * `process.throwDeprecation` property is set to `true`, then an exception will be - * thrown when the deprecated function is called. - * - * The `--throw-deprecation` command-line flag and `process.throwDeprecation` - * property take precedence over `--trace-deprecation` and - * `process.traceDeprecation`. - * @since v0.8.0 - * @param fn The function that is being deprecated. - * @param msg A warning message to display when the deprecated function is invoked. - * @param code A deprecation code. See the `list of deprecated APIs` for a list of codes. - * @return The deprecated function wrapped to emit a warning. - */ - export function deprecate(fn: T, msg: string, code?: string): T; - export interface IsDeepStrictEqualOptions { - /** - * If `true`, prototype and constructor - * comparison is skipped during deep strict equality check. - * @since v24.9.0 - * @default false - */ - skipPrototype?: boolean | undefined; - } - /** - * Returns `true` if there is deep strict equality between `val1` and `val2`. - * Otherwise, returns `false`. - * - * See `assert.deepStrictEqual()` for more information about deep strict - * equality. - * @since v9.0.0 - */ - export function isDeepStrictEqual(val1: unknown, val2: unknown, options?: IsDeepStrictEqualOptions): boolean; - /** - * Returns `str` with any ANSI escape codes removed. - * - * ```js - * console.log(util.stripVTControlCharacters('\u001B[4mvalue\u001B[0m')); - * // Prints "value" - * ``` - * @since v16.11.0 - */ - export function stripVTControlCharacters(str: string): string; - /** - * Takes an `async` function (or a function that returns a `Promise`) and returns a - * function following the error-first callback style, i.e. taking - * an `(err, value) => ...` callback as the last argument. In the callback, the - * first argument will be the rejection reason (or `null` if the `Promise` - * resolved), and the second argument will be the resolved value. - * - * ```js - * import { callbackify } from 'node:util'; - * - * async function fn() { - * return 'hello world'; - * } - * const callbackFunction = callbackify(fn); - * - * callbackFunction((err, ret) => { - * if (err) throw err; - * console.log(ret); - * }); - * ``` - * - * Will print: - * - * ```text - * hello world - * ``` - * - * The callback is executed asynchronously, and will have a limited stack trace. - * If the callback throws, the process will emit an `'uncaughtException'` - * event, and if not handled will exit. - * - * Since `null` has a special meaning as the first argument to a callback, if a - * wrapped function rejects a `Promise` with a falsy value as a reason, the value - * is wrapped in an `Error` with the original value stored in a field named - * `reason`. - * - * ```js - * function fn() { - * return Promise.reject(null); - * } - * const callbackFunction = util.callbackify(fn); - * - * callbackFunction((err, ret) => { - * // When the Promise was rejected with `null` it is wrapped with an Error and - * // the original value is stored in `reason`. - * err && Object.hasOwn(err, 'reason') && err.reason === null; // true - * }); - * ``` - * @since v8.2.0 - * @param fn An `async` function - * @return a callback style function - */ - export function callbackify(fn: () => Promise): (callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: () => Promise, - ): (callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void; - export function callbackify( - fn: (arg1: T1) => Promise, - ): (arg1: T1, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: (arg1: T1) => Promise, - ): (arg1: T1, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2) => Promise, - ): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2) => Promise, - ): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3) => Promise, - ): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3) => Promise, - ): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise, - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise, - ): ( - arg1: T1, - arg2: T2, - arg3: T3, - arg4: T4, - callback: (err: NodeJS.ErrnoException | null, result: TResult) => void, - ) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise, - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise, - ): ( - arg1: T1, - arg2: T2, - arg3: T3, - arg4: T4, - arg5: T5, - callback: (err: NodeJS.ErrnoException | null, result: TResult) => void, - ) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise, - ): ( - arg1: T1, - arg2: T2, - arg3: T3, - arg4: T4, - arg5: T5, - arg6: T6, - callback: (err: NodeJS.ErrnoException) => void, - ) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise, - ): ( - arg1: T1, - arg2: T2, - arg3: T3, - arg4: T4, - arg5: T5, - arg6: T6, - callback: (err: NodeJS.ErrnoException | null, result: TResult) => void, - ) => void; - export interface CustomPromisifyLegacy extends Function { - __promisify__: TCustom; - } - export interface CustomPromisifySymbol extends Function { - [promisify.custom]: TCustom; - } - export type CustomPromisify = - | CustomPromisifySymbol - | CustomPromisifyLegacy; - /** - * Takes a function following the common error-first callback style, i.e. taking - * an `(err, value) => ...` callback as the last argument, and returns a version - * that returns promises. - * - * ```js - * import { promisify } from 'node:util'; - * import { stat } from 'node:fs'; - * - * const promisifiedStat = promisify(stat); - * promisifiedStat('.').then((stats) => { - * // Do something with `stats` - * }).catch((error) => { - * // Handle the error. - * }); - * ``` - * - * Or, equivalently using `async function`s: - * - * ```js - * import { promisify } from 'node:util'; - * import { stat } from 'node:fs'; - * - * const promisifiedStat = promisify(stat); - * - * async function callStat() { - * const stats = await promisifiedStat('.'); - * console.log(`This directory is owned by ${stats.uid}`); - * } - * - * callStat(); - * ``` - * - * If there is an `original[util.promisify.custom]` property present, `promisify` - * will return its value, see [Custom promisified functions](https://nodejs.org/docs/latest-v24.x/api/util.html#custom-promisified-functions). - * - * `promisify()` assumes that `original` is a function taking a callback as its - * final argument in all cases. If `original` is not a function, `promisify()` - * will throw an error. If `original` is a function but its last argument is not - * an error-first callback, it will still be passed an error-first - * callback as its last argument. - * - * Using `promisify()` on class methods or other methods that use `this` may not - * work as expected unless handled specially: - * - * ```js - * import { promisify } from 'node:util'; - * - * class Foo { - * constructor() { - * this.a = 42; - * } - * - * bar(callback) { - * callback(null, this.a); - * } - * } - * - * const foo = new Foo(); - * - * const naiveBar = promisify(foo.bar); - * // TypeError: Cannot read properties of undefined (reading 'a') - * // naiveBar().then(a => console.log(a)); - * - * naiveBar.call(foo).then((a) => console.log(a)); // '42' - * - * const bindBar = naiveBar.bind(foo); - * bindBar().then((a) => console.log(a)); // '42' - * ``` - * @since v8.0.0 - */ - export function promisify(fn: CustomPromisify): TCustom; - export function promisify( - fn: (callback: (err: any, result: TResult) => void) => void, - ): () => Promise; - export function promisify(fn: (callback: (err?: any) => void) => void): () => Promise; - export function promisify( - fn: (arg1: T1, callback: (err: any, result: TResult) => void) => void, - ): (arg1: T1) => Promise; - export function promisify(fn: (arg1: T1, callback: (err?: any) => void) => void): (arg1: T1) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, callback: (err: any, result: TResult) => void) => void, - ): (arg1: T1, arg2: T2) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, callback: (err?: any) => void) => void, - ): (arg1: T1, arg2: T2) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: any, result: TResult) => void) => void, - ): (arg1: T1, arg2: T2, arg3: T3) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: any) => void) => void, - ): (arg1: T1, arg2: T2, arg3: T3) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: any, result: TResult) => void) => void, - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: any) => void) => void, - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: any, result: TResult) => void) => void, - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: any) => void) => void, - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise; - export function promisify(fn: Function): Function; - export namespace promisify { - /** - * That can be used to declare custom promisified variants of functions. - */ - const custom: unique symbol; - } - /** - * Stability: 1.1 - Active development - * Given an example `.env` file: - * - * ```js - * import { parseEnv } from 'node:util'; - * - * parseEnv('HELLO=world\nHELLO=oh my\n'); - * // Returns: { HELLO: 'oh my' } - * ``` - * @param content The raw contents of a `.env` file. - * @since v20.12.0 - */ - export function parseEnv(content: string): NodeJS.Dict; - // https://nodejs.org/docs/latest/api/util.html#foreground-colors - type ForegroundColors = - | "black" - | "blackBright" - | "blue" - | "blueBright" - | "cyan" - | "cyanBright" - | "gray" - | "green" - | "greenBright" - | "grey" - | "magenta" - | "magentaBright" - | "red" - | "redBright" - | "white" - | "whiteBright" - | "yellow" - | "yellowBright"; - // https://nodejs.org/docs/latest/api/util.html#background-colors - type BackgroundColors = - | "bgBlack" - | "bgBlackBright" - | "bgBlue" - | "bgBlueBright" - | "bgCyan" - | "bgCyanBright" - | "bgGray" - | "bgGreen" - | "bgGreenBright" - | "bgGrey" - | "bgMagenta" - | "bgMagentaBright" - | "bgRed" - | "bgRedBright" - | "bgWhite" - | "bgWhiteBright" - | "bgYellow" - | "bgYellowBright"; - // https://nodejs.org/docs/latest/api/util.html#modifiers - type Modifiers = - | "blink" - | "bold" - | "dim" - | "doubleunderline" - | "framed" - | "hidden" - | "inverse" - | "italic" - | "none" - | "overlined" - | "reset" - | "strikethrough" - | "underline"; - export interface StyleTextOptions { - /** - * When true, `stream` is checked to see if it can handle colors. - * @default true - */ - validateStream?: boolean | undefined; - /** - * A stream that will be validated if it can be colored. - * @default process.stdout - */ - stream?: NodeJS.WritableStream | undefined; - } - /** - * This function returns a formatted text considering the `format` passed - * for printing in a terminal. It is aware of the terminal's capabilities - * and acts according to the configuration set via `NO_COLOR`, - * `NODE_DISABLE_COLORS` and `FORCE_COLOR` environment variables. - * - * ```js - * import { styleText } from 'node:util'; - * import { stderr } from 'node:process'; - * - * const successMessage = styleText('green', 'Success!'); - * console.log(successMessage); - * - * const errorMessage = styleText( - * 'red', - * 'Error! Error!', - * // Validate if process.stderr has TTY - * { stream: stderr }, - * ); - * console.error(errorMessage); - * ``` - * - * `util.inspect.colors` also provides text formats such as `italic`, and - * `underline` and you can combine both: - * - * ```js - * console.log( - * util.styleText(['underline', 'italic'], 'My italic underlined message'), - * ); - * ``` - * - * When passing an array of formats, the order of the format applied - * is left to right so the following style might overwrite the previous one. - * - * ```js - * console.log( - * util.styleText(['red', 'green'], 'text'), // green - * ); - * ``` - * - * The special format value `none` applies no additional styling to the text. - * - * The full list of formats can be found in [modifiers](https://nodejs.org/docs/latest-v24.x/api/util.html#modifiers). - * @param format A text format or an Array of text formats defined in `util.inspect.colors`. - * @param text The text to to be formatted. - * @since v20.12.0 - */ - export function styleText( - format: - | ForegroundColors - | BackgroundColors - | Modifiers - | Array, - text: string, - options?: StyleTextOptions, - ): string; - /** - * An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextDecoder` API. - * - * ```js - * const decoder = new TextDecoder(); - * const u8arr = new Uint8Array([72, 101, 108, 108, 111]); - * console.log(decoder.decode(u8arr)); // Hello - * ``` - * @since v8.3.0 - */ - export class TextDecoder { - /** - * The encoding supported by the `TextDecoder` instance. - */ - readonly encoding: string; - /** - * The value will be `true` if decoding errors result in a `TypeError` being - * thrown. - */ - readonly fatal: boolean; - /** - * The value will be `true` if the decoding result will include the byte order - * mark. - */ - readonly ignoreBOM: boolean; - constructor( - encoding?: string, - options?: { - fatal?: boolean | undefined; - ignoreBOM?: boolean | undefined; - }, - ); - /** - * Decodes the `input` and returns a string. If `options.stream` is `true`, any - * incomplete byte sequences occurring at the end of the `input` are buffered - * internally and emitted after the next call to `textDecoder.decode()`. - * - * If `textDecoder.fatal` is `true`, decoding errors that occur will result in a `TypeError` being thrown. - * @param input An `ArrayBuffer`, `DataView`, or `TypedArray` instance containing the encoded data. - */ - decode( - input?: NodeJS.ArrayBufferView | ArrayBuffer | null, - options?: { - stream?: boolean | undefined; - }, - ): string; - } - export interface EncodeIntoResult { - /** - * The read Unicode code units of input. - */ - read: number; - /** - * The written UTF-8 bytes of output. - */ - written: number; - } - export { types }; - - //// TextEncoder/Decoder - /** - * An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextEncoder` API. All - * instances of `TextEncoder` only support UTF-8 encoding. - * - * ```js - * const encoder = new TextEncoder(); - * const uint8array = encoder.encode('this is some data'); - * ``` - * - * The `TextEncoder` class is also available on the global object. - * @since v8.3.0 - */ - export class TextEncoder { - /** - * The encoding supported by the `TextEncoder` instance. Always set to `'utf-8'`. - */ - readonly encoding: string; - /** - * UTF-8 encodes the `input` string and returns a `Uint8Array` containing the - * encoded bytes. - * @param [input='an empty string'] The text to encode. - */ - encode(input?: string): NodeJS.NonSharedUint8Array; - /** - * UTF-8 encodes the `src` string to the `dest` Uint8Array and returns an object - * containing the read Unicode code units and written UTF-8 bytes. - * - * ```js - * const encoder = new TextEncoder(); - * const src = 'this is some data'; - * const dest = new Uint8Array(10); - * const { read, written } = encoder.encodeInto(src, dest); - * ``` - * @param src The text to encode. - * @param dest The array to hold the encode result. - */ - encodeInto(src: string, dest: Uint8Array): EncodeIntoResult; - } - import { TextDecoder as _TextDecoder, TextEncoder as _TextEncoder } from "util"; - global { - /** - * `TextDecoder` class is a global reference for `import { TextDecoder } from 'node:util'` - * https://nodejs.org/api/globals.html#textdecoder - * @since v11.0.0 - */ - var TextDecoder: typeof globalThis extends { - onmessage: any; - TextDecoder: infer TextDecoder; - } ? TextDecoder - : typeof _TextDecoder; - /** - * `TextEncoder` class is a global reference for `import { TextEncoder } from 'node:util'` - * https://nodejs.org/api/globals.html#textencoder - * @since v11.0.0 - */ - var TextEncoder: typeof globalThis extends { - onmessage: any; - TextEncoder: infer TextEncoder; - } ? TextEncoder - : typeof _TextEncoder; - } - - //// parseArgs - /** - * Provides a higher level API for command-line argument parsing than interacting - * with `process.argv` directly. Takes a specification for the expected arguments - * and returns a structured object with the parsed options and positionals. - * - * ```js - * import { parseArgs } from 'node:util'; - * const args = ['-f', '--bar', 'b']; - * const options = { - * foo: { - * type: 'boolean', - * short: 'f', - * }, - * bar: { - * type: 'string', - * }, - * }; - * const { - * values, - * positionals, - * } = parseArgs({ args, options }); - * console.log(values, positionals); - * // Prints: [Object: null prototype] { foo: true, bar: 'b' } [] - * ``` - * @since v18.3.0, v16.17.0 - * @param config Used to provide arguments for parsing and to configure the parser. `config` supports the following properties: - * @return The parsed command line arguments: - */ - export function parseArgs(config?: T): ParsedResults; - - /** - * Type of argument used in {@link parseArgs}. - */ - export type ParseArgsOptionsType = "boolean" | "string"; - - export interface ParseArgsOptionDescriptor { - /** - * Type of argument. - */ - type: ParseArgsOptionsType; - /** - * Whether this option can be provided multiple times. - * If `true`, all values will be collected in an array. - * If `false`, values for the option are last-wins. - * @default false. - */ - multiple?: boolean | undefined; - /** - * A single character alias for the option. - */ - short?: string | undefined; - /** - * The value to assign to - * the option if it does not appear in the arguments to be parsed. The value - * must match the type specified by the `type` property. If `multiple` is - * `true`, it must be an array. No default value is applied when the option - * does appear in the arguments to be parsed, even if the provided value - * is falsy. - * @since v18.11.0 - */ - default?: string | boolean | string[] | boolean[] | undefined; - } - export interface ParseArgsOptionsConfig { - [longOption: string]: ParseArgsOptionDescriptor; - } - export interface ParseArgsConfig { - /** - * Array of argument strings. - */ - args?: readonly string[] | undefined; - /** - * Used to describe arguments known to the parser. - */ - options?: ParseArgsOptionsConfig | undefined; - /** - * Should an error be thrown when unknown arguments are encountered, - * or when arguments are passed that do not match the `type` configured in `options`. - * @default true - */ - strict?: boolean | undefined; - /** - * Whether this command accepts positional arguments. - */ - allowPositionals?: boolean | undefined; - /** - * If `true`, allows explicitly setting boolean options to `false` by prefixing the option name with `--no-`. - * @default false - * @since v22.4.0 - */ - allowNegative?: boolean | undefined; - /** - * Return the parsed tokens. This is useful for extending the built-in behavior, - * from adding additional checks through to reprocessing the tokens in different ways. - * @default false - */ - tokens?: boolean | undefined; - } - /* - IfDefaultsTrue and IfDefaultsFalse are helpers to handle default values for missing boolean properties. - TypeScript does not have exact types for objects: https://github.com/microsoft/TypeScript/issues/12936 - This means it is impossible to distinguish between "field X is definitely not present" and "field X may or may not be present". - But we expect users to generally provide their config inline or `as const`, which means TS will always know whether a given field is present. - So this helper treats "not definitely present" (i.e., not `extends boolean`) as being "definitely not present", i.e. it should have its default value. - This is technically incorrect but is a much nicer UX for the common case. - The IfDefaultsTrue version is for things which default to true; the IfDefaultsFalse version is for things which default to false. - */ - type IfDefaultsTrue = T extends true ? IfTrue - : T extends false ? IfFalse - : IfTrue; - - // we put the `extends false` condition first here because `undefined` compares like `any` when `strictNullChecks: false` - type IfDefaultsFalse = T extends false ? IfFalse - : T extends true ? IfTrue - : IfFalse; - - type ExtractOptionValue = IfDefaultsTrue< - T["strict"], - O["type"] extends "string" ? string : O["type"] extends "boolean" ? boolean : string | boolean, - string | boolean - >; - - type ApplyOptionalModifiers> = ( - & { -readonly [LongOption in keyof O]?: V[LongOption] } - & { [LongOption in keyof O as O[LongOption]["default"] extends {} ? LongOption : never]: V[LongOption] } - ) extends infer P ? { [K in keyof P]: P[K] } : never; // resolve intersection to object - - type ParsedValues = - & IfDefaultsTrue - & (T["options"] extends ParseArgsOptionsConfig ? ApplyOptionalModifiers< - T["options"], - { - [LongOption in keyof T["options"]]: IfDefaultsFalse< - T["options"][LongOption]["multiple"], - Array>, - ExtractOptionValue - >; - } - > - : {}); - - type ParsedPositionals = IfDefaultsTrue< - T["strict"], - IfDefaultsFalse, - IfDefaultsTrue - >; - - type PreciseTokenForOptions< - K extends string, - O extends ParseArgsOptionDescriptor, - > = O["type"] extends "string" ? { - kind: "option"; - index: number; - name: K; - rawName: string; - value: string; - inlineValue: boolean; - } - : O["type"] extends "boolean" ? { - kind: "option"; - index: number; - name: K; - rawName: string; - value: undefined; - inlineValue: undefined; - } - : OptionToken & { name: K }; - - type TokenForOptions< - T extends ParseArgsConfig, - K extends keyof T["options"] = keyof T["options"], - > = K extends unknown - ? T["options"] extends ParseArgsOptionsConfig ? PreciseTokenForOptions - : OptionToken - : never; - - type ParsedOptionToken = IfDefaultsTrue, OptionToken>; - - type ParsedPositionalToken = IfDefaultsTrue< - T["strict"], - IfDefaultsFalse, - IfDefaultsTrue - >; - - type ParsedTokens = Array< - ParsedOptionToken | ParsedPositionalToken | { kind: "option-terminator"; index: number } - >; - - type PreciseParsedResults = IfDefaultsFalse< - T["tokens"], - { - values: ParsedValues; - positionals: ParsedPositionals; - tokens: ParsedTokens; - }, - { - values: ParsedValues; - positionals: ParsedPositionals; - } - >; - - type OptionToken = - | { kind: "option"; index: number; name: string; rawName: string; value: string; inlineValue: boolean } - | { - kind: "option"; - index: number; - name: string; - rawName: string; - value: undefined; - inlineValue: undefined; - }; - - type Token = - | OptionToken - | { kind: "positional"; index: number; value: string } - | { kind: "option-terminator"; index: number }; - - // If ParseArgsConfig extends T, then the user passed config constructed elsewhere. - // So we can't rely on the `"not definitely present" implies "definitely not present"` assumption mentioned above. - type ParsedResults = ParseArgsConfig extends T ? { - values: { - [longOption: string]: undefined | string | boolean | Array; - }; - positionals: string[]; - tokens?: Token[]; - } - : PreciseParsedResults; - - /** - * An implementation of [the MIMEType class](https://bmeck.github.io/node-proposal-mime-api/). - * - * In accordance with browser conventions, all properties of `MIMEType` objects - * are implemented as getters and setters on the class prototype, rather than as - * data properties on the object itself. - * - * A MIME string is a structured string containing multiple meaningful - * components. When parsed, a `MIMEType` object is returned containing - * properties for each of these components. - * @since v19.1.0, v18.13.0 - */ - export class MIMEType { - /** - * Creates a new MIMEType object by parsing the input. - * - * A `TypeError` will be thrown if the `input` is not a valid MIME. - * Note that an effort will be made to coerce the given values into strings. - * @param input The input MIME to parse. - */ - constructor(input: string | { toString: () => string }); - - /** - * Gets and sets the type portion of the MIME. - * - * ```js - * import { MIMEType } from 'node:util'; - * - * const myMIME = new MIMEType('text/javascript'); - * console.log(myMIME.type); - * // Prints: text - * myMIME.type = 'application'; - * console.log(myMIME.type); - * // Prints: application - * console.log(String(myMIME)); - * // Prints: application/javascript - * ``` - */ - type: string; - /** - * Gets and sets the subtype portion of the MIME. - * - * ```js - * import { MIMEType } from 'node:util'; - * - * const myMIME = new MIMEType('text/ecmascript'); - * console.log(myMIME.subtype); - * // Prints: ecmascript - * myMIME.subtype = 'javascript'; - * console.log(myMIME.subtype); - * // Prints: javascript - * console.log(String(myMIME)); - * // Prints: text/javascript - * ``` - */ - subtype: string; - /** - * Gets the essence of the MIME. This property is read only. - * Use `mime.type` or `mime.subtype` to alter the MIME. - * - * ```js - * import { MIMEType } from 'node:util'; - * - * const myMIME = new MIMEType('text/javascript;key=value'); - * console.log(myMIME.essence); - * // Prints: text/javascript - * myMIME.type = 'application'; - * console.log(myMIME.essence); - * // Prints: application/javascript - * console.log(String(myMIME)); - * // Prints: application/javascript;key=value - * ``` - */ - readonly essence: string; - /** - * Gets the `MIMEParams` object representing the - * parameters of the MIME. This property is read-only. See `MIMEParams` documentation for details. - */ - readonly params: MIMEParams; - /** - * The `toString()` method on the `MIMEType` object returns the serialized MIME. - * - * Because of the need for standard compliance, this method does not allow users - * to customize the serialization process of the MIME. - */ - toString(): string; - } - /** - * The `MIMEParams` API provides read and write access to the parameters of a `MIMEType`. - * @since v19.1.0, v18.13.0 - */ - export class MIMEParams { - /** - * Remove all name-value pairs whose name is `name`. - */ - delete(name: string): void; - /** - * Returns an iterator over each of the name-value pairs in the parameters. - * Each item of the iterator is a JavaScript `Array`. The first item of the array - * is the `name`, the second item of the array is the `value`. - */ - entries(): NodeJS.Iterator<[name: string, value: string]>; - /** - * Returns the value of the first name-value pair whose name is `name`. If there - * are no such pairs, `null` is returned. - * @return or `null` if there is no name-value pair with the given `name`. - */ - get(name: string): string | null; - /** - * Returns `true` if there is at least one name-value pair whose name is `name`. - */ - has(name: string): boolean; - /** - * Returns an iterator over the names of each name-value pair. - * - * ```js - * import { MIMEType } from 'node:util'; - * - * const { params } = new MIMEType('text/plain;foo=0;bar=1'); - * for (const name of params.keys()) { - * console.log(name); - * } - * // Prints: - * // foo - * // bar - * ``` - */ - keys(): NodeJS.Iterator; - /** - * Sets the value in the `MIMEParams` object associated with `name` to `value`. If there are any pre-existing name-value pairs whose names are `name`, - * set the first such pair's value to `value`. - * - * ```js - * import { MIMEType } from 'node:util'; - * - * const { params } = new MIMEType('text/plain;foo=0;bar=1'); - * params.set('foo', 'def'); - * params.set('baz', 'xyz'); - * console.log(params.toString()); - * // Prints: foo=def;bar=1;baz=xyz - * ``` - */ - set(name: string, value: string): void; - /** - * Returns an iterator over the values of each name-value pair. - */ - values(): NodeJS.Iterator; - /** - * Returns an iterator over each of the name-value pairs in the parameters. - */ - [Symbol.iterator](): NodeJS.Iterator<[name: string, value: string]>; - } -} -declare module "util/types" { - import { KeyObject, webcrypto } from "node:crypto"; - /** - * Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) or - * [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance. - * - * See also `util.types.isArrayBuffer()` and `util.types.isSharedArrayBuffer()`. - * - * ```js - * util.types.isAnyArrayBuffer(new ArrayBuffer()); // Returns true - * util.types.isAnyArrayBuffer(new SharedArrayBuffer()); // Returns true - * ``` - * @since v10.0.0 - */ - function isAnyArrayBuffer(object: unknown): object is ArrayBufferLike; - /** - * Returns `true` if the value is an `arguments` object. - * - * ```js - * function foo() { - * util.types.isArgumentsObject(arguments); // Returns true - * } - * ``` - * @since v10.0.0 - */ - function isArgumentsObject(object: unknown): object is IArguments; - /** - * Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) instance. - * This does _not_ include [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instances. Usually, it is - * desirable to test for both; See `util.types.isAnyArrayBuffer()` for that. - * - * ```js - * util.types.isArrayBuffer(new ArrayBuffer()); // Returns true - * util.types.isArrayBuffer(new SharedArrayBuffer()); // Returns false - * ``` - * @since v10.0.0 - */ - function isArrayBuffer(object: unknown): object is ArrayBuffer; - /** - * Returns `true` if the value is an instance of one of the [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) views, such as typed - * array objects or [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView). Equivalent to - * [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView). - * - * ```js - * util.types.isArrayBufferView(new Int8Array()); // true - * util.types.isArrayBufferView(Buffer.from('hello world')); // true - * util.types.isArrayBufferView(new DataView(new ArrayBuffer(16))); // true - * util.types.isArrayBufferView(new ArrayBuffer()); // false - * ``` - * @since v10.0.0 - */ - function isArrayBufferView(object: unknown): object is NodeJS.ArrayBufferView; - /** - * Returns `true` if the value is an [async function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function). - * This only reports back what the JavaScript engine is seeing; - * in particular, the return value may not match the original source code if - * a transpilation tool was used. - * - * ```js - * util.types.isAsyncFunction(function foo() {}); // Returns false - * util.types.isAsyncFunction(async function foo() {}); // Returns true - * ``` - * @since v10.0.0 - */ - function isAsyncFunction(object: unknown): boolean; - /** - * Returns `true` if the value is a `BigInt64Array` instance. - * - * ```js - * util.types.isBigInt64Array(new BigInt64Array()); // Returns true - * util.types.isBigInt64Array(new BigUint64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isBigInt64Array(value: unknown): value is BigInt64Array; - /** - * Returns `true` if the value is a BigInt object, e.g. created - * by `Object(BigInt(123))`. - * - * ```js - * util.types.isBigIntObject(Object(BigInt(123))); // Returns true - * util.types.isBigIntObject(BigInt(123)); // Returns false - * util.types.isBigIntObject(123); // Returns false - * ``` - * @since v10.4.0 - */ - function isBigIntObject(object: unknown): object is BigInt; - /** - * Returns `true` if the value is a `BigUint64Array` instance. - * - * ```js - * util.types.isBigUint64Array(new BigInt64Array()); // Returns false - * util.types.isBigUint64Array(new BigUint64Array()); // Returns true - * ``` - * @since v10.0.0 - */ - function isBigUint64Array(value: unknown): value is BigUint64Array; - /** - * Returns `true` if the value is a boolean object, e.g. created - * by `new Boolean()`. - * - * ```js - * util.types.isBooleanObject(false); // Returns false - * util.types.isBooleanObject(true); // Returns false - * util.types.isBooleanObject(new Boolean(false)); // Returns true - * util.types.isBooleanObject(new Boolean(true)); // Returns true - * util.types.isBooleanObject(Boolean(false)); // Returns false - * util.types.isBooleanObject(Boolean(true)); // Returns false - * ``` - * @since v10.0.0 - */ - function isBooleanObject(object: unknown): object is Boolean; - /** - * Returns `true` if the value is any boxed primitive object, e.g. created - * by `new Boolean()`, `new String()` or `Object(Symbol())`. - * - * For example: - * - * ```js - * util.types.isBoxedPrimitive(false); // Returns false - * util.types.isBoxedPrimitive(new Boolean(false)); // Returns true - * util.types.isBoxedPrimitive(Symbol('foo')); // Returns false - * util.types.isBoxedPrimitive(Object(Symbol('foo'))); // Returns true - * util.types.isBoxedPrimitive(Object(BigInt(5))); // Returns true - * ``` - * @since v10.11.0 - */ - function isBoxedPrimitive(object: unknown): object is String | Number | BigInt | Boolean | Symbol; - /** - * Returns `true` if the value is a built-in [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView) instance. - * - * ```js - * const ab = new ArrayBuffer(20); - * util.types.isDataView(new DataView(ab)); // Returns true - * util.types.isDataView(new Float64Array()); // Returns false - * ``` - * - * See also [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView). - * @since v10.0.0 - */ - function isDataView(object: unknown): object is DataView; - /** - * Returns `true` if the value is a built-in [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance. - * - * ```js - * util.types.isDate(new Date()); // Returns true - * ``` - * @since v10.0.0 - */ - function isDate(object: unknown): object is Date; - /** - * Returns `true` if the value is a native `External` value. - * - * A native `External` value is a special type of object that contains a - * raw C++ pointer (`void*`) for access from native code, and has no other - * properties. Such objects are created either by Node.js internals or native - * addons. In JavaScript, they are - * [frozen](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze) objects with a - * `null` prototype. - * - * ```c - * #include - * #include - * napi_value result; - * static napi_value MyNapi(napi_env env, napi_callback_info info) { - * int* raw = (int*) malloc(1024); - * napi_status status = napi_create_external(env, (void*) raw, NULL, NULL, &result); - * if (status != napi_ok) { - * napi_throw_error(env, NULL, "napi_create_external failed"); - * return NULL; - * } - * return result; - * } - * ... - * DECLARE_NAPI_PROPERTY("myNapi", MyNapi) - * ... - * ``` - * - * ```js - * import native from 'napi_addon.node'; - * import { types } from 'node:util'; - * - * const data = native.myNapi(); - * types.isExternal(data); // returns true - * types.isExternal(0); // returns false - * types.isExternal(new String('foo')); // returns false - * ``` - * - * For further information on `napi_create_external`, refer to - * [`napi_create_external()`](https://nodejs.org/docs/latest-v24.x/api/n-api.html#napi_create_external). - * @since v10.0.0 - */ - function isExternal(object: unknown): boolean; - /** - * Returns `true` if the value is a built-in [`Float16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float16Array) instance. - * - * ```js - * util.types.isFloat16Array(new ArrayBuffer()); // Returns false - * util.types.isFloat16Array(new Float16Array()); // Returns true - * util.types.isFloat16Array(new Float32Array()); // Returns false - * ``` - * @since v24.0.0 - */ - function isFloat16Array(object: unknown): object is Float16Array; - /** - * Returns `true` if the value is a built-in [`Float32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array) instance. - * - * ```js - * util.types.isFloat32Array(new ArrayBuffer()); // Returns false - * util.types.isFloat32Array(new Float32Array()); // Returns true - * util.types.isFloat32Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isFloat32Array(object: unknown): object is Float32Array; - /** - * Returns `true` if the value is a built-in [`Float64Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array) instance. - * - * ```js - * util.types.isFloat64Array(new ArrayBuffer()); // Returns false - * util.types.isFloat64Array(new Uint8Array()); // Returns false - * util.types.isFloat64Array(new Float64Array()); // Returns true - * ``` - * @since v10.0.0 - */ - function isFloat64Array(object: unknown): object is Float64Array; - /** - * Returns `true` if the value is a generator function. - * This only reports back what the JavaScript engine is seeing; - * in particular, the return value may not match the original source code if - * a transpilation tool was used. - * - * ```js - * util.types.isGeneratorFunction(function foo() {}); // Returns false - * util.types.isGeneratorFunction(function* foo() {}); // Returns true - * ``` - * @since v10.0.0 - */ - function isGeneratorFunction(object: unknown): object is GeneratorFunction; - /** - * Returns `true` if the value is a generator object as returned from a - * built-in generator function. - * This only reports back what the JavaScript engine is seeing; - * in particular, the return value may not match the original source code if - * a transpilation tool was used. - * - * ```js - * function* foo() {} - * const generator = foo(); - * util.types.isGeneratorObject(generator); // Returns true - * ``` - * @since v10.0.0 - */ - function isGeneratorObject(object: unknown): object is Generator; - /** - * Returns `true` if the value is a built-in [`Int8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array) instance. - * - * ```js - * util.types.isInt8Array(new ArrayBuffer()); // Returns false - * util.types.isInt8Array(new Int8Array()); // Returns true - * util.types.isInt8Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isInt8Array(object: unknown): object is Int8Array; - /** - * Returns `true` if the value is a built-in [`Int16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array) instance. - * - * ```js - * util.types.isInt16Array(new ArrayBuffer()); // Returns false - * util.types.isInt16Array(new Int16Array()); // Returns true - * util.types.isInt16Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isInt16Array(object: unknown): object is Int16Array; - /** - * Returns `true` if the value is a built-in [`Int32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array) instance. - * - * ```js - * util.types.isInt32Array(new ArrayBuffer()); // Returns false - * util.types.isInt32Array(new Int32Array()); // Returns true - * util.types.isInt32Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isInt32Array(object: unknown): object is Int32Array; - /** - * Returns `true` if the value is a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance. - * - * ```js - * util.types.isMap(new Map()); // Returns true - * ``` - * @since v10.0.0 - */ - function isMap( - object: T | {}, - ): object is T extends ReadonlyMap ? (unknown extends T ? never : ReadonlyMap) - : Map; - /** - * Returns `true` if the value is an iterator returned for a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance. - * - * ```js - * const map = new Map(); - * util.types.isMapIterator(map.keys()); // Returns true - * util.types.isMapIterator(map.values()); // Returns true - * util.types.isMapIterator(map.entries()); // Returns true - * util.types.isMapIterator(map[Symbol.iterator]()); // Returns true - * ``` - * @since v10.0.0 - */ - function isMapIterator(object: unknown): boolean; - /** - * Returns `true` if the value is an instance of a [Module Namespace Object](https://tc39.github.io/ecma262/#sec-module-namespace-exotic-objects). - * - * ```js - * import * as ns from './a.js'; - * - * util.types.isModuleNamespaceObject(ns); // Returns true - * ``` - * @since v10.0.0 - */ - function isModuleNamespaceObject(value: unknown): boolean; - /** - * Returns `true` if the value was returned by the constructor of a - * [built-in `Error` type](https://tc39.es/ecma262/#sec-error-objects). - * - * ```js - * console.log(util.types.isNativeError(new Error())); // true - * console.log(util.types.isNativeError(new TypeError())); // true - * console.log(util.types.isNativeError(new RangeError())); // true - * ``` - * - * Subclasses of the native error types are also native errors: - * - * ```js - * class MyError extends Error {} - * console.log(util.types.isNativeError(new MyError())); // true - * ``` - * - * A value being `instanceof` a native error class is not equivalent to `isNativeError()` - * returning `true` for that value. `isNativeError()` returns `true` for errors - * which come from a different [realm](https://tc39.es/ecma262/#realm) while `instanceof Error` returns `false` - * for these errors: - * - * ```js - * import { createContext, runInContext } from 'node:vm'; - * import { types } from 'node:util'; - * - * const context = createContext({}); - * const myError = runInContext('new Error()', context); - * console.log(types.isNativeError(myError)); // true - * console.log(myError instanceof Error); // false - * ``` - * - * Conversely, `isNativeError()` returns `false` for all objects which were not - * returned by the constructor of a native error. That includes values - * which are `instanceof` native errors: - * - * ```js - * const myError = { __proto__: Error.prototype }; - * console.log(util.types.isNativeError(myError)); // false - * console.log(myError instanceof Error); // true - * ``` - * @since v10.0.0 - * @deprecated The `util.types.isNativeError` API is deprecated. Please use `Error.isError` instead. - */ - function isNativeError(object: unknown): object is Error; - /** - * Returns `true` if the value is a number object, e.g. created - * by `new Number()`. - * - * ```js - * util.types.isNumberObject(0); // Returns false - * util.types.isNumberObject(new Number(0)); // Returns true - * ``` - * @since v10.0.0 - */ - function isNumberObject(object: unknown): object is Number; - /** - * Returns `true` if the value is a built-in [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise). - * - * ```js - * util.types.isPromise(Promise.resolve(42)); // Returns true - * ``` - * @since v10.0.0 - */ - function isPromise(object: unknown): object is Promise; - /** - * Returns `true` if the value is a [`Proxy`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) instance. - * - * ```js - * const target = {}; - * const proxy = new Proxy(target, {}); - * util.types.isProxy(target); // Returns false - * util.types.isProxy(proxy); // Returns true - * ``` - * @since v10.0.0 - */ - function isProxy(object: unknown): boolean; - /** - * Returns `true` if the value is a regular expression object. - * - * ```js - * util.types.isRegExp(/abc/); // Returns true - * util.types.isRegExp(new RegExp('abc')); // Returns true - * ``` - * @since v10.0.0 - */ - function isRegExp(object: unknown): object is RegExp; - /** - * Returns `true` if the value is a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance. - * - * ```js - * util.types.isSet(new Set()); // Returns true - * ``` - * @since v10.0.0 - */ - function isSet( - object: T | {}, - ): object is T extends ReadonlySet ? (unknown extends T ? never : ReadonlySet) : Set; - /** - * Returns `true` if the value is an iterator returned for a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance. - * - * ```js - * const set = new Set(); - * util.types.isSetIterator(set.keys()); // Returns true - * util.types.isSetIterator(set.values()); // Returns true - * util.types.isSetIterator(set.entries()); // Returns true - * util.types.isSetIterator(set[Symbol.iterator]()); // Returns true - * ``` - * @since v10.0.0 - */ - function isSetIterator(object: unknown): boolean; - /** - * Returns `true` if the value is a built-in [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance. - * This does _not_ include [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) instances. Usually, it is - * desirable to test for both; See `util.types.isAnyArrayBuffer()` for that. - * - * ```js - * util.types.isSharedArrayBuffer(new ArrayBuffer()); // Returns false - * util.types.isSharedArrayBuffer(new SharedArrayBuffer()); // Returns true - * ``` - * @since v10.0.0 - */ - function isSharedArrayBuffer(object: unknown): object is SharedArrayBuffer; - /** - * Returns `true` if the value is a string object, e.g. created - * by `new String()`. - * - * ```js - * util.types.isStringObject('foo'); // Returns false - * util.types.isStringObject(new String('foo')); // Returns true - * ``` - * @since v10.0.0 - */ - function isStringObject(object: unknown): object is String; - /** - * Returns `true` if the value is a symbol object, created - * by calling `Object()` on a `Symbol` primitive. - * - * ```js - * const symbol = Symbol('foo'); - * util.types.isSymbolObject(symbol); // Returns false - * util.types.isSymbolObject(Object(symbol)); // Returns true - * ``` - * @since v10.0.0 - */ - function isSymbolObject(object: unknown): object is Symbol; - /** - * Returns `true` if the value is a built-in [`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) instance. - * - * ```js - * util.types.isTypedArray(new ArrayBuffer()); // Returns false - * util.types.isTypedArray(new Uint8Array()); // Returns true - * util.types.isTypedArray(new Float64Array()); // Returns true - * ``` - * - * See also [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView). - * @since v10.0.0 - */ - function isTypedArray(object: unknown): object is NodeJS.TypedArray; - /** - * Returns `true` if the value is a built-in [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) instance. - * - * ```js - * util.types.isUint8Array(new ArrayBuffer()); // Returns false - * util.types.isUint8Array(new Uint8Array()); // Returns true - * util.types.isUint8Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isUint8Array(object: unknown): object is Uint8Array; - /** - * Returns `true` if the value is a built-in [`Uint8ClampedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray) instance. - * - * ```js - * util.types.isUint8ClampedArray(new ArrayBuffer()); // Returns false - * util.types.isUint8ClampedArray(new Uint8ClampedArray()); // Returns true - * util.types.isUint8ClampedArray(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isUint8ClampedArray(object: unknown): object is Uint8ClampedArray; - /** - * Returns `true` if the value is a built-in [`Uint16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array) instance. - * - * ```js - * util.types.isUint16Array(new ArrayBuffer()); // Returns false - * util.types.isUint16Array(new Uint16Array()); // Returns true - * util.types.isUint16Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isUint16Array(object: unknown): object is Uint16Array; - /** - * Returns `true` if the value is a built-in [`Uint32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array) instance. - * - * ```js - * util.types.isUint32Array(new ArrayBuffer()); // Returns false - * util.types.isUint32Array(new Uint32Array()); // Returns true - * util.types.isUint32Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isUint32Array(object: unknown): object is Uint32Array; - /** - * Returns `true` if the value is a built-in [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) instance. - * - * ```js - * util.types.isWeakMap(new WeakMap()); // Returns true - * ``` - * @since v10.0.0 - */ - function isWeakMap(object: unknown): object is WeakMap; - /** - * Returns `true` if the value is a built-in [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) instance. - * - * ```js - * util.types.isWeakSet(new WeakSet()); // Returns true - * ``` - * @since v10.0.0 - */ - function isWeakSet(object: unknown): object is WeakSet; - /** - * Returns `true` if `value` is a `KeyObject`, `false` otherwise. - * @since v16.2.0 - */ - function isKeyObject(object: unknown): object is KeyObject; - /** - * Returns `true` if `value` is a `CryptoKey`, `false` otherwise. - * @since v16.2.0 - */ - function isCryptoKey(object: unknown): object is webcrypto.CryptoKey; -} -declare module "node:util" { - export * from "util"; -} -declare module "node:util/types" { - export * from "util/types"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/v8.d.ts b/build_vtk_bundle/node_modules/@types/node/v8.d.ts deleted file mode 100644 index d509ee13..00000000 --- a/build_vtk_bundle/node_modules/@types/node/v8.d.ts +++ /dev/null @@ -1,952 +0,0 @@ -/** - * The `node:v8` module exposes APIs that are specific to the version of [V8](https://developers.google.com/v8/) built into the Node.js binary. It can be accessed using: - * - * ```js - * import v8 from 'node:v8'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/v8.js) - */ -declare module "v8" { - import { NonSharedBuffer } from "node:buffer"; - import { Readable } from "node:stream"; - interface HeapSpaceInfo { - space_name: string; - space_size: number; - space_used_size: number; - space_available_size: number; - physical_space_size: number; - } - // ** Signifies if the --zap_code_space option is enabled or not. 1 == enabled, 0 == disabled. */ - type DoesZapCodeSpaceFlag = 0 | 1; - interface HeapInfo { - total_heap_size: number; - total_heap_size_executable: number; - total_physical_size: number; - total_available_size: number; - used_heap_size: number; - heap_size_limit: number; - malloced_memory: number; - peak_malloced_memory: number; - does_zap_garbage: DoesZapCodeSpaceFlag; - number_of_native_contexts: number; - number_of_detached_contexts: number; - total_global_handles_size: number; - used_global_handles_size: number; - external_memory: number; - } - interface HeapCodeStatistics { - code_and_metadata_size: number; - bytecode_and_metadata_size: number; - external_script_source_size: number; - } - interface HeapSnapshotOptions { - /** - * If true, expose internals in the heap snapshot. - * @default false - */ - exposeInternals?: boolean | undefined; - /** - * If true, expose numeric values in artificial fields. - * @default false - */ - exposeNumericValues?: boolean | undefined; - } - /** - * Returns an integer representing a version tag derived from the V8 version, - * command-line flags, and detected CPU features. This is useful for determining - * whether a `vm.Script` `cachedData` buffer is compatible with this instance - * of V8. - * - * ```js - * console.log(v8.cachedDataVersionTag()); // 3947234607 - * // The value returned by v8.cachedDataVersionTag() is derived from the V8 - * // version, command-line flags, and detected CPU features. Test that the value - * // does indeed update when flags are toggled. - * v8.setFlagsFromString('--allow_natives_syntax'); - * console.log(v8.cachedDataVersionTag()); // 183726201 - * ``` - * @since v8.0.0 - */ - function cachedDataVersionTag(): number; - /** - * Returns an object with the following properties: - * - * `does_zap_garbage` is a 0/1 boolean, which signifies whether the `--zap_code_space` option is enabled or not. This makes V8 overwrite heap - * garbage with a bit pattern. The RSS footprint (resident set size) gets bigger - * because it continuously touches all heap pages and that makes them less likely - * to get swapped out by the operating system. - * - * `number_of_native_contexts` The value of native\_context is the number of the - * top-level contexts currently active. Increase of this number over time indicates - * a memory leak. - * - * `number_of_detached_contexts` The value of detached\_context is the number - * of contexts that were detached and not yet garbage collected. This number - * being non-zero indicates a potential memory leak. - * - * `total_global_handles_size` The value of total\_global\_handles\_size is the - * total memory size of V8 global handles. - * - * `used_global_handles_size` The value of used\_global\_handles\_size is the - * used memory size of V8 global handles. - * - * `external_memory` The value of external\_memory is the memory size of array - * buffers and external strings. - * - * ```js - * { - * total_heap_size: 7326976, - * total_heap_size_executable: 4194304, - * total_physical_size: 7326976, - * total_available_size: 1152656, - * used_heap_size: 3476208, - * heap_size_limit: 1535115264, - * malloced_memory: 16384, - * peak_malloced_memory: 1127496, - * does_zap_garbage: 0, - * number_of_native_contexts: 1, - * number_of_detached_contexts: 0, - * total_global_handles_size: 8192, - * used_global_handles_size: 3296, - * external_memory: 318824 - * } - * ``` - * @since v1.0.0 - */ - function getHeapStatistics(): HeapInfo; - /** - * It returns an object with a structure similar to the - * [`cppgc::HeapStatistics`](https://v8docs.nodesource.com/node-22.4/d7/d51/heap-statistics_8h_source.html) - * object. See the [V8 documentation](https://v8docs.nodesource.com/node-22.4/df/d2f/structcppgc_1_1_heap_statistics.html) - * for more information about the properties of the object. - * - * ```js - * // Detailed - * ({ - * committed_size_bytes: 131072, - * resident_size_bytes: 131072, - * used_size_bytes: 152, - * space_statistics: [ - * { - * name: 'NormalPageSpace0', - * committed_size_bytes: 0, - * resident_size_bytes: 0, - * used_size_bytes: 0, - * page_stats: [{}], - * free_list_stats: {}, - * }, - * { - * name: 'NormalPageSpace1', - * committed_size_bytes: 131072, - * resident_size_bytes: 131072, - * used_size_bytes: 152, - * page_stats: [{}], - * free_list_stats: {}, - * }, - * { - * name: 'NormalPageSpace2', - * committed_size_bytes: 0, - * resident_size_bytes: 0, - * used_size_bytes: 0, - * page_stats: [{}], - * free_list_stats: {}, - * }, - * { - * name: 'NormalPageSpace3', - * committed_size_bytes: 0, - * resident_size_bytes: 0, - * used_size_bytes: 0, - * page_stats: [{}], - * free_list_stats: {}, - * }, - * { - * name: 'LargePageSpace', - * committed_size_bytes: 0, - * resident_size_bytes: 0, - * used_size_bytes: 0, - * page_stats: [{}], - * free_list_stats: {}, - * }, - * ], - * type_names: [], - * detail_level: 'detailed', - * }); - * ``` - * - * ```js - * // Brief - * ({ - * committed_size_bytes: 131072, - * resident_size_bytes: 131072, - * used_size_bytes: 128864, - * space_statistics: [], - * type_names: [], - * detail_level: 'brief', - * }); - * ``` - * @since v22.15.0 - * @param detailLevel **Default:** `'detailed'`. Specifies the level of detail in the returned statistics. - * Accepted values are: - * * `'brief'`: Brief statistics contain only the top-level - * allocated and used - * memory statistics for the entire heap. - * * `'detailed'`: Detailed statistics also contain a break - * down per space and page, as well as freelist statistics - * and object type histograms. - */ - function getCppHeapStatistics(detailLevel?: "brief" | "detailed"): object; - /** - * Returns statistics about the V8 heap spaces, i.e. the segments which make up - * the V8 heap. Neither the ordering of heap spaces, nor the availability of a - * heap space can be guaranteed as the statistics are provided via the - * V8 [`GetHeapSpaceStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#ac673576f24fdc7a33378f8f57e1d13a4) function and may change from one V8 version to the - * next. - * - * The value returned is an array of objects containing the following properties: - * - * ```json - * [ - * { - * "space_name": "new_space", - * "space_size": 2063872, - * "space_used_size": 951112, - * "space_available_size": 80824, - * "physical_space_size": 2063872 - * }, - * { - * "space_name": "old_space", - * "space_size": 3090560, - * "space_used_size": 2493792, - * "space_available_size": 0, - * "physical_space_size": 3090560 - * }, - * { - * "space_name": "code_space", - * "space_size": 1260160, - * "space_used_size": 644256, - * "space_available_size": 960, - * "physical_space_size": 1260160 - * }, - * { - * "space_name": "map_space", - * "space_size": 1094160, - * "space_used_size": 201608, - * "space_available_size": 0, - * "physical_space_size": 1094160 - * }, - * { - * "space_name": "large_object_space", - * "space_size": 0, - * "space_used_size": 0, - * "space_available_size": 1490980608, - * "physical_space_size": 0 - * } - * ] - * ``` - * @since v6.0.0 - */ - function getHeapSpaceStatistics(): HeapSpaceInfo[]; - /** - * The `v8.setFlagsFromString()` method can be used to programmatically set - * V8 command-line flags. This method should be used with care. Changing settings - * after the VM has started may result in unpredictable behavior, including - * crashes and data loss; or it may simply do nothing. - * - * The V8 options available for a version of Node.js may be determined by running `node --v8-options`. - * - * Usage: - * - * ```js - * // Print GC events to stdout for one minute. - * import v8 from 'node:v8'; - * v8.setFlagsFromString('--trace_gc'); - * setTimeout(() => { v8.setFlagsFromString('--notrace_gc'); }, 60e3); - * ``` - * @since v1.0.0 - */ - function setFlagsFromString(flags: string): void; - /** - * This is similar to the [`queryObjects()` console API](https://developer.chrome.com/docs/devtools/console/utilities#queryObjects-function) - * provided by the Chromium DevTools console. It can be used to search for objects that have the matching constructor on its prototype chain - * in the heap after a full garbage collection, which can be useful for memory leak regression tests. To avoid surprising results, users should - * avoid using this API on constructors whose implementation they don't control, or on constructors that can be invoked by other parties in the - * application. - * - * To avoid accidental leaks, this API does not return raw references to the objects found. By default, it returns the count of the objects - * found. If `options.format` is `'summary'`, it returns an array containing brief string representations for each object. The visibility provided - * in this API is similar to what the heap snapshot provides, while users can save the cost of serialization and parsing and directly filter the - * target objects during the search. - * - * Only objects created in the current execution context are included in the results. - * - * ```js - * import { queryObjects } from 'node:v8'; - * class A { foo = 'bar'; } - * console.log(queryObjects(A)); // 0 - * const a = new A(); - * console.log(queryObjects(A)); // 1 - * // [ "A { foo: 'bar' }" ] - * console.log(queryObjects(A, { format: 'summary' })); - * - * class B extends A { bar = 'qux'; } - * const b = new B(); - * console.log(queryObjects(B)); // 1 - * // [ "B { foo: 'bar', bar: 'qux' }" ] - * console.log(queryObjects(B, { format: 'summary' })); - * - * // Note that, when there are child classes inheriting from a constructor, - * // the constructor also shows up in the prototype chain of the child - * // classes's prototoype, so the child classes's prototoype would also be - * // included in the result. - * console.log(queryObjects(A)); // 3 - * // [ "B { foo: 'bar', bar: 'qux' }", 'A {}', "A { foo: 'bar' }" ] - * console.log(queryObjects(A, { format: 'summary' })); - * ``` - * @param ctor The constructor that can be used to search on the prototype chain in order to filter target objects in the heap. - * @since v20.13.0 - * @experimental - */ - function queryObjects(ctor: Function): number | string[]; - function queryObjects(ctor: Function, options: { format: "count" }): number; - function queryObjects(ctor: Function, options: { format: "summary" }): string[]; - /** - * Generates a snapshot of the current V8 heap and returns a Readable - * Stream that may be used to read the JSON serialized representation. - * This JSON stream format is intended to be used with tools such as - * Chrome DevTools. The JSON schema is undocumented and specific to the - * V8 engine. Therefore, the schema may change from one version of V8 to the next. - * - * Creating a heap snapshot requires memory about twice the size of the heap at - * the time the snapshot is created. This results in the risk of OOM killers - * terminating the process. - * - * Generating a snapshot is a synchronous operation which blocks the event loop - * for a duration depending on the heap size. - * - * ```js - * // Print heap snapshot to the console - * import v8 from 'node:v8'; - * const stream = v8.getHeapSnapshot(); - * stream.pipe(process.stdout); - * ``` - * @since v11.13.0 - * @return A Readable containing the V8 heap snapshot. - */ - function getHeapSnapshot(options?: HeapSnapshotOptions): Readable; - /** - * Generates a snapshot of the current V8 heap and writes it to a JSON - * file. This file is intended to be used with tools such as Chrome - * DevTools. The JSON schema is undocumented and specific to the V8 - * engine, and may change from one version of V8 to the next. - * - * A heap snapshot is specific to a single V8 isolate. When using `worker threads`, a heap snapshot generated from the main thread will - * not contain any information about the workers, and vice versa. - * - * Creating a heap snapshot requires memory about twice the size of the heap at - * the time the snapshot is created. This results in the risk of OOM killers - * terminating the process. - * - * Generating a snapshot is a synchronous operation which blocks the event loop - * for a duration depending on the heap size. - * - * ```js - * import { writeHeapSnapshot } from 'node:v8'; - * import { - * Worker, - * isMainThread, - * parentPort, - * } from 'node:worker_threads'; - * - * if (isMainThread) { - * const worker = new Worker(__filename); - * - * worker.once('message', (filename) => { - * console.log(`worker heapdump: ${filename}`); - * // Now get a heapdump for the main thread. - * console.log(`main thread heapdump: ${writeHeapSnapshot()}`); - * }); - * - * // Tell the worker to create a heapdump. - * worker.postMessage('heapdump'); - * } else { - * parentPort.once('message', (message) => { - * if (message === 'heapdump') { - * // Generate a heapdump for the worker - * // and return the filename to the parent. - * parentPort.postMessage(writeHeapSnapshot()); - * } - * }); - * } - * ``` - * @since v11.13.0 - * @param filename The file path where the V8 heap snapshot is to be saved. If not specified, a file name with the pattern `'Heap-${yyyymmdd}-${hhmmss}-${pid}-${thread_id}.heapsnapshot'` will be - * generated, where `{pid}` will be the PID of the Node.js process, `{thread_id}` will be `0` when `writeHeapSnapshot()` is called from the main Node.js thread or the id of a - * worker thread. - * @return The filename where the snapshot was saved. - */ - function writeHeapSnapshot(filename?: string, options?: HeapSnapshotOptions): string; - /** - * Get statistics about code and its metadata in the heap, see - * V8 [`GetHeapCodeAndMetadataStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#a6079122af17612ef54ef3348ce170866) API. Returns an object with the - * following properties: - * - * ```js - * { - * code_and_metadata_size: 212208, - * bytecode_and_metadata_size: 161368, - * external_script_source_size: 1410794, - * cpu_profiler_metadata_size: 0, - * } - * ``` - * @since v12.8.0 - */ - function getHeapCodeStatistics(): HeapCodeStatistics; - /** - * @since v24.8.0 - */ - interface CPUProfileHandle { - /** - * Stopping collecting the profile, then return a Promise that fulfills with an error or the - * profile data. - * @since v24.8.0 - */ - stop(): Promise; - /** - * Stopping collecting the profile and the profile will be discarded. - * @since v24.8.0 - */ - [Symbol.asyncDispose](): Promise; - } - /** - * @since v24.9.0 - */ - interface HeapProfileHandle { - /** - * Stopping collecting the profile, then return a Promise that fulfills with an error or the - * profile data. - * @since v24.9.0 - */ - stop(): Promise; - /** - * Stopping collecting the profile and the profile will be discarded. - * @since v24.9.0 - */ - [Symbol.asyncDispose](): Promise; - } - /** - * V8 only supports `Latin-1/ISO-8859-1` and `UTF16` as the underlying representation of a string. - * If the `content` uses `Latin-1/ISO-8859-1` as the underlying representation, this function will return true; - * otherwise, it returns false. - * - * If this method returns false, that does not mean that the string contains some characters not in `Latin-1/ISO-8859-1`. - * Sometimes a `Latin-1` string may also be represented as `UTF16`. - * - * ```js - * const { isStringOneByteRepresentation } = require('node:v8'); - * - * const Encoding = { - * latin1: 1, - * utf16le: 2, - * }; - * const buffer = Buffer.alloc(100); - * function writeString(input) { - * if (isStringOneByteRepresentation(input)) { - * buffer.writeUint8(Encoding.latin1); - * buffer.writeUint32LE(input.length, 1); - * buffer.write(input, 5, 'latin1'); - * } else { - * buffer.writeUint8(Encoding.utf16le); - * buffer.writeUint32LE(input.length * 2, 1); - * buffer.write(input, 5, 'utf16le'); - * } - * } - * writeString('hello'); - * writeString('你好'); - * ``` - * @since v23.10.0, v22.15.0 - */ - function isStringOneByteRepresentation(content: string): boolean; - /** - * @since v8.0.0 - */ - class Serializer { - /** - * Writes out a header, which includes the serialization format version. - */ - writeHeader(): void; - /** - * Serializes a JavaScript value and adds the serialized representation to the - * internal buffer. - * - * This throws an error if `value` cannot be serialized. - */ - writeValue(val: any): boolean; - /** - * Returns the stored internal buffer. This serializer should not be used once - * the buffer is released. Calling this method results in undefined behavior - * if a previous write has failed. - */ - releaseBuffer(): NonSharedBuffer; - /** - * Marks an `ArrayBuffer` as having its contents transferred out of band. - * Pass the corresponding `ArrayBuffer` in the deserializing context to `deserializer.transferArrayBuffer()`. - * @param id A 32-bit unsigned integer. - * @param arrayBuffer An `ArrayBuffer` instance. - */ - transferArrayBuffer(id: number, arrayBuffer: ArrayBuffer): void; - /** - * Write a raw 32-bit unsigned integer. - * For use inside of a custom `serializer._writeHostObject()`. - */ - writeUint32(value: number): void; - /** - * Write a raw 64-bit unsigned integer, split into high and low 32-bit parts. - * For use inside of a custom `serializer._writeHostObject()`. - */ - writeUint64(hi: number, lo: number): void; - /** - * Write a JS `number` value. - * For use inside of a custom `serializer._writeHostObject()`. - */ - writeDouble(value: number): void; - /** - * Write raw bytes into the serializer's internal buffer. The deserializer - * will require a way to compute the length of the buffer. - * For use inside of a custom `serializer._writeHostObject()`. - */ - writeRawBytes(buffer: NodeJS.ArrayBufferView): void; - } - /** - * A subclass of `Serializer` that serializes `TypedArray`(in particular `Buffer`) and `DataView` objects as host objects, and only - * stores the part of their underlying `ArrayBuffer`s that they are referring to. - * @since v8.0.0 - */ - class DefaultSerializer extends Serializer {} - /** - * @since v8.0.0 - */ - class Deserializer { - constructor(data: NodeJS.TypedArray); - /** - * Reads and validates a header (including the format version). - * May, for example, reject an invalid or unsupported wire format. In that case, - * an `Error` is thrown. - */ - readHeader(): boolean; - /** - * Deserializes a JavaScript value from the buffer and returns it. - */ - readValue(): any; - /** - * Marks an `ArrayBuffer` as having its contents transferred out of band. - * Pass the corresponding `ArrayBuffer` in the serializing context to `serializer.transferArrayBuffer()` (or return the `id` from `serializer._getSharedArrayBufferId()` in the case of - * `SharedArrayBuffer`s). - * @param id A 32-bit unsigned integer. - * @param arrayBuffer An `ArrayBuffer` instance. - */ - transferArrayBuffer(id: number, arrayBuffer: ArrayBuffer): void; - /** - * Reads the underlying wire format version. Likely mostly to be useful to - * legacy code reading old wire format versions. May not be called before `.readHeader()`. - */ - getWireFormatVersion(): number; - /** - * Read a raw 32-bit unsigned integer and return it. - * For use inside of a custom `deserializer._readHostObject()`. - */ - readUint32(): number; - /** - * Read a raw 64-bit unsigned integer and return it as an array `[hi, lo]` with two 32-bit unsigned integer entries. - * For use inside of a custom `deserializer._readHostObject()`. - */ - readUint64(): [number, number]; - /** - * Read a JS `number` value. - * For use inside of a custom `deserializer._readHostObject()`. - */ - readDouble(): number; - /** - * Read raw bytes from the deserializer's internal buffer. The `length` parameter - * must correspond to the length of the buffer that was passed to `serializer.writeRawBytes()`. - * For use inside of a custom `deserializer._readHostObject()`. - */ - readRawBytes(length: number): Buffer; - } - /** - * A subclass of `Deserializer` corresponding to the format written by `DefaultSerializer`. - * @since v8.0.0 - */ - class DefaultDeserializer extends Deserializer {} - /** - * Uses a `DefaultSerializer` to serialize `value` into a buffer. - * - * `ERR_BUFFER_TOO_LARGE` will be thrown when trying to - * serialize a huge object which requires buffer - * larger than `buffer.constants.MAX_LENGTH`. - * @since v8.0.0 - */ - function serialize(value: any): NonSharedBuffer; - /** - * Uses a `DefaultDeserializer` with default options to read a JS value - * from a buffer. - * @since v8.0.0 - * @param buffer A buffer returned by {@link serialize}. - */ - function deserialize(buffer: NodeJS.ArrayBufferView): any; - /** - * The `v8.takeCoverage()` method allows the user to write the coverage started by `NODE_V8_COVERAGE` to disk on demand. This method can be invoked multiple - * times during the lifetime of the process. Each time the execution counter will - * be reset and a new coverage report will be written to the directory specified - * by `NODE_V8_COVERAGE`. - * - * When the process is about to exit, one last coverage will still be written to - * disk unless {@link stopCoverage} is invoked before the process exits. - * @since v15.1.0, v14.18.0, v12.22.0 - */ - function takeCoverage(): void; - /** - * The `v8.stopCoverage()` method allows the user to stop the coverage collection - * started by `NODE_V8_COVERAGE`, so that V8 can release the execution count - * records and optimize code. This can be used in conjunction with {@link takeCoverage} if the user wants to collect the coverage on demand. - * @since v15.1.0, v14.18.0, v12.22.0 - */ - function stopCoverage(): void; - /** - * The API is a no-op if `--heapsnapshot-near-heap-limit` is already set from the command line or the API is called more than once. - * `limit` must be a positive integer. See [`--heapsnapshot-near-heap-limit`](https://nodejs.org/docs/latest-v24.x/api/cli.html#--heapsnapshot-near-heap-limitmax_count) for more information. - * @since v18.10.0, v16.18.0 - */ - function setHeapSnapshotNearHeapLimit(limit: number): void; - /** - * This API collects GC data in current thread. - * @since v19.6.0, v18.15.0 - */ - class GCProfiler { - /** - * Start collecting GC data. - * @since v19.6.0, v18.15.0 - */ - start(): void; - /** - * Stop collecting GC data and return an object. The content of object - * is as follows. - * - * ```json - * { - * "version": 1, - * "startTime": 1674059033862, - * "statistics": [ - * { - * "gcType": "Scavenge", - * "beforeGC": { - * "heapStatistics": { - * "totalHeapSize": 5005312, - * "totalHeapSizeExecutable": 524288, - * "totalPhysicalSize": 5226496, - * "totalAvailableSize": 4341325216, - * "totalGlobalHandlesSize": 8192, - * "usedGlobalHandlesSize": 2112, - * "usedHeapSize": 4883840, - * "heapSizeLimit": 4345298944, - * "mallocedMemory": 254128, - * "externalMemory": 225138, - * "peakMallocedMemory": 181760 - * }, - * "heapSpaceStatistics": [ - * { - * "spaceName": "read_only_space", - * "spaceSize": 0, - * "spaceUsedSize": 0, - * "spaceAvailableSize": 0, - * "physicalSpaceSize": 0 - * } - * ] - * }, - * "cost": 1574.14, - * "afterGC": { - * "heapStatistics": { - * "totalHeapSize": 6053888, - * "totalHeapSizeExecutable": 524288, - * "totalPhysicalSize": 5500928, - * "totalAvailableSize": 4341101384, - * "totalGlobalHandlesSize": 8192, - * "usedGlobalHandlesSize": 2112, - * "usedHeapSize": 4059096, - * "heapSizeLimit": 4345298944, - * "mallocedMemory": 254128, - * "externalMemory": 225138, - * "peakMallocedMemory": 181760 - * }, - * "heapSpaceStatistics": [ - * { - * "spaceName": "read_only_space", - * "spaceSize": 0, - * "spaceUsedSize": 0, - * "spaceAvailableSize": 0, - * "physicalSpaceSize": 0 - * } - * ] - * } - * } - * ], - * "endTime": 1674059036865 - * } - * ``` - * - * Here's an example. - * - * ```js - * import { GCProfiler } from 'node:v8'; - * const profiler = new GCProfiler(); - * profiler.start(); - * setTimeout(() => { - * console.log(profiler.stop()); - * }, 1000); - * ``` - * @since v19.6.0, v18.15.0 - */ - stop(): GCProfilerResult; - } - interface GCProfilerResult { - version: number; - startTime: number; - endTime: number; - statistics: Array<{ - gcType: string; - cost: number; - beforeGC: { - heapStatistics: HeapStatistics; - heapSpaceStatistics: HeapSpaceStatistics[]; - }; - afterGC: { - heapStatistics: HeapStatistics; - heapSpaceStatistics: HeapSpaceStatistics[]; - }; - }>; - } - interface HeapStatistics { - totalHeapSize: number; - totalHeapSizeExecutable: number; - totalPhysicalSize: number; - totalAvailableSize: number; - totalGlobalHandlesSize: number; - usedGlobalHandlesSize: number; - usedHeapSize: number; - heapSizeLimit: number; - mallocedMemory: number; - externalMemory: number; - peakMallocedMemory: number; - } - interface HeapSpaceStatistics { - spaceName: string; - spaceSize: number; - spaceUsedSize: number; - spaceAvailableSize: number; - physicalSpaceSize: number; - } - /** - * Called when a promise is constructed. This does not mean that corresponding before/after events will occur, only that the possibility exists. This will - * happen if a promise is created without ever getting a continuation. - * @since v17.1.0, v16.14.0 - * @param promise The promise being created. - * @param parent The promise continued from, if applicable. - */ - interface Init { - (promise: Promise, parent: Promise): void; - } - /** - * Called before a promise continuation executes. This can be in the form of `then()`, `catch()`, or `finally()` handlers or an await resuming. - * - * The before callback will be called 0 to N times. The before callback will typically be called 0 times if no continuation was ever made for the promise. - * The before callback may be called many times in the case where many continuations have been made from the same promise. - * @since v17.1.0, v16.14.0 - */ - interface Before { - (promise: Promise): void; - } - /** - * Called immediately after a promise continuation executes. This may be after a `then()`, `catch()`, or `finally()` handler or before an await after another await. - * @since v17.1.0, v16.14.0 - */ - interface After { - (promise: Promise): void; - } - /** - * Called when the promise receives a resolution or rejection value. This may occur synchronously in the case of {@link Promise.resolve()} or - * {@link Promise.reject()}. - * @since v17.1.0, v16.14.0 - */ - interface Settled { - (promise: Promise): void; - } - /** - * Key events in the lifetime of a promise have been categorized into four areas: creation of a promise, before/after a continuation handler is called or - * around an await, and when the promise resolves or rejects. - * - * Because promises are asynchronous resources whose lifecycle is tracked via the promise hooks mechanism, the `init()`, `before()`, `after()`, and - * `settled()` callbacks must not be async functions as they create more promises which would produce an infinite loop. - * @since v17.1.0, v16.14.0 - */ - interface HookCallbacks { - init?: Init; - before?: Before; - after?: After; - settled?: Settled; - } - interface PromiseHooks { - /** - * The `init` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop. - * @since v17.1.0, v16.14.0 - * @param init The {@link Init | `init` callback} to call when a promise is created. - * @return Call to stop the hook. - */ - onInit: (init: Init) => Function; - /** - * The `settled` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop. - * @since v17.1.0, v16.14.0 - * @param settled The {@link Settled | `settled` callback} to call when a promise is created. - * @return Call to stop the hook. - */ - onSettled: (settled: Settled) => Function; - /** - * The `before` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop. - * @since v17.1.0, v16.14.0 - * @param before The {@link Before | `before` callback} to call before a promise continuation executes. - * @return Call to stop the hook. - */ - onBefore: (before: Before) => Function; - /** - * The `after` hook must be a plain function. Providing an async function will throw as it would produce an infinite microtask loop. - * @since v17.1.0, v16.14.0 - * @param after The {@link After | `after` callback} to call after a promise continuation executes. - * @return Call to stop the hook. - */ - onAfter: (after: After) => Function; - /** - * Registers functions to be called for different lifetime events of each promise. - * The callbacks `init()`/`before()`/`after()`/`settled()` are called for the respective events during a promise's lifetime. - * All callbacks are optional. For example, if only promise creation needs to be tracked, then only the init callback needs to be passed. - * The hook callbacks must be plain functions. Providing async functions will throw as it would produce an infinite microtask loop. - * @since v17.1.0, v16.14.0 - * @param callbacks The {@link HookCallbacks | Hook Callbacks} to register - * @return Used for disabling hooks - */ - createHook: (callbacks: HookCallbacks) => Function; - } - /** - * The `promiseHooks` interface can be used to track promise lifecycle events. - * @since v17.1.0, v16.14.0 - */ - const promiseHooks: PromiseHooks; - type StartupSnapshotCallbackFn = (args: any) => any; - /** - * The `v8.startupSnapshot` interface can be used to add serialization and deserialization hooks for custom startup snapshots. - * - * ```bash - * $ node --snapshot-blob snapshot.blob --build-snapshot entry.js - * # This launches a process with the snapshot - * $ node --snapshot-blob snapshot.blob - * ``` - * - * In the example above, `entry.js` can use methods from the `v8.startupSnapshot` interface to specify how to save information for custom objects - * in the snapshot during serialization and how the information can be used to synchronize these objects during deserialization of the snapshot. - * For example, if the `entry.js` contains the following script: - * - * ```js - * 'use strict'; - * - * import fs from 'node:fs'; - * import zlib from 'node:zlib'; - * import path from 'node:path'; - * import assert from 'node:assert'; - * - * import v8 from 'node:v8'; - * - * class BookShelf { - * storage = new Map(); - * - * // Reading a series of files from directory and store them into storage. - * constructor(directory, books) { - * for (const book of books) { - * this.storage.set(book, fs.readFileSync(path.join(directory, book))); - * } - * } - * - * static compressAll(shelf) { - * for (const [ book, content ] of shelf.storage) { - * shelf.storage.set(book, zlib.gzipSync(content)); - * } - * } - * - * static decompressAll(shelf) { - * for (const [ book, content ] of shelf.storage) { - * shelf.storage.set(book, zlib.gunzipSync(content)); - * } - * } - * } - * - * // __dirname here is where the snapshot script is placed - * // during snapshot building time. - * const shelf = new BookShelf(__dirname, [ - * 'book1.en_US.txt', - * 'book1.es_ES.txt', - * 'book2.zh_CN.txt', - * ]); - * - * assert(v8.startupSnapshot.isBuildingSnapshot()); - * // On snapshot serialization, compress the books to reduce size. - * v8.startupSnapshot.addSerializeCallback(BookShelf.compressAll, shelf); - * // On snapshot deserialization, decompress the books. - * v8.startupSnapshot.addDeserializeCallback(BookShelf.decompressAll, shelf); - * v8.startupSnapshot.setDeserializeMainFunction((shelf) => { - * // process.env and process.argv are refreshed during snapshot - * // deserialization. - * const lang = process.env.BOOK_LANG || 'en_US'; - * const book = process.argv[1]; - * const name = `${book}.${lang}.txt`; - * console.log(shelf.storage.get(name)); - * }, shelf); - * ``` - * - * The resulted binary will get print the data deserialized from the snapshot during start up, using the refreshed `process.env` and `process.argv` of the launched process: - * - * ```bash - * $ BOOK_LANG=es_ES node --snapshot-blob snapshot.blob book1 - * # Prints content of book1.es_ES.txt deserialized from the snapshot. - * ``` - * - * Currently the application deserialized from a user-land snapshot cannot be snapshotted again, so these APIs are only available to applications that are not deserialized from a user-land snapshot. - * - * @since v18.6.0, v16.17.0 - */ - namespace startupSnapshot { - /** - * Add a callback that will be called when the Node.js instance is about to get serialized into a snapshot and exit. - * This can be used to release resources that should not or cannot be serialized or to convert user data into a form more suitable for serialization. - * @since v18.6.0, v16.17.0 - */ - function addSerializeCallback(callback: StartupSnapshotCallbackFn, data?: any): void; - /** - * Add a callback that will be called when the Node.js instance is deserialized from a snapshot. - * The `callback` and the `data` (if provided) will be serialized into the snapshot, they can be used to re-initialize the state of the application or - * to re-acquire resources that the application needs when the application is restarted from the snapshot. - * @since v18.6.0, v16.17.0 - */ - function addDeserializeCallback(callback: StartupSnapshotCallbackFn, data?: any): void; - /** - * This sets the entry point of the Node.js application when it is deserialized from a snapshot. This can be called only once in the snapshot building script. - * If called, the deserialized application no longer needs an additional entry point script to start up and will simply invoke the callback along with the deserialized - * data (if provided), otherwise an entry point script still needs to be provided to the deserialized application. - * @since v18.6.0, v16.17.0 - */ - function setDeserializeMainFunction(callback: StartupSnapshotCallbackFn, data?: any): void; - /** - * Returns true if the Node.js instance is run to build a snapshot. - * @since v18.6.0, v16.17.0 - */ - function isBuildingSnapshot(): boolean; - } -} -declare module "node:v8" { - export * from "v8"; -} diff --git a/build_vtk_bundle/node_modules/@types/node/vm.d.ts b/build_vtk_bundle/node_modules/@types/node/vm.d.ts deleted file mode 100644 index 50b7f09a..00000000 --- a/build_vtk_bundle/node_modules/@types/node/vm.d.ts +++ /dev/null @@ -1,1180 +0,0 @@ -/** - * The `node:vm` module enables compiling and running code within V8 Virtual - * Machine contexts. - * - * **The `node:vm` module is not a security** - * **mechanism. Do not use it to run untrusted code.** - * - * JavaScript code can be compiled and run immediately or - * compiled, saved, and run later. - * - * A common use case is to run the code in a different V8 Context. This means - * invoked code has a different global object than the invoking code. - * - * One can provide the context by `contextifying` an - * object. The invoked code treats any property in the context like a - * global variable. Any changes to global variables caused by the invoked - * code are reflected in the context object. - * - * ```js - * import vm from 'node:vm'; - * - * const x = 1; - * - * const context = { x: 2 }; - * vm.createContext(context); // Contextify the object. - * - * const code = 'x += 40; var y = 17;'; - * // `x` and `y` are global variables in the context. - * // Initially, x has the value 2 because that is the value of context.x. - * vm.runInContext(code, context); - * - * console.log(context.x); // 42 - * console.log(context.y); // 17 - * - * console.log(x); // 1; y is not defined. - * ``` - * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/vm.js) - */ -declare module "vm" { - import { NonSharedBuffer } from "node:buffer"; - import { ImportAttributes, ImportPhase } from "node:module"; - interface Context extends NodeJS.Dict {} - interface BaseOptions { - /** - * Specifies the filename used in stack traces produced by this script. - * @default '' - */ - filename?: string | undefined; - /** - * Specifies the line number offset that is displayed in stack traces produced by this script. - * @default 0 - */ - lineOffset?: number | undefined; - /** - * Specifies the column number offset that is displayed in stack traces produced by this script. - * @default 0 - */ - columnOffset?: number | undefined; - } - type DynamicModuleLoader = ( - specifier: string, - referrer: T, - importAttributes: ImportAttributes, - phase: ImportPhase, - ) => Module | Promise; - interface ScriptOptions extends BaseOptions { - /** - * Provides an optional data with V8's code cache data for the supplied source. - */ - cachedData?: NodeJS.ArrayBufferView | undefined; - /** @deprecated in favor of `script.createCachedData()` */ - produceCachedData?: boolean | undefined; - /** - * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is - * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see - * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v24.x/api/vm.html#support-of-dynamic-import-in-compilation-apis). - * @experimental - */ - importModuleDynamically?: - | DynamicModuleLoader -``` - -## Get Baseline Widely available browser versions or Baseline year browser versions - -To get the current list of minimum browser versions compatible with Baseline Widely available features from the core browser set, call the `getCompatibleVersions()` function: - -```javascript -getCompatibleVersions(); -``` - -Executed on 7th March 2025, the above code returns the following browser versions: - -```javascript -[ - { browser: "chrome", version: "105", release_date: "2022-09-02" }, - { - browser: "chrome_android", - version: "105", - release_date: "2022-09-02", - }, - { browser: "edge", version: "105", release_date: "2022-09-02" }, - { browser: "firefox", version: "104", release_date: "2022-08-23" }, - { - browser: "firefox_android", - version: "104", - release_date: "2022-08-23", - }, - { browser: "safari", version: "15.6", release_date: "2022-09-02" }, - { - browser: "safari_ios", - version: "15.6", - release_date: "2022-09-02", - }, -]; -``` - -> [!NOTE] -> The minimum versions of each browser are not necessarily the final release before the Widely available cutoff date of `TODAY - 30 MONTHS`. Some earlier versions will have supported the full Widely available feature set. - -### `getCompatibleVersions()` configuration options - -`getCompatibleVersions()` accepts an `Object` as an argument with configuration options. The defaults are as follows: - -```javascript -{ - targetYear: undefined, - widelyAvailableOnDate: undefined, - includeDownstreamBrowsers: false, - listAllCompatibleVersions: false -} -``` - -#### `targetYear` - -The `targetYear` option returns the minimum browser versions compatible with all **Baseline Newly available** features at the end of the specified calendar year. For example, calling: - -```javascript -getCompatibleVersions({ - targetYear: 2020, -}); -``` - -Returns the following versions: - -```javascript -[ - { browser: "chrome", version: "87", release_date: "2020-11-19" }, - { - browser: "chrome_android", - version: "87", - release_date: "2020-11-19", - }, - { browser: "edge", version: "87", release_date: "2020-11-19" }, - { browser: "firefox", version: "83", release_date: "2020-11-17" }, - { - browser: "firefox_android", - version: "83", - release_date: "2020-11-17", - }, - { browser: "safari", version: "14", release_date: "2020-09-16" }, - { browser: "safari_ios", version: "14", release_date: "2020-09-16" }, -]; -``` - -> [!NOTE] -> The minimum version of each browser is not necessarily the final version released in that calendar year. In the above example, Firefox 84 was the final version released in 2020; however Firefox 83 supported all of the features that were interoperable at the end of 2020. -> [!WARNING] -> You cannot use `targetYear` and `widelyAavailableDate` together. Please only use one of these options at a time. - -#### `widelyAvailableOnDate` - -The `widelyAvailableOnDate` option returns the minimum versions compatible with Baseline Widely available on a specified date in the format `YYYY-MM-DD`: - -```javascript -getCompatibleVersions({ - widelyAvailableOnDate: `2023-04-05`, -}); -``` - -> [!TIP] -> This option is useful if you provide a versioned library that targets Baseline Widely available on each version's release date and you need to provide a statement on minimum supported browser versions in your documentation. - -#### `includeDownstreamBrowsers` - -Setting `includeDownstreamBrowsers` to `true` will include browsers outside of the Baseline core browser set where it is possible to map those browsers to an upstream Chromium or Gecko version: - -```javascript -getCompatibleVersions({ - includeDownstreamBrowsers: true, -}); -``` - -For more information on downstream browsers, see [the section on downstream browsers](#downstream-browsers) below. - -#### `includeKaiOS` - -KaiOS is an operating system and app framework based on the Gecko engine from Firefox. KaiOS is based on the Gecko engine and feature support can be derived from the upstream Gecko version that each KaiOS version implements. However KaiOS requires other considerations beyond feature compatibility to ensure a good user experience as it runs on device types that do not have either mouse and keyboard or touch screen input in the way that all the other browsers supported by this module do. - -```javascript -getCompatibleVersions({ - includeDownstreamBrowsers: true, - includeKaiOS: true, -}); -``` - -> [!NOTE] -> Including KaiOS requires you to include all downstream browsers using the `includeDownstreamBrowsers` option. - -#### `listAllCompatibleVersions` - -Setting `listAllCompatibleVersions` to true will include the minimum versions of each compatible browser, and all the subsequent versions: - -```javascript -getCompatibleVersions({ - listAllCompatibleVersions: true, -}); -``` - -## Get data for all browser versions - -You may want to obtain data on all the browser versions available in this module for use in an analytics solution or dashboard. To get details of each browser version's level of Baseline support, call the `getAllVersions()` function: - -```javascript -import { getAllVersions } from "baseline-browser-mapping"; - -getAllVersions(); -``` - -By default, this function returns an `Array` of `Objects` and excludes downstream browsers: - -```javascript -[ - ... - { - browser: "firefox_android", // Browser name - version: "125", // Browser version - release_date: "2024-04-16", // Release date - year: 2023, // Baseline year feature set the version supports - wa_compatible: true // Whether the browser version supports Widely available - }, - ... -] -``` - -For browser versions in `@mdn/browser-compat-data` that were released before Baseline can be defined, i.e. Baseline 2015, the `year` property is always the string: `"pre_baseline"`. - -### Understanding which browsers support Newly available features - -You may want to understand which recent browser versions support all Newly available features. You can replace the `wa_compatible` property with a `supports` property using the `useSupport` option: - -```javascript -getAllVersions({ - useSupports: true, -}); -``` - -The `supports` property is optional and has two possible values: - -- `widely` for browser versions that support all Widely available features. -- `newly` for browser versions that support all Newly available features. - -Browser versions that do not support Widely or Newly available will not include the `support` property in the `array` or `object` outputs, and in the CSV output, the `support` column will contain an empty string. Browser versions that support all Newly available features also support all Widely available features. - -### `getAllVersions()` Configuration options - -`getAllVersions()` accepts an `Object` as an argument with configuration options. The defaults are as follows: - -```javascript -{ - includeDownstreamBrowsers: false, - outputFormat: "array" -} -``` - -#### `includeDownstreamBrowsers` (in `getAllVersions()` output) - -As with `getCompatibleVersions()`, you can set `includeDownstreamBrowsers` to `true` to include the Chromium and Gecko downstream browsers [listed below](#list-of-downstream-browsers). - -```javascript -getAllVersions({ - includeDownstreamBrowsers: true, -}); -``` - -Downstream browsers include the same properties as core browsers, as well as the `engine`they use and `engine_version`, for example: - -```javascript -[ - ... - { - browser: "samsunginternet_android", - version: "27.0", - release_date: "2024-11-06", - engine: "Blink", - engine_version: "125", - year: 2023, - supports: "widely" - }, - ... -] -``` - -#### `includeKaiOS` (in `getAllVersions()` output) - -As with `getCompatibleVersions()` you can include KaiOS in your output. The same requirement to have `includeDownstreamBrowsers: true` applies. - -```javascript -getAllVersions({ - includeDownstreamBrowsers: true, - includeKaiOS: true, -}); -``` - -#### `outputFormat` - -By default, this function returns an `Array` of `Objects` which can be manipulated in Javascript or output to JSON. - -To return an `Object` that nests keys , set `outputFormat` to `object`: - -```javascript -getAllVersions({ - outputFormat: "object", -}); -``` - -In thise case, `getAllVersions()` returns a nested object with the browser [IDs listed below](#list-of-downstream-browsers) as keys, and versions as keys within them: - -```javascript -{ - "chrome": { - "53": { - "year": 2016, - "release_date": "2016-09-07" - }, - ... -} -``` - -Downstream browsers will include extra fields for `engine` and `engine_versions` - -```javascript -{ - ... - "webview_android": { - "53": { - "year": 2016, - "release_date": "2016-09-07", - "engine": "Blink", - "engine_version": "53" - }, - ... -} -``` - -To return a `String` in CSV format, set `outputFormat` to `csv`: - -```javascript -getAllVersions({ - outputFormat: "csv", -}); -``` - -`getAllVersions` returns a `String` with a header row and comma-separated values for each browser version that you can write to a file or pass to another service. Core browsers will have "NULL" as the value for their `engine` and `engine_version`: - -```csv -"browser","version","year","supports","release_date","engine","engine_version" -... -"chrome","24","pre_baseline","","2013-01-10","NULL","NULL" -... -"chrome","53","2016","","2016-09-07","NULL","NULL" -... -"firefox","135","2024","widely","2025-02-04","NULL","NULL" -"firefox","136","2024","newly","2025-03-04","NULL","NULL" -... -"ya_android","20.12","2020","year_only","2020-12-20","Blink","87" -... -``` - -> [!NOTE] -> The above example uses `"includeDownstreamBrowsers": true` - -### Static resources - -The outputs of `getAllVersions()` are available as JSON or CSV files generated on a daily basis and hosted on GitHub pages: - -- Core browsers only - - [Array](https://web-platform-dx.github.io/baseline-browser-mapping/all_versions_array.json) - - [Object](https://web-platform-dx.github.io/baseline-browser-mapping/all_versions_object.json) - - [CSV](https://web-platform-dx.github.io/baseline-browser-mapping/all_versions.csv) -- Core browsers only, with `supports` property - - [Array](https://web-platform-dx.github.io/baseline-browser-mapping/all_versions_array_with_supports.json) - - [Object](https://web-platform-dx.github.io/baseline-browser-mapping/all_versions_object_with_supports.json) - - [CSV](https://web-platform-dx.github.io/baseline-browser-mapping/all_versions_with_supports.csv) -- Including downstream browsers - - [Array](https://web-platform-dx.github.io/baseline-browser-mapping/with_downstream/all_versions_array.json) - - [Object](https://web-platform-dx.github.io/baseline-browser-mapping/with_downstream/all_versions_object.json) - - [CSV](https://web-platform-dx.github.io/baseline-browser-mapping/with_downstream/all_versions.csv) -- Including downstream browsers with `supports` property - - [Array](https://web-platform-dx.github.io/baseline-browser-mapping/with_downstream/all_versions_array_with_supports.json) - - [Object](https://web-platform-dx.github.io/baseline-browser-mapping/with_downstream/all_versions_object_with_supports.json) - - [CSV](https://web-platform-dx.github.io/baseline-browser-mapping/with_downstream/all_versions_with_supports.csv) - -These files are updated on a daily basis. - -## CLI - -`baseline-browser-mapping` includes a command line interface that exposes the same data and options as the `getCompatibleVersions()` function. To learn more about using the CLI, run: - -```sh -npx baseline-browser-mapping --help -``` - -## Downstream browsers - -### Limitations - -The browser versions in this module come from two different sources: - -- MDN's `browser-compat-data` module. -- Parsed user agent strings provided by [useragents.io](https://useragents.io/) - -MDN `browser-compat-data` is an authoritative source of information for the browsers it contains. The release dates for the Baseline core browser set and the mapping of downstream browsers to Chromium versions should be considered accurate. - -Browser mappings from useragents.io are provided on a best effort basis. They assume that browser vendors are accurately stating the Chromium version they have implemented. The initial set of version mappings was derived from a bulk export in November 2024. This version was iterated over with a Regex match looking for a major Chrome version and a corresponding version of the browser in question, e.g.: - -`Mozilla/5.0 (Linux; U; Android 10; en-US; STK-L21 Build/HUAWEISTK-L21) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/100.0.4896.58 UCBrowser/13.8.2.1324 Mobile Safari/537.36` - -Shows UC Browser Mobile 13.8 implementing Chromium 100, and: - -`Mozilla/5.0 (Linux; arm_64; Android 11; Redmi Note 8 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.6613.123 YaBrowser/24.10.2.123.00 SA/3 Mobile Safari/537.36` - -Shows Yandex Browser Mobile 24.10 implementing Chromium 128. The Chromium version from this string is mapped to the corresponding Chrome version from MDN `browser-compat-data`. - -> [!NOTE] -> Where possible, approximate release dates have been included based on useragents.io "first seen" data. useragents.io does not have "first seen" dates prior to June 2020. However, these browsers' Baseline compatibility is determined by their Chromium or Gecko version, so their release dates are more informative than critical. - -This data is updated on a daily basis using a [script](https://github.com/web-platform-dx/web-features/tree/main/scripts/refresh-downstream.ts) triggered by a GitHub [action](https://github.com/web-platform-dx/web-features/tree/main/.github/workflows/refresh_downstream.yml). Useragents.io provides a private API for this module which exposes the last 7 days of newly seen user agents for the currently tracked browsers. If a new major version of one of the tracked browsers is encountered with a Chromium version that meets or exceeds the previous latest version of that browser, it is added to the [src/data/downstream-browsers.json](src/data/downstream-browsers.json) file with the date it was first seen by useragents.io as its release date. - -KaiOS is an exception - its upstream version mappings are handled separately from the other browsers because they happen very infrequently. - -### List of downstream browsers - -| Browser | ID | Core | Source | -| --------------------- | ------------------------- | ------- | ------------------------- | -| Chrome | `chrome` | `true` | MDN `browser-compat-data` | -| Chrome for Android | `chrome_android` | `true` | MDN `browser-compat-data` | -| Edge | `edge` | `true` | MDN `browser-compat-data` | -| Firefox | `firefox` | `true` | MDN `browser-compat-data` | -| Firefox for Android | `firefox_android` | `true` | MDN `browser-compat-data` | -| Safari | `safari` | `true` | MDN `browser-compat-data` | -| Safari on iOS | `safari_ios` | `true` | MDN `browser-compat-data` | -| Opera | `opera` | `false` | MDN `browser-compat-data` | -| Opera Android | `opera_android` | `false` | MDN `browser-compat-data` | -| Samsung Internet | `samsunginternet_android` | `false` | MDN `browser-compat-data` | -| WebView Android | `webview_android` | `false` | MDN `browser-compat-data` | -| QQ Browser Mobile | `qq_android` | `false` | useragents.io | -| UC Browser Mobile | `uc_android` | `false` | useragents.io | -| Yandex Browser Mobile | `ya_android` | `false` | useragents.io | -| KaiOS | `kai_os` | `false` | Manual | -| Facebook for Android | `facebook_android` | `false` | useragents.io | -| Instagram for Android | `instagram_android` | `false` | useragents.io | - -> [!NOTE] -> All the non-core browsers currently included implement Chromium or Gecko. Their inclusion in any of the above methods is based on the Baseline feature set supported by the Chromium or Gecko version they implement, not their release date. diff --git a/build_vtk_bundle/node_modules/baseline-browser-mapping/package.json b/build_vtk_bundle/node_modules/baseline-browser-mapping/package.json deleted file mode 100644 index 6f22a24a..00000000 --- a/build_vtk_bundle/node_modules/baseline-browser-mapping/package.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "name": "baseline-browser-mapping", - "main": "./dist/index.cjs", - "version": "2.8.29", - "description": "A library for obtaining browser versions with their maximum supported Baseline feature set and Widely Available status.", - "exports": { - ".": { - "require": "./dist/index.cjs", - "types": "./dist/index.d.ts", - "default": "./dist/index.js" - }, - "./legacy": { - "require": "./dist/index.cjs", - "types": "./dist/index.d.ts" - } - }, - "jsdelivr": "./dist/index.js", - "files": [ - "dist/*", - "!dist/scripts/*", - "LICENSE.txt", - "README.md" - ], - "types": "./dist/index.d.ts", - "type": "module", - "bin": { - "baseline-browser-mapping": "./dist/cli.js" - }, - "scripts": { - "fix-cli-permissions": "output=$(npx baseline-browser-mapping 2>&1); path=$(printf '%s\n' \"$output\" | sed -n 's/^sh: \\(.*\\): Permission denied$/\\1/p'); if [ -n \"$path\" ]; then echo \"Permission denied for: $path\"; echo \"Removing $path ...\"; rm -rf \"$path\"; else echo \"$output\"; fi", - "test:format": "npx prettier --check .", - "test:lint": "npx eslint .", - "test:bcb": "mkdir test-bcb && cd test-bcb && npm init -y && npm i ../../baseline-browser-mapping browserslist browserslist-config-baseline &&jq '. += {\"browserslist\":[\"extends browserslist-config-baseline\"]}' package.json >p && mv p package.json && npx browserslist && cd ../ && rm -rf test-bcb", - "test:browserslist": "mkdir test-browserslist && cd test-browserslist && npm init -y && npm i ../../baseline-browser-mapping browserslist &&jq '. += {\"browserslist\":[\"baseline widely available with downstream\"]}' package.json >p && mv p package.json && npx browserslist && cd ../ && rm -rf test-browserslist", - "test:jasmine": "npx jasmine", - "test": "npm run build && npm run fix-cli-permissions && rm -rf test-browserslist test-bcb && npm run test:format && npm run test:lint && npx jasmine && npm run test:browserslist && npm run test:bcb", - "build": "rm -rf dist; npx prettier . --write; rollup -c; rm -rf ./dist/scripts/expose-data.d.ts ./dist/cli.d.ts", - "refresh-downstream": "npx tsx scripts/refresh-downstream.ts", - "refresh-static": "npx tsx scripts/refresh-static.ts", - "update-data-file": "npx tsx scripts/update-data-file.ts; npx prettier ./src/data/data.js --write", - "update-data-dependencies": "npm i @mdn/browser-compat-data@latest web-features@latest -D", - "check-data-changes": "git diff --name-only | grep -q '^src/data/data.js$' && echo 'changes-available=TRUE' || echo 'changes-available=FALSE'" - }, - "license": "Apache-2.0", - "devDependencies": { - "@mdn/browser-compat-data": "^7.1.21", - "@rollup/plugin-terser": "^0.4.4", - "@rollup/plugin-typescript": "^12.1.3", - "@types/node": "^22.15.17", - "eslint-plugin-new-with-error": "^5.0.0", - "jasmine": "^5.8.0", - "jasmine-spec-reporter": "^7.0.0", - "prettier": "^3.5.3", - "rollup": "^4.44.0", - "tslib": "^2.8.1", - "typescript": "^5.7.2", - "typescript-eslint": "^8.35.0", - "web-features": "^3.9.1" - }, - "repository": "git+https://github.com/web-platform-dx/baseline-browser-mapping.git" -} diff --git a/build_vtk_bundle/node_modules/big.js/CHANGELOG.md b/build_vtk_bundle/node_modules/big.js/CHANGELOG.md deleted file mode 100644 index 86262555..00000000 --- a/build_vtk_bundle/node_modules/big.js/CHANGELOG.md +++ /dev/null @@ -1,146 +0,0 @@ -#### 5.2.2 - -* 18/10/18 -* #109 Remove opencollective dependency. - -#### 5.2.1 - -* Delete *bower.json*. - -#### 5.2.0 - -* 09/10/18 -* #63 Allow negative argument for `round`. -* #107 `sqrt` of large number. - -#### 5.1.2 - -* 24/05/18 -* #95 Add `browser` field to *package.json*. -* Restore named export to enable `import {Big}`. - -#### 5.1.1 - -* 22/05/18 -* #95 Remove named export. - -#### 5.1.0 - -* 22/05/18 -* Amend *.mjs* exports. -* Remove extension from `main` field in *package.json*. - -#### 5.0.3 - -* 23/10/17 -* #89 Optimisation of internal `round` function. - -#### 5.0.2 - -* 13/10/17 -* Update *README.md*. - -#### 5.0.1 - -* 13/10/17 -* Correct `Big.version` number. - -#### 5.0.0 - -* 13/10/17 -* Return `-0` from `valueOf` for negative zero. -* Refactor the methods which return a string. -* Amend error messaging. -* Update API document and change its colour scheme. -* Add `Big.version`. -* Remove bitcoin address. - -#### 4.0.2 - -* 28/09/17 -* Add *big.mjs* for use with Node.js with `--experimental-modules` flag. - -#### 4.0.0 - -* 27/09/17 -* Rename `Big.E_POS` to `Big.PE`, `Big.E_NEG` to `Big.NE`. -* Refactor error messaging. -* Throw if `null` is passed to `toFixed` etc. - -#### 3.2.0 - -* 14/09/17 Aid ES6 import. - -#### 3.1.3 - -* Minor documentation updates. - -#### 3.1.2 - -* README typo. - -#### 3.1.1 - -* API documentation update, including FAQ additions. - -#### 3.1.0 - -* Renamed and exposed `TO_EXP_NEG` and `TO_EXP_POS` as `Big.E_NEG` and `Big.E_POS`. - -#### 3.0.2 - -* Remove *.npmignore*, use `files` field in *package.json* instead. - -#### 3.0.1 - -* Added `sub`, `add` and `mul` aliases. -* Clean-up after lint. - -#### 3.0.0 - -* 10/12/14 Added [multiple constructor functionality](http://mikemcl.github.io/big.js/#faq). -* No breaking changes or other additions, but a major code reorganisation, so *v3* seemed appropiate. - -#### 2.5.2 - -* 1/11/14 Added bower.json. - -#### 2.5.1 - -* 8/06/14 Amend README requires. - -#### 2.5.0 - -* 26/01/14 Added `toJSON` method so serialization uses `toString`. - -#### 2.4.1 - -* 17/10/13 Conform signed zero to IEEEE 754 (2008). - -#### 2.4.0 - -* 19/09/13 Throw instances of `Error`. - -#### 2.3.0 - -* 16/09/13 Added `cmp` method. - -#### 2.2.0 - -* 11/07/13 Added 'round up' mode. - -#### 2.1.0 - -* 26/06/13 Allow e.g. `.1` and `2.`. - -#### 2.0.0 - -* 12/05/13 Added `abs` method and replaced `cmp` with `eq`, `gt`, `gte`, `lt`, and `lte` methods. - -#### 1.0.1 - -* Changed default value of MAX_DP to 1E6 - -#### 1.0.0 - -* 7/11/2012 Initial release diff --git a/build_vtk_bundle/node_modules/big.js/LICENCE b/build_vtk_bundle/node_modules/big.js/LICENCE deleted file mode 100644 index f7e12c83..00000000 --- a/build_vtk_bundle/node_modules/big.js/LICENCE +++ /dev/null @@ -1,23 +0,0 @@ -The MIT Licence (Expat). - -Copyright (c) 2018 Michael Mclaughlin - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/build_vtk_bundle/node_modules/big.js/README.md b/build_vtk_bundle/node_modules/big.js/README.md deleted file mode 100644 index 8d103e6f..00000000 --- a/build_vtk_bundle/node_modules/big.js/README.md +++ /dev/null @@ -1,201 +0,0 @@ -# big.js - -**A small, fast JavaScript library for arbitrary-precision decimal arithmetic.** - -The little sister to [bignumber.js](https://github.com/MikeMcl/bignumber.js/) and [decimal.js](https://github.com/MikeMcl/decimal.js/). See [here](https://github.com/MikeMcl/big.js/wiki) for some notes on the difference between them. - -## Features - - - Faster, smaller and easier-to-use than JavaScript versions of Java's BigDecimal - - Only 5.9 KB minified and 2.7 KB gzipped - - Simple API - - Replicates the `toExponential`, `toFixed` and `toPrecision` methods of JavaScript's Number type - - Includes a `sqrt` method - - Stores values in an accessible decimal floating point format - - No dependencies - - Comprehensive [documentation](http://mikemcl.github.io/big.js/) and test set - -## Set up - -The library is the single JavaScript file *big.js* (or *big.min.js*, which is *big.js* minified). - -Browser: - -```html - -``` - -[Node.js](http://nodejs.org): - -```bash -$ npm install big.js -``` - -```javascript -const Big = require('big.js'); -``` - -ES6 module: - -```javascript -import Big from 'big.mjs'; -``` -## Use - -*In all examples below, `var`, semicolons and `toString` calls are not shown. If a commented-out value is in quotes it means `toString` has been called on the preceding expression.* - -The library exports a single function, `Big`, the constructor of Big number instances. -It accepts a value of type number, string or Big number object. - - x = new Big(123.4567) - y = Big('123456.7e-3') // 'new' is optional - z = new Big(x) - x.eq(y) && x.eq(z) && y.eq(z) // true - -A Big number is immutable in the sense that it is not changed by its methods. - - 0.3 - 0.1 // 0.19999999999999998 - x = new Big(0.3) - x.minus(0.1) // "0.2" - x // "0.3" - -The methods that return a Big number can be chained. - - x.div(y).plus(z).times(9).minus('1.234567801234567e+8').plus(976.54321).div('2598.11772') - x.sqrt().div(y).pow(3).gt(y.mod(z)) // true - -Like JavaScript's Number type, there are `toExponential`, `toFixed` and `toPrecision` methods. - - x = new Big(255.5) - x.toExponential(5) // "2.55500e+2" - x.toFixed(5) // "255.50000" - x.toPrecision(5) // "255.50" - -The arithmetic methods always return the exact result except `div`, `sqrt` and `pow` -(with negative exponent), as these methods involve division. - -The maximum number of decimal places and the rounding mode used to round the results of these methods is determined by the value of the `DP` and `RM` properties of the `Big` number constructor. - - Big.DP = 10 - Big.RM = 1 - - x = new Big(2); - y = new Big(3); - z = x.div(y) // "0.6666666667" - z.sqrt() // "0.8164965809" - z.pow(-3) // "3.3749999995" - z.times(z) // "0.44444444448888888889" - z.times(z).round(10) // "0.4444444445" - -Multiple Big number constructors can be created, each with an independent configuration. - -The value of a Big number is stored in a decimal floating point format in terms of a coefficient, exponent and sign. - - x = new Big(-123.456); - x.c // [1,2,3,4,5,6] coefficient (i.e. significand) - x.e // 2 exponent - x.s // -1 sign - -For further information see the [API](http://mikemcl.github.io/big.js/) reference from the *doc* folder. - -## Test - -The *test* directory contains the test scripts for each Big number method. - -The tests can be run with Node.js or a browser. - -To run all the tests - - $ npm test - -To test a single method - - $ node test/toFixed - -For the browser, see *single-test.html* and *every-test.html* in the *test/browser* directory. - -*big-vs-number.html* is a simple application that enables some of the methods of big.js to be compared with those of JavaScript's Number type. - -## Performance - -The *perf* directory contains two legacy applications and a *lib* directory containing the BigDecimal libraries used by both. - -*big-vs-bigdecimal.html* tests the performance of big.js against the JavaScript translations of two versions of BigDecimal, its use should be more or less self-explanatory. - -* [GWT: java.math.BigDecimal](https://github.com/iriscouch/bigdecimal.js) -* [ICU4J: com.ibm.icu.math.BigDecimal](https://github.com/dtrebbien/BigDecimal.js) - -The BigDecimal in the npm registry is the GWT version. It has some bugs, see the Node.js script *perf/lib/bigdecimal_GWT/bugs.js* for examples of flaws in its *remainder*, *divide* and *compareTo* methods. - -*bigtime.js* is a Node.js command-line application which tests the performance of big.js against the GWT version of -BigDecimal from the npm registry. - -For example, to compare the time taken by the big.js `plus` method and the BigDecimal `add` method - - $ node bigtime plus 10000 40 - -This will time 10000 calls to each, using operands of up to 40 random digits and will check that the results match. - -For help - - $ node bigtime -h - -## Build - -If [uglify-js](https://github.com/mishoo/UglifyJS2) is installed globally - - $ npm install uglify-js -g - -then - - $ npm run build - -will create *big.min.js*. - -## TypeScript - -The [DefinitelyTyped](https://github.com/borisyankov/DefinitelyTyped) project has a Typescript type definitions file for big.js. - - $ npm install @types/big.js - -Any questions about the TypeScript type definitions file should be addressed to the DefinitelyTyped project. - -## Feedback - -Bugs/comments/questions? - -Open an issue, or email Michael - -## Licence - -[MIT](LICENCE) - -## Contributors - -This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. - - - -## Backers - -Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/bigjs#backer)] - - - - -## Sponsors - -Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/bigjs#sponsor)] - - - - - - - - - - - - - diff --git a/build_vtk_bundle/node_modules/big.js/big.js b/build_vtk_bundle/node_modules/big.js/big.js deleted file mode 100644 index a2f201a6..00000000 --- a/build_vtk_bundle/node_modules/big.js/big.js +++ /dev/null @@ -1,941 +0,0 @@ -/* - * big.js v5.2.2 - * A small, fast, easy-to-use library for arbitrary-precision decimal arithmetic. - * Copyright (c) 2018 Michael Mclaughlin - * https://github.com/MikeMcl/big.js/LICENCE - */ -;(function (GLOBAL) { - 'use strict'; - var Big, - - -/************************************** EDITABLE DEFAULTS *****************************************/ - - - // The default values below must be integers within the stated ranges. - - /* - * The maximum number of decimal places (DP) of the results of operations involving division: - * div and sqrt, and pow with negative exponents. - */ - DP = 20, // 0 to MAX_DP - - /* - * The rounding mode (RM) used when rounding to the above decimal places. - * - * 0 Towards zero (i.e. truncate, no rounding). (ROUND_DOWN) - * 1 To nearest neighbour. If equidistant, round up. (ROUND_HALF_UP) - * 2 To nearest neighbour. If equidistant, to even. (ROUND_HALF_EVEN) - * 3 Away from zero. (ROUND_UP) - */ - RM = 1, // 0, 1, 2 or 3 - - // The maximum value of DP and Big.DP. - MAX_DP = 1E6, // 0 to 1000000 - - // The maximum magnitude of the exponent argument to the pow method. - MAX_POWER = 1E6, // 1 to 1000000 - - /* - * The negative exponent (NE) at and beneath which toString returns exponential notation. - * (JavaScript numbers: -7) - * -1000000 is the minimum recommended exponent value of a Big. - */ - NE = -7, // 0 to -1000000 - - /* - * The positive exponent (PE) at and above which toString returns exponential notation. - * (JavaScript numbers: 21) - * 1000000 is the maximum recommended exponent value of a Big. - * (This limit is not enforced or checked.) - */ - PE = 21, // 0 to 1000000 - - -/**************************************************************************************************/ - - - // Error messages. - NAME = '[big.js] ', - INVALID = NAME + 'Invalid ', - INVALID_DP = INVALID + 'decimal places', - INVALID_RM = INVALID + 'rounding mode', - DIV_BY_ZERO = NAME + 'Division by zero', - - // The shared prototype object. - P = {}, - UNDEFINED = void 0, - NUMERIC = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i; - - - /* - * Create and return a Big constructor. - * - */ - function _Big_() { - - /* - * The Big constructor and exported function. - * Create and return a new instance of a Big number object. - * - * n {number|string|Big} A numeric value. - */ - function Big(n) { - var x = this; - - // Enable constructor usage without new. - if (!(x instanceof Big)) return n === UNDEFINED ? _Big_() : new Big(n); - - // Duplicate. - if (n instanceof Big) { - x.s = n.s; - x.e = n.e; - x.c = n.c.slice(); - } else { - parse(x, n); - } - - /* - * Retain a reference to this Big constructor, and shadow Big.prototype.constructor which - * points to Object. - */ - x.constructor = Big; - } - - Big.prototype = P; - Big.DP = DP; - Big.RM = RM; - Big.NE = NE; - Big.PE = PE; - Big.version = '5.2.2'; - - return Big; - } - - - /* - * Parse the number or string value passed to a Big constructor. - * - * x {Big} A Big number instance. - * n {number|string} A numeric value. - */ - function parse(x, n) { - var e, i, nl; - - // Minus zero? - if (n === 0 && 1 / n < 0) n = '-0'; - else if (!NUMERIC.test(n += '')) throw Error(INVALID + 'number'); - - // Determine sign. - x.s = n.charAt(0) == '-' ? (n = n.slice(1), -1) : 1; - - // Decimal point? - if ((e = n.indexOf('.')) > -1) n = n.replace('.', ''); - - // Exponential form? - if ((i = n.search(/e/i)) > 0) { - - // Determine exponent. - if (e < 0) e = i; - e += +n.slice(i + 1); - n = n.substring(0, i); - } else if (e < 0) { - - // Integer. - e = n.length; - } - - nl = n.length; - - // Determine leading zeros. - for (i = 0; i < nl && n.charAt(i) == '0';) ++i; - - if (i == nl) { - - // Zero. - x.c = [x.e = 0]; - } else { - - // Determine trailing zeros. - for (; nl > 0 && n.charAt(--nl) == '0';); - x.e = e - i - 1; - x.c = []; - - // Convert string to array of digits without leading/trailing zeros. - for (e = 0; i <= nl;) x.c[e++] = +n.charAt(i++); - } - - return x; - } - - - /* - * Round Big x to a maximum of dp decimal places using rounding mode rm. - * Called by stringify, P.div, P.round and P.sqrt. - * - * x {Big} The Big to round. - * dp {number} Integer, 0 to MAX_DP inclusive. - * rm {number} 0, 1, 2 or 3 (DOWN, HALF_UP, HALF_EVEN, UP) - * [more] {boolean} Whether the result of division was truncated. - */ - function round(x, dp, rm, more) { - var xc = x.c, - i = x.e + dp + 1; - - if (i < xc.length) { - if (rm === 1) { - - // xc[i] is the digit after the digit that may be rounded up. - more = xc[i] >= 5; - } else if (rm === 2) { - more = xc[i] > 5 || xc[i] == 5 && - (more || i < 0 || xc[i + 1] !== UNDEFINED || xc[i - 1] & 1); - } else if (rm === 3) { - more = more || !!xc[0]; - } else { - more = false; - if (rm !== 0) throw Error(INVALID_RM); - } - - if (i < 1) { - xc.length = 1; - - if (more) { - - // 1, 0.1, 0.01, 0.001, 0.0001 etc. - x.e = -dp; - xc[0] = 1; - } else { - - // Zero. - xc[0] = x.e = 0; - } - } else { - - // Remove any digits after the required decimal places. - xc.length = i--; - - // Round up? - if (more) { - - // Rounding up may mean the previous digit has to be rounded up. - for (; ++xc[i] > 9;) { - xc[i] = 0; - if (!i--) { - ++x.e; - xc.unshift(1); - } - } - } - - // Remove trailing zeros. - for (i = xc.length; !xc[--i];) xc.pop(); - } - } else if (rm < 0 || rm > 3 || rm !== ~~rm) { - throw Error(INVALID_RM); - } - - return x; - } - - - /* - * Return a string representing the value of Big x in normal or exponential notation. - * Handles P.toExponential, P.toFixed, P.toJSON, P.toPrecision, P.toString and P.valueOf. - * - * x {Big} - * id? {number} Caller id. - * 1 toExponential - * 2 toFixed - * 3 toPrecision - * 4 valueOf - * n? {number|undefined} Caller's argument. - * k? {number|undefined} - */ - function stringify(x, id, n, k) { - var e, s, - Big = x.constructor, - z = !x.c[0]; - - if (n !== UNDEFINED) { - if (n !== ~~n || n < (id == 3) || n > MAX_DP) { - throw Error(id == 3 ? INVALID + 'precision' : INVALID_DP); - } - - x = new Big(x); - - // The index of the digit that may be rounded up. - n = k - x.e; - - // Round? - if (x.c.length > ++k) round(x, n, Big.RM); - - // toFixed: recalculate k as x.e may have changed if value rounded up. - if (id == 2) k = x.e + n + 1; - - // Append zeros? - for (; x.c.length < k;) x.c.push(0); - } - - e = x.e; - s = x.c.join(''); - n = s.length; - - // Exponential notation? - if (id != 2 && (id == 1 || id == 3 && k <= e || e <= Big.NE || e >= Big.PE)) { - s = s.charAt(0) + (n > 1 ? '.' + s.slice(1) : '') + (e < 0 ? 'e' : 'e+') + e; - - // Normal notation. - } else if (e < 0) { - for (; ++e;) s = '0' + s; - s = '0.' + s; - } else if (e > 0) { - if (++e > n) for (e -= n; e--;) s += '0'; - else if (e < n) s = s.slice(0, e) + '.' + s.slice(e); - } else if (n > 1) { - s = s.charAt(0) + '.' + s.slice(1); - } - - return x.s < 0 && (!z || id == 4) ? '-' + s : s; - } - - - // Prototype/instance methods - - - /* - * Return a new Big whose value is the absolute value of this Big. - */ - P.abs = function () { - var x = new this.constructor(this); - x.s = 1; - return x; - }; - - - /* - * Return 1 if the value of this Big is greater than the value of Big y, - * -1 if the value of this Big is less than the value of Big y, or - * 0 if they have the same value. - */ - P.cmp = function (y) { - var isneg, - x = this, - xc = x.c, - yc = (y = new x.constructor(y)).c, - i = x.s, - j = y.s, - k = x.e, - l = y.e; - - // Either zero? - if (!xc[0] || !yc[0]) return !xc[0] ? !yc[0] ? 0 : -j : i; - - // Signs differ? - if (i != j) return i; - - isneg = i < 0; - - // Compare exponents. - if (k != l) return k > l ^ isneg ? 1 : -1; - - j = (k = xc.length) < (l = yc.length) ? k : l; - - // Compare digit by digit. - for (i = -1; ++i < j;) { - if (xc[i] != yc[i]) return xc[i] > yc[i] ^ isneg ? 1 : -1; - } - - // Compare lengths. - return k == l ? 0 : k > l ^ isneg ? 1 : -1; - }; - - - /* - * Return a new Big whose value is the value of this Big divided by the value of Big y, rounded, - * if necessary, to a maximum of Big.DP decimal places using rounding mode Big.RM. - */ - P.div = function (y) { - var x = this, - Big = x.constructor, - a = x.c, // dividend - b = (y = new Big(y)).c, // divisor - k = x.s == y.s ? 1 : -1, - dp = Big.DP; - - if (dp !== ~~dp || dp < 0 || dp > MAX_DP) throw Error(INVALID_DP); - - // Divisor is zero? - if (!b[0]) throw Error(DIV_BY_ZERO); - - // Dividend is 0? Return +-0. - if (!a[0]) return new Big(k * 0); - - var bl, bt, n, cmp, ri, - bz = b.slice(), - ai = bl = b.length, - al = a.length, - r = a.slice(0, bl), // remainder - rl = r.length, - q = y, // quotient - qc = q.c = [], - qi = 0, - d = dp + (q.e = x.e - y.e) + 1; // number of digits of the result - - q.s = k; - k = d < 0 ? 0 : d; - - // Create version of divisor with leading zero. - bz.unshift(0); - - // Add zeros to make remainder as long as divisor. - for (; rl++ < bl;) r.push(0); - - do { - - // n is how many times the divisor goes into current remainder. - for (n = 0; n < 10; n++) { - - // Compare divisor and remainder. - if (bl != (rl = r.length)) { - cmp = bl > rl ? 1 : -1; - } else { - for (ri = -1, cmp = 0; ++ri < bl;) { - if (b[ri] != r[ri]) { - cmp = b[ri] > r[ri] ? 1 : -1; - break; - } - } - } - - // If divisor < remainder, subtract divisor from remainder. - if (cmp < 0) { - - // Remainder can't be more than 1 digit longer than divisor. - // Equalise lengths using divisor with extra leading zero? - for (bt = rl == bl ? b : bz; rl;) { - if (r[--rl] < bt[rl]) { - ri = rl; - for (; ri && !r[--ri];) r[ri] = 9; - --r[ri]; - r[rl] += 10; - } - r[rl] -= bt[rl]; - } - - for (; !r[0];) r.shift(); - } else { - break; - } - } - - // Add the digit n to the result array. - qc[qi++] = cmp ? n : ++n; - - // Update the remainder. - if (r[0] && cmp) r[rl] = a[ai] || 0; - else r = [a[ai]]; - - } while ((ai++ < al || r[0] !== UNDEFINED) && k--); - - // Leading zero? Do not remove if result is simply zero (qi == 1). - if (!qc[0] && qi != 1) { - - // There can't be more than one zero. - qc.shift(); - q.e--; - } - - // Round? - if (qi > d) round(q, dp, Big.RM, r[0] !== UNDEFINED); - - return q; - }; - - - /* - * Return true if the value of this Big is equal to the value of Big y, otherwise return false. - */ - P.eq = function (y) { - return !this.cmp(y); - }; - - - /* - * Return true if the value of this Big is greater than the value of Big y, otherwise return - * false. - */ - P.gt = function (y) { - return this.cmp(y) > 0; - }; - - - /* - * Return true if the value of this Big is greater than or equal to the value of Big y, otherwise - * return false. - */ - P.gte = function (y) { - return this.cmp(y) > -1; - }; - - - /* - * Return true if the value of this Big is less than the value of Big y, otherwise return false. - */ - P.lt = function (y) { - return this.cmp(y) < 0; - }; - - - /* - * Return true if the value of this Big is less than or equal to the value of Big y, otherwise - * return false. - */ - P.lte = function (y) { - return this.cmp(y) < 1; - }; - - - /* - * Return a new Big whose value is the value of this Big minus the value of Big y. - */ - P.minus = P.sub = function (y) { - var i, j, t, xlty, - x = this, - Big = x.constructor, - a = x.s, - b = (y = new Big(y)).s; - - // Signs differ? - if (a != b) { - y.s = -b; - return x.plus(y); - } - - var xc = x.c.slice(), - xe = x.e, - yc = y.c, - ye = y.e; - - // Either zero? - if (!xc[0] || !yc[0]) { - - // y is non-zero? x is non-zero? Or both are zero. - return yc[0] ? (y.s = -b, y) : new Big(xc[0] ? x : 0); - } - - // Determine which is the bigger number. Prepend zeros to equalise exponents. - if (a = xe - ye) { - - if (xlty = a < 0) { - a = -a; - t = xc; - } else { - ye = xe; - t = yc; - } - - t.reverse(); - for (b = a; b--;) t.push(0); - t.reverse(); - } else { - - // Exponents equal. Check digit by digit. - j = ((xlty = xc.length < yc.length) ? xc : yc).length; - - for (a = b = 0; b < j; b++) { - if (xc[b] != yc[b]) { - xlty = xc[b] < yc[b]; - break; - } - } - } - - // x < y? Point xc to the array of the bigger number. - if (xlty) { - t = xc; - xc = yc; - yc = t; - y.s = -y.s; - } - - /* - * Append zeros to xc if shorter. No need to add zeros to yc if shorter as subtraction only - * needs to start at yc.length. - */ - if ((b = (j = yc.length) - (i = xc.length)) > 0) for (; b--;) xc[i++] = 0; - - // Subtract yc from xc. - for (b = i; j > a;) { - if (xc[--j] < yc[j]) { - for (i = j; i && !xc[--i];) xc[i] = 9; - --xc[i]; - xc[j] += 10; - } - - xc[j] -= yc[j]; - } - - // Remove trailing zeros. - for (; xc[--b] === 0;) xc.pop(); - - // Remove leading zeros and adjust exponent accordingly. - for (; xc[0] === 0;) { - xc.shift(); - --ye; - } - - if (!xc[0]) { - - // n - n = +0 - y.s = 1; - - // Result must be zero. - xc = [ye = 0]; - } - - y.c = xc; - y.e = ye; - - return y; - }; - - - /* - * Return a new Big whose value is the value of this Big modulo the value of Big y. - */ - P.mod = function (y) { - var ygtx, - x = this, - Big = x.constructor, - a = x.s, - b = (y = new Big(y)).s; - - if (!y.c[0]) throw Error(DIV_BY_ZERO); - - x.s = y.s = 1; - ygtx = y.cmp(x) == 1; - x.s = a; - y.s = b; - - if (ygtx) return new Big(x); - - a = Big.DP; - b = Big.RM; - Big.DP = Big.RM = 0; - x = x.div(y); - Big.DP = a; - Big.RM = b; - - return this.minus(x.times(y)); - }; - - - /* - * Return a new Big whose value is the value of this Big plus the value of Big y. - */ - P.plus = P.add = function (y) { - var t, - x = this, - Big = x.constructor, - a = x.s, - b = (y = new Big(y)).s; - - // Signs differ? - if (a != b) { - y.s = -b; - return x.minus(y); - } - - var xe = x.e, - xc = x.c, - ye = y.e, - yc = y.c; - - // Either zero? y is non-zero? x is non-zero? Or both are zero. - if (!xc[0] || !yc[0]) return yc[0] ? y : new Big(xc[0] ? x : a * 0); - - xc = xc.slice(); - - // Prepend zeros to equalise exponents. - // Note: reverse faster than unshifts. - if (a = xe - ye) { - if (a > 0) { - ye = xe; - t = yc; - } else { - a = -a; - t = xc; - } - - t.reverse(); - for (; a--;) t.push(0); - t.reverse(); - } - - // Point xc to the longer array. - if (xc.length - yc.length < 0) { - t = yc; - yc = xc; - xc = t; - } - - a = yc.length; - - // Only start adding at yc.length - 1 as the further digits of xc can be left as they are. - for (b = 0; a; xc[a] %= 10) b = (xc[--a] = xc[a] + yc[a] + b) / 10 | 0; - - // No need to check for zero, as +x + +y != 0 && -x + -y != 0 - - if (b) { - xc.unshift(b); - ++ye; - } - - // Remove trailing zeros. - for (a = xc.length; xc[--a] === 0;) xc.pop(); - - y.c = xc; - y.e = ye; - - return y; - }; - - - /* - * Return a Big whose value is the value of this Big raised to the power n. - * If n is negative, round to a maximum of Big.DP decimal places using rounding - * mode Big.RM. - * - * n {number} Integer, -MAX_POWER to MAX_POWER inclusive. - */ - P.pow = function (n) { - var x = this, - one = new x.constructor(1), - y = one, - isneg = n < 0; - - if (n !== ~~n || n < -MAX_POWER || n > MAX_POWER) throw Error(INVALID + 'exponent'); - if (isneg) n = -n; - - for (;;) { - if (n & 1) y = y.times(x); - n >>= 1; - if (!n) break; - x = x.times(x); - } - - return isneg ? one.div(y) : y; - }; - - - /* - * Return a new Big whose value is the value of this Big rounded using rounding mode rm - * to a maximum of dp decimal places, or, if dp is negative, to an integer which is a - * multiple of 10**-dp. - * If dp is not specified, round to 0 decimal places. - * If rm is not specified, use Big.RM. - * - * dp? {number} Integer, -MAX_DP to MAX_DP inclusive. - * rm? 0, 1, 2 or 3 (ROUND_DOWN, ROUND_HALF_UP, ROUND_HALF_EVEN, ROUND_UP) - */ - P.round = function (dp, rm) { - var Big = this.constructor; - if (dp === UNDEFINED) dp = 0; - else if (dp !== ~~dp || dp < -MAX_DP || dp > MAX_DP) throw Error(INVALID_DP); - return round(new Big(this), dp, rm === UNDEFINED ? Big.RM : rm); - }; - - - /* - * Return a new Big whose value is the square root of the value of this Big, rounded, if - * necessary, to a maximum of Big.DP decimal places using rounding mode Big.RM. - */ - P.sqrt = function () { - var r, c, t, - x = this, - Big = x.constructor, - s = x.s, - e = x.e, - half = new Big(0.5); - - // Zero? - if (!x.c[0]) return new Big(x); - - // Negative? - if (s < 0) throw Error(NAME + 'No square root'); - - // Estimate. - s = Math.sqrt(x + ''); - - // Math.sqrt underflow/overflow? - // Re-estimate: pass x coefficient to Math.sqrt as integer, then adjust the result exponent. - if (s === 0 || s === 1 / 0) { - c = x.c.join(''); - if (!(c.length + e & 1)) c += '0'; - s = Math.sqrt(c); - e = ((e + 1) / 2 | 0) - (e < 0 || e & 1); - r = new Big((s == 1 / 0 ? '1e' : (s = s.toExponential()).slice(0, s.indexOf('e') + 1)) + e); - } else { - r = new Big(s); - } - - e = r.e + (Big.DP += 4); - - // Newton-Raphson iteration. - do { - t = r; - r = half.times(t.plus(x.div(t))); - } while (t.c.slice(0, e).join('') !== r.c.slice(0, e).join('')); - - return round(r, Big.DP -= 4, Big.RM); - }; - - - /* - * Return a new Big whose value is the value of this Big times the value of Big y. - */ - P.times = P.mul = function (y) { - var c, - x = this, - Big = x.constructor, - xc = x.c, - yc = (y = new Big(y)).c, - a = xc.length, - b = yc.length, - i = x.e, - j = y.e; - - // Determine sign of result. - y.s = x.s == y.s ? 1 : -1; - - // Return signed 0 if either 0. - if (!xc[0] || !yc[0]) return new Big(y.s * 0); - - // Initialise exponent of result as x.e + y.e. - y.e = i + j; - - // If array xc has fewer digits than yc, swap xc and yc, and lengths. - if (a < b) { - c = xc; - xc = yc; - yc = c; - j = a; - a = b; - b = j; - } - - // Initialise coefficient array of result with zeros. - for (c = new Array(j = a + b); j--;) c[j] = 0; - - // Multiply. - - // i is initially xc.length. - for (i = b; i--;) { - b = 0; - - // a is yc.length. - for (j = a + i; j > i;) { - - // Current sum of products at this digit position, plus carry. - b = c[j] + yc[i] * xc[j - i - 1] + b; - c[j--] = b % 10; - - // carry - b = b / 10 | 0; - } - - c[j] = (c[j] + b) % 10; - } - - // Increment result exponent if there is a final carry, otherwise remove leading zero. - if (b) ++y.e; - else c.shift(); - - // Remove trailing zeros. - for (i = c.length; !c[--i];) c.pop(); - y.c = c; - - return y; - }; - - - /* - * Return a string representing the value of this Big in exponential notation to dp fixed decimal - * places and rounded using Big.RM. - * - * dp? {number} Integer, 0 to MAX_DP inclusive. - */ - P.toExponential = function (dp) { - return stringify(this, 1, dp, dp); - }; - - - /* - * Return a string representing the value of this Big in normal notation to dp fixed decimal - * places and rounded using Big.RM. - * - * dp? {number} Integer, 0 to MAX_DP inclusive. - * - * (-0).toFixed(0) is '0', but (-0.1).toFixed(0) is '-0'. - * (-0).toFixed(1) is '0.0', but (-0.01).toFixed(1) is '-0.0'. - */ - P.toFixed = function (dp) { - return stringify(this, 2, dp, this.e + dp); - }; - - - /* - * Return a string representing the value of this Big rounded to sd significant digits using - * Big.RM. Use exponential notation if sd is less than the number of digits necessary to represent - * the integer part of the value in normal notation. - * - * sd {number} Integer, 1 to MAX_DP inclusive. - */ - P.toPrecision = function (sd) { - return stringify(this, 3, sd, sd - 1); - }; - - - /* - * Return a string representing the value of this Big. - * Return exponential notation if this Big has a positive exponent equal to or greater than - * Big.PE, or a negative exponent equal to or less than Big.NE. - * Omit the sign for negative zero. - */ - P.toString = function () { - return stringify(this); - }; - - - /* - * Return a string representing the value of this Big. - * Return exponential notation if this Big has a positive exponent equal to or greater than - * Big.PE, or a negative exponent equal to or less than Big.NE. - * Include the sign for negative zero. - */ - P.valueOf = P.toJSON = function () { - return stringify(this, 4); - }; - - - // Export - - - Big = _Big_(); - - Big['default'] = Big.Big = Big; - - //AMD. - if (typeof define === 'function' && define.amd) { - define(function () { return Big; }); - - // Node and other CommonJS-like environments that support module.exports. - } else if (typeof module !== 'undefined' && module.exports) { - module.exports = Big; - - //Browser. - } else { - GLOBAL.Big = Big; - } -})(this); diff --git a/build_vtk_bundle/node_modules/big.js/big.min.js b/build_vtk_bundle/node_modules/big.js/big.min.js deleted file mode 100644 index 0fb1b68f..00000000 --- a/build_vtk_bundle/node_modules/big.js/big.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/* big.js v5.2.2 https://github.com/MikeMcl/big.js/LICENCE */ -!function(e){"use strict";var r,i=20,s=1,P=1e6,o=-7,f=21,c="[big.js] ",u=c+"Invalid ",b=u+"decimal places",h=u+"rounding mode",x=c+"Division by zero",l={},D=void 0,a=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function R(e,r,t,n){var i=e.c,s=e.e+r+1;if(s++n&&R(e,t,o.RM),2==r&&(n=e.e+t+1);e.c.length=o.PE))s=s.charAt(0)+(1t)for(i-=t;i--;)s+="0";else ii[s]^r?1:-1;return f==c?0:cw[l]?1:-1;break}if(!(h<0))break;for(c=d==f?i:a;d;){if(w[--d]>=1;)r=r.times(r);return i?t.div(n):n},l.round=function(e,r){var t=this.constructor;if(e===D)e=0;else if(e!==~~e||e<-P||P - * https://github.com/MikeMcl/big.js/LICENCE - */ - - -/************************************** EDITABLE DEFAULTS *****************************************/ - - - // The default values below must be integers within the stated ranges. - - /* - * The maximum number of decimal places (DP) of the results of operations involving division: - * div and sqrt, and pow with negative exponents. - */ -var DP = 20, // 0 to MAX_DP - - /* - * The rounding mode (RM) used when rounding to the above decimal places. - * - * 0 Towards zero (i.e. truncate, no rounding). (ROUND_DOWN) - * 1 To nearest neighbour. If equidistant, round up. (ROUND_HALF_UP) - * 2 To nearest neighbour. If equidistant, to even. (ROUND_HALF_EVEN) - * 3 Away from zero. (ROUND_UP) - */ - RM = 1, // 0, 1, 2 or 3 - - // The maximum value of DP and Big.DP. - MAX_DP = 1E6, // 0 to 1000000 - - // The maximum magnitude of the exponent argument to the pow method. - MAX_POWER = 1E6, // 1 to 1000000 - - /* - * The negative exponent (NE) at and beneath which toString returns exponential notation. - * (JavaScript numbers: -7) - * -1000000 is the minimum recommended exponent value of a Big. - */ - NE = -7, // 0 to -1000000 - - /* - * The positive exponent (PE) at and above which toString returns exponential notation. - * (JavaScript numbers: 21) - * 1000000 is the maximum recommended exponent value of a Big. - * (This limit is not enforced or checked.) - */ - PE = 21, // 0 to 1000000 - - -/**************************************************************************************************/ - - - // Error messages. - NAME = '[big.js] ', - INVALID = NAME + 'Invalid ', - INVALID_DP = INVALID + 'decimal places', - INVALID_RM = INVALID + 'rounding mode', - DIV_BY_ZERO = NAME + 'Division by zero', - - // The shared prototype object. - P = {}, - UNDEFINED = void 0, - NUMERIC = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i; - - -/* - * Create and return a Big constructor. - * - */ -function _Big_() { - - /* - * The Big constructor and exported function. - * Create and return a new instance of a Big number object. - * - * n {number|string|Big} A numeric value. - */ - function Big(n) { - var x = this; - - // Enable constructor usage without new. - if (!(x instanceof Big)) return n === UNDEFINED ? _Big_() : new Big(n); - - // Duplicate. - if (n instanceof Big) { - x.s = n.s; - x.e = n.e; - x.c = n.c.slice(); - } else { - parse(x, n); - } - - /* - * Retain a reference to this Big constructor, and shadow Big.prototype.constructor which - * points to Object. - */ - x.constructor = Big; - } - - Big.prototype = P; - Big.DP = DP; - Big.RM = RM; - Big.NE = NE; - Big.PE = PE; - Big.version = '5.2.2'; - - return Big; -} - - -/* - * Parse the number or string value passed to a Big constructor. - * - * x {Big} A Big number instance. - * n {number|string} A numeric value. - */ -function parse(x, n) { - var e, i, nl; - - // Minus zero? - if (n === 0 && 1 / n < 0) n = '-0'; - else if (!NUMERIC.test(n += '')) throw Error(INVALID + 'number'); - - // Determine sign. - x.s = n.charAt(0) == '-' ? (n = n.slice(1), -1) : 1; - - // Decimal point? - if ((e = n.indexOf('.')) > -1) n = n.replace('.', ''); - - // Exponential form? - if ((i = n.search(/e/i)) > 0) { - - // Determine exponent. - if (e < 0) e = i; - e += +n.slice(i + 1); - n = n.substring(0, i); - } else if (e < 0) { - - // Integer. - e = n.length; - } - - nl = n.length; - - // Determine leading zeros. - for (i = 0; i < nl && n.charAt(i) == '0';) ++i; - - if (i == nl) { - - // Zero. - x.c = [x.e = 0]; - } else { - - // Determine trailing zeros. - for (; nl > 0 && n.charAt(--nl) == '0';); - x.e = e - i - 1; - x.c = []; - - // Convert string to array of digits without leading/trailing zeros. - for (e = 0; i <= nl;) x.c[e++] = +n.charAt(i++); - } - - return x; -} - - -/* - * Round Big x to a maximum of dp decimal places using rounding mode rm. - * Called by stringify, P.div, P.round and P.sqrt. - * - * x {Big} The Big to round. - * dp {number} Integer, 0 to MAX_DP inclusive. - * rm {number} 0, 1, 2 or 3 (DOWN, HALF_UP, HALF_EVEN, UP) - * [more] {boolean} Whether the result of division was truncated. - */ -function round(x, dp, rm, more) { - var xc = x.c, - i = x.e + dp + 1; - - if (i < xc.length) { - if (rm === 1) { - - // xc[i] is the digit after the digit that may be rounded up. - more = xc[i] >= 5; - } else if (rm === 2) { - more = xc[i] > 5 || xc[i] == 5 && - (more || i < 0 || xc[i + 1] !== UNDEFINED || xc[i - 1] & 1); - } else if (rm === 3) { - more = more || !!xc[0]; - } else { - more = false; - if (rm !== 0) throw Error(INVALID_RM); - } - - if (i < 1) { - xc.length = 1; - - if (more) { - - // 1, 0.1, 0.01, 0.001, 0.0001 etc. - x.e = -dp; - xc[0] = 1; - } else { - - // Zero. - xc[0] = x.e = 0; - } - } else { - - // Remove any digits after the required decimal places. - xc.length = i--; - - // Round up? - if (more) { - - // Rounding up may mean the previous digit has to be rounded up. - for (; ++xc[i] > 9;) { - xc[i] = 0; - if (!i--) { - ++x.e; - xc.unshift(1); - } - } - } - - // Remove trailing zeros. - for (i = xc.length; !xc[--i];) xc.pop(); - } - } else if (rm < 0 || rm > 3 || rm !== ~~rm) { - throw Error(INVALID_RM); - } - - return x; -} - - -/* - * Return a string representing the value of Big x in normal or exponential notation. - * Handles P.toExponential, P.toFixed, P.toJSON, P.toPrecision, P.toString and P.valueOf. - * - * x {Big} - * id? {number} Caller id. - * 1 toExponential - * 2 toFixed - * 3 toPrecision - * 4 valueOf - * n? {number|undefined} Caller's argument. - * k? {number|undefined} - */ -function stringify(x, id, n, k) { - var e, s, - Big = x.constructor, - z = !x.c[0]; - - if (n !== UNDEFINED) { - if (n !== ~~n || n < (id == 3) || n > MAX_DP) { - throw Error(id == 3 ? INVALID + 'precision' : INVALID_DP); - } - - x = new Big(x); - - // The index of the digit that may be rounded up. - n = k - x.e; - - // Round? - if (x.c.length > ++k) round(x, n, Big.RM); - - // toFixed: recalculate k as x.e may have changed if value rounded up. - if (id == 2) k = x.e + n + 1; - - // Append zeros? - for (; x.c.length < k;) x.c.push(0); - } - - e = x.e; - s = x.c.join(''); - n = s.length; - - // Exponential notation? - if (id != 2 && (id == 1 || id == 3 && k <= e || e <= Big.NE || e >= Big.PE)) { - s = s.charAt(0) + (n > 1 ? '.' + s.slice(1) : '') + (e < 0 ? 'e' : 'e+') + e; - - // Normal notation. - } else if (e < 0) { - for (; ++e;) s = '0' + s; - s = '0.' + s; - } else if (e > 0) { - if (++e > n) for (e -= n; e--;) s += '0'; - else if (e < n) s = s.slice(0, e) + '.' + s.slice(e); - } else if (n > 1) { - s = s.charAt(0) + '.' + s.slice(1); - } - - return x.s < 0 && (!z || id == 4) ? '-' + s : s; -} - - -// Prototype/instance methods - - -/* - * Return a new Big whose value is the absolute value of this Big. - */ -P.abs = function () { - var x = new this.constructor(this); - x.s = 1; - return x; -}; - - -/* - * Return 1 if the value of this Big is greater than the value of Big y, - * -1 if the value of this Big is less than the value of Big y, or - * 0 if they have the same value. -*/ -P.cmp = function (y) { - var isneg, - x = this, - xc = x.c, - yc = (y = new x.constructor(y)).c, - i = x.s, - j = y.s, - k = x.e, - l = y.e; - - // Either zero? - if (!xc[0] || !yc[0]) return !xc[0] ? !yc[0] ? 0 : -j : i; - - // Signs differ? - if (i != j) return i; - - isneg = i < 0; - - // Compare exponents. - if (k != l) return k > l ^ isneg ? 1 : -1; - - j = (k = xc.length) < (l = yc.length) ? k : l; - - // Compare digit by digit. - for (i = -1; ++i < j;) { - if (xc[i] != yc[i]) return xc[i] > yc[i] ^ isneg ? 1 : -1; - } - - // Compare lengths. - return k == l ? 0 : k > l ^ isneg ? 1 : -1; -}; - - -/* - * Return a new Big whose value is the value of this Big divided by the value of Big y, rounded, - * if necessary, to a maximum of Big.DP decimal places using rounding mode Big.RM. - */ -P.div = function (y) { - var x = this, - Big = x.constructor, - a = x.c, // dividend - b = (y = new Big(y)).c, // divisor - k = x.s == y.s ? 1 : -1, - dp = Big.DP; - - if (dp !== ~~dp || dp < 0 || dp > MAX_DP) throw Error(INVALID_DP); - - // Divisor is zero? - if (!b[0]) throw Error(DIV_BY_ZERO); - - // Dividend is 0? Return +-0. - if (!a[0]) return new Big(k * 0); - - var bl, bt, n, cmp, ri, - bz = b.slice(), - ai = bl = b.length, - al = a.length, - r = a.slice(0, bl), // remainder - rl = r.length, - q = y, // quotient - qc = q.c = [], - qi = 0, - d = dp + (q.e = x.e - y.e) + 1; // number of digits of the result - - q.s = k; - k = d < 0 ? 0 : d; - - // Create version of divisor with leading zero. - bz.unshift(0); - - // Add zeros to make remainder as long as divisor. - for (; rl++ < bl;) r.push(0); - - do { - - // n is how many times the divisor goes into current remainder. - for (n = 0; n < 10; n++) { - - // Compare divisor and remainder. - if (bl != (rl = r.length)) { - cmp = bl > rl ? 1 : -1; - } else { - for (ri = -1, cmp = 0; ++ri < bl;) { - if (b[ri] != r[ri]) { - cmp = b[ri] > r[ri] ? 1 : -1; - break; - } - } - } - - // If divisor < remainder, subtract divisor from remainder. - if (cmp < 0) { - - // Remainder can't be more than 1 digit longer than divisor. - // Equalise lengths using divisor with extra leading zero? - for (bt = rl == bl ? b : bz; rl;) { - if (r[--rl] < bt[rl]) { - ri = rl; - for (; ri && !r[--ri];) r[ri] = 9; - --r[ri]; - r[rl] += 10; - } - r[rl] -= bt[rl]; - } - - for (; !r[0];) r.shift(); - } else { - break; - } - } - - // Add the digit n to the result array. - qc[qi++] = cmp ? n : ++n; - - // Update the remainder. - if (r[0] && cmp) r[rl] = a[ai] || 0; - else r = [a[ai]]; - - } while ((ai++ < al || r[0] !== UNDEFINED) && k--); - - // Leading zero? Do not remove if result is simply zero (qi == 1). - if (!qc[0] && qi != 1) { - - // There can't be more than one zero. - qc.shift(); - q.e--; - } - - // Round? - if (qi > d) round(q, dp, Big.RM, r[0] !== UNDEFINED); - - return q; -}; - - -/* - * Return true if the value of this Big is equal to the value of Big y, otherwise return false. - */ -P.eq = function (y) { - return !this.cmp(y); -}; - - -/* - * Return true if the value of this Big is greater than the value of Big y, otherwise return - * false. - */ -P.gt = function (y) { - return this.cmp(y) > 0; -}; - - -/* - * Return true if the value of this Big is greater than or equal to the value of Big y, otherwise - * return false. - */ -P.gte = function (y) { - return this.cmp(y) > -1; -}; - - -/* - * Return true if the value of this Big is less than the value of Big y, otherwise return false. - */ -P.lt = function (y) { - return this.cmp(y) < 0; -}; - - -/* - * Return true if the value of this Big is less than or equal to the value of Big y, otherwise - * return false. - */ -P.lte = function (y) { - return this.cmp(y) < 1; -}; - - -/* - * Return a new Big whose value is the value of this Big minus the value of Big y. - */ -P.minus = P.sub = function (y) { - var i, j, t, xlty, - x = this, - Big = x.constructor, - a = x.s, - b = (y = new Big(y)).s; - - // Signs differ? - if (a != b) { - y.s = -b; - return x.plus(y); - } - - var xc = x.c.slice(), - xe = x.e, - yc = y.c, - ye = y.e; - - // Either zero? - if (!xc[0] || !yc[0]) { - - // y is non-zero? x is non-zero? Or both are zero. - return yc[0] ? (y.s = -b, y) : new Big(xc[0] ? x : 0); - } - - // Determine which is the bigger number. Prepend zeros to equalise exponents. - if (a = xe - ye) { - - if (xlty = a < 0) { - a = -a; - t = xc; - } else { - ye = xe; - t = yc; - } - - t.reverse(); - for (b = a; b--;) t.push(0); - t.reverse(); - } else { - - // Exponents equal. Check digit by digit. - j = ((xlty = xc.length < yc.length) ? xc : yc).length; - - for (a = b = 0; b < j; b++) { - if (xc[b] != yc[b]) { - xlty = xc[b] < yc[b]; - break; - } - } - } - - // x < y? Point xc to the array of the bigger number. - if (xlty) { - t = xc; - xc = yc; - yc = t; - y.s = -y.s; - } - - /* - * Append zeros to xc if shorter. No need to add zeros to yc if shorter as subtraction only - * needs to start at yc.length. - */ - if ((b = (j = yc.length) - (i = xc.length)) > 0) for (; b--;) xc[i++] = 0; - - // Subtract yc from xc. - for (b = i; j > a;) { - if (xc[--j] < yc[j]) { - for (i = j; i && !xc[--i];) xc[i] = 9; - --xc[i]; - xc[j] += 10; - } - - xc[j] -= yc[j]; - } - - // Remove trailing zeros. - for (; xc[--b] === 0;) xc.pop(); - - // Remove leading zeros and adjust exponent accordingly. - for (; xc[0] === 0;) { - xc.shift(); - --ye; - } - - if (!xc[0]) { - - // n - n = +0 - y.s = 1; - - // Result must be zero. - xc = [ye = 0]; - } - - y.c = xc; - y.e = ye; - - return y; -}; - - -/* - * Return a new Big whose value is the value of this Big modulo the value of Big y. - */ -P.mod = function (y) { - var ygtx, - x = this, - Big = x.constructor, - a = x.s, - b = (y = new Big(y)).s; - - if (!y.c[0]) throw Error(DIV_BY_ZERO); - - x.s = y.s = 1; - ygtx = y.cmp(x) == 1; - x.s = a; - y.s = b; - - if (ygtx) return new Big(x); - - a = Big.DP; - b = Big.RM; - Big.DP = Big.RM = 0; - x = x.div(y); - Big.DP = a; - Big.RM = b; - - return this.minus(x.times(y)); -}; - - -/* - * Return a new Big whose value is the value of this Big plus the value of Big y. - */ -P.plus = P.add = function (y) { - var t, - x = this, - Big = x.constructor, - a = x.s, - b = (y = new Big(y)).s; - - // Signs differ? - if (a != b) { - y.s = -b; - return x.minus(y); - } - - var xe = x.e, - xc = x.c, - ye = y.e, - yc = y.c; - - // Either zero? y is non-zero? x is non-zero? Or both are zero. - if (!xc[0] || !yc[0]) return yc[0] ? y : new Big(xc[0] ? x : a * 0); - - xc = xc.slice(); - - // Prepend zeros to equalise exponents. - // Note: reverse faster than unshifts. - if (a = xe - ye) { - if (a > 0) { - ye = xe; - t = yc; - } else { - a = -a; - t = xc; - } - - t.reverse(); - for (; a--;) t.push(0); - t.reverse(); - } - - // Point xc to the longer array. - if (xc.length - yc.length < 0) { - t = yc; - yc = xc; - xc = t; - } - - a = yc.length; - - // Only start adding at yc.length - 1 as the further digits of xc can be left as they are. - for (b = 0; a; xc[a] %= 10) b = (xc[--a] = xc[a] + yc[a] + b) / 10 | 0; - - // No need to check for zero, as +x + +y != 0 && -x + -y != 0 - - if (b) { - xc.unshift(b); - ++ye; - } - - // Remove trailing zeros. - for (a = xc.length; xc[--a] === 0;) xc.pop(); - - y.c = xc; - y.e = ye; - - return y; -}; - - -/* - * Return a Big whose value is the value of this Big raised to the power n. - * If n is negative, round to a maximum of Big.DP decimal places using rounding - * mode Big.RM. - * - * n {number} Integer, -MAX_POWER to MAX_POWER inclusive. - */ -P.pow = function (n) { - var x = this, - one = new x.constructor(1), - y = one, - isneg = n < 0; - - if (n !== ~~n || n < -MAX_POWER || n > MAX_POWER) throw Error(INVALID + 'exponent'); - if (isneg) n = -n; - - for (;;) { - if (n & 1) y = y.times(x); - n >>= 1; - if (!n) break; - x = x.times(x); - } - - return isneg ? one.div(y) : y; -}; - - -/* - * Return a new Big whose value is the value of this Big rounded using rounding mode rm - * to a maximum of dp decimal places, or, if dp is negative, to an integer which is a - * multiple of 10**-dp. - * If dp is not specified, round to 0 decimal places. - * If rm is not specified, use Big.RM. - * - * dp? {number} Integer, -MAX_DP to MAX_DP inclusive. - * rm? 0, 1, 2 or 3 (ROUND_DOWN, ROUND_HALF_UP, ROUND_HALF_EVEN, ROUND_UP) - */ -P.round = function (dp, rm) { - var Big = this.constructor; - if (dp === UNDEFINED) dp = 0; - else if (dp !== ~~dp || dp < -MAX_DP || dp > MAX_DP) throw Error(INVALID_DP); - return round(new Big(this), dp, rm === UNDEFINED ? Big.RM : rm); -}; - - -/* - * Return a new Big whose value is the square root of the value of this Big, rounded, if - * necessary, to a maximum of Big.DP decimal places using rounding mode Big.RM. - */ -P.sqrt = function () { - var r, c, t, - x = this, - Big = x.constructor, - s = x.s, - e = x.e, - half = new Big(0.5); - - // Zero? - if (!x.c[0]) return new Big(x); - - // Negative? - if (s < 0) throw Error(NAME + 'No square root'); - - // Estimate. - s = Math.sqrt(x + ''); - - // Math.sqrt underflow/overflow? - // Re-estimate: pass x coefficient to Math.sqrt as integer, then adjust the result exponent. - if (s === 0 || s === 1 / 0) { - c = x.c.join(''); - if (!(c.length + e & 1)) c += '0'; - s = Math.sqrt(c); - e = ((e + 1) / 2 | 0) - (e < 0 || e & 1); - r = new Big((s == 1 / 0 ? '1e' : (s = s.toExponential()).slice(0, s.indexOf('e') + 1)) + e); - } else { - r = new Big(s); - } - - e = r.e + (Big.DP += 4); - - // Newton-Raphson iteration. - do { - t = r; - r = half.times(t.plus(x.div(t))); - } while (t.c.slice(0, e).join('') !== r.c.slice(0, e).join('')); - - return round(r, Big.DP -= 4, Big.RM); -}; - - -/* - * Return a new Big whose value is the value of this Big times the value of Big y. - */ -P.times = P.mul = function (y) { - var c, - x = this, - Big = x.constructor, - xc = x.c, - yc = (y = new Big(y)).c, - a = xc.length, - b = yc.length, - i = x.e, - j = y.e; - - // Determine sign of result. - y.s = x.s == y.s ? 1 : -1; - - // Return signed 0 if either 0. - if (!xc[0] || !yc[0]) return new Big(y.s * 0); - - // Initialise exponent of result as x.e + y.e. - y.e = i + j; - - // If array xc has fewer digits than yc, swap xc and yc, and lengths. - if (a < b) { - c = xc; - xc = yc; - yc = c; - j = a; - a = b; - b = j; - } - - // Initialise coefficient array of result with zeros. - for (c = new Array(j = a + b); j--;) c[j] = 0; - - // Multiply. - - // i is initially xc.length. - for (i = b; i--;) { - b = 0; - - // a is yc.length. - for (j = a + i; j > i;) { - - // Current sum of products at this digit position, plus carry. - b = c[j] + yc[i] * xc[j - i - 1] + b; - c[j--] = b % 10; - - // carry - b = b / 10 | 0; - } - - c[j] = (c[j] + b) % 10; - } - - // Increment result exponent if there is a final carry, otherwise remove leading zero. - if (b) ++y.e; - else c.shift(); - - // Remove trailing zeros. - for (i = c.length; !c[--i];) c.pop(); - y.c = c; - - return y; -}; - - -/* - * Return a string representing the value of this Big in exponential notation to dp fixed decimal - * places and rounded using Big.RM. - * - * dp? {number} Integer, 0 to MAX_DP inclusive. - */ -P.toExponential = function (dp) { - return stringify(this, 1, dp, dp); -}; - - -/* - * Return a string representing the value of this Big in normal notation to dp fixed decimal - * places and rounded using Big.RM. - * - * dp? {number} Integer, 0 to MAX_DP inclusive. - * - * (-0).toFixed(0) is '0', but (-0.1).toFixed(0) is '-0'. - * (-0).toFixed(1) is '0.0', but (-0.01).toFixed(1) is '-0.0'. - */ -P.toFixed = function (dp) { - return stringify(this, 2, dp, this.e + dp); -}; - - -/* - * Return a string representing the value of this Big rounded to sd significant digits using - * Big.RM. Use exponential notation if sd is less than the number of digits necessary to represent - * the integer part of the value in normal notation. - * - * sd {number} Integer, 1 to MAX_DP inclusive. - */ -P.toPrecision = function (sd) { - return stringify(this, 3, sd, sd - 1); -}; - - -/* - * Return a string representing the value of this Big. - * Return exponential notation if this Big has a positive exponent equal to or greater than - * Big.PE, or a negative exponent equal to or less than Big.NE. - * Omit the sign for negative zero. - */ -P.toString = function () { - return stringify(this); -}; - - -/* - * Return a string representing the value of this Big. - * Return exponential notation if this Big has a positive exponent equal to or greater than - * Big.PE, or a negative exponent equal to or less than Big.NE. - * Include the sign for negative zero. - */ -P.valueOf = P.toJSON = function () { - return stringify(this, 4); -}; - - -// Export - - -export var Big = _Big_(); - -export default Big; diff --git a/build_vtk_bundle/node_modules/big.js/package.json b/build_vtk_bundle/node_modules/big.js/package.json deleted file mode 100644 index 92eafe49..00000000 --- a/build_vtk_bundle/node_modules/big.js/package.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "name": "big.js", - "description": "A small, fast, easy-to-use library for arbitrary-precision decimal arithmetic", - "version": "5.2.2", - "keywords": [ - "arbitrary", - "precision", - "arithmetic", - "big", - "number", - "decimal", - "float", - "biginteger", - "bigdecimal", - "bignumber", - "bigint", - "bignum" - ], - "repository": { - "type": "git", - "url": "https://github.com/MikeMcl/big.js.git" - }, - "main": "big", - "browser": "big.js", - "module": "big.mjs", - "author": { - "name": "Michael Mclaughlin", - "email": "M8ch88l@gmail.com" - }, - "bugs": { - "url": "https://github.com/MikeMcl/big.js/issues" - }, - "engines": { - "node": "*" - }, - "license": "MIT", - "scripts": { - "test": "node ./test/every-test.js", - "build": "uglifyjs big.js --source-map -c -m -o big.min.js" - }, - "files": [ - "big.js", - "big.mjs", - "big.min.js" - ], - "collective": { - "type": "opencollective", - "url": "https://opencollective.com/bigjs" - } -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/brace-expansion/LICENSE b/build_vtk_bundle/node_modules/brace-expansion/LICENSE deleted file mode 100644 index de322667..00000000 --- a/build_vtk_bundle/node_modules/brace-expansion/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2013 Julian Gruber - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/brace-expansion/README.md b/build_vtk_bundle/node_modules/brace-expansion/README.md deleted file mode 100644 index 6b4e0e16..00000000 --- a/build_vtk_bundle/node_modules/brace-expansion/README.md +++ /dev/null @@ -1,129 +0,0 @@ -# brace-expansion - -[Brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html), -as known from sh/bash, in JavaScript. - -[![build status](https://secure.travis-ci.org/juliangruber/brace-expansion.svg)](http://travis-ci.org/juliangruber/brace-expansion) -[![downloads](https://img.shields.io/npm/dm/brace-expansion.svg)](https://www.npmjs.org/package/brace-expansion) -[![Greenkeeper badge](https://badges.greenkeeper.io/juliangruber/brace-expansion.svg)](https://greenkeeper.io/) - -[![testling badge](https://ci.testling.com/juliangruber/brace-expansion.png)](https://ci.testling.com/juliangruber/brace-expansion) - -## Example - -```js -var expand = require('brace-expansion'); - -expand('file-{a,b,c}.jpg') -// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg'] - -expand('-v{,,}') -// => ['-v', '-v', '-v'] - -expand('file{0..2}.jpg') -// => ['file0.jpg', 'file1.jpg', 'file2.jpg'] - -expand('file-{a..c}.jpg') -// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg'] - -expand('file{2..0}.jpg') -// => ['file2.jpg', 'file1.jpg', 'file0.jpg'] - -expand('file{0..4..2}.jpg') -// => ['file0.jpg', 'file2.jpg', 'file4.jpg'] - -expand('file-{a..e..2}.jpg') -// => ['file-a.jpg', 'file-c.jpg', 'file-e.jpg'] - -expand('file{00..10..5}.jpg') -// => ['file00.jpg', 'file05.jpg', 'file10.jpg'] - -expand('{{A..C},{a..c}}') -// => ['A', 'B', 'C', 'a', 'b', 'c'] - -expand('ppp{,config,oe{,conf}}') -// => ['ppp', 'pppconfig', 'pppoe', 'pppoeconf'] -``` - -## API - -```js -var expand = require('brace-expansion'); -``` - -### var expanded = expand(str) - -Return an array of all possible and valid expansions of `str`. If none are -found, `[str]` is returned. - -Valid expansions are: - -```js -/^(.*,)+(.+)?$/ -// {a,b,...} -``` - -A comma separated list of options, like `{a,b}` or `{a,{b,c}}` or `{,a,}`. - -```js -/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/ -// {x..y[..incr]} -``` - -A numeric sequence from `x` to `y` inclusive, with optional increment. -If `x` or `y` start with a leading `0`, all the numbers will be padded -to have equal length. Negative numbers and backwards iteration work too. - -```js -/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/ -// {x..y[..incr]} -``` - -An alphabetic sequence from `x` to `y` inclusive, with optional increment. -`x` and `y` must be exactly one character, and if given, `incr` must be a -number. - -For compatibility reasons, the string `${` is not eligible for brace expansion. - -## Installation - -With [npm](https://npmjs.org) do: - -```bash -npm install brace-expansion -``` - -## Contributors - -- [Julian Gruber](https://github.com/juliangruber) -- [Isaac Z. Schlueter](https://github.com/isaacs) - -## Sponsors - -This module is proudly supported by my [Sponsors](https://github.com/juliangruber/sponsors)! - -Do you want to support modules like this to improve their quality, stability and weigh in on new features? Then please consider donating to my [Patreon](https://www.patreon.com/juliangruber). Not sure how much of my modules you're using? Try [feross/thanks](https://github.com/feross/thanks)! - -## License - -(MIT) - -Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/brace-expansion/index.js b/build_vtk_bundle/node_modules/brace-expansion/index.js deleted file mode 100644 index bd19fe68..00000000 --- a/build_vtk_bundle/node_modules/brace-expansion/index.js +++ /dev/null @@ -1,201 +0,0 @@ -var concatMap = require('concat-map'); -var balanced = require('balanced-match'); - -module.exports = expandTop; - -var escSlash = '\0SLASH'+Math.random()+'\0'; -var escOpen = '\0OPEN'+Math.random()+'\0'; -var escClose = '\0CLOSE'+Math.random()+'\0'; -var escComma = '\0COMMA'+Math.random()+'\0'; -var escPeriod = '\0PERIOD'+Math.random()+'\0'; - -function numeric(str) { - return parseInt(str, 10) == str - ? parseInt(str, 10) - : str.charCodeAt(0); -} - -function escapeBraces(str) { - return str.split('\\\\').join(escSlash) - .split('\\{').join(escOpen) - .split('\\}').join(escClose) - .split('\\,').join(escComma) - .split('\\.').join(escPeriod); -} - -function unescapeBraces(str) { - return str.split(escSlash).join('\\') - .split(escOpen).join('{') - .split(escClose).join('}') - .split(escComma).join(',') - .split(escPeriod).join('.'); -} - - -// Basically just str.split(","), but handling cases -// where we have nested braced sections, which should be -// treated as individual members, like {a,{b,c},d} -function parseCommaParts(str) { - if (!str) - return ['']; - - var parts = []; - var m = balanced('{', '}', str); - - if (!m) - return str.split(','); - - var pre = m.pre; - var body = m.body; - var post = m.post; - var p = pre.split(','); - - p[p.length-1] += '{' + body + '}'; - var postParts = parseCommaParts(post); - if (post.length) { - p[p.length-1] += postParts.shift(); - p.push.apply(p, postParts); - } - - parts.push.apply(parts, p); - - return parts; -} - -function expandTop(str) { - if (!str) - return []; - - // I don't know why Bash 4.3 does this, but it does. - // Anything starting with {} will have the first two bytes preserved - // but *only* at the top level, so {},a}b will not expand to anything, - // but a{},b}c will be expanded to [a}c,abc]. - // One could argue that this is a bug in Bash, but since the goal of - // this module is to match Bash's rules, we escape a leading {} - if (str.substr(0, 2) === '{}') { - str = '\\{\\}' + str.substr(2); - } - - return expand(escapeBraces(str), true).map(unescapeBraces); -} - -function identity(e) { - return e; -} - -function embrace(str) { - return '{' + str + '}'; -} -function isPadded(el) { - return /^-?0\d/.test(el); -} - -function lte(i, y) { - return i <= y; -} -function gte(i, y) { - return i >= y; -} - -function expand(str, isTop) { - var expansions = []; - - var m = balanced('{', '}', str); - if (!m || /\$$/.test(m.pre)) return [str]; - - var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body); - var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body); - var isSequence = isNumericSequence || isAlphaSequence; - var isOptions = m.body.indexOf(',') >= 0; - if (!isSequence && !isOptions) { - // {a},b} - if (m.post.match(/,(?!,).*\}/)) { - str = m.pre + '{' + m.body + escClose + m.post; - return expand(str); - } - return [str]; - } - - var n; - if (isSequence) { - n = m.body.split(/\.\./); - } else { - n = parseCommaParts(m.body); - if (n.length === 1) { - // x{{a,b}}y ==> x{a}y x{b}y - n = expand(n[0], false).map(embrace); - if (n.length === 1) { - var post = m.post.length - ? expand(m.post, false) - : ['']; - return post.map(function(p) { - return m.pre + n[0] + p; - }); - } - } - } - - // at this point, n is the parts, and we know it's not a comma set - // with a single entry. - - // no need to expand pre, since it is guaranteed to be free of brace-sets - var pre = m.pre; - var post = m.post.length - ? expand(m.post, false) - : ['']; - - var N; - - if (isSequence) { - var x = numeric(n[0]); - var y = numeric(n[1]); - var width = Math.max(n[0].length, n[1].length) - var incr = n.length == 3 - ? Math.abs(numeric(n[2])) - : 1; - var test = lte; - var reverse = y < x; - if (reverse) { - incr *= -1; - test = gte; - } - var pad = n.some(isPadded); - - N = []; - - for (var i = x; test(i, y); i += incr) { - var c; - if (isAlphaSequence) { - c = String.fromCharCode(i); - if (c === '\\') - c = ''; - } else { - c = String(i); - if (pad) { - var need = width - c.length; - if (need > 0) { - var z = new Array(need + 1).join('0'); - if (i < 0) - c = '-' + z + c.slice(1); - else - c = z + c; - } - } - } - N.push(c); - } - } else { - N = concatMap(n, function(el) { return expand(el, false) }); - } - - for (var j = 0; j < N.length; j++) { - for (var k = 0; k < post.length; k++) { - var expansion = pre + N[j] + post[k]; - if (!isTop || isSequence || expansion) - expansions.push(expansion); - } - } - - return expansions; -} - diff --git a/build_vtk_bundle/node_modules/brace-expansion/package.json b/build_vtk_bundle/node_modules/brace-expansion/package.json deleted file mode 100644 index 34478881..00000000 --- a/build_vtk_bundle/node_modules/brace-expansion/package.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "name": "brace-expansion", - "description": "Brace expansion as known from sh/bash", - "version": "1.1.12", - "repository": { - "type": "git", - "url": "git://github.com/juliangruber/brace-expansion.git" - }, - "homepage": "https://github.com/juliangruber/brace-expansion", - "main": "index.js", - "scripts": { - "test": "tape test/*.js", - "gentest": "bash test/generate.sh", - "bench": "matcha test/perf/bench.js" - }, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - }, - "devDependencies": { - "matcha": "^0.7.0", - "tape": "^4.6.0" - }, - "keywords": [], - "author": { - "name": "Julian Gruber", - "email": "mail@juliangruber.com", - "url": "http://juliangruber.com" - }, - "license": "MIT", - "testling": { - "files": "test/*.js", - "browsers": [ - "ie/8..latest", - "firefox/20..latest", - "firefox/nightly", - "chrome/25..latest", - "chrome/canary", - "opera/12..latest", - "opera/next", - "safari/5.1..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2..latest" - ] - }, - "publishConfig": { - "tag": "1.x" - } -} diff --git a/build_vtk_bundle/node_modules/browserslist/LICENSE b/build_vtk_bundle/node_modules/browserslist/LICENSE deleted file mode 100644 index 90b6b916..00000000 --- a/build_vtk_bundle/node_modules/browserslist/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright 2014 Andrey Sitnik and other contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/browserslist/README.md b/build_vtk_bundle/node_modules/browserslist/README.md deleted file mode 100644 index 7e51beee..00000000 --- a/build_vtk_bundle/node_modules/browserslist/README.md +++ /dev/null @@ -1,65 +0,0 @@ -# Browserslist - -Browserslist logo by Anton Popov - -The config to share target browsers and Node.js versions between different -front-end tools. It is used in: - -* [Autoprefixer] -* [Babel] -* [postcss-preset-env] -* [eslint-plugin-compat] -* [stylelint-no-unsupported-browser-features] -* [postcss-normalize] -* [obsolete-webpack-plugin] - -All tools will find target browsers automatically, -when you add the following to `package.json`: - -```json - "browserslist": [ - "defaults and fully supports es6-module", - "maintained node versions" - ] -``` - -Or in `.browserslistrc` config: - -```yaml -# Browsers that we support - -defaults and fully supports es6-module -maintained node versions -``` - -Developers set their version lists using queries like `last 2 versions` -to be free from updating versions manually. -Browserslist will use [`caniuse-lite`] with [Can I Use] data for this queries. - -You can check how config works at our playground: [`browsersl.ist`](https://browsersl.ist/) - - - browsersl.ist website - - -
-
-
- Sponsored by Evil Martians  Supported by Cube -
- -[stylelint-no-unsupported-browser-features]: https://github.com/ismay/stylelint-no-unsupported-browser-features -[obsolete-webpack-plugin]: https://github.com/ElemeFE/obsolete-webpack-plugin -[eslint-plugin-compat]: https://github.com/amilajack/eslint-plugin-compat -[Browserslist Example]: https://github.com/browserslist/browserslist-example -[postcss-preset-env]: https://github.com/csstools/postcss-plugins/tree/main/plugin-packs/postcss-preset-env -[postcss-normalize]: https://github.com/csstools/postcss-normalize -[`browsersl.ist`]: https://browsersl.ist/ -[`caniuse-lite`]: https://github.com/ben-eb/caniuse-lite -[Autoprefixer]: https://github.com/postcss/autoprefixer -[Can I Use]: https://caniuse.com/ -[Babel]: https://github.com/babel/babel/tree/master/packages/babel-preset-env - -## Docs -Read full docs **[here](https://github.com/browserslist/browserslist#readme)**. diff --git a/build_vtk_bundle/node_modules/browserslist/browser.js b/build_vtk_bundle/node_modules/browserslist/browser.js deleted file mode 100644 index 1a681fd3..00000000 --- a/build_vtk_bundle/node_modules/browserslist/browser.js +++ /dev/null @@ -1,54 +0,0 @@ -var BrowserslistError = require('./error') - -function noop() {} - -module.exports = { - loadQueries: function loadQueries() { - throw new BrowserslistError( - 'Sharable configs are not supported in client-side build of Browserslist' - ) - }, - - getStat: function getStat(opts) { - return opts.stats - }, - - loadConfig: function loadConfig(opts) { - if (opts.config) { - throw new BrowserslistError( - 'Browserslist config are not supported in client-side build' - ) - } - }, - - loadCountry: function loadCountry() { - throw new BrowserslistError( - 'Country statistics are not supported ' + - 'in client-side build of Browserslist' - ) - }, - - loadFeature: function loadFeature() { - throw new BrowserslistError( - 'Supports queries are not available in client-side build of Browserslist' - ) - }, - - currentNode: function currentNode(resolve, context) { - return resolve(['maintained node versions'], context)[0] - }, - - parseConfig: noop, - - readConfig: noop, - - findConfig: noop, - - findConfigFile: noop, - - clearCaches: noop, - - oldDataWarning: noop, - - env: {} -} diff --git a/build_vtk_bundle/node_modules/browserslist/cli.js b/build_vtk_bundle/node_modules/browserslist/cli.js deleted file mode 100755 index 78c08d74..00000000 --- a/build_vtk_bundle/node_modules/browserslist/cli.js +++ /dev/null @@ -1,156 +0,0 @@ -#!/usr/bin/env node - -var fs = require('fs') -var updateDb = require('update-browserslist-db') - -var browserslist = require('./') -var pkg = require('./package.json') - -var args = process.argv.slice(2) - -var USAGE = - 'Usage:\n' + - ' npx browserslist\n' + - ' npx browserslist "QUERIES"\n' + - ' npx browserslist --json "QUERIES"\n' + - ' npx browserslist --config="path/to/browserlist/file"\n' + - ' npx browserslist --coverage "QUERIES"\n' + - ' npx browserslist --coverage=US "QUERIES"\n' + - ' npx browserslist --coverage=US,RU,global "QUERIES"\n' + - ' npx browserslist --env="environment name defined in config"\n' + - ' npx browserslist --stats="path/to/browserlist/stats/file"\n' + - ' npx browserslist --mobile-to-desktop\n' + - ' npx browserslist --ignore-unknown-versions\n' - -function isArg(arg) { - return args.some(function (str) { - return str === arg || str.indexOf(arg + '=') === 0 - }) -} - -function error(msg) { - process.stderr.write('browserslist: ' + msg + '\n') - process.exit(1) -} - -if (isArg('--help') || isArg('-h')) { - process.stdout.write(pkg.description + '.\n\n' + USAGE + '\n') -} else if (isArg('--version') || isArg('-v')) { - process.stdout.write('browserslist ' + pkg.version + '\n') -} else if (isArg('--update-db')) { - /* c8 ignore next 8 */ - process.stdout.write( - 'The --update-db command is deprecated.\n' + - 'Please use npx update-browserslist-db@latest instead.\n' - ) - process.stdout.write('Browserslist DB update will still be made.\n') - updateDb(function (str) { - process.stdout.write(str) - }) -} else { - var mode = 'browsers' - var opts = {} - var queries - var areas - - for (var i = 0; i < args.length; i++) { - if (args[i][0] !== '-') { - queries = args[i].replace(/^["']|["']$/g, '') - continue - } - - var arg = args[i].split('=') - var name = arg[0] - var value = arg[1] - - if (value) value = value.replace(/^["']|["']$/g, '') - - if (name === '--config' || name === '-b') { - opts.config = value - } else if (name === '--env' || name === '-e') { - opts.env = value - } else if (name === '--stats' || name === '-s') { - opts.stats = value - } else if (name === '--coverage' || name === '-c') { - if (mode !== 'json') mode = 'coverage' - if (value) { - areas = value.split(',') - } else { - areas = ['global'] - } - } else if (name === '--json') { - mode = 'json' - } else if (name === '--mobile-to-desktop') { - /* c8 ignore next */ - opts.mobileToDesktop = true - } else if (name === '--ignore-unknown-versions') { - /* c8 ignore next */ - opts.ignoreUnknownVersions = true - } else { - error('Unknown arguments ' + args[i] + '.\n\n' + USAGE) - } - } - - var browsers - try { - browsers = browserslist(queries, opts) - } catch (e) { - if (e.name === 'BrowserslistError') { - error(e.message) - } /* c8 ignore start */ else { - throw e - } /* c8 ignore end */ - } - - var coverage - if (mode === 'browsers') { - browsers.forEach(function (browser) { - process.stdout.write(browser + '\n') - }) - } else if (areas) { - coverage = areas.map(function (area) { - var stats - if (area !== 'global') { - stats = area - } else if (opts.stats) { - stats = JSON.parse(fs.readFileSync(opts.stats)) - } - var result = browserslist.coverage(browsers, stats) - var round = Math.round(result * 100) / 100.0 - - return [area, round] - }) - - if (mode === 'coverage') { - var prefix = 'These browsers account for ' - process.stdout.write(prefix) - coverage.forEach(function (data, index) { - var area = data[0] - var round = data[1] - var end = 'globally' - if (area && area !== 'global') { - end = 'in the ' + area.toUpperCase() - } else if (opts.stats) { - end = 'in custom statistics' - } - - if (index !== 0) { - process.stdout.write(prefix.replace(/./g, ' ')) - } - - process.stdout.write(round + '% of all users ' + end + '\n') - }) - } - } - - if (mode === 'json') { - var data = { browsers: browsers } - if (coverage) { - data.coverage = coverage.reduce(function (object, j) { - object[j[0]] = j[1] - return object - }, {}) - } - process.stdout.write(JSON.stringify(data, null, ' ') + '\n') - } -} diff --git a/build_vtk_bundle/node_modules/browserslist/error.d.ts b/build_vtk_bundle/node_modules/browserslist/error.d.ts deleted file mode 100644 index 12ff9213..00000000 --- a/build_vtk_bundle/node_modules/browserslist/error.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -declare class BrowserslistError extends Error { - constructor(message: any) - name: 'BrowserslistError' - browserslist: true -} - -export = BrowserslistError diff --git a/build_vtk_bundle/node_modules/browserslist/error.js b/build_vtk_bundle/node_modules/browserslist/error.js deleted file mode 100644 index 6e5da7a8..00000000 --- a/build_vtk_bundle/node_modules/browserslist/error.js +++ /dev/null @@ -1,12 +0,0 @@ -function BrowserslistError(message) { - this.name = 'BrowserslistError' - this.message = message - this.browserslist = true - if (Error.captureStackTrace) { - Error.captureStackTrace(this, BrowserslistError) - } -} - -BrowserslistError.prototype = Error.prototype - -module.exports = BrowserslistError diff --git a/build_vtk_bundle/node_modules/browserslist/index.d.ts b/build_vtk_bundle/node_modules/browserslist/index.d.ts deleted file mode 100644 index a08176cc..00000000 --- a/build_vtk_bundle/node_modules/browserslist/index.d.ts +++ /dev/null @@ -1,224 +0,0 @@ -/** - * Return array of browsers by selection queries. - * - * ```js - * browserslist('IE >= 10, IE 8') //=> ['ie 11', 'ie 10', 'ie 8'] - * ``` - * - * @param queries Browser queries. - * @param opts Options. - * @returns Array with browser names in Can I Use. - */ -declare function browserslist( - queries?: string | readonly string[] | null, - opts?: browserslist.Options -): string[] - -declare namespace browserslist { - interface Query { - compose: 'or' | 'and' - type: string - query: string - not?: true - } - - interface Options { - /** - * Path to processed file. It will be used to find config files. - */ - path?: string | false - /** - * Processing environment. It will be used to take right queries - * from config file. - */ - env?: string - /** - * Custom browser usage statistics for "> 1% in my stats" query. - */ - stats?: Stats | string - /** - * Path to config file with queries. - */ - config?: string - /** - * Do not throw on unknown version in direct query. - */ - ignoreUnknownVersions?: boolean - /** - * Throw an error if env is not found. - */ - throwOnMissing?: boolean - /** - * Disable security checks for extend query. - */ - dangerousExtend?: boolean - /** - * Alias mobile browsers to the desktop version when Can I Use - * doesn’t have data about the specified version. - */ - mobileToDesktop?: boolean - } - - type Config = { - defaults: string[] - [section: string]: string[] | undefined - } - - interface Stats { - [browser: string]: { - [version: string]: number - } - } - - /** - * Browser names aliases. - */ - let aliases: { - [alias: string]: string | undefined - } - - /** - * Aliases to work with joined versions like `ios_saf 7.0-7.1`. - */ - let versionAliases: { - [browser: string]: - | { - [version: string]: string | undefined - } - | undefined - } - - /** - * Can I Use only provides a few versions for some browsers (e.g. `and_chr`). - * - * Fallback to a similar browser for unknown versions. - */ - let desktopNames: { - [browser: string]: string | undefined - } - - let data: { - [browser: string]: - | { - name: string - versions: string[] - released: string[] - releaseDate: { - [version: string]: number | undefined | null - } - } - | undefined - } - - let nodeVersions: string[] - - interface Usage { - [version: string]: number - } - - let usage: { - global?: Usage - custom?: Usage | null - [country: string]: Usage | undefined | null - } - - let cache: { - [feature: string]: { - [name: string]: { - [version: string]: string - } - } - } - - /** - * Default browsers query - */ - let defaults: readonly string[] - - /** - * Which statistics should be used. Country code or custom statistics. - * Pass `"my stats"` to load statistics from `Browserslist` files. - */ - type StatsOptions = string | 'my stats' | Stats | { dataByBrowser: Stats } - - /** - * Return browsers market coverage. - * - * ```js - * browserslist.coverage(browserslist('> 1% in US'), 'US') //=> 83.1 - * ``` - * - * @param browsers Browsers names in Can I Use. - * @param stats Which statistics should be used. - * @returns Total market coverage for all selected browsers. - */ - function coverage(browsers: readonly string[], stats?: StatsOptions): number - - /** - * Get queries AST to analyze the config content. - * - * @param queries Browser queries. - * @param opts Options. - * @returns An array of the data of each query in the config. - */ - function parse( - queries?: string | readonly string[] | null, - opts?: browserslist.Options - ): Query[] - - /** - * Return queries for specific file inside the project. - * - * ```js - * browserslist.loadConfig({ - * file: process.cwd() - * }) ?? browserslist.defaults - * ``` - */ - function loadConfig(options: LoadConfigOptions): string[] | undefined - - function clearCaches(): void - - function parseConfig(string: string): Config - - function readConfig(file: string): Config - - function findConfig(...pathSegments: string[]): Config | undefined - - function findConfigFile(...pathSegments: string[]): string | undefined - - interface LoadConfigOptions { - /** - * Path to config file - * */ - config?: string - - /** - * Path to file inside the project to find Browserslist config - * in closest folder - */ - path?: string - - /** - * Environment to choose part of config. - */ - env?: string - } -} - -declare global { - namespace NodeJS { - interface ProcessEnv { - BROWSERSLIST?: string - BROWSERSLIST_CONFIG?: string - BROWSERSLIST_DANGEROUS_EXTEND?: string - BROWSERSLIST_DISABLE_CACHE?: string - BROWSERSLIST_ENV?: string - BROWSERSLIST_IGNORE_OLD_DATA?: string - BROWSERSLIST_STATS?: string - BROWSERSLIST_ROOT_PATH?: string - } - } -} - -export = browserslist diff --git a/build_vtk_bundle/node_modules/browserslist/index.js b/build_vtk_bundle/node_modules/browserslist/index.js deleted file mode 100644 index 24e65d89..00000000 --- a/build_vtk_bundle/node_modules/browserslist/index.js +++ /dev/null @@ -1,1327 +0,0 @@ -var bbm = require('baseline-browser-mapping') -var jsReleases = require('node-releases/data/processed/envs.json') -var agents = require('caniuse-lite/dist/unpacker/agents').agents -var e2c = require('electron-to-chromium/versions') -var jsEOL = require('node-releases/data/release-schedule/release-schedule.json') -var path = require('path') - -var BrowserslistError = require('./error') -var env = require('./node') -var parseWithoutCache = require('./parse') // Will load browser.js in webpack - -var YEAR = 365.259641 * 24 * 60 * 60 * 1000 -var ANDROID_EVERGREEN_FIRST = '37' -var OP_MOB_BLINK_FIRST = 14 -var FIREFOX_ESR_VERSION = '140' - -// Helpers - -function isVersionsMatch(versionA, versionB) { - return (versionA + '.').indexOf(versionB + '.') === 0 -} - -function isEolReleased(name) { - var version = name.slice(1) - return browserslist.nodeVersions.some(function (i) { - return isVersionsMatch(i, version) - }) -} - -function normalize(versions) { - return versions.filter(function (version) { - return typeof version === 'string' - }) -} - -function normalizeElectron(version) { - var versionToUse = version - if (version.split('.').length === 3) { - versionToUse = version.split('.').slice(0, -1).join('.') - } - return versionToUse -} - -function nameMapper(name) { - return function mapName(version) { - return name + ' ' + version - } -} - -function getMajor(version) { - return parseInt(version.split('.')[0]) -} - -function getMajorVersions(released, number) { - if (released.length === 0) return [] - var majorVersions = uniq(released.map(getMajor)) - var minimum = majorVersions[majorVersions.length - number] - if (!minimum) { - return released - } - var selected = [] - for (var i = released.length - 1; i >= 0; i--) { - if (minimum > getMajor(released[i])) break - selected.unshift(released[i]) - } - return selected -} - -function uniq(array) { - var filtered = [] - for (var i = 0; i < array.length; i++) { - if (filtered.indexOf(array[i]) === -1) filtered.push(array[i]) - } - return filtered -} - -function fillUsage(result, name, data) { - for (var i in data) { - result[name + ' ' + i] = data[i] - } -} - -function generateFilter(sign, version) { - version = parseFloat(version) - if (sign === '>') { - return function (v) { - return parseLatestFloat(v) > version - } - } else if (sign === '>=') { - return function (v) { - return parseLatestFloat(v) >= version - } - } else if (sign === '<') { - return function (v) { - return parseFloat(v) < version - } - } else { - return function (v) { - return parseFloat(v) <= version - } - } - - function parseLatestFloat(v) { - return parseFloat(v.split('-')[1] || v) - } -} - -function generateSemverFilter(sign, version) { - version = version.split('.').map(parseSimpleInt) - version[1] = version[1] || 0 - version[2] = version[2] || 0 - if (sign === '>') { - return function (v) { - v = v.split('.').map(parseSimpleInt) - return compareSemver(v, version) > 0 - } - } else if (sign === '>=') { - return function (v) { - v = v.split('.').map(parseSimpleInt) - return compareSemver(v, version) >= 0 - } - } else if (sign === '<') { - return function (v) { - v = v.split('.').map(parseSimpleInt) - return compareSemver(version, v) > 0 - } - } else { - return function (v) { - v = v.split('.').map(parseSimpleInt) - return compareSemver(version, v) >= 0 - } - } -} - -function parseSimpleInt(x) { - return parseInt(x) -} - -function compare(a, b) { - if (a < b) return -1 - if (a > b) return +1 - return 0 -} - -function compareSemver(a, b) { - return ( - compare(parseInt(a[0]), parseInt(b[0])) || - compare(parseInt(a[1] || '0'), parseInt(b[1] || '0')) || - compare(parseInt(a[2] || '0'), parseInt(b[2] || '0')) - ) -} - -// this follows the npm-like semver behavior -function semverFilterLoose(operator, range) { - range = range.split('.').map(parseSimpleInt) - if (typeof range[1] === 'undefined') { - range[1] = 'x' - } - // ignore any patch version because we only return minor versions - // range[2] = 'x' - switch (operator) { - case '<=': - return function (version) { - version = version.split('.').map(parseSimpleInt) - return compareSemverLoose(version, range) <= 0 - } - case '>=': - default: - return function (version) { - version = version.split('.').map(parseSimpleInt) - return compareSemverLoose(version, range) >= 0 - } - } -} - -// this follows the npm-like semver behavior -function compareSemverLoose(version, range) { - if (version[0] !== range[0]) { - return version[0] < range[0] ? -1 : +1 - } - if (range[1] === 'x') { - return 0 - } - if (version[1] !== range[1]) { - return version[1] < range[1] ? -1 : +1 - } - return 0 -} - -function resolveVersion(data, version) { - if (data.versions.indexOf(version) !== -1) { - return version - } else if (browserslist.versionAliases[data.name][version]) { - return browserslist.versionAliases[data.name][version] - } else { - return false - } -} - -function normalizeVersion(data, version) { - var resolved = resolveVersion(data, version) - if (resolved) { - return resolved - } else if (data.versions.length === 1) { - return data.versions[0] - } else { - return false - } -} - -function filterByYear(since, context) { - since = since / 1000 - return Object.keys(agents).reduce(function (selected, name) { - var data = byName(name, context) - if (!data) return selected - var versions = Object.keys(data.releaseDate).filter(function (v) { - var date = data.releaseDate[v] - return date !== null && date >= since - }) - return selected.concat(versions.map(nameMapper(data.name))) - }, []) -} - -function cloneData(data) { - return { - name: data.name, - versions: data.versions, - released: data.released, - releaseDate: data.releaseDate - } -} - -function byName(name, context) { - name = name.toLowerCase() - name = browserslist.aliases[name] || name - if (context.mobileToDesktop && browserslist.desktopNames[name]) { - var desktop = browserslist.data[browserslist.desktopNames[name]] - if (name === 'android') { - return normalizeAndroidData(cloneData(browserslist.data[name]), desktop) - } else { - var cloned = cloneData(desktop) - cloned.name = name - return cloned - } - } - return browserslist.data[name] -} - -function normalizeAndroidVersions(androidVersions, chromeVersions) { - var iFirstEvergreen = chromeVersions.indexOf(ANDROID_EVERGREEN_FIRST) - return androidVersions - .filter(function (version) { - return /^(?:[2-4]\.|[34]$)/.test(version) - }) - .concat(chromeVersions.slice(iFirstEvergreen)) -} - -function copyObject(obj) { - var copy = {} - for (var key in obj) { - copy[key] = obj[key] - } - return copy -} - -function normalizeAndroidData(android, chrome) { - android.released = normalizeAndroidVersions(android.released, chrome.released) - android.versions = normalizeAndroidVersions(android.versions, chrome.versions) - android.releaseDate = copyObject(android.releaseDate) - android.released.forEach(function (v) { - if (android.releaseDate[v] === undefined) { - android.releaseDate[v] = chrome.releaseDate[v] - } - }) - return android -} - -function checkName(name, context) { - var data = byName(name, context) - if (!data) throw new BrowserslistError('Unknown browser ' + name) - return data -} - -function unknownQuery(query) { - return new BrowserslistError( - 'Unknown browser query `' + - query + - '`. ' + - 'Maybe you are using old Browserslist or made typo in query.' - ) -} - -// Adjusts last X versions queries for some mobile browsers, -// where caniuse data jumps from a legacy version to the latest -function filterJumps(list, name, nVersions, context) { - var jump = 1 - switch (name) { - case 'android': - if (context.mobileToDesktop) return list - var released = browserslist.data.chrome.released - jump = released.length - released.indexOf(ANDROID_EVERGREEN_FIRST) - break - case 'op_mob': - var latest = browserslist.data.op_mob.released.slice(-1)[0] - jump = getMajor(latest) - OP_MOB_BLINK_FIRST + 1 - break - default: - return list - } - if (nVersions <= jump) { - return list.slice(-1) - } - return list.slice(jump - 1 - nVersions) -} - -function isSupported(flags, withPartial) { - return ( - typeof flags === 'string' && - (flags.indexOf('y') >= 0 || (withPartial && flags.indexOf('a') >= 0)) - ) -} - -function resolve(queries, context) { - return parseQueries(queries).reduce(function (result, node, index) { - if (node.not && index === 0) { - throw new BrowserslistError( - 'Write any browsers query (for instance, `defaults`) ' + - 'before `' + - node.query + - '`' - ) - } - var type = QUERIES[node.type] - var array = type.select.call(browserslist, context, node).map(function (j) { - var parts = j.split(' ') - if (parts[1] === '0') { - return parts[0] + ' ' + byName(parts[0], context).versions[0] - } else { - return j - } - }) - - if (node.compose === 'and') { - if (node.not) { - return result.filter(function (j) { - return array.indexOf(j) === -1 - }) - } else { - return result.filter(function (j) { - return array.indexOf(j) !== -1 - }) - } - } else { - if (node.not) { - var filter = {} - array.forEach(function (j) { - filter[j] = true - }) - return result.filter(function (j) { - return !filter[j] - }) - } - return result.concat(array) - } - }, []) -} - -function prepareOpts(opts) { - if (typeof opts === 'undefined') opts = {} - - if (typeof opts.path === 'undefined') { - opts.path = path.resolve ? path.resolve('.') : '.' - } - - return opts -} - -function prepareQueries(queries, opts) { - if (typeof queries === 'undefined' || queries === null) { - var config = browserslist.loadConfig(opts) - if (config) { - queries = config - } else { - queries = browserslist.defaults - } - } - - return queries -} - -function checkQueries(queries) { - if (!(typeof queries === 'string' || Array.isArray(queries))) { - throw new BrowserslistError( - 'Browser queries must be an array or string. Got ' + typeof queries + '.' - ) - } -} - -var cache = {} -var parseCache = {} - -function browserslist(queries, opts) { - opts = prepareOpts(opts) - queries = prepareQueries(queries, opts) - checkQueries(queries) - - var needsPath = parseQueries(queries).some(function (node) { - return QUERIES[node.type].needsPath - }) - var context = { - ignoreUnknownVersions: opts.ignoreUnknownVersions, - dangerousExtend: opts.dangerousExtend, - throwOnMissing: opts.throwOnMissing, - mobileToDesktop: opts.mobileToDesktop, - env: opts.env - } - // Removing to avoid using context.path without marking query as needsPath - if (needsPath) { - context.path = opts.path - } - - env.oldDataWarning(browserslist.data) - var stats = env.getStat(opts, browserslist.data) - if (stats) { - context.customUsage = {} - for (var browser in stats) { - fillUsage(context.customUsage, browser, stats[browser]) - } - } - - var cacheKey = JSON.stringify([queries, context]) - if (cache[cacheKey]) return cache[cacheKey] - - var result = uniq(resolve(queries, context)).sort(function (name1, name2) { - name1 = name1.split(' ') - name2 = name2.split(' ') - if (name1[0] === name2[0]) { - // assumptions on caniuse data - // 1) version ranges never overlaps - // 2) if version is not a range, it never contains `-` - var version1 = name1[1].split('-')[0] - var version2 = name2[1].split('-')[0] - return compareSemver(version2.split('.'), version1.split('.')) - } else { - return compare(name1[0], name2[0]) - } - }) - if (!env.env.BROWSERSLIST_DISABLE_CACHE) { - cache[cacheKey] = result - } - return result -} - -function parseQueries(queries) { - var cacheKey = JSON.stringify(queries) - if (cacheKey in parseCache) return parseCache[cacheKey] - var result = parseWithoutCache(QUERIES, queries) - if (!env.env.BROWSERSLIST_DISABLE_CACHE) { - parseCache[cacheKey] = result - } - return result -} - -function loadCustomUsage(context, config) { - var stats = env.loadStat(context, config, browserslist.data) - if (stats) { - context.customUsage = {} - for (var browser in stats) { - fillUsage(context.customUsage, browser, stats[browser]) - } - } - if (!context.customUsage) { - throw new BrowserslistError('Custom usage statistics was not provided') - } - return context.customUsage -} - -browserslist.parse = function (queries, opts) { - opts = prepareOpts(opts) - queries = prepareQueries(queries, opts) - checkQueries(queries) - return parseQueries(queries) -} - -// Will be filled by Can I Use data below -browserslist.cache = {} -browserslist.data = {} -browserslist.usage = { - global: {}, - custom: null -} - -// Default browsers query -browserslist.defaults = ['> 0.5%', 'last 2 versions', 'Firefox ESR', 'not dead'] - -// Browser names aliases -browserslist.aliases = { - fx: 'firefox', - ff: 'firefox', - ios: 'ios_saf', - explorer: 'ie', - blackberry: 'bb', - explorermobile: 'ie_mob', - operamini: 'op_mini', - operamobile: 'op_mob', - chromeandroid: 'and_chr', - firefoxandroid: 'and_ff', - ucandroid: 'and_uc', - qqandroid: 'and_qq' -} - -// Can I Use only provides a few versions for some browsers (e.g. and_chr). -// Fallback to a similar browser for unknown versions -// Note op_mob is not included as its chromium versions are not in sync with Opera desktop -browserslist.desktopNames = { - and_chr: 'chrome', - and_ff: 'firefox', - ie_mob: 'ie', - android: 'chrome' // has extra processing logic -} - -// Aliases to work with joined versions like `ios_saf 7.0-7.1` -browserslist.versionAliases = {} - -browserslist.clearCaches = env.clearCaches -browserslist.parseConfig = env.parseConfig -browserslist.readConfig = env.readConfig -browserslist.findConfigFile = env.findConfigFile -browserslist.findConfig = env.findConfig -browserslist.loadConfig = env.loadConfig - -browserslist.coverage = function (browsers, stats) { - var data - if (typeof stats === 'undefined') { - data = browserslist.usage.global - } else if (stats === 'my stats') { - var opts = {} - opts.path = path.resolve ? path.resolve('.') : '.' - var customStats = env.getStat(opts) - if (!customStats) { - throw new BrowserslistError('Custom usage statistics was not provided') - } - data = {} - for (var browser in customStats) { - fillUsage(data, browser, customStats[browser]) - } - } else if (typeof stats === 'string') { - if (stats.length > 2) { - stats = stats.toLowerCase() - } else { - stats = stats.toUpperCase() - } - env.loadCountry(browserslist.usage, stats, browserslist.data) - data = browserslist.usage[stats] - } else { - if ('dataByBrowser' in stats) { - stats = stats.dataByBrowser - } - data = {} - for (var name in stats) { - for (var version in stats[name]) { - data[name + ' ' + version] = stats[name][version] - } - } - } - - return browsers.reduce(function (all, i) { - var usage = data[i] - if (usage === undefined) { - usage = data[i.replace(/ \S+$/, ' 0')] - } - return all + (usage || 0) - }, 0) -} - -function nodeQuery(context, node) { - var matched = browserslist.nodeVersions.filter(function (i) { - return isVersionsMatch(i, node.version) - }) - if (matched.length === 0) { - if (context.ignoreUnknownVersions) { - return [] - } else { - throw new BrowserslistError( - 'Unknown version ' + node.version + ' of Node.js' - ) - } - } - return ['node ' + matched[matched.length - 1]] -} - -function sinceQuery(context, node) { - var year = parseInt(node.year) - var month = parseInt(node.month || '01') - 1 - var day = parseInt(node.day || '01') - return filterByYear(Date.UTC(year, month, day, 0, 0, 0), context) -} - -function bbmTransform(bbmVersions) { - var browsers = { - chrome: 'chrome', - chrome_android: 'and_chr', - edge: 'edge', - firefox: 'firefox', - firefox_android: 'and_ff', - safari: 'safari', - safari_ios: 'ios_saf', - webview_android: 'android', - samsunginternet_android: 'samsung', - opera_android: 'op_mob', - opera: 'opera', - qq_android: 'and_qq', - uc_android: 'and_uc', - kai_os: 'kaios' - } - - return bbmVersions - .filter(function (version) { - return Object.keys(browsers).indexOf(version.browser) !== -1 - }) - .map(function (version) { - return browsers[version.browser] + ' >= ' + version.version - }) -} - -function coverQuery(context, node) { - var coverage = parseFloat(node.coverage) - var usage = browserslist.usage.global - if (node.place) { - if (node.place.match(/^my\s+stats$/i)) { - if (!context.customUsage) { - throw new BrowserslistError('Custom usage statistics was not provided') - } - usage = context.customUsage - } else { - var place - if (node.place.length === 2) { - place = node.place.toUpperCase() - } else { - place = node.place.toLowerCase() - } - env.loadCountry(browserslist.usage, place, browserslist.data) - usage = browserslist.usage[place] - } - } else if (node.config) { - usage = loadCustomUsage(context, node.config) - } - var versions = Object.keys(usage).sort(function (a, b) { - return usage[b] - usage[a] - }) - var covered = 0 - var result = [] - var version - for (var i = 0; i < versions.length; i++) { - version = versions[i] - if (usage[version] === 0) break - covered += usage[version] - result.push(version) - if (covered >= coverage) break - } - return result -} - -var QUERIES = { - last_major_versions: { - matches: ['versions'], - regexp: /^last\s+(\d+)\s+major\s+versions?$/i, - select: function (context, node) { - return Object.keys(agents).reduce(function (selected, name) { - var data = byName(name, context) - if (!data) return selected - var list = getMajorVersions(data.released, node.versions) - list = list.map(nameMapper(data.name)) - list = filterJumps(list, data.name, node.versions, context) - return selected.concat(list) - }, []) - } - }, - last_versions: { - matches: ['versions'], - regexp: /^last\s+(\d+)\s+versions?$/i, - select: function (context, node) { - return Object.keys(agents).reduce(function (selected, name) { - var data = byName(name, context) - if (!data) return selected - var list = data.released.slice(-node.versions) - list = list.map(nameMapper(data.name)) - list = filterJumps(list, data.name, node.versions, context) - return selected.concat(list) - }, []) - } - }, - last_electron_major_versions: { - matches: ['versions'], - regexp: /^last\s+(\d+)\s+electron\s+major\s+versions?$/i, - select: function (context, node) { - var validVersions = getMajorVersions(Object.keys(e2c), node.versions) - return validVersions.map(function (i) { - return 'chrome ' + e2c[i] - }) - } - }, - last_node_major_versions: { - matches: ['versions'], - regexp: /^last\s+(\d+)\s+node\s+major\s+versions?$/i, - select: function (context, node) { - return getMajorVersions(browserslist.nodeVersions, node.versions).map( - function (version) { - return 'node ' + version - } - ) - } - }, - last_browser_major_versions: { - matches: ['versions', 'browser'], - regexp: /^last\s+(\d+)\s+(\w+)\s+major\s+versions?$/i, - select: function (context, node) { - var data = checkName(node.browser, context) - var validVersions = getMajorVersions(data.released, node.versions) - var list = validVersions.map(nameMapper(data.name)) - list = filterJumps(list, data.name, node.versions, context) - return list - } - }, - last_electron_versions: { - matches: ['versions'], - regexp: /^last\s+(\d+)\s+electron\s+versions?$/i, - select: function (context, node) { - return Object.keys(e2c) - .slice(-node.versions) - .map(function (i) { - return 'chrome ' + e2c[i] - }) - } - }, - last_node_versions: { - matches: ['versions'], - regexp: /^last\s+(\d+)\s+node\s+versions?$/i, - select: function (context, node) { - return browserslist.nodeVersions - .slice(-node.versions) - .map(function (version) { - return 'node ' + version - }) - } - }, - last_browser_versions: { - matches: ['versions', 'browser'], - regexp: /^last\s+(\d+)\s+(\w+)\s+versions?$/i, - select: function (context, node) { - var data = checkName(node.browser, context) - var list = data.released.slice(-node.versions).map(nameMapper(data.name)) - list = filterJumps(list, data.name, node.versions, context) - return list - } - }, - unreleased_versions: { - matches: [], - regexp: /^unreleased\s+versions$/i, - select: function (context) { - return Object.keys(agents).reduce(function (selected, name) { - var data = byName(name, context) - if (!data) return selected - var list = data.versions.filter(function (v) { - return data.released.indexOf(v) === -1 - }) - list = list.map(nameMapper(data.name)) - return selected.concat(list) - }, []) - } - }, - unreleased_electron_versions: { - matches: [], - regexp: /^unreleased\s+electron\s+versions?$/i, - select: function () { - return [] - } - }, - unreleased_browser_versions: { - matches: ['browser'], - regexp: /^unreleased\s+(\w+)\s+versions?$/i, - select: function (context, node) { - var data = checkName(node.browser, context) - return data.versions - .filter(function (v) { - return data.released.indexOf(v) === -1 - }) - .map(nameMapper(data.name)) - } - }, - last_years: { - matches: ['years'], - regexp: /^last\s+((\d+\.)?\d+)\s+years?$/i, - select: function (context, node) { - return filterByYear(Date.now() - YEAR * node.years, context) - } - }, - since_y: { - matches: ['year'], - regexp: /^since (\d+)$/i, - select: sinceQuery - }, - since_y_m: { - matches: ['year', 'month'], - regexp: /^since (\d+)-(\d+)$/i, - select: sinceQuery - }, - since_y_m_d: { - matches: ['year', 'month', 'day'], - regexp: /^since (\d+)-(\d+)-(\d+)$/i, - select: sinceQuery - }, - baseline: { - matches: ['year', 'availability', 'date', 'downstream', 'kaios'], - // Matches: - // baseline 2024 - // baseline newly available - // baseline widely available - // baseline widely available on 2024-06-01 - // ...with downstream - // ...including kaios - regexp: - /^baseline\s+(?:(\d+)|(newly|widely)\s+available(?:\s+on\s+(\d{4}-\d{2}-\d{2}))?)?(\s+with\s+downstream)?(\s+including\s+kaios)?$/i, - select: function (context, node) { - var baselineVersions - var includeDownstream = !!node.downstream - var includeKaiOS = !!node.kaios - if (node.availability === 'newly' && node.date) { - throw new BrowserslistError( - 'Using newly available with a date is not supported, please use "widely available on YYYY-MM-DD" and add 30 months to the date you specified.' - ) - } - if (node.year) { - baselineVersions = bbm.getCompatibleVersions({ - targetYear: node.year, - includeDownstreamBrowsers: includeDownstream, - includeKaiOS: includeKaiOS - }) - } else if (node.date) { - baselineVersions = bbm.getCompatibleVersions({ - widelyAvailableOnDate: node.date, - includeDownstreamBrowsers: includeDownstream, - includeKaiOS: includeKaiOS - }) - } else if (node.availability === 'newly') { - var future30months = new Date().setMonth(new Date().getMonth() + 30) - baselineVersions = bbm.getCompatibleVersions({ - widelyAvailableOnDate: future30months, - includeDownstreamBrowsers: includeDownstream, - includeKaiOS: includeKaiOS - }) - } else { - baselineVersions = bbm.getCompatibleVersions({ - includeDownstreamBrowsers: includeDownstream, - includeKaiOS: includeKaiOS - }) - } - return resolve(bbmTransform(baselineVersions), context) - } - }, - popularity: { - matches: ['sign', 'popularity'], - regexp: /^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%$/, - select: function (context, node) { - var popularity = parseFloat(node.popularity) - var usage = browserslist.usage.global - return Object.keys(usage).reduce(function (result, version) { - if (node.sign === '>') { - if (usage[version] > popularity) { - result.push(version) - } - } else if (node.sign === '<') { - if (usage[version] < popularity) { - result.push(version) - } - } else if (node.sign === '<=') { - if (usage[version] <= popularity) { - result.push(version) - } - } else if (usage[version] >= popularity) { - result.push(version) - } - return result - }, []) - } - }, - popularity_in_my_stats: { - matches: ['sign', 'popularity'], - regexp: /^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+my\s+stats$/, - select: function (context, node) { - var popularity = parseFloat(node.popularity) - if (!context.customUsage) { - throw new BrowserslistError('Custom usage statistics was not provided') - } - var usage = context.customUsage - return Object.keys(usage).reduce(function (result, version) { - var percentage = usage[version] - if (percentage == null) { - return result - } - - if (node.sign === '>') { - if (percentage > popularity) { - result.push(version) - } - } else if (node.sign === '<') { - if (percentage < popularity) { - result.push(version) - } - } else if (node.sign === '<=') { - if (percentage <= popularity) { - result.push(version) - } - } else if (percentage >= popularity) { - result.push(version) - } - return result - }, []) - } - }, - popularity_in_config_stats: { - matches: ['sign', 'popularity', 'config'], - regexp: /^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+(\S+)\s+stats$/, - select: function (context, node) { - var popularity = parseFloat(node.popularity) - var usage = loadCustomUsage(context, node.config) - return Object.keys(usage).reduce(function (result, version) { - var percentage = usage[version] - if (percentage == null) { - return result - } - - if (node.sign === '>') { - if (percentage > popularity) { - result.push(version) - } - } else if (node.sign === '<') { - if (percentage < popularity) { - result.push(version) - } - } else if (node.sign === '<=') { - if (percentage <= popularity) { - result.push(version) - } - } else if (percentage >= popularity) { - result.push(version) - } - return result - }, []) - } - }, - popularity_in_place: { - matches: ['sign', 'popularity', 'place'], - regexp: /^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+((alt-)?\w\w)$/, - select: function (context, node) { - var popularity = parseFloat(node.popularity) - var place = node.place - if (place.length === 2) { - place = place.toUpperCase() - } else { - place = place.toLowerCase() - } - env.loadCountry(browserslist.usage, place, browserslist.data) - var usage = browserslist.usage[place] - return Object.keys(usage).reduce(function (result, version) { - var percentage = usage[version] - if (percentage == null) { - return result - } - - if (node.sign === '>') { - if (percentage > popularity) { - result.push(version) - } - } else if (node.sign === '<') { - if (percentage < popularity) { - result.push(version) - } - } else if (node.sign === '<=') { - if (percentage <= popularity) { - result.push(version) - } - } else if (percentage >= popularity) { - result.push(version) - } - return result - }, []) - } - }, - cover: { - matches: ['coverage'], - regexp: /^cover\s+(\d+|\d+\.\d+|\.\d+)%$/i, - select: coverQuery - }, - cover_in: { - matches: ['coverage', 'place'], - regexp: /^cover\s+(\d+|\d+\.\d+|\.\d+)%\s+in\s+(my\s+stats|(alt-)?\w\w)$/i, - select: coverQuery - }, - cover_config: { - matches: ['coverage', 'config'], - regexp: /^cover\s+(\d+|\d+\.\d+|\.\d+)%\s+in\s+(\S+)\s+stats$/i, - select: coverQuery - }, - supports: { - matches: ['supportType', 'feature'], - regexp: /^(?:(fully|partially)\s+)?supports\s+([\w-]+)$/, - select: function (context, node) { - env.loadFeature(browserslist.cache, node.feature) - var withPartial = node.supportType !== 'fully' - var features = browserslist.cache[node.feature] - var result = [] - for (var name in features) { - var data = byName(name, context) - // Only check desktop when latest released mobile has support - var iMax = data.released.length - 1 - while (iMax >= 0) { - if (data.released[iMax] in features[name]) break - iMax-- - } - var checkDesktop = - context.mobileToDesktop && - name in browserslist.desktopNames && - isSupported(features[name][data.released[iMax]], withPartial) - data.versions.forEach(function (version) { - var flags = features[name][version] - if (flags === undefined && checkDesktop) { - flags = features[browserslist.desktopNames[name]][version] - } - if (isSupported(flags, withPartial)) { - result.push(name + ' ' + version) - } - }) - } - return result - } - }, - electron_range: { - matches: ['from', 'to'], - regexp: /^electron\s+([\d.]+)\s*-\s*([\d.]+)$/i, - select: function (context, node) { - var fromToUse = normalizeElectron(node.from) - var toToUse = normalizeElectron(node.to) - var from = parseFloat(node.from) - var to = parseFloat(node.to) - if (!e2c[fromToUse]) { - throw new BrowserslistError('Unknown version ' + from + ' of electron') - } - if (!e2c[toToUse]) { - throw new BrowserslistError('Unknown version ' + to + ' of electron') - } - return Object.keys(e2c) - .filter(function (i) { - var parsed = parseFloat(i) - return parsed >= from && parsed <= to - }) - .map(function (i) { - return 'chrome ' + e2c[i] - }) - } - }, - node_range: { - matches: ['from', 'to'], - regexp: /^node\s+([\d.]+)\s*-\s*([\d.]+)$/i, - select: function (context, node) { - return browserslist.nodeVersions - .filter(semverFilterLoose('>=', node.from)) - .filter(semverFilterLoose('<=', node.to)) - .map(function (v) { - return 'node ' + v - }) - } - }, - browser_range: { - matches: ['browser', 'from', 'to'], - regexp: /^(\w+)\s+([\d.]+)\s*-\s*([\d.]+)$/i, - select: function (context, node) { - var data = checkName(node.browser, context) - var from = parseFloat(normalizeVersion(data, node.from) || node.from) - var to = parseFloat(normalizeVersion(data, node.to) || node.to) - function filter(v) { - var parsed = parseFloat(v) - return parsed >= from && parsed <= to - } - return data.released.filter(filter).map(nameMapper(data.name)) - } - }, - electron_ray: { - matches: ['sign', 'version'], - regexp: /^electron\s*(>=?|<=?)\s*([\d.]+)$/i, - select: function (context, node) { - var versionToUse = normalizeElectron(node.version) - return Object.keys(e2c) - .filter(generateFilter(node.sign, versionToUse)) - .map(function (i) { - return 'chrome ' + e2c[i] - }) - } - }, - node_ray: { - matches: ['sign', 'version'], - regexp: /^node\s*(>=?|<=?)\s*([\d.]+)$/i, - select: function (context, node) { - return browserslist.nodeVersions - .filter(generateSemverFilter(node.sign, node.version)) - .map(function (v) { - return 'node ' + v - }) - } - }, - browser_ray: { - matches: ['browser', 'sign', 'version'], - regexp: /^(\w+)\s*(>=?|<=?)\s*([\d.]+|esr)$/i, - select: function (context, node) { - var version = node.version - var data = checkName(node.browser, context) - var alias = browserslist.versionAliases[data.name][version.toLowerCase()] - if (alias) version = alias - if (!/[\d.]+/.test(version)) throw new BrowserslistError('Unknown version ' + version + ' of ' + node.browser); - return data.released - .filter(generateFilter(node.sign, version)) - .map(function (v) { - return data.name + ' ' + v - }) - } - }, - firefox_esr: { - matches: [], - regexp: /^(firefox|ff|fx)\s+esr$/i, - select: function () { - return ['firefox ' + FIREFOX_ESR_VERSION] - } - }, - opera_mini_all: { - matches: [], - regexp: /(operamini|op_mini)\s+all/i, - select: function () { - return ['op_mini all'] - } - }, - electron_version: { - matches: ['version'], - regexp: /^electron\s+([\d.]+)$/i, - select: function (context, node) { - var versionToUse = normalizeElectron(node.version) - var chrome = e2c[versionToUse] - if (!chrome) { - throw new BrowserslistError( - 'Unknown version ' + node.version + ' of electron' - ) - } - return ['chrome ' + chrome] - } - }, - node_major_version: { - matches: ['version'], - regexp: /^node\s+(\d+)$/i, - select: nodeQuery - }, - node_minor_version: { - matches: ['version'], - regexp: /^node\s+(\d+\.\d+)$/i, - select: nodeQuery - }, - node_patch_version: { - matches: ['version'], - regexp: /^node\s+(\d+\.\d+\.\d+)$/i, - select: nodeQuery - }, - current_node: { - matches: [], - regexp: /^current\s+node$/i, - select: function (context) { - return [env.currentNode(resolve, context)] - } - }, - maintained_node: { - matches: [], - regexp: /^maintained\s+node\s+versions$/i, - select: function (context) { - var now = Date.now() - var queries = Object.keys(jsEOL) - .filter(function (key) { - return ( - now < Date.parse(jsEOL[key].end) && - now > Date.parse(jsEOL[key].start) && - isEolReleased(key) - ) - }) - .map(function (key) { - return 'node ' + key.slice(1) - }) - return resolve(queries, context) - } - }, - phantomjs_1_9: { - matches: [], - regexp: /^phantomjs\s+1.9$/i, - select: function () { - return ['safari 5'] - } - }, - phantomjs_2_1: { - matches: [], - regexp: /^phantomjs\s+2.1$/i, - select: function () { - return ['safari 6'] - } - }, - browser_version: { - matches: ['browser', 'version'], - regexp: /^(\w+)\s+(tp|[\d.]+)$/i, - select: function (context, node) { - var version = node.version - if (/^tp$/i.test(version)) version = 'TP' - var data = checkName(node.browser, context) - var alias = normalizeVersion(data, version) - if (alias) { - version = alias - } else { - if (version.indexOf('.') === -1) { - alias = version + '.0' - } else { - alias = version.replace(/\.0$/, '') - } - alias = normalizeVersion(data, alias) - if (alias) { - version = alias - } else if (context.ignoreUnknownVersions) { - return [] - } else { - throw new BrowserslistError( - 'Unknown version ' + version + ' of ' + node.browser - ) - } - } - return [data.name + ' ' + version] - } - }, - browserslist_config: { - matches: [], - regexp: /^browserslist config$/i, - needsPath: true, - select: function (context) { - return browserslist(undefined, context) - } - }, - extends: { - matches: ['config'], - regexp: /^extends (.+)$/i, - needsPath: true, - select: function (context, node) { - return resolve(env.loadQueries(context, node.config), context) - } - }, - defaults: { - matches: [], - regexp: /^defaults$/i, - select: function (context) { - return resolve(browserslist.defaults, context) - } - }, - dead: { - matches: [], - regexp: /^dead$/i, - select: function (context) { - var dead = [ - 'Baidu >= 0', - 'ie <= 11', - 'ie_mob <= 11', - 'bb <= 10', - 'op_mob <= 12.1', - 'samsung 4' - ] - return resolve(dead, context) - } - }, - unknown: { - matches: [], - regexp: /^(\w+)$/i, - select: function (context, node) { - if (byName(node.query, context)) { - throw new BrowserslistError( - 'Specify versions in Browserslist query for browser ' + node.query - ) - } else { - throw unknownQuery(node.query) - } - } - } -} - -// Get and convert Can I Use data - -;(function () { - for (var name in agents) { - var browser = agents[name] - browserslist.data[name] = { - name: name, - versions: normalize(agents[name].versions), - released: normalize(agents[name].versions.slice(0, -3)), - releaseDate: agents[name].release_date - } - fillUsage(browserslist.usage.global, name, browser.usage_global) - - browserslist.versionAliases[name] = {} - for (var i = 0; i < browser.versions.length; i++) { - var full = browser.versions[i] - if (!full) continue - - if (full.indexOf('-') !== -1) { - var interval = full.split('-') - for (var j = 0; j < interval.length; j++) { - browserslist.versionAliases[name][interval[j]] = full - } - } - } - } - - browserslist.nodeVersions = jsReleases.map(function (release) { - return release.version - }) -})() - -browserslist.versionAliases.firefox.esr = FIREFOX_ESR_VERSION - -module.exports = browserslist diff --git a/build_vtk_bundle/node_modules/browserslist/node.js b/build_vtk_bundle/node_modules/browserslist/node.js deleted file mode 100644 index ffa977da..00000000 --- a/build_vtk_bundle/node_modules/browserslist/node.js +++ /dev/null @@ -1,502 +0,0 @@ -var feature = require('caniuse-lite/dist/unpacker/feature').default -var region = require('caniuse-lite/dist/unpacker/region').default -var fs = require('fs') -var path = require('path') - -var BrowserslistError = require('./error') - -var IS_SECTION = /^\s*\[(.+)]\s*$/ -var CONFIG_PATTERN = /^browserslist-config-/ -var SCOPED_CONFIG__PATTERN = /@[^/]+(?:\/[^/]+)?\/browserslist-config(?:-|$|\/)/ -var FORMAT = - 'Browserslist config should be a string or an array ' + - 'of strings with browser queries' -var PATHTYPE_UNKNOWN = 'unknown' -var PATHTYPE_DIR = 'directory' -var PATHTYPE_FILE = 'file' - -var dataTimeChecked = false -var statCache = {} -var configPathCache = {} -var parseConfigCache = {} - -function checkExtend(name) { - var use = ' Use `dangerousExtend` option to disable.' - if (!CONFIG_PATTERN.test(name) && !SCOPED_CONFIG__PATTERN.test(name)) { - throw new BrowserslistError( - 'Browserslist config needs `browserslist-config-` prefix. ' + use - ) - } - if (name.replace(/^@[^/]+\//, '').indexOf('.') !== -1) { - throw new BrowserslistError( - '`.` not allowed in Browserslist config name. ' + use - ) - } - if (name.indexOf('node_modules') !== -1) { - throw new BrowserslistError( - '`node_modules` not allowed in Browserslist config.' + use - ) - } -} - -function getPathType(filepath) { - var stats - try { - stats = fs.existsSync(filepath) && fs.statSync(filepath) - } catch (err) { - /* c8 ignore start */ - if ( - err.code !== 'ENOENT' && - err.code !== 'EACCES' && - err.code !== 'ERR_ACCESS_DENIED' - ) { - throw err - } - /* c8 ignore end */ - } - - if (stats && stats.isDirectory()) return PATHTYPE_DIR - if (stats && stats.isFile()) return PATHTYPE_FILE - - return PATHTYPE_UNKNOWN -} - -function isFile(file) { - return getPathType(file) === PATHTYPE_FILE -} - -function isDirectory(dir) { - return getPathType(dir) === PATHTYPE_DIR -} - -function eachParent(file, callback, cache) { - var loc = path.resolve(file) - var pathsForCacheResult = [] - var result - do { - if (!pathInRoot(loc)) { - break - } - if (cache && loc in cache) { - result = cache[loc] - break - } - pathsForCacheResult.push(loc) - - if (!isDirectory(loc)) { - continue - } - - var locResult = callback(loc) - if (typeof locResult !== 'undefined') { - result = locResult - break - } - } while (loc !== (loc = path.dirname(loc))) - - if (cache && !process.env.BROWSERSLIST_DISABLE_CACHE) { - pathsForCacheResult.forEach(function (cachePath) { - cache[cachePath] = result - }) - } - return result -} - -function pathInRoot(p) { - if (!process.env.BROWSERSLIST_ROOT_PATH) return true - var rootPath = path.resolve(process.env.BROWSERSLIST_ROOT_PATH) - if (path.relative(rootPath, p).substring(0, 2) === '..') { - return false - } - return true -} - -function check(section) { - if (Array.isArray(section)) { - for (var i = 0; i < section.length; i++) { - if (typeof section[i] !== 'string') { - throw new BrowserslistError(FORMAT) - } - } - } else if (typeof section !== 'string') { - throw new BrowserslistError(FORMAT) - } -} - -function pickEnv(config, opts) { - if (typeof config !== 'object') return config - - var name - if (typeof opts.env === 'string') { - name = opts.env - } else if (process.env.BROWSERSLIST_ENV) { - name = process.env.BROWSERSLIST_ENV - } else if (process.env.NODE_ENV) { - name = process.env.NODE_ENV - } else { - name = 'production' - } - - if (opts.throwOnMissing) { - if (name && name !== 'defaults' && !config[name]) { - throw new BrowserslistError( - 'Missing config for Browserslist environment `' + name + '`' - ) - } - } - - return config[name] || config.defaults -} - -function parsePackage(file) { - var text = fs - .readFileSync(file) - .toString() - .replace(/^\uFEFF/m, '') - var list - if (text.indexOf('"browserslist"') >= 0) { - list = JSON.parse(text).browserslist - } else if (text.indexOf('"browserlist"') >= 0) { - var config = JSON.parse(text) - if (config.browserlist && !config.browserslist) { - throw new BrowserslistError( - '`browserlist` key instead of `browserslist` in ' + file - ) - } - } - if (Array.isArray(list) || typeof list === 'string') { - list = { defaults: list } - } - for (var i in list) { - check(list[i]) - } - - return list -} - -function parsePackageOrReadConfig(file) { - if (file in parseConfigCache) { - return parseConfigCache[file] - } - - var isPackage = path.basename(file) === 'package.json' - var result = isPackage ? parsePackage(file) : module.exports.readConfig(file) - - if (!process.env.BROWSERSLIST_DISABLE_CACHE) { - parseConfigCache[file] = result - } - return result -} - -function latestReleaseTime(agents) { - var latest = 0 - for (var name in agents) { - var dates = agents[name].releaseDate || {} - for (var key in dates) { - if (latest < dates[key]) { - latest = dates[key] - } - } - } - return latest * 1000 -} - -function getMonthsPassed(date) { - var now = new Date() - var past = new Date(date) - - var years = now.getFullYear() - past.getFullYear() - var months = now.getMonth() - past.getMonth() - - return years * 12 + months -} - -function normalizeStats(data, stats) { - if (!data) { - data = {} - } - if (stats && 'dataByBrowser' in stats) { - stats = stats.dataByBrowser - } - - if (typeof stats !== 'object') return undefined - - var normalized = {} - for (var i in stats) { - var versions = Object.keys(stats[i]) - if (versions.length === 1 && data[i] && data[i].versions.length === 1) { - var normal = data[i].versions[0] - normalized[i] = {} - normalized[i][normal] = stats[i][versions[0]] - } else { - normalized[i] = stats[i] - } - } - - return normalized -} - -function normalizeUsageData(usageData, data) { - for (var browser in usageData) { - var browserUsage = usageData[browser] - // https://github.com/browserslist/browserslist/issues/431#issuecomment-565230615 - // caniuse-db returns { 0: "percentage" } for `and_*` regional stats - if ('0' in browserUsage) { - var versions = data[browser].versions - browserUsage[versions[versions.length - 1]] = browserUsage[0] - delete browserUsage[0] - } - } -} - -module.exports = { - loadQueries: function loadQueries(ctx, name) { - if (!ctx.dangerousExtend && !process.env.BROWSERSLIST_DANGEROUS_EXTEND) { - checkExtend(name) - } - var queries = require(require.resolve(name, { paths: ['.', ctx.path] })) - if (typeof queries === 'object' && queries !== null && queries.__esModule) { - queries = queries.default - } - if (queries) { - if (Array.isArray(queries)) { - return queries - } else if (typeof queries === 'object') { - if (!queries.defaults) queries.defaults = [] - return pickEnv(queries, ctx, name) - } - } - throw new BrowserslistError( - '`' + - name + - '` config exports not an array of queries' + - ' or an object of envs' - ) - }, - - loadStat: function loadStat(ctx, name, data) { - if (!ctx.dangerousExtend && !process.env.BROWSERSLIST_DANGEROUS_EXTEND) { - checkExtend(name) - } - var stats = require( - // Use forward slashes for module paths, also on Windows. - require.resolve(path.posix.join(name, 'browserslist-stats.json'), { - paths: ['.'] - }) - ) - return normalizeStats(data, stats) - }, - - getStat: function getStat(opts, data) { - var stats - if (opts.stats) { - stats = opts.stats - } else if (process.env.BROWSERSLIST_STATS) { - stats = process.env.BROWSERSLIST_STATS - } else if (opts.path && path.resolve && fs.existsSync) { - stats = eachParent( - opts.path, - function (dir) { - var file = path.join(dir, 'browserslist-stats.json') - return isFile(file) ? file : undefined - }, - statCache - ) - } - if (typeof stats === 'string') { - try { - stats = JSON.parse(fs.readFileSync(stats)) - } catch (e) { - throw new BrowserslistError("Can't read " + stats) - } - } - return normalizeStats(data, stats) - }, - - loadConfig: function loadConfig(opts) { - if (process.env.BROWSERSLIST) { - return process.env.BROWSERSLIST - } else if (opts.config || process.env.BROWSERSLIST_CONFIG) { - var file = opts.config || process.env.BROWSERSLIST_CONFIG - return pickEnv(parsePackageOrReadConfig(file), opts) - } else if (opts.path) { - return pickEnv(module.exports.findConfig(opts.path), opts) - } else { - return undefined - } - }, - - loadCountry: function loadCountry(usage, country, data) { - var code = country.replace(/[^\w-]/g, '') - if (!usage[code]) { - var compressed - try { - compressed = require('caniuse-lite/data/regions/' + code + '.js') - } catch (e) { - throw new BrowserslistError('Unknown region name `' + code + '`.') - } - var usageData = region(compressed) - normalizeUsageData(usageData, data) - usage[country] = {} - for (var i in usageData) { - for (var j in usageData[i]) { - usage[country][i + ' ' + j] = usageData[i][j] - } - } - } - }, - - loadFeature: function loadFeature(features, name) { - name = name.replace(/[^\w-]/g, '') - if (features[name]) return - var compressed - try { - compressed = require('caniuse-lite/data/features/' + name + '.js') - } catch (e) { - throw new BrowserslistError('Unknown feature name `' + name + '`.') - } - var stats = feature(compressed).stats - features[name] = {} - for (var i in stats) { - features[name][i] = {} - for (var j in stats[i]) { - features[name][i][j] = stats[i][j] - } - } - }, - - parseConfig: function parseConfig(string) { - var result = { defaults: [] } - var sections = ['defaults'] - - string - .toString() - .replace(/#[^\n]*/g, '') - .split(/\n|,/) - .map(function (line) { - return line.trim() - }) - .filter(function (line) { - return line !== '' - }) - .forEach(function (line) { - if (IS_SECTION.test(line)) { - sections = line.match(IS_SECTION)[1].trim().split(' ') - sections.forEach(function (section) { - if (result[section]) { - throw new BrowserslistError( - 'Duplicate section ' + section + ' in Browserslist config' - ) - } - result[section] = [] - }) - } else { - sections.forEach(function (section) { - result[section].push(line) - }) - } - }) - - return result - }, - - readConfig: function readConfig(file) { - if (!isFile(file)) { - throw new BrowserslistError("Can't read " + file + ' config') - } - - return module.exports.parseConfig(fs.readFileSync(file)) - }, - - findConfigFile: function findConfigFile(from) { - return eachParent( - from, - function (dir) { - var config = path.join(dir, 'browserslist') - var pkg = path.join(dir, 'package.json') - var rc = path.join(dir, '.browserslistrc') - - var pkgBrowserslist - if (isFile(pkg)) { - try { - pkgBrowserslist = parsePackage(pkg) - } catch (e) { - if (e.name === 'BrowserslistError') throw e - console.warn( - '[Browserslist] Could not parse ' + pkg + '. Ignoring it.' - ) - } - } - - if (isFile(config) && pkgBrowserslist) { - throw new BrowserslistError( - dir + ' contains both browserslist and package.json with browsers' - ) - } else if (isFile(rc) && pkgBrowserslist) { - throw new BrowserslistError( - dir + - ' contains both .browserslistrc and package.json with browsers' - ) - } else if (isFile(config) && isFile(rc)) { - throw new BrowserslistError( - dir + ' contains both .browserslistrc and browserslist' - ) - } else if (isFile(config)) { - return config - } else if (isFile(rc)) { - return rc - } else if (pkgBrowserslist) { - return pkg - } - }, - configPathCache - ) - }, - - findConfig: function findConfig(from) { - var configFile = this.findConfigFile(from) - - return configFile ? parsePackageOrReadConfig(configFile) : undefined - }, - - clearCaches: function clearCaches() { - dataTimeChecked = false - statCache = {} - configPathCache = {} - parseConfigCache = {} - - this.cache = {} - }, - - oldDataWarning: function oldDataWarning(agentsObj) { - if (dataTimeChecked) return - dataTimeChecked = true - if (process.env.BROWSERSLIST_IGNORE_OLD_DATA) return - - var latest = latestReleaseTime(agentsObj) - var monthsPassed = getMonthsPassed(latest) - - if (latest !== 0 && monthsPassed >= 6) { - if (process.env.BROWSERSLIST_TRACE_WARNING) { - console.info('Last browser release in DB: ' + String(new Date(latest))) - console.trace() - } - - var months = monthsPassed + ' ' + (monthsPassed > 1 ? 'months' : 'month') - console.warn( - 'Browserslist: browsers data (caniuse-lite) is ' + - months + - ' old. Please run:\n' + - ' npx update-browserslist-db@latest\n' + - ' Why you should do it regularly: ' + - 'https://github.com/browserslist/update-db#readme' - ) - } - }, - - currentNode: function currentNode() { - return 'node ' + process.versions.node - }, - - env: process.env -} diff --git a/build_vtk_bundle/node_modules/browserslist/package.json b/build_vtk_bundle/node_modules/browserslist/package.json deleted file mode 100644 index 97e6d564..00000000 --- a/build_vtk_bundle/node_modules/browserslist/package.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "browserslist", - "version": "4.28.0", - "description": "Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset", - "keywords": [ - "caniuse", - "browsers", - "target" - ], - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "author": "Andrey Sitnik ", - "license": "MIT", - "repository": "browserslist/browserslist", - "dependencies": { - "baseline-browser-mapping": "^2.8.25", - "caniuse-lite": "^1.0.30001754", - "electron-to-chromium": "^1.5.249", - "node-releases": "^2.0.27", - "update-browserslist-db": "^1.1.4" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - }, - "bin": { - "browserslist": "cli.js" - }, - "types": "./index.d.ts", - "browser": { - "./node.js": "./browser.js", - "path": false - } -} diff --git a/build_vtk_bundle/node_modules/browserslist/parse.js b/build_vtk_bundle/node_modules/browserslist/parse.js deleted file mode 100644 index c9d8f45b..00000000 --- a/build_vtk_bundle/node_modules/browserslist/parse.js +++ /dev/null @@ -1,78 +0,0 @@ -var AND_REGEXP = /^\s+and\s+(.*)/i -var OR_REGEXP = /^(?:,\s*|\s+or\s+)(.*)/i - -function flatten(array) { - if (!Array.isArray(array)) return [array] - return array.reduce(function (a, b) { - return a.concat(flatten(b)) - }, []) -} - -function find(string, predicate) { - for (var max = string.length, n = 1; n <= max; n++) { - var parsed = string.substr(-n, n) - if (predicate(parsed, n, max)) { - return string.slice(0, -n) - } - } - return '' -} - -function matchQuery(all, query) { - var node = { query: query } - if (query.indexOf('not ') === 0) { - node.not = true - query = query.slice(4) - } - - for (var name in all) { - var type = all[name] - var match = query.match(type.regexp) - if (match) { - node.type = name - for (var i = 0; i < type.matches.length; i++) { - node[type.matches[i]] = match[i + 1] - } - return node - } - } - - node.type = 'unknown' - return node -} - -function matchBlock(all, string, qs) { - var node - return find(string, function (parsed, n, max) { - if (AND_REGEXP.test(parsed)) { - node = matchQuery(all, parsed.match(AND_REGEXP)[1]) - node.compose = 'and' - qs.unshift(node) - return true - } else if (OR_REGEXP.test(parsed)) { - node = matchQuery(all, parsed.match(OR_REGEXP)[1]) - node.compose = 'or' - qs.unshift(node) - return true - } else if (n === max) { - node = matchQuery(all, parsed.trim()) - node.compose = 'or' - qs.unshift(node) - return true - } - return false - }) -} - -module.exports = function parse(all, queries) { - if (!Array.isArray(queries)) queries = [queries] - return flatten( - queries.map(function (block) { - var qs = [] - do { - block = matchBlock(all, block, qs) - } while (block) - return qs - }) - ) -} diff --git a/build_vtk_bundle/node_modules/buffer-from/LICENSE b/build_vtk_bundle/node_modules/buffer-from/LICENSE deleted file mode 100644 index e4bf1d69..00000000 --- a/build_vtk_bundle/node_modules/buffer-from/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2016, 2018 Linus Unnebäck - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/buffer-from/index.js b/build_vtk_bundle/node_modules/buffer-from/index.js deleted file mode 100644 index e1a58b5e..00000000 --- a/build_vtk_bundle/node_modules/buffer-from/index.js +++ /dev/null @@ -1,72 +0,0 @@ -/* eslint-disable node/no-deprecated-api */ - -var toString = Object.prototype.toString - -var isModern = ( - typeof Buffer !== 'undefined' && - typeof Buffer.alloc === 'function' && - typeof Buffer.allocUnsafe === 'function' && - typeof Buffer.from === 'function' -) - -function isArrayBuffer (input) { - return toString.call(input).slice(8, -1) === 'ArrayBuffer' -} - -function fromArrayBuffer (obj, byteOffset, length) { - byteOffset >>>= 0 - - var maxLength = obj.byteLength - byteOffset - - if (maxLength < 0) { - throw new RangeError("'offset' is out of bounds") - } - - if (length === undefined) { - length = maxLength - } else { - length >>>= 0 - - if (length > maxLength) { - throw new RangeError("'length' is out of bounds") - } - } - - return isModern - ? Buffer.from(obj.slice(byteOffset, byteOffset + length)) - : new Buffer(new Uint8Array(obj.slice(byteOffset, byteOffset + length))) -} - -function fromString (string, encoding) { - if (typeof encoding !== 'string' || encoding === '') { - encoding = 'utf8' - } - - if (!Buffer.isEncoding(encoding)) { - throw new TypeError('"encoding" must be a valid string encoding') - } - - return isModern - ? Buffer.from(string, encoding) - : new Buffer(string, encoding) -} - -function bufferFrom (value, encodingOrOffset, length) { - if (typeof value === 'number') { - throw new TypeError('"value" argument must not be a number') - } - - if (isArrayBuffer(value)) { - return fromArrayBuffer(value, encodingOrOffset, length) - } - - if (typeof value === 'string') { - return fromString(value, encodingOrOffset) - } - - return isModern - ? Buffer.from(value) - : new Buffer(value) -} - -module.exports = bufferFrom diff --git a/build_vtk_bundle/node_modules/buffer-from/package.json b/build_vtk_bundle/node_modules/buffer-from/package.json deleted file mode 100644 index 6ac5327b..00000000 --- a/build_vtk_bundle/node_modules/buffer-from/package.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "buffer-from", - "version": "1.1.2", - "license": "MIT", - "repository": "LinusU/buffer-from", - "files": [ - "index.js" - ], - "scripts": { - "test": "standard && node test" - }, - "devDependencies": { - "standard": "^12.0.1" - }, - "keywords": [ - "buffer", - "buffer from" - ] -} diff --git a/build_vtk_bundle/node_modules/buffer-from/readme.md b/build_vtk_bundle/node_modules/buffer-from/readme.md deleted file mode 100644 index 9880a558..00000000 --- a/build_vtk_bundle/node_modules/buffer-from/readme.md +++ /dev/null @@ -1,69 +0,0 @@ -# Buffer From - -A [ponyfill](https://ponyfill.com) for `Buffer.from`, uses native implementation if available. - -## Installation - -```sh -npm install --save buffer-from -``` - -## Usage - -```js -const bufferFrom = require('buffer-from') - -console.log(bufferFrom([1, 2, 3, 4])) -//=> - -const arr = new Uint8Array([1, 2, 3, 4]) -console.log(bufferFrom(arr.buffer, 1, 2)) -//=> - -console.log(bufferFrom('test', 'utf8')) -//=> - -const buf = bufferFrom('test') -console.log(bufferFrom(buf)) -//=> -``` - -## API - -### bufferFrom(array) - -- `array` <Array> - -Allocates a new `Buffer` using an `array` of octets. - -### bufferFrom(arrayBuffer[, byteOffset[, length]]) - -- `arrayBuffer` <ArrayBuffer> The `.buffer` property of a TypedArray or ArrayBuffer -- `byteOffset` <Integer> Where to start copying from `arrayBuffer`. **Default:** `0` -- `length` <Integer> How many bytes to copy from `arrayBuffer`. **Default:** `arrayBuffer.length - byteOffset` - -When passed a reference to the `.buffer` property of a TypedArray instance, the -newly created `Buffer` will share the same allocated memory as the TypedArray. - -The optional `byteOffset` and `length` arguments specify a memory range within -the `arrayBuffer` that will be shared by the `Buffer`. - -### bufferFrom(buffer) - -- `buffer` <Buffer> An existing `Buffer` to copy data from - -Copies the passed `buffer` data onto a new `Buffer` instance. - -### bufferFrom(string[, encoding]) - -- `string` <String> A string to encode. -- `encoding` <String> The encoding of `string`. **Default:** `'utf8'` - -Creates a new `Buffer` containing the given JavaScript string `string`. If -provided, the `encoding` parameter identifies the character encoding of -`string`. - -## See also - -- [buffer-alloc](https://github.com/LinusU/buffer-alloc) A ponyfill for `Buffer.alloc` -- [buffer-alloc-unsafe](https://github.com/LinusU/buffer-alloc-unsafe) A ponyfill for `Buffer.allocUnsafe` diff --git a/build_vtk_bundle/node_modules/caniuse-lite/LICENSE b/build_vtk_bundle/node_modules/caniuse-lite/LICENSE deleted file mode 100644 index 06c608dc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/LICENSE +++ /dev/null @@ -1,395 +0,0 @@ -Attribution 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution 4.0 International Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution 4.0 International Public License ("Public License"). To the -extent this Public License may be interpreted as a contract, You are -granted the Licensed Rights in consideration of Your acceptance of -these terms and conditions, and the Licensor grants You such rights in -consideration of benefits the Licensor receives from making the -Licensed Material available under these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - d. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - e. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - f. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - g. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - h. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - i. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - j. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - k. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part; and - - b. produce, reproduce, and Share Adapted Material. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - 4. If You Share Adapted Material You produce, the Adapter's - License You apply must not prevent recipients of the Adapted - Material from complying with this Public License. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material; and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - - -======================================================================= - -Creative Commons is not a party to its public -licenses. Notwithstanding, Creative Commons may elect to apply one of -its public licenses to material it publishes and in those instances -will be considered the “Licensor.” The text of the Creative Commons -public licenses is dedicated to the public domain under the CC0 Public -Domain Dedication. Except for the limited purpose of indicating that -material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the -public licenses. - -Creative Commons may be contacted at creativecommons.org. diff --git a/build_vtk_bundle/node_modules/caniuse-lite/README.md b/build_vtk_bundle/node_modules/caniuse-lite/README.md deleted file mode 100644 index f2c67bc4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# caniuse-lite - -A smaller version of caniuse-db, with only the essentials! - -## Docs -Read full docs **[here](https://github.com/browserslist/caniuse-lite#readme)**. diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/agents.js b/build_vtk_bundle/node_modules/caniuse-lite/data/agents.js deleted file mode 100644 index 00274235..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/agents.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{K:0,D:0,E:0.0216515,F:0.0649546,A:0,B:0.28147,wC:0},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","wC","K","D","E","F","A","B","","",""],E:"IE",F:{wC:962323200,K:998870400,D:1161129600,E:1237420800,F:1300060800,A:1346716800,B:1381968000}},B:{A:{"0":0,"1":0,"2":0,"3":0.029844,"4":0.019896,"5":0.014922,C:0,L:0,M:0,G:0,N:0,O:0,P:0,Q:0,H:0,R:0,S:0,T:0,U:0,V:0,W:0,X:0,Y:0,Z:0,a:0,b:0.009948,c:0,d:0,e:0,f:0,g:0,h:0,i:0,j:0,k:0,l:0,m:0,n:0,o:0,p:0,q:0,r:0,s:0.034818,t:0,u:0,v:0,w:0,x:0.019896,y:0,z:0,GB:0,HB:0,IB:0,JB:0.009948,KB:0.004974,LB:0.004974,MB:0.004974,NB:0.004974,OB:0.019896,PB:0.009948,QB:0.009948,RB:0.02487,SB:0.014922,TB:0.014922,UB:0.014922,VB:0.034818,WB:0.054714,XB:0.731178,YB:3.18336,I:0.009948},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","C","L","M","G","N","O","P","Q","H","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","GB","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","VB","WB","XB","YB","I","","",""],E:"Edge",F:{"0":1694649600,"1":1697155200,"2":1698969600,"3":1701993600,"4":1706227200,"5":1708732800,C:1438128000,L:1447286400,M:1470096000,G:1491868800,N:1508198400,O:1525046400,P:1542067200,Q:1579046400,H:1581033600,R:1586736000,S:1590019200,T:1594857600,U:1598486400,V:1602201600,W:1605830400,X:1611360000,Y:1614816000,Z:1618358400,a:1622073600,b:1626912000,c:1630627200,d:1632441600,e:1634774400,f:1637539200,g:1641427200,h:1643932800,i:1646265600,j:1649635200,k:1651190400,l:1653955200,m:1655942400,n:1659657600,o:1661990400,p:1664755200,q:1666915200,r:1670198400,s:1673481600,t:1675900800,u:1678665600,v:1680825600,w:1683158400,x:1685664000,y:1689897600,z:1692576000,GB:1711152000,HB:1713398400,IB:1715990400,JB:1718841600,KB:1721865600,LB:1724371200,MB:1726704000,NB:1729123200,OB:1731542400,PB:1737417600,QB:1740614400,RB:1741219200,SB:1743984000,TB:1746316800,UB:1748476800,VB:1750896000,WB:1754611200,XB:1756944000,YB:1759363200,I:1761868800},D:{C:"ms",L:"ms",M:"ms",G:"ms",N:"ms",O:"ms",P:"ms"}},C:{A:{"0":0,"1":0.104454,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,xC:0,TC:0,J:0,ZB:0,K:0,D:0,E:0,F:0,A:0,B:0.029844,C:0,L:0,M:0,G:0,N:0,O:0,P:0,aB:0,AB:0,BB:0,CB:0,DB:0,EB:0,FB:0,bB:0,cB:0,dB:0,eB:0,fB:0,gB:0,hB:0,iB:0,jB:0,kB:0,lB:0,mB:0,nB:0,oB:0.094506,pB:0,qB:0,rB:0,sB:0,tB:0,uB:0,vB:0,wB:0,xB:0.009948,yB:0,zB:0,"0B":0,"1B":0,"2B":0,"3B":0,UC:0,"4B":0,VC:0,"5B":0,"6B":0,"7B":0,"8B":0,"9B":0,AC:0,BC:0,CC:0,DC:0,EC:0,FC:0,GC:0,HC:0,IC:0,JC:0,KC:0,LC:0.004974,Q:0,H:0,R:0,WC:0,S:0,T:0,U:0,V:0,W:0,X:0,Y:0,Z:0,a:0,b:0,c:0,d:0,e:0,f:0,g:0,h:0,i:0,j:0,k:0,l:0,m:0,n:0,o:0,p:0,q:0,r:0,s:0,t:0,u:0,v:0,w:0,x:0,y:0.139272,z:0,GB:0,HB:0,IB:0,JB:0,KB:0,LB:0.044766,MB:0,NB:0,OB:0,PB:0,QB:0.054714,RB:0.004974,SB:0.009948,TB:0.009948,UB:0.009948,VB:0.004974,WB:0.004974,XB:0.04974,YB:0.014922,I:0.034818,XC:0.651594,MC:0.57201,YC:0,yC:0,zC:0,"0C":0,"1C":0,"2C":0},B:"moz",C:["xC","TC","1C","2C","J","ZB","K","D","E","F","A","B","C","L","M","G","N","O","P","aB","6","7","8","9","AB","BB","CB","DB","EB","FB","bB","cB","dB","eB","fB","gB","hB","iB","jB","kB","lB","mB","nB","oB","pB","qB","rB","sB","tB","uB","vB","wB","xB","yB","zB","0B","1B","2B","3B","UC","4B","VC","5B","6B","7B","8B","9B","AC","BC","CC","DC","EC","FC","GC","HC","IC","JC","KC","LC","Q","H","R","WC","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","GB","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","VB","WB","XB","YB","I","XC","MC","YC","yC","zC","0C"],E:"Firefox",F:{"0":1693267200,"1":1695686400,"2":1698105600,"3":1700524800,"4":1702944000,"5":1705968000,"6":1361232000,"7":1364860800,"8":1368489600,"9":1372118400,xC:1161648000,TC:1213660800,"1C":1246320000,"2C":1264032000,J:1300752000,ZB:1308614400,K:1313452800,D:1317081600,E:1317081600,F:1320710400,A:1324339200,B:1327968000,C:1331596800,L:1335225600,M:1338854400,G:1342483200,N:1346112000,O:1349740800,P:1353628800,aB:1357603200,AB:1375747200,BB:1379376000,CB:1386633600,DB:1391472000,EB:1395100800,FB:1398729600,bB:1402358400,cB:1405987200,dB:1409616000,eB:1413244800,fB:1417392000,gB:1421107200,hB:1424736000,iB:1428278400,jB:1431475200,kB:1435881600,lB:1439251200,mB:1442880000,nB:1446508800,oB:1450137600,pB:1453852800,qB:1457395200,rB:1461628800,sB:1465257600,tB:1470096000,uB:1474329600,vB:1479168000,wB:1485216000,xB:1488844800,yB:1492560000,zB:1497312000,"0B":1502150400,"1B":1506556800,"2B":1510617600,"3B":1516665600,UC:1520985600,"4B":1525824000,VC:1529971200,"5B":1536105600,"6B":1540252800,"7B":1544486400,"8B":1548720000,"9B":1552953600,AC:1558396800,BC:1562630400,CC:1567468800,DC:1571788800,EC:1575331200,FC:1578355200,GC:1581379200,HC:1583798400,IC:1586304000,JC:1588636800,KC:1591056000,LC:1593475200,Q:1595894400,H:1598313600,R:1600732800,WC:1603152000,S:1605571200,T:1607990400,U:1611619200,V:1614038400,W:1616457600,X:1618790400,Y:1622505600,Z:1626134400,a:1628553600,b:1630972800,c:1633392000,d:1635811200,e:1638835200,f:1641859200,g:1644364800,h:1646697600,i:1649116800,j:1651536000,k:1653955200,l:1656374400,m:1658793600,n:1661212800,o:1663632000,p:1666051200,q:1668470400,r:1670889600,s:1673913600,t:1676332800,u:1678752000,v:1681171200,w:1683590400,x:1686009600,y:1688428800,z:1690848000,GB:1708387200,HB:1710806400,IB:1713225600,JB:1715644800,KB:1718064000,LB:1720483200,MB:1722902400,NB:1725321600,OB:1727740800,PB:1730160000,QB:1732579200,RB:1736208000,SB:1738627200,TB:1741046400,UB:1743465600,VB:1745884800,WB:1748304000,XB:1750723200,YB:1753142400,I:1755561600,XC:1757980800,MC:1760400000,YC:1762819200,yC:null,zC:null,"0C":null}},D:{A:{"0":0.089532,"1":0.144246,"2":0.039792,"3":0.09948,"4":0.094506,"5":0.114402,"6":0,"7":0,"8":0,"9":0,J:0,ZB:0,K:0,D:0,E:0,F:0,A:0,B:0,C:0,L:0,M:0,G:0,N:0,O:0,P:0,aB:0,AB:0,BB:0,CB:0,DB:0,EB:0,FB:0,bB:0,cB:0,dB:0,eB:0,fB:0,gB:0,hB:0,iB:0,jB:0,kB:0.004974,lB:0.004974,mB:0.009948,nB:0.004974,oB:0.004974,pB:0.004974,qB:0.009948,rB:0.004974,sB:0.009948,tB:0.014922,uB:0.014922,vB:0.004974,wB:0.004974,xB:0.009948,yB:0.009948,zB:0.004974,"0B":0.009948,"1B":0.009948,"2B":0.009948,"3B":0.009948,UC:0.004974,"4B":0.004974,VC:0,"5B":0,"6B":0,"7B":0,"8B":0,"9B":0.014922,AC:0,BC:0,CC:0.009948,DC:0.014922,EC:0,FC:0,GC:0,HC:0,IC:0,JC:0,KC:0.019896,LC:0,Q:0.064662,H:0.004974,R:0.039792,S:0.039792,T:0,U:0.004974,V:0.009948,W:0.029844,X:0.004974,Y:0,Z:0,a:0.019896,b:0.019896,c:0.009948,d:0,e:0,f:0,g:0.009948,h:0.039792,i:0.014922,j:0.004974,k:0.009948,l:0.009948,m:0.069636,n:0.029844,o:0.154194,p:0.034818,q:0.014922,r:0.019896,s:0.586932,t:0.114402,u:0.07461,v:2.08908,w:0.04974,x:0.179064,y:0.014922,z:0.054714,GB:0.054714,HB:0.059688,IB:3.33755,JB:6.13792,KB:0.07461,LB:0.114402,MB:0.084558,NB:1.33303,OB:0.159168,PB:0.094506,QB:0.054714,RB:2.59643,SB:0.064662,TB:0.079584,UB:0.253674,VB:0.437712,WB:0.681438,XB:4.47163,YB:9.4506,I:0.134298,XC:0.009948,MC:0,YC:0},B:"webkit",C:["","","","","","","","","J","ZB","K","D","E","F","A","B","C","L","M","G","N","O","P","aB","6","7","8","9","AB","BB","CB","DB","EB","FB","bB","cB","dB","eB","fB","gB","hB","iB","jB","kB","lB","mB","nB","oB","pB","qB","rB","sB","tB","uB","vB","wB","xB","yB","zB","0B","1B","2B","3B","UC","4B","VC","5B","6B","7B","8B","9B","AC","BC","CC","DC","EC","FC","GC","HC","IC","JC","KC","LC","Q","H","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","GB","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","VB","WB","XB","YB","I","XC","MC","YC"],E:"Chrome",F:{"0":1694476800,"1":1696896000,"2":1698710400,"3":1701993600,"4":1705968000,"5":1708387200,"6":1337040000,"7":1340668800,"8":1343692800,"9":1348531200,J:1264377600,ZB:1274745600,K:1283385600,D:1287619200,E:1291248000,F:1296777600,A:1299542400,B:1303862400,C:1307404800,L:1312243200,M:1316131200,G:1316131200,N:1319500800,O:1323734400,P:1328659200,aB:1332892800,AB:1352246400,BB:1357862400,CB:1361404800,DB:1364428800,EB:1369094400,FB:1374105600,bB:1376956800,cB:1384214400,dB:1389657600,eB:1392940800,fB:1397001600,gB:1400544000,hB:1405468800,iB:1409011200,jB:1412640000,kB:1416268800,lB:1421798400,mB:1425513600,nB:1429401600,oB:1432080000,pB:1437523200,qB:1441152000,rB:1444780800,sB:1449014400,tB:1453248000,uB:1456963200,vB:1460592000,wB:1464134400,xB:1469059200,yB:1472601600,zB:1476230400,"0B":1480550400,"1B":1485302400,"2B":1489017600,"3B":1492560000,UC:1496707200,"4B":1500940800,VC:1504569600,"5B":1508198400,"6B":1512518400,"7B":1516752000,"8B":1520294400,"9B":1523923200,AC:1527552000,BC:1532390400,CC:1536019200,DC:1539648000,EC:1543968000,FC:1548720000,GC:1552348800,HC:1555977600,IC:1559606400,JC:1564444800,KC:1568073600,LC:1571702400,Q:1575936000,H:1580860800,R:1586304000,S:1589846400,T:1594684800,U:1598313600,V:1601942400,W:1605571200,X:1611014400,Y:1614556800,Z:1618272000,a:1621987200,b:1626739200,c:1630368000,d:1632268800,e:1634601600,f:1637020800,g:1641340800,h:1643673600,i:1646092800,j:1648512000,k:1650931200,l:1653350400,m:1655769600,n:1659398400,o:1661817600,p:1664236800,q:1666656000,r:1669680000,s:1673308800,t:1675728000,u:1678147200,v:1680566400,w:1682985600,x:1685404800,y:1689724800,z:1692057600,GB:1710806400,HB:1713225600,IB:1715644800,JB:1718064000,KB:1721174400,LB:1724112000,MB:1726531200,NB:1728950400,OB:1731369600,PB:1736812800,QB:1738627200,RB:1741046400,SB:1743465600,TB:1745884800,UB:1748304000,VB:1750723200,WB:1754352000,XB:1756771200,YB:1759190400,I:1761609600,XC:null,MC:null,YC:null}},E:{A:{J:0,ZB:0,K:0,D:0,E:0,F:0,A:0,B:0,C:0,L:0,M:0.009948,G:0,"3C":0,ZC:0,"4C":0,"5C":0,"6C":0,"7C":0,aC:0,NC:0,OC:0,"8C":0.019896,"9C":0.02487,AD:0.014922,bC:0,cC:0.004974,PC:0.004974,BD:0.084558,QC:0,dC:0.009948,eC:0.009948,fC:0.019896,gC:0.009948,hC:0.009948,CD:0.12435,RC:0.004974,iC:0.089532,jC:0.009948,kC:0.009948,lC:0.019896,mC:0.034818,DD:0.12435,SC:0.014922,nC:0.02487,oC:0.014922,pC:0.04974,qC:0.029844,rC:0.114402,sC:0.308388,tC:0.009948,ED:0,FD:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","3C","ZC","J","ZB","4C","K","5C","D","6C","E","F","7C","A","aC","B","NC","C","OC","L","8C","M","9C","G","AD","bC","cC","PC","BD","QC","dC","eC","fC","gC","hC","CD","RC","iC","jC","kC","lC","mC","DD","SC","nC","oC","pC","qC","rC","sC","tC","ED","FD",""],E:"Safari",F:{"3C":1205798400,ZC:1226534400,J:1244419200,ZB:1275868800,"4C":1311120000,K:1343174400,"5C":1382400000,D:1382400000,"6C":1410998400,E:1413417600,F:1443657600,"7C":1458518400,A:1474329600,aC:1490572800,B:1505779200,NC:1522281600,C:1537142400,OC:1553472000,L:1568851200,"8C":1585008000,M:1600214400,"9C":1619395200,G:1632096000,AD:1635292800,bC:1639353600,cC:1647216000,PC:1652745600,BD:1658275200,QC:1662940800,dC:1666569600,eC:1670889600,fC:1674432000,gC:1679875200,hC:1684368000,CD:1690156800,RC:1695686400,iC:1698192000,jC:1702252800,kC:1705881600,lC:1709596800,mC:1715558400,DD:1722211200,SC:1726444800,nC:1730073600,oC:1733875200,pC:1737936000,qC:1743379200,rC:1747008000,sC:1757894400,tC:1762128000,ED:null,FD:null}},F:{A:{"0":0,"1":0,"2":0,"3":0.069636,"4":0.084558,"5":0.701334,"6":0,"7":0,"8":0,"9":0,F:0,B:0,C:0,G:0,N:0,O:0,P:0,aB:0,AB:0,BB:0,CB:0,DB:0,EB:0,FB:0,bB:0,cB:0,dB:0,eB:0,fB:0,gB:0,hB:0,iB:0,jB:0,kB:0,lB:0,mB:0,nB:0,oB:0,pB:0,qB:0,rB:0,sB:0,tB:0,uB:0,vB:0,wB:0,xB:0,yB:0,zB:0,"0B":0,"1B":0,"2B":0,"3B":0,"4B":0,"5B":0,"6B":0,"7B":0,"8B":0,"9B":0,AC:0,BC:0,CC:0,DC:0,EC:0,FC:0,GC:0,HC:0,IC:0,JC:0,KC:0,LC:0,Q:0,H:0,R:0,WC:0,S:0,T:0,U:0,V:0,W:0,X:0,Y:0,Z:0,a:0.02487,b:0.044766,c:0,d:0,e:0.02487,f:0,g:0,h:0,i:0,j:0,k:0,l:0,m:0,n:0,o:0,p:0,q:0,r:0,s:0,t:0,u:0,v:0,w:0,x:0,y:0,z:0,GD:0,HD:0,ID:0,JD:0,NC:0,uC:0,KD:0,OC:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","F","GD","HD","ID","JD","B","NC","uC","KD","C","OC","G","N","O","P","aB","6","7","8","9","AB","BB","CB","DB","EB","FB","bB","cB","dB","eB","fB","gB","hB","iB","jB","kB","lB","mB","nB","oB","pB","qB","rB","sB","tB","uB","vB","wB","xB","yB","zB","0B","1B","2B","3B","4B","5B","6B","7B","8B","9B","AC","BC","CC","DC","EC","FC","GC","HC","IC","JC","KC","LC","Q","H","R","WC","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","","",""],E:"Opera",F:{"0":1739404800,"1":1744675200,"2":1747094400,"3":1751414400,"4":1756339200,"5":1757548800,"6":1393891200,"7":1399334400,"8":1401753600,"9":1405987200,F:1150761600,GD:1223424000,HD:1251763200,ID:1267488000,JD:1277942400,B:1292457600,NC:1302566400,uC:1309219200,KD:1323129600,C:1323129600,OC:1352073600,G:1372723200,N:1377561600,O:1381104000,P:1386288000,aB:1390867200,AB:1409616000,BB:1413331200,CB:1417132800,DB:1422316800,EB:1425945600,FB:1430179200,bB:1433808000,cB:1438646400,dB:1442448000,eB:1445904000,fB:1449100800,gB:1454371200,hB:1457308800,iB:1462320000,jB:1465344000,kB:1470096000,lB:1474329600,mB:1477267200,nB:1481587200,oB:1486425600,pB:1490054400,qB:1494374400,rB:1498003200,sB:1502236800,tB:1506470400,uB:1510099200,vB:1515024000,wB:1517961600,xB:1521676800,yB:1525910400,zB:1530144000,"0B":1534982400,"1B":1537833600,"2B":1543363200,"3B":1548201600,"4B":1554768000,"5B":1561593600,"6B":1566259200,"7B":1570406400,"8B":1573689600,"9B":1578441600,AC:1583971200,BC:1587513600,CC:1592956800,DC:1595894400,EC:1600128000,FC:1603238400,GC:1613520000,HC:1612224000,IC:1616544000,JC:1619568000,KC:1623715200,LC:1627948800,Q:1631577600,H:1633392000,R:1635984000,WC:1638403200,S:1642550400,T:1644969600,U:1647993600,V:1650412800,W:1652745600,X:1654646400,Y:1657152000,Z:1660780800,a:1663113600,b:1668816000,c:1668643200,d:1671062400,e:1675209600,f:1677024000,g:1679529600,h:1681948800,i:1684195200,j:1687219200,k:1690329600,l:1692748800,m:1696204800,n:1699920000,o:1699920000,p:1702944000,q:1707264000,r:1710115200,s:1711497600,t:1716336000,u:1719273600,v:1721088000,w:1724284800,x:1727222400,y:1732665600,z:1736294400},D:{F:"o",B:"o",C:"o",GD:"o",HD:"o",ID:"o",JD:"o",NC:"o",uC:"o",KD:"o",OC:"o"}},G:{A:{E:0,ZC:0,LD:0,vC:0.00108483,MD:0,ND:0.00433931,OD:0.00325448,PD:0,QD:0,RD:0.00976344,SD:0.00108483,TD:0.0184421,UD:0.273376,VD:0.00650896,WD:0.00216965,XD:0.0531565,YD:0,ZD:0.00542413,aD:0.00216965,bD:0.00867861,cD:0.0184421,dD:0.0195269,eD:0.0184421,bC:0.0141027,cC:0.0162724,PC:0.0184421,fD:0.240832,QC:0.0325448,dC:0.0607503,eC:0.03146,fC:0.056411,gC:0.0141027,hC:0.024951,gD:0.322194,RC:0.0227814,iC:0.0347145,jC:0.024951,kC:0.0368841,lC:0.0650896,mC:0.111737,hD:0.28097,SC:0.0640048,nC:0.132349,oC:0.0715986,pC:0.229983,qC:0.118246,rC:6.02947,sC:0.744191,tC:0.0271207},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","ZC","LD","vC","MD","ND","OD","E","PD","QD","RD","SD","TD","UD","VD","WD","XD","YD","ZD","aD","bD","cD","dD","eD","bC","cC","PC","fD","QC","dC","eC","fC","gC","hC","gD","RC","iC","jC","kC","lC","mC","hD","SC","nC","oC","pC","qC","rC","sC","tC","",""],E:"Safari on iOS",F:{ZC:1270252800,LD:1283904000,vC:1299628800,MD:1331078400,ND:1359331200,OD:1394409600,E:1410912000,PD:1413763200,QD:1442361600,RD:1458518400,SD:1473724800,TD:1490572800,UD:1505779200,VD:1522281600,WD:1537142400,XD:1553472000,YD:1568851200,ZD:1572220800,aD:1580169600,bD:1585008000,cD:1600214400,dD:1619395200,eD:1632096000,bC:1639353600,cC:1647216000,PC:1652659200,fD:1658275200,QC:1662940800,dC:1666569600,eC:1670889600,fC:1674432000,gC:1679875200,hC:1684368000,gD:1690156800,RC:1694995200,iC:1698192000,jC:1702252800,kC:1705881600,lC:1709596800,mC:1715558400,hD:1722211200,SC:1726444800,nC:1730073600,oC:1733875200,pC:1737936000,qC:1743379200,rC:1747008000,sC:1757894400,tC:null}},H:{A:{iD:0.03},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","iD","","",""],E:"Opera Mini",F:{iD:1426464000}},I:{A:{TC:0,J:0,I:0.486936,jD:0,kD:0,lD:0,mD:0,vC:0.0000975238,nD:0,oD:0.000243809},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","jD","kD","lD","TC","J","mD","vC","nD","oD","I","","",""],E:"Android Browser",F:{jD:1256515200,kD:1274313600,lD:1291593600,TC:1298332800,J:1318896000,mD:1341792000,vC:1374624000,nD:1386547200,oD:1401667200,I:1761609600}},J:{A:{D:0,A:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","D","A","","",""],E:"Blackberry Browser",F:{D:1325376000,A:1359504000}},K:{A:{A:0,B:0,C:0,H:0.739131,NC:0,uC:0,OC:0},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","NC","uC","C","OC","H","","",""],E:"Opera Mobile",F:{A:1287100800,B:1300752000,NC:1314835200,uC:1318291200,C:1330300800,OC:1349740800,H:1709769600},D:{H:"webkit"}},L:{A:{I:39.0274},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","I","","",""],E:"Chrome for Android",F:{I:1761609600}},M:{A:{MC:0.291566},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","MC","","",""],E:"Firefox for Android",F:{MC:1760400000}},N:{A:{A:0,B:0},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","","",""],E:"IE Mobile",F:{A:1340150400,B:1353456000}},O:{A:{PC:0.547943},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","PC","","",""],E:"UC Browser for Android",F:{PC:1710115200},D:{PC:"webkit"}},P:{A:{"6":0,"7":0.0108816,"8":0.0108816,"9":0.0217632,J:0,AB:0.0217632,BB:0.0217632,CB:0.0435265,DB:0.0544081,EB:1.4799,FB:0.119698,pD:0,qD:0,rD:0,sD:0,tD:0,aC:0,uD:0,vD:0,wD:0,xD:0,yD:0,QC:0,RC:0,SC:0,zD:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","J","pD","qD","rD","sD","tD","aC","uD","vD","wD","xD","yD","QC","RC","SC","zD","6","7","8","9","AB","BB","CB","DB","EB","FB","","",""],E:"Samsung Internet",F:{"6":1677369600,"7":1684454400,"8":1689292800,"9":1697587200,J:1461024000,pD:1481846400,qD:1509408000,rD:1528329600,sD:1546128000,tD:1554163200,aC:1567900800,uD:1582588800,vD:1593475200,wD:1605657600,xD:1618531200,yD:1629072000,QC:1640736000,RC:1651708800,SC:1659657600,zD:1667260800,AB:1711497600,BB:1715126400,CB:1717718400,DB:1725667200,EB:1746057600,FB:1761264000}},Q:{A:{"0D":0.135729},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","0D","","",""],E:"QQ Browser",F:{"0D":1710288000}},R:{A:{"1D":0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","1D","","",""],E:"Baidu Browser",F:{"1D":1710201600}},S:{A:{"2D":0.015081,"3D":0},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","2D","3D","","",""],E:"KaiOS Browser",F:{"2D":1527811200,"3D":1631664000}}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/browserVersions.js b/build_vtk_bundle/node_modules/caniuse-lite/data/browserVersions.js deleted file mode 100644 index 937e8711..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/browserVersions.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={"0":"117","1":"118","2":"119","3":"120","4":"121","5":"122","6":"20","7":"21","8":"22","9":"23",A:"10",B:"11",C:"12",D:"7",E:"8",F:"9",G:"15",H:"80",I:"142",J:"4",K:"6",L:"13",M:"14",N:"16",O:"17",P:"18",Q:"79",R:"81",S:"83",T:"84",U:"85",V:"86",W:"87",X:"88",Y:"89",Z:"90",a:"91",b:"92",c:"93",d:"94",e:"95",f:"96",g:"97",h:"98",i:"99",j:"100",k:"101",l:"102",m:"103",n:"104",o:"105",p:"106",q:"107",r:"108",s:"109",t:"110",u:"111",v:"112",w:"113",x:"114",y:"115",z:"116",AB:"24",BB:"25",CB:"26",DB:"27",EB:"28",FB:"29",GB:"123",HB:"124",IB:"125",JB:"126",KB:"127",LB:"128",MB:"129",NB:"130",OB:"131",PB:"132",QB:"133",RB:"134",SB:"135",TB:"136",UB:"137",VB:"138",WB:"139",XB:"140",YB:"141",ZB:"5",aB:"19",bB:"30",cB:"31",dB:"32",eB:"33",fB:"34",gB:"35",hB:"36",iB:"37",jB:"38",kB:"39",lB:"40",mB:"41",nB:"42",oB:"43",pB:"44",qB:"45",rB:"46",sB:"47",tB:"48",uB:"49",vB:"50",wB:"51",xB:"52",yB:"53",zB:"54","0B":"55","1B":"56","2B":"57","3B":"58","4B":"60","5B":"62","6B":"63","7B":"64","8B":"65","9B":"66",AC:"67",BC:"68",CC:"69",DC:"70",EC:"71",FC:"72",GC:"73",HC:"74",IC:"75",JC:"76",KC:"77",LC:"78",MC:"144",NC:"11.1",OC:"12.1",PC:"15.5",QC:"16.0",RC:"17.0",SC:"18.0",TC:"3",UC:"59",VC:"61",WC:"82",XC:"143",YC:"145",ZC:"3.2",aC:"10.1",bC:"15.2-15.3",cC:"15.4",dC:"16.1",eC:"16.2",fC:"16.3",gC:"16.4",hC:"16.5",iC:"17.1",jC:"17.2",kC:"17.3",lC:"17.4",mC:"17.5",nC:"18.1",oC:"18.2",pC:"18.3",qC:"18.4",rC:"18.5-18.6",sC:"26.0",tC:"26.1",uC:"11.5",vC:"4.2-4.3",wC:"5.5",xC:"2",yC:"146",zC:"147","0C":"148","1C":"3.5","2C":"3.6","3C":"3.1","4C":"5.1","5C":"6.1","6C":"7.1","7C":"9.1","8C":"13.1","9C":"14.1",AD:"15.1",BD:"15.6",CD:"16.6",DD:"17.6",ED:"26.2",FD:"TP",GD:"9.5-9.6",HD:"10.0-10.1",ID:"10.5",JD:"10.6",KD:"11.6",LD:"4.0-4.1",MD:"5.0-5.1",ND:"6.0-6.1",OD:"7.0-7.1",PD:"8.1-8.4",QD:"9.0-9.2",RD:"9.3",SD:"10.0-10.2",TD:"10.3",UD:"11.0-11.2",VD:"11.3-11.4",WD:"12.0-12.1",XD:"12.2-12.5",YD:"13.0-13.1",ZD:"13.2",aD:"13.3",bD:"13.4-13.7",cD:"14.0-14.4",dD:"14.5-14.8",eD:"15.0-15.1",fD:"15.6-15.8",gD:"16.6-16.7",hD:"17.6-17.7",iD:"all",jD:"2.1",kD:"2.2",lD:"2.3",mD:"4.1",nD:"4.4",oD:"4.4.3-4.4.4",pD:"5.0-5.4",qD:"6.2-6.4",rD:"7.2-7.4",sD:"8.2",tD:"9.2",uD:"11.1-11.2",vD:"12.0",wD:"13.0",xD:"14.0",yD:"15.0",zD:"19.0","0D":"14.9","1D":"13.52","2D":"2.5","3D":"3.0-3.1"}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/browsers.js b/build_vtk_bundle/node_modules/caniuse-lite/data/browsers.js deleted file mode 100644 index 04fbb50f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/browsers.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:"ie",B:"edge",C:"firefox",D:"chrome",E:"safari",F:"opera",G:"ios_saf",H:"op_mini",I:"android",J:"bb",K:"op_mob",L:"and_chr",M:"and_ff",N:"ie_mob",O:"and_uc",P:"samsung",Q:"and_qq",R:"baidu",S:"kaios"}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features.js deleted file mode 100644 index 69eed91f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={"aac":require("./features/aac"),"abortcontroller":require("./features/abortcontroller"),"ac3-ec3":require("./features/ac3-ec3"),"accelerometer":require("./features/accelerometer"),"addeventlistener":require("./features/addeventlistener"),"alternate-stylesheet":require("./features/alternate-stylesheet"),"ambient-light":require("./features/ambient-light"),"apng":require("./features/apng"),"array-find-index":require("./features/array-find-index"),"array-find":require("./features/array-find"),"array-flat":require("./features/array-flat"),"array-includes":require("./features/array-includes"),"arrow-functions":require("./features/arrow-functions"),"asmjs":require("./features/asmjs"),"async-clipboard":require("./features/async-clipboard"),"async-functions":require("./features/async-functions"),"atob-btoa":require("./features/atob-btoa"),"audio-api":require("./features/audio-api"),"audio":require("./features/audio"),"audiotracks":require("./features/audiotracks"),"autofocus":require("./features/autofocus"),"auxclick":require("./features/auxclick"),"av1":require("./features/av1"),"avif":require("./features/avif"),"background-attachment":require("./features/background-attachment"),"background-clip-text":require("./features/background-clip-text"),"background-img-opts":require("./features/background-img-opts"),"background-position-x-y":require("./features/background-position-x-y"),"background-repeat-round-space":require("./features/background-repeat-round-space"),"background-sync":require("./features/background-sync"),"battery-status":require("./features/battery-status"),"beacon":require("./features/beacon"),"beforeafterprint":require("./features/beforeafterprint"),"bigint":require("./features/bigint"),"blobbuilder":require("./features/blobbuilder"),"bloburls":require("./features/bloburls"),"border-image":require("./features/border-image"),"border-radius":require("./features/border-radius"),"broadcastchannel":require("./features/broadcastchannel"),"brotli":require("./features/brotli"),"calc":require("./features/calc"),"canvas-blending":require("./features/canvas-blending"),"canvas-text":require("./features/canvas-text"),"canvas":require("./features/canvas"),"ch-unit":require("./features/ch-unit"),"chacha20-poly1305":require("./features/chacha20-poly1305"),"channel-messaging":require("./features/channel-messaging"),"childnode-remove":require("./features/childnode-remove"),"classlist":require("./features/classlist"),"client-hints-dpr-width-viewport":require("./features/client-hints-dpr-width-viewport"),"clipboard":require("./features/clipboard"),"colr-v1":require("./features/colr-v1"),"colr":require("./features/colr"),"comparedocumentposition":require("./features/comparedocumentposition"),"console-basic":require("./features/console-basic"),"console-time":require("./features/console-time"),"const":require("./features/const"),"constraint-validation":require("./features/constraint-validation"),"contenteditable":require("./features/contenteditable"),"contentsecuritypolicy":require("./features/contentsecuritypolicy"),"contentsecuritypolicy2":require("./features/contentsecuritypolicy2"),"cookie-store-api":require("./features/cookie-store-api"),"cors":require("./features/cors"),"createimagebitmap":require("./features/createimagebitmap"),"credential-management":require("./features/credential-management"),"cross-document-view-transitions":require("./features/cross-document-view-transitions"),"cryptography":require("./features/cryptography"),"css-all":require("./features/css-all"),"css-anchor-positioning":require("./features/css-anchor-positioning"),"css-animation":require("./features/css-animation"),"css-any-link":require("./features/css-any-link"),"css-appearance":require("./features/css-appearance"),"css-at-counter-style":require("./features/css-at-counter-style"),"css-autofill":require("./features/css-autofill"),"css-backdrop-filter":require("./features/css-backdrop-filter"),"css-background-offsets":require("./features/css-background-offsets"),"css-backgroundblendmode":require("./features/css-backgroundblendmode"),"css-boxdecorationbreak":require("./features/css-boxdecorationbreak"),"css-boxshadow":require("./features/css-boxshadow"),"css-canvas":require("./features/css-canvas"),"css-caret-color":require("./features/css-caret-color"),"css-cascade-layers":require("./features/css-cascade-layers"),"css-cascade-scope":require("./features/css-cascade-scope"),"css-case-insensitive":require("./features/css-case-insensitive"),"css-clip-path":require("./features/css-clip-path"),"css-color-adjust":require("./features/css-color-adjust"),"css-color-function":require("./features/css-color-function"),"css-conic-gradients":require("./features/css-conic-gradients"),"css-container-queries-style":require("./features/css-container-queries-style"),"css-container-queries":require("./features/css-container-queries"),"css-container-query-units":require("./features/css-container-query-units"),"css-containment":require("./features/css-containment"),"css-content-visibility":require("./features/css-content-visibility"),"css-counters":require("./features/css-counters"),"css-crisp-edges":require("./features/css-crisp-edges"),"css-cross-fade":require("./features/css-cross-fade"),"css-default-pseudo":require("./features/css-default-pseudo"),"css-descendant-gtgt":require("./features/css-descendant-gtgt"),"css-deviceadaptation":require("./features/css-deviceadaptation"),"css-dir-pseudo":require("./features/css-dir-pseudo"),"css-display-contents":require("./features/css-display-contents"),"css-element-function":require("./features/css-element-function"),"css-env-function":require("./features/css-env-function"),"css-exclusions":require("./features/css-exclusions"),"css-featurequeries":require("./features/css-featurequeries"),"css-file-selector-button":require("./features/css-file-selector-button"),"css-filter-function":require("./features/css-filter-function"),"css-filters":require("./features/css-filters"),"css-first-letter":require("./features/css-first-letter"),"css-first-line":require("./features/css-first-line"),"css-fixed":require("./features/css-fixed"),"css-focus-visible":require("./features/css-focus-visible"),"css-focus-within":require("./features/css-focus-within"),"css-font-palette":require("./features/css-font-palette"),"css-font-rendering-controls":require("./features/css-font-rendering-controls"),"css-font-stretch":require("./features/css-font-stretch"),"css-gencontent":require("./features/css-gencontent"),"css-gradients":require("./features/css-gradients"),"css-grid-animation":require("./features/css-grid-animation"),"css-grid":require("./features/css-grid"),"css-hanging-punctuation":require("./features/css-hanging-punctuation"),"css-has":require("./features/css-has"),"css-hyphens":require("./features/css-hyphens"),"css-if":require("./features/css-if"),"css-image-orientation":require("./features/css-image-orientation"),"css-image-set":require("./features/css-image-set"),"css-in-out-of-range":require("./features/css-in-out-of-range"),"css-indeterminate-pseudo":require("./features/css-indeterminate-pseudo"),"css-initial-letter":require("./features/css-initial-letter"),"css-initial-value":require("./features/css-initial-value"),"css-lch-lab":require("./features/css-lch-lab"),"css-letter-spacing":require("./features/css-letter-spacing"),"css-line-clamp":require("./features/css-line-clamp"),"css-logical-props":require("./features/css-logical-props"),"css-marker-pseudo":require("./features/css-marker-pseudo"),"css-masks":require("./features/css-masks"),"css-matches-pseudo":require("./features/css-matches-pseudo"),"css-math-functions":require("./features/css-math-functions"),"css-media-interaction":require("./features/css-media-interaction"),"css-media-range-syntax":require("./features/css-media-range-syntax"),"css-media-resolution":require("./features/css-media-resolution"),"css-media-scripting":require("./features/css-media-scripting"),"css-mediaqueries":require("./features/css-mediaqueries"),"css-mixblendmode":require("./features/css-mixblendmode"),"css-module-scripts":require("./features/css-module-scripts"),"css-motion-paths":require("./features/css-motion-paths"),"css-namespaces":require("./features/css-namespaces"),"css-nesting":require("./features/css-nesting"),"css-not-sel-list":require("./features/css-not-sel-list"),"css-nth-child-of":require("./features/css-nth-child-of"),"css-opacity":require("./features/css-opacity"),"css-optional-pseudo":require("./features/css-optional-pseudo"),"css-overflow-anchor":require("./features/css-overflow-anchor"),"css-overflow-overlay":require("./features/css-overflow-overlay"),"css-overflow":require("./features/css-overflow"),"css-overscroll-behavior":require("./features/css-overscroll-behavior"),"css-page-break":require("./features/css-page-break"),"css-paged-media":require("./features/css-paged-media"),"css-paint-api":require("./features/css-paint-api"),"css-placeholder-shown":require("./features/css-placeholder-shown"),"css-placeholder":require("./features/css-placeholder"),"css-print-color-adjust":require("./features/css-print-color-adjust"),"css-read-only-write":require("./features/css-read-only-write"),"css-rebeccapurple":require("./features/css-rebeccapurple"),"css-reflections":require("./features/css-reflections"),"css-regions":require("./features/css-regions"),"css-relative-colors":require("./features/css-relative-colors"),"css-repeating-gradients":require("./features/css-repeating-gradients"),"css-resize":require("./features/css-resize"),"css-revert-value":require("./features/css-revert-value"),"css-rrggbbaa":require("./features/css-rrggbbaa"),"css-scroll-behavior":require("./features/css-scroll-behavior"),"css-scrollbar":require("./features/css-scrollbar"),"css-sel2":require("./features/css-sel2"),"css-sel3":require("./features/css-sel3"),"css-selection":require("./features/css-selection"),"css-shapes":require("./features/css-shapes"),"css-snappoints":require("./features/css-snappoints"),"css-sticky":require("./features/css-sticky"),"css-subgrid":require("./features/css-subgrid"),"css-supports-api":require("./features/css-supports-api"),"css-table":require("./features/css-table"),"css-text-align-last":require("./features/css-text-align-last"),"css-text-box-trim":require("./features/css-text-box-trim"),"css-text-indent":require("./features/css-text-indent"),"css-text-justify":require("./features/css-text-justify"),"css-text-orientation":require("./features/css-text-orientation"),"css-text-spacing":require("./features/css-text-spacing"),"css-text-wrap-balance":require("./features/css-text-wrap-balance"),"css-textshadow":require("./features/css-textshadow"),"css-touch-action":require("./features/css-touch-action"),"css-transitions":require("./features/css-transitions"),"css-unicode-bidi":require("./features/css-unicode-bidi"),"css-unset-value":require("./features/css-unset-value"),"css-variables":require("./features/css-variables"),"css-when-else":require("./features/css-when-else"),"css-widows-orphans":require("./features/css-widows-orphans"),"css-width-stretch":require("./features/css-width-stretch"),"css-writing-mode":require("./features/css-writing-mode"),"css-zoom":require("./features/css-zoom"),"css3-attr":require("./features/css3-attr"),"css3-boxsizing":require("./features/css3-boxsizing"),"css3-colors":require("./features/css3-colors"),"css3-cursors-grab":require("./features/css3-cursors-grab"),"css3-cursors-newer":require("./features/css3-cursors-newer"),"css3-cursors":require("./features/css3-cursors"),"css3-tabsize":require("./features/css3-tabsize"),"currentcolor":require("./features/currentcolor"),"custom-elements":require("./features/custom-elements"),"custom-elementsv1":require("./features/custom-elementsv1"),"customevent":require("./features/customevent"),"datalist":require("./features/datalist"),"dataset":require("./features/dataset"),"datauri":require("./features/datauri"),"date-tolocaledatestring":require("./features/date-tolocaledatestring"),"declarative-shadow-dom":require("./features/declarative-shadow-dom"),"decorators":require("./features/decorators"),"details":require("./features/details"),"deviceorientation":require("./features/deviceorientation"),"devicepixelratio":require("./features/devicepixelratio"),"dialog":require("./features/dialog"),"dispatchevent":require("./features/dispatchevent"),"dnssec":require("./features/dnssec"),"do-not-track":require("./features/do-not-track"),"document-currentscript":require("./features/document-currentscript"),"document-evaluate-xpath":require("./features/document-evaluate-xpath"),"document-execcommand":require("./features/document-execcommand"),"document-policy":require("./features/document-policy"),"document-scrollingelement":require("./features/document-scrollingelement"),"documenthead":require("./features/documenthead"),"dom-manip-convenience":require("./features/dom-manip-convenience"),"dom-range":require("./features/dom-range"),"domcontentloaded":require("./features/domcontentloaded"),"dommatrix":require("./features/dommatrix"),"download":require("./features/download"),"dragndrop":require("./features/dragndrop"),"element-closest":require("./features/element-closest"),"element-from-point":require("./features/element-from-point"),"element-scroll-methods":require("./features/element-scroll-methods"),"eme":require("./features/eme"),"eot":require("./features/eot"),"es5":require("./features/es5"),"es6-class":require("./features/es6-class"),"es6-generators":require("./features/es6-generators"),"es6-module-dynamic-import":require("./features/es6-module-dynamic-import"),"es6-module":require("./features/es6-module"),"es6-number":require("./features/es6-number"),"es6-string-includes":require("./features/es6-string-includes"),"es6":require("./features/es6"),"eventsource":require("./features/eventsource"),"extended-system-fonts":require("./features/extended-system-fonts"),"feature-policy":require("./features/feature-policy"),"fetch":require("./features/fetch"),"fieldset-disabled":require("./features/fieldset-disabled"),"fileapi":require("./features/fileapi"),"filereader":require("./features/filereader"),"filereadersync":require("./features/filereadersync"),"filesystem":require("./features/filesystem"),"flac":require("./features/flac"),"flexbox-gap":require("./features/flexbox-gap"),"flexbox":require("./features/flexbox"),"flow-root":require("./features/flow-root"),"focusin-focusout-events":require("./features/focusin-focusout-events"),"font-family-system-ui":require("./features/font-family-system-ui"),"font-feature":require("./features/font-feature"),"font-kerning":require("./features/font-kerning"),"font-loading":require("./features/font-loading"),"font-size-adjust":require("./features/font-size-adjust"),"font-smooth":require("./features/font-smooth"),"font-unicode-range":require("./features/font-unicode-range"),"font-variant-alternates":require("./features/font-variant-alternates"),"font-variant-numeric":require("./features/font-variant-numeric"),"fontface":require("./features/fontface"),"form-attribute":require("./features/form-attribute"),"form-submit-attributes":require("./features/form-submit-attributes"),"form-validation":require("./features/form-validation"),"forms":require("./features/forms"),"fullscreen":require("./features/fullscreen"),"gamepad":require("./features/gamepad"),"geolocation":require("./features/geolocation"),"getboundingclientrect":require("./features/getboundingclientrect"),"getcomputedstyle":require("./features/getcomputedstyle"),"getelementsbyclassname":require("./features/getelementsbyclassname"),"getrandomvalues":require("./features/getrandomvalues"),"gyroscope":require("./features/gyroscope"),"hardwareconcurrency":require("./features/hardwareconcurrency"),"hashchange":require("./features/hashchange"),"heif":require("./features/heif"),"hevc":require("./features/hevc"),"hidden":require("./features/hidden"),"high-resolution-time":require("./features/high-resolution-time"),"history":require("./features/history"),"html-media-capture":require("./features/html-media-capture"),"html5semantic":require("./features/html5semantic"),"http-live-streaming":require("./features/http-live-streaming"),"http2":require("./features/http2"),"http3":require("./features/http3"),"iframe-sandbox":require("./features/iframe-sandbox"),"iframe-seamless":require("./features/iframe-seamless"),"iframe-srcdoc":require("./features/iframe-srcdoc"),"imagecapture":require("./features/imagecapture"),"ime":require("./features/ime"),"img-naturalwidth-naturalheight":require("./features/img-naturalwidth-naturalheight"),"import-maps":require("./features/import-maps"),"imports":require("./features/imports"),"indeterminate-checkbox":require("./features/indeterminate-checkbox"),"indexeddb":require("./features/indexeddb"),"indexeddb2":require("./features/indexeddb2"),"inline-block":require("./features/inline-block"),"innertext":require("./features/innertext"),"input-autocomplete-onoff":require("./features/input-autocomplete-onoff"),"input-color":require("./features/input-color"),"input-datetime":require("./features/input-datetime"),"input-email-tel-url":require("./features/input-email-tel-url"),"input-event":require("./features/input-event"),"input-file-accept":require("./features/input-file-accept"),"input-file-directory":require("./features/input-file-directory"),"input-file-multiple":require("./features/input-file-multiple"),"input-inputmode":require("./features/input-inputmode"),"input-minlength":require("./features/input-minlength"),"input-number":require("./features/input-number"),"input-pattern":require("./features/input-pattern"),"input-placeholder":require("./features/input-placeholder"),"input-range":require("./features/input-range"),"input-search":require("./features/input-search"),"input-selection":require("./features/input-selection"),"insert-adjacent":require("./features/insert-adjacent"),"insertadjacenthtml":require("./features/insertadjacenthtml"),"internationalization":require("./features/internationalization"),"intersectionobserver-v2":require("./features/intersectionobserver-v2"),"intersectionobserver":require("./features/intersectionobserver"),"intl-pluralrules":require("./features/intl-pluralrules"),"intrinsic-width":require("./features/intrinsic-width"),"jpeg2000":require("./features/jpeg2000"),"jpegxl":require("./features/jpegxl"),"jpegxr":require("./features/jpegxr"),"js-regexp-lookbehind":require("./features/js-regexp-lookbehind"),"json":require("./features/json"),"justify-content-space-evenly":require("./features/justify-content-space-evenly"),"kerning-pairs-ligatures":require("./features/kerning-pairs-ligatures"),"keyboardevent-charcode":require("./features/keyboardevent-charcode"),"keyboardevent-code":require("./features/keyboardevent-code"),"keyboardevent-getmodifierstate":require("./features/keyboardevent-getmodifierstate"),"keyboardevent-key":require("./features/keyboardevent-key"),"keyboardevent-location":require("./features/keyboardevent-location"),"keyboardevent-which":require("./features/keyboardevent-which"),"lazyload":require("./features/lazyload"),"let":require("./features/let"),"link-icon-png":require("./features/link-icon-png"),"link-icon-svg":require("./features/link-icon-svg"),"link-rel-dns-prefetch":require("./features/link-rel-dns-prefetch"),"link-rel-modulepreload":require("./features/link-rel-modulepreload"),"link-rel-preconnect":require("./features/link-rel-preconnect"),"link-rel-prefetch":require("./features/link-rel-prefetch"),"link-rel-preload":require("./features/link-rel-preload"),"link-rel-prerender":require("./features/link-rel-prerender"),"loading-lazy-attr":require("./features/loading-lazy-attr"),"localecompare":require("./features/localecompare"),"magnetometer":require("./features/magnetometer"),"matchesselector":require("./features/matchesselector"),"matchmedia":require("./features/matchmedia"),"mathml":require("./features/mathml"),"maxlength":require("./features/maxlength"),"mdn-css-backdrop-pseudo-element":require("./features/mdn-css-backdrop-pseudo-element"),"mdn-css-unicode-bidi-isolate-override":require("./features/mdn-css-unicode-bidi-isolate-override"),"mdn-css-unicode-bidi-isolate":require("./features/mdn-css-unicode-bidi-isolate"),"mdn-css-unicode-bidi-plaintext":require("./features/mdn-css-unicode-bidi-plaintext"),"mdn-text-decoration-color":require("./features/mdn-text-decoration-color"),"mdn-text-decoration-line":require("./features/mdn-text-decoration-line"),"mdn-text-decoration-shorthand":require("./features/mdn-text-decoration-shorthand"),"mdn-text-decoration-style":require("./features/mdn-text-decoration-style"),"media-fragments":require("./features/media-fragments"),"mediacapture-fromelement":require("./features/mediacapture-fromelement"),"mediarecorder":require("./features/mediarecorder"),"mediasource":require("./features/mediasource"),"menu":require("./features/menu"),"meta-theme-color":require("./features/meta-theme-color"),"meter":require("./features/meter"),"midi":require("./features/midi"),"minmaxwh":require("./features/minmaxwh"),"mp3":require("./features/mp3"),"mpeg-dash":require("./features/mpeg-dash"),"mpeg4":require("./features/mpeg4"),"multibackgrounds":require("./features/multibackgrounds"),"multicolumn":require("./features/multicolumn"),"mutation-events":require("./features/mutation-events"),"mutationobserver":require("./features/mutationobserver"),"namevalue-storage":require("./features/namevalue-storage"),"native-filesystem-api":require("./features/native-filesystem-api"),"nav-timing":require("./features/nav-timing"),"netinfo":require("./features/netinfo"),"notifications":require("./features/notifications"),"object-entries":require("./features/object-entries"),"object-fit":require("./features/object-fit"),"object-observe":require("./features/object-observe"),"object-values":require("./features/object-values"),"objectrtc":require("./features/objectrtc"),"offline-apps":require("./features/offline-apps"),"offscreencanvas":require("./features/offscreencanvas"),"ogg-vorbis":require("./features/ogg-vorbis"),"ogv":require("./features/ogv"),"ol-reversed":require("./features/ol-reversed"),"once-event-listener":require("./features/once-event-listener"),"online-status":require("./features/online-status"),"opus":require("./features/opus"),"orientation-sensor":require("./features/orientation-sensor"),"outline":require("./features/outline"),"pad-start-end":require("./features/pad-start-end"),"page-transition-events":require("./features/page-transition-events"),"pagevisibility":require("./features/pagevisibility"),"passive-event-listener":require("./features/passive-event-listener"),"passkeys":require("./features/passkeys"),"passwordrules":require("./features/passwordrules"),"path2d":require("./features/path2d"),"payment-request":require("./features/payment-request"),"pdf-viewer":require("./features/pdf-viewer"),"permissions-api":require("./features/permissions-api"),"permissions-policy":require("./features/permissions-policy"),"picture-in-picture":require("./features/picture-in-picture"),"picture":require("./features/picture"),"ping":require("./features/ping"),"png-alpha":require("./features/png-alpha"),"pointer-events":require("./features/pointer-events"),"pointer":require("./features/pointer"),"pointerlock":require("./features/pointerlock"),"portals":require("./features/portals"),"prefers-color-scheme":require("./features/prefers-color-scheme"),"prefers-reduced-motion":require("./features/prefers-reduced-motion"),"progress":require("./features/progress"),"promise-finally":require("./features/promise-finally"),"promises":require("./features/promises"),"proximity":require("./features/proximity"),"proxy":require("./features/proxy"),"publickeypinning":require("./features/publickeypinning"),"push-api":require("./features/push-api"),"queryselector":require("./features/queryselector"),"readonly-attr":require("./features/readonly-attr"),"referrer-policy":require("./features/referrer-policy"),"registerprotocolhandler":require("./features/registerprotocolhandler"),"rel-noopener":require("./features/rel-noopener"),"rel-noreferrer":require("./features/rel-noreferrer"),"rellist":require("./features/rellist"),"rem":require("./features/rem"),"requestanimationframe":require("./features/requestanimationframe"),"requestidlecallback":require("./features/requestidlecallback"),"resizeobserver":require("./features/resizeobserver"),"resource-timing":require("./features/resource-timing"),"rest-parameters":require("./features/rest-parameters"),"rtcpeerconnection":require("./features/rtcpeerconnection"),"ruby":require("./features/ruby"),"run-in":require("./features/run-in"),"same-site-cookie-attribute":require("./features/same-site-cookie-attribute"),"screen-orientation":require("./features/screen-orientation"),"script-async":require("./features/script-async"),"script-defer":require("./features/script-defer"),"scrollintoview":require("./features/scrollintoview"),"scrollintoviewifneeded":require("./features/scrollintoviewifneeded"),"sdch":require("./features/sdch"),"selection-api":require("./features/selection-api"),"selectlist":require("./features/selectlist"),"server-timing":require("./features/server-timing"),"serviceworkers":require("./features/serviceworkers"),"setimmediate":require("./features/setimmediate"),"shadowdom":require("./features/shadowdom"),"shadowdomv1":require("./features/shadowdomv1"),"sharedarraybuffer":require("./features/sharedarraybuffer"),"sharedworkers":require("./features/sharedworkers"),"sni":require("./features/sni"),"spdy":require("./features/spdy"),"speech-recognition":require("./features/speech-recognition"),"speech-synthesis":require("./features/speech-synthesis"),"spellcheck-attribute":require("./features/spellcheck-attribute"),"sql-storage":require("./features/sql-storage"),"srcset":require("./features/srcset"),"stream":require("./features/stream"),"streams":require("./features/streams"),"stricttransportsecurity":require("./features/stricttransportsecurity"),"style-scoped":require("./features/style-scoped"),"subresource-bundling":require("./features/subresource-bundling"),"subresource-integrity":require("./features/subresource-integrity"),"svg-css":require("./features/svg-css"),"svg-filters":require("./features/svg-filters"),"svg-fonts":require("./features/svg-fonts"),"svg-fragment":require("./features/svg-fragment"),"svg-html":require("./features/svg-html"),"svg-html5":require("./features/svg-html5"),"svg-img":require("./features/svg-img"),"svg-smil":require("./features/svg-smil"),"svg":require("./features/svg"),"sxg":require("./features/sxg"),"tabindex-attr":require("./features/tabindex-attr"),"template-literals":require("./features/template-literals"),"template":require("./features/template"),"temporal":require("./features/temporal"),"testfeat":require("./features/testfeat"),"text-decoration":require("./features/text-decoration"),"text-emphasis":require("./features/text-emphasis"),"text-overflow":require("./features/text-overflow"),"text-size-adjust":require("./features/text-size-adjust"),"text-stroke":require("./features/text-stroke"),"textcontent":require("./features/textcontent"),"textencoder":require("./features/textencoder"),"tls1-1":require("./features/tls1-1"),"tls1-2":require("./features/tls1-2"),"tls1-3":require("./features/tls1-3"),"touch":require("./features/touch"),"transforms2d":require("./features/transforms2d"),"transforms3d":require("./features/transforms3d"),"trusted-types":require("./features/trusted-types"),"ttf":require("./features/ttf"),"typedarrays":require("./features/typedarrays"),"u2f":require("./features/u2f"),"unhandledrejection":require("./features/unhandledrejection"),"upgradeinsecurerequests":require("./features/upgradeinsecurerequests"),"url-scroll-to-text-fragment":require("./features/url-scroll-to-text-fragment"),"url":require("./features/url"),"urlsearchparams":require("./features/urlsearchparams"),"use-strict":require("./features/use-strict"),"user-select-none":require("./features/user-select-none"),"user-timing":require("./features/user-timing"),"variable-fonts":require("./features/variable-fonts"),"vector-effect":require("./features/vector-effect"),"vibration":require("./features/vibration"),"video":require("./features/video"),"videotracks":require("./features/videotracks"),"view-transitions":require("./features/view-transitions"),"viewport-unit-variants":require("./features/viewport-unit-variants"),"viewport-units":require("./features/viewport-units"),"wai-aria":require("./features/wai-aria"),"wake-lock":require("./features/wake-lock"),"wasm-bigint":require("./features/wasm-bigint"),"wasm-bulk-memory":require("./features/wasm-bulk-memory"),"wasm-extended-const":require("./features/wasm-extended-const"),"wasm-gc":require("./features/wasm-gc"),"wasm-multi-memory":require("./features/wasm-multi-memory"),"wasm-multi-value":require("./features/wasm-multi-value"),"wasm-mutable-globals":require("./features/wasm-mutable-globals"),"wasm-nontrapping-fptoint":require("./features/wasm-nontrapping-fptoint"),"wasm-reference-types":require("./features/wasm-reference-types"),"wasm-relaxed-simd":require("./features/wasm-relaxed-simd"),"wasm-signext":require("./features/wasm-signext"),"wasm-simd":require("./features/wasm-simd"),"wasm-tail-calls":require("./features/wasm-tail-calls"),"wasm-threads":require("./features/wasm-threads"),"wasm":require("./features/wasm"),"wav":require("./features/wav"),"wbr-element":require("./features/wbr-element"),"web-animation":require("./features/web-animation"),"web-app-manifest":require("./features/web-app-manifest"),"web-bluetooth":require("./features/web-bluetooth"),"web-serial":require("./features/web-serial"),"web-share":require("./features/web-share"),"webauthn":require("./features/webauthn"),"webcodecs":require("./features/webcodecs"),"webgl":require("./features/webgl"),"webgl2":require("./features/webgl2"),"webgpu":require("./features/webgpu"),"webhid":require("./features/webhid"),"webkit-user-drag":require("./features/webkit-user-drag"),"webm":require("./features/webm"),"webnfc":require("./features/webnfc"),"webp":require("./features/webp"),"websockets":require("./features/websockets"),"webtransport":require("./features/webtransport"),"webusb":require("./features/webusb"),"webvr":require("./features/webvr"),"webvtt":require("./features/webvtt"),"webworkers":require("./features/webworkers"),"webxr":require("./features/webxr"),"will-change":require("./features/will-change"),"woff":require("./features/woff"),"woff2":require("./features/woff2"),"word-break":require("./features/word-break"),"wordwrap":require("./features/wordwrap"),"x-doc-messaging":require("./features/x-doc-messaging"),"x-frame-options":require("./features/x-frame-options"),"xhr2":require("./features/xhr2"),"xhtml":require("./features/xhtml"),"xhtmlsmil":require("./features/xhtmlsmil"),"xml-serializer":require("./features/xml-serializer"),"zstd":require("./features/zstd")}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/aac.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/aac.js deleted file mode 100644 index 2eaf2986..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/aac.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"6 7 xC TC J ZB K D E F A B C L M G N O P aB 1C 2C","132":"0 1 2 3 4 5 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F","16":"A B"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC"},H:{"2":"iD"},I:{"1":"TC J I mD vC nD oD","2":"jD kD lD"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"132":"MC"},N:{"1":"A","2":"B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"132":"2D 3D"}},B:6,C:"AAC audio file format",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/abortcontroller.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/abortcontroller.js deleted file mode 100644 index a2460f6c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/abortcontroller.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G"},C:{"1":"0 1 2 3 4 5 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 1C 2C"},D:{"1":"0 1 2 3 4 5 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B"},E:{"1":"L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B 3C ZC 4C 5C 6C 7C aC","130":"C NC"},F:{"1":"0 1 2 3 4 5 yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB GD HD ID JD NC uC KD OC"},G:{"1":"VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:1,C:"AbortController & AbortSignal",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/ac3-ec3.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/ac3-ec3.js deleted file mode 100644 index e4c0a8d0..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/ac3-ec3.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"C L M G N O P","2":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD","132":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D","132":"A"},K:{"2":"A B C H NC uC","132":"OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:6,C:"AC-3 (Dolby Digital) and EC-3 (Dolby Digital Plus) codecs",D:false}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/accelerometer.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/accelerometer.js deleted file mode 100644 index 9a32d384..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/accelerometer.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B","194":"3B UC 4B VC 5B 6B 7B 8B 9B"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:4,C:"Accelerometer",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/addeventlistener.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/addeventlistener.js deleted file mode 100644 index a6a76f9a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/addeventlistener.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","130":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","257":"xC TC J ZB K 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"EventTarget.addEventListener()",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/alternate-stylesheet.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/alternate-stylesheet.js deleted file mode 100644 index df9a6b4c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"E F A B","2":"K D wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"F B C GD HD ID JD NC uC KD OC","16":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"16":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"16":"D A"},K:{"2":"H","16":"A B C NC uC OC"},L:{"16":"I"},M:{"16":"MC"},N:{"16":"A B"},O:{"16":"PC"},P:{"16":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"16":"1D"},S:{"1":"2D 3D"}},B:1,C:"Alternate stylesheet",D:false}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/ambient-light.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/ambient-light.js deleted file mode 100644 index 3c2371c3..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/ambient-light.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L","132":"M G N O P","322":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"6 7 xC TC J ZB K D E F A B C L M G N O P aB 1C 2C","132":"8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC","194":"0 1 2 3 4 5 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B","322":"0 1 2 3 4 5 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GD HD ID JD NC uC KD OC","322":"0 1 2 3 4 5 GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"322":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"132":"2D 3D"}},B:4,C:"Ambient Light Sensor",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/apng.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/apng.js deleted file mode 100644 index f15e38ac..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/apng.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","2":"xC"},D:{"1":"0 1 2 3 4 5 UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B"},E:{"1":"E F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 B C rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","2":"6 7 8 9 F G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB"},G:{"1":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND OD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"Animated PNG (APNG)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/array-find-index.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/array-find-index.js deleted file mode 100644 index 6d44533c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/array-find-index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB 1C 2C"},D:{"1":"0 1 2 3 4 5 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB"},E:{"1":"E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D 3C ZC 4C 5C"},F:{"1":"0 1 2 3 4 5 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB GD HD ID JD NC uC KD OC"},G:{"1":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND OD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D","16":"A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"Array.prototype.findIndex",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/array-find.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/array-find.js deleted file mode 100644 index 6a35c676..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/array-find.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","16":"C L M"},C:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB 1C 2C"},D:{"1":"0 1 2 3 4 5 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB"},E:{"1":"E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D 3C ZC 4C 5C"},F:{"1":"0 1 2 3 4 5 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB GD HD ID JD NC uC KD OC"},G:{"1":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND OD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D","16":"A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"Array.prototype.find",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/array-flat.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/array-flat.js deleted file mode 100644 index 320c06db..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/array-flat.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 1C 2C"},D:{"1":"0 1 2 3 4 5 CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC"},E:{"1":"C L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B 3C ZC 4C 5C 6C 7C aC NC"},F:{"1":"0 1 2 3 4 5 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B GD HD ID JD NC uC KD OC"},G:{"1":"WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD tD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:6,C:"flat & flatMap array methods",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/array-includes.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/array-includes.js deleted file mode 100644 index eecccc3b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/array-includes.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L"},C:{"1":"0 1 2 3 4 5 oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB 1C 2C"},D:{"1":"0 1 2 3 4 5 sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB GD HD ID JD NC uC KD OC"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"Array.prototype.includes",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/arrow-functions.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/arrow-functions.js deleted file mode 100644 index c1dc77bd..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/arrow-functions.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 xC TC J ZB K D E F A B C L M G N O P aB 1C 2C"},D:{"1":"0 1 2 3 4 5 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB GD HD ID JD NC uC KD OC"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"Arrow functions",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/asmjs.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/asmjs.js deleted file mode 100644 index 5b184684..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/asmjs.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"L M G N O P","132":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","322":"C"},C:{"1":"0 1 2 3 4 5 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 xC TC J ZB K D E F A B C L M G N O P aB 1C 2C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB","132":"0 1 2 3 4 5 EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"F B C GD HD ID JD NC uC KD OC","132":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC nD oD","132":"I"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","132":"H"},L:{"132":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"132":"PC"},P:{"2":"J","132":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"132":"0D"},R:{"132":"1D"},S:{"1":"2D 3D"}},B:6,C:"asm.js",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/async-clipboard.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/async-clipboard.js deleted file mode 100644 index 682df4c5..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/async-clipboard.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 1C 2C","132":"0 1 2 3 4 5 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB"},D:{"1":"0 1 2 3 4 5 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B"},E:{"1":"M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L 3C ZC 4C 5C 6C 7C aC NC OC"},F:{"1":"0 1 2 3 4 5 yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB GD HD ID JD NC uC KD OC"},G:{"1":"cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC nD oD","260":"I"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"BB CB DB EB FB","2":"J pD qD rD sD","260":"6 7 8 9 AB tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D","132":"3D"}},B:5,C:"Asynchronous Clipboard API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/async-functions.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/async-functions.js deleted file mode 100644 index 47b273f3..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/async-functions.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L","194":"M"},C:{"1":"0 1 2 3 4 5 xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB 1C 2C"},D:{"1":"0 1 2 3 4 5 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C","258":"aC"},F:{"1":"0 1 2 3 4 5 nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB GD HD ID JD NC uC KD OC"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD","258":"TD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:6,C:"Async functions",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/atob-btoa.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/atob-btoa.js deleted file mode 100644 index 0b557bb7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/atob-btoa.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JD NC uC KD OC","2":"F GD HD","16":"ID"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","16":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Base64 encoding and decoding",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/audio-api.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/audio-api.js deleted file mode 100644 index 3d1848c6..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/audio-api.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB 1C 2C"},D:{"1":"0 1 2 3 4 5 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L","33":"6 7 8 9 M G N O P aB AB BB CB DB EB FB bB cB dB eB"},E:{"1":"G 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C","33":"K D E F A B C L M 5C 6C 7C aC NC OC 8C"},F:{"1":"0 1 2 3 4 5 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","33":"6 7 G N O P aB"},G:{"1":"dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD","33":"E ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"Web Audio API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/audio.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/audio.js deleted file mode 100644 index 6783fdb7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/audio.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC","132":"J ZB K D E F A B C L M G N O P aB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z ID JD NC uC KD OC","2":"F","4":"GD HD"},G:{"260":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"TC J I lD mD vC nD oD","2":"jD kD"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","2":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Audio element",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/audiotracks.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/audiotracks.js deleted file mode 100644 index b3443c12..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/audiotracks.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"C L M G N O P","322":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB 1C 2C","194":"0 1 2 3 4 5 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB","322":"0 1 2 3 4 5 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB GD HD ID JD NC uC KD OC","322":"0 1 2 3 4 5 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","322":"H"},L:{"322":"I"},M:{"2":"MC"},N:{"1":"A B"},O:{"322":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"322":"0D"},R:{"322":"1D"},S:{"194":"2D 3D"}},B:1,C:"Audio Tracks",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/autofocus.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/autofocus.js deleted file mode 100644 index 874fdd89..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/autofocus.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J"},E:{"1":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","2":"F"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"TC J I mD vC nD oD","2":"jD kD lD"},J:{"1":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:1,C:"Autofocus attribute",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/auxclick.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/auxclick.js deleted file mode 100644 index a6aa9938..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/auxclick.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB 1C 2C","129":"0 1 2 3 4 5 yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"0 1 2 3 4 5 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB"},E:{"1":"oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC"},F:{"1":"0 1 2 3 4 5 nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB GD HD ID JD NC uC KD OC"},G:{"1":"oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:5,C:"Auxclick",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/av1.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/av1.js deleted file mode 100644 index 84e8976b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/av1.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"0 1 2 3 C L M G N O z","194":"P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y"},C:{"1":"0 1 2 3 4 5 AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 1C 2C","66":"0B 1B 2B 3B UC 4B VC 5B 6B 7B","260":"8B","516":"9B"},D:{"1":"0 1 2 3 4 5 DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B","66":"AC BC CC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD","1028":"RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD","1028":"RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB vD wD xD yD QC RC SC zD","2":"J pD qD rD sD tD aC uD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:6,C:"AV1 video format",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/avif.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/avif.js deleted file mode 100644 index 3fa3f729..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/avif.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"1 2 3 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w","4162":"0 x y z"},C:{"1":"0 1 2 3 4 5 w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC 1C 2C","194":"KC LC Q H R WC S T U V W X Y Z a b","257":"c d e f g h i j k l m n o p q r s t","2049":"u v"},D:{"1":"0 1 2 3 4 5 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T"},E:{"1":"gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC","1796":"dC eC fC"},F:{"1":"0 1 2 3 4 5 EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC GD HD ID JD NC uC KD OC"},G:{"1":"gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD","1281":"QC dC eC fC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB xD yD QC RC SC zD","2":"J pD qD rD sD tD aC uD vD wD"},Q:{"2":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:6,C:"AVIF image format",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/background-attachment.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/background-attachment.js deleted file mode 100644 index 630efc04..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/background-attachment.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","132":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","132":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"ZB K D E F A B C 4C 5C 6C 7C aC NC OC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","132":"J L 3C ZC 8C","2050":"M G 9C AD bC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z ID JD NC uC KD OC","132":"F GD HD"},G:{"1":"cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC","772":"E MD ND OD PD QD RD SD TD UD VD WD XD","2050":"YD ZD aD bD cD dD eD bC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD nD oD","132":"mD vC"},J:{"260":"D A"},K:{"1":"B C H NC uC OC","132":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"2":"J","1028":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS background-attachment",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/background-clip-text.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/background-clip-text.js deleted file mode 100644 index 2819cdbf..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/background-clip-text.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"G N O P","33":"C L M","129":"3 4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","161":"0 1 2 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},C:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB 1C 2C"},D:{"129":"3 4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","161":"0 1 2 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},E:{"2":"3C","129":"PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","388":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC","420":"J ZC"},F:{"2":"F B C GD HD ID JD NC uC KD OC","129":"0 1 2 3 4 5 p q r s t u v w x y z","161":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o"},G:{"129":"PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","388":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC"},H:{"2":"iD"},I:{"16":"TC jD kD lD","129":"I","161":"J mD vC nD oD"},J:{"161":"D A"},K:{"16":"A B C NC uC OC","129":"H"},L:{"129":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"161":"PC"},P:{"1":"BB CB DB EB FB","161":"6 7 8 9 J AB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"161":"0D"},R:{"161":"1D"},S:{"1":"2D 3D"}},B:7,C:"Background-clip: text",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/background-img-opts.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/background-img-opts.js deleted file mode 100644 index 595e9000..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/background-img-opts.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C","36":"2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","516":"J ZB K D E F A B C L M"},E:{"1":"D E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","772":"J ZB K 3C ZC 4C 5C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z ID JD NC uC KD OC","2":"F GD","36":"HD"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","4":"ZC LD vC ND","516":"MD"},H:{"132":"iD"},I:{"1":"I nD oD","36":"jD","516":"TC J mD vC","548":"kD lD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS3 Background-image options",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/background-position-x-y.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/background-position-x-y.js deleted file mode 100644 index 27ba51d4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/background-position-x-y.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:7,C:"background-position-x & background-position-y",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/background-repeat-round-space.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/background-repeat-round-space.js deleted file mode 100644 index 1065f5d1..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E wC","132":"F"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB 1C 2C"},D:{"1":"0 1 2 3 4 5 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB"},E:{"1":"D E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C 5C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z ID JD NC uC KD OC","2":"F G N O P GD HD"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND"},H:{"1":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"A","2":"D"},K:{"1":"B C H NC uC OC","2":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:4,C:"CSS background-repeat round and space",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/background-sync.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/background-sync.js deleted file mode 100644 index 52dcaa3f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/background-sync.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC 1C 2C","16":"yC zC 0C"},D:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:7,C:"Background Sync API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/battery-status.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/battery-status.js deleted file mode 100644 index 1436a692..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/battery-status.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"oB pB qB rB sB tB uB vB wB","2":"0 1 2 3 4 5 xC TC J ZB K D E F xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","132":"6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB","164":"A B C L M G"},D:{"1":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB","66":"iB"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D","2":"3D"}},B:4,C:"Battery Status API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/beacon.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/beacon.js deleted file mode 100644 index 4fe0c910..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/beacon.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L"},C:{"1":"0 1 2 3 4 5 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB 1C 2C"},D:{"1":"0 1 2 3 4 5 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB"},E:{"1":"C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B 3C ZC 4C 5C 6C 7C aC"},F:{"1":"0 1 2 3 4 5 CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB GD HD ID JD NC uC KD OC"},G:{"1":"VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"Beacon API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/beforeafterprint.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/beforeafterprint.js deleted file mode 100644 index ddd25c01..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/beforeafterprint.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"K D E F A B","16":"wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB 1C 2C"},D:{"1":"0 1 2 3 4 5 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B"},E:{"1":"L M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C 3C ZC 4C 5C 6C 7C aC NC OC"},F:{"1":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB GD HD ID JD NC uC KD OC"},G:{"1":"YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"16":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"16":"A B"},O:{"1":"PC"},P:{"2":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","16":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Printing Events",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/bigint.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/bigint.js deleted file mode 100644 index 1d68704b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/bigint.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 1C 2C","194":"8B 9B AC"},D:{"1":"0 1 2 3 4 5 AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B"},E:{"1":"M G 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L 3C ZC 4C 5C 6C 7C aC NC OC 8C"},F:{"1":"0 1 2 3 4 5 zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB GD HD ID JD NC uC KD OC"},G:{"1":"cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:6,C:"BigInt",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/blobbuilder.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/blobbuilder.js deleted file mode 100644 index a0afb022..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/blobbuilder.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB 1C 2C","36":"K D E F A B C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D","36":"E F A B C L M G N O P aB"},E:{"1":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F B C GD HD ID JD NC uC KD"},G:{"1":"E ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD"},H:{"2":"iD"},I:{"1":"I","2":"jD kD lD","36":"TC J mD vC nD oD"},J:{"1":"A","2":"D"},K:{"1":"H OC","2":"A B C NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"Blob constructing",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/bloburls.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/bloburls.js deleted file mode 100644 index a654f592..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/bloburls.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","129":"A B"},B:{"1":"0 1 2 3 4 5 G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","129":"C L M"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D","33":"6 7 8 E F A B C L M G N O P aB"},E:{"1":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C","33":"K"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD","33":"ND"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC jD kD lD","33":"J mD vC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","2":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"Blob URLs",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/border-image.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/border-image.js deleted file mode 100644 index 8932976c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/border-image.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A wC"},B:{"1":"0 1 2 3 4 5 M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","129":"C L"},C:{"1":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC","260":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB","804":"J ZB K D E F A B C L M 1C 2C"},D:{"1":"0 1 2 3 4 5 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","260":"wB xB yB zB 0B","388":"bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB","1412":"6 7 8 9 G N O P aB AB BB CB DB EB FB","1956":"J ZB K D E F A B C L M"},E:{"1":"cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","129":"A B C L M G 7C aC NC OC 8C 9C AD bC","1412":"K D E F 5C 6C","1956":"J ZB 3C ZC 4C"},F:{"1":"0 1 2 3 4 5 oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F GD HD","260":"jB kB lB mB nB","388":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB","1796":"ID JD","1828":"B C NC uC KD OC"},G:{"1":"cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","129":"RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC","1412":"E ND OD PD QD","1956":"ZC LD vC MD"},H:{"1828":"iD"},I:{"1":"I","388":"nD oD","1956":"TC J jD kD lD mD vC"},J:{"1412":"A","1924":"D"},K:{"1":"H","2":"A","1828":"B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","2":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB rD sD tD aC uD vD wD xD yD QC RC SC zD","260":"pD qD","388":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","260":"2D"}},B:4,C:"CSS3 Border images",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/border-radius.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/border-radius.js deleted file mode 100644 index 4368b12c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/border-radius.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","257":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB","289":"TC 1C 2C","292":"xC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","33":"J"},E:{"1":"ZB D E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","33":"J 3C ZC","129":"K 4C 5C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z ID JD NC uC KD OC","2":"F GD HD"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","33":"ZC"},H:{"2":"iD"},I:{"1":"TC J I kD lD mD vC nD oD","33":"jD"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","2":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","257":"2D"}},B:4,C:"CSS3 Border-radius (rounded corners)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/broadcastchannel.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/broadcastchannel.js deleted file mode 100644 index 10becc13..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/broadcastchannel.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB 1C 2C"},D:{"1":"0 1 2 3 4 5 zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB"},E:{"1":"cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC"},F:{"1":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB GD HD ID JD NC uC KD OC"},G:{"1":"cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"BroadcastChannel",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/brotli.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/brotli.js deleted file mode 100644 index 0dd95f84..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/brotli.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M"},C:{"1":"0 1 2 3 4 5 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB 1C 2C"},D:{"1":"0 1 2 3 4 5 wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB","194":"uB","257":"vB"},E:{"1":"L M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC","513":"B C NC OC"},F:{"1":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB GD HD ID JD NC uC KD OC","194":"hB iB"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"Brotli Accept-Encoding/Content-Encoding",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/calc.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/calc.js deleted file mode 100644 index 96a1bb31..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/calc.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E wC","260":"F","516":"A B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C","33":"J ZB K D E F A B C L M G"},D:{"1":"0 1 2 3 4 5 CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L M G N O P","33":"6 7 8 9 aB AB BB"},E:{"1":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C","33":"K"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD","33":"ND"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC","132":"nD oD"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"calc() as CSS unit value",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/canvas-blending.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/canvas-blending.js deleted file mode 100644 index be595fc5..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/canvas-blending.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C"},C:{"1":"0 1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M G N O P aB 1C 2C"},D:{"1":"0 1 2 3 4 5 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB"},E:{"1":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C G N GD HD ID JD NC uC KD OC"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"Canvas blend modes",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/canvas-text.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/canvas-text.js deleted file mode 100644 index 66efa2fd..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/canvas-text.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"wC","8":"K D E"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","8":"xC TC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","8":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z ID JD NC uC KD OC","8":"F GD HD"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","8":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Text API for Canvas",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/canvas.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/canvas.js deleted file mode 100644 index 9925cf0f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/canvas.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"wC","8":"K D E"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 2C","132":"xC TC 1C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","132":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"260":"iD"},I:{"1":"TC J I mD vC nD oD","132":"jD kD lD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Canvas (basic support)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/ch-unit.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/ch-unit.js deleted file mode 100644 index f748a447..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/ch-unit.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E wC","132":"F A B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB"},E:{"1":"D E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C 5C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"ch (character) unit",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/chacha20-poly1305.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/chacha20-poly1305.js deleted file mode 100644 index 8e3f76af..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB 1C 2C"},D:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB","129":"eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB"},E:{"1":"C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B 3C ZC 4C 5C 6C 7C aC"},F:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB GD HD ID JD NC uC KD OC"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD","16":"oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"ChaCha20-Poly1305 cipher suites for TLS",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/channel-messaging.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/channel-messaging.js deleted file mode 100644 index 9e782a97..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/channel-messaging.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB 1C 2C","194":"CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JD NC uC KD OC","2":"F GD HD","16":"ID"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","2":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Channel messaging",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/childnode-remove.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/childnode-remove.js deleted file mode 100644 index 149f4b3d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/childnode-remove.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","16":"C"},C:{"1":"0 1 2 3 4 5 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 xC TC J ZB K D E F A B C L M G N O P aB 1C 2C"},D:{"1":"0 1 2 3 4 5 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB"},E:{"1":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C","16":"K"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"ChildNode.remove()",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/classlist.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/classlist.js deleted file mode 100644 index 5998de69..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/classlist.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"8":"K D E F wC","1924":"A B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","8":"xC TC 1C","516":"AB BB","772":"6 7 8 9 J ZB K D E F A B C L M G N O P aB 2C"},D:{"1":"0 1 2 3 4 5 EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","8":"J ZB K D","516":"AB BB CB DB","772":"9","900":"6 7 8 E F A B C L M G N O P aB"},E:{"1":"D E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","8":"J ZB 3C ZC","900":"K 4C 5C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","8":"F B GD HD ID JD NC","900":"C uC KD OC"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","8":"ZC LD vC","900":"MD ND"},H:{"900":"iD"},I:{"1":"I nD oD","8":"jD kD lD","900":"TC J mD vC"},J:{"1":"A","900":"D"},K:{"1":"H","8":"A B","900":"C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"900":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"classList (DOMTokenList)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js deleted file mode 100644 index 576b83a3..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:6,C:"Client Hints: DPR, Width, Viewport-Width",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/clipboard.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/clipboard.js deleted file mode 100644 index 9f821d67..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/clipboard.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2436":"K D E F A B wC"},B:{"260":"O P","2436":"C L M G N","8196":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"6 7 xC TC J ZB K D E F A B C L M G N O P aB 1C 2C","772":"8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB","4100":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"2":"J ZB K D E F A B C","2564":"6 7 8 9 L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB","8196":"0 1 2 3 4 5 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","10244":"oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B"},E:{"1":"C L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"3C ZC","2308":"A B aC NC","2820":"J ZB K D E F 4C 5C 6C 7C"},F:{"2":"F B GD HD ID JD NC uC KD","16":"C","516":"OC","2564":"6 7 8 9 G N O P aB AB BB CB DB EB FB","8196":"0 1 2 3 4 5 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","10244":"bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB"},G:{"1":"WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC","2820":"E MD ND OD PD QD RD SD TD UD VD"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC","260":"I","2308":"nD oD"},J:{"2":"D","2308":"A"},K:{"2":"A B C NC uC","16":"OC","8196":"H"},L:{"8196":"I"},M:{"1028":"MC"},N:{"2":"A B"},O:{"8196":"PC"},P:{"2052":"pD qD","2308":"J","8196":"6 7 8 9 AB BB CB DB EB FB rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"8196":"0D"},R:{"8196":"1D"},S:{"4100":"2D 3D"}},B:5,C:"Synchronous Clipboard API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/colr-v1.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/colr-v1.js deleted file mode 100644 index ff494505..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/colr-v1.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g"},C:{"1":"0 1 2 3 4 5 q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g 1C 2C","258":"h i j k l m n","578":"o p"},D:{"1":"0 1 2 3 4 5 h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y","194":"Z a b c d e f g"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"16":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"16":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB SC zD","2":"J pD qD rD sD tD aC uD vD wD xD yD QC RC"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:6,C:"COLR/CPAL(v1) Font Formats",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/colr.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/colr.js deleted file mode 100644 index 594f1214..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/colr.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E wC","257":"F A B"},B:{"1":"0 1 2 3 4 5 C L M G N O P t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","513":"Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s"},C:{"1":"0 1 2 3 4 5 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB 1C 2C"},D:{"1":"0 1 2 3 4 5 t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC","513":"EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s"},E:{"1":"M G 9C AD bC cC PC BD QC dC eC fC gC hC CD jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC","129":"B C L NC OC 8C","1026":"RC iC"},F:{"1":"0 1 2 3 4 5 f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B GD HD ID JD NC uC KD OC","513":"3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD","1026":"RC iC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"16":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"16":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD tD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"COLR/CPAL(v0) Font Formats",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/comparedocumentposition.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/comparedocumentposition.js deleted file mode 100644 index ca13165b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/comparedocumentposition.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","16":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M","132":"6 7 8 9 G N O P aB AB BB CB DB EB FB"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"J ZB K 3C ZC","132":"D E F 5C 6C 7C","260":"4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z KD OC","16":"F B GD HD ID JD NC uC","132":"G N"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC","132":"E LD vC MD ND OD PD QD RD"},H:{"1":"iD"},I:{"1":"I nD oD","16":"jD kD","132":"TC J lD mD vC"},J:{"132":"D A"},K:{"1":"C H OC","16":"A B NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Node.compareDocumentPosition()",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/console-basic.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/console-basic.js deleted file mode 100644 index 3b0fbe87..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/console-basic.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D wC","132":"E F"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z NC uC KD OC","2":"F GD HD ID JD"},G:{"1":"ZC LD vC MD","513":"E ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"4097":"iD"},I:{"1025":"TC J I jD kD lD mD vC nD oD"},J:{"258":"D A"},K:{"2":"A","258":"B C NC uC OC","1025":"H"},L:{"1025":"I"},M:{"2049":"MC"},N:{"258":"A B"},O:{"258":"PC"},P:{"1025":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1025":"1D"},S:{"1":"2D 3D"}},B:1,C:"Basic console logging functions",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/console-time.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/console-time.js deleted file mode 100644 index f1395b0c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/console-time.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z NC uC KD OC","2":"F GD HD ID JD","16":"B"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"H","16":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","2":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"console.time and console.timeEnd",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/const.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/const.js deleted file mode 100644 index a0c54605..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/const.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A wC","2052":"B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","132":"xC TC J ZB K D E F A B C 1C 2C","260":"6 7 8 9 L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB"},D:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","260":"6 J ZB K D E F A B C L M G N O P aB","772":"7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB","1028":"mB nB oB pB qB rB sB tB"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","260":"J ZB A 3C ZC aC","772":"K D E F 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F GD","132":"B HD ID JD NC uC","644":"C KD OC","772":"6 7 8 9 G N O P aB AB BB CB DB","1028":"EB FB bB cB dB eB fB gB"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","260":"ZC LD vC SD TD","772":"E MD ND OD PD QD RD"},H:{"644":"iD"},I:{"1":"I","16":"jD kD","260":"lD","772":"TC J mD vC nD oD"},J:{"772":"D A"},K:{"1":"H","132":"A B NC uC","644":"C OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","2":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","1028":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"const",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/constraint-validation.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/constraint-validation.js deleted file mode 100644 index 420dda5b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/constraint-validation.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","900":"A B"},B:{"1":"0 1 2 3 4 5 O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","388":"M G N","900":"C L"},C:{"1":"0 1 2 3 4 5 wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C","260":"uB vB","388":"FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB","900":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB"},D:{"1":"0 1 2 3 4 5 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M","388":"BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB","900":"6 7 8 9 G N O P aB AB"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"J ZB 3C ZC","388":"E F 6C 7C","900":"K D 4C 5C"},F:{"1":"0 1 2 3 4 5 DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","16":"F B GD HD ID JD NC uC","388":"6 7 8 9 G N O P aB AB BB CB","900":"C KD OC"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC","388":"E OD PD QD RD","900":"MD ND"},H:{"2":"iD"},I:{"1":"I","16":"TC jD kD lD","388":"nD oD","900":"J mD vC"},J:{"16":"D","388":"A"},K:{"1":"H","16":"A B NC uC","900":"C OC"},L:{"1":"I"},M:{"1":"MC"},N:{"900":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","388":"2D"}},B:1,C:"Constraint Validation API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/contenteditable.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/contenteditable.js deleted file mode 100644 index fa5f2c5c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/contenteditable.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","2":"xC","4":"TC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC"},H:{"2":"iD"},I:{"1":"TC J I mD vC nD oD","2":"jD kD lD"},J:{"1":"D A"},K:{"1":"H OC","2":"A B C NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"contenteditable attribute (basic support)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js deleted file mode 100644 index 8d50a489..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","132":"A B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C","129":"6 7 8 J ZB K D E F A B C L M G N O P aB"},D:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L","257":"6 7 8 9 M G N O P aB AB"},E:{"1":"D E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC","257":"K 5C","260":"4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC","257":"ND","260":"MD"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"2":"D","257":"A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"132":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"Content Security Policy 1.0",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js deleted file mode 100644 index ac21e7c0..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M","4100":"G N O P"},C:{"1":"0 1 2 3 4 5 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB 1C 2C","132":"cB dB eB fB","260":"gB","516":"hB iB jB kB lB mB nB oB pB"},D:{"1":"0 1 2 3 4 5 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB","1028":"hB iB jB","2052":"kB"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 F B C G N O P aB GD HD ID JD NC uC KD OC","1028":"9 AB BB","2052":"CB"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"Content Security Policy Level 2",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/cookie-store-api.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/cookie-store-api.js deleted file mode 100644 index b2dd7d18..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/cookie-store-api.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P","194":"Q H R S T U V"},C:{"1":"XB YB I XC MC YC yC zC 0C","2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB 1C 2C","322":"PB QB RB SB TB UB VB WB"},D:{"1":"0 1 2 3 4 5 W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B","194":"7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V"},E:{"1":"qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC"},F:{"1":"0 1 2 3 4 5 HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB GD HD ID JD NC uC KD OC","194":"wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC"},G:{"1":"qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB xD yD QC RC SC zD","2":"J pD qD rD sD tD aC uD vD wD"},Q:{"2":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:7,C:"Cookie Store API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/cors.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/cors.js deleted file mode 100644 index b586469f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/cors.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","2":"K D wC","132":"A","260":"E F"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","2":"xC TC","1025":"VC 5B 6B 7B 8B 9B AC BC CC DC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","132":"J ZB K D E F A B C"},E:{"2":"3C ZC","513":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","644":"J ZB 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F B GD HD ID JD NC uC KD"},G:{"513":"E ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","644":"ZC LD vC MD"},H:{"2":"iD"},I:{"1":"I nD oD","132":"TC J jD kD lD mD vC"},J:{"1":"A","132":"D"},K:{"1":"C H OC","2":"A B NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","132":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Cross-Origin Resource Sharing",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/createimagebitmap.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/createimagebitmap.js deleted file mode 100644 index 38f338dc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/createimagebitmap.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB 1C 2C","1028":"c d e f g","3076":"nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b","8193":"0 1 2 3 4 5 h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"0 1 2 3 4 5 UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB","132":"vB wB","260":"xB yB","516":"zB 0B 1B 2B 3B"},E:{"1":"RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C","4100":"G AD bC cC PC BD QC dC eC fC gC hC CD"},F:{"1":"0 1 2 3 4 5 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB GD HD ID JD NC uC KD OC","132":"iB jB","260":"kB lB","516":"mB nB oB pB qB"},G:{"1":"RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD","4100":"eD bC cC PC fD QC dC eC fC gC hC gD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"8193":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","16":"J pD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"3076":"2D 3D"}},B:1,C:"createImageBitmap",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/credential-management.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/credential-management.js deleted file mode 100644 index c3b1e443..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/credential-management.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB","66":"tB uB vB","129":"wB xB yB zB 0B 1B"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB GD HD ID JD NC uC KD OC"},G:{"1":"cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:5,C:"Credential Management API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js deleted file mode 100644 index d46094d4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I 1C 2C","194":"XC","260":"MC YC yC zC 0C"},D:{"1":"JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB"},E:{"1":"oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC"},F:{"1":"0 1 2 3 4 5 v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u GD HD ID JD NC uC KD OC"},G:{"1":"oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"260":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"View Transitions (cross-document)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/cryptography.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/cryptography.js deleted file mode 100644 index ea4b2ef5..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/cryptography.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"wC","8":"K D E F A","164":"B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","513":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","8":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB 1C 2C","66":"dB eB"},D:{"1":"0 1 2 3 4 5 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","8":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","8":"J ZB K D 3C ZC 4C 5C","289":"E F A 6C 7C aC"},F:{"1":"0 1 2 3 4 5 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","8":"6 7 8 9 F B C G N O P aB GD HD ID JD NC uC KD OC"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","8":"ZC LD vC MD ND OD","289":"E PD QD RD SD TD"},H:{"2":"iD"},I:{"1":"I","8":"TC J jD kD lD mD vC nD oD"},J:{"8":"D A"},K:{"1":"H","8":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"8":"A","164":"B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"Web Cryptography",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-all.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-all.js deleted file mode 100644 index 3620a322..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-all.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB 1C 2C"},D:{"1":"0 1 2 3 4 5 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB"},E:{"1":"A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB GD HD ID JD NC uC KD OC"},G:{"1":"RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD"},H:{"2":"iD"},I:{"1":"I oD","2":"TC J jD kD lD mD vC nD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS all property",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-anchor-positioning.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-anchor-positioning.js deleted file mode 100644 index e9a2a433..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","194":"0 1 2 3 4 5 GB HB"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC 1C 2C","322":"YC yC zC 0C"},D:{"1":"IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","194":"0 1 2 3 4 5 GB HB"},E:{"1":"sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC"},F:{"1":"0 1 2 3 4 5 u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l GD HD ID JD NC uC KD OC","194":"m n o p q r s t"},G:{"1":"sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"DB EB FB","2":"6 7 8 9 J AB BB CB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"CSS Anchor Positioning",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-animation.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-animation.js deleted file mode 100644 index df391df1..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-animation.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J 1C 2C","33":"ZB K D E F A B C L M G"},D:{"1":"0 1 2 3 4 5 oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","33":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C ZC","33":"K D E 4C 5C 6C","292":"J ZB"},F:{"1":"0 1 2 3 4 5 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F B GD HD ID JD NC uC KD","33":"6 7 8 9 C G N O P aB AB BB CB DB EB FB"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","33":"E ND OD PD","164":"ZC LD vC MD"},H:{"2":"iD"},I:{"1":"I","33":"J mD vC nD oD","164":"TC jD kD lD"},J:{"33":"D A"},K:{"1":"H OC","2":"A B C NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"CSS Animation",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-any-link.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-any-link.js deleted file mode 100644 index 80cd83d8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-any-link.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","16":"xC","33":"6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB 1C 2C"},D:{"1":"0 1 2 3 4 5 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M","33":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"J ZB K 3C ZC 4C","33":"D E 5C 6C"},F:{"1":"0 1 2 3 4 5 xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","33":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC MD","33":"E ND OD PD"},H:{"2":"iD"},I:{"1":"I","16":"TC J jD kD lD mD vC","33":"nD oD"},J:{"16":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB tD aC uD vD wD xD yD QC RC SC zD","16":"J","33":"pD qD rD sD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","33":"2D"}},B:5,C:"CSS :any-link selector",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-appearance.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-appearance.js deleted file mode 100644 index cc4e914f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-appearance.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","33":"S","164":"Q H R","388":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","164":"gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q","676":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB 1C 2C"},D:{"1":"0 1 2 3 4 5 T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","33":"S","164":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R"},E:{"1":"cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","164":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC"},F:{"1":"0 1 2 3 4 5 GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","33":"DC EC FC","164":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC"},G:{"1":"cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","164":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC"},H:{"2":"iD"},I:{"1":"I","164":"TC J jD kD lD mD vC nD oD"},J:{"164":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A","388":"B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB xD yD QC RC SC zD","164":"J pD qD rD sD tD aC uD vD wD"},Q:{"164":"0D"},R:{"1":"1D"},S:{"1":"3D","164":"2D"}},B:5,C:"CSS Appearance",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-at-counter-style.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-at-counter-style.js deleted file mode 100644 index 8c2e6de2..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-at-counter-style.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P Q H R S T U V W X Y Z","132":"0 1 2 3 4 5 a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB 1C 2C","132":"0 1 2 3 4 5 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z","132":"0 1 2 3 4 5 a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD","4":"RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC GD HD ID JD NC uC KD OC","132":"0 1 2 3 4 5 KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD","4":"RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC nD oD","132":"I"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","132":"H"},L:{"132":"I"},M:{"132":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"2":"J pD qD rD sD tD aC uD vD wD xD yD","132":"6 7 8 9 AB BB CB DB EB FB QC RC SC zD"},Q:{"2":"0D"},R:{"132":"1D"},S:{"132":"2D 3D"}},B:4,C:"CSS Counter Styles",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-autofill.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-autofill.js deleted file mode 100644 index 90d66044..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-autofill.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{D:{"1":"0 1 2 3 4 5 t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","33":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s"},L:{"1":"I"},B:{"1":"0 1 2 3 4 5 t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P","33":"Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s"},C:{"1":"0 1 2 3 4 5 V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U 1C 2C"},M:{"1":"MC"},A:{"2":"K D E F A B wC"},F:{"1":"0 1 2 3 4 5 f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","33":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e"},K:{"1":"H","2":"A B C NC uC OC"},E:{"1":"G AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED","2":"FD","33":"J ZB K D E F A B C L M 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C"},G:{"1":"eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","33":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD"},P:{"1":"7 8 9 AB BB CB DB EB FB","33":"6 J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},I:{"1":"I","2":"TC J jD kD lD mD vC","33":"nD oD"}},B:6,C:":autofill CSS pseudo-class",D:undefined}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-backdrop-filter.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-backdrop-filter.js deleted file mode 100644 index fe1782b6..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N","257":"O P"},C:{"1":"0 1 2 3 4 5 m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC 1C 2C","578":"DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l"},D:{"1":"0 1 2 3 4 5 JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB","194":"sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC"},E:{"1":"SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E 3C ZC 4C 5C 6C","33":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD"},F:{"1":"0 1 2 3 4 5 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB GD HD ID JD NC uC KD OC","194":"fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B"},G:{"1":"SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD","33":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB vD wD xD yD QC RC SC zD","2":"J","194":"pD qD rD sD tD aC uD"},Q:{"2":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:7,C:"CSS Backdrop Filter",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-background-offsets.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-background-offsets.js deleted file mode 100644 index 7004f82d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-background-offsets.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C 1C 2C"},D:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB"},E:{"1":"D E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C 5C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z ID JD NC uC KD OC","2":"F GD HD"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND"},H:{"1":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"A","2":"D"},K:{"1":"B C H NC uC OC","2":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS background-position edge offsets",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js deleted file mode 100644 index 1f4ac8fc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB 1C 2C"},D:{"1":"0 1 2 3 4 5 gB hB iB jB kB lB mB nB oB pB qB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB","260":"rB"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D 3C ZC 4C 5C","132":"E F A 6C 7C"},F:{"1":"0 1 2 3 4 5 8 9 AB BB CB DB EB FB bB cB dB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 F B C G N O P aB GD HD ID JD NC uC KD OC","260":"eB"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND OD","132":"E PD QD RD SD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS background-blend-mode",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js deleted file mode 100644 index 13c512fc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P","164":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB"},C:{"1":"0 1 2 3 4 5 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB 1C 2C"},D:{"1":"NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 J ZB K D E F A B C L M G N O P aB","164":"0 1 2 3 4 5 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB"},E:{"2":"J ZB K 3C ZC 4C","164":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 z","2":"F GD HD ID JD","129":"B C NC uC KD OC","164":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y"},G:{"2":"ZC LD vC MD ND","164":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"132":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC","164":"nD oD"},J:{"2":"D","164":"A"},K:{"2":"A","129":"B C NC uC OC","164":"H"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"164":"PC"},P:{"164":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"164":"0D"},R:{"164":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS box-decoration-break",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-boxshadow.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-boxshadow.js deleted file mode 100644 index bb3b23cf..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-boxshadow.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC","33":"1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","33":"J ZB K D E F"},E:{"1":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","33":"ZB","164":"J 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z ID JD NC uC KD OC","2":"F GD HD"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","33":"LD vC","164":"ZC"},H:{"2":"iD"},I:{"1":"J I mD vC nD oD","164":"TC jD kD lD"},J:{"1":"A","33":"D"},K:{"1":"B C H NC uC OC","2":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS3 Box-shadow",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-canvas.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-canvas.js deleted file mode 100644 index 25cb2081..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-canvas.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","33":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB"},E:{"2":"3C ZC","33":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 F B C gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","33":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB"},G:{"33":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"I","33":"TC J jD kD lD mD vC nD oD"},J:{"33":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","33":"J"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"CSS Canvas Drawings",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-caret-color.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-caret-color.js deleted file mode 100644 index a17efc48..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-caret-color.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB 1C 2C"},D:{"1":"0 1 2 3 4 5 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B"},E:{"1":"C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B 3C ZC 4C 5C 6C 7C aC"},F:{"1":"0 1 2 3 4 5 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB GD HD ID JD NC uC KD OC"},G:{"1":"VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:2,C:"CSS caret-color",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-cascade-layers.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-cascade-layers.js deleted file mode 100644 index c66bb52c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-cascade-layers.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e","322":"f g h"},C:{"1":"0 1 2 3 4 5 g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c 1C 2C","194":"d e f"},D:{"1":"0 1 2 3 4 5 i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e","322":"f g h"},E:{"1":"cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC"},F:{"1":"0 1 2 3 4 5 V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U GD HD ID JD NC uC KD OC"},G:{"1":"cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB SC zD","2":"J pD qD rD sD tD aC uD vD wD xD yD QC RC"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:4,C:"CSS Cascade Layers",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-cascade-scope.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-cascade-scope.js deleted file mode 100644 index a9cd74ab..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-cascade-scope.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"1 2 3 4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m","194":"0 n o p q r s t u v w x y z"},C:{"1":"yC zC 0C","2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC 1C 2C"},D:{"1":"1 2 3 4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m","194":"0 n o p q r s t u v w x y z"},E:{"1":"lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC"},F:{"1":"0 1 2 3 4 5 p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y GD HD ID JD NC uC KD OC","194":"Z a b c d e f g h i j k l m n o"},G:{"1":"lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"BB CB DB EB FB","2":"6 7 8 9 J AB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"Scoped Styles: the @scope rule",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-case-insensitive.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-case-insensitive.js deleted file mode 100644 index d4717a87..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-case-insensitive.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB 1C 2C"},D:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB GD HD ID JD NC uC KD OC"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"Case-insensitive CSS attribute selectors",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-clip-path.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-clip-path.js deleted file mode 100644 index 24eb5399..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-clip-path.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O","260":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","3138":"P"},C:{"1":"0 1 2 3 4 5 zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC","132":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB 1C 2C","644":"sB tB uB vB wB xB yB"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB","260":"0 1 2 3 4 5 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","292":"AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB"},E:{"2":"J ZB K 3C ZC 4C 5C","260":"M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","292":"D E F A B C L 6C 7C aC NC OC"},F:{"2":"F B C GD HD ID JD NC uC KD OC","260":"0 1 2 3 4 5 nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","292":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB"},G:{"2":"ZC LD vC MD ND","260":"YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","292":"E OD PD QD RD SD TD UD VD WD XD"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC","260":"I","292":"nD oD"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","260":"H"},L:{"260":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"260":"PC"},P:{"260":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","292":"J pD"},Q:{"260":"0D"},R:{"260":"1D"},S:{"1":"3D","644":"2D"}},B:4,C:"CSS clip-path property (for HTML)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-color-adjust.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-color-adjust.js deleted file mode 100644 index 12483de3..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-color-adjust.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P","33":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB 1C 2C"},D:{"16":"J ZB K D E F A B C L M G N O P","33":"0 1 2 3 4 5 6 7 8 9 aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C","33":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC"},F:{"2":"F B C GD HD ID JD NC uC KD OC","33":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"1":"cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC"},H:{"2":"iD"},I:{"16":"TC J jD kD lD mD vC nD oD","33":"I"},J:{"16":"D A"},K:{"2":"A B C NC uC OC","33":"H"},L:{"16":"I"},M:{"1":"MC"},N:{"16":"A B"},O:{"16":"PC"},P:{"16":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"33":"0D"},R:{"16":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS print-color-adjust",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-color-function.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-color-function.js deleted file mode 100644 index af8bae40..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-color-function.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q","322":"r s t"},C:{"1":"0 1 2 3 4 5 w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t 1C 2C","578":"u v"},D:{"1":"0 1 2 3 4 5 u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q","322":"r s t"},E:{"1":"G AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C","132":"B C L M aC NC OC 8C 9C"},F:{"1":"0 1 2 3 4 5 h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d GD HD ID JD NC uC KD OC","322":"e f g"},G:{"1":"eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD","132":"TD UD VD WD XD YD ZD aD bD cD dD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"8 9 AB BB CB DB EB FB","2":"6 7 J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:4,C:"CSS color() function",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-conic-gradients.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-conic-gradients.js deleted file mode 100644 index 0887906d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-conic-gradients.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC 1C 2C","578":"IC JC KC LC Q H R WC"},D:{"1":"0 1 2 3 4 5 EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B","257":"CC DC","450":"UC 4B VC 5B 6B 7B 8B 9B AC BC"},E:{"1":"L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C 3C ZC 4C 5C 6C 7C aC NC"},F:{"1":"0 1 2 3 4 5 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB GD HD ID JD NC uC KD OC","257":"1B 2B","450":"rB sB tB uB vB wB xB yB zB 0B"},G:{"1":"XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD tD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:5,C:"CSS Conical Gradients",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-container-queries-style.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-container-queries-style.js deleted file mode 100644 index c98bd2d1..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-container-queries-style.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p","194":"q r s t","260":"0 1 2 3 4 5 u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p","194":"q r s t","260":"0 1 2 3 4 5 u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD","260":"nC oC pC qC rC sC tC ED FD","772":"SC"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b GD HD ID JD NC uC KD OC","194":"c d e f g","260":"0 1 2 3 4 5 h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD","260":"nC oC pC qC rC sC tC","772":"SC"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC nD oD","260":"I"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","260":"H"},L:{"260":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","260":"8 9 AB BB CB DB EB FB"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"CSS Container Style Queries",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-container-queries.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-container-queries.js deleted file mode 100644 index 32384883..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-container-queries.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n","516":"o"},C:{"1":"0 1 2 3 4 5 t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s 1C 2C"},D:{"1":"0 1 2 3 4 5 p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a","194":"c d e f g h i j k l m n","450":"b","516":"o"},E:{"1":"QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD"},F:{"1":"0 1 2 3 4 5 d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC GD HD ID JD NC uC KD OC","194":"Q H R WC S T U V W X Y Z","516":"a b c"},G:{"1":"QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB","2":"J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"CSS Container Queries (Size)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-container-query-units.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-container-query-units.js deleted file mode 100644 index a441a1cc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-container-query-units.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n"},C:{"1":"0 1 2 3 4 5 t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s 1C 2C"},D:{"1":"0 1 2 3 4 5 o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b","194":"k l m n","450":"c d e f g h i j"},E:{"1":"QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD"},F:{"1":"0 1 2 3 4 5 a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC GD HD ID JD NC uC KD OC","194":"Q H R WC S T U V W X Y Z"},G:{"1":"QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB","2":"J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"CSS Container Query Units",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-containment.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-containment.js deleted file mode 100644 index 4737570f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-containment.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB 1C 2C","194":"mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC"},D:{"1":"0 1 2 3 4 5 xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB","66":"wB"},E:{"1":"cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC"},F:{"1":"0 1 2 3 4 5 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB GD HD ID JD NC uC KD OC","66":"jB kB"},G:{"1":"cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","194":"2D"}},B:2,C:"CSS Containment",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-content-visibility.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-content-visibility.js deleted file mode 100644 index 88d06a46..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-content-visibility.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T"},C:{"1":"IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r 1C 2C","194":"0 1 2 3 4 5 s t u v w x y z GB HB"},D:{"1":"0 1 2 3 4 5 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T"},E:{"1":"SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD"},F:{"1":"0 1 2 3 4 5 EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC GD HD ID JD NC uC KD OC"},G:{"1":"SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB xD yD QC RC SC zD","2":"J pD qD rD sD tD aC uD vD wD"},Q:{"2":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:5,C:"CSS content-visibility",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-counters.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-counters.js deleted file mode 100644 index 5ec854c1..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-counters.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"E F A B","2":"K D wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS Counters",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-crisp-edges.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-crisp-edges.js deleted file mode 100644 index 74e4dfce..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-crisp-edges.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K wC","2340":"D E F A B"},B:{"2":"C L M G N O P","1025":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C","513":"8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b","545":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 2C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB","1025":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C","164":"K","4644":"D E F 5C 6C 7C"},F:{"2":"6 7 8 9 F B G N O P aB AB BB CB DB GD HD ID JD NC uC","545":"C KD OC","1025":"0 1 2 3 4 5 EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC","4260":"MD ND","4644":"E OD PD QD RD"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC nD oD","1025":"I"},J:{"2":"D","4260":"A"},K:{"2":"A B NC uC","545":"C OC","1025":"H"},L:{"1025":"I"},M:{"1":"MC"},N:{"2340":"A B"},O:{"1025":"PC"},P:{"1025":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1025":"0D"},R:{"1025":"1D"},S:{"1":"3D","4097":"2D"}},B:4,C:"Crisp edges/pixelated images",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-cross-fade.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-cross-fade.js deleted file mode 100644 index 57dac775..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-cross-fade.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P","33":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"J ZB K D E F A B C L M G N","33":"0 1 2 3 4 5 6 7 8 9 O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC","33":"K D E F 4C 5C 6C 7C"},F:{"2":"F B C GD HD ID JD NC uC KD OC","33":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC","33":"E MD ND OD PD QD RD"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC","33":"I nD oD"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","33":"H"},L:{"33":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"33":"PC"},P:{"33":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"33":"0D"},R:{"33":"1D"},S:{"2":"2D 3D"}},B:4,C:"CSS Cross-Fade Function",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-default-pseudo.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-default-pseudo.js deleted file mode 100644 index 2adf5a59..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-default-pseudo.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","16":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M","132":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"J ZB 3C ZC","132":"K D E F A 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","16":"F B GD HD ID JD NC uC","132":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB","260":"C KD OC"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC MD ND","132":"E OD PD QD RD SD"},H:{"260":"iD"},I:{"1":"I","16":"TC jD kD lD","132":"J mD vC nD oD"},J:{"16":"D","132":"A"},K:{"1":"H","16":"A B C NC uC","260":"OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","132":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:":default CSS pseudo-class",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js deleted file mode 100644 index 074411a7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","16":"Q"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"B","2":"J ZB K D E F A C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"Explicit descendant combinator >>",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-deviceadaptation.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-deviceadaptation.js deleted file mode 100644 index bc2b37e5..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","164":"A B"},B:{"66":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","164":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB","66":"0 1 2 3 4 5 FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB GD HD ID JD NC uC KD OC","66":"0 1 2 3 4 5 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"292":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A H","292":"B C NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"164":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"66":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"CSS Device Adaptation",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-dir-pseudo.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-dir-pseudo.js deleted file mode 100644 index 50d0e5ad..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"3 4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n","194":"0 1 2 o p q r s t u v w x y z"},C:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M G N 1C 2C","33":"6 7 8 9 O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB"},D:{"1":"3 4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z","194":"0 1 2 a b c d e f g h i j k l m n o p q r s t u v w x y z"},E:{"1":"gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC"},F:{"1":"0 1 2 3 4 5 p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z GD HD ID JD NC uC KD OC","194":"a b c d e f g h i j k l m n o"},G:{"1":"gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"BB CB DB EB FB","2":"6 7 8 9 J AB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"1":"3D","33":"2D"}},B:5,C:":dir() CSS pseudo-class",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-display-contents.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-display-contents.js deleted file mode 100644 index c490cad4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-display-contents.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P","132":"Q H R S T U V W X","260":"0 1 2 3 4 5 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB 1C 2C","132":"iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC","260":"0 1 2 3 4 5 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B","132":"8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X","194":"3B UC 4B VC 5B 6B 7B","260":"0 1 2 3 4 5 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B 3C ZC 4C 5C 6C 7C aC","132":"C L M G NC OC 8C 9C AD bC cC PC BD","260":"RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","772":"QC dC eC fC gC hC CD"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB GD HD ID JD NC uC KD OC","132":"xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC","260":"0 1 2 3 4 5 JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"1":"RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD","132":"VD WD XD YD ZD aD","260":"bD cD dD eD bC cC PC fD","516":"dC eC fC gC hC gD","772":"QC"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC nD oD","260":"I"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","260":"H"},L:{"260":"I"},M:{"260":"MC"},N:{"2":"A B"},O:{"132":"PC"},P:{"2":"J pD qD rD sD","132":"tD aC uD vD wD xD","260":"6 7 8 9 AB BB CB DB EB FB yD QC RC SC zD"},Q:{"132":"0D"},R:{"260":"1D"},S:{"132":"2D","260":"3D"}},B:4,C:"CSS display: contents",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-element-function.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-element-function.js deleted file mode 100644 index 649adf9a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-element-function.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"33":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","164":"xC TC 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"33":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"33":"2D 3D"}},B:5,C:"CSS element() function",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-env-function.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-env-function.js deleted file mode 100644 index e3c9d061..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-env-function.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 1C 2C"},D:{"1":"0 1 2 3 4 5 CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC"},E:{"1":"C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC","132":"B"},F:{"1":"0 1 2 3 4 5 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B GD HD ID JD NC uC KD OC"},G:{"1":"VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD","132":"UD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD tD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:7,C:"CSS Environment Variables env()",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-exclusions.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-exclusions.js deleted file mode 100644 index 4779482e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-exclusions.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","33":"A B"},B:{"2":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","33":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"33":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"CSS Exclusions Level 1",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-featurequeries.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-featurequeries.js deleted file mode 100644 index 51070dd8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-featurequeries.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 xC TC J ZB K D E F A B C L M G N O P aB 1C 2C"},D:{"1":"0 1 2 3 4 5 EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F B C GD HD ID JD NC uC KD"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD"},H:{"1":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS Feature Queries",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-file-selector-button.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-file-selector-button.js deleted file mode 100644 index 5204668f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-file-selector-button.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{D:{"1":"0 1 2 3 4 5 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","33":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X"},L:{"1":"I"},B:{"1":"0 1 2 3 4 5 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","33":"C L M G N O P Q H R S T U V W X"},C:{"1":"0 1 2 3 4 5 WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R 1C 2C"},M:{"1":"MC"},A:{"2":"K D E F wC","33":"A B"},F:{"1":"0 1 2 3 4 5 IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","33":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC"},K:{"1":"H","2":"A B C NC uC OC"},E:{"1":"G 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED","2":"FD","33":"J ZB K D E F A B C L M 3C ZC 4C 5C 6C 7C aC NC OC 8C"},G:{"1":"dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","33":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD"},P:{"1":"6 7 8 9 AB BB CB DB EB FB yD QC RC SC zD","33":"J pD qD rD sD tD aC uD vD wD xD"},I:{"1":"I","2":"TC J jD kD lD mD vC","33":"nD oD"}},B:6,C:"::file-selector-button CSS pseudo-element",D:undefined}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-filter-function.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-filter-function.js deleted file mode 100644 index cd295fd5..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-filter-function.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E 3C ZC 4C 5C 6C","33":"F"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD","33":"QD RD"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"CSS filter() function",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-filters.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-filters.js deleted file mode 100644 index 8fb54d82..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-filters.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","1028":"L M G N O P","1346":"C"},C:{"1":"0 1 2 3 4 5 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C","196":"fB","516":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB 2C"},D:{"1":"0 1 2 3 4 5 yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L M G N O","33":"6 7 8 9 P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB"},E:{"1":"A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C","33":"K D E F 5C 6C"},F:{"1":"0 1 2 3 4 5 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","33":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB"},G:{"1":"RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD","33":"E ND OD PD QD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC","33":"nD oD"},J:{"2":"D","33":"A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB rD sD tD aC uD vD wD xD yD QC RC SC zD","33":"J pD qD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"CSS Filter Effects",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-first-letter.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-first-letter.js deleted file mode 100644 index 4e85a76e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-first-letter.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","16":"wC","516":"E","1540":"K D"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","132":"TC","260":"xC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"ZB K D E","132":"J"},E:{"1":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"ZB 3C","132":"J ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z KD OC","16":"F GD","260":"B HD ID JD NC uC"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC"},H:{"1":"iD"},I:{"1":"TC J I mD vC nD oD","16":"jD kD","132":"lD"},J:{"1":"D A"},K:{"1":"C H OC","260":"A B NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"::first-letter CSS pseudo-element selector",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-first-line.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-first-line.js deleted file mode 100644 index bae97155..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-first-line.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","132":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS first-line pseudo-element",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-fixed.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-fixed.js deleted file mode 100644 index 4bf9ebf5..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-fixed.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"D E F A B","2":"wC","8":"K"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","1025":"7C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC","132":"MD ND OD"},H:{"2":"iD"},I:{"1":"TC I nD oD","260":"jD kD lD","513":"J mD vC"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS position:fixed",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-focus-visible.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-focus-visible.js deleted file mode 100644 index cfadbb17..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-focus-visible.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P","328":"Q H R S T U"},C:{"1":"0 1 2 3 4 5 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C","161":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T"},D:{"1":"0 1 2 3 4 5 V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B","328":"AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U"},E:{"1":"cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C","578":"G AD bC"},F:{"1":"0 1 2 3 4 5 FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B GD HD ID JD NC uC KD OC","328":"9B AC BC CC DC EC"},G:{"1":"cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD","578":"eD bC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB xD yD QC RC SC zD","2":"J pD qD rD sD tD aC uD vD wD"},Q:{"2":"0D"},R:{"1":"1D"},S:{"161":"2D 3D"}},B:5,C:":focus-visible CSS pseudo-class",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-focus-within.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-focus-within.js deleted file mode 100644 index 3881aaef..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-focus-within.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB 1C 2C"},D:{"1":"0 1 2 3 4 5 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B","194":"UC"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB GD HD ID JD NC uC KD OC","194":"rB"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:7,C:":focus-within CSS pseudo-class",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-font-palette.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-font-palette.js deleted file mode 100644 index 51befcf9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-font-palette.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n"},C:{"1":"0 1 2 3 4 5 q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p 1C 2C"},D:{"1":"0 1 2 3 4 5 k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j"},E:{"1":"cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC"},F:{"1":"0 1 2 3 4 5 W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V GD HD ID JD NC uC KD OC"},G:{"1":"cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB zD","2":"J pD qD rD sD tD aC uD vD wD xD yD QC RC SC"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"CSS font-palette",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js deleted file mode 100644 index b099fc79..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB 1C 2C","194":"rB sB tB uB vB wB xB yB zB 0B 1B 2B"},D:{"1":"0 1 2 3 4 5 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB","66":"uB vB wB xB yB zB 0B 1B 2B 3B UC"},E:{"1":"C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B 3C ZC 4C 5C 6C 7C aC"},F:{"1":"0 1 2 3 4 5 sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB GD HD ID JD NC uC KD OC","66":"hB iB jB kB lB mB nB oB pB qB rB"},G:{"1":"VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB sD tD aC uD vD wD xD yD QC RC SC zD","2":"J","66":"pD qD rD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","194":"2D"}},B:5,C:"CSS font-display",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-font-stretch.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-font-stretch.js deleted file mode 100644 index 8d7c8dbf..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-font-stretch.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E 1C 2C"},D:{"1":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC"},F:{"1":"0 1 2 3 4 5 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB GD HD ID JD NC uC KD OC"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"CSS font-stretch",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-gencontent.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-gencontent.js deleted file mode 100644 index de493d7d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-gencontent.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D wC","132":"E"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS Generated content for pseudo-elements",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-gradients.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-gradients.js deleted file mode 100644 index c3abcc61..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-gradients.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C","260":"6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB","292":"J ZB K D E F A B C L M G 2C"},D:{"1":"0 1 2 3 4 5 CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","33":"6 7 8 9 A B C L M G N O P aB AB BB","548":"J ZB K D E F"},E:{"1":"cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C ZC","260":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC","292":"K 4C","804":"J ZB"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F B GD HD ID JD","33":"C KD","164":"NC uC"},G:{"1":"cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","260":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC","292":"MD ND","804":"ZC LD vC"},H:{"2":"iD"},I:{"1":"I nD oD","33":"J mD vC","548":"TC jD kD lD"},J:{"1":"A","548":"D"},K:{"1":"H OC","2":"A B","33":"C","164":"NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS Gradients",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-grid-animation.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-grid-animation.js deleted file mode 100644 index e43cf752..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-grid-animation.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p"},C:{"1":"0 1 2 3 4 5 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 1C 2C"},D:{"1":"0 1 2 3 4 5 q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p"},E:{"1":"QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD"},F:{"1":"0 1 2 3 4 5 c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b GD HD ID JD NC uC KD OC"},G:{"1":"QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"7 8 9 AB BB CB DB EB FB","2":"6 J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"1":"3D","2":"2D"}},B:4,C:"CSS Grid animation",D:false}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-grid.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-grid.js deleted file mode 100644 index 7f82f0ce..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-grid.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E wC","8":"F","292":"A B"},B:{"1":"0 1 2 3 4 5 N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","292":"C L M G"},C:{"1":"0 1 2 3 4 5 zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M G N O P 1C 2C","8":"6 7 8 9 aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB","584":"lB mB nB oB pB qB rB sB tB uB vB wB","1025":"xB yB"},D:{"1":"0 1 2 3 4 5 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB","8":"BB CB DB EB","200":"FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B","1025":"2B"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C","8":"K D E F A 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB GD HD ID JD NC uC KD OC","200":"EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD","8":"E ND OD PD QD RD SD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD","8":"vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"292":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"pD","8":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS Grid Layout (level 1)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js deleted file mode 100644 index 44b8faa0..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F 3C ZC 4C 5C 6C 7C","132":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD","132":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:4,C:"CSS hanging-punctuation",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-has.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-has.js deleted file mode 100644 index 59633786..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-has.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n"},C:{"1":"4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l 1C 2C","322":"0 1 2 3 m n o p q r s t u v w x y z"},D:{"1":"0 1 2 3 4 5 o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j","194":"k l m n"},E:{"1":"cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC"},F:{"1":"0 1 2 3 4 5 a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z GD HD ID JD NC uC KD OC"},G:{"1":"cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB","2":"J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:":has() CSS relational pseudo-class",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-hyphens.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-hyphens.js deleted file mode 100644 index 8911b981..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-hyphens.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","33":"A B"},B:{"1":"0 1 2 3 4 5 o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","33":"C L M G N O P","132":"Q H R S T U V W","260":"X Y Z a b c d e f g h i j k l m n"},C:{"1":"0 1 2 3 4 5 oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB 1C 2C","33":"6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB"},D:{"1":"0 1 2 3 4 5 X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB","132":"0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W"},E:{"1":"RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC","33":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD"},F:{"1":"0 1 2 3 4 5 a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB GD HD ID JD NC uC KD OC","132":"nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z"},G:{"1":"RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD","33":"E vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J","132":"pD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS Hyphenation",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-if.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-if.js deleted file mode 100644 index cb023f0a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-if.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"UB VB WB XB YB I","2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"UB VB WB XB YB I XC MC YC","2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"4 5","2":"0 1 2 3 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"CSS if() function",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-image-orientation.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-image-orientation.js deleted file mode 100644 index 998bab0b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-image-orientation.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H","257":"R S T U V W X"},C:{"1":"0 1 2 3 4 5 CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB 1C 2C"},D:{"1":"0 1 2 3 4 5 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H","257":"R S T U V W X"},E:{"1":"M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L 3C ZC 4C 5C 6C 7C aC NC OC"},F:{"1":"0 1 2 3 4 5 KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC GD HD ID JD NC uC KD OC","257":"BC CC DC EC FC GC HC IC JC"},G:{"1":"bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","132":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB yD QC RC SC zD","2":"J pD qD rD sD tD aC uD vD","257":"wD xD"},Q:{"2":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS3 image-orientation",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-image-set.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-image-set.js deleted file mode 100644 index c7a78f40..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-image-set.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P","164":"Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v","2049":"w"},C:{"1":"0 1 2 3 4 5 w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U 1C 2C","66":"V W","2305":"Y Z a b c d e f g h i j k l m n o p q r s t u v","2820":"X"},D:{"1":"0 1 2 3 4 5 x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 J ZB K D E F A B C L M G N O P aB","164":"7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v","2049":"w"},E:{"1":"RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C","132":"A B C L aC NC OC 8C","164":"K D E F 5C 6C 7C","1540":"M G 9C AD bC cC PC BD QC dC eC fC gC hC CD"},F:{"1":"0 1 2 3 4 5 j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","164":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h","2049":"i"},G:{"1":"RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD","132":"SD TD UD VD WD XD YD ZD aD bD","164":"E ND OD PD QD RD","1540":"cD dD eD bC cC PC fD QC dC eC fC gC hC gD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC","164":"nD oD"},J:{"2":"D","164":"A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"164":"PC"},P:{"1":"9 AB BB CB DB EB FB","164":"6 7 8 J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"164":"0D"},R:{"164":"1D"},S:{"2":"2D 3D"}},B:5,C:"CSS image-set",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-in-out-of-range.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-in-out-of-range.js deleted file mode 100644 index 52b6f34c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C","260":"L M G N O P"},C:{"1":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB 1C 2C","516":"FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB"},D:{"1":"0 1 2 3 4 5 yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J","16":"ZB K D E F A B C L M","260":"xB","772":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC","16":"ZB","772":"K D E F A 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","16":"F GD","260":"B C kB HD ID JD NC uC KD OC","772":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC","772":"E MD ND OD PD QD RD SD"},H:{"132":"iD"},I:{"1":"I","2":"TC jD kD lD","260":"J mD vC nD oD"},J:{"2":"D","260":"A"},K:{"1":"H","260":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","260":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","516":"2D"}},B:5,C:":in-range and :out-of-range CSS pseudo-classes",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js deleted file mode 100644 index 34cae099..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E wC","132":"A B","388":"F"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","132":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","16":"xC TC 1C 2C","132":"6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB","388":"J ZB"},D:{"1":"0 1 2 3 4 5 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M","132":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"J ZB K 3C ZC","132":"D E F A 5C 6C 7C","388":"4C"},F:{"1":"0 1 2 3 4 5 CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","16":"F B GD HD ID JD NC uC","132":"6 7 8 9 G N O P aB AB BB","516":"C KD OC"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC MD ND","132":"E OD PD QD RD SD"},H:{"516":"iD"},I:{"1":"I","16":"TC jD kD lD oD","132":"nD","388":"J mD vC"},J:{"16":"D","132":"A"},K:{"1":"H","16":"A B C NC uC","516":"OC"},L:{"1":"I"},M:{"1":"MC"},N:{"132":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","132":"2D"}},B:5,C:":indeterminate CSS pseudo-class",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-initial-letter.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-initial-letter.js deleted file mode 100644 index 7bf5c8fc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-initial-letter.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s","260":"0 1 2 3 4 5 t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s","260":"0 1 2 3 4 5 t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E 3C ZC 4C 5C 6C","260":"F","292":"qC rC sC tC ED FD","420":"A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g GD HD ID JD NC uC KD OC","260":"0 1 2 3 4 5 h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD","292":"qC rC sC tC","420":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC nD oD","260":"I"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","260":"H"},L:{"260":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","260":"7 8 9 AB BB CB DB EB FB"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"CSS Initial Letter",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-initial-value.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-initial-value.js deleted file mode 100644 index 3e2d1817..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-initial-value.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","33":"J ZB K D E F A B C L M G N O P 1C 2C","164":"xC TC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"3C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC"},H:{"2":"iD"},I:{"1":"TC J I lD mD vC nD oD","16":"jD kD"},J:{"1":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS initial value",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-lch-lab.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-lch-lab.js deleted file mode 100644 index fbb8ea1d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-lch-lab.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s","322":"t"},C:{"1":"0 1 2 3 4 5 w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t 1C 2C","194":"u v"},D:{"1":"0 1 2 3 4 5 u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s","322":"t"},E:{"1":"G AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C"},F:{"1":"0 1 2 3 4 5 h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g GD HD ID JD NC uC KD OC"},G:{"1":"eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"8 9 AB BB CB DB EB FB","2":"6 7 J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:4,C:"LCH and Lab color values",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-letter-spacing.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-letter-spacing.js deleted file mode 100644 index f4de2f47..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-letter-spacing.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","16":"wC","132":"K D E"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","132":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB"},E:{"1":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"3C","132":"J ZB K ZC 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","16":"F GD","132":"B C G N HD ID JD NC uC KD OC"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC"},H:{"2":"iD"},I:{"1":"I nD oD","16":"jD kD","132":"TC J lD mD vC"},J:{"132":"D A"},K:{"1":"H","132":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"letter-spacing CSS property",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-line-clamp.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-line-clamp.js deleted file mode 100644 index 2729b882..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-line-clamp.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N","33":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","129":"O P"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC 1C 2C","33":"0 1 2 3 4 5 BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"16":"J ZB K D E F A B C L","33":"0 1 2 3 4 5 6 7 8 9 M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J 3C ZC","33":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"F B C GD HD ID JD NC uC KD OC","33":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"ZC LD vC","33":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"16":"jD kD","33":"TC J I lD mD vC nD oD"},J:{"33":"D A"},K:{"2":"A B C NC uC OC","33":"H"},L:{"33":"I"},M:{"33":"MC"},N:{"2":"A B"},O:{"33":"PC"},P:{"33":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"33":"0D"},R:{"33":"1D"},S:{"2":"2D","33":"3D"}},B:5,C:"CSS line-clamp",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-logical-props.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-logical-props.js deleted file mode 100644 index 8e70ff7a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-logical-props.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P","1028":"W X","1540":"Q H R S T U V"},C:{"1":"0 1 2 3 4 5 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC","164":"6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB 1C 2C","1540":"mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B"},D:{"1":"0 1 2 3 4 5 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","292":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC","1028":"W X","1540":"CC DC EC FC GC HC IC JC KC LC Q H R S T U V"},E:{"1":"G AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","292":"J ZB K D E F A B C 3C ZC 4C 5C 6C 7C aC NC","1540":"L M OC 8C","3076":"9C"},F:{"1":"0 1 2 3 4 5 JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","292":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B","1028":"HC IC","1540":"1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC"},G:{"1":"eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","292":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD","1540":"XD YD ZD aD bD cD","3076":"dD"},H:{"2":"iD"},I:{"1":"I","292":"TC J jD kD lD mD vC nD oD"},J:{"292":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB yD QC RC SC zD","292":"J pD qD rD sD tD","1540":"aC uD vD wD xD"},Q:{"1540":"0D"},R:{"1":"1D"},S:{"1":"3D","1540":"2D"}},B:5,C:"CSS Logical Properties",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-marker-pseudo.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-marker-pseudo.js deleted file mode 100644 index 400ec4e1..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U"},C:{"1":"0 1 2 3 4 5 BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC 1C 2C"},D:{"1":"0 1 2 3 4 5 V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U"},E:{"1":"FD","2":"J ZB K D E F A B 3C ZC 4C 5C 6C 7C aC","132":"C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED"},F:{"1":"0 1 2 3 4 5 FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD","132":"VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB xD yD QC RC SC zD","2":"J pD qD rD sD tD aC uD vD wD"},Q:{"2":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:5,C:"CSS ::marker pseudo-element",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-masks.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-masks.js deleted file mode 100644 index c4f245b7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-masks.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"3 4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N","164":"0 1 2 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","3138":"O","12292":"P"},C:{"1":"0 1 2 3 4 5 yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC","260":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB 1C 2C"},D:{"1":"3 4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","164":"0 1 2 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},E:{"1":"cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C ZC","164":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC"},F:{"1":"0 1 2 3 4 5 p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","164":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o"},G:{"1":"cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","164":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC"},H:{"2":"iD"},I:{"1":"I","164":"nD oD","676":"TC J jD kD lD mD vC"},J:{"164":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"164":"PC"},P:{"1":"BB CB DB EB FB","164":"6 7 8 9 J AB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"164":"0D"},R:{"164":"1D"},S:{"1":"3D","260":"2D"}},B:4,C:"CSS Masks",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-matches-pseudo.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-matches-pseudo.js deleted file mode 100644 index d97f18d9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P","1220":"Q H R S T U V W"},C:{"1":"0 1 2 3 4 5 LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C","548":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC"},D:{"1":"0 1 2 3 4 5 X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M","164":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B","196":"8B 9B AC","1220":"BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W"},E:{"1":"M G 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC","16":"ZB","164":"K D E 4C 5C 6C","260":"F A B C L 7C aC NC OC 8C"},F:{"1":"0 1 2 3 4 5 IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","164":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB","196":"xB yB zB","1220":"0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC"},G:{"1":"cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC MD ND","164":"E OD PD","260":"QD RD SD TD UD VD WD XD YD ZD aD bD"},H:{"2":"iD"},I:{"1":"I","16":"TC jD kD lD","164":"J mD vC nD oD"},J:{"16":"D","164":"A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB yD QC RC SC zD","164":"J pD qD rD sD tD aC uD vD wD xD"},Q:{"1220":"0D"},R:{"1":"1D"},S:{"1":"3D","548":"2D"}},B:5,C:":is() CSS pseudo-class",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-math-functions.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-math-functions.js deleted file mode 100644 index 770b7a5d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-math-functions.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC 1C 2C"},D:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC"},E:{"1":"M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B 3C ZC 4C 5C 6C 7C aC","132":"C L NC OC"},F:{"1":"0 1 2 3 4 5 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B GD HD ID JD NC uC KD OC"},G:{"1":"bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD","132":"VD WD XD YD ZD aD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB vD wD xD yD QC RC SC zD","2":"J pD qD rD sD tD aC uD"},Q:{"2":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:5,C:"CSS math functions min(), max() and clamp()",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-media-interaction.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-media-interaction.js deleted file mode 100644 index 8ff2862a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-media-interaction.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 1C 2C"},D:{"1":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB GD HD ID JD NC uC KD OC"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:4,C:"Media Queries: interaction media features",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-media-range-syntax.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-media-range-syntax.js deleted file mode 100644 index 3b9095d7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m"},C:{"1":"0 1 2 3 4 5 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 1C 2C"},D:{"1":"0 1 2 3 4 5 n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m"},E:{"1":"gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC"},F:{"1":"0 1 2 3 4 5 a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z GD HD ID JD NC uC KD OC"},G:{"1":"gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB","2":"J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"1":"3D","2":"2D"}},B:4,C:"Media Queries: Range Syntax",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-media-resolution.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-media-resolution.js deleted file mode 100644 index 3a1ec0b9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-media-resolution.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E wC","132":"F A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","1028":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC","260":"J ZB K D E F A B C L M G 1C 2C","1028":"6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC"},D:{"1":"0 1 2 3 4 5 BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","548":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB","1028":"FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC"},E:{"1":"QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C ZC","548":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD"},F:{"1":"0 1 2 3 4 5 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F","548":"B C GD HD ID JD NC uC KD","1028":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB"},G:{"1":"QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC","548":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD"},H:{"132":"iD"},I:{"1":"I","16":"jD kD","548":"TC J lD mD vC","1028":"nD oD"},J:{"548":"D A"},K:{"1":"H OC","548":"A B C NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"132":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB aC uD vD wD xD yD QC RC SC zD","1028":"J pD qD rD sD tD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"Media Queries: resolution feature",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-media-scripting.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-media-scripting.js deleted file mode 100644 index 346c369d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-media-scripting.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"Media Queries: scripting media feature",D:false}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-mediaqueries.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-mediaqueries.js deleted file mode 100644 index 514afc96..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-mediaqueries.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"8":"K D E wC","129":"F A B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","2":"xC TC"},D:{"1":"0 1 2 3 4 5 CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","129":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB"},E:{"1":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","129":"J ZB K 4C","388":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","2":"F"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","129":"ZC LD vC MD ND"},H:{"1":"iD"},I:{"1":"I nD oD","129":"TC J jD kD lD mD vC"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"129":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS3 Media Queries",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-mixblendmode.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-mixblendmode.js deleted file mode 100644 index fa7c41fe..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-mixblendmode.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB 1C 2C"},D:{"1":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB","194":"FB bB cB dB eB fB gB hB iB jB kB lB"},E:{"2":"J ZB K D 3C ZC 4C 5C","260":"E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB GD HD ID JD NC uC KD OC"},G:{"2":"ZC LD vC MD ND OD","260":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"Blending of HTML/SVG elements",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-module-scripts.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-module-scripts.js deleted file mode 100644 index a49315c8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-module-scripts.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b","132":"0 1 2 3 4 5 c d e f g h i j k l m n o p q r s t u v w x y z"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b","132":"0 1 2 3 4 5 c d e f g h i j k l m n o p q r s t u v w x y z"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"16":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"194":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:1,C:"CSS Module Scripts",D:false}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-motion-paths.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-motion-paths.js deleted file mode 100644 index bd7c057e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-motion-paths.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC 1C 2C"},D:{"1":"0 1 2 3 4 5 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB","194":"oB pB qB"},E:{"1":"QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD"},F:{"1":"0 1 2 3 4 5 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB GD HD ID JD NC uC KD OC","194":"bB cB dB"},G:{"1":"QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:5,C:"CSS Motion Path",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-namespaces.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-namespaces.js deleted file mode 100644 index e3192455..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-namespaces.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS namespaces",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-nesting.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-nesting.js deleted file mode 100644 index 22e42bba..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-nesting.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"3 4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r","194":"s t u","516":"0 1 2 v w x y z"},C:{"1":"0 1 2 3 4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x 1C 2C","322":"y z"},D:{"1":"3 4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r","194":"s t u","516":"0 1 2 v w x y z"},E:{"1":"jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC","516":"hC CD RC iC"},F:{"1":"0 1 2 3 4 5 p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d GD HD ID JD NC uC KD OC","194":"e f g","516":"h i j k l m n o"},G:{"1":"jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC","516":"hC gD RC iC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"BB CB DB EB FB","2":"6 7 8 J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","516":"9 AB"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"CSS Nesting",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-not-sel-list.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-not-sel-list.js deleted file mode 100644 index 45c4ed12..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-not-sel-list.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P H R S T U V W","16":"Q"},C:{"1":"0 1 2 3 4 5 T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S 1C 2C"},D:{"1":"0 1 2 3 4 5 X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC GD HD ID JD NC uC KD OC"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB yD QC RC SC zD","2":"J pD qD rD sD tD aC uD vD wD xD"},Q:{"2":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:5,C:"selector list argument of :not()",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-nth-child-of.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-nth-child-of.js deleted file mode 100644 index 82b5a905..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-nth-child-of.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t"},C:{"1":"0 1 2 3 4 5 w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v 1C 2C"},D:{"1":"0 1 2 3 4 5 u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g GD HD ID JD NC uC KD OC"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"8 9 AB BB CB DB EB FB","2":"6 7 J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"selector list argument of :nth-child and :nth-last-child CSS pseudo-classes",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-opacity.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-opacity.js deleted file mode 100644 index f69b2c92..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-opacity.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","4":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS3 Opacity",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-optional-pseudo.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-optional-pseudo.js deleted file mode 100644 index 88c1407f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M"},E:{"1":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","16":"F GD","132":"B C HD ID JD NC uC KD OC"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC"},H:{"132":"iD"},I:{"1":"TC J I lD mD vC nD oD","16":"jD kD"},J:{"1":"D A"},K:{"1":"H","132":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:":optional CSS pseudo-class",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-overflow-anchor.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-overflow-anchor.js deleted file mode 100644 index e74f3fb2..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 1C 2C"},D:{"1":"0 1 2 3 4 5 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:5,C:"CSS overflow-anchor (Scroll Anchoring)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-overflow-overlay.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-overflow-overlay.js deleted file mode 100644 index b07ed192..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w","2":"C L M G N O P","130":"0 1 2 3 4 5 x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w","16":"J ZB K D E F A B C L M","130":"0 1 2 3 4 5 x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B 4C 5C 6C 7C aC NC","16":"3C ZC","130":"C L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i","2":"F B C GD HD ID JD NC uC KD OC","130":"0 1 2 3 4 5 j k l m n o p q r s t u v w x y z"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD","16":"ZC","130":"WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"TC J jD kD lD mD vC nD oD","130":"I"},J:{"16":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"130":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:7,C:"CSS overflow: overlay",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-overflow.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-overflow.js deleted file mode 100644 index 008fc00a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-overflow.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"388":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","260":"Q H R S T U V W X Y","388":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","260":"VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H","388":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B 1C 2C"},D:{"1":"0 1 2 3 4 5 Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","260":"BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y","388":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC"},E:{"1":"QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","260":"M G 8C 9C AD bC cC PC BD","388":"J ZB K D E F A B C L 3C ZC 4C 5C 6C 7C aC NC OC"},F:{"1":"0 1 2 3 4 5 JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","260":"0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC","388":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB GD HD ID JD NC uC KD OC"},G:{"1":"QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","260":"bD cD dD eD bC cC PC fD","388":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD"},H:{"388":"iD"},I:{"1":"I","388":"TC J jD kD lD mD vC nD oD"},J:{"388":"D A"},K:{"1":"H","388":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"388":"A B"},O:{"388":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB yD QC RC SC zD","388":"J pD qD rD sD tD aC uD vD wD xD"},Q:{"388":"0D"},R:{"1":"1D"},S:{"1":"3D","388":"2D"}},B:5,C:"CSS overflow property",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js deleted file mode 100644 index 659486a8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","132":"A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","132":"C L M G N O","516":"P"},C:{"1":"0 1 2 3 4 5 UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 1C 2C"},D:{"1":"0 1 2 3 4 5 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B","260":"6B 7B"},E:{"1":"QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M 3C ZC 4C 5C 6C 7C aC NC OC 8C","1090":"G 9C AD bC cC PC BD"},F:{"1":"0 1 2 3 4 5 xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB GD HD ID JD NC uC KD OC","260":"vB wB"},G:{"1":"QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD","1090":"dD eD bC cC PC fD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"132":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:5,C:"CSS overscroll-behavior",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-page-break.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-page-break.js deleted file mode 100644 index cf312be0..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-page-break.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"388":"A B","900":"K D E F wC"},B:{"388":"C L M G N O P","641":"0 1 2 3 4 5 r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","900":"Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q"},C:{"772":"0 1 2 3 4 5 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","900":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 1C 2C"},D:{"641":"0 1 2 3 4 5 r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","900":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q"},E:{"772":"A","900":"J ZB K D E F B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"16":"F GD","129":"B C HD ID JD NC uC KD OC","641":"0 1 2 3 4 5 d e f g h i j k l m n o p q r s t u v w x y z","900":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c"},G:{"900":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"129":"iD"},I:{"641":"I","900":"TC J jD kD lD mD vC nD oD"},J:{"900":"D A"},K:{"129":"A B C NC uC OC","641":"H"},L:{"900":"I"},M:{"772":"MC"},N:{"388":"A B"},O:{"900":"PC"},P:{"641":"7 8 9 AB BB CB DB EB FB","900":"6 J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"900":"0D"},R:{"900":"1D"},S:{"772":"3D","900":"2D"}},B:2,C:"CSS page-break properties",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-paged-media.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-paged-media.js deleted file mode 100644 index 90b7a35e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-paged-media.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D wC","132":"E F A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","132":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M G N O P 1C 2C","132":"6 7 8 9 aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M"},E:{"1":"oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","132":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC"},H:{"16":"iD"},I:{"16":"TC J I jD kD lD mD vC nD oD"},J:{"16":"D A"},K:{"1":"H","16":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"258":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"132":"2D 3D"}},B:5,C:"CSS Paged Media (@page)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-paint-api.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-paint-api.js deleted file mode 100644 index f320ccf9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-paint-api.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B"},E:{"2":"J ZB K D E F A B C 3C ZC 4C 5C 6C 7C aC NC","194":"L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:4,C:"CSS Painting API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-placeholder-shown.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-placeholder-shown.js deleted file mode 100644 index 666b86b1..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","292":"A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C","164":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB"},D:{"1":"0 1 2 3 4 5 sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB GD HD ID JD NC uC KD OC"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","164":"2D"}},B:5,C:":placeholder-shown CSS pseudo-class",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-placeholder.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-placeholder.js deleted file mode 100644 index f0e0f8e4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-placeholder.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","36":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","33":"6 7 8 9 aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB","130":"xC TC J ZB K D E F A B C L M G N O P 1C 2C"},D:{"1":"0 1 2 3 4 5 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","36":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC","36":"ZB K D E F A 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","36":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD","36":"E vC MD ND OD PD QD RD SD"},H:{"2":"iD"},I:{"1":"I","36":"TC J jD kD lD mD vC nD oD"},J:{"36":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"36":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB rD sD tD aC uD vD wD xD yD QC RC SC zD","36":"J pD qD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","33":"2D"}},B:5,C:"::placeholder CSS pseudo-element",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-print-color-adjust.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-print-color-adjust.js deleted file mode 100644 index adf79d9b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{D:{"1":"TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L M G N","33":"0 1 2 3 4 5 6 7 8 9 O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB"},L:{"1":"I"},B:{"1":"TB UB VB WB XB YB I","2":"C L M G N O P","33":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB"},C:{"1":"0 1 2 3 4 5 g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB 1C 2C","33":"tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f"},M:{"1":"MC"},A:{"2":"K D E F A B wC"},F:{"1":"4 5","2":"F B C GD HD ID JD NC uC KD OC","33":"0 1 2 3 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},K:{"2":"A B C NC uC OC","33":"H"},E:{"1":"cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED","2":"J ZB 3C ZC 4C FD","33":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC"},G:{"1":"cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD","33":"E ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC"},P:{"1":"FB","33":"6 7 8 9 J AB BB CB DB EB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},I:{"1":"I","2":"TC J jD kD lD mD vC","33":"nD oD"}},B:6,C:"print-color-adjust property",D:undefined}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-read-only-write.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-read-only-write.js deleted file mode 100644 index 63bf8675..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-read-only-write.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C"},C:{"1":"0 1 2 3 4 5 LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","16":"xC","33":"6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC 1C 2C"},D:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M","132":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"3C ZC","132":"J ZB K D E 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","16":"F B GD HD ID JD NC","132":"6 7 8 C G N O P aB uC KD OC"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD","132":"E vC MD ND OD PD"},H:{"2":"iD"},I:{"1":"I","16":"jD kD","132":"TC J lD mD vC nD oD"},J:{"1":"A","132":"D"},K:{"1":"H","2":"A B NC","132":"C uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","33":"2D"}},B:1,C:"CSS :read-only and :read-write selectors",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-rebeccapurple.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-rebeccapurple.js deleted file mode 100644 index 55f3ac6d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A wC","132":"B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB 1C 2C"},D:{"1":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB"},E:{"1":"D E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C","16":"5C"},F:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB GD HD ID JD NC uC KD OC"},G:{"1":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND OD"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"Rebeccapurple color",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-reflections.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-reflections.js deleted file mode 100644 index f52ff845..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-reflections.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P","33":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"33":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"3C ZC","33":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"F B C GD HD ID JD NC uC KD OC","33":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"33":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"33":"TC J I jD kD lD mD vC nD oD"},J:{"33":"D A"},K:{"2":"A B C NC uC OC","33":"H"},L:{"33":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"33":"PC"},P:{"33":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"33":"0D"},R:{"33":"1D"},S:{"2":"2D 3D"}},B:7,C:"CSS Reflections",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-regions.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-regions.js deleted file mode 100644 index 5a64665c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-regions.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","420":"A B"},B:{"2":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","420":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 J ZB K D E F A B C L M gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","36":"G N O P","66":"6 7 8 9 aB AB BB CB DB EB FB bB cB dB eB fB"},E:{"2":"J ZB K C L M G 3C ZC 4C NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","33":"D E F A B 5C 6C 7C aC"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"ZC LD vC MD ND VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","33":"E OD PD QD RD SD TD UD"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"420":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"CSS Regions",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-relative-colors.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-relative-colors.js deleted file mode 100644 index 2ab00b01..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-relative-colors.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"OB PB QB RB SB TB UB VB WB XB YB I","2":"0 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","194":"1","260":"2 3 4 5 GB HB IB JB KB LB MB NB"},C:{"1":"QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB 1C 2C","260":"LB MB NB OB PB"},D:{"1":"OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"0 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","194":"1","260":"2 3 4 5 GB HB IB JB KB LB MB NB"},E:{"1":"SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC","260":"gC hC CD RC iC jC kC lC mC DD"},F:{"1":"0 1 2 3 4 5","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m GD HD ID JD NC uC KD OC","194":"n o","260":"p q r s t u v w x y z"},G:{"1":"SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC","260":"gC hC gD RC iC jC kC lC mC hD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","260":"H"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","260":"BB CB DB EB FB"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"CSS Relative color syntax",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-repeating-gradients.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-repeating-gradients.js deleted file mode 100644 index 98243e64..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C","33":"J ZB K D E F A B C L M G 2C"},D:{"1":"0 1 2 3 4 5 CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F","33":"6 7 8 9 A B C L M G N O P aB AB BB"},E:{"1":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC","33":"K 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F B GD HD ID JD","33":"C KD","36":"NC uC"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC","33":"MD ND"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC jD kD lD","33":"J mD vC"},J:{"1":"A","2":"D"},K:{"1":"H OC","2":"A B","33":"C","36":"NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS Repeating Gradients",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-resize.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-resize.js deleted file mode 100644 index 3893aa84..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-resize.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C","33":"J"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD","132":"OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:2,C:"CSS resize property",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-revert-value.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-revert-value.js deleted file mode 100644 index c34f573f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-revert-value.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S"},C:{"1":"0 1 2 3 4 5 AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B 1C 2C"},D:{"1":"0 1 2 3 4 5 T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S"},E:{"1":"A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GD HD ID JD NC uC KD OC"},G:{"1":"RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB xD yD QC RC SC zD","2":"J pD qD rD sD tD aC uD vD wD"},Q:{"2":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:4,C:"CSS revert value",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-rrggbbaa.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-rrggbbaa.js deleted file mode 100644 index f7dc227f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB 1C 2C"},D:{"1":"0 1 2 3 4 5 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB","194":"xB yB zB 0B 1B 2B 3B UC 4B VC"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB GD HD ID JD NC uC KD OC","194":"kB lB mB nB oB pB qB rB sB tB uB vB wB"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB sD tD aC uD vD wD xD yD QC RC SC zD","2":"J","194":"pD qD rD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:4,C:"#rrggbbaa hex color notation",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-scroll-behavior.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-scroll-behavior.js deleted file mode 100644 index 9f158b40..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P","129":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB 1C 2C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB","129":"0 1 2 3 4 5 VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","450":"mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B"},E:{"1":"cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L 3C ZC 4C 5C 6C 7C aC NC OC 8C","578":"M G 9C AD bC"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB GD HD ID JD NC uC KD OC","129":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","450":"EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB"},G:{"1":"cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD","578":"dD eD bC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"129":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD"},Q:{"129":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:5,C:"CSS Scroll-behavior",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-scrollbar.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-scrollbar.js deleted file mode 100644 index 38ee9c60..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-scrollbar.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"132":"K D E F A B wC"},B:{"1":"4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P","292":"0 1 2 3 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},C:{"1":"0 1 2 3 4 5 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 1C 2C","3138":"6B"},D:{"1":"4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","292":"0 1 2 3 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},E:{"16":"J ZB 3C ZC","292":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","292":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p"},G:{"2":"cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC MD ND","292":"OD","804":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD"},H:{"2":"iD"},I:{"16":"jD kD","292":"TC J I lD mD vC nD oD"},J:{"292":"D A"},K:{"2":"A B C NC uC OC","292":"H"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"292":"PC"},P:{"1":"BB CB DB EB FB","292":"6 7 8 9 J AB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"292":"0D"},R:{"292":"1D"},S:{"2":"2D 3D"}},B:4,C:"CSS scrollbar styling",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-sel2.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-sel2.js deleted file mode 100644 index 135df86c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-sel2.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"D E F A B","2":"wC","8":"K"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS 2.1 selectors",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-sel3.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-sel3.js deleted file mode 100644 index da9010f0..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-sel3.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"wC","8":"K","132":"D E"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","2":"xC TC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","2":"F"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS3 selectors",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-selection.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-selection.js deleted file mode 100644 index e84a4631..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-selection.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","33":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","2":"F"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"A","2":"D"},K:{"1":"C H uC OC","16":"A B NC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","33":"2D"}},B:5,C:"::selection CSS pseudo-element",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-shapes.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-shapes.js deleted file mode 100644 index b0d52a74..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-shapes.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB 1C 2C","322":"wB xB yB zB 0B 1B 2B 3B UC 4B VC"},D:{"1":"0 1 2 3 4 5 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB","194":"fB gB hB"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D 3C ZC 4C 5C","33":"E F A 6C 7C"},F:{"1":"0 1 2 3 4 5 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB GD HD ID JD NC uC KD OC"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND OD","33":"E PD QD RD SD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:4,C:"CSS Shapes Level 1",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-snappoints.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-snappoints.js deleted file mode 100644 index 01fd7056..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-snappoints.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","6308":"A","6436":"B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","6436":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB 1C 2C","2052":"kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC"},D:{"1":"0 1 2 3 4 5 CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B","8258":"9B AC BC"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E 3C ZC 4C 5C 6C","3108":"F A 7C aC"},F:{"1":"0 1 2 3 4 5 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB GD HD ID JD NC uC KD OC","8258":"zB 0B 1B 2B 3B 4B 5B 6B"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD","3108":"QD RD SD TD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD tD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2052":"2D"}},B:4,C:"CSS Scroll Snap",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-sticky.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-sticky.js deleted file mode 100644 index c07305f4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-sticky.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G","1028":"Q H R S T U V W X Y Z","4100":"N O P"},C:{"1":"0 1 2 3 4 5 UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB 1C 2C","194":"CB DB EB FB bB cB","516":"dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B"},D:{"1":"0 1 2 3 4 5 a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 J ZB K D E F A B C L M G N O P aB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB","322":"9 AB BB CB DB EB FB bB cB dB eB fB gB hB xB yB zB 0B","1028":"1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z"},E:{"1":"L M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C","33":"E F A B C 6C 7C aC NC OC","2084":"D 5C"},F:{"1":"0 1 2 3 4 5 LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB GD HD ID JD NC uC KD OC","322":"kB lB mB","1028":"nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC"},G:{"1":"YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD","33":"E PD QD RD SD TD UD VD WD XD","2084":"ND OD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD"},Q:{"1028":"0D"},R:{"1":"1D"},S:{"1":"3D","516":"2D"}},B:5,C:"CSS position:sticky",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-subgrid.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-subgrid.js deleted file mode 100644 index 5931c8ad..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-subgrid.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w","194":"x y z"},C:{"1":"0 1 2 3 4 5 EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC 1C 2C"},D:{"1":"0 1 2 3 4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w","194":"x y z"},E:{"1":"QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD"},F:{"1":"0 1 2 3 4 5 m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i GD HD ID JD NC uC KD OC","194":"j k l"},G:{"1":"QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"AB BB CB DB EB FB","2":"6 7 8 9 J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"1":"3D","2":"2D"}},B:4,C:"CSS Subgrid",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-supports-api.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-supports-api.js deleted file mode 100644 index ad0f6fe8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-supports-api.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","260":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M G N O P aB 1C 2C","66":"6 7","260":"8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB"},D:{"1":"0 1 2 3 4 5 VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB","260":"EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD","132":"OC"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD"},H:{"132":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC","132":"OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS.supports() API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-table.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-table.js deleted file mode 100644 index 3baaa179..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-table.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"E F A B","2":"K D wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","132":"xC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS Table display",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-align-last.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-align-last.js deleted file mode 100644 index 33686cba..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-align-last.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"132":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","4":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B 1C 2C","33":"6 7 8 9 C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB"},D:{"1":"0 1 2 3 4 5 sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB","322":"gB hB iB jB kB lB mB nB oB pB qB rB"},E:{"1":"QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD"},F:{"1":"0 1 2 3 4 5 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 F B C G N O P aB GD HD ID JD NC uC KD OC","578":"8 9 AB BB CB DB EB FB bB cB dB eB"},G:{"1":"QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"132":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","33":"2D"}},B:4,C:"CSS3 text-align-last",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-box-trim.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-box-trim.js deleted file mode 100644 index 8986c905..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-box-trim.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"PB QB RB SB TB UB VB WB XB YB I","2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB","322":"LB MB NB OB"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"QB RB SB TB UB VB WB XB YB I XC MC YC","2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB","322":"LB MB NB OB PB"},E:{"1":"oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC","194":"gC hC CD RC iC jC kC lC mC DD SC nC"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","322":"0 1 2 3 4 5"},G:{"1":"oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC","194":"gC hC gD RC iC jC kC lC mC hD SC nC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"CSS Text Box",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-indent.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-indent.js deleted file mode 100644 index 368b4ea9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-indent.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"132":"K D E F A B wC"},B:{"132":"C L M G N O P","388":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","132":"0 1 2 3 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 1C 2C"},D:{"132":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB","388":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","132":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD"},F:{"132":"6 7 8 9 F B C G N O P aB AB GD HD ID JD NC uC KD OC","388":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"1":"QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","132":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD"},H:{"132":"iD"},I:{"132":"TC J jD kD lD mD vC nD oD","388":"I"},J:{"132":"D A"},K:{"132":"A B C NC uC OC","388":"H"},L:{"388":"I"},M:{"1":"MC"},N:{"132":"A B"},O:{"388":"PC"},P:{"132":"J","388":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"388":"0D"},R:{"388":"1D"},S:{"132":"2D 3D"}},B:4,C:"CSS text-indent",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-justify.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-justify.js deleted file mode 100644 index a88b2c0a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-justify.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"16":"K D wC","132":"E F A B"},B:{"132":"C L M G N O P","322":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB 1C 2C","1025":"0 1 2 3 4 5 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","1602":"zB"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB","322":"0 1 2 3 4 5 oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB GD HD ID JD NC uC KD OC","322":"0 1 2 3 4 5 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC nD oD","322":"I"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","322":"H"},L:{"322":"I"},M:{"1025":"MC"},N:{"132":"A B"},O:{"322":"PC"},P:{"2":"J","322":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"322":"0D"},R:{"322":"1D"},S:{"2":"2D","1025":"3D"}},B:4,C:"CSS text-justify",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-orientation.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-orientation.js deleted file mode 100644 index ea7e2ced..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-orientation.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB 1C 2C","194":"jB kB lB"},D:{"1":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB"},E:{"1":"M G 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C 7C","16":"A","33":"B C L aC NC OC 8C"},F:{"1":"0 1 2 3 4 5 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB GD HD ID JD NC uC KD OC"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS text-orientation",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-spacing.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-spacing.js deleted file mode 100644 index 6b993af2..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-spacing.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D wC","161":"E F A B"},B:{"2":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","161":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"16":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"CSS Text 4 text-spacing",D:false}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js deleted file mode 100644 index 25148bc3..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w","132":"0 1 2 3 4 5 x y z GB HB IB JB KB LB MB"},C:{"1":"4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"0 1 2 3 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 1C 2C"},D:{"1":"NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w","132":"0 1 2 3 4 5 x y z GB HB IB JB KB LB MB"},E:{"1":"mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC"},F:{"1":"0 1 2 3 4 5 z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h GD HD ID JD NC uC KD OC","132":"i j k l m n o p q r s t u v w x y"},G:{"1":"mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","132":"H"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","132":"9 AB BB CB DB EB FB"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"CSS text-wrap: balance",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-textshadow.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-textshadow.js deleted file mode 100644 index 9b8fa199..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-textshadow.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","129":"A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","129":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","2":"xC TC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","260":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","2":"F"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"4":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"A","4":"D"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"129":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS3 Text-shadow",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-touch-action.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-touch-action.js deleted file mode 100644 index 81613d9a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-touch-action.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","2":"K D E F wC","289":"A"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB 1C 2C","194":"FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB","1025":"xB yB zB 0B 1B"},D:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB"},E:{"2050":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 F B C G N O P aB GD HD ID JD NC uC KD OC"},G:{"1":"YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD","516":"RD SD TD UD VD WD XD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","289":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","194":"2D"}},B:2,C:"CSS touch-action property",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-transitions.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-transitions.js deleted file mode 100644 index 3dbfc030..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-transitions.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C","33":"ZB K D E F A B C L M G","164":"J"},D:{"1":"0 1 2 3 4 5 CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","33":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB"},E:{"1":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","33":"K 4C","164":"J ZB 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F GD HD","33":"C","164":"B ID JD NC uC KD"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","33":"ND","164":"ZC LD vC MD"},H:{"2":"iD"},I:{"1":"I nD oD","33":"TC J jD kD lD mD vC"},J:{"1":"A","33":"D"},K:{"1":"H OC","33":"C","164":"A B NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"CSS3 Transitions",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-unicode-bidi.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-unicode-bidi.js deleted file mode 100644 index e049ea44..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"132":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","132":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","33":"6 7 8 9 O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB","132":"xC TC J ZB K D E F 1C 2C","292":"A B C L M G N"},D:{"1":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","132":"J ZB K D E F A B C L M G N","548":"6 7 8 9 O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB"},E:{"132":"J ZB K D E 3C ZC 4C 5C 6C","548":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"132":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"132":"E ZC LD vC MD ND OD PD","548":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"16":"iD"},I:{"1":"I","16":"TC J jD kD lD mD vC nD oD"},J:{"16":"D A"},K:{"1":"H","16":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"132":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","16":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","33":"2D"}},B:4,C:"CSS unicode-bidi property",D:false}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-unset-value.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-unset-value.js deleted file mode 100644 index ad8a250b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-unset-value.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C"},C:{"1":"0 1 2 3 4 5 DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB 1C 2C"},D:{"1":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB"},E:{"1":"A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB GD HD ID JD NC uC KD OC"},G:{"1":"RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS unset value",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-variables.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-variables.js deleted file mode 100644 index b5842b98..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-variables.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M","260":"G"},C:{"1":"0 1 2 3 4 5 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB 1C 2C"},D:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB","194":"tB"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C","260":"7C"},F:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB GD HD ID JD NC uC KD OC","194":"gB"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD","260":"RD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS Variables (Custom Properties)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-when-else.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-when-else.js deleted file mode 100644 index 75ffed5c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-when-else.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"CSS @when / @else conditional rules",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-widows-orphans.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-widows-orphans.js deleted file mode 100644 index 7f179450..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-widows-orphans.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D wC","129":"E F"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB"},E:{"1":"D E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C 5C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","129":"F B GD HD ID JD NC uC KD"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND"},H:{"1":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"2":"D A"},K:{"1":"H OC","2":"A B C NC uC"},L:{"1":"I"},M:{"2":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:2,C:"CSS widows & orphans",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-width-stretch.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-width-stretch.js deleted file mode 100644 index 4fdb189f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-width-stretch.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{D:{"1":"VB WB XB YB I XC MC YC","2":"6 7 J ZB K D E F A B C L M G N O P aB","33":"0 1 2 3 4 5 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB"},L:{"1":"I"},B:{"1":"VB WB XB YB I","2":"C L M G N O P","33":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC 1C 2C","33":"yC zC 0C"},M:{"2":"MC"},A:{"2":"K D E F A B wC"},F:{"1":"5","2":"F B C GD HD ID JD NC uC KD OC","33":"0 1 2 3 4 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},K:{"2":"A B C NC uC OC","33":"H"},E:{"2":"J ZB K 3C ZC 4C 5C FD","33":"D E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED"},G:{"2":"ZC LD vC MD ND","33":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},P:{"2":"J","33":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},I:{"1":"I","2":"TC J jD kD lD mD vC","33":"nD oD"}},B:6,C:"width: stretch property",D:undefined}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-writing-mode.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-writing-mode.js deleted file mode 100644 index babb3adc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-writing-mode.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"132":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB 1C 2C","322":"hB iB jB kB lB"},D:{"1":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K","16":"D","33":"6 7 8 9 E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC","16":"ZB","33":"K D E F A 4C 5C 6C 7C aC"},F:{"1":"0 1 2 3 4 5 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","33":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC","33":"E MD ND OD PD QD RD SD TD"},H:{"2":"iD"},I:{"1":"I","2":"jD kD lD","33":"TC J mD vC nD oD"},J:{"33":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"36":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","33":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS writing-mode property",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-zoom.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-zoom.js deleted file mode 100644 index 81360597..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css-zoom.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"K D wC","129":"E F A B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC"},H:{"2":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"129":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:5,C:"CSS zoom",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-attr.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-attr.js deleted file mode 100644 index fa5e450a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-attr.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"QB RB SB TB UB VB WB XB YB I","2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"QB RB SB TB UB VB WB XB YB I XC MC YC","2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"CSS3 attr() function for all properties",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-boxsizing.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-boxsizing.js deleted file mode 100644 index 5278811a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-boxsizing.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"E F A B","8":"K D wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","33":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","33":"J ZB K D E F"},E:{"1":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","33":"J ZB 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","2":"F"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","33":"ZC LD vC"},H:{"1":"iD"},I:{"1":"J I mD vC nD oD","33":"TC jD kD lD"},J:{"1":"A","33":"D"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"CSS3 Box-sizing",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-colors.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-colors.js deleted file mode 100644 index 6381dbd5..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-colors.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","4":"xC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z HD ID JD NC uC KD OC","2":"F","4":"GD"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS3 Colors",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-cursors-grab.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-cursors-grab.js deleted file mode 100644 index e5ebe1ea..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M"},C:{"1":"0 1 2 3 4 5 DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","33":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB 1C 2C"},D:{"1":"0 1 2 3 4 5 BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","33":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","33":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC"},F:{"1":"0 1 2 3 4 5 C 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z KD OC","2":"F B GD HD ID JD NC uC","33":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"33":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:2,C:"CSS grab & grabbing cursors",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-cursors-newer.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-cursors-newer.js deleted file mode 100644 index c8085e2e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","33":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB 1C 2C"},D:{"1":"0 1 2 3 4 5 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","33":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","33":"J ZB K D E 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 C AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z KD OC","2":"F B GD HD ID JD NC uC","33":"6 7 8 9 G N O P aB"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"33":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:2,C:"CSS3 Cursors: zoom-in & zoom-out",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-cursors.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-cursors.js deleted file mode 100644 index 898861bf..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-cursors.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","132":"K D E wC"},B:{"1":"0 1 2 3 4 5 M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","260":"C L"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","4":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","4":"J"},E:{"1":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","4":"J 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","260":"F B C GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D","16":"A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:2,C:"CSS3 Cursors (original values)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-tabsize.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-tabsize.js deleted file mode 100644 index f7da0e7a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/css3-tabsize.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C","33":"yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z","164":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB"},D:{"1":"0 1 2 3 4 5 nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 J ZB K D E F A B C L M G N O P aB","132":"7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB"},E:{"1":"M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C","132":"D E F A B C L 5C 6C 7C aC NC OC"},F:{"1":"0 1 2 3 4 5 FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F GD HD ID","132":"6 7 8 9 G N O P aB AB BB CB DB EB","164":"B C JD NC uC KD OC"},G:{"1":"bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND","132":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD"},H:{"164":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC","132":"nD oD"},J:{"132":"D A"},K:{"1":"H","2":"A","164":"B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"164":"2D 3D"}},B:4,C:"CSS3 tab-size",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/currentcolor.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/currentcolor.js deleted file mode 100644 index d8c39301..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/currentcolor.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","2":"F"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS currentColor value",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/custom-elements.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/custom-elements.js deleted file mode 100644 index b07a4b10..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/custom-elements.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","8":"A B"},B:{"1":"Q","2":"0 1 2 3 4 5 H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","8":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 xC TC J ZB K D E F A B C L M G N O P aB UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","66":"9 AB BB CB DB EB FB","72":"bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B"},D:{"1":"eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q","2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","66":"DB EB FB bB cB dB"},E:{"2":"J ZB 3C ZC 4C","8":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"6 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B","2":"0 1 2 3 4 5 F B C AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","66":"G N O P aB"},G:{"2":"ZC LD vC MD ND","8":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"oD","2":"TC J I jD kD lD mD vC nD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"J pD qD rD sD tD aC uD vD","2":"6 7 8 9 AB BB CB DB EB FB wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"2":"1D"},S:{"2":"3D","72":"2D"}},B:7,C:"Custom Elements (deprecated V0 spec)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/custom-elementsv1.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/custom-elementsv1.js deleted file mode 100644 index c6311d3e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/custom-elementsv1.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","8":"A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","8":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB 1C 2C","8":"bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB","456":"vB wB xB yB zB 0B 1B 2B 3B","712":"UC 4B VC 5B"},D:{"1":"0 1 2 3 4 5 AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB","8":"xB yB","132":"zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B"},E:{"2":"J ZB K D 3C ZC 4C 5C 6C","8":"E F A 7C","132":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB GD HD ID JD NC uC KD OC","132":"mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD","132":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J","132":"pD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","8":"2D"}},B:1,C:"Custom Elements (V1)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/customevent.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/customevent.js deleted file mode 100644 index 821f4ffc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/customevent.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E wC","132":"F A B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB 1C 2C","132":"K D E F A"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J","16":"ZB K D E L M","388":"F A B C"},E:{"1":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC","16":"ZB K","388":"4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z KD OC","2":"F GD HD ID JD","132":"B NC uC"},G:{"1":"E ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"LD","16":"ZC vC","388":"MD"},H:{"1":"iD"},I:{"1":"I nD oD","2":"jD kD lD","388":"TC J mD vC"},J:{"1":"A","388":"D"},K:{"1":"C H OC","2":"A","132":"B NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"132":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"CustomEvent",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/datalist.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/datalist.js deleted file mode 100644 index 58a0591f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/datalist.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"wC","8":"K D E F","260":"A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","260":"C L M G","1284":"N O P"},C:{"8":"xC TC 1C 2C","516":"l m n o p q r s","4612":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k","8196":"0 1 2 3 4 5 t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"0 1 2 3 4 5 CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","8":"J ZB K D E F A B C L M G N O P aB","132":"6 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC"},E:{"1":"L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","8":"J ZB K D E F A B C 3C ZC 4C 5C 6C 7C aC NC"},F:{"1":"0 1 2 3 4 5 F B C 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","132":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B"},G:{"8":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD","18436":"XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I oD","8":"TC J jD kD lD mD vC nD"},J:{"1":"A","8":"D"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"8":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:1,C:"Datalist element",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/dataset.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/dataset.js deleted file mode 100644 index 724e1c1c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/dataset.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","4":"K D E F A wC"},B:{"1":"C L M G N","129":"0 1 2 3 4 5 O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB","4":"xC TC J ZB 1C 2C","129":"0 1 2 3 4 5 wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"qB rB sB tB uB vB wB xB yB zB","4":"J ZB K","129":"0 1 2 3 4 5 6 7 8 9 D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"4":"J ZB 3C ZC","129":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"C dB eB fB gB hB iB jB kB lB mB NC uC KD OC","4":"F B GD HD ID JD","129":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"4":"ZC LD vC","129":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"4":"iD"},I:{"4":"jD kD lD","129":"TC J I mD vC nD oD"},J:{"129":"D A"},K:{"1":"C NC uC OC","4":"A B","129":"H"},L:{"129":"I"},M:{"129":"MC"},N:{"1":"B","4":"A"},O:{"129":"PC"},P:{"129":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"129":"0D"},R:{"129":"1D"},S:{"1":"2D","129":"3D"}},B:1,C:"dataset & data-* attributes",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/datauri.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/datauri.js deleted file mode 100644 index a5ca081c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/datauri.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D wC","132":"E","260":"F A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","260":"C L G N O P","772":"M"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"260":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"Data URIs",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js deleted file mode 100644 index e6752b0b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"16":"wC","132":"K D E F A B"},B:{"1":"0 1 2 3 4 5 P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","132":"C L M G N O"},C:{"1":"0 1 2 3 4 5 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","132":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB 1C 2C","260":"xB yB zB 0B","772":"FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB"},D:{"1":"0 1 2 3 4 5 DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","132":"6 7 8 9 J ZB K D E F A B C L M G N O P aB","260":"jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC","772":"AB BB CB DB EB FB bB cB dB eB fB gB hB iB"},E:{"1":"C L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"J ZB 3C ZC","132":"K D E F A 4C 5C 6C 7C","260":"B aC NC"},F:{"1":"0 1 2 3 4 5 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","16":"F B C GD HD ID JD NC uC KD","132":"OC","260":"BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B","772":"6 7 8 9 G N O P aB AB"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC MD","132":"E ND OD PD QD RD SD"},H:{"132":"iD"},I:{"1":"I","16":"TC jD kD lD","132":"J mD vC","772":"nD oD"},J:{"132":"D A"},K:{"1":"H","16":"A B C NC uC","132":"OC"},L:{"1":"I"},M:{"1":"MC"},N:{"132":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB tD aC uD vD wD xD yD QC RC SC zD","260":"J pD qD rD sD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","132":"2D"}},B:6,C:"Date.prototype.toLocaleDateString",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js deleted file mode 100644 index 3d622cf9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z","132":"a b c d e f g h i j k l m n o p q r s t"},C:{"1":"GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 1C 2C"},D:{"1":"0 1 2 3 4 5 u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T","66":"U V W X Y","132":"Z a b c d e f g h i j k l m n o p q r s t"},E:{"1":"gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC"},F:{"1":"0 1 2 3 4 5 g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC GD HD ID JD NC uC KD OC","132":"KC LC Q H R WC S T U V W X Y Z a b c d e f"},G:{"1":"gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"8 9 AB BB CB DB EB FB","2":"J pD qD rD sD tD aC uD vD wD xD","16":"yD","132":"6 7 QC RC SC zD"},Q:{"2":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:1,C:"Declarative Shadow DOM",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/decorators.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/decorators.js deleted file mode 100644 index aecddd05..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/decorators.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"Decorators",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/details.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/details.js deleted file mode 100644 index e3ac3e94..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/details.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"F A B wC","8":"K D E"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC","8":"6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB 1C 2C","194":"sB tB"},D:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","8":"J ZB K D E F A B","257":"6 7 8 9 aB AB BB CB DB EB FB bB cB dB eB fB gB","769":"C L M G N O P"},E:{"1":"C L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","8":"J ZB 3C ZC 4C","257":"K D E F A 5C 6C 7C","1025":"B aC NC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"C NC uC KD OC","8":"F B GD HD ID JD"},G:{"1":"E ND OD PD QD RD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","8":"ZC LD vC MD","1025":"SD TD UD"},H:{"8":"iD"},I:{"1":"J I mD vC nD oD","8":"TC jD kD lD"},J:{"1":"A","8":"D"},K:{"1":"H","8":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Details & Summary elements",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/deviceorientation.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/deviceorientation.js deleted file mode 100644 index 582491ec..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/deviceorientation.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A wC","132":"B"},B:{"1":"C L M G N O P","4":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"xC TC 1C","4":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","8":"J ZB 2C"},D:{"2":"J ZB K","4":"0 1 2 3 4 5 6 7 8 9 D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"F B C GD HD ID JD NC uC KD OC","4":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"ZC LD","4":"E vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"jD kD lD","4":"TC J I mD vC nD oD"},J:{"2":"D","4":"A"},K:{"1":"C OC","2":"A B NC uC","4":"H"},L:{"4":"I"},M:{"4":"MC"},N:{"1":"B","2":"A"},O:{"4":"PC"},P:{"4":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"4":"0D"},R:{"4":"1D"},S:{"4":"2D 3D"}},B:4,C:"DeviceOrientation & DeviceMotion events",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/devicepixelratio.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/devicepixelratio.js deleted file mode 100644 index 9fb43361..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/devicepixelratio.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M G N O 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z KD OC","2":"F B GD HD ID JD NC uC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"C H OC","2":"A B NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","2":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"Window.devicePixelRatio",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/dialog.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/dialog.js deleted file mode 100644 index ca9cf857..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/dialog.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB 1C 2C","194":"yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q","1218":"H R WC S T U V W X Y Z a b c d e f g"},D:{"1":"0 1 2 3 4 5 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB","322":"dB eB fB gB hB"},E:{"1":"cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC"},F:{"1":"0 1 2 3 4 5 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C G N O P GD HD ID JD NC uC KD OC","578":"6 7 8 9 aB"},G:{"1":"cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:1,C:"Dialog element",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/dispatchevent.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/dispatchevent.js deleted file mode 100644 index d371a418..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/dispatchevent.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","16":"wC","129":"F A","130":"K D E"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"3C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","16":"F"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC"},H:{"1":"iD"},I:{"1":"TC J I lD mD vC nD oD","16":"jD kD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","129":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"EventTarget.dispatchEvent",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/dnssec.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/dnssec.js deleted file mode 100644 index d2ac37de..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/dnssec.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"132":"K D E F A B wC"},B:{"132":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"132":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"132":"0 1 2 3 4 5 J ZB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","388":"6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB"},E:{"132":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"132":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"132":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"132":"iD"},I:{"132":"TC J I jD kD lD mD vC nD oD"},J:{"132":"D A"},K:{"132":"A B C H NC uC OC"},L:{"132":"I"},M:{"132":"MC"},N:{"132":"A B"},O:{"132":"PC"},P:{"132":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"132":"0D"},R:{"132":"1D"},S:{"132":"2D 3D"}},B:6,C:"DNSSEC and DANE",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/do-not-track.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/do-not-track.js deleted file mode 100644 index 5a4be9f8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/do-not-track.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E wC","164":"F A","260":"B"},B:{"1":"0 1 2 3 4 5 O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","260":"C L M G N"},C:{"1":"0 1 2 3 4 5 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E 1C 2C","516":"6 7 8 9 F A B C L M G N O P aB AB BB CB DB EB FB bB cB"},D:{"1":"0 1 2 3 4 5 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 J ZB K D E F A B C L M G N O P aB"},E:{"1":"K A B C 4C 7C aC NC","2":"J ZB L M G 3C ZC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","1028":"D E F 5C 6C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F B GD HD ID JD NC uC KD"},G:{"1":"QD RD SD TD UD VD WD","2":"ZC LD vC MD ND XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","1028":"E OD PD"},H:{"1":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"16":"D","1028":"A"},K:{"1":"H OC","16":"A B C NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"164":"A","260":"B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:7,C:"Do Not Track API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/document-currentscript.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/document-currentscript.js deleted file mode 100644 index 096017ab..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/document-currentscript.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB"},E:{"1":"E F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C G GD HD ID JD NC uC KD OC"},G:{"1":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND OD"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"document.currentScript",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js deleted file mode 100644 index 6f540054..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","16":"xC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","16":"F"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:7,C:"document.evaluate & XPath",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/document-execcommand.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/document-execcommand.js deleted file mode 100644 index bddb7997..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/document-execcommand.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"J ZB 3C ZC 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z HD ID JD NC uC KD OC","16":"F GD"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD","16":"vC MD ND"},H:{"2":"iD"},I:{"1":"I mD vC nD oD","2":"TC J jD kD lD"},J:{"1":"A","2":"D"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","2":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:7,C:"Document.execCommand()",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/document-policy.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/document-policy.js deleted file mode 100644 index e1160bb4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/document-policy.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P Q H R S T","132":"0 1 2 3 4 5 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T","132":"0 1 2 3 4 5 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC GD HD ID JD NC uC KD OC","132":"0 1 2 3 4 5 EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC nD oD","132":"I"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","132":"H"},L:{"132":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"132":"1D"},S:{"2":"2D 3D"}},B:7,C:"Document Policy",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/document-scrollingelement.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/document-scrollingelement.js deleted file mode 100644 index 5425c595..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/document-scrollingelement.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","16":"C L"},C:{"1":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB 1C 2C"},D:{"1":"0 1 2 3 4 5 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB GD HD ID JD NC uC KD OC"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"document.scrollingElement",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/documenthead.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/documenthead.js deleted file mode 100644 index 9dca6318..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/documenthead.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC","16":"ZB"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z NC uC KD OC","2":"F GD HD ID JD"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC"},H:{"1":"iD"},I:{"1":"TC J I lD mD vC nD oD","16":"jD kD"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","2":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"document.head",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/dom-manip-convenience.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/dom-manip-convenience.js deleted file mode 100644 index 1db073b4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N"},C:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB 1C 2C"},D:{"1":"0 1 2 3 4 5 zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB","194":"xB yB"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB GD HD ID JD NC uC KD OC","194":"lB"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:1,C:"DOM manipulation convenience methods",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/dom-range.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/dom-range.js deleted file mode 100644 index f03a42df..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/dom-range.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"wC","8":"K D E"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Document Object Model Range",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/domcontentloaded.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/domcontentloaded.js deleted file mode 100644 index 9984c67b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/domcontentloaded.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"DOMContentLoaded",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/dommatrix.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/dommatrix.js deleted file mode 100644 index 7e8b9980..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/dommatrix.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","132":"A B"},B:{"132":"C L M G N O P","1028":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB 1C 2C","1028":"0 1 2 3 4 5 CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2564":"eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB","3076":"uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC"},D:{"16":"J ZB K D","132":"6 7 8 9 F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B","388":"E","1028":"0 1 2 3 4 5 VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"16":"J 3C ZC","132":"ZB K D E F A 4C 5C 6C 7C aC","1028":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"F B C GD HD ID JD NC uC KD OC","132":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB","1028":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"16":"ZC LD vC","132":"E MD ND OD PD QD RD SD TD","1028":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"132":"J mD vC nD oD","292":"TC jD kD lD","1028":"I"},J:{"16":"D","132":"A"},K:{"2":"A B C NC uC OC","1028":"H"},L:{"1028":"I"},M:{"1028":"MC"},N:{"132":"A B"},O:{"1028":"PC"},P:{"132":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1028":"0D"},R:{"1028":"1D"},S:{"1028":"3D","2564":"2D"}},B:4,C:"DOMMatrix",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/download.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/download.js deleted file mode 100644 index 7ca1960e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/download.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C"},C:{"1":"0 1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M G N O P aB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Download attribute",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/dragndrop.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/dragndrop.js deleted file mode 100644 index fe1b28bf..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/dragndrop.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"644":"K D E F wC","772":"A B"},B:{"1":"0 1 2 3 4 5 P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","260":"C L M G N O"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","8":"xC TC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","8":"F B GD HD ID JD NC uC KD"},G:{"1":"eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC nD oD","1025":"I"},J:{"2":"D A"},K:{"1":"OC","8":"A B C NC uC","1025":"H"},L:{"1025":"I"},M:{"2":"MC"},N:{"1":"A B"},O:{"1025":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:1,C:"Drag and Drop",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/element-closest.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/element-closest.js deleted file mode 100644 index f6270ff7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/element-closest.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M"},C:{"1":"0 1 2 3 4 5 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB 1C 2C"},D:{"1":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB GD HD ID JD NC uC KD OC"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Element.closest()",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/element-from-point.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/element-from-point.js deleted file mode 100644 index 7a9c127c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/element-from-point.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"K D E F A B","16":"wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","16":"xC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M"},E:{"1":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"J 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z NC uC KD OC","16":"F GD HD ID JD"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC"},H:{"1":"iD"},I:{"1":"TC J I lD mD vC nD oD","16":"jD kD"},J:{"1":"D A"},K:{"1":"C H OC","16":"A B NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"document.elementFromPoint()",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/element-scroll-methods.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/element-scroll-methods.js deleted file mode 100644 index c5fb5dba..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/element-scroll-methods.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB 1C 2C"},D:{"1":"0 1 2 3 4 5 VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B"},E:{"1":"M G 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C 7C","132":"A B C L aC NC OC 8C"},F:{"1":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB GD HD ID JD NC uC KD OC"},G:{"1":"dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD","132":"SD TD UD VD WD XD YD ZD aD bD cD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"Scroll methods on elements (scroll, scrollTo, scrollBy)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/eme.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/eme.js deleted file mode 100644 index c5ff3be4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/eme.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A wC","164":"B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB 1C 2C"},D:{"1":"0 1 2 3 4 5 nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB","132":"gB hB iB jB kB lB mB"},E:{"1":"C L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C 5C","164":"D E F A B 6C 7C aC NC"},F:{"1":"0 1 2 3 4 5 FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 F B C G N O P aB GD HD ID JD NC uC KD OC","132":"8 9 AB BB CB DB EB"},G:{"1":"VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"Encrypted Media Extensions",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/eot.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/eot.js deleted file mode 100644 index c8606fd8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/eot.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"K D E F A B","2":"wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"EOT - Embedded OpenType fonts",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/es5.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/es5.js deleted file mode 100644 index 389ccd98..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/es5.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D wC","260":"F","1026":"E"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","4":"xC TC 1C 2C","132":"6 J ZB K D E F A B C L M G N O P aB"},D:{"1":"0 1 2 3 4 5 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","4":"J ZB K D E F A B C L M G N O P","132":"6 7 8 aB"},E:{"1":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","4":"J ZB 3C ZC 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","4":"F B C GD HD ID JD NC uC KD","132":"OC"},G:{"1":"E ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","4":"ZC LD vC MD"},H:{"132":"iD"},I:{"1":"I nD oD","4":"TC jD kD lD","132":"mD vC","900":"J"},J:{"1":"A","4":"D"},K:{"1":"H","4":"A B C NC uC","132":"OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"ECMAScript 5",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6-class.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6-class.js deleted file mode 100644 index c35bf429..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6-class.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C"},C:{"1":"0 1 2 3 4 5 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB 1C 2C"},D:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB","132":"nB oB pB qB rB sB tB"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB GD HD ID JD NC uC KD OC","132":"FB bB cB dB eB fB gB"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"ES6 classes",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6-generators.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6-generators.js deleted file mode 100644 index a1b82e8c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6-generators.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C"},C:{"1":"0 1 2 3 4 5 CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB 1C 2C"},D:{"1":"0 1 2 3 4 5 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB GD HD ID JD NC uC KD OC"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"ES6 Generators",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js deleted file mode 100644 index f95a5301..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 1C 2C","194":"9B"},D:{"1":"0 1 2 3 4 5 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B"},E:{"1":"C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B 3C ZC 4C 5C 6C 7C aC"},F:{"1":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB GD HD ID JD NC uC KD OC"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:6,C:"JavaScript modules: dynamic import()",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6-module.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6-module.js deleted file mode 100644 index 3a2b04cf..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6-module.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M","2049":"N O P","2242":"G"},C:{"1":"0 1 2 3 4 5 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB 1C 2C","322":"zB 0B 1B 2B 3B UC"},D:{"1":"0 1 2 3 4 5 VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC","194":"4B"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C","1540":"aC"},F:{"1":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB GD HD ID JD NC uC KD OC","194":"sB"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD","1540":"TD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:1,C:"JavaScript modules via script tag",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6-number.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6-number.js deleted file mode 100644 index 7379d9a6..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6-number.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M G 1C 2C","132":"6 7 8 9 N O P aB AB","260":"BB CB DB EB FB bB","516":"cB"},D:{"1":"0 1 2 3 4 5 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L M G N O P","1028":"6 7 8 9 aB AB BB CB DB EB FB bB cB dB eB"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","1028":"6 G N O P aB"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD","1028":"mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"ES6 Number",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6-string-includes.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6-string-includes.js deleted file mode 100644 index 4dbd6f8b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6-string-includes.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB 1C 2C"},D:{"1":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB GD HD ID JD NC uC KD OC"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"String.prototype.includes",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6.js deleted file mode 100644 index f3599649..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/es6.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A wC","388":"B"},B:{"257":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","260":"C L M","769":"G N O P"},C:{"2":"xC TC J ZB 1C 2C","4":"6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB","257":"0 1 2 3 4 5 zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"2":"6 J ZB K D E F A B C L M G N O P aB","4":"7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB","257":"0 1 2 3 4 5 wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D 3C ZC 4C 5C","4":"E F 6C 7C"},F:{"2":"F B C GD HD ID JD NC uC KD OC","4":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB","257":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND","4":"E OD PD QD RD"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC","4":"nD oD","257":"I"},J:{"2":"D","4":"A"},K:{"2":"A B C NC uC OC","257":"H"},L:{"257":"I"},M:{"257":"MC"},N:{"2":"A","388":"B"},O:{"257":"PC"},P:{"4":"J","257":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"257":"0D"},R:{"257":"1D"},S:{"4":"2D","257":"3D"}},B:6,C:"ECMAScript 2015 (ES6)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/eventsource.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/eventsource.js deleted file mode 100644 index aa15fb14..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/eventsource.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB"},E:{"1":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z NC uC KD OC","4":"F GD HD ID JD"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"D A"},K:{"1":"C H NC uC OC","4":"A B"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Server-sent events",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/extended-system-fonts.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/extended-system-fonts.js deleted file mode 100644 index 0f12e426..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/extended-system-fonts.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L 3C ZC 4C 5C 6C 7C aC NC OC"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"ui-serif, ui-sans-serif, ui-monospace and ui-rounded values for font-family",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/feature-policy.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/feature-policy.js deleted file mode 100644 index 0002b0d0..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/feature-policy.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"Q H R S T U V W","2":"C L M G N O P","1025":"0 1 2 3 4 5 X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC 1C 2C","260":"0 1 2 3 4 5 HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"HC IC JC KC LC Q H R S T U V W","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC","132":"4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC","1025":"0 1 2 3 4 5 X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B 3C ZC 4C 5C 6C 7C aC","772":"C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB GD HD ID JD NC uC KD OC","132":"sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B","1025":"0 1 2 3 4 5 IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD","772":"VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","1025":"H"},L:{"1025":"I"},M:{"260":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB uD vD wD xD yD QC RC SC zD","2":"J pD qD rD","132":"sD tD aC"},Q:{"132":"0D"},R:{"1025":"1D"},S:{"2":"2D","260":"3D"}},B:7,C:"Feature Policy",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/fetch.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/fetch.js deleted file mode 100644 index 11961884..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/fetch.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L"},C:{"1":"0 1 2 3 4 5 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB 1C 2C","1025":"kB","1218":"fB gB hB iB jB"},D:{"1":"0 1 2 3 4 5 nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB","260":"lB","772":"mB"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB GD HD ID JD NC uC KD OC","260":"DB","772":"EB"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Fetch",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/fieldset-disabled.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/fieldset-disabled.js deleted file mode 100644 index bc4388cd..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/fieldset-disabled.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"16":"wC","132":"E F","388":"K D A B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L M G","16":"N O P aB"},E:{"1":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z HD ID JD NC uC KD OC","16":"F GD"},G:{"1":"E ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD"},H:{"388":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"A","2":"D"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A","260":"B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"disabled attribute of the fieldset element",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/fileapi.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/fileapi.js deleted file mode 100644 index eb99aad9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/fileapi.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","260":"A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","260":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C","260":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB 2C"},D:{"1":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB","260":"6 7 8 9 L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB","388":"K D E F A B C"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC","260":"K D E F 5C 6C 7C","388":"4C"},F:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B GD HD ID JD","260":"6 7 8 9 C G N O P aB AB NC uC KD OC"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD","260":"E ND OD PD QD RD"},H:{"2":"iD"},I:{"1":"I oD","2":"jD kD lD","260":"nD","388":"TC J mD vC"},J:{"260":"A","388":"D"},K:{"1":"H","2":"A B","260":"C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A","260":"B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"File API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/filereader.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/filereader.js deleted file mode 100644 index bf0bc37e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/filereader.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","132":"A B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 2C","2":"xC TC 1C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB"},E:{"1":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z NC uC KD OC","2":"F B GD HD ID JD"},G:{"1":"E ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD"},H:{"2":"iD"},I:{"1":"TC J I mD vC nD oD","2":"jD kD lD"},J:{"1":"A","2":"D"},K:{"1":"C H NC uC OC","2":"A B"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"FileReader API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/filereadersync.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/filereadersync.js deleted file mode 100644 index b8ff016b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/filereadersync.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M"},E:{"1":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z KD OC","2":"F GD HD","16":"B ID JD NC uC"},G:{"1":"E ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"A","2":"D"},K:{"1":"C H uC OC","2":"A","16":"B NC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"FileReaderSync",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/filesystem.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/filesystem.js deleted file mode 100644 index 1582106b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/filesystem.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P","33":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"J ZB K D","33":"0 1 2 3 4 5 6 7 8 9 L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","36":"E F A B C"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"F B C GD HD ID JD NC uC KD OC","33":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D","33":"A"},K:{"2":"A B C NC uC OC","33":"H"},L:{"33":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"33":"PC"},P:{"2":"J","33":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"33":"1D"},S:{"2":"2D 3D"}},B:7,C:"Filesystem & FileWriter API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/flac.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/flac.js deleted file mode 100644 index 6d0cb9e5..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/flac.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G"},C:{"1":"0 1 2 3 4 5 wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB 1C 2C"},D:{"1":"0 1 2 3 4 5 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB","16":"pB qB rB","388":"sB tB uB vB wB xB yB zB 0B"},E:{"1":"L M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC","516":"B C NC OC"},F:{"1":"0 1 2 3 4 5 nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB GD HD ID JD NC uC KD OC"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD"},H:{"2":"iD"},I:{"1":"I","2":"jD kD lD","16":"TC J mD vC nD oD"},J:{"1":"A","2":"D"},K:{"1":"H OC","16":"A B C NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","129":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:6,C:"FLAC audio format",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/flexbox-gap.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/flexbox-gap.js deleted file mode 100644 index ad637959..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/flexbox-gap.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S"},C:{"1":"0 1 2 3 4 5 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 1C 2C"},D:{"1":"0 1 2 3 4 5 T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S"},E:{"1":"G 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M 3C ZC 4C 5C 6C 7C aC NC OC 8C"},F:{"1":"0 1 2 3 4 5 DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC GD HD ID JD NC uC KD OC"},G:{"1":"dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB xD yD QC RC SC zD","2":"J pD qD rD sD tD aC uD vD wD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:5,C:"gap property for Flexbox",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/flexbox.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/flexbox.js deleted file mode 100644 index 3cdf7000..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/flexbox.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","1028":"B","1316":"A"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","164":"6 7 xC TC J ZB K D E F A B C L M G N O P aB 1C 2C","516":"8 9 AB BB CB DB"},D:{"1":"0 1 2 3 4 5 FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","33":"7 8 9 AB BB CB DB EB","164":"6 J ZB K D E F A B C L M G N O P aB"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","33":"D E 5C 6C","164":"J ZB K 3C ZC 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F B C GD HD ID JD NC uC KD","33":"G N"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","33":"E OD PD","164":"ZC LD vC MD ND"},H:{"1":"iD"},I:{"1":"I nD oD","164":"TC J jD kD lD mD vC"},J:{"1":"A","164":"D"},K:{"1":"H OC","2":"A B C NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","292":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS Flexible Box Layout Module",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/flow-root.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/flow-root.js deleted file mode 100644 index 1743a046..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/flow-root.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB 1C 2C"},D:{"1":"0 1 2 3 4 5 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B"},E:{"1":"L M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C 3C ZC 4C 5C 6C 7C aC NC OC"},F:{"1":"0 1 2 3 4 5 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB GD HD ID JD NC uC KD OC"},G:{"1":"YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:4,C:"display: flow-root",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/focusin-focusout-events.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/focusin-focusout-events.js deleted file mode 100644 index 072c10d7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"K D E F A B","2":"wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M"},E:{"1":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"J ZB 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z KD OC","2":"F GD HD ID JD","16":"B NC uC"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC"},H:{"2":"iD"},I:{"1":"J I mD vC nD oD","2":"jD kD lD","16":"TC"},J:{"1":"D A"},K:{"1":"C H OC","2":"A","16":"B NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:5,C:"focusin & focusout events",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-family-system-ui.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-family-system-ui.js deleted file mode 100644 index 02107abf..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-family-system-ui.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB 1C 2C","132":"oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a"},D:{"1":"0 1 2 3 4 5 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB","260":"yB zB 0B"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E 3C ZC 4C 5C 6C","16":"F","132":"A 7C aC"},F:{"1":"0 1 2 3 4 5 oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB GD HD ID JD NC uC KD OC"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD","132":"QD RD SD TD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"132":"2D 3D"}},B:5,C:"system-ui value for font-family",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-feature.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-feature.js deleted file mode 100644 index 62addad4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-feature.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C","33":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB","164":"J ZB K D E F A B C L M"},D:{"1":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L M G","33":"7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB","292":"6 N O P aB"},E:{"1":"A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"D E F 3C ZC 5C 6C","4":"J ZB K 4C"},F:{"1":"0 1 2 3 4 5 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","33":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB"},G:{"1":"RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E OD PD QD","4":"ZC LD vC MD ND"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC","33":"nD oD"},J:{"2":"D","33":"A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","33":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS font-feature-settings",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-kerning.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-kerning.js deleted file mode 100644 index 9b847a86..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-kerning.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB 1C 2C","194":"AB BB CB DB EB FB bB cB dB eB"},D:{"1":"0 1 2 3 4 5 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB","33":"FB bB cB dB"},E:{"1":"A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C 5C","33":"D E F 6C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C G GD HD ID JD NC uC KD OC","33":"N O P aB"},G:{"1":"WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND OD","33":"E PD QD RD SD TD UD VD"},H:{"2":"iD"},I:{"1":"I oD","2":"TC J jD kD lD mD vC","33":"nD"},J:{"2":"D","33":"A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS3 font-kerning",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-loading.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-loading.js deleted file mode 100644 index cb547fc3..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-loading.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB 1C 2C","194":"gB hB iB jB kB lB"},D:{"1":"0 1 2 3 4 5 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 F B C G N O P aB GD HD ID JD NC uC KD OC"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"CSS Font Loading",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-size-adjust.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-size-adjust.js deleted file mode 100644 index fa5427d1..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-size-adjust.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P","194":"0 1 2 3 4 5 GB HB IB JB","962":"Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},C:{"1":"1 2 3 4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC","516":"0 b c d e f g h i j k l m n o p q r s t u v w x y z","772":"6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a 1C 2C"},D:{"1":"KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB","194":"3 4 5 GB HB IB JB","962":"0 1 2 oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},E:{"1":"RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC","772":"gC hC CD"},F:{"1":"0 1 2 3 4 5 w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB GD HD ID JD NC uC KD OC","194":"l m n o p q r s t u v","962":"bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k"},G:{"1":"RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC","772":"gC hC gD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"194":"0D"},R:{"2":"1D"},S:{"2":"2D","516":"3D"}},B:2,C:"CSS font-size-adjust",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-smooth.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-smooth.js deleted file mode 100644 index f6adc773..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-smooth.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P","676":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB 1C 2C","804":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB","1828":"LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"2":"J","676":"0 1 2 3 4 5 6 7 8 9 ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"3C ZC","676":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"F B C GD HD ID JD NC uC KD OC","676":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"804":"2D 3D"}},B:7,C:"CSS font-smooth",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-unicode-range.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-unicode-range.js deleted file mode 100644 index a72d10e4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-unicode-range.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E wC","4":"F A B"},B:{"1":"0 1 2 3 4 5 O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","4":"C L M G N"},C:{"1":"0 1 2 3 4 5 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB 1C 2C","194":"hB iB jB kB lB mB nB oB"},D:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","4":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","4":"J ZB K D E F 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","4":"6 7 8 G N O P aB"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","4":"E ZC LD vC MD ND OD PD QD RD"},H:{"2":"iD"},I:{"1":"I","4":"TC J jD kD lD mD vC nD oD"},J:{"2":"D","4":"A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"4":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","4":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"Font unicode-range subsetting",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-variant-alternates.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-variant-alternates.js deleted file mode 100644 index 9c2dcfbc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-variant-alternates.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","130":"A B"},B:{"1":"0 1 2 3 4 5 u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","130":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t"},C:{"1":"0 1 2 3 4 5 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C","130":"6 7 8 9 J ZB K D E F A B C L M G N O P aB","322":"AB BB CB DB EB FB bB cB dB eB"},D:{"1":"0 1 2 3 4 5 u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L M G","130":"6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t"},E:{"1":"A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"D E F 3C ZC 5C 6C","130":"J ZB K 4C"},F:{"1":"0 1 2 3 4 5 h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","130":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g"},G:{"1":"RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC OD PD QD","130":"LD vC MD ND"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC","130":"nD oD"},J:{"2":"D","130":"A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"130":"PC"},P:{"1":"8 9 AB BB CB DB EB FB","130":"6 7 J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"130":"0D"},R:{"130":"1D"},S:{"1":"2D 3D"}},B:5,C:"CSS font-variant-alternates",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-variant-numeric.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-variant-numeric.js deleted file mode 100644 index d74297fe..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/font-variant-numeric.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB 1C 2C"},D:{"1":"0 1 2 3 4 5 xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB"},E:{"1":"A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB GD HD ID JD NC uC KD OC"},G:{"1":"RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D","16":"A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS font-variant-numeric",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/fontface.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/fontface.js deleted file mode 100644 index e08bc604..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/fontface.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","132":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","2":"xC TC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z HD ID JD NC uC KD OC","2":"F GD"},G:{"1":"E vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","260":"ZC LD"},H:{"2":"iD"},I:{"1":"J I mD vC nD oD","2":"jD","4":"TC kD lD"},J:{"1":"A","4":"D"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"@font-face Web fonts",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/form-attribute.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/form-attribute.js deleted file mode 100644 index d600e077..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/form-attribute.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F"},E:{"1":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC","16":"ZB"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","2":"F"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC"},H:{"1":"iD"},I:{"1":"TC J I mD vC nD oD","2":"jD kD lD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Form attribute",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/form-submit-attributes.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/form-submit-attributes.js deleted file mode 100644 index 8c008637..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/form-submit-attributes.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M"},E:{"1":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JD NC uC KD OC","2":"F GD","16":"HD ID"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC"},H:{"1":"iD"},I:{"1":"J I mD vC nD oD","2":"jD kD lD","16":"TC"},J:{"1":"A","2":"D"},K:{"1":"B C H NC uC OC","16":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Attributes for form submission",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/form-validation.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/form-validation.js deleted file mode 100644 index 32875a9b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/form-validation.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC","132":"ZB K D E F A 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z HD ID JD NC uC KD OC","2":"F GD"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC","132":"E LD vC MD ND OD PD QD RD SD"},H:{"516":"iD"},I:{"1":"I oD","2":"TC jD kD lD","132":"J mD vC nD"},J:{"1":"A","132":"D"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"132":"MC"},N:{"260":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","132":"2D"}},B:1,C:"Form validation",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/forms.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/forms.js deleted file mode 100644 index 55580004..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/forms.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"wC","4":"A B","8":"K D E F"},B:{"1":"0 1 2 3 4 5 N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","4":"C L M G"},C:{"4":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","8":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","4":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B"},E:{"4":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","8":"3C ZC"},F:{"1":"0 1 2 3 4 5 F B C xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","4":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB"},G:{"2":"ZC","4":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC","4":"nD oD"},J:{"2":"D","4":"A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"4":"MC"},N:{"4":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB sD tD aC uD vD wD xD yD QC RC SC zD","4":"J pD qD rD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"4":"2D 3D"}},B:1,C:"HTML5 form features",D:false}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/fullscreen.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/fullscreen.js deleted file mode 100644 index c5c819a6..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/fullscreen.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A wC","548":"B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","516":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F 1C 2C","676":"6 7 8 9 A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB","1700":"sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B"},D:{"1":"0 1 2 3 4 5 EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L M","676":"G N O P aB","804":"6 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC"},E:{"1":"gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC","548":"cC PC BD QC dC eC fC","676":"4C","804":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC"},F:{"1":"0 1 2 3 4 5 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F B C GD HD ID JD NC uC KD","804":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD","2052":"WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D","292":"A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A","548":"B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB aC uD vD wD xD yD QC RC SC zD","804":"J pD qD rD sD tD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Fullscreen API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/gamepad.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/gamepad.js deleted file mode 100644 index bc542719..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/gamepad.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB 1C 2C"},D:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 J ZB K D E F A B C L M G N O P aB","33":"7 8 9 AB"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB GD HD ID JD NC uC KD OC"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:5,C:"Gamepad API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/geolocation.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/geolocation.js deleted file mode 100644 index e74da034..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/geolocation.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"wC","8":"K D E"},B:{"1":"C L M G N O P","129":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 1C 2C","8":"xC TC","129":"0 1 2 3 4 5 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"6 7 8 9 ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB","4":"J","129":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"ZB K D E F B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","8":"J 3C ZC","129":"A"},F:{"1":"6 7 8 9 B C N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB JD NC uC KD OC","2":"F G GD","8":"HD ID","129":"0 1 2 3 4 5 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"1":"E ZC LD vC MD ND OD PD QD RD","129":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"TC J jD kD lD mD vC nD oD","129":"I"},J:{"1":"D A"},K:{"1":"B C NC uC OC","8":"A","129":"H"},L:{"129":"I"},M:{"129":"MC"},N:{"1":"A B"},O:{"129":"PC"},P:{"1":"J","129":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"129":"0D"},R:{"129":"1D"},S:{"1":"2D","129":"3D"}},B:2,C:"Geolocation",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/getboundingclientrect.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/getboundingclientrect.js deleted file mode 100644 index 3071fb0a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/getboundingclientrect.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"644":"K D wC","2049":"F A B","2692":"E"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2049":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC","260":"J ZB K D E F A B","1156":"TC","1284":"1C","1796":"2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JD NC uC KD OC","16":"F GD","132":"HD ID"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC"},H:{"1":"iD"},I:{"1":"TC J I lD mD vC nD oD","16":"jD kD"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","132":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"2049":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"Element.getBoundingClientRect()",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/getcomputedstyle.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/getcomputedstyle.js deleted file mode 100644 index ea62feb0..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/getcomputedstyle.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC","132":"TC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","260":"J ZB K D E F A"},E:{"1":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","260":"J 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JD NC uC KD OC","260":"F GD HD ID"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","260":"ZC LD vC"},H:{"260":"iD"},I:{"1":"J I mD vC nD oD","260":"TC jD kD lD"},J:{"1":"A","260":"D"},K:{"1":"B C H NC uC OC","260":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"getComputedStyle",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/getelementsbyclassname.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/getelementsbyclassname.js deleted file mode 100644 index 3be18fa3..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"wC","8":"K D E"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","8":"xC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","2":"F"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"getElementsByClassName",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/getrandomvalues.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/getrandomvalues.js deleted file mode 100644 index 7dae6540..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/getrandomvalues.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A wC","33":"B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 xC TC J ZB K D E F A B C L M G N O P aB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A"},E:{"1":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A","33":"B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"crypto.getRandomValues()",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/gyroscope.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/gyroscope.js deleted file mode 100644 index a1726c43..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/gyroscope.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B","194":"3B UC 4B VC 5B 6B 7B 8B 9B"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:4,C:"Gyroscope",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/hardwareconcurrency.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/hardwareconcurrency.js deleted file mode 100644 index 1bacee41..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M"},C:{"1":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB 1C 2C"},D:{"1":"0 1 2 3 4 5 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB"},E:{"2":"J ZB K D B C L M G 3C ZC 4C 5C 6C NC OC 8C 9C AD bC","129":"aC","194":"E F A 7C","257":"cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB GD HD ID JD NC uC KD OC"},G:{"2":"ZC LD vC MD ND OD UD VD WD XD YD ZD aD bD cD dD eD bC","129":"TD","194":"E PD QD RD SD","257":"cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"navigator.hardwareConcurrency",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/hashchange.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/hashchange.js deleted file mode 100644 index d6a275d7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/hashchange.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"E F A B","8":"K D wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 2C","8":"xC TC 1C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","8":"J"},E:{"1":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","8":"J 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JD NC uC KD OC","8":"F GD HD ID"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC"},H:{"2":"iD"},I:{"1":"TC J I kD lD mD vC nD oD","2":"jD"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","8":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Hashchange event",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/heif.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/heif.js deleted file mode 100644 index 48afc07c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/heif.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC","130":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD gD","130":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:6,C:"HEIF/HEIC image format",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/hevc.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/hevc.js deleted file mode 100644 index 86dee052..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/hevc.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A wC","132":"B"},B:{"132":"C L M G N O P","1028":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 1C 2C","4098":"3","8258":"4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB","16388":"UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p","2052":"0 1 2 3 4 5 q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"L M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC","516":"B C NC OC"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c GD HD ID JD NC uC KD OC","2052":"0 1 2 3 4 5 d e f g h i j k l m n o p q r s t u v w x y z"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC nD oD","2052":"I"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","258":"H"},L:{"2052":"I"},M:{"16388":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"7 8 9 AB BB CB DB EB FB","2":"J","258":"6 pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:6,C:"HEVC/H.265 video format",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/hidden.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/hidden.js deleted file mode 100644 index ec81276f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/hidden.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB"},E:{"1":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z NC uC KD OC","2":"F B GD HD ID JD"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC"},H:{"1":"iD"},I:{"1":"J I mD vC nD oD","2":"TC jD kD lD"},J:{"1":"A","2":"D"},K:{"1":"C H NC uC OC","2":"A B"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","2":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"hidden attribute",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/high-resolution-time.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/high-resolution-time.js deleted file mode 100644 index 07fb9d26..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/high-resolution-time.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB","2":"xC TC J ZB K D E F A B C L M 1C 2C","129":"0B 1B 2B","769":"3B UC","1281":"0 1 2 3 4 5 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"0 1 2 3 4 5 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L M G N O P aB","33":"6 7 8 9"},E:{"1":"E F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND OD PD"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"High Resolution Time API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/history.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/history.js deleted file mode 100644 index f8008558..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/history.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J"},E:{"1":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC","4":"ZB 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z uC KD OC","2":"F B GD HD ID JD NC"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD","4":"vC"},H:{"2":"iD"},I:{"1":"I kD lD vC nD oD","2":"TC J jD mD"},J:{"1":"D A"},K:{"1":"C H NC uC OC","2":"A B"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Session history management",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/html-media-capture.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/html-media-capture.js deleted file mode 100644 index cb10e02e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/html-media-capture.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"ZC LD vC MD","129":"E ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"TC J I mD vC nD oD","2":"jD","257":"kD lD"},J:{"1":"A","16":"D"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"516":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"16":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:2,C:"HTML Media Capture",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/html5semantic.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/html5semantic.js deleted file mode 100644 index 30054938..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/html5semantic.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"wC","8":"K D E","260":"F A B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC","132":"TC 1C 2C","260":"6 J ZB K D E F A B C L M G N O P aB"},D:{"1":"0 1 2 3 4 5 CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","132":"J ZB","260":"6 7 8 9 K D E F A B C L M G N O P aB AB BB"},E:{"1":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","132":"J 3C ZC","260":"ZB K 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","132":"F B GD HD ID JD","260":"C NC uC KD OC"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","132":"ZC","260":"LD vC MD ND"},H:{"132":"iD"},I:{"1":"I nD oD","132":"jD","260":"TC J kD lD mD vC"},J:{"260":"D A"},K:{"1":"H","132":"A","260":"B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"260":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"HTML5 semantic elements",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/http-live-streaming.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/http-live-streaming.js deleted file mode 100644 index 05842133..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/http-live-streaming.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"C L M G N O P","2":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"I XC MC YC","2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB"},E:{"1":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"TC J I mD vC nD oD","2":"jD kD lD"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:7,C:"HTTP Live Streaming (HLS)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/http2.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/http2.js deleted file mode 100644 index 2d3eb58e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/http2.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A wC","132":"B"},B:{"1":"C L M G N O P","513":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB 1C 2C","513":"0 1 2 3 4 5 yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"mB nB oB pB qB rB sB tB uB vB","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB","513":"0 1 2 3 4 5 wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E 3C ZC 4C 5C 6C","260":"F A 7C aC"},F:{"1":"EB FB bB cB dB eB fB gB hB iB","2":"6 7 8 9 F B C G N O P aB AB BB CB DB GD HD ID JD NC uC KD OC","513":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC nD oD","513":"I"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","513":"H"},L:{"513":"I"},M:{"513":"MC"},N:{"2":"A B"},O:{"513":"PC"},P:{"1":"J","513":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"513":"0D"},R:{"513":"1D"},S:{"1":"2D","513":"3D"}},B:6,C:"HTTP/2 protocol",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/http3.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/http3.js deleted file mode 100644 index 1d814b5e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/http3.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P","322":"Q H R S T","578":"U V"},C:{"1":"0 1 2 3 4 5 X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC 1C 2C","194":"FC GC HC IC JC KC LC Q H R WC S T U V W"},D:{"1":"0 1 2 3 4 5 W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC","322":"Q H R S T","578":"U V"},E:{"1":"SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L 3C ZC 4C 5C 6C 7C aC NC OC 8C","2049":"gC hC CD RC iC jC kC lC mC DD","2113":"QC dC eC fC","3140":"M G 9C AD bC cC PC BD"},F:{"1":"0 1 2 3 4 5 HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GD HD ID JD NC uC KD OC","578":"GC"},G:{"1":"SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD","2049":"gC hC gD RC iC jC kC lC mC hD","2113":"QC dC eC fC","2116":"cD dD eD bC cC PC fD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"rD","2":"6 7 8 9 J AB BB CB DB pD qD sD tD aC uD vD wD xD yD QC RC SC zD","4098":"EB FB"},Q:{"2":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:6,C:"HTTP/3 protocol",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/iframe-sandbox.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/iframe-sandbox.js deleted file mode 100644 index 92081966..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/iframe-sandbox.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M G N 1C 2C","4":"6 7 8 9 O P aB AB BB CB DB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J"},E:{"1":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC"},H:{"2":"iD"},I:{"1":"TC J I kD lD mD vC nD oD","2":"jD"},J:{"1":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"sandbox attribute for iframes",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/iframe-seamless.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/iframe-seamless.js deleted file mode 100644 index d4cda179..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/iframe-seamless.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 J ZB K D E F A B C L M G N O P aB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","66":"6 7 8 9 AB BB CB"},E:{"2":"J ZB K E F A B C L M G 3C ZC 4C 5C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","130":"D 6C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","130":"OD"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"seamless attribute for iframes",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/iframe-srcdoc.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/iframe-srcdoc.js deleted file mode 100644 index 1059b5b3..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"wC","8":"K D E F A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","8":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC","8":"6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L","8":"M G N O P aB"},E:{"1":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C ZC","8":"J ZB 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B GD HD ID JD","8":"C NC uC KD OC"},G:{"1":"E ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC","8":"LD vC MD"},H:{"2":"iD"},I:{"1":"I nD oD","8":"TC J jD kD lD mD vC"},J:{"1":"A","8":"D"},K:{"1":"H","2":"A B","8":"C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"8":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"srcdoc attribute for iframes",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/imagecapture.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/imagecapture.js deleted file mode 100644 index 142a76ae..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/imagecapture.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB 1C 2C","194":"0 1 2 3 4 5 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"0 1 2 3 4 5 UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB","322":"yB zB 0B 1B 2B 3B"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED","516":"FD"},F:{"1":"0 1 2 3 4 5 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB GD HD ID JD NC uC KD OC","322":"lB mB nB oB pB qB"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"194":"2D 3D"}},B:5,C:"ImageCapture API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/ime.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/ime.js deleted file mode 100644 index 3994fbd0..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/ime.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A wC","161":"B"},B:{"2":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","161":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A","161":"B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"Input Method Editor API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js deleted file mode 100644 index 3684101f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"naturalWidth & naturalHeight image properties",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/import-maps.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/import-maps.js deleted file mode 100644 index 9ab989c8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/import-maps.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P","194":"Q H R S T U V W X"},C:{"1":"0 1 2 3 4 5 r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k 1C 2C","322":"l m n o p q"},D:{"1":"0 1 2 3 4 5 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC","194":"HC IC JC KC LC Q H R S T U V W X"},E:{"1":"gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC"},F:{"1":"0 1 2 3 4 5 JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B GD HD ID JD NC uC KD OC","194":"5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC"},G:{"1":"gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB yD QC RC SC zD","2":"J pD qD rD sD tD aC uD vD wD xD"},Q:{"2":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:7,C:"Import maps",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/imports.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/imports.js deleted file mode 100644 index 4723e9cd..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/imports.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","8":"A B"},B:{"1":"Q","2":"0 1 2 3 4 5 H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","8":"C L M G N O P"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB 1C 2C","8":"0 1 2 3 4 5 bB cB 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","72":"dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B"},D:{"1":"hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q","2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","66":"bB cB dB eB fB","72":"gB"},E:{"2":"J ZB 3C ZC 4C","8":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B","2":"0 1 2 3 4 5 F B C G N AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","66":"6 7 O P aB","72":"8"},G:{"2":"ZC LD vC MD ND","8":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"8":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"J pD qD rD sD tD aC uD vD","2":"6 7 8 9 AB BB CB DB EB FB wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"2":"1D"},S:{"1":"2D","8":"3D"}},B:5,C:"HTML Imports",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js deleted file mode 100644 index 8e8c631c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"K D E F A B","16":"wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 2C","2":"xC TC","16":"1C"},D:{"1":"0 1 2 3 4 5 EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB"},E:{"1":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z KD OC","2":"F B GD HD ID JD NC uC"},G:{"1":"XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"indeterminate checkbox",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/indexeddb.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/indexeddb.js deleted file mode 100644 index 22c9c394..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/indexeddb.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","132":"A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","132":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C","33":"A B C L M G","36":"J ZB K D E F"},D:{"1":"0 1 2 3 4 5 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"A","8":"J ZB K D E F","33":"9","36":"6 7 8 B C L M G N O P aB"},E:{"1":"A B C L M G aC NC OC 8C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","8":"J ZB K D 3C ZC 4C 5C","260":"E F 6C 7C","516":"9C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F GD HD","8":"B C ID JD NC uC KD OC"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","8":"ZC LD vC MD ND OD","260":"E PD QD RD","516":"dD"},H:{"2":"iD"},I:{"1":"I nD oD","8":"TC J jD kD lD mD vC"},J:{"1":"A","8":"D"},K:{"1":"H","2":"A","8":"B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"132":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"IndexedDB",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/indexeddb2.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/indexeddb2.js deleted file mode 100644 index f06ba178..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/indexeddb2.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB 1C 2C","132":"pB qB rB","260":"sB tB uB vB"},D:{"1":"0 1 2 3 4 5 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB","132":"tB uB vB wB","260":"xB yB zB 0B 1B 2B"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB GD HD ID JD NC uC KD OC","132":"gB hB iB jB","260":"kB lB mB nB oB pB"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD","16":"SD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J","260":"pD qD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","260":"2D"}},B:2,C:"IndexedDB 2.0",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/inline-block.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/inline-block.js deleted file mode 100644 index 274be256..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/inline-block.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"E F A B","4":"wC","132":"K D"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","36":"xC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS inline-block",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/innertext.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/innertext.js deleted file mode 100644 index 556a548b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/innertext.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"K D E F A B","16":"wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"3C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","16":"F"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC"},H:{"1":"iD"},I:{"1":"TC J I lD mD vC nD oD","16":"jD kD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"HTMLElement.innerText",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js deleted file mode 100644 index 0a75b5d9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"K D E F A wC","132":"B"},B:{"132":"C L M G N O P","260":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB 1C 2C","516":"0 1 2 3 4 5 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"6 7 8 9 O P aB AB BB CB","2":"J ZB K D E F A B C L M G N","132":"DB EB FB bB cB dB eB fB gB hB iB jB kB lB","260":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"K 4C 5C","2":"J ZB 3C ZC","2052":"D E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"ZC LD vC","1025":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1025":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2052":"A B"},O:{"1025":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"260":"0D"},R:{"1":"1D"},S:{"516":"2D 3D"}},B:1,C:"autocomplete attribute: on & off values",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-color.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-color.js deleted file mode 100644 index b3064f98..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-color.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L"},C:{"1":"0 1 2 3 4 5 FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L M G N O P aB"},E:{"1":"L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C 3C ZC 4C 5C 6C 7C aC NC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z NC uC KD OC","2":"F G N GD HD ID JD"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD","129":"XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:1,C:"Color input type",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-datetime.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-datetime.js deleted file mode 100644 index c8dccc4b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-datetime.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","132":"C"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB 1C 2C","1090":"yB zB 0B 1B","2052":"2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b","4100":"0 1 2 3 4 5 c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L M G N O P aB","2052":"6 7 8 9 AB"},E:{"2":"J ZB K D E F A B C L M 3C ZC 4C 5C 6C 7C aC NC OC 8C","4100":"G 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"ZC LD vC","260":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC","8193":"oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC jD kD lD","514":"J mD vC"},J:{"1":"A","2":"D"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"4100":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2052":"2D 3D"}},B:1,C:"Date and time input types",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-email-tel-url.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-email-tel-url.js deleted file mode 100644 index cdb4c3b9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-email-tel-url.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J"},E:{"1":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","2":"F"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"TC J I mD vC nD oD","132":"jD kD lD"},J:{"1":"A","132":"D"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Email, telephone & URL input types",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-event.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-event.js deleted file mode 100644 index 4413baab..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-event.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E wC","2561":"A B","2692":"F"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2561":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","16":"xC","1537":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB 2C","1796":"TC 1C"},D:{"1":"0 1 2 3 4 5 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M","1025":"gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B","1537":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB"},E:{"1":"M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"J ZB K 3C ZC","1025":"D E F A B C 5C 6C 7C aC NC","1537":"4C","4097":"L OC"},F:{"1":"0 1 2 3 4 5 xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","16":"F B C GD HD ID JD NC uC","260":"KD","1025":"8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB","1537":"6 7 G N O P aB"},G:{"1":"ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC","1025":"E PD QD RD SD TD UD VD WD","1537":"MD ND OD","4097":"XD YD"},H:{"2":"iD"},I:{"16":"jD kD","1025":"I oD","1537":"TC J lD mD vC nD"},J:{"1025":"A","1537":"D"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2561":"A B"},O:{"1":"PC"},P:{"1025":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","1537":"2D"}},B:1,C:"input event",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-file-accept.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-file-accept.js deleted file mode 100644 index 8799ed35..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-file-accept.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C","132":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB"},D:{"1":"0 1 2 3 4 5 CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J","16":"7 8 9 ZB K D E AB BB","132":"6 F A B C L M G N O P aB"},E:{"1":"C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C","132":"K D E F A B 5C 6C 7C aC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"2":"ND OD","132":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","514":"ZC LD vC MD"},H:{"2":"iD"},I:{"2":"jD kD lD","260":"TC J mD vC","514":"I nD oD"},J:{"132":"A","260":"D"},K:{"2":"A B C NC uC OC","514":"H"},L:{"260":"I"},M:{"2":"MC"},N:{"514":"A","1028":"B"},O:{"2":"PC"},P:{"260":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"260":"0D"},R:{"260":"1D"},S:{"1":"2D 3D"}},B:1,C:"accept attribute for file input",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-file-directory.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-file-directory.js deleted file mode 100644 index ec35921b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-file-directory.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L"},C:{"1":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB 1C 2C"},D:{"1":"0 1 2 3 4 5 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB"},E:{"1":"C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B 3C ZC 4C 5C 6C 7C aC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C G N GD HD ID JD NC uC KD OC"},G:{"1":"qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"Directory selection from file input",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-file-multiple.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-file-multiple.js deleted file mode 100644 index 9742864c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-file-multiple.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 2C","2":"xC TC 1C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JD NC uC KD OC","2":"F GD HD ID"},G:{"1":"E ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD"},H:{"130":"iD"},I:{"130":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","130":"A B C NC uC OC"},L:{"132":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"130":"PC"},P:{"130":"J","132":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"132":"0D"},R:{"132":"1D"},S:{"1":"3D","2":"2D"}},B:1,C:"Multiple file selection",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-inputmode.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-inputmode.js deleted file mode 100644 index 8d2c2df3..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-inputmode.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M G N 1C 2C","4":"6 O P aB","194":"7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d"},D:{"1":"0 1 2 3 4 5 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B","66":"1B 2B 3B UC 4B VC 5B 6B 7B 8B"},E:{"1":"L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C 3C ZC 4C 5C 6C 7C aC NC"},F:{"1":"0 1 2 3 4 5 yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB GD HD ID JD NC uC KD OC","66":"oB pB qB rB sB tB uB vB wB xB"},G:{"1":"XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"194":"2D 3D"}},B:1,C:"inputmode attribute",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-minlength.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-minlength.js deleted file mode 100644 index cb1f24ff..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-minlength.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N"},C:{"1":"0 1 2 3 4 5 wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB 1C 2C"},D:{"1":"0 1 2 3 4 5 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB GD HD ID JD NC uC KD OC"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:1,C:"Minimum length attribute for input fields",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-number.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-number.js deleted file mode 100644 index de44be81..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-number.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","129":"A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","129":"C L","1025":"M G N O P"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB 1C 2C","513":"0 1 2 3 4 5 FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB"},E:{"1":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"388":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC jD kD lD","388":"J I mD vC nD oD"},J:{"2":"D","388":"A"},K:{"1":"A B C NC uC OC","388":"H"},L:{"388":"I"},M:{"641":"MC"},N:{"388":"A B"},O:{"388":"PC"},P:{"388":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"388":"0D"},R:{"388":"1D"},S:{"513":"2D 3D"}},B:1,C:"Number input type",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-pattern.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-pattern.js deleted file mode 100644 index 527df55b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-pattern.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC","16":"ZB","388":"K D E F A 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","2":"F"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC","388":"E MD ND OD PD QD RD SD"},H:{"2":"iD"},I:{"1":"I oD","2":"TC J jD kD lD mD vC nD"},J:{"1":"A","2":"D"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"132":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Pattern attribute for input fields",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-placeholder.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-placeholder.js deleted file mode 100644 index 01c13f8f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-placeholder.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","132":"J 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z uC KD OC","2":"F GD HD ID JD","132":"B NC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC I jD kD lD vC nD oD","4":"J mD"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","2":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"input placeholder attribute",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-range.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-range.js deleted file mode 100644 index 942adf76..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-range.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 xC TC J ZB K D E F A B C L M G N O P aB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC"},H:{"2":"iD"},I:{"1":"I vC nD oD","4":"TC J jD kD lD mD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Range input type",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-search.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-search.js deleted file mode 100644 index d7972b55..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-search.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","129":"A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","129":"C L M G N O P"},C:{"2":"xC TC 1C 2C","129":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"0 1 2 3 4 5 CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"7 8 9 J ZB K D E F A B C L M AB BB","129":"6 G N O P aB"},E:{"1":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"J ZB 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z KD OC","2":"F GD HD ID JD","16":"B NC uC"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC"},H:{"129":"iD"},I:{"1":"I nD oD","16":"jD kD","129":"TC J lD mD vC"},J:{"1":"D","129":"A"},K:{"1":"C H","2":"A","16":"B NC uC","129":"OC"},L:{"1":"I"},M:{"129":"MC"},N:{"129":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"129":"2D 3D"}},B:1,C:"Search input type",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-selection.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-selection.js deleted file mode 100644 index da411839..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/input-selection.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JD NC uC KD OC","16":"F GD HD ID"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC"},H:{"2":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Selection controls for input & textarea",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/insert-adjacent.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/insert-adjacent.js deleted file mode 100644 index 676b96a7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/insert-adjacent.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"K D E F A B","16":"wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","16":"F"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I lD mD vC nD oD","16":"jD kD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Element.insertAdjacentElement() & Element.insertAdjacentText()",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/insertadjacenthtml.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/insertadjacenthtml.js deleted file mode 100644 index 3f1f75fe..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","16":"wC","132":"K D E F"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z HD ID JD NC uC KD OC","16":"F GD"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC"},H:{"1":"iD"},I:{"1":"TC J I lD mD vC nD oD","16":"jD kD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"Element.insertAdjacentHTML()",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/internationalization.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/internationalization.js deleted file mode 100644 index 9653ecae..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/internationalization.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB 1C 2C"},D:{"1":"0 1 2 3 4 5 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","2":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:6,C:"Internationalization API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js deleted file mode 100644 index ea3d36ef..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD tD aC"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:7,C:"IntersectionObserver V2",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/intersectionobserver.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/intersectionobserver.js deleted file mode 100644 index dbb62c13..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/intersectionobserver.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"N O P","2":"C L M","260":"G","513":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB 1C 2C","194":"xB yB zB"},D:{"1":"3B UC 4B VC 5B 6B 7B","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB","260":"wB xB yB zB 0B 1B 2B","513":"0 1 2 3 4 5 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C 3C ZC 4C 5C 6C 7C aC NC"},F:{"1":"qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB GD HD ID JD NC uC KD OC","260":"jB kB lB mB nB oB pB","513":"0 1 2 3 4 5 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"1":"XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC nD oD","513":"I"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","513":"H"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J","260":"pD qD"},Q:{"513":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:5,C:"IntersectionObserver",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/intl-pluralrules.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/intl-pluralrules.js deleted file mode 100644 index b87ff588..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/intl-pluralrules.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O","130":"P"},C:{"1":"0 1 2 3 4 5 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 1C 2C"},D:{"1":"0 1 2 3 4 5 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B"},E:{"1":"L M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C 3C ZC 4C 5C 6C 7C aC NC OC"},F:{"1":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB GD HD ID JD NC uC KD OC"},G:{"1":"YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:6,C:"Intl.PluralRules API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/intrinsic-width.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/intrinsic-width.js deleted file mode 100644 index fc467ff0..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/intrinsic-width.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P","1025":"0 1 2 3 4 5 d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","1537":"Q H R S T U V W X Y Z a b c"},C:{"2":"xC","932":"6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 1C 2C","2308":"0 1 2 3 4 5 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"2":"6 7 J ZB K D E F A B C L M G N O P aB","545":"8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB","1025":"0 1 2 3 4 5 d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","1537":"rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c"},E:{"1":"QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C","516":"B C L M G NC OC 8C 9C AD bC cC PC BD","548":"F A 7C aC","676":"D E 5C 6C"},F:{"2":"F B C GD HD ID JD NC uC KD OC","513":"fB","545":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB","1025":"0 1 2 3 4 5 e f g h i j k l m n o p q r s t u v w x y z","1537":"eB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d"},G:{"1":"QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND","516":"cD dD eD bC cC PC fD","548":"QD RD SD TD UD VD WD XD YD ZD aD bD","676":"E OD PD"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC","545":"nD oD","1025":"I"},J:{"2":"D","545":"A"},K:{"2":"A B C NC uC OC","1025":"H"},L:{"1025":"I"},M:{"2308":"MC"},N:{"2":"A B"},O:{"1537":"PC"},P:{"545":"J","1025":"6 7 8 9 AB BB CB DB EB FB RC SC zD","1537":"pD qD rD sD tD aC uD vD wD xD yD QC"},Q:{"1537":"0D"},R:{"1537":"1D"},S:{"932":"2D","2308":"3D"}},B:5,C:"Intrinsic & Extrinsic Sizing",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/jpeg2000.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/jpeg2000.js deleted file mode 100644 index c192265c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/jpeg2000.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD","2":"J 3C ZC SC nC oC pC qC rC sC tC ED FD","129":"ZB 4C"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD","2":"ZC LD vC SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:6,C:"JPEG 2000 image format",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/jpegxl.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/jpegxl.js deleted file mode 100644 index 602a0f54..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/jpegxl.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","578":"a b c d e f g h i j k l m n o p q r s"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y 1C 2C","2370":"0 1 2 3 4 5 Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","194":"a b c d e f g h i j k l m n o p q r s"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD","3076":"RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","194":"KC LC Q H R WC S T U V W X Y Z a b c d e"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD","3076":"RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:6,C:"JPEG XL image format",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/jpegxr.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/jpegxr.js deleted file mode 100644 index fda37ecc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/jpegxr.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"C L M G N O P","2":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"1":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:6,C:"JPEG XR image format",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js deleted file mode 100644 index 84d9908d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC 1C 2C"},D:{"1":"0 1 2 3 4 5 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC"},E:{"1":"gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC"},F:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB GD HD ID JD NC uC KD OC"},G:{"1":"gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:6,C:"Lookbehind in JS regular expressions",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/json.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/json.js deleted file mode 100644 index 5d51e12d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/json.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D wC","129":"E"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","2":"xC TC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z ID JD NC uC KD OC","2":"F GD HD"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"JSON parsing",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js deleted file mode 100644 index 73ef4c32..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G","132":"N O P"},C:{"1":"0 1 2 3 4 5 xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB 1C 2C"},D:{"1":"0 1 2 3 4 5 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B","132":"2B 3B UC"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C","132":"aC"},F:{"1":"0 1 2 3 4 5 sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB GD HD ID JD NC uC KD OC","132":"pB qB rB"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD","132":"TD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD","132":"rD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","132":"2D"}},B:5,C:"CSS justify-content: space-evenly",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js deleted file mode 100644 index e626747b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O"},C:{"1":"0 1 2 3 4 5 6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","2":"xC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD"},H:{"2":"iD"},I:{"1":"I nD oD","2":"jD kD lD","132":"TC J mD vC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:7,C:"High-quality kerning pairs & ligatures",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js deleted file mode 100644 index f4b34015..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","16":"xC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F B GD HD ID JD NC uC KD","16":"C"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC"},H:{"2":"iD"},I:{"1":"TC J I lD mD vC nD oD","16":"jD kD"},J:{"1":"D A"},K:{"1":"H OC","2":"A B NC uC","16":"C"},L:{"1":"I"},M:{"130":"MC"},N:{"130":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:7,C:"KeyboardEvent.charCode",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/keyboardevent-code.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/keyboardevent-code.js deleted file mode 100644 index f88dc808..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/keyboardevent-code.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB 1C 2C"},D:{"1":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB","194":"nB oB pB qB rB sB"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB GD HD ID JD NC uC KD OC","194":"FB bB cB dB eB fB"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"194":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"J","194":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"194":"1D"},S:{"1":"2D 3D"}},B:5,C:"KeyboardEvent.code",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js deleted file mode 100644 index ce4aa751..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M 1C 2C"},D:{"1":"0 1 2 3 4 5 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F B G N GD HD ID JD NC uC KD","16":"C"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"2":"D A"},K:{"1":"H OC","2":"A B NC uC","16":"C"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"KeyboardEvent.getModifierState()",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/keyboardevent-key.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/keyboardevent-key.js deleted file mode 100644 index bce872da..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/keyboardevent-key.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E wC","260":"F A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","260":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 xC TC J ZB K D E F A B C L M G N O P aB 1C 2C","132":"9 AB BB CB DB EB"},D:{"1":"0 1 2 3 4 5 wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"6 7 8 9 F B G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB GD HD ID JD NC uC KD","16":"C"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD"},H:{"1":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H OC","2":"A B NC uC","16":"C"},L:{"1":"I"},M:{"1":"MC"},N:{"260":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"KeyboardEvent.key",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/keyboardevent-location.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/keyboardevent-location.js deleted file mode 100644 index 1cf0823a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/keyboardevent-location.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M 1C 2C"},D:{"1":"0 1 2 3 4 5 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","132":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB"},E:{"1":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"K 3C ZC","132":"J ZB 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F B GD HD ID JD NC uC KD","16":"C","132":"G N"},G:{"1":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC","132":"MD ND OD"},H:{"2":"iD"},I:{"1":"I nD oD","16":"jD kD","132":"TC J lD mD vC"},J:{"132":"D A"},K:{"1":"H OC","2":"A B NC uC","16":"C"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"KeyboardEvent.location",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/keyboardevent-which.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/keyboardevent-which.js deleted file mode 100644 index fd04b71c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/keyboardevent-which.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC","16":"ZB"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z HD ID JD NC uC KD OC","16":"F GD"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC"},H:{"2":"iD"},I:{"1":"TC J I lD mD vC","16":"jD kD","132":"nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"132":"I"},M:{"132":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"2":"J","132":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"132":"1D"},S:{"1":"2D 3D"}},B:7,C:"KeyboardEvent.which",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/lazyload.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/lazyload.js deleted file mode 100644 index 80000e05..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/lazyload.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A wC"},B:{"1":"C L M G N O P","2":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"1":"B","2":"A"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"Resource Hints: Lazyload",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/let.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/let.js deleted file mode 100644 index 84778639..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/let.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A wC","2052":"B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","194":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB 1C 2C"},D:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L M G N O P","322":"6 7 8 9 aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB","516":"mB nB oB pB qB rB sB tB"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C 7C","1028":"A aC"},F:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","322":"6 7 8 9 G N O P aB AB BB CB DB","516":"EB FB bB cB dB eB fB gB"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD","1028":"SD TD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","2":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","516":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"let",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-icon-png.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-icon-png.js deleted file mode 100644 index 3d22cee7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-icon-png.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","130":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD"},H:{"130":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D","130":"A"},K:{"1":"H","130":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"130":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"PNG favicons",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-icon-svg.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-icon-svg.js deleted file mode 100644 index 0af1903c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-icon-svg.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P Q","1537":"0 1 2 3 4 5 H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"xC TC 1C 2C","260":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB","513":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q","1537":"0 1 2 3 4 5 H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC"},F:{"1":"pB qB rB sB tB uB vB wB xB yB","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B GD HD ID JD NC uC KD OC","1537":"0 1 2 3 4 5 AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"1":"sC tC","2":"WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC","130":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD"},H:{"130":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D","130":"A"},K:{"130":"A B C NC uC OC","1537":"H"},L:{"1537":"I"},M:{"2":"MC"},N:{"130":"A B"},O:{"2":"PC"},P:{"2":"J pD qD rD sD tD aC uD vD","1537":"6 7 8 9 AB BB CB DB EB FB wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"1537":"1D"},S:{"513":"2D 3D"}},B:1,C:"SVG favicons",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js deleted file mode 100644 index 5c4ac1f3..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E wC","132":"F"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC","260":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"sC tC","16":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC"},H:{"2":"iD"},I:{"16":"TC J I jD kD lD mD vC nD oD"},J:{"16":"D A"},K:{"1":"H","16":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","2":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","16":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"Resource Hints: dns-prefetch",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js deleted file mode 100644 index 119994ab..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x 1C 2C"},D:{"1":"0 1 2 3 4 5 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B"},E:{"1":"RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD"},F:{"1":"0 1 2 3 4 5 yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB GD HD ID JD NC uC KD OC"},G:{"1":"RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:1,C:"Resource Hints: modulepreload",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-rel-preconnect.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-rel-preconnect.js deleted file mode 100644 index 77971a2c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M","260":"G N O P"},C:{"1":"0 1 2 3 4 5 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB 1C 2C","129":"kB","514":"EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x"},D:{"1":"0 1 2 3 4 5 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB"},E:{"1":"C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B 3C ZC 4C 5C 6C 7C aC"},F:{"1":"0 1 2 3 4 5 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB GD HD ID JD NC uC KD OC"},G:{"1":"VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"Resource Hints: preconnect",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-rel-prefetch.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-rel-prefetch.js deleted file mode 100644 index 75b42353..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D"},E:{"2":"J ZB K D E F A B C L 3C ZC 4C 5C 6C 7C aC NC OC","194":"M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD","194":"bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"J I nD oD","2":"TC jD kD lD mD vC"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","2":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"Resource Hints: prefetch",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-rel-preload.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-rel-preload.js deleted file mode 100644 index 2b12de6b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-rel-preload.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N","1028":"O P"},C:{"1":"0 1 2 3 4 5 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1C 2C","132":"1B","578":"2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T"},D:{"1":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB"},E:{"1":"C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC","322":"B"},F:{"1":"0 1 2 3 4 5 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB GD HD ID JD NC uC KD OC"},G:{"1":"VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD","322":"UD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:4,C:"Resource Hints: preload",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-rel-prerender.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-rel-prerender.js deleted file mode 100644 index b3845df8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/link-rel-prerender.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"1":"B","2":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:5,C:"Resource Hints: prerender",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/loading-lazy-attr.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/loading-lazy-attr.js deleted file mode 100644 index be3458e5..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC 1C 2C","132":"0 1 2 3 IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},D:{"1":"0 1 2 3 4 5 KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC","66":"IC JC"},E:{"1":"gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L 3C ZC 4C 5C 6C 7C aC NC OC","322":"M G 8C 9C AD bC","580":"cC PC BD QC dC eC fC"},F:{"1":"0 1 2 3 4 5 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B GD HD ID JD NC uC KD OC","66":"5B 6B"},G:{"1":"gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD","322":"bD cD dD eD bC","580":"cC PC fD QC dC eC fC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB vD wD xD yD QC RC SC zD","2":"J pD qD rD sD tD aC uD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D","132":"3D"}},B:1,C:"Lazy loading via attribute for images & iframes",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/localecompare.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/localecompare.js deleted file mode 100644 index 7f607b14..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/localecompare.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","16":"wC","132":"K D E F A"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","132":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB 1C 2C"},D:{"1":"0 1 2 3 4 5 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","132":"6 7 8 9 J ZB K D E F A B C L M G N O P aB"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","132":"J ZB K D E F 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","16":"F B C GD HD ID JD NC uC KD","132":"OC"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","132":"E ZC LD vC MD ND OD PD QD RD"},H:{"132":"iD"},I:{"1":"I nD oD","132":"TC J jD kD lD mD vC"},J:{"132":"D A"},K:{"1":"H","16":"A B C NC uC","132":"OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","132":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","132":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","4":"2D"}},B:6,C:"localeCompare()",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/magnetometer.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/magnetometer.js deleted file mode 100644 index 31023aad..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/magnetometer.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B","194":"0 1 2 3 4 5 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB GD HD ID JD NC uC KD OC","194":"0 1 2 3 4 5 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"194":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:4,C:"Magnetometer",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/matchesselector.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/matchesselector.js deleted file mode 100644 index fd4512e8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/matchesselector.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E wC","36":"F A B"},B:{"1":"0 1 2 3 4 5 G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","36":"C L M"},C:{"1":"0 1 2 3 4 5 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C","36":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB 2C"},D:{"1":"0 1 2 3 4 5 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","36":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB"},E:{"1":"E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC","36":"ZB K D 4C 5C"},F:{"1":"0 1 2 3 4 5 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B GD HD ID JD NC","36":"6 C G N O P aB uC KD OC"},G:{"1":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC","36":"LD vC MD ND OD"},H:{"2":"iD"},I:{"1":"I","2":"jD","36":"TC J kD lD mD vC nD oD"},J:{"36":"D A"},K:{"1":"H","2":"A B","36":"C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"36":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","36":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"matches() DOM method",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/matchmedia.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/matchmedia.js deleted file mode 100644 index d4f09fba..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/matchmedia.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E"},E:{"1":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F B C GD HD ID JD NC uC KD"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC"},H:{"1":"iD"},I:{"1":"TC J I mD vC nD oD","2":"jD kD lD"},J:{"1":"A","2":"D"},K:{"1":"H OC","2":"A B C NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"matchMedia",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mathml.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/mathml.js deleted file mode 100644 index b734dcbf..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mathml.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"F A B wC","8":"K D E"},B:{"2":"C L M G N O P","8":"Q H R S T U V W X Y Z a b c d e f","584":"g h i j k l m n o p q r","1025":"0 1 2 3 4 5 s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","129":"xC TC 1C 2C"},D:{"1":"AB","8":"6 7 8 9 J ZB K D E F A B C L M G N O P aB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f","584":"g h i j k l m n o p q r","1025":"0 1 2 3 4 5 s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","260":"J ZB K D E F 3C ZC 4C 5C 6C 7C"},F:{"2":"F","8":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC","584":"S T U V W X Y Z a b c d","1025":"0 1 2 3 4 5 e f g h i j k l m n o p q r s t u v w x y z","2052":"B C GD HD ID JD NC uC KD OC"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","8":"ZC LD vC"},H:{"8":"iD"},I:{"8":"TC J jD kD lD mD vC nD oD","1025":"I"},J:{"1":"A","8":"D"},K:{"8":"A B C NC uC OC","1025":"H"},L:{"1025":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"8":"PC"},P:{"1":"7 8 9 AB BB CB DB EB FB","8":"6 J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"8":"0D"},R:{"8":"1D"},S:{"1":"2D 3D"}},B:2,C:"MathML",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/maxlength.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/maxlength.js deleted file mode 100644 index 5c00f079..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/maxlength.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","16":"wC","900":"K D E F"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","1025":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","900":"xC TC 1C 2C","1025":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"ZB 3C","900":"J ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","16":"F","132":"B C GD HD ID JD NC uC KD OC"},G:{"1":"LD vC MD ND OD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC","2052":"E PD"},H:{"132":"iD"},I:{"1":"TC J lD mD vC nD oD","16":"jD kD","4097":"I"},J:{"1":"D A"},K:{"132":"A B C NC uC OC","4097":"H"},L:{"4097":"I"},M:{"4097":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"4097":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1025":"2D 3D"}},B:1,C:"maxlength attribute for input and textarea elements",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js deleted file mode 100644 index f7264954..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{D:{"1":"0 1 2 3 4 5 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB","33":"dB eB fB gB hB"},L:{"1":"I"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","33":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB 1C 2C"},M:{"1":"MC"},A:{"2":"K D E F A wC","33":"B"},F:{"1":"0 1 2 3 4 5 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C G N O P GD HD ID JD NC uC KD OC","33":"6 7 8 9 aB"},K:{"1":"H","2":"A B C NC uC OC"},E:{"1":"cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC FD"},G:{"1":"cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},I:{"1":"I","2":"TC J jD kD lD mD vC","33":"nD oD"}},B:6,C:"CSS ::backdrop pseudo-element",D:undefined}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js deleted file mode 100644 index eede9ddd..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{D:{"1":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB"},L:{"1":"I"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M G N 1C 2C","33":"6 7 8 9 O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB"},M:{"1":"MC"},A:{"2":"K D E F A B wC"},F:{"1":"0 1 2 3 4 5 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB GD HD ID JD NC uC KD OC"},K:{"1":"H","2":"A B C NC uC OC"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED","2":"J ZB K 3C ZC 4C 5C FD","33":"D E F A 6C 7C aC"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND","33":"E OD PD QD RD SD TD"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"}},B:6,C:"isolate-override from unicode-bidi",D:undefined}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js deleted file mode 100644 index ec12c76b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{D:{"1":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L M G","33":"6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB"},L:{"1":"I"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F 1C 2C","33":"6 7 8 9 A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB"},M:{"1":"MC"},A:{"2":"K D E F A B wC"},F:{"1":"0 1 2 3 4 5 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","33":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB"},K:{"1":"H","2":"A B C NC uC OC"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED","2":"J ZB 3C ZC 4C FD","33":"K D E F A 5C 6C 7C aC"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD","33":"E ND OD PD QD RD SD TD"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"}},B:6,C:"isolate from unicode-bidi",D:undefined}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js deleted file mode 100644 index b243a6b4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{D:{"1":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB"},L:{"1":"I"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F 1C 2C","33":"6 7 8 9 A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB"},M:{"1":"MC"},A:{"2":"K D E F A B wC"},F:{"1":"0 1 2 3 4 5 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB GD HD ID JD NC uC KD OC"},K:{"1":"H","2":"A B C NC uC OC"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED","2":"J ZB 3C ZC 4C FD","33":"K D E F A 5C 6C 7C aC"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD","33":"E ND OD PD QD RD SD TD"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"}},B:6,C:"plaintext from unicode-bidi",D:undefined}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js deleted file mode 100644 index d6c2f174..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{D:{"1":"0 1 2 3 4 5 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B"},L:{"1":"I"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB 1C 2C","33":"6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB"},M:{"1":"MC"},A:{"2":"K D E F A B wC"},F:{"1":"0 1 2 3 4 5 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB GD HD ID JD NC uC KD OC"},K:{"1":"H","2":"A B C NC uC OC"},E:{"1":"L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED","2":"J ZB K D 3C ZC 4C 5C 6C FD","33":"E F A B C 7C aC NC"},G:{"1":"XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND OD","33":"E PD QD RD SD TD UD VD WD"},P:{"1":"6 7 8 9 AB BB CB DB EB FB rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"}},B:6,C:"text-decoration-color property",D:undefined}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js deleted file mode 100644 index a5ee9e6d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{D:{"1":"0 1 2 3 4 5 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B"},L:{"1":"I"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB 1C 2C","33":"6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB"},M:{"1":"MC"},A:{"2":"K D E F A B wC"},F:{"1":"0 1 2 3 4 5 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB GD HD ID JD NC uC KD OC"},K:{"1":"H","2":"A B C NC uC OC"},E:{"1":"L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED","2":"J ZB K D 3C ZC 4C 5C 6C FD","33":"E F A B C 7C aC NC"},G:{"1":"XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND OD","33":"E PD QD RD SD TD UD VD WD"},P:{"1":"6 7 8 9 AB BB CB DB EB FB rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"}},B:6,C:"text-decoration-line property",D:undefined}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js deleted file mode 100644 index 0152c190..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{D:{"1":"0 1 2 3 4 5 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B"},L:{"1":"I"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB 1C 2C"},M:{"1":"MC"},A:{"2":"K D E F A B wC"},F:{"1":"0 1 2 3 4 5 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB GD HD ID JD NC uC KD OC"},K:{"1":"H","2":"A B C NC uC OC"},E:{"2":"J ZB K D 3C ZC 4C 5C 6C FD","33":"E F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED"},G:{"2":"ZC LD vC MD ND OD","33":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"}},B:6,C:"text-decoration shorthand property",D:undefined}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js deleted file mode 100644 index 69aadc73..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{D:{"1":"0 1 2 3 4 5 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B"},L:{"1":"I"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB 1C 2C","33":"6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB"},M:{"1":"MC"},A:{"2":"K D E F A B wC"},F:{"1":"0 1 2 3 4 5 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB GD HD ID JD NC uC KD OC"},K:{"1":"H","2":"A B C NC uC OC"},E:{"1":"L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED","2":"J ZB K D 3C ZC 4C 5C 6C FD","33":"E F A B C 7C aC NC"},G:{"1":"XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND OD","33":"E PD QD RD SD TD UD VD WD"},P:{"1":"6 7 8 9 AB BB CB DB EB FB rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"}},B:6,C:"text-decoration-style property",D:undefined}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/media-fragments.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/media-fragments.js deleted file mode 100644 index c6397e71..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/media-fragments.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P","132":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB 1C 2C","132":"0 1 2 3 4 5 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"2":"J ZB K D E F A B C L M G N O","132":"0 1 2 3 4 5 6 7 8 9 P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB 3C ZC 4C","132":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"F B C GD HD ID JD NC uC KD OC","132":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"ZC LD vC MD ND OD","132":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC","132":"I nD oD"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","132":"H"},L:{"132":"I"},M:{"132":"MC"},N:{"132":"A B"},O:{"132":"PC"},P:{"2":"J pD","132":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"132":"0D"},R:{"132":"1D"},S:{"132":"2D 3D"}},B:2,C:"Media Fragments",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js deleted file mode 100644 index ea1d107d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB 1C 2C","260":"0 1 2 3 4 5 oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"0 1 2 3 4 5 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB","324":"wB xB yB zB 0B 1B 2B 3B UC 4B VC"},E:{"2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC","132":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB GD HD ID JD NC uC KD OC","324":"hB iB jB kB lB mB nB oB pB qB rB sB"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"260":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB sD tD aC uD vD wD xD yD QC RC SC zD","2":"J","132":"pD qD rD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"260":"2D 3D"}},B:5,C:"Media Capture from DOM Elements API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mediarecorder.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/mediarecorder.js deleted file mode 100644 index 3cf497b2..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mediarecorder.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB 1C 2C"},D:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB","194":"sB tB"},E:{"1":"G 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C 3C ZC 4C 5C 6C 7C aC NC","322":"L M OC 8C"},F:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB GD HD ID JD NC uC KD OC","194":"fB gB"},G:{"1":"dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD","578":"WD XD YD ZD aD bD cD"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"MediaRecorder API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mediasource.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/mediasource.js deleted file mode 100644 index 820db40f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mediasource.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A wC","132":"B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB 1C 2C","66":"BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB"},D:{"1":"0 1 2 3 4 5 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L M G N","33":"9 AB BB CB DB EB FB bB","66":"6 7 8 O P aB"},E:{"1":"E F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD","260":"YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I oD","2":"TC J jD kD lD mD vC nD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","2":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"Media Source Extensions",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/menu.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/menu.js deleted file mode 100644 index aba0fa21..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/menu.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"xC TC J ZB K D 1C 2C","132":"6 7 8 9 E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T","450":"0 1 2 3 4 5 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","66":"mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","66":"gB hB iB jB kB lB mB nB oB pB qB rB"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"450":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"Context menu item (menuitem element)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/meta-theme-color.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/meta-theme-color.js deleted file mode 100644 index c71f9c33..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/meta-theme-color.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB","132":"0 1 2 3 4 5 GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","258":"kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC"},E:{"1":"G AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC","2":"J ZB K D E F A B C L M 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C","2052":"sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD","1026":"sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"516":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J","16":"pD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:1,C:"theme-color Meta Tag",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/meter.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/meter.js deleted file mode 100644 index b21cf336..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/meter.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M G 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D"},E:{"1":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z NC uC KD OC","2":"F GD HD ID JD"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD"},H:{"1":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","2":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"meter element",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/midi.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/midi.js deleted file mode 100644 index cc6a8247..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/midi.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q 1C 2C"},D:{"1":"0 1 2 3 4 5 oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:5,C:"Web MIDI API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/minmaxwh.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/minmaxwh.js deleted file mode 100644 index 45014743..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/minmaxwh.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","8":"K wC","129":"D","257":"E"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS min/max-width/height",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mp3.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/mp3.js deleted file mode 100644 index 93e0e38a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mp3.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC","132":"6 7 J ZB K D E F A B C L M G N O P aB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC"},H:{"2":"iD"},I:{"1":"TC J I lD mD vC nD oD","2":"jD kD"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","2":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"MP3 audio format",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mpeg-dash.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/mpeg-dash.js deleted file mode 100644 index 6a7b1ba6..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mpeg-dash.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"C L M G N O P","2":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","386":"7 8"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:6,C:"Dynamic Adaptive Streaming over HTTP (MPEG-DASH)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mpeg4.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/mpeg4.js deleted file mode 100644 index 8b063360..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mpeg4.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 xC TC J ZB K D E F A B C L M G N O P aB 1C 2C","4":"7 8 9 AB BB CB DB EB FB bB cB dB eB fB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C"},F:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I nD oD","4":"TC J jD kD mD vC","132":"lD"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","2":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"MPEG-4/H.264 video format",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/multibackgrounds.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/multibackgrounds.js deleted file mode 100644 index 24b23163..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/multibackgrounds.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 2C","2":"xC TC 1C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z ID JD NC uC KD OC","2":"F GD HD"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS3 Multiple backgrounds",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/multicolumn.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/multicolumn.js deleted file mode 100644 index de9defe8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/multicolumn.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"C L M G N O P","516":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"132":"xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B","164":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB 1C 2C","516":"8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a","1028":"0 1 2 3 4 5 b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"420":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB","516":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","132":"F 7C","164":"D E 6C","420":"J ZB K 3C ZC 4C 5C"},F:{"1":"C NC uC KD OC","2":"F B GD HD ID JD","420":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB","516":"0 1 2 3 4 5 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","132":"QD RD","164":"E OD PD","420":"ZC LD vC MD ND"},H:{"1":"iD"},I:{"420":"TC J jD kD lD mD vC nD oD","516":"I"},J:{"420":"D A"},K:{"1":"C NC uC OC","2":"A B","516":"H"},L:{"516":"I"},M:{"1028":"MC"},N:{"1":"A B"},O:{"516":"PC"},P:{"420":"J","516":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"516":"0D"},R:{"516":"1D"},S:{"164":"2D 3D"}},B:4,C:"CSS3 Multiple column layout",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mutation-events.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/mutation-events.js deleted file mode 100644 index 0e218810..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mutation-events.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E wC","260":"F A B"},B:{"2":"UB VB WB XB YB I","66":"KB LB MB NB OB PB QB RB SB TB","132":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB","260":"C L M G N O P"},C:{"2":"xC TC J ZB XB YB I XC MC YC yC zC 0C 1C 2C","260":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB"},D:{"2":"SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M","66":"KB LB MB NB OB PB QB RB","132":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB"},E:{"2":"sC tC ED FD","16":"3C ZC","132":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC"},F:{"1":"C KD OC","2":"F GD HD ID JD","16":"B NC uC","66":"0 1 2 3 4 5 w x y z","132":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v"},G:{"2":"sC tC","16":"ZC LD","132":"E vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC"},H:{"2":"iD"},I:{"2":"I","16":"jD kD","132":"TC J lD mD vC nD oD"},J:{"132":"D A"},K:{"1":"C OC","2":"A","16":"B NC uC","132":"H"},L:{"2":"I"},M:{"2":"MC"},N:{"260":"A B"},O:{"132":"PC"},P:{"132":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"132":"0D"},R:{"132":"1D"},S:{"260":"2D 3D"}},B:7,C:"Mutation events",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mutationobserver.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/mutationobserver.js deleted file mode 100644 index 62809637..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/mutationobserver.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","2":"K D E wC","8":"F A"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L 1C 2C"},D:{"1":"0 1 2 3 4 5 DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L M G N O","33":"6 7 8 9 P aB AB BB CB"},E:{"1":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C","33":"K"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD","33":"ND"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC jD kD lD","8":"J mD vC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","8":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Mutation Observer",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/namevalue-storage.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/namevalue-storage.js deleted file mode 100644 index 7a67215a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/namevalue-storage.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"E F A B","2":"wC","8":"K D"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","4":"xC TC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z ID JD NC uC KD OC","2":"F GD HD"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","2":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Web Storage - name/value pairs",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/native-filesystem-api.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/native-filesystem-api.js deleted file mode 100644 index a7ae9c36..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/native-filesystem-api.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P","194":"Q H R S T U","260":"V W X Y Z a b c d e f g h i j k l m n"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC","194":"HC IC JC KC LC Q H R S T U","260":"V W X Y Z a b c d e f g h i j k l m n"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B GD HD ID JD NC uC KD OC","194":"5B 6B 7B 8B 9B AC BC CC DC EC","260":"FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"File System Access API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/nav-timing.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/nav-timing.js deleted file mode 100644 index 5f228997..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/nav-timing.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB","33":"K D E F A B C"},E:{"1":"E F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND OD PD"},H:{"2":"iD"},I:{"1":"J I mD vC nD oD","2":"TC jD kD lD"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"Navigation Timing API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/netinfo.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/netinfo.js deleted file mode 100644 index e26175ca..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/netinfo.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P","1028":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B","1028":"0 1 2 3 4 5 VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB GD HD ID JD NC uC KD OC","1028":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"jD nD oD","132":"TC J kD lD mD vC"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB sD tD aC uD vD wD xD yD QC RC SC zD","132":"J","516":"pD qD rD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"3D","260":"2D"}},B:7,C:"Network Information API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/notifications.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/notifications.js deleted file mode 100644 index d49857a7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/notifications.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L"},C:{"1":"0 1 2 3 4 5 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 xC TC J ZB K D E F A B C L M G N O P aB 1C 2C"},D:{"1":"0 1 2 3 4 5 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J","36":"6 7 ZB K D E F A B C L M G N O P aB"},E:{"1":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C"},F:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC","516":"gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC","36":"I nD oD"},J:{"1":"A","2":"D"},K:{"2":"A B C NC uC OC","36":"H"},L:{"257":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"36":"J","130":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"130":"1D"},S:{"1":"2D 3D"}},B:1,C:"Web Notifications",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/object-entries.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/object-entries.js deleted file mode 100644 index ae59ffe9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/object-entries.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L"},C:{"1":"0 1 2 3 4 5 sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB 1C 2C"},D:{"1":"0 1 2 3 4 5 zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB GD HD ID JD NC uC KD OC"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D","16":"A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"Object.entries",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/object-fit.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/object-fit.js deleted file mode 100644 index 5b5e25cc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/object-fit.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G","260":"N O P"},C:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB 1C 2C"},D:{"1":"0 1 2 3 4 5 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D 3C ZC 4C 5C","132":"E F 6C 7C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F G N O P GD HD ID","33":"B C JD NC uC KD OC"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND OD","132":"E PD QD RD"},H:{"33":"iD"},I:{"1":"I oD","2":"TC J jD kD lD mD vC nD"},J:{"2":"D A"},K:{"1":"H","2":"A","33":"B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS3 object-fit/object-position",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/object-observe.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/object-observe.js deleted file mode 100644 index 3cd7bdf6..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/object-observe.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"hB iB jB kB lB mB nB oB pB qB rB sB tB uB","2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"9 AB BB CB DB EB FB bB cB dB eB fB gB hB","2":"0 1 2 3 4 5 6 7 8 F B C G N O P aB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"J","2":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"Object.observe data binding",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/object-values.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/object-values.js deleted file mode 100644 index 763df44a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/object-values.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"8":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L"},C:{"1":"0 1 2 3 4 5 sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","8":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB 1C 2C"},D:{"1":"0 1 2 3 4 5 zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","8":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","8":"J ZB K D E F A 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","8":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB GD HD ID JD NC uC KD OC"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","8":"E ZC LD vC MD ND OD PD QD RD SD"},H:{"8":"iD"},I:{"1":"I","8":"TC J jD kD lD mD vC nD oD"},J:{"8":"D A"},K:{"1":"H","8":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"8":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","8":"J pD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"Object.values method",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/objectrtc.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/objectrtc.js deleted file mode 100644 index 94881a38..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/objectrtc.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"L M G N O P","2":"0 1 2 3 4 5 C Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:6,C:"Object RTC (ORTC) API for WebRTC",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/offline-apps.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/offline-apps.js deleted file mode 100644 index 6a73507e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/offline-apps.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"F wC","8":"K D E"},B:{"1":"C L M G N O P Q H R S T","2":"0 1 2 3 4 5 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S 1C 2C","2":"0 1 2 3 4 5 T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","4":"TC","8":"xC"},D:{"1":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T","2":"0 1 2 3 4 5 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M 4C 5C 6C 7C aC NC OC 8C 9C","2":"G AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","8":"3C ZC"},F:{"1":"6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC JD NC uC KD OC","2":"0 1 2 3 4 5 F GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD","8":"HD ID"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD","2":"eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"TC J jD kD lD mD vC nD oD","2":"I"},J:{"1":"D A"},K:{"1":"B C NC uC OC","2":"A H"},L:{"2":"I"},M:{"2":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"2":"1D"},S:{"1":"2D","2":"3D"}},B:7,C:"Offline web applications",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/offscreencanvas.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/offscreencanvas.js deleted file mode 100644 index 8822287a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/offscreencanvas.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB 1C 2C","194":"pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n"},D:{"1":"0 1 2 3 4 5 CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B","322":"3B UC 4B VC 5B 6B 7B 8B 9B AC BC"},E:{"1":"RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC","516":"eC fC gC hC CD"},F:{"1":"0 1 2 3 4 5 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB GD HD ID JD NC uC KD OC","322":"qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B"},G:{"1":"RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC","516":"eC fC gC hC gD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD tD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"194":"2D 3D"}},B:1,C:"OffscreenCanvas",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/ogg-vorbis.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/ogg-vorbis.js deleted file mode 100644 index 3946979c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/ogg-vorbis.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","2":"xC TC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"qC rC sC tC ED FD","2":"J ZB K D E F A B C L M 3C ZC 4C 5C 6C 7C aC NC OC 8C","260":"RC iC jC kC lC mC DD SC nC oC pC","388":"G 9C AD bC cC PC BD QC dC eC fC gC hC CD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z ID JD NC uC KD OC","2":"F GD HD"},G:{"1":"qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC","260":"lC mC hD SC nC oC pC"},H:{"2":"iD"},I:{"1":"TC J I lD mD vC nD oD","16":"jD kD"},J:{"1":"A","2":"D"},K:{"1":"B C H NC uC OC","2":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"Ogg Vorbis audio format",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/ogv.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/ogv.js deleted file mode 100644 index 9966c69d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/ogv.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E wC","8":"F A B"},B:{"1":"0 1 2 3 4 O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","8":"C L M G N","194":"5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB 1C 2C","2":"xC TC NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"0 1 2 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","194":"3 4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o ID JD NC uC KD OC","2":"F GD HD","194":"0 1 2 3 4 5 p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"1":"MC"},N:{"8":"A B"},O:{"1":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"2":"1D"},S:{"1":"2D 3D"}},B:6,C:"Ogg/Theora video format",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/ol-reversed.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/ol-reversed.js deleted file mode 100644 index 721277a8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/ol-reversed.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M G N O 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L M G","16":"N O P aB"},E:{"1":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C","16":"K"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F B GD HD ID JD NC uC KD","16":"C"},G:{"1":"E ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD"},H:{"1":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Reversed attribute of ordered lists",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/once-event-listener.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/once-event-listener.js deleted file mode 100644 index 43704470..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/once-event-listener.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G"},C:{"1":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB 1C 2C"},D:{"1":"0 1 2 3 4 5 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB GD HD ID JD NC uC KD OC"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:1,C:"\"once\" event listener option",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/online-status.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/online-status.js deleted file mode 100644 index 11d38bdd..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/online-status.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D wC","260":"E"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","2":"xC TC","516":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L"},E:{"1":"ZB K E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC","1025":"D"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD","4":"OC"},G:{"1":"E vC MD ND PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD","1025":"OD"},H:{"2":"iD"},I:{"1":"TC J I lD mD vC nD oD","16":"jD kD"},J:{"1":"A","132":"D"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Online/offline status",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/opus.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/opus.js deleted file mode 100644 index 568fe948..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/opus.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M 1C 2C"},D:{"1":"0 1 2 3 4 5 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB"},E:{"2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC","132":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC","260":"lC","516":"mC DD SC nC oC pC","1028":"qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C G N O P aB GD HD ID JD NC uC KD OC"},G:{"1":"qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD","132":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC","260":"lC","516":"mC hD SC nC oC pC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"Opus audio format",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/orientation-sensor.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/orientation-sensor.js deleted file mode 100644 index d968eeb3..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/orientation-sensor.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B","194":"3B UC 4B VC 5B 6B 7B 8B 9B"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:4,C:"Orientation Sensor",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/outline.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/outline.js deleted file mode 100644 index c8b07b30..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/outline.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D wC","260":"E","388":"F A B"},B:{"1":"0 1 2 3 4 5 G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","388":"C L M"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z KD","129":"OC","260":"F B GD HD ID JD NC uC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"C H OC","260":"A B NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"388":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS outline properties",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/pad-start-end.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/pad-start-end.js deleted file mode 100644 index f26f4165..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/pad-start-end.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M"},C:{"1":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB 1C 2C"},D:{"1":"0 1 2 3 4 5 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB GD HD ID JD NC uC KD OC"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"String.prototype.padStart(), String.prototype.padEnd()",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/page-transition-events.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/page-transition-events.js deleted file mode 100644 index ebcaef90..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/page-transition-events.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC"},H:{"2":"iD"},I:{"1":"TC J I lD mD vC nD oD","16":"jD kD"},J:{"1":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","2":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"PageTransitionEvent",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/pagevisibility.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/pagevisibility.js deleted file mode 100644 index 0bbc4c57..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/pagevisibility.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F 1C 2C","33":"A B C L M G N O"},D:{"1":"0 1 2 3 4 5 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L","33":"6 7 8 9 M G N O P aB AB BB CB DB EB FB bB cB dB"},E:{"1":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F B C GD HD ID JD NC uC KD","33":"G N O P aB"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC","33":"nD oD"},J:{"1":"A","2":"D"},K:{"1":"H OC","2":"A B C NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","33":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"Page Visibility",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/passive-event-listener.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/passive-event-listener.js deleted file mode 100644 index d87052f0..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/passive-event-listener.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G"},C:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB 1C 2C"},D:{"1":"0 1 2 3 4 5 wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB GD HD ID JD NC uC KD OC"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:1,C:"Passive event listeners",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/passkeys.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/passkeys.js deleted file mode 100644 index d830fb7b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/passkeys.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q"},C:{"1":"5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"0 1 2 3 4 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 1C 2C"},D:{"1":"0 1 2 3 4 5 r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q"},E:{"1":"dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC"},F:{"1":"0 1 2 3 4 5 g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f GD HD ID JD NC uC KD OC"},G:{"1":"QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"7 8 9 AB BB CB DB EB FB","2":"J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","16":"6"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:6,C:"Passkeys",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/passwordrules.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/passwordrules.js deleted file mode 100644 index 750fdc9b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/passwordrules.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P","16":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC 1C 2C","16":"yC zC 0C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","16":"XC MC YC"},E:{"1":"C L OC","2":"J ZB K D E F A B 3C ZC 4C 5C 6C 7C aC NC","16":"M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB GD HD ID JD NC uC KD OC","16":"0 1 2 3 4 5 yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"16":"iD"},I:{"2":"TC J jD kD lD mD vC nD oD","16":"I"},J:{"2":"D","16":"A"},K:{"2":"A B C NC uC OC","16":"H"},L:{"16":"I"},M:{"16":"MC"},N:{"2":"A","16":"B"},O:{"16":"PC"},P:{"2":"J pD qD","16":"6 7 8 9 AB BB CB DB EB FB rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"16":"0D"},R:{"16":"1D"},S:{"2":"2D 3D"}},B:1,C:"Password Rules",D:false}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/path2d.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/path2d.js deleted file mode 100644 index 996fea2f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/path2d.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L","132":"M G N O P"},C:{"1":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB 1C 2C","132":"cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB"},D:{"1":"0 1 2 3 4 5 BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB","132":"hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC"},E:{"1":"A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D 3C ZC 4C 5C","132":"E F 6C"},F:{"1":"0 1 2 3 4 5 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 F B C G N O P aB GD HD ID JD NC uC KD OC","132":"9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND OD","16":"E","132":"PD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB aC uD vD wD xD yD QC RC SC zD","132":"J pD qD rD sD tD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Path2D",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/payment-request.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/payment-request.js deleted file mode 100644 index 2fbf5294..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/payment-request.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L","322":"M","8196":"G N O P"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 1C 2C","4162":"0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B","16452":"0 1 2 3 4 5 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"0 1 2 3 4 5 LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB","194":"yB zB 0B 1B 2B 3B","1090":"UC 4B","8196":"VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC"},E:{"1":"L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C 7C","514":"A B aC","8196":"C NC"},F:{"1":"0 1 2 3 4 5 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB GD HD ID JD NC uC KD OC","194":"lB mB nB oB pB qB rB sB","8196":"tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B"},G:{"1":"XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD","514":"SD TD UD","8196":"VD WD"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"2049":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB vD wD xD yD QC RC SC zD","2":"J","8196":"pD qD rD sD tD aC uD"},Q:{"8196":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:2,C:"Payment Request API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/pdf-viewer.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/pdf-viewer.js deleted file mode 100644 index b380d2b0..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/pdf-viewer.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A wC","132":"B"},B:{"1":"0 1 2 3 4 5 G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","16":"C L M"},C:{"1":"0 1 2 3 4 5 6 7 8 9 aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M G N O P 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F B GD HD ID JD NC uC KD"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"16":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"16":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:6,C:"Built-in PDF viewer",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/permissions-api.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/permissions-api.js deleted file mode 100644 index daeabfcf..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/permissions-api.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB 1C 2C"},D:{"1":"0 1 2 3 4 5 oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB"},E:{"1":"QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD"},F:{"1":"0 1 2 3 4 5 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB GD HD ID JD NC uC KD OC"},G:{"1":"QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"Permissions API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/permissions-policy.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/permissions-policy.js deleted file mode 100644 index 626b9d5e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/permissions-policy.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P","258":"Q H R S T U","322":"V W","388":"0 1 2 3 4 5 X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC 1C 2C","258":"0 1 2 3 4 5 HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC","258":"4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U","322":"V W","388":"0 1 2 3 4 5 X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B 3C ZC 4C 5C 6C 7C aC","258":"C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB GD HD ID JD NC uC KD OC","258":"sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC","322":"FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d","388":"0 1 2 3 4 5 e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD","258":"VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC nD oD","258":"I"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","388":"H"},L:{"388":"I"},M:{"258":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"J pD qD rD","258":"6 7 8 9 AB BB CB DB EB FB sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"258":"0D"},R:{"388":"1D"},S:{"2":"2D","258":"3D"}},B:5,C:"Permissions Policy",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/picture-in-picture.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/picture-in-picture.js deleted file mode 100644 index 6900a336..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/picture-in-picture.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B 1C 2C","132":"0 1 2 3 4 5 FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","1090":"AC","1412":"EC","1668":"BC CC DC"},D:{"1":"0 1 2 3 4 5 DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC","2114":"CC"},E:{"1":"M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C 7C","4100":"A B C L aC NC OC"},F:{"1":"0 1 2 3 4 5 GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB GD HD ID JD NC uC KD OC","8196":"iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC"},G:{"1":"cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD","4100":"QD RD SD TD UD VD WD XD YD ZD aD bD"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"16388":"I"},M:{"16388":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"Picture-in-Picture",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/picture.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/picture.js deleted file mode 100644 index e2e1c82a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/picture.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C"},C:{"1":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB 1C 2C","578":"fB gB hB iB"},D:{"1":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB","194":"iB"},E:{"1":"A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB GD HD ID JD NC uC KD OC","322":"AB"},G:{"1":"RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Picture element",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/ping.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/ping.js deleted file mode 100644 index a3d0a4f8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/ping.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N"},C:{"2":"xC","194":"0 1 2 3 4 5 6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M"},E:{"1":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"194":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"194":"2D 3D"}},B:1,C:"Ping attribute",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/png-alpha.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/png-alpha.js deleted file mode 100644 index 20cd91dc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/png-alpha.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"D E F A B","2":"wC","8":"K"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"PNG alpha transparency",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/pointer-events.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/pointer-events.js deleted file mode 100644 index 008d436a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/pointer-events.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 2C","2":"xC TC 1C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","2":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:7,C:"CSS pointer-events (for HTML)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/pointer.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/pointer.js deleted file mode 100644 index 9053a8cd..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/pointer.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","2":"K D E F wC","164":"A"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB 1C 2C","8":"6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB","328":"mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B"},D:{"1":"0 1 2 3 4 5 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 J ZB K D E F A B C L M G N O P aB","8":"8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB","584":"xB yB zB"},E:{"1":"L M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C","8":"D E F A B C 5C 6C 7C aC NC","1096":"OC"},F:{"1":"0 1 2 3 4 5 nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","8":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB","584":"kB lB mB"},G:{"1":"ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","8":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD","6148":"YD"},H:{"2":"iD"},I:{"1":"I","8":"TC J jD kD lD mD vC nD oD"},J:{"8":"D A"},K:{"1":"H","2":"A","8":"B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","36":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"pD","8":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","328":"2D"}},B:2,C:"Pointer events",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/pointerlock.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/pointerlock.js deleted file mode 100644 index cd71e7a5..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/pointerlock.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C"},C:{"1":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L 1C 2C","33":"6 7 8 9 M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB"},D:{"1":"0 1 2 3 4 5 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L M G","33":"8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB","66":"6 7 N O P aB"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","33":"6 7 8 9 G N O P aB"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","16":"H"},L:{"2":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"16":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"16":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"Pointer Lock API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/portals.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/portals.js deleted file mode 100644 index 3c1758c3..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/portals.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P Q H R S T","322":"0 1 2 3 4 5 Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","450":"U V W X Y"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC","194":"IC JC KC LC Q H R S T","322":"0 1 2 3 4 5 V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","450":"U"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B GD HD ID JD NC uC KD OC","194":"5B 6B 7B 8B 9B AC BC CC DC EC FC","322":"0 1 2 3 4 5 GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"450":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"Portals",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/prefers-color-scheme.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/prefers-color-scheme.js deleted file mode 100644 index cdb11c9f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B 1C 2C"},D:{"1":"0 1 2 3 4 5 JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC"},E:{"1":"L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C 3C ZC 4C 5C 6C 7C aC NC"},F:{"1":"0 1 2 3 4 5 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B GD HD ID JD NC uC KD OC"},G:{"1":"YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB vD wD xD yD QC RC SC zD","2":"J pD qD rD sD tD aC uD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:5,C:"prefers-color-scheme media query",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js deleted file mode 100644 index 1491f4e8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 1C 2C"},D:{"1":"0 1 2 3 4 5 HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B GD HD ID JD NC uC KD OC"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD tD aC"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:5,C:"prefers-reduced-motion media query",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/progress.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/progress.js deleted file mode 100644 index dacf8804..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/progress.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D"},E:{"1":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z NC uC KD OC","2":"F GD HD ID JD"},G:{"1":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND","132":"OD"},H:{"1":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","2":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"progress element",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/promise-finally.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/promise-finally.js deleted file mode 100644 index e822b76b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/promise-finally.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O"},C:{"1":"0 1 2 3 4 5 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 1C 2C"},D:{"1":"0 1 2 3 4 5 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B"},E:{"1":"C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B 3C ZC 4C 5C 6C 7C aC"},F:{"1":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB GD HD ID JD NC uC KD OC"},G:{"1":"VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:6,C:"Promise.prototype.finally",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/promises.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/promises.js deleted file mode 100644 index 2588cb7f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/promises.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"8":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","4":"DB EB","8":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB 1C 2C"},D:{"1":"0 1 2 3 4 5 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","4":"dB","8":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB"},E:{"1":"E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","8":"J ZB K D 3C ZC 4C 5C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","4":"aB","8":"F B C G N O P GD HD ID JD NC uC KD OC"},G:{"1":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","8":"ZC LD vC MD ND OD"},H:{"8":"iD"},I:{"1":"I oD","8":"TC J jD kD lD mD vC nD"},J:{"8":"D A"},K:{"1":"H","8":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"8":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"Promises",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/proximity.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/proximity.js deleted file mode 100644 index 0ce576c6..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/proximity.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"1":"2D 3D"}},B:4,C:"Proximity API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/proxy.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/proxy.js deleted file mode 100644 index 2400d3f4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/proxy.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M G N O 1C 2C"},D:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L M G N O P jB kB lB mB nB oB pB qB rB sB tB","66":"6 7 8 9 aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C BB CB DB EB FB bB cB dB eB fB gB GD HD ID JD NC uC KD OC","66":"6 7 8 9 G N O P aB AB"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"Proxy object",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/publickeypinning.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/publickeypinning.js deleted file mode 100644 index 5d9d7410..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/publickeypinning.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC","2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC","2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B","2":"0 1 2 3 4 5 F B C G N O P aB 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","4":"9","16":"6 7 8 AB"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"J pD qD rD sD tD aC","2":"6 7 8 9 AB BB CB DB EB FB uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"1":"2D","2":"3D"}},B:6,C:"HTTP Public Key Pinning",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/push-api.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/push-api.js deleted file mode 100644 index e2fdd0e7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/push-api.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"O P","2":"C L M G N","257":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB 1C 2C","257":"0 1 2 3 4 5 pB rB sB tB uB vB wB yB zB 0B 1B 2B 3B UC VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","1281":"qB xB 4B"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB","257":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","388":"pB qB rB sB tB uB"},E:{"2":"J ZB K 3C ZC 4C 5C","514":"D E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC","4609":"SC nC oC pC qC rC sC tC ED FD","6660":"dC eC fC gC hC CD RC iC jC kC lC mC DD"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB GD HD ID JD NC uC KD OC","16":"iB jB kB lB mB","257":"0 1 2 3 4 5 nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC","8196":"gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"2":"1D"},S:{"257":"2D 3D"}},B:5,C:"Push API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/queryselector.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/queryselector.js deleted file mode 100644 index 6f865278..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/queryselector.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"wC","8":"K D","132":"E"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","8":"xC TC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z HD ID JD NC uC KD OC","8":"F GD"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"querySelector/querySelectorAll",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/readonly-attr.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/readonly-attr.js deleted file mode 100644 index 0004851c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/readonly-attr.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"K D E F A B","16":"wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","16":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB"},E:{"1":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"J ZB 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","16":"F GD","132":"B C HD ID JD NC uC KD OC"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC MD ND"},H:{"1":"iD"},I:{"1":"TC J I lD mD vC nD oD","16":"jD kD"},J:{"1":"D A"},K:{"1":"H","132":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"257":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"readonly attribute of input and textarea elements",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/referrer-policy.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/referrer-policy.js deleted file mode 100644 index 49341ce2..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/referrer-policy.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A wC","132":"B"},B:{"1":"0 1 2 3 4 5 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","132":"C L M G N O P","513":"Q H R S T"},C:{"1":"W X Y Z a","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB 1C 2C","513":"hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V","2049":"0 1 2 3 4 5 b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"0 1 2 3 4 5 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 J ZB K D E F A B C L M G N O P aB","260":"7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B","513":"VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T"},E:{"2":"J ZB K D 3C ZC 4C 5C","132":"E F A B 6C 7C aC","513":"C NC OC","1025":"G AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","1537":"L M 8C 9C"},F:{"1":"0 1 2 3 4 5 GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","513":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC"},G:{"2":"ZC LD vC MD ND OD","132":"E PD QD RD SD TD UD VD","513":"WD XD YD ZD","1025":"eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","1537":"aD bD cD dD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2049":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB xD yD QC RC SC zD","2":"J","513":"pD qD rD sD tD aC uD vD wD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"513":"2D 3D"}},B:4,C:"Referrer Policy",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/registerprotocolhandler.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/registerprotocolhandler.js deleted file mode 100644 index 5a191b0f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P","129":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","2":"xC"},D:{"2":"J ZB K D E F A B C","129":"0 1 2 3 4 5 6 7 8 9 L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"F B GD HD ID JD NC uC","129":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D","129":"A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:1,C:"Custom protocol handling",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/rel-noopener.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/rel-noopener.js deleted file mode 100644 index 77e51e60..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/rel-noopener.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB 1C 2C"},D:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB GD HD ID JD NC uC KD OC"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:1,C:"rel=noopener",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/rel-noreferrer.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/rel-noreferrer.js deleted file mode 100644 index 3e1103c1..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/rel-noreferrer.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A wC","132":"B"},B:{"1":"0 1 2 3 4 5 L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","16":"C"},C:{"1":"0 1 2 3 4 5 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M G"},E:{"1":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC"},H:{"2":"iD"},I:{"1":"TC J I lD mD vC nD oD","16":"jD kD"},J:{"1":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Link type \"noreferrer\"",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/rellist.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/rellist.js deleted file mode 100644 index 5b0f6681..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/rellist.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N","132":"O"},C:{"1":"0 1 2 3 4 5 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB 1C 2C"},D:{"1":"0 1 2 3 4 5 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB","132":"vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB GD HD ID JD NC uC KD OC","132":"iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB tD aC uD vD wD xD yD QC RC SC zD","2":"J","132":"pD qD rD sD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"relList (DOMTokenList)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/rem.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/rem.js deleted file mode 100644 index c9984dc0..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/rem.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","2":"K D E wC","132":"F A"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 2C","2":"xC TC 1C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z KD OC","2":"F B GD HD ID JD NC uC"},G:{"1":"E LD vC ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC","260":"MD"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"C H OC","2":"A B NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"rem (root em) units",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/requestanimationframe.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/requestanimationframe.js deleted file mode 100644 index e1875609..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/requestanimationframe.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C","33":"6 7 8 B C L M G N O P aB","164":"J ZB K D E F A"},D:{"1":"0 1 2 3 4 5 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F","33":"8 9","164":"6 7 P aB","420":"A B C L M G N O"},E:{"1":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C","33":"K"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD","33":"ND"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"requestAnimationFrame",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/requestidlecallback.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/requestidlecallback.js deleted file mode 100644 index dcac2ed3..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/requestidlecallback.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB 1C 2C","194":"yB zB"},D:{"1":"0 1 2 3 4 5 sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB"},E:{"1":"FD","2":"J ZB K D E F A B C L 3C ZC 4C 5C 6C 7C aC NC OC","322":"M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED"},F:{"1":"0 1 2 3 4 5 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD","322":"bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:5,C:"requestIdleCallback",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/resizeobserver.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/resizeobserver.js deleted file mode 100644 index 92db8a16..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/resizeobserver.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC 1C 2C"},D:{"1":"0 1 2 3 4 5 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB","194":"zB 0B 1B 2B 3B UC 4B VC 5B 6B"},E:{"1":"M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C 3C ZC 4C 5C 6C 7C aC NC OC","66":"L"},F:{"1":"0 1 2 3 4 5 xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB GD HD ID JD NC uC KD OC","194":"mB nB oB pB qB rB sB tB uB vB wB"},G:{"1":"bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:5,C:"Resize Observer",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/resource-timing.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/resource-timing.js deleted file mode 100644 index 955caff1..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/resource-timing.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB 1C 2C","194":"cB dB eB fB"},D:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB"},E:{"1":"C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC","260":"B"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"Resource Timing (basic support)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/rest-parameters.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/rest-parameters.js deleted file mode 100644 index 1cd31d65..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/rest-parameters.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M 1C 2C"},D:{"1":"0 1 2 3 4 5 sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB","194":"pB qB rB"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB GD HD ID JD NC uC KD OC","194":"cB dB eB"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"Rest parameters",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/rtcpeerconnection.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/rtcpeerconnection.js deleted file mode 100644 index 445b332e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M","260":"G N O P"},C:{"1":"0 1 2 3 4 5 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 xC TC J ZB K D E F A B C L M G N O P aB 1C 2C","33":"8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},D:{"1":"0 1 2 3 4 5 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 J ZB K D E F A B C L M G N O P aB","33":"9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC"},F:{"1":"0 1 2 3 4 5 oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C G N O GD HD ID JD NC uC KD OC","33":"6 7 8 9 P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D","130":"A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","33":"J pD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"WebRTC Peer-to-peer connections",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/ruby.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/ruby.js deleted file mode 100644 index 6e5507ed..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/ruby.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"4":"K D E wC","132":"F A B"},B:{"4":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","8":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB 1C 2C"},D:{"4":"0 1 2 3 4 5 6 7 8 9 ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","8":"J"},E:{"4":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","8":"J 3C ZC"},F:{"4":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","8":"F B C GD HD ID JD NC uC KD OC"},G:{"4":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","8":"ZC LD vC"},H:{"8":"iD"},I:{"4":"TC J I mD vC nD oD","8":"jD kD lD"},J:{"4":"A","8":"D"},K:{"4":"H","8":"A B C NC uC OC"},L:{"4":"I"},M:{"1":"MC"},N:{"132":"A B"},O:{"4":"PC"},P:{"4":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"4":"0D"},R:{"4":"1D"},S:{"1":"2D 3D"}},B:1,C:"Ruby annotation",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/run-in.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/run-in.js deleted file mode 100644 index 99748ce0..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/run-in.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"E F A B","2":"K D wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB","2":"0 1 2 3 4 5 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"ZB K 4C","2":"D E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"5C","129":"J 3C ZC"},F:{"1":"F B C G N O P GD HD ID JD NC uC KD OC","2":"0 1 2 3 4 5 6 7 8 9 aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"1":"LD vC MD ND OD","2":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","129":"ZC"},H:{"1":"iD"},I:{"1":"TC J jD kD lD mD vC nD","2":"I oD"},J:{"1":"D A"},K:{"1":"A B C NC uC OC","2":"H"},L:{"2":"I"},M:{"2":"MC"},N:{"1":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:4,C:"display: run-in",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js deleted file mode 100644 index f3406c95..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A wC","388":"B"},B:{"1":"P Q H R S T U","2":"C L M G","129":"N O","513":"0 1 2 3 4 5 V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 1C 2C"},D:{"1":"wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB","513":"0 1 2 3 4 5 H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"G AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B 3C ZC 4C 5C 6C 7C aC NC","2052":"M 9C","3076":"C L OC 8C"},F:{"1":"kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB GD HD ID JD NC uC KD OC","513":"0 1 2 3 4 5 EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"1":"YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD","2052":"WD XD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","513":"H"},L:{"513":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"16":"0D"},R:{"513":"1D"},S:{"1":"3D","2":"2D"}},B:6,C:"'SameSite' cookie attribute",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/screen-orientation.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/screen-orientation.js deleted file mode 100644 index 72483f72..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/screen-orientation.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A wC","164":"B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","36":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M G N O 1C 2C","36":"6 7 8 9 P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},D:{"1":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB"},E:{"1":"gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC"},F:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB GD HD ID JD NC uC KD OC"},G:{"1":"gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A","36":"B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","16":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"Screen Orientation",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/script-async.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/script-async.js deleted file mode 100644 index d690e598..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/script-async.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 2C","2":"xC TC 1C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D"},E:{"1":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC","132":"ZB"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC"},H:{"2":"iD"},I:{"1":"TC J I mD vC nD oD","2":"jD kD lD"},J:{"1":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"async attribute for external scripts",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/script-defer.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/script-defer.js deleted file mode 100644 index 26233162..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/script-defer.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","132":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC","257":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D"},E:{"1":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC"},H:{"2":"iD"},I:{"1":"TC J I mD vC nD oD","2":"jD kD lD"},J:{"1":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"defer attribute for external scripts",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/scrollintoview.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/scrollintoview.js deleted file mode 100644 index b2bb8da6..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/scrollintoview.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D wC","132":"E F A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","132":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","132":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB 1C 2C"},D:{"1":"0 1 2 3 4 5 VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","132":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B"},E:{"1":"QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC","132":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD"},F:{"1":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F GD HD ID JD","16":"B NC uC","132":"6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB KD OC"},G:{"1":"QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC","132":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD"},H:{"2":"iD"},I:{"1":"I","16":"jD kD","132":"TC J lD mD vC nD oD"},J:{"132":"D A"},K:{"1":"H","132":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"132":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB sD tD aC uD vD wD xD yD QC RC SC zD","132":"J pD qD rD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"scrollIntoView",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js deleted file mode 100644 index c5329a56..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M"},E:{"1":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"J ZB 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC"},H:{"2":"iD"},I:{"1":"TC J I lD mD vC nD oD","16":"jD kD"},J:{"1":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:7,C:"Element.scrollIntoViewIfNeeded()",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/sdch.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/sdch.js deleted file mode 100644 index bdc169f8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/sdch.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B","2":"0 1 2 3 4 5 UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC","2":"0 1 2 3 4 5 F B C GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:6,C:"SDCH Accept-Encoding/Content-Encoding",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/selection-api.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/selection-api.js deleted file mode 100644 index 9e82e980..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/selection-api.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","16":"wC","260":"K D E"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","132":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB 1C 2C","2180":"oB pB qB rB sB tB uB vB wB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M"},E:{"1":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"J ZB 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","132":"F B C GD HD ID JD NC uC KD OC"},G:{"16":"vC","132":"ZC LD","516":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I nD oD","16":"TC J jD kD lD mD","1025":"vC"},J:{"1":"A","16":"D"},K:{"1":"H","16":"A B C NC uC","132":"OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","16":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2180":"2D"}},B:5,C:"Selection API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/selectlist.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/selectlist.js deleted file mode 100644 index 881b1a4e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/selectlist.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f","194":"0 1 2 3 4 5 g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f","194":"0 1 2 3 4 5 g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC GD HD ID JD NC uC KD OC","194":"0 1 2 3 4 5 S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","194":"H"},L:{"194":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"Customizable Select element",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/server-timing.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/server-timing.js deleted file mode 100644 index abf8024a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/server-timing.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B 1C 2C"},D:{"1":"0 1 2 3 4 5 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC","196":"4B VC 5B 6B","324":"7B"},E:{"1":"gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C 3C ZC 4C 5C 6C 7C aC NC","516":"L M G OC 8C 9C AD bC cC PC BD QC dC eC fC"},F:{"1":"0 1 2 3 4 5 xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB GD HD ID JD NC uC KD OC"},G:{"1":"gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:5,C:"Server Timing",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/serviceworkers.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/serviceworkers.js deleted file mode 100644 index 841f8ad4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/serviceworkers.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M","322":"G N"},C:{"1":"VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB 1C 2C","194":"eB fB gB hB iB jB kB lB mB nB oB","1025":"0 1 2 3 4 5 pB rB sB tB uB vB wB yB zB 0B 1B 2B 3B UC VC 5B 6B 7B 8B 9B AC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB","1537":"qB xB 4B BC"},D:{"1":"0 1 2 3 4 5 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB","4":"lB mB nB oB pB"},E:{"1":"C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B 3C ZC 4C 5C 6C 7C aC"},F:{"1":"0 1 2 3 4 5 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB GD HD ID JD NC uC KD OC","4":"DB EB FB bB cB"},G:{"1":"VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC nD oD","4":"I"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:4,C:"Service Workers",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/setimmediate.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/setimmediate.js deleted file mode 100644 index ab72b7c2..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/setimmediate.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"C L M G N O P","2":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"1":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"Efficient Script Yielding: setImmediate()",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/shadowdom.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/shadowdom.js deleted file mode 100644 index bd43de55..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/shadowdom.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"Q","2":"0 1 2 3 4 5 C L M G N O P H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","66":"FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B"},D:{"1":"gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q","2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","33":"BB CB DB EB FB bB cB dB eB fB"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B","2":"0 1 2 3 4 5 F B C AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","33":"6 7 G N O P aB"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC","33":"nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"pD qD rD sD tD aC uD vD","2":"6 7 8 9 AB BB CB DB EB FB wD xD yD QC RC SC zD","33":"J"},Q:{"1":"0D"},R:{"2":"1D"},S:{"1":"2D","2":"3D"}},B:7,C:"Shadow DOM (deprecated V0 spec)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/shadowdomv1.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/shadowdomv1.js deleted file mode 100644 index 0bb1266e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/shadowdomv1.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 1C 2C","322":"3B","578":"UC 4B VC 5B"},D:{"1":"0 1 2 3 4 5 yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB"},E:{"1":"A B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB GD HD ID JD NC uC KD OC"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD","132":"SD TD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J","4":"pD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:5,C:"Shadow DOM (V1)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/sharedarraybuffer.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/sharedarraybuffer.js deleted file mode 100644 index 82e76ff9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"Q H R S T U V W X Y Z","2":"C L M G","194":"N O P","513":"0 1 2 3 4 5 a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 1C 2C","194":"2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC","450":"HC IC JC KC LC","513":"0 1 2 3 4 5 Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC","194":"4B VC 5B 6B 7B 8B 9B AC","513":"0 1 2 3 4 5 a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C","194":"B C L M G aC NC OC 8C 9C AD","513":"bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB GD HD ID JD NC uC KD OC","194":"sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B","513":"0 1 2 3 4 5 LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD","194":"TD UD VD WD XD YD ZD aD bD cD dD eD","513":"bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","513":"H"},L:{"513":"I"},M:{"513":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"2":"J pD qD rD sD tD aC uD vD wD xD","513":"6 7 8 9 AB BB CB DB EB FB yD QC RC SC zD"},Q:{"2":"0D"},R:{"513":"1D"},S:{"2":"2D","513":"3D"}},B:6,C:"Shared Array Buffer",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/sharedworkers.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/sharedworkers.js deleted file mode 100644 index aa2d9e33..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/sharedworkers.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"ZB K 4C QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J D E F A B C L M G 3C ZC 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JD NC uC KD OC","2":"F GD HD ID"},G:{"1":"MD ND QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"B C NC uC OC","2":"H","16":"A"},L:{"2":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"J","2":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"1":"2D 3D"}},B:1,C:"Shared Web Workers",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/sni.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/sni.js deleted file mode 100644 index e6243b89..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/sni.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K wC","132":"D E"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC"},H:{"1":"iD"},I:{"1":"TC J I mD vC nD oD","2":"jD kD lD"},J:{"1":"A","2":"D"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"Server Name Indication",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/spdy.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/spdy.js deleted file mode 100644 index c975b199..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/spdy.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","2":"K D E F A wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"6 7 8 9 L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB","2":"0 1 2 3 4 5 xC TC J ZB K D E F A B C wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB","2":"0 1 2 3 4 5 wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"E F A B C 7C aC NC","2":"J ZB K D 3C ZC 4C 5C 6C","129":"L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB nB pB OC","2":"0 1 2 3 4 5 F B C lB mB oB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD"},G:{"1":"E PD QD RD SD TD UD VD WD","2":"ZC LD vC MD ND OD","257":"XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"TC J mD vC nD oD","2":"I jD kD lD"},J:{"2":"D A"},K:{"1":"OC","2":"A B C H NC uC"},L:{"2":"I"},M:{"2":"MC"},N:{"1":"B","2":"A"},O:{"2":"PC"},P:{"1":"J","2":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"1":"2D","2":"3D"}},B:7,C:"SPDY protocol",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/speech-recognition.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/speech-recognition.js deleted file mode 100644 index 607fd534..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/speech-recognition.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P","514":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"6 7 xC TC J ZB K D E F A B C L M G N O P aB 1C 2C","322":"0 1 2 3 4 5 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB","164":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M 3C ZC 4C 5C 6C 7C aC NC OC 8C","1060":"G 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB GD HD ID JD NC uC KD OC","514":"0 1 2 3 4 5 DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD","1060":"dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","164":"H"},L:{"164":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"164":"PC"},P:{"164":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"164":"0D"},R:{"164":"1D"},S:{"322":"2D 3D"}},B:7,C:"Speech Recognition API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/speech-synthesis.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/speech-synthesis.js deleted file mode 100644 index 7a1aaa17..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/speech-synthesis.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"M G N O P","2":"C L","257":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB 1C 2C","194":"cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB"},D:{"1":"eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB","257":"0 1 2 3 4 5 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"D E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C 5C"},F:{"1":"DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B","2":"6 7 8 9 F B C G N O P aB AB BB CB GD HD ID JD NC uC KD OC","257":"0 1 2 3 4 5 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"2":"1D"},S:{"1":"2D 3D"}},B:7,C:"Speech Synthesis API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/spellcheck-attribute.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/spellcheck-attribute.js deleted file mode 100644 index 24f24f94..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E"},E:{"1":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z ID JD NC uC KD OC","2":"F GD HD"},G:{"4":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"4":"iD"},I:{"4":"TC J I jD kD lD mD vC nD oD"},J:{"1":"A","4":"D"},K:{"4":"A B C H NC uC OC"},L:{"4":"I"},M:{"4":"MC"},N:{"4":"A B"},O:{"4":"PC"},P:{"4":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"4":"1D"},S:{"2":"2D 3D"}},B:1,C:"Spellcheck attribute",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/sql-storage.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/sql-storage.js deleted file mode 100644 index ee2ccc1a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/sql-storage.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"Q H R S T U V W X Y Z a b c d e f g h i j","2":"C L M G N O P HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","129":"k l m n o p q r s","385":"0 1 2 3 4 5 t u v w x y z GB"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j","2":"HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","129":"k l m n o p q r s","385":"0 1 t u v w x y z","897":"2 3 4 5 GB"},E:{"1":"J ZB K D E F A B C 3C ZC 4C 5C 6C 7C aC NC OC","2":"L M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z ID JD NC uC KD OC","2":"0 1 2 3 4 5 F t u v w x y z GD HD","257":"a b c d e f g h i j k l m n o p q r s"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD","2":"YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"TC J jD kD lD mD vC nD oD","2":"I"},J:{"1":"D A"},K:{"1":"B C NC uC OC","2":"A","257":"H"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:7,C:"Web SQL Database",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/srcset.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/srcset.js deleted file mode 100644 index 8149d441..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/srcset.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","260":"C","514":"L M G"},C:{"1":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB 1C 2C","194":"dB eB fB gB hB iB"},D:{"1":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB","260":"fB gB hB iB"},E:{"2":"J ZB K D 3C ZC 4C 5C","260":"E 6C","1028":"F A 7C aC","3076":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 F B C G N O P aB GD HD ID JD NC uC KD OC","260":"7 8 9 AB"},G:{"2":"ZC LD vC MD ND OD","260":"E PD","1028":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Srcset and sizes attributes",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/stream.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/stream.js deleted file mode 100644 index 0299631e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/stream.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M G N 1C 2C","129":"hB iB jB kB lB mB","420":"6 7 8 9 O P aB AB BB CB DB EB FB bB cB dB eB fB gB"},D:{"1":"0 1 2 3 4 5 yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 J ZB K D E F A B C L M G N O P aB","420":"7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC"},F:{"1":"0 1 2 3 4 5 lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B G N O GD HD ID JD NC uC KD","420":"6 7 8 9 C P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD","513":"bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","1537":"UD VD WD XD YD ZD aD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D","420":"A"},K:{"1":"H","2":"A B NC uC","420":"C OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","420":"J pD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:4,C:"getUserMedia/Stream API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/streams.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/streams.js deleted file mode 100644 index a61b7d14..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/streams.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A wC","130":"B"},B:{"1":"0 1 2 3 4 5 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","16":"C L","260":"M G","1028":"Q H R S T U V W X","5124":"N O P"},C:{"1":"0 1 2 3 4 5 l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 1C 2C","5124":"j k","7172":"8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i","7746":"2B 3B UC 4B VC 5B 6B 7B"},D:{"1":"0 1 2 3 4 5 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB","260":"xB yB zB 0B 1B 2B 3B","1028":"UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X"},E:{"2":"J ZB K D E F 3C ZC 4C 5C 6C 7C","1028":"G 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","3076":"A B C L M aC NC OC 8C"},F:{"1":"0 1 2 3 4 5 JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB GD HD ID JD NC uC KD OC","260":"kB lB mB nB oB pB qB","1028":"rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD","16":"SD","1028":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB yD QC RC SC zD","2":"J pD qD","1028":"rD sD tD aC uD vD wD xD"},Q:{"1028":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:1,C:"Streams",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/stricttransportsecurity.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/stricttransportsecurity.js deleted file mode 100644 index 23f6fba9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A wC","129":"B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"D E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C 5C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F B GD HD ID JD NC uC KD"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"Strict Transport Security",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/style-scoped.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/style-scoped.js deleted file mode 100644 index a70ae861..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/style-scoped.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB","2":"0 1 2 3 4 5 6 xC TC J ZB K D E F A B C L M G N O P aB VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","322":"0B 1B 2B 3B UC 4B"},D:{"2":"0 1 2 3 4 5 J ZB K D E F A B C L M G N O P aB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","194":"6 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"1":"2D","2":"3D"}},B:7,C:"Scoped attribute",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/subresource-bundling.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/subresource-bundling.js deleted file mode 100644 index 8a172a75..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/subresource-bundling.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"Subresource Loading with Web Bundles",D:false}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/subresource-integrity.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/subresource-integrity.js deleted file mode 100644 index ae90f8f6..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/subresource-integrity.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N"},C:{"1":"0 1 2 3 4 5 oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB 1C 2C"},D:{"1":"0 1 2 3 4 5 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC"},F:{"1":"0 1 2 3 4 5 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB GD HD ID JD NC uC KD OC"},G:{"1":"VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD","194":"UD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"Subresource Integrity",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-css.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-css.js deleted file mode 100644 index 6ad85391..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-css.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","516":"C L M G"},C:{"1":"0 1 2 3 4 5 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C","260":"6 7 8 9 J ZB K D E F A B C L M G N O P aB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","4":"J"},E:{"1":"ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C","132":"J ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","2":"F"},G:{"1":"E vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","132":"ZC LD"},H:{"260":"iD"},I:{"1":"TC J I mD vC nD oD","2":"jD kD lD"},J:{"1":"D A"},K:{"1":"H","260":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"SVG in CSS backgrounds",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-filters.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-filters.js deleted file mode 100644 index 4d5e53e2..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-filters.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","2":"xC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J","4":"ZB K D"},E:{"1":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD"},H:{"1":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"A","2":"D"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"SVG filters",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-fonts.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-fonts.js deleted file mode 100644 index 91c3ecf2..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-fonts.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"F A B wC","8":"K D E"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB","2":"0 1 2 3 4 5 wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","130":"jB kB lB mB nB oB pB qB rB sB tB uB vB"},E:{"1":"J ZB K D E F A B C L M G ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C"},F:{"1":"6 7 8 9 F B C G N O P aB AB GD HD ID JD NC uC KD OC","2":"0 1 2 3 4 5 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","130":"BB CB DB EB FB bB cB dB eB fB gB hB"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"258":"iD"},I:{"1":"TC J mD vC nD oD","2":"I jD kD lD"},J:{"1":"D A"},K:{"1":"A B C NC uC OC","2":"H"},L:{"130":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"J","130":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"130":"1D"},S:{"2":"2D 3D"}},B:2,C:"SVG fonts",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-fragment.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-fragment.js deleted file mode 100644 index d725126e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-fragment.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E wC","260":"F A B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M 1C 2C"},D:{"1":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB","132":"hB iB jB kB lB mB nB oB pB qB rB sB tB uB"},E:{"1":"C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D F A B 3C ZC 4C 5C 7C aC","132":"E 6C"},F:{"1":"0 1 2 3 4 5 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"6 7 8 G N O P aB","4":"B C HD ID JD NC uC KD","16":"F GD","132":"9 AB BB CB DB EB FB bB cB dB eB fB gB hB"},G:{"1":"VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND OD QD RD SD TD UD","132":"E PD"},H:{"1":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D","132":"A"},K:{"1":"H OC","4":"A B C NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","132":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"SVG fragment identifiers",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-html.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-html.js deleted file mode 100644 index 7ec6f365..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-html.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E wC","388":"F A B"},B:{"4":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","260":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","2":"xC","4":"TC"},D:{"4":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"3C ZC","4":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"4":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"4":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC","4":"I nD oD"},J:{"1":"A","2":"D"},K:{"4":"A B C H NC uC OC"},L:{"4":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"4":"PC"},P:{"4":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"4":"0D"},R:{"4":"1D"},S:{"1":"2D 3D"}},B:2,C:"SVG effects for HTML",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-html5.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-html5.js deleted file mode 100644 index 670adaa5..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-html5.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"wC","8":"K D E","129":"F A B"},B:{"1":"0 1 2 3 4 5 O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","129":"C L M G N"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","8":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","8":"J ZB K"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","8":"J ZB 3C ZC","129":"K D E 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z KD OC","2":"B JD NC uC","8":"F GD HD ID"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","8":"ZC LD vC","129":"E MD ND OD PD"},H:{"1":"iD"},I:{"1":"I nD oD","2":"jD kD lD","129":"TC J mD vC"},J:{"1":"A","129":"D"},K:{"1":"C H OC","8":"A B NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"129":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Inline SVG in HTML5",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-img.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-img.js deleted file mode 100644 index 27e8458d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-img.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","132":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C","4":"ZC","132":"J ZB K D E 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","132":"E ZC LD vC MD ND OD PD"},H:{"1":"iD"},I:{"1":"I nD oD","2":"jD kD lD","132":"TC J mD vC"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"SVG in HTML img element",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-smil.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-smil.js deleted file mode 100644 index f0bf2cc5..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg-smil.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"wC","8":"K D E F A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","8":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","8":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","4":"J"},E:{"1":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","8":"3C ZC","132":"J ZB 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","132":"ZC LD vC MD"},H:{"2":"iD"},I:{"1":"TC J I mD vC nD oD","2":"jD kD lD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"8":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"SVG SMIL animation",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg.js deleted file mode 100644 index a35414cf..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/svg.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"wC","8":"K D E","772":"F A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","513":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","4":"xC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","4":"3C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"I nD oD","2":"jD kD lD","132":"TC J mD vC"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"257":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"SVG (basic support)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/sxg.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/sxg.js deleted file mode 100644 index 53d733f7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/sxg.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC","132":"EC FC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD tD aC"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:6,C:"Signed HTTP Exchanges (SXG)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/tabindex-attr.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/tabindex-attr.js deleted file mode 100644 index 7e9d9325..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/tabindex-attr.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"D E F A B","16":"K wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"16":"xC TC 1C 2C","129":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M"},E:{"16":"J ZB 3C ZC","257":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","16":"F"},G:{"769":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"16":"iD"},I:{"16":"TC J I jD kD lD mD vC nD oD"},J:{"16":"D A"},K:{"1":"H","16":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"16":"A B"},O:{"1":"PC"},P:{"16":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"129":"2D 3D"}},B:1,C:"tabindex global attribute",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/template-literals.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/template-literals.js deleted file mode 100644 index 483bd783..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/template-literals.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","16":"C"},C:{"1":"0 1 2 3 4 5 fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB 1C 2C"},D:{"1":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB"},E:{"1":"A B L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C","129":"C"},F:{"1":"0 1 2 3 4 5 FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB GD HD ID JD NC uC KD OC"},G:{"1":"QD RD SD TD UD VD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD","129":"WD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"ES6 Template Literals (Template Strings)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/template.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/template.js deleted file mode 100644 index ae2142bc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/template.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C","388":"L M"},C:{"1":"0 1 2 3 4 5 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 xC TC J ZB K D E F A B C L M G N O P aB 1C 2C"},D:{"1":"0 1 2 3 4 5 gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB","132":"CB DB EB FB bB cB dB eB fB"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D 3C ZC 4C","388":"E 6C","514":"5C"},F:{"1":"0 1 2 3 4 5 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","132":"6 7 G N O P aB"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND OD","388":"E PD"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"HTML templates",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/temporal.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/temporal.js deleted file mode 100644 index cfcd600f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/temporal.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"WB XB YB I XC MC YC yC zC 0C","2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB 1C 2C","194":"SB TB UB VB"},D:{"1":"MC YC","2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:6,C:"Temporal",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/testfeat.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/testfeat.js deleted file mode 100644 index 14e644f1..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/testfeat.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E A B wC","16":"F"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","16":"J ZB"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"B C"},E:{"2":"J K 3C ZC 4C","16":"ZB D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD uC KD OC","16":"NC"},G:{"2":"ZC LD vC MD ND","16":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD mD vC nD oD","16":"lD"},J:{"2":"A","16":"D"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"Test feature - updated",D:false}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/text-decoration.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/text-decoration.js deleted file mode 100644 index 15b3bd41..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/text-decoration.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P","2052":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"xC TC J ZB 1C 2C","1028":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","1060":"6 7 8 9 K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB","226":"CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B","2052":"0 1 2 3 4 5 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D 3C ZC 4C 5C","772":"L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","804":"E F A B C 7C aC NC","1316":"6C"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB GD HD ID JD NC uC KD OC","226":"gB hB iB jB kB lB mB nB oB","2052":"0 1 2 3 4 5 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"ZC LD vC MD ND OD","292":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","2052":"H"},L:{"2052":"I"},M:{"1028":"MC"},N:{"2":"A B"},O:{"2052":"PC"},P:{"2":"J pD qD","2052":"6 7 8 9 AB BB CB DB EB FB rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2052":"0D"},R:{"2052":"1D"},S:{"1028":"2D 3D"}},B:4,C:"text-decoration styling",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/text-emphasis.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/text-emphasis.js deleted file mode 100644 index 68d9f81a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/text-emphasis.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P","164":"Q H R S T U V W X Y Z a b c d e f g h"},C:{"1":"0 1 2 3 4 5 rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB 1C 2C","322":"qB"},D:{"1":"0 1 2 3 4 5 i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB","164":"BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h"},E:{"1":"E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C","164":"D 5C"},F:{"1":"0 1 2 3 4 5 V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","164":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC","164":"nD oD"},J:{"2":"D","164":"A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB SC zD","164":"J pD qD rD sD tD aC uD vD wD xD yD QC RC"},Q:{"164":"0D"},R:{"164":"1D"},S:{"1":"2D 3D"}},B:4,C:"text-emphasis styling",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/text-overflow.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/text-overflow.js deleted file mode 100644 index b7c77983..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/text-overflow.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"K D E F A B","2":"wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","8":"xC TC J ZB K 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z NC uC KD OC","33":"F GD HD ID JD"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"H OC","33":"A B C NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"CSS3 Text-overflow",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/text-size-adjust.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/text-size-adjust.js deleted file mode 100644 index dfe03beb..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/text-size-adjust.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","33":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB","258":"CB"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","258":"4C"},F:{"1":"0 1 2 3 4 5 oB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB pB GD HD ID JD NC uC KD OC"},G:{"2":"ZC LD vC","33":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"33":"MC"},N:{"161":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:7,C:"CSS text-size-adjust",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/text-stroke.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/text-stroke.js deleted file mode 100644 index ab21f7fd..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/text-stroke.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M","33":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","161":"G N O P"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB 1C 2C","161":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","450":"tB"},D:{"33":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"33":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"F B C GD HD ID JD NC uC KD OC","33":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"33":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","36":"ZC"},H:{"2":"iD"},I:{"2":"TC","33":"J I jD kD lD mD vC nD oD"},J:{"33":"D A"},K:{"2":"A B C NC uC OC","33":"H"},L:{"33":"I"},M:{"161":"MC"},N:{"2":"A B"},O:{"33":"PC"},P:{"33":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"33":"0D"},R:{"33":"1D"},S:{"161":"2D 3D"}},B:7,C:"CSS text-stroke and text-fill",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/textcontent.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/textcontent.js deleted file mode 100644 index 5b57d503..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/textcontent.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"3C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","16":"F"},G:{"1":"E LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC"},H:{"1":"iD"},I:{"1":"TC J I lD mD vC nD oD","16":"jD kD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Node.textContent",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/textencoder.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/textencoder.js deleted file mode 100644 index 506281e3..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/textencoder.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M G N O P 1C 2C","132":"aB"},D:{"1":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB GD HD ID JD NC uC KD OC"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"TextEncoder & TextDecoder",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/tls1-1.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/tls1-1.js deleted file mode 100644 index 41d7f497..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/tls1-1.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","2":"K D wC","66":"E F A"},B:{"1":"C L M G N O P Q H R S T","2":"0 1 2 3 4 5 h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","1540":"U V W X Y Z a b c d e f g"},C:{"1":"AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC","2":"0 1 2 3 4 5 6 7 8 xC TC J ZB K D E F A B C L M G N O P aB g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","66":"9","129":"BC CC DC EC FC GC HC IC JC KC","388":"LC Q H R WC S T U V W X Y Z a b c d e f"},D:{"1":"8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T","2":"0 1 2 3 4 5 6 7 J ZB K D E F A B C L M G N O P aB h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","1540":"U V W X Y Z a b c d e f g"},E:{"1":"D E F A B C L 6C 7C aC NC OC","2":"J ZB K 3C ZC 4C 5C","513":"M 8C","1028":"G 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC OC","2":"0 1 2 3 4 5 F B C T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD","1540":"GC HC IC JC KC LC Q H R WC S"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD","2":"ZC LD vC","1028":"cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"16":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"1":"A","2":"D"},K:{"1":"OC","2":"A B C H NC uC"},L:{"2":"I"},M:{"2":"MC"},N:{"1":"B","66":"A"},O:{"2":"PC"},P:{"1":"J pD qD rD sD tD","2":"6 7 8 9 AB BB CB DB EB FB aC uD vD wD xD yD QC RC SC zD"},Q:{"16":"0D"},R:{"16":"1D"},S:{"1":"2D 3D"}},B:7,C:"TLS 1.1",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/tls1-2.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/tls1-2.js deleted file mode 100644 index 031a252f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/tls1-2.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","2":"K D wC","66":"E F A"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB 1C 2C","66":"AB BB CB"},D:{"1":"0 1 2 3 4 5 FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB"},E:{"1":"D E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C 5C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F G GD","66":"B C HD ID JD NC uC KD OC"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC"},H:{"1":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"1":"A","2":"D"},K:{"1":"H OC","2":"A B C NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","66":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"TLS 1.2",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/tls1-3.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/tls1-3.js deleted file mode 100644 index acc698d8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/tls1-3.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB 1C 2C","132":"4B VC 5B","450":"wB xB yB zB 0B 1B 2B 3B UC"},D:{"1":"0 1 2 3 4 5 DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB","706":"zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC"},E:{"1":"M G 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C 3C ZC 4C 5C 6C 7C aC NC","1028":"L OC 8C"},F:{"1":"0 1 2 3 4 5 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB GD HD ID JD NC uC KD OC","706":"zB 0B 1B"},G:{"1":"XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD tD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:6,C:"TLS 1.3",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/touch.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/touch.js deleted file mode 100644 index 7d22b6bd..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/touch.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","8":"A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","578":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 P aB AB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C","4":"J ZB K D E F A B C L M G N O","194":"BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB"},D:{"1":"0 1 2 3 4 5 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 J ZB K D E F A B C L M G N O P aB"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","2":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"8":"A","260":"B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:2,C:"Touch events",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/transforms2d.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/transforms2d.js deleted file mode 100644 index c49e0bf3..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/transforms2d.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"wC","8":"K D E","129":"A B","161":"F"},B:{"1":"0 1 2 3 4 5 O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","129":"C L M G N"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC","33":"J ZB K D E F A B C L M G 1C 2C"},D:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","33":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","33":"J ZB K D E 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F GD HD","33":"6 7 8 B C G N O P aB ID JD NC uC KD"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","33":"E ZC LD vC MD ND OD PD"},H:{"2":"iD"},I:{"1":"I","33":"TC J jD kD lD mD vC nD oD"},J:{"33":"D A"},K:{"1":"B C H NC uC OC","2":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS3 2D Transforms",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/transforms3d.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/transforms3d.js deleted file mode 100644 index 3bb426b9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/transforms3d.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","132":"A B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F 1C 2C","33":"A B C L M G"},D:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B","33":"6 7 8 9 C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB"},E:{"1":"cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C ZC","33":"J ZB K D E 4C 5C 6C","257":"F A B C L M G 7C aC NC OC 8C 9C AD bC"},F:{"1":"0 1 2 3 4 5 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","33":"6 7 8 G N O P aB"},G:{"1":"cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","33":"E ZC LD vC MD ND OD PD","257":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC"},H:{"2":"iD"},I:{"1":"I","2":"jD kD lD","33":"TC J mD vC nD oD"},J:{"33":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"132":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:5,C:"CSS3 3D Transforms",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/trusted-types.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/trusted-types.js deleted file mode 100644 index 5d508923..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/trusted-types.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R"},E:{"1":"sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC"},F:{"1":"0 1 2 3 4 5 CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC GD HD ID JD NC uC KD OC"},G:{"1":"sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB wD xD yD QC RC SC zD","2":"J pD qD rD sD tD aC uD vD"},Q:{"2":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:7,C:"Trusted Types for DOM manipulation",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/ttf.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/ttf.js deleted file mode 100644 index eb67a2a3..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/ttf.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E wC","132":"F A B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","2":"xC TC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z HD ID JD NC uC KD OC","2":"F GD"},G:{"1":"E vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD"},H:{"2":"iD"},I:{"1":"TC J I kD lD mD vC nD oD","2":"jD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"132":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"TTF/OTF - TrueType and OpenType font support",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/typedarrays.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/typedarrays.js deleted file mode 100644 index acbaa0a1..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/typedarrays.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"B","2":"K D E F wC","132":"A"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K"},E:{"1":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC","260":"4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z KD OC","2":"F B GD HD ID JD NC uC"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD","260":"vC"},H:{"1":"iD"},I:{"1":"J I mD vC nD oD","2":"TC jD kD lD"},J:{"1":"A","2":"D"},K:{"1":"C H OC","2":"A B NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"132":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"Typed Arrays",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/u2f.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/u2f.js deleted file mode 100644 index cfa1bd41..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/u2f.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","513":"Q H R S T U V W X Y Z a b c d e f g h i j k l m n o"},C:{"1":"AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u","2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","322":"sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B v w"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","130":"jB kB lB","513":"mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g","578":"h i j k l m n o"},E:{"1":"L M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C 3C ZC 4C 5C 6C 7C aC NC OC"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB mB GD HD ID JD NC uC KD OC","513":"0 1 2 3 4 5 lB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"1":"aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"1":"3D","322":"2D"}},B:7,C:"FIDO U2F API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/unhandledrejection.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/unhandledrejection.js deleted file mode 100644 index d705fb1f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/unhandledrejection.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC 1C 2C"},D:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC"},F:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB GD HD ID JD NC uC KD OC"},G:{"1":"VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD","16":"UD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:1,C:"unhandledrejection/rejectionhandled events",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js deleted file mode 100644 index 200a48ce..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N"},C:{"1":"0 1 2 3 4 5 nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB 1C 2C"},D:{"1":"0 1 2 3 4 5 oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB GD HD ID JD NC uC KD OC"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"Upgrade Insecure Requests",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js deleted file mode 100644 index c5ca7a09..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P","66":"Q H R"},C:{"1":"OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB 1C 2C"},D:{"1":"0 1 2 3 4 5 R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC","66":"HC IC JC KC LC Q H"},E:{"1":"dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC"},F:{"1":"0 1 2 3 4 5 BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B GD HD ID JD NC uC KD OC","66":"9B AC"},G:{"1":"dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB wD xD yD QC RC SC zD","2":"J pD qD rD sD tD aC uD vD"},Q:{"2":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:7,C:"URL Scroll-To-Text Fragment",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/url.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/url.js deleted file mode 100644 index 8af3249e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/url.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB 1C 2C"},D:{"1":"0 1 2 3 4 5 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 J ZB K D E F A B C L M G N O P aB","130":"9 AB BB CB DB EB FB bB cB"},E:{"1":"E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C 5C","130":"D"},F:{"1":"0 1 2 3 4 5 6 7 8 9 aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","130":"G N O P"},G:{"1":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND","130":"OD"},H:{"2":"iD"},I:{"1":"I oD","2":"TC J jD kD lD mD vC","130":"nD"},J:{"2":"D","130":"A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"URL API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/urlsearchparams.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/urlsearchparams.js deleted file mode 100644 index 743f04a2..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/urlsearchparams.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N"},C:{"1":"0 1 2 3 4 5 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB 1C 2C","132":"FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},D:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB"},E:{"1":"B C L M G aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C"},F:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB GD HD ID JD NC uC KD OC"},G:{"1":"TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"URLSearchParams",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/use-strict.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/use-strict.js deleted file mode 100644 index c7acb480..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/use-strict.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C"},E:{"1":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC","132":"ZB 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z KD OC","2":"F B GD HD ID JD NC uC"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC"},H:{"1":"iD"},I:{"1":"TC J I mD vC nD oD","2":"jD kD lD"},J:{"1":"D A"},K:{"1":"C H uC OC","2":"A B NC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"ECMAScript 5 Strict Mode",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/user-select-none.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/user-select-none.js deleted file mode 100644 index b6016bab..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/user-select-none.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","33":"A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","33":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","33":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC 1C 2C"},D:{"1":"0 1 2 3 4 5 zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","33":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB"},E:{"33":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","33":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB"},G:{"33":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","33":"TC J jD kD lD mD vC nD oD"},J:{"33":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"33":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","33":"J pD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","33":"2D"}},B:5,C:"CSS user-select: none",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/user-timing.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/user-timing.js deleted file mode 100644 index 1b7813e2..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/user-timing.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB 1C 2C"},D:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"User Timing API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/variable-fonts.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/variable-fonts.js deleted file mode 100644 index 87375497..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/variable-fonts.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB 1C 2C","4609":"5B 6B 7B 8B 9B AC BC CC DC","4674":"VC","5698":"4B","7490":"yB zB 0B 1B 2B","7746":"3B UC","8705":"0 1 2 3 4 5 EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"0 1 2 3 4 5 AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B","4097":"9B","4290":"UC 4B VC","6148":"5B 6B 7B 8B"},E:{"1":"G AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC","4609":"B C NC OC","8193":"L M 8C 9C"},F:{"1":"0 1 2 3 4 5 zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB GD HD ID JD NC uC KD OC","4097":"yB","6148":"uB vB wB xB"},G:{"1":"YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD","4097":"UD VD WD XD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"4097":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"2":"J pD qD rD","4097":"6 7 8 9 AB BB CB DB EB FB sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:5,C:"Variable fonts",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/vector-effect.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/vector-effect.js deleted file mode 100644 index 56bc5595..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/vector-effect.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K D E F A B C L M"},E:{"1":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z KD OC","2":"F B GD HD ID JD NC uC"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC"},H:{"1":"iD"},I:{"1":"I nD oD","16":"TC J jD kD lD mD vC"},J:{"16":"D A"},K:{"1":"C H OC","2":"A B NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"SVG vector-effect: non-scaling-stroke",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/vibration.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/vibration.js deleted file mode 100644 index e9dc4b99..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/vibration.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB","2":"xC TC J ZB K D E F A MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","33":"B C L M G"},D:{"1":"0 1 2 3 4 5 bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C G N GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"Vibration API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/video.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/video.js deleted file mode 100644 index 15d3c03c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/video.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC","260":"J ZB K D E F A B C L M G N O P aB 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC","513":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z ID JD NC uC KD OC","2":"F GD HD"},G:{"1025":"E ZC LD vC MD ND OD PD QD RD SD TD","1537":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"TC J I lD mD vC nD oD","132":"jD kD"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","2":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Video element",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/videotracks.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/videotracks.js deleted file mode 100644 index f9cd6007..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/videotracks.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"C L M G N O P","322":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB 1C 2C","194":"0 1 2 3 4 5 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB","322":"0 1 2 3 4 5 qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K 3C ZC 4C"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB GD HD ID JD NC uC KD OC","322":"0 1 2 3 4 5 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","322":"H"},L:{"322":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"322":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"322":"0D"},R:{"322":"1D"},S:{"194":"2D 3D"}},B:1,C:"Video Tracks",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/view-transitions.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/view-transitions.js deleted file mode 100644 index 9339997c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/view-transitions.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t"},C:{"1":"MC YC yC zC 0C","2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I 1C 2C","194":"XC"},D:{"1":"0 1 2 3 4 5 u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t"},E:{"1":"SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD"},F:{"1":"0 1 2 3 4 5 g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f GD HD ID JD NC uC KD OC"},G:{"1":"SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"9 AB BB CB DB EB FB","2":"6 7 8 J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"View Transitions API (single-document)",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/viewport-unit-variants.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/viewport-unit-variants.js deleted file mode 100644 index 46b50643..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n","194":"o p q"},C:{"1":"0 1 2 3 4 5 k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j 1C 2C"},D:{"1":"0 1 2 3 4 5 r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i","194":"j k l m n o p q"},E:{"1":"cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC"},F:{"1":"0 1 2 3 4 5 d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z GD HD ID JD NC uC KD OC","194":"a b c"},G:{"1":"cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"7 8 9 AB BB CB DB EB FB","2":"6 J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:5,C:"Small, Large, and Dynamic viewport units",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/viewport-units.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/viewport-units.js deleted file mode 100644 index aca3baba..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/viewport-units.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E wC","132":"F","260":"A B"},B:{"1":"0 1 2 3 4 5 N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","260":"C L M G"},C:{"1":"0 1 2 3 4 5 6 7 8 9 aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M G N O P 1C 2C"},D:{"1":"0 1 2 3 4 5 CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L M G N O P aB","260":"6 7 8 9 AB BB"},E:{"1":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C","260":"K"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD","516":"OD","772":"ND"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"260":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"Viewport units: vw, vh, vmin, vmax",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wai-aria.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/wai-aria.js deleted file mode 100644 index 9123ba27..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wai-aria.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D wC","4":"E F A B"},B:{"4":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"4":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"4":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"3C ZC","4":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"F","4":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"4":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"4":"iD"},I:{"2":"TC J jD kD lD mD vC","4":"I nD oD"},J:{"2":"D A"},K:{"4":"A B C H NC uC OC"},L:{"4":"I"},M:{"4":"MC"},N:{"4":"A B"},O:{"4":"PC"},P:{"4":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"4":"0D"},R:{"4":"1D"},S:{"4":"2D 3D"}},B:2,C:"WAI-ARIA Accessibility features",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wake-lock.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/wake-lock.js deleted file mode 100644 index f0b7bbac..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wake-lock.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P","194":"Q H R S T U V W X Y"},C:{"1":"JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB 1C 2C","322":"HB IB"},D:{"1":"0 1 2 3 4 5 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC","194":"EC FC GC HC IC JC KC LC Q H R S T"},E:{"1":"gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC"},F:{"1":"0 1 2 3 4 5 GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B GD HD ID JD NC uC KD OC","194":"3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC"},G:{"1":"gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB xD yD QC RC SC zD","2":"J pD qD rD sD tD aC uD vD wD"},Q:{"2":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:4,C:"Screen Wake Lock API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-bigint.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-bigint.js deleted file mode 100644 index d25901ed..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-bigint.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T"},C:{"1":"0 1 2 3 4 5 LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC 1C 2C"},D:{"1":"0 1 2 3 4 5 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T"},E:{"1":"G 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M 3C ZC 4C 5C 6C 7C aC NC OC 8C"},F:{"1":"0 1 2 3 4 5 EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC GD HD ID JD NC uC KD OC"},G:{"1":"dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB xD yD QC RC SC zD","2":"J pD qD rD sD tD aC uD vD wD"},Q:{"16":"0D"},R:{"16":"1D"},S:{"2":"2D","16":"3D"}},B:5,C:"WebAssembly BigInt to i64 conversion in JS API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js deleted file mode 100644 index 21365ef9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC 1C 2C"},D:{"1":"0 1 2 3 4 5 IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC"},E:{"1":"G AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C"},F:{"1":"0 1 2 3 4 5 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B GD HD ID JD NC uC KD OC"},G:{"1":"eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD tD aC"},Q:{"16":"0D"},R:{"16":"1D"},S:{"2":"2D","16":"3D"}},B:5,C:"WebAssembly Bulk Memory Operations",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-extended-const.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-extended-const.js deleted file mode 100644 index 53d71e0c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-extended-const.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w"},C:{"1":"0 1 2 3 4 5 v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u 1C 2C"},D:{"1":"0 1 2 3 4 5 x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w"},E:{"1":"lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC"},F:{"1":"0 1 2 3 4 5 j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i GD HD ID JD NC uC KD OC"},G:{"1":"lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"9 AB BB CB DB EB FB","2":"6 7 8 J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"16":"0D"},R:{"16":"1D"},S:{"2":"2D","16":"3D"}},B:5,C:"WebAssembly Extended Constant Expressions",D:false}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-gc.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-gc.js deleted file mode 100644 index b73ff273..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-gc.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"2 3 4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"0 1 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},C:{"1":"3 4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"0 1 2 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 1C 2C"},D:{"1":"2 3 4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"0 1 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"16":"0D"},R:{"16":"1D"},S:{"2":"2D","16":"3D"}},B:5,C:"WebAssembly Garbage Collection",D:false}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-multi-memory.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-multi-memory.js deleted file mode 100644 index 63be0377..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"3 4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"0 1 2 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},C:{"1":"IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB 1C 2C"},D:{"1":"2 3 4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"0 1 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"16":"0D"},R:{"16":"1D"},S:{"2":"2D","16":"3D"}},B:5,C:"WebAssembly Multi-Memory",D:false}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-multi-value.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-multi-value.js deleted file mode 100644 index 728fd3c5..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-multi-value.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T"},C:{"1":"0 1 2 3 4 5 LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC 1C 2C"},D:{"1":"0 1 2 3 4 5 U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T"},E:{"1":"M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L 3C ZC 4C 5C 6C 7C aC NC OC"},F:{"1":"0 1 2 3 4 5 EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC GD HD ID JD NC uC KD OC"},G:{"1":"ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB xD yD QC RC SC zD","2":"J pD qD rD sD tD aC uD vD wD"},Q:{"16":"0D"},R:{"16":"1D"},S:{"2":"2D","16":"3D"}},B:5,C:"WebAssembly Multi-Value",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js deleted file mode 100644 index fa66a242..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B 1C 2C"},D:{"1":"0 1 2 3 4 5 HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC"},E:{"1":"C L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B 3C ZC 4C 5C 6C 7C aC NC"},F:{"1":"0 1 2 3 4 5 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B GD HD ID JD NC uC KD OC"},G:{"1":"WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD tD aC"},Q:{"16":"0D"},R:{"16":"1D"},S:{"2":"2D","16":"3D"}},B:5,C:"WebAssembly Import/Export of Mutable Globals",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js deleted file mode 100644 index b43c42a6..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 1C 2C"},D:{"1":"0 1 2 3 4 5 IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC"},E:{"1":"G AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C"},F:{"1":"0 1 2 3 4 5 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B GD HD ID JD NC uC KD OC"},G:{"1":"eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD tD aC"},Q:{"16":"0D"},R:{"16":"1D"},S:{"2":"2D","16":"3D"}},B:5,C:"WebAssembly Non-trapping float-to-int Conversion",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-reference-types.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-reference-types.js deleted file mode 100644 index 36ac46f7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-reference-types.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e"},C:{"1":"0 1 2 3 4 5 Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC 1C 2C"},D:{"1":"0 1 2 3 4 5 f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e"},E:{"1":"G AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C"},F:{"1":"0 1 2 3 4 5 WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R GD HD ID JD NC uC KD OC"},G:{"1":"eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB RC SC zD","2":"J pD qD rD sD tD aC uD vD wD xD yD QC"},Q:{"16":"0D"},R:{"16":"1D"},S:{"2":"2D","16":"3D"}},B:5,C:"WebAssembly Reference Types",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js deleted file mode 100644 index 795ec725..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g 1C 2C","194":"0 1 2 3 4 5 h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"0 1 2 3 4 5 x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"9 AB BB CB DB EB FB","2":"6 7 8 J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"16":"0D"},R:{"16":"1D"},S:{"2":"2D","16":"3D"}},B:5,C:"WebAssembly Relaxed SIMD",D:false}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-signext.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-signext.js deleted file mode 100644 index 36be58d9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-signext.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 1C 2C"},D:{"1":"0 1 2 3 4 5 HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC"},E:{"1":"G 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M 3C ZC 4C 5C 6C 7C aC NC OC 8C"},F:{"1":"0 1 2 3 4 5 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B GD HD ID JD NC uC KD OC"},G:{"1":"dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD tD aC"},Q:{"16":"0D"},R:{"16":"1D"},S:{"2":"2D","16":"3D"}},B:5,C:"WebAssembly Sign Extension Operators",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-simd.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-simd.js deleted file mode 100644 index 8ce461d2..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-simd.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z"},C:{"1":"0 1 2 3 4 5 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X 1C 2C"},D:{"1":"0 1 2 3 4 5 a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z"},E:{"1":"gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC"},F:{"1":"0 1 2 3 4 5 KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC GD HD ID JD NC uC KD OC"},G:{"1":"gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB QC RC SC zD","2":"J pD qD rD sD tD aC uD vD wD xD yD"},Q:{"16":"0D"},R:{"16":"1D"},S:{"2":"2D","16":"3D"}},B:5,C:"WebAssembly SIMD",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-tail-calls.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-tail-calls.js deleted file mode 100644 index f3f83f89..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},C:{"1":"4 5 GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"0 1 2 3 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 1C 2C"},D:{"1":"0 1 2 3 4 5 v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"9 AB BB CB DB EB FB","2":"6 7 8 J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"16":"0D"},R:{"16":"1D"},S:{"2":"2D","16":"3D"}},B:5,C:"WebAssembly Tail Calls",D:false}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-threads.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-threads.js deleted file mode 100644 index 245ac60f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm-threads.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC 1C 2C"},D:{"1":"0 1 2 3 4 5 HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC"},E:{"1":"G 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L M 3C ZC 4C 5C 6C 7C aC NC OC 8C"},F:{"1":"0 1 2 3 4 5 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B GD HD ID JD NC uC KD OC"},G:{"1":"dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB uD vD wD xD yD QC RC SC zD","2":"J pD qD rD sD tD aC"},Q:{"16":"0D"},R:{"16":"1D"},S:{"2":"2D","16":"3D"}},B:5,C:"WebAssembly Threads and Atomics",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm.js deleted file mode 100644 index 9a2e7159..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wasm.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M","578":"G"},C:{"1":"0 1 2 3 4 5 yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB 1C 2C","194":"sB tB uB vB wB","1025":"xB"},D:{"1":"0 1 2 3 4 5 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB","322":"wB xB yB zB 0B 1B"},E:{"1":"B C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC"},F:{"1":"0 1 2 3 4 5 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB GD HD ID JD NC uC KD OC","322":"jB kB lB mB nB oB"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","194":"2D"}},B:6,C:"WebAssembly",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wav.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/wav.js deleted file mode 100644 index f39c1c04..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wav.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","2":"xC TC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z ID JD NC uC KD OC","2":"F GD HD"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"TC J I lD mD vC nD oD","16":"jD kD"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","16":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"Wav audio format",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wbr-element.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/wbr-element.js deleted file mode 100644 index e3d97f14..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wbr-element.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"K D wC","2":"E F A B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"3C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","16":"F"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC"},H:{"1":"iD"},I:{"1":"TC J I lD mD vC nD oD","16":"jD kD"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","2":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"wbr (word break opportunity) element",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/web-animation.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/web-animation.js deleted file mode 100644 index 346fa2c1..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/web-animation.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P","260":"Q H R S"},C:{"1":"0 1 2 3 4 5 R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB 1C 2C","260":"UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC","516":"sB tB uB vB wB xB yB zB 0B 1B 2B 3B","580":"eB fB gB hB iB jB kB lB mB nB oB pB qB rB","2049":"IC JC KC LC Q H"},D:{"1":"0 1 2 3 4 5 T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB","132":"hB iB jB","260":"kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S"},E:{"1":"G AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C aC","1090":"B C L NC OC","2049":"M 8C 9C"},F:{"1":"0 1 2 3 4 5 EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 F B C G N O P aB GD HD ID JD NC uC KD OC","132":"9 AB BB","260":"CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD","1090":"UD VD WD XD YD ZD aD","2049":"bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB xD yD QC RC SC zD","260":"J pD qD rD sD tD aC uD vD wD"},Q:{"260":"0D"},R:{"1":"1D"},S:{"1":"3D","516":"2D"}},B:5,C:"Web Animations API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/web-app-manifest.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/web-app-manifest.js deleted file mode 100644 index 63614f78..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/web-app-manifest.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N","130":"O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","578":"JC KC LC Q H R WC S T U"},D:{"1":"0 1 2 3 4 5 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD","4":"RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD","4":"gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","260":"VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:5,C:"Add to home screen (A2HS)",D:false}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/web-bluetooth.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/web-bluetooth.js deleted file mode 100644 index 145a45ae..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/web-bluetooth.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P","1025":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB","194":"qB rB sB tB uB vB wB xB","706":"yB zB 0B","1025":"0 1 2 3 4 5 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB GD HD ID JD NC uC KD OC","450":"hB iB jB kB","706":"lB mB nB","1025":"0 1 2 3 4 5 oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC nD oD","1025":"I"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","1025":"H"},L:{"1025":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1025":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB qD rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD"},Q:{"2":"0D"},R:{"1025":"1D"},S:{"2":"2D 3D"}},B:7,C:"Web Bluetooth",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/web-serial.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/web-serial.js deleted file mode 100644 index 8554160b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/web-serial.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P","66":"Q H R S T U V W X"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC","66":"LC Q H R S T U V W X"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B GD HD ID JD NC uC KD OC","66":"8B 9B AC BC CC DC EC FC GC HC IC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"129":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"Web Serial API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/web-share.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/web-share.js deleted file mode 100644 index 21527c00..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/web-share.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H","516":"R S T U V W X Y Z a b c d"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D E F A B C L M G N O BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X","130":"6 7 8 9 P aB AB","1028":"0 1 2 3 4 5 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB"},E:{"1":"M G 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C 3C ZC 4C 5C 6C 7C aC NC","2049":"L OC 8C"},F:{"1":"0 1 2 3 4 5 x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w GD HD ID JD NC uC KD OC"},G:{"1":"cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD","2049":"XD YD ZD aD bD"},H:{"2":"iD"},I:{"2":"TC J jD kD lD mD vC nD","258":"I oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB sD tD aC uD vD wD xD yD QC RC SC zD","2":"J","258":"pD qD rD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:4,C:"Web Share API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webauthn.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/webauthn.js deleted file mode 100644 index 91dc2e8a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webauthn.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C","226":"L M G N O"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 1C 2C","4100":"0 1 2 3 4 5 x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","5124":"4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w"},D:{"1":"0 1 2 3 4 5 AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B"},E:{"1":"L M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C 3C ZC 4C 5C 6C 7C aC NC","322":"OC"},F:{"1":"0 1 2 3 4 5 zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB GD HD ID JD NC uC KD OC"},G:{"1":"dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD","578":"ZD","2052":"cD","3076":"aD bD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"8196":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB RC SC zD","2":"J pD qD rD sD tD aC uD vD wD xD yD QC"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2":"2D"}},B:2,C:"Web Authentication API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webcodecs.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/webcodecs.js deleted file mode 100644 index f1807c57..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webcodecs.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c"},C:{"1":"NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB 1C 2C"},D:{"1":"0 1 2 3 4 5 d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c"},E:{"1":"sC tC ED FD","2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC","132":"gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC"},F:{"1":"0 1 2 3 4 5 H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q GD HD ID JD NC uC KD OC"},G:{"1":"sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC","132":"gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB RC SC zD","2":"J pD qD rD sD tD aC uD vD wD xD yD QC"},Q:{"2":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:5,C:"WebCodecs API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webgl.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/webgl.js deleted file mode 100644 index 4cc45cfb..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webgl.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"wC","8":"K D E F A","129":"B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","129":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C","129":"6 7 8 9 J ZB K D E F A B C L M G N O P aB"},D:{"1":"0 1 2 3 4 5 eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB K D","129":"6 7 8 9 E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB"},E:{"1":"E F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC","129":"K D 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B GD HD ID JD NC uC KD","129":"C G N O P OC"},G:{"1":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND OD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"1":"A","2":"D"},K:{"1":"C H OC","2":"A B NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"8":"A","129":"B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","129":"2D"}},B:6,C:"WebGL - 3D Canvas graphics",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webgl2.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/webgl2.js deleted file mode 100644 index 1c653121..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webgl2.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB 1C 2C","194":"nB oB pB","450":"BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB","2242":"qB rB sB tB uB vB"},D:{"1":"0 1 2 3 4 5 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB","578":"oB pB qB rB sB tB uB vB wB xB yB zB 0B"},E:{"1":"G AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A 3C ZC 4C 5C 6C 7C","1090":"B C L M aC NC OC 8C 9C"},F:{"1":"0 1 2 3 4 5 oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB GD HD ID JD NC uC KD OC"},G:{"1":"eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD","1090":"WD XD YD ZD aD bD cD dD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB rD sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","2242":"2D"}},B:6,C:"WebGL 2.0",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webgpu.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/webgpu.js deleted file mode 100644 index 951dfe17..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webgpu.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q","578":"H R S T U V W X Y Z a b c","1602":"d e f g h i j k l m n o p q r s t u v"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 1C 2C","194":"0 1 2 3 4 5 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB","4292":"YB I XC MC YC yC zC 0C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q","578":"H R S T U V W X Y Z a b c","1602":"d e f g h i j k l m n o p q r s t u v","2049":"0 1 2 3 4 5 w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B G 3C ZC 4C 5C 6C 7C aC AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC","322":"C L M NC OC 8C 9C lC mC DD SC nC oC pC qC rC","8452":"sC tC ED FD"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GD HD ID JD NC uC KD OC","578":"GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h","2049":"0 1 2 3 4 5 i j k l m n o p q r s t u v w x y z"},G:{"1":"sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC","322":"lC mC hD SC nC oC pC qC rC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","2049":"H"},L:{"1":"I"},M:{"194":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"1":"AB BB CB DB EB FB","2":"6 7 8 9 J pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D","194":"3D"}},B:5,C:"WebGPU",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webhid.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/webhid.js deleted file mode 100644 index dad8deeb..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webhid.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P","66":"Q H R S T U V W X"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC","66":"LC Q H R S T U V W X"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B GD HD ID JD NC uC KD OC","66":"9B AC BC CC DC EC FC GC HC IC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"WebHID API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webkit-user-drag.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/webkit-user-drag.js deleted file mode 100644 index 5d722bc9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webkit-user-drag.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P","132":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"16":"J ZB K D E F A B C L M G","132":"0 1 2 3 4 5 6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"F B C GD HD ID JD NC uC KD OC","132":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","132":"H"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"CSS -webkit-user-drag property",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webm.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/webm.js deleted file mode 100644 index 0f8ecf03..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webm.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E wC","520":"F A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","8":"C L","388":"M G N O P"},C:{"1":"0 1 2 3 4 5 EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C","132":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB"},D:{"1":"0 1 2 3 4 5 BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB","132":"6 7 8 9 K D E F A B C L M G N O P aB AB"},E:{"2":"3C","8":"J ZB ZC 4C","520":"K D E F A B C 5C 6C 7C aC NC","16385":"QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","17412":"L OC 8C","23556":"M","24580":"G 9C AD bC cC PC BD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F GD HD ID","132":"B C G JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD","16385":"lC mC hD SC nC oC pC qC rC sC tC","17412":"XD YD ZD aD bD","19460":"cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC"},H:{"2":"iD"},I:{"1":"I","2":"jD kD","132":"TC J lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"8":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","132":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:6,C:"WebM video format",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webnfc.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/webnfc.js deleted file mode 100644 index 369f35dd..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webnfc.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M G N O P Q Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","450":"H R S T U V W X"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","450":"H R S T U V W X"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","450":"AC BC CC DC EC FC GC HC IC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"257":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:7,C:"Web NFC",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webp.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/webp.js deleted file mode 100644 index 9e9d40fa..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webp.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O"},C:{"1":"0 1 2 3 4 5 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C","8":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B"},D:{"1":"0 1 2 3 4 5 dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J ZB","8":"K D E","132":"6 7 8 F A B C L M G N O P aB","260":"9 AB BB CB DB EB FB bB cB"},E:{"1":"QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F A B C L 3C ZC 4C 5C 6C 7C aC NC OC 8C","516":"M G 9C AD bC cC PC BD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F GD HD ID","8":"B JD","132":"NC uC KD","260":"C G N O P OC"},G:{"1":"cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD"},H:{"1":"iD"},I:{"1":"I vC nD oD","2":"TC jD kD lD","132":"J mD"},J:{"2":"D A"},K:{"1":"C H NC uC OC","2":"A","132":"B"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","8":"2D"}},B:6,C:"WebP image format",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/websockets.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/websockets.js deleted file mode 100644 index 743d395f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/websockets.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC 1C 2C","132":"J ZB","292":"K D E F A"},D:{"1":"0 1 2 3 4 5 6 7 8 9 N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","132":"J ZB K D E F A B C L M","260":"G"},E:{"1":"D E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC","132":"ZB 4C","260":"K 5C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F GD HD ID JD","132":"B C NC uC KD"},G:{"1":"E ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD","132":"vC MD"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"A","129":"D"},K:{"1":"H OC","2":"A","132":"B C NC uC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Web Sockets",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webtransport.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/webtransport.js deleted file mode 100644 index 11e199a5..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webtransport.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e f g"},C:{"1":"0 1 2 3 4 5 x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w 1C 2C"},D:{"1":"0 1 2 3 4 5 g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z e f","66":"a b c d"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB SC zD","2":"J pD qD rD sD tD aC uD vD wD xD yD QC RC"},Q:{"2":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:5,C:"WebTransport",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webusb.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/webusb.js deleted file mode 100644 index ad073c63..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webusb.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB","66":"zB 0B 1B 2B 3B UC 4B"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB GD HD ID JD NC uC KD OC","66":"mB nB oB pB qB rB sB"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB sD tD aC uD vD wD xD yD QC RC SC zD","2":"J pD qD rD"},Q:{"2":"0D"},R:{"1":"1D"},S:{"2":"2D 3D"}},B:7,C:"WebUSB",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webvr.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/webvr.js deleted file mode 100644 index b18351fc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webvr.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"0 1 2 3 4 5 C L M H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","66":"Q","257":"G N O P"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB 1C 2C","129":"0 1 2 3 4 5 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","194":"zB"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","66":"2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","66":"pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"2":"I"},M:{"2":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"513":"J","516":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:7,C:"WebVR API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webvtt.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/webvtt.js deleted file mode 100644 index 0925a26c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webvtt.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB 1C 2C","66":"AB BB CB DB EB FB bB","129":"cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB","257":"0 1 2 3 4 5 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"1":"0 1 2 3 4 5 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 J ZB K D E F A B C L M G N O P aB"},E:{"1":"K D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC MD ND"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC J jD kD lD mD vC"},J:{"1":"A","2":"D"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"B","2":"A"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"129":"2D 3D"}},B:4,C:"WebVTT - Web Video Text Tracks",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webworkers.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/webworkers.js deleted file mode 100644 index 3b1840c9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webworkers.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","2":"wC","8":"K D E F"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","8":"xC TC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","8":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z JD NC uC KD OC","2":"F GD","8":"HD ID"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC"},H:{"2":"iD"},I:{"1":"I jD nD oD","2":"TC J kD lD mD vC"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","8":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Web Workers",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webxr.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/webxr.js deleted file mode 100644 index 15764b1a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/webxr.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"2":"C L M G N O P","132":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC 1C 2C","322":"0 1 2 3 4 5 KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C"},D:{"2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B","66":"8B 9B AC BC CC DC EC FC GC HC IC JC KC LC","132":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"2":"J ZB K D E F A B C 3C ZC 4C 5C 6C 7C aC NC OC","578":"L M G 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB GD HD ID JD NC uC KD OC","66":"xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B","132":"0 1 2 3 4 5 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"2":"iD"},I:{"2":"TC J I jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C NC uC OC","132":"H"},L:{"132":"I"},M:{"322":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"J pD qD rD sD tD aC uD","132":"6 7 8 9 AB BB CB DB EB FB vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D","322":"3D"}},B:4,C:"WebXR Device API",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/will-change.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/will-change.js deleted file mode 100644 index 0269879c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/will-change.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB 1C 2C","194":"FB bB cB dB eB fB gB"},D:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB"},E:{"1":"A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 9 F B C G N O P aB GD HD ID JD NC uC KD OC"},G:{"1":"RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS will-change property",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/woff.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/woff.js deleted file mode 100644 index 3d83e74f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/woff.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 2C","2":"xC TC 1C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"J"},E:{"1":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB 3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z NC uC KD OC","2":"F B GD HD ID JD"},G:{"1":"E MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC"},H:{"2":"iD"},I:{"1":"I nD oD","2":"TC jD kD lD mD vC","130":"J"},J:{"1":"D A"},K:{"1":"B C H NC uC OC","2":"A"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"WOFF - Web Open Font Format",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/woff2.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/woff2.js deleted file mode 100644 index f4f81e03..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/woff2.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"C L"},C:{"1":"0 1 2 3 4 5 kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB 1C 2C"},D:{"1":"0 1 2 3 4 5 hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB"},E:{"1":"C L M G OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J ZB K D E F 3C ZC 4C 5C 6C 7C","132":"A B aC NC"},F:{"1":"0 1 2 3 4 5 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"6 7 8 F B C G N O P aB GD HD ID JD NC uC KD OC"},G:{"1":"SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"E ZC LD vC MD ND OD PD QD RD"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:2,C:"WOFF 2.0 - Web Open Font Format",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/word-break.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/word-break.js deleted file mode 100644 index 2f76b67e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/word-break.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC J ZB K D E F A B C L M 1C 2C"},D:{"1":"0 1 2 3 4 5 pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","4":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB"},E:{"1":"F A B C L M G 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","4":"J ZB K D E 3C ZC 4C 5C 6C"},F:{"1":"0 1 2 3 4 5 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B C GD HD ID JD NC uC KD OC","4":"6 7 8 9 G N O P aB AB BB CB DB EB FB bB"},G:{"1":"QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","4":"E ZC LD vC MD ND OD PD"},H:{"2":"iD"},I:{"1":"I","4":"TC J jD kD lD mD vC nD oD"},J:{"4":"D A"},K:{"1":"H","2":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"CSS3 word-break",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wordwrap.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/wordwrap.js deleted file mode 100644 index ec3f6b19..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/wordwrap.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"4":"K D E F A B wC"},B:{"1":"0 1 2 3 4 5 P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","4":"C L M G N O"},C:{"1":"0 1 2 3 4 5 uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC","4":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB 1C 2C"},D:{"1":"0 1 2 3 4 5 9 AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","4":"6 7 8 J ZB K D E F A B C L M G N O P aB"},E:{"1":"D E F A B C L M G 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","4":"J ZB K 3C ZC 4C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z OC","2":"F GD HD","4":"B C ID JD NC uC KD"},G:{"1":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","4":"ZC LD vC MD ND"},H:{"4":"iD"},I:{"1":"I nD oD","4":"TC J jD kD lD mD vC"},J:{"1":"A","4":"D"},K:{"1":"H","4":"A B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"4":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"3D","4":"2D"}},B:4,C:"CSS3 Overflow-wrap",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/x-doc-messaging.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/x-doc-messaging.js deleted file mode 100644 index f003be51..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/x-doc-messaging.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D wC","132":"E F","260":"A B"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C","2":"xC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"3C ZC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC","2":"F"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"4":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"Cross-document messaging",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/x-frame-options.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/x-frame-options.js deleted file mode 100644 index 28a19032..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/x-frame-options.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"E F A B","2":"K D wC"},B:{"1":"C L M G N O P","4":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"6 7 8 9 P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC","4":"0 1 2 3 4 5 J ZB K D E F A B C L M G N O DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","16":"xC TC 1C 2C"},D:{"4":"0 1 2 3 4 5 CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB"},E:{"4":"K D E F A B C L M G 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","16":"J ZB 3C ZC"},F:{"4":"0 1 2 3 4 5 6 7 8 9 C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z KD OC","16":"F B GD HD ID JD NC uC"},G:{"4":"E OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","16":"ZC LD vC MD ND"},H:{"2":"iD"},I:{"4":"J I mD vC nD oD","16":"TC jD kD lD"},J:{"4":"D A"},K:{"4":"H OC","16":"A B C NC uC"},L:{"4":"I"},M:{"4":"MC"},N:{"1":"A B"},O:{"4":"PC"},P:{"4":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"4":"0D"},R:{"4":"1D"},S:{"1":"2D","4":"3D"}},B:6,C:"X-Frame-Options HTTP header",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/xhr2.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/xhr2.js deleted file mode 100644 index f1c4ae26..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/xhr2.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F wC","1156":"A B"},B:{"1":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","1028":"C L M G N O P"},C:{"1":"0 1 2 3 4 5 sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"xC TC","1028":"6 7 8 9 C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB","1284":"A B","1412":"K D E F","1924":"J ZB 1C 2C"},D:{"1":"0 1 2 3 4 5 vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","16":"J ZB K","1028":"cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB","1156":"FB bB","1412":"6 7 8 9 D E F A B C L M G N O P aB AB BB CB DB EB"},E:{"1":"C L M G NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","2":"J 3C ZC","1028":"E F A B 6C 7C aC","1156":"D 5C","1412":"ZB K 4C"},F:{"1":"0 1 2 3 4 5 iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","2":"F B GD HD ID JD NC uC KD","132":"G N O","1028":"6 7 8 9 C P aB AB BB CB DB EB FB bB cB dB eB fB gB hB OC"},G:{"1":"UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","2":"ZC LD vC","1028":"E PD QD RD SD TD","1156":"OD","1412":"MD ND"},H:{"2":"iD"},I:{"1":"I","2":"jD kD lD","1028":"oD","1412":"nD","1924":"TC J mD vC"},J:{"1156":"A","1412":"D"},K:{"1":"H","2":"A B NC uC","1028":"C OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1156":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD","1028":"J"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"XMLHttpRequest advanced features",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/xhtml.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/xhtml.js deleted file mode 100644 index 4f0019ee..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/xhtml.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"F A B","2":"K D E wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"1":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"1":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"1":"iD"},I:{"1":"TC J I jD kD lD mD vC nD oD"},J:{"1":"D A"},K:{"1":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:1,C:"XHTML served as application/xhtml+xml",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/xhtmlsmil.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/xhtmlsmil.js deleted file mode 100644 index 95ee65ab..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/xhtmlsmil.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"F A B wC","4":"K D E"},B:{"2":"C L M G N O P","8":"0 1 2 3 4 5 Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"8":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C 1C 2C"},D:{"8":"0 1 2 3 4 5 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC"},E:{"8":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD"},F:{"8":"0 1 2 3 4 5 6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GD HD ID JD NC uC KD OC"},G:{"8":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC"},H:{"8":"iD"},I:{"8":"TC J I jD kD lD mD vC nD oD"},J:{"8":"D A"},K:{"8":"A B C H NC uC OC"},L:{"8":"I"},M:{"8":"MC"},N:{"2":"A B"},O:{"8":"PC"},P:{"8":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"8":"0D"},R:{"8":"1D"},S:{"8":"2D 3D"}},B:7,C:"XHTML+SMIL animation",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/xml-serializer.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/xml-serializer.js deleted file mode 100644 index e83b3ddd..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/xml-serializer.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"1":"A B","260":"K D E F wC"},B:{"1":"0 1 2 3 4 5 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","132":"B","260":"xC TC J ZB K D 1C 2C","516":"E F A"},D:{"1":"0 1 2 3 4 5 cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","132":"6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB"},E:{"1":"E F A B C L M G 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC sC tC ED FD","132":"J ZB K D 3C ZC 4C 5C"},F:{"1":"0 1 2 3 4 5 6 7 8 9 P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","16":"F GD","132":"B C G N O HD ID JD NC uC KD OC"},G:{"1":"E PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC sC tC","132":"ZC LD vC MD ND OD"},H:{"132":"iD"},I:{"1":"I nD oD","132":"TC J jD kD lD mD vC"},J:{"132":"D A"},K:{"1":"H","16":"A","132":"B C NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"1":"A B"},O:{"1":"PC"},P:{"1":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"1":"0D"},R:{"1":"1D"},S:{"1":"2D 3D"}},B:4,C:"DOM Parsing and Serialization",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/features/zstd.js b/build_vtk_bundle/node_modules/caniuse-lite/data/features/zstd.js deleted file mode 100644 index ee3fd232..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/features/zstd.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={A:{A:{"2":"K D E F A B wC"},B:{"1":"GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I","2":"0 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","194":"1 2 3 4 5"},C:{"1":"JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC yC zC 0C","2":"0 1 2 3 4 5 6 7 8 9 xC TC J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z GB HB IB 1C 2C"},D:{"1":"GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB I XC MC YC","2":"0 6 7 8 9 J ZB K D E F A B C L M G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B UC 4B VC 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z","194":"1 2 3 4 5"},E:{"2":"J ZB K D E F A B C L M G 3C ZC 4C 5C 6C 7C aC NC OC 8C 9C AD bC cC PC BD QC dC eC fC gC hC CD RC iC jC kC lC mC DD SC nC oC pC qC rC","260":"sC tC ED FD"},F:{"1":"0 1 2 3 4 5 s t u v w x y z","2":"6 7 8 9 F B C G N O P aB AB BB CB DB EB FB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB wB xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC EC FC GC HC IC JC KC LC Q H R WC S T U V W X Y Z a b c d e f g h i j k l m n o p q r GD HD ID JD NC uC KD OC"},G:{"2":"E ZC LD vC MD ND OD PD QD RD SD TD UD VD WD XD YD ZD aD bD cD dD eD bC cC PC fD QC dC eC fC gC hC gD RC iC jC kC lC mC hD SC nC oC pC qC rC","260":"sC tC"},H:{"2":"iD"},I:{"1":"I","2":"TC J jD kD lD mD vC nD oD"},J:{"2":"D A"},K:{"2":"A B C H NC uC OC"},L:{"1":"I"},M:{"1":"MC"},N:{"2":"A B"},O:{"2":"PC"},P:{"2":"6 7 8 9 J AB BB CB DB EB FB pD qD rD sD tD aC uD vD wD xD yD QC RC SC zD"},Q:{"2":"0D"},R:{"2":"1D"},S:{"2":"2D 3D"}},B:6,C:"zstd (Zstandard) content-encoding",D:true}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AD.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AD.js deleted file mode 100644 index 53c4594b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AD.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"44":0.01007,"52":0.02517,"78":0.00503,"113":0.00503,"115":0.08556,"128":0.00503,"132":0.00503,"133":0.0302,"134":0.0151,"135":0.02013,"136":0.04026,"137":0.01007,"138":0.00503,"139":0.03523,"140":0.15099,"141":0.00503,"142":0.05033,"143":1.69109,"144":1.24818,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 145 146 147 3.5 3.6"},D:{"41":0.00503,"45":0.00503,"49":0.00503,"53":0.00503,"57":0.00503,"58":0.00503,"75":0.00503,"79":0.02517,"85":0.00503,"98":0.02013,"99":0.00503,"103":0.07046,"108":0.04026,"109":0.16609,"112":0.00503,"113":0.00503,"114":0.01007,"115":0.00503,"116":0.06543,"119":0.00503,"120":0.0755,"121":0.00503,"122":0.09059,"124":0.01007,"125":0.71469,"126":0.0151,"127":0.0151,"128":0.03523,"129":0.00503,"130":0.01007,"131":0.83548,"132":0.14092,"133":0.0604,"134":0.05536,"135":0.05033,"136":0.09059,"137":0.08556,"138":0.21139,"139":0.25668,"140":5.45074,"141":13.31732,"142":0.11073,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 43 44 46 47 48 50 51 52 54 55 56 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 80 81 83 84 86 87 88 89 90 91 92 93 94 95 96 97 100 101 102 104 105 106 107 110 111 117 118 123 143 144 145"},F:{"92":0.01007,"114":0.0151,"115":0.01007,"117":0.0151,"118":0.02013,"120":0.09563,"121":0.04026,"122":2.30008,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 116 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00503,"98":0.00503,"109":0.01007,"114":0.00503,"131":0.05536,"132":0.02517,"134":0.0604,"135":0.06543,"136":0.02013,"137":0.0302,"138":0.02517,"139":0.01007,"140":0.39257,"141":2.08366,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 133 142"},E:{"14":0.0151,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 16.0 26.2","13.1":0.12079,"14.1":0.01007,"15.1":0.02013,"15.2-15.3":0.02517,"15.4":0.00503,"15.5":0.00503,"15.6":0.75495,"16.1":0.10066,"16.2":0.05033,"16.3":0.17112,"16.4":0.11073,"16.5":0.0604,"16.6":1.01667,"17.0":0.03523,"17.1":0.95124,"17.2":0.03523,"17.3":0.0604,"17.4":0.12583,"17.5":0.43787,"17.6":1.62566,"18.0":0.0302,"18.1":0.0604,"18.2":0.06543,"18.3":0.14092,"18.4":0.14092,"18.5-18.6":0.61403,"26.0":2.96947,"26.1":0.11576},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00326,"5.0-5.1":0,"6.0-6.1":0.01306,"7.0-7.1":0.00979,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02937,"10.0-10.2":0.00326,"10.3":0.05548,"11.0-11.2":0.82248,"11.3-11.4":0.01958,"12.0-12.1":0.00653,"12.2-12.5":0.15993,"13.0-13.1":0,"13.2":0.01632,"13.3":0.00653,"13.4-13.7":0.02611,"14.0-14.4":0.05548,"14.5-14.8":0.05875,"15.0-15.1":0.05548,"15.2-15.3":0.04243,"15.4":0.04896,"15.5":0.05548,"15.6-15.8":0.72457,"16.0":0.09791,"16.1":0.18277,"16.2":0.09465,"16.3":0.16972,"16.4":0.04243,"16.5":0.07507,"16.6-16.7":0.96935,"17.0":0.06854,"17.1":0.10444,"17.2":0.07507,"17.3":0.11097,"17.4":0.19583,"17.5":0.33617,"17.6-17.7":0.84859,"18.0":0.19257,"18.1":0.39819,"18.2":0.21541,"18.3":0.69193,"18.4":0.35576,"18.5-18.6":18.14029,"26.0":2.24224,"26.1":0.0816},P:{"26":0.01053,"28":1.26304,"29":0.0421,_:"4 20 21 22 23 24 25 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","17.0":0.01053},I:{"0":0.00992,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.06457,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.0151,"9":0.00503,"11":0.01007,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.65564},Q:{_:"14.9"},O:{"0":0.00497},H:{"0":0},L:{"0":15.86341}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AE.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AE.js deleted file mode 100644 index e2aaba75..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AE.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"89":0.00254,"103":0.00254,"104":0.00254,"115":0.01272,"128":0.00254,"136":0.00254,"140":0.00509,"141":0.00254,"142":0.00763,"143":0.2315,"144":0.15518,"145":0.00763,"146":0.01526,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 137 138 139 147 3.5 3.6"},D:{"39":0.00254,"40":0.00254,"41":0.00509,"42":0.00254,"43":0.00254,"44":0.00254,"45":0.00254,"46":0.00254,"47":0.00254,"48":0.00254,"49":0.00254,"50":0.00254,"51":0.00254,"52":0.00254,"53":0.00254,"54":0.00254,"55":0.00254,"56":0.00254,"57":0.00254,"58":0.00254,"59":0.00254,"60":0.00254,"68":0.00254,"69":0.00254,"73":0.00254,"74":0.00254,"75":0.00254,"76":0.00763,"79":0.01018,"83":0.00509,"87":0.02035,"88":0.00254,"90":0.00254,"91":0.01781,"93":0.01781,"95":0.00254,"97":0.00254,"98":0.00254,"99":0.00254,"100":0.00254,"102":0.00254,"103":0.06869,"104":0.03562,"106":0.00254,"107":0.00254,"108":0.00763,"109":0.11957,"110":0.00254,"111":0.00509,"112":0.1679,"113":0.00254,"114":0.01272,"116":0.03816,"118":0.00254,"119":0.00763,"120":0.01018,"121":0.00763,"122":0.0229,"123":0.00763,"124":0.00763,"125":3.44203,"126":0.04579,"127":0.15518,"128":0.03307,"129":0.00509,"130":0.21115,"131":0.04834,"132":0.07123,"133":0.0636,"134":0.02544,"135":0.02798,"136":0.03816,"137":0.06614,"138":0.19589,"139":0.31037,"140":2.9027,"141":6.15139,"142":0.05851,"143":0.00254,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 70 71 72 77 78 80 81 84 85 86 89 92 94 96 101 105 115 117 144 145"},F:{"46":0.00254,"91":0.0407,"92":0.09158,"93":0.00254,"95":0.00254,"100":0.00254,"110":0.00254,"114":0.00254,"120":0.03053,"121":0.03053,"122":0.33835,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 94 96 97 98 99 101 102 103 104 105 106 107 108 109 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00254,"92":0.00509,"109":0.00509,"114":0.02798,"122":0.00509,"130":0.01018,"131":0.00763,"132":0.00254,"133":0.00763,"134":0.00509,"135":0.00509,"136":0.00509,"137":0.00763,"138":0.01018,"139":0.02035,"140":0.31546,"141":1.39157,"142":0.00763,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 126 127 128 129"},E:{"13":0.00254,"14":0.00254,"15":0.00254,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 26.2","13.1":0.00509,"14.1":0.00509,"15.4":0.00509,"15.5":0.00509,"15.6":0.03562,"16.0":0.00509,"16.1":0.00763,"16.2":0.00509,"16.3":0.01018,"16.4":0.00254,"16.5":0.00763,"16.6":0.04834,"17.0":0.00763,"17.1":0.02798,"17.2":0.00509,"17.3":0.00763,"17.4":0.01272,"17.5":0.02544,"17.6":0.08395,"18.0":0.01018,"18.1":0.02544,"18.2":0.01018,"18.3":0.03053,"18.4":0.02035,"18.5-18.6":0.09922,"26.0":0.3816,"26.1":0.01018},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00079,"5.0-5.1":0,"6.0-6.1":0.00317,"7.0-7.1":0.00238,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00714,"10.0-10.2":0.00079,"10.3":0.01349,"11.0-11.2":0.19994,"11.3-11.4":0.00476,"12.0-12.1":0.00159,"12.2-12.5":0.03888,"13.0-13.1":0,"13.2":0.00397,"13.3":0.00159,"13.4-13.7":0.00635,"14.0-14.4":0.01349,"14.5-14.8":0.01428,"15.0-15.1":0.01349,"15.2-15.3":0.01031,"15.4":0.0119,"15.5":0.01349,"15.6-15.8":0.17614,"16.0":0.0238,"16.1":0.04443,"16.2":0.02301,"16.3":0.04126,"16.4":0.01031,"16.5":0.01825,"16.6-16.7":0.23565,"17.0":0.01666,"17.1":0.02539,"17.2":0.01825,"17.3":0.02698,"17.4":0.04761,"17.5":0.08172,"17.6-17.7":0.20629,"18.0":0.04681,"18.1":0.0968,"18.2":0.05237,"18.3":0.16821,"18.4":0.08648,"18.5-18.6":4.40986,"26.0":0.54508,"26.1":0.01984},P:{"21":0.01038,"22":0.01038,"23":0.01038,"24":0.01038,"25":0.02076,"26":0.01038,"27":0.04153,"28":1.1213,"29":0.08306,_:"4 20 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.01038,"7.2-7.4":0.02076},I:{"0":0.02234,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":1.29006,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01526,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.1044},Q:{_:"14.9"},O:{"0":1.23786},H:{"0":0},L:{"0":68.59946}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AF.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AF.js deleted file mode 100644 index 445b257f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AF.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"50":0.00156,"53":0.00156,"56":0.00156,"57":0.00311,"58":0.00156,"72":0.00622,"80":0.00156,"86":0.00156,"90":0.00156,"94":0.00156,"99":0.00156,"106":0.00156,"112":0.00156,"115":0.09797,"123":0.00311,"127":0.00467,"128":0.00156,"140":0.01089,"141":0.00467,"142":0.01244,"143":0.16017,"144":0.16794,"145":0.00156,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 54 55 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 81 82 83 84 85 87 88 89 91 92 93 95 96 97 98 100 101 102 103 104 105 107 108 109 110 111 113 114 116 117 118 119 120 121 122 124 125 126 129 130 131 132 133 134 135 136 137 138 139 146 147 3.5 3.6"},D:{"26":0.00156,"27":0.00311,"31":0.00156,"36":0.00156,"38":0.00156,"43":0.00156,"44":0.00156,"45":0.00156,"46":0.00156,"47":0.00156,"48":0.00311,"49":0.00156,"50":0.00311,"51":0.00311,"52":0.00156,"53":0.00311,"54":0.00467,"55":0.00156,"56":0.00156,"60":0.00156,"62":0.00622,"63":0.00311,"65":0.00156,"66":0.00156,"67":0.00156,"68":0.00156,"69":0.00778,"70":0.00311,"71":0.01244,"72":0.00622,"73":0.00622,"74":0.00467,"76":0.00156,"77":0.00467,"78":0.02022,"79":0.04043,"80":0.00622,"81":0.00311,"83":0.00311,"84":0.00156,"85":0.00156,"86":0.01244,"87":0.01866,"89":0.00311,"91":0.00467,"92":0.00622,"93":0.00156,"94":0.00156,"95":0.00311,"96":0.00933,"97":0.00778,"99":0.00467,"100":0.00156,"101":0.00156,"102":0.00156,"103":0.00778,"105":0.00622,"106":0.00933,"107":0.02488,"108":0.014,"109":1.0574,"110":0.00311,"111":0.00622,"112":0.00311,"113":0.00778,"114":0.01089,"115":0.00156,"116":0.01089,"117":0.00933,"118":0.00156,"119":0.014,"120":0.01089,"121":0.00311,"122":0.01244,"123":0.00778,"124":0.00467,"125":0.11196,"126":0.02333,"127":0.01244,"128":0.00778,"129":0.00778,"130":0.01089,"131":0.04665,"132":0.02644,"133":0.02333,"134":0.02022,"135":0.02177,"136":0.02955,"137":0.03421,"138":0.12907,"139":0.15861,"140":1.52857,"141":3.89061,"142":0.05754,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 28 29 30 32 33 34 35 37 39 40 41 42 57 58 59 61 64 75 88 90 98 104 143 144 145"},F:{"79":0.00156,"81":0.00156,"82":0.00311,"90":0.00156,"91":0.00778,"92":0.00311,"95":0.01711,"113":0.00156,"119":0.00156,"120":0.04199,"121":0.00156,"122":0.29701,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 83 84 85 86 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00311,"14":0.00311,"16":0.014,"17":0.00778,"18":0.02955,"81":0.00156,"83":0.00156,"84":0.00156,"89":0.00467,"90":0.01089,"92":0.08553,"100":0.01089,"108":0.00156,"109":0.01866,"112":0.01089,"113":0.00156,"114":0.00622,"117":0.00156,"118":0.00156,"122":0.00933,"130":0.00156,"131":0.00467,"132":0.00467,"133":0.00156,"134":0.00156,"135":0.00467,"136":0.00933,"137":0.00622,"138":0.01244,"139":0.02177,"140":0.17416,"141":0.85681,"142":0.00778,_:"13 15 79 80 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 110 111 115 116 119 120 121 123 124 125 126 127 128 129"},E:{"11":0.00156,"12":0.00156,_:"0 4 5 6 7 8 9 10 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 13.1 26.2","5.1":0.00622,"14.1":0.00156,"15.1":0.00156,"15.2-15.3":0.00156,"15.4":0.00156,"15.5":0.00933,"15.6":0.0311,"16.0":0.00156,"16.1":0.00933,"16.2":0.00778,"16.3":0.01555,"16.4":0.05909,"16.5":0.01089,"16.6":0.06687,"17.0":0.00467,"17.1":0.08397,"17.2":0.00622,"17.3":0.00778,"17.4":0.02799,"17.5":0.04354,"17.6":0.1384,"18.0":0.00778,"18.1":0.014,"18.2":0.00778,"18.3":0.03577,"18.4":0.02488,"18.5-18.6":0.07309,"26.0":0.4043,"26.1":0.02644},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00081,"5.0-5.1":0,"6.0-6.1":0.00323,"7.0-7.1":0.00242,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00727,"10.0-10.2":0.00081,"10.3":0.01372,"11.0-11.2":0.20343,"11.3-11.4":0.00484,"12.0-12.1":0.00161,"12.2-12.5":0.03956,"13.0-13.1":0,"13.2":0.00404,"13.3":0.00161,"13.4-13.7":0.00646,"14.0-14.4":0.01372,"14.5-14.8":0.01453,"15.0-15.1":0.01372,"15.2-15.3":0.01049,"15.4":0.01211,"15.5":0.01372,"15.6-15.8":0.17921,"16.0":0.02422,"16.1":0.04521,"16.2":0.02341,"16.3":0.04198,"16.4":0.01049,"16.5":0.01857,"16.6-16.7":0.23975,"17.0":0.01695,"17.1":0.02583,"17.2":0.01857,"17.3":0.02745,"17.4":0.04843,"17.5":0.08315,"17.6-17.7":0.20988,"18.0":0.04763,"18.1":0.09848,"18.2":0.05328,"18.3":0.17114,"18.4":0.08799,"18.5-18.6":4.48668,"26.0":0.55458,"26.1":0.02018},P:{"4":0.03084,"20":0.04112,"21":0.02056,"22":0.02056,"23":0.02056,"24":0.06168,"25":0.04112,"26":0.12336,"27":0.19531,"28":0.72986,"29":0.02056,"5.0-5.4":0.02056,"6.2-6.4":0.02056,"7.2-7.4":0.1028,"8.2":0.01028,"9.2":0.04112,_:"10.1 12.0","11.1-11.2":0.03084,"13.0":0.01028,"14.0":0.01028,"15.0":0.01028,"16.0":0.02056,"17.0":0.04112,"18.0":0.01028,"19.0":0.02056},I:{"0":0.16864,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00008},K:{"0":0.31087,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.06065,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.06755},Q:{_:"14.9"},O:{"0":0.21954},H:{"0":0.01},L:{"0":77.72428}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AG.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AG.js deleted file mode 100644 index a477467b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AG.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"93":0.00845,"115":0.01691,"127":0.00845,"128":0.00423,"136":0.00845,"140":0.00845,"142":0.02536,"143":0.51147,"144":0.23249,"145":0.03382,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 133 134 135 137 138 139 141 146 147 3.5 3.6"},D:{"39":0.00845,"40":0.00423,"41":0.00845,"42":0.00423,"43":0.00423,"44":0.00423,"45":0.00845,"46":0.00845,"47":0.00423,"48":0.00845,"49":0.00845,"50":0.00845,"51":0.00423,"52":0.00423,"53":0.01268,"54":0.00423,"55":0.00423,"56":0.01268,"57":0.00423,"58":0.00845,"59":0.00845,"60":0.00845,"62":0.00423,"75":0.00423,"79":0.00423,"93":0.01691,"98":0.00423,"103":0.08454,"105":0.00845,"108":0.04227,"109":0.57065,"111":0.03804,"116":0.05495,"121":0.03804,"122":0.02114,"124":0.00423,"125":4.76383,"126":0.03804,"128":0.01691,"129":0.07186,"130":0.00845,"131":0.02959,"132":0.01268,"133":0.01691,"134":0.05495,"135":0.01268,"136":0.00845,"137":0.3762,"138":0.36352,"139":0.27053,"140":5.51201,"141":11.36218,"142":0.17753,"143":0.01691,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 80 81 83 84 85 86 87 88 89 90 91 92 94 95 96 97 99 100 101 102 104 106 107 110 112 113 114 115 117 118 119 120 123 127 144 145"},F:{"91":0.00423,"92":0.00845,"120":0.06341,"121":0.00423,"122":0.36775,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00845,"17":0.00423,"90":0.00423,"105":0.00423,"109":0.00845,"114":0.02114,"131":0.00423,"136":0.01268,"138":0.00845,"139":0.13526,"140":1.54286,"141":5.60078,"142":0.01268,_:"12 13 15 16 18 79 80 81 83 84 85 86 87 88 89 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 132 133 134 135 137"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 16.0 16.1 16.4 17.0 26.2","13.1":0.01691,"14.1":0.02114,"15.5":0.00423,"15.6":0.05072,"16.2":0.00423,"16.3":0.00845,"16.5":0.00845,"16.6":0.1099,"17.1":0.02536,"17.2":0.00845,"17.3":0.02536,"17.4":0.02114,"17.5":0.04227,"17.6":0.38043,"18.0":0.01691,"18.1":0.02114,"18.2":0.06763,"18.3":0.06763,"18.4":0.32125,"18.5-18.6":0.29589,"26.0":0.49879,"26.1":0.00423},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00179,"5.0-5.1":0,"6.0-6.1":0.00715,"7.0-7.1":0.00536,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01609,"10.0-10.2":0.00179,"10.3":0.03038,"11.0-11.2":0.4504,"11.3-11.4":0.01072,"12.0-12.1":0.00357,"12.2-12.5":0.08758,"13.0-13.1":0,"13.2":0.00894,"13.3":0.00357,"13.4-13.7":0.0143,"14.0-14.4":0.03038,"14.5-14.8":0.03217,"15.0-15.1":0.03038,"15.2-15.3":0.02324,"15.4":0.02681,"15.5":0.03038,"15.6-15.8":0.39679,"16.0":0.05362,"16.1":0.10009,"16.2":0.05183,"16.3":0.09294,"16.4":0.02324,"16.5":0.04111,"16.6-16.7":0.53083,"17.0":0.03753,"17.1":0.05719,"17.2":0.04111,"17.3":0.06077,"17.4":0.10724,"17.5":0.18409,"17.6-17.7":0.4647,"18.0":0.10545,"18.1":0.21805,"18.2":0.11796,"18.3":0.37891,"18.4":0.19482,"18.5-18.6":9.93393,"26.0":1.22789,"26.1":0.04468},P:{"21":0.11398,"24":0.01036,"25":0.03108,"26":0.01036,"27":0.04145,"28":4.51761,"29":0.41446,_:"4 20 22 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.04145,"11.1-11.2":0.01036,"19.0":0.01036},I:{"0":0.00576,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.08082,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.11546},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":40.47459}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AI.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AI.js deleted file mode 100644 index e7360e7a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AI.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"130":0.01727,"143":0.09211,"144":0.07484,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 131 132 133 134 135 136 137 138 139 140 141 142 145 146 147 3.5 3.6"},D:{"39":0.00576,"40":0.00576,"41":0.00576,"42":0.00576,"43":0.02879,"44":0.00576,"45":0.01727,"46":0.00576,"47":0.02303,"48":0.00576,"49":0.00576,"50":0.02879,"52":0.01727,"53":0.00576,"54":0.02303,"55":0.00576,"56":0.00576,"57":0.04606,"59":0.00576,"60":0.02303,"87":0.00576,"97":0.00576,"98":0.02303,"101":0.02303,"103":0.06908,"104":0.00576,"108":0.00576,"109":0.09211,"111":0.02303,"116":0.05757,"125":10.50653,"126":0.01727,"129":0.00576,"131":0.01727,"133":0.00576,"134":0.01727,"136":0.01727,"137":0.39148,"138":0.27058,"139":10.01142,"140":2.97061,"141":10.51228,"142":0.01727,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 51 58 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 88 89 90 91 92 93 94 95 96 99 100 102 105 106 107 110 112 113 114 115 117 118 119 120 121 122 123 124 127 128 130 132 135 143 144 145"},F:{"91":0.00576,"92":0.00576,"121":0.00576,"122":0.10363,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"114":0.0403,"136":0.02303,"139":0.22452,"140":2.10706,"141":6.51117,"142":0.02303,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 137 138"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.2-15.3 15.4 15.5 16.0 17.0 17.3 26.2","15.1":0.05757,"15.6":0.58721,"16.1":0.14393,"16.2":0.06908,"16.3":0.01727,"16.4":0.01727,"16.5":0.06908,"16.6":0.89234,"17.1":0.44905,"17.2":0.1209,"17.4":0.0403,"17.5":0.0806,"17.6":1.95162,"18.0":0.00576,"18.1":0.00576,"18.2":0.02303,"18.3":0.07484,"18.4":0.07484,"18.5-18.6":0.1209,"26.0":0.92112,"26.1":0.00576},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00186,"5.0-5.1":0,"6.0-6.1":0.00746,"7.0-7.1":0.00559,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01678,"10.0-10.2":0.00186,"10.3":0.03169,"11.0-11.2":0.46972,"11.3-11.4":0.01118,"12.0-12.1":0.00373,"12.2-12.5":0.09133,"13.0-13.1":0,"13.2":0.00932,"13.3":0.00373,"13.4-13.7":0.01491,"14.0-14.4":0.03169,"14.5-14.8":0.03355,"15.0-15.1":0.03169,"15.2-15.3":0.02423,"15.4":0.02796,"15.5":0.03169,"15.6-15.8":0.4138,"16.0":0.05592,"16.1":0.10438,"16.2":0.05405,"16.3":0.09693,"16.4":0.02423,"16.5":0.04287,"16.6-16.7":0.55359,"17.0":0.03914,"17.1":0.05965,"17.2":0.04287,"17.3":0.06337,"17.4":0.11184,"17.5":0.19199,"17.6-17.7":0.48463,"18.0":0.10997,"18.1":0.2274,"18.2":0.12302,"18.3":0.39516,"18.4":0.20317,"18.5-18.6":10.35983,"26.0":1.28053,"26.1":0.0466},P:{"4":0.02123,"22":0.29721,"24":0.01061,"25":1.10393,"27":0.01061,"28":1.47544,"29":0.14861,_:"20 21 23 26 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.05307,"11.1-11.2":0.01061},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.01697},Q:{_:"14.9"},O:{"0":0.03394},H:{"0":0},L:{"0":22.2754}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AL.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AL.js deleted file mode 100644 index 900c5173..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AL.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"60":0.00311,"102":0.00311,"115":0.1026,"125":0.01244,"128":0.23628,"131":0.00311,"136":0.00311,"137":0.00311,"139":0.00311,"140":0.04042,"141":0.00622,"142":0.02176,"143":0.46946,"144":0.53164,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 132 133 134 135 138 145 146 147 3.5 3.6"},D:{"39":0.00622,"40":0.00622,"41":0.00622,"42":0.00622,"43":0.00622,"44":0.00622,"45":0.00622,"46":0.00622,"47":0.00933,"48":0.00622,"49":0.01555,"50":0.00622,"51":0.00622,"52":0.00622,"53":0.00622,"54":0.00622,"55":0.00622,"56":0.00622,"57":0.00622,"58":0.00622,"59":0.00622,"60":0.00622,"69":0.01555,"70":0.00311,"75":0.01244,"79":0.03109,"80":0.00311,"83":0.00311,"86":0.00311,"87":0.00933,"89":0.00311,"91":0.00311,"96":0.00311,"98":0.01555,"99":0.00622,"100":0.00311,"101":0.00622,"103":0.00622,"105":0.00622,"106":0.00311,"108":0.00622,"109":0.68709,"112":6.74031,"113":0.00311,"114":0.00311,"115":0.00311,"116":0.01555,"118":0.05285,"119":0.00622,"120":0.01555,"121":0.00933,"122":0.03109,"123":0.00311,"124":0.02176,"125":4.76921,"126":0.42904,"127":0.00933,"128":0.02487,"129":0.01555,"130":0.01244,"131":0.12436,"132":0.01555,"133":0.01555,"134":0.01555,"135":0.01555,"136":0.01865,"137":0.04042,"138":0.15856,"139":0.34199,"140":2.20117,"141":5.45008,"142":0.05907,"143":0.00311,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 71 72 73 74 76 77 78 81 84 85 88 90 92 93 94 95 97 102 104 107 110 111 117 144 145"},F:{"46":0.00622,"91":0.00933,"92":0.01244,"95":0.00311,"114":0.0342,"120":0.04353,"121":0.00933,"122":0.39484,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00311,"92":0.00311,"98":0.00311,"109":0.00311,"113":0.00311,"114":0.13058,"131":0.00311,"132":0.00311,"133":0.00311,"134":0.00311,"136":0.00311,"137":0.00311,"138":0.00622,"139":0.01244,"140":0.1741,"141":0.80834,"142":0.00311,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 99 100 101 102 103 104 105 106 107 108 110 111 112 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 135"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 16.0 26.2","13.1":0.00622,"14.1":0.00311,"15.1":0.00622,"15.5":0.00622,"15.6":0.07773,"16.1":0.00311,"16.2":0.00311,"16.3":0.00933,"16.4":0.00622,"16.5":0.00933,"16.6":0.12747,"17.0":0.00311,"17.1":0.06218,"17.2":0.00933,"17.3":0.00933,"17.4":0.03731,"17.5":0.04353,"17.6":0.13369,"18.0":0.00622,"18.1":0.04353,"18.2":0.00933,"18.3":0.04664,"18.4":0.04353,"18.5-18.6":0.11192,"26.0":0.44459,"26.1":0.01865},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00329,"5.0-5.1":0,"6.0-6.1":0.01316,"7.0-7.1":0.00987,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02961,"10.0-10.2":0.00329,"10.3":0.05593,"11.0-11.2":0.82914,"11.3-11.4":0.01974,"12.0-12.1":0.00658,"12.2-12.5":0.16122,"13.0-13.1":0,"13.2":0.01645,"13.3":0.00658,"13.4-13.7":0.02632,"14.0-14.4":0.05593,"14.5-14.8":0.05922,"15.0-15.1":0.05593,"15.2-15.3":0.04277,"15.4":0.04935,"15.5":0.05593,"15.6-15.8":0.73043,"16.0":0.09871,"16.1":0.18425,"16.2":0.09542,"16.3":0.17109,"16.4":0.04277,"16.5":0.07568,"16.6-16.7":0.9772,"17.0":0.0691,"17.1":0.10529,"17.2":0.07568,"17.3":0.11187,"17.4":0.19741,"17.5":0.33889,"17.6-17.7":0.85546,"18.0":0.19412,"18.1":0.40141,"18.2":0.21716,"18.3":0.69753,"18.4":0.35864,"18.5-18.6":18.28716,"26.0":2.2604,"26.1":0.08226},P:{"4":0.04074,"22":0.01018,"23":0.02037,"24":0.03055,"25":0.06111,"26":0.08147,"27":0.06111,"28":2.57664,"29":0.27498,_:"20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.03055,"19.0":0.01018},I:{"0":0.00688,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.15852,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00622,_:"6 7 8 9 10 5.5"},S:{"2.5":0.09649,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.31014},Q:{_:"14.9"},O:{"0":0.00689},H:{"0":0},L:{"0":35.46096}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AM.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AM.js deleted file mode 100644 index 3f2dc30b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AM.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.1747,"125":0.02096,"127":0.00699,"128":0.00699,"135":0.01398,"136":0.04892,"138":0.00699,"139":0.02096,"140":0.0559,"141":0.00699,"142":0.03494,"143":1.14603,"144":0.2935,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 129 130 131 132 133 134 137 145 146 147 3.5 3.6"},D:{"39":0.00699,"40":0.00699,"41":0.00699,"42":0.00699,"43":0.00699,"44":0.00699,"45":1.25085,"46":0.00699,"47":0.00699,"48":0.01398,"49":0.02795,"50":0.00699,"51":0.04193,"52":0.00699,"53":0.00699,"54":0.00699,"55":0.00699,"56":0.00699,"57":0.00699,"58":0.00699,"59":0.00699,"60":0.00699,"79":0.00699,"84":0.00699,"87":0.01398,"93":0.00699,"97":0.00699,"98":0.00699,"100":0.00699,"101":0.00699,"103":0.01398,"104":0.01398,"106":0.01398,"108":0.00699,"109":1.44652,"111":0.00699,"112":3.82942,"113":0.00699,"114":0.06988,"116":0.06289,"117":0.00699,"118":0.02096,"119":0.00699,"120":0.01398,"121":0.02096,"122":0.02795,"123":0.00699,"124":0.04892,"125":32.36143,"126":0.31446,"127":0.03494,"128":0.04892,"129":0.02795,"130":0.02096,"131":0.16771,"132":0.04193,"133":0.34241,"134":0.16072,"135":0.03494,"136":0.13976,"137":0.37735,"138":0.33542,"139":0.39832,"140":4.73786,"141":12.2849,"142":0.14675,"143":0.02096,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 85 86 88 89 90 91 92 94 95 96 99 102 105 107 110 115 144 145"},F:{"83":0.00699,"90":0.01398,"91":0.00699,"92":0.00699,"95":0.02795,"116":0.00699,"119":0.01398,"120":0.13976,"121":0.03494,"122":0.78964,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00699,"109":0.02096,"114":0.06988,"131":0.00699,"132":0.00699,"133":0.04193,"134":0.06988,"135":0.00699,"137":0.02096,"138":0.08386,"139":0.01398,"140":0.25157,"141":1.67013,"142":0.00699,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 136"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.5 26.2","11.1":0.00699,"14.1":0.00699,"15.6":0.07687,"16.0":0.00699,"16.1":0.00699,"16.2":0.00699,"16.3":0.01398,"16.4":0.00699,"16.6":0.06988,"17.0":0.00699,"17.1":0.02795,"17.2":0.01398,"17.3":0.02096,"17.4":0.04193,"17.5":0.03494,"17.6":0.07687,"18.0":0.02096,"18.1":0.01398,"18.2":0.25157,"18.3":0.1747,"18.4":0.06988,"18.5-18.6":0.39133,"26.0":0.50314,"26.1":0.00699},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00087,"5.0-5.1":0,"6.0-6.1":0.00346,"7.0-7.1":0.0026,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00779,"10.0-10.2":0.00087,"10.3":0.01472,"11.0-11.2":0.21814,"11.3-11.4":0.00519,"12.0-12.1":0.00173,"12.2-12.5":0.04242,"13.0-13.1":0,"13.2":0.00433,"13.3":0.00173,"13.4-13.7":0.00693,"14.0-14.4":0.01472,"14.5-14.8":0.01558,"15.0-15.1":0.01472,"15.2-15.3":0.01125,"15.4":0.01298,"15.5":0.01472,"15.6-15.8":0.19217,"16.0":0.02597,"16.1":0.04848,"16.2":0.0251,"16.3":0.04501,"16.4":0.01125,"16.5":0.01991,"16.6-16.7":0.2571,"17.0":0.01818,"17.1":0.0277,"17.2":0.01991,"17.3":0.02943,"17.4":0.05194,"17.5":0.08916,"17.6-17.7":0.22507,"18.0":0.05107,"18.1":0.10561,"18.2":0.05713,"18.3":0.18352,"18.4":0.09436,"18.5-18.6":4.81128,"26.0":0.5947,"26.1":0.02164},P:{"4":0.01026,"21":0.02051,"22":0.01026,"23":0.04103,"24":0.01026,"25":0.02051,"26":0.02051,"27":0.06154,"28":0.92307,"29":0.04103,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 15.0 16.0 17.0 19.0","7.2-7.4":0.01026,"14.0":0.01026,"18.0":0.01026},I:{"0":0.00902,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.36662,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01677,"9":0.00839,"10":0.00839,"11":0.05031,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.14156},Q:{"14.9":0.00301},O:{"0":0.04819},H:{"0":0.04},L:{"0":21.06128}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AO.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AO.js deleted file mode 100644 index a3d0734d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AO.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"4":0.00443,"34":0.00443,"46":0.00443,"78":0.00443,"103":0.00443,"112":0.00443,"114":0.00443,"115":0.1239,"116":0.00443,"128":0.01328,"134":0.00443,"135":0.00443,"136":0.00443,"137":0.00443,"138":0.00443,"139":0.00443,"140":0.01328,"141":0.00885,"142":0.00885,"143":0.39825,"144":0.33188,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 109 110 111 113 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 145 146 147 3.5 3.6"},D:{"38":0.00443,"39":0.00885,"40":0.00885,"41":0.00885,"42":0.00443,"43":0.00885,"44":0.00443,"45":0.00885,"46":0.01328,"47":0.00885,"48":0.00885,"49":0.01328,"50":0.00885,"51":0.00443,"52":0.00885,"53":0.00885,"54":0.00443,"55":0.01328,"56":0.01328,"57":0.00885,"58":0.00443,"59":0.00885,"60":0.00885,"61":0.00443,"62":0.00443,"65":0.00443,"66":0.02213,"67":0.00443,"68":0.00443,"69":0.00443,"70":0.00443,"71":0.01328,"72":0.00885,"73":0.0177,"74":0.00443,"75":0.00885,"76":0.00443,"77":0.00885,"78":0.00443,"79":0.0177,"80":0.0177,"81":0.01328,"83":0.0177,"86":0.03983,"87":0.10178,"88":0.00443,"89":0.00443,"90":0.00443,"91":0.01328,"92":0.00443,"93":0.00443,"94":0.00443,"95":0.0177,"96":0.00443,"97":0.00443,"98":0.01328,"99":0.00443,"100":0.00443,"101":0.00443,"102":0.01328,"103":0.03098,"105":0.00885,"106":0.02655,"107":0.00443,"108":0.0177,"109":0.8319,"111":0.00885,"112":3.07095,"113":0.00443,"114":0.0177,"115":0.00885,"116":0.1239,"118":0.02213,"119":0.0708,"120":0.02655,"121":0.00443,"122":0.04868,"123":0.01328,"124":0.00885,"125":2.98245,"126":0.38055,"127":0.03098,"128":0.09293,"129":0.01328,"130":0.02213,"131":0.09293,"132":0.0177,"133":0.03983,"134":0.04425,"135":0.04868,"136":0.07965,"137":0.09293,"138":0.3186,"139":0.29205,"140":3.28335,"141":8.0358,"142":0.29648,"143":0.00443,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 63 64 84 85 104 110 117 144 145"},F:{"34":0.00443,"36":0.00443,"40":0.00885,"42":0.00885,"62":0.00443,"79":0.00885,"86":0.00443,"91":0.00443,"92":0.01328,"95":0.06195,"101":0.00443,"102":0.00443,"113":0.00443,"114":0.00443,"116":0.00443,"117":0.00443,"119":0.00443,"120":0.1593,"121":0.03983,"122":1.26555,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 37 38 39 41 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 87 88 89 90 93 94 96 97 98 99 100 103 104 105 106 107 108 109 110 111 112 115 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.03983,"13":0.00443,"14":0.00885,"15":0.01328,"16":0.00443,"17":0.00443,"18":0.05753,"84":0.01328,"89":0.0177,"90":0.02655,"92":0.13275,"99":0.00443,"100":0.0177,"109":0.04425,"114":0.28763,"116":0.00885,"117":0.01328,"118":0.0531,"120":0.00443,"121":0.00443,"122":0.02213,"125":0.00443,"126":0.00885,"128":0.00443,"130":0.01328,"131":0.02655,"132":0.00885,"133":0.01328,"134":0.0354,"135":0.01328,"136":0.02213,"137":0.03098,"138":0.06638,"139":0.16373,"140":0.83633,"141":3.52673,"142":0.00443,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 101 102 103 104 105 106 107 108 110 111 112 113 115 119 123 124 127 129"},E:{"11":0.00443,_:"0 4 5 6 7 8 9 10 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 15.2-15.3 15.4 16.0 16.1 16.2 17.0 17.2 18.1 26.2","5.1":0.00443,"11.1":0.00443,"12.1":0.00885,"13.1":0.02655,"14.1":0.0354,"15.1":0.00443,"15.5":0.00443,"15.6":0.08408,"16.3":0.00443,"16.4":0.00443,"16.5":0.00443,"16.6":0.07523,"17.1":0.06638,"17.3":0.00443,"17.4":0.00885,"17.5":0.00885,"17.6":0.12833,"18.0":0.00885,"18.2":0.00443,"18.3":0.02655,"18.4":0.00885,"18.5-18.6":0.04425,"26.0":0.25223,"26.1":0.02213},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00067,"5.0-5.1":0,"6.0-6.1":0.00268,"7.0-7.1":0.00201,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00602,"10.0-10.2":0.00067,"10.3":0.01138,"11.0-11.2":0.1687,"11.3-11.4":0.00402,"12.0-12.1":0.00134,"12.2-12.5":0.0328,"13.0-13.1":0,"13.2":0.00335,"13.3":0.00134,"13.4-13.7":0.00536,"14.0-14.4":0.01138,"14.5-14.8":0.01205,"15.0-15.1":0.01138,"15.2-15.3":0.0087,"15.4":0.01004,"15.5":0.01138,"15.6-15.8":0.14862,"16.0":0.02008,"16.1":0.03749,"16.2":0.01941,"16.3":0.03481,"16.4":0.0087,"16.5":0.0154,"16.6-16.7":0.19882,"17.0":0.01406,"17.1":0.02142,"17.2":0.0154,"17.3":0.02276,"17.4":0.04017,"17.5":0.06895,"17.6-17.7":0.17405,"18.0":0.0395,"18.1":0.08167,"18.2":0.04418,"18.3":0.14192,"18.4":0.07297,"18.5-18.6":3.72073,"26.0":0.4599,"26.1":0.01674},P:{"4":0.02068,"21":0.02068,"22":0.07237,"23":0.04135,"24":0.15508,"25":0.15508,"26":0.1344,"27":0.18609,"28":1.97467,"29":0.08271,_:"20 6.2-6.4 8.2 9.2 10.1 12.0 14.0 15.0 18.0","5.0-5.4":0.01034,"7.2-7.4":0.20677,"11.1-11.2":0.01034,"13.0":0.01034,"16.0":0.01034,"17.0":0.03102,"19.0":0.01034},I:{"0":0.03896,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.93317,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{"2.5":0.01672,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.11148},Q:{"14.9":0.02787},O:{"0":0.1505},H:{"0":0.36},L:{"0":56.68617}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AR.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AR.js deleted file mode 100644 index 005d14cb..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AR.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.00538,"59":0.00538,"88":0.01076,"91":0.01076,"103":0.00538,"113":0.00538,"115":0.18823,"120":0.01613,"128":0.00538,"131":0.00538,"133":0.00538,"135":0.00538,"136":0.01613,"137":0.00538,"138":0.00538,"139":0.00538,"140":0.01613,"141":0.00538,"142":0.01613,"143":0.48402,"144":0.43562,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 109 110 111 112 114 116 117 118 119 121 122 123 124 125 126 127 129 130 132 134 145 146 147 3.5 3.6"},D:{"38":0.00538,"39":0.01076,"40":0.01076,"41":0.01076,"42":0.01076,"43":0.01076,"44":0.01076,"45":0.01076,"46":0.01076,"47":0.01076,"48":0.01076,"49":0.01613,"50":0.01076,"51":0.01076,"52":0.01076,"53":0.01076,"54":0.01076,"55":0.01076,"56":0.01076,"57":0.01076,"58":0.01076,"59":0.01076,"60":0.01076,"66":0.02689,"79":0.01076,"81":0.00538,"85":0.00538,"86":0.00538,"87":0.01076,"91":0.00538,"94":0.01076,"95":0.00538,"97":0.00538,"99":0.00538,"100":0.00538,"102":0.00538,"103":0.01613,"104":0.00538,"105":0.00538,"106":0.00538,"108":0.01076,"109":1.40366,"110":0.00538,"111":0.04302,"112":11.34758,"113":0.00538,"114":0.00538,"116":0.03227,"119":0.03765,"120":0.01076,"121":0.01613,"122":0.03765,"123":0.01076,"124":0.03765,"125":9.00815,"126":1.11862,"127":0.04302,"128":0.03227,"129":0.01613,"130":0.01613,"131":0.89275,"132":0.03227,"133":0.02689,"134":0.03765,"135":0.04302,"136":0.06991,"137":0.0484,"138":0.15058,"139":0.3173,"140":5.25968,"141":14.28935,"142":0.19899,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 78 80 83 84 88 89 90 92 93 96 98 101 107 115 117 118 143 144 145"},F:{"92":0.00538,"95":0.02151,"120":0.06991,"121":0.16134,"122":1.05409,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00538,"92":0.00538,"109":0.02151,"114":0.02689,"117":0.00538,"122":0.00538,"131":0.00538,"133":0.00538,"134":0.01613,"135":0.00538,"136":0.00538,"137":0.00538,"138":0.01076,"139":0.02151,"140":0.44637,"141":1.94146,"142":0.00538,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 118 119 120 121 123 124 125 126 127 128 129 130 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 10.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 17.0 17.2 18.0 26.2","9.1":0.00538,"11.1":0.00538,"13.1":0.00538,"14.1":0.01076,"15.6":0.02151,"16.3":0.00538,"16.4":0.00538,"16.5":0.00538,"16.6":0.03227,"17.1":0.01613,"17.3":0.00538,"17.4":0.00538,"17.5":0.00538,"17.6":0.02689,"18.1":0.00538,"18.2":0.00538,"18.3":0.01076,"18.4":0.00538,"18.5-18.6":0.02689,"26.0":0.0968,"26.1":0.00538},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00034,"5.0-5.1":0,"6.0-6.1":0.00137,"7.0-7.1":0.00102,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00307,"10.0-10.2":0.00034,"10.3":0.00581,"11.0-11.2":0.08607,"11.3-11.4":0.00205,"12.0-12.1":0.00068,"12.2-12.5":0.01674,"13.0-13.1":0,"13.2":0.00171,"13.3":0.00068,"13.4-13.7":0.00273,"14.0-14.4":0.00581,"14.5-14.8":0.00615,"15.0-15.1":0.00581,"15.2-15.3":0.00444,"15.4":0.00512,"15.5":0.00581,"15.6-15.8":0.07583,"16.0":0.01025,"16.1":0.01913,"16.2":0.00991,"16.3":0.01776,"16.4":0.00444,"16.5":0.00786,"16.6-16.7":0.10145,"17.0":0.00717,"17.1":0.01093,"17.2":0.00786,"17.3":0.01161,"17.4":0.02049,"17.5":0.03518,"17.6-17.7":0.08881,"18.0":0.02015,"18.1":0.04167,"18.2":0.02254,"18.3":0.07241,"18.4":0.03723,"18.5-18.6":1.89842,"26.0":0.23466,"26.1":0.00854},P:{"21":0.01032,"22":0.01032,"23":0.01032,"24":0.02064,"25":0.02064,"26":0.07225,"27":0.03096,"28":1.42426,"29":0.11353,_:"4 20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 19.0","7.2-7.4":0.08257,"17.0":0.01032,"18.0":0.01032},I:{"0":0.01385,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.06471,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00538,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.0832},Q:{"14.9":0.00462},O:{"0":0.00924},H:{"0":0},L:{"0":43.08327}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AS.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AS.js deleted file mode 100644 index 56beb987..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AS.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"143":0.01041,"144":0.01735,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 145 146 147 3.5 3.6"},D:{"58":0.00347,"76":0.00347,"103":0.00694,"105":0.00347,"109":0.00347,"116":0.00347,"122":0.00347,"123":0.00347,"125":0.01735,"126":0.01041,"128":0.00347,"132":0.00347,"133":0.00347,"134":0.00347,"135":0.00347,"136":0.00694,"137":0.00694,"138":0.02082,"139":0.05552,"140":0.29495,"141":0.53785,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 106 107 108 110 111 112 113 114 115 117 118 119 120 121 124 127 129 130 131 142 143 144 145"},F:{"122":0.01041,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"90":0.00694,"135":0.00347,"140":0.0347,"141":0.22208,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 136 137 138 139 142"},E:{"14":0.00347,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 14.1 15.2-15.3 16.0 26.2","12.1":0.00347,"13.1":0.00347,"15.1":0.00347,"15.4":0.01041,"15.5":0.07634,"15.6":0.65236,"16.1":0.21514,"16.2":0.0694,"16.3":0.40946,"16.4":0.40946,"16.5":0.13533,"16.6":1.78011,"17.0":0.05205,"17.1":2.4984,"17.2":0.02429,"17.3":0.03123,"17.4":0.35741,"17.5":0.57602,"17.6":1.28737,"18.0":0.19779,"18.1":0.19779,"18.2":0.13533,"18.3":0.41987,"18.4":0.13533,"18.5-18.6":1.21103,"26.0":2.47411,"26.1":0.18738},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00642,"5.0-5.1":0,"6.0-6.1":0.02567,"7.0-7.1":0.01926,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.05777,"10.0-10.2":0.00642,"10.3":0.10912,"11.0-11.2":1.6175,"11.3-11.4":0.03851,"12.0-12.1":0.01284,"12.2-12.5":0.31451,"13.0-13.1":0,"13.2":0.03209,"13.3":0.01284,"13.4-13.7":0.05135,"14.0-14.4":0.10912,"14.5-14.8":0.11554,"15.0-15.1":0.10912,"15.2-15.3":0.08344,"15.4":0.09628,"15.5":0.10912,"15.6-15.8":1.42494,"16.0":0.19256,"16.1":0.35944,"16.2":0.18614,"16.3":0.33377,"16.4":0.08344,"16.5":0.14763,"16.6-16.7":1.90634,"17.0":0.13479,"17.1":0.2054,"17.2":0.14763,"17.3":0.21823,"17.4":0.38512,"17.5":0.66112,"17.6-17.7":1.66885,"18.0":0.3787,"18.1":0.78308,"18.2":0.42363,"18.3":1.36076,"18.4":0.69963,"18.5-18.6":35.67491,"26.0":4.40962,"26.1":0.16047},P:{"25":0.00979,"28":0.03917,"29":0.00979,_:"4 20 21 22 23 24 26 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","17.0":0.01959},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.00653,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.00653},Q:{_:"14.9"},O:{"0":0.00653},H:{"0":0},L:{"0":1.22408}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AT.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AT.js deleted file mode 100644 index 1c35235e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AT.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"48":0.00554,"52":0.03326,"53":0.01109,"60":0.01663,"68":0.04434,"78":0.02217,"91":0.00554,"102":0.00554,"104":0.00554,"108":0.00554,"112":0.00554,"115":0.4767,"122":0.00554,"125":0.00554,"127":0.01109,"128":0.82036,"129":0.01109,"131":0.01109,"132":0.00554,"133":0.00554,"134":0.01109,"135":0.01109,"136":0.06097,"137":0.02217,"138":0.04989,"139":0.04434,"140":0.23835,"141":0.06097,"142":0.10532,"143":2.99876,"144":2.58858,"145":0.00554,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 54 55 56 57 58 59 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 103 105 106 107 109 110 111 113 114 116 117 118 119 120 121 123 124 126 130 146 147 3.5 3.6"},D:{"39":0.00554,"40":0.00554,"41":0.00554,"42":0.01663,"43":0.00554,"44":0.00554,"45":0.00554,"46":0.00554,"47":0.00554,"48":0.00554,"49":0.02217,"50":0.00554,"51":0.00554,"52":0.00554,"53":0.00554,"54":0.00554,"55":0.00554,"56":0.00554,"57":0.00554,"58":0.00554,"59":0.00554,"60":0.00554,"69":0.00554,"79":0.06652,"80":0.01663,"81":0.00554,"87":0.04434,"88":0.01109,"90":0.00554,"91":0.00554,"96":0.00554,"97":0.00554,"99":0.04989,"102":0.00554,"103":0.01663,"104":0.0388,"106":0.00554,"108":0.01663,"109":0.55984,"111":0.00554,"112":0.31041,"114":0.0388,"115":0.00554,"116":0.10532,"117":0.01109,"118":0.12195,"119":0.01109,"120":0.01663,"121":0.01663,"122":0.05543,"123":0.31595,"124":0.03326,"125":0.32149,"126":0.04434,"127":0.01109,"128":0.0388,"129":0.04434,"130":0.01663,"131":0.08869,"132":0.03326,"133":0.05543,"134":0.0388,"135":0.12195,"136":0.05543,"137":0.16075,"138":0.23835,"139":0.72059,"140":6.94538,"141":13.73001,"142":0.13303,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 83 84 85 86 89 92 93 94 95 98 100 101 105 107 110 113 143 144 145"},F:{"46":0.01109,"85":0.01663,"91":0.02217,"92":0.06097,"95":0.02772,"107":0.00554,"119":0.00554,"120":0.33258,"121":0.44898,"122":3.47546,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 108 109 110 111 112 113 114 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00554,"109":0.04989,"114":0.00554,"120":0.00554,"121":0.00554,"122":0.00554,"126":0.00554,"127":0.00554,"130":0.00554,"131":0.00554,"132":0.01109,"133":0.01109,"134":0.03326,"135":0.02217,"136":0.01663,"137":0.01663,"138":0.05543,"139":0.06097,"140":1.87908,"141":7.71031,"142":0.00554,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 123 124 125 128 129"},E:{"14":0.01109,"15":0.00554,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.2-15.3 26.2","12.1":0.00554,"13.1":0.02772,"14.1":0.03326,"15.1":0.01109,"15.4":0.00554,"15.5":0.00554,"15.6":0.16629,"16.0":0.01663,"16.1":0.01663,"16.2":0.01109,"16.3":0.03326,"16.4":0.02217,"16.5":0.01109,"16.6":0.22726,"17.0":0.01109,"17.1":0.14412,"17.2":0.03326,"17.3":0.02217,"17.4":0.03326,"17.5":0.09977,"17.6":0.26606,"18.0":0.03326,"18.1":0.04434,"18.2":0.01663,"18.3":0.09423,"18.4":0.06652,"18.5-18.6":0.23835,"26.0":0.76493,"26.1":0.02217},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00166,"5.0-5.1":0,"6.0-6.1":0.00665,"7.0-7.1":0.00498,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01495,"10.0-10.2":0.00166,"10.3":0.02825,"11.0-11.2":0.41872,"11.3-11.4":0.00997,"12.0-12.1":0.00332,"12.2-12.5":0.08142,"13.0-13.1":0,"13.2":0.00831,"13.3":0.00332,"13.4-13.7":0.01329,"14.0-14.4":0.02825,"14.5-14.8":0.02991,"15.0-15.1":0.02825,"15.2-15.3":0.0216,"15.4":0.02492,"15.5":0.02825,"15.6-15.8":0.36887,"16.0":0.04985,"16.1":0.09305,"16.2":0.04819,"16.3":0.0864,"16.4":0.0216,"16.5":0.03822,"16.6-16.7":0.49349,"17.0":0.03489,"17.1":0.05317,"17.2":0.03822,"17.3":0.05649,"17.4":0.09969,"17.5":0.17114,"17.6-17.7":0.43201,"18.0":0.09803,"18.1":0.20271,"18.2":0.10966,"18.3":0.35225,"18.4":0.18111,"18.5-18.6":9.235,"26.0":1.1415,"26.1":0.04154},P:{"4":0.06273,"21":0.01045,"22":0.01045,"23":0.02091,"24":0.02091,"25":0.02091,"26":0.06273,"27":0.09409,"28":3.34545,"29":0.23,_:"20 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","6.2-6.4":0.01045,"7.2-7.4":0.07318},I:{"0":0.04006,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.31536,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02217,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.90923},Q:{"14.9":0.00446},O:{"0":0.05348},H:{"0":0.01},L:{"0":24.13978}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AU.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AU.js deleted file mode 100644 index 91ab5934..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AU.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.01059,"78":0.01589,"82":0.0053,"115":0.12181,"125":0.01589,"128":0.01059,"132":0.0053,"133":0.0053,"134":0.0053,"135":0.0053,"136":0.01059,"137":0.0053,"138":0.0053,"139":0.01059,"140":0.06355,"141":0.01589,"142":0.06355,"143":0.99035,"144":0.86325,"145":0.0053,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 131 146 147 3.5 3.6"},D:{"25":0.04237,"34":0.01059,"38":0.04766,"39":0.01589,"40":0.01589,"41":0.01589,"42":0.01589,"43":0.01589,"44":0.01589,"45":0.01589,"46":0.01589,"47":0.01589,"48":0.01589,"49":0.02118,"50":0.01589,"51":0.01589,"52":0.01589,"53":0.01589,"54":0.01589,"55":0.01589,"56":0.01589,"57":0.01589,"58":0.01589,"59":0.01589,"60":0.01589,"66":0.0053,"74":0.0053,"79":0.03178,"80":0.0053,"81":0.01589,"85":0.02118,"86":0.0053,"87":0.03178,"88":0.01589,"90":0.0053,"97":0.0053,"98":0.01059,"99":0.01059,"100":0.0053,"101":0.0053,"102":0.0053,"103":0.06885,"104":0.02118,"105":0.01589,"107":0.0053,"108":0.04237,"109":0.35483,"110":0.0053,"111":0.02648,"112":0.0053,"113":0.01059,"114":0.03707,"115":0.0053,"116":0.15358,"117":0.01059,"118":0.01059,"119":0.02118,"120":0.03707,"121":0.02648,"122":0.06885,"123":0.04766,"124":0.05296,"125":1.23926,"126":0.1377,"127":0.09533,"128":0.14299,"129":0.03707,"130":1.15453,"131":0.36013,"132":0.10592,"133":0.05826,"134":0.07414,"135":0.09533,"136":0.10062,"137":0.18536,"138":0.68318,"139":1.33989,"140":7.50973,"141":15.89859,"142":0.18536,"143":0.01589,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 26 27 28 29 30 31 32 33 35 36 37 61 62 63 64 65 67 68 69 70 71 72 73 75 76 77 78 83 84 89 91 92 93 94 95 96 106 144 145"},F:{"46":0.0053,"91":0.0053,"92":0.01059,"95":0.0053,"102":0.0053,"119":0.0053,"120":0.1271,"121":0.1271,"122":1.03802,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.0053,"85":0.01059,"109":0.05826,"113":0.0053,"114":0.0053,"117":0.0053,"119":0.0053,"120":0.01059,"122":0.0053,"124":0.0053,"125":0.0053,"126":0.0053,"127":0.0053,"128":0.0053,"129":0.01059,"130":0.0053,"131":0.01059,"132":0.01059,"133":0.01059,"134":0.03178,"135":0.02648,"136":0.02648,"137":0.01589,"138":0.04237,"139":0.05826,"140":1.3293,"141":5.85738,"142":0.01059,_:"12 13 14 15 16 17 79 80 81 83 84 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 115 116 118 121 123"},E:{"13":0.0053,"14":0.02648,"15":0.0053,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 26.2","11.1":0.0053,"12.1":0.02118,"13.1":0.05826,"14.1":0.08474,"15.1":0.01059,"15.2-15.3":0.01059,"15.4":0.02118,"15.5":0.04237,"15.6":0.30717,"16.0":0.01589,"16.1":0.05826,"16.2":0.07944,"16.3":0.07414,"16.4":0.02648,"16.5":0.03178,"16.6":0.42898,"17.0":0.0053,"17.1":0.3919,"17.2":0.03178,"17.3":0.04766,"17.4":0.06885,"17.5":0.11122,"17.6":0.36013,"18.0":0.02648,"18.1":0.06885,"18.2":0.05826,"18.3":0.14299,"18.4":0.07944,"18.5-18.6":0.33365,"26.0":0.82088,"26.1":0.02648},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00217,"5.0-5.1":0,"6.0-6.1":0.00866,"7.0-7.1":0.0065,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01949,"10.0-10.2":0.00217,"10.3":0.03681,"11.0-11.2":0.54564,"11.3-11.4":0.01299,"12.0-12.1":0.00433,"12.2-12.5":0.1061,"13.0-13.1":0,"13.2":0.01083,"13.3":0.00433,"13.4-13.7":0.01732,"14.0-14.4":0.03681,"14.5-14.8":0.03897,"15.0-15.1":0.03681,"15.2-15.3":0.02815,"15.4":0.03248,"15.5":0.03681,"15.6-15.8":0.48069,"16.0":0.06496,"16.1":0.12125,"16.2":0.06279,"16.3":0.11259,"16.4":0.02815,"16.5":0.0498,"16.6-16.7":0.64308,"17.0":0.04547,"17.1":0.06929,"17.2":0.0498,"17.3":0.07362,"17.4":0.12992,"17.5":0.22302,"17.6-17.7":0.56297,"18.0":0.12775,"18.1":0.26416,"18.2":0.14291,"18.3":0.45903,"18.4":0.23601,"18.5-18.6":12.03447,"26.0":1.48753,"26.1":0.05413},P:{"4":0.0435,"20":0.01087,"21":0.02175,"22":0.01087,"23":0.02175,"24":0.02175,"25":0.02175,"26":0.05437,"27":0.06525,"28":2.54471,"29":0.19575,"5.0-5.4":0.01087,_:"6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01087},I:{"0":0.01879,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.1223,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.12786,"11":0.00984,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.41395},Q:{"14.9":0.0047},O:{"0":0.03293},H:{"0":0},L:{"0":23.17989}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AW.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AW.js deleted file mode 100644 index 21bc3c88..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AW.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"78":0.02907,"115":0.04522,"134":0.01615,"142":0.00323,"143":0.19703,"144":0.18734,"145":0.00323,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 135 136 137 138 139 140 141 146 147 3.5 3.6"},D:{"39":0.00323,"40":0.00323,"41":0.00323,"42":0.00323,"43":0.00323,"44":0.00323,"45":0.00646,"47":0.00646,"48":0.00323,"49":0.00323,"50":0.00323,"51":0.00323,"52":0.00323,"53":0.00646,"54":0.00323,"55":0.00323,"56":0.00323,"57":0.00323,"58":0.00323,"59":0.00646,"60":0.00646,"79":0.00323,"94":0.00646,"98":0.01938,"101":0.00323,"103":0.05168,"104":0.02261,"106":0.00323,"108":0.00323,"109":0.46189,"110":0.00323,"115":0.00969,"116":0.08721,"120":0.00323,"122":0.05168,"123":0.01292,"125":1.05944,"126":0.06137,"127":0.01615,"128":0.06783,"129":0.7752,"130":0.00646,"131":0.02584,"132":0.0323,"133":0.00323,"134":0.02261,"135":0.05168,"136":0.03553,"137":0.11951,"138":0.14535,"139":0.25194,"140":3.5853,"141":7.77461,"142":0.08721,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 46 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 87 88 89 90 91 92 93 95 96 97 99 100 102 105 107 111 112 113 114 117 118 119 121 124 143 144 145"},F:{"91":0.00323,"92":0.00323,"116":0.00323,"119":0.00323,"120":0.02907,"121":0.10013,"122":0.24871,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"108":0.00323,"109":0.00646,"114":0.00646,"122":0.00323,"124":0.00646,"125":0.00323,"129":0.00323,"134":0.00969,"135":0.00323,"136":0.00323,"137":0.00323,"138":0.04845,"139":0.05168,"140":1.48257,"141":7.11246,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 111 112 113 115 116 117 118 119 120 121 123 126 127 128 130 131 132 133 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 13.1 15.1 15.2-15.3 15.4 16.0 26.2","12.1":0.00323,"14.1":0.02584,"15.5":0.00323,"15.6":0.05168,"16.1":0.00969,"16.2":0.00323,"16.3":0.05491,"16.4":0.00323,"16.5":0.00646,"16.6":0.05168,"17.0":0.00323,"17.1":0.08398,"17.2":0.00323,"17.3":0.01292,"17.4":0.10336,"17.5":0.06137,"17.6":0.11628,"18.0":0.00969,"18.1":0.02261,"18.2":0.04522,"18.3":0.09044,"18.4":0.02584,"18.5-18.6":0.13566,"26.0":0.323,"26.1":0.04199},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00294,"5.0-5.1":0,"6.0-6.1":0.01176,"7.0-7.1":0.00882,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02646,"10.0-10.2":0.00294,"10.3":0.04998,"11.0-11.2":0.74093,"11.3-11.4":0.01764,"12.0-12.1":0.00588,"12.2-12.5":0.14407,"13.0-13.1":0,"13.2":0.0147,"13.3":0.00588,"13.4-13.7":0.02352,"14.0-14.4":0.04998,"14.5-14.8":0.05292,"15.0-15.1":0.04998,"15.2-15.3":0.03822,"15.4":0.0441,"15.5":0.04998,"15.6-15.8":0.65273,"16.0":0.08821,"16.1":0.16465,"16.2":0.08527,"16.3":0.15289,"16.4":0.03822,"16.5":0.06762,"16.6-16.7":0.87324,"17.0":0.06174,"17.1":0.09409,"17.2":0.06762,"17.3":0.09997,"17.4":0.17641,"17.5":0.30284,"17.6-17.7":0.76445,"18.0":0.17347,"18.1":0.35871,"18.2":0.19405,"18.3":0.62332,"18.4":0.32048,"18.5-18.6":16.34169,"26.0":2.01992,"26.1":0.07351},P:{"4":0.01016,"20":0.01016,"22":0.01016,"23":0.01016,"24":0.02031,"25":0.02031,"26":0.05078,"27":0.05078,"28":5.31107,"29":0.54837,_:"21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.02031,"19.0":0.03047},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.1354,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.31819},Q:{_:"14.9"},O:{"0":0.02031},H:{"0":0},L:{"0":36.12519}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AX.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AX.js deleted file mode 100644 index 1faaa62e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AX.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"110":0.0062,"115":0.5332,"133":0.0124,"136":0.0062,"139":0.0248,"140":0.031,"141":0.0558,"142":0.6386,"143":0.5704,"144":0.5022,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 134 135 137 138 145 146 147 3.5 3.6"},D:{"53":0.0062,"58":0.0062,"76":0.2356,"79":0.0124,"87":0.0186,"101":0.0062,"103":0.0806,"109":0.4216,"116":0.031,"122":0.031,"123":0.0062,"125":0.7874,"127":0.031,"128":0.0124,"129":0.0496,"130":0.0062,"131":0.0248,"133":0.0062,"134":0.0062,"135":0.0248,"136":0.434,"137":0.0558,"138":0.0806,"139":3.0938,"140":9.6906,"141":21.3838,"142":0.2108,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 54 55 56 57 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 80 81 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 102 104 105 106 107 108 110 111 112 113 114 115 117 118 119 120 121 124 126 132 143 144 145"},F:{"104":0.0186,"117":0.0124,"120":0.0372,"121":0.0062,"122":0.7626,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 105 106 107 108 109 110 111 112 113 114 115 116 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.0248,"131":0.0124,"134":0.0248,"135":0.0496,"138":0.1426,"139":0.3472,"140":3.007,"141":10.943,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 132 133 136 137 142"},E:{"14":0.0062,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.1 16.2 16.3 16.4 16.5 17.0 17.2 17.3 18.0 26.1 26.2","14.1":0.0434,"15.6":0.0496,"16.0":0.0062,"16.6":0.1054,"17.1":0.0372,"17.4":0.0062,"17.5":0.0124,"17.6":0.1798,"18.1":0.0062,"18.2":0.1302,"18.3":0.0868,"18.4":0.0062,"18.5-18.6":0.279,"26.0":0.124},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00067,"5.0-5.1":0,"6.0-6.1":0.00268,"7.0-7.1":0.00201,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00602,"10.0-10.2":0.00067,"10.3":0.01137,"11.0-11.2":0.16854,"11.3-11.4":0.00401,"12.0-12.1":0.00134,"12.2-12.5":0.03277,"13.0-13.1":0,"13.2":0.00334,"13.3":0.00134,"13.4-13.7":0.00535,"14.0-14.4":0.01137,"14.5-14.8":0.01204,"15.0-15.1":0.01137,"15.2-15.3":0.00869,"15.4":0.01003,"15.5":0.01137,"15.6-15.8":0.14847,"16.0":0.02006,"16.1":0.03745,"16.2":0.0194,"16.3":0.03478,"16.4":0.00869,"16.5":0.01538,"16.6-16.7":0.19863,"17.0":0.01404,"17.1":0.0214,"17.2":0.01538,"17.3":0.02274,"17.4":0.04013,"17.5":0.06889,"17.6-17.7":0.17389,"18.0":0.03946,"18.1":0.08159,"18.2":0.04414,"18.3":0.14179,"18.4":0.0729,"18.5-18.6":3.71719,"26.0":0.45947,"26.1":0.01672},P:{"23":0.01123,"26":0.01123,"27":0.01123,"28":4.81972,"29":0.31457,_:"4 20 21 22 24 25 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.12522,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":0.0722,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":2.3522},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":26.8058}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AZ.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AZ.js deleted file mode 100644 index 21341584..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/AZ.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.03613,"125":0.03613,"128":0.00516,"132":0.55233,"140":0.01549,"141":0.00516,"142":0.01032,"143":0.6246,"144":0.12905,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 131 133 134 135 136 137 138 139 145 146 147 3.5 3.6"},D:{"39":0.00516,"40":0.00516,"41":0.00516,"42":0.00516,"43":0.00516,"44":0.00516,"45":0.00516,"46":0.00516,"47":0.00516,"48":0.00516,"49":0.00516,"50":0.00516,"51":0.00516,"52":0.00516,"53":0.00516,"54":0.00516,"55":0.00516,"56":0.00516,"57":0.00516,"58":0.00516,"59":0.00516,"60":0.00516,"65":0.00516,"66":0.00516,"70":0.00516,"75":0.01032,"79":0.07227,"80":0.00516,"83":0.02065,"86":0.00516,"87":0.07743,"89":0.01032,"94":0.00516,"98":0.00516,"99":0.00516,"100":0.01032,"101":0.00516,"103":0.00516,"104":0.00516,"105":0.00516,"106":0.00516,"107":0.00516,"108":0.01032,"109":1.36277,"110":0.00516,"111":0.02581,"112":7.25777,"113":0.00516,"114":0.00516,"115":0.00516,"116":0.01549,"117":0.00516,"119":0.00516,"120":0.00516,"121":0.01032,"122":0.02581,"123":0.01032,"124":0.00516,"125":16.53905,"126":0.59363,"127":0.01032,"128":0.01549,"129":0.01032,"130":0.30456,"131":0.06194,"132":0.01549,"133":0.05162,"134":0.02065,"135":0.02065,"136":0.02065,"137":0.0413,"138":0.22713,"139":0.49039,"140":3.42757,"141":9.70972,"142":0.1084,"143":0.00516,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 67 68 69 71 72 73 74 76 77 78 81 84 85 88 90 91 92 93 95 96 97 102 118 144 145"},F:{"46":0.01549,"79":0.01549,"85":0.11873,"91":0.02581,"92":0.05678,"93":0.00516,"95":0.12389,"114":0.38715,"120":0.06194,"121":0.03097,"122":0.69687,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 86 87 88 89 90 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00516,"89":0.00516,"92":0.01032,"109":0.00516,"114":0.18067,"121":0.01032,"122":0.00516,"131":0.00516,"133":0.00516,"134":0.00516,"136":0.00516,"137":0.00516,"138":0.01032,"139":0.01549,"140":0.26842,"141":1.3989,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 123 124 125 126 127 128 129 130 132 135 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.3 16.5 17.0 26.2","14.1":0.01549,"15.6":0.06194,"16.1":0.00516,"16.4":0.00516,"16.6":0.01549,"17.1":0.01032,"17.2":0.00516,"17.3":0.01032,"17.4":0.01032,"17.5":0.01549,"17.6":0.02065,"18.0":0.06711,"18.1":0.00516,"18.2":0.03097,"18.3":0.03613,"18.4":0.03097,"18.5-18.6":0.07743,"26.0":0.27359,"26.1":0.00516},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00069,"5.0-5.1":0,"6.0-6.1":0.00275,"7.0-7.1":0.00206,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00618,"10.0-10.2":0.00069,"10.3":0.01168,"11.0-11.2":0.17312,"11.3-11.4":0.00412,"12.0-12.1":0.00137,"12.2-12.5":0.03366,"13.0-13.1":0,"13.2":0.00343,"13.3":0.00137,"13.4-13.7":0.0055,"14.0-14.4":0.01168,"14.5-14.8":0.01237,"15.0-15.1":0.01168,"15.2-15.3":0.00893,"15.4":0.0103,"15.5":0.01168,"15.6-15.8":0.15251,"16.0":0.02061,"16.1":0.03847,"16.2":0.01992,"16.3":0.03572,"16.4":0.00893,"16.5":0.0158,"16.6-16.7":0.20404,"17.0":0.01443,"17.1":0.02198,"17.2":0.0158,"17.3":0.02336,"17.4":0.04122,"17.5":0.07076,"17.6-17.7":0.17862,"18.0":0.04053,"18.1":0.08381,"18.2":0.04534,"18.3":0.14564,"18.4":0.07488,"18.5-18.6":3.81832,"26.0":0.47197,"26.1":0.01717},P:{"4":0.13234,"20":0.01018,"21":0.01018,"22":0.01018,"23":0.02036,"24":0.02036,"25":0.03054,"26":0.08144,"27":0.0509,"28":1.78149,"29":0.1527,"5.0-5.4":0.02036,"6.2-6.4":0.03054,"7.2-7.4":0.06108,_:"8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","17.0":0.02036,"19.0":0.01018},I:{"0":0.00483,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":1.15144,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01549,"11":0.05678,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.18868},Q:{_:"14.9"},O:{"0":0.12579},H:{"0":0},L:{"0":40.51259}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BA.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BA.js deleted file mode 100644 index 9c897a00..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BA.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.04127,"88":0.00459,"91":0.00459,"115":0.28892,"125":0.0321,"127":0.00459,"128":0.00459,"133":0.00459,"134":0.00459,"135":0.00459,"136":0.00459,"138":0.04127,"139":0.00459,"140":0.02293,"141":0.01376,"142":0.02752,"143":0.75669,"144":0.67414,"145":0.00459,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 129 130 131 132 137 146 147 3.5 3.6"},D:{"39":0.00459,"40":0.00459,"41":0.00459,"42":0.00459,"43":0.00459,"44":0.00459,"45":0.00459,"46":0.00459,"47":0.00459,"48":0.00459,"49":0.0321,"50":0.00459,"51":0.00459,"52":0.00459,"53":0.00917,"54":0.00459,"55":0.00917,"56":0.00459,"57":0.00459,"58":0.00459,"59":0.00459,"60":0.00459,"64":0.01376,"66":0.00917,"69":0.00459,"70":0.01376,"71":0.00459,"75":0.00459,"76":0.00459,"78":0.01834,"79":0.54115,"83":0.00917,"85":0.00459,"86":0.00459,"87":0.27516,"88":0.00917,"89":0.00459,"90":0.00459,"91":0.01376,"93":0.00459,"94":0.07796,"96":0.00459,"97":0.00459,"98":0.01376,"99":0.00459,"100":0.00459,"101":0.00459,"103":0.01834,"104":0.00459,"106":0.02293,"108":0.05503,"109":2.26548,"111":0.03669,"112":4.1916,"114":0.02752,"116":0.03669,"117":0.00459,"119":0.03669,"120":0.02752,"121":0.03669,"122":0.04586,"123":0.00459,"124":0.04127,"125":3.05886,"126":0.31185,"127":0.01376,"128":0.01376,"129":0.00917,"130":0.0321,"131":0.05503,"132":0.02293,"133":0.04586,"134":0.07796,"135":0.05503,"136":0.08255,"137":0.09631,"138":0.38522,"139":0.49987,"140":6.67722,"141":14.11112,"142":0.1651,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 65 67 68 72 73 74 77 80 81 84 92 95 102 105 107 110 113 115 118 143 144 145"},F:{"28":0.00459,"36":0.00459,"40":0.01376,"46":0.07338,"79":0.00917,"85":0.00917,"91":0.00459,"92":0.02293,"95":0.05045,"114":0.00459,"116":0.00459,"120":0.2614,"121":0.06879,"122":1.02726,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00459,"18":0.00459,"92":0.00459,"109":0.01376,"114":0.0321,"122":0.00459,"125":0.00459,"129":0.00459,"131":0.00459,"134":0.00459,"136":0.00459,"137":0.00459,"138":0.02293,"139":0.01834,"140":0.3944,"141":1.65096,_:"13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 126 127 128 130 132 133 135 142"},E:{"8":0.02752,"14":0.00459,"15":0.00459,_:"0 4 5 6 7 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.4 17.0 26.2","12.1":0.02752,"13.1":0.02293,"14.1":0.00459,"15.6":0.07338,"16.1":0.00917,"16.3":0.00459,"16.5":0.00917,"16.6":0.08255,"17.1":0.04586,"17.2":0.00459,"17.3":0.00459,"17.4":0.02293,"17.5":0.01376,"17.6":0.08713,"18.0":0.00459,"18.1":0.00459,"18.2":0.00459,"18.3":0.01376,"18.4":0.00917,"18.5-18.6":0.07796,"26.0":0.14217,"26.1":0.00459},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00082,"5.0-5.1":0,"6.0-6.1":0.00327,"7.0-7.1":0.00245,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00735,"10.0-10.2":0.00082,"10.3":0.01388,"11.0-11.2":0.20574,"11.3-11.4":0.0049,"12.0-12.1":0.00163,"12.2-12.5":0.04001,"13.0-13.1":0,"13.2":0.00408,"13.3":0.00163,"13.4-13.7":0.00653,"14.0-14.4":0.01388,"14.5-14.8":0.0147,"15.0-15.1":0.01388,"15.2-15.3":0.01061,"15.4":0.01225,"15.5":0.01388,"15.6-15.8":0.18125,"16.0":0.02449,"16.1":0.04572,"16.2":0.02368,"16.3":0.04245,"16.4":0.01061,"16.5":0.01878,"16.6-16.7":0.24248,"17.0":0.01715,"17.1":0.02613,"17.2":0.01878,"17.3":0.02776,"17.4":0.04899,"17.5":0.08409,"17.6-17.7":0.21227,"18.0":0.04817,"18.1":0.0996,"18.2":0.05388,"18.3":0.17308,"18.4":0.08899,"18.5-18.6":4.53772,"26.0":0.56089,"26.1":0.02041},P:{"4":0.46546,"20":0.01034,"21":0.01034,"22":0.01034,"23":0.05172,"24":0.02069,"25":0.03103,"26":0.08275,"27":0.05172,"28":3.14443,"29":0.21721,"5.0-5.4":0.06206,"6.2-6.4":0.05172,"7.2-7.4":0.4034,"8.2":0.01034,_:"9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.23248,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.00012},K:{"0":0.12452,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.11911},Q:{_:"14.9"},O:{"0":0.00541},H:{"0":0},L:{"0":45.13769}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BB.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BB.js deleted file mode 100644 index b5dadf41..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BB.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.01331,"128":0.00666,"140":0.0932,"142":0.00666,"143":0.48596,"144":0.46599,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 136 137 138 139 141 145 146 147 3.5 3.6"},D:{"39":0.03329,"40":0.03329,"41":0.02663,"42":0.02663,"43":0.01997,"44":0.02663,"45":0.02663,"46":0.02663,"47":0.03329,"48":0.02663,"49":0.02663,"50":0.02663,"51":0.02663,"52":0.02663,"53":0.01997,"54":0.02663,"55":0.02663,"56":0.03329,"57":0.02663,"58":0.02663,"59":0.02663,"60":0.02663,"80":0.03329,"87":0.01331,"89":0.00666,"94":0.00666,"103":0.22634,"109":0.17974,"111":0.00666,"116":0.00666,"119":0.01331,"122":0.00666,"124":0.00666,"125":34.5698,"126":0.01331,"127":0.00666,"128":0.0466,"129":0.01997,"130":0.00666,"131":0.0932,"132":0.01997,"133":0.00666,"134":0.01331,"135":0.01331,"136":0.01331,"137":1.45123,"138":0.28625,"139":0.51259,"140":4.59999,"141":10.29172,"142":0.12648,"143":0.00666,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 81 83 84 85 86 88 90 91 92 93 95 96 97 98 99 100 101 102 104 105 106 107 108 110 112 113 114 115 117 118 120 121 123 144 145"},F:{"91":0.00666,"92":0.01331,"95":0.01997,"120":0.01997,"121":0.17308,"122":0.41273,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.00666,"114":0.03329,"130":0.00666,"134":0.01331,"137":0.01331,"138":0.01331,"139":0.01331,"140":1.23155,"141":4.83964,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 131 132 133 135 136 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.3 16.5 17.0 17.2 26.2","14.1":0.00666,"15.6":0.02663,"16.1":0.24631,"16.4":0.02663,"16.6":0.05326,"17.1":0.09986,"17.3":0.00666,"17.4":0.01331,"17.5":0.01997,"17.6":0.11983,"18.0":0.07323,"18.1":0.37945,"18.2":0.01331,"18.3":0.05991,"18.4":0.01331,"18.5-18.6":0.10651,"26.0":0.33951,"26.1":0.01331},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00065,"5.0-5.1":0,"6.0-6.1":0.0026,"7.0-7.1":0.00195,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00584,"10.0-10.2":0.00065,"10.3":0.01104,"11.0-11.2":0.1636,"11.3-11.4":0.0039,"12.0-12.1":0.0013,"12.2-12.5":0.03181,"13.0-13.1":0,"13.2":0.00325,"13.3":0.0013,"13.4-13.7":0.00519,"14.0-14.4":0.01104,"14.5-14.8":0.01169,"15.0-15.1":0.01104,"15.2-15.3":0.00844,"15.4":0.00974,"15.5":0.01104,"15.6-15.8":0.14412,"16.0":0.01948,"16.1":0.03636,"16.2":0.01883,"16.3":0.03376,"16.4":0.00844,"16.5":0.01493,"16.6-16.7":0.19282,"17.0":0.01363,"17.1":0.02077,"17.2":0.01493,"17.3":0.02207,"17.4":0.03895,"17.5":0.06687,"17.6-17.7":0.16879,"18.0":0.0383,"18.1":0.0792,"18.2":0.04285,"18.3":0.13763,"18.4":0.07076,"18.5-18.6":3.60831,"26.0":0.44601,"26.1":0.01623},P:{"21":0.03194,"22":0.06387,"23":0.01065,"24":0.03194,"25":0.01065,"26":0.03194,"27":0.03194,"28":2.72529,"29":0.33002,_:"4 20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","7.2-7.4":0.01065,"17.0":0.01065},I:{"0":0.01001,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.08023,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":1.3606},Q:{_:"14.9"},O:{"0":0.01672},H:{"0":0},L:{"0":24.73931}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BD.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BD.js deleted file mode 100644 index f237b50e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BD.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"72":0.00498,"115":0.38308,"125":0.00498,"127":0.00498,"128":0.00498,"133":0.00498,"134":0.00995,"135":0.00498,"136":0.00498,"137":0.00498,"138":0.00498,"139":0.02488,"140":0.04975,"141":0.00498,"142":0.0199,"143":0.94525,"144":1.03978,"145":0.02488,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 129 130 131 132 146 147 3.5 3.6"},D:{"39":0.00498,"40":0.00498,"41":0.00995,"42":0.00498,"43":0.00498,"44":0.00498,"45":0.00498,"46":0.00995,"47":0.00995,"48":0.00995,"49":0.00498,"50":0.00995,"51":0.00498,"52":0.00498,"53":0.00995,"54":0.00498,"55":0.00995,"56":0.00995,"57":0.00498,"58":0.00498,"59":0.00995,"60":0.00995,"66":0.00498,"69":0.00498,"71":0.00498,"73":0.01493,"74":0.00498,"75":0.01493,"76":0.00498,"78":0.00498,"79":0.00498,"80":0.00498,"83":0.00498,"86":0.00498,"87":0.00995,"91":0.00498,"93":0.00498,"94":0.00498,"98":0.00498,"102":0.00498,"103":0.02985,"104":0.14428,"106":0.00498,"108":0.00498,"109":0.81093,"112":11.87533,"113":0.00498,"114":0.00995,"115":0.00498,"116":0.00995,"118":0.00498,"119":0.0199,"120":0.00995,"121":0.00498,"122":0.02985,"123":0.00498,"124":0.0199,"125":8.12418,"126":0.5572,"127":0.0199,"128":0.01493,"129":0.00995,"130":0.0597,"131":0.08955,"132":0.0398,"133":0.03483,"134":0.12438,"135":0.04478,"136":0.06468,"137":0.0398,"138":0.14925,"139":0.58705,"140":3.59693,"141":11.6813,"142":0.1592,"143":0.01493,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 68 70 72 77 81 84 85 88 89 90 92 95 96 97 99 100 101 105 107 110 111 117 144 145"},F:{"90":0.00498,"91":0.0199,"92":0.02985,"95":0.00995,"114":0.00498,"120":0.03483,"121":0.00995,"122":0.32338,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00498,"92":0.00995,"109":0.00498,"114":0.12935,"131":0.01493,"132":0.00995,"133":0.00498,"134":0.00498,"135":0.00498,"136":0.00498,"137":0.00498,"138":0.00995,"139":0.00995,"140":0.13433,"141":0.89053,"142":0.00498,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.4 17.0 17.2 17.3 18.1 18.2 26.2","15.6":0.00498,"16.3":0.00498,"16.5":0.00498,"16.6":0.0199,"17.1":0.00498,"17.4":0.00498,"17.5":0.00498,"17.6":0.0199,"18.0":0.00498,"18.3":0.00498,"18.4":0.00498,"18.5-18.6":0.01493,"26.0":0.06965,"26.1":0.00498},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00017,"5.0-5.1":0,"6.0-6.1":0.0007,"7.0-7.1":0.00052,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00157,"10.0-10.2":0.00017,"10.3":0.00296,"11.0-11.2":0.04393,"11.3-11.4":0.00105,"12.0-12.1":0.00035,"12.2-12.5":0.00854,"13.0-13.1":0,"13.2":0.00087,"13.3":0.00035,"13.4-13.7":0.00139,"14.0-14.4":0.00296,"14.5-14.8":0.00314,"15.0-15.1":0.00296,"15.2-15.3":0.00227,"15.4":0.00261,"15.5":0.00296,"15.6-15.8":0.0387,"16.0":0.00523,"16.1":0.00976,"16.2":0.00506,"16.3":0.00907,"16.4":0.00227,"16.5":0.00401,"16.6-16.7":0.05178,"17.0":0.00366,"17.1":0.00558,"17.2":0.00401,"17.3":0.00593,"17.4":0.01046,"17.5":0.01796,"17.6-17.7":0.04533,"18.0":0.01029,"18.1":0.02127,"18.2":0.01151,"18.3":0.03696,"18.4":0.019,"18.5-18.6":0.96894,"26.0":0.11977,"26.1":0.00436},P:{"4":0.04413,"23":0.01103,"25":0.01103,"26":0.02207,"27":0.02207,"28":0.38616,"29":0.0331,_:"20 21 22 24 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","7.2-7.4":0.02207,"17.0":0.01103},I:{"0":0.03512,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":1.22112,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.05344,"9":0.00594,"10":0.00594,"11":0.11876,_:"6 7 5.5"},S:{"2.5":0.01507,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.10048},Q:{"14.9":0.00502},O:{"0":0.71843},H:{"0":0.06},L:{"0":51.37228}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BE.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BE.js deleted file mode 100644 index d668041d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BE.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"48":0.00526,"52":0.00526,"60":0.00526,"78":0.01579,"102":0.01053,"110":0.00526,"113":0.00526,"115":0.22635,"122":0.00526,"123":0.00526,"125":0.00526,"128":0.02632,"130":0.00526,"132":0.01053,"134":0.00526,"135":0.00526,"136":0.01053,"137":0.01053,"138":0.00526,"139":0.01053,"140":0.12107,"141":0.01579,"142":0.08422,"143":1.40022,"144":1.316,"145":0.01053,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 111 112 114 116 117 118 119 120 121 124 126 127 129 131 133 146 147 3.5 3.6"},D:{"34":0.00526,"39":0.01053,"40":0.01053,"41":0.01053,"42":0.01053,"43":0.01053,"44":0.01053,"45":0.01053,"46":0.01053,"47":0.01053,"48":0.01053,"49":0.02106,"50":0.01053,"51":0.01053,"52":0.01053,"53":0.01053,"54":0.01053,"55":0.01053,"56":0.01053,"57":0.01053,"58":0.01053,"59":0.01053,"60":0.01053,"65":0.00526,"70":2.40038,"74":0.01053,"79":0.01053,"80":0.01053,"87":0.02106,"90":0.00526,"96":0.01053,"98":0.00526,"100":0.00526,"101":0.00526,"103":0.04211,"104":0.01053,"106":0.00526,"108":0.01053,"109":0.42112,"110":0.00526,"111":0.00526,"112":0.00526,"113":0.00526,"114":0.02106,"115":0.00526,"116":0.11054,"117":0.00526,"118":0.00526,"119":0.01053,"120":0.02106,"121":0.01053,"122":0.08949,"123":0.02632,"124":0.01579,"125":0.88435,"126":0.11054,"127":0.06843,"128":0.11581,"129":0.03685,"130":0.1316,"131":0.0737,"132":0.0579,"133":0.0737,"134":0.04738,"135":0.05264,"136":0.07896,"137":0.15792,"138":0.31584,"139":0.66326,"140":7.33275,"141":15.4709,"142":0.17898,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 61 62 63 64 66 67 68 69 71 72 73 75 76 77 78 81 83 84 85 86 88 89 91 92 93 94 95 97 99 102 105 107 143 144 145"},F:{"46":0.01053,"91":0.01053,"92":0.02106,"95":0.01053,"114":0.00526,"120":0.13686,"121":0.15792,"122":1.32653,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00526,"108":0.00526,"109":0.03685,"114":0.00526,"120":0.01053,"122":0.00526,"124":0.00526,"125":0.00526,"126":0.00526,"128":0.01053,"129":0.00526,"130":0.00526,"131":0.01053,"132":0.04738,"133":0.00526,"134":0.01053,"135":0.01579,"136":0.01579,"137":0.01579,"138":0.03685,"139":0.05264,"140":1.46339,"141":6.64843,"142":0.01053,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 111 112 113 115 116 117 118 119 121 123 127"},E:{"14":0.01053,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 26.2","12.1":0.01579,"13.1":0.03158,"14.1":0.03685,"15.2-15.3":0.00526,"15.4":0.01579,"15.5":0.01579,"15.6":0.25267,"16.0":0.02632,"16.1":0.03158,"16.2":0.02106,"16.3":0.04211,"16.4":0.01579,"16.5":0.02632,"16.6":0.32637,"17.0":0.01053,"17.1":0.25267,"17.2":0.04738,"17.3":0.03158,"17.4":0.0737,"17.5":0.10002,"17.6":0.40006,"18.0":0.04211,"18.1":0.0737,"18.2":0.03685,"18.3":0.12107,"18.4":0.10528,"18.5-18.6":0.31584,"26.0":0.93699,"26.1":0.02632},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00178,"5.0-5.1":0,"6.0-6.1":0.00714,"7.0-7.1":0.00535,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01606,"10.0-10.2":0.00178,"10.3":0.03034,"11.0-11.2":0.44982,"11.3-11.4":0.01071,"12.0-12.1":0.00357,"12.2-12.5":0.08746,"13.0-13.1":0,"13.2":0.00892,"13.3":0.00357,"13.4-13.7":0.01428,"14.0-14.4":0.03034,"14.5-14.8":0.03213,"15.0-15.1":0.03034,"15.2-15.3":0.0232,"15.4":0.02677,"15.5":0.03034,"15.6-15.8":0.39627,"16.0":0.05355,"16.1":0.09996,"16.2":0.05176,"16.3":0.09282,"16.4":0.0232,"16.5":0.04105,"16.6-16.7":0.53014,"17.0":0.03748,"17.1":0.05712,"17.2":0.04105,"17.3":0.06069,"17.4":0.1071,"17.5":0.18385,"17.6-17.7":0.4641,"18.0":0.10531,"18.1":0.21777,"18.2":0.11781,"18.3":0.37842,"18.4":0.19456,"18.5-18.6":9.92102,"26.0":1.22629,"26.1":0.04462},P:{"4":0.01058,"21":0.01058,"22":0.01058,"23":0.01058,"24":0.01058,"25":0.01058,"26":0.04232,"27":0.04232,"28":2.88837,"29":0.24334,_:"20 5.0-5.4 6.2-6.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01058,"9.2":0.01058},I:{"0":0.05202,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.16576,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.05264,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.35994},Q:{_:"14.9"},O:{"0":0.01894},H:{"0":0},L:{"0":27.43917}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BF.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BF.js deleted file mode 100644 index 8bba15da..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BF.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"42":0.00322,"43":0.00322,"45":0.00322,"47":0.00965,"56":0.00322,"59":0.00322,"70":0.00322,"72":0.00965,"75":0.00322,"78":0.00322,"86":0.00322,"92":0.00322,"99":0.00322,"102":0.01287,"108":0.00322,"115":0.10616,"127":0.02252,"128":0.00322,"134":0.00965,"136":0.00322,"138":0.09329,"139":0.00322,"140":0.04826,"141":0.02574,"142":0.0386,"143":0.82677,"144":0.85251,"145":0.00643,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 44 46 48 49 50 51 52 53 54 55 57 58 60 61 62 63 64 65 66 67 68 69 71 73 74 76 77 79 80 81 82 83 84 85 87 88 89 90 91 93 94 95 96 97 98 100 101 103 104 105 106 107 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 133 135 137 146 147 3.5 3.6"},D:{"11":0.00322,"38":0.00322,"39":0.00965,"40":0.01287,"41":0.00965,"42":0.00965,"43":0.00965,"44":0.00965,"45":0.00643,"46":0.00965,"47":0.00965,"48":0.00965,"49":0.00965,"50":0.01287,"51":0.01287,"52":0.01287,"53":0.00965,"54":0.00965,"55":0.01287,"56":0.00965,"57":0.01609,"58":0.01287,"59":0.00965,"60":0.01287,"61":0.00322,"65":0.00322,"66":0.00322,"69":0.00322,"70":0.00643,"71":0.00322,"72":0.00322,"73":0.00643,"74":0.00643,"75":0.02252,"79":0.01609,"80":0.00965,"81":0.00322,"83":0.02895,"84":0.00322,"85":0.00322,"86":0.00965,"87":0.08686,"88":0.00322,"89":0.00643,"90":0.00322,"93":0.01287,"94":0.00965,"97":0.00322,"98":0.03217,"99":0.00322,"101":0.00322,"103":0.01609,"104":0.00322,"105":0.00322,"106":0.00322,"108":0.00322,"109":0.6048,"110":0.00322,"111":0.00643,"112":0.00322,"113":0.00322,"114":0.02574,"115":0.00965,"116":0.00643,"118":0.00322,"119":0.03217,"120":0.01287,"121":0.00322,"122":0.0386,"123":0.00322,"124":0.00643,"125":5.78417,"126":0.07721,"127":0.01287,"128":0.02574,"129":0.00643,"130":0.01609,"131":0.01609,"132":0.00965,"133":0.01287,"134":0.02895,"135":0.05469,"136":0.03539,"137":0.0386,"138":0.18015,"139":0.17694,"140":1.78544,"141":4.75794,"142":0.07077,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 62 63 64 67 68 76 77 78 91 92 95 96 100 102 107 117 143 144 145"},F:{"28":0.00322,"48":0.00643,"79":0.00322,"89":0.00322,"91":0.01287,"92":0.06112,"95":0.02574,"117":0.00322,"119":0.00322,"120":0.14798,"121":0.01287,"122":1.33184,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00322,"15":0.00322,"17":0.00322,"18":0.01609,"84":0.00643,"85":0.00322,"89":0.00322,"90":0.00643,"92":0.05469,"100":0.00322,"109":0.00965,"114":0.17372,"116":0.00322,"122":0.00965,"129":0.00322,"131":0.00322,"132":0.00322,"134":0.00322,"135":0.00322,"136":0.00965,"137":0.0193,"138":0.02252,"139":0.02574,"140":0.70774,"141":3.0079,"142":0.01287,_:"13 14 16 79 80 81 83 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 117 118 119 120 121 123 124 125 126 127 128 130 133"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.4 17.0 17.1 17.2 17.3 17.4 17.5 18.0 18.2 18.3 26.1 26.2","5.1":0.00322,"13.1":0.0193,"14.1":0.00643,"15.6":0.05791,"16.3":0.00322,"16.5":0.06112,"16.6":0.03217,"17.6":0.06112,"18.1":0.00322,"18.4":0.01287,"18.5-18.6":0.00643,"26.0":0.13833},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00041,"5.0-5.1":0,"6.0-6.1":0.00163,"7.0-7.1":0.00123,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00368,"10.0-10.2":0.00041,"10.3":0.00694,"11.0-11.2":0.1029,"11.3-11.4":0.00245,"12.0-12.1":0.00082,"12.2-12.5":0.02001,"13.0-13.1":0,"13.2":0.00204,"13.3":0.00082,"13.4-13.7":0.00327,"14.0-14.4":0.00694,"14.5-14.8":0.00735,"15.0-15.1":0.00694,"15.2-15.3":0.00531,"15.4":0.00613,"15.5":0.00694,"15.6-15.8":0.09065,"16.0":0.01225,"16.1":0.02287,"16.2":0.01184,"16.3":0.02123,"16.4":0.00531,"16.5":0.00939,"16.6-16.7":0.12128,"17.0":0.00858,"17.1":0.01307,"17.2":0.00939,"17.3":0.01388,"17.4":0.0245,"17.5":0.04206,"17.6-17.7":0.10617,"18.0":0.02409,"18.1":0.04982,"18.2":0.02695,"18.3":0.08657,"18.4":0.04451,"18.5-18.6":2.26953,"26.0":0.28053,"26.1":0.01021},P:{"4":0.02117,"25":0.01059,"26":0.01059,"27":0.04234,"28":0.57162,"29":0.02117,_:"20 21 22 23 24 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.02117},I:{"0":0.18966,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00009},K:{"0":1.64854,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00322,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.11531},Q:{"14.9":0.00678},O:{"0":0.05426},H:{"0":0.21},L:{"0":69.25456}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BG.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BG.js deleted file mode 100644 index 8dafd1b4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BG.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.04364,"78":0.00397,"80":0.00397,"84":0.04364,"88":0.00397,"89":0.0119,"100":0.00397,"102":0.00397,"107":0.00397,"109":0.00397,"113":0.00397,"115":0.50778,"124":0.00793,"125":0.0238,"127":0.00793,"128":0.03967,"130":0.00397,"131":0.00397,"132":0.00397,"133":0.00397,"134":0.00793,"135":0.0119,"136":0.03174,"137":0.01587,"138":0.00793,"139":0.01587,"140":0.11108,"141":0.01587,"142":0.07537,"143":1.38052,"144":1.26547,"145":0.00397,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 81 82 83 85 86 87 90 91 92 93 94 95 96 97 98 99 101 103 104 105 106 108 110 111 112 114 116 117 118 119 120 121 122 123 126 129 146 147 3.5 3.6"},D:{"32":0.0238,"38":0.00397,"39":0.00793,"40":0.00793,"41":0.06744,"42":0.00793,"43":0.00793,"44":0.00793,"45":0.00793,"46":0.00793,"47":0.00793,"48":0.00793,"49":0.01984,"50":0.00793,"51":0.00793,"52":0.00793,"53":0.00793,"54":0.00793,"55":0.00793,"56":0.00793,"57":0.00793,"58":0.00793,"59":0.00793,"60":0.00793,"71":0.00397,"73":0.00397,"74":0.00397,"76":0.00397,"79":0.08727,"80":0.00397,"81":0.00397,"83":0.00793,"85":0.00397,"86":0.00397,"87":0.07141,"88":0.00397,"91":0.00793,"94":0.00397,"97":0.00397,"98":2.54681,"99":0.00397,"100":0.00793,"102":0.00793,"103":0.0119,"104":0.05951,"106":0.00397,"108":0.06744,"109":1.64234,"110":0.00397,"111":0.0476,"112":0.46017,"113":0.00397,"114":0.0238,"115":0.00397,"116":0.01984,"117":0.00397,"118":0.00793,"119":0.00793,"120":0.03174,"121":0.02777,"122":0.03967,"123":0.0119,"124":0.05951,"125":0.42447,"126":0.05157,"127":0.01984,"128":0.05951,"129":0.00793,"130":0.01587,"131":0.0476,"132":0.03967,"133":0.01984,"134":0.0357,"135":0.04364,"136":0.0476,"137":0.05951,"138":0.17058,"139":0.27769,"140":5.169,"141":13.65838,"142":0.10711,"143":0.00397,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 33 34 35 36 37 61 62 63 64 65 66 67 68 69 70 72 75 77 78 84 89 90 92 93 95 96 101 105 107 144 145"},F:{"46":0.01984,"85":0.01587,"86":0.00397,"89":0.00397,"90":0.00397,"91":0.01587,"92":0.01984,"95":0.04364,"108":0.00397,"119":0.00397,"120":0.14678,"121":0.07141,"122":0.7339,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 87 88 93 94 96 97 98 99 100 101 102 103 104 105 106 107 109 110 111 112 113 114 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00397,"109":0.05157,"110":0.00397,"114":0.01587,"119":0.00397,"124":0.00397,"129":0.00397,"130":0.00397,"131":0.00397,"132":0.00397,"133":0.00397,"134":0.0119,"135":0.00793,"136":0.00793,"137":0.00397,"138":0.01587,"139":0.0238,"140":0.54348,"141":2.44764,"142":0.00397,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 111 112 113 115 116 117 118 120 121 122 123 125 126 127 128"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.4 17.0 26.2","13.1":0.00793,"14.1":0.0119,"15.6":0.0238,"16.1":0.00397,"16.2":0.00397,"16.3":0.00397,"16.5":0.00397,"16.6":0.04364,"17.1":0.02777,"17.2":0.00397,"17.3":0.00397,"17.4":0.00793,"17.5":0.0119,"17.6":0.05157,"18.0":0.00397,"18.1":0.00793,"18.2":0.00397,"18.3":0.0119,"18.4":0.00793,"18.5-18.6":0.04364,"26.0":0.14281,"26.1":0.00397},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00099,"5.0-5.1":0,"6.0-6.1":0.00396,"7.0-7.1":0.00297,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0089,"10.0-10.2":0.00099,"10.3":0.01681,"11.0-11.2":0.24918,"11.3-11.4":0.00593,"12.0-12.1":0.00198,"12.2-12.5":0.04845,"13.0-13.1":0,"13.2":0.00494,"13.3":0.00198,"13.4-13.7":0.00791,"14.0-14.4":0.01681,"14.5-14.8":0.0178,"15.0-15.1":0.01681,"15.2-15.3":0.01285,"15.4":0.01483,"15.5":0.01681,"15.6-15.8":0.21952,"16.0":0.02966,"16.1":0.05537,"16.2":0.02868,"16.3":0.05142,"16.4":0.01285,"16.5":0.02274,"16.6-16.7":0.29368,"17.0":0.02076,"17.1":0.03164,"17.2":0.02274,"17.3":0.03362,"17.4":0.05933,"17.5":0.10185,"17.6-17.7":0.25709,"18.0":0.05834,"18.1":0.12063,"18.2":0.06526,"18.3":0.20963,"18.4":0.10778,"18.5-18.6":5.4958,"26.0":0.67931,"26.1":0.02472},P:{"4":0.14373,"20":0.01027,"21":0.01027,"22":0.02053,"23":0.04107,"24":0.05133,"25":0.04107,"26":0.05133,"27":0.11293,"28":2.82326,"29":0.19506,"5.0-5.4":0.02053,_:"6.2-6.4 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.0616,"8.2":0.01027,"17.0":0.01027,"19.0":0.01027},I:{"0":0.07229,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.27752,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01984,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.23529},Q:{_:"14.9"},O:{"0":0.0181},H:{"0":0},L:{"0":50.45492}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BH.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BH.js deleted file mode 100644 index 81345de5..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BH.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.01438,"117":0.00359,"127":0.00359,"135":0.00359,"140":0.00359,"142":0.01078,"143":0.27314,"144":0.22283,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 118 119 120 121 122 123 124 125 126 128 129 130 131 132 133 134 136 137 138 139 141 145 146 147 3.5 3.6"},D:{"39":0.00359,"40":0.00359,"41":0.00359,"42":0.00359,"43":0.00359,"44":0.00359,"45":0.00359,"46":0.00359,"47":0.00719,"48":0.00359,"49":0.00359,"50":0.00359,"51":0.00359,"52":0.00719,"53":0.00359,"54":0.00359,"55":0.00359,"56":0.00359,"57":0.00359,"58":0.00359,"59":0.00359,"60":0.00359,"64":0.01438,"65":0.01797,"68":0.00359,"75":0.00359,"79":0.0611,"86":0.00719,"87":0.01078,"91":0.00719,"92":0.00719,"93":0.00359,"94":0.03953,"95":0.00719,"98":0.01438,"103":0.13298,"105":0.00359,"108":0.01797,"109":0.26955,"110":0.00719,"111":0.02516,"112":6.22481,"114":0.01078,"116":0.02156,"118":0.00359,"119":0.01078,"120":0.01797,"121":0.00719,"122":0.03594,"123":0.00719,"124":0.00359,"125":3.37477,"126":0.50675,"127":0.04313,"128":0.06469,"129":0.02516,"130":0.01438,"131":0.0611,"132":0.06469,"133":0.01797,"134":0.02156,"135":0.01797,"136":0.03953,"137":0.03953,"138":0.39534,"139":0.58942,"140":3.85277,"141":8.33808,"142":0.0611,"143":0.00359,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 66 67 69 70 71 72 73 74 76 77 78 80 81 83 84 85 88 89 90 96 97 99 100 101 102 104 106 107 113 115 117 144 145"},F:{"80":0.00719,"82":0.00359,"85":0.00719,"90":0.00719,"91":0.05391,"92":0.09704,"114":0.00359,"120":0.01078,"121":0.0611,"122":0.42769,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 81 83 84 86 87 88 89 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00719,"114":0.07188,"124":0.00359,"126":0.00359,"128":0.00359,"130":0.00719,"131":0.00359,"134":0.01078,"135":0.00359,"136":0.00719,"137":0.00359,"138":0.01078,"139":0.01078,"140":0.47081,"141":2.18875,"142":0.00359,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 120 121 122 123 125 127 129 132 133"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 16.0 16.4 17.0 26.2","13.1":0.00719,"14.1":0.00719,"15.4":0.00359,"15.5":0.00359,"15.6":0.03235,"16.1":0.00719,"16.2":0.00359,"16.3":0.02516,"16.5":0.01438,"16.6":0.04313,"17.1":0.05032,"17.2":0.00359,"17.3":0.00719,"17.4":0.01078,"17.5":0.03953,"17.6":0.05032,"18.0":0.00719,"18.1":0.01438,"18.2":0.01078,"18.3":0.03594,"18.4":0.01438,"18.5-18.6":0.11501,"26.0":0.24439,"26.1":0.00359},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00263,"5.0-5.1":0,"6.0-6.1":0.01053,"7.0-7.1":0.0079,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0237,"10.0-10.2":0.00263,"10.3":0.04476,"11.0-11.2":0.66348,"11.3-11.4":0.0158,"12.0-12.1":0.00527,"12.2-12.5":0.12901,"13.0-13.1":0,"13.2":0.01316,"13.3":0.00527,"13.4-13.7":0.02106,"14.0-14.4":0.04476,"14.5-14.8":0.04739,"15.0-15.1":0.04476,"15.2-15.3":0.03423,"15.4":0.03949,"15.5":0.04476,"15.6-15.8":0.5845,"16.0":0.07899,"16.1":0.14744,"16.2":0.07635,"16.3":0.13691,"16.4":0.03423,"16.5":0.06056,"16.6-16.7":0.78196,"17.0":0.05529,"17.1":0.08425,"17.2":0.06056,"17.3":0.08952,"17.4":0.15797,"17.5":0.27119,"17.6-17.7":0.68455,"18.0":0.15534,"18.1":0.32121,"18.2":0.17377,"18.3":0.55817,"18.4":0.28698,"18.5-18.6":14.63347,"26.0":1.80878,"26.1":0.06582},P:{"4":0.02058,"24":0.01029,"25":0.08231,"26":0.06173,"27":0.14404,"28":2.80874,"29":0.22635,_:"20 21 22 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.04115},I:{"0":0.01919,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.51889,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00359,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.44842},Q:{_:"14.9"},O:{"0":0.64701},H:{"0":0},L:{"0":38.20694}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BI.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BI.js deleted file mode 100644 index 17a7a4dc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BI.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"50":0.01232,"56":0.00411,"59":0.00821,"65":0.02464,"69":0.02053,"72":0.03695,"81":0.00411,"82":0.01232,"95":0.00411,"102":0.00411,"114":0.00821,"115":0.09033,"116":0.04106,"127":0.05338,"128":0.01232,"130":0.01232,"134":0.02464,"136":0.47219,"138":0.00411,"139":0.00411,"140":0.09854,"141":0.12729,"142":0.08623,"143":0.74729,"144":1.0265,"145":0.00411,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 53 54 55 57 58 60 61 62 63 64 66 67 68 70 71 73 74 75 76 77 78 79 80 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 117 118 119 120 121 122 123 124 125 126 129 131 132 133 135 137 146 147 3.5 3.6"},D:{"26":0.00411,"41":0.00411,"43":0.00411,"44":0.00411,"46":0.01232,"48":0.00411,"49":0.00821,"50":0.02053,"54":0.00411,"56":0.00411,"60":0.00411,"63":0.00821,"64":0.01232,"67":0.00821,"70":0.01642,"74":0.02053,"76":0.02053,"78":0.00821,"79":0.03695,"80":0.07801,"81":0.02053,"85":0.01232,"86":0.03285,"87":0.01642,"89":0.00411,"92":0.00411,"93":0.02874,"94":0.2751,"97":0.02053,"99":0.00411,"100":0.00821,"103":0.04927,"105":0.03285,"106":0.00821,"108":0.00411,"109":0.91974,"112":0.03285,"113":0.02053,"114":0.03285,"116":0.05338,"119":0.02053,"121":0.02464,"122":0.01232,"123":0.02053,"124":0.20941,"125":0.30795,"126":0.01232,"127":0.01232,"128":0.04517,"129":0.03285,"130":0.01232,"131":0.08212,"132":0.03695,"133":0.08212,"134":0.02464,"135":0.09444,"136":0.08212,"137":0.24636,"138":0.60358,"139":0.83352,"140":4.38521,"141":7.83014,"142":0.13139,"143":0.00411,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 45 47 51 52 53 55 57 58 59 61 62 65 66 68 69 71 72 73 75 77 83 84 88 90 91 95 96 98 101 102 104 107 110 111 115 117 118 120 144 145"},F:{"21":0.00411,"36":0.00821,"50":0.00411,"79":0.01642,"87":0.00821,"91":0.02053,"92":0.02053,"106":0.00411,"113":0.00821,"117":0.00411,"119":0.00821,"120":0.271,"121":0.02874,"122":1.43299,_:"9 11 12 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 88 89 90 93 94 95 96 97 98 99 100 101 102 103 104 105 107 108 109 110 111 112 114 115 116 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00411,"14":0.00411,"16":0.01642,"17":0.02053,"18":0.05748,"90":0.03695,"92":0.09854,"100":0.02874,"107":0.00411,"109":0.08623,"114":0.03285,"121":0.00411,"122":0.03285,"127":0.01232,"128":0.00411,"129":0.00411,"130":0.00821,"131":0.00821,"132":0.01642,"133":0.02874,"134":0.00411,"135":0.00411,"136":0.05748,"137":0.00821,"138":0.02053,"139":0.09854,"140":0.64054,"141":3.0097,"142":0.00411,_:"13 15 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 110 111 112 113 115 116 117 118 119 120 123 124 125 126"},E:{"14":0.01232,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.4 16.5 17.0 17.1 17.3 17.4 18.2 18.3 26.1 26.2","5.1":0.00411,"11.1":0.00821,"13.1":0.02464,"14.1":0.01232,"15.6":0.07801,"16.1":0.00821,"16.3":0.00821,"16.6":0.06159,"17.2":0.00411,"17.5":0.04517,"17.6":0.01232,"18.0":0.02874,"18.1":0.01232,"18.4":0.42292,"18.5-18.6":0.02464,"26.0":0.31206},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00051,"5.0-5.1":0,"6.0-6.1":0.00202,"7.0-7.1":0.00152,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00455,"10.0-10.2":0.00051,"10.3":0.0086,"11.0-11.2":0.12746,"11.3-11.4":0.00303,"12.0-12.1":0.00101,"12.2-12.5":0.02478,"13.0-13.1":0,"13.2":0.00253,"13.3":0.00101,"13.4-13.7":0.00405,"14.0-14.4":0.0086,"14.5-14.8":0.0091,"15.0-15.1":0.0086,"15.2-15.3":0.00658,"15.4":0.00759,"15.5":0.0086,"15.6-15.8":0.11229,"16.0":0.01517,"16.1":0.02832,"16.2":0.01467,"16.3":0.0263,"16.4":0.00658,"16.5":0.01163,"16.6-16.7":0.15022,"17.0":0.01062,"17.1":0.01619,"17.2":0.01163,"17.3":0.0172,"17.4":0.03035,"17.5":0.0521,"17.6-17.7":0.13151,"18.0":0.02984,"18.1":0.06171,"18.2":0.03338,"18.3":0.10723,"18.4":0.05513,"18.5-18.6":2.81119,"26.0":0.34748,"26.1":0.01264},P:{"4":0.02027,"21":0.13177,"22":0.02027,"23":0.01014,"24":0.13177,"25":0.02027,"26":0.04054,"27":0.09122,"28":0.68925,"29":0.04054,_:"20 5.0-5.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 18.0","6.2-6.4":0.01014,"7.2-7.4":0.15204,"11.1-11.2":0.02027,"17.0":0.01014,"19.0":0.02027},I:{"0":0.04709,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":3.73004,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01232,_:"6 7 8 9 10 5.5"},S:{"2.5":0.10022,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.33602},Q:{"14.9":0.10611},O:{"0":0.1238},H:{"0":1.77},L:{"0":58.70746}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BJ.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BJ.js deleted file mode 100644 index 297aba79..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BJ.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"43":0.00361,"46":0.00361,"49":0.00361,"50":0.00361,"52":0.00361,"57":0.00361,"61":0.00361,"66":0.00361,"67":0.00361,"72":0.01083,"75":0.00361,"76":0.00361,"80":0.00361,"89":0.00361,"103":0.00361,"106":0.00361,"107":0.01806,"110":0.01444,"112":0.00361,"114":0.00361,"115":0.14805,"117":0.00361,"121":0.00361,"127":0.02889,"128":0.00722,"130":0.00361,"135":0.00361,"136":0.02528,"137":0.00361,"140":0.04333,"141":0.00722,"142":0.065,"143":0.88108,"144":0.69331,"145":0.00361,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 47 48 51 53 54 55 56 58 59 60 62 63 64 65 68 69 70 71 73 74 77 78 79 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 108 109 111 113 116 118 119 120 122 123 124 125 126 129 131 132 133 134 138 139 146 147 3.5 3.6"},D:{"40":0.00361,"41":0.00722,"42":0.00722,"43":0.00361,"44":0.01083,"45":0.00722,"46":0.00722,"47":0.01083,"48":0.00722,"49":0.02167,"50":0.00361,"51":0.00361,"52":0.00361,"53":0.00722,"54":0.00361,"55":0.00361,"56":0.00361,"57":0.01444,"58":0.00361,"59":0.00361,"60":0.00722,"62":0.00361,"63":0.00361,"67":0.00361,"68":0.00361,"70":0.01083,"71":0.00722,"72":0.00722,"73":0.01806,"74":0.10111,"75":0.01083,"76":0.02167,"77":0.00722,"78":0.02167,"79":0.01444,"80":0.00361,"81":0.00722,"83":0.01806,"84":0.00361,"85":0.01083,"86":0.01444,"87":0.01444,"88":0.00361,"89":0.00361,"90":0.00361,"91":0.00722,"92":0.00361,"93":0.00361,"94":0.01444,"95":0.00722,"96":0.00361,"97":0.00361,"98":0.00361,"99":0.00722,"101":0.00361,"102":0.00361,"103":0.065,"104":0.01806,"105":0.00722,"106":0.00361,"107":0.00361,"108":0.01083,"109":0.70053,"111":0.01806,"112":0.00361,"113":0.00361,"114":0.02167,"116":0.01806,"117":0.01083,"118":0.00361,"119":0.01806,"120":0.00722,"121":0.00722,"122":0.0325,"123":0.01806,"124":0.00722,"125":0.68609,"126":0.0325,"127":0.01806,"128":0.0975,"129":0.00361,"130":0.02528,"131":0.05055,"132":0.02889,"133":0.04333,"134":0.06139,"135":0.05417,"136":0.08666,"137":0.09389,"138":0.37554,"139":0.37193,"140":3.47739,"141":9.60887,"142":0.13361,"143":0.02528,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 61 64 65 66 69 100 110 115 144 145"},F:{"37":0.00722,"64":0.00361,"77":0.00361,"79":0.01444,"85":0.00361,"87":0.00361,"89":0.00722,"90":0.02889,"91":0.18055,"92":0.02528,"95":0.11555,"113":0.00361,"117":0.00361,"118":0.00361,"119":0.00361,"120":0.25999,"121":0.02889,"122":1.17358,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 65 66 67 68 69 70 71 72 73 74 75 76 78 80 81 82 83 84 86 88 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01444,"14":0.00361,"15":0.00361,"17":0.00361,"18":0.02167,"84":0.01083,"85":0.00722,"89":0.00361,"90":0.01083,"92":0.07583,"100":0.00361,"107":0.01806,"109":0.00722,"110":0.00361,"114":0.11194,"122":0.01444,"125":0.00361,"126":0.00361,"129":0.00722,"130":0.00361,"131":0.00722,"132":0.00361,"133":0.05417,"134":0.00361,"135":0.00722,"136":0.01083,"137":0.00722,"138":0.03611,"139":0.0325,"140":0.79803,"141":2.77325,"142":0.00722,_:"13 16 79 80 81 83 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 111 112 113 115 116 117 118 119 120 121 123 124 127 128"},E:{"11":0.00361,"13":0.02167,_:"0 4 5 6 7 8 9 10 12 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.4 16.0 18.2 26.1 26.2","5.1":0.00361,"13.1":0.00722,"14.1":0.02528,"15.1":0.00361,"15.2-15.3":0.00722,"15.5":0.01444,"15.6":0.03972,"16.1":0.00361,"16.2":0.00361,"16.3":0.01444,"16.4":0.01806,"16.5":0.00722,"16.6":0.19499,"17.0":0.01083,"17.1":0.06861,"17.2":0.00361,"17.3":0.00361,"17.4":0.00722,"17.5":0.03972,"17.6":0.15888,"18.0":0.00361,"18.1":0.03611,"18.3":0.01806,"18.4":0.00722,"18.5-18.6":0.04333,"26.0":0.21666},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0008,"5.0-5.1":0,"6.0-6.1":0.0032,"7.0-7.1":0.0024,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0072,"10.0-10.2":0.0008,"10.3":0.01361,"11.0-11.2":0.20174,"11.3-11.4":0.0048,"12.0-12.1":0.0016,"12.2-12.5":0.03923,"13.0-13.1":0,"13.2":0.004,"13.3":0.0016,"13.4-13.7":0.0064,"14.0-14.4":0.01361,"14.5-14.8":0.01441,"15.0-15.1":0.01361,"15.2-15.3":0.01041,"15.4":0.01201,"15.5":0.01361,"15.6-15.8":0.17772,"16.0":0.02402,"16.1":0.04483,"16.2":0.02322,"16.3":0.04163,"16.4":0.01041,"16.5":0.01841,"16.6-16.7":0.23776,"17.0":0.01681,"17.1":0.02562,"17.2":0.01841,"17.3":0.02722,"17.4":0.04803,"17.5":0.08246,"17.6-17.7":0.20814,"18.0":0.04723,"18.1":0.09767,"18.2":0.05284,"18.3":0.16971,"18.4":0.08726,"18.5-18.6":4.44941,"26.0":0.54997,"26.1":0.02001},P:{"4":0.1765,"22":0.01038,"23":0.03115,"24":0.02076,"25":0.01038,"26":0.01038,"27":0.05191,"28":0.48796,"29":0.02076,_:"20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01038},I:{"0":0.04466,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":3.91986,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.065,_:"6 7 8 9 10 5.5"},S:{"2.5":0.01278,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.12778},Q:{"14.9":0.02556},O:{"0":0.30667},H:{"0":4.06},L:{"0":55.43635}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BM.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BM.js deleted file mode 100644 index 003bf7ea..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BM.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"142":0.00278,"143":0.00556,"144":0.00556,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 145 146 147 3.5 3.6"},D:{"109":0.01667,"125":0.08056,"128":0.00278,"129":0.00833,"134":0.00278,"136":0.00278,"137":0.01111,"138":0.00278,"139":0.00833,"140":0.11945,"141":0.18613,"142":0.00278,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 126 127 130 131 132 133 135 143 144 145"},F:{"122":0.00556,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.00278,"140":0.02222,"141":0.10556,"142":0.00278,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 26.2","14.1":0.025,"15.1":0.01667,"15.2-15.3":0.00278,"15.4":0.01667,"15.5":0.07501,"15.6":0.70839,"16.0":0.01389,"16.1":0.08612,"16.2":0.1389,"16.3":0.31947,"16.4":0.08334,"16.5":0.1139,"16.6":1.57513,"17.0":0.025,"17.1":1.43345,"17.2":0.05278,"17.3":0.08056,"17.4":0.1639,"17.5":0.25835,"17.6":0.93063,"18.0":0.06389,"18.1":0.28613,"18.2":0.09445,"18.3":0.51671,"18.4":0.23613,"18.5-18.6":0.97508,"26.0":2.12517,"26.1":0.07778},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0072,"5.0-5.1":0,"6.0-6.1":0.02878,"7.0-7.1":0.02159,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.06476,"10.0-10.2":0.0072,"10.3":0.12232,"11.0-11.2":1.81314,"11.3-11.4":0.04317,"12.0-12.1":0.01439,"12.2-12.5":0.35256,"13.0-13.1":0,"13.2":0.03598,"13.3":0.01439,"13.4-13.7":0.05756,"14.0-14.4":0.12232,"14.5-14.8":0.12951,"15.0-15.1":0.12232,"15.2-15.3":0.09354,"15.4":0.10793,"15.5":0.12232,"15.6-15.8":1.59729,"16.0":0.21585,"16.1":0.40292,"16.2":0.20866,"16.3":0.37414,"16.4":0.09354,"16.5":0.16549,"16.6-16.7":2.13692,"17.0":0.1511,"17.1":0.23024,"17.2":0.16549,"17.3":0.24463,"17.4":0.4317,"17.5":0.74109,"17.6-17.7":1.8707,"18.0":0.42451,"18.1":0.87779,"18.2":0.47487,"18.3":1.52534,"18.4":0.78426,"18.5-18.6":39.98983,"26.0":4.94297,"26.1":0.17988},P:{"28":0.04333,_:"4 20 21 22 23 24 25 26 27 29 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.00722},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":0.23441}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BN.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BN.js deleted file mode 100644 index b974e238..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BN.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.15095,"135":0.00604,"136":0.00604,"141":0.00604,"142":0.04227,"143":0.44681,"144":0.48908,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 137 138 139 140 145 146 147 3.5 3.6"},D:{"34":0.01208,"39":0.01811,"40":0.01811,"41":0.01811,"42":0.01208,"43":0.02415,"44":0.01811,"45":0.01811,"46":0.01811,"47":0.02415,"48":0.01811,"49":0.01811,"50":0.01811,"51":0.01811,"52":0.01208,"53":0.01811,"54":0.01811,"55":0.02415,"56":0.01811,"57":0.01811,"58":0.01811,"59":0.01811,"60":0.01811,"69":0.00604,"70":0.01811,"79":0.01811,"81":0.01208,"83":0.00604,"87":0.01208,"91":0.00604,"92":0.01208,"93":0.00604,"94":0.01208,"98":0.00604,"103":0.02415,"108":0.00604,"109":0.62795,"111":0.03623,"112":11.56277,"114":0.00604,"116":0.03019,"117":0.00604,"119":0.01811,"120":0.01208,"121":0.01208,"122":0.09661,"123":0.01208,"124":0.01208,"125":14.29798,"126":0.47096,"127":0.01208,"128":0.0483,"129":0.00604,"130":0.04227,"131":0.06642,"132":0.02415,"133":0.04227,"134":0.01811,"135":0.02415,"136":0.02415,"137":0.05434,"138":0.24756,"139":0.26567,"140":4.10584,"141":14.27383,"142":0.13887,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 61 62 63 64 65 66 67 68 71 72 73 74 75 76 77 78 80 84 85 86 88 89 90 95 96 97 99 100 101 102 104 105 106 107 110 113 115 118 143 144 145"},F:{"90":0.00604,"91":0.03019,"92":0.06642,"95":0.01811,"118":0.00604,"120":0.04227,"121":0.07849,"122":0.8574,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.00604,"18":0.00604,"109":0.00604,"114":0.03019,"136":0.00604,"138":0.14491,"139":0.02415,"140":0.67022,"141":3.34505,_:"12 13 14 16 17 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 137 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.2-15.3 26.1 26.2","14.1":0.01208,"15.1":0.00604,"15.4":0.00604,"15.5":0.01208,"15.6":0.10868,"16.0":0.01208,"16.1":0.01208,"16.2":0.00604,"16.3":0.01811,"16.4":0.01208,"16.5":0.00604,"16.6":0.13284,"17.0":0.00604,"17.1":0.04227,"17.2":0.01811,"17.3":0.04227,"17.4":0.01811,"17.5":0.02415,"17.6":0.41058,"18.0":0.01811,"18.1":0.05434,"18.2":0.00604,"18.3":0.07246,"18.4":0.02415,"18.5-18.6":0.11472,"26.0":0.62795},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00106,"5.0-5.1":0,"6.0-6.1":0.00422,"7.0-7.1":0.00317,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0095,"10.0-10.2":0.00106,"10.3":0.01794,"11.0-11.2":0.26598,"11.3-11.4":0.00633,"12.0-12.1":0.00211,"12.2-12.5":0.05172,"13.0-13.1":0,"13.2":0.00528,"13.3":0.00211,"13.4-13.7":0.00844,"14.0-14.4":0.01794,"14.5-14.8":0.019,"15.0-15.1":0.01794,"15.2-15.3":0.01372,"15.4":0.01583,"15.5":0.01794,"15.6-15.8":0.23432,"16.0":0.03166,"16.1":0.05911,"16.2":0.03061,"16.3":0.05488,"16.4":0.01372,"16.5":0.02428,"16.6-16.7":0.31348,"17.0":0.02217,"17.1":0.03378,"17.2":0.02428,"17.3":0.03589,"17.4":0.06333,"17.5":0.10871,"17.6-17.7":0.27442,"18.0":0.06227,"18.1":0.12877,"18.2":0.06966,"18.3":0.22376,"18.4":0.11505,"18.5-18.6":5.86634,"26.0":0.72511,"26.1":0.02639},P:{"4":0.02111,"25":0.03167,"27":0.01056,"28":1.30896,"29":0.07389,_:"20 21 22 23 24 26 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 16.0 17.0 18.0 19.0","5.0-5.4":0.01056,"7.2-7.4":0.04222,"15.0":0.01056},I:{"0":0.00396,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":2.31777,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.10301},Q:{_:"14.9"},O:{"0":0.56657},H:{"0":0},L:{"0":27.48474}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BO.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BO.js deleted file mode 100644 index 0504494c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BO.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"47":0.00579,"48":0.00579,"52":0.01738,"61":0.03476,"68":0.00579,"78":0.00579,"105":0.00579,"113":0.01159,"115":0.29549,"125":0.01738,"127":0.00579,"128":0.01159,"133":0.00579,"136":0.01159,"138":0.00579,"139":0.01159,"140":0.03476,"141":0.00579,"142":0.01738,"143":0.94442,"144":0.99077,"145":0.00579,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 49 50 51 53 54 55 56 57 58 59 60 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 126 129 130 131 132 134 135 137 146 147 3.5 3.6"},D:{"39":0.01159,"40":0.01159,"41":0.01159,"42":0.01159,"43":0.01159,"44":0.01159,"45":0.01159,"46":0.01159,"47":0.01159,"48":0.01159,"49":0.01159,"50":0.01159,"51":0.01159,"52":0.01159,"53":0.01159,"54":0.01159,"55":0.01159,"56":0.00579,"57":0.01159,"58":0.01159,"59":0.01159,"60":0.01159,"69":0.00579,"70":0.00579,"75":0.01159,"78":0.00579,"79":0.06953,"83":0.00579,"84":0.01159,"85":0.00579,"87":0.04056,"92":0.00579,"93":0.00579,"96":0.00579,"97":0.01738,"98":0.00579,"99":0.00579,"100":0.00579,"101":0.00579,"103":0.02897,"105":0.02897,"106":0.00579,"107":0.00579,"108":0.02897,"109":1.49485,"110":0.00579,"111":0.01159,"112":6.07211,"113":0.00579,"114":0.06953,"116":0.04056,"117":0.00579,"118":0.00579,"119":0.01738,"120":0.02897,"121":0.01738,"122":0.08112,"123":0.01738,"124":0.04056,"125":5.13348,"126":0.64313,"127":0.02897,"128":0.04635,"129":0.01738,"130":0.03476,"131":0.08691,"132":0.05794,"133":0.02897,"134":0.04056,"135":0.05794,"136":0.05215,"137":0.07532,"138":0.26073,"139":0.35923,"140":9.4616,"141":17.00539,"142":0.1912,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 71 72 73 74 76 77 80 81 86 88 89 90 91 94 95 102 104 115 143 144 145"},F:{"79":0.01159,"91":0.00579,"92":0.02318,"95":0.05215,"99":0.06373,"114":0.00579,"119":0.00579,"120":0.13906,"121":0.18541,"122":1.59335,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00579,"92":0.02318,"109":0.02318,"114":0.21438,"122":0.00579,"129":0.00579,"131":0.00579,"133":0.00579,"134":0.01159,"135":0.00579,"136":0.02318,"137":0.08112,"138":0.02318,"139":0.04635,"140":0.52146,"141":3.13455,"142":0.01159,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 126 127 128 130 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.3 16.4 16.5 17.0 17.2 17.3 18.0 18.1 18.2 26.2","5.1":0.01159,"13.1":0.01159,"14.1":0.05794,"15.6":0.02897,"16.1":0.04056,"16.6":0.06953,"17.1":0.06373,"17.4":0.00579,"17.5":0.00579,"17.6":0.06953,"18.3":0.01738,"18.4":0.00579,"18.5-18.6":0.02318,"26.0":0.16803,"26.1":0.01738},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0003,"5.0-5.1":0,"6.0-6.1":0.00122,"7.0-7.1":0.00091,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00274,"10.0-10.2":0.0003,"10.3":0.00518,"11.0-11.2":0.07684,"11.3-11.4":0.00183,"12.0-12.1":0.00061,"12.2-12.5":0.01494,"13.0-13.1":0,"13.2":0.00152,"13.3":0.00061,"13.4-13.7":0.00244,"14.0-14.4":0.00518,"14.5-14.8":0.00549,"15.0-15.1":0.00518,"15.2-15.3":0.00396,"15.4":0.00457,"15.5":0.00518,"15.6-15.8":0.0677,"16.0":0.00915,"16.1":0.01708,"16.2":0.00884,"16.3":0.01586,"16.4":0.00396,"16.5":0.00701,"16.6-16.7":0.09057,"17.0":0.0064,"17.1":0.00976,"17.2":0.00701,"17.3":0.01037,"17.4":0.0183,"17.5":0.03141,"17.6-17.7":0.07928,"18.0":0.01799,"18.1":0.0372,"18.2":0.02013,"18.3":0.06465,"18.4":0.03324,"18.5-18.6":1.69483,"26.0":0.20949,"26.1":0.00762},P:{"4":0.06318,"21":0.01053,"22":0.02106,"23":0.01053,"24":0.01053,"25":0.01053,"26":0.05265,"27":0.02106,"28":1.06348,"29":0.08424,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 18.0 19.0","7.2-7.4":0.1053,"13.0":0.01053,"17.0":0.06318},I:{"0":0.0336,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.39957,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00579,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.1388},Q:{"14.9":0.00421},O:{"0":0.03785},H:{"0":0},L:{"0":40.23895}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BR.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BR.js deleted file mode 100644 index 42c30e63..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BR.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"112":0.00775,"113":0.00775,"115":0.0465,"116":0.00775,"128":0.0155,"136":0.00775,"139":0.00775,"140":0.03875,"141":0.00775,"142":0.0155,"143":0.31775,"144":0.28675,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 114 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 137 138 145 146 147 3.5 3.6"},D:{"39":0.02325,"40":0.02325,"41":0.02325,"42":0.02325,"43":0.02325,"44":0.02325,"45":0.02325,"46":0.02325,"47":0.02325,"48":0.02325,"49":0.02325,"50":0.02325,"51":0.02325,"52":0.02325,"53":0.02325,"54":0.02325,"55":0.031,"56":0.02325,"57":0.02325,"58":0.02325,"59":0.02325,"60":0.02325,"66":0.0155,"75":0.00775,"78":0.00775,"79":0.00775,"87":0.00775,"103":0.00775,"104":0.02325,"105":0.00775,"108":0.00775,"109":0.36425,"112":32.69725,"113":0.00775,"114":0.0155,"115":0.00775,"116":0.0155,"119":0.02325,"120":0.06975,"121":0.00775,"122":0.02325,"123":0.00775,"124":0.0155,"125":20.1035,"126":2.82875,"127":0.0155,"128":0.06975,"129":0.0155,"130":0.02325,"131":0.05425,"132":0.02325,"133":0.031,"134":0.031,"135":0.03875,"136":0.0465,"137":0.05425,"138":0.155,"139":0.25575,"140":3.51075,"141":9.69525,"142":0.155,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 68 69 70 71 72 73 74 76 77 80 81 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 106 107 110 111 117 118 143 144 145"},F:{"92":0.00775,"95":0.00775,"120":0.0465,"121":0.20925,"122":1.3175,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00775,"109":0.0155,"114":0.031,"131":0.00775,"134":0.0155,"135":0.00775,"136":0.00775,"137":0.00775,"138":0.0155,"139":0.0155,"140":0.39525,"141":1.96075,"142":0.00775,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 132 133"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.2 17.3 17.4 18.0 18.2 18.4 26.2","5.1":0.00775,"15.6":0.00775,"16.6":0.0155,"17.1":0.00775,"17.5":0.00775,"17.6":0.0155,"18.1":0.00775,"18.3":0.00775,"18.5-18.6":0.0155,"26.0":0.10075,"26.1":0.00775},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00022,"5.0-5.1":0,"6.0-6.1":0.00086,"7.0-7.1":0.00065,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00195,"10.0-10.2":0.00022,"10.3":0.00368,"11.0-11.2":0.05449,"11.3-11.4":0.0013,"12.0-12.1":0.00043,"12.2-12.5":0.0106,"13.0-13.1":0,"13.2":0.00108,"13.3":0.00043,"13.4-13.7":0.00173,"14.0-14.4":0.00368,"14.5-14.8":0.00389,"15.0-15.1":0.00368,"15.2-15.3":0.00281,"15.4":0.00324,"15.5":0.00368,"15.6-15.8":0.048,"16.0":0.00649,"16.1":0.01211,"16.2":0.00627,"16.3":0.01124,"16.4":0.00281,"16.5":0.00497,"16.6-16.7":0.06422,"17.0":0.00454,"17.1":0.00692,"17.2":0.00497,"17.3":0.00735,"17.4":0.01297,"17.5":0.02227,"17.6-17.7":0.05622,"18.0":0.01276,"18.1":0.02638,"18.2":0.01427,"18.3":0.04584,"18.4":0.02357,"18.5-18.6":1.20178,"26.0":0.14855,"26.1":0.00541},P:{"25":0.01082,"26":0.01082,"27":0.01082,"28":0.43277,"29":0.03246,_:"4 20 21 22 23 24 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01082},I:{"0":0.04494,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.0765,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.0093,"9":0.0186,"11":0.0186,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.04275},Q:{_:"14.9"},O:{"0":0.0045},H:{"0":0},L:{"0":20.48125}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BS.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BS.js deleted file mode 100644 index ac555203..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BS.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"48":0.00278,"52":0.00278,"115":0.07495,"127":0.00555,"140":0.00555,"142":0.0111,"143":0.10826,"144":0.07218,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 128 129 130 131 132 133 134 135 136 137 138 139 141 145 146 147 3.5 3.6"},D:{"39":0.00278,"46":0.00278,"49":0.00278,"71":0.00278,"76":0.00278,"90":0.00278,"93":0.00278,"103":0.02498,"109":0.11382,"114":0.00278,"116":0.03609,"122":0.00555,"123":0.00278,"124":0.00278,"125":0.83835,"126":0.0111,"128":0.01388,"129":0.02776,"131":0.00555,"132":0.00278,"133":0.00278,"134":0.00278,"135":0.01388,"136":0.00278,"137":0.07218,"138":0.04442,"139":0.05274,"140":0.77728,"141":1.71557,"142":0.01943,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 41 42 43 44 45 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 72 73 74 75 77 78 79 80 81 83 84 85 86 87 88 89 91 92 94 95 96 97 98 99 100 101 102 104 105 106 107 108 110 111 112 113 115 117 118 119 120 121 127 130 143 144 145"},F:{"92":0.00278,"120":0.00555,"121":0.00555,"122":0.03331,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.00278,"126":0.00555,"131":0.00278,"132":0.00278,"133":0.00555,"134":0.00278,"135":0.00833,"137":0.00278,"138":0.00555,"139":0.00833,"140":0.27482,"141":1.20478,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 127 128 129 130 136 142"},E:{"14":0.00278,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 26.2","12.1":0.00278,"13.1":0.00555,"14.1":0.0111,"15.1":0.01388,"15.2-15.3":0.00833,"15.4":0.06385,"15.5":0.04164,"15.6":0.43028,"16.0":0.00833,"16.1":0.09161,"16.2":0.05552,"16.3":0.12214,"16.4":0.03331,"16.5":0.09161,"16.6":1.06876,"17.0":0.01943,"17.1":1.28251,"17.2":0.03609,"17.3":0.07218,"17.4":0.12214,"17.5":0.25539,"17.6":0.65514,"18.0":0.03054,"18.1":0.18877,"18.2":0.0805,"18.3":0.37754,"18.4":0.30258,"18.5-18.6":0.73842,"26.0":1.80995,"26.1":0.0694},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00669,"5.0-5.1":0,"6.0-6.1":0.02676,"7.0-7.1":0.02007,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0602,"10.0-10.2":0.00669,"10.3":0.11372,"11.0-11.2":1.68573,"11.3-11.4":0.04014,"12.0-12.1":0.01338,"12.2-12.5":0.32778,"13.0-13.1":0,"13.2":0.03345,"13.3":0.01338,"13.4-13.7":0.05352,"14.0-14.4":0.11372,"14.5-14.8":0.12041,"15.0-15.1":0.11372,"15.2-15.3":0.08696,"15.4":0.10034,"15.5":0.11372,"15.6-15.8":1.48505,"16.0":0.20068,"16.1":0.37461,"16.2":0.19399,"16.3":0.34785,"16.4":0.08696,"16.5":0.15386,"16.6-16.7":1.98676,"17.0":0.14048,"17.1":0.21406,"17.2":0.15386,"17.3":0.22744,"17.4":0.40137,"17.5":0.68901,"17.6-17.7":1.73925,"18.0":0.39468,"18.1":0.81611,"18.2":0.4415,"18.3":1.41816,"18.4":0.72915,"18.5-18.6":37.17982,"26.0":4.59563,"26.1":0.16724},P:{"24":0.01026,"25":0.01026,"26":0.02052,"27":0.02052,"28":0.59509,"29":0.04104,_:"4 20 21 22 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01026},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.00722,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.02167},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":5.48442}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BT.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BT.js deleted file mode 100644 index 2fcdb185..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BT.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"37":0.00783,"46":0.00391,"47":0.01174,"94":0.00391,"111":0.01174,"115":0.02739,"127":0.00391,"128":0.00783,"131":0.06261,"137":0.00391,"142":0.01174,"143":0.34826,"144":0.12913,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 39 40 41 42 43 44 45 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 132 133 134 135 136 138 139 140 141 145 146 147 3.5 3.6"},D:{"39":0.00783,"40":0.00391,"41":0.00391,"42":0.00391,"43":0.00391,"44":0.00391,"45":0.00391,"46":0.00783,"47":0.00783,"48":0.00783,"49":0.01565,"50":0.01174,"51":0.00391,"52":0.00783,"53":0.00391,"54":0.00391,"55":0.00783,"56":0.00391,"57":0.00391,"58":0.00391,"59":0.00783,"67":0.00391,"69":0.00391,"72":0.02739,"74":0.00391,"75":0.01174,"77":0.01174,"78":0.01174,"80":0.00391,"83":0.00391,"86":0.00391,"87":0.00391,"89":0.00391,"90":0.00391,"93":0.03913,"95":0.00391,"96":0.00391,"97":0.00783,"98":0.30913,"99":0.11348,"100":0.00391,"103":0.01957,"108":0.0313,"109":0.47347,"114":0.00783,"116":0.06261,"119":0.01957,"120":0.00391,"122":0.01565,"123":0.00391,"124":0.00783,"125":3.26344,"126":0.01957,"127":0.13304,"128":0.05478,"129":0.00391,"130":0.00391,"131":0.03913,"132":0.02348,"133":0.01565,"134":0.05478,"135":0.31304,"136":0.01565,"137":0.12522,"138":0.16043,"139":0.38347,"140":5.07907,"141":12.12639,"142":0.12913,"143":0.00783,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 60 61 62 63 64 65 66 68 70 71 73 76 79 81 84 85 88 91 92 94 101 102 104 105 106 107 110 111 112 113 115 117 118 121 144 145"},F:{"72":0.00391,"84":0.00783,"91":0.19174,"92":0.10174,"95":0.01957,"120":0.03913,"121":0.03522,"122":0.28565,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.02348,"84":0.00391,"92":0.00391,"98":0.0313,"99":0.01565,"100":0.00391,"103":0.00391,"109":0.01174,"112":0.00391,"113":0.01565,"114":0.15261,"115":0.00391,"116":0.01957,"117":0.00391,"118":0.00391,"119":0.01957,"120":0.01174,"121":0.00391,"122":0.01565,"123":0.00783,"124":0.03522,"125":0.01174,"126":0.00391,"127":0.01957,"129":0.05087,"130":0.00391,"131":0.01174,"132":0.00391,"133":0.01174,"134":0.00783,"135":0.01174,"136":0.01957,"137":0.02348,"138":0.03522,"139":0.09391,"140":0.56347,"141":3.36518,"142":0.00783,_:"12 13 14 15 16 17 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 101 102 104 105 106 107 108 110 111 128"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 13.1 15.1 15.4 16.0 16.1 17.0 17.3 26.2","11.1":0.00391,"14.1":0.01957,"15.2-15.3":0.00391,"15.5":0.00391,"15.6":0.02348,"16.2":0.00783,"16.3":0.00391,"16.4":0.00391,"16.5":0.01174,"16.6":0.05087,"17.1":0.01565,"17.2":0.00783,"17.4":0.00391,"17.5":0.02348,"17.6":0.06261,"18.0":0.00391,"18.1":0.01174,"18.2":0.03913,"18.3":0.04696,"18.4":0.01957,"18.5-18.6":0.12522,"26.0":0.34826,"26.1":0.00391},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00067,"5.0-5.1":0,"6.0-6.1":0.00267,"7.0-7.1":0.002,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.006,"10.0-10.2":0.00067,"10.3":0.01133,"11.0-11.2":0.16794,"11.3-11.4":0.004,"12.0-12.1":0.00133,"12.2-12.5":0.03265,"13.0-13.1":0,"13.2":0.00333,"13.3":0.00133,"13.4-13.7":0.00533,"14.0-14.4":0.01133,"14.5-14.8":0.012,"15.0-15.1":0.01133,"15.2-15.3":0.00866,"15.4":0.01,"15.5":0.01133,"15.6-15.8":0.14794,"16.0":0.01999,"16.1":0.03732,"16.2":0.01933,"16.3":0.03465,"16.4":0.00866,"16.5":0.01533,"16.6-16.7":0.19793,"17.0":0.01399,"17.1":0.02133,"17.2":0.01533,"17.3":0.02266,"17.4":0.03999,"17.5":0.06864,"17.6-17.7":0.17327,"18.0":0.03932,"18.1":0.0813,"18.2":0.04398,"18.3":0.14128,"18.4":0.07264,"18.5-18.6":3.70395,"26.0":0.45783,"26.1":0.01666},P:{"4":0.02062,"22":0.01031,"23":0.01031,"25":0.01031,"26":0.01031,"27":0.13402,"28":0.64946,"29":0.12371,_:"20 21 24 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.02062,"7.2-7.4":0.02062},I:{"0":0.00608,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.71815,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.0137,"10":0.0137,_:"7 8 9 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.06086},Q:{_:"14.9"},O:{"0":0.6512},H:{"0":0},L:{"0":59.17746}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BW.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BW.js deleted file mode 100644 index cd09fe42..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BW.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"34":0.00975,"46":0.00488,"47":0.00975,"52":0.00488,"68":0.00488,"72":0.00488,"88":0.00488,"93":0.00488,"112":0.00488,"115":0.05364,"125":0.01463,"128":0.01463,"136":0.00975,"138":0.00488,"139":0.03413,"140":0.02438,"141":0.00975,"142":0.02438,"143":0.5071,"144":0.38033,"145":0.01463,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 91 92 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 131 132 133 134 135 137 146 147 3.5 3.6"},D:{"39":0.00975,"40":0.00975,"41":0.00975,"42":0.00975,"43":0.00975,"44":0.00488,"45":0.00488,"46":0.00975,"47":0.00975,"48":0.00488,"49":0.01463,"50":0.00975,"51":0.00975,"52":0.00488,"53":0.00488,"54":0.00488,"55":0.00488,"56":0.00975,"57":0.00488,"58":0.00488,"59":0.00488,"60":0.00975,"65":0.00488,"66":0.00488,"68":0.00488,"72":0.00488,"73":0.00488,"75":0.03413,"76":0.00488,"78":0.00488,"79":0.01463,"81":0.00488,"83":0.00488,"85":0.00488,"86":0.01463,"88":0.00488,"90":0.00488,"91":0.00975,"93":0.01463,"98":0.06339,"100":0.02926,"102":0.00975,"103":0.01463,"104":0.03901,"105":0.00488,"106":0.04876,"107":0.00488,"108":0.00488,"109":0.629,"111":0.03901,"112":10.22497,"113":0.00488,"114":0.01463,"116":0.03901,"117":0.00975,"119":0.04388,"120":0.0195,"121":0.00975,"122":0.03901,"123":0.00488,"124":0.33157,"125":3.47659,"126":1.219,"127":0.01463,"128":0.03901,"129":0.01463,"130":0.02926,"131":0.05851,"132":0.0195,"133":0.03413,"134":0.03901,"135":0.13653,"136":0.08289,"137":0.08289,"138":0.29256,"139":0.34132,"140":4.44691,"141":8.94258,"142":0.10727,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 67 69 70 71 74 77 80 84 87 89 92 94 95 96 97 99 101 110 115 118 143 144 145"},F:{"90":0.00488,"91":0.00488,"92":0.00488,"95":0.0195,"102":0.03901,"117":0.00975,"120":0.04876,"121":0.0195,"122":0.55586,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 116 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00488,"13":0.00488,"14":0.00488,"16":0.00488,"18":0.02926,"84":0.00488,"92":0.02438,"100":0.00488,"109":0.02438,"114":0.14628,"115":0.00488,"122":0.01463,"126":0.00488,"127":0.00975,"131":0.00488,"132":0.00975,"133":0.00488,"134":0.0195,"135":0.01463,"136":0.00975,"137":0.01463,"138":0.05851,"139":0.07314,"140":0.85818,"141":4.3689,"142":0.00488,_:"15 17 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 116 117 118 119 120 121 123 124 125 128 129 130"},E:{"13":0.00488,"14":0.00488,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.3 16.5 17.0 18.0 26.2","13.1":0.01463,"14.1":0.00488,"15.6":0.02438,"16.1":0.00488,"16.4":0.00975,"16.6":0.06826,"17.1":0.02438,"17.2":0.02438,"17.3":0.00488,"17.4":0.00488,"17.5":0.01463,"17.6":0.05851,"18.1":0.00488,"18.2":0.00488,"18.3":0.11215,"18.4":0.00488,"18.5-18.6":0.03901,"26.0":0.28768,"26.1":0.00488},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00038,"5.0-5.1":0,"6.0-6.1":0.0015,"7.0-7.1":0.00113,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00338,"10.0-10.2":0.00038,"10.3":0.00639,"11.0-11.2":0.09476,"11.3-11.4":0.00226,"12.0-12.1":0.00075,"12.2-12.5":0.01843,"13.0-13.1":0,"13.2":0.00188,"13.3":0.00075,"13.4-13.7":0.00301,"14.0-14.4":0.00639,"14.5-14.8":0.00677,"15.0-15.1":0.00639,"15.2-15.3":0.00489,"15.4":0.00564,"15.5":0.00639,"15.6-15.8":0.08348,"16.0":0.01128,"16.1":0.02106,"16.2":0.0109,"16.3":0.01955,"16.4":0.00489,"16.5":0.00865,"16.6-16.7":0.11168,"17.0":0.0079,"17.1":0.01203,"17.2":0.00865,"17.3":0.01278,"17.4":0.02256,"17.5":0.03873,"17.6-17.7":0.09777,"18.0":0.02219,"18.1":0.04588,"18.2":0.02482,"18.3":0.07972,"18.4":0.04099,"18.5-18.6":2.08996,"26.0":0.25833,"26.1":0.0094},P:{"4":0.04132,"22":0.03099,"23":0.01033,"24":0.13429,"25":0.05165,"26":0.03099,"27":0.1033,"28":1.81802,"29":0.05165,_:"20 21 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","6.2-6.4":0.01033,"7.2-7.4":0.24791},I:{"0":0.03069,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.66673,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00975,_:"6 7 8 9 10 5.5"},S:{"2.5":0.02049,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.10246},Q:{"14.9":0.00512},O:{"0":0.17418},H:{"0":0.03},L:{"0":52.03875}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BY.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BY.js deleted file mode 100644 index df9adc58..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BY.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.04884,"96":0.00611,"105":0.02442,"115":0.45177,"125":0.03663,"128":0.00611,"133":0.00611,"134":0.00611,"136":0.01832,"138":0.00611,"139":0.02442,"140":0.04884,"141":0.00611,"142":0.01832,"143":0.75702,"144":0.64103,"145":0.00611,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 97 98 99 100 101 102 103 104 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 131 132 135 137 146 147 3.5 3.6"},D:{"38":0.00611,"39":0.01221,"40":0.01221,"41":0.01221,"42":0.01221,"43":0.01221,"44":0.01221,"45":0.01221,"46":0.01221,"47":0.01221,"48":0.01221,"49":0.02442,"50":0.01221,"51":0.01221,"52":0.01221,"53":0.01221,"54":0.01221,"55":0.01221,"56":0.01221,"57":0.01221,"58":0.01221,"59":0.01221,"60":0.01221,"70":0.00611,"72":0.00611,"75":0.00611,"77":0.00611,"79":0.02442,"84":0.00611,"86":0.00611,"87":0.02442,"88":0.01221,"89":0.04884,"90":0.00611,"97":0.00611,"98":0.09158,"99":0.03053,"100":0.00611,"101":0.01221,"102":0.00611,"103":0.01221,"104":0.09158,"106":0.04274,"108":0.02442,"109":2.91819,"111":0.03663,"112":2.558,"113":0.01221,"114":0.01221,"115":0.01221,"116":0.02442,"117":0.00611,"118":0.01221,"119":0.03053,"120":0.02442,"121":0.01221,"122":0.03053,"123":0.54945,"124":0.06716,"125":4.47497,"126":0.21368,"127":0.01832,"128":0.08547,"129":0.01221,"130":0.02442,"131":0.09158,"132":0.03663,"133":0.07937,"134":0.20757,"135":0.04274,"136":0.04884,"137":0.04884,"138":0.20147,"139":0.29915,"140":5.58608,"141":19.1697,"142":0.71429,"143":0.01221,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 66 67 68 69 71 73 74 76 78 80 81 83 85 91 92 93 94 95 96 105 107 110 144 145"},F:{"36":0.01221,"42":0.00611,"63":0.01221,"73":0.05495,"79":0.10379,"84":0.00611,"85":0.03663,"86":0.04884,"89":0.00611,"91":0.04274,"92":0.06105,"95":0.68376,"102":0.00611,"111":0.00611,"113":0.00611,"114":0.00611,"117":0.00611,"118":0.00611,"119":0.00611,"120":0.61661,"121":0.09158,"122":3.4127,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 64 65 66 67 68 69 70 71 72 74 75 76 77 78 80 81 82 83 87 88 90 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 112 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.00611},B:{"18":0.00611,"92":0.00611,"98":0.01221,"99":0.00611,"100":0.00611,"109":0.02442,"113":0.00611,"114":0.05495,"120":0.01221,"131":0.01832,"132":0.00611,"133":0.00611,"134":0.00611,"135":0.00611,"136":0.09158,"137":0.00611,"138":0.00611,"139":0.01832,"140":0.39683,"141":2.25885,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 101 102 103 104 105 106 107 108 110 111 112 115 116 117 118 119 121 122 123 124 125 126 127 128 129 130 142"},E:{"13":0.01832,_:"0 4 5 6 7 8 9 10 11 12 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 16.0 26.2","13.1":0.01221,"14.1":0.00611,"15.1":0.01221,"15.4":0.00611,"15.5":0.00611,"15.6":0.09158,"16.1":0.02442,"16.2":0.04274,"16.3":0.03053,"16.4":0.00611,"16.5":0.00611,"16.6":0.15263,"17.0":0.00611,"17.1":0.25641,"17.2":0.00611,"17.3":0.01832,"17.4":0.04274,"17.5":0.04884,"17.6":0.10989,"18.0":0.04884,"18.1":0.04274,"18.2":0.01221,"18.3":0.05495,"18.4":0.01832,"18.5-18.6":0.13431,"26.0":0.76313,"26.1":0.02442},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00133,"5.0-5.1":0,"6.0-6.1":0.00531,"7.0-7.1":0.00398,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01195,"10.0-10.2":0.00133,"10.3":0.02257,"11.0-11.2":0.33451,"11.3-11.4":0.00796,"12.0-12.1":0.00265,"12.2-12.5":0.06504,"13.0-13.1":0,"13.2":0.00664,"13.3":0.00265,"13.4-13.7":0.01062,"14.0-14.4":0.02257,"14.5-14.8":0.02389,"15.0-15.1":0.02257,"15.2-15.3":0.01726,"15.4":0.01991,"15.5":0.02257,"15.6-15.8":0.29469,"16.0":0.03982,"16.1":0.07434,"16.2":0.0385,"16.3":0.06903,"16.4":0.01726,"16.5":0.03053,"16.6-16.7":0.39424,"17.0":0.02788,"17.1":0.04248,"17.2":0.03053,"17.3":0.04513,"17.4":0.07964,"17.5":0.13672,"17.6-17.7":0.34513,"18.0":0.07832,"18.1":0.16194,"18.2":0.08761,"18.3":0.28141,"18.4":0.14469,"18.5-18.6":7.37778,"26.0":0.91193,"26.1":0.03319},P:{"4":0.02114,"26":0.01057,"27":0.05286,"28":0.81406,"29":0.06343,_:"20 21 22 23 24 25 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.05056,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.69889,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00687,"11":0.04808,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.10906},Q:{"14.9":0.01169},O:{"0":0.02727},H:{"0":0.01},L:{"0":23.52461}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BZ.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BZ.js deleted file mode 100644 index de009425..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/BZ.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.04365,"128":0.09126,"134":0.00794,"135":0.00397,"137":0.00397,"140":0.01587,"141":0.00397,"142":0.01587,"143":0.74995,"144":0.55155,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 136 138 139 145 146 147 3.5 3.6"},D:{"39":0.00794,"40":0.00794,"41":0.00794,"42":0.00397,"43":0.00794,"44":0.00794,"45":0.00794,"46":0.00794,"47":0.00794,"48":0.00397,"49":0.00794,"50":0.00794,"51":0.00794,"52":0.00794,"53":0.00794,"54":0.00794,"55":0.00794,"56":0.00794,"57":0.00794,"58":0.00397,"59":0.00794,"60":0.00794,"76":0.00397,"87":0.00397,"88":0.71027,"93":0.01587,"101":0.00794,"103":0.09523,"104":0.00397,"109":0.07142,"116":0.04762,"118":0.0119,"119":0.00794,"120":0.00397,"122":0.00794,"124":0.00397,"125":6.19802,"126":0.03571,"127":0.02778,"128":0.12301,"129":0.00397,"130":0.00794,"131":0.00397,"132":0.02381,"133":0.00794,"134":0.00397,"135":0.01587,"136":0.03571,"137":0.14285,"138":0.37299,"139":0.13888,"140":2.66253,"141":6.99955,"142":0.13094,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 79 80 81 83 84 85 86 89 90 91 92 94 95 96 97 98 99 100 102 105 106 107 108 110 111 112 113 114 115 117 121 123 143 144 145"},F:{"91":0.02778,"92":0.1111,"95":0.00397,"114":0.00794,"120":0.03571,"121":0.04365,"122":0.38886,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00794,"18":0.0119,"92":0.00397,"109":0.01984,"114":0.02381,"122":0.00397,"132":0.00397,"133":0.00397,"134":0.00397,"135":0.00397,"136":0.00397,"138":0.00794,"139":0.03174,"140":0.71821,"141":3.54739,_:"13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 126 127 128 129 130 131 137 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 26.2","13.1":0.00397,"14.1":0.00397,"15.1":0.03968,"15.2-15.3":0.00397,"15.4":0.09523,"15.5":0.00794,"15.6":0.23808,"16.0":0.00397,"16.1":0.04365,"16.2":0.00397,"16.3":0.0119,"16.4":2.28557,"16.5":0.00794,"16.6":0.13491,"17.0":0.00397,"17.1":0.34522,"17.2":0.08333,"17.3":0.03968,"17.4":0.07936,"17.5":0.05555,"17.6":0.56742,"18.0":0.03174,"18.1":0.07539,"18.2":0.0119,"18.3":0.09126,"18.4":0.05158,"18.5-18.6":0.60314,"26.0":1.31341,"26.1":0.03968},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00383,"5.0-5.1":0,"6.0-6.1":0.01532,"7.0-7.1":0.01149,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.03446,"10.0-10.2":0.00383,"10.3":0.06509,"11.0-11.2":0.96494,"11.3-11.4":0.02297,"12.0-12.1":0.00766,"12.2-12.5":0.18763,"13.0-13.1":0,"13.2":0.01915,"13.3":0.00766,"13.4-13.7":0.03063,"14.0-14.4":0.06509,"14.5-14.8":0.06892,"15.0-15.1":0.06509,"15.2-15.3":0.04978,"15.4":0.05744,"15.5":0.06509,"15.6-15.8":0.85006,"16.0":0.11487,"16.1":0.21443,"16.2":0.11104,"16.3":0.19911,"16.4":0.04978,"16.5":0.08807,"16.6-16.7":1.13725,"17.0":0.08041,"17.1":0.12253,"17.2":0.08807,"17.3":0.13019,"17.4":0.22975,"17.5":0.3944,"17.6-17.7":0.99557,"18.0":0.22592,"18.1":0.46715,"18.2":0.25272,"18.3":0.81177,"18.4":0.41737,"18.5-18.6":21.28221,"26.0":2.6306,"26.1":0.09573},P:{"4":0.01054,"24":0.01054,"25":0.01054,"27":0.01054,"28":1.28647,"29":0.0949,_:"20 21 22 23 26 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.06626,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.16286,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.25938},Q:{_:"14.9"},O:{"0":0.03016},H:{"0":0},L:{"0":22.51242}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CA.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CA.js deleted file mode 100644 index 416d9928..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CA.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"44":0.00996,"45":0.00498,"47":0.01992,"48":0.00498,"52":0.01992,"57":0.00996,"78":0.01494,"102":0.00498,"103":0.00498,"107":0.00498,"113":0.00498,"115":0.2092,"121":0.00498,"122":0.00498,"123":0.00498,"125":0.01494,"127":0.00498,"128":0.01992,"132":0.00498,"133":0.00498,"134":0.00498,"135":0.01494,"136":0.01494,"137":0.03985,"138":0.00996,"139":0.00996,"140":0.07472,"141":0.02491,"142":0.06475,"143":1.11076,"144":1.00118,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 46 49 50 51 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 104 105 106 108 109 110 111 112 114 116 117 118 119 120 124 126 129 130 131 145 146 147 3.5 3.6"},D:{"39":0.01494,"40":0.01494,"41":0.01494,"42":0.01494,"43":0.01494,"44":0.01494,"45":0.01494,"46":0.01494,"47":0.01992,"48":0.04483,"49":0.04981,"50":0.01494,"51":0.01494,"52":0.01494,"53":0.01494,"54":0.01494,"55":0.01494,"56":0.01494,"57":0.01992,"58":0.01494,"59":0.01494,"60":0.01494,"66":0.00498,"68":0.00996,"76":0.00498,"79":0.01494,"80":0.01494,"81":0.02989,"83":0.09962,"85":0.00996,"87":0.01992,"88":0.02491,"90":0.00498,"91":0.00498,"93":0.01494,"97":0.00498,"98":0.00498,"99":0.03985,"100":0.00498,"102":0.02989,"103":0.12951,"104":0.2092,"105":0.00498,"107":0.00498,"108":0.00498,"109":0.46821,"110":0.00498,"111":0.00498,"112":0.00498,"113":0.00498,"114":0.05479,"115":0.00498,"116":0.16437,"117":0.03487,"118":0.04981,"119":0.03487,"120":0.06973,"121":0.01494,"122":0.05977,"123":0.01992,"124":0.06475,"125":0.19924,"126":0.17434,"127":0.07472,"128":0.13947,"129":0.01992,"130":2.15179,"131":0.08468,"132":0.10958,"133":0.04981,"134":0.06973,"135":0.09464,"136":0.11456,"137":0.27894,"138":0.4732,"139":1.03605,"140":5.77796,"141":13.88703,"142":0.18928,"143":0.00996,"144":0.00498,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 69 70 71 72 73 74 75 77 78 84 86 89 92 94 95 96 101 106 145"},F:{"89":0.00498,"91":0.00498,"92":0.01494,"95":0.01992,"114":0.00498,"119":0.00498,"120":0.07472,"121":0.06973,"122":0.5778,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.00498,"18":0.00498,"85":0.00498,"109":0.04981,"111":0.00498,"120":0.00996,"122":0.08966,"125":0.00498,"126":0.00498,"127":0.00498,"128":0.00498,"129":0.00498,"130":0.00498,"131":0.01494,"132":0.00498,"133":0.00996,"134":0.03985,"135":0.01494,"136":0.00996,"137":0.01494,"138":0.02989,"139":0.05479,"140":1.22533,"141":5.63351,"142":0.00996,_:"12 14 15 16 17 79 80 81 83 84 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 112 113 114 115 116 117 118 119 121 123 124"},E:{"9":0.00498,"14":0.01494,"15":0.00498,_:"0 4 5 6 7 8 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 26.2","11.1":0.00498,"12.1":0.00498,"13.1":0.05977,"14.1":0.05977,"15.1":0.00498,"15.2-15.3":0.00498,"15.4":0.01992,"15.5":0.01992,"15.6":0.32875,"16.0":0.00996,"16.1":0.04981,"16.2":0.01992,"16.3":0.06475,"16.4":0.02491,"16.5":0.03985,"16.6":0.46323,"17.0":0.00996,"17.1":0.41342,"17.2":0.02989,"17.3":0.03487,"17.4":0.06475,"17.5":0.09962,"17.6":0.42837,"18.0":0.02989,"18.1":0.08468,"18.2":0.03487,"18.3":0.15939,"18.4":0.08468,"18.5-18.6":0.30882,"26.0":0.86669,"26.1":0.03487},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00247,"5.0-5.1":0,"6.0-6.1":0.00987,"7.0-7.1":0.0074,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02221,"10.0-10.2":0.00247,"10.3":0.04195,"11.0-11.2":0.6219,"11.3-11.4":0.01481,"12.0-12.1":0.00494,"12.2-12.5":0.12092,"13.0-13.1":0,"13.2":0.01234,"13.3":0.00494,"13.4-13.7":0.01974,"14.0-14.4":0.04195,"14.5-14.8":0.04442,"15.0-15.1":0.04195,"15.2-15.3":0.03208,"15.4":0.03702,"15.5":0.04195,"15.6-15.8":0.54786,"16.0":0.07404,"16.1":0.1382,"16.2":0.07157,"16.3":0.12833,"16.4":0.03208,"16.5":0.05676,"16.6-16.7":0.73295,"17.0":0.05182,"17.1":0.07897,"17.2":0.05676,"17.3":0.08391,"17.4":0.14807,"17.5":0.25419,"17.6-17.7":0.64164,"18.0":0.1456,"18.1":0.30108,"18.2":0.16288,"18.3":0.52318,"18.4":0.26899,"18.5-18.6":13.71627,"26.0":1.69541,"26.1":0.0617},P:{"4":0.01079,"21":0.03238,"22":0.01079,"23":0.01079,"24":0.02159,"25":0.03238,"26":0.05397,"27":0.04318,"28":1.92138,"29":0.20509,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0 19.0","7.2-7.4":0.01079,"16.0":0.01079},I:{"0":0.02005,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.17567,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00797,"11":0.03188,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.45171},Q:{"14.9":0.00502},O:{"0":0.04517},H:{"0":0},L:{"0":24.0987}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CD.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CD.js deleted file mode 100644 index 5094e182..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CD.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"45":0.00265,"47":0.00265,"48":0.00265,"55":0.00265,"57":0.00265,"65":0.00265,"68":0.00265,"72":0.00531,"94":0.00265,"103":0.00265,"108":0.00265,"115":0.08224,"127":0.01592,"128":0.01592,"137":0.00796,"139":0.00265,"140":0.01857,"141":0.00531,"142":0.02653,"143":0.39264,"144":0.33693,"145":0.01061,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 49 50 51 52 53 54 56 58 59 60 61 62 63 64 66 67 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100 101 102 104 105 106 107 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 133 134 135 136 138 146 147 3.5 3.6"},D:{"38":0.00265,"39":0.00265,"40":0.00265,"41":0.00265,"42":0.00265,"43":0.00265,"44":0.00265,"45":0.00265,"46":0.00265,"47":0.00265,"48":0.00265,"49":0.00531,"50":0.00531,"51":0.00265,"52":0.00265,"53":0.00265,"54":0.00265,"55":0.00265,"56":0.00265,"57":0.00265,"58":0.00265,"59":0.00265,"60":0.00265,"64":0.00265,"65":0.00265,"68":0.01061,"69":0.00265,"70":0.00265,"71":0.00265,"72":0.00265,"73":0.00265,"74":0.00265,"75":0.00265,"76":0.00265,"77":0.00265,"79":0.01592,"80":0.00531,"81":0.00265,"83":0.00531,"86":0.01061,"87":0.02653,"88":0.00531,"89":0.00796,"90":0.00531,"91":0.00265,"93":0.01061,"94":0.00265,"95":0.00265,"96":0.00265,"97":0.00265,"98":0.00531,"99":0.00531,"100":0.00531,"102":0.00265,"103":0.02918,"104":0.00265,"105":0.00796,"106":0.05837,"107":0.00265,"108":0.00531,"109":0.19367,"110":0.00265,"111":0.00796,"113":0.01592,"114":0.00796,"115":0.00265,"116":0.03184,"117":0.00796,"118":0.00265,"119":0.02388,"120":0.01857,"121":0.00796,"122":0.01592,"123":0.00796,"124":0.01061,"125":0.29979,"126":0.03714,"127":0.01061,"128":0.02388,"129":0.01857,"130":0.00796,"131":0.03449,"132":0.01592,"133":0.02388,"134":0.03184,"135":0.05306,"136":0.0398,"137":0.13,"138":0.24408,"139":0.28122,"140":2.08526,"141":4.19439,"142":0.07959,"143":0.00265,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 66 67 78 84 85 92 101 112 144 145"},F:{"26":0.00265,"34":0.00531,"36":0.00265,"37":0.00265,"40":0.00265,"42":0.00531,"46":0.00265,"49":0.00531,"77":0.00265,"79":0.02122,"86":0.00531,"88":0.00265,"89":0.00531,"90":0.02653,"91":0.0451,"92":0.03714,"93":0.00265,"94":0.00265,"95":0.0451,"101":0.00265,"102":0.00265,"113":0.00531,"114":0.00531,"115":0.00265,"117":0.00796,"118":0.00265,"119":0.01327,"120":0.33163,"121":0.01592,"122":1.22038,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 31 32 33 35 38 39 41 43 44 45 47 48 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 80 81 82 83 84 85 87 96 97 98 99 100 103 104 105 106 107 108 109 110 111 112 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01327,"13":0.00531,"14":0.01327,"15":0.00265,"16":0.00531,"17":0.03184,"18":0.06633,"84":0.01061,"85":0.00265,"89":0.01327,"90":0.02653,"92":0.07959,"100":0.01061,"109":0.00796,"114":0.03184,"117":0.00265,"120":0.00265,"122":0.02388,"126":0.00265,"128":0.00265,"129":0.00265,"130":0.00531,"131":0.01857,"132":0.01592,"133":0.00265,"134":0.00265,"135":0.01061,"136":0.00796,"137":0.01327,"138":0.05837,"139":0.05041,"140":0.49346,"141":1.90485,"142":0.00265,_:"79 80 81 83 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 118 119 121 123 124 125 127"},E:{"11":0.00796,"13":0.00265,"14":0.00265,_:"0 4 5 6 7 8 9 10 12 15 3.1 3.2 6.1 7.1 9.1 10.1 15.2-15.3 15.4 16.1 16.2 16.3 16.4 17.0 17.2 17.3 26.2","5.1":0.00265,"11.1":0.00531,"12.1":0.00265,"13.1":0.0451,"14.1":0.01857,"15.1":0.00265,"15.5":0.00265,"15.6":0.06633,"16.0":0.00531,"16.5":0.00265,"16.6":0.04775,"17.1":0.01327,"17.4":0.00265,"17.5":0.00796,"17.6":0.05571,"18.0":0.00531,"18.1":0.00265,"18.2":0.00265,"18.3":0.01592,"18.4":0.00796,"18.5-18.6":0.04245,"26.0":0.18836,"26.1":0.03714},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00082,"5.0-5.1":0,"6.0-6.1":0.00328,"7.0-7.1":0.00246,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00737,"10.0-10.2":0.00082,"10.3":0.01393,"11.0-11.2":0.20644,"11.3-11.4":0.00492,"12.0-12.1":0.00164,"12.2-12.5":0.04014,"13.0-13.1":0,"13.2":0.0041,"13.3":0.00164,"13.4-13.7":0.00655,"14.0-14.4":0.01393,"14.5-14.8":0.01475,"15.0-15.1":0.01393,"15.2-15.3":0.01065,"15.4":0.01229,"15.5":0.01393,"15.6-15.8":0.18186,"16.0":0.02458,"16.1":0.04587,"16.2":0.02376,"16.3":0.0426,"16.4":0.01065,"16.5":0.01884,"16.6-16.7":0.2433,"17.0":0.0172,"17.1":0.02621,"17.2":0.01884,"17.3":0.02785,"17.4":0.04915,"17.5":0.08438,"17.6-17.7":0.21299,"18.0":0.04833,"18.1":0.09994,"18.2":0.05407,"18.3":0.17367,"18.4":0.08929,"18.5-18.6":4.55306,"26.0":0.56278,"26.1":0.02048},P:{"4":0.01043,"21":0.01043,"22":0.01043,"24":0.0417,"25":0.03128,"26":0.01043,"27":0.07298,"28":0.81321,"29":0.02085,_:"20 23 5.0-5.4 6.2-6.4 8.2 10.1 12.0 13.0 14.0 15.0 17.0 18.0","7.2-7.4":0.02085,"9.2":0.01043,"11.1-11.2":0.01043,"16.0":0.02085,"19.0":0.01043},I:{"0":0.05869,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":7.87377,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00796,_:"6 7 8 9 10 5.5"},S:{"2.5":0.01469,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.11755},Q:{"14.9":0.03674},O:{"0":0.25715},H:{"0":4.19},L:{"0":62.67118}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CF.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CF.js deleted file mode 100644 index 76af46ae..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CF.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"45":0.00882,"56":0.00882,"72":0.02293,"88":0.00882,"103":0.01411,"108":0.00529,"115":0.10055,"127":0.02822,"132":0.01764,"138":0.03175,"140":0.09173,"141":0.03704,"142":0.00882,"143":0.36868,"144":0.13406,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 128 129 130 131 133 134 135 136 137 139 145 146 147 3.5 3.6"},D:{"52":0.01411,"69":0.00529,"70":0.0688,"71":0.00529,"74":0.01764,"76":0.00529,"81":0.00882,"90":0.05468,"93":0.00529,"94":0.00529,"99":0.01764,"106":0.2205,"109":0.13759,"111":0.00529,"116":0.01411,"117":0.04234,"118":0.03704,"119":0.01764,"122":0.03704,"124":0.01764,"125":0.01411,"126":0.01411,"128":0.03704,"131":0.02293,"135":0.02293,"136":0.00882,"137":0.00529,"138":0.24872,"139":0.26813,"140":0.96844,"141":1.24538,"142":0.01411,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 72 73 75 77 78 79 80 83 84 85 86 87 88 89 91 92 95 96 97 98 100 101 102 103 104 105 107 108 110 112 113 114 115 120 121 123 127 129 130 132 133 134 143 144 145"},F:{"91":0.08291,"95":0.00882,"120":0.04586,"122":0.84319,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.01764,"18":0.05468,"84":0.00529,"90":0.05116,"92":0.03175,"100":0.01411,"114":0.01411,"117":0.00882,"127":0.00529,"131":0.02293,"133":0.02293,"134":0.01411,"135":0.00529,"136":0.00529,"137":0.09702,"138":0.04234,"139":0.08291,"140":0.35104,"141":0.89435,_:"12 14 15 16 17 79 80 81 83 85 86 87 88 89 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 118 119 120 121 122 123 124 125 126 128 129 130 132 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.4 17.5 17.6 18.0 18.1 18.2 18.3 18.5-18.6 26.1 26.2","5.1":0.00882,"14.1":0.00529,"15.6":0.00529,"18.4":0.01764,"26.0":0.07762},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00031,"5.0-5.1":0,"6.0-6.1":0.00126,"7.0-7.1":0.00094,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00282,"10.0-10.2":0.00031,"10.3":0.00534,"11.0-11.2":0.07909,"11.3-11.4":0.00188,"12.0-12.1":0.00063,"12.2-12.5":0.01538,"13.0-13.1":0,"13.2":0.00157,"13.3":0.00063,"13.4-13.7":0.00251,"14.0-14.4":0.00534,"14.5-14.8":0.00565,"15.0-15.1":0.00534,"15.2-15.3":0.00408,"15.4":0.00471,"15.5":0.00534,"15.6-15.8":0.06967,"16.0":0.00941,"16.1":0.01757,"16.2":0.0091,"16.3":0.01632,"16.4":0.00408,"16.5":0.00722,"16.6-16.7":0.09321,"17.0":0.00659,"17.1":0.01004,"17.2":0.00722,"17.3":0.01067,"17.4":0.01883,"17.5":0.03232,"17.6-17.7":0.0816,"18.0":0.01852,"18.1":0.03829,"18.2":0.02071,"18.3":0.06653,"18.4":0.03421,"18.5-18.6":1.74427,"26.0":0.2156,"26.1":0.00785},P:{"20":0.01003,"25":0.03008,"26":0.20055,"27":0.04011,"28":1.2334,_:"4 21 22 23 24 29 5.0-5.4 6.2-6.4 7.2-7.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","9.2":0.07019,"19.0":0.03008},I:{"0":0.0329,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":1.26261,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{"2.5":0.02471,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.78252},Q:{"14.9":0.02471},O:{"0":0.14003},H:{"0":17.04},L:{"0":66.32164}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CG.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CG.js deleted file mode 100644 index 6f916f9e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CG.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"47":0.0042,"58":0.0042,"72":0.0042,"112":0.0042,"115":0.18493,"127":0.01261,"128":0.01681,"132":0.0042,"136":0.00841,"140":0.02522,"141":0.01681,"142":0.03783,"143":0.58422,"144":0.63045,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 52 53 54 55 56 57 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 133 134 135 137 138 139 145 146 147 3.5 3.6"},D:{"39":0.00841,"40":0.00841,"41":0.01261,"42":0.00841,"43":0.01261,"44":0.01261,"45":0.00841,"46":0.0042,"47":0.00841,"48":0.00841,"49":0.01261,"50":0.01261,"51":0.00841,"52":0.00841,"53":0.00841,"54":0.01261,"55":0.01261,"56":0.01261,"57":0.00841,"58":0.00841,"59":0.01681,"60":0.00841,"63":0.0042,"64":0.02102,"65":0.0042,"66":0.01681,"68":0.0042,"69":0.00841,"71":0.0042,"72":0.01261,"73":0.08826,"74":0.00841,"75":0.01681,"76":0.01681,"78":0.0042,"79":0.04203,"83":0.09667,"84":0.0042,"86":0.03362,"87":0.05884,"88":0.01261,"89":0.00841,"90":0.00841,"91":0.0042,"93":0.0042,"94":0.0042,"95":0.01261,"98":0.10928,"99":0.00841,"101":0.0042,"103":0.02942,"104":0.0042,"106":0.01681,"108":0.04623,"109":0.63886,"110":0.00841,"111":0.0042,"112":3.19848,"113":0.04623,"114":0.03362,"115":0.0042,"116":0.00841,"117":0.0042,"119":0.08406,"120":0.07145,"121":0.0042,"122":0.04623,"123":0.01261,"124":0.0042,"125":2.61427,"126":0.44552,"127":0.0042,"128":0.02102,"129":0.0042,"130":0.02942,"131":0.03783,"132":0.01681,"133":0.04623,"134":0.04623,"135":0.02102,"136":0.02522,"137":0.07145,"138":0.87422,"139":0.35726,"140":3.10602,"141":6.18261,"142":0.16392,"143":0.0042,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 67 70 77 80 81 85 92 96 97 100 102 105 107 118 144 145"},F:{"36":0.0042,"37":0.0042,"46":0.00841,"79":0.02522,"86":0.0042,"88":0.0042,"90":0.0042,"91":0.01261,"92":0.04203,"95":0.07565,"102":0.0042,"110":0.01261,"111":0.0042,"113":0.0042,"114":0.00841,"119":0.01261,"120":0.49595,"121":0.01681,"122":2.41252,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 87 89 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 112 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.0042,"13":0.0042,"14":0.00841,"15":0.0042,"17":0.02102,"18":0.02102,"84":0.00841,"88":0.0042,"90":0.00841,"92":0.10087,"100":0.02102,"109":0.01681,"114":0.5548,"120":0.01261,"122":0.03783,"124":0.0042,"126":0.00841,"127":0.0042,"128":0.05044,"129":0.01261,"131":0.00841,"132":0.0042,"133":0.02102,"134":0.00841,"135":0.01261,"136":0.02102,"137":0.01681,"138":0.04623,"139":0.06305,"140":0.77335,"141":4.08111,"142":0.02522,_:"16 79 80 81 83 85 86 87 89 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 121 123 125 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 16.0 16.1 16.2 16.3 16.4 17.0 17.2 17.3 17.4 18.0 18.1 18.2 18.3 18.4 26.2","5.1":0.0042,"13.1":0.00841,"14.1":0.00841,"15.1":0.0042,"15.5":0.00841,"15.6":0.12189,"16.5":0.0042,"16.6":0.01261,"17.1":0.0042,"17.5":0.00841,"17.6":0.2774,"18.5-18.6":0.01261,"26.0":0.15971,"26.1":0.01681},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00071,"5.0-5.1":0,"6.0-6.1":0.00286,"7.0-7.1":0.00214,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00643,"10.0-10.2":0.00071,"10.3":0.01215,"11.0-11.2":0.18009,"11.3-11.4":0.00429,"12.0-12.1":0.00143,"12.2-12.5":0.03502,"13.0-13.1":0,"13.2":0.00357,"13.3":0.00143,"13.4-13.7":0.00572,"14.0-14.4":0.01215,"14.5-14.8":0.01286,"15.0-15.1":0.01215,"15.2-15.3":0.00929,"15.4":0.01072,"15.5":0.01215,"15.6-15.8":0.15865,"16.0":0.02144,"16.1":0.04002,"16.2":0.02072,"16.3":0.03716,"16.4":0.00929,"16.5":0.01644,"16.6-16.7":0.21225,"17.0":0.01501,"17.1":0.02287,"17.2":0.01644,"17.3":0.0243,"17.4":0.04288,"17.5":0.07361,"17.6-17.7":0.18581,"18.0":0.04216,"18.1":0.08719,"18.2":0.04717,"18.3":0.15151,"18.4":0.0779,"18.5-18.6":3.97201,"26.0":0.49096,"26.1":0.01787},P:{"4":0.02084,"23":0.01042,"24":0.01042,"25":0.01042,"26":0.01042,"27":0.01042,"28":0.63551,"29":0.03125,_:"20 21 22 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.01042,"7.2-7.4":0.07293},I:{"0":0.21994,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00011},K:{"0":1.36868,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{"2.5":0.0058,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.13331},Q:{"14.9":0.01739},O:{"0":0.18547},H:{"0":0.26},L:{"0":57.97461}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CH.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CH.js deleted file mode 100644 index 7e997d20..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CH.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"48":0.01107,"52":0.01661,"72":0.00554,"78":0.02215,"84":0.00554,"115":0.43189,"121":0.00554,"125":0.00554,"127":0.00554,"128":0.21041,"129":0.00554,"132":0.01661,"133":0.00554,"134":0.01107,"135":0.00554,"136":0.02215,"137":0.01661,"138":0.02769,"139":0.02215,"140":0.22702,"141":0.03322,"142":0.11628,"143":2.4695,"144":2.33108,"145":0.00554,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 122 123 124 126 130 131 146 147 3.5 3.6"},D:{"39":0.01661,"40":0.01661,"41":0.01661,"42":0.01661,"43":0.01661,"44":0.01661,"45":0.01661,"46":0.01661,"47":0.01661,"48":0.01661,"49":0.02769,"50":0.01661,"51":0.01661,"52":0.21041,"53":0.01661,"54":0.01661,"55":0.02215,"56":0.01661,"57":0.01661,"58":0.01661,"59":0.01661,"60":0.01107,"79":0.01661,"80":0.02215,"81":0.03876,"87":0.02215,"88":0.01107,"92":0.00554,"98":0.00554,"99":0.00554,"100":0.00554,"102":0.00554,"103":0.0443,"104":0.02215,"107":0.01107,"108":0.01107,"109":0.36544,"110":0.00554,"111":0.00554,"112":0.00554,"114":0.02769,"115":0.00554,"116":0.09413,"118":0.03876,"119":0.00554,"120":0.0443,"121":0.00554,"122":0.06644,"123":0.01107,"124":0.02769,"125":0.59246,"126":0.09967,"127":0.06644,"128":0.06644,"129":0.01661,"130":0.65337,"131":0.15504,"132":0.03876,"133":0.09413,"134":0.06091,"135":0.15504,"136":0.05537,"137":0.11628,"138":0.33776,"139":1.08525,"140":6.58349,"141":13.15038,"142":0.16057,"143":0.00554,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 83 84 85 86 89 90 91 93 94 95 96 97 101 105 106 113 117 144 145"},F:{"46":0.00554,"91":0.01661,"92":0.03322,"95":0.13289,"102":0.01107,"114":0.00554,"119":0.00554,"120":0.17165,"121":0.24363,"122":1.69986,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.06644,"112":0.00554,"114":0.00554,"115":0.00554,"120":0.01107,"122":0.00554,"125":0.00554,"126":0.00554,"128":0.00554,"129":0.00554,"130":0.01107,"131":0.01661,"132":0.00554,"133":0.00554,"134":0.03322,"135":0.01107,"136":0.02215,"137":0.02215,"138":0.06091,"139":0.12181,"140":2.07084,"141":8.69863,"142":0.01107,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 113 116 117 118 119 121 123 124 127"},E:{"13":0.00554,"14":0.01661,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 26.2","11.1":0.01107,"12.1":0.01107,"13.1":0.06091,"14.1":0.03876,"15.1":0.00554,"15.2-15.3":0.00554,"15.4":0.00554,"15.5":0.01661,"15.6":0.22148,"16.0":0.02769,"16.1":0.0443,"16.2":0.01661,"16.3":0.0443,"16.4":0.01107,"16.5":0.06644,"16.6":0.35991,"17.0":0.01107,"17.1":0.21594,"17.2":0.02769,"17.3":0.0443,"17.4":0.07198,"17.5":0.1052,"17.6":0.42635,"18.0":0.04983,"18.1":0.11628,"18.2":0.0443,"18.3":0.1495,"18.4":0.11074,"18.5-18.6":0.33776,"26.0":1.3012,"26.1":0.02769},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00198,"5.0-5.1":0,"6.0-6.1":0.00793,"7.0-7.1":0.00595,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01785,"10.0-10.2":0.00198,"10.3":0.03371,"11.0-11.2":0.49969,"11.3-11.4":0.0119,"12.0-12.1":0.00397,"12.2-12.5":0.09716,"13.0-13.1":0,"13.2":0.00991,"13.3":0.00397,"13.4-13.7":0.01586,"14.0-14.4":0.03371,"14.5-14.8":0.03569,"15.0-15.1":0.03371,"15.2-15.3":0.02578,"15.4":0.02974,"15.5":0.03371,"15.6-15.8":0.44021,"16.0":0.05949,"16.1":0.11104,"16.2":0.0575,"16.3":0.10311,"16.4":0.02578,"16.5":0.04561,"16.6-16.7":0.58892,"17.0":0.04164,"17.1":0.06345,"17.2":0.04561,"17.3":0.06742,"17.4":0.11897,"17.5":0.20424,"17.6-17.7":0.51556,"18.0":0.11699,"18.1":0.24192,"18.2":0.13087,"18.3":0.42038,"18.4":0.21614,"18.5-18.6":11.02102,"26.0":1.36226,"26.1":0.04957},P:{"4":0.02099,"21":0.01049,"22":0.01049,"23":0.01049,"24":0.01049,"25":0.02099,"26":0.03148,"27":0.03148,"28":3.1478,"29":0.22035,_:"20 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.01049,"7.2-7.4":0.02099,"13.0":0.01049},I:{"0":0.01337,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.28563,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.11074,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.76764},Q:{_:"14.9"},O:{"0":0.0848},H:{"0":0},L:{"0":21.1914}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CI.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CI.js deleted file mode 100644 index b75de0d8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CI.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"2":0.00329,"4":0.08886,"48":0.00329,"52":0.00329,"60":0.00329,"68":0.00658,"72":0.00329,"79":0.00329,"82":0.00329,"115":0.09544,"125":0.00329,"127":0.01316,"128":0.00658,"136":0.00658,"137":0.00329,"138":0.00329,"140":0.03291,"141":0.01316,"142":0.03291,"143":0.63845,"144":0.60225,"145":0.00329,_:"3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 61 62 63 64 65 66 67 69 70 71 73 74 75 76 77 78 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 129 130 131 132 133 134 135 139 146 147 3.5 3.6"},D:{"39":0.00658,"40":0.00658,"41":0.00658,"42":0.00658,"43":0.00658,"44":0.00658,"45":0.00658,"46":0.00658,"47":0.00987,"48":0.00658,"49":0.00987,"50":0.00658,"51":0.00658,"52":0.00658,"53":0.00658,"54":0.00658,"55":0.00658,"56":0.00987,"57":0.00658,"58":0.00658,"59":0.00658,"60":0.00658,"64":0.00329,"65":0.00658,"66":0.00329,"67":0.00987,"68":0.00329,"69":0.00658,"70":0.00329,"72":0.00658,"73":0.00987,"74":0.00658,"75":0.00987,"77":0.00329,"78":0.00329,"79":0.01975,"80":0.00658,"81":0.00658,"83":0.01316,"84":0.00329,"85":0.01975,"86":0.00658,"87":0.03949,"88":0.00329,"89":0.00658,"91":0.00987,"93":0.00658,"94":0.00658,"95":0.01316,"97":0.00329,"98":0.01975,"99":0.00329,"100":0.00329,"101":0.00329,"103":0.01316,"104":0.02633,"105":0.00329,"106":0.00658,"107":0.00329,"108":0.00329,"109":0.74706,"110":0.00658,"111":0.01975,"112":1.41513,"113":0.01646,"114":0.00987,"116":0.05924,"117":0.00329,"119":0.06253,"120":0.01646,"121":0.00658,"122":0.01975,"123":0.00329,"124":0.01316,"125":2.79406,"126":0.15139,"127":0.02304,"128":0.06582,"129":0.00987,"130":0.01316,"131":0.04937,"132":0.02304,"133":0.01316,"134":0.03949,"135":0.0362,"136":0.04607,"137":0.13164,"138":0.26657,"139":0.28303,"140":3.05405,"141":7.15793,"142":0.1481,"143":0.00987,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 71 76 90 92 96 102 115 118 144 145"},F:{"71":0.00329,"91":0.00658,"92":0.01316,"95":0.01646,"113":0.00329,"117":0.00658,"119":0.00329,"120":0.13164,"121":0.00987,"122":0.71744,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 115 116 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00329,"17":0.00329,"18":0.00987,"84":0.00329,"85":0.00987,"89":0.00329,"90":0.00987,"92":0.06582,"100":0.01646,"103":0.00987,"109":0.00658,"114":0.11848,"122":0.00658,"126":0.00658,"128":0.00658,"129":0.00329,"130":0.00329,"131":0.00987,"132":0.00329,"133":0.00329,"134":0.00658,"135":0.00329,"136":0.00658,"137":0.00987,"138":0.04607,"139":0.0362,"140":0.67136,"141":2.65913,"142":0.00987,_:"13 14 15 16 79 80 81 83 86 87 88 91 93 94 95 96 97 98 99 101 102 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 127"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 9.1 10.1 15.1 15.2-15.3 15.4 15.5 16.2 16.3 16.5 17.0 17.2 26.2","5.1":0.00329,"7.1":0.00329,"11.1":0.00329,"12.1":0.00329,"13.1":0.01975,"14.1":0.02633,"15.6":0.04607,"16.0":0.00329,"16.1":0.00658,"16.4":0.00329,"16.6":0.04278,"17.1":0.03949,"17.3":0.00329,"17.4":0.00329,"17.5":0.00658,"17.6":0.09544,"18.0":0.00329,"18.1":0.01646,"18.2":0.00329,"18.3":0.01975,"18.4":0.04278,"18.5-18.6":0.04607,"26.0":0.30606,"26.1":0.0362},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00117,"5.0-5.1":0,"6.0-6.1":0.00469,"7.0-7.1":0.00352,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01055,"10.0-10.2":0.00117,"10.3":0.01994,"11.0-11.2":0.29553,"11.3-11.4":0.00704,"12.0-12.1":0.00235,"12.2-12.5":0.05746,"13.0-13.1":0,"13.2":0.00586,"13.3":0.00235,"13.4-13.7":0.00938,"14.0-14.4":0.01994,"14.5-14.8":0.02111,"15.0-15.1":0.01994,"15.2-15.3":0.01525,"15.4":0.01759,"15.5":0.01994,"15.6-15.8":0.26035,"16.0":0.03518,"16.1":0.06567,"16.2":0.03401,"16.3":0.06098,"16.4":0.01525,"16.5":0.02697,"16.6-16.7":0.3483,"17.0":0.02463,"17.1":0.03753,"17.2":0.02697,"17.3":0.03987,"17.4":0.07036,"17.5":0.12079,"17.6-17.7":0.30491,"18.0":0.06919,"18.1":0.14307,"18.2":0.0774,"18.3":0.24862,"18.4":0.12783,"18.5-18.6":6.51805,"26.0":0.80567,"26.1":0.02932},P:{"22":0.02128,"23":0.02128,"24":0.03191,"25":0.06383,"26":0.02128,"27":0.0851,"28":0.82974,"29":0.05319,_:"4 20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.05319},I:{"0":0.11389,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":0.95699,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01975,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.24823},Q:{"14.9":0.01342},O:{"0":0.41596},H:{"0":0.15},L:{"0":60.05086}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CK.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CK.js deleted file mode 100644 index 14b1fb38..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CK.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.03929,"134":0.00437,"140":0.00437,"142":0.00437,"143":0.16154,"144":0.15063,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 135 136 137 138 139 141 145 146 147 3.5 3.6"},D:{"47":0.00218,"48":0.00218,"79":0.07641,"87":0.00655,"105":0.00655,"109":0.04148,"116":0.00437,"122":0.03929,"125":0.08077,"128":0.02401,"129":0.00437,"130":0.00218,"133":0.00437,"134":0.00218,"135":0.00437,"136":0.00218,"137":0.00655,"138":0.07204,"139":0.22048,"140":3.73293,"141":10.09638,"142":0.20957,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 107 108 110 111 112 113 114 115 117 118 119 120 121 123 124 126 127 131 132 143 144 145"},F:{"122":0.01092,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.0131,"134":0.00218,"135":0.00218,"138":0.02838,"139":0.00218,"140":0.38203,"141":1.94505,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 136 137 142"},E:{"15":0.00218,_:"0 4 5 6 7 8 9 10 11 12 13 14 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.3 16.4 17.0 17.3 17.5 18.0 26.1 26.2","14.1":0.00218,"15.6":0.0895,"16.2":0.00873,"16.5":0.00655,"16.6":0.06112,"17.1":0.0262,"17.2":0.00655,"17.4":0.03493,"17.6":0.08732,"18.1":0.00437,"18.2":0.13098,"18.3":0.02838,"18.4":0.00437,"18.5-18.6":0.04584,"26.0":0.09169},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00158,"5.0-5.1":0,"6.0-6.1":0.0063,"7.0-7.1":0.00473,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01418,"10.0-10.2":0.00158,"10.3":0.02679,"11.0-11.2":0.39713,"11.3-11.4":0.00946,"12.0-12.1":0.00315,"12.2-12.5":0.07722,"13.0-13.1":0,"13.2":0.00788,"13.3":0.00315,"13.4-13.7":0.01261,"14.0-14.4":0.02679,"14.5-14.8":0.02837,"15.0-15.1":0.02679,"15.2-15.3":0.02049,"15.4":0.02364,"15.5":0.02679,"15.6-15.8":0.34985,"16.0":0.04728,"16.1":0.08825,"16.2":0.0457,"16.3":0.08195,"16.4":0.02049,"16.5":0.03625,"16.6-16.7":0.46804,"17.0":0.03309,"17.1":0.05043,"17.2":0.03625,"17.3":0.05358,"17.4":0.09455,"17.5":0.16232,"17.6-17.7":0.40974,"18.0":0.09298,"18.1":0.19226,"18.2":0.10401,"18.3":0.33409,"18.4":0.17177,"18.5-18.6":8.75889,"26.0":1.08265,"26.1":0.0394},P:{"4":41.10715,"22":0.01011,"23":0.01011,"24":0.04046,"25":0.01011,"27":0.05057,"28":2.41747,"29":0.11126,_:"20 21 26 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01011},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.03127,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.12507},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":21.3389}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CL.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CL.js deleted file mode 100644 index 3b0fb4a9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CL.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"3":0.00308,"4":0.00615,"52":0.00308,"78":0.00308,"91":0.00308,"115":0.02462,"120":0.00615,"125":0.00308,"128":0.00308,"136":0.00308,"139":0.00308,"140":0.00923,"141":0.00615,"142":0.00923,"143":0.32309,"144":0.23385,"145":0.00308,_:"2 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 122 123 124 126 127 129 130 131 132 133 134 135 137 138 146 147 3.5 3.6"},D:{"29":0.00615,"38":0.00308,"39":0.00923,"40":0.00923,"41":0.00923,"42":0.00923,"43":0.00923,"44":0.00923,"45":0.00923,"46":0.00923,"47":0.00923,"48":0.02769,"49":0.01231,"50":0.00923,"51":0.00923,"52":0.00923,"53":0.00923,"54":0.00923,"55":0.00923,"56":0.00923,"57":0.00923,"58":0.01231,"59":0.00923,"60":0.00923,"70":0.00615,"74":0.00308,"79":0.01539,"87":0.00923,"89":0.00308,"91":0.00308,"96":0.00308,"97":0.00308,"99":0.00308,"102":0.00615,"103":0.00923,"104":0.01231,"106":0.00308,"108":0.00923,"109":0.28001,"110":0.00308,"111":0.01539,"112":3.47701,"114":0.00923,"115":0.00308,"116":0.04616,"117":0.00308,"118":0.00308,"119":0.06462,"120":0.01231,"121":0.00615,"122":0.02769,"123":0.00923,"124":0.01231,"125":5.36629,"126":0.35078,"127":0.01231,"128":0.06154,"129":0.02154,"130":0.00615,"131":0.05231,"132":0.01539,"133":0.02462,"134":0.03077,"135":0.02462,"136":0.02462,"137":0.03692,"138":0.20001,"139":0.68002,"140":3.27085,"141":8.41252,"142":0.08308,"143":0.00308,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 61 62 63 64 65 66 67 68 69 71 72 73 75 76 77 78 80 81 83 84 85 86 88 90 92 93 94 95 98 100 101 105 107 113 144 145"},F:{"91":0.00308,"92":0.00308,"95":0.00308,"114":0.00308,"119":0.00308,"120":0.06154,"121":0.25539,"122":1.44927,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00308,"109":0.01231,"114":0.00923,"131":0.00615,"133":0.00308,"134":0.02462,"135":0.00308,"136":0.00308,"137":0.00308,"138":0.01231,"139":0.01846,"140":0.37232,"141":1.70774,"142":0.00308,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 132"},E:{"4":0.00615,_:"0 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 17.0 26.2","13.1":0.00615,"14.1":0.00615,"15.6":0.01846,"16.1":0.00308,"16.3":0.00308,"16.4":0.01846,"16.5":0.00308,"16.6":0.01846,"17.1":0.01231,"17.2":0.00308,"17.3":0.00308,"17.4":0.00923,"17.5":0.01539,"17.6":0.03385,"18.0":0.00615,"18.1":0.00615,"18.2":0.00615,"18.3":0.01231,"18.4":0.01231,"18.5-18.6":0.03385,"26.0":0.1477,"26.1":0.00923},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00031,"5.0-5.1":0,"6.0-6.1":0.00123,"7.0-7.1":0.00093,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00278,"10.0-10.2":0.00031,"10.3":0.00525,"11.0-11.2":0.0778,"11.3-11.4":0.00185,"12.0-12.1":0.00062,"12.2-12.5":0.01513,"13.0-13.1":0,"13.2":0.00154,"13.3":0.00062,"13.4-13.7":0.00247,"14.0-14.4":0.00525,"14.5-14.8":0.00556,"15.0-15.1":0.00525,"15.2-15.3":0.00401,"15.4":0.00463,"15.5":0.00525,"15.6-15.8":0.06854,"16.0":0.00926,"16.1":0.01729,"16.2":0.00895,"16.3":0.01605,"16.4":0.00401,"16.5":0.0071,"16.6-16.7":0.09169,"17.0":0.00648,"17.1":0.00988,"17.2":0.0071,"17.3":0.0105,"17.4":0.01852,"17.5":0.0318,"17.6-17.7":0.08027,"18.0":0.01821,"18.1":0.03766,"18.2":0.02038,"18.3":0.06545,"18.4":0.03365,"18.5-18.6":1.71587,"26.0":0.21209,"26.1":0.00772},P:{"4":0.0204,"20":0.0102,"21":0.0204,"22":0.0306,"23":0.0306,"24":0.0204,"25":0.0714,"26":0.13259,"27":0.08159,"28":1.90728,"29":0.13259,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.0306,"19.0":0.0102},I:{"0":0.01382,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.05538,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.09341,"9":0.01495,"10":0.03363,"11":0.22418,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.0623},Q:{_:"14.9"},O:{"0":0.00692},H:{"0":0},L:{"0":64.92712}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CM.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CM.js deleted file mode 100644 index cff3f555..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CM.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"4":0.00311,"34":0.00311,"43":0.00311,"45":0.00311,"47":0.00311,"48":0.00311,"50":0.00311,"51":0.00622,"52":0.00622,"56":0.00311,"57":0.00311,"58":0.00311,"59":0.00311,"61":0.00311,"62":0.00311,"63":0.00311,"67":0.00311,"68":0.00311,"69":0.00311,"72":0.01243,"76":0.00311,"78":0.00311,"79":0.00311,"81":0.00311,"82":0.00311,"85":0.00311,"88":0.00311,"90":0.00311,"94":0.00622,"95":0.00311,"98":0.00311,"103":0.00311,"104":0.00311,"112":0.00311,"113":0.00311,"114":0.00622,"115":0.22378,"116":0.00311,"117":0.00311,"120":0.00311,"123":0.00622,"124":0.00622,"125":0.01243,"127":0.04973,"128":0.02486,"130":0.00311,"131":0.00311,"132":0.00311,"133":0.00311,"134":0.00622,"135":0.00311,"136":0.01243,"137":0.00622,"138":0.03108,"139":0.01554,"140":0.06838,"141":0.03419,"142":0.06216,"143":1.31468,"144":0.80497,"145":0.02486,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 49 53 54 55 60 64 65 66 70 71 73 74 75 77 80 83 84 86 87 89 91 92 93 96 97 99 100 101 102 105 106 107 108 109 110 111 118 119 121 122 126 129 146 147 3.5 3.6"},D:{"38":0.00311,"40":0.00311,"41":0.00311,"43":0.00311,"45":0.00311,"46":0.00311,"47":0.00311,"48":0.00311,"49":0.00311,"50":0.00311,"54":0.00311,"55":0.00311,"56":0.01554,"57":0.00311,"58":0.00311,"59":0.00311,"62":0.00311,"65":0.00311,"67":0.00932,"68":0.00311,"69":0.00622,"70":0.00932,"71":0.00311,"72":0.01243,"73":0.00932,"74":0.02176,"75":0.01554,"76":0.00311,"77":0.01243,"78":0.00311,"79":0.00311,"80":0.00932,"81":0.00622,"83":0.00622,"85":0.01554,"86":0.00932,"87":0.00311,"88":0.00311,"89":0.02176,"90":0.00622,"91":0.00311,"92":0.00311,"93":0.01554,"94":0.00311,"95":0.00311,"96":0.00622,"98":0.00311,"99":0.00311,"101":0.00311,"102":0.00622,"103":0.02797,"104":0.02797,"105":0.00622,"106":0.00622,"107":0.00311,"108":0.00622,"109":0.68376,"110":0.00311,"111":0.01554,"112":0.00622,"113":0.00311,"114":0.14297,"115":0.00622,"116":0.04973,"117":0.00622,"118":0.00622,"119":0.04973,"120":0.01865,"121":0.00932,"122":0.07148,"123":0.02797,"124":0.02486,"125":0.16162,"126":0.0373,"127":0.01865,"128":0.06216,"129":0.01554,"130":0.0373,"131":0.09013,"132":0.03419,"133":0.04351,"134":0.05905,"135":0.0373,"136":0.05284,"137":0.14297,"138":0.38228,"139":0.42269,"140":3.39083,"141":6.11344,"142":0.09324,"143":0.00622,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 42 44 51 52 53 60 61 63 64 66 84 97 100 144 145"},F:{"34":0.00311,"36":0.00311,"42":0.00311,"44":0.00311,"47":0.00311,"64":0.00311,"79":0.01554,"90":0.02176,"91":0.01554,"92":0.01243,"95":0.02797,"107":0.00311,"113":0.00311,"116":0.01554,"117":0.00311,"118":0.00311,"119":0.01554,"120":0.22688,"121":0.01243,"122":1.1282,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 37 38 39 40 41 43 45 46 48 49 50 51 52 53 54 55 56 57 58 60 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 108 109 110 111 112 114 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01554,"13":0.00311,"14":0.01865,"15":0.00311,"16":0.00622,"17":0.01243,"18":0.04973,"84":0.02486,"85":0.00311,"89":0.02486,"90":0.01243,"92":0.1181,"100":0.0373,"109":0.00311,"114":0.05905,"115":0.00311,"118":0.00311,"119":0.00311,"120":0.00311,"121":0.00311,"122":0.01865,"124":0.00311,"126":0.00311,"128":0.00311,"129":0.00622,"130":0.00932,"131":0.00932,"132":0.00622,"133":0.00622,"134":0.00622,"135":0.0373,"136":0.00932,"137":0.02486,"138":0.06527,"139":0.1958,"140":0.59052,"141":1.84926,"142":0.00311,_:"79 80 81 83 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 116 117 123 125 127"},E:{"10":0.00622,"13":0.00311,"14":0.00311,_:"0 4 5 6 7 8 9 11 12 15 3.1 3.2 6.1 7.1 9.1 10.1 15.2-15.3 15.5 16.0 16.1 16.2 16.5 17.0 26.2","5.1":0.01243,"11.1":0.01865,"12.1":0.00311,"13.1":0.02176,"14.1":0.00932,"15.1":0.00311,"15.4":0.00311,"15.6":0.0373,"16.3":0.00311,"16.4":0.00311,"16.6":0.0404,"17.1":0.01243,"17.2":0.00311,"17.3":0.00311,"17.4":0.02797,"17.5":0.00311,"17.6":0.04662,"18.0":0.00622,"18.1":0.00932,"18.2":0.05594,"18.3":0.00311,"18.4":0.00622,"18.5-18.6":0.0373,"26.0":0.09013,"26.1":0.00311},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00088,"5.0-5.1":0,"6.0-6.1":0.00354,"7.0-7.1":0.00265,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00796,"10.0-10.2":0.00088,"10.3":0.01504,"11.0-11.2":0.223,"11.3-11.4":0.00531,"12.0-12.1":0.00177,"12.2-12.5":0.04336,"13.0-13.1":0,"13.2":0.00442,"13.3":0.00177,"13.4-13.7":0.00708,"14.0-14.4":0.01504,"14.5-14.8":0.01593,"15.0-15.1":0.01504,"15.2-15.3":0.0115,"15.4":0.01327,"15.5":0.01504,"15.6-15.8":0.19646,"16.0":0.02655,"16.1":0.04956,"16.2":0.02566,"16.3":0.04602,"16.4":0.0115,"16.5":0.02035,"16.6-16.7":0.26283,"17.0":0.01858,"17.1":0.02832,"17.2":0.02035,"17.3":0.03009,"17.4":0.0531,"17.5":0.09115,"17.6-17.7":0.23008,"18.0":0.05221,"18.1":0.10796,"18.2":0.05841,"18.3":0.18761,"18.4":0.09646,"18.5-18.6":4.91846,"26.0":0.60795,"26.1":0.02212},P:{"4":0.01059,"21":0.01059,"22":0.01059,"23":0.02118,"24":0.02118,"25":0.03177,"26":0.1059,"27":0.09531,"28":0.44479,"29":0.02118,_:"20 5.0-5.4 6.2-6.4 8.2 10.1 12.0 13.0 14.0 17.0 18.0 19.0","7.2-7.4":0.03177,"9.2":0.02118,"11.1-11.2":0.01059,"15.0":0.01059,"16.0":0.02118},I:{"0":0.02753,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":4.09617,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00311,"11":0.06216,_:"6 7 9 10 5.5"},S:{"2.5":0.00689,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.97177},Q:{_:"14.9"},O:{"0":0.12406},H:{"0":1.7},L:{"0":61.79358}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CN.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CN.js deleted file mode 100644 index 257083fd..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CN.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"5":0.01288,"43":1.08802,"115":0.04507,"136":0.00644,"140":0.00644,"141":0.00644,"142":0.01288,"143":0.12876,"144":0.12876,_:"2 3 4 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 137 138 139 145 146 147 3.5 3.6"},D:{"39":0.00644,"40":0.00644,"41":0.00644,"42":0.00644,"43":0.00644,"44":0.00644,"45":0.01288,"46":0.00644,"47":0.00644,"48":0.02575,"49":0.01931,"50":0.00644,"51":0.00644,"52":0.00644,"53":0.01288,"54":0.00644,"55":0.00644,"56":0.00644,"57":0.01288,"58":0.00644,"59":0.00644,"60":0.00644,"63":0.00644,"67":0.00644,"69":0.11588,"70":0.03863,"73":0.01288,"75":0.00644,"78":0.01931,"79":0.06438,"80":0.01931,"81":0.01288,"83":0.04507,"84":0.00644,"85":0.01288,"86":0.0515,"87":0.06438,"88":0.00644,"89":0.01288,"90":0.00644,"91":0.01288,"92":0.09013,"94":0.00644,"95":0.01288,"96":0.00644,"97":0.06438,"98":0.19314,"99":0.06438,"100":0.00644,"101":0.07726,"102":0.00644,"103":0.01288,"104":0.00644,"105":1.661,"106":0.34765,"107":0.10945,"108":0.07082,"109":0.52792,"110":1.26185,"111":0.62449,"112":0.36053,"113":0.54079,"114":1.75757,"115":0.08369,"116":0.03219,"117":0.10945,"118":1.25541,"119":0.20602,"120":0.61805,"121":0.78544,"122":0.66311,"123":0.38628,"124":0.22533,"125":0.97214,"126":0.63092,"127":0.54723,"128":0.63736,"129":0.68887,"130":0.43135,"131":0.12876,"132":0.06438,"133":0.09657,"134":28.20488,"135":0.07082,"136":0.03219,"137":0.12876,"138":0.19958,"139":0.15451,"140":1.82195,"141":1.52581,"142":0.01288,"143":0.02575,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 64 65 66 68 71 72 74 76 77 93 144 145"},F:{"122":0.01288,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00644,"89":0.00644,"92":0.0515,"100":0.01288,"106":0.01931,"107":0.00644,"108":0.00644,"109":0.07082,"110":0.00644,"111":0.00644,"112":0.01288,"113":0.03863,"114":0.03863,"115":0.02575,"116":0.01288,"117":0.01288,"118":0.01288,"119":0.01288,"120":0.29615,"121":0.01931,"122":0.03863,"123":0.02575,"124":0.01931,"125":0.02575,"126":0.05794,"127":0.05794,"128":0.03219,"129":0.03219,"130":0.03863,"131":0.09013,"132":0.03863,"133":0.06438,"134":0.06438,"135":0.06438,"136":0.07082,"137":0.09013,"138":0.16095,"139":0.21889,"140":1.10734,"141":4.2362,"142":0.01288,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 90 91 93 94 95 96 97 98 99 101 102 103 104 105"},E:{"13":0.00644,"14":0.01931,"15":0.00644,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 17.0 26.1 26.2","13.1":0.01931,"14.1":0.02575,"15.1":0.00644,"15.2-15.3":0.00644,"15.4":0.01288,"15.5":0.01288,"15.6":0.07082,"16.0":0.00644,"16.1":0.01931,"16.2":0.01288,"16.3":0.01931,"16.4":0.00644,"16.5":0.00644,"16.6":0.07726,"17.1":0.03219,"17.2":0.00644,"17.3":0.00644,"17.4":0.01288,"17.5":0.02575,"17.6":0.04507,"18.0":0.01288,"18.1":0.01288,"18.2":0.00644,"18.3":0.03219,"18.4":0.01288,"18.5-18.6":0.05794,"26.0":0.10301},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00069,"5.0-5.1":0,"6.0-6.1":0.00275,"7.0-7.1":0.00206,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00619,"10.0-10.2":0.00069,"10.3":0.01169,"11.0-11.2":0.17328,"11.3-11.4":0.00413,"12.0-12.1":0.00138,"12.2-12.5":0.03369,"13.0-13.1":0,"13.2":0.00344,"13.3":0.00138,"13.4-13.7":0.0055,"14.0-14.4":0.01169,"14.5-14.8":0.01238,"15.0-15.1":0.01169,"15.2-15.3":0.00894,"15.4":0.01031,"15.5":0.01169,"15.6-15.8":0.15265,"16.0":0.02063,"16.1":0.03851,"16.2":0.01994,"16.3":0.03576,"16.4":0.00894,"16.5":0.01582,"16.6-16.7":0.20423,"17.0":0.01444,"17.1":0.022,"17.2":0.01582,"17.3":0.02338,"17.4":0.04126,"17.5":0.07083,"17.6-17.7":0.17878,"18.0":0.04057,"18.1":0.08389,"18.2":0.04538,"18.3":0.14578,"18.4":0.07495,"18.5-18.6":3.82184,"26.0":0.4724,"26.1":0.01719},P:{"27":0.01287,"28":0.14162,"29":0.01287,_:"4 20 21 22 23 24 25 26 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":3.57379,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00072,"4.4":0,"4.4.3-4.4.4":0.00179},K:{"0":0.01424,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.20129,"11":2.81813,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.11395},Q:{"14.9":1.4885},O:{"0":3.24763},H:{"0":0},L:{"0":19.51747}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CO.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CO.js deleted file mode 100644 index b36c0c7d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CO.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"4":0.07479,"115":0.02992,"120":0.00997,"123":0.00499,"125":0.00997,"128":0.00499,"136":0.00499,"137":0.00499,"140":0.01496,"141":0.00499,"142":0.00997,"143":0.33406,"144":0.3191,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 122 124 126 127 129 130 131 132 133 134 135 138 139 145 146 147 3.5 3.6"},D:{"39":0.00997,"40":0.00997,"41":0.00997,"42":0.00997,"43":0.00997,"44":0.00997,"45":0.00997,"46":0.00997,"47":0.00997,"48":0.00997,"49":0.00997,"50":0.00997,"51":0.00997,"52":0.00997,"53":0.00997,"54":0.00997,"55":0.00997,"56":0.00997,"57":0.00997,"58":0.00997,"59":0.00997,"60":0.00997,"79":0.0349,"85":0.00499,"87":0.02493,"88":0.00499,"94":0.00499,"97":0.00997,"100":0.00499,"101":0.00499,"102":0.00499,"103":0.04487,"104":0.00499,"106":0.00997,"108":0.01994,"109":0.44375,"110":0.00499,"111":0.01496,"112":7.92774,"114":0.01994,"116":0.04986,"119":0.09473,"120":0.01994,"121":0.01496,"122":0.06482,"123":0.02493,"124":0.01496,"125":5.49956,"126":0.67311,"127":0.02493,"128":0.08975,"129":0.00997,"130":0.01496,"131":0.07479,"132":0.0698,"133":0.0349,"134":0.02992,"135":0.04986,"136":0.05983,"137":0.05983,"138":0.2493,"139":0.32409,"140":5.92835,"141":14.34472,"142":0.17451,"143":0.00499,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 86 89 90 91 92 93 95 96 98 99 105 107 113 115 117 118 144 145"},F:{"85":0.00499,"91":0.00499,"92":0.00997,"95":0.00997,"120":0.06482,"121":0.18448,"122":1.25149,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00997,"109":0.00499,"114":0.02992,"122":0.00499,"128":0.00499,"130":0.00499,"131":0.00499,"132":0.00499,"133":0.00499,"134":0.0349,"135":0.00499,"136":0.00499,"137":0.00499,"138":0.01994,"139":0.02493,"140":0.51854,"141":2.54785,"142":0.00997,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 126 127 129"},E:{"4":0.00499,_:"0 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.4 15.5 16.0 16.1 16.2 16.5 17.0 17.2 26.2","5.1":0.00499,"13.1":0.00997,"14.1":0.00499,"15.2-15.3":0.00499,"15.6":0.0349,"16.3":0.00499,"16.4":0.00499,"16.6":0.02992,"17.1":0.01496,"17.3":0.00499,"17.4":0.00499,"17.5":0.01496,"17.6":0.05485,"18.0":0.00499,"18.1":0.00499,"18.2":0.00499,"18.3":0.01496,"18.4":0.01496,"18.5-18.6":0.0698,"26.0":0.23933,"26.1":0.00997},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00126,"5.0-5.1":0,"6.0-6.1":0.00503,"7.0-7.1":0.00377,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01132,"10.0-10.2":0.00126,"10.3":0.02138,"11.0-11.2":0.31696,"11.3-11.4":0.00755,"12.0-12.1":0.00252,"12.2-12.5":0.06163,"13.0-13.1":0,"13.2":0.00629,"13.3":0.00252,"13.4-13.7":0.01006,"14.0-14.4":0.02138,"14.5-14.8":0.02264,"15.0-15.1":0.02138,"15.2-15.3":0.01635,"15.4":0.01887,"15.5":0.02138,"15.6-15.8":0.27922,"16.0":0.03773,"16.1":0.07043,"16.2":0.03648,"16.3":0.0654,"16.4":0.01635,"16.5":0.02893,"16.6-16.7":0.37356,"17.0":0.02641,"17.1":0.04025,"17.2":0.02893,"17.3":0.04276,"17.4":0.07547,"17.5":0.12955,"17.6-17.7":0.32702,"18.0":0.07421,"18.1":0.15345,"18.2":0.08301,"18.3":0.26665,"18.4":0.1371,"18.5-18.6":6.99064,"26.0":0.86408,"26.1":0.03144},P:{"4":0.04066,"20":0.01016,"22":0.01016,"23":0.02033,"24":0.01016,"25":0.01016,"26":0.03049,"27":0.03049,"28":0.82328,"29":0.06098,_:"21 6.2-6.4 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.01016,"7.2-7.4":0.03049,"8.2":0.02033},I:{"0":0.01502,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.08522,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.21938,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.16543},Q:{_:"14.9"},O:{"0":0.00501},H:{"0":0},L:{"0":41.08224}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CR.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CR.js deleted file mode 100644 index a516e386..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CR.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.48356,"120":0.02198,"125":0.0055,"128":0.01649,"135":0.0055,"136":0.02198,"138":0.0055,"139":0.0055,"140":0.03297,"141":0.04946,"142":0.04396,"143":1.4342,"144":1.29133,"145":0.0055,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 122 123 124 126 127 129 130 131 132 133 134 137 146 147 3.5 3.6"},D:{"39":0.0055,"40":0.0055,"41":0.0055,"42":0.0055,"43":0.0055,"44":0.0055,"45":0.0055,"46":0.0055,"47":0.01099,"48":0.0055,"49":0.0055,"50":0.0055,"51":0.0055,"52":0.0055,"53":0.0055,"54":0.0055,"55":0.0055,"56":0.0055,"57":0.0055,"58":0.0055,"59":0.0055,"60":0.0055,"65":0.0055,"79":0.02198,"80":0.0055,"83":0.0055,"87":0.01099,"91":0.0055,"97":0.01099,"98":0.06594,"101":0.0055,"103":0.02198,"104":0.01099,"108":0.01099,"109":0.20332,"110":0.01649,"111":0.01099,"112":2.36285,"114":0.0055,"115":0.0055,"116":0.03847,"117":0.0055,"118":0.0055,"119":0.02748,"120":0.02748,"121":0.0055,"122":0.04396,"123":0.0055,"124":0.02748,"125":4.8411,"126":0.23629,"127":0.01649,"128":0.13738,"129":0.01649,"130":0.01649,"131":0.03847,"132":0.03847,"133":0.04396,"134":0.09342,"135":0.03297,"136":0.02748,"137":0.10441,"138":0.24178,"139":0.97262,"140":6.78633,"141":17.35321,"142":0.2198,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 78 81 84 85 86 88 89 90 92 93 94 95 96 99 100 102 105 106 107 113 143 144 145"},F:{"91":0.0055,"92":0.02198,"95":0.01099,"120":0.08792,"121":0.23629,"122":2.09909,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.01099,"109":0.0055,"114":0.28574,"122":0.0055,"126":0.0055,"129":0.0055,"131":0.03847,"132":0.0055,"133":0.0055,"134":0.06045,"136":0.0055,"137":0.01649,"138":0.02748,"139":0.03297,"140":0.89019,"141":4.65976,"142":0.02198,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 127 128 130 135"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 15.5 16.0 17.0 26.2","5.1":0.0055,"13.1":0.01099,"14.1":0.02198,"15.1":0.0055,"15.6":0.06594,"16.1":0.0055,"16.2":0.0055,"16.3":0.01099,"16.4":0.0055,"16.5":0.01099,"16.6":0.09342,"17.1":0.29124,"17.2":0.01099,"17.3":0.0055,"17.4":0.01099,"17.5":0.09342,"17.6":0.12639,"18.0":0.04396,"18.1":0.01099,"18.2":0.01649,"18.3":0.06045,"18.4":0.02748,"18.5-18.6":0.09342,"26.0":0.74183,"26.1":0.02748},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00111,"5.0-5.1":0,"6.0-6.1":0.00444,"7.0-7.1":0.00333,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00999,"10.0-10.2":0.00111,"10.3":0.01888,"11.0-11.2":0.27984,"11.3-11.4":0.00666,"12.0-12.1":0.00222,"12.2-12.5":0.05441,"13.0-13.1":0,"13.2":0.00555,"13.3":0.00222,"13.4-13.7":0.00888,"14.0-14.4":0.01888,"14.5-14.8":0.01999,"15.0-15.1":0.01888,"15.2-15.3":0.01444,"15.4":0.01666,"15.5":0.01888,"15.6-15.8":0.24653,"16.0":0.03331,"16.1":0.06219,"16.2":0.0322,"16.3":0.05775,"16.4":0.01444,"16.5":0.02554,"16.6-16.7":0.32981,"17.0":0.02332,"17.1":0.03554,"17.2":0.02554,"17.3":0.03776,"17.4":0.06663,"17.5":0.11438,"17.6-17.7":0.28873,"18.0":0.06552,"18.1":0.13548,"18.2":0.07329,"18.3":0.23542,"18.4":0.12104,"18.5-18.6":6.17206,"26.0":0.7629,"26.1":0.02776},P:{"4":0.02061,"21":0.01031,"22":0.01031,"23":0.01031,"24":0.02061,"25":0.01031,"26":0.08244,"27":0.04122,"28":2.08165,"29":0.14427,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.03092,"11.1-11.2":0.01031},I:{"0":0.04049,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.22075,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.42347},Q:{_:"14.9"},O:{"0":0.02703},H:{"0":0},L:{"0":34.16356}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CU.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CU.js deleted file mode 100644 index daa7d09c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CU.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"4":0.51761,"43":0.00655,"45":0.00983,"47":0.00983,"48":0.01966,"50":0.00655,"51":0.00328,"52":0.00983,"54":0.04914,"56":0.00328,"57":0.04914,"60":0.0131,"62":0.00328,"63":0.00655,"64":0.00328,"65":0.00328,"66":0.00328,"67":0.00328,"68":0.01638,"70":0.00328,"72":0.01638,"78":0.00328,"80":0.00328,"81":0.00328,"82":0.00328,"84":0.00328,"85":0.00328,"87":0.00328,"88":0.00328,"89":0.0131,"91":0.00328,"92":0.00328,"93":0.00655,"94":0.00328,"95":0.00655,"96":0.00328,"97":0.00983,"98":0.00328,"99":0.00655,"100":0.02293,"102":0.00655,"103":0.00655,"104":0.00655,"105":0.00328,"106":0.00328,"108":0.00655,"109":0.00655,"110":0.00655,"111":0.0131,"112":0.0131,"113":0.0131,"114":0.00328,"115":1.09418,"116":0.00328,"117":0.00328,"118":0.00328,"119":0.00328,"120":0.00655,"121":0.00655,"122":0.01638,"123":0.00655,"124":0.00983,"125":0.00328,"126":0.04259,"127":0.21294,"128":0.03931,"129":0.00983,"130":0.00983,"131":0.02948,"132":0.00655,"133":0.01966,"134":0.06224,"135":0.03276,"136":0.04586,"137":0.03931,"138":0.04914,"139":0.04259,"140":0.27846,"141":0.08518,"142":0.19984,"143":3.0172,"144":2.43079,"145":0.04586,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 46 49 53 55 58 59 61 69 71 73 74 75 76 77 79 83 86 90 101 107 146 147 3.5 3.6"},D:{"33":0.00328,"37":0.00328,"49":0.00655,"63":0.00328,"65":0.00328,"68":0.00328,"70":0.00983,"71":0.00983,"72":0.00328,"73":0.00328,"74":0.00655,"75":0.00328,"77":0.00328,"78":0.00328,"79":0.00655,"80":0.00328,"81":0.0131,"86":0.00655,"87":0.00655,"88":0.08518,"89":0.00983,"90":0.07535,"91":0.00655,"92":0.00983,"93":0.00328,"94":0.0131,"95":0.02948,"96":0.00983,"97":0.00983,"98":0.04586,"99":0.00328,"100":0.00328,"101":0.00655,"102":0.00983,"103":0.00983,"104":0.04259,"105":0.00655,"106":0.01638,"108":0.01966,"109":0.43243,"110":0.00655,"111":0.02948,"112":0.00655,"113":0.00983,"114":0.01966,"115":0.00983,"116":0.04914,"117":0.00983,"118":0.05569,"119":0.02293,"120":0.03276,"121":0.0131,"122":0.01966,"123":0.02948,"124":0.0131,"125":0.10811,"126":0.12449,"127":0.02293,"128":0.01966,"129":0.00983,"130":0.01966,"131":0.08845,"132":0.02621,"133":0.03931,"134":0.07207,"135":0.04914,"136":0.0688,"137":0.12121,"138":0.26863,"139":0.27846,"140":1.75266,"141":3.98034,"142":0.04914,"143":0.00328,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 64 66 67 69 76 83 84 85 107 144 145"},F:{"34":0.00328,"36":0.00328,"45":0.00328,"48":0.00328,"62":0.02293,"79":0.02948,"90":0.00328,"91":0.03931,"92":0.01966,"95":0.06552,"96":0.00328,"108":0.00655,"109":0.00328,"112":0.00983,"114":0.00655,"115":0.00328,"117":0.00328,"118":0.00655,"119":0.02621,"120":0.13432,"121":0.16708,"122":0.82883,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 37 38 39 40 41 42 43 44 46 47 49 50 51 52 53 54 55 56 57 58 60 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 93 94 97 98 99 100 101 102 103 104 105 106 107 110 111 113 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.00983,"14":0.0131,"15":0.00655,"16":0.00655,"17":0.00983,"18":0.03604,"80":0.00328,"84":0.02293,"89":0.00983,"90":0.02621,"91":0.00328,"92":0.1638,"96":0.00655,"100":0.0688,"103":0.00328,"109":0.00655,"113":0.00328,"114":0.06552,"115":0.00328,"117":0.00328,"121":0.00328,"122":0.0688,"123":0.00328,"125":0.00655,"126":0.00328,"128":0.00328,"129":0.00983,"130":0.01638,"131":0.04914,"132":0.01638,"133":0.00983,"134":0.02621,"135":0.03931,"136":0.01638,"137":0.08518,"138":0.08518,"139":0.11138,"140":0.59951,"141":3.87551,"142":0.00655,_:"12 79 81 83 85 86 87 88 93 94 95 97 98 99 101 102 104 105 106 107 108 110 111 112 116 118 119 120 124 127"},E:{"11":0.02621,_:"0 4 5 6 7 8 9 10 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 15.2-15.3 15.4 16.0 16.1 16.2 16.5 17.0 17.2 17.3 17.4 18.1 18.4 26.1 26.2","5.1":0.02621,"11.1":0.00655,"13.1":0.01638,"14.1":0.00655,"15.1":0.00328,"15.5":0.00328,"15.6":0.01966,"16.3":0.00328,"16.4":0.00328,"16.6":0.00983,"17.1":0.00328,"17.5":0.00328,"17.6":0.02621,"18.0":0.00328,"18.2":0.00328,"18.3":0.00328,"18.5-18.6":0.00655,"26.0":0.02621},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0003,"5.0-5.1":0,"6.0-6.1":0.0012,"7.0-7.1":0.0009,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0027,"10.0-10.2":0.0003,"10.3":0.0051,"11.0-11.2":0.07556,"11.3-11.4":0.0018,"12.0-12.1":0.0006,"12.2-12.5":0.01469,"13.0-13.1":0,"13.2":0.0015,"13.3":0.0006,"13.4-13.7":0.0024,"14.0-14.4":0.0051,"14.5-14.8":0.0054,"15.0-15.1":0.0051,"15.2-15.3":0.0039,"15.4":0.0045,"15.5":0.0051,"15.6-15.8":0.06657,"16.0":0.009,"16.1":0.01679,"16.2":0.0087,"16.3":0.01559,"16.4":0.0039,"16.5":0.0069,"16.6-16.7":0.08905,"17.0":0.0063,"17.1":0.0096,"17.2":0.0069,"17.3":0.01019,"17.4":0.01799,"17.5":0.03088,"17.6-17.7":0.07796,"18.0":0.01769,"18.1":0.03658,"18.2":0.01979,"18.3":0.06357,"18.4":0.03268,"18.5-18.6":1.66654,"26.0":0.20599,"26.1":0.0075},P:{"4":0.0404,"20":0.0101,"21":0.0606,"22":0.0707,"23":0.0303,"24":0.1515,"25":0.19189,"26":0.0808,"27":0.1616,"28":1.03017,"29":0.0404,"5.0-5.4":0.0101,"6.2-6.4":0.0101,"7.2-7.4":0.1313,_:"8.2 10.1 12.0","9.2":0.0101,"11.1-11.2":0.0202,"13.0":0.0101,"14.0":0.0505,"15.0":0.0101,"16.0":0.0505,"17.0":0.0202,"18.0":0.0101,"19.0":0.0303},I:{"0":0.02014,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.67902,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00437,"11":0.00874,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.33615},Q:{"14.9":0.00672},O:{"0":0.03362},H:{"0":0},L:{"0":68.42336}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CV.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CV.js deleted file mode 100644 index 3f5cbc42..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CV.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"72":0.00431,"78":0.00431,"82":0.00431,"106":0.00431,"112":0.0345,"113":0.00431,"114":0.00431,"115":0.09489,"116":0.00863,"127":0.01725,"131":0.00431,"135":0.01294,"136":0.00431,"140":0.01294,"141":0.0345,"143":0.31054,"144":0.36661,"145":0.00431,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 107 108 109 110 111 117 118 119 120 121 122 123 124 125 126 128 129 130 132 133 134 137 138 139 142 146 147 3.5 3.6"},D:{"37":0.00431,"39":0.00431,"40":0.00863,"41":0.02157,"42":0.00863,"43":0.01294,"44":0.01294,"45":0.01294,"46":0.01294,"47":0.01294,"48":0.02157,"49":0.00431,"50":0.04744,"51":0.00431,"52":0.00863,"53":0.01294,"54":0.02157,"55":0.01294,"56":0.00863,"57":0.02157,"58":0.01725,"59":0.01294,"60":0.00431,"62":0.00863,"72":0.01725,"75":0.00863,"79":0.04744,"81":0.00431,"83":0.00431,"84":0.01725,"85":0.00431,"87":0.03882,"89":0.00431,"91":0.00431,"95":0.00431,"99":0.00863,"103":0.03882,"105":0.00431,"106":0.01294,"109":0.91436,"112":0.00431,"113":0.03882,"114":0.07332,"115":0.00431,"116":0.21996,"119":0.01294,"120":0.00863,"122":0.01294,"123":0.00431,"124":0.04313,"125":5.07209,"126":0.01294,"127":0.01294,"128":0.0647,"130":0.06038,"131":0.01725,"132":0.05607,"133":0.05607,"134":0.12939,"135":0.0647,"136":0.03882,"137":0.15096,"138":1.34566,"139":0.44855,"140":6.02526,"141":11.39495,"142":0.19409,"143":0.01294,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 61 63 64 65 66 67 68 69 70 71 73 74 76 77 78 80 86 88 90 92 93 94 96 97 98 100 101 102 104 107 108 110 111 117 118 121 129 144 145"},F:{"40":0.02157,"71":0.00431,"91":0.16821,"92":0.02588,"95":0.00863,"120":0.06901,"121":0.03882,"122":0.58657,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.00431,"17":0.00431,"18":0.0345,"85":0.01725,"90":0.00431,"92":0.05607,"93":0.00431,"100":0.00863,"109":0.00863,"114":0.14664,"117":0.00431,"122":0.00431,"125":0.01294,"126":0.00431,"128":0.00431,"129":0.01294,"134":0.00863,"136":0.01725,"137":0.00863,"138":0.06901,"139":0.05176,"140":2.18238,"141":4.7098,"142":0.00431,_:"12 13 14 16 79 80 81 83 84 86 87 88 89 91 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 118 119 120 121 123 124 127 130 131 132 133 135"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 15.4 15.5 16.4 16.5 17.0 17.3 18.1 18.2 26.2","11.1":0.08195,"13.1":0.00431,"14.1":0.0345,"15.1":0.01294,"15.2-15.3":0.01294,"15.6":0.09057,"16.0":0.00863,"16.1":0.00431,"16.2":0.01294,"16.3":0.02588,"16.6":0.25447,"17.1":0.02588,"17.2":0.00431,"17.4":0.03019,"17.5":0.00431,"17.6":0.21565,"18.0":0.00431,"18.3":0.38817,"18.4":0.02157,"18.5-18.6":0.18115,"26.0":0.37954,"26.1":0.00431},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00137,"5.0-5.1":0,"6.0-6.1":0.00547,"7.0-7.1":0.0041,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0123,"10.0-10.2":0.00137,"10.3":0.02323,"11.0-11.2":0.34438,"11.3-11.4":0.0082,"12.0-12.1":0.00273,"12.2-12.5":0.06696,"13.0-13.1":0,"13.2":0.00683,"13.3":0.00273,"13.4-13.7":0.01093,"14.0-14.4":0.02323,"14.5-14.8":0.0246,"15.0-15.1":0.02323,"15.2-15.3":0.01777,"15.4":0.0205,"15.5":0.02323,"15.6-15.8":0.30338,"16.0":0.041,"16.1":0.07653,"16.2":0.03963,"16.3":0.07106,"16.4":0.01777,"16.5":0.03143,"16.6-16.7":0.40588,"17.0":0.0287,"17.1":0.04373,"17.2":0.03143,"17.3":0.04646,"17.4":0.082,"17.5":0.14076,"17.6-17.7":0.35531,"18.0":0.08063,"18.1":0.16672,"18.2":0.09019,"18.3":0.28972,"18.4":0.14896,"18.5-18.6":7.59549,"26.0":0.93884,"26.1":0.03416},P:{"4":0.07282,"21":0.0104,"22":0.44731,"23":0.0104,"24":0.11443,"25":0.0104,"26":0.14564,"27":0.19765,"28":2.47583,"29":0.13523,_:"20 5.0-5.4 9.2 10.1 11.1-11.2 12.0 13.0 15.0 17.0 18.0 19.0","6.2-6.4":0.0104,"7.2-7.4":0.06242,"8.2":0.04161,"14.0":0.02081,"16.0":0.02081},I:{"0":0.01136,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":1.10603,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{"2.5":0.00569,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.08531},Q:{_:"14.9"},O:{"0":0.03412},H:{"0":0.02},L:{"0":41.36094}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CX.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CX.js deleted file mode 100644 index d9bb2ab9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CX.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"143":51.79,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 144 145 146 147 3.5 3.6"},D:{_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.4 17.5 17.6 18.0 18.1 18.2 18.3 18.4 18.5-18.6 26.0 26.1 26.2"},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00089,"5.0-5.1":0,"6.0-6.1":0.00357,"7.0-7.1":0.00268,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00804,"10.0-10.2":0.00089,"10.3":0.01518,"11.0-11.2":0.225,"11.3-11.4":0.00536,"12.0-12.1":0.00179,"12.2-12.5":0.04375,"13.0-13.1":0,"13.2":0.00446,"13.3":0.00179,"13.4-13.7":0.00714,"14.0-14.4":0.01518,"14.5-14.8":0.01607,"15.0-15.1":0.01518,"15.2-15.3":0.01161,"15.4":0.01339,"15.5":0.01518,"15.6-15.8":0.19821,"16.0":0.02679,"16.1":0.05,"16.2":0.02589,"16.3":0.04643,"16.4":0.01161,"16.5":0.02054,"16.6-16.7":0.26518,"17.0":0.01875,"17.1":0.02857,"17.2":0.02054,"17.3":0.03036,"17.4":0.05357,"17.5":0.09196,"17.6-17.7":0.23214,"18.0":0.05268,"18.1":0.10893,"18.2":0.05893,"18.3":0.18928,"18.4":0.09732,"18.5-18.6":4.96246,"26.0":0.61339,"26.1":0.02232},P:{_:"4 20 21 22 23 24 25 26 27 28 29 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":39.28151}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CY.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CY.js deleted file mode 100644 index b2dd1e1b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CY.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"68":0.00461,"78":0.00461,"115":0.09226,"123":0.00461,"127":0.00461,"128":0.02307,"132":0.1061,"135":0.00923,"136":0.00461,"137":0.00923,"139":0.00923,"140":0.04613,"141":0.01384,"142":0.05997,"143":0.5674,"144":0.53511,"145":0.00461,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 124 125 126 129 130 131 133 134 138 146 147 3.5 3.6"},D:{"38":0.00461,"41":0.00461,"48":0.00461,"49":0.00461,"50":0.00461,"53":0.00461,"56":0.00461,"58":0.00461,"69":0.00461,"70":0.00461,"74":0.20759,"78":0.00923,"79":0.13378,"83":0.00461,"87":0.18913,"88":0.00461,"89":0.00461,"94":0.01845,"95":0.00461,"102":0.00461,"103":0.02307,"104":0.02768,"108":0.08765,"109":0.38749,"110":0.00461,"111":0.00461,"112":0.72424,"113":0.00461,"114":0.01384,"115":0.00461,"116":0.04613,"117":0.00461,"118":0.00461,"119":0.02768,"120":0.04613,"121":0.04613,"122":0.1061,"123":0.01384,"124":0.12455,"125":0.83495,"126":0.05536,"127":0.02307,"128":0.05074,"129":0.01845,"130":0.05997,"131":0.04152,"132":0.02307,"133":0.02307,"134":0.05074,"135":0.05997,"136":0.05536,"137":0.08303,"138":4.27625,"139":0.51204,"140":6.27368,"141":12.82875,"142":0.1061,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 42 43 44 45 46 47 51 52 54 55 57 59 60 61 62 63 64 65 66 67 68 71 72 73 75 76 77 80 81 84 85 86 90 91 92 93 96 97 98 99 100 101 105 106 107 143 144 145"},F:{"40":0.00923,"46":0.00923,"78":0.00461,"90":0.00461,"91":0.02768,"92":0.10149,"95":0.00461,"114":0.0692,"120":0.09226,"121":0.12916,"122":0.91799,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"99":0.00461,"102":0.00461,"109":0.06458,"114":0.00461,"122":0.00461,"128":0.00461,"131":0.00461,"133":0.00923,"134":0.00923,"135":0.00461,"136":0.00923,"137":0.00923,"138":0.00923,"139":0.03229,"140":0.90876,"141":4.6822,"142":0.00461,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 126 127 129 130 132"},E:{"14":0.00461,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 16.0 17.0 26.2","13.1":0.20759,"14.1":0.03229,"15.5":0.00461,"15.6":0.09226,"16.1":0.00923,"16.2":0.00923,"16.3":0.03229,"16.4":0.00461,"16.5":0.00923,"16.6":0.12455,"17.1":0.05074,"17.2":0.00923,"17.3":0.00923,"17.4":0.02768,"17.5":0.0369,"17.6":0.07842,"18.0":0.00923,"18.1":0.01384,"18.2":0.02307,"18.3":0.05074,"18.4":0.02307,"18.5-18.6":0.11994,"26.0":0.30907,"26.1":0.01384},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00117,"5.0-5.1":0,"6.0-6.1":0.00467,"7.0-7.1":0.0035,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01051,"10.0-10.2":0.00117,"10.3":0.01985,"11.0-11.2":0.29418,"11.3-11.4":0.007,"12.0-12.1":0.00233,"12.2-12.5":0.0572,"13.0-13.1":0,"13.2":0.00584,"13.3":0.00233,"13.4-13.7":0.00934,"14.0-14.4":0.01985,"14.5-14.8":0.02101,"15.0-15.1":0.01985,"15.2-15.3":0.01518,"15.4":0.01751,"15.5":0.01985,"15.6-15.8":0.25915,"16.0":0.03502,"16.1":0.06537,"16.2":0.03385,"16.3":0.0607,"16.4":0.01518,"16.5":0.02685,"16.6-16.7":0.34671,"17.0":0.02451,"17.1":0.03736,"17.2":0.02685,"17.3":0.03969,"17.4":0.07004,"17.5":0.12024,"17.6-17.7":0.30351,"18.0":0.06887,"18.1":0.14242,"18.2":0.07705,"18.3":0.24748,"18.4":0.12724,"18.5-18.6":6.4882,"26.0":0.80198,"26.1":0.02918},P:{"4":0.18487,"21":0.02054,"22":0.02054,"23":0.03081,"24":0.03081,"25":0.06162,"26":0.06162,"27":0.11297,"28":3.80006,"29":0.20541,_:"20 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0","5.0-5.4":0.02054,"6.2-6.4":0.01027,"7.2-7.4":0.12325,"8.2":0.01027,"17.0":0.01027,"18.0":0.01027,"19.0":0.01027},I:{"0":0.01614,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.71186,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02768,_:"6 7 8 9 10 5.5"},S:{"2.5":0.00539,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.4148},Q:{"14.9":0.01616},O:{"0":0.11313},H:{"0":0.01},L:{"0":41.9337}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CZ.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CZ.js deleted file mode 100644 index de9b58d4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/CZ.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.07484,"56":0.01604,"78":0.00535,"88":0.00535,"113":0.00535,"115":0.4651,"117":0.00535,"118":0.02673,"125":0.00535,"127":0.06415,"128":0.05346,"129":0.00535,"131":0.00535,"132":0.01069,"133":0.01069,"134":0.00535,"135":0.00535,"136":0.02138,"137":0.02138,"138":0.01604,"139":0.01604,"140":0.11227,"141":0.02673,"142":0.10157,"143":2.44847,"144":2.56073,"145":0.00535,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 119 120 121 122 123 124 126 130 146 147 3.5 3.6"},D:{"39":0.01604,"40":0.01604,"41":0.01604,"42":0.01604,"43":0.01604,"44":0.01604,"45":0.01604,"46":0.01604,"47":0.01604,"48":0.01604,"49":0.02138,"50":0.01604,"51":0.01604,"52":0.01604,"53":0.01604,"54":0.01604,"55":0.01604,"56":0.01604,"57":0.01069,"58":0.01604,"59":0.01069,"60":0.01604,"78":0.09088,"79":0.04277,"80":0.00535,"84":0.00535,"87":0.02138,"91":0.00535,"97":0.00535,"98":0.00535,"99":0.00535,"100":0.00535,"102":0.01069,"103":0.03208,"104":0.02138,"105":0.00535,"108":0.01069,"109":0.74844,"111":0.00535,"112":0.29403,"114":0.03208,"115":0.03208,"116":0.03208,"117":0.00535,"118":0.00535,"119":0.01604,"120":0.03208,"121":0.01069,"122":0.05881,"123":0.02138,"124":0.02138,"125":2.64092,"126":0.03208,"127":0.02138,"128":0.04277,"129":0.01069,"130":0.02138,"131":0.10692,"132":0.03208,"133":0.03742,"134":0.03742,"135":0.05881,"136":0.05346,"137":0.10692,"138":0.27265,"139":0.94624,"140":7.38283,"141":16.02731,"142":0.17107,"143":0.00535,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 81 83 85 86 88 89 90 92 93 94 95 96 101 106 107 110 113 144 145"},F:{"46":0.00535,"84":0.00535,"85":0.02138,"90":0.00535,"91":0.02138,"92":0.04811,"95":0.08554,"105":0.00535,"114":0.00535,"117":0.00535,"119":0.00535,"120":0.24057,"121":0.17642,"122":2.20255,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 86 87 88 89 93 94 96 97 98 99 100 101 102 103 104 106 107 108 109 110 111 112 113 115 116 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00535,"107":0.00535,"108":0.01069,"109":0.05346,"114":0.00535,"120":0.00535,"122":0.00535,"128":0.00535,"129":0.00535,"131":0.02673,"132":0.00535,"133":0.00535,"134":0.03742,"135":0.01069,"136":0.04277,"137":0.01069,"138":0.14969,"139":0.04277,"140":1.28304,"141":5.75764,"142":0.01604,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 110 111 112 113 115 116 117 118 119 121 123 124 125 126 127 130"},E:{"8":0.00535,"14":0.00535,_:"0 4 5 6 7 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 16.0 16.4 26.2","13.1":0.00535,"14.1":0.01069,"15.5":0.02138,"15.6":0.07484,"16.1":0.01069,"16.2":0.00535,"16.3":0.01069,"16.5":0.01069,"16.6":0.09088,"17.0":0.01069,"17.1":0.05881,"17.2":0.01604,"17.3":0.01604,"17.4":0.02138,"17.5":0.04277,"17.6":0.10157,"18.0":0.01069,"18.1":0.02138,"18.2":0.01604,"18.3":0.04277,"18.4":0.04277,"18.5-18.6":0.13365,"26.0":0.50252,"26.1":0.01604},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00088,"5.0-5.1":0,"6.0-6.1":0.00352,"7.0-7.1":0.00264,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00793,"10.0-10.2":0.00088,"10.3":0.01497,"11.0-11.2":0.22194,"11.3-11.4":0.00528,"12.0-12.1":0.00176,"12.2-12.5":0.04316,"13.0-13.1":0,"13.2":0.0044,"13.3":0.00176,"13.4-13.7":0.00705,"14.0-14.4":0.01497,"14.5-14.8":0.01585,"15.0-15.1":0.01497,"15.2-15.3":0.01145,"15.4":0.01321,"15.5":0.01497,"15.6-15.8":0.19552,"16.0":0.02642,"16.1":0.04932,"16.2":0.02554,"16.3":0.0458,"16.4":0.01145,"16.5":0.02026,"16.6-16.7":0.26158,"17.0":0.0185,"17.1":0.02818,"17.2":0.02026,"17.3":0.02994,"17.4":0.05284,"17.5":0.09071,"17.6-17.7":0.22899,"18.0":0.05196,"18.1":0.10745,"18.2":0.05813,"18.3":0.18671,"18.4":0.096,"18.5-18.6":4.89508,"26.0":0.60506,"26.1":0.02202},P:{"4":0.02083,"20":0.01041,"21":0.01041,"22":0.01041,"23":0.03124,"24":0.01041,"25":0.01041,"26":0.03124,"27":0.04165,"28":2.23879,"29":0.16661,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01041},I:{"0":0.06973,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.53067,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02673,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.42826},Q:{"14.9":0.00466},O:{"0":0.13034},H:{"0":0},L:{"0":36.22239}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/DE.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/DE.js deleted file mode 100644 index f029a1d3..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/DE.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"47":0.02291,"48":0.00573,"52":0.04582,"59":0.00573,"60":0.00573,"68":0.00573,"77":0.01146,"78":0.02291,"88":0.00573,"91":0.00573,"98":0.00573,"102":0.00573,"109":0.00573,"110":0.00573,"111":0.00573,"113":0.01146,"115":0.47542,"118":0.00573,"119":0.11456,"120":0.00573,"121":0.00573,"122":0.01146,"123":0.01146,"124":0.00573,"125":0.01146,"126":0.00573,"127":0.01146,"128":0.42387,"130":0.00573,"131":0.01146,"132":0.01718,"133":2.21674,"134":0.08592,"135":0.06301,"136":0.02864,"137":0.01146,"138":0.01718,"139":0.02291,"140":0.30358,"141":0.0401,"142":0.16038,"143":3.44826,"144":3.15613,"145":0.00573,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 49 50 51 53 54 55 56 57 58 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 79 80 81 82 83 84 85 86 87 89 90 92 93 94 95 96 97 99 100 101 103 104 105 106 107 108 112 114 116 117 129 146 147 3.5 3.6"},D:{"39":0.01146,"40":0.01146,"41":0.01146,"42":0.01146,"43":0.01146,"44":0.01146,"45":0.01146,"46":0.01146,"47":0.01146,"48":0.01146,"49":0.01718,"50":0.01146,"51":0.01146,"52":0.03437,"53":0.01146,"54":0.01146,"55":0.01146,"56":0.01146,"57":0.01146,"58":0.01146,"59":0.01146,"60":0.01146,"66":0.02291,"74":0.00573,"77":0.00573,"79":0.02291,"80":0.02864,"81":0.01146,"83":0.00573,"84":0.00573,"85":0.00573,"86":0.00573,"87":0.02864,"88":0.01146,"89":0.00573,"90":0.00573,"91":0.05728,"93":0.00573,"94":0.01146,"95":0.00573,"97":0.06301,"98":0.00573,"99":0.00573,"102":0.03437,"103":0.04582,"104":0.03437,"106":0.00573,"107":0.01146,"108":0.06301,"109":0.40669,"110":0.01146,"111":0.01146,"112":0.00573,"113":0.00573,"114":0.02291,"115":0.04582,"116":0.1031,"117":0.02291,"118":0.08019,"119":0.0401,"120":0.09165,"121":0.01718,"122":0.08019,"123":0.02864,"124":0.14893,"125":0.40096,"126":1.30026,"127":0.03437,"128":0.04582,"129":0.02864,"130":0.25203,"131":1.0024,"132":0.09165,"133":0.06874,"134":0.10883,"135":0.09165,"136":0.14893,"137":0.12029,"138":0.41814,"139":0.67018,"140":6.19197,"141":11.98298,"142":0.3265,"143":0.00573,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 68 69 70 71 72 73 75 76 78 92 96 100 101 105 144 145"},F:{"46":0.00573,"91":0.02291,"92":0.06874,"95":0.0401,"114":0.01146,"117":0.00573,"119":0.00573,"120":0.27494,"121":0.49261,"122":3.66592,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.01146},B:{"17":0.00573,"92":0.00573,"96":0.00573,"109":0.08592,"114":0.00573,"119":0.00573,"120":0.01146,"121":0.02864,"122":0.01718,"124":0.00573,"126":0.00573,"127":0.00573,"128":0.00573,"129":0.00573,"130":0.00573,"131":0.03437,"132":0.01146,"133":0.01146,"134":0.03437,"135":0.01718,"136":0.02291,"137":0.02291,"138":0.05728,"139":0.08019,"140":1.45491,"141":6.58147,"142":0.01146,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 123 125"},E:{"14":0.00573,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 26.2","11.1":0.00573,"12.1":0.00573,"13.1":0.02291,"14.1":0.02864,"15.1":0.00573,"15.2-15.3":0.00573,"15.4":0.00573,"15.5":0.00573,"15.6":0.13747,"16.0":0.02291,"16.1":0.01718,"16.2":0.01146,"16.3":0.02864,"16.4":0.00573,"16.5":0.01718,"16.6":0.20048,"17.0":0.01146,"17.1":0.13174,"17.2":0.01718,"17.3":0.01146,"17.4":0.02291,"17.5":0.06301,"17.6":0.17757,"18.0":0.02291,"18.1":0.0401,"18.2":0.01718,"18.3":0.08019,"18.4":0.0401,"18.5-18.6":0.23485,"26.0":0.92794,"26.1":0.02864},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00133,"5.0-5.1":0,"6.0-6.1":0.0053,"7.0-7.1":0.00398,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01193,"10.0-10.2":0.00133,"10.3":0.02254,"11.0-11.2":0.33416,"11.3-11.4":0.00796,"12.0-12.1":0.00265,"12.2-12.5":0.06498,"13.0-13.1":0,"13.2":0.00663,"13.3":0.00265,"13.4-13.7":0.01061,"14.0-14.4":0.02254,"14.5-14.8":0.02387,"15.0-15.1":0.02254,"15.2-15.3":0.01724,"15.4":0.01989,"15.5":0.02254,"15.6-15.8":0.29438,"16.0":0.03978,"16.1":0.07426,"16.2":0.03845,"16.3":0.06895,"16.4":0.01724,"16.5":0.0305,"16.6-16.7":0.39383,"17.0":0.02785,"17.1":0.04243,"17.2":0.0305,"17.3":0.04508,"17.4":0.07956,"17.5":0.13658,"17.6-17.7":0.34477,"18.0":0.07824,"18.1":0.16178,"18.2":0.08752,"18.3":0.28112,"18.4":0.14454,"18.5-18.6":7.37007,"26.0":0.91098,"26.1":0.03315},P:{"4":0.03159,"20":0.01053,"21":0.03159,"22":0.02106,"23":0.02106,"24":0.02106,"25":0.02106,"26":0.08425,"27":0.08425,"28":3.30664,"29":0.25274,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.01053,"17.0":0.01053,"19.0":0.01053},I:{"0":0.01706,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.49555,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00668,"11":0.03341,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":1.00819},Q:{"14.9":0.00854},O:{"0":0.06408},H:{"0":0},L:{"0":25.47813}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/DJ.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/DJ.js deleted file mode 100644 index f480fc9f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/DJ.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"45":0.01257,"115":0.08486,"121":0.03143,"127":0.01257,"128":0.00629,"137":0.00314,"138":0.00314,"140":0.00629,"141":0.00314,"142":0.00943,"143":0.90518,"144":0.48402,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 122 123 124 125 126 129 130 131 132 133 134 135 136 139 145 146 147 3.5 3.6"},D:{"40":0.00314,"41":0.00314,"42":0.00314,"43":0.00314,"44":0.00314,"45":0.00629,"46":0.00629,"48":0.00314,"49":0.00943,"50":0.00629,"52":0.00943,"53":0.00943,"54":0.00629,"55":0.00943,"56":0.00314,"57":0.00314,"58":0.00629,"59":0.00314,"60":0.00314,"63":0.00629,"70":0.00314,"73":0.00314,"76":0.00314,"79":0.00629,"83":0.00314,"84":0.00314,"86":0.022,"87":0.00629,"93":0.00629,"94":0.03143,"97":0.01257,"98":0.00629,"100":0.09115,"103":0.01886,"105":0.00629,"109":0.34573,"110":0.00629,"111":0.01886,"113":0.00314,"114":0.00314,"116":0.022,"118":0.022,"119":0.022,"120":0.01257,"121":0.00314,"122":0.04086,"124":0.05029,"125":2.51754,"126":0.01886,"127":0.03143,"128":0.05343,"129":0.00629,"130":0.00943,"131":0.11943,"132":0.00943,"133":0.04086,"134":0.04086,"135":0.044,"136":0.06915,"137":0.07543,"138":0.34259,"139":0.2703,"140":3.86589,"141":6.29229,"142":0.09743,"143":0.02829,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 47 51 61 62 64 65 66 67 68 69 71 72 74 75 77 78 80 81 85 88 89 90 91 92 95 96 99 101 102 104 106 107 108 112 115 117 123 144 145"},F:{"46":0.00629,"82":0.00314,"88":0.00629,"90":0.04086,"91":0.00314,"92":0.00943,"95":0.00314,"118":0.00314,"120":0.03772,"121":0.022,"122":0.21058,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00629,"17":0.00314,"18":0.03772,"90":0.00629,"92":0.02829,"108":0.00629,"109":0.00314,"112":0.00314,"114":0.00314,"117":0.01257,"122":0.02514,"124":0.00314,"125":0.00314,"128":0.00629,"129":0.00314,"130":0.00314,"131":0.00314,"132":0.01886,"133":0.01257,"134":0.01886,"135":0.05972,"136":0.02514,"137":0.00629,"138":0.022,"139":0.01886,"140":0.44002,"141":2.94499,"142":0.022,_:"12 13 15 16 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 111 113 115 116 118 119 120 121 123 126 127"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 17.0 17.3 17.4 18.0 18.1 18.2 26.1 26.2","13.1":0.00629,"15.6":0.00314,"16.4":0.00314,"16.5":0.00314,"16.6":0.01257,"17.1":0.00314,"17.2":0.00314,"17.5":0.00314,"17.6":0.022,"18.3":0.00314,"18.4":0.00629,"18.5-18.6":0.022,"26.0":0.39916},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00047,"5.0-5.1":0,"6.0-6.1":0.00188,"7.0-7.1":0.00141,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00423,"10.0-10.2":0.00047,"10.3":0.00798,"11.0-11.2":0.11837,"11.3-11.4":0.00282,"12.0-12.1":0.00094,"12.2-12.5":0.02302,"13.0-13.1":0,"13.2":0.00235,"13.3":0.00094,"13.4-13.7":0.00376,"14.0-14.4":0.00798,"14.5-14.8":0.00845,"15.0-15.1":0.00798,"15.2-15.3":0.00611,"15.4":0.00705,"15.5":0.00798,"15.6-15.8":0.10427,"16.0":0.01409,"16.1":0.0263,"16.2":0.01362,"16.3":0.02442,"16.4":0.00611,"16.5":0.0108,"16.6-16.7":0.1395,"17.0":0.00986,"17.1":0.01503,"17.2":0.0108,"17.3":0.01597,"17.4":0.02818,"17.5":0.04838,"17.6-17.7":0.12212,"18.0":0.02771,"18.1":0.0573,"18.2":0.031,"18.3":0.09958,"18.4":0.0512,"18.5-18.6":2.61062,"26.0":0.32269,"26.1":0.01174},P:{"4":0.01025,"21":0.0205,"22":0.03074,"23":0.14347,"24":0.05124,"25":0.0205,"26":0.12297,"27":0.31768,"28":2.29551,"29":0.40991,_:"20 6.2-6.4 8.2 10.1 12.0 13.0 14.0 15.0 18.0","5.0-5.4":0.01025,"7.2-7.4":0.18446,"9.2":0.01025,"11.1-11.2":0.04099,"16.0":0.01025,"17.0":0.04099,"19.0":0.01025},I:{"0":0.29444,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00006,"4.4":0,"4.4.3-4.4.4":0.00015},K:{"0":0.98427,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00629,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.41828},Q:{"14.9":0.02743},O:{"0":0.38399},H:{"0":0.01},L:{"0":67.73755}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/DK.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/DK.js deleted file mode 100644 index e79a07f7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/DK.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.00688,"78":0.00688,"115":0.09635,"122":0.00688,"125":0.00688,"128":0.09635,"132":0.00688,"136":0.00688,"137":0.00688,"138":0.00688,"140":0.04129,"141":0.00688,"142":0.02753,"143":0.96348,"144":0.81208,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 123 124 126 127 129 130 131 133 134 135 139 145 146 147 3.5 3.6"},D:{"44":0.01376,"49":0.01376,"52":0.03441,"58":0.02753,"66":0.00688,"79":0.01376,"87":0.01376,"88":0.02753,"102":0.01376,"103":0.05506,"107":0.00688,"108":0.00688,"109":0.30281,"112":0.00688,"114":0.02065,"116":0.18581,"117":0.02065,"118":0.02753,"119":0.00688,"120":0.04129,"121":0.00688,"122":0.13764,"123":0.02753,"124":0.06882,"125":4.08791,"126":0.12388,"127":0.02065,"128":0.13076,"129":0.02753,"130":0.03441,"131":0.11011,"132":0.12388,"133":0.06882,"134":0.06194,"135":0.17205,"136":0.24087,"137":0.29593,"138":0.97724,"139":2.29171,"140":14.16316,"141":24.49304,"142":0.33034,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 50 51 53 54 55 56 57 59 60 61 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 89 90 91 92 93 94 95 96 97 98 99 100 101 104 105 106 110 111 113 115 143 144 145"},F:{"91":0.01376,"92":0.02065,"95":0.00688,"102":0.01376,"112":0.00688,"120":0.0757,"121":0.1514,"122":1.39016,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.03441,"117":0.00688,"126":0.00688,"130":0.00688,"131":0.00688,"132":0.00688,"134":0.01376,"135":0.01376,"136":0.00688,"137":0.02065,"138":0.02753,"139":0.04817,"140":1.34199,"141":5.61571,"142":0.00688,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 118 119 120 121 122 123 124 125 127 128 129 133"},E:{"14":0.01376,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 26.2","13.1":0.02065,"14.1":0.04817,"15.1":0.00688,"15.4":0.01376,"15.5":0.03441,"15.6":0.21334,"16.0":0.02065,"16.1":0.03441,"16.2":0.02753,"16.3":0.06194,"16.4":0.05506,"16.5":0.05506,"16.6":0.33722,"17.0":0.02753,"17.1":0.1927,"17.2":0.04129,"17.3":0.06882,"17.4":0.15829,"17.5":0.24775,"17.6":0.52303,"18.0":0.0757,"18.1":0.08258,"18.2":0.03441,"18.3":0.17893,"18.4":0.09635,"18.5-18.6":0.30969,"26.0":0.8809,"26.1":0.02065},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00172,"5.0-5.1":0,"6.0-6.1":0.0069,"7.0-7.1":0.00517,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01552,"10.0-10.2":0.00172,"10.3":0.02932,"11.0-11.2":0.43467,"11.3-11.4":0.01035,"12.0-12.1":0.00345,"12.2-12.5":0.08452,"13.0-13.1":0,"13.2":0.00862,"13.3":0.00345,"13.4-13.7":0.0138,"14.0-14.4":0.02932,"14.5-14.8":0.03105,"15.0-15.1":0.02932,"15.2-15.3":0.02242,"15.4":0.02587,"15.5":0.02932,"15.6-15.8":0.38292,"16.0":0.05175,"16.1":0.09659,"16.2":0.05002,"16.3":0.08969,"16.4":0.02242,"16.5":0.03967,"16.6-16.7":0.51229,"17.0":0.03622,"17.1":0.0552,"17.2":0.03967,"17.3":0.05865,"17.4":0.10349,"17.5":0.17766,"17.6-17.7":0.44847,"18.0":0.10177,"18.1":0.21044,"18.2":0.11384,"18.3":0.36567,"18.4":0.18801,"18.5-18.6":9.58687,"26.0":1.18499,"26.1":0.04312},P:{"20":0.01078,"25":0.01078,"26":0.02156,"27":0.01078,"28":1.48795,"29":0.1186,_:"4 21 22 23 24 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01078},I:{"0":0.01868,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.11848,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01376,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.32427},Q:{_:"14.9"},O:{"0":0.01247},H:{"0":0},L:{"0":12.66011}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/DM.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/DM.js deleted file mode 100644 index fb4c18ac..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/DM.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"39":0.00508,"96":0.00508,"115":0.00508,"133":0.04063,"135":0.01524,"137":0.01016,"138":0.03047,"143":0.33014,"144":0.24379,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 134 136 139 140 141 142 145 146 147 3.5 3.6"},D:{"39":0.00508,"40":0.01016,"41":0.01016,"42":0.01524,"43":0.01016,"44":0.01524,"45":0.01016,"46":0.01016,"47":0.00508,"48":0.01016,"49":0.00508,"50":0.00508,"52":0.0254,"53":0.00508,"54":0.00508,"55":0.01524,"56":0.00508,"57":0.01524,"58":0.0254,"59":0.01524,"60":0.01524,"63":0.00508,"74":0.00508,"76":0.14221,"77":0.01524,"79":2.77821,"81":0.00508,"93":0.01524,"95":0.10666,"101":0.09142,"103":0.01524,"108":0.00508,"109":0.13713,"110":0.02032,"111":0.0254,"114":0.00508,"116":0.00508,"121":0.00508,"122":0.03555,"123":0.00508,"124":0.08126,"125":7.87753,"126":0.0254,"127":0.04571,"128":0.01524,"130":0.0254,"131":0.13205,"132":0.06603,"133":0.01524,"134":0.15745,"135":0.06095,"136":0.06603,"137":0.35553,"138":0.2184,"139":0.386,"140":6.46557,"141":11.87978,"142":0.18792,"143":0.00508,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 51 61 62 64 65 66 67 68 69 70 71 72 73 75 78 80 83 84 85 86 87 88 89 90 91 92 94 96 97 98 99 100 102 104 105 106 107 112 113 115 117 118 119 120 129 144 145"},F:{"92":0.0254,"95":0.00508,"115":0.00508,"120":0.06603,"121":0.05079,"122":0.62472,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01016,"109":0.04063,"114":0.04063,"131":0.10158,"133":0.00508,"134":0.00508,"135":0.00508,"137":0.11174,"139":0.04571,"140":1.59989,"141":3.93623,"142":0.00508,_:"13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 132 136 138"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.3 16.4 16.5 16.6 17.0 17.3 18.1 26.2","9.1":0.00508,"15.6":0.1219,"16.1":0.04571,"17.1":0.01524,"17.2":0.00508,"17.4":0.00508,"17.5":0.04063,"17.6":0.07111,"18.0":0.00508,"18.2":0.05587,"18.3":0.05587,"18.4":0.03555,"18.5-18.6":0.16253,"26.0":0.78725,"26.1":0.0254},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00085,"5.0-5.1":0,"6.0-6.1":0.00341,"7.0-7.1":0.00255,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00766,"10.0-10.2":0.00085,"10.3":0.01447,"11.0-11.2":0.21454,"11.3-11.4":0.00511,"12.0-12.1":0.0017,"12.2-12.5":0.04172,"13.0-13.1":0,"13.2":0.00426,"13.3":0.0017,"13.4-13.7":0.00681,"14.0-14.4":0.01447,"14.5-14.8":0.01532,"15.0-15.1":0.01447,"15.2-15.3":0.01107,"15.4":0.01277,"15.5":0.01447,"15.6-15.8":0.189,"16.0":0.02554,"16.1":0.04767,"16.2":0.02469,"16.3":0.04427,"16.4":0.01107,"16.5":0.01958,"16.6-16.7":0.25285,"17.0":0.01788,"17.1":0.02724,"17.2":0.01958,"17.3":0.02895,"17.4":0.05108,"17.5":0.08769,"17.6-17.7":0.22135,"18.0":0.05023,"18.1":0.10386,"18.2":0.05619,"18.3":0.18048,"18.4":0.0928,"18.5-18.6":4.73171,"26.0":0.58487,"26.1":0.02128},P:{"4":0.02242,"22":0.01121,"24":0.02242,"25":0.01121,"26":0.03363,"27":0.01121,"28":1.73739,"29":0.21297,_:"20 21 23 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","6.2-6.4":0.1233,"7.2-7.4":0.03363},I:{"0":0.0344,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.53639,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.23621},Q:{"14.9":0.02461},O:{"0":0.50686},H:{"0":0},L:{"0":43.77702}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/DO.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/DO.js deleted file mode 100644 index 7714e6e4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/DO.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"4":0.05708,"52":0.00571,"78":0.00571,"115":0.02283,"128":0.00571,"133":0.00571,"136":0.01712,"139":0.01712,"140":0.02854,"141":0.00571,"142":0.01712,"143":0.2854,"144":0.30252,"145":0.01712,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 134 135 137 138 146 147 3.5 3.6"},D:{"39":0.01712,"40":0.01712,"41":0.01712,"42":0.01712,"43":0.01712,"44":0.01712,"45":0.01712,"46":0.01712,"47":0.02283,"48":0.04566,"49":0.01712,"50":0.01712,"51":0.01712,"52":0.01712,"53":0.01712,"54":0.01712,"55":0.01712,"56":0.01712,"57":0.01712,"58":0.01712,"59":0.01712,"60":0.01712,"72":0.00571,"73":0.00571,"75":0.00571,"76":0.00571,"77":0.00571,"79":0.01712,"85":0.00571,"86":0.00571,"87":0.01142,"88":0.00571,"91":0.00571,"93":0.02854,"94":0.00571,"95":0.00571,"97":0.00571,"102":0.00571,"103":0.03996,"104":0.02283,"107":0.00571,"108":0.00571,"109":0.39385,"110":0.01712,"111":0.00571,"112":12.22083,"114":0.00571,"116":0.05137,"119":0.02283,"120":0.01142,"121":0.01142,"122":0.02854,"123":0.00571,"124":0.01142,"125":13.40809,"126":0.95324,"127":0.03425,"128":0.09704,"129":0.02854,"130":0.01142,"131":0.05137,"132":0.03425,"133":0.02854,"134":0.02283,"135":0.05708,"136":0.04566,"137":0.09133,"138":0.34819,"139":0.30252,"140":3.7787,"141":11.39888,"142":0.17695,"143":0.00571,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 74 78 80 81 83 84 89 90 92 96 98 99 100 101 105 106 113 115 117 118 144 145"},F:{"69":0.00571,"92":0.00571,"95":0.00571,"114":0.00571,"120":0.09704,"121":0.10845,"122":1.24434,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00571,"85":0.00571,"92":0.02283,"100":0.00571,"109":0.00571,"114":0.12558,"122":0.00571,"131":0.02283,"132":0.00571,"133":0.00571,"134":0.04566,"135":0.00571,"136":0.01712,"137":0.00571,"138":0.02283,"139":0.03996,"140":0.63359,"141":3.17936,"142":0.00571,_:"12 13 14 15 16 17 79 80 81 83 84 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 126 127 128 129 130"},E:{"4":0.00571,_:"0 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 15.5 16.0 16.4 26.2","5.1":0.00571,"13.1":0.01142,"14.1":0.01712,"15.1":0.00571,"15.6":0.03996,"16.1":0.00571,"16.2":0.01142,"16.3":0.00571,"16.5":0.00571,"16.6":0.08562,"17.0":0.00571,"17.1":0.01712,"17.2":0.00571,"17.3":0.00571,"17.4":0.01142,"17.5":0.03425,"17.6":0.14841,"18.0":0.04566,"18.1":0.02854,"18.2":0.00571,"18.3":0.02854,"18.4":0.02283,"18.5-18.6":0.07991,"26.0":0.33106,"26.1":0.03425},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00168,"5.0-5.1":0,"6.0-6.1":0.00674,"7.0-7.1":0.00505,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01516,"10.0-10.2":0.00168,"10.3":0.02864,"11.0-11.2":0.42452,"11.3-11.4":0.01011,"12.0-12.1":0.00337,"12.2-12.5":0.08255,"13.0-13.1":0,"13.2":0.00842,"13.3":0.00337,"13.4-13.7":0.01348,"14.0-14.4":0.02864,"14.5-14.8":0.03032,"15.0-15.1":0.02864,"15.2-15.3":0.0219,"15.4":0.02527,"15.5":0.02864,"15.6-15.8":0.37398,"16.0":0.05054,"16.1":0.09434,"16.2":0.04885,"16.3":0.0876,"16.4":0.0219,"16.5":0.03875,"16.6-16.7":0.50033,"17.0":0.03538,"17.1":0.05391,"17.2":0.03875,"17.3":0.05728,"17.4":0.10108,"17.5":0.17351,"17.6-17.7":0.438,"18.0":0.09939,"18.1":0.20552,"18.2":0.11118,"18.3":0.35714,"18.4":0.18362,"18.5-18.6":9.36306,"26.0":1.15733,"26.1":0.04212},P:{"4":0.01073,"21":0.01073,"22":0.01073,"24":0.01073,"25":0.01073,"26":0.03219,"27":0.03219,"28":0.60088,"29":0.07511,_:"20 23 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","6.2-6.4":0.02146,"7.2-7.4":0.02146},I:{"0":0.01714,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.12447,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.01649,"7":0.01649,"8":0.05771,"9":0.01649,"10":0.03298,"11":0.00824,_:"5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.07296},Q:{_:"14.9"},O:{"0":0.01288},H:{"0":0},L:{"0":27.97221}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/DZ.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/DZ.js deleted file mode 100644 index fce4c8f6..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/DZ.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"43":0.00407,"46":0.00407,"47":0.00407,"48":0.00407,"52":0.04473,"56":0.00407,"72":0.00407,"78":0.00407,"94":0.00407,"115":0.79694,"123":0.00407,"125":0.00407,"127":0.0122,"128":0.00813,"131":0.00407,"132":0.00407,"134":0.00407,"135":0.00813,"136":0.00407,"137":0.00407,"138":0.00407,"139":0.00813,"140":0.03253,"141":0.0122,"142":0.02846,"143":0.61397,"144":0.53265,"145":0.00407,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 49 50 51 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 124 126 129 130 133 146 147 3.5 3.6"},D:{"5":0.00407,"38":0.00407,"39":0.00813,"40":0.00813,"41":0.00813,"42":0.00813,"43":0.01626,"44":0.00813,"45":0.00813,"46":0.00813,"47":0.0122,"48":0.00813,"49":0.02033,"50":0.0122,"51":0.00813,"52":0.00813,"53":0.00813,"54":0.00813,"55":0.0122,"56":0.02033,"57":0.00813,"58":0.0122,"59":0.00813,"60":0.0122,"61":0.00407,"62":0.00407,"63":0.00407,"64":0.00407,"65":0.00813,"66":0.00407,"68":0.0122,"69":0.00813,"70":0.00813,"71":0.01626,"72":0.0122,"73":0.0122,"74":0.0122,"75":0.0122,"76":0.00407,"77":0.00407,"78":0.00813,"79":0.06912,"80":0.0122,"81":0.0244,"83":0.05286,"84":0.00813,"85":0.0122,"86":0.02033,"87":0.05286,"88":0.01626,"89":0.0122,"90":0.00407,"91":0.01626,"92":0.00407,"93":0.00407,"94":0.01626,"95":0.02846,"96":0.0122,"97":0.00813,"98":0.0244,"99":0.00813,"100":0.00813,"101":0.0122,"102":0.0122,"103":0.02846,"104":0.03253,"105":0.00407,"106":0.0244,"107":0.0122,"108":0.03659,"109":4.32216,"110":0.03253,"111":0.00813,"112":3.38291,"113":0.00813,"114":0.0122,"115":0.00407,"116":0.02846,"117":0.00407,"118":0.0122,"119":0.08132,"120":0.02033,"121":0.0122,"122":0.03253,"123":0.02033,"124":0.03659,"125":3.93995,"126":0.27649,"127":0.03253,"128":0.03659,"129":0.02033,"130":0.03253,"131":0.10165,"132":0.05286,"133":0.07725,"134":0.10572,"135":0.06506,"136":0.11385,"137":0.15451,"138":0.35374,"139":0.33341,"140":3.8749,"141":8.72564,"142":0.14231,"143":0.00813,_:"4 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 67 144 145"},F:{"25":0.00407,"46":0.00407,"64":0.00407,"79":0.0244,"84":0.00407,"85":0.01626,"86":0.00407,"90":0.00407,"91":0.00813,"92":0.01626,"95":0.12605,"114":0.00407,"117":0.00407,"119":0.00407,"120":0.11791,"121":0.09758,"122":1.15474,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00407,"14":0.00407,"16":0.00407,"17":0.00813,"18":0.0122,"84":0.00407,"85":0.00407,"89":0.00407,"92":0.04473,"100":0.00407,"109":0.04473,"114":0.06506,"122":0.00813,"126":0.00407,"127":0.00407,"129":0.00407,"131":0.0122,"132":0.00407,"133":0.00407,"134":0.04879,"135":0.00407,"136":0.01626,"137":0.0122,"138":0.01626,"139":0.02846,"140":0.32935,"141":1.55321,"142":0.00813,_:"13 15 79 80 81 83 86 87 88 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 128 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 16.0 16.5 17.0 26.2","13.1":0.00813,"14.1":0.00407,"15.5":0.00407,"15.6":0.03659,"16.1":0.00407,"16.2":0.00407,"16.3":0.00407,"16.4":0.00407,"16.6":0.04066,"17.1":0.02846,"17.2":0.00407,"17.3":0.00407,"17.4":0.00813,"17.5":0.02033,"17.6":0.03659,"18.0":0.00813,"18.1":0.00813,"18.2":0.00407,"18.3":0.0122,"18.4":0.00813,"18.5-18.6":0.04473,"26.0":0.16671,"26.1":0.00813},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00053,"5.0-5.1":0,"6.0-6.1":0.0021,"7.0-7.1":0.00158,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00473,"10.0-10.2":0.00053,"10.3":0.00894,"11.0-11.2":0.13249,"11.3-11.4":0.00315,"12.0-12.1":0.00105,"12.2-12.5":0.02576,"13.0-13.1":0,"13.2":0.00263,"13.3":0.00105,"13.4-13.7":0.00421,"14.0-14.4":0.00894,"14.5-14.8":0.00946,"15.0-15.1":0.00894,"15.2-15.3":0.00683,"15.4":0.00789,"15.5":0.00894,"15.6-15.8":0.11672,"16.0":0.01577,"16.1":0.02944,"16.2":0.01525,"16.3":0.02734,"16.4":0.00683,"16.5":0.01209,"16.6-16.7":0.15615,"17.0":0.01104,"17.1":0.01682,"17.2":0.01209,"17.3":0.01788,"17.4":0.03155,"17.5":0.05415,"17.6-17.7":0.1367,"18.0":0.03102,"18.1":0.06414,"18.2":0.0347,"18.3":0.11146,"18.4":0.05731,"18.5-18.6":2.92213,"26.0":0.36119,"26.1":0.01314},P:{"4":0.07399,"21":0.02114,"22":0.02114,"23":0.04228,"24":0.04228,"25":0.04228,"26":0.06342,"27":0.06342,"28":0.85616,"29":0.05285,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.05285,"17.0":0.01057,"19.0":0.01057},I:{"0":0.04741,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.44098,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01789,"9":0.00447,"11":0.06709,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.20769},Q:{"14.9":0.00593},O:{"0":0.17209},H:{"0":0.01},L:{"0":56.68666}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/EC.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/EC.js deleted file mode 100644 index e50bed35..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/EC.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"4":0.07898,"115":0.08688,"127":0.0079,"128":0.0079,"131":0.0079,"135":0.0079,"139":0.0079,"140":0.0158,"141":0.0079,"142":0.03949,"143":0.45019,"144":0.4107,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 132 133 134 136 137 138 145 146 147 3.5 3.6"},D:{"39":0.02369,"40":0.02369,"41":0.0158,"42":0.02369,"43":0.02369,"44":0.02369,"45":0.02369,"46":0.02369,"47":0.02369,"48":0.02369,"49":0.02369,"50":0.02369,"51":0.02369,"52":0.02369,"53":0.02369,"54":0.02369,"55":0.02369,"56":0.02369,"57":0.0158,"58":0.02369,"59":0.02369,"60":0.02369,"79":0.02369,"87":0.0158,"91":0.0079,"97":0.0079,"99":0.0079,"103":0.0158,"104":0.0079,"106":0.04739,"108":0.0079,"109":0.27643,"112":35.11451,"114":0.0079,"116":0.04739,"118":0.0079,"119":0.0158,"120":0.0158,"121":0.0158,"122":0.08688,"123":0.0158,"124":0.0079,"125":20.25047,"126":2.66952,"127":0.02369,"128":0.03949,"129":0.0079,"130":0.0079,"131":0.14216,"132":0.04739,"133":0.02369,"134":0.03159,"135":0.03949,"136":0.02369,"137":0.03949,"138":0.11847,"139":0.14216,"140":3.12761,"141":8.05596,"142":0.11057,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 88 89 90 92 93 94 95 96 98 100 101 102 105 107 110 111 113 115 117 143 144 145"},F:{"92":0.0079,"95":0.02369,"120":0.04739,"121":0.08688,"122":0.64764,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.0079,"109":0.0158,"114":0.06318,"124":0.0158,"131":0.0079,"134":0.0079,"135":0.0079,"136":0.0079,"137":0.0079,"138":0.03949,"139":0.0158,"140":0.37121,"141":1.69807,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 125 126 127 128 129 130 132 133 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.2 17.3 18.0 26.2","5.1":0.0079,"14.1":0.0079,"15.6":0.0158,"16.6":0.0158,"17.1":0.0079,"17.4":0.0079,"17.5":0.0079,"17.6":0.03949,"18.1":0.0079,"18.2":0.0079,"18.3":0.0158,"18.4":0.0079,"18.5-18.6":0.03159,"26.0":0.18955,"26.1":0.0079},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00033,"5.0-5.1":0,"6.0-6.1":0.00131,"7.0-7.1":0.00098,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00294,"10.0-10.2":0.00033,"10.3":0.00556,"11.0-11.2":0.08237,"11.3-11.4":0.00196,"12.0-12.1":0.00065,"12.2-12.5":0.01602,"13.0-13.1":0,"13.2":0.00163,"13.3":0.00065,"13.4-13.7":0.00261,"14.0-14.4":0.00556,"14.5-14.8":0.00588,"15.0-15.1":0.00556,"15.2-15.3":0.00425,"15.4":0.0049,"15.5":0.00556,"15.6-15.8":0.07256,"16.0":0.00981,"16.1":0.0183,"16.2":0.00948,"16.3":0.017,"16.4":0.00425,"16.5":0.00752,"16.6-16.7":0.09708,"17.0":0.00686,"17.1":0.01046,"17.2":0.00752,"17.3":0.01111,"17.4":0.01961,"17.5":0.03367,"17.6-17.7":0.08498,"18.0":0.01928,"18.1":0.03988,"18.2":0.02157,"18.3":0.06929,"18.4":0.03563,"18.5-18.6":1.81669,"26.0":0.22455,"26.1":0.00817},P:{"4":0.01097,"22":0.01097,"26":0.02193,"27":0.01097,"28":0.39481,"29":0.02193,_:"20 21 23 24 25 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.0329},I:{"0":0.0084,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.05675,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0158,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.09039},Q:{_:"14.9"},O:{"0":0.0042},H:{"0":0},L:{"0":19.19699}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/EE.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/EE.js deleted file mode 100644 index c91f91b2..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/EE.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"92":0.00747,"115":3.68419,"123":0.01495,"125":0.02242,"127":0.01495,"128":0.05978,"129":0.00747,"134":0.02242,"135":0.00747,"136":0.00747,"137":0.00747,"138":0.00747,"139":0.01495,"140":0.0822,"141":0.01495,"142":0.0822,"143":1.18821,"144":1.05369,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 124 126 130 131 132 133 145 146 147 3.5 3.6"},D:{"58":0.00747,"79":0.01495,"87":0.02242,"98":0.00747,"101":0.00747,"103":0.00747,"104":0.04484,"106":0.02242,"107":0.01495,"108":0.01495,"109":1.30778,"111":0.01495,"112":0.3587,"114":0.00747,"116":0.24661,"117":0.01495,"118":0.00747,"119":0.00747,"120":0.05231,"121":0.01495,"122":0.05231,"123":0.05231,"124":0.12704,"125":0.91171,"126":0.05231,"127":0.10462,"128":0.04484,"129":0.01495,"130":0.04484,"131":0.41849,"132":0.03737,"133":0.21672,"134":0.09715,"135":0.05231,"136":0.1121,"137":0.1121,"138":3.09382,"139":1.4946,"140":12.82367,"141":26.80565,"142":0.32881,"143":0.00747,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 88 89 90 91 92 93 94 95 96 97 99 100 102 105 110 113 115 144 145"},F:{"69":0.00747,"91":0.00747,"92":0.01495,"95":0.05231,"113":0.00747,"114":0.00747,"117":0.00747,"119":0.00747,"120":0.20924,"121":0.15693,"122":6.52393,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 116 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"86":0.00747,"109":0.02242,"116":0.03737,"119":0.02989,"120":0.00747,"121":0.00747,"122":0.00747,"125":0.00747,"128":0.01495,"131":0.00747,"134":0.00747,"135":0.00747,"136":0.00747,"137":0.04484,"138":0.01495,"139":0.02242,"140":0.6651,"141":5.22363,"142":0.00747,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 117 118 123 124 126 127 129 130 132 133"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 16.0 26.2","13.1":0.00747,"14.1":0.01495,"15.1":0.00747,"15.5":0.00747,"15.6":0.08968,"16.1":0.00747,"16.2":0.00747,"16.3":0.01495,"16.4":0.00747,"16.5":0.01495,"16.6":0.09715,"17.0":0.00747,"17.1":0.03737,"17.2":0.02989,"17.3":0.00747,"17.4":0.01495,"17.5":0.03737,"17.6":0.14199,"18.0":0.00747,"18.1":0.04484,"18.2":0.00747,"18.3":0.03737,"18.4":0.03737,"18.5-18.6":0.14199,"26.0":0.45585,"26.1":0.00747},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00075,"5.0-5.1":0,"6.0-6.1":0.003,"7.0-7.1":0.00225,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00676,"10.0-10.2":0.00075,"10.3":0.01277,"11.0-11.2":0.18926,"11.3-11.4":0.00451,"12.0-12.1":0.0015,"12.2-12.5":0.0368,"13.0-13.1":0,"13.2":0.00376,"13.3":0.0015,"13.4-13.7":0.00601,"14.0-14.4":0.01277,"14.5-14.8":0.01352,"15.0-15.1":0.01277,"15.2-15.3":0.00976,"15.4":0.01127,"15.5":0.01277,"15.6-15.8":0.16673,"16.0":0.02253,"16.1":0.04206,"16.2":0.02178,"16.3":0.03905,"16.4":0.00976,"16.5":0.01727,"16.6-16.7":0.22305,"17.0":0.01577,"17.1":0.02403,"17.2":0.01727,"17.3":0.02553,"17.4":0.04506,"17.5":0.07736,"17.6-17.7":0.19527,"18.0":0.04431,"18.1":0.09162,"18.2":0.04957,"18.3":0.15922,"18.4":0.08186,"18.5-18.6":4.17419,"26.0":0.51595,"26.1":0.01878},P:{"21":0.01049,"22":0.01049,"24":0.02098,"25":0.01049,"26":0.02098,"27":0.04197,"28":1.43738,"29":0.10492,_:"4 20 23 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.01009,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.22238,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.10462,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.36136},Q:{"14.9":0.00253},O:{"0":0.01769},H:{"0":0},L:{"0":16.22405}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/EG.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/EG.js deleted file mode 100644 index 0faae024..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/EG.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"43":0.00342,"47":0.00342,"49":0.00342,"52":0.01367,"72":0.00342,"115":0.37587,"121":0.00342,"127":0.00683,"128":0.00342,"134":0.00342,"135":0.00342,"136":0.00683,"137":0.00342,"138":0.01709,"139":0.00342,"140":0.04442,"141":0.01025,"142":0.01367,"143":0.51938,"144":0.51255,"145":0.00342,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 48 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 122 123 124 125 126 129 130 131 132 133 146 147 3.5 3.6"},D:{"29":0.00342,"34":0.00342,"39":0.00342,"40":0.00342,"41":0.00342,"42":0.00342,"43":0.01709,"44":0.00342,"45":0.00342,"46":0.00342,"47":0.01025,"48":0.01025,"49":0.01367,"50":0.00342,"51":0.00342,"52":0.00342,"53":0.00342,"54":0.00342,"55":0.00342,"56":0.00342,"57":0.00342,"58":0.00342,"59":0.00342,"60":0.00342,"69":0.00342,"70":0.00683,"71":0.00683,"72":0.00342,"73":0.00342,"74":0.00683,"75":0.00342,"76":0.00342,"77":0.00342,"78":0.00342,"79":0.05467,"80":0.01025,"81":0.00683,"83":0.00683,"84":0.00342,"85":0.01025,"86":0.0205,"87":0.04442,"88":0.00342,"89":0.00342,"90":0.00342,"91":0.01025,"92":0.00342,"93":0.00342,"94":0.00342,"95":0.00683,"96":0.00342,"97":0.00342,"98":0.00342,"99":0.00342,"100":0.00342,"101":0.00342,"102":0.00342,"103":0.0205,"104":0.01367,"105":0.00342,"106":0.00683,"107":0.00683,"108":0.02392,"109":1.98528,"110":0.00342,"112":2.02286,"114":0.01709,"115":0.00342,"116":0.0205,"117":0.00342,"118":0.00683,"119":0.00683,"120":0.01709,"121":0.09909,"122":0.04784,"123":0.03075,"124":0.01025,"125":1.2267,"126":0.19819,"127":0.01367,"128":0.03417,"129":0.01709,"130":0.02734,"131":0.06151,"132":0.03075,"133":0.03417,"134":0.05467,"135":0.06492,"136":0.05467,"137":0.06834,"138":0.23577,"139":0.44421,"140":3.98764,"141":9.55393,"142":0.12985,"143":0.00683,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 35 36 37 38 61 62 63 64 65 66 67 68 111 113 144 145"},F:{"73":0.00342,"79":0.01025,"83":0.00342,"91":0.01025,"92":0.02392,"95":0.00342,"120":0.0205,"121":0.01025,"122":0.17427,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 74 75 76 77 78 80 81 82 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00683,"90":0.00342,"92":0.02392,"100":0.00342,"109":0.02734,"114":0.03417,"119":0.00683,"122":0.02392,"127":0.00342,"129":0.00683,"130":0.00683,"131":0.00683,"132":0.00342,"133":0.01025,"134":0.00683,"135":0.00342,"136":0.01025,"137":0.00683,"138":0.0205,"139":0.0205,"140":0.40321,"141":2.30648,"142":0.00683,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 120 121 123 124 125 126 128"},E:{"4":0.00342,_:"0 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 26.2","5.1":0.06151,"13.1":0.00342,"14.1":0.00342,"15.6":0.02734,"16.5":0.00342,"16.6":0.01709,"17.0":0.00342,"17.1":0.01025,"17.2":0.00342,"17.3":0.00342,"17.4":0.00342,"17.5":0.01025,"17.6":0.02392,"18.0":0.00342,"18.1":0.00683,"18.2":0.00342,"18.3":0.00683,"18.4":0.00683,"18.5-18.6":0.03075,"26.0":0.10934,"26.1":0.00342},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00075,"5.0-5.1":0,"6.0-6.1":0.00301,"7.0-7.1":0.00226,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00678,"10.0-10.2":0.00075,"10.3":0.0128,"11.0-11.2":0.18978,"11.3-11.4":0.00452,"12.0-12.1":0.00151,"12.2-12.5":0.0369,"13.0-13.1":0,"13.2":0.00377,"13.3":0.00151,"13.4-13.7":0.00602,"14.0-14.4":0.0128,"14.5-14.8":0.01356,"15.0-15.1":0.0128,"15.2-15.3":0.00979,"15.4":0.0113,"15.5":0.0128,"15.6-15.8":0.16719,"16.0":0.02259,"16.1":0.04217,"16.2":0.02184,"16.3":0.03916,"16.4":0.00979,"16.5":0.01732,"16.6-16.7":0.22367,"17.0":0.01581,"17.1":0.0241,"17.2":0.01732,"17.3":0.02561,"17.4":0.04519,"17.5":0.07757,"17.6-17.7":0.1958,"18.0":0.04443,"18.1":0.09188,"18.2":0.0497,"18.3":0.15966,"18.4":0.08209,"18.5-18.6":4.1857,"26.0":0.51738,"26.1":0.01883},P:{"4":0.06397,"21":0.01066,"22":0.02132,"23":0.03198,"24":0.02132,"25":0.05331,"26":0.09595,"27":0.06397,"28":1.5139,"29":0.1919,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 14.0 15.0 16.0 18.0","7.2-7.4":0.07463,"11.1-11.2":0.01066,"13.0":0.01066,"17.0":0.01066,"19.0":0.01066},I:{"0":0.05259,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.31598,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.03437,"9":0.00764,"10":0.01146,"11":0.1413,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.20407},Q:{_:"14.9"},O:{"0":0.19749},H:{"0":0},L:{"0":61.60908}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ER.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ER.js deleted file mode 100644 index 5524a972..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ER.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"43":0.04748,"45":0.09496,"85":0.09496,"93":0.04748,"96":0.47481,"99":0.04748,"115":1.37017,"120":0.28489,"132":0.04748,"141":0.18992,"142":0.56977,"143":1.65505,"144":2.78781,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 94 95 97 98 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 122 123 124 125 126 127 128 129 130 131 133 134 135 136 137 138 139 140 145 146 147 3.5 3.6"},D:{"33":0.04748,"41":0.04748,"57":0.04748,"77":0.09496,"83":0.04748,"92":0.37985,"109":7.00006,"112":0.42733,"118":0.37985,"125":0.71222,"126":0.28489,"127":1.56009,"131":5.91478,"134":1.32269,"135":1.2752,"136":0.09496,"137":0.33237,"138":0.52229,"139":1.60757,"140":7.3799,"141":12.86735,"142":0.28489,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 37 38 39 40 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 79 80 81 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 113 114 115 116 117 119 120 121 122 123 124 128 129 130 132 133 143 144 145"},F:{"57":0.28489,"90":0.04748,"110":0.04748,"122":0.18992,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 111 112 113 114 115 116 117 118 119 120 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.14244,"90":0.04748,"100":0.47481,"135":0.04748,"137":0.09496,"138":0.18992,"139":2.69285,"140":4.96516,"141":3.78491,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 91 92 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 136 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.4 17.5 17.6 18.0 18.1 18.2 18.3 18.4 26.0 26.1 26.2","18.5-18.6":0.33237},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00012,"5.0-5.1":0,"6.0-6.1":0.00047,"7.0-7.1":0.00036,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00107,"10.0-10.2":0.00012,"10.3":0.00201,"11.0-11.2":0.02982,"11.3-11.4":0.00071,"12.0-12.1":0.00024,"12.2-12.5":0.0058,"13.0-13.1":0,"13.2":0.00059,"13.3":0.00024,"13.4-13.7":0.00095,"14.0-14.4":0.00201,"14.5-14.8":0.00213,"15.0-15.1":0.00201,"15.2-15.3":0.00154,"15.4":0.00178,"15.5":0.00201,"15.6-15.8":0.02627,"16.0":0.00355,"16.1":0.00663,"16.2":0.00343,"16.3":0.00615,"16.4":0.00154,"16.5":0.00272,"16.6-16.7":0.03515,"17.0":0.00249,"17.1":0.00379,"17.2":0.00272,"17.3":0.00402,"17.4":0.0071,"17.5":0.01219,"17.6-17.7":0.03077,"18.0":0.00698,"18.1":0.01444,"18.2":0.00781,"18.3":0.02509,"18.4":0.0129,"18.5-18.6":0.65778,"26.0":0.08131,"26.1":0.00296},P:{"27":0.05146,_:"4 20 21 22 23 24 25 26 28 29 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.72038,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.05146},Q:{_:"14.9"},O:{"0":0.41165},H:{"0":0},L:{"0":31.33721}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ES.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ES.js deleted file mode 100644 index 8e0838a1..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ES.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"4":0.0045,"48":0.0045,"52":0.0135,"54":0.02699,"59":0.009,"78":0.0135,"109":0.0045,"113":0.0045,"115":0.16196,"127":0.0045,"128":0.018,"132":0.0045,"133":0.0045,"134":0.0045,"135":0.0135,"136":0.0225,"137":0.009,"138":0.018,"139":0.009,"140":0.06749,"141":0.0135,"142":0.04049,"143":0.9133,"144":0.79632,"145":0.0045,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 146 147 3.5 3.6"},D:{"38":0.0045,"39":0.0045,"40":0.0045,"41":0.0045,"42":0.0045,"43":0.0045,"44":0.0045,"45":0.0045,"46":0.0045,"47":0.0045,"48":0.0045,"49":0.018,"50":0.0045,"51":0.0045,"52":0.0045,"53":0.0045,"54":0.0045,"55":0.0045,"56":0.0045,"57":0.0045,"58":0.0045,"59":0.0045,"60":0.0045,"65":0.0045,"66":0.04499,"73":0.0045,"75":0.04049,"79":0.018,"80":0.0045,"83":0.0045,"87":0.02699,"88":0.0045,"91":0.0045,"96":0.0045,"97":0.0045,"99":0.0045,"100":0.0045,"102":0.0045,"103":0.04499,"104":0.0135,"105":0.0045,"106":0.0045,"107":0.0045,"108":0.0135,"109":0.93579,"110":0.0045,"111":0.009,"112":0.009,"113":0.0045,"114":0.0135,"115":0.0045,"116":0.09898,"117":0.0045,"118":0.009,"119":0.0135,"120":0.03149,"121":0.0135,"122":0.06749,"123":0.0225,"124":0.02699,"125":0.77833,"126":0.05849,"127":0.03599,"128":0.08548,"129":0.018,"130":0.05399,"131":0.09448,"132":0.05849,"133":0.07198,"134":0.06749,"135":0.08548,"136":0.11248,"137":0.19346,"138":0.38242,"139":0.67035,"140":7.75628,"141":15.13914,"142":0.13947,"143":0.0045,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 67 68 69 70 71 72 74 76 77 78 81 84 85 86 89 90 92 93 94 95 98 101 144 145"},F:{"91":0.0135,"92":0.03599,"95":0.0135,"114":0.0045,"119":0.0045,"120":0.16646,"121":0.22045,"122":1.46667,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.0045,"92":0.0045,"109":0.05849,"114":0.0045,"120":0.0045,"121":0.0045,"122":0.0225,"124":0.0045,"126":0.0045,"128":0.0045,"129":0.0045,"130":0.009,"131":0.009,"132":0.0045,"133":0.009,"134":0.018,"135":0.0135,"136":0.0135,"137":0.0135,"138":0.0225,"139":0.03149,"140":0.63436,"141":3.02783,"142":0.0045,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 123 125 127"},E:{"13":0.0045,"14":0.009,"15":0.0045,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.1 26.2","11.1":0.009,"12.1":0.0045,"13.1":0.03599,"14.1":0.0225,"15.2-15.3":0.0045,"15.4":0.0045,"15.5":0.009,"15.6":0.12147,"16.0":0.0045,"16.1":0.009,"16.2":0.0135,"16.3":0.0225,"16.4":0.009,"16.5":0.0135,"16.6":0.15747,"17.0":0.009,"17.1":0.10348,"17.2":0.0135,"17.3":0.018,"17.4":0.0225,"17.5":0.04949,"17.6":0.15297,"18.0":0.0225,"18.1":0.02699,"18.2":0.0135,"18.3":0.05849,"18.4":0.03599,"18.5-18.6":0.16646,"26.0":0.4589,"26.1":0.0135},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00123,"5.0-5.1":0,"6.0-6.1":0.00493,"7.0-7.1":0.0037,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01109,"10.0-10.2":0.00123,"10.3":0.02096,"11.0-11.2":0.31066,"11.3-11.4":0.0074,"12.0-12.1":0.00247,"12.2-12.5":0.06041,"13.0-13.1":0,"13.2":0.00616,"13.3":0.00247,"13.4-13.7":0.00986,"14.0-14.4":0.02096,"14.5-14.8":0.02219,"15.0-15.1":0.02096,"15.2-15.3":0.01603,"15.4":0.01849,"15.5":0.02096,"15.6-15.8":0.27368,"16.0":0.03698,"16.1":0.06904,"16.2":0.03575,"16.3":0.0641,"16.4":0.01603,"16.5":0.02835,"16.6-16.7":0.36613,"17.0":0.02589,"17.1":0.03945,"17.2":0.02835,"17.3":0.04191,"17.4":0.07397,"17.5":0.12698,"17.6-17.7":0.32052,"18.0":0.07273,"18.1":0.1504,"18.2":0.08136,"18.3":0.26135,"18.4":0.13437,"18.5-18.6":6.85176,"26.0":0.84692,"26.1":0.03082},P:{"4":0.0209,"21":0.0209,"22":0.01045,"23":0.0209,"24":0.0209,"25":0.0209,"26":0.05225,"27":0.07315,"28":2.07947,"29":0.15674,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.01045,"19.0":0.01045},I:{"0":0.02197,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.33006,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00519,"11":0.06229,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.39607},Q:{_:"14.9"},O:{"0":0.022},H:{"0":0},L:{"0":44.93319}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ET.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ET.js deleted file mode 100644 index eeb95174..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ET.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"43":0.00301,"46":0.00301,"47":0.01205,"48":0.00301,"49":0.00301,"52":0.01205,"55":0.00301,"56":0.00301,"57":0.00301,"59":0.00301,"60":0.00301,"61":0.00301,"66":0.00301,"67":0.00301,"68":0.00301,"72":0.01205,"77":0.00301,"84":0.00301,"91":0.00301,"95":0.00301,"97":0.00301,"103":0.00301,"104":0.00301,"105":0.00301,"111":0.00301,"112":0.0241,"113":0.00904,"114":0.23795,"115":0.64758,"127":0.04217,"128":0.01807,"130":0.00301,"131":0.03313,"133":0.03012,"134":0.00301,"135":0.00301,"136":0.00602,"137":0.00301,"138":0.00602,"139":0.00602,"140":0.04518,"141":0.01506,"142":0.03313,"143":0.66565,"144":0.65059,"145":0.01506,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 50 51 53 54 58 62 63 64 65 69 70 71 73 74 75 76 78 79 80 81 82 83 85 86 87 88 89 90 92 93 94 96 98 99 100 101 102 106 107 108 109 110 116 117 118 119 120 121 122 123 124 125 126 129 132 146 147 3.5 3.6"},D:{"33":0.00301,"37":0.00301,"38":0.00301,"39":0.00602,"40":0.00602,"41":0.00602,"42":0.00904,"43":0.01807,"44":0.00602,"45":0.00602,"46":0.00602,"47":0.00602,"48":0.00602,"49":0.00904,"50":0.00904,"51":0.00904,"52":0.00602,"53":0.00602,"54":0.00602,"55":0.00602,"56":0.00904,"57":0.00602,"58":0.00904,"59":0.00602,"60":0.00602,"61":0.00301,"64":0.00301,"65":0.01506,"66":0.01807,"67":0.00301,"68":0.00904,"69":0.00602,"70":0.01205,"71":0.01807,"72":0.01205,"73":0.0241,"74":0.01506,"75":0.00904,"76":0.00904,"77":0.01205,"78":0.00904,"79":0.0753,"80":0.03614,"81":0.00602,"83":0.01506,"84":0.00301,"85":0.00602,"86":0.01807,"87":0.02108,"88":0.00602,"89":0.00904,"90":0.00904,"91":0.01807,"92":0.00301,"93":0.01205,"94":0.00602,"95":0.01205,"96":0.00602,"97":0.01807,"98":0.03012,"99":0.00602,"100":0.00602,"101":0.00602,"102":0.00602,"103":0.04518,"104":0.04518,"105":0.00904,"106":0.00904,"107":0.00301,"108":0.01506,"109":0.86143,"110":0.00602,"111":0.01205,"112":0.86143,"113":0.00301,"114":0.03012,"115":0.00602,"116":0.02711,"117":0.00602,"118":0.01205,"119":0.06626,"120":0.0241,"121":0.01506,"122":0.03012,"123":0.01205,"124":0.01506,"125":3.55416,"126":0.11144,"127":0.02711,"128":0.03916,"129":0.02108,"130":0.02711,"131":0.08132,"132":0.02711,"133":0.03916,"134":0.06626,"135":0.06626,"136":0.09337,"137":0.18674,"138":0.4277,"139":0.503,"140":3.64452,"141":6.86435,"142":0.11144,"143":0.01205,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 62 63 144 145"},F:{"42":0.00301,"45":0.00301,"79":0.01205,"83":0.00301,"85":0.00301,"90":0.00301,"91":0.01205,"92":0.02108,"95":0.0753,"113":0.00301,"117":0.00301,"119":0.00602,"120":0.12952,"121":0.01205,"122":0.85842,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 84 86 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 115 116 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01205,"13":0.00602,"14":0.00602,"15":0.00301,"16":0.00602,"17":0.00602,"18":0.04518,"84":0.00301,"89":0.00301,"90":0.00301,"92":0.07229,"95":0.00301,"100":0.01205,"107":0.00301,"109":0.01205,"112":0.00301,"114":0.23795,"122":0.00904,"123":0.00301,"124":0.00301,"126":0.00301,"128":0.00301,"129":0.00301,"130":0.00301,"131":0.00602,"132":0.00301,"133":0.00602,"134":0.00602,"135":0.00904,"136":0.01205,"137":0.01807,"138":0.0512,"139":0.04518,"140":0.48493,"141":2.19575,"142":0.00904,_:"79 80 81 83 85 86 87 88 91 93 94 96 97 98 99 101 102 103 104 105 106 108 110 111 113 115 116 117 118 119 120 121 125 127"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.5 17.0 17.2 17.3 17.5 18.0 18.1 26.1 26.2","13.1":0.00904,"14.1":0.00301,"15.6":0.01807,"16.4":0.00602,"16.6":0.0241,"17.1":0.00301,"17.4":0.00301,"17.6":0.01506,"18.2":0.00301,"18.3":0.00301,"18.4":0.00301,"18.5-18.6":0.01506,"26.0":0.04819},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00012,"5.0-5.1":0,"6.0-6.1":0.00049,"7.0-7.1":0.00037,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00111,"10.0-10.2":0.00012,"10.3":0.0021,"11.0-11.2":0.03116,"11.3-11.4":0.00074,"12.0-12.1":0.00025,"12.2-12.5":0.00606,"13.0-13.1":0,"13.2":0.00062,"13.3":0.00025,"13.4-13.7":0.00099,"14.0-14.4":0.0021,"14.5-14.8":0.00223,"15.0-15.1":0.0021,"15.2-15.3":0.00161,"15.4":0.00186,"15.5":0.0021,"15.6-15.8":0.02745,"16.0":0.00371,"16.1":0.00693,"16.2":0.00359,"16.3":0.00643,"16.4":0.00161,"16.5":0.00284,"16.6-16.7":0.03673,"17.0":0.0026,"17.1":0.00396,"17.2":0.00284,"17.3":0.0042,"17.4":0.00742,"17.5":0.01274,"17.6-17.7":0.03215,"18.0":0.0073,"18.1":0.01509,"18.2":0.00816,"18.3":0.02622,"18.4":0.01348,"18.5-18.6":0.68736,"26.0":0.08496,"26.1":0.00309},P:{"4":0.08384,"21":0.01048,"22":0.01048,"23":0.01048,"24":0.03144,"25":0.0524,"26":0.08384,"27":0.12577,"28":0.79652,"29":0.04192,_:"20 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","5.0-5.4":0.01048,"6.2-6.4":0.01048,"7.2-7.4":0.0524,"17.0":0.01048,"19.0":0.01048},I:{"0":0.27909,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00006,"4.4":0,"4.4.3-4.4.4":0.00014},K:{"0":1.45285,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01506,_:"6 7 8 9 10 5.5"},S:{"2.5":0.04192,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.16769},Q:{"14.9":0.00699},O:{"0":0.15371},H:{"0":2.39},L:{"0":65.43454}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/FI.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/FI.js deleted file mode 100644 index 16846d82..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/FI.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"51":0.01368,"52":0.01368,"55":0.02052,"68":0.02736,"113":0.00684,"114":0.00684,"115":0.17787,"128":0.04105,"130":0.00684,"133":0.00684,"135":0.2668,"136":0.01368,"138":0.02052,"139":0.00684,"140":0.08209,"141":0.02736,"142":0.04105,"143":1.17665,"144":1.15613,"145":0.00684,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 53 54 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 116 117 118 119 120 121 122 123 124 125 126 127 129 131 132 134 137 146 147 3.5 3.6"},D:{"38":0.00684,"39":0.00684,"40":0.01368,"41":0.01368,"42":0.01368,"43":0.00684,"44":0.00684,"45":0.00684,"46":0.00684,"47":0.00684,"48":0.01368,"49":0.01368,"50":0.00684,"51":0.00684,"52":0.16418,"53":0.00684,"54":0.00684,"55":0.00684,"56":0.00684,"57":0.01368,"58":0.02052,"59":0.00684,"60":0.00684,"66":0.02052,"71":0.02736,"73":0.00684,"78":0.00684,"79":0.01368,"81":0.00684,"87":0.06157,"88":0.00684,"91":0.47887,"93":0.00684,"94":0.00684,"101":0.00684,"102":0.01368,"103":0.01368,"104":0.09577,"107":0.00684,"108":0.00684,"109":0.2668,"110":0.00684,"111":0.00684,"112":0.00684,"114":0.06157,"116":0.03421,"117":0.00684,"118":0.00684,"119":0.01368,"120":0.02736,"121":0.03421,"122":0.03421,"123":0.01368,"124":0.05473,"125":0.32837,"126":0.03421,"127":0.01368,"128":0.06841,"129":0.02052,"130":0.02736,"131":0.08893,"132":3.3863,"133":0.06841,"134":0.05473,"135":0.05473,"136":0.07525,"137":0.1505,"138":3.14686,"139":11.32186,"140":12.05384,"141":22.50005,"142":0.12998,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 67 68 69 70 72 74 75 76 77 80 83 84 85 86 89 90 92 95 96 97 98 99 100 105 106 113 115 143 144 145"},F:{"68":0.00684,"91":0.00684,"92":0.02052,"95":0.01368,"114":0.00684,"120":0.07525,"121":0.10946,"122":1.01247,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00684,"109":0.01368,"131":0.00684,"132":0.00684,"133":0.00684,"134":0.02052,"135":0.00684,"136":0.00684,"137":0.00684,"138":0.01368,"139":0.02052,"140":0.60885,"141":2.67483,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 142"},E:{"13":0.00684,"14":0.00684,"15":0.00684,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 16.0 17.0 26.2","13.1":0.00684,"14.1":0.00684,"15.5":0.00684,"15.6":0.05473,"16.1":0.00684,"16.2":0.00684,"16.3":0.01368,"16.4":0.00684,"16.5":0.01368,"16.6":0.09577,"17.1":0.07525,"17.2":0.00684,"17.3":0.00684,"17.4":0.01368,"17.5":0.02736,"17.6":0.12314,"18.0":0.00684,"18.1":0.00684,"18.2":0.00684,"18.3":0.02736,"18.4":0.02052,"18.5-18.6":0.10262,"26.0":0.36941,"26.1":0.00684},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00078,"5.0-5.1":0,"6.0-6.1":0.0031,"7.0-7.1":0.00233,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00698,"10.0-10.2":0.00078,"10.3":0.01318,"11.0-11.2":0.19536,"11.3-11.4":0.00465,"12.0-12.1":0.00155,"12.2-12.5":0.03799,"13.0-13.1":0,"13.2":0.00388,"13.3":0.00155,"13.4-13.7":0.0062,"14.0-14.4":0.01318,"14.5-14.8":0.01395,"15.0-15.1":0.01318,"15.2-15.3":0.01008,"15.4":0.01163,"15.5":0.01318,"15.6-15.8":0.1721,"16.0":0.02326,"16.1":0.04341,"16.2":0.02248,"16.3":0.04031,"16.4":0.01008,"16.5":0.01783,"16.6-16.7":0.23024,"17.0":0.01628,"17.1":0.02481,"17.2":0.01783,"17.3":0.02636,"17.4":0.04651,"17.5":0.07985,"17.6-17.7":0.20156,"18.0":0.04574,"18.1":0.09458,"18.2":0.05116,"18.3":0.16435,"18.4":0.0845,"18.5-18.6":4.30866,"26.0":0.53258,"26.1":0.01938},P:{"20":0.01052,"21":0.01052,"22":0.02105,"23":0.03157,"24":0.02105,"25":0.02105,"26":0.03157,"27":0.06315,"28":1.58918,"29":0.15787,_:"4 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","17.0":0.01052},I:{"0":0.01577,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.36644,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.04789,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.67287},Q:{_:"14.9"},O:{"0":0.05686},H:{"0":0},L:{"0":22.33818}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/FJ.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/FJ.js deleted file mode 100644 index 8cdc15a1..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/FJ.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"112":0.0038,"115":0.05703,"121":0.02281,"127":0.01141,"138":0.0038,"140":0.01521,"141":0.0038,"142":0.01901,"143":0.80222,"144":0.34218,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 122 123 124 125 126 128 129 130 131 132 133 134 135 136 137 139 145 146 147 3.5 3.6"},D:{"39":0.0076,"40":0.0076,"41":0.0076,"42":0.01141,"43":0.01141,"44":0.01521,"45":0.0038,"46":0.01521,"47":0.0076,"48":0.01141,"49":0.01141,"50":0.01141,"51":0.01141,"52":0.01141,"53":0.0038,"54":0.01141,"55":0.0076,"56":0.01141,"57":0.01141,"58":0.01521,"59":0.01141,"60":0.0076,"78":0.0038,"79":0.0076,"80":0.0038,"83":0.0038,"87":0.01141,"88":0.01901,"92":0.04562,"93":0.0076,"94":0.01141,"97":0.0076,"102":0.0038,"103":0.0038,"104":0.0038,"108":0.0038,"109":0.08364,"111":0.34218,"114":0.0038,"116":0.0076,"119":0.0038,"120":0.0076,"122":0.02281,"124":0.0076,"125":5.23535,"126":0.11786,"127":0.02661,"128":0.07224,"129":0.0038,"130":0.0038,"131":0.05703,"132":0.0076,"133":0.01901,"134":0.02661,"135":0.01901,"136":0.06463,"137":0.11786,"138":0.16729,"139":0.14067,"140":3.52065,"141":7.82452,"142":0.05323,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 81 84 85 86 89 90 91 95 96 98 99 100 101 105 106 107 110 112 113 115 117 118 121 123 143 144 145"},F:{"28":0.0038,"36":0.01141,"91":0.0076,"92":0.12166,"95":0.04562,"102":0.0038,"114":0.0038,"119":0.0038,"120":0.06844,"121":0.02661,"122":0.39921,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.0038,"15":0.0076,"18":0.0038,"86":0.0038,"92":0.0076,"100":0.0076,"109":0.01141,"112":0.02661,"114":0.27755,"120":0.0038,"122":0.0076,"126":0.0076,"131":0.0076,"132":0.0038,"133":0.0076,"134":0.0038,"135":0.0076,"136":0.01521,"137":0.09505,"138":0.16349,"139":0.02281,"140":1.45236,"141":3.67273,"142":0.0076,_:"12 14 16 17 79 80 81 83 84 85 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 113 115 116 117 118 119 121 123 124 125 127 128 129 130"},E:{"14":0.0038,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.4 15.5 16.0 16.2 16.4 16.5 18.0 18.2 26.2","14.1":0.0076,"15.2-15.3":0.0038,"15.6":0.15588,"16.1":0.0038,"16.3":0.0038,"16.6":0.15968,"17.0":0.02661,"17.1":0.04182,"17.2":0.0038,"17.3":0.0038,"17.4":0.0038,"17.5":0.0038,"17.6":0.07984,"18.1":0.01521,"18.3":0.10646,"18.4":0.0076,"18.5-18.6":0.10265,"26.0":0.23572,"26.1":0.0076},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00078,"5.0-5.1":0,"6.0-6.1":0.0031,"7.0-7.1":0.00233,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00698,"10.0-10.2":0.00078,"10.3":0.01318,"11.0-11.2":0.19536,"11.3-11.4":0.00465,"12.0-12.1":0.00155,"12.2-12.5":0.03799,"13.0-13.1":0,"13.2":0.00388,"13.3":0.00155,"13.4-13.7":0.0062,"14.0-14.4":0.01318,"14.5-14.8":0.01395,"15.0-15.1":0.01318,"15.2-15.3":0.01008,"15.4":0.01163,"15.5":0.01318,"15.6-15.8":0.1721,"16.0":0.02326,"16.1":0.04341,"16.2":0.02248,"16.3":0.04031,"16.4":0.01008,"16.5":0.01783,"16.6-16.7":0.23025,"17.0":0.01628,"17.1":0.02481,"17.2":0.01783,"17.3":0.02636,"17.4":0.04651,"17.5":0.07985,"17.6-17.7":0.20156,"18.0":0.04574,"18.1":0.09458,"18.2":0.05117,"18.3":0.16435,"18.4":0.0845,"18.5-18.6":4.30881,"26.0":0.53259,"26.1":0.01938},P:{"4":0.02062,"20":0.01031,"21":0.05155,"22":0.18556,"23":0.06185,"24":0.31958,"25":0.86596,"26":0.16494,"27":1.15461,"28":5.38131,"29":0.21649,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 15.0 17.0 18.0","7.2-7.4":0.35051,"14.0":0.01031,"16.0":0.01031,"19.0":0.02062},I:{"0":0.00619,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.37182,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0038,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.18591},Q:{_:"14.9"},O:{"0":0.11774},H:{"0":0},L:{"0":54.14262}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/FK.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/FK.js deleted file mode 100644 index 281bf93e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/FK.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"108":1.21766,"115":0.16501,"122":0.16501,"130":0.33002,"142":0.16501,"143":17.83815,"144":5.48516,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 109 110 111 112 113 114 116 117 118 119 120 121 123 124 125 126 127 128 129 131 132 133 134 135 136 137 138 139 140 141 145 146 147 3.5 3.6"},D:{"41":0.0569,"77":0.10811,"109":0.38692,"125":0.22191,"138":0.22191,"139":0.10811,"140":2.99294,"141":1.60458,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 126 127 128 129 130 131 132 133 134 135 136 137 142 143 144 145"},F:{"122":0.60883,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.10811,"92":0.22191,"109":0.0569,"139":1.10955,"140":3.37986,"141":6.92473,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.3 17.4 17.6 18.0 18.1 18.2 18.5-18.6 26.1 26.2","16.6":0.33002,"17.5":0.50072,"18.3":0.27881,"18.4":0.10811,"26.0":1.05265},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.001,"5.0-5.1":0,"6.0-6.1":0.004,"7.0-7.1":0.003,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00899,"10.0-10.2":0.001,"10.3":0.01698,"11.0-11.2":0.25176,"11.3-11.4":0.00599,"12.0-12.1":0.002,"12.2-12.5":0.04895,"13.0-13.1":0,"13.2":0.005,"13.3":0.002,"13.4-13.7":0.00799,"14.0-14.4":0.01698,"14.5-14.8":0.01798,"15.0-15.1":0.01698,"15.2-15.3":0.01299,"15.4":0.01499,"15.5":0.01698,"15.6-15.8":0.22179,"16.0":0.02997,"16.1":0.05595,"16.2":0.02897,"16.3":0.05195,"16.4":0.01299,"16.5":0.02298,"16.6-16.7":0.29672,"17.0":0.02098,"17.1":0.03197,"17.2":0.02298,"17.3":0.03397,"17.4":0.05994,"17.5":0.1029,"17.6-17.7":0.25976,"18.0":0.05894,"18.1":0.12189,"18.2":0.06594,"18.3":0.2118,"18.4":0.1089,"18.5-18.6":5.55276,"26.0":0.68635,"26.1":0.02498},P:{"28":3.93934,_:"4 20 21 22 23 24 25 26 27 29 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.74132},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":33.07579}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/FM.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/FM.js deleted file mode 100644 index 33ce915f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/FM.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"126":0.01387,"137":0.01387,"140":0.02774,"142":0.02774,"143":0.71657,"144":0.73043,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 127 128 129 130 131 132 133 134 135 136 138 139 141 145 146 147 3.5 3.6"},D:{"39":0.02774,"42":0.01387,"45":0.01387,"48":0.01387,"55":0.02774,"87":0.04161,"93":0.01387,"94":0.04161,"97":0.05548,"102":0.01387,"103":0.05548,"109":2.11733,"114":0.04161,"125":2.9957,"126":0.01387,"128":0.02774,"131":0.01387,"132":0.02774,"133":0.01387,"137":0.10633,"138":0.78591,"139":0.25427,"140":4.44733,"141":7.42916,"142":0.07859,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 41 43 44 46 47 49 50 51 52 53 54 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 88 89 90 91 92 95 96 98 99 100 101 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 127 129 130 134 135 136 143 144 145"},F:{"91":0.33286,"92":0.2404,"120":0.09246,"122":0.2404,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"104":0.02774,"109":0.01387,"126":0.01387,"135":0.01387,"137":0.01387,"138":0.05548,"139":0.06472,"140":2.28839,"141":7.99779,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 127 128 129 130 131 132 133 134 136 142"},E:{"13":0.01387,_:"0 4 5 6 7 8 9 10 11 12 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.3 16.4 16.5 17.3 17.4 17.5 18.0 26.1 26.2","13.1":0.16181,"15.6":0.05548,"16.2":0.09246,"16.6":0.07859,"17.0":0.01387,"17.1":0.01387,"17.2":0.02774,"17.6":0.01387,"18.1":0.04161,"18.2":0.05548,"18.3":0.02774,"18.4":0.04161,"18.5-18.6":0.06472,"26.0":0.16181},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00077,"5.0-5.1":0,"6.0-6.1":0.0031,"7.0-7.1":0.00232,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00697,"10.0-10.2":0.00077,"10.3":0.01317,"11.0-11.2":0.19529,"11.3-11.4":0.00465,"12.0-12.1":0.00155,"12.2-12.5":0.03797,"13.0-13.1":0,"13.2":0.00387,"13.3":0.00155,"13.4-13.7":0.0062,"14.0-14.4":0.01317,"14.5-14.8":0.01395,"15.0-15.1":0.01317,"15.2-15.3":0.01007,"15.4":0.01162,"15.5":0.01317,"15.6-15.8":0.17204,"16.0":0.02325,"16.1":0.0434,"16.2":0.02247,"16.3":0.0403,"16.4":0.01007,"16.5":0.01782,"16.6-16.7":0.23017,"17.0":0.01627,"17.1":0.0248,"17.2":0.01782,"17.3":0.02635,"17.4":0.0465,"17.5":0.07982,"17.6-17.7":0.20149,"18.0":0.04572,"18.1":0.09455,"18.2":0.05115,"18.3":0.16429,"18.4":0.08447,"18.5-18.6":4.30728,"26.0":0.5324,"26.1":0.01937},P:{"20":0.22745,"21":0.01083,"22":0.11914,"25":0.1733,"27":0.20579,"28":2.0904,"29":0.18413,_:"4 23 24 26 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0","7.2-7.4":0.69319,"16.0":0.16247,"19.0":0.01083},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.10218,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":53.05497}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/FO.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/FO.js deleted file mode 100644 index b4423bc9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/FO.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"72":0.00462,"102":0.02311,"115":0.03697,"128":0.02311,"133":0.12477,"134":0.1109,"135":0.03697,"137":0.1109,"139":0.00924,"140":0.38354,"142":0.00462,"143":0.75784,"144":0.85489,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 136 138 141 145 146 147 3.5 3.6"},D:{"41":0.00462,"43":0.00462,"45":0.00462,"49":0.02773,"54":0.00462,"55":0.00462,"56":0.00462,"57":0.00462,"58":0.00462,"59":0.00462,"60":0.00462,"79":0.01386,"84":0.00462,"87":0.00462,"103":0.00924,"108":0.00924,"109":0.85489,"116":0.02773,"120":0.00462,"122":0.00462,"125":0.69315,"126":0.01386,"127":0.00924,"128":0.06469,"131":1.11366,"132":0.31885,"133":0.15711,"134":0.3512,"135":0.31885,"136":0.36044,"137":0.49445,"138":0.51755,"139":0.39279,"140":4.17276,"141":8.47954,"142":0.03235,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 44 46 47 48 50 51 52 53 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 110 111 112 113 114 115 117 118 119 121 123 124 129 130 143 144 145"},F:{"46":0.00462,"114":0.09242,"116":0.01386,"120":0.05083,"121":0.13863,"122":1.55266,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00462,"92":0.01386,"99":0.01848,"109":0.01386,"131":0.53142,"132":0.03235,"133":0.06932,"134":0.14325,"135":0.06007,"136":0.00924,"138":0.02311,"139":0.02311,"140":1.01662,"141":3.17463,"142":0.00462,_:"12 13 14 15 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 137"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 13.1 15.2-15.3 15.4 26.2","11.1":0.02773,"12.1":0.00462,"14.1":0.06007,"15.1":0.00924,"15.5":0.12015,"15.6":0.53142,"16.0":0.03697,"16.1":0.04159,"16.2":0.11553,"16.3":0.36968,"16.4":0.03235,"16.5":0.01386,"16.6":1.02124,"17.0":0.01848,"17.1":1.02586,"17.2":0.02773,"17.3":0.02773,"17.4":0.12477,"17.5":0.18484,"17.6":0.44362,"18.0":0.0878,"18.1":0.11553,"18.2":0.02311,"18.3":0.12015,"18.4":0.17098,"18.5-18.6":0.82254,"26.0":2.00089,"26.1":0.03697},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00433,"5.0-5.1":0,"6.0-6.1":0.01731,"7.0-7.1":0.01298,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.03894,"10.0-10.2":0.00433,"10.3":0.07355,"11.0-11.2":1.0903,"11.3-11.4":0.02596,"12.0-12.1":0.00865,"12.2-12.5":0.212,"13.0-13.1":0,"13.2":0.02163,"13.3":0.00865,"13.4-13.7":0.03461,"14.0-14.4":0.07355,"14.5-14.8":0.07788,"15.0-15.1":0.07355,"15.2-15.3":0.05625,"15.4":0.0649,"15.5":0.07355,"15.6-15.8":0.9605,"16.0":0.1298,"16.1":0.24229,"16.2":0.12547,"16.3":0.22498,"16.4":0.05625,"16.5":0.09951,"16.6-16.7":1.285,"17.0":0.09086,"17.1":0.13845,"17.2":0.09951,"17.3":0.1471,"17.4":0.2596,"17.5":0.44564,"17.6-17.7":1.12491,"18.0":0.25527,"18.1":0.52784,"18.2":0.28556,"18.3":0.91724,"18.4":0.4716,"18.5-18.6":24.04722,"26.0":2.97237,"26.1":0.10816},P:{"4":0.04107,"26":0.01027,"27":0.01027,"28":1.2321,"29":0.16428,_:"20 21 22 23 24 25 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.06984,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.01076,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.03235,"10":0.00462,"11":0.12015,_:"6 7 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.2152},Q:{"14.9":0.00538},O:{"0":0.00538},H:{"0":0},L:{"0":11.11948}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/FR.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/FR.js deleted file mode 100644 index 887e8c4c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/FR.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"3":0.00476,"48":0.00951,"50":0.00476,"52":0.02854,"53":0.00476,"54":0.00951,"55":0.00476,"56":0.00476,"57":0.00476,"59":0.03329,"75":0.00951,"78":0.02378,"88":0.00476,"91":0.00476,"102":0.00476,"113":0.00951,"115":0.43755,"121":0.00476,"124":0.00476,"125":0.00951,"127":0.00476,"128":0.13317,"130":0.00476,"131":0.00476,"132":0.00476,"133":0.01427,"134":0.01902,"135":0.01902,"136":0.03805,"137":0.1189,"138":0.01427,"139":0.02378,"140":0.20926,"141":0.08085,"142":0.08085,"143":1.99752,"144":1.88338,"145":0.00476,_:"2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 51 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 79 80 81 82 83 84 85 86 87 89 90 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 122 123 126 129 146 147 3.5 3.6"},D:{"29":0.00476,"39":0.00951,"40":0.00476,"41":0.00951,"42":0.00476,"43":0.00951,"44":0.00476,"45":0.00476,"46":0.00476,"47":0.00951,"48":0.01902,"49":0.03805,"50":0.00951,"51":0.00951,"52":0.02378,"53":0.00951,"54":0.00476,"55":0.00951,"56":0.02854,"57":0.00951,"58":0.00951,"59":0.00951,"60":0.00476,"66":0.14268,"67":0.00476,"70":0.00476,"73":0.02854,"74":0.00476,"76":0.00476,"78":0.00476,"79":0.01902,"80":0.00476,"81":0.00476,"83":0.00476,"84":0.00476,"85":0.00951,"86":0.00476,"87":0.02854,"88":0.00476,"90":0.00476,"91":0.00476,"92":0.00476,"93":0.03805,"95":0.00476,"97":0.00476,"98":0.00476,"100":0.00476,"102":0.13792,"103":0.04756,"104":0.01427,"105":0.00476,"106":0.00476,"107":0.00476,"108":0.00951,"109":0.7895,"110":0.00476,"111":0.00951,"112":0.01902,"113":0.00951,"114":0.04756,"115":0.01902,"116":0.14744,"117":0.00476,"118":0.10463,"119":0.02378,"120":0.02854,"121":0.01427,"122":0.09512,"123":0.02854,"124":0.03329,"125":1.32217,"126":0.08085,"127":0.03805,"128":0.08085,"129":0.02854,"130":0.27109,"131":0.14744,"132":0.51365,"133":0.09988,"134":0.09988,"135":0.12841,"136":0.29012,"137":0.13317,"138":0.3995,"139":0.81328,"140":6.00207,"141":12.66998,"142":0.16646,"143":0.00476,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 38 61 62 63 64 65 68 69 71 72 75 77 89 94 96 99 101 144 145"},F:{"46":0.00476,"91":0.01902,"92":0.02854,"95":0.03805,"102":0.00476,"114":0.01427,"115":0.00476,"116":0.00476,"117":0.00476,"119":0.00476,"120":0.12841,"121":0.16646,"122":1.31741,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00476,"14":0.00476,"17":0.01902,"18":0.00476,"92":0.00476,"96":0.00951,"101":0.01902,"109":0.08085,"114":0.00476,"120":0.00476,"122":0.37572,"126":0.03329,"127":0.00476,"128":0.00476,"129":0.00476,"130":0.00951,"131":0.03805,"132":0.01427,"133":0.01427,"134":0.0428,"135":0.01902,"136":0.02378,"137":0.01902,"138":0.03805,"139":0.05707,"140":0.96071,"141":4.58003,"142":0.01427,_:"13 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 97 98 99 100 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 121 123 124 125"},E:{"4":0.00476,"9":0.00476,"14":0.00951,_:"0 5 6 7 8 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 26.2","11.1":0.03805,"12.1":0.00476,"13.1":0.08085,"14.1":0.13317,"15.1":0.00951,"15.2-15.3":0.00476,"15.4":0.00951,"15.5":0.00951,"15.6":0.18548,"16.0":0.02378,"16.1":0.01902,"16.2":0.01427,"16.3":0.01902,"16.4":0.01427,"16.5":0.01902,"16.6":0.22353,"17.0":0.01427,"17.1":0.1189,"17.2":0.02378,"17.3":0.01902,"17.4":0.03805,"17.5":0.07134,"17.6":0.25682,"18.0":0.02378,"18.1":0.03805,"18.2":0.02378,"18.3":0.08561,"18.4":0.04756,"18.5-18.6":0.18548,"26.0":0.5517,"26.1":0.01902},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00134,"5.0-5.1":0,"6.0-6.1":0.00534,"7.0-7.1":0.00401,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01202,"10.0-10.2":0.00134,"10.3":0.02271,"11.0-11.2":0.33658,"11.3-11.4":0.00801,"12.0-12.1":0.00267,"12.2-12.5":0.06545,"13.0-13.1":0,"13.2":0.00668,"13.3":0.00267,"13.4-13.7":0.01069,"14.0-14.4":0.02271,"14.5-14.8":0.02404,"15.0-15.1":0.02271,"15.2-15.3":0.01736,"15.4":0.02003,"15.5":0.02271,"15.6-15.8":0.29651,"16.0":0.04007,"16.1":0.0748,"16.2":0.03873,"16.3":0.06945,"16.4":0.01736,"16.5":0.03072,"16.6-16.7":0.39669,"17.0":0.02805,"17.1":0.04274,"17.2":0.03072,"17.3":0.04541,"17.4":0.08014,"17.5":0.13757,"17.6-17.7":0.34727,"18.0":0.0788,"18.1":0.16295,"18.2":0.08815,"18.3":0.28316,"18.4":0.14559,"18.5-18.6":7.42352,"26.0":0.91759,"26.1":0.03339},P:{"4":0.02113,"20":0.01057,"21":0.02113,"22":0.0317,"23":0.02113,"24":0.02113,"25":0.0317,"26":0.0634,"27":0.07397,"28":2.28251,"29":0.16907,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 18.0","7.2-7.4":0.02113,"13.0":0.01057,"17.0":0.01057,"19.0":0.01057},I:{"0":0.06808,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.46147,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.05425,"9":0.10307,"10":0.0217,"11":0.16817,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.68172},Q:{"14.9":0.00524},O:{"0":0.19403},H:{"0":0},L:{"0":37.57324}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GA.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GA.js deleted file mode 100644 index dd6206c7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GA.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"78":0.00679,"115":0.07127,"123":0.00339,"127":0.00339,"128":0.00339,"139":0.00339,"140":0.07806,"141":0.00339,"142":0.01358,"143":0.44801,"144":0.61771,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 124 125 126 129 130 131 132 133 134 135 136 137 138 145 146 147 3.5 3.6"},D:{"39":0.01358,"40":0.00679,"41":0.01018,"42":0.01018,"43":0.00679,"44":0.00679,"45":0.01018,"46":0.01018,"47":0.01697,"48":0.01018,"49":0.01018,"50":0.01018,"51":0.00679,"52":0.01018,"53":0.01018,"54":0.01018,"55":0.01358,"56":0.01018,"57":0.01018,"58":0.01018,"59":0.00679,"60":0.01018,"65":0.00679,"66":0.01018,"69":0.02715,"70":0.00339,"71":0.00339,"72":0.01018,"73":0.04073,"74":0.00679,"75":0.00679,"76":0.00339,"79":0.04412,"81":0.00679,"83":0.02715,"84":0.01018,"86":0.03733,"87":0.08824,"88":0.00339,"89":0.00339,"90":0.00679,"91":0.00339,"93":0.00339,"94":0.03394,"95":0.0543,"98":0.06449,"100":0.03055,"101":0.00339,"102":0.02715,"103":0.03055,"104":0.00679,"106":0.00339,"108":0.02715,"109":0.2274,"110":0.01358,"111":0.00339,"112":7.40571,"113":0.00339,"114":0.03394,"115":0.00339,"116":0.23079,"117":0.00339,"118":0.00339,"119":0.03394,"120":0.01697,"121":0.00679,"122":0.01697,"123":0.01018,"124":0.00679,"125":3.32273,"126":0.78062,"127":0.01018,"128":0.03394,"129":0.01018,"130":0.01018,"131":0.04412,"132":0.02715,"133":0.01697,"134":0.02715,"135":0.02376,"136":0.05091,"137":0.04752,"138":0.21722,"139":0.17649,"140":2.33847,"141":4.92809,"142":0.06109,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 67 68 77 78 80 85 92 96 97 99 105 107 143 144 145"},F:{"53":0.00339,"71":0.00339,"90":0.00339,"91":0.04412,"92":0.0577,"95":0.01697,"109":0.00339,"113":0.01358,"119":0.00339,"120":0.09503,"121":0.02715,"122":1.00123,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 114 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.00339,"17":0.01358,"18":0.01018,"90":0.00339,"92":0.04073,"100":0.00339,"107":0.00339,"109":0.00679,"113":0.00339,"114":0.38352,"116":0.00339,"122":0.03733,"129":0.01358,"131":0.00339,"132":0.00339,"133":0.00339,"134":0.02036,"135":0.01018,"136":0.01697,"137":0.01358,"138":0.02715,"139":0.03394,"140":0.43783,"141":2.40974,"142":0.00339,_:"12 14 15 16 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 110 111 112 115 117 118 119 120 121 123 124 125 126 127 128 130"},E:{"11":0.00339,_:"0 4 5 6 7 8 9 10 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 14.1 15.1 15.2-15.3 15.5 16.0 16.1 16.2 16.3 16.4 17.0 17.2 26.1 26.2","5.1":0.00339,"12.1":0.00339,"13.1":0.01358,"15.4":0.00339,"15.6":0.112,"16.5":0.00339,"16.6":0.06788,"17.1":0.03733,"17.3":0.00339,"17.4":0.00339,"17.5":0.03733,"17.6":0.12558,"18.0":0.02376,"18.1":0.00339,"18.2":0.02376,"18.3":0.00339,"18.4":0.00339,"18.5-18.6":0.04073,"26.0":0.09164},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00079,"5.0-5.1":0,"6.0-6.1":0.00317,"7.0-7.1":0.00237,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00712,"10.0-10.2":0.00079,"10.3":0.01345,"11.0-11.2":0.19943,"11.3-11.4":0.00475,"12.0-12.1":0.00158,"12.2-12.5":0.03878,"13.0-13.1":0,"13.2":0.00396,"13.3":0.00158,"13.4-13.7":0.00633,"14.0-14.4":0.01345,"14.5-14.8":0.01425,"15.0-15.1":0.01345,"15.2-15.3":0.01029,"15.4":0.01187,"15.5":0.01345,"15.6-15.8":0.17569,"16.0":0.02374,"16.1":0.04432,"16.2":0.02295,"16.3":0.04115,"16.4":0.01029,"16.5":0.0182,"16.6-16.7":0.23505,"17.0":0.01662,"17.1":0.02532,"17.2":0.0182,"17.3":0.02691,"17.4":0.04748,"17.5":0.08151,"17.6-17.7":0.20576,"18.0":0.04669,"18.1":0.09655,"18.2":0.05223,"18.3":0.16778,"18.4":0.08626,"18.5-18.6":4.39859,"26.0":0.54369,"26.1":0.01978},P:{"4":0.03077,"22":0.05128,"24":0.03077,"25":0.02051,"26":0.07179,"27":0.03077,"28":0.68709,"29":0.05128,_:"20 21 23 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.01026,"7.2-7.4":0.0923},I:{"0":0.03958,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":1.02338,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00679,_:"6 7 8 9 10 5.5"},S:{"2.5":0.01982,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.05945},Q:{_:"14.9"},O:{"0":0.13873},H:{"0":0.06},L:{"0":60.98541}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GB.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GB.js deleted file mode 100644 index db2afbb9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GB.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"48":0.0044,"52":0.0088,"59":0.0264,"78":0.0088,"103":0.0044,"115":0.0836,"121":0.0044,"125":0.0044,"128":0.0132,"132":0.0044,"133":0.0044,"134":0.0088,"135":0.0044,"136":0.0088,"137":0.0044,"138":0.0044,"139":0.0044,"140":0.0308,"141":0.0088,"142":0.0308,"143":0.682,"144":0.6072,"145":0.0044,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 122 123 124 126 127 129 130 131 146 147 3.5 3.6"},D:{"11":0.0044,"13":0.0044,"39":0.0044,"40":0.0044,"41":0.0044,"42":0.0044,"43":0.0044,"44":0.0044,"45":0.0044,"46":0.0044,"47":0.0088,"48":0.0044,"49":0.0132,"50":0.0044,"51":0.0044,"52":0.0088,"53":0.0044,"54":0.0044,"55":0.0044,"56":0.0044,"57":0.0044,"58":0.0044,"59":0.0044,"60":0.0044,"66":0.0968,"74":0.0044,"76":0.0044,"79":0.0132,"80":0.0044,"81":0.0132,"85":0.0044,"87":0.022,"88":0.0132,"89":0.0044,"91":0.0132,"92":0.0044,"93":0.0088,"98":0.0088,"102":0.0044,"103":0.088,"104":0.022,"107":0.0132,"108":0.0132,"109":0.264,"111":0.0044,"112":0.0044,"113":0.0044,"114":0.0176,"115":0.0044,"116":0.0792,"117":0.0044,"118":0.0044,"119":0.11,"120":0.11,"121":0.0088,"122":0.0704,"123":0.0088,"124":0.0308,"125":0.2156,"126":0.132,"127":0.0704,"128":0.0704,"129":0.0264,"130":0.6204,"131":0.1452,"132":0.044,"133":0.0396,"134":0.088,"135":0.0528,"136":0.0836,"137":0.1716,"138":0.3696,"139":0.8932,"140":5.6144,"141":11.0484,"142":0.1408,"143":0.0044,_:"4 5 6 7 8 9 10 12 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 68 69 70 71 72 73 75 77 78 83 84 86 90 94 95 96 97 99 100 101 105 106 110 144 145"},F:{"46":0.0088,"90":0.0044,"91":0.0044,"92":0.0132,"95":0.0044,"114":0.0044,"116":0.0044,"119":0.0044,"120":0.0572,"121":0.1276,"122":0.858,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.0088,"85":0.0044,"92":0.0044,"109":0.0352,"114":0.0044,"120":0.0044,"121":0.0044,"122":0.0396,"126":0.0044,"128":0.0044,"129":0.0044,"130":0.0044,"131":0.0176,"132":0.0044,"133":0.0088,"134":0.0704,"135":0.0088,"136":0.0088,"137":0.0088,"138":0.0484,"139":0.0528,"140":1.9052,"141":7.9508,"142":0.0088,_:"12 13 14 15 16 18 79 80 81 83 84 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 123 124 125 127"},E:{"13":0.0044,"14":0.0176,"15":0.0044,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 26.2","11.1":0.022,"12.1":0.0044,"13.1":0.0396,"14.1":0.0484,"15.1":0.1012,"15.2-15.3":0.0044,"15.4":0.0088,"15.5":0.0176,"15.6":0.2948,"16.0":0.0088,"16.1":0.022,"16.2":0.022,"16.3":0.0484,"16.4":0.0132,"16.5":0.022,"16.6":0.418,"17.0":0.022,"17.1":0.3652,"17.2":0.0176,"17.3":0.0264,"17.4":0.044,"17.5":0.0748,"17.6":0.2772,"18.0":0.022,"18.1":0.0616,"18.2":0.0264,"18.3":0.1452,"18.4":0.0572,"18.5-18.6":0.2552,"26.0":0.6028,"26.1":0.022},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00246,"5.0-5.1":0,"6.0-6.1":0.00984,"7.0-7.1":0.00738,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02214,"10.0-10.2":0.00246,"10.3":0.04182,"11.0-11.2":0.61994,"11.3-11.4":0.01476,"12.0-12.1":0.00492,"12.2-12.5":0.12054,"13.0-13.1":0,"13.2":0.0123,"13.3":0.00492,"13.4-13.7":0.01968,"14.0-14.4":0.04182,"14.5-14.8":0.04428,"15.0-15.1":0.04182,"15.2-15.3":0.03198,"15.4":0.0369,"15.5":0.04182,"15.6-15.8":0.54614,"16.0":0.0738,"16.1":0.13776,"16.2":0.07134,"16.3":0.12792,"16.4":0.03198,"16.5":0.05658,"16.6-16.7":0.73064,"17.0":0.05166,"17.1":0.07872,"17.2":0.05658,"17.3":0.08364,"17.4":0.1476,"17.5":0.25339,"17.6-17.7":0.63962,"18.0":0.14514,"18.1":0.30013,"18.2":0.16237,"18.3":0.52154,"18.4":0.26815,"18.5-18.6":13.67312,"26.0":1.69007,"26.1":0.0615},P:{"20":0.01095,"21":0.02191,"22":0.02191,"23":0.02191,"24":0.03286,"25":0.03286,"26":0.07668,"27":0.06573,"28":3.86702,"29":0.31769,_:"4 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.01095,"17.0":0.01095,"19.0":0.01095},I:{"0":0.01678,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.168,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.03872,"11":0.00968,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.4088},Q:{_:"14.9"},O:{"0":0.0336},H:{"0":0},L:{"0":28.8372}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GD.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GD.js deleted file mode 100644 index a018f250..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GD.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.07318,"136":0.03049,"138":0.0061,"140":0.0061,"141":0.0061,"142":0.04269,"143":0.22563,"144":0.15245,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 137 139 145 146 147 3.5 3.6"},D:{"39":0.03049,"40":0.02439,"41":0.02439,"42":0.01829,"43":0.03049,"44":0.02439,"45":0.01829,"46":0.01829,"47":0.01829,"48":0.02439,"49":0.02439,"50":0.01829,"51":0.02439,"52":0.02439,"53":0.03049,"54":0.0122,"55":0.02439,"56":0.03659,"57":0.02439,"58":0.02439,"59":0.01829,"60":0.02439,"75":0.0061,"79":0.0061,"87":0.0061,"93":0.01829,"103":0.07318,"104":0.05488,"109":0.20123,"116":0.01829,"121":0.02439,"122":0.07318,"123":0.0061,"125":23.61146,"126":0.09147,"128":0.02439,"130":0.01829,"131":0.01829,"132":0.03049,"133":0.73176,"134":0.02439,"135":0.0061,"136":0.02439,"137":0.44515,"138":0.15245,"139":0.32319,"140":3.43317,"141":8.93357,"142":0.12196,"143":0.0122,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 80 81 83 84 85 86 88 89 90 91 92 94 95 96 97 98 99 100 101 102 105 106 107 108 110 111 112 113 114 115 117 118 119 120 124 127 129 144 145"},F:{"85":0.0061,"95":0.05488,"120":0.06708,"121":0.0122,"122":0.2927,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.0061,"109":0.0061,"114":0.10976,"131":0.0061,"134":0.0061,"138":0.0122,"139":0.01829,"140":1.70134,"141":5.04914,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 132 133 135 136 137 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 10.1 11.1 13.1 15.1 15.2-15.3 15.4 16.0 16.2 17.3 26.2","9.1":0.0061,"12.1":0.0061,"14.1":0.01829,"15.5":0.0122,"15.6":0.20733,"16.1":0.0061,"16.3":0.0061,"16.4":0.0061,"16.5":0.0061,"16.6":0.04878,"17.0":0.26831,"17.1":0.17684,"17.2":0.0061,"17.4":0.0122,"17.5":0.07927,"17.6":0.15245,"18.0":0.0061,"18.1":0.04269,"18.2":0.0122,"18.3":0.45125,"18.4":0.03049,"18.5-18.6":0.14025,"26.0":1.2135,"26.1":0.02439},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0011,"5.0-5.1":0,"6.0-6.1":0.00439,"7.0-7.1":0.00329,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00988,"10.0-10.2":0.0011,"10.3":0.01866,"11.0-11.2":0.27667,"11.3-11.4":0.00659,"12.0-12.1":0.0022,"12.2-12.5":0.0538,"13.0-13.1":0,"13.2":0.00549,"13.3":0.0022,"13.4-13.7":0.00878,"14.0-14.4":0.01866,"14.5-14.8":0.01976,"15.0-15.1":0.01866,"15.2-15.3":0.01427,"15.4":0.01647,"15.5":0.01866,"15.6-15.8":0.24374,"16.0":0.03294,"16.1":0.06148,"16.2":0.03184,"16.3":0.05709,"16.4":0.01427,"16.5":0.02525,"16.6-16.7":0.32608,"17.0":0.02306,"17.1":0.03513,"17.2":0.02525,"17.3":0.03733,"17.4":0.06587,"17.5":0.11309,"17.6-17.7":0.28546,"18.0":0.06478,"18.1":0.13395,"18.2":0.07246,"18.3":0.23276,"18.4":0.11967,"18.5-18.6":6.10221,"26.0":0.75427,"26.1":0.02745},P:{"4":0.04245,"24":0.02122,"25":0.03184,"26":0.06367,"27":0.02122,"28":2.2497,"29":0.20162,_:"20 21 22 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01061},I:{"0":0.0078,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.2537,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.31224},Q:{_:"14.9"},O:{"0":0.0039},H:{"0":0},L:{"0":27.99475}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GE.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GE.js deleted file mode 100644 index 59612fd4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GE.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.00477,"68":0.00477,"78":0.02385,"113":0.01908,"115":0.0954,"118":0.00954,"121":0.00477,"125":0.00954,"128":0.00954,"135":0.00477,"136":0.01431,"138":0.00477,"139":0.00954,"140":0.02385,"141":0.00954,"142":0.03816,"143":0.39114,"144":0.36252,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 119 120 122 123 124 126 127 129 130 131 132 133 134 137 145 146 147 3.5 3.6"},D:{"38":0.00954,"39":0.00477,"40":0.00477,"41":0.00477,"42":0.00477,"43":0.00477,"44":0.00477,"45":0.00477,"46":0.00477,"47":0.02385,"48":0.00477,"49":0.00954,"50":0.00477,"51":0.00477,"52":0.00477,"53":0.00477,"54":0.00477,"55":0.00477,"56":0.00954,"57":0.00477,"58":0.00477,"59":0.00477,"60":0.00477,"63":0.00477,"66":0.01908,"68":0.00477,"69":0.00477,"70":0.01431,"71":0.00477,"72":0.01908,"73":0.0477,"75":0.00477,"76":0.00477,"78":0.00477,"79":0.24804,"81":0.00954,"83":0.14787,"85":0.00954,"86":0.00477,"87":0.48177,"88":0.02862,"91":0.05724,"92":0.00954,"93":0.00477,"94":0.07155,"95":0.00477,"98":0.03816,"100":0.03816,"101":0.01908,"102":0.01908,"103":0.02862,"104":0.06201,"106":0.00954,"107":0.00477,"108":0.1431,"109":2.45178,"110":0.02385,"111":0.39591,"112":0.90153,"113":0.02385,"114":0.04293,"115":0.00477,"116":0.06678,"119":0.01908,"120":0.29097,"121":0.01431,"122":0.03339,"123":0.01431,"124":0.05247,"125":2.32299,"126":0.0954,"127":0.05247,"128":0.03816,"129":0.06201,"130":0.06201,"131":0.11925,"132":0.05724,"133":0.1908,"134":0.10017,"135":0.06678,"136":0.06678,"137":0.29574,"138":0.47223,"139":0.44838,"140":5.67153,"141":16.52805,"142":0.20988,"143":0.00954,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 64 65 67 74 77 80 84 89 90 96 97 99 105 117 118 144 145"},F:{"36":0.00477,"40":0.00477,"46":0.17172,"77":0.00477,"79":0.00477,"83":0.00477,"85":0.00954,"86":0.02385,"91":0.00954,"92":0.02385,"95":0.24327,"116":0.00477,"119":0.00477,"120":0.20988,"121":0.09063,"122":1.55979,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 80 81 82 84 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.00477,"14":0.08586,"16":0.00954,"18":0.00477,"92":0.00954,"109":0.01908,"114":0.07632,"119":0.00477,"122":0.00477,"126":0.00477,"128":0.00477,"129":0.00477,"130":0.00477,"131":0.01431,"132":0.00954,"133":0.01908,"134":0.05724,"135":0.01431,"136":0.00954,"137":0.02385,"138":0.05724,"139":0.03339,"140":0.62964,"141":3.16728,"142":0.00477,_:"12 15 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 120 121 123 124 125 127"},E:{"14":0.00477,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 15.2-15.3 17.0 26.2","11.1":0.00477,"13.1":0.00954,"14.1":0.00954,"15.1":0.01431,"15.4":0.00477,"15.5":0.00477,"15.6":0.0477,"16.0":0.00477,"16.1":0.01908,"16.2":0.01431,"16.3":0.00954,"16.4":0.00477,"16.5":0.01908,"16.6":0.07155,"17.1":0.07155,"17.2":0.00954,"17.3":0.02862,"17.4":0.02385,"17.5":0.04293,"17.6":0.06678,"18.0":0.02385,"18.1":0.02862,"18.2":0.01431,"18.3":0.07632,"18.4":0.02385,"18.5-18.6":0.13356,"26.0":0.31482,"26.1":0.02385},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00109,"5.0-5.1":0,"6.0-6.1":0.00436,"7.0-7.1":0.00327,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00982,"10.0-10.2":0.00109,"10.3":0.01855,"11.0-11.2":0.27498,"11.3-11.4":0.00655,"12.0-12.1":0.00218,"12.2-12.5":0.05347,"13.0-13.1":0,"13.2":0.00546,"13.3":0.00218,"13.4-13.7":0.00873,"14.0-14.4":0.01855,"14.5-14.8":0.01964,"15.0-15.1":0.01855,"15.2-15.3":0.01419,"15.4":0.01637,"15.5":0.01855,"15.6-15.8":0.24224,"16.0":0.03274,"16.1":0.06111,"16.2":0.03164,"16.3":0.05674,"16.4":0.01419,"16.5":0.0251,"16.6-16.7":0.32408,"17.0":0.02291,"17.1":0.03492,"17.2":0.0251,"17.3":0.0371,"17.4":0.06547,"17.5":0.11239,"17.6-17.7":0.28371,"18.0":0.06438,"18.1":0.13312,"18.2":0.07202,"18.3":0.23133,"18.4":0.11894,"18.5-18.6":6.06482,"26.0":0.74965,"26.1":0.02728},P:{"4":0.73029,"21":0.01074,"22":0.02148,"23":0.01074,"24":0.02148,"25":0.03222,"26":0.03222,"27":0.1074,"28":1.11691,"29":0.07518,_:"20 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.0537,"6.2-6.4":0.09666,"7.2-7.4":0.30071,"8.2":0.02148},I:{"0":0.06791,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.28771,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00477,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.15693},Q:{"14.9":0.00523},O:{"0":0.03139},H:{"0":0},L:{"0":41.54213}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GF.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GF.js deleted file mode 100644 index a90c4492..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GF.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"2":0.00397,"52":0.00397,"79":0.00397,"95":0.00397,"103":0.03174,"112":0.00397,"115":0.21819,"119":0.10314,"124":0.00397,"127":0.00793,"128":0.13091,"129":0.00793,"130":0.00397,"131":0.00397,"132":0.00397,"134":0.00397,"140":0.10314,"141":0.02777,"142":0.0119,"143":1.63837,"144":0.99175,_:"3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 104 105 106 107 108 109 110 111 113 114 116 117 118 120 121 122 123 125 126 133 135 136 137 138 139 145 146 147 3.5 3.6"},D:{"39":0.00793,"40":0.00397,"41":0.00397,"42":0.01587,"43":0.00793,"44":0.0119,"45":0.0119,"46":0.00397,"47":0.01587,"48":0.00793,"49":0.00793,"50":0.00397,"51":0.00793,"52":0.00793,"53":0.00793,"54":0.00793,"55":0.00793,"56":0.0119,"57":0.00793,"58":0.00793,"59":0.00793,"60":0.00793,"69":0.00397,"70":0.00793,"79":0.01587,"83":0.00397,"88":0.0476,"90":0.07537,"91":0.00397,"97":0.01587,"98":0.00397,"99":0.00397,"100":0.01587,"102":0.00397,"103":0.03967,"104":0.36893,"106":0.00793,"108":0.00793,"109":0.15075,"110":0.0238,"111":0.00397,"114":0.00793,"115":0.00397,"116":0.0238,"119":0.01984,"120":0.00397,"121":0.00397,"122":0.0119,"123":0.00793,"124":0.02777,"125":5.08966,"126":0.0357,"127":0.00793,"128":0.01984,"130":0.03967,"131":0.00793,"132":0.01984,"133":0.01984,"134":0.0119,"135":0.00793,"136":0.00793,"137":0.01587,"138":0.13091,"139":0.54348,"140":2.99905,"141":9.96907,"142":0.19835,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 71 72 73 74 75 76 77 78 80 81 84 85 86 87 89 92 93 94 95 96 101 105 107 112 113 117 118 129 143 144 145"},F:{"46":0.00397,"91":0.00397,"92":0.0119,"120":0.08331,"121":0.62679,"122":1.13853,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00397,"92":0.00397,"100":0.00793,"102":0.0119,"111":0.00793,"114":0.07934,"125":0.00397,"127":0.00397,"128":0.06744,"131":0.00793,"133":0.0476,"134":0.07934,"135":0.01984,"136":0.00793,"138":0.01587,"139":0.02777,"140":1.03142,"141":4.36767,"142":0.00397,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 103 104 105 106 107 108 109 110 112 113 115 116 117 118 119 120 121 122 123 124 126 129 130 132 137"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 15.2-15.3 15.5 16.1 16.2 17.0 26.2","11.1":0.00793,"13.1":0.22215,"14.1":1.52333,"15.1":0.00397,"15.4":0.00397,"15.6":0.14281,"16.0":0.01587,"16.3":0.00397,"16.4":0.04364,"16.5":0.00397,"16.6":0.11108,"17.1":0.00793,"17.2":0.05157,"17.3":0.02777,"17.4":0.0238,"17.5":0.0119,"17.6":0.09124,"18.0":0.01984,"18.1":0.00397,"18.2":0.01984,"18.3":0.11504,"18.4":0.0119,"18.5-18.6":0.19438,"26.0":0.55141,"26.1":0.06347},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00149,"5.0-5.1":0,"6.0-6.1":0.00595,"7.0-7.1":0.00446,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01339,"10.0-10.2":0.00149,"10.3":0.02529,"11.0-11.2":0.37485,"11.3-11.4":0.00892,"12.0-12.1":0.00297,"12.2-12.5":0.07289,"13.0-13.1":0,"13.2":0.00744,"13.3":0.00297,"13.4-13.7":0.0119,"14.0-14.4":0.02529,"14.5-14.8":0.02677,"15.0-15.1":0.02529,"15.2-15.3":0.01934,"15.4":0.02231,"15.5":0.02529,"15.6-15.8":0.33022,"16.0":0.04462,"16.1":0.0833,"16.2":0.04314,"16.3":0.07735,"16.4":0.01934,"16.5":0.03421,"16.6-16.7":0.44178,"17.0":0.03124,"17.1":0.0476,"17.2":0.03421,"17.3":0.05057,"17.4":0.08925,"17.5":0.15321,"17.6-17.7":0.38675,"18.0":0.08776,"18.1":0.18147,"18.2":0.09817,"18.3":0.31535,"18.4":0.16214,"18.5-18.6":8.26748,"26.0":1.02191,"26.1":0.03719},P:{"22":0.0106,"24":0.06359,"25":0.0424,"26":0.11659,"27":0.24378,"28":2.3,"29":0.14839,_:"4 20 21 23 5.0-5.4 6.2-6.4 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.0212,"8.2":0.0106,"13.0":0.0106},I:{"0":0.00602,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.38605,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.56098},Q:{"14.9":0.13874},O:{_:"0"},H:{"0":0},L:{"0":44.37238}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GG.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GG.js deleted file mode 100644 index 24426bb6..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GG.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.03565,"140":0.02377,"141":0.0713,"142":0.05942,"143":0.33669,"144":0.22578,"145":0.00396,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 146 147 3.5 3.6"},D:{"40":0.00396,"41":0.00396,"42":0.00396,"46":0.00396,"48":0.00396,"49":0.00396,"50":0.00396,"51":0.00396,"54":0.00396,"55":0.00396,"56":0.00396,"58":0.00396,"59":0.00396,"79":0.00396,"97":0.00396,"101":0.00396,"103":0.13071,"109":1.12889,"114":0.00792,"116":0.05942,"122":0.02377,"125":0.61792,"126":0.03169,"127":0.00792,"128":0.03961,"129":0.00792,"130":0.02773,"131":0.03169,"134":0.00396,"135":0.00396,"136":0.07922,"137":0.04753,"138":0.17428,"139":0.47928,"140":6.21481,"141":9.17764,"142":0.06338,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 43 44 45 47 52 53 57 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 98 99 100 102 104 105 106 107 108 110 111 112 113 115 117 118 119 120 121 123 124 132 133 143 144 145"},F:{"120":0.05942,"121":0.02773,"122":1.26752,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.01188,"134":0.02773,"135":0.00396,"137":0.00396,"138":0.00396,"139":0.08714,"140":1.5844,"141":5.63254,"142":0.01188,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 136"},E:{"14":0.00396,"15":0.00792,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 16.4 26.1 26.2","13.1":0.01981,"14.1":0.05149,"15.4":0.12675,"15.5":0.03169,"15.6":0.305,"16.0":0.00792,"16.1":0.00792,"16.2":0.05942,"16.3":0.03169,"16.5":0.00396,"16.6":0.56642,"17.0":0.00396,"17.1":0.69714,"17.2":0.00396,"17.3":0.04357,"17.4":0.01981,"17.5":0.07922,"17.6":0.37233,"18.0":0.03565,"18.1":0.15052,"18.2":0.02377,"18.3":0.1624,"18.4":0.02773,"18.5-18.6":0.1426,"26.0":0.32876},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00291,"5.0-5.1":0,"6.0-6.1":0.01163,"7.0-7.1":0.00872,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02616,"10.0-10.2":0.00291,"10.3":0.04941,"11.0-11.2":0.73246,"11.3-11.4":0.01744,"12.0-12.1":0.00581,"12.2-12.5":0.14242,"13.0-13.1":0,"13.2":0.01453,"13.3":0.00581,"13.4-13.7":0.02325,"14.0-14.4":0.04941,"14.5-14.8":0.05232,"15.0-15.1":0.04941,"15.2-15.3":0.03779,"15.4":0.0436,"15.5":0.04941,"15.6-15.8":0.64526,"16.0":0.0872,"16.1":0.16277,"16.2":0.08429,"16.3":0.15114,"16.4":0.03779,"16.5":0.06685,"16.6-16.7":0.86325,"17.0":0.06104,"17.1":0.09301,"17.2":0.06685,"17.3":0.09882,"17.4":0.17439,"17.5":0.29938,"17.6-17.7":0.75571,"18.0":0.17149,"18.1":0.3546,"18.2":0.19183,"18.3":0.61619,"18.4":0.31682,"18.5-18.6":16.15472,"26.0":1.99681,"26.1":0.07266},P:{"4":0.01121,"26":0.02241,"27":0.02241,"28":4.11286,"29":0.22413,_:"20 21 22 23 24 25 5.0-5.4 6.2-6.4 7.2-7.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","9.2":0.11207},I:{"0":0.03618,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.01208,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00396,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.4952},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":26.39139}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GH.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GH.js deleted file mode 100644 index 1baddccc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GH.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"4":0.00679,"56":0.0034,"72":0.00679,"78":0.0034,"101":0.0034,"112":0.0034,"115":0.10528,"127":0.02038,"128":0.01019,"133":0.0034,"136":0.00679,"137":0.0034,"138":0.0034,"139":0.00679,"140":0.02717,"141":0.01019,"142":0.03736,"143":0.56034,"144":0.45167,"145":0.01358,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 134 135 146 147 3.5 3.6"},D:{"43":0.0034,"44":0.0034,"46":0.0034,"47":0.0034,"48":0.0034,"49":0.01019,"50":0.0034,"51":0.0034,"52":0.0034,"53":0.0034,"54":0.0034,"55":0.0034,"56":0.0034,"58":0.0034,"59":0.0034,"60":0.0034,"63":0.0034,"64":0.00679,"68":0.00679,"69":0.0034,"70":0.02377,"71":0.00679,"72":0.00679,"73":0.0034,"74":0.01358,"75":0.01698,"76":0.02377,"77":0.01019,"78":0.0034,"79":0.02377,"80":0.02038,"81":0.00679,"83":0.01019,"84":0.00679,"85":0.0034,"86":0.02038,"87":0.01019,"88":0.0034,"89":0.00679,"90":0.0034,"91":0.00679,"92":0.0034,"93":0.02717,"94":0.01019,"95":0.00679,"96":0.0034,"97":0.01698,"98":0.01358,"99":0.00679,"100":0.0034,"101":0.0034,"102":0.0034,"103":0.07811,"104":0.01358,"105":0.35658,"106":0.00679,"108":0.0034,"109":0.77089,"110":0.00679,"111":0.01019,"113":0.01019,"114":0.03736,"115":0.0034,"116":0.05773,"117":0.00679,"118":0.01019,"119":0.02377,"120":0.00679,"121":0.00679,"122":0.03056,"123":0.01698,"124":0.04075,"125":0.97126,"126":0.04754,"127":0.01358,"128":0.05434,"129":0.01019,"130":0.02717,"131":0.0849,"132":0.03736,"133":0.03736,"134":0.05773,"135":0.05434,"136":0.07471,"137":0.12565,"138":0.39054,"139":0.50261,"140":3.69485,"141":6.8735,"142":0.09169,"143":0.00679,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 45 57 61 62 65 66 67 107 112 144 145"},F:{"18":0.0034,"42":0.0034,"68":0.0034,"79":0.00679,"86":0.0034,"87":0.0034,"88":0.0034,"90":0.01019,"91":0.07811,"92":0.05434,"95":0.03396,"113":0.0034,"114":0.0034,"116":0.0034,"117":0.0034,"118":0.0034,"119":0.00679,"120":0.22414,"121":0.02377,"122":0.92371,_:"9 11 12 15 16 17 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01019,"13":0.0034,"14":0.00679,"15":0.02377,"16":0.0034,"17":0.00679,"18":0.05094,"84":0.01019,"85":0.0034,"89":0.01698,"90":0.02038,"92":0.07471,"100":0.02377,"109":0.01358,"111":0.0034,"112":0.0034,"114":0.01698,"116":0.0034,"122":0.03396,"124":0.0034,"126":0.0034,"127":0.0034,"128":0.0034,"129":0.0034,"130":0.01358,"131":0.02038,"132":0.00679,"133":0.0034,"134":0.01019,"135":0.01019,"136":0.02038,"137":0.01698,"138":0.05434,"139":0.0849,"140":0.66901,"141":2.13608,"142":0.01358,_:"79 80 81 83 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 113 115 117 118 119 120 121 123 125"},E:{"11":0.00679,"13":0.00679,"14":0.0034,_:"0 4 5 6 7 8 9 10 12 15 3.1 3.2 6.1 7.1 9.1 10.1 15.2-15.3 15.4 15.5 16.0 16.2 26.2","5.1":0.0034,"11.1":0.01019,"12.1":0.0034,"13.1":0.03056,"14.1":0.00679,"15.1":0.0034,"15.6":0.0815,"16.1":0.0034,"16.3":0.0034,"16.4":0.0034,"16.5":0.0034,"16.6":0.05773,"17.0":0.0034,"17.1":0.01019,"17.2":0.0034,"17.3":0.00679,"17.4":0.00679,"17.5":0.01019,"17.6":0.05773,"18.0":0.0034,"18.1":0.00679,"18.2":0.0034,"18.3":0.02038,"18.4":0.01358,"18.5-18.6":0.05094,"26.0":0.23772,"26.1":0.00679},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00117,"5.0-5.1":0,"6.0-6.1":0.00468,"7.0-7.1":0.00351,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01054,"10.0-10.2":0.00117,"10.3":0.01991,"11.0-11.2":0.29506,"11.3-11.4":0.00703,"12.0-12.1":0.00234,"12.2-12.5":0.05737,"13.0-13.1":0,"13.2":0.00585,"13.3":0.00234,"13.4-13.7":0.00937,"14.0-14.4":0.01991,"14.5-14.8":0.02108,"15.0-15.1":0.01991,"15.2-15.3":0.01522,"15.4":0.01756,"15.5":0.01991,"15.6-15.8":0.25994,"16.0":0.03513,"16.1":0.06557,"16.2":0.03396,"16.3":0.06089,"16.4":0.01522,"16.5":0.02693,"16.6-16.7":0.34775,"17.0":0.02459,"17.1":0.03747,"17.2":0.02693,"17.3":0.03981,"17.4":0.07025,"17.5":0.1206,"17.6-17.7":0.30443,"18.0":0.06908,"18.1":0.14285,"18.2":0.07728,"18.3":0.24823,"18.4":0.12763,"18.5-18.6":6.5078,"26.0":0.8044,"26.1":0.02927},P:{"4":0.11326,"21":0.0103,"22":0.04118,"23":0.0103,"24":0.17503,"25":0.38095,"26":0.05148,"27":0.33977,"28":1.21493,"29":0.03089,_:"20 6.2-6.4 8.2 10.1 12.0 14.0 15.0 18.0","5.0-5.4":0.05148,"7.2-7.4":0.09266,"9.2":0.0103,"11.1-11.2":0.03089,"13.0":0.0103,"16.0":0.02059,"17.0":0.0103,"19.0":0.02059},I:{"0":0.05276,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":9.4711,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01698,_:"6 7 8 9 10 5.5"},S:{"2.5":0.0066,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.28397},Q:{"14.9":0.01981},O:{"0":0.27737},H:{"0":0.6},L:{"0":51.85762}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GI.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GI.js deleted file mode 100644 index 2f546cfc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GI.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"45":0.00528,"115":0.01055,"133":0.06858,"140":0.00528,"141":0.03165,"142":0.00528,"143":0.55388,"144":0.34815,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 134 135 136 137 138 139 145 146 147 3.5 3.6"},D:{"39":0.00528,"40":0.00528,"42":0.00528,"43":0.00528,"44":0.00528,"45":0.00528,"46":0.00528,"48":0.00528,"49":0.00528,"51":0.00528,"52":0.00528,"54":0.00528,"56":0.00528,"57":0.00528,"58":0.00528,"59":0.00528,"60":0.00528,"79":0.00528,"103":0.01583,"109":0.09495,"112":0.01055,"113":0.01583,"116":0.15298,"120":0.04748,"123":0.01055,"124":0.01055,"125":2.04143,"126":0.00528,"128":0.03693,"130":0.00528,"131":0.1266,"132":0.03165,"133":0.06858,"134":0.07913,"135":0.07385,"136":0.0844,"137":0.1899,"138":0.41673,"139":1.28183,"140":8.45583,"141":15.825,"142":0.72795,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 41 47 50 53 55 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 110 111 114 115 117 118 119 121 122 127 129 143 144 145"},F:{"92":0.00528,"114":0.0422,"116":0.0211,"120":0.11605,"121":0.34288,"122":2.75883,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.01055,"131":0.00528,"132":0.03693,"133":0.00528,"134":0.02638,"137":0.0211,"138":0.01055,"139":0.03693,"140":1.33985,"141":6.37748,"142":0.00528,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 135 136"},E:{"14":0.0211,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 17.0 26.2","13.1":0.24793,"14.1":0.01055,"15.6":0.37453,"16.1":0.0422,"16.2":0.00528,"16.3":0.0211,"16.4":0.00528,"16.5":0.01055,"16.6":0.35343,"17.1":0.23738,"17.2":0.0422,"17.3":0.00528,"17.4":0.02638,"17.5":0.0844,"17.6":0.12133,"18.0":0.01055,"18.1":0.01055,"18.2":0.0422,"18.3":0.09495,"18.4":0.3587,"18.5-18.6":0.56443,"26.0":0.60663,"26.1":0.00528},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00218,"5.0-5.1":0,"6.0-6.1":0.00873,"7.0-7.1":0.00655,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01964,"10.0-10.2":0.00218,"10.3":0.0371,"11.0-11.2":0.54998,"11.3-11.4":0.01309,"12.0-12.1":0.00436,"12.2-12.5":0.10694,"13.0-13.1":0,"13.2":0.01091,"13.3":0.00436,"13.4-13.7":0.01746,"14.0-14.4":0.0371,"14.5-14.8":0.03928,"15.0-15.1":0.0371,"15.2-15.3":0.02837,"15.4":0.03274,"15.5":0.0371,"15.6-15.8":0.48451,"16.0":0.06547,"16.1":0.12222,"16.2":0.06329,"16.3":0.11349,"16.4":0.02837,"16.5":0.0502,"16.6-16.7":0.6482,"17.0":0.04583,"17.1":0.06984,"17.2":0.0502,"17.3":0.0742,"17.4":0.13095,"17.5":0.2248,"17.6-17.7":0.56744,"18.0":0.12877,"18.1":0.26626,"18.2":0.14404,"18.3":0.46269,"18.4":0.23789,"18.5-18.6":12.13021,"26.0":1.49936,"26.1":0.05456},P:{"21":0.02081,"26":0.01041,"27":0.03122,"28":2.9971,"29":0.3122,_:"4 20 22 23 24 25 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0 19.0","16.0":0.02081},I:{"0":0.00472,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.01418,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.03693,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.10868},Q:{_:"14.9"},O:{"0":0.00473},H:{"0":0},L:{"0":22.48943}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GL.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GL.js deleted file mode 100644 index 2ac0ea5d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GL.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.0047,"99":0.0094,"115":0.0047,"135":0.0047,"136":0.0047,"137":0.0094,"140":0.0047,"141":0.06107,"142":0.01879,"143":1.59732,"144":0.88792,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 138 139 145 146 147 3.5 3.6"},D:{"38":0.0094,"39":0.0047,"43":0.0047,"45":0.0047,"47":0.0047,"48":0.01409,"51":0.0047,"54":0.0047,"55":0.0047,"56":0.01409,"57":0.0047,"58":0.01409,"60":0.0047,"102":1.01007,"103":0.61544,"108":0.01879,"109":0.34295,"114":0.0047,"115":0.0047,"116":0.04228,"118":0.0094,"123":0.0047,"125":1.37182,"126":0.01879,"128":0.0047,"129":0.04228,"130":0.0047,"131":0.02349,"132":0.0094,"133":0.01409,"134":0.05168,"136":0.11745,"137":0.07047,"138":0.2349,"139":1.01477,"140":6.44566,"141":11.79668,"142":0.09866,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 40 41 42 44 46 49 50 52 53 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 104 105 106 107 110 111 112 113 117 119 120 121 122 124 127 135 143 144 145"},F:{"91":0.01879,"120":0.31477,"121":0.06107,"122":1.52685,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.0047,"109":0.0047,"111":0.0047,"112":0.0047,"131":0.01879,"135":0.0047,"137":0.0047,"138":0.08456,"139":0.03758,"140":1.06645,"141":6.29532,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 132 133 134 136 142"},E:{"14":0.03758,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 14.1 15.5 16.0 16.1 16.3 16.4 17.0 17.3 18.1 26.2","11.1":0.03289,"13.1":0.0047,"15.1":0.13624,"15.2-15.3":0.0047,"15.4":0.0047,"15.6":0.16443,"16.2":0.0047,"16.5":0.0047,"16.6":0.31007,"17.1":0.12685,"17.2":0.0094,"17.4":0.04698,"17.5":0.05168,"17.6":0.08456,"18.0":0.0047,"18.2":0.02349,"18.3":0.13624,"18.4":0.18792,"18.5-18.6":0.25839,"26.0":0.9396,"26.1":0.03289},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00232,"5.0-5.1":0,"6.0-6.1":0.00928,"7.0-7.1":0.00696,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02088,"10.0-10.2":0.00232,"10.3":0.03944,"11.0-11.2":0.58457,"11.3-11.4":0.01392,"12.0-12.1":0.00464,"12.2-12.5":0.11367,"13.0-13.1":0,"13.2":0.0116,"13.3":0.00464,"13.4-13.7":0.01856,"14.0-14.4":0.03944,"14.5-14.8":0.04175,"15.0-15.1":0.03944,"15.2-15.3":0.03016,"15.4":0.0348,"15.5":0.03944,"15.6-15.8":0.51498,"16.0":0.06959,"16.1":0.1299,"16.2":0.06727,"16.3":0.12063,"16.4":0.03016,"16.5":0.05335,"16.6-16.7":0.68896,"17.0":0.04871,"17.1":0.07423,"17.2":0.05335,"17.3":0.07887,"17.4":0.13918,"17.5":0.23893,"17.6-17.7":0.60313,"18.0":0.13686,"18.1":0.28301,"18.2":0.1531,"18.3":0.49178,"18.4":0.25285,"18.5-18.6":12.89299,"26.0":1.59365,"26.1":0.05799},P:{"4":0.35312,"21":0.01039,"23":0.02077,"25":0.12463,"26":0.02077,"27":0.01039,"28":2.21221,"29":0.5193,_:"20 22 24 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.03116,"6.2-6.4":0.01039},I:{"0":0.09528,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":0.65732,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0047,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.33926},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":27.14952}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GM.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GM.js deleted file mode 100644 index e525c180..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GM.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"43":0.01507,"49":0.00301,"51":0.01205,"63":0.00301,"71":0.00301,"72":0.0241,"102":0.00603,"112":0.00904,"114":0.00301,"115":0.11148,"127":0.01507,"128":0.00904,"136":0.00301,"139":0.00301,"140":0.01507,"141":0.01205,"142":0.07533,"143":1.38297,"144":1.16603,"145":0.00603,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 47 48 50 52 53 54 55 56 57 58 59 60 61 62 64 65 66 67 68 69 70 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 113 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 133 134 135 137 138 146 147 3.5 3.6"},D:{"39":0.00603,"40":0.00603,"41":0.00603,"42":0.00301,"43":0.00301,"44":0.00301,"45":0.00301,"46":0.00301,"47":0.01205,"50":0.00603,"52":0.00603,"53":0.01808,"54":0.00301,"55":0.00603,"56":0.00603,"57":0.00603,"58":0.00301,"59":0.00301,"60":0.00603,"64":0.01808,"68":0.00904,"69":0.00301,"70":0.00904,"71":0.00603,"72":0.02109,"73":0.01507,"74":0.00301,"75":0.00301,"77":0.05725,"78":0.00904,"79":0.03013,"80":0.00603,"81":0.01808,"83":0.01205,"86":0.01507,"87":0.01507,"88":0.00904,"90":0.00904,"91":0.00301,"93":0.02712,"94":0.00603,"95":0.00301,"98":0.00603,"101":0.00301,"102":0.00301,"103":0.07533,"104":0.00603,"106":0.00904,"108":0.00301,"109":0.69299,"110":0.00301,"111":0.03616,"115":0.00603,"116":0.28021,"117":0.01205,"118":0.02109,"119":0.02712,"120":0.0241,"121":0.11148,"122":0.00904,"123":0.00603,"124":0.01808,"125":1.38297,"126":0.06327,"127":0.03314,"128":0.03917,"129":0.05423,"130":0.06026,"131":0.05725,"132":0.07533,"133":0.07834,"134":0.06026,"135":0.08135,"136":0.0934,"137":0.15366,"138":0.35252,"139":0.18982,"140":2.90453,"141":4.9835,"142":0.03616,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 48 49 51 61 62 63 65 66 67 76 84 85 89 92 96 97 99 100 105 107 112 113 114 143 144 145"},F:{"54":0.00301,"72":0.00301,"75":0.00603,"79":0.02712,"91":0.00301,"92":0.02712,"95":0.00603,"120":0.31938,"121":0.00603,"122":1.62099,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 73 74 76 77 78 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00301,"13":0.01205,"18":0.06327,"90":0.01205,"92":0.0241,"100":0.0241,"103":0.00904,"107":0.00301,"109":0.00904,"110":0.04821,"114":0.09039,"119":0.00301,"122":0.02712,"123":0.00301,"125":0.00301,"129":0.01808,"130":0.03314,"131":0.00904,"133":0.00301,"134":0.01205,"135":0.02109,"136":0.00603,"137":0.02109,"138":0.04218,"139":0.05725,"140":0.6719,"141":2.31398,"142":0.00603,_:"14 15 16 17 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 101 102 104 105 106 108 111 112 113 115 116 117 118 120 121 124 126 127 128 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 11.1 12.1 15.1 15.2-15.3 15.5 16.0 16.1 16.2 16.3 16.5 17.2 17.4 18.1 18.2 18.4 26.1 26.2","9.1":0.03616,"10.1":0.00603,"13.1":0.03013,"14.1":0.01507,"15.4":0.00301,"15.6":0.06327,"16.4":0.00301,"16.6":0.15668,"17.0":0.00301,"17.1":0.08436,"17.3":0.18078,"17.5":0.00301,"17.6":0.02712,"18.0":0.00301,"18.3":0.02109,"18.5-18.6":0.16572,"26.0":0.77434},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00132,"5.0-5.1":0,"6.0-6.1":0.00527,"7.0-7.1":0.00395,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01186,"10.0-10.2":0.00132,"10.3":0.02241,"11.0-11.2":0.3322,"11.3-11.4":0.00791,"12.0-12.1":0.00264,"12.2-12.5":0.06459,"13.0-13.1":0,"13.2":0.00659,"13.3":0.00264,"13.4-13.7":0.01055,"14.0-14.4":0.02241,"14.5-14.8":0.02373,"15.0-15.1":0.02241,"15.2-15.3":0.01714,"15.4":0.01977,"15.5":0.02241,"15.6-15.8":0.29265,"16.0":0.03955,"16.1":0.07382,"16.2":0.03823,"16.3":0.06855,"16.4":0.01714,"16.5":0.03032,"16.6-16.7":0.39152,"17.0":0.02768,"17.1":0.04218,"17.2":0.03032,"17.3":0.04482,"17.4":0.0791,"17.5":0.13578,"17.6-17.7":0.34275,"18.0":0.07778,"18.1":0.16083,"18.2":0.08701,"18.3":0.27947,"18.4":0.14369,"18.5-18.6":7.32688,"26.0":0.90564,"26.1":0.03296},P:{"4":0.14255,"21":0.01018,"22":0.03055,"23":0.04073,"24":0.32584,"25":0.10182,"26":0.04073,"27":0.12219,"28":1.08952,"29":0.10182,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 17.0 18.0","7.2-7.4":0.10182,"15.0":0.01018,"16.0":0.02036,"19.0":0.02036},I:{"0":0.01395,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":2.34003,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.07685},Q:{_:"14.9"},O:{"0":0.16068},H:{"0":0.14},L:{"0":58.4405}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GN.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GN.js deleted file mode 100644 index 974e1c96..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GN.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"46":0.00255,"47":0.00255,"50":0.00255,"56":0.00764,"58":0.00255,"61":0.00255,"62":0.00255,"63":0.00255,"64":0.00255,"66":0.00509,"68":0.00255,"72":0.01018,"79":0.00255,"80":0.00509,"84":0.00509,"89":0.00255,"108":0.00255,"114":0.00255,"115":0.02801,"117":0.00255,"120":0.00509,"127":0.01528,"128":0.01018,"131":0.00255,"132":0.00255,"133":0.00255,"135":0.00764,"138":0.00255,"140":0.02291,"141":0.01018,"142":0.02037,"143":0.46337,"144":0.36408,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 48 49 51 52 53 54 55 57 59 60 65 67 69 70 71 73 74 75 76 77 78 81 82 83 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 109 110 111 112 113 116 118 119 121 122 123 124 125 126 129 130 134 136 137 139 145 146 147 3.5 3.6"},D:{"11":0.00255,"38":0.00255,"39":0.00255,"40":0.00255,"41":0.00255,"42":0.00255,"43":0.00255,"44":0.00255,"45":0.00255,"46":0.00255,"47":0.00255,"48":0.00255,"49":0.00509,"51":0.00255,"52":0.00255,"54":0.00255,"56":0.00255,"57":0.00255,"59":0.00509,"60":0.00255,"64":0.01273,"65":0.00255,"69":0.02291,"70":0.00255,"71":0.01018,"72":0.00509,"74":0.00764,"75":0.00255,"77":0.00255,"78":0.01273,"79":0.01528,"80":0.06874,"81":0.01018,"84":0.00255,"86":0.01782,"87":0.03564,"89":0.00255,"91":0.02546,"93":0.01273,"94":0.00509,"95":0.00255,"97":0.00509,"99":0.00255,"100":0.00255,"101":0.00255,"102":0.00255,"103":0.01018,"104":0.00255,"105":0.00255,"106":0.00255,"107":0.00255,"108":0.00509,"109":0.08911,"113":0.01273,"114":0.00509,"116":0.02546,"117":0.00509,"118":0.00255,"119":0.02801,"120":0.01782,"121":0.15021,"122":0.02291,"123":0.00509,"124":0.01018,"125":0.63141,"126":0.05347,"127":0.00255,"128":0.29024,"129":0.00255,"130":0.00509,"131":0.06874,"132":0.01528,"133":0.02801,"134":0.07383,"135":0.02801,"136":0.04074,"137":0.04837,"138":0.19859,"139":0.43282,"140":2.20484,"141":4.24927,"142":0.07129,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 50 53 55 58 61 62 63 66 67 68 73 76 83 85 88 90 92 96 98 110 111 112 115 143 144 145"},F:{"45":0.01018,"64":0.00764,"79":0.02801,"90":0.00255,"91":0.00255,"92":0.04328,"95":0.01782,"98":0.00255,"108":0.00255,"115":0.00255,"117":0.01528,"118":0.01018,"119":0.00509,"120":0.08911,"121":0.00255,"122":0.79944,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 93 94 96 97 99 100 101 102 103 104 105 106 107 109 110 111 112 113 114 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.02291,"13":0.00764,"14":0.00509,"15":0.00255,"16":0.00255,"17":0.02037,"18":0.11712,"84":0.02801,"85":0.00255,"86":0.00255,"89":0.03055,"90":0.05856,"92":0.08147,"95":0.00764,"100":0.04583,"109":0.00509,"112":0.00255,"114":0.07893,"119":0.00509,"121":0.00255,"122":0.02291,"123":0.00509,"125":0.00509,"127":0.00255,"128":0.00255,"129":0.00255,"130":0.00764,"131":0.00764,"133":0.04837,"134":0.01018,"135":0.02546,"136":0.00764,"137":0.01782,"138":0.0662,"139":0.05601,"140":0.59576,"141":2.46453,"142":0.00255,_:"79 80 81 83 87 88 91 93 94 96 97 98 99 101 102 103 104 105 106 107 108 110 111 113 115 116 117 118 120 124 126 132"},E:{"11":0.00509,"13":0.01528,_:"0 4 5 6 7 8 9 10 12 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.1 15.4 15.5 16.0 16.2 16.3 16.4 17.0 17.2 17.3 26.2","11.1":0.03819,"12.1":0.00255,"13.1":0.04328,"14.1":0.00764,"15.2-15.3":0.00255,"15.6":0.05601,"16.1":0.04074,"16.5":0.00255,"16.6":0.04074,"17.1":0.00255,"17.4":0.01273,"17.5":0.01273,"17.6":0.09929,"18.0":0.02037,"18.1":0.01273,"18.2":0.00255,"18.3":0.01273,"18.4":0.01018,"18.5-18.6":0.05856,"26.0":0.20623,"26.1":0.0942},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0009,"5.0-5.1":0,"6.0-6.1":0.00359,"7.0-7.1":0.00269,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00807,"10.0-10.2":0.0009,"10.3":0.01525,"11.0-11.2":0.226,"11.3-11.4":0.00538,"12.0-12.1":0.00179,"12.2-12.5":0.04394,"13.0-13.1":0,"13.2":0.00448,"13.3":0.00179,"13.4-13.7":0.00717,"14.0-14.4":0.01525,"14.5-14.8":0.01614,"15.0-15.1":0.01525,"15.2-15.3":0.01166,"15.4":0.01345,"15.5":0.01525,"15.6-15.8":0.1991,"16.0":0.02691,"16.1":0.05022,"16.2":0.02601,"16.3":0.04664,"16.4":0.01166,"16.5":0.02063,"16.6-16.7":0.26636,"17.0":0.01883,"17.1":0.0287,"17.2":0.02063,"17.3":0.03049,"17.4":0.05381,"17.5":0.09237,"17.6-17.7":0.23318,"18.0":0.05291,"18.1":0.10941,"18.2":0.05919,"18.3":0.19013,"18.4":0.09776,"18.5-18.6":4.98462,"26.0":0.61613,"26.1":0.02242},P:{"20":0.01014,"21":0.03041,"22":0.07097,"23":0.09124,"24":0.15207,"25":0.294,"26":0.13179,"27":0.40552,"28":2.26077,"29":0.0811,_:"4 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 15.0 17.0 18.0","7.2-7.4":0.0811,"11.1-11.2":0.01014,"14.0":0.01014,"16.0":0.01014,"19.0":0.05069},I:{"0":0.03722,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.97553,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01018,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.0671},Q:{"14.9":0.15656},O:{"0":0.77532},H:{"0":0.18},L:{"0":68.20953}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GP.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GP.js deleted file mode 100644 index a25d304d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GP.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"34":0.00411,"68":0.00411,"115":0.19733,"128":0.12333,"132":0.00411,"135":0.00411,"136":0.02467,"137":0.04111,"138":0.39466,"139":0.00411,"140":0.05755,"141":0.02056,"142":0.06578,"143":1.69784,"144":1.2703,"145":0.00411,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 133 134 146 147 3.5 3.6"},D:{"38":0.00411,"39":0.00411,"40":0.00822,"41":0.00822,"42":0.00411,"43":0.00411,"44":0.00411,"45":0.00411,"46":0.00411,"47":0.00411,"48":0.00411,"49":0.00411,"50":0.00822,"51":0.00411,"52":0.00411,"53":0.00411,"54":0.00411,"55":0.00411,"56":0.01233,"57":0.00822,"58":0.00411,"59":0.00411,"60":0.00411,"75":0.00411,"79":0.00411,"86":0.00411,"87":0.01233,"88":0.02056,"93":0.00411,"94":0.01233,"96":0.00411,"102":0.01233,"103":0.08633,"109":0.45221,"111":0.00411,"112":0.00411,"116":0.12333,"119":0.01644,"120":0.00411,"122":0.04111,"124":0.00411,"125":3.3628,"126":0.01644,"128":0.13155,"129":0.00411,"130":0.148,"131":0.03289,"132":0.03289,"133":0.02056,"134":0.02056,"135":0.02467,"136":0.09044,"137":0.05755,"138":0.34944,"139":0.74409,"140":4.97431,"141":10.92704,"142":0.16444,"143":0.01644,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 80 81 83 84 85 89 90 91 92 95 97 98 99 100 101 104 105 106 107 108 110 113 114 115 117 118 121 123 127 144 145"},F:{"36":0.00411,"40":0.00411,"92":0.01644,"114":0.00411,"118":0.00411,"120":0.36588,"121":0.04522,"122":0.90031,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00411,"92":0.00822,"109":0.01233,"114":0.02467,"122":0.00411,"125":0.00411,"130":0.00822,"131":0.01233,"132":0.20144,"133":0.00822,"134":0.02056,"135":0.01233,"136":0.04111,"137":0.01644,"138":0.01233,"139":0.02878,"140":0.75642,"141":3.68757,"142":0.00411,_:"12 13 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 126 127 128 129"},E:{"13":0.00411,"14":0.00411,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 26.2","13.1":0.00822,"14.1":0.04933,"15.1":0.00822,"15.2-15.3":0.00411,"15.4":0.00822,"15.5":0.00411,"15.6":0.29188,"16.0":0.00411,"16.1":0.04933,"16.2":0.01233,"16.3":0.03289,"16.4":0.00411,"16.5":0.00411,"16.6":0.10689,"17.0":0.00411,"17.1":0.6742,"17.2":0.09866,"17.3":0.09866,"17.4":0.06578,"17.5":0.02878,"17.6":0.27544,"18.0":0.01233,"18.1":0.02467,"18.2":0.00822,"18.3":0.02056,"18.4":0.037,"18.5-18.6":0.53854,"26.0":0.60843,"26.1":0.01233},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0015,"5.0-5.1":0,"6.0-6.1":0.006,"7.0-7.1":0.0045,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01349,"10.0-10.2":0.0015,"10.3":0.02548,"11.0-11.2":0.37769,"11.3-11.4":0.00899,"12.0-12.1":0.003,"12.2-12.5":0.07344,"13.0-13.1":0,"13.2":0.00749,"13.3":0.003,"13.4-13.7":0.01199,"14.0-14.4":0.02548,"14.5-14.8":0.02698,"15.0-15.1":0.02548,"15.2-15.3":0.01948,"15.4":0.02248,"15.5":0.02548,"15.6-15.8":0.33272,"16.0":0.04496,"16.1":0.08393,"16.2":0.04346,"16.3":0.07794,"16.4":0.01948,"16.5":0.03447,"16.6-16.7":0.44513,"17.0":0.03147,"17.1":0.04796,"17.2":0.03447,"17.3":0.05096,"17.4":0.08993,"17.5":0.15437,"17.6-17.7":0.38968,"18.0":0.08843,"18.1":0.18285,"18.2":0.09892,"18.3":0.31774,"18.4":0.16336,"18.5-18.6":8.33006,"26.0":1.02964,"26.1":0.03747},P:{"4":0.01055,"20":0.23214,"21":0.01055,"22":0.04221,"23":0.01055,"24":0.09497,"25":0.03166,"26":0.04221,"27":0.07386,"28":2.18426,"29":0.21104,_:"5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","6.2-6.4":0.01055,"7.2-7.4":0.03166,"19.0":0.10552},I:{"0":0.0294,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.12956,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.84802},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":42.7242}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GQ.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GQ.js deleted file mode 100644 index 1dd71e3e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GQ.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"2":0.00105,"4":0.01054,"43":0.00105,"64":0.00105,"87":0.00105,"115":0.03794,"135":0.00316,"136":0.00105,"140":0.00949,"141":0.00949,"142":0.01159,"143":0.27826,"144":0.23399,_:"3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 137 138 139 145 146 147 3.5 3.6"},D:{"40":0.00211,"41":0.00105,"44":0.00105,"45":0.00211,"48":0.00211,"51":0.00105,"53":0.00316,"56":0.00105,"57":0.00211,"58":0.00105,"59":0.00105,"60":0.00105,"63":0.00422,"64":0.00105,"67":0.00316,"69":0.00422,"73":0.00105,"75":0.00211,"79":0.04427,"81":0.00316,"83":0.00316,"86":0.00211,"87":0.00105,"88":0.00211,"90":0.00211,"94":0.01792,"96":0.00105,"98":0.0274,"100":0.00211,"103":0.01265,"108":0.00422,"109":0.2108,"111":0.01897,"114":0.00738,"116":0.04321,"119":0.02951,"120":0.01265,"121":0.00105,"122":0.00949,"123":0.00422,"124":0.00211,"125":0.11805,"128":0.02319,"129":0.00105,"131":0.00211,"132":0.00211,"133":0.02003,"134":0.00738,"135":0.00738,"136":0.02319,"137":0.02846,"138":0.11278,"139":0.08537,"140":0.73358,"141":1.59259,"142":0.01159,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 42 43 46 47 49 50 52 54 55 61 62 65 66 68 70 71 72 74 76 77 78 80 84 85 89 91 92 93 95 97 99 101 102 104 105 106 107 110 112 113 115 117 118 126 127 130 143 144 145"},F:{"50":0.00211,"91":0.00105,"95":0.00211,"112":0.00316,"113":0.01159,"120":0.03057,"122":0.1054,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 114 115 116 117 118 119 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00105,"13":0.00211,"14":0.01054,"16":0.00843,"18":0.00738,"90":0.00738,"92":0.01581,"100":0.00738,"109":0.00738,"114":0.04005,"117":0.00738,"120":0.04111,"121":0.00211,"122":0.01054,"124":0.00316,"126":0.00105,"127":0.00316,"130":0.00105,"131":0.02846,"132":0.00105,"133":0.01054,"134":0.01265,"135":0.00211,"136":0.00632,"137":0.00422,"138":0.07378,"139":0.02213,"140":0.46481,"141":2.10062,_:"15 17 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 118 119 123 125 128 129 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 13.1 15.1 15.4 15.5 16.0 16.1 16.2 16.3 16.4 17.0 17.1 17.2 17.3 17.4 17.5 18.2 18.3 18.4 26.2","5.1":0.00211,"11.1":0.00527,"12.1":0.00105,"14.1":0.00105,"15.2-15.3":0.00105,"15.6":0.05165,"16.5":0.00105,"16.6":0.00211,"17.6":0.00738,"18.0":0.0137,"18.1":0.00738,"18.5-18.6":0.03267,"26.0":0.04848,"26.1":0.00211},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00026,"5.0-5.1":0,"6.0-6.1":0.00103,"7.0-7.1":0.00077,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00232,"10.0-10.2":0.00026,"10.3":0.00438,"11.0-11.2":0.06493,"11.3-11.4":0.00155,"12.0-12.1":0.00052,"12.2-12.5":0.01263,"13.0-13.1":0,"13.2":0.00129,"13.3":0.00052,"13.4-13.7":0.00206,"14.0-14.4":0.00438,"14.5-14.8":0.00464,"15.0-15.1":0.00438,"15.2-15.3":0.00335,"15.4":0.00387,"15.5":0.00438,"15.6-15.8":0.0572,"16.0":0.00773,"16.1":0.01443,"16.2":0.00747,"16.3":0.0134,"16.4":0.00335,"16.5":0.00593,"16.6-16.7":0.07653,"17.0":0.00541,"17.1":0.00825,"17.2":0.00593,"17.3":0.00876,"17.4":0.01546,"17.5":0.02654,"17.6-17.7":0.067,"18.0":0.0152,"18.1":0.03144,"18.2":0.01701,"18.3":0.05463,"18.4":0.02809,"18.5-18.6":1.43215,"26.0":0.17702,"26.1":0.00644},P:{"4":0.03079,"25":0.03079,"27":0.25657,"28":0.61576,"29":0.07184,_:"20 21 22 23 24 26 5.0-5.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","6.2-6.4":0.01026,"7.2-7.4":0.02053,"9.2":0.01026},I:{"0":0.00893,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":1.09048,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00105,_:"6 7 8 9 10 5.5"},S:{"2.5":0.03579,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.03579},Q:{_:"14.9"},O:{"0":0.14315},H:{"0":0.01},L:{"0":87.6971}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GR.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GR.js deleted file mode 100644 index ce188104..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GR.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"48":0.00616,"52":0.28971,"68":0.1541,"78":0.01233,"102":0.00616,"105":0.58558,"115":0.9246,"116":0.00616,"125":0.00616,"127":0.00616,"128":0.00616,"133":0.00616,"134":0.00616,"135":0.01233,"136":0.01849,"137":0.00616,"138":0.01233,"139":0.01849,"140":0.05548,"141":0.02466,"142":0.08013,"143":1.97864,"144":1.8492,"145":0.00616,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 106 107 108 109 110 111 112 113 114 117 118 119 120 121 122 123 124 126 129 130 131 132 146 147 3.5 3.6"},D:{"38":0.00616,"47":0.00616,"49":0.04931,"53":0.00616,"56":0.00616,"57":0.04315,"68":0.3945,"73":0.00616,"74":0.08013,"75":0.00616,"79":0.06164,"83":0.00616,"87":0.04931,"88":0.38833,"89":0.01233,"91":0.00616,"94":0.00616,"95":0.00616,"100":0.23423,"101":0.01233,"102":0.18492,"103":0.04315,"104":0.01233,"105":0.02466,"107":0.01849,"108":0.03698,"109":4.64766,"110":0.00616,"111":0.00616,"114":0.02466,"115":0.00616,"116":0.08013,"117":0.01849,"118":0.00616,"119":0.01233,"120":0.01849,"121":0.01233,"122":0.0678,"123":0.01233,"124":0.03698,"125":3.35322,"126":0.03082,"127":0.01233,"128":0.07397,"129":0.01233,"130":0.02466,"131":0.04315,"132":0.02466,"133":0.03082,"134":0.03698,"135":0.08013,"136":0.05548,"137":0.06164,"138":0.35751,"139":0.5301,"140":9.01793,"141":22.96706,"142":0.20341,"143":0.00616,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 48 50 51 52 54 55 58 59 60 61 62 63 64 65 66 67 69 70 71 72 76 77 78 80 81 84 85 86 90 92 93 96 97 98 99 106 112 113 144 145"},F:{"31":0.34518,"36":0.00616,"40":0.50545,"46":0.43148,"91":0.01233,"92":0.02466,"95":0.03698,"114":0.01849,"119":0.01233,"120":0.14794,"121":0.08013,"122":1.06021,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.09246,"126":0.00616,"131":0.00616,"134":0.00616,"135":0.00616,"136":0.00616,"137":0.00616,"138":0.00616,"139":0.01233,"140":0.59791,"141":3.0142,"142":0.00616,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 127 128 129 130 132 133"},E:{"12":0.00616,_:"0 4 5 6 7 8 9 10 11 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 16.0 17.0 26.2","12.1":0.00616,"13.1":0.00616,"14.1":0.01233,"15.4":0.00616,"15.5":0.00616,"15.6":0.07397,"16.1":0.00616,"16.2":0.00616,"16.3":0.01849,"16.4":0.00616,"16.5":0.01849,"16.6":0.08013,"17.1":0.07397,"17.2":0.00616,"17.3":0.00616,"17.4":0.02466,"17.5":0.01849,"17.6":0.12328,"18.0":0.00616,"18.1":0.01233,"18.2":0.01233,"18.3":0.03698,"18.4":0.02466,"18.5-18.6":0.07397,"26.0":0.33286,"26.1":0.00616},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00076,"5.0-5.1":0,"6.0-6.1":0.00302,"7.0-7.1":0.00227,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0068,"10.0-10.2":0.00076,"10.3":0.01285,"11.0-11.2":0.19048,"11.3-11.4":0.00454,"12.0-12.1":0.00151,"12.2-12.5":0.03704,"13.0-13.1":0,"13.2":0.00378,"13.3":0.00151,"13.4-13.7":0.00605,"14.0-14.4":0.01285,"14.5-14.8":0.01361,"15.0-15.1":0.01285,"15.2-15.3":0.00983,"15.4":0.01134,"15.5":0.01285,"15.6-15.8":0.16781,"16.0":0.02268,"16.1":0.04233,"16.2":0.02192,"16.3":0.03931,"16.4":0.00983,"16.5":0.01739,"16.6-16.7":0.2245,"17.0":0.01587,"17.1":0.02419,"17.2":0.01739,"17.3":0.0257,"17.4":0.04535,"17.5":0.07786,"17.6-17.7":0.19653,"18.0":0.0446,"18.1":0.09222,"18.2":0.04989,"18.3":0.16025,"18.4":0.08239,"18.5-18.6":4.20117,"26.0":0.51929,"26.1":0.0189},P:{"4":0.27491,"21":0.01057,"22":0.01057,"23":0.01057,"24":0.01057,"25":0.01057,"26":0.03172,"27":0.04229,"28":1.33224,"29":0.09516,_:"20 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.01057,"7.2-7.4":0.03172},I:{"0":0.05361,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.19559,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.2219,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.33748},Q:{"14.9":0.00384},O:{"0":0.03835},H:{"0":0},L:{"0":30.84616}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GT.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GT.js deleted file mode 100644 index f91d7b47..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GT.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.04038,"120":0.01211,"127":0.00808,"128":0.01211,"133":0.00404,"136":0.00404,"137":0.00404,"138":0.00808,"139":0.00404,"140":0.05249,"141":0.00404,"142":0.09287,"143":0.51283,"144":0.45629,"145":0.00404,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 122 123 124 125 126 129 130 131 132 134 135 146 147 3.5 3.6"},D:{"39":0.00404,"40":0.00404,"41":0.00404,"42":0.00404,"43":0.00404,"44":0.00404,"45":0.00404,"46":0.00404,"47":0.00404,"48":0.00404,"49":0.00404,"50":0.00404,"51":0.00404,"52":0.00404,"53":0.00404,"54":0.00404,"55":0.00404,"56":0.00404,"57":0.00404,"58":0.00404,"59":0.00404,"60":0.00404,"76":0.00404,"78":0.02423,"79":0.01615,"87":0.01211,"93":0.00808,"97":0.00404,"103":0.01211,"106":0.00404,"108":0.00808,"109":0.41995,"110":0.00404,"111":0.01211,"112":1.15891,"114":0.00404,"115":0.00404,"116":0.08076,"117":0.00404,"119":0.01211,"120":0.01211,"121":0.00404,"122":0.05249,"123":0.02019,"124":0.01211,"125":1.75249,"126":0.10095,"127":0.01211,"128":0.04038,"129":0.01211,"130":0.00808,"131":0.04038,"132":0.0323,"133":0.02019,"134":0.01615,"135":0.02423,"136":0.02827,"137":0.04038,"138":0.14941,"139":0.20998,"140":5.25748,"141":13.26079,"142":0.15344,"143":0.01615,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 80 81 83 84 85 86 88 89 90 91 92 94 95 96 98 99 100 101 102 104 105 107 113 118 144 145"},F:{"91":0.00808,"92":0.03634,"95":0.02423,"114":0.00404,"117":0.00404,"120":0.10499,"121":0.17363,"122":1.13064,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00808,"109":0.00404,"114":0.04442,"131":0.00404,"133":0.00404,"134":0.01211,"135":0.00404,"136":0.00808,"137":0.00404,"138":0.01211,"139":0.02019,"140":0.59762,"141":2.72565,"142":0.00808,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 132"},E:{"14":0.00404,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 16.2 16.4 17.0 26.2","5.1":0.00404,"13.1":0.00808,"14.1":0.00404,"15.4":0.00808,"15.5":0.00404,"15.6":0.0323,"16.0":0.00404,"16.1":0.00808,"16.3":0.00404,"16.5":0.00808,"16.6":0.05249,"17.1":0.03634,"17.2":0.00808,"17.3":0.00404,"17.4":0.00808,"17.5":0.01615,"17.6":0.07672,"18.0":0.00404,"18.1":0.01211,"18.2":0.00404,"18.3":0.04038,"18.4":0.01615,"18.5-18.6":0.09691,"26.0":0.55321,"26.1":0.02423},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00127,"5.0-5.1":0,"6.0-6.1":0.00507,"7.0-7.1":0.0038,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0114,"10.0-10.2":0.00127,"10.3":0.02154,"11.0-11.2":0.31927,"11.3-11.4":0.0076,"12.0-12.1":0.00253,"12.2-12.5":0.06208,"13.0-13.1":0,"13.2":0.00633,"13.3":0.00253,"13.4-13.7":0.01014,"14.0-14.4":0.02154,"14.5-14.8":0.0228,"15.0-15.1":0.02154,"15.2-15.3":0.01647,"15.4":0.019,"15.5":0.02154,"15.6-15.8":0.28126,"16.0":0.03801,"16.1":0.07095,"16.2":0.03674,"16.3":0.06588,"16.4":0.01647,"16.5":0.02914,"16.6-16.7":0.37628,"17.0":0.02661,"17.1":0.04054,"17.2":0.02914,"17.3":0.04308,"17.4":0.07602,"17.5":0.13049,"17.6-17.7":0.3294,"18.0":0.07475,"18.1":0.15456,"18.2":0.08362,"18.3":0.26859,"18.4":0.13809,"18.5-18.6":7.04157,"26.0":0.87038,"26.1":0.03167},P:{"4":0.02034,"22":0.01017,"23":0.02034,"24":0.06102,"25":0.04068,"26":0.03051,"27":0.08135,"28":2.69488,"29":0.22373,_:"20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.02034,"13.0":0.01017},I:{"0":0.02977,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.23252,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.23848},Q:{_:"14.9"},O:{"0":0.00596},H:{"0":0},L:{"0":50.9004}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GU.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GU.js deleted file mode 100644 index e68202d6..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GU.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"78":0.04077,"115":0.08154,"117":0.03058,"132":0.01529,"140":0.0051,"141":0.1223,"142":0.0051,"143":0.35672,"144":2.22186,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 118 119 120 121 122 123 124 125 126 127 128 129 130 131 133 134 135 136 137 138 139 145 146 147 3.5 3.6"},D:{"41":0.0051,"42":0.01019,"43":0.0051,"44":0.0051,"45":0.0051,"46":0.0051,"48":0.0051,"49":0.0051,"52":0.0051,"53":0.0051,"54":0.0051,"55":0.0051,"56":0.0051,"57":0.0051,"58":0.0051,"59":0.0051,"60":0.01019,"83":0.0051,"86":0.01019,"87":0.0051,"89":0.0051,"90":0.0051,"91":0.0051,"92":0.0051,"93":0.01529,"95":0.0051,"96":0.0051,"97":0.02038,"98":0.39239,"99":0.14778,"103":0.08663,"109":0.49941,"113":0.0051,"116":0.08154,"120":0.03567,"121":0.01019,"122":0.05606,"123":0.0051,"125":0.93766,"126":0.06115,"127":0.0051,"128":0.02548,"129":0.18346,"130":0.0051,"131":0.09682,"132":0.01019,"133":0.02548,"134":0.06625,"135":0.04586,"136":0.13759,"137":0.05096,"138":0.29047,"139":0.43316,"140":4.9737,"141":12.64827,"142":0.09682,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 47 50 51 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 84 85 88 94 100 101 102 104 105 106 107 108 110 111 112 114 115 117 118 119 124 143 144 145"},F:{"83":0.01019,"84":0.01019,"90":0.0051,"118":0.01019,"120":0.01529,"121":0.21403,"122":1.0192,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 85 86 87 88 89 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"97":0.0051,"98":0.07644,"99":0.03058,"109":0.02038,"114":0.0051,"124":0.0051,"127":0.0051,"131":0.0051,"133":0.01019,"134":0.01019,"135":0.01529,"138":0.05096,"139":0.07644,"140":1.18737,"141":5.30494,"142":0.0051,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 125 126 128 129 130 132 136 137"},E:{"14":0.02548,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 26.2","11.1":0.01019,"13.1":0.04077,"14.1":0.02038,"15.1":0.01019,"15.2-15.3":0.01529,"15.4":0.01019,"15.5":0.01529,"15.6":0.2599,"16.0":0.0051,"16.1":0.02038,"16.2":0.02548,"16.3":0.15288,"16.4":0.06625,"16.5":0.1274,"16.6":0.54018,"17.0":0.03567,"17.1":0.44845,"17.2":0.06115,"17.3":0.03058,"17.4":0.15288,"17.5":0.16307,"17.6":1.47784,"18.0":0.02038,"18.1":0.05606,"18.2":0.02548,"18.3":0.19874,"18.4":0.06625,"18.5-18.6":0.32614,"26.0":0.68286,"26.1":0.01019},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00204,"5.0-5.1":0,"6.0-6.1":0.00815,"7.0-7.1":0.00612,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01835,"10.0-10.2":0.00204,"10.3":0.03466,"11.0-11.2":0.51374,"11.3-11.4":0.01223,"12.0-12.1":0.00408,"12.2-12.5":0.09989,"13.0-13.1":0,"13.2":0.01019,"13.3":0.00408,"13.4-13.7":0.01631,"14.0-14.4":0.03466,"14.5-14.8":0.0367,"15.0-15.1":0.03466,"15.2-15.3":0.0265,"15.4":0.03058,"15.5":0.03466,"15.6-15.8":0.45258,"16.0":0.06116,"16.1":0.11417,"16.2":0.05912,"16.3":0.10601,"16.4":0.0265,"16.5":0.04689,"16.6-16.7":0.60548,"17.0":0.04281,"17.1":0.06524,"17.2":0.04689,"17.3":0.06931,"17.4":0.12232,"17.5":0.20998,"17.6-17.7":0.53005,"18.0":0.12028,"18.1":0.24872,"18.2":0.13455,"18.3":0.4322,"18.4":0.22221,"18.5-18.6":11.33091,"26.0":1.40056,"26.1":0.05097},P:{"4":0.10329,"21":0.08263,"23":0.03099,"24":0.01033,"25":0.01033,"26":0.01033,"27":0.01033,"28":3.86315,"29":0.33054,_:"20 22 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.01958,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.11767,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0051,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.31379},Q:{_:"14.9"},O:{"0":0.0049},H:{"0":0},L:{"0":25.73702}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GW.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GW.js deleted file mode 100644 index 79fee23f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GW.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"94":0.0052,"111":0.0026,"112":0.0052,"115":0.04676,"116":0.0026,"140":0.0026,"143":0.20524,"144":0.09093,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 113 114 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 141 142 145 146 147 3.5 3.6"},D:{"41":0.0026,"42":0.0052,"44":0.0026,"45":0.0052,"47":0.0052,"49":0.0026,"51":0.0026,"54":0.0052,"58":0.0026,"60":0.0026,"66":0.00779,"68":0.02078,"69":0.0026,"71":0.01299,"77":0.0052,"79":0.01819,"83":0.00779,"90":0.0052,"97":0.00779,"98":0.02598,"103":0.05456,"109":0.16627,"111":0.0052,"114":0.18186,"116":0.08054,"119":0.01039,"120":0.01559,"122":0.02078,"124":0.02078,"125":1.38733,"126":0.02598,"127":0.02078,"128":0.0026,"129":0.0026,"130":0.01819,"131":0.0052,"132":0.00779,"134":0.0052,"135":0.03377,"136":0.10652,"137":0.42088,"138":1.05998,"139":0.33774,"140":1.58478,"141":2.72011,"142":0.03377,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 43 46 48 50 52 53 55 56 57 59 61 62 63 64 65 67 70 72 73 74 75 76 78 80 81 84 85 86 87 88 89 91 92 93 94 95 96 99 100 101 102 104 105 106 107 108 110 112 113 115 117 118 121 123 133 143 144 145"},F:{"64":0.00779,"85":0.00779,"91":0.0026,"92":0.0052,"95":0.02078,"119":0.02338,"120":0.04936,"122":0.32735,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.00779,"18":0.0026,"84":0.0052,"89":0.00779,"90":0.00779,"92":0.05196,"100":0.00779,"106":0.0052,"109":0.02598,"114":0.05196,"118":0.0026,"122":0.01039,"124":0.00779,"129":0.00779,"131":0.0026,"132":0.02598,"134":0.01039,"136":0.00779,"137":0.01039,"138":0.02598,"139":0.0052,"140":0.70925,"141":2.50707,"142":0.0026,_:"12 13 14 16 17 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 107 108 110 111 112 113 115 116 117 119 120 121 123 125 126 127 128 130 133 135"},E:{"14":0.0026,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.2 17.3 17.5 18.1 18.3 18.4 26.1 26.2","5.1":0.0052,"11.1":0.03118,"12.1":0.01039,"15.6":0.0052,"16.6":0.00779,"17.0":0.00779,"17.1":0.0026,"17.4":0.00779,"17.6":0.28578,"18.0":0.01299,"18.2":0.00779,"18.5-18.6":0.0026,"26.0":0.14289},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00025,"5.0-5.1":0,"6.0-6.1":0.00101,"7.0-7.1":0.00076,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00227,"10.0-10.2":0.00025,"10.3":0.00428,"11.0-11.2":0.06342,"11.3-11.4":0.00151,"12.0-12.1":0.0005,"12.2-12.5":0.01233,"13.0-13.1":0,"13.2":0.00126,"13.3":0.0005,"13.4-13.7":0.00201,"14.0-14.4":0.00428,"14.5-14.8":0.00453,"15.0-15.1":0.00428,"15.2-15.3":0.00327,"15.4":0.00378,"15.5":0.00428,"15.6-15.8":0.05587,"16.0":0.00755,"16.1":0.01409,"16.2":0.0073,"16.3":0.01309,"16.4":0.00327,"16.5":0.00579,"16.6-16.7":0.07475,"17.0":0.00529,"17.1":0.00805,"17.2":0.00579,"17.3":0.00856,"17.4":0.0151,"17.5":0.02592,"17.6-17.7":0.06543,"18.0":0.01485,"18.1":0.0307,"18.2":0.01661,"18.3":0.05335,"18.4":0.02743,"18.5-18.6":1.39877,"26.0":0.1729,"26.1":0.00629},P:{"22":0.01017,"24":0.0712,"25":0.11189,"26":0.02034,"27":0.20343,"28":0.5696,_:"4 20 21 23 29 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.50857},I:{"0":0.00739,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.73667,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{"2.5":0.02221,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.06662},Q:{_:"14.9"},O:{"0":0.14804},H:{"0":0.27},L:{"0":80.74346}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GY.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GY.js deleted file mode 100644 index d5ae7e96..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/GY.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"110":0.02729,"111":0.00546,"115":0.0764,"127":0.00546,"142":0.0382,"143":0.18554,"144":0.16371,"145":0.00546,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 112 113 114 116 117 118 119 120 121 122 123 124 125 126 128 129 130 131 132 133 134 135 136 137 138 139 140 141 146 147 3.5 3.6"},D:{"26":0.00546,"39":0.01637,"40":0.01637,"41":0.01637,"42":0.01637,"43":0.01637,"44":0.02183,"45":0.01091,"46":0.01637,"47":0.01637,"48":0.02183,"49":0.01637,"50":0.01637,"51":0.01091,"52":0.02183,"53":0.02183,"54":0.0382,"55":0.01091,"56":0.01637,"57":0.01091,"58":0.01637,"59":0.02183,"60":0.01637,"69":0.00546,"73":0.01637,"79":0.04366,"81":0.00546,"83":0.0764,"87":0.02183,"90":0.00546,"91":0.01091,"92":0.00546,"93":0.02183,"94":0.00546,"95":0.00546,"97":0.05457,"98":0.00546,"103":0.0382,"105":0.01091,"109":0.16371,"111":0.01637,"112":2.95769,"114":0.01091,"116":0.00546,"117":0.02183,"119":0.00546,"120":0.04911,"121":0.00546,"122":0.02729,"124":0.06548,"125":18.48286,"126":0.35471,"127":0.01091,"128":0.02183,"129":0.00546,"130":0.01637,"131":0.02729,"132":0.10914,"133":0.01091,"134":0.04911,"135":0.01637,"136":0.01637,"137":0.20737,"138":0.25648,"139":0.87312,"140":3.85264,"141":9.38058,"142":0.20737,"143":0.00546,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 70 71 72 74 75 76 77 78 80 84 85 86 88 89 96 99 100 101 102 104 106 107 108 110 113 115 118 123 144 145"},F:{"90":0.00546,"92":0.12551,"120":0.0764,"121":0.0382,"122":0.67667,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00546,"18":0.01091,"92":0.01091,"109":0.02183,"114":0.5457,"116":0.00546,"117":0.00546,"120":0.01091,"122":0.02183,"131":0.00546,"132":0.00546,"134":0.02729,"137":0.01091,"138":0.02183,"139":0.06003,"140":0.77489,"141":5.09684,"142":0.00546,_:"12 13 14 15 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 118 119 121 123 124 125 126 127 128 129 130 133 135 136"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.5 16.0 16.1 16.4 16.5 17.0 17.2 17.3 17.4 18.0 18.1 26.2","5.1":0.00546,"13.1":0.00546,"14.1":0.01091,"15.4":0.00546,"15.6":0.07094,"16.2":0.00546,"16.3":0.00546,"16.6":0.01091,"17.1":0.02729,"17.5":0.02183,"17.6":0.16917,"18.2":0.00546,"18.3":0.01637,"18.4":0.00546,"18.5-18.6":0.05457,"26.0":0.33288,"26.1":0.00546},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00058,"5.0-5.1":0,"6.0-6.1":0.00233,"7.0-7.1":0.00174,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00523,"10.0-10.2":0.00058,"10.3":0.00989,"11.0-11.2":0.14657,"11.3-11.4":0.00349,"12.0-12.1":0.00116,"12.2-12.5":0.0285,"13.0-13.1":0,"13.2":0.00291,"13.3":0.00116,"13.4-13.7":0.00465,"14.0-14.4":0.00989,"14.5-14.8":0.01047,"15.0-15.1":0.00989,"15.2-15.3":0.00756,"15.4":0.00872,"15.5":0.00989,"15.6-15.8":0.12912,"16.0":0.01745,"16.1":0.03257,"16.2":0.01687,"16.3":0.03024,"16.4":0.00756,"16.5":0.01338,"16.6-16.7":0.17274,"17.0":0.01221,"17.1":0.01861,"17.2":0.01338,"17.3":0.01978,"17.4":0.0349,"17.5":0.05991,"17.6-17.7":0.15122,"18.0":0.03432,"18.1":0.07096,"18.2":0.03839,"18.3":0.12331,"18.4":0.0634,"18.5-18.6":3.23271,"26.0":0.39958,"26.1":0.01454},P:{"4":0.02129,"21":0.05324,"22":0.03194,"23":0.01065,"24":0.08518,"25":0.09582,"26":0.02129,"27":0.11712,"28":2.9386,"29":0.181,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0","7.2-7.4":0.03194,"16.0":0.03194,"19.0":0.01065},I:{"0":0.00908,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.55891,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.17722},Q:{"14.9":0.01363},O:{"0":0.12269},H:{"0":0},L:{"0":41.24396}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/HK.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/HK.js deleted file mode 100644 index 9aa4dd46..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/HK.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.01033,"78":0.01549,"81":0.00516,"115":0.0568,"128":0.02066,"133":0.00516,"135":0.00516,"136":0.01033,"138":0.00516,"139":0.00516,"140":0.01549,"141":0.00516,"142":0.02582,"143":0.56804,"144":0.40796,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 134 137 145 146 147 3.5 3.6"},D:{"39":0.01549,"40":0.01549,"41":0.01549,"42":0.01549,"43":0.01549,"44":0.01549,"45":0.01549,"46":0.01549,"47":0.01549,"48":0.01549,"49":0.02066,"50":0.01549,"51":0.01549,"52":0.01549,"53":0.01549,"54":0.01549,"55":0.01549,"56":0.01549,"57":0.01549,"58":0.01549,"59":0.01549,"60":0.01549,"74":0.00516,"75":0.00516,"76":0.00516,"78":0.00516,"79":0.03098,"80":0.00516,"81":0.00516,"83":0.01033,"85":0.00516,"86":0.03098,"87":0.02066,"89":0.00516,"90":0.00516,"91":0.00516,"92":0.00516,"95":0.00516,"96":0.02066,"97":0.01549,"98":0.01549,"99":0.00516,"100":0.00516,"101":0.03098,"102":0.00516,"103":0.01549,"104":0.01549,"105":0.01033,"106":0.00516,"107":0.02582,"108":0.01549,"109":0.51124,"110":0.01549,"111":0.01033,"112":16.41636,"113":0.01033,"114":0.06197,"115":0.02582,"116":0.04131,"117":0.01033,"118":0.02582,"119":0.04131,"120":0.0723,"121":0.07746,"122":0.0568,"123":0.06197,"124":0.10844,"125":0.66099,"126":2.53036,"127":0.04648,"128":0.21172,"129":0.12394,"130":0.21689,"131":0.22205,"132":0.1291,"133":0.09295,"134":0.13943,"135":0.08779,"136":0.0723,"137":0.315,"138":0.26336,"139":0.43378,"140":4.06407,"141":9.32618,"142":0.11877,"143":0.08262,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 77 84 88 93 94 144 145"},F:{"91":0.00516,"92":0.01033,"95":0.01033,"120":0.01549,"121":0.01033,"122":0.11877,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.02582,"106":0.01033,"109":0.04648,"113":0.01549,"114":0.00516,"115":0.00516,"116":0.00516,"117":0.01549,"118":0.00516,"120":0.03615,"121":0.00516,"122":0.01033,"123":0.01033,"124":0.00516,"125":0.00516,"126":0.01549,"127":0.01549,"128":0.01549,"129":0.01033,"130":0.02066,"131":0.04648,"132":0.01033,"133":0.02582,"134":0.02582,"135":0.03098,"136":0.02582,"137":0.04131,"138":0.06713,"139":0.1291,"140":0.88821,"141":3.20684,"142":0.01549,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 107 108 110 111 112 119"},E:{"8":0.00516,"12":0.00516,"14":0.01033,_:"0 4 5 6 7 9 10 11 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 26.2","13.1":0.01033,"14.1":0.02066,"15.1":0.00516,"15.2-15.3":0.00516,"15.4":0.01033,"15.5":0.01033,"15.6":0.07746,"16.0":0.01033,"16.1":0.01549,"16.2":0.01033,"16.3":0.03098,"16.4":0.01033,"16.5":0.01549,"16.6":0.11877,"17.0":0.00516,"17.1":0.0723,"17.2":0.01033,"17.3":0.01033,"17.4":0.02066,"17.5":0.03615,"17.6":0.10844,"18.0":0.01549,"18.1":0.03098,"18.2":0.01033,"18.3":0.03615,"18.4":0.01549,"18.5-18.6":0.14976,"26.0":0.32533,"26.1":0.01033},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00133,"5.0-5.1":0,"6.0-6.1":0.00532,"7.0-7.1":0.00399,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01198,"10.0-10.2":0.00133,"10.3":0.02262,"11.0-11.2":0.33538,"11.3-11.4":0.00799,"12.0-12.1":0.00266,"12.2-12.5":0.06521,"13.0-13.1":0,"13.2":0.00665,"13.3":0.00266,"13.4-13.7":0.01065,"14.0-14.4":0.02262,"14.5-14.8":0.02396,"15.0-15.1":0.02262,"15.2-15.3":0.0173,"15.4":0.01996,"15.5":0.02262,"15.6-15.8":0.29545,"16.0":0.03993,"16.1":0.07453,"16.2":0.0386,"16.3":0.06921,"16.4":0.0173,"16.5":0.03061,"16.6-16.7":0.39527,"17.0":0.02795,"17.1":0.04259,"17.2":0.03061,"17.3":0.04525,"17.4":0.07985,"17.5":0.13708,"17.6-17.7":0.34603,"18.0":0.07852,"18.1":0.16237,"18.2":0.08784,"18.3":0.28214,"18.4":0.14506,"18.5-18.6":7.39696,"26.0":0.91431,"26.1":0.03327},P:{"4":0.02116,"20":0.01058,"21":0.01058,"22":0.02116,"23":0.01058,"24":0.01058,"25":0.02116,"26":0.0529,"27":0.04232,"28":2.85678,"29":0.21161,"5.0-5.4":0.01058,_:"6.2-6.4 8.2 9.2 10.1 12.0 14.0 15.0 16.0 17.0 19.0","7.2-7.4":0.01058,"11.1-11.2":0.01058,"13.0":0.01058,"18.0":0.01058},I:{"0":0.04346,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.09188,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.03486,"9":0.488,"11":0.17429,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.76409},Q:{"14.9":0.17893},O:{"0":0.20311},H:{"0":0},L:{"0":33.72015}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/HN.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/HN.js deleted file mode 100644 index fbbe6ef8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/HN.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"4":0.01081,"115":0.04322,"138":0.01081,"140":0.01081,"141":0.0054,"142":0.02702,"143":0.31878,"144":0.33499,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 139 145 146 147 3.5 3.6"},D:{"39":0.01081,"40":0.01081,"41":0.01621,"42":0.01081,"43":0.01081,"44":0.01081,"45":0.01621,"46":0.01621,"47":0.01081,"48":0.01621,"49":0.01621,"50":0.01621,"51":0.01621,"52":0.01081,"53":0.01621,"54":0.01081,"55":0.01621,"56":0.01621,"57":0.01621,"58":0.01621,"59":0.01081,"60":0.01621,"65":0.0054,"75":0.01081,"76":0.0054,"79":0.09185,"85":0.01081,"87":0.07024,"93":0.03242,"94":0.01081,"97":0.01621,"98":0.0054,"103":0.04863,"105":0.0054,"106":0.0054,"108":0.05943,"109":0.47546,"110":0.0054,"111":0.02702,"112":8.86632,"114":0.0054,"115":0.0054,"116":0.02702,"117":0.0054,"119":0.03782,"120":0.02702,"121":0.0054,"122":0.05403,"123":0.0054,"124":0.0054,"125":9.87668,"126":0.68618,"127":0.02161,"128":0.04322,"129":0.01081,"130":0.01081,"131":0.07024,"132":0.03782,"133":0.03782,"134":0.02702,"135":0.10806,"136":0.03782,"137":0.05403,"138":0.28096,"139":0.39442,"140":4.71682,"141":12.67004,"142":0.1837,"143":0.0054,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 66 67 68 69 70 71 72 73 74 77 78 80 81 83 84 86 88 89 90 91 92 95 96 99 100 101 102 104 107 113 118 144 145"},F:{"91":0.01081,"92":0.01081,"95":0.02161,"117":0.02161,"120":0.07564,"121":0.1837,"122":1.72356,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.01621,"109":0.01081,"114":0.33499,"129":0.0054,"130":0.0054,"131":0.0054,"132":0.0054,"133":0.0054,"134":0.08645,"135":0.0054,"136":0.0054,"137":0.01081,"138":0.02702,"139":0.05943,"140":0.69699,"141":4.35482,"142":0.01081,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.2 18.2 26.2","5.1":0.0054,"13.1":0.0054,"15.6":0.02702,"16.6":0.03782,"17.1":0.01621,"17.3":0.0054,"17.4":0.0054,"17.5":0.0054,"17.6":0.05403,"18.0":0.03242,"18.1":0.0054,"18.3":0.02702,"18.4":0.21072,"18.5-18.6":0.03782,"26.0":0.39442,"26.1":0.0054},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00121,"5.0-5.1":0,"6.0-6.1":0.00484,"7.0-7.1":0.00363,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01089,"10.0-10.2":0.00121,"10.3":0.02056,"11.0-11.2":0.30479,"11.3-11.4":0.00726,"12.0-12.1":0.00242,"12.2-12.5":0.05926,"13.0-13.1":0,"13.2":0.00605,"13.3":0.00242,"13.4-13.7":0.00968,"14.0-14.4":0.02056,"14.5-14.8":0.02177,"15.0-15.1":0.02056,"15.2-15.3":0.01572,"15.4":0.01814,"15.5":0.02056,"15.6-15.8":0.2685,"16.0":0.03628,"16.1":0.06773,"16.2":0.03507,"16.3":0.06289,"16.4":0.01572,"16.5":0.02782,"16.6-16.7":0.35921,"17.0":0.0254,"17.1":0.0387,"17.2":0.02782,"17.3":0.04112,"17.4":0.07257,"17.5":0.12458,"17.6-17.7":0.31446,"18.0":0.07136,"18.1":0.14756,"18.2":0.07983,"18.3":0.25641,"18.4":0.13183,"18.5-18.6":6.72224,"26.0":0.83091,"26.1":0.03024},P:{"4":0.09332,"20":0.01037,"21":0.01037,"22":0.01037,"24":0.03111,"25":0.05185,"26":0.02074,"27":0.04148,"28":1.29617,"29":0.10369,_:"23 6.2-6.4 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 18.0 19.0","5.0-5.4":0.02074,"7.2-7.4":0.09332,"8.2":0.01037,"16.0":0.02074,"17.0":0.01037},I:{"0":0.03672,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.1563,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{"2.5":0.0046,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.11033},Q:{_:"14.9"},O:{"0":0.02758},H:{"0":0},L:{"0":34.88943}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/HR.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/HR.js deleted file mode 100644 index 0ebeb20f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/HR.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.03073,"77":0.01024,"104":0.00512,"105":0.00512,"108":0.00512,"115":0.29708,"125":0.00512,"127":0.00512,"128":0.0922,"133":0.09732,"134":0.02049,"135":0.00512,"136":0.01537,"138":0.02561,"139":0.01024,"140":0.0461,"141":0.03073,"142":0.07171,"143":1.52123,"144":1.43416,"145":0.00512,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 106 107 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 129 130 131 132 137 146 147 3.5 3.6"},D:{"38":0.00512,"41":0.02561,"43":0.00512,"47":0.00512,"48":0.00512,"49":0.02049,"50":0.00512,"52":0.00512,"53":0.01024,"57":0.00512,"66":0.00512,"68":0.00512,"69":0.00512,"70":0.00512,"75":0.01537,"76":0.00512,"77":0.01024,"79":0.20488,"80":0.00512,"81":0.01024,"84":0.00512,"87":0.13829,"88":0.00512,"89":0.00512,"91":0.00512,"94":0.01537,"95":0.00512,"96":0.00512,"103":0.02561,"104":0.01537,"106":0.00512,"108":0.06659,"109":1.09099,"111":0.03585,"112":0.9783,"113":0.02049,"114":0.01024,"116":0.05634,"117":0.00512,"118":0.01537,"119":0.01024,"120":0.02049,"121":0.01024,"122":0.03585,"123":0.01024,"124":0.0461,"125":1.04489,"126":0.07683,"127":0.00512,"128":0.05122,"129":0.01024,"130":0.03073,"131":0.11268,"132":0.04098,"133":0.06146,"134":0.06659,"135":0.11781,"136":0.07683,"137":0.11268,"138":0.35342,"139":1.05001,"140":8.24642,"141":19.54043,"142":0.16903,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 42 44 45 46 51 54 55 56 58 59 60 61 62 63 64 65 67 71 72 73 74 78 83 85 86 90 92 93 97 98 99 100 101 102 105 107 110 115 143 144 145"},F:{"36":0.00512,"46":0.03585,"84":0.00512,"91":0.02049,"92":0.0461,"95":0.02561,"120":0.20488,"121":0.12293,"122":1.52636,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"100":0.00512,"109":0.02049,"114":0.02561,"118":0.00512,"128":0.00512,"131":0.00512,"132":0.00512,"133":0.00512,"134":0.00512,"135":0.00512,"136":0.00512,"137":0.00512,"138":0.03585,"139":0.03073,"140":0.53269,"141":2.63271,"142":0.05122,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 119 120 121 122 123 124 125 126 127 129 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 26.2","13.1":0.00512,"14.1":0.02049,"15.6":0.07683,"16.0":0.01537,"16.1":0.02561,"16.2":0.00512,"16.3":0.01024,"16.4":0.00512,"16.5":0.01024,"16.6":0.12293,"17.0":0.00512,"17.1":0.05122,"17.2":0.00512,"17.3":0.01024,"17.4":0.04098,"17.5":0.0461,"17.6":0.07171,"18.0":0.00512,"18.1":0.01537,"18.2":0.00512,"18.3":0.02561,"18.4":0.02561,"18.5-18.6":0.0922,"26.0":0.27147,"26.1":0.01024},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00096,"5.0-5.1":0,"6.0-6.1":0.00386,"7.0-7.1":0.00289,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00868,"10.0-10.2":0.00096,"10.3":0.01639,"11.0-11.2":0.24295,"11.3-11.4":0.00578,"12.0-12.1":0.00193,"12.2-12.5":0.04724,"13.0-13.1":0,"13.2":0.00482,"13.3":0.00193,"13.4-13.7":0.00771,"14.0-14.4":0.01639,"14.5-14.8":0.01735,"15.0-15.1":0.01639,"15.2-15.3":0.01253,"15.4":0.01446,"15.5":0.01639,"15.6-15.8":0.21403,"16.0":0.02892,"16.1":0.05399,"16.2":0.02796,"16.3":0.05013,"16.4":0.01253,"16.5":0.02217,"16.6-16.7":0.28633,"17.0":0.02025,"17.1":0.03085,"17.2":0.02217,"17.3":0.03278,"17.4":0.05785,"17.5":0.0993,"17.6-17.7":0.25066,"18.0":0.05688,"18.1":0.11762,"18.2":0.06363,"18.3":0.20439,"18.4":0.10509,"18.5-18.6":5.35841,"26.0":0.66233,"26.1":0.0241},P:{"4":0.1991,"21":0.01048,"22":0.01048,"23":0.04192,"24":0.02096,"25":0.02096,"26":0.04192,"27":0.07335,"28":3.10176,"29":0.23054,_:"20 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","5.0-5.4":0.05239,"6.2-6.4":0.01048,"7.2-7.4":0.13623,"19.0":0.02096},I:{"0":0.07308,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.34641,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01024,"11":0.00512,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.42935},Q:{_:"14.9"},O:{"0":0.0244},H:{"0":0},L:{"0":38.6066}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/HT.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/HT.js deleted file mode 100644 index 2c8b4442..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/HT.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.01085,"112":0.00651,"115":0.02169,"125":0.00217,"127":0.00217,"134":0.00217,"136":0.00217,"137":0.00217,"139":0.00217,"140":0.00434,"141":0.00434,"142":0.0347,"143":0.15617,"144":0.14749,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 123 124 126 128 129 130 131 132 133 135 138 145 146 147 3.5 3.6"},D:{"39":0.00217,"40":0.00217,"42":0.00217,"43":0.00217,"44":0.00217,"45":0.00217,"46":0.00217,"47":0.00217,"48":0.00217,"49":0.00217,"50":0.00217,"51":0.00217,"52":0.00217,"53":0.00217,"54":0.00217,"55":0.00217,"56":0.00434,"58":0.00651,"59":0.00651,"60":0.00217,"65":0.00217,"68":0.00434,"70":0.00434,"73":0.00217,"74":0.01301,"75":0.00868,"76":0.01301,"77":0.00217,"78":0.00217,"79":0.01085,"80":0.00651,"81":0.01085,"83":0.00434,"86":0.00217,"87":0.0282,"88":0.01518,"90":0.00651,"91":0.00434,"92":0.00651,"93":0.12363,"94":0.00868,"95":0.00217,"96":0.00217,"97":0.00217,"98":0.00217,"99":0.00434,"100":0.00434,"101":0.00434,"102":0.00868,"103":0.08893,"104":0.00651,"105":0.01518,"107":0.00217,"108":0.0629,"109":0.16918,"110":0.00651,"111":0.10411,"112":0.00217,"113":0.00217,"114":0.04121,"115":0.00217,"116":0.05206,"117":0.01735,"118":0.01301,"119":0.0282,"120":0.10628,"121":0.01301,"122":0.00868,"123":0.01518,"124":0.00434,"125":1.50529,"126":0.04989,"127":0.0282,"128":0.08676,"129":0.00434,"130":0.01085,"131":0.05856,"132":0.02169,"133":0.0282,"134":0.0347,"135":0.04338,"136":0.05206,"137":0.08025,"138":0.20172,"139":0.27763,"140":2.2883,"141":4.35318,"142":0.08242,"143":0.00217,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 41 57 61 62 63 64 66 67 69 71 72 84 85 89 106 144 145"},F:{"49":0.01301,"79":0.00217,"82":0.00217,"91":0.03037,"92":0.01518,"95":0.01301,"101":0.00434,"107":0.00217,"113":0.00217,"114":0.00217,"117":0.00217,"119":0.00434,"120":0.11062,"121":0.00434,"122":0.54008,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 102 103 104 105 106 108 109 110 111 112 115 116 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00651,"13":0.01085,"14":0.00217,"15":0.00651,"16":0.00651,"17":0.00868,"18":0.02169,"84":0.00434,"89":0.00434,"90":0.00217,"92":0.04555,"93":0.00217,"98":0.00217,"100":0.01301,"101":0.00217,"109":0.08242,"113":0.00434,"114":0.01518,"116":0.00217,"117":0.00217,"120":0.00434,"122":0.01085,"124":0.00217,"126":0.00434,"128":0.01735,"130":0.00217,"131":0.00651,"132":0.00217,"133":0.00434,"134":0.00434,"135":0.00868,"136":0.01301,"137":0.01301,"138":0.05423,"139":0.0629,"140":0.50538,"141":2.015,"142":0.02169,_:"79 80 81 83 85 86 87 88 91 94 95 96 97 99 102 103 104 105 106 107 108 110 111 112 115 118 119 121 123 125 127 129"},E:{"14":0.00217,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 15.2-15.3 16.0 16.2 16.4 16.5 17.0 17.2 26.2","5.1":0.00651,"11.1":0.00651,"13.1":0.06724,"14.1":0.03254,"15.1":0.00217,"15.4":0.00217,"15.5":0.00434,"15.6":0.2169,"16.1":0.00217,"16.3":0.00651,"16.6":0.08676,"17.1":0.00868,"17.3":0.00434,"17.4":0.00868,"17.5":0.01085,"17.6":0.08676,"18.0":0.00434,"18.1":0.00434,"18.2":0.00868,"18.3":0.00868,"18.4":0.00434,"18.5-18.6":0.04338,"26.0":0.29498,"26.1":0.08893},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00097,"5.0-5.1":0,"6.0-6.1":0.00389,"7.0-7.1":0.00292,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00876,"10.0-10.2":0.00097,"10.3":0.01655,"11.0-11.2":0.2453,"11.3-11.4":0.00584,"12.0-12.1":0.00195,"12.2-12.5":0.0477,"13.0-13.1":0,"13.2":0.00487,"13.3":0.00195,"13.4-13.7":0.00779,"14.0-14.4":0.01655,"14.5-14.8":0.01752,"15.0-15.1":0.01655,"15.2-15.3":0.01265,"15.4":0.0146,"15.5":0.01655,"15.6-15.8":0.21609,"16.0":0.0292,"16.1":0.05451,"16.2":0.02823,"16.3":0.05062,"16.4":0.01265,"16.5":0.02239,"16.6-16.7":0.2891,"17.0":0.02044,"17.1":0.03115,"17.2":0.02239,"17.3":0.0331,"17.4":0.0584,"17.5":0.10026,"17.6-17.7":0.25308,"18.0":0.05743,"18.1":0.11875,"18.2":0.06424,"18.3":0.20636,"18.4":0.1061,"18.5-18.6":5.41012,"26.0":0.66872,"26.1":0.02433},P:{"4":0.02055,"20":0.01028,"21":0.0411,"22":0.02055,"23":0.03083,"24":0.17469,"25":0.07193,"26":0.06165,"27":0.11303,"28":0.97618,"29":0.0822,"5.0-5.4":0.03083,"6.2-6.4":0.01028,"7.2-7.4":0.03083,_:"8.2 10.1 12.0 15.0 17.0","9.2":0.03083,"11.1-11.2":0.07193,"13.0":0.03083,"14.0":0.02055,"16.0":0.0822,"18.0":0.01028,"19.0":0.02055},I:{"0":0.21114,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00011},K:{"0":0.52468,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00434,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.24276},Q:{_:"14.9"},O:{"0":0.03916},H:{"0":0},L:{"0":71.20104}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/HU.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/HU.js deleted file mode 100644 index 9aa3a543..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/HU.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"48":0.00679,"52":0.01019,"61":0.0034,"66":0.0034,"78":0.01019,"107":0.01019,"108":0.00679,"115":0.45506,"125":0.01019,"127":0.0034,"128":0.01358,"133":0.0034,"134":0.00679,"135":0.0034,"136":0.02717,"137":0.01019,"138":0.00679,"139":0.00679,"140":0.06113,"141":0.01358,"142":0.04754,"143":1.355,"144":1.25652,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 60 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 129 130 131 132 145 146 147 3.5 3.6"},D:{"39":0.00679,"40":0.0034,"41":0.00679,"42":0.0034,"43":0.01019,"44":0.0034,"45":0.0034,"46":0.0034,"47":0.0034,"48":0.0034,"49":0.00679,"50":0.0034,"51":0.0034,"52":0.0034,"53":0.00679,"54":0.0034,"55":0.0034,"56":0.0034,"57":0.00679,"58":0.0034,"59":0.0034,"60":0.0034,"79":0.01019,"87":0.01019,"88":0.01698,"89":0.0034,"91":0.07811,"95":0.0034,"100":0.0034,"102":0.0034,"103":0.01019,"104":0.01358,"106":0.0034,"108":0.00679,"109":0.74372,"111":0.0034,"112":0.1664,"114":0.02377,"115":0.0034,"116":0.02038,"117":0.0034,"118":0.0034,"119":0.01019,"120":0.01019,"121":0.04075,"122":0.03396,"123":0.00679,"124":0.01019,"125":0.49921,"126":0.02377,"127":0.04754,"128":0.03396,"129":0.00679,"130":0.01698,"131":0.03736,"132":0.02377,"133":0.03056,"134":0.04075,"135":0.02717,"136":0.0883,"137":0.05773,"138":0.1732,"139":0.32602,"140":4.89703,"141":10.48345,"142":0.13244,"143":0.00679,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 90 92 93 94 96 97 98 99 101 105 107 110 113 144 145"},F:{"46":0.0034,"79":0.0034,"91":0.01019,"92":0.02038,"95":0.05094,"120":0.10867,"121":0.10188,"122":1.13766,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.0034,"109":0.02377,"114":0.0034,"131":0.0034,"133":0.0034,"134":0.01019,"135":0.0034,"136":0.0034,"137":0.0034,"138":0.02717,"139":0.02377,"140":0.46865,"141":2.28211,"142":0.00679,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 16.0 26.2","12.1":0.0034,"13.1":0.00679,"14.1":0.0034,"15.4":0.0034,"15.5":0.00679,"15.6":0.03736,"16.1":0.0034,"16.2":0.00679,"16.3":0.00679,"16.4":0.0034,"16.5":0.0034,"16.6":0.04754,"17.0":0.0034,"17.1":0.06113,"17.2":0.0034,"17.3":0.0034,"17.4":0.00679,"17.5":0.01019,"17.6":0.06113,"18.0":0.00679,"18.1":0.00679,"18.2":0.0034,"18.3":0.02717,"18.4":0.01019,"18.5-18.6":0.05434,"26.0":0.2581,"26.1":0.01019},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00085,"5.0-5.1":0,"6.0-6.1":0.00338,"7.0-7.1":0.00254,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00761,"10.0-10.2":0.00085,"10.3":0.01438,"11.0-11.2":0.21322,"11.3-11.4":0.00508,"12.0-12.1":0.00169,"12.2-12.5":0.04146,"13.0-13.1":0,"13.2":0.00423,"13.3":0.00169,"13.4-13.7":0.00677,"14.0-14.4":0.01438,"14.5-14.8":0.01523,"15.0-15.1":0.01438,"15.2-15.3":0.011,"15.4":0.01269,"15.5":0.01438,"15.6-15.8":0.18783,"16.0":0.02538,"16.1":0.04738,"16.2":0.02454,"16.3":0.044,"16.4":0.011,"16.5":0.01946,"16.6-16.7":0.25129,"17.0":0.01777,"17.1":0.02708,"17.2":0.01946,"17.3":0.02877,"17.4":0.05077,"17.5":0.08715,"17.6-17.7":0.21999,"18.0":0.04992,"18.1":0.10322,"18.2":0.05584,"18.3":0.17937,"18.4":0.09222,"18.5-18.6":4.70263,"26.0":0.58127,"26.1":0.02115},P:{"4":0.01042,"20":0.01042,"21":0.02083,"22":0.02083,"23":0.03125,"24":0.02083,"25":0.03125,"26":0.05209,"27":0.08334,"28":2.5939,"29":0.19793,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.01042,"13.0":0.01042,"19.0":0.01042},I:{"0":0.05936,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.27081,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0034,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.24439},Q:{_:"14.9"},O:{"0":0.00661},H:{"0":0},L:{"0":59.51251}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ID.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ID.js deleted file mode 100644 index c337b4ae..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ID.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"109":0.00483,"113":0.01934,"114":0.00483,"115":0.12085,"125":0.00483,"127":0.00967,"128":0.00483,"132":0.00483,"133":0.00483,"134":0.00483,"135":0.00483,"136":0.00967,"137":0.00967,"138":0.02417,"139":0.0145,"140":0.03384,"141":0.01934,"142":0.05801,"143":1.1795,"144":1.02481,"145":0.00967,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 116 117 118 119 120 121 122 123 124 126 129 130 131 146 147 3.5 3.6"},D:{"39":0.00483,"40":0.00483,"41":0.00483,"42":0.00483,"43":0.00483,"44":0.00483,"45":0.00483,"46":0.00483,"47":0.00483,"48":0.00483,"49":0.00483,"50":0.00483,"51":0.00483,"52":0.00967,"53":0.00483,"54":0.00483,"55":0.00483,"56":0.00483,"57":0.00483,"58":0.00483,"59":0.00483,"60":0.00483,"79":0.00483,"80":0.00483,"85":0.01934,"87":0.00483,"89":0.00483,"92":0.00483,"98":0.00483,"103":0.01934,"104":0.029,"105":0.00483,"106":0.00967,"107":0.00967,"108":0.00483,"109":0.67676,"110":0.00483,"111":0.02417,"112":0.00483,"114":0.0145,"115":0.00483,"116":0.06768,"117":0.00967,"118":0.0145,"119":0.00967,"120":0.029,"121":0.06284,"122":0.06284,"123":0.02417,"124":0.03384,"125":1.68707,"126":0.06768,"127":0.029,"128":0.09668,"129":0.029,"130":0.029,"131":0.11602,"132":0.06768,"133":0.10635,"134":0.05801,"135":0.09185,"136":0.07734,"137":0.10635,"138":0.37705,"139":0.39639,"140":8.76888,"141":21.82551,"142":0.19819,"143":0.00483,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 81 83 84 86 88 90 91 93 94 95 96 97 99 100 101 102 113 144 145"},F:{"89":0.00483,"90":0.00483,"91":0.00967,"92":0.0145,"95":0.00967,"120":0.03867,"121":0.0145,"122":0.26587,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00483,"92":0.00483,"109":0.00967,"114":0.0145,"122":0.00483,"127":0.00483,"131":0.00483,"133":0.00483,"134":0.00483,"135":0.00483,"136":0.00483,"137":0.00483,"138":0.01934,"139":0.04834,"140":0.74927,"141":4.17658,"142":0.00967,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 126 128 129 130 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 16.0 26.2","5.1":0.00967,"13.1":0.00483,"14.1":0.00967,"15.1":0.00483,"15.4":0.00483,"15.5":0.00483,"15.6":0.04834,"16.1":0.0145,"16.2":0.00967,"16.3":0.00967,"16.4":0.00483,"16.5":0.01934,"16.6":0.06768,"17.0":0.00967,"17.1":0.0145,"17.2":0.01934,"17.3":0.0145,"17.4":0.02417,"17.5":0.03867,"17.6":0.10635,"18.0":0.02417,"18.1":0.03384,"18.2":0.02417,"18.3":0.05801,"18.4":0.029,"18.5-18.6":0.14502,"26.0":0.2272,"26.1":0.00483},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0006,"5.0-5.1":0,"6.0-6.1":0.00238,"7.0-7.1":0.00179,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00537,"10.0-10.2":0.0006,"10.3":0.01013,"11.0-11.2":0.15023,"11.3-11.4":0.00358,"12.0-12.1":0.00119,"12.2-12.5":0.02921,"13.0-13.1":0,"13.2":0.00298,"13.3":0.00119,"13.4-13.7":0.00477,"14.0-14.4":0.01013,"14.5-14.8":0.01073,"15.0-15.1":0.01013,"15.2-15.3":0.00775,"15.4":0.00894,"15.5":0.01013,"15.6-15.8":0.13235,"16.0":0.01788,"16.1":0.03338,"16.2":0.01729,"16.3":0.031,"16.4":0.00775,"16.5":0.01371,"16.6-16.7":0.17706,"17.0":0.01252,"17.1":0.01908,"17.2":0.01371,"17.3":0.02027,"17.4":0.03577,"17.5":0.0614,"17.6-17.7":0.155,"18.0":0.03517,"18.1":0.07273,"18.2":0.03935,"18.3":0.12639,"18.4":0.06498,"18.5-18.6":3.31344,"26.0":0.40956,"26.1":0.0149},P:{"20":0.01038,"21":0.01038,"22":0.01038,"23":0.01038,"24":0.01038,"25":0.02076,"26":0.02076,"27":0.0519,"28":0.92377,"29":0.0519,_:"4 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01038},I:{"0":0.04643,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.52177,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00499,"11":0.1497,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.06716},Q:{_:"14.9"},O:{"0":0.2273},H:{"0":0},L:{"0":46.50864}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IE.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IE.js deleted file mode 100644 index 2fb4bdff..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IE.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"77":0.00426,"78":0.00853,"109":0.00426,"115":0.03411,"128":0.00853,"132":0.01279,"136":0.00426,"139":0.00426,"140":0.11086,"141":0.00853,"142":0.02132,"143":0.61828,"144":0.47757,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 133 134 135 137 138 145 146 147 3.5 3.6"},D:{"41":0.00426,"43":0.00426,"47":0.00426,"49":0.00426,"79":0.02132,"83":0.00426,"87":0.01279,"88":0.01279,"91":0.00426,"93":0.00426,"94":0.00426,"102":0.00426,"103":0.05117,"104":0.24305,"108":0.01279,"109":0.17056,"111":0.00426,"112":0.28569,"113":0.00853,"114":0.01706,"115":0.00853,"116":0.05543,"118":0.00426,"119":0.00853,"120":0.44772,"121":0.1066,"122":0.0597,"123":0.00853,"124":0.02558,"125":3.50501,"126":0.07249,"127":0.01279,"128":0.05117,"129":0.01279,"130":10.7197,"131":0.05543,"132":0.04264,"133":0.05117,"134":0.07249,"135":0.08954,"136":0.0469,"137":0.14924,"138":0.55858,"139":0.57138,"140":3.48795,"141":7.68799,"142":0.08528,"143":0.00426,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 44 45 46 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 84 85 86 89 90 92 95 96 97 98 99 100 101 105 106 107 110 117 144 145"},F:{"46":0.00426,"91":0.00853,"92":0.02985,"95":0.00426,"117":0.00426,"120":0.03411,"121":0.0469,"122":0.41787,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.00426,"121":0.00853,"125":0.00426,"131":0.00426,"132":0.00426,"133":0.00426,"134":0.03411,"135":0.00426,"136":0.00853,"137":0.00426,"138":0.02132,"139":0.03411,"140":0.95087,"141":3.86745,"142":0.00426,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 122 123 124 126 127 128 129 130"},E:{"8":0.00426,"14":0.01706,_:"0 4 5 6 7 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 26.2","12.1":0.00426,"13.1":0.01279,"14.1":0.03411,"15.1":0.00426,"15.2-15.3":0.00426,"15.4":0.00853,"15.5":0.00853,"15.6":0.12366,"16.0":0.00853,"16.1":0.00853,"16.2":0.01706,"16.3":0.03411,"16.4":0.00426,"16.5":0.01279,"16.6":0.17482,"17.0":0.00426,"17.1":0.1066,"17.2":0.00853,"17.3":0.01279,"17.4":0.02985,"17.5":0.04264,"17.6":0.13218,"18.0":0.01279,"18.1":0.03838,"18.2":0.01706,"18.3":0.0597,"18.4":0.04264,"18.5-18.6":0.23878,"26.0":0.26863,"26.1":0.00853},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00224,"5.0-5.1":0,"6.0-6.1":0.00897,"7.0-7.1":0.00673,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02019,"10.0-10.2":0.00224,"10.3":0.03814,"11.0-11.2":0.56532,"11.3-11.4":0.01346,"12.0-12.1":0.00449,"12.2-12.5":0.10992,"13.0-13.1":0,"13.2":0.01122,"13.3":0.00449,"13.4-13.7":0.01795,"14.0-14.4":0.03814,"14.5-14.8":0.04038,"15.0-15.1":0.03814,"15.2-15.3":0.02916,"15.4":0.03365,"15.5":0.03814,"15.6-15.8":0.49802,"16.0":0.0673,"16.1":0.12563,"16.2":0.06506,"16.3":0.11665,"16.4":0.02916,"16.5":0.0516,"16.6-16.7":0.66627,"17.0":0.04711,"17.1":0.07179,"17.2":0.0516,"17.3":0.07627,"17.4":0.1346,"17.5":0.23107,"17.6-17.7":0.58327,"18.0":0.13236,"18.1":0.27369,"18.2":0.14806,"18.3":0.47559,"18.4":0.24453,"18.5-18.6":12.46854,"26.0":1.54118,"26.1":0.05608},P:{"20":0.01044,"21":0.02088,"22":0.02088,"23":0.02088,"24":0.02088,"25":0.02088,"26":0.04176,"27":0.06264,"28":2.96502,"29":0.21924,_:"4 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.01044,"19.0":0.01044},I:{"0":0.01718,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.0803,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.29848,"11":0.02558,_:"6 7 8 10 5.5"},S:{"2.5":0.00574,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.29827},Q:{_:"14.9"},O:{"0":0.00574},H:{"0":0},L:{"0":33.89261}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IL.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IL.js deleted file mode 100644 index 90ec41f7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IL.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"24":0.00376,"25":0.00752,"26":0.02255,"27":0.00376,"36":0.00376,"51":0.00376,"52":0.00376,"115":0.07892,"119":0.00376,"125":0.00376,"128":0.00376,"133":0.00376,"134":0.00376,"136":0.00376,"137":0.00376,"138":0.00376,"139":0.01503,"140":0.01879,"141":0.28937,"142":0.02631,"143":0.47351,"144":0.47351,"145":0.00752,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 120 121 122 123 124 126 127 129 130 131 132 135 146 147 3.5 3.6"},D:{"31":0.03006,"32":0.00752,"38":0.01127,"40":0.00376,"41":0.00376,"45":0.00376,"49":0.00376,"50":0.00376,"54":0.00376,"55":0.00376,"56":0.00752,"57":0.00376,"65":0.00376,"69":0.00376,"74":0.00376,"79":0.03006,"81":0.00376,"83":0.00376,"86":0.00376,"87":0.02631,"90":0.00376,"91":0.03382,"100":0.00376,"101":0.00376,"102":0.00752,"103":0.01127,"104":0.00376,"105":0.00376,"106":0.00376,"107":0.00376,"108":0.03758,"109":0.48854,"110":0.00376,"111":0.00376,"112":0.39083,"113":0.00376,"114":0.02255,"115":0.01127,"116":0.17663,"117":0.00376,"119":0.03382,"120":0.09019,"121":0.00752,"122":0.04134,"123":0.01503,"124":0.01127,"125":0.07892,"126":0.05637,"127":0.01503,"128":0.06013,"129":0.01503,"130":0.04134,"131":0.09395,"132":0.03382,"133":0.06389,"134":0.87561,"135":0.20669,"136":0.06764,"137":0.07892,"138":0.21796,"139":0.45848,"140":6.1293,"141":14.29543,"142":0.13905,"143":0.00376,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 33 34 35 36 37 39 42 43 44 46 47 48 51 52 53 58 59 60 61 62 63 64 66 67 68 70 71 72 73 75 76 77 78 80 84 85 88 89 92 93 94 95 96 97 98 99 118 144 145"},F:{"46":0.00376,"91":0.01503,"92":0.03382,"95":0.01879,"120":0.08268,"121":0.0714,"122":0.76287,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00376,"104":0.00376,"109":0.02255,"114":0.01503,"115":0.00376,"122":0.00376,"126":0.00376,"128":0.00376,"129":0.00376,"130":0.00376,"131":0.00752,"132":0.00376,"133":0.01127,"134":0.01127,"135":0.00752,"136":0.00752,"137":0.01127,"138":0.01879,"139":0.02631,"140":0.45096,"141":2.0669,"142":0.00376,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 105 106 107 108 110 111 112 113 116 117 118 119 120 121 123 124 125 127"},E:{"7":0.00752,"8":0.1879,"14":0.00376,_:"0 4 5 6 9 10 11 12 13 15 3.1 3.2 7.1 9.1 10.1 11.1 12.1 15.1 16.4 17.0 26.2","5.1":0.00376,"6.1":0.00752,"13.1":0.00376,"14.1":0.01879,"15.2-15.3":0.00752,"15.4":0.00376,"15.5":0.00752,"15.6":0.0451,"16.0":0.00376,"16.1":0.00752,"16.2":0.00376,"16.3":0.01127,"16.5":0.00752,"16.6":0.09395,"17.1":0.07516,"17.2":0.00376,"17.3":0.00376,"17.4":0.00376,"17.5":0.00752,"17.6":0.05637,"18.0":0.00376,"18.1":0.04134,"18.2":0.00376,"18.3":0.01503,"18.4":0.00752,"18.5-18.6":0.05637,"26.0":0.1879,"26.1":0.01127},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00141,"5.0-5.1":0,"6.0-6.1":0.00563,"7.0-7.1":0.00422,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01267,"10.0-10.2":0.00141,"10.3":0.02393,"11.0-11.2":0.35476,"11.3-11.4":0.00845,"12.0-12.1":0.00282,"12.2-12.5":0.06898,"13.0-13.1":0,"13.2":0.00704,"13.3":0.00282,"13.4-13.7":0.01126,"14.0-14.4":0.02393,"14.5-14.8":0.02534,"15.0-15.1":0.02393,"15.2-15.3":0.0183,"15.4":0.02112,"15.5":0.02393,"15.6-15.8":0.31253,"16.0":0.04223,"16.1":0.07884,"16.2":0.04083,"16.3":0.07321,"16.4":0.0183,"16.5":0.03238,"16.6-16.7":0.41812,"17.0":0.02956,"17.1":0.04505,"17.2":0.03238,"17.3":0.04787,"17.4":0.08447,"17.5":0.145,"17.6-17.7":0.36603,"18.0":0.08306,"18.1":0.17175,"18.2":0.09291,"18.3":0.29845,"18.4":0.15345,"18.5-18.6":7.82453,"26.0":0.96716,"26.1":0.03519},P:{"4":0.03102,"20":0.01034,"21":0.03102,"22":0.04136,"23":0.04136,"24":0.04136,"25":0.07238,"26":0.08272,"27":0.16544,"28":6.30738,"29":0.40326,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 15.0 16.0 18.0","7.2-7.4":0.01034,"11.1-11.2":0.01034,"14.0":0.01034,"17.0":0.01034,"19.0":0.01034},I:{"0":0.00623,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.24348,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.00376,"10":0.00376,"11":0.01503,_:"6 7 8 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.26845},Q:{_:"14.9"},O:{"0":0.01873},H:{"0":0},L:{"0":45.64911}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IM.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IM.js deleted file mode 100644 index b2c88fdd..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IM.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"113":0.00442,"115":0.14573,"125":0.00442,"128":0.00442,"136":0.00883,"137":0.00442,"139":0.00442,"140":0.01766,"141":0.00442,"142":0.03533,"143":0.89645,"144":0.67565,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 126 127 129 130 131 132 133 134 135 138 145 146 147 3.5 3.6"},D:{"39":0.00442,"40":0.00442,"45":0.00442,"46":0.00442,"47":0.00442,"49":0.00442,"50":0.00442,"51":0.00442,"53":0.00442,"54":0.00442,"60":0.00442,"76":0.00883,"79":0.00442,"87":0.00442,"93":0.00442,"99":0.00442,"103":0.01325,"108":0.01325,"109":0.40186,"112":0.00883,"114":0.07066,"116":0.03974,"119":0.0265,"120":0.0265,"121":0.01325,"122":0.03091,"124":0.03974,"125":0.69331,"126":0.06182,"127":0.0265,"128":0.0265,"129":0.00442,"130":0.14131,"131":0.27379,"132":0.00883,"133":0.0265,"134":0.20755,"135":0.03533,"136":0.01325,"137":0.05741,"138":0.4416,"139":0.35328,"140":5.80262,"141":10.86336,"142":0.18547,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 41 42 43 44 48 52 55 56 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 80 81 83 84 85 86 88 89 90 91 92 94 95 96 97 98 100 101 102 104 105 106 107 110 111 113 115 117 118 123 143 144 145"},F:{"46":0.00442,"91":0.01325,"120":0.05741,"121":0.03091,"122":0.70214,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"107":0.0839,"109":0.00883,"131":0.00442,"133":0.00442,"134":0.0265,"135":0.00442,"136":0.01766,"137":0.00442,"138":0.00442,"139":0.0265,"140":1.47936,"141":6.69466,"142":0.00442,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 132"},E:{"14":0.00442,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 26.2","12.1":0.01766,"13.1":0.01325,"14.1":0.08832,"15.4":0.00442,"15.5":0.0265,"15.6":0.41952,"16.0":0.01766,"16.1":0.00883,"16.2":0.03091,"16.3":0.13248,"16.4":0.00442,"16.5":0.04416,"16.6":0.32237,"17.0":0.00442,"17.1":0.6359,"17.2":0.00442,"17.3":0.01766,"17.4":0.01325,"17.5":0.20314,"17.6":0.4151,"18.0":0.18106,"18.1":0.18106,"18.2":0.01325,"18.3":0.0839,"18.4":0.04858,"18.5-18.6":0.24288,"26.0":0.60499,"26.1":0.26938},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00299,"5.0-5.1":0,"6.0-6.1":0.01194,"7.0-7.1":0.00896,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02687,"10.0-10.2":0.00299,"10.3":0.05076,"11.0-11.2":0.75241,"11.3-11.4":0.01791,"12.0-12.1":0.00597,"12.2-12.5":0.1463,"13.0-13.1":0,"13.2":0.01493,"13.3":0.00597,"13.4-13.7":0.02389,"14.0-14.4":0.05076,"14.5-14.8":0.05374,"15.0-15.1":0.05076,"15.2-15.3":0.03881,"15.4":0.04479,"15.5":0.05076,"15.6-15.8":0.66284,"16.0":0.08957,"16.1":0.1672,"16.2":0.08659,"16.3":0.15526,"16.4":0.03881,"16.5":0.06867,"16.6-16.7":0.88677,"17.0":0.0627,"17.1":0.09554,"17.2":0.06867,"17.3":0.10152,"17.4":0.17915,"17.5":0.30753,"17.6-17.7":0.7763,"18.0":0.17616,"18.1":0.36426,"18.2":0.19706,"18.3":0.63298,"18.4":0.32545,"18.5-18.6":16.59488,"26.0":2.05122,"26.1":0.07464},P:{"4":0.01113,"20":0.01113,"21":0.01113,"22":0.01113,"24":0.01113,"26":0.04451,"27":0.04451,"28":4.15024,"29":0.18915,_:"23 25 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.01113,"19.0":0.01113},I:{"0":0.01115,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.08934,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.47464},Q:{_:"14.9"},O:{"0":0.01675},H:{"0":0},L:{"0":21.63512}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IN.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IN.js deleted file mode 100644 index 06f8ea85..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IN.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"42":0.00468,"52":0.00234,"113":0.00234,"115":0.07719,"125":0.00234,"127":0.00234,"128":0.00234,"136":0.00702,"138":0.00234,"139":0.00234,"140":0.0117,"141":0.00234,"142":0.00702,"143":0.17309,"144":0.14034,"145":0.00234,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 126 129 130 131 132 133 134 135 137 146 147 3.5 3.6"},D:{"39":0.00234,"40":0.00234,"41":0.00234,"42":0.00234,"43":0.00234,"44":0.00234,"45":0.00234,"46":0.00234,"47":0.00234,"48":0.00234,"49":0.00234,"50":0.00234,"51":0.00234,"52":0.00468,"53":0.00234,"54":0.00234,"55":0.00234,"56":0.00234,"57":0.00234,"58":0.00234,"59":0.00234,"60":0.00234,"66":0.00468,"69":0.00234,"71":0.00234,"73":0.00234,"74":0.00234,"76":0.00234,"79":0.00234,"80":0.00234,"81":0.00234,"83":0.00234,"85":0.00234,"86":0.00234,"87":0.00936,"88":0.00234,"91":0.03041,"93":0.00234,"94":0.00234,"95":0.00234,"101":0.00234,"102":0.00234,"103":0.00936,"104":0.00936,"105":0.00234,"106":0.00234,"108":0.00468,"109":0.65024,"111":0.00234,"112":0.00234,"114":0.00702,"115":0.00234,"116":0.00702,"117":0.00234,"118":0.00234,"119":0.02573,"120":0.0117,"121":0.00234,"122":0.00936,"123":0.00468,"124":0.00702,"125":1.33791,"126":0.02573,"127":0.01637,"128":0.01403,"129":0.00936,"130":0.05848,"131":0.06081,"132":0.01871,"133":0.02339,"134":0.02339,"135":0.02807,"136":0.03742,"137":0.03976,"138":0.13098,"139":0.15671,"140":2.37876,"141":5.21831,"142":0.06783,"143":0.00234,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 68 70 72 75 77 78 84 89 90 92 96 97 98 99 100 107 110 113 144 145"},F:{"85":0.00234,"90":0.00468,"91":0.07251,"92":0.11461,"93":0.00234,"95":0.00702,"120":0.01637,"121":0.00468,"122":0.10526,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00234,"92":0.00468,"109":0.00468,"114":0.01403,"122":0.00234,"131":0.00234,"133":0.00234,"134":0.00234,"135":0.00234,"136":0.00234,"137":0.00234,"138":0.00702,"139":0.00936,"140":0.12397,"141":0.60814,"142":0.00234,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 126 127 128 129 130 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.2 17.3 26.2","9.1":0.00234,"15.6":0.00702,"16.6":0.00702,"17.1":0.00234,"17.4":0.00234,"17.5":0.00234,"17.6":0.00936,"18.0":0.00234,"18.1":0.00234,"18.2":0.00234,"18.3":0.00702,"18.4":0.00234,"18.5-18.6":0.01637,"26.0":0.06081,"26.1":0.00234},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00018,"5.0-5.1":0,"6.0-6.1":0.00072,"7.0-7.1":0.00054,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00163,"10.0-10.2":0.00018,"10.3":0.00307,"11.0-11.2":0.04556,"11.3-11.4":0.00108,"12.0-12.1":0.00036,"12.2-12.5":0.00886,"13.0-13.1":0,"13.2":0.0009,"13.3":0.00036,"13.4-13.7":0.00145,"14.0-14.4":0.00307,"14.5-14.8":0.00325,"15.0-15.1":0.00307,"15.2-15.3":0.00235,"15.4":0.00271,"15.5":0.00307,"15.6-15.8":0.04014,"16.0":0.00542,"16.1":0.01012,"16.2":0.00524,"16.3":0.0094,"16.4":0.00235,"16.5":0.00416,"16.6-16.7":0.0537,"17.0":0.0038,"17.1":0.00579,"17.2":0.00416,"17.3":0.00615,"17.4":0.01085,"17.5":0.01862,"17.6-17.7":0.04701,"18.0":0.01067,"18.1":0.02206,"18.2":0.01193,"18.3":0.03833,"18.4":0.01971,"18.5-18.6":1.00488,"26.0":0.12421,"26.1":0.00452},P:{"21":0.01056,"22":0.01056,"23":0.01056,"24":0.02113,"25":0.01056,"26":0.02113,"27":0.05281,"28":0.50702,"29":0.03169,_:"4 20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.02113},I:{"0":0.0153,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":1.87823,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0117,_:"6 7 8 9 10 5.5"},S:{"2.5":0.09193,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.11492},Q:{_:"14.9"},O:{"0":1.09552},H:{"0":0.06},L:{"0":81.45311}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IQ.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IQ.js deleted file mode 100644 index 205036dc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IQ.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"72":0.00255,"115":0.03318,"140":0.00255,"142":0.00255,"143":0.04338,"144":0.03573,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 141 145 146 147 3.5 3.6"},D:{"11":0.00766,"38":0.00255,"43":0.0051,"47":0.00255,"55":0.00255,"56":0.0051,"58":0.00255,"65":0.0051,"66":0.0051,"68":0.00255,"69":0.0051,"70":0.00255,"71":0.00255,"72":0.00255,"73":0.01786,"74":0.0051,"75":0.00766,"76":0.00255,"79":0.03062,"81":0.0051,"83":0.05104,"85":0.00255,"86":0.00255,"87":0.04338,"88":0.00255,"89":0.00255,"90":0.00255,"91":0.02297,"92":0.00255,"93":0.0051,"94":0.00766,"95":0.01021,"96":0.00255,"97":0.00255,"98":0.05359,"99":0.0051,"100":0.00255,"101":0.0051,"102":0.01021,"103":0.02807,"104":0.0051,"105":0.00255,"106":0.00255,"107":0.00255,"108":0.01531,"109":0.42108,"110":0.01786,"111":0.01021,"112":1.42146,"113":0.0051,"114":0.03318,"116":0.00766,"118":0.00255,"119":0.02297,"120":0.01276,"121":0.00255,"122":0.0051,"123":0.00766,"124":0.0051,"125":1.06674,"126":0.16588,"127":0.01276,"128":0.01021,"129":0.00255,"130":0.00255,"131":0.02807,"132":0.00766,"133":0.00766,"134":0.14802,"135":0.01276,"136":0.01276,"137":0.04083,"138":0.06635,"139":0.04338,"140":0.89065,"141":2.70767,"142":0.03573,"143":0.00255,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 44 45 46 48 49 50 51 52 53 54 57 59 60 61 62 63 64 67 77 78 80 84 115 117 144 145"},F:{"46":0.00255,"79":0.00255,"91":0.01531,"92":0.03828,"95":0.00766,"120":0.01021,"121":0.0051,"122":0.09698,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.0051,"109":0.01276,"114":0.1327,"134":0.01786,"137":0.00255,"138":0.00255,"139":0.00255,"140":0.04594,"141":0.28327,"142":0.00255,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 135 136"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 16.0 16.5 17.0 17.2 17.3 26.2","5.1":0.0051,"13.1":0.00255,"14.1":0.00255,"15.5":0.0051,"15.6":0.01276,"16.1":0.0051,"16.2":0.01021,"16.3":0.01021,"16.4":0.00255,"16.6":0.02297,"17.1":0.01786,"17.4":0.00766,"17.5":0.01531,"17.6":0.02042,"18.0":0.00255,"18.1":0.00766,"18.2":0.00255,"18.3":0.01786,"18.4":0.00766,"18.5-18.6":0.05614,"26.0":0.09442,"26.1":0.00255},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00117,"5.0-5.1":0,"6.0-6.1":0.00469,"7.0-7.1":0.00352,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01056,"10.0-10.2":0.00117,"10.3":0.01994,"11.0-11.2":0.29561,"11.3-11.4":0.00704,"12.0-12.1":0.00235,"12.2-12.5":0.05748,"13.0-13.1":0,"13.2":0.00587,"13.3":0.00235,"13.4-13.7":0.00938,"14.0-14.4":0.01994,"14.5-14.8":0.02112,"15.0-15.1":0.01994,"15.2-15.3":0.01525,"15.4":0.0176,"15.5":0.01994,"15.6-15.8":0.26042,"16.0":0.03519,"16.1":0.06569,"16.2":0.03402,"16.3":0.061,"16.4":0.01525,"16.5":0.02698,"16.6-16.7":0.3484,"17.0":0.02463,"17.1":0.03754,"17.2":0.02698,"17.3":0.03988,"17.4":0.07038,"17.5":0.12083,"17.6-17.7":0.305,"18.0":0.06921,"18.1":0.14311,"18.2":0.07742,"18.3":0.24869,"18.4":0.12786,"18.5-18.6":6.51987,"26.0":0.80589,"26.1":0.02933},P:{"4":0.04079,"20":0.0102,"21":0.04079,"22":0.04079,"23":0.06118,"24":0.04079,"25":0.10197,"26":0.23452,"27":0.12236,"28":2.23307,"29":0.19374,_:"5.0-5.4 6.2-6.4 9.2 10.1 12.0","7.2-7.4":0.12236,"8.2":0.0102,"11.1-11.2":0.03059,"13.0":0.02039,"14.0":0.02039,"15.0":0.0102,"16.0":0.02039,"17.0":0.04079,"18.0":0.0102,"19.0":0.02039},I:{"0":0.02231,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.61818,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00255,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.08938},Q:{_:"14.9"},O:{"0":0.14151},H:{"0":0},L:{"0":74.62366}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IR.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IR.js deleted file mode 100644 index 14b4b714..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IR.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"4":0.00328,"43":0.00328,"47":0.00328,"50":0.00328,"52":0.01312,"56":0.00328,"72":0.00656,"94":0.00328,"95":0.00328,"98":0.00328,"100":0.00328,"102":0.00328,"106":0.00328,"109":0.00328,"112":0.00328,"113":0.00328,"114":0.00328,"115":1.12176,"127":0.0328,"128":0.0164,"129":0.00328,"130":0.00328,"131":0.00328,"132":0.00328,"133":0.00656,"134":0.00656,"135":0.00656,"136":0.01312,"137":0.00984,"138":0.01312,"139":0.01312,"140":0.09184,"141":0.02296,"142":0.0656,"143":1.2628,"144":1.11848,"145":0.00328,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 48 49 51 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 96 97 99 101 103 104 105 107 108 110 111 116 117 118 119 120 121 122 123 124 125 126 146 147 3.5 3.6"},D:{"49":0.00328,"63":0.00328,"68":0.00328,"69":0.00328,"70":0.00328,"71":0.01312,"72":0.00328,"73":0.00328,"74":0.00328,"75":0.00328,"76":0.00328,"77":0.00328,"78":0.00984,"79":0.01312,"80":0.01312,"81":0.00656,"83":0.01312,"84":0.00984,"85":0.00656,"86":0.02296,"87":0.02296,"88":0.00656,"89":0.00984,"90":0.00656,"91":0.00656,"92":0.0164,"93":0.00328,"94":0.00656,"95":0.00656,"96":0.00984,"97":0.00656,"98":0.00984,"99":0.00656,"100":0.00656,"101":0.00656,"102":0.00656,"103":0.01968,"104":0.02296,"105":0.00984,"106":0.01312,"107":0.02952,"108":0.02952,"109":2.95528,"110":0.00656,"111":0.01312,"112":0.082,"113":0.00656,"114":0.01968,"115":0.00984,"116":0.0164,"117":0.01312,"118":0.0164,"119":0.02296,"120":0.0328,"121":0.02296,"122":0.03608,"123":0.04264,"124":0.02296,"125":0.07216,"126":0.05248,"127":0.03608,"128":0.02952,"129":0.0328,"130":0.05248,"131":0.15416,"132":0.05904,"133":0.082,"134":0.08856,"135":0.12792,"136":0.17712,"137":0.30832,"138":0.46576,"139":0.52152,"140":4.31976,"141":8.7248,"142":0.10496,"143":0.00328,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 64 65 66 67 144 145"},F:{"79":0.00984,"91":0.00656,"92":0.00656,"95":0.04592,"101":0.00328,"114":0.00328,"119":0.00328,"120":0.03608,"121":0.00984,"122":0.22632,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00328,"13":0.00328,"14":0.00328,"16":0.00328,"17":0.00328,"18":0.01312,"84":0.00328,"88":0.00328,"89":0.00328,"90":0.00328,"92":0.06232,"100":0.00656,"109":0.1148,"114":0.00656,"117":0.00328,"122":0.01312,"127":0.00328,"128":0.00328,"129":0.00328,"131":0.00656,"132":0.00328,"133":0.00984,"134":0.00656,"135":0.00656,"136":0.00656,"137":0.00984,"138":0.0164,"139":0.02624,"140":0.164,"141":0.7872,_:"15 79 80 81 83 85 86 87 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 118 119 120 121 123 124 125 126 130 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.2 17.3 17.4 26.1 26.2","13.1":0.00328,"15.6":0.00656,"16.6":0.00984,"17.1":0.00328,"17.5":0.00328,"17.6":0.00656,"18.0":0.00328,"18.1":0.00328,"18.2":0.00328,"18.3":0.00328,"18.4":0.00328,"18.5-18.6":0.00656,"26.0":0.0328},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00061,"5.0-5.1":0,"6.0-6.1":0.00242,"7.0-7.1":0.00182,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00546,"10.0-10.2":0.00061,"10.3":0.0103,"11.0-11.2":0.15275,"11.3-11.4":0.00364,"12.0-12.1":0.00121,"12.2-12.5":0.0297,"13.0-13.1":0,"13.2":0.00303,"13.3":0.00121,"13.4-13.7":0.00485,"14.0-14.4":0.0103,"14.5-14.8":0.01091,"15.0-15.1":0.0103,"15.2-15.3":0.00788,"15.4":0.00909,"15.5":0.0103,"15.6-15.8":0.13456,"16.0":0.01818,"16.1":0.03394,"16.2":0.01758,"16.3":0.03152,"16.4":0.00788,"16.5":0.01394,"16.6-16.7":0.18002,"17.0":0.01273,"17.1":0.0194,"17.2":0.01394,"17.3":0.02061,"17.4":0.03637,"17.5":0.06243,"17.6-17.7":0.1576,"18.0":0.03576,"18.1":0.07395,"18.2":0.04001,"18.3":0.1285,"18.4":0.06607,"18.5-18.6":3.36895,"26.0":0.41642,"26.1":0.01515},P:{"4":0.05037,"20":0.04029,"21":0.07051,"22":0.13095,"23":0.16117,"24":0.18132,"25":0.24176,"26":0.26191,"27":0.43316,"28":2.85077,"29":0.09066,"5.0-5.4":0.01007,"6.2-6.4":0.02015,"7.2-7.4":0.14103,"8.2":0.01007,"9.2":0.02015,_:"10.1","11.1-11.2":0.05037,"12.0":0.01007,"13.0":0.06044,"14.0":0.06044,"15.0":0.02015,"16.0":0.05037,"17.0":0.07051,"18.0":0.04029,"19.0":0.05037},I:{"0":0.00671,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.2724,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00328,"11":3.08976,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.94752},Q:{_:"14.9"},O:{"0":0.02688},H:{"0":0.03},L:{"0":59.37976}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IS.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IS.js deleted file mode 100644 index 3407ab7b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IS.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"48":0.09295,"60":0.00664,"78":0.01992,"113":0.00664,"115":0.04647,"119":0.00664,"128":0.5112,"136":0.00664,"139":0.00664,"140":0.1195,"141":0.01328,"142":0.10622,"143":1.16846,"144":1.14191,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 137 138 145 146 147 3.5 3.6"},D:{"79":0.01992,"87":0.00664,"90":0.02656,"98":0.01992,"99":0.00664,"100":0.00664,"101":0.00664,"103":0.00664,"104":0.05975,"108":0.01328,"109":0.17261,"110":0.00664,"112":0.00664,"113":0.01992,"114":0.31203,"115":0.01328,"116":0.25228,"117":0.00664,"118":0.07967,"119":0.00664,"120":0.01992,"121":0.00664,"122":0.1195,"123":0.01328,"124":0.01328,"125":0.79668,"126":0.07303,"127":0.88963,"128":0.15934,"129":0.22573,"130":0.07967,"131":0.09295,"132":0.2722,"133":0.14606,"134":0.13278,"135":0.34523,"136":0.29876,"137":0.5112,"138":1.11535,"139":1.48714,"140":10.94107,"141":21.47053,"142":0.27884,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 88 89 91 92 93 94 95 96 97 102 105 106 107 111 143 144 145"},F:{"91":0.00664,"92":0.01328,"95":0.04647,"109":0.01328,"118":0.00664,"120":0.16598,"121":0.11286,"122":2.30373,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.00664,"130":0.01328,"131":0.00664,"132":0.00664,"133":0.00664,"134":0.00664,"135":0.01328,"136":0.01328,"138":0.01992,"139":0.05975,"140":1.85228,"141":5.21162,"142":0.01992,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 137"},E:{"14":0.05311,"15":0.00664,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 26.2","13.1":0.01328,"14.1":0.00664,"15.4":0.04647,"15.5":0.06639,"15.6":0.71037,"16.0":0.01328,"16.1":0.01992,"16.2":0.00664,"16.3":0.14606,"16.4":0.04647,"16.5":0.17925,"16.6":0.38506,"17.0":0.05311,"17.1":0.21245,"17.2":0.01992,"17.3":0.10622,"17.4":0.22573,"17.5":0.30539,"17.6":0.45145,"18.0":0.16598,"18.1":0.04647,"18.2":0.04647,"18.3":0.2722,"18.4":0.21909,"18.5-18.6":0.31867,"26.0":1.44066,"26.1":0.02656},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00156,"5.0-5.1":0,"6.0-6.1":0.00625,"7.0-7.1":0.00469,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01407,"10.0-10.2":0.00156,"10.3":0.02658,"11.0-11.2":0.39401,"11.3-11.4":0.00938,"12.0-12.1":0.00313,"12.2-12.5":0.07661,"13.0-13.1":0,"13.2":0.00782,"13.3":0.00313,"13.4-13.7":0.01251,"14.0-14.4":0.02658,"14.5-14.8":0.02814,"15.0-15.1":0.02658,"15.2-15.3":0.02033,"15.4":0.02345,"15.5":0.02658,"15.6-15.8":0.34711,"16.0":0.04691,"16.1":0.08756,"16.2":0.04534,"16.3":0.0813,"16.4":0.02033,"16.5":0.03596,"16.6-16.7":0.46437,"17.0":0.03283,"17.1":0.05003,"17.2":0.03596,"17.3":0.05316,"17.4":0.09381,"17.5":0.16104,"17.6-17.7":0.40652,"18.0":0.09225,"18.1":0.19075,"18.2":0.10319,"18.3":0.33147,"18.4":0.17043,"18.5-18.6":8.69014,"26.0":1.07415,"26.1":0.03909},P:{"4":0.06325,"25":0.01054,"26":0.03163,"27":0.01054,"28":1.93974,"29":0.10542,_:"20 21 22 23 24 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.01007,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.12436,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.52096},Q:{"14.9":0.00336},O:{"0":0.01344},H:{"0":0},L:{"0":16.24666}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IT.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IT.js deleted file mode 100644 index 19311199..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/IT.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"2":0.00513,"52":0.03079,"59":0.04619,"77":0.00513,"78":0.02566,"82":0.00513,"88":0.00513,"107":0.00513,"113":0.00513,"115":0.272,"125":0.00513,"127":0.00513,"128":0.03079,"132":0.00513,"133":0.00513,"134":0.00513,"135":0.00513,"136":0.01026,"137":0.00513,"138":0.00513,"139":0.01026,"140":0.08724,"141":0.02053,"142":0.05645,"143":1.54986,"144":1.49854,"145":0.01026,_:"3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 79 80 81 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 126 129 130 131 146 147 3.5 3.6"},D:{"38":0.00513,"39":0.01026,"40":0.01026,"41":0.0154,"42":0.01026,"43":0.01026,"44":0.01026,"45":0.01026,"46":0.01026,"47":0.0154,"48":0.0154,"49":0.03592,"50":0.01026,"51":0.01026,"52":0.01026,"53":0.01026,"54":0.0154,"55":0.0154,"56":0.01026,"57":0.01026,"58":0.0154,"59":0.01026,"60":0.0154,"63":0.02566,"65":0.00513,"66":0.18475,"68":0.00513,"74":0.02566,"77":0.00513,"79":0.0154,"81":0.00513,"85":0.02566,"86":0.02566,"87":0.02566,"88":0.00513,"90":0.00513,"91":0.28226,"101":0.00513,"102":0.00513,"103":0.07185,"104":0.0154,"105":0.00513,"106":0.04106,"107":0.00513,"108":0.01026,"109":1.0264,"110":0.0154,"111":0.01026,"112":0.02053,"113":0.00513,"114":0.02053,"115":0.01026,"116":0.17449,"117":0.00513,"118":0.01026,"119":0.02566,"120":0.04106,"121":0.02053,"122":0.07698,"123":0.0154,"124":0.07185,"125":0.99048,"126":0.04106,"127":0.03079,"128":0.15396,"129":0.02053,"130":0.1129,"131":0.23094,"132":0.05132,"133":0.08211,"134":0.08724,"135":0.09751,"136":0.1129,"137":0.14883,"138":0.47214,"139":0.75954,"140":7.98539,"141":19.02432,"142":0.2412,"143":0.00513,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 64 67 69 70 71 72 73 75 76 78 80 83 84 89 92 93 94 95 96 97 98 99 100 144 145"},F:{"46":0.00513,"89":0.00513,"91":0.02053,"92":0.04619,"95":0.0154,"102":0.00513,"112":0.00513,"114":0.00513,"117":0.00513,"118":0.00513,"120":0.22068,"121":0.08724,"122":0.97508,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 113 115 116 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.02053,"85":0.0154,"92":0.00513,"109":0.03592,"114":0.01026,"122":0.00513,"126":0.00513,"127":0.00513,"129":0.00513,"130":0.00513,"131":0.01026,"132":0.01026,"133":0.00513,"134":0.0154,"135":0.00513,"136":0.01026,"137":0.01026,"138":0.03592,"139":0.04106,"140":0.70822,"141":3.48463,"142":0.01026,_:"12 13 14 15 16 18 79 80 81 83 84 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 128"},E:{"8":0.00513,"13":0.00513,"14":0.0154,_:"0 4 5 6 7 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 26.2","11.1":0.04619,"12.1":0.00513,"13.1":0.04619,"14.1":0.04106,"15.1":0.00513,"15.2-15.3":0.00513,"15.4":0.01026,"15.5":0.0154,"15.6":0.16422,"16.0":0.01026,"16.1":0.02053,"16.2":0.01026,"16.3":0.03079,"16.4":0.0154,"16.5":0.0154,"16.6":0.14883,"17.0":0.0154,"17.1":0.10264,"17.2":0.03079,"17.3":0.02053,"17.4":0.04106,"17.5":0.05645,"17.6":0.26686,"18.0":0.02566,"18.1":0.05132,"18.2":0.0154,"18.3":0.06672,"18.4":0.06672,"18.5-18.6":0.22068,"26.0":0.92889,"26.1":0.03592},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0013,"5.0-5.1":0,"6.0-6.1":0.00519,"7.0-7.1":0.00389,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01167,"10.0-10.2":0.0013,"10.3":0.02205,"11.0-11.2":0.3268,"11.3-11.4":0.00778,"12.0-12.1":0.00259,"12.2-12.5":0.06354,"13.0-13.1":0,"13.2":0.00648,"13.3":0.00259,"13.4-13.7":0.01037,"14.0-14.4":0.02205,"14.5-14.8":0.02334,"15.0-15.1":0.02205,"15.2-15.3":0.01686,"15.4":0.01945,"15.5":0.02205,"15.6-15.8":0.2879,"16.0":0.03891,"16.1":0.07262,"16.2":0.03761,"16.3":0.06744,"16.4":0.01686,"16.5":0.02983,"16.6-16.7":0.38516,"17.0":0.02723,"17.1":0.0415,"17.2":0.02983,"17.3":0.04409,"17.4":0.07781,"17.5":0.13357,"17.6-17.7":0.33718,"18.0":0.07651,"18.1":0.15821,"18.2":0.08559,"18.3":0.27493,"18.4":0.14136,"18.5-18.6":7.20781,"26.0":0.89093,"26.1":0.03242},P:{"4":0.05176,"20":0.01035,"21":0.01035,"22":0.01035,"23":0.01035,"24":0.07246,"25":0.0207,"26":0.04141,"27":0.09317,"28":2.13245,"29":0.14492,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.01035,"19.0":0.01035},I:{"0":0.03403,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.32129,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01254,"10":0.00627,"11":0.03763,_:"6 7 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.39431},Q:{"14.9":0.00974},O:{"0":0.05842},H:{"0":0},L:{"0":35.32164}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/JE.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/JE.js deleted file mode 100644 index 420e335d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/JE.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"68":0.00416,"78":0.00831,"115":0.03325,"136":0.00416,"140":0.01662,"143":0.65665,"144":0.47794,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 137 138 139 141 142 145 146 147 3.5 3.6"},D:{"39":0.00416,"44":0.00416,"45":0.00416,"46":0.00416,"49":0.00416,"50":0.00416,"52":0.00416,"53":0.00416,"55":0.00416,"56":0.00416,"57":0.00416,"58":0.00416,"59":0.00416,"60":0.00416,"76":0.00416,"79":0.00416,"80":0.0374,"81":0.00416,"87":0.01662,"93":0.00416,"95":0.00416,"98":0.00416,"103":0.02494,"109":0.05818,"111":0.01247,"116":0.02909,"119":0.00416,"120":0.02078,"122":0.07896,"123":0.00831,"125":1.08472,"126":0.05818,"127":0.00416,"128":0.07065,"129":0.00416,"130":0.00416,"131":0.01247,"132":0.00831,"133":0.00416,"134":0.07481,"135":0.1413,"136":0.02494,"137":0.07896,"138":0.6608,"139":0.49041,"140":5.9597,"141":9.30113,"142":0.1039,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 41 42 43 47 48 51 54 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 83 84 85 86 88 89 90 91 92 94 96 97 99 100 101 102 104 105 106 107 108 110 112 113 114 115 117 118 121 124 143 144 145"},F:{"92":0.00416,"95":0.00416,"118":0.00416,"120":0.01247,"121":0.04572,"122":0.39482,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.01247,"129":0.30754,"132":0.00416,"134":0.01247,"136":0.00416,"137":0.00831,"138":0.01662,"139":0.0374,"140":2.26502,"141":7.23144,"142":0.01662,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 130 131 133 135"},E:{"14":0.00831,"15":0.01662,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 15.4 17.0 26.2","11.1":0.00416,"13.1":0.01247,"14.1":0.04987,"15.1":0.00831,"15.2-15.3":0.00416,"15.5":0.02494,"15.6":0.64002,"16.0":0.02494,"16.1":0.00416,"16.2":0.00831,"16.3":0.04156,"16.4":0.02494,"16.5":0.09143,"16.6":0.40313,"17.1":1.08056,"17.2":0.01247,"17.3":0.02078,"17.4":0.04156,"17.5":0.06234,"17.6":0.3117,"18.0":0.01247,"18.1":0.10806,"18.2":0.00416,"18.3":0.05818,"18.4":0.01662,"18.5-18.6":0.31586,"26.0":0.56937,"26.1":0.00831},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00307,"5.0-5.1":0,"6.0-6.1":0.01226,"7.0-7.1":0.0092,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02759,"10.0-10.2":0.00307,"10.3":0.05211,"11.0-11.2":0.77242,"11.3-11.4":0.01839,"12.0-12.1":0.00613,"12.2-12.5":0.15019,"13.0-13.1":0,"13.2":0.01533,"13.3":0.00613,"13.4-13.7":0.02452,"14.0-14.4":0.05211,"14.5-14.8":0.05517,"15.0-15.1":0.05211,"15.2-15.3":0.03985,"15.4":0.04598,"15.5":0.05211,"15.6-15.8":0.68047,"16.0":0.09196,"16.1":0.17165,"16.2":0.08889,"16.3":0.15939,"16.4":0.03985,"16.5":0.0705,"16.6-16.7":0.91036,"17.0":0.06437,"17.1":0.09809,"17.2":0.0705,"17.3":0.10422,"17.4":0.18391,"17.5":0.31571,"17.6-17.7":0.79695,"18.0":0.18085,"18.1":0.37395,"18.2":0.2023,"18.3":0.64982,"18.4":0.3341,"18.5-18.6":17.03626,"26.0":2.10578,"26.1":0.07663},P:{"4":0.05447,"26":0.01089,"27":0.01089,"28":4.12848,"29":0.10893,_:"20 21 22 23 24 25 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0 19.0","16.0":0.01089},I:{"0":0.01167,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.02338,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02078,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.11688},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":24.3919}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/JM.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/JM.js deleted file mode 100644 index b4bd53e6..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/JM.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.0751,"125":0.00536,"136":0.00536,"140":0.01073,"141":0.00536,"142":0.02682,"143":0.52567,"144":0.27893,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 128 129 130 131 132 133 134 135 137 138 139 145 146 147 3.5 3.6"},D:{"39":0.02146,"40":0.02146,"41":0.01609,"42":0.02146,"43":0.02146,"44":0.02146,"45":0.02146,"46":0.02146,"47":0.02146,"48":0.01609,"49":0.02146,"50":0.01609,"51":0.01609,"52":0.01609,"53":0.02146,"54":0.01609,"55":0.02146,"56":0.02146,"57":0.01609,"58":0.02146,"59":0.01609,"60":0.01609,"66":0.00536,"69":0.00536,"70":0.01073,"73":0.03755,"76":0.01073,"79":0.00536,"83":0.03218,"87":0.01609,"90":0.00536,"91":0.02146,"93":0.02146,"95":0.00536,"98":0.01609,"99":0.01073,"100":0.00536,"101":0.00536,"103":0.11264,"105":0.00536,"106":0.00536,"108":0.01073,"109":0.16628,"111":0.01073,"112":2.16706,"113":0.01609,"114":0.01073,"115":0.01073,"116":0.04828,"118":0.00536,"119":0.00536,"120":0.059,"122":0.01073,"123":0.00536,"125":19.22994,"126":0.28966,"127":0.00536,"128":0.08582,"129":0.00536,"130":0.03755,"131":0.02146,"132":0.09655,"133":0.02146,"134":0.02146,"135":0.02146,"136":0.04828,"137":0.58468,"138":0.24138,"139":0.3272,"140":4.66668,"141":9.76784,"142":0.08046,"143":0.01073,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 68 71 72 74 75 77 78 80 81 84 85 86 88 89 92 94 96 97 102 104 107 110 117 121 124 144 145"},F:{"75":0.00536,"90":0.00536,"91":0.01073,"92":0.01073,"95":0.01073,"120":0.08582,"121":0.06437,"122":0.5954,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 79 80 81 82 83 84 85 86 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.00536,"18":0.00536,"92":0.01073,"109":0.00536,"114":0.50422,"116":0.00536,"118":0.02682,"131":0.00536,"134":0.01073,"135":0.00536,"136":0.00536,"137":0.00536,"138":0.02146,"139":0.03218,"140":0.92797,"141":3.96936,"142":0.01609,_:"12 13 14 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 117 119 120 121 122 123 124 125 126 127 128 129 130 132 133"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.5 26.2","11.1":0.00536,"13.1":0.00536,"14.1":0.02146,"15.6":0.09655,"16.1":0.00536,"16.3":0.00536,"16.4":0.00536,"16.6":0.09655,"17.0":0.00536,"17.1":0.06437,"17.2":0.00536,"17.3":0.01609,"17.4":0.00536,"17.5":0.01609,"17.6":0.17701,"18.0":0.02146,"18.1":0.03218,"18.2":0.01609,"18.3":0.08582,"18.4":0.02146,"18.5-18.6":0.15556,"26.0":0.72414,"26.1":0.02146},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00137,"5.0-5.1":0,"6.0-6.1":0.00549,"7.0-7.1":0.00412,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01236,"10.0-10.2":0.00137,"10.3":0.02334,"11.0-11.2":0.346,"11.3-11.4":0.00824,"12.0-12.1":0.00275,"12.2-12.5":0.06728,"13.0-13.1":0,"13.2":0.00687,"13.3":0.00275,"13.4-13.7":0.01098,"14.0-14.4":0.02334,"14.5-14.8":0.02471,"15.0-15.1":0.02334,"15.2-15.3":0.01785,"15.4":0.0206,"15.5":0.02334,"15.6-15.8":0.30481,"16.0":0.04119,"16.1":0.07689,"16.2":0.03982,"16.3":0.0714,"16.4":0.01785,"16.5":0.03158,"16.6-16.7":0.40779,"17.0":0.02883,"17.1":0.04394,"17.2":0.03158,"17.3":0.04668,"17.4":0.08238,"17.5":0.14142,"17.6-17.7":0.35698,"18.0":0.08101,"18.1":0.16751,"18.2":0.09062,"18.3":0.29108,"18.4":0.14966,"18.5-18.6":7.63122,"26.0":0.94326,"26.1":0.03433},P:{"4":0.05314,"20":0.02126,"21":0.01063,"22":0.01063,"23":0.05314,"24":0.13816,"25":0.08502,"26":0.06377,"27":0.05314,"28":2.72068,"29":0.10628,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0 19.0","7.2-7.4":0.07439,"16.0":0.03188},I:{"0":0.03241,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.15302,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.21794},Q:{_:"14.9"},O:{"0":0.07419},H:{"0":0},L:{"0":32.71082}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/JO.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/JO.js deleted file mode 100644 index e7593bea..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/JO.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.06807,"128":0.002,"134":0.002,"136":0.002,"139":0.002,"140":0.00601,"141":0.002,"142":0.004,"143":0.28228,"144":0.23624,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 135 137 138 145 146 147 3.5 3.6"},D:{"11":0.004,"34":0.01001,"39":0.002,"40":0.002,"41":0.002,"42":0.002,"43":0.002,"44":0.002,"45":0.002,"46":0.002,"47":0.002,"48":0.002,"49":0.002,"50":0.002,"51":0.002,"52":0.002,"53":0.002,"54":0.002,"55":0.002,"56":0.002,"57":0.002,"58":0.002,"59":0.002,"60":0.002,"66":0.002,"73":0.002,"78":0.002,"79":0.00801,"81":0.002,"83":0.004,"84":0.002,"86":0.002,"87":0.01201,"88":0.002,"90":0.002,"91":0.002,"95":0.002,"96":0.01401,"98":0.04004,"99":0.002,"100":0.03804,"102":0.002,"103":0.00801,"104":0.002,"106":0.002,"107":0.002,"108":0.00601,"109":0.75676,"110":0.002,"111":0.002,"112":0.28428,"113":0.00601,"114":0.00801,"116":0.00601,"117":0.07007,"118":0.002,"119":0.01201,"120":0.02803,"121":0.00601,"122":0.07808,"123":0.004,"124":0.00801,"125":0.85886,"126":0.04605,"127":0.01001,"128":0.01602,"129":0.004,"130":0.00801,"131":0.02402,"132":0.01401,"133":0.02002,"134":0.01802,"135":0.02803,"136":0.03003,"137":0.05205,"138":0.13213,"139":0.2042,"140":2.87888,"141":6.02202,"142":0.04204,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 61 62 63 64 65 67 68 69 70 71 72 74 75 76 77 80 85 89 92 93 94 97 101 105 115 143 144 145"},F:{"82":0.002,"91":0.004,"92":0.00801,"95":0.004,"109":0.004,"112":0.002,"113":0.002,"116":0.002,"119":0.03604,"120":0.03203,"121":0.01401,"122":0.14214,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 114 115 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.002,"92":0.00601,"105":0.002,"109":0.01201,"114":0.13413,"122":0.002,"125":0.002,"130":0.002,"131":0.002,"132":0.002,"133":0.002,"134":0.002,"135":0.00801,"136":0.00601,"137":0.00601,"138":0.00601,"139":0.01401,"140":0.24024,"141":1.06306,"142":0.002,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 126 127 128 129"},E:{"15":0.002,_:"0 4 5 6 7 8 9 10 11 12 13 14 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 16.4 16.5 17.0 17.2 26.2","5.1":0.004,"13.1":0.002,"14.1":0.002,"15.5":0.002,"15.6":0.02402,"16.0":0.004,"16.1":0.002,"16.2":0.002,"16.3":0.002,"16.6":0.05205,"17.1":0.01401,"17.3":0.00801,"17.4":0.004,"17.5":0.004,"17.6":0.02202,"18.0":0.002,"18.1":0.00601,"18.2":0.002,"18.3":0.01401,"18.4":0.00801,"18.5-18.6":0.01802,"26.0":0.07808,"26.1":0.002},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00172,"5.0-5.1":0,"6.0-6.1":0.00687,"7.0-7.1":0.00515,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01545,"10.0-10.2":0.00172,"10.3":0.02918,"11.0-11.2":0.43253,"11.3-11.4":0.0103,"12.0-12.1":0.00343,"12.2-12.5":0.0841,"13.0-13.1":0,"13.2":0.00858,"13.3":0.00343,"13.4-13.7":0.01373,"14.0-14.4":0.02918,"14.5-14.8":0.03089,"15.0-15.1":0.02918,"15.2-15.3":0.02231,"15.4":0.02575,"15.5":0.02918,"15.6-15.8":0.38103,"16.0":0.05149,"16.1":0.09612,"16.2":0.04977,"16.3":0.08925,"16.4":0.02231,"16.5":0.03948,"16.6-16.7":0.50976,"17.0":0.03604,"17.1":0.05492,"17.2":0.03948,"17.3":0.05836,"17.4":0.10298,"17.5":0.17679,"17.6-17.7":0.44626,"18.0":0.10127,"18.1":0.2094,"18.2":0.11328,"18.3":0.36387,"18.4":0.18708,"18.5-18.6":9.53959,"26.0":1.17915,"26.1":0.04291},P:{"21":0.01035,"22":0.02069,"23":0.03104,"24":0.01035,"25":0.09311,"26":0.04138,"27":0.07242,"28":1.46902,"29":0.1138,_:"4 20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.02069,"13.0":0.01035,"19.0":0.01035},I:{"0":0.03195,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.08798,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.0048,"9":0.0024,"10":0.0024,"11":0.01441,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.07198},Q:{_:"14.9"},O:{"0":0.02399},H:{"0":0},L:{"0":65.51779}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/JP.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/JP.js deleted file mode 100644 index 9046b579..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/JP.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"48":0.0106,"52":0.0212,"56":0.0053,"78":0.0159,"103":0.0053,"113":0.0265,"115":0.18017,"125":0.0053,"128":0.0159,"132":0.0053,"133":0.0106,"134":0.0212,"135":0.0159,"136":0.0212,"137":0.0053,"138":0.0106,"139":0.0106,"140":0.05299,"141":0.0106,"142":0.04239,"143":1.22937,"144":1.11279,"145":0.0053,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 126 127 129 130 131 146 147 3.5 3.6"},D:{"39":0.0159,"40":0.0159,"41":0.0212,"42":0.0159,"43":0.0212,"44":0.0159,"45":0.0159,"46":0.0159,"47":0.0212,"48":0.0212,"49":0.03709,"50":0.0212,"51":0.0159,"52":0.0212,"53":0.0212,"54":0.0159,"55":0.0212,"56":0.0212,"57":0.0212,"58":0.0212,"59":0.0159,"60":0.0212,"70":0.0053,"74":0.0106,"75":0.0053,"79":0.0053,"80":0.0106,"81":0.0159,"83":0.0106,"85":0.0106,"86":0.0106,"87":0.0265,"89":0.0053,"90":0.0053,"91":0.0053,"92":0.07419,"93":0.0106,"95":0.0212,"96":0.0053,"97":0.0106,"98":0.0265,"99":0.0053,"100":0.0053,"101":0.0159,"102":0.0053,"103":0.04769,"104":0.28615,"106":0.0159,"107":0.0159,"108":0.0053,"109":0.56699,"110":0.03709,"111":0.0053,"112":0.0212,"113":0.0053,"114":0.05829,"115":0.0106,"116":0.08478,"117":0.0053,"118":0.0212,"119":0.05829,"120":0.04769,"121":0.03179,"122":0.03179,"123":0.0212,"124":0.11658,"125":0.94852,"126":2.89325,"127":0.03179,"128":0.08478,"129":0.03709,"130":0.42392,"131":0.15367,"132":0.07949,"133":0.10068,"134":0.09538,"135":0.09538,"136":0.14307,"137":0.15897,"138":0.43982,"139":0.49811,"140":5.09234,"141":12.46855,"142":0.15897,"143":0.03709,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 71 72 73 76 77 78 84 88 94 105 144 145"},F:{"79":0.0053,"90":0.0053,"91":0.0212,"92":0.04239,"95":0.0212,"114":0.0106,"115":0.0053,"117":0.0053,"120":0.04769,"121":0.0106,"122":0.25965,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 116 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.0053,"18":0.0053,"92":0.0106,"108":0.0053,"109":0.15367,"111":0.0053,"113":0.0053,"114":0.0053,"115":0.0053,"116":0.0053,"119":0.0053,"120":0.0106,"121":0.0053,"122":0.0106,"123":0.0053,"124":0.0053,"125":0.0053,"126":0.0106,"127":0.0106,"128":0.0106,"129":0.0106,"130":0.0159,"131":0.04239,"132":0.0212,"133":0.0212,"134":0.03179,"135":0.03179,"136":0.03179,"137":0.03179,"138":0.07419,"139":0.10598,"140":1.68508,"141":8.30883,"142":0.03179,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 112 117 118"},E:{"13":0.0053,"14":0.0212,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 17.0 26.2","12.1":0.0053,"13.1":0.04769,"14.1":0.05829,"15.2-15.3":0.0053,"15.4":0.0106,"15.5":0.0106,"15.6":0.14307,"16.0":0.0053,"16.1":0.0212,"16.2":0.0159,"16.3":0.0265,"16.4":0.0106,"16.5":0.0106,"16.6":0.18547,"17.1":0.13777,"17.2":0.0106,"17.3":0.0159,"17.4":0.03179,"17.5":0.03179,"17.6":0.18017,"18.0":0.0159,"18.1":0.0212,"18.2":0.0159,"18.3":0.05829,"18.4":0.03179,"18.5-18.6":0.13777,"26.0":0.39213,"26.1":0.0106},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00209,"5.0-5.1":0,"6.0-6.1":0.00835,"7.0-7.1":0.00627,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0188,"10.0-10.2":0.00209,"10.3":0.03551,"11.0-11.2":0.52634,"11.3-11.4":0.01253,"12.0-12.1":0.00418,"12.2-12.5":0.10234,"13.0-13.1":0,"13.2":0.01044,"13.3":0.00418,"13.4-13.7":0.01671,"14.0-14.4":0.03551,"14.5-14.8":0.0376,"15.0-15.1":0.03551,"15.2-15.3":0.02715,"15.4":0.03133,"15.5":0.03551,"15.6-15.8":0.46368,"16.0":0.06266,"16.1":0.11696,"16.2":0.06057,"16.3":0.10861,"16.4":0.02715,"16.5":0.04804,"16.6-16.7":0.62033,"17.0":0.04386,"17.1":0.06684,"17.2":0.04804,"17.3":0.07101,"17.4":0.12532,"17.5":0.21513,"17.6-17.7":0.54305,"18.0":0.12323,"18.1":0.25482,"18.2":0.13785,"18.3":0.44279,"18.4":0.22766,"18.5-18.6":11.60874,"26.0":1.43491,"26.1":0.05222},P:{"26":0.0108,"27":0.0108,"28":0.69117,"29":0.054,_:"4 20 21 22 23 24 25 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 13.0 14.0 15.0 16.0 17.0 18.0 19.0","11.1-11.2":0.0216,"12.0":0.0108},I:{"0":0.02817,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.11282,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.15568,"11":0.22055,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.4701},Q:{"14.9":0.07992},O:{"0":0.13163},H:{"0":0},L:{"0":31.66033}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KE.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KE.js deleted file mode 100644 index 0c82ed99..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KE.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"47":0.00829,"72":0.00415,"78":0.00415,"112":0.00415,"115":0.13685,"123":0.00415,"127":0.00829,"128":0.01659,"129":0.00415,"132":0.00415,"133":0.00415,"134":0.00415,"135":0.00415,"136":0.00829,"137":0.00829,"139":0.00415,"140":0.02903,"141":0.01244,"142":0.02074,"143":0.6179,"144":0.45617,"145":0.00415,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 124 125 126 130 131 138 146 147 3.5 3.6"},D:{"39":0.00415,"40":0.00415,"41":0.00415,"42":0.00415,"43":0.00829,"44":0.00415,"45":0.00415,"46":0.00415,"47":0.00415,"48":0.00415,"49":0.00829,"50":0.00829,"51":0.03318,"52":0.00415,"53":0.00415,"54":0.00829,"55":0.00829,"56":0.00415,"57":0.00415,"58":0.00415,"59":0.00415,"60":0.00415,"65":0.00415,"66":0.00415,"69":0.00829,"70":0.00415,"71":0.00415,"72":0.01244,"73":0.02488,"74":0.00415,"75":0.00415,"76":0.00415,"79":0.00829,"80":0.00829,"81":0.00415,"83":0.04147,"86":0.00415,"87":0.02903,"88":0.00829,"91":0.01244,"93":0.01244,"94":0.00415,"95":0.00415,"98":0.01244,"99":0.00415,"100":0.01244,"102":0.00415,"103":0.05806,"104":0.01244,"105":0.00415,"106":0.00415,"107":0.00415,"108":0.00415,"109":0.63864,"110":0.00415,"111":0.00829,"112":3.91477,"113":0.04147,"114":0.02488,"115":0.00415,"116":0.03318,"117":0.00415,"118":0.00415,"119":0.02074,"120":0.01244,"121":0.01659,"122":0.02903,"123":0.00829,"124":0.00829,"125":3.12269,"126":0.42299,"127":0.01659,"128":0.04147,"129":0.02074,"130":0.02488,"131":0.08709,"132":0.05391,"133":0.03318,"134":0.3442,"135":0.05391,"136":0.06221,"137":0.1327,"138":0.33176,"139":0.38982,"140":4.87687,"141":9.16487,"142":0.10782,"143":0.01659,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 67 68 77 78 84 85 89 90 92 96 97 101 144 145"},F:{"86":0.00829,"88":0.00415,"89":0.00415,"90":0.02903,"91":0.08294,"92":0.08709,"95":0.00829,"113":0.00415,"114":0.00415,"119":0.00415,"120":0.07465,"121":0.01244,"122":0.45202,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 87 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.02488,"18":0.01659,"90":0.00415,"92":0.02074,"100":0.00415,"109":0.01244,"114":0.27785,"119":0.00415,"122":0.00829,"125":0.00829,"126":0.00415,"127":0.00415,"129":0.00829,"131":0.00829,"132":0.00415,"133":0.00415,"134":0.00829,"135":0.00415,"136":0.00829,"137":0.00829,"138":0.02074,"139":0.02074,"140":0.44788,"141":1.84127,"142":0.00829,_:"12 14 15 16 17 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 120 121 123 124 128 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.1 16.2 16.3 16.4 17.0 17.2 26.2","5.1":0.00415,"13.1":0.01244,"14.1":0.01244,"15.6":0.04147,"16.0":0.01244,"16.5":0.00415,"16.6":0.02074,"17.1":0.00829,"17.3":0.00415,"17.4":0.00415,"17.5":0.00415,"17.6":0.04976,"18.0":0.00415,"18.1":0.00415,"18.2":0.00415,"18.3":0.01244,"18.4":0.00415,"18.5-18.6":0.06221,"26.0":0.07879,"26.1":0.00415},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00019,"5.0-5.1":0,"6.0-6.1":0.00077,"7.0-7.1":0.00058,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00173,"10.0-10.2":0.00019,"10.3":0.00327,"11.0-11.2":0.04853,"11.3-11.4":0.00116,"12.0-12.1":0.00039,"12.2-12.5":0.00944,"13.0-13.1":0,"13.2":0.00096,"13.3":0.00039,"13.4-13.7":0.00154,"14.0-14.4":0.00327,"14.5-14.8":0.00347,"15.0-15.1":0.00327,"15.2-15.3":0.0025,"15.4":0.00289,"15.5":0.00327,"15.6-15.8":0.04275,"16.0":0.00578,"16.1":0.01078,"16.2":0.00558,"16.3":0.01001,"16.4":0.0025,"16.5":0.00443,"16.6-16.7":0.05719,"17.0":0.00404,"17.1":0.00616,"17.2":0.00443,"17.3":0.00655,"17.4":0.01155,"17.5":0.01983,"17.6-17.7":0.05007,"18.0":0.01136,"18.1":0.02349,"18.2":0.01271,"18.3":0.04082,"18.4":0.02099,"18.5-18.6":1.07027,"26.0":0.13229,"26.1":0.00481},P:{"4":0.03089,"21":0.0103,"22":0.02059,"23":0.02059,"24":0.09267,"25":0.07207,"26":0.04118,"27":0.09267,"28":0.84428,"29":0.05148,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.12355,"19.0":0.0103},I:{"0":0.04676,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":13.87672,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.10368,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.20486},Q:{_:"14.9"},O:{"0":0.06438},H:{"0":2.26},L:{"0":48.743}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KG.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KG.js deleted file mode 100644 index 142bc03f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KG.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"90":0.01519,"115":0.04557,"125":0.02279,"127":0.03038,"128":0.0076,"140":0.02279,"141":0.01519,"142":0.03038,"143":1.76204,"144":0.27342,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 129 130 131 132 133 134 135 136 137 138 139 145 146 147 3.5 3.6"},D:{"39":0.0076,"40":0.0076,"41":0.0076,"42":0.0076,"43":0.0076,"44":0.0076,"45":0.0076,"46":0.0076,"47":0.0076,"48":0.0076,"49":0.0076,"50":0.0076,"51":0.0076,"52":0.0076,"53":0.0076,"54":0.0076,"55":0.0076,"56":0.0076,"57":0.0076,"58":0.0076,"59":0.0076,"60":0.0076,"79":0.10633,"87":0.01519,"88":0.0076,"99":0.0076,"101":0.0076,"102":0.1595,"103":0.03038,"104":0.0076,"105":0.03038,"106":0.0076,"109":0.71393,"112":3.69877,"116":0.0076,"117":0.0076,"119":0.01519,"120":0.0076,"121":0.0076,"122":0.01519,"123":0.0076,"125":46.29912,"126":0.34937,"128":0.01519,"129":0.02279,"130":0.03038,"131":0.02279,"132":0.0076,"133":0.0076,"134":0.01519,"135":0.01519,"136":0.11393,"137":0.03038,"138":0.10633,"139":0.58482,"140":2.69623,"141":9.49375,"142":0.10633,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 89 90 91 92 93 94 95 96 97 98 100 107 108 110 111 113 114 115 118 124 127 143 144 145"},F:{"67":0.0076,"79":0.0076,"85":0.0076,"86":0.0076,"92":0.01519,"95":0.11393,"120":0.12912,"121":0.03038,"122":0.71393,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 87 88 89 90 91 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.0076,"114":0.3114,"122":0.0076,"130":0.0076,"138":0.0076,"139":0.01519,"140":0.25823,"141":1.66331,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 120 121 123 124 125 126 127 128 129 131 132 133 134 135 136 137 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 18.0 18.1 26.1 26.2","15.6":0.06076,"16.6":0.0076,"17.0":0.0076,"17.1":0.0076,"17.2":0.02279,"17.3":0.03038,"17.4":0.03798,"17.5":0.02279,"17.6":0.06836,"18.2":0.08355,"18.3":0.09874,"18.4":0.09114,"18.5-18.6":0.1519,"26.0":0.56203},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00046,"5.0-5.1":0,"6.0-6.1":0.00185,"7.0-7.1":0.00139,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00417,"10.0-10.2":0.00046,"10.3":0.00787,"11.0-11.2":0.11673,"11.3-11.4":0.00278,"12.0-12.1":0.00093,"12.2-12.5":0.0227,"13.0-13.1":0,"13.2":0.00232,"13.3":0.00093,"13.4-13.7":0.00371,"14.0-14.4":0.00787,"14.5-14.8":0.00834,"15.0-15.1":0.00787,"15.2-15.3":0.00602,"15.4":0.00695,"15.5":0.00787,"15.6-15.8":0.10283,"16.0":0.0139,"16.1":0.02594,"16.2":0.01343,"16.3":0.02409,"16.4":0.00602,"16.5":0.01065,"16.6-16.7":0.13757,"17.0":0.00973,"17.1":0.01482,"17.2":0.01065,"17.3":0.01575,"17.4":0.02779,"17.5":0.04771,"17.6-17.7":0.12043,"18.0":0.02733,"18.1":0.05651,"18.2":0.03057,"18.3":0.0982,"18.4":0.05049,"18.5-18.6":2.57448,"26.0":0.31822,"26.1":0.01158},P:{"22":0.01049,"23":0.01049,"24":0.01049,"25":0.04196,"26":0.02098,"27":0.04196,"28":0.32519,"29":0.03147,_:"4 20 21 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.0048,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.21164,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.06975},Q:{"14.9":0.03127},O:{"0":0.12506},H:{"0":0},L:{"0":19.87601}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KH.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KH.js deleted file mode 100644 index d45aa749..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KH.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"50":0.00589,"78":0.02943,"103":0.01177,"105":0.02943,"114":0.00589,"115":0.09418,"120":0.00589,"127":0.00589,"128":0.00589,"133":0.00589,"134":0.00589,"136":0.00589,"137":0.03532,"140":0.00589,"141":0.00589,"142":0.0412,"143":0.44145,"144":0.44145,"145":0.00589,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 106 107 108 109 110 111 112 113 116 117 118 119 121 122 123 124 125 126 129 130 131 132 135 138 139 146 147 3.5 3.6"},D:{"39":0.00589,"40":0.00589,"41":0.01766,"42":0.00589,"43":0.00589,"44":0.00589,"45":0.00589,"46":0.00589,"47":0.00589,"48":0.00589,"49":0.01177,"50":0.00589,"51":0.00589,"52":0.00589,"53":0.00589,"54":0.00589,"55":0.00589,"56":0.01177,"57":0.00589,"58":0.00589,"59":0.00589,"60":0.00589,"69":0.02354,"79":0.00589,"87":0.00589,"91":0.01177,"100":0.01766,"101":0.01177,"103":0.02354,"104":0.0824,"106":0.00589,"107":0.00589,"108":0.01177,"109":0.27076,"110":0.01177,"111":0.00589,"112":1.54802,"113":0.01177,"114":0.08829,"115":0.00589,"116":0.01766,"118":0.00589,"119":0.00589,"120":0.02354,"121":0.01177,"122":0.05297,"123":0.09418,"124":0.02943,"125":4.29678,"126":7.75775,"127":0.0824,"128":0.06475,"129":0.08829,"130":0.04709,"131":0.12949,"132":0.07652,"133":0.05297,"134":1.27138,"135":0.07652,"136":0.10006,"137":0.40613,"138":0.25898,"139":0.60626,"140":8.42287,"141":19.15893,"142":0.25898,"143":0.01766,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 88 89 90 92 93 94 95 96 97 98 99 102 105 117 144 145"},F:{"89":0.0412,"91":0.01177,"92":0.01177,"95":0.00589,"114":0.00589,"120":0.09418,"121":0.02943,"122":0.58271,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00589,"89":0.01766,"92":0.05886,"104":0.01177,"109":0.00589,"112":0.01177,"114":0.02943,"117":0.01177,"118":0.00589,"120":0.01177,"122":0.00589,"125":0.00589,"128":0.00589,"131":0.01766,"132":0.00589,"133":0.00589,"134":0.01177,"135":0.02354,"136":0.02943,"137":0.01177,"138":0.02354,"139":0.02354,"140":0.45911,"141":2.60161,"142":0.01177,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 90 91 93 94 95 96 97 98 99 100 101 102 103 105 106 107 108 110 111 113 115 116 119 121 123 124 126 127 129 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.5 16.2 16.4 16.5 17.0 18.0 26.2","13.1":0.00589,"14.1":0.01766,"15.4":0.00589,"15.6":0.04709,"16.0":0.00589,"16.1":0.00589,"16.3":0.00589,"16.6":0.0412,"17.1":0.03532,"17.2":0.01177,"17.3":0.00589,"17.4":0.01177,"17.5":0.01766,"17.6":0.04709,"18.1":0.00589,"18.2":0.02354,"18.3":0.03532,"18.4":0.00589,"18.5-18.6":0.06475,"26.0":0.20012,"26.1":0.01766},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00123,"5.0-5.1":0,"6.0-6.1":0.00494,"7.0-7.1":0.0037,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0111,"10.0-10.2":0.00123,"10.3":0.02097,"11.0-11.2":0.31091,"11.3-11.4":0.0074,"12.0-12.1":0.00247,"12.2-12.5":0.06046,"13.0-13.1":0,"13.2":0.00617,"13.3":0.00247,"13.4-13.7":0.00987,"14.0-14.4":0.02097,"14.5-14.8":0.02221,"15.0-15.1":0.02097,"15.2-15.3":0.01604,"15.4":0.01851,"15.5":0.02097,"15.6-15.8":0.2739,"16.0":0.03701,"16.1":0.06909,"16.2":0.03578,"16.3":0.06416,"16.4":0.01604,"16.5":0.02838,"16.6-16.7":0.36644,"17.0":0.02591,"17.1":0.03948,"17.2":0.02838,"17.3":0.04195,"17.4":0.07403,"17.5":0.12708,"17.6-17.7":0.32079,"18.0":0.07279,"18.1":0.15052,"18.2":0.08143,"18.3":0.26156,"18.4":0.13448,"18.5-18.6":6.8574,"26.0":0.84761,"26.1":0.03084},P:{"22":0.01053,"23":0.01053,"25":0.01053,"26":0.01053,"27":0.03158,"28":0.57899,"29":0.06316,_:"4 20 21 24 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.02054,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.27564,_:"10 11 12 11.1 11.5 12.1"},A:{"11":1.83055,_:"6 7 8 9 10 5.5"},S:{"2.5":0.00411,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.15633},Q:{"14.9":0.08228},O:{"0":0.33735},H:{"0":0},L:{"0":31.11816}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KI.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KI.js deleted file mode 100644 index 086fa57f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KI.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"78":0.01005,"109":0.01005,"115":0.04524,"128":0.02011,"132":0.01005,"140":0.10054,"143":0.11059,"144":0.1307,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 133 134 135 136 137 138 139 141 142 145 146 147 3.5 3.6"},D:{"46":0.01005,"67":0.04524,"93":0.02011,"103":0.01005,"105":0.04524,"109":0.0553,"111":0.02011,"120":0.01005,"121":0.01005,"122":0.1307,"124":0.10054,"125":0.45243,"127":0.14578,"129":0.03519,"130":0.20108,"131":0.04524,"132":0.01005,"133":0.03519,"134":0.01005,"137":0.04524,"138":0.57811,"139":0.50773,"140":4.80581,"141":6.60045,"142":0.10054,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 94 95 96 97 98 99 100 101 102 104 106 107 108 110 112 113 114 115 116 117 118 119 123 126 128 135 136 143 144 145"},F:{"85":0.01005,"91":0.02011,"95":0.01005,"117":0.01005,"120":0.1307,"121":0.02011,"122":0.91994,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.01005,"92":0.06535,"114":0.01005,"124":0.01005,"126":0.02011,"129":0.01005,"130":0.02011,"132":0.01005,"133":0.14578,"134":0.01005,"135":0.04524,"136":0.186,"139":0.26643,"140":2.03594,"141":7.70136,"142":0.01005,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 120 121 122 123 125 127 128 131 137 138"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.4 16.5 17.0 17.1 17.2 17.3 17.4 17.5 18.0 18.1 18.2 18.3 18.4 18.5-18.6 26.0 26.1 26.2","15.6":0.17595,"16.3":0.01005,"16.6":0.02011,"17.6":0.03519},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0001,"5.0-5.1":0,"6.0-6.1":0.00042,"7.0-7.1":0.00031,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00094,"10.0-10.2":0.0001,"10.3":0.00178,"11.0-11.2":0.02644,"11.3-11.4":0.00063,"12.0-12.1":0.00021,"12.2-12.5":0.00514,"13.0-13.1":0,"13.2":0.00052,"13.3":0.00021,"13.4-13.7":0.00084,"14.0-14.4":0.00178,"14.5-14.8":0.00189,"15.0-15.1":0.00178,"15.2-15.3":0.00136,"15.4":0.00157,"15.5":0.00178,"15.6-15.8":0.02329,"16.0":0.00315,"16.1":0.00587,"16.2":0.00304,"16.3":0.00546,"16.4":0.00136,"16.5":0.00241,"16.6-16.7":0.03116,"17.0":0.0022,"17.1":0.00336,"17.2":0.00241,"17.3":0.00357,"17.4":0.00629,"17.5":0.01081,"17.6-17.7":0.02728,"18.0":0.00619,"18.1":0.0128,"18.2":0.00692,"18.3":0.02224,"18.4":0.01144,"18.5-18.6":0.58309,"26.0":0.07207,"26.1":0.00262},P:{"21":0.07138,"22":0.17335,"23":0.02039,"24":0.16315,"25":1.21344,"26":0.12236,"27":0.23453,"28":2.54925,"29":0.03059,_:"4 20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.03059},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.27346,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.00994},Q:{"14.9":0.11436},O:{"0":0.2138},H:{"0":0},L:{"0":66.72856}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KM.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KM.js deleted file mode 100644 index 240bbaf9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KM.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"50":0.01003,"57":0.01003,"72":0.01672,"99":0.01003,"112":0.03344,"115":0.13376,"122":0.0301,"127":0.03344,"134":0.00334,"140":0.0535,"141":0.09029,"142":0.08026,"143":0.80256,"144":0.6387,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 123 124 125 126 128 129 130 131 132 133 135 136 137 138 139 145 146 147 3.5 3.6"},D:{"44":0.00334,"49":0.01003,"63":0.08026,"70":0.03344,"74":0.10032,"75":0.01003,"79":0.00334,"80":0.01338,"81":0.00334,"83":0.0301,"85":0.02341,"86":0.04347,"88":0.02675,"91":0.04682,"94":0.02341,"95":0.00334,"101":0.01672,"103":0.04347,"104":0.0535,"105":0.01672,"109":0.68886,"111":0.03344,"114":0.1137,"115":0.0301,"116":0.01003,"122":0.01003,"125":0.09698,"126":0.18392,"127":0.00334,"128":0.34778,"129":0.04013,"130":0.01338,"131":0.59523,"132":0.03344,"133":0.0301,"134":0.01338,"135":0.18726,"136":0.01338,"137":0.08694,"138":5.016,"139":0.4715,"140":4.65819,"141":5.74165,"142":0.0836,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 64 65 66 67 68 69 71 72 73 76 77 78 84 87 89 90 92 93 96 97 98 99 100 102 106 107 108 110 112 113 117 118 119 120 121 123 124 143 144 145"},F:{"50":0.00334,"91":0.03344,"92":0.10366,"116":0.00334,"120":0.16051,"121":0.01003,"122":0.65542,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01003,"13":0.00334,"14":0.00334,"16":0.06019,"17":0.00334,"18":0.07022,"84":0.09029,"90":0.01338,"92":0.04682,"100":0.02341,"109":0.02675,"114":0.01672,"115":0.01003,"121":0.01338,"122":0.00334,"126":0.01003,"129":0.00334,"135":0.00334,"137":0.12707,"138":0.0301,"140":0.51832,"141":1.4513,_:"15 79 80 81 83 85 86 87 88 89 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 116 117 118 119 120 123 124 125 127 128 130 131 132 133 134 136 139 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.3 17.5 18.0 18.2 18.3 18.4 26.2","12.1":0.01003,"13.1":0.07357,"15.6":0.10366,"16.6":0.14379,"17.4":0.0301,"17.6":0.10032,"18.1":0.05685,"18.5-18.6":0.29762,"26.0":0.95973,"26.1":0.01338},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00044,"5.0-5.1":0,"6.0-6.1":0.00176,"7.0-7.1":0.00132,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00397,"10.0-10.2":0.00044,"10.3":0.00749,"11.0-11.2":0.11102,"11.3-11.4":0.00264,"12.0-12.1":0.00088,"12.2-12.5":0.02159,"13.0-13.1":0,"13.2":0.0022,"13.3":0.00088,"13.4-13.7":0.00352,"14.0-14.4":0.00749,"14.5-14.8":0.00793,"15.0-15.1":0.00749,"15.2-15.3":0.00573,"15.4":0.00661,"15.5":0.00749,"15.6-15.8":0.0978,"16.0":0.01322,"16.1":0.02467,"16.2":0.01278,"16.3":0.02291,"16.4":0.00573,"16.5":0.01013,"16.6-16.7":0.13085,"17.0":0.00925,"17.1":0.0141,"17.2":0.01013,"17.3":0.01498,"17.4":0.02643,"17.5":0.04538,"17.6-17.7":0.11455,"18.0":0.02599,"18.1":0.05375,"18.2":0.02908,"18.3":0.0934,"18.4":0.04802,"18.5-18.6":2.44864,"26.0":0.30267,"26.1":0.01101},P:{"4":0.04073,"20":0.01018,"22":0.07127,"24":0.02036,"25":0.06109,"26":0.04073,"27":0.17309,"28":0.62108,"29":0.01018,_:"21 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 17.0 18.0","7.2-7.4":0.08145,"11.1-11.2":0.03054,"16.0":0.01018,"19.0":0.02036},I:{"0":0.03323,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.98494,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.09983},Q:{_:"14.9"},O:{"0":0.03993},H:{"0":0},L:{"0":65.22953}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KN.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KN.js deleted file mode 100644 index 8961b1a2..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KN.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.19889,"141":0.01047,"143":0.35591,"144":0.37685,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 142 145 146 147 3.5 3.6"},D:{"39":0.03664,"40":0.02617,"41":0.02094,"42":0.02617,"43":0.0157,"44":0.02617,"45":0.02617,"46":0.02094,"47":0.0157,"48":0.0157,"49":0.01047,"50":0.01047,"51":0.0157,"52":0.02094,"53":0.0157,"54":0.0157,"55":0.01047,"56":0.0157,"57":0.0157,"58":0.01047,"59":0.02094,"60":0.02094,"79":0.01047,"83":0.00523,"87":0.0157,"91":0.00523,"93":0.01047,"97":0.21983,"102":0.00523,"103":0.64902,"109":0.05234,"114":0.02094,"116":0.0157,"117":0.00523,"119":0.00523,"120":0.01047,"122":0.04187,"124":0.00523,"125":12.0539,"126":0.01047,"127":0.00523,"128":0.35591,"130":0.01047,"131":0.0314,"132":0.0314,"133":0.0157,"134":0.12562,"135":0.00523,"136":0.01047,"137":0.56004,"138":0.12562,"139":0.46059,"140":4.62686,"141":11.52003,"142":0.0157,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 84 85 86 88 89 90 92 94 95 96 98 99 100 101 104 105 106 107 108 110 111 112 113 115 118 121 123 129 143 144 145"},F:{"120":0.04187,"121":0.05757,"122":2.24015,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00523,"103":0.00523,"109":0.00523,"114":0.0157,"127":0.01047,"128":0.01047,"131":0.01047,"134":0.50246,"136":0.02094,"138":0.11515,"139":0.02617,"140":1.44982,"141":5.16072,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 129 130 132 133 135 137 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.5 16.0 16.3 16.4 16.5 17.0 17.2 17.3 18.1 18.2 26.2","13.1":0.06804,"14.1":0.01047,"15.4":0.00523,"15.6":0.02094,"16.1":0.00523,"16.2":0.00523,"16.6":0.03664,"17.1":0.03664,"17.4":0.11515,"17.5":0.0314,"17.6":0.08898,"18.0":0.00523,"18.3":0.00523,"18.4":0.01047,"18.5-18.6":0.08374,"26.0":0.25647,"26.1":0.12562},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0012,"5.0-5.1":0,"6.0-6.1":0.00479,"7.0-7.1":0.00359,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01078,"10.0-10.2":0.0012,"10.3":0.02037,"11.0-11.2":0.30194,"11.3-11.4":0.00719,"12.0-12.1":0.0024,"12.2-12.5":0.05871,"13.0-13.1":0,"13.2":0.00599,"13.3":0.0024,"13.4-13.7":0.00959,"14.0-14.4":0.02037,"14.5-14.8":0.02157,"15.0-15.1":0.02037,"15.2-15.3":0.01558,"15.4":0.01797,"15.5":0.02037,"15.6-15.8":0.26599,"16.0":0.03595,"16.1":0.0671,"16.2":0.03475,"16.3":0.0623,"16.4":0.01558,"16.5":0.02756,"16.6-16.7":0.35586,"17.0":0.02516,"17.1":0.03834,"17.2":0.02756,"17.3":0.04074,"17.4":0.07189,"17.5":0.12341,"17.6-17.7":0.31152,"18.0":0.07069,"18.1":0.14618,"18.2":0.07908,"18.3":0.25401,"18.4":0.1306,"18.5-18.6":6.65944,"26.0":0.82314,"26.1":0.02995},P:{"20":0.01089,"22":0.03267,"23":0.01089,"24":0.17426,"25":0.04357,"26":0.02178,"27":0.05446,"28":2.6684,"29":0.11981,_:"4 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0 19.0","7.2-7.4":0.08713,"16.0":0.02178},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.94843,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.2383},Q:{_:"14.9"},O:{"0":0.00477},H:{"0":0},L:{"0":33.86527}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KP.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KP.js deleted file mode 100644 index 60ea7f86..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KP.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"142":1.72437,"143":0.34525,"144":0.34525,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 145 146 147 3.5 3.6"},D:{"109":0.34525,"140":2.41488,"141":11.03675,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 142 143 144 145"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"140":0.34525,"141":1.72437,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.4 17.5 17.6 18.0 18.1 18.2 18.3 18.4 18.5-18.6 26.0 26.1 26.2"},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00028,"5.0-5.1":0,"6.0-6.1":0.0011,"7.0-7.1":0.00083,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00248,"10.0-10.2":0.00028,"10.3":0.00468,"11.0-11.2":0.06943,"11.3-11.4":0.00165,"12.0-12.1":0.00055,"12.2-12.5":0.0135,"13.0-13.1":0,"13.2":0.00138,"13.3":0.00055,"13.4-13.7":0.0022,"14.0-14.4":0.00468,"14.5-14.8":0.00496,"15.0-15.1":0.00468,"15.2-15.3":0.00358,"15.4":0.00413,"15.5":0.00468,"15.6-15.8":0.06116,"16.0":0.00827,"16.1":0.01543,"16.2":0.00799,"16.3":0.01433,"16.4":0.00358,"16.5":0.00634,"16.6-16.7":0.08182,"17.0":0.00579,"17.1":0.00882,"17.2":0.00634,"17.3":0.00937,"17.4":0.01653,"17.5":0.02838,"17.6-17.7":0.07163,"18.0":0.01625,"18.1":0.03361,"18.2":0.01818,"18.3":0.05841,"18.4":0.03003,"18.5-18.6":1.53124,"26.0":0.18927,"26.1":0.00689},P:{_:"4 20 21 22 23 24 25 26 27 28 29 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":78.62023}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KR.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KR.js deleted file mode 100644 index f6fc01a7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KR.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.00443,"115":0.01774,"132":0.00443,"135":0.00443,"140":0.00887,"142":0.00887,"143":0.23057,"144":0.19066,"145":0.00887,"146":0.00443,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 133 134 136 137 138 139 141 147 3.5 3.6"},D:{"39":0.00887,"40":0.00887,"41":0.00887,"42":0.01774,"43":0.00887,"44":0.00887,"45":0.00887,"46":0.00887,"47":0.00887,"48":0.00887,"49":0.00887,"50":0.00887,"51":0.00887,"52":0.00887,"53":0.00887,"54":0.00887,"55":0.00887,"56":0.00887,"57":0.00887,"58":0.00887,"59":0.00887,"60":0.00887,"61":0.00443,"65":0.00443,"71":0.00443,"79":0.00443,"87":0.00887,"91":0.00443,"98":0.00443,"103":0.00443,"104":0.00443,"105":0.00887,"106":0.00443,"108":0.00887,"109":0.31481,"111":1.14841,"112":0.00443,"114":0.00443,"115":0.00443,"116":0.01774,"118":0.00443,"119":0.00443,"120":0.0133,"121":0.06651,"122":0.03104,"123":0.07538,"124":0.02217,"125":0.54538,"126":0.02217,"127":0.00887,"128":0.03547,"129":0.0133,"130":0.0266,"131":0.07094,"132":0.0266,"133":0.06651,"134":0.04877,"135":0.04434,"136":0.07094,"137":0.06651,"138":0.18623,"139":0.27934,"140":6.14996,"141":18.24591,"142":0.22613,"143":0.00887,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 62 63 64 66 67 68 69 70 72 73 74 75 76 77 78 80 81 83 84 85 86 88 89 90 92 93 94 95 96 97 99 100 101 102 107 110 113 117 144 145"},F:{"91":0.02217,"92":0.04434,"95":0.00443,"114":0.00443,"120":0.04877,"121":0.00443,"122":0.1951,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00443,"109":0.03547,"112":0.00443,"113":0.00443,"114":0.00443,"116":0.00443,"117":0.00443,"119":0.00887,"120":0.00443,"121":0.00443,"122":0.00443,"124":0.00443,"125":0.00443,"126":0.00443,"127":0.00887,"128":0.00887,"129":0.00443,"130":0.00887,"131":0.02217,"132":0.0133,"133":0.01774,"134":0.02217,"135":0.01774,"136":0.02217,"137":0.01774,"138":0.03547,"139":0.04434,"140":0.97548,"141":5.47599,"142":0.00887,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 115 118 123"},E:{"8":0.00443,_:"0 4 5 6 7 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.5 17.0 18.2 26.2","15.6":0.01774,"16.3":0.00443,"16.4":0.00443,"16.6":0.01774,"17.1":0.0133,"17.2":0.00443,"17.3":0.00443,"17.4":0.00887,"17.5":0.00887,"17.6":0.02217,"18.0":0.00443,"18.1":0.00443,"18.3":0.01774,"18.4":0.00887,"18.5-18.6":0.03547,"26.0":0.2217,"26.1":0.0133},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00085,"5.0-5.1":0,"6.0-6.1":0.00339,"7.0-7.1":0.00254,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00763,"10.0-10.2":0.00085,"10.3":0.01441,"11.0-11.2":0.21362,"11.3-11.4":0.00509,"12.0-12.1":0.0017,"12.2-12.5":0.04154,"13.0-13.1":0,"13.2":0.00424,"13.3":0.0017,"13.4-13.7":0.00678,"14.0-14.4":0.01441,"14.5-14.8":0.01526,"15.0-15.1":0.01441,"15.2-15.3":0.01102,"15.4":0.01272,"15.5":0.01441,"15.6-15.8":0.18819,"16.0":0.02543,"16.1":0.04747,"16.2":0.02458,"16.3":0.04408,"16.4":0.01102,"16.5":0.0195,"16.6-16.7":0.25177,"17.0":0.0178,"17.1":0.02713,"17.2":0.0195,"17.3":0.02882,"17.4":0.05086,"17.5":0.08731,"17.6-17.7":0.2204,"18.0":0.05001,"18.1":0.10342,"18.2":0.05595,"18.3":0.17971,"18.4":0.0924,"18.5-18.6":4.71153,"26.0":0.58237,"26.1":0.02119},P:{"22":0.01014,"23":0.01014,"24":0.01014,"25":0.02028,"26":0.05071,"27":0.22313,"28":13.11413,"29":1.45036,_:"4 20 21 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.08893,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.14472,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.30151,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.18924},Q:{"14.9":0.01113},O:{"0":0.0334},H:{"0":0},L:{"0":32.16769}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KW.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KW.js deleted file mode 100644 index 58936950..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KW.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"48":0.00337,"115":0.02022,"121":0.00674,"125":0.01348,"128":0.00674,"132":0.00674,"134":0.00674,"140":0.01011,"142":0.01011,"143":0.25612,"144":0.24264,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 122 123 124 126 127 129 130 131 133 135 136 137 138 139 141 145 146 147 3.5 3.6"},D:{"39":0.00337,"40":0.00337,"41":0.00674,"42":0.00337,"43":0.00337,"44":0.00337,"45":0.00337,"46":0.00337,"47":0.00674,"48":0.00337,"49":0.00337,"50":0.00337,"51":0.00337,"52":0.00337,"53":0.00337,"54":0.00337,"55":0.00337,"56":0.00674,"57":0.00337,"58":0.00674,"59":0.00337,"60":0.00337,"66":0.00337,"68":0.00337,"70":0.00674,"74":0.00337,"78":0.00337,"79":0.00337,"87":0.01011,"88":0.00337,"89":0.00337,"91":0.01685,"93":0.00337,"96":0.00337,"98":0.00674,"99":0.00337,"101":0.00337,"103":0.06403,"109":0.27971,"110":0.00337,"111":0.01011,"112":3.2689,"113":0.00337,"114":0.02696,"116":0.01685,"117":0.01685,"119":0.01348,"120":0.01011,"121":0.01011,"122":0.02359,"123":0.00337,"124":0.00337,"125":3.28575,"126":0.24938,"127":0.00674,"128":0.04381,"129":0.01011,"130":0.00674,"131":0.02696,"132":0.01011,"133":0.08088,"134":0.01348,"135":0.07077,"136":0.05055,"137":0.07077,"138":0.16513,"139":0.28645,"140":4.06759,"141":8.64068,"142":0.08425,"143":0.00337,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 69 71 72 73 75 76 77 80 81 83 84 85 86 90 92 94 95 97 100 102 104 105 106 107 108 115 118 144 145"},F:{"46":0.00674,"85":0.00674,"90":0.00674,"91":0.04044,"92":0.09099,"95":0.00337,"114":0.00337,"120":0.05729,"121":0.0674,"122":0.82902,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00337,"92":0.00674,"109":0.00674,"114":0.02022,"131":0.00337,"132":0.00337,"134":0.01685,"135":0.00674,"136":0.00337,"137":0.01011,"138":0.02696,"139":0.02022,"140":0.46169,"141":1.88383,"142":0.01011,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 133"},E:{"7":0.00337,"14":0.00674,_:"0 4 5 6 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 16.0 26.2","5.1":0.00337,"13.1":0.01348,"14.1":0.00674,"15.5":0.00337,"15.6":0.02696,"16.1":0.01685,"16.2":0.00337,"16.3":0.01011,"16.4":0.00337,"16.5":0.00674,"16.6":0.05729,"17.0":0.00337,"17.1":0.02022,"17.2":0.00337,"17.3":0.00674,"17.4":0.01348,"17.5":0.02359,"17.6":0.07077,"18.0":0.01348,"18.1":0.01348,"18.2":0.01685,"18.3":0.0337,"18.4":0.02022,"18.5-18.6":0.11458,"26.0":0.33026,"26.1":0.01011},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00196,"5.0-5.1":0,"6.0-6.1":0.00785,"7.0-7.1":0.00589,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01766,"10.0-10.2":0.00196,"10.3":0.03337,"11.0-11.2":0.49462,"11.3-11.4":0.01178,"12.0-12.1":0.00393,"12.2-12.5":0.09618,"13.0-13.1":0,"13.2":0.00981,"13.3":0.00393,"13.4-13.7":0.0157,"14.0-14.4":0.03337,"14.5-14.8":0.03533,"15.0-15.1":0.03337,"15.2-15.3":0.02552,"15.4":0.02944,"15.5":0.03337,"15.6-15.8":0.43574,"16.0":0.05888,"16.1":0.10992,"16.2":0.05692,"16.3":0.10206,"16.4":0.02552,"16.5":0.04514,"16.6-16.7":0.58294,"17.0":0.04122,"17.1":0.06281,"17.2":0.04514,"17.3":0.06673,"17.4":0.11777,"17.5":0.20217,"17.6-17.7":0.51032,"18.0":0.1158,"18.1":0.23946,"18.2":0.12954,"18.3":0.41611,"18.4":0.21394,"18.5-18.6":10.90911,"26.0":1.34843,"26.1":0.04907},P:{"4":0.03057,"21":0.02038,"22":0.04076,"23":0.05096,"24":0.03057,"25":0.06115,"26":0.06115,"27":0.23439,"28":2.68023,"29":0.15287,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 16.0 17.0","7.2-7.4":0.01019,"11.1-11.2":0.02038,"15.0":0.03057,"18.0":0.01019,"19.0":0.02038},I:{"0":0.02649,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":1.08085,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00337,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.11936},Q:{_:"14.9"},O:{"0":0.93497},H:{"0":0},L:{"0":47.3165}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KY.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KY.js deleted file mode 100644 index 5f496a93..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KY.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"111":0.01104,"134":0.05518,"140":0.09932,"142":0.00552,"143":0.29797,"144":0.17106,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 135 136 137 138 139 141 145 146 147 3.5 3.6"},D:{"39":0.01104,"40":0.00552,"41":0.01104,"42":0.00552,"43":0.00552,"44":0.00552,"45":0.01104,"46":0.00552,"47":0.00552,"48":0.01655,"49":0.01104,"50":0.00552,"51":0.00552,"52":0.01104,"53":0.01104,"54":0.00552,"55":0.00552,"56":0.01655,"57":0.01104,"58":0.01104,"59":0.01104,"60":0.01104,"75":0.00552,"79":0.00552,"87":0.02759,"93":0.01104,"98":0.01655,"102":0.08829,"103":0.03311,"106":0.00552,"108":0.00552,"109":0.28694,"111":0.01655,"112":0.01104,"114":0.04966,"115":0.00552,"116":0.24831,"120":0.01104,"122":0.04966,"124":0.00552,"125":7.54311,"126":0.02759,"127":0.01655,"128":0.05518,"129":0.00552,"131":0.02207,"132":0.02207,"133":0.00552,"134":0.0607,"135":0.02207,"136":0.00552,"137":0.36419,"138":1.18637,"139":0.54628,"140":6.94716,"141":15.81459,"142":0.39178,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 80 81 83 84 85 86 88 89 90 91 92 94 95 96 97 99 100 101 104 105 107 110 113 117 118 119 121 123 130 143 144 145"},F:{"118":0.00552,"120":0.05518,"121":0.05518,"122":0.85529,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00552,"18":0.00552,"92":0.00552,"109":0.05518,"110":0.08829,"114":0.01655,"123":0.00552,"128":0.00552,"129":0.00552,"130":0.00552,"133":0.03311,"134":0.16002,"135":0.01655,"136":0.01104,"138":0.14347,"139":0.08829,"140":3.31632,"141":7.21203,"142":0.00552,_:"13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 111 112 113 115 116 117 118 119 120 121 122 124 125 126 127 131 132 137"},E:{"15":0.00552,_:"0 4 5 6 7 8 9 10 11 12 13 14 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 15.5 16.0 16.2 17.0 26.2","13.1":0.02207,"14.1":0.17658,"15.1":0.01655,"15.6":0.29245,"16.1":0.00552,"16.3":0.33108,"16.4":0.03863,"16.5":0.03311,"16.6":0.16002,"17.1":0.05518,"17.2":0.00552,"17.3":0.00552,"17.4":0.01104,"17.5":0.04414,"17.6":0.04966,"18.0":0.00552,"18.1":0.00552,"18.2":0.14899,"18.3":0.03863,"18.4":0.06622,"18.5-18.6":0.22624,"26.0":0.64561,"26.1":0.00552},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00211,"5.0-5.1":0,"6.0-6.1":0.00845,"7.0-7.1":0.00633,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.019,"10.0-10.2":0.00211,"10.3":0.03589,"11.0-11.2":0.53209,"11.3-11.4":0.01267,"12.0-12.1":0.00422,"12.2-12.5":0.10346,"13.0-13.1":0,"13.2":0.01056,"13.3":0.00422,"13.4-13.7":0.01689,"14.0-14.4":0.03589,"14.5-14.8":0.03801,"15.0-15.1":0.03589,"15.2-15.3":0.02745,"15.4":0.03167,"15.5":0.03589,"15.6-15.8":0.46875,"16.0":0.06334,"16.1":0.11824,"16.2":0.06123,"16.3":0.1098,"16.4":0.02745,"16.5":0.04856,"16.6-16.7":0.62711,"17.0":0.04434,"17.1":0.06757,"17.2":0.04856,"17.3":0.07179,"17.4":0.12669,"17.5":0.21748,"17.6-17.7":0.54898,"18.0":0.12458,"18.1":0.2576,"18.2":0.13936,"18.3":0.44763,"18.4":0.23015,"18.5-18.6":11.73555,"26.0":1.45058,"26.1":0.05279},P:{"4":0.01048,"25":0.02097,"26":0.01048,"28":3.62777,"29":0.39843,_:"20 21 22 23 24 27 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.01048},I:{"0":0.00448,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.17928,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.25547},Q:{_:"14.9"},O:{"0":0.00448},H:{"0":0},L:{"0":20.10043}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KZ.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KZ.js deleted file mode 100644 index 308bacae..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/KZ.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.22462,"68":0.00591,"71":0.00591,"101":0.00591,"115":0.2128,"122":0.01773,"125":0.02364,"127":0.00591,"128":0.01773,"133":0.02956,"134":0.00591,"135":0.00591,"136":0.02956,"139":0.01182,"140":0.05911,"141":0.01182,"142":0.01773,"143":0.76252,"144":0.86892,"145":0.00591,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 123 124 126 129 130 131 132 137 138 146 147 3.5 3.6"},D:{"39":0.01182,"40":0.01773,"41":0.01182,"42":0.01182,"43":0.01182,"44":0.01182,"45":0.01182,"46":0.01182,"47":0.01182,"48":0.01773,"49":0.02364,"50":0.01182,"51":0.01182,"52":0.01182,"53":0.01182,"54":0.01182,"55":0.01182,"56":0.01182,"57":0.01182,"58":0.01182,"59":0.01182,"60":0.01182,"64":0.00591,"74":0.02364,"79":0.00591,"80":0.00591,"87":0.01773,"90":0.00591,"99":0.00591,"100":0.00591,"101":0.00591,"102":0.00591,"103":0.01182,"104":0.03547,"106":0.13004,"107":0.00591,"108":0.04138,"109":1.80286,"112":9.19752,"113":0.00591,"114":0.04138,"116":0.01773,"119":0.01182,"120":0.01773,"121":0.01773,"122":0.07684,"123":0.04138,"124":0.04138,"125":2.65404,"126":0.82754,"127":0.01773,"128":0.07093,"129":0.03547,"130":0.01773,"131":0.06502,"132":0.07093,"133":0.13595,"134":0.11231,"135":0.0532,"136":0.06502,"137":0.20097,"138":0.28964,"139":0.49652,"140":5.29035,"141":14.346,"142":0.15369,"143":0.00591,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 65 66 67 68 69 70 71 72 73 75 76 77 78 81 83 84 85 86 88 89 91 92 93 94 95 96 97 98 105 110 111 115 117 118 144 145"},F:{"54":0.00591,"79":0.01182,"85":0.01773,"86":0.00591,"87":0.0532,"90":0.00591,"91":0.01182,"92":0.02364,"95":0.33693,"108":0.00591,"114":0.00591,"116":0.00591,"118":0.01182,"119":0.00591,"120":0.27191,"121":0.09458,"122":1.76739,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 109 110 111 112 113 115 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00591,"92":0.01182,"101":0.00591,"109":0.01182,"114":0.24826,"122":0.00591,"123":0.00591,"126":0.00591,"127":0.01773,"131":0.01182,"132":0.00591,"133":0.01773,"134":0.02364,"135":0.01182,"136":0.00591,"137":0.01182,"138":0.04729,"139":0.02364,"140":0.62066,"141":2.86092,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 124 125 128 129 130 142"},E:{"14":0.00591,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 15.2-15.3 16.0 26.2","11.1":0.00591,"13.1":0.00591,"14.1":0.01182,"15.1":0.00591,"15.4":0.04729,"15.5":0.00591,"15.6":0.08867,"16.1":0.04138,"16.2":0.00591,"16.3":0.01773,"16.4":0.02364,"16.5":0.01773,"16.6":0.09458,"17.0":0.01182,"17.1":0.08867,"17.2":0.01182,"17.3":0.01773,"17.4":0.06502,"17.5":0.05911,"17.6":0.14778,"18.0":0.02364,"18.1":0.03547,"18.2":0.04138,"18.3":0.1064,"18.4":0.06502,"18.5-18.6":0.23053,"26.0":0.51426,"26.1":0.01773},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00141,"5.0-5.1":0,"6.0-6.1":0.00563,"7.0-7.1":0.00422,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01266,"10.0-10.2":0.00141,"10.3":0.02392,"11.0-11.2":0.35455,"11.3-11.4":0.00844,"12.0-12.1":0.00281,"12.2-12.5":0.06894,"13.0-13.1":0,"13.2":0.00703,"13.3":0.00281,"13.4-13.7":0.01126,"14.0-14.4":0.02392,"14.5-14.8":0.02533,"15.0-15.1":0.02392,"15.2-15.3":0.01829,"15.4":0.0211,"15.5":0.02392,"15.6-15.8":0.31235,"16.0":0.04221,"16.1":0.07879,"16.2":0.0408,"16.3":0.07316,"16.4":0.01829,"16.5":0.03236,"16.6-16.7":0.41787,"17.0":0.02955,"17.1":0.04502,"17.2":0.03236,"17.3":0.04784,"17.4":0.08442,"17.5":0.14492,"17.6-17.7":0.36581,"18.0":0.08301,"18.1":0.17165,"18.2":0.09286,"18.3":0.29828,"18.4":0.15336,"18.5-18.6":7.81988,"26.0":0.96658,"26.1":0.03517},P:{"4":0.04207,"21":0.03155,"22":0.01052,"23":0.01052,"24":0.03155,"25":0.02103,"26":0.05259,"27":0.04207,"28":1.1043,"29":0.07362,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 19.0","7.2-7.4":0.04207,"18.0":0.01052},I:{"0":0.02451,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.42536,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00665,"8":0.00665,"11":0.0399,_:"7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.13088},Q:{"14.9":0.01227},O:{"0":0.17178},H:{"0":0},L:{"0":24.56504}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LA.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LA.js deleted file mode 100644 index dcdee77e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LA.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"3":0.00469,"101":0.00469,"115":0.03754,"125":0.03284,"130":0.00469,"133":0.00469,"142":0.00938,"143":1.173,"144":0.28152,_:"2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 128 129 131 132 134 135 136 137 138 139 140 141 145 146 147 3.5 3.6"},D:{"39":0.00469,"40":0.00469,"41":0.00469,"42":0.00469,"43":0.00938,"44":0.00469,"45":0.00469,"46":0.00469,"47":0.00469,"48":0.03754,"49":0.00469,"50":0.00469,"51":0.00469,"52":0.00469,"53":0.00938,"54":0.00469,"55":0.00469,"56":0.00469,"57":0.00469,"58":0.00469,"59":0.00469,"60":0.00469,"70":0.00469,"71":0.00469,"73":0.00469,"79":0.00469,"83":0.00469,"86":0.1173,"90":0.00938,"91":0.01408,"97":0.00469,"98":0.00469,"99":0.00469,"102":0.00938,"103":0.00469,"104":0.09384,"105":0.01408,"108":0.00469,"109":0.31436,"111":0.01408,"114":0.02815,"115":0.00469,"116":0.00938,"119":0.00469,"120":0.01408,"121":0.00938,"122":0.00938,"123":0.00469,"124":0.04223,"125":23.90574,"126":0.02346,"127":0.00938,"128":0.01408,"129":0.00469,"130":0.03284,"131":0.08915,"132":0.02346,"133":0.02815,"134":1.23869,"135":0.03284,"136":0.06569,"137":0.04223,"138":0.21583,"139":0.15014,"140":2.22401,"141":6.57818,"142":0.04223,"143":0.00469,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 72 74 75 76 77 78 80 81 84 85 87 88 89 92 93 94 95 96 100 101 106 107 110 112 113 117 118 144 145"},F:{"92":0.01408,"117":0.00469,"120":0.01877,"121":0.00469,"122":0.14545,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00469,"18":0.01408,"92":0.01408,"109":0.01877,"110":0.00469,"114":0.02346,"117":0.02815,"129":0.00469,"131":0.00938,"133":0.00469,"134":0.00469,"135":0.00469,"136":0.00469,"138":0.00469,"139":0.01877,"140":0.28152,"141":1.24338,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 111 112 113 115 116 118 119 120 121 122 123 124 125 126 127 128 130 132 137 142"},E:{"4":0.00469,_:"0 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.3 16.4 17.0 17.2 18.1 26.2","13.1":0.00469,"14.1":0.00469,"15.6":0.01877,"16.2":0.00469,"16.5":0.00469,"16.6":0.03284,"17.1":0.00469,"17.3":0.00469,"17.4":0.00469,"17.5":0.00938,"17.6":0.02815,"18.0":0.00469,"18.2":0.00938,"18.3":0.01408,"18.4":0.01408,"18.5-18.6":0.02815,"26.0":0.32375,"26.1":0.00469},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00117,"5.0-5.1":0,"6.0-6.1":0.00468,"7.0-7.1":0.00351,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01052,"10.0-10.2":0.00117,"10.3":0.01988,"11.0-11.2":0.29468,"11.3-11.4":0.00702,"12.0-12.1":0.00234,"12.2-12.5":0.0573,"13.0-13.1":0,"13.2":0.00585,"13.3":0.00234,"13.4-13.7":0.00935,"14.0-14.4":0.01988,"14.5-14.8":0.02105,"15.0-15.1":0.01988,"15.2-15.3":0.0152,"15.4":0.01754,"15.5":0.01988,"15.6-15.8":0.2596,"16.0":0.03508,"16.1":0.06548,"16.2":0.03391,"16.3":0.06081,"16.4":0.0152,"16.5":0.0269,"16.6-16.7":0.3473,"17.0":0.02456,"17.1":0.03742,"17.2":0.0269,"17.3":0.03976,"17.4":0.07016,"17.5":0.12044,"17.6-17.7":0.30403,"18.0":0.06899,"18.1":0.14266,"18.2":0.07718,"18.3":0.2479,"18.4":0.12746,"18.5-18.6":6.49926,"26.0":0.80335,"26.1":0.02923},P:{"4":0.03079,"20":0.01026,"21":0.02052,"22":0.05131,"23":0.04105,"24":0.01026,"25":0.06157,"26":0.06157,"27":0.14367,"28":1.42644,"29":0.09236,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.04105,"11.1-11.2":0.01026},I:{"0":0.0265,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.27071,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.11797,"9":0.01475,"10":0.04424,"11":0.02949,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.12739},Q:{"14.9":0.02654},O:{"0":0.84928},H:{"0":0},L:{"0":44.08607}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LB.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LB.js deleted file mode 100644 index dfe808d4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LB.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"78":0.00939,"91":0.00469,"112":0.00469,"115":0.13143,"127":0.00469,"128":0.00469,"136":0.00939,"137":0.00469,"138":0.00469,"139":0.00939,"140":0.01408,"141":0.00939,"142":0.0798,"143":0.47409,"144":0.42246,"145":0.00469,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 133 134 135 146 147 3.5 3.6"},D:{"38":0.00469,"39":0.00469,"40":0.00469,"41":0.00469,"42":0.00469,"43":0.00469,"44":0.00469,"45":0.00469,"46":0.00469,"47":0.00469,"48":0.00469,"49":0.02347,"50":0.00469,"51":0.00469,"52":0.00469,"53":0.00469,"54":0.00469,"55":0.00469,"56":0.00469,"58":0.00469,"59":0.00469,"60":0.00469,"67":0.00939,"69":0.00469,"72":0.00469,"73":0.00469,"75":0.00469,"79":0.02347,"80":0.00469,"81":0.00469,"83":0.01408,"85":0.00939,"86":0.00469,"87":0.06572,"89":0.00469,"90":0.00469,"94":0.00939,"96":0.00469,"98":0.03755,"99":0.00469,"100":0.00469,"102":0.00469,"103":0.01878,"106":0.00469,"107":0.00469,"108":0.01408,"109":1.02329,"110":0.00469,"111":0.01408,"112":5.74546,"113":0.00469,"114":0.00939,"116":0.13613,"118":0.00939,"119":0.01878,"120":0.03286,"121":0.00939,"122":0.06102,"123":0.02816,"124":0.01878,"125":4.86768,"126":0.46471,"127":0.01878,"128":0.03755,"129":0.02347,"130":0.00939,"131":0.10327,"132":0.04694,"133":0.03755,"134":0.02347,"135":0.09388,"136":0.06102,"137":0.10796,"138":0.71349,"139":0.53042,"140":5.75954,"141":10.78212,"142":0.10796,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 57 61 62 63 64 65 66 68 70 71 74 76 77 78 84 88 91 92 93 95 97 101 104 105 115 117 143 144 145"},F:{"91":0.00939,"92":0.05633,"95":0.04225,"117":0.00469,"118":0.00469,"119":0.00469,"120":0.08919,"121":0.05163,"122":0.69941,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00469,"15":0.00469,"16":0.00469,"17":0.00469,"18":0.01408,"84":0.00469,"92":0.02816,"100":0.00469,"109":0.02816,"114":0.35674,"122":0.00939,"123":0.00469,"126":0.00469,"130":0.00469,"131":0.00469,"133":0.00469,"134":0.00469,"135":0.00469,"136":0.00939,"137":0.01878,"138":0.01878,"139":0.01878,"140":0.56797,"141":2.49721,_:"12 13 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 124 125 127 128 129 132 142"},E:{"14":0.00939,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 15.4 15.5 16.0 26.2","5.1":0.02816,"12.1":0.00469,"13.1":0.00939,"14.1":0.01878,"15.6":0.35674,"16.1":0.00939,"16.2":0.00469,"16.3":0.00469,"16.4":0.00469,"16.5":0.00469,"16.6":0.14082,"17.0":0.00469,"17.1":0.06572,"17.2":0.00469,"17.3":0.00469,"17.4":0.01408,"17.5":0.01878,"17.6":0.09857,"18.0":0.00939,"18.1":0.02347,"18.2":0.01878,"18.3":0.05163,"18.4":0.00939,"18.5-18.6":0.16898,"26.0":0.32858,"26.1":0.00469},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00125,"5.0-5.1":0,"6.0-6.1":0.00501,"7.0-7.1":0.00375,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01126,"10.0-10.2":0.00125,"10.3":0.02127,"11.0-11.2":0.31537,"11.3-11.4":0.00751,"12.0-12.1":0.0025,"12.2-12.5":0.06132,"13.0-13.1":0,"13.2":0.00626,"13.3":0.0025,"13.4-13.7":0.01001,"14.0-14.4":0.02127,"14.5-14.8":0.02253,"15.0-15.1":0.02127,"15.2-15.3":0.01627,"15.4":0.01877,"15.5":0.02127,"15.6-15.8":0.27782,"16.0":0.03754,"16.1":0.07008,"16.2":0.03629,"16.3":0.06508,"16.4":0.01627,"16.5":0.02878,"16.6-16.7":0.37168,"17.0":0.02628,"17.1":0.04005,"17.2":0.02878,"17.3":0.04255,"17.4":0.07509,"17.5":0.1289,"17.6-17.7":0.32538,"18.0":0.07384,"18.1":0.15268,"18.2":0.0826,"18.3":0.26531,"18.4":0.13641,"18.5-18.6":6.95556,"26.0":0.85975,"26.1":0.03129},P:{"4":0.04117,"20":0.01029,"21":0.03088,"22":0.05147,"23":0.05147,"24":0.07206,"25":0.26763,"26":0.14411,"27":0.23675,"28":3.74687,"29":0.24705,_:"5.0-5.4 9.2 10.1 12.0 14.0 16.0 18.0","6.2-6.4":0.01029,"7.2-7.4":0.14411,"8.2":0.03088,"11.1-11.2":0.01029,"13.0":0.02059,"15.0":0.01029,"17.0":0.04117,"19.0":0.01029},I:{"0":0.02119,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.27056,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00469,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.16446},Q:{_:"14.9"},O:{"0":0.08488},H:{"0":0},L:{"0":42.00782}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LC.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LC.js deleted file mode 100644 index e38135a7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LC.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"91":0.00463,"128":0.00925,"134":0.00925,"137":0.00463,"140":0.04163,"142":0.01388,"143":0.2128,"144":0.34232,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 135 136 138 139 141 145 146 147 3.5 3.6"},D:{"39":0.0185,"40":0.01388,"41":0.00925,"42":0.0185,"43":0.0185,"44":0.02313,"45":0.0185,"46":0.02313,"47":0.01388,"48":0.00925,"49":0.02776,"50":0.01388,"51":0.00925,"52":0.01388,"53":0.00925,"54":0.01388,"55":0.00925,"56":0.02313,"57":0.00925,"58":0.01388,"59":0.01388,"60":0.01388,"75":0.01388,"76":0.00925,"79":0.01388,"81":0.00463,"84":0.02776,"93":0.01388,"94":0.00463,"95":0.00463,"97":0.00463,"103":0.05551,"106":0.00463,"108":0.24518,"109":0.09715,"116":0.00925,"121":0.00463,"122":0.09252,"125":10.20033,"126":0.01388,"127":0.02776,"128":0.00925,"130":0.00925,"131":0.02313,"132":0.05089,"133":0.00463,"134":0.02313,"135":0.02313,"137":0.39784,"138":0.11102,"139":0.29144,"140":5.79175,"141":12.79552,"142":0.39321,"143":0.06014,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 77 78 80 83 85 86 87 88 89 90 91 92 96 98 99 100 101 102 104 105 107 110 111 112 113 114 115 117 118 119 120 123 124 129 136 144 145"},F:{"90":0.00463,"91":0.00463,"92":0.00463,"120":0.00463,"121":0.04163,"122":0.95296,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.01388,"109":0.02313,"114":0.37008,"122":0.00463,"128":0.00925,"130":0.07402,"134":0.17579,"136":0.00463,"137":0.01388,"138":0.13878,"139":0.03238,"140":1.07323,"141":4.66301,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 126 127 129 131 132 133 135 142"},E:{"14":0.0185,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 15.1 15.2-15.3 15.5 16.0 16.2 16.4 16.5 17.3 26.2","11.1":0.00925,"13.1":0.00463,"14.1":0.00925,"15.4":0.00463,"15.6":0.11565,"16.1":0.00925,"16.3":0.00463,"16.6":0.13415,"17.0":0.00925,"17.1":0.00925,"17.2":0.00463,"17.4":0.00925,"17.5":0.05089,"17.6":0.05089,"18.0":0.00925,"18.1":0.02776,"18.2":0.00925,"18.3":0.05089,"18.4":0.00463,"18.5-18.6":0.15728,"26.0":0.29144,"26.1":0.03701},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00118,"5.0-5.1":0,"6.0-6.1":0.00473,"7.0-7.1":0.00355,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01064,"10.0-10.2":0.00118,"10.3":0.0201,"11.0-11.2":0.29793,"11.3-11.4":0.00709,"12.0-12.1":0.00236,"12.2-12.5":0.05793,"13.0-13.1":0,"13.2":0.00591,"13.3":0.00236,"13.4-13.7":0.00946,"14.0-14.4":0.0201,"14.5-14.8":0.02128,"15.0-15.1":0.0201,"15.2-15.3":0.01537,"15.4":0.01773,"15.5":0.0201,"15.6-15.8":0.26247,"16.0":0.03547,"16.1":0.06621,"16.2":0.03429,"16.3":0.06148,"16.4":0.01537,"16.5":0.02719,"16.6-16.7":0.35114,"17.0":0.02483,"17.1":0.03783,"17.2":0.02719,"17.3":0.0402,"17.4":0.07094,"17.5":0.12177,"17.6-17.7":0.30739,"18.0":0.06975,"18.1":0.14424,"18.2":0.07803,"18.3":0.25064,"18.4":0.12887,"18.5-18.6":6.57111,"26.0":0.81223,"26.1":0.02956},P:{"4":0.02103,"20":0.01051,"21":0.01051,"24":0.03154,"25":0.07359,"26":0.07359,"27":0.07359,"28":4.01589,"29":0.3259,_:"22 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0","7.2-7.4":0.14718,"16.0":0.01051,"19.0":0.01051},I:{"0":0.00537,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.12898,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.44604},Q:{_:"14.9"},O:{"0":0.05911},H:{"0":0},L:{"0":41.01235}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LI.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LI.js deleted file mode 100644 index 7594bd04..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LI.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"3":0.1385,"52":0.0066,"78":0.0066,"86":0.01979,"109":0.02638,"111":0.03957,"115":0.77162,"127":1.06839,"133":0.01319,"134":0.04617,"135":0.0066,"136":0.07255,"137":0.01979,"138":0.03298,"139":0.07255,"140":0.05276,"141":0.01319,"142":0.25721,"143":2.03126,"144":2.98094,_:"2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 112 113 114 116 117 118 119 120 121 122 123 124 125 126 128 129 130 131 132 145 146 147 3.5 3.6"},D:{"48":1.77406,"49":0.0066,"57":0.0066,"59":0.0066,"79":0.01319,"91":0.0066,"96":0.0066,"98":0.02638,"99":0.01319,"103":0.0066,"109":0.25721,"110":0.0066,"113":0.0066,"116":0.05936,"119":0.01319,"120":0.05276,"122":0.22423,"123":0.85735,"124":0.85735,"125":0.24402,"126":0.04617,"127":0.0066,"128":0.0066,"129":0.03957,"131":0.44187,"132":0.37592,"133":0.46825,"134":0.38911,"135":0.2638,"136":0.28359,"137":0.23742,"138":1.15413,"139":0.50122,"140":6.69393,"141":13.48018,"142":0.25721,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 50 51 52 53 54 55 56 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 87 88 89 90 92 93 94 95 97 100 101 102 104 105 106 107 108 111 112 114 115 117 118 121 130 143 144 145"},F:{"92":0.0066,"95":0.01319,"107":0.0066,"114":0.15828,"117":0.07255,"118":0.06595,"120":0.24402,"121":0.03957,"122":1.43112,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 96 97 98 99 100 101 102 103 104 105 106 108 109 110 111 112 113 115 116 119 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1","9.5-9.6":0.01319},B:{"18":0.03957,"98":0.0066,"99":0.0066,"120":0.0066,"122":0.0066,"131":0.34294,"133":0.07255,"134":0.12531,"136":0.19126,"137":0.01979,"138":0.0066,"139":0.03957,"140":2.57205,"141":8.9692,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 121 123 124 125 126 127 128 129 130 132 135 142"},E:{"4":0.23742,"14":0.01979,_:"0 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.1 16.2 16.3 16.4 17.0 26.2","13.1":0.0066,"14.1":0.0066,"15.6":0.21764,"16.0":0.02638,"16.5":0.0066,"16.6":0.11212,"17.1":0.04617,"17.2":0.03298,"17.3":0.0066,"17.4":0.0066,"17.5":0.0066,"17.6":0.19126,"18.0":0.01979,"18.1":0.09893,"18.2":0.03298,"18.3":0.44187,"18.4":0.07914,"18.5-18.6":0.15169,"26.0":0.50122,"26.1":0.01319},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00203,"5.0-5.1":0,"6.0-6.1":0.00813,"7.0-7.1":0.0061,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01829,"10.0-10.2":0.00203,"10.3":0.03454,"11.0-11.2":0.512,"11.3-11.4":0.01219,"12.0-12.1":0.00406,"12.2-12.5":0.09956,"13.0-13.1":0,"13.2":0.01016,"13.3":0.00406,"13.4-13.7":0.01625,"14.0-14.4":0.03454,"14.5-14.8":0.03657,"15.0-15.1":0.03454,"15.2-15.3":0.02641,"15.4":0.03048,"15.5":0.03454,"15.6-15.8":0.45105,"16.0":0.06095,"16.1":0.11378,"16.2":0.05892,"16.3":0.10565,"16.4":0.02641,"16.5":0.04673,"16.6-16.7":0.60343,"17.0":0.04267,"17.1":0.06502,"17.2":0.04673,"17.3":0.06908,"17.4":0.12191,"17.5":0.20927,"17.6-17.7":0.52826,"18.0":0.11987,"18.1":0.24788,"18.2":0.1341,"18.3":0.43073,"18.4":0.22146,"18.5-18.6":11.29254,"26.0":1.39582,"26.1":0.05079},P:{"4":0.09388,"23":0.03129,"26":0.01043,"28":1.86714,"29":0.10431,_:"20 21 22 24 25 27 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.01043,"11.1-11.2":0.01043,"19.0":0.01043},I:{"0":0.0136,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.08513,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.65518,"7":0.78437,"8":3.15593,"9":0.74746,"10":1.61487,"11":0.13842,_:"5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.90233},Q:{"14.9":0.00341},O:{"0":0.01022},H:{"0":0},L:{"0":10.50558}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LK.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LK.js deleted file mode 100644 index 559a38c3..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LK.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"65":0.00728,"115":0.09458,"127":0.00728,"128":0.00728,"136":0.00728,"138":0.01455,"140":0.02183,"141":0.00728,"142":0.05093,"143":0.5238,"144":0.4365,"145":0.00728,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 133 134 135 137 139 146 147 3.5 3.6"},D:{"63":0.00728,"69":0.00728,"70":0.00728,"74":0.00728,"79":0.00728,"80":0.00728,"87":0.00728,"92":0.00728,"93":0.00728,"99":0.00728,"103":0.03638,"106":0.00728,"109":0.6984,"111":0.00728,"112":0.24008,"113":0.00728,"114":0.00728,"116":0.01455,"119":0.01455,"120":0.00728,"121":0.04365,"122":0.02183,"123":0.00728,"124":0.02183,"125":0.54563,"126":0.04365,"127":0.01455,"128":0.01455,"129":0.01455,"130":0.02183,"131":0.05093,"132":0.02183,"133":0.0291,"134":0.0291,"135":0.0582,"136":0.06548,"137":0.0582,"138":0.1746,"139":0.19643,"140":4.0449,"141":10.42508,"142":0.24735,"143":0.00728,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 64 65 66 67 68 71 72 73 75 76 77 78 81 83 84 85 86 88 89 90 91 94 95 96 97 98 100 101 102 104 105 107 108 110 115 117 118 144 145"},F:{"91":0.0291,"92":0.03638,"95":0.0582,"120":0.06548,"121":0.00728,"122":0.4074,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.01455,"92":0.0291,"109":0.01455,"113":0.00728,"114":0.00728,"122":0.02183,"131":0.00728,"133":0.00728,"134":0.00728,"135":0.00728,"136":0.00728,"137":0.00728,"138":0.0291,"139":0.03638,"140":9.53753,"141":37.99733,"142":0.00728,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 115 116 117 118 119 120 121 123 124 125 126 127 128 129 130 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 17.0 17.2 17.3 18.2 26.1 26.2","15.6":0.01455,"16.5":0.00728,"16.6":0.01455,"17.1":0.00728,"17.4":0.00728,"17.5":0.0291,"17.6":0.03638,"18.0":0.00728,"18.1":0.00728,"18.3":0.01455,"18.4":0.00728,"18.5-18.6":0.03638,"26.0":0.08003},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00032,"5.0-5.1":0,"6.0-6.1":0.00129,"7.0-7.1":0.00097,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0029,"10.0-10.2":0.00032,"10.3":0.00548,"11.0-11.2":0.08124,"11.3-11.4":0.00193,"12.0-12.1":0.00064,"12.2-12.5":0.0158,"13.0-13.1":0,"13.2":0.00161,"13.3":0.00064,"13.4-13.7":0.00258,"14.0-14.4":0.00548,"14.5-14.8":0.0058,"15.0-15.1":0.00548,"15.2-15.3":0.00419,"15.4":0.00484,"15.5":0.00548,"15.6-15.8":0.07157,"16.0":0.00967,"16.1":0.01805,"16.2":0.00935,"16.3":0.01676,"16.4":0.00419,"16.5":0.00741,"16.6-16.7":0.09574,"17.0":0.00677,"17.1":0.01032,"17.2":0.00741,"17.3":0.01096,"17.4":0.01934,"17.5":0.0332,"17.6-17.7":0.08382,"18.0":0.01902,"18.1":0.03933,"18.2":0.02128,"18.3":0.06834,"18.4":0.03514,"18.5-18.6":1.79172,"26.0":0.22147,"26.1":0.00806},P:{"4":0.02081,"20":0.0104,"21":0.02081,"22":0.04162,"23":0.03121,"24":0.05202,"25":0.11445,"26":0.06243,"27":0.08324,"28":0.65549,"29":0.02081,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 14.0 15.0","7.2-7.4":0.30173,"11.1-11.2":0.0104,"13.0":0.0104,"16.0":0.0104,"17.0":0.02081,"18.0":0.0104,"19.0":0.0104},I:{"0":0.01088,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.65673,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.07085},Q:{_:"14.9"},O:{"0":0.33245},H:{"0":0},L:{"0":26.20653}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LR.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LR.js deleted file mode 100644 index 85a578ef..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LR.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"49":0.00294,"51":0.00294,"58":0.01468,"72":0.01174,"85":0.00294,"94":0.00294,"111":0.00294,"115":0.02055,"126":0.00294,"127":0.00294,"128":0.00294,"138":0.01761,"139":0.00587,"140":0.02055,"141":0.05283,"142":0.01761,"143":0.34046,"144":0.32579,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 52 53 54 55 56 57 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 112 113 114 116 117 118 119 120 121 122 123 124 125 129 130 131 132 133 134 135 136 137 145 146 147 3.5 3.6"},D:{"39":0.00294,"43":0.00294,"46":0.00294,"47":0.05283,"49":0.00587,"50":0.00294,"56":0.00587,"59":0.00294,"64":0.00294,"65":0.00294,"67":0.00587,"68":0.00294,"70":0.00294,"71":0.00587,"74":0.00881,"75":0.00587,"77":0.00881,"78":0.00294,"79":0.01761,"80":0.00587,"81":0.00587,"83":0.01174,"84":0.00294,"86":0.00294,"87":0.02055,"90":0.00294,"92":0.01761,"93":0.02935,"94":0.00587,"96":0.00294,"97":0.00294,"98":0.00587,"100":0.00294,"102":0.00881,"103":0.08218,"104":0.12621,"105":0.02055,"107":0.00294,"109":0.19958,"110":0.00881,"111":0.01761,"114":0.02055,"115":0.00294,"116":0.02055,"117":0.00294,"118":0.00294,"119":0.08805,"120":0.02055,"121":0.00587,"122":0.07925,"124":0.00587,"125":0.41677,"126":0.04109,"127":0.01761,"128":0.08805,"129":0.01174,"130":0.00587,"131":0.05577,"132":0.01761,"133":0.03816,"134":0.05577,"135":0.02055,"136":0.09099,"137":0.09392,"138":0.21426,"139":0.35514,"140":2.07505,"141":3.50439,"142":0.06751,"143":0.00294,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 41 42 44 45 48 51 52 53 54 55 57 58 60 61 62 63 66 69 72 73 76 85 88 89 91 95 99 101 106 108 112 113 123 144 145"},F:{"35":0.00294,"79":0.02935,"90":0.01761,"91":0.09392,"92":0.09392,"95":0.02348,"114":0.00294,"117":0.00294,"119":0.00294,"120":0.14675,"122":0.65157,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 118 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.02055,"13":0.00587,"14":0.00881,"16":0.00881,"17":0.00881,"18":0.29937,"80":0.00294,"83":0.00294,"84":0.01174,"89":0.00587,"90":0.02348,"92":0.0499,"97":0.1086,"100":0.01468,"107":0.00294,"109":0.03229,"114":0.03229,"115":0.00294,"116":0.00294,"118":0.00587,"120":0.00587,"122":0.00881,"125":0.00294,"126":0.00294,"127":0.00294,"129":0.01174,"130":0.00294,"131":0.01174,"132":0.00587,"133":0.00587,"134":0.01174,"135":0.00587,"136":0.01761,"137":0.03816,"138":0.06164,"139":0.09686,"140":0.98029,"141":2.74129,"142":0.00294,_:"15 79 81 85 86 87 88 91 93 94 95 96 98 99 101 102 103 104 105 106 108 110 111 112 113 117 119 121 123 124 128"},E:{"13":0.00294,"14":0.00294,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 15.1 15.2-15.3 15.5 16.1 16.2 16.4 16.5 17.0 17.2 17.3 17.4 17.5 18.1 18.2 26.1 26.2","11.1":0.00587,"13.1":0.02935,"14.1":0.00881,"15.4":0.04696,"15.6":0.03522,"16.0":0.00587,"16.3":0.00587,"16.6":0.02935,"17.1":0.01174,"17.6":0.11153,"18.0":0.01174,"18.3":0.00294,"18.4":0.00294,"18.5-18.6":0.01174,"26.0":0.03816},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00046,"5.0-5.1":0,"6.0-6.1":0.00183,"7.0-7.1":0.00138,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00413,"10.0-10.2":0.00046,"10.3":0.00779,"11.0-11.2":0.11553,"11.3-11.4":0.00275,"12.0-12.1":0.00092,"12.2-12.5":0.02246,"13.0-13.1":0,"13.2":0.00229,"13.3":0.00092,"13.4-13.7":0.00367,"14.0-14.4":0.00779,"14.5-14.8":0.00825,"15.0-15.1":0.00779,"15.2-15.3":0.00596,"15.4":0.00688,"15.5":0.00779,"15.6-15.8":0.10178,"16.0":0.01375,"16.1":0.02567,"16.2":0.0133,"16.3":0.02384,"16.4":0.00596,"16.5":0.01054,"16.6-16.7":0.13616,"17.0":0.00963,"17.1":0.01467,"17.2":0.01054,"17.3":0.01559,"17.4":0.02751,"17.5":0.04722,"17.6-17.7":0.1192,"18.0":0.02705,"18.1":0.05593,"18.2":0.03026,"18.3":0.09719,"18.4":0.04997,"18.5-18.6":2.54809,"26.0":0.31496,"26.1":0.01146},P:{"4":0.01017,"22":0.02034,"23":0.01017,"24":0.17293,"25":0.03052,"26":0.02034,"27":0.19327,"28":0.76291,"29":0.01017,_:"20 21 5.0-5.4 6.2-6.4 7.2-7.4 8.2 10.1 11.1-11.2 12.0 15.0 17.0 18.0 19.0","9.2":0.01017,"13.0":0.01017,"14.0":0.01017,"16.0":0.01017},I:{"0":0.07054,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":3.58194,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00881,_:"6 7 8 9 10 5.5"},S:{"2.5":0.01413,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.12715},Q:{"14.9":0.01413},O:{"0":0.55099},H:{"0":4.69},L:{"0":69.20516}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LS.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LS.js deleted file mode 100644 index 02ac1bd1..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LS.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"44":0.00367,"48":0.00367,"65":0.00367,"66":0.00367,"88":0.00367,"113":0.00367,"115":0.04032,"127":0.00733,"128":0.00733,"141":0.00733,"142":0.00733,"143":0.28954,"144":0.33718,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 133 134 135 136 137 138 139 140 145 146 147 3.5 3.6"},D:{"39":0.00367,"40":0.00367,"41":0.00367,"42":0.00367,"43":0.00367,"44":0.00367,"45":0.00367,"46":0.00367,"47":0.00367,"48":0.00367,"50":0.00367,"53":0.00367,"54":0.00367,"55":0.00367,"56":0.00733,"57":0.00367,"58":0.00367,"59":0.00367,"60":0.00367,"65":0.011,"66":0.00367,"69":0.00367,"71":0.00367,"74":0.00367,"77":0.00367,"78":0.00367,"80":0.00733,"81":0.00367,"83":0.00367,"86":0.01466,"88":0.05498,"92":0.00367,"95":0.00367,"96":0.00733,"98":0.00367,"103":0.00367,"104":0.00367,"106":0.00733,"109":0.41048,"110":0.00367,"111":0.08796,"112":0.00367,"114":0.02199,"115":0.00367,"116":0.00367,"119":0.011,"120":0.02566,"121":0.01466,"122":0.011,"123":0.02199,"124":0.00733,"125":1.29741,"126":0.01466,"127":0.02566,"128":0.01466,"129":0.00733,"130":0.02199,"131":0.011,"132":0.01833,"133":0.04032,"134":0.02566,"135":0.01833,"136":0.02199,"137":0.03665,"138":0.16493,"139":0.31519,"140":3.02729,"141":6.65198,"142":0.17592,"143":0.22723,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 49 51 52 61 62 63 64 67 68 70 72 73 75 76 79 84 85 87 89 90 91 93 94 97 99 100 101 102 105 107 108 113 117 118 144 145"},F:{"40":0.00367,"79":0.00367,"91":0.03299,"92":0.28587,"95":0.18325,"100":0.01466,"113":0.00367,"120":0.09896,"121":0.011,"122":0.64504,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 101 102 103 104 105 106 107 108 109 110 111 112 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00733,"13":0.00367,"14":0.00367,"15":0.00367,"16":0.00367,"17":0.00733,"18":0.02932,"84":0.00733,"89":0.00367,"90":0.00367,"92":0.02932,"100":0.01833,"103":0.00367,"104":0.00367,"109":0.02932,"114":0.02566,"118":0.00733,"121":0.00367,"122":0.03299,"123":0.02932,"126":0.00367,"130":0.00733,"131":0.00733,"132":0.00367,"133":0.00367,"134":0.00733,"135":0.011,"136":0.00733,"137":0.02199,"138":0.10262,"139":0.05498,"140":0.85395,"141":2.99064,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 105 106 107 108 110 111 112 113 115 116 117 119 120 124 125 127 128 129 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.3 17.4 17.5 18.0 18.1 18.3 18.4 26.2","13.1":0.01466,"15.6":0.01833,"16.6":0.04398,"17.6":0.04398,"18.2":0.00367,"18.5-18.6":0.011,"26.0":0.02199,"26.1":0.00367},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00029,"5.0-5.1":0,"6.0-6.1":0.00118,"7.0-7.1":0.00088,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00265,"10.0-10.2":0.00029,"10.3":0.005,"11.0-11.2":0.07406,"11.3-11.4":0.00176,"12.0-12.1":0.00059,"12.2-12.5":0.0144,"13.0-13.1":0,"13.2":0.00147,"13.3":0.00059,"13.4-13.7":0.00235,"14.0-14.4":0.005,"14.5-14.8":0.00529,"15.0-15.1":0.005,"15.2-15.3":0.00382,"15.4":0.00441,"15.5":0.005,"15.6-15.8":0.06525,"16.0":0.00882,"16.1":0.01646,"16.2":0.00852,"16.3":0.01528,"16.4":0.00382,"16.5":0.00676,"16.6-16.7":0.08729,"17.0":0.00617,"17.1":0.0094,"17.2":0.00676,"17.3":0.00999,"17.4":0.01763,"17.5":0.03027,"17.6-17.7":0.07641,"18.0":0.01734,"18.1":0.03586,"18.2":0.0194,"18.3":0.06231,"18.4":0.03203,"18.5-18.6":1.63348,"26.0":0.20191,"26.1":0.00735},P:{"4":0.1929,"22":0.04061,"23":0.01015,"24":0.1726,"25":0.16244,"26":0.12183,"27":0.16244,"28":1.94933,"29":0.16244,_:"20 21 5.0-5.4 8.2 10.1 14.0","6.2-6.4":0.01015,"7.2-7.4":0.3858,"9.2":0.01015,"11.1-11.2":0.02031,"12.0":0.01015,"13.0":0.01015,"15.0":0.01015,"16.0":0.01015,"17.0":0.01015,"18.0":0.01015,"19.0":0.04061},I:{"0":0.03163,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":3.40372,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.85028,_:"6 7 8 9 10 5.5"},S:{"2.5":0.00633,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.04434},Q:{"14.9":0.01267},O:{"0":0.34837},H:{"0":0.27},L:{"0":68.48356}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LT.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LT.js deleted file mode 100644 index 7c0bfaf6..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LT.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.00537,"77":0.03759,"88":0.00537,"106":0.01611,"115":0.38664,"121":0.00537,"125":0.01074,"127":0.00537,"128":0.03759,"129":0.01074,"132":0.01611,"133":0.00537,"134":0.02685,"135":0.02148,"136":0.01074,"137":0.00537,"138":0.00537,"139":0.02685,"140":0.11277,"141":0.04833,"142":0.06981,"143":1.93857,"144":1.54656,"145":0.01074,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 107 108 109 110 111 112 113 114 116 117 118 119 120 122 123 124 126 130 131 146 147 3.5 3.6"},D:{"39":0.04833,"40":0.04833,"41":0.04833,"42":0.04833,"43":0.04833,"44":0.04833,"45":0.04833,"46":0.04833,"47":0.04833,"48":0.04833,"49":0.0537,"50":0.04833,"51":0.04833,"52":0.04833,"53":0.04833,"54":0.04833,"55":0.04833,"56":0.04833,"57":0.04833,"58":0.04833,"59":0.04833,"60":0.04833,"79":0.04296,"81":0.00537,"83":0.00537,"85":0.02685,"86":0.00537,"87":0.02148,"88":0.67662,"90":0.01074,"91":0.00537,"92":0.00537,"98":0.0537,"101":0.01074,"102":0.00537,"103":0.02685,"104":0.04296,"105":0.00537,"106":0.04833,"107":0.00537,"108":0.04833,"109":0.95049,"110":0.00537,"111":0.00537,"112":0.01074,"113":0.02685,"114":0.09666,"115":0.09666,"116":0.15036,"117":0.01074,"118":0.01611,"119":0.03222,"120":0.28998,"121":0.04296,"122":0.31146,"123":0.01611,"124":0.04296,"125":1.74525,"126":0.03222,"127":0.01074,"128":0.05907,"129":0.16647,"130":0.04296,"131":0.38664,"132":0.04296,"133":0.07518,"134":0.07518,"135":0.08055,"136":0.1074,"137":0.16647,"138":0.30072,"139":2.07819,"140":6.69102,"141":16.92624,"142":0.22554,"143":0.00537,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 84 89 93 94 95 96 97 99 100 144 145"},F:{"79":0.00537,"84":0.00537,"86":0.00537,"87":0.00537,"91":0.01074,"92":0.03759,"95":0.04833,"102":0.00537,"114":0.00537,"119":0.00537,"120":0.51015,"121":0.27387,"122":3.1146,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 85 88 89 90 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.01074,"92":0.01074,"108":0.00537,"109":0.04296,"114":0.00537,"120":0.01074,"122":0.00537,"123":0.00537,"124":0.00537,"126":0.00537,"127":0.00537,"131":0.04296,"132":0.00537,"133":0.00537,"134":0.02685,"135":0.00537,"136":0.01074,"137":0.01611,"138":0.0537,"139":0.04296,"140":0.8055,"141":3.88251,"142":0.00537,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 111 112 113 115 116 117 118 119 121 125 128 129 130"},E:{"10":0.00537,"11":0.01074,"14":0.00537,_:"0 4 5 6 7 8 9 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 11.1 12.1 15.1 15.2-15.3 16.0 26.2","10.1":0.01074,"13.1":0.01611,"14.1":0.01074,"15.4":0.01611,"15.5":0.01074,"15.6":0.0537,"16.1":0.00537,"16.2":0.00537,"16.3":0.01074,"16.4":0.01611,"16.5":0.01074,"16.6":0.07518,"17.0":0.00537,"17.1":0.03759,"17.2":0.01074,"17.3":0.02685,"17.4":0.03759,"17.5":0.03222,"17.6":0.18258,"18.0":0.01611,"18.1":0.04833,"18.2":0.01611,"18.3":0.04833,"18.4":0.02148,"18.5-18.6":0.16647,"26.0":0.46182,"26.1":0.01074},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00102,"5.0-5.1":0,"6.0-6.1":0.00408,"7.0-7.1":0.00306,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00919,"10.0-10.2":0.00102,"10.3":0.01736,"11.0-11.2":0.25733,"11.3-11.4":0.00613,"12.0-12.1":0.00204,"12.2-12.5":0.05004,"13.0-13.1":0,"13.2":0.00511,"13.3":0.00204,"13.4-13.7":0.00817,"14.0-14.4":0.01736,"14.5-14.8":0.01838,"15.0-15.1":0.01736,"15.2-15.3":0.01327,"15.4":0.01532,"15.5":0.01736,"15.6-15.8":0.22669,"16.0":0.03063,"16.1":0.05718,"16.2":0.02961,"16.3":0.0531,"16.4":0.01327,"16.5":0.02349,"16.6-16.7":0.30328,"17.0":0.02144,"17.1":0.03268,"17.2":0.02349,"17.3":0.03472,"17.4":0.06127,"17.5":0.10518,"17.6-17.7":0.2655,"18.0":0.06025,"18.1":0.12458,"18.2":0.06739,"18.3":0.21648,"18.4":0.1113,"18.5-18.6":5.67547,"26.0":0.70152,"26.1":0.02553},P:{"4":0.04155,"22":0.04155,"23":0.01039,"24":0.03116,"25":0.02077,"26":0.06232,"27":0.05194,"28":2.11904,"29":0.15581,_:"20 21 6.2-6.4 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.01039,"7.2-7.4":0.05194,"8.2":0.01039},I:{"0":0.01387,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.45384,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01611,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.4029},Q:{"14.9":0.00463},O:{"0":0.05094},H:{"0":0},L:{"0":33.28724}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LU.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LU.js deleted file mode 100644 index 613d42ed..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LU.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"50":0.00724,"52":0.01448,"60":0.04343,"68":0.00724,"78":0.10857,"91":0.01448,"102":0.07238,"104":0.01448,"108":0.06514,"115":0.45599,"125":0.01448,"128":2.94587,"133":0.00724,"134":0.00724,"135":0.00724,"136":0.04343,"137":0.00724,"138":0.00724,"139":0.02171,"140":0.3619,"141":0.02171,"142":0.06514,"143":2.29445,"144":1.17979,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 53 54 55 56 57 58 59 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 103 105 106 107 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 131 132 145 146 147 3.5 3.6"},D:{"55":0.00724,"77":0.01448,"79":0.03619,"87":0.01448,"88":0.00724,"102":0.01448,"103":0.02895,"104":0.05067,"108":0.05067,"109":0.26057,"112":0.00724,"114":0.21714,"116":0.10857,"118":0.6659,"119":0.02895,"120":0.10133,"121":0.01448,"122":0.16647,"124":0.00724,"125":30.37789,"126":0.02171,"127":0.02171,"128":0.02895,"129":0.02171,"130":0.00724,"131":0.05067,"132":0.01448,"133":0.05067,"134":0.10133,"135":0.05067,"136":0.11581,"137":0.29676,"138":0.27504,"139":0.39809,"140":4.58889,"141":9.01855,"142":0.152,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 80 81 83 84 85 86 89 90 91 92 93 94 95 96 97 98 99 100 101 105 106 107 110 111 113 115 117 123 143 144 145"},F:{"91":0.00724,"92":0.01448,"95":0.01448,"96":0.02895,"114":0.00724,"117":0.01448,"120":0.07238,"121":0.19543,"122":1.36074,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"106":0.02171,"108":0.02171,"109":0.01448,"120":0.00724,"122":0.00724,"129":0.01448,"131":0.00724,"132":0.00724,"133":0.02171,"134":0.02171,"135":0.00724,"136":0.00724,"137":0.00724,"138":0.07962,"139":0.07962,"140":1.20875,"141":5.04489,"142":0.00724,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 107 110 111 112 113 114 115 116 117 118 119 121 123 124 125 126 127 128 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.2-15.3 15.4 26.2","12.1":0.00724,"13.1":0.00724,"14.1":0.03619,"15.1":0.00724,"15.5":0.00724,"15.6":0.10133,"16.0":0.01448,"16.1":0.05067,"16.2":0.00724,"16.3":0.10857,"16.4":0.00724,"16.5":0.05067,"16.6":0.16647,"17.0":0.01448,"17.1":0.23162,"17.2":0.03619,"17.3":0.0579,"17.4":0.0579,"17.5":0.10857,"17.6":0.42704,"18.0":0.01448,"18.1":0.07962,"18.2":0.09409,"18.3":0.18095,"18.4":0.10857,"18.5-18.6":0.60799,"26.0":0.91923,"26.1":0.01448},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00108,"5.0-5.1":0,"6.0-6.1":0.00431,"7.0-7.1":0.00323,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0097,"10.0-10.2":0.00108,"10.3":0.01833,"11.0-11.2":0.2717,"11.3-11.4":0.00647,"12.0-12.1":0.00216,"12.2-12.5":0.05283,"13.0-13.1":0,"13.2":0.00539,"13.3":0.00216,"13.4-13.7":0.00863,"14.0-14.4":0.01833,"14.5-14.8":0.01941,"15.0-15.1":0.01833,"15.2-15.3":0.01402,"15.4":0.01617,"15.5":0.01833,"15.6-15.8":0.23935,"16.0":0.03235,"16.1":0.06038,"16.2":0.03127,"16.3":0.05606,"16.4":0.01402,"16.5":0.0248,"16.6-16.7":0.32022,"17.0":0.02264,"17.1":0.0345,"17.2":0.0248,"17.3":0.03666,"17.4":0.06469,"17.5":0.11105,"17.6-17.7":0.28032,"18.0":0.06361,"18.1":0.13154,"18.2":0.07116,"18.3":0.22857,"18.4":0.11752,"18.5-18.6":5.99247,"26.0":0.7407,"26.1":0.02695},P:{"4":0.06227,"21":0.01038,"22":0.01038,"23":0.01038,"24":0.01038,"25":0.04152,"26":0.01038,"27":0.02076,"28":2.14847,"29":0.1972,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0 19.0","7.2-7.4":0.01038,"16.0":0.01038},I:{"0":0.00827,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.34789,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02895,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":1.45505},Q:{"14.9":0.01104},O:{"0":0.05522},H:{"0":0},L:{"0":13.38459}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LV.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LV.js deleted file mode 100644 index bad30052..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LV.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"3":0.01802,"16":0.01802,"48":0.03605,"52":0.01802,"60":0.01802,"72":0.01202,"77":0.01202,"95":0.00601,"113":0.03004,"114":0.01202,"115":0.36649,"123":0.05407,"125":0.01202,"127":0.01202,"128":0.03605,"130":0.00601,"132":0.00601,"133":0.00601,"134":0.01202,"135":0.00601,"136":0.02403,"138":0.00601,"139":0.01802,"140":0.17423,"141":0.01802,"142":0.09012,"143":1.80841,"144":1.76034,"145":0.00601,_:"2 4 5 6 7 8 9 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 116 117 118 119 120 121 122 124 126 129 131 137 146 147 3.5 3.6"},D:{"38":0.00601,"39":0.00601,"40":0.00601,"41":0.00601,"43":0.00601,"44":0.00601,"46":0.00601,"47":0.00601,"48":0.17423,"49":0.00601,"53":0.00601,"54":0.00601,"56":0.00601,"59":0.00601,"79":0.09012,"83":0.00601,"87":0.13218,"88":0.00601,"89":0.00601,"92":0.00601,"96":0.00601,"102":0.02403,"103":0.01802,"104":0.04806,"105":0.00601,"106":0.03004,"108":0.01202,"109":1.48998,"111":0.00601,"112":1.33378,"114":0.00601,"115":0.01202,"116":0.10814,"118":0.01202,"119":0.03605,"120":0.02403,"121":0.00601,"122":0.12016,"123":0.00601,"124":0.01802,"125":1.50801,"126":0.09613,"127":0.01802,"128":0.12617,"129":0.01202,"130":0.03605,"131":0.1502,"132":0.04206,"133":0.09012,"134":0.0721,"135":0.12617,"136":0.05407,"137":0.06609,"138":0.34246,"139":2.0247,"140":7.68423,"141":19.8985,"142":0.33044,"143":0.28238,"144":0.01802,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 42 45 50 51 52 55 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 84 85 86 90 91 93 94 95 97 98 99 100 101 107 110 113 117 145"},F:{"28":0.00601,"91":0.03004,"92":0.05407,"95":0.16822,"120":0.25834,"121":0.2283,"122":2.12082,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00601,"109":0.01802,"121":0.19826,"122":0.00601,"128":0.00601,"130":0.03004,"131":0.01202,"132":0.02403,"133":0.0721,"134":0.01202,"135":0.00601,"136":0.00601,"137":0.00601,"138":0.01802,"139":0.08411,"140":0.8231,"141":3.47262,"142":0.00601,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 123 124 125 126 127 129"},E:{"4":0.01802,"14":0.00601,_:"0 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.4 15.5 16.0 26.2","12.1":0.04206,"13.1":0.05407,"14.1":0.01202,"15.2-15.3":0.00601,"15.6":0.10814,"16.1":0.00601,"16.2":0.00601,"16.3":0.00601,"16.4":0.0721,"16.5":0.00601,"16.6":0.08411,"17.0":0.01802,"17.1":0.10214,"17.2":0.01202,"17.3":0.01802,"17.4":0.02403,"17.5":0.02403,"17.6":0.16222,"18.0":0.01802,"18.1":0.03004,"18.2":0.01202,"18.3":0.04206,"18.4":0.03605,"18.5-18.6":0.16822,"26.0":0.61282,"26.1":0.03605},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00099,"5.0-5.1":0,"6.0-6.1":0.00398,"7.0-7.1":0.00298,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00895,"10.0-10.2":0.00099,"10.3":0.0169,"11.0-11.2":0.25059,"11.3-11.4":0.00597,"12.0-12.1":0.00199,"12.2-12.5":0.04873,"13.0-13.1":0,"13.2":0.00497,"13.3":0.00199,"13.4-13.7":0.00796,"14.0-14.4":0.0169,"14.5-14.8":0.0179,"15.0-15.1":0.0169,"15.2-15.3":0.01293,"15.4":0.01492,"15.5":0.0169,"15.6-15.8":0.22076,"16.0":0.02983,"16.1":0.05569,"16.2":0.02884,"16.3":0.05171,"16.4":0.01293,"16.5":0.02287,"16.6-16.7":0.29534,"17.0":0.02088,"17.1":0.03182,"17.2":0.02287,"17.3":0.03381,"17.4":0.05966,"17.5":0.10242,"17.6-17.7":0.25855,"18.0":0.05867,"18.1":0.12132,"18.2":0.06563,"18.3":0.21081,"18.4":0.10839,"18.5-18.6":5.52692,"26.0":0.68316,"26.1":0.02486},P:{"4":0.0209,"21":0.01045,"23":0.01045,"24":0.01045,"25":0.01045,"26":0.09404,"27":0.05224,"28":2.72715,"29":0.15673,_:"20 22 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.0209},I:{"0":0.03986,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.56287,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00758,"7":0.00758,"8":0.42453,"9":0.08339,"10":0.1592,"11":1.08407,_:"5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.33932},Q:{_:"14.9"},O:{"0":0.02395},H:{"0":0},L:{"0":28.34942}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LY.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LY.js deleted file mode 100644 index 0475427b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/LY.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"38":0.0023,"68":0.0023,"109":0.0023,"115":0.1196,"121":0.0069,"127":0.0023,"128":0.0161,"129":0.0023,"132":0.0023,"135":0.0184,"137":0.0023,"139":0.0023,"140":0.0115,"141":0.0046,"142":0.0069,"143":0.1886,"144":0.1679,"145":0.0023,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 116 117 118 119 120 122 123 124 125 126 130 131 133 134 136 138 146 147 3.5 3.6"},D:{"39":0.0023,"40":0.0023,"41":0.0023,"42":0.0023,"43":0.0023,"44":0.0023,"45":0.0023,"46":0.0023,"47":0.0023,"48":0.0023,"49":0.0023,"50":0.0023,"51":0.0069,"52":0.0023,"53":0.0023,"54":0.0023,"55":0.0023,"56":0.0023,"57":0.0023,"58":0.0046,"59":0.0023,"60":0.0046,"63":0.0069,"68":0.0023,"70":0.0092,"71":0.0092,"72":0.0023,"73":0.0161,"74":0.0023,"75":0.0069,"76":0.0023,"78":0.0069,"79":0.0161,"80":0.0023,"81":0.0161,"83":0.0184,"84":0.0023,"85":0.0023,"86":0.0138,"87":0.0322,"88":0.0046,"89":0.0023,"90":0.0092,"91":0.0184,"92":0.0023,"93":0.0046,"94":0.0046,"95":0.0023,"96":0.0138,"97":0.0023,"98":0.0184,"99":0.0023,"100":0.0092,"101":0.0092,"102":0.0023,"103":0.0368,"104":0.0207,"105":0.0023,"106":0.0046,"108":0.0115,"109":1.0327,"110":0.0092,"111":0.0161,"112":0.0023,"113":0.0023,"114":0.0138,"115":0.0023,"116":0.0161,"118":0.0046,"119":0.0046,"120":0.0138,"121":0.0069,"122":0.0138,"123":0.046,"124":0.0092,"125":1.5042,"126":0.0138,"127":0.0184,"128":0.0092,"129":0.0069,"130":0.0115,"131":0.0943,"132":0.0138,"133":0.0115,"134":0.0161,"135":0.0345,"136":0.0437,"137":0.0851,"138":0.1311,"139":0.1886,"140":1.9366,"141":4.6667,"142":0.046,"143":0.0023,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 64 65 66 67 69 77 107 117 144 145"},F:{"40":0.0023,"46":0.0023,"73":0.0046,"79":0.0161,"81":0.0092,"82":0.0023,"84":0.0046,"85":0.0069,"90":0.0023,"91":0.0713,"92":0.1081,"95":0.0345,"114":0.0023,"117":0.0023,"119":0.0023,"120":0.046,"121":0.0322,"122":0.4715,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 74 75 76 77 78 80 83 86 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.0023,"14":0.0023,"15":0.0023,"16":0.0023,"18":0.0115,"84":0.0023,"89":0.0023,"90":0.0023,"92":0.0276,"100":0.0046,"109":0.0184,"114":0.2001,"122":0.0046,"123":0.0115,"129":0.0023,"130":0.0023,"131":0.023,"132":0.0023,"133":0.0023,"134":0.0368,"135":0.0023,"136":0.0069,"137":0.0046,"138":0.0161,"139":0.0207,"140":0.3105,"141":1.4835,"142":0.0046,_:"12 17 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 124 125 126 127 128"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.0 16.3 16.4 16.5 26.2","5.1":0.0253,"14.1":0.322,"15.6":0.0069,"16.1":0.0115,"16.2":0.0023,"16.6":0.0138,"17.0":0.0046,"17.1":0.0046,"17.2":0.0046,"17.3":0.0046,"17.4":0.0046,"17.5":0.0046,"17.6":0.023,"18.0":0.0023,"18.1":0.0092,"18.2":0.0023,"18.3":0.0069,"18.4":0.0046,"18.5-18.6":0.023,"26.0":0.0713,"26.1":0.0023},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00096,"5.0-5.1":0,"6.0-6.1":0.00384,"7.0-7.1":0.00288,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00865,"10.0-10.2":0.00096,"10.3":0.01633,"11.0-11.2":0.24213,"11.3-11.4":0.00577,"12.0-12.1":0.00192,"12.2-12.5":0.04708,"13.0-13.1":0,"13.2":0.0048,"13.3":0.00192,"13.4-13.7":0.00769,"14.0-14.4":0.01633,"14.5-14.8":0.0173,"15.0-15.1":0.01633,"15.2-15.3":0.01249,"15.4":0.01441,"15.5":0.01633,"15.6-15.8":0.21331,"16.0":0.02883,"16.1":0.05381,"16.2":0.02786,"16.3":0.04996,"16.4":0.01249,"16.5":0.0221,"16.6-16.7":0.28537,"17.0":0.02018,"17.1":0.03075,"17.2":0.0221,"17.3":0.03267,"17.4":0.05765,"17.5":0.09897,"17.6-17.7":0.24982,"18.0":0.05669,"18.1":0.11722,"18.2":0.06342,"18.3":0.2037,"18.4":0.10473,"18.5-18.6":5.34032,"26.0":0.66009,"26.1":0.02402},P:{"4":0.02043,"20":0.01021,"21":0.03064,"22":0.08171,"23":0.06128,"24":0.26556,"25":0.33705,"26":0.16342,"27":0.4494,"28":2.50235,"29":0.12256,_:"5.0-5.4 8.2 10.1","6.2-6.4":0.02043,"7.2-7.4":0.19406,"9.2":0.02043,"11.1-11.2":0.02043,"12.0":0.01021,"13.0":0.01021,"14.0":0.02043,"15.0":0.01021,"16.0":0.03064,"17.0":0.04085,"18.0":0.05107,"19.0":0.09192},I:{"0":0.02306,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":5.96752,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0092,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.16938},Q:{_:"14.9"},O:{"0":0.17708},H:{"0":0.03},L:{"0":63.84712}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MA.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MA.js deleted file mode 100644 index 990c6893..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MA.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.8196,"65":0.01093,"75":0.00546,"78":0.00546,"100":0.00546,"115":0.21856,"125":0.01639,"127":0.00546,"128":0.01639,"130":0.00546,"132":0.00546,"133":0.00546,"134":0.00546,"135":0.00546,"136":0.01093,"137":0.00546,"138":0.01093,"139":0.00546,"140":0.03278,"141":0.01093,"142":0.03825,"143":0.91795,"144":0.73218,"145":0.00546,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 66 67 68 69 70 71 72 73 74 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 129 131 146 147 3.5 3.6"},D:{"29":0.00546,"39":0.00546,"40":0.00546,"41":0.01093,"42":0.00546,"43":0.01093,"44":0.00546,"45":0.01093,"46":0.00546,"47":0.01093,"48":0.01639,"49":0.01639,"50":0.01093,"51":0.00546,"52":0.00546,"53":0.00546,"54":0.00546,"55":0.01093,"56":0.02732,"57":0.00546,"58":0.01093,"59":0.01093,"60":0.00546,"63":0.00546,"65":0.00546,"66":0.01093,"67":0.00546,"68":0.01093,"69":0.00546,"70":0.00546,"71":0.00546,"72":0.01639,"73":0.01639,"74":0.00546,"75":0.01093,"76":0.00546,"77":0.00546,"79":0.04918,"80":0.00546,"81":0.01093,"83":0.03825,"84":0.00546,"85":0.01639,"86":0.01093,"87":0.03278,"88":0.00546,"90":0.00546,"91":0.00546,"92":0.00546,"93":0.00546,"94":0.00546,"95":0.00546,"97":0.00546,"98":0.01093,"100":0.01639,"101":0.02186,"102":0.01093,"103":0.03825,"104":0.11474,"105":0.01093,"106":0.02732,"107":0.01639,"108":0.02186,"109":1.2895,"110":0.02732,"111":0.01093,"112":8.31074,"113":0.01093,"114":0.02732,"115":0.01093,"116":0.06557,"117":0.01093,"118":0.01639,"119":0.04918,"120":0.03278,"121":0.02186,"122":0.08742,"123":0.02186,"124":0.04918,"125":4.87935,"126":0.65022,"127":0.02732,"128":0.09289,"129":0.03278,"130":0.03825,"131":0.12567,"132":0.0601,"133":0.0601,"134":0.08196,"135":0.08742,"136":0.11474,"137":0.15846,"138":0.47537,"139":0.63929,"140":6.06504,"141":13.92774,"142":0.18031,"143":0.01093,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 38 61 62 64 78 89 96 99 144 145"},F:{"79":0.00546,"85":0.00546,"91":0.00546,"92":0.02186,"95":0.03825,"114":0.01093,"118":0.00546,"119":0.00546,"120":0.15299,"121":0.08196,"122":1.2294,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.01093,"92":0.03278,"100":0.01093,"101":0.01093,"102":0.01093,"103":0.01093,"104":0.01093,"105":0.01093,"106":0.01093,"107":0.01093,"108":0.01093,"109":0.03278,"110":0.01093,"111":0.01093,"112":0.01093,"113":0.01093,"114":0.11474,"115":0.01093,"116":0.01093,"117":0.01093,"118":0.01093,"119":0.01093,"120":0.01093,"121":0.01093,"122":0.03825,"123":0.01093,"124":0.01093,"125":0.01093,"126":0.01093,"127":0.01093,"128":0.01093,"129":0.01093,"130":0.01093,"131":0.02732,"132":0.01639,"133":0.01639,"134":0.01639,"135":0.01639,"136":0.01639,"137":0.01093,"138":0.02186,"139":0.02732,"140":0.55186,"141":3.43139,"142":0.00546,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99"},E:{"4":0.00546,_:"0 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 15.2-15.3 15.4 15.5 16.0 16.2 26.2","5.1":0.01093,"12.1":0.00546,"13.1":0.01639,"14.1":0.01093,"15.1":0.00546,"15.6":0.04918,"16.1":0.00546,"16.3":0.00546,"16.4":0.00546,"16.5":0.00546,"16.6":0.0601,"17.0":0.00546,"17.1":0.01639,"17.2":0.01093,"17.3":0.01093,"17.4":0.01093,"17.5":0.03278,"17.6":0.07103,"18.0":0.01639,"18.1":0.01639,"18.2":0.00546,"18.3":0.02732,"18.4":0.02732,"18.5-18.6":0.06557,"26.0":0.20763,"26.1":0.00546},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00069,"5.0-5.1":0,"6.0-6.1":0.00275,"7.0-7.1":0.00206,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00618,"10.0-10.2":0.00069,"10.3":0.01168,"11.0-11.2":0.17318,"11.3-11.4":0.00412,"12.0-12.1":0.00137,"12.2-12.5":0.03367,"13.0-13.1":0,"13.2":0.00344,"13.3":0.00137,"13.4-13.7":0.0055,"14.0-14.4":0.01168,"14.5-14.8":0.01237,"15.0-15.1":0.01168,"15.2-15.3":0.00893,"15.4":0.01031,"15.5":0.01168,"15.6-15.8":0.15256,"16.0":0.02062,"16.1":0.03848,"16.2":0.01993,"16.3":0.03573,"16.4":0.00893,"16.5":0.01581,"16.6-16.7":0.2041,"17.0":0.01443,"17.1":0.02199,"17.2":0.01581,"17.3":0.02336,"17.4":0.04123,"17.5":0.07078,"17.6-17.7":0.17867,"18.0":0.04055,"18.1":0.08384,"18.2":0.04536,"18.3":0.14569,"18.4":0.07491,"18.5-18.6":3.81948,"26.0":0.47211,"26.1":0.01718},P:{"4":0.13472,"20":0.01036,"21":0.02073,"22":0.02073,"23":0.02073,"24":0.04145,"25":0.0829,"26":0.09326,"27":0.0829,"28":1.72021,"29":0.10363,"5.0-5.4":0.01036,"6.2-6.4":0.01036,"7.2-7.4":0.15544,_:"8.2 9.2 10.1 12.0 14.0 15.0 16.0 18.0","11.1-11.2":0.01036,"13.0":0.01036,"17.0":0.01036,"19.0":0.01036},I:{"0":0.0453,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.32659,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.06713,"9":0.01343,"10":0.02014,"11":0.13426,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.14515},Q:{_:"14.9"},O:{"0":0.04536},H:{"0":0},L:{"0":39.05943}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MC.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MC.js deleted file mode 100644 index 1ccd942f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MC.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"38":0.04696,"44":0.00671,"115":4.87073,"122":0.00671,"128":0.00671,"130":0.00671,"135":0.18114,"136":0.16102,"138":0.00671,"139":0.04025,"140":0.63736,"141":0.00671,"142":0.04025,"143":1.99257,"144":1.69738,"145":0.02013,"146":0.00671,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 123 124 125 126 127 129 131 132 133 134 137 147 3.5 3.6"},D:{"45":0.00671,"79":0.00671,"80":0.00671,"86":0.00671,"87":0.17443,"89":0.00671,"90":0.02684,"93":0.00671,"95":0.04025,"96":0.01342,"97":0.02013,"98":0.61052,"99":0.18785,"103":1.44244,"109":0.17443,"112":0.2214,"116":0.17443,"119":0.01342,"120":0.06709,"122":0.00671,"123":0.01342,"124":0.00671,"125":0.30861,"126":0.02013,"128":0.04025,"130":0.04025,"131":0.90572,"132":0.04025,"133":0.35558,"134":6.62849,"135":0.2952,"136":0.09393,"137":0.18114,"138":0.40925,"139":1.52965,"140":6.28633,"141":13.21673,"142":0.16102,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 81 83 84 85 88 91 92 94 100 101 102 104 105 106 107 108 110 111 113 114 115 117 118 121 127 129 143 144 145"},F:{"83":0.01342,"84":0.01342,"91":0.01342,"114":0.1476,"115":0.01342,"117":0.04696,"120":0.69103,"122":2.18713,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 116 118 119 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"97":0.00671,"98":0.10734,"99":0.02684,"109":0.00671,"114":0.00671,"130":0.00671,"131":0.10734,"132":0.02684,"133":0.01342,"134":0.12076,"135":0.06038,"136":0.02684,"138":0.05367,"139":0.02684,"140":1.17408,"141":5.63556,"142":0.00671,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 137"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.5 16.4 26.2","13.1":0.02684,"14.1":0.02013,"15.4":0.00671,"15.6":0.32874,"16.0":0.00671,"16.1":0.02013,"16.2":0.01342,"16.3":0.02013,"16.5":0.17443,"16.6":0.33545,"17.0":0.00671,"17.1":0.26165,"17.2":0.34216,"17.3":0.02013,"17.4":0.02013,"17.5":0.02684,"17.6":0.369,"18.0":0.02013,"18.1":0.06038,"18.2":0.02684,"18.3":0.06709,"18.4":0.10734,"18.5-18.6":0.94597,"26.0":1.85839,"26.1":0.04025},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00185,"5.0-5.1":0,"6.0-6.1":0.00741,"7.0-7.1":0.00556,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01667,"10.0-10.2":0.00185,"10.3":0.03148,"11.0-11.2":0.46667,"11.3-11.4":0.01111,"12.0-12.1":0.0037,"12.2-12.5":0.09074,"13.0-13.1":0,"13.2":0.00926,"13.3":0.0037,"13.4-13.7":0.01481,"14.0-14.4":0.03148,"14.5-14.8":0.03333,"15.0-15.1":0.03148,"15.2-15.3":0.02407,"15.4":0.02778,"15.5":0.03148,"15.6-15.8":0.41111,"16.0":0.05556,"16.1":0.1037,"16.2":0.0537,"16.3":0.0963,"16.4":0.02407,"16.5":0.04259,"16.6-16.7":0.55,"17.0":0.03889,"17.1":0.05926,"17.2":0.04259,"17.3":0.06296,"17.4":0.11111,"17.5":0.19074,"17.6-17.7":0.48148,"18.0":0.10926,"18.1":0.22593,"18.2":0.12222,"18.3":0.39259,"18.4":0.20185,"18.5-18.6":10.29256,"26.0":1.27222,"26.1":0.0463},P:{"28":1.07876,"29":0.07477,_:"4 20 21 22 23 24 25 26 27 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.02136},I:{"0":0.1939,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.0001},K:{"0":0.14151,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.03355,"11":0.03355,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.34556},Q:{"14.9":0.00329},O:{"0":0.00329},H:{"0":0},L:{"0":12.9775}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MD.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MD.js deleted file mode 100644 index 01d4511c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MD.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.10231,"63":0.00487,"74":0.00487,"88":0.00487,"92":0.00974,"103":0.00487,"113":0.00487,"115":0.20462,"125":0.00487,"127":0.00974,"128":0.0877,"135":0.00487,"136":0.00487,"137":0.00487,"139":0.01949,"140":0.09744,"141":0.00487,"142":0.04872,"143":0.78439,"144":0.6967,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 64 65 66 67 68 69 70 71 72 73 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 91 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 126 129 130 131 132 133 134 138 145 146 147 3.5 3.6"},D:{"38":0.00974,"39":0.00974,"40":0.00974,"41":0.00974,"42":0.00974,"43":0.00974,"44":0.00974,"45":0.00974,"46":0.00974,"47":0.00974,"48":0.00974,"49":0.01462,"50":0.00974,"51":0.00974,"52":0.00974,"53":0.00974,"54":0.00974,"55":0.01462,"56":0.00974,"57":0.00974,"58":0.00974,"59":0.00974,"60":0.00974,"70":0.00974,"78":0.00487,"79":0.00974,"80":0.00487,"85":0.01462,"86":0.00487,"87":0.00487,"88":0.00487,"90":0.00974,"91":0.01949,"92":0.01462,"95":0.00487,"98":0.01462,"99":0.00487,"101":0.00487,"102":0.09744,"103":0.00974,"104":0.1218,"106":0.05846,"107":0.00487,"108":0.00974,"109":2.93294,"111":0.01949,"112":2.76242,"114":0.01462,"116":0.10231,"117":0.00487,"118":0.06821,"119":0.01462,"120":0.04385,"121":0.01462,"122":0.02436,"123":0.00974,"124":0.02923,"125":3.53707,"126":0.21437,"127":0.01462,"128":0.03898,"129":0.21437,"130":0.02923,"131":0.0877,"132":0.03898,"133":0.04385,"134":0.25822,"135":0.06821,"136":0.11206,"137":0.05846,"138":0.54079,"139":0.77952,"140":6.65515,"141":13.46134,"142":0.11693,"143":0.0341,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 81 83 84 89 93 94 96 97 100 105 110 113 115 144 145"},F:{"79":0.32155,"82":0.00974,"84":0.00487,"85":0.04385,"88":0.00487,"91":0.0341,"92":0.07795,"95":0.31181,"119":0.00487,"120":0.19001,"121":0.08282,"122":1.41288,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 86 87 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00487,"92":0.00487,"99":0.00487,"109":0.04385,"114":0.11693,"118":0.00974,"131":0.00487,"133":0.00974,"134":0.01949,"135":0.00487,"136":0.00974,"137":0.00487,"138":0.03898,"139":0.02436,"140":0.28745,"141":1.81238,"142":0.00487,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 119 120 121 122 123 124 125 126 127 128 129 130 132"},E:{"7":0.00974,"14":0.00487,_:"0 4 5 6 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.2 16.4 16.5 17.0 17.2 26.2","13.1":0.00487,"14.1":0.00487,"15.6":0.02923,"16.0":0.00487,"16.1":0.00487,"16.3":0.01462,"16.6":0.0341,"17.1":0.02436,"17.3":0.00974,"17.4":0.01949,"17.5":0.07795,"17.6":0.04872,"18.0":0.00974,"18.1":0.01462,"18.2":0.03898,"18.3":0.01949,"18.4":0.00974,"18.5-18.6":0.06334,"26.0":0.25822,"26.1":0.00487},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00095,"5.0-5.1":0,"6.0-6.1":0.00379,"7.0-7.1":0.00284,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00852,"10.0-10.2":0.00095,"10.3":0.0161,"11.0-11.2":0.23868,"11.3-11.4":0.00568,"12.0-12.1":0.00189,"12.2-12.5":0.04641,"13.0-13.1":0,"13.2":0.00474,"13.3":0.00189,"13.4-13.7":0.00758,"14.0-14.4":0.0161,"14.5-14.8":0.01705,"15.0-15.1":0.0161,"15.2-15.3":0.01231,"15.4":0.01421,"15.5":0.0161,"15.6-15.8":0.21027,"16.0":0.02841,"16.1":0.05304,"16.2":0.02747,"16.3":0.04925,"16.4":0.01231,"16.5":0.02178,"16.6-16.7":0.2813,"17.0":0.01989,"17.1":0.03031,"17.2":0.02178,"17.3":0.0322,"17.4":0.05683,"17.5":0.09756,"17.6-17.7":0.24626,"18.0":0.05588,"18.1":0.11555,"18.2":0.06251,"18.3":0.20079,"18.4":0.10324,"18.5-18.6":5.26421,"26.0":0.65069,"26.1":0.02368},P:{"4":0.02051,"20":0.01026,"21":0.03077,"22":0.04102,"23":0.03077,"24":0.08205,"25":0.07179,"26":0.07179,"27":0.08205,"28":2.31786,"29":0.20512,"5.0-5.4":0.01026,_:"6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 15.0 16.0","7.2-7.4":0.05128,"14.0":0.01026,"17.0":0.02051,"18.0":0.02051,"19.0":0.01026},I:{"0":0.01536,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.71792,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.07308,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.50254},Q:{"14.9":0.04615},O:{"0":0.11282},H:{"0":0},L:{"0":40.31438}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ME.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ME.js deleted file mode 100644 index 5d869297..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ME.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.00687,"68":0.01031,"75":0.00344,"78":0.01374,"115":0.08244,"125":0.00344,"127":0.00344,"128":0.00344,"133":0.02748,"134":0.00687,"135":0.01031,"137":0.00344,"138":0.00344,"140":0.01374,"141":0.00687,"142":0.03092,"143":0.83471,"144":0.42938,"145":0.00687,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 129 130 131 132 136 139 146 147 3.5 3.6"},D:{"42":0.00344,"43":0.00344,"47":0.00344,"49":0.00344,"53":0.00344,"56":0.00344,"71":0.00344,"78":0.00344,"79":0.34007,"83":0.05496,"85":0.01031,"86":0.00344,"87":0.37785,"88":0.01031,"89":0.00344,"94":0.09618,"97":0.00687,"100":0.00687,"102":0.01374,"103":0.01718,"104":0.01718,"105":0.01031,"106":0.00687,"108":0.09962,"109":1.27095,"110":0.00344,"111":0.04466,"112":0.00344,"114":0.08244,"116":0.07214,"118":0.00344,"119":0.02061,"120":0.02405,"121":0.00344,"122":0.07214,"123":0.01718,"124":0.04122,"125":1.21943,"126":0.14084,"127":0.06183,"128":0.07214,"129":0.00344,"130":0.01718,"131":0.10649,"132":0.10649,"133":0.05153,"134":0.05153,"135":0.02748,"136":0.06527,"137":0.1271,"138":0.21297,"139":0.30228,"140":5.60249,"141":11.30802,"142":0.08244,"143":0.00687,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 44 45 46 48 50 51 52 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 72 73 74 75 76 77 80 81 84 90 91 92 93 95 96 98 99 101 107 113 115 117 144 145"},F:{"40":0.00344,"46":0.09275,"68":0.02405,"89":0.00344,"91":0.00687,"92":0.02061,"95":0.02405,"102":0.00344,"114":0.00344,"119":0.00344,"120":0.14771,"121":0.29885,"122":0.82784,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.04122,"109":0.00344,"114":0.01718,"124":0.00687,"129":0.00344,"131":0.00687,"132":0.00344,"134":0.00687,"135":0.00344,"136":0.00344,"137":0.00687,"138":0.00344,"139":0.00687,"140":0.18893,"141":1.23317,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 125 126 127 128 130 133 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 15.4 16.0 16.3 17.2 17.3 26.2","12.1":0.01374,"13.1":0.00687,"14.1":0.02405,"15.5":0.03092,"15.6":0.0584,"16.1":0.00344,"16.2":0.00687,"16.4":0.00344,"16.5":0.01374,"16.6":0.02748,"17.0":0.00344,"17.1":0.03092,"17.4":0.02405,"17.5":0.03092,"17.6":0.0584,"18.0":0.00344,"18.1":0.01031,"18.2":0.01718,"18.3":0.01031,"18.4":0.01718,"18.5-18.6":0.10649,"26.0":0.17862,"26.1":0.00344},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00156,"5.0-5.1":0,"6.0-6.1":0.00624,"7.0-7.1":0.00468,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01405,"10.0-10.2":0.00156,"10.3":0.02654,"11.0-11.2":0.39335,"11.3-11.4":0.00937,"12.0-12.1":0.00312,"12.2-12.5":0.07649,"13.0-13.1":0,"13.2":0.0078,"13.3":0.00312,"13.4-13.7":0.01249,"14.0-14.4":0.02654,"14.5-14.8":0.0281,"15.0-15.1":0.02654,"15.2-15.3":0.02029,"15.4":0.02341,"15.5":0.02654,"15.6-15.8":0.34652,"16.0":0.04683,"16.1":0.08741,"16.2":0.04527,"16.3":0.08117,"16.4":0.02029,"16.5":0.0359,"16.6-16.7":0.46359,"17.0":0.03278,"17.1":0.04995,"17.2":0.0359,"17.3":0.05307,"17.4":0.09366,"17.5":0.16077,"17.6-17.7":0.40584,"18.0":0.09209,"18.1":0.19043,"18.2":0.10302,"18.3":0.33091,"18.4":0.17014,"18.5-18.6":8.67559,"26.0":1.07235,"26.1":0.03902},P:{"4":0.23741,"20":0.05161,"21":0.02064,"22":0.04129,"23":0.11354,"24":0.02064,"25":0.10322,"26":0.11354,"27":0.17548,"28":3.8295,"29":0.22709,"5.0-5.4":0.06193,"6.2-6.4":0.02064,"7.2-7.4":0.24773,"8.2":0.02064,_:"9.2 11.1-11.2 12.0 13.0 14.0 15.0 18.0","10.1":0.02064,"16.0":0.01032,"17.0":0.01032,"19.0":0.01032},I:{"0":0.00655,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.19692,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.15754},Q:{_:"14.9"},O:{"0":0.00656},H:{"0":0},L:{"0":49.76059}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MG.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MG.js deleted file mode 100644 index 3eb110b4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MG.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"43":0.0041,"45":0.0041,"47":0.0041,"51":0.0041,"52":0.00819,"54":0.0041,"57":0.0041,"60":0.0041,"67":0.0041,"68":0.0041,"72":0.00819,"73":0.0041,"75":0.00819,"76":0.0041,"78":0.01638,"85":0.00819,"88":0.0041,"93":0.0041,"102":0.0041,"113":0.0041,"115":0.55296,"121":0.0041,"124":0.0041,"125":0.00819,"126":0.0041,"127":0.02048,"128":0.02867,"129":0.0041,"131":0.01229,"132":0.0041,"133":0.00819,"135":0.0041,"136":0.04506,"137":0.0041,"138":0.02048,"139":0.00819,"140":0.12288,"141":0.03277,"142":0.09421,"143":1.75718,"144":1.4377,"145":0.06554,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 46 48 49 50 53 55 56 58 59 61 62 63 64 65 66 69 70 71 74 77 79 80 81 82 83 84 86 87 89 90 91 92 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 122 123 130 134 146 147 3.5 3.6"},D:{"11":0.0041,"39":0.00819,"40":0.0041,"41":0.00819,"42":0.01229,"43":0.00819,"44":0.00819,"45":0.0041,"46":0.0041,"47":0.0041,"48":0.0041,"49":0.01229,"50":0.00819,"51":0.0041,"52":0.00819,"53":0.00819,"54":0.01229,"55":0.0041,"56":0.0041,"57":0.02048,"58":0.0041,"59":0.00819,"60":0.01229,"61":0.01638,"63":0.00819,"64":0.0041,"65":0.01229,"66":0.0041,"67":0.00819,"68":0.00819,"70":0.00819,"71":0.00819,"73":0.02048,"74":0.0041,"75":0.0041,"76":0.0041,"77":0.0041,"78":0.0041,"79":0.03686,"80":0.02458,"81":0.02458,"83":0.00819,"84":0.00819,"85":0.02867,"86":0.01229,"87":0.03277,"88":0.0041,"89":0.00819,"90":0.00819,"91":0.02048,"92":0.0041,"93":0.0041,"94":0.00819,"95":0.03686,"97":0.00819,"98":0.0041,"99":0.00819,"100":0.0041,"101":0.02458,"102":0.0041,"103":0.02048,"104":0.01638,"105":0.00819,"106":0.01229,"107":0.0041,"108":0.01229,"109":1.5401,"110":0.0041,"111":0.01229,"112":0.00819,"113":0.00819,"114":0.01229,"115":0.02048,"116":0.11469,"117":0.0041,"118":0.02048,"119":0.01638,"120":0.03277,"121":0.02048,"122":0.06554,"123":0.01638,"124":0.03277,"125":0.85606,"126":0.03277,"127":0.05325,"128":0.03686,"129":0.07782,"130":0.05734,"131":0.08192,"132":0.04506,"133":0.04915,"134":0.07373,"135":0.07782,"136":0.16384,"137":0.15565,"138":0.56115,"139":0.63078,"140":5.47226,"141":12.93517,"142":0.25395,"143":0.00819,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 62 69 72 96 144 145"},F:{"65":0.0041,"74":0.0041,"79":0.02048,"82":0.0041,"90":0.00819,"91":0.01229,"92":0.01229,"95":0.04506,"102":0.0041,"113":0.00819,"114":0.00819,"119":0.0041,"120":0.13926,"121":0.02458,"122":1.024,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 66 67 68 69 70 71 72 73 75 76 77 78 80 81 83 84 85 86 87 88 89 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.0041},B:{"12":0.0041,"14":0.00819,"15":0.0041,"16":0.0041,"17":0.00819,"18":0.02867,"84":0.00819,"85":0.0041,"86":0.0041,"89":0.00819,"90":0.00819,"92":0.14336,"100":0.04506,"109":0.09011,"114":0.05325,"120":0.0041,"122":0.02867,"127":0.0041,"128":0.01638,"129":0.0041,"130":0.0041,"131":0.0041,"132":0.0041,"133":0.0041,"134":0.01229,"135":0.0041,"136":0.00819,"137":0.02048,"138":0.04096,"139":0.04096,"140":0.63078,"141":2.5641,"142":0.0041,_:"13 79 80 81 83 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 121 123 124 125 126"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.4 17.0 18.2 26.1 26.2","12.1":0.0041,"13.1":0.0041,"14.1":0.0041,"15.6":0.04506,"16.1":0.0041,"16.3":0.0041,"16.5":0.0041,"16.6":0.17613,"17.1":0.0041,"17.2":0.0041,"17.3":0.00819,"17.4":0.00819,"17.5":0.0041,"17.6":0.02458,"18.0":0.02048,"18.1":0.0041,"18.3":0.03277,"18.4":0.0041,"18.5-18.6":0.02867,"26.0":0.17613},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00032,"5.0-5.1":0,"6.0-6.1":0.00127,"7.0-7.1":0.00095,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00285,"10.0-10.2":0.00032,"10.3":0.00538,"11.0-11.2":0.07975,"11.3-11.4":0.0019,"12.0-12.1":0.00063,"12.2-12.5":0.01551,"13.0-13.1":0,"13.2":0.00158,"13.3":0.00063,"13.4-13.7":0.00253,"14.0-14.4":0.00538,"14.5-14.8":0.0057,"15.0-15.1":0.00538,"15.2-15.3":0.00411,"15.4":0.00475,"15.5":0.00538,"15.6-15.8":0.07025,"16.0":0.00949,"16.1":0.01772,"16.2":0.00918,"16.3":0.01646,"16.4":0.00411,"16.5":0.00728,"16.6-16.7":0.09399,"17.0":0.00665,"17.1":0.01013,"17.2":0.00728,"17.3":0.01076,"17.4":0.01899,"17.5":0.03259,"17.6-17.7":0.08228,"18.0":0.01867,"18.1":0.03861,"18.2":0.02089,"18.3":0.06709,"18.4":0.03449,"18.5-18.6":1.75885,"26.0":0.2174,"26.1":0.00791},P:{"25":0.0112,"26":0.0112,"27":0.0112,"28":0.35848,"29":0.0224,_:"4 20 21 22 23 24 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0 19.0","7.2-7.4":0.0112,"16.0":0.0112},I:{"0":0.24173,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.00012},K:{"0":1.18939,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01638,_:"6 7 8 9 10 5.5"},S:{"2.5":0.13579,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.23616},Q:{"14.9":0.01181},O:{"0":0.50184},H:{"0":0.57},L:{"0":58.22381}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MH.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MH.js deleted file mode 100644 index 8d9f9524..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MH.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"141":0.04122,"142":0.21127,"143":0.2628,"144":0.11337,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 145 146 147 3.5 3.6"},D:{"42":0.01546,"43":0.01546,"46":0.01546,"55":0.02577,"56":0.01546,"57":0.01546,"58":0.09791,"70":0.07214,"93":0.01546,"100":0.1649,"103":0.15459,"109":0.13913,"112":0.01546,"116":0.22158,"119":0.05668,"120":0.08245,"125":1.25733,"126":0.05668,"127":0.08245,"130":1.02029,"132":1.53559,"134":0.01546,"135":0.08245,"136":0.01546,"137":0.09791,"138":0.23704,"139":1.71595,"140":5.13239,"141":23.4513,"142":0.13913,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 44 45 47 48 49 50 51 52 53 54 59 60 61 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 94 95 96 97 98 99 101 102 104 105 106 107 108 110 111 113 114 115 117 118 121 122 123 124 128 129 131 133 143 144 145"},F:{"120":0.04122,"122":0.12367,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.05668,"114":0.01546,"121":0.01546,"122":0.01546,"130":0.01546,"131":0.01546,"138":0.29372,"139":0.30918,"140":1.67473,"141":5.67345,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 123 124 125 126 127 128 129 132 133 134 135 136 137 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.3 16.4 17.0 17.2 17.4 18.0 18.2 18.3 18.5-18.6 26.1 26.2","13.1":0.08245,"15.6":0.09791,"16.1":0.01546,"16.5":0.04122,"16.6":0.07214,"17.1":0.31949,"17.3":0.05668,"17.5":1.96329,"17.6":0.04122,"18.1":0.05668,"18.4":0.12367,"26.0":0.09791},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00078,"5.0-5.1":0,"6.0-6.1":0.0031,"7.0-7.1":0.00233,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00698,"10.0-10.2":0.00078,"10.3":0.01318,"11.0-11.2":0.19543,"11.3-11.4":0.00465,"12.0-12.1":0.00155,"12.2-12.5":0.038,"13.0-13.1":0,"13.2":0.00388,"13.3":0.00155,"13.4-13.7":0.0062,"14.0-14.4":0.01318,"14.5-14.8":0.01396,"15.0-15.1":0.01318,"15.2-15.3":0.01008,"15.4":0.01163,"15.5":0.01318,"15.6-15.8":0.17217,"16.0":0.02327,"16.1":0.04343,"16.2":0.02249,"16.3":0.04033,"16.4":0.01008,"16.5":0.01784,"16.6-16.7":0.23033,"17.0":0.01629,"17.1":0.02482,"17.2":0.01784,"17.3":0.02637,"17.4":0.04653,"17.5":0.07988,"17.6-17.7":0.20164,"18.0":0.04576,"18.1":0.09461,"18.2":0.05118,"18.3":0.16441,"18.4":0.08453,"18.5-18.6":4.31034,"26.0":0.53278,"26.1":0.01939},P:{"4":0.1139,"28":0.10355,"29":0.01035,_:"20 21 22 23 24 25 26 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.02904,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.04362,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.07271},Q:{"14.9":0.11633},O:{"0":0.01454},H:{"0":0},L:{"0":41.6723}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MK.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MK.js deleted file mode 100644 index 346899e8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MK.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"48":0.00718,"52":0.05027,"78":0.00359,"92":0.00359,"111":0.00359,"114":0.00718,"115":0.27651,"125":0.00359,"127":0.00359,"128":0.02155,"132":0.01436,"134":0.00359,"135":0.00359,"136":0.00359,"139":0.00359,"140":0.01796,"141":0.00718,"142":0.02873,"143":0.77566,"144":0.70384,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 112 113 116 117 118 119 120 121 122 123 124 126 129 130 131 133 137 138 145 146 147 3.5 3.6"},D:{"39":0.00359,"40":0.00359,"41":0.00359,"42":0.00359,"43":0.00359,"44":0.00359,"45":0.00359,"46":0.00359,"47":0.00359,"48":0.00359,"49":0.01436,"50":0.00359,"51":0.00359,"52":0.00359,"53":0.01436,"54":0.00359,"55":0.00359,"56":0.00718,"57":0.00359,"58":0.01436,"59":0.00359,"60":0.00359,"66":0.00359,"70":0.01796,"71":0.00359,"73":0.00359,"79":0.28728,"83":0.01436,"84":0.01077,"87":0.07541,"90":0.00359,"91":0.00718,"92":0.00359,"93":0.00359,"94":0.00359,"95":0.01077,"98":0.01077,"102":0.00718,"103":0.00718,"104":0.00359,"108":0.10055,"109":1.92119,"111":0.00718,"112":1.29635,"113":0.00359,"114":0.02514,"116":0.0395,"118":0.00359,"119":0.00718,"120":0.02155,"121":0.01077,"122":0.04309,"123":0.02155,"124":0.01796,"125":2.06123,"126":0.19751,"127":0.01796,"128":0.04309,"129":0.01436,"130":0.00718,"131":0.07182,"132":0.03232,"133":0.07541,"134":0.03232,"135":0.06105,"136":0.04668,"137":0.05027,"138":0.21187,"139":0.33037,"140":4.94481,"141":13.47343,"142":0.12928,"143":0.00359,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 68 69 72 74 75 76 77 78 80 81 85 86 88 89 96 97 99 100 101 105 106 107 110 115 117 144 145"},F:{"36":0.02514,"40":0.04668,"46":0.03591,"91":0.01077,"92":0.02873,"95":0.0395,"114":0.00359,"119":0.00718,"120":0.06823,"121":0.10055,"122":0.75052,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00359,"109":0.01077,"114":0.02155,"115":0.00718,"122":0.00359,"123":0.00359,"130":0.00359,"131":0.00718,"132":0.00359,"133":0.00718,"134":0.01436,"135":0.00359,"136":0.00718,"137":0.01077,"138":0.00718,"139":0.00718,"140":0.3591,"141":1.50104,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 116 117 118 119 120 121 124 125 126 127 128 129 142"},E:{"14":0.00359,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.4 15.5 16.0 16.2 16.4 17.4 18.0 18.2 26.2","13.1":0.00359,"15.2-15.3":0.00359,"15.6":0.00718,"16.1":0.01436,"16.3":0.00359,"16.5":0.00359,"16.6":0.04309,"17.0":0.00359,"17.1":0.06464,"17.2":0.00359,"17.3":0.00359,"17.5":0.00718,"17.6":0.02514,"18.1":0.00359,"18.3":0.02155,"18.4":0.00718,"18.5-18.6":0.05027,"26.0":0.1616,"26.1":0.02514},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00157,"5.0-5.1":0,"6.0-6.1":0.00626,"7.0-7.1":0.0047,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0141,"10.0-10.2":0.00157,"10.3":0.02662,"11.0-11.2":0.39466,"11.3-11.4":0.0094,"12.0-12.1":0.00313,"12.2-12.5":0.07674,"13.0-13.1":0,"13.2":0.00783,"13.3":0.00313,"13.4-13.7":0.01253,"14.0-14.4":0.02662,"14.5-14.8":0.02819,"15.0-15.1":0.02662,"15.2-15.3":0.02036,"15.4":0.02349,"15.5":0.02662,"15.6-15.8":0.34768,"16.0":0.04698,"16.1":0.0877,"16.2":0.04542,"16.3":0.08144,"16.4":0.02036,"16.5":0.03602,"16.6-16.7":0.46514,"17.0":0.03289,"17.1":0.05012,"17.2":0.03602,"17.3":0.05325,"17.4":0.09397,"17.5":0.16131,"17.6-17.7":0.40719,"18.0":0.0924,"18.1":0.19107,"18.2":0.10336,"18.3":0.33202,"18.4":0.17071,"18.5-18.6":8.70447,"26.0":1.07592,"26.1":0.03915},P:{"4":0.18383,"21":0.01021,"22":0.01021,"23":0.01021,"24":0.04085,"25":0.04085,"26":0.03064,"27":0.09191,"28":3.10468,"29":0.18383,_:"20 8.2 9.2 10.1 11.1-11.2 12.0 13.0 15.0 17.0 18.0 19.0","5.0-5.4":0.04085,"6.2-6.4":0.01021,"7.2-7.4":0.12255,"14.0":0.03064,"16.0":0.01021},I:{"0":0.0128,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.17302,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00359,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.10894},Q:{_:"14.9"},O:{"0":0.00641},H:{"0":0},L:{"0":47.44531}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ML.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ML.js deleted file mode 100644 index 5228b569..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ML.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"4":0.00217,"43":0.00217,"57":0.00217,"60":0.00217,"72":0.00652,"77":0.00217,"85":0.00217,"100":0.00435,"109":0.00869,"115":0.06519,"127":0.01304,"128":0.00435,"129":0.00652,"131":0.00217,"137":0.00217,"138":0.00217,"139":0.01087,"140":0.0239,"141":0.00869,"142":0.01521,"143":0.50631,"144":0.48675,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 47 48 49 50 51 52 53 54 55 56 58 59 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 130 132 133 134 135 136 145 146 147 3.5 3.6"},D:{"39":0.00217,"40":0.00217,"41":0.00652,"42":0.00217,"43":0.00652,"44":0.00217,"45":0.00435,"46":0.00435,"47":0.00435,"48":0.00217,"49":0.00652,"50":0.00435,"51":0.00435,"52":0.00217,"53":0.00652,"54":0.00435,"55":0.00435,"56":0.00869,"57":0.00435,"58":0.00435,"59":0.00652,"60":0.00435,"62":0.00217,"65":0.00435,"66":0.00217,"68":0.00217,"69":0.00652,"70":0.00217,"72":0.00869,"73":0.00652,"74":0.00435,"75":0.00435,"76":0.00217,"77":0.00217,"79":0.01304,"80":0.00435,"81":0.00217,"83":0.00217,"84":0.00217,"85":0.00217,"86":0.00217,"87":0.01521,"91":0.00652,"92":0.00435,"93":0.00217,"95":0.00217,"98":0.00869,"99":0.00435,"103":0.00869,"105":0.00217,"106":0.00217,"107":0.00435,"109":0.1043,"110":0.00435,"111":0.00435,"112":2.07739,"113":0.00217,"114":0.01304,"116":0.00869,"117":0.00217,"119":0.01087,"120":0.00869,"122":0.01304,"123":0.03477,"124":0.00217,"125":1.0626,"126":0.21513,"127":0.00435,"128":0.05433,"129":0.00435,"130":0.01521,"131":0.04998,"132":0.01521,"133":0.01956,"134":0.01738,"135":0.04346,"136":0.01738,"137":0.0326,"138":0.19992,"139":0.15646,"140":1.47764,"141":3.44203,"142":0.04781,"143":0.00217,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 63 64 67 71 78 88 89 90 94 96 97 100 101 102 104 108 115 118 121 144 145"},F:{"64":0.02608,"91":0.00869,"92":0.00217,"95":0.01304,"106":0.00217,"113":0.00217,"114":0.00435,"120":0.04563,"121":0.01087,"122":0.3781,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 107 108 109 110 111 112 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00217,"13":0.00217,"14":0.00217,"16":0.01087,"17":0.00652,"18":0.01304,"84":0.00217,"89":0.01087,"90":0.01956,"92":0.06084,"95":0.00217,"100":0.00869,"109":0.00435,"112":0.00217,"114":0.10213,"116":0.00217,"121":0.00217,"122":0.01087,"124":0.00217,"126":0.00217,"128":0.00217,"131":0.00435,"133":0.00435,"134":0.00435,"135":0.00217,"136":0.03042,"137":0.00869,"138":0.03042,"139":0.04563,"140":0.31726,"141":1.38203,"142":0.00217,_:"15 79 80 81 83 85 86 87 88 91 93 94 96 97 98 99 101 102 103 104 105 106 107 108 110 111 113 115 117 118 119 120 123 125 127 129 130 132"},E:{"7":0.00435,"13":0.00869,_:"0 4 5 6 8 9 10 11 12 14 15 3.1 3.2 6.1 7.1 9.1 10.1 15.1 15.2-15.3 15.5 16.0 16.1 16.2 16.3 17.0 17.1 17.3 17.4 18.0 18.2 26.2","5.1":0.00869,"11.1":0.01304,"12.1":0.01087,"13.1":0.02173,"14.1":0.00217,"15.4":0.00217,"15.6":0.06519,"16.4":0.00217,"16.5":0.00217,"16.6":0.02825,"17.2":0.00217,"17.5":0.00435,"17.6":0.04129,"18.1":0.01521,"18.3":0.00435,"18.4":0.00217,"18.5-18.6":0.01521,"26.0":0.11952,"26.1":0.00435},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00061,"5.0-5.1":0,"6.0-6.1":0.00245,"7.0-7.1":0.00184,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00552,"10.0-10.2":0.00061,"10.3":0.01042,"11.0-11.2":0.15444,"11.3-11.4":0.00368,"12.0-12.1":0.00123,"12.2-12.5":0.03003,"13.0-13.1":0,"13.2":0.00306,"13.3":0.00123,"13.4-13.7":0.0049,"14.0-14.4":0.01042,"14.5-14.8":0.01103,"15.0-15.1":0.01042,"15.2-15.3":0.00797,"15.4":0.00919,"15.5":0.01042,"15.6-15.8":0.13605,"16.0":0.01839,"16.1":0.03432,"16.2":0.01777,"16.3":0.03187,"16.4":0.00797,"16.5":0.0141,"16.6-16.7":0.18202,"17.0":0.01287,"17.1":0.01961,"17.2":0.0141,"17.3":0.02084,"17.4":0.03677,"17.5":0.06312,"17.6-17.7":0.15934,"18.0":0.03616,"18.1":0.07477,"18.2":0.04045,"18.3":0.12993,"18.4":0.0668,"18.5-18.6":3.40624,"26.0":0.42103,"26.1":0.01532},P:{"21":0.01024,"22":0.03071,"23":0.174,"24":0.12282,"25":0.12282,"26":0.06141,"27":0.28659,"28":1.03377,"29":0.04094,_:"4 20 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0 18.0","5.0-5.4":0.01024,"7.2-7.4":0.08188,"11.1-11.2":0.01024,"19.0":0.01024},I:{"0":0.0469,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.79228,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00435,_:"6 7 8 9 10 5.5"},S:{"2.5":0.00783,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.05479},Q:{"14.9":0.04696},O:{"0":0.15654},H:{"0":0.1},L:{"0":75.97907}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MM.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MM.js deleted file mode 100644 index 4deda9f5..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MM.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"43":0.00293,"56":0.00293,"57":0.00293,"60":0.00293,"66":0.00293,"72":0.00586,"105":0.00293,"108":0.00586,"110":0.00293,"112":0.00293,"115":0.10259,"127":0.01466,"128":0.00586,"131":0.00293,"132":0.00293,"133":0.00293,"134":0.00293,"135":0.00879,"136":0.00293,"137":0.00293,"138":0.00879,"139":0.00293,"140":0.02052,"141":0.00879,"142":0.0381,"143":0.64189,"144":0.50413,"145":0.00586,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 47 48 49 50 51 52 53 54 55 58 59 61 62 63 64 65 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 107 109 111 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 146 147 3.5 3.6"},D:{"39":0.00586,"40":0.00586,"41":0.00586,"42":0.00586,"43":0.00586,"44":0.00586,"45":0.00586,"46":0.00586,"47":0.00586,"48":0.00586,"49":0.00586,"50":0.00586,"51":0.00586,"52":0.00586,"53":0.00586,"54":0.00586,"55":0.00586,"56":0.00879,"57":0.00586,"58":0.00586,"59":0.00586,"60":0.00586,"61":0.01759,"64":0.00293,"65":0.00293,"66":0.00293,"68":0.00293,"70":0.00879,"71":0.01172,"72":0.00586,"73":0.00293,"74":0.00586,"75":0.00586,"76":0.00293,"77":0.00293,"78":0.00293,"79":0.00879,"80":0.00586,"81":0.00293,"83":0.00293,"85":0.00293,"86":0.00293,"87":0.00586,"88":0.00586,"89":0.00879,"90":0.00293,"91":0.00293,"92":0.00293,"93":0.00293,"95":0.00586,"96":0.00293,"97":0.00586,"98":0.00293,"99":0.00293,"100":0.00293,"102":0.00293,"103":0.00586,"104":0.00293,"105":0.00586,"106":0.00879,"107":0.00293,"108":0.00586,"109":0.30776,"110":0.01172,"111":0.00586,"112":0.00293,"113":0.00293,"114":0.02931,"115":0.00879,"116":0.02052,"117":0.00293,"118":0.00293,"119":0.01466,"120":0.00879,"121":0.00586,"122":0.04103,"123":0.01172,"124":0.01759,"125":1.78498,"126":0.38689,"127":0.01172,"128":0.03517,"129":0.04397,"130":0.02052,"131":0.085,"132":0.02345,"133":0.02345,"134":0.52172,"135":0.04103,"136":0.07034,"137":0.07034,"138":0.26379,"139":0.27258,"140":2.92221,"141":7.54146,"142":0.11724,"143":0.01172,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 62 63 67 69 84 94 101 144 145"},F:{"79":0.00293,"90":0.00293,"91":0.00586,"92":0.00879,"95":0.00586,"101":0.00293,"113":0.00293,"114":0.00293,"117":0.00879,"119":0.02052,"120":0.04983,"121":0.01172,"122":0.2081,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 93 94 96 97 98 99 100 102 103 104 105 106 107 108 109 110 111 112 115 116 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.00586,"17":0.00293,"18":0.00879,"89":0.00293,"90":0.00293,"92":0.02345,"100":0.00293,"109":0.00879,"114":0.04397,"120":0.00293,"122":0.00586,"128":0.00293,"131":0.00293,"133":0.07621,"134":0.00293,"135":0.00293,"136":0.00879,"137":0.00879,"138":0.04983,"139":0.05862,"140":0.2462,"141":1.38636,"142":0.00293,_:"12 14 15 16 79 80 81 83 84 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 121 123 124 125 126 127 129 130 132"},E:{"14":0.00293,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 15.5 16.0 16.2 16.4 17.2 26.2","13.1":0.00586,"14.1":0.01466,"15.1":0.00293,"15.6":0.02638,"16.1":0.00879,"16.3":0.00879,"16.5":0.00879,"16.6":0.06155,"17.0":0.00293,"17.1":0.01172,"17.3":0.00293,"17.4":0.00586,"17.5":0.01466,"17.6":0.06741,"18.0":0.00879,"18.1":0.00293,"18.2":0.00586,"18.3":0.01759,"18.4":0.00879,"18.5-18.6":0.05276,"26.0":0.21103,"26.1":0.00586},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0005,"5.0-5.1":0,"6.0-6.1":0.00199,"7.0-7.1":0.00149,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00447,"10.0-10.2":0.0005,"10.3":0.00845,"11.0-11.2":0.12523,"11.3-11.4":0.00298,"12.0-12.1":0.00099,"12.2-12.5":0.02435,"13.0-13.1":0,"13.2":0.00248,"13.3":0.00099,"13.4-13.7":0.00398,"14.0-14.4":0.00845,"14.5-14.8":0.00895,"15.0-15.1":0.00845,"15.2-15.3":0.00646,"15.4":0.00745,"15.5":0.00845,"15.6-15.8":0.11032,"16.0":0.01491,"16.1":0.02783,"16.2":0.01441,"16.3":0.02584,"16.4":0.00646,"16.5":0.01143,"16.6-16.7":0.14759,"17.0":0.01044,"17.1":0.0159,"17.2":0.01143,"17.3":0.0169,"17.4":0.02982,"17.5":0.05119,"17.6-17.7":0.12921,"18.0":0.02932,"18.1":0.06063,"18.2":0.0328,"18.3":0.10535,"18.4":0.05417,"18.5-18.6":2.76205,"26.0":0.34141,"26.1":0.01242},P:{"4":0.03383,"25":0.01128,"26":0.01128,"27":0.02255,"28":0.32703,"29":0.02255,_:"20 21 22 23 24 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 17.0 18.0 19.0","6.2-6.4":0.01128,"7.2-7.4":0.01128,"13.0":0.02255},I:{"0":0.14824,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":0.18379,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01759,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.10604},Q:{"14.9":0.05655},O:{"0":0.41},H:{"0":0},L:{"0":73.6471}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MN.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MN.js deleted file mode 100644 index 60fb1e31..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MN.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"45":0.00552,"49":0.00552,"78":0.00552,"112":0.00552,"115":0.13793,"125":0.00552,"127":0.00552,"128":0.00552,"136":0.00552,"139":0.00552,"140":0.01103,"141":0.00552,"142":0.01103,"143":0.51308,"144":0.49653,"145":0.01103,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 123 124 126 129 130 131 132 133 134 135 137 138 146 147 3.5 3.6"},D:{"37":0.00552,"39":0.02759,"40":0.02759,"41":0.0331,"42":0.02207,"43":0.0331,"44":0.0331,"45":0.0331,"46":0.0331,"47":0.02759,"48":0.02759,"49":0.03862,"50":0.0331,"51":0.02759,"52":0.02759,"53":0.0331,"54":0.0331,"55":0.0331,"56":0.02759,"57":0.0331,"58":0.0331,"59":0.0331,"60":0.0331,"69":0.00552,"70":0.01655,"71":0.00552,"72":0.00552,"74":0.01655,"75":0.00552,"77":0.00552,"78":0.00552,"79":0.00552,"80":0.02207,"81":0.01103,"84":0.00552,"85":0.00552,"86":0.00552,"87":0.01103,"90":0.00552,"91":0.00552,"93":0.00552,"97":0.00552,"98":0.00552,"99":0.00552,"100":0.00552,"101":0.01655,"102":0.01103,"103":0.02207,"104":0.00552,"105":0.00552,"107":0.00552,"108":0.00552,"109":1.32408,"112":1.82061,"114":0.02759,"116":0.02759,"117":0.00552,"119":0.01655,"120":0.02207,"121":0.01655,"122":0.0662,"123":0.02759,"124":0.03862,"125":7.23279,"126":0.22068,"127":0.02759,"128":0.04965,"129":0.01655,"130":0.08276,"131":0.12689,"132":0.07724,"133":0.04414,"134":0.07724,"135":0.09931,"136":0.09379,"137":0.15448,"138":0.50756,"139":0.36412,"140":6.09077,"141":16.31929,"142":0.17654,"143":0.01103,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 61 62 63 64 65 66 67 68 73 76 83 88 89 92 94 95 96 106 110 111 113 115 118 144 145"},F:{"79":0.00552,"84":0.00552,"85":0.00552,"92":0.00552,"95":0.0331,"114":0.01103,"120":0.16551,"121":0.08827,"122":2.62609,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 86 87 88 89 90 91 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01103,"14":0.00552,"15":0.00552,"16":0.00552,"17":0.00552,"18":0.03862,"89":0.00552,"92":0.04414,"100":0.01103,"109":0.12137,"111":0.00552,"114":0.20965,"118":0.01103,"122":0.02759,"123":0.02207,"124":0.00552,"125":0.00552,"126":0.00552,"127":0.00552,"128":0.00552,"129":0.00552,"130":0.01103,"131":0.02207,"132":0.00552,"133":0.01655,"134":0.01655,"135":0.02207,"136":0.02207,"137":0.02759,"138":0.05517,"139":0.0662,"140":1.14754,"141":6.70316,"142":0.02207,_:"13 79 80 81 83 84 85 86 87 88 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 112 113 115 116 117 119 120 121"},E:{"11":0.00552,"13":0.00552,"14":0.00552,_:"0 4 5 6 7 8 9 10 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.4 15.5 16.0 26.2","13.1":0.01103,"14.1":0.0331,"15.2-15.3":0.00552,"15.6":0.08827,"16.1":0.03862,"16.2":0.00552,"16.3":0.01655,"16.4":0.00552,"16.5":0.01103,"16.6":0.15999,"17.0":0.00552,"17.1":0.07172,"17.2":0.00552,"17.3":0.02207,"17.4":0.01103,"17.5":0.0331,"17.6":0.13793,"18.0":0.01103,"18.1":0.01103,"18.2":0.0331,"18.3":0.10482,"18.4":0.04965,"18.5-18.6":0.1931,"26.0":0.35309,"26.1":0.01655},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00125,"5.0-5.1":0,"6.0-6.1":0.005,"7.0-7.1":0.00375,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01125,"10.0-10.2":0.00125,"10.3":0.02125,"11.0-11.2":0.31496,"11.3-11.4":0.0075,"12.0-12.1":0.0025,"12.2-12.5":0.06124,"13.0-13.1":0,"13.2":0.00625,"13.3":0.0025,"13.4-13.7":0.01,"14.0-14.4":0.02125,"14.5-14.8":0.0225,"15.0-15.1":0.02125,"15.2-15.3":0.01625,"15.4":0.01875,"15.5":0.02125,"15.6-15.8":0.27747,"16.0":0.0375,"16.1":0.06999,"16.2":0.03625,"16.3":0.06499,"16.4":0.01625,"16.5":0.02875,"16.6-16.7":0.37121,"17.0":0.02625,"17.1":0.04,"17.2":0.02875,"17.3":0.0425,"17.4":0.07499,"17.5":0.12874,"17.6-17.7":0.32496,"18.0":0.07374,"18.1":0.15248,"18.2":0.08249,"18.3":0.26497,"18.4":0.13623,"18.5-18.6":6.94672,"26.0":0.85865,"26.1":0.03125},P:{"4":0.05137,"21":0.01027,"22":0.01027,"23":0.01027,"24":0.01027,"25":0.03082,"26":0.03082,"27":0.0822,"28":2.36323,"29":0.1233,_:"20 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","6.2-6.4":0.0411,"7.2-7.4":0.05137},I:{"0":0.01791,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.10759,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0331,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.11208},Q:{"14.9":0.04035},O:{"0":0.12104},H:{"0":0},L:{"0":31.63073}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MO.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MO.js deleted file mode 100644 index da4b34c6..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MO.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.00403,"62":0.00403,"75":0.00403,"115":0.13292,"128":0.3021,"131":0.00403,"140":0.39072,"141":0.00403,"142":0.00403,"143":0.55184,"144":0.45114,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 132 133 134 135 136 137 138 139 145 146 147 3.5 3.6"},D:{"11":0.01611,"49":0.00403,"68":0.00403,"72":0.00806,"79":0.04834,"81":0.00403,"83":0.00806,"86":0.00403,"87":0.02014,"89":0.00403,"90":0.00403,"92":0.0282,"97":0.00403,"98":0.00403,"101":0.05236,"102":0.00806,"103":0.01611,"105":0.03625,"107":0.00403,"108":0.04028,"109":0.3746,"114":0.20543,"115":0.05639,"116":0.04834,"117":0.00403,"118":0.00403,"119":0.05639,"120":0.02417,"121":0.01208,"122":0.03625,"123":0.01611,"124":0.07653,"125":1.92136,"126":0.00806,"127":0.02417,"128":0.18529,"129":0.00403,"130":0.12084,"131":0.03625,"132":0.0725,"133":0.04028,"134":0.19737,"135":0.03222,"136":0.05236,"137":0.08459,"138":0.37863,"139":0.3303,"140":4.38246,"141":11.91482,"142":0.18126,"143":0.09264,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 73 74 75 76 77 78 80 84 85 88 91 93 94 95 96 99 100 104 106 110 111 112 113 144 145"},F:{"79":0.00403,"91":0.00403,"92":0.01208,"95":0.03222,"120":0.06042,"121":0.00403,"122":0.31418,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.02014,"92":0.00403,"109":0.03625,"110":0.00403,"118":0.02014,"120":0.03625,"121":0.00806,"122":0.02014,"123":0.00403,"125":0.00806,"126":0.00403,"127":0.02014,"128":0.00403,"129":0.00403,"131":0.01611,"133":0.01208,"134":0.00403,"135":0.03625,"136":0.00403,"137":0.01611,"138":0.03222,"139":0.03625,"140":1.07145,"141":5.04306,"142":0.00806,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 111 112 113 114 115 116 117 119 124 130 132"},E:{"10":0.00403,"14":0.04834,_:"0 4 5 6 7 8 9 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 16.0 26.2","13.1":0.02014,"14.1":0.19737,"15.2-15.3":0.01208,"15.4":0.02417,"15.5":0.02014,"15.6":0.06445,"16.1":0.01208,"16.2":0.00806,"16.3":0.00806,"16.4":0.08056,"16.5":0.02014,"16.6":0.28599,"17.0":0.00403,"17.1":0.24974,"17.2":0.02014,"17.3":0.01611,"17.4":0.01611,"17.5":0.03222,"17.6":0.13292,"18.0":0.00403,"18.1":0.03222,"18.2":0.01208,"18.3":0.08862,"18.4":0.0282,"18.5-18.6":0.18932,"26.0":0.3746,"26.1":0.02417},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0026,"5.0-5.1":0,"6.0-6.1":0.01039,"7.0-7.1":0.00779,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02338,"10.0-10.2":0.0026,"10.3":0.04415,"11.0-11.2":0.6545,"11.3-11.4":0.01558,"12.0-12.1":0.00519,"12.2-12.5":0.12726,"13.0-13.1":0,"13.2":0.01299,"13.3":0.00519,"13.4-13.7":0.02078,"14.0-14.4":0.04415,"14.5-14.8":0.04675,"15.0-15.1":0.04415,"15.2-15.3":0.03376,"15.4":0.03896,"15.5":0.04415,"15.6-15.8":0.57658,"16.0":0.07792,"16.1":0.14544,"16.2":0.07532,"16.3":0.13506,"16.4":0.03376,"16.5":0.05974,"16.6-16.7":0.77138,"17.0":0.05454,"17.1":0.08311,"17.2":0.05974,"17.3":0.08831,"17.4":0.15583,"17.5":0.26751,"17.6-17.7":0.67528,"18.0":0.15324,"18.1":0.31686,"18.2":0.17142,"18.3":0.55061,"18.4":0.2831,"18.5-18.6":14.43536,"26.0":1.78429,"26.1":0.06493},P:{"4":0.05235,"21":0.03141,"23":0.01047,"25":0.01047,"26":0.03141,"27":0.02094,"28":2.87922,"29":0.19893,_:"20 22 24 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 17.0 19.0","5.0-5.4":0.01047,"13.0":0.05235,"18.0":0.01047},I:{"0":0.00596,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.07166,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.54378,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.77039},Q:{"14.9":0.1493},O:{"0":0.41207},H:{"0":0},L:{"0":33.84687}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MP.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MP.js deleted file mode 100644 index 281b3fdf..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MP.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.00471,"115":0.01886,"136":0.01414,"140":0.00471,"143":0.95694,"144":0.98994,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 137 138 139 141 142 145 146 147 3.5 3.6"},D:{"39":0.00471,"42":0.00943,"43":0.00943,"46":0.00943,"49":0.00471,"51":0.00943,"52":0.00471,"53":0.00471,"55":0.00471,"56":0.00943,"58":0.01414,"59":0.00943,"60":0.00943,"79":0.2357,"86":0.00471,"87":0.01886,"91":0.00471,"103":0.00471,"105":0.01414,"109":0.53268,"115":0.08485,"116":0.00471,"121":0.01414,"122":0.00471,"123":0.07542,"125":1.72061,"126":0.033,"127":0.01886,"128":0.07071,"129":0.04714,"130":0.03771,"131":0.01414,"132":0.03771,"133":0.07071,"134":0.04243,"135":0.02828,"136":0.033,"137":0.05185,"138":0.44312,"139":0.55625,"140":7.02386,"141":15.78719,"142":0.16499,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 41 44 45 47 48 50 54 57 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 88 89 90 92 93 94 95 96 97 98 99 100 101 102 104 106 107 108 110 111 112 113 114 117 118 119 120 124 143 144 145"},F:{"92":0.00943,"120":0.22156,"121":0.16499,"122":2.00816,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.00943,"120":0.00471,"128":0.00943,"132":0.01414,"134":0.066,"135":0.00943,"136":0.00471,"137":0.08014,"139":0.01414,"140":1.19736,"141":7.10871,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 121 122 123 124 125 126 127 129 130 131 133 138 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.5 17.0 17.2 17.3 17.4 18.1 26.1 26.2","13.1":0.00471,"14.1":0.066,"15.1":0.00471,"15.6":0.01414,"16.3":0.01886,"16.4":0.00471,"16.6":0.13199,"17.1":0.066,"17.5":0.033,"17.6":0.04714,"18.0":0.00471,"18.2":0.00471,"18.3":0.02828,"18.4":0.04714,"18.5-18.6":0.08957,"26.0":0.34412},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00063,"5.0-5.1":0,"6.0-6.1":0.0025,"7.0-7.1":0.00188,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00563,"10.0-10.2":0.00063,"10.3":0.01064,"11.0-11.2":0.15772,"11.3-11.4":0.00376,"12.0-12.1":0.00125,"12.2-12.5":0.03067,"13.0-13.1":0,"13.2":0.00313,"13.3":0.00125,"13.4-13.7":0.00501,"14.0-14.4":0.01064,"14.5-14.8":0.01127,"15.0-15.1":0.01064,"15.2-15.3":0.00814,"15.4":0.00939,"15.5":0.01064,"15.6-15.8":0.13894,"16.0":0.01878,"16.1":0.03505,"16.2":0.01815,"16.3":0.03254,"16.4":0.00814,"16.5":0.01439,"16.6-16.7":0.18588,"17.0":0.01314,"17.1":0.02003,"17.2":0.01439,"17.3":0.02128,"17.4":0.03755,"17.5":0.06446,"17.6-17.7":0.16272,"18.0":0.03693,"18.1":0.07636,"18.2":0.04131,"18.3":0.13268,"18.4":0.06822,"18.5-18.6":3.47854,"26.0":0.42997,"26.1":0.01565},P:{"21":3.22443,"25":0.01033,"26":0.02067,"27":0.08268,"28":3.01773,"29":0.28937,_:"4 20 22 23 24 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 19.0","18.0":0.031},I:{"0":0.25865,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.00013},K:{"0":0.07929,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":1.79195},Q:{"14.9":0.00529},O:{"0":0.30659},H:{"0":0},L:{"0":36.3374}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MQ.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MQ.js deleted file mode 100644 index 999e9ab0..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MQ.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"78":0.00871,"115":0.11328,"128":0.00436,"132":0.00436,"133":0.00436,"136":0.01307,"140":0.0305,"142":0.05228,"143":1.25917,"144":2.06958,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 134 135 137 138 139 141 145 146 147 3.5 3.6"},D:{"39":0.00436,"41":0.00436,"49":0.00436,"50":0.00436,"51":0.00436,"53":0.00436,"56":0.00436,"57":0.00436,"59":0.00436,"79":0.00436,"84":0.00436,"85":0.00436,"87":0.00436,"88":0.01307,"89":0.00871,"94":0.00436,"102":0.00436,"103":0.00871,"106":0.00436,"109":0.81476,"110":0.01307,"111":0.00436,"113":0.00436,"114":0.10021,"116":0.03921,"119":0.00871,"120":0.00871,"122":0.00871,"123":0.00871,"125":2.47042,"126":0.07407,"128":0.01743,"130":0.00871,"131":0.02614,"132":0.02614,"133":0.01743,"134":0.01307,"135":0.00871,"136":0.02179,"137":0.03921,"138":0.13942,"139":0.27449,"140":6.44836,"141":12.40002,"142":0.09585,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 42 43 44 45 46 47 48 52 54 55 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 86 90 91 92 93 95 96 97 98 99 100 101 104 105 107 108 112 115 117 118 121 124 127 129 143 144 145"},F:{"28":0.04793,"91":0.00871,"92":0.00871,"118":0.00436,"120":0.07843,"121":0.4357,"122":0.63612,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00871,"99":0.00436,"104":0.00436,"109":0.00436,"114":0.01307,"120":0.00871,"122":0.00436,"131":0.00871,"132":0.01307,"133":0.00871,"134":0.00436,"135":0.00871,"136":0.00436,"137":0.0305,"138":0.03921,"139":0.02179,"140":0.8714,"141":4.3265,"142":0.00871,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 100 101 102 103 105 106 107 108 110 111 112 113 115 116 117 118 119 121 123 124 125 126 127 128 129 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 16.4 17.0 26.2","13.1":0.00871,"14.1":0.03486,"15.4":0.00871,"15.5":0.53155,"15.6":0.14378,"16.0":0.00871,"16.1":0.07407,"16.2":0.00436,"16.3":0.01307,"16.5":0.00436,"16.6":0.05664,"17.1":0.06536,"17.2":0.00436,"17.3":0.00436,"17.4":0.00871,"17.5":0.01307,"17.6":0.27013,"18.0":0.01307,"18.1":0.01743,"18.2":0.00436,"18.3":0.03921,"18.4":0.05664,"18.5-18.6":0.53155,"26.0":0.75376,"26.1":0.03486},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0015,"5.0-5.1":0,"6.0-6.1":0.006,"7.0-7.1":0.0045,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01349,"10.0-10.2":0.0015,"10.3":0.02549,"11.0-11.2":0.37783,"11.3-11.4":0.009,"12.0-12.1":0.003,"12.2-12.5":0.07347,"13.0-13.1":0,"13.2":0.0075,"13.3":0.003,"13.4-13.7":0.01199,"14.0-14.4":0.02549,"14.5-14.8":0.02699,"15.0-15.1":0.02549,"15.2-15.3":0.01949,"15.4":0.02249,"15.5":0.02549,"15.6-15.8":0.33285,"16.0":0.04498,"16.1":0.08396,"16.2":0.04348,"16.3":0.07797,"16.4":0.01949,"16.5":0.03448,"16.6-16.7":0.44531,"17.0":0.03149,"17.1":0.04798,"17.2":0.03448,"17.3":0.05098,"17.4":0.08996,"17.5":0.15443,"17.6-17.7":0.38983,"18.0":0.08846,"18.1":0.18292,"18.2":0.09896,"18.3":0.31786,"18.4":0.16343,"18.5-18.6":8.33336,"26.0":1.03005,"26.1":0.03748},P:{"4":0.01058,"20":0.01058,"21":0.03173,"22":0.02115,"23":0.01058,"24":0.05288,"25":0.06345,"26":0.38072,"27":0.10576,"28":3.42646,"29":0.19036,"5.0-5.4":0.01058,_:"6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0 19.0","7.2-7.4":0.03173,"11.1-11.2":0.01058,"18.0":0.01058},I:{"0":0.05635,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.10722,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.05228,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.32165},Q:{_:"14.9"},O:{"0":0.00564},H:{"0":0},L:{"0":40.05086}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MR.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MR.js deleted file mode 100644 index 4964b13c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MR.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"4":0.0016,"59":0.0016,"69":0.0016,"115":0.06256,"127":0.0016,"128":0.0016,"129":0.0016,"138":0.0016,"140":0.00481,"141":0.0016,"142":0.00481,"143":0.14596,"144":0.12511,"145":0.00481,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 130 131 132 133 134 135 136 137 139 146 147 3.5 3.6"},D:{"38":0.0016,"39":0.00321,"40":0.0016,"41":0.0016,"42":0.0016,"43":0.0016,"44":0.0016,"47":0.0016,"49":0.0016,"52":0.0016,"54":0.0016,"55":0.00321,"56":0.0016,"57":0.0016,"58":0.00962,"59":0.0016,"60":0.0016,"64":0.0016,"65":0.0016,"68":0.00321,"69":0.0016,"70":0.00321,"72":0.00321,"73":0.00321,"75":0.0016,"76":0.00642,"77":0.00642,"79":0.00321,"83":0.0016,"84":0.00321,"85":0.0016,"86":0.0016,"87":0.0016,"88":0.0016,"89":0.0016,"90":0.0016,"93":0.00321,"95":0.0016,"96":0.0016,"98":0.01925,"99":0.00321,"102":0.00321,"103":0.00321,"108":0.00321,"109":0.19729,"110":0.0016,"111":0.00481,"112":0.00321,"113":0.00321,"114":0.00481,"115":0.0016,"116":0.01123,"119":0.00642,"120":0.00321,"122":0.01123,"123":0.01283,"124":0.00802,"125":0.51328,"126":0.00642,"127":0.00481,"128":0.0016,"129":0.00962,"130":0.0016,"131":0.0385,"132":0.00481,"133":0.01283,"134":0.00962,"135":0.01604,"136":0.01283,"137":0.02887,"138":0.10426,"139":0.10426,"140":0.81644,"141":1.74034,"142":0.01764,"143":0.0016,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 45 46 48 50 51 53 61 62 63 66 67 71 74 78 80 81 91 92 94 97 100 101 104 105 106 107 117 118 121 144 145"},F:{"50":0.0016,"85":0.00962,"92":0.01764,"95":0.07539,"120":0.02406,"121":0.00321,"122":0.10747,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.0016,"14":0.0016,"17":0.0016,"18":0.00642,"89":0.0016,"90":0.0016,"92":0.01604,"109":0.00642,"114":0.03048,"122":0.00321,"124":0.00321,"131":0.0016,"134":0.00321,"135":0.0016,"136":0.0016,"137":0.01444,"138":0.01604,"139":0.02085,"140":0.13955,"141":0.72661,"142":0.00321,_:"12 15 16 79 80 81 83 84 85 86 87 88 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 125 126 127 128 129 130 132 133"},E:{"11":0.0016,_:"0 4 5 6 7 8 9 10 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 13.1 15.1 15.2-15.3 15.4 15.5 16.1 16.2 16.4 16.5 17.0 17.2 17.3 26.1 26.2","5.1":0.00321,"11.1":0.0016,"12.1":0.00802,"14.1":0.0016,"15.6":0.01283,"16.0":0.0016,"16.3":0.00321,"16.6":0.00642,"17.1":0.01283,"17.4":0.00321,"17.5":0.00321,"17.6":0.01604,"18.0":0.01123,"18.1":0.0016,"18.2":0.00642,"18.3":0.00321,"18.4":0.00321,"18.5-18.6":0.02887,"26.0":0.09143},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00181,"5.0-5.1":0,"6.0-6.1":0.00726,"7.0-7.1":0.00544,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01633,"10.0-10.2":0.00181,"10.3":0.03084,"11.0-11.2":0.45717,"11.3-11.4":0.01088,"12.0-12.1":0.00363,"12.2-12.5":0.08889,"13.0-13.1":0,"13.2":0.00907,"13.3":0.00363,"13.4-13.7":0.01451,"14.0-14.4":0.03084,"14.5-14.8":0.03265,"15.0-15.1":0.03084,"15.2-15.3":0.02358,"15.4":0.02721,"15.5":0.03084,"15.6-15.8":0.40274,"16.0":0.05442,"16.1":0.10159,"16.2":0.05261,"16.3":0.09434,"16.4":0.02358,"16.5":0.04173,"16.6-16.7":0.53881,"17.0":0.0381,"17.1":0.05805,"17.2":0.04173,"17.3":0.06168,"17.4":0.10885,"17.5":0.18686,"17.6-17.7":0.47168,"18.0":0.10704,"18.1":0.22133,"18.2":0.11973,"18.3":0.3846,"18.4":0.19774,"18.5-18.6":10.0831,"26.0":1.24633,"26.1":0.04535},P:{"4":0.02022,"20":0.02022,"21":0.14156,"22":0.14156,"23":0.12134,"24":1.20326,"25":0.50557,"26":0.57635,"27":0.82914,"28":3.0941,"29":0.12134,"5.0-5.4":0.04045,_:"6.2-6.4 8.2 10.1 12.0 15.0 17.0","7.2-7.4":0.99092,"9.2":0.01011,"11.1-11.2":0.03033,"13.0":0.01011,"14.0":0.03033,"16.0":0.05056,"18.0":0.04045,"19.0":0.18201},I:{"0":0.08383,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.81432,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.03358},Q:{"14.9":0.0084},O:{"0":0.03358},H:{"0":0},L:{"0":66.63461}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MS.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MS.js deleted file mode 100644 index 3603d3a8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MS.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"102":0.04935,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 3.5 3.6"},D:{"39":0.09254,"41":0.04935,"43":0.09254,"44":0.04935,"46":0.04935,"48":0.04935,"55":0.04935,"56":0.04935,"57":0.04935,"59":0.09254,"92":0.04935,"109":0.04935,"122":0.09254,"123":0.14189,"125":24.74386,"130":0.04935,"132":0.09254,"136":0.04935,"137":0.46884,"138":0.23442,"139":0.37631,"140":4.76247,"141":9.04992,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 42 45 47 49 50 51 52 53 54 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 124 126 127 128 129 131 133 134 135 142 143 144 145"},F:{"121":0.04935,"122":0.42566,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"133":0.04935,"137":0.04935,"138":0.09254,"140":2.87475,"141":10.03696,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 134 135 136 139 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.3 17.5 17.6 18.0 18.2 18.3 18.5-18.6 26.1 26.2","16.6":0.04935,"17.4":0.04935,"18.1":0.09254,"18.4":0.04935,"26.0":0.14189},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00111,"5.0-5.1":0,"6.0-6.1":0.00445,"7.0-7.1":0.00334,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01002,"10.0-10.2":0.00111,"10.3":0.01893,"11.0-11.2":0.28055,"11.3-11.4":0.00668,"12.0-12.1":0.00223,"12.2-12.5":0.05455,"13.0-13.1":0,"13.2":0.00557,"13.3":0.00223,"13.4-13.7":0.00891,"14.0-14.4":0.01893,"14.5-14.8":0.02004,"15.0-15.1":0.01893,"15.2-15.3":0.01447,"15.4":0.0167,"15.5":0.01893,"15.6-15.8":0.24715,"16.0":0.0334,"16.1":0.06234,"16.2":0.03229,"16.3":0.05789,"16.4":0.01447,"16.5":0.02561,"16.6-16.7":0.33065,"17.0":0.02338,"17.1":0.03563,"17.2":0.02561,"17.3":0.03785,"17.4":0.0668,"17.5":0.11467,"17.6-17.7":0.28946,"18.0":0.06568,"18.1":0.13582,"18.2":0.07348,"18.3":0.23602,"18.4":0.12135,"18.5-18.6":6.18766,"26.0":0.76483,"26.1":0.02783},P:{"28":1.79442,"29":0.24751,_:"4 20 21 22 23 24 25 26 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":31.0229}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MT.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MT.js deleted file mode 100644 index db7efe77..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MT.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.00568,"110":0.00568,"113":0.00568,"115":0.10784,"121":0.00568,"133":0.01135,"136":0.00568,"140":0.01135,"141":0.01703,"142":0.01703,"143":0.63004,"144":0.5449,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 111 112 114 116 117 118 119 120 122 123 124 125 126 127 128 129 130 131 132 134 135 137 138 139 145 146 147 3.5 3.6"},D:{"49":0.00568,"56":0.00568,"58":0.00568,"77":0.00568,"79":0.00568,"86":0.00568,"89":0.00568,"98":0.00568,"99":0.00568,"103":0.15325,"107":0.00568,"108":0.01135,"109":0.46543,"111":0.01135,"112":1.42468,"113":0.00568,"114":0.00568,"115":0.01135,"116":0.05676,"117":0.00568,"118":0.12487,"119":0.03406,"120":0.09649,"122":0.22136,"123":0.8514,"124":0.35759,"125":1.56658,"126":0.10217,"127":0.18731,"128":0.10217,"129":0.01135,"130":0.00568,"131":0.08514,"132":0.03973,"133":0.03406,"134":0.05108,"135":0.01703,"136":0.02838,"137":0.23839,"138":0.35191,"139":1.52117,"140":9.04754,"141":22.1591,"142":0.27812,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 57 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 80 81 83 84 85 87 88 90 91 92 93 94 95 96 97 100 101 102 104 105 106 110 121 143 144 145"},F:{"28":0.00568,"79":0.00568,"89":0.00568,"91":0.01703,"92":0.00568,"95":0.00568,"111":0.00568,"120":0.05676,"121":0.10217,"122":1.41332,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.01135,"112":0.01703,"114":0.00568,"117":0.03973,"120":0.01703,"122":0.00568,"129":0.01135,"131":0.00568,"133":0.00568,"134":0.00568,"135":0.01135,"136":0.00568,"137":0.01135,"138":0.02838,"139":0.03406,"140":1.30548,"141":5.45464,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 113 115 116 118 119 121 123 124 125 126 127 128 130 132 142"},E:{"14":0.00568,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.4 16.0 26.2","13.1":0.00568,"14.1":0.01135,"15.2-15.3":0.00568,"15.5":0.00568,"15.6":0.1192,"16.1":0.0227,"16.2":0.00568,"16.3":0.01703,"16.4":0.14758,"16.5":0.0227,"16.6":0.11352,"17.0":0.07379,"17.1":0.08514,"17.2":0.0227,"17.3":0.13055,"17.4":0.02838,"17.5":0.05676,"17.6":0.1646,"18.0":0.01135,"18.1":0.0227,"18.2":0.03973,"18.3":0.06811,"18.4":0.03406,"18.5-18.6":0.20434,"26.0":0.94789,"26.1":0.01135},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00154,"5.0-5.1":0,"6.0-6.1":0.00617,"7.0-7.1":0.00463,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01388,"10.0-10.2":0.00154,"10.3":0.02621,"11.0-11.2":0.38857,"11.3-11.4":0.00925,"12.0-12.1":0.00308,"12.2-12.5":0.07555,"13.0-13.1":0,"13.2":0.00771,"13.3":0.00308,"13.4-13.7":0.01234,"14.0-14.4":0.02621,"14.5-14.8":0.02775,"15.0-15.1":0.02621,"15.2-15.3":0.02005,"15.4":0.02313,"15.5":0.02621,"15.6-15.8":0.34231,"16.0":0.04626,"16.1":0.08635,"16.2":0.04472,"16.3":0.08018,"16.4":0.02005,"16.5":0.03546,"16.6-16.7":0.45796,"17.0":0.03238,"17.1":0.04934,"17.2":0.03546,"17.3":0.05243,"17.4":0.09252,"17.5":0.15882,"17.6-17.7":0.4009,"18.0":0.09097,"18.1":0.18812,"18.2":0.10177,"18.3":0.32689,"18.4":0.16807,"18.5-18.6":8.57009,"26.0":1.05931,"26.1":0.03855},P:{"4":0.02085,"21":0.02085,"22":0.01043,"23":0.01043,"24":0.01043,"25":0.01043,"26":0.02085,"27":0.03128,"28":2.1476,"29":0.1668,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01043},I:{"0":0.09499,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":0.15566,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.2162},Q:{_:"14.9"},O:{"0":0.06918},H:{"0":0},L:{"0":27.11133}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MU.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MU.js deleted file mode 100644 index a425a903..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MU.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"78":0.01003,"80":0.00334,"114":0.01337,"115":0.09026,"118":0.00334,"119":0.00669,"120":0.00669,"125":0.00334,"127":0.00334,"128":0.00334,"131":0.00334,"133":0.01337,"139":0.01003,"140":0.01003,"141":0.00334,"142":0.01672,"143":0.55494,"144":0.57165,"145":0.00334,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 116 117 121 122 123 124 126 129 130 132 134 135 136 137 138 146 147 3.5 3.6"},D:{"39":0.00334,"40":0.00334,"41":0.00334,"42":0.00334,"43":0.00334,"44":0.00334,"45":0.00334,"46":0.00334,"47":0.00334,"48":0.00334,"49":0.00334,"50":0.00669,"51":0.00334,"52":0.00334,"53":0.00334,"54":0.00334,"55":0.00334,"56":0.00334,"57":0.00334,"58":0.00334,"59":0.00334,"60":0.00334,"69":0.00334,"75":0.00334,"79":0.01672,"83":0.00334,"87":0.0234,"88":0.00334,"89":0.00669,"91":0.00669,"98":0.00334,"100":0.00334,"101":0.00334,"103":0.00334,"106":0.00669,"107":0.01337,"109":0.43459,"111":0.00669,"112":1.93225,"114":0.03677,"116":0.07689,"117":0.0468,"118":0.00334,"119":0.01003,"120":0.01337,"121":0.01003,"122":0.02674,"123":0.02006,"124":0.00669,"125":2.72455,"126":0.11032,"127":0.0234,"128":0.03343,"129":0.12035,"130":0.0702,"131":0.02674,"132":0.02006,"133":0.0468,"134":0.01672,"135":0.02674,"136":0.03009,"137":0.11032,"138":0.32761,"139":0.3577,"140":4.79386,"141":10.64077,"142":0.11366,"143":0.00334,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 70 71 72 73 74 76 77 78 80 81 84 85 86 90 92 93 94 95 96 97 99 102 104 105 108 110 113 115 144 145"},F:{"85":0.00334,"89":0.01337,"91":0.00334,"92":0.01003,"95":0.00334,"106":0.00334,"118":0.00334,"120":0.06017,"121":0.02674,"122":0.61177,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 90 93 94 96 97 98 99 100 101 102 103 104 105 107 108 109 110 111 112 113 114 115 116 117 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00334,"92":0.00334,"109":0.00334,"110":0.00334,"114":0.01337,"116":0.00334,"118":0.00334,"119":0.00334,"120":0.00669,"122":0.00334,"124":0.00334,"125":0.00334,"129":0.01003,"130":0.00334,"131":0.00334,"132":0.00334,"134":0.00334,"135":0.00669,"136":0.00334,"137":0.01337,"138":0.02006,"139":0.03677,"140":0.44462,"141":2.49388,"142":0.01003,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 111 112 113 115 117 121 123 126 127 128 133"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 16.2 26.2","13.1":0.00669,"14.1":0.01672,"15.4":0.00669,"15.5":0.00334,"15.6":0.01672,"16.0":0.00334,"16.1":0.00334,"16.3":0.00669,"16.4":0.01003,"16.5":0.00334,"16.6":0.06017,"17.0":0.00334,"17.1":0.02006,"17.2":0.00334,"17.3":0.00669,"17.4":0.02006,"17.5":0.03009,"17.6":0.10363,"18.0":0.00669,"18.1":0.01003,"18.2":0.0234,"18.3":0.03009,"18.4":0.00669,"18.5-18.6":0.06017,"26.0":0.47471,"26.1":0.0234},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00085,"5.0-5.1":0,"6.0-6.1":0.00342,"7.0-7.1":0.00256,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00769,"10.0-10.2":0.00085,"10.3":0.01452,"11.0-11.2":0.21523,"11.3-11.4":0.00512,"12.0-12.1":0.00171,"12.2-12.5":0.04185,"13.0-13.1":0,"13.2":0.00427,"13.3":0.00171,"13.4-13.7":0.00683,"14.0-14.4":0.01452,"14.5-14.8":0.01537,"15.0-15.1":0.01452,"15.2-15.3":0.0111,"15.4":0.01281,"15.5":0.01452,"15.6-15.8":0.18961,"16.0":0.02562,"16.1":0.04783,"16.2":0.02477,"16.3":0.04441,"16.4":0.0111,"16.5":0.01964,"16.6-16.7":0.25367,"17.0":0.01794,"17.1":0.02733,"17.2":0.01964,"17.3":0.02904,"17.4":0.05125,"17.5":0.08797,"17.6-17.7":0.22206,"18.0":0.05039,"18.1":0.1042,"18.2":0.05637,"18.3":0.18107,"18.4":0.0931,"18.5-18.6":4.74705,"26.0":0.58676,"26.1":0.02135},P:{"4":0.03086,"21":0.01029,"22":0.03086,"23":0.04115,"24":0.05143,"25":0.03086,"26":0.07201,"27":0.08229,"28":3.16824,"29":0.20573,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.13372,"19.0":0.01029},I:{"0":0.19278,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.0001},K:{"0":0.48596,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0234,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.233},Q:{"14.9":0.00666},O:{"0":0.30622},H:{"0":0},L:{"0":56.80893}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MV.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MV.js deleted file mode 100644 index 5bf45565..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MV.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.02369,"116":0.00296,"133":0.00296,"134":0.00296,"139":0.00592,"140":0.00888,"142":0.01481,"143":0.25465,"144":0.1895,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 135 136 137 138 141 145 146 147 3.5 3.6"},D:{"39":0.00296,"40":0.00296,"41":0.00296,"42":0.00296,"43":0.00296,"44":0.00592,"45":0.00296,"46":0.00296,"47":0.00296,"48":0.00296,"49":0.00296,"50":0.00296,"51":0.00296,"52":0.00296,"53":0.00296,"54":0.00296,"55":0.00296,"56":0.00296,"57":0.00296,"58":0.01184,"59":0.00296,"60":0.00296,"70":0.00296,"74":0.00296,"78":0.00592,"83":0.00296,"86":0.00592,"87":0.00888,"90":0.00296,"93":0.00296,"94":0.00296,"103":0.00888,"104":0.00296,"109":0.15693,"110":0.00592,"112":0.00296,"113":0.00296,"114":0.00592,"116":0.00888,"117":0.00296,"119":0.0681,"120":0.17174,"121":0.00592,"122":0.02369,"123":0.00592,"124":0.00592,"125":2.02829,"126":0.00592,"127":0.00888,"128":0.07403,"129":0.03849,"130":0.01481,"131":0.04442,"132":0.01481,"133":0.11252,"134":0.01777,"135":0.03257,"136":0.02369,"137":0.03553,"138":0.14805,"139":0.31683,"140":4.19574,"141":10.61519,"142":0.07699,"143":0.00296,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 71 72 73 75 76 77 79 80 81 84 85 88 89 91 92 95 96 97 98 99 100 101 102 105 106 107 108 111 115 118 144 145"},F:{"91":0.01184,"92":0.02369,"95":0.00296,"119":0.02665,"120":0.02369,"121":0.02369,"122":0.4175,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00296,"18":0.00296,"114":0.02665,"116":0.00296,"117":0.00296,"118":0.00888,"121":0.11548,"122":0.00296,"128":0.00296,"130":0.00592,"131":0.01184,"132":0.00296,"134":0.01184,"135":0.00592,"136":0.00888,"137":0.00888,"138":0.03257,"139":0.02665,"140":0.40862,"141":1.7766,"142":0.00296,_:"12 13 14 15 17 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 119 120 123 124 125 126 127 129 133"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 16.2 17.0 17.2 26.2","14.1":0.00592,"15.5":0.00296,"15.6":0.02073,"16.0":0.00592,"16.1":0.05034,"16.3":0.00592,"16.4":0.00296,"16.5":0.00592,"16.6":0.03257,"17.1":0.01481,"17.3":0.00296,"17.4":0.02073,"17.5":0.03257,"17.6":0.08883,"18.0":0.00592,"18.1":0.04145,"18.2":0.02665,"18.3":0.02073,"18.4":0.02665,"18.5-18.6":0.0681,"26.0":0.31387,"26.1":0.01481},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00174,"5.0-5.1":0,"6.0-6.1":0.00696,"7.0-7.1":0.00522,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01566,"10.0-10.2":0.00174,"10.3":0.02959,"11.0-11.2":0.43861,"11.3-11.4":0.01044,"12.0-12.1":0.00348,"12.2-12.5":0.08528,"13.0-13.1":0,"13.2":0.0087,"13.3":0.00348,"13.4-13.7":0.01392,"14.0-14.4":0.02959,"14.5-14.8":0.03133,"15.0-15.1":0.02959,"15.2-15.3":0.02263,"15.4":0.02611,"15.5":0.02959,"15.6-15.8":0.38639,"16.0":0.05221,"16.1":0.09747,"16.2":0.05047,"16.3":0.09051,"16.4":0.02263,"16.5":0.04003,"16.6-16.7":0.51693,"17.0":0.03655,"17.1":0.0557,"17.2":0.04003,"17.3":0.05918,"17.4":0.10443,"17.5":0.17927,"17.6-17.7":0.45253,"18.0":0.10269,"18.1":0.21234,"18.2":0.11487,"18.3":0.36899,"18.4":0.18971,"18.5-18.6":9.67368,"26.0":1.19572,"26.1":0.04351},P:{"22":0.2964,"24":0.01022,"25":0.03066,"26":0.01022,"27":0.03066,"28":1.14473,"29":0.08177,_:"4 20 21 23 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.02108,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.71084,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.16891},Q:{_:"14.9"},O:{"0":0.22522},H:{"0":0},L:{"0":55.99655}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MW.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MW.js deleted file mode 100644 index cf7700cd..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MW.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"50":0.0031,"52":0.0031,"61":0.0031,"65":0.0031,"72":0.00931,"98":0.0031,"105":0.0062,"112":0.0062,"115":0.11477,"127":0.00931,"128":0.0062,"129":0.0031,"130":0.0031,"135":0.00931,"136":0.01861,"138":0.00931,"140":0.06824,"141":0.0062,"142":0.02171,"143":0.55836,"144":0.51183,"145":0.0062,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 53 54 55 56 57 58 59 60 62 63 64 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 99 100 101 102 103 104 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 123 124 125 126 131 132 133 134 137 139 146 147 3.5 3.6"},D:{"39":0.0031,"40":0.00931,"41":0.0031,"42":0.0031,"43":0.0031,"44":0.0031,"45":0.0062,"46":0.0031,"47":0.0031,"48":0.0031,"49":0.0062,"50":0.0062,"51":0.0031,"52":0.0031,"53":0.0031,"54":0.0031,"55":0.0031,"56":0.0062,"57":0.0031,"58":0.0031,"60":0.0031,"61":0.0031,"64":0.00931,"65":0.0062,"66":0.0062,"67":0.0031,"69":0.0031,"70":0.0062,"71":0.03412,"73":0.0031,"74":0.0062,"75":0.0031,"78":0.0031,"79":0.0062,"80":0.0062,"81":0.0031,"83":0.01241,"85":0.0031,"86":0.00931,"87":0.0031,"88":0.0031,"89":0.00931,"90":0.0062,"91":0.0062,"92":0.0062,"93":0.00931,"94":0.0062,"95":0.02171,"96":0.0031,"98":0.0031,"99":0.0062,"101":0.01241,"102":0.01241,"103":0.04963,"104":0.00931,"105":0.05584,"106":0.01551,"107":0.0031,"108":0.0031,"109":0.44048,"111":0.01241,"112":0.0031,"113":0.0031,"114":0.04653,"115":0.0031,"116":0.02171,"117":0.0031,"118":0.0031,"119":0.00931,"120":0.01861,"121":0.02482,"122":0.04963,"123":0.01241,"124":0.26677,"125":0.1613,"126":0.01551,"127":0.01551,"128":0.02792,"129":0.07445,"130":0.01861,"131":0.04653,"132":0.01551,"133":0.11477,"134":0.03102,"135":0.02792,"136":0.04653,"137":0.07135,"138":0.25436,"139":0.44979,"140":3.08339,"141":7.26178,"142":0.07755,"143":0.0031,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 59 62 63 68 72 76 77 84 97 100 110 144 145"},F:{"35":0.0031,"40":0.0062,"42":0.0031,"70":0.03412,"79":0.01861,"89":0.0031,"90":0.01241,"91":0.00931,"92":0.01861,"95":0.06824,"102":0.0031,"113":0.0031,"117":0.01551,"119":0.0031,"120":0.12098,"121":0.01551,"122":0.72277,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 41 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 114 115 116 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01861,"13":0.01241,"14":0.0031,"15":0.01551,"16":0.0062,"17":0.01241,"18":0.06204,"84":0.0031,"89":0.01861,"90":0.04033,"92":0.08686,"100":0.01551,"106":0.0031,"107":0.0031,"109":0.02171,"112":0.0031,"114":0.01551,"117":0.0031,"121":0.01551,"122":0.02792,"125":0.0031,"128":0.0031,"129":0.0031,"131":0.01861,"132":0.0031,"133":0.01551,"134":0.01241,"135":0.02482,"136":0.00931,"137":0.01551,"138":0.08375,"139":0.09616,"140":0.7755,"141":2.57776,"142":0.01861,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 108 110 111 113 115 116 118 119 120 123 124 126 127 130"},E:{"13":0.0062,"14":0.0062,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 6.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 16.0 16.1 16.2 16.3 16.4 17.0 17.2 17.4 18.0 18.2 18.4 26.2","5.1":0.0031,"7.1":0.01241,"13.1":0.01241,"14.1":0.0031,"15.4":0.0031,"15.5":0.0062,"15.6":0.08375,"16.5":0.0031,"16.6":0.01861,"17.1":0.00931,"17.3":0.0062,"17.5":0.00931,"17.6":0.01861,"18.1":0.0031,"18.3":0.01241,"18.5-18.6":0.01861,"26.0":0.08065,"26.1":0.0031},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0002,"5.0-5.1":0,"6.0-6.1":0.00079,"7.0-7.1":0.00059,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00177,"10.0-10.2":0.0002,"10.3":0.00334,"11.0-11.2":0.04955,"11.3-11.4":0.00118,"12.0-12.1":0.00039,"12.2-12.5":0.00963,"13.0-13.1":0,"13.2":0.00098,"13.3":0.00039,"13.4-13.7":0.00157,"14.0-14.4":0.00334,"14.5-14.8":0.00354,"15.0-15.1":0.00334,"15.2-15.3":0.00256,"15.4":0.00295,"15.5":0.00334,"15.6-15.8":0.04365,"16.0":0.0059,"16.1":0.01101,"16.2":0.0057,"16.3":0.01022,"16.4":0.00256,"16.5":0.00452,"16.6-16.7":0.0584,"17.0":0.00413,"17.1":0.00629,"17.2":0.00452,"17.3":0.00669,"17.4":0.0118,"17.5":0.02025,"17.6-17.7":0.05112,"18.0":0.0116,"18.1":0.02399,"18.2":0.01298,"18.3":0.04168,"18.4":0.02143,"18.5-18.6":1.09282,"26.0":0.13508,"26.1":0.00492},P:{"4":0.39501,"21":0.0104,"22":0.03119,"24":0.03119,"25":0.07277,"26":0.05198,"27":0.12474,"28":0.59252,"29":0.0104,_:"20 23 5.0-5.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","6.2-6.4":0.0104,"7.2-7.4":0.11435,"9.2":0.02079,"17.0":0.06237,"19.0":0.0104},I:{"0":0.07578,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":4.20749,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.0031,"11":0.0031,_:"6 7 8 9 5.5"},S:{"2.5":0.11038,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.13108},Q:{_:"14.9"},O:{"0":0.80028},H:{"0":1.36},L:{"0":68.59119}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MX.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MX.js deleted file mode 100644 index 91293e47..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MX.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"3":0.00409,"4":0.00817,"34":0.00409,"52":0.00817,"78":0.00409,"99":0.01226,"112":0.00409,"115":0.11032,"120":0.00817,"128":0.00817,"133":0.00409,"135":0.00409,"136":0.00409,"138":0.00817,"139":0.00409,"140":0.03269,"141":0.00817,"142":0.02452,"143":0.56387,"144":0.47806,"145":0.00409,_:"2 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 121 122 123 124 125 126 127 129 130 131 132 134 137 146 147 3.5 3.6"},D:{"39":0.00817,"40":0.00817,"41":0.00817,"42":0.00817,"43":0.00817,"44":0.00817,"45":0.00817,"46":0.00817,"47":0.00817,"48":0.00817,"49":0.01226,"50":0.00817,"51":0.00817,"52":0.01226,"53":0.00817,"54":0.00817,"55":0.00817,"56":0.00817,"57":0.00817,"58":0.00817,"59":0.00817,"60":0.00817,"76":0.01226,"79":0.01226,"80":0.00409,"85":0.00409,"86":0.00409,"87":0.0286,"88":0.00409,"91":0.00409,"93":0.00409,"97":0.00409,"99":0.00409,"102":0.00409,"103":0.05312,"104":0.01226,"105":0.00409,"106":0.00409,"107":0.00409,"108":0.01226,"109":0.74365,"110":0.00409,"111":0.04495,"112":3.04407,"114":0.06538,"115":0.00409,"116":0.09398,"118":0.00409,"119":0.00817,"120":0.01634,"121":0.01226,"122":0.08581,"123":0.02043,"124":0.0286,"125":3.73052,"126":0.23699,"127":0.03677,"128":0.12667,"129":0.04495,"130":0.04086,"131":0.07763,"132":0.0572,"133":0.03269,"134":0.04495,"135":0.06538,"136":0.13484,"137":0.07763,"138":0.24925,"139":0.36365,"140":4.69073,"141":12.45413,"142":0.18387,"143":0.00409,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 81 83 84 89 90 92 94 95 96 98 100 101 113 117 144 145"},F:{"91":0.00409,"92":0.01226,"95":0.02452,"114":0.00409,"120":0.08172,"121":0.11849,"122":0.87849,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00409,"92":0.00817,"99":0.00409,"109":0.03269,"114":0.04086,"121":0.00409,"122":0.00409,"126":0.00409,"128":0.00409,"129":0.00409,"130":0.00409,"131":0.01226,"132":0.00409,"133":0.00817,"134":0.1471,"135":0.00817,"136":0.00817,"137":0.01226,"138":0.03677,"139":0.04495,"140":0.89483,"141":3.9389,"142":0.00817,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 123 124 125 127"},E:{"4":0.00409,"14":0.00409,_:"0 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 15.1 26.2","5.1":0.00409,"12.1":0.00409,"13.1":0.01226,"14.1":0.01226,"15.2-15.3":0.00409,"15.4":0.00817,"15.5":0.00409,"15.6":0.05312,"16.0":0.00409,"16.1":0.00817,"16.2":0.00409,"16.3":0.00817,"16.4":0.00409,"16.5":0.00817,"16.6":0.06538,"17.0":0.00409,"17.1":0.04086,"17.2":0.01634,"17.3":0.01226,"17.4":0.01634,"17.5":0.02043,"17.6":0.10215,"18.0":0.00817,"18.1":0.02452,"18.2":0.00817,"18.3":0.0286,"18.4":0.01634,"18.5-18.6":0.08989,"26.0":0.29828,"26.1":0.01226},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00096,"5.0-5.1":0,"6.0-6.1":0.00384,"7.0-7.1":0.00288,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00863,"10.0-10.2":0.00096,"10.3":0.01631,"11.0-11.2":0.24173,"11.3-11.4":0.00576,"12.0-12.1":0.00192,"12.2-12.5":0.047,"13.0-13.1":0,"13.2":0.0048,"13.3":0.00192,"13.4-13.7":0.00767,"14.0-14.4":0.01631,"14.5-14.8":0.01727,"15.0-15.1":0.01631,"15.2-15.3":0.01247,"15.4":0.01439,"15.5":0.01631,"15.6-15.8":0.21295,"16.0":0.02878,"16.1":0.05372,"16.2":0.02782,"16.3":0.04988,"16.4":0.01247,"16.5":0.02206,"16.6-16.7":0.2849,"17.0":0.02014,"17.1":0.0307,"17.2":0.02206,"17.3":0.03261,"17.4":0.05756,"17.5":0.0988,"17.6-17.7":0.24941,"18.0":0.0566,"18.1":0.11703,"18.2":0.06331,"18.3":0.20336,"18.4":0.10456,"18.5-18.6":5.33152,"26.0":0.65901,"26.1":0.02398},P:{"4":0.0218,"23":0.0109,"24":0.0109,"26":0.0109,"27":0.0109,"28":0.43601,"29":0.0327,_:"20 21 22 25 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.0218},I:{"0":0.1004,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":0.11237,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01506,"10":0.00502,"11":0.15562,_:"6 7 9 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.17151},Q:{_:"14.9"},O:{"0":0.01183},H:{"0":0},L:{"0":51.67155}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MY.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MY.js deleted file mode 100644 index 555eb9da..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MY.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.11849,"123":0.00539,"125":0.00539,"133":0.00539,"134":0.00539,"136":0.01616,"137":0.00539,"138":0.01616,"140":0.01077,"141":0.01077,"142":0.01616,"143":0.87792,"144":0.65171,"145":0.00539,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 124 126 127 128 129 130 131 132 135 139 146 147 3.5 3.6"},D:{"39":0.02154,"40":0.02154,"41":0.02154,"42":0.02154,"43":0.02154,"44":0.02154,"45":0.02154,"46":0.02154,"47":0.02154,"48":0.02154,"49":0.02154,"50":0.02154,"51":0.02154,"52":0.02154,"53":0.02154,"54":0.02154,"55":0.02154,"56":0.02154,"57":0.02154,"58":0.02154,"59":0.02154,"60":0.02154,"65":0.00539,"66":0.00539,"70":0.00539,"75":0.00539,"78":0.00539,"79":0.02154,"86":0.02693,"87":0.01616,"89":0.03232,"91":0.05386,"92":0.00539,"93":0.06463,"96":0.00539,"98":0.01077,"100":0.00539,"101":0.00539,"102":0.0377,"103":1.86894,"105":0.14004,"107":0.00539,"108":0.01077,"109":1.08259,"111":0.02154,"112":0.01077,"113":0.00539,"114":0.09695,"115":0.00539,"116":0.08618,"117":0.00539,"118":0.01077,"119":0.01616,"120":0.04847,"121":0.02154,"122":0.10772,"123":0.02154,"124":0.02154,"125":3.44165,"126":0.24237,"127":0.02693,"128":0.06463,"129":0.0377,"130":0.0377,"131":0.10233,"132":0.14004,"133":0.0754,"134":0.08079,"135":0.08079,"136":0.07002,"137":0.2316,"138":0.74865,"139":0.70557,"140":12.26392,"141":17.98385,"142":0.12926,"143":0.00539,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 67 68 69 71 72 73 74 76 77 80 81 83 84 85 88 90 94 95 97 99 104 106 110 144 145"},F:{"85":0.00539,"91":0.01616,"92":0.02693,"95":0.01077,"119":0.00539,"120":0.08079,"121":0.04847,"122":0.44165,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00539,"109":0.01077,"114":0.01077,"118":0.00539,"120":0.00539,"122":0.00539,"131":0.00539,"132":0.00539,"133":0.00539,"134":0.00539,"135":0.00539,"136":0.00539,"137":0.00539,"138":0.02693,"139":0.03232,"140":0.71095,"141":2.36445,"142":0.00539,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 119 121 123 124 125 126 127 128 129 130"},E:{"14":0.00539,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 26.2","13.1":0.00539,"14.1":0.02693,"15.2-15.3":0.00539,"15.4":0.00539,"15.5":0.00539,"15.6":0.05925,"16.0":0.00539,"16.1":0.01077,"16.2":0.01077,"16.3":0.01077,"16.4":0.00539,"16.5":0.01616,"16.6":0.05925,"17.0":0.01077,"17.1":0.0377,"17.2":0.01077,"17.3":0.01616,"17.4":0.02154,"17.5":0.04309,"17.6":0.14542,"18.0":0.02154,"18.1":0.0377,"18.2":0.01616,"18.3":0.06463,"18.4":0.04847,"18.5-18.6":0.25314,"26.0":0.47935,"26.1":0.01077},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00141,"5.0-5.1":0,"6.0-6.1":0.00565,"7.0-7.1":0.00424,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01271,"10.0-10.2":0.00141,"10.3":0.02401,"11.0-11.2":0.35591,"11.3-11.4":0.00847,"12.0-12.1":0.00282,"12.2-12.5":0.0692,"13.0-13.1":0,"13.2":0.00706,"13.3":0.00282,"13.4-13.7":0.0113,"14.0-14.4":0.02401,"14.5-14.8":0.02542,"15.0-15.1":0.02401,"15.2-15.3":0.01836,"15.4":0.02119,"15.5":0.02401,"15.6-15.8":0.31354,"16.0":0.04237,"16.1":0.07909,"16.2":0.04096,"16.3":0.07344,"16.4":0.01836,"16.5":0.03248,"16.6-16.7":0.41947,"17.0":0.02966,"17.1":0.0452,"17.2":0.03248,"17.3":0.04802,"17.4":0.08474,"17.5":0.14547,"17.6-17.7":0.36721,"18.0":0.08333,"18.1":0.17231,"18.2":0.09321,"18.3":0.29942,"18.4":0.15395,"18.5-18.6":7.84982,"26.0":0.97028,"26.1":0.03531},P:{"4":0.05279,"22":0.01056,"23":0.01056,"25":0.01056,"26":0.01056,"27":0.03167,"28":0.96079,"29":0.05279,_:"20 21 24 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.03167},I:{"0":0.01382,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.39219,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00846,"11":0.05078,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.17533},Q:{"14.9":0.00461},O:{"0":0.32298},H:{"0":0},L:{"0":34.15531}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MZ.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MZ.js deleted file mode 100644 index 3d576070..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/MZ.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"7":0.00333,"45":0.00333,"78":0.00666,"90":0.01332,"91":0.00333,"103":0.00333,"112":0.00333,"113":0.03663,"114":0.00333,"115":0.12654,"116":0.00333,"124":0.01998,"127":0.00333,"128":0.00999,"134":0.00333,"136":0.00999,"137":0.00333,"138":0.00333,"140":0.01998,"141":0.00333,"142":0.01665,"143":0.5328,"144":0.4329,"145":0.00333,_:"2 3 4 5 6 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 109 110 111 117 118 119 120 121 122 123 125 126 129 130 131 132 133 135 139 146 147 3.5 3.6"},D:{"39":0.00333,"40":0.00333,"41":0.00333,"42":0.00333,"43":0.00333,"44":0.00333,"45":0.00333,"46":0.00666,"47":0.00333,"48":0.00333,"49":0.00999,"50":0.00666,"51":0.00333,"52":0.00333,"53":0.00666,"54":0.00333,"55":0.01332,"56":0.00333,"57":0.00333,"58":0.00666,"59":0.00333,"60":0.00333,"61":0.00333,"62":0.00999,"63":0.00666,"64":0.00666,"65":0.00999,"66":0.00666,"67":0.00333,"69":0.00333,"70":0.01332,"71":0.00999,"72":0.00333,"73":0.02664,"74":0.00999,"75":0.01332,"76":0.00666,"78":0.00333,"79":0.02664,"80":0.00333,"81":0.00666,"83":0.01332,"85":0.00333,"86":0.02997,"87":0.04329,"88":0.00666,"89":0.00333,"91":0.00333,"92":0.00666,"93":0.00333,"95":0.00999,"96":0.00333,"97":0.00333,"98":0.00999,"99":0.00333,"100":0.00333,"102":0.00666,"103":0.00999,"104":0.00999,"105":0.00999,"106":0.01998,"108":0.00666,"109":0.97902,"110":0.00666,"111":0.02997,"112":0.01332,"113":0.00999,"114":0.53946,"115":0.00666,"116":0.17316,"118":0.00999,"119":0.01998,"120":0.01332,"121":0.01332,"122":0.02997,"123":0.01998,"124":0.34299,"125":1.16883,"126":0.02664,"127":0.00666,"128":0.0666,"129":0.02331,"130":0.01332,"131":0.08658,"132":0.03663,"133":0.04995,"134":0.03663,"135":0.05328,"136":0.0666,"137":0.10656,"138":0.24309,"139":0.51615,"140":3.91941,"141":7.03629,"142":0.0999,"143":0.01998,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 68 77 84 90 94 101 107 117 144 145"},F:{"34":0.00666,"36":0.00333,"37":0.00333,"46":0.00333,"79":0.01332,"80":0.00333,"86":0.00333,"90":0.00999,"91":0.01665,"92":0.01665,"95":0.07659,"113":0.00333,"114":0.01332,"116":0.00333,"117":0.00333,"118":0.00333,"119":0.00333,"120":0.11655,"121":0.02997,"122":0.72594,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 81 82 83 84 85 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00999,"13":0.00666,"14":0.00999,"15":0.00333,"16":0.00666,"17":0.00999,"18":0.06327,"84":0.00999,"89":0.01665,"90":0.00999,"91":0.02331,"92":0.10656,"100":0.01332,"109":0.01665,"113":0.00333,"114":0.05994,"120":0.00666,"121":0.00333,"122":0.01998,"123":0.00333,"126":0.00666,"127":0.00666,"129":0.00333,"130":0.00999,"131":0.00999,"132":0.00999,"133":0.00666,"134":0.01332,"135":0.01332,"136":0.02664,"137":0.01998,"138":0.05661,"139":0.12987,"140":0.81918,"141":3.24009,"142":0.06327,_:"79 80 81 83 85 86 87 88 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 115 116 117 118 119 124 125 128"},E:{"13":0.00333,_:"0 4 5 6 7 8 9 10 11 12 14 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.4 16.5 17.1 17.2 26.2","5.1":0.00999,"11.1":0.00333,"13.1":0.0333,"14.1":0.00666,"15.6":0.04329,"16.1":0.00333,"16.3":0.00333,"16.6":0.08991,"17.0":0.00333,"17.3":0.00333,"17.4":0.00333,"17.5":0.00666,"17.6":0.06327,"18.0":0.00666,"18.1":0.00999,"18.2":0.00333,"18.3":0.00666,"18.4":0.00999,"18.5-18.6":0.08658,"26.0":0.12654,"26.1":0.00333},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0005,"5.0-5.1":0,"6.0-6.1":0.002,"7.0-7.1":0.0015,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00449,"10.0-10.2":0.0005,"10.3":0.00848,"11.0-11.2":0.12575,"11.3-11.4":0.00299,"12.0-12.1":0.001,"12.2-12.5":0.02445,"13.0-13.1":0,"13.2":0.00249,"13.3":0.001,"13.4-13.7":0.00399,"14.0-14.4":0.00848,"14.5-14.8":0.00898,"15.0-15.1":0.00848,"15.2-15.3":0.00649,"15.4":0.00748,"15.5":0.00848,"15.6-15.8":0.11078,"16.0":0.01497,"16.1":0.02794,"16.2":0.01447,"16.3":0.02595,"16.4":0.00649,"16.5":0.01148,"16.6-16.7":0.1482,"17.0":0.01048,"17.1":0.01597,"17.2":0.01148,"17.3":0.01697,"17.4":0.02994,"17.5":0.0514,"17.6-17.7":0.12974,"18.0":0.02944,"18.1":0.06088,"18.2":0.03293,"18.3":0.10579,"18.4":0.05439,"18.5-18.6":2.77339,"26.0":0.34281,"26.1":0.01247},P:{"4":0.04077,"20":0.02038,"21":0.01019,"22":0.05096,"23":0.03058,"24":0.13249,"25":0.08153,"26":0.05096,"27":0.1223,"28":1.45743,"29":0.05096,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.11211,"11.1-11.2":0.01019,"17.0":0.01019,"19.0":0.02038},I:{"0":0.05329,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":4.39337,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01998,_:"6 7 8 9 10 5.5"},S:{"2.5":0.18679,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.2068},Q:{"14.9":0.02668},O:{"0":0.32021},H:{"0":0.79},L:{"0":62.10565}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NA.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NA.js deleted file mode 100644 index 21fa5b5f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NA.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"34":0.00769,"68":0.00384,"78":0.00384,"91":0.00384,"100":0.00769,"103":0.00384,"115":0.11532,"116":0.00384,"127":0.00384,"128":0.01538,"134":0.00384,"138":0.00384,"139":0.01922,"140":0.01153,"141":0.00769,"142":0.03075,"143":0.75342,"144":0.81493,"145":0.00384,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 101 102 104 105 106 107 108 109 110 111 112 113 114 117 118 119 120 121 122 123 124 125 126 129 130 131 132 133 135 136 137 146 147 3.5 3.6"},D:{"39":0.00384,"40":0.00384,"41":0.00769,"42":0.00769,"43":0.00384,"44":0.00384,"45":0.00769,"46":0.00384,"47":0.00769,"48":0.00384,"49":0.00769,"50":0.00384,"51":0.00769,"52":0.00384,"53":0.00384,"54":0.00769,"55":0.00769,"56":0.00769,"57":0.00769,"58":0.00769,"59":0.00769,"60":0.00769,"69":0.01538,"71":0.00769,"72":0.00384,"73":0.00384,"74":0.06535,"75":0.00384,"77":0.00384,"78":0.00769,"79":0.01153,"80":0.00769,"81":0.00384,"83":0.00769,"88":0.00769,"89":0.00384,"91":0.00769,"92":0.00384,"94":0.00384,"95":0.00769,"98":0.00384,"100":0.0346,"103":0.01538,"104":0.04613,"105":0.00384,"106":0.00769,"107":0.00384,"108":0.00769,"109":0.57276,"110":0.00384,"111":0.03844,"112":0.01922,"113":0.00384,"114":0.04997,"116":0.0346,"117":0.00384,"119":0.00769,"120":0.00769,"121":0.00384,"122":0.04228,"123":0.00769,"124":0.00384,"125":0.98406,"126":0.00769,"127":0.00769,"128":0.03075,"129":0.01153,"130":0.01153,"131":0.02691,"132":0.01153,"133":0.01922,"134":0.0615,"135":0.04228,"136":0.06919,"137":0.05766,"138":0.29983,"139":0.45744,"140":4.68199,"141":9.81758,"142":0.10763,"143":0.01922,"144":0.00384,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 70 76 84 85 86 87 90 93 96 97 99 101 102 115 118 145"},F:{"35":0.00384,"50":0.00769,"79":0.01153,"92":0.00769,"95":0.02691,"113":0.00384,"114":0.01922,"120":0.06535,"121":0.03844,"122":0.69576,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 91 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00384,"13":0.00769,"16":0.01153,"17":0.00384,"18":0.04228,"86":0.00384,"89":0.00384,"90":0.00769,"92":0.02306,"100":0.00384,"103":0.00384,"107":0.00384,"109":0.03075,"111":0.00384,"113":0.00384,"114":0.02306,"116":0.00384,"119":0.00769,"122":0.02306,"127":0.00384,"128":0.00384,"129":0.02691,"130":0.00384,"131":0.00769,"132":0.00384,"133":0.02691,"134":0.04997,"135":0.03075,"136":0.02306,"137":0.02306,"138":0.0346,"139":0.10763,"140":1.12629,"141":4.97798,"142":0.00384,_:"14 15 79 80 81 83 84 85 87 88 91 93 94 95 96 97 98 99 101 102 104 105 106 108 110 112 115 117 118 120 121 123 124 125 126"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 15.1 15.4 15.5 16.0 16.2 16.3 17.0 17.2 26.2","11.1":0.00384,"13.1":0.01922,"14.1":0.02306,"15.2-15.3":0.00384,"15.6":0.11532,"16.1":0.00384,"16.4":0.00769,"16.5":0.00384,"16.6":0.08072,"17.1":0.03075,"17.3":0.0346,"17.4":0.00384,"17.5":0.00769,"17.6":0.07688,"18.0":0.00384,"18.1":0.00384,"18.2":0.02691,"18.3":0.02691,"18.4":0.01153,"18.5-18.6":0.07304,"26.0":0.47666,"26.1":0.01153},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00086,"5.0-5.1":0,"6.0-6.1":0.00345,"7.0-7.1":0.00259,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00777,"10.0-10.2":0.00086,"10.3":0.01467,"11.0-11.2":0.21749,"11.3-11.4":0.00518,"12.0-12.1":0.00173,"12.2-12.5":0.04229,"13.0-13.1":0,"13.2":0.00432,"13.3":0.00173,"13.4-13.7":0.0069,"14.0-14.4":0.01467,"14.5-14.8":0.01554,"15.0-15.1":0.01467,"15.2-15.3":0.01122,"15.4":0.01295,"15.5":0.01467,"15.6-15.8":0.1916,"16.0":0.02589,"16.1":0.04833,"16.2":0.02503,"16.3":0.04488,"16.4":0.01122,"16.5":0.01985,"16.6-16.7":0.25633,"17.0":0.01812,"17.1":0.02762,"17.2":0.01985,"17.3":0.02934,"17.4":0.05178,"17.5":0.0889,"17.6-17.7":0.2244,"18.0":0.05092,"18.1":0.10529,"18.2":0.05696,"18.3":0.18297,"18.4":0.09407,"18.5-18.6":4.79695,"26.0":0.59293,"26.1":0.02158},P:{"4":0.11286,"22":0.01026,"23":0.03078,"24":0.12312,"25":0.0513,"26":0.1026,"27":0.19494,"28":4.85298,"29":0.27702,_:"20 21 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 16.0 19.0","5.0-5.4":0.01026,"7.2-7.4":0.18468,"14.0":0.01026,"15.0":0.01026,"17.0":0.02052,"18.0":0.01026},I:{"0":0.02459,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":1.39666,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00769,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.29549},Q:{"14.9":0.00616},O:{"0":0.54788},H:{"0":0.05},L:{"0":51.90426}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NC.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NC.js deleted file mode 100644 index ee3ebb05..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NC.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"48":0.00326,"52":0.00652,"53":0.36164,"102":0.02281,"107":0.00652,"108":0.00326,"115":0.08471,"120":0.00326,"123":0.00326,"124":0.00326,"127":0.00326,"128":0.12055,"132":0.00326,"134":0.00326,"136":0.00977,"139":0.09122,"140":0.13358,"141":0.00977,"142":0.02281,"143":1.51823,"144":1.47587,"145":0.00652,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 109 110 111 112 113 114 116 117 118 119 121 122 125 126 129 130 131 133 135 137 138 146 147 3.5 3.6"},D:{"39":0.00326,"40":0.00326,"41":0.00326,"42":0.00652,"43":0.00326,"44":0.00652,"45":0.00977,"47":0.00326,"49":0.00652,"50":0.00652,"51":0.00326,"52":0.00326,"54":0.00326,"55":0.00652,"56":0.00326,"57":0.00326,"58":0.00326,"59":0.00326,"60":0.00326,"81":0.00326,"92":0.00326,"94":0.01303,"103":0.04561,"107":0.00977,"108":0.00977,"109":0.4887,"116":0.04887,"120":0.00652,"122":0.00326,"123":0.00326,"125":1.57687,"126":0.02932,"127":0.00326,"128":0.11077,"129":0.04235,"131":0.05213,"132":0.00326,"133":0.00977,"134":0.00326,"135":0.01629,"136":0.00652,"137":0.00326,"138":0.04887,"139":1.75932,"140":2.59988,"141":7.19692,"142":0.07493,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 46 48 53 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 83 84 85 86 87 88 89 90 91 93 95 96 97 98 99 100 101 102 104 105 106 110 111 112 113 114 115 117 118 119 121 124 130 143 144 145"},F:{"46":0.00326,"91":0.00652,"92":0.00652,"120":2.04602,"121":0.12055,"122":1.8929,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.00326,"114":0.02281,"122":0.00652,"124":0.00652,"127":0.00326,"131":0.02281,"133":0.00326,"134":0.02606,"135":0.00326,"136":0.00652,"137":0.00652,"138":0.01629,"139":0.02606,"140":1.1012,"141":4.45369,"142":0.00326,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 125 126 128 129 130 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.2-15.3 15.4 16.4 17.0 18.2 26.2","12.1":0.00652,"13.1":0.01955,"14.1":0.01303,"15.1":0.01629,"15.5":0.00326,"15.6":0.13032,"16.0":0.00326,"16.1":0.01303,"16.2":0.00326,"16.3":0.01303,"16.5":0.00977,"16.6":0.07493,"17.1":0.04887,"17.2":0.00326,"17.3":0.02281,"17.4":0.00326,"17.5":0.0391,"17.6":0.08145,"18.0":0.00977,"18.1":0.00977,"18.3":0.02606,"18.4":0.03258,"18.5-18.6":0.06516,"26.0":0.13032,"26.1":0.06842},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00097,"5.0-5.1":0,"6.0-6.1":0.00388,"7.0-7.1":0.00291,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00874,"10.0-10.2":0.00097,"10.3":0.01651,"11.0-11.2":0.24469,"11.3-11.4":0.00583,"12.0-12.1":0.00194,"12.2-12.5":0.04758,"13.0-13.1":0,"13.2":0.00485,"13.3":0.00194,"13.4-13.7":0.00777,"14.0-14.4":0.01651,"14.5-14.8":0.01748,"15.0-15.1":0.01651,"15.2-15.3":0.01262,"15.4":0.01456,"15.5":0.01651,"15.6-15.8":0.21556,"16.0":0.02913,"16.1":0.05438,"16.2":0.02816,"16.3":0.05049,"16.4":0.01262,"16.5":0.02233,"16.6-16.7":0.28838,"17.0":0.02039,"17.1":0.03107,"17.2":0.02233,"17.3":0.03301,"17.4":0.05826,"17.5":0.10001,"17.6-17.7":0.25246,"18.0":0.05729,"18.1":0.11846,"18.2":0.06409,"18.3":0.20585,"18.4":0.10584,"18.5-18.6":5.39677,"26.0":0.66707,"26.1":0.02427},P:{"24":0.06413,"25":0.05344,"27":0.02138,"28":2.55452,"29":0.25652,_:"4 20 21 22 23 26 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 18.0 19.0","7.2-7.4":0.03207,"16.0":0.02138,"17.0":0.01069},I:{"0":0.02693,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.08092,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.27646},Q:{_:"14.9"},O:{"0":0.08092},H:{"0":0},L:{"0":55.70006}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NE.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NE.js deleted file mode 100644 index b85cc35c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NE.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"43":0.00219,"45":0.00219,"46":0.01972,"47":0.00219,"49":0.00657,"52":0.00657,"56":0.00219,"57":0.00657,"58":0.00438,"60":0.00219,"61":0.00657,"69":0.00219,"72":0.00876,"77":0.00657,"81":0.00219,"84":0.00438,"86":0.01096,"89":0.00438,"90":0.00219,"92":0.00219,"94":0.00219,"95":0.00219,"106":0.00657,"115":0.1227,"120":0.00219,"122":0.00219,"123":0.00219,"124":0.00219,"126":0.00438,"127":0.0241,"128":0.01315,"131":0.00219,"133":0.00219,"136":0.03944,"137":0.00219,"138":0.00219,"139":0.01096,"140":0.10955,"141":0.01534,"142":0.04382,"143":0.64635,"144":0.5346,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 48 50 51 53 54 55 59 62 63 64 65 66 67 68 70 71 73 74 75 76 78 79 80 82 83 85 87 88 91 93 96 97 98 99 100 101 102 103 104 105 107 108 109 110 111 112 113 114 116 117 118 119 121 125 129 130 132 134 135 145 146 147 3.5 3.6"},D:{"39":0.00219,"41":0.00219,"44":0.00219,"47":0.00438,"48":0.00219,"49":0.00219,"50":0.00219,"51":0.00657,"52":0.00219,"53":0.00438,"54":0.00219,"56":0.01534,"59":0.00219,"60":0.00219,"61":0.00219,"62":0.00219,"64":0.00219,"66":0.00657,"67":0.00657,"69":0.00876,"70":0.00438,"71":0.00657,"72":0.00438,"73":0.00219,"74":0.00438,"75":0.00438,"78":0.00219,"79":0.00219,"80":0.00657,"83":0.00876,"84":0.01315,"86":0.01534,"87":0.00438,"88":0.00219,"89":0.00657,"90":0.00438,"91":0.00219,"93":0.00438,"96":0.00219,"98":0.00219,"99":0.00876,"101":0.00657,"103":0.02191,"105":0.00219,"106":0.00219,"107":0.00876,"109":0.42067,"110":0.00219,"111":0.00219,"112":0.00876,"114":0.00219,"115":0.00438,"116":0.03944,"117":0.00219,"119":0.00657,"120":0.00219,"121":0.01753,"122":0.01753,"123":0.00438,"124":0.00657,"125":0.07669,"126":0.03287,"128":0.01534,"129":0.00438,"130":0.00438,"131":0.01972,"132":0.01315,"133":0.01534,"134":0.03067,"135":0.02848,"136":0.02848,"137":0.05916,"138":0.31331,"139":0.21253,"140":2.52184,"141":3.61953,"142":0.06792,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 42 43 45 46 55 57 58 63 65 68 76 77 81 85 92 94 95 97 100 102 104 108 113 118 127 143 144 145"},F:{"35":0.00657,"38":0.00219,"42":0.00876,"77":0.00219,"79":0.01096,"90":0.00219,"91":0.01753,"92":0.03506,"95":0.02191,"112":0.00219,"115":0.00219,"119":0.00657,"120":0.0482,"121":0.00219,"122":0.60253,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 39 40 41 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 80 81 82 83 84 85 86 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00219,"16":0.00219,"17":0.01096,"18":0.05258,"84":0.01534,"89":0.00657,"90":0.01753,"92":0.06354,"95":0.00219,"99":0.00219,"100":0.01753,"109":0.01534,"112":0.00219,"114":0.02848,"117":0.00219,"122":0.00219,"124":0.12489,"125":0.00219,"127":0.00438,"129":0.02191,"131":0.00219,"132":0.00219,"133":0.00219,"135":0.00219,"136":0.00876,"137":0.00438,"138":0.01096,"139":0.07449,"140":0.50174,"141":2.19319,"142":0.00438,_:"12 13 15 79 80 81 83 85 86 87 88 91 93 94 96 97 98 101 102 103 104 105 106 107 108 110 111 113 115 116 118 119 120 121 123 126 128 130 134"},E:{"11":0.00438,"14":0.00438,_:"0 4 5 6 7 8 9 10 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 14.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.3 17.4 17.5 18.2 18.3 18.4 26.1 26.2","5.1":0.00438,"11.1":0.00438,"13.1":0.01096,"15.1":0.00438,"15.6":0.0241,"16.6":0.0241,"17.6":0.02629,"18.0":0.00219,"18.1":0.02629,"18.5-18.6":0.01315,"26.0":0.05478},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00033,"5.0-5.1":0,"6.0-6.1":0.00133,"7.0-7.1":0.001,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00299,"10.0-10.2":0.00033,"10.3":0.00566,"11.0-11.2":0.08383,"11.3-11.4":0.002,"12.0-12.1":0.00067,"12.2-12.5":0.0163,"13.0-13.1":0,"13.2":0.00166,"13.3":0.00067,"13.4-13.7":0.00266,"14.0-14.4":0.00566,"14.5-14.8":0.00599,"15.0-15.1":0.00566,"15.2-15.3":0.00432,"15.4":0.00499,"15.5":0.00566,"15.6-15.8":0.07385,"16.0":0.00998,"16.1":0.01863,"16.2":0.00965,"16.3":0.0173,"16.4":0.00432,"16.5":0.00765,"16.6-16.7":0.0988,"17.0":0.00699,"17.1":0.01065,"17.2":0.00765,"17.3":0.01131,"17.4":0.01996,"17.5":0.03426,"17.6-17.7":0.08649,"18.0":0.01963,"18.1":0.04058,"18.2":0.02196,"18.3":0.07052,"18.4":0.03626,"18.5-18.6":1.84894,"26.0":0.22854,"26.1":0.00832},P:{"4":0.03105,"22":0.0207,"24":0.01035,"25":0.0207,"26":0.05175,"27":0.0621,"28":0.50711,"29":0.03105,_:"20 21 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0","7.2-7.4":0.0207,"16.0":0.08279,"19.0":0.0207},I:{"0":0.06238,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":2.92433,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.03725,_:"6 7 8 9 10 5.5"},S:{"2.5":0.00781,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.10152},Q:{"14.9":0.03905},O:{"0":0.83556},H:{"0":0.66},L:{"0":76.46517}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NF.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NF.js deleted file mode 100644 index 0140b54c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NF.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 3.5 3.6"},D:{"109":0.47388,"125":4.26488,"126":5.21263,"127":4.73875,"138":0.47388,"141":9.95138,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 128 129 130 131 132 133 134 135 136 137 139 140 142 143 144 145"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"111":0.47388,"141":10.89913,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.3 17.4 17.5 17.6 18.0 18.1 18.2 18.3 18.4 18.5-18.6 26.1 26.2","16.6":0.47388,"26.0":0.47388},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00207,"5.0-5.1":0,"6.0-6.1":0.00828,"7.0-7.1":0.00621,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01862,"10.0-10.2":0.00207,"10.3":0.03518,"11.0-11.2":0.52142,"11.3-11.4":0.01241,"12.0-12.1":0.00414,"12.2-12.5":0.10139,"13.0-13.1":0,"13.2":0.01035,"13.3":0.00414,"13.4-13.7":0.01655,"14.0-14.4":0.03518,"14.5-14.8":0.03724,"15.0-15.1":0.03518,"15.2-15.3":0.0269,"15.4":0.03104,"15.5":0.03518,"15.6-15.8":0.45935,"16.0":0.06207,"16.1":0.11587,"16.2":0.06,"16.3":0.10759,"16.4":0.0269,"16.5":0.04759,"16.6-16.7":0.61453,"17.0":0.04345,"17.1":0.06621,"17.2":0.04759,"17.3":0.07035,"17.4":0.12415,"17.5":0.21312,"17.6-17.7":0.53797,"18.0":0.12208,"18.1":0.25243,"18.2":0.13656,"18.3":0.43865,"18.4":0.22553,"18.5-18.6":11.5002,"26.0":1.42149,"26.1":0.05173},P:{"28":5.54995,_:"4 20 21 22 23 24 25 26 27 29 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":35.30076}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NG.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NG.js deleted file mode 100644 index 503eb9f6..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NG.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"43":0.00793,"47":0.00264,"52":0.00264,"65":0.00528,"72":0.00528,"78":0.00264,"99":0.00264,"114":0.00528,"115":0.36988,"127":0.00793,"128":0.00264,"133":0.00264,"134":0.00264,"135":0.00264,"136":0.00264,"137":0.00264,"138":0.00264,"139":0.00528,"140":0.0317,"141":0.00528,"142":0.01849,"143":0.27477,"144":0.25627,"145":0.00528,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 102 103 104 105 106 107 108 109 110 111 112 113 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 146 147 3.5 3.6"},D:{"47":0.02378,"50":0.00264,"53":0.00264,"55":0.00264,"59":0.00264,"62":0.01585,"63":0.00528,"64":0.00264,"65":0.00264,"68":0.00264,"69":0.00264,"70":0.02378,"71":0.00264,"72":0.00264,"73":0.00264,"74":0.00528,"75":0.00528,"76":0.00528,"77":0.00264,"78":0.01057,"79":0.02642,"80":0.01585,"81":0.00528,"83":0.00528,"84":0.00264,"85":0.00264,"86":0.00528,"87":0.00793,"88":0.00528,"89":0.00264,"90":0.00264,"91":0.00528,"92":0.00264,"93":0.01057,"94":0.00264,"95":0.00528,"96":0.00264,"97":0.00264,"98":0.00264,"99":0.00264,"100":0.00264,"102":0.01321,"103":0.02114,"104":0.00528,"105":0.01849,"106":0.01321,"107":0.00264,"108":0.00793,"109":0.50198,"111":0.02378,"112":0.05284,"113":0.00264,"114":0.02378,"116":0.02906,"117":0.00264,"118":0.00264,"119":0.02906,"120":0.01057,"121":0.00528,"122":0.01849,"123":0.00793,"124":0.0502,"125":0.07662,"126":0.03963,"127":0.02114,"128":0.02906,"129":0.01321,"130":0.03435,"131":0.08454,"132":0.02642,"133":0.03963,"134":0.03435,"135":0.03963,"136":0.06869,"137":0.08719,"138":0.32497,"139":0.34346,"140":2.26684,"141":4.56009,"142":0.0502,"143":0.00528,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 51 52 54 56 57 58 60 61 66 67 101 110 115 144 145"},F:{"79":0.00528,"85":0.00528,"86":0.00528,"87":0.01321,"88":0.01057,"89":0.02114,"90":0.07926,"91":0.23778,"92":0.21664,"93":0.00264,"94":0.00264,"95":0.02378,"113":0.00264,"114":0.00264,"119":0.00264,"120":0.04756,"121":0.00793,"122":0.25363,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00264,"15":0.00264,"16":0.00264,"18":0.01849,"84":0.00264,"89":0.00264,"90":0.00528,"92":0.02114,"100":0.00793,"109":0.00793,"114":0.04756,"122":0.00528,"126":0.00264,"128":0.00793,"130":0.00264,"131":0.00528,"132":0.00264,"133":0.00264,"134":0.00793,"135":0.00793,"136":0.00793,"137":0.01057,"138":0.02114,"139":0.03963,"140":0.24835,"141":0.90621,"142":0.00264,_:"13 14 17 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 127 129"},E:{"11":0.00528,"13":0.00793,"14":0.00264,_:"0 4 5 6 7 8 9 10 12 15 3.1 3.2 6.1 7.1 9.1 10.1 15.4 26.2","5.1":0.00264,"11.1":0.00528,"12.1":0.00264,"13.1":0.01585,"14.1":0.00528,"15.1":0.00264,"15.2-15.3":0.00264,"15.5":0.00264,"15.6":0.03699,"16.0":0.00264,"16.1":0.00264,"16.2":0.00264,"16.3":0.00264,"16.4":0.00264,"16.5":0.00264,"16.6":0.02114,"17.0":0.00264,"17.1":0.00528,"17.2":0.00264,"17.3":0.00264,"17.4":0.00264,"17.5":0.00793,"17.6":0.02642,"18.0":0.00528,"18.1":0.00528,"18.2":0.00793,"18.3":0.01057,"18.4":0.00793,"18.5-18.6":0.02642,"26.0":0.04227,"26.1":0.00264},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00074,"5.0-5.1":0,"6.0-6.1":0.00295,"7.0-7.1":0.00221,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00664,"10.0-10.2":0.00074,"10.3":0.01255,"11.0-11.2":0.18598,"11.3-11.4":0.00443,"12.0-12.1":0.00148,"12.2-12.5":0.03616,"13.0-13.1":0,"13.2":0.00369,"13.3":0.00148,"13.4-13.7":0.0059,"14.0-14.4":0.01255,"14.5-14.8":0.01328,"15.0-15.1":0.01255,"15.2-15.3":0.00959,"15.4":0.01107,"15.5":0.01255,"15.6-15.8":0.16384,"16.0":0.02214,"16.1":0.04133,"16.2":0.0214,"16.3":0.03838,"16.4":0.00959,"16.5":0.01697,"16.6-16.7":0.21919,"17.0":0.0155,"17.1":0.02362,"17.2":0.01697,"17.3":0.02509,"17.4":0.04428,"17.5":0.07601,"17.6-17.7":0.19188,"18.0":0.04354,"18.1":0.09004,"18.2":0.04871,"18.3":0.15646,"18.4":0.08044,"18.5-18.6":4.10185,"26.0":0.50701,"26.1":0.01845},P:{"4":0.01033,"21":0.01033,"22":0.02066,"23":0.01033,"24":0.0723,"25":0.08263,"26":0.03098,"27":0.08263,"28":0.72297,"29":0.02066,_:"20 5.0-5.4 6.2-6.4 8.2 10.1 12.0 13.0 14.0 15.0 17.0 18.0 19.0","7.2-7.4":0.02066,"9.2":0.02066,"11.1-11.2":0.01033,"16.0":0.01033},I:{"0":0.02939,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":17.29021,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00528,_:"6 7 8 9 10 5.5"},S:{"2.5":0.00736,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.30904},Q:{"14.9":0.00736},O:{"0":0.2796},H:{"0":2.26},L:{"0":57.66192}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NI.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NI.js deleted file mode 100644 index 4b830e81..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NI.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"4":0.00972,"115":0.05345,"128":0.02915,"134":0.00486,"135":0.00486,"136":0.00486,"137":0.01458,"138":0.01944,"139":0.05345,"140":0.05831,"141":0.01458,"142":0.16035,"143":0.94265,"144":0.74343,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 145 146 147 3.5 3.6"},D:{"29":0.00486,"39":0.00972,"40":0.00486,"41":0.00972,"42":0.00972,"43":0.00972,"44":0.00972,"45":0.00486,"46":0.00972,"47":0.00972,"48":0.00972,"49":0.00972,"50":0.00972,"51":0.00972,"52":0.00972,"53":0.00972,"54":0.00972,"55":0.01458,"56":0.00972,"57":0.00972,"58":0.00972,"59":0.00972,"60":0.00486,"65":0.00486,"69":0.00486,"73":0.00486,"75":0.00486,"79":0.01944,"81":0.00486,"83":0.00972,"85":0.00486,"86":0.00972,"87":0.05831,"88":0.00486,"91":0.00486,"93":0.00486,"94":0.00486,"97":0.01458,"98":0.01458,"99":0.00486,"102":0.00486,"103":0.03401,"106":0.00486,"108":0.01458,"109":0.39844,"110":0.00486,"111":0.04859,"112":2.22056,"114":0.03887,"116":0.0243,"117":0.00486,"118":0.00972,"119":0.00972,"120":0.0243,"121":0.00972,"122":0.0243,"123":0.00972,"124":0.00972,"125":6.94351,"126":0.26239,"127":0.06317,"128":0.0243,"129":0.00486,"130":0.00486,"131":0.10204,"132":0.01458,"133":0.05345,"134":0.04373,"135":0.13119,"136":0.05345,"137":0.05831,"138":0.17978,"139":0.20408,"140":5.43236,"141":12.37587,"142":0.21866,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 38 61 62 63 64 66 67 68 70 71 72 74 76 77 78 80 84 89 90 92 95 96 100 101 104 105 107 113 115 143 144 145"},F:{"91":0.00486,"92":0.03887,"95":0.00486,"120":0.04859,"121":0.24295,"122":1.07384,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.01458,"18":0.00486,"84":0.00486,"92":0.0243,"100":0.00486,"109":0.00972,"114":0.76772,"119":0.00486,"122":0.01458,"125":0.00486,"126":0.00486,"127":0.00486,"128":0.00486,"131":0.00486,"132":0.00486,"133":0.00486,"134":0.04859,"135":0.01458,"136":0.00972,"137":0.01944,"138":0.02915,"139":0.07774,"140":0.8892,"141":4.81527,"142":0.00486,_:"12 13 14 15 17 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 120 121 123 124 129 130"},E:{"13":0.00486,_:"0 4 5 6 7 8 9 10 11 12 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.4 16.5 17.0 17.3 17.4 18.2 26.2","5.1":0.02915,"15.1":0.04859,"15.6":0.01944,"16.3":0.00486,"16.6":0.02915,"17.1":0.01458,"17.2":0.01458,"17.5":0.01944,"17.6":0.05345,"18.0":0.01458,"18.1":0.02915,"18.3":0.01458,"18.4":0.00486,"18.5-18.6":0.03401,"26.0":0.30126,"26.1":0.00972},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0007,"5.0-5.1":0,"6.0-6.1":0.00281,"7.0-7.1":0.00211,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00632,"10.0-10.2":0.0007,"10.3":0.01194,"11.0-11.2":0.17694,"11.3-11.4":0.00421,"12.0-12.1":0.0014,"12.2-12.5":0.0344,"13.0-13.1":0,"13.2":0.00351,"13.3":0.0014,"13.4-13.7":0.00562,"14.0-14.4":0.01194,"14.5-14.8":0.01264,"15.0-15.1":0.01194,"15.2-15.3":0.00913,"15.4":0.01053,"15.5":0.01194,"15.6-15.8":0.15587,"16.0":0.02106,"16.1":0.03932,"16.2":0.02036,"16.3":0.03651,"16.4":0.00913,"16.5":0.01615,"16.6-16.7":0.20853,"17.0":0.01474,"17.1":0.02247,"17.2":0.01615,"17.3":0.02387,"17.4":0.04213,"17.5":0.07232,"17.6-17.7":0.18255,"18.0":0.04143,"18.1":0.08566,"18.2":0.04634,"18.3":0.14885,"18.4":0.07653,"18.5-18.6":3.90241,"26.0":0.48236,"26.1":0.01755},P:{"4":0.0206,"21":0.0103,"22":0.0206,"23":0.03091,"24":0.06181,"25":0.06181,"26":0.23695,"27":0.11332,"28":1.59685,"29":0.08242,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 14.0 15.0 17.0 18.0","7.2-7.4":0.08242,"11.1-11.2":0.0103,"13.0":0.0103,"16.0":0.0103,"19.0":0.03091},I:{"0":0.0308,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.31868,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.02885,"9":0.00577,"10":0.00577,"11":0.05193,_:"6 7 5.5"},S:{"2.5":0.00514,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.14906},Q:{"14.9":0.00514},O:{"0":0.0771},H:{"0":0},L:{"0":47.32973}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NL.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NL.js deleted file mode 100644 index 3dc0fefd..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NL.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"38":0.01027,"43":0.01027,"44":0.0308,"45":0.00513,"50":0.00513,"51":0.00513,"52":0.01027,"53":0.00513,"54":0.0308,"55":0.00513,"56":0.00513,"60":0.00513,"77":0.00513,"78":0.01027,"81":0.0154,"91":0.00513,"102":0.00513,"115":0.15399,"121":0.00513,"125":0.00513,"127":0.00513,"128":0.38498,"132":0.00513,"133":0.00513,"134":0.00513,"135":0.08213,"136":0.0154,"137":0.00513,"138":0.00513,"139":0.01027,"140":0.08213,"141":0.02567,"142":0.05133,"143":1.09333,"144":0.92907,"145":0.00513,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 46 47 48 49 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 79 80 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 122 123 124 126 129 130 131 146 147 3.5 3.6"},D:{"38":0.0154,"39":0.01027,"40":0.01027,"41":0.01027,"42":0.01027,"43":0.01027,"44":0.01027,"45":0.01027,"46":0.01027,"47":0.0154,"48":0.09753,"49":0.0462,"50":0.01027,"51":0.01027,"52":0.0154,"53":0.01027,"54":0.01027,"55":0.01027,"56":0.01027,"57":0.01027,"58":0.01027,"59":0.01027,"60":0.01027,"65":0.00513,"66":0.0154,"68":0.03593,"72":0.0308,"74":0.00513,"79":0.01027,"80":0.00513,"87":0.0154,"88":0.0308,"91":0.00513,"92":0.43631,"93":0.0154,"96":0.03593,"98":0.00513,"102":0.00513,"103":0.0308,"104":0.077,"105":0.00513,"108":0.02567,"109":0.41064,"111":0.00513,"112":0.01027,"113":0.0154,"114":0.0308,"115":0.0154,"116":0.08726,"117":0.01027,"118":0.09239,"119":0.02053,"120":0.14886,"121":0.0308,"122":0.23099,"123":0.02053,"124":0.0308,"125":1.14979,"126":0.38498,"127":0.07186,"128":0.08726,"129":0.14372,"130":3.45964,"131":0.09239,"132":0.09239,"133":0.10266,"134":2.78209,"135":0.10779,"136":0.17966,"137":0.17452,"138":0.47224,"139":0.85208,"140":5.73356,"141":12.65285,"142":0.20019,"143":0.00513,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 67 69 70 71 73 75 76 77 78 81 83 84 85 86 89 90 94 95 97 99 100 101 106 107 110 144 145"},F:{"85":0.00513,"91":0.02567,"92":0.0462,"95":0.02053,"113":0.00513,"114":0.00513,"119":0.00513,"120":0.09753,"121":0.10266,"122":0.83668,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"96":0.02567,"109":0.0616,"120":0.01027,"127":0.00513,"129":0.00513,"130":0.00513,"131":0.01027,"132":0.00513,"133":0.00513,"134":0.0154,"135":0.00513,"136":0.01027,"137":0.02567,"138":0.06673,"139":0.07186,"140":1.32431,"141":5.26646,"142":0.0154,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 121 122 123 124 125 126 128"},E:{"8":0.00513,"9":0.01027,"14":0.00513,_:"0 4 5 6 7 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 26.2","12.1":0.00513,"13.1":0.0154,"14.1":0.0154,"15.2-15.3":0.00513,"15.4":0.00513,"15.5":0.00513,"15.6":0.14886,"16.0":0.01027,"16.1":0.02053,"16.2":0.0154,"16.3":0.02567,"16.4":0.01027,"16.5":0.0154,"16.6":0.23099,"17.0":0.01027,"17.1":0.18479,"17.2":0.02053,"17.3":0.02567,"17.4":0.04106,"17.5":0.0616,"17.6":0.19505,"18.0":0.02053,"18.1":0.0308,"18.2":0.02053,"18.3":0.077,"18.4":0.04106,"18.5-18.6":0.17452,"26.0":0.68269,"26.1":0.02053},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0015,"5.0-5.1":0,"6.0-6.1":0.006,"7.0-7.1":0.0045,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0135,"10.0-10.2":0.0015,"10.3":0.0255,"11.0-11.2":0.378,"11.3-11.4":0.009,"12.0-12.1":0.003,"12.2-12.5":0.0735,"13.0-13.1":0,"13.2":0.0075,"13.3":0.003,"13.4-13.7":0.012,"14.0-14.4":0.0255,"14.5-14.8":0.027,"15.0-15.1":0.0255,"15.2-15.3":0.0195,"15.4":0.0225,"15.5":0.0255,"15.6-15.8":0.333,"16.0":0.045,"16.1":0.084,"16.2":0.0435,"16.3":0.078,"16.4":0.0195,"16.5":0.0345,"16.6-16.7":0.4455,"17.0":0.0315,"17.1":0.048,"17.2":0.0345,"17.3":0.051,"17.4":0.09,"17.5":0.1545,"17.6-17.7":0.39,"18.0":0.0885,"18.1":0.183,"18.2":0.099,"18.3":0.318,"18.4":0.1635,"18.5-18.6":8.33705,"26.0":1.03051,"26.1":0.0375},P:{"4":0.01049,"21":0.01049,"22":0.01049,"23":0.02098,"24":0.01049,"25":0.02098,"26":0.06295,"27":0.05246,"28":3.54646,"29":0.2833,_:"20 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","17.0":0.01049},I:{"0":0.03888,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.50617,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01251,"9":0.08133,"10":0.00626,"11":0.10009,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.64731},Q:{"14.9":0.00487},O:{"0":0.21902},H:{"0":0},L:{"0":29.92312}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NO.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NO.js deleted file mode 100644 index 803b108a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NO.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.00554,"59":0.03323,"78":0.01108,"113":0.00554,"115":0.08861,"128":0.18829,"134":0.00554,"138":0.00554,"139":0.00554,"140":0.03323,"141":0.01108,"142":0.02769,"143":0.76424,"144":0.53165,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 135 136 137 145 146 147 3.5 3.6"},D:{"41":0.02769,"66":0.14399,"79":0.00554,"87":0.01108,"88":0.00554,"98":0.00554,"102":0.00554,"103":0.01661,"104":0.00554,"108":0.00554,"109":0.12737,"112":0.00554,"114":0.03877,"116":0.07753,"117":0.00554,"118":6.51269,"119":0.09968,"120":0.00554,"121":0.02215,"122":0.06646,"123":0.01661,"124":0.03877,"125":0.30459,"126":0.03323,"127":0.01108,"128":0.04984,"129":0.01108,"130":0.19937,"131":0.07753,"132":0.03323,"133":0.06092,"134":0.04984,"135":0.06646,"136":0.09415,"137":0.12184,"138":0.44858,"139":0.88054,"140":6.11395,"141":12.66541,"142":0.15506,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 89 90 91 92 93 94 95 96 97 99 100 101 105 106 107 110 111 113 115 143 144 145"},F:{"36":0.00554,"69":0.00554,"74":0.00554,"79":0.03323,"82":0.00554,"83":0.00554,"84":0.00554,"85":0.01661,"86":0.02215,"88":0.00554,"89":0.01108,"90":0.01661,"91":0.33228,"92":0.64795,"93":0.00554,"95":0.86947,"99":0.00554,"102":0.01108,"104":0.00554,"109":0.00554,"110":0.00554,"113":0.00554,"114":0.03323,"115":0.00554,"117":0.01661,"118":0.00554,"119":0.02769,"120":1.35681,"121":0.41535,"122":7.04434,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 70 71 72 73 75 76 77 78 80 81 87 94 96 97 98 100 101 103 105 106 107 108 111 112 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.01661,"109":0.02769,"115":0.00554,"131":0.02215,"132":0.00554,"133":0.00554,"134":0.01108,"135":0.00554,"136":0.01108,"137":0.01108,"138":0.02215,"139":0.06092,"140":1.27928,"141":5.18911,"142":0.00554,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130"},E:{"14":0.00554,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.1 15.2-15.3 26.2","11.1":0.02215,"12.1":0.02769,"13.1":0.01108,"14.1":0.02769,"15.4":0.00554,"15.5":0.01108,"15.6":0.13845,"16.0":0.00554,"16.1":0.01661,"16.2":0.01661,"16.3":0.03323,"16.4":0.03323,"16.5":0.02215,"16.6":0.27136,"17.0":0.00554,"17.1":0.22152,"17.2":0.03323,"17.3":0.02215,"17.4":0.06092,"17.5":0.14953,"17.6":0.24921,"18.0":0.03323,"18.1":0.07199,"18.2":0.02769,"18.3":0.11076,"18.4":0.06646,"18.5-18.6":0.24921,"26.0":0.59257,"26.1":0.01661},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0023,"5.0-5.1":0,"6.0-6.1":0.0092,"7.0-7.1":0.0069,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02071,"10.0-10.2":0.0023,"10.3":0.03911,"11.0-11.2":0.57975,"11.3-11.4":0.0138,"12.0-12.1":0.0046,"12.2-12.5":0.11273,"13.0-13.1":0,"13.2":0.0115,"13.3":0.0046,"13.4-13.7":0.0184,"14.0-14.4":0.03911,"14.5-14.8":0.04141,"15.0-15.1":0.03911,"15.2-15.3":0.02991,"15.4":0.03451,"15.5":0.03911,"15.6-15.8":0.51073,"16.0":0.06902,"16.1":0.12883,"16.2":0.06672,"16.3":0.11963,"16.4":0.02991,"16.5":0.05291,"16.6-16.7":0.68328,"17.0":0.04831,"17.1":0.07362,"17.2":0.05291,"17.3":0.07822,"17.4":0.13804,"17.5":0.23696,"17.6-17.7":0.59816,"18.0":0.13574,"18.1":0.28067,"18.2":0.15184,"18.3":0.48773,"18.4":0.25077,"18.5-18.6":12.78677,"26.0":1.58052,"26.1":0.05752},P:{"25":0.01048,"26":0.02097,"27":0.01048,"28":2.33791,"29":0.17823,_:"4 20 21 22 23 24 5.0-5.4 6.2-6.4 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01048,"9.2":0.01048},I:{"0":0.00891,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":5.91215,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01108,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.27664},Q:{_:"14.9"},O:{"0":0.00892},H:{"0":0},L:{"0":13.67019}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NP.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NP.js deleted file mode 100644 index 79997dbc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NP.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.00259,"91":0.00259,"99":0.00259,"103":0.00259,"115":0.07249,"127":0.00518,"128":0.00259,"136":0.00259,"138":0.00259,"139":0.00259,"140":0.01295,"141":0.00518,"142":0.01553,"143":0.39612,"144":0.33916,"145":0.01036,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 100 101 102 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 133 134 135 137 146 147 3.5 3.6"},D:{"39":0.00259,"40":0.00259,"41":0.00259,"42":0.00259,"43":0.00259,"44":0.00259,"45":0.00259,"46":0.00259,"47":0.00259,"48":0.00259,"49":0.00259,"50":0.00259,"51":0.00259,"52":0.00259,"53":0.00259,"54":0.00259,"55":0.00259,"56":0.00259,"57":0.00259,"58":0.00259,"59":0.00259,"60":0.00259,"72":0.00259,"73":0.00259,"79":0.00518,"83":0.00259,"87":0.00777,"88":0.00259,"91":0.00259,"93":0.00259,"102":0.00259,"103":0.02589,"104":0.00518,"106":0.00518,"108":0.00518,"109":0.81036,"112":0.90097,"114":0.00518,"116":0.0233,"119":0.00518,"120":0.00518,"121":0.00259,"122":0.01812,"123":0.01036,"124":0.01036,"125":2.45955,"126":0.06214,"127":0.00777,"128":0.0233,"129":0.00518,"130":0.01036,"131":0.03107,"132":0.02848,"133":0.01295,"134":0.01812,"135":0.03107,"136":0.02848,"137":0.04142,"138":0.12686,"139":0.18641,"140":3.31133,"141":9.86409,"142":0.18382,"143":0.01036,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 74 75 76 77 78 80 81 84 85 86 89 90 92 94 95 96 97 98 99 100 101 105 107 110 111 113 115 117 118 144 145"},F:{"91":0.00777,"92":0.01295,"95":0.00518,"120":0.02071,"121":0.01553,"122":0.18641,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00259,"109":0.00518,"114":0.01553,"122":0.00259,"126":0.00259,"131":0.00259,"132":0.00259,"134":0.00518,"135":0.00518,"136":0.00259,"137":0.00259,"138":0.00518,"139":0.01036,"140":0.13722,"141":1.23754,"142":0.00518,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 127 128 129 130 133"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 16.0 16.4 17.0 26.2","12.1":0.00259,"13.1":0.00259,"14.1":0.00259,"15.2-15.3":0.00259,"15.4":0.00259,"15.5":0.00259,"15.6":0.02071,"16.1":0.01295,"16.2":0.00259,"16.3":0.00518,"16.5":0.00259,"16.6":0.0233,"17.1":0.01036,"17.2":0.00259,"17.3":0.00518,"17.4":0.00518,"17.5":0.00777,"17.6":0.03625,"18.0":0.00259,"18.1":0.01036,"18.2":0.00259,"18.3":0.00518,"18.4":0.00518,"18.5-18.6":0.02589,"26.0":0.10356,"26.1":0.00518},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00131,"5.0-5.1":0,"6.0-6.1":0.00525,"7.0-7.1":0.00394,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01181,"10.0-10.2":0.00131,"10.3":0.02231,"11.0-11.2":0.33075,"11.3-11.4":0.00787,"12.0-12.1":0.00262,"12.2-12.5":0.06431,"13.0-13.1":0,"13.2":0.00656,"13.3":0.00262,"13.4-13.7":0.0105,"14.0-14.4":0.02231,"14.5-14.8":0.02362,"15.0-15.1":0.02231,"15.2-15.3":0.01706,"15.4":0.01969,"15.5":0.02231,"15.6-15.8":0.29137,"16.0":0.03937,"16.1":0.0735,"16.2":0.03806,"16.3":0.06825,"16.4":0.01706,"16.5":0.03019,"16.6-16.7":0.38981,"17.0":0.02756,"17.1":0.042,"17.2":0.03019,"17.3":0.04462,"17.4":0.07875,"17.5":0.13519,"17.6-17.7":0.34125,"18.0":0.07744,"18.1":0.16012,"18.2":0.08662,"18.3":0.27825,"18.4":0.14306,"18.5-18.6":7.29481,"26.0":0.90168,"26.1":0.03281},P:{"4":0.01054,"25":0.01054,"26":0.03161,"27":0.02108,"28":0.53741,"29":0.04215,_:"20 21 22 23 24 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","7.2-7.4":0.01054,"17.0":0.01054},I:{"0":0.0222,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.49654,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.05929},Q:{_:"14.9"},O:{"0":0.39278},H:{"0":0},L:{"0":63.05836}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NR.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NR.js deleted file mode 100644 index aaac4366..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NR.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"144":0.22826,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 145 146 147 3.5 3.6"},D:{"51":0.02938,"101":0.19888,"109":0.31188,"116":0.02938,"122":0.02938,"125":0.31188,"126":0.08588,"127":0.02938,"138":0.02938,"139":0.08588,"140":2.27356,"141":2.04756,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 102 103 104 105 106 107 108 110 111 112 113 114 115 117 118 119 120 121 123 124 128 129 130 131 132 133 134 135 136 137 142 143 144 145"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.02938,"114":0.0565,"138":0.02938,"140":0.34126,"141":5.71328,_:"12 13 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 139 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.4 17.5 17.6 18.0 18.1 18.2 18.3 18.4 18.5-18.6 26.0 26.1 26.2"},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00035,"5.0-5.1":0,"6.0-6.1":0.00141,"7.0-7.1":0.00105,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00316,"10.0-10.2":0.00035,"10.3":0.00597,"11.0-11.2":0.08856,"11.3-11.4":0.00211,"12.0-12.1":0.0007,"12.2-12.5":0.01722,"13.0-13.1":0,"13.2":0.00176,"13.3":0.0007,"13.4-13.7":0.00281,"14.0-14.4":0.00597,"14.5-14.8":0.00633,"15.0-15.1":0.00597,"15.2-15.3":0.00457,"15.4":0.00527,"15.5":0.00597,"15.6-15.8":0.07802,"16.0":0.01054,"16.1":0.01968,"16.2":0.01019,"16.3":0.01827,"16.4":0.00457,"16.5":0.00808,"16.6-16.7":0.10438,"17.0":0.00738,"17.1":0.01125,"17.2":0.00808,"17.3":0.01195,"17.4":0.02109,"17.5":0.0362,"17.6-17.7":0.09137,"18.0":0.02074,"18.1":0.04288,"18.2":0.0232,"18.3":0.07451,"18.4":0.03831,"18.5-18.6":1.95331,"26.0":0.24144,"26.1":0.00879},P:{"27":0.06173,"28":9.56837,"29":0.0926,_:"4 20 21 22 23 24 25 26 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.44124,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{"0":1.02181},H:{"0":0},L:{"0":72.88338}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NU.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NU.js deleted file mode 100644 index a70db918..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NU.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 3.5 3.6"},D:{"140":30.00339,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 141 142 143 144 145"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.4 17.5 17.6 18.0 18.1 18.2 18.3 18.4 18.5-18.6 26.0 26.1 26.2"},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00633,"5.0-5.1":0,"6.0-6.1":0.02533,"7.0-7.1":0.019,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.057,"10.0-10.2":0.00633,"10.3":0.10766,"11.0-11.2":1.59592,"11.3-11.4":0.038,"12.0-12.1":0.01267,"12.2-12.5":0.31032,"13.0-13.1":0,"13.2":0.03167,"13.3":0.01267,"13.4-13.7":0.05066,"14.0-14.4":0.10766,"14.5-14.8":0.11399,"15.0-15.1":0.10766,"15.2-15.3":0.08233,"15.4":0.095,"15.5":0.10766,"15.6-15.8":1.40593,"16.0":0.18999,"16.1":0.35465,"16.2":0.18366,"16.3":0.32932,"16.4":0.08233,"16.5":0.14566,"16.6-16.7":1.8809,"17.0":0.13299,"17.1":0.20266,"17.2":0.14566,"17.3":0.21532,"17.4":0.37998,"17.5":0.6523,"17.6-17.7":1.64658,"18.0":0.37365,"18.1":0.77263,"18.2":0.41798,"18.3":1.3426,"18.4":0.6903,"18.5-18.6":35.19881,"26.0":4.35077,"26.1":0.15833},P:{_:"4 20 21 22 23 24 25 26 27 28 29 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{_:"0"}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NZ.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NZ.js deleted file mode 100644 index 39670468..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/NZ.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"37":0.00575,"48":0.02298,"52":0.01724,"78":0.01724,"88":0.00575,"102":0.00575,"115":0.12067,"125":0.00575,"128":0.01149,"133":0.00575,"135":0.00575,"136":0.01149,"138":0.02298,"139":0.01724,"140":0.06895,"141":0.01724,"142":0.05171,"143":1.25263,"144":1.00555,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 131 132 134 137 145 146 147 3.5 3.6"},D:{"29":0.00575,"34":0.00575,"38":0.05171,"39":0.00575,"40":0.00575,"41":0.00575,"42":0.00575,"43":0.00575,"44":0.00575,"46":0.00575,"47":0.00575,"48":0.00575,"49":0.02298,"50":0.00575,"51":0.00575,"53":0.01149,"54":0.00575,"55":0.00575,"56":0.00575,"58":0.00575,"60":0.00575,"61":0.00575,"70":0.00575,"78":0.01149,"79":0.02873,"83":0.00575,"87":0.03448,"93":0.01149,"94":0.00575,"95":0.00575,"96":0.00575,"97":0.00575,"99":0.00575,"102":0.00575,"103":0.12641,"104":0.01149,"106":0.00575,"107":0.00575,"108":0.02873,"109":0.40222,"111":0.00575,"112":0.00575,"113":0.01724,"114":0.06895,"115":0.00575,"116":0.1494,"117":0.00575,"119":0.02873,"120":0.03448,"121":0.02298,"122":0.06321,"123":0.01149,"124":0.04022,"125":1.66634,"126":0.08044,"127":0.02298,"128":0.12641,"129":0.01149,"130":0.04022,"131":0.12641,"132":0.05171,"133":0.06895,"134":0.49416,"135":0.05746,"136":0.13216,"137":0.18387,"138":0.58035,"139":1.0113,"140":8.46386,"141":18.39869,"142":0.20111,"143":0.02298,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 35 36 37 45 52 57 59 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 80 81 84 85 86 88 89 90 91 92 98 100 101 105 110 118 144 145"},F:{"46":0.00575,"91":0.00575,"92":0.01149,"95":0.02873,"114":0.00575,"120":0.09194,"121":0.17238,"122":0.91361,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00575,"105":0.00575,"109":0.01724,"111":0.00575,"113":0.00575,"114":0.00575,"120":0.01724,"123":0.00575,"124":0.00575,"126":0.00575,"127":0.01724,"128":0.00575,"131":0.01724,"132":0.00575,"133":0.01149,"134":0.04597,"135":0.02873,"136":0.01149,"137":0.01724,"138":0.04022,"139":0.06321,"140":1.45948,"141":6.3206,"142":0.01724,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 107 108 110 112 115 116 117 118 119 121 122 125 129 130"},E:{"4":0.00575,"13":0.02298,"14":0.01724,"15":0.00575,_:"0 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 26.2","12.1":0.00575,"13.1":0.05171,"14.1":0.06895,"15.1":0.00575,"15.2-15.3":0.00575,"15.4":0.01149,"15.5":0.01724,"15.6":0.32752,"16.0":0.02298,"16.1":0.03448,"16.2":0.03448,"16.3":0.08619,"16.4":0.01149,"16.5":0.02873,"16.6":0.4252,"17.0":0.00575,"17.1":0.40222,"17.2":0.02873,"17.3":0.04022,"17.4":0.06321,"17.5":0.1379,"17.6":0.40222,"18.0":0.04022,"18.1":0.06321,"18.2":0.04597,"18.3":0.18962,"18.4":0.08619,"18.5-18.6":0.35051,"26.0":0.74698,"26.1":0.02298},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00159,"5.0-5.1":0,"6.0-6.1":0.00637,"7.0-7.1":0.00477,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01432,"10.0-10.2":0.00159,"10.3":0.02705,"11.0-11.2":0.40104,"11.3-11.4":0.00955,"12.0-12.1":0.00318,"12.2-12.5":0.07798,"13.0-13.1":0,"13.2":0.00796,"13.3":0.00318,"13.4-13.7":0.01273,"14.0-14.4":0.02705,"14.5-14.8":0.02865,"15.0-15.1":0.02705,"15.2-15.3":0.02069,"15.4":0.02387,"15.5":0.02705,"15.6-15.8":0.3533,"16.0":0.04774,"16.1":0.08912,"16.2":0.04615,"16.3":0.08275,"16.4":0.02069,"16.5":0.0366,"16.6-16.7":0.47265,"17.0":0.03342,"17.1":0.05093,"17.2":0.0366,"17.3":0.05411,"17.4":0.09549,"17.5":0.16392,"17.6-17.7":0.41377,"18.0":0.09389,"18.1":0.19415,"18.2":0.10503,"18.3":0.33738,"18.4":0.17346,"18.5-18.6":8.84512,"26.0":1.09331,"26.1":0.03979},P:{"4":0.06511,"21":0.0217,"22":0.01085,"23":0.0217,"24":0.01085,"25":0.0434,"26":0.03255,"27":0.06511,"28":2.78876,"29":0.20617,_:"20 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.01085,"7.2-7.4":0.03255},I:{"0":0.02124,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.19568,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.13407,"9":0.01915,"10":0.05746,"11":0.01915,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.51048},Q:{"14.9":0.00851},O:{"0":0.02552},H:{"0":0},L:{"0":24.45519}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/OM.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/OM.js deleted file mode 100644 index 1c020ae7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/OM.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.04949,"128":0.00354,"132":0.00354,"133":0.00354,"140":0.00354,"141":0.00354,"142":0.01061,"143":0.19443,"144":0.17675,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 134 135 136 137 138 139 145 146 147 3.5 3.6"},D:{"38":0.00354,"39":0.00354,"40":0.00354,"41":0.00354,"42":0.00354,"43":0.00354,"44":0.00354,"45":0.00354,"46":0.00354,"47":0.00354,"48":0.00354,"49":0.00354,"50":0.00354,"51":0.00354,"52":0.00354,"53":0.00354,"54":0.00354,"55":0.00707,"56":0.00354,"57":0.00354,"58":0.00354,"59":0.00354,"60":0.00354,"65":0.00354,"66":0.00707,"68":0.00707,"69":0.00707,"73":0.00354,"75":0.00707,"78":0.00354,"79":0.03182,"80":0.00354,"81":0.00354,"83":0.02475,"87":0.07777,"88":0.01061,"90":0.00354,"91":0.00707,"93":0.01061,"94":0.00354,"98":0.01414,"99":0.00354,"103":0.18382,"104":0.01414,"105":0.00354,"108":0.01414,"109":0.50551,"110":0.01768,"111":0.02475,"112":2.3331,"113":0.00707,"114":0.07424,"115":0.00707,"116":0.03535,"117":0.00354,"118":0.00354,"119":0.02828,"120":0.01768,"121":0.00707,"122":0.03889,"123":0.01061,"124":0.02828,"125":2.30129,"126":0.25806,"127":0.01768,"128":0.02121,"129":0.01414,"130":0.01061,"131":0.04596,"132":0.03535,"133":0.02121,"134":0.02121,"135":0.04949,"136":0.0707,"137":0.07777,"138":0.34997,"139":0.23685,"140":4.74044,"141":10.20201,"142":0.08131,"143":0.00707,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 67 70 71 72 74 76 77 84 85 86 89 92 95 96 97 100 101 102 106 107 144 145"},F:{"46":0.00354,"79":0.01061,"91":0.01768,"92":0.04242,"95":0.00707,"120":0.02828,"121":0.04596,"122":0.29694,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00707,"92":0.00354,"109":0.01768,"112":0.00354,"114":0.13787,"115":0.00354,"120":0.00354,"122":0.00354,"124":0.00707,"130":0.00354,"131":0.00354,"134":0.01414,"135":0.00354,"136":0.01061,"137":0.01061,"138":0.01061,"139":0.03182,"140":0.36764,"141":2.2624,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 113 116 117 118 119 121 123 125 126 127 128 129 132 133 142"},E:{"15":0.00707,_:"0 4 5 6 7 8 9 10 11 12 13 14 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.4 16.0 16.4 17.0 26.2","5.1":0.00354,"13.1":0.01768,"14.1":0.01414,"15.2-15.3":0.00354,"15.5":0.00354,"15.6":0.03889,"16.1":0.00354,"16.2":0.00354,"16.3":0.00707,"16.5":0.00354,"16.6":0.04949,"17.1":0.03535,"17.2":0.00354,"17.3":0.00354,"17.4":0.00707,"17.5":0.01414,"17.6":0.06363,"18.0":0.00354,"18.1":0.01061,"18.2":0.00707,"18.3":0.02121,"18.4":0.01061,"18.5-18.6":0.11666,"26.0":0.21564,"26.1":0.00707},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00105,"5.0-5.1":0,"6.0-6.1":0.0042,"7.0-7.1":0.00315,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00946,"10.0-10.2":0.00105,"10.3":0.01786,"11.0-11.2":0.26478,"11.3-11.4":0.0063,"12.0-12.1":0.0021,"12.2-12.5":0.05149,"13.0-13.1":0,"13.2":0.00525,"13.3":0.0021,"13.4-13.7":0.00841,"14.0-14.4":0.01786,"14.5-14.8":0.01891,"15.0-15.1":0.01786,"15.2-15.3":0.01366,"15.4":0.01576,"15.5":0.01786,"15.6-15.8":0.23326,"16.0":0.03152,"16.1":0.05884,"16.2":0.03047,"16.3":0.05464,"16.4":0.01366,"16.5":0.02417,"16.6-16.7":0.31207,"17.0":0.02207,"17.1":0.03362,"17.2":0.02417,"17.3":0.03572,"17.4":0.06304,"17.5":0.10822,"17.6-17.7":0.27319,"18.0":0.06199,"18.1":0.12819,"18.2":0.06935,"18.3":0.22275,"18.4":0.11453,"18.5-18.6":5.83993,"26.0":0.72185,"26.1":0.02627},P:{"4":0.0622,"21":0.01037,"22":0.01037,"23":0.0311,"24":0.01037,"25":0.0622,"26":0.05183,"27":0.1244,"28":1.89716,"29":0.14514,_:"20 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 18.0 19.0","5.0-5.4":0.01037,"6.2-6.4":0.01037,"7.2-7.4":0.0311,"9.2":0.02073,"16.0":0.01037,"17.0":0.02073},I:{"0":0.0452,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.6854,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00707,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.13579},Q:{"14.9":0.00647},O:{"0":0.6272},H:{"0":0},L:{"0":57.79954}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PA.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PA.js deleted file mode 100644 index 4616c7a9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PA.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"4":0.02075,"103":0.04841,"115":0.02075,"120":0.02766,"128":0.00692,"136":0.01383,"139":0.03458,"140":0.02075,"141":0.00692,"142":0.03458,"143":1.1688,"144":0.29047,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 122 123 124 125 126 127 129 130 131 132 133 134 135 137 138 145 146 147 3.5 3.6"},D:{"39":0.00692,"40":0.00692,"41":0.00692,"42":0.00692,"43":0.00692,"44":0.00692,"45":0.00692,"46":0.00692,"47":0.00692,"48":0.00692,"49":0.00692,"50":0.00692,"51":0.00692,"52":0.00692,"53":0.00692,"54":0.00692,"55":0.00692,"56":0.00692,"57":0.00692,"58":0.00692,"59":0.00692,"60":0.00692,"79":0.01383,"83":0.00692,"87":0.05533,"88":0.01383,"91":0.00692,"93":0.00692,"97":0.00692,"101":0.00692,"103":0.02075,"104":0.00692,"108":0.02766,"109":0.27664,"110":0.00692,"111":0.02766,"112":2.5935,"114":0.01383,"116":0.05533,"119":0.03458,"120":0.01383,"121":0.00692,"122":0.08991,"123":0.00692,"124":0.01383,"125":31.01134,"126":0.26281,"127":0.00692,"128":0.02766,"129":0.01383,"130":0.01383,"131":0.04841,"132":0.04841,"133":0.02075,"134":0.08991,"135":0.07608,"136":0.05533,"137":0.08299,"138":0.22823,"139":0.40113,"140":5.3599,"141":12.6632,"142":0.1314,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 84 85 86 89 90 92 94 95 96 98 99 100 102 105 106 107 113 115 117 118 143 144 145"},F:{"89":0.00692,"92":0.01383,"95":0.02766,"118":0.00692,"119":0.01383,"120":0.08299,"121":0.23514,"122":1.28638,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00692,"109":0.01383,"114":0.26972,"126":0.00692,"127":0.08991,"131":0.00692,"132":0.00692,"133":0.00692,"134":0.02766,"135":0.00692,"136":0.00692,"137":0.00692,"138":0.02075,"139":0.02766,"140":0.69852,"141":3.6724,"142":0.00692,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 128 129 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 17.0 26.2","14.1":0.00692,"15.6":0.06916,"16.1":0.00692,"16.3":0.00692,"16.4":0.05533,"16.5":0.00692,"16.6":0.16598,"17.1":0.03458,"17.2":0.01383,"17.3":0.02075,"17.4":0.02075,"17.5":0.08299,"17.6":0.08299,"18.0":0.00692,"18.1":0.01383,"18.2":0.07608,"18.3":0.07608,"18.4":0.06916,"18.5-18.6":0.2144,"26.0":0.6916,"26.1":0.02766},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00068,"5.0-5.1":0,"6.0-6.1":0.00273,"7.0-7.1":0.00204,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00613,"10.0-10.2":0.00068,"10.3":0.01159,"11.0-11.2":0.17175,"11.3-11.4":0.00409,"12.0-12.1":0.00136,"12.2-12.5":0.0334,"13.0-13.1":0,"13.2":0.00341,"13.3":0.00136,"13.4-13.7":0.00545,"14.0-14.4":0.01159,"14.5-14.8":0.01227,"15.0-15.1":0.01159,"15.2-15.3":0.00886,"15.4":0.01022,"15.5":0.01159,"15.6-15.8":0.15131,"16.0":0.02045,"16.1":0.03817,"16.2":0.01977,"16.3":0.03544,"16.4":0.00886,"16.5":0.01568,"16.6-16.7":0.20242,"17.0":0.01431,"17.1":0.02181,"17.2":0.01568,"17.3":0.02317,"17.4":0.04089,"17.5":0.0702,"17.6-17.7":0.17721,"18.0":0.04021,"18.1":0.08315,"18.2":0.04498,"18.3":0.14449,"18.4":0.07429,"18.5-18.6":3.78813,"26.0":0.46823,"26.1":0.01704},P:{"4":0.01041,"20":0.01041,"21":0.02082,"22":0.07287,"24":0.02082,"25":0.02082,"26":0.02082,"27":0.03123,"28":1.67608,"29":0.12493,_:"23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.04164},I:{"0":0.0154,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.10794,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00692,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.18504},Q:{_:"14.9"},O:{"0":0.04009},H:{"0":0},L:{"0":24.39219}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PE.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PE.js deleted file mode 100644 index 38e6c40b..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PE.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"4":0.02055,"88":0.00685,"115":0.09589,"120":0.00685,"122":0.00685,"123":0.00685,"125":0.00685,"128":0.00685,"136":0.00685,"140":0.0137,"141":0.00685,"142":0.0137,"143":0.62326,"144":0.44519,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 124 126 127 129 130 131 132 133 134 135 137 138 139 145 146 147 3.5 3.6"},D:{"38":0.00685,"39":0.0137,"40":0.0137,"41":0.0137,"42":0.0137,"43":0.0137,"44":0.0137,"45":0.0137,"46":0.0137,"47":0.0137,"48":0.0137,"49":0.02055,"50":0.0137,"51":0.0137,"52":0.0137,"53":0.02055,"54":0.0137,"55":0.0137,"56":0.0137,"57":0.0137,"58":0.0137,"59":0.0137,"60":0.0137,"70":0.00685,"79":0.09589,"81":0.00685,"85":0.00685,"87":0.06164,"88":0.00685,"91":0.00685,"93":0.00685,"95":0.02055,"96":0.00685,"97":0.02055,"99":0.00685,"100":0.00685,"101":0.00685,"102":0.0137,"103":0.0137,"104":0.04109,"106":0.00685,"108":0.04109,"109":1.13693,"110":0.02055,"111":0.03425,"112":6.75311,"113":0.00685,"114":0.02055,"116":0.04109,"119":0.0137,"120":0.0274,"121":0.06849,"122":0.11643,"123":0.0274,"124":0.0274,"125":11.15702,"126":0.62326,"127":0.0274,"128":0.04109,"129":0.02055,"130":0.02055,"131":0.10958,"132":0.05479,"133":0.05479,"134":0.06849,"135":0.12328,"136":0.08219,"137":0.12328,"138":0.3493,"139":0.47258,"140":8.43797,"141":23.14277,"142":0.32875,"143":0.00685,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 78 80 83 84 86 89 90 92 94 98 105 107 115 117 118 144 145"},F:{"91":0.00685,"92":0.0137,"95":0.0274,"114":0.0137,"120":0.10274,"121":0.26711,"122":2.08895,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00685,"85":0.00685,"92":0.0137,"109":0.0137,"114":0.04794,"121":0.00685,"122":0.0137,"130":0.00685,"131":0.0137,"133":0.00685,"134":0.00685,"135":0.00685,"136":0.0137,"137":0.0137,"138":0.03425,"139":0.0274,"140":0.67805,"141":3.38341,"142":0.02055,_:"12 13 14 15 16 17 79 80 81 83 84 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 123 124 125 126 127 128 129 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 17.0 26.2","5.1":0.00685,"13.1":0.00685,"14.1":0.00685,"15.1":0.00685,"15.6":0.03425,"16.3":0.00685,"16.4":0.00685,"16.5":0.00685,"16.6":0.03425,"17.1":0.00685,"17.2":0.00685,"17.3":0.0137,"17.4":0.02055,"17.5":0.0137,"17.6":0.05479,"18.0":0.00685,"18.1":0.00685,"18.2":0.0137,"18.3":0.02055,"18.4":0.0274,"18.5-18.6":0.05479,"26.0":0.19862,"26.1":0.00685},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00035,"5.0-5.1":0,"6.0-6.1":0.00139,"7.0-7.1":0.00104,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00312,"10.0-10.2":0.00035,"10.3":0.00589,"11.0-11.2":0.08735,"11.3-11.4":0.00208,"12.0-12.1":0.00069,"12.2-12.5":0.01698,"13.0-13.1":0,"13.2":0.00173,"13.3":0.00069,"13.4-13.7":0.00277,"14.0-14.4":0.00589,"14.5-14.8":0.00624,"15.0-15.1":0.00589,"15.2-15.3":0.00451,"15.4":0.0052,"15.5":0.00589,"15.6-15.8":0.07695,"16.0":0.0104,"16.1":0.01941,"16.2":0.01005,"16.3":0.01802,"16.4":0.00451,"16.5":0.00797,"16.6-16.7":0.10294,"17.0":0.00728,"17.1":0.01109,"17.2":0.00797,"17.3":0.01178,"17.4":0.0208,"17.5":0.0357,"17.6-17.7":0.09012,"18.0":0.02045,"18.1":0.04229,"18.2":0.02288,"18.3":0.07348,"18.4":0.03778,"18.5-18.6":1.92646,"26.0":0.23812,"26.1":0.00867},P:{"4":0.07195,"21":0.01028,"23":0.03083,"24":0.01028,"25":0.02056,"26":0.02056,"27":0.08223,"28":0.52419,"29":0.04111,_:"20 22 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.01028,"7.2-7.4":0.04111},I:{"0":0.04405,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.22687,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02055,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.1544},Q:{_:"14.9"},O:{"0":0.0126},H:{"0":0},L:{"0":29.52601}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PF.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PF.js deleted file mode 100644 index df912bf8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PF.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"78":0.00204,"115":0.18519,"119":0.00204,"126":0.00204,"128":0.01628,"134":0.00204,"135":0.00204,"136":0.00204,"137":0.01018,"138":0.00407,"139":0.01832,"140":0.14245,"141":0.00204,"142":0.01018,"143":1.00936,"144":1.14571,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 120 121 122 123 124 125 127 129 130 131 132 133 145 146 147 3.5 3.6"},D:{"42":0.00204,"46":0.00204,"47":0.00204,"50":0.00204,"51":0.00204,"54":0.00204,"55":0.00204,"59":0.00204,"60":0.00204,"79":0.01832,"84":0.00204,"87":0.00204,"103":0.06512,"107":0.00204,"109":0.10379,"114":0.01221,"116":0.01832,"117":0.01018,"119":0.00407,"120":0.00814,"121":0.00204,"123":0.05088,"124":0.01018,"125":0.12617,"126":0.00204,"127":0.00204,"128":0.0407,"129":0.00407,"130":0.03256,"131":0.03867,"132":0.00814,"133":0.00204,"134":0.02239,"135":0.00611,"136":0.00814,"137":0.01018,"138":0.3195,"139":0.10175,"140":1.52829,"141":5.15059,"142":0.08954,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 48 49 52 53 56 57 58 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 108 110 111 112 113 115 118 122 143 144 145"},F:{"91":0.00611,"92":0.00407,"120":0.00814,"121":0.04274,"122":0.30932,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00204,"84":0.00407,"109":0.00407,"116":0.00204,"124":0.00204,"126":0.00204,"127":0.00407,"131":0.00407,"134":0.00204,"135":0.00204,"136":0.01018,"137":0.00204,"138":0.01221,"139":0.01628,"140":0.57184,"141":1.96988,"142":0.01425,_:"12 13 14 15 16 17 79 80 81 83 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 117 118 119 120 121 122 123 125 128 129 130 132 133"},E:{"13":0.03053,"14":0.05902,"15":0.00204,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 26.2","12.1":0.00204,"13.1":0.01018,"14.1":0.04884,"15.1":0.00204,"15.2-15.3":0.00204,"15.4":0.00407,"15.5":0.00407,"15.6":0.09768,"16.0":0.00204,"16.1":0.13635,"16.2":0.01018,"16.3":0.07326,"16.4":0.00407,"16.5":0.02035,"16.6":0.22792,"17.0":0.00204,"17.1":0.36223,"17.2":0.06309,"17.3":0.00814,"17.4":0.20147,"17.5":0.0753,"17.6":0.61457,"18.0":0.01018,"18.1":0.01628,"18.2":0.00814,"18.3":0.0814,"18.4":0.04477,"18.5-18.6":0.17908,"26.0":0.75092,"26.1":0.00407},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00093,"5.0-5.1":0,"6.0-6.1":0.00371,"7.0-7.1":0.00278,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00834,"10.0-10.2":0.00093,"10.3":0.01576,"11.0-11.2":0.23364,"11.3-11.4":0.00556,"12.0-12.1":0.00185,"12.2-12.5":0.04543,"13.0-13.1":0,"13.2":0.00464,"13.3":0.00185,"13.4-13.7":0.00742,"14.0-14.4":0.01576,"14.5-14.8":0.01669,"15.0-15.1":0.01576,"15.2-15.3":0.01205,"15.4":0.01391,"15.5":0.01576,"15.6-15.8":0.20582,"16.0":0.02781,"16.1":0.05192,"16.2":0.02689,"16.3":0.04821,"16.4":0.01205,"16.5":0.02132,"16.6-16.7":0.27536,"17.0":0.01947,"17.1":0.02967,"17.2":0.02132,"17.3":0.03152,"17.4":0.05563,"17.5":0.09549,"17.6-17.7":0.24105,"18.0":0.0547,"18.1":0.11311,"18.2":0.06119,"18.3":0.19655,"18.4":0.10106,"18.5-18.6":5.15297,"26.0":0.63694,"26.1":0.02318},P:{"24":0.01059,"25":0.04238,"26":0.01059,"27":0.05297,"28":0.94289,"29":0.03178,_:"4 20 21 22 23 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.17498,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00009},K:{"0":0.03186,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.27878},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":70.69954}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PG.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PG.js deleted file mode 100644 index 143aa92d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PG.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"89":0.00369,"98":0.00369,"115":0.01474,"123":0.00369,"128":0.00369,"133":0.00737,"135":0.00369,"136":0.00369,"137":0.00369,"138":0.00369,"139":0.00369,"140":0.02949,"141":0.01106,"142":0.01474,"143":0.44969,"144":0.27276,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 124 125 126 127 129 130 131 132 134 145 146 147 3.5 3.6"},D:{"11":0.00737,"40":0.00369,"43":0.00369,"50":0.00369,"55":0.00369,"62":0.00369,"63":0.00369,"66":0.01843,"67":0.02212,"69":0.00369,"70":0.01106,"71":0.00369,"78":0.00369,"80":0.01106,"81":0.00737,"83":0.01474,"84":0.00369,"86":0.00369,"87":0.05529,"88":0.01106,"91":0.01106,"92":0.00369,"95":0.00737,"96":0.00369,"99":0.02949,"102":0.00369,"103":0.01106,"104":0.01474,"105":0.00737,"106":0.01106,"108":0.00737,"109":0.22485,"110":0.01106,"111":0.01843,"113":0.00369,"114":0.04423,"116":0.00737,"117":0.00737,"118":0.00369,"119":0.03686,"120":0.11427,"121":0.00369,"122":0.01474,"123":0.02212,"124":0.01106,"125":0.29488,"126":0.07003,"127":0.02949,"128":0.00737,"129":0.01106,"130":0.0258,"131":0.04792,"132":0.00737,"133":0.01843,"134":0.04055,"135":0.02212,"136":0.08109,"137":0.21379,"138":0.17693,"139":0.26908,"140":2.51017,"141":5.93077,"142":0.09584,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 44 45 46 47 48 49 51 52 53 54 56 57 58 59 60 61 64 65 68 72 73 74 75 76 77 79 85 89 90 93 94 97 98 100 101 107 112 115 143 144 145"},F:{"51":0.00369,"79":0.01106,"83":0.00369,"90":0.0516,"91":0.06266,"92":0.04055,"95":0.00369,"107":0.00737,"110":0.00369,"120":0.04055,"122":0.35386,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 84 85 86 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 108 109 111 112 113 114 115 116 117 118 119 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.00369,"16":0.01106,"17":0.00369,"18":0.04792,"84":0.01106,"88":0.00369,"89":0.02949,"90":0.01106,"92":0.03686,"100":0.04792,"102":0.00369,"109":0.00369,"110":0.00369,"112":0.00369,"113":0.00369,"114":0.00737,"122":0.0258,"123":0.00369,"124":0.00737,"125":0.01106,"126":0.00737,"127":0.01474,"128":0.00369,"129":0.00369,"130":0.00369,"131":0.01843,"132":0.00369,"133":0.00737,"134":0.02949,"135":0.04423,"136":0.0258,"137":0.05529,"138":0.19904,"139":0.14007,"140":1.24587,"141":4.25364,"142":0.01474,_:"12 14 15 79 80 81 83 85 86 87 91 93 94 95 96 97 98 99 101 103 104 105 106 107 108 111 115 116 117 118 119 120 121"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 13.1 15.1 15.2-15.3 15.4 15.5 16.0 16.5 17.0 18.4 26.1 26.2","5.1":0.00369,"12.1":0.01843,"14.1":0.01106,"15.6":0.01843,"16.1":0.00369,"16.2":0.1327,"16.3":0.0258,"16.4":0.00369,"16.6":0.01106,"17.1":0.00369,"17.2":0.01843,"17.3":0.00369,"17.4":0.00737,"17.5":0.01106,"17.6":0.03686,"18.0":0.01843,"18.1":0.00369,"18.2":0.00369,"18.3":0.00737,"18.5-18.6":0.02212,"26.0":0.02949},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00026,"5.0-5.1":0,"6.0-6.1":0.00103,"7.0-7.1":0.00077,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00231,"10.0-10.2":0.00026,"10.3":0.00436,"11.0-11.2":0.06461,"11.3-11.4":0.00154,"12.0-12.1":0.00051,"12.2-12.5":0.01256,"13.0-13.1":0,"13.2":0.00128,"13.3":0.00051,"13.4-13.7":0.00205,"14.0-14.4":0.00436,"14.5-14.8":0.00462,"15.0-15.1":0.00436,"15.2-15.3":0.00333,"15.4":0.00385,"15.5":0.00436,"15.6-15.8":0.05692,"16.0":0.00769,"16.1":0.01436,"16.2":0.00744,"16.3":0.01333,"16.4":0.00333,"16.5":0.0059,"16.6-16.7":0.07615,"17.0":0.00538,"17.1":0.0082,"17.2":0.0059,"17.3":0.00872,"17.4":0.01538,"17.5":0.02641,"17.6-17.7":0.06666,"18.0":0.01513,"18.1":0.03128,"18.2":0.01692,"18.3":0.05435,"18.4":0.02795,"18.5-18.6":1.42501,"26.0":0.17614,"26.1":0.00641},P:{"4":0.05151,"21":0.0103,"22":0.08242,"23":0.03091,"24":0.16484,"25":0.59753,"26":0.13393,"27":0.51511,"28":1.26718,"29":0.03091,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 16.0 18.0","7.2-7.4":0.07212,"15.0":0.03091,"17.0":0.0103,"19.0":0.0206},I:{"0":0.38468,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00008,"4.4":0,"4.4.3-4.4.4":0.00019},K:{"0":0.73147,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.0172,"11":0.0086,_:"6 7 8 9 5.5"},S:{"2.5":0.01895,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.18314},Q:{"14.9":0.05684},O:{"0":0.44205},H:{"0":0.14},L:{"0":72.00795}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PH.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PH.js deleted file mode 100644 index 777cb543..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PH.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"59":0.00294,"115":0.03532,"122":0.00294,"123":0.00589,"127":0.00589,"128":0.4856,"132":0.00294,"139":0.00294,"140":0.00883,"141":0.00294,"142":0.01766,"143":0.2531,"144":0.2119,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 124 125 126 129 130 131 133 134 135 136 137 138 145 146 147 3.5 3.6"},D:{"39":0.00294,"40":0.00294,"41":0.00294,"42":0.00294,"43":0.00294,"44":0.00294,"45":0.00294,"46":0.00294,"47":0.00294,"48":0.00294,"49":0.00294,"50":0.00294,"51":0.00294,"52":0.00294,"53":0.00294,"54":0.00294,"55":0.00294,"56":0.00294,"57":0.00294,"58":0.00294,"59":0.00294,"60":0.00294,"66":0.01472,"76":0.00294,"79":0.00589,"81":0.00294,"83":0.00294,"87":0.01766,"91":0.03237,"92":0.00589,"93":0.14421,"94":0.00883,"99":0.00294,"102":0.00294,"103":0.40025,"104":0.00294,"105":0.10301,"106":0.00294,"108":0.01766,"109":0.30313,"110":0.00883,"111":0.01472,"112":0.00294,"113":0.00589,"114":0.03237,"115":0.00294,"116":0.03826,"117":0.00294,"118":0.00589,"119":0.00589,"120":0.02354,"121":0.01472,"122":0.05003,"123":0.0206,"124":0.02943,"125":1.75991,"126":0.09123,"127":0.02943,"128":0.05003,"129":0.01472,"130":0.03237,"131":0.07358,"132":0.07358,"133":0.04709,"134":0.04709,"135":0.06769,"136":0.07946,"137":0.11478,"138":0.37376,"139":0.30313,"140":5.18262,"141":10.8479,"142":0.17658,"143":0.00294,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 68 69 70 71 72 73 74 75 77 78 80 84 85 86 88 89 90 95 96 97 98 100 101 107 144 145"},F:{"91":0.00294,"92":0.00589,"95":0.00294,"119":0.0206,"120":0.0412,"121":0.07358,"122":0.59743,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00294,"92":0.00294,"102":0.00294,"107":0.00294,"109":0.00294,"114":0.03826,"122":0.00294,"128":0.00294,"129":0.00294,"130":0.00294,"131":0.00294,"132":0.00294,"133":0.00294,"134":0.00294,"135":0.00294,"136":0.00589,"137":0.00294,"138":0.01472,"139":0.02354,"140":0.53563,"141":2.0807,"142":0.00589,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 103 104 105 106 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 126 127"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 15.2-15.3 16.0 26.2","11.1":0.00294,"13.1":0.00294,"14.1":0.02354,"15.1":0.01472,"15.4":0.00294,"15.5":0.00294,"15.6":0.02649,"16.1":0.00294,"16.2":0.00294,"16.3":0.00589,"16.4":0.00294,"16.5":0.0206,"16.6":0.03826,"17.0":0.00883,"17.1":0.01766,"17.2":0.00589,"17.3":0.00883,"17.4":0.00883,"17.5":0.01472,"17.6":0.13244,"18.0":0.00883,"18.1":0.01177,"18.2":0.00883,"18.3":0.0206,"18.4":0.02354,"18.5-18.6":0.0824,"26.0":0.22073,"26.1":0.00589},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00035,"5.0-5.1":0,"6.0-6.1":0.00138,"7.0-7.1":0.00104,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00311,"10.0-10.2":0.00035,"10.3":0.00588,"11.0-11.2":0.08714,"11.3-11.4":0.00207,"12.0-12.1":0.00069,"12.2-12.5":0.01694,"13.0-13.1":0,"13.2":0.00173,"13.3":0.00069,"13.4-13.7":0.00277,"14.0-14.4":0.00588,"14.5-14.8":0.00622,"15.0-15.1":0.00588,"15.2-15.3":0.0045,"15.4":0.00519,"15.5":0.00588,"15.6-15.8":0.07677,"16.0":0.01037,"16.1":0.01936,"16.2":0.01003,"16.3":0.01798,"16.4":0.0045,"16.5":0.00795,"16.6-16.7":0.1027,"17.0":0.00726,"17.1":0.01107,"17.2":0.00795,"17.3":0.01176,"17.4":0.02075,"17.5":0.03562,"17.6-17.7":0.08991,"18.0":0.0204,"18.1":0.04219,"18.2":0.02282,"18.3":0.07331,"18.4":0.03769,"18.5-18.6":1.92192,"26.0":0.23756,"26.1":0.00864},P:{"4":0.01065,"22":0.01065,"23":0.01065,"24":0.01065,"25":0.01065,"26":0.02131,"27":0.02131,"28":0.40488,"29":0.03196,_:"20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01065},I:{"0":0.20437,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.0001},K:{"0":0.0988,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.12066,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.03529},Q:{_:"14.9"},O:{"0":0.03529},H:{"0":0},L:{"0":68.43516}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PK.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PK.js deleted file mode 100644 index b5bd858a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PK.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.00379,"112":0.00379,"113":0.00379,"115":0.15926,"127":0.00758,"128":0.00758,"133":0.00379,"134":0.00379,"135":0.00379,"136":0.00379,"138":0.00379,"139":0.00379,"140":0.01138,"141":0.01138,"142":0.01517,"143":0.31853,"144":0.25406,"145":0.00379,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 137 146 147 3.5 3.6"},D:{"39":0.00379,"40":0.00379,"41":0.00379,"42":0.00379,"43":0.00379,"44":0.00379,"45":0.00379,"46":0.00379,"47":0.00379,"48":0.00379,"49":0.00379,"50":0.00379,"51":0.00379,"52":0.00379,"53":0.00379,"54":0.00379,"55":0.00379,"56":0.00758,"57":0.00379,"58":0.00379,"59":0.00379,"60":0.00379,"62":0.00379,"65":0.00758,"66":0.00379,"68":0.01138,"69":0.00758,"70":0.00379,"71":0.00758,"72":0.00758,"73":0.01138,"74":0.01896,"75":0.01138,"76":0.01517,"77":0.01138,"78":0.00379,"79":0.00758,"80":0.01517,"81":0.00379,"83":0.00758,"84":0.00379,"85":0.00379,"86":0.01138,"87":0.01138,"88":0.00379,"89":0.00379,"91":0.01138,"92":0.00379,"93":0.03034,"94":0.00379,"95":0.00758,"96":0.00379,"99":0.00379,"100":0.00379,"101":0.00379,"102":0.02275,"103":0.12134,"104":0.03792,"105":0.00379,"106":0.00758,"107":0.00379,"108":0.00758,"109":1.73674,"111":0.00379,"112":0.89112,"114":0.01517,"115":0.04171,"116":0.13272,"117":0.00379,"118":0.00379,"119":0.02275,"120":0.01138,"121":0.01138,"122":0.01896,"123":0.00758,"124":0.01138,"125":2.72266,"126":0.11755,"127":0.01517,"128":0.03034,"129":0.01896,"130":0.02275,"131":0.07963,"132":0.16306,"133":0.03413,"134":0.0455,"135":0.06446,"136":0.06826,"137":0.10238,"138":0.31474,"139":0.34128,"140":5.90035,"141":12.93451,"142":0.18202,"143":0.01138,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 63 64 67 90 97 98 110 113 144 145"},F:{"79":0.00379,"86":0.00379,"90":0.00379,"91":0.02275,"92":0.03413,"95":0.03792,"114":0.00379,"119":0.00379,"120":0.05688,"121":0.01138,"122":0.42091,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00379,"14":0.00379,"15":0.00379,"16":0.00379,"18":0.01138,"89":0.00379,"90":0.00379,"92":0.03034,"109":0.00758,"110":0.00379,"114":0.0455,"120":0.00379,"122":0.00379,"131":0.01138,"132":0.01138,"133":0.00758,"134":0.00379,"135":0.00758,"136":0.01138,"137":0.00758,"138":0.01138,"139":0.01517,"140":0.26165,"141":1.09589,"142":0.00379,_:"13 17 79 80 81 83 84 85 86 87 88 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 111 112 113 115 116 117 118 119 121 123 124 125 126 127 128 129 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.4 15.5 16.2 16.4 16.5 17.0 17.2 26.2","5.1":0.00379,"13.1":0.00379,"14.1":0.00379,"15.2-15.3":0.00379,"15.6":0.01896,"16.0":0.00379,"16.1":0.00379,"16.3":0.00379,"16.6":0.01138,"17.1":0.01517,"17.3":0.00379,"17.4":0.00379,"17.5":0.00379,"17.6":0.02654,"18.0":0.00379,"18.1":0.00379,"18.2":0.00379,"18.3":0.00758,"18.4":0.00758,"18.5-18.6":0.01138,"26.0":0.08342,"26.1":0.00379},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00029,"5.0-5.1":0,"6.0-6.1":0.00118,"7.0-7.1":0.00088,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00265,"10.0-10.2":0.00029,"10.3":0.00501,"11.0-11.2":0.07431,"11.3-11.4":0.00177,"12.0-12.1":0.00059,"12.2-12.5":0.01445,"13.0-13.1":0,"13.2":0.00147,"13.3":0.00059,"13.4-13.7":0.00236,"14.0-14.4":0.00501,"14.5-14.8":0.00531,"15.0-15.1":0.00501,"15.2-15.3":0.00383,"15.4":0.00442,"15.5":0.00501,"15.6-15.8":0.06546,"16.0":0.00885,"16.1":0.01651,"16.2":0.00855,"16.3":0.01533,"16.4":0.00383,"16.5":0.00678,"16.6-16.7":0.08758,"17.0":0.00619,"17.1":0.00944,"17.2":0.00678,"17.3":0.01003,"17.4":0.01769,"17.5":0.03037,"17.6-17.7":0.07667,"18.0":0.0174,"18.1":0.03598,"18.2":0.01946,"18.3":0.06251,"18.4":0.03214,"18.5-18.6":1.63894,"26.0":0.20258,"26.1":0.00737},P:{"4":0.03171,"21":0.01057,"24":0.01057,"25":0.04228,"26":0.04228,"27":0.02114,"28":0.53909,"29":0.03171,_:"20 22 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","7.2-7.4":0.03171,"17.0":0.02114},I:{"0":0.05579,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":1.18747,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.0128,"10":0.00427,"11":0.05119,_:"6 7 9 5.5"},S:{"2.5":0.03725,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.04966},Q:{_:"14.9"},O:{"0":2.07968},H:{"0":0.11},L:{"0":62.31094}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PL.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PL.js deleted file mode 100644 index d672b510..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PL.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"47":0.00645,"52":0.01934,"78":0.00645,"113":0.00645,"115":0.38031,"127":0.00645,"128":0.19983,"131":0.00645,"133":0.00645,"134":0.00645,"135":0.01289,"136":0.01934,"137":0.00645,"138":0.00645,"139":0.02578,"140":0.10314,"141":0.03223,"142":0.10314,"143":2.15296,"144":1.98537,"145":0.00645,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 125 126 129 130 132 146 147 3.5 3.6"},D:{"39":0.00645,"40":0.00645,"41":0.00645,"42":0.00645,"43":0.00645,"44":0.00645,"45":0.00645,"46":0.00645,"47":0.00645,"48":0.01289,"49":0.01289,"50":0.00645,"51":0.00645,"52":0.00645,"53":0.00645,"54":0.00645,"55":0.00645,"56":0.00645,"57":0.00645,"58":0.00645,"59":0.00645,"60":0.00645,"73":0.00645,"79":0.38676,"87":0.03223,"89":0.00645,"90":0.00645,"99":0.0838,"102":0.00645,"103":0.01934,"104":0.01289,"107":0.00645,"108":0.00645,"109":0.69617,"111":0.50279,"112":0.00645,"113":0.00645,"114":0.02578,"115":0.00645,"116":0.03868,"118":0.03868,"119":0.01289,"120":0.18693,"121":0.01289,"122":0.05801,"123":0.07735,"124":0.01934,"125":1.11516,"126":0.04512,"127":0.02578,"128":0.03868,"129":0.01934,"130":0.07091,"131":0.25784,"132":0.22561,"133":0.06446,"134":0.07735,"135":0.07735,"136":0.06446,"137":0.14181,"138":0.19338,"139":0.76707,"140":7.45802,"141":20.34358,"142":0.28362,"143":0.00645,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 74 75 76 77 78 80 81 83 84 85 86 88 91 92 93 94 95 96 97 98 100 101 105 106 110 117 144 145"},F:{"46":0.00645,"91":0.03868,"92":0.07735,"95":0.12247,"110":0.00645,"114":0.00645,"117":0.00645,"118":0.00645,"119":0.01289,"120":0.41254,"121":1.90802,"122":12.1636,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.00645},B:{"92":0.00645,"96":0.06446,"109":0.07091,"114":0.00645,"120":0.00645,"130":0.00645,"131":0.01289,"132":0.00645,"133":0.00645,"134":0.02578,"135":0.01289,"136":0.01289,"137":0.00645,"138":0.05157,"139":0.03868,"140":0.74129,"141":3.88694,"142":0.00645,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 121 122 123 124 125 126 127 128 129"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 26.2","13.1":0.00645,"14.1":0.00645,"15.6":0.03223,"16.1":0.00645,"16.3":0.00645,"16.4":0.00645,"16.5":0.00645,"16.6":0.03868,"17.0":0.00645,"17.1":0.01934,"17.2":0.00645,"17.3":0.00645,"17.4":0.01934,"17.5":0.02578,"17.6":0.06446,"18.0":0.01289,"18.1":0.03223,"18.2":0.00645,"18.3":0.05157,"18.4":0.01934,"18.5-18.6":0.07735,"26.0":0.34808,"26.1":0.01934},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00085,"5.0-5.1":0,"6.0-6.1":0.00338,"7.0-7.1":0.00254,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00761,"10.0-10.2":0.00085,"10.3":0.01437,"11.0-11.2":0.21301,"11.3-11.4":0.00507,"12.0-12.1":0.00169,"12.2-12.5":0.04142,"13.0-13.1":0,"13.2":0.00423,"13.3":0.00169,"13.4-13.7":0.00676,"14.0-14.4":0.01437,"14.5-14.8":0.01521,"15.0-15.1":0.01437,"15.2-15.3":0.01099,"15.4":0.01268,"15.5":0.01437,"15.6-15.8":0.18765,"16.0":0.02536,"16.1":0.04733,"16.2":0.02451,"16.3":0.04395,"16.4":0.01099,"16.5":0.01944,"16.6-16.7":0.25104,"17.0":0.01775,"17.1":0.02705,"17.2":0.01944,"17.3":0.02874,"17.4":0.05072,"17.5":0.08706,"17.6-17.7":0.21977,"18.0":0.04987,"18.1":0.10312,"18.2":0.05579,"18.3":0.17919,"18.4":0.09213,"18.5-18.6":4.69795,"26.0":0.58069,"26.1":0.02113},P:{"4":0.01032,"21":0.01032,"22":0.01032,"23":0.01032,"24":0.01032,"25":0.01032,"26":0.02065,"27":0.0413,"28":1.51772,"29":0.11357,_:"20 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.01774,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.64309,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00806,"11":0.02417,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.33754},Q:{"14.9":0.00355},O:{"0":0.04619},H:{"0":0},L:{"0":26.66194}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PM.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PM.js deleted file mode 100644 index 74683ce6..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PM.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.10786,"128":0.03595,"136":0.01541,"140":0.3287,"142":0.03082,"143":0.34925,"144":0.51874,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 137 138 139 141 145 146 147 3.5 3.6"},D:{"46":0.00514,"49":0.00514,"56":0.00514,"109":0.40061,"112":0.02054,"116":0.01541,"118":0.00514,"125":0.39034,"126":0.03595,"127":0.03595,"128":0.03082,"130":0.00514,"131":0.03082,"133":0.00514,"134":0.02054,"135":0.01541,"137":0.02054,"138":0.14381,"139":0.14381,"140":8.10461,"141":9.61459,"142":0.03082,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 50 51 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 113 114 115 117 119 120 121 122 123 124 129 132 136 143 144 145"},F:{"122":0.23626,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"128":0.00514,"139":0.06677,"140":0.03595,"141":1.77192,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 136 137 138 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.4 16.0 26.2","14.1":0.13354,"15.1":0.3133,"15.2-15.3":0.00514,"15.5":0.00514,"15.6":0.34411,"16.1":0.40061,"16.2":0.40061,"16.3":0.24139,"16.4":0.14894,"16.5":0.8269,"16.6":4.45291,"17.0":0.04109,"17.1":1.926,"17.2":0.41602,"17.3":0.16435,"17.4":2.14685,"17.5":0.8988,"17.6":7.89403,"18.0":0.08731,"18.1":0.13354,"18.2":0.04109,"18.3":0.17976,"18.4":0.30816,"18.5-18.6":0.76526,"26.0":1.17101,"26.1":0.01541},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00365,"5.0-5.1":0,"6.0-6.1":0.01462,"7.0-7.1":0.01096,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.03289,"10.0-10.2":0.00365,"10.3":0.06213,"11.0-11.2":0.92101,"11.3-11.4":0.02193,"12.0-12.1":0.00731,"12.2-12.5":0.17909,"13.0-13.1":0,"13.2":0.01827,"13.3":0.00731,"13.4-13.7":0.02924,"14.0-14.4":0.06213,"14.5-14.8":0.06579,"15.0-15.1":0.06213,"15.2-15.3":0.04751,"15.4":0.05482,"15.5":0.06213,"15.6-15.8":0.81137,"16.0":0.10964,"16.1":0.20467,"16.2":0.10599,"16.3":0.19005,"16.4":0.04751,"16.5":0.08406,"16.6-16.7":1.08548,"17.0":0.07675,"17.1":0.11695,"17.2":0.08406,"17.3":0.12426,"17.4":0.21929,"17.5":0.37645,"17.6-17.7":0.95025,"18.0":0.21563,"18.1":0.44589,"18.2":0.24122,"18.3":0.77482,"18.4":0.39837,"18.5-18.6":20.31343,"26.0":2.51085,"26.1":0.09137},P:{"4":0.01116,"28":2.38923,"29":0.24562,_:"20 21 22 23 24 25 26 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.04864},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":9.41595}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PN.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PN.js deleted file mode 100644 index 4de5b297..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PN.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 3.5 3.6"},D:{"138":20.835,"139":12.5,"140":4.165,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 141 142 143 144 145"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"141":4.165,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.4 17.5 17.6 18.0 18.1 18.2 18.3 18.4 18.5-18.6 26.0 26.1 26.2"},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00083,"5.0-5.1":0,"6.0-6.1":0.00333,"7.0-7.1":0.0025,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0075,"10.0-10.2":0.00083,"10.3":0.01417,"11.0-11.2":0.21004,"11.3-11.4":0.005,"12.0-12.1":0.00167,"12.2-12.5":0.04084,"13.0-13.1":0,"13.2":0.00417,"13.3":0.00167,"13.4-13.7":0.00667,"14.0-14.4":0.01417,"14.5-14.8":0.015,"15.0-15.1":0.01417,"15.2-15.3":0.01084,"15.4":0.0125,"15.5":0.01417,"15.6-15.8":0.18504,"16.0":0.02501,"16.1":0.04668,"16.2":0.02417,"16.3":0.04334,"16.4":0.01084,"16.5":0.01917,"16.6-16.7":0.24755,"17.0":0.0175,"17.1":0.02667,"17.2":0.01917,"17.3":0.02834,"17.4":0.05001,"17.5":0.08585,"17.6-17.7":0.21671,"18.0":0.04918,"18.1":0.10169,"18.2":0.05501,"18.3":0.1767,"18.4":0.09085,"18.5-18.6":4.63259,"26.0":0.57261,"26.1":0.02084},P:{_:"4 20 21 22 23 24 25 26 27 28 29 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":50}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PR.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PR.js deleted file mode 100644 index e56d2e41..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PR.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"4":0.02851,"78":0.00407,"115":0.03666,"120":0.07739,"128":0.00407,"134":0.1059,"136":0.00407,"137":0.03666,"139":0.00407,"140":0.02851,"141":0.00407,"142":0.02037,"143":0.7698,"144":0.6191,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 122 123 124 125 126 127 129 130 131 132 133 135 138 145 146 147 3.5 3.6"},D:{"39":0.00407,"40":0.00407,"41":0.00407,"42":0.00407,"43":0.00407,"44":0.00407,"45":0.00407,"46":0.00407,"47":0.00407,"48":0.00407,"49":0.00407,"50":0.00407,"51":0.00407,"52":0.00407,"53":0.00407,"54":0.00407,"55":0.00407,"56":0.00407,"57":0.00407,"58":0.00407,"59":0.00407,"60":0.00407,"65":0.00815,"70":0.00815,"74":0.00407,"76":0.00407,"79":0.01222,"87":0.01222,"101":0.00407,"103":0.13034,"104":0.00407,"108":0.00407,"109":0.2118,"110":0.00407,"112":0.92864,"113":0.12219,"116":0.03666,"119":0.01222,"120":0.00407,"121":0.00407,"122":0.03258,"123":0.00815,"124":0.00815,"125":3.19323,"126":0.09775,"127":0.00815,"128":0.06924,"129":0.01222,"130":0.02037,"131":0.02851,"132":0.02851,"133":0.01222,"134":0.04888,"135":0.07739,"136":0.02851,"137":0.12219,"138":0.30548,"139":0.66797,"140":3.79604,"141":9.24978,"142":0.15477,"143":0.00407,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 66 67 68 69 71 72 73 75 77 78 80 81 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 102 105 106 107 111 114 115 117 118 144 145"},F:{"73":0.00815,"90":0.00407,"91":0.00407,"92":0.01222,"95":0.00407,"120":0.05295,"121":0.06517,"122":0.75758,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00407,"92":0.00407,"109":0.01222,"122":0.02444,"128":0.00407,"130":0.02037,"131":0.00815,"132":0.00815,"133":0.00407,"134":0.06517,"135":0.00815,"136":0.00815,"137":0.01222,"138":0.03666,"139":0.03666,"140":1.34002,"141":5.66962,"142":0.02037,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 123 124 125 126 127 129"},E:{"14":0.01222,"15":0.00407,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 16.0 26.2","12.1":0.00407,"13.1":0.00815,"14.1":0.02851,"15.4":0.00407,"15.5":0.00815,"15.6":0.08553,"16.1":0.02037,"16.2":0.01222,"16.3":0.02444,"16.4":0.03666,"16.5":0.02851,"16.6":0.14663,"17.0":0.00815,"17.1":0.05702,"17.2":0.02444,"17.3":0.02037,"17.4":0.12626,"17.5":0.04888,"17.6":0.26475,"18.0":0.02037,"18.1":0.04888,"18.2":0.0611,"18.3":0.08146,"18.4":0.0611,"18.5-18.6":0.20772,"26.0":0.74129,"26.1":0.02444},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00262,"5.0-5.1":0,"6.0-6.1":0.01047,"7.0-7.1":0.00785,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02356,"10.0-10.2":0.00262,"10.3":0.04451,"11.0-11.2":0.65976,"11.3-11.4":0.01571,"12.0-12.1":0.00524,"12.2-12.5":0.12829,"13.0-13.1":0,"13.2":0.01309,"13.3":0.00524,"13.4-13.7":0.02094,"14.0-14.4":0.04451,"14.5-14.8":0.04713,"15.0-15.1":0.04451,"15.2-15.3":0.03404,"15.4":0.03927,"15.5":0.04451,"15.6-15.8":0.58122,"16.0":0.07854,"16.1":0.14661,"16.2":0.07593,"16.3":0.13614,"16.4":0.03404,"16.5":0.06022,"16.6-16.7":0.77758,"17.0":0.05498,"17.1":0.08378,"17.2":0.06022,"17.3":0.08902,"17.4":0.15709,"17.5":0.26967,"17.6-17.7":0.68071,"18.0":0.15447,"18.1":0.31941,"18.2":0.1728,"18.3":0.55504,"18.4":0.28537,"18.5-18.6":14.55144,"26.0":1.79864,"26.1":0.06545},P:{"4":0.02089,"21":0.01045,"23":0.01045,"24":0.03134,"25":0.03134,"26":0.02089,"27":0.03134,"28":2.78921,"29":0.22982,_:"20 22 6.2-6.4 8.2 10.1 12.0 13.0 14.0 15.0 17.0 18.0 19.0","5.0-5.4":0.02089,"7.2-7.4":0.01045,"9.2":0.01045,"11.1-11.2":0.01045,"16.0":0.03134},I:{"0":0.01184,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.18963,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00407,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.62816},Q:{_:"14.9"},O:{"0":0.00593},H:{"0":0},L:{"0":34.41989}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PS.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PS.js deleted file mode 100644 index 94bf65e8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PS.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.00318,"115":0.02705,"127":0.00318,"140":0.00477,"141":0.00318,"142":0.01273,"143":0.14955,"144":0.15274,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 128 129 130 131 132 133 134 135 136 137 138 139 145 146 147 3.5 3.6"},D:{"34":0.00159,"38":0.00159,"46":0.00159,"50":0.00159,"56":0.01114,"58":0.00159,"66":0.00318,"69":0.00159,"71":0.00159,"73":0.00477,"77":0.02227,"78":0.00159,"79":0.01273,"80":0.00159,"81":0.00159,"83":0.00477,"86":0.00159,"87":0.01432,"89":0.00318,"90":0.00318,"91":0.00159,"92":0.00318,"95":0.00636,"97":0.00477,"98":0.00318,"100":0.00477,"101":0.00159,"103":0.00318,"104":0.00159,"106":0.00159,"107":0.00477,"108":0.00636,"109":0.2291,"110":0.00159,"111":0.00159,"112":0.71913,"113":0.00159,"114":0.00636,"115":0.00318,"116":0.00955,"117":0.02705,"118":0.00318,"119":0.01114,"120":0.00477,"121":0.00159,"122":0.01591,"123":0.05091,"124":0.00477,"125":0.81459,"126":0.07,"127":0.01114,"128":0.00955,"129":0.01273,"130":0.01432,"131":0.03978,"132":0.02546,"133":0.01591,"134":0.02068,"135":0.03818,"136":0.07478,"137":0.06205,"138":0.20206,"139":0.2482,"140":2.87653,"141":5.41736,"142":0.035,"143":0.00318,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 39 40 41 42 43 44 45 47 48 49 51 52 53 54 55 57 59 60 61 62 63 64 65 67 68 70 72 74 75 76 84 85 88 93 94 96 99 102 105 144 145"},F:{"46":0.00477,"79":0.00159,"91":0.00318,"92":0.00636,"95":0.00318,"120":0.01591,"121":0.01432,"122":0.17342,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.00159,"18":0.00159,"89":0.00159,"92":0.00955,"100":0.00159,"109":0.00159,"114":0.05409,"117":0.00477,"122":0.00159,"126":0.00159,"130":0.00159,"131":0.00159,"133":0.00318,"134":0.00159,"135":0.00318,"136":0.00796,"137":0.00318,"138":0.01114,"139":0.02864,"140":0.13524,"141":0.83687,"142":0.00159,_:"12 14 15 16 17 79 80 81 83 84 85 86 87 88 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 118 119 120 121 123 124 125 127 128 129 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 16.4 17.2 26.2","5.1":0.01432,"13.1":0.00159,"14.1":0.00318,"15.4":0.00159,"15.5":0.00159,"15.6":0.01273,"16.0":0.00159,"16.1":0.00159,"16.2":0.00477,"16.3":0.00477,"16.5":0.00318,"16.6":0.0175,"17.0":0.00636,"17.1":0.00636,"17.3":0.00159,"17.4":0.00477,"17.5":0.00477,"17.6":0.00955,"18.0":0.00477,"18.1":0.00477,"18.2":0.00318,"18.3":0.00796,"18.4":0.00636,"18.5-18.6":0.02864,"26.0":0.08432,"26.1":0.00159},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00066,"5.0-5.1":0,"6.0-6.1":0.00263,"7.0-7.1":0.00198,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00593,"10.0-10.2":0.00066,"10.3":0.01119,"11.0-11.2":0.1659,"11.3-11.4":0.00395,"12.0-12.1":0.00132,"12.2-12.5":0.03226,"13.0-13.1":0,"13.2":0.00329,"13.3":0.00132,"13.4-13.7":0.00527,"14.0-14.4":0.01119,"14.5-14.8":0.01185,"15.0-15.1":0.01119,"15.2-15.3":0.00856,"15.4":0.00988,"15.5":0.01119,"15.6-15.8":0.14615,"16.0":0.01975,"16.1":0.03687,"16.2":0.01909,"16.3":0.03423,"16.4":0.00856,"16.5":0.01514,"16.6-16.7":0.19553,"17.0":0.01383,"17.1":0.02107,"17.2":0.01514,"17.3":0.02238,"17.4":0.0395,"17.5":0.06781,"17.6-17.7":0.17117,"18.0":0.03884,"18.1":0.08032,"18.2":0.04345,"18.3":0.13957,"18.4":0.07176,"18.5-18.6":3.65909,"26.0":0.45228,"26.1":0.01646},P:{"4":0.01023,"20":0.02045,"21":0.06135,"22":0.1227,"23":0.07158,"24":0.05113,"25":0.10225,"26":0.22495,"27":0.17383,"28":1.69737,"29":0.06135,_:"5.0-5.4 6.2-6.4 9.2 10.1 12.0","7.2-7.4":0.0409,"8.2":0.01023,"11.1-11.2":0.01023,"13.0":0.02045,"14.0":0.01023,"15.0":0.01023,"16.0":0.02045,"17.0":0.03068,"18.0":0.01023,"19.0":0.03068},I:{"0":0.01679,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.27746,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00159,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.06726},Q:{_:"14.9"},O:{"0":0.00841},H:{"0":0},L:{"0":76.71574}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PT.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PT.js deleted file mode 100644 index b42b4fac..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PT.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"48":0.00648,"52":0.09066,"78":0.01295,"107":0.00648,"115":0.14895,"117":0.00648,"125":0.00648,"128":0.01295,"133":0.01943,"136":0.04533,"137":0.00648,"138":0.00648,"139":0.00648,"140":0.05828,"141":0.01295,"142":0.04533,"143":1.2952,"144":1.03616,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 109 110 111 112 113 114 116 118 119 120 121 122 123 124 126 127 129 130 131 132 134 135 145 146 147 3.5 3.6"},D:{"38":0.00648,"39":0.01295,"40":0.01295,"41":0.01295,"42":0.01295,"43":0.01295,"44":0.01295,"45":0.01295,"46":0.01295,"47":0.01295,"48":0.01295,"49":0.01943,"50":0.01295,"51":0.01295,"52":0.01295,"53":0.01295,"54":0.01295,"55":0.01295,"56":0.01295,"57":0.01295,"58":0.01295,"59":0.01295,"60":0.01295,"79":0.0259,"81":0.00648,"85":0.00648,"87":0.01943,"88":0.00648,"89":0.00648,"91":0.0259,"100":0.00648,"101":0.01295,"103":0.03886,"104":0.06476,"106":0.00648,"108":0.01943,"109":0.73179,"111":0.00648,"112":0.00648,"114":0.03886,"115":0.00648,"116":0.06476,"117":0.71236,"119":0.01295,"120":0.01943,"121":0.01943,"122":0.12304,"123":0.0259,"124":0.03238,"125":1.44415,"126":0.05181,"127":0.0259,"128":0.08419,"129":0.01943,"130":0.15542,"131":0.07124,"132":0.08419,"133":0.08419,"134":0.06476,"135":0.09714,"136":0.07124,"137":0.1619,"138":0.36913,"139":0.57636,"140":12.03888,"141":24.03244,"142":0.23961,"143":0.01295,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 83 84 86 90 92 93 94 95 96 97 98 99 102 105 107 110 113 118 144 145"},F:{"89":0.00648,"90":0.00648,"91":0.00648,"92":0.01943,"95":0.00648,"114":0.00648,"120":0.18133,"121":0.69293,"122":4.38425,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00648,"109":0.04533,"114":0.00648,"120":0.00648,"121":0.00648,"128":0.01943,"130":0.00648,"131":0.01295,"132":0.01295,"133":0.00648,"134":0.01943,"135":0.01943,"136":0.01295,"137":0.01295,"138":0.05181,"139":0.03238,"140":1.1592,"141":6.08744,"142":0.00648,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 122 123 124 125 126 127 129"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 15.4 26.2","12.1":0.00648,"13.1":0.01295,"14.1":0.01295,"15.5":0.00648,"15.6":0.07124,"16.0":0.00648,"16.1":0.01295,"16.2":0.00648,"16.3":0.01295,"16.4":0.00648,"16.5":0.01295,"16.6":0.11657,"17.0":0.00648,"17.1":0.07124,"17.2":0.00648,"17.3":0.01295,"17.4":0.0259,"17.5":0.04533,"17.6":0.20723,"18.0":0.01943,"18.1":0.03886,"18.2":0.01295,"18.3":0.07124,"18.4":0.05181,"18.5-18.6":0.18133,"26.0":0.69941,"26.1":0.03238},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0009,"5.0-5.1":0,"6.0-6.1":0.00362,"7.0-7.1":0.00271,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00814,"10.0-10.2":0.0009,"10.3":0.01538,"11.0-11.2":0.22805,"11.3-11.4":0.00543,"12.0-12.1":0.00181,"12.2-12.5":0.04434,"13.0-13.1":0,"13.2":0.00452,"13.3":0.00181,"13.4-13.7":0.00724,"14.0-14.4":0.01538,"14.5-14.8":0.01629,"15.0-15.1":0.01538,"15.2-15.3":0.01176,"15.4":0.01357,"15.5":0.01538,"15.6-15.8":0.2009,"16.0":0.02715,"16.1":0.05068,"16.2":0.02624,"16.3":0.04706,"16.4":0.01176,"16.5":0.02081,"16.6-16.7":0.26877,"17.0":0.019,"17.1":0.02896,"17.2":0.02081,"17.3":0.03077,"17.4":0.0543,"17.5":0.09321,"17.6-17.7":0.23529,"18.0":0.05339,"18.1":0.11041,"18.2":0.05973,"18.3":0.19185,"18.4":0.09864,"18.5-18.6":5.02979,"26.0":0.62171,"26.1":0.02262},P:{"4":0.01039,"22":0.02078,"23":0.01039,"24":0.01039,"25":0.01039,"26":0.02078,"27":0.05196,"28":1.36126,"29":0.1247,_:"20 21 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.04223,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.19734,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.03238,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.2643},Q:{"14.9":0.00352},O:{"0":0.05286},H:{"0":0},L:{"0":26.54393}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PW.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PW.js deleted file mode 100644 index 9752df52..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PW.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"143":0.67496,"144":0.28543,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 145 146 147 3.5 3.6"},D:{"46":0.01007,"54":0.03022,"67":0.05037,"83":0.05037,"109":0.59437,"116":0.09067,"123":0.01007,"125":1.31969,"126":0.06044,"128":0.17462,"132":0.02015,"134":0.02015,"136":0.01007,"137":0.08059,"138":3.52926,"139":0.22499,"140":12.86114,"141":5.7489,"142":0.0403,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 55 56 57 58 59 60 61 62 63 64 65 66 68 69 70 71 72 73 74 75 76 77 78 79 80 81 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 117 118 119 120 121 122 124 127 129 130 131 133 135 143 144 145"},F:{"120":0.03022,"122":0.35931,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.03022,"131":0.01007,"134":0.01007,"135":0.08059,"137":0.01007,"139":0.01007,"140":0.7354,"141":1.41036,"142":0.01007,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 132 133 136 138"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.5 17.0 17.3 17.4 18.4 26.1 26.2","14.1":0.0403,"16.3":0.01007,"16.4":0.01007,"16.6":0.0403,"17.1":0.02015,"17.2":0.01007,"17.5":0.08059,"17.6":0.01007,"18.0":0.05037,"18.1":0.02015,"18.2":0.0403,"18.3":0.02015,"18.5-18.6":0.06044,"26.0":0.31565},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00133,"5.0-5.1":0,"6.0-6.1":0.00533,"7.0-7.1":0.004,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01199,"10.0-10.2":0.00133,"10.3":0.02265,"11.0-11.2":0.33571,"11.3-11.4":0.00799,"12.0-12.1":0.00266,"12.2-12.5":0.06528,"13.0-13.1":0,"13.2":0.00666,"13.3":0.00266,"13.4-13.7":0.01066,"14.0-14.4":0.02265,"14.5-14.8":0.02398,"15.0-15.1":0.02265,"15.2-15.3":0.01732,"15.4":0.01998,"15.5":0.02265,"15.6-15.8":0.29574,"16.0":0.03997,"16.1":0.0746,"16.2":0.03863,"16.3":0.06927,"16.4":0.01732,"16.5":0.03064,"16.6-16.7":0.39566,"17.0":0.02798,"17.1":0.04263,"17.2":0.03064,"17.3":0.04529,"17.4":0.07993,"17.5":0.13722,"17.6-17.7":0.34637,"18.0":0.0786,"18.1":0.16253,"18.2":0.08792,"18.3":0.28242,"18.4":0.14521,"18.5-18.6":7.40428,"26.0":0.91521,"26.1":0.0333},P:{"25":0.02061,"27":0.0103,"28":1.59709,"29":0.23699,_:"4 20 21 22 23 24 26 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.12365,"7.2-7.4":0.0103},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.08633,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.13946},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":54.3841}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PY.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PY.js deleted file mode 100644 index 75458bf8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/PY.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"4":0.14382,"115":0.02397,"134":0.00799,"136":0.00799,"140":0.00799,"141":0.00799,"142":0.01598,"143":0.3995,"144":0.33558,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 135 137 138 139 145 146 147 3.5 3.6"},D:{"39":0.02397,"40":0.02397,"41":0.02397,"42":0.02397,"43":0.02397,"44":0.02397,"45":0.02397,"46":0.02397,"47":0.02397,"48":0.02397,"49":0.02397,"50":0.02397,"51":0.02397,"52":0.02397,"53":0.02397,"54":0.02397,"55":0.02397,"56":0.02397,"57":0.02397,"58":0.02397,"59":0.02397,"60":0.02397,"65":0.00799,"73":0.00799,"75":0.00799,"79":0.01598,"83":0.00799,"87":0.5593,"91":0.00799,"94":0.00799,"97":0.00799,"104":0.00799,"109":0.27166,"110":0.00799,"112":38.98321,"114":0.00799,"116":0.00799,"119":0.00799,"120":0.00799,"121":0.00799,"122":0.00799,"123":0.00799,"124":0.00799,"125":21.38923,"126":3.70736,"127":0.00799,"128":0.00799,"129":0.00799,"130":0.00799,"131":0.01598,"132":0.00799,"133":0.01598,"134":0.01598,"135":0.01598,"136":0.00799,"137":0.02397,"138":0.07191,"139":0.11186,"140":2.24519,"141":5.76878,"142":0.10387,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 66 67 68 69 70 71 72 74 76 77 78 80 81 84 85 86 88 89 90 92 93 95 96 98 99 100 101 102 103 105 106 107 108 111 113 115 117 118 143 144 145"},F:{"92":0.00799,"95":0.00799,"120":0.01598,"121":0.0799,"122":0.51136,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00799,"109":0.00799,"114":0.17578,"131":0.00799,"134":0.00799,"135":0.00799,"138":0.00799,"139":0.01598,"140":0.28764,"141":1.31835,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 132 133 136 137 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.2 17.3 17.4 18.0 18.1 18.2 18.4 26.2","15.6":0.00799,"16.6":0.00799,"17.1":0.00799,"17.5":0.00799,"17.6":0.03196,"18.3":0.00799,"18.5-18.6":0.03196,"26.0":0.06392,"26.1":0.00799},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00023,"5.0-5.1":0,"6.0-6.1":0.00093,"7.0-7.1":0.0007,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00209,"10.0-10.2":0.00023,"10.3":0.00395,"11.0-11.2":0.05855,"11.3-11.4":0.00139,"12.0-12.1":0.00046,"12.2-12.5":0.01139,"13.0-13.1":0,"13.2":0.00116,"13.3":0.00046,"13.4-13.7":0.00186,"14.0-14.4":0.00395,"14.5-14.8":0.00418,"15.0-15.1":0.00395,"15.2-15.3":0.00302,"15.4":0.00349,"15.5":0.00395,"15.6-15.8":0.05158,"16.0":0.00697,"16.1":0.01301,"16.2":0.00674,"16.3":0.01208,"16.4":0.00302,"16.5":0.00534,"16.6-16.7":0.06901,"17.0":0.00488,"17.1":0.00744,"17.2":0.00534,"17.3":0.0079,"17.4":0.01394,"17.5":0.02393,"17.6-17.7":0.06041,"18.0":0.01371,"18.1":0.02835,"18.2":0.01534,"18.3":0.04926,"18.4":0.02533,"18.5-18.6":1.29143,"26.0":0.15963,"26.1":0.00581},P:{"4":0.03089,"21":0.02059,"22":0.02059,"23":0.0103,"24":0.03089,"25":0.03089,"26":0.08237,"27":0.06178,"28":1.23562,"29":0.09267,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.11327,"17.0":0.02059,"19.0":0.0103},I:{"0":0.01004,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.17688,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.08844},Q:{_:"14.9"},O:{"0":0.00603},H:{"0":0},L:{"0":17.18465}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/QA.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/QA.js deleted file mode 100644 index 7b51aa92..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/QA.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"5":0.30192,"115":0.03145,"117":0.00315,"125":0.00315,"139":0.00315,"140":0.00944,"141":0.00315,"142":0.00944,"143":0.23902,"144":0.17612,_:"2 3 4 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 118 119 120 121 122 123 124 126 127 128 129 130 131 132 133 134 135 136 137 138 145 146 147 3.5 3.6"},D:{"39":0.00315,"40":0.00315,"41":0.00315,"42":0.00315,"43":0.00315,"44":0.00315,"45":0.00315,"46":0.00315,"47":0.00315,"48":0.00315,"49":0.00315,"50":0.00315,"51":0.00315,"52":0.00315,"53":0.00315,"54":0.00315,"55":0.00315,"56":0.00315,"57":0.00315,"58":0.00315,"59":0.00315,"60":0.00944,"68":0.00315,"69":0.00315,"73":0.00315,"79":0.02831,"80":0.00315,"83":0.00315,"84":0.00629,"85":0.00944,"87":0.01258,"88":0.00315,"91":0.01573,"93":0.00315,"95":0.00315,"102":0.00315,"103":0.07863,"104":0.03145,"108":0.01258,"109":0.28305,"110":0.00315,"111":0.02202,"112":1.29574,"114":0.00944,"115":0.00315,"116":0.02831,"117":0.00629,"118":0.02516,"119":0.00629,"120":0.00629,"121":0.00629,"122":0.02202,"123":0.00629,"124":0.00944,"125":2.05369,"126":0.10064,"127":0.04718,"128":0.02516,"129":0.00315,"130":0.06605,"131":0.05661,"132":0.02202,"133":0.02831,"134":0.01573,"135":0.04089,"136":0.04089,"137":0.0629,"138":0.23273,"139":0.32079,"140":3.51297,"141":7.69896,"142":0.0629,"143":0.00315,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 70 71 72 74 75 76 77 78 81 86 89 90 92 94 96 97 98 99 100 101 105 106 107 113 144 145"},F:{"46":0.00629,"91":0.05032,"92":0.11951,"95":0.01258,"114":0.00315,"120":0.05347,"121":0.06605,"122":0.41514,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.00629,"18":0.00315,"92":0.00315,"109":0.00315,"114":0.04403,"122":0.00315,"131":0.00629,"133":0.01887,"134":0.00315,"135":0.00629,"136":0.00629,"137":0.00315,"138":0.01573,"139":0.01573,"140":0.66674,"141":2.12602,"142":0.00315,_:"12 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 126 127 128 129 130 132"},E:{"14":0.00315,"15":0.00315,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 16.0 16.4 26.2","13.1":0.00315,"14.1":0.00315,"15.4":0.00315,"15.5":0.00629,"15.6":0.03774,"16.1":0.00629,"16.2":0.00315,"16.3":0.00944,"16.5":0.00629,"16.6":0.05032,"17.0":0.00315,"17.1":0.06605,"17.2":0.00629,"17.3":0.00629,"17.4":0.00944,"17.5":0.08492,"17.6":0.07548,"18.0":0.01258,"18.1":0.04718,"18.2":0.00629,"18.3":0.0346,"18.4":0.01573,"18.5-18.6":0.1258,"26.0":0.28305,"26.1":0.01573},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00099,"5.0-5.1":0,"6.0-6.1":0.00397,"7.0-7.1":0.00298,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00894,"10.0-10.2":0.00099,"10.3":0.01689,"11.0-11.2":0.25031,"11.3-11.4":0.00596,"12.0-12.1":0.00199,"12.2-12.5":0.04867,"13.0-13.1":0,"13.2":0.00497,"13.3":0.00199,"13.4-13.7":0.00795,"14.0-14.4":0.01689,"14.5-14.8":0.01788,"15.0-15.1":0.01689,"15.2-15.3":0.01291,"15.4":0.0149,"15.5":0.01689,"15.6-15.8":0.22051,"16.0":0.0298,"16.1":0.05562,"16.2":0.02881,"16.3":0.05165,"16.4":0.01291,"16.5":0.02285,"16.6-16.7":0.29501,"17.0":0.02086,"17.1":0.03179,"17.2":0.02285,"17.3":0.03377,"17.4":0.0596,"17.5":0.10231,"17.6-17.7":0.25826,"18.0":0.0586,"18.1":0.12118,"18.2":0.06556,"18.3":0.21058,"18.4":0.10827,"18.5-18.6":5.5207,"26.0":0.68239,"26.1":0.02483},P:{"4":0.01024,"21":0.02048,"22":0.01024,"23":0.01024,"24":0.01024,"25":0.02048,"26":0.03071,"27":0.03071,"28":1.30022,"29":0.12286,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01024},I:{"0":0.04792,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":1.63149,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00315,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.12339},Q:{_:"14.9"},O:{"0":1.844},H:{"0":0},L:{"0":61.81854}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/RE.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/RE.js deleted file mode 100644 index 90a04732..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/RE.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"78":0.17121,"82":0.00439,"102":0.01756,"110":0.01317,"115":0.26779,"127":0.00878,"128":0.10097,"131":0.00439,"134":0.00439,"136":0.12292,"137":0.00439,"138":0.00439,"139":0.01756,"140":0.10097,"141":0.00878,"142":0.03512,"143":1.69454,"144":1.87453,"146":0.00439,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 132 133 135 145 147 3.5 3.6"},D:{"39":0.00439,"40":0.00439,"41":0.00439,"42":0.00439,"43":0.00439,"44":0.00439,"45":0.00439,"46":0.00439,"47":0.00878,"48":0.00439,"49":0.48729,"50":0.00439,"51":0.00439,"52":0.00439,"53":0.00439,"54":0.00439,"55":0.00439,"56":0.00439,"57":0.00439,"58":0.00439,"60":0.00439,"78":0.06146,"79":0.02195,"85":0.00878,"86":0.00439,"87":0.01756,"88":0.03512,"102":0.00439,"103":0.04829,"104":0.07024,"108":0.09658,"109":0.60582,"110":0.00439,"111":0.00439,"113":0.00439,"116":0.06146,"118":0.00439,"119":0.00439,"120":0.01317,"121":0.00439,"122":0.05707,"123":0.00439,"124":0.01756,"125":2.09403,"126":0.01317,"127":0.0439,"128":0.08341,"129":0.00439,"130":0.01317,"131":0.01317,"132":0.06146,"133":0.02634,"134":0.03073,"135":0.01317,"136":0.01756,"137":0.06585,"138":0.22389,"139":0.59265,"140":5.20215,"141":11.87934,"142":0.16243,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 80 81 83 84 89 90 91 92 93 94 95 96 97 98 99 100 101 105 106 107 112 114 115 117 143 144 145"},F:{"46":0.00439,"91":0.01317,"92":0.00878,"95":0.00878,"114":0.00439,"120":0.1756,"121":0.21072,"122":1.63308,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00439,"96":0.00878,"109":0.02634,"114":0.0439,"122":0.00878,"129":0.00439,"130":0.00439,"131":0.02634,"132":0.00439,"133":0.17999,"134":0.03073,"136":0.00439,"137":0.01317,"138":0.01756,"139":0.01756,"140":0.89556,"141":5.42165,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 126 127 128 135 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 26.2","12.1":0.00439,"13.1":0.03073,"14.1":0.01317,"15.1":0.00878,"15.2-15.3":0.00439,"15.4":0.00878,"15.5":0.00439,"15.6":0.14487,"16.0":0.00878,"16.1":0.00439,"16.2":0.04829,"16.3":0.02634,"16.4":0.01317,"16.5":0.02195,"16.6":0.1756,"17.0":0.00439,"17.1":0.07463,"17.2":0.01756,"17.3":0.00878,"17.4":0.02634,"17.5":0.01317,"17.6":0.19316,"18.0":0.08341,"18.1":0.02634,"18.2":0.00439,"18.3":0.03951,"18.4":0.02634,"18.5-18.6":0.22389,"26.0":0.58387,"26.1":0.00439},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00148,"5.0-5.1":0,"6.0-6.1":0.00593,"7.0-7.1":0.00445,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01334,"10.0-10.2":0.00148,"10.3":0.02519,"11.0-11.2":0.37343,"11.3-11.4":0.00889,"12.0-12.1":0.00296,"12.2-12.5":0.07261,"13.0-13.1":0,"13.2":0.00741,"13.3":0.00296,"13.4-13.7":0.01185,"14.0-14.4":0.02519,"14.5-14.8":0.02667,"15.0-15.1":0.02519,"15.2-15.3":0.01926,"15.4":0.02223,"15.5":0.02519,"15.6-15.8":0.32897,"16.0":0.04446,"16.1":0.08298,"16.2":0.04297,"16.3":0.07706,"16.4":0.01926,"16.5":0.03408,"16.6-16.7":0.44011,"17.0":0.03112,"17.1":0.04742,"17.2":0.03408,"17.3":0.05038,"17.4":0.08891,"17.5":0.15263,"17.6-17.7":0.38528,"18.0":0.08743,"18.1":0.18079,"18.2":0.0978,"18.3":0.31416,"18.4":0.16152,"18.5-18.6":8.23621,"26.0":1.01804,"26.1":0.03705},P:{"4":0.01034,"21":0.07235,"22":0.01034,"23":0.01034,"24":0.06202,"25":0.07235,"26":0.02067,"27":0.05168,"28":2.27393,"29":0.17571,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 16.0 17.0 18.0 19.0","7.2-7.4":0.16538,"14.0":0.01034,"15.0":0.01034},I:{"0":0.05603,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.16761,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.42083},Q:{_:"14.9"},O:{"0":0.0505},H:{"0":0.04},L:{"0":41.18749}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/RO.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/RO.js deleted file mode 100644 index 37566c1a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/RO.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.0204,"78":0.0102,"96":0.0459,"112":0.0816,"115":0.2703,"123":0.0051,"125":0.0051,"127":0.0051,"128":0.0612,"134":0.0153,"135":0.0051,"136":0.0102,"137":0.0051,"138":0.0051,"139":0.0102,"140":0.0306,"141":0.0102,"142":0.0306,"143":0.918,"144":0.7803,"145":0.0051,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 124 126 129 130 131 132 133 146 147 3.5 3.6"},D:{"39":0.0051,"40":0.0051,"41":0.0051,"42":0.0051,"43":0.0051,"44":0.0051,"45":0.0051,"46":0.0051,"47":0.0051,"48":0.0051,"49":0.0102,"50":0.0051,"51":0.0051,"52":0.0051,"53":0.0051,"54":0.0051,"55":0.0051,"56":0.0051,"57":0.0051,"58":0.0051,"59":0.0051,"60":0.0051,"70":0.0102,"74":0.0357,"76":0.0102,"77":0.0051,"79":0.0153,"87":0.0051,"88":0.0051,"90":0.0051,"100":0.1632,"102":0.0459,"103":0.0102,"104":0.0153,"105":0.0408,"106":0.0051,"108":0.0051,"109":0.6936,"110":0.0051,"111":0.0051,"112":0.1479,"113":0.051,"114":0.0204,"115":0.0051,"116":0.0204,"118":0.0102,"119":0.0153,"120":0.1071,"121":0.0153,"122":0.0357,"123":0.0102,"124":0.0204,"125":1.6932,"126":0.0255,"127":0.0051,"128":0.0561,"129":0.0459,"130":0.0663,"131":0.0918,"132":0.0357,"133":0.0561,"134":0.0408,"135":0.051,"136":0.0765,"137":0.0816,"138":0.1734,"139":0.4029,"140":10.4958,"141":24.225,"142":0.1224,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 71 72 73 75 78 80 81 83 84 85 86 89 91 92 93 94 95 96 97 98 99 101 107 117 143 144 145"},F:{"85":0.0051,"91":0.0153,"92":0.0306,"95":0.0306,"120":0.1224,"121":0.1428,"122":1.3413,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.0051,"18":0.0051,"92":0.0051,"109":0.0102,"112":0.0408,"114":0.0051,"121":0.0051,"122":0.0051,"126":0.0051,"127":0.0051,"129":0.0051,"131":0.0051,"133":0.0051,"134":0.0102,"135":0.0051,"136":0.0102,"137":0.0051,"138":0.0153,"139":0.0153,"140":0.3978,"141":1.8666,"142":0.0051,_:"12 13 14 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 113 115 116 117 118 119 120 123 124 125 128 130 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 17.0 26.2","13.1":0.0051,"14.1":0.0102,"15.6":0.0306,"16.2":0.0051,"16.3":0.0051,"16.4":0.0051,"16.5":0.0051,"16.6":0.0306,"17.1":0.0255,"17.2":0.0051,"17.3":0.0051,"17.4":0.0102,"17.5":0.0153,"17.6":0.0459,"18.0":0.0051,"18.1":0.0102,"18.2":0.0051,"18.3":0.0204,"18.4":0.0102,"18.5-18.6":0.051,"26.0":0.2346,"26.1":0.0102},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00107,"5.0-5.1":0,"6.0-6.1":0.00427,"7.0-7.1":0.00321,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00962,"10.0-10.2":0.00107,"10.3":0.01817,"11.0-11.2":0.26931,"11.3-11.4":0.00641,"12.0-12.1":0.00214,"12.2-12.5":0.05237,"13.0-13.1":0,"13.2":0.00534,"13.3":0.00214,"13.4-13.7":0.00855,"14.0-14.4":0.01817,"14.5-14.8":0.01924,"15.0-15.1":0.01817,"15.2-15.3":0.01389,"15.4":0.01603,"15.5":0.01817,"15.6-15.8":0.23725,"16.0":0.03206,"16.1":0.05985,"16.2":0.03099,"16.3":0.05557,"16.4":0.01389,"16.5":0.02458,"16.6-16.7":0.3174,"17.0":0.02244,"17.1":0.0342,"17.2":0.02458,"17.3":0.03634,"17.4":0.06412,"17.5":0.11008,"17.6-17.7":0.27786,"18.0":0.06305,"18.1":0.13038,"18.2":0.07053,"18.3":0.22656,"18.4":0.11649,"18.5-18.6":5.93978,"26.0":0.73419,"26.1":0.02672},P:{"4":0.03049,"20":0.01016,"21":0.01016,"22":0.02033,"23":0.03049,"24":0.03049,"25":0.03049,"26":0.05081,"27":0.0813,"28":2.48993,"29":0.17277,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0","7.2-7.4":0.03049,"18.0":0.02033,"19.0":0.01016},I:{"0":0.02936,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.3479,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.0068,"11":0.0136,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.3283},Q:{_:"14.9"},O:{"0":0.0294},H:{"0":0},L:{"0":37.3474}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/RS.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/RS.js deleted file mode 100644 index ccd4768f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/RS.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"3":0.0045,"52":0.03153,"72":0.0045,"78":0.0045,"88":0.0045,"101":0.00901,"102":0.0045,"113":0.0045,"115":0.53598,"120":0.0045,"122":0.01351,"123":0.03603,"124":0.0045,"125":0.0045,"127":0.00901,"128":0.00901,"131":0.0045,"132":0.0045,"133":0.0045,"134":0.0045,"135":0.00901,"136":0.05405,"137":0.0045,"138":0.0045,"139":0.00901,"140":0.02702,"141":0.01351,"142":0.04054,"143":1.19806,"144":1.16203,"145":0.0045,_:"2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 121 126 129 130 146 147 3.5 3.6"},D:{"29":0.00901,"39":0.0045,"40":0.0045,"41":0.0045,"42":0.0045,"43":0.0045,"44":0.0045,"45":0.0045,"46":0.0045,"47":0.00901,"48":0.0045,"49":0.01351,"50":0.0045,"51":0.0045,"52":0.0045,"53":0.0045,"54":0.0045,"55":0.0045,"56":0.0045,"57":0.0045,"58":0.0045,"59":0.0045,"60":0.0045,"65":0.00901,"69":0.0045,"71":0.0045,"73":0.00901,"75":0.01351,"78":0.01802,"79":0.3378,"80":0.0045,"81":0.0045,"83":0.01802,"85":0.0045,"86":0.0045,"87":0.32879,"88":0.0045,"89":0.0045,"90":0.0045,"91":0.00901,"93":0.00901,"94":0.04504,"95":0.01351,"96":0.0045,"97":0.0045,"99":0.0045,"100":0.0045,"101":0.0045,"102":0.01802,"103":0.03153,"104":0.08558,"106":0.0045,"107":0.0045,"108":0.04954,"109":2.29704,"110":0.00901,"111":0.02252,"112":0.94584,"114":0.00901,"115":0.0045,"116":0.03153,"117":0.0045,"118":0.0045,"119":0.05405,"120":0.1171,"121":0.06756,"122":0.48643,"123":0.01351,"124":0.04504,"125":1.31066,"126":0.43238,"127":0.01802,"128":0.04954,"129":0.02702,"130":0.01802,"131":0.13512,"132":0.07206,"133":0.05855,"134":0.04954,"135":0.04504,"136":0.07206,"137":0.09008,"138":0.24772,"139":0.60804,"140":6.33262,"141":14.40379,"142":0.14413,"143":0.00901,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 38 61 62 63 64 66 67 68 70 72 74 76 77 84 92 98 105 113 144 145"},F:{"40":0.0045,"46":0.00901,"79":0.0045,"85":0.0045,"86":0.0045,"91":0.01351,"92":0.03603,"95":0.09909,"111":0.0045,"115":0.0045,"119":0.0045,"120":0.15764,"121":0.08558,"122":1.33769,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 112 113 114 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.0045,"92":0.0045,"102":0.01351,"109":0.03603,"114":0.03153,"119":0.0045,"120":0.0045,"121":0.86477,"122":0.00901,"129":0.0045,"130":0.0045,"131":0.0045,"132":0.0045,"133":0.0045,"134":0.0045,"135":0.0045,"136":0.0045,"137":0.00901,"138":0.01351,"139":0.01802,"140":0.3333,"141":1.56739,"142":0.0045,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 110 111 112 113 115 116 117 118 123 124 125 126 127 128"},E:{"4":0.0045,"14":0.0045,"15":0.0045,_:"0 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.1 15.2-15.3 16.2 26.2","11.1":0.0045,"12.1":0.0045,"13.1":0.04954,"14.1":0.05855,"15.4":0.01351,"15.5":0.0045,"15.6":0.06756,"16.0":0.0045,"16.1":0.0045,"16.3":0.00901,"16.4":0.0045,"16.5":0.0045,"16.6":0.04954,"17.0":0.0045,"17.1":0.02702,"17.2":0.00901,"17.3":0.01802,"17.4":0.01802,"17.5":0.01351,"17.6":0.05855,"18.0":0.0045,"18.1":0.01351,"18.2":0.0045,"18.3":0.01802,"18.4":0.00901,"18.5-18.6":0.03603,"26.0":0.15314,"26.1":0.00901},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00087,"5.0-5.1":0,"6.0-6.1":0.0035,"7.0-7.1":0.00262,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00787,"10.0-10.2":0.00087,"10.3":0.01487,"11.0-11.2":0.22049,"11.3-11.4":0.00525,"12.0-12.1":0.00175,"12.2-12.5":0.04287,"13.0-13.1":0,"13.2":0.00437,"13.3":0.00175,"13.4-13.7":0.007,"14.0-14.4":0.01487,"14.5-14.8":0.01575,"15.0-15.1":0.01487,"15.2-15.3":0.01137,"15.4":0.01312,"15.5":0.01487,"15.6-15.8":0.19424,"16.0":0.02625,"16.1":0.049,"16.2":0.02537,"16.3":0.0455,"16.4":0.01137,"16.5":0.02012,"16.6-16.7":0.25986,"17.0":0.01837,"17.1":0.028,"17.2":0.02012,"17.3":0.02975,"17.4":0.0525,"17.5":0.09012,"17.6-17.7":0.22749,"18.0":0.05162,"18.1":0.10675,"18.2":0.05775,"18.3":0.18549,"18.4":0.09537,"18.5-18.6":4.86305,"26.0":0.6011,"26.1":0.02187},P:{"4":0.13455,"21":0.0414,"22":0.01035,"23":0.0207,"24":0.01035,"25":0.03105,"26":0.0414,"27":0.0621,"28":2.20458,"29":0.15525,_:"20 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.0207,"6.2-6.4":0.01035,"7.2-7.4":0.0828,"8.2":0.01035},I:{"0":0.03293,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.22534,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.05839,"9":0.01062,"10":0.02123,"11":0.20702,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.18137},Q:{"14.9":0.0055},O:{"0":0.02198},H:{"0":0},L:{"0":47.22255}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/RU.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/RU.js deleted file mode 100644 index eb41cb26..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/RU.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"31":0.00604,"52":0.07246,"68":0.00604,"69":0.00604,"78":0.00604,"95":0.00604,"102":0.01208,"104":0.00604,"111":0.00604,"113":0.00604,"114":0.00604,"115":0.4287,"120":0.01811,"123":0.00604,"125":0.01208,"127":0.00604,"128":0.03019,"131":0.00604,"133":0.01208,"134":0.00604,"135":0.00604,"136":0.01811,"137":0.01208,"138":0.03019,"139":0.01208,"140":0.07246,"141":0.01811,"142":0.04227,"143":0.67626,"144":0.50115,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 103 105 106 107 108 109 110 112 116 117 118 119 121 122 124 126 129 130 132 145 146 147 3.5 3.6"},D:{"26":0.00604,"38":0.00604,"39":0.01811,"40":0.01811,"41":0.08453,"42":0.01811,"43":0.01811,"44":0.01811,"45":0.13284,"46":0.01811,"47":0.01811,"48":0.01811,"49":0.04227,"50":0.01811,"51":0.01811,"52":0.01208,"53":0.01811,"54":0.01208,"55":0.01811,"56":0.01811,"57":0.01811,"58":0.02415,"59":0.01811,"60":0.01811,"75":0.00604,"76":0.01208,"78":0.01208,"79":0.04227,"80":0.00604,"81":0.01811,"83":0.01811,"84":0.00604,"85":0.08453,"86":0.01208,"87":0.01811,"88":0.00604,"90":0.00604,"91":0.01208,"92":0.60984,"95":0.00604,"96":0.00604,"97":0.01208,"99":0.02415,"100":0.00604,"101":0.00604,"102":0.02415,"103":0.01208,"104":0.0483,"105":0.00604,"106":0.08453,"107":0.00604,"108":0.01811,"109":1.76913,"110":0.00604,"111":0.01811,"112":3.38128,"113":0.00604,"114":0.03623,"115":0.00604,"116":0.13284,"117":0.01208,"118":0.01208,"119":0.01811,"120":0.27171,"121":0.01811,"122":0.05434,"123":0.67022,"124":0.08453,"125":3.61676,"126":0.27775,"127":0.01811,"128":0.0483,"129":0.01811,"130":0.03623,"131":0.6038,"132":0.04227,"133":0.10868,"134":0.74871,"135":0.04227,"136":0.13887,"137":0.06038,"138":0.27171,"139":0.3019,"140":3.98508,"141":9.49174,"142":0.10868,"143":0.00604,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 66 67 68 69 70 71 72 73 74 77 89 93 94 98 144 145"},F:{"12":0.00604,"36":0.01208,"46":0.00604,"63":0.00604,"67":0.00604,"76":0.00604,"79":0.03019,"82":0.00604,"85":0.03019,"86":0.02415,"89":0.00604,"90":0.01208,"91":0.09057,"92":0.1268,"95":0.51323,"99":0.00604,"102":0.00604,"109":0.00604,"113":0.00604,"114":0.00604,"117":0.00604,"118":0.00604,"119":0.01811,"120":0.38643,"121":0.15095,"122":2.39709,_:"9 11 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 64 65 66 68 69 70 71 72 73 74 75 77 78 80 81 83 84 87 88 93 94 96 97 98 100 101 103 104 105 106 107 108 110 111 112 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6","12.1":0.00604},B:{"18":0.01208,"92":0.01811,"109":0.05434,"113":0.00604,"114":0.04227,"120":0.00604,"122":0.00604,"124":0.00604,"129":0.00604,"131":0.01811,"132":0.00604,"133":0.01208,"134":0.01208,"135":0.01208,"136":0.01208,"137":0.01208,"138":0.01811,"139":0.03019,"140":0.58569,"141":2.77144,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 115 116 117 118 119 121 123 125 126 127 128 130 142"},E:{"14":0.00604,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 10.1 11.1 12.1 15.4 16.0 26.2","9.1":0.00604,"13.1":0.00604,"14.1":0.01811,"15.1":0.00604,"15.2-15.3":0.00604,"15.5":0.00604,"15.6":0.05434,"16.1":0.00604,"16.2":0.00604,"16.3":0.01811,"16.4":0.00604,"16.5":0.01208,"16.6":0.07246,"17.0":0.00604,"17.1":0.0483,"17.2":0.00604,"17.3":0.00604,"17.4":0.01811,"17.5":0.01811,"17.6":0.06642,"18.0":0.00604,"18.1":0.01208,"18.2":0.00604,"18.3":0.01811,"18.4":0.01208,"18.5-18.6":0.05434,"26.0":0.15699,"26.1":0.00604},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00088,"5.0-5.1":0,"6.0-6.1":0.00353,"7.0-7.1":0.00265,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00794,"10.0-10.2":0.00088,"10.3":0.015,"11.0-11.2":0.22239,"11.3-11.4":0.0053,"12.0-12.1":0.00177,"12.2-12.5":0.04324,"13.0-13.1":0,"13.2":0.00441,"13.3":0.00177,"13.4-13.7":0.00706,"14.0-14.4":0.015,"14.5-14.8":0.01589,"15.0-15.1":0.015,"15.2-15.3":0.01147,"15.4":0.01324,"15.5":0.015,"15.6-15.8":0.19592,"16.0":0.02648,"16.1":0.04942,"16.2":0.02559,"16.3":0.04589,"16.4":0.01147,"16.5":0.0203,"16.6-16.7":0.26211,"17.0":0.01853,"17.1":0.02824,"17.2":0.0203,"17.3":0.03001,"17.4":0.05295,"17.5":0.0909,"17.6-17.7":0.22945,"18.0":0.05207,"18.1":0.10767,"18.2":0.05825,"18.3":0.18709,"18.4":0.09619,"18.5-18.6":4.905,"26.0":0.60628,"26.1":0.02206},P:{"4":0.07355,"21":0.01051,"23":0.01051,"24":0.01051,"25":0.01051,"26":0.01051,"27":0.02101,"28":0.79854,"29":0.04203,_:"20 22 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01051},I:{"0":0.02769,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":1.08135,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00659,"11":0.06587,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.38026},Q:{"14.9":0.02377},O:{"0":0.07922},H:{"0":0},L:{"0":24.06794}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/RW.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/RW.js deleted file mode 100644 index 15bf5231..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/RW.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"34":0.00572,"50":0.00572,"53":0.00572,"56":0.00572,"57":0.02289,"67":0.00572,"68":0.01144,"72":0.00572,"89":0.00572,"112":0.01144,"115":0.2861,"127":0.02861,"128":0.03433,"130":0.00572,"131":0.00572,"132":0.00572,"133":0.01144,"137":0.01144,"139":0.02861,"140":0.02289,"141":0.03433,"142":0.04578,"143":0.96702,"144":0.76675,"145":0.00572,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 54 55 58 59 60 61 62 63 64 65 66 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 123 124 125 126 129 134 135 136 138 146 147 3.5 3.6"},D:{"39":0.01144,"40":0.00572,"41":0.00572,"42":0.00572,"43":0.00572,"44":0.00572,"45":0.00572,"46":0.00572,"47":0.00572,"48":0.00572,"49":0.00572,"50":0.01717,"51":0.00572,"52":0.00572,"53":0.00572,"54":0.00572,"55":0.01144,"56":0.00572,"57":0.00572,"58":0.00572,"59":0.00572,"60":0.00572,"62":0.00572,"65":0.01144,"70":0.00572,"71":0.01717,"72":0.00572,"73":0.00572,"74":0.02289,"75":0.00572,"76":0.00572,"77":0.02289,"79":0.01144,"80":0.06294,"81":0.01717,"83":0.01144,"84":0.03433,"86":0.00572,"87":0.03433,"88":0.01144,"89":0.01717,"93":0.02861,"95":0.03433,"96":0.00572,"98":0.04005,"99":0.01144,"100":0.06294,"101":0.01144,"102":0.00572,"103":0.06294,"104":0.01144,"106":0.04005,"108":0.00572,"109":0.48637,"110":0.01717,"111":0.02861,"112":0.00572,"113":0.00572,"114":0.01717,"115":0.00572,"116":0.08011,"117":0.00572,"118":0.00572,"119":0.01144,"120":0.02861,"121":0.01144,"122":0.08583,"123":0.02861,"124":0.0515,"125":1.08718,"126":0.04005,"127":0.01717,"128":0.22888,"129":0.04578,"130":0.03433,"131":0.13161,"132":0.06866,"133":0.08011,"134":0.10872,"135":0.12016,"136":0.22888,"137":0.3891,"138":0.54931,"139":1.00707,"140":9.21814,"141":19.10576,"142":0.2861,"143":0.00572,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 63 64 66 67 68 69 78 85 90 91 92 94 97 105 107 144 145"},F:{"76":0.04005,"91":0.04005,"92":0.02289,"95":0.01144,"115":0.01144,"119":0.01144,"120":0.12588,"121":0.02289,"122":0.8068,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01144,"13":0.00572,"14":0.00572,"15":0.00572,"16":0.01717,"17":0.01717,"18":0.07439,"84":0.00572,"89":0.01144,"90":0.02861,"92":0.103,"100":0.01144,"111":0.01144,"112":0.00572,"114":0.103,"120":0.00572,"122":0.0515,"124":0.00572,"126":0.00572,"129":0.01144,"130":0.02289,"131":0.01717,"132":0.01144,"133":0.0515,"134":0.00572,"135":0.01144,"136":0.02861,"137":0.02289,"138":0.0515,"139":0.06866,"140":1.05285,"141":4.30867,"142":0.01717,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 109 110 113 115 116 117 118 119 121 123 125 127 128"},E:{"13":0.00572,"14":0.02289,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.2-15.3 16.0 16.2 16.3 16.4 16.5 17.0 17.2 17.3 18.2 26.2","12.1":0.00572,"13.1":0.02861,"14.1":0.00572,"15.1":0.00572,"15.4":0.01717,"15.5":0.00572,"15.6":0.16594,"16.1":0.01144,"16.6":0.06866,"17.1":0.00572,"17.4":0.00572,"17.5":0.02861,"17.6":0.13733,"18.0":0.00572,"18.1":0.04578,"18.3":0.01144,"18.4":0.00572,"18.5-18.6":0.05722,"26.0":0.20027,"26.1":0.00572},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0005,"5.0-5.1":0,"6.0-6.1":0.00201,"7.0-7.1":0.0015,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00451,"10.0-10.2":0.0005,"10.3":0.00852,"11.0-11.2":0.12635,"11.3-11.4":0.00301,"12.0-12.1":0.001,"12.2-12.5":0.02457,"13.0-13.1":0,"13.2":0.00251,"13.3":0.001,"13.4-13.7":0.00401,"14.0-14.4":0.00852,"14.5-14.8":0.00902,"15.0-15.1":0.00852,"15.2-15.3":0.00652,"15.4":0.00752,"15.5":0.00852,"15.6-15.8":0.11131,"16.0":0.01504,"16.1":0.02808,"16.2":0.01454,"16.3":0.02607,"16.4":0.00652,"16.5":0.01153,"16.6-16.7":0.14891,"17.0":0.01053,"17.1":0.01604,"17.2":0.01153,"17.3":0.01705,"17.4":0.03008,"17.5":0.05164,"17.6-17.7":0.13036,"18.0":0.02958,"18.1":0.06117,"18.2":0.03309,"18.3":0.10629,"18.4":0.05465,"18.5-18.6":2.78668,"26.0":0.34445,"26.1":0.01253},P:{"4":0.01073,"21":0.01073,"24":0.02147,"25":0.01073,"26":0.02147,"27":0.0322,"28":0.42936,"29":0.01073,_:"20 22 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","7.2-7.4":0.0322,"17.0":0.01073},I:{"0":0.01282,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":2.63741,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01144,_:"6 7 8 9 10 5.5"},S:{"2.5":0.01711,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.12834},Q:{_:"14.9"},O:{"0":0.04278},H:{"0":1.97},L:{"0":43.19183}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SA.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SA.js deleted file mode 100644 index 804cab3a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SA.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.00238,"115":0.01428,"125":0.00238,"128":0.00238,"130":0.00238,"133":0.00238,"135":0.00238,"139":0.00238,"140":0.0119,"141":0.00476,"142":0.0119,"143":0.21896,"144":0.15708,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 129 131 132 134 136 137 138 145 146 147 3.5 3.6"},D:{"38":0.00238,"39":0.00238,"40":0.00238,"41":0.00238,"42":0.00238,"43":0.00238,"44":0.00238,"45":0.00238,"46":0.00238,"47":0.00238,"48":0.00238,"49":0.00476,"50":0.00238,"51":0.00238,"52":0.00238,"53":0.00238,"54":0.00238,"55":0.00238,"56":0.00476,"57":0.00238,"58":0.00238,"59":0.00238,"60":0.00238,"68":0.00238,"72":0.00238,"73":0.00238,"74":0.00238,"75":0.00238,"76":0.00238,"79":0.01666,"83":0.00476,"87":0.03332,"88":0.00238,"90":0.00476,"91":0.00238,"92":0.00238,"93":0.00714,"94":0.00238,"95":0.00238,"98":0.00476,"99":0.00238,"103":0.01428,"104":0.00476,"106":0.00238,"108":0.01428,"109":0.25466,"110":0.00714,"111":0.00238,"112":0.00238,"113":0.00238,"114":0.0238,"115":0.00238,"116":0.01666,"117":0.00238,"118":0.00238,"119":0.0119,"120":0.0119,"121":0.00714,"122":0.02856,"123":0.00476,"124":0.00952,"125":2.07536,"126":0.0119,"127":0.01428,"128":0.0238,"129":0.00714,"130":0.01428,"131":0.05236,"132":0.01666,"133":0.0238,"134":0.06426,"135":0.05474,"136":0.04046,"137":0.08806,"138":0.16184,"139":0.22848,"140":3.4153,"141":7.88494,"142":0.07378,"143":0.00476,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 61 62 63 64 65 66 67 69 70 71 77 78 80 81 84 85 86 89 96 97 100 101 102 105 107 144 145"},F:{"46":0.00238,"90":0.00238,"91":0.02618,"92":0.0357,"120":0.01904,"121":0.01904,"122":0.21896,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00238,"92":0.00952,"109":0.00476,"114":0.09758,"120":0.00238,"122":0.00476,"126":0.00476,"128":0.00476,"129":0.00476,"130":0.00238,"131":0.00476,"132":0.00476,"133":0.00476,"134":0.0119,"135":0.00476,"136":0.00714,"137":0.00476,"138":0.02142,"139":0.02856,"140":0.44268,"141":1.48512,"142":0.00476,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 121 123 124 125 127"},E:{"14":0.00238,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 16.0 26.2","5.1":0.00238,"13.1":0.00238,"14.1":0.00476,"15.1":0.00238,"15.4":0.00238,"15.5":0.00476,"15.6":0.01666,"16.1":0.00952,"16.2":0.00238,"16.3":0.00952,"16.4":0.00714,"16.5":0.00714,"16.6":0.07616,"17.0":0.00238,"17.1":0.01666,"17.2":0.01666,"17.3":0.00952,"17.4":0.0119,"17.5":0.03094,"17.6":0.07854,"18.0":0.00952,"18.1":0.02142,"18.2":0.01428,"18.3":0.03808,"18.4":0.02618,"18.5-18.6":0.14994,"26.0":0.28084,"26.1":0.00714},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00178,"5.0-5.1":0,"6.0-6.1":0.00714,"7.0-7.1":0.00535,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01605,"10.0-10.2":0.00178,"10.3":0.03033,"11.0-11.2":0.44953,"11.3-11.4":0.0107,"12.0-12.1":0.00357,"12.2-12.5":0.08741,"13.0-13.1":0,"13.2":0.00892,"13.3":0.00357,"13.4-13.7":0.01427,"14.0-14.4":0.03033,"14.5-14.8":0.03211,"15.0-15.1":0.03033,"15.2-15.3":0.02319,"15.4":0.02676,"15.5":0.03033,"15.6-15.8":0.39601,"16.0":0.05352,"16.1":0.0999,"16.2":0.05173,"16.3":0.09276,"16.4":0.02319,"16.5":0.04103,"16.6-16.7":0.5298,"17.0":0.03746,"17.1":0.05708,"17.2":0.04103,"17.3":0.06065,"17.4":0.10703,"17.5":0.18374,"17.6-17.7":0.4638,"18.0":0.10525,"18.1":0.21763,"18.2":0.11773,"18.3":0.37817,"18.4":0.19444,"18.5-18.6":9.91459,"26.0":1.2255,"26.1":0.0446},P:{"22":0.01025,"23":0.01025,"24":0.01025,"25":0.04101,"26":0.0205,"27":0.04101,"28":0.91246,"29":0.06151,_:"4 20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.0205},I:{"0":0.03805,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.48006,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00714,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.06096},Q:{_:"14.9"},O:{"0":0.70104},H:{"0":0},L:{"0":60.03622}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SB.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SB.js deleted file mode 100644 index 4c4e92ca..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SB.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.07396,"140":0.0037,"142":0.01479,"143":0.20709,"144":0.45116,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 141 145 146 147 3.5 3.6"},D:{"41":0.0074,"42":0.0037,"43":0.0037,"45":0.0037,"47":0.0074,"50":0.0074,"53":0.01109,"57":0.0074,"58":0.0037,"60":0.0037,"70":0.01109,"86":0.02589,"89":0.02958,"94":0.01109,"95":0.01109,"103":0.05177,"104":0.0037,"107":0.01479,"108":0.29584,"109":0.11094,"110":0.01109,"111":0.01109,"114":0.03328,"116":0.0037,"119":0.02958,"120":0.02219,"121":0.05917,"122":0.09985,"123":0.0037,"124":0.0037,"125":0.64345,"126":0.0037,"127":0.02958,"128":0.0074,"129":0.02219,"130":0.01479,"131":0.07026,"132":0.01479,"133":0.05177,"134":0.01479,"135":0.0074,"136":0.01849,"137":0.13683,"138":0.14052,"139":0.22928,"140":4.84808,"141":8.15409,"142":0.10724,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 44 46 48 49 51 52 54 55 56 59 61 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 78 79 80 81 83 84 85 87 88 90 91 92 93 96 97 98 99 100 101 102 105 106 112 113 115 117 118 143 144 145"},F:{"88":0.0037,"91":0.01109,"92":0.01109,"120":0.15162,"122":0.97257,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 89 90 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.0074,"15":0.01479,"16":0.02958,"17":0.01479,"18":0.01109,"84":0.0037,"92":0.02958,"100":0.01109,"103":0.01109,"109":0.0037,"114":0.01109,"120":0.0037,"121":0.0037,"122":0.01109,"123":0.0037,"125":0.0037,"127":0.01109,"129":0.01109,"130":0.0037,"131":0.02958,"132":0.02589,"133":0.0037,"134":0.10354,"135":0.09615,"136":0.01849,"137":0.05177,"138":0.17381,"139":0.13683,"140":1.59014,"141":6.8487,_:"12 13 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 104 105 106 107 108 110 111 112 113 115 116 117 118 119 124 126 128 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.4 17.5 18.0 18.1 18.4 26.1 26.2","13.1":0.01109,"15.6":0.05547,"16.6":0.02589,"17.3":0.0037,"17.6":0.03328,"18.2":0.0037,"18.3":0.01109,"18.5-18.6":0.09245,"26.0":0.08505},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00033,"5.0-5.1":0,"6.0-6.1":0.00133,"7.0-7.1":0.001,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00299,"10.0-10.2":0.00033,"10.3":0.00565,"11.0-11.2":0.08369,"11.3-11.4":0.00199,"12.0-12.1":0.00066,"12.2-12.5":0.01627,"13.0-13.1":0,"13.2":0.00166,"13.3":0.00066,"13.4-13.7":0.00266,"14.0-14.4":0.00565,"14.5-14.8":0.00598,"15.0-15.1":0.00565,"15.2-15.3":0.00432,"15.4":0.00498,"15.5":0.00565,"15.6-15.8":0.07373,"16.0":0.00996,"16.1":0.0186,"16.2":0.00963,"16.3":0.01727,"16.4":0.00432,"16.5":0.00764,"16.6-16.7":0.09864,"17.0":0.00697,"17.1":0.01063,"17.2":0.00764,"17.3":0.01129,"17.4":0.01993,"17.5":0.03421,"17.6-17.7":0.08635,"18.0":0.01959,"18.1":0.04052,"18.2":0.02192,"18.3":0.07041,"18.4":0.0362,"18.5-18.6":1.8459,"26.0":0.22816,"26.1":0.0083},P:{"21":0.05191,"23":0.15573,"24":0.01038,"25":0.07267,"26":0.02076,"27":0.16611,"28":1.19392,"29":0.07267,_:"4 20 22 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.05191},I:{"0":0.05035,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":1.29821,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.02681,"11":0.08043,_:"6 7 8 9 5.5"},S:{"2.5":0.06302,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.11974},Q:{"14.9":0.05672},O:{"0":0.6239},H:{"0":0},L:{"0":65.34266}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SC.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SC.js deleted file mode 100644 index afb71dcc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SC.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"59":0.00428,"60":0.02141,"78":0.00428,"114":0.00428,"115":0.06422,"117":0.00856,"118":0.00428,"120":0.01712,"121":0.06422,"124":0.01284,"125":0.02141,"126":0.01284,"127":0.01284,"128":0.35104,"129":0.01284,"130":0.01284,"131":0.01284,"132":0.01284,"133":0.02569,"134":0.02569,"135":0.01284,"136":0.01284,"137":0.01284,"138":0.01284,"139":0.02141,"140":0.06422,"141":0.00428,"142":0.02141,"143":0.18836,"144":0.12415,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 116 119 122 123 145 146 147 3.5 3.6"},D:{"41":0.01712,"45":0.04709,"51":0.00428,"58":0.00856,"59":0.00428,"61":0.00428,"63":0.00428,"64":0.00856,"65":0.01284,"66":0.02141,"67":0.01284,"68":0.00856,"69":0.00428,"70":0.00856,"71":0.00856,"73":0.00856,"78":0.52656,"79":0.00428,"81":0.00428,"83":0.00428,"85":0.00856,"86":0.02569,"87":0.01712,"88":0.00428,"90":0.00856,"94":0.00856,"95":0.00428,"97":0.01284,"98":0.00856,"99":0.00856,"100":0.00428,"101":0.03853,"102":0.00428,"103":0.01712,"104":0.0685,"105":0.01284,"106":0.00428,"107":0.02569,"108":0.00856,"109":0.30823,"111":0.00856,"112":0.02141,"113":0.01284,"114":0.18836,"115":0.02997,"116":0.84336,"117":0.11559,"118":0.15412,"119":0.08562,"120":0.81767,"121":0.07278,"122":0.04281,"123":0.44522,"124":0.10274,"125":0.23546,"126":0.10274,"127":0.07706,"128":0.30823,"129":0.3382,"130":0.49232,"131":0.82623,"132":0.4281,"133":0.44094,"134":0.55653,"135":0.44522,"136":0.29967,"137":0.53941,"138":1.01032,"139":8.24949,"140":2.51723,"141":5.76651,"142":0.03853,"143":0.02569,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 43 44 46 47 48 49 50 52 53 54 55 56 57 60 62 72 74 75 76 77 80 84 89 91 92 93 96 110 144 145"},F:{"91":0.00428,"92":0.01284,"100":0.01712,"101":0.01712,"102":0.02569,"103":0.01712,"104":0.01284,"105":0.02569,"106":0.02141,"107":0.01712,"108":0.00856,"109":0.01284,"110":0.01712,"111":0.01712,"112":0.01712,"113":0.02141,"114":0.03425,"115":0.01712,"116":0.02141,"117":0.02141,"118":0.02569,"119":0.02997,"120":0.03425,"121":0.03853,"122":0.09418,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 95 96 97 98 99 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00428,"100":0.00428,"106":0.00428,"113":0.00428,"114":0.01284,"116":0.00428,"118":0.00428,"119":0.04709,"120":0.17124,"122":0.00428,"123":0.01284,"125":0.00428,"126":0.00428,"127":0.00428,"128":0.13699,"129":0.1798,"130":0.1798,"131":0.30395,"132":0.18836,"133":0.13699,"134":0.23546,"135":0.25258,"136":0.16268,"137":0.19693,"138":0.35532,"139":0.30395,"140":0.4281,"141":1.39989,"142":0.00856,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 107 108 109 110 111 112 115 117 121 124"},E:{"14":0.00856,"15":0.00428,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 10.1 11.1 12.1 15.1 15.2-15.3 26.2","9.1":0.25258,"13.1":0.00428,"14.1":0.00856,"15.4":0.00856,"15.5":0.00856,"15.6":0.07706,"16.0":0.00428,"16.1":0.00428,"16.2":0.00428,"16.3":0.05137,"16.4":0.00428,"16.5":0.01284,"16.6":0.05565,"17.0":0.00856,"17.1":0.12415,"17.2":0.03853,"17.3":0.00428,"17.4":0.02569,"17.5":0.01712,"17.6":0.02141,"18.0":0.01712,"18.1":0.00428,"18.2":0.00428,"18.3":0.04281,"18.4":0.02141,"18.5-18.6":0.08562,"26.0":0.14127,"26.1":0.00856},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00063,"5.0-5.1":0,"6.0-6.1":0.00251,"7.0-7.1":0.00188,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00564,"10.0-10.2":0.00063,"10.3":0.01066,"11.0-11.2":0.15795,"11.3-11.4":0.00376,"12.0-12.1":0.00125,"12.2-12.5":0.03071,"13.0-13.1":0,"13.2":0.00313,"13.3":0.00125,"13.4-13.7":0.00501,"14.0-14.4":0.01066,"14.5-14.8":0.01128,"15.0-15.1":0.01066,"15.2-15.3":0.00815,"15.4":0.0094,"15.5":0.01066,"15.6-15.8":0.13915,"16.0":0.0188,"16.1":0.0351,"16.2":0.01818,"16.3":0.03259,"16.4":0.00815,"16.5":0.01442,"16.6-16.7":0.18616,"17.0":0.01316,"17.1":0.02006,"17.2":0.01442,"17.3":0.02131,"17.4":0.03761,"17.5":0.06456,"17.6-17.7":0.16297,"18.0":0.03698,"18.1":0.07647,"18.2":0.04137,"18.3":0.13288,"18.4":0.06832,"18.5-18.6":3.48377,"26.0":0.43061,"26.1":0.01567},P:{"20":0.02048,"21":0.11265,"22":0.12289,"23":0.20481,"24":0.07168,"25":0.06144,"26":0.10241,"27":0.20481,"28":2.1198,"29":0.12289,_:"4 5.0-5.4 8.2 9.2 10.1 12.0 16.0","6.2-6.4":0.01024,"7.2-7.4":0.03072,"11.1-11.2":0.01024,"13.0":0.02048,"14.0":0.01024,"15.0":0.01024,"17.0":0.01024,"18.0":0.02048,"19.0":0.01024},I:{"0":0.09709,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":1.18383,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.40241,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":1.29249},Q:{"14.9":0.10866},O:{"0":0.41749},H:{"0":0},L:{"0":49.75618}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SD.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SD.js deleted file mode 100644 index a0ccb1ba..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SD.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"47":0.00266,"48":0.00266,"57":0.00266,"72":0.00266,"81":0.00266,"115":0.05045,"127":0.00531,"128":0.00266,"132":0.00266,"134":0.00266,"139":0.00266,"140":0.00531,"141":0.00531,"142":0.01062,"143":0.14868,"144":0.1593,"145":0.00266,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 49 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 133 135 136 137 138 146 147 3.5 3.6"},D:{"37":0.12213,"43":0.03717,"48":0.00266,"50":0.00266,"58":0.00266,"61":0.00266,"64":0.00266,"68":0.01062,"70":0.02921,"71":0.00797,"76":0.00266,"78":0.0239,"79":0.01328,"80":0.00266,"83":0.00266,"84":0.00266,"85":0.00266,"86":0.00266,"87":0.00266,"88":0.00531,"89":0.00531,"91":0.01328,"92":0.00266,"94":0.00266,"95":0.00266,"96":0.00266,"97":0.00266,"101":0.00266,"102":0.00266,"103":0.00531,"104":0.01859,"105":0.00531,"106":0.00266,"108":0.00266,"109":0.09293,"110":0.00266,"111":0.02655,"112":0.00266,"114":0.01328,"116":0.00531,"117":0.00266,"118":0.00797,"119":0.00531,"120":0.00266,"121":0.00531,"122":0.00531,"123":0.00797,"124":0.00266,"125":0.03717,"126":0.02655,"127":0.01062,"129":0.00531,"130":0.00797,"131":0.03983,"132":0.01062,"133":0.00797,"134":0.04779,"135":0.00797,"136":0.0239,"137":0.0239,"138":0.11151,"139":0.06107,"140":0.48321,"141":0.75137,"142":0.01328,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 39 40 41 42 44 45 46 47 49 51 52 53 54 55 56 57 59 60 62 63 65 66 67 69 72 73 74 75 77 81 90 93 98 99 100 107 113 115 128 143 144 145"},F:{"49":0.00266,"79":0.00266,"83":0.00531,"86":0.00797,"87":0.00266,"88":0.00266,"89":0.03983,"90":0.0531,"91":0.3425,"92":0.44339,"93":0.00531,"95":0.00531,"119":0.00266,"120":0.01593,"121":0.00266,"122":0.11948,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 84 85 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00266,"13":0.00266,"18":0.01062,"84":0.00531,"89":0.00531,"90":0.00531,"92":0.03186,"100":0.00531,"109":0.00266,"114":0.00266,"122":0.01062,"124":0.00266,"130":0.00266,"131":0.00266,"133":0.00266,"134":0.00266,"136":0.00266,"137":0.00266,"138":0.00797,"139":0.01859,"140":0.1062,"141":0.33453,"142":0.00266,_:"14 15 16 17 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 125 126 127 128 129 132 135"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.3 17.4 17.5 18.0 18.1 18.2 18.3 18.4 18.5-18.6 26.1 26.2","5.1":0.03452,"13.1":0.00266,"16.6":0.00266,"17.6":0.00266,"26.0":0.02124},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00013,"5.0-5.1":0,"6.0-6.1":0.0005,"7.0-7.1":0.00038,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00113,"10.0-10.2":0.00013,"10.3":0.00214,"11.0-11.2":0.03165,"11.3-11.4":0.00075,"12.0-12.1":0.00025,"12.2-12.5":0.00615,"13.0-13.1":0,"13.2":0.00063,"13.3":0.00025,"13.4-13.7":0.001,"14.0-14.4":0.00214,"14.5-14.8":0.00226,"15.0-15.1":0.00214,"15.2-15.3":0.00163,"15.4":0.00188,"15.5":0.00214,"15.6-15.8":0.02788,"16.0":0.00377,"16.1":0.00703,"16.2":0.00364,"16.3":0.00653,"16.4":0.00163,"16.5":0.00289,"16.6-16.7":0.0373,"17.0":0.00264,"17.1":0.00402,"17.2":0.00289,"17.3":0.00427,"17.4":0.00754,"17.5":0.01294,"17.6-17.7":0.03266,"18.0":0.00741,"18.1":0.01532,"18.2":0.00829,"18.3":0.02663,"18.4":0.01369,"18.5-18.6":0.69808,"26.0":0.08629,"26.1":0.00314},P:{"4":0.09061,"20":0.01007,"21":0.02013,"22":0.07047,"23":0.0604,"24":0.12081,"25":0.15101,"26":0.31209,"27":0.33223,"28":1.09735,"29":0.0604,_:"5.0-5.4 8.2 9.2 10.1 12.0 15.0","6.2-6.4":0.02013,"7.2-7.4":0.12081,"11.1-11.2":0.01007,"13.0":0.01007,"14.0":0.02013,"16.0":0.0302,"17.0":0.01007,"18.0":0.01007,"19.0":0.05034},I:{"0":0.25672,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00005,"4.4":0,"4.4.3-4.4.4":0.00013},K:{"0":5.54662,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00531,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.17628},Q:{_:"14.9"},O:{"0":0.48477},H:{"0":0.3},L:{"0":84.51104}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SE.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SE.js deleted file mode 100644 index e0a790c5..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SE.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.01004,"59":0.00502,"60":0.01004,"78":0.01004,"91":0.00502,"102":0.00502,"104":0.00502,"115":0.16573,"128":0.74326,"133":0.00502,"134":0.00502,"136":0.01004,"137":0.00502,"138":0.00502,"139":0.01004,"140":0.11048,"141":0.01004,"142":0.03515,"143":0.89894,"144":0.81859,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 103 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 135 145 146 147 3.5 3.6"},D:{"39":0.00502,"40":0.00502,"41":0.01004,"42":0.00502,"43":0.00502,"44":0.01004,"45":0.01004,"46":0.00502,"47":0.00502,"48":0.01004,"49":0.01507,"50":0.00502,"51":0.00502,"52":0.01507,"53":0.00502,"54":0.00502,"55":0.00502,"56":0.00502,"57":0.01004,"58":0.01004,"59":0.00502,"60":0.00502,"66":0.02009,"79":0.03515,"80":0.02511,"87":0.02511,"88":0.02009,"91":0.00502,"92":0.00502,"93":0.00502,"101":0.00502,"102":0.00502,"103":0.12555,"104":0.00502,"108":0.01507,"109":0.32141,"111":0.00502,"112":0.21092,"113":0.02009,"114":0.01507,"115":0.00502,"116":0.13559,"117":0.00502,"118":0.19586,"119":0.01507,"120":0.02511,"121":0.02009,"122":0.06026,"123":0.02009,"124":0.03515,"125":0.30132,"126":0.13057,"127":0.01004,"128":0.07533,"129":0.01507,"130":0.38669,"131":0.06529,"132":0.07533,"133":0.12555,"134":0.05524,"135":0.0904,"136":0.15568,"137":0.18079,"138":0.57753,"139":1.3459,"140":9.19528,"141":16.03022,"142":0.22097,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 78 81 83 84 85 86 89 90 94 95 96 97 98 99 100 105 106 107 110 143 144 145"},F:{"89":0.00502,"91":0.00502,"92":0.01507,"95":0.00502,"120":0.07533,"121":0.1607,"122":1.11488,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00502,"92":0.00502,"109":0.05022,"120":0.00502,"122":0.01004,"126":0.00502,"129":0.00502,"130":0.00502,"131":0.01004,"132":0.00502,"134":0.01507,"135":0.00502,"136":0.01004,"137":0.02511,"138":0.04018,"139":0.05022,"140":1.62211,"141":5.82552,"142":0.01004,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 121 123 124 125 127 128 133"},E:{"14":0.01507,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.1 15.2-15.3 26.2","11.1":0.00502,"12.1":0.00502,"13.1":0.0452,"14.1":0.03515,"15.4":0.01004,"15.5":0.01004,"15.6":0.19586,"16.0":0.00502,"16.1":0.02511,"16.2":0.01507,"16.3":0.04018,"16.4":0.02511,"16.5":0.02511,"16.6":0.28123,"17.0":0.01507,"17.1":0.19084,"17.2":0.03013,"17.3":0.02511,"17.4":0.07031,"17.5":0.09542,"17.6":0.28123,"18.0":0.01507,"18.1":0.05022,"18.2":0.02511,"18.3":0.08537,"18.4":0.05022,"18.5-18.6":0.18581,"26.0":0.61268,"26.1":0.02009},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0024,"5.0-5.1":0,"6.0-6.1":0.00959,"7.0-7.1":0.00719,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02158,"10.0-10.2":0.0024,"10.3":0.04076,"11.0-11.2":0.60427,"11.3-11.4":0.01439,"12.0-12.1":0.0048,"12.2-12.5":0.1175,"13.0-13.1":0,"13.2":0.01199,"13.3":0.0048,"13.4-13.7":0.01918,"14.0-14.4":0.04076,"14.5-14.8":0.04316,"15.0-15.1":0.04076,"15.2-15.3":0.03117,"15.4":0.03597,"15.5":0.04076,"15.6-15.8":0.53233,"16.0":0.07194,"16.1":0.13428,"16.2":0.06954,"16.3":0.12469,"16.4":0.03117,"16.5":0.05515,"16.6-16.7":0.71218,"17.0":0.05036,"17.1":0.07673,"17.2":0.05515,"17.3":0.08153,"17.4":0.14387,"17.5":0.24698,"17.6-17.7":0.62345,"18.0":0.14148,"18.1":0.29254,"18.2":0.15826,"18.3":0.50836,"18.4":0.26137,"18.5-18.6":13.32754,"26.0":1.64736,"26.1":0.05995},P:{"4":0.04159,"21":0.02079,"22":0.02079,"23":0.02079,"24":0.02079,"25":0.0104,"26":0.05198,"27":0.05198,"28":3.69069,"29":0.2807,_:"20 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.0104,"7.2-7.4":0.0104},I:{"0":0.02486,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.17921,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01004,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.66207},Q:{_:"14.9"},O:{"0":0.00996},H:{"0":0},L:{"0":22.29666}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SG.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SG.js deleted file mode 100644 index 0088344a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SG.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"78":0.00929,"115":0.00929,"122":0.00929,"143":0.04645,"144":0.04645,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 145 146 147 3.5 3.6"},D:{"105":0.02787,"107":0.00929,"108":0.00929,"109":0.03716,"112":0.00929,"114":0.00929,"117":0.00929,"118":0.00929,"120":0.0929,"121":0.00929,"122":0.11148,"124":0.01858,"125":0.03716,"126":86.9544,"127":0.00929,"128":0.02787,"129":0.02787,"130":0.14864,"131":0.03716,"132":0.02787,"133":0.00929,"134":0.52953,"135":0.00929,"136":0.00929,"137":1.43995,"138":0.02787,"139":0.08361,"140":0.45521,"141":1.08693,"142":0.00929,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 110 111 113 115 116 119 123 143 144 145"},F:{"91":0.00929,"92":0.01858,"120":0.01858,"122":0.08361,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"121":0.08361,"139":0.00929,"140":0.05574,"141":0.22296,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 17.1 17.2 17.3 17.4 17.5 18.0 18.1 18.2 18.3 18.4 26.1 26.2","16.6":0.00929,"17.0":0.01858,"17.6":0.00929,"18.5-18.6":0.00929,"26.0":0.03716},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00013,"5.0-5.1":0,"6.0-6.1":0.00051,"7.0-7.1":0.00038,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00114,"10.0-10.2":0.00013,"10.3":0.00215,"11.0-11.2":0.03185,"11.3-11.4":0.00076,"12.0-12.1":0.00025,"12.2-12.5":0.00619,"13.0-13.1":0,"13.2":0.00063,"13.3":0.00025,"13.4-13.7":0.00101,"14.0-14.4":0.00215,"14.5-14.8":0.00227,"15.0-15.1":0.00215,"15.2-15.3":0.00164,"15.4":0.0019,"15.5":0.00215,"15.6-15.8":0.02806,"16.0":0.00379,"16.1":0.00708,"16.2":0.00367,"16.3":0.00657,"16.4":0.00164,"16.5":0.00291,"16.6-16.7":0.03753,"17.0":0.00265,"17.1":0.00404,"17.2":0.00291,"17.3":0.0043,"17.4":0.00758,"17.5":0.01302,"17.6-17.7":0.03286,"18.0":0.00746,"18.1":0.01542,"18.2":0.00834,"18.3":0.02679,"18.4":0.01378,"18.5-18.6":0.70242,"26.0":0.08682,"26.1":0.00316},P:{"28":0.25083,"29":0.02181,_:"4 20 21 22 23 24 25 26 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":1.84412,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00037,"4.4":0,"4.4.3-4.4.4":0.00092},K:{"0":0.12212,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.03252,"11":0.03252,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.0781},Q:{"14.9":0.00497},O:{"0":0.02911},H:{"0":0},L:{"0":3.75837}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SH.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SH.js deleted file mode 100644 index 5706156a..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SH.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 3.5 3.6"},D:{"135":1.85,"138":0.615,"140":3.085,"141":14.815,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 136 137 139 142 143 144 145"},F:{_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":3.085,"131":0.615,"139":0.615,"140":3.705,"141":14.815,_:"12 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 132 133 134 135 136 137 138 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.4 17.5 17.6 18.0 18.1 18.2 18.3 18.4 18.5-18.6 26.0 26.1 26.2"},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00025,"5.0-5.1":0,"6.0-6.1":0.001,"7.0-7.1":0.00075,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00225,"10.0-10.2":0.00025,"10.3":0.00425,"11.0-11.2":0.063,"11.3-11.4":0.0015,"12.0-12.1":0.0005,"12.2-12.5":0.01225,"13.0-13.1":0,"13.2":0.00125,"13.3":0.0005,"13.4-13.7":0.002,"14.0-14.4":0.00425,"14.5-14.8":0.0045,"15.0-15.1":0.00425,"15.2-15.3":0.00325,"15.4":0.00375,"15.5":0.00425,"15.6-15.8":0.0555,"16.0":0.0075,"16.1":0.014,"16.2":0.00725,"16.3":0.013,"16.4":0.00325,"16.5":0.00575,"16.6-16.7":0.07425,"17.0":0.00525,"17.1":0.008,"17.2":0.00575,"17.3":0.0085,"17.4":0.015,"17.5":0.02575,"17.6-17.7":0.065,"18.0":0.01475,"18.1":0.0305,"18.2":0.0165,"18.3":0.053,"18.4":0.02725,"18.5-18.6":1.3895,"26.0":0.17175,"26.1":0.00625},P:{"28":1.875,_:"4 20 21 22 23 24 25 26 27 29 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":2.5,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":49.915}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SI.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SI.js deleted file mode 100644 index 9f583972..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SI.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"9":0.0058,"52":0.0232,"66":0.0058,"72":0.11598,"77":0.0058,"78":0.0116,"83":0.0174,"95":0.04639,"102":0.0058,"103":0.0058,"108":0.0116,"115":0.71908,"119":0.0058,"122":0.0232,"125":0.029,"126":0.0116,"127":0.0058,"128":0.0232,"132":0.0116,"134":0.0232,"135":0.0116,"136":0.07539,"137":0.0058,"138":0.04059,"139":0.04059,"140":0.08119,"141":0.04059,"142":0.13338,"143":2.63855,"144":2.37179,"145":0.0058,_:"2 3 4 5 6 7 8 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 67 68 69 70 71 73 74 75 76 79 80 81 82 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 104 105 106 107 109 110 111 112 113 114 116 117 118 120 121 123 124 129 130 131 133 146 147 3.5 3.6"},D:{"46":0.0058,"48":0.0058,"49":0.0116,"51":0.0116,"52":0.0058,"53":0.0058,"56":0.0058,"59":0.0058,"62":0.0058,"79":0.05219,"81":0.0232,"83":0.0058,"87":0.029,"91":0.03479,"92":0.0058,"96":0.0058,"98":0.04639,"99":0.0058,"100":0.0116,"102":0.0058,"103":0.0232,"104":0.80026,"108":0.0116,"109":1.03802,"110":0.0058,"111":0.0116,"112":0.71908,"114":0.0232,"115":0.0058,"116":0.04639,"117":0.0058,"119":0.0058,"120":0.0174,"121":0.05219,"122":0.04059,"123":0.0174,"124":0.029,"125":1.55993,"126":0.05799,"127":0.0116,"128":0.05219,"129":0.0232,"130":0.09278,"131":0.23196,"132":0.05799,"133":0.07539,"134":0.07539,"135":0.05799,"136":0.05799,"137":0.06959,"138":0.26096,"139":1.19459,"140":9.06384,"141":19.55423,"142":0.18557,"143":0.0116,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 50 54 55 57 58 60 61 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 84 85 86 88 89 90 93 94 95 97 101 105 106 107 113 118 144 145"},F:{"46":0.0174,"89":0.0058,"91":0.0116,"92":0.03479,"95":0.0174,"120":0.31895,"121":0.13918,"122":1.92527,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.0058,"109":0.0232,"129":0.0232,"131":0.07539,"132":0.0058,"133":0.0058,"134":0.0058,"135":0.05219,"136":0.0058,"137":0.0174,"138":0.029,"139":0.03479,"140":1.06702,"141":4.41884,"142":0.0116,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.5 16.0 26.2","13.1":0.0058,"14.1":0.03479,"15.4":0.0058,"15.6":0.06959,"16.1":0.0058,"16.2":0.0058,"16.3":0.0058,"16.4":0.0058,"16.5":0.0058,"16.6":0.05219,"17.0":0.0116,"17.1":0.03479,"17.2":0.0058,"17.3":0.0058,"17.4":0.0232,"17.5":0.04639,"17.6":0.17977,"18.0":0.0116,"18.1":0.0174,"18.2":0.0058,"18.3":0.029,"18.4":0.0232,"18.5-18.6":0.12758,"26.0":0.52771,"26.1":0.029},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00104,"5.0-5.1":0,"6.0-6.1":0.00417,"7.0-7.1":0.00312,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00937,"10.0-10.2":0.00104,"10.3":0.01771,"11.0-11.2":0.26248,"11.3-11.4":0.00625,"12.0-12.1":0.00208,"12.2-12.5":0.05104,"13.0-13.1":0,"13.2":0.00521,"13.3":0.00208,"13.4-13.7":0.00833,"14.0-14.4":0.01771,"14.5-14.8":0.01875,"15.0-15.1":0.01771,"15.2-15.3":0.01354,"15.4":0.01562,"15.5":0.01771,"15.6-15.8":0.23124,"16.0":0.03125,"16.1":0.05833,"16.2":0.03021,"16.3":0.05416,"16.4":0.01354,"16.5":0.02396,"16.6-16.7":0.30936,"17.0":0.02187,"17.1":0.03333,"17.2":0.02396,"17.3":0.03541,"17.4":0.0625,"17.5":0.10728,"17.6-17.7":0.27082,"18.0":0.06145,"18.1":0.12708,"18.2":0.06875,"18.3":0.22082,"18.4":0.11353,"18.5-18.6":5.78921,"26.0":0.71558,"26.1":0.02604},P:{"4":0.1037,"20":0.01037,"22":0.01037,"23":0.02074,"24":0.05185,"25":0.02074,"26":0.02074,"27":0.08296,"28":2.63399,"29":0.15555,_:"21 6.2-6.4 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.01037,"7.2-7.4":0.04148,"8.2":0.02074},I:{"0":0.02936,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.294,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.4242},Q:{"14.9":0.0042},O:{"0":0.0126},H:{"0":0},L:{"0":30.39419}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SK.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SK.js deleted file mode 100644 index df7c2ee4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SK.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.03023,"78":0.00504,"88":0.00504,"99":0.0252,"115":0.48878,"117":0.00504,"125":0.02016,"127":0.00504,"128":0.0252,"129":0.01512,"130":0.00504,"133":0.01008,"134":0.01008,"135":0.00504,"136":0.02016,"137":0.00504,"138":0.01512,"139":0.01008,"140":0.0907,"141":0.02016,"142":0.09574,"143":2.60516,"144":2.5447,"145":0.00504,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 118 119 120 121 122 123 124 126 131 132 146 147 3.5 3.6"},D:{"34":0.00504,"38":0.00504,"40":0.00504,"41":0.0252,"42":0.00504,"43":0.00504,"44":0.00504,"45":0.00504,"46":0.00504,"47":0.00504,"48":0.00504,"49":0.03527,"51":0.00504,"52":0.00504,"53":0.00504,"54":0.00504,"55":0.00504,"56":0.00504,"57":0.00504,"58":0.00504,"59":0.00504,"60":0.00504,"70":0.00504,"79":0.04535,"81":0.00504,"85":0.00504,"87":0.0252,"94":0.01008,"97":0.00504,"99":0.00504,"102":0.02016,"103":0.02016,"104":0.0252,"106":0.00504,"108":0.0252,"109":1.18417,"111":0.00504,"112":0.77097,"114":0.00504,"115":0.00504,"116":0.0252,"118":0.00504,"119":0.06551,"120":0.02016,"121":0.01008,"122":0.07559,"123":0.01008,"124":0.08566,"125":1.2144,"126":0.08566,"127":0.04031,"128":0.04031,"129":0.03023,"130":0.01512,"131":0.06047,"132":0.04031,"133":0.04535,"134":0.05039,"135":0.05039,"136":0.04535,"137":0.14613,"138":0.25699,"139":0.99268,"140":7.44764,"141":15.31352,"142":0.14613,"143":0.00504,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 39 50 61 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 78 80 83 84 86 88 89 90 91 92 93 95 96 98 100 101 105 107 110 113 117 144 145"},F:{"42":0.01008,"46":0.04031,"82":0.00504,"85":0.00504,"88":0.00504,"89":0.00504,"90":0.00504,"91":0.0252,"92":0.03527,"95":0.08062,"114":0.00504,"117":0.00504,"119":0.00504,"120":0.28218,"121":0.17133,"122":2.09119,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 86 87 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00504,"109":0.0252,"114":0.00504,"122":0.00504,"124":0.00504,"127":0.01512,"131":0.01008,"132":0.00504,"133":0.00504,"134":0.02016,"135":0.00504,"136":0.00504,"137":0.01008,"138":0.01512,"139":0.05039,"140":1.02796,"141":4.13198,"142":0.01008,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 125 126 128 129 130"},E:{"14":0.00504,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 26.2","13.1":0.00504,"14.1":0.01008,"15.4":0.00504,"15.5":0.00504,"15.6":0.07559,"16.0":0.00504,"16.1":0.01008,"16.2":0.00504,"16.3":0.00504,"16.4":0.00504,"16.5":0.00504,"16.6":0.10078,"17.0":0.00504,"17.1":0.05039,"17.2":0.03527,"17.3":0.00504,"17.4":0.03023,"17.5":0.04535,"17.6":0.14109,"18.0":0.02016,"18.1":0.0252,"18.2":0.01008,"18.3":0.05039,"18.4":0.0252,"18.5-18.6":0.13101,"26.0":0.5291,"26.1":0.02016},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00107,"5.0-5.1":0,"6.0-6.1":0.00428,"7.0-7.1":0.00321,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00962,"10.0-10.2":0.00107,"10.3":0.01817,"11.0-11.2":0.26941,"11.3-11.4":0.00641,"12.0-12.1":0.00214,"12.2-12.5":0.05239,"13.0-13.1":0,"13.2":0.00535,"13.3":0.00214,"13.4-13.7":0.00855,"14.0-14.4":0.01817,"14.5-14.8":0.01924,"15.0-15.1":0.01817,"15.2-15.3":0.0139,"15.4":0.01604,"15.5":0.01817,"15.6-15.8":0.23734,"16.0":0.03207,"16.1":0.05987,"16.2":0.031,"16.3":0.05559,"16.4":0.0139,"16.5":0.02459,"16.6-16.7":0.31752,"17.0":0.02245,"17.1":0.03421,"17.2":0.02459,"17.3":0.03635,"17.4":0.06415,"17.5":0.11012,"17.6-17.7":0.27796,"18.0":0.06308,"18.1":0.13043,"18.2":0.07056,"18.3":0.22665,"18.4":0.11653,"18.5-18.6":5.94203,"26.0":0.73447,"26.1":0.02673},P:{"4":0.0416,"20":0.0104,"21":0.0104,"22":0.0104,"23":0.0416,"24":0.0104,"25":0.0312,"26":0.0416,"27":0.0416,"28":1.95533,"29":0.15601,_:"5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","6.2-6.4":0.0104,"7.2-7.4":0.0104},I:{"0":0.03468,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.45641,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00504,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.39192},Q:{_:"14.9"},O:{"0":0.01488},H:{"0":0},L:{"0":39.14867}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SL.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SL.js deleted file mode 100644 index 298ecd28..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SL.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"64":0.00325,"72":0.00325,"78":0.01625,"89":0.00325,"95":0.00325,"112":0.0065,"115":0.06175,"118":0.00325,"125":0.0065,"127":0.0065,"130":0.00325,"137":0.00325,"139":0.0325,"140":0.00325,"141":0.0195,"142":0.03575,"143":0.34125,"144":0.25675,"145":0.00325,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 119 120 121 122 123 124 126 128 129 131 132 133 134 135 136 138 146 147 3.5 3.6"},D:{"42":0.00325,"43":0.00325,"46":0.00325,"47":0.00975,"48":0.01625,"49":0.00325,"50":0.00325,"51":0.00325,"52":0.00325,"55":0.00325,"56":0.00325,"58":0.013,"59":0.00975,"60":0.00325,"62":0.00325,"64":0.00325,"67":0.01625,"68":0.01625,"69":0.0065,"70":0.0325,"71":0.0065,"72":0.02275,"73":0.00325,"74":0.01625,"75":0.091,"76":0.00325,"77":0.065,"78":0.00325,"79":0.08775,"80":0.05525,"81":0.0195,"83":0.0195,"84":0.0065,"86":0.0065,"87":0.013,"88":0.00975,"89":0.00975,"90":0.00325,"91":0.0065,"92":0.00325,"93":0.04875,"94":0.03575,"95":0.00325,"96":0.00975,"98":0.01625,"99":0.0065,"100":0.00975,"103":0.08775,"105":0.00975,"106":0.00975,"108":0.00325,"109":0.12675,"110":0.0065,"111":0.013,"112":0.00325,"113":0.00325,"114":0.00975,"116":0.08775,"118":0.00325,"119":0.039,"120":0.0195,"121":0.0195,"122":0.02275,"123":0.0065,"124":0.0065,"125":0.56225,"126":0.02925,"127":0.00975,"128":0.04225,"129":0.00975,"130":0.0195,"131":0.065,"132":0.00975,"133":0.0325,"134":0.02925,"135":0.05525,"136":0.06825,"137":0.11375,"138":0.27625,"139":0.338,"140":2.86,"141":6.877,"142":0.0715,"143":0.00325,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 44 45 53 54 57 61 63 65 66 85 97 101 102 104 107 115 117 144 145"},F:{"36":0.00325,"42":0.00325,"64":0.00325,"73":0.00325,"79":0.0455,"86":0.0065,"90":0.065,"91":0.0325,"92":0.01625,"95":0.01625,"108":0.01625,"112":0.00325,"113":0.0065,"116":0.0065,"117":0.00975,"119":0.0065,"120":0.24375,"121":0.0065,"122":0.67925,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 65 66 67 68 69 70 71 72 74 75 76 77 78 80 81 82 83 84 85 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 109 110 111 114 115 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.0065,"14":0.013,"15":0.013,"16":0.00325,"17":0.00325,"18":0.0845,"84":0.00325,"88":0.00325,"89":0.00325,"90":0.0325,"92":0.1625,"99":0.01625,"100":0.0065,"107":0.0065,"109":0.00325,"111":0.00975,"114":0.052,"122":0.02275,"126":0.00325,"128":0.0065,"130":0.00325,"131":0.0065,"132":0.013,"133":0.00325,"134":0.0065,"135":0.00325,"136":0.078,"137":0.00325,"138":0.052,"139":0.03575,"140":0.79625,"141":2.59025,"142":0.00975,_:"13 79 80 81 83 85 86 87 91 93 94 95 96 97 98 101 102 103 104 105 106 108 110 112 113 115 116 117 118 119 120 121 123 124 125 127 129"},E:{"14":0.00325,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 12.1 14.1 15.1 15.2-15.3 15.4 16.0 16.2 16.3 16.4 16.5 17.0 18.0 18.2 26.2","10.1":0.00975,"11.1":0.0585,"13.1":0.06825,"15.5":0.00325,"15.6":0.0325,"16.1":0.00325,"16.6":0.0585,"17.1":0.14625,"17.2":0.00325,"17.3":0.00325,"17.4":0.013,"17.5":0.0065,"17.6":0.065,"18.1":0.00325,"18.3":0.0195,"18.4":0.00325,"18.5-18.6":0.039,"26.0":0.091,"26.1":0.00325},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00054,"5.0-5.1":0,"6.0-6.1":0.00214,"7.0-7.1":0.00161,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00482,"10.0-10.2":0.00054,"10.3":0.00911,"11.0-11.2":0.13506,"11.3-11.4":0.00322,"12.0-12.1":0.00107,"12.2-12.5":0.02626,"13.0-13.1":0,"13.2":0.00268,"13.3":0.00107,"13.4-13.7":0.00429,"14.0-14.4":0.00911,"14.5-14.8":0.00965,"15.0-15.1":0.00911,"15.2-15.3":0.00697,"15.4":0.00804,"15.5":0.00911,"15.6-15.8":0.11898,"16.0":0.01608,"16.1":0.03001,"16.2":0.01554,"16.3":0.02787,"16.4":0.00697,"16.5":0.01233,"16.6-16.7":0.15918,"17.0":0.01125,"17.1":0.01715,"17.2":0.01233,"17.3":0.01822,"17.4":0.03216,"17.5":0.0552,"17.6-17.7":0.13935,"18.0":0.03162,"18.1":0.06539,"18.2":0.03537,"18.3":0.11362,"18.4":0.05842,"18.5-18.6":2.97881,"26.0":0.3682,"26.1":0.0134},P:{"4":0.10249,"21":0.0205,"22":0.0205,"23":0.01025,"24":0.14348,"25":0.28696,"26":0.09224,"27":0.21522,"28":0.96338,"29":0.0205,_:"20 8.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","5.0-5.4":0.0205,"6.2-6.4":0.01025,"7.2-7.4":0.0205,"9.2":0.01025,"17.0":0.01025,"19.0":0.01025},I:{"0":0.0337,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":7.54825,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00325,"11":0.0065,_:"6 7 8 9 5.5"},S:{"2.5":0.00675,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.14175},Q:{"14.9":0.00675},O:{"0":0.189},H:{"0":2.03},L:{"0":62.6665}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SM.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SM.js deleted file mode 100644 index 16e8dfaa..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SM.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"78":0.03901,"82":0.00205,"115":0.23815,"125":0.01232,"128":0.04722,"131":0.00205,"140":0.09239,"141":0.01027,"142":0.05543,"143":0.47424,"144":0.4414,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 132 133 134 135 136 137 138 139 145 146 147 3.5 3.6"},D:{"38":0.00205,"39":0.00205,"41":0.00205,"43":0.00205,"44":0.00205,"47":0.00205,"50":0.00205,"51":0.00411,"55":0.00205,"58":0.00205,"79":0.00821,"87":0.00205,"109":0.94643,"115":0.00205,"116":0.08212,"119":0.00205,"120":0.00205,"122":0.00205,"124":0.05133,"125":0.17861,"127":0.00821,"128":0.03901,"129":0.00616,"130":0.07801,"131":0.00205,"134":0.00205,"136":0.01437,"137":0.00821,"138":0.02874,"139":0.07186,"140":4.00746,"141":7.56941,"142":0.05954,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 40 42 45 46 48 49 52 53 54 56 57 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 117 118 121 123 126 132 133 135 143 144 145"},F:{"89":0.04722,"120":0.01232,"121":0.00616,"122":0.19298,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"121":0.00205,"125":0.0698,"140":0.56252,"141":2.19671,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 122 123 124 126 127 128 129 130 131 132 133 134 135 136 137 138 139 142"},E:{"13":0.00616,_:"0 4 5 6 7 8 9 10 11 12 14 15 3.1 3.2 5.1 6.1 7.1 9.1 11.1 15.1 15.4 16.0 16.1 16.2 16.4 16.5 17.2 17.3 18.0 18.1 26.2","10.1":0.00411,"12.1":0.01437,"13.1":0.00616,"14.1":0.02053,"15.2-15.3":0.02874,"15.5":0.00205,"15.6":0.05133,"16.3":0.00411,"16.6":0.03901,"17.0":0.01642,"17.1":0.46603,"17.4":0.02464,"17.5":0.35517,"17.6":0.04927,"18.2":0.04722,"18.3":0.01437,"18.4":0.00411,"18.5-18.6":0.04106,"26.0":0.2053,"26.1":0.1047},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0004,"5.0-5.1":0,"6.0-6.1":0.0016,"7.0-7.1":0.0012,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0036,"10.0-10.2":0.0004,"10.3":0.00681,"11.0-11.2":0.10092,"11.3-11.4":0.0024,"12.0-12.1":0.0008,"12.2-12.5":0.01962,"13.0-13.1":0,"13.2":0.002,"13.3":0.0008,"13.4-13.7":0.0032,"14.0-14.4":0.00681,"14.5-14.8":0.00721,"15.0-15.1":0.00681,"15.2-15.3":0.00521,"15.4":0.00601,"15.5":0.00681,"15.6-15.8":0.08891,"16.0":0.01201,"16.1":0.02243,"16.2":0.01161,"16.3":0.02082,"16.4":0.00521,"16.5":0.00921,"16.6-16.7":0.11894,"17.0":0.00841,"17.1":0.01282,"17.2":0.00921,"17.3":0.01362,"17.4":0.02403,"17.5":0.04125,"17.6-17.7":0.10412,"18.0":0.02363,"18.1":0.04886,"18.2":0.02643,"18.3":0.0849,"18.4":0.04365,"18.5-18.6":2.22586,"26.0":0.27513,"26.1":0.01001},P:{"26":0.01002,"28":70.1769,"29":0.46096,_:"4 20 21 22 23 24 25 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.00793,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.06357},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":5.4414}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SN.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SN.js deleted file mode 100644 index 40d52a63..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SN.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.00353,"78":0.01059,"91":0.00353,"95":0.02471,"99":0.00353,"115":0.18356,"127":0.00706,"128":0.01765,"133":0.00353,"135":0.01059,"136":0.00706,"137":0.00353,"138":0.00706,"139":0.00706,"140":0.0706,"141":0.01059,"142":0.02118,"143":0.80837,"144":0.80131,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 96 97 98 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 134 145 146 147 3.5 3.6"},D:{"39":0.00706,"40":0.00706,"41":0.00353,"42":0.00353,"43":0.00706,"44":0.00706,"45":0.00706,"46":0.00706,"47":0.00706,"48":0.00706,"49":0.00706,"50":0.00706,"51":0.00353,"52":0.00706,"53":0.00353,"54":0.00706,"55":0.00706,"56":0.00706,"57":0.00353,"58":0.00706,"59":0.00353,"60":0.00706,"66":0.00353,"69":0.00353,"70":0.00353,"72":0.00353,"73":0.00706,"74":0.00353,"75":0.00353,"76":0.00353,"77":0.00353,"79":0.02118,"81":0.00353,"83":0.00706,"85":0.00353,"86":0.01765,"87":0.01765,"89":0.00353,"92":0.00353,"93":0.01059,"94":0.00353,"95":0.00353,"98":0.02118,"100":0.00353,"103":0.06001,"104":0.01059,"106":0.00353,"107":0.00353,"108":0.02471,"109":0.44478,"110":0.00706,"112":2.16389,"113":0.00706,"114":0.04236,"116":0.1412,"117":0.00706,"119":0.0353,"120":0.01765,"121":0.01765,"122":0.01412,"123":0.01059,"124":0.00353,"125":4.00655,"126":0.21533,"127":0.00706,"128":0.0706,"129":0.02118,"130":0.00706,"131":0.07413,"132":0.02118,"133":0.01412,"134":0.02118,"135":0.03177,"136":0.02824,"137":0.05295,"138":0.25769,"139":0.32476,"140":3.68885,"141":7.3777,"142":0.07413,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 68 71 78 80 84 88 90 91 96 97 99 101 102 105 111 115 118 143 144 145"},F:{"86":0.00353,"87":0.00353,"91":0.00353,"92":0.01059,"95":0.01059,"114":0.00353,"120":0.06707,"121":0.00353,"122":0.34594,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.01059,"89":0.00353,"90":0.00353,"92":0.02471,"100":0.00353,"109":0.03883,"114":0.15532,"118":0.00353,"122":0.00706,"126":0.00353,"128":0.00353,"129":0.00353,"130":0.01059,"131":0.00353,"132":0.00353,"133":0.01765,"134":0.01059,"135":0.00353,"136":0.00706,"137":0.03883,"138":0.04589,"139":0.06001,"140":0.72718,"141":3.5653,"142":0.00353,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 119 120 121 123 124 125 127"},E:{"13":0.00353,_:"0 4 5 6 7 8 9 10 11 12 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.4 17.0 17.2 26.2","12.1":0.00353,"13.1":0.01765,"14.1":0.01765,"15.6":0.08825,"16.1":0.00706,"16.3":0.00353,"16.5":0.00353,"16.6":0.05295,"17.1":0.02471,"17.3":0.00353,"17.4":0.00353,"17.5":0.01765,"17.6":0.09884,"18.0":0.00706,"18.1":0.00706,"18.2":0.00706,"18.3":0.01059,"18.4":0.02471,"18.5-18.6":0.0706,"26.0":0.24357,"26.1":0.00353},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00125,"5.0-5.1":0,"6.0-6.1":0.005,"7.0-7.1":0.00375,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01125,"10.0-10.2":0.00125,"10.3":0.02125,"11.0-11.2":0.315,"11.3-11.4":0.0075,"12.0-12.1":0.0025,"12.2-12.5":0.06125,"13.0-13.1":0,"13.2":0.00625,"13.3":0.0025,"13.4-13.7":0.01,"14.0-14.4":0.02125,"14.5-14.8":0.0225,"15.0-15.1":0.02125,"15.2-15.3":0.01625,"15.4":0.01875,"15.5":0.02125,"15.6-15.8":0.2775,"16.0":0.0375,"16.1":0.07,"16.2":0.03625,"16.3":0.065,"16.4":0.01625,"16.5":0.02875,"16.6-16.7":0.37125,"17.0":0.02625,"17.1":0.04,"17.2":0.02875,"17.3":0.0425,"17.4":0.075,"17.5":0.12875,"17.6-17.7":0.325,"18.0":0.07375,"18.1":0.1525,"18.2":0.0825,"18.3":0.265,"18.4":0.13625,"18.5-18.6":6.94752,"26.0":0.85875,"26.1":0.03125},P:{"21":0.01021,"22":0.05107,"23":0.04085,"24":0.10213,"25":0.10213,"26":0.11235,"27":0.13277,"28":1.9916,"29":0.13277,_:"4 20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.14299,"17.0":0.02043,"19.0":0.02043},I:{"0":0.06461,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.43349,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.14881},Q:{_:"14.9"},O:{"0":0.01941},H:{"0":0},L:{"0":55.17918}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SO.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SO.js deleted file mode 100644 index 612b7c72..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SO.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"112":0.00959,"115":0.01279,"127":0.0032,"128":0.00639,"129":0.0032,"136":0.00639,"140":0.0032,"141":0.0032,"142":0.00639,"143":0.24937,"144":0.24937,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 123 124 125 126 130 131 132 133 134 135 137 138 139 145 146 147 3.5 3.6"},D:{"39":0.00639,"40":0.00639,"41":0.00639,"42":0.0032,"43":0.00959,"44":0.00639,"45":0.00639,"46":0.00639,"47":0.0032,"48":0.00639,"49":0.00639,"50":0.00639,"51":0.00639,"52":0.00639,"53":0.0032,"54":0.00639,"55":0.00639,"56":0.00639,"57":0.00639,"58":0.00639,"59":0.00639,"60":0.00639,"64":0.00639,"65":0.00959,"68":0.0032,"69":0.00639,"70":0.00639,"71":0.00639,"72":0.01918,"74":0.00639,"78":0.00639,"79":0.02238,"80":0.0032,"83":0.0032,"86":0.0032,"87":0.01918,"88":0.0032,"91":0.01279,"95":0.00639,"96":0.00959,"98":0.00959,"100":0.0032,"101":0.0032,"103":0.01599,"104":0.01918,"105":0.00959,"107":0.0032,"108":0.00959,"109":0.14067,"111":0.00639,"112":0.0032,"114":0.00639,"116":0.02238,"117":0.0032,"118":0.00639,"119":0.05435,"120":0.00639,"121":0.00959,"122":0.00959,"124":0.0032,"125":3.9451,"126":0.01918,"127":0.00639,"128":0.03197,"129":0.0032,"130":0.00959,"131":0.09911,"132":0.01279,"133":0.02558,"134":0.02877,"135":0.05115,"136":0.07353,"137":0.05755,"138":0.27814,"139":0.47316,"140":3.97707,"141":7.41384,"142":0.07993,"143":0.0032,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 66 67 73 75 76 77 81 84 85 89 90 92 93 94 97 99 102 106 110 113 115 123 144 145"},F:{"38":0.0032,"91":0.01599,"92":0.05115,"93":0.0032,"120":0.07673,"121":0.00959,"122":0.5371,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.0032,"16":0.0032,"18":0.01279,"84":0.0032,"89":0.0032,"90":0.00959,"92":0.03197,"100":0.00959,"104":0.0032,"107":0.0032,"109":0.0032,"111":0.01279,"112":0.0032,"114":0.15985,"122":0.00639,"123":0.00639,"126":0.01918,"131":0.01279,"133":0.00639,"134":0.0032,"135":0.0032,"136":0.00959,"137":0.00639,"138":0.01599,"139":0.03517,"140":0.57866,"141":2.06526,"142":0.00959,_:"13 14 15 17 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 105 106 108 110 113 115 116 117 118 119 120 121 124 125 127 128 129 130 132"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 10.1 12.1 14.1 15.1 15.2-15.3 15.4 15.5 16.2 16.3 16.4 16.5 17.2 17.3 17.4 18.0 26.2","5.1":0.0032,"9.1":0.0032,"11.1":0.0032,"13.1":0.00959,"15.6":0.01599,"16.0":0.00639,"16.1":0.0032,"16.6":0.02558,"17.0":0.0032,"17.1":0.00959,"17.5":0.00959,"17.6":0.04156,"18.1":0.00639,"18.2":0.00639,"18.3":0.02558,"18.4":0.02558,"18.5-18.6":0.05115,"26.0":0.12468,"26.1":0.0032},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00067,"5.0-5.1":0,"6.0-6.1":0.00268,"7.0-7.1":0.00201,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00603,"10.0-10.2":0.00067,"10.3":0.01139,"11.0-11.2":0.16884,"11.3-11.4":0.00402,"12.0-12.1":0.00134,"12.2-12.5":0.03283,"13.0-13.1":0,"13.2":0.00335,"13.3":0.00134,"13.4-13.7":0.00536,"14.0-14.4":0.01139,"14.5-14.8":0.01206,"15.0-15.1":0.01139,"15.2-15.3":0.00871,"15.4":0.01005,"15.5":0.01139,"15.6-15.8":0.14874,"16.0":0.0201,"16.1":0.03752,"16.2":0.01943,"16.3":0.03484,"16.4":0.00871,"16.5":0.01541,"16.6-16.7":0.19899,"17.0":0.01407,"17.1":0.02144,"17.2":0.01541,"17.3":0.02278,"17.4":0.0402,"17.5":0.06901,"17.6-17.7":0.1742,"18.0":0.03953,"18.1":0.08174,"18.2":0.04422,"18.3":0.14204,"18.4":0.07303,"18.5-18.6":3.72384,"26.0":0.46029,"26.1":0.01675},P:{"4":0.01021,"21":0.04084,"22":0.03063,"23":0.02042,"24":0.16338,"25":0.13274,"26":0.36759,"27":0.45949,"28":2.67527,"29":0.0919,_:"20 6.2-6.4 8.2 10.1 12.0 13.0 14.0 15.0 17.0 18.0","5.0-5.4":0.01021,"7.2-7.4":0.29612,"9.2":0.01021,"11.1-11.2":0.01021,"16.0":0.01021,"19.0":0.03063},I:{"0":0.05434,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":2.2339,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.0032,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.22447},Q:{"14.9":0.0136},O:{"0":0.36051},H:{"0":0.14},L:{"0":63.02003}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SR.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SR.js deleted file mode 100644 index 2e15f07e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SR.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"4":0.00907,"102":0.00453,"103":0.00453,"115":1.25564,"128":0.00453,"134":0.00453,"136":0.00453,"142":0.0136,"143":1.09699,"144":0.98366,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 135 137 138 139 140 141 145 146 147 3.5 3.6"},D:{"39":0.00907,"40":0.00907,"41":0.00453,"42":0.00907,"43":0.00907,"44":0.00907,"45":0.00453,"46":0.00453,"47":0.00907,"48":0.00453,"49":0.0136,"50":0.00907,"51":0.00907,"52":0.0136,"53":0.00907,"54":0.00907,"55":0.00907,"56":0.00907,"57":0.00907,"58":0.00453,"59":0.00453,"60":0.00907,"67":0.00453,"73":0.00453,"75":0.00453,"79":0.01813,"83":0.01813,"88":0.00907,"92":0.00453,"93":0.00453,"96":0.00907,"98":0.00453,"103":0.02267,"104":0.59836,"109":0.24478,"111":0.04533,"114":0.00453,"116":0.01813,"119":0.0136,"120":0.0136,"123":0.00453,"124":0.06346,"125":7.00349,"126":0.15412,"127":0.00453,"128":0.01813,"129":0.00907,"130":0.05893,"131":0.0136,"132":0.0136,"133":0.00453,"134":0.00907,"135":0.00907,"136":0.00453,"137":0.0544,"138":0.15412,"139":0.30824,"140":4.88204,"141":11.70874,"142":0.19492,"143":0.00907,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 68 69 70 71 72 74 76 77 78 80 81 84 85 86 87 89 90 91 94 95 97 99 100 101 102 105 106 107 108 110 112 113 115 117 118 121 122 144 145"},F:{"91":0.00907,"92":0.10426,"113":0.00453,"118":0.00907,"120":0.10426,"121":0.0272,"122":1.13325,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 115 116 117 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00453,"17":0.00453,"18":0.00453,"92":0.00453,"109":0.00907,"114":0.51676,"122":0.00907,"128":0.00907,"129":0.00453,"133":0.05893,"136":0.00453,"137":0.0136,"138":0.00907,"139":0.0408,"140":1.23298,"141":3.71706,"142":0.00453,_:"13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 126 127 130 131 132 134 135"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.2-15.3 15.4 15.5 16.1 16.2 16.3 16.4 16.5 17.0 17.3 18.0 18.2 18.4 26.1 26.2","13.1":0.4941,"15.6":0.09519,"16.0":0.0136,"16.6":0.14959,"17.1":0.02267,"17.2":0.00453,"17.4":0.0408,"17.5":0.0272,"17.6":0.03173,"18.1":0.00453,"18.3":0.00453,"18.5-18.6":0.04986,"26.0":0.26745},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00096,"5.0-5.1":0,"6.0-6.1":0.00386,"7.0-7.1":0.00289,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00868,"10.0-10.2":0.00096,"10.3":0.0164,"11.0-11.2":0.24316,"11.3-11.4":0.00579,"12.0-12.1":0.00193,"12.2-12.5":0.04728,"13.0-13.1":0,"13.2":0.00482,"13.3":0.00193,"13.4-13.7":0.00772,"14.0-14.4":0.0164,"14.5-14.8":0.01737,"15.0-15.1":0.0164,"15.2-15.3":0.01254,"15.4":0.01447,"15.5":0.0164,"15.6-15.8":0.21421,"16.0":0.02895,"16.1":0.05404,"16.2":0.02798,"16.3":0.05018,"16.4":0.01254,"16.5":0.02219,"16.6-16.7":0.28658,"17.0":0.02026,"17.1":0.03088,"17.2":0.02219,"17.3":0.03281,"17.4":0.0579,"17.5":0.09939,"17.6-17.7":0.25088,"18.0":0.05693,"18.1":0.11772,"18.2":0.06369,"18.3":0.20456,"18.4":0.10518,"18.5-18.6":5.36306,"26.0":0.6629,"26.1":0.02412},P:{"4":0.01037,"21":0.02073,"22":0.0311,"23":0.05183,"24":0.11402,"25":0.14512,"26":0.07256,"27":0.62195,"28":3.89756,"29":0.23841,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.0622,"13.0":0.01037,"19.0":0.01037},I:{"0":0.00546,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.21415,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00907,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.08747},Q:{"14.9":0.27335},O:{"0":0.28428},H:{"0":0.01},L:{"0":45.08009}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ST.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ST.js deleted file mode 100644 index 7a1b7730..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ST.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"69":0.00796,"113":0.00796,"115":0.05973,"126":0.02787,"142":0.01991,"143":0.36236,"144":0.0876,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 125 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 145 146 147 3.5 3.6"},D:{"56":0.05973,"58":0.00796,"68":0.04778,"79":0.04778,"81":0.05973,"83":0.18715,"87":0.11946,"88":0.11946,"98":0.18715,"99":0.00796,"100":0.05973,"102":0.03982,"106":0.01991,"109":0.72472,"112":0.07964,"113":0.04778,"114":0.56943,"115":0.01991,"116":0.05973,"119":0.07964,"120":0.03982,"122":0.05973,"123":0.0876,"124":0.00796,"125":4.4678,"127":0.00796,"128":0.0876,"129":0.00796,"131":0.05973,"134":0.00796,"135":0.04778,"136":0.09955,"137":0.01991,"138":0.57739,"139":0.442,"140":2.67989,"141":5.39959,"142":0.0876,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 57 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 78 80 84 85 86 89 90 91 92 93 94 95 96 97 101 103 104 105 107 108 110 111 117 118 121 126 130 132 133 143 144 145"},F:{"40":0.02787,"67":0.00796,"86":0.10751,"91":0.00796,"95":0.00796,"120":0.03982,"121":1.05125,"122":1.49325,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 87 88 89 90 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.11946,"100":0.00796,"113":0.01991,"114":0.24688,"115":0.00796,"122":0.01991,"131":0.01991,"137":0.01991,"138":0.00796,"139":0.13937,"140":0.38227,"141":3.03428,"142":0.00796,_:"13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 109 110 111 112 116 117 118 119 120 121 123 124 125 126 127 128 129 130 132 133 134 135 136"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.3 17.5 18.0 18.1 18.2 18.3 18.4 26.1 26.2","15.6":0.04778,"16.6":0.05973,"17.4":0.01991,"17.6":0.01991,"18.5-18.6":0.00796,"26.0":0.48182},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00031,"5.0-5.1":0,"6.0-6.1":0.00125,"7.0-7.1":0.00094,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00281,"10.0-10.2":0.00031,"10.3":0.00531,"11.0-11.2":0.07872,"11.3-11.4":0.00187,"12.0-12.1":0.00062,"12.2-12.5":0.01531,"13.0-13.1":0,"13.2":0.00156,"13.3":0.00062,"13.4-13.7":0.0025,"14.0-14.4":0.00531,"14.5-14.8":0.00562,"15.0-15.1":0.00531,"15.2-15.3":0.00406,"15.4":0.00469,"15.5":0.00531,"15.6-15.8":0.06935,"16.0":0.00937,"16.1":0.01749,"16.2":0.00906,"16.3":0.01624,"16.4":0.00406,"16.5":0.00718,"16.6-16.7":0.09278,"17.0":0.00656,"17.1":0.01,"17.2":0.00718,"17.3":0.01062,"17.4":0.01874,"17.5":0.03218,"17.6-17.7":0.08122,"18.0":0.01843,"18.1":0.03811,"18.2":0.02062,"18.3":0.06623,"18.4":0.03405,"18.5-18.6":1.73624,"26.0":0.21461,"26.1":0.00781},P:{"24":0.37012,"25":0.05141,"26":0.04112,"27":0.27759,"28":0.99727,"29":0.04112,_:"4 20 21 22 23 5.0-5.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","6.2-6.4":0.01028,"7.2-7.4":0.10281,"11.1-11.2":0.01028},I:{"0":0.03005,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.19465,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.06019},Q:{_:"14.9"},O:{"0":0.71626},H:{"0":0.01},L:{"0":68.30434}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SV.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SV.js deleted file mode 100644 index b165e3aa..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SV.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"78":0.00459,"112":0.01376,"115":0.11006,"120":0.05045,"122":0.00459,"123":0.00917,"124":0.00459,"128":0.02752,"132":0.00459,"136":0.00917,"137":0.00459,"139":0.01834,"140":0.08255,"141":0.01834,"142":0.02293,"143":0.86675,"144":0.7521,"145":0.00917,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 121 125 126 127 129 130 131 133 134 135 138 146 147 3.5 3.6"},D:{"39":0.00459,"40":0.00459,"41":0.00459,"42":0.00459,"43":0.00917,"44":0.00459,"45":0.00459,"46":0.00459,"47":0.00459,"48":0.00459,"49":0.00917,"50":0.00459,"51":0.00459,"52":0.00459,"53":0.00459,"54":0.00459,"55":0.00459,"56":0.00459,"57":0.00459,"58":0.00459,"59":0.00459,"60":0.00459,"65":0.00459,"75":0.00459,"79":0.02752,"83":0.00459,"87":0.05503,"91":0.00459,"92":0.00459,"93":0.00459,"94":0.00459,"97":0.00917,"99":0.00459,"101":0.00917,"102":0.00459,"103":0.01376,"107":0.00459,"108":0.0321,"109":1.0823,"110":0.00917,"111":0.01834,"112":2.61861,"113":0.00459,"114":0.00459,"115":0.00459,"116":0.02293,"119":0.07796,"120":0.0642,"121":0.00459,"122":0.04127,"123":0.00459,"124":0.01376,"125":4.21912,"126":0.21554,"127":0.02752,"128":0.04586,"129":0.02752,"130":0.00917,"131":0.0642,"132":0.02752,"133":0.05503,"134":0.03669,"135":0.78421,"136":0.03669,"137":0.07796,"138":0.53656,"139":0.60077,"140":5.98014,"141":13.758,"142":0.1972,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 66 67 68 69 70 71 72 73 74 76 77 78 80 81 84 85 86 88 89 90 95 96 98 100 104 105 106 117 118 143 144 145"},F:{"67":0.00459,"91":0.02752,"92":0.02752,"95":0.00459,"117":0.00459,"119":0.00459,"120":0.08713,"121":0.18803,"122":0.97223,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00917,"109":0.02293,"114":0.0642,"124":0.00459,"126":0.00459,"127":0.00459,"129":0.00459,"130":0.00917,"131":0.01376,"133":0.00917,"134":0.05045,"135":0.01834,"136":0.01376,"137":0.01834,"138":0.02293,"139":0.0642,"140":0.94472,"141":3.15058,"142":0.01376,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 125 128 132"},E:{"14":0.00459,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.4 17.2 17.3 18.2 26.2","5.1":0.00459,"13.1":0.00459,"14.1":0.00459,"15.6":0.03669,"16.3":0.00459,"16.5":0.00459,"16.6":0.03669,"17.0":0.00459,"17.1":0.00917,"17.4":0.00917,"17.5":0.00917,"17.6":0.0321,"18.0":0.00459,"18.1":0.01834,"18.3":0.00917,"18.4":0.01834,"18.5-18.6":0.03669,"26.0":0.27975,"26.1":0.00917},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00116,"5.0-5.1":0,"6.0-6.1":0.00466,"7.0-7.1":0.00349,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01047,"10.0-10.2":0.00116,"10.3":0.01978,"11.0-11.2":0.29328,"11.3-11.4":0.00698,"12.0-12.1":0.00233,"12.2-12.5":0.05703,"13.0-13.1":0,"13.2":0.00582,"13.3":0.00233,"13.4-13.7":0.00931,"14.0-14.4":0.01978,"14.5-14.8":0.02095,"15.0-15.1":0.01978,"15.2-15.3":0.01513,"15.4":0.01746,"15.5":0.01978,"15.6-15.8":0.25836,"16.0":0.03491,"16.1":0.06517,"16.2":0.03375,"16.3":0.06052,"16.4":0.01513,"16.5":0.02677,"16.6-16.7":0.34565,"17.0":0.02444,"17.1":0.03724,"17.2":0.02677,"17.3":0.03957,"17.4":0.06983,"17.5":0.11987,"17.6-17.7":0.30259,"18.0":0.06866,"18.1":0.14198,"18.2":0.07681,"18.3":0.24672,"18.4":0.12685,"18.5-18.6":6.46837,"26.0":0.79953,"26.1":0.02909},P:{"4":0.02041,"20":0.03061,"21":0.02041,"22":0.0102,"23":0.0102,"24":0.02041,"25":0.02041,"26":0.03061,"27":0.04081,"28":1.57119,"29":0.10203,"5.0-5.4":0.0102,_:"6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 16.0 17.0 18.0","7.2-7.4":0.04081,"15.0":0.0102,"19.0":0.0102},I:{"0":0.07027,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.27065,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.30313},Q:{_:"14.9"},O:{"0":0.04872},H:{"0":0},L:{"0":44.20653}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SY.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SY.js deleted file mode 100644 index 5289b1ad..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SY.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"43":0.00278,"46":0.00278,"47":0.00278,"48":0.00278,"52":0.00555,"58":0.00278,"66":0.00278,"72":0.00555,"76":0.00278,"81":0.00278,"83":0.00278,"84":0.00278,"94":0.00278,"109":0.00278,"112":0.00278,"115":0.31936,"118":0.00833,"120":0.00278,"127":0.02222,"128":0.00278,"130":0.00278,"138":0.00278,"139":0.00278,"140":0.01666,"141":0.00278,"142":0.01944,"143":0.27492,"144":0.23049,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 49 50 51 53 54 55 56 57 59 60 61 62 63 64 65 67 68 69 70 71 73 74 75 77 78 79 80 82 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 113 114 116 117 119 121 122 123 124 125 126 129 131 132 133 134 135 136 137 145 146 147 3.5 3.6"},D:{"38":0.00278,"43":0.00278,"44":0.00278,"46":0.00278,"47":0.00278,"49":0.01389,"50":0.00278,"55":0.00278,"56":0.00555,"58":0.00555,"59":0.00278,"63":0.00278,"64":0.00278,"65":0.00278,"66":0.00278,"68":0.01389,"69":0.00555,"70":0.03055,"71":0.00833,"72":0.00555,"73":0.01111,"74":0.00278,"75":0.00833,"76":0.00278,"78":0.00555,"79":0.06109,"80":0.00833,"81":0.01389,"83":0.04166,"85":0.00555,"86":0.01111,"87":0.05554,"88":0.00833,"89":0.00555,"90":0.00833,"91":0.00555,"92":0.00833,"93":0.00278,"94":0.01389,"95":0.00278,"96":0.00555,"97":0.01389,"98":0.08331,"99":0.00833,"100":0.00555,"101":0.00555,"102":0.00833,"103":0.03055,"104":0.00555,"105":0.00833,"106":0.00833,"107":0.01666,"108":0.04166,"109":0.88031,"110":0.00278,"111":0.00833,"112":1.68564,"113":0.01944,"114":0.02777,"115":0.00278,"116":0.02499,"117":0.01111,"118":0.00555,"119":0.01944,"120":0.07498,"121":0.00833,"122":0.01666,"123":0.05276,"124":0.02222,"125":0.51375,"126":0.26382,"127":0.01944,"128":0.01944,"129":0.02499,"130":0.03055,"131":0.13885,"132":0.02222,"133":0.02777,"134":0.05554,"135":0.04999,"136":0.08331,"137":0.15551,"138":0.23327,"139":0.23605,"140":1.54401,"141":2.94084,"142":0.03332,"143":0.00278,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 45 48 51 52 53 54 57 60 61 62 67 77 84 144 145"},F:{"46":0.00278,"73":0.00278,"79":0.00555,"85":0.00278,"89":0.00278,"90":0.01389,"91":0.05276,"92":0.04999,"95":0.02499,"120":0.02222,"121":0.01389,"122":0.22494,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 74 75 76 77 78 80 81 82 83 84 86 87 88 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00278,"15":0.00278,"16":0.00278,"17":0.00278,"18":0.00833,"89":0.00555,"90":0.00278,"92":0.03055,"100":0.00555,"109":0.01666,"114":0.19717,"122":0.01111,"124":0.00278,"129":0.00278,"130":0.00278,"131":0.00278,"132":0.00278,"133":0.00278,"134":0.00278,"135":0.00278,"137":0.00278,"138":0.01111,"139":0.01666,"140":0.15829,"141":0.64426,"142":0.00278,_:"13 14 79 80 81 83 84 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 125 126 127 128 136"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.3 16.5 17.0 17.2 17.3 18.0 18.2 26.1 26.2","5.1":0.1333,"11.1":0.00278,"14.1":0.00555,"15.6":0.00833,"16.1":0.00278,"16.4":0.00555,"16.6":0.01389,"17.1":0.00555,"17.4":0.00278,"17.5":0.00833,"17.6":0.01389,"18.1":0.00278,"18.3":0.01666,"18.4":0.00278,"18.5-18.6":0.01389,"26.0":0.01944},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00026,"5.0-5.1":0,"6.0-6.1":0.00104,"7.0-7.1":0.00078,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00234,"10.0-10.2":0.00026,"10.3":0.00442,"11.0-11.2":0.06552,"11.3-11.4":0.00156,"12.0-12.1":0.00052,"12.2-12.5":0.01274,"13.0-13.1":0,"13.2":0.0013,"13.3":0.00052,"13.4-13.7":0.00208,"14.0-14.4":0.00442,"14.5-14.8":0.00468,"15.0-15.1":0.00442,"15.2-15.3":0.00338,"15.4":0.0039,"15.5":0.00442,"15.6-15.8":0.05772,"16.0":0.0078,"16.1":0.01456,"16.2":0.00754,"16.3":0.01352,"16.4":0.00338,"16.5":0.00598,"16.6-16.7":0.07722,"17.0":0.00546,"17.1":0.00832,"17.2":0.00598,"17.3":0.00884,"17.4":0.0156,"17.5":0.02678,"17.6-17.7":0.0676,"18.0":0.01534,"18.1":0.03172,"18.2":0.01716,"18.3":0.05512,"18.4":0.02834,"18.5-18.6":1.44504,"26.0":0.17861,"26.1":0.0065},P:{"4":0.76542,"20":0.02041,"21":0.09185,"22":0.10206,"23":0.07144,"24":0.10206,"25":0.37761,"26":0.19391,"27":0.42864,"28":1.35735,"29":0.02041,"5.0-5.4":0.04082,"6.2-6.4":0.28576,"7.2-7.4":0.27555,"8.2":0.04082,"9.2":0.09185,"10.1":0.02041,"11.1-11.2":0.04082,"12.0":0.02041,"13.0":0.10206,"14.0":0.08165,"15.0":0.05103,"16.0":0.08165,"17.0":0.10206,"18.0":0.02041,"19.0":0.03062},I:{"0":0.10818,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":0.95108,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00555,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.10833},Q:{_:"14.9"},O:{"0":0.59943},H:{"0":0.06},L:{"0":77.56003}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SZ.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SZ.js deleted file mode 100644 index 98b6bb62..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/SZ.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"60":0.00526,"78":0.00263,"80":0.00526,"111":0.01052,"112":0.00526,"113":0.01578,"115":0.10783,"127":0.00526,"137":0.00263,"138":0.09731,"139":0.00263,"140":0.00789,"141":0.00526,"142":0.01052,"143":0.29193,"144":0.24722,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 114 116 117 118 119 120 121 122 123 124 125 126 128 129 130 131 132 133 134 135 136 145 146 147 3.5 3.6"},D:{"11":0.00263,"41":0.00263,"43":0.00263,"44":0.00263,"46":0.00263,"47":0.00263,"48":0.00526,"50":0.00263,"52":0.00263,"54":0.00263,"56":0.01052,"59":0.00263,"60":0.00263,"61":0.00263,"65":0.00789,"69":0.00263,"70":0.00526,"71":0.02104,"73":0.00263,"75":0.00526,"79":0.00526,"86":0.00263,"87":0.00789,"88":0.00789,"93":0.00263,"98":0.00263,"99":0.00263,"100":0.07101,"103":0.00263,"104":0.00263,"106":0.00263,"108":0.00263,"109":0.27352,"110":0.00526,"111":0.12624,"112":0.00263,"114":0.00789,"116":0.02367,"117":0.00263,"118":0.00263,"119":0.01578,"120":0.00526,"122":0.01052,"123":0.00526,"124":0.02104,"125":0.81793,"126":0.03945,"127":0.01052,"128":0.04997,"129":0.01052,"130":0.01315,"131":0.01315,"132":0.02367,"133":0.00526,"134":0.0263,"135":0.03682,"136":0.03945,"137":0.12098,"138":0.61542,"139":0.51022,"140":2.43275,"141":3.66885,"142":0.02893,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 45 49 51 53 55 57 58 62 63 64 66 67 68 72 74 76 77 78 80 81 83 84 85 89 90 91 92 94 95 96 97 101 102 105 107 113 115 121 143 144 145"},F:{"35":0.00263,"40":0.00263,"42":0.00263,"79":0.00263,"88":0.00263,"90":0.01841,"91":0.02104,"92":0.09205,"95":0.0263,"119":0.01315,"120":0.09731,"121":0.05523,"122":0.78374,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 41 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00789,"13":0.00526,"15":0.01578,"16":0.00263,"18":0.01315,"83":0.00263,"84":0.00526,"85":0.00263,"89":0.00526,"90":0.00526,"92":0.04208,"95":0.01052,"109":0.00526,"114":0.02104,"122":0.00526,"123":0.00263,"125":0.00526,"127":0.00263,"130":0.00263,"131":0.00263,"133":0.00263,"134":0.01578,"135":0.02367,"136":0.02367,"137":0.01052,"138":0.0263,"139":0.0263,"140":0.5523,"141":2.34333,_:"14 17 79 80 81 86 87 88 91 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 124 126 128 129 132 142"},E:{"15":0.00526,_:"0 4 5 6 7 8 9 10 11 12 13 14 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.4 16.5 17.0 17.1 17.4 17.5 18.2 26.2","14.1":0.00263,"15.6":0.01315,"16.3":0.00263,"16.6":0.01315,"17.2":0.00526,"17.3":0.00263,"17.6":0.03156,"18.0":0.00789,"18.1":0.00526,"18.3":0.00526,"18.4":0.42869,"18.5-18.6":0.02367,"26.0":0.11835,"26.1":0.02367},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0005,"5.0-5.1":0,"6.0-6.1":0.00202,"7.0-7.1":0.00151,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00454,"10.0-10.2":0.0005,"10.3":0.00857,"11.0-11.2":0.12704,"11.3-11.4":0.00302,"12.0-12.1":0.00101,"12.2-12.5":0.0247,"13.0-13.1":0,"13.2":0.00252,"13.3":0.00101,"13.4-13.7":0.00403,"14.0-14.4":0.00857,"14.5-14.8":0.00907,"15.0-15.1":0.00857,"15.2-15.3":0.00655,"15.4":0.00756,"15.5":0.00857,"15.6-15.8":0.11191,"16.0":0.01512,"16.1":0.02823,"16.2":0.01462,"16.3":0.02621,"16.4":0.00655,"16.5":0.01159,"16.6-16.7":0.14972,"17.0":0.01059,"17.1":0.01613,"17.2":0.01159,"17.3":0.01714,"17.4":0.03025,"17.5":0.05192,"17.6-17.7":0.13107,"18.0":0.02974,"18.1":0.0615,"18.2":0.03327,"18.3":0.10687,"18.4":0.05495,"18.5-18.6":2.80183,"26.0":0.34632,"26.1":0.0126},P:{"4":0.0824,"20":0.0618,"21":0.0309,"22":0.0515,"23":0.0412,"24":0.20599,"25":0.18539,"26":0.13389,"27":0.22659,"28":2.21441,"29":0.103,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 18.0","7.2-7.4":0.69007,"16.0":0.0103,"17.0":0.0515,"19.0":0.0309},I:{"0":0.02208,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":8.84721,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00526,_:"6 7 8 9 10 5.5"},S:{"2.5":0.02211,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.47168},Q:{"14.9":0.02211},O:{"0":0.10318},H:{"0":0.24},L:{"0":65.11424}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TC.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TC.js deleted file mode 100644 index 79c463e0..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TC.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"91":0.00475,"115":2.7675,"139":0.00949,"142":0.00475,"143":0.09494,"144":0.50793,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 140 141 145 146 147 3.5 3.6"},D:{"39":0.01424,"40":0.00475,"41":0.00475,"42":0.01899,"43":0.03323,"44":0.01899,"45":0.00475,"46":0.00949,"47":0.01424,"48":0.00475,"49":0.00475,"50":0.00475,"51":0.00475,"52":0.01424,"53":0.01899,"54":0.00949,"55":0.01424,"56":0.01899,"57":0.01899,"58":0.01899,"59":0.00475,"60":0.00475,"76":0.00949,"79":0.16615,"87":0.01899,"93":0.04272,"95":0.00475,"103":0.03323,"105":0.03323,"109":0.44147,"116":0.11393,"119":0.00949,"121":0.00475,"123":0.00475,"125":7.13474,"126":0.09494,"128":0.07121,"129":0.00475,"131":0.03323,"132":0.00949,"134":0.03323,"135":0.00475,"136":0.05696,"137":0.33229,"138":0.15665,"139":0.39875,"140":6.8072,"141":10.64277,"142":0.11868,"143":0.00475,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 80 81 83 84 85 86 88 89 90 91 92 94 96 97 98 99 100 101 102 104 106 107 108 110 111 112 113 114 115 117 118 120 122 124 127 130 133 144 145"},F:{"120":0.09969,"121":0.03323,"122":0.29431,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00475,"83":0.13292,"92":0.00949,"109":0.00475,"114":0.00475,"132":0.0807,"133":0.00475,"137":0.03323,"138":0.02374,"139":0.13766,"140":1.48106,"141":6.84517,_:"12 13 14 15 16 17 79 80 81 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 134 135 136 142"},E:{"11":0.12817,"14":0.00475,_:"0 4 5 6 7 8 9 10 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 16.1 18.0 26.2","15.4":0.01899,"15.5":0.00475,"15.6":0.15665,"16.0":0.00475,"16.2":0.00475,"16.3":0.01899,"16.4":0.00475,"16.5":0.11868,"16.6":0.09494,"17.0":0.03323,"17.1":0.51268,"17.2":0.00475,"17.3":0.03323,"17.4":0.03323,"17.5":0.01899,"17.6":0.24684,"18.1":0.01424,"18.2":0.00949,"18.3":0.00949,"18.4":0.01424,"18.5-18.6":0.2421,"26.0":1.13928,"26.1":0.01899},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00195,"5.0-5.1":0,"6.0-6.1":0.00779,"7.0-7.1":0.00584,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01752,"10.0-10.2":0.00195,"10.3":0.03309,"11.0-11.2":0.49058,"11.3-11.4":0.01168,"12.0-12.1":0.00389,"12.2-12.5":0.09539,"13.0-13.1":0,"13.2":0.00973,"13.3":0.00389,"13.4-13.7":0.01557,"14.0-14.4":0.03309,"14.5-14.8":0.03504,"15.0-15.1":0.03309,"15.2-15.3":0.02531,"15.4":0.0292,"15.5":0.03309,"15.6-15.8":0.43218,"16.0":0.0584,"16.1":0.10902,"16.2":0.05646,"16.3":0.10123,"16.4":0.02531,"16.5":0.04478,"16.6-16.7":0.57819,"17.0":0.04088,"17.1":0.0623,"17.2":0.04478,"17.3":0.06619,"17.4":0.11681,"17.5":0.20052,"17.6-17.7":0.50616,"18.0":0.11486,"18.1":0.2375,"18.2":0.12849,"18.3":0.41271,"18.4":0.2122,"18.5-18.6":10.8201,"26.0":1.33743,"26.1":0.04867},P:{"4":0.01115,"24":0.03345,"25":0.01115,"27":0.07804,"28":3.13275,"29":0.25642,_:"20 21 22 23 26 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","6.2-6.4":0.0223,"7.2-7.4":0.10034},I:{"0":0.07868,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.61985,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.23113},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":30.45401}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TD.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TD.js deleted file mode 100644 index 12fbd7a8..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TD.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"58":0.00201,"65":0.00201,"79":0.00201,"82":0.00402,"91":0.00201,"93":0.00201,"100":0.00201,"106":0.00201,"115":0.04422,"122":0.00201,"127":0.01206,"128":0.00603,"129":0.00201,"132":0.00201,"136":0.00201,"138":0.00201,"139":0.00201,"140":0.01407,"141":0.00804,"142":0.02211,"143":0.31356,"144":0.35577,"145":0.00603,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 59 60 61 62 63 64 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 87 88 89 90 92 94 95 96 97 98 99 101 102 103 104 105 107 108 109 110 111 112 113 114 116 117 118 119 120 121 123 124 125 126 130 131 133 134 135 137 146 147 3.5 3.6"},D:{"11":0.03417,"58":0.00603,"63":0.00201,"67":0.00201,"69":0.00603,"70":0.00402,"71":0.00402,"77":0.00804,"78":0.00402,"80":0.00603,"86":0.00603,"88":0.00402,"89":0.00201,"90":0.00201,"91":0.02211,"92":0.00402,"94":0.00201,"95":0.00603,"97":0.00603,"98":0.0201,"104":0.00201,"105":0.01206,"106":0.00201,"107":0.00804,"108":0.01407,"109":0.07839,"110":0.00201,"111":0.00201,"114":0.01206,"115":0.00402,"116":0.03417,"117":0.01809,"120":0.03216,"122":0.01407,"123":0.01005,"124":0.00201,"125":0.07236,"126":0.08844,"127":0.00603,"130":0.01407,"131":0.13869,"132":0.01407,"133":0.00201,"134":0.02412,"135":0.0201,"136":0.01005,"137":0.01608,"138":0.12864,"139":0.09246,"140":0.84018,"141":2.12658,"142":0.04221,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 59 60 61 62 64 65 66 68 72 73 74 75 76 79 81 83 84 85 87 93 96 99 100 101 102 103 112 113 118 119 121 128 129 143 144 145"},F:{"40":0.00201,"46":0.00201,"79":0.01206,"89":0.00804,"91":0.07839,"92":0.08643,"95":0.00201,"114":0.00201,"120":0.02211,"121":0.01005,"122":0.19698,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00402,"13":0.00201,"14":0.00201,"16":0.03618,"17":0.01005,"18":0.03015,"84":0.00603,"89":0.00603,"90":0.01809,"92":0.04623,"96":0.00402,"100":0.01206,"110":0.00201,"114":0.00402,"120":0.00201,"122":0.00603,"126":0.00201,"130":0.00201,"132":0.00201,"133":0.00402,"134":0.00201,"135":0.00804,"136":0.01005,"137":0.01809,"138":0.01809,"139":0.02211,"140":0.24723,"141":1.05927,_:"15 79 80 81 83 85 86 87 88 91 93 94 95 97 98 99 101 102 103 104 105 106 107 108 109 111 112 113 115 116 117 118 119 121 123 124 125 127 128 129 131 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.3 18.1 18.4 26.1 26.2","5.1":0.00603,"9.1":0.00201,"15.6":0.00402,"16.6":0.00201,"17.4":0.00804,"17.5":0.00201,"17.6":0.00201,"18.0":0.00402,"18.2":0.01809,"18.3":0.00402,"18.5-18.6":0.00804,"26.0":0.0402},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00028,"5.0-5.1":0,"6.0-6.1":0.00112,"7.0-7.1":0.00084,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00253,"10.0-10.2":0.00028,"10.3":0.00478,"11.0-11.2":0.07087,"11.3-11.4":0.00169,"12.0-12.1":0.00056,"12.2-12.5":0.01378,"13.0-13.1":0,"13.2":0.00141,"13.3":0.00056,"13.4-13.7":0.00225,"14.0-14.4":0.00478,"14.5-14.8":0.00506,"15.0-15.1":0.00478,"15.2-15.3":0.00366,"15.4":0.00422,"15.5":0.00478,"15.6-15.8":0.06244,"16.0":0.00844,"16.1":0.01575,"16.2":0.00816,"16.3":0.01462,"16.4":0.00366,"16.5":0.00647,"16.6-16.7":0.08353,"17.0":0.00591,"17.1":0.009,"17.2":0.00647,"17.3":0.00956,"17.4":0.01687,"17.5":0.02897,"17.6-17.7":0.07312,"18.0":0.01659,"18.1":0.03431,"18.2":0.01856,"18.3":0.05962,"18.4":0.03066,"18.5-18.6":1.56318,"26.0":0.19322,"26.1":0.00703},P:{"20":0.04031,"21":0.01008,"22":0.05038,"23":0.02015,"24":0.48367,"25":0.62475,"26":0.08061,"27":0.67513,"28":2.58968,"29":0.09069,_:"4 5.0-5.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0","6.2-6.4":0.01008,"7.2-7.4":0.04031,"11.1-11.2":0.01008,"18.0":0.01008,"19.0":0.01008},I:{"0":0.38298,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00008,"4.4":0,"4.4.3-4.4.4":0.00019},K:{"0":1.75564,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00402,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.05593},Q:{"14.9":0.02397},O:{"0":0.10387},H:{"0":0.13},L:{"0":81.61644}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TG.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TG.js deleted file mode 100644 index 400c58ed..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TG.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"43":0.00371,"45":0.00371,"46":0.00371,"51":0.00371,"52":0.00371,"60":0.00371,"61":0.00371,"64":0.00371,"65":0.00371,"68":0.00371,"72":0.01112,"79":0.00371,"81":0.00371,"84":0.00371,"92":0.00371,"94":0.00371,"95":0.00371,"102":0.00741,"103":0.00741,"106":0.00371,"112":0.01482,"115":0.35578,"117":0.02224,"121":0.00741,"124":0.00371,"126":0.00371,"127":0.04077,"128":0.00741,"131":0.00371,"136":0.00371,"137":0.00371,"138":0.01482,"139":0.00371,"140":0.06671,"141":0.01853,"142":0.10006,"143":1.07845,"144":1.1711,"145":0.00371,"146":0.00371,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 47 48 49 50 53 54 55 56 57 58 59 62 63 66 67 69 70 71 73 74 75 76 77 78 80 82 83 85 86 87 88 89 90 91 93 96 97 98 99 100 101 104 105 107 108 109 110 111 113 114 116 118 119 120 122 123 125 129 130 132 133 134 135 147 3.5 3.6"},D:{"39":0.00741,"40":0.00741,"41":0.00741,"42":0.00741,"43":0.01112,"44":0.00741,"45":0.00741,"46":0.01112,"47":0.01112,"48":0.01112,"49":0.01112,"50":0.01482,"51":0.00741,"52":0.00741,"53":0.01112,"54":0.00741,"55":0.00741,"56":0.01482,"57":0.00741,"58":0.00741,"59":0.00741,"60":0.00741,"63":0.00371,"64":0.00371,"65":0.00371,"66":0.02224,"69":0.01112,"70":0.02224,"71":0.00371,"72":0.00371,"73":0.02594,"74":0.00371,"75":0.00371,"76":0.02224,"77":0.00741,"78":0.00371,"79":0.00741,"81":0.00371,"83":0.02224,"84":0.01482,"85":0.00371,"86":0.05559,"87":0.01853,"88":0.00371,"89":0.01112,"90":0.00741,"91":0.01482,"93":0.04077,"94":0.00371,"97":0.00741,"98":0.02965,"100":0.00741,"102":0.02224,"103":0.0593,"104":0.3076,"105":0.00371,"106":0.00741,"108":0.00741,"109":1.57134,"111":0.00741,"112":2.69056,"113":0.00371,"114":0.01482,"116":0.08153,"117":0.00741,"118":0.02224,"119":0.0593,"120":0.01853,"121":0.00371,"122":0.02965,"123":0.01112,"124":0.00741,"125":2.11613,"126":0.32613,"127":0.01482,"128":0.02965,"129":0.01482,"130":0.00741,"131":0.14083,"132":0.02965,"133":0.01482,"134":0.03706,"135":0.04077,"136":0.05188,"137":0.11118,"138":0.34466,"139":0.36319,"140":3.36875,"141":6.81904,"142":0.11859,"143":0.01482,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 67 68 80 92 95 96 99 101 107 110 115 144 145"},F:{"36":0.00741,"46":0.00741,"51":0.00371,"79":0.01482,"88":0.00371,"90":0.02965,"91":0.01853,"92":0.03335,"95":0.04447,"113":0.00741,"117":0.00741,"118":0.00741,"119":0.00741,"120":0.29277,"121":0.02594,"122":1.56023,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00741,"13":0.00371,"17":0.01482,"18":0.01482,"84":0.00741,"89":0.01112,"90":0.01482,"92":0.1223,"100":0.02224,"109":0.01112,"114":0.14453,"121":0.00371,"122":0.01112,"124":0.01112,"126":0.00371,"127":0.00371,"131":0.00371,"132":0.00371,"133":0.00741,"134":0.00741,"136":0.00741,"137":0.03706,"138":0.13712,"139":0.05188,"140":0.65967,"141":2.92403,"142":0.00741,_:"14 15 16 79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 123 125 128 129 130 135"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 12.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.1 17.2 17.3 17.4 17.5 18.0 18.1 18.2 18.3 26.1 26.2","5.1":0.00371,"11.1":0.00371,"13.1":0.00741,"15.6":0.10006,"16.6":0.09265,"17.6":0.09636,"18.4":0.00371,"18.5-18.6":0.01853,"26.0":0.20754},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00058,"5.0-5.1":0,"6.0-6.1":0.00233,"7.0-7.1":0.00175,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00524,"10.0-10.2":0.00058,"10.3":0.0099,"11.0-11.2":0.14674,"11.3-11.4":0.00349,"12.0-12.1":0.00116,"12.2-12.5":0.02853,"13.0-13.1":0,"13.2":0.00291,"13.3":0.00116,"13.4-13.7":0.00466,"14.0-14.4":0.0099,"14.5-14.8":0.01048,"15.0-15.1":0.0099,"15.2-15.3":0.00757,"15.4":0.00873,"15.5":0.0099,"15.6-15.8":0.12927,"16.0":0.01747,"16.1":0.03261,"16.2":0.01689,"16.3":0.03028,"16.4":0.00757,"16.5":0.01339,"16.6-16.7":0.17294,"17.0":0.01223,"17.1":0.01863,"17.2":0.01339,"17.3":0.0198,"17.4":0.03494,"17.5":0.05998,"17.6-17.7":0.15139,"18.0":0.03435,"18.1":0.07104,"18.2":0.03843,"18.3":0.12344,"18.4":0.06347,"18.5-18.6":3.23635,"26.0":0.40003,"26.1":0.01456},P:{"4":0.05341,"24":0.01068,"25":0.01068,"26":0.01068,"27":0.01068,"28":0.21365,"29":0.02136,_:"20 21 22 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.02136},I:{"0":0.10687,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00002,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":1.87131,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00371,_:"6 7 8 9 10 5.5"},S:{"2.5":0.0063,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.15108},Q:{"14.9":0.0063},O:{"0":0.11961},H:{"0":0.76},L:{"0":60.32051}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TH.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TH.js deleted file mode 100644 index eb4f7ff0..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TH.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.00297,"78":0.00297,"115":0.06237,"128":0.00297,"135":0.00297,"136":0.00297,"138":0.00297,"140":0.01188,"141":0.00297,"142":0.00891,"143":0.30888,"144":0.30591,"145":0.00297,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 137 139 146 147 3.5 3.6"},D:{"41":0.00297,"43":0.00297,"47":0.00594,"49":0.00297,"50":0.00297,"53":0.00594,"54":0.00297,"55":0.00297,"56":0.00297,"57":0.00297,"58":0.00297,"59":0.00297,"61":0.00594,"62":0.00297,"64":0.00594,"65":0.00594,"67":0.00297,"70":0.00297,"73":0.00297,"74":0.00297,"79":0.03564,"81":0.00297,"83":0.00297,"85":0.00297,"86":0.00297,"87":0.03267,"88":0.00297,"91":0.00594,"93":0.00297,"95":0.02376,"98":0.00891,"99":0.00297,"101":0.01188,"102":0.00891,"103":0.01188,"104":0.08316,"105":0.08019,"106":0.00594,"107":0.00297,"108":0.06237,"109":0.57024,"110":0.00297,"111":0.00891,"112":0.00297,"113":0.01188,"114":0.02673,"115":0.00297,"116":0.01485,"117":0.00297,"118":0.00297,"119":0.01782,"120":0.01188,"121":0.01485,"122":0.02376,"123":0.01485,"124":0.02673,"125":0.42471,"126":0.01782,"127":0.01485,"128":0.03564,"129":0.01782,"130":0.01485,"131":0.04158,"132":0.02673,"133":0.02376,"134":0.01782,"135":0.0297,"136":0.03267,"137":0.03564,"138":0.13959,"139":0.15147,"140":3.4155,"141":8.37837,"142":0.09504,"143":0.01188,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 44 45 46 48 51 52 60 63 66 68 69 71 72 75 76 77 78 80 84 89 90 92 94 96 97 100 144 145"},F:{"46":0.00297,"90":0.00297,"91":0.02079,"92":0.04158,"95":0.00594,"120":0.02079,"121":0.00891,"122":0.18117,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00297,"92":0.00297,"105":0.00297,"108":0.00891,"109":0.00891,"113":0.00297,"114":0.00594,"122":0.00297,"126":0.00594,"127":0.00297,"129":0.00297,"130":0.00297,"131":0.00594,"132":0.00297,"133":0.00297,"134":0.00594,"135":0.00594,"136":0.00594,"137":0.00594,"138":0.01188,"139":0.01782,"140":0.31779,"141":1.62162,"142":0.00594,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 106 107 110 111 112 115 116 117 118 119 120 121 123 124 125 128"},E:{"14":0.00297,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 26.2","13.1":0.00297,"14.1":0.00891,"15.4":0.00297,"15.5":0.00594,"15.6":0.04752,"16.0":0.00297,"16.1":0.01188,"16.2":0.00594,"16.3":0.01485,"16.4":0.00594,"16.5":0.00594,"16.6":0.0594,"17.0":0.00297,"17.1":0.05643,"17.2":0.00891,"17.3":0.00594,"17.4":0.01188,"17.5":0.02376,"17.6":0.04158,"18.0":0.00891,"18.1":0.02079,"18.2":0.00594,"18.3":0.0297,"18.4":0.01485,"18.5-18.6":0.10098,"26.0":0.27621,"26.1":0.00891},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00167,"5.0-5.1":0,"6.0-6.1":0.00666,"7.0-7.1":0.005,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01499,"10.0-10.2":0.00167,"10.3":0.02832,"11.0-11.2":0.4198,"11.3-11.4":0.01,"12.0-12.1":0.00333,"12.2-12.5":0.08163,"13.0-13.1":0,"13.2":0.00833,"13.3":0.00333,"13.4-13.7":0.01333,"14.0-14.4":0.02832,"14.5-14.8":0.02999,"15.0-15.1":0.02832,"15.2-15.3":0.02166,"15.4":0.02499,"15.5":0.02832,"15.6-15.8":0.36982,"16.0":0.04998,"16.1":0.09329,"16.2":0.04831,"16.3":0.08663,"16.4":0.02166,"16.5":0.03832,"16.6-16.7":0.49476,"17.0":0.03498,"17.1":0.05331,"17.2":0.03832,"17.3":0.05664,"17.4":0.09995,"17.5":0.17158,"17.6-17.7":0.43313,"18.0":0.09829,"18.1":0.20324,"18.2":0.10995,"18.3":0.35317,"18.4":0.18158,"18.5-18.6":9.25892,"26.0":1.14445,"26.1":0.04165},P:{"4":0.2098,"20":0.01049,"21":0.02098,"22":0.02098,"23":0.03147,"24":0.03147,"25":0.07343,"26":0.06294,"27":0.14686,"28":2.46509,"29":0.2098,"5.0-5.4":0.01049,_:"6.2-6.4 10.1 12.0 13.0 14.0 15.0 16.0 18.0","7.2-7.4":0.06294,"8.2":0.01049,"9.2":0.02098,"11.1-11.2":0.01049,"17.0":0.01049,"19.0":0.02098},I:{"0":0.02106,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.33036,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00337,"11":0.04712,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.22493},Q:{_:"14.9"},O:{"0":0.24602},H:{"0":0},L:{"0":58.87431}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TJ.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TJ.js deleted file mode 100644 index d195a707..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TJ.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"30":0.00353,"52":0.01058,"115":0.15519,"123":0.00353,"125":0.05291,"127":0.00353,"128":0.00353,"131":0.00353,"134":0.00353,"140":0.02116,"141":0.02116,"142":0.03527,"143":0.37739,"144":0.33154,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 124 126 129 130 132 133 135 136 137 138 139 145 146 147 3.5 3.6"},D:{"35":0.00353,"39":0.00705,"40":0.00705,"41":0.00705,"42":0.00705,"43":0.00353,"44":0.01058,"45":0.01058,"46":0.01058,"47":0.01411,"48":0.01058,"49":0.01764,"50":0.01411,"51":0.01058,"52":0.01058,"53":0.00705,"54":0.01058,"55":0.01411,"56":0.02116,"57":0.01058,"58":0.02116,"59":0.00705,"60":0.01058,"64":0.00353,"65":0.00705,"69":0.00353,"70":0.02116,"71":0.00705,"73":0.00353,"74":0.01058,"76":0.00353,"78":0.01764,"79":0.07054,"80":0.01764,"81":0.00705,"83":0.00353,"84":0.01058,"86":0.01058,"87":0.05996,"88":0.04232,"89":0.02116,"91":0.00705,"93":0.00353,"94":0.00353,"95":0.00705,"96":0.00705,"97":0.00353,"98":0.00353,"99":0.00353,"100":0.00353,"101":0.00353,"102":0.00705,"103":0.00353,"104":0.00353,"105":0.00353,"106":0.01058,"107":0.00705,"108":0.01411,"109":3.67513,"110":0.00353,"111":0.01058,"112":0.01411,"114":0.01764,"116":0.00705,"118":0.00705,"119":0.01411,"120":0.0388,"122":0.03527,"123":0.01764,"124":0.1693,"125":2.17263,"126":0.02116,"127":0.00353,"128":0.0388,"129":0.03174,"130":0.01411,"131":0.08818,"132":0.03527,"133":0.03527,"134":0.08818,"135":0.06349,"136":0.05996,"137":0.05996,"138":0.1834,"139":0.43735,"140":2.7299,"141":6.91645,"142":0.11286,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 61 62 63 66 67 68 72 75 77 85 90 92 113 115 117 121 143 144 145"},F:{"20":0.00353,"36":0.00353,"37":0.00353,"45":0.00353,"73":0.00705,"79":0.02822,"83":0.00353,"84":0.00353,"86":0.00353,"89":0.00353,"90":0.00353,"91":0.02469,"92":0.03174,"95":0.12345,"112":0.00353,"118":0.00705,"120":0.07407,"121":0.00353,"122":0.54316,_:"9 11 12 15 16 17 18 19 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 74 75 76 77 78 80 81 82 85 87 88 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 115 116 117 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.00353,"14":0.00705,"16":0.00353,"17":0.00353,"18":0.01411,"90":0.00353,"92":0.05996,"100":0.01058,"109":0.02116,"112":0.00353,"114":0.25394,"117":0.00353,"119":0.00353,"120":0.01058,"122":0.00705,"125":0.00705,"126":0.00705,"128":0.00705,"130":0.00705,"131":0.02822,"132":0.00353,"133":0.00353,"134":0.00705,"135":0.01764,"136":0.01411,"137":0.01058,"138":0.01058,"139":0.03174,"140":0.38092,"141":1.46018,_:"12 15 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 113 115 116 118 121 123 124 127 129 142"},E:{"14":0.02116,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 16.2 16.3 16.4 16.5 17.0 17.2 26.1 26.2","5.1":0.01764,"14.1":0.01411,"15.2-15.3":0.00353,"15.4":0.00353,"15.5":0.00353,"15.6":0.08112,"16.0":0.00353,"16.1":0.01411,"16.6":0.01411,"17.1":0.00353,"17.3":0.00353,"17.4":0.00705,"17.5":0.01764,"17.6":0.01764,"18.0":0.01058,"18.1":0.00353,"18.2":0.00705,"18.3":0.00353,"18.4":0.00705,"18.5-18.6":0.04585,"26.0":0.07407},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00079,"5.0-5.1":0,"6.0-6.1":0.00316,"7.0-7.1":0.00237,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00711,"10.0-10.2":0.00079,"10.3":0.01344,"11.0-11.2":0.19917,"11.3-11.4":0.00474,"12.0-12.1":0.00158,"12.2-12.5":0.03873,"13.0-13.1":0,"13.2":0.00395,"13.3":0.00158,"13.4-13.7":0.00632,"14.0-14.4":0.01344,"14.5-14.8":0.01423,"15.0-15.1":0.01344,"15.2-15.3":0.01027,"15.4":0.01186,"15.5":0.01344,"15.6-15.8":0.17546,"16.0":0.02371,"16.1":0.04426,"16.2":0.02292,"16.3":0.0411,"16.4":0.01027,"16.5":0.01818,"16.6-16.7":0.23473,"17.0":0.0166,"17.1":0.02529,"17.2":0.01818,"17.3":0.02687,"17.4":0.04742,"17.5":0.08141,"17.6-17.7":0.20549,"18.0":0.04663,"18.1":0.09642,"18.2":0.05216,"18.3":0.16755,"18.4":0.08615,"18.5-18.6":4.39278,"26.0":0.54297,"26.1":0.01976},P:{"4":0.0504,"20":0.01008,"21":0.01008,"22":0.03024,"23":0.02016,"24":0.1008,"25":0.13104,"26":0.06048,"27":0.20161,"28":1.01812,"29":0.06048,_:"5.0-5.4 10.1 14.0 16.0 17.0","6.2-6.4":0.06048,"7.2-7.4":0.07056,"8.2":0.01008,"9.2":0.02016,"11.1-11.2":0.02016,"12.0":0.01008,"13.0":0.02016,"15.0":0.01008,"18.0":0.01008,"19.0":0.01008},I:{"0":0.00646,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":1.40111,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.03229,"11":0.02767,_:"6 7 8 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.07768},Q:{"14.9":0.02589},O:{"0":1.02273},H:{"0":0.01},L:{"0":56.74042}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TL.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TL.js deleted file mode 100644 index d01e6eed..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TL.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"44":0.00486,"47":0.01457,"48":0.00486,"56":0.10681,"57":0.00486,"59":0.00486,"60":0.01457,"63":0.04855,"66":0.04855,"67":0.00971,"72":0.0437,"78":0.08254,"79":0.01942,"84":0.00971,"89":0.00971,"94":0.00971,"95":0.01942,"96":0.00486,"105":0.00971,"112":0.00486,"114":0.03884,"115":0.57775,"121":0.00486,"123":0.01942,"126":0.01942,"127":0.02428,"128":0.00486,"129":0.00486,"130":0.21848,"133":0.00486,"134":0.15051,"136":0.05341,"138":0.00971,"139":0.01942,"140":0.22819,"141":0.03884,"142":0.20877,"143":2.58286,"144":1.78664,"145":0.03399,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 49 50 51 52 53 54 55 58 61 62 64 65 68 69 70 71 73 74 75 76 77 80 81 82 83 85 86 87 88 90 91 92 93 97 98 99 100 101 102 103 104 106 107 108 109 110 111 113 116 117 118 119 120 122 124 125 131 132 135 137 146 147 3.5 3.6"},D:{"11":0.00486,"41":0.00486,"42":0.00971,"46":0.00486,"49":0.01942,"50":0.00486,"53":0.00971,"56":0.00486,"64":0.0437,"68":0.00971,"69":0.00486,"70":0.02428,"71":0.00971,"73":0.00486,"74":0.02428,"78":0.00971,"79":0.02913,"80":0.03884,"81":0.01942,"83":0.00971,"84":0.01942,"87":0.02913,"92":0.00486,"103":0.05826,"104":0.00486,"105":0.00486,"107":0.00971,"108":0.00486,"109":0.8739,"112":0.00486,"113":0.01457,"114":0.02913,"115":0.00486,"116":0.21362,"117":0.00971,"118":0.00971,"119":0.00486,"120":0.03884,"122":0.05826,"123":0.00486,"124":0.01942,"125":0.85448,"126":0.06797,"127":0.0971,"128":0.16022,"129":0.01457,"130":0.03399,"131":0.17478,"132":0.03884,"133":0.12623,"134":0.07768,"135":0.11167,"136":0.1408,"137":0.27674,"138":0.81564,"139":0.86419,"140":7.60779,"141":11.85106,"142":0.03399,_:"4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 43 44 45 47 48 51 52 54 55 57 58 59 60 61 62 63 65 66 67 72 75 76 77 85 86 88 89 90 91 93 94 95 96 97 98 99 100 101 102 106 110 111 121 143 144 145"},F:{"77":0.00971,"83":0.00486,"91":0.01457,"92":0.01457,"95":0.0437,"96":0.00486,"102":0.02913,"118":0.06797,"119":0.00486,"120":0.16022,"121":0.01457,"122":0.5292,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 79 80 81 82 84 85 86 87 88 89 90 93 94 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.02428,"14":0.00486,"16":0.02428,"18":0.01457,"90":0.01457,"92":0.06797,"100":0.02913,"107":0.02428,"109":0.02428,"110":0.00971,"113":0.00971,"114":0.01942,"117":0.00971,"118":0.01457,"122":0.02913,"124":0.00486,"125":0.00486,"126":0.02428,"127":0.00971,"128":0.04855,"131":0.02428,"132":0.00486,"133":0.05826,"134":0.00971,"135":0.01457,"136":0.13109,"137":0.05341,"138":0.11652,"139":0.21848,"140":2.30127,"141":6.49114,"142":0.03399,_:"12 15 17 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 111 112 115 116 119 120 121 123 129 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 15.4 15.5 16.0 16.3 17.0 26.1 26.2","5.1":0.00971,"12.1":0.00486,"13.1":0.02913,"14.1":0.10681,"15.1":0.00486,"15.2-15.3":0.01942,"15.6":0.07768,"16.1":0.00971,"16.2":0.00486,"16.4":0.02428,"16.5":0.02428,"16.6":0.07768,"17.1":0.02428,"17.2":0.08739,"17.3":0.00486,"17.4":0.06797,"17.5":0.02428,"17.6":0.13109,"18.0":0.02913,"18.1":0.06312,"18.2":0.00486,"18.3":0.08739,"18.4":0.03399,"18.5-18.6":0.05341,"26.0":0.1942},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00066,"5.0-5.1":0,"6.0-6.1":0.00265,"7.0-7.1":0.00199,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00597,"10.0-10.2":0.00066,"10.3":0.01128,"11.0-11.2":0.16716,"11.3-11.4":0.00398,"12.0-12.1":0.00133,"12.2-12.5":0.0325,"13.0-13.1":0,"13.2":0.00332,"13.3":0.00133,"13.4-13.7":0.00531,"14.0-14.4":0.01128,"14.5-14.8":0.01194,"15.0-15.1":0.01128,"15.2-15.3":0.00862,"15.4":0.00995,"15.5":0.01128,"15.6-15.8":0.14726,"16.0":0.0199,"16.1":0.03715,"16.2":0.01924,"16.3":0.03449,"16.4":0.00862,"16.5":0.01526,"16.6-16.7":0.19701,"17.0":0.01393,"17.1":0.02123,"17.2":0.01526,"17.3":0.02255,"17.4":0.0398,"17.5":0.06832,"17.6-17.7":0.17246,"18.0":0.03914,"18.1":0.08092,"18.2":0.04378,"18.3":0.14062,"18.4":0.0723,"18.5-18.6":3.68673,"26.0":0.4557,"26.1":0.01658},P:{"21":0.04117,"22":0.05146,"23":0.02058,"24":0.08234,"25":0.1338,"26":0.04117,"27":0.19555,"28":0.6381,"29":0.01029,_:"4 20 5.0-5.4 8.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0 18.0","6.2-6.4":0.01029,"7.2-7.4":0.03088,"9.2":0.01029,"11.1-11.2":0.02058,"19.0":0.02058},I:{"0":0.01542,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.33964,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01942,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.03088},Q:{"14.9":0.00515},O:{"0":0.27274},H:{"0":0},L:{"0":47.09092}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TM.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TM.js deleted file mode 100644 index 62f21df9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TM.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"64":0.03146,"85":1.52581,"102":0.01573,"115":0.11798,"125":3.83812,"143":0.29887,"144":0.20449,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 145 146 147 3.5 3.6"},D:{"46":0.01573,"53":0.01573,"79":0.38539,"80":0.01573,"84":0.05506,"101":0.25955,"103":0.43258,"109":2.87859,"117":0.08652,"120":6.25268,"122":0.4719,"125":1.10897,"126":0.10225,"130":0.05506,"131":2.24153,"132":0.18876,"135":0.03146,"136":0.03146,"137":0.07079,"138":0.1573,"139":0.48763,"140":6.96053,"141":24.96351,"142":0.43258,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 81 83 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 102 104 105 106 107 108 110 111 112 113 114 115 116 118 119 121 123 124 127 128 129 133 134 143 144 145"},F:{"60":0.08652,"90":0.05506,"91":0.05506,"92":0.03146,"95":0.03146,"101":0.01573,"122":0.53482,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 93 94 96 97 98 99 100 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"100":0.03146,"114":0.01573,"117":0.01573,"121":0.1573,"122":0.01573,"136":0.01573,"140":0.51909,"141":1.65165,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 118 119 120 123 124 125 126 127 128 129 130 131 132 133 134 135 137 138 139 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.5 17.0 17.1 17.2 17.3 17.4 17.5 17.6 18.0 18.1 18.2 18.3 18.4 26.2","15.6":0.03146,"16.4":0.01573,"16.6":0.25955,"18.5-18.6":0.3146,"26.0":0.01573,"26.1":0.03146},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00074,"5.0-5.1":0,"6.0-6.1":0.00295,"7.0-7.1":0.00221,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00664,"10.0-10.2":0.00074,"10.3":0.01255,"11.0-11.2":0.18599,"11.3-11.4":0.00443,"12.0-12.1":0.00148,"12.2-12.5":0.03617,"13.0-13.1":0,"13.2":0.00369,"13.3":0.00148,"13.4-13.7":0.0059,"14.0-14.4":0.01255,"14.5-14.8":0.01329,"15.0-15.1":0.01255,"15.2-15.3":0.00959,"15.4":0.01107,"15.5":0.01255,"15.6-15.8":0.16385,"16.0":0.02214,"16.1":0.04133,"16.2":0.0214,"16.3":0.03838,"16.4":0.00959,"16.5":0.01698,"16.6-16.7":0.21921,"17.0":0.0155,"17.1":0.02362,"17.2":0.01698,"17.3":0.02509,"17.4":0.04428,"17.5":0.07602,"17.6-17.7":0.1919,"18.0":0.04355,"18.1":0.09004,"18.2":0.04871,"18.3":0.15647,"18.4":0.08045,"18.5-18.6":4.10219,"26.0":0.50705,"26.1":0.01845},P:{"26":0.03051,"27":0.03051,"28":2.49181,_:"4 20 21 22 23 24 25 29 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.03051},I:{"0":0.03411,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.57976,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.03416},Q:{_:"14.9"},O:{_:"0"},H:{"0":0.65},L:{"0":12.06466}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TN.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TN.js deleted file mode 100644 index 246c96d4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TN.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"51":0.00542,"52":0.01625,"78":0.00542,"101":0.01084,"115":0.16796,"122":0.01625,"123":0.04876,"128":0.01625,"134":0.01084,"136":0.00542,"137":0.00542,"140":0.01625,"141":0.00542,"142":0.01084,"143":0.44428,"144":0.48762,"145":0.00542,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 124 125 126 127 129 130 131 132 133 135 138 139 146 147 3.5 3.6"},D:{"39":0.00542,"40":0.00542,"41":0.01084,"42":0.00542,"43":0.00542,"44":0.00542,"45":0.00542,"46":0.00542,"47":0.01084,"48":0.01625,"49":0.02167,"50":0.01084,"51":0.00542,"52":0.01084,"53":0.01084,"54":0.00542,"55":0.00542,"56":0.01625,"57":0.01084,"58":0.01084,"59":0.01084,"60":0.01084,"65":0.00542,"69":0.00542,"70":0.00542,"72":0.00542,"73":0.01084,"74":0.00542,"75":0.00542,"76":0.00542,"78":0.00542,"79":0.01084,"80":0.00542,"81":0.00542,"83":0.01084,"85":0.01084,"86":0.00542,"87":0.02167,"88":0.00542,"89":0.00542,"90":0.00542,"91":0.01084,"92":0.00542,"95":0.01084,"97":0.00542,"98":0.00542,"99":0.01084,"100":0.00542,"101":0.00542,"102":0.02709,"103":0.01625,"104":0.04876,"105":0.00542,"106":0.00542,"107":0.00542,"108":0.01084,"109":2.29723,"110":0.01084,"112":10.58677,"113":0.00542,"114":0.01625,"116":0.04334,"117":0.00542,"118":0.00542,"119":0.04876,"120":0.03793,"121":0.04876,"122":0.0596,"123":0.01084,"124":0.03793,"125":5.72141,"126":0.84521,"127":0.02167,"128":0.03793,"129":0.02709,"130":0.01625,"131":0.11378,"132":0.04334,"133":0.04334,"134":0.61765,"135":0.12461,"136":0.09211,"137":0.13003,"138":0.2709,"139":0.29799,"140":5.28255,"141":12.9436,"142":0.16796,"143":0.00542,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 66 67 68 71 77 84 93 94 96 111 115 144 145"},F:{"79":0.01625,"82":0.01084,"91":0.00542,"92":0.01084,"95":0.03251,"119":0.00542,"120":0.13003,"121":0.21672,"122":2.09135,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00542,"84":0.00542,"92":0.02167,"100":0.00542,"102":0.01625,"109":0.02709,"113":0.00542,"114":0.08127,"115":0.00542,"116":0.00542,"121":0.01084,"122":0.01625,"125":0.00542,"129":0.00542,"131":0.00542,"132":0.01084,"133":0.00542,"134":0.01084,"135":0.01084,"136":0.01084,"137":0.01084,"138":0.02709,"139":0.02709,"140":0.45511,"141":2.60064,"142":0.00542,_:"12 13 14 15 16 17 79 80 81 83 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 103 104 105 106 107 108 110 111 112 117 118 119 120 123 124 126 127 128 130"},E:{"14":0.00542,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.5 16.1 16.4 26.1 26.2","13.1":0.01084,"14.1":0.02167,"15.1":0.00542,"15.4":0.01084,"15.6":0.03251,"16.0":0.00542,"16.2":0.00542,"16.3":0.00542,"16.5":0.00542,"16.6":0.04876,"17.0":0.00542,"17.1":0.01625,"17.2":0.01084,"17.3":0.02709,"17.4":0.01084,"17.5":0.01084,"17.6":0.04876,"18.0":0.00542,"18.1":0.01084,"18.2":0.00542,"18.3":0.02167,"18.4":0.01084,"18.5-18.6":0.01625,"26.0":0.07585},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00046,"5.0-5.1":0,"6.0-6.1":0.00182,"7.0-7.1":0.00137,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0041,"10.0-10.2":0.00046,"10.3":0.00775,"11.0-11.2":0.11486,"11.3-11.4":0.00273,"12.0-12.1":0.00091,"12.2-12.5":0.02233,"13.0-13.1":0,"13.2":0.00228,"13.3":0.00091,"13.4-13.7":0.00365,"14.0-14.4":0.00775,"14.5-14.8":0.0082,"15.0-15.1":0.00775,"15.2-15.3":0.00593,"15.4":0.00684,"15.5":0.00775,"15.6-15.8":0.10119,"16.0":0.01367,"16.1":0.02553,"16.2":0.01322,"16.3":0.0237,"16.4":0.00593,"16.5":0.01048,"16.6-16.7":0.13538,"17.0":0.00957,"17.1":0.01459,"17.2":0.01048,"17.3":0.0155,"17.4":0.02735,"17.5":0.04695,"17.6-17.7":0.11851,"18.0":0.02689,"18.1":0.05561,"18.2":0.03008,"18.3":0.09663,"18.4":0.04968,"18.5-18.6":2.53339,"26.0":0.31314,"26.1":0.0114},P:{"4":0.06211,"20":0.01035,"21":0.0207,"22":0.0207,"23":0.01035,"24":0.01035,"25":0.04141,"26":0.03106,"27":0.03106,"28":0.79713,"29":0.05176,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 15.0 16.0 18.0","7.2-7.4":0.19669,"14.0":0.01035,"17.0":0.01035,"19.0":0.01035},I:{"0":0.03202,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.14201,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.03161,"9":0.00632,"10":0.00632,"11":0.06953,_:"6 7 5.5"},S:{"2.5":0.00458,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.08246},Q:{_:"14.9"},O:{"0":0.04123},H:{"0":0},L:{"0":44.04538}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TO.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TO.js deleted file mode 100644 index c667ae0d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TO.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"111":0.09724,"115":0.08879,"135":0.02537,"138":0.00846,"140":0.03382,"143":3.46696,"144":3.02725,"145":0.00846,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 136 137 139 141 142 146 147 3.5 3.6"},D:{"43":0.01691,"44":0.00846,"50":0.00846,"56":0.00846,"60":0.02537,"79":0.03382,"87":0.08879,"93":0.01691,"103":0.07188,"107":0.01691,"109":0.05919,"114":0.23677,"116":0.08879,"124":0.00846,"125":0.49045,"126":0.36784,"127":0.00846,"128":0.00846,"130":0.03382,"131":0.00846,"132":0.03382,"133":0.03382,"134":0.03382,"136":0.02537,"137":0.08033,"138":0.1818,"139":0.35092,"140":3.94895,"141":10.95052,"142":0.02537,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 45 46 47 48 49 51 52 53 54 55 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 88 89 90 91 92 94 95 96 97 98 99 100 101 102 104 105 106 108 110 111 112 113 115 117 118 119 120 121 122 123 129 135 143 144 145"},F:{"74":0.00846,"95":0.03382,"120":0.03382,"121":0.00846,"122":0.27059,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"84":0.03382,"109":0.02537,"114":0.1057,"120":0.00846,"122":0.02537,"124":0.07188,"128":0.03382,"130":0.00846,"134":0.01691,"137":0.07188,"138":0.13952,"139":0.27059,"140":1.50517,"141":7.0523,_:"12 13 14 15 16 17 18 79 80 81 83 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 121 123 125 126 127 129 131 132 133 135 136 142"},E:{"13":0.02537,_:"0 4 5 6 7 8 9 10 11 12 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 16.0 16.1 16.2 16.4 16.5 17.0 17.1 17.2 17.3 17.4 17.5 18.0 18.1 18.2 26.2","15.5":0.03382,"15.6":0.00846,"16.3":0.04228,"16.6":0.08879,"17.6":0.13952,"18.3":0.01691,"18.4":0.00846,"18.5-18.6":0.04228,"26.0":0.07188,"26.1":0.00846},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00112,"5.0-5.1":0,"6.0-6.1":0.0045,"7.0-7.1":0.00337,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01012,"10.0-10.2":0.00112,"10.3":0.01911,"11.0-11.2":0.28335,"11.3-11.4":0.00675,"12.0-12.1":0.00225,"12.2-12.5":0.05509,"13.0-13.1":0,"13.2":0.00562,"13.3":0.00225,"13.4-13.7":0.009,"14.0-14.4":0.01911,"14.5-14.8":0.02024,"15.0-15.1":0.01911,"15.2-15.3":0.01462,"15.4":0.01687,"15.5":0.01911,"15.6-15.8":0.24961,"16.0":0.03373,"16.1":0.06297,"16.2":0.03261,"16.3":0.05847,"16.4":0.01462,"16.5":0.02586,"16.6-16.7":0.33394,"17.0":0.02361,"17.1":0.03598,"17.2":0.02586,"17.3":0.03823,"17.4":0.06746,"17.5":0.11581,"17.6-17.7":0.29234,"18.0":0.06634,"18.1":0.13718,"18.2":0.07421,"18.3":0.23837,"18.4":0.12256,"18.5-18.6":6.24934,"26.0":0.77245,"26.1":0.02811},P:{"4":0.01025,"21":0.04102,"23":0.01025,"24":0.04102,"25":0.18458,"27":0.02051,"28":0.564,"29":0.09229,_:"20 22 26 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.38042,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00008,"4.4":0,"4.4.3-4.4.4":0.00019},K:{"0":0.26551,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.01732},Q:{"14.9":0.01732},O:{"0":0.01732},H:{"0":0},L:{"0":49.3659}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TR.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TR.js deleted file mode 100644 index 9c67d7c6..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TR.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"3":0.00272,"52":0.00543,"71":0.00272,"72":0.00272,"115":0.06518,"125":0.00272,"128":0.00272,"133":0.00272,"134":0.00272,"136":0.00272,"138":0.00272,"139":0.00272,"140":0.00815,"141":0.00272,"142":0.00543,"143":0.22814,"144":0.16568,_:"2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 131 132 135 137 145 146 147 3.5 3.6"},D:{"26":0.00272,"29":0.00272,"34":0.00543,"38":0.01358,"39":0.00272,"40":0.00272,"41":0.00272,"42":0.00272,"43":0.00272,"44":0.00272,"45":0.00272,"46":0.00272,"47":0.02988,"48":0.01086,"49":0.01358,"50":0.00543,"51":0.00543,"52":0.00272,"53":0.01086,"54":0.00272,"55":0.00272,"56":0.00543,"57":0.00272,"58":0.00272,"59":0.00272,"60":0.00272,"63":0.00272,"65":0.00272,"66":0.00272,"68":0.00272,"69":0.00272,"70":0.00272,"71":0.00272,"72":0.00272,"73":0.01086,"76":0.00272,"78":0.00272,"79":0.26617,"80":0.00543,"81":0.00272,"83":0.04346,"84":0.00272,"85":0.01358,"86":0.00272,"87":0.23086,"88":0.00543,"91":0.01086,"94":0.01901,"95":0.00272,"96":0.00272,"97":0.00272,"98":0.00272,"99":0.00272,"100":0.00272,"101":0.00543,"102":0.00272,"103":0.01086,"104":0.01358,"106":0.01086,"107":0.00543,"108":0.08963,"109":1.358,"110":0.00272,"111":0.01086,"112":0.00815,"113":0.00543,"114":0.04617,"115":0.00272,"116":0.0163,"117":0.00272,"118":0.00815,"119":0.01358,"120":0.03259,"121":0.00543,"122":0.02444,"123":0.00815,"124":0.02173,"125":1.4422,"126":0.0163,"127":0.00815,"128":0.01901,"129":0.01358,"130":0.01901,"131":0.04889,"132":0.02716,"133":0.03531,"134":0.03259,"135":0.05432,"136":0.03531,"137":0.05432,"138":0.1521,"139":0.16839,"140":3.19673,"141":9.22897,"142":0.10049,"143":0.00272,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 30 31 32 33 35 36 37 61 62 64 67 74 75 77 89 90 92 93 105 144 145"},F:{"32":0.00272,"36":0.00815,"40":0.03531,"46":0.05432,"85":0.00272,"86":0.00272,"90":0.00272,"91":0.03259,"92":0.07605,"95":0.02988,"99":0.00272,"114":0.00272,"119":0.00272,"120":0.17382,"121":0.1874,"122":1.55355,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 33 34 35 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 87 88 89 93 94 96 97 98 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"15":0.00272,"17":0.00815,"18":0.01901,"87":0.00272,"92":0.00815,"109":0.06247,"114":0.03259,"122":0.00272,"128":0.00272,"130":0.00272,"131":0.01086,"132":0.00272,"133":0.00543,"134":0.01086,"135":0.00543,"136":0.00543,"137":0.00815,"138":0.0163,"139":0.01901,"140":0.29061,"141":1.50466,"142":0.00543,_:"12 13 14 16 79 80 81 83 84 85 86 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 126 127 129"},E:{"4":0.00272,"14":0.00272,_:"0 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 15.1 15.2-15.3 16.0 26.2","5.1":0.00272,"12.1":0.00272,"13.1":0.00272,"14.1":0.00815,"15.4":0.00272,"15.5":0.00272,"15.6":0.03259,"16.1":0.00543,"16.2":0.00272,"16.3":0.00543,"16.4":0.00272,"16.5":0.00272,"16.6":0.02988,"17.0":0.00543,"17.1":0.01086,"17.2":0.00272,"17.3":0.00543,"17.4":0.00815,"17.5":0.00815,"17.6":0.02716,"18.0":0.00815,"18.1":0.00815,"18.2":0.00272,"18.3":0.0163,"18.4":0.00815,"18.5-18.6":0.04617,"26.0":0.14395,"26.1":0.00543},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0012,"5.0-5.1":0,"6.0-6.1":0.00481,"7.0-7.1":0.00361,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01082,"10.0-10.2":0.0012,"10.3":0.02043,"11.0-11.2":0.30287,"11.3-11.4":0.00721,"12.0-12.1":0.0024,"12.2-12.5":0.05889,"13.0-13.1":0,"13.2":0.00601,"13.3":0.0024,"13.4-13.7":0.00961,"14.0-14.4":0.02043,"14.5-14.8":0.02163,"15.0-15.1":0.02043,"15.2-15.3":0.01562,"15.4":0.01803,"15.5":0.02043,"15.6-15.8":0.26681,"16.0":0.03606,"16.1":0.0673,"16.2":0.03485,"16.3":0.0625,"16.4":0.01562,"16.5":0.02764,"16.6-16.7":0.35695,"17.0":0.02524,"17.1":0.03846,"17.2":0.02764,"17.3":0.04086,"17.4":0.07211,"17.5":0.12379,"17.6-17.7":0.31248,"18.0":0.07091,"18.1":0.14663,"18.2":0.07932,"18.3":0.25479,"18.4":0.131,"18.5-18.6":6.67994,"26.0":0.82568,"26.1":0.03005},P:{"4":0.2276,"20":0.01035,"21":0.05173,"22":0.02069,"23":0.02069,"24":0.01035,"25":0.05173,"26":0.1138,"27":0.08276,"28":1.81044,"29":0.15518,"5.0-5.4":0.03104,"6.2-6.4":0.03104,"7.2-7.4":0.13449,"8.2":0.01035,_:"9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 18.0","13.0":0.02069,"17.0":0.06207,"19.0":0.01035},I:{"0":0.02182,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":1.11445,_:"10 11 12 11.1 11.5 12.1"},A:{"6":0.00732,"7":0.00366,"8":0.02562,"9":0.00732,"10":0.01464,"11":0.02562,_:"5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.10926},Q:{_:"14.9"},O:{"0":0.07284},H:{"0":0},L:{"0":58.87266}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TT.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TT.js deleted file mode 100644 index 906ef437..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TT.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.07336,"128":0.00564,"135":0.00564,"140":0.01693,"142":0.00564,"143":0.55301,"144":0.41194,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 136 137 138 139 141 145 146 147 3.5 3.6"},D:{"39":0.01693,"40":0.01693,"41":0.03386,"42":0.02257,"43":0.01693,"44":0.02257,"45":0.02257,"46":0.01693,"47":0.01693,"48":0.02257,"49":0.01693,"50":0.01693,"51":0.02257,"52":0.01693,"53":0.05079,"54":0.01693,"55":0.02257,"56":0.02257,"57":0.01693,"58":0.02257,"59":0.02257,"60":0.02257,"77":0.00564,"79":0.01693,"87":0.01129,"91":0.00564,"93":0.01129,"103":0.12415,"104":0.20315,"106":0.00564,"109":0.85774,"112":2.76507,"114":0.00564,"116":0.12979,"119":0.01129,"120":0.01129,"121":0.05079,"122":0.02822,"123":0.00564,"124":0.03386,"125":20.01008,"126":0.32729,"127":0.01129,"128":0.158,"129":0.01129,"130":0.02257,"131":0.03386,"132":0.02822,"133":0.06772,"134":0.01693,"135":0.01693,"136":0.01693,"137":0.82388,"138":0.22008,"139":0.44015,"140":4.57083,"141":12.04216,"142":0.08465,"143":0.00564,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 78 80 81 83 84 85 86 88 89 90 92 94 95 96 97 98 99 100 101 102 105 107 108 110 111 113 115 117 118 144 145"},F:{"91":0.00564,"92":0.00564,"114":0.01129,"118":0.00564,"119":0.00564,"120":0.05643,"121":0.24265,"122":0.98188,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00564,"109":0.02257,"114":0.02257,"117":0.00564,"122":0.00564,"131":0.01129,"132":0.00564,"133":0.00564,"134":0.03386,"136":0.00564,"137":0.00564,"138":0.03386,"139":0.04514,"140":0.72795,"141":3.61152,"142":0.02257,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 118 119 120 121 123 124 125 126 127 128 129 130 135"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 16.0 16.5 17.0 17.2 26.2","13.1":0.03386,"14.1":0.01129,"15.4":0.00564,"15.5":0.00564,"15.6":0.07336,"16.1":0.01129,"16.2":0.01693,"16.3":0.00564,"16.4":0.00564,"16.6":0.10157,"17.1":0.05643,"17.3":0.01129,"17.4":0.02257,"17.5":0.01693,"17.6":0.12979,"18.0":0.03386,"18.1":0.01693,"18.2":0.00564,"18.3":0.04514,"18.4":0.02257,"18.5-18.6":0.08465,"26.0":0.5643,"26.1":0.01129},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00109,"5.0-5.1":0,"6.0-6.1":0.00434,"7.0-7.1":0.00326,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00977,"10.0-10.2":0.00109,"10.3":0.01845,"11.0-11.2":0.2735,"11.3-11.4":0.00651,"12.0-12.1":0.00217,"12.2-12.5":0.05318,"13.0-13.1":0,"13.2":0.00543,"13.3":0.00217,"13.4-13.7":0.00868,"14.0-14.4":0.01845,"14.5-14.8":0.01954,"15.0-15.1":0.01845,"15.2-15.3":0.01411,"15.4":0.01628,"15.5":0.01845,"15.6-15.8":0.24094,"16.0":0.03256,"16.1":0.06078,"16.2":0.03147,"16.3":0.05644,"16.4":0.01411,"16.5":0.02496,"16.6-16.7":0.32234,"17.0":0.02279,"17.1":0.03473,"17.2":0.02496,"17.3":0.0369,"17.4":0.06512,"17.5":0.11179,"17.6-17.7":0.28219,"18.0":0.06403,"18.1":0.13241,"18.2":0.07163,"18.3":0.23009,"18.4":0.1183,"18.5-18.6":6.03226,"26.0":0.74562,"26.1":0.02713},P:{"4":0.15666,"20":0.01044,"21":0.01044,"22":0.01044,"23":0.02089,"24":0.07311,"25":0.01044,"26":0.05222,"27":0.11489,"28":2.88259,"29":0.20888,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 18.0 19.0","7.2-7.4":0.04178,"17.0":0.01044},I:{"0":0.01305,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.13071,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.23528},Q:{_:"14.9"},O:{"0":0.00436},H:{"0":0},L:{"0":31.36022}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TV.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TV.js deleted file mode 100644 index fc51422c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TV.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"143":1.7563,"144":1.7563,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 145 146 147 3.5 3.6"},D:{"95":0.07983,"109":0.36159,"125":0.95798,"131":0.39916,"138":0.15966,"139":0.31933,"140":14.49655,"141":15.01311,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 126 127 128 129 130 132 133 134 135 136 137 142 143 144 145"},F:{"122":0.92042,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"114":0.15966,"140":0.36159,"141":4.83218,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.4 17.5 17.6 18.0 18.1 18.2 18.3 18.4 18.5-18.6 26.1 26.2","26.0":0.2395},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00087,"5.0-5.1":0,"6.0-6.1":0.0035,"7.0-7.1":0.00262,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00787,"10.0-10.2":0.00087,"10.3":0.01486,"11.0-11.2":0.22027,"11.3-11.4":0.00524,"12.0-12.1":0.00175,"12.2-12.5":0.04283,"13.0-13.1":0,"13.2":0.00437,"13.3":0.00175,"13.4-13.7":0.00699,"14.0-14.4":0.01486,"14.5-14.8":0.01573,"15.0-15.1":0.01486,"15.2-15.3":0.01136,"15.4":0.01311,"15.5":0.01486,"15.6-15.8":0.19405,"16.0":0.02622,"16.1":0.04895,"16.2":0.02535,"16.3":0.04545,"16.4":0.01136,"16.5":0.0201,"16.6-16.7":0.25961,"17.0":0.01836,"17.1":0.02797,"17.2":0.0201,"17.3":0.02972,"17.4":0.05245,"17.5":0.09003,"17.6-17.7":0.22727,"18.0":0.05157,"18.1":0.10664,"18.2":0.05769,"18.3":0.18531,"18.4":0.09528,"18.5-18.6":4.85824,"26.0":0.60051,"26.1":0.02185},P:{"28":3.27787,_:"4 20 21 22 23 24 25 26 27 29 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.16442},Q:{_:"14.9"},O:{"0":1.25174},H:{"0":0},L:{"0":43.66862}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TW.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TW.js deleted file mode 100644 index b7fca4ba..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TW.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"14":0.00413,"52":0.01654,"78":0.00413,"112":0.00413,"113":0.00413,"115":0.09095,"120":0.00413,"128":0.00413,"133":0.00413,"135":0.00413,"136":0.0124,"137":0.00413,"139":0.00827,"140":0.0124,"141":0.00413,"142":0.01654,"143":0.57463,"144":0.51675,"145":0.00827,_:"2 3 4 5 6 7 8 9 10 11 12 13 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 114 116 117 118 119 121 122 123 124 125 126 127 129 130 131 132 134 138 146 147 3.5 3.6"},D:{"49":0.00413,"51":0.00413,"53":0.00413,"65":0.00413,"73":0.00413,"75":0.00413,"77":1.45103,"78":0.00413,"79":0.0248,"80":0.00413,"81":0.14882,"83":0.00413,"85":0.01654,"86":0.00827,"87":0.0248,"89":0.00413,"90":0.00413,"91":0.00413,"94":0.00413,"95":0.00827,"96":0.00413,"97":0.00413,"98":0.00413,"101":0.00827,"103":0.01654,"104":0.09922,"105":0.00413,"106":0.00413,"107":0.00827,"108":0.03307,"109":1.21126,"110":0.00827,"111":0.00413,"112":0.00827,"113":0.00413,"114":0.0124,"115":0.0124,"116":0.03307,"117":0.01654,"118":0.0124,"119":0.03307,"120":0.04961,"121":0.0248,"122":0.04547,"123":0.03307,"124":0.03721,"125":0.98803,"126":0.0248,"127":0.0248,"128":0.04961,"129":0.02067,"130":0.07855,"131":0.09508,"132":0.05374,"133":0.05788,"134":0.06614,"135":0.04961,"136":0.05788,"137":0.09508,"138":0.2315,"139":0.54982,"140":6.29608,"141":15.24206,"142":0.15709,"143":0.02067,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 52 54 55 56 57 58 59 60 61 62 63 64 66 67 68 69 70 71 72 74 76 84 88 92 93 99 100 102 144 145"},F:{"28":0.00413,"46":0.0124,"91":0.0124,"92":0.04134,"95":0.01654,"120":0.03721,"121":0.00413,"122":0.10748,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00413,"109":0.04547,"110":0.00413,"113":0.00413,"114":0.00413,"117":0.00413,"118":0.00413,"120":0.00827,"121":0.00413,"122":0.00413,"123":0.00413,"124":0.00413,"125":0.01654,"126":0.00827,"127":0.00413,"128":0.00413,"129":0.00413,"130":0.00413,"131":0.00827,"132":0.00413,"133":0.00827,"134":0.00827,"135":0.00827,"136":0.01654,"137":0.01654,"138":0.02067,"139":0.05374,"140":0.77306,"141":3.49323,"142":0.00827,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 111 112 115 116 119"},E:{"14":0.00827,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.2-15.3 16.0 26.2","12.1":0.00827,"13.1":0.01654,"14.1":0.03307,"15.1":0.00413,"15.4":0.01654,"15.5":0.0124,"15.6":0.11162,"16.1":0.02067,"16.2":0.01654,"16.3":0.04547,"16.4":0.0124,"16.5":0.02067,"16.6":0.1943,"17.0":0.00413,"17.1":0.16123,"17.2":0.00827,"17.3":0.01654,"17.4":0.02894,"17.5":0.04961,"17.6":0.12402,"18.0":0.01654,"18.1":0.02894,"18.2":0.01654,"18.3":0.06614,"18.4":0.03721,"18.5-18.6":0.21083,"26.0":0.33072,"26.1":0.0124},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00255,"5.0-5.1":0,"6.0-6.1":0.0102,"7.0-7.1":0.00765,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02294,"10.0-10.2":0.00255,"10.3":0.04333,"11.0-11.2":0.64229,"11.3-11.4":0.01529,"12.0-12.1":0.0051,"12.2-12.5":0.12489,"13.0-13.1":0,"13.2":0.01274,"13.3":0.0051,"13.4-13.7":0.02039,"14.0-14.4":0.04333,"14.5-14.8":0.04588,"15.0-15.1":0.04333,"15.2-15.3":0.03313,"15.4":0.03823,"15.5":0.04333,"15.6-15.8":0.56583,"16.0":0.07646,"16.1":0.14273,"16.2":0.07391,"16.3":0.13254,"16.4":0.03313,"16.5":0.05862,"16.6-16.7":0.75699,"17.0":0.05352,"17.1":0.08156,"17.2":0.05862,"17.3":0.08666,"17.4":0.15293,"17.5":0.26252,"17.6-17.7":0.66268,"18.0":0.15038,"18.1":0.31095,"18.2":0.16822,"18.3":0.54034,"18.4":0.27782,"18.5-18.6":14.1661,"26.0":1.75101,"26.1":0.06372},P:{"4":0.02122,"20":0.01061,"21":0.03183,"22":0.03183,"23":0.02122,"24":0.03183,"25":0.02122,"26":0.05304,"27":0.13791,"28":2.86436,"29":0.14852,_:"5.0-5.4 6.2-6.4 8.2 9.2 11.1-11.2 12.0 14.0 18.0","7.2-7.4":0.01061,"10.1":0.01061,"13.0":0.02122,"15.0":0.01061,"16.0":0.01061,"17.0":0.02122,"19.0":0.03183},I:{"0":0.01172,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.21704,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.03625,"11":0.12084,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.26397},Q:{"14.9":0.02933},O:{"0":0.08212},H:{"0":0},L:{"0":32.20719}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TZ.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TZ.js deleted file mode 100644 index e81444d0..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/TZ.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"47":0.0024,"65":0.0024,"67":0.0024,"68":0.0024,"72":0.00719,"90":0.0024,"96":0.0024,"103":0.00479,"109":0.0024,"112":0.00479,"115":0.07191,"116":0.0024,"127":0.01678,"128":0.00959,"134":0.0024,"135":0.0024,"136":0.01199,"137":0.0024,"138":0.00479,"139":0.0024,"140":0.01678,"141":0.00719,"142":0.01678,"143":0.55131,"144":0.43386,"145":0.01438,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 66 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 91 92 93 94 95 97 98 99 100 101 102 104 105 106 107 108 110 111 113 114 117 118 119 120 121 122 123 124 125 126 129 130 131 132 133 146 147 3.5 3.6"},D:{"39":0.0024,"41":0.0024,"44":0.0024,"45":0.0024,"46":0.0024,"47":0.0024,"48":0.0024,"49":0.0024,"50":0.0024,"52":0.0024,"53":0.0024,"54":0.0024,"55":0.0024,"56":0.0024,"57":0.0024,"58":0.0024,"59":0.00479,"60":0.0024,"62":0.0024,"63":0.0024,"64":0.0024,"65":0.0024,"68":0.00479,"69":0.00479,"70":0.00959,"71":0.01438,"72":0.0024,"73":0.00479,"74":0.00719,"75":0.0024,"76":0.0024,"77":0.00479,"78":0.0024,"79":0.01438,"80":0.01199,"81":0.00479,"83":0.00959,"86":0.00479,"87":0.03596,"88":0.00959,"90":0.01199,"91":0.0024,"92":0.0024,"93":0.0024,"94":0.01199,"95":0.0024,"97":0.0024,"98":0.00479,"99":0.01438,"100":0.01918,"101":0.0024,"102":0.0024,"103":0.02637,"104":0.02157,"105":0.0024,"106":0.0024,"108":0.01438,"109":0.23011,"110":0.0024,"111":0.01918,"112":0.01199,"113":0.00719,"114":0.01678,"115":0.0024,"116":0.09348,"117":0.0024,"118":0.00479,"119":0.01678,"120":0.01678,"121":0.00959,"122":0.05034,"123":0.00719,"124":0.03835,"125":0.37393,"126":0.02637,"127":0.02876,"128":0.05993,"129":0.00719,"130":0.00959,"131":0.03596,"132":0.01918,"133":0.03596,"134":0.04554,"135":0.04315,"136":0.03356,"137":0.07191,"138":0.26367,"139":0.26367,"140":2.71101,"141":5.20628,"142":0.01438,"143":0.0024,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 42 43 51 61 66 67 84 85 89 96 107 144 145"},F:{"40":0.0024,"46":0.0024,"70":0.0024,"79":0.0024,"86":0.0024,"87":0.0024,"89":0.0024,"90":0.00959,"91":0.02637,"92":0.01918,"95":0.01438,"119":0.0024,"120":0.0839,"121":0.00959,"122":0.40989,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 78 80 81 82 83 84 85 88 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00719,"13":0.00479,"14":0.0024,"15":0.0024,"16":0.00719,"17":0.00479,"18":0.05034,"84":0.0024,"89":0.00719,"90":0.00959,"92":0.02157,"100":0.00479,"108":0.0024,"109":0.00479,"111":0.0024,"114":0.01438,"122":0.00719,"124":0.0024,"126":0.0024,"131":0.01199,"132":0.0024,"133":0.0024,"134":0.00479,"135":0.0024,"136":0.00479,"137":0.04554,"138":0.03116,"139":0.05513,"140":0.38592,"141":1.25843,"142":0.0024,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 110 112 113 115 116 117 118 119 120 121 123 125 127 128 129 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 15.2-15.3 15.4 15.5 16.2 17.0 17.2 17.3 26.2","5.1":0.00479,"11.1":0.00959,"12.1":0.00479,"13.1":0.00479,"14.1":0.00959,"15.1":0.0024,"15.6":0.02637,"16.0":0.0024,"16.1":0.0024,"16.3":0.0024,"16.4":0.00479,"16.5":0.00479,"16.6":0.02637,"17.1":0.0024,"17.4":0.0024,"17.5":0.00719,"17.6":0.03116,"18.0":0.00479,"18.1":0.0024,"18.2":0.0024,"18.3":0.00719,"18.4":0.0024,"18.5-18.6":0.01438,"26.0":0.08629,"26.1":0.00479},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00033,"5.0-5.1":0,"6.0-6.1":0.0013,"7.0-7.1":0.00098,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00293,"10.0-10.2":0.00033,"10.3":0.00553,"11.0-11.2":0.082,"11.3-11.4":0.00195,"12.0-12.1":0.00065,"12.2-12.5":0.01595,"13.0-13.1":0,"13.2":0.00163,"13.3":0.00065,"13.4-13.7":0.0026,"14.0-14.4":0.00553,"14.5-14.8":0.00586,"15.0-15.1":0.00553,"15.2-15.3":0.00423,"15.4":0.00488,"15.5":0.00553,"15.6-15.8":0.07224,"16.0":0.00976,"16.1":0.01822,"16.2":0.00944,"16.3":0.01692,"16.4":0.00423,"16.5":0.00748,"16.6-16.7":0.09665,"17.0":0.00683,"17.1":0.01041,"17.2":0.00748,"17.3":0.01106,"17.4":0.01952,"17.5":0.03352,"17.6-17.7":0.08461,"18.0":0.0192,"18.1":0.0397,"18.2":0.02148,"18.3":0.06899,"18.4":0.03547,"18.5-18.6":1.80862,"26.0":0.22356,"26.1":0.00814},P:{"4":0.052,"21":0.0104,"22":0.0208,"23":0.0104,"24":0.23919,"25":0.104,"26":0.0416,"27":0.18719,"28":1.02955,"29":0.0104,_:"20 5.0-5.4 6.2-6.4 8.2 10.1 12.0 14.0 15.0 17.0 18.0","7.2-7.4":0.0312,"9.2":0.0104,"11.1-11.2":0.0208,"13.0":0.0104,"16.0":0.0208,"19.0":0.0104},I:{"0":0.18222,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00009},K:{"0":7.75341,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00479,_:"6 7 8 9 10 5.5"},S:{"2.5":0.28131,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.09124},Q:{"14.9":0.0076},O:{"0":0.14446},H:{"0":3.94},L:{"0":67.80747}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/UA.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/UA.js deleted file mode 100644 index d89626df..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/UA.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.08045,"60":0.0067,"69":0.02011,"74":0.0067,"92":0.02011,"102":0.01341,"115":0.42906,"120":0.0067,"123":0.02682,"125":0.02682,"128":0.04022,"131":0.0067,"133":0.02011,"134":0.01341,"135":0.02682,"136":0.04022,"137":0.0067,"138":0.01341,"139":0.0067,"140":0.05363,"141":0.18101,"142":0.02682,"143":0.92515,"144":0.78437,"145":0.0067,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 61 62 63 64 65 66 67 68 70 71 72 73 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 121 122 124 126 127 129 130 132 146 147 3.5 3.6"},D:{"26":0.0067,"27":0.02011,"32":0.02011,"39":0.02011,"40":0.02011,"41":0.02011,"42":0.02011,"43":0.02011,"44":0.02011,"45":0.02011,"46":0.02011,"47":0.02011,"48":0.02682,"49":0.06034,"50":0.02011,"51":0.02011,"52":0.02011,"53":0.02011,"54":0.02011,"55":0.02682,"56":0.02682,"57":0.02011,"58":0.04022,"59":0.02011,"60":0.02011,"75":0.02011,"79":0.03352,"83":0.0067,"85":0.0067,"86":0.0067,"87":0.02011,"88":0.0067,"91":0.0067,"94":0.0067,"96":0.0067,"97":0.0067,"98":0.0067,"101":0.02682,"102":0.01341,"103":0.02011,"104":0.13408,"105":0.0067,"106":0.02682,"107":0.0067,"108":0.02011,"109":2.61456,"112":6.46936,"113":0.0067,"114":0.02011,"116":0.03352,"117":0.0067,"118":0.02682,"119":0.02011,"120":0.02682,"121":0.02682,"122":0.07374,"123":0.01341,"124":0.09386,"125":5.94645,"126":0.46928,"127":0.06704,"128":0.06034,"129":0.02011,"130":0.05363,"131":0.21453,"132":0.07374,"133":0.08045,"134":0.14078,"135":0.62347,"136":0.18101,"137":0.12738,"138":0.46928,"139":1.54862,"140":7.79675,"141":19.76339,"142":0.32179,"143":0.0067,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 28 29 30 31 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 80 81 84 89 90 92 93 95 99 100 110 111 115 144 145"},F:{"46":0.01341,"63":0.02011,"67":0.02011,"79":0.02011,"80":0.0067,"83":0.0067,"84":0.02011,"85":0.03352,"86":0.02682,"89":0.0067,"90":0.0067,"91":0.07374,"92":0.10056,"95":0.58995,"109":0.02011,"114":0.02011,"115":0.0067,"116":0.0067,"117":0.0067,"118":0.02011,"119":0.01341,"120":0.6771,"121":0.18771,"122":3.47938,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 64 65 66 68 69 70 71 72 73 74 75 76 77 78 81 82 87 88 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.02682,"92":0.01341,"109":0.02682,"113":0.02011,"114":0.08045,"116":0.02011,"122":0.0067,"124":0.02011,"130":0.0067,"131":0.04022,"132":0.02011,"133":0.04022,"134":0.22123,"135":0.02011,"136":0.02011,"137":0.02011,"138":0.0067,"139":0.01341,"140":0.29498,"141":1.74304,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 115 117 118 119 120 121 123 125 126 127 128 129 142"},E:{"14":0.0067,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 16.0 16.2 17.0 26.2","13.1":0.0067,"14.1":0.02011,"15.1":0.0067,"15.5":0.0067,"15.6":0.03352,"16.1":0.0067,"16.3":0.0067,"16.4":0.0067,"16.5":0.02011,"16.6":0.06704,"17.1":0.04693,"17.2":0.0067,"17.3":0.01341,"17.4":0.04693,"17.5":0.02011,"17.6":0.08045,"18.0":0.02011,"18.1":0.01341,"18.2":0.0067,"18.3":0.05363,"18.4":0.01341,"18.5-18.6":0.06704,"26.0":0.31509,"26.1":0.01341},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.0008,"5.0-5.1":0,"6.0-6.1":0.00321,"7.0-7.1":0.00241,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00723,"10.0-10.2":0.0008,"10.3":0.01365,"11.0-11.2":0.20242,"11.3-11.4":0.00482,"12.0-12.1":0.00161,"12.2-12.5":0.03936,"13.0-13.1":0,"13.2":0.00402,"13.3":0.00161,"13.4-13.7":0.00643,"14.0-14.4":0.01365,"14.5-14.8":0.01446,"15.0-15.1":0.01365,"15.2-15.3":0.01044,"15.4":0.01205,"15.5":0.01365,"15.6-15.8":0.17832,"16.0":0.0241,"16.1":0.04498,"16.2":0.02329,"16.3":0.04177,"16.4":0.01044,"16.5":0.01847,"16.6-16.7":0.23856,"17.0":0.01687,"17.1":0.0257,"17.2":0.01847,"17.3":0.02731,"17.4":0.04819,"17.5":0.08273,"17.6-17.7":0.20884,"18.0":0.04739,"18.1":0.09799,"18.2":0.05301,"18.3":0.17029,"18.4":0.08755,"18.5-18.6":4.46438,"26.0":0.55182,"26.1":0.02008},P:{"4":0.01057,"21":0.01057,"23":0.01057,"24":0.02114,"25":0.02114,"26":0.02114,"27":0.02114,"28":0.63428,"29":0.08457,_:"20 22 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.03171},I:{"0":0.02304,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.77126,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.02905,"9":0.00968,"11":0.04842,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.15162},Q:{"14.9":0.0033},O:{"0":0.04614},H:{"0":0},L:{"0":24.41619}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/UG.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/UG.js deleted file mode 100644 index 8be9b33f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/UG.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"47":0.00333,"50":0.00665,"55":0.00333,"56":0.00333,"58":0.00665,"72":0.00665,"78":0.00333,"93":0.00665,"112":0.00333,"113":0.00333,"115":0.19618,"127":0.01995,"128":0.0133,"135":0.00333,"136":0.00333,"137":0.00333,"138":0.00333,"139":0.00333,"140":0.0266,"141":0.01663,"142":0.03658,"143":0.79135,"144":0.69493,"145":0.01995,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 48 49 51 52 53 54 57 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 133 134 146 147 3.5 3.6"},D:{"19":0.00998,"39":0.00333,"40":0.00665,"41":0.00333,"42":0.00333,"43":0.00333,"44":0.00333,"45":0.00333,"46":0.00333,"47":0.00333,"48":0.00333,"49":0.00333,"50":0.00333,"51":0.00333,"52":0.00333,"53":0.00333,"54":0.00333,"55":0.00333,"56":0.00333,"57":0.00333,"58":0.00333,"59":0.00333,"60":0.00333,"62":0.00333,"64":0.00665,"65":0.00333,"68":0.00333,"70":0.00665,"71":0.00998,"72":0.0266,"73":0.00333,"74":0.00333,"75":0.00333,"76":0.00333,"77":0.00665,"78":0.00333,"79":0.00998,"80":0.01663,"81":0.00333,"83":0.0133,"85":0.00333,"86":0.00665,"87":0.0266,"88":0.00333,"89":0.00333,"90":0.00998,"91":0.00665,"93":0.04655,"94":0.03658,"95":0.00665,"97":0.00333,"98":0.00665,"99":0.00665,"100":0.00665,"102":0.00333,"103":0.0532,"104":0.00333,"105":0.00665,"106":0.01995,"107":0.00665,"108":0.00998,"109":0.92103,"111":0.0133,"112":0.00333,"113":0.00998,"114":0.04323,"115":0.00333,"116":0.08645,"118":0.00333,"119":0.03325,"120":0.0133,"121":0.00665,"122":0.04323,"123":0.01995,"124":0.00665,"125":0.84788,"126":0.0266,"127":0.00998,"128":0.0665,"129":0.00665,"130":0.01663,"131":0.03658,"132":0.01995,"133":0.0399,"134":0.0399,"135":0.05653,"136":0.08313,"137":0.08313,"138":0.3458,"139":0.40898,"140":3.7373,"141":6.916,"142":0.08645,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 63 66 67 69 84 92 96 101 110 117 143 144 145"},F:{"79":0.00333,"90":0.00998,"91":0.02993,"92":0.07648,"93":0.00333,"95":0.01663,"114":0.00333,"120":0.09975,"121":0.0133,"122":0.5852,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.01995,"13":0.00665,"14":0.01663,"15":0.00333,"16":0.00333,"17":0.00333,"18":0.08645,"84":0.00333,"88":0.00333,"89":0.00333,"90":0.01663,"92":0.04323,"100":0.00998,"109":0.01995,"112":0.00333,"114":0.04323,"122":0.00998,"125":0.00333,"128":0.00333,"129":0.00333,"130":0.00333,"131":0.00665,"132":0.00333,"133":0.00665,"134":0.00665,"135":0.00998,"136":0.00998,"137":0.01663,"138":0.0532,"139":0.04655,"140":0.53533,"141":1.9418,"142":0.00665,_:"79 80 81 83 85 86 87 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 113 115 116 117 118 119 120 121 123 124 126 127"},E:{"13":0.00333,_:"0 4 5 6 7 8 9 10 11 12 14 15 3.1 3.2 6.1 7.1 9.1 10.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.5 17.0 17.2 18.1 18.2 26.2","5.1":0.00665,"11.1":0.00998,"12.1":0.00333,"13.1":0.01995,"14.1":0.0133,"15.6":0.0399,"16.2":0.00333,"16.3":0.00333,"16.4":0.00333,"16.6":0.02328,"17.1":0.00665,"17.3":0.00333,"17.4":0.00333,"17.5":0.00333,"17.6":0.06318,"18.0":0.00333,"18.3":0.00333,"18.4":0.00333,"18.5-18.6":0.0266,"26.0":0.11305,"26.1":0.00333},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00035,"5.0-5.1":0,"6.0-6.1":0.00139,"7.0-7.1":0.00104,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00313,"10.0-10.2":0.00035,"10.3":0.00591,"11.0-11.2":0.08762,"11.3-11.4":0.00209,"12.0-12.1":0.0007,"12.2-12.5":0.01704,"13.0-13.1":0,"13.2":0.00174,"13.3":0.0007,"13.4-13.7":0.00278,"14.0-14.4":0.00591,"14.5-14.8":0.00626,"15.0-15.1":0.00591,"15.2-15.3":0.00452,"15.4":0.00522,"15.5":0.00591,"15.6-15.8":0.07719,"16.0":0.01043,"16.1":0.01947,"16.2":0.01008,"16.3":0.01808,"16.4":0.00452,"16.5":0.008,"16.6-16.7":0.10327,"17.0":0.0073,"17.1":0.01113,"17.2":0.008,"17.3":0.01182,"17.4":0.02086,"17.5":0.03581,"17.6-17.7":0.09041,"18.0":0.02052,"18.1":0.04242,"18.2":0.02295,"18.3":0.07372,"18.4":0.0379,"18.5-18.6":1.9326,"26.0":0.23888,"26.1":0.00869},P:{"4":0.04131,"21":0.02065,"22":0.02065,"23":0.02065,"24":0.2272,"25":0.1136,"26":0.05164,"27":0.39243,"28":0.85715,"29":0.03098,_:"20 6.2-6.4 8.2 10.1 13.0 14.0 15.0 18.0","5.0-5.4":0.01033,"7.2-7.4":0.06196,"9.2":0.02065,"11.1-11.2":0.02065,"12.0":0.02065,"16.0":0.02065,"17.0":0.01033,"19.0":0.02065},I:{"0":0.03332,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":3.84103,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02328,_:"6 7 8 9 10 5.5"},S:{"2.5":0.04004,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.08676},Q:{"14.9":0.00667},O:{"0":0.16685},H:{"0":3.16},L:{"0":65.59791}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/US.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/US.js deleted file mode 100644 index 264a46e5..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/US.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"11":0.18861,"44":0.01179,"52":0.01179,"59":0.00589,"78":0.01768,"115":0.14735,"117":0.00589,"118":0.60119,"123":0.00589,"125":0.01179,"128":0.02947,"132":0.00589,"133":0.00589,"134":0.00589,"135":0.01179,"136":0.01768,"137":0.01768,"138":0.01768,"139":0.01179,"140":0.0943,"141":0.02358,"142":0.07662,"143":0.92536,"144":0.79569,_:"2 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 119 120 121 122 124 126 127 129 130 131 145 146 147 3.5 3.6"},D:{"39":0.00589,"40":0.00589,"41":0.01179,"42":0.00589,"43":0.01179,"44":0.00589,"45":0.00589,"46":0.01179,"47":0.01179,"48":0.03536,"49":0.02358,"50":0.01179,"51":0.01179,"52":0.01768,"53":0.01179,"54":0.01179,"55":0.01179,"56":0.02947,"57":0.01179,"58":0.01179,"59":0.01179,"60":0.01179,"62":0.00589,"63":0.00589,"64":0.00589,"65":0.00589,"66":0.02358,"67":0.00589,"70":0.00589,"74":0.00589,"75":0.00589,"76":0.00589,"77":0.00589,"78":0.00589,"79":0.21808,"80":0.01179,"81":0.21218,"83":0.1945,"84":0.01179,"85":0.00589,"86":0.00589,"87":0.02358,"88":0.00589,"90":0.00589,"91":0.01768,"92":0.00589,"93":0.01768,"96":0.00589,"98":0.01179,"99":0.02358,"100":0.00589,"101":0.01768,"102":0.00589,"103":0.14146,"104":0.03536,"105":0.00589,"106":0.00589,"107":0.00589,"108":0.01179,"109":0.2947,"110":0.00589,"111":0.00589,"112":0.01179,"113":0.00589,"114":0.04715,"115":0.02358,"116":0.11199,"117":0.43616,"118":0.02358,"119":0.02947,"120":0.05305,"121":0.08841,"122":0.11788,"123":0.02358,"124":0.11199,"125":7.53843,"126":0.41847,"127":0.02947,"128":0.10609,"129":0.03536,"130":6.52466,"131":0.31828,"132":0.22397,"133":0.07073,"134":0.12377,"135":0.08841,"136":0.15914,"137":0.46563,"138":1.34383,"139":1.99217,"140":6.13565,"141":11.16913,"142":0.23576,"143":0.00589,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 68 69 71 72 73 89 94 95 97 144 145"},F:{"91":0.01179,"92":0.02947,"95":0.02358,"114":0.00589,"117":0.00589,"118":0.00589,"119":0.00589,"120":0.06483,"121":0.05305,"122":0.48331,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00589,"91":0.00589,"109":0.04715,"120":0.00589,"121":0.04715,"122":0.00589,"124":0.00589,"126":0.00589,"128":0.00589,"129":0.00589,"130":0.00589,"131":0.01768,"132":0.01179,"133":0.01179,"134":0.04126,"135":0.01768,"136":0.01768,"137":0.01768,"138":0.04126,"139":0.06483,"140":1.11397,"141":4.65037,"142":0.01179,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 123 125 127"},E:{"9":0.00589,"14":0.01768,"15":0.00589,_:"0 4 5 6 7 8 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 26.2","11.1":0.00589,"12.1":0.01179,"13.1":0.05305,"14.1":0.04126,"15.1":0.04715,"15.2-15.3":0.00589,"15.4":0.00589,"15.5":0.01179,"15.6":0.14735,"16.0":0.00589,"16.1":0.01768,"16.2":0.01768,"16.3":0.03536,"16.4":0.01768,"16.5":0.02358,"16.6":0.26523,"17.0":0.01179,"17.1":0.18271,"17.2":0.01768,"17.3":0.02358,"17.4":0.04715,"17.5":0.07073,"17.6":0.30649,"18.0":0.02947,"18.1":0.04715,"18.2":0.02947,"18.3":0.10609,"18.4":0.05894,"18.5-18.6":0.23576,"26.0":0.55404,"26.1":0.02358},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00203,"5.0-5.1":0,"6.0-6.1":0.00811,"7.0-7.1":0.00608,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01825,"10.0-10.2":0.00203,"10.3":0.03448,"11.0-11.2":0.51113,"11.3-11.4":0.01217,"12.0-12.1":0.00406,"12.2-12.5":0.09939,"13.0-13.1":0,"13.2":0.01014,"13.3":0.00406,"13.4-13.7":0.01623,"14.0-14.4":0.03448,"14.5-14.8":0.03651,"15.0-15.1":0.03448,"15.2-15.3":0.02637,"15.4":0.03042,"15.5":0.03448,"15.6-15.8":0.45028,"16.0":0.06085,"16.1":0.11358,"16.2":0.05882,"16.3":0.10547,"16.4":0.02637,"16.5":0.04665,"16.6-16.7":0.6024,"17.0":0.04259,"17.1":0.0649,"17.2":0.04665,"17.3":0.06896,"17.4":0.1217,"17.5":0.20891,"17.6-17.7":0.52735,"18.0":0.11967,"18.1":0.24745,"18.2":0.13387,"18.3":0.43,"18.4":0.22108,"18.5-18.6":11.27318,"26.0":1.39343,"26.1":0.05071},P:{"4":0.0107,"21":0.0107,"22":0.0107,"23":0.02141,"24":0.0107,"25":0.0107,"26":0.02141,"27":0.03211,"28":1.12398,"29":0.12845,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.0107},I:{"0":0.18037,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00004,"4.4":0,"4.4.3-4.4.4":0.00009},K:{"0":0.27093,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00786,"9":0.03929,"11":0.04715,_:"6 7 10 5.5"},S:{"2.5":0.00411,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.59112},Q:{"14.9":0.00821},O:{"0":0.02874},H:{"0":0},L:{"0":19.47315}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/UY.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/UY.js deleted file mode 100644 index 4400ce2c..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/UY.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.01373,"60":0.0206,"83":0.00687,"113":0.00687,"115":0.11674,"120":0.00687,"121":0.00687,"128":0.05494,"134":0.00687,"136":0.0206,"137":0.00687,"139":0.01373,"140":0.01373,"141":0.00687,"142":0.0412,"143":0.46009,"144":0.46009,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 122 123 124 125 126 127 129 130 131 132 133 135 138 145 146 147 3.5 3.6"},D:{"39":0.01373,"40":0.01373,"41":0.01373,"42":0.01373,"43":0.01373,"44":0.01373,"45":0.01373,"46":0.01373,"47":0.01373,"48":0.01373,"49":0.0206,"50":0.01373,"51":0.01373,"52":0.01373,"53":0.01373,"54":0.01373,"55":0.0206,"56":0.01373,"57":0.01373,"58":0.01373,"59":0.01373,"60":0.01373,"70":0.00687,"78":0.00687,"79":0.01373,"80":0.0206,"83":0.00687,"86":0.02747,"87":0.05494,"88":0.01373,"90":0.00687,"103":0.0206,"105":0.00687,"108":0.00687,"109":0.59056,"111":0.00687,"112":14.3795,"114":0.00687,"116":0.03434,"119":0.01373,"120":0.00687,"121":0.00687,"122":0.0206,"123":0.02747,"124":0.01373,"125":14.4207,"126":1.4352,"127":0.02747,"128":0.0618,"129":0.00687,"130":0.02747,"131":0.26781,"132":0.02747,"133":0.06867,"134":0.02747,"135":0.10301,"136":0.0412,"137":0.07554,"138":0.23348,"139":0.35022,"140":6.85327,"141":16.98209,"142":0.22661,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 81 84 85 89 91 92 93 94 95 96 97 98 99 100 101 102 104 106 107 110 113 115 117 118 143 144 145"},F:{"95":0.00687,"120":0.10301,"121":0.26781,"122":2.04637,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00687,"109":0.01373,"114":0.30215,"134":0.01373,"138":0.01373,"139":0.05494,"140":0.52189,"141":2.62319,"142":0.00687,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 135 136 137"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 15.4 16.0 16.2 16.3 16.5 17.0 17.2 18.0 18.2 26.2","13.1":0.00687,"14.1":0.00687,"15.1":0.00687,"15.5":0.00687,"15.6":0.01373,"16.1":0.00687,"16.4":0.01373,"16.6":0.02747,"17.1":0.0206,"17.3":0.00687,"17.4":0.00687,"17.5":0.03434,"17.6":0.0824,"18.1":0.02747,"18.3":0.00687,"18.4":0.01373,"18.5-18.6":0.07554,"26.0":0.20601,"26.1":0.00687},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00076,"5.0-5.1":0,"6.0-6.1":0.00303,"7.0-7.1":0.00227,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00682,"10.0-10.2":0.00076,"10.3":0.01287,"11.0-11.2":0.19083,"11.3-11.4":0.00454,"12.0-12.1":0.00151,"12.2-12.5":0.03711,"13.0-13.1":0,"13.2":0.00379,"13.3":0.00151,"13.4-13.7":0.00606,"14.0-14.4":0.01287,"14.5-14.8":0.01363,"15.0-15.1":0.01287,"15.2-15.3":0.00984,"15.4":0.01136,"15.5":0.01287,"15.6-15.8":0.16811,"16.0":0.02272,"16.1":0.04241,"16.2":0.02196,"16.3":0.03938,"16.4":0.00984,"16.5":0.01742,"16.6-16.7":0.2249,"17.0":0.0159,"17.1":0.02423,"17.2":0.01742,"17.3":0.02575,"17.4":0.04543,"17.5":0.078,"17.6-17.7":0.19688,"18.0":0.04468,"18.1":0.09238,"18.2":0.04998,"18.3":0.16054,"18.4":0.08254,"18.5-18.6":4.20877,"26.0":0.52023,"26.1":0.01893},P:{"22":0.01039,"24":0.01039,"25":0.02079,"26":0.01039,"27":0.04158,"28":0.7172,"29":0.04158,_:"4 20 21 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.03118},I:{"0":0.00626,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.05953,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00687,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.17858},Q:{"14.9":0.00313},O:{"0":0.01567},H:{"0":0},L:{"0":25.0187}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/UZ.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/UZ.js deleted file mode 100644 index 4c6a3691..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/UZ.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.03879,"115":0.08867,"125":0.00554,"128":0.02771,"133":0.00554,"135":0.00554,"136":0.00554,"140":0.03879,"141":0.01663,"142":0.03325,"143":0.41011,"144":0.25493,"145":0.00554,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 131 132 134 137 138 139 146 147 3.5 3.6"},D:{"39":0.02217,"40":0.02217,"41":0.02217,"42":0.02771,"43":0.02217,"44":0.02217,"45":0.02217,"46":0.02217,"47":0.02217,"48":0.02217,"49":0.05542,"50":0.02217,"51":0.02771,"52":0.02217,"53":0.02217,"54":0.02217,"55":0.02217,"56":0.02217,"57":0.02771,"58":0.02217,"59":0.02771,"60":0.02217,"66":0.01108,"69":0.00554,"71":0.00554,"73":0.00554,"79":0.09976,"80":0.00554,"81":0.00554,"83":0.01108,"84":0.01108,"85":0.00554,"86":0.01108,"87":0.02771,"89":0.01108,"91":0.02217,"94":0.00554,"95":0.00554,"98":0.02217,"99":0.01108,"101":0.00554,"102":0.00554,"103":0.00554,"104":0.02217,"106":0.03325,"107":0.09976,"108":0.01663,"109":1.5961,"110":0.00554,"111":0.00554,"112":1.90645,"113":0.01108,"114":0.01108,"115":0.00554,"116":0.05542,"118":0.00554,"119":0.01663,"120":0.02217,"121":0.01663,"122":0.08313,"123":0.01108,"124":0.01663,"125":12.77985,"126":0.19951,"127":0.01663,"128":0.02217,"129":0.02771,"130":0.02217,"131":0.11084,"132":0.18289,"133":0.05542,"134":0.0665,"135":0.04434,"136":0.06096,"137":0.07759,"138":0.18843,"139":0.30481,"140":5.20948,"141":13.67211,"142":0.2106,"143":0.01108,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 68 70 72 74 75 76 77 78 88 90 92 93 96 97 100 105 117 144 145"},F:{"76":0.00554,"79":0.01108,"87":0.01108,"91":0.00554,"92":0.01108,"95":0.04434,"114":0.00554,"120":0.1053,"121":0.00554,"122":0.50986,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 80 81 82 83 84 85 86 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"14":0.00554,"17":0.00554,"18":0.02217,"89":0.00554,"92":0.03325,"100":0.00554,"108":0.00554,"109":0.01108,"114":1.29683,"115":0.00554,"120":0.00554,"122":0.01108,"124":0.00554,"125":0.00554,"129":0.00554,"130":0.00554,"131":0.02217,"132":0.01108,"133":0.01663,"134":0.01663,"135":0.02771,"136":0.01663,"137":0.01108,"138":0.01663,"139":0.02771,"140":0.43782,"141":2.31656,"142":0.00554,_:"12 13 15 16 79 80 81 83 84 85 86 87 88 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 110 111 112 113 116 117 118 119 121 123 126 127 128"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.4 16.5 17.0 17.2 26.2","5.1":0.01663,"15.6":0.02771,"16.3":0.00554,"16.6":0.02771,"17.1":0.00554,"17.3":0.00554,"17.4":0.01108,"17.5":0.01663,"17.6":0.03325,"18.0":0.00554,"18.1":0.01663,"18.2":0.01663,"18.3":0.01663,"18.4":0.00554,"18.5-18.6":0.04434,"26.0":0.22722,"26.1":0.00554},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00048,"5.0-5.1":0,"6.0-6.1":0.00192,"7.0-7.1":0.00144,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00431,"10.0-10.2":0.00048,"10.3":0.00815,"11.0-11.2":0.12074,"11.3-11.4":0.00287,"12.0-12.1":0.00096,"12.2-12.5":0.02348,"13.0-13.1":0,"13.2":0.0024,"13.3":0.00096,"13.4-13.7":0.00383,"14.0-14.4":0.00815,"14.5-14.8":0.00862,"15.0-15.1":0.00815,"15.2-15.3":0.00623,"15.4":0.00719,"15.5":0.00815,"15.6-15.8":0.10637,"16.0":0.01437,"16.1":0.02683,"16.2":0.01389,"16.3":0.02491,"16.4":0.00623,"16.5":0.01102,"16.6-16.7":0.1423,"17.0":0.01006,"17.1":0.01533,"17.2":0.01102,"17.3":0.01629,"17.4":0.02875,"17.5":0.04935,"17.6-17.7":0.12457,"18.0":0.02827,"18.1":0.05845,"18.2":0.03162,"18.3":0.10158,"18.4":0.05222,"18.5-18.6":2.66299,"26.0":0.32916,"26.1":0.01198},P:{"4":0.07149,"20":0.01021,"21":0.01021,"22":0.01021,"23":0.02043,"24":0.03064,"25":0.06128,"26":0.06128,"27":0.10213,"28":1.19491,"29":0.06128,_:"5.0-5.4 8.2 9.2 10.1 12.0 15.0 16.0 18.0 19.0","6.2-6.4":0.02043,"7.2-7.4":0.0817,"11.1-11.2":0.02043,"13.0":0.01021,"14.0":0.01021,"17.0":0.01021},I:{"0":0.0089,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0.62844,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.02217,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.08914},Q:{"14.9":0.01337},O:{"0":0.94934},H:{"0":0},L:{"0":39.32668}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VA.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VA.js deleted file mode 100644 index 725c9f44..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VA.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.27172,"128":0.04383,"140":0.07012,"142":0.0263,"143":4.81199,"144":2.42791,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 136 137 138 139 141 145 146 147 3.5 3.6"},D:{"87":0.0263,"88":0.04383,"103":0.15777,"109":0.14024,"114":0.07012,"116":0.11395,"122":1.11316,"138":1.34105,"139":0.45578,"140":13.76105,"141":25.13802,"142":0.0263,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 110 111 112 113 115 117 118 119 120 121 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 143 144 145"},F:{"120":0.0263,"122":0.0263,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.14024,"109":0.08765,"136":0.0263,"140":4.62792,"141":27.82011,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 137 138 139 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 14.1 15.1 15.2-15.3 15.4 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.2 17.3 17.4 17.5 18.0 18.1 18.2 18.3 26.1 26.2","13.1":0.0263,"15.5":0.0263,"15.6":0.04383,"17.1":0.0263,"17.6":0.15777,"18.4":0.95539,"18.5-18.6":0.0263,"26.0":0.14024},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00027,"5.0-5.1":0,"6.0-6.1":0.00109,"7.0-7.1":0.00082,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00246,"10.0-10.2":0.00027,"10.3":0.00464,"11.0-11.2":0.06881,"11.3-11.4":0.00164,"12.0-12.1":0.00055,"12.2-12.5":0.01338,"13.0-13.1":0,"13.2":0.00137,"13.3":0.00055,"13.4-13.7":0.00218,"14.0-14.4":0.00464,"14.5-14.8":0.00492,"15.0-15.1":0.00464,"15.2-15.3":0.00355,"15.4":0.0041,"15.5":0.00464,"15.6-15.8":0.06062,"16.0":0.00819,"16.1":0.01529,"16.2":0.00792,"16.3":0.0142,"16.4":0.00355,"16.5":0.00628,"16.6-16.7":0.0811,"17.0":0.00573,"17.1":0.00874,"17.2":0.00628,"17.3":0.00928,"17.4":0.01638,"17.5":0.02813,"17.6-17.7":0.071,"18.0":0.01611,"18.1":0.03331,"18.2":0.01802,"18.3":0.05789,"18.4":0.02976,"18.5-18.6":1.51766,"26.0":0.18759,"26.1":0.00683},P:{"28":0.42879,"29":0.02199,_:"4 20 21 22 23 24 25 26 27 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.04383,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.0247},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":9.3212}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VC.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VC.js deleted file mode 100644 index 1b347a73..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VC.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"141":0.00569,"142":0.02274,"143":0.88118,"144":1.02899,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 145 146 147 3.5 3.6"},D:{"39":0.01706,"40":0.01137,"41":0.01706,"42":0.01706,"43":0.02274,"44":0.00569,"45":0.02274,"46":0.01706,"47":0.02843,"48":0.02274,"49":0.04548,"50":0.01137,"51":0.01706,"52":0.02274,"53":0.01706,"54":0.02274,"55":0.01137,"56":0.01137,"57":0.02274,"58":0.04548,"59":0.01706,"60":0.02274,"74":0.00569,"78":0.00569,"79":0.01706,"85":0.17055,"87":0.00569,"91":0.00569,"95":0.00569,"102":0.04548,"103":0.0398,"105":0.00569,"108":0.00569,"109":0.16487,"110":0.00569,"116":0.07391,"119":0.01137,"122":0.02274,"123":0.00569,"125":17.85659,"126":0.02843,"128":0.10802,"129":0.02843,"131":0.01706,"132":0.00569,"133":0.03411,"135":0.02843,"136":0.03411,"137":0.34679,"138":0.27857,"139":0.29562,"140":3.82032,"141":9.40868,"142":0.24446,"143":0.02843,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 75 76 77 80 81 83 84 86 88 89 90 92 93 94 96 97 98 99 100 101 104 106 107 111 112 113 114 115 117 118 120 121 124 127 130 134 144 145"},F:{"63":0.00569,"92":0.01706,"120":0.05117,"121":0.07391,"122":2.17167,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00569,"100":0.00569,"109":0.00569,"114":0.03411,"131":0.01706,"134":0.00569,"137":0.00569,"138":0.01137,"139":0.08528,"140":0.78453,"141":4.34334,"142":0.00569,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 132 133 135 136"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 13.1 14.1 15.1 15.4 15.5 16.0 16.3 16.5 17.0 17.3 18.2 26.2","12.1":0.00569,"15.2-15.3":0.00569,"15.6":5.24157,"16.1":0.00569,"16.2":0.0398,"16.4":0.00569,"16.6":0.04548,"17.1":0.05685,"17.2":0.00569,"17.4":0.01137,"17.5":0.01706,"17.6":0.23309,"18.0":0.00569,"18.1":0.01137,"18.3":0.13076,"18.4":0.00569,"18.5-18.6":0.36384,"26.0":0.70494,"26.1":0.01137},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00081,"5.0-5.1":0,"6.0-6.1":0.00324,"7.0-7.1":0.00243,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00729,"10.0-10.2":0.00081,"10.3":0.01376,"11.0-11.2":0.20399,"11.3-11.4":0.00486,"12.0-12.1":0.00162,"12.2-12.5":0.03967,"13.0-13.1":0,"13.2":0.00405,"13.3":0.00162,"13.4-13.7":0.00648,"14.0-14.4":0.01376,"14.5-14.8":0.01457,"15.0-15.1":0.01376,"15.2-15.3":0.01052,"15.4":0.01214,"15.5":0.01376,"15.6-15.8":0.17971,"16.0":0.02428,"16.1":0.04533,"16.2":0.02348,"16.3":0.04209,"16.4":0.01052,"16.5":0.01862,"16.6-16.7":0.24042,"17.0":0.017,"17.1":0.0259,"17.2":0.01862,"17.3":0.02752,"17.4":0.04857,"17.5":0.08338,"17.6-17.7":0.21047,"18.0":0.04776,"18.1":0.09876,"18.2":0.05343,"18.3":0.17161,"18.4":0.08823,"18.5-18.6":4.49917,"26.0":0.55612,"26.1":0.02024},P:{"4":0.05389,"22":0.02156,"25":0.04311,"26":0.01078,"27":0.01078,"28":2.05851,"29":0.11855,_:"20 21 23 24 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","6.2-6.4":0.01078,"7.2-7.4":0.01078},I:{"0":0.02585,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.26753,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00569,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.02589},Q:{_:"14.9"},O:{"0":0.00432},H:{"0":0},L:{"0":37.10195}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VE.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VE.js deleted file mode 100644 index 7523fe5d..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VE.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"4":1.64738,"52":0.0397,"68":0.00662,"75":0.00662,"78":0.00662,"88":0.00662,"103":0.00662,"113":0.00662,"115":0.44327,"120":0.00662,"127":0.00662,"128":0.05954,"133":0.00662,"134":0.00662,"135":0.00662,"136":0.00662,"138":0.00662,"139":0.03308,"140":0.06616,"141":0.01985,"142":0.0397,"143":0.65498,"144":0.6219,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 72 73 74 76 77 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 102 104 105 106 107 108 109 110 111 112 114 116 117 118 119 121 122 123 124 125 126 129 130 131 132 137 145 146 147 3.5 3.6"},D:{"39":0.01323,"40":0.01323,"41":0.01323,"42":0.01323,"43":0.01323,"44":0.01323,"45":0.01323,"46":0.01323,"47":0.01323,"48":0.01323,"49":0.02646,"50":0.01323,"51":0.01323,"52":0.01323,"53":0.01323,"54":0.01323,"55":0.01323,"56":0.01323,"57":0.01323,"58":0.01323,"59":0.01323,"60":0.01323,"65":0.00662,"69":0.00662,"71":0.00662,"72":0.00662,"73":0.05954,"75":0.00662,"76":0.01985,"79":0.01323,"81":0.01323,"83":0.01323,"84":0.00662,"85":0.02646,"86":0.00662,"87":0.01985,"88":0.00662,"89":0.00662,"90":0.00662,"91":0.01323,"93":0.01323,"96":0.00662,"97":0.03308,"98":0.01323,"99":0.00662,"100":0.00662,"101":0.00662,"102":0.00662,"103":0.0397,"104":0.01323,"106":0.00662,"107":0.00662,"108":0.01323,"109":2.77872,"110":0.01323,"111":0.01323,"112":13.53634,"113":0.00662,"114":0.01985,"115":0.00662,"116":0.06616,"117":0.00662,"118":0.00662,"119":0.01985,"120":0.02646,"121":0.02646,"122":0.08601,"123":0.00662,"124":0.01323,"125":11.16781,"126":1.1578,"127":0.02646,"128":0.06616,"129":0.02646,"130":0.0397,"131":0.07939,"132":0.05293,"133":0.05954,"134":0.07278,"135":0.05293,"136":0.10586,"137":0.11247,"138":0.25141,"139":0.22494,"140":4.43272,"141":12.0345,"142":0.17202,"143":0.00662,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 66 67 68 70 74 77 78 80 92 94 95 105 144 145"},F:{"79":0.00662,"91":0.01323,"92":0.14555,"95":0.13232,"114":0.00662,"117":0.00662,"120":0.11247,"121":0.18525,"122":1.81278,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"85":0.00662,"92":0.03308,"109":0.05954,"114":0.76084,"121":0.00662,"122":0.01323,"124":0.00662,"126":0.00662,"129":0.00662,"130":0.00662,"131":0.01985,"132":0.01323,"133":0.00662,"134":0.03308,"135":0.00662,"136":0.01323,"137":0.03308,"138":0.01985,"139":0.02646,"140":0.52928,"141":2.91104,"142":0.00662,_:"12 13 14 15 16 17 18 79 80 81 83 84 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 123 125 127 128"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.5 16.0 16.1 16.2 16.5 17.0 17.2 17.3 17.4 17.5 18.0 18.1 18.2 26.1 26.2","5.1":0.02646,"13.1":0.00662,"14.1":0.00662,"15.4":0.01323,"15.6":0.04631,"16.3":0.00662,"16.4":0.00662,"16.6":0.01985,"17.1":0.00662,"17.6":0.03308,"18.3":0.00662,"18.4":0.00662,"18.5-18.6":0.02646,"26.0":0.1257},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00027,"5.0-5.1":0,"6.0-6.1":0.00108,"7.0-7.1":0.00081,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00243,"10.0-10.2":0.00027,"10.3":0.00458,"11.0-11.2":0.06795,"11.3-11.4":0.00162,"12.0-12.1":0.00054,"12.2-12.5":0.01321,"13.0-13.1":0,"13.2":0.00135,"13.3":0.00054,"13.4-13.7":0.00216,"14.0-14.4":0.00458,"14.5-14.8":0.00485,"15.0-15.1":0.00458,"15.2-15.3":0.00351,"15.4":0.00404,"15.5":0.00458,"15.6-15.8":0.05986,"16.0":0.00809,"16.1":0.0151,"16.2":0.00782,"16.3":0.01402,"16.4":0.00351,"16.5":0.0062,"16.6-16.7":0.08008,"17.0":0.00566,"17.1":0.00863,"17.2":0.0062,"17.3":0.00917,"17.4":0.01618,"17.5":0.02777,"17.6-17.7":0.0701,"18.0":0.01591,"18.1":0.03289,"18.2":0.0178,"18.3":0.05716,"18.4":0.02939,"18.5-18.6":1.49858,"26.0":0.18523,"26.1":0.00674},P:{"21":0.01098,"23":0.01098,"25":0.01098,"26":0.02196,"27":0.01098,"28":0.46111,"29":0.03294,_:"4 20 22 24 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.02196},I:{"0":0.01013,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.29432,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01985,_:"6 7 8 9 10 5.5"},S:{"2.5":0.00338,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.12179},Q:{_:"14.9"},O:{"0":0.0203},H:{"0":0},L:{"0":35.75203}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VG.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VG.js deleted file mode 100644 index 1d0998f5..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VG.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"2":0.00699,"4":0.00699,"7":0.00699,"11":0.00699,"21":0.00699,"28":0.00699,"35":0.00699,"36":0.00699,"45":0.00699,"60":0.12589,"78":0.04896,"91":0.00699,"102":0.01399,"104":0.03497,"113":0.01399,"115":0.84627,"122":0.01399,"123":0.01399,"128":9.71467,"133":0.00699,"140":0.07693,"143":0.88824,"144":0.09792,_:"3 5 6 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 29 30 31 32 33 34 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 92 93 94 95 96 97 98 99 100 101 103 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 124 125 126 127 129 130 131 132 134 135 136 137 138 139 141 142 145 146 147 3.5 3.6"},D:{"5":0.00699,"14":0.00699,"19":0.00699,"20":0.00699,"36":0.00699,"39":0.00699,"40":0.00699,"41":0.00699,"44":0.01399,"45":0.00699,"46":0.00699,"48":0.00699,"49":0.00699,"51":0.00699,"52":0.01399,"53":0.00699,"54":0.00699,"56":0.00699,"57":0.00699,"58":0.00699,"60":0.00699,"62":0.00699,"79":0.02798,"87":0.10491,"88":0.01399,"101":0.00699,"102":0.02798,"103":0.02098,"108":0.01399,"109":0.04896,"116":0.01399,"118":1.22395,"120":0.00699,"121":0.06295,"122":0.07693,"123":0.00699,"125":4.61604,"126":0.02798,"128":0.01399,"130":0.00699,"132":0.00699,"133":0.00699,"134":27.22764,"135":0.02098,"136":0.00699,"137":0.17485,"138":0.06295,"139":0.37068,"140":3.25221,"141":6.57436,"142":0.02798,_:"4 6 7 8 9 10 11 12 13 15 16 17 18 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 42 43 47 50 55 59 61 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 89 90 91 92 93 94 95 96 97 98 99 100 104 105 106 107 110 111 112 113 114 115 117 119 124 127 129 131 143 144 145"},F:{"29":0.00699,"36":0.00699,"107":0.00699,"120":0.00699,"121":0.00699,"122":0.32172,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00699,"109":0.00699,"114":0.02098,"119":0.00699,"121":0.02098,"122":0.01399,"129":0.14687,"131":0.02098,"132":0.04196,"135":0.00699,"136":0.40565,"137":0.00699,"139":0.04196,"140":1.161,"141":3.65087,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 120 123 124 125 126 127 128 130 133 134 138 142"},E:{"5":0.00699,"14":0.00699,_:"0 4 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.4 16.5 18.0 26.2","5.1":0.00699,"14.1":0.02098,"15.6":0.04896,"16.1":0.02798,"16.3":0.00699,"16.6":0.50357,"17.0":0.01399,"17.1":0.05595,"17.2":0.02798,"17.3":0.02098,"17.4":0.00699,"17.5":0.02098,"17.6":0.06994,"18.1":0.19583,"18.2":0.14687,"18.3":0.03497,"18.4":0.04196,"18.5-18.6":0.04196,"26.0":0.18884,"26.1":0.05595},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00094,"5.0-5.1":0,"6.0-6.1":0.00374,"7.0-7.1":0.00281,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00842,"10.0-10.2":0.00094,"10.3":0.01591,"11.0-11.2":0.23589,"11.3-11.4":0.00562,"12.0-12.1":0.00187,"12.2-12.5":0.04587,"13.0-13.1":0,"13.2":0.00468,"13.3":0.00187,"13.4-13.7":0.00749,"14.0-14.4":0.01591,"14.5-14.8":0.01685,"15.0-15.1":0.01591,"15.2-15.3":0.01217,"15.4":0.01404,"15.5":0.01591,"15.6-15.8":0.20781,"16.0":0.02808,"16.1":0.05242,"16.2":0.02715,"16.3":0.04868,"16.4":0.01217,"16.5":0.02153,"16.6-16.7":0.27801,"17.0":0.01966,"17.1":0.02995,"17.2":0.02153,"17.3":0.03183,"17.4":0.05616,"17.5":0.09642,"17.6-17.7":0.24338,"18.0":0.05523,"18.1":0.1142,"18.2":0.06178,"18.3":0.19845,"18.4":0.10203,"18.5-18.6":5.20267,"26.0":0.64308,"26.1":0.0234},P:{"4":0.01069,"21":0.01069,"23":0.05345,"24":0.06414,"25":0.03207,"26":0.13897,"27":0.05345,"28":1.06897,"29":0.11759,_:"20 22 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.54517},I:{"0":0.02101,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.09319,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00699,"11":0.02098,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":3.00901},Q:{_:"14.9"},O:{"0":0.00301},H:{"0":0},L:{"0":16.00007}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VI.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VI.js deleted file mode 100644 index 5f9aa568..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VI.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"2":0.01458,"69":0.00486,"115":0.70971,"118":0.01458,"123":0.00486,"125":0.00486,"128":0.00486,"136":0.02431,"137":0.00486,"140":0.20902,"141":0.00486,"142":0.44235,"143":2.44994,"144":2.05134,_:"3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 119 120 121 122 124 126 127 129 130 131 132 133 134 135 138 139 145 146 147 3.5 3.6"},D:{"27":0.00972,"32":0.00486,"39":0.00972,"40":0.00972,"41":0.00972,"42":0.00972,"43":0.01458,"44":0.01944,"45":0.00972,"46":0.01458,"47":0.01458,"48":0.00972,"49":0.00972,"50":0.00972,"51":0.00972,"52":0.01458,"53":0.00972,"54":0.01458,"55":0.00972,"56":0.02431,"57":0.01458,"58":0.02431,"59":0.01458,"60":0.00972,"75":0.00486,"76":0.03889,"85":0.00972,"91":0.00486,"99":0.01458,"101":0.00486,"103":0.04861,"108":0.00972,"109":0.20416,"112":0.00486,"114":0.00486,"116":0.02917,"120":0.02917,"121":0.00486,"122":0.10208,"124":0.00486,"125":8.39981,"126":0.03403,"127":0.03889,"128":0.06319,"129":0.00972,"130":0.02431,"131":0.00972,"132":0.10208,"133":0.01944,"134":0.0875,"135":0.02431,"136":0.04375,"137":0.49582,"138":0.36458,"139":0.30624,"140":3.63117,"141":9.26993,"142":0.17986,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 28 29 30 31 33 34 35 36 37 38 61 62 63 64 65 66 67 68 69 70 71 72 73 74 77 78 79 80 81 83 84 86 87 88 89 90 92 93 94 95 96 97 98 100 102 104 105 106 107 110 111 113 115 117 118 119 123 143 144 145"},F:{"36":0.01458,"63":0.00486,"67":0.00486,"95":0.01458,"120":0.01944,"121":0.03403,"122":0.31597,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 64 65 66 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00486,"100":0.06805,"109":0.03403,"113":0.00486,"124":0.00972,"131":0.00486,"133":0.01458,"134":0.00486,"135":0.00486,"137":0.00486,"138":0.00486,"139":0.05833,"140":1.2833,"141":6.30472,"142":0.00486,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 114 115 116 117 118 119 120 121 122 123 125 126 127 128 129 130 132 136"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 17.0 26.2","14.1":0.00972,"15.6":0.24305,"16.4":0.00486,"16.5":0.19444,"16.6":0.1118,"17.1":0.25763,"17.2":0.00972,"17.3":0.00972,"17.4":0.02917,"17.5":0.06319,"17.6":0.17014,"18.0":0.01458,"18.1":0.01458,"18.2":0.01944,"18.3":0.10694,"18.4":0.09722,"18.5-18.6":0.24305,"26.0":0.57846,"26.1":0.02917},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00252,"5.0-5.1":0,"6.0-6.1":0.01006,"7.0-7.1":0.00755,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02264,"10.0-10.2":0.00252,"10.3":0.04277,"11.0-11.2":0.63405,"11.3-11.4":0.0151,"12.0-12.1":0.00503,"12.2-12.5":0.12329,"13.0-13.1":0,"13.2":0.01258,"13.3":0.00503,"13.4-13.7":0.02013,"14.0-14.4":0.04277,"14.5-14.8":0.04529,"15.0-15.1":0.04277,"15.2-15.3":0.03271,"15.4":0.03774,"15.5":0.04277,"15.6-15.8":0.55856,"16.0":0.07548,"16.1":0.1409,"16.2":0.07297,"16.3":0.13083,"16.4":0.03271,"16.5":0.05787,"16.6-16.7":0.74727,"17.0":0.05284,"17.1":0.08051,"17.2":0.05787,"17.3":0.08555,"17.4":0.15096,"17.5":0.25915,"17.6-17.7":0.65417,"18.0":0.14845,"18.1":0.30696,"18.2":0.16606,"18.3":0.5334,"18.4":0.27425,"18.5-18.6":13.98423,"26.0":1.72853,"26.1":0.0629},P:{"4":0.01051,"24":0.03152,"25":0.01051,"26":0.02102,"27":0.04203,"28":2.88966,"29":0.25219,_:"20 21 22 23 5.0-5.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","6.2-6.4":0.01051,"7.2-7.4":0.02102},I:{"0":0.01026,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.26723,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.07292,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.33917},Q:{_:"14.9"},O:{"0":0.05139},H:{"0":0},L:{"0":24.63679}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VN.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VN.js deleted file mode 100644 index 7307d9b0..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VN.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.00645,"54":0.00322,"59":0.00322,"75":0.00322,"113":0.00322,"115":0.0419,"125":0.02256,"128":0.00322,"135":0.00322,"136":0.01612,"138":0.00322,"140":0.00322,"141":0.00322,"142":0.00645,"143":0.26106,"144":0.19016,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 126 127 129 130 131 132 133 134 137 139 145 146 147 3.5 3.6"},D:{"26":0.00322,"34":0.01289,"38":0.02578,"39":0.00967,"40":0.00967,"41":0.01289,"42":0.00967,"43":0.00967,"44":0.00967,"45":0.00967,"46":0.00967,"47":0.01289,"48":0.01612,"49":0.01612,"50":0.01289,"51":0.00967,"52":0.00967,"53":0.00967,"54":0.00967,"55":0.00967,"56":0.01289,"57":0.01289,"58":0.00967,"59":0.00967,"60":0.00967,"66":0.00645,"71":0.00322,"79":0.0419,"81":0.00322,"85":0.00645,"87":0.05479,"89":0.00645,"91":0.00645,"95":0.00322,"99":0.00322,"100":0.03223,"102":0.00322,"103":0.03868,"104":0.03223,"105":0.01289,"106":0.00322,"107":0.00322,"108":0.00967,"109":0.52857,"110":0.00322,"111":0.00322,"112":2.57195,"114":0.00322,"115":0.01289,"116":0.02256,"117":0.00322,"118":0.00645,"119":0.01612,"120":0.03545,"121":0.02256,"122":0.02901,"123":0.01289,"124":0.05479,"125":3.85471,"126":0.21594,"127":0.02901,"128":0.11281,"129":0.01289,"130":0.02578,"131":0.05479,"132":0.02256,"133":0.03545,"134":0.03223,"135":0.07413,"136":0.04512,"137":0.04835,"138":0.1547,"139":0.26106,"140":3.14565,"141":7.94792,"142":0.09024,"143":0.00322,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 31 32 33 35 36 37 61 62 63 64 65 67 68 69 70 72 73 74 75 76 77 78 80 83 84 86 88 90 92 93 94 96 97 98 101 113 144 145"},F:{"36":0.01289,"46":0.00322,"62":0.00322,"85":0.00645,"91":0.01612,"92":0.03223,"95":0.00322,"120":0.02901,"121":0.01289,"122":0.20627,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00322,"92":0.00322,"109":0.00322,"114":0.01289,"122":0.00322,"126":0.00322,"127":0.00322,"130":0.00322,"131":0.06124,"132":0.00645,"133":0.00645,"134":0.00645,"135":0.00322,"136":0.00322,"137":0.00322,"138":0.01612,"139":0.01289,"140":0.3223,"141":1.61472,"142":0.00645,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 124 125 128 129"},E:{"13":0.00322,"14":0.00645,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 12.1 26.2","11.1":0.00322,"13.1":0.00645,"14.1":0.02578,"15.1":0.00322,"15.2-15.3":0.00322,"15.4":0.00645,"15.5":0.00967,"15.6":0.0838,"16.0":0.00322,"16.1":0.00645,"16.2":0.00322,"16.3":0.01289,"16.4":0.00645,"16.5":0.00645,"16.6":0.07413,"17.0":0.00322,"17.1":0.04512,"17.2":0.00967,"17.3":0.00645,"17.4":0.00967,"17.5":0.02256,"17.6":0.03868,"18.0":0.00645,"18.1":0.00967,"18.2":0.00645,"18.3":0.02578,"18.4":0.01289,"18.5-18.6":0.05801,"26.0":0.12892,"26.1":0.00645},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00199,"5.0-5.1":0,"6.0-6.1":0.00798,"7.0-7.1":0.00598,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01794,"10.0-10.2":0.00199,"10.3":0.03389,"11.0-11.2":0.50244,"11.3-11.4":0.01196,"12.0-12.1":0.00399,"12.2-12.5":0.0977,"13.0-13.1":0,"13.2":0.00997,"13.3":0.00399,"13.4-13.7":0.01595,"14.0-14.4":0.03389,"14.5-14.8":0.03589,"15.0-15.1":0.03389,"15.2-15.3":0.02592,"15.4":0.02991,"15.5":0.03389,"15.6-15.8":0.44262,"16.0":0.05981,"16.1":0.11165,"16.2":0.05782,"16.3":0.10368,"16.4":0.02592,"16.5":0.04586,"16.6-16.7":0.59216,"17.0":0.04187,"17.1":0.0638,"17.2":0.04586,"17.3":0.06779,"17.4":0.11963,"17.5":0.20536,"17.6-17.7":0.51839,"18.0":0.11763,"18.1":0.24324,"18.2":0.13159,"18.3":0.42268,"18.4":0.21732,"18.5-18.6":11.0815,"26.0":1.36974,"26.1":0.04984},P:{"4":0.24689,"20":0.01029,"21":0.02057,"22":0.03086,"23":0.04115,"24":0.03086,"25":0.0823,"26":0.12344,"27":0.11316,"28":1.63563,"29":0.12344,"5.0-5.4":0.01029,_:"6.2-6.4 8.2 9.2 10.1 12.0 14.0 15.0 16.0 18.0","7.2-7.4":0.07201,"11.1-11.2":0.01029,"13.0":0.01029,"17.0":0.01029,"19.0":0.01029},I:{"0":0.01354,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.27463,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01319,"9":0.0044,"10":0.0044,"11":0.02637,_:"6 7 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.14232},Q:{"14.9":0.00678},O:{"0":0.82679},H:{"0":0.01},L:{"0":46.99354}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VU.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VU.js deleted file mode 100644 index e3d7b61e..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/VU.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"112":0.04231,"115":0.08461,"128":0.00385,"136":0.00385,"140":0.00385,"142":0.17692,"143":0.29999,"144":0.26153,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 137 138 139 141 145 146 147 3.5 3.6"},D:{"40":0.00769,"43":0.00385,"45":0.00769,"46":0.00385,"48":0.00385,"58":0.00769,"59":0.00769,"77":0.04615,"78":0.00769,"81":0.01923,"87":0.08077,"88":0.02692,"101":0.00385,"103":0.01538,"104":0.03461,"109":0.07307,"112":0.02692,"114":0.00385,"116":0.00769,"117":0.01923,"118":0.00385,"119":0.00385,"120":0.04231,"122":0.03461,"124":0.00769,"125":1.60378,"126":0.24614,"127":0.21153,"128":0.00385,"130":0.04231,"131":0.05769,"132":0.00385,"133":0.00385,"134":0.04615,"135":0.04615,"136":0.01923,"137":0.04231,"138":0.6269,"139":0.78458,"140":4.81904,"141":10.14959,"142":0.11538,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 44 47 49 50 51 52 53 54 55 56 57 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 79 80 83 84 85 86 89 90 91 92 93 94 95 96 97 98 99 100 102 105 106 107 108 110 111 113 115 121 123 129 143 144 145"},F:{"95":0.00385,"120":0.02308,"122":0.19999,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"16":0.00385,"18":0.01538,"92":0.00385,"93":0.05769,"114":0.13846,"122":0.0923,"123":0.02308,"127":0.02308,"131":0.02308,"134":0.01923,"135":0.04231,"137":0.01538,"138":0.13076,"139":0.19999,"140":2.1153,"141":5.10364,_:"12 13 14 15 17 79 80 81 83 84 85 86 87 88 89 90 91 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 120 121 124 125 126 128 129 130 132 133 136 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 17.4 18.0 26.1 26.2","15.6":0.05769,"16.2":0.00385,"16.3":0.00385,"16.4":0.00385,"16.5":0.00769,"16.6":0.07692,"17.0":0.00385,"17.1":0.02308,"17.2":0.00385,"17.3":0.00385,"17.5":0.00769,"17.6":0.08461,"18.1":0.05769,"18.2":0.00385,"18.3":0.01538,"18.4":0.00769,"18.5-18.6":0.02692,"26.0":0.05384},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00073,"5.0-5.1":0,"6.0-6.1":0.0029,"7.0-7.1":0.00218,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00654,"10.0-10.2":0.00073,"10.3":0.01234,"11.0-11.2":0.183,"11.3-11.4":0.00436,"12.0-12.1":0.00145,"12.2-12.5":0.03558,"13.0-13.1":0,"13.2":0.00363,"13.3":0.00145,"13.4-13.7":0.00581,"14.0-14.4":0.01234,"14.5-14.8":0.01307,"15.0-15.1":0.01234,"15.2-15.3":0.00944,"15.4":0.01089,"15.5":0.01234,"15.6-15.8":0.16121,"16.0":0.02179,"16.1":0.04067,"16.2":0.02106,"16.3":0.03776,"16.4":0.00944,"16.5":0.0167,"16.6-16.7":0.21567,"17.0":0.01525,"17.1":0.02324,"17.2":0.0167,"17.3":0.02469,"17.4":0.04357,"17.5":0.0748,"17.6-17.7":0.1888,"18.0":0.04284,"18.1":0.08859,"18.2":0.04793,"18.3":0.15395,"18.4":0.07915,"18.5-18.6":4.03606,"26.0":0.49888,"26.1":0.01815},P:{"4":0.01053,"21":0.02105,"22":0.05263,"23":0.05263,"24":0.05263,"25":0.33684,"26":0.01053,"27":0.08421,"28":2.57889,"29":0.29473,_:"20 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 17.0 18.0 19.0","13.0":0.01053,"16.0":0.02105},I:{"0":0.03687,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.05385,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.89233},Q:{"14.9":0.01231},O:{"0":0.04308},H:{"0":0.02},L:{"0":55.99783}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/WF.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/WF.js deleted file mode 100644 index 24b846c9..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/WF.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"78":0.04167,"115":0.12502,"128":0.04167,"140":0.20837,"143":0.95561,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 136 137 138 139 141 142 144 145 146 147 3.5 3.6"},D:{"42":0.04167,"49":0.04167,"109":0.04167,"125":0.04167,"138":0.12502,"139":0.08335,"140":0.33195,"141":0.95561,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 43 44 45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 126 127 128 129 130 131 132 133 134 135 136 137 142 143 144 145"},F:{"122":0.29027,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"137":0.04167,"139":0.04167,"140":0.66389,"141":1.03895,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 138 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 15.6 16.0 16.1 16.2 16.3 16.4 16.6 17.0 17.2 17.3 18.0 18.1 18.2 18.3 18.4 26.2","16.5":0.04167,"17.1":1.6195,"17.4":0.04167,"17.5":0.16669,"17.6":0.08335,"18.5-18.6":0.20837,"26.0":2.82371,"26.1":0.08335},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00247,"5.0-5.1":0,"6.0-6.1":0.00986,"7.0-7.1":0.0074,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02219,"10.0-10.2":0.00247,"10.3":0.04191,"11.0-11.2":0.62125,"11.3-11.4":0.01479,"12.0-12.1":0.00493,"12.2-12.5":0.1208,"13.0-13.1":0,"13.2":0.01233,"13.3":0.00493,"13.4-13.7":0.01972,"14.0-14.4":0.04191,"14.5-14.8":0.04438,"15.0-15.1":0.04191,"15.2-15.3":0.03205,"15.4":0.03698,"15.5":0.04191,"15.6-15.8":0.54729,"16.0":0.07396,"16.1":0.13806,"16.2":0.07149,"16.3":0.12819,"16.4":0.03205,"16.5":0.0567,"16.6-16.7":0.73219,"17.0":0.05177,"17.1":0.07889,"17.2":0.0567,"17.3":0.08382,"17.4":0.14792,"17.5":0.25392,"17.6-17.7":0.64097,"18.0":0.14545,"18.1":0.30077,"18.2":0.16271,"18.3":0.52264,"18.4":0.26872,"18.5-18.6":13.70207,"26.0":1.69365,"26.1":0.06163},P:{"28":0.16637,_:"4 20 21 22 23 24 25 26 27 29 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.03915},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{_:"0"},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":62.38426}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/WS.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/WS.js deleted file mode 100644 index 1669d433..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/WS.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"115":0.17673,"142":0.01537,"143":0.35731,"144":0.19978,"145":0.00768,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 146 147 3.5 3.6"},D:{"40":0.01537,"41":0.00768,"42":0.00768,"43":0.01537,"44":0.00768,"45":0.00768,"47":0.00768,"49":0.01537,"51":0.00768,"54":0.01537,"56":0.00768,"58":0.00768,"73":0.06916,"84":0.00768,"98":0.02689,"99":0.01921,"103":0.00768,"105":0.00768,"109":0.41878,"110":0.04226,"111":0.01537,"114":0.07684,"116":0.02689,"123":0.01537,"125":0.47257,"126":0.07684,"129":0.01921,"130":0.00768,"131":0.14984,"132":0.02689,"133":0.1921,"134":0.01921,"135":0.00768,"136":0.06916,"137":0.05379,"138":1.0796,"139":0.51483,"140":4.59887,"141":7.03854,"142":0.13831,"143":0.00768,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 46 48 50 52 53 55 57 59 60 61 62 63 64 65 66 67 68 69 70 71 72 74 75 76 77 78 79 80 81 83 85 86 87 88 89 90 91 92 93 94 95 96 97 100 101 102 104 106 107 108 112 113 115 117 118 119 120 121 122 124 127 128 144 145"},F:{"90":0.02689,"91":0.00768,"122":0.21899,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.01921,"114":0.04995,"115":0.00768,"119":0.00768,"131":0.01537,"135":0.04226,"136":0.03458,"137":0.04226,"138":0.12294,"139":0.11526,"140":1.61364,"141":6.40077,"142":0.1921,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 116 117 118 120 121 122 123 124 125 126 127 128 129 130 132 133 134"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 16.0 16.1 16.2 16.5 17.0 17.1 17.2 17.4 18.0 18.2 18.3 26.1 26.2","14.1":0.00768,"15.5":0.01537,"15.6":0.03458,"16.3":0.00768,"16.4":0.00768,"16.6":0.06147,"17.3":0.06147,"17.5":1.98631,"17.6":0.02689,"18.1":0.16521,"18.4":0.03458,"18.5-18.6":0.13831,"26.0":0.02689},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00076,"5.0-5.1":0,"6.0-6.1":0.00305,"7.0-7.1":0.00229,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00686,"10.0-10.2":0.00076,"10.3":0.01296,"11.0-11.2":0.19211,"11.3-11.4":0.00457,"12.0-12.1":0.00152,"12.2-12.5":0.03736,"13.0-13.1":0,"13.2":0.00381,"13.3":0.00152,"13.4-13.7":0.0061,"14.0-14.4":0.01296,"14.5-14.8":0.01372,"15.0-15.1":0.01296,"15.2-15.3":0.00991,"15.4":0.01144,"15.5":0.01296,"15.6-15.8":0.16924,"16.0":0.02287,"16.1":0.04269,"16.2":0.02211,"16.3":0.03964,"16.4":0.00991,"16.5":0.01753,"16.6-16.7":0.22642,"17.0":0.01601,"17.1":0.0244,"17.2":0.01753,"17.3":0.02592,"17.4":0.04574,"17.5":0.07852,"17.6-17.7":0.19821,"18.0":0.04498,"18.1":0.09301,"18.2":0.05032,"18.3":0.16162,"18.4":0.0831,"18.5-18.6":4.2372,"26.0":0.52374,"26.1":0.01906},P:{"20":0.0102,"21":0.07143,"22":0.09184,"23":0.12245,"24":0.39797,"25":2.20412,"26":0.16327,"27":1.29594,"28":3.52046,"29":0.05102,_:"4 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 14.0 15.0 17.0 18.0","7.2-7.4":0.09184,"11.1-11.2":0.0102,"13.0":0.10204,"16.0":0.0102,"19.0":0.0102},I:{"0":0.0369,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.37564,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":1.17618},Q:{_:"14.9"},O:{"0":0.00616},H:{"0":0},L:{"0":54.64915}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/YE.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/YE.js deleted file mode 100644 index 8fcfd433..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/YE.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"38":0.00267,"52":0.01336,"72":0.00267,"94":0.00267,"110":0.00267,"115":0.04808,"118":0.00534,"128":0.0187,"129":0.00267,"133":0.00267,"139":0.00267,"140":0.00267,"142":0.00267,"143":0.18697,"144":0.17896,"145":0.00267,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 111 112 113 114 116 117 119 120 121 122 123 124 125 126 127 130 131 132 134 135 136 137 138 141 146 147 3.5 3.6"},D:{"39":0.00267,"40":0.00267,"41":0.00801,"42":0.00267,"43":0.00267,"44":0.00267,"45":0.00534,"46":0.00267,"47":0.00267,"48":0.00267,"50":0.00267,"51":0.00267,"52":0.00267,"53":0.00267,"54":0.00267,"55":0.00267,"57":0.00534,"58":0.00534,"60":0.00267,"61":0.00267,"67":0.00534,"70":0.04808,"71":0.00267,"73":0.00534,"75":0.00267,"77":0.00267,"78":0.01068,"79":0.01068,"80":0.00267,"81":0.00267,"83":0.01603,"85":0.00267,"86":0.00267,"87":0.00801,"88":0.02137,"89":0.00267,"91":0.00267,"93":0.00267,"94":0.00534,"95":0.00267,"96":0.00267,"98":0.01068,"100":0.00267,"101":0.00267,"102":0.00267,"103":0.00267,"104":0.00267,"105":0.00534,"106":0.06678,"108":0.00801,"109":0.31251,"111":0.00534,"113":0.00267,"114":0.02137,"115":0.00534,"116":0.00534,"117":0.00267,"119":0.02938,"120":0.00534,"121":0.00267,"122":0.00801,"123":0.03739,"124":0.00267,"125":0.10951,"126":0.01068,"127":0.00267,"128":0.00534,"129":0.00267,"130":0.01336,"131":0.07212,"132":0.00534,"133":0.01336,"134":0.01068,"135":0.02671,"136":0.03205,"137":0.04007,"138":0.18964,"139":0.19231,"140":1.70143,"141":3.1037,"142":0.03739,"143":0.00267,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 49 56 59 62 63 64 65 66 68 69 72 74 76 84 90 92 97 99 107 110 112 118 144 145"},F:{"46":0.00267,"72":0.00267,"79":0.01336,"88":0.00267,"89":0.00267,"90":0.11752,"91":0.06143,"92":0.0828,"95":0.00534,"120":0.00267,"122":0.03472,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 80 81 82 83 84 85 86 87 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 121 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"13":0.00267,"17":0.00267,"18":0.00534,"84":0.00267,"89":0.00267,"92":0.02404,"100":0.00534,"109":0.00267,"114":0.01068,"122":0.00267,"124":0.00267,"131":0.00267,"136":0.01336,"137":0.00534,"138":0.01068,"139":0.01336,"140":0.18697,"141":0.87876,"142":0.00534,_:"12 14 15 16 79 80 81 83 85 86 87 88 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 123 125 126 127 128 129 130 132 133 134 135"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 16.6 17.0 17.1 17.2 17.3 17.4 17.5 18.0 18.1 18.2 18.3 26.1 26.2","5.1":0.0641,"15.6":0.00801,"17.6":0.00267,"18.4":0.00267,"18.5-18.6":0.01336,"26.0":0.02671},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00021,"5.0-5.1":0,"6.0-6.1":0.00084,"7.0-7.1":0.00063,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.0019,"10.0-10.2":0.00021,"10.3":0.00359,"11.0-11.2":0.05319,"11.3-11.4":0.00127,"12.0-12.1":0.00042,"12.2-12.5":0.01034,"13.0-13.1":0,"13.2":0.00106,"13.3":0.00042,"13.4-13.7":0.00169,"14.0-14.4":0.00359,"14.5-14.8":0.0038,"15.0-15.1":0.00359,"15.2-15.3":0.00274,"15.4":0.00317,"15.5":0.00359,"15.6-15.8":0.04686,"16.0":0.00633,"16.1":0.01182,"16.2":0.00612,"16.3":0.01098,"16.4":0.00274,"16.5":0.00485,"16.6-16.7":0.06269,"17.0":0.00443,"17.1":0.00675,"17.2":0.00485,"17.3":0.00718,"17.4":0.01266,"17.5":0.02174,"17.6-17.7":0.05488,"18.0":0.01245,"18.1":0.02575,"18.2":0.01393,"18.3":0.04475,"18.4":0.02301,"18.5-18.6":1.17316,"26.0":0.14501,"26.1":0.00528},P:{"4":0.06085,"21":0.01014,"22":0.06085,"23":0.07099,"24":0.03043,"25":0.02028,"26":0.03043,"27":0.07099,"28":0.94318,"29":0.06085,_:"20 5.0-5.4 8.2 10.1 15.0 18.0","6.2-6.4":0.03043,"7.2-7.4":0.15213,"9.2":0.02028,"11.1-11.2":0.04057,"12.0":0.01014,"13.0":0.05071,"14.0":0.08113,"16.0":0.11156,"17.0":0.01014,"19.0":0.01014},I:{"0":0.13174,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00003,"4.4":0,"4.4.3-4.4.4":0.00007},K:{"0":1.92013,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00267,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.10994},Q:{_:"14.9"},O:{"0":2.49186},H:{"0":0.11},L:{"0":82.0539}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/YT.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/YT.js deleted file mode 100644 index 2fd80df2..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/YT.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"86":0.00414,"91":0.01656,"102":0.36837,"111":0.00828,"115":0.07036,"117":0.00414,"127":0.01242,"128":0.5091,"136":0.01242,"140":0.01242,"142":0.04553,"143":0.45943,"144":0.63327,"145":0.00414,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 87 88 89 90 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 112 113 114 116 118 119 120 121 122 123 124 125 126 129 130 131 132 133 134 135 137 138 139 141 146 147 3.5 3.6"},D:{"39":0.00828,"41":0.00414,"42":0.00414,"43":0.01656,"48":0.01242,"49":0.01242,"53":0.00414,"54":0.00828,"55":0.00828,"56":0.01242,"57":0.00414,"59":0.00828,"60":0.00414,"69":0.02483,"79":0.01242,"83":0.05381,"85":0.00828,"87":0.08278,"88":0.01656,"97":0.00828,"98":0.02483,"102":0.01242,"105":0.01242,"109":0.25662,"111":0.06622,"113":0.08278,"114":0.08278,"116":0.02897,"117":0.00414,"119":0.0207,"120":0.10761,"122":0.04553,"123":0.00414,"125":0.81952,"126":0.04553,"127":0.01242,"128":0.01242,"129":0.0207,"130":0.02483,"131":0.05795,"132":0.01656,"133":0.0207,"134":0.09106,"135":0.04553,"136":0.01656,"137":0.03311,"138":0.52565,"139":0.56704,"140":6.0595,"141":10.7821,"142":0.0745,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 44 45 46 47 50 51 52 58 61 62 63 64 65 66 67 68 70 71 72 73 74 75 76 77 78 80 81 84 86 89 90 91 92 93 94 95 96 99 100 101 103 104 106 107 108 110 112 115 118 121 124 143 144 145"},F:{"46":0.00414,"119":0.00828,"120":0.12831,"121":0.05381,"122":0.58774,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.00414,"109":0.00414,"114":0.64568,"121":0.00414,"122":0.00828,"126":0.00414,"133":0.00414,"135":0.00414,"137":0.01656,"138":0.02897,"139":0.11589,"140":0.98922,"141":6.41959,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 123 124 125 127 128 129 130 131 132 134 136 142"},E:{"14":0.00828,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.2-15.3 15.4 16.0 16.2 16.4 17.0 17.2 18.0 18.1 18.4 26.1 26.2","14.1":0.00828,"15.1":0.00414,"15.5":0.00414,"15.6":0.06209,"16.1":0.00828,"16.3":0.00828,"16.5":0.00828,"16.6":0.71605,"17.1":0.0745,"17.3":0.00414,"17.4":0.00828,"17.5":0.03725,"17.6":0.34768,"18.2":0.00414,"18.3":0.00828,"18.5-18.6":0.05381,"26.0":0.11175},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00071,"5.0-5.1":0,"6.0-6.1":0.00286,"7.0-7.1":0.00214,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00642,"10.0-10.2":0.00071,"10.3":0.01214,"11.0-11.2":0.1799,"11.3-11.4":0.00428,"12.0-12.1":0.00143,"12.2-12.5":0.03498,"13.0-13.1":0,"13.2":0.00357,"13.3":0.00143,"13.4-13.7":0.00571,"14.0-14.4":0.01214,"14.5-14.8":0.01285,"15.0-15.1":0.01214,"15.2-15.3":0.00928,"15.4":0.01071,"15.5":0.01214,"15.6-15.8":0.15848,"16.0":0.02142,"16.1":0.03998,"16.2":0.0207,"16.3":0.03712,"16.4":0.00928,"16.5":0.01642,"16.6-16.7":0.21202,"17.0":0.01499,"17.1":0.02284,"17.2":0.01642,"17.3":0.02427,"17.4":0.04283,"17.5":0.07353,"17.6-17.7":0.18561,"18.0":0.04212,"18.1":0.08709,"18.2":0.04712,"18.3":0.15134,"18.4":0.07781,"18.5-18.6":3.96769,"26.0":0.49043,"26.1":0.01785},P:{"22":0.03088,"24":0.24703,"25":0.62788,"26":0.01029,"27":0.28821,"28":1.23517,"29":0.02059,_:"4 20 21 23 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 17.0 18.0 19.0","7.2-7.4":0.02059,"16.0":0.01029},I:{"0":0.00585,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":1.15462,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.33994},Q:{"14.9":0.00586},O:{"0":0.01172},H:{"0":0},L:{"0":54.37092}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ZA.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ZA.js deleted file mode 100644 index b457ef45..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ZA.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"34":0.006,"52":0.006,"59":0.003,"78":0.003,"115":0.04199,"127":0.003,"128":0.003,"132":0.003,"136":0.006,"140":0.015,"141":0.006,"142":0.012,"143":0.21893,"144":0.20693,"145":0.003,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 129 130 131 133 134 135 137 138 139 146 147 3.5 3.6"},D:{"39":0.006,"40":0.006,"41":0.006,"42":0.006,"43":0.006,"44":0.006,"45":0.006,"46":0.006,"47":0.006,"48":0.006,"49":0.006,"50":0.006,"51":0.006,"52":0.07797,"53":0.006,"54":0.006,"55":0.006,"56":0.006,"57":0.006,"58":0.006,"59":0.006,"60":0.006,"65":0.003,"66":0.009,"69":0.003,"70":0.006,"74":0.003,"75":0.003,"78":0.006,"79":0.012,"81":0.003,"83":0.003,"86":0.003,"87":0.015,"88":0.012,"90":0.003,"91":0.015,"93":0.003,"94":0.003,"98":0.6118,"100":0.009,"101":0.003,"102":0.003,"103":0.009,"104":0.006,"106":0.003,"108":0.009,"109":0.32089,"110":0.003,"111":0.02099,"112":1.42153,"114":0.04499,"116":0.02399,"117":0.006,"118":0.003,"119":0.01799,"120":0.012,"121":0.006,"122":0.02399,"123":0.006,"124":0.02999,"125":1.83239,"126":0.14995,"127":0.009,"128":0.02099,"129":0.006,"130":0.25791,"131":0.03899,"132":0.02099,"133":0.03899,"134":0.02099,"135":0.02399,"136":0.03899,"137":0.04199,"138":0.15895,"139":0.27291,"140":2.75308,"141":5.60213,"142":0.05998,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 67 68 71 72 73 76 77 80 84 85 89 92 95 96 97 99 105 107 113 115 143 144 145"},F:{"84":0.003,"85":0.003,"86":0.006,"89":0.003,"90":0.009,"91":0.07198,"92":0.08097,"95":0.02099,"109":0.003,"120":0.04199,"121":0.01799,"122":0.26691,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 87 88 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.003,"18":0.003,"92":0.009,"100":0.003,"109":0.012,"114":0.02999,"118":0.03299,"122":0.003,"126":0.003,"127":0.003,"131":0.003,"132":0.003,"133":0.003,"134":0.015,"135":0.009,"136":0.003,"137":0.012,"138":0.01799,"139":0.02999,"140":0.47084,"141":2.0873,"142":0.003,_:"12 13 14 15 16 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 119 120 121 123 124 125 128 129 130"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.2-15.3 15.4 26.2","11.1":0.003,"12.1":0.003,"13.1":0.009,"14.1":0.006,"15.1":0.003,"15.5":0.006,"15.6":0.04798,"16.0":0.003,"16.1":0.003,"16.2":0.003,"16.3":0.006,"16.4":0.003,"16.5":0.006,"16.6":0.05698,"17.0":0.003,"17.1":0.03599,"17.2":0.003,"17.3":0.003,"17.4":0.006,"17.5":0.006,"17.6":0.04199,"18.0":0.003,"18.1":0.009,"18.2":0.003,"18.3":0.01799,"18.4":0.009,"18.5-18.6":0.05098,"26.0":0.12596,"26.1":0.006},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00088,"5.0-5.1":0,"6.0-6.1":0.00353,"7.0-7.1":0.00265,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00794,"10.0-10.2":0.00088,"10.3":0.015,"11.0-11.2":0.2223,"11.3-11.4":0.00529,"12.0-12.1":0.00176,"12.2-12.5":0.04322,"13.0-13.1":0,"13.2":0.00441,"13.3":0.00176,"13.4-13.7":0.00706,"14.0-14.4":0.015,"14.5-14.8":0.01588,"15.0-15.1":0.015,"15.2-15.3":0.01147,"15.4":0.01323,"15.5":0.015,"15.6-15.8":0.19583,"16.0":0.02646,"16.1":0.0494,"16.2":0.02558,"16.3":0.04587,"16.4":0.01147,"16.5":0.02029,"16.6-16.7":0.26199,"17.0":0.01852,"17.1":0.02823,"17.2":0.02029,"17.3":0.02999,"17.4":0.05293,"17.5":0.09086,"17.6-17.7":0.22935,"18.0":0.05205,"18.1":0.10762,"18.2":0.05822,"18.3":0.18701,"18.4":0.09615,"18.5-18.6":4.90286,"26.0":0.60602,"26.1":0.02205},P:{"4":0.05061,"20":0.01012,"21":0.02024,"22":0.03037,"23":0.03037,"24":0.12146,"25":0.06073,"26":0.06073,"27":0.13159,"28":5.53669,"29":0.42512,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 13.0 15.0 16.0","7.2-7.4":0.15183,"11.1-11.2":0.02024,"12.0":0.01012,"14.0":0.02024,"17.0":0.01012,"18.0":0.01012,"19.0":0.02024},I:{"0":0.02796,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":2.80541,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.006,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.45507},Q:{_:"14.9"},O:{"0":0.11202},H:{"0":0.03},L:{"0":61.49763}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ZM.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ZM.js deleted file mode 100644 index b6f99013..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ZM.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"112":0.00256,"115":0.023,"127":0.00511,"128":0.00511,"130":0.00256,"135":0.00256,"140":0.00767,"141":0.01022,"142":0.01533,"143":0.24784,"144":0.16352,"145":0.00256,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 116 117 118 119 120 121 122 123 124 125 126 129 131 132 133 134 136 137 138 139 146 147 3.5 3.6"},D:{"39":0.00256,"40":0.00256,"46":0.00256,"47":0.00256,"48":0.00256,"49":0.00256,"51":0.00256,"54":0.00256,"55":0.00511,"56":0.00256,"58":0.00256,"59":0.00256,"61":0.00511,"64":0.00256,"66":0.00256,"68":0.00511,"69":0.00511,"70":0.01278,"71":0.00511,"72":0.00256,"73":0.00511,"75":0.00256,"76":0.00256,"77":0.00767,"78":0.00256,"79":0.00767,"80":0.00511,"81":0.00511,"83":0.01022,"86":0.01022,"87":0.00511,"88":0.00256,"89":0.00256,"90":0.00256,"91":0.01533,"92":0.00256,"93":0.00256,"94":0.00256,"95":0.00256,"97":0.00256,"98":0.00511,"100":0.00767,"102":0.00511,"103":0.023,"104":0.00256,"105":0.00256,"106":0.00767,"108":0.00767,"109":0.28105,"110":0.00256,"111":0.01278,"113":0.00511,"114":0.01533,"116":0.02555,"117":0.00256,"118":0.00256,"119":0.01789,"120":0.01789,"121":0.00511,"122":0.01533,"123":0.00767,"124":0.10987,"125":0.2044,"126":0.03066,"127":0.00511,"128":0.01022,"129":0.00511,"130":0.04088,"131":0.03322,"132":0.01789,"133":0.01789,"134":0.01789,"135":0.02044,"136":0.03577,"137":0.0511,"138":0.19929,"139":0.18396,"140":1.52023,"141":2.91015,"142":0.04088,"143":0.00256,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 41 42 43 44 45 50 52 53 57 60 62 63 65 67 74 84 85 96 99 101 107 112 115 144 145"},F:{"34":0.00256,"36":0.00256,"40":0.00256,"42":0.00256,"46":0.00256,"60":0.00256,"64":0.00256,"75":0.00256,"79":0.00511,"89":0.01022,"90":0.00511,"91":0.05366,"92":0.05621,"95":0.03066,"119":0.00256,"120":0.07921,"121":0.00767,"122":0.38325,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 37 38 39 41 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 62 63 65 66 67 68 69 70 71 72 73 74 76 77 78 80 81 82 83 84 85 86 87 88 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00767,"13":0.023,"14":0.00256,"15":0.00256,"16":0.00256,"17":0.00511,"18":0.03322,"84":0.00511,"89":0.00256,"90":0.01533,"92":0.03322,"100":0.01278,"109":0.01789,"111":0.00256,"114":0.05366,"122":0.01278,"124":0.00256,"125":0.00256,"128":0.00256,"130":0.00256,"131":0.00511,"132":0.00256,"133":0.00256,"134":0.00767,"135":0.00256,"136":0.01278,"137":0.01022,"138":0.02044,"139":0.04855,"140":0.39603,"141":1.25962,"142":0.00256,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 112 113 115 116 117 118 119 120 121 123 126 127 129"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 17.0 17.2 17.4 26.2","13.1":0.00511,"14.1":0.00256,"15.6":0.01022,"16.4":0.00511,"16.5":0.00256,"16.6":0.01789,"17.1":0.02044,"17.3":0.00256,"17.5":0.00511,"17.6":0.02811,"18.0":0.00511,"18.1":0.00256,"18.2":0.00256,"18.3":0.00511,"18.4":0.00511,"18.5-18.6":0.01533,"26.0":0.04855,"26.1":0.00511},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00052,"5.0-5.1":0,"6.0-6.1":0.00207,"7.0-7.1":0.00155,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00465,"10.0-10.2":0.00052,"10.3":0.00878,"11.0-11.2":0.1302,"11.3-11.4":0.0031,"12.0-12.1":0.00103,"12.2-12.5":0.02532,"13.0-13.1":0,"13.2":0.00258,"13.3":0.00103,"13.4-13.7":0.00413,"14.0-14.4":0.00878,"14.5-14.8":0.0093,"15.0-15.1":0.00878,"15.2-15.3":0.00672,"15.4":0.00775,"15.5":0.00878,"15.6-15.8":0.1147,"16.0":0.0155,"16.1":0.02893,"16.2":0.01498,"16.3":0.02687,"16.4":0.00672,"16.5":0.01188,"16.6-16.7":0.15345,"17.0":0.01085,"17.1":0.01653,"17.2":0.01188,"17.3":0.01757,"17.4":0.031,"17.5":0.05322,"17.6-17.7":0.13434,"18.0":0.03048,"18.1":0.06304,"18.2":0.0341,"18.3":0.10954,"18.4":0.05632,"18.5-18.6":2.87172,"26.0":0.35496,"26.1":0.01292},P:{"4":0.04016,"21":0.02008,"22":0.02008,"23":0.02008,"24":0.07029,"25":0.15061,"26":0.04016,"27":0.18074,"28":0.8334,"29":0.02008,_:"20 6.2-6.4 8.2 10.1 12.0 13.0 14.0 15.0 18.0","5.0-5.4":0.02008,"7.2-7.4":0.06025,"9.2":0.01004,"11.1-11.2":0.01004,"16.0":0.01004,"17.0":0.01004,"19.0":0.01004},I:{"0":0.04461,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":12.01122,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00639,"11":0.00639,_:"6 7 8 9 5.5"},S:{"2.5":0.00745,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.07445},Q:{"14.9":0.00745},O:{"0":0.60305},H:{"0":1.36},L:{"0":68.8169}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ZW.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ZW.js deleted file mode 100644 index 994dd3dc..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/ZW.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"72":0.00373,"104":0.00373,"112":0.00373,"113":0.01866,"115":0.07835,"124":0.00373,"127":0.01119,"128":0.00746,"130":0.00373,"133":0.00373,"134":0.00746,"136":0.00746,"139":0.00373,"140":0.01119,"141":0.00746,"142":0.03358,"143":0.64173,"144":0.41787,"145":0.00373,"146":0.00373,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 105 106 107 108 109 110 111 114 116 117 118 119 120 121 122 123 125 126 129 131 132 135 137 138 147 3.5 3.6"},D:{"11":0.00746,"17":0.01119,"39":0.00373,"40":0.00373,"41":0.00373,"42":0.00373,"43":0.00373,"44":0.00373,"45":0.00373,"46":0.00373,"47":0.00373,"48":0.00373,"49":0.00373,"50":0.00373,"51":0.00373,"52":0.00373,"53":0.00373,"55":0.00373,"56":0.00373,"57":0.00373,"58":0.00373,"59":0.00373,"60":0.00373,"64":0.00746,"65":0.00373,"68":0.00373,"69":0.00373,"70":0.01866,"71":0.00746,"72":0.00746,"73":0.00373,"74":0.00373,"75":0.00373,"76":0.01119,"77":0.00373,"78":0.01866,"79":0.01866,"80":0.01119,"81":0.00746,"83":0.00746,"85":0.00373,"86":0.01119,"87":0.04104,"88":0.00373,"89":0.00373,"90":0.00373,"91":0.06343,"93":0.01119,"94":0.00373,"95":0.00746,"96":0.00373,"97":0.01119,"98":0.01119,"99":0.00373,"100":0.01119,"102":0.00373,"103":0.04104,"104":0.0597,"105":0.00746,"106":0.00746,"107":0.00373,"108":0.01119,"109":0.38802,"110":0.00373,"111":0.02612,"112":0.01119,"113":0.00746,"114":0.03358,"115":0.00373,"116":0.02985,"117":0.00373,"118":0.00373,"119":0.04477,"120":0.02985,"121":0.00746,"122":0.04104,"123":0.13059,"124":0.02239,"125":0.94394,"126":0.04104,"127":0.01119,"128":0.04104,"129":0.02612,"130":0.02612,"131":0.10074,"132":0.0485,"133":0.04104,"134":0.07835,"135":0.07462,"136":0.09328,"137":0.13805,"138":0.38802,"139":0.50369,"140":4.55555,"141":7.48439,"142":0.09701,"143":0.00746,_:"4 5 6 7 8 9 10 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 54 61 62 63 66 67 84 92 101 144 145"},F:{"36":0.00373,"42":0.00373,"64":0.00746,"79":0.00373,"87":0.00373,"88":0.00373,"90":0.00373,"91":0.02985,"92":0.02239,"95":0.01866,"113":0.00373,"114":0.00373,"117":0.00373,"118":0.00373,"119":0.00373,"120":0.19028,"121":0.0597,"122":1.85431,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 37 38 39 40 41 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 89 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 115 116 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00746,"13":0.00746,"14":0.05597,"15":0.00373,"16":0.00746,"17":0.00746,"18":0.06343,"84":0.00746,"89":0.01492,"90":0.03358,"92":0.12312,"100":0.02985,"107":0.01119,"109":0.02985,"111":0.01492,"112":0.00746,"114":0.04477,"119":0.00373,"120":0.00373,"122":0.0485,"125":0.00373,"126":0.00373,"127":0.00373,"128":0.00746,"129":0.00373,"130":0.00373,"131":0.01492,"132":0.00746,"133":0.07089,"134":0.00746,"135":0.01492,"136":0.02985,"137":0.02239,"138":0.11566,"139":0.12685,"140":1.21631,"141":4.06679,"142":0.00373,_:"79 80 81 83 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 110 113 115 116 117 118 121 123 124"},E:{"13":0.01119,"15":0.00373,_:"0 4 5 6 7 8 9 10 11 12 14 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.2-15.3 15.4 15.5 16.0 16.2 16.4 17.0 17.2 26.2","12.1":0.00373,"13.1":0.01119,"14.1":0.07089,"15.1":0.00373,"15.6":0.0485,"16.1":0.00373,"16.3":0.00373,"16.5":0.00373,"16.6":0.02612,"17.1":0.01119,"17.3":0.00373,"17.4":0.01866,"17.5":0.01119,"17.6":0.06343,"18.0":0.02612,"18.1":0.00373,"18.2":0.00746,"18.3":0.01492,"18.4":0.00746,"18.5-18.6":0.03358,"26.0":0.30221,"26.1":0.01119},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00048,"5.0-5.1":0,"6.0-6.1":0.00192,"7.0-7.1":0.00144,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00433,"10.0-10.2":0.00048,"10.3":0.00817,"11.0-11.2":0.12115,"11.3-11.4":0.00288,"12.0-12.1":0.00096,"12.2-12.5":0.02356,"13.0-13.1":0,"13.2":0.0024,"13.3":0.00096,"13.4-13.7":0.00385,"14.0-14.4":0.00817,"14.5-14.8":0.00865,"15.0-15.1":0.00817,"15.2-15.3":0.00625,"15.4":0.00721,"15.5":0.00817,"15.6-15.8":0.10673,"16.0":0.01442,"16.1":0.02692,"16.2":0.01394,"16.3":0.025,"16.4":0.00625,"16.5":0.01106,"16.6-16.7":0.14278,"17.0":0.0101,"17.1":0.01538,"17.2":0.01106,"17.3":0.01635,"17.4":0.02885,"17.5":0.04952,"17.6-17.7":0.125,"18.0":0.02836,"18.1":0.05865,"18.2":0.03173,"18.3":0.10192,"18.4":0.0524,"18.5-18.6":2.67204,"26.0":0.33028,"26.1":0.01202},P:{"4":0.02052,"21":0.05129,"22":0.02052,"23":0.02052,"24":0.13336,"25":0.1231,"26":0.06155,"27":0.23595,"28":2.07224,"29":0.18466,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 18.0","7.2-7.4":0.10259,"11.1-11.2":0.01026,"16.0":0.01026,"17.0":0.01026,"19.0":0.02052},I:{"0":0.02504,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":5.54106,_:"10 11 12 11.1 11.5 12.1"},A:{"10":0.00995,"11":0.00497,_:"6 7 8 9 5.5"},S:{"2.5":0.00627,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.16924},Q:{"14.9":0.06895},O:{"0":0.35728},H:{"0":0.05},L:{"0":57.82064}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-af.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-af.js deleted file mode 100644 index 3407dfa7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-af.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.04932,"78":0.00329,"114":0.00329,"115":0.21701,"127":0.00658,"128":0.00986,"136":0.00658,"138":0.00658,"139":0.00329,"140":0.0263,"141":0.00986,"142":0.01973,"143":0.42086,"144":0.38141,"145":0.00329,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 116 117 118 119 120 121 122 123 124 125 126 129 130 131 132 133 134 135 137 146 147 3.5 3.6"},D:{"39":0.00329,"40":0.00329,"41":0.00329,"42":0.00329,"43":0.00658,"44":0.00329,"45":0.00329,"46":0.00329,"47":0.00986,"48":0.00658,"49":0.00986,"50":0.00658,"51":0.00329,"52":0.0263,"53":0.00329,"54":0.00329,"55":0.00658,"56":0.00658,"57":0.00329,"58":0.00329,"59":0.00329,"60":0.00329,"62":0.00329,"65":0.00329,"66":0.00329,"69":0.00329,"70":0.00986,"71":0.00329,"72":0.00329,"73":0.00658,"74":0.00658,"75":0.00658,"76":0.00329,"78":0.00986,"79":0.0263,"80":0.00658,"81":0.00658,"83":0.00986,"85":0.00329,"86":0.00986,"87":0.02302,"88":0.00658,"91":0.00986,"93":0.00658,"94":0.00329,"95":0.00658,"98":0.19728,"100":0.00658,"101":0.00329,"102":0.00658,"103":0.02302,"104":0.01973,"105":0.01644,"106":0.00986,"107":0.00329,"108":0.01315,"109":0.90091,"110":0.00658,"111":0.01644,"112":1.8084,"113":0.00329,"114":0.03288,"116":0.04274,"117":0.00658,"118":0.00658,"119":0.0263,"120":0.01973,"121":0.02302,"122":0.03288,"123":0.01644,"124":0.03288,"125":1.72949,"126":0.18084,"127":0.01644,"128":0.03946,"129":0.01644,"130":0.10193,"131":0.07234,"132":0.03288,"133":0.04274,"134":0.06576,"135":0.04603,"136":0.05918,"137":0.08549,"138":0.26962,"139":0.40771,"140":3.25183,"141":6.93768,"142":0.08549,"143":0.00329,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 63 64 67 68 77 84 89 90 92 96 97 99 115 144 145"},F:{"79":0.00658,"89":0.00658,"90":0.01973,"91":0.07891,"92":0.08549,"95":0.0263,"120":0.06905,"121":0.0263,"122":0.48005,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 87 88 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"18":0.01644,"90":0.00329,"92":0.0263,"100":0.00658,"109":0.01644,"114":0.05918,"118":0.01315,"122":0.00986,"128":0.00329,"129":0.00329,"130":0.00329,"131":0.00986,"132":0.00658,"133":0.00658,"134":0.01315,"135":0.00986,"136":0.00986,"137":0.01315,"138":0.0263,"139":0.03946,"140":0.44059,"141":1.99253,"142":0.00658,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 119 120 121 123 124 125 126 127"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.4 17.0 17.2 26.2","5.1":0.00986,"13.1":0.00986,"14.1":0.00986,"15.6":0.04274,"16.3":0.00329,"16.5":0.00329,"16.6":0.03946,"17.1":0.01973,"17.3":0.00329,"17.4":0.00658,"17.5":0.00986,"17.6":0.04274,"18.0":0.00658,"18.1":0.00658,"18.2":0.00658,"18.3":0.01644,"18.4":0.00986,"18.5-18.6":0.04274,"26.0":0.12166,"26.1":0.00658},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.00075,"6.0-6.1":0,"7.0-7.1":0.01118,"8.1-8.4":0,"9.0-9.2":0.00075,"9.3":0.01118,"10.0-10.2":0.00373,"10.3":0.00894,"11.0-11.2":0.11473,"11.3-11.4":0.00149,"12.0-12.1":0.00075,"12.2-12.5":0.06333,"13.0-13.1":0,"13.2":0.00149,"13.3":0.00075,"13.4-13.7":0.00298,"14.0-14.4":0.00447,"14.5-14.8":0.00596,"15.0-15.1":0.0596,"15.2-15.3":0.01416,"15.4":0.01267,"15.5":0.01788,"15.6-15.8":0.43063,"16.0":0.03949,"16.1":0.05662,"16.2":0.03427,"16.3":0.04768,"16.4":0.01788,"16.5":0.0298,"16.6-16.7":0.44031,"17.0":0.02161,"17.1":0.02682,"17.2":0.02161,"17.3":0.02682,"17.4":0.04172,"17.5":0.10132,"17.6-17.7":0.17359,"18.0":0.08344,"18.1":0.14379,"18.2":0.10058,"18.3":0.24884,"18.4":0.13858,"18.5-18.6":3.2692,"26.0":0.64594,"26.1":0.02682},P:{"4":0.01061,"21":0.01061,"22":0.03183,"23":0.02122,"24":0.09549,"25":0.08488,"26":0.07427,"27":0.12732,"28":2.64188,"29":0.19098,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 13.0 14.0 15.0 16.0 17.0 18.0","7.2-7.4":0.1061,"11.1-11.2":0.01061,"19.0":0.01061},I:{"0":0.04691,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":5.55914,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01397,"11":0.04192,_:"6 7 9 10 5.5"},S:{"2.5":0.01342,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.30204},Q:{"14.9":0.00671},O:{"0":0.18122},H:{"0":0.73},L:{"0":58.72886}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-an.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-an.js deleted file mode 100644 index b750ffe4..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-an.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"64":0.24966,"114":0.02219,"136":0.02219,"138":0.02219,"143":0.02219,"144":2.21365,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 137 139 140 141 142 145 146 147 3.5 3.6"},D:{"109":0.02219,"122":0.09986,"124":0.29959,"138":0.02219,"139":0.09986,"140":0.6935,"141":14.30829,"143":0.04993,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 119 120 121 123 125 126 127 128 129 130 131 132 133 134 135 136 137 142 144 145"},F:{"119":0.02219,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 120 121 122 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"140":0.1498,"141":3.87805,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.5 16.0 16.1 26.2","15.2-15.3":0.02219,"15.4":0.02219,"15.6":0.27185,"16.2":0.02219,"16.3":0.59364,"16.4":0.09986,"16.5":0.37172,"16.6":2.21365,"17.0":0.24966,"17.1":3.10688,"17.2":0.64357,"17.3":0.37172,"17.4":0.47158,"17.5":3.00702,"17.6":6.03622,"18.0":1.5146,"18.1":0.24966,"18.2":0.1498,"18.3":0.22192,"18.4":0.17199,"18.5-18.6":0.89323,"26.0":2.33571,"26.1":0.02219},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0,"9.3":0,"10.0-10.2":0,"10.3":0,"11.0-11.2":0,"11.3-11.4":0,"12.0-12.1":0,"12.2-12.5":0,"13.0-13.1":0,"13.2":0,"13.3":0,"13.4-13.7":0,"14.0-14.4":0,"14.5-14.8":0,"15.0-15.1":0,"15.2-15.3":0,"15.4":0,"15.5":0,"15.6-15.8":0.07323,"16.0":0.02441,"16.1":0.31732,"16.2":0.46378,"16.3":0.31732,"16.4":0.02441,"16.5":0.7811,"16.6-16.7":3.9828,"17.0":0,"17.1":0.29291,"17.2":0.41496,"17.3":0.17087,"17.4":0.07323,"17.5":7.28215,"17.6-17.7":3.66548,"18.0":0.07323,"18.1":0.14646,"18.2":0.07323,"18.3":0.75669,"18.4":0.17087,"18.5-18.6":12.85156,"26.0":0,"26.1":0},P:{"28":0.62328,_:"4 20 21 22 23 24 25 26 27 29 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0},K:{"0":0,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.42294},Q:{_:"14.9"},O:{_:"0"},H:{"0":0},L:{"0":3.01395}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-as.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-as.js deleted file mode 100644 index 0bcd8fcf..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-as.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"43":0.18536,"115":0.08138,"128":0.01808,"136":0.00452,"140":0.01356,"141":0.00452,"142":0.01356,"143":0.29839,"144":0.25318,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 137 138 139 145 146 147 3.5 3.6"},D:{"41":0.00452,"45":0.00452,"47":0.00452,"48":0.00904,"49":0.00904,"52":0.00452,"53":0.00452,"55":0.00452,"56":0.00452,"57":0.00452,"58":0.00452,"69":0.02261,"70":0.00904,"77":0.03165,"79":0.03165,"80":0.00452,"81":0.00904,"83":0.01356,"85":0.00452,"86":0.01356,"87":0.03165,"91":0.01808,"92":0.01808,"93":0.00904,"95":0.00452,"97":0.01356,"98":0.03617,"99":0.01356,"101":0.01808,"102":0.00452,"103":0.06329,"104":0.02261,"105":0.29839,"106":0.06329,"107":0.02261,"108":0.02261,"109":0.61486,"110":0.21701,"111":0.13563,"112":0.65555,"113":0.09494,"114":0.31647,"115":0.01808,"116":0.02713,"117":0.02261,"118":0.22153,"119":0.04973,"120":0.13111,"121":0.14919,"122":0.14467,"123":0.07686,"124":0.05877,"125":1.32465,"126":11.50142,"127":0.1085,"128":0.14015,"129":0.13563,"130":0.13563,"131":0.08138,"132":0.04521,"133":0.04521,"134":4.93693,"135":0.04521,"136":0.04521,"137":0.26222,"138":0.18988,"139":0.21701,"140":3.15114,"141":6.83123,"142":0.07686,"143":0.00904,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 43 44 46 50 51 54 59 60 61 62 63 64 65 66 67 68 71 72 73 74 75 76 78 84 88 89 90 94 96 100 144 145"},F:{"91":0.03165,"92":0.04973,"95":0.00904,"120":0.02713,"121":0.01808,"122":0.21701,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.01356,"109":0.02713,"113":0.00904,"114":0.02261,"115":0.00452,"120":0.05425,"121":0.01356,"122":0.00904,"123":0.00452,"125":0.00452,"126":0.00904,"127":0.01356,"128":0.00904,"129":0.00904,"130":0.00904,"131":0.02261,"132":0.00904,"133":0.01356,"134":0.01356,"135":0.01356,"136":0.01808,"137":0.01808,"138":0.04069,"139":0.05425,"140":0.48827,"141":2.11583,"142":0.00452,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 116 117 118 119 124"},E:{"14":0.00452,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 15.4 15.5 16.0 16.2 16.4 17.0 17.2 26.1 26.2","13.1":0.00904,"14.1":0.00904,"15.6":0.03617,"16.1":0.00904,"16.3":0.00904,"16.5":0.00452,"16.6":0.04069,"17.1":0.02261,"17.3":0.00452,"17.4":0.00904,"17.5":0.01356,"17.6":0.04069,"18.0":0.00452,"18.1":0.00904,"18.2":0.00452,"18.3":0.02261,"18.4":0.00904,"18.5-18.6":0.05425,"26.0":0.13111},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00198,"5.0-5.1":0.00132,"6.0-6.1":0.00066,"7.0-7.1":0.00528,"8.1-8.4":0,"9.0-9.2":0.00198,"9.3":0.00462,"10.0-10.2":0,"10.3":0.01517,"11.0-11.2":0.16888,"11.3-11.4":0.0033,"12.0-12.1":0.00198,"12.2-12.5":0.04486,"13.0-13.1":0.00066,"13.2":0.0066,"13.3":0.00198,"13.4-13.7":0.01055,"14.0-14.4":0.02177,"14.5-14.8":0.02243,"15.0-15.1":0.01649,"15.2-15.3":0.01583,"15.4":0.01913,"15.5":0.02177,"15.6-15.8":0.23089,"16.0":0.0343,"16.1":0.05211,"16.2":0.031,"16.3":0.05277,"16.4":0.01517,"16.5":0.02573,"16.6-16.7":0.24804,"17.0":0.02045,"17.1":0.02837,"17.2":0.02441,"17.3":0.03892,"17.4":0.06135,"17.5":0.10093,"17.6-17.7":0.21901,"18.0":0.06663,"18.1":0.1128,"18.2":0.07454,"18.3":0.1913,"18.4":0.11148,"18.5-18.6":3.00612,"26.0":0.59766,"26.1":0.02045},P:{"22":0.01113,"23":0.01113,"24":0.01113,"25":0.02226,"26":0.0334,"27":0.05566,"28":1.15772,"29":0.08906,_:"4 20 21 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01113},I:{"0":0.86508,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00043},K:{"0":0.77993,_:"10 11 12 11.1 11.5 12.1"},A:{"9":0.03119,"11":0.5927,_:"6 7 8 10 5.5"},S:{"2.5":0.0274,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.14793},Q:{"14.9":0.26299},O:{"0":1.01909},H:{"0":0.02},L:{"0":48.59799}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-eu.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-eu.js deleted file mode 100644 index de7d811f..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-eu.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.03062,"54":0.0051,"59":0.01021,"68":0.0051,"78":0.01531,"105":0.01021,"115":0.30114,"119":0.01531,"125":0.0051,"127":0.0051,"128":0.14802,"132":0.0051,"133":0.28072,"134":0.01531,"135":0.02042,"136":0.02042,"137":0.01531,"138":0.01021,"139":0.01531,"140":0.11229,"141":0.02552,"142":0.06635,"143":1.48526,"144":1.34746,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 55 56 57 58 60 61 62 63 64 65 66 67 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 106 107 108 109 110 111 112 113 114 116 117 118 120 121 122 123 124 126 129 130 131 145 146 147 3.5 3.6"},D:{"39":0.0051,"40":0.0051,"41":0.01531,"42":0.01021,"43":0.0051,"44":0.0051,"45":0.01531,"46":0.0051,"47":0.01021,"48":0.01531,"49":0.02042,"50":0.0051,"51":0.01021,"52":0.01531,"53":0.01021,"54":0.0051,"55":0.01021,"56":0.01021,"57":0.01021,"58":0.01021,"59":0.01021,"60":0.0051,"66":0.05104,"68":0.01021,"70":0.04594,"74":0.0051,"79":0.04083,"80":0.0051,"81":0.0051,"85":0.01021,"87":0.03062,"88":0.02042,"91":0.03573,"92":0.05614,"93":0.0051,"97":0.01021,"98":0.06635,"99":0.0051,"100":0.01531,"102":0.02552,"103":0.04594,"104":0.03573,"106":0.01021,"107":0.0051,"108":0.02042,"109":0.7707,"111":0.02552,"112":0.36238,"113":0.0051,"114":0.02552,"115":0.01021,"116":0.09187,"117":0.01531,"118":0.15822,"119":0.04083,"120":0.08677,"121":0.02042,"122":0.08166,"123":0.05614,"124":0.05104,"125":1.17902,"126":0.27051,"127":0.04083,"128":0.07146,"129":0.03062,"130":0.61758,"131":0.2552,"132":0.14291,"133":0.06635,"134":0.26541,"135":0.08677,"136":0.1225,"137":0.14291,"138":0.41853,"139":0.90851,"140":6.7577,"141":14.2963,"142":0.18885,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 69 71 72 73 75 76 77 78 83 84 86 89 90 94 95 96 101 105 110 143 144 145"},F:{"31":0.0051,"40":0.01021,"46":0.01531,"91":0.02552,"92":0.05104,"95":0.07656,"114":0.0051,"119":0.0051,"120":0.19395,"121":0.2603,"122":2.10285,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 116 117 118 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.0051,"96":0.0051,"109":0.05104,"114":0.01021,"120":0.0051,"121":0.01531,"122":0.04594,"126":0.0051,"131":0.01531,"132":0.01021,"133":0.01021,"134":0.03573,"135":0.01021,"136":0.01531,"137":0.01531,"138":0.04083,"139":0.05104,"140":1.1535,"141":5.06827,"142":0.01021,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 123 124 125 127 128 129 130"},E:{"14":0.01021,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.2-15.3 26.2","11.1":0.01021,"12.1":0.0051,"13.1":0.03062,"14.1":0.03573,"15.1":0.02042,"15.4":0.0051,"15.5":0.01021,"15.6":0.15312,"16.0":0.01021,"16.1":0.01531,"16.2":0.01531,"16.3":0.02552,"16.4":0.01021,"16.5":0.01531,"16.6":0.21437,"17.0":0.01021,"17.1":0.15822,"17.2":0.01531,"17.3":0.02042,"17.4":0.03573,"17.5":0.06125,"17.6":0.19906,"18.0":0.02042,"18.1":0.04083,"18.2":0.02042,"18.3":0.08166,"18.4":0.04083,"18.5-18.6":0.18374,"26.0":0.57675,"26.1":0.02042},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.02131,"10.0-10.2":0.00304,"10.3":0.0274,"11.0-11.2":0.27861,"11.3-11.4":0.01218,"12.0-12.1":0.00152,"12.2-12.5":0.07156,"13.0-13.1":0,"13.2":0.00152,"13.3":0,"13.4-13.7":0.00152,"14.0-14.4":0.00457,"14.5-14.8":0.00761,"15.0-15.1":0.01066,"15.2-15.3":0.01066,"15.4":0.01218,"15.5":0.01218,"15.6-15.8":0.27861,"16.0":0.03349,"16.1":0.0746,"16.2":0.03197,"16.3":0.06851,"16.4":0.00913,"16.5":0.02284,"16.6-16.7":0.41868,"17.0":0.02436,"17.1":0.03502,"17.2":0.01979,"17.3":0.03045,"17.4":0.04872,"17.5":0.12789,"17.6-17.7":0.36844,"18.0":0.06851,"18.1":0.15986,"18.2":0.06699,"18.3":0.2847,"18.4":0.13246,"18.5-18.6":8.97044,"26.0":1.03985,"26.1":0.03197},P:{"4":0.01071,"21":0.02142,"22":0.02142,"23":0.02142,"24":0.02142,"25":0.02142,"26":0.05354,"27":0.06425,"28":2.75198,"29":0.21416,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01071},I:{"0":0.02934,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00002},K:{"0":0.47991,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01148,"9":0.02871,"11":0.05168,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.50929},Q:{_:"14.9"},O:{"0":0.06366},H:{"0":0},L:{"0":31.76172}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-na.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-na.js deleted file mode 100644 index e29ae537..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-na.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"11":0.15879,"44":0.00567,"52":0.01134,"78":0.01701,"115":0.14745,"118":0.50472,"125":0.01134,"128":0.02836,"133":0.00567,"134":0.00567,"135":0.01134,"136":0.01701,"137":0.01701,"138":0.01701,"139":0.01134,"140":0.09074,"141":0.02268,"142":0.07372,"143":0.90736,"144":0.7826,_:"2 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 119 120 121 122 123 124 126 127 129 130 131 132 145 146 147 3.5 3.6"},D:{"39":0.01134,"40":0.00567,"41":0.01134,"42":0.01134,"43":0.01134,"44":0.01134,"45":0.01134,"46":0.01134,"47":0.01134,"48":0.03403,"49":0.02268,"50":0.01134,"51":0.01134,"52":0.01701,"53":0.01134,"54":0.01134,"55":0.01134,"56":0.02836,"57":0.01134,"58":0.01134,"59":0.01134,"60":0.01134,"64":0.00567,"66":0.02268,"79":0.18147,"80":0.01134,"81":0.1758,"83":0.17013,"84":0.01134,"85":0.00567,"87":0.02268,"88":0.00567,"90":0.00567,"91":0.01701,"93":0.01701,"96":0.00567,"98":0.01134,"99":0.02268,"100":0.00567,"101":0.01134,"102":0.01134,"103":0.1361,"104":0.04537,"108":0.01134,"109":0.32892,"111":0.00567,"112":0.22117,"113":0.00567,"114":0.04537,"115":0.01701,"116":0.11342,"117":0.36862,"118":0.02268,"119":0.02836,"120":0.05104,"121":0.07939,"122":0.10775,"123":0.02268,"124":0.10208,"125":6.70312,"126":0.37996,"127":0.03403,"128":0.10775,"129":0.03403,"130":5.63697,"131":0.27788,"132":0.20416,"133":0.06805,"134":0.11342,"135":0.08507,"136":0.14745,"137":0.41965,"138":1.17957,"139":1.77502,"140":5.93187,"141":11.33633,"142":0.22684,"143":0.00567,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 65 67 68 69 70 71 72 73 74 75 76 77 78 86 89 92 94 95 97 105 106 107 110 144 145"},F:{"91":0.01134,"92":0.02836,"95":0.02268,"120":0.06805,"121":0.05671,"122":0.51606,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.04537,"114":0.00567,"121":0.0397,"122":0.01134,"131":0.01701,"132":0.01134,"133":0.01134,"134":0.04537,"135":0.01701,"136":0.01701,"137":0.01701,"138":0.0397,"139":0.05671,"140":1.0945,"141":4.62187,"142":0.01134,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 123 124 125 126 127 128 129 130"},E:{"14":0.01701,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 15.2-15.3 26.2","12.1":0.00567,"13.1":0.05104,"14.1":0.0397,"15.1":0.0397,"15.4":0.01134,"15.5":0.01134,"15.6":0.16446,"16.0":0.00567,"16.1":0.02268,"16.2":0.01701,"16.3":0.0397,"16.4":0.01701,"16.5":0.02836,"16.6":0.28355,"17.0":0.01134,"17.1":0.20416,"17.2":0.01701,"17.3":0.02268,"17.4":0.05104,"17.5":0.07372,"17.6":0.30623,"18.0":0.02836,"18.1":0.05104,"18.2":0.02836,"18.3":0.10775,"18.4":0.06238,"18.5-18.6":0.23818,"26.0":0.58411,"26.1":0.02268},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0.0206,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01236,"10.0-10.2":0,"10.3":0.02266,"11.0-11.2":0.43666,"11.3-11.4":0.0103,"12.0-12.1":0.00206,"12.2-12.5":0.05973,"13.0-13.1":0,"13.2":0.00206,"13.3":0.00206,"13.4-13.7":0.00824,"14.0-14.4":0.02266,"14.5-14.8":0.02678,"15.0-15.1":0.02472,"15.2-15.3":0.01648,"15.4":0.01236,"15.5":0.01854,"15.6-15.8":0.22863,"16.0":0.02884,"16.1":0.07827,"16.2":0.03502,"16.3":0.06385,"16.4":0.01236,"16.5":0.02472,"16.6-16.7":0.44284,"17.0":0.03296,"17.1":0.05767,"17.2":0.03502,"17.3":0.04531,"17.4":0.10711,"17.5":0.14006,"17.6-17.7":0.43255,"18.0":0.05561,"18.1":0.17714,"18.2":0.07415,"18.3":0.30896,"18.4":0.138,"18.5-18.6":13.14731,"26.0":0.95366,"26.1":0.04325},P:{"21":0.01114,"23":0.02228,"24":0.01114,"26":0.02228,"27":0.03342,"28":1.20326,"29":0.1337,_:"4 20 22 25 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.15525,"3":0.00008,"4":0.00002,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00031,"4.4":0,"4.4.3-4.4.4":0.00006},K:{"0":0.25108,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00742,"9":0.03708,"11":0.05191,_:"6 7 10 5.5"},S:{"2.5":0.00433,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.54545},Q:{"14.9":0.00866},O:{"0":0.02597},H:{"0":0},L:{"0":21.64366}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-oc.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-oc.js deleted file mode 100644 index d81689b7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-oc.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"52":0.01062,"78":0.01593,"115":0.12213,"125":0.01062,"128":0.01062,"133":0.00531,"134":0.00531,"135":0.00531,"136":0.01062,"138":0.00531,"139":0.01062,"140":0.06372,"141":0.01593,"142":0.05841,"143":1.01421,"144":0.88146,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 126 127 129 130 131 132 137 145 146 147 3.5 3.6"},D:{"25":0.03186,"34":0.01062,"38":0.04779,"39":0.01062,"40":0.01062,"41":0.01062,"42":0.01062,"43":0.01062,"44":0.01062,"45":0.01062,"46":0.01062,"47":0.01062,"48":0.01062,"49":0.02124,"50":0.01062,"51":0.01062,"52":0.01593,"53":0.01062,"54":0.01062,"55":0.01593,"56":0.01062,"57":0.01062,"58":0.01062,"59":0.01593,"60":0.01062,"79":0.03186,"81":0.01062,"85":0.01593,"86":0.00531,"87":0.03186,"88":0.01593,"98":0.01062,"99":0.01062,"101":0.00531,"102":0.00531,"103":0.07434,"104":0.01593,"105":0.01062,"108":0.03717,"109":0.35577,"111":0.02655,"112":0.00531,"113":0.01062,"114":0.04248,"116":0.14868,"117":0.01062,"118":0.01062,"119":0.02124,"120":0.03717,"121":0.02655,"122":0.06372,"123":0.04248,"124":0.04779,"125":1.30095,"126":0.12744,"127":0.07965,"128":0.13806,"129":0.03186,"130":0.96642,"131":0.3186,"132":0.09558,"133":0.05841,"134":0.13275,"135":0.08496,"136":0.1062,"137":0.18054,"138":0.65844,"139":1.26909,"140":7.52427,"141":16.00434,"142":0.18585,"143":0.01593,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 26 27 28 29 30 31 32 33 35 36 37 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 83 84 89 90 91 92 93 94 95 96 97 100 106 107 110 115 144 145"},F:{"46":0.00531,"91":0.00531,"92":0.01062,"95":0.01062,"120":0.12213,"121":0.13275,"122":1.00359,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"85":0.01062,"109":0.04779,"113":0.00531,"114":0.00531,"120":0.01062,"122":0.00531,"129":0.00531,"131":0.01062,"132":0.01062,"133":0.01062,"134":0.03186,"135":0.02655,"136":0.02124,"137":0.01593,"138":0.04248,"139":0.05841,"140":1.33812,"141":5.85162,"142":0.01062,_:"12 13 14 15 16 17 18 79 80 81 83 84 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 115 116 117 118 119 121 123 124 125 126 127 128 130"},E:{"13":0.00531,"14":0.02124,_:"0 4 5 6 7 8 9 10 11 12 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 26.2","12.1":0.01593,"13.1":0.0531,"14.1":0.07965,"15.1":0.01062,"15.2-15.3":0.01062,"15.4":0.01593,"15.5":0.03717,"15.6":0.30798,"16.0":0.01593,"16.1":0.05841,"16.2":0.06903,"16.3":0.07434,"16.4":0.02124,"16.5":0.03186,"16.6":0.43011,"17.0":0.00531,"17.1":0.39825,"17.2":0.02655,"17.3":0.04779,"17.4":0.06903,"17.5":0.11682,"17.6":0.3717,"18.0":0.02655,"18.1":0.06903,"18.2":0.0531,"18.3":0.14868,"18.4":0.07965,"18.5-18.6":0.33453,"26.0":0.80712,"26.1":0.02655},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.00415,"6.0-6.1":0,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0.00208,"9.3":0.02492,"10.0-10.2":0,"10.3":0.04361,"11.0-11.2":0.71024,"11.3-11.4":0.01661,"12.0-12.1":0.00415,"12.2-12.5":0.15991,"13.0-13.1":0.00415,"13.2":0.00208,"13.3":0.00415,"13.4-13.7":0.01661,"14.0-14.4":0.02077,"14.5-14.8":0.02077,"15.0-15.1":0.02077,"15.2-15.3":0.01454,"15.4":0.01661,"15.5":0.02284,"15.6-15.8":0.38212,"16.0":0.03115,"16.1":0.09345,"16.2":0.04569,"16.3":0.08099,"16.4":0.01661,"16.5":0.03323,"16.6-16.7":0.61264,"17.0":0.02077,"17.1":0.04153,"17.2":0.02492,"17.3":0.03738,"17.4":0.0623,"17.5":0.14537,"17.6-17.7":0.52334,"18.0":0.05607,"18.1":0.18275,"18.2":0.08099,"18.3":0.32605,"18.4":0.14952,"18.5-18.6":12.98373,"26.0":1.09651,"26.1":0.04361},P:{"4":0.12169,"21":0.02213,"22":0.01106,"23":0.02213,"24":0.02213,"25":0.03319,"26":0.05532,"27":0.06638,"28":2.61091,"29":0.19914,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01106},I:{"0":0.02343,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.13601,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.01144,"9":0.12581,"11":0.01144,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.4221},Q:{"14.9":0.00469},O:{"0":0.03283},H:{"0":0},L:{"0":23.93021}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-sa.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-sa.js deleted file mode 100644 index fabfad03..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-sa.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"4":0.02749,"115":0.0756,"128":0.01375,"140":0.02749,"141":0.00687,"142":0.01375,"143":0.36427,"144":0.32303,_:"2 3 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 121 122 123 124 125 126 127 129 130 131 132 133 134 135 136 137 138 139 145 146 147 3.5 3.6"},D:{"39":0.02062,"40":0.02062,"41":0.02062,"42":0.02062,"43":0.02062,"44":0.02062,"45":0.02062,"46":0.02062,"47":0.02062,"48":0.02062,"49":0.02062,"50":0.02062,"51":0.02062,"52":0.02062,"53":0.02062,"54":0.02062,"55":0.02062,"56":0.02062,"57":0.02062,"58":0.02062,"59":0.02062,"60":0.02062,"66":0.01375,"79":0.01375,"87":0.02062,"103":0.01375,"104":0.02062,"108":0.00687,"109":0.57733,"111":0.00687,"112":25.01085,"114":0.01375,"116":0.02749,"119":0.03437,"120":0.04811,"121":0.00687,"122":0.03437,"123":0.00687,"124":0.02062,"125":16.17217,"126":2.18561,"127":0.02062,"128":0.06186,"129":0.01375,"130":0.02062,"131":0.18557,"132":0.02749,"133":0.03437,"134":0.03437,"135":0.04124,"136":0.04811,"137":0.05498,"138":0.16495,"139":0.29554,"140":4.06882,"141":10.96244,"142":0.16495,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 78 80 81 83 84 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 105 106 107 110 113 115 117 118 143 144 145"},F:{"92":0.00687,"95":0.01375,"120":0.05498,"121":0.19932,"122":1.29212,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.01375,"114":0.04124,"134":0.01375,"138":0.01375,"139":0.02062,"140":0.41925,"141":2.02754,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 135 136 137 142"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 14.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.0 17.2 17.3 17.4 17.5 18.0 18.1 18.2 18.4 26.1 26.2","15.6":0.01375,"16.6":0.02062,"17.1":0.00687,"17.6":0.02749,"18.3":0.00687,"18.5-18.6":0.02749,"26.0":0.11684},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00219,"10.0-10.2":0.00125,"10.3":0.0025,"11.0-11.2":0.50451,"11.3-11.4":0.00718,"12.0-12.1":0,"12.2-12.5":0.00469,"13.0-13.1":0,"13.2":0.00687,"13.3":0,"13.4-13.7":0.00219,"14.0-14.4":0.00094,"14.5-14.8":0.00219,"15.0-15.1":0.00125,"15.2-15.3":0.00094,"15.4":0.00094,"15.5":0.00187,"15.6-15.8":0.04717,"16.0":0.005,"16.1":0.01093,"16.2":0.00437,"16.3":0.00968,"16.4":0.00344,"16.5":0.00406,"16.6-16.7":0.08997,"17.0":0.00219,"17.1":0.00625,"17.2":0.0025,"17.3":0.00594,"17.4":0.00687,"17.5":0.02155,"17.6-17.7":0.05217,"18.0":0.01343,"18.1":0.03124,"18.2":0.01062,"18.3":0.05467,"18.4":0.01968,"18.5-18.6":1.48134,"26.0":0.2496,"26.1":0.00843},P:{"25":0.01106,"26":0.03318,"27":0.02212,"28":0.76306,"29":0.05529,_:"4 20 21 22 23 24 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.02212},I:{"0":0.03438,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.08443,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00859,"9":0.01718,"11":0.04296,_:"6 7 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.06567},Q:{_:"14.9"},O:{"0":0.00625},H:{"0":0},L:{"0":28.54042}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-ww.js b/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-ww.js deleted file mode 100644 index b2bae6e7..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/data/regions/alt-ww.js +++ /dev/null @@ -1 +0,0 @@ -module.exports={C:{"11":0.02984,"43":0.09449,"52":0.00995,"78":0.00497,"115":0.13924,"118":0.10443,"128":0.04476,"133":0.0547,"134":0.00497,"135":0.00995,"136":0.00995,"137":0.00995,"138":0.00497,"139":0.00497,"140":0.04973,"141":0.01492,"142":0.03481,"143":0.65146,"144":0.5719,_:"2 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 119 120 121 122 123 124 125 126 127 129 130 131 132 145 146 147 3.5 3.6"},D:{"39":0.00497,"40":0.00497,"41":0.00995,"42":0.00497,"43":0.00497,"44":0.00497,"45":0.00995,"46":0.00497,"47":0.00995,"48":0.01492,"49":0.01492,"50":0.00497,"51":0.00497,"52":0.00995,"53":0.00995,"54":0.00497,"55":0.00995,"56":0.00995,"57":0.00995,"58":0.00995,"59":0.00497,"60":0.00497,"66":0.01492,"69":0.00995,"70":0.01492,"77":0.01989,"79":0.06465,"80":0.00497,"81":0.03978,"83":0.03978,"85":0.00497,"86":0.00995,"87":0.02984,"88":0.00497,"91":0.01989,"92":0.01989,"93":0.00995,"97":0.00995,"98":0.03978,"99":0.01492,"100":0.00497,"101":0.00995,"102":0.00995,"103":0.06962,"104":0.02984,"105":0.15416,"106":0.03481,"107":0.01492,"108":0.01989,"109":0.58681,"110":0.11438,"111":0.0746,"112":2.08866,"113":0.04973,"114":0.17903,"115":0.01492,"116":0.0547,"117":0.08951,"118":0.14422,"119":0.03978,"120":0.09946,"121":0.09449,"122":0.11438,"123":0.0547,"124":0.05968,"125":3.33688,"126":6.13171,"127":0.0746,"128":0.11438,"129":0.08454,"130":1.33276,"131":0.15914,"132":0.09449,"133":0.0547,"134":2.59591,"135":0.06465,"136":0.07957,"137":0.25362,"138":0.43762,"139":0.6813,"140":4.47073,"141":9.4487,"142":0.13427,"143":0.00995,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 65 67 68 71 72 73 74 75 76 78 84 89 90 94 95 96 144 145"},F:{"91":0.02487,"92":0.04476,"95":0.02487,"120":0.06962,"121":0.08454,"122":0.70119,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00995,"109":0.03481,"114":0.01989,"120":0.02984,"121":0.01989,"122":0.01492,"126":0.00995,"127":0.00497,"128":0.00497,"129":0.00497,"130":0.00497,"131":0.01989,"132":0.00995,"133":0.00995,"134":0.02487,"135":0.01492,"136":0.01492,"137":0.01492,"138":0.03481,"139":0.0547,"140":0.73103,"141":3.18272,"142":0.00995,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 119 123 124 125"},E:{"14":0.00995,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.2-15.3 16.0 26.2","13.1":0.01989,"14.1":0.02487,"15.1":0.01492,"15.4":0.00497,"15.5":0.00497,"15.6":0.08454,"16.1":0.00995,"16.2":0.00995,"16.3":0.01989,"16.4":0.00995,"16.5":0.00995,"16.6":0.12433,"17.0":0.00497,"17.1":0.08951,"17.2":0.00995,"17.3":0.00995,"17.4":0.01989,"17.5":0.03481,"17.6":0.12433,"18.0":0.01492,"18.1":0.02487,"18.2":0.01492,"18.3":0.04973,"18.4":0.02984,"18.5-18.6":0.11438,"26.0":0.30833,"26.1":0.00995},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00109,"5.0-5.1":0,"6.0-6.1":0.00434,"7.0-7.1":0.00326,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00977,"10.0-10.2":0.00109,"10.3":0.01845,"11.0-11.2":0.2735,"11.3-11.4":0.00651,"12.0-12.1":0.00217,"12.2-12.5":0.05318,"13.0-13.1":0,"13.2":0.00543,"13.3":0.00217,"13.4-13.7":0.00868,"14.0-14.4":0.01845,"14.5-14.8":0.01954,"15.0-15.1":0.01845,"15.2-15.3":0.01411,"15.4":0.01628,"15.5":0.01845,"15.6-15.8":0.24094,"16.0":0.03256,"16.1":0.06078,"16.2":0.03147,"16.3":0.05644,"16.4":0.01411,"16.5":0.02496,"16.6-16.7":0.32234,"17.0":0.02279,"17.1":0.03473,"17.2":0.02496,"17.3":0.0369,"17.4":0.06512,"17.5":0.11179,"17.6-17.7":0.28219,"18.0":0.06403,"18.1":0.13241,"18.2":0.07163,"18.3":0.23009,"18.4":0.1183,"18.5-18.6":6.03226,"26.0":0.74562,"26.1":0.02713},P:{"21":0.01088,"22":0.01088,"23":0.02176,"24":0.02176,"25":0.02176,"26":0.04353,"27":0.05441,"28":1.4799,"29":0.1197,_:"4 20 5.0-5.4 6.2-6.4 7.2-7.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0"},I:{"0":0.48694,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.0001,"4.4":0,"4.4.3-4.4.4":0.00024},K:{"0":0.73913,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.02165,"9":0.06494,"11":0.28141,_:"6 7 10 5.5"},S:{"2.5":0.01508,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.29157},Q:{"14.9":0.13573},O:{"0":0.54794},H:{"0":0.03},L:{"0":39.02151}}; diff --git a/build_vtk_bundle/node_modules/caniuse-lite/package.json b/build_vtk_bundle/node_modules/caniuse-lite/package.json deleted file mode 100644 index 2041aeda..00000000 --- a/build_vtk_bundle/node_modules/caniuse-lite/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "caniuse-lite", - "version": "1.0.30001756", - "description": "A smaller version of caniuse-db, with only the essentials!", - "main": "dist/unpacker/index.js", - "files": [ - "data", - "dist" - ], - "keywords": [ - "support" - ], - "author": { - "name": "Ben Briggs", - "email": "beneb.info@gmail.com", - "url": "http://beneb.info" - }, - "repository": "browserslist/caniuse-lite", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "CC-BY-4.0" -} diff --git a/build_vtk_bundle/node_modules/chrome-trace-event/CHANGES.md b/build_vtk_bundle/node_modules/chrome-trace-event/CHANGES.md deleted file mode 100644 index 889d7de4..00000000 --- a/build_vtk_bundle/node_modules/chrome-trace-event/CHANGES.md +++ /dev/null @@ -1,26 +0,0 @@ -# node-trace-event changelog - -## 1.3.1 (not yet released) - -(nothing yet) - - -## 1.3.0 - -- Add `.child()` option to `trace_event.createBunyanTracer()` object. - - -## 1.2.0 - -- Add `trace_event.createBunyanLogger()` usage for some sugar. See the - README.md for details. - - -## 1.1.0 - -- Rename to 'trace-event', which is a much more accurate name. - - -## 1.0.0 - -First release. diff --git a/build_vtk_bundle/node_modules/chrome-trace-event/LICENSE.txt b/build_vtk_bundle/node_modules/chrome-trace-event/LICENSE.txt deleted file mode 100644 index 427a1364..00000000 --- a/build_vtk_bundle/node_modules/chrome-trace-event/LICENSE.txt +++ /dev/null @@ -1,23 +0,0 @@ -# This is the MIT license - -Copyright (c) 2015 Joyent Inc. All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/build_vtk_bundle/node_modules/chrome-trace-event/README.md b/build_vtk_bundle/node_modules/chrome-trace-event/README.md deleted file mode 100644 index 8bd20774..00000000 --- a/build_vtk_bundle/node_modules/chrome-trace-event/README.md +++ /dev/null @@ -1,31 +0,0 @@ -[![Build Status](https://travis-ci.org/samccone/chrome-trace-event.svg?branch=master)](https://travis-ci.org/samccone/chrome-trace-event) - -chrome-trace-event: A node library for creating trace event logs of program -execution according to [Google's Trace Event -format](https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU). -These logs can then be visualized with -[trace-viewer](https://github.com/google/trace-viewer) or chrome devtools to grok one's programs. - -# Install - - npm install chrome-trace-event - -# Usage - -```javascript -const Trace = require("chrome-trace-event").Tracer; -const trace = new Trace({ - noStream: true -}); -trace.pipe(fs.createWriteStream(outPath)); -trace.flush(); -``` - -# Links - -* https://github.com/google/trace-viewer/wiki -* https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU - -# License - -MIT. See LICENSE.txt. diff --git a/build_vtk_bundle/node_modules/chrome-trace-event/package.json b/build_vtk_bundle/node_modules/chrome-trace-event/package.json deleted file mode 100644 index 1540952d..00000000 --- a/build_vtk_bundle/node_modules/chrome-trace-event/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "chrome-trace-event", - "description": "A library to create a trace of your node app per Google's Trace Event format.", - "license": "MIT", - "version": "1.0.4", - "author": "Trent Mick, Sam Saccone", - "keywords": [ - "trace-event", - "trace", - "event", - "trace-viewer", - "google" - ], - "repository": { - "url": "github:samccone/chrome-trace-event" - }, - "main": "./dist/trace-event.js", - "typings": "./dist/trace-event.d.ts", - "dependencies": {}, - "devDependencies": { - "@types/node": "*", - "prettier": "^1.12.1", - "tape": "4.8.0", - "typescript": "^4.2.4" - }, - "engines": { - "node": ">=6.0" - }, - "files": [ - "dist", - "CHANGES.md" - ], - "scripts": { - "build": "tsc", - "check_format": "prettier -l lib/** test/** examples/**", - "test": "tape test/*.test.js" - } -} diff --git a/build_vtk_bundle/node_modules/clone-deep/LICENSE b/build_vtk_bundle/node_modules/clone-deep/LICENSE deleted file mode 100644 index d32ab442..00000000 --- a/build_vtk_bundle/node_modules/clone-deep/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-2018, Jon Schlinkert. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/clone-deep/README.md b/build_vtk_bundle/node_modules/clone-deep/README.md deleted file mode 100644 index 943a4359..00000000 --- a/build_vtk_bundle/node_modules/clone-deep/README.md +++ /dev/null @@ -1,106 +0,0 @@ -# clone-deep [![NPM version](https://img.shields.io/npm/v/clone-deep.svg?style=flat)](https://www.npmjs.com/package/clone-deep) [![NPM monthly downloads](https://img.shields.io/npm/dm/clone-deep.svg?style=flat)](https://npmjs.org/package/clone-deep) [![NPM total downloads](https://img.shields.io/npm/dt/clone-deep.svg?style=flat)](https://npmjs.org/package/clone-deep) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/clone-deep.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/clone-deep) - -> Recursively (deep) clone JavaScript native types, like Object, Array, RegExp, Date as well as primitives. - -Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save clone-deep -``` - -## Usage - -```js -const cloneDeep = require('clone-deep'); - -let obj = { a: 'b' }; -let arr = [obj]; -let copy = cloneDeep(arr); -obj.c = 'd'; - -console.log(copy); -//=> [{ a: 'b' }] - -console.log(arr); -//=> [{ a: 'b', c: 'd' }] -``` - -## Heads up! - -The last argument specifies whether or not to clone instances (objects that are from a custom class or are not created by the `Object` constructor. This value may be `true` or the function use for cloning instances. - -When an `instanceClone` function is provided, it will be invoked to clone objects that are not "plain" objects (as defined by [isPlainObject](#isPlainObject)`isPlainObject`). If `instanceClone` is not specified, this library will not attempt to clone non-plain objects, and will simply copy the object reference. - -## Attribution - -Initially based on [mout's](https://github.com/mout/mout) implementation of deepClone. - -## About - -
-Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -
- -
-Running Tests - -Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: - -```sh -$ npm install && npm test -``` - -
- -
-Building docs - -_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ - -To generate the readme, run the following command: - -```sh -$ npm install -g verbose/verb#dev verb-generate-readme && verb -``` - -
- -### Related projects - -You might also be interested in these projects: - -* [is-plain-object](https://www.npmjs.com/package/is-plain-object): Returns true if an object was created by the `Object` constructor. | [homepage](https://github.com/jonschlinkert/is-plain-object "Returns true if an object was created by the `Object` constructor.") -* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject "Returns true if the value is an object and not an array or null.") -* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of "Get the native type of a value.") -* [shallow-clone](https://www.npmjs.com/package/shallow-clone): Creates a shallow clone of any JavaScript value. | [homepage](https://github.com/jonschlinkert/shallow-clone "Creates a shallow clone of any JavaScript value.") - -### Contributors - -| **Commits** | **Contributor** | -| --- | --- | -| 46 | [jonschlinkert](https://github.com/jonschlinkert) | -| 2 | [yujunlong2000](https://github.com/yujunlong2000) | - -### Author - -**Jon Schlinkert** - -* [GitHub Profile](https://github.com/jonschlinkert) -* [Twitter Profile](https://twitter.com/jonschlinkert) -* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) - -### License - -Copyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT License](LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on November 21, 2018._ \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/clone-deep/index.js b/build_vtk_bundle/node_modules/clone-deep/index.js deleted file mode 100644 index 9133c08f..00000000 --- a/build_vtk_bundle/node_modules/clone-deep/index.js +++ /dev/null @@ -1,49 +0,0 @@ -'use strict'; - -/** - * Module dependenices - */ - -const clone = require('shallow-clone'); -const typeOf = require('kind-of'); -const isPlainObject = require('is-plain-object'); - -function cloneDeep(val, instanceClone) { - switch (typeOf(val)) { - case 'object': - return cloneObjectDeep(val, instanceClone); - case 'array': - return cloneArrayDeep(val, instanceClone); - default: { - return clone(val); - } - } -} - -function cloneObjectDeep(val, instanceClone) { - if (typeof instanceClone === 'function') { - return instanceClone(val); - } - if (instanceClone || isPlainObject(val)) { - const res = new val.constructor(); - for (let key in val) { - res[key] = cloneDeep(val[key], instanceClone); - } - return res; - } - return val; -} - -function cloneArrayDeep(val, instanceClone) { - const res = new val.constructor(val.length); - for (let i = 0; i < val.length; i++) { - res[i] = cloneDeep(val[i], instanceClone); - } - return res; -} - -/** - * Expose `cloneDeep` - */ - -module.exports = cloneDeep; diff --git a/build_vtk_bundle/node_modules/clone-deep/package.json b/build_vtk_bundle/node_modules/clone-deep/package.json deleted file mode 100644 index 7b494ea9..00000000 --- a/build_vtk_bundle/node_modules/clone-deep/package.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "name": "clone-deep", - "description": "Recursively (deep) clone JavaScript native types, like Object, Array, RegExp, Date as well as primitives.", - "version": "4.0.1", - "homepage": "https://github.com/jonschlinkert/clone-deep", - "author": "Jon Schlinkert (https://github.com/jonschlinkert)", - "repository": "jonschlinkert/clone-deep", - "bugs": { - "url": "https://github.com/jonschlinkert/clone-deep/issues" - }, - "license": "MIT", - "files": [ - "index.js" - ], - "main": "index.js", - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "mocha" - }, - "dependencies": { - "is-plain-object": "^2.0.4", - "kind-of": "^6.0.2", - "shallow-clone": "^3.0.0" - }, - "devDependencies": { - "gulp-format-md": "^2.0.0", - "mocha": "^5.2.0" - }, - "keywords": [ - "array", - "assign", - "buffer", - "clamped", - "clone", - "clone-array", - "clone-array-deep", - "clone-buffer", - "clone-date", - "clone-deep", - "clone-map", - "clone-object", - "clone-object-deep", - "clone-reg-exp", - "clone-regex", - "clone-regexp", - "clone-set", - "date", - "deep", - "extend", - "mixin", - "mixin-object", - "object", - "regex", - "regexp", - "shallow", - "symbol" - ], - "verb": { - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "related": { - "list": [ - "is-plain-object", - "isobject", - "kind-of", - "shallow-clone" - ] - }, - "lint": { - "reflinks": true - } - } -} diff --git a/build_vtk_bundle/node_modules/colorette/LICENSE.md b/build_vtk_bundle/node_modules/colorette/LICENSE.md deleted file mode 100644 index 6ba7a0fb..00000000 --- a/build_vtk_bundle/node_modules/colorette/LICENSE.md +++ /dev/null @@ -1,7 +0,0 @@ -Copyright © Jorge Bucaran <> - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/colorette/README.md b/build_vtk_bundle/node_modules/colorette/README.md deleted file mode 100644 index 693ae44d..00000000 --- a/build_vtk_bundle/node_modules/colorette/README.md +++ /dev/null @@ -1,134 +0,0 @@ -# 🌈Colorette - -> Easily set your terminal text color & styles. - -- No dependecies -- Automatic color support detection -- Up to [2x faster](#benchmarks) than alternatives -- TypeScript support -- [`NO_COLOR`](https://no-color.org) friendly -- Node >= `10` - -> [**Upgrading from Colorette `1.x`?**](https://github.com/jorgebucaran/colorette/issues/70) - -## Quickstart - -```js -import { blue, bold, underline } from "colorette" - -console.log( - blue("I'm blue"), - bold(blue("da ba dee")), - underline(bold(blue("da ba daa"))) -) -``` - -Here's an example using [template literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals). - -```js -console.log(` - There's a ${underline(blue("house"))}, - With a ${bold(blue("window"))}, - And a ${blue("corvette")} - And everything is blue -`) -``` - -You can also nest styles without breaking existing color sequences. - -```js -console.log(bold(`I'm ${blue(`da ba ${underline("dee")} da ba`)} daa`)) -``` - -Need to override terminal color detection? You can do that too. - -```js -import { createColors } from "colorette" - -const { blue } = createColors({ useColor: false }) - -console.log(blue("Blue? Nope, nah")) -``` - -## Installation - -```console -npm install colorette -``` - -## API - -### \() - -> See all [supported colors](#supported-colors). - -```js -import { blue } from "colorette" - -blue("I'm blue") //=> \x1b[34mI'm blue\x1b[39m -``` - -### createColors() - -Override terminal color detection via `createColors({ useColor })`. - -```js -import { createColors } from "colorette" - -const { blue } = createColors({ useColor: false }) -``` - -### isColorSupported - -`true` if your terminal supports color, `false` otherwise. Used internally, but exposed for convenience. - -## Environment - -You can override color detection from the CLI by setting the `--no-color` or `--color` flags. - -```console -$ ./example.js --no-color | ./consumer.js -``` - -Or if you can't use CLI flags, by setting the `NO_COLOR=` or `FORCE_COLOR=` environment variables. - -```console -$ NO_COLOR= ./example.js | ./consumer.js -``` - -## Supported colors - -| Colors | Background Colors | Bright Colors | Bright Background Colors | Modifiers | -| ------- | ----------------- | ------------- | ------------------------ | ----------------- | -| black | bgBlack | blackBright | bgBlackBright | dim | -| red | bgRed | redBright | bgRedBright | **bold** | -| green | bgGreen | greenBright | bgGreenBright | hidden | -| yellow | bgYellow | yellowBright | bgYellowBright | _italic_ | -| blue | bgBlue | blueBright | bgBlueBright | underline | -| magenta | bgMagenta | magentaBright | bgMagentaBright | ~~strikethrough~~ | -| cyan | bgCyan | cyanBright | bgCyanBright | reset | -| white | bgWhite | whiteBright | bgWhiteBright | | -| gray | | | | | - -## [Benchmarks](https://github.com/jorgebucaran/colorette/actions/workflows/bench.yml) - -```console -npm --prefix bench start -``` - -```diff - chalk 1,786,703 ops/sec - kleur 1,618,960 ops/sec - colors 646,823 ops/sec - ansi-colors 786,149 ops/sec - picocolors 2,871,758 ops/sec -+ colorette 3,002,751 ops/sec -``` - -## Acknowledgments - -Colorette started out in 2015 by [@jorgebucaran](https://github.com/jorgebucaran) as a lightweight alternative to [Chalk](https://github.com/chalk/chalk) and was introduced originally as [Clor](https://github.com/jorgebucaran/colorette/commit/b01b5b9961ceb7df878583a3002e836fae9e37ce). Our terminal color detection logic borrows heavily from [@sindresorhus](https://github.com/sindresorhus) and [@Qix-](https://github.com/Qix-) work on Chalk. The idea of slicing strings to clear bleeding sequences was adapted from a similar technique used by [@alexeyraspopov](https://github.com/alexeyraspopov) in [picocolors](https://github.com/alexeyraspopov/picocolors). Thank you to all our contributors! <3 - -## License - -[MIT](LICENSE.md) diff --git a/build_vtk_bundle/node_modules/colorette/index.cjs b/build_vtk_bundle/node_modules/colorette/index.cjs deleted file mode 100644 index baf0e643..00000000 --- a/build_vtk_bundle/node_modules/colorette/index.cjs +++ /dev/null @@ -1,218 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var tty = require('tty'); - -function _interopNamespace(e) { - if (e && e.__esModule) return e; - var n = Object.create(null); - if (e) { - Object.keys(e).forEach(function (k) { - if (k !== 'default') { - var d = Object.getOwnPropertyDescriptor(e, k); - Object.defineProperty(n, k, d.get ? d : { - enumerable: true, - get: function () { return e[k]; } - }); - } - }); - } - n["default"] = e; - return Object.freeze(n); -} - -var tty__namespace = /*#__PURE__*/_interopNamespace(tty); - -const { - env = {}, - argv = [], - platform = "", -} = typeof process === "undefined" ? {} : process; - -const isDisabled = "NO_COLOR" in env || argv.includes("--no-color"); -const isForced = "FORCE_COLOR" in env || argv.includes("--color"); -const isWindows = platform === "win32"; -const isDumbTerminal = env.TERM === "dumb"; - -const isCompatibleTerminal = - tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) && env.TERM && !isDumbTerminal; - -const isCI = - "CI" in env && - ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env); - -const isColorSupported = - !isDisabled && - (isForced || (isWindows && !isDumbTerminal) || isCompatibleTerminal || isCI); - -const replaceClose = ( - index, - string, - close, - replace, - head = string.substring(0, index) + replace, - tail = string.substring(index + close.length), - next = tail.indexOf(close) -) => head + (next < 0 ? tail : replaceClose(next, tail, close, replace)); - -const clearBleed = (index, string, open, close, replace) => - index < 0 - ? open + string + close - : open + replaceClose(index, string, close, replace) + close; - -const filterEmpty = - (open, close, replace = open, at = open.length + 1) => - (string) => - string || !(string === "" || string === undefined) - ? clearBleed( - ("" + string).indexOf(close, at), - string, - open, - close, - replace - ) - : ""; - -const init = (open, close, replace) => - filterEmpty(`\x1b[${open}m`, `\x1b[${close}m`, replace); - -const colors = { - reset: init(0, 0), - bold: init(1, 22, "\x1b[22m\x1b[1m"), - dim: init(2, 22, "\x1b[22m\x1b[2m"), - italic: init(3, 23), - underline: init(4, 24), - inverse: init(7, 27), - hidden: init(8, 28), - strikethrough: init(9, 29), - black: init(30, 39), - red: init(31, 39), - green: init(32, 39), - yellow: init(33, 39), - blue: init(34, 39), - magenta: init(35, 39), - cyan: init(36, 39), - white: init(37, 39), - gray: init(90, 39), - bgBlack: init(40, 49), - bgRed: init(41, 49), - bgGreen: init(42, 49), - bgYellow: init(43, 49), - bgBlue: init(44, 49), - bgMagenta: init(45, 49), - bgCyan: init(46, 49), - bgWhite: init(47, 49), - blackBright: init(90, 39), - redBright: init(91, 39), - greenBright: init(92, 39), - yellowBright: init(93, 39), - blueBright: init(94, 39), - magentaBright: init(95, 39), - cyanBright: init(96, 39), - whiteBright: init(97, 39), - bgBlackBright: init(100, 49), - bgRedBright: init(101, 49), - bgGreenBright: init(102, 49), - bgYellowBright: init(103, 49), - bgBlueBright: init(104, 49), - bgMagentaBright: init(105, 49), - bgCyanBright: init(106, 49), - bgWhiteBright: init(107, 49), -}; - -const createColors = ({ useColor = isColorSupported } = {}) => - useColor - ? colors - : Object.keys(colors).reduce( - (colors, key) => ({ ...colors, [key]: String }), - {} - ); - -const { - reset, - bold, - dim, - italic, - underline, - inverse, - hidden, - strikethrough, - black, - red, - green, - yellow, - blue, - magenta, - cyan, - white, - gray, - bgBlack, - bgRed, - bgGreen, - bgYellow, - bgBlue, - bgMagenta, - bgCyan, - bgWhite, - blackBright, - redBright, - greenBright, - yellowBright, - blueBright, - magentaBright, - cyanBright, - whiteBright, - bgBlackBright, - bgRedBright, - bgGreenBright, - bgYellowBright, - bgBlueBright, - bgMagentaBright, - bgCyanBright, - bgWhiteBright, -} = createColors(); - -exports.bgBlack = bgBlack; -exports.bgBlackBright = bgBlackBright; -exports.bgBlue = bgBlue; -exports.bgBlueBright = bgBlueBright; -exports.bgCyan = bgCyan; -exports.bgCyanBright = bgCyanBright; -exports.bgGreen = bgGreen; -exports.bgGreenBright = bgGreenBright; -exports.bgMagenta = bgMagenta; -exports.bgMagentaBright = bgMagentaBright; -exports.bgRed = bgRed; -exports.bgRedBright = bgRedBright; -exports.bgWhite = bgWhite; -exports.bgWhiteBright = bgWhiteBright; -exports.bgYellow = bgYellow; -exports.bgYellowBright = bgYellowBright; -exports.black = black; -exports.blackBright = blackBright; -exports.blue = blue; -exports.blueBright = blueBright; -exports.bold = bold; -exports.createColors = createColors; -exports.cyan = cyan; -exports.cyanBright = cyanBright; -exports.dim = dim; -exports.gray = gray; -exports.green = green; -exports.greenBright = greenBright; -exports.hidden = hidden; -exports.inverse = inverse; -exports.isColorSupported = isColorSupported; -exports.italic = italic; -exports.magenta = magenta; -exports.magentaBright = magentaBright; -exports.red = red; -exports.redBright = redBright; -exports.reset = reset; -exports.strikethrough = strikethrough; -exports.underline = underline; -exports.white = white; -exports.whiteBright = whiteBright; -exports.yellow = yellow; -exports.yellowBright = yellowBright; diff --git a/build_vtk_bundle/node_modules/colorette/index.d.ts b/build_vtk_bundle/node_modules/colorette/index.d.ts deleted file mode 100644 index ba32c9f3..00000000 --- a/build_vtk_bundle/node_modules/colorette/index.d.ts +++ /dev/null @@ -1,93 +0,0 @@ -declare module "colorette" { - type Color = (text: string | number) => string - - interface Colorette { - reset: Color - bold: Color - dim: Color - italic: Color - underline: Color - inverse: Color - hidden: Color - strikethrough: Color - black: Color - red: Color - green: Color - yellow: Color - blue: Color - magenta: Color - cyan: Color - white: Color - gray: Color - bgBlack: Color - bgRed: Color - bgGreen: Color - bgYellow: Color - bgBlue: Color - bgMagenta: Color - bgCyan: Color - bgWhite: Color - blackBright: Color - redBright: Color - greenBright: Color - yellowBright: Color - blueBright: Color - magentaBright: Color - cyanBright: Color - whiteBright: Color - bgBlackBright: Color - bgRedBright: Color - bgGreenBright: Color - bgYellowBright: Color - bgBlueBright: Color - bgMagentaBright: Color - bgCyanBright: Color - bgWhiteBright: Color - } - - const reset: Color - const bold: Color - const dim: Color - const italic: Color - const underline: Color - const inverse: Color - const hidden: Color - const strikethrough: Color - const black: Color - const red: Color - const green: Color - const yellow: Color - const blue: Color - const magenta: Color - const cyan: Color - const white: Color - const gray: Color - const bgBlack: Color - const bgRed: Color - const bgGreen: Color - const bgYellow: Color - const bgBlue: Color - const bgMagenta: Color - const bgCyan: Color - const bgWhite: Color - const blackBright: Color - const redBright: Color - const greenBright: Color - const yellowBright: Color - const blueBright: Color - const magentaBright: Color - const cyanBright: Color - const whiteBright: Color - const bgBlackBright: Color - const bgRedBright: Color - const bgGreenBright: Color - const bgYellowBright: Color - const bgBlueBright: Color - const bgMagentaBright: Color - const bgCyanBright: Color - const bgWhiteBright: Color - - const isColorSupported: boolean - - function createColors(options?: { useColor: boolean }): Colorette -} diff --git a/build_vtk_bundle/node_modules/colorette/index.js b/build_vtk_bundle/node_modules/colorette/index.js deleted file mode 100644 index 0d64e6b3..00000000 --- a/build_vtk_bundle/node_modules/colorette/index.js +++ /dev/null @@ -1,150 +0,0 @@ -import * as tty from "tty" - -const { - env = {}, - argv = [], - platform = "", -} = typeof process === "undefined" ? {} : process - -const isDisabled = "NO_COLOR" in env || argv.includes("--no-color") -const isForced = "FORCE_COLOR" in env || argv.includes("--color") -const isWindows = platform === "win32" -const isDumbTerminal = env.TERM === "dumb" - -const isCompatibleTerminal = - tty && tty.isatty && tty.isatty(1) && env.TERM && !isDumbTerminal - -const isCI = - "CI" in env && - ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env) - -export const isColorSupported = - !isDisabled && - (isForced || (isWindows && !isDumbTerminal) || isCompatibleTerminal || isCI) - -const replaceClose = ( - index, - string, - close, - replace, - head = string.substring(0, index) + replace, - tail = string.substring(index + close.length), - next = tail.indexOf(close) -) => head + (next < 0 ? tail : replaceClose(next, tail, close, replace)) - -const clearBleed = (index, string, open, close, replace) => - index < 0 - ? open + string + close - : open + replaceClose(index, string, close, replace) + close - -const filterEmpty = - (open, close, replace = open, at = open.length + 1) => - (string) => - string || !(string === "" || string === undefined) - ? clearBleed( - ("" + string).indexOf(close, at), - string, - open, - close, - replace - ) - : "" - -const init = (open, close, replace) => - filterEmpty(`\x1b[${open}m`, `\x1b[${close}m`, replace) - -const colors = { - reset: init(0, 0), - bold: init(1, 22, "\x1b[22m\x1b[1m"), - dim: init(2, 22, "\x1b[22m\x1b[2m"), - italic: init(3, 23), - underline: init(4, 24), - inverse: init(7, 27), - hidden: init(8, 28), - strikethrough: init(9, 29), - black: init(30, 39), - red: init(31, 39), - green: init(32, 39), - yellow: init(33, 39), - blue: init(34, 39), - magenta: init(35, 39), - cyan: init(36, 39), - white: init(37, 39), - gray: init(90, 39), - bgBlack: init(40, 49), - bgRed: init(41, 49), - bgGreen: init(42, 49), - bgYellow: init(43, 49), - bgBlue: init(44, 49), - bgMagenta: init(45, 49), - bgCyan: init(46, 49), - bgWhite: init(47, 49), - blackBright: init(90, 39), - redBright: init(91, 39), - greenBright: init(92, 39), - yellowBright: init(93, 39), - blueBright: init(94, 39), - magentaBright: init(95, 39), - cyanBright: init(96, 39), - whiteBright: init(97, 39), - bgBlackBright: init(100, 49), - bgRedBright: init(101, 49), - bgGreenBright: init(102, 49), - bgYellowBright: init(103, 49), - bgBlueBright: init(104, 49), - bgMagentaBright: init(105, 49), - bgCyanBright: init(106, 49), - bgWhiteBright: init(107, 49), -} - -export const createColors = ({ useColor = isColorSupported } = {}) => - useColor - ? colors - : Object.keys(colors).reduce( - (colors, key) => ({ ...colors, [key]: String }), - {} - ) - -export const { - reset, - bold, - dim, - italic, - underline, - inverse, - hidden, - strikethrough, - black, - red, - green, - yellow, - blue, - magenta, - cyan, - white, - gray, - bgBlack, - bgRed, - bgGreen, - bgYellow, - bgBlue, - bgMagenta, - bgCyan, - bgWhite, - blackBright, - redBright, - greenBright, - yellowBright, - blueBright, - magentaBright, - cyanBright, - whiteBright, - bgBlackBright, - bgRedBright, - bgGreenBright, - bgYellowBright, - bgBlueBright, - bgMagentaBright, - bgCyanBright, - bgWhiteBright, -} = createColors() diff --git a/build_vtk_bundle/node_modules/colorette/package.json b/build_vtk_bundle/node_modules/colorette/package.json deleted file mode 100644 index d827eee1..00000000 --- a/build_vtk_bundle/node_modules/colorette/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "colorette", - "version": "2.0.20", - "type": "module", - "main": "index.cjs", - "module": "index.js", - "types": "index.d.ts", - "description": "🌈Easily set your terminal text color & styles.", - "repository": "jorgebucaran/colorette", - "license": "MIT", - "exports": { - "./package.json": "./package.json", - ".": { - "require": "./index.cjs", - "import": "./index.js", - "types": "./index.d.ts" - } - }, - "files": [ - "*.*(c)[tj]s*" - ], - "author": "Jorge Bucaran", - "keywords": [ - "terminal", - "styles", - "color", - "ansi" - ], - "scripts": { - "test": "c8 twist tests/*.js", - "build": "npx rollup --format cjs --input index.js --file index.cjs", - "deploy": "npm test && git commit --all --message $tag && git tag --sign $tag --message $tag && git push && git push --tags", - "release": "tag=$npm_package_version npm run deploy && npm publish --access public", - "prepare": "npm run build" - }, - "devDependencies": { - "c8": "*", - "twist": "*" - } -} diff --git a/build_vtk_bundle/node_modules/commander/LICENSE b/build_vtk_bundle/node_modules/commander/LICENSE deleted file mode 100644 index 10f997ab..00000000 --- a/build_vtk_bundle/node_modules/commander/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -(The MIT License) - -Copyright (c) 2011 TJ Holowaychuk - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/commander/Readme.md b/build_vtk_bundle/node_modules/commander/Readme.md deleted file mode 100644 index fa173e53..00000000 --- a/build_vtk_bundle/node_modules/commander/Readme.md +++ /dev/null @@ -1,1096 +0,0 @@ -# Commander.js - -[![Build Status](https://github.com/tj/commander.js/workflows/build/badge.svg)](https://github.com/tj/commander.js/actions?query=workflow%3A%22build%22) -[![NPM Version](http://img.shields.io/npm/v/commander.svg?style=flat)](https://www.npmjs.org/package/commander) -[![NPM Downloads](https://img.shields.io/npm/dm/commander.svg?style=flat)](https://npmcharts.com/compare/commander?minimal=true) -[![Install Size](https://packagephobia.now.sh/badge?p=commander)](https://packagephobia.now.sh/result?p=commander) - -The complete solution for [node.js](http://nodejs.org) command-line interfaces. - -Read this in other languages: English | [简体中文](./Readme_zh-CN.md) - -- [Commander.js](#commanderjs) - - [Installation](#installation) - - [Quick Start](#quick-start) - - [Declaring _program_ variable](#declaring-program-variable) - - [Options](#options) - - [Common option types, boolean and value](#common-option-types-boolean-and-value) - - [Default option value](#default-option-value) - - [Other option types, negatable boolean and boolean|value](#other-option-types-negatable-boolean-and-booleanvalue) - - [Required option](#required-option) - - [Variadic option](#variadic-option) - - [Version option](#version-option) - - [More configuration](#more-configuration) - - [Custom option processing](#custom-option-processing) - - [Commands](#commands) - - [Command-arguments](#command-arguments) - - [More configuration](#more-configuration-1) - - [Custom argument processing](#custom-argument-processing) - - [Action handler](#action-handler) - - [Stand-alone executable (sub)commands](#stand-alone-executable-subcommands) - - [Life cycle hooks](#life-cycle-hooks) - - [Automated help](#automated-help) - - [Custom help](#custom-help) - - [Display help after errors](#display-help-after-errors) - - [Display help from code](#display-help-from-code) - - [.name](#name) - - [.usage](#usage) - - [.helpOption(flags, description)](#helpoptionflags-description) - - [.addHelpCommand()](#addhelpcommand) - - [More configuration](#more-configuration-2) - - [Custom event listeners](#custom-event-listeners) - - [Bits and pieces](#bits-and-pieces) - - [.parse() and .parseAsync()](#parse-and-parseasync) - - [Parsing Configuration](#parsing-configuration) - - [Legacy options as properties](#legacy-options-as-properties) - - [TypeScript](#typescript) - - [createCommand()](#createcommand) - - [Node options such as `--harmony`](#node-options-such-as---harmony) - - [Debugging stand-alone executable subcommands](#debugging-stand-alone-executable-subcommands) - - [Display error](#display-error) - - [Override exit and output handling](#override-exit-and-output-handling) - - [Additional documentation](#additional-documentation) - - [Support](#support) - - [Commander for enterprise](#commander-for-enterprise) - -For information about terms used in this document see: [terminology](./docs/terminology.md) - -## Installation - -```bash -npm install commander -``` - -## Quick Start - -You write code to describe your command line interface. -Commander looks after parsing the arguments into options and command-arguments, -displays usage errors for problems, and implements a help system. - -Commander is strict and displays an error for unrecognised options. -The two most used option types are a boolean option, and an option which takes its value from the following argument. - -Example file: [split.js](./examples/split.js) - -```js -const { program } = require('commander'); - -program - .option('--first') - .option('-s, --separator '); - -program.parse(); - -const options = program.opts(); -const limit = options.first ? 1 : undefined; -console.log(program.args[0].split(options.separator, limit)); -``` - -```sh -$ node split.js -s / --fits a/b/c -error: unknown option '--fits' -(Did you mean --first?) -$ node split.js -s / --first a/b/c -[ 'a' ] -``` - -Here is a more complete program using a subcommand and with descriptions for the help. In a multi-command program, you have an action handler for each command (or stand-alone executables for the commands). - -Example file: [string-util.js](./examples/string-util.js) - -```js -const { Command } = require('commander'); -const program = new Command(); - -program - .name('string-util') - .description('CLI to some JavaScript string utilities') - .version('0.8.0'); - -program.command('split') - .description('Split a string into substrings and display as an array') - .argument('', 'string to split') - .option('--first', 'display just the first substring') - .option('-s, --separator ', 'separator character', ',') - .action((str, options) => { - const limit = options.first ? 1 : undefined; - console.log(str.split(options.separator, limit)); - }); - -program.parse(); -``` - -```sh -$ node string-util.js help split -Usage: string-util split [options] - -Split a string into substrings and display as an array. - -Arguments: - string string to split - -Options: - --first display just the first substring - -s, --separator separator character (default: ",") - -h, --help display help for command - -$ node string-util.js split --separator=/ a/b/c -[ 'a', 'b', 'c' ] -``` - -More samples can be found in the [examples](https://github.com/tj/commander.js/tree/master/examples) directory. - -## Declaring _program_ variable - -Commander exports a global object which is convenient for quick programs. -This is used in the examples in this README for brevity. - -```js -// CommonJS (.cjs) -const { program } = require('commander'); -``` - -For larger programs which may use commander in multiple ways, including unit testing, it is better to create a local Command object to use. - -```js -// CommonJS (.cjs) -const { Command } = require('commander'); -const program = new Command(); -``` - -```js -// ECMAScript (.mjs) -import { Command } from 'commander'; -const program = new Command(); -``` - -```ts -// TypeScript (.ts) -import { Command } from 'commander'; -const program = new Command(); -``` - -## Options - -Options are defined with the `.option()` method, also serving as documentation for the options. Each option can have a short flag (single character) and a long name, separated by a comma or space or vertical bar ('|'). - -The parsed options can be accessed by calling `.opts()` on a `Command` object, and are passed to the action handler. - -Multi-word options such as "--template-engine" are camel-cased, becoming `program.opts().templateEngine` etc. - -An option and its option-argument can be separated by a space, or combined into the same argument. The option-argument can follow the short option directly or follow an `=` for a long option. - -```bash -serve -p 80 -serve -p80 -serve --port 80 -serve --port=80 -``` - -You can use `--` to indicate the end of the options, and any remaining arguments will be used without being interpreted. - -By default options on the command line are not positional, and can be specified before or after other arguments. - -There are additional related routines for when `.opts()` is not enough: - -- `.optsWithGlobals()` returns merged local and global option values -- `.getOptionValue()` and `.setOptionValue()` work with a single option value -- `.getOptionValueSource()` and `.setOptionValueWithSource()` include where the option value came from - -### Common option types, boolean and value - -The two most used option types are a boolean option, and an option which takes its value -from the following argument (declared with angle brackets like `--expect `). Both are `undefined` unless specified on command line. - -Example file: [options-common.js](./examples/options-common.js) - -```js -program - .option('-d, --debug', 'output extra debugging') - .option('-s, --small', 'small pizza size') - .option('-p, --pizza-type ', 'flavour of pizza'); - -program.parse(process.argv); - -const options = program.opts(); -if (options.debug) console.log(options); -console.log('pizza details:'); -if (options.small) console.log('- small pizza size'); -if (options.pizzaType) console.log(`- ${options.pizzaType}`); -``` - -```bash -$ pizza-options -p -error: option '-p, --pizza-type ' argument missing -$ pizza-options -d -s -p vegetarian -{ debug: true, small: true, pizzaType: 'vegetarian' } -pizza details: -- small pizza size -- vegetarian -$ pizza-options --pizza-type=cheese -pizza details: -- cheese -``` - -Multiple boolean short options may be combined together following the dash, and may be followed by a single short option taking a value. -For example `-d -s -p cheese` may be written as `-ds -p cheese` or even `-dsp cheese`. - -Options with an expected option-argument are greedy and will consume the following argument whatever the value. -So `--id -xyz` reads `-xyz` as the option-argument. - -`program.parse(arguments)` processes the arguments, leaving any args not consumed by the program options in the `program.args` array. The parameter is optional and defaults to `process.argv`. - -### Default option value - -You can specify a default value for an option. - -Example file: [options-defaults.js](./examples/options-defaults.js) - -```js -program - .option('-c, --cheese ', 'add the specified type of cheese', 'blue'); - -program.parse(); - -console.log(`cheese: ${program.opts().cheese}`); -``` - -```bash -$ pizza-options -cheese: blue -$ pizza-options --cheese stilton -cheese: stilton -``` - -### Other option types, negatable boolean and boolean|value - -You can define a boolean option long name with a leading `no-` to set the option value to false when used. -Defined alone this also makes the option true by default. - -If you define `--foo` first, adding `--no-foo` does not change the default value from what it would -otherwise be. - -Example file: [options-negatable.js](./examples/options-negatable.js) - -```js -program - .option('--no-sauce', 'Remove sauce') - .option('--cheese ', 'cheese flavour', 'mozzarella') - .option('--no-cheese', 'plain with no cheese') - .parse(); - -const options = program.opts(); -const sauceStr = options.sauce ? 'sauce' : 'no sauce'; -const cheeseStr = (options.cheese === false) ? 'no cheese' : `${options.cheese} cheese`; -console.log(`You ordered a pizza with ${sauceStr} and ${cheeseStr}`); -``` - -```bash -$ pizza-options -You ordered a pizza with sauce and mozzarella cheese -$ pizza-options --sauce -error: unknown option '--sauce' -$ pizza-options --cheese=blue -You ordered a pizza with sauce and blue cheese -$ pizza-options --no-sauce --no-cheese -You ordered a pizza with no sauce and no cheese -``` - -You can specify an option which may be used as a boolean option but may optionally take an option-argument -(declared with square brackets like `--optional [value]`). - -Example file: [options-boolean-or-value.js](./examples/options-boolean-or-value.js) - -```js -program - .option('-c, --cheese [type]', 'Add cheese with optional type'); - -program.parse(process.argv); - -const options = program.opts(); -if (options.cheese === undefined) console.log('no cheese'); -else if (options.cheese === true) console.log('add cheese'); -else console.log(`add cheese type ${options.cheese}`); -``` - -```bash -$ pizza-options -no cheese -$ pizza-options --cheese -add cheese -$ pizza-options --cheese mozzarella -add cheese type mozzarella -``` - -Options with an optional option-argument are not greedy and will ignore arguments starting with a dash. -So `id` behaves as a boolean option for `--id -5`, but you can use a combined form if needed like `--id=-5`. - -For information about possible ambiguous cases, see [options taking varying arguments](./docs/options-taking-varying-arguments.md). - -### Required option - -You may specify a required (mandatory) option using `.requiredOption`. The option must have a value after parsing, usually specified on the command line, or perhaps from a default value (say from environment). The method is otherwise the same as `.option` in format, taking flags and description, and optional default value or custom processing. - -Example file: [options-required.js](./examples/options-required.js) - -```js -program - .requiredOption('-c, --cheese ', 'pizza must have cheese'); - -program.parse(); -``` - -```bash -$ pizza -error: required option '-c, --cheese ' not specified -``` - -### Variadic option - -You may make an option variadic by appending `...` to the value placeholder when declaring the option. On the command line you -can then specify multiple option-arguments, and the parsed option value will be an array. The extra arguments -are read until the first argument starting with a dash. The special argument `--` stops option processing entirely. If a value -is specified in the same argument as the option then no further values are read. - -Example file: [options-variadic.js](./examples/options-variadic.js) - -```js -program - .option('-n, --number ', 'specify numbers') - .option('-l, --letter [letters...]', 'specify letters'); - -program.parse(); - -console.log('Options: ', program.opts()); -console.log('Remaining arguments: ', program.args); -``` - -```bash -$ collect -n 1 2 3 --letter a b c -Options: { number: [ '1', '2', '3' ], letter: [ 'a', 'b', 'c' ] } -Remaining arguments: [] -$ collect --letter=A -n80 operand -Options: { number: [ '80' ], letter: [ 'A' ] } -Remaining arguments: [ 'operand' ] -$ collect --letter -n 1 -n 2 3 -- operand -Options: { number: [ '1', '2', '3' ], letter: true } -Remaining arguments: [ 'operand' ] -``` - -For information about possible ambiguous cases, see [options taking varying arguments](./docs/options-taking-varying-arguments.md). - -### Version option - -The optional `version` method adds handling for displaying the command version. The default option flags are `-V` and `--version`, and when present the command prints the version number and exits. - -```js -program.version('0.0.1'); -``` - -```bash -$ ./examples/pizza -V -0.0.1 -``` - -You may change the flags and description by passing additional parameters to the `version` method, using -the same syntax for flags as the `option` method. - -```js -program.version('0.0.1', '-v, --vers', 'output the current version'); -``` - -### More configuration - -You can add most options using the `.option()` method, but there are some additional features available -by constructing an `Option` explicitly for less common cases. - -Example files: [options-extra.js](./examples/options-extra.js), [options-env.js](./examples/options-env.js), [options-conflicts.js](./examples/options-conflicts.js) - -```js -program - .addOption(new Option('-s, --secret').hideHelp()) - .addOption(new Option('-t, --timeout ', 'timeout in seconds').default(60, 'one minute')) - .addOption(new Option('-d, --drink ', 'drink size').choices(['small', 'medium', 'large'])) - .addOption(new Option('-p, --port ', 'port number').env('PORT')) - .addOption(new Option('--donate [amount]', 'optional donation in dollars').preset('20').argParser(parseFloat)) - .addOption(new Option('--disable-server', 'disables the server').conflicts('port')); -``` - -```bash -$ extra --help -Usage: help [options] - -Options: - -t, --timeout timeout in seconds (default: one minute) - -d, --drink drink cup size (choices: "small", "medium", "large") - -p, --port port number (env: PORT) - --donate [amount] optional donation in dollars (preset: 20) - --disable-server disables the server - -h, --help display help for command - -$ extra --drink huge -error: option '-d, --drink ' argument 'huge' is invalid. Allowed choices are small, medium, large. - -$ PORT=80 extra --donate -Options: { timeout: 60, donate: 20, port: '80' } - -$ extra --disable-server --port 8000 -error: option '--disable-server' cannot be used with option '-p, --port ' -``` - -### Custom option processing - -You may specify a function to do custom processing of option-arguments. The callback function receives two parameters, -the user specified option-argument and the previous value for the option. It returns the new value for the option. - -This allows you to coerce the option-argument to the desired type, or accumulate values, or do entirely custom processing. - -You can optionally specify the default/starting value for the option after the function parameter. - -Example file: [options-custom-processing.js](./examples/options-custom-processing.js) - -```js -function myParseInt(value, dummyPrevious) { - // parseInt takes a string and a radix - const parsedValue = parseInt(value, 10); - if (isNaN(parsedValue)) { - throw new commander.InvalidArgumentError('Not a number.'); - } - return parsedValue; -} - -function increaseVerbosity(dummyValue, previous) { - return previous + 1; -} - -function collect(value, previous) { - return previous.concat([value]); -} - -function commaSeparatedList(value, dummyPrevious) { - return value.split(','); -} - -program - .option('-f, --float ', 'float argument', parseFloat) - .option('-i, --integer ', 'integer argument', myParseInt) - .option('-v, --verbose', 'verbosity that can be increased', increaseVerbosity, 0) - .option('-c, --collect ', 'repeatable value', collect, []) - .option('-l, --list ', 'comma separated list', commaSeparatedList) -; - -program.parse(); - -const options = program.opts(); -if (options.float !== undefined) console.log(`float: ${options.float}`); -if (options.integer !== undefined) console.log(`integer: ${options.integer}`); -if (options.verbose > 0) console.log(`verbosity: ${options.verbose}`); -if (options.collect.length > 0) console.log(options.collect); -if (options.list !== undefined) console.log(options.list); -``` - -```bash -$ custom -f 1e2 -float: 100 -$ custom --integer 2 -integer: 2 -$ custom -v -v -v -verbose: 3 -$ custom -c a -c b -c c -[ 'a', 'b', 'c' ] -$ custom --list x,y,z -[ 'x', 'y', 'z' ] -``` - -## Commands - -You can specify (sub)commands using `.command()` or `.addCommand()`. There are two ways these can be implemented: using an action handler attached to the command, or as a stand-alone executable file (described in more detail later). The subcommands may be nested ([example](./examples/nestedCommands.js)). - -In the first parameter to `.command()` you specify the command name. You may append the command-arguments after the command name, or specify them separately using `.argument()`. The arguments may be `` or `[optional]`, and the last argument may also be `variadic...`. - -You can use `.addCommand()` to add an already configured subcommand to the program. - -For example: - -```js -// Command implemented using action handler (description is supplied separately to `.command`) -// Returns new command for configuring. -program - .command('clone [destination]') - .description('clone a repository into a newly created directory') - .action((source, destination) => { - console.log('clone command called'); - }); - -// Command implemented using stand-alone executable file, indicated by adding description as second parameter to `.command`. -// Returns `this` for adding more commands. -program - .command('start ', 'start named service') - .command('stop [service]', 'stop named service, or all if no name supplied'); - -// Command prepared separately. -// Returns `this` for adding more commands. -program - .addCommand(build.makeBuildCommand()); -``` - -Configuration options can be passed with the call to `.command()` and `.addCommand()`. Specifying `hidden: true` will -remove the command from the generated help output. Specifying `isDefault: true` will run the subcommand if no other -subcommand is specified ([example](./examples/defaultCommand.js)). - -### Command-arguments - -For subcommands, you can specify the argument syntax in the call to `.command()` (as shown above). This -is the only method usable for subcommands implemented using a stand-alone executable, but for other subcommands -you can instead use the following method. - -To configure a command, you can use `.argument()` to specify each expected command-argument. -You supply the argument name and an optional description. The argument may be `` or `[optional]`. -You can specify a default value for an optional command-argument. - -Example file: [argument.js](./examples/argument.js) - -```js -program - .version('0.1.0') - .argument('', 'user to login') - .argument('[password]', 'password for user, if required', 'no password given') - .action((username, password) => { - console.log('username:', username); - console.log('password:', password); - }); -``` - - The last argument of a command can be variadic, and only the last argument. To make an argument variadic you - append `...` to the argument name. A variadic argument is passed to the action handler as an array. For example: - -```js -program - .version('0.1.0') - .command('rmdir') - .argument('') - .action(function (dirs) { - dirs.forEach((dir) => { - console.log('rmdir %s', dir); - }); - }); -``` - -There is a convenience method to add multiple arguments at once, but without descriptions: - -```js -program - .arguments(' '); -``` - -#### More configuration - -There are some additional features available by constructing an `Argument` explicitly for less common cases. - -Example file: [arguments-extra.js](./examples/arguments-extra.js) - -```js -program - .addArgument(new commander.Argument('', 'drink cup size').choices(['small', 'medium', 'large'])) - .addArgument(new commander.Argument('[timeout]', 'timeout in seconds').default(60, 'one minute')) -``` - -#### Custom argument processing - -You may specify a function to do custom processing of command-arguments (like for option-arguments). -The callback function receives two parameters, the user specified command-argument and the previous value for the argument. -It returns the new value for the argument. - -The processed argument values are passed to the action handler, and saved as `.processedArgs`. - -You can optionally specify the default/starting value for the argument after the function parameter. - -Example file: [arguments-custom-processing.js](./examples/arguments-custom-processing.js) - -```js -program - .command('add') - .argument('', 'integer argument', myParseInt) - .argument('[second]', 'integer argument', myParseInt, 1000) - .action((first, second) => { - console.log(`${first} + ${second} = ${first + second}`); - }) -; -``` - -### Action handler - -The action handler gets passed a parameter for each command-argument you declared, and two additional parameters -which are the parsed options and the command object itself. - -Example file: [thank.js](./examples/thank.js) - -```js -program - .argument('') - .option('-t, --title ', 'title to use before name') - .option('-d, --debug', 'display some debugging') - .action((name, options, command) => { - if (options.debug) { - console.error('Called %s with options %o', command.name(), options); - } - const title = options.title ? `${options.title} ` : ''; - console.log(`Thank-you ${title}${name}`); - }); -``` - -If you prefer, you can work with the command directly and skip declaring the parameters for the action handler. The `this` keyword is set to the running command and can be used from a function expression (but not from an arrow function). - -Example file: [action-this.js](./examples/action-this.js) - -```js -program - .command('serve') - .argument(' -``` - -For legacy environments, you can load d3-array’s UMD bundle; a `d3` global is exported: - -```html - - -``` - -## API Reference - -* [Statistics](#statistics) -* [Search](#search) -* [Transformations](#transformations) -* [Iterables](#iterables) -* [Sets](#sets) -* [Bins](#bins) -* [Interning](#interning) - -### Statistics - -Methods for computing basic summary statistics. - -# d3.min(iterable[, accessor]) · [Source](https://github.com/d3/d3-array/blob/main/src/min.js), [Examples](https://observablehq.com/@d3/d3-extent) - -Returns the minimum value in the given *iterable* using natural order. If the iterable contains no comparable values, returns undefined. An optional *accessor* function may be specified, which is equivalent to calling Array.from before computing the minimum value. - -Unlike the built-in [Math.min](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Math/min), this method ignores undefined, null and NaN values; this is useful for ignoring missing data. In addition, elements are compared using natural order rather than numeric order. For example, the minimum of the strings [“20”, “3”] is “20”, while the minimum of the numbers [20, 3] is 3. - -See also [extent](#extent). - -# d3.minIndex(iterable[, accessor]) · [Source](https://github.com/d3/d3-array/blob/main/src/minIndex.js), [Examples](https://observablehq.com/@d3/d3-extent) - -Returns the index of the minimum value in the given *iterable* using natural order. If the iterable contains no comparable values, returns -1. An optional *accessor* function may be specified, which is equivalent to calling Array.from before computing the minimum value. - -Unlike the built-in [Math.min](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Math/min), this method ignores undefined, null and NaN values; this is useful for ignoring missing data. In addition, elements are compared using natural order rather than numeric order. For example, the minimum of the strings [“20”, “3”] is “20”, while the minimum of the numbers [20, 3] is 3. - -# d3.max(iterable[, accessor]) · [Source](https://github.com/d3/d3-array/blob/main/src/max.js), [Examples](https://observablehq.com/@d3/d3-extent) - -Returns the maximum value in the given *iterable* using natural order. If the iterable contains no comparable values, returns undefined. An optional *accessor* function may be specified, which is equivalent to calling Array.from before computing the maximum value. - -Unlike the built-in [Math.max](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Math/max), this method ignores undefined values; this is useful for ignoring missing data. In addition, elements are compared using natural order rather than numeric order. For example, the maximum of the strings [“20”, “3”] is “3”, while the maximum of the numbers [20, 3] is 20. - -See also [extent](#extent). - -# d3.maxIndex(iterable[, accessor]) · [Source](https://github.com/d3/d3-array/blob/main/src/maxIndex.js), [Examples](https://observablehq.com/@d3/d3-extent) - -Returns the index of the maximum value in the given *iterable* using natural order. If the iterable contains no comparable values, returns -1. An optional *accessor* function may be specified, which is equivalent to calling Array.from before computing the maximum value. - -Unlike the built-in [Math.max](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Math/max), this method ignores undefined values; this is useful for ignoring missing data. In addition, elements are compared using natural order rather than numeric order. For example, the maximum of the strings [“20”, “3”] is “3”, while the maximum of the numbers [20, 3] is 20. - -# d3.extent(iterable[, accessor]) · [Source](https://github.com/d3/d3-array/blob/main/src/extent.js), [Examples](https://observablehq.com/@d3/d3-extent) - -Returns the [minimum](#min) and [maximum](#max) value in the given *iterable* using natural order. If the iterable contains no comparable values, returns [undefined, undefined]. An optional *accessor* function may be specified, which is equivalent to calling Array.from before computing the extent. - -# d3.mode(iterable[, accessor]) · [Source](https://github.com/d3/d3-array/blob/main/src/mode.js), [Examples](https://observablehq.com/@d3/d3-mode) - -Returns the mode of the given *iterable*, *i.e.* the value which appears the most often. In case of equality, returns the first of the relevant values. If the iterable contains no comparable values, returns undefined. An optional *accessor* function may be specified, which is equivalent to calling Array.from before computing the mode. This method ignores undefined, null and NaN values; this is useful for ignoring missing data. - -# d3.sum(iterable[, accessor]) · [Source](https://github.com/d3/d3-array/blob/main/src/sum.js), [Examples](https://observablehq.com/@d3/d3-sum) - -Returns the sum of the given *iterable* of numbers. If the iterable contains no numbers, returns 0. An optional *accessor* function may be specified, which is equivalent to calling Array.from before computing the sum. This method ignores undefined and NaN values; this is useful for ignoring missing data. - -# d3.mean(iterable[, accessor]) · [Source](https://github.com/d3/d3-array/blob/main/src/mean.js), [Examples](https://observablehq.com/@d3/d3-mean-d3-median-and-friends) - -Returns the mean of the given *iterable* of numbers. If the iterable contains no numbers, returns undefined. An optional *accessor* function may be specified, which is equivalent to calling Array.from before computing the mean. This method ignores undefined and NaN values; this is useful for ignoring missing data. - -# d3.median(iterable[, accessor]) · [Source](https://github.com/d3/d3-array/blob/main/src/median.js), [Examples](https://observablehq.com/@d3/d3-mean-d3-median-and-friends) - -Returns the median of the given *iterable* of numbers using the [R-7 method](https://en.wikipedia.org/wiki/Quantile#Estimating_quantiles_from_a_sample). If the iterable contains no numbers, returns undefined. An optional *accessor* function may be specified, which is equivalent to calling Array.from before computing the median. This method ignores undefined and NaN values; this is useful for ignoring missing data. - -# d3.medianIndex(array[, accessor]) · [Source](https://github.com/d3/d3-array/blob/main/src/median.js) - -Similar to *median*, but returns the index of the element to the left of the median. - -# d3.cumsum(iterable[, accessor]) · [Source](https://github.com/d3/d3-array/blob/main/src/cumsum.js), [Examples](https://observablehq.com/@d3/d3-cumsum) - -Returns the cumulative sum of the given *iterable* of numbers, as a Float64Array of the same length. If the iterable contains no numbers, returns zeros. An optional *accessor* function may be specified, which is equivalent to calling Array.from before computing the cumulative sum. This method ignores undefined and NaN values; this is useful for ignoring missing data. - -# d3.quantile(iterable, p[, accessor]) · [Source](https://github.com/d3/d3-array/blob/main/src/quantile.js), [Examples](https://observablehq.com/@d3/d3-mean-d3-median-and-friends) - -Returns the *p*-quantile of the given *iterable* of numbers, where *p* is a number in the range [0, 1]. For example, the median can be computed using *p* = 0.5, the first quartile at *p* = 0.25, and the third quartile at *p* = 0.75. This particular implementation uses the [R-7 method](http://en.wikipedia.org/wiki/Quantile#Quantiles_of_a_population), which is the default for the R programming language and Excel. For example: - -```js -var a = [0, 10, 30]; -d3.quantile(a, 0); // 0 -d3.quantile(a, 0.5); // 10 -d3.quantile(a, 1); // 30 -d3.quantile(a, 0.25); // 5 -d3.quantile(a, 0.75); // 20 -d3.quantile(a, 0.1); // 2 -``` - -An optional *accessor* function may be specified, which is equivalent to calling *array*.map(*accessor*) before computing the quantile. - -# d3.quantileIndex(array, p[, accessor]) [Source](https://github.com/d3/d3-array/blob/main/src/quantile.js "Source") - -Similar to *quantile*, but returns the index to the left of *p*. - -# d3.quantileSorted(array, p[, accessor]) · [Source](https://github.com/d3/d3-array/blob/main/src/quantile.js), [Examples](https://observablehq.com/@d3/d3-mean-d3-median-and-friends) - -Similar to *quantile*, but expects the input to be a **sorted** *array* of values. In contrast with *quantile*, the accessor is only called on the elements needed to compute the quantile. - -# d3.rank(iterable[, comparator]) · [Source](https://github.com/d3/d3-array/blob/main/src/rank.js), [Examples](https://observablehq.com/@d3/rank) -
# d3.rank(iterable[, accessor]) - -Returns an array with the rank of each value in the *iterable*, *i.e.* the zero-based index of the value when the iterable is sorted. Nullish values are sorted to the end and ranked NaN. An optional *comparator* or *accessor* function may be specified; the latter is equivalent to calling *array*.map(*accessor*) before computing the ranks. If *comparator* is not specified, it defaults to [ascending](#ascending). Ties (equivalent values) all get the same rank, defined as the first time the value is found. - -```js -d3.rank([{x: 1}, {}, {x: 2}, {x: 0}], d => d.x); // [1, NaN, 2, 0] -d3.rank(["b", "c", "b", "a"]); // [1, 3, 1, 0] -d3.rank([1, 2, 3], d3.descending); // [2, 1, 0] -``` - -# d3.variance(iterable[, accessor]) · [Source](https://github.com/d3/d3-array/blob/main/src/variance.js), [Examples](https://observablehq.com/@d3/d3-mean-d3-median-and-friends) - -Returns an [unbiased estimator of the population variance](http://mathworld.wolfram.com/SampleVariance.html) of the given *iterable* of numbers using [Welford’s algorithm](https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Welford's_online_algorithm). If the iterable has fewer than two numbers, returns undefined. An optional *accessor* function may be specified, which is equivalent to calling Array.from before computing the variance. This method ignores undefined and NaN values; this is useful for ignoring missing data. - -# d3.deviation(iterable[, accessor]) · [Source](https://github.com/d3/d3-array/blob/main/src/deviation.js), [Examples](https://observablehq.com/@d3/d3-mean-d3-median-and-friends) - -Returns the standard deviation, defined as the square root of the [bias-corrected variance](#variance), of the given *iterable* of numbers. If the iterable has fewer than two numbers, returns undefined. An optional *accessor* function may be specified, which is equivalent to calling Array.from before computing the standard deviation. This method ignores undefined and NaN values; this is useful for ignoring missing data. - -# d3.fsum([values][, accessor]) · [Source](https://github.com/d3/d3-array/blob/main/src/fsum.js), [Examples](https://observablehq.com/@d3/d3-fsum) - -Returns a full precision summation of the given *values*. - -```js -d3.fsum([.1, .1, .1, .1, .1, .1, .1, .1, .1, .1]); // 1 -d3.sum([.1, .1, .1, .1, .1, .1, .1, .1, .1, .1]); // 0.9999999999999999 -``` - -Although slower, d3.fsum can replace d3.sum wherever greater precision is needed. Uses d3.Adder. - -# d3.fcumsum([values][, accessor]) · [Source](https://github.com/d3/d3-array/blob/main/src/fsum.js), [Examples](https://observablehq.com/@d3/d3-fcumsum) - -Returns a full precision cumulative sum of the given *values*. - -```js -d3.fcumsum([1, 1e-14, -1]); // [1, 1.00000000000001, 1e-14] -d3.cumsum([1, 1e-14, -1]); // [1, 1.00000000000001, 9.992e-15] -``` - -Although slower, d3.fcumsum can replace d3.cumsum when greater precision is needed. Uses d3.Adder. - -# new d3.Adder() - -Creates a full precision adder for [IEEE 754](https://en.wikipedia.org/wiki/IEEE_754) floating point numbers, setting its initial value to 0. - -# *adder*.add(number) - -Adds the specified *number* to the adder’s current value and returns the adder. - -# *adder*.valueOf() - -Returns the IEEE 754 double precision representation of the adder’s current value. Most useful as the short-hand notation `+adder`. - -### Search - -Methods for searching arrays for a specific element. - -# d3.least(iterable[, comparator]) · [Source](https://github.com/d3/d3-array/blob/main/src/least.js), [Examples](https://observablehq.com/@d3/d3-least) -
# d3.least(iterable[, accessor]) - -Returns the least element of the specified *iterable* according to the specified *comparator* or *accessor*. If the given *iterable* contains no comparable elements (*i.e.*, the comparator returns NaN when comparing each element to itself), returns undefined. If *comparator* is not specified, it defaults to [ascending](#ascending). For example: - -```js -const array = [{foo: 42}, {foo: 91}]; -d3.least(array, (a, b) => a.foo - b.foo); // {foo: 42} -d3.least(array, (a, b) => b.foo - a.foo); // {foo: 91} -d3.least(array, a => a.foo); // {foo: 42} -``` - -This function is similar to [min](#min), except it allows the use of a comparator rather than an accessor. - -# d3.leastIndex(iterable[, comparator]) · [Source](https://github.com/d3/d3-array/blob/main/src/leastIndex.js), [Examples](https://observablehq.com/@d3/d3-least) -
# d3.leastIndex(iterable[, accessor]) - -Returns the index of the least element of the specified *iterable* according to the specified *comparator* or *accessor*. If the given *iterable* contains no comparable elements (*i.e.*, the comparator returns NaN when comparing each element to itself), returns -1. If *comparator* is not specified, it defaults to [ascending](#ascending). For example: - -```js -const array = [{foo: 42}, {foo: 91}]; -d3.leastIndex(array, (a, b) => a.foo - b.foo); // 0 -d3.leastIndex(array, (a, b) => b.foo - a.foo); // 1 -d3.leastIndex(array, a => a.foo); // 0 -``` - -This function is similar to [minIndex](#minIndex), except it allows the use of a comparator rather than an accessor. - -# d3.greatest(iterable[, comparator]) · [Source](https://github.com/d3/d3-array/blob/main/src/greatest.js), [Examples](https://observablehq.com/@d3/d3-least) -
# d3.greatest(iterable[, accessor]) - -Returns the greatest element of the specified *iterable* according to the specified *comparator* or *accessor*. If the given *iterable* contains no comparable elements (*i.e.*, the comparator returns NaN when comparing each element to itself), returns undefined. If *comparator* is not specified, it defaults to [ascending](#ascending). For example: - -```js -const array = [{foo: 42}, {foo: 91}]; -d3.greatest(array, (a, b) => a.foo - b.foo); // {foo: 91} -d3.greatest(array, (a, b) => b.foo - a.foo); // {foo: 42} -d3.greatest(array, a => a.foo); // {foo: 91} -``` - -This function is similar to [max](#max), except it allows the use of a comparator rather than an accessor. - -# d3.greatestIndex(iterable[, comparator]) · [Source](https://github.com/d3/d3-array/blob/main/src/greatestIndex.js), [Examples](https://observablehq.com/@d3/d3-least) -
# d3.greatestIndex(iterable[, accessor]) - -Returns the index of the greatest element of the specified *iterable* according to the specified *comparator* or *accessor*. If the given *iterable* contains no comparable elements (*i.e.*, the comparator returns NaN when comparing each element to itself), returns -1. If *comparator* is not specified, it defaults to [ascending](#ascending). For example: - -```js -const array = [{foo: 42}, {foo: 91}]; -d3.greatestIndex(array, (a, b) => a.foo - b.foo); // 1 -d3.greatestIndex(array, (a, b) => b.foo - a.foo); // 0 -d3.greatestIndex(array, a => a.foo); // 1 -``` - -This function is similar to [maxIndex](#maxIndex), except it allows the use of a comparator rather than an accessor. - -# d3.bisectLeft(array, x[, lo[, hi]]) · [Source](https://github.com/d3/d3-array/blob/main/src/bisect.js) - -Returns the insertion point for *x* in *array* to maintain sorted order. The arguments *lo* and *hi* may be used to specify a subset of the array which should be considered; by default the entire array is used. If *x* is already present in *array*, the insertion point will be before (to the left of) any existing entries. The return value is suitable for use as the first argument to [splice](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/splice) assuming that *array* is already sorted. The returned insertion point *i* partitions the *array* into two halves so that all *v* < *x* for *v* in *array*.slice(*lo*, *i*) for the left side and all *v* >= *x* for *v* in *array*.slice(*i*, *hi*) for the right side. - -# d3.bisect(array, x[, lo[, hi]]) · [Source](https://github.com/d3/d3-array/blob/main/src/bisect.js), [Examples](https://observablehq.com/@d3/d3-bisect) -
# d3.bisectRight(array, x[, lo[, hi]]) - -Similar to [bisectLeft](#bisectLeft), but returns an insertion point which comes after (to the right of) any existing entries of *x* in *array*. The returned insertion point *i* partitions the *array* into two halves so that all *v* <= *x* for *v* in *array*.slice(*lo*, *i*) for the left side and all *v* > *x* for *v* in *array*.slice(*i*, *hi*) for the right side. - -# d3.bisectCenter(array, x[, lo[, hi]]) · [Source](https://github.com/d3/d3-array/blob/main/src/bisect.js), [Examples](https://observablehq.com/@d3/multi-line-chart) - -Returns the index of the value closest to *x* in the given *array* of numbers. The arguments *lo* (inclusive) and *hi* (exclusive) may be used to specify a subset of the array which should be considered; by default the entire array is used. - -See [*bisector*.center](#bisector_center). - -# d3.bisector(accessor) · [Source](https://github.com/d3/d3-array/blob/main/src/bisector.js) -
# d3.bisector(comparator) - -Returns a new bisector using the specified *accessor* or *comparator* function. This method can be used to bisect arrays of objects instead of being limited to simple arrays of primitives. For example, given the following array of objects: - -```js -var data = [ - {date: new Date(2011, 1, 1), value: 0.5}, - {date: new Date(2011, 2, 1), value: 0.6}, - {date: new Date(2011, 3, 1), value: 0.7}, - {date: new Date(2011, 4, 1), value: 0.8} -]; -``` - -A suitable bisect function could be constructed as: - -```js -var bisectDate = d3.bisector(function(d) { return d.date; }).right; -``` - -This is equivalent to specifying a comparator: - -```js -var bisectDate = d3.bisector(function(d, x) { return d.date - x; }).right; -``` - -And then applied as *bisectDate*(*array*, *date*), returning an index. Note that the comparator is always passed the search value *x* as the second argument. Use a comparator rather than an accessor if you want values to be sorted in an order different than natural order, such as in descending rather than ascending order. - -# bisector.left(array, x[, lo[, hi]]) · [Source](https://github.com/d3/d3-array/blob/main/src/bisector.js) - -Equivalent to [bisectLeft](#bisectLeft), but uses this bisector’s associated comparator. - -# bisector.right(array, x[, lo[, hi]]) · [Source](https://github.com/d3/d3-array/blob/main/src/bisector.js) - -Equivalent to [bisectRight](#bisectRight), but uses this bisector’s associated comparator. - -# bisector.center(array, x[, lo[, hi]]) · [Source](https://github.com/d3/d3-array/blob/main/src/bisector.js) - -Returns the index of the closest value to *x* in the given sorted *array*. This expects that the bisector’s associated accessor returns a quantitative value, or that the bisector’s associated comparator returns a signed distance; otherwise, this method is equivalent to *bisector*.left. - -# d3.quickselect(array, k, left = 0, right = array.length - 1, compare = ascending) · [Source](https://github.com/d3/d3-array/blob/main/src/quickselect.js), [Examples](https://observablehq.com/@d3/d3-quickselect) - -See [mourner/quickselect](https://github.com/mourner/quickselect/blob/master/README.md). - -# d3.ascending(a, b) · [Source](https://github.com/d3/d3-array/blob/main/src/ascending.js), [Examples](https://observablehq.com/@d3/d3-ascending) - -Returns -1 if *a* is less than *b*, or 1 if *a* is greater than *b*, or 0. This is the comparator function for natural order, and can be used in conjunction with the built-in [*array*.sort](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) method to arrange elements in ascending order. It is implemented as: - -```js -function ascending(a, b) { - return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN; -} -``` - -Note that if no comparator function is specified to the built-in sort method, the default order is lexicographic (alphabetical), not natural! This can lead to surprising behavior when sorting an array of numbers. - -# d3.descending(a, b) · [Source](https://github.com/d3/d3-array/blob/main/src/descending.js), [Examples](https://observablehq.com/@d3/d3-ascending) - -Returns -1 if *a* is greater than *b*, or 1 if *a* is less than *b*, or 0. This is the comparator function for reverse natural order, and can be used in conjunction with the built-in array sort method to arrange elements in descending order. It is implemented as: - -```js -function descending(a, b) { - return a == null || b == null ? NaN : b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN; -} -``` - -Note that if no comparator function is specified to the built-in sort method, the default order is lexicographic (alphabetical), not natural! This can lead to surprising behavior when sorting an array of numbers. - -### Transformations - -Methods for transforming arrays and for generating new arrays. - -# d3.group(iterable, ...keys) · [Source](https://github.com/d3/d3-array/blob/main/src/group.js), [Examples](https://observablehq.com/@d3/d3-group-d3-rollup) - -Groups the specified *iterable* of values into an [InternMap](#InternMap) from *key* to array of value. For example, given some data: - -```js -data = [ - {name: "jim", amount: "34.0", date: "11/12/2015"}, - {name: "carl", amount: "120.11", date: "11/12/2015"}, - {name: "stacy", amount: "12.01", date: "01/04/2016"}, - {name: "stacy", amount: "34.05", date: "01/04/2016"} -] -``` - -To group the data by name: - -```js -d3.group(data, d => d.name) -``` - -This produces: - -```js -Map(3) { - "jim" => Array(1) - "carl" => Array(1) - "stacy" => Array(2) -} -``` - -If more than one *key* is specified, a nested InternMap is returned. For example: - -```js -d3.group(data, d => d.name, d => d.date) -``` - -This produces: - -```js -Map(3) { - "jim" => Map(1) { - "11/12/2015" => Array(1) - } - "carl" => Map(1) { - "11/12/2015" => Array(1) - } - "stacy" => Map(1) { - "01/04/2016" => Array(2) - } -} -``` - -To convert a Map to an Array, use [Array.from](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from). For example: - -```js -Array.from(d3.group(data, d => d.name)) -``` - -This produces: - -```js -[ - ["jim", Array(1)], - ["carl", Array(1)], - ["stacy", Array(2)] -] -``` - -You can also simultaneously convert the [*key*, *value*] to some other representation by passing a map function to Array.from: - -```js -Array.from(d3.group(data, d => d.name), ([key, value]) => ({key, value})) -``` - -This produces: - -```js -[ - {key: "jim", value: Array(1)}, - {key: "carl", value: Array(1)}, - {key: "stacy", value: Array(2)} -] -``` - -[*selection*.data](https://github.com/d3/d3-selection/blob/main/README.md#selection_data) accepts iterables directly, meaning that you can use a Map (or Set or other iterable) to perform a data join without first needing to convert to an array. - -# d3.groups(iterable, ...keys) · [Source](https://github.com/d3/d3-array/blob/main/src/group.js), [Examples](https://observablehq.com/@d3/d3-group-d3-rollup) - -Equivalent to [group](#group), but returns nested arrays instead of nested maps. - -# d3.flatGroup(iterable, ...keys) · [Source](https://github.com/d3/d3-array/blob/main/src/group.js), [Examples](https://observablehq.com/@d3/d3-flatgroup) - -Equivalent to [group](#group), but returns a flat array of [*key0*, *key1*, …, *values*] instead of nested maps. - -# d3.index(iterable, ...keys) · [Source](https://github.com/d3/d3-array/blob/main/src/group.js), [Examples](https://observablehq.com/@d3/d3-group) - -Equivalent to [group](#group) but returns a unique value per compound key instead of an array, throwing if the key is not unique. - -For example, given the data defined above, - -```js -d3.index(data, d => d.amount) -``` - -returns - -```js -Map(4) { - "34.0" => Object {name: "jim", amount: "34.0", date: "11/12/2015"} - "120.11" => Object {name: "carl", amount: "120.11", date: "11/12/2015"} - "12.01" => Object {name: "stacy", amount: "12.01", date: "01/04/2016"} - "34.05" => Object {name: "stacy", amount: "34.05", date: "01/04/2016"} -} -``` - -On the other hand, - -```js -d3.index(data, d => d.name) -``` - -throws an error because two objects share the same name. - -# d3.indexes(iterable, ...keys) · [Source](https://github.com/d3/d3-array/blob/main/src/group.js), [Examples](https://observablehq.com/@d3/d3-group) - -Equivalent to [index](#index), but returns nested arrays instead of nested maps. - -# d3.rollup(iterable, reduce, ...keys) · [Source](https://github.com/d3/d3-array/blob/main/src/group.js), [Examples](https://observablehq.com/@d3/d3-group-d3-rollup) - -[Groups](#group) and reduces the specified *iterable* of values into an InternMap from *key* to value. For example, given some data: - -```js -data = [ - {name: "jim", amount: "34.0", date: "11/12/2015"}, - {name: "carl", amount: "120.11", date: "11/12/2015"}, - {name: "stacy", amount: "12.01", date: "01/04/2016"}, - {name: "stacy", amount: "34.05", date: "01/04/2016"} -] -``` - -To count the number of elements by name: - -```js -d3.rollup(data, v => v.length, d => d.name) -``` - -This produces: - -```js -Map(3) { - "jim" => 1 - "carl" => 1 - "stacy" => 2 -} -``` - -If more than one *key* is specified, a nested Map is returned. For example: - -```js -d3.rollup(data, v => v.length, d => d.name, d => d.date) -``` - -This produces: - -```js -Map(3) { - "jim" => Map(1) { - "11/12/2015" => 1 - } - "carl" => Map(1) { - "11/12/2015" => 1 - } - "stacy" => Map(1) { - "01/04/2016" => 2 - } -} -``` - -To convert a Map to an Array, use [Array.from](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from). See [d3.group](#group) for examples. - -# d3.rollups(iterable, reduce, ...keys) · [Source](https://github.com/d3/d3-array/blob/main/src/group.js), [Examples](https://observablehq.com/@d3/d3-group-d3-rollup) - -Equivalent to [rollup](#rollup), but returns nested arrays instead of nested maps. - -# d3.flatRollup(iterable, reduce, ...keys) · [Source](https://github.com/d3/d3-array/blob/main/src/group.js), [Examples](https://observablehq.com/@d3/d3-flatgroup) - -Equivalent to [rollup](#rollup), but returns a flat array of [*key0*, *key1*, …, *value*] instead of nested maps. - -# d3.groupSort(iterable, comparator, key) · [Source](https://github.com/d3/d3-array/blob/main/src/groupSort.js), [Examples](https://observablehq.com/@d3/d3-groupsort) -
# d3.groupSort(iterable, accessor, key) - -Groups the specified *iterable* of elements according to the specified *key* function, sorts the groups according to the specified *comparator*, and then returns an array of keys in sorted order. For example, if you had a table of barley yields for different varieties, sites, and years, to sort the barley varieties by ascending median yield: - -```js -d3.groupSort(barley, g => d3.median(g, d => d.yield), d => d.variety) -``` - -For descending order, negate the group value: - -```js -d3.groupSort(barley, g => -d3.median(g, d => d.yield), d => d.variety) -``` - -If a *comparator* is passed instead of an *accessor* (i.e., if the second argument is a function that takes exactly two arguments), it will be asked to compare two groups *a* and *b* and should return a negative value if *a* should be before *b*, a positive value if *a* should be after *b*, or zero for a partial ordering. - -# d3.count(iterable[, accessor]) · [Source](https://github.com/d3/d3-array/blob/main/src/count.js), [Examples](https://observablehq.com/@d3/d3-count) - -Returns the number of valid number values (*i.e.*, not null, NaN, or undefined) in the specified *iterable*; accepts an accessor. - -For example: - -```js -d3.count([{n: "Alice", age: NaN}, {n: "Bob", age: 18}, {n: "Other"}], d => d.age) // 1 -``` -# d3.cross(...iterables[, reducer]) · [Source](https://github.com/d3/d3-array/blob/main/src/cross.js), [Examples](https://observablehq.com/@d3/d3-cross) - -Returns the [Cartesian product](https://en.wikipedia.org/wiki/Cartesian_product) of the specified *iterables*. For example, if two iterables *a* and *b* are specified, for each element *i* in the iterable *a* and each element *j* in the iterable *b*, in order, invokes the specified *reducer* function passing the element *i* and element *j*. If a *reducer* is not specified, it defaults to a function which creates a two-element array for each pair: - -```js -function pair(a, b) { - return [a, b]; -} -``` - -For example: - -```js -d3.cross([1, 2], ["x", "y"]); // returns [[1, "x"], [1, "y"], [2, "x"], [2, "y"]] -d3.cross([1, 2], ["x", "y"], (a, b) => a + b); // returns ["1x", "1y", "2x", "2y"] -``` - -# d3.merge(iterables) · [Source](https://github.com/d3/d3-array/blob/main/src/merge.js), [Examples](https://observablehq.com/@d3/d3-merge) - -Merges the specified iterable of *iterables* into a single array. This method is similar to the built-in array concat method; the only difference is that it is more convenient when you have an array of arrays. - -```js -d3.merge([[1], [2, 3]]); // returns [1, 2, 3] -``` - -# d3.pairs(iterable[, reducer]) · [Source](https://github.com/d3/d3-array/blob/main/src/pairs.js), [Examples](https://observablehq.com/@d3/d3-pairs) - -For each adjacent pair of elements in the specified *iterable*, in order, invokes the specified *reducer* function passing the element *i* and element *i* - 1. If a *reducer* is not specified, it defaults to a function which creates a two-element array for each pair: - -```js -function pair(a, b) { - return [a, b]; -} -``` - -For example: - -```js -d3.pairs([1, 2, 3, 4]); // returns [[1, 2], [2, 3], [3, 4]] -d3.pairs([1, 2, 3, 4], (a, b) => b - a); // returns [1, 1, 1]; -``` - -If the specified iterable has fewer than two elements, returns the empty array. - -# d3.permute(source, keys) · [Source](https://github.com/d3/d3-array/blob/main/src/permute.js), [Examples](https://observablehq.com/@d3/d3-permute) - -Returns a permutation of the specified *source* object (or array) using the specified iterable of *keys*. The returned array contains the corresponding property of the source object for each key in *keys*, in order. For example: - -```js -permute(["a", "b", "c"], [1, 2, 0]); // returns ["b", "c", "a"] -``` - -It is acceptable to have more keys than source elements, and for keys to be duplicated or omitted. - -This method can also be used to extract the values from an object into an array with a stable order. Extracting keyed values in order can be useful for generating data arrays in nested selections. For example: - -```js -let object = {yield: 27, variety: "Manchuria", year: 1931, site: "University Farm"}; -let fields = ["site", "variety", "yield"]; - -d3.permute(object, fields); // returns ["University Farm", "Manchuria", 27] -``` - -# d3.shuffle(array[, start[, stop]]) · [Source](https://github.com/d3/d3-array/blob/main/src/shuffle.js), [Examples](https://observablehq.com/@d3/d3-shuffle) - -Randomizes the order of the specified *array* in-place using the [Fisher–Yates shuffle](https://bost.ocks.org/mike/shuffle/) and returns the *array*. If *start* is specified, it is the starting index (inclusive) of the *array* to shuffle; if *start* is not specified, it defaults to zero. If *stop* is specified, it is the ending index (exclusive) of the *array* to shuffle; if *stop* is not specified, it defaults to *array*.length. For example, to shuffle the first ten elements of the *array*: shuffle(*array*, 0, 10). - -# d3.shuffler(random) · [Source](https://github.com/d3/d3-array/blob/main/src/shuffle.js) - -Returns a [shuffle function](#shuffle) given the specified random source. For example, using [d3.randomLcg](https://github.com/d3/d3-random/blob/main/README.md#randomLcg): - -```js -const random = d3.randomLcg(0.9051667019185816); -const shuffle = d3.shuffler(random); - -shuffle([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]); // returns [7, 4, 5, 3, 9, 0, 6, 1, 2, 8] -``` - -# d3.ticks(start, stop, count) · [Source](https://github.com/d3/d3-array/blob/main/src/ticks.js), [Examples](https://observablehq.com/@d3/d3-ticks) - -Returns an array of approximately *count* + 1 uniformly-spaced, nicely-rounded values between *start* and *stop* (inclusive). Each value is a power of ten multiplied by 1, 2 or 5. See also [d3.tickIncrement](#tickIncrement), [d3.tickStep](#tickStep) and [*linear*.ticks](https://github.com/d3/d3-scale/blob/main/README.md#linear_ticks). - -Ticks are inclusive in the sense that they may include the specified *start* and *stop* values if (and only if) they are exact, nicely-rounded values consistent with the inferred [step](#tickStep). More formally, each returned tick *t* satisfies *start* ≤ *t* and *t* ≤ *stop*. - -# d3.tickIncrement(start, stop, count) · [Source](https://github.com/d3/d3-array/blob/main/src/ticks.js), [Examples](https://observablehq.com/@d3/d3-ticks) - -Like [d3.tickStep](#tickStep), except requires that *start* is always less than or equal to *stop*, and if the tick step for the given *start*, *stop* and *count* would be less than one, returns the negative inverse tick step instead. This method is always guaranteed to return an integer, and is used by [d3.ticks](#ticks) to guarantee that the returned tick values are represented as precisely as possible in IEEE 754 floating point. - -# d3.tickStep(start, stop, count) · [Source](https://github.com/d3/d3-array/blob/main/src/ticks.js), [Examples](https://observablehq.com/@d3/d3-ticks) - -Returns the difference between adjacent tick values if the same arguments were passed to [d3.ticks](#ticks): a nicely-rounded value that is a power of ten multiplied by 1, 2 or 5. Note that due to the limited precision of IEEE 754 floating point, the returned value may not be exact decimals; use [d3-format](https://github.com/d3/d3-format) to format numbers for human consumption. - -# d3.nice(start, stop, count) · [Source](https://github.com/d3/d3-array/blob/main/src/nice.js) - -Returns a new interval [*niceStart*, *niceStop*] covering the given interval [*start*, *stop*] and where *niceStart* and *niceStop* are guaranteed to align with the corresponding [tick step](#tickStep). Like [d3.tickIncrement](#tickIncrement), this requires that *start* is less than or equal to *stop*. - -# d3.range([start, ]stop[, step]) · [Source](https://github.com/d3/d3-array/blob/main/src/range.js), [Examples](https://observablehq.com/@d3/d3-range) - -Returns an array containing an arithmetic progression, similar to the Python built-in [range](http://docs.python.org/library/functions.html#range). This method is often used to iterate over a sequence of uniformly-spaced numeric values, such as the indexes of an array or the ticks of a linear scale. (See also [d3.ticks](#ticks) for nicely-rounded values.) - -If *step* is omitted, it defaults to 1. If *start* is omitted, it defaults to 0. The *stop* value is exclusive; it is not included in the result. If *step* is positive, the last element is the largest *start* + *i* \* *step* less than *stop*; if *step* is negative, the last element is the smallest *start* + *i* \* *step* greater than *stop*. If the returned array would contain an infinite number of values, an empty range is returned. - -The arguments are not required to be integers; however, the results are more predictable if they are. The values in the returned array are defined as *start* + *i* \* *step*, where *i* is an integer from zero to one minus the total number of elements in the returned array. For example: - -```js -d3.range(0, 1, 0.2) // [0, 0.2, 0.4, 0.6000000000000001, 0.8] -``` - -This unexpected behavior is due to IEEE 754 double-precision floating point, which defines 0.2 * 3 = 0.6000000000000001. Use [d3-format](https://github.com/d3/d3-format) to format numbers for human consumption with appropriate rounding; see also [linear.tickFormat](https://github.com/d3/d3-scale/blob/main/README.md#linear_tickFormat) in [d3-scale](https://github.com/d3/d3-scale). - -Likewise, if the returned array should have a specific length, consider using [array.map](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/map) on an integer range. For example: - -```js -d3.range(0, 1, 1 / 49); // BAD: returns 50 elements! -d3.range(49).map(function(d) { return d / 49; }); // GOOD: returns 49 elements. -``` - -# d3.transpose(matrix) · [Source](https://github.com/d3/d3-array/blob/main/src/transpose.js), [Examples](https://observablehq.com/@d3/d3-transpose) - -Uses the [zip](#zip) operator as a two-dimensional [matrix transpose](http://en.wikipedia.org/wiki/Transpose). - -# d3.zip(arrays…) · [Source](https://github.com/d3/d3-array/blob/main/src/zip.js), [Examples](https://observablehq.com/@d3/d3-transpose) - -Returns an array of arrays, where the *i*th array contains the *i*th element from each of the argument *arrays*. The returned array is truncated in length to the shortest array in *arrays*. If *arrays* contains only a single array, the returned array contains one-element arrays. With no arguments, the returned array is empty. - -```js -d3.zip([1, 2], [3, 4]); // returns [[1, 3], [2, 4]] -``` - -#### Blur - -# d3.blur(*data*, *radius*) · [Source](https://github.com/d3/d3-array/blob/main/src/blur.js), [Examples](https://observablehq.com/@d3/d3-blur) - -Blurs an array of *data* in-place by applying three iterations of a moving average transform, for a fast approximation of a gaussian kernel of the given *radius*, a non-negative number, and returns the array. - -```js -const randomWalk = d3.cumsum({length: 1000}, () => Math.random() - 0.5); -blur(randomWalk, 5); -``` - -Copy the data if you don’t want to smooth it in-place: -```js -const smoothed = blur(randomWalk.slice(), 5); -``` - -# d3.blur2({*data*, *width*[, *height*]}, *rx*[, *ry*]) · [Source](https://github.com/d3/d3-array/blob/main/src/blur.js), [Examples](https://observablehq.com/@d3/d3-blur) - -Blurs a matrix of the given *width* and *height* in-place, by applying an horizontal blur of radius *rx* and a vertical blur or radius *ry* (which defaults to *rx*). The matrix *data* is stored in a flat array, used to determine the *height* if it is not specified. Returns the blurred {data, width, height}. - -```js -data = [ - 1, 0, 0, - 0, 0, 0, - 0, 0, 1 -]; -blur2({data, width: 3}, 1); -``` - -# d3.blurImage(*imageData*, *rx*[, *ry*]) · [Source](https://github.com/d3/d3-array/blob/main/src/blur.js), [Examples](https://observablehq.com/@d3/d3-blurimage) - -Blurs an [ImageData](https://developer.mozilla.org/en-US/docs/Web/API/ImageData) structure in-place, blurring each of the RGBA layers independently by applying an horizontal blur of radius *rx* and a vertical blur or radius *ry* (which defaults to *rx*). Returns the blurred ImageData. - -```js -const imData = context.getImageData(0, 0, width, height); -blurImage(imData, 5); -``` - -### Iterables - -These are equivalent to built-in array methods, but work with any iterable including Map, Set, and Generator. - -# d3.every(iterable, test) · [Source](https://github.com/d3/d3-array/blob/main/src/every.js) - -Returns true if the given *test* function returns true for every value in the given *iterable*. This method returns as soon as *test* returns a non-truthy value or all values are iterated over. Equivalent to [*array*.every](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every): - -```js -d3.every(new Set([1, 3, 5, 7]), x => x & 1) // true -``` - -# d3.some(iterable, test) · [Source](https://github.com/d3/d3-array/blob/main/src/some.js) - -Returns true if the given *test* function returns true for any value in the given *iterable*. This method returns as soon as *test* returns a truthy value or all values are iterated over. Equivalent to [*array*.some](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some): - -```js -d3.some(new Set([0, 2, 3, 4]), x => x & 1) // true -``` - -# d3.filter(iterable, test) · [Source](https://github.com/d3/d3-array/blob/main/src/filter.js) - -Returns a new array containing the values from *iterable*, in order, for which the given *test* function returns true. Equivalent to [*array*.filter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter): - -```js -d3.filter(new Set([0, 2, 3, 4]), x => x & 1) // [3] -``` - -# d3.map(iterable, mapper) · [Source](https://github.com/d3/d3-array/blob/main/src/map.js) - -Returns a new array containing the mapped values from *iterable*, in order, as defined by given *mapper* function. Equivalent to [*array*.map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) and [Array.from](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from): - -```js -d3.map(new Set([0, 2, 3, 4]), x => x & 1) // [0, 0, 1, 0] -``` - -# d3.reduce(iterable, reducer[, initialValue]) · [Source](https://github.com/d3/d3-array/blob/main/src/reduce.js) - -Returns the reduced value defined by given *reducer* function, which is repeatedly invoked for each value in *iterable*, being passed the current reduced value and the next value. Equivalent to [*array*.reduce](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce): - -```js -d3.reduce(new Set([0, 2, 3, 4]), (p, v) => p + v, 0) // 9 -``` - -# d3.reverse(iterable) · [Source](https://github.com/d3/d3-array/blob/main/src/reverse.js) - -Returns an array containing the values in the given *iterable* in reverse order. Equivalent to [*array*.reverse](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse), except that it does not mutate the given *iterable*: - -```js -d3.reverse(new Set([0, 2, 3, 1])) // [1, 3, 2, 0] -``` - -# d3.sort(iterable, comparator = d3.ascending) · [Source](https://github.com/d3/d3-array/blob/main/src/sort.js) -
# d3.sort(iterable, ...accessors) - -Returns an array containing the values in the given *iterable* in the sorted order defined by the given *comparator* or *accessor* function. If *comparator* is not specified, it defaults to [d3.ascending](#ascending). Equivalent to [*array*.sort](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort), except that it does not mutate the given *iterable*, and the comparator defaults to natural order instead of lexicographic order: - -```js -d3.sort(new Set([0, 2, 3, 1])) // [0, 1, 2, 3] -``` - -If an *accessor* (a function that does not take exactly two arguments) is specified, - -```js -d3.sort(data, d => d.value) -``` - -it is equivalent to a *comparator* using [natural order](#ascending): - -```js -d3.sort(data, (a, b) => d3.ascending(a.value, b.value)) -``` - -The *accessor* is only invoked once per element, and thus the returned sorted order is consistent even if the accessor is nondeterministic. - -Multiple accessors may be specified to break ties: - -```js -d3.sort(points, ({x}) => x, ({y}) => y) -``` - -This is equivalent to: - -```js -d3.sort(data, (a, b) => d3.ascending(a.x, b.x) || d3.ascending(a.y, b.y)) -``` - -### Sets - -This methods implement basic set operations for any iterable. - -# d3.difference(iterable, ...others) · [Source](https://github.com/d3/d3-array/blob/main/src/difference.js) - -Returns a new InternSet containing every value in *iterable* that is not in any of the *others* iterables. - -```js -d3.difference([0, 1, 2, 0], [1]) // Set {0, 2} -``` - -# d3.union(...iterables) · [Source](https://github.com/d3/d3-array/blob/main/src/union.js) - -Returns a new InternSet containing every (distinct) value that appears in any of the given *iterables*. The order of values in the returned set is based on their first occurrence in the given *iterables*. - -```js -d3.union([0, 2, 1, 0], [1, 3]) // Set {0, 2, 1, 3} -``` - -# d3.intersection(...iterables) · [Source](https://github.com/d3/d3-array/blob/main/src/intersection.js) - -Returns a new InternSet containing every (distinct) value that appears in all of the given *iterables*. The order of values in the returned set is based on their first occurrence in the given *iterables*. - -```js -d3.intersection([0, 2, 1, 0], [1, 3]) // Set {1} -``` - -# d3.superset(a, b) · [Source](https://github.com/d3/d3-array/blob/main/src/superset.js) - -Returns true if *a* is a superset of *b*: if every value in the given iterable *b* is also in the given iterable *a*. - -```js -d3.superset([0, 2, 1, 3, 0], [1, 3]) // true -``` - -# d3.subset(a, b) · [Source](https://github.com/d3/d3-array/blob/main/src/subset.js) - -Returns true if *a* is a subset of *b*: if every value in the given iterable *a* is also in the given iterable *b*. - -```js -d3.subset([1, 3], [0, 2, 1, 3, 0]) // true -``` - -# d3.disjoint(a, b) · [Source](https://github.com/d3/d3-array/blob/main/src/disjoint.js) - -Returns true if *a* and *b* are disjoint: if *a* and *b* contain no shared value. - -```js -d3.disjoint([1, 3], [2, 4]) // true -``` - -### Bins - -[Histogram](http://bl.ocks.org/mbostock/3048450) - -Binning groups discrete samples into a smaller number of consecutive, non-overlapping intervals. They are often used to visualize the distribution of numerical data as histograms. - -# d3.bin() · [Source](https://github.com/d3/d3-array/blob/main/src/bin.js), [Examples](https://observablehq.com/@d3/d3-bin) - -Constructs a new bin generator with the default settings. - -# bin(data) · [Source](https://github.com/d3/d3-array/blob/main/src/bin.js), [Examples](https://observablehq.com/@d3/d3-bin) - -Bins the given iterable of *data* samples. Returns an array of bins, where each bin is an array containing the associated elements from the input *data*. Thus, the `length` of the bin is the number of elements in that bin. Each bin has two additional attributes: - -* `x0` - the lower bound of the bin (inclusive). -* `x1` - the upper bound of the bin (exclusive, except for the last bin). - -Any null or non-comparable values in the given *data*, or those outside the [domain](#bin_domain), are ignored. - -# bin.value([value]) · [Source](https://github.com/d3/d3-array/blob/main/src/bin.js), [Examples](https://observablehq.com/@d3/d3-bin) - -If *value* is specified, sets the value accessor to the specified function or constant and returns this bin generator. If *value* is not specified, returns the current value accessor, which defaults to the identity function. - -When bins are [generated](#_bin), the value accessor will be invoked for each element in the input data array, being passed the element `d`, the index `i`, and the array `data` as three arguments. The default value accessor assumes that the input data are orderable (comparable), such as numbers or dates. If your data are not, then you should specify an accessor that returns the corresponding orderable value for a given datum. - -This is similar to mapping your data to values before invoking the bin generator, but has the benefit that the input data remains associated with the returned bins, thereby making it easier to access other fields of the data. - -# bin.domain([domain]) · [Source](https://github.com/d3/d3-array/blob/main/src/bin.js), [Examples](https://observablehq.com/@d3/d3-bin) - -If *domain* is specified, sets the domain accessor to the specified function or array and returns this bin generator. If *domain* is not specified, returns the current domain accessor, which defaults to [extent](#extent). The bin domain is defined as an array [*min*, *max*], where *min* is the minimum observable value and *max* is the maximum observable value; both values are inclusive. Any value outside of this domain will be ignored when the bins are [generated](#_bin). - -For example, if you are using the bin generator in conjunction with a [linear scale](https://github.com/d3/d3-scale/blob/main/README.md#linear-scales) `x`, you might say: - -```js -var bin = d3.bin() - .domain(x.domain()) - .thresholds(x.ticks(20)); -``` - -You can then compute the bins from an array of numbers like so: - -```js -var bins = bin(numbers); -``` - -If the default [extent](#extent) domain is used and the [thresholds](#bin_thresholds) are specified as a count (rather than explicit values), then the computed domain will be [niced](#nice) such that all bins are uniform width. - -Note that the domain accessor is invoked on the materialized array of [values](#bin_value), not on the input data array. - -# bin.thresholds([count]) · [Source](https://github.com/d3/d3-array/blob/main/src/bin.js), [Examples](https://observablehq.com/@d3/d3-bin) -
# bin.thresholds([thresholds]) - -If *thresholds* is specified, sets the [threshold generator](#bin-thresholds) to the specified function or array and returns this bin generator. If *thresholds* is not specified, returns the current threshold generator, which by default implements [Sturges’ formula](#thresholdSturges). (Thus by default, the values to be binned must be numbers!) Thresholds are defined as an array of values [*x0*, *x1*, …]. Any value less than *x0* will be placed in the first bin; any value greater than or equal to *x0* but less than *x1* will be placed in the second bin; and so on. Thus, the [generated bins](#_bin) will have *thresholds*.length + 1 bins. See [bin thresholds](#bin-thresholds) for more information. - -Any threshold values outside the [domain](#bin_domain) are ignored. The first *bin*.x0 is always equal to the minimum domain value, and the last *bin*.x1 is always equal to the maximum domain value. - -If a *count* is specified instead of an array of *thresholds*, then the [domain](#bin_domain) will be uniformly divided into approximately *count* bins; see [ticks](#ticks). - -#### Bin Thresholds - -These functions are typically not used directly; instead, pass them to [*bin*.thresholds](#bin_thresholds). - -# d3.thresholdFreedmanDiaconis(values, min, max) · [Source](https://github.com/d3/d3-array/blob/main/src/threshold/freedmanDiaconis.js), [Examples](https://observablehq.com/@d3/d3-bin) - -Returns the number of bins according to the [Freedman–Diaconis rule](https://en.wikipedia.org/wiki/Histogram#Mathematical_definition); the input *values* must be numbers. - -# d3.thresholdScott(values, min, max) · [Source](https://github.com/d3/d3-array/blob/main/src/threshold/scott.js), [Examples](https://observablehq.com/@d3/d3-bin) - -Returns the number of bins according to [Scott’s normal reference rule](https://en.wikipedia.org/wiki/Histogram#Mathematical_definition); the input *values* must be numbers. - -# d3.thresholdSturges(values) · [Source](https://github.com/d3/d3-array/blob/main/src/threshold/sturges.js), [Examples](https://observablehq.com/@d3/d3-bin) - -Returns the number of bins according to [Sturges’ formula](https://en.wikipedia.org/wiki/Histogram#Mathematical_definition); the input *values* must be numbers. - -You may also implement your own threshold generator taking three arguments: the array of input [*values*](#bin_value) derived from the data, and the [observable domain](#bin_domain) represented as *min* and *max*. The generator may then return either the array of numeric thresholds or the *count* of bins; in the latter case the domain is divided uniformly into approximately *count* bins; see [ticks](#ticks). - -For instance, when binning date values, you might want to use the ticks from a time scale ([Example](https://observablehq.com/@d3/d3-bin-time-thresholds)). - -### Interning - -# new d3.InternMap([iterable][, key]) · [Source](https://github.com/mbostock/internmap/blob/main/src/index.js), [Examples](https://observablehq.com/d/d4c5f6ad343866b9) -
# new d3.InternSet([iterable][, key]) · [Source](https://github.com/mbostock/internmap/blob/main/src/index.js), [Examples](https://observablehq.com/d/d4c5f6ad343866b9) - -The [InternMap and InternSet](https://github.com/mbostock/internmap) classes extend the native JavaScript Map and Set classes, respectively, allowing Dates and other non-primitive keys by bypassing the [SameValueZero algorithm](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness) when determining key equality. d3.group, d3.rollup and d3.index use an InternMap rather than a native Map. These two classes are exported for convenience. diff --git a/build_vtk_bundle/node_modules/d3-array/package.json b/build_vtk_bundle/node_modules/d3-array/package.json deleted file mode 100644 index d0c54eea..00000000 --- a/build_vtk_bundle/node_modules/d3-array/package.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "name": "d3-array", - "version": "3.2.4", - "description": "Array manipulation, ordering, searching, summarizing, etc.", - "homepage": "https://d3js.org/d3-array/", - "repository": { - "type": "git", - "url": "https://github.com/d3/d3-array.git" - }, - "keywords": [ - "d3", - "d3-module", - "histogram", - "bisect", - "shuffle", - "statistics", - "search", - "sort", - "array" - ], - "license": "ISC", - "author": { - "name": "Mike Bostock", - "url": "http://bost.ocks.org/mike" - }, - "type": "module", - "files": [ - "dist/**/*.js", - "src/**/*.js" - ], - "module": "src/index.js", - "main": "src/index.js", - "jsdelivr": "dist/d3-array.min.js", - "unpkg": "dist/d3-array.min.js", - "exports": { - "umd": "./dist/d3-array.min.js", - "default": "./src/index.js" - }, - "sideEffects": false, - "dependencies": { - "internmap": "1 - 2" - }, - "devDependencies": { - "@rollup/plugin-node-resolve": "15", - "d3-dsv": "3", - "d3-random": "2 - 3", - "eslint": "8", - "jsdom": "21", - "mocha": "10", - "rollup": "3", - "rollup-plugin-terser": "7" - }, - "scripts": { - "test": "mocha 'test/**/*-test.js' && eslint src test", - "prepublishOnly": "rm -rf dist && rollup -c", - "postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../${npm_package_name}/dist/${npm_package_name}.js ${npm_package_name}.v${npm_package_version%%.*}.js && cp ../${npm_package_name}/dist/${npm_package_name}.min.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git add ${npm_package_name}.v${npm_package_version%%.*}.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git commit -m \"${npm_package_name} ${npm_package_version}\" && git push && cd -" - }, - "engines": { - "node": ">=12" - } -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/array.js b/build_vtk_bundle/node_modules/d3-array/src/array.js deleted file mode 100644 index 80084030..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/array.js +++ /dev/null @@ -1,4 +0,0 @@ -var array = Array.prototype; - -export var slice = array.slice; -export var map = array.map; diff --git a/build_vtk_bundle/node_modules/d3-array/src/ascending.js b/build_vtk_bundle/node_modules/d3-array/src/ascending.js deleted file mode 100644 index 7527ea79..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/ascending.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function ascending(a, b) { - return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/bin.js b/build_vtk_bundle/node_modules/d3-array/src/bin.js deleted file mode 100644 index 4557e104..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/bin.js +++ /dev/null @@ -1,125 +0,0 @@ -import {slice} from "./array.js"; -import bisect from "./bisect.js"; -import constant from "./constant.js"; -import extent from "./extent.js"; -import identity from "./identity.js"; -import nice from "./nice.js"; -import ticks, {tickIncrement} from "./ticks.js"; -import sturges from "./threshold/sturges.js"; - -export default function bin() { - var value = identity, - domain = extent, - threshold = sturges; - - function histogram(data) { - if (!Array.isArray(data)) data = Array.from(data); - - var i, - n = data.length, - x, - step, - values = new Array(n); - - for (i = 0; i < n; ++i) { - values[i] = value(data[i], i, data); - } - - var xz = domain(values), - x0 = xz[0], - x1 = xz[1], - tz = threshold(values, x0, x1); - - // Convert number of thresholds into uniform thresholds, and nice the - // default domain accordingly. - if (!Array.isArray(tz)) { - const max = x1, tn = +tz; - if (domain === extent) [x0, x1] = nice(x0, x1, tn); - tz = ticks(x0, x1, tn); - - // If the domain is aligned with the first tick (which it will by - // default), then we can use quantization rather than bisection to bin - // values, which is substantially faster. - if (tz[0] <= x0) step = tickIncrement(x0, x1, tn); - - // If the last threshold is coincident with the domain’s upper bound, the - // last bin will be zero-width. If the default domain is used, and this - // last threshold is coincident with the maximum input value, we can - // extend the niced upper bound by one tick to ensure uniform bin widths; - // otherwise, we simply remove the last threshold. Note that we don’t - // coerce values or the domain to numbers, and thus must be careful to - // compare order (>=) rather than strict equality (===)! - if (tz[tz.length - 1] >= x1) { - if (max >= x1 && domain === extent) { - const step = tickIncrement(x0, x1, tn); - if (isFinite(step)) { - if (step > 0) { - x1 = (Math.floor(x1 / step) + 1) * step; - } else if (step < 0) { - x1 = (Math.ceil(x1 * -step) + 1) / -step; - } - } - } else { - tz.pop(); - } - } - } - - // Remove any thresholds outside the domain. - // Be careful not to mutate an array owned by the user! - var m = tz.length, a = 0, b = m; - while (tz[a] <= x0) ++a; - while (tz[b - 1] > x1) --b; - if (a || b < m) tz = tz.slice(a, b), m = b - a; - - var bins = new Array(m + 1), - bin; - - // Initialize bins. - for (i = 0; i <= m; ++i) { - bin = bins[i] = []; - bin.x0 = i > 0 ? tz[i - 1] : x0; - bin.x1 = i < m ? tz[i] : x1; - } - - // Assign data to bins by value, ignoring any outside the domain. - if (isFinite(step)) { - if (step > 0) { - for (i = 0; i < n; ++i) { - if ((x = values[i]) != null && x0 <= x && x <= x1) { - bins[Math.min(m, Math.floor((x - x0) / step))].push(data[i]); - } - } - } else if (step < 0) { - for (i = 0; i < n; ++i) { - if ((x = values[i]) != null && x0 <= x && x <= x1) { - const j = Math.floor((x0 - x) * step); - bins[Math.min(m, j + (tz[j] <= x))].push(data[i]); // handle off-by-one due to rounding - } - } - } - } else { - for (i = 0; i < n; ++i) { - if ((x = values[i]) != null && x0 <= x && x <= x1) { - bins[bisect(tz, x, 0, m)].push(data[i]); - } - } - } - - return bins; - } - - histogram.value = function(_) { - return arguments.length ? (value = typeof _ === "function" ? _ : constant(_), histogram) : value; - }; - - histogram.domain = function(_) { - return arguments.length ? (domain = typeof _ === "function" ? _ : constant([_[0], _[1]]), histogram) : domain; - }; - - histogram.thresholds = function(_) { - return arguments.length ? (threshold = typeof _ === "function" ? _ : constant(Array.isArray(_) ? slice.call(_) : _), histogram) : threshold; - }; - - return histogram; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/bisect.js b/build_vtk_bundle/node_modules/d3-array/src/bisect.js deleted file mode 100644 index 333a7e43..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/bisect.js +++ /dev/null @@ -1,9 +0,0 @@ -import ascending from "./ascending.js"; -import bisector from "./bisector.js"; -import number from "./number.js"; - -const ascendingBisect = bisector(ascending); -export const bisectRight = ascendingBisect.right; -export const bisectLeft = ascendingBisect.left; -export const bisectCenter = bisector(number).center; -export default bisectRight; diff --git a/build_vtk_bundle/node_modules/d3-array/src/bisector.js b/build_vtk_bundle/node_modules/d3-array/src/bisector.js deleted file mode 100644 index 07e4c342..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/bisector.js +++ /dev/null @@ -1,56 +0,0 @@ -import ascending from "./ascending.js"; -import descending from "./descending.js"; - -export default function bisector(f) { - let compare1, compare2, delta; - - // If an accessor is specified, promote it to a comparator. In this case we - // can test whether the search value is (self-) comparable. We can’t do this - // for a comparator (except for specific, known comparators) because we can’t - // tell if the comparator is symmetric, and an asymmetric comparator can’t be - // used to test whether a single value is comparable. - if (f.length !== 2) { - compare1 = ascending; - compare2 = (d, x) => ascending(f(d), x); - delta = (d, x) => f(d) - x; - } else { - compare1 = f === ascending || f === descending ? f : zero; - compare2 = f; - delta = f; - } - - function left(a, x, lo = 0, hi = a.length) { - if (lo < hi) { - if (compare1(x, x) !== 0) return hi; - do { - const mid = (lo + hi) >>> 1; - if (compare2(a[mid], x) < 0) lo = mid + 1; - else hi = mid; - } while (lo < hi); - } - return lo; - } - - function right(a, x, lo = 0, hi = a.length) { - if (lo < hi) { - if (compare1(x, x) !== 0) return hi; - do { - const mid = (lo + hi) >>> 1; - if (compare2(a[mid], x) <= 0) lo = mid + 1; - else hi = mid; - } while (lo < hi); - } - return lo; - } - - function center(a, x, lo = 0, hi = a.length) { - const i = left(a, x, lo, hi - 1); - return i > lo && delta(a[i - 1], x) > -delta(a[i], x) ? i - 1 : i; - } - - return {left, center, right}; -} - -function zero() { - return 0; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/blur.js b/build_vtk_bundle/node_modules/d3-array/src/blur.js deleted file mode 100644 index 7021cbf3..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/blur.js +++ /dev/null @@ -1,115 +0,0 @@ -export function blur(values, r) { - if (!((r = +r) >= 0)) throw new RangeError("invalid r"); - let length = values.length; - if (!((length = Math.floor(length)) >= 0)) throw new RangeError("invalid length"); - if (!length || !r) return values; - const blur = blurf(r); - const temp = values.slice(); - blur(values, temp, 0, length, 1); - blur(temp, values, 0, length, 1); - blur(values, temp, 0, length, 1); - return values; -} - -export const blur2 = Blur2(blurf); - -export const blurImage = Blur2(blurfImage); - -function Blur2(blur) { - return function(data, rx, ry = rx) { - if (!((rx = +rx) >= 0)) throw new RangeError("invalid rx"); - if (!((ry = +ry) >= 0)) throw new RangeError("invalid ry"); - let {data: values, width, height} = data; - if (!((width = Math.floor(width)) >= 0)) throw new RangeError("invalid width"); - if (!((height = Math.floor(height !== undefined ? height : values.length / width)) >= 0)) throw new RangeError("invalid height"); - if (!width || !height || (!rx && !ry)) return data; - const blurx = rx && blur(rx); - const blury = ry && blur(ry); - const temp = values.slice(); - if (blurx && blury) { - blurh(blurx, temp, values, width, height); - blurh(blurx, values, temp, width, height); - blurh(blurx, temp, values, width, height); - blurv(blury, values, temp, width, height); - blurv(blury, temp, values, width, height); - blurv(blury, values, temp, width, height); - } else if (blurx) { - blurh(blurx, values, temp, width, height); - blurh(blurx, temp, values, width, height); - blurh(blurx, values, temp, width, height); - } else if (blury) { - blurv(blury, values, temp, width, height); - blurv(blury, temp, values, width, height); - blurv(blury, values, temp, width, height); - } - return data; - }; -} - -function blurh(blur, T, S, w, h) { - for (let y = 0, n = w * h; y < n;) { - blur(T, S, y, y += w, 1); - } -} - -function blurv(blur, T, S, w, h) { - for (let x = 0, n = w * h; x < w; ++x) { - blur(T, S, x, x + n, w); - } -} - -function blurfImage(radius) { - const blur = blurf(radius); - return (T, S, start, stop, step) => { - start <<= 2, stop <<= 2, step <<= 2; - blur(T, S, start + 0, stop + 0, step); - blur(T, S, start + 1, stop + 1, step); - blur(T, S, start + 2, stop + 2, step); - blur(T, S, start + 3, stop + 3, step); - }; -} - -// Given a target array T, a source array S, sets each value T[i] to the average -// of {S[i - r], …, S[i], …, S[i + r]}, where r = ⌊radius⌋, start <= i < stop, -// for each i, i + step, i + 2 * step, etc., and where S[j] is clamped between -// S[start] (inclusive) and S[stop] (exclusive). If the given radius is not an -// integer, S[i - r - 1] and S[i + r + 1] are added to the sum, each weighted -// according to r - ⌊radius⌋. -function blurf(radius) { - const radius0 = Math.floor(radius); - if (radius0 === radius) return bluri(radius); - const t = radius - radius0; - const w = 2 * radius + 1; - return (T, S, start, stop, step) => { // stop must be aligned! - if (!((stop -= step) >= start)) return; // inclusive stop - let sum = radius0 * S[start]; - const s0 = step * radius0; - const s1 = s0 + step; - for (let i = start, j = start + s0; i < j; i += step) { - sum += S[Math.min(stop, i)]; - } - for (let i = start, j = stop; i <= j; i += step) { - sum += S[Math.min(stop, i + s0)]; - T[i] = (sum + t * (S[Math.max(start, i - s1)] + S[Math.min(stop, i + s1)])) / w; - sum -= S[Math.max(start, i - s0)]; - } - }; -} - -// Like blurf, but optimized for integer radius. -function bluri(radius) { - const w = 2 * radius + 1; - return (T, S, start, stop, step) => { // stop must be aligned! - if (!((stop -= step) >= start)) return; // inclusive stop - let sum = radius * S[start]; - const s = step * radius; - for (let i = start, j = start + s; i < j; i += step) { - sum += S[Math.min(stop, i)]; - } - for (let i = start, j = stop; i <= j; i += step) { - sum += S[Math.min(stop, i + s)]; - T[i] = sum / w; - sum -= S[Math.max(start, i - s)]; - } - }; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/constant.js b/build_vtk_bundle/node_modules/d3-array/src/constant.js deleted file mode 100644 index bb0ec860..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/constant.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function constant(x) { - return () => x; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/count.js b/build_vtk_bundle/node_modules/d3-array/src/count.js deleted file mode 100644 index b8783f08..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/count.js +++ /dev/null @@ -1,18 +0,0 @@ -export default function count(values, valueof) { - let count = 0; - if (valueof === undefined) { - for (let value of values) { - if (value != null && (value = +value) >= value) { - ++count; - } - } - } else { - let index = -1; - for (let value of values) { - if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) { - ++count; - } - } - } - return count; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/cross.js b/build_vtk_bundle/node_modules/d3-array/src/cross.js deleted file mode 100644 index 7efdbe3c..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/cross.js +++ /dev/null @@ -1,33 +0,0 @@ -function length(array) { - return array.length | 0; -} - -function empty(length) { - return !(length > 0); -} - -function arrayify(values) { - return typeof values !== "object" || "length" in values ? values : Array.from(values); -} - -function reducer(reduce) { - return values => reduce(...values); -} - -export default function cross(...values) { - const reduce = typeof values[values.length - 1] === "function" && reducer(values.pop()); - values = values.map(arrayify); - const lengths = values.map(length); - const j = values.length - 1; - const index = new Array(j + 1).fill(0); - const product = []; - if (j < 0 || lengths.some(empty)) return product; - while (true) { - product.push(index.map((j, i) => values[i][j])); - let i = j; - while (++index[i] === lengths[i]) { - if (i === 0) return reduce ? product.map(reduce) : product; - index[i--] = 0; - } - } -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/cumsum.js b/build_vtk_bundle/node_modules/d3-array/src/cumsum.js deleted file mode 100644 index 86fb0522..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/cumsum.js +++ /dev/null @@ -1,6 +0,0 @@ -export default function cumsum(values, valueof) { - var sum = 0, index = 0; - return Float64Array.from(values, valueof === undefined - ? v => (sum += +v || 0) - : v => (sum += +valueof(v, index++, values) || 0)); -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/d3-array/src/descending.js b/build_vtk_bundle/node_modules/d3-array/src/descending.js deleted file mode 100644 index 215f81ea..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/descending.js +++ /dev/null @@ -1,7 +0,0 @@ -export default function descending(a, b) { - return a == null || b == null ? NaN - : b < a ? -1 - : b > a ? 1 - : b >= a ? 0 - : NaN; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/deviation.js b/build_vtk_bundle/node_modules/d3-array/src/deviation.js deleted file mode 100644 index d5dbe7a9..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/deviation.js +++ /dev/null @@ -1,6 +0,0 @@ -import variance from "./variance.js"; - -export default function deviation(values, valueof) { - const v = variance(values, valueof); - return v ? Math.sqrt(v) : v; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/difference.js b/build_vtk_bundle/node_modules/d3-array/src/difference.js deleted file mode 100644 index c19ba788..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/difference.js +++ /dev/null @@ -1,11 +0,0 @@ -import {InternSet} from "internmap"; - -export default function difference(values, ...others) { - values = new InternSet(values); - for (const other of others) { - for (const value of other) { - values.delete(value); - } - } - return values; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/disjoint.js b/build_vtk_bundle/node_modules/d3-array/src/disjoint.js deleted file mode 100644 index d62a6701..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/disjoint.js +++ /dev/null @@ -1,15 +0,0 @@ -import {InternSet} from "internmap"; - -export default function disjoint(values, other) { - const iterator = other[Symbol.iterator](), set = new InternSet(); - for (const v of values) { - if (set.has(v)) return false; - let value, done; - while (({value, done} = iterator.next())) { - if (done) break; - if (Object.is(v, value)) return false; - set.add(value); - } - } - return true; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/every.js b/build_vtk_bundle/node_modules/d3-array/src/every.js deleted file mode 100644 index 484cac23..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/every.js +++ /dev/null @@ -1,10 +0,0 @@ -export default function every(values, test) { - if (typeof test !== "function") throw new TypeError("test is not a function"); - let index = -1; - for (const value of values) { - if (!test(value, ++index, values)) { - return false; - } - } - return true; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/extent.js b/build_vtk_bundle/node_modules/d3-array/src/extent.js deleted file mode 100644 index 580171fd..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/extent.js +++ /dev/null @@ -1,29 +0,0 @@ -export default function extent(values, valueof) { - let min; - let max; - if (valueof === undefined) { - for (const value of values) { - if (value != null) { - if (min === undefined) { - if (value >= value) min = max = value; - } else { - if (min > value) min = value; - if (max < value) max = value; - } - } - } - } else { - let index = -1; - for (let value of values) { - if ((value = valueof(value, ++index, values)) != null) { - if (min === undefined) { - if (value >= value) min = max = value; - } else { - if (min > value) min = value; - if (max < value) max = value; - } - } - } - } - return [min, max]; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/filter.js b/build_vtk_bundle/node_modules/d3-array/src/filter.js deleted file mode 100644 index d653392f..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/filter.js +++ /dev/null @@ -1,11 +0,0 @@ -export default function filter(values, test) { - if (typeof test !== "function") throw new TypeError("test is not a function"); - const array = []; - let index = -1; - for (const value of values) { - if (test(value, ++index, values)) { - array.push(value); - } - } - return array; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/fsum.js b/build_vtk_bundle/node_modules/d3-array/src/fsum.js deleted file mode 100644 index 4a8e1cfc..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/fsum.js +++ /dev/null @@ -1,69 +0,0 @@ -// https://github.com/python/cpython/blob/a74eea238f5baba15797e2e8b570d153bc8690a7/Modules/mathmodule.c#L1423 -export class Adder { - constructor() { - this._partials = new Float64Array(32); - this._n = 0; - } - add(x) { - const p = this._partials; - let i = 0; - for (let j = 0; j < this._n && j < 32; j++) { - const y = p[j], - hi = x + y, - lo = Math.abs(x) < Math.abs(y) ? x - (hi - y) : y - (hi - x); - if (lo) p[i++] = lo; - x = hi; - } - p[i] = x; - this._n = i + 1; - return this; - } - valueOf() { - const p = this._partials; - let n = this._n, x, y, lo, hi = 0; - if (n > 0) { - hi = p[--n]; - while (n > 0) { - x = hi; - y = p[--n]; - hi = x + y; - lo = y - (hi - x); - if (lo) break; - } - if (n > 0 && ((lo < 0 && p[n - 1] < 0) || (lo > 0 && p[n - 1] > 0))) { - y = lo * 2; - x = hi + y; - if (y == x - hi) hi = x; - } - } - return hi; - } -} - -export function fsum(values, valueof) { - const adder = new Adder(); - if (valueof === undefined) { - for (let value of values) { - if (value = +value) { - adder.add(value); - } - } - } else { - let index = -1; - for (let value of values) { - if (value = +valueof(value, ++index, values)) { - adder.add(value); - } - } - } - return +adder; -} - -export function fcumsum(values, valueof) { - const adder = new Adder(); - let index = -1; - return Float64Array.from(values, valueof === undefined - ? v => adder.add(+v || 0) - : v => adder.add(+valueof(v, ++index, values) || 0) - ); -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/greatest.js b/build_vtk_bundle/node_modules/d3-array/src/greatest.js deleted file mode 100644 index 521f4f5c..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/greatest.js +++ /dev/null @@ -1,29 +0,0 @@ -import ascending from "./ascending.js"; - -export default function greatest(values, compare = ascending) { - let max; - let defined = false; - if (compare.length === 1) { - let maxValue; - for (const element of values) { - const value = compare(element); - if (defined - ? ascending(value, maxValue) > 0 - : ascending(value, value) === 0) { - max = element; - maxValue = value; - defined = true; - } - } - } else { - for (const value of values) { - if (defined - ? compare(value, max) > 0 - : compare(value, value) === 0) { - max = value; - defined = true; - } - } - } - return max; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/greatestIndex.js b/build_vtk_bundle/node_modules/d3-array/src/greatestIndex.js deleted file mode 100644 index 2f390e5b..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/greatestIndex.js +++ /dev/null @@ -1,19 +0,0 @@ -import ascending from "./ascending.js"; -import maxIndex from "./maxIndex.js"; - -export default function greatestIndex(values, compare = ascending) { - if (compare.length === 1) return maxIndex(values, compare); - let maxValue; - let max = -1; - let index = -1; - for (const value of values) { - ++index; - if (max < 0 - ? compare(value, value) === 0 - : compare(value, maxValue) > 0) { - maxValue = value; - max = index; - } - } - return max; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/group.js b/build_vtk_bundle/node_modules/d3-array/src/group.js deleted file mode 100644 index 0c30d7e9..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/group.js +++ /dev/null @@ -1,65 +0,0 @@ -import {InternMap} from "internmap"; -import identity from "./identity.js"; - -export default function group(values, ...keys) { - return nest(values, identity, identity, keys); -} - -export function groups(values, ...keys) { - return nest(values, Array.from, identity, keys); -} - -function flatten(groups, keys) { - for (let i = 1, n = keys.length; i < n; ++i) { - groups = groups.flatMap(g => g.pop().map(([key, value]) => [...g, key, value])); - } - return groups; -} - -export function flatGroup(values, ...keys) { - return flatten(groups(values, ...keys), keys); -} - -export function flatRollup(values, reduce, ...keys) { - return flatten(rollups(values, reduce, ...keys), keys); -} - -export function rollup(values, reduce, ...keys) { - return nest(values, identity, reduce, keys); -} - -export function rollups(values, reduce, ...keys) { - return nest(values, Array.from, reduce, keys); -} - -export function index(values, ...keys) { - return nest(values, identity, unique, keys); -} - -export function indexes(values, ...keys) { - return nest(values, Array.from, unique, keys); -} - -function unique(values) { - if (values.length !== 1) throw new Error("duplicate key"); - return values[0]; -} - -function nest(values, map, reduce, keys) { - return (function regroup(values, i) { - if (i >= keys.length) return reduce(values); - const groups = new InternMap(); - const keyof = keys[i++]; - let index = -1; - for (const value of values) { - const key = keyof(value, ++index, values); - const group = groups.get(key); - if (group) group.push(value); - else groups.set(key, [value]); - } - for (const [key, values] of groups) { - groups.set(key, regroup(values, i)); - } - return map(groups); - })(values, 0); -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/groupSort.js b/build_vtk_bundle/node_modules/d3-array/src/groupSort.js deleted file mode 100644 index 2d56ccf0..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/groupSort.js +++ /dev/null @@ -1,10 +0,0 @@ -import ascending from "./ascending.js"; -import group, {rollup} from "./group.js"; -import sort from "./sort.js"; - -export default function groupSort(values, reduce, key) { - return (reduce.length !== 2 - ? sort(rollup(values, reduce, key), (([ak, av], [bk, bv]) => ascending(av, bv) || ascending(ak, bk))) - : sort(group(values, key), (([ak, av], [bk, bv]) => reduce(av, bv) || ascending(ak, bk)))) - .map(([key]) => key); -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/identity.js b/build_vtk_bundle/node_modules/d3-array/src/identity.js deleted file mode 100644 index 0c86fdf0..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/identity.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function identity(x) { - return x; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/index.js b/build_vtk_bundle/node_modules/d3-array/src/index.js deleted file mode 100644 index 7759f6db..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/index.js +++ /dev/null @@ -1,57 +0,0 @@ -export {default as bisect, bisectRight, bisectLeft, bisectCenter} from "./bisect.js"; -export {default as ascending} from "./ascending.js"; -export {default as bisector} from "./bisector.js"; -export {blur, blur2, blurImage} from "./blur.js"; -export {default as count} from "./count.js"; -export {default as cross} from "./cross.js"; -export {default as cumsum} from "./cumsum.js"; -export {default as descending} from "./descending.js"; -export {default as deviation} from "./deviation.js"; -export {default as extent} from "./extent.js"; -export {Adder, fsum, fcumsum} from "./fsum.js"; -export {default as group, flatGroup, flatRollup, groups, index, indexes, rollup, rollups} from "./group.js"; -export {default as groupSort} from "./groupSort.js"; -export {default as bin, default as histogram} from "./bin.js"; // Deprecated; use bin. -export {default as thresholdFreedmanDiaconis} from "./threshold/freedmanDiaconis.js"; -export {default as thresholdScott} from "./threshold/scott.js"; -export {default as thresholdSturges} from "./threshold/sturges.js"; -export {default as max} from "./max.js"; -export {default as maxIndex} from "./maxIndex.js"; -export {default as mean} from "./mean.js"; -export {default as median, medianIndex} from "./median.js"; -export {default as merge} from "./merge.js"; -export {default as min} from "./min.js"; -export {default as minIndex} from "./minIndex.js"; -export {default as mode} from "./mode.js"; -export {default as nice} from "./nice.js"; -export {default as pairs} from "./pairs.js"; -export {default as permute} from "./permute.js"; -export {default as quantile, quantileIndex, quantileSorted} from "./quantile.js"; -export {default as quickselect} from "./quickselect.js"; -export {default as range} from "./range.js"; -export {default as rank} from "./rank.js"; -export {default as least} from "./least.js"; -export {default as leastIndex} from "./leastIndex.js"; -export {default as greatest} from "./greatest.js"; -export {default as greatestIndex} from "./greatestIndex.js"; -export {default as scan} from "./scan.js"; // Deprecated; use leastIndex. -export {default as shuffle, shuffler} from "./shuffle.js"; -export {default as sum} from "./sum.js"; -export {default as ticks, tickIncrement, tickStep} from "./ticks.js"; -export {default as transpose} from "./transpose.js"; -export {default as variance} from "./variance.js"; -export {default as zip} from "./zip.js"; -export {default as every} from "./every.js"; -export {default as some} from "./some.js"; -export {default as filter} from "./filter.js"; -export {default as map} from "./map.js"; -export {default as reduce} from "./reduce.js"; -export {default as reverse} from "./reverse.js"; -export {default as sort} from "./sort.js"; -export {default as difference} from "./difference.js"; -export {default as disjoint} from "./disjoint.js"; -export {default as intersection} from "./intersection.js"; -export {default as subset} from "./subset.js"; -export {default as superset} from "./superset.js"; -export {default as union} from "./union.js"; -export {InternMap, InternSet} from "internmap"; diff --git a/build_vtk_bundle/node_modules/d3-array/src/intersection.js b/build_vtk_bundle/node_modules/d3-array/src/intersection.js deleted file mode 100644 index 43aff399..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/intersection.js +++ /dev/null @@ -1,19 +0,0 @@ -import {InternSet} from "internmap"; - -export default function intersection(values, ...others) { - values = new InternSet(values); - others = others.map(set); - out: for (const value of values) { - for (const other of others) { - if (!other.has(value)) { - values.delete(value); - continue out; - } - } - } - return values; -} - -function set(values) { - return values instanceof InternSet ? values : new InternSet(values); -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/least.js b/build_vtk_bundle/node_modules/d3-array/src/least.js deleted file mode 100644 index a756abf4..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/least.js +++ /dev/null @@ -1,29 +0,0 @@ -import ascending from "./ascending.js"; - -export default function least(values, compare = ascending) { - let min; - let defined = false; - if (compare.length === 1) { - let minValue; - for (const element of values) { - const value = compare(element); - if (defined - ? ascending(value, minValue) < 0 - : ascending(value, value) === 0) { - min = element; - minValue = value; - defined = true; - } - } - } else { - for (const value of values) { - if (defined - ? compare(value, min) < 0 - : compare(value, value) === 0) { - min = value; - defined = true; - } - } - } - return min; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/leastIndex.js b/build_vtk_bundle/node_modules/d3-array/src/leastIndex.js deleted file mode 100644 index ee3542be..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/leastIndex.js +++ /dev/null @@ -1,19 +0,0 @@ -import ascending from "./ascending.js"; -import minIndex from "./minIndex.js"; - -export default function leastIndex(values, compare = ascending) { - if (compare.length === 1) return minIndex(values, compare); - let minValue; - let min = -1; - let index = -1; - for (const value of values) { - ++index; - if (min < 0 - ? compare(value, value) === 0 - : compare(value, minValue) < 0) { - minValue = value; - min = index; - } - } - return min; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/map.js b/build_vtk_bundle/node_modules/d3-array/src/map.js deleted file mode 100644 index 4e568190..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/map.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function map(values, mapper) { - if (typeof values[Symbol.iterator] !== "function") throw new TypeError("values is not iterable"); - if (typeof mapper !== "function") throw new TypeError("mapper is not a function"); - return Array.from(values, (value, index) => mapper(value, index, values)); -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/max.js b/build_vtk_bundle/node_modules/d3-array/src/max.js deleted file mode 100644 index ce287368..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/max.js +++ /dev/null @@ -1,20 +0,0 @@ -export default function max(values, valueof) { - let max; - if (valueof === undefined) { - for (const value of values) { - if (value != null - && (max < value || (max === undefined && value >= value))) { - max = value; - } - } - } else { - let index = -1; - for (let value of values) { - if ((value = valueof(value, ++index, values)) != null - && (max < value || (max === undefined && value >= value))) { - max = value; - } - } - } - return max; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/maxIndex.js b/build_vtk_bundle/node_modules/d3-array/src/maxIndex.js deleted file mode 100644 index 87da1a2c..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/maxIndex.js +++ /dev/null @@ -1,22 +0,0 @@ -export default function maxIndex(values, valueof) { - let max; - let maxIndex = -1; - let index = -1; - if (valueof === undefined) { - for (const value of values) { - ++index; - if (value != null - && (max < value || (max === undefined && value >= value))) { - max = value, maxIndex = index; - } - } - } else { - for (let value of values) { - if ((value = valueof(value, ++index, values)) != null - && (max < value || (max === undefined && value >= value))) { - max = value, maxIndex = index; - } - } - } - return maxIndex; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/mean.js b/build_vtk_bundle/node_modules/d3-array/src/mean.js deleted file mode 100644 index ff6fc461..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/mean.js +++ /dev/null @@ -1,19 +0,0 @@ -export default function mean(values, valueof) { - let count = 0; - let sum = 0; - if (valueof === undefined) { - for (let value of values) { - if (value != null && (value = +value) >= value) { - ++count, sum += value; - } - } - } else { - let index = -1; - for (let value of values) { - if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) { - ++count, sum += value; - } - } - } - if (count) return sum / count; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/median.js b/build_vtk_bundle/node_modules/d3-array/src/median.js deleted file mode 100644 index 2604df87..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/median.js +++ /dev/null @@ -1,9 +0,0 @@ -import quantile, {quantileIndex} from "./quantile.js"; - -export default function median(values, valueof) { - return quantile(values, 0.5, valueof); -} - -export function medianIndex(values, valueof) { - return quantileIndex(values, 0.5, valueof); -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/merge.js b/build_vtk_bundle/node_modules/d3-array/src/merge.js deleted file mode 100644 index a3680028..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/merge.js +++ /dev/null @@ -1,9 +0,0 @@ -function* flatten(arrays) { - for (const array of arrays) { - yield* array; - } -} - -export default function merge(arrays) { - return Array.from(flatten(arrays)); -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/min.js b/build_vtk_bundle/node_modules/d3-array/src/min.js deleted file mode 100644 index df88bfb2..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/min.js +++ /dev/null @@ -1,20 +0,0 @@ -export default function min(values, valueof) { - let min; - if (valueof === undefined) { - for (const value of values) { - if (value != null - && (min > value || (min === undefined && value >= value))) { - min = value; - } - } - } else { - let index = -1; - for (let value of values) { - if ((value = valueof(value, ++index, values)) != null - && (min > value || (min === undefined && value >= value))) { - min = value; - } - } - } - return min; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/minIndex.js b/build_vtk_bundle/node_modules/d3-array/src/minIndex.js deleted file mode 100644 index 5c07d1ea..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/minIndex.js +++ /dev/null @@ -1,22 +0,0 @@ -export default function minIndex(values, valueof) { - let min; - let minIndex = -1; - let index = -1; - if (valueof === undefined) { - for (const value of values) { - ++index; - if (value != null - && (min > value || (min === undefined && value >= value))) { - min = value, minIndex = index; - } - } - } else { - for (let value of values) { - if ((value = valueof(value, ++index, values)) != null - && (min > value || (min === undefined && value >= value))) { - min = value, minIndex = index; - } - } - } - return minIndex; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/mode.js b/build_vtk_bundle/node_modules/d3-array/src/mode.js deleted file mode 100644 index 386be579..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/mode.js +++ /dev/null @@ -1,28 +0,0 @@ -import {InternMap} from "internmap"; - -export default function mode(values, valueof) { - const counts = new InternMap(); - if (valueof === undefined) { - for (let value of values) { - if (value != null && value >= value) { - counts.set(value, (counts.get(value) || 0) + 1); - } - } - } else { - let index = -1; - for (let value of values) { - if ((value = valueof(value, ++index, values)) != null && value >= value) { - counts.set(value, (counts.get(value) || 0) + 1); - } - } - } - let modeValue; - let modeCount = 0; - for (const [value, count] of counts) { - if (count > modeCount) { - modeCount = count; - modeValue = value; - } - } - return modeValue; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/nice.js b/build_vtk_bundle/node_modules/d3-array/src/nice.js deleted file mode 100644 index 579b418c..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/nice.js +++ /dev/null @@ -1,18 +0,0 @@ -import {tickIncrement} from "./ticks.js"; - -export default function nice(start, stop, count) { - let prestep; - while (true) { - const step = tickIncrement(start, stop, count); - if (step === prestep || step === 0 || !isFinite(step)) { - return [start, stop]; - } else if (step > 0) { - start = Math.floor(start / step) * step; - stop = Math.ceil(stop / step) * step; - } else if (step < 0) { - start = Math.ceil(start * step) / step; - stop = Math.floor(stop * step) / step; - } - prestep = step; - } -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/number.js b/build_vtk_bundle/node_modules/d3-array/src/number.js deleted file mode 100644 index f282cdfb..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/number.js +++ /dev/null @@ -1,20 +0,0 @@ -export default function number(x) { - return x === null ? NaN : +x; -} - -export function* numbers(values, valueof) { - if (valueof === undefined) { - for (let value of values) { - if (value != null && (value = +value) >= value) { - yield value; - } - } - } else { - let index = -1; - for (let value of values) { - if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) { - yield value; - } - } - } -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/pairs.js b/build_vtk_bundle/node_modules/d3-array/src/pairs.js deleted file mode 100644 index bfaafece..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/pairs.js +++ /dev/null @@ -1,15 +0,0 @@ -export default function pairs(values, pairof = pair) { - const pairs = []; - let previous; - let first = false; - for (const value of values) { - if (first) pairs.push(pairof(previous, value)); - previous = value; - first = true; - } - return pairs; -} - -export function pair(a, b) { - return [a, b]; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/permute.js b/build_vtk_bundle/node_modules/d3-array/src/permute.js deleted file mode 100644 index f050865c..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/permute.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function permute(source, keys) { - return Array.from(keys, key => source[key]); -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/quantile.js b/build_vtk_bundle/node_modules/d3-array/src/quantile.js deleted file mode 100644 index 75d97268..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/quantile.js +++ /dev/null @@ -1,47 +0,0 @@ -import max from "./max.js"; -import maxIndex from "./maxIndex.js"; -import min from "./min.js"; -import minIndex from "./minIndex.js"; -import quickselect from "./quickselect.js"; -import number, {numbers} from "./number.js"; -import {ascendingDefined} from "./sort.js"; -import greatest from "./greatest.js"; - -export default function quantile(values, p, valueof) { - values = Float64Array.from(numbers(values, valueof)); - if (!(n = values.length) || isNaN(p = +p)) return; - if (p <= 0 || n < 2) return min(values); - if (p >= 1) return max(values); - var n, - i = (n - 1) * p, - i0 = Math.floor(i), - value0 = max(quickselect(values, i0).subarray(0, i0 + 1)), - value1 = min(values.subarray(i0 + 1)); - return value0 + (value1 - value0) * (i - i0); -} - -export function quantileSorted(values, p, valueof = number) { - if (!(n = values.length) || isNaN(p = +p)) return; - if (p <= 0 || n < 2) return +valueof(values[0], 0, values); - if (p >= 1) return +valueof(values[n - 1], n - 1, values); - var n, - i = (n - 1) * p, - i0 = Math.floor(i), - value0 = +valueof(values[i0], i0, values), - value1 = +valueof(values[i0 + 1], i0 + 1, values); - return value0 + (value1 - value0) * (i - i0); -} - -export function quantileIndex(values, p, valueof = number) { - if (isNaN(p = +p)) return; - numbers = Float64Array.from(values, (_, i) => number(valueof(values[i], i, values))); - if (p <= 0) return minIndex(numbers); - if (p >= 1) return maxIndex(numbers); - var numbers, - index = Uint32Array.from(values, (_, i) => i), - j = numbers.length - 1, - i = Math.floor(j * p); - quickselect(index, i, 0, j, (i, j) => ascendingDefined(numbers[i], numbers[j])); - i = greatest(index.subarray(0, i + 1), (i) => numbers[i]); - return i >= 0 ? i : -1; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/quickselect.js b/build_vtk_bundle/node_modules/d3-array/src/quickselect.js deleted file mode 100644 index 19dbb467..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/quickselect.js +++ /dev/null @@ -1,53 +0,0 @@ -import {ascendingDefined, compareDefined} from "./sort.js"; - -// Based on https://github.com/mourner/quickselect -// ISC license, Copyright 2018 Vladimir Agafonkin. -export default function quickselect(array, k, left = 0, right = Infinity, compare) { - k = Math.floor(k); - left = Math.floor(Math.max(0, left)); - right = Math.floor(Math.min(array.length - 1, right)); - - if (!(left <= k && k <= right)) return array; - - compare = compare === undefined ? ascendingDefined : compareDefined(compare); - - while (right > left) { - if (right - left > 600) { - const n = right - left + 1; - const m = k - left + 1; - const z = Math.log(n); - const s = 0.5 * Math.exp(2 * z / 3); - const sd = 0.5 * Math.sqrt(z * s * (n - s) / n) * (m - n / 2 < 0 ? -1 : 1); - const newLeft = Math.max(left, Math.floor(k - m * s / n + sd)); - const newRight = Math.min(right, Math.floor(k + (n - m) * s / n + sd)); - quickselect(array, k, newLeft, newRight, compare); - } - - const t = array[k]; - let i = left; - let j = right; - - swap(array, left, k); - if (compare(array[right], t) > 0) swap(array, left, right); - - while (i < j) { - swap(array, i, j), ++i, --j; - while (compare(array[i], t) < 0) ++i; - while (compare(array[j], t) > 0) --j; - } - - if (compare(array[left], t) === 0) swap(array, left, j); - else ++j, swap(array, j, right); - - if (j <= k) left = j + 1; - if (k <= j) right = j - 1; - } - - return array; -} - -function swap(array, i, j) { - const t = array[i]; - array[i] = array[j]; - array[j] = t; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/range.js b/build_vtk_bundle/node_modules/d3-array/src/range.js deleted file mode 100644 index 5b86b561..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/range.js +++ /dev/null @@ -1,13 +0,0 @@ -export default function range(start, stop, step) { - start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step; - - var i = -1, - n = Math.max(0, Math.ceil((stop - start) / step)) | 0, - range = new Array(n); - - while (++i < n) { - range[i] = start + i * step; - } - - return range; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/rank.js b/build_vtk_bundle/node_modules/d3-array/src/rank.js deleted file mode 100644 index 44fb675b..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/rank.js +++ /dev/null @@ -1,24 +0,0 @@ -import ascending from "./ascending.js"; -import {ascendingDefined, compareDefined} from "./sort.js"; - -export default function rank(values, valueof = ascending) { - if (typeof values[Symbol.iterator] !== "function") throw new TypeError("values is not iterable"); - let V = Array.from(values); - const R = new Float64Array(V.length); - if (valueof.length !== 2) V = V.map(valueof), valueof = ascending; - const compareIndex = (i, j) => valueof(V[i], V[j]); - let k, r; - values = Uint32Array.from(V, (_, i) => i); - // Risky chaining due to Safari 14 https://github.com/d3/d3-array/issues/123 - values.sort(valueof === ascending ? (i, j) => ascendingDefined(V[i], V[j]) : compareDefined(compareIndex)); - values.forEach((j, i) => { - const c = compareIndex(j, k === undefined ? j : k); - if (c >= 0) { - if (k === undefined || c > 0) k = j, r = i; - R[j] = r; - } else { - R[j] = NaN; - } - }); - return R; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/reduce.js b/build_vtk_bundle/node_modules/d3-array/src/reduce.js deleted file mode 100644 index 3b49cf56..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/reduce.js +++ /dev/null @@ -1,14 +0,0 @@ -export default function reduce(values, reducer, value) { - if (typeof reducer !== "function") throw new TypeError("reducer is not a function"); - const iterator = values[Symbol.iterator](); - let done, next, index = -1; - if (arguments.length < 3) { - ({done, value} = iterator.next()); - if (done) return; - ++index; - } - while (({done, value: next} = iterator.next()), !done) { - value = reducer(value, next, ++index, values); - } - return value; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/reverse.js b/build_vtk_bundle/node_modules/d3-array/src/reverse.js deleted file mode 100644 index da6742cf..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/reverse.js +++ /dev/null @@ -1,4 +0,0 @@ -export default function reverse(values) { - if (typeof values[Symbol.iterator] !== "function") throw new TypeError("values is not iterable"); - return Array.from(values).reverse(); -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/scan.js b/build_vtk_bundle/node_modules/d3-array/src/scan.js deleted file mode 100644 index 9c538f8a..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/scan.js +++ /dev/null @@ -1,6 +0,0 @@ -import leastIndex from "./leastIndex.js"; - -export default function scan(values, compare) { - const index = leastIndex(values, compare); - return index < 0 ? undefined : index; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/shuffle.js b/build_vtk_bundle/node_modules/d3-array/src/shuffle.js deleted file mode 100644 index 426cdac0..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/shuffle.js +++ /dev/null @@ -1,13 +0,0 @@ -export default shuffler(Math.random); - -export function shuffler(random) { - return function shuffle(array, i0 = 0, i1 = array.length) { - let m = i1 - (i0 = +i0); - while (m) { - const i = random() * m-- | 0, t = array[m + i0]; - array[m + i0] = array[i + i0]; - array[i + i0] = t; - } - return array; - }; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/some.js b/build_vtk_bundle/node_modules/d3-array/src/some.js deleted file mode 100644 index 0b8f98b9..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/some.js +++ /dev/null @@ -1,10 +0,0 @@ -export default function some(values, test) { - if (typeof test !== "function") throw new TypeError("test is not a function"); - let index = -1; - for (const value of values) { - if (test(value, ++index, values)) { - return true; - } - } - return false; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/sort.js b/build_vtk_bundle/node_modules/d3-array/src/sort.js deleted file mode 100644 index 14541beb..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/sort.js +++ /dev/null @@ -1,39 +0,0 @@ -import ascending from "./ascending.js"; -import permute from "./permute.js"; - -export default function sort(values, ...F) { - if (typeof values[Symbol.iterator] !== "function") throw new TypeError("values is not iterable"); - values = Array.from(values); - let [f] = F; - if ((f && f.length !== 2) || F.length > 1) { - const index = Uint32Array.from(values, (d, i) => i); - if (F.length > 1) { - F = F.map(f => values.map(f)); - index.sort((i, j) => { - for (const f of F) { - const c = ascendingDefined(f[i], f[j]); - if (c) return c; - } - }); - } else { - f = values.map(f); - index.sort((i, j) => ascendingDefined(f[i], f[j])); - } - return permute(values, index); - } - return values.sort(compareDefined(f)); -} - -export function compareDefined(compare = ascending) { - if (compare === ascending) return ascendingDefined; - if (typeof compare !== "function") throw new TypeError("compare is not a function"); - return (a, b) => { - const x = compare(a, b); - if (x || x === 0) return x; - return (compare(b, b) === 0) - (compare(a, a) === 0); - }; -} - -export function ascendingDefined(a, b) { - return (a == null || !(a >= a)) - (b == null || !(b >= b)) || (a < b ? -1 : a > b ? 1 : 0); -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/subset.js b/build_vtk_bundle/node_modules/d3-array/src/subset.js deleted file mode 100644 index 8a1c5640..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/subset.js +++ /dev/null @@ -1,5 +0,0 @@ -import superset from "./superset.js"; - -export default function subset(values, other) { - return superset(other, values); -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/sum.js b/build_vtk_bundle/node_modules/d3-array/src/sum.js deleted file mode 100644 index 0720e2a1..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/sum.js +++ /dev/null @@ -1,18 +0,0 @@ -export default function sum(values, valueof) { - let sum = 0; - if (valueof === undefined) { - for (let value of values) { - if (value = +value) { - sum += value; - } - } - } else { - let index = -1; - for (let value of values) { - if (value = +valueof(value, ++index, values)) { - sum += value; - } - } - } - return sum; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/superset.js b/build_vtk_bundle/node_modules/d3-array/src/superset.js deleted file mode 100644 index d178e9c2..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/superset.js +++ /dev/null @@ -1,19 +0,0 @@ -export default function superset(values, other) { - const iterator = values[Symbol.iterator](), set = new Set(); - for (const o of other) { - const io = intern(o); - if (set.has(io)) continue; - let value, done; - while (({value, done} = iterator.next())) { - if (done) return false; - const ivalue = intern(value); - set.add(ivalue); - if (Object.is(io, ivalue)) break; - } - } - return true; -} - -function intern(value) { - return value !== null && typeof value === "object" ? value.valueOf() : value; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/threshold/freedmanDiaconis.js b/build_vtk_bundle/node_modules/d3-array/src/threshold/freedmanDiaconis.js deleted file mode 100644 index c78cff40..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/threshold/freedmanDiaconis.js +++ /dev/null @@ -1,7 +0,0 @@ -import count from "../count.js"; -import quantile from "../quantile.js"; - -export default function thresholdFreedmanDiaconis(values, min, max) { - const c = count(values), d = quantile(values, 0.75) - quantile(values, 0.25); - return c && d ? Math.ceil((max - min) / (2 * d * Math.pow(c, -1 / 3))) : 1; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/threshold/scott.js b/build_vtk_bundle/node_modules/d3-array/src/threshold/scott.js deleted file mode 100644 index 2541d2dc..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/threshold/scott.js +++ /dev/null @@ -1,7 +0,0 @@ -import count from "../count.js"; -import deviation from "../deviation.js"; - -export default function thresholdScott(values, min, max) { - const c = count(values), d = deviation(values); - return c && d ? Math.ceil((max - min) * Math.cbrt(c) / (3.49 * d)) : 1; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/threshold/sturges.js b/build_vtk_bundle/node_modules/d3-array/src/threshold/sturges.js deleted file mode 100644 index 3370968e..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/threshold/sturges.js +++ /dev/null @@ -1,5 +0,0 @@ -import count from "../count.js"; - -export default function thresholdSturges(values) { - return Math.max(1, Math.ceil(Math.log(count(values)) / Math.LN2) + 1); -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/ticks.js b/build_vtk_bundle/node_modules/d3-array/src/ticks.js deleted file mode 100644 index 5868d8d2..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/ticks.js +++ /dev/null @@ -1,55 +0,0 @@ -const e10 = Math.sqrt(50), - e5 = Math.sqrt(10), - e2 = Math.sqrt(2); - -function tickSpec(start, stop, count) { - const step = (stop - start) / Math.max(0, count), - power = Math.floor(Math.log10(step)), - error = step / Math.pow(10, power), - factor = error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1; - let i1, i2, inc; - if (power < 0) { - inc = Math.pow(10, -power) / factor; - i1 = Math.round(start * inc); - i2 = Math.round(stop * inc); - if (i1 / inc < start) ++i1; - if (i2 / inc > stop) --i2; - inc = -inc; - } else { - inc = Math.pow(10, power) * factor; - i1 = Math.round(start / inc); - i2 = Math.round(stop / inc); - if (i1 * inc < start) ++i1; - if (i2 * inc > stop) --i2; - } - if (i2 < i1 && 0.5 <= count && count < 2) return tickSpec(start, stop, count * 2); - return [i1, i2, inc]; -} - -export default function ticks(start, stop, count) { - stop = +stop, start = +start, count = +count; - if (!(count > 0)) return []; - if (start === stop) return [start]; - const reverse = stop < start, [i1, i2, inc] = reverse ? tickSpec(stop, start, count) : tickSpec(start, stop, count); - if (!(i2 >= i1)) return []; - const n = i2 - i1 + 1, ticks = new Array(n); - if (reverse) { - if (inc < 0) for (let i = 0; i < n; ++i) ticks[i] = (i2 - i) / -inc; - else for (let i = 0; i < n; ++i) ticks[i] = (i2 - i) * inc; - } else { - if (inc < 0) for (let i = 0; i < n; ++i) ticks[i] = (i1 + i) / -inc; - else for (let i = 0; i < n; ++i) ticks[i] = (i1 + i) * inc; - } - return ticks; -} - -export function tickIncrement(start, stop, count) { - stop = +stop, start = +start, count = +count; - return tickSpec(start, stop, count)[2]; -} - -export function tickStep(start, stop, count) { - stop = +stop, start = +start, count = +count; - const reverse = stop < start, inc = reverse ? tickIncrement(stop, start, count) : tickIncrement(start, stop, count); - return (reverse ? -1 : 1) * (inc < 0 ? 1 / -inc : inc); -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/transpose.js b/build_vtk_bundle/node_modules/d3-array/src/transpose.js deleted file mode 100644 index de6caebd..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/transpose.js +++ /dev/null @@ -1,15 +0,0 @@ -import min from "./min.js"; - -export default function transpose(matrix) { - if (!(n = matrix.length)) return []; - for (var i = -1, m = min(matrix, length), transpose = new Array(m); ++i < m;) { - for (var j = -1, n, row = transpose[i] = new Array(n); ++j < n;) { - row[j] = matrix[j][i]; - } - } - return transpose; -} - -function length(d) { - return d.length; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/union.js b/build_vtk_bundle/node_modules/d3-array/src/union.js deleted file mode 100644 index 57c20b10..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/union.js +++ /dev/null @@ -1,11 +0,0 @@ -import {InternSet} from "internmap"; - -export default function union(...others) { - const set = new InternSet(); - for (const other of others) { - for (const o of other) { - set.add(o); - } - } - return set; -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/variance.js b/build_vtk_bundle/node_modules/d3-array/src/variance.js deleted file mode 100644 index 2428bf85..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/variance.js +++ /dev/null @@ -1,25 +0,0 @@ -export default function variance(values, valueof) { - let count = 0; - let delta; - let mean = 0; - let sum = 0; - if (valueof === undefined) { - for (let value of values) { - if (value != null && (value = +value) >= value) { - delta = value - mean; - mean += delta / ++count; - sum += delta * (value - mean); - } - } - } else { - let index = -1; - for (let value of values) { - if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) { - delta = value - mean; - mean += delta / ++count; - sum += delta * (value - mean); - } - } - } - if (count > 1) return sum / (count - 1); -} diff --git a/build_vtk_bundle/node_modules/d3-array/src/zip.js b/build_vtk_bundle/node_modules/d3-array/src/zip.js deleted file mode 100644 index 48cfb425..00000000 --- a/build_vtk_bundle/node_modules/d3-array/src/zip.js +++ /dev/null @@ -1,5 +0,0 @@ -import transpose from "./transpose.js"; - -export default function zip() { - return transpose(arguments); -} diff --git a/build_vtk_bundle/node_modules/d3-color/LICENSE b/build_vtk_bundle/node_modules/d3-color/LICENSE deleted file mode 100644 index fbe44bdc..00000000 --- a/build_vtk_bundle/node_modules/d3-color/LICENSE +++ /dev/null @@ -1,13 +0,0 @@ -Copyright 2010-2022 Mike Bostock - -Permission to use, copy, modify, and/or distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright notice -and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS -OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -THIS SOFTWARE. diff --git a/build_vtk_bundle/node_modules/d3-color/README.md b/build_vtk_bundle/node_modules/d3-color/README.md deleted file mode 100644 index a7f2d52b..00000000 --- a/build_vtk_bundle/node_modules/d3-color/README.md +++ /dev/null @@ -1,203 +0,0 @@ -# d3-color - -Even though your browser understands a lot about colors, it doesn’t offer much help in manipulating colors through JavaScript. The d3-color module therefore provides representations for various color spaces, allowing specification, conversion and manipulation. (Also see [d3-interpolate](https://github.com/d3/d3-interpolate) for color interpolation.) - -For example, take the color named “steelblue”: - -```js -const c = d3.color("steelblue"); // {r: 70, g: 130, b: 180, opacity: 1} -``` - -Let’s try converting it to HSL: - -```js -const c = d3.hsl("steelblue"); // {h: 207.27…, s: 0.44, l: 0.4902…, opacity: 1} -``` - -Now rotate the hue by 90°, bump up the saturation, and format as a string for CSS: - -```js -c.h += 90; -c.s += 0.2; -c + ""; // rgb(198, 45, 205) -``` - -To fade the color slightly: - -```js -c.opacity = 0.8; -c + ""; // rgba(198, 45, 205, 0.8) -``` - -In addition to the ubiquitous and machine-friendly [RGB](#rgb) and [HSL](#hsl) color space, d3-color supports color spaces that are designed for humans: - -* [CIELAB](#lab) (*a.k.a.* “Lab”) -* [CIELChab](#lch) (*a.k.a.* “LCh” or “HCL”) -* Dave Green’s [Cubehelix](#cubehelix) - -Cubehelix features monotonic lightness, while CIELAB and its polar form CIELChab are perceptually uniform. - -## Extensions - -For additional color spaces, see: - -* [d3-cam16](https://github.com/d3/d3-cam16) -* [d3-cam02](https://github.com/connorgr/d3-cam02) -* [d3-hsv](https://github.com/d3/d3-hsv) -* [d3-hcg](https://github.com/d3/d3-hcg) -* [d3-hsluv](https://github.com/petulla/d3-hsluv) - -To measure color differences, see: - -* [d3-color-difference](https://github.com/Evercoder/d3-color-difference) - -## Installing - -If you use npm, `npm install d3-color`. You can also download the [latest release on GitHub](https://github.com/d3/d3-color/releases/latest). For vanilla HTML in modern browsers, import d3-color from Skypack: - -```html - -``` - -For legacy environments, you can load d3-color’s UMD bundle from an npm-based CDN such as jsDelivr; a `d3` global is exported: - -```html - - -``` - -[Try d3-color in your browser.](https://observablehq.com/collection/@d3/d3-color) - -## API Reference - -# d3.color(specifier) [<>](https://github.com/d3/d3-color/blob/master/src/color.js "Source") - -Parses the specified [CSS Color Module Level 3](http://www.w3.org/TR/css3-color/#colorunits) *specifier* string, returning an [RGB](#rgb) or [HSL](#hsl) color, along with [CSS Color Module Level 4 hex](https://www.w3.org/TR/css-color-4/#hex-notation) *specifier* strings. If the specifier was not valid, null is returned. Some examples: - -* `rgb(255, 255, 255)` -* `rgb(10%, 20%, 30%)` -* `rgba(255, 255, 255, 0.4)` -* `rgba(10%, 20%, 30%, 0.4)` -* `hsl(120, 50%, 20%)` -* `hsla(120, 50%, 20%, 0.4)` -* `#ffeeaa` -* `#fea` -* `#ffeeaa22` -* `#fea2` -* `steelblue` - -The list of supported [named colors](http://www.w3.org/TR/SVG/types.html#ColorKeywords) is specified by CSS. - -Note: this function may also be used with `instanceof` to test if an object is a color instance. The same is true of color subclasses, allowing you to test whether a color is in a particular color space. - -# *color*.opacity - -This color’s opacity, typically in the range [0, 1]. - -# *color*.rgb() [<>](https://github.com/d3/d3-color/blob/master/src/color.js "Source") - -Returns the [RGB equivalent](#rgb) of this color. For RGB colors, that’s `this`. - -# color.copy([values]) [<>](https://github.com/d3/d3-color/blob/master/src/color.js "Source") - -Returns a copy of this color. If *values* is specified, any enumerable own properties of *values* are assigned to the new returned color. For example, to derive a copy of a *color* with opacity 0.5, say - -```js -color.copy({opacity: 0.5}) -``` - -# *color*.brighter([k]) [<>](https://github.com/d3/d3-color/blob/master/src/color.js "Source") - -Returns a brighter copy of this color. If *k* is specified, it controls how much brighter the returned color should be. If *k* is not specified, it defaults to 1. The behavior of this method is dependent on the implementing color space. - -# *color*.darker([k]) [<>](https://github.com/d3/d3-color/blob/master/src/color.js "Source") - -Returns a darker copy of this color. If *k* is specified, it controls how much darker the returned color should be. If *k* is not specified, it defaults to 1. The behavior of this method is dependent on the implementing color space. - -# *color*.displayable() [<>](https://github.com/d3/d3-color/blob/master/src/color.js "Source") - -Returns true if and only if the color is displayable on standard hardware. For example, this returns false for an RGB color if any channel value is less than zero or greater than 255 when rounded, or if the opacity is not in the range [0, 1]. - -# *color*.formatHex() [<>](https://github.com/d3/d3-color/blob/master/src/color.js "Source") - -Returns a hexadecimal string representing this color in RGB space, such as `#f7eaba`. If this color is not displayable, a suitable displayable color is returned instead. For example, RGB channel values greater than 255 are clamped to 255. - -# *color*.formatHsl() [<>](https://github.com/d3/d3-color/blob/master/src/color.js "Source") - -Returns a string representing this color according to the [CSS Color Module Level 3 specification](https://www.w3.org/TR/css-color-3/#hsl-color), such as `hsl(257, 50%, 80%)` or `hsla(257, 50%, 80%, 0.2)`. If this color is not displayable, a suitable displayable color is returned instead by clamping S and L channel values to the interval [0, 100]. - -# *color*.formatRgb() [<>](https://github.com/d3/d3-color/blob/master/src/color.js "Source") - -Returns a string representing this color according to the [CSS Object Model specification](https://drafts.csswg.org/cssom/#serialize-a-css-component-value), such as `rgb(247, 234, 186)` or `rgba(247, 234, 186, 0.2)`. If this color is not displayable, a suitable displayable color is returned instead by clamping RGB channel values to the interval [0, 255]. - -# *color*.toString() [<>](https://github.com/d3/d3-color/blob/master/src/color.js "Source") - -An alias for [*color*.formatRgb](#color_formatRgb). - -# d3.rgb(r, g, b[, opacity]) [<>](https://github.com/d3/d3-color/blob/master/src/color.js "Source")
-# d3.rgb(specifier)
-# d3.rgb(color)
- -Constructs a new [RGB](https://en.wikipedia.org/wiki/RGB_color_model) color. The channel values are exposed as `r`, `g` and `b` properties on the returned instance. Use the [RGB color picker](http://bl.ocks.org/mbostock/78d64ca7ef013b4dcf8f) to explore this color space. - -If *r*, *g* and *b* are specified, these represent the channel values of the returned color; an *opacity* may also be specified. If a CSS Color Module Level 3 *specifier* string is specified, it is parsed and then converted to the RGB color space. See [color](#color) for examples. If a [*color*](#color) instance is specified, it is converted to the RGB color space using [*color*.rgb](#color_rgb). Note that unlike [*color*.rgb](#color_rgb) this method *always* returns a new instance, even if *color* is already an RGB color. - -# *rgb*.clamp() [<>](https://github.com/d3/d3-color/blob/master/src/color.js "Source") - -Returns a new RGB color where the `r`, `g`, and `b` channels are clamped to the range [0, 255] and rounded to the nearest integer value, and the `opacity` is clamped to the range [0, 1]. - -# d3.hsl(h, s, l[, opacity]) [<>](https://github.com/d3/d3-color/blob/master/src/color.js "Source")
-# d3.hsl(specifier)
-# d3.hsl(color)
- -Constructs a new [HSL](https://en.wikipedia.org/wiki/HSL_and_HSV) color. The channel values are exposed as `h`, `s` and `l` properties on the returned instance. Use the [HSL color picker](http://bl.ocks.org/mbostock/debaad4fcce9bcee14cf) to explore this color space. - -If *h*, *s* and *l* are specified, these represent the channel values of the returned color; an *opacity* may also be specified. If a CSS Color Module Level 3 *specifier* string is specified, it is parsed and then converted to the HSL color space. See [color](#color) for examples. If a [*color*](#color) instance is specified, it is converted to the RGB color space using [*color*.rgb](#color_rgb) and then converted to HSL. (Colors already in the HSL color space skip the conversion to RGB.) - -# *hsl*.clamp() [<>](https://github.com/d3/d3-color/blob/master/src/color.js "Source") - -Returns a new HSL color where the `h` channel is clamped to the range [0, 360), and the `s`, `l`, and `opacity` channels are clamped to the range [0, 1]. - -# d3.lab(l, a, b[, opacity]) [<>](https://github.com/d3/d3-color/blob/master/src/lab.js "Source")
-# d3.lab(specifier)
-# d3.lab(color)
- -Constructs a new [CIELAB](https://en.wikipedia.org/wiki/Lab_color_space#CIELAB) color. The channel values are exposed as `l`, `a` and `b` properties on the returned instance. Use the [CIELAB color picker](http://bl.ocks.org/mbostock/9f37cc207c0cb166921b) to explore this color space. The value of *l* is typically in the range [0, 100], while *a* and *b* are typically in [-160, +160]. - -If *l*, *a* and *b* are specified, these represent the channel values of the returned color; an *opacity* may also be specified. If a CSS Color Module Level 3 *specifier* string is specified, it is parsed and then converted to the CIELAB color space. See [color](#color) for examples. If a [*color*](#color) instance is specified, it is converted to the RGB color space using [*color*.rgb](#color_rgb) and then converted to CIELAB. (Colors already in the CIELAB color space skip the conversion to RGB, and colors in the HCL color space are converted directly to CIELAB.) - -# d3.gray(l[, opacity]) [<>](https://github.com/d3/d3-color/blob/master/src/lab.js "Source")
- -Constructs a new [CIELAB](#lab) color with the specified *l* value and *a* = *b* = 0. - -# d3.hcl(h, c, l[, opacity]) [<>](https://github.com/d3/d3-color/blob/master/src/lab.js "Source")
-# d3.hcl(specifier)
-# d3.hcl(color)
- -Equivalent to [d3.lch](#lch), but with reversed argument order. - -# d3.lch(l, c, h[, opacity]) [<>](https://github.com/d3/d3-color/blob/master/src/lab.js "Source")
-# d3.lch(specifier)
-# d3.lch(color)
- -Constructs a new [CIELChab](https://en.wikipedia.org/wiki/CIELAB_color_space#Cylindrical_representation:_CIELCh_or_CIEHLC) color. The channel values are exposed as `l`, `c` and `h` properties on the returned instance. Use the [CIELChab color picker](http://bl.ocks.org/mbostock/3e115519a1b495e0bd95) to explore this color space. The value of *l* is typically in the range [0, 100], *c* is typically in [0, 230], and *h* is typically in [0, 360). - -If *l*, *c*, and *h* are specified, these represent the channel values of the returned color; an *opacity* may also be specified. If a CSS Color Module Level 3 *specifier* string is specified, it is parsed and then converted to CIELChab color space. See [color](#color) for examples. If a [*color*](#color) instance is specified, it is converted to the RGB color space using [*color*.rgb](#color_rgb) and then converted to CIELChab. (Colors already in CIELChab color space skip the conversion to RGB, and colors in CIELAB color space are converted directly to CIELChab.) - -# d3.cubehelix(h, s, l[, opacity]) [<>](https://github.com/d3/d3-color/blob/master/src/cubehelix.js "Source")
-# d3.cubehelix(specifier)
-# d3.cubehelix(color)
- -Constructs a new [Cubehelix](http://www.mrao.cam.ac.uk/~dag/CUBEHELIX/) color. The channel values are exposed as `h`, `s` and `l` properties on the returned instance. Use the [Cubehelix color picker](http://bl.ocks.org/mbostock/ba8d75e45794c27168b5) to explore this color space. - -If *h*, *s* and *l* are specified, these represent the channel values of the returned color; an *opacity* may also be specified. If a CSS Color Module Level 3 *specifier* string is specified, it is parsed and then converted to the Cubehelix color space. See [color](#color) for examples. If a [*color*](#color) instance is specified, it is converted to the RGB color space using [*color*.rgb](#color_rgb) and then converted to Cubehelix. (Colors already in the Cubehelix color space skip the conversion to RGB.) diff --git a/build_vtk_bundle/node_modules/d3-color/package.json b/build_vtk_bundle/node_modules/d3-color/package.json deleted file mode 100644 index 40340858..00000000 --- a/build_vtk_bundle/node_modules/d3-color/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "d3-color", - "version": "3.1.0", - "description": "Color spaces! RGB, HSL, Cubehelix, Lab and HCL (Lch).", - "homepage": "https://d3js.org/d3-color/", - "repository": { - "type": "git", - "url": "https://github.com/d3/d3-color.git" - }, - "keywords": [ - "d3", - "d3-module", - "color", - "rgb", - "hsl", - "lab", - "hcl", - "lch", - "cubehelix" - ], - "license": "ISC", - "author": { - "name": "Mike Bostock", - "url": "http://bost.ocks.org/mike" - }, - "type": "module", - "files": [ - "dist/**/*.js", - "src/**/*.js" - ], - "module": "src/index.js", - "main": "src/index.js", - "jsdelivr": "dist/d3-color.min.js", - "unpkg": "dist/d3-color.min.js", - "exports": { - "umd": "./dist/d3-color.min.js", - "default": "./src/index.js" - }, - "sideEffects": false, - "devDependencies": { - "eslint": "8", - "mocha": "9", - "rollup": "2", - "rollup-plugin-terser": "7" - }, - "scripts": { - "test": "mocha 'test/**/*-test.js' && eslint src test", - "prepublishOnly": "rm -rf dist && yarn test && rollup -c", - "postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../${npm_package_name}/dist/${npm_package_name}.js ${npm_package_name}.v${npm_package_version%%.*}.js && cp ../${npm_package_name}/dist/${npm_package_name}.min.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git add ${npm_package_name}.v${npm_package_version%%.*}.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git commit -m \"${npm_package_name} ${npm_package_version}\" && git push && cd -" - }, - "engines": { - "node": ">=12" - } -} diff --git a/build_vtk_bundle/node_modules/d3-color/src/color.js b/build_vtk_bundle/node_modules/d3-color/src/color.js deleted file mode 100644 index 75b68b4d..00000000 --- a/build_vtk_bundle/node_modules/d3-color/src/color.js +++ /dev/null @@ -1,396 +0,0 @@ -import define, {extend} from "./define.js"; - -export function Color() {} - -export var darker = 0.7; -export var brighter = 1 / darker; - -var reI = "\\s*([+-]?\\d+)\\s*", - reN = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", - reP = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", - reHex = /^#([0-9a-f]{3,8})$/, - reRgbInteger = new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`), - reRgbPercent = new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`), - reRgbaInteger = new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`), - reRgbaPercent = new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`), - reHslPercent = new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`), - reHslaPercent = new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`); - -var named = { - aliceblue: 0xf0f8ff, - antiquewhite: 0xfaebd7, - aqua: 0x00ffff, - aquamarine: 0x7fffd4, - azure: 0xf0ffff, - beige: 0xf5f5dc, - bisque: 0xffe4c4, - black: 0x000000, - blanchedalmond: 0xffebcd, - blue: 0x0000ff, - blueviolet: 0x8a2be2, - brown: 0xa52a2a, - burlywood: 0xdeb887, - cadetblue: 0x5f9ea0, - chartreuse: 0x7fff00, - chocolate: 0xd2691e, - coral: 0xff7f50, - cornflowerblue: 0x6495ed, - cornsilk: 0xfff8dc, - crimson: 0xdc143c, - cyan: 0x00ffff, - darkblue: 0x00008b, - darkcyan: 0x008b8b, - darkgoldenrod: 0xb8860b, - darkgray: 0xa9a9a9, - darkgreen: 0x006400, - darkgrey: 0xa9a9a9, - darkkhaki: 0xbdb76b, - darkmagenta: 0x8b008b, - darkolivegreen: 0x556b2f, - darkorange: 0xff8c00, - darkorchid: 0x9932cc, - darkred: 0x8b0000, - darksalmon: 0xe9967a, - darkseagreen: 0x8fbc8f, - darkslateblue: 0x483d8b, - darkslategray: 0x2f4f4f, - darkslategrey: 0x2f4f4f, - darkturquoise: 0x00ced1, - darkviolet: 0x9400d3, - deeppink: 0xff1493, - deepskyblue: 0x00bfff, - dimgray: 0x696969, - dimgrey: 0x696969, - dodgerblue: 0x1e90ff, - firebrick: 0xb22222, - floralwhite: 0xfffaf0, - forestgreen: 0x228b22, - fuchsia: 0xff00ff, - gainsboro: 0xdcdcdc, - ghostwhite: 0xf8f8ff, - gold: 0xffd700, - goldenrod: 0xdaa520, - gray: 0x808080, - green: 0x008000, - greenyellow: 0xadff2f, - grey: 0x808080, - honeydew: 0xf0fff0, - hotpink: 0xff69b4, - indianred: 0xcd5c5c, - indigo: 0x4b0082, - ivory: 0xfffff0, - khaki: 0xf0e68c, - lavender: 0xe6e6fa, - lavenderblush: 0xfff0f5, - lawngreen: 0x7cfc00, - lemonchiffon: 0xfffacd, - lightblue: 0xadd8e6, - lightcoral: 0xf08080, - lightcyan: 0xe0ffff, - lightgoldenrodyellow: 0xfafad2, - lightgray: 0xd3d3d3, - lightgreen: 0x90ee90, - lightgrey: 0xd3d3d3, - lightpink: 0xffb6c1, - lightsalmon: 0xffa07a, - lightseagreen: 0x20b2aa, - lightskyblue: 0x87cefa, - lightslategray: 0x778899, - lightslategrey: 0x778899, - lightsteelblue: 0xb0c4de, - lightyellow: 0xffffe0, - lime: 0x00ff00, - limegreen: 0x32cd32, - linen: 0xfaf0e6, - magenta: 0xff00ff, - maroon: 0x800000, - mediumaquamarine: 0x66cdaa, - mediumblue: 0x0000cd, - mediumorchid: 0xba55d3, - mediumpurple: 0x9370db, - mediumseagreen: 0x3cb371, - mediumslateblue: 0x7b68ee, - mediumspringgreen: 0x00fa9a, - mediumturquoise: 0x48d1cc, - mediumvioletred: 0xc71585, - midnightblue: 0x191970, - mintcream: 0xf5fffa, - mistyrose: 0xffe4e1, - moccasin: 0xffe4b5, - navajowhite: 0xffdead, - navy: 0x000080, - oldlace: 0xfdf5e6, - olive: 0x808000, - olivedrab: 0x6b8e23, - orange: 0xffa500, - orangered: 0xff4500, - orchid: 0xda70d6, - palegoldenrod: 0xeee8aa, - palegreen: 0x98fb98, - paleturquoise: 0xafeeee, - palevioletred: 0xdb7093, - papayawhip: 0xffefd5, - peachpuff: 0xffdab9, - peru: 0xcd853f, - pink: 0xffc0cb, - plum: 0xdda0dd, - powderblue: 0xb0e0e6, - purple: 0x800080, - rebeccapurple: 0x663399, - red: 0xff0000, - rosybrown: 0xbc8f8f, - royalblue: 0x4169e1, - saddlebrown: 0x8b4513, - salmon: 0xfa8072, - sandybrown: 0xf4a460, - seagreen: 0x2e8b57, - seashell: 0xfff5ee, - sienna: 0xa0522d, - silver: 0xc0c0c0, - skyblue: 0x87ceeb, - slateblue: 0x6a5acd, - slategray: 0x708090, - slategrey: 0x708090, - snow: 0xfffafa, - springgreen: 0x00ff7f, - steelblue: 0x4682b4, - tan: 0xd2b48c, - teal: 0x008080, - thistle: 0xd8bfd8, - tomato: 0xff6347, - turquoise: 0x40e0d0, - violet: 0xee82ee, - wheat: 0xf5deb3, - white: 0xffffff, - whitesmoke: 0xf5f5f5, - yellow: 0xffff00, - yellowgreen: 0x9acd32 -}; - -define(Color, color, { - copy(channels) { - return Object.assign(new this.constructor, this, channels); - }, - displayable() { - return this.rgb().displayable(); - }, - hex: color_formatHex, // Deprecated! Use color.formatHex. - formatHex: color_formatHex, - formatHex8: color_formatHex8, - formatHsl: color_formatHsl, - formatRgb: color_formatRgb, - toString: color_formatRgb -}); - -function color_formatHex() { - return this.rgb().formatHex(); -} - -function color_formatHex8() { - return this.rgb().formatHex8(); -} - -function color_formatHsl() { - return hslConvert(this).formatHsl(); -} - -function color_formatRgb() { - return this.rgb().formatRgb(); -} - -export default function color(format) { - var m, l; - format = (format + "").trim().toLowerCase(); - return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000 - : l === 3 ? new Rgb((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00 - : l === 8 ? rgba(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000 - : l === 4 ? rgba((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000 - : null) // invalid hex - : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0) - : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%) - : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1) - : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1) - : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%) - : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1) - : named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins - : format === "transparent" ? new Rgb(NaN, NaN, NaN, 0) - : null; -} - -function rgbn(n) { - return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1); -} - -function rgba(r, g, b, a) { - if (a <= 0) r = g = b = NaN; - return new Rgb(r, g, b, a); -} - -export function rgbConvert(o) { - if (!(o instanceof Color)) o = color(o); - if (!o) return new Rgb; - o = o.rgb(); - return new Rgb(o.r, o.g, o.b, o.opacity); -} - -export function rgb(r, g, b, opacity) { - return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity); -} - -export function Rgb(r, g, b, opacity) { - this.r = +r; - this.g = +g; - this.b = +b; - this.opacity = +opacity; -} - -define(Rgb, rgb, extend(Color, { - brighter(k) { - k = k == null ? brighter : Math.pow(brighter, k); - return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); - }, - darker(k) { - k = k == null ? darker : Math.pow(darker, k); - return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity); - }, - rgb() { - return this; - }, - clamp() { - return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity)); - }, - displayable() { - return (-0.5 <= this.r && this.r < 255.5) - && (-0.5 <= this.g && this.g < 255.5) - && (-0.5 <= this.b && this.b < 255.5) - && (0 <= this.opacity && this.opacity <= 1); - }, - hex: rgb_formatHex, // Deprecated! Use color.formatHex. - formatHex: rgb_formatHex, - formatHex8: rgb_formatHex8, - formatRgb: rgb_formatRgb, - toString: rgb_formatRgb -})); - -function rgb_formatHex() { - return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`; -} - -function rgb_formatHex8() { - return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`; -} - -function rgb_formatRgb() { - const a = clampa(this.opacity); - return `${a === 1 ? "rgb(" : "rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a === 1 ? ")" : `, ${a})`}`; -} - -function clampa(opacity) { - return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity)); -} - -function clampi(value) { - return Math.max(0, Math.min(255, Math.round(value) || 0)); -} - -function hex(value) { - value = clampi(value); - return (value < 16 ? "0" : "") + value.toString(16); -} - -function hsla(h, s, l, a) { - if (a <= 0) h = s = l = NaN; - else if (l <= 0 || l >= 1) h = s = NaN; - else if (s <= 0) h = NaN; - return new Hsl(h, s, l, a); -} - -export function hslConvert(o) { - if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity); - if (!(o instanceof Color)) o = color(o); - if (!o) return new Hsl; - if (o instanceof Hsl) return o; - o = o.rgb(); - var r = o.r / 255, - g = o.g / 255, - b = o.b / 255, - min = Math.min(r, g, b), - max = Math.max(r, g, b), - h = NaN, - s = max - min, - l = (max + min) / 2; - if (s) { - if (r === max) h = (g - b) / s + (g < b) * 6; - else if (g === max) h = (b - r) / s + 2; - else h = (r - g) / s + 4; - s /= l < 0.5 ? max + min : 2 - max - min; - h *= 60; - } else { - s = l > 0 && l < 1 ? 0 : h; - } - return new Hsl(h, s, l, o.opacity); -} - -export function hsl(h, s, l, opacity) { - return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity); -} - -function Hsl(h, s, l, opacity) { - this.h = +h; - this.s = +s; - this.l = +l; - this.opacity = +opacity; -} - -define(Hsl, hsl, extend(Color, { - brighter(k) { - k = k == null ? brighter : Math.pow(brighter, k); - return new Hsl(this.h, this.s, this.l * k, this.opacity); - }, - darker(k) { - k = k == null ? darker : Math.pow(darker, k); - return new Hsl(this.h, this.s, this.l * k, this.opacity); - }, - rgb() { - var h = this.h % 360 + (this.h < 0) * 360, - s = isNaN(h) || isNaN(this.s) ? 0 : this.s, - l = this.l, - m2 = l + (l < 0.5 ? l : 1 - l) * s, - m1 = 2 * l - m2; - return new Rgb( - hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), - hsl2rgb(h, m1, m2), - hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), - this.opacity - ); - }, - clamp() { - return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity)); - }, - displayable() { - return (0 <= this.s && this.s <= 1 || isNaN(this.s)) - && (0 <= this.l && this.l <= 1) - && (0 <= this.opacity && this.opacity <= 1); - }, - formatHsl() { - const a = clampa(this.opacity); - return `${a === 1 ? "hsl(" : "hsla("}${clamph(this.h)}, ${clampt(this.s) * 100}%, ${clampt(this.l) * 100}%${a === 1 ? ")" : `, ${a})`}`; - } -})); - -function clamph(value) { - value = (value || 0) % 360; - return value < 0 ? value + 360 : value; -} - -function clampt(value) { - return Math.max(0, Math.min(1, value || 0)); -} - -/* From FvD 13.37, CSS Color Module Level 3 */ -function hsl2rgb(h, m1, m2) { - return (h < 60 ? m1 + (m2 - m1) * h / 60 - : h < 180 ? m2 - : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 - : m1) * 255; -} diff --git a/build_vtk_bundle/node_modules/d3-color/src/cubehelix.js b/build_vtk_bundle/node_modules/d3-color/src/cubehelix.js deleted file mode 100644 index b3cf696d..00000000 --- a/build_vtk_bundle/node_modules/d3-color/src/cubehelix.js +++ /dev/null @@ -1,61 +0,0 @@ -import define, {extend} from "./define.js"; -import {Color, rgbConvert, Rgb, darker, brighter} from "./color.js"; -import {degrees, radians} from "./math.js"; - -var A = -0.14861, - B = +1.78277, - C = -0.29227, - D = -0.90649, - E = +1.97294, - ED = E * D, - EB = E * B, - BC_DA = B * C - D * A; - -function cubehelixConvert(o) { - if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity); - if (!(o instanceof Rgb)) o = rgbConvert(o); - var r = o.r / 255, - g = o.g / 255, - b = o.b / 255, - l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB), - bl = b - l, - k = (E * (g - l) - C * bl) / D, - s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1 - h = s ? Math.atan2(k, bl) * degrees - 120 : NaN; - return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity); -} - -export default function cubehelix(h, s, l, opacity) { - return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity); -} - -export function Cubehelix(h, s, l, opacity) { - this.h = +h; - this.s = +s; - this.l = +l; - this.opacity = +opacity; -} - -define(Cubehelix, cubehelix, extend(Color, { - brighter(k) { - k = k == null ? brighter : Math.pow(brighter, k); - return new Cubehelix(this.h, this.s, this.l * k, this.opacity); - }, - darker(k) { - k = k == null ? darker : Math.pow(darker, k); - return new Cubehelix(this.h, this.s, this.l * k, this.opacity); - }, - rgb() { - var h = isNaN(this.h) ? 0 : (this.h + 120) * radians, - l = +this.l, - a = isNaN(this.s) ? 0 : this.s * l * (1 - l), - cosh = Math.cos(h), - sinh = Math.sin(h); - return new Rgb( - 255 * (l + a * (A * cosh + B * sinh)), - 255 * (l + a * (C * cosh + D * sinh)), - 255 * (l + a * (E * cosh)), - this.opacity - ); - } -})); diff --git a/build_vtk_bundle/node_modules/d3-color/src/define.js b/build_vtk_bundle/node_modules/d3-color/src/define.js deleted file mode 100644 index 2bba2d3a..00000000 --- a/build_vtk_bundle/node_modules/d3-color/src/define.js +++ /dev/null @@ -1,10 +0,0 @@ -export default function(constructor, factory, prototype) { - constructor.prototype = factory.prototype = prototype; - prototype.constructor = constructor; -} - -export function extend(parent, definition) { - var prototype = Object.create(parent.prototype); - for (var key in definition) prototype[key] = definition[key]; - return prototype; -} diff --git a/build_vtk_bundle/node_modules/d3-color/src/index.js b/build_vtk_bundle/node_modules/d3-color/src/index.js deleted file mode 100644 index 831cf529..00000000 --- a/build_vtk_bundle/node_modules/d3-color/src/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export {default as color, rgb, hsl} from "./color.js"; -export {default as lab, hcl, lch, gray} from "./lab.js"; -export {default as cubehelix} from "./cubehelix.js"; diff --git a/build_vtk_bundle/node_modules/d3-color/src/lab.js b/build_vtk_bundle/node_modules/d3-color/src/lab.js deleted file mode 100644 index 88c46e8d..00000000 --- a/build_vtk_bundle/node_modules/d3-color/src/lab.js +++ /dev/null @@ -1,123 +0,0 @@ -import define, {extend} from "./define.js"; -import {Color, rgbConvert, Rgb} from "./color.js"; -import {degrees, radians} from "./math.js"; - -// https://observablehq.com/@mbostock/lab-and-rgb -const K = 18, - Xn = 0.96422, - Yn = 1, - Zn = 0.82521, - t0 = 4 / 29, - t1 = 6 / 29, - t2 = 3 * t1 * t1, - t3 = t1 * t1 * t1; - -function labConvert(o) { - if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity); - if (o instanceof Hcl) return hcl2lab(o); - if (!(o instanceof Rgb)) o = rgbConvert(o); - var r = rgb2lrgb(o.r), - g = rgb2lrgb(o.g), - b = rgb2lrgb(o.b), - y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z; - if (r === g && g === b) x = z = y; else { - x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn); - z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn); - } - return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity); -} - -export function gray(l, opacity) { - return new Lab(l, 0, 0, opacity == null ? 1 : opacity); -} - -export default function lab(l, a, b, opacity) { - return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity); -} - -export function Lab(l, a, b, opacity) { - this.l = +l; - this.a = +a; - this.b = +b; - this.opacity = +opacity; -} - -define(Lab, lab, extend(Color, { - brighter(k) { - return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity); - }, - darker(k) { - return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity); - }, - rgb() { - var y = (this.l + 16) / 116, - x = isNaN(this.a) ? y : y + this.a / 500, - z = isNaN(this.b) ? y : y - this.b / 200; - x = Xn * lab2xyz(x); - y = Yn * lab2xyz(y); - z = Zn * lab2xyz(z); - return new Rgb( - lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z), - lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z), - lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z), - this.opacity - ); - } -})); - -function xyz2lab(t) { - return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0; -} - -function lab2xyz(t) { - return t > t1 ? t * t * t : t2 * (t - t0); -} - -function lrgb2rgb(x) { - return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055); -} - -function rgb2lrgb(x) { - return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4); -} - -function hclConvert(o) { - if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity); - if (!(o instanceof Lab)) o = labConvert(o); - if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity); - var h = Math.atan2(o.b, o.a) * degrees; - return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity); -} - -export function lch(l, c, h, opacity) { - return arguments.length === 1 ? hclConvert(l) : new Hcl(h, c, l, opacity == null ? 1 : opacity); -} - -export function hcl(h, c, l, opacity) { - return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity); -} - -export function Hcl(h, c, l, opacity) { - this.h = +h; - this.c = +c; - this.l = +l; - this.opacity = +opacity; -} - -function hcl2lab(o) { - if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity); - var h = o.h * radians; - return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity); -} - -define(Hcl, hcl, extend(Color, { - brighter(k) { - return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity); - }, - darker(k) { - return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity); - }, - rgb() { - return hcl2lab(this).rgb(); - } -})); diff --git a/build_vtk_bundle/node_modules/d3-color/src/math.js b/build_vtk_bundle/node_modules/d3-color/src/math.js deleted file mode 100644 index 66b172e7..00000000 --- a/build_vtk_bundle/node_modules/d3-color/src/math.js +++ /dev/null @@ -1,2 +0,0 @@ -export const radians = Math.PI / 180; -export const degrees = 180 / Math.PI; diff --git a/build_vtk_bundle/node_modules/d3-format/LICENSE b/build_vtk_bundle/node_modules/d3-format/LICENSE deleted file mode 100644 index b0145150..00000000 --- a/build_vtk_bundle/node_modules/d3-format/LICENSE +++ /dev/null @@ -1,13 +0,0 @@ -Copyright 2010-2021 Mike Bostock - -Permission to use, copy, modify, and/or distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright notice -and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS -OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -THIS SOFTWARE. diff --git a/build_vtk_bundle/node_modules/d3-format/README.md b/build_vtk_bundle/node_modules/d3-format/README.md deleted file mode 100644 index 9c7e904f..00000000 --- a/build_vtk_bundle/node_modules/d3-format/README.md +++ /dev/null @@ -1,350 +0,0 @@ -# d3-format - -Ever noticed how sometimes JavaScript doesn’t display numbers the way you expect? Like, you tried to print tenths with a simple loop: - -```js -for (let i = 0; i < 10; ++i) { - console.log(0.1 * i); -} -``` - -And you got this: - -```js -0 -0.1 -0.2 -0.30000000000000004 -0.4 -0.5 -0.6000000000000001 -0.7000000000000001 -0.8 -0.9 -``` - -Welcome to [binary floating point](https://en.wikipedia.org/wiki/Double-precision_floating-point_format)! ಠ_ಠ - -Yet rounding error is not the only reason to customize number formatting. A table of numbers should be formatted consistently for comparison; above, 0.0 would be better than 0. Large numbers should have grouped digits (e.g., 42,000) or be in scientific or metric notation (4.2e+4, 42k). Currencies should have fixed precision ($3.50). Reported numerical results should be rounded to significant digits (4021 becomes 4000). Number formats should appropriate to the reader’s locale (42.000,00 or 42,000.00). The list goes on. - -Formatting numbers for human consumption is the purpose of d3-format, which is modeled after Python 3’s [format specification mini-language](https://docs.python.org/3/library/string.html#format-specification-mini-language) ([PEP 3101](https://www.python.org/dev/peps/pep-3101/)). Revisiting the example above: - -```js -const f = d3.format(".1f"); -for (let i = 0; i < 10; ++i) { - console.log(f(0.1 * i)); -} -``` - -Now you get this: - -```js -0.0 -0.1 -0.2 -0.3 -0.4 -0.5 -0.6 -0.7 -0.8 -0.9 -``` - -But d3-format is much more than an alias for [number.toFixed](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed)! A few more examples: - -```js -d3.format(".0%")(0.123); // rounded percentage, "12%" -d3.format("($.2f")(-3.5); // localized fixed-point currency, "(£3.50)" -d3.format("+20")(42); // space-filled and signed, " +42" -d3.format(".^20")(42); // dot-filled and centered, ".........42........." -d3.format(".2s")(42e6); // SI-prefix with two significant digits, "42M" -d3.format("#x")(48879); // prefixed lowercase hexadecimal, "0xbeef" -d3.format(",.2r")(4223); // grouped thousands with two significant digits, "4,200" -``` - -See [*locale*.format](#locale_format) for a detailed specification, and try running [d3.formatSpecifier](#formatSpecifier) on the above formats to decode their meaning. - -## Installing - -If you use npm, `npm install d3-format`. You can also download the [latest release on GitHub](https://github.com/d3/d3-format/releases/latest). In modern browsers, you can import d3-format from Skypack: - -```html - -``` - -For legacy environments, you can load d3-format’s UMD bundle from an npm-based CDN such as jsDelivr; a `d3` global is exported: - -```html - - -``` - -Locale files are published to npm and can be loaded using [d3.json](https://github.com/d3/d3-fetch/blob/master/README.md#json). For example, to set Russian as the default locale: - -```js -const locale = await d3.json("https://cdn.jsdelivr.net/npm/d3-format@3/locale/ru-RU.json"); -d3.formatDefaultLocale(locale); -const f = d3.format("$,"); -console.log(f(1234.56)); // 1 234,56 руб. -``` - -[Try d3-format in your browser.](https://observablehq.com/@d3/d3-format) - -## API Reference - -# d3.format(specifier) [<>](https://github.com/d3/d3-format/blob/main/src/defaultLocale.js#L4 "Source") - -An alias for [*locale*.format](#locale_format) on the [default locale](#formatDefaultLocale). - -# d3.formatPrefix(specifier, value) [<>](https://github.com/d3/d3-format/blob/main/src/defaultLocale.js#L5 "Source") - -An alias for [*locale*.formatPrefix](#locale_formatPrefix) on the [default locale](#formatDefaultLocale). - -# locale.format(specifier) [<>](https://github.com/d3/d3-format/blob/main/src/locale.js#L18 "Source") - -Returns a new format function for the given string *specifier*. The returned function takes a number as the only argument, and returns a string representing the formatted number. The general form of a specifier is: - -``` -[​[fill]align][sign][symbol][0][width][,][.precision][~][type] -``` - -The *fill* can be any character. The presence of a fill character is signaled by the *align* character following it, which must be one of the following: - -* `>` - Forces the field to be right-aligned within the available space. (Default behavior). -* `<` - Forces the field to be left-aligned within the available space. -* `^` - Forces the field to be centered within the available space. -* `=` - like `>`, but with any sign and symbol to the left of any padding. - -The *sign* can be: - -* `-` - nothing for zero or positive and a minus sign for negative. (Default behavior.) -* `+` - a plus sign for zero or positive and a minus sign for negative. -* `(` - nothing for zero or positive and parentheses for negative. -* ` ` (space) - a space for zero or positive and a minus sign for negative. - -The *symbol* can be: - -* `$` - apply currency symbols per the locale definition. -* `#` - for binary, octal, or hexadecimal notation, prefix by `0b`, `0o`, or `0x`, respectively. - -The *zero* (`0`) option enables zero-padding; this implicitly sets *fill* to `0` and *align* to `=`. The *width* defines the minimum field width; if not specified, then the width will be determined by the content. The *comma* (`,`) option enables the use of a group separator, such as a comma for thousands. - -Depending on the *type*, the *precision* either indicates the number of digits that follow the decimal point (types `f` and `%`), or the number of significant digits (types `​`, `e`, `g`, `r`, `s` and `p`). If the precision is not specified, it defaults to 6 for all types except `​` (none), which defaults to 12. Precision is ignored for integer formats (types `b`, `o`, `d`, `x`, and `X`) and character data (type `c`). See [precisionFixed](#precisionFixed) and [precisionRound](#precisionRound) for help picking an appropriate precision. - -The `~` option trims insignificant trailing zeros across all format types. This is most commonly used in conjunction with types `r`, `e`, `s` and `%`. For example: - -```js -d3.format("s")(1500); // "1.50000k" -d3.format("~s")(1500); // "1.5k" -``` - -The available *type* values are: - -* `e` - exponent notation. -* `f` - fixed point notation. -* `g` - either decimal or exponent notation, rounded to significant digits. -* `r` - decimal notation, rounded to significant digits. -* `s` - decimal notation with an [SI prefix](#locale_formatPrefix), rounded to significant digits. -* `%` - multiply by 100, and then decimal notation with a percent sign. -* `p` - multiply by 100, round to significant digits, and then decimal notation with a percent sign. -* `b` - binary notation, rounded to integer. -* `o` - octal notation, rounded to integer. -* `d` - decimal notation, rounded to integer. -* `x` - hexadecimal notation, using lower-case letters, rounded to integer. -* `X` - hexadecimal notation, using upper-case letters, rounded to integer. -* `c` - character data, for a string of text. - -The type `​` (none) is also supported as shorthand for `~g` (with a default precision of 12 instead of 6), and the type `n` is shorthand for `,g`. For the `g`, `n` and `​` (none) types, decimal notation is used if the resulting string would have *precision* or fewer digits; otherwise, exponent notation is used. For example: - -```js -d3.format(".2")(42); // "42" -d3.format(".2")(4.2); // "4.2" -d3.format(".1")(42); // "4e+1" -d3.format(".1")(4.2); // "4" -``` - -# locale.formatPrefix(specifier, value) [<>](https://github.com/d3/d3-format/blob/main/src/locale.js#L127 "Source") - -Equivalent to [*locale*.format](#locale_format), except the returned function will convert values to the units of the appropriate [SI prefix](https://en.wikipedia.org/wiki/Metric_prefix#List_of_SI_prefixes) for the specified numeric reference *value* before formatting in fixed point notation. The following prefixes are supported: - -* `y` - yocto, 10⁻²⁴ -* `z` - zepto, 10⁻²¹ -* `a` - atto, 10⁻¹⁸ -* `f` - femto, 10⁻¹⁵ -* `p` - pico, 10⁻¹² -* `n` - nano, 10⁻⁹ -* `µ` - micro, 10⁻⁶ -* `m` - milli, 10⁻³ -* `​` (none) - 10⁰ -* `k` - kilo, 10³ -* `M` - mega, 10⁶ -* `G` - giga, 10⁹ -* `T` - tera, 10¹² -* `P` - peta, 10¹⁵ -* `E` - exa, 10¹⁸ -* `Z` - zetta, 10²¹ -* `Y` - yotta, 10²⁴ - -Unlike [*locale*.format](#locale_format) with the `s` format type, this method returns a formatter with a consistent SI prefix, rather than computing the prefix dynamically for each number. In addition, the *precision* for the given *specifier* represents the number of digits past the decimal point (as with `f` fixed point notation), not the number of significant digits. For example: - -```js -const f = d3.formatPrefix(",.0", 1e-6); -f(0.00042); // "420µ" -f(0.0042); // "4,200µ" -``` - -This method is useful when formatting multiple numbers in the same units for easy comparison. See [precisionPrefix](#precisionPrefix) for help picking an appropriate precision, and [bl.ocks.org/9764126](http://bl.ocks.org/mbostock/9764126) for an example. - -# d3.formatSpecifier(specifier) [<>](https://github.com/d3/d3-format/blob/main/src/formatSpecifier.js "Source") - -Parses the specified *specifier*, returning an object with exposed fields that correspond to the [format specification mini-language](#locale_format) and a toString method that reconstructs the specifier. For example, `formatSpecifier("s")` returns: - -```js -FormatSpecifier { - "fill": " ", - "align": ">", - "sign": "-", - "symbol": "", - "zero": false, - "width": undefined, - "comma": false, - "precision": undefined, - "trim": false, - "type": "s" -} -``` - -This method is useful for understanding how format specifiers are parsed and for deriving new specifiers. For example, you might compute an appropriate precision based on the numbers you want to format using [precisionFixed](#precisionFixed) and then create a new format: - -```js -const s = d3.formatSpecifier("f"); -s.precision = d3.precisionFixed(0.01); -const f = d3.format(s); -f(42); // "42.00"; -``` - -# new d3.FormatSpecifier(specifier) [<>](https://github.com/d3/d3-format/blob/main/src/formatSpecifier.js "Source") - -Given the specified *specifier* object, returning an object with exposed fields that correspond to the [format specification mini-language](#locale_format) and a toString method that reconstructs the specifier. For example, `new FormatSpecifier({type: "s"})` returns: - -```js -FormatSpecifier { - "fill": " ", - "align": ">", - "sign": "-", - "symbol": "", - "zero": false, - "width": undefined, - "comma": false, - "precision": undefined, - "trim": false, - "type": "s" -} -``` - -# d3.precisionFixed(step) [<>](https://github.com/d3/d3-format/blob/main/src/precisionFixed.js "Source") - -Returns a suggested decimal precision for fixed point notation given the specified numeric *step* value. The *step* represents the minimum absolute difference between values that will be formatted. (This assumes that the values to be formatted are also multiples of *step*.) For example, given the numbers 1, 1.5, and 2, the *step* should be 0.5 and the suggested precision is 1: - -```js -const p = d3.precisionFixed(0.5); -const f = d3.format("." + p + "f"); -f(1); // "1.0" -f(1.5); // "1.5" -f(2); // "2.0" -``` - -Whereas for the numbers 1, 2 and 3, the *step* should be 1 and the suggested precision is 0: - -```js -const p = d3.precisionFixed(1); -const f = d3.format("." + p + "f"); -f(1); // "1" -f(2); // "2" -f(3); // "3" -``` - -Note: for the `%` format type, subtract two: - -```js -const p = Math.max(0, d3.precisionFixed(0.05) - 2); -const f = d3.format("." + p + "%"); -f(0.45); // "45%" -f(0.50); // "50%" -f(0.55); // "55%" -``` - -# d3.precisionPrefix(step, value) [<>](https://github.com/d3/d3-format/blob/main/src/precisionPrefix.js "Source") - -Returns a suggested decimal precision for use with [*locale*.formatPrefix](#locale_formatPrefix) given the specified numeric *step* and reference *value*. The *step* represents the minimum absolute difference between values that will be formatted, and *value* determines which SI prefix will be used. (This assumes that the values to be formatted are also multiples of *step*.) For example, given the numbers 1.1e6, 1.2e6, and 1.3e6, the *step* should be 1e5, the *value* could be 1.3e6, and the suggested precision is 1: - -```js -const p = d3.precisionPrefix(1e5, 1.3e6); -const f = d3.formatPrefix("." + p, 1.3e6); -f(1.1e6); // "1.1M" -f(1.2e6); // "1.2M" -f(1.3e6); // "1.3M" -``` - -# d3.precisionRound(step, max) [<>](https://github.com/d3/d3-format/blob/main/src/precisionRound.js "Source") - -Returns a suggested decimal precision for format types that round to significant digits given the specified numeric *step* and *max* values. The *step* represents the minimum absolute difference between values that will be formatted, and the *max* represents the largest absolute value that will be formatted. (This assumes that the values to be formatted are also multiples of *step*.) For example, given the numbers 0.99, 1.0, and 1.01, the *step* should be 0.01, the *max* should be 1.01, and the suggested precision is 3: - -```js -const p = d3.precisionRound(0.01, 1.01); -const f = d3.format("." + p + "r"); -f(0.99); // "0.990" -f(1.0); // "1.00" -f(1.01); // "1.01" -``` - -Whereas for the numbers 0.9, 1.0, and 1.1, the *step* should be 0.1, the *max* should be 1.1, and the suggested precision is 2: - -```js -const p = d3.precisionRound(0.1, 1.1); -const f = d3.format("." + p + "r"); -f(0.9); // "0.90" -f(1.0); // "1.0" -f(1.1); // "1.1" -``` - -Note: for the `e` format type, subtract one: - -```js -const p = Math.max(0, d3.precisionRound(0.01, 1.01) - 1); -const f = d3.format("." + p + "e"); -f(0.01); // "1.00e-2" -f(1.01); // "1.01e+0" -``` - -### Locales - -# d3.formatLocale(definition) [<>](https://github.com/d3/d3-format/blob/main/src/locale.js "Source") - -Returns a *locale* object for the specified *definition* with [*locale*.format](#locale_format) and [*locale*.formatPrefix](#locale_formatPrefix) methods. The *definition* must include the following properties: - -* `decimal` - the decimal point (e.g., `"."`). -* `thousands` - the group separator (e.g., `","`). -* `grouping` - the array of group sizes (e.g., `[3]`), cycled as needed. -* `currency` - the currency prefix and suffix (e.g., `["$", ""]`). -* `numerals` - optional; an array of ten strings to replace the numerals 0-9. -* `percent` - optional; the percent sign (defaults to `"%"`). -* `minus` - optional; the minus sign (defaults to `"−"`). -* `nan` - optional; the not-a-number value (defaults `"NaN"`). - -Note that the *thousands* property is a misnomer, as the grouping definition allows groups other than thousands. - -# d3.formatDefaultLocale(definition) [<>](https://github.com/d3/d3-format/blob/main/src/defaultLocale.js "Source") - -Equivalent to [d3.formatLocale](#formatLocale), except it also redefines [d3.format](#format) and [d3.formatPrefix](#formatPrefix) to the new locale’s [*locale*.format](#locale_format) and [*locale*.formatPrefix](#locale_formatPrefix). If you do not set a default locale, it defaults to [U.S. English](https://github.com/d3/d3-format/blob/main/locale/en-US.json). diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-001.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-001.json deleted file mode 100644 index 0376eb9f..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-001.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["", ""], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-AE.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-AE.json deleted file mode 100644 index a8273089..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-AE.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["", " \u062f\u002e\u0625\u002e"], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-BH.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-BH.json deleted file mode 100644 index 5f4e5dde..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-BH.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["", " \u062f\u002e\u0628\u002e"], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-DJ.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-DJ.json deleted file mode 100644 index b893ff0c..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-DJ.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["\u200f\u0046\u0064\u006a ", ""], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-DZ.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-DZ.json deleted file mode 100644 index e1438af1..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-DZ.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": "\u002c", - "thousands": "\u002e", - "grouping": [3], - "currency": ["\u062f\u002e\u062c\u002e ", ""] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-EG.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-EG.json deleted file mode 100644 index 2b1ff3aa..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-EG.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["", " \u062c\u002e\u0645\u002e"], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-EH.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-EH.json deleted file mode 100644 index b33c32af..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-EH.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": "\u002e", - "thousands": "\u002c", - "grouping": [3], - "currency": ["\u062f\u002e\u0645\u002e ", ""] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-ER.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-ER.json deleted file mode 100644 index b0f82bbe..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-ER.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["\u004e\u0066\u006b ", ""], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-IL.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-IL.json deleted file mode 100644 index ce15fb47..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-IL.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["\u20aa ", ""], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-IQ.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-IQ.json deleted file mode 100644 index a6c9b3fa..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-IQ.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["", " \u062f\u002e\u0639\u002e"], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-JO.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-JO.json deleted file mode 100644 index 94df180b..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-JO.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["", " \u062f\u002e\u0623\u002e"], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-KM.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-KM.json deleted file mode 100644 index 84dd81ad..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-KM.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["", " \u0641\u002e\u062c\u002e\u0642\u002e"], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-KW.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-KW.json deleted file mode 100644 index b4018ab7..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-KW.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["", " \u062f\u002e\u0643\u002e"], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-LB.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-LB.json deleted file mode 100644 index c732df33..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-LB.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["", " \u0644\u002e\u0644\u002e"], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-LY.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-LY.json deleted file mode 100644 index 431f230c..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-LY.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": "\u002c", - "thousands": "\u002e", - "grouping": [3], - "currency": ["\u062f\u002e\u0644\u002e ", ""] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-MA.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-MA.json deleted file mode 100644 index abc0663b..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-MA.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": "\u002c", - "thousands": "\u002e", - "grouping": [3], - "currency": ["\u062f\u002e\u0645\u002e ", ""] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-MR.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-MR.json deleted file mode 100644 index 8d1f8c27..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-MR.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["", " \u0623\u002e\u0645\u002e"], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-OM.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-OM.json deleted file mode 100644 index 04ad53ad..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-OM.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["", " \u0631\u002e\u0639\u002e"], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-PS.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-PS.json deleted file mode 100644 index ce15fb47..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-PS.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["\u20aa ", ""], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-QA.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-QA.json deleted file mode 100644 index 94aef298..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-QA.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["", " \u0631\u002e\u0642\u002e"], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-SA.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-SA.json deleted file mode 100644 index 4d64227e..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-SA.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["", " \u0631\u002e\u0633\u002e"], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-SD.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-SD.json deleted file mode 100644 index 1ae41ae8..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-SD.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["", " \u062c\u002e\u0633\u002e"], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-SO.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-SO.json deleted file mode 100644 index 143b46f6..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-SO.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["\u200f\u0053 ", ""], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-SS.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-SS.json deleted file mode 100644 index 03ca5b4a..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-SS.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["\u00a3 ", ""], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-SY.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-SY.json deleted file mode 100644 index 40263fbb..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-SY.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["", " \u0644\u002e\u0633\u002e"], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-TD.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-TD.json deleted file mode 100644 index 7bc36467..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-TD.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["\u200f\u0046\u0043\u0046\u0041 ", ""], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-TN.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-TN.json deleted file mode 100644 index 16829aa5..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-TN.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": "\u002c", - "thousands": "\u002e", - "grouping": [3], - "currency": ["\u062f\u002e\u062a\u002e ", ""] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ar-YE.json b/build_vtk_bundle/node_modules/d3-format/locale/ar-YE.json deleted file mode 100644 index ed9f48e8..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ar-YE.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": "\u066b", - "thousands": "\u066c", - "grouping": [3], - "currency": ["", " \u0631\u002e\u0649\u002e"], - "numerals" : ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ca-ES.json b/build_vtk_bundle/node_modules/d3-format/locale/ca-ES.json deleted file mode 100644 index a2497624..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ca-ES.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ",", - "thousands": ".", - "grouping": [3], - "currency": ["", "\u00a0€"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/cs-CZ.json b/build_vtk_bundle/node_modules/d3-format/locale/cs-CZ.json deleted file mode 100644 index 7ff40eb9..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/cs-CZ.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ",", - "thousands": "\u00a0", - "grouping": [3], - "currency": ["", "\u00a0Kč"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/da-DK.json b/build_vtk_bundle/node_modules/d3-format/locale/da-DK.json deleted file mode 100644 index 991a81c2..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/da-DK.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ",", - "thousands": ".", - "grouping": [3], - "currency": ["", " kr"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/de-CH.json b/build_vtk_bundle/node_modules/d3-format/locale/de-CH.json deleted file mode 100644 index 874bb56a..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/de-CH.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ",", - "thousands": "'", - "grouping": [3], - "currency": ["", "\u00a0CHF"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/de-DE.json b/build_vtk_bundle/node_modules/d3-format/locale/de-DE.json deleted file mode 100644 index a2497624..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/de-DE.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ",", - "thousands": ".", - "grouping": [3], - "currency": ["", "\u00a0€"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/en-CA.json b/build_vtk_bundle/node_modules/d3-format/locale/en-CA.json deleted file mode 100644 index f075b861..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/en-CA.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ".", - "thousands": ",", - "grouping": [3], - "currency": ["$", ""] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/en-GB.json b/build_vtk_bundle/node_modules/d3-format/locale/en-GB.json deleted file mode 100644 index 3d22d7a6..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/en-GB.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ".", - "thousands": ",", - "grouping": [3], - "currency": ["£", ""] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/en-IE.json b/build_vtk_bundle/node_modules/d3-format/locale/en-IE.json deleted file mode 100644 index 7d644154..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/en-IE.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ".", - "thousands": ",", - "grouping": [3], - "currency": ["€", ""] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/en-IN.json b/build_vtk_bundle/node_modules/d3-format/locale/en-IN.json deleted file mode 100644 index ada1510f..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/en-IN.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ".", - "thousands": ",", - "grouping": [3, 2, 2, 2, 2, 2, 2, 2, 2, 2], - "currency": ["₹", ""] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/en-US.json b/build_vtk_bundle/node_modules/d3-format/locale/en-US.json deleted file mode 100644 index f075b861..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/en-US.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ".", - "thousands": ",", - "grouping": [3], - "currency": ["$", ""] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/es-BO.json b/build_vtk_bundle/node_modules/d3-format/locale/es-BO.json deleted file mode 100644 index 98fe6467..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/es-BO.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": ",", - "thousands": ".", - "grouping": [3], - "currency": ["Bs\u00a0", ""], - "percent": "\u202f%" -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/es-ES.json b/build_vtk_bundle/node_modules/d3-format/locale/es-ES.json deleted file mode 100644 index a2497624..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/es-ES.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ",", - "thousands": ".", - "grouping": [3], - "currency": ["", "\u00a0€"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/es-MX.json b/build_vtk_bundle/node_modules/d3-format/locale/es-MX.json deleted file mode 100644 index f075b861..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/es-MX.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ".", - "thousands": ",", - "grouping": [3], - "currency": ["$", ""] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/fi-FI.json b/build_vtk_bundle/node_modules/d3-format/locale/fi-FI.json deleted file mode 100644 index e2218ec9..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/fi-FI.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ",", - "thousands": "\u00a0", - "grouping": [3], - "currency": ["", "\u00a0€"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/fr-CA.json b/build_vtk_bundle/node_modules/d3-format/locale/fr-CA.json deleted file mode 100644 index 0d927b92..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/fr-CA.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ",", - "thousands": "\u00a0", - "grouping": [3], - "currency": ["", "$"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/fr-FR.json b/build_vtk_bundle/node_modules/d3-format/locale/fr-FR.json deleted file mode 100644 index e0cf89de..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/fr-FR.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "decimal": ",", - "thousands": "\u00a0", - "grouping": [3], - "currency": ["", "\u00a0€"], - "percent": "\u202f%" -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/he-IL.json b/build_vtk_bundle/node_modules/d3-format/locale/he-IL.json deleted file mode 100644 index 23926cb8..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/he-IL.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ".", - "thousands": ",", - "grouping": [3], - "currency": ["₪", ""] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/hu-HU.json b/build_vtk_bundle/node_modules/d3-format/locale/hu-HU.json deleted file mode 100644 index 1baff743..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/hu-HU.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ",", - "thousands": "\u00a0", - "grouping": [3], - "currency": ["", "\u00a0Ft"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/it-IT.json b/build_vtk_bundle/node_modules/d3-format/locale/it-IT.json deleted file mode 100644 index 564ed46e..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/it-IT.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ",", - "thousands": ".", - "grouping": [3], - "currency": ["€", ""] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ja-JP.json b/build_vtk_bundle/node_modules/d3-format/locale/ja-JP.json deleted file mode 100644 index fdcba6c7..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ja-JP.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ".", - "thousands": ",", - "grouping": [3], - "currency": ["", "円"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ko-KR.json b/build_vtk_bundle/node_modules/d3-format/locale/ko-KR.json deleted file mode 100644 index d1d882cd..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ko-KR.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ".", - "thousands": ",", - "grouping": [3], - "currency": ["₩", ""] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/mk-MK.json b/build_vtk_bundle/node_modules/d3-format/locale/mk-MK.json deleted file mode 100644 index 33528b8e..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/mk-MK.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ",", - "thousands": ".", - "grouping": [3], - "currency": ["", "\u00a0ден."] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/nl-NL.json b/build_vtk_bundle/node_modules/d3-format/locale/nl-NL.json deleted file mode 100644 index 7176b373..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/nl-NL.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ",", - "thousands": ".", - "grouping": [3], - "currency": ["€\u00a0", ""] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/pl-PL.json b/build_vtk_bundle/node_modules/d3-format/locale/pl-PL.json deleted file mode 100644 index 12c673fa..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/pl-PL.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ",", - "thousands": ".", - "grouping": [3], - "currency": ["", "zł"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/pt-BR.json b/build_vtk_bundle/node_modules/d3-format/locale/pt-BR.json deleted file mode 100644 index e6705f1e..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/pt-BR.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ",", - "thousands": ".", - "grouping": [3], - "currency": ["R$", ""] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/pt-PT.json b/build_vtk_bundle/node_modules/d3-format/locale/pt-PT.json deleted file mode 100644 index e2218ec9..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/pt-PT.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ",", - "thousands": "\u00a0", - "grouping": [3], - "currency": ["", "\u00a0€"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/ru-RU.json b/build_vtk_bundle/node_modules/d3-format/locale/ru-RU.json deleted file mode 100644 index 1babec35..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/ru-RU.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ",", - "thousands": "\u00a0", - "grouping": [3], - "currency": ["", "\u00a0\u20bd"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/sl-SI.json b/build_vtk_bundle/node_modules/d3-format/locale/sl-SI.json deleted file mode 100644 index a2497624..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/sl-SI.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ",", - "thousands": ".", - "grouping": [3], - "currency": ["", "\u00a0€"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/sv-SE.json b/build_vtk_bundle/node_modules/d3-format/locale/sv-SE.json deleted file mode 100644 index 870eba32..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/sv-SE.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ",", - "thousands": "\u00a0", - "grouping": [3], - "currency": ["", " kr"] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/uk-UA.json b/build_vtk_bundle/node_modules/d3-format/locale/uk-UA.json deleted file mode 100644 index 75cee2d9..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/uk-UA.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ",", - "thousands": "\u00a0", - "grouping": [3], - "currency": ["", "\u00a0₴."] -} diff --git a/build_vtk_bundle/node_modules/d3-format/locale/zh-CN.json b/build_vtk_bundle/node_modules/d3-format/locale/zh-CN.json deleted file mode 100644 index 1ffc7b68..00000000 --- a/build_vtk_bundle/node_modules/d3-format/locale/zh-CN.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "decimal": ".", - "thousands": ",", - "grouping": [3], - "currency": ["¥", ""] -} diff --git a/build_vtk_bundle/node_modules/d3-format/package.json b/build_vtk_bundle/node_modules/d3-format/package.json deleted file mode 100644 index 8865d58a..00000000 --- a/build_vtk_bundle/node_modules/d3-format/package.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "name": "d3-format", - "version": "3.1.0", - "description": "Format numbers for human consumption.", - "homepage": "https://d3js.org/d3-format/", - "repository": { - "type": "git", - "url": "https://github.com/d3/d3-format.git" - }, - "keywords": [ - "d3", - "d3-module", - "format", - "localization" - ], - "license": "ISC", - "author": { - "name": "Mike Bostock", - "url": "http://bost.ocks.org/mike" - }, - "type": "module", - "files": [ - "dist/**/*.js", - "src/**/*.js", - "locale/*.json" - ], - "module": "src/index.js", - "main": "src/index.js", - "jsdelivr": "dist/d3-format.min.js", - "unpkg": "dist/d3-format.min.js", - "exports": { - ".": { - "umd": "./dist/d3-format.min.js", - "default": "./src/index.js" - }, - "./locale/*": "./locale/*.json" - }, - "sideEffects": [ - "./src/defaultLocale.js" - ], - "devDependencies": { - "eslint": "8", - "mocha": "9", - "rollup": "2", - "rollup-plugin-terser": "7" - }, - "scripts": { - "test": "mocha 'test/**/*-test.js' && eslint src test", - "prepublishOnly": "rm -rf dist && yarn test && rollup -c", - "postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../${npm_package_name}/dist/${npm_package_name}.js ${npm_package_name}.v${npm_package_version%%.*}.js && cp ../${npm_package_name}/dist/${npm_package_name}.min.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git add ${npm_package_name}.v${npm_package_version%%.*}.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git commit -m \"${npm_package_name} ${npm_package_version}\" && git push && cd -" - }, - "engines": { - "node": ">=12" - } -} diff --git a/build_vtk_bundle/node_modules/d3-format/src/defaultLocale.js b/build_vtk_bundle/node_modules/d3-format/src/defaultLocale.js deleted file mode 100644 index 2fab0577..00000000 --- a/build_vtk_bundle/node_modules/d3-format/src/defaultLocale.js +++ /dev/null @@ -1,18 +0,0 @@ -import formatLocale from "./locale.js"; - -var locale; -export var format; -export var formatPrefix; - -defaultLocale({ - thousands: ",", - grouping: [3], - currency: ["$", ""] -}); - -export default function defaultLocale(definition) { - locale = formatLocale(definition); - format = locale.format; - formatPrefix = locale.formatPrefix; - return locale; -} diff --git a/build_vtk_bundle/node_modules/d3-format/src/exponent.js b/build_vtk_bundle/node_modules/d3-format/src/exponent.js deleted file mode 100644 index 79b67e3d..00000000 --- a/build_vtk_bundle/node_modules/d3-format/src/exponent.js +++ /dev/null @@ -1,5 +0,0 @@ -import {formatDecimalParts} from "./formatDecimal.js"; - -export default function(x) { - return x = formatDecimalParts(Math.abs(x)), x ? x[1] : NaN; -} diff --git a/build_vtk_bundle/node_modules/d3-format/src/formatDecimal.js b/build_vtk_bundle/node_modules/d3-format/src/formatDecimal.js deleted file mode 100644 index 4b341924..00000000 --- a/build_vtk_bundle/node_modules/d3-format/src/formatDecimal.js +++ /dev/null @@ -1,20 +0,0 @@ -export default function(x) { - return Math.abs(x = Math.round(x)) >= 1e21 - ? x.toLocaleString("en").replace(/,/g, "") - : x.toString(10); -} - -// Computes the decimal coefficient and exponent of the specified number x with -// significant digits p, where x is positive and p is in [1, 21] or undefined. -// For example, formatDecimalParts(1.23) returns ["123", 0]. -export function formatDecimalParts(x, p) { - if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0) return null; // NaN, ±Infinity - var i, coefficient = x.slice(0, i); - - // The string returned by toExponential either has the form \d\.\d+e[-+]\d+ - // (e.g., 1.2e+3) or the form \de[-+]\d+ (e.g., 1e+3). - return [ - coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient, - +x.slice(i + 1) - ]; -} diff --git a/build_vtk_bundle/node_modules/d3-format/src/formatGroup.js b/build_vtk_bundle/node_modules/d3-format/src/formatGroup.js deleted file mode 100644 index ae603d3a..00000000 --- a/build_vtk_bundle/node_modules/d3-format/src/formatGroup.js +++ /dev/null @@ -1,18 +0,0 @@ -export default function(grouping, thousands) { - return function(value, width) { - var i = value.length, - t = [], - j = 0, - g = grouping[0], - length = 0; - - while (i > 0 && g > 0) { - if (length + g + 1 > width) g = Math.max(1, width - length); - t.push(value.substring(i -= g, i + g)); - if ((length += g + 1) > width) break; - g = grouping[j = (j + 1) % grouping.length]; - } - - return t.reverse().join(thousands); - }; -} diff --git a/build_vtk_bundle/node_modules/d3-format/src/formatNumerals.js b/build_vtk_bundle/node_modules/d3-format/src/formatNumerals.js deleted file mode 100644 index 046317e9..00000000 --- a/build_vtk_bundle/node_modules/d3-format/src/formatNumerals.js +++ /dev/null @@ -1,7 +0,0 @@ -export default function(numerals) { - return function(value) { - return value.replace(/[0-9]/g, function(i) { - return numerals[+i]; - }); - }; -} diff --git a/build_vtk_bundle/node_modules/d3-format/src/formatPrefixAuto.js b/build_vtk_bundle/node_modules/d3-format/src/formatPrefixAuto.js deleted file mode 100644 index 907742aa..00000000 --- a/build_vtk_bundle/node_modules/d3-format/src/formatPrefixAuto.js +++ /dev/null @@ -1,16 +0,0 @@ -import {formatDecimalParts} from "./formatDecimal.js"; - -export var prefixExponent; - -export default function(x, p) { - var d = formatDecimalParts(x, p); - if (!d) return x + ""; - var coefficient = d[0], - exponent = d[1], - i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1, - n = coefficient.length; - return i === n ? coefficient - : i > n ? coefficient + new Array(i - n + 1).join("0") - : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) - : "0." + new Array(1 - i).join("0") + formatDecimalParts(x, Math.max(0, p + i - 1))[0]; // less than 1y! -} diff --git a/build_vtk_bundle/node_modules/d3-format/src/formatRounded.js b/build_vtk_bundle/node_modules/d3-format/src/formatRounded.js deleted file mode 100644 index ea5e10da..00000000 --- a/build_vtk_bundle/node_modules/d3-format/src/formatRounded.js +++ /dev/null @@ -1,11 +0,0 @@ -import {formatDecimalParts} from "./formatDecimal.js"; - -export default function(x, p) { - var d = formatDecimalParts(x, p); - if (!d) return x + ""; - var coefficient = d[0], - exponent = d[1]; - return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient - : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1) - : coefficient + new Array(exponent - coefficient.length + 2).join("0"); -} diff --git a/build_vtk_bundle/node_modules/d3-format/src/formatSpecifier.js b/build_vtk_bundle/node_modules/d3-format/src/formatSpecifier.js deleted file mode 100644 index 2dabb2f4..00000000 --- a/build_vtk_bundle/node_modules/d3-format/src/formatSpecifier.js +++ /dev/null @@ -1,47 +0,0 @@ -// [[fill]align][sign][symbol][0][width][,][.precision][~][type] -var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; - -export default function formatSpecifier(specifier) { - if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier); - var match; - return new FormatSpecifier({ - fill: match[1], - align: match[2], - sign: match[3], - symbol: match[4], - zero: match[5], - width: match[6], - comma: match[7], - precision: match[8] && match[8].slice(1), - trim: match[9], - type: match[10] - }); -} - -formatSpecifier.prototype = FormatSpecifier.prototype; // instanceof - -export function FormatSpecifier(specifier) { - this.fill = specifier.fill === undefined ? " " : specifier.fill + ""; - this.align = specifier.align === undefined ? ">" : specifier.align + ""; - this.sign = specifier.sign === undefined ? "-" : specifier.sign + ""; - this.symbol = specifier.symbol === undefined ? "" : specifier.symbol + ""; - this.zero = !!specifier.zero; - this.width = specifier.width === undefined ? undefined : +specifier.width; - this.comma = !!specifier.comma; - this.precision = specifier.precision === undefined ? undefined : +specifier.precision; - this.trim = !!specifier.trim; - this.type = specifier.type === undefined ? "" : specifier.type + ""; -} - -FormatSpecifier.prototype.toString = function() { - return this.fill - + this.align - + this.sign - + this.symbol - + (this.zero ? "0" : "") - + (this.width === undefined ? "" : Math.max(1, this.width | 0)) - + (this.comma ? "," : "") - + (this.precision === undefined ? "" : "." + Math.max(0, this.precision | 0)) - + (this.trim ? "~" : "") - + this.type; -}; diff --git a/build_vtk_bundle/node_modules/d3-format/src/formatTrim.js b/build_vtk_bundle/node_modules/d3-format/src/formatTrim.js deleted file mode 100644 index b0d647b3..00000000 --- a/build_vtk_bundle/node_modules/d3-format/src/formatTrim.js +++ /dev/null @@ -1,11 +0,0 @@ -// Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k. -export default function(s) { - out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) { - switch (s[i]) { - case ".": i0 = i1 = i; break; - case "0": if (i0 === 0) i0 = i; i1 = i; break; - default: if (!+s[i]) break out; if (i0 > 0) i0 = 0; break; - } - } - return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s; -} diff --git a/build_vtk_bundle/node_modules/d3-format/src/formatTypes.js b/build_vtk_bundle/node_modules/d3-format/src/formatTypes.js deleted file mode 100644 index 007db36d..00000000 --- a/build_vtk_bundle/node_modules/d3-format/src/formatTypes.js +++ /dev/null @@ -1,19 +0,0 @@ -import formatDecimal from "./formatDecimal.js"; -import formatPrefixAuto from "./formatPrefixAuto.js"; -import formatRounded from "./formatRounded.js"; - -export default { - "%": (x, p) => (x * 100).toFixed(p), - "b": (x) => Math.round(x).toString(2), - "c": (x) => x + "", - "d": formatDecimal, - "e": (x, p) => x.toExponential(p), - "f": (x, p) => x.toFixed(p), - "g": (x, p) => x.toPrecision(p), - "o": (x) => Math.round(x).toString(8), - "p": (x, p) => formatRounded(x * 100, p), - "r": formatRounded, - "s": formatPrefixAuto, - "X": (x) => Math.round(x).toString(16).toUpperCase(), - "x": (x) => Math.round(x).toString(16) -}; diff --git a/build_vtk_bundle/node_modules/d3-format/src/identity.js b/build_vtk_bundle/node_modules/d3-format/src/identity.js deleted file mode 100644 index b2f94b2e..00000000 --- a/build_vtk_bundle/node_modules/d3-format/src/identity.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function(x) { - return x; -} diff --git a/build_vtk_bundle/node_modules/d3-format/src/index.js b/build_vtk_bundle/node_modules/d3-format/src/index.js deleted file mode 100644 index 22ae6b24..00000000 --- a/build_vtk_bundle/node_modules/d3-format/src/index.js +++ /dev/null @@ -1,6 +0,0 @@ -export {default as formatDefaultLocale, format, formatPrefix} from "./defaultLocale.js"; -export {default as formatLocale} from "./locale.js"; -export {default as formatSpecifier, FormatSpecifier} from "./formatSpecifier.js"; -export {default as precisionFixed} from "./precisionFixed.js"; -export {default as precisionPrefix} from "./precisionPrefix.js"; -export {default as precisionRound} from "./precisionRound.js"; diff --git a/build_vtk_bundle/node_modules/d3-format/src/locale.js b/build_vtk_bundle/node_modules/d3-format/src/locale.js deleted file mode 100644 index 404f9414..00000000 --- a/build_vtk_bundle/node_modules/d3-format/src/locale.js +++ /dev/null @@ -1,148 +0,0 @@ -import exponent from "./exponent.js"; -import formatGroup from "./formatGroup.js"; -import formatNumerals from "./formatNumerals.js"; -import formatSpecifier from "./formatSpecifier.js"; -import formatTrim from "./formatTrim.js"; -import formatTypes from "./formatTypes.js"; -import {prefixExponent} from "./formatPrefixAuto.js"; -import identity from "./identity.js"; - -var map = Array.prototype.map, - prefixes = ["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]; - -export default function(locale) { - var group = locale.grouping === undefined || locale.thousands === undefined ? identity : formatGroup(map.call(locale.grouping, Number), locale.thousands + ""), - currencyPrefix = locale.currency === undefined ? "" : locale.currency[0] + "", - currencySuffix = locale.currency === undefined ? "" : locale.currency[1] + "", - decimal = locale.decimal === undefined ? "." : locale.decimal + "", - numerals = locale.numerals === undefined ? identity : formatNumerals(map.call(locale.numerals, String)), - percent = locale.percent === undefined ? "%" : locale.percent + "", - minus = locale.minus === undefined ? "−" : locale.minus + "", - nan = locale.nan === undefined ? "NaN" : locale.nan + ""; - - function newFormat(specifier) { - specifier = formatSpecifier(specifier); - - var fill = specifier.fill, - align = specifier.align, - sign = specifier.sign, - symbol = specifier.symbol, - zero = specifier.zero, - width = specifier.width, - comma = specifier.comma, - precision = specifier.precision, - trim = specifier.trim, - type = specifier.type; - - // The "n" type is an alias for ",g". - if (type === "n") comma = true, type = "g"; - - // The "" type, and any invalid type, is an alias for ".12~g". - else if (!formatTypes[type]) precision === undefined && (precision = 12), trim = true, type = "g"; - - // If zero fill is specified, padding goes after sign and before digits. - if (zero || (fill === "0" && align === "=")) zero = true, fill = "0", align = "="; - - // Compute the prefix and suffix. - // For SI-prefix, the suffix is lazily computed. - var prefix = symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "", - suffix = symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : ""; - - // What format function should we use? - // Is this an integer type? - // Can this type generate exponential notation? - var formatType = formatTypes[type], - maybeSuffix = /[defgprs%]/.test(type); - - // Set the default precision if not specified, - // or clamp the specified precision to the supported range. - // For significant precision, it must be in [1, 21]. - // For fixed precision, it must be in [0, 20]. - precision = precision === undefined ? 6 - : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision)) - : Math.max(0, Math.min(20, precision)); - - function format(value) { - var valuePrefix = prefix, - valueSuffix = suffix, - i, n, c; - - if (type === "c") { - valueSuffix = formatType(value) + valueSuffix; - value = ""; - } else { - value = +value; - - // Determine the sign. -0 is not less than 0, but 1 / -0 is! - var valueNegative = value < 0 || 1 / value < 0; - - // Perform the initial formatting. - value = isNaN(value) ? nan : formatType(Math.abs(value), precision); - - // Trim insignificant zeros. - if (trim) value = formatTrim(value); - - // If a negative value rounds to zero after formatting, and no explicit positive sign is requested, hide the sign. - if (valueNegative && +value === 0 && sign !== "+") valueNegative = false; - - // Compute the prefix and suffix. - valuePrefix = (valueNegative ? (sign === "(" ? sign : minus) : sign === "-" || sign === "(" ? "" : sign) + valuePrefix; - valueSuffix = (type === "s" ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : ""); - - // Break the formatted value into the integer “value” part that can be - // grouped, and fractional or exponential “suffix” part that is not. - if (maybeSuffix) { - i = -1, n = value.length; - while (++i < n) { - if (c = value.charCodeAt(i), 48 > c || c > 57) { - valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix; - value = value.slice(0, i); - break; - } - } - } - } - - // If the fill character is not "0", grouping is applied before padding. - if (comma && !zero) value = group(value, Infinity); - - // Compute the padding. - var length = valuePrefix.length + value.length + valueSuffix.length, - padding = length < width ? new Array(width - length + 1).join(fill) : ""; - - // If the fill character is "0", grouping is applied after padding. - if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = ""; - - // Reconstruct the final output based on the desired alignment. - switch (align) { - case "<": value = valuePrefix + value + valueSuffix + padding; break; - case "=": value = valuePrefix + padding + value + valueSuffix; break; - case "^": value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); break; - default: value = padding + valuePrefix + value + valueSuffix; break; - } - - return numerals(value); - } - - format.toString = function() { - return specifier + ""; - }; - - return format; - } - - function formatPrefix(specifier, value) { - var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier)), - e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3, - k = Math.pow(10, -e), - prefix = prefixes[8 + e / 3]; - return function(value) { - return f(k * value) + prefix; - }; - } - - return { - format: newFormat, - formatPrefix: formatPrefix - }; -} diff --git a/build_vtk_bundle/node_modules/d3-format/src/precisionFixed.js b/build_vtk_bundle/node_modules/d3-format/src/precisionFixed.js deleted file mode 100644 index 237f53f8..00000000 --- a/build_vtk_bundle/node_modules/d3-format/src/precisionFixed.js +++ /dev/null @@ -1,5 +0,0 @@ -import exponent from "./exponent.js"; - -export default function(step) { - return Math.max(0, -exponent(Math.abs(step))); -} diff --git a/build_vtk_bundle/node_modules/d3-format/src/precisionPrefix.js b/build_vtk_bundle/node_modules/d3-format/src/precisionPrefix.js deleted file mode 100644 index fd6af844..00000000 --- a/build_vtk_bundle/node_modules/d3-format/src/precisionPrefix.js +++ /dev/null @@ -1,5 +0,0 @@ -import exponent from "./exponent.js"; - -export default function(step, value) { - return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3 - exponent(Math.abs(step))); -} diff --git a/build_vtk_bundle/node_modules/d3-format/src/precisionRound.js b/build_vtk_bundle/node_modules/d3-format/src/precisionRound.js deleted file mode 100644 index 5c704370..00000000 --- a/build_vtk_bundle/node_modules/d3-format/src/precisionRound.js +++ /dev/null @@ -1,6 +0,0 @@ -import exponent from "./exponent.js"; - -export default function(step, max) { - step = Math.abs(step), max = Math.abs(max) - step; - return Math.max(0, exponent(max) - exponent(step)) + 1; -} diff --git a/build_vtk_bundle/node_modules/d3-interpolate/LICENSE b/build_vtk_bundle/node_modules/d3-interpolate/LICENSE deleted file mode 100644 index b0145150..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/LICENSE +++ /dev/null @@ -1,13 +0,0 @@ -Copyright 2010-2021 Mike Bostock - -Permission to use, copy, modify, and/or distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright notice -and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS -OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -THIS SOFTWARE. diff --git a/build_vtk_bundle/node_modules/d3-interpolate/README.md b/build_vtk_bundle/node_modules/d3-interpolate/README.md deleted file mode 100644 index f5d82e78..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/README.md +++ /dev/null @@ -1,268 +0,0 @@ -# d3-interpolate - -This module provides a variety of interpolation methods for blending between two values. Values may be numbers, colors, strings, arrays, or even deeply-nested objects. For example: - -```js -const i = d3.interpolateNumber(10, 20); -i(0.0); // 10 -i(0.2); // 12 -i(0.5); // 15 -i(1.0); // 20 -``` - -The returned function `i` is called an *interpolator*. Given a starting value *a* and an ending value *b*, it takes a parameter *t* in the domain [0, 1] and returns the corresponding interpolated value between *a* and *b*. An interpolator typically returns a value equivalent to *a* at *t* = 0 and a value equivalent to *b* at *t* = 1. - -You can interpolate more than just numbers. To find the perceptual midpoint between steelblue and brown: - -```js -d3.interpolateLab("steelblue", "brown")(0.5); // "rgb(142, 92, 109)" -``` - -Here’s a more elaborate example demonstrating type inference used by [interpolate](#interpolate): - -```js -const i = d3.interpolate({colors: ["red", "blue"]}, {colors: ["white", "black"]}); -i(0.0); // {colors: ["rgb(255, 0, 0)", "rgb(0, 0, 255)"]} -i(0.5); // {colors: ["rgb(255, 128, 128)", "rgb(0, 0, 128)"]} -i(1.0); // {colors: ["rgb(255, 255, 255)", "rgb(0, 0, 0)"]} -``` - -Note that the generic value interpolator detects not only nested objects and arrays, but also color strings and numbers embedded in strings! - -## Installing - -If you use npm, `npm install d3-interpolate`. You can also download the [latest release on GitHub](https://github.com/d3/d3-interpolate/releases/latest). For vanilla HTML in modern browsers, import d3-interpolate from Skypack: - -```html - -``` - -For legacy environments, you can load d3-interpolate’s UMD bundle from an npm-based CDN such as jsDelivr; a `d3` global is exported. (If using [color interpolation](#color-spaces), also load [d3-color](https://github.com/d3/d3-color).) - -```html - - - -``` - -## API Reference - -# d3.interpolate(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/value.js), [Examples](https://observablehq.com/@d3/d3-interpolate) - -Returns an interpolator between the two arbitrary values *a* and *b*. The interpolator implementation is based on the type of the end value *b*, using the following algorithm: - -1. If *b* is null, undefined or a boolean, use the constant *b*. -2. If *b* is a number, use [interpolateNumber](#interpolateNumber). -3. If *b* is a [color](https://github.com/d3/d3-color/blob/master/README.md#color) or a string coercible to a color, use [interpolateRgb](#interpolateRgb). -4. If *b* is a [date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date), use [interpolateDate](#interpolateDate). -5. If *b* is a string, use [interpolateString](#interpolateString). -6. If *b* is a [typed array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) of numbers, use [interpolateNumberArray](#interpolateNumberArray). -7. If *b* is a generic [array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray), use [interpolateArray](#interpolateArray). -8. If *b* is coercible to a number, use [interpolateNumber](#interpolateNumber). -9. Use [interpolateObject](#interpolateObject). - -Based on the chosen interpolator, *a* is coerced to the suitable corresponding type. - -# d3.interpolateNumber(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/number.js), [Examples](https://observablehq.com/@d3/d3-interpolatenumber) - -Returns an interpolator between the two numbers *a* and *b*. The returned interpolator is equivalent to: - -```js -function interpolator(t) { - return a * (1 - t) + b * t; -} -``` - -Caution: avoid interpolating to or from the number zero when the interpolator is used to generate a string. When very small values are stringified, they may be converted to scientific notation, which is an invalid attribute or style property value in older browsers. For example, the number `0.0000001` is converted to the string `"1e-7"`. This is particularly noticeable with interpolating opacity. To avoid scientific notation, start or end the transition at 1e-6: the smallest value that is not stringified in scientific notation. - -# d3.interpolateRound(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/round.js), [Examples](https://observablehq.com/@d3/d3-interpolatenumber) - -Returns an interpolator between the two numbers *a* and *b*; the interpolator is similar to [interpolateNumber](#interpolateNumber), except it will round the resulting value to the nearest integer. - -# d3.interpolateString(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/string.js), [Examples](https://observablehq.com/@d3/d3-interpolatestring) - -Returns an interpolator between the two strings *a* and *b*. The string interpolator finds numbers embedded in *a* and *b*, where each number is of the form understood by JavaScript. A few examples of numbers that will be detected within a string: `-1`, `42`, `3.14159`, and `6.0221413e+23`. - -For each number embedded in *b*, the interpolator will attempt to find a corresponding number in *a*. If a corresponding number is found, a numeric interpolator is created using [interpolateNumber](#interpolateNumber). The remaining parts of the string *b* are used as a template: the static parts of the string *b* remain constant for the interpolation, with the interpolated numeric values embedded in the template. - -For example, if *a* is `"300 12px sans-serif"`, and *b* is `"500 36px Comic-Sans"`, two embedded numbers are found. The remaining static parts (of string *b*) are a space between the two numbers (`" "`), and the suffix (`"px Comic-Sans"`). The result of the interpolator at *t* = 0.5 is `"400 24px Comic-Sans"`. - -# d3.interpolateDate(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/date.js), [Examples](https://observablehq.com/@d3/d3-interpolatedate) - -Returns an interpolator between the two [dates](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) *a* and *b*. - -Note: **no defensive copy** of the returned date is created; the same Date instance is returned for every evaluation of the interpolator. No copy is made for performance reasons; interpolators are often part of the inner loop of [animated transitions](https://github.com/d3/d3-transition). - -# d3.interpolateArray(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/array.js), [Examples](https://observablehq.com/@d3/d3-interpolateobject) - -Returns an interpolator between the two arrays *a* and *b*. If *b* is a typed array (e.g., Float64Array), [interpolateNumberArray](#interpolateNumberArray) is called instead. - -Internally, an array template is created that is the same length as *b*. For each element in *b*, if there exists a corresponding element in *a*, a generic interpolator is created for the two elements using [interpolate](#interpolate). If there is no such element, the static value from *b* is used in the template. Then, for the given parameter *t*, the template’s embedded interpolators are evaluated. The updated array template is then returned. - -For example, if *a* is the array `[0, 1]` and *b* is the array `[1, 10, 100]`, then the result of the interpolator for *t* = 0.5 is the array `[0.5, 5.5, 100]`. - -Note: **no defensive copy** of the template array is created; modifications of the returned array may adversely affect subsequent evaluation of the interpolator. No copy is made for performance reasons; interpolators are often part of the inner loop of [animated transitions](https://github.com/d3/d3-transition). - -# d3.interpolateNumberArray(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/numberArray.js), [Examples](https://observablehq.com/@d3/d3-interpolatenumberarray) - -Returns an interpolator between the two arrays of numbers *a* and *b*. Internally, an array template is created that is the same type and length as *b*. For each element in *b*, if there exists a corresponding element in *a*, the values are directly interpolated in the array template. If there is no such element, the static value from *b* is copied. The updated array template is then returned. - -Note: For performance reasons, **no defensive copy** is made of the template array and the arguments *a* and *b*; modifications of these arrays may affect subsequent evaluation of the interpolator. - -# d3.interpolateObject(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/object.js), [Examples](https://observablehq.com/@d3/d3-interpolateobject) - -Returns an interpolator between the two objects *a* and *b*. Internally, an object template is created that has the same properties as *b*. For each property in *b*, if there exists a corresponding property in *a*, a generic interpolator is created for the two elements using [interpolate](#interpolate). If there is no such property, the static value from *b* is used in the template. Then, for the given parameter *t*, the template's embedded interpolators are evaluated and the updated object template is then returned. - -For example, if *a* is the object `{x: 0, y: 1}` and *b* is the object `{x: 1, y: 10, z: 100}`, the result of the interpolator for *t* = 0.5 is the object `{x: 0.5, y: 5.5, z: 100}`. - -Object interpolation is particularly useful for *dataspace interpolation*, where data is interpolated rather than attribute values. For example, you can interpolate an object which describes an arc in a pie chart, and then use [d3.arc](https://github.com/d3/d3-shape/blob/master/README.md#arc) to compute the new SVG path data. - -Note: **no defensive copy** of the template object is created; modifications of the returned object may adversely affect subsequent evaluation of the interpolator. No copy is made for performance reasons; interpolators are often part of the inner loop of [animated transitions](https://github.com/d3/d3-transition). - -# d3.interpolateTransformCss(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/transform/index.js#L62), [Examples](https://observablehq.com/@d3/d3-interpolatetransformcss) - -Returns an interpolator between the two 2D CSS transforms represented by *a* and *b*. Each transform is decomposed to a standard representation of translate, rotate, *x*-skew and scale; these component transformations are then interpolated. This behavior is standardized by CSS: see [matrix decomposition for animation](http://www.w3.org/TR/css3-2d-transforms/#matrix-decomposition). - -# d3.interpolateTransformSvg(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/transform/index.js#L63), [Examples](https://observablehq.com/@d3/d3-interpolatetransformcss) - -Returns an interpolator between the two 2D SVG transforms represented by *a* and *b*. Each transform is decomposed to a standard representation of translate, rotate, *x*-skew and scale; these component transformations are then interpolated. This behavior is standardized by CSS: see [matrix decomposition for animation](http://www.w3.org/TR/css3-2d-transforms/#matrix-decomposition). - -# d3.interpolateZoom(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/zoom.js), [Examples](https://observablehq.com/@d3/d3-interpolatezoom) - -Returns an interpolator between the two views *a* and *b* of a two-dimensional plane, based on [“Smooth and efficient zooming and panning”](http://www.win.tue.nl/~vanwijk/zoompan.pdf) by Jarke J. van Wijk and Wim A.A. Nuij. Each view is defined as an array of three numbers: *cx*, *cy* and *width*. The first two coordinates *cx*, *cy* represent the center of the viewport; the last coordinate *width* represents the size of the viewport. - -The returned interpolator exposes a *duration* property which encodes the recommended transition duration in milliseconds. This duration is based on the path length of the curved trajectory through *x,y* space. If you want a slower or faster transition, multiply this by an arbitrary scale factor (V as described in the original paper). - -# *interpolateZoom*.rho(rho) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/zoom.js) - -Given a [zoom interpolator](#interpolateZoom), returns a new zoom interpolator using the specified curvature *rho*. When *rho* is close to 0, the interpolator is almost linear. The default curvature is sqrt(2). - -# d3.interpolateDiscrete(values) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/discrete.js), [Examples](https://observablehq.com/@d3/d3-interpolatediscrete) - -Returns a discrete interpolator for the given array of *values*. The returned interpolator maps *t* in [0, 1 / *n*) to *values*[0], *t* in [1 / *n*, 2 / *n*) to *values*[1], and so on, where *n* = *values*.length. In effect, this is a lightweight [quantize scale](https://github.com/d3/d3-scale/blob/master/README.md#quantize-scales) with a fixed domain of [0, 1]. - -### Sampling - -# d3.quantize(interpolator, n) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/quantize.js), [Examples](https://observablehq.com/@d3/d3-quantize) - -Returns *n* uniformly-spaced samples from the specified *interpolator*, where *n* is an integer greater than one. The first sample is always at *t* = 0, and the last sample is always at *t* = 1. This can be useful in generating a fixed number of samples from a given interpolator, such as to derive the range of a [quantize scale](https://github.com/d3/d3-scale/blob/master/README.md#quantize-scales) from a [continuous interpolator](https://github.com/d3/d3-scale-chromatic/blob/master/README.md#interpolateWarm). - -Caution: this method will not work with interpolators that do not return defensive copies of their output, such as [d3.interpolateArray](#interpolateArray), [d3.interpolateDate](#interpolateDate) and [d3.interpolateObject](#interpolateObject). For those interpolators, you must wrap the interpolator and create a copy for each returned value. - -### Color Spaces - -# d3.interpolateRgb(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/rgb.js), [Examples](https://observablehq.com/@d3/working-with-color) - -rgb - -Or, with a corrected [gamma](#interpolate_gamma) of 2.2: - -rgbGamma - -Returns an RGB color space interpolator between the two colors *a* and *b* with a configurable [gamma](#interpolate_gamma). If the gamma is not specified, it defaults to 1.0. The colors *a* and *b* need not be in RGB; they will be converted to RGB using [d3.rgb](https://github.com/d3/d3-color/blob/master/README.md#rgb). The return value of the interpolator is an RGB string. - -# d3.interpolateRgbBasis(colors) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/rgb.js#L54), [Examples](https://observablehq.com/@d3/working-with-color) - -Returns a uniform nonrational B-spline interpolator through the specified array of *colors*, which are converted to [RGB color space](https://github.com/d3/d3-color/blob/master/README.md#rgb). Implicit control points are generated such that the interpolator returns *colors*[0] at *t* = 0 and *colors*[*colors*.length - 1] at *t* = 1. Opacity interpolation is not currently supported. See also [d3.interpolateBasis](#interpolateBasis), and see [d3-scale-chromatic](https://github.com/d3/d3-scale-chromatic) for examples. - -# d3.interpolateRgbBasisClosed(colors) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/rgb.js#L55), [Examples](https://observablehq.com/@d3/working-with-color) - -Returns a uniform nonrational B-spline interpolator through the specified array of *colors*, which are converted to [RGB color space](https://github.com/d3/d3-color/blob/master/README.md#rgb). The control points are implicitly repeated such that the resulting spline has cyclical C² continuity when repeated around *t* in [0,1]; this is useful, for example, to create cyclical color scales. Opacity interpolation is not currently supported. See also [d3.interpolateBasisClosed](#interpolateBasisClosed), and see [d3-scale-chromatic](https://github.com/d3/d3-scale-chromatic) for examples. - -# d3.interpolateHsl(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/hsl.js), [Examples](https://observablehq.com/@d3/working-with-color) - -hsl - -Returns an HSL color space interpolator between the two colors *a* and *b*. The colors *a* and *b* need not be in HSL; they will be converted to HSL using [d3.hsl](https://github.com/d3/d3-color/blob/master/README.md#hsl). If either color’s hue or saturation is NaN, the opposing color’s channel value is used. The shortest path between hues is used. The return value of the interpolator is an RGB string. - -# d3.interpolateHslLong(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/hsl.js#L21), [Examples](https://observablehq.com/@d3/working-with-color) - -hslLong - -Like [interpolateHsl](#interpolateHsl), but does not use the shortest path between hues. - -# d3.interpolateLab(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/lab.js), [Examples](https://observablehq.com/@d3/working-with-color) - -lab - -Returns a [CIELAB color space](https://en.wikipedia.org/wiki/Lab_color_space#CIELAB) interpolator between the two colors *a* and *b*. The colors *a* and *b* need not be in CIELAB; they will be converted to CIELAB using [d3.lab](https://github.com/d3/d3-color/blob/master/README.md#lab). The return value of the interpolator is an RGB string. - -# d3.interpolateHcl(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/hcl.js), [Examples](https://observablehq.com/@d3/working-with-color) - -hcl - -Returns a [CIELChab color space](https://en.wikipedia.org/wiki/CIELAB_color_space#Cylindrical_representation:_CIELCh_or_CIEHLC) interpolator between the two colors *a* and *b*. The colors *a* and *b* need not be in CIELChab; they will be converted to CIELChab using [d3.hcl](https://github.com/d3/d3-color/blob/master/README.md#hcl). If either color’s hue or chroma is NaN, the opposing color’s channel value is used. The shortest path between hues is used. The return value of the interpolator is an RGB string. - -# d3.interpolateHclLong(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/hcl.js#L21), [Examples](https://observablehq.com/@d3/working-with-color) - -hclLong - -Like [interpolateHcl](#interpolateHcl), but does not use the shortest path between hues. - -# d3.interpolateCubehelix(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/cubehelix.js), [Examples](https://observablehq.com/@d3/working-with-color) - -cubehelix - -Or, with a [gamma](#interpolate_gamma) of 3.0 to emphasize high-intensity values: - -cubehelixGamma - -Returns a Cubehelix color space interpolator between the two colors *a* and *b* using a configurable [gamma](#interpolate_gamma). If the gamma is not specified, it defaults to 1.0. The colors *a* and *b* need not be in Cubehelix; they will be converted to Cubehelix using [d3.cubehelix](https://github.com/d3/d3-color/blob/master/README.md#cubehelix). If either color’s hue or saturation is NaN, the opposing color’s channel value is used. The shortest path between hues is used. The return value of the interpolator is an RGB string. - -# d3.interpolateCubehelixLong(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/cubehelix.js#L29), [Examples](https://observablehq.com/@d3/working-with-color) - -cubehelixLong - -Or, with a [gamma](#interpolate_gamma) of 3.0 to emphasize high-intensity values: - -cubehelixGammaLong - -Like [interpolateCubehelix](#interpolateCubehelix), but does not use the shortest path between hues. - -# interpolate.gamma(gamma) - -Given that *interpolate* is one of [interpolateRgb](#interpolateRgb), [interpolateCubehelix](#interpolateCubehelix) or [interpolateCubehelixLong](#interpolateCubehelixLong), returns a new interpolator factory of the same type using the specified *gamma*. For example, to interpolate from purple to orange with a gamma of 2.2 in RGB space: - -```js -const interpolator = d3.interpolateRgb.gamma(2.2)("purple", "orange"); -``` - -See Eric Brasseur’s article, [Gamma error in picture scaling](http://www.ericbrasseur.org/gamma.html), for more on gamma correction. - -# d3.interpolateHue(a, b) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/hue.js), [Examples](https://observablehq.com/@d3/working-with-color) - -Returns an interpolator between the two hue angles *a* and *b*. If either hue is NaN, the opposing value is used. The shortest path between hues is used. The return value of the interpolator is a number in [0, 360). - -### Splines - -Whereas standard interpolators blend from a starting value *a* at *t* = 0 to an ending value *b* at *t* = 1, spline interpolators smoothly blend multiple input values for *t* in [0,1] using piecewise polynomial functions. Only cubic uniform nonrational [B-splines](https://en.wikipedia.org/wiki/B-spline) are currently supported, also known as basis splines. - -# d3.interpolateBasis(values) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/basis.js), [Examples](https://observablehq.com/@d3/d3-interpolatebasis) - -Returns a uniform nonrational B-spline interpolator through the specified array of *values*, which must be numbers. Implicit control points are generated such that the interpolator returns *values*[0] at *t* = 0 and *values*[*values*.length - 1] at *t* = 1. See also [d3.curveBasis](https://github.com/d3/d3-shape/blob/master/README.md#curveBasis). - -# d3.interpolateBasisClosed(values) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/basisClosed.js), [Examples](https://observablehq.com/@d3/d3-interpolatebasis) - -Returns a uniform nonrational B-spline interpolator through the specified array of *values*, which must be numbers. The control points are implicitly repeated such that the resulting one-dimensional spline has cyclical C² continuity when repeated around *t* in [0,1]. See also [d3.curveBasisClosed](https://github.com/d3/d3-shape/blob/master/README.md#curveBasisClosed). - -### Piecewise - -# d3.piecewise([interpolate, ]values) · [Source](https://github.com/d3/d3-interpolate/blob/master/src/piecewise.js), [Examples](https://observablehq.com/@d3/d3-piecewise) - -Returns a piecewise interpolator, composing interpolators for each adjacent pair of *values*. The returned interpolator maps *t* in [0, 1 / (*n* - 1)] to *interpolate*(*values*[0], *values*[1]), *t* in [1 / (*n* - 1), 2 / (*n* - 1)] to *interpolate*(*values*[1], *values*[2]), and so on, where *n* = *values*.length. In effect, this is a lightweight [linear scale](https://github.com/d3/d3-scale/blob/master/README.md#linear-scales). For example, to blend through red, green and blue: - -```js -const interpolate = d3.piecewise(d3.interpolateRgb.gamma(2.2), ["red", "green", "blue"]); -``` - -If *interpolate* is not specified, defaults to [d3.interpolate](#interpolate). diff --git a/build_vtk_bundle/node_modules/d3-interpolate/package.json b/build_vtk_bundle/node_modules/d3-interpolate/package.json deleted file mode 100644 index eddaac85..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/package.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "name": "d3-interpolate", - "version": "3.0.1", - "description": "Interpolate numbers, colors, strings, arrays, objects, whatever!", - "homepage": "https://d3js.org/d3-interpolate/", - "repository": { - "type": "git", - "url": "https://github.com/d3/d3-interpolate.git" - }, - "keywords": [ - "d3", - "d3-module", - "interpolate", - "interpolation", - "color" - ], - "license": "ISC", - "author": { - "name": "Mike Bostock", - "url": "http://bost.ocks.org/mike" - }, - "type": "module", - "files": [ - "dist/**/*.js", - "src/**/*.js" - ], - "module": "src/index.js", - "main": "src/index.js", - "jsdelivr": "dist/d3-interpolate.min.js", - "unpkg": "dist/d3-interpolate.min.js", - "exports": { - "umd": "./dist/d3-interpolate.min.js", - "default": "./src/index.js" - }, - "sideEffects": false, - "dependencies": { - "d3-color": "1 - 3" - }, - "devDependencies": { - "eslint": "7", - "mocha": "8", - "rollup": "2", - "rollup-plugin-terser": "7" - }, - "scripts": { - "test": "mocha 'test/**/*-test.js' && eslint src test", - "prepublishOnly": "rm -rf dist && yarn test && rollup -c", - "postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../${npm_package_name}/dist/${npm_package_name}.js ${npm_package_name}.v${npm_package_version%%.*}.js && cp ../${npm_package_name}/dist/${npm_package_name}.min.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git add ${npm_package_name}.v${npm_package_version%%.*}.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git commit -m \"${npm_package_name} ${npm_package_version}\" && git push && cd -" - }, - "engines": { - "node": ">=12" - } -} diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/array.js b/build_vtk_bundle/node_modules/d3-interpolate/src/array.js deleted file mode 100644 index 89f77225..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/array.js +++ /dev/null @@ -1,22 +0,0 @@ -import value from "./value.js"; -import numberArray, {isNumberArray} from "./numberArray.js"; - -export default function(a, b) { - return (isNumberArray(b) ? numberArray : genericArray)(a, b); -} - -export function genericArray(a, b) { - var nb = b ? b.length : 0, - na = a ? Math.min(nb, a.length) : 0, - x = new Array(na), - c = new Array(nb), - i; - - for (i = 0; i < na; ++i) x[i] = value(a[i], b[i]); - for (; i < nb; ++i) c[i] = b[i]; - - return function(t) { - for (i = 0; i < na; ++i) c[i] = x[i](t); - return c; - }; -} diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/basis.js b/build_vtk_bundle/node_modules/d3-interpolate/src/basis.js deleted file mode 100644 index 0d853f05..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/basis.js +++ /dev/null @@ -1,19 +0,0 @@ -export function basis(t1, v0, v1, v2, v3) { - var t2 = t1 * t1, t3 = t2 * t1; - return ((1 - 3 * t1 + 3 * t2 - t3) * v0 - + (4 - 6 * t2 + 3 * t3) * v1 - + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2 - + t3 * v3) / 6; -} - -export default function(values) { - var n = values.length - 1; - return function(t) { - var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n), - v1 = values[i], - v2 = values[i + 1], - v0 = i > 0 ? values[i - 1] : 2 * v1 - v2, - v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1; - return basis((t - i / n) * n, v0, v1, v2, v3); - }; -} diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/basisClosed.js b/build_vtk_bundle/node_modules/d3-interpolate/src/basisClosed.js deleted file mode 100644 index 2639d928..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/basisClosed.js +++ /dev/null @@ -1,13 +0,0 @@ -import {basis} from "./basis.js"; - -export default function(values) { - var n = values.length; - return function(t) { - var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n), - v0 = values[(i + n - 1) % n], - v1 = values[i % n], - v2 = values[(i + 1) % n], - v3 = values[(i + 2) % n]; - return basis((t - i / n) * n, v0, v1, v2, v3); - }; -} diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/color.js b/build_vtk_bundle/node_modules/d3-interpolate/src/color.js deleted file mode 100644 index 4630fb2f..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/color.js +++ /dev/null @@ -1,29 +0,0 @@ -import constant from "./constant.js"; - -function linear(a, d) { - return function(t) { - return a + t * d; - }; -} - -function exponential(a, b, y) { - return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) { - return Math.pow(a + t * b, y); - }; -} - -export function hue(a, b) { - var d = b - a; - return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a); -} - -export function gamma(y) { - return (y = +y) === 1 ? nogamma : function(a, b) { - return b - a ? exponential(a, b, y) : constant(isNaN(a) ? b : a); - }; -} - -export default function nogamma(a, b) { - var d = b - a; - return d ? linear(a, d) : constant(isNaN(a) ? b : a); -} diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/constant.js b/build_vtk_bundle/node_modules/d3-interpolate/src/constant.js deleted file mode 100644 index 3487c0dd..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/constant.js +++ /dev/null @@ -1 +0,0 @@ -export default x => () => x; diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/cubehelix.js b/build_vtk_bundle/node_modules/d3-interpolate/src/cubehelix.js deleted file mode 100644 index 2c4f64bd..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/cubehelix.js +++ /dev/null @@ -1,29 +0,0 @@ -import {cubehelix as colorCubehelix} from "d3-color"; -import color, {hue} from "./color.js"; - -function cubehelix(hue) { - return (function cubehelixGamma(y) { - y = +y; - - function cubehelix(start, end) { - var h = hue((start = colorCubehelix(start)).h, (end = colorCubehelix(end)).h), - s = color(start.s, end.s), - l = color(start.l, end.l), - opacity = color(start.opacity, end.opacity); - return function(t) { - start.h = h(t); - start.s = s(t); - start.l = l(Math.pow(t, y)); - start.opacity = opacity(t); - return start + ""; - }; - } - - cubehelix.gamma = cubehelixGamma; - - return cubehelix; - })(1); -} - -export default cubehelix(hue); -export var cubehelixLong = cubehelix(color); diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/date.js b/build_vtk_bundle/node_modules/d3-interpolate/src/date.js deleted file mode 100644 index cdfbea79..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/date.js +++ /dev/null @@ -1,6 +0,0 @@ -export default function(a, b) { - var d = new Date; - return a = +a, b = +b, function(t) { - return d.setTime(a * (1 - t) + b * t), d; - }; -} diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/discrete.js b/build_vtk_bundle/node_modules/d3-interpolate/src/discrete.js deleted file mode 100644 index b3d1e3b6..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/discrete.js +++ /dev/null @@ -1,6 +0,0 @@ -export default function(range) { - var n = range.length; - return function(t) { - return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))]; - }; -} diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/hcl.js b/build_vtk_bundle/node_modules/d3-interpolate/src/hcl.js deleted file mode 100644 index 03125802..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/hcl.js +++ /dev/null @@ -1,21 +0,0 @@ -import {hcl as colorHcl} from "d3-color"; -import color, {hue} from "./color.js"; - -function hcl(hue) { - return function(start, end) { - var h = hue((start = colorHcl(start)).h, (end = colorHcl(end)).h), - c = color(start.c, end.c), - l = color(start.l, end.l), - opacity = color(start.opacity, end.opacity); - return function(t) { - start.h = h(t); - start.c = c(t); - start.l = l(t); - start.opacity = opacity(t); - return start + ""; - }; - } -} - -export default hcl(hue); -export var hclLong = hcl(color); diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/hsl.js b/build_vtk_bundle/node_modules/d3-interpolate/src/hsl.js deleted file mode 100644 index 2f78a901..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/hsl.js +++ /dev/null @@ -1,21 +0,0 @@ -import {hsl as colorHsl} from "d3-color"; -import color, {hue} from "./color.js"; - -function hsl(hue) { - return function(start, end) { - var h = hue((start = colorHsl(start)).h, (end = colorHsl(end)).h), - s = color(start.s, end.s), - l = color(start.l, end.l), - opacity = color(start.opacity, end.opacity); - return function(t) { - start.h = h(t); - start.s = s(t); - start.l = l(t); - start.opacity = opacity(t); - return start + ""; - }; - } -} - -export default hsl(hue); -export var hslLong = hsl(color); diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/hue.js b/build_vtk_bundle/node_modules/d3-interpolate/src/hue.js deleted file mode 100644 index 5d8d4b9c..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/hue.js +++ /dev/null @@ -1,9 +0,0 @@ -import {hue} from "./color.js"; - -export default function(a, b) { - var i = hue(+a, +b); - return function(t) { - var x = i(t); - return x - 360 * Math.floor(x / 360); - }; -} diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/index.js b/build_vtk_bundle/node_modules/d3-interpolate/src/index.js deleted file mode 100644 index b4dce7d5..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/index.js +++ /dev/null @@ -1,21 +0,0 @@ -export {default as interpolate} from "./value.js"; -export {default as interpolateArray} from "./array.js"; -export {default as interpolateBasis} from "./basis.js"; -export {default as interpolateBasisClosed} from "./basisClosed.js"; -export {default as interpolateDate} from "./date.js"; -export {default as interpolateDiscrete} from "./discrete.js"; -export {default as interpolateHue} from "./hue.js"; -export {default as interpolateNumber} from "./number.js"; -export {default as interpolateNumberArray} from "./numberArray.js"; -export {default as interpolateObject} from "./object.js"; -export {default as interpolateRound} from "./round.js"; -export {default as interpolateString} from "./string.js"; -export {interpolateTransformCss, interpolateTransformSvg} from "./transform/index.js"; -export {default as interpolateZoom} from "./zoom.js"; -export {default as interpolateRgb, rgbBasis as interpolateRgbBasis, rgbBasisClosed as interpolateRgbBasisClosed} from "./rgb.js"; -export {default as interpolateHsl, hslLong as interpolateHslLong} from "./hsl.js"; -export {default as interpolateLab} from "./lab.js"; -export {default as interpolateHcl, hclLong as interpolateHclLong} from "./hcl.js"; -export {default as interpolateCubehelix, cubehelixLong as interpolateCubehelixLong} from "./cubehelix.js"; -export {default as piecewise} from "./piecewise.js"; -export {default as quantize} from "./quantize.js"; diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/lab.js b/build_vtk_bundle/node_modules/d3-interpolate/src/lab.js deleted file mode 100644 index 8fbf7f35..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/lab.js +++ /dev/null @@ -1,16 +0,0 @@ -import {lab as colorLab} from "d3-color"; -import color from "./color.js"; - -export default function lab(start, end) { - var l = color((start = colorLab(start)).l, (end = colorLab(end)).l), - a = color(start.a, end.a), - b = color(start.b, end.b), - opacity = color(start.opacity, end.opacity); - return function(t) { - start.l = l(t); - start.a = a(t); - start.b = b(t); - start.opacity = opacity(t); - return start + ""; - }; -} diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/number.js b/build_vtk_bundle/node_modules/d3-interpolate/src/number.js deleted file mode 100644 index 837b13db..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/number.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function(a, b) { - return a = +a, b = +b, function(t) { - return a * (1 - t) + b * t; - }; -} diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/numberArray.js b/build_vtk_bundle/node_modules/d3-interpolate/src/numberArray.js deleted file mode 100644 index 4081086c..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/numberArray.js +++ /dev/null @@ -1,14 +0,0 @@ -export default function(a, b) { - if (!b) b = []; - var n = a ? Math.min(b.length, a.length) : 0, - c = b.slice(), - i; - return function(t) { - for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t; - return c; - }; -} - -export function isNumberArray(x) { - return ArrayBuffer.isView(x) && !(x instanceof DataView); -} diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/object.js b/build_vtk_bundle/node_modules/d3-interpolate/src/object.js deleted file mode 100644 index b521c337..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/object.js +++ /dev/null @@ -1,23 +0,0 @@ -import value from "./value.js"; - -export default function(a, b) { - var i = {}, - c = {}, - k; - - if (a === null || typeof a !== "object") a = {}; - if (b === null || typeof b !== "object") b = {}; - - for (k in b) { - if (k in a) { - i[k] = value(a[k], b[k]); - } else { - c[k] = b[k]; - } - } - - return function(t) { - for (k in i) c[k] = i[k](t); - return c; - }; -} diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/piecewise.js b/build_vtk_bundle/node_modules/d3-interpolate/src/piecewise.js deleted file mode 100644 index 8b568c5f..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/piecewise.js +++ /dev/null @@ -1,11 +0,0 @@ -import {default as value} from "./value.js"; - -export default function piecewise(interpolate, values) { - if (values === undefined) values = interpolate, interpolate = value; - var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n); - while (i < n) I[i] = interpolate(v, v = values[++i]); - return function(t) { - var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n))); - return I[i](t - i); - }; -} diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/quantize.js b/build_vtk_bundle/node_modules/d3-interpolate/src/quantize.js deleted file mode 100644 index d7c23e69..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/quantize.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function(interpolator, n) { - var samples = new Array(n); - for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1)); - return samples; -} diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/rgb.js b/build_vtk_bundle/node_modules/d3-interpolate/src/rgb.js deleted file mode 100644 index 495c1f8c..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/rgb.js +++ /dev/null @@ -1,55 +0,0 @@ -import {rgb as colorRgb} from "d3-color"; -import basis from "./basis.js"; -import basisClosed from "./basisClosed.js"; -import nogamma, {gamma} from "./color.js"; - -export default (function rgbGamma(y) { - var color = gamma(y); - - function rgb(start, end) { - var r = color((start = colorRgb(start)).r, (end = colorRgb(end)).r), - g = color(start.g, end.g), - b = color(start.b, end.b), - opacity = nogamma(start.opacity, end.opacity); - return function(t) { - start.r = r(t); - start.g = g(t); - start.b = b(t); - start.opacity = opacity(t); - return start + ""; - }; - } - - rgb.gamma = rgbGamma; - - return rgb; -})(1); - -function rgbSpline(spline) { - return function(colors) { - var n = colors.length, - r = new Array(n), - g = new Array(n), - b = new Array(n), - i, color; - for (i = 0; i < n; ++i) { - color = colorRgb(colors[i]); - r[i] = color.r || 0; - g[i] = color.g || 0; - b[i] = color.b || 0; - } - r = spline(r); - g = spline(g); - b = spline(b); - color.opacity = 1; - return function(t) { - color.r = r(t); - color.g = g(t); - color.b = b(t); - return color + ""; - }; - }; -} - -export var rgbBasis = rgbSpline(basis); -export var rgbBasisClosed = rgbSpline(basisClosed); diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/round.js b/build_vtk_bundle/node_modules/d3-interpolate/src/round.js deleted file mode 100644 index 2635d28c..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/round.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function(a, b) { - return a = +a, b = +b, function(t) { - return Math.round(a * (1 - t) + b * t); - }; -} diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/string.js b/build_vtk_bundle/node_modules/d3-interpolate/src/string.js deleted file mode 100644 index 7f04d2d0..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/string.js +++ /dev/null @@ -1,64 +0,0 @@ -import number from "./number.js"; - -var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, - reB = new RegExp(reA.source, "g"); - -function zero(b) { - return function() { - return b; - }; -} - -function one(b) { - return function(t) { - return b(t) + ""; - }; -} - -export default function(a, b) { - var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b - am, // current match in a - bm, // current match in b - bs, // string preceding current number in b, if any - i = -1, // index in s - s = [], // string constants and placeholders - q = []; // number interpolators - - // Coerce inputs to strings. - a = a + "", b = b + ""; - - // Interpolate pairs of numbers in a & b. - while ((am = reA.exec(a)) - && (bm = reB.exec(b))) { - if ((bs = bm.index) > bi) { // a string precedes the next number in b - bs = b.slice(bi, bs); - if (s[i]) s[i] += bs; // coalesce with previous string - else s[++i] = bs; - } - if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match - if (s[i]) s[i] += bm; // coalesce with previous string - else s[++i] = bm; - } else { // interpolate non-matching numbers - s[++i] = null; - q.push({i: i, x: number(am, bm)}); - } - bi = reB.lastIndex; - } - - // Add remains of b. - if (bi < b.length) { - bs = b.slice(bi); - if (s[i]) s[i] += bs; // coalesce with previous string - else s[++i] = bs; - } - - // Special optimization for only a single match. - // Otherwise, interpolate each of the numbers and rejoin the string. - return s.length < 2 ? (q[0] - ? one(q[0].x) - : zero(b)) - : (b = q.length, function(t) { - for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t); - return s.join(""); - }); -} diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/transform/decompose.js b/build_vtk_bundle/node_modules/d3-interpolate/src/transform/decompose.js deleted file mode 100644 index 3535f231..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/transform/decompose.js +++ /dev/null @@ -1,26 +0,0 @@ -var degrees = 180 / Math.PI; - -export var identity = { - translateX: 0, - translateY: 0, - rotate: 0, - skewX: 0, - scaleX: 1, - scaleY: 1 -}; - -export default function(a, b, c, d, e, f) { - var scaleX, scaleY, skewX; - if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX; - if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX; - if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY; - if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX; - return { - translateX: e, - translateY: f, - rotate: Math.atan2(b, a) * degrees, - skewX: Math.atan(skewX) * degrees, - scaleX: scaleX, - scaleY: scaleY - }; -} diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/transform/index.js b/build_vtk_bundle/node_modules/d3-interpolate/src/transform/index.js deleted file mode 100644 index 5383d5f8..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/transform/index.js +++ /dev/null @@ -1,63 +0,0 @@ -import number from "../number.js"; -import {parseCss, parseSvg} from "./parse.js"; - -function interpolateTransform(parse, pxComma, pxParen, degParen) { - - function pop(s) { - return s.length ? s.pop() + " " : ""; - } - - function translate(xa, ya, xb, yb, s, q) { - if (xa !== xb || ya !== yb) { - var i = s.push("translate(", null, pxComma, null, pxParen); - q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)}); - } else if (xb || yb) { - s.push("translate(" + xb + pxComma + yb + pxParen); - } - } - - function rotate(a, b, s, q) { - if (a !== b) { - if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path - q.push({i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: number(a, b)}); - } else if (b) { - s.push(pop(s) + "rotate(" + b + degParen); - } - } - - function skewX(a, b, s, q) { - if (a !== b) { - q.push({i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: number(a, b)}); - } else if (b) { - s.push(pop(s) + "skewX(" + b + degParen); - } - } - - function scale(xa, ya, xb, yb, s, q) { - if (xa !== xb || ya !== yb) { - var i = s.push(pop(s) + "scale(", null, ",", null, ")"); - q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)}); - } else if (xb !== 1 || yb !== 1) { - s.push(pop(s) + "scale(" + xb + "," + yb + ")"); - } - } - - return function(a, b) { - var s = [], // string constants and placeholders - q = []; // number interpolators - a = parse(a), b = parse(b); - translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q); - rotate(a.rotate, b.rotate, s, q); - skewX(a.skewX, b.skewX, s, q); - scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q); - a = b = null; // gc - return function(t) { - var i = -1, n = q.length, o; - while (++i < n) s[(o = q[i]).i] = o.x(t); - return s.join(""); - }; - }; -} - -export var interpolateTransformCss = interpolateTransform(parseCss, "px, ", "px)", "deg)"); -export var interpolateTransformSvg = interpolateTransform(parseSvg, ", ", ")", ")"); diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/transform/parse.js b/build_vtk_bundle/node_modules/d3-interpolate/src/transform/parse.js deleted file mode 100644 index c62088e0..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/transform/parse.js +++ /dev/null @@ -1,18 +0,0 @@ -import decompose, {identity} from "./decompose.js"; - -var svgNode; - -/* eslint-disable no-undef */ -export function parseCss(value) { - const m = new (typeof DOMMatrix === "function" ? DOMMatrix : WebKitCSSMatrix)(value + ""); - return m.isIdentity ? identity : decompose(m.a, m.b, m.c, m.d, m.e, m.f); -} - -export function parseSvg(value) { - if (value == null) return identity; - if (!svgNode) svgNode = document.createElementNS("http://www.w3.org/2000/svg", "g"); - svgNode.setAttribute("transform", value); - if (!(value = svgNode.transform.baseVal.consolidate())) return identity; - value = value.matrix; - return decompose(value.a, value.b, value.c, value.d, value.e, value.f); -} diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/value.js b/build_vtk_bundle/node_modules/d3-interpolate/src/value.js deleted file mode 100644 index 6a67ac4a..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/value.js +++ /dev/null @@ -1,22 +0,0 @@ -import {color} from "d3-color"; -import rgb from "./rgb.js"; -import {genericArray} from "./array.js"; -import date from "./date.js"; -import number from "./number.js"; -import object from "./object.js"; -import string from "./string.js"; -import constant from "./constant.js"; -import numberArray, {isNumberArray} from "./numberArray.js"; - -export default function(a, b) { - var t = typeof b, c; - return b == null || t === "boolean" ? constant(b) - : (t === "number" ? number - : t === "string" ? ((c = color(b)) ? (b = c, rgb) : string) - : b instanceof color ? rgb - : b instanceof Date ? date - : isNumberArray(b) ? numberArray - : Array.isArray(b) ? genericArray - : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object - : number)(a, b); -} diff --git a/build_vtk_bundle/node_modules/d3-interpolate/src/zoom.js b/build_vtk_bundle/node_modules/d3-interpolate/src/zoom.js deleted file mode 100644 index f2756026..00000000 --- a/build_vtk_bundle/node_modules/d3-interpolate/src/zoom.js +++ /dev/null @@ -1,71 +0,0 @@ -var epsilon2 = 1e-12; - -function cosh(x) { - return ((x = Math.exp(x)) + 1 / x) / 2; -} - -function sinh(x) { - return ((x = Math.exp(x)) - 1 / x) / 2; -} - -function tanh(x) { - return ((x = Math.exp(2 * x)) - 1) / (x + 1); -} - -export default (function zoomRho(rho, rho2, rho4) { - - // p0 = [ux0, uy0, w0] - // p1 = [ux1, uy1, w1] - function zoom(p0, p1) { - var ux0 = p0[0], uy0 = p0[1], w0 = p0[2], - ux1 = p1[0], uy1 = p1[1], w1 = p1[2], - dx = ux1 - ux0, - dy = uy1 - uy0, - d2 = dx * dx + dy * dy, - i, - S; - - // Special case for u0 ≅ u1. - if (d2 < epsilon2) { - S = Math.log(w1 / w0) / rho; - i = function(t) { - return [ - ux0 + t * dx, - uy0 + t * dy, - w0 * Math.exp(rho * t * S) - ]; - } - } - - // General case. - else { - var d1 = Math.sqrt(d2), - b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1), - b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1), - r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0), - r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1); - S = (r1 - r0) / rho; - i = function(t) { - var s = t * S, - coshr0 = cosh(r0), - u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0)); - return [ - ux0 + u * dx, - uy0 + u * dy, - w0 * coshr0 / cosh(rho * s + r0) - ]; - } - } - - i.duration = S * 1000 * rho / Math.SQRT2; - - return i; - } - - zoom.rho = function(_) { - var _1 = Math.max(1e-3, +_), _2 = _1 * _1, _4 = _2 * _2; - return zoomRho(_1, _2, _4); - }; - - return zoom; -})(Math.SQRT2, 2, 4); diff --git a/build_vtk_bundle/node_modules/d3-scale/LICENSE b/build_vtk_bundle/node_modules/d3-scale/LICENSE deleted file mode 100644 index b0145150..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/LICENSE +++ /dev/null @@ -1,13 +0,0 @@ -Copyright 2010-2021 Mike Bostock - -Permission to use, copy, modify, and/or distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright notice -and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS -OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -THIS SOFTWARE. diff --git a/build_vtk_bundle/node_modules/d3-scale/README.md b/build_vtk_bundle/node_modules/d3-scale/README.md deleted file mode 100644 index 9024eaf9..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/README.md +++ /dev/null @@ -1,1003 +0,0 @@ -# d3-scale - -Scales are a convenient abstraction for a fundamental task in visualization: mapping a dimension of abstract data to a visual representation. Although most often used for position-encoding quantitative data, such as mapping a measurement in meters to a position in pixels for dots in a scatterplot, scales can represent virtually any visual encoding, such as diverging colors, stroke widths, or symbol size. Scales can also be used with virtually any type of data, such as named categorical data or discrete data that requires sensible breaks. - -For [continuous](#continuous-scales) quantitative data, you typically want a [linear scale](#linear-scales). (For time series data, a [time scale](#time-scales).) If the distribution calls for it, consider transforming data using a [power](#power-scales) or [log](#log-scales) scale. A [quantize scale](#quantize-scales) may aid differentiation by rounding continuous data to a fixed set of discrete values; similarly, a [quantile scale](#quantile-scales) computes quantiles from a sample population, and a [threshold scale](#threshold-scales) allows you to specify arbitrary breaks in continuous data. - -For discrete ordinal (ordered) or categorical (unordered) data, an [ordinal scale](#ordinal-scales) specifies an explicit mapping from a set of data values to a corresponding set of visual attributes (such as colors). The related [band](#band-scales) and [point](#point-scales) scales are useful for position-encoding ordinal data, such as bars in a bar chart or dots in an categorical scatterplot. - -This repository does not provide color schemes; see [d3-scale-chromatic](https://github.com/d3/d3-scale-chromatic) for color schemes designed to work with d3-scale. - -Scales have no intrinsic visual representation. However, most scales can [generate](#continuous_ticks) and [format](#continuous_tickFormat) ticks for reference marks to aid in the construction of axes. - -For a longer introduction, see these recommended tutorials: - -* [Introducing d3-scale](https://medium.com/@mbostock/introducing-d3-scale-61980c51545f) by Mike Bostock - -* Chapter 7. Scales of [*Interactive Data Visualization for the Web*](http://alignedleft.com/work/d3-book) by Scott Murray - -* [d3: scales, and color.](https://jckr.github.io/blog/2011/08/11/d3-scales-and-color/) by Jérôme Cukier - -## Installing - -If you use npm, `npm install d3-scale`. You can also download the [latest release on GitHub](https://github.com/d3/d3-scale/releases/latest). For vanilla HTML in modern browsers, import d3-scale from Skypack: - -```html - -``` - -For legacy environments, you can load d3-scale’s UMD bundle from an npm-based CDN such as jsDelivr; a `d3` global is exported: - -```html - - - - - - - - -``` - -(You can omit d3-time and d3-time-format if you’re not using [d3.scaleTime](#scaleTime) or [d3.scaleUtc](#scaleUtc).) - -## API Reference - -* [Continuous](#continuous-scales) ([Linear](#linear-scales), [Power](#power-scales), [Log](#log-scales), [Identity](#identity-scales), [Time](#time-scales), [Radial](#radial-scales)) -* [Sequential](#sequential-scales) -* [Diverging](#diverging-scales) -* [Quantize](#quantize-scales) -* [Quantile](#quantile-scales) -* [Threshold](#threshold-scales) -* [Ordinal](#ordinal-scales) ([Band](#band-scales), [Point](#point-scales)) - -### Continuous Scales - -Continuous scales map a continuous, quantitative input [domain](#continuous_domain) to a continuous output [range](#continuous_range). If the range is also numeric, the mapping may be [inverted](#continuous_invert). A continuous scale is not constructed directly; instead, try a [linear](#linear-scales), [power](#power-scales), [log](#log-scales), [identity](#identity-scales), [radial](#radial-scales), [time](#time-scales) or [sequential color](#sequential-scales) scale. - -# continuous(value) · [Source](https://github.com/d3/d3-scale/blob/master/src/continuous.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -Given a *value* from the [domain](#continuous_domain), returns the corresponding value from the [range](#continuous_range). If the given *value* is outside the domain, and [clamping](#continuous_clamp) is not enabled, the mapping may be extrapolated such that the returned value is outside the range. For example, to apply a position encoding: - -```js -var x = d3.scaleLinear() - .domain([10, 130]) - .range([0, 960]); - -x(20); // 80 -x(50); // 320 -``` - -Or to apply a color encoding: - -```js -var color = d3.scaleLinear() - .domain([10, 100]) - .range(["brown", "steelblue"]); - -color(20); // "#9a3439" -color(50); // "#7b5167" -``` - -Or, in shorthand: - -```js -var x = d3.scaleLinear([10, 130], [0, 960]); -var color = d3.scaleLinear([10, 100], ["brown", "steelblue"]); -``` - -# continuous.invert(value) · [Source](https://github.com/d3/d3-scale/blob/master/src/continuous.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -Given a *value* from the [range](#continuous_range), returns the corresponding value from the [domain](#continuous_domain). Inversion is useful for interaction, say to determine the data value corresponding to the position of the mouse. For example, to invert a position encoding: - -```js -var x = d3.scaleLinear() - .domain([10, 130]) - .range([0, 960]); - -x.invert(80); // 20 -x.invert(320); // 50 -``` - -If the given *value* is outside the range, and [clamping](#continuous_clamp) is not enabled, the mapping may be extrapolated such that the returned value is outside the domain. This method is only supported if the range is numeric. If the range is not numeric, returns NaN. - -For a valid value *y* in the range, continuous(continuous.invert(y)) approximately equals *y*; similarly, for a valid value *x* in the domain, continuous.invert(continuous(x)) approximately equals *x*. The scale and its inverse may not be exact due to the limitations of floating point precision. - -# continuous.domain([domain]) · [Source](https://github.com/d3/d3-scale/blob/master/src/continuous.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -If *domain* is specified, sets the scale’s domain to the specified array of numbers. The array must contain two or more elements. If the elements in the given array are not numbers, they will be coerced to numbers. If *domain* is not specified, returns a copy of the scale’s current domain. - -Although continuous scales typically have two values each in their domain and range, specifying more than two values produces a piecewise scale. For example, to create a [diverging color scale](#diverging-scales) that interpolates between white and red for negative values, and white and green for positive values, say: - -```js -var color = d3.scaleLinear() - .domain([-1, 0, 1]) - .range(["red", "white", "green"]); - -color(-0.5); // "rgb(255, 128, 128)" -color(+0.5); // "rgb(128, 192, 128)" -``` - -Internally, a piecewise scale performs a [binary search](https://github.com/d3/d3-array/blob/master/README.md#bisect) for the range interpolator corresponding to the given domain value. Thus, the domain must be in ascending or descending order. If the domain and range have different lengths *N* and *M*, only the first *min(N,M)* elements in each are observed. - -# continuous.range([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/continuous.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -If *range* is specified, sets the scale’s range to the specified array of values. The array must contain two or more elements. Unlike the [domain](#continuous_domain), elements in the given array need not be numbers; any value that is supported by the underlying [interpolator](#continuous_interpolate) will work, though note that numeric ranges are required for [invert](#continuous_invert). If *range* is not specified, returns a copy of the scale’s current range. See [*continuous*.interpolate](#continuous_interpolate) for more examples. - -# continuous.rangeRound([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/continuous.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -Sets the scale’s [*range*](#continuous_range) to the specified array of values while also setting the scale’s [interpolator](#continuous_interpolate) to [interpolateRound](https://github.com/d3/d3-interpolate/blob/master/README.md#interpolateRound). This is a convenience method equivalent to: - -```js -continuous - .range(range) - .interpolate(d3.interpolateRound); -``` - -The rounding interpolator is sometimes useful for avoiding antialiasing artifacts, though also consider the [shape-rendering](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering) “crispEdges” styles. Note that this interpolator can only be used with numeric ranges. - -# continuous.clamp(clamp) · [Source](https://github.com/d3/d3-scale/blob/master/src/continuous.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -If *clamp* is specified, enables or disables clamping accordingly. If clamping is disabled and the scale is passed a value outside the [domain](#continuous_domain), the scale may return a value outside the [range](#continuous_range) through extrapolation. If clamping is enabled, the return value of the scale is always within the scale’s range. Clamping similarly applies to [*continuous*.invert](#continuous_invert). For example: - -```js -var x = d3.scaleLinear() - .domain([10, 130]) - .range([0, 960]); - -x(-10); // -160, outside range -x.invert(-160); // -10, outside domain - -x.clamp(true); -x(-10); // 0, clamped to range -x.invert(-160); // 10, clamped to domain -``` - -If *clamp* is not specified, returns whether or not the scale currently clamps values to within the range. - -# continuous.unknown([value]) · [Source](https://github.com/d3/d3-scale/blob/master/src/continuous.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -If *value* is specified, sets the output value of the scale for undefined (or NaN) input values and returns this scale. If *value* is not specified, returns the current unknown value, which defaults to undefined. - -# continuous.interpolate(interpolate) · [Source](https://github.com/d3/d3-scale/blob/master/src/continuous.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -If *interpolate* is specified, sets the scale’s [range](#continuous_range) interpolator factory. This interpolator factory is used to create interpolators for each adjacent pair of values from the range; these interpolators then map a normalized domain parameter *t* in [0, 1] to the corresponding value in the range. If *factory* is not specified, returns the scale’s current interpolator factory, which defaults to [d3.interpolate](https://github.com/d3/d3-interpolate/blob/master/README.md#interpolate). See [d3-interpolate](https://github.com/d3/d3-interpolate) for more interpolators. - -For example, consider a diverging color scale with three colors in the range: - -```js -var color = d3.scaleLinear() - .domain([-100, 0, +100]) - .range(["red", "white", "green"]); -``` - -Two interpolators are created internally by the scale, equivalent to: - -```js -var i0 = d3.interpolate("red", "white"), - i1 = d3.interpolate("white", "green"); -``` - -A common reason to specify a custom interpolator is to change the color space of interpolation. For example, to use [HCL](https://github.com/d3/d3-interpolate/blob/master/README.md#interpolateHcl): - -```js -var color = d3.scaleLinear() - .domain([10, 100]) - .range(["brown", "steelblue"]) - .interpolate(d3.interpolateHcl); -``` - -Or for [Cubehelix](https://github.com/d3/d3-interpolate/blob/master/README.md#interpolateCubehelix) with a custom gamma: - -```js -var color = d3.scaleLinear() - .domain([10, 100]) - .range(["brown", "steelblue"]) - .interpolate(d3.interpolateCubehelix.gamma(3)); -``` - -Note: the [default interpolator](https://github.com/d3/d3-interpolate/blob/master/README.md#interpolate) **may reuse return values**. For example, if the range values are objects, then the value interpolator always returns the same object, modifying it in-place. If the scale is used to set an attribute or style, this is typically acceptable (and desirable for performance); however, if you need to store the scale’s return value, you must specify your own interpolator or make a copy as appropriate. - -# continuous.ticks([count]) - -Returns approximately *count* representative values from the scale’s [domain](#continuous_domain). If *count* is not specified, it defaults to 10. The returned tick values are uniformly spaced, have human-readable values (such as multiples of powers of 10), and are guaranteed to be within the extent of the domain. Ticks are often used to display reference lines, or tick marks, in conjunction with the visualized data. The specified *count* is only a hint; the scale may return more or fewer values depending on the domain. See also d3-array’s [ticks](https://github.com/d3/d3-array/blob/master/README.md#ticks). - -# continuous.tickFormat([count[, specifier]]) · [Source](https://github.com/d3/d3-scale/blob/master/src/tickFormat.js), [Examples](https://observablehq.com/@d3/scale-ticks) - -Returns a [number format](https://github.com/d3/d3-format) function suitable for displaying a tick value, automatically computing the appropriate precision based on the fixed interval between tick values. The specified *count* should have the same value as the count that is used to generate the [tick values](#continuous_ticks). - -An optional *specifier* allows a [custom format](https://github.com/d3/d3-format/blob/master/README.md#locale_format) where the precision of the format is automatically set by the scale as appropriate for the tick interval. For example, to format percentage change, you might say: - -```js -var x = d3.scaleLinear() - .domain([-1, 1]) - .range([0, 960]); - -var ticks = x.ticks(5), - tickFormat = x.tickFormat(5, "+%"); - -ticks.map(tickFormat); // ["-100%", "-50%", "+0%", "+50%", "+100%"] -``` - -If *specifier* uses the format type `s`, the scale will return a [SI-prefix format](https://github.com/d3/d3-format/blob/master/README.md#locale_formatPrefix) based on the largest value in the domain. If the *specifier* already specifies a precision, this method is equivalent to [*locale*.format](https://github.com/d3/d3-format/blob/master/README.md#locale_format). - -See also [d3.tickFormat](#tickFormat). - -# continuous.nice([count]) · [Source](https://github.com/d3/d3-scale/blob/master/src/nice.js), [Examples](https://observablehq.com/@d3/d3-scalelinear) - -Extends the [domain](#continuous_domain) so that it starts and ends on nice round values. This method typically modifies the scale’s domain, and may only extend the bounds to the nearest round value. An optional tick *count* argument allows greater control over the step size used to extend the bounds, guaranteeing that the returned [ticks](#continuous_ticks) will exactly cover the domain. Nicing is useful if the domain is computed from data, say using [extent](https://github.com/d3/d3-array/blob/master/README.md#extent), and may be irregular. For example, for a domain of [0.201479…, 0.996679…], a nice domain might be [0.2, 1.0]. If the domain has more than two values, nicing the domain only affects the first and last value. See also d3-array’s [tickStep](https://github.com/d3/d3-array/blob/master/README.md#tickStep). - -Nicing a scale only modifies the current domain; it does not automatically nice domains that are subsequently set using [*continuous*.domain](#continuous_domain). You must re-nice the scale after setting the new domain, if desired. - -# continuous.copy() · [Source](https://github.com/d3/d3-scale/blob/master/src/continuous.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -Returns an exact copy of this scale. Changes to this scale will not affect the returned scale, and vice versa. - -# d3.tickFormat(start, stop, count[, specifier]) · [Source](https://github.com/d3/d3-scale/blob/master/src/tickFormat.js), [Examples](https://observablehq.com/@d3/scale-ticks) - -Returns a [number format](https://github.com/d3/d3-format) function suitable for displaying a tick value, automatically computing the appropriate precision based on the fixed interval between tick values, as determined by [d3.tickStep](https://github.com/d3/d3-array/blob/master/README.md#tickStep). - -An optional *specifier* allows a [custom format](https://github.com/d3/d3-format/blob/master/README.md#locale_format) where the precision of the format is automatically set by the scale as appropriate for the tick interval. For example, to format percentage change, you might say: - -```js -var tickFormat = d3.tickFormat(-1, 1, 5, "+%"); - -tickFormat(-0.5); // "-50%" -``` - -If *specifier* uses the format type `s`, the scale will return a [SI-prefix format](https://github.com/d3/d3-format/blob/master/README.md#locale_formatPrefix) based on the larger absolute value of *start* and *stop*. If the *specifier* already specifies a precision, this method is equivalent to [*locale*.format](https://github.com/d3/d3-format/blob/master/README.md#locale_format). - -#### Linear Scales - -# d3.scaleLinear([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/linear.js), [Examples](https://observablehq.com/@d3/d3-scalelinear) - -Constructs a new [continuous scale](#continuous-scales) with the specified [domain](#continuous_domain) and [range](#continuous_range), the [default](https://github.com/d3/d3-interpolate/blob/master/README.md#interpolate) [interpolator](#continuous_interpolate) and [clamping](#continuous_clamp) disabled. If either *domain* or *range* are not specified, each defaults to [0, 1]. Linear scales are a good default choice for continuous quantitative data because they preserve proportional differences. Each range value *y* can be expressed as a function of the domain value *x*: *y* = *mx* + *b*. - -#### Power Scales - -Power scales are similar to [linear scales](#linear-scales), except an exponential transform is applied to the input domain value before the output range value is computed. Each range value *y* can be expressed as a function of the domain value *x*: *y* = *mx^k* + *b*, where *k* is the [exponent](#pow_exponent) value. Power scales also support negative domain values, in which case the input value and the resulting output value are multiplied by -1. - -# d3.scalePow([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/pow.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -Constructs a new [continuous scale](#continuous-scales) with the specified [domain](#continuous_domain) and [range](#continuous_range), the [exponent](#pow_exponent) 1, the [default](https://github.com/d3/d3-interpolate/blob/master/README.md#interpolate) [interpolator](#continuous_interpolate) and [clamping](#continuous_clamp) disabled. If either *domain* or *range* are not specified, each defaults to [0, 1]. (Note that this is effectively a [linear](#linear-scales) scale until you set a different exponent.) - -# pow(value) · [Source](https://github.com/d3/d3-scale/blob/master/src/pow.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -See [*continuous*](#_continuous). - -# pow.invert(value) · [Source](https://github.com/d3/d3-scale/blob/master/src/pow.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -See [*continuous*.invert](#continuous_invert). - -# pow.exponent([exponent]) · [Source](https://github.com/d3/d3-scale/blob/master/src/pow.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -If *exponent* is specified, sets the current exponent to the given numeric value. If *exponent* is not specified, returns the current exponent, which defaults to 1. (Note that this is effectively a [linear](#linear-scales) scale until you set a different exponent.) - -# pow.domain([domain]) · [Source](https://github.com/d3/d3-scale/blob/master/src/pow.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -See [*continuous*.domain](#continuous_domain). - -# pow.range([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/pow.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -See [*continuous*.range](#continuous_range). - -# pow.rangeRound([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/pow.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -See [*continuous*.rangeRound](#continuous_rangeRound). - -# pow.clamp(clamp) · [Source](https://github.com/d3/d3-scale/blob/master/src/pow.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -See [*continuous*.clamp](#continuous_clamp). - -# pow.interpolate(interpolate) · [Source](https://github.com/d3/d3-scale/blob/master/src/pow.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -See [*continuous*.interpolate](#continuous_interpolate). - -# pow.ticks([count]) · [Source](https://github.com/d3/d3-scale/blob/master/src/pow.js), [Examples](https://observablehq.com/@d3/scale-ticks) - -See [*continuous*.ticks](#continuous_ticks). - -# pow.tickFormat([count[, specifier]]) · [Source](https://github.com/d3/d3-scale/blob/master/src/pow.js), [Examples](https://observablehq.com/@d3/scale-ticks) - -See [*continuous*.tickFormat](#continuous_tickFormat). - -# pow.nice([count]) · [Source](https://github.com/d3/d3-scale/blob/master/src/pow.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -See [*continuous*.nice](#continuous_nice). - -# pow.copy() · [Source](https://github.com/d3/d3-scale/blob/master/src/pow.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -See [*continuous*.copy](#continuous_copy). - -# d3.scaleSqrt([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/pow.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -Constructs a new [continuous](#continuous-scales) [power scale](#power-scales) with the specified [domain](#continuous_domain) and [range](#continuous_range), the [exponent](#pow_exponent) 0.5, the [default](https://github.com/d3/d3-interpolate/blob/master/README.md#interpolate) [interpolator](#continuous_interpolate) and [clamping](#continuous_clamp) disabled. If either *domain* or *range* are not specified, each defaults to [0, 1]. This is a convenience method equivalent to `d3.scalePow(…).exponent(0.5)`. - -#### Log Scales - -Log scales are similar to [linear scales](#linear-scales), except a logarithmic transform is applied to the input domain value before the output range value is computed. The mapping to the range value *y* can be expressed as a function of the domain value *x*: *y* = *m* log(x) + *b*. - -As log(0) = -∞, a log scale domain must be **strictly-positive or strictly-negative**; the domain must not include or cross zero. A log scale with a positive domain has a well-defined behavior for positive values, and a log scale with a negative domain has a well-defined behavior for negative values. (For a negative domain, input and output values are implicitly multiplied by -1.) The behavior of the scale is undefined if you pass a negative value to a log scale with a positive domain or vice versa. - -# d3.scaleLog([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/log.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -Constructs a new [continuous scale](#continuous-scales) with the specified [domain](#log_domain) and [range](#log_range), the [base](#log_base) 10, the [default](https://github.com/d3/d3-interpolate/blob/master/README.md#interpolate) [interpolator](#log_interpolate) and [clamping](#log_clamp) disabled. If *domain* is not specified, it defaults to [1, 10]. If *range* is not specified, it defaults to [0, 1]. - -# log(value) · [Source](https://github.com/d3/d3-scale/blob/master/src/log.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -See [*continuous*](#_continuous). - -# log.invert(value) · [Source](https://github.com/d3/d3-scale/blob/master/src/log.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -See [*continuous*.invert](#continuous_invert). - -# log.base([base]) · [Source](https://github.com/d3/d3-scale/blob/master/src/log.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -If *base* is specified, sets the base for this logarithmic scale to the specified value. If *base* is not specified, returns the current base, which defaults to 10. - -# log.domain([domain]) · [Source](https://github.com/d3/d3-scale/blob/master/src/log.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -See [*continuous*.domain](#continuous_domain). - -# log.range([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/continuous.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -See [*continuous*.range](#continuous_range). - -# log.rangeRound([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/log.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -See [*continuous*.rangeRound](#continuous_rangeRound). - -# log.clamp(clamp) · [Source](https://github.com/d3/d3-scale/blob/master/src/log.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -See [*continuous*.clamp](#continuous_clamp). - -# log.interpolate(interpolate) · [Source](https://github.com/d3/d3-scale/blob/master/src/log.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -See [*continuous*.interpolate](#continuous_interpolate). - -# log.ticks([count]) · [Source](https://github.com/d3/d3-scale/blob/master/src/log.js), [Examples](https://observablehq.com/@d3/scale-ticks) - -Like [*continuous*.ticks](#continuous_ticks), but customized for a log scale. If the [base](#log_base) is an integer, the returned ticks are uniformly spaced within each integer power of base; otherwise, one tick per power of base is returned. The returned ticks are guaranteed to be within the extent of the domain. If the orders of magnitude in the [domain](#log_domain) is greater than *count*, then at most one tick per power is returned. Otherwise, the tick values are unfiltered, but note that you can use [*log*.tickFormat](#log_tickFormat) to filter the display of tick labels. If *count* is not specified, it defaults to 10. - -# log.tickFormat([count[, specifier]]) · [Source](https://github.com/d3/d3-scale/blob/master/src/log.js), [Examples](https://observablehq.com/@d3/scale-ticks) - -Like [*continuous*.tickFormat](#continuous_tickFormat), but customized for a log scale. The specified *count* typically has the same value as the count that is used to generate the [tick values](#continuous_ticks). If there are too many ticks, the formatter may return the empty string for some of the tick labels; however, note that the ticks are still shown. To disable filtering, specify a *count* of Infinity. When specifying a count, you may also provide a format *specifier* or format function. For example, to get a tick formatter that will display 20 ticks of a currency, say `log.tickFormat(20, "$,f")`. If the specifier does not have a defined precision, the precision will be set automatically by the scale, returning the appropriate format. This provides a convenient way of specifying a format whose precision will be automatically set by the scale. - -# log.nice() · [Source](https://github.com/d3/d3-scale/blob/master/src/log.js), [Examples](https://observablehq.com/@d3/d3-scalelinear) - -Like [*continuous*.nice](#continuous_nice), except extends the domain to integer powers of [base](#log_base). For example, for a domain of [0.201479…, 0.996679…], and base 10, the nice domain is [0.1, 1]. If the domain has more than two values, nicing the domain only affects the first and last value. - -# log.copy() · [Source](https://github.com/d3/d3-scale/blob/master/src/log.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -See [*continuous*.copy](#continuous_copy). - -#### Symlog Scales - -See [A bi-symmetric log transformation for wide-range data](https://www.researchgate.net/profile/John_Webber4/publication/233967063_A_bi-symmetric_log_transformation_for_wide-range_data/links/0fcfd50d791c85082e000000.pdf) by Webber for more. - -# d3.scaleSymlog([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/symlog.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -Constructs a new [continuous scale](#continuous-scales) with the specified [domain](#continuous_domain) and [range](#continuous_range), the [constant](#symlog_constant) 1, the [default](https://github.com/d3/d3-interpolate/blob/master/README.md#interpolate) [interpolator](#continuous_interpolate) and [clamping](#continuous_clamp) disabled. If *domain* is not specified, it defaults to [0, 1]. If *range* is not specified, it defaults to [0, 1]. - -# symlog.constant([constant]) · [Source](https://github.com/d3/d3-scale/blob/master/src/symlog.js), [Examples](https://observablehq.com/@d3/continuous-scales) - -If *constant* is specified, sets the symlog constant to the specified number and returns this scale; otherwise returns the current value of the symlog constant, which defaults to 1. See “A bi-symmetric log transformation for wide-range data” by Webber for more. - -#### Identity Scales - -Identity scales are a special case of [linear scales](#linear-scales) where the domain and range are identical; the scale and its invert method are thus the identity function. These scales are occasionally useful when working with pixel coordinates, say in conjunction with an axis. Identity scales do not support [rangeRound](#continuous_rangeRound), [clamp](#continuous_clamp) or [interpolate](#continuous_interpolate). - -# d3.scaleIdentity([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/identity.js), [Examples](https://observablehq.com/@d3/d3-scalelinear) - -Constructs a new identity scale with the specified [domain](#continuous_domain) and [range](#continuous_range). If *range* is not specified, it defaults to [0, 1]. - -#### Radial Scales - -Radial scales are a variant of [linear scales](#linear-scales) where the range is internally squared so that an input value corresponds linearly to the squared output value. These scales are useful when you want the input value to correspond to the area of a graphical mark and the mark is specified by radius, as in a radial bar chart. Radial scales do not support [interpolate](#continuous_interpolate). - -# d3.scaleRadial([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/radial.js), [Examples](https://observablehq.com/@d3/radial-stacked-bar-chart) - -Constructs a new radial scale with the specified [domain](#continuous_domain) and [range](#continuous_range). If *domain* or *range* is not specified, each defaults to [0, 1]. - -#### Time Scales - -Time scales are a variant of [linear scales](#linear-scales) that have a temporal domain: domain values are coerced to [dates](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date) rather than numbers, and [invert](#continuous_invert) likewise returns a date. Time scales implement [ticks](#time_ticks) based on [calendar intervals](https://github.com/d3/d3-time), taking the pain out of generating axes for temporal domains. - -For example, to create a position encoding: - -```js -var x = d3.scaleTime() - .domain([new Date(2000, 0, 1), new Date(2000, 0, 2)]) - .range([0, 960]); - -x(new Date(2000, 0, 1, 5)); // 200 -x(new Date(2000, 0, 1, 16)); // 640 -x.invert(200); // Sat Jan 01 2000 05:00:00 GMT-0800 (PST) -x.invert(640); // Sat Jan 01 2000 16:00:00 GMT-0800 (PST) -``` - -For a valid value *y* in the range, time(time.invert(y)) equals *y*; similarly, for a valid value *x* in the domain, time.invert(time(x)) equals *x*. The invert method is useful for interaction, say to determine the value in the domain that corresponds to the pixel location under the mouse. - -# d3.scaleTime([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/time.js), [Examples](https://observablehq.com/@d3/d3-scaletime) - -Constructs a new time scale with the specified [domain](#time_domain) and [range](#time_range), the [default](https://github.com/d3/d3-interpolate/blob/master/README.md#interpolate) [interpolator](#time_interpolate) and [clamping](#time_clamp) disabled. If *domain* is not specified, it defaults to [2000-01-01, 2000-01-02]. If *range* is not specified, it defaults to [0, 1]. - -# time(value) · [Source](https://github.com/d3/d3-scale/blob/master/src/time.js), [Examples](https://observablehq.com/@d3/d3-scaletime) - -See [*continuous*](#_continuous). - -# time.invert(value) · [Source](https://github.com/d3/d3-scale/blob/master/src/time.js), [Examples](https://observablehq.com/@d3/d3-scaletime) - -See [*continuous*.invert](#continuous_invert). - -# time.domain([domain]) · [Source](https://github.com/d3/d3-scale/blob/master/src/time.js), [Examples](https://observablehq.com/@d3/d3-scaletime) - -See [*continuous*.domain](#continuous_domain). - -# time.range([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/time.js), [Examples](https://observablehq.com/@d3/d3-scaletime) - -See [*continuous*.range](#continuous_range). - -# time.rangeRound([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/time.js), [Examples](https://observablehq.com/@d3/d3-scaletime) - -See [*continuous*.rangeRound](#continuous_rangeRound). - -# time.clamp(clamp) · [Source](https://github.com/d3/d3-scale/blob/master/src/time.js), [Examples](https://observablehq.com/@d3/d3-scaletime) - -See [*continuous*.clamp](#continuous_clamp). - -# time.interpolate(interpolate) · [Source](https://github.com/d3/d3-scale/blob/master/src/time.js), [Examples](https://observablehq.com/@d3/d3-scaletime) - -See [*continuous*.interpolate](#continuous_interpolate). - -# time.ticks([count]) · [Source](https://github.com/d3/d3-scale/blob/master/src/time.js), [Examples](https://observablehq.com/@d3/d3-scaletime) -
# time.ticks([interval]) - -Returns representative dates from the scale’s [domain](#time_domain). The returned tick values are uniformly-spaced (mostly), have sensible values (such as every day at midnight), and are guaranteed to be within the extent of the domain. Ticks are often used to display reference lines, or tick marks, in conjunction with the visualized data. - -An optional *count* may be specified to affect how many ticks are generated. If *count* is not specified, it defaults to 10. The specified *count* is only a hint; the scale may return more or fewer values depending on the domain. For example, to create ten default ticks, say: - -```js -var x = d3.scaleTime(); - -x.ticks(10); -// [Sat Jan 01 2000 00:00:00 GMT-0800 (PST), -// Sat Jan 01 2000 03:00:00 GMT-0800 (PST), -// Sat Jan 01 2000 06:00:00 GMT-0800 (PST), -// Sat Jan 01 2000 09:00:00 GMT-0800 (PST), -// Sat Jan 01 2000 12:00:00 GMT-0800 (PST), -// Sat Jan 01 2000 15:00:00 GMT-0800 (PST), -// Sat Jan 01 2000 18:00:00 GMT-0800 (PST), -// Sat Jan 01 2000 21:00:00 GMT-0800 (PST), -// Sun Jan 02 2000 00:00:00 GMT-0800 (PST)] -``` - -The following time intervals are considered for automatic ticks: - -* 1-, 5-, 15- and 30-second. -* 1-, 5-, 15- and 30-minute. -* 1-, 3-, 6- and 12-hour. -* 1- and 2-day. -* 1-week. -* 1- and 3-month. -* 1-year. - -In lieu of a *count*, a [time *interval*](https://github.com/d3/d3-time/blob/master/README.md#intervals) may be explicitly specified. To prune the generated ticks for a given time *interval*, use [*interval*.every](https://github.com/d3/d3-time/blob/master/README.md#interval_every). For example, to generate ticks at 15-[minute](https://github.com/d3/d3-time/blob/master/README.md#minute) intervals: - -```js -var x = d3.scaleTime() - .domain([new Date(2000, 0, 1, 0), new Date(2000, 0, 1, 2)]); - -x.ticks(d3.timeMinute.every(15)); -// [Sat Jan 01 2000 00:00:00 GMT-0800 (PST), -// Sat Jan 01 2000 00:15:00 GMT-0800 (PST), -// Sat Jan 01 2000 00:30:00 GMT-0800 (PST), -// Sat Jan 01 2000 00:45:00 GMT-0800 (PST), -// Sat Jan 01 2000 01:00:00 GMT-0800 (PST), -// Sat Jan 01 2000 01:15:00 GMT-0800 (PST), -// Sat Jan 01 2000 01:30:00 GMT-0800 (PST), -// Sat Jan 01 2000 01:45:00 GMT-0800 (PST), -// Sat Jan 01 2000 02:00:00 GMT-0800 (PST)] -``` - -Alternatively, pass a test function to [*interval*.filter](https://github.com/d3/d3-time/blob/master/README.md#interval_filter): - -```js -x.ticks(d3.timeMinute.filter(function(d) { - return d.getMinutes() % 15 === 0; -})); -``` - -Note: in some cases, such as with day ticks, specifying a *step* can result in irregular spacing of ticks because time intervals have varying length. - -# time.tickFormat([count[, specifier]]) · [Source](https://github.com/d3/d3-scale/blob/master/src/time.js), [Examples](https://observablehq.com/@d3/scale-ticks) -
# time.tickFormat([interval[, specifier]]) - -Returns a time format function suitable for displaying [tick](#time_ticks) values. The specified *count* or *interval* is currently ignored, but is accepted for consistency with other scales such as [*continuous*.tickFormat](#continuous_tickFormat). If a format *specifier* is specified, this method is equivalent to [format](https://github.com/d3/d3-time-format/blob/master/README.md#format). If *specifier* is not specified, the default time format is returned. The default multi-scale time format chooses a human-readable representation based on the specified date as follows: - -* `%Y` - for year boundaries, such as `2011`. -* `%B` - for month boundaries, such as `February`. -* `%b %d` - for week boundaries, such as `Feb 06`. -* `%a %d` - for day boundaries, such as `Mon 07`. -* `%I %p` - for hour boundaries, such as `01 AM`. -* `%I:%M` - for minute boundaries, such as `01:23`. -* `:%S` - for second boundaries, such as `:45`. -* `.%L` - milliseconds for all other times, such as `.012`. - -Although somewhat unusual, this default behavior has the benefit of providing both local and global context: for example, formatting a sequence of ticks as [11 PM, Mon 07, 01 AM] reveals information about hours, dates, and day simultaneously, rather than just the hours [11 PM, 12 AM, 01 AM]. See [d3-time-format](https://github.com/d3/d3-time-format) if you’d like to roll your own conditional time format. - -# time.nice([count]) · [Source](https://github.com/d3/d3-scale/blob/master/src/time.js), [Examples](https://observablehq.com/@d3/d3-scaletime) -
# time.nice([interval]) - -Extends the [domain](#time_domain) so that it starts and ends on nice round values. This method typically modifies the scale’s domain, and may only extend the bounds to the nearest round value. See [*continuous*.nice](#continuous_nice) for more. - -An optional tick *count* argument allows greater control over the step size used to extend the bounds, guaranteeing that the returned [ticks](#time_ticks) will exactly cover the domain. Alternatively, a [time *interval*](https://github.com/d3/d3-time/blob/master/README.md#intervals) may be specified to explicitly set the ticks. If an *interval* is specified, an optional *step* may also be specified to skip some ticks. For example, `time.nice(d3.timeSecond.every(10))` will extend the domain to an even ten seconds (0, 10, 20, etc.). See [*time*.ticks](#time_ticks) and [*interval*.every](https://github.com/d3/d3-time/blob/master/README.md#interval_every) for further detail. - -Nicing is useful if the domain is computed from data, say using [extent](https://github.com/d3/d3-array/blob/master/README.md#extent), and may be irregular. For example, for a domain of [2009-07-13T00:02, 2009-07-13T23:48], the nice domain is [2009-07-13, 2009-07-14]. If the domain has more than two values, nicing the domain only affects the first and last value. - -# time.copy() · [Source](https://github.com/d3/d3-scale/blob/master/src/time.js), [Examples](https://observablehq.com/@d3/d3-scaletime) - -See [*continuous*.copy](#continuous_copy). - -# d3.scaleUtc([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/utcTime.js), [Examples](https://observablehq.com/@d3/d3-scaletime) - -Equivalent to [scaleTime](#scaleTime), but the returned time scale operates in [Coordinated Universal Time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time) rather than local time. - -### Sequential Scales - -Sequential scales, like [diverging scales](#diverging-scales), are similar to [continuous scales](#continuous-scales) in that they map a continuous, numeric input domain to a continuous output range. However, unlike continuous scales, the input domain and output range of a sequential scale always has exactly two elements, and the output range is typically specified as an interpolator rather than an array of values. These scales do not expose [invert](#continuous_invert) and [interpolate](#continuous_interpolate) methods. - -# d3.scaleSequential([[domain, ]interpolator]) · [Source](https://github.com/d3/d3-scale/blob/master/src/sequential.js), [Examples](https://observablehq.com/@d3/sequential-scales) - -Constructs a new sequential scale with the specified [*domain*](#sequential_domain) and [*interpolator*](#sequential_interpolator) function or array. If *domain* is not specified, it defaults to [0, 1]. If *interpolator* is not specified, it defaults to the identity function. When the scale is [applied](#_sequential), the interpolator will be invoked with a value typically in the range [0, 1], where 0 represents the minimum value and 1 represents the maximum value. For example, to implement the ill-advised [HSL](https://github.com/d3/d3-color/blob/master/README.md#hsl) rainbow scale: - -```js -var rainbow = d3.scaleSequential(function(t) { - return d3.hsl(t * 360, 1, 0.5) + ""; -}); -``` - -A more aesthetically-pleasing and perceptually-effective cyclical hue encoding is to use [d3.interpolateRainbow](https://github.com/d3/d3-scale-chromatic/blob/master/README.md#interpolateRainbow): - -```js -var rainbow = d3.scaleSequential(d3.interpolateRainbow); -``` - -If *interpolator* is an array, it represents the scale’s two-element output range and is converted to an interpolator function using [d3.interpolate](https://github.com/d3/d3-interpolate/blob/master/README.md#interpolate). - -# sequential(value) · [Source](https://github.com/d3/d3-scale/blob/master/src/sequential.js), [Examples](https://observablehq.com/@d3/sequential-scales) - -See [*continuous*](#_continuous). - -# sequential.domain([domain]) · [Source](https://github.com/d3/d3-scale/blob/master/src/sequential.js), [Examples](https://observablehq.com/@d3/sequential-scales) - -See [*continuous*.domain](#continuous_domain). Note that a sequential scale’s domain must be numeric and must contain exactly two values. - -# sequential.clamp([clamp]) · [Source](https://github.com/d3/d3-scale/blob/master/src/sequential.js), [Examples](https://observablehq.com/@d3/sequential-scales) - -See [*continuous*.clamp](#continuous_clamp). - -# sequential.interpolator([interpolator]) · [Source](https://github.com/d3/d3-scale/blob/master/src/sequential.js), [Examples](https://observablehq.com/@d3/sequential-scales) - -If *interpolator* is specified, sets the scale’s interpolator to the specified function. If *interpolator* is not specified, returns the scale’s current interpolator. - -# sequential.range([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/sequential.js), [Examples](https://observablehq.com/@d3/sequential-scales) - -See [*continuous*.range](#continuous_range). If *range* is specified, the given two-element array is converted to an interpolator function using [d3.interpolate](https://github.com/d3/d3-interpolate/blob/master/README.md#interpolate). - -# sequential.rangeRound([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/sequential.js), [Examples](https://observablehq.com/@d3/sequential-scales) - -See [*continuous*.rangeRound](#continuous_rangeRound). If *range* is specified, implicitly uses [d3.interpolateRound](https://github.com/d3/d3-interpolate/blob/master/README.md#interpolateRound) as the interpolator. - -# sequential.copy() · [Source](https://github.com/d3/d3-scale/blob/master/src/sequential.js), [Examples](https://observablehq.com/@d3/sequential-scales) - -See [*continuous*.copy](#continuous_copy). - -# d3.scaleSequentialLog([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/sequential.js), [Examples](https://observablehq.com/@d3/sequential-scales) - -A [sequential scale](#sequential-scales) with a logarithmic transform, analogous to a [log scale](#log-scales). - -# d3.scaleSequentialPow([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/sequential.js), [Examples](https://observablehq.com/@d3/sequential-scales) - -A [sequential scale](#sequential-scales) with an exponential transform, analogous to a [power scale](#pow-scales). - -# d3.scaleSequentialSqrt([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/sequential.js), [Examples](https://observablehq.com/@d3/sequential-scales) - -A [sequential scale](#sequential-scales) with a square-root transform, analogous to a [d3.scaleSqrt](#scaleSqrt). - -# d3.scaleSequentialSymlog([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/sequential.js), [Examples](https://observablehq.com/@d3/sequential-scales) - -A [sequential scale](#sequential-scales) with a symmetric logarithmic transform, analogous to a [symlog scale](#symlog-scales). - -# d3.scaleSequentialQuantile([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/sequentialQuantile.js), [Examples](https://observablehq.com/@d3/sequential-scales) - -A [sequential scale](#sequential-scales) using a *p*-quantile transform, analogous to a [quantile scale](#quantile-scales). - -# sequentialQuantile.quantiles(n) · [Source](https://github.com/d3/d3-scale/blob/master/src/sequentialQuantile.js), [Examples](https://observablehq.com/@d3/sequential-scales) - -Returns an array of *n* + 1 quantiles. For example, if *n* = 4, returns an array of five numbers: the minimum value, the first quartile, the median, the third quartile, and the maximum. - -### Diverging Scales - -Diverging scales, like [sequential scales](#sequential-scales), are similar to [continuous scales](#continuous-scales) in that they map a continuous, numeric input domain to a continuous output range. However, unlike continuous scales, the input domain and output range of a diverging scale always has exactly three elements, and the output range is typically specified as an interpolator rather than an array of values. These scales do not expose [invert](#continuous_invert) and [interpolate](#continuous_interpolate) methods. - -# d3.scaleDiverging([[domain, ]interpolator]) · [Source](https://github.com/d3/d3-scale/blob/master/src/diverging.js), [Examples](https://observablehq.com/@d3/diverging-scales) - -Constructs a new diverging scale with the specified [*domain*](#diverging_domain) and [*interpolator*](#diverging_interpolator) function or array. If *domain* is not specified, it defaults to [0, 0.5, 1]. If *interpolator* is not specified, it defaults to the identity function. When the scale is [applied](#_diverging), the interpolator will be invoked with a value typically in the range [0, 1], where 0 represents the extreme negative value, 0.5 represents the neutral value, and 1 represents the extreme positive value. For example, using [d3.interpolateSpectral](https://github.com/d3/d3-scale-chromatic/blob/master/README.md#interpolateSpectral): - -```js -var spectral = d3.scaleDiverging(d3.interpolateSpectral); -``` - -If *interpolator* is an array, it represents the scale’s three-element output range and is converted to an interpolator function using [d3.interpolate](https://github.com/d3/d3-interpolate/blob/master/README.md#interpolate) and [d3.piecewise](https://github.com/d3/d3-interpolate/blob/master/README.md#piecewise). - -# diverging(value) · [Source](https://github.com/d3/d3-scale/blob/master/src/diverging.js), [Examples](https://observablehq.com/@d3/diverging-scales) - -See [*continuous*](#_continuous). - -# diverging.domain([domain]) · [Source](https://github.com/d3/d3-scale/blob/master/src/diverging.js), [Examples](https://observablehq.com/@d3/diverging-scales) - -See [*continuous*.domain](#continuous_domain). Note that a diverging scale’s domain must be numeric and must contain exactly three values. The default domain is [0, 0.5, 1]. - -# diverging.clamp([clamp]) · [Source](https://github.com/d3/d3-scale/blob/master/src/diverging.js), [Examples](https://observablehq.com/@d3/diverging-scales) - -See [*continuous*.clamp](#continuous_clamp). - -# diverging.interpolator([interpolator]) · [Source](https://github.com/d3/d3-scale/blob/master/src/diverging.js), [Examples](https://observablehq.com/@d3/diverging-scales) - -If *interpolator* is specified, sets the scale’s interpolator to the specified function. If *interpolator* is not specified, returns the scale’s current interpolator. - -# diverging.range([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/diverging.js), [Examples](https://observablehq.com/@d3/diverging-scales) - -See [*continuous*.range](#continuous_range). If *range* is specified, the given three-element array is converted to an interpolator function using [d3.interpolate](https://github.com/d3/d3-interpolate/blob/master/README.md#interpolate) and [d3.piecewise](https://github.com/d3/d3-interpolate/blob/master/README.md#piecewise). - -# diverging.rangeRound([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/diverging.js), [Examples](https://observablehq.com/@d3/diverging-scales) - -See [*continuous*.range](#continuous_rangeRound). If *range* is specified, implicitly uses [d3.interpolateRound](https://github.com/d3/d3-interpolate/blob/master/README.md#interpolateRound) as the interpolator. - -# diverging.copy() · [Source](https://github.com/d3/d3-scale/blob/master/src/diverging.js), [Examples](https://observablehq.com/@d3/diverging-scales) - -See [*continuous*.copy](#continuous_copy). - -# diverging.unknown() · [Source](https://github.com/d3/d3-scale/blob/master/src/diverging.js), [Examples](https://observablehq.com/@d3/diverging-scales) - -See [*continuous*.unknown](#continuous_unknown). - -# d3.scaleDivergingLog([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/diverging.js), [Examples](https://observablehq.com/@d3/diverging-scales) - -A [diverging scale](#diverging-scales) with a logarithmic transform, analogous to a [log scale](#log-scales). - -# d3.scaleDivergingPow([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/diverging.js), [Examples](https://observablehq.com/@d3/diverging-scales) - -A [diverging scale](#diverging-scales) with an exponential transform, analogous to a [power scale](#pow-scales). - -# d3.scaleDivergingSqrt([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/diverging.js), [Examples](https://observablehq.com/@d3/diverging-scales) - -A [diverging scale](#diverging-scales) with a square-root transform, analogous to a [d3.scaleSqrt](#scaleSqrt). - -# d3.scaleDivergingSymlog([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/diverging.js), [Examples](https://observablehq.com/@d3/diverging-scales) - -A [diverging scale](#diverging-scales) with a symmetric logarithmic transform, analogous to a [symlog scale](#symlog-scales). - -### Quantize Scales - -Quantize scales are similar to [linear scales](#linear-scales), except they use a discrete rather than continuous range. The continuous input domain is divided into uniform segments based on the number of values in (*i.e.*, the cardinality of) the output range. Each range value *y* can be expressed as a quantized linear function of the domain value *x*: *y* = *m round(x)* + *b*. See [this choropleth](https://observablehq.com/@d3/choropleth) for an example. - -# d3.scaleQuantize([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/quantize.js), [Examples](https://observablehq.com/@d3/quantile-quantize-and-threshold-scales) - -Constructs a new quantize scale with the specified [*domain*](#quantize_domain) and [*range*](#quantize_range). If either *domain* or *range* is not specified, each defaults to [0, 1]. Thus, the default quantize scale is equivalent to the [Math.round](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/round) function. - -# quantize(value) · [Source](https://github.com/d3/d3-scale/blob/master/src/quantize.js), [Examples](https://observablehq.com/@d3/quantile-quantize-and-threshold-scales) - -Given a *value* in the input [domain](#quantize_domain), returns the corresponding value in the output [range](#quantize_range). For example, to apply a color encoding: - -```js -var color = d3.scaleQuantize() - .domain([0, 1]) - .range(["brown", "steelblue"]); - -color(0.49); // "brown" -color(0.51); // "steelblue" -``` - -Or dividing the domain into three equally-sized parts with different range values to compute an appropriate stroke width: - -```js -var width = d3.scaleQuantize() - .domain([10, 100]) - .range([1, 2, 4]); - -width(20); // 1 -width(50); // 2 -width(80); // 4 -``` - -# quantize.invertExtent(value) · [Source](https://github.com/d3/d3-scale/blob/master/src/quantize.js), [Examples](https://observablehq.com/@d3/quantile-quantize-and-threshold-scales) - -Returns the extent of values in the [domain](#quantize_domain) [x0, x1] for the corresponding *value* in the [range](#quantize_range): the inverse of [*quantize*](#_quantize). This method is useful for interaction, say to determine the value in the domain that corresponds to the pixel location under the mouse. - -```js -var width = d3.scaleQuantize() - .domain([10, 100]) - .range([1, 2, 4]); - -width.invertExtent(2); // [40, 70] -``` - -# quantize.domain([domain]) · [Source](https://github.com/d3/d3-scale/blob/master/src/quantize.js), [Examples](https://observablehq.com/@d3/quantile-quantize-and-threshold-scales) - -If *domain* is specified, sets the scale’s domain to the specified two-element array of numbers. If the elements in the given array are not numbers, they will be coerced to numbers. The numbers must be in ascending order or the behavior of the scale is undefined. If *domain* is not specified, returns the scale’s current domain. - -# quantize.range([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/quantize.js), [Examples](https://observablehq.com/@d3/quantile-quantize-and-threshold-scales) - -If *range* is specified, sets the scale’s range to the specified array of values. The array may contain any number of discrete values. The elements in the given array need not be numbers; any value or type will work. If *range* is not specified, returns the scale’s current range. - -# quantize.ticks([count]) · [Source](https://github.com/d3/d3-scale/blob/master/src/quantize.js), [Examples](https://observablehq.com/@d3/scale-ticks) - -Equivalent to [*continuous*.ticks](#continuous_ticks). - -# quantize.tickFormat([count[, specifier]]) · [Source](https://github.com/d3/d3-scale/blob/master/src/linear.js), [Examples](https://observablehq.com/@d3/scale-ticks) - -Equivalent to [*continuous*.tickFormat](#continuous_tickFormat). - -# quantize.nice() · [Source](https://github.com/d3/d3-scale/blob/master/src/quantize.js), [Examples](https://observablehq.com/@d3/quantile-quantize-and-threshold-scales) - -Equivalent to [*continuous*.nice](#continuous_nice). - -# quantize.thresholds() · [Source](https://github.com/d3/d3-scale/blob/master/src/quantize.js), [Examples](https://observablehq.com/@d3/quantile-quantize-and-threshold-scales) - -Returns the array of computed thresholds within the [domain](#quantize_domain). - -# quantize.copy() · [Source](https://github.com/d3/d3-scale/blob/master/src/quantize.js), [Examples](https://observablehq.com/@d3/quantile-quantize-and-threshold-scales) - -Returns an exact copy of this scale. Changes to this scale will not affect the returned scale, and vice versa. - -### Quantile Scales - -Quantile scales map a sampled input domain to a discrete range. The domain is considered continuous and thus the scale will accept any reasonable input value; however, the domain is specified as a discrete set of sample values. The number of values in (the cardinality of) the output range determines the number of quantiles that will be computed from the domain. To compute the quantiles, the domain is sorted, and treated as a [population of discrete values](https://en.wikipedia.org/wiki/Quantile#Quantiles_of_a_population); see d3-array’s [quantile](https://github.com/d3/d3-array/blob/master/README.md#quantile). See [this quantile choropleth](https://observablehq.com/@d3/quantile-choropleth) for an example. - -# d3.scaleQuantile([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/quantile.js), [Examples](https://observablehq.com/@d3/quantile-quantize-and-threshold-scales) - -Constructs a new quantile scale with the specified [*domain*](#quantile_domain) and [*range*](#quantile_range). If either *domain* or *range* is not specified, each defaults to the empty array. The quantile scale is invalid until both a domain and range are specified. - -# quantile(value) · [Source](https://github.com/d3/d3-scale/blob/master/src/quantile.js), [Examples](https://observablehq.com/@d3/quantile-quantize-and-threshold-scales) - -Given a *value* in the input [domain](#quantile_domain), returns the corresponding value in the output [range](#quantile_range). - -# quantile.invertExtent(value) · [Source](https://github.com/d3/d3-scale/blob/master/src/quantile.js), [Examples](https://observablehq.com/@d3/quantile-quantize-and-threshold-scales) - -Returns the extent of values in the [domain](#quantile_domain) [x0, x1] for the corresponding *value* in the [range](#quantile_range): the inverse of [*quantile*](#_quantile). This method is useful for interaction, say to determine the value in the domain that corresponds to the pixel location under the mouse. - -# quantile.domain([domain]) · [Source](https://github.com/d3/d3-scale/blob/master/src/quantile.js), [Examples](https://observablehq.com/@d3/quantile-quantize-and-threshold-scales) - -If *domain* is specified, sets the domain of the quantile scale to the specified set of discrete numeric values. The array must not be empty, and must contain at least one numeric value; NaN, null and undefined values are ignored and not considered part of the sample population. If the elements in the given array are not numbers, they will be coerced to numbers. A copy of the input array is sorted and stored internally. If *domain* is not specified, returns the scale’s current domain. - -# quantile.range([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/quantile.js), [Examples](https://observablehq.com/@d3/quantile-quantize-and-threshold-scales) - -If *range* is specified, sets the discrete values in the range. The array must not be empty, and may contain any type of value. The number of values in (the cardinality, or length, of) the *range* array determines the number of quantiles that are computed. For example, to compute quartiles, *range* must be an array of four elements such as [0, 1, 2, 3]. If *range* is not specified, returns the current range. - -# quantile.quantiles() · [Source](https://github.com/d3/d3-scale/blob/master/src/quantile.js), [Examples](https://observablehq.com/@d3/quantile-quantize-and-threshold-scales) - -Returns the quantile thresholds. If the [range](#quantile_range) contains *n* discrete values, the returned array will contain *n* - 1 thresholds. Values less than the first threshold are considered in the first quantile; values greater than or equal to the first threshold but less than the second threshold are in the second quantile, and so on. Internally, the thresholds array is used with [bisect](https://github.com/d3/d3-array/blob/master/README.md#bisect) to find the output quantile associated with the given input value. - -# quantile.copy() · [Source](https://github.com/d3/d3-scale/blob/master/src/quantile.js), [Examples](https://observablehq.com/@d3/quantile-quantize-and-threshold-scales) - -Returns an exact copy of this scale. Changes to this scale will not affect the returned scale, and vice versa. - -### Threshold Scales - -Threshold scales are similar to [quantize scales](#quantize-scales), except they allow you to map arbitrary subsets of the domain to discrete values in the range. The input domain is still continuous, and divided into slices based on a set of threshold values. See [this choropleth](https://observablehq.com/@d3/threshold-choropleth) for an example. - -# d3.scaleThreshold([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/threshold.js), [Examples](https://observablehq.com/@d3/quantile-quantize-and-threshold-scales) - -Constructs a new threshold scale with the specified [*domain*](#threshold_domain) and [*range*](#threshold_range). If *domain* is not specified, it defaults to [0.5]. If *range* is not specified, it defaults to [0, 1]. Thus, the default threshold scale is equivalent to the [Math.round](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Math/round) function for numbers; for example threshold(0.49) returns 0, and threshold(0.51) returns 1. - -# threshold(value) · [Source](https://github.com/d3/d3-scale/blob/master/src/threshold.js), [Examples](https://observablehq.com/@d3/quantile-quantize-and-threshold-scales) - -Given a *value* in the input [domain](#threshold_domain), returns the corresponding value in the output [range](#threshold_range). For example: - -```js -var color = d3.scaleThreshold() - .domain([0, 1]) - .range(["red", "white", "green"]); - -color(-1); // "red" -color(0); // "white" -color(0.5); // "white" -color(1); // "green" -color(1000); // "green" -``` - -# threshold.invertExtent(value) · [Source](https://github.com/d3/d3-scale/blob/master/src/threshold.js), [Examples](https://observablehq.com/@d3/choropleth) - -Returns the extent of values in the [domain](#threshold_domain) [x0, x1] for the corresponding *value* in the [range](#threshold_range), representing the inverse mapping from range to domain. This method is useful for interaction, say to determine the value in the domain that corresponds to the pixel location under the mouse. For example: - -```js -var color = d3.scaleThreshold() - .domain([0, 1]) - .range(["red", "white", "green"]); - -color.invertExtent("red"); // [undefined, 0] -color.invertExtent("white"); // [0, 1] -color.invertExtent("green"); // [1, undefined] -``` - -# threshold.domain([domain]) · [Source](https://github.com/d3/d3-scale/blob/master/src/threshold.js), [Examples](https://observablehq.com/@d3/quantile-quantize-and-threshold-scales) - -If *domain* is specified, sets the scale’s domain to the specified array of values. The values must be in ascending order or the behavior of the scale is undefined. The values are typically numbers, but any naturally ordered values (such as strings) will work; a threshold scale can be used to encode any type that is ordered. If the number of values in the scale’s range is N+1, the number of values in the scale’s domain must be N. If there are fewer than N elements in the domain, the additional values in the range are ignored. If there are more than N elements in the domain, the scale may return undefined for some inputs. If *domain* is not specified, returns the scale’s current domain. - -# threshold.range([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/threshold.js), [Examples](https://observablehq.com/@d3/quantile-quantize-and-threshold-scales) - -If *range* is specified, sets the scale’s range to the specified array of values. If the number of values in the scale’s domain is N, the number of values in the scale’s range must be N+1. If there are fewer than N+1 elements in the range, the scale may return undefined for some inputs. If there are more than N+1 elements in the range, the additional values are ignored. The elements in the given array need not be numbers; any value or type will work. If *range* is not specified, returns the scale’s current range. - -# threshold.copy() · [Source](https://github.com/d3/d3-scale/blob/master/src/threshold.js), [Examples](https://observablehq.com/@d3/quantile-quantize-and-threshold-scales) - -Returns an exact copy of this scale. Changes to this scale will not affect the returned scale, and vice versa. - -### Ordinal Scales - -Unlike [continuous scales](#continuous-scales), ordinal scales have a discrete domain and range. For example, an ordinal scale might map a set of named categories to a set of colors, or determine the horizontal positions of columns in a column chart. - -# d3.scaleOrdinal([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/ordinal.js), [Examples](https://observablehq.com/@d3/d3-scaleordinal) - -Constructs a new ordinal scale with the specified [*domain*](#ordinal_domain) and [*range*](#ordinal_range). If *domain* is not specified, it defaults to the empty array. If *range* is not specified, it defaults to the empty array; an ordinal scale always returns undefined until a non-empty range is defined. - -# ordinal(value) · [Source](https://github.com/d3/d3-scale/blob/master/src/ordinal.js), [Examples](https://observablehq.com/@d3/d3-scaleordinal) - -Given a *value* in the input [domain](#ordinal_domain), returns the corresponding value in the output [range](#ordinal_range). If the given *value* is not in the scale’s [domain](#ordinal_domain), returns the [unknown](#ordinal_unknown); or, if the unknown value is [implicit](#scaleImplicit) (the default), then the *value* is implicitly added to the domain and the next-available value in the range is assigned to *value*, such that this and subsequent invocations of the scale given the same input *value* return the same output value. - -# ordinal.domain([domain]) · [Source](https://github.com/d3/d3-scale/blob/master/src/ordinal.js), [Examples](https://observablehq.com/@d3/d3-scaleordinal) - -If *domain* is specified, sets the domain to the specified array of values. The first element in *domain* will be mapped to the first element in the range, the second domain value to the second range value, and so on. Domain values are stored internally in an [InternMap](https://github.com/mbostock/internmap) from primitive value to index; the resulting index is then used to retrieve a value from the range. Thus, an ordinal scale’s values must be coercible to a primitive value, and the primitive domain value uniquely identifies the corresponding range value. If *domain* is not specified, this method returns the current domain. - -Setting the domain on an ordinal scale is optional if the [unknown value](#ordinal_unknown) is [implicit](#scaleImplicit) (the default). In this case, the domain will be inferred implicitly from usage by assigning each unique value passed to the scale a new value from the range. Note that an explicit domain is recommended to ensure deterministic behavior, as inferring the domain from usage will be dependent on ordering. - -# ordinal.range([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/ordinal.js), [Examples](https://observablehq.com/@d3/d3-scaleordinal) - -If *range* is specified, sets the range of the ordinal scale to the specified array of values. The first element in the domain will be mapped to the first element in *range*, the second domain value to the second range value, and so on. If there are fewer elements in the range than in the domain, the scale will reuse values from the start of the range. If *range* is not specified, this method returns the current range. - -# ordinal.unknown([value]) · [Source](https://github.com/d3/d3-scale/blob/master/src/ordinal.js), [Examples](https://observablehq.com/@d3/d3-scaleordinal) - -If *value* is specified, sets the output value of the scale for unknown input values and returns this scale. If *value* is not specified, returns the current unknown value, which defaults to [implicit](#scaleImplicit). The implicit value enables implicit domain construction; see [*ordinal*.domain](#ordinal_domain). - -# ordinal.copy() · [Source](https://github.com/d3/d3-scale/blob/master/src/ordinal.js), [Examples](https://observablehq.com/@d3/d3-scaleordinal) - -Returns an exact copy of this ordinal scale. Changes to this scale will not affect the returned scale, and vice versa. - -# d3.scaleImplicit · [Source](https://github.com/d3/d3-scale/blob/master/src/ordinal.js), [Examples](https://observablehq.com/@d3/d3-scaleordinal) - -A special value for [*ordinal*.unknown](#ordinal_unknown) that enables implicit domain construction: unknown values are implicitly added to the domain. - -#### Band Scales - -Band scales are like [ordinal scales](#ordinal-scales) except the output range is continuous and numeric. Discrete output values are automatically computed by the scale by dividing the continuous range into uniform bands. Band scales are typically used for bar charts with an ordinal or categorical dimension. The [unknown value](#ordinal_unknown) of a band scale is effectively undefined: they do not allow implicit domain construction. - -band - -# d3.scaleBand([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scaleband) - -Constructs a new band scale with the specified [*domain*](#band_domain) and [*range*](#band_range), no [padding](#band_padding), no [rounding](#band_round) and center [alignment](#band_align). If *domain* is not specified, it defaults to the empty domain. If *range* is not specified, it defaults to the unit range [0, 1]. - -# band(*value*) · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scaleband) - -Given a *value* in the input [domain](#band_domain), returns the start of the corresponding band derived from the output [range](#band_range). If the given *value* is not in the scale’s domain, returns undefined. - -# band.domain([domain]) · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scaleband) - -If *domain* is specified, sets the domain to the specified array of values. The first element in *domain* will be mapped to the first band, the second domain value to the second band, and so on. Domain values are stored internally in an [InternMap](https://github.com/mbostock/internmap) from primitive value to index; the resulting index is then used to determine the band. Thus, a band scale’s values must be coercible to a primitive value, and the primitive domain value uniquely identifies the corresponding band. If *domain* is not specified, this method returns the current domain. - -# band.range([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scaleband) - -If *range* is specified, sets the scale’s range to the specified two-element array of numbers. If the elements in the given array are not numbers, they will be coerced to numbers. If *range* is not specified, returns the scale’s current range, which defaults to [0, 1]. - -# band.rangeRound([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scaleband) - -Sets the scale’s [*range*](#band_range) to the specified two-element array of numbers while also enabling [rounding](#band_round). This is a convenience method equivalent to: - -```js -band - .range(range) - .round(true); -``` - -Rounding is sometimes useful for avoiding antialiasing artifacts, though also consider the [shape-rendering](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering) “crispEdges” styles. - -# band.round([round]) · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scaleband) - -If *round* is specified, enables or disables rounding accordingly. If rounding is enabled, the start and stop of each band will be integers. Rounding is sometimes useful for avoiding antialiasing artifacts, though also consider the [shape-rendering](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering) “crispEdges” styles. Note that if the width of the domain is not a multiple of the cardinality of the range, there may be leftover unused space, even without padding! Use [*band*.align](#band_align) to specify how the leftover space is distributed. - -# band.paddingInner([padding]) · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scaleband) - -If *padding* is specified, sets the inner padding to the specified number which must be less than or equal to 1. If *padding* is not specified, returns the current inner padding which defaults to 0. The inner padding specifies the proportion of the range that is reserved for blank space between bands; a value of 0 means no blank space between bands, and a value of 1 means a [bandwidth](#band_bandwidth) of zero. - -# band.paddingOuter([padding]) · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scaleband) - -If *padding* is specified, sets the outer padding to the specified number which is typically in the range [0, 1]. If *padding* is not specified, returns the current outer padding which defaults to 0. The outer padding specifies the amount of blank space, in terms of multiples of the [step](#band_step), to reserve before the first band and after the last band. - -# band.padding([padding]) · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scaleband) - -A convenience method for setting the [inner](#band_paddingInner) and [outer](#band_paddingOuter) padding to the same *padding* value. If *padding* is not specified, returns the inner padding. - -# band.align([align]) · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scaleband) - -If *align* is specified, sets the alignment to the specified value which must be in the range [0, 1]. If *align* is not specified, returns the current alignment which defaults to 0.5. The alignment specifies how outer padding is distributed in the range. A value of 0.5 indicates that the outer padding should be equally distributed before the first band and after the last band; *i.e.*, the bands should be centered within the range. A value of 0 or 1 may be used to shift the bands to one side, say to position them adjacent to an axis. For more, [see this explainer](https://observablehq.com/@d3/band-align). - -# band.bandwidth() · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scaleband) - -Returns the width of each band. - -# band.step() · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scaleband) - -Returns the distance between the starts of adjacent bands. - -# band.copy() · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scaleband) - -Returns an exact copy of this scale. Changes to this scale will not affect the returned scale, and vice versa. - -#### Point Scales - -Point scales are a variant of [band scales](#band-scales) with the bandwidth fixed to zero. Point scales are typically used for scatterplots with an ordinal or categorical dimension. The [unknown value](#ordinal_unknown) of a point scale is always undefined: they do not allow implicit domain construction. - -point - -# d3.scalePoint([[domain, ]range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scalepoint) - -Constructs a new point scale with the specified [*domain*](#point_domain) and [*range*](#point_range), no [padding](#point_padding), no [rounding](#point_round) and center [alignment](#point_align). If *domain* is not specified, it defaults to the empty domain. If *range* is not specified, it defaults to the unit range [0, 1]. - -# point(*value*) · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scalepoint) - -Given a *value* in the input [domain](#point_domain), returns the corresponding point derived from the output [range](#point_range). If the given *value* is not in the scale’s domain, returns undefined. - -# point.domain([domain]) · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scalepoint) - -If *domain* is specified, sets the domain to the specified array of values. The first element in *domain* will be mapped to the first point, the second domain value to the second point, and so on. Domain values are stored internally in an [InternMap](https://github.com/mbostock/internmap) from primitive value to index; the resulting index is then used to determine the point. Thus, a point scale’s values must be coercible to a primitive value, and the primitive domain value uniquely identifies the corresponding point. If *domain* is not specified, this method returns the current domain. - -# point.range([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scalepoint) - -If *range* is specified, sets the scale’s range to the specified two-element array of numbers. If the elements in the given array are not numbers, they will be coerced to numbers. If *range* is not specified, returns the scale’s current range, which defaults to [0, 1]. - -# point.rangeRound([range]) · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scalepoint) - -Sets the scale’s [*range*](#point_range) to the specified two-element array of numbers while also enabling [rounding](#point_round). This is a convenience method equivalent to: - -```js -point - .range(range) - .round(true); -``` - -Rounding is sometimes useful for avoiding antialiasing artifacts, though also consider the [shape-rendering](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering) “crispEdges” styles. - -# point.round([round]) · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scalepoint) - -If *round* is specified, enables or disables rounding accordingly. If rounding is enabled, the position of each point will be integers. Rounding is sometimes useful for avoiding antialiasing artifacts, though also consider the [shape-rendering](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering) “crispEdges” styles. Note that if the width of the domain is not a multiple of the cardinality of the range, there may be leftover unused space, even without padding! Use [*point*.align](#point_align) to specify how the leftover space is distributed. - -# point.padding([padding]) · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scalepoint) - -If *padding* is specified, sets the outer padding to the specified number which is typically in the range [0, 1]. If *padding* is not specified, returns the current outer padding which defaults to 0. The outer padding specifies the amount of blank space, in terms of multiples of the [step](#band_step), to reserve before the first point and after the last point. Equivalent to [*band*.paddingOuter](#band_paddingOuter). - -# point.align([align]) · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scalepoint) - -If *align* is specified, sets the alignment to the specified value which must be in the range [0, 1]. If *align* is not specified, returns the current alignment which defaults to 0.5. The alignment specifies how any leftover unused space in the range is distributed. A value of 0.5 indicates that the leftover space should be equally distributed before the first point and after the last point; *i.e.*, the points should be centered within the range. A value of 0 or 1 may be used to shift the points to one side, say to position them adjacent to an axis. - -# point.bandwidth() · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scalepoint) - -Returns zero. - -# point.step() · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scalepoint) - -Returns the distance between the starts of adjacent points. - -# point.copy() · [Source](https://github.com/d3/d3-scale/blob/master/src/band.js), [Examples](https://observablehq.com/@d3/d3-scalepoint) - -Returns an exact copy of this scale. Changes to this scale will not affect the returned scale, and vice versa. diff --git a/build_vtk_bundle/node_modules/d3-scale/package.json b/build_vtk_bundle/node_modules/d3-scale/package.json deleted file mode 100644 index cd770391..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/package.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "name": "d3-scale", - "version": "4.0.2", - "description": "Encodings that map abstract data to visual representation.", - "homepage": "https://d3js.org/d3-scale/", - "repository": { - "type": "git", - "url": "https://github.com/d3/d3-scale.git" - }, - "keywords": [ - "d3", - "d3-module", - "scale", - "visualization" - ], - "license": "ISC", - "author": { - "name": "Mike Bostock", - "url": "https://bost.ocks.org/mike" - }, - "type": "module", - "files": [ - "dist/**/*.js", - "src/**/*.js" - ], - "module": "src/index.js", - "main": "src/index.js", - "jsdelivr": "dist/d3-scale.min.js", - "unpkg": "dist/d3-scale.min.js", - "exports": { - "umd": "./dist/d3-scale.min.js", - "default": "./src/index.js" - }, - "sideEffects": false, - "dependencies": { - "d3-array": "2.10.0 - 3", - "d3-format": "1 - 3", - "d3-interpolate": "1.2.0 - 3", - "d3-time": "2.1.1 - 3", - "d3-time-format": "2 - 4" - }, - "devDependencies": { - "d3-color": "1 - 3", - "eslint": "7", - "mocha": "9", - "rollup": "2", - "rollup-plugin-terser": "7" - }, - "scripts": { - "test": "TZ=America/Los_Angeles mocha 'test/**/*-test.js' && eslint src test", - "prepublishOnly": "rm -rf dist && yarn test && rollup -c", - "postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../${npm_package_name}/dist/${npm_package_name}.js ${npm_package_name}.v${npm_package_version%%.*}.js && cp ../${npm_package_name}/dist/${npm_package_name}.min.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git add ${npm_package_name}.v${npm_package_version%%.*}.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git commit -m \"${npm_package_name} ${npm_package_version}\" && git push && cd -" - }, - "engines": { - "node": ">=12" - } -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/band.js b/build_vtk_bundle/node_modules/d3-scale/src/band.js deleted file mode 100644 index 88e1fbdf..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/band.js +++ /dev/null @@ -1,101 +0,0 @@ -import {range as sequence} from "d3-array"; -import {initRange} from "./init.js"; -import ordinal from "./ordinal.js"; - -export default function band() { - var scale = ordinal().unknown(undefined), - domain = scale.domain, - ordinalRange = scale.range, - r0 = 0, - r1 = 1, - step, - bandwidth, - round = false, - paddingInner = 0, - paddingOuter = 0, - align = 0.5; - - delete scale.unknown; - - function rescale() { - var n = domain().length, - reverse = r1 < r0, - start = reverse ? r1 : r0, - stop = reverse ? r0 : r1; - step = (stop - start) / Math.max(1, n - paddingInner + paddingOuter * 2); - if (round) step = Math.floor(step); - start += (stop - start - step * (n - paddingInner)) * align; - bandwidth = step * (1 - paddingInner); - if (round) start = Math.round(start), bandwidth = Math.round(bandwidth); - var values = sequence(n).map(function(i) { return start + step * i; }); - return ordinalRange(reverse ? values.reverse() : values); - } - - scale.domain = function(_) { - return arguments.length ? (domain(_), rescale()) : domain(); - }; - - scale.range = function(_) { - return arguments.length ? ([r0, r1] = _, r0 = +r0, r1 = +r1, rescale()) : [r0, r1]; - }; - - scale.rangeRound = function(_) { - return [r0, r1] = _, r0 = +r0, r1 = +r1, round = true, rescale(); - }; - - scale.bandwidth = function() { - return bandwidth; - }; - - scale.step = function() { - return step; - }; - - scale.round = function(_) { - return arguments.length ? (round = !!_, rescale()) : round; - }; - - scale.padding = function(_) { - return arguments.length ? (paddingInner = Math.min(1, paddingOuter = +_), rescale()) : paddingInner; - }; - - scale.paddingInner = function(_) { - return arguments.length ? (paddingInner = Math.min(1, _), rescale()) : paddingInner; - }; - - scale.paddingOuter = function(_) { - return arguments.length ? (paddingOuter = +_, rescale()) : paddingOuter; - }; - - scale.align = function(_) { - return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align; - }; - - scale.copy = function() { - return band(domain(), [r0, r1]) - .round(round) - .paddingInner(paddingInner) - .paddingOuter(paddingOuter) - .align(align); - }; - - return initRange.apply(rescale(), arguments); -} - -function pointish(scale) { - var copy = scale.copy; - - scale.padding = scale.paddingOuter; - delete scale.paddingInner; - delete scale.paddingOuter; - - scale.copy = function() { - return pointish(copy()); - }; - - return scale; -} - -export function point() { - return pointish(band.apply(null, arguments).paddingInner(1)); -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/colors.js b/build_vtk_bundle/node_modules/d3-scale/src/colors.js deleted file mode 100644 index b344ddb7..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/colors.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function colors(s) { - return s.match(/.{6}/g).map(function(x) { - return "#" + x; - }); -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/constant.js b/build_vtk_bundle/node_modules/d3-scale/src/constant.js deleted file mode 100644 index be84feec..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/constant.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function constants(x) { - return function() { - return x; - }; -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/continuous.js b/build_vtk_bundle/node_modules/d3-scale/src/continuous.js deleted file mode 100644 index d932095f..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/continuous.js +++ /dev/null @@ -1,125 +0,0 @@ -import {bisect} from "d3-array"; -import {interpolate as interpolateValue, interpolateNumber, interpolateRound} from "d3-interpolate"; -import constant from "./constant.js"; -import number from "./number.js"; - -var unit = [0, 1]; - -export function identity(x) { - return x; -} - -function normalize(a, b) { - return (b -= (a = +a)) - ? function(x) { return (x - a) / b; } - : constant(isNaN(b) ? NaN : 0.5); -} - -function clamper(a, b) { - var t; - if (a > b) t = a, a = b, b = t; - return function(x) { return Math.max(a, Math.min(b, x)); }; -} - -// normalize(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1]. -// interpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding range value x in [a,b]. -function bimap(domain, range, interpolate) { - var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1]; - if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0); - else d0 = normalize(d0, d1), r0 = interpolate(r0, r1); - return function(x) { return r0(d0(x)); }; -} - -function polymap(domain, range, interpolate) { - var j = Math.min(domain.length, range.length) - 1, - d = new Array(j), - r = new Array(j), - i = -1; - - // Reverse descending domains. - if (domain[j] < domain[0]) { - domain = domain.slice().reverse(); - range = range.slice().reverse(); - } - - while (++i < j) { - d[i] = normalize(domain[i], domain[i + 1]); - r[i] = interpolate(range[i], range[i + 1]); - } - - return function(x) { - var i = bisect(domain, x, 1, j) - 1; - return r[i](d[i](x)); - }; -} - -export function copy(source, target) { - return target - .domain(source.domain()) - .range(source.range()) - .interpolate(source.interpolate()) - .clamp(source.clamp()) - .unknown(source.unknown()); -} - -export function transformer() { - var domain = unit, - range = unit, - interpolate = interpolateValue, - transform, - untransform, - unknown, - clamp = identity, - piecewise, - output, - input; - - function rescale() { - var n = Math.min(domain.length, range.length); - if (clamp !== identity) clamp = clamper(domain[0], domain[n - 1]); - piecewise = n > 2 ? polymap : bimap; - output = input = null; - return scale; - } - - function scale(x) { - return x == null || isNaN(x = +x) ? unknown : (output || (output = piecewise(domain.map(transform), range, interpolate)))(transform(clamp(x))); - } - - scale.invert = function(y) { - return clamp(untransform((input || (input = piecewise(range, domain.map(transform), interpolateNumber)))(y))); - }; - - scale.domain = function(_) { - return arguments.length ? (domain = Array.from(_, number), rescale()) : domain.slice(); - }; - - scale.range = function(_) { - return arguments.length ? (range = Array.from(_), rescale()) : range.slice(); - }; - - scale.rangeRound = function(_) { - return range = Array.from(_), interpolate = interpolateRound, rescale(); - }; - - scale.clamp = function(_) { - return arguments.length ? (clamp = _ ? true : identity, rescale()) : clamp !== identity; - }; - - scale.interpolate = function(_) { - return arguments.length ? (interpolate = _, rescale()) : interpolate; - }; - - scale.unknown = function(_) { - return arguments.length ? (unknown = _, scale) : unknown; - }; - - return function(t, u) { - transform = t, untransform = u; - return rescale(); - }; -} - -export default function continuous() { - return transformer()(identity, identity); -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/diverging.js b/build_vtk_bundle/node_modules/d3-scale/src/diverging.js deleted file mode 100644 index f5907488..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/diverging.js +++ /dev/null @@ -1,104 +0,0 @@ -import {interpolate, interpolateRound, piecewise} from "d3-interpolate"; -import {identity} from "./continuous.js"; -import {initInterpolator} from "./init.js"; -import {linearish} from "./linear.js"; -import {loggish} from "./log.js"; -import {copy} from "./sequential.js"; -import {symlogish} from "./symlog.js"; -import {powish} from "./pow.js"; - -function transformer() { - var x0 = 0, - x1 = 0.5, - x2 = 1, - s = 1, - t0, - t1, - t2, - k10, - k21, - interpolator = identity, - transform, - clamp = false, - unknown; - - function scale(x) { - return isNaN(x = +x) ? unknown : (x = 0.5 + ((x = +transform(x)) - t1) * (s * x < s * t1 ? k10 : k21), interpolator(clamp ? Math.max(0, Math.min(1, x)) : x)); - } - - scale.domain = function(_) { - return arguments.length ? ([x0, x1, x2] = _, t0 = transform(x0 = +x0), t1 = transform(x1 = +x1), t2 = transform(x2 = +x2), k10 = t0 === t1 ? 0 : 0.5 / (t1 - t0), k21 = t1 === t2 ? 0 : 0.5 / (t2 - t1), s = t1 < t0 ? -1 : 1, scale) : [x0, x1, x2]; - }; - - scale.clamp = function(_) { - return arguments.length ? (clamp = !!_, scale) : clamp; - }; - - scale.interpolator = function(_) { - return arguments.length ? (interpolator = _, scale) : interpolator; - }; - - function range(interpolate) { - return function(_) { - var r0, r1, r2; - return arguments.length ? ([r0, r1, r2] = _, interpolator = piecewise(interpolate, [r0, r1, r2]), scale) : [interpolator(0), interpolator(0.5), interpolator(1)]; - }; - } - - scale.range = range(interpolate); - - scale.rangeRound = range(interpolateRound); - - scale.unknown = function(_) { - return arguments.length ? (unknown = _, scale) : unknown; - }; - - return function(t) { - transform = t, t0 = t(x0), t1 = t(x1), t2 = t(x2), k10 = t0 === t1 ? 0 : 0.5 / (t1 - t0), k21 = t1 === t2 ? 0 : 0.5 / (t2 - t1), s = t1 < t0 ? -1 : 1; - return scale; - }; -} - -export default function diverging() { - var scale = linearish(transformer()(identity)); - - scale.copy = function() { - return copy(scale, diverging()); - }; - - return initInterpolator.apply(scale, arguments); -} - -export function divergingLog() { - var scale = loggish(transformer()).domain([0.1, 1, 10]); - - scale.copy = function() { - return copy(scale, divergingLog()).base(scale.base()); - }; - - return initInterpolator.apply(scale, arguments); -} - -export function divergingSymlog() { - var scale = symlogish(transformer()); - - scale.copy = function() { - return copy(scale, divergingSymlog()).constant(scale.constant()); - }; - - return initInterpolator.apply(scale, arguments); -} - -export function divergingPow() { - var scale = powish(transformer()); - - scale.copy = function() { - return copy(scale, divergingPow()).exponent(scale.exponent()); - }; - - return initInterpolator.apply(scale, arguments); -} - -export function divergingSqrt() { - return divergingPow.apply(null, arguments).exponent(0.5); -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/identity.js b/build_vtk_bundle/node_modules/d3-scale/src/identity.js deleted file mode 100644 index e1d1da77..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/identity.js +++ /dev/null @@ -1,28 +0,0 @@ -import {linearish} from "./linear.js"; -import number from "./number.js"; - -export default function identity(domain) { - var unknown; - - function scale(x) { - return x == null || isNaN(x = +x) ? unknown : x; - } - - scale.invert = scale; - - scale.domain = scale.range = function(_) { - return arguments.length ? (domain = Array.from(_, number), scale) : domain.slice(); - }; - - scale.unknown = function(_) { - return arguments.length ? (unknown = _, scale) : unknown; - }; - - scale.copy = function() { - return identity(domain).unknown(unknown); - }; - - domain = arguments.length ? Array.from(domain, number) : [0, 1]; - - return linearish(scale); -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/index.js b/build_vtk_bundle/node_modules/d3-scale/src/index.js deleted file mode 100644 index 510103cc..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/index.js +++ /dev/null @@ -1,78 +0,0 @@ -export { - default as scaleBand, - point as scalePoint -} from "./band.js"; - -export { - default as scaleIdentity -} from "./identity.js"; - -export { - default as scaleLinear -} from "./linear.js"; - -export { - default as scaleLog -} from "./log.js"; - -export { - default as scaleSymlog -} from "./symlog.js"; - -export { - default as scaleOrdinal, - implicit as scaleImplicit -} from "./ordinal.js"; - -export { - default as scalePow, - sqrt as scaleSqrt -} from "./pow.js"; - -export { - default as scaleRadial -} from "./radial.js"; - -export { - default as scaleQuantile -} from "./quantile.js"; - -export { - default as scaleQuantize -} from "./quantize.js"; - -export { - default as scaleThreshold -} from "./threshold.js"; - -export { - default as scaleTime -} from "./time.js"; - -export { - default as scaleUtc -} from "./utcTime.js"; - -export { - default as scaleSequential, - sequentialLog as scaleSequentialLog, - sequentialPow as scaleSequentialPow, - sequentialSqrt as scaleSequentialSqrt, - sequentialSymlog as scaleSequentialSymlog -} from "./sequential.js"; - -export { - default as scaleSequentialQuantile -} from "./sequentialQuantile.js"; - -export { - default as scaleDiverging, - divergingLog as scaleDivergingLog, - divergingPow as scaleDivergingPow, - divergingSqrt as scaleDivergingSqrt, - divergingSymlog as scaleDivergingSymlog -} from "./diverging.js"; - -export { - default as tickFormat -} from "./tickFormat.js"; diff --git a/build_vtk_bundle/node_modules/d3-scale/src/init.js b/build_vtk_bundle/node_modules/d3-scale/src/init.js deleted file mode 100644 index 61f51a07..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/init.js +++ /dev/null @@ -1,26 +0,0 @@ -export function initRange(domain, range) { - switch (arguments.length) { - case 0: break; - case 1: this.range(domain); break; - default: this.range(range).domain(domain); break; - } - return this; -} - -export function initInterpolator(domain, interpolator) { - switch (arguments.length) { - case 0: break; - case 1: { - if (typeof domain === "function") this.interpolator(domain); - else this.range(domain); - break; - } - default: { - this.domain(domain); - if (typeof interpolator === "function") this.interpolator(interpolator); - else this.range(interpolator); - break; - } - } - return this; -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/linear.js b/build_vtk_bundle/node_modules/d3-scale/src/linear.js deleted file mode 100644 index 3617d32a..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/linear.js +++ /dev/null @@ -1,70 +0,0 @@ -import {ticks, tickIncrement} from "d3-array"; -import continuous, {copy} from "./continuous.js"; -import {initRange} from "./init.js"; -import tickFormat from "./tickFormat.js"; - -export function linearish(scale) { - var domain = scale.domain; - - scale.ticks = function(count) { - var d = domain(); - return ticks(d[0], d[d.length - 1], count == null ? 10 : count); - }; - - scale.tickFormat = function(count, specifier) { - var d = domain(); - return tickFormat(d[0], d[d.length - 1], count == null ? 10 : count, specifier); - }; - - scale.nice = function(count) { - if (count == null) count = 10; - - var d = domain(); - var i0 = 0; - var i1 = d.length - 1; - var start = d[i0]; - var stop = d[i1]; - var prestep; - var step; - var maxIter = 10; - - if (stop < start) { - step = start, start = stop, stop = step; - step = i0, i0 = i1, i1 = step; - } - - while (maxIter-- > 0) { - step = tickIncrement(start, stop, count); - if (step === prestep) { - d[i0] = start - d[i1] = stop - return domain(d); - } else if (step > 0) { - start = Math.floor(start / step) * step; - stop = Math.ceil(stop / step) * step; - } else if (step < 0) { - start = Math.ceil(start * step) / step; - stop = Math.floor(stop * step) / step; - } else { - break; - } - prestep = step; - } - - return scale; - }; - - return scale; -} - -export default function linear() { - var scale = continuous(); - - scale.copy = function() { - return copy(scale, linear()); - }; - - initRange.apply(scale, arguments); - - return linearish(scale); -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/log.js b/build_vtk_bundle/node_modules/d3-scale/src/log.js deleted file mode 100644 index 170cd697..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/log.js +++ /dev/null @@ -1,140 +0,0 @@ -import {ticks} from "d3-array"; -import {format, formatSpecifier} from "d3-format"; -import nice from "./nice.js"; -import {copy, transformer} from "./continuous.js"; -import {initRange} from "./init.js"; - -function transformLog(x) { - return Math.log(x); -} - -function transformExp(x) { - return Math.exp(x); -} - -function transformLogn(x) { - return -Math.log(-x); -} - -function transformExpn(x) { - return -Math.exp(-x); -} - -function pow10(x) { - return isFinite(x) ? +("1e" + x) : x < 0 ? 0 : x; -} - -function powp(base) { - return base === 10 ? pow10 - : base === Math.E ? Math.exp - : x => Math.pow(base, x); -} - -function logp(base) { - return base === Math.E ? Math.log - : base === 10 && Math.log10 - || base === 2 && Math.log2 - || (base = Math.log(base), x => Math.log(x) / base); -} - -function reflect(f) { - return (x, k) => -f(-x, k); -} - -export function loggish(transform) { - const scale = transform(transformLog, transformExp); - const domain = scale.domain; - let base = 10; - let logs; - let pows; - - function rescale() { - logs = logp(base), pows = powp(base); - if (domain()[0] < 0) { - logs = reflect(logs), pows = reflect(pows); - transform(transformLogn, transformExpn); - } else { - transform(transformLog, transformExp); - } - return scale; - } - - scale.base = function(_) { - return arguments.length ? (base = +_, rescale()) : base; - }; - - scale.domain = function(_) { - return arguments.length ? (domain(_), rescale()) : domain(); - }; - - scale.ticks = count => { - const d = domain(); - let u = d[0]; - let v = d[d.length - 1]; - const r = v < u; - - if (r) ([u, v] = [v, u]); - - let i = logs(u); - let j = logs(v); - let k; - let t; - const n = count == null ? 10 : +count; - let z = []; - - if (!(base % 1) && j - i < n) { - i = Math.floor(i), j = Math.ceil(j); - if (u > 0) for (; i <= j; ++i) { - for (k = 1; k < base; ++k) { - t = i < 0 ? k / pows(-i) : k * pows(i); - if (t < u) continue; - if (t > v) break; - z.push(t); - } - } else for (; i <= j; ++i) { - for (k = base - 1; k >= 1; --k) { - t = i > 0 ? k / pows(-i) : k * pows(i); - if (t < u) continue; - if (t > v) break; - z.push(t); - } - } - if (z.length * 2 < n) z = ticks(u, v, n); - } else { - z = ticks(i, j, Math.min(j - i, n)).map(pows); - } - return r ? z.reverse() : z; - }; - - scale.tickFormat = (count, specifier) => { - if (count == null) count = 10; - if (specifier == null) specifier = base === 10 ? "s" : ","; - if (typeof specifier !== "function") { - if (!(base % 1) && (specifier = formatSpecifier(specifier)).precision == null) specifier.trim = true; - specifier = format(specifier); - } - if (count === Infinity) return specifier; - const k = Math.max(1, base * count / scale.ticks().length); // TODO fast estimate? - return d => { - let i = d / pows(Math.round(logs(d))); - if (i * base < base - 0.5) i *= base; - return i <= k ? specifier(d) : ""; - }; - }; - - scale.nice = () => { - return domain(nice(domain(), { - floor: x => pows(Math.floor(logs(x))), - ceil: x => pows(Math.ceil(logs(x))) - })); - }; - - return scale; -} - -export default function log() { - const scale = loggish(transformer()).domain([1, 10]); - scale.copy = () => copy(scale, log()).base(scale.base()); - initRange.apply(scale, arguments); - return scale; -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/nice.js b/build_vtk_bundle/node_modules/d3-scale/src/nice.js deleted file mode 100644 index a44e6015..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/nice.js +++ /dev/null @@ -1,18 +0,0 @@ -export default function nice(domain, interval) { - domain = domain.slice(); - - var i0 = 0, - i1 = domain.length - 1, - x0 = domain[i0], - x1 = domain[i1], - t; - - if (x1 < x0) { - t = i0, i0 = i1, i1 = t; - t = x0, x0 = x1, x1 = t; - } - - domain[i0] = interval.floor(x0); - domain[i1] = interval.ceil(x1); - return domain; -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/number.js b/build_vtk_bundle/node_modules/d3-scale/src/number.js deleted file mode 100644 index d185907f..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/number.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function number(x) { - return +x; -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/ordinal.js b/build_vtk_bundle/node_modules/d3-scale/src/ordinal.js deleted file mode 100644 index 74152805..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/ordinal.js +++ /dev/null @@ -1,46 +0,0 @@ -import {InternMap} from "d3-array"; -import {initRange} from "./init.js"; - -export const implicit = Symbol("implicit"); - -export default function ordinal() { - var index = new InternMap(), - domain = [], - range = [], - unknown = implicit; - - function scale(d) { - let i = index.get(d); - if (i === undefined) { - if (unknown !== implicit) return unknown; - index.set(d, i = domain.push(d) - 1); - } - return range[i % range.length]; - } - - scale.domain = function(_) { - if (!arguments.length) return domain.slice(); - domain = [], index = new InternMap(); - for (const value of _) { - if (index.has(value)) continue; - index.set(value, domain.push(value) - 1); - } - return scale; - }; - - scale.range = function(_) { - return arguments.length ? (range = Array.from(_), scale) : range.slice(); - }; - - scale.unknown = function(_) { - return arguments.length ? (unknown = _, scale) : unknown; - }; - - scale.copy = function() { - return ordinal(domain, range).unknown(unknown); - }; - - initRange.apply(scale, arguments); - - return scale; -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/pow.js b/build_vtk_bundle/node_modules/d3-scale/src/pow.js deleted file mode 100644 index 8146f1c0..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/pow.js +++ /dev/null @@ -1,50 +0,0 @@ -import {linearish} from "./linear.js"; -import {copy, identity, transformer} from "./continuous.js"; -import {initRange} from "./init.js"; - -function transformPow(exponent) { - return function(x) { - return x < 0 ? -Math.pow(-x, exponent) : Math.pow(x, exponent); - }; -} - -function transformSqrt(x) { - return x < 0 ? -Math.sqrt(-x) : Math.sqrt(x); -} - -function transformSquare(x) { - return x < 0 ? -x * x : x * x; -} - -export function powish(transform) { - var scale = transform(identity, identity), - exponent = 1; - - function rescale() { - return exponent === 1 ? transform(identity, identity) - : exponent === 0.5 ? transform(transformSqrt, transformSquare) - : transform(transformPow(exponent), transformPow(1 / exponent)); - } - - scale.exponent = function(_) { - return arguments.length ? (exponent = +_, rescale()) : exponent; - }; - - return linearish(scale); -} - -export default function pow() { - var scale = powish(transformer()); - - scale.copy = function() { - return copy(scale, pow()).exponent(scale.exponent()); - }; - - initRange.apply(scale, arguments); - - return scale; -} - -export function sqrt() { - return pow.apply(null, arguments).exponent(0.5); -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/quantile.js b/build_vtk_bundle/node_modules/d3-scale/src/quantile.js deleted file mode 100644 index 303f935a..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/quantile.js +++ /dev/null @@ -1,57 +0,0 @@ -import {ascending, bisect, quantileSorted as threshold} from "d3-array"; -import {initRange} from "./init.js"; - -export default function quantile() { - var domain = [], - range = [], - thresholds = [], - unknown; - - function rescale() { - var i = 0, n = Math.max(1, range.length); - thresholds = new Array(n - 1); - while (++i < n) thresholds[i - 1] = threshold(domain, i / n); - return scale; - } - - function scale(x) { - return x == null || isNaN(x = +x) ? unknown : range[bisect(thresholds, x)]; - } - - scale.invertExtent = function(y) { - var i = range.indexOf(y); - return i < 0 ? [NaN, NaN] : [ - i > 0 ? thresholds[i - 1] : domain[0], - i < thresholds.length ? thresholds[i] : domain[domain.length - 1] - ]; - }; - - scale.domain = function(_) { - if (!arguments.length) return domain.slice(); - domain = []; - for (let d of _) if (d != null && !isNaN(d = +d)) domain.push(d); - domain.sort(ascending); - return rescale(); - }; - - scale.range = function(_) { - return arguments.length ? (range = Array.from(_), rescale()) : range.slice(); - }; - - scale.unknown = function(_) { - return arguments.length ? (unknown = _, scale) : unknown; - }; - - scale.quantiles = function() { - return thresholds.slice(); - }; - - scale.copy = function() { - return quantile() - .domain(domain) - .range(range) - .unknown(unknown); - }; - - return initRange.apply(scale, arguments); -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/quantize.js b/build_vtk_bundle/node_modules/d3-scale/src/quantize.js deleted file mode 100644 index 0f540035..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/quantize.js +++ /dev/null @@ -1,56 +0,0 @@ -import {bisect} from "d3-array"; -import {linearish} from "./linear.js"; -import {initRange} from "./init.js"; - -export default function quantize() { - var x0 = 0, - x1 = 1, - n = 1, - domain = [0.5], - range = [0, 1], - unknown; - - function scale(x) { - return x != null && x <= x ? range[bisect(domain, x, 0, n)] : unknown; - } - - function rescale() { - var i = -1; - domain = new Array(n); - while (++i < n) domain[i] = ((i + 1) * x1 - (i - n) * x0) / (n + 1); - return scale; - } - - scale.domain = function(_) { - return arguments.length ? ([x0, x1] = _, x0 = +x0, x1 = +x1, rescale()) : [x0, x1]; - }; - - scale.range = function(_) { - return arguments.length ? (n = (range = Array.from(_)).length - 1, rescale()) : range.slice(); - }; - - scale.invertExtent = function(y) { - var i = range.indexOf(y); - return i < 0 ? [NaN, NaN] - : i < 1 ? [x0, domain[0]] - : i >= n ? [domain[n - 1], x1] - : [domain[i - 1], domain[i]]; - }; - - scale.unknown = function(_) { - return arguments.length ? (unknown = _, scale) : scale; - }; - - scale.thresholds = function() { - return domain.slice(); - }; - - scale.copy = function() { - return quantize() - .domain([x0, x1]) - .range(range) - .unknown(unknown); - }; - - return initRange.apply(linearish(scale), arguments); -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/radial.js b/build_vtk_bundle/node_modules/d3-scale/src/radial.js deleted file mode 100644 index 5c00cc6d..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/radial.js +++ /dev/null @@ -1,63 +0,0 @@ -import continuous from "./continuous.js"; -import {initRange} from "./init.js"; -import {linearish} from "./linear.js"; -import number from "./number.js"; - -function square(x) { - return Math.sign(x) * x * x; -} - -function unsquare(x) { - return Math.sign(x) * Math.sqrt(Math.abs(x)); -} - -export default function radial() { - var squared = continuous(), - range = [0, 1], - round = false, - unknown; - - function scale(x) { - var y = unsquare(squared(x)); - return isNaN(y) ? unknown : round ? Math.round(y) : y; - } - - scale.invert = function(y) { - return squared.invert(square(y)); - }; - - scale.domain = function(_) { - return arguments.length ? (squared.domain(_), scale) : squared.domain(); - }; - - scale.range = function(_) { - return arguments.length ? (squared.range((range = Array.from(_, number)).map(square)), scale) : range.slice(); - }; - - scale.rangeRound = function(_) { - return scale.range(_).round(true); - }; - - scale.round = function(_) { - return arguments.length ? (round = !!_, scale) : round; - }; - - scale.clamp = function(_) { - return arguments.length ? (squared.clamp(_), scale) : squared.clamp(); - }; - - scale.unknown = function(_) { - return arguments.length ? (unknown = _, scale) : unknown; - }; - - scale.copy = function() { - return radial(squared.domain(), range) - .round(round) - .clamp(squared.clamp()) - .unknown(unknown); - }; - - initRange.apply(scale, arguments); - - return linearish(scale); -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/sequential.js b/build_vtk_bundle/node_modules/d3-scale/src/sequential.js deleted file mode 100644 index 547dc404..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/sequential.js +++ /dev/null @@ -1,107 +0,0 @@ -import {interpolate, interpolateRound} from "d3-interpolate"; -import {identity} from "./continuous.js"; -import {initInterpolator} from "./init.js"; -import {linearish} from "./linear.js"; -import {loggish} from "./log.js"; -import {symlogish} from "./symlog.js"; -import {powish} from "./pow.js"; - -function transformer() { - var x0 = 0, - x1 = 1, - t0, - t1, - k10, - transform, - interpolator = identity, - clamp = false, - unknown; - - function scale(x) { - return x == null || isNaN(x = +x) ? unknown : interpolator(k10 === 0 ? 0.5 : (x = (transform(x) - t0) * k10, clamp ? Math.max(0, Math.min(1, x)) : x)); - } - - scale.domain = function(_) { - return arguments.length ? ([x0, x1] = _, t0 = transform(x0 = +x0), t1 = transform(x1 = +x1), k10 = t0 === t1 ? 0 : 1 / (t1 - t0), scale) : [x0, x1]; - }; - - scale.clamp = function(_) { - return arguments.length ? (clamp = !!_, scale) : clamp; - }; - - scale.interpolator = function(_) { - return arguments.length ? (interpolator = _, scale) : interpolator; - }; - - function range(interpolate) { - return function(_) { - var r0, r1; - return arguments.length ? ([r0, r1] = _, interpolator = interpolate(r0, r1), scale) : [interpolator(0), interpolator(1)]; - }; - } - - scale.range = range(interpolate); - - scale.rangeRound = range(interpolateRound); - - scale.unknown = function(_) { - return arguments.length ? (unknown = _, scale) : unknown; - }; - - return function(t) { - transform = t, t0 = t(x0), t1 = t(x1), k10 = t0 === t1 ? 0 : 1 / (t1 - t0); - return scale; - }; -} - -export function copy(source, target) { - return target - .domain(source.domain()) - .interpolator(source.interpolator()) - .clamp(source.clamp()) - .unknown(source.unknown()); -} - -export default function sequential() { - var scale = linearish(transformer()(identity)); - - scale.copy = function() { - return copy(scale, sequential()); - }; - - return initInterpolator.apply(scale, arguments); -} - -export function sequentialLog() { - var scale = loggish(transformer()).domain([1, 10]); - - scale.copy = function() { - return copy(scale, sequentialLog()).base(scale.base()); - }; - - return initInterpolator.apply(scale, arguments); -} - -export function sequentialSymlog() { - var scale = symlogish(transformer()); - - scale.copy = function() { - return copy(scale, sequentialSymlog()).constant(scale.constant()); - }; - - return initInterpolator.apply(scale, arguments); -} - -export function sequentialPow() { - var scale = powish(transformer()); - - scale.copy = function() { - return copy(scale, sequentialPow()).exponent(scale.exponent()); - }; - - return initInterpolator.apply(scale, arguments); -} - -export function sequentialSqrt() { - return sequentialPow.apply(null, arguments).exponent(0.5); -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/sequentialQuantile.js b/build_vtk_bundle/node_modules/d3-scale/src/sequentialQuantile.js deleted file mode 100644 index 7437e558..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/sequentialQuantile.js +++ /dev/null @@ -1,38 +0,0 @@ -import {ascending, bisect, quantile} from "d3-array"; -import {identity} from "./continuous.js"; -import {initInterpolator} from "./init.js"; - -export default function sequentialQuantile() { - var domain = [], - interpolator = identity; - - function scale(x) { - if (x != null && !isNaN(x = +x)) return interpolator((bisect(domain, x, 1) - 1) / (domain.length - 1)); - } - - scale.domain = function(_) { - if (!arguments.length) return domain.slice(); - domain = []; - for (let d of _) if (d != null && !isNaN(d = +d)) domain.push(d); - domain.sort(ascending); - return scale; - }; - - scale.interpolator = function(_) { - return arguments.length ? (interpolator = _, scale) : interpolator; - }; - - scale.range = function() { - return domain.map((d, i) => interpolator(i / (domain.length - 1))); - }; - - scale.quantiles = function(n) { - return Array.from({length: n + 1}, (_, i) => quantile(domain, i / n)); - }; - - scale.copy = function() { - return sequentialQuantile(interpolator).domain(domain); - }; - - return initInterpolator.apply(scale, arguments); -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/symlog.js b/build_vtk_bundle/node_modules/d3-scale/src/symlog.js deleted file mode 100644 index 125fa7b5..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/symlog.js +++ /dev/null @@ -1,35 +0,0 @@ -import {linearish} from "./linear.js"; -import {copy, transformer} from "./continuous.js"; -import {initRange} from "./init.js"; - -function transformSymlog(c) { - return function(x) { - return Math.sign(x) * Math.log1p(Math.abs(x / c)); - }; -} - -function transformSymexp(c) { - return function(x) { - return Math.sign(x) * Math.expm1(Math.abs(x)) * c; - }; -} - -export function symlogish(transform) { - var c = 1, scale = transform(transformSymlog(c), transformSymexp(c)); - - scale.constant = function(_) { - return arguments.length ? transform(transformSymlog(c = +_), transformSymexp(c)) : c; - }; - - return linearish(scale); -} - -export default function symlog() { - var scale = symlogish(transformer()); - - scale.copy = function() { - return copy(scale, symlog()).constant(scale.constant()); - }; - - return initRange.apply(scale, arguments); -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/threshold.js b/build_vtk_bundle/node_modules/d3-scale/src/threshold.js deleted file mode 100644 index bbdbe392..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/threshold.js +++ /dev/null @@ -1,39 +0,0 @@ -import {bisect} from "d3-array"; -import {initRange} from "./init.js"; - -export default function threshold() { - var domain = [0.5], - range = [0, 1], - unknown, - n = 1; - - function scale(x) { - return x != null && x <= x ? range[bisect(domain, x, 0, n)] : unknown; - } - - scale.domain = function(_) { - return arguments.length ? (domain = Array.from(_), n = Math.min(domain.length, range.length - 1), scale) : domain.slice(); - }; - - scale.range = function(_) { - return arguments.length ? (range = Array.from(_), n = Math.min(domain.length, range.length - 1), scale) : range.slice(); - }; - - scale.invertExtent = function(y) { - var i = range.indexOf(y); - return [domain[i - 1], domain[i]]; - }; - - scale.unknown = function(_) { - return arguments.length ? (unknown = _, scale) : unknown; - }; - - scale.copy = function() { - return threshold() - .domain(domain) - .range(range) - .unknown(unknown); - }; - - return initRange.apply(scale, arguments); -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/tickFormat.js b/build_vtk_bundle/node_modules/d3-scale/src/tickFormat.js deleted file mode 100644 index 15fc54ef..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/tickFormat.js +++ /dev/null @@ -1,29 +0,0 @@ -import {tickStep} from "d3-array"; -import {format, formatPrefix, formatSpecifier, precisionFixed, precisionPrefix, precisionRound} from "d3-format"; - -export default function tickFormat(start, stop, count, specifier) { - var step = tickStep(start, stop, count), - precision; - specifier = formatSpecifier(specifier == null ? ",f" : specifier); - switch (specifier.type) { - case "s": { - var value = Math.max(Math.abs(start), Math.abs(stop)); - if (specifier.precision == null && !isNaN(precision = precisionPrefix(step, value))) specifier.precision = precision; - return formatPrefix(specifier, value); - } - case "": - case "e": - case "g": - case "p": - case "r": { - if (specifier.precision == null && !isNaN(precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === "e"); - break; - } - case "f": - case "%": { - if (specifier.precision == null && !isNaN(precision = precisionFixed(step))) specifier.precision = precision - (specifier.type === "%") * 2; - break; - } - } - return format(specifier); -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/time.js b/build_vtk_bundle/node_modules/d3-scale/src/time.js deleted file mode 100644 index d1ea678f..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/time.js +++ /dev/null @@ -1,71 +0,0 @@ -import {timeYear, timeMonth, timeWeek, timeDay, timeHour, timeMinute, timeSecond, timeTicks, timeTickInterval} from "d3-time"; -import {timeFormat} from "d3-time-format"; -import continuous, {copy} from "./continuous.js"; -import {initRange} from "./init.js"; -import nice from "./nice.js"; - -function date(t) { - return new Date(t); -} - -function number(t) { - return t instanceof Date ? +t : +new Date(+t); -} - -export function calendar(ticks, tickInterval, year, month, week, day, hour, minute, second, format) { - var scale = continuous(), - invert = scale.invert, - domain = scale.domain; - - var formatMillisecond = format(".%L"), - formatSecond = format(":%S"), - formatMinute = format("%I:%M"), - formatHour = format("%I %p"), - formatDay = format("%a %d"), - formatWeek = format("%b %d"), - formatMonth = format("%B"), - formatYear = format("%Y"); - - function tickFormat(date) { - return (second(date) < date ? formatMillisecond - : minute(date) < date ? formatSecond - : hour(date) < date ? formatMinute - : day(date) < date ? formatHour - : month(date) < date ? (week(date) < date ? formatDay : formatWeek) - : year(date) < date ? formatMonth - : formatYear)(date); - } - - scale.invert = function(y) { - return new Date(invert(y)); - }; - - scale.domain = function(_) { - return arguments.length ? domain(Array.from(_, number)) : domain().map(date); - }; - - scale.ticks = function(interval) { - var d = domain(); - return ticks(d[0], d[d.length - 1], interval == null ? 10 : interval); - }; - - scale.tickFormat = function(count, specifier) { - return specifier == null ? tickFormat : format(specifier); - }; - - scale.nice = function(interval) { - var d = domain(); - if (!interval || typeof interval.range !== "function") interval = tickInterval(d[0], d[d.length - 1], interval == null ? 10 : interval); - return interval ? domain(nice(d, interval)) : scale; - }; - - scale.copy = function() { - return copy(scale, calendar(ticks, tickInterval, year, month, week, day, hour, minute, second, format)); - }; - - return scale; -} - -export default function time() { - return initRange.apply(calendar(timeTicks, timeTickInterval, timeYear, timeMonth, timeWeek, timeDay, timeHour, timeMinute, timeSecond, timeFormat).domain([new Date(2000, 0, 1), new Date(2000, 0, 2)]), arguments); -} diff --git a/build_vtk_bundle/node_modules/d3-scale/src/utcTime.js b/build_vtk_bundle/node_modules/d3-scale/src/utcTime.js deleted file mode 100644 index 9741716b..00000000 --- a/build_vtk_bundle/node_modules/d3-scale/src/utcTime.js +++ /dev/null @@ -1,8 +0,0 @@ -import {utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, utcSecond, utcTicks, utcTickInterval} from "d3-time"; -import {utcFormat} from "d3-time-format"; -import {calendar} from "./time.js"; -import {initRange} from "./init.js"; - -export default function utcTime() { - return initRange.apply(calendar(utcTicks, utcTickInterval, utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, utcSecond, utcFormat).domain([Date.UTC(2000, 0, 1), Date.UTC(2000, 0, 2)]), arguments); -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/LICENSE b/build_vtk_bundle/node_modules/d3-time-format/LICENSE deleted file mode 100644 index b0145150..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/LICENSE +++ /dev/null @@ -1,13 +0,0 @@ -Copyright 2010-2021 Mike Bostock - -Permission to use, copy, modify, and/or distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright notice -and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS -OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -THIS SOFTWARE. diff --git a/build_vtk_bundle/node_modules/d3-time-format/README.md b/build_vtk_bundle/node_modules/d3-time-format/README.md deleted file mode 100644 index 6388cc15..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/README.md +++ /dev/null @@ -1,209 +0,0 @@ -# d3-time-format - -This module provides a JavaScript implementation of the venerable [strptime](http://pubs.opengroup.org/onlinepubs/009695399/functions/strptime.html) and [strftime](http://pubs.opengroup.org/onlinepubs/007908799/xsh/strftime.html) functions from the C standard library, and can be used to parse or format [dates](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) in a variety of locale-specific representations. To format a date, create a [formatter](#locale_format) from a specifier (a string with the desired format *directives*, indicated by `%`); then pass a date to the formatter, which returns a string. For example, to convert the current date to a human-readable string: - -```js -const formatTime = d3.timeFormat("%B %d, %Y"); -formatTime(new Date); // "June 30, 2015" -``` - -Likewise, to convert a string back to a date, create a [parser](#locale_parse): - -```js -const parseTime = d3.timeParse("%B %d, %Y"); -parseTime("June 30, 2015"); // Tue Jun 30 2015 00:00:00 GMT-0700 (PDT) -``` - -You can implement more elaborate conditional time formats, too. For example, here’s a [multi-scale time format](https://bl.ocks.org/mbostock/4149176) using [time intervals](https://github.com/d3/d3-time): - -```js -const formatMillisecond = d3.timeFormat(".%L"), - formatSecond = d3.timeFormat(":%S"), - formatMinute = d3.timeFormat("%I:%M"), - formatHour = d3.timeFormat("%I %p"), - formatDay = d3.timeFormat("%a %d"), - formatWeek = d3.timeFormat("%b %d"), - formatMonth = d3.timeFormat("%B"), - formatYear = d3.timeFormat("%Y"); - -function multiFormat(date) { - return (d3.timeSecond(date) < date ? formatMillisecond - : d3.timeMinute(date) < date ? formatSecond - : d3.timeHour(date) < date ? formatMinute - : d3.timeDay(date) < date ? formatHour - : d3.timeMonth(date) < date ? (d3.timeWeek(date) < date ? formatDay : formatWeek) - : d3.timeYear(date) < date ? formatMonth - : formatYear)(date); -} -``` - -This module is used by D3 [time scales](https://github.com/d3/d3-scale/blob/main/README.md#time-scales) to generate human-readable ticks. - -## Installing - -If you use npm, `npm install d3-time-format`. You can also download the [latest release on GitHub](https://github.com/d3/d3-time-format/releases/latest). For vanilla HTML in modern browsers, import d3-time-format from Skypack: - -```html - -``` - -For legacy environments, you can load d3-time-format’s UMD bundle from an npm-based CDN such as jsDelivr; a `d3` global is exported: - -```html - - - - - -Locale files are published to npm and can be loaded using [d3.json](https://github.com/d3/d3-fetch/blob/main/README.md#json). For example, to set Russian as the default locale: - -```js -d3.json("https://cdn.jsdelivr.net/npm/d3-time-format@3/locale/ru-RU.json").then(locale => { - d3.timeFormatDefaultLocale(locale); - - const format = d3.timeFormat("%c"); - - console.log(format(new Date)); // понедельник, 5 декабря 2016 г. 10:31:59 -}); -``` - -## API Reference - -# d3.timeFormat(specifier) · [Source](https://github.com/d3/d3-time-format/blob/main/src/defaultLocale.js) - -An alias for [*locale*.format](#locale_format) on the [default locale](#timeFormatDefaultLocale). - -# d3.timeParse(specifier) · [Source](https://github.com/d3/d3-time-format/blob/main/src/defaultLocale.js) - -An alias for [*locale*.parse](#locale_parse) on the [default locale](#timeFormatDefaultLocale). - -# d3.utcFormat(specifier) · [Source](https://github.com/d3/d3-time-format/blob/main/src/defaultLocale.js) - -An alias for [*locale*.utcFormat](#locale_utcFormat) on the [default locale](#timeFormatDefaultLocale). - -# d3.utcParse(specifier) · [Source](https://github.com/d3/d3-time-format/blob/main/src/defaultLocale.js) - -An alias for [*locale*.utcParse](#locale_utcParse) on the [default locale](#timeFormatDefaultLocale). - -# d3.isoFormat · [Source](https://github.com/d3/d3-time-format/blob/main/src/isoFormat.js) - -The full [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) UTC time formatter. Where available, this method will use [Date.toISOString](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/toISOString) to format. - -# d3.isoParse · [Source](https://github.com/d3/d3-time-format/blob/main/src/isoParse.js) - -The full [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) UTC time parser. Where available, this method will use the [Date constructor](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date) to parse strings. If you depend on strict validation of the input format according to ISO 8601, you should construct a [UTC parser function](#utcParse): - -```js -const strictIsoParse = d3.utcParse("%Y-%m-%dT%H:%M:%S.%LZ"); -``` - -# locale.format(specifier) · [Source](https://github.com/d3/d3-time-format/blob/main/src/locale.js) - -Returns a new formatter for the given string *specifier*. The specifier string may contain the following directives: - -* `%a` - abbreviated weekday name.* -* `%A` - full weekday name.* -* `%b` - abbreviated month name.* -* `%B` - full month name.* -* `%c` - the locale’s date and time, such as `%x, %X`.* -* `%d` - zero-padded day of the month as a decimal number [01,31]. -* `%e` - space-padded day of the month as a decimal number [ 1,31]; equivalent to `%_d`. -* `%f` - microseconds as a decimal number [000000, 999999]. -* `%g` - ISO 8601 week-based year without century as a decimal number [00,99]. -* `%G` - ISO 8601 week-based year with century as a decimal number. -* `%H` - hour (24-hour clock) as a decimal number [00,23]. -* `%I` - hour (12-hour clock) as a decimal number [01,12]. -* `%j` - day of the year as a decimal number [001,366]. -* `%m` - month as a decimal number [01,12]. -* `%M` - minute as a decimal number [00,59]. -* `%L` - milliseconds as a decimal number [000, 999]. -* `%p` - either AM or PM.* -* `%q` - quarter of the year as a decimal number [1,4]. -* `%Q` - milliseconds since UNIX epoch. -* `%s` - seconds since UNIX epoch. -* `%S` - second as a decimal number [00,61]. -* `%u` - Monday-based (ISO 8601) weekday as a decimal number [1,7]. -* `%U` - Sunday-based week of the year as a decimal number [00,53]. -* `%V` - ISO 8601 week of the year as a decimal number [01, 53]. -* `%w` - Sunday-based weekday as a decimal number [0,6]. -* `%W` - Monday-based week of the year as a decimal number [00,53]. -* `%x` - the locale’s date, such as `%-m/%-d/%Y`.* -* `%X` - the locale’s time, such as `%-I:%M:%S %p`.* -* `%y` - year without century as a decimal number [00,99]. -* `%Y` - year with century as a decimal number, such as `1999`. -* `%Z` - time zone offset, such as `-0700`, `-07:00`, `-07`, or `Z`. -* `%%` - a literal percent sign (`%`). - -Directives marked with an asterisk (\*) may be affected by the [locale definition](#locales). - -For `%U`, all days in a new year preceding the first Sunday are considered to be in week 0. For `%W`, all days in a new year preceding the first Monday are considered to be in week 0. Week numbers are computed using [*interval*.count](https://github.com/d3/d3-time/blob/main/README.md#interval_count). For example, 2015-52 and 2016-00 represent Monday, December 28, 2015, while 2015-53 and 2016-01 represent Monday, January 4, 2016. This differs from the [ISO week date](https://en.wikipedia.org/wiki/ISO_week_date) specification (`%V`), which uses a more complicated definition! - -For `%V`,`%g` and `%G`, per the [strftime man page](http://man7.org/linux/man-pages/man3/strftime.3.html): - -> In this system, weeks start on a Monday, and are numbered from 01, for the first week, up to 52 or 53, for the last week. Week 1 is the first week where four or more days fall within the new year (or, synonymously, week 01 is: the first week of the year that contains a Thursday; or, the week that has 4 January in it). If the ISO week number belongs to the previous or next year, that year is used instead. - -The `%` sign indicating a directive may be immediately followed by a padding modifier: - -* `0` - zero-padding -* `_` - space-padding -* `-` - disable padding - -If no padding modifier is specified, the default is `0` for all directives except `%e`, which defaults to `_`. (In some implementations of strftime and strptime, a directive may include an optional field width or precision; this feature is not yet implemented.) - -The returned function formats a specified *[date](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date)*, returning the corresponding string. - -```js -const formatMonth = d3.timeFormat("%B"), - formatDay = d3.timeFormat("%A"), - date = new Date(2014, 4, 1); // Thu May 01 2014 00:00:00 GMT-0700 (PDT) - -formatMonth(date); // "May" -formatDay(date); // "Thursday" -``` - -# locale.parse(specifier) · [Source](https://github.com/d3/d3-time-format/blob/main/src/locale.js) - -Returns a new parser for the given string *specifier*. The specifier string may contain the same directives as [*locale*.format](#locale_format). The `%d` and `%e` directives are considered equivalent for parsing. - -The returned function parses a specified *string*, returning the corresponding [date](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date) or null if the string could not be parsed according to this format’s specifier. Parsing is strict: if the specified string does not exactly match the associated specifier, this method returns null. For example, if the associated specifier is `%Y-%m-%dT%H:%M:%SZ`, then the string `"2011-07-01T19:15:28Z"` will be parsed as expected, but `"2011-07-01T19:15:28"`, `"2011-07-01 19:15:28"` and `"2011-07-01"` will return null. (Note that the literal `Z` here is different from the time zone offset directive `%Z`.) If a more flexible parser is desired, try multiple formats sequentially until one returns non-null. - -# locale.utcFormat(specifier) · [Source](https://github.com/d3/d3-time-format/blob/main/src/locale.js) - -Equivalent to [*locale*.format](#locale_format), except all directives are interpreted as [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time) rather than local time. - -# locale.utcParse(specifier) · [Source](https://github.com/d3/d3-time-format/blob/main/src/locale.js) - -Equivalent to [*locale*.parse](#locale_parse), except all directives are interpreted as [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time) rather than local time. - -### Locales - -# d3.timeFormatLocale(definition) · [Source](https://github.com/d3/d3-time-format/blob/main/src/locale.js) - -Returns a *locale* object for the specified *definition* with [*locale*.format](#locale_format), [*locale*.parse](#locale_parse), [*locale*.utcFormat](#locale_utcFormat), [*locale*.utcParse](#locale_utcParse) methods. The *definition* must include the following properties: - -* `dateTime` - the date and time (`%c`) format specifier (e.g., `"%a %b %e %X %Y"`). -* `date` - the date (`%x`) format specifier (e.g., `"%m/%d/%Y"`). -* `time` - the time (`%X`) format specifier (e.g., `"%H:%M:%S"`). -* `periods` - the A.M. and P.M. equivalents (e.g., `["AM", "PM"]`). -* `days` - the full names of the weekdays, starting with Sunday. -* `shortDays` - the abbreviated names of the weekdays, starting with Sunday. -* `months` - the full names of the months (starting with January). -* `shortMonths` - the abbreviated names of the months (starting with January). - -For an example, see [Localized Time Axis II](https://bl.ocks.org/mbostock/805115ebaa574e771db1875a6d828949). - -# d3.timeFormatDefaultLocale(definition) · [Source](https://github.com/d3/d3-time-format/blob/main/src/defaultLocale.js) - -Equivalent to [d3.timeFormatLocale](#timeFormatLocale), except it also redefines [d3.timeFormat](#timeFormat), [d3.timeParse](#timeParse), [d3.utcFormat](#utcFormat) and [d3.utcParse](#utcParse) to the new locale’s [*locale*.format](#locale_format), [*locale*.parse](#locale_parse), [*locale*.utcFormat](#locale_utcFormat) and [*locale*.utcParse](#locale_utcParse). If you do not set a default locale, it defaults to [U.S. English](https://github.com/d3/d3-time-format/blob/main/locale/en-US.json). - -For an example, see [Localized Time Axis](https://bl.ocks.org/mbostock/6f1cc065d4d172bcaf322e399aa8d62f). diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/ar-EG.json b/build_vtk_bundle/node_modules/d3-time-format/locale/ar-EG.json deleted file mode 100644 index 8ac02650..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/ar-EG.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%x, %X", - "date": "%-d/%-m/%Y", - "time": "%-I:%M:%S %p", - "periods": ["ص", "م"], - "days": ["الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"], - "shortDays": ["أحد", "إثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], - "months": ["يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"], - "shortMonths": ["يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/ar-SY.json b/build_vtk_bundle/node_modules/d3-time-format/locale/ar-SY.json deleted file mode 100644 index 866fa5ef..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/ar-SY.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%x, %X", - "date": "%-d/%-m/%Y", - "time": "%-I:%M:%S %p", - "periods": ["ص", "م"], - "days": ["الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"], - "shortDays": ["أحد", "إثنين", "ثلاثاء", "أربعاء", "خميس", "جمعة", "سبت"], - "months": ["كانون الثاني", "شباط", "آذار", "نيسان", "أيار", "حزيران", "تموز", "آب", "أيلول", "تشرين الأول", "تشرين الثاني", "كانون الأول"], - "shortMonths": ["ك٢", "شباط", "آذار", "نيسان", "أيار", "حزيران", "تموز", "آب", "أيلول", "ت١", "ت٢", "ك١"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/ca-ES.json b/build_vtk_bundle/node_modules/d3-time-format/locale/ca-ES.json deleted file mode 100644 index a2708735..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/ca-ES.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%A, %e de %B de %Y, %X", - "date": "%d/%m/%Y", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"], - "shortDays": ["dg.", "dl.", "dt.", "dc.", "dj.", "dv.", "ds."], - "months": ["gener", "febrer", "març", "abril", "maig", "juny", "juliol", "agost", "setembre", "octubre", "novembre", "desembre"], - "shortMonths": ["gen.", "febr.", "març", "abr.", "maig", "juny", "jul.", "ag.", "set.", "oct.", "nov.", "des."] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/cs-CZ.json b/build_vtk_bundle/node_modules/d3-time-format/locale/cs-CZ.json deleted file mode 100644 index ced34ea5..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/cs-CZ.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%A,%e.%B %Y, %X", - "date": "%-d.%-m.%Y", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["neděle", "pondělí", "úterý", "středa", "čvrtek", "pátek", "sobota"], - "shortDays": ["ne.", "po.", "út.", "st.", "čt.", "pá.", "so."], - "months": ["leden", "únor", "březen", "duben", "květen", "červen", "červenec", "srpen", "září", "říjen", "listopad", "prosinec"], - "shortMonths": ["led", "úno", "břez", "dub", "kvě", "čer", "červ", "srp", "zář", "říj", "list", "pros"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/da-DK.json b/build_vtk_bundle/node_modules/d3-time-format/locale/da-DK.json deleted file mode 100644 index f0c2349c..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/da-DK.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%A den %d %B %Y %X", - "date": "%d-%m-%Y", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], - "shortDays": ["søn", "man", "tir", "ons", "tor", "fre", "lør"], - "months": ["januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december"], - "shortMonths": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/de-CH.json b/build_vtk_bundle/node_modules/d3-time-format/locale/de-CH.json deleted file mode 100644 index 466b749b..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/de-CH.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%A, der %e. %B %Y, %X", - "date": "%d.%m.%Y", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], - "shortDays": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], - "months": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"], - "shortMonths": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/de-DE.json b/build_vtk_bundle/node_modules/d3-time-format/locale/de-DE.json deleted file mode 100644 index 466b749b..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/de-DE.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%A, der %e. %B %Y, %X", - "date": "%d.%m.%Y", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], - "shortDays": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], - "months": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"], - "shortMonths": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/en-CA.json b/build_vtk_bundle/node_modules/d3-time-format/locale/en-CA.json deleted file mode 100644 index 5c13ae3c..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/en-CA.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%a %b %e %X %Y", - "date": "%Y-%m-%d", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], - "shortDays": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], - "months": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], - "shortMonths": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/en-GB.json b/build_vtk_bundle/node_modules/d3-time-format/locale/en-GB.json deleted file mode 100644 index 9f651c5c..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/en-GB.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%a %e %b %X %Y", - "date": "%d/%m/%Y", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], - "shortDays": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], - "months": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], - "shortMonths": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/en-US.json b/build_vtk_bundle/node_modules/d3-time-format/locale/en-US.json deleted file mode 100644 index a7ac9513..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/en-US.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%x, %X", - "date": "%-m/%-d/%Y", - "time": "%-I:%M:%S %p", - "periods": ["AM", "PM"], - "days": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], - "shortDays": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], - "months": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], - "shortMonths": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/es-ES.json b/build_vtk_bundle/node_modules/d3-time-format/locale/es-ES.json deleted file mode 100644 index 8c5f754f..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/es-ES.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%A, %e de %B de %Y, %X", - "date": "%d/%m/%Y", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], - "shortDays": ["dom", "lun", "mar", "mié", "jue", "vie", "sáb"], - "months": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre"], - "shortMonths": ["ene", "feb", "mar", "abr", "may", "jun", "jul", "ago", "sep", "oct", "nov", "dic"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/es-MX.json b/build_vtk_bundle/node_modules/d3-time-format/locale/es-MX.json deleted file mode 100644 index 4dc2077e..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/es-MX.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%x, %X", - "date": "%d/%m/%Y", - "time": "%-I:%M:%S %p", - "periods": ["AM", "PM"], - "days": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], - "shortDays": ["dom", "lun", "mar", "mié", "jue", "vie", "sáb"], - "months": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre"], - "shortMonths": ["ene", "feb", "mar", "abr", "may", "jun", "jul", "ago", "sep", "oct", "nov", "dic"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/fa-IR.json b/build_vtk_bundle/node_modules/d3-time-format/locale/fa-IR.json deleted file mode 100644 index badff07b..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/fa-IR.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%x, %X", - "date": "%-d/%-m/%Y", - "time": "%-I:%M:%S %p", - "periods": ["صبح", "عصر"], - "days": ["یکشنبه", "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"], - "shortDays": ["یکشنبه", "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"], - "months": ["ژانویه", "فوریه", "مارس", "آوریل", "مه", "ژوئن", "ژوئیه", "اوت", "سپتامبر", "اکتبر", "نوامبر", "دسامبر"], - "shortMonths": ["ژانویه", "فوریه", "مارس", "آوریل", "مه", "ژوئن", "ژوئیه", "اوت", "سپتامبر", "اکتبر", "نوامبر", "دسامبر"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/fi-FI.json b/build_vtk_bundle/node_modules/d3-time-format/locale/fi-FI.json deleted file mode 100644 index 2422199e..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/fi-FI.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%A, %-d. %Bta %Y klo %X", - "date": "%-d.%-m.%Y", - "time": "%H:%M:%S", - "periods": ["a.m.", "p.m."], - "days": ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"], - "shortDays": ["Su", "Ma", "Ti", "Ke", "To", "Pe", "La"], - "months": ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu"], - "shortMonths": ["Tammi", "Helmi", "Maalis", "Huhti", "Touko", "Kesä", "Heinä", "Elo", "Syys", "Loka", "Marras", "Joulu"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/fr-CA.json b/build_vtk_bundle/node_modules/d3-time-format/locale/fr-CA.json deleted file mode 100644 index 1300cabd..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/fr-CA.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%a %e %b %Y %X", - "date": "%Y-%m-%d", - "time": "%H:%M:%S", - "periods": ["", ""], - "days": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], - "shortDays": ["dim", "lun", "mar", "mer", "jeu", "ven", "sam"], - "months": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"], - "shortMonths": ["jan", "fév", "mar", "avr", "mai", "jui", "jul", "aoû", "sep", "oct", "nov", "déc"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/fr-FR.json b/build_vtk_bundle/node_modules/d3-time-format/locale/fr-FR.json deleted file mode 100644 index 6ac05ee2..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/fr-FR.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%A %e %B %Y à %X", - "date": "%d/%m/%Y", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], - "shortDays": ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."], - "months": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"], - "shortMonths": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc."] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/he-IL.json b/build_vtk_bundle/node_modules/d3-time-format/locale/he-IL.json deleted file mode 100644 index 0ce27cdd..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/he-IL.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%A, %e ב%B %Y %X", - "date": "%d.%m.%Y", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["ראשון", "שני", "שלישי", "רביעי", "חמישי", "שישי", "שבת"], - "shortDays": ["א׳", "ב׳", "ג׳", "ד׳", "ה׳", "ו׳", "ש׳"], - "months": ["ינואר", "פברואר", "מרץ", "אפריל", "מאי", "יוני", "יולי", "אוגוסט", "ספטמבר", "אוקטובר", "נובמבר", "דצמבר"], - "shortMonths": ["ינו׳", "פבר׳", "מרץ", "אפר׳", "מאי", "יוני", "יולי", "אוג׳", "ספט׳", "אוק׳", "נוב׳", "דצמ׳"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/hr-HR.json b/build_vtk_bundle/node_modules/d3-time-format/locale/hr-HR.json deleted file mode 100644 index b82dea66..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/hr-HR.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%A, %e. %B %Y., %X", - "date": "%d. %m. %Y.", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["Nedjelja", "Ponedjeljak", "Utorak", "Srijeda", "Četvtrak", "Petak", "Subota"], - "shortDays": ["Ne", "Po", "Ut", "Sr", "Če", "Pe", "Su"], - "months": ["Siječanj", "Veljača", "Ožujak", "Travanj", "Svibanj", "Lipanj", "Srpanj", "Kolovoz", "Rujan", "Listopad", "Studeni", "Prosinac"], - "shortMonths": ["Sij", "Velj", "Ožu", "Tra", "Svi", "Lip", "Srp", "Kol", "Ruj", "Lis", "Stu", "Pro"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/hu-HU.json b/build_vtk_bundle/node_modules/d3-time-format/locale/hu-HU.json deleted file mode 100644 index d81acf22..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/hu-HU.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%Y. %B %-e., %A %X", - "date": "%Y. %m. %d.", - "time": "%H:%M:%S", - "periods": ["de.", "du."], - "days": ["vasárnap", "hétfő", "kedd", "szerda", "csütörtök", "péntek", "szombat"], - "shortDays": ["V", "H", "K", "Sze", "Cs", "P", "Szo"], - "months": ["január", "február", "március", "április", "május", "június", "július", "augusztus", "szeptember", "október", "november", "december"], - "shortMonths": ["jan.", "feb.", "már.", "ápr.", "máj.", "jún.", "júl.", "aug.", "szept.", "okt.", "nov.", "dec."] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/it-IT.json b/build_vtk_bundle/node_modules/d3-time-format/locale/it-IT.json deleted file mode 100644 index 0fc08e02..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/it-IT.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%A %e %B %Y, %X", - "date": "%d/%m/%Y", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato"], - "shortDays": ["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab"], - "months": ["Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"], - "shortMonths": ["Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/ja-JP.json b/build_vtk_bundle/node_modules/d3-time-format/locale/ja-JP.json deleted file mode 100644 index 72c460d7..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/ja-JP.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%x %a %X", - "date": "%Y/%m/%d", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], - "shortDays": ["日", "月", "火", "水", "木", "金", "土"], - "months": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], - "shortMonths": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/ko-KR.json b/build_vtk_bundle/node_modules/d3-time-format/locale/ko-KR.json deleted file mode 100644 index 7055666a..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/ko-KR.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%Y/%m/%d %a %X", - "date": "%Y/%m/%d", - "time": "%H:%M:%S", - "periods": ["오전", "오후"], - "days": ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"], - "shortDays": ["일", "월", "화", "수", "목", "금", "토"], - "months": ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"], - "shortMonths": ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/mk-MK.json b/build_vtk_bundle/node_modules/d3-time-format/locale/mk-MK.json deleted file mode 100644 index 4a47fd11..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/mk-MK.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%A, %e %B %Y г. %X", - "date": "%d.%m.%Y", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["недела", "понеделник", "вторник", "среда", "четврток", "петок", "сабота"], - "shortDays": ["нед", "пон", "вто", "сре", "чет", "пет", "саб"], - "months": ["јануари", "февруари", "март", "април", "мај", "јуни", "јули", "август", "септември", "октомври", "ноември", "декември"], - "shortMonths": ["јан", "фев", "мар", "апр", "мај", "јун", "јул", "авг", "сеп", "окт", "ное", "дек"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/nb-NO.json b/build_vtk_bundle/node_modules/d3-time-format/locale/nb-NO.json deleted file mode 100644 index a8bfd20e..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/nb-NO.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%A den %d. %B %Y %X", - "date": "%d.%m.%Y", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], - "shortDays": ["søn", "man", "tir", "ons", "tor", "fre", "lør"], - "months": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember"], - "shortMonths": ["jan", "feb", "mars", "apr", "mai", "juni", "juli", "aug", "sep", "okt", "nov", "des"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/nl-BE.json b/build_vtk_bundle/node_modules/d3-time-format/locale/nl-BE.json deleted file mode 100644 index 69d587e8..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/nl-BE.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%a %e %B %Y %X", - "date": "%d/%m/%Y", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], - "shortDays": ["zo", "ma", "di", "wo", "do", "vr", "za"], - "months": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"], - "shortMonths": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/nl-NL.json b/build_vtk_bundle/node_modules/d3-time-format/locale/nl-NL.json deleted file mode 100644 index 375b0feb..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/nl-NL.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%a %e %B %Y %X", - "date": "%d-%m-%Y", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], - "shortDays": ["zo", "ma", "di", "wo", "do", "vr", "za"], - "months": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"], - "shortMonths": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/pl-PL.json b/build_vtk_bundle/node_modules/d3-time-format/locale/pl-PL.json deleted file mode 100644 index 616b4cd1..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/pl-PL.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%A, %e %B %Y, %X", - "date": "%d/%m/%Y", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["Niedziela", "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Piątek", "Sobota"], - "shortDays": ["Niedz.", "Pon.", "Wt.", "Śr.", "Czw.", "Pt.", "Sob."], - "months": ["Styczeń", "Luty", "Marzec", "Kwiecień", "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień", "Październik", "Listopad", "Grudzień"], - "shortMonths": ["Stycz.", "Luty", "Marz.", "Kwie.", "Maj", "Czerw.", "Lipc.", "Sierp.", "Wrz.", "Paźdz.", "Listop.", "Grudz."] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/pt-BR.json b/build_vtk_bundle/node_modules/d3-time-format/locale/pt-BR.json deleted file mode 100644 index 4e9ff893..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/pt-BR.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%A, %e de %B de %Y. %X", - "date": "%d/%m/%Y", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"], - "shortDays": ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"], - "months": ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"], - "shortMonths": ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/ru-RU.json b/build_vtk_bundle/node_modules/d3-time-format/locale/ru-RU.json deleted file mode 100644 index c0423183..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/ru-RU.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%A, %e %B %Y г. %X", - "date": "%d.%m.%Y", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["воскресенье", "понедельник", "вторник", "среда", "четверг", "пятница", "суббота"], - "shortDays": ["вс", "пн", "вт", "ср", "чт", "пт", "сб"], - "months": ["января", "февраля", "марта", "апреля", "мая", "июня", "июля", "августа", "сентября", "октября", "ноября", "декабря"], - "shortMonths": ["янв", "фев", "мар", "апр", "май", "июн", "июл", "авг", "сен", "окт", "ноя", "дек"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/sv-SE.json b/build_vtk_bundle/node_modules/d3-time-format/locale/sv-SE.json deleted file mode 100644 index 23183880..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/sv-SE.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%A den %d %B %Y %X", - "date": "%Y-%m-%d", - "time": "%H:%M:%S", - "periods": ["fm", "em"], - "days": ["Söndag", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag"], - "shortDays": ["Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör"], - "months": ["Januari", "Februari", "Mars", "April", "Maj", "Juni", "Juli", "Augusti", "September", "Oktober", "November", "December"], - "shortMonths": ["Jan", "Feb", "Mar", "Apr", "Maj", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/tr-TR.json b/build_vtk_bundle/node_modules/d3-time-format/locale/tr-TR.json deleted file mode 100644 index ea0557e1..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/tr-TR.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%a %e %b %X %Y", - "date": "%d/%m/%Y", - "time": "%H:%M:%S", - "periods": ["AM", "PM"], - "days": ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"], - "shortDays": ["Paz", "Pzt", "Sal", "Çar", "Per", "Cum", "Cmt"], - "months": ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"], - "shortMonths": ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/uk-UA.json b/build_vtk_bundle/node_modules/d3-time-format/locale/uk-UA.json deleted file mode 100644 index 555eed4a..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/uk-UA.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%A, %e %B %Y р. %X", - "date": "%d.%m.%Y", - "time": "%H:%M:%S", - "periods": ["дп", "пп"], - "days": ["неділя", "понеділок", "вівторок", "середа", "четвер", "п'ятниця", "субота"], - "shortDays": ["нд", "пн", "вт", "ср", "чт", "пт", "сб"], - "months": ["січня", "лютого", "березня", "квітня", "травня", "червня", "липня", "серпня", "вересня", "жовтня", "листопада", "грудня"], - "shortMonths": ["січ.", "лют.", "бер.", "квіт.", "трав.", "черв.", "лип.", "серп.", "вер.", "жовт.", "лист.", "груд."] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/zh-CN.json b/build_vtk_bundle/node_modules/d3-time-format/locale/zh-CN.json deleted file mode 100644 index 762f212a..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/zh-CN.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%x %A %X", - "date": "%Y年%-m月%-d日", - "time": "%H:%M:%S", - "periods": ["上午", "下午"], - "days": ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], - "shortDays": ["周日", "周一", "周二", "周三", "周四", "周五", "周六"], - "months": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], - "shortMonths": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/locale/zh-TW.json b/build_vtk_bundle/node_modules/d3-time-format/locale/zh-TW.json deleted file mode 100644 index 767b2baf..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/locale/zh-TW.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "dateTime": "%x %A %X", - "date": "%Y年%-m月%-d日", - "time": "%H:%M:%S", - "periods": ["上午", "下午"], - "days": ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], - "shortDays": ["日", "一", "二", "三", "四", "五", "六"], - "months": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], - "shortMonths": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"] -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/package.json b/build_vtk_bundle/node_modules/d3-time-format/package.json deleted file mode 100644 index fbdac720..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/package.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "name": "d3-time-format", - "version": "4.1.0", - "description": "A JavaScript time formatter and parser inspired by strftime and strptime.", - "homepage": "https://d3js.org/d3-time-format/", - "repository": { - "type": "git", - "url": "https://github.com/d3/d3-time-format.git" - }, - "keywords": [ - "d3", - "d3-module", - "time", - "format", - "strftime", - "strptime" - ], - "license": "ISC", - "author": { - "name": "Mike Bostock", - "url": "http://bost.ocks.org/mike" - }, - "type": "module", - "files": [ - "dist/**/*.js", - "src/**/*.js", - "locale/*.json" - ], - "module": "src/index.js", - "main": "src/index.js", - "jsdelivr": "dist/d3-time-format.min.js", - "unpkg": "dist/d3-time-format.min.js", - "exports": { - ".": { - "umd": "./dist/d3-time-format.min.js", - "default": "./src/index.js" - }, - "./locale/*": "./locale/*.json" - }, - "sideEffects": [ - "./src/defaultLocale.js" - ], - "dependencies": { - "d3-time": "1 - 3" - }, - "devDependencies": { - "eslint": "8", - "mocha": "9", - "rollup": "2", - "rollup-plugin-terser": "7" - }, - "scripts": { - "test": "TZ=America/Los_Angeles mocha 'test/**/*-test.js' && eslint src test", - "prepublishOnly": "rm -rf dist && yarn test && rollup -c", - "postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../${npm_package_name}/dist/${npm_package_name}.js ${npm_package_name}.v${npm_package_version%%.*}.js && cp ../${npm_package_name}/dist/${npm_package_name}.min.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git add ${npm_package_name}.v${npm_package_version%%.*}.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git commit -m \"${npm_package_name} ${npm_package_version}\" && git push && cd -" - }, - "engines": { - "node": ">=12" - } -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/src/defaultLocale.js b/build_vtk_bundle/node_modules/d3-time-format/src/defaultLocale.js deleted file mode 100644 index d762db51..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/src/defaultLocale.js +++ /dev/null @@ -1,27 +0,0 @@ -import formatLocale from "./locale.js"; - -var locale; -export var timeFormat; -export var timeParse; -export var utcFormat; -export var utcParse; - -defaultLocale({ - dateTime: "%x, %X", - date: "%-m/%-d/%Y", - time: "%-I:%M:%S %p", - periods: ["AM", "PM"], - days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], - shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], - months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], - shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] -}); - -export default function defaultLocale(definition) { - locale = formatLocale(definition); - timeFormat = locale.format; - timeParse = locale.parse; - utcFormat = locale.utcFormat; - utcParse = locale.utcParse; - return locale; -} diff --git a/build_vtk_bundle/node_modules/d3-time-format/src/index.js b/build_vtk_bundle/node_modules/d3-time-format/src/index.js deleted file mode 100644 index 6c93971d..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/src/index.js +++ /dev/null @@ -1,4 +0,0 @@ -export {default as timeFormatDefaultLocale, timeFormat, timeParse, utcFormat, utcParse} from "./defaultLocale.js"; -export {default as timeFormatLocale} from "./locale.js"; -export {default as isoFormat} from "./isoFormat.js"; -export {default as isoParse} from "./isoParse.js"; diff --git a/build_vtk_bundle/node_modules/d3-time-format/src/isoFormat.js b/build_vtk_bundle/node_modules/d3-time-format/src/isoFormat.js deleted file mode 100644 index 43185a37..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/src/isoFormat.js +++ /dev/null @@ -1,13 +0,0 @@ -import {utcFormat} from "./defaultLocale.js"; - -export var isoSpecifier = "%Y-%m-%dT%H:%M:%S.%LZ"; - -function formatIsoNative(date) { - return date.toISOString(); -} - -var formatIso = Date.prototype.toISOString - ? formatIsoNative - : utcFormat(isoSpecifier); - -export default formatIso; diff --git a/build_vtk_bundle/node_modules/d3-time-format/src/isoParse.js b/build_vtk_bundle/node_modules/d3-time-format/src/isoParse.js deleted file mode 100644 index 381d1c96..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/src/isoParse.js +++ /dev/null @@ -1,13 +0,0 @@ -import {isoSpecifier} from "./isoFormat.js"; -import {utcParse} from "./defaultLocale.js"; - -function parseIsoNative(string) { - var date = new Date(string); - return isNaN(date) ? null : date; -} - -var parseIso = +new Date("2000-01-01T00:00:00.000Z") - ? parseIsoNative - : utcParse(isoSpecifier); - -export default parseIso; diff --git a/build_vtk_bundle/node_modules/d3-time-format/src/locale.js b/build_vtk_bundle/node_modules/d3-time-format/src/locale.js deleted file mode 100644 index cc0dac25..00000000 --- a/build_vtk_bundle/node_modules/d3-time-format/src/locale.js +++ /dev/null @@ -1,697 +0,0 @@ -import { - timeDay, - timeSunday, - timeMonday, - timeThursday, - timeYear, - utcDay, - utcSunday, - utcMonday, - utcThursday, - utcYear -} from "d3-time"; - -function localDate(d) { - if (0 <= d.y && d.y < 100) { - var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L); - date.setFullYear(d.y); - return date; - } - return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L); -} - -function utcDate(d) { - if (0 <= d.y && d.y < 100) { - var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L)); - date.setUTCFullYear(d.y); - return date; - } - return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L)); -} - -function newDate(y, m, d) { - return {y: y, m: m, d: d, H: 0, M: 0, S: 0, L: 0}; -} - -export default function formatLocale(locale) { - var locale_dateTime = locale.dateTime, - locale_date = locale.date, - locale_time = locale.time, - locale_periods = locale.periods, - locale_weekdays = locale.days, - locale_shortWeekdays = locale.shortDays, - locale_months = locale.months, - locale_shortMonths = locale.shortMonths; - - var periodRe = formatRe(locale_periods), - periodLookup = formatLookup(locale_periods), - weekdayRe = formatRe(locale_weekdays), - weekdayLookup = formatLookup(locale_weekdays), - shortWeekdayRe = formatRe(locale_shortWeekdays), - shortWeekdayLookup = formatLookup(locale_shortWeekdays), - monthRe = formatRe(locale_months), - monthLookup = formatLookup(locale_months), - shortMonthRe = formatRe(locale_shortMonths), - shortMonthLookup = formatLookup(locale_shortMonths); - - var formats = { - "a": formatShortWeekday, - "A": formatWeekday, - "b": formatShortMonth, - "B": formatMonth, - "c": null, - "d": formatDayOfMonth, - "e": formatDayOfMonth, - "f": formatMicroseconds, - "g": formatYearISO, - "G": formatFullYearISO, - "H": formatHour24, - "I": formatHour12, - "j": formatDayOfYear, - "L": formatMilliseconds, - "m": formatMonthNumber, - "M": formatMinutes, - "p": formatPeriod, - "q": formatQuarter, - "Q": formatUnixTimestamp, - "s": formatUnixTimestampSeconds, - "S": formatSeconds, - "u": formatWeekdayNumberMonday, - "U": formatWeekNumberSunday, - "V": formatWeekNumberISO, - "w": formatWeekdayNumberSunday, - "W": formatWeekNumberMonday, - "x": null, - "X": null, - "y": formatYear, - "Y": formatFullYear, - "Z": formatZone, - "%": formatLiteralPercent - }; - - var utcFormats = { - "a": formatUTCShortWeekday, - "A": formatUTCWeekday, - "b": formatUTCShortMonth, - "B": formatUTCMonth, - "c": null, - "d": formatUTCDayOfMonth, - "e": formatUTCDayOfMonth, - "f": formatUTCMicroseconds, - "g": formatUTCYearISO, - "G": formatUTCFullYearISO, - "H": formatUTCHour24, - "I": formatUTCHour12, - "j": formatUTCDayOfYear, - "L": formatUTCMilliseconds, - "m": formatUTCMonthNumber, - "M": formatUTCMinutes, - "p": formatUTCPeriod, - "q": formatUTCQuarter, - "Q": formatUnixTimestamp, - "s": formatUnixTimestampSeconds, - "S": formatUTCSeconds, - "u": formatUTCWeekdayNumberMonday, - "U": formatUTCWeekNumberSunday, - "V": formatUTCWeekNumberISO, - "w": formatUTCWeekdayNumberSunday, - "W": formatUTCWeekNumberMonday, - "x": null, - "X": null, - "y": formatUTCYear, - "Y": formatUTCFullYear, - "Z": formatUTCZone, - "%": formatLiteralPercent - }; - - var parses = { - "a": parseShortWeekday, - "A": parseWeekday, - "b": parseShortMonth, - "B": parseMonth, - "c": parseLocaleDateTime, - "d": parseDayOfMonth, - "e": parseDayOfMonth, - "f": parseMicroseconds, - "g": parseYear, - "G": parseFullYear, - "H": parseHour24, - "I": parseHour24, - "j": parseDayOfYear, - "L": parseMilliseconds, - "m": parseMonthNumber, - "M": parseMinutes, - "p": parsePeriod, - "q": parseQuarter, - "Q": parseUnixTimestamp, - "s": parseUnixTimestampSeconds, - "S": parseSeconds, - "u": parseWeekdayNumberMonday, - "U": parseWeekNumberSunday, - "V": parseWeekNumberISO, - "w": parseWeekdayNumberSunday, - "W": parseWeekNumberMonday, - "x": parseLocaleDate, - "X": parseLocaleTime, - "y": parseYear, - "Y": parseFullYear, - "Z": parseZone, - "%": parseLiteralPercent - }; - - // These recursive directive definitions must be deferred. - formats.x = newFormat(locale_date, formats); - formats.X = newFormat(locale_time, formats); - formats.c = newFormat(locale_dateTime, formats); - utcFormats.x = newFormat(locale_date, utcFormats); - utcFormats.X = newFormat(locale_time, utcFormats); - utcFormats.c = newFormat(locale_dateTime, utcFormats); - - function newFormat(specifier, formats) { - return function(date) { - var string = [], - i = -1, - j = 0, - n = specifier.length, - c, - pad, - format; - - if (!(date instanceof Date)) date = new Date(+date); - - while (++i < n) { - if (specifier.charCodeAt(i) === 37) { - string.push(specifier.slice(j, i)); - if ((pad = pads[c = specifier.charAt(++i)]) != null) c = specifier.charAt(++i); - else pad = c === "e" ? " " : "0"; - if (format = formats[c]) c = format(date, pad); - string.push(c); - j = i + 1; - } - } - - string.push(specifier.slice(j, i)); - return string.join(""); - }; - } - - function newParse(specifier, Z) { - return function(string) { - var d = newDate(1900, undefined, 1), - i = parseSpecifier(d, specifier, string += "", 0), - week, day; - if (i != string.length) return null; - - // If a UNIX timestamp is specified, return it. - if ("Q" in d) return new Date(d.Q); - if ("s" in d) return new Date(d.s * 1000 + ("L" in d ? d.L : 0)); - - // If this is utcParse, never use the local timezone. - if (Z && !("Z" in d)) d.Z = 0; - - // The am-pm flag is 0 for AM, and 1 for PM. - if ("p" in d) d.H = d.H % 12 + d.p * 12; - - // If the month was not specified, inherit from the quarter. - if (d.m === undefined) d.m = "q" in d ? d.q : 0; - - // Convert day-of-week and week-of-year to day-of-year. - if ("V" in d) { - if (d.V < 1 || d.V > 53) return null; - if (!("w" in d)) d.w = 1; - if ("Z" in d) { - week = utcDate(newDate(d.y, 0, 1)), day = week.getUTCDay(); - week = day > 4 || day === 0 ? utcMonday.ceil(week) : utcMonday(week); - week = utcDay.offset(week, (d.V - 1) * 7); - d.y = week.getUTCFullYear(); - d.m = week.getUTCMonth(); - d.d = week.getUTCDate() + (d.w + 6) % 7; - } else { - week = localDate(newDate(d.y, 0, 1)), day = week.getDay(); - week = day > 4 || day === 0 ? timeMonday.ceil(week) : timeMonday(week); - week = timeDay.offset(week, (d.V - 1) * 7); - d.y = week.getFullYear(); - d.m = week.getMonth(); - d.d = week.getDate() + (d.w + 6) % 7; - } - } else if ("W" in d || "U" in d) { - if (!("w" in d)) d.w = "u" in d ? d.u % 7 : "W" in d ? 1 : 0; - day = "Z" in d ? utcDate(newDate(d.y, 0, 1)).getUTCDay() : localDate(newDate(d.y, 0, 1)).getDay(); - d.m = 0; - d.d = "W" in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7; - } - - // If a time zone is specified, all fields are interpreted as UTC and then - // offset according to the specified time zone. - if ("Z" in d) { - d.H += d.Z / 100 | 0; - d.M += d.Z % 100; - return utcDate(d); - } - - // Otherwise, all fields are in local time. - return localDate(d); - }; - } - - function parseSpecifier(d, specifier, string, j) { - var i = 0, - n = specifier.length, - m = string.length, - c, - parse; - - while (i < n) { - if (j >= m) return -1; - c = specifier.charCodeAt(i++); - if (c === 37) { - c = specifier.charAt(i++); - parse = parses[c in pads ? specifier.charAt(i++) : c]; - if (!parse || ((j = parse(d, string, j)) < 0)) return -1; - } else if (c != string.charCodeAt(j++)) { - return -1; - } - } - - return j; - } - - function parsePeriod(d, string, i) { - var n = periodRe.exec(string.slice(i)); - return n ? (d.p = periodLookup.get(n[0].toLowerCase()), i + n[0].length) : -1; - } - - function parseShortWeekday(d, string, i) { - var n = shortWeekdayRe.exec(string.slice(i)); - return n ? (d.w = shortWeekdayLookup.get(n[0].toLowerCase()), i + n[0].length) : -1; - } - - function parseWeekday(d, string, i) { - var n = weekdayRe.exec(string.slice(i)); - return n ? (d.w = weekdayLookup.get(n[0].toLowerCase()), i + n[0].length) : -1; - } - - function parseShortMonth(d, string, i) { - var n = shortMonthRe.exec(string.slice(i)); - return n ? (d.m = shortMonthLookup.get(n[0].toLowerCase()), i + n[0].length) : -1; - } - - function parseMonth(d, string, i) { - var n = monthRe.exec(string.slice(i)); - return n ? (d.m = monthLookup.get(n[0].toLowerCase()), i + n[0].length) : -1; - } - - function parseLocaleDateTime(d, string, i) { - return parseSpecifier(d, locale_dateTime, string, i); - } - - function parseLocaleDate(d, string, i) { - return parseSpecifier(d, locale_date, string, i); - } - - function parseLocaleTime(d, string, i) { - return parseSpecifier(d, locale_time, string, i); - } - - function formatShortWeekday(d) { - return locale_shortWeekdays[d.getDay()]; - } - - function formatWeekday(d) { - return locale_weekdays[d.getDay()]; - } - - function formatShortMonth(d) { - return locale_shortMonths[d.getMonth()]; - } - - function formatMonth(d) { - return locale_months[d.getMonth()]; - } - - function formatPeriod(d) { - return locale_periods[+(d.getHours() >= 12)]; - } - - function formatQuarter(d) { - return 1 + ~~(d.getMonth() / 3); - } - - function formatUTCShortWeekday(d) { - return locale_shortWeekdays[d.getUTCDay()]; - } - - function formatUTCWeekday(d) { - return locale_weekdays[d.getUTCDay()]; - } - - function formatUTCShortMonth(d) { - return locale_shortMonths[d.getUTCMonth()]; - } - - function formatUTCMonth(d) { - return locale_months[d.getUTCMonth()]; - } - - function formatUTCPeriod(d) { - return locale_periods[+(d.getUTCHours() >= 12)]; - } - - function formatUTCQuarter(d) { - return 1 + ~~(d.getUTCMonth() / 3); - } - - return { - format: function(specifier) { - var f = newFormat(specifier += "", formats); - f.toString = function() { return specifier; }; - return f; - }, - parse: function(specifier) { - var p = newParse(specifier += "", false); - p.toString = function() { return specifier; }; - return p; - }, - utcFormat: function(specifier) { - var f = newFormat(specifier += "", utcFormats); - f.toString = function() { return specifier; }; - return f; - }, - utcParse: function(specifier) { - var p = newParse(specifier += "", true); - p.toString = function() { return specifier; }; - return p; - } - }; -} - -var pads = {"-": "", "_": " ", "0": "0"}, - numberRe = /^\s*\d+/, // note: ignores next directive - percentRe = /^%/, - requoteRe = /[\\^$*+?|[\]().{}]/g; - -function pad(value, fill, width) { - var sign = value < 0 ? "-" : "", - string = (sign ? -value : value) + "", - length = string.length; - return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string); -} - -function requote(s) { - return s.replace(requoteRe, "\\$&"); -} - -function formatRe(names) { - return new RegExp("^(?:" + names.map(requote).join("|") + ")", "i"); -} - -function formatLookup(names) { - return new Map(names.map((name, i) => [name.toLowerCase(), i])); -} - -function parseWeekdayNumberSunday(d, string, i) { - var n = numberRe.exec(string.slice(i, i + 1)); - return n ? (d.w = +n[0], i + n[0].length) : -1; -} - -function parseWeekdayNumberMonday(d, string, i) { - var n = numberRe.exec(string.slice(i, i + 1)); - return n ? (d.u = +n[0], i + n[0].length) : -1; -} - -function parseWeekNumberSunday(d, string, i) { - var n = numberRe.exec(string.slice(i, i + 2)); - return n ? (d.U = +n[0], i + n[0].length) : -1; -} - -function parseWeekNumberISO(d, string, i) { - var n = numberRe.exec(string.slice(i, i + 2)); - return n ? (d.V = +n[0], i + n[0].length) : -1; -} - -function parseWeekNumberMonday(d, string, i) { - var n = numberRe.exec(string.slice(i, i + 2)); - return n ? (d.W = +n[0], i + n[0].length) : -1; -} - -function parseFullYear(d, string, i) { - var n = numberRe.exec(string.slice(i, i + 4)); - return n ? (d.y = +n[0], i + n[0].length) : -1; -} - -function parseYear(d, string, i) { - var n = numberRe.exec(string.slice(i, i + 2)); - return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1; -} - -function parseZone(d, string, i) { - var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(string.slice(i, i + 6)); - return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), i + n[0].length) : -1; -} - -function parseQuarter(d, string, i) { - var n = numberRe.exec(string.slice(i, i + 1)); - return n ? (d.q = n[0] * 3 - 3, i + n[0].length) : -1; -} - -function parseMonthNumber(d, string, i) { - var n = numberRe.exec(string.slice(i, i + 2)); - return n ? (d.m = n[0] - 1, i + n[0].length) : -1; -} - -function parseDayOfMonth(d, string, i) { - var n = numberRe.exec(string.slice(i, i + 2)); - return n ? (d.d = +n[0], i + n[0].length) : -1; -} - -function parseDayOfYear(d, string, i) { - var n = numberRe.exec(string.slice(i, i + 3)); - return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1; -} - -function parseHour24(d, string, i) { - var n = numberRe.exec(string.slice(i, i + 2)); - return n ? (d.H = +n[0], i + n[0].length) : -1; -} - -function parseMinutes(d, string, i) { - var n = numberRe.exec(string.slice(i, i + 2)); - return n ? (d.M = +n[0], i + n[0].length) : -1; -} - -function parseSeconds(d, string, i) { - var n = numberRe.exec(string.slice(i, i + 2)); - return n ? (d.S = +n[0], i + n[0].length) : -1; -} - -function parseMilliseconds(d, string, i) { - var n = numberRe.exec(string.slice(i, i + 3)); - return n ? (d.L = +n[0], i + n[0].length) : -1; -} - -function parseMicroseconds(d, string, i) { - var n = numberRe.exec(string.slice(i, i + 6)); - return n ? (d.L = Math.floor(n[0] / 1000), i + n[0].length) : -1; -} - -function parseLiteralPercent(d, string, i) { - var n = percentRe.exec(string.slice(i, i + 1)); - return n ? i + n[0].length : -1; -} - -function parseUnixTimestamp(d, string, i) { - var n = numberRe.exec(string.slice(i)); - return n ? (d.Q = +n[0], i + n[0].length) : -1; -} - -function parseUnixTimestampSeconds(d, string, i) { - var n = numberRe.exec(string.slice(i)); - return n ? (d.s = +n[0], i + n[0].length) : -1; -} - -function formatDayOfMonth(d, p) { - return pad(d.getDate(), p, 2); -} - -function formatHour24(d, p) { - return pad(d.getHours(), p, 2); -} - -function formatHour12(d, p) { - return pad(d.getHours() % 12 || 12, p, 2); -} - -function formatDayOfYear(d, p) { - return pad(1 + timeDay.count(timeYear(d), d), p, 3); -} - -function formatMilliseconds(d, p) { - return pad(d.getMilliseconds(), p, 3); -} - -function formatMicroseconds(d, p) { - return formatMilliseconds(d, p) + "000"; -} - -function formatMonthNumber(d, p) { - return pad(d.getMonth() + 1, p, 2); -} - -function formatMinutes(d, p) { - return pad(d.getMinutes(), p, 2); -} - -function formatSeconds(d, p) { - return pad(d.getSeconds(), p, 2); -} - -function formatWeekdayNumberMonday(d) { - var day = d.getDay(); - return day === 0 ? 7 : day; -} - -function formatWeekNumberSunday(d, p) { - return pad(timeSunday.count(timeYear(d) - 1, d), p, 2); -} - -function dISO(d) { - var day = d.getDay(); - return (day >= 4 || day === 0) ? timeThursday(d) : timeThursday.ceil(d); -} - -function formatWeekNumberISO(d, p) { - d = dISO(d); - return pad(timeThursday.count(timeYear(d), d) + (timeYear(d).getDay() === 4), p, 2); -} - -function formatWeekdayNumberSunday(d) { - return d.getDay(); -} - -function formatWeekNumberMonday(d, p) { - return pad(timeMonday.count(timeYear(d) - 1, d), p, 2); -} - -function formatYear(d, p) { - return pad(d.getFullYear() % 100, p, 2); -} - -function formatYearISO(d, p) { - d = dISO(d); - return pad(d.getFullYear() % 100, p, 2); -} - -function formatFullYear(d, p) { - return pad(d.getFullYear() % 10000, p, 4); -} - -function formatFullYearISO(d, p) { - var day = d.getDay(); - d = (day >= 4 || day === 0) ? timeThursday(d) : timeThursday.ceil(d); - return pad(d.getFullYear() % 10000, p, 4); -} - -function formatZone(d) { - var z = d.getTimezoneOffset(); - return (z > 0 ? "-" : (z *= -1, "+")) - + pad(z / 60 | 0, "0", 2) - + pad(z % 60, "0", 2); -} - -function formatUTCDayOfMonth(d, p) { - return pad(d.getUTCDate(), p, 2); -} - -function formatUTCHour24(d, p) { - return pad(d.getUTCHours(), p, 2); -} - -function formatUTCHour12(d, p) { - return pad(d.getUTCHours() % 12 || 12, p, 2); -} - -function formatUTCDayOfYear(d, p) { - return pad(1 + utcDay.count(utcYear(d), d), p, 3); -} - -function formatUTCMilliseconds(d, p) { - return pad(d.getUTCMilliseconds(), p, 3); -} - -function formatUTCMicroseconds(d, p) { - return formatUTCMilliseconds(d, p) + "000"; -} - -function formatUTCMonthNumber(d, p) { - return pad(d.getUTCMonth() + 1, p, 2); -} - -function formatUTCMinutes(d, p) { - return pad(d.getUTCMinutes(), p, 2); -} - -function formatUTCSeconds(d, p) { - return pad(d.getUTCSeconds(), p, 2); -} - -function formatUTCWeekdayNumberMonday(d) { - var dow = d.getUTCDay(); - return dow === 0 ? 7 : dow; -} - -function formatUTCWeekNumberSunday(d, p) { - return pad(utcSunday.count(utcYear(d) - 1, d), p, 2); -} - -function UTCdISO(d) { - var day = d.getUTCDay(); - return (day >= 4 || day === 0) ? utcThursday(d) : utcThursday.ceil(d); -} - -function formatUTCWeekNumberISO(d, p) { - d = UTCdISO(d); - return pad(utcThursday.count(utcYear(d), d) + (utcYear(d).getUTCDay() === 4), p, 2); -} - -function formatUTCWeekdayNumberSunday(d) { - return d.getUTCDay(); -} - -function formatUTCWeekNumberMonday(d, p) { - return pad(utcMonday.count(utcYear(d) - 1, d), p, 2); -} - -function formatUTCYear(d, p) { - return pad(d.getUTCFullYear() % 100, p, 2); -} - -function formatUTCYearISO(d, p) { - d = UTCdISO(d); - return pad(d.getUTCFullYear() % 100, p, 2); -} - -function formatUTCFullYear(d, p) { - return pad(d.getUTCFullYear() % 10000, p, 4); -} - -function formatUTCFullYearISO(d, p) { - var day = d.getUTCDay(); - d = (day >= 4 || day === 0) ? utcThursday(d) : utcThursday.ceil(d); - return pad(d.getUTCFullYear() % 10000, p, 4); -} - -function formatUTCZone() { - return "+0000"; -} - -function formatLiteralPercent() { - return "%"; -} - -function formatUnixTimestamp(d) { - return +d; -} - -function formatUnixTimestampSeconds(d) { - return Math.floor(+d / 1000); -} diff --git a/build_vtk_bundle/node_modules/d3-time/LICENSE b/build_vtk_bundle/node_modules/d3-time/LICENSE deleted file mode 100644 index fbe44bdc..00000000 --- a/build_vtk_bundle/node_modules/d3-time/LICENSE +++ /dev/null @@ -1,13 +0,0 @@ -Copyright 2010-2022 Mike Bostock - -Permission to use, copy, modify, and/or distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright notice -and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS -OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -THIS SOFTWARE. diff --git a/build_vtk_bundle/node_modules/d3-time/README.md b/build_vtk_bundle/node_modules/d3-time/README.md deleted file mode 100644 index 4a05cdf9..00000000 --- a/build_vtk_bundle/node_modules/d3-time/README.md +++ /dev/null @@ -1,380 +0,0 @@ -# d3-time - -When visualizing time series data, analyzing temporal patterns, or working with time in general, the irregularities of conventional time units quickly become apparent. In the [Gregorian calendar](https://en.wikipedia.org/wiki/Gregorian_calendar), for example, most months have 31 days but some have 28, 29 or 30; most years have 365 days but [leap years](https://en.wikipedia.org/wiki/Leap_year) have 366; and with [daylight saving](https://en.wikipedia.org/wiki/Daylight_saving_time), most days have 24 hours but some have 23 or 25. Adding to complexity, daylight saving conventions vary around the world. - -As a result of these temporal peculiarities, it can be difficult to perform seemingly-trivial tasks. For example, if you want to compute the number of days that have passed between two dates, you can’t simply subtract and divide by 24 hours (86,400,000 ms): - -```js -start = new Date(2015, 02, 01) // 2015-03-01T00:00 -end = new Date(2015, 03, 01) // 2015-04-01T00:00 -(end - start) / 864e5 // 30.958333333333332, oops! 🤯 -``` - -You can, however, use [d3.timeDay](#timeDay).[count](#interval_count): - -```js -d3.timeDay.count(start, end) // 31 😌 -``` - -The [day](#day) [interval](#api-reference) is one of several provided by d3-time. Each interval represents a conventional unit of time—[hours](#timeHour), [weeks](#timeWeek), [months](#timeMonth), *etc.*—and has methods to calculate boundary dates. For example, [d3.timeDay](#timeDay) computes midnight (typically 12:00 AM local time) of the corresponding day. In addition to [rounding](#interval_round) and [counting](#interval_count), intervals can also be used to generate arrays of boundary dates. For example, to compute each Sunday in the current month: - -```js -start = d3.timeMonth.floor() // 2015-01-01T00:00 -stop = d3.timeMonth.ceil() // 2015-02-01T00:00 -d3.timeWeek.range(start, stop) // [2015-01-07T00:00, 2015-01-14T00:00, 2015-01-21T00:00, 2015-01-28T00:00] -``` - -The d3-time module does not implement its own calendaring system; it merely implements a convenient API for calendar math on top of ECMAScript [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date). Thus, it ignores leap seconds and can only work with the local time zone and [Coordinated Universal Time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time) (UTC). - -This module is used by D3’s time scales to generate sensible ticks, by D3’s time format, and can also be used directly to do things like [calendar layouts](http://bl.ocks.org/mbostock/4063318). - -## Installing - -If you use npm, `npm install d3-time`. You can also download the [latest release on GitHub](https://github.com/d3/d3-time/releases/latest). For vanilla HTML in modern browsers, import d3-time from Skypack: - -```html - -``` - -For legacy environments, you can load d3-time’s UMD bundle from an npm-based CDN such as jsDelivr; a `d3` global is exported: - -```html - - - -``` - -[Try d3-time in your browser.](https://observablehq.com/collection/@d3/d3-time) - -## API Reference - -# interval([date]) · [Source](https://github.com/d3/d3-time/blob/main/src/interval.js) - -Equivalent to [*interval*.floor](#interval_floor), except if *date* is not specified, it defaults to the current time. For example, [d3.timeYear](#timeYear)(*date*) and d3.timeYear.floor(*date*) are equivalent. - -```js -monday = d3.timeMonday() // the latest preceeding Monday, local time -``` - -# interval.floor(date) · [Source](https://github.com/d3/d3-time/blob/main/src/interval.js) - -Returns a new date representing the latest interval boundary date before or equal to *date*. For example, [d3.timeDay](#timeDay).floor(*date*) typically returns 12:00 AM local time on the given *date*. - -This method is idempotent: if the specified *date* is already floored to the current interval, a new date with an identical time is returned. Furthermore, the returned date is the minimum expressible value of the associated interval, such that *interval*.floor(*interval*.floor(*date*) - 1) returns the preceeding interval boundary date. - -Note that the `==` and `===` operators do not compare by value with [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) objects, and thus you cannot use them to tell whether the specified *date* has already been floored. Instead, coerce to a number and then compare: - -```js -// Returns true if the specified date is a day boundary. -function isDay(date) { - return +d3.timeDay.floor(date) === +date; -} -``` - -This is more reliable than testing whether the time is 12:00 AM, as in some time zones midnight may not exist due to daylight saving. - -# interval.round(date) · [Source](https://github.com/d3/d3-time/blob/main/src/interval.js) - -Returns a new date representing the closest interval boundary date to *date*. For example, [d3.timeDay](#timeDay).round(*date*) typically returns 12:00 AM local time on the given *date* if it is on or before noon, and 12:00 AM of the following day if it is after noon. - -This method is idempotent: if the specified *date* is already rounded to the current interval, a new date with an identical time is returned. - -# interval.ceil(date) · [Source](https://github.com/d3/d3-time/blob/main/src/interval.js) - -Returns a new date representing the earliest interval boundary date after or equal to *date*. For example, [d3.timeDay](#timeDay).ceil(*date*) typically returns 12:00 AM local time on the date following the given *date*. - -This method is idempotent: if the specified *date* is already ceilinged to the current interval, a new date with an identical time is returned. Furthermore, the returned date is the maximum expressible value of the associated interval, such that *interval*.ceil(*interval*.ceil(*date*) + 1) returns the following interval boundary date. - -# interval.offset(date[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/interval.js) - -Returns a new date equal to *date* plus *step* intervals. If *step* is not specified it defaults to 1. If *step* is negative, then the returned date will be before the specified *date*; if *step* is zero, then a copy of the specified *date* is returned; if *step* is not an integer, it is [floored](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/floor). This method does not round the specified *date* to the interval. For example, if *date* is today at 5:34 PM, then [d3.timeDay](#timeDay).offset(*date*, 1) returns 5:34 PM tomorrow (even if daylight saving changes!). - -# interval.range(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/interval.js) - -Returns an array of dates representing every interval boundary after or equal to *start* (inclusive) and before *stop* (exclusive). If *step* is specified, then every *step*th boundary will be returned; for example, for the [d3.timeDay](#timeDay) interval a *step* of 2 will return every other day. If *step* is not an integer, it is [floored](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/floor). - -The first date in the returned array is the earliest boundary after or equal to *start*; subsequent dates are [offset](#interval_offset) by *step* intervals and [floored](#interval_floor). Thus, two overlapping ranges may be consistent. For example, this range contains odd days: - -```js -d3.timeDay.range(new Date(2015, 0, 1), new Date(2015, 0, 7), 2) // [2015-01-01T00:00, 2015-01-03T00:00, 2015-01-05T00:00] -``` - -While this contains even days: - -```js -d3.timeDay.range(new Date(2015, 0, 2), new Date(2015, 0, 8), 2) // [2015-01-02T00:00, 2015-01-04T00:00, 2015-01-06T00:00] -``` - -To make ranges consistent when a *step* is specified, use [*interval*.every](#interval_every) instead. - -# interval.filter(test) · [Source](https://github.com/d3/d3-time/blob/main/src/interval.js) - -Returns a new interval that is a filtered subset of this interval using the specified *test* function. The *test* function is passed a date and should return true if and only if the specified date should be considered part of the interval. For example, to create an interval that returns the 1st, 11th, 21th and 31th (if it exists) of each month: - -```js -d3.timeDay.filter(d => (d.getDate() - 1) % 10 === 0) -``` - -The returned filtered interval does not support [*interval*.count](#interval_count). See also [*interval*.every](#interval_every). - -# interval.every(step) · [Source](https://github.com/d3/d3-time/blob/main/src/interval.js) - -Returns a [filtered](#interval_filter) view of this interval representing every *step*th date. The meaning of *step* is dependent on this interval’s parent interval as defined by the field function. For example, [d3.timeMinute](#timeMinute).every(15) returns an interval representing every fifteen minutes, starting on the hour: :00, :15, :30, :45, etc. Note that for some intervals, the resulting dates may not be uniformly-spaced; [d3.timeDay](#timeDay)’s parent interval is [d3.timeMonth](#timeMonth), and thus the interval number resets at the start of each month. If *step* is not valid, returns null. If *step* is one, returns this interval. - -This method can be used in conjunction with [*interval*.range](#interval_range) to ensure that two overlapping ranges are consistent. For example, this range contains odd days: - -```js -d3.timeDay.every(2).range(new Date(2015, 0, 1), new Date(2015, 0, 7)) // [2015-01-01T00:00, 2015-01-03T00:00, 2015-01-05T00:00] -``` - -As does this one: - -```js -d3.timeDay.every(2).range(new Date(2015, 0, 2), new Date(2015, 0, 8)) // [2015-01-03T00:00, 2015-01-05T00:00, 2015-01-07T00:00] -``` - -The returned filtered interval does not support [*interval*.count](#interval_count). See also [*interval*.filter](#interval_filter). - -# interval.count(start, end) · [Source](https://github.com/d3/d3-time/blob/main/src/interval.js) - -Returns the number of interval boundaries after *start* (exclusive) and before or equal to *end* (inclusive). Note that this behavior is slightly different than [*interval*.range](#interval_range) because its purpose is to return the zero-based number of the specified *end* date relative to the specified *start* date. For example, to compute the current zero-based day-of-year number: - -```js -d3.timeDay.count(d3.timeYear(now), now) // 177 -``` - -Likewise, to compute the current zero-based week-of-year number for weeks that start on Sunday: - -```js -d3.timeSunday.count(d3.timeYear(now), now) // 25 -``` - -# d3.timeInterval(floor, offset[, count[, field]]) · [Source](https://github.com/d3/d3-time/blob/main/src/interval.js) - -Constructs a new custom interval given the specified *floor* and *offset* functions and an optional *count* function. - -The *floor* function takes a single date as an argument and rounds it down to the nearest interval boundary. - -The *offset* function takes a date and an integer step as arguments and advances the specified date by the specified number of boundaries; the step may be positive, negative or zero. - -The optional *count* function takes a start date and an end date, already floored to the current interval, and returns the number of boundaries between the start (exclusive) and end (inclusive). If a *count* function is not specified, the returned interval does not expose [*interval*.count](#interval_count) or [*interval*.every](#interval_every) methods. Note: due to an internal optimization, the specified *count* function must not invoke *interval*.count on other time intervals. - -The optional *field* function takes a date, already floored to the current interval, and returns the field value of the specified date, corresponding to the number of boundaries between this date (exclusive) and the latest previous parent boundary. For example, for the [d3.timeDay](#timeDay) interval, this returns the number of days since the start of the month. If a *field* function is not specified, it defaults to counting the number of interval boundaries since the UNIX epoch of January 1, 1970 UTC. The *field* function defines the behavior of [*interval*.every](#interval_every). - -### Intervals - -The following intervals are provided: - -# d3.timeMillisecond · [Source](https://github.com/d3/d3-time/blob/main/src/millisecond.js "Source") -
# d3.utcMillisecond - -Milliseconds; the shortest available time unit. - -# d3.timeSecond · [Source](https://github.com/d3/d3-time/blob/main/src/second.js "Source") -
# d3.utcSecond - -Seconds (e.g., 01:23:45.0000 AM); 1,000 milliseconds. - -# d3.timeMinute · [Source](https://github.com/d3/d3-time/blob/main/src/minute.js "Source") -
# d3.utcMinute · [Source](https://github.com/d3/d3-time/blob/main/src/utcMinute.js "Source") - -Minutes (e.g., 01:02:00 AM); 60 seconds. Note that ECMAScript [ignores leap seconds](http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.1). - -# d3.timeHour · [Source](https://github.com/d3/d3-time/blob/main/src/hour.js "Source") -
# d3.utcHour · [Source](https://github.com/d3/d3-time/blob/main/src/utcHour.js "Source") - -Hours (e.g., 01:00 AM); 60 minutes. Note that advancing time by one hour in local time can return the same hour or skip an hour due to daylight saving. - -# d3.timeDay · [Source](https://github.com/d3/d3-time/blob/main/src/day.js "Source") -
# d3.utcDay · [Source](https://github.com/d3/d3-time/blob/main/src/utcDay.js "Source") -
# d3.unixDay · [Source](https://github.com/d3/d3-time/blob/main/src/unixDay.js "Source") - -Days (e.g., February 7, 2012 at 12:00 AM); typically 24 hours. Days in local time may range from 23 to 25 hours due to daylight saving. d3.unixDay is like [d3.utcDay](#timeDay), except it counts days since the UNIX epoch (January 1, 1970) such that *interval*.every returns uniformly-spaced dates rather than varying based on day-of-month. - -# d3.timeWeek · [Source](https://github.com/d3/d3-time/blob/main/src/week.js "Source") -
# d3.utcWeek · [Source](https://github.com/d3/d3-time/blob/main/src/utcWeek.js "Source") - -Alias for [d3.timeSunday](#timeSunday); 7 days and typically 168 hours. Weeks in local time may range from 167 to 169 hours due to daylight saving. - -# d3.timeSunday · [Source](https://github.com/d3/d3-time/blob/main/src/week.js) -
# d3.utcSunday · [Source](https://github.com/d3/d3-time/blob/main/src/utcWeek.js) - -Sunday-based weeks (e.g., February 5, 2012 at 12:00 AM). - -# d3.timeMonday · [Source](https://github.com/d3/d3-time/blob/main/src/week.js) -
# d3.utcMonday · [Source](https://github.com/d3/d3-time/blob/main/src/utcWeek.js) - -Monday-based weeks (e.g., February 6, 2012 at 12:00 AM). - -# d3.timeTuesday · [Source](https://github.com/d3/d3-time/blob/main/src/week.js) -
# d3.utcTuesday · [Source](https://github.com/d3/d3-time/blob/main/src/utcWeek.js) - -Tuesday-based weeks (e.g., February 7, 2012 at 12:00 AM). - -# d3.timeWednesday · [Source](https://github.com/d3/d3-time/blob/main/src/week.js) -
# d3.utcWednesday · [Source](https://github.com/d3/d3-time/blob/main/src/utcWeek.js) - -Wednesday-based weeks (e.g., February 8, 2012 at 12:00 AM). - -# d3.timeThursday · [Source](https://github.com/d3/d3-time/blob/main/src/week.js) -
# d3.utcThursday · [Source](https://github.com/d3/d3-time/blob/main/src/utcWeek.js) - -Thursday-based weeks (e.g., February 9, 2012 at 12:00 AM). - -# d3.timeFriday · [Source](https://github.com/d3/d3-time/blob/main/src/week.js) -
# d3.utcFriday · [Source](https://github.com/d3/d3-time/blob/main/src/utcWeek.js) - -Friday-based weeks (e.g., February 10, 2012 at 12:00 AM). - -# d3.timeSaturday · [Source](https://github.com/d3/d3-time/blob/main/src/week.js) -
# d3.utcSaturday · [Source](https://github.com/d3/d3-time/blob/main/src/utcWeek.js) - -Saturday-based weeks (e.g., February 11, 2012 at 12:00 AM). - -# d3.timeMonth · [Source](https://github.com/d3/d3-time/blob/main/src/month.js "Source") -
# d3.utcMonth · [Source](https://github.com/d3/d3-time/blob/main/src/utcMonth.js "Source") - -Months (e.g., February 1, 2012 at 12:00 AM); ranges from 28 to 31 days. - -# d3.timeYear · [Source](https://github.com/d3/d3-time/blob/main/src/year.js "Source") -
# d3.utcYear · [Source](https://github.com/d3/d3-time/blob/main/src/utcYear.js "Source") - -Years (e.g., January 1, 2012 at 12:00 AM); ranges from 365 to 366 days. - -### Ranges - -For convenience, aliases for [*interval*.range](#interval_range) are also provided as plural forms of the corresponding interval. - -# d3.timeMilliseconds(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/millisecond.js) -
# d3.utcMilliseconds(start, stop[, step]) - -Aliases for [d3.timeMillisecond](#timeMillisecond).[range](#interval_range) and [d3.utcMillisecond](#timeMillisecond).[range](#interval_range). - -# d3.timeSeconds(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/second.js) -
# d3.utcSeconds(start, stop[, step]) - -Aliases for [d3.timeSecond](#timeSecond).[range](#interval_range) and [d3.utcSecond](#timeSecond).[range](#interval_range). - -# d3.timeMinutes(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/minute.js) -
# d3.utcMinutes(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/utcMinute.js) - -Aliases for [d3.timeMinute](#timeMinute).[range](#interval_range) and [d3.utcMinute](#timeMinute).[range](#interval_range). - -# d3.timeHours(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/hour.js) -
# d3.utcHours(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/utcHour.js) - -Aliases for [d3.timeHour](#timeHour).[range](#interval_range) and [d3.utcHour](#timeHour).[range](#interval_range). - -# d3.timeDays(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/day.js) -
# d3.utcDays(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/utcDay.js) -
# d3.unixDays(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/unixDay.js) - -Aliases for [d3.timeDay](#timeDay).[range](#interval_range), [d3.utcDay](#timeDay).[range](#interval_range), and [d3.unixDay](#timeDay).[range](#interval_range). - -# d3.timeWeeks(start, stop[, step]) -
# d3.utcWeeks(start, stop[, step]) - -Aliases for [d3.timeWeek](#timeWeek).[range](#interval_range) and [d3.utcWeek](#timeWeek).[range](#interval_range). - -# d3.timeSundays(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/week.js) -
# d3.utcSundays(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/utcWeek.js) - -Aliases for [d3.timeSunday](#timeSunday).[range](#interval_range) and [d3.utcSunday](#timeSunday).[range](#interval_range). - -# d3.timeMondays(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/week.js) -
# d3.utcMondays(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/utcWeek.js) - -Aliases for [d3.timeMonday](#timeMonday).[range](#interval_range) and [d3.utcMonday](#timeMonday).[range](#interval_range). - -# d3.timeTuesdays(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/week.js) -
# d3.utcTuesdays(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/utcWeek.js) - -Aliases for [d3.timeTuesday](#timeTuesday).[range](#interval_range) and [d3.utcTuesday](#timeTuesday).[range](#interval_range). - -# d3.timeWednesdays(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/week.js) -
# d3.utcWednesdays(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/utcWeek.js) - -Aliases for [d3.timeWednesday](#timeWednesday).[range](#interval_range) and [d3.utcWednesday](#timeWednesday).[range](#interval_range). - -# d3.timeThursdays(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/week.js) -
# d3.utcThursdays(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/utcWeek.js) - -Aliases for [d3.timeThursday](#timeThursday).[range](#interval_range) and [d3.utcThursday](#timeThursday).[range](#interval_range). - -# d3.timeFridays(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/week.js) -
# d3.utcFridays(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/utcWeek.js) - -Aliases for [d3.timeFriday](#timeFriday).[range](#interval_range) and [d3.utcFriday](#timeFriday).[range](#interval_range). - -# d3.timeSaturdays(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/week.js) -
# d3.utcSaturdays(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/utcWeek.js) - -Aliases for [d3.timeSaturday](#timeSaturday).[range](#interval_range) and [d3.utcSaturday](#timeSaturday).[range](#interval_range). - -# d3.timeMonths(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/month.js) -
# d3.utcMonths(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/utcMonth.js) - -Aliases for [d3.timeMonth](#timeMonth).[range](#interval_range) and [d3.utcMonth](#timeMonth).[range](#interval_range). - -# d3.timeYears(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/year.js) -
# d3.utcYears(start, stop[, step]) · [Source](https://github.com/d3/d3-time/blob/main/src/utcYear.js) - -Aliases for [d3.timeYear](#timeYear).[range](#interval_range) and [d3.utcYear](#timeYear).[range](#interval_range). - -### Ticks - -# d3.timeTicks(start, stop, count) · [Source](https://github.com/d3/d3-time/blob/main/src/ticks.js) - -Equivalent to [d3.utcTicks](#utcTicks), but in local time. - -# d3.timeTickInterval(start, stop, count) · [Source](https://github.com/d3/d3-time/blob/main/src/ticks.js) - -Returns the time interval that would be used by [d3.timeTicks](#timeTicks) given the same arguments. - -# d3.utcTicks(start, stop, count) · [Source](https://github.com/d3/d3-time/blob/main/src/ticks.js) - -Returns an array of approximately *count* dates at regular intervals between *start* and *stop* (inclusive). If *stop* is before *start*, dates are returned in reverse chronological order; otherwise dates are returned in chronological order. The following UTC time intervals are considered: - -* 1 second -* 5 seconds -* 15 seconds -* 30 seconds -* 1 minute -* 5 minutes -* 15 minutes -* 30 minutes -* 1 hour -* 3 hours -* 6 hours -* 12 hours -* 1 day -* 2 days -* 1 week -* 1 month -* 3 months -* 1 year - -Multiples of milliseconds (for small ranges) and years (for large ranges) are also considered, following the rules of [d3.ticks](https://github.com/d3/d3-array/blob/main/README.md#ticks). The interval producing the number of dates that is closest to *count* is used. For example: - -```js -start = new Date(Date.UTC(1970, 2, 1)) -stop = new Date(Date.UTC(1996, 2, 19)) -count = 4 -d3.utcTicks(start, stop, count) // [1975-01-01, 1980-01-01, 1985-01-01, 1990-01-01, 1995-01-01] -``` - -If *count* is a time interval, this function behaves similarly to [*interval*.range](#interval_range) except that both *start* and *stop* are inclusive and it may return dates in reverse chronological order if *stop* is before *start*. - -# d3.utcTickInterval(start, stop, count) · [Source](https://github.com/d3/d3-time/blob/main/src/ticks.js) - -Returns the time interval that would be used by [d3.utcTicks](#utcTicks) given the same arguments. If there is no associated interval, such as when *start* or *stop* is invalid, returns null. diff --git a/build_vtk_bundle/node_modules/d3-time/package.json b/build_vtk_bundle/node_modules/d3-time/package.json deleted file mode 100644 index 18af9e5c..00000000 --- a/build_vtk_bundle/node_modules/d3-time/package.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "name": "d3-time", - "version": "3.1.0", - "description": "A calculator for humanity’s peculiar conventions of time.", - "homepage": "https://d3js.org/d3-time/", - "repository": { - "type": "git", - "url": "https://github.com/d3/d3-time.git" - }, - "keywords": [ - "d3", - "d3-module", - "time", - "interval", - "calendar" - ], - "license": "ISC", - "author": { - "name": "Mike Bostock", - "url": "http://bost.ocks.org/mike" - }, - "type": "module", - "files": [ - "dist/**/*.js", - "src/**/*.js" - ], - "module": "src/index.js", - "main": "src/index.js", - "jsdelivr": "dist/d3-time.min.js", - "unpkg": "dist/d3-time.min.js", - "exports": { - "umd": "./dist/d3-time.min.js", - "default": "./src/index.js" - }, - "sideEffects": false, - "dependencies": { - "d3-array": "2 - 3" - }, - "devDependencies": { - "eslint": "8", - "mocha": "10", - "rollup": "3", - "rollup-plugin-terser": "7" - }, - "scripts": { - "test": "TZ=America/Los_Angeles mocha 'test/**/*-test.js' && eslint src test", - "prepublishOnly": "rm -rf dist && yarn test && rollup -c", - "postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../${npm_package_name}/dist/${npm_package_name}.js ${npm_package_name}.v${npm_package_version%%.*}.js && cp ../${npm_package_name}/dist/${npm_package_name}.min.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git add ${npm_package_name}.v${npm_package_version%%.*}.js ${npm_package_name}.v${npm_package_version%%.*}.min.js && git commit -m \"${npm_package_name} ${npm_package_version}\" && git push && cd -" - }, - "engines": { - "node": ">=12" - } -} diff --git a/build_vtk_bundle/node_modules/d3-time/src/day.js b/build_vtk_bundle/node_modules/d3-time/src/day.js deleted file mode 100644 index 2b5d4b6e..00000000 --- a/build_vtk_bundle/node_modules/d3-time/src/day.js +++ /dev/null @@ -1,35 +0,0 @@ -import {timeInterval} from "./interval.js"; -import {durationDay, durationMinute} from "./duration.js"; - -export const timeDay = timeInterval( - date => date.setHours(0, 0, 0, 0), - (date, step) => date.setDate(date.getDate() + step), - (start, end) => (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationDay, - date => date.getDate() - 1 -); - -export const timeDays = timeDay.range; - -export const utcDay = timeInterval((date) => { - date.setUTCHours(0, 0, 0, 0); -}, (date, step) => { - date.setUTCDate(date.getUTCDate() + step); -}, (start, end) => { - return (end - start) / durationDay; -}, (date) => { - return date.getUTCDate() - 1; -}); - -export const utcDays = utcDay.range; - -export const unixDay = timeInterval((date) => { - date.setUTCHours(0, 0, 0, 0); -}, (date, step) => { - date.setUTCDate(date.getUTCDate() + step); -}, (start, end) => { - return (end - start) / durationDay; -}, (date) => { - return Math.floor(date / durationDay); -}); - -export const unixDays = unixDay.range; diff --git a/build_vtk_bundle/node_modules/d3-time/src/duration.js b/build_vtk_bundle/node_modules/d3-time/src/duration.js deleted file mode 100644 index 341fa8fe..00000000 --- a/build_vtk_bundle/node_modules/d3-time/src/duration.js +++ /dev/null @@ -1,7 +0,0 @@ -export const durationSecond = 1000; -export const durationMinute = durationSecond * 60; -export const durationHour = durationMinute * 60; -export const durationDay = durationHour * 24; -export const durationWeek = durationDay * 7; -export const durationMonth = durationDay * 30; -export const durationYear = durationDay * 365; diff --git a/build_vtk_bundle/node_modules/d3-time/src/hour.js b/build_vtk_bundle/node_modules/d3-time/src/hour.js deleted file mode 100644 index 77b77a3b..00000000 --- a/build_vtk_bundle/node_modules/d3-time/src/hour.js +++ /dev/null @@ -1,26 +0,0 @@ -import {timeInterval} from "./interval.js"; -import {durationHour, durationMinute, durationSecond} from "./duration.js"; - -export const timeHour = timeInterval((date) => { - date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond - date.getMinutes() * durationMinute); -}, (date, step) => { - date.setTime(+date + step * durationHour); -}, (start, end) => { - return (end - start) / durationHour; -}, (date) => { - return date.getHours(); -}); - -export const timeHours = timeHour.range; - -export const utcHour = timeInterval((date) => { - date.setUTCMinutes(0, 0, 0); -}, (date, step) => { - date.setTime(+date + step * durationHour); -}, (start, end) => { - return (end - start) / durationHour; -}, (date) => { - return date.getUTCHours(); -}); - -export const utcHours = utcHour.range; diff --git a/build_vtk_bundle/node_modules/d3-time/src/index.js b/build_vtk_bundle/node_modules/d3-time/src/index.js deleted file mode 100644 index d6dfd902..00000000 --- a/build_vtk_bundle/node_modules/d3-time/src/index.js +++ /dev/null @@ -1,96 +0,0 @@ -export { - timeInterval -} from "./interval.js"; - -export { - millisecond as utcMillisecond, - milliseconds as utcMilliseconds, - millisecond as timeMillisecond, - milliseconds as timeMilliseconds -} from "./millisecond.js"; - -export { - second as utcSecond, - seconds as utcSeconds, - second as timeSecond, - seconds as timeSeconds -} from "./second.js"; - -export { - timeMinute, - timeMinutes, - utcMinute, - utcMinutes -} from "./minute.js"; - -export { - timeHour, - timeHours, - utcHour, - utcHours -} from "./hour.js"; - -export { - timeDay, - timeDays, - utcDay, - utcDays, - unixDay, - unixDays -} from "./day.js"; - -export { - timeSunday as timeWeek, - timeSundays as timeWeeks, - timeSunday, - timeSundays, - timeMonday, - timeMondays, - timeTuesday, - timeTuesdays, - timeWednesday, - timeWednesdays, - timeThursday, - timeThursdays, - timeFriday, - timeFridays, - timeSaturday, - timeSaturdays, - utcSunday as utcWeek, - utcSundays as utcWeeks, - utcSunday, - utcSundays, - utcMonday, - utcMondays, - utcTuesday, - utcTuesdays, - utcWednesday, - utcWednesdays, - utcThursday, - utcThursdays, - utcFriday, - utcFridays, - utcSaturday, - utcSaturdays -} from "./week.js"; - -export { - timeMonth, - timeMonths, - utcMonth, - utcMonths -} from "./month.js"; - -export { - timeYear, - timeYears, - utcYear, - utcYears -} from "./year.js"; - -export { - utcTicks, - utcTickInterval, - timeTicks, - timeTickInterval -} from "./ticks.js"; diff --git a/build_vtk_bundle/node_modules/d3-time/src/interval.js b/build_vtk_bundle/node_modules/d3-time/src/interval.js deleted file mode 100644 index 492ae909..00000000 --- a/build_vtk_bundle/node_modules/d3-time/src/interval.js +++ /dev/null @@ -1,69 +0,0 @@ -const t0 = new Date, t1 = new Date; - -export function timeInterval(floori, offseti, count, field) { - - function interval(date) { - return floori(date = arguments.length === 0 ? new Date : new Date(+date)), date; - } - - interval.floor = (date) => { - return floori(date = new Date(+date)), date; - }; - - interval.ceil = (date) => { - return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date; - }; - - interval.round = (date) => { - const d0 = interval(date), d1 = interval.ceil(date); - return date - d0 < d1 - date ? d0 : d1; - }; - - interval.offset = (date, step) => { - return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date; - }; - - interval.range = (start, stop, step) => { - const range = []; - start = interval.ceil(start); - step = step == null ? 1 : Math.floor(step); - if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date - let previous; - do range.push(previous = new Date(+start)), offseti(start, step), floori(start); - while (previous < start && start < stop); - return range; - }; - - interval.filter = (test) => { - return timeInterval((date) => { - if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1); - }, (date, step) => { - if (date >= date) { - if (step < 0) while (++step <= 0) { - while (offseti(date, -1), !test(date)) {} // eslint-disable-line no-empty - } else while (--step >= 0) { - while (offseti(date, +1), !test(date)) {} // eslint-disable-line no-empty - } - } - }); - }; - - if (count) { - interval.count = (start, end) => { - t0.setTime(+start), t1.setTime(+end); - floori(t0), floori(t1); - return Math.floor(count(t0, t1)); - }; - - interval.every = (step) => { - step = Math.floor(step); - return !isFinite(step) || !(step > 0) ? null - : !(step > 1) ? interval - : interval.filter(field - ? (d) => field(d) % step === 0 - : (d) => interval.count(0, d) % step === 0); - }; - } - - return interval; -} diff --git a/build_vtk_bundle/node_modules/d3-time/src/millisecond.js b/build_vtk_bundle/node_modules/d3-time/src/millisecond.js deleted file mode 100644 index e3aa380a..00000000 --- a/build_vtk_bundle/node_modules/d3-time/src/millisecond.js +++ /dev/null @@ -1,25 +0,0 @@ -import {timeInterval} from "./interval.js"; - -export const millisecond = timeInterval(() => { - // noop -}, (date, step) => { - date.setTime(+date + step); -}, (start, end) => { - return end - start; -}); - -// An optimized implementation for this simple case. -millisecond.every = (k) => { - k = Math.floor(k); - if (!isFinite(k) || !(k > 0)) return null; - if (!(k > 1)) return millisecond; - return timeInterval((date) => { - date.setTime(Math.floor(date / k) * k); - }, (date, step) => { - date.setTime(+date + step * k); - }, (start, end) => { - return (end - start) / k; - }); -}; - -export const milliseconds = millisecond.range; diff --git a/build_vtk_bundle/node_modules/d3-time/src/minute.js b/build_vtk_bundle/node_modules/d3-time/src/minute.js deleted file mode 100644 index ba8e4d9e..00000000 --- a/build_vtk_bundle/node_modules/d3-time/src/minute.js +++ /dev/null @@ -1,26 +0,0 @@ -import {timeInterval} from "./interval.js"; -import {durationMinute, durationSecond} from "./duration.js"; - -export const timeMinute = timeInterval((date) => { - date.setTime(date - date.getMilliseconds() - date.getSeconds() * durationSecond); -}, (date, step) => { - date.setTime(+date + step * durationMinute); -}, (start, end) => { - return (end - start) / durationMinute; -}, (date) => { - return date.getMinutes(); -}); - -export const timeMinutes = timeMinute.range; - -export const utcMinute = timeInterval((date) => { - date.setUTCSeconds(0, 0); -}, (date, step) => { - date.setTime(+date + step * durationMinute); -}, (start, end) => { - return (end - start) / durationMinute; -}, (date) => { - return date.getUTCMinutes(); -}); - -export const utcMinutes = utcMinute.range; diff --git a/build_vtk_bundle/node_modules/d3-time/src/month.js b/build_vtk_bundle/node_modules/d3-time/src/month.js deleted file mode 100644 index 6dab69cf..00000000 --- a/build_vtk_bundle/node_modules/d3-time/src/month.js +++ /dev/null @@ -1,27 +0,0 @@ -import {timeInterval} from "./interval.js"; - -export const timeMonth = timeInterval((date) => { - date.setDate(1); - date.setHours(0, 0, 0, 0); -}, (date, step) => { - date.setMonth(date.getMonth() + step); -}, (start, end) => { - return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12; -}, (date) => { - return date.getMonth(); -}); - -export const timeMonths = timeMonth.range; - -export const utcMonth = timeInterval((date) => { - date.setUTCDate(1); - date.setUTCHours(0, 0, 0, 0); -}, (date, step) => { - date.setUTCMonth(date.getUTCMonth() + step); -}, (start, end) => { - return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12; -}, (date) => { - return date.getUTCMonth(); -}); - -export const utcMonths = utcMonth.range; diff --git a/build_vtk_bundle/node_modules/d3-time/src/second.js b/build_vtk_bundle/node_modules/d3-time/src/second.js deleted file mode 100644 index 47b2f43c..00000000 --- a/build_vtk_bundle/node_modules/d3-time/src/second.js +++ /dev/null @@ -1,14 +0,0 @@ -import {timeInterval} from "./interval.js"; -import {durationSecond} from "./duration.js"; - -export const second = timeInterval((date) => { - date.setTime(date - date.getMilliseconds()); -}, (date, step) => { - date.setTime(+date + step * durationSecond); -}, (start, end) => { - return (end - start) / durationSecond; -}, (date) => { - return date.getUTCSeconds(); -}); - -export const seconds = second.range; diff --git a/build_vtk_bundle/node_modules/d3-time/src/ticks.js b/build_vtk_bundle/node_modules/d3-time/src/ticks.js deleted file mode 100644 index c314789a..00000000 --- a/build_vtk_bundle/node_modules/d3-time/src/ticks.js +++ /dev/null @@ -1,58 +0,0 @@ -import {bisector, tickStep} from "d3-array"; -import {durationDay, durationHour, durationMinute, durationMonth, durationSecond, durationWeek, durationYear} from "./duration.js"; -import {millisecond} from "./millisecond.js"; -import {second} from "./second.js"; -import {timeMinute, utcMinute} from "./minute.js"; -import {timeHour, utcHour} from "./hour.js"; -import {timeDay, unixDay} from "./day.js"; -import {timeSunday, utcSunday} from "./week.js"; -import {timeMonth, utcMonth} from "./month.js"; -import {timeYear, utcYear} from "./year.js"; - -function ticker(year, month, week, day, hour, minute) { - - const tickIntervals = [ - [second, 1, durationSecond], - [second, 5, 5 * durationSecond], - [second, 15, 15 * durationSecond], - [second, 30, 30 * durationSecond], - [minute, 1, durationMinute], - [minute, 5, 5 * durationMinute], - [minute, 15, 15 * durationMinute], - [minute, 30, 30 * durationMinute], - [ hour, 1, durationHour ], - [ hour, 3, 3 * durationHour ], - [ hour, 6, 6 * durationHour ], - [ hour, 12, 12 * durationHour ], - [ day, 1, durationDay ], - [ day, 2, 2 * durationDay ], - [ week, 1, durationWeek ], - [ month, 1, durationMonth ], - [ month, 3, 3 * durationMonth ], - [ year, 1, durationYear ] - ]; - - function ticks(start, stop, count) { - const reverse = stop < start; - if (reverse) [start, stop] = [stop, start]; - const interval = count && typeof count.range === "function" ? count : tickInterval(start, stop, count); - const ticks = interval ? interval.range(start, +stop + 1) : []; // inclusive stop - return reverse ? ticks.reverse() : ticks; - } - - function tickInterval(start, stop, count) { - const target = Math.abs(stop - start) / count; - const i = bisector(([,, step]) => step).right(tickIntervals, target); - if (i === tickIntervals.length) return year.every(tickStep(start / durationYear, stop / durationYear, count)); - if (i === 0) return millisecond.every(Math.max(tickStep(start, stop, count), 1)); - const [t, step] = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i]; - return t.every(step); - } - - return [ticks, tickInterval]; -} - -const [utcTicks, utcTickInterval] = ticker(utcYear, utcMonth, utcSunday, unixDay, utcHour, utcMinute); -const [timeTicks, timeTickInterval] = ticker(timeYear, timeMonth, timeSunday, timeDay, timeHour, timeMinute); - -export {utcTicks, utcTickInterval, timeTicks, timeTickInterval}; diff --git a/build_vtk_bundle/node_modules/d3-time/src/week.js b/build_vtk_bundle/node_modules/d3-time/src/week.js deleted file mode 100644 index f75ff529..00000000 --- a/build_vtk_bundle/node_modules/d3-time/src/week.js +++ /dev/null @@ -1,56 +0,0 @@ -import {timeInterval} from "./interval.js"; -import {durationMinute, durationWeek} from "./duration.js"; - -function timeWeekday(i) { - return timeInterval((date) => { - date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7); - date.setHours(0, 0, 0, 0); - }, (date, step) => { - date.setDate(date.getDate() + step * 7); - }, (start, end) => { - return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * durationMinute) / durationWeek; - }); -} - -export const timeSunday = timeWeekday(0); -export const timeMonday = timeWeekday(1); -export const timeTuesday = timeWeekday(2); -export const timeWednesday = timeWeekday(3); -export const timeThursday = timeWeekday(4); -export const timeFriday = timeWeekday(5); -export const timeSaturday = timeWeekday(6); - -export const timeSundays = timeSunday.range; -export const timeMondays = timeMonday.range; -export const timeTuesdays = timeTuesday.range; -export const timeWednesdays = timeWednesday.range; -export const timeThursdays = timeThursday.range; -export const timeFridays = timeFriday.range; -export const timeSaturdays = timeSaturday.range; - -function utcWeekday(i) { - return timeInterval((date) => { - date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7); - date.setUTCHours(0, 0, 0, 0); - }, (date, step) => { - date.setUTCDate(date.getUTCDate() + step * 7); - }, (start, end) => { - return (end - start) / durationWeek; - }); -} - -export const utcSunday = utcWeekday(0); -export const utcMonday = utcWeekday(1); -export const utcTuesday = utcWeekday(2); -export const utcWednesday = utcWeekday(3); -export const utcThursday = utcWeekday(4); -export const utcFriday = utcWeekday(5); -export const utcSaturday = utcWeekday(6); - -export const utcSundays = utcSunday.range; -export const utcMondays = utcMonday.range; -export const utcTuesdays = utcTuesday.range; -export const utcWednesdays = utcWednesday.range; -export const utcThursdays = utcThursday.range; -export const utcFridays = utcFriday.range; -export const utcSaturdays = utcSaturday.range; diff --git a/build_vtk_bundle/node_modules/d3-time/src/year.js b/build_vtk_bundle/node_modules/d3-time/src/year.js deleted file mode 100644 index 9eadff34..00000000 --- a/build_vtk_bundle/node_modules/d3-time/src/year.js +++ /dev/null @@ -1,49 +0,0 @@ -import {timeInterval} from "./interval.js"; - -export const timeYear = timeInterval((date) => { - date.setMonth(0, 1); - date.setHours(0, 0, 0, 0); -}, (date, step) => { - date.setFullYear(date.getFullYear() + step); -}, (start, end) => { - return end.getFullYear() - start.getFullYear(); -}, (date) => { - return date.getFullYear(); -}); - -// An optimized implementation for this simple case. -timeYear.every = (k) => { - return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : timeInterval((date) => { - date.setFullYear(Math.floor(date.getFullYear() / k) * k); - date.setMonth(0, 1); - date.setHours(0, 0, 0, 0); - }, (date, step) => { - date.setFullYear(date.getFullYear() + step * k); - }); -}; - -export const timeYears = timeYear.range; - -export const utcYear = timeInterval((date) => { - date.setUTCMonth(0, 1); - date.setUTCHours(0, 0, 0, 0); -}, (date, step) => { - date.setUTCFullYear(date.getUTCFullYear() + step); -}, (start, end) => { - return end.getUTCFullYear() - start.getUTCFullYear(); -}, (date) => { - return date.getUTCFullYear(); -}); - -// An optimized implementation for this simple case. -utcYear.every = (k) => { - return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : timeInterval((date) => { - date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k); - date.setUTCMonth(0, 1); - date.setUTCHours(0, 0, 0, 0); - }, (date, step) => { - date.setUTCFullYear(date.getUTCFullYear() + step * k); - }); -}; - -export const utcYears = utcYear.range; diff --git a/build_vtk_bundle/node_modules/debug/LICENSE b/build_vtk_bundle/node_modules/debug/LICENSE deleted file mode 100644 index 1a9820e2..00000000 --- a/build_vtk_bundle/node_modules/debug/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -(The MIT License) - -Copyright (c) 2014-2017 TJ Holowaychuk -Copyright (c) 2018-2021 Josh Junon - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software -and associated documentation files (the 'Software'), to deal in the Software without restriction, -including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, -and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial -portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT -LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/build_vtk_bundle/node_modules/debug/README.md b/build_vtk_bundle/node_modules/debug/README.md deleted file mode 100644 index 9ebdfbf1..00000000 --- a/build_vtk_bundle/node_modules/debug/README.md +++ /dev/null @@ -1,481 +0,0 @@ -# debug -[![OpenCollective](https://opencollective.com/debug/backers/badge.svg)](#backers) -[![OpenCollective](https://opencollective.com/debug/sponsors/badge.svg)](#sponsors) - - - -A tiny JavaScript debugging utility modelled after Node.js core's debugging -technique. Works in Node.js and web browsers. - -## Installation - -```bash -$ npm install debug -``` - -## Usage - -`debug` exposes a function; simply pass this function the name of your module, and it will return a decorated version of `console.error` for you to pass debug statements to. This will allow you to toggle the debug output for different parts of your module as well as the module as a whole. - -Example [_app.js_](./examples/node/app.js): - -```js -var debug = require('debug')('http') - , http = require('http') - , name = 'My App'; - -// fake app - -debug('booting %o', name); - -http.createServer(function(req, res){ - debug(req.method + ' ' + req.url); - res.end('hello\n'); -}).listen(3000, function(){ - debug('listening'); -}); - -// fake worker of some kind - -require('./worker'); -``` - -Example [_worker.js_](./examples/node/worker.js): - -```js -var a = require('debug')('worker:a') - , b = require('debug')('worker:b'); - -function work() { - a('doing lots of uninteresting work'); - setTimeout(work, Math.random() * 1000); -} - -work(); - -function workb() { - b('doing some work'); - setTimeout(workb, Math.random() * 2000); -} - -workb(); -``` - -The `DEBUG` environment variable is then used to enable these based on space or -comma-delimited names. - -Here are some examples: - -screen shot 2017-08-08 at 12 53 04 pm -screen shot 2017-08-08 at 12 53 38 pm -screen shot 2017-08-08 at 12 53 25 pm - -#### Windows command prompt notes - -##### CMD - -On Windows the environment variable is set using the `set` command. - -```cmd -set DEBUG=*,-not_this -``` - -Example: - -```cmd -set DEBUG=* & node app.js -``` - -##### PowerShell (VS Code default) - -PowerShell uses different syntax to set environment variables. - -```cmd -$env:DEBUG = "*,-not_this" -``` - -Example: - -```cmd -$env:DEBUG='app';node app.js -``` - -Then, run the program to be debugged as usual. - -npm script example: -```js - "windowsDebug": "@powershell -Command $env:DEBUG='*';node app.js", -``` - -## Namespace Colors - -Every debug instance has a color generated for it based on its namespace name. -This helps when visually parsing the debug output to identify which debug instance -a debug line belongs to. - -#### Node.js - -In Node.js, colors are enabled when stderr is a TTY. You also _should_ install -the [`supports-color`](https://npmjs.org/supports-color) module alongside debug, -otherwise debug will only use a small handful of basic colors. - - - -#### Web Browser - -Colors are also enabled on "Web Inspectors" that understand the `%c` formatting -option. These are WebKit web inspectors, Firefox ([since version -31](https://hacks.mozilla.org/2014/05/editable-box-model-multiple-selection-sublime-text-keys-much-more-firefox-developer-tools-episode-31/)) -and the Firebug plugin for Firefox (any version). - - - - -## Millisecond diff - -When actively developing an application it can be useful to see when the time spent between one `debug()` call and the next. Suppose for example you invoke `debug()` before requesting a resource, and after as well, the "+NNNms" will show you how much time was spent between calls. - - - -When stdout is not a TTY, `Date#toISOString()` is used, making it more useful for logging the debug information as shown below: - - - - -## Conventions - -If you're using this in one or more of your libraries, you _should_ use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you _should_ prefix them with your library name and use ":" to separate features. For example "bodyParser" from Connect would then be "connect:bodyParser". If you append a "*" to the end of your name, it will always be enabled regardless of the setting of the DEBUG environment variable. You can then use it for normal output as well as debug output. - -## Wildcards - -The `*` character may be used as a wildcard. Suppose for example your library has -debuggers named "connect:bodyParser", "connect:compress", "connect:session", -instead of listing all three with -`DEBUG=connect:bodyParser,connect:compress,connect:session`, you may simply do -`DEBUG=connect:*`, or to run everything using this module simply use `DEBUG=*`. - -You can also exclude specific debuggers by prefixing them with a "-" character. -For example, `DEBUG=*,-connect:*` would include all debuggers except those -starting with "connect:". - -## Environment Variables - -When running through Node.js, you can set a few environment variables that will -change the behavior of the debug logging: - -| Name | Purpose | -|-----------|-------------------------------------------------| -| `DEBUG` | Enables/disables specific debugging namespaces. | -| `DEBUG_HIDE_DATE` | Hide date from debug output (non-TTY). | -| `DEBUG_COLORS`| Whether or not to use colors in the debug output. | -| `DEBUG_DEPTH` | Object inspection depth. | -| `DEBUG_SHOW_HIDDEN` | Shows hidden properties on inspected objects. | - - -__Note:__ The environment variables beginning with `DEBUG_` end up being -converted into an Options object that gets used with `%o`/`%O` formatters. -See the Node.js documentation for -[`util.inspect()`](https://nodejs.org/api/util.html#util_util_inspect_object_options) -for the complete list. - -## Formatters - -Debug uses [printf-style](https://wikipedia.org/wiki/Printf_format_string) formatting. -Below are the officially supported formatters: - -| Formatter | Representation | -|-----------|----------------| -| `%O` | Pretty-print an Object on multiple lines. | -| `%o` | Pretty-print an Object all on a single line. | -| `%s` | String. | -| `%d` | Number (both integer and float). | -| `%j` | JSON. Replaced with the string '[Circular]' if the argument contains circular references. | -| `%%` | Single percent sign ('%'). This does not consume an argument. | - - -### Custom formatters - -You can add custom formatters by extending the `debug.formatters` object. -For example, if you wanted to add support for rendering a Buffer as hex with -`%h`, you could do something like: - -```js -const createDebug = require('debug') -createDebug.formatters.h = (v) => { - return v.toString('hex') -} - -// …elsewhere -const debug = createDebug('foo') -debug('this is hex: %h', new Buffer('hello world')) -// foo this is hex: 68656c6c6f20776f726c6421 +0ms -``` - - -## Browser Support - -You can build a browser-ready script using [browserify](https://github.com/substack/node-browserify), -or just use the [browserify-as-a-service](https://wzrd.in/) [build](https://wzrd.in/standalone/debug@latest), -if you don't want to build it yourself. - -Debug's enable state is currently persisted by `localStorage`. -Consider the situation shown below where you have `worker:a` and `worker:b`, -and wish to debug both. You can enable this using `localStorage.debug`: - -```js -localStorage.debug = 'worker:*' -``` - -And then refresh the page. - -```js -a = debug('worker:a'); -b = debug('worker:b'); - -setInterval(function(){ - a('doing some work'); -}, 1000); - -setInterval(function(){ - b('doing some work'); -}, 1200); -``` - -In Chromium-based web browsers (e.g. Brave, Chrome, and Electron), the JavaScript console will—by default—only show messages logged by `debug` if the "Verbose" log level is _enabled_. - - - -## Output streams - - By default `debug` will log to stderr, however this can be configured per-namespace by overriding the `log` method: - -Example [_stdout.js_](./examples/node/stdout.js): - -```js -var debug = require('debug'); -var error = debug('app:error'); - -// by default stderr is used -error('goes to stderr!'); - -var log = debug('app:log'); -// set this namespace to log via console.log -log.log = console.log.bind(console); // don't forget to bind to console! -log('goes to stdout'); -error('still goes to stderr!'); - -// set all output to go via console.info -// overrides all per-namespace log settings -debug.log = console.info.bind(console); -error('now goes to stdout via console.info'); -log('still goes to stdout, but via console.info now'); -``` - -## Extend -You can simply extend debugger -```js -const log = require('debug')('auth'); - -//creates new debug instance with extended namespace -const logSign = log.extend('sign'); -const logLogin = log.extend('login'); - -log('hello'); // auth hello -logSign('hello'); //auth:sign hello -logLogin('hello'); //auth:login hello -``` - -## Set dynamically - -You can also enable debug dynamically by calling the `enable()` method : - -```js -let debug = require('debug'); - -console.log(1, debug.enabled('test')); - -debug.enable('test'); -console.log(2, debug.enabled('test')); - -debug.disable(); -console.log(3, debug.enabled('test')); - -``` - -print : -``` -1 false -2 true -3 false -``` - -Usage : -`enable(namespaces)` -`namespaces` can include modes separated by a colon and wildcards. - -Note that calling `enable()` completely overrides previously set DEBUG variable : - -``` -$ DEBUG=foo node -e 'var dbg = require("debug"); dbg.enable("bar"); console.log(dbg.enabled("foo"))' -=> false -``` - -`disable()` - -Will disable all namespaces. The functions returns the namespaces currently -enabled (and skipped). This can be useful if you want to disable debugging -temporarily without knowing what was enabled to begin with. - -For example: - -```js -let debug = require('debug'); -debug.enable('foo:*,-foo:bar'); -let namespaces = debug.disable(); -debug.enable(namespaces); -``` - -Note: There is no guarantee that the string will be identical to the initial -enable string, but semantically they will be identical. - -## Checking whether a debug target is enabled - -After you've created a debug instance, you can determine whether or not it is -enabled by checking the `enabled` property: - -```javascript -const debug = require('debug')('http'); - -if (debug.enabled) { - // do stuff... -} -``` - -You can also manually toggle this property to force the debug instance to be -enabled or disabled. - -## Usage in child processes - -Due to the way `debug` detects if the output is a TTY or not, colors are not shown in child processes when `stderr` is piped. A solution is to pass the `DEBUG_COLORS=1` environment variable to the child process. -For example: - -```javascript -worker = fork(WORKER_WRAP_PATH, [workerPath], { - stdio: [ - /* stdin: */ 0, - /* stdout: */ 'pipe', - /* stderr: */ 'pipe', - 'ipc', - ], - env: Object.assign({}, process.env, { - DEBUG_COLORS: 1 // without this settings, colors won't be shown - }), -}); - -worker.stderr.pipe(process.stderr, { end: false }); -``` - - -## Authors - - - TJ Holowaychuk - - Nathan Rajlich - - Andrew Rhyne - - Josh Junon - -## Backers - -Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/debug#backer)] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -## Sponsors - -Become a sponsor and get your logo on our README on Github with a link to your site. [[Become a sponsor](https://opencollective.com/debug#sponsor)] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -## License - -(The MIT License) - -Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca> -Copyright (c) 2018-2021 Josh Junon - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/debug/package.json b/build_vtk_bundle/node_modules/debug/package.json deleted file mode 100644 index ee8abb52..00000000 --- a/build_vtk_bundle/node_modules/debug/package.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "name": "debug", - "version": "4.4.3", - "repository": { - "type": "git", - "url": "git://github.com/debug-js/debug.git" - }, - "description": "Lightweight debugging utility for Node.js and the browser", - "keywords": [ - "debug", - "log", - "debugger" - ], - "files": [ - "src", - "LICENSE", - "README.md" - ], - "author": "Josh Junon (https://github.com/qix-)", - "contributors": [ - "TJ Holowaychuk ", - "Nathan Rajlich (http://n8.io)", - "Andrew Rhyne " - ], - "license": "MIT", - "scripts": { - "lint": "xo", - "test": "npm run test:node && npm run test:browser && npm run lint", - "test:node": "mocha test.js test.node.js", - "test:browser": "karma start --single-run", - "test:coverage": "cat ./coverage/lcov.info | coveralls" - }, - "dependencies": { - "ms": "^2.1.3" - }, - "devDependencies": { - "brfs": "^2.0.1", - "browserify": "^16.2.3", - "coveralls": "^3.0.2", - "karma": "^3.1.4", - "karma-browserify": "^6.0.0", - "karma-chrome-launcher": "^2.2.0", - "karma-mocha": "^1.3.0", - "mocha": "^5.2.0", - "mocha-lcov-reporter": "^1.2.0", - "sinon": "^14.0.0", - "xo": "^0.23.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - }, - "main": "./src/index.js", - "browser": "./src/browser.js", - "engines": { - "node": ">=6.0" - }, - "xo": { - "rules": { - "import/extensions": "off" - } - } -} diff --git a/build_vtk_bundle/node_modules/debug/src/browser.js b/build_vtk_bundle/node_modules/debug/src/browser.js deleted file mode 100644 index 5993451b..00000000 --- a/build_vtk_bundle/node_modules/debug/src/browser.js +++ /dev/null @@ -1,272 +0,0 @@ -/* eslint-env browser */ - -/** - * This is the web browser implementation of `debug()`. - */ - -exports.formatArgs = formatArgs; -exports.save = save; -exports.load = load; -exports.useColors = useColors; -exports.storage = localstorage(); -exports.destroy = (() => { - let warned = false; - - return () => { - if (!warned) { - warned = true; - console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'); - } - }; -})(); - -/** - * Colors. - */ - -exports.colors = [ - '#0000CC', - '#0000FF', - '#0033CC', - '#0033FF', - '#0066CC', - '#0066FF', - '#0099CC', - '#0099FF', - '#00CC00', - '#00CC33', - '#00CC66', - '#00CC99', - '#00CCCC', - '#00CCFF', - '#3300CC', - '#3300FF', - '#3333CC', - '#3333FF', - '#3366CC', - '#3366FF', - '#3399CC', - '#3399FF', - '#33CC00', - '#33CC33', - '#33CC66', - '#33CC99', - '#33CCCC', - '#33CCFF', - '#6600CC', - '#6600FF', - '#6633CC', - '#6633FF', - '#66CC00', - '#66CC33', - '#9900CC', - '#9900FF', - '#9933CC', - '#9933FF', - '#99CC00', - '#99CC33', - '#CC0000', - '#CC0033', - '#CC0066', - '#CC0099', - '#CC00CC', - '#CC00FF', - '#CC3300', - '#CC3333', - '#CC3366', - '#CC3399', - '#CC33CC', - '#CC33FF', - '#CC6600', - '#CC6633', - '#CC9900', - '#CC9933', - '#CCCC00', - '#CCCC33', - '#FF0000', - '#FF0033', - '#FF0066', - '#FF0099', - '#FF00CC', - '#FF00FF', - '#FF3300', - '#FF3333', - '#FF3366', - '#FF3399', - '#FF33CC', - '#FF33FF', - '#FF6600', - '#FF6633', - '#FF9900', - '#FF9933', - '#FFCC00', - '#FFCC33' -]; - -/** - * Currently only WebKit-based Web Inspectors, Firefox >= v31, - * and the Firebug extension (any Firefox version) are known - * to support "%c" CSS customizations. - * - * TODO: add a `localStorage` variable to explicitly enable/disable colors - */ - -// eslint-disable-next-line complexity -function useColors() { - // NB: In an Electron preload script, document will be defined but not fully - // initialized. Since we know we're in Chrome, we'll just detect this case - // explicitly - if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) { - return true; - } - - // Internet Explorer and Edge do not support colors. - if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) { - return false; - } - - let m; - - // Is webkit? http://stackoverflow.com/a/16459606/376773 - // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 - // eslint-disable-next-line no-return-assign - return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || - // Is firebug? http://stackoverflow.com/a/398120/376773 - (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || - // Is firefox >= v31? - // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages - (typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31) || - // Double check webkit in userAgent just in case we are in a worker - (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); -} - -/** - * Colorize log arguments if enabled. - * - * @api public - */ - -function formatArgs(args) { - args[0] = (this.useColors ? '%c' : '') + - this.namespace + - (this.useColors ? ' %c' : ' ') + - args[0] + - (this.useColors ? '%c ' : ' ') + - '+' + module.exports.humanize(this.diff); - - if (!this.useColors) { - return; - } - - const c = 'color: ' + this.color; - args.splice(1, 0, c, 'color: inherit'); - - // The final "%c" is somewhat tricky, because there could be other - // arguments passed either before or after the %c, so we need to - // figure out the correct index to insert the CSS into - let index = 0; - let lastC = 0; - args[0].replace(/%[a-zA-Z%]/g, match => { - if (match === '%%') { - return; - } - index++; - if (match === '%c') { - // We only are interested in the *last* %c - // (the user may have provided their own) - lastC = index; - } - }); - - args.splice(lastC, 0, c); -} - -/** - * Invokes `console.debug()` when available. - * No-op when `console.debug` is not a "function". - * If `console.debug` is not available, falls back - * to `console.log`. - * - * @api public - */ -exports.log = console.debug || console.log || (() => {}); - -/** - * Save `namespaces`. - * - * @param {String} namespaces - * @api private - */ -function save(namespaces) { - try { - if (namespaces) { - exports.storage.setItem('debug', namespaces); - } else { - exports.storage.removeItem('debug'); - } - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } -} - -/** - * Load `namespaces`. - * - * @return {String} returns the previously persisted debug modes - * @api private - */ -function load() { - let r; - try { - r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ; - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } - - // If debug isn't set in LS, and we're in Electron, try to load $DEBUG - if (!r && typeof process !== 'undefined' && 'env' in process) { - r = process.env.DEBUG; - } - - return r; -} - -/** - * Localstorage attempts to return the localstorage. - * - * This is necessary because safari throws - * when a user disables cookies/localstorage - * and you attempt to access it. - * - * @return {LocalStorage} - * @api private - */ - -function localstorage() { - try { - // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context - // The Browser also has localStorage in the global context. - return localStorage; - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } -} - -module.exports = require('./common')(exports); - -const {formatters} = module.exports; - -/** - * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. - */ - -formatters.j = function (v) { - try { - return JSON.stringify(v); - } catch (error) { - return '[UnexpectedJSONParseError]: ' + error.message; - } -}; diff --git a/build_vtk_bundle/node_modules/debug/src/common.js b/build_vtk_bundle/node_modules/debug/src/common.js deleted file mode 100644 index 141cb578..00000000 --- a/build_vtk_bundle/node_modules/debug/src/common.js +++ /dev/null @@ -1,292 +0,0 @@ - -/** - * This is the common logic for both the Node.js and web browser - * implementations of `debug()`. - */ - -function setup(env) { - createDebug.debug = createDebug; - createDebug.default = createDebug; - createDebug.coerce = coerce; - createDebug.disable = disable; - createDebug.enable = enable; - createDebug.enabled = enabled; - createDebug.humanize = require('ms'); - createDebug.destroy = destroy; - - Object.keys(env).forEach(key => { - createDebug[key] = env[key]; - }); - - /** - * The currently active debug mode names, and names to skip. - */ - - createDebug.names = []; - createDebug.skips = []; - - /** - * Map of special "%n" handling functions, for the debug "format" argument. - * - * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". - */ - createDebug.formatters = {}; - - /** - * Selects a color for a debug namespace - * @param {String} namespace The namespace string for the debug instance to be colored - * @return {Number|String} An ANSI color code for the given namespace - * @api private - */ - function selectColor(namespace) { - let hash = 0; - - for (let i = 0; i < namespace.length; i++) { - hash = ((hash << 5) - hash) + namespace.charCodeAt(i); - hash |= 0; // Convert to 32bit integer - } - - return createDebug.colors[Math.abs(hash) % createDebug.colors.length]; - } - createDebug.selectColor = selectColor; - - /** - * Create a debugger with the given `namespace`. - * - * @param {String} namespace - * @return {Function} - * @api public - */ - function createDebug(namespace) { - let prevTime; - let enableOverride = null; - let namespacesCache; - let enabledCache; - - function debug(...args) { - // Disabled? - if (!debug.enabled) { - return; - } - - const self = debug; - - // Set `diff` timestamp - const curr = Number(new Date()); - const ms = curr - (prevTime || curr); - self.diff = ms; - self.prev = prevTime; - self.curr = curr; - prevTime = curr; - - args[0] = createDebug.coerce(args[0]); - - if (typeof args[0] !== 'string') { - // Anything else let's inspect with %O - args.unshift('%O'); - } - - // Apply any `formatters` transformations - let index = 0; - args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => { - // If we encounter an escaped % then don't increase the array index - if (match === '%%') { - return '%'; - } - index++; - const formatter = createDebug.formatters[format]; - if (typeof formatter === 'function') { - const val = args[index]; - match = formatter.call(self, val); - - // Now we need to remove `args[index]` since it's inlined in the `format` - args.splice(index, 1); - index--; - } - return match; - }); - - // Apply env-specific formatting (colors, etc.) - createDebug.formatArgs.call(self, args); - - const logFn = self.log || createDebug.log; - logFn.apply(self, args); - } - - debug.namespace = namespace; - debug.useColors = createDebug.useColors(); - debug.color = createDebug.selectColor(namespace); - debug.extend = extend; - debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release. - - Object.defineProperty(debug, 'enabled', { - enumerable: true, - configurable: false, - get: () => { - if (enableOverride !== null) { - return enableOverride; - } - if (namespacesCache !== createDebug.namespaces) { - namespacesCache = createDebug.namespaces; - enabledCache = createDebug.enabled(namespace); - } - - return enabledCache; - }, - set: v => { - enableOverride = v; - } - }); - - // Env-specific initialization logic for debug instances - if (typeof createDebug.init === 'function') { - createDebug.init(debug); - } - - return debug; - } - - function extend(namespace, delimiter) { - const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace); - newDebug.log = this.log; - return newDebug; - } - - /** - * Enables a debug mode by namespaces. This can include modes - * separated by a colon and wildcards. - * - * @param {String} namespaces - * @api public - */ - function enable(namespaces) { - createDebug.save(namespaces); - createDebug.namespaces = namespaces; - - createDebug.names = []; - createDebug.skips = []; - - const split = (typeof namespaces === 'string' ? namespaces : '') - .trim() - .replace(/\s+/g, ',') - .split(',') - .filter(Boolean); - - for (const ns of split) { - if (ns[0] === '-') { - createDebug.skips.push(ns.slice(1)); - } else { - createDebug.names.push(ns); - } - } - } - - /** - * Checks if the given string matches a namespace template, honoring - * asterisks as wildcards. - * - * @param {String} search - * @param {String} template - * @return {Boolean} - */ - function matchesTemplate(search, template) { - let searchIndex = 0; - let templateIndex = 0; - let starIndex = -1; - let matchIndex = 0; - - while (searchIndex < search.length) { - if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) { - // Match character or proceed with wildcard - if (template[templateIndex] === '*') { - starIndex = templateIndex; - matchIndex = searchIndex; - templateIndex++; // Skip the '*' - } else { - searchIndex++; - templateIndex++; - } - } else if (starIndex !== -1) { // eslint-disable-line no-negated-condition - // Backtrack to the last '*' and try to match more characters - templateIndex = starIndex + 1; - matchIndex++; - searchIndex = matchIndex; - } else { - return false; // No match - } - } - - // Handle trailing '*' in template - while (templateIndex < template.length && template[templateIndex] === '*') { - templateIndex++; - } - - return templateIndex === template.length; - } - - /** - * Disable debug output. - * - * @return {String} namespaces - * @api public - */ - function disable() { - const namespaces = [ - ...createDebug.names, - ...createDebug.skips.map(namespace => '-' + namespace) - ].join(','); - createDebug.enable(''); - return namespaces; - } - - /** - * Returns true if the given mode name is enabled, false otherwise. - * - * @param {String} name - * @return {Boolean} - * @api public - */ - function enabled(name) { - for (const skip of createDebug.skips) { - if (matchesTemplate(name, skip)) { - return false; - } - } - - for (const ns of createDebug.names) { - if (matchesTemplate(name, ns)) { - return true; - } - } - - return false; - } - - /** - * Coerce `val`. - * - * @param {Mixed} val - * @return {Mixed} - * @api private - */ - function coerce(val) { - if (val instanceof Error) { - return val.stack || val.message; - } - return val; - } - - /** - * XXX DO NOT USE. This is a temporary stub function. - * XXX It WILL be removed in the next major release. - */ - function destroy() { - console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'); - } - - createDebug.enable(createDebug.load()); - - return createDebug; -} - -module.exports = setup; diff --git a/build_vtk_bundle/node_modules/debug/src/index.js b/build_vtk_bundle/node_modules/debug/src/index.js deleted file mode 100644 index bf4c57f2..00000000 --- a/build_vtk_bundle/node_modules/debug/src/index.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Detect Electron renderer / nwjs process, which is node, but we should - * treat as a browser. - */ - -if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { - module.exports = require('./browser.js'); -} else { - module.exports = require('./node.js'); -} diff --git a/build_vtk_bundle/node_modules/debug/src/node.js b/build_vtk_bundle/node_modules/debug/src/node.js deleted file mode 100644 index 715560a4..00000000 --- a/build_vtk_bundle/node_modules/debug/src/node.js +++ /dev/null @@ -1,263 +0,0 @@ -/** - * Module dependencies. - */ - -const tty = require('tty'); -const util = require('util'); - -/** - * This is the Node.js implementation of `debug()`. - */ - -exports.init = init; -exports.log = log; -exports.formatArgs = formatArgs; -exports.save = save; -exports.load = load; -exports.useColors = useColors; -exports.destroy = util.deprecate( - () => {}, - 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.' -); - -/** - * Colors. - */ - -exports.colors = [6, 2, 3, 4, 5, 1]; - -try { - // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json) - // eslint-disable-next-line import/no-extraneous-dependencies - const supportsColor = require('supports-color'); - - if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) { - exports.colors = [ - 20, - 21, - 26, - 27, - 32, - 33, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 56, - 57, - 62, - 63, - 68, - 69, - 74, - 75, - 76, - 77, - 78, - 79, - 80, - 81, - 92, - 93, - 98, - 99, - 112, - 113, - 128, - 129, - 134, - 135, - 148, - 149, - 160, - 161, - 162, - 163, - 164, - 165, - 166, - 167, - 168, - 169, - 170, - 171, - 172, - 173, - 178, - 179, - 184, - 185, - 196, - 197, - 198, - 199, - 200, - 201, - 202, - 203, - 204, - 205, - 206, - 207, - 208, - 209, - 214, - 215, - 220, - 221 - ]; - } -} catch (error) { - // Swallow - we only care if `supports-color` is available; it doesn't have to be. -} - -/** - * Build up the default `inspectOpts` object from the environment variables. - * - * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js - */ - -exports.inspectOpts = Object.keys(process.env).filter(key => { - return /^debug_/i.test(key); -}).reduce((obj, key) => { - // Camel-case - const prop = key - .substring(6) - .toLowerCase() - .replace(/_([a-z])/g, (_, k) => { - return k.toUpperCase(); - }); - - // Coerce string value into JS value - let val = process.env[key]; - if (/^(yes|on|true|enabled)$/i.test(val)) { - val = true; - } else if (/^(no|off|false|disabled)$/i.test(val)) { - val = false; - } else if (val === 'null') { - val = null; - } else { - val = Number(val); - } - - obj[prop] = val; - return obj; -}, {}); - -/** - * Is stdout a TTY? Colored output is enabled when `true`. - */ - -function useColors() { - return 'colors' in exports.inspectOpts ? - Boolean(exports.inspectOpts.colors) : - tty.isatty(process.stderr.fd); -} - -/** - * Adds ANSI color escape codes if enabled. - * - * @api public - */ - -function formatArgs(args) { - const {namespace: name, useColors} = this; - - if (useColors) { - const c = this.color; - const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c); - const prefix = ` ${colorCode};1m${name} \u001B[0m`; - - args[0] = prefix + args[0].split('\n').join('\n' + prefix); - args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m'); - } else { - args[0] = getDate() + name + ' ' + args[0]; - } -} - -function getDate() { - if (exports.inspectOpts.hideDate) { - return ''; - } - return new Date().toISOString() + ' '; -} - -/** - * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr. - */ - -function log(...args) { - return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\n'); -} - -/** - * Save `namespaces`. - * - * @param {String} namespaces - * @api private - */ -function save(namespaces) { - if (namespaces) { - process.env.DEBUG = namespaces; - } else { - // If you set a process.env field to null or undefined, it gets cast to the - // string 'null' or 'undefined'. Just delete instead. - delete process.env.DEBUG; - } -} - -/** - * Load `namespaces`. - * - * @return {String} returns the previously persisted debug modes - * @api private - */ - -function load() { - return process.env.DEBUG; -} - -/** - * Init logic for `debug` instances. - * - * Create a new `inspectOpts` object in case `useColors` is set - * differently for a particular `debug` instance. - */ - -function init(debug) { - debug.inspectOpts = {}; - - const keys = Object.keys(exports.inspectOpts); - for (let i = 0; i < keys.length; i++) { - debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]]; - } -} - -module.exports = require('./common')(exports); - -const {formatters} = module.exports; - -/** - * Map %o to `util.inspect()`, all on a single line. - */ - -formatters.o = function (v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts) - .split('\n') - .map(str => str.trim()) - .join(' '); -}; - -/** - * Map %O to `util.inspect()`, allowing multiple lines if needed. - */ - -formatters.O = function (v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts); -}; diff --git a/build_vtk_bundle/node_modules/define-data-property/.eslintrc b/build_vtk_bundle/node_modules/define-data-property/.eslintrc deleted file mode 100644 index 75443e81..00000000 --- a/build_vtk_bundle/node_modules/define-data-property/.eslintrc +++ /dev/null @@ -1,24 +0,0 @@ -{ - "root": true, - - "extends": "@ljharb", - - "rules": { - "complexity": 0, - "id-length": 0, - "new-cap": ["error", { - "capIsNewExceptions": [ - "GetIntrinsic", - ], - }], - }, - - "overrides": [ - { - "files": "test/**", - "rules": { - "max-lines-per-function": "off", - }, - }, - ], -} diff --git a/build_vtk_bundle/node_modules/define-data-property/.github/FUNDING.yml b/build_vtk_bundle/node_modules/define-data-property/.github/FUNDING.yml deleted file mode 100644 index 3e17725d..00000000 --- a/build_vtk_bundle/node_modules/define-data-property/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: [ljharb] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: npm/define-data-property -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/build_vtk_bundle/node_modules/define-data-property/.nycrc b/build_vtk_bundle/node_modules/define-data-property/.nycrc deleted file mode 100644 index 1826526e..00000000 --- a/build_vtk_bundle/node_modules/define-data-property/.nycrc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "all": true, - "check-coverage": false, - "reporter": ["text-summary", "text", "html", "json"], - "lines": 86, - "statements": 85.93, - "functions": 82.43, - "branches": 76.06, - "exclude": [ - "coverage", - "test" - ] -} diff --git a/build_vtk_bundle/node_modules/define-data-property/CHANGELOG.md b/build_vtk_bundle/node_modules/define-data-property/CHANGELOG.md deleted file mode 100644 index 4eed75ea..00000000 --- a/build_vtk_bundle/node_modules/define-data-property/CHANGELOG.md +++ /dev/null @@ -1,70 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [v1.1.4](https://github.com/ljharb/define-data-property/compare/v1.1.3...v1.1.4) - 2024-02-13 - -### Commits - -- [Refactor] use `es-define-property` [`90f2f4c`](https://github.com/ljharb/define-data-property/commit/90f2f4cc20298401e71c28e1e08888db12021453) -- [Dev Deps] update `@types/object.getownpropertydescriptors` [`cd929d9`](https://github.com/ljharb/define-data-property/commit/cd929d9a04f5f2fdcfa9d5be140940b91a083153) - -## [v1.1.3](https://github.com/ljharb/define-data-property/compare/v1.1.2...v1.1.3) - 2024-02-12 - -### Commits - -- [types] hand-write d.ts instead of emitting it [`0cbc988`](https://github.com/ljharb/define-data-property/commit/0cbc988203c105f2d97948327c7167ebd33bd318) -- [meta] simplify `exports` [`690781e`](https://github.com/ljharb/define-data-property/commit/690781eed28bbf2d6766237efda0ba6dd591609e) -- [Dev Deps] update `hasown`; clean up DT packages [`6cdfd1c`](https://github.com/ljharb/define-data-property/commit/6cdfd1cb2d91d791bfd18cda5d5cab232fd5d8fc) -- [actions] cleanup [`3142bc6`](https://github.com/ljharb/define-data-property/commit/3142bc6a4bc406a51f5b04f31e98562a27f35ffd) -- [meta] add `funding` [`8474423`](https://github.com/ljharb/define-data-property/commit/847442391a79779af3e0f1bf0b5bb923552b7804) -- [Deps] update `get-intrinsic` [`3e9be00`](https://github.com/ljharb/define-data-property/commit/3e9be00e07784ba34e7c77d8bc0fdbc832ad61de) - -## [v1.1.2](https://github.com/ljharb/define-data-property/compare/v1.1.1...v1.1.2) - 2024-02-05 - -### Commits - -- [Dev Deps] update @types packages, `object-inspect`, `tape`, `typescript` [`df41bf8`](https://github.com/ljharb/define-data-property/commit/df41bf84ca3456be6226055caab44e38e3a7fd2f) -- [Dev Deps] update DT packages, `aud`, `npmignore`, `tape`, typescript` [`fab0e4e`](https://github.com/ljharb/define-data-property/commit/fab0e4ec709ee02b79f42d6db3ee5f26e0a34b8a) -- [Dev Deps] use `hasown` instead of `has` [`aa51ef9`](https://github.com/ljharb/define-data-property/commit/aa51ef93f6403d49d9bb72a807bcdb6e418978c0) -- [Refactor] use `es-errors`, so things that only need those do not need `get-intrinsic` [`d89be50`](https://github.com/ljharb/define-data-property/commit/d89be50571175888d391238605122679f7e65ffc) -- [Deps] update `has-property-descriptors` [`7af887c`](https://github.com/ljharb/define-data-property/commit/7af887c9083b59b195b0079e04815cfed9fcee2b) -- [Deps] update `get-intrinsic` [`bb8728e`](https://github.com/ljharb/define-data-property/commit/bb8728ec42cd998505a7157ae24853a560c20646) - -## [v1.1.1](https://github.com/ljharb/define-data-property/compare/v1.1.0...v1.1.1) - 2023-10-12 - -### Commits - -- [Tests] fix tests in ES3 engines [`5c6920e`](https://github.com/ljharb/define-data-property/commit/5c6920edd1f52f675b02f417e539c28135b43f94) -- [Dev Deps] update `@types/es-value-fixtures`, `@types/for-each`, `@types/gopd`, `@types/has-property-descriptors`, `tape`, `typescript` [`7d82dfc`](https://github.com/ljharb/define-data-property/commit/7d82dfc20f778b4465bba06335dd53f6f431aea3) -- [Fix] IE 8 has a broken `Object.defineProperty` [`0672e1a`](https://github.com/ljharb/define-data-property/commit/0672e1af2a9fcc787e7c23b96dea60d290df5548) -- [meta] emit types on prepack [`73acb1f`](https://github.com/ljharb/define-data-property/commit/73acb1f903c21b314ec7156bf10f73c7910530c0) -- [Dev Deps] update `tape`, `typescript` [`9489a77`](https://github.com/ljharb/define-data-property/commit/9489a7738bf2ecf0ac71d5b78ec4ca6ad7ba0142) - -## [v1.1.0](https://github.com/ljharb/define-data-property/compare/v1.0.1...v1.1.0) - 2023-09-13 - -### Commits - -- [New] add `loose` arg [`155235a`](https://github.com/ljharb/define-data-property/commit/155235a4c4d7741f6de01cd87c99599a56654b72) -- [New] allow `null` to be passed for the non* args [`7d2fa5f`](https://github.com/ljharb/define-data-property/commit/7d2fa5f06be0392736c13b126f7cd38979f34792) - -## [v1.0.1](https://github.com/ljharb/define-data-property/compare/v1.0.0...v1.0.1) - 2023-09-12 - -### Commits - -- [meta] add TS types [`43d763c`](https://github.com/ljharb/define-data-property/commit/43d763c6c883f652de1c9c02ef6216ee507ffa69) -- [Dev Deps] update `@types/tape`, `typescript` [`f444985`](https://github.com/ljharb/define-data-property/commit/f444985811c36f3e6448a03ad2f9b7898917f4c7) -- [meta] add `safe-publish-latest`, [`172bb10`](https://github.com/ljharb/define-data-property/commit/172bb10890896ebb160e64398f6ee55760107bee) - -## v1.0.0 - 2023-09-12 - -### Commits - -- Initial implementation, tests, readme [`5b43d6b`](https://github.com/ljharb/define-data-property/commit/5b43d6b44e675a904810467a7d4e0adb7efc3196) -- Initial commit [`35e577a`](https://github.com/ljharb/define-data-property/commit/35e577a6ba59a98befa97776d70d90f3bea9009d) -- npm init [`82a0a04`](https://github.com/ljharb/define-data-property/commit/82a0a04a321ca7de220af02d41e2745e8a9962ed) -- Only apps should have lockfiles [`96df244`](https://github.com/ljharb/define-data-property/commit/96df244a3c6f426f9a2437be825d1c6f5dd7158e) -- [meta] use `npmignore` to autogenerate an npmignore file [`a87ff18`](https://github.com/ljharb/define-data-property/commit/a87ff18cb79e14c2eb5720486c4759fd9a189375) diff --git a/build_vtk_bundle/node_modules/define-data-property/LICENSE b/build_vtk_bundle/node_modules/define-data-property/LICENSE deleted file mode 100644 index b4213ac6..00000000 --- a/build_vtk_bundle/node_modules/define-data-property/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/define-data-property/README.md b/build_vtk_bundle/node_modules/define-data-property/README.md deleted file mode 100644 index f2304dae..00000000 --- a/build_vtk_bundle/node_modules/define-data-property/README.md +++ /dev/null @@ -1,67 +0,0 @@ -# define-data-property [![Version Badge][npm-version-svg]][package-url] - -[![github actions][actions-image]][actions-url] -[![coverage][codecov-image]][codecov-url] -[![License][license-image]][license-url] -[![Downloads][downloads-image]][downloads-url] - -[![npm badge][npm-badge-png]][package-url] - -Define a data property on an object. Will fall back to assignment in an engine without descriptors. - -The three `non*` argument can also be passed `null`, which will use the existing state if available. - -The `loose` argument will mean that if you attempt to set a non-normal data property, in an environment without descriptor support, it will fall back to normal assignment. - -## Usage - -```javascript -var defineDataProperty = require('define-data-property'); -var assert = require('assert'); - -var obj = {}; -defineDataProperty(obj, 'key', 'value'); -defineDataProperty( - obj, - 'key2', - 'value', - true, // nonEnumerable, optional - false, // nonWritable, optional - true, // nonConfigurable, optional - false // loose, optional -); - -assert.deepEqual( - Object.getOwnPropertyDescriptors(obj), - { - key: { - configurable: true, - enumerable: true, - value: 'value', - writable: true, - }, - key2: { - configurable: false, - enumerable: false, - value: 'value', - writable: true, - }, - } -); -``` - -[package-url]: https://npmjs.org/package/define-data-property -[npm-version-svg]: https://versionbadg.es/ljharb/define-data-property.svg -[deps-svg]: https://david-dm.org/ljharb/define-data-property.svg -[deps-url]: https://david-dm.org/ljharb/define-data-property -[dev-deps-svg]: https://david-dm.org/ljharb/define-data-property/dev-status.svg -[dev-deps-url]: https://david-dm.org/ljharb/define-data-property#info=devDependencies -[npm-badge-png]: https://nodei.co/npm/define-data-property.png?downloads=true&stars=true -[license-image]: https://img.shields.io/npm/l/define-data-property.svg -[license-url]: LICENSE -[downloads-image]: https://img.shields.io/npm/dm/define-data-property.svg -[downloads-url]: https://npm-stat.com/charts.html?package=define-data-property -[codecov-image]: https://codecov.io/gh/ljharb/define-data-property/branch/main/graphs/badge.svg -[codecov-url]: https://app.codecov.io/gh/ljharb/define-data-property/ -[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/define-data-property -[actions-url]: https://github.com/ljharb/define-data-property/actions diff --git a/build_vtk_bundle/node_modules/define-data-property/index.d.ts b/build_vtk_bundle/node_modules/define-data-property/index.d.ts deleted file mode 100644 index b56a77da..00000000 --- a/build_vtk_bundle/node_modules/define-data-property/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ - -declare function defineDataProperty( - obj: Record, - property: keyof typeof obj, - value: typeof obj[typeof property], - nonEnumerable?: boolean | null, - nonWritable?: boolean | null, - nonConfigurable?: boolean | null, - loose?: boolean -): void; - -export = defineDataProperty; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/define-data-property/index.js b/build_vtk_bundle/node_modules/define-data-property/index.js deleted file mode 100644 index e1a38c07..00000000 --- a/build_vtk_bundle/node_modules/define-data-property/index.js +++ /dev/null @@ -1,56 +0,0 @@ -'use strict'; - -var $defineProperty = require('es-define-property'); - -var $SyntaxError = require('es-errors/syntax'); -var $TypeError = require('es-errors/type'); - -var gopd = require('gopd'); - -/** @type {import('.')} */ -module.exports = function defineDataProperty( - obj, - property, - value -) { - if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) { - throw new $TypeError('`obj` must be an object or a function`'); - } - if (typeof property !== 'string' && typeof property !== 'symbol') { - throw new $TypeError('`property` must be a string or a symbol`'); - } - if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) { - throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null'); - } - if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) { - throw new $TypeError('`nonWritable`, if provided, must be a boolean or null'); - } - if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) { - throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null'); - } - if (arguments.length > 6 && typeof arguments[6] !== 'boolean') { - throw new $TypeError('`loose`, if provided, must be a boolean'); - } - - var nonEnumerable = arguments.length > 3 ? arguments[3] : null; - var nonWritable = arguments.length > 4 ? arguments[4] : null; - var nonConfigurable = arguments.length > 5 ? arguments[5] : null; - var loose = arguments.length > 6 ? arguments[6] : false; - - /* @type {false | TypedPropertyDescriptor} */ - var desc = !!gopd && gopd(obj, property); - - if ($defineProperty) { - $defineProperty(obj, property, { - configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable, - enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable, - value: value, - writable: nonWritable === null && desc ? desc.writable : !nonWritable - }); - } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) { - // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable - obj[property] = value; // eslint-disable-line no-param-reassign - } else { - throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.'); - } -}; diff --git a/build_vtk_bundle/node_modules/define-data-property/package.json b/build_vtk_bundle/node_modules/define-data-property/package.json deleted file mode 100644 index eec40971..00000000 --- a/build_vtk_bundle/node_modules/define-data-property/package.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "name": "define-data-property", - "version": "1.1.4", - "description": "Define a data property on an object. Will fall back to assignment in an engine without descriptors.", - "main": "index.js", - "types": "./index.d.ts", - "exports": { - ".": "./index.js", - "./package.json": "./package.json" - }, - "sideEffects": false, - "scripts": { - "prepack": "npmignore --auto --commentLines=autogenerated", - "prepublish": "not-in-publish || npm run prepublishOnly", - "prepublishOnly": "safe-publish-latest", - "tsc": "tsc -p .", - "prelint": "evalmd README.md", - "lint": "eslint --ext=js,mjs .", - "postlint": "npm run tsc", - "pretest": "npm run lint", - "tests-only": "nyc tape 'test/**/*.js'", - "test": "npm run tests-only", - "posttest": "aud --production", - "version": "auto-changelog && git add CHANGELOG.md", - "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/ljharb/define-data-property.git" - }, - "keywords": [ - "define", - "data", - "property", - "object", - "accessor", - "javascript", - "ecmascript", - "enumerable", - "configurable", - "writable" - ], - "author": "Jordan Harband ", - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "license": "MIT", - "bugs": { - "url": "https://github.com/ljharb/define-data-property/issues" - }, - "homepage": "https://github.com/ljharb/define-data-property#readme", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "devDependencies": { - "@ljharb/eslint-config": "^21.1.0", - "@types/call-bind": "^1.0.5", - "@types/define-properties": "^1.1.5", - "@types/es-value-fixtures": "^1.4.4", - "@types/for-each": "^0.3.3", - "@types/get-intrinsic": "^1.2.2", - "@types/gopd": "^1.0.3", - "@types/has-property-descriptors": "^1.0.3", - "@types/object-inspect": "^1.8.4", - "@types/object.getownpropertydescriptors": "^2.1.4", - "@types/tape": "^5.6.4", - "aud": "^2.0.4", - "auto-changelog": "^2.4.0", - "es-value-fixtures": "^1.4.2", - "eslint": "=8.8.0", - "evalmd": "^0.0.19", - "for-each": "^0.3.3", - "hasown": "^2.0.1", - "in-publish": "^2.0.1", - "npmignore": "^0.3.1", - "nyc": "^10.3.2", - "object-inspect": "^1.13.1", - "object.getownpropertydescriptors": "^2.1.7", - "reflect.ownkeys": "^1.1.4", - "safe-publish-latest": "^2.0.0", - "tape": "^5.7.4", - "typescript": "next" - }, - "engines": { - "node": ">= 0.4" - }, - "testling": { - "files": "test/index.js" - }, - "auto-changelog": { - "output": "CHANGELOG.md", - "template": "keepachangelog", - "unreleased": false, - "commitLimit": false, - "backfillLimit": false, - "hideCredit": true - }, - "publishConfig": { - "ignore": [ - ".github/workflows", - "types/reflect.ownkeys" - ] - } -} diff --git a/build_vtk_bundle/node_modules/define-data-property/test/index.js b/build_vtk_bundle/node_modules/define-data-property/test/index.js deleted file mode 100644 index 68204c66..00000000 --- a/build_vtk_bundle/node_modules/define-data-property/test/index.js +++ /dev/null @@ -1,392 +0,0 @@ -'use strict'; - -var test = require('tape'); -var v = require('es-value-fixtures'); -var forEach = require('for-each'); -var inspect = require('object-inspect'); -var hasOwn = require('hasown'); -var hasPropertyDescriptors = require('has-property-descriptors')(); -var getOwnPropertyDescriptors = require('object.getownpropertydescriptors'); -var ownKeys = require('reflect.ownkeys'); - -var defineDataProperty = require('../'); - -test('defineDataProperty', function (t) { - t.test('argument validation', function (st) { - forEach(v.primitives, function (nonObject) { - st['throws']( - // @ts-expect-error - function () { defineDataProperty(nonObject, 'key', 'value'); }, - TypeError, - 'throws on non-object input: ' + inspect(nonObject) - ); - }); - - forEach(v.nonPropertyKeys, function (nonPropertyKey) { - st['throws']( - // @ts-expect-error - function () { defineDataProperty({}, nonPropertyKey, 'value'); }, - TypeError, - 'throws on non-PropertyKey input: ' + inspect(nonPropertyKey) - ); - }); - - forEach(v.nonBooleans, function (nonBoolean) { - if (nonBoolean !== null) { - st['throws']( - // @ts-expect-error - function () { defineDataProperty({}, 'key', 'value', nonBoolean); }, - TypeError, - 'throws on non-boolean nonEnumerable: ' + inspect(nonBoolean) - ); - - st['throws']( - // @ts-expect-error - function () { defineDataProperty({}, 'key', 'value', false, nonBoolean); }, - TypeError, - 'throws on non-boolean nonWritable: ' + inspect(nonBoolean) - ); - - st['throws']( - // @ts-expect-error - function () { defineDataProperty({}, 'key', 'value', false, false, nonBoolean); }, - TypeError, - 'throws on non-boolean nonConfigurable: ' + inspect(nonBoolean) - ); - } - }); - - st.end(); - }); - - t.test('normal data property', function (st) { - /** @type {Record} */ - var obj = { existing: 'existing property' }; - st.ok(hasOwn(obj, 'existing'), 'has initial own property'); - st.equal(obj.existing, 'existing property', 'has expected initial value'); - - var res = defineDataProperty(obj, 'added', 'added property'); - st.equal(res, void undefined, 'returns `undefined`'); - st.ok(hasOwn(obj, 'added'), 'has expected own property'); - st.equal(obj.added, 'added property', 'has expected value'); - - defineDataProperty(obj, 'existing', 'new value'); - st.ok(hasOwn(obj, 'existing'), 'still has expected own property'); - st.equal(obj.existing, 'new value', 'has new expected value'); - - defineDataProperty(obj, 'explicit1', 'new value', false); - st.ok(hasOwn(obj, 'explicit1'), 'has expected own property (explicit enumerable)'); - st.equal(obj.explicit1, 'new value', 'has new expected value (explicit enumerable)'); - - defineDataProperty(obj, 'explicit2', 'new value', false, false); - st.ok(hasOwn(obj, 'explicit2'), 'has expected own property (explicit writable)'); - st.equal(obj.explicit2, 'new value', 'has new expected value (explicit writable)'); - - defineDataProperty(obj, 'explicit3', 'new value', false, false, false); - st.ok(hasOwn(obj, 'explicit3'), 'has expected own property (explicit configurable)'); - st.equal(obj.explicit3, 'new value', 'has new expected value (explicit configurable)'); - - st.end(); - }); - - t.test('loose mode', { skip: !hasPropertyDescriptors }, function (st) { - var obj = { existing: 'existing property' }; - - defineDataProperty(obj, 'added', 'added value 1', true, null, null, true); - st.deepEqual( - getOwnPropertyDescriptors(obj), - { - existing: { - configurable: true, - enumerable: true, - value: 'existing property', - writable: true - }, - added: { - configurable: true, - enumerable: !hasPropertyDescriptors, - value: 'added value 1', - writable: true - } - }, - 'in loose mode, obj still adds property 1' - ); - - defineDataProperty(obj, 'added', 'added value 2', false, true, null, true); - st.deepEqual( - getOwnPropertyDescriptors(obj), - { - existing: { - configurable: true, - enumerable: true, - value: 'existing property', - writable: true - }, - added: { - configurable: true, - enumerable: true, - value: 'added value 2', - writable: !hasPropertyDescriptors - } - }, - 'in loose mode, obj still adds property 2' - ); - - defineDataProperty(obj, 'added', 'added value 3', false, false, true, true); - st.deepEqual( - getOwnPropertyDescriptors(obj), - { - existing: { - configurable: true, - enumerable: true, - value: 'existing property', - writable: true - }, - added: { - configurable: !hasPropertyDescriptors, - enumerable: true, - value: 'added value 3', - writable: true - } - }, - 'in loose mode, obj still adds property 3' - ); - - st.end(); - }); - - t.test('non-normal data property, ES3', { skip: hasPropertyDescriptors }, function (st) { - /** @type {Record} */ - var obj = { existing: 'existing property' }; - - st['throws']( - function () { defineDataProperty(obj, 'added', 'added value', true); }, - SyntaxError, - 'nonEnumerable throws a Syntax Error' - ); - - st['throws']( - function () { defineDataProperty(obj, 'added', 'added value', false, true); }, - SyntaxError, - 'nonWritable throws a Syntax Error' - ); - - st['throws']( - function () { defineDataProperty(obj, 'added', 'added value', false, false, true); }, - SyntaxError, - 'nonWritable throws a Syntax Error' - ); - - st.deepEqual( - ownKeys(obj), - ['existing'], - 'obj still has expected keys' - ); - st.equal(obj.existing, 'existing property', 'obj still has expected values'); - - st.end(); - }); - - t.test('new non-normal data property, ES5+', { skip: !hasPropertyDescriptors }, function (st) { - /** @type {Record} */ - var obj = { existing: 'existing property' }; - - defineDataProperty(obj, 'nonEnum', null, true); - defineDataProperty(obj, 'nonWrit', null, false, true); - defineDataProperty(obj, 'nonConf', null, false, false, true); - - st.deepEqual( - getOwnPropertyDescriptors(obj), - { - existing: { - configurable: true, - enumerable: true, - value: 'existing property', - writable: true - }, - nonEnum: { - configurable: true, - enumerable: false, - value: null, - writable: true - }, - nonWrit: { - configurable: true, - enumerable: true, - value: null, - writable: false - }, - nonConf: { - configurable: false, - enumerable: true, - value: null, - writable: true - } - }, - 'obj has expected property descriptors' - ); - - st.end(); - }); - - t.test('existing non-normal data property, ES5+', { skip: !hasPropertyDescriptors }, function (st) { - // test case changing an existing non-normal property - - /** @type {Record} */ - var obj = {}; - Object.defineProperty(obj, 'nonEnum', { configurable: true, enumerable: false, value: null, writable: true }); - Object.defineProperty(obj, 'nonWrit', { configurable: true, enumerable: true, value: null, writable: false }); - Object.defineProperty(obj, 'nonConf', { configurable: false, enumerable: true, value: null, writable: true }); - - st.deepEqual( - getOwnPropertyDescriptors(obj), - { - nonEnum: { - configurable: true, - enumerable: false, - value: null, - writable: true - }, - nonWrit: { - configurable: true, - enumerable: true, - value: null, - writable: false - }, - nonConf: { - configurable: false, - enumerable: true, - value: null, - writable: true - } - }, - 'obj initially has expected property descriptors' - ); - - defineDataProperty(obj, 'nonEnum', 'new value', false); - defineDataProperty(obj, 'nonWrit', 'new value', false, false); - st['throws']( - function () { defineDataProperty(obj, 'nonConf', 'new value', false, false, false); }, - TypeError, - 'can not alter a nonconfigurable property' - ); - - st.deepEqual( - getOwnPropertyDescriptors(obj), - { - nonEnum: { - configurable: true, - enumerable: true, - value: 'new value', - writable: true - }, - nonWrit: { - configurable: true, - enumerable: true, - value: 'new value', - writable: true - }, - nonConf: { - configurable: false, - enumerable: true, - value: null, - writable: true - } - }, - 'obj ends up with expected property descriptors' - ); - - st.end(); - }); - - t.test('frozen object, ES5+', { skip: !hasPropertyDescriptors }, function (st) { - var frozen = Object.freeze({ existing: true }); - - st['throws']( - function () { defineDataProperty(frozen, 'existing', 'new value'); }, - TypeError, - 'frozen object can not modify an existing property' - ); - - st['throws']( - function () { defineDataProperty(frozen, 'new', 'new property'); }, - TypeError, - 'frozen object can not add a new property' - ); - - st.end(); - }); - - t.test('sealed object, ES5+', { skip: !hasPropertyDescriptors }, function (st) { - var sealed = Object.seal({ existing: true }); - st.deepEqual( - Object.getOwnPropertyDescriptor(sealed, 'existing'), - { - configurable: false, - enumerable: true, - value: true, - writable: true - }, - 'existing value on sealed object has expected descriptor' - ); - - defineDataProperty(sealed, 'existing', 'new value'); - - st.deepEqual( - Object.getOwnPropertyDescriptor(sealed, 'existing'), - { - configurable: false, - enumerable: true, - value: 'new value', - writable: true - }, - 'existing value on sealed object has changed descriptor' - ); - - st['throws']( - function () { defineDataProperty(sealed, 'new', 'new property'); }, - TypeError, - 'sealed object can not add a new property' - ); - - st.end(); - }); - - t.test('nonextensible object, ES5+', { skip: !hasPropertyDescriptors }, function (st) { - var nonExt = Object.preventExtensions({ existing: true }); - - st.deepEqual( - Object.getOwnPropertyDescriptor(nonExt, 'existing'), - { - configurable: true, - enumerable: true, - value: true, - writable: true - }, - 'existing value on non-extensible object has expected descriptor' - ); - - defineDataProperty(nonExt, 'existing', 'new value', true); - - st.deepEqual( - Object.getOwnPropertyDescriptor(nonExt, 'existing'), - { - configurable: true, - enumerable: false, - value: 'new value', - writable: true - }, - 'existing value on non-extensible object has changed descriptor' - ); - - st['throws']( - function () { defineDataProperty(nonExt, 'new', 'new property'); }, - TypeError, - 'non-extensible object can not add a new property' - ); - - st.end(); - }); - - t.end(); -}); diff --git a/build_vtk_bundle/node_modules/define-data-property/tsconfig.json b/build_vtk_bundle/node_modules/define-data-property/tsconfig.json deleted file mode 100644 index 69f060dc..00000000 --- a/build_vtk_bundle/node_modules/define-data-property/tsconfig.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "compilerOptions": { - /* Visit https://aka.ms/tsconfig to read more about this file */ - - /* Projects */ - - /* Language and Environment */ - "target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ - // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ - // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ - "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ - // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ - - /* Modules */ - "module": "commonjs", /* Specify what module code is generated. */ - // "rootDir": "./", /* Specify the root folder within your source files. */ - // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ - // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ - // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ - // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ - "typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */ - "resolveJsonModule": true, /* Enable importing .json files. */ - - /* JavaScript Support */ - "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ - "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ - "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ - - /* Emit */ - "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ - "declarationMap": true, /* Create sourcemaps for d.ts files. */ - // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ - "noEmit": true, /* Disable emitting files from a compilation. */ - - /* Interop Constraints */ - "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ - "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ - "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ - - /* Type Checking */ - "strict": true, /* Enable all strict type-checking options. */ - "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ - "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */ - "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */ - "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */ - "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */ - "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ - "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ - "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */ - "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ - // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */ - - /* Completeness */ - // "skipLibCheck": true /* Skip type checking all .d.ts files. */ - }, - "exclude": [ - "coverage" - ] -} diff --git a/build_vtk_bundle/node_modules/define-properties/.editorconfig b/build_vtk_bundle/node_modules/define-properties/.editorconfig deleted file mode 100644 index eaa21416..00000000 --- a/build_vtk_bundle/node_modules/define-properties/.editorconfig +++ /dev/null @@ -1,13 +0,0 @@ -root = true - -[*] -indent_style = tab; -insert_final_newline = true; -quote_type = auto; -space_after_anonymous_functions = true; -space_after_control_statements = true; -spaces_around_operators = true; -trim_trailing_whitespace = true; -spaces_in_brackets = false; -end_of_line = lf; - diff --git a/build_vtk_bundle/node_modules/define-properties/.eslintrc b/build_vtk_bundle/node_modules/define-properties/.eslintrc deleted file mode 100644 index 4297a97f..00000000 --- a/build_vtk_bundle/node_modules/define-properties/.eslintrc +++ /dev/null @@ -1,19 +0,0 @@ -{ - "root": true, - - "extends": "@ljharb", - - "rules": { - "id-length": [2, { "min": 1, "max": 35 }], - "max-params": [2, 4], - }, - - "overrides": [ - { - "files": "test/**", - "rules": { - "max-lines-per-function": 0, - }, - }, - ], -} diff --git a/build_vtk_bundle/node_modules/define-properties/.github/FUNDING.yml b/build_vtk_bundle/node_modules/define-properties/.github/FUNDING.yml deleted file mode 100644 index c70f264a..00000000 --- a/build_vtk_bundle/node_modules/define-properties/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: [ljharb] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: npm/define-properties -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/build_vtk_bundle/node_modules/define-properties/.nycrc b/build_vtk_bundle/node_modules/define-properties/.nycrc deleted file mode 100644 index bdd626ce..00000000 --- a/build_vtk_bundle/node_modules/define-properties/.nycrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "all": true, - "check-coverage": false, - "reporter": ["text-summary", "text", "html", "json"], - "exclude": [ - "coverage", - "test" - ] -} diff --git a/build_vtk_bundle/node_modules/define-properties/CHANGELOG.md b/build_vtk_bundle/node_modules/define-properties/CHANGELOG.md deleted file mode 100644 index 5bdf5f1c..00000000 --- a/build_vtk_bundle/node_modules/define-properties/CHANGELOG.md +++ /dev/null @@ -1,91 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [v1.2.1](https://github.com/ljharb/define-properties/compare/v1.2.0...v1.2.1) - 2023-09-12 - -### Commits - -- [Refactor] use `define-data-property` [`e7782a7`](https://github.com/ljharb/define-properties/commit/e7782a7480a62f8b6e141b49371e6de4df176c97) -- [actions] use reusable rebase action [`cd249c3`](https://github.com/ljharb/define-properties/commit/cd249c3920607bc8eeb7c0cd5b672b810983cac5) -- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`8205f97`](https://github.com/ljharb/define-properties/commit/8205f9734a4da8ee5b3b29798788567a09b330e8) - -## [v1.2.0](https://github.com/ljharb/define-properties/compare/v1.1.4...v1.2.0) - 2023-02-10 - -### Commits - -- [New] if the predicate is boolean `true`, it compares the existing value with `===` as the predicate [`d8dd6fc`](https://github.com/ljharb/define-properties/commit/d8dd6fca40d7c5878a4b643b91e66ae5a513a194) -- [meta] add `auto-changelog` [`7ebe2b0`](https://github.com/ljharb/define-properties/commit/7ebe2b0a0f90e62b842942cd45e86864fe75d9f6) -- [meta] use `npmignore` to autogenerate an npmignore file [`647478a`](https://github.com/ljharb/define-properties/commit/647478a8401fbf053fb633c0a3a7c982da6bad74) -- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`e620d70`](https://github.com/ljharb/define-properties/commit/e620d707d2e1118a38796f22a862200eb0a53fff) -- [Dev Deps] update `aud`, `tape` [`f1e5072`](https://github.com/ljharb/define-properties/commit/f1e507225c2551a99ed4fe40d3fe71b0f44acf88) -- [actions] update checkout action [`628b3af`](https://github.com/ljharb/define-properties/commit/628b3af5c74b8f0963296d811a8f6fa657baf964) - - - -1.1.4 / 2022-04-14 -================= - * [Refactor] use `has-property-descriptors` - * [readme] add github actions/codecov badges - * [Docs] fix header parsing; remove testling - * [Deps] update `object-keys` - * [meta] use `prepublishOnly` script for npm 7+ - * [meta] add `funding` field; create FUNDING.yml - * [actions] add "Allow Edits" workflow; automatic rebasing / merge commit blocking - * [actions] reuse common workflows - * [actions] update codecov uploader - * [actions] use `node/install` instead of `node/run`; use `codecov` action - * [Tests] migrate tests to Github Actions - * [Tests] run `nyc` on all tests; use `tape` runner - * [Tests] use shared travis-ci config - * [Tests] use `npx aud` instead of `nsp` or `npm audit` with hoops - * [Tests] remove `jscs` - * [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape`; add `aud`, `safe-publish-latest` - -1.1.3 / 2018-08-14 -================= - * [Refactor] use a for loop instead of `foreach` to make for smaller bundle sizes - * [Robustness] cache `Array.prototype.concat` and `Object.defineProperty` - * [Deps] update `object-keys` - * [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `nsp`, `tape`, `jscs`; remove unused eccheck script + dep - * [Tests] use pretest/posttest for linting/security - * [Tests] fix npm upgrades on older nodes - -1.1.2 / 2015-10-14 -================= - * [Docs] Switch from vb.teelaun.ch to versionbadg.es for the npm version badge SVG - * [Deps] Update `object-keys` - * [Dev Deps] update `jscs`, `tape`, `eslint`, `@ljharb/eslint-config`, `nsp` - * [Tests] up to `io.js` `v3.3`, `node` `v4.2` - -1.1.1 / 2015-07-21 -================= - * [Deps] Update `object-keys` - * [Dev Deps] Update `tape`, `eslint` - * [Tests] Test on `io.js` `v2.4` - -1.1.0 / 2015-07-01 -================= - * [New] Add support for symbol-valued properties. - * [Dev Deps] Update `nsp`, `eslint` - * [Tests] Test up to `io.js` `v2.3` - -1.0.3 / 2015-05-30 -================= - * Using a more reliable check for supported property descriptors. - -1.0.2 / 2015-05-23 -================= - * Test up to `io.js` `v2.0` - * Update `tape`, `jscs`, `nsp`, `eslint`, `object-keys`, `editorconfig-tools`, `covert` - -1.0.1 / 2015-01-06 -================= - * Update `object-keys` to fix ES3 support - -1.0.0 / 2015-01-04 -================= - * v1.0.0 diff --git a/build_vtk_bundle/node_modules/define-properties/LICENSE b/build_vtk_bundle/node_modules/define-properties/LICENSE deleted file mode 100644 index 8c271c14..00000000 --- a/build_vtk_bundle/node_modules/define-properties/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (C) 2015 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/define-properties/README.md b/build_vtk_bundle/node_modules/define-properties/README.md deleted file mode 100644 index 650adfa3..00000000 --- a/build_vtk_bundle/node_modules/define-properties/README.md +++ /dev/null @@ -1,84 +0,0 @@ -# define-properties [![Version Badge][npm-version-svg]][package-url] - -[![github actions][actions-image]][actions-url] -[![coverage][codecov-image]][codecov-url] -[![dependency status][deps-svg]][deps-url] -[![dev dependency status][dev-deps-svg]][dev-deps-url] -[![License][license-image]][license-url] -[![Downloads][downloads-image]][downloads-url] - -[![npm badge][npm-badge-png]][package-url] - -Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in older engines. -Existing properties are not overridden. Accepts a map of property names to a predicate that, when true, force-overrides. - -## Example - -```js -var define = require('define-properties'); -var assert = require('assert'); - -var obj = define({ a: 1, b: 2 }, { - a: 10, - b: 20, - c: 30 -}); -assert(obj.a === 1); -assert(obj.b === 2); -assert(obj.c === 30); -if (define.supportsDescriptors) { - assert.deepEqual(Object.keys(obj), ['a', 'b']); - assert.deepEqual(Object.getOwnPropertyDescriptor(obj, 'c'), { - configurable: true, - enumerable: false, - value: 30, - writable: false - }); -} -``` - -Then, with predicates: -```js -var define = require('define-properties'); -var assert = require('assert'); - -var obj = define({ a: 1, b: 2, c: 3 }, { - a: 10, - b: 20, - c: 30 -}, { - a: function () { return false; }, - b: function () { return true; } -}); -assert(obj.a === 1); -assert(obj.b === 20); -assert(obj.c === 3); -if (define.supportsDescriptors) { - assert.deepEqual(Object.keys(obj), ['a', 'c']); - assert.deepEqual(Object.getOwnPropertyDescriptor(obj, 'b'), { - configurable: true, - enumerable: false, - value: 20, - writable: false - }); -} -``` - -## Tests -Simply clone the repo, `npm install`, and run `npm test` - -[package-url]: https://npmjs.org/package/define-properties -[npm-version-svg]: https://versionbadg.es/ljharb/define-properties.svg -[deps-svg]: https://david-dm.org/ljharb/define-properties.svg -[deps-url]: https://david-dm.org/ljharb/define-properties -[dev-deps-svg]: https://david-dm.org/ljharb/define-properties/dev-status.svg -[dev-deps-url]: https://david-dm.org/ljharb/define-properties#info=devDependencies -[npm-badge-png]: https://nodei.co/npm/define-properties.png?downloads=true&stars=true -[license-image]: https://img.shields.io/npm/l/define-properties.svg -[license-url]: LICENSE -[downloads-image]: https://img.shields.io/npm/dm/define-properties.svg -[downloads-url]: https://npm-stat.com/charts.html?package=define-properties -[codecov-image]: https://codecov.io/gh/ljharb/define-properties/branch/main/graphs/badge.svg -[codecov-url]: https://app.codecov.io/gh/ljharb/define-properties/ -[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/define-properties -[actions-url]: https://github.com/ljharb/define-properties/actions diff --git a/build_vtk_bundle/node_modules/define-properties/index.js b/build_vtk_bundle/node_modules/define-properties/index.js deleted file mode 100644 index 1860404e..00000000 --- a/build_vtk_bundle/node_modules/define-properties/index.js +++ /dev/null @@ -1,47 +0,0 @@ -'use strict'; - -var keys = require('object-keys'); -var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol'; - -var toStr = Object.prototype.toString; -var concat = Array.prototype.concat; -var defineDataProperty = require('define-data-property'); - -var isFunction = function (fn) { - return typeof fn === 'function' && toStr.call(fn) === '[object Function]'; -}; - -var supportsDescriptors = require('has-property-descriptors')(); - -var defineProperty = function (object, name, value, predicate) { - if (name in object) { - if (predicate === true) { - if (object[name] === value) { - return; - } - } else if (!isFunction(predicate) || !predicate()) { - return; - } - } - - if (supportsDescriptors) { - defineDataProperty(object, name, value, true); - } else { - defineDataProperty(object, name, value); - } -}; - -var defineProperties = function (object, map) { - var predicates = arguments.length > 2 ? arguments[2] : {}; - var props = keys(map); - if (hasSymbols) { - props = concat.call(props, Object.getOwnPropertySymbols(map)); - } - for (var i = 0; i < props.length; i += 1) { - defineProperty(object, props[i], map[props[i]], predicates[props[i]]); - } -}; - -defineProperties.supportsDescriptors = !!supportsDescriptors; - -module.exports = defineProperties; diff --git a/build_vtk_bundle/node_modules/define-properties/package.json b/build_vtk_bundle/node_modules/define-properties/package.json deleted file mode 100644 index 577d8853..00000000 --- a/build_vtk_bundle/node_modules/define-properties/package.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "name": "define-properties", - "version": "1.2.1", - "author": "Jordan Harband ", - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "description": "Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in older engines.", - "license": "MIT", - "main": "index.js", - "scripts": { - "prepack": "npmignore --auto --commentLines=autogenerated", - "prepublish": "not-in-publish || npm run prepublishOnly", - "prepublishOnly": "safe-publish-latest", - "pretest": "npm run lint", - "test": "npm run tests-only", - "posttest": "aud --production", - "tests-only": "nyc tape 'test/**/*.js'", - "lint": "eslint --ext=js,mjs .", - "version": "auto-changelog && git add CHANGELOG.md", - "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" - }, - "repository": { - "type": "git", - "url": "git://github.com/ljharb/define-properties.git" - }, - "keywords": [ - "Object.defineProperty", - "Object.defineProperties", - "object", - "property descriptor", - "descriptor", - "define", - "ES5" - ], - "dependencies": { - "define-data-property": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "devDependencies": { - "@ljharb/eslint-config": "^21.1.0", - "aud": "^2.0.3", - "auto-changelog": "^2.4.0", - "eslint": "=8.8.0", - "in-publish": "^2.0.1", - "npmignore": "^0.3.0", - "nyc": "^10.3.2", - "safe-publish-latest": "^2.0.0", - "tape": "^5.6.6" - }, - "testling": { - "files": "test/index.js", - "browsers": [ - "iexplore/6.0..latest", - "firefox/3.0..6.0", - "firefox/15.0..latest", - "firefox/nightly", - "chrome/4.0..10.0", - "chrome/20.0..latest", - "chrome/canary", - "opera/10.0..latest", - "opera/next", - "safari/4.0..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2" - ] - }, - "engines": { - "node": ">= 0.4" - }, - "auto-changelog": { - "output": "CHANGELOG.md", - "template": "keepachangelog", - "unreleased": false, - "commitLimit": false, - "backfillLimit": false, - "hideCredit": true, - "startingVersion": "1.1.5" - }, - "publishConfig": { - "ignore": [ - ".github/workflows", - "test/" - ] - } -} diff --git a/build_vtk_bundle/node_modules/electron-to-chromium/LICENSE b/build_vtk_bundle/node_modules/electron-to-chromium/LICENSE deleted file mode 100644 index 6c7b614d..00000000 --- a/build_vtk_bundle/node_modules/electron-to-chromium/LICENSE +++ /dev/null @@ -1,5 +0,0 @@ -Copyright 2018 Kilian Valkhof - -Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/build_vtk_bundle/node_modules/electron-to-chromium/README.md b/build_vtk_bundle/node_modules/electron-to-chromium/README.md deleted file mode 100644 index a96ddf12..00000000 --- a/build_vtk_bundle/node_modules/electron-to-chromium/README.md +++ /dev/null @@ -1,186 +0,0 @@ -### Made by [@kilianvalkhof](https://twitter.com/kilianvalkhof) - -#### Other projects: - -- 💻 [Polypane](https://polypane.app) - Develop responsive websites and apps twice as fast on multiple screens at once -- 🖌️ [Superposition](https://superposition.design) - Kickstart your design system by extracting design tokens from your website -- 🗒️ [FromScratch](https://fromscratch.rocks) - A smart but simple autosaving scratchpad - ---- - -# Electron-to-Chromium [![npm](https://img.shields.io/npm/v/electron-to-chromium.svg)](https://www.npmjs.com/package/electron-to-chromium) [![travis](https://img.shields.io/travis/Kilian/electron-to-chromium/master.svg)](https://travis-ci.org/Kilian/electron-to-chromium) [![npm-downloads](https://img.shields.io/npm/dm/electron-to-chromium.svg)](https://www.npmjs.com/package/electron-to-chromium) [![codecov](https://codecov.io/gh/Kilian/electron-to-chromium/branch/master/graph/badge.svg)](https://codecov.io/gh/Kilian/electron-to-chromium)[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FKilian%2Felectron-to-chromium.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FKilian%2Felectron-to-chromium?ref=badge_shield) - -This repository provides a mapping of Electron versions to the Chromium version that it uses. - -This package is used in [Browserslist](https://github.com/ai/browserslist), so you can use e.g. `electron >= 1.4` in [Autoprefixer](https://github.com/postcss/autoprefixer), [Stylelint](https://github.com/stylelint/stylelint), [babel-preset-env](https://github.com/babel/babel-preset-env) and [eslint-plugin-compat](https://github.com/amilajack/eslint-plugin-compat). - -**Supported by:** - - - - - - -## Install -Install using `npm install electron-to-chromium`. - -## Usage -To include Electron-to-Chromium, require it: - -```js -var e2c = require('electron-to-chromium'); -``` - -### Properties -The Electron-to-Chromium object has 4 properties to use: - -#### `versions` -An object of key-value pairs with a _major_ Electron version as the key, and the corresponding major Chromium version as the value. - -```js -var versions = e2c.versions; -console.log(versions['1.4']); -// returns "53" -``` - -#### `fullVersions` -An object of key-value pairs with a Electron version as the key, and the corresponding full Chromium version as the value. - -```js -var versions = e2c.fullVersions; -console.log(versions['1.4.11']); -// returns "53.0.2785.143" -``` - -#### `chromiumVersions` -An object of key-value pairs with a _major_ Chromium version as the key, and the corresponding major Electron version as the value. - -```js -var versions = e2c.chromiumVersions; -console.log(versions['54']); -// returns "1.4" -``` - -#### `fullChromiumVersions` -An object of key-value pairs with a Chromium version as the key, and an array of the corresponding major Electron versions as the value. - -```js -var versions = e2c.fullChromiumVersions; -console.log(versions['54.0.2840.101']); -// returns ["1.5.1", "1.5.0"] -``` -### Functions - -#### `electronToChromium(query)` -Arguments: -* Query: string or number, required. A major or full Electron version. - -A function that returns the corresponding Chromium version for a given Electron function. Returns a string. - -If you provide it with a major Electron version, it will return a major Chromium version: - -```js -var chromeVersion = e2c.electronToChromium('1.4'); -// chromeVersion is "53" -``` - -If you provide it with a full Electron version, it will return the full Chromium version. - -```js -var chromeVersion = e2c.electronToChromium('1.4.11'); -// chromeVersion is "53.0.2785.143" -``` - -If a query does not match a Chromium version, it will return `undefined`. - -```js -var chromeVersion = e2c.electronToChromium('9000'); -// chromeVersion is undefined -``` - -#### `chromiumToElectron(query)` -Arguments: -* Query: string or number, required. A major or full Chromium version. - -Returns a string with the corresponding Electron version for a given Chromium query. - -If you provide it with a major Chromium version, it will return a major Electron version: - -```js -var electronVersion = e2c.chromiumToElectron('54'); -// electronVersion is "1.4" -``` - -If you provide it with a full Chrome version, it will return an array of full Electron versions. - -```js -var electronVersions = e2c.chromiumToElectron('56.0.2924.87'); -// electronVersions is ["1.6.3", "1.6.2", "1.6.1", "1.6.0"] -``` - -If a query does not match an Electron version, it will return `undefined`. - -```js -var electronVersion = e2c.chromiumToElectron('10'); -// electronVersion is undefined -``` - -#### `electronToBrowserList(query)` **DEPRECATED** -Arguments: -* Query: string or number, required. A major Electron version. - -_**Deprecated**: Browserlist already includes electron-to-chromium._ - -A function that returns a [Browserslist](https://github.com/ai/browserslist) query that matches the given major Electron version. Returns a string. - -If you provide it with a major Electron version, it will return a Browserlist query string that matches the Chromium capabilities: - -```js -var query = e2c.electronToBrowserList('1.4'); -// query is "Chrome >= 53" -``` - -If a query does not match a Chromium version, it will return `undefined`. - -```js -var query = e2c.electronToBrowserList('9000'); -// query is undefined -``` - -### Importing just versions, fullVersions, chromiumVersions and fullChromiumVersions -All lists can be imported on their own, if file size is a concern. - -#### `versions` - -```js -var versions = require('electron-to-chromium/versions'); -``` - -#### `fullVersions` - -```js -var fullVersions = require('electron-to-chromium/full-versions'); -``` - -#### `chromiumVersions` - -```js -var chromiumVersions = require('electron-to-chromium/chromium-versions'); -``` - -#### `fullChromiumVersions` - -```js -var fullChromiumVersions = require('electron-to-chromium/full-chromium-versions'); -``` - -## Updating -This package will be updated with each new Electron release. - -To update the list, run `npm run build.js`. Requires internet access as it downloads from the canonical list of Electron versions. - -To verify correct behaviour, run `npm test`. - - -## License -[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FKilian%2Felectron-to-chromium.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FKilian%2Felectron-to-chromium?ref=badge_large) diff --git a/build_vtk_bundle/node_modules/electron-to-chromium/chromium-versions.js b/build_vtk_bundle/node_modules/electron-to-chromium/chromium-versions.js deleted file mode 100644 index d7eec6e3..00000000 --- a/build_vtk_bundle/node_modules/electron-to-chromium/chromium-versions.js +++ /dev/null @@ -1,84 +0,0 @@ -module.exports = { - "39": "0.20", - "40": "0.21", - "41": "0.21", - "42": "0.25", - "43": "0.27", - "44": "0.30", - "45": "0.31", - "47": "0.36", - "49": "0.37", - "50": "1.1", - "51": "1.2", - "52": "1.3", - "53": "1.4", - "54": "1.4", - "56": "1.6", - "58": "1.7", - "59": "1.8", - "61": "2.0", - "66": "3.0", - "69": "4.0", - "72": "5.0", - "73": "5.0", - "76": "6.0", - "78": "7.0", - "79": "8.0", - "80": "8.0", - "82": "9.0", - "83": "9.0", - "84": "10.0", - "85": "10.0", - "86": "11.0", - "87": "11.0", - "89": "12.0", - "90": "13.0", - "91": "13.0", - "92": "14.0", - "93": "14.0", - "94": "15.0", - "95": "16.0", - "96": "16.0", - "98": "17.0", - "99": "18.0", - "100": "18.0", - "102": "19.0", - "103": "20.0", - "104": "20.0", - "105": "21.0", - "106": "21.0", - "107": "22.0", - "108": "22.0", - "110": "23.0", - "111": "24.0", - "112": "24.0", - "114": "25.0", - "116": "26.0", - "118": "27.0", - "119": "28.0", - "120": "28.0", - "121": "29.0", - "122": "29.0", - "123": "30.0", - "124": "30.0", - "125": "31.0", - "126": "31.0", - "127": "32.0", - "128": "32.0", - "129": "33.0", - "130": "33.0", - "131": "34.0", - "132": "34.0", - "133": "35.0", - "134": "35.0", - "135": "36.0", - "136": "36.0", - "137": "37.0", - "138": "37.0", - "139": "38.0", - "140": "38.0", - "141": "39.0", - "142": "39.0", - "143": "40.0", - "144": "40.0" -}; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/electron-to-chromium/chromium-versions.json b/build_vtk_bundle/node_modules/electron-to-chromium/chromium-versions.json deleted file mode 100644 index 06efeabe..00000000 --- a/build_vtk_bundle/node_modules/electron-to-chromium/chromium-versions.json +++ /dev/null @@ -1 +0,0 @@ -{"39":"0.20","40":"0.21","41":"0.21","42":"0.25","43":"0.27","44":"0.30","45":"0.31","47":"0.36","49":"0.37","50":"1.1","51":"1.2","52":"1.3","53":"1.4","54":"1.4","56":"1.6","58":"1.7","59":"1.8","61":"2.0","66":"3.0","69":"4.0","72":"5.0","73":"5.0","76":"6.0","78":"7.0","79":"8.0","80":"8.0","82":"9.0","83":"9.0","84":"10.0","85":"10.0","86":"11.0","87":"11.0","89":"12.0","90":"13.0","91":"13.0","92":"14.0","93":"14.0","94":"15.0","95":"16.0","96":"16.0","98":"17.0","99":"18.0","100":"18.0","102":"19.0","103":"20.0","104":"20.0","105":"21.0","106":"21.0","107":"22.0","108":"22.0","110":"23.0","111":"24.0","112":"24.0","114":"25.0","116":"26.0","118":"27.0","119":"28.0","120":"28.0","121":"29.0","122":"29.0","123":"30.0","124":"30.0","125":"31.0","126":"31.0","127":"32.0","128":"32.0","129":"33.0","130":"33.0","131":"34.0","132":"34.0","133":"35.0","134":"35.0","135":"36.0","136":"36.0","137":"37.0","138":"37.0","139":"38.0","140":"38.0","141":"39.0","142":"39.0","143":"40.0","144":"40.0"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/electron-to-chromium/full-chromium-versions.js b/build_vtk_bundle/node_modules/electron-to-chromium/full-chromium-versions.js deleted file mode 100644 index 8f934704..00000000 --- a/build_vtk_bundle/node_modules/electron-to-chromium/full-chromium-versions.js +++ /dev/null @@ -1,2614 +0,0 @@ -module.exports = { - "39.0.2171.65": [ - "0.20.0", - "0.20.1", - "0.20.2", - "0.20.3", - "0.20.4", - "0.20.5", - "0.20.6", - "0.20.7", - "0.20.8" - ], - "40.0.2214.91": [ - "0.21.0", - "0.21.1", - "0.21.2" - ], - "41.0.2272.76": [ - "0.21.3", - "0.22.1", - "0.22.2", - "0.22.3", - "0.23.0", - "0.24.0" - ], - "42.0.2311.107": [ - "0.25.0", - "0.25.1", - "0.25.2", - "0.25.3", - "0.26.0", - "0.26.1", - "0.27.0", - "0.27.1" - ], - "43.0.2357.65": [ - "0.27.2", - "0.27.3", - "0.28.0", - "0.28.1", - "0.28.2", - "0.28.3", - "0.29.1", - "0.29.2" - ], - "44.0.2403.125": [ - "0.30.4", - "0.31.0" - ], - "45.0.2454.85": [ - "0.31.2", - "0.32.2", - "0.32.3", - "0.33.0", - "0.33.1", - "0.33.2", - "0.33.3", - "0.33.4", - "0.33.6", - "0.33.7", - "0.33.8", - "0.33.9", - "0.34.0", - "0.34.1", - "0.34.2", - "0.34.3", - "0.34.4", - "0.35.1", - "0.35.2", - "0.35.3", - "0.35.4", - "0.35.5" - ], - "47.0.2526.73": [ - "0.36.0", - "0.36.2", - "0.36.3", - "0.36.4" - ], - "47.0.2526.110": [ - "0.36.5", - "0.36.6", - "0.36.7", - "0.36.8", - "0.36.9", - "0.36.10", - "0.36.11", - "0.36.12" - ], - "49.0.2623.75": [ - "0.37.0", - "0.37.1", - "0.37.3", - "0.37.4", - "0.37.5", - "0.37.6", - "0.37.7", - "0.37.8", - "1.0.0", - "1.0.1", - "1.0.2" - ], - "50.0.2661.102": [ - "1.1.0", - "1.1.1", - "1.1.2", - "1.1.3" - ], - "51.0.2704.63": [ - "1.2.0", - "1.2.1" - ], - "51.0.2704.84": [ - "1.2.2", - "1.2.3" - ], - "51.0.2704.103": [ - "1.2.4", - "1.2.5" - ], - "51.0.2704.106": [ - "1.2.6", - "1.2.7", - "1.2.8" - ], - "52.0.2743.82": [ - "1.3.0", - "1.3.1", - "1.3.2", - "1.3.3", - "1.3.4", - "1.3.5", - "1.3.6", - "1.3.7", - "1.3.9", - "1.3.10", - "1.3.13", - "1.3.14", - "1.3.15" - ], - "53.0.2785.113": [ - "1.4.0", - "1.4.1", - "1.4.2", - "1.4.3", - "1.4.4", - "1.4.5" - ], - "53.0.2785.143": [ - "1.4.6", - "1.4.7", - "1.4.8", - "1.4.10", - "1.4.11", - "1.4.13", - "1.4.14", - "1.4.15", - "1.4.16" - ], - "54.0.2840.51": [ - "1.4.12" - ], - "54.0.2840.101": [ - "1.5.0", - "1.5.1" - ], - "56.0.2924.87": [ - "1.6.0", - "1.6.1", - "1.6.2", - "1.6.3", - "1.6.4", - "1.6.5", - "1.6.6", - "1.6.7", - "1.6.8", - "1.6.9", - "1.6.10", - "1.6.11", - "1.6.12", - "1.6.13", - "1.6.14", - "1.6.15", - "1.6.16", - "1.6.17", - "1.6.18" - ], - "58.0.3029.110": [ - "1.7.0", - "1.7.1", - "1.7.2", - "1.7.3", - "1.7.4", - "1.7.5", - "1.7.6", - "1.7.7", - "1.7.8", - "1.7.9", - "1.7.10", - "1.7.11", - "1.7.12", - "1.7.13", - "1.7.14", - "1.7.15", - "1.7.16" - ], - "59.0.3071.115": [ - "1.8.0", - "1.8.1", - "1.8.2-beta.1", - "1.8.2-beta.2", - "1.8.2-beta.3", - "1.8.2-beta.4", - "1.8.2-beta.5", - "1.8.2", - "1.8.3", - "1.8.4", - "1.8.5", - "1.8.6", - "1.8.7", - "1.8.8" - ], - "61.0.3163.100": [ - "2.0.0-beta.1", - "2.0.0-beta.2", - "2.0.0-beta.3", - "2.0.0-beta.4", - "2.0.0-beta.5", - "2.0.0-beta.6", - "2.0.0-beta.7", - "2.0.0-beta.8", - "2.0.0", - "2.0.1", - "2.0.2", - "2.0.3", - "2.0.4", - "2.0.5", - "2.0.6", - "2.0.7", - "2.0.8", - "2.0.9", - "2.0.10", - "2.0.11", - "2.0.12", - "2.0.13", - "2.0.14", - "2.0.15", - "2.0.16", - "2.0.17", - "2.0.18", - "2.1.0-unsupported.20180809" - ], - "66.0.3359.181": [ - "3.0.0-beta.1", - "3.0.0-beta.2", - "3.0.0-beta.3", - "3.0.0-beta.4", - "3.0.0-beta.5", - "3.0.0-beta.6", - "3.0.0-beta.7", - "3.0.0-beta.8", - "3.0.0-beta.9", - "3.0.0-beta.10", - "3.0.0-beta.11", - "3.0.0-beta.12", - "3.0.0-beta.13", - "3.0.0", - "3.0.1", - "3.0.2", - "3.0.3", - "3.0.4", - "3.0.5", - "3.0.6", - "3.0.7", - "3.0.8", - "3.0.9", - "3.0.10", - "3.0.11", - "3.0.12", - "3.0.13", - "3.0.14", - "3.0.15", - "3.0.16", - "3.1.0-beta.1", - "3.1.0-beta.2", - "3.1.0-beta.3", - "3.1.0-beta.4", - "3.1.0-beta.5", - "3.1.0", - "3.1.1", - "3.1.2", - "3.1.3", - "3.1.4", - "3.1.5", - "3.1.6", - "3.1.7", - "3.1.8", - "3.1.9", - "3.1.10", - "3.1.11", - "3.1.12", - "3.1.13" - ], - "69.0.3497.106": [ - "4.0.0-beta.1", - "4.0.0-beta.2", - "4.0.0-beta.3", - "4.0.0-beta.4", - "4.0.0-beta.5", - "4.0.0-beta.6", - "4.0.0-beta.7", - "4.0.0-beta.8", - "4.0.0-beta.9", - "4.0.0-beta.10", - "4.0.0-beta.11", - "4.0.0", - "4.0.1", - "4.0.2", - "4.0.3", - "4.0.4", - "4.0.5", - "4.0.6" - ], - "69.0.3497.128": [ - "4.0.7", - "4.0.8", - "4.1.0", - "4.1.1", - "4.1.2", - "4.1.3", - "4.1.4", - "4.1.5", - "4.2.0", - "4.2.1", - "4.2.2", - "4.2.3", - "4.2.4", - "4.2.5", - "4.2.6", - "4.2.7", - "4.2.8", - "4.2.9", - "4.2.10", - "4.2.11", - "4.2.12" - ], - "72.0.3626.52": [ - "5.0.0-beta.1", - "5.0.0-beta.2" - ], - "73.0.3683.27": [ - "5.0.0-beta.3" - ], - "73.0.3683.54": [ - "5.0.0-beta.4" - ], - "73.0.3683.61": [ - "5.0.0-beta.5" - ], - "73.0.3683.84": [ - "5.0.0-beta.6" - ], - "73.0.3683.94": [ - "5.0.0-beta.7" - ], - "73.0.3683.104": [ - "5.0.0-beta.8" - ], - "73.0.3683.117": [ - "5.0.0-beta.9" - ], - "73.0.3683.119": [ - "5.0.0" - ], - "73.0.3683.121": [ - "5.0.1", - "5.0.2", - "5.0.3", - "5.0.4", - "5.0.5", - "5.0.6", - "5.0.7", - "5.0.8", - "5.0.9", - "5.0.10", - "5.0.11", - "5.0.12", - "5.0.13" - ], - "76.0.3774.1": [ - "6.0.0-beta.1" - ], - "76.0.3783.1": [ - "6.0.0-beta.2", - "6.0.0-beta.3", - "6.0.0-beta.4" - ], - "76.0.3805.4": [ - "6.0.0-beta.5" - ], - "76.0.3809.3": [ - "6.0.0-beta.6" - ], - "76.0.3809.22": [ - "6.0.0-beta.7" - ], - "76.0.3809.26": [ - "6.0.0-beta.8", - "6.0.0-beta.9" - ], - "76.0.3809.37": [ - "6.0.0-beta.10" - ], - "76.0.3809.42": [ - "6.0.0-beta.11" - ], - "76.0.3809.54": [ - "6.0.0-beta.12" - ], - "76.0.3809.60": [ - "6.0.0-beta.13" - ], - "76.0.3809.68": [ - "6.0.0-beta.14" - ], - "76.0.3809.74": [ - "6.0.0-beta.15" - ], - "76.0.3809.88": [ - "6.0.0" - ], - "76.0.3809.102": [ - "6.0.1" - ], - "76.0.3809.110": [ - "6.0.2" - ], - "76.0.3809.126": [ - "6.0.3" - ], - "76.0.3809.131": [ - "6.0.4" - ], - "76.0.3809.136": [ - "6.0.5" - ], - "76.0.3809.138": [ - "6.0.6" - ], - "76.0.3809.139": [ - "6.0.7" - ], - "76.0.3809.146": [ - "6.0.8", - "6.0.9", - "6.0.10", - "6.0.11", - "6.0.12", - "6.1.0", - "6.1.1", - "6.1.2", - "6.1.3", - "6.1.4", - "6.1.5", - "6.1.6", - "6.1.7", - "6.1.8", - "6.1.9", - "6.1.10", - "6.1.11", - "6.1.12" - ], - "78.0.3866.0": [ - "7.0.0-beta.1", - "7.0.0-beta.2", - "7.0.0-beta.3" - ], - "78.0.3896.6": [ - "7.0.0-beta.4" - ], - "78.0.3905.1": [ - "7.0.0-beta.5", - "7.0.0-beta.6", - "7.0.0-beta.7", - "7.0.0" - ], - "78.0.3904.92": [ - "7.0.1" - ], - "78.0.3904.94": [ - "7.1.0" - ], - "78.0.3904.99": [ - "7.1.1" - ], - "78.0.3904.113": [ - "7.1.2" - ], - "78.0.3904.126": [ - "7.1.3" - ], - "78.0.3904.130": [ - "7.1.4", - "7.1.5", - "7.1.6", - "7.1.7", - "7.1.8", - "7.1.9", - "7.1.10", - "7.1.11", - "7.1.12", - "7.1.13", - "7.1.14", - "7.2.0", - "7.2.1", - "7.2.2", - "7.2.3", - "7.2.4", - "7.3.0", - "7.3.1", - "7.3.2", - "7.3.3" - ], - "79.0.3931.0": [ - "8.0.0-beta.1", - "8.0.0-beta.2" - ], - "80.0.3955.0": [ - "8.0.0-beta.3", - "8.0.0-beta.4" - ], - "80.0.3987.14": [ - "8.0.0-beta.5" - ], - "80.0.3987.51": [ - "8.0.0-beta.6" - ], - "80.0.3987.59": [ - "8.0.0-beta.7" - ], - "80.0.3987.75": [ - "8.0.0-beta.8", - "8.0.0-beta.9" - ], - "80.0.3987.86": [ - "8.0.0", - "8.0.1", - "8.0.2" - ], - "80.0.3987.134": [ - "8.0.3" - ], - "80.0.3987.137": [ - "8.1.0" - ], - "80.0.3987.141": [ - "8.1.1" - ], - "80.0.3987.158": [ - "8.2.0" - ], - "80.0.3987.163": [ - "8.2.1", - "8.2.2", - "8.2.3", - "8.5.3", - "8.5.4", - "8.5.5" - ], - "80.0.3987.165": [ - "8.2.4", - "8.2.5", - "8.3.0", - "8.3.1", - "8.3.2", - "8.3.3", - "8.3.4", - "8.4.0", - "8.4.1", - "8.5.0", - "8.5.1", - "8.5.2" - ], - "82.0.4048.0": [ - "9.0.0-beta.1", - "9.0.0-beta.2", - "9.0.0-beta.3", - "9.0.0-beta.4", - "9.0.0-beta.5" - ], - "82.0.4058.2": [ - "9.0.0-beta.6", - "9.0.0-beta.7", - "9.0.0-beta.9" - ], - "82.0.4085.10": [ - "9.0.0-beta.10" - ], - "82.0.4085.14": [ - "9.0.0-beta.11", - "9.0.0-beta.12", - "9.0.0-beta.13" - ], - "82.0.4085.27": [ - "9.0.0-beta.14" - ], - "83.0.4102.3": [ - "9.0.0-beta.15", - "9.0.0-beta.16" - ], - "83.0.4103.14": [ - "9.0.0-beta.17" - ], - "83.0.4103.16": [ - "9.0.0-beta.18" - ], - "83.0.4103.24": [ - "9.0.0-beta.19" - ], - "83.0.4103.26": [ - "9.0.0-beta.20", - "9.0.0-beta.21" - ], - "83.0.4103.34": [ - "9.0.0-beta.22" - ], - "83.0.4103.44": [ - "9.0.0-beta.23" - ], - "83.0.4103.45": [ - "9.0.0-beta.24" - ], - "83.0.4103.64": [ - "9.0.0" - ], - "83.0.4103.94": [ - "9.0.1", - "9.0.2" - ], - "83.0.4103.100": [ - "9.0.3" - ], - "83.0.4103.104": [ - "9.0.4" - ], - "83.0.4103.119": [ - "9.0.5" - ], - "83.0.4103.122": [ - "9.1.0", - "9.1.1", - "9.1.2", - "9.2.0", - "9.2.1", - "9.3.0", - "9.3.1", - "9.3.2", - "9.3.3", - "9.3.4", - "9.3.5", - "9.4.0", - "9.4.1", - "9.4.2", - "9.4.3", - "9.4.4" - ], - "84.0.4129.0": [ - "10.0.0-beta.1", - "10.0.0-beta.2" - ], - "85.0.4161.2": [ - "10.0.0-beta.3", - "10.0.0-beta.4" - ], - "85.0.4181.1": [ - "10.0.0-beta.8", - "10.0.0-beta.9" - ], - "85.0.4183.19": [ - "10.0.0-beta.10" - ], - "85.0.4183.20": [ - "10.0.0-beta.11" - ], - "85.0.4183.26": [ - "10.0.0-beta.12" - ], - "85.0.4183.39": [ - "10.0.0-beta.13", - "10.0.0-beta.14", - "10.0.0-beta.15", - "10.0.0-beta.17", - "10.0.0-beta.19", - "10.0.0-beta.20", - "10.0.0-beta.21" - ], - "85.0.4183.70": [ - "10.0.0-beta.23" - ], - "85.0.4183.78": [ - "10.0.0-beta.24" - ], - "85.0.4183.80": [ - "10.0.0-beta.25" - ], - "85.0.4183.84": [ - "10.0.0" - ], - "85.0.4183.86": [ - "10.0.1" - ], - "85.0.4183.87": [ - "10.1.0" - ], - "85.0.4183.93": [ - "10.1.1" - ], - "85.0.4183.98": [ - "10.1.2" - ], - "85.0.4183.121": [ - "10.1.3", - "10.1.4", - "10.1.5", - "10.1.6", - "10.1.7", - "10.2.0", - "10.3.0", - "10.3.1", - "10.3.2", - "10.4.0", - "10.4.1", - "10.4.2", - "10.4.3", - "10.4.4", - "10.4.5", - "10.4.6", - "10.4.7" - ], - "86.0.4234.0": [ - "11.0.0-beta.1", - "11.0.0-beta.3", - "11.0.0-beta.4", - "11.0.0-beta.5", - "11.0.0-beta.6", - "11.0.0-beta.7" - ], - "87.0.4251.1": [ - "11.0.0-beta.8", - "11.0.0-beta.9", - "11.0.0-beta.11" - ], - "87.0.4280.11": [ - "11.0.0-beta.12", - "11.0.0-beta.13" - ], - "87.0.4280.27": [ - "11.0.0-beta.16", - "11.0.0-beta.17", - "11.0.0-beta.18", - "11.0.0-beta.19" - ], - "87.0.4280.40": [ - "11.0.0-beta.20" - ], - "87.0.4280.47": [ - "11.0.0-beta.22", - "11.0.0-beta.23" - ], - "87.0.4280.60": [ - "11.0.0", - "11.0.1" - ], - "87.0.4280.67": [ - "11.0.2", - "11.0.3", - "11.0.4" - ], - "87.0.4280.88": [ - "11.0.5", - "11.1.0", - "11.1.1" - ], - "87.0.4280.141": [ - "11.2.0", - "11.2.1", - "11.2.2", - "11.2.3", - "11.3.0", - "11.4.0", - "11.4.1", - "11.4.2", - "11.4.3", - "11.4.4", - "11.4.5", - "11.4.6", - "11.4.7", - "11.4.8", - "11.4.9", - "11.4.10", - "11.4.11", - "11.4.12", - "11.5.0" - ], - "89.0.4328.0": [ - "12.0.0-beta.1", - "12.0.0-beta.3", - "12.0.0-beta.4", - "12.0.0-beta.5", - "12.0.0-beta.6", - "12.0.0-beta.7", - "12.0.0-beta.8", - "12.0.0-beta.9", - "12.0.0-beta.10", - "12.0.0-beta.11", - "12.0.0-beta.12", - "12.0.0-beta.14" - ], - "89.0.4348.1": [ - "12.0.0-beta.16", - "12.0.0-beta.18", - "12.0.0-beta.19", - "12.0.0-beta.20" - ], - "89.0.4388.2": [ - "12.0.0-beta.21", - "12.0.0-beta.22", - "12.0.0-beta.23", - "12.0.0-beta.24", - "12.0.0-beta.25", - "12.0.0-beta.26" - ], - "89.0.4389.23": [ - "12.0.0-beta.27", - "12.0.0-beta.28", - "12.0.0-beta.29" - ], - "89.0.4389.58": [ - "12.0.0-beta.30", - "12.0.0-beta.31" - ], - "89.0.4389.69": [ - "12.0.0" - ], - "89.0.4389.82": [ - "12.0.1" - ], - "89.0.4389.90": [ - "12.0.2" - ], - "89.0.4389.114": [ - "12.0.3", - "12.0.4" - ], - "89.0.4389.128": [ - "12.0.5", - "12.0.6", - "12.0.7", - "12.0.8", - "12.0.9", - "12.0.10", - "12.0.11", - "12.0.12", - "12.0.13", - "12.0.14", - "12.0.15", - "12.0.16", - "12.0.17", - "12.0.18", - "12.1.0", - "12.1.1", - "12.1.2", - "12.2.0", - "12.2.1", - "12.2.2", - "12.2.3" - ], - "90.0.4402.0": [ - "13.0.0-beta.2", - "13.0.0-beta.3" - ], - "90.0.4415.0": [ - "13.0.0-beta.4", - "13.0.0-beta.5", - "13.0.0-beta.6", - "13.0.0-beta.7", - "13.0.0-beta.8", - "13.0.0-beta.9", - "13.0.0-beta.10", - "13.0.0-beta.11", - "13.0.0-beta.12", - "13.0.0-beta.13" - ], - "91.0.4448.0": [ - "13.0.0-beta.14", - "13.0.0-beta.16", - "13.0.0-beta.17", - "13.0.0-beta.18", - "13.0.0-beta.20" - ], - "91.0.4472.33": [ - "13.0.0-beta.21", - "13.0.0-beta.22", - "13.0.0-beta.23" - ], - "91.0.4472.38": [ - "13.0.0-beta.24", - "13.0.0-beta.25", - "13.0.0-beta.26", - "13.0.0-beta.27", - "13.0.0-beta.28" - ], - "91.0.4472.69": [ - "13.0.0", - "13.0.1" - ], - "91.0.4472.77": [ - "13.1.0", - "13.1.1", - "13.1.2" - ], - "91.0.4472.106": [ - "13.1.3", - "13.1.4" - ], - "91.0.4472.124": [ - "13.1.5", - "13.1.6", - "13.1.7" - ], - "91.0.4472.164": [ - "13.1.8", - "13.1.9", - "13.2.0", - "13.2.1", - "13.2.2", - "13.2.3", - "13.3.0", - "13.4.0", - "13.5.0", - "13.5.1", - "13.5.2", - "13.6.0", - "13.6.1", - "13.6.2", - "13.6.3", - "13.6.6", - "13.6.7", - "13.6.8", - "13.6.9" - ], - "92.0.4511.0": [ - "14.0.0-beta.1", - "14.0.0-beta.2", - "14.0.0-beta.3" - ], - "93.0.4536.0": [ - "14.0.0-beta.5", - "14.0.0-beta.6", - "14.0.0-beta.7", - "14.0.0-beta.8" - ], - "93.0.4539.0": [ - "14.0.0-beta.9", - "14.0.0-beta.10" - ], - "93.0.4557.4": [ - "14.0.0-beta.11", - "14.0.0-beta.12" - ], - "93.0.4566.0": [ - "14.0.0-beta.13", - "14.0.0-beta.14", - "14.0.0-beta.15", - "14.0.0-beta.16", - "14.0.0-beta.17", - "15.0.0-alpha.1", - "15.0.0-alpha.2" - ], - "93.0.4577.15": [ - "14.0.0-beta.18", - "14.0.0-beta.19", - "14.0.0-beta.20", - "14.0.0-beta.21" - ], - "93.0.4577.25": [ - "14.0.0-beta.22", - "14.0.0-beta.23" - ], - "93.0.4577.51": [ - "14.0.0-beta.24", - "14.0.0-beta.25" - ], - "93.0.4577.58": [ - "14.0.0" - ], - "93.0.4577.63": [ - "14.0.1" - ], - "93.0.4577.82": [ - "14.0.2", - "14.1.0", - "14.1.1", - "14.2.0", - "14.2.1", - "14.2.2", - "14.2.3", - "14.2.4", - "14.2.5", - "14.2.6", - "14.2.7", - "14.2.8", - "14.2.9" - ], - "94.0.4584.0": [ - "15.0.0-alpha.3", - "15.0.0-alpha.4", - "15.0.0-alpha.5", - "15.0.0-alpha.6" - ], - "94.0.4590.2": [ - "15.0.0-alpha.7", - "15.0.0-alpha.8", - "15.0.0-alpha.9" - ], - "94.0.4606.12": [ - "15.0.0-alpha.10" - ], - "94.0.4606.20": [ - "15.0.0-beta.1", - "15.0.0-beta.2" - ], - "94.0.4606.31": [ - "15.0.0-beta.3", - "15.0.0-beta.4", - "15.0.0-beta.5", - "15.0.0-beta.6", - "15.0.0-beta.7" - ], - "94.0.4606.51": [ - "15.0.0" - ], - "94.0.4606.61": [ - "15.1.0", - "15.1.1" - ], - "94.0.4606.71": [ - "15.1.2" - ], - "94.0.4606.81": [ - "15.2.0", - "15.3.0", - "15.3.1", - "15.3.2", - "15.3.3", - "15.3.4", - "15.3.5", - "15.3.6", - "15.3.7", - "15.4.0", - "15.4.1", - "15.4.2", - "15.5.0", - "15.5.1", - "15.5.2", - "15.5.3", - "15.5.4", - "15.5.5", - "15.5.6", - "15.5.7" - ], - "95.0.4629.0": [ - "16.0.0-alpha.1", - "16.0.0-alpha.2", - "16.0.0-alpha.3", - "16.0.0-alpha.4", - "16.0.0-alpha.5", - "16.0.0-alpha.6", - "16.0.0-alpha.7" - ], - "96.0.4647.0": [ - "16.0.0-alpha.8", - "16.0.0-alpha.9", - "16.0.0-beta.1", - "16.0.0-beta.2", - "16.0.0-beta.3" - ], - "96.0.4664.18": [ - "16.0.0-beta.4", - "16.0.0-beta.5" - ], - "96.0.4664.27": [ - "16.0.0-beta.6", - "16.0.0-beta.7" - ], - "96.0.4664.35": [ - "16.0.0-beta.8", - "16.0.0-beta.9" - ], - "96.0.4664.45": [ - "16.0.0", - "16.0.1" - ], - "96.0.4664.55": [ - "16.0.2", - "16.0.3", - "16.0.4", - "16.0.5" - ], - "96.0.4664.110": [ - "16.0.6", - "16.0.7", - "16.0.8" - ], - "96.0.4664.174": [ - "16.0.9", - "16.0.10", - "16.1.0", - "16.1.1", - "16.2.0", - "16.2.1", - "16.2.2", - "16.2.3", - "16.2.4", - "16.2.5", - "16.2.6", - "16.2.7", - "16.2.8" - ], - "96.0.4664.4": [ - "17.0.0-alpha.1", - "17.0.0-alpha.2", - "17.0.0-alpha.3" - ], - "98.0.4706.0": [ - "17.0.0-alpha.4", - "17.0.0-alpha.5", - "17.0.0-alpha.6", - "17.0.0-beta.1", - "17.0.0-beta.2" - ], - "98.0.4758.9": [ - "17.0.0-beta.3" - ], - "98.0.4758.11": [ - "17.0.0-beta.4", - "17.0.0-beta.5", - "17.0.0-beta.6", - "17.0.0-beta.7", - "17.0.0-beta.8", - "17.0.0-beta.9" - ], - "98.0.4758.74": [ - "17.0.0" - ], - "98.0.4758.82": [ - "17.0.1" - ], - "98.0.4758.102": [ - "17.1.0" - ], - "98.0.4758.109": [ - "17.1.1", - "17.1.2", - "17.2.0" - ], - "98.0.4758.141": [ - "17.3.0", - "17.3.1", - "17.4.0", - "17.4.1", - "17.4.2", - "17.4.3", - "17.4.4", - "17.4.5", - "17.4.6", - "17.4.7", - "17.4.8", - "17.4.9", - "17.4.10", - "17.4.11" - ], - "99.0.4767.0": [ - "18.0.0-alpha.1", - "18.0.0-alpha.2", - "18.0.0-alpha.3", - "18.0.0-alpha.4", - "18.0.0-alpha.5" - ], - "100.0.4894.0": [ - "18.0.0-beta.1", - "18.0.0-beta.2", - "18.0.0-beta.3", - "18.0.0-beta.4", - "18.0.0-beta.5", - "18.0.0-beta.6" - ], - "100.0.4896.56": [ - "18.0.0" - ], - "100.0.4896.60": [ - "18.0.1", - "18.0.2" - ], - "100.0.4896.75": [ - "18.0.3", - "18.0.4" - ], - "100.0.4896.127": [ - "18.1.0" - ], - "100.0.4896.143": [ - "18.2.0", - "18.2.1", - "18.2.2", - "18.2.3" - ], - "100.0.4896.160": [ - "18.2.4", - "18.3.0", - "18.3.1", - "18.3.2", - "18.3.3", - "18.3.4", - "18.3.5", - "18.3.6", - "18.3.7", - "18.3.8", - "18.3.9", - "18.3.11", - "18.3.12", - "18.3.13", - "18.3.14", - "18.3.15" - ], - "102.0.4962.3": [ - "19.0.0-alpha.1" - ], - "102.0.4971.0": [ - "19.0.0-alpha.2", - "19.0.0-alpha.3" - ], - "102.0.4989.0": [ - "19.0.0-alpha.4", - "19.0.0-alpha.5" - ], - "102.0.4999.0": [ - "19.0.0-beta.1", - "19.0.0-beta.2", - "19.0.0-beta.3" - ], - "102.0.5005.27": [ - "19.0.0-beta.4" - ], - "102.0.5005.40": [ - "19.0.0-beta.5", - "19.0.0-beta.6", - "19.0.0-beta.7" - ], - "102.0.5005.49": [ - "19.0.0-beta.8" - ], - "102.0.5005.61": [ - "19.0.0", - "19.0.1" - ], - "102.0.5005.63": [ - "19.0.2", - "19.0.3", - "19.0.4" - ], - "102.0.5005.115": [ - "19.0.5", - "19.0.6" - ], - "102.0.5005.134": [ - "19.0.7" - ], - "102.0.5005.148": [ - "19.0.8" - ], - "102.0.5005.167": [ - "19.0.9", - "19.0.10", - "19.0.11", - "19.0.12", - "19.0.13", - "19.0.14", - "19.0.15", - "19.0.16", - "19.0.17", - "19.1.0", - "19.1.1", - "19.1.2", - "19.1.3", - "19.1.4", - "19.1.5", - "19.1.6", - "19.1.7", - "19.1.8", - "19.1.9" - ], - "103.0.5044.0": [ - "20.0.0-alpha.1" - ], - "104.0.5073.0": [ - "20.0.0-alpha.2", - "20.0.0-alpha.3", - "20.0.0-alpha.4", - "20.0.0-alpha.5", - "20.0.0-alpha.6", - "20.0.0-alpha.7", - "20.0.0-beta.1", - "20.0.0-beta.2", - "20.0.0-beta.3", - "20.0.0-beta.4", - "20.0.0-beta.5", - "20.0.0-beta.6", - "20.0.0-beta.7", - "20.0.0-beta.8" - ], - "104.0.5112.39": [ - "20.0.0-beta.9" - ], - "104.0.5112.48": [ - "20.0.0-beta.10", - "20.0.0-beta.11", - "20.0.0-beta.12" - ], - "104.0.5112.57": [ - "20.0.0-beta.13" - ], - "104.0.5112.65": [ - "20.0.0" - ], - "104.0.5112.81": [ - "20.0.1", - "20.0.2", - "20.0.3" - ], - "104.0.5112.102": [ - "20.1.0", - "20.1.1" - ], - "104.0.5112.114": [ - "20.1.2", - "20.1.3", - "20.1.4" - ], - "104.0.5112.124": [ - "20.2.0", - "20.3.0", - "20.3.1", - "20.3.2", - "20.3.3", - "20.3.4", - "20.3.5", - "20.3.6", - "20.3.7", - "20.3.8", - "20.3.9", - "20.3.10", - "20.3.11", - "20.3.12" - ], - "105.0.5187.0": [ - "21.0.0-alpha.1", - "21.0.0-alpha.2", - "21.0.0-alpha.3", - "21.0.0-alpha.4", - "21.0.0-alpha.5" - ], - "106.0.5216.0": [ - "21.0.0-alpha.6", - "21.0.0-beta.1", - "21.0.0-beta.2", - "21.0.0-beta.3", - "21.0.0-beta.4", - "21.0.0-beta.5" - ], - "106.0.5249.40": [ - "21.0.0-beta.6", - "21.0.0-beta.7", - "21.0.0-beta.8" - ], - "106.0.5249.51": [ - "21.0.0" - ], - "106.0.5249.61": [ - "21.0.1" - ], - "106.0.5249.91": [ - "21.1.0" - ], - "106.0.5249.103": [ - "21.1.1" - ], - "106.0.5249.119": [ - "21.2.0" - ], - "106.0.5249.165": [ - "21.2.1" - ], - "106.0.5249.168": [ - "21.2.2", - "21.2.3" - ], - "106.0.5249.181": [ - "21.3.0", - "21.3.1" - ], - "106.0.5249.199": [ - "21.3.3", - "21.3.4", - "21.3.5", - "21.4.0", - "21.4.1", - "21.4.2", - "21.4.3", - "21.4.4" - ], - "107.0.5286.0": [ - "22.0.0-alpha.1" - ], - "108.0.5329.0": [ - "22.0.0-alpha.3", - "22.0.0-alpha.4", - "22.0.0-alpha.5", - "22.0.0-alpha.6" - ], - "108.0.5355.0": [ - "22.0.0-alpha.7" - ], - "108.0.5359.10": [ - "22.0.0-alpha.8", - "22.0.0-beta.1", - "22.0.0-beta.2", - "22.0.0-beta.3" - ], - "108.0.5359.29": [ - "22.0.0-beta.4" - ], - "108.0.5359.40": [ - "22.0.0-beta.5", - "22.0.0-beta.6" - ], - "108.0.5359.48": [ - "22.0.0-beta.7", - "22.0.0-beta.8" - ], - "108.0.5359.62": [ - "22.0.0" - ], - "108.0.5359.125": [ - "22.0.1" - ], - "108.0.5359.179": [ - "22.0.2", - "22.0.3", - "22.1.0" - ], - "108.0.5359.215": [ - "22.2.0", - "22.2.1", - "22.3.0", - "22.3.1", - "22.3.2", - "22.3.3", - "22.3.4", - "22.3.5", - "22.3.6", - "22.3.7", - "22.3.8", - "22.3.9", - "22.3.10", - "22.3.11", - "22.3.12", - "22.3.13", - "22.3.14", - "22.3.15", - "22.3.16", - "22.3.17", - "22.3.18", - "22.3.20", - "22.3.21", - "22.3.22", - "22.3.23", - "22.3.24", - "22.3.25", - "22.3.26", - "22.3.27" - ], - "110.0.5415.0": [ - "23.0.0-alpha.1" - ], - "110.0.5451.0": [ - "23.0.0-alpha.2", - "23.0.0-alpha.3" - ], - "110.0.5478.5": [ - "23.0.0-beta.1", - "23.0.0-beta.2", - "23.0.0-beta.3" - ], - "110.0.5481.30": [ - "23.0.0-beta.4" - ], - "110.0.5481.38": [ - "23.0.0-beta.5" - ], - "110.0.5481.52": [ - "23.0.0-beta.6", - "23.0.0-beta.8" - ], - "110.0.5481.77": [ - "23.0.0" - ], - "110.0.5481.100": [ - "23.1.0" - ], - "110.0.5481.104": [ - "23.1.1" - ], - "110.0.5481.177": [ - "23.1.2" - ], - "110.0.5481.179": [ - "23.1.3" - ], - "110.0.5481.192": [ - "23.1.4", - "23.2.0" - ], - "110.0.5481.208": [ - "23.2.1", - "23.2.2", - "23.2.3", - "23.2.4", - "23.3.0", - "23.3.1", - "23.3.2", - "23.3.3", - "23.3.4", - "23.3.5", - "23.3.6", - "23.3.7", - "23.3.8", - "23.3.9", - "23.3.10", - "23.3.11", - "23.3.12", - "23.3.13" - ], - "111.0.5560.0": [ - "24.0.0-alpha.1", - "24.0.0-alpha.2", - "24.0.0-alpha.3", - "24.0.0-alpha.4", - "24.0.0-alpha.5", - "24.0.0-alpha.6", - "24.0.0-alpha.7" - ], - "111.0.5563.50": [ - "24.0.0-beta.1", - "24.0.0-beta.2" - ], - "112.0.5615.20": [ - "24.0.0-beta.3", - "24.0.0-beta.4" - ], - "112.0.5615.29": [ - "24.0.0-beta.5" - ], - "112.0.5615.39": [ - "24.0.0-beta.6", - "24.0.0-beta.7" - ], - "112.0.5615.49": [ - "24.0.0" - ], - "112.0.5615.50": [ - "24.1.0", - "24.1.1" - ], - "112.0.5615.87": [ - "24.1.2" - ], - "112.0.5615.165": [ - "24.1.3", - "24.2.0", - "24.3.0" - ], - "112.0.5615.183": [ - "24.3.1" - ], - "112.0.5615.204": [ - "24.4.0", - "24.4.1", - "24.5.0", - "24.5.1", - "24.6.0", - "24.6.1", - "24.6.2", - "24.6.3", - "24.6.4", - "24.6.5", - "24.7.0", - "24.7.1", - "24.8.0", - "24.8.1", - "24.8.2", - "24.8.3", - "24.8.4", - "24.8.5", - "24.8.6", - "24.8.7", - "24.8.8" - ], - "114.0.5694.0": [ - "25.0.0-alpha.1", - "25.0.0-alpha.2" - ], - "114.0.5710.0": [ - "25.0.0-alpha.3", - "25.0.0-alpha.4" - ], - "114.0.5719.0": [ - "25.0.0-alpha.5", - "25.0.0-alpha.6", - "25.0.0-beta.1", - "25.0.0-beta.2", - "25.0.0-beta.3" - ], - "114.0.5735.16": [ - "25.0.0-beta.4", - "25.0.0-beta.5", - "25.0.0-beta.6", - "25.0.0-beta.7" - ], - "114.0.5735.35": [ - "25.0.0-beta.8" - ], - "114.0.5735.45": [ - "25.0.0-beta.9", - "25.0.0", - "25.0.1" - ], - "114.0.5735.106": [ - "25.1.0", - "25.1.1" - ], - "114.0.5735.134": [ - "25.2.0" - ], - "114.0.5735.199": [ - "25.3.0" - ], - "114.0.5735.243": [ - "25.3.1" - ], - "114.0.5735.248": [ - "25.3.2", - "25.4.0" - ], - "114.0.5735.289": [ - "25.5.0", - "25.6.0", - "25.7.0", - "25.8.0", - "25.8.1", - "25.8.2", - "25.8.3", - "25.8.4", - "25.9.0", - "25.9.1", - "25.9.2", - "25.9.3", - "25.9.4", - "25.9.5", - "25.9.6", - "25.9.7", - "25.9.8" - ], - "116.0.5791.0": [ - "26.0.0-alpha.1", - "26.0.0-alpha.2", - "26.0.0-alpha.3", - "26.0.0-alpha.4", - "26.0.0-alpha.5" - ], - "116.0.5815.0": [ - "26.0.0-alpha.6" - ], - "116.0.5831.0": [ - "26.0.0-alpha.7" - ], - "116.0.5845.0": [ - "26.0.0-alpha.8", - "26.0.0-beta.1" - ], - "116.0.5845.14": [ - "26.0.0-beta.2", - "26.0.0-beta.3", - "26.0.0-beta.4", - "26.0.0-beta.5", - "26.0.0-beta.6", - "26.0.0-beta.7" - ], - "116.0.5845.42": [ - "26.0.0-beta.8", - "26.0.0-beta.9" - ], - "116.0.5845.49": [ - "26.0.0-beta.10", - "26.0.0-beta.11" - ], - "116.0.5845.62": [ - "26.0.0-beta.12" - ], - "116.0.5845.82": [ - "26.0.0" - ], - "116.0.5845.97": [ - "26.1.0" - ], - "116.0.5845.179": [ - "26.2.0" - ], - "116.0.5845.188": [ - "26.2.1" - ], - "116.0.5845.190": [ - "26.2.2", - "26.2.3", - "26.2.4" - ], - "116.0.5845.228": [ - "26.3.0", - "26.4.0", - "26.4.1", - "26.4.2", - "26.4.3", - "26.5.0", - "26.6.0", - "26.6.1", - "26.6.2", - "26.6.3", - "26.6.4", - "26.6.5", - "26.6.6", - "26.6.7", - "26.6.8", - "26.6.9", - "26.6.10" - ], - "118.0.5949.0": [ - "27.0.0-alpha.1", - "27.0.0-alpha.2", - "27.0.0-alpha.3", - "27.0.0-alpha.4", - "27.0.0-alpha.5", - "27.0.0-alpha.6" - ], - "118.0.5993.5": [ - "27.0.0-beta.1", - "27.0.0-beta.2", - "27.0.0-beta.3" - ], - "118.0.5993.11": [ - "27.0.0-beta.4" - ], - "118.0.5993.18": [ - "27.0.0-beta.5", - "27.0.0-beta.6", - "27.0.0-beta.7", - "27.0.0-beta.8", - "27.0.0-beta.9" - ], - "118.0.5993.54": [ - "27.0.0" - ], - "118.0.5993.89": [ - "27.0.1", - "27.0.2" - ], - "118.0.5993.120": [ - "27.0.3" - ], - "118.0.5993.129": [ - "27.0.4" - ], - "118.0.5993.144": [ - "27.1.0", - "27.1.2" - ], - "118.0.5993.159": [ - "27.1.3", - "27.2.0", - "27.2.1", - "27.2.2", - "27.2.3", - "27.2.4", - "27.3.0", - "27.3.1", - "27.3.2", - "27.3.3", - "27.3.4", - "27.3.5", - "27.3.6", - "27.3.7", - "27.3.8", - "27.3.9", - "27.3.10", - "27.3.11" - ], - "119.0.6045.0": [ - "28.0.0-alpha.1", - "28.0.0-alpha.2" - ], - "119.0.6045.21": [ - "28.0.0-alpha.3", - "28.0.0-alpha.4" - ], - "119.0.6045.33": [ - "28.0.0-alpha.5", - "28.0.0-alpha.6", - "28.0.0-alpha.7", - "28.0.0-beta.1" - ], - "120.0.6099.0": [ - "28.0.0-beta.2" - ], - "120.0.6099.5": [ - "28.0.0-beta.3", - "28.0.0-beta.4" - ], - "120.0.6099.18": [ - "28.0.0-beta.5", - "28.0.0-beta.6", - "28.0.0-beta.7", - "28.0.0-beta.8", - "28.0.0-beta.9", - "28.0.0-beta.10" - ], - "120.0.6099.35": [ - "28.0.0-beta.11" - ], - "120.0.6099.56": [ - "28.0.0" - ], - "120.0.6099.109": [ - "28.1.0", - "28.1.1" - ], - "120.0.6099.199": [ - "28.1.2", - "28.1.3" - ], - "120.0.6099.216": [ - "28.1.4" - ], - "120.0.6099.227": [ - "28.2.0" - ], - "120.0.6099.268": [ - "28.2.1" - ], - "120.0.6099.276": [ - "28.2.2" - ], - "120.0.6099.283": [ - "28.2.3" - ], - "120.0.6099.291": [ - "28.2.4", - "28.2.5", - "28.2.6", - "28.2.7", - "28.2.8", - "28.2.9", - "28.2.10", - "28.3.0", - "28.3.1", - "28.3.2", - "28.3.3" - ], - "121.0.6147.0": [ - "29.0.0-alpha.1", - "29.0.0-alpha.2", - "29.0.0-alpha.3" - ], - "121.0.6159.0": [ - "29.0.0-alpha.4", - "29.0.0-alpha.5", - "29.0.0-alpha.6", - "29.0.0-alpha.7" - ], - "122.0.6194.0": [ - "29.0.0-alpha.8" - ], - "122.0.6236.2": [ - "29.0.0-alpha.9", - "29.0.0-alpha.10", - "29.0.0-alpha.11", - "29.0.0-beta.1", - "29.0.0-beta.2" - ], - "122.0.6261.6": [ - "29.0.0-beta.3", - "29.0.0-beta.4" - ], - "122.0.6261.18": [ - "29.0.0-beta.5", - "29.0.0-beta.6", - "29.0.0-beta.7", - "29.0.0-beta.8", - "29.0.0-beta.9", - "29.0.0-beta.10", - "29.0.0-beta.11" - ], - "122.0.6261.29": [ - "29.0.0-beta.12" - ], - "122.0.6261.39": [ - "29.0.0" - ], - "122.0.6261.57": [ - "29.0.1" - ], - "122.0.6261.70": [ - "29.1.0" - ], - "122.0.6261.111": [ - "29.1.1" - ], - "122.0.6261.112": [ - "29.1.2", - "29.1.3" - ], - "122.0.6261.129": [ - "29.1.4" - ], - "122.0.6261.130": [ - "29.1.5" - ], - "122.0.6261.139": [ - "29.1.6" - ], - "122.0.6261.156": [ - "29.2.0", - "29.3.0", - "29.3.1", - "29.3.2", - "29.3.3", - "29.4.0", - "29.4.1", - "29.4.2", - "29.4.3", - "29.4.4", - "29.4.5", - "29.4.6" - ], - "123.0.6296.0": [ - "30.0.0-alpha.1" - ], - "123.0.6312.5": [ - "30.0.0-alpha.2" - ], - "124.0.6323.0": [ - "30.0.0-alpha.3", - "30.0.0-alpha.4" - ], - "124.0.6331.0": [ - "30.0.0-alpha.5", - "30.0.0-alpha.6" - ], - "124.0.6353.0": [ - "30.0.0-alpha.7" - ], - "124.0.6359.0": [ - "30.0.0-beta.1", - "30.0.0-beta.2" - ], - "124.0.6367.9": [ - "30.0.0-beta.3", - "30.0.0-beta.4", - "30.0.0-beta.5" - ], - "124.0.6367.18": [ - "30.0.0-beta.6" - ], - "124.0.6367.29": [ - "30.0.0-beta.7", - "30.0.0-beta.8" - ], - "124.0.6367.49": [ - "30.0.0" - ], - "124.0.6367.60": [ - "30.0.1" - ], - "124.0.6367.91": [ - "30.0.2" - ], - "124.0.6367.119": [ - "30.0.3" - ], - "124.0.6367.201": [ - "30.0.4" - ], - "124.0.6367.207": [ - "30.0.5", - "30.0.6" - ], - "124.0.6367.221": [ - "30.0.7" - ], - "124.0.6367.230": [ - "30.0.8" - ], - "124.0.6367.233": [ - "30.0.9" - ], - "124.0.6367.243": [ - "30.1.0", - "30.1.1", - "30.1.2", - "30.2.0", - "30.3.0", - "30.3.1", - "30.4.0", - "30.5.0", - "30.5.1" - ], - "125.0.6412.0": [ - "31.0.0-alpha.1", - "31.0.0-alpha.2", - "31.0.0-alpha.3", - "31.0.0-alpha.4", - "31.0.0-alpha.5" - ], - "126.0.6445.0": [ - "31.0.0-beta.1", - "31.0.0-beta.2", - "31.0.0-beta.3", - "31.0.0-beta.4", - "31.0.0-beta.5", - "31.0.0-beta.6", - "31.0.0-beta.7", - "31.0.0-beta.8", - "31.0.0-beta.9" - ], - "126.0.6478.36": [ - "31.0.0-beta.10", - "31.0.0", - "31.0.1" - ], - "126.0.6478.61": [ - "31.0.2" - ], - "126.0.6478.114": [ - "31.1.0" - ], - "126.0.6478.127": [ - "31.2.0", - "31.2.1" - ], - "126.0.6478.183": [ - "31.3.0" - ], - "126.0.6478.185": [ - "31.3.1" - ], - "126.0.6478.234": [ - "31.4.0", - "31.5.0", - "31.6.0", - "31.7.0", - "31.7.1", - "31.7.2", - "31.7.3", - "31.7.4", - "31.7.5", - "31.7.6", - "31.7.7" - ], - "127.0.6521.0": [ - "32.0.0-alpha.1", - "32.0.0-alpha.2", - "32.0.0-alpha.3", - "32.0.0-alpha.4", - "32.0.0-alpha.5" - ], - "128.0.6571.0": [ - "32.0.0-alpha.6", - "32.0.0-alpha.7" - ], - "128.0.6573.0": [ - "32.0.0-alpha.8", - "32.0.0-alpha.9", - "32.0.0-alpha.10", - "32.0.0-beta.1" - ], - "128.0.6611.0": [ - "32.0.0-beta.2" - ], - "128.0.6613.7": [ - "32.0.0-beta.3" - ], - "128.0.6613.18": [ - "32.0.0-beta.4" - ], - "128.0.6613.27": [ - "32.0.0-beta.5", - "32.0.0-beta.6", - "32.0.0-beta.7" - ], - "128.0.6613.36": [ - "32.0.0", - "32.0.1" - ], - "128.0.6613.84": [ - "32.0.2" - ], - "128.0.6613.120": [ - "32.1.0" - ], - "128.0.6613.137": [ - "32.1.1" - ], - "128.0.6613.162": [ - "32.1.2" - ], - "128.0.6613.178": [ - "32.2.0" - ], - "128.0.6613.186": [ - "32.2.1", - "32.2.2", - "32.2.3", - "32.2.4", - "32.2.5", - "32.2.6", - "32.2.7", - "32.2.8", - "32.3.0", - "32.3.1", - "32.3.2", - "32.3.3" - ], - "129.0.6668.0": [ - "33.0.0-alpha.1" - ], - "130.0.6672.0": [ - "33.0.0-alpha.2", - "33.0.0-alpha.3", - "33.0.0-alpha.4", - "33.0.0-alpha.5", - "33.0.0-alpha.6", - "33.0.0-beta.1", - "33.0.0-beta.2", - "33.0.0-beta.3", - "33.0.0-beta.4" - ], - "130.0.6723.19": [ - "33.0.0-beta.5", - "33.0.0-beta.6", - "33.0.0-beta.7" - ], - "130.0.6723.31": [ - "33.0.0-beta.8", - "33.0.0-beta.9", - "33.0.0-beta.10" - ], - "130.0.6723.44": [ - "33.0.0-beta.11", - "33.0.0" - ], - "130.0.6723.59": [ - "33.0.1", - "33.0.2" - ], - "130.0.6723.91": [ - "33.1.0" - ], - "130.0.6723.118": [ - "33.2.0" - ], - "130.0.6723.137": [ - "33.2.1" - ], - "130.0.6723.152": [ - "33.3.0" - ], - "130.0.6723.170": [ - "33.3.1" - ], - "130.0.6723.191": [ - "33.3.2", - "33.4.0", - "33.4.1", - "33.4.2", - "33.4.3", - "33.4.4", - "33.4.5", - "33.4.6", - "33.4.7", - "33.4.8", - "33.4.9", - "33.4.10", - "33.4.11" - ], - "131.0.6776.0": [ - "34.0.0-alpha.1" - ], - "132.0.6779.0": [ - "34.0.0-alpha.2" - ], - "132.0.6789.1": [ - "34.0.0-alpha.3", - "34.0.0-alpha.4", - "34.0.0-alpha.5", - "34.0.0-alpha.6", - "34.0.0-alpha.7" - ], - "132.0.6820.0": [ - "34.0.0-alpha.8" - ], - "132.0.6824.0": [ - "34.0.0-alpha.9", - "34.0.0-beta.1", - "34.0.0-beta.2", - "34.0.0-beta.3" - ], - "132.0.6834.6": [ - "34.0.0-beta.4", - "34.0.0-beta.5" - ], - "132.0.6834.15": [ - "34.0.0-beta.6", - "34.0.0-beta.7", - "34.0.0-beta.8" - ], - "132.0.6834.32": [ - "34.0.0-beta.9", - "34.0.0-beta.10", - "34.0.0-beta.11" - ], - "132.0.6834.46": [ - "34.0.0-beta.12", - "34.0.0-beta.13" - ], - "132.0.6834.57": [ - "34.0.0-beta.14", - "34.0.0-beta.15", - "34.0.0-beta.16" - ], - "132.0.6834.83": [ - "34.0.0", - "34.0.1" - ], - "132.0.6834.159": [ - "34.0.2" - ], - "132.0.6834.194": [ - "34.1.0", - "34.1.1" - ], - "132.0.6834.196": [ - "34.2.0" - ], - "132.0.6834.210": [ - "34.3.0", - "34.3.1", - "34.3.2", - "34.3.3", - "34.3.4", - "34.4.0", - "34.4.1", - "34.5.0", - "34.5.1", - "34.5.2", - "34.5.3", - "34.5.4", - "34.5.5", - "34.5.6", - "34.5.7", - "34.5.8" - ], - "133.0.6920.0": [ - "35.0.0-alpha.1", - "35.0.0-alpha.2", - "35.0.0-alpha.3", - "35.0.0-alpha.4", - "35.0.0-alpha.5", - "35.0.0-beta.1" - ], - "134.0.6968.0": [ - "35.0.0-beta.2", - "35.0.0-beta.3", - "35.0.0-beta.4" - ], - "134.0.6989.0": [ - "35.0.0-beta.5" - ], - "134.0.6990.0": [ - "35.0.0-beta.6", - "35.0.0-beta.7" - ], - "134.0.6998.10": [ - "35.0.0-beta.8", - "35.0.0-beta.9" - ], - "134.0.6998.23": [ - "35.0.0-beta.10", - "35.0.0-beta.11", - "35.0.0-beta.12" - ], - "134.0.6998.44": [ - "35.0.0-beta.13", - "35.0.0", - "35.0.1" - ], - "134.0.6998.88": [ - "35.0.2", - "35.0.3" - ], - "134.0.6998.165": [ - "35.1.0", - "35.1.1" - ], - "134.0.6998.178": [ - "35.1.2" - ], - "134.0.6998.179": [ - "35.1.3", - "35.1.4", - "35.1.5" - ], - "134.0.6998.205": [ - "35.2.0", - "35.2.1", - "35.2.2", - "35.3.0", - "35.4.0", - "35.5.0", - "35.5.1", - "35.6.0", - "35.7.0", - "35.7.1", - "35.7.2", - "35.7.4", - "35.7.5" - ], - "135.0.7049.5": [ - "36.0.0-alpha.1" - ], - "136.0.7062.0": [ - "36.0.0-alpha.2", - "36.0.0-alpha.3", - "36.0.0-alpha.4" - ], - "136.0.7067.0": [ - "36.0.0-alpha.5", - "36.0.0-alpha.6", - "36.0.0-beta.1", - "36.0.0-beta.2", - "36.0.0-beta.3", - "36.0.0-beta.4" - ], - "136.0.7103.17": [ - "36.0.0-beta.5" - ], - "136.0.7103.25": [ - "36.0.0-beta.6", - "36.0.0-beta.7" - ], - "136.0.7103.33": [ - "36.0.0-beta.8", - "36.0.0-beta.9" - ], - "136.0.7103.48": [ - "36.0.0", - "36.0.1" - ], - "136.0.7103.49": [ - "36.1.0", - "36.2.0" - ], - "136.0.7103.93": [ - "36.2.1" - ], - "136.0.7103.113": [ - "36.3.0", - "36.3.1" - ], - "136.0.7103.115": [ - "36.3.2" - ], - "136.0.7103.149": [ - "36.4.0" - ], - "136.0.7103.168": [ - "36.5.0" - ], - "136.0.7103.177": [ - "36.6.0", - "36.7.0", - "36.7.1", - "36.7.3", - "36.7.4", - "36.8.0", - "36.8.1", - "36.9.0", - "36.9.1", - "36.9.2", - "36.9.3", - "36.9.4", - "36.9.5" - ], - "137.0.7151.0": [ - "37.0.0-alpha.1", - "37.0.0-alpha.2" - ], - "138.0.7156.0": [ - "37.0.0-alpha.3" - ], - "138.0.7165.0": [ - "37.0.0-alpha.4" - ], - "138.0.7177.0": [ - "37.0.0-alpha.5" - ], - "138.0.7178.0": [ - "37.0.0-alpha.6", - "37.0.0-alpha.7", - "37.0.0-beta.1", - "37.0.0-beta.2" - ], - "138.0.7190.0": [ - "37.0.0-beta.3" - ], - "138.0.7204.15": [ - "37.0.0-beta.4", - "37.0.0-beta.5", - "37.0.0-beta.6", - "37.0.0-beta.7" - ], - "138.0.7204.23": [ - "37.0.0-beta.8" - ], - "138.0.7204.35": [ - "37.0.0-beta.9", - "37.0.0", - "37.1.0" - ], - "138.0.7204.97": [ - "37.2.0", - "37.2.1" - ], - "138.0.7204.100": [ - "37.2.2", - "37.2.3" - ], - "138.0.7204.157": [ - "37.2.4" - ], - "138.0.7204.168": [ - "37.2.5" - ], - "138.0.7204.185": [ - "37.2.6" - ], - "138.0.7204.224": [ - "37.3.0" - ], - "138.0.7204.235": [ - "37.3.1" - ], - "138.0.7204.243": [ - "37.4.0" - ], - "138.0.7204.251": [ - "37.5.0", - "37.5.1", - "37.6.0", - "37.6.1", - "37.7.0", - "37.7.1", - "37.8.0", - "37.9.0", - "37.10.0", - "37.10.1", - "37.10.2" - ], - "139.0.7219.0": [ - "38.0.0-alpha.1", - "38.0.0-alpha.2", - "38.0.0-alpha.3" - ], - "140.0.7261.0": [ - "38.0.0-alpha.4", - "38.0.0-alpha.5", - "38.0.0-alpha.6" - ], - "140.0.7281.0": [ - "38.0.0-alpha.7", - "38.0.0-alpha.8" - ], - "140.0.7301.0": [ - "38.0.0-alpha.9" - ], - "140.0.7309.0": [ - "38.0.0-alpha.10" - ], - "140.0.7312.0": [ - "38.0.0-alpha.11" - ], - "140.0.7314.0": [ - "38.0.0-alpha.12", - "38.0.0-alpha.13", - "38.0.0-beta.1" - ], - "140.0.7327.0": [ - "38.0.0-beta.2", - "38.0.0-beta.3" - ], - "140.0.7339.2": [ - "38.0.0-beta.4", - "38.0.0-beta.5", - "38.0.0-beta.6" - ], - "140.0.7339.16": [ - "38.0.0-beta.7" - ], - "140.0.7339.24": [ - "38.0.0-beta.8", - "38.0.0-beta.9" - ], - "140.0.7339.41": [ - "38.0.0-beta.11", - "38.0.0" - ], - "140.0.7339.80": [ - "38.1.0" - ], - "140.0.7339.133": [ - "38.1.1", - "38.1.2", - "38.2.0", - "38.2.1", - "38.2.2" - ], - "140.0.7339.240": [ - "38.3.0", - "38.4.0" - ], - "140.0.7339.249": [ - "38.5.0", - "38.6.0", - "38.7.0", - "38.7.1" - ], - "141.0.7361.0": [ - "39.0.0-alpha.1", - "39.0.0-alpha.2" - ], - "141.0.7390.7": [ - "39.0.0-alpha.3", - "39.0.0-alpha.4", - "39.0.0-alpha.5" - ], - "142.0.7417.0": [ - "39.0.0-alpha.6", - "39.0.0-alpha.7", - "39.0.0-alpha.8", - "39.0.0-alpha.9", - "39.0.0-beta.1", - "39.0.0-beta.2", - "39.0.0-beta.3" - ], - "142.0.7444.34": [ - "39.0.0-beta.4", - "39.0.0-beta.5" - ], - "142.0.7444.52": [ - "39.0.0" - ], - "142.0.7444.59": [ - "39.1.0", - "39.1.1" - ], - "142.0.7444.134": [ - "39.1.2" - ], - "142.0.7444.162": [ - "39.2.0", - "39.2.1", - "39.2.2" - ], - "142.0.7444.175": [ - "39.2.3" - ], - "143.0.7499.0": [ - "40.0.0-alpha.2" - ], - "144.0.7506.0": [ - "40.0.0-alpha.4" - ], - "144.0.7526.0": [ - "40.0.0-alpha.5", - "40.0.0-alpha.6" - ] -}; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/electron-to-chromium/full-chromium-versions.json b/build_vtk_bundle/node_modules/electron-to-chromium/full-chromium-versions.json deleted file mode 100644 index c4f7a98c..00000000 --- a/build_vtk_bundle/node_modules/electron-to-chromium/full-chromium-versions.json +++ /dev/null @@ -1 +0,0 @@ -{"39.0.2171.65":["0.20.0","0.20.1","0.20.2","0.20.3","0.20.4","0.20.5","0.20.6","0.20.7","0.20.8"],"40.0.2214.91":["0.21.0","0.21.1","0.21.2"],"41.0.2272.76":["0.21.3","0.22.1","0.22.2","0.22.3","0.23.0","0.24.0"],"42.0.2311.107":["0.25.0","0.25.1","0.25.2","0.25.3","0.26.0","0.26.1","0.27.0","0.27.1"],"43.0.2357.65":["0.27.2","0.27.3","0.28.0","0.28.1","0.28.2","0.28.3","0.29.1","0.29.2"],"44.0.2403.125":["0.30.4","0.31.0"],"45.0.2454.85":["0.31.2","0.32.2","0.32.3","0.33.0","0.33.1","0.33.2","0.33.3","0.33.4","0.33.6","0.33.7","0.33.8","0.33.9","0.34.0","0.34.1","0.34.2","0.34.3","0.34.4","0.35.1","0.35.2","0.35.3","0.35.4","0.35.5"],"47.0.2526.73":["0.36.0","0.36.2","0.36.3","0.36.4"],"47.0.2526.110":["0.36.5","0.36.6","0.36.7","0.36.8","0.36.9","0.36.10","0.36.11","0.36.12"],"49.0.2623.75":["0.37.0","0.37.1","0.37.3","0.37.4","0.37.5","0.37.6","0.37.7","0.37.8","1.0.0","1.0.1","1.0.2"],"50.0.2661.102":["1.1.0","1.1.1","1.1.2","1.1.3"],"51.0.2704.63":["1.2.0","1.2.1"],"51.0.2704.84":["1.2.2","1.2.3"],"51.0.2704.103":["1.2.4","1.2.5"],"51.0.2704.106":["1.2.6","1.2.7","1.2.8"],"52.0.2743.82":["1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.7","1.3.9","1.3.10","1.3.13","1.3.14","1.3.15"],"53.0.2785.113":["1.4.0","1.4.1","1.4.2","1.4.3","1.4.4","1.4.5"],"53.0.2785.143":["1.4.6","1.4.7","1.4.8","1.4.10","1.4.11","1.4.13","1.4.14","1.4.15","1.4.16"],"54.0.2840.51":["1.4.12"],"54.0.2840.101":["1.5.0","1.5.1"],"56.0.2924.87":["1.6.0","1.6.1","1.6.2","1.6.3","1.6.4","1.6.5","1.6.6","1.6.7","1.6.8","1.6.9","1.6.10","1.6.11","1.6.12","1.6.13","1.6.14","1.6.15","1.6.16","1.6.17","1.6.18"],"58.0.3029.110":["1.7.0","1.7.1","1.7.2","1.7.3","1.7.4","1.7.5","1.7.6","1.7.7","1.7.8","1.7.9","1.7.10","1.7.11","1.7.12","1.7.13","1.7.14","1.7.15","1.7.16"],"59.0.3071.115":["1.8.0","1.8.1","1.8.2-beta.1","1.8.2-beta.2","1.8.2-beta.3","1.8.2-beta.4","1.8.2-beta.5","1.8.2","1.8.3","1.8.4","1.8.5","1.8.6","1.8.7","1.8.8"],"61.0.3163.100":["2.0.0-beta.1","2.0.0-beta.2","2.0.0-beta.3","2.0.0-beta.4","2.0.0-beta.5","2.0.0-beta.6","2.0.0-beta.7","2.0.0-beta.8","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.0.10","2.0.11","2.0.12","2.0.13","2.0.14","2.0.15","2.0.16","2.0.17","2.0.18","2.1.0-unsupported.20180809"],"66.0.3359.181":["3.0.0-beta.1","3.0.0-beta.2","3.0.0-beta.3","3.0.0-beta.4","3.0.0-beta.5","3.0.0-beta.6","3.0.0-beta.7","3.0.0-beta.8","3.0.0-beta.9","3.0.0-beta.10","3.0.0-beta.11","3.0.0-beta.12","3.0.0-beta.13","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","3.0.5","3.0.6","3.0.7","3.0.8","3.0.9","3.0.10","3.0.11","3.0.12","3.0.13","3.0.14","3.0.15","3.0.16","3.1.0-beta.1","3.1.0-beta.2","3.1.0-beta.3","3.1.0-beta.4","3.1.0-beta.5","3.1.0","3.1.1","3.1.2","3.1.3","3.1.4","3.1.5","3.1.6","3.1.7","3.1.8","3.1.9","3.1.10","3.1.11","3.1.12","3.1.13"],"69.0.3497.106":["4.0.0-beta.1","4.0.0-beta.2","4.0.0-beta.3","4.0.0-beta.4","4.0.0-beta.5","4.0.0-beta.6","4.0.0-beta.7","4.0.0-beta.8","4.0.0-beta.9","4.0.0-beta.10","4.0.0-beta.11","4.0.0","4.0.1","4.0.2","4.0.3","4.0.4","4.0.5","4.0.6"],"69.0.3497.128":["4.0.7","4.0.8","4.1.0","4.1.1","4.1.2","4.1.3","4.1.4","4.1.5","4.2.0","4.2.1","4.2.2","4.2.3","4.2.4","4.2.5","4.2.6","4.2.7","4.2.8","4.2.9","4.2.10","4.2.11","4.2.12"],"72.0.3626.52":["5.0.0-beta.1","5.0.0-beta.2"],"73.0.3683.27":["5.0.0-beta.3"],"73.0.3683.54":["5.0.0-beta.4"],"73.0.3683.61":["5.0.0-beta.5"],"73.0.3683.84":["5.0.0-beta.6"],"73.0.3683.94":["5.0.0-beta.7"],"73.0.3683.104":["5.0.0-beta.8"],"73.0.3683.117":["5.0.0-beta.9"],"73.0.3683.119":["5.0.0"],"73.0.3683.121":["5.0.1","5.0.2","5.0.3","5.0.4","5.0.5","5.0.6","5.0.7","5.0.8","5.0.9","5.0.10","5.0.11","5.0.12","5.0.13"],"76.0.3774.1":["6.0.0-beta.1"],"76.0.3783.1":["6.0.0-beta.2","6.0.0-beta.3","6.0.0-beta.4"],"76.0.3805.4":["6.0.0-beta.5"],"76.0.3809.3":["6.0.0-beta.6"],"76.0.3809.22":["6.0.0-beta.7"],"76.0.3809.26":["6.0.0-beta.8","6.0.0-beta.9"],"76.0.3809.37":["6.0.0-beta.10"],"76.0.3809.42":["6.0.0-beta.11"],"76.0.3809.54":["6.0.0-beta.12"],"76.0.3809.60":["6.0.0-beta.13"],"76.0.3809.68":["6.0.0-beta.14"],"76.0.3809.74":["6.0.0-beta.15"],"76.0.3809.88":["6.0.0"],"76.0.3809.102":["6.0.1"],"76.0.3809.110":["6.0.2"],"76.0.3809.126":["6.0.3"],"76.0.3809.131":["6.0.4"],"76.0.3809.136":["6.0.5"],"76.0.3809.138":["6.0.6"],"76.0.3809.139":["6.0.7"],"76.0.3809.146":["6.0.8","6.0.9","6.0.10","6.0.11","6.0.12","6.1.0","6.1.1","6.1.2","6.1.3","6.1.4","6.1.5","6.1.6","6.1.7","6.1.8","6.1.9","6.1.10","6.1.11","6.1.12"],"78.0.3866.0":["7.0.0-beta.1","7.0.0-beta.2","7.0.0-beta.3"],"78.0.3896.6":["7.0.0-beta.4"],"78.0.3905.1":["7.0.0-beta.5","7.0.0-beta.6","7.0.0-beta.7","7.0.0"],"78.0.3904.92":["7.0.1"],"78.0.3904.94":["7.1.0"],"78.0.3904.99":["7.1.1"],"78.0.3904.113":["7.1.2"],"78.0.3904.126":["7.1.3"],"78.0.3904.130":["7.1.4","7.1.5","7.1.6","7.1.7","7.1.8","7.1.9","7.1.10","7.1.11","7.1.12","7.1.13","7.1.14","7.2.0","7.2.1","7.2.2","7.2.3","7.2.4","7.3.0","7.3.1","7.3.2","7.3.3"],"79.0.3931.0":["8.0.0-beta.1","8.0.0-beta.2"],"80.0.3955.0":["8.0.0-beta.3","8.0.0-beta.4"],"80.0.3987.14":["8.0.0-beta.5"],"80.0.3987.51":["8.0.0-beta.6"],"80.0.3987.59":["8.0.0-beta.7"],"80.0.3987.75":["8.0.0-beta.8","8.0.0-beta.9"],"80.0.3987.86":["8.0.0","8.0.1","8.0.2"],"80.0.3987.134":["8.0.3"],"80.0.3987.137":["8.1.0"],"80.0.3987.141":["8.1.1"],"80.0.3987.158":["8.2.0"],"80.0.3987.163":["8.2.1","8.2.2","8.2.3","8.5.3","8.5.4","8.5.5"],"80.0.3987.165":["8.2.4","8.2.5","8.3.0","8.3.1","8.3.2","8.3.3","8.3.4","8.4.0","8.4.1","8.5.0","8.5.1","8.5.2"],"82.0.4048.0":["9.0.0-beta.1","9.0.0-beta.2","9.0.0-beta.3","9.0.0-beta.4","9.0.0-beta.5"],"82.0.4058.2":["9.0.0-beta.6","9.0.0-beta.7","9.0.0-beta.9"],"82.0.4085.10":["9.0.0-beta.10"],"82.0.4085.14":["9.0.0-beta.11","9.0.0-beta.12","9.0.0-beta.13"],"82.0.4085.27":["9.0.0-beta.14"],"83.0.4102.3":["9.0.0-beta.15","9.0.0-beta.16"],"83.0.4103.14":["9.0.0-beta.17"],"83.0.4103.16":["9.0.0-beta.18"],"83.0.4103.24":["9.0.0-beta.19"],"83.0.4103.26":["9.0.0-beta.20","9.0.0-beta.21"],"83.0.4103.34":["9.0.0-beta.22"],"83.0.4103.44":["9.0.0-beta.23"],"83.0.4103.45":["9.0.0-beta.24"],"83.0.4103.64":["9.0.0"],"83.0.4103.94":["9.0.1","9.0.2"],"83.0.4103.100":["9.0.3"],"83.0.4103.104":["9.0.4"],"83.0.4103.119":["9.0.5"],"83.0.4103.122":["9.1.0","9.1.1","9.1.2","9.2.0","9.2.1","9.3.0","9.3.1","9.3.2","9.3.3","9.3.4","9.3.5","9.4.0","9.4.1","9.4.2","9.4.3","9.4.4"],"84.0.4129.0":["10.0.0-beta.1","10.0.0-beta.2"],"85.0.4161.2":["10.0.0-beta.3","10.0.0-beta.4"],"85.0.4181.1":["10.0.0-beta.8","10.0.0-beta.9"],"85.0.4183.19":["10.0.0-beta.10"],"85.0.4183.20":["10.0.0-beta.11"],"85.0.4183.26":["10.0.0-beta.12"],"85.0.4183.39":["10.0.0-beta.13","10.0.0-beta.14","10.0.0-beta.15","10.0.0-beta.17","10.0.0-beta.19","10.0.0-beta.20","10.0.0-beta.21"],"85.0.4183.70":["10.0.0-beta.23"],"85.0.4183.78":["10.0.0-beta.24"],"85.0.4183.80":["10.0.0-beta.25"],"85.0.4183.84":["10.0.0"],"85.0.4183.86":["10.0.1"],"85.0.4183.87":["10.1.0"],"85.0.4183.93":["10.1.1"],"85.0.4183.98":["10.1.2"],"85.0.4183.121":["10.1.3","10.1.4","10.1.5","10.1.6","10.1.7","10.2.0","10.3.0","10.3.1","10.3.2","10.4.0","10.4.1","10.4.2","10.4.3","10.4.4","10.4.5","10.4.6","10.4.7"],"86.0.4234.0":["11.0.0-beta.1","11.0.0-beta.3","11.0.0-beta.4","11.0.0-beta.5","11.0.0-beta.6","11.0.0-beta.7"],"87.0.4251.1":["11.0.0-beta.8","11.0.0-beta.9","11.0.0-beta.11"],"87.0.4280.11":["11.0.0-beta.12","11.0.0-beta.13"],"87.0.4280.27":["11.0.0-beta.16","11.0.0-beta.17","11.0.0-beta.18","11.0.0-beta.19"],"87.0.4280.40":["11.0.0-beta.20"],"87.0.4280.47":["11.0.0-beta.22","11.0.0-beta.23"],"87.0.4280.60":["11.0.0","11.0.1"],"87.0.4280.67":["11.0.2","11.0.3","11.0.4"],"87.0.4280.88":["11.0.5","11.1.0","11.1.1"],"87.0.4280.141":["11.2.0","11.2.1","11.2.2","11.2.3","11.3.0","11.4.0","11.4.1","11.4.2","11.4.3","11.4.4","11.4.5","11.4.6","11.4.7","11.4.8","11.4.9","11.4.10","11.4.11","11.4.12","11.5.0"],"89.0.4328.0":["12.0.0-beta.1","12.0.0-beta.3","12.0.0-beta.4","12.0.0-beta.5","12.0.0-beta.6","12.0.0-beta.7","12.0.0-beta.8","12.0.0-beta.9","12.0.0-beta.10","12.0.0-beta.11","12.0.0-beta.12","12.0.0-beta.14"],"89.0.4348.1":["12.0.0-beta.16","12.0.0-beta.18","12.0.0-beta.19","12.0.0-beta.20"],"89.0.4388.2":["12.0.0-beta.21","12.0.0-beta.22","12.0.0-beta.23","12.0.0-beta.24","12.0.0-beta.25","12.0.0-beta.26"],"89.0.4389.23":["12.0.0-beta.27","12.0.0-beta.28","12.0.0-beta.29"],"89.0.4389.58":["12.0.0-beta.30","12.0.0-beta.31"],"89.0.4389.69":["12.0.0"],"89.0.4389.82":["12.0.1"],"89.0.4389.90":["12.0.2"],"89.0.4389.114":["12.0.3","12.0.4"],"89.0.4389.128":["12.0.5","12.0.6","12.0.7","12.0.8","12.0.9","12.0.10","12.0.11","12.0.12","12.0.13","12.0.14","12.0.15","12.0.16","12.0.17","12.0.18","12.1.0","12.1.1","12.1.2","12.2.0","12.2.1","12.2.2","12.2.3"],"90.0.4402.0":["13.0.0-beta.2","13.0.0-beta.3"],"90.0.4415.0":["13.0.0-beta.4","13.0.0-beta.5","13.0.0-beta.6","13.0.0-beta.7","13.0.0-beta.8","13.0.0-beta.9","13.0.0-beta.10","13.0.0-beta.11","13.0.0-beta.12","13.0.0-beta.13"],"91.0.4448.0":["13.0.0-beta.14","13.0.0-beta.16","13.0.0-beta.17","13.0.0-beta.18","13.0.0-beta.20"],"91.0.4472.33":["13.0.0-beta.21","13.0.0-beta.22","13.0.0-beta.23"],"91.0.4472.38":["13.0.0-beta.24","13.0.0-beta.25","13.0.0-beta.26","13.0.0-beta.27","13.0.0-beta.28"],"91.0.4472.69":["13.0.0","13.0.1"],"91.0.4472.77":["13.1.0","13.1.1","13.1.2"],"91.0.4472.106":["13.1.3","13.1.4"],"91.0.4472.124":["13.1.5","13.1.6","13.1.7"],"91.0.4472.164":["13.1.8","13.1.9","13.2.0","13.2.1","13.2.2","13.2.3","13.3.0","13.4.0","13.5.0","13.5.1","13.5.2","13.6.0","13.6.1","13.6.2","13.6.3","13.6.6","13.6.7","13.6.8","13.6.9"],"92.0.4511.0":["14.0.0-beta.1","14.0.0-beta.2","14.0.0-beta.3"],"93.0.4536.0":["14.0.0-beta.5","14.0.0-beta.6","14.0.0-beta.7","14.0.0-beta.8"],"93.0.4539.0":["14.0.0-beta.9","14.0.0-beta.10"],"93.0.4557.4":["14.0.0-beta.11","14.0.0-beta.12"],"93.0.4566.0":["14.0.0-beta.13","14.0.0-beta.14","14.0.0-beta.15","14.0.0-beta.16","14.0.0-beta.17","15.0.0-alpha.1","15.0.0-alpha.2"],"93.0.4577.15":["14.0.0-beta.18","14.0.0-beta.19","14.0.0-beta.20","14.0.0-beta.21"],"93.0.4577.25":["14.0.0-beta.22","14.0.0-beta.23"],"93.0.4577.51":["14.0.0-beta.24","14.0.0-beta.25"],"93.0.4577.58":["14.0.0"],"93.0.4577.63":["14.0.1"],"93.0.4577.82":["14.0.2","14.1.0","14.1.1","14.2.0","14.2.1","14.2.2","14.2.3","14.2.4","14.2.5","14.2.6","14.2.7","14.2.8","14.2.9"],"94.0.4584.0":["15.0.0-alpha.3","15.0.0-alpha.4","15.0.0-alpha.5","15.0.0-alpha.6"],"94.0.4590.2":["15.0.0-alpha.7","15.0.0-alpha.8","15.0.0-alpha.9"],"94.0.4606.12":["15.0.0-alpha.10"],"94.0.4606.20":["15.0.0-beta.1","15.0.0-beta.2"],"94.0.4606.31":["15.0.0-beta.3","15.0.0-beta.4","15.0.0-beta.5","15.0.0-beta.6","15.0.0-beta.7"],"94.0.4606.51":["15.0.0"],"94.0.4606.61":["15.1.0","15.1.1"],"94.0.4606.71":["15.1.2"],"94.0.4606.81":["15.2.0","15.3.0","15.3.1","15.3.2","15.3.3","15.3.4","15.3.5","15.3.6","15.3.7","15.4.0","15.4.1","15.4.2","15.5.0","15.5.1","15.5.2","15.5.3","15.5.4","15.5.5","15.5.6","15.5.7"],"95.0.4629.0":["16.0.0-alpha.1","16.0.0-alpha.2","16.0.0-alpha.3","16.0.0-alpha.4","16.0.0-alpha.5","16.0.0-alpha.6","16.0.0-alpha.7"],"96.0.4647.0":["16.0.0-alpha.8","16.0.0-alpha.9","16.0.0-beta.1","16.0.0-beta.2","16.0.0-beta.3"],"96.0.4664.18":["16.0.0-beta.4","16.0.0-beta.5"],"96.0.4664.27":["16.0.0-beta.6","16.0.0-beta.7"],"96.0.4664.35":["16.0.0-beta.8","16.0.0-beta.9"],"96.0.4664.45":["16.0.0","16.0.1"],"96.0.4664.55":["16.0.2","16.0.3","16.0.4","16.0.5"],"96.0.4664.110":["16.0.6","16.0.7","16.0.8"],"96.0.4664.174":["16.0.9","16.0.10","16.1.0","16.1.1","16.2.0","16.2.1","16.2.2","16.2.3","16.2.4","16.2.5","16.2.6","16.2.7","16.2.8"],"96.0.4664.4":["17.0.0-alpha.1","17.0.0-alpha.2","17.0.0-alpha.3"],"98.0.4706.0":["17.0.0-alpha.4","17.0.0-alpha.5","17.0.0-alpha.6","17.0.0-beta.1","17.0.0-beta.2"],"98.0.4758.9":["17.0.0-beta.3"],"98.0.4758.11":["17.0.0-beta.4","17.0.0-beta.5","17.0.0-beta.6","17.0.0-beta.7","17.0.0-beta.8","17.0.0-beta.9"],"98.0.4758.74":["17.0.0"],"98.0.4758.82":["17.0.1"],"98.0.4758.102":["17.1.0"],"98.0.4758.109":["17.1.1","17.1.2","17.2.0"],"98.0.4758.141":["17.3.0","17.3.1","17.4.0","17.4.1","17.4.2","17.4.3","17.4.4","17.4.5","17.4.6","17.4.7","17.4.8","17.4.9","17.4.10","17.4.11"],"99.0.4767.0":["18.0.0-alpha.1","18.0.0-alpha.2","18.0.0-alpha.3","18.0.0-alpha.4","18.0.0-alpha.5"],"100.0.4894.0":["18.0.0-beta.1","18.0.0-beta.2","18.0.0-beta.3","18.0.0-beta.4","18.0.0-beta.5","18.0.0-beta.6"],"100.0.4896.56":["18.0.0"],"100.0.4896.60":["18.0.1","18.0.2"],"100.0.4896.75":["18.0.3","18.0.4"],"100.0.4896.127":["18.1.0"],"100.0.4896.143":["18.2.0","18.2.1","18.2.2","18.2.3"],"100.0.4896.160":["18.2.4","18.3.0","18.3.1","18.3.2","18.3.3","18.3.4","18.3.5","18.3.6","18.3.7","18.3.8","18.3.9","18.3.11","18.3.12","18.3.13","18.3.14","18.3.15"],"102.0.4962.3":["19.0.0-alpha.1"],"102.0.4971.0":["19.0.0-alpha.2","19.0.0-alpha.3"],"102.0.4989.0":["19.0.0-alpha.4","19.0.0-alpha.5"],"102.0.4999.0":["19.0.0-beta.1","19.0.0-beta.2","19.0.0-beta.3"],"102.0.5005.27":["19.0.0-beta.4"],"102.0.5005.40":["19.0.0-beta.5","19.0.0-beta.6","19.0.0-beta.7"],"102.0.5005.49":["19.0.0-beta.8"],"102.0.5005.61":["19.0.0","19.0.1"],"102.0.5005.63":["19.0.2","19.0.3","19.0.4"],"102.0.5005.115":["19.0.5","19.0.6"],"102.0.5005.134":["19.0.7"],"102.0.5005.148":["19.0.8"],"102.0.5005.167":["19.0.9","19.0.10","19.0.11","19.0.12","19.0.13","19.0.14","19.0.15","19.0.16","19.0.17","19.1.0","19.1.1","19.1.2","19.1.3","19.1.4","19.1.5","19.1.6","19.1.7","19.1.8","19.1.9"],"103.0.5044.0":["20.0.0-alpha.1"],"104.0.5073.0":["20.0.0-alpha.2","20.0.0-alpha.3","20.0.0-alpha.4","20.0.0-alpha.5","20.0.0-alpha.6","20.0.0-alpha.7","20.0.0-beta.1","20.0.0-beta.2","20.0.0-beta.3","20.0.0-beta.4","20.0.0-beta.5","20.0.0-beta.6","20.0.0-beta.7","20.0.0-beta.8"],"104.0.5112.39":["20.0.0-beta.9"],"104.0.5112.48":["20.0.0-beta.10","20.0.0-beta.11","20.0.0-beta.12"],"104.0.5112.57":["20.0.0-beta.13"],"104.0.5112.65":["20.0.0"],"104.0.5112.81":["20.0.1","20.0.2","20.0.3"],"104.0.5112.102":["20.1.0","20.1.1"],"104.0.5112.114":["20.1.2","20.1.3","20.1.4"],"104.0.5112.124":["20.2.0","20.3.0","20.3.1","20.3.2","20.3.3","20.3.4","20.3.5","20.3.6","20.3.7","20.3.8","20.3.9","20.3.10","20.3.11","20.3.12"],"105.0.5187.0":["21.0.0-alpha.1","21.0.0-alpha.2","21.0.0-alpha.3","21.0.0-alpha.4","21.0.0-alpha.5"],"106.0.5216.0":["21.0.0-alpha.6","21.0.0-beta.1","21.0.0-beta.2","21.0.0-beta.3","21.0.0-beta.4","21.0.0-beta.5"],"106.0.5249.40":["21.0.0-beta.6","21.0.0-beta.7","21.0.0-beta.8"],"106.0.5249.51":["21.0.0"],"106.0.5249.61":["21.0.1"],"106.0.5249.91":["21.1.0"],"106.0.5249.103":["21.1.1"],"106.0.5249.119":["21.2.0"],"106.0.5249.165":["21.2.1"],"106.0.5249.168":["21.2.2","21.2.3"],"106.0.5249.181":["21.3.0","21.3.1"],"106.0.5249.199":["21.3.3","21.3.4","21.3.5","21.4.0","21.4.1","21.4.2","21.4.3","21.4.4"],"107.0.5286.0":["22.0.0-alpha.1"],"108.0.5329.0":["22.0.0-alpha.3","22.0.0-alpha.4","22.0.0-alpha.5","22.0.0-alpha.6"],"108.0.5355.0":["22.0.0-alpha.7"],"108.0.5359.10":["22.0.0-alpha.8","22.0.0-beta.1","22.0.0-beta.2","22.0.0-beta.3"],"108.0.5359.29":["22.0.0-beta.4"],"108.0.5359.40":["22.0.0-beta.5","22.0.0-beta.6"],"108.0.5359.48":["22.0.0-beta.7","22.0.0-beta.8"],"108.0.5359.62":["22.0.0"],"108.0.5359.125":["22.0.1"],"108.0.5359.179":["22.0.2","22.0.3","22.1.0"],"108.0.5359.215":["22.2.0","22.2.1","22.3.0","22.3.1","22.3.2","22.3.3","22.3.4","22.3.5","22.3.6","22.3.7","22.3.8","22.3.9","22.3.10","22.3.11","22.3.12","22.3.13","22.3.14","22.3.15","22.3.16","22.3.17","22.3.18","22.3.20","22.3.21","22.3.22","22.3.23","22.3.24","22.3.25","22.3.26","22.3.27"],"110.0.5415.0":["23.0.0-alpha.1"],"110.0.5451.0":["23.0.0-alpha.2","23.0.0-alpha.3"],"110.0.5478.5":["23.0.0-beta.1","23.0.0-beta.2","23.0.0-beta.3"],"110.0.5481.30":["23.0.0-beta.4"],"110.0.5481.38":["23.0.0-beta.5"],"110.0.5481.52":["23.0.0-beta.6","23.0.0-beta.8"],"110.0.5481.77":["23.0.0"],"110.0.5481.100":["23.1.0"],"110.0.5481.104":["23.1.1"],"110.0.5481.177":["23.1.2"],"110.0.5481.179":["23.1.3"],"110.0.5481.192":["23.1.4","23.2.0"],"110.0.5481.208":["23.2.1","23.2.2","23.2.3","23.2.4","23.3.0","23.3.1","23.3.2","23.3.3","23.3.4","23.3.5","23.3.6","23.3.7","23.3.8","23.3.9","23.3.10","23.3.11","23.3.12","23.3.13"],"111.0.5560.0":["24.0.0-alpha.1","24.0.0-alpha.2","24.0.0-alpha.3","24.0.0-alpha.4","24.0.0-alpha.5","24.0.0-alpha.6","24.0.0-alpha.7"],"111.0.5563.50":["24.0.0-beta.1","24.0.0-beta.2"],"112.0.5615.20":["24.0.0-beta.3","24.0.0-beta.4"],"112.0.5615.29":["24.0.0-beta.5"],"112.0.5615.39":["24.0.0-beta.6","24.0.0-beta.7"],"112.0.5615.49":["24.0.0"],"112.0.5615.50":["24.1.0","24.1.1"],"112.0.5615.87":["24.1.2"],"112.0.5615.165":["24.1.3","24.2.0","24.3.0"],"112.0.5615.183":["24.3.1"],"112.0.5615.204":["24.4.0","24.4.1","24.5.0","24.5.1","24.6.0","24.6.1","24.6.2","24.6.3","24.6.4","24.6.5","24.7.0","24.7.1","24.8.0","24.8.1","24.8.2","24.8.3","24.8.4","24.8.5","24.8.6","24.8.7","24.8.8"],"114.0.5694.0":["25.0.0-alpha.1","25.0.0-alpha.2"],"114.0.5710.0":["25.0.0-alpha.3","25.0.0-alpha.4"],"114.0.5719.0":["25.0.0-alpha.5","25.0.0-alpha.6","25.0.0-beta.1","25.0.0-beta.2","25.0.0-beta.3"],"114.0.5735.16":["25.0.0-beta.4","25.0.0-beta.5","25.0.0-beta.6","25.0.0-beta.7"],"114.0.5735.35":["25.0.0-beta.8"],"114.0.5735.45":["25.0.0-beta.9","25.0.0","25.0.1"],"114.0.5735.106":["25.1.0","25.1.1"],"114.0.5735.134":["25.2.0"],"114.0.5735.199":["25.3.0"],"114.0.5735.243":["25.3.1"],"114.0.5735.248":["25.3.2","25.4.0"],"114.0.5735.289":["25.5.0","25.6.0","25.7.0","25.8.0","25.8.1","25.8.2","25.8.3","25.8.4","25.9.0","25.9.1","25.9.2","25.9.3","25.9.4","25.9.5","25.9.6","25.9.7","25.9.8"],"116.0.5791.0":["26.0.0-alpha.1","26.0.0-alpha.2","26.0.0-alpha.3","26.0.0-alpha.4","26.0.0-alpha.5"],"116.0.5815.0":["26.0.0-alpha.6"],"116.0.5831.0":["26.0.0-alpha.7"],"116.0.5845.0":["26.0.0-alpha.8","26.0.0-beta.1"],"116.0.5845.14":["26.0.0-beta.2","26.0.0-beta.3","26.0.0-beta.4","26.0.0-beta.5","26.0.0-beta.6","26.0.0-beta.7"],"116.0.5845.42":["26.0.0-beta.8","26.0.0-beta.9"],"116.0.5845.49":["26.0.0-beta.10","26.0.0-beta.11"],"116.0.5845.62":["26.0.0-beta.12"],"116.0.5845.82":["26.0.0"],"116.0.5845.97":["26.1.0"],"116.0.5845.179":["26.2.0"],"116.0.5845.188":["26.2.1"],"116.0.5845.190":["26.2.2","26.2.3","26.2.4"],"116.0.5845.228":["26.3.0","26.4.0","26.4.1","26.4.2","26.4.3","26.5.0","26.6.0","26.6.1","26.6.2","26.6.3","26.6.4","26.6.5","26.6.6","26.6.7","26.6.8","26.6.9","26.6.10"],"118.0.5949.0":["27.0.0-alpha.1","27.0.0-alpha.2","27.0.0-alpha.3","27.0.0-alpha.4","27.0.0-alpha.5","27.0.0-alpha.6"],"118.0.5993.5":["27.0.0-beta.1","27.0.0-beta.2","27.0.0-beta.3"],"118.0.5993.11":["27.0.0-beta.4"],"118.0.5993.18":["27.0.0-beta.5","27.0.0-beta.6","27.0.0-beta.7","27.0.0-beta.8","27.0.0-beta.9"],"118.0.5993.54":["27.0.0"],"118.0.5993.89":["27.0.1","27.0.2"],"118.0.5993.120":["27.0.3"],"118.0.5993.129":["27.0.4"],"118.0.5993.144":["27.1.0","27.1.2"],"118.0.5993.159":["27.1.3","27.2.0","27.2.1","27.2.2","27.2.3","27.2.4","27.3.0","27.3.1","27.3.2","27.3.3","27.3.4","27.3.5","27.3.6","27.3.7","27.3.8","27.3.9","27.3.10","27.3.11"],"119.0.6045.0":["28.0.0-alpha.1","28.0.0-alpha.2"],"119.0.6045.21":["28.0.0-alpha.3","28.0.0-alpha.4"],"119.0.6045.33":["28.0.0-alpha.5","28.0.0-alpha.6","28.0.0-alpha.7","28.0.0-beta.1"],"120.0.6099.0":["28.0.0-beta.2"],"120.0.6099.5":["28.0.0-beta.3","28.0.0-beta.4"],"120.0.6099.18":["28.0.0-beta.5","28.0.0-beta.6","28.0.0-beta.7","28.0.0-beta.8","28.0.0-beta.9","28.0.0-beta.10"],"120.0.6099.35":["28.0.0-beta.11"],"120.0.6099.56":["28.0.0"],"120.0.6099.109":["28.1.0","28.1.1"],"120.0.6099.199":["28.1.2","28.1.3"],"120.0.6099.216":["28.1.4"],"120.0.6099.227":["28.2.0"],"120.0.6099.268":["28.2.1"],"120.0.6099.276":["28.2.2"],"120.0.6099.283":["28.2.3"],"120.0.6099.291":["28.2.4","28.2.5","28.2.6","28.2.7","28.2.8","28.2.9","28.2.10","28.3.0","28.3.1","28.3.2","28.3.3"],"121.0.6147.0":["29.0.0-alpha.1","29.0.0-alpha.2","29.0.0-alpha.3"],"121.0.6159.0":["29.0.0-alpha.4","29.0.0-alpha.5","29.0.0-alpha.6","29.0.0-alpha.7"],"122.0.6194.0":["29.0.0-alpha.8"],"122.0.6236.2":["29.0.0-alpha.9","29.0.0-alpha.10","29.0.0-alpha.11","29.0.0-beta.1","29.0.0-beta.2"],"122.0.6261.6":["29.0.0-beta.3","29.0.0-beta.4"],"122.0.6261.18":["29.0.0-beta.5","29.0.0-beta.6","29.0.0-beta.7","29.0.0-beta.8","29.0.0-beta.9","29.0.0-beta.10","29.0.0-beta.11"],"122.0.6261.29":["29.0.0-beta.12"],"122.0.6261.39":["29.0.0"],"122.0.6261.57":["29.0.1"],"122.0.6261.70":["29.1.0"],"122.0.6261.111":["29.1.1"],"122.0.6261.112":["29.1.2","29.1.3"],"122.0.6261.129":["29.1.4"],"122.0.6261.130":["29.1.5"],"122.0.6261.139":["29.1.6"],"122.0.6261.156":["29.2.0","29.3.0","29.3.1","29.3.2","29.3.3","29.4.0","29.4.1","29.4.2","29.4.3","29.4.4","29.4.5","29.4.6"],"123.0.6296.0":["30.0.0-alpha.1"],"123.0.6312.5":["30.0.0-alpha.2"],"124.0.6323.0":["30.0.0-alpha.3","30.0.0-alpha.4"],"124.0.6331.0":["30.0.0-alpha.5","30.0.0-alpha.6"],"124.0.6353.0":["30.0.0-alpha.7"],"124.0.6359.0":["30.0.0-beta.1","30.0.0-beta.2"],"124.0.6367.9":["30.0.0-beta.3","30.0.0-beta.4","30.0.0-beta.5"],"124.0.6367.18":["30.0.0-beta.6"],"124.0.6367.29":["30.0.0-beta.7","30.0.0-beta.8"],"124.0.6367.49":["30.0.0"],"124.0.6367.60":["30.0.1"],"124.0.6367.91":["30.0.2"],"124.0.6367.119":["30.0.3"],"124.0.6367.201":["30.0.4"],"124.0.6367.207":["30.0.5","30.0.6"],"124.0.6367.221":["30.0.7"],"124.0.6367.230":["30.0.8"],"124.0.6367.233":["30.0.9"],"124.0.6367.243":["30.1.0","30.1.1","30.1.2","30.2.0","30.3.0","30.3.1","30.4.0","30.5.0","30.5.1"],"125.0.6412.0":["31.0.0-alpha.1","31.0.0-alpha.2","31.0.0-alpha.3","31.0.0-alpha.4","31.0.0-alpha.5"],"126.0.6445.0":["31.0.0-beta.1","31.0.0-beta.2","31.0.0-beta.3","31.0.0-beta.4","31.0.0-beta.5","31.0.0-beta.6","31.0.0-beta.7","31.0.0-beta.8","31.0.0-beta.9"],"126.0.6478.36":["31.0.0-beta.10","31.0.0","31.0.1"],"126.0.6478.61":["31.0.2"],"126.0.6478.114":["31.1.0"],"126.0.6478.127":["31.2.0","31.2.1"],"126.0.6478.183":["31.3.0"],"126.0.6478.185":["31.3.1"],"126.0.6478.234":["31.4.0","31.5.0","31.6.0","31.7.0","31.7.1","31.7.2","31.7.3","31.7.4","31.7.5","31.7.6","31.7.7"],"127.0.6521.0":["32.0.0-alpha.1","32.0.0-alpha.2","32.0.0-alpha.3","32.0.0-alpha.4","32.0.0-alpha.5"],"128.0.6571.0":["32.0.0-alpha.6","32.0.0-alpha.7"],"128.0.6573.0":["32.0.0-alpha.8","32.0.0-alpha.9","32.0.0-alpha.10","32.0.0-beta.1"],"128.0.6611.0":["32.0.0-beta.2"],"128.0.6613.7":["32.0.0-beta.3"],"128.0.6613.18":["32.0.0-beta.4"],"128.0.6613.27":["32.0.0-beta.5","32.0.0-beta.6","32.0.0-beta.7"],"128.0.6613.36":["32.0.0","32.0.1"],"128.0.6613.84":["32.0.2"],"128.0.6613.120":["32.1.0"],"128.0.6613.137":["32.1.1"],"128.0.6613.162":["32.1.2"],"128.0.6613.178":["32.2.0"],"128.0.6613.186":["32.2.1","32.2.2","32.2.3","32.2.4","32.2.5","32.2.6","32.2.7","32.2.8","32.3.0","32.3.1","32.3.2","32.3.3"],"129.0.6668.0":["33.0.0-alpha.1"],"130.0.6672.0":["33.0.0-alpha.2","33.0.0-alpha.3","33.0.0-alpha.4","33.0.0-alpha.5","33.0.0-alpha.6","33.0.0-beta.1","33.0.0-beta.2","33.0.0-beta.3","33.0.0-beta.4"],"130.0.6723.19":["33.0.0-beta.5","33.0.0-beta.6","33.0.0-beta.7"],"130.0.6723.31":["33.0.0-beta.8","33.0.0-beta.9","33.0.0-beta.10"],"130.0.6723.44":["33.0.0-beta.11","33.0.0"],"130.0.6723.59":["33.0.1","33.0.2"],"130.0.6723.91":["33.1.0"],"130.0.6723.118":["33.2.0"],"130.0.6723.137":["33.2.1"],"130.0.6723.152":["33.3.0"],"130.0.6723.170":["33.3.1"],"130.0.6723.191":["33.3.2","33.4.0","33.4.1","33.4.2","33.4.3","33.4.4","33.4.5","33.4.6","33.4.7","33.4.8","33.4.9","33.4.10","33.4.11"],"131.0.6776.0":["34.0.0-alpha.1"],"132.0.6779.0":["34.0.0-alpha.2"],"132.0.6789.1":["34.0.0-alpha.3","34.0.0-alpha.4","34.0.0-alpha.5","34.0.0-alpha.6","34.0.0-alpha.7"],"132.0.6820.0":["34.0.0-alpha.8"],"132.0.6824.0":["34.0.0-alpha.9","34.0.0-beta.1","34.0.0-beta.2","34.0.0-beta.3"],"132.0.6834.6":["34.0.0-beta.4","34.0.0-beta.5"],"132.0.6834.15":["34.0.0-beta.6","34.0.0-beta.7","34.0.0-beta.8"],"132.0.6834.32":["34.0.0-beta.9","34.0.0-beta.10","34.0.0-beta.11"],"132.0.6834.46":["34.0.0-beta.12","34.0.0-beta.13"],"132.0.6834.57":["34.0.0-beta.14","34.0.0-beta.15","34.0.0-beta.16"],"132.0.6834.83":["34.0.0","34.0.1"],"132.0.6834.159":["34.0.2"],"132.0.6834.194":["34.1.0","34.1.1"],"132.0.6834.196":["34.2.0"],"132.0.6834.210":["34.3.0","34.3.1","34.3.2","34.3.3","34.3.4","34.4.0","34.4.1","34.5.0","34.5.1","34.5.2","34.5.3","34.5.4","34.5.5","34.5.6","34.5.7","34.5.8"],"133.0.6920.0":["35.0.0-alpha.1","35.0.0-alpha.2","35.0.0-alpha.3","35.0.0-alpha.4","35.0.0-alpha.5","35.0.0-beta.1"],"134.0.6968.0":["35.0.0-beta.2","35.0.0-beta.3","35.0.0-beta.4"],"134.0.6989.0":["35.0.0-beta.5"],"134.0.6990.0":["35.0.0-beta.6","35.0.0-beta.7"],"134.0.6998.10":["35.0.0-beta.8","35.0.0-beta.9"],"134.0.6998.23":["35.0.0-beta.10","35.0.0-beta.11","35.0.0-beta.12"],"134.0.6998.44":["35.0.0-beta.13","35.0.0","35.0.1"],"134.0.6998.88":["35.0.2","35.0.3"],"134.0.6998.165":["35.1.0","35.1.1"],"134.0.6998.178":["35.1.2"],"134.0.6998.179":["35.1.3","35.1.4","35.1.5"],"134.0.6998.205":["35.2.0","35.2.1","35.2.2","35.3.0","35.4.0","35.5.0","35.5.1","35.6.0","35.7.0","35.7.1","35.7.2","35.7.4","35.7.5"],"135.0.7049.5":["36.0.0-alpha.1"],"136.0.7062.0":["36.0.0-alpha.2","36.0.0-alpha.3","36.0.0-alpha.4"],"136.0.7067.0":["36.0.0-alpha.5","36.0.0-alpha.6","36.0.0-beta.1","36.0.0-beta.2","36.0.0-beta.3","36.0.0-beta.4"],"136.0.7103.17":["36.0.0-beta.5"],"136.0.7103.25":["36.0.0-beta.6","36.0.0-beta.7"],"136.0.7103.33":["36.0.0-beta.8","36.0.0-beta.9"],"136.0.7103.48":["36.0.0","36.0.1"],"136.0.7103.49":["36.1.0","36.2.0"],"136.0.7103.93":["36.2.1"],"136.0.7103.113":["36.3.0","36.3.1"],"136.0.7103.115":["36.3.2"],"136.0.7103.149":["36.4.0"],"136.0.7103.168":["36.5.0"],"136.0.7103.177":["36.6.0","36.7.0","36.7.1","36.7.3","36.7.4","36.8.0","36.8.1","36.9.0","36.9.1","36.9.2","36.9.3","36.9.4","36.9.5"],"137.0.7151.0":["37.0.0-alpha.1","37.0.0-alpha.2"],"138.0.7156.0":["37.0.0-alpha.3"],"138.0.7165.0":["37.0.0-alpha.4"],"138.0.7177.0":["37.0.0-alpha.5"],"138.0.7178.0":["37.0.0-alpha.6","37.0.0-alpha.7","37.0.0-beta.1","37.0.0-beta.2"],"138.0.7190.0":["37.0.0-beta.3"],"138.0.7204.15":["37.0.0-beta.4","37.0.0-beta.5","37.0.0-beta.6","37.0.0-beta.7"],"138.0.7204.23":["37.0.0-beta.8"],"138.0.7204.35":["37.0.0-beta.9","37.0.0","37.1.0"],"138.0.7204.97":["37.2.0","37.2.1"],"138.0.7204.100":["37.2.2","37.2.3"],"138.0.7204.157":["37.2.4"],"138.0.7204.168":["37.2.5"],"138.0.7204.185":["37.2.6"],"138.0.7204.224":["37.3.0"],"138.0.7204.235":["37.3.1"],"138.0.7204.243":["37.4.0"],"138.0.7204.251":["37.5.0","37.5.1","37.6.0","37.6.1","37.7.0","37.7.1","37.8.0","37.9.0","37.10.0","37.10.1","37.10.2"],"139.0.7219.0":["38.0.0-alpha.1","38.0.0-alpha.2","38.0.0-alpha.3"],"140.0.7261.0":["38.0.0-alpha.4","38.0.0-alpha.5","38.0.0-alpha.6"],"140.0.7281.0":["38.0.0-alpha.7","38.0.0-alpha.8"],"140.0.7301.0":["38.0.0-alpha.9"],"140.0.7309.0":["38.0.0-alpha.10"],"140.0.7312.0":["38.0.0-alpha.11"],"140.0.7314.0":["38.0.0-alpha.12","38.0.0-alpha.13","38.0.0-beta.1"],"140.0.7327.0":["38.0.0-beta.2","38.0.0-beta.3"],"140.0.7339.2":["38.0.0-beta.4","38.0.0-beta.5","38.0.0-beta.6"],"140.0.7339.16":["38.0.0-beta.7"],"140.0.7339.24":["38.0.0-beta.8","38.0.0-beta.9"],"140.0.7339.41":["38.0.0-beta.11","38.0.0"],"140.0.7339.80":["38.1.0"],"140.0.7339.133":["38.1.1","38.1.2","38.2.0","38.2.1","38.2.2"],"140.0.7339.240":["38.3.0","38.4.0"],"140.0.7339.249":["38.5.0","38.6.0","38.7.0","38.7.1"],"141.0.7361.0":["39.0.0-alpha.1","39.0.0-alpha.2"],"141.0.7390.7":["39.0.0-alpha.3","39.0.0-alpha.4","39.0.0-alpha.5"],"142.0.7417.0":["39.0.0-alpha.6","39.0.0-alpha.7","39.0.0-alpha.8","39.0.0-alpha.9","39.0.0-beta.1","39.0.0-beta.2","39.0.0-beta.3"],"142.0.7444.34":["39.0.0-beta.4","39.0.0-beta.5"],"142.0.7444.52":["39.0.0"],"142.0.7444.59":["39.1.0","39.1.1"],"142.0.7444.134":["39.1.2"],"142.0.7444.162":["39.2.0","39.2.1","39.2.2"],"142.0.7444.175":["39.2.3"],"143.0.7499.0":["40.0.0-alpha.2"],"144.0.7506.0":["40.0.0-alpha.4"],"144.0.7526.0":["40.0.0-alpha.5","40.0.0-alpha.6"]} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/electron-to-chromium/full-versions.js b/build_vtk_bundle/node_modules/electron-to-chromium/full-versions.js deleted file mode 100644 index 64b97a03..00000000 --- a/build_vtk_bundle/node_modules/electron-to-chromium/full-versions.js +++ /dev/null @@ -1,1674 +0,0 @@ -module.exports = { - "0.20.0": "39.0.2171.65", - "0.20.1": "39.0.2171.65", - "0.20.2": "39.0.2171.65", - "0.20.3": "39.0.2171.65", - "0.20.4": "39.0.2171.65", - "0.20.5": "39.0.2171.65", - "0.20.6": "39.0.2171.65", - "0.20.7": "39.0.2171.65", - "0.20.8": "39.0.2171.65", - "0.21.0": "40.0.2214.91", - "0.21.1": "40.0.2214.91", - "0.21.2": "40.0.2214.91", - "0.21.3": "41.0.2272.76", - "0.22.1": "41.0.2272.76", - "0.22.2": "41.0.2272.76", - "0.22.3": "41.0.2272.76", - "0.23.0": "41.0.2272.76", - "0.24.0": "41.0.2272.76", - "0.25.0": "42.0.2311.107", - "0.25.1": "42.0.2311.107", - "0.25.2": "42.0.2311.107", - "0.25.3": "42.0.2311.107", - "0.26.0": "42.0.2311.107", - "0.26.1": "42.0.2311.107", - "0.27.0": "42.0.2311.107", - "0.27.1": "42.0.2311.107", - "0.27.2": "43.0.2357.65", - "0.27.3": "43.0.2357.65", - "0.28.0": "43.0.2357.65", - "0.28.1": "43.0.2357.65", - "0.28.2": "43.0.2357.65", - "0.28.3": "43.0.2357.65", - "0.29.1": "43.0.2357.65", - "0.29.2": "43.0.2357.65", - "0.30.4": "44.0.2403.125", - "0.31.0": "44.0.2403.125", - "0.31.2": "45.0.2454.85", - "0.32.2": "45.0.2454.85", - "0.32.3": "45.0.2454.85", - "0.33.0": "45.0.2454.85", - "0.33.1": "45.0.2454.85", - "0.33.2": "45.0.2454.85", - "0.33.3": "45.0.2454.85", - "0.33.4": "45.0.2454.85", - "0.33.6": "45.0.2454.85", - "0.33.7": "45.0.2454.85", - "0.33.8": "45.0.2454.85", - "0.33.9": "45.0.2454.85", - "0.34.0": "45.0.2454.85", - "0.34.1": "45.0.2454.85", - "0.34.2": "45.0.2454.85", - "0.34.3": "45.0.2454.85", - "0.34.4": "45.0.2454.85", - "0.35.1": "45.0.2454.85", - "0.35.2": "45.0.2454.85", - "0.35.3": "45.0.2454.85", - "0.35.4": "45.0.2454.85", - "0.35.5": "45.0.2454.85", - "0.36.0": "47.0.2526.73", - "0.36.2": "47.0.2526.73", - "0.36.3": "47.0.2526.73", - "0.36.4": "47.0.2526.73", - "0.36.5": "47.0.2526.110", - "0.36.6": "47.0.2526.110", - "0.36.7": "47.0.2526.110", - "0.36.8": "47.0.2526.110", - "0.36.9": "47.0.2526.110", - "0.36.10": "47.0.2526.110", - "0.36.11": "47.0.2526.110", - "0.36.12": "47.0.2526.110", - "0.37.0": "49.0.2623.75", - "0.37.1": "49.0.2623.75", - "0.37.3": "49.0.2623.75", - "0.37.4": "49.0.2623.75", - "0.37.5": "49.0.2623.75", - "0.37.6": "49.0.2623.75", - "0.37.7": "49.0.2623.75", - "0.37.8": "49.0.2623.75", - "1.0.0": "49.0.2623.75", - "1.0.1": "49.0.2623.75", - "1.0.2": "49.0.2623.75", - "1.1.0": "50.0.2661.102", - "1.1.1": "50.0.2661.102", - "1.1.2": "50.0.2661.102", - "1.1.3": "50.0.2661.102", - "1.2.0": "51.0.2704.63", - "1.2.1": "51.0.2704.63", - "1.2.2": "51.0.2704.84", - "1.2.3": "51.0.2704.84", - "1.2.4": "51.0.2704.103", - "1.2.5": "51.0.2704.103", - "1.2.6": "51.0.2704.106", - "1.2.7": "51.0.2704.106", - "1.2.8": "51.0.2704.106", - "1.3.0": "52.0.2743.82", - "1.3.1": "52.0.2743.82", - "1.3.2": "52.0.2743.82", - "1.3.3": "52.0.2743.82", - "1.3.4": "52.0.2743.82", - "1.3.5": "52.0.2743.82", - "1.3.6": "52.0.2743.82", - "1.3.7": "52.0.2743.82", - "1.3.9": "52.0.2743.82", - "1.3.10": "52.0.2743.82", - "1.3.13": "52.0.2743.82", - "1.3.14": "52.0.2743.82", - "1.3.15": "52.0.2743.82", - "1.4.0": "53.0.2785.113", - "1.4.1": "53.0.2785.113", - "1.4.2": "53.0.2785.113", - "1.4.3": "53.0.2785.113", - "1.4.4": "53.0.2785.113", - "1.4.5": "53.0.2785.113", - "1.4.6": "53.0.2785.143", - "1.4.7": "53.0.2785.143", - "1.4.8": "53.0.2785.143", - "1.4.10": "53.0.2785.143", - "1.4.11": "53.0.2785.143", - "1.4.12": "54.0.2840.51", - "1.4.13": "53.0.2785.143", - "1.4.14": "53.0.2785.143", - "1.4.15": "53.0.2785.143", - "1.4.16": "53.0.2785.143", - "1.5.0": "54.0.2840.101", - "1.5.1": "54.0.2840.101", - "1.6.0": "56.0.2924.87", - "1.6.1": "56.0.2924.87", - "1.6.2": "56.0.2924.87", - "1.6.3": "56.0.2924.87", - "1.6.4": "56.0.2924.87", - "1.6.5": "56.0.2924.87", - "1.6.6": "56.0.2924.87", - "1.6.7": "56.0.2924.87", - "1.6.8": "56.0.2924.87", - "1.6.9": "56.0.2924.87", - "1.6.10": "56.0.2924.87", - "1.6.11": "56.0.2924.87", - "1.6.12": "56.0.2924.87", - "1.6.13": "56.0.2924.87", - "1.6.14": "56.0.2924.87", - "1.6.15": "56.0.2924.87", - "1.6.16": "56.0.2924.87", - "1.6.17": "56.0.2924.87", - "1.6.18": "56.0.2924.87", - "1.7.0": "58.0.3029.110", - "1.7.1": "58.0.3029.110", - "1.7.2": "58.0.3029.110", - "1.7.3": "58.0.3029.110", - "1.7.4": "58.0.3029.110", - "1.7.5": "58.0.3029.110", - "1.7.6": "58.0.3029.110", - "1.7.7": "58.0.3029.110", - "1.7.8": "58.0.3029.110", - "1.7.9": "58.0.3029.110", - "1.7.10": "58.0.3029.110", - "1.7.11": "58.0.3029.110", - "1.7.12": "58.0.3029.110", - "1.7.13": "58.0.3029.110", - "1.7.14": "58.0.3029.110", - "1.7.15": "58.0.3029.110", - "1.7.16": "58.0.3029.110", - "1.8.0": "59.0.3071.115", - "1.8.1": "59.0.3071.115", - "1.8.2-beta.1": "59.0.3071.115", - "1.8.2-beta.2": "59.0.3071.115", - "1.8.2-beta.3": "59.0.3071.115", - "1.8.2-beta.4": "59.0.3071.115", - "1.8.2-beta.5": "59.0.3071.115", - "1.8.2": "59.0.3071.115", - "1.8.3": "59.0.3071.115", - "1.8.4": "59.0.3071.115", - "1.8.5": "59.0.3071.115", - "1.8.6": "59.0.3071.115", - "1.8.7": "59.0.3071.115", - "1.8.8": "59.0.3071.115", - "2.0.0-beta.1": "61.0.3163.100", - "2.0.0-beta.2": "61.0.3163.100", - "2.0.0-beta.3": "61.0.3163.100", - "2.0.0-beta.4": "61.0.3163.100", - "2.0.0-beta.5": "61.0.3163.100", - "2.0.0-beta.6": "61.0.3163.100", - "2.0.0-beta.7": "61.0.3163.100", - "2.0.0-beta.8": "61.0.3163.100", - "2.0.0": "61.0.3163.100", - "2.0.1": "61.0.3163.100", - "2.0.2": "61.0.3163.100", - "2.0.3": "61.0.3163.100", - "2.0.4": "61.0.3163.100", - "2.0.5": "61.0.3163.100", - "2.0.6": "61.0.3163.100", - "2.0.7": "61.0.3163.100", - "2.0.8": "61.0.3163.100", - "2.0.9": "61.0.3163.100", - "2.0.10": "61.0.3163.100", - "2.0.11": "61.0.3163.100", - "2.0.12": "61.0.3163.100", - "2.0.13": "61.0.3163.100", - "2.0.14": "61.0.3163.100", - "2.0.15": "61.0.3163.100", - "2.0.16": "61.0.3163.100", - "2.0.17": "61.0.3163.100", - "2.0.18": "61.0.3163.100", - "2.1.0-unsupported.20180809": "61.0.3163.100", - "3.0.0-beta.1": "66.0.3359.181", - "3.0.0-beta.2": "66.0.3359.181", - "3.0.0-beta.3": "66.0.3359.181", - "3.0.0-beta.4": "66.0.3359.181", - "3.0.0-beta.5": "66.0.3359.181", - "3.0.0-beta.6": "66.0.3359.181", - "3.0.0-beta.7": "66.0.3359.181", - "3.0.0-beta.8": "66.0.3359.181", - "3.0.0-beta.9": "66.0.3359.181", - "3.0.0-beta.10": "66.0.3359.181", - "3.0.0-beta.11": "66.0.3359.181", - "3.0.0-beta.12": "66.0.3359.181", - "3.0.0-beta.13": "66.0.3359.181", - "3.0.0": "66.0.3359.181", - "3.0.1": "66.0.3359.181", - "3.0.2": "66.0.3359.181", - "3.0.3": "66.0.3359.181", - "3.0.4": "66.0.3359.181", - "3.0.5": "66.0.3359.181", - "3.0.6": "66.0.3359.181", - "3.0.7": "66.0.3359.181", - "3.0.8": "66.0.3359.181", - "3.0.9": "66.0.3359.181", - "3.0.10": "66.0.3359.181", - "3.0.11": "66.0.3359.181", - "3.0.12": "66.0.3359.181", - "3.0.13": "66.0.3359.181", - "3.0.14": "66.0.3359.181", - "3.0.15": "66.0.3359.181", - "3.0.16": "66.0.3359.181", - "3.1.0-beta.1": "66.0.3359.181", - "3.1.0-beta.2": "66.0.3359.181", - "3.1.0-beta.3": "66.0.3359.181", - "3.1.0-beta.4": "66.0.3359.181", - "3.1.0-beta.5": "66.0.3359.181", - "3.1.0": "66.0.3359.181", - "3.1.1": "66.0.3359.181", - "3.1.2": "66.0.3359.181", - "3.1.3": "66.0.3359.181", - "3.1.4": "66.0.3359.181", - "3.1.5": "66.0.3359.181", - "3.1.6": "66.0.3359.181", - "3.1.7": "66.0.3359.181", - "3.1.8": "66.0.3359.181", - "3.1.9": "66.0.3359.181", - "3.1.10": "66.0.3359.181", - "3.1.11": "66.0.3359.181", - "3.1.12": "66.0.3359.181", - "3.1.13": "66.0.3359.181", - "4.0.0-beta.1": "69.0.3497.106", - "4.0.0-beta.2": "69.0.3497.106", - "4.0.0-beta.3": "69.0.3497.106", - "4.0.0-beta.4": "69.0.3497.106", - "4.0.0-beta.5": "69.0.3497.106", - "4.0.0-beta.6": "69.0.3497.106", - "4.0.0-beta.7": "69.0.3497.106", - "4.0.0-beta.8": "69.0.3497.106", - "4.0.0-beta.9": "69.0.3497.106", - "4.0.0-beta.10": "69.0.3497.106", - "4.0.0-beta.11": "69.0.3497.106", - "4.0.0": "69.0.3497.106", - "4.0.1": "69.0.3497.106", - "4.0.2": "69.0.3497.106", - "4.0.3": "69.0.3497.106", - "4.0.4": "69.0.3497.106", - "4.0.5": "69.0.3497.106", - "4.0.6": "69.0.3497.106", - "4.0.7": "69.0.3497.128", - "4.0.8": "69.0.3497.128", - "4.1.0": "69.0.3497.128", - "4.1.1": "69.0.3497.128", - "4.1.2": "69.0.3497.128", - "4.1.3": "69.0.3497.128", - "4.1.4": "69.0.3497.128", - "4.1.5": "69.0.3497.128", - "4.2.0": "69.0.3497.128", - "4.2.1": "69.0.3497.128", - "4.2.2": "69.0.3497.128", - "4.2.3": "69.0.3497.128", - "4.2.4": "69.0.3497.128", - "4.2.5": "69.0.3497.128", - "4.2.6": "69.0.3497.128", - "4.2.7": "69.0.3497.128", - "4.2.8": "69.0.3497.128", - "4.2.9": "69.0.3497.128", - "4.2.10": "69.0.3497.128", - "4.2.11": "69.0.3497.128", - "4.2.12": "69.0.3497.128", - "5.0.0-beta.1": "72.0.3626.52", - "5.0.0-beta.2": "72.0.3626.52", - "5.0.0-beta.3": "73.0.3683.27", - "5.0.0-beta.4": "73.0.3683.54", - "5.0.0-beta.5": "73.0.3683.61", - "5.0.0-beta.6": "73.0.3683.84", - "5.0.0-beta.7": "73.0.3683.94", - "5.0.0-beta.8": "73.0.3683.104", - "5.0.0-beta.9": "73.0.3683.117", - "5.0.0": "73.0.3683.119", - "5.0.1": "73.0.3683.121", - "5.0.2": "73.0.3683.121", - "5.0.3": "73.0.3683.121", - "5.0.4": "73.0.3683.121", - "5.0.5": "73.0.3683.121", - "5.0.6": "73.0.3683.121", - "5.0.7": "73.0.3683.121", - "5.0.8": "73.0.3683.121", - "5.0.9": "73.0.3683.121", - "5.0.10": "73.0.3683.121", - "5.0.11": "73.0.3683.121", - "5.0.12": "73.0.3683.121", - "5.0.13": "73.0.3683.121", - "6.0.0-beta.1": "76.0.3774.1", - "6.0.0-beta.2": "76.0.3783.1", - "6.0.0-beta.3": "76.0.3783.1", - "6.0.0-beta.4": "76.0.3783.1", - "6.0.0-beta.5": "76.0.3805.4", - "6.0.0-beta.6": "76.0.3809.3", - "6.0.0-beta.7": "76.0.3809.22", - "6.0.0-beta.8": "76.0.3809.26", - "6.0.0-beta.9": "76.0.3809.26", - "6.0.0-beta.10": "76.0.3809.37", - "6.0.0-beta.11": "76.0.3809.42", - "6.0.0-beta.12": "76.0.3809.54", - "6.0.0-beta.13": "76.0.3809.60", - "6.0.0-beta.14": "76.0.3809.68", - "6.0.0-beta.15": "76.0.3809.74", - "6.0.0": "76.0.3809.88", - "6.0.1": "76.0.3809.102", - "6.0.2": "76.0.3809.110", - "6.0.3": "76.0.3809.126", - "6.0.4": "76.0.3809.131", - "6.0.5": "76.0.3809.136", - "6.0.6": "76.0.3809.138", - "6.0.7": "76.0.3809.139", - "6.0.8": "76.0.3809.146", - "6.0.9": "76.0.3809.146", - "6.0.10": "76.0.3809.146", - "6.0.11": "76.0.3809.146", - "6.0.12": "76.0.3809.146", - "6.1.0": "76.0.3809.146", - "6.1.1": "76.0.3809.146", - "6.1.2": "76.0.3809.146", - "6.1.3": "76.0.3809.146", - "6.1.4": "76.0.3809.146", - "6.1.5": "76.0.3809.146", - "6.1.6": "76.0.3809.146", - "6.1.7": "76.0.3809.146", - "6.1.8": "76.0.3809.146", - "6.1.9": "76.0.3809.146", - "6.1.10": "76.0.3809.146", - "6.1.11": "76.0.3809.146", - "6.1.12": "76.0.3809.146", - "7.0.0-beta.1": "78.0.3866.0", - "7.0.0-beta.2": "78.0.3866.0", - "7.0.0-beta.3": "78.0.3866.0", - "7.0.0-beta.4": "78.0.3896.6", - "7.0.0-beta.5": "78.0.3905.1", - "7.0.0-beta.6": "78.0.3905.1", - "7.0.0-beta.7": "78.0.3905.1", - "7.0.0": "78.0.3905.1", - "7.0.1": "78.0.3904.92", - "7.1.0": "78.0.3904.94", - "7.1.1": "78.0.3904.99", - "7.1.2": "78.0.3904.113", - "7.1.3": "78.0.3904.126", - "7.1.4": "78.0.3904.130", - "7.1.5": "78.0.3904.130", - "7.1.6": "78.0.3904.130", - "7.1.7": "78.0.3904.130", - "7.1.8": "78.0.3904.130", - "7.1.9": "78.0.3904.130", - "7.1.10": "78.0.3904.130", - "7.1.11": "78.0.3904.130", - "7.1.12": "78.0.3904.130", - "7.1.13": "78.0.3904.130", - "7.1.14": "78.0.3904.130", - "7.2.0": "78.0.3904.130", - "7.2.1": "78.0.3904.130", - "7.2.2": "78.0.3904.130", - "7.2.3": "78.0.3904.130", - "7.2.4": "78.0.3904.130", - "7.3.0": "78.0.3904.130", - "7.3.1": "78.0.3904.130", - "7.3.2": "78.0.3904.130", - "7.3.3": "78.0.3904.130", - "8.0.0-beta.1": "79.0.3931.0", - "8.0.0-beta.2": "79.0.3931.0", - "8.0.0-beta.3": "80.0.3955.0", - "8.0.0-beta.4": "80.0.3955.0", - "8.0.0-beta.5": "80.0.3987.14", - "8.0.0-beta.6": "80.0.3987.51", - "8.0.0-beta.7": "80.0.3987.59", - "8.0.0-beta.8": "80.0.3987.75", - "8.0.0-beta.9": "80.0.3987.75", - "8.0.0": "80.0.3987.86", - "8.0.1": "80.0.3987.86", - "8.0.2": "80.0.3987.86", - "8.0.3": "80.0.3987.134", - "8.1.0": "80.0.3987.137", - "8.1.1": "80.0.3987.141", - "8.2.0": "80.0.3987.158", - "8.2.1": "80.0.3987.163", - "8.2.2": "80.0.3987.163", - "8.2.3": "80.0.3987.163", - "8.2.4": "80.0.3987.165", - "8.2.5": "80.0.3987.165", - "8.3.0": "80.0.3987.165", - "8.3.1": "80.0.3987.165", - "8.3.2": "80.0.3987.165", - "8.3.3": "80.0.3987.165", - "8.3.4": "80.0.3987.165", - "8.4.0": "80.0.3987.165", - "8.4.1": "80.0.3987.165", - "8.5.0": "80.0.3987.165", - "8.5.1": "80.0.3987.165", - "8.5.2": "80.0.3987.165", - "8.5.3": "80.0.3987.163", - "8.5.4": "80.0.3987.163", - "8.5.5": "80.0.3987.163", - "9.0.0-beta.1": "82.0.4048.0", - "9.0.0-beta.2": "82.0.4048.0", - "9.0.0-beta.3": "82.0.4048.0", - "9.0.0-beta.4": "82.0.4048.0", - "9.0.0-beta.5": "82.0.4048.0", - "9.0.0-beta.6": "82.0.4058.2", - "9.0.0-beta.7": "82.0.4058.2", - "9.0.0-beta.9": "82.0.4058.2", - "9.0.0-beta.10": "82.0.4085.10", - "9.0.0-beta.11": "82.0.4085.14", - "9.0.0-beta.12": "82.0.4085.14", - "9.0.0-beta.13": "82.0.4085.14", - "9.0.0-beta.14": "82.0.4085.27", - "9.0.0-beta.15": "83.0.4102.3", - "9.0.0-beta.16": "83.0.4102.3", - "9.0.0-beta.17": "83.0.4103.14", - "9.0.0-beta.18": "83.0.4103.16", - "9.0.0-beta.19": "83.0.4103.24", - "9.0.0-beta.20": "83.0.4103.26", - "9.0.0-beta.21": "83.0.4103.26", - "9.0.0-beta.22": "83.0.4103.34", - "9.0.0-beta.23": "83.0.4103.44", - "9.0.0-beta.24": "83.0.4103.45", - "9.0.0": "83.0.4103.64", - "9.0.1": "83.0.4103.94", - "9.0.2": "83.0.4103.94", - "9.0.3": "83.0.4103.100", - "9.0.4": "83.0.4103.104", - "9.0.5": "83.0.4103.119", - "9.1.0": "83.0.4103.122", - "9.1.1": "83.0.4103.122", - "9.1.2": "83.0.4103.122", - "9.2.0": "83.0.4103.122", - "9.2.1": "83.0.4103.122", - "9.3.0": "83.0.4103.122", - "9.3.1": "83.0.4103.122", - "9.3.2": "83.0.4103.122", - "9.3.3": "83.0.4103.122", - "9.3.4": "83.0.4103.122", - "9.3.5": "83.0.4103.122", - "9.4.0": "83.0.4103.122", - "9.4.1": "83.0.4103.122", - "9.4.2": "83.0.4103.122", - "9.4.3": "83.0.4103.122", - "9.4.4": "83.0.4103.122", - "10.0.0-beta.1": "84.0.4129.0", - "10.0.0-beta.2": "84.0.4129.0", - "10.0.0-beta.3": "85.0.4161.2", - "10.0.0-beta.4": "85.0.4161.2", - "10.0.0-beta.8": "85.0.4181.1", - "10.0.0-beta.9": "85.0.4181.1", - "10.0.0-beta.10": "85.0.4183.19", - "10.0.0-beta.11": "85.0.4183.20", - "10.0.0-beta.12": "85.0.4183.26", - "10.0.0-beta.13": "85.0.4183.39", - "10.0.0-beta.14": "85.0.4183.39", - "10.0.0-beta.15": "85.0.4183.39", - "10.0.0-beta.17": "85.0.4183.39", - "10.0.0-beta.19": "85.0.4183.39", - "10.0.0-beta.20": "85.0.4183.39", - "10.0.0-beta.21": "85.0.4183.39", - "10.0.0-beta.23": "85.0.4183.70", - "10.0.0-beta.24": "85.0.4183.78", - "10.0.0-beta.25": "85.0.4183.80", - "10.0.0": "85.0.4183.84", - "10.0.1": "85.0.4183.86", - "10.1.0": "85.0.4183.87", - "10.1.1": "85.0.4183.93", - "10.1.2": "85.0.4183.98", - "10.1.3": "85.0.4183.121", - "10.1.4": "85.0.4183.121", - "10.1.5": "85.0.4183.121", - "10.1.6": "85.0.4183.121", - "10.1.7": "85.0.4183.121", - "10.2.0": "85.0.4183.121", - "10.3.0": "85.0.4183.121", - "10.3.1": "85.0.4183.121", - "10.3.2": "85.0.4183.121", - "10.4.0": "85.0.4183.121", - "10.4.1": "85.0.4183.121", - "10.4.2": "85.0.4183.121", - "10.4.3": "85.0.4183.121", - "10.4.4": "85.0.4183.121", - "10.4.5": "85.0.4183.121", - "10.4.6": "85.0.4183.121", - "10.4.7": "85.0.4183.121", - "11.0.0-beta.1": "86.0.4234.0", - "11.0.0-beta.3": "86.0.4234.0", - "11.0.0-beta.4": "86.0.4234.0", - "11.0.0-beta.5": "86.0.4234.0", - "11.0.0-beta.6": "86.0.4234.0", - "11.0.0-beta.7": "86.0.4234.0", - "11.0.0-beta.8": "87.0.4251.1", - "11.0.0-beta.9": "87.0.4251.1", - "11.0.0-beta.11": "87.0.4251.1", - "11.0.0-beta.12": "87.0.4280.11", - "11.0.0-beta.13": "87.0.4280.11", - "11.0.0-beta.16": "87.0.4280.27", - "11.0.0-beta.17": "87.0.4280.27", - "11.0.0-beta.18": "87.0.4280.27", - "11.0.0-beta.19": "87.0.4280.27", - "11.0.0-beta.20": "87.0.4280.40", - "11.0.0-beta.22": "87.0.4280.47", - "11.0.0-beta.23": "87.0.4280.47", - "11.0.0": "87.0.4280.60", - "11.0.1": "87.0.4280.60", - "11.0.2": "87.0.4280.67", - "11.0.3": "87.0.4280.67", - "11.0.4": "87.0.4280.67", - "11.0.5": "87.0.4280.88", - "11.1.0": "87.0.4280.88", - "11.1.1": "87.0.4280.88", - "11.2.0": "87.0.4280.141", - "11.2.1": "87.0.4280.141", - "11.2.2": "87.0.4280.141", - "11.2.3": "87.0.4280.141", - "11.3.0": "87.0.4280.141", - "11.4.0": "87.0.4280.141", - "11.4.1": "87.0.4280.141", - "11.4.2": "87.0.4280.141", - "11.4.3": "87.0.4280.141", - "11.4.4": "87.0.4280.141", - "11.4.5": "87.0.4280.141", - "11.4.6": "87.0.4280.141", - "11.4.7": "87.0.4280.141", - "11.4.8": "87.0.4280.141", - "11.4.9": "87.0.4280.141", - "11.4.10": "87.0.4280.141", - "11.4.11": "87.0.4280.141", - "11.4.12": "87.0.4280.141", - "11.5.0": "87.0.4280.141", - "12.0.0-beta.1": "89.0.4328.0", - "12.0.0-beta.3": "89.0.4328.0", - "12.0.0-beta.4": "89.0.4328.0", - "12.0.0-beta.5": "89.0.4328.0", - "12.0.0-beta.6": "89.0.4328.0", - "12.0.0-beta.7": "89.0.4328.0", - "12.0.0-beta.8": "89.0.4328.0", - "12.0.0-beta.9": "89.0.4328.0", - "12.0.0-beta.10": "89.0.4328.0", - "12.0.0-beta.11": "89.0.4328.0", - "12.0.0-beta.12": "89.0.4328.0", - "12.0.0-beta.14": "89.0.4328.0", - "12.0.0-beta.16": "89.0.4348.1", - "12.0.0-beta.18": "89.0.4348.1", - "12.0.0-beta.19": "89.0.4348.1", - "12.0.0-beta.20": "89.0.4348.1", - "12.0.0-beta.21": "89.0.4388.2", - "12.0.0-beta.22": "89.0.4388.2", - "12.0.0-beta.23": "89.0.4388.2", - "12.0.0-beta.24": "89.0.4388.2", - "12.0.0-beta.25": "89.0.4388.2", - "12.0.0-beta.26": "89.0.4388.2", - "12.0.0-beta.27": "89.0.4389.23", - "12.0.0-beta.28": "89.0.4389.23", - "12.0.0-beta.29": "89.0.4389.23", - "12.0.0-beta.30": "89.0.4389.58", - "12.0.0-beta.31": "89.0.4389.58", - "12.0.0": "89.0.4389.69", - "12.0.1": "89.0.4389.82", - "12.0.2": "89.0.4389.90", - "12.0.3": "89.0.4389.114", - "12.0.4": "89.0.4389.114", - "12.0.5": "89.0.4389.128", - "12.0.6": "89.0.4389.128", - "12.0.7": "89.0.4389.128", - "12.0.8": "89.0.4389.128", - "12.0.9": "89.0.4389.128", - "12.0.10": "89.0.4389.128", - "12.0.11": "89.0.4389.128", - "12.0.12": "89.0.4389.128", - "12.0.13": "89.0.4389.128", - "12.0.14": "89.0.4389.128", - "12.0.15": "89.0.4389.128", - "12.0.16": "89.0.4389.128", - "12.0.17": "89.0.4389.128", - "12.0.18": "89.0.4389.128", - "12.1.0": "89.0.4389.128", - "12.1.1": "89.0.4389.128", - "12.1.2": "89.0.4389.128", - "12.2.0": "89.0.4389.128", - "12.2.1": "89.0.4389.128", - "12.2.2": "89.0.4389.128", - "12.2.3": "89.0.4389.128", - "13.0.0-beta.2": "90.0.4402.0", - "13.0.0-beta.3": "90.0.4402.0", - "13.0.0-beta.4": "90.0.4415.0", - "13.0.0-beta.5": "90.0.4415.0", - "13.0.0-beta.6": "90.0.4415.0", - "13.0.0-beta.7": "90.0.4415.0", - "13.0.0-beta.8": "90.0.4415.0", - "13.0.0-beta.9": "90.0.4415.0", - "13.0.0-beta.10": "90.0.4415.0", - "13.0.0-beta.11": "90.0.4415.0", - "13.0.0-beta.12": "90.0.4415.0", - "13.0.0-beta.13": "90.0.4415.0", - "13.0.0-beta.14": "91.0.4448.0", - "13.0.0-beta.16": "91.0.4448.0", - "13.0.0-beta.17": "91.0.4448.0", - "13.0.0-beta.18": "91.0.4448.0", - "13.0.0-beta.20": "91.0.4448.0", - "13.0.0-beta.21": "91.0.4472.33", - "13.0.0-beta.22": "91.0.4472.33", - "13.0.0-beta.23": "91.0.4472.33", - "13.0.0-beta.24": "91.0.4472.38", - "13.0.0-beta.25": "91.0.4472.38", - "13.0.0-beta.26": "91.0.4472.38", - "13.0.0-beta.27": "91.0.4472.38", - "13.0.0-beta.28": "91.0.4472.38", - "13.0.0": "91.0.4472.69", - "13.0.1": "91.0.4472.69", - "13.1.0": "91.0.4472.77", - "13.1.1": "91.0.4472.77", - "13.1.2": "91.0.4472.77", - "13.1.3": "91.0.4472.106", - "13.1.4": "91.0.4472.106", - "13.1.5": "91.0.4472.124", - "13.1.6": "91.0.4472.124", - "13.1.7": "91.0.4472.124", - "13.1.8": "91.0.4472.164", - "13.1.9": "91.0.4472.164", - "13.2.0": "91.0.4472.164", - "13.2.1": "91.0.4472.164", - "13.2.2": "91.0.4472.164", - "13.2.3": "91.0.4472.164", - "13.3.0": "91.0.4472.164", - "13.4.0": "91.0.4472.164", - "13.5.0": "91.0.4472.164", - "13.5.1": "91.0.4472.164", - "13.5.2": "91.0.4472.164", - "13.6.0": "91.0.4472.164", - "13.6.1": "91.0.4472.164", - "13.6.2": "91.0.4472.164", - "13.6.3": "91.0.4472.164", - "13.6.6": "91.0.4472.164", - "13.6.7": "91.0.4472.164", - "13.6.8": "91.0.4472.164", - "13.6.9": "91.0.4472.164", - "14.0.0-beta.1": "92.0.4511.0", - "14.0.0-beta.2": "92.0.4511.0", - "14.0.0-beta.3": "92.0.4511.0", - "14.0.0-beta.5": "93.0.4536.0", - "14.0.0-beta.6": "93.0.4536.0", - "14.0.0-beta.7": "93.0.4536.0", - "14.0.0-beta.8": "93.0.4536.0", - "14.0.0-beta.9": "93.0.4539.0", - "14.0.0-beta.10": "93.0.4539.0", - "14.0.0-beta.11": "93.0.4557.4", - "14.0.0-beta.12": "93.0.4557.4", - "14.0.0-beta.13": "93.0.4566.0", - "14.0.0-beta.14": "93.0.4566.0", - "14.0.0-beta.15": "93.0.4566.0", - "14.0.0-beta.16": "93.0.4566.0", - "14.0.0-beta.17": "93.0.4566.0", - "14.0.0-beta.18": "93.0.4577.15", - "14.0.0-beta.19": "93.0.4577.15", - "14.0.0-beta.20": "93.0.4577.15", - "14.0.0-beta.21": "93.0.4577.15", - "14.0.0-beta.22": "93.0.4577.25", - "14.0.0-beta.23": "93.0.4577.25", - "14.0.0-beta.24": "93.0.4577.51", - "14.0.0-beta.25": "93.0.4577.51", - "14.0.0": "93.0.4577.58", - "14.0.1": "93.0.4577.63", - "14.0.2": "93.0.4577.82", - "14.1.0": "93.0.4577.82", - "14.1.1": "93.0.4577.82", - "14.2.0": "93.0.4577.82", - "14.2.1": "93.0.4577.82", - "14.2.2": "93.0.4577.82", - "14.2.3": "93.0.4577.82", - "14.2.4": "93.0.4577.82", - "14.2.5": "93.0.4577.82", - "14.2.6": "93.0.4577.82", - "14.2.7": "93.0.4577.82", - "14.2.8": "93.0.4577.82", - "14.2.9": "93.0.4577.82", - "15.0.0-alpha.1": "93.0.4566.0", - "15.0.0-alpha.2": "93.0.4566.0", - "15.0.0-alpha.3": "94.0.4584.0", - "15.0.0-alpha.4": "94.0.4584.0", - "15.0.0-alpha.5": "94.0.4584.0", - "15.0.0-alpha.6": "94.0.4584.0", - "15.0.0-alpha.7": "94.0.4590.2", - "15.0.0-alpha.8": "94.0.4590.2", - "15.0.0-alpha.9": "94.0.4590.2", - "15.0.0-alpha.10": "94.0.4606.12", - "15.0.0-beta.1": "94.0.4606.20", - "15.0.0-beta.2": "94.0.4606.20", - "15.0.0-beta.3": "94.0.4606.31", - "15.0.0-beta.4": "94.0.4606.31", - "15.0.0-beta.5": "94.0.4606.31", - "15.0.0-beta.6": "94.0.4606.31", - "15.0.0-beta.7": "94.0.4606.31", - "15.0.0": "94.0.4606.51", - "15.1.0": "94.0.4606.61", - "15.1.1": "94.0.4606.61", - "15.1.2": "94.0.4606.71", - "15.2.0": "94.0.4606.81", - "15.3.0": "94.0.4606.81", - "15.3.1": "94.0.4606.81", - "15.3.2": "94.0.4606.81", - "15.3.3": "94.0.4606.81", - "15.3.4": "94.0.4606.81", - "15.3.5": "94.0.4606.81", - "15.3.6": "94.0.4606.81", - "15.3.7": "94.0.4606.81", - "15.4.0": "94.0.4606.81", - "15.4.1": "94.0.4606.81", - "15.4.2": "94.0.4606.81", - "15.5.0": "94.0.4606.81", - "15.5.1": "94.0.4606.81", - "15.5.2": "94.0.4606.81", - "15.5.3": "94.0.4606.81", - "15.5.4": "94.0.4606.81", - "15.5.5": "94.0.4606.81", - "15.5.6": "94.0.4606.81", - "15.5.7": "94.0.4606.81", - "16.0.0-alpha.1": "95.0.4629.0", - "16.0.0-alpha.2": "95.0.4629.0", - "16.0.0-alpha.3": "95.0.4629.0", - "16.0.0-alpha.4": "95.0.4629.0", - "16.0.0-alpha.5": "95.0.4629.0", - "16.0.0-alpha.6": "95.0.4629.0", - "16.0.0-alpha.7": "95.0.4629.0", - "16.0.0-alpha.8": "96.0.4647.0", - "16.0.0-alpha.9": "96.0.4647.0", - "16.0.0-beta.1": "96.0.4647.0", - "16.0.0-beta.2": "96.0.4647.0", - "16.0.0-beta.3": "96.0.4647.0", - "16.0.0-beta.4": "96.0.4664.18", - "16.0.0-beta.5": "96.0.4664.18", - "16.0.0-beta.6": "96.0.4664.27", - "16.0.0-beta.7": "96.0.4664.27", - "16.0.0-beta.8": "96.0.4664.35", - "16.0.0-beta.9": "96.0.4664.35", - "16.0.0": "96.0.4664.45", - "16.0.1": "96.0.4664.45", - "16.0.2": "96.0.4664.55", - "16.0.3": "96.0.4664.55", - "16.0.4": "96.0.4664.55", - "16.0.5": "96.0.4664.55", - "16.0.6": "96.0.4664.110", - "16.0.7": "96.0.4664.110", - "16.0.8": "96.0.4664.110", - "16.0.9": "96.0.4664.174", - "16.0.10": "96.0.4664.174", - "16.1.0": "96.0.4664.174", - "16.1.1": "96.0.4664.174", - "16.2.0": "96.0.4664.174", - "16.2.1": "96.0.4664.174", - "16.2.2": "96.0.4664.174", - "16.2.3": "96.0.4664.174", - "16.2.4": "96.0.4664.174", - "16.2.5": "96.0.4664.174", - "16.2.6": "96.0.4664.174", - "16.2.7": "96.0.4664.174", - "16.2.8": "96.0.4664.174", - "17.0.0-alpha.1": "96.0.4664.4", - "17.0.0-alpha.2": "96.0.4664.4", - "17.0.0-alpha.3": "96.0.4664.4", - "17.0.0-alpha.4": "98.0.4706.0", - "17.0.0-alpha.5": "98.0.4706.0", - "17.0.0-alpha.6": "98.0.4706.0", - "17.0.0-beta.1": "98.0.4706.0", - "17.0.0-beta.2": "98.0.4706.0", - "17.0.0-beta.3": "98.0.4758.9", - "17.0.0-beta.4": "98.0.4758.11", - "17.0.0-beta.5": "98.0.4758.11", - "17.0.0-beta.6": "98.0.4758.11", - "17.0.0-beta.7": "98.0.4758.11", - "17.0.0-beta.8": "98.0.4758.11", - "17.0.0-beta.9": "98.0.4758.11", - "17.0.0": "98.0.4758.74", - "17.0.1": "98.0.4758.82", - "17.1.0": "98.0.4758.102", - "17.1.1": "98.0.4758.109", - "17.1.2": "98.0.4758.109", - "17.2.0": "98.0.4758.109", - "17.3.0": "98.0.4758.141", - "17.3.1": "98.0.4758.141", - "17.4.0": "98.0.4758.141", - "17.4.1": "98.0.4758.141", - "17.4.2": "98.0.4758.141", - "17.4.3": "98.0.4758.141", - "17.4.4": "98.0.4758.141", - "17.4.5": "98.0.4758.141", - "17.4.6": "98.0.4758.141", - "17.4.7": "98.0.4758.141", - "17.4.8": "98.0.4758.141", - "17.4.9": "98.0.4758.141", - "17.4.10": "98.0.4758.141", - "17.4.11": "98.0.4758.141", - "18.0.0-alpha.1": "99.0.4767.0", - "18.0.0-alpha.2": "99.0.4767.0", - "18.0.0-alpha.3": "99.0.4767.0", - "18.0.0-alpha.4": "99.0.4767.0", - "18.0.0-alpha.5": "99.0.4767.0", - "18.0.0-beta.1": "100.0.4894.0", - "18.0.0-beta.2": "100.0.4894.0", - "18.0.0-beta.3": "100.0.4894.0", - "18.0.0-beta.4": "100.0.4894.0", - "18.0.0-beta.5": "100.0.4894.0", - "18.0.0-beta.6": "100.0.4894.0", - "18.0.0": "100.0.4896.56", - "18.0.1": "100.0.4896.60", - "18.0.2": "100.0.4896.60", - "18.0.3": "100.0.4896.75", - "18.0.4": "100.0.4896.75", - "18.1.0": "100.0.4896.127", - "18.2.0": "100.0.4896.143", - "18.2.1": "100.0.4896.143", - "18.2.2": "100.0.4896.143", - "18.2.3": "100.0.4896.143", - "18.2.4": "100.0.4896.160", - "18.3.0": "100.0.4896.160", - "18.3.1": "100.0.4896.160", - "18.3.2": "100.0.4896.160", - "18.3.3": "100.0.4896.160", - "18.3.4": "100.0.4896.160", - "18.3.5": "100.0.4896.160", - "18.3.6": "100.0.4896.160", - "18.3.7": "100.0.4896.160", - "18.3.8": "100.0.4896.160", - "18.3.9": "100.0.4896.160", - "18.3.11": "100.0.4896.160", - "18.3.12": "100.0.4896.160", - "18.3.13": "100.0.4896.160", - "18.3.14": "100.0.4896.160", - "18.3.15": "100.0.4896.160", - "19.0.0-alpha.1": "102.0.4962.3", - "19.0.0-alpha.2": "102.0.4971.0", - "19.0.0-alpha.3": "102.0.4971.0", - "19.0.0-alpha.4": "102.0.4989.0", - "19.0.0-alpha.5": "102.0.4989.0", - "19.0.0-beta.1": "102.0.4999.0", - "19.0.0-beta.2": "102.0.4999.0", - "19.0.0-beta.3": "102.0.4999.0", - "19.0.0-beta.4": "102.0.5005.27", - "19.0.0-beta.5": "102.0.5005.40", - "19.0.0-beta.6": "102.0.5005.40", - "19.0.0-beta.7": "102.0.5005.40", - "19.0.0-beta.8": "102.0.5005.49", - "19.0.0": "102.0.5005.61", - "19.0.1": "102.0.5005.61", - "19.0.2": "102.0.5005.63", - "19.0.3": "102.0.5005.63", - "19.0.4": "102.0.5005.63", - "19.0.5": "102.0.5005.115", - "19.0.6": "102.0.5005.115", - "19.0.7": "102.0.5005.134", - "19.0.8": "102.0.5005.148", - "19.0.9": "102.0.5005.167", - "19.0.10": "102.0.5005.167", - "19.0.11": "102.0.5005.167", - "19.0.12": "102.0.5005.167", - "19.0.13": "102.0.5005.167", - "19.0.14": "102.0.5005.167", - "19.0.15": "102.0.5005.167", - "19.0.16": "102.0.5005.167", - "19.0.17": "102.0.5005.167", - "19.1.0": "102.0.5005.167", - "19.1.1": "102.0.5005.167", - "19.1.2": "102.0.5005.167", - "19.1.3": "102.0.5005.167", - "19.1.4": "102.0.5005.167", - "19.1.5": "102.0.5005.167", - "19.1.6": "102.0.5005.167", - "19.1.7": "102.0.5005.167", - "19.1.8": "102.0.5005.167", - "19.1.9": "102.0.5005.167", - "20.0.0-alpha.1": "103.0.5044.0", - "20.0.0-alpha.2": "104.0.5073.0", - "20.0.0-alpha.3": "104.0.5073.0", - "20.0.0-alpha.4": "104.0.5073.0", - "20.0.0-alpha.5": "104.0.5073.0", - "20.0.0-alpha.6": "104.0.5073.0", - "20.0.0-alpha.7": "104.0.5073.0", - "20.0.0-beta.1": "104.0.5073.0", - "20.0.0-beta.2": "104.0.5073.0", - "20.0.0-beta.3": "104.0.5073.0", - "20.0.0-beta.4": "104.0.5073.0", - "20.0.0-beta.5": "104.0.5073.0", - "20.0.0-beta.6": "104.0.5073.0", - "20.0.0-beta.7": "104.0.5073.0", - "20.0.0-beta.8": "104.0.5073.0", - "20.0.0-beta.9": "104.0.5112.39", - "20.0.0-beta.10": "104.0.5112.48", - "20.0.0-beta.11": "104.0.5112.48", - "20.0.0-beta.12": "104.0.5112.48", - "20.0.0-beta.13": "104.0.5112.57", - "20.0.0": "104.0.5112.65", - "20.0.1": "104.0.5112.81", - "20.0.2": "104.0.5112.81", - "20.0.3": "104.0.5112.81", - "20.1.0": "104.0.5112.102", - "20.1.1": "104.0.5112.102", - "20.1.2": "104.0.5112.114", - "20.1.3": "104.0.5112.114", - "20.1.4": "104.0.5112.114", - "20.2.0": "104.0.5112.124", - "20.3.0": "104.0.5112.124", - "20.3.1": "104.0.5112.124", - "20.3.2": "104.0.5112.124", - "20.3.3": "104.0.5112.124", - "20.3.4": "104.0.5112.124", - "20.3.5": "104.0.5112.124", - "20.3.6": "104.0.5112.124", - "20.3.7": "104.0.5112.124", - "20.3.8": "104.0.5112.124", - "20.3.9": "104.0.5112.124", - "20.3.10": "104.0.5112.124", - "20.3.11": "104.0.5112.124", - "20.3.12": "104.0.5112.124", - "21.0.0-alpha.1": "105.0.5187.0", - "21.0.0-alpha.2": "105.0.5187.0", - "21.0.0-alpha.3": "105.0.5187.0", - "21.0.0-alpha.4": "105.0.5187.0", - "21.0.0-alpha.5": "105.0.5187.0", - "21.0.0-alpha.6": "106.0.5216.0", - "21.0.0-beta.1": "106.0.5216.0", - "21.0.0-beta.2": "106.0.5216.0", - "21.0.0-beta.3": "106.0.5216.0", - "21.0.0-beta.4": "106.0.5216.0", - "21.0.0-beta.5": "106.0.5216.0", - "21.0.0-beta.6": "106.0.5249.40", - "21.0.0-beta.7": "106.0.5249.40", - "21.0.0-beta.8": "106.0.5249.40", - "21.0.0": "106.0.5249.51", - "21.0.1": "106.0.5249.61", - "21.1.0": "106.0.5249.91", - "21.1.1": "106.0.5249.103", - "21.2.0": "106.0.5249.119", - "21.2.1": "106.0.5249.165", - "21.2.2": "106.0.5249.168", - "21.2.3": "106.0.5249.168", - "21.3.0": "106.0.5249.181", - "21.3.1": "106.0.5249.181", - "21.3.3": "106.0.5249.199", - "21.3.4": "106.0.5249.199", - "21.3.5": "106.0.5249.199", - "21.4.0": "106.0.5249.199", - "21.4.1": "106.0.5249.199", - "21.4.2": "106.0.5249.199", - "21.4.3": "106.0.5249.199", - "21.4.4": "106.0.5249.199", - "22.0.0-alpha.1": "107.0.5286.0", - "22.0.0-alpha.3": "108.0.5329.0", - "22.0.0-alpha.4": "108.0.5329.0", - "22.0.0-alpha.5": "108.0.5329.0", - "22.0.0-alpha.6": "108.0.5329.0", - "22.0.0-alpha.7": "108.0.5355.0", - "22.0.0-alpha.8": "108.0.5359.10", - "22.0.0-beta.1": "108.0.5359.10", - "22.0.0-beta.2": "108.0.5359.10", - "22.0.0-beta.3": "108.0.5359.10", - "22.0.0-beta.4": "108.0.5359.29", - "22.0.0-beta.5": "108.0.5359.40", - "22.0.0-beta.6": "108.0.5359.40", - "22.0.0-beta.7": "108.0.5359.48", - "22.0.0-beta.8": "108.0.5359.48", - "22.0.0": "108.0.5359.62", - "22.0.1": "108.0.5359.125", - "22.0.2": "108.0.5359.179", - "22.0.3": "108.0.5359.179", - "22.1.0": "108.0.5359.179", - "22.2.0": "108.0.5359.215", - "22.2.1": "108.0.5359.215", - "22.3.0": "108.0.5359.215", - "22.3.1": "108.0.5359.215", - "22.3.2": "108.0.5359.215", - "22.3.3": "108.0.5359.215", - "22.3.4": "108.0.5359.215", - "22.3.5": "108.0.5359.215", - "22.3.6": "108.0.5359.215", - "22.3.7": "108.0.5359.215", - "22.3.8": "108.0.5359.215", - "22.3.9": "108.0.5359.215", - "22.3.10": "108.0.5359.215", - "22.3.11": "108.0.5359.215", - "22.3.12": "108.0.5359.215", - "22.3.13": "108.0.5359.215", - "22.3.14": "108.0.5359.215", - "22.3.15": "108.0.5359.215", - "22.3.16": "108.0.5359.215", - "22.3.17": "108.0.5359.215", - "22.3.18": "108.0.5359.215", - "22.3.20": "108.0.5359.215", - "22.3.21": "108.0.5359.215", - "22.3.22": "108.0.5359.215", - "22.3.23": "108.0.5359.215", - "22.3.24": "108.0.5359.215", - "22.3.25": "108.0.5359.215", - "22.3.26": "108.0.5359.215", - "22.3.27": "108.0.5359.215", - "23.0.0-alpha.1": "110.0.5415.0", - "23.0.0-alpha.2": "110.0.5451.0", - "23.0.0-alpha.3": "110.0.5451.0", - "23.0.0-beta.1": "110.0.5478.5", - "23.0.0-beta.2": "110.0.5478.5", - "23.0.0-beta.3": "110.0.5478.5", - "23.0.0-beta.4": "110.0.5481.30", - "23.0.0-beta.5": "110.0.5481.38", - "23.0.0-beta.6": "110.0.5481.52", - "23.0.0-beta.8": "110.0.5481.52", - "23.0.0": "110.0.5481.77", - "23.1.0": "110.0.5481.100", - "23.1.1": "110.0.5481.104", - "23.1.2": "110.0.5481.177", - "23.1.3": "110.0.5481.179", - "23.1.4": "110.0.5481.192", - "23.2.0": "110.0.5481.192", - "23.2.1": "110.0.5481.208", - "23.2.2": "110.0.5481.208", - "23.2.3": "110.0.5481.208", - "23.2.4": "110.0.5481.208", - "23.3.0": "110.0.5481.208", - "23.3.1": "110.0.5481.208", - "23.3.2": "110.0.5481.208", - "23.3.3": "110.0.5481.208", - "23.3.4": "110.0.5481.208", - "23.3.5": "110.0.5481.208", - "23.3.6": "110.0.5481.208", - "23.3.7": "110.0.5481.208", - "23.3.8": "110.0.5481.208", - "23.3.9": "110.0.5481.208", - "23.3.10": "110.0.5481.208", - "23.3.11": "110.0.5481.208", - "23.3.12": "110.0.5481.208", - "23.3.13": "110.0.5481.208", - "24.0.0-alpha.1": "111.0.5560.0", - "24.0.0-alpha.2": "111.0.5560.0", - "24.0.0-alpha.3": "111.0.5560.0", - "24.0.0-alpha.4": "111.0.5560.0", - "24.0.0-alpha.5": "111.0.5560.0", - "24.0.0-alpha.6": "111.0.5560.0", - "24.0.0-alpha.7": "111.0.5560.0", - "24.0.0-beta.1": "111.0.5563.50", - "24.0.0-beta.2": "111.0.5563.50", - "24.0.0-beta.3": "112.0.5615.20", - "24.0.0-beta.4": "112.0.5615.20", - "24.0.0-beta.5": "112.0.5615.29", - "24.0.0-beta.6": "112.0.5615.39", - "24.0.0-beta.7": "112.0.5615.39", - "24.0.0": "112.0.5615.49", - "24.1.0": "112.0.5615.50", - "24.1.1": "112.0.5615.50", - "24.1.2": "112.0.5615.87", - "24.1.3": "112.0.5615.165", - "24.2.0": "112.0.5615.165", - "24.3.0": "112.0.5615.165", - "24.3.1": "112.0.5615.183", - "24.4.0": "112.0.5615.204", - "24.4.1": "112.0.5615.204", - "24.5.0": "112.0.5615.204", - "24.5.1": "112.0.5615.204", - "24.6.0": "112.0.5615.204", - "24.6.1": "112.0.5615.204", - "24.6.2": "112.0.5615.204", - "24.6.3": "112.0.5615.204", - "24.6.4": "112.0.5615.204", - "24.6.5": "112.0.5615.204", - "24.7.0": "112.0.5615.204", - "24.7.1": "112.0.5615.204", - "24.8.0": "112.0.5615.204", - "24.8.1": "112.0.5615.204", - "24.8.2": "112.0.5615.204", - "24.8.3": "112.0.5615.204", - "24.8.4": "112.0.5615.204", - "24.8.5": "112.0.5615.204", - "24.8.6": "112.0.5615.204", - "24.8.7": "112.0.5615.204", - "24.8.8": "112.0.5615.204", - "25.0.0-alpha.1": "114.0.5694.0", - "25.0.0-alpha.2": "114.0.5694.0", - "25.0.0-alpha.3": "114.0.5710.0", - "25.0.0-alpha.4": "114.0.5710.0", - "25.0.0-alpha.5": "114.0.5719.0", - "25.0.0-alpha.6": "114.0.5719.0", - "25.0.0-beta.1": "114.0.5719.0", - "25.0.0-beta.2": "114.0.5719.0", - "25.0.0-beta.3": "114.0.5719.0", - "25.0.0-beta.4": "114.0.5735.16", - "25.0.0-beta.5": "114.0.5735.16", - "25.0.0-beta.6": "114.0.5735.16", - "25.0.0-beta.7": "114.0.5735.16", - "25.0.0-beta.8": "114.0.5735.35", - "25.0.0-beta.9": "114.0.5735.45", - "25.0.0": "114.0.5735.45", - "25.0.1": "114.0.5735.45", - "25.1.0": "114.0.5735.106", - "25.1.1": "114.0.5735.106", - "25.2.0": "114.0.5735.134", - "25.3.0": "114.0.5735.199", - "25.3.1": "114.0.5735.243", - "25.3.2": "114.0.5735.248", - "25.4.0": "114.0.5735.248", - "25.5.0": "114.0.5735.289", - "25.6.0": "114.0.5735.289", - "25.7.0": "114.0.5735.289", - "25.8.0": "114.0.5735.289", - "25.8.1": "114.0.5735.289", - "25.8.2": "114.0.5735.289", - "25.8.3": "114.0.5735.289", - "25.8.4": "114.0.5735.289", - "25.9.0": "114.0.5735.289", - "25.9.1": "114.0.5735.289", - "25.9.2": "114.0.5735.289", - "25.9.3": "114.0.5735.289", - "25.9.4": "114.0.5735.289", - "25.9.5": "114.0.5735.289", - "25.9.6": "114.0.5735.289", - "25.9.7": "114.0.5735.289", - "25.9.8": "114.0.5735.289", - "26.0.0-alpha.1": "116.0.5791.0", - "26.0.0-alpha.2": "116.0.5791.0", - "26.0.0-alpha.3": "116.0.5791.0", - "26.0.0-alpha.4": "116.0.5791.0", - "26.0.0-alpha.5": "116.0.5791.0", - "26.0.0-alpha.6": "116.0.5815.0", - "26.0.0-alpha.7": "116.0.5831.0", - "26.0.0-alpha.8": "116.0.5845.0", - "26.0.0-beta.1": "116.0.5845.0", - "26.0.0-beta.2": "116.0.5845.14", - "26.0.0-beta.3": "116.0.5845.14", - "26.0.0-beta.4": "116.0.5845.14", - "26.0.0-beta.5": "116.0.5845.14", - "26.0.0-beta.6": "116.0.5845.14", - "26.0.0-beta.7": "116.0.5845.14", - "26.0.0-beta.8": "116.0.5845.42", - "26.0.0-beta.9": "116.0.5845.42", - "26.0.0-beta.10": "116.0.5845.49", - "26.0.0-beta.11": "116.0.5845.49", - "26.0.0-beta.12": "116.0.5845.62", - "26.0.0": "116.0.5845.82", - "26.1.0": "116.0.5845.97", - "26.2.0": "116.0.5845.179", - "26.2.1": "116.0.5845.188", - "26.2.2": "116.0.5845.190", - "26.2.3": "116.0.5845.190", - "26.2.4": "116.0.5845.190", - "26.3.0": "116.0.5845.228", - "26.4.0": "116.0.5845.228", - "26.4.1": "116.0.5845.228", - "26.4.2": "116.0.5845.228", - "26.4.3": "116.0.5845.228", - "26.5.0": "116.0.5845.228", - "26.6.0": "116.0.5845.228", - "26.6.1": "116.0.5845.228", - "26.6.2": "116.0.5845.228", - "26.6.3": "116.0.5845.228", - "26.6.4": "116.0.5845.228", - "26.6.5": "116.0.5845.228", - "26.6.6": "116.0.5845.228", - "26.6.7": "116.0.5845.228", - "26.6.8": "116.0.5845.228", - "26.6.9": "116.0.5845.228", - "26.6.10": "116.0.5845.228", - "27.0.0-alpha.1": "118.0.5949.0", - "27.0.0-alpha.2": "118.0.5949.0", - "27.0.0-alpha.3": "118.0.5949.0", - "27.0.0-alpha.4": "118.0.5949.0", - "27.0.0-alpha.5": "118.0.5949.0", - "27.0.0-alpha.6": "118.0.5949.0", - "27.0.0-beta.1": "118.0.5993.5", - "27.0.0-beta.2": "118.0.5993.5", - "27.0.0-beta.3": "118.0.5993.5", - "27.0.0-beta.4": "118.0.5993.11", - "27.0.0-beta.5": "118.0.5993.18", - "27.0.0-beta.6": "118.0.5993.18", - "27.0.0-beta.7": "118.0.5993.18", - "27.0.0-beta.8": "118.0.5993.18", - "27.0.0-beta.9": "118.0.5993.18", - "27.0.0": "118.0.5993.54", - "27.0.1": "118.0.5993.89", - "27.0.2": "118.0.5993.89", - "27.0.3": "118.0.5993.120", - "27.0.4": "118.0.5993.129", - "27.1.0": "118.0.5993.144", - "27.1.2": "118.0.5993.144", - "27.1.3": "118.0.5993.159", - "27.2.0": "118.0.5993.159", - "27.2.1": "118.0.5993.159", - "27.2.2": "118.0.5993.159", - "27.2.3": "118.0.5993.159", - "27.2.4": "118.0.5993.159", - "27.3.0": "118.0.5993.159", - "27.3.1": "118.0.5993.159", - "27.3.2": "118.0.5993.159", - "27.3.3": "118.0.5993.159", - "27.3.4": "118.0.5993.159", - "27.3.5": "118.0.5993.159", - "27.3.6": "118.0.5993.159", - "27.3.7": "118.0.5993.159", - "27.3.8": "118.0.5993.159", - "27.3.9": "118.0.5993.159", - "27.3.10": "118.0.5993.159", - "27.3.11": "118.0.5993.159", - "28.0.0-alpha.1": "119.0.6045.0", - "28.0.0-alpha.2": "119.0.6045.0", - "28.0.0-alpha.3": "119.0.6045.21", - "28.0.0-alpha.4": "119.0.6045.21", - "28.0.0-alpha.5": "119.0.6045.33", - "28.0.0-alpha.6": "119.0.6045.33", - "28.0.0-alpha.7": "119.0.6045.33", - "28.0.0-beta.1": "119.0.6045.33", - "28.0.0-beta.2": "120.0.6099.0", - "28.0.0-beta.3": "120.0.6099.5", - "28.0.0-beta.4": "120.0.6099.5", - "28.0.0-beta.5": "120.0.6099.18", - "28.0.0-beta.6": "120.0.6099.18", - "28.0.0-beta.7": "120.0.6099.18", - "28.0.0-beta.8": "120.0.6099.18", - "28.0.0-beta.9": "120.0.6099.18", - "28.0.0-beta.10": "120.0.6099.18", - "28.0.0-beta.11": "120.0.6099.35", - "28.0.0": "120.0.6099.56", - "28.1.0": "120.0.6099.109", - "28.1.1": "120.0.6099.109", - "28.1.2": "120.0.6099.199", - "28.1.3": "120.0.6099.199", - "28.1.4": "120.0.6099.216", - "28.2.0": "120.0.6099.227", - "28.2.1": "120.0.6099.268", - "28.2.2": "120.0.6099.276", - "28.2.3": "120.0.6099.283", - "28.2.4": "120.0.6099.291", - "28.2.5": "120.0.6099.291", - "28.2.6": "120.0.6099.291", - "28.2.7": "120.0.6099.291", - "28.2.8": "120.0.6099.291", - "28.2.9": "120.0.6099.291", - "28.2.10": "120.0.6099.291", - "28.3.0": "120.0.6099.291", - "28.3.1": "120.0.6099.291", - "28.3.2": "120.0.6099.291", - "28.3.3": "120.0.6099.291", - "29.0.0-alpha.1": "121.0.6147.0", - "29.0.0-alpha.2": "121.0.6147.0", - "29.0.0-alpha.3": "121.0.6147.0", - "29.0.0-alpha.4": "121.0.6159.0", - "29.0.0-alpha.5": "121.0.6159.0", - "29.0.0-alpha.6": "121.0.6159.0", - "29.0.0-alpha.7": "121.0.6159.0", - "29.0.0-alpha.8": "122.0.6194.0", - "29.0.0-alpha.9": "122.0.6236.2", - "29.0.0-alpha.10": "122.0.6236.2", - "29.0.0-alpha.11": "122.0.6236.2", - "29.0.0-beta.1": "122.0.6236.2", - "29.0.0-beta.2": "122.0.6236.2", - "29.0.0-beta.3": "122.0.6261.6", - "29.0.0-beta.4": "122.0.6261.6", - "29.0.0-beta.5": "122.0.6261.18", - "29.0.0-beta.6": "122.0.6261.18", - "29.0.0-beta.7": "122.0.6261.18", - "29.0.0-beta.8": "122.0.6261.18", - "29.0.0-beta.9": "122.0.6261.18", - "29.0.0-beta.10": "122.0.6261.18", - "29.0.0-beta.11": "122.0.6261.18", - "29.0.0-beta.12": "122.0.6261.29", - "29.0.0": "122.0.6261.39", - "29.0.1": "122.0.6261.57", - "29.1.0": "122.0.6261.70", - "29.1.1": "122.0.6261.111", - "29.1.2": "122.0.6261.112", - "29.1.3": "122.0.6261.112", - "29.1.4": "122.0.6261.129", - "29.1.5": "122.0.6261.130", - "29.1.6": "122.0.6261.139", - "29.2.0": "122.0.6261.156", - "29.3.0": "122.0.6261.156", - "29.3.1": "122.0.6261.156", - "29.3.2": "122.0.6261.156", - "29.3.3": "122.0.6261.156", - "29.4.0": "122.0.6261.156", - "29.4.1": "122.0.6261.156", - "29.4.2": "122.0.6261.156", - "29.4.3": "122.0.6261.156", - "29.4.4": "122.0.6261.156", - "29.4.5": "122.0.6261.156", - "29.4.6": "122.0.6261.156", - "30.0.0-alpha.1": "123.0.6296.0", - "30.0.0-alpha.2": "123.0.6312.5", - "30.0.0-alpha.3": "124.0.6323.0", - "30.0.0-alpha.4": "124.0.6323.0", - "30.0.0-alpha.5": "124.0.6331.0", - "30.0.0-alpha.6": "124.0.6331.0", - "30.0.0-alpha.7": "124.0.6353.0", - "30.0.0-beta.1": "124.0.6359.0", - "30.0.0-beta.2": "124.0.6359.0", - "30.0.0-beta.3": "124.0.6367.9", - "30.0.0-beta.4": "124.0.6367.9", - "30.0.0-beta.5": "124.0.6367.9", - "30.0.0-beta.6": "124.0.6367.18", - "30.0.0-beta.7": "124.0.6367.29", - "30.0.0-beta.8": "124.0.6367.29", - "30.0.0": "124.0.6367.49", - "30.0.1": "124.0.6367.60", - "30.0.2": "124.0.6367.91", - "30.0.3": "124.0.6367.119", - "30.0.4": "124.0.6367.201", - "30.0.5": "124.0.6367.207", - "30.0.6": "124.0.6367.207", - "30.0.7": "124.0.6367.221", - "30.0.8": "124.0.6367.230", - "30.0.9": "124.0.6367.233", - "30.1.0": "124.0.6367.243", - "30.1.1": "124.0.6367.243", - "30.1.2": "124.0.6367.243", - "30.2.0": "124.0.6367.243", - "30.3.0": "124.0.6367.243", - "30.3.1": "124.0.6367.243", - "30.4.0": "124.0.6367.243", - "30.5.0": "124.0.6367.243", - "30.5.1": "124.0.6367.243", - "31.0.0-alpha.1": "125.0.6412.0", - "31.0.0-alpha.2": "125.0.6412.0", - "31.0.0-alpha.3": "125.0.6412.0", - "31.0.0-alpha.4": "125.0.6412.0", - "31.0.0-alpha.5": "125.0.6412.0", - "31.0.0-beta.1": "126.0.6445.0", - "31.0.0-beta.2": "126.0.6445.0", - "31.0.0-beta.3": "126.0.6445.0", - "31.0.0-beta.4": "126.0.6445.0", - "31.0.0-beta.5": "126.0.6445.0", - "31.0.0-beta.6": "126.0.6445.0", - "31.0.0-beta.7": "126.0.6445.0", - "31.0.0-beta.8": "126.0.6445.0", - "31.0.0-beta.9": "126.0.6445.0", - "31.0.0-beta.10": "126.0.6478.36", - "31.0.0": "126.0.6478.36", - "31.0.1": "126.0.6478.36", - "31.0.2": "126.0.6478.61", - "31.1.0": "126.0.6478.114", - "31.2.0": "126.0.6478.127", - "31.2.1": "126.0.6478.127", - "31.3.0": "126.0.6478.183", - "31.3.1": "126.0.6478.185", - "31.4.0": "126.0.6478.234", - "31.5.0": "126.0.6478.234", - "31.6.0": "126.0.6478.234", - "31.7.0": "126.0.6478.234", - "31.7.1": "126.0.6478.234", - "31.7.2": "126.0.6478.234", - "31.7.3": "126.0.6478.234", - "31.7.4": "126.0.6478.234", - "31.7.5": "126.0.6478.234", - "31.7.6": "126.0.6478.234", - "31.7.7": "126.0.6478.234", - "32.0.0-alpha.1": "127.0.6521.0", - "32.0.0-alpha.2": "127.0.6521.0", - "32.0.0-alpha.3": "127.0.6521.0", - "32.0.0-alpha.4": "127.0.6521.0", - "32.0.0-alpha.5": "127.0.6521.0", - "32.0.0-alpha.6": "128.0.6571.0", - "32.0.0-alpha.7": "128.0.6571.0", - "32.0.0-alpha.8": "128.0.6573.0", - "32.0.0-alpha.9": "128.0.6573.0", - "32.0.0-alpha.10": "128.0.6573.0", - "32.0.0-beta.1": "128.0.6573.0", - "32.0.0-beta.2": "128.0.6611.0", - "32.0.0-beta.3": "128.0.6613.7", - "32.0.0-beta.4": "128.0.6613.18", - "32.0.0-beta.5": "128.0.6613.27", - "32.0.0-beta.6": "128.0.6613.27", - "32.0.0-beta.7": "128.0.6613.27", - "32.0.0": "128.0.6613.36", - "32.0.1": "128.0.6613.36", - "32.0.2": "128.0.6613.84", - "32.1.0": "128.0.6613.120", - "32.1.1": "128.0.6613.137", - "32.1.2": "128.0.6613.162", - "32.2.0": "128.0.6613.178", - "32.2.1": "128.0.6613.186", - "32.2.2": "128.0.6613.186", - "32.2.3": "128.0.6613.186", - "32.2.4": "128.0.6613.186", - "32.2.5": "128.0.6613.186", - "32.2.6": "128.0.6613.186", - "32.2.7": "128.0.6613.186", - "32.2.8": "128.0.6613.186", - "32.3.0": "128.0.6613.186", - "32.3.1": "128.0.6613.186", - "32.3.2": "128.0.6613.186", - "32.3.3": "128.0.6613.186", - "33.0.0-alpha.1": "129.0.6668.0", - "33.0.0-alpha.2": "130.0.6672.0", - "33.0.0-alpha.3": "130.0.6672.0", - "33.0.0-alpha.4": "130.0.6672.0", - "33.0.0-alpha.5": "130.0.6672.0", - "33.0.0-alpha.6": "130.0.6672.0", - "33.0.0-beta.1": "130.0.6672.0", - "33.0.0-beta.2": "130.0.6672.0", - "33.0.0-beta.3": "130.0.6672.0", - "33.0.0-beta.4": "130.0.6672.0", - "33.0.0-beta.5": "130.0.6723.19", - "33.0.0-beta.6": "130.0.6723.19", - "33.0.0-beta.7": "130.0.6723.19", - "33.0.0-beta.8": "130.0.6723.31", - "33.0.0-beta.9": "130.0.6723.31", - "33.0.0-beta.10": "130.0.6723.31", - "33.0.0-beta.11": "130.0.6723.44", - "33.0.0": "130.0.6723.44", - "33.0.1": "130.0.6723.59", - "33.0.2": "130.0.6723.59", - "33.1.0": "130.0.6723.91", - "33.2.0": "130.0.6723.118", - "33.2.1": "130.0.6723.137", - "33.3.0": "130.0.6723.152", - "33.3.1": "130.0.6723.170", - "33.3.2": "130.0.6723.191", - "33.4.0": "130.0.6723.191", - "33.4.1": "130.0.6723.191", - "33.4.2": "130.0.6723.191", - "33.4.3": "130.0.6723.191", - "33.4.4": "130.0.6723.191", - "33.4.5": "130.0.6723.191", - "33.4.6": "130.0.6723.191", - "33.4.7": "130.0.6723.191", - "33.4.8": "130.0.6723.191", - "33.4.9": "130.0.6723.191", - "33.4.10": "130.0.6723.191", - "33.4.11": "130.0.6723.191", - "34.0.0-alpha.1": "131.0.6776.0", - "34.0.0-alpha.2": "132.0.6779.0", - "34.0.0-alpha.3": "132.0.6789.1", - "34.0.0-alpha.4": "132.0.6789.1", - "34.0.0-alpha.5": "132.0.6789.1", - "34.0.0-alpha.6": "132.0.6789.1", - "34.0.0-alpha.7": "132.0.6789.1", - "34.0.0-alpha.8": "132.0.6820.0", - "34.0.0-alpha.9": "132.0.6824.0", - "34.0.0-beta.1": "132.0.6824.0", - "34.0.0-beta.2": "132.0.6824.0", - "34.0.0-beta.3": "132.0.6824.0", - "34.0.0-beta.4": "132.0.6834.6", - "34.0.0-beta.5": "132.0.6834.6", - "34.0.0-beta.6": "132.0.6834.15", - "34.0.0-beta.7": "132.0.6834.15", - "34.0.0-beta.8": "132.0.6834.15", - "34.0.0-beta.9": "132.0.6834.32", - "34.0.0-beta.10": "132.0.6834.32", - "34.0.0-beta.11": "132.0.6834.32", - "34.0.0-beta.12": "132.0.6834.46", - "34.0.0-beta.13": "132.0.6834.46", - "34.0.0-beta.14": "132.0.6834.57", - "34.0.0-beta.15": "132.0.6834.57", - "34.0.0-beta.16": "132.0.6834.57", - "34.0.0": "132.0.6834.83", - "34.0.1": "132.0.6834.83", - "34.0.2": "132.0.6834.159", - "34.1.0": "132.0.6834.194", - "34.1.1": "132.0.6834.194", - "34.2.0": "132.0.6834.196", - "34.3.0": "132.0.6834.210", - "34.3.1": "132.0.6834.210", - "34.3.2": "132.0.6834.210", - "34.3.3": "132.0.6834.210", - "34.3.4": "132.0.6834.210", - "34.4.0": "132.0.6834.210", - "34.4.1": "132.0.6834.210", - "34.5.0": "132.0.6834.210", - "34.5.1": "132.0.6834.210", - "34.5.2": "132.0.6834.210", - "34.5.3": "132.0.6834.210", - "34.5.4": "132.0.6834.210", - "34.5.5": "132.0.6834.210", - "34.5.6": "132.0.6834.210", - "34.5.7": "132.0.6834.210", - "34.5.8": "132.0.6834.210", - "35.0.0-alpha.1": "133.0.6920.0", - "35.0.0-alpha.2": "133.0.6920.0", - "35.0.0-alpha.3": "133.0.6920.0", - "35.0.0-alpha.4": "133.0.6920.0", - "35.0.0-alpha.5": "133.0.6920.0", - "35.0.0-beta.1": "133.0.6920.0", - "35.0.0-beta.2": "134.0.6968.0", - "35.0.0-beta.3": "134.0.6968.0", - "35.0.0-beta.4": "134.0.6968.0", - "35.0.0-beta.5": "134.0.6989.0", - "35.0.0-beta.6": "134.0.6990.0", - "35.0.0-beta.7": "134.0.6990.0", - "35.0.0-beta.8": "134.0.6998.10", - "35.0.0-beta.9": "134.0.6998.10", - "35.0.0-beta.10": "134.0.6998.23", - "35.0.0-beta.11": "134.0.6998.23", - "35.0.0-beta.12": "134.0.6998.23", - "35.0.0-beta.13": "134.0.6998.44", - "35.0.0": "134.0.6998.44", - "35.0.1": "134.0.6998.44", - "35.0.2": "134.0.6998.88", - "35.0.3": "134.0.6998.88", - "35.1.0": "134.0.6998.165", - "35.1.1": "134.0.6998.165", - "35.1.2": "134.0.6998.178", - "35.1.3": "134.0.6998.179", - "35.1.4": "134.0.6998.179", - "35.1.5": "134.0.6998.179", - "35.2.0": "134.0.6998.205", - "35.2.1": "134.0.6998.205", - "35.2.2": "134.0.6998.205", - "35.3.0": "134.0.6998.205", - "35.4.0": "134.0.6998.205", - "35.5.0": "134.0.6998.205", - "35.5.1": "134.0.6998.205", - "35.6.0": "134.0.6998.205", - "35.7.0": "134.0.6998.205", - "35.7.1": "134.0.6998.205", - "35.7.2": "134.0.6998.205", - "35.7.4": "134.0.6998.205", - "35.7.5": "134.0.6998.205", - "36.0.0-alpha.1": "135.0.7049.5", - "36.0.0-alpha.2": "136.0.7062.0", - "36.0.0-alpha.3": "136.0.7062.0", - "36.0.0-alpha.4": "136.0.7062.0", - "36.0.0-alpha.5": "136.0.7067.0", - "36.0.0-alpha.6": "136.0.7067.0", - "36.0.0-beta.1": "136.0.7067.0", - "36.0.0-beta.2": "136.0.7067.0", - "36.0.0-beta.3": "136.0.7067.0", - "36.0.0-beta.4": "136.0.7067.0", - "36.0.0-beta.5": "136.0.7103.17", - "36.0.0-beta.6": "136.0.7103.25", - "36.0.0-beta.7": "136.0.7103.25", - "36.0.0-beta.8": "136.0.7103.33", - "36.0.0-beta.9": "136.0.7103.33", - "36.0.0": "136.0.7103.48", - "36.0.1": "136.0.7103.48", - "36.1.0": "136.0.7103.49", - "36.2.0": "136.0.7103.49", - "36.2.1": "136.0.7103.93", - "36.3.0": "136.0.7103.113", - "36.3.1": "136.0.7103.113", - "36.3.2": "136.0.7103.115", - "36.4.0": "136.0.7103.149", - "36.5.0": "136.0.7103.168", - "36.6.0": "136.0.7103.177", - "36.7.0": "136.0.7103.177", - "36.7.1": "136.0.7103.177", - "36.7.3": "136.0.7103.177", - "36.7.4": "136.0.7103.177", - "36.8.0": "136.0.7103.177", - "36.8.1": "136.0.7103.177", - "36.9.0": "136.0.7103.177", - "36.9.1": "136.0.7103.177", - "36.9.2": "136.0.7103.177", - "36.9.3": "136.0.7103.177", - "36.9.4": "136.0.7103.177", - "36.9.5": "136.0.7103.177", - "37.0.0-alpha.1": "137.0.7151.0", - "37.0.0-alpha.2": "137.0.7151.0", - "37.0.0-alpha.3": "138.0.7156.0", - "37.0.0-alpha.4": "138.0.7165.0", - "37.0.0-alpha.5": "138.0.7177.0", - "37.0.0-alpha.6": "138.0.7178.0", - "37.0.0-alpha.7": "138.0.7178.0", - "37.0.0-beta.1": "138.0.7178.0", - "37.0.0-beta.2": "138.0.7178.0", - "37.0.0-beta.3": "138.0.7190.0", - "37.0.0-beta.4": "138.0.7204.15", - "37.0.0-beta.5": "138.0.7204.15", - "37.0.0-beta.6": "138.0.7204.15", - "37.0.0-beta.7": "138.0.7204.15", - "37.0.0-beta.8": "138.0.7204.23", - "37.0.0-beta.9": "138.0.7204.35", - "37.0.0": "138.0.7204.35", - "37.1.0": "138.0.7204.35", - "37.2.0": "138.0.7204.97", - "37.2.1": "138.0.7204.97", - "37.2.2": "138.0.7204.100", - "37.2.3": "138.0.7204.100", - "37.2.4": "138.0.7204.157", - "37.2.5": "138.0.7204.168", - "37.2.6": "138.0.7204.185", - "37.3.0": "138.0.7204.224", - "37.3.1": "138.0.7204.235", - "37.4.0": "138.0.7204.243", - "37.5.0": "138.0.7204.251", - "37.5.1": "138.0.7204.251", - "37.6.0": "138.0.7204.251", - "37.6.1": "138.0.7204.251", - "37.7.0": "138.0.7204.251", - "37.7.1": "138.0.7204.251", - "37.8.0": "138.0.7204.251", - "37.9.0": "138.0.7204.251", - "37.10.0": "138.0.7204.251", - "37.10.1": "138.0.7204.251", - "37.10.2": "138.0.7204.251", - "38.0.0-alpha.1": "139.0.7219.0", - "38.0.0-alpha.2": "139.0.7219.0", - "38.0.0-alpha.3": "139.0.7219.0", - "38.0.0-alpha.4": "140.0.7261.0", - "38.0.0-alpha.5": "140.0.7261.0", - "38.0.0-alpha.6": "140.0.7261.0", - "38.0.0-alpha.7": "140.0.7281.0", - "38.0.0-alpha.8": "140.0.7281.0", - "38.0.0-alpha.9": "140.0.7301.0", - "38.0.0-alpha.10": "140.0.7309.0", - "38.0.0-alpha.11": "140.0.7312.0", - "38.0.0-alpha.12": "140.0.7314.0", - "38.0.0-alpha.13": "140.0.7314.0", - "38.0.0-beta.1": "140.0.7314.0", - "38.0.0-beta.2": "140.0.7327.0", - "38.0.0-beta.3": "140.0.7327.0", - "38.0.0-beta.4": "140.0.7339.2", - "38.0.0-beta.5": "140.0.7339.2", - "38.0.0-beta.6": "140.0.7339.2", - "38.0.0-beta.7": "140.0.7339.16", - "38.0.0-beta.8": "140.0.7339.24", - "38.0.0-beta.9": "140.0.7339.24", - "38.0.0-beta.11": "140.0.7339.41", - "38.0.0": "140.0.7339.41", - "38.1.0": "140.0.7339.80", - "38.1.1": "140.0.7339.133", - "38.1.2": "140.0.7339.133", - "38.2.0": "140.0.7339.133", - "38.2.1": "140.0.7339.133", - "38.2.2": "140.0.7339.133", - "38.3.0": "140.0.7339.240", - "38.4.0": "140.0.7339.240", - "38.5.0": "140.0.7339.249", - "38.6.0": "140.0.7339.249", - "38.7.0": "140.0.7339.249", - "38.7.1": "140.0.7339.249", - "39.0.0-alpha.1": "141.0.7361.0", - "39.0.0-alpha.2": "141.0.7361.0", - "39.0.0-alpha.3": "141.0.7390.7", - "39.0.0-alpha.4": "141.0.7390.7", - "39.0.0-alpha.5": "141.0.7390.7", - "39.0.0-alpha.6": "142.0.7417.0", - "39.0.0-alpha.7": "142.0.7417.0", - "39.0.0-alpha.8": "142.0.7417.0", - "39.0.0-alpha.9": "142.0.7417.0", - "39.0.0-beta.1": "142.0.7417.0", - "39.0.0-beta.2": "142.0.7417.0", - "39.0.0-beta.3": "142.0.7417.0", - "39.0.0-beta.4": "142.0.7444.34", - "39.0.0-beta.5": "142.0.7444.34", - "39.0.0": "142.0.7444.52", - "39.1.0": "142.0.7444.59", - "39.1.1": "142.0.7444.59", - "39.1.2": "142.0.7444.134", - "39.2.0": "142.0.7444.162", - "39.2.1": "142.0.7444.162", - "39.2.2": "142.0.7444.162", - "39.2.3": "142.0.7444.175", - "40.0.0-alpha.2": "143.0.7499.0", - "40.0.0-alpha.4": "144.0.7506.0", - "40.0.0-alpha.5": "144.0.7526.0", - "40.0.0-alpha.6": "144.0.7526.0" -}; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/electron-to-chromium/full-versions.json b/build_vtk_bundle/node_modules/electron-to-chromium/full-versions.json deleted file mode 100644 index 27c99eaa..00000000 --- a/build_vtk_bundle/node_modules/electron-to-chromium/full-versions.json +++ /dev/null @@ -1 +0,0 @@ -{"0.20.0":"39.0.2171.65","0.20.1":"39.0.2171.65","0.20.2":"39.0.2171.65","0.20.3":"39.0.2171.65","0.20.4":"39.0.2171.65","0.20.5":"39.0.2171.65","0.20.6":"39.0.2171.65","0.20.7":"39.0.2171.65","0.20.8":"39.0.2171.65","0.21.0":"40.0.2214.91","0.21.1":"40.0.2214.91","0.21.2":"40.0.2214.91","0.21.3":"41.0.2272.76","0.22.1":"41.0.2272.76","0.22.2":"41.0.2272.76","0.22.3":"41.0.2272.76","0.23.0":"41.0.2272.76","0.24.0":"41.0.2272.76","0.25.0":"42.0.2311.107","0.25.1":"42.0.2311.107","0.25.2":"42.0.2311.107","0.25.3":"42.0.2311.107","0.26.0":"42.0.2311.107","0.26.1":"42.0.2311.107","0.27.0":"42.0.2311.107","0.27.1":"42.0.2311.107","0.27.2":"43.0.2357.65","0.27.3":"43.0.2357.65","0.28.0":"43.0.2357.65","0.28.1":"43.0.2357.65","0.28.2":"43.0.2357.65","0.28.3":"43.0.2357.65","0.29.1":"43.0.2357.65","0.29.2":"43.0.2357.65","0.30.4":"44.0.2403.125","0.31.0":"44.0.2403.125","0.31.2":"45.0.2454.85","0.32.2":"45.0.2454.85","0.32.3":"45.0.2454.85","0.33.0":"45.0.2454.85","0.33.1":"45.0.2454.85","0.33.2":"45.0.2454.85","0.33.3":"45.0.2454.85","0.33.4":"45.0.2454.85","0.33.6":"45.0.2454.85","0.33.7":"45.0.2454.85","0.33.8":"45.0.2454.85","0.33.9":"45.0.2454.85","0.34.0":"45.0.2454.85","0.34.1":"45.0.2454.85","0.34.2":"45.0.2454.85","0.34.3":"45.0.2454.85","0.34.4":"45.0.2454.85","0.35.1":"45.0.2454.85","0.35.2":"45.0.2454.85","0.35.3":"45.0.2454.85","0.35.4":"45.0.2454.85","0.35.5":"45.0.2454.85","0.36.0":"47.0.2526.73","0.36.2":"47.0.2526.73","0.36.3":"47.0.2526.73","0.36.4":"47.0.2526.73","0.36.5":"47.0.2526.110","0.36.6":"47.0.2526.110","0.36.7":"47.0.2526.110","0.36.8":"47.0.2526.110","0.36.9":"47.0.2526.110","0.36.10":"47.0.2526.110","0.36.11":"47.0.2526.110","0.36.12":"47.0.2526.110","0.37.0":"49.0.2623.75","0.37.1":"49.0.2623.75","0.37.3":"49.0.2623.75","0.37.4":"49.0.2623.75","0.37.5":"49.0.2623.75","0.37.6":"49.0.2623.75","0.37.7":"49.0.2623.75","0.37.8":"49.0.2623.75","1.0.0":"49.0.2623.75","1.0.1":"49.0.2623.75","1.0.2":"49.0.2623.75","1.1.0":"50.0.2661.102","1.1.1":"50.0.2661.102","1.1.2":"50.0.2661.102","1.1.3":"50.0.2661.102","1.2.0":"51.0.2704.63","1.2.1":"51.0.2704.63","1.2.2":"51.0.2704.84","1.2.3":"51.0.2704.84","1.2.4":"51.0.2704.103","1.2.5":"51.0.2704.103","1.2.6":"51.0.2704.106","1.2.7":"51.0.2704.106","1.2.8":"51.0.2704.106","1.3.0":"52.0.2743.82","1.3.1":"52.0.2743.82","1.3.2":"52.0.2743.82","1.3.3":"52.0.2743.82","1.3.4":"52.0.2743.82","1.3.5":"52.0.2743.82","1.3.6":"52.0.2743.82","1.3.7":"52.0.2743.82","1.3.9":"52.0.2743.82","1.3.10":"52.0.2743.82","1.3.13":"52.0.2743.82","1.3.14":"52.0.2743.82","1.3.15":"52.0.2743.82","1.4.0":"53.0.2785.113","1.4.1":"53.0.2785.113","1.4.2":"53.0.2785.113","1.4.3":"53.0.2785.113","1.4.4":"53.0.2785.113","1.4.5":"53.0.2785.113","1.4.6":"53.0.2785.143","1.4.7":"53.0.2785.143","1.4.8":"53.0.2785.143","1.4.10":"53.0.2785.143","1.4.11":"53.0.2785.143","1.4.12":"54.0.2840.51","1.4.13":"53.0.2785.143","1.4.14":"53.0.2785.143","1.4.15":"53.0.2785.143","1.4.16":"53.0.2785.143","1.5.0":"54.0.2840.101","1.5.1":"54.0.2840.101","1.6.0":"56.0.2924.87","1.6.1":"56.0.2924.87","1.6.2":"56.0.2924.87","1.6.3":"56.0.2924.87","1.6.4":"56.0.2924.87","1.6.5":"56.0.2924.87","1.6.6":"56.0.2924.87","1.6.7":"56.0.2924.87","1.6.8":"56.0.2924.87","1.6.9":"56.0.2924.87","1.6.10":"56.0.2924.87","1.6.11":"56.0.2924.87","1.6.12":"56.0.2924.87","1.6.13":"56.0.2924.87","1.6.14":"56.0.2924.87","1.6.15":"56.0.2924.87","1.6.16":"56.0.2924.87","1.6.17":"56.0.2924.87","1.6.18":"56.0.2924.87","1.7.0":"58.0.3029.110","1.7.1":"58.0.3029.110","1.7.2":"58.0.3029.110","1.7.3":"58.0.3029.110","1.7.4":"58.0.3029.110","1.7.5":"58.0.3029.110","1.7.6":"58.0.3029.110","1.7.7":"58.0.3029.110","1.7.8":"58.0.3029.110","1.7.9":"58.0.3029.110","1.7.10":"58.0.3029.110","1.7.11":"58.0.3029.110","1.7.12":"58.0.3029.110","1.7.13":"58.0.3029.110","1.7.14":"58.0.3029.110","1.7.15":"58.0.3029.110","1.7.16":"58.0.3029.110","1.8.0":"59.0.3071.115","1.8.1":"59.0.3071.115","1.8.2-beta.1":"59.0.3071.115","1.8.2-beta.2":"59.0.3071.115","1.8.2-beta.3":"59.0.3071.115","1.8.2-beta.4":"59.0.3071.115","1.8.2-beta.5":"59.0.3071.115","1.8.2":"59.0.3071.115","1.8.3":"59.0.3071.115","1.8.4":"59.0.3071.115","1.8.5":"59.0.3071.115","1.8.6":"59.0.3071.115","1.8.7":"59.0.3071.115","1.8.8":"59.0.3071.115","2.0.0-beta.1":"61.0.3163.100","2.0.0-beta.2":"61.0.3163.100","2.0.0-beta.3":"61.0.3163.100","2.0.0-beta.4":"61.0.3163.100","2.0.0-beta.5":"61.0.3163.100","2.0.0-beta.6":"61.0.3163.100","2.0.0-beta.7":"61.0.3163.100","2.0.0-beta.8":"61.0.3163.100","2.0.0":"61.0.3163.100","2.0.1":"61.0.3163.100","2.0.2":"61.0.3163.100","2.0.3":"61.0.3163.100","2.0.4":"61.0.3163.100","2.0.5":"61.0.3163.100","2.0.6":"61.0.3163.100","2.0.7":"61.0.3163.100","2.0.8":"61.0.3163.100","2.0.9":"61.0.3163.100","2.0.10":"61.0.3163.100","2.0.11":"61.0.3163.100","2.0.12":"61.0.3163.100","2.0.13":"61.0.3163.100","2.0.14":"61.0.3163.100","2.0.15":"61.0.3163.100","2.0.16":"61.0.3163.100","2.0.17":"61.0.3163.100","2.0.18":"61.0.3163.100","2.1.0-unsupported.20180809":"61.0.3163.100","3.0.0-beta.1":"66.0.3359.181","3.0.0-beta.2":"66.0.3359.181","3.0.0-beta.3":"66.0.3359.181","3.0.0-beta.4":"66.0.3359.181","3.0.0-beta.5":"66.0.3359.181","3.0.0-beta.6":"66.0.3359.181","3.0.0-beta.7":"66.0.3359.181","3.0.0-beta.8":"66.0.3359.181","3.0.0-beta.9":"66.0.3359.181","3.0.0-beta.10":"66.0.3359.181","3.0.0-beta.11":"66.0.3359.181","3.0.0-beta.12":"66.0.3359.181","3.0.0-beta.13":"66.0.3359.181","3.0.0":"66.0.3359.181","3.0.1":"66.0.3359.181","3.0.2":"66.0.3359.181","3.0.3":"66.0.3359.181","3.0.4":"66.0.3359.181","3.0.5":"66.0.3359.181","3.0.6":"66.0.3359.181","3.0.7":"66.0.3359.181","3.0.8":"66.0.3359.181","3.0.9":"66.0.3359.181","3.0.10":"66.0.3359.181","3.0.11":"66.0.3359.181","3.0.12":"66.0.3359.181","3.0.13":"66.0.3359.181","3.0.14":"66.0.3359.181","3.0.15":"66.0.3359.181","3.0.16":"66.0.3359.181","3.1.0-beta.1":"66.0.3359.181","3.1.0-beta.2":"66.0.3359.181","3.1.0-beta.3":"66.0.3359.181","3.1.0-beta.4":"66.0.3359.181","3.1.0-beta.5":"66.0.3359.181","3.1.0":"66.0.3359.181","3.1.1":"66.0.3359.181","3.1.2":"66.0.3359.181","3.1.3":"66.0.3359.181","3.1.4":"66.0.3359.181","3.1.5":"66.0.3359.181","3.1.6":"66.0.3359.181","3.1.7":"66.0.3359.181","3.1.8":"66.0.3359.181","3.1.9":"66.0.3359.181","3.1.10":"66.0.3359.181","3.1.11":"66.0.3359.181","3.1.12":"66.0.3359.181","3.1.13":"66.0.3359.181","4.0.0-beta.1":"69.0.3497.106","4.0.0-beta.2":"69.0.3497.106","4.0.0-beta.3":"69.0.3497.106","4.0.0-beta.4":"69.0.3497.106","4.0.0-beta.5":"69.0.3497.106","4.0.0-beta.6":"69.0.3497.106","4.0.0-beta.7":"69.0.3497.106","4.0.0-beta.8":"69.0.3497.106","4.0.0-beta.9":"69.0.3497.106","4.0.0-beta.10":"69.0.3497.106","4.0.0-beta.11":"69.0.3497.106","4.0.0":"69.0.3497.106","4.0.1":"69.0.3497.106","4.0.2":"69.0.3497.106","4.0.3":"69.0.3497.106","4.0.4":"69.0.3497.106","4.0.5":"69.0.3497.106","4.0.6":"69.0.3497.106","4.0.7":"69.0.3497.128","4.0.8":"69.0.3497.128","4.1.0":"69.0.3497.128","4.1.1":"69.0.3497.128","4.1.2":"69.0.3497.128","4.1.3":"69.0.3497.128","4.1.4":"69.0.3497.128","4.1.5":"69.0.3497.128","4.2.0":"69.0.3497.128","4.2.1":"69.0.3497.128","4.2.2":"69.0.3497.128","4.2.3":"69.0.3497.128","4.2.4":"69.0.3497.128","4.2.5":"69.0.3497.128","4.2.6":"69.0.3497.128","4.2.7":"69.0.3497.128","4.2.8":"69.0.3497.128","4.2.9":"69.0.3497.128","4.2.10":"69.0.3497.128","4.2.11":"69.0.3497.128","4.2.12":"69.0.3497.128","5.0.0-beta.1":"72.0.3626.52","5.0.0-beta.2":"72.0.3626.52","5.0.0-beta.3":"73.0.3683.27","5.0.0-beta.4":"73.0.3683.54","5.0.0-beta.5":"73.0.3683.61","5.0.0-beta.6":"73.0.3683.84","5.0.0-beta.7":"73.0.3683.94","5.0.0-beta.8":"73.0.3683.104","5.0.0-beta.9":"73.0.3683.117","5.0.0":"73.0.3683.119","5.0.1":"73.0.3683.121","5.0.2":"73.0.3683.121","5.0.3":"73.0.3683.121","5.0.4":"73.0.3683.121","5.0.5":"73.0.3683.121","5.0.6":"73.0.3683.121","5.0.7":"73.0.3683.121","5.0.8":"73.0.3683.121","5.0.9":"73.0.3683.121","5.0.10":"73.0.3683.121","5.0.11":"73.0.3683.121","5.0.12":"73.0.3683.121","5.0.13":"73.0.3683.121","6.0.0-beta.1":"76.0.3774.1","6.0.0-beta.2":"76.0.3783.1","6.0.0-beta.3":"76.0.3783.1","6.0.0-beta.4":"76.0.3783.1","6.0.0-beta.5":"76.0.3805.4","6.0.0-beta.6":"76.0.3809.3","6.0.0-beta.7":"76.0.3809.22","6.0.0-beta.8":"76.0.3809.26","6.0.0-beta.9":"76.0.3809.26","6.0.0-beta.10":"76.0.3809.37","6.0.0-beta.11":"76.0.3809.42","6.0.0-beta.12":"76.0.3809.54","6.0.0-beta.13":"76.0.3809.60","6.0.0-beta.14":"76.0.3809.68","6.0.0-beta.15":"76.0.3809.74","6.0.0":"76.0.3809.88","6.0.1":"76.0.3809.102","6.0.2":"76.0.3809.110","6.0.3":"76.0.3809.126","6.0.4":"76.0.3809.131","6.0.5":"76.0.3809.136","6.0.6":"76.0.3809.138","6.0.7":"76.0.3809.139","6.0.8":"76.0.3809.146","6.0.9":"76.0.3809.146","6.0.10":"76.0.3809.146","6.0.11":"76.0.3809.146","6.0.12":"76.0.3809.146","6.1.0":"76.0.3809.146","6.1.1":"76.0.3809.146","6.1.2":"76.0.3809.146","6.1.3":"76.0.3809.146","6.1.4":"76.0.3809.146","6.1.5":"76.0.3809.146","6.1.6":"76.0.3809.146","6.1.7":"76.0.3809.146","6.1.8":"76.0.3809.146","6.1.9":"76.0.3809.146","6.1.10":"76.0.3809.146","6.1.11":"76.0.3809.146","6.1.12":"76.0.3809.146","7.0.0-beta.1":"78.0.3866.0","7.0.0-beta.2":"78.0.3866.0","7.0.0-beta.3":"78.0.3866.0","7.0.0-beta.4":"78.0.3896.6","7.0.0-beta.5":"78.0.3905.1","7.0.0-beta.6":"78.0.3905.1","7.0.0-beta.7":"78.0.3905.1","7.0.0":"78.0.3905.1","7.0.1":"78.0.3904.92","7.1.0":"78.0.3904.94","7.1.1":"78.0.3904.99","7.1.2":"78.0.3904.113","7.1.3":"78.0.3904.126","7.1.4":"78.0.3904.130","7.1.5":"78.0.3904.130","7.1.6":"78.0.3904.130","7.1.7":"78.0.3904.130","7.1.8":"78.0.3904.130","7.1.9":"78.0.3904.130","7.1.10":"78.0.3904.130","7.1.11":"78.0.3904.130","7.1.12":"78.0.3904.130","7.1.13":"78.0.3904.130","7.1.14":"78.0.3904.130","7.2.0":"78.0.3904.130","7.2.1":"78.0.3904.130","7.2.2":"78.0.3904.130","7.2.3":"78.0.3904.130","7.2.4":"78.0.3904.130","7.3.0":"78.0.3904.130","7.3.1":"78.0.3904.130","7.3.2":"78.0.3904.130","7.3.3":"78.0.3904.130","8.0.0-beta.1":"79.0.3931.0","8.0.0-beta.2":"79.0.3931.0","8.0.0-beta.3":"80.0.3955.0","8.0.0-beta.4":"80.0.3955.0","8.0.0-beta.5":"80.0.3987.14","8.0.0-beta.6":"80.0.3987.51","8.0.0-beta.7":"80.0.3987.59","8.0.0-beta.8":"80.0.3987.75","8.0.0-beta.9":"80.0.3987.75","8.0.0":"80.0.3987.86","8.0.1":"80.0.3987.86","8.0.2":"80.0.3987.86","8.0.3":"80.0.3987.134","8.1.0":"80.0.3987.137","8.1.1":"80.0.3987.141","8.2.0":"80.0.3987.158","8.2.1":"80.0.3987.163","8.2.2":"80.0.3987.163","8.2.3":"80.0.3987.163","8.2.4":"80.0.3987.165","8.2.5":"80.0.3987.165","8.3.0":"80.0.3987.165","8.3.1":"80.0.3987.165","8.3.2":"80.0.3987.165","8.3.3":"80.0.3987.165","8.3.4":"80.0.3987.165","8.4.0":"80.0.3987.165","8.4.1":"80.0.3987.165","8.5.0":"80.0.3987.165","8.5.1":"80.0.3987.165","8.5.2":"80.0.3987.165","8.5.3":"80.0.3987.163","8.5.4":"80.0.3987.163","8.5.5":"80.0.3987.163","9.0.0-beta.1":"82.0.4048.0","9.0.0-beta.2":"82.0.4048.0","9.0.0-beta.3":"82.0.4048.0","9.0.0-beta.4":"82.0.4048.0","9.0.0-beta.5":"82.0.4048.0","9.0.0-beta.6":"82.0.4058.2","9.0.0-beta.7":"82.0.4058.2","9.0.0-beta.9":"82.0.4058.2","9.0.0-beta.10":"82.0.4085.10","9.0.0-beta.11":"82.0.4085.14","9.0.0-beta.12":"82.0.4085.14","9.0.0-beta.13":"82.0.4085.14","9.0.0-beta.14":"82.0.4085.27","9.0.0-beta.15":"83.0.4102.3","9.0.0-beta.16":"83.0.4102.3","9.0.0-beta.17":"83.0.4103.14","9.0.0-beta.18":"83.0.4103.16","9.0.0-beta.19":"83.0.4103.24","9.0.0-beta.20":"83.0.4103.26","9.0.0-beta.21":"83.0.4103.26","9.0.0-beta.22":"83.0.4103.34","9.0.0-beta.23":"83.0.4103.44","9.0.0-beta.24":"83.0.4103.45","9.0.0":"83.0.4103.64","9.0.1":"83.0.4103.94","9.0.2":"83.0.4103.94","9.0.3":"83.0.4103.100","9.0.4":"83.0.4103.104","9.0.5":"83.0.4103.119","9.1.0":"83.0.4103.122","9.1.1":"83.0.4103.122","9.1.2":"83.0.4103.122","9.2.0":"83.0.4103.122","9.2.1":"83.0.4103.122","9.3.0":"83.0.4103.122","9.3.1":"83.0.4103.122","9.3.2":"83.0.4103.122","9.3.3":"83.0.4103.122","9.3.4":"83.0.4103.122","9.3.5":"83.0.4103.122","9.4.0":"83.0.4103.122","9.4.1":"83.0.4103.122","9.4.2":"83.0.4103.122","9.4.3":"83.0.4103.122","9.4.4":"83.0.4103.122","10.0.0-beta.1":"84.0.4129.0","10.0.0-beta.2":"84.0.4129.0","10.0.0-beta.3":"85.0.4161.2","10.0.0-beta.4":"85.0.4161.2","10.0.0-beta.8":"85.0.4181.1","10.0.0-beta.9":"85.0.4181.1","10.0.0-beta.10":"85.0.4183.19","10.0.0-beta.11":"85.0.4183.20","10.0.0-beta.12":"85.0.4183.26","10.0.0-beta.13":"85.0.4183.39","10.0.0-beta.14":"85.0.4183.39","10.0.0-beta.15":"85.0.4183.39","10.0.0-beta.17":"85.0.4183.39","10.0.0-beta.19":"85.0.4183.39","10.0.0-beta.20":"85.0.4183.39","10.0.0-beta.21":"85.0.4183.39","10.0.0-beta.23":"85.0.4183.70","10.0.0-beta.24":"85.0.4183.78","10.0.0-beta.25":"85.0.4183.80","10.0.0":"85.0.4183.84","10.0.1":"85.0.4183.86","10.1.0":"85.0.4183.87","10.1.1":"85.0.4183.93","10.1.2":"85.0.4183.98","10.1.3":"85.0.4183.121","10.1.4":"85.0.4183.121","10.1.5":"85.0.4183.121","10.1.6":"85.0.4183.121","10.1.7":"85.0.4183.121","10.2.0":"85.0.4183.121","10.3.0":"85.0.4183.121","10.3.1":"85.0.4183.121","10.3.2":"85.0.4183.121","10.4.0":"85.0.4183.121","10.4.1":"85.0.4183.121","10.4.2":"85.0.4183.121","10.4.3":"85.0.4183.121","10.4.4":"85.0.4183.121","10.4.5":"85.0.4183.121","10.4.6":"85.0.4183.121","10.4.7":"85.0.4183.121","11.0.0-beta.1":"86.0.4234.0","11.0.0-beta.3":"86.0.4234.0","11.0.0-beta.4":"86.0.4234.0","11.0.0-beta.5":"86.0.4234.0","11.0.0-beta.6":"86.0.4234.0","11.0.0-beta.7":"86.0.4234.0","11.0.0-beta.8":"87.0.4251.1","11.0.0-beta.9":"87.0.4251.1","11.0.0-beta.11":"87.0.4251.1","11.0.0-beta.12":"87.0.4280.11","11.0.0-beta.13":"87.0.4280.11","11.0.0-beta.16":"87.0.4280.27","11.0.0-beta.17":"87.0.4280.27","11.0.0-beta.18":"87.0.4280.27","11.0.0-beta.19":"87.0.4280.27","11.0.0-beta.20":"87.0.4280.40","11.0.0-beta.22":"87.0.4280.47","11.0.0-beta.23":"87.0.4280.47","11.0.0":"87.0.4280.60","11.0.1":"87.0.4280.60","11.0.2":"87.0.4280.67","11.0.3":"87.0.4280.67","11.0.4":"87.0.4280.67","11.0.5":"87.0.4280.88","11.1.0":"87.0.4280.88","11.1.1":"87.0.4280.88","11.2.0":"87.0.4280.141","11.2.1":"87.0.4280.141","11.2.2":"87.0.4280.141","11.2.3":"87.0.4280.141","11.3.0":"87.0.4280.141","11.4.0":"87.0.4280.141","11.4.1":"87.0.4280.141","11.4.2":"87.0.4280.141","11.4.3":"87.0.4280.141","11.4.4":"87.0.4280.141","11.4.5":"87.0.4280.141","11.4.6":"87.0.4280.141","11.4.7":"87.0.4280.141","11.4.8":"87.0.4280.141","11.4.9":"87.0.4280.141","11.4.10":"87.0.4280.141","11.4.11":"87.0.4280.141","11.4.12":"87.0.4280.141","11.5.0":"87.0.4280.141","12.0.0-beta.1":"89.0.4328.0","12.0.0-beta.3":"89.0.4328.0","12.0.0-beta.4":"89.0.4328.0","12.0.0-beta.5":"89.0.4328.0","12.0.0-beta.6":"89.0.4328.0","12.0.0-beta.7":"89.0.4328.0","12.0.0-beta.8":"89.0.4328.0","12.0.0-beta.9":"89.0.4328.0","12.0.0-beta.10":"89.0.4328.0","12.0.0-beta.11":"89.0.4328.0","12.0.0-beta.12":"89.0.4328.0","12.0.0-beta.14":"89.0.4328.0","12.0.0-beta.16":"89.0.4348.1","12.0.0-beta.18":"89.0.4348.1","12.0.0-beta.19":"89.0.4348.1","12.0.0-beta.20":"89.0.4348.1","12.0.0-beta.21":"89.0.4388.2","12.0.0-beta.22":"89.0.4388.2","12.0.0-beta.23":"89.0.4388.2","12.0.0-beta.24":"89.0.4388.2","12.0.0-beta.25":"89.0.4388.2","12.0.0-beta.26":"89.0.4388.2","12.0.0-beta.27":"89.0.4389.23","12.0.0-beta.28":"89.0.4389.23","12.0.0-beta.29":"89.0.4389.23","12.0.0-beta.30":"89.0.4389.58","12.0.0-beta.31":"89.0.4389.58","12.0.0":"89.0.4389.69","12.0.1":"89.0.4389.82","12.0.2":"89.0.4389.90","12.0.3":"89.0.4389.114","12.0.4":"89.0.4389.114","12.0.5":"89.0.4389.128","12.0.6":"89.0.4389.128","12.0.7":"89.0.4389.128","12.0.8":"89.0.4389.128","12.0.9":"89.0.4389.128","12.0.10":"89.0.4389.128","12.0.11":"89.0.4389.128","12.0.12":"89.0.4389.128","12.0.13":"89.0.4389.128","12.0.14":"89.0.4389.128","12.0.15":"89.0.4389.128","12.0.16":"89.0.4389.128","12.0.17":"89.0.4389.128","12.0.18":"89.0.4389.128","12.1.0":"89.0.4389.128","12.1.1":"89.0.4389.128","12.1.2":"89.0.4389.128","12.2.0":"89.0.4389.128","12.2.1":"89.0.4389.128","12.2.2":"89.0.4389.128","12.2.3":"89.0.4389.128","13.0.0-beta.2":"90.0.4402.0","13.0.0-beta.3":"90.0.4402.0","13.0.0-beta.4":"90.0.4415.0","13.0.0-beta.5":"90.0.4415.0","13.0.0-beta.6":"90.0.4415.0","13.0.0-beta.7":"90.0.4415.0","13.0.0-beta.8":"90.0.4415.0","13.0.0-beta.9":"90.0.4415.0","13.0.0-beta.10":"90.0.4415.0","13.0.0-beta.11":"90.0.4415.0","13.0.0-beta.12":"90.0.4415.0","13.0.0-beta.13":"90.0.4415.0","13.0.0-beta.14":"91.0.4448.0","13.0.0-beta.16":"91.0.4448.0","13.0.0-beta.17":"91.0.4448.0","13.0.0-beta.18":"91.0.4448.0","13.0.0-beta.20":"91.0.4448.0","13.0.0-beta.21":"91.0.4472.33","13.0.0-beta.22":"91.0.4472.33","13.0.0-beta.23":"91.0.4472.33","13.0.0-beta.24":"91.0.4472.38","13.0.0-beta.25":"91.0.4472.38","13.0.0-beta.26":"91.0.4472.38","13.0.0-beta.27":"91.0.4472.38","13.0.0-beta.28":"91.0.4472.38","13.0.0":"91.0.4472.69","13.0.1":"91.0.4472.69","13.1.0":"91.0.4472.77","13.1.1":"91.0.4472.77","13.1.2":"91.0.4472.77","13.1.3":"91.0.4472.106","13.1.4":"91.0.4472.106","13.1.5":"91.0.4472.124","13.1.6":"91.0.4472.124","13.1.7":"91.0.4472.124","13.1.8":"91.0.4472.164","13.1.9":"91.0.4472.164","13.2.0":"91.0.4472.164","13.2.1":"91.0.4472.164","13.2.2":"91.0.4472.164","13.2.3":"91.0.4472.164","13.3.0":"91.0.4472.164","13.4.0":"91.0.4472.164","13.5.0":"91.0.4472.164","13.5.1":"91.0.4472.164","13.5.2":"91.0.4472.164","13.6.0":"91.0.4472.164","13.6.1":"91.0.4472.164","13.6.2":"91.0.4472.164","13.6.3":"91.0.4472.164","13.6.6":"91.0.4472.164","13.6.7":"91.0.4472.164","13.6.8":"91.0.4472.164","13.6.9":"91.0.4472.164","14.0.0-beta.1":"92.0.4511.0","14.0.0-beta.2":"92.0.4511.0","14.0.0-beta.3":"92.0.4511.0","14.0.0-beta.5":"93.0.4536.0","14.0.0-beta.6":"93.0.4536.0","14.0.0-beta.7":"93.0.4536.0","14.0.0-beta.8":"93.0.4536.0","14.0.0-beta.9":"93.0.4539.0","14.0.0-beta.10":"93.0.4539.0","14.0.0-beta.11":"93.0.4557.4","14.0.0-beta.12":"93.0.4557.4","14.0.0-beta.13":"93.0.4566.0","14.0.0-beta.14":"93.0.4566.0","14.0.0-beta.15":"93.0.4566.0","14.0.0-beta.16":"93.0.4566.0","14.0.0-beta.17":"93.0.4566.0","14.0.0-beta.18":"93.0.4577.15","14.0.0-beta.19":"93.0.4577.15","14.0.0-beta.20":"93.0.4577.15","14.0.0-beta.21":"93.0.4577.15","14.0.0-beta.22":"93.0.4577.25","14.0.0-beta.23":"93.0.4577.25","14.0.0-beta.24":"93.0.4577.51","14.0.0-beta.25":"93.0.4577.51","14.0.0":"93.0.4577.58","14.0.1":"93.0.4577.63","14.0.2":"93.0.4577.82","14.1.0":"93.0.4577.82","14.1.1":"93.0.4577.82","14.2.0":"93.0.4577.82","14.2.1":"93.0.4577.82","14.2.2":"93.0.4577.82","14.2.3":"93.0.4577.82","14.2.4":"93.0.4577.82","14.2.5":"93.0.4577.82","14.2.6":"93.0.4577.82","14.2.7":"93.0.4577.82","14.2.8":"93.0.4577.82","14.2.9":"93.0.4577.82","15.0.0-alpha.1":"93.0.4566.0","15.0.0-alpha.2":"93.0.4566.0","15.0.0-alpha.3":"94.0.4584.0","15.0.0-alpha.4":"94.0.4584.0","15.0.0-alpha.5":"94.0.4584.0","15.0.0-alpha.6":"94.0.4584.0","15.0.0-alpha.7":"94.0.4590.2","15.0.0-alpha.8":"94.0.4590.2","15.0.0-alpha.9":"94.0.4590.2","15.0.0-alpha.10":"94.0.4606.12","15.0.0-beta.1":"94.0.4606.20","15.0.0-beta.2":"94.0.4606.20","15.0.0-beta.3":"94.0.4606.31","15.0.0-beta.4":"94.0.4606.31","15.0.0-beta.5":"94.0.4606.31","15.0.0-beta.6":"94.0.4606.31","15.0.0-beta.7":"94.0.4606.31","15.0.0":"94.0.4606.51","15.1.0":"94.0.4606.61","15.1.1":"94.0.4606.61","15.1.2":"94.0.4606.71","15.2.0":"94.0.4606.81","15.3.0":"94.0.4606.81","15.3.1":"94.0.4606.81","15.3.2":"94.0.4606.81","15.3.3":"94.0.4606.81","15.3.4":"94.0.4606.81","15.3.5":"94.0.4606.81","15.3.6":"94.0.4606.81","15.3.7":"94.0.4606.81","15.4.0":"94.0.4606.81","15.4.1":"94.0.4606.81","15.4.2":"94.0.4606.81","15.5.0":"94.0.4606.81","15.5.1":"94.0.4606.81","15.5.2":"94.0.4606.81","15.5.3":"94.0.4606.81","15.5.4":"94.0.4606.81","15.5.5":"94.0.4606.81","15.5.6":"94.0.4606.81","15.5.7":"94.0.4606.81","16.0.0-alpha.1":"95.0.4629.0","16.0.0-alpha.2":"95.0.4629.0","16.0.0-alpha.3":"95.0.4629.0","16.0.0-alpha.4":"95.0.4629.0","16.0.0-alpha.5":"95.0.4629.0","16.0.0-alpha.6":"95.0.4629.0","16.0.0-alpha.7":"95.0.4629.0","16.0.0-alpha.8":"96.0.4647.0","16.0.0-alpha.9":"96.0.4647.0","16.0.0-beta.1":"96.0.4647.0","16.0.0-beta.2":"96.0.4647.0","16.0.0-beta.3":"96.0.4647.0","16.0.0-beta.4":"96.0.4664.18","16.0.0-beta.5":"96.0.4664.18","16.0.0-beta.6":"96.0.4664.27","16.0.0-beta.7":"96.0.4664.27","16.0.0-beta.8":"96.0.4664.35","16.0.0-beta.9":"96.0.4664.35","16.0.0":"96.0.4664.45","16.0.1":"96.0.4664.45","16.0.2":"96.0.4664.55","16.0.3":"96.0.4664.55","16.0.4":"96.0.4664.55","16.0.5":"96.0.4664.55","16.0.6":"96.0.4664.110","16.0.7":"96.0.4664.110","16.0.8":"96.0.4664.110","16.0.9":"96.0.4664.174","16.0.10":"96.0.4664.174","16.1.0":"96.0.4664.174","16.1.1":"96.0.4664.174","16.2.0":"96.0.4664.174","16.2.1":"96.0.4664.174","16.2.2":"96.0.4664.174","16.2.3":"96.0.4664.174","16.2.4":"96.0.4664.174","16.2.5":"96.0.4664.174","16.2.6":"96.0.4664.174","16.2.7":"96.0.4664.174","16.2.8":"96.0.4664.174","17.0.0-alpha.1":"96.0.4664.4","17.0.0-alpha.2":"96.0.4664.4","17.0.0-alpha.3":"96.0.4664.4","17.0.0-alpha.4":"98.0.4706.0","17.0.0-alpha.5":"98.0.4706.0","17.0.0-alpha.6":"98.0.4706.0","17.0.0-beta.1":"98.0.4706.0","17.0.0-beta.2":"98.0.4706.0","17.0.0-beta.3":"98.0.4758.9","17.0.0-beta.4":"98.0.4758.11","17.0.0-beta.5":"98.0.4758.11","17.0.0-beta.6":"98.0.4758.11","17.0.0-beta.7":"98.0.4758.11","17.0.0-beta.8":"98.0.4758.11","17.0.0-beta.9":"98.0.4758.11","17.0.0":"98.0.4758.74","17.0.1":"98.0.4758.82","17.1.0":"98.0.4758.102","17.1.1":"98.0.4758.109","17.1.2":"98.0.4758.109","17.2.0":"98.0.4758.109","17.3.0":"98.0.4758.141","17.3.1":"98.0.4758.141","17.4.0":"98.0.4758.141","17.4.1":"98.0.4758.141","17.4.2":"98.0.4758.141","17.4.3":"98.0.4758.141","17.4.4":"98.0.4758.141","17.4.5":"98.0.4758.141","17.4.6":"98.0.4758.141","17.4.7":"98.0.4758.141","17.4.8":"98.0.4758.141","17.4.9":"98.0.4758.141","17.4.10":"98.0.4758.141","17.4.11":"98.0.4758.141","18.0.0-alpha.1":"99.0.4767.0","18.0.0-alpha.2":"99.0.4767.0","18.0.0-alpha.3":"99.0.4767.0","18.0.0-alpha.4":"99.0.4767.0","18.0.0-alpha.5":"99.0.4767.0","18.0.0-beta.1":"100.0.4894.0","18.0.0-beta.2":"100.0.4894.0","18.0.0-beta.3":"100.0.4894.0","18.0.0-beta.4":"100.0.4894.0","18.0.0-beta.5":"100.0.4894.0","18.0.0-beta.6":"100.0.4894.0","18.0.0":"100.0.4896.56","18.0.1":"100.0.4896.60","18.0.2":"100.0.4896.60","18.0.3":"100.0.4896.75","18.0.4":"100.0.4896.75","18.1.0":"100.0.4896.127","18.2.0":"100.0.4896.143","18.2.1":"100.0.4896.143","18.2.2":"100.0.4896.143","18.2.3":"100.0.4896.143","18.2.4":"100.0.4896.160","18.3.0":"100.0.4896.160","18.3.1":"100.0.4896.160","18.3.2":"100.0.4896.160","18.3.3":"100.0.4896.160","18.3.4":"100.0.4896.160","18.3.5":"100.0.4896.160","18.3.6":"100.0.4896.160","18.3.7":"100.0.4896.160","18.3.8":"100.0.4896.160","18.3.9":"100.0.4896.160","18.3.11":"100.0.4896.160","18.3.12":"100.0.4896.160","18.3.13":"100.0.4896.160","18.3.14":"100.0.4896.160","18.3.15":"100.0.4896.160","19.0.0-alpha.1":"102.0.4962.3","19.0.0-alpha.2":"102.0.4971.0","19.0.0-alpha.3":"102.0.4971.0","19.0.0-alpha.4":"102.0.4989.0","19.0.0-alpha.5":"102.0.4989.0","19.0.0-beta.1":"102.0.4999.0","19.0.0-beta.2":"102.0.4999.0","19.0.0-beta.3":"102.0.4999.0","19.0.0-beta.4":"102.0.5005.27","19.0.0-beta.5":"102.0.5005.40","19.0.0-beta.6":"102.0.5005.40","19.0.0-beta.7":"102.0.5005.40","19.0.0-beta.8":"102.0.5005.49","19.0.0":"102.0.5005.61","19.0.1":"102.0.5005.61","19.0.2":"102.0.5005.63","19.0.3":"102.0.5005.63","19.0.4":"102.0.5005.63","19.0.5":"102.0.5005.115","19.0.6":"102.0.5005.115","19.0.7":"102.0.5005.134","19.0.8":"102.0.5005.148","19.0.9":"102.0.5005.167","19.0.10":"102.0.5005.167","19.0.11":"102.0.5005.167","19.0.12":"102.0.5005.167","19.0.13":"102.0.5005.167","19.0.14":"102.0.5005.167","19.0.15":"102.0.5005.167","19.0.16":"102.0.5005.167","19.0.17":"102.0.5005.167","19.1.0":"102.0.5005.167","19.1.1":"102.0.5005.167","19.1.2":"102.0.5005.167","19.1.3":"102.0.5005.167","19.1.4":"102.0.5005.167","19.1.5":"102.0.5005.167","19.1.6":"102.0.5005.167","19.1.7":"102.0.5005.167","19.1.8":"102.0.5005.167","19.1.9":"102.0.5005.167","20.0.0-alpha.1":"103.0.5044.0","20.0.0-alpha.2":"104.0.5073.0","20.0.0-alpha.3":"104.0.5073.0","20.0.0-alpha.4":"104.0.5073.0","20.0.0-alpha.5":"104.0.5073.0","20.0.0-alpha.6":"104.0.5073.0","20.0.0-alpha.7":"104.0.5073.0","20.0.0-beta.1":"104.0.5073.0","20.0.0-beta.2":"104.0.5073.0","20.0.0-beta.3":"104.0.5073.0","20.0.0-beta.4":"104.0.5073.0","20.0.0-beta.5":"104.0.5073.0","20.0.0-beta.6":"104.0.5073.0","20.0.0-beta.7":"104.0.5073.0","20.0.0-beta.8":"104.0.5073.0","20.0.0-beta.9":"104.0.5112.39","20.0.0-beta.10":"104.0.5112.48","20.0.0-beta.11":"104.0.5112.48","20.0.0-beta.12":"104.0.5112.48","20.0.0-beta.13":"104.0.5112.57","20.0.0":"104.0.5112.65","20.0.1":"104.0.5112.81","20.0.2":"104.0.5112.81","20.0.3":"104.0.5112.81","20.1.0":"104.0.5112.102","20.1.1":"104.0.5112.102","20.1.2":"104.0.5112.114","20.1.3":"104.0.5112.114","20.1.4":"104.0.5112.114","20.2.0":"104.0.5112.124","20.3.0":"104.0.5112.124","20.3.1":"104.0.5112.124","20.3.2":"104.0.5112.124","20.3.3":"104.0.5112.124","20.3.4":"104.0.5112.124","20.3.5":"104.0.5112.124","20.3.6":"104.0.5112.124","20.3.7":"104.0.5112.124","20.3.8":"104.0.5112.124","20.3.9":"104.0.5112.124","20.3.10":"104.0.5112.124","20.3.11":"104.0.5112.124","20.3.12":"104.0.5112.124","21.0.0-alpha.1":"105.0.5187.0","21.0.0-alpha.2":"105.0.5187.0","21.0.0-alpha.3":"105.0.5187.0","21.0.0-alpha.4":"105.0.5187.0","21.0.0-alpha.5":"105.0.5187.0","21.0.0-alpha.6":"106.0.5216.0","21.0.0-beta.1":"106.0.5216.0","21.0.0-beta.2":"106.0.5216.0","21.0.0-beta.3":"106.0.5216.0","21.0.0-beta.4":"106.0.5216.0","21.0.0-beta.5":"106.0.5216.0","21.0.0-beta.6":"106.0.5249.40","21.0.0-beta.7":"106.0.5249.40","21.0.0-beta.8":"106.0.5249.40","21.0.0":"106.0.5249.51","21.0.1":"106.0.5249.61","21.1.0":"106.0.5249.91","21.1.1":"106.0.5249.103","21.2.0":"106.0.5249.119","21.2.1":"106.0.5249.165","21.2.2":"106.0.5249.168","21.2.3":"106.0.5249.168","21.3.0":"106.0.5249.181","21.3.1":"106.0.5249.181","21.3.3":"106.0.5249.199","21.3.4":"106.0.5249.199","21.3.5":"106.0.5249.199","21.4.0":"106.0.5249.199","21.4.1":"106.0.5249.199","21.4.2":"106.0.5249.199","21.4.3":"106.0.5249.199","21.4.4":"106.0.5249.199","22.0.0-alpha.1":"107.0.5286.0","22.0.0-alpha.3":"108.0.5329.0","22.0.0-alpha.4":"108.0.5329.0","22.0.0-alpha.5":"108.0.5329.0","22.0.0-alpha.6":"108.0.5329.0","22.0.0-alpha.7":"108.0.5355.0","22.0.0-alpha.8":"108.0.5359.10","22.0.0-beta.1":"108.0.5359.10","22.0.0-beta.2":"108.0.5359.10","22.0.0-beta.3":"108.0.5359.10","22.0.0-beta.4":"108.0.5359.29","22.0.0-beta.5":"108.0.5359.40","22.0.0-beta.6":"108.0.5359.40","22.0.0-beta.7":"108.0.5359.48","22.0.0-beta.8":"108.0.5359.48","22.0.0":"108.0.5359.62","22.0.1":"108.0.5359.125","22.0.2":"108.0.5359.179","22.0.3":"108.0.5359.179","22.1.0":"108.0.5359.179","22.2.0":"108.0.5359.215","22.2.1":"108.0.5359.215","22.3.0":"108.0.5359.215","22.3.1":"108.0.5359.215","22.3.2":"108.0.5359.215","22.3.3":"108.0.5359.215","22.3.4":"108.0.5359.215","22.3.5":"108.0.5359.215","22.3.6":"108.0.5359.215","22.3.7":"108.0.5359.215","22.3.8":"108.0.5359.215","22.3.9":"108.0.5359.215","22.3.10":"108.0.5359.215","22.3.11":"108.0.5359.215","22.3.12":"108.0.5359.215","22.3.13":"108.0.5359.215","22.3.14":"108.0.5359.215","22.3.15":"108.0.5359.215","22.3.16":"108.0.5359.215","22.3.17":"108.0.5359.215","22.3.18":"108.0.5359.215","22.3.20":"108.0.5359.215","22.3.21":"108.0.5359.215","22.3.22":"108.0.5359.215","22.3.23":"108.0.5359.215","22.3.24":"108.0.5359.215","22.3.25":"108.0.5359.215","22.3.26":"108.0.5359.215","22.3.27":"108.0.5359.215","23.0.0-alpha.1":"110.0.5415.0","23.0.0-alpha.2":"110.0.5451.0","23.0.0-alpha.3":"110.0.5451.0","23.0.0-beta.1":"110.0.5478.5","23.0.0-beta.2":"110.0.5478.5","23.0.0-beta.3":"110.0.5478.5","23.0.0-beta.4":"110.0.5481.30","23.0.0-beta.5":"110.0.5481.38","23.0.0-beta.6":"110.0.5481.52","23.0.0-beta.8":"110.0.5481.52","23.0.0":"110.0.5481.77","23.1.0":"110.0.5481.100","23.1.1":"110.0.5481.104","23.1.2":"110.0.5481.177","23.1.3":"110.0.5481.179","23.1.4":"110.0.5481.192","23.2.0":"110.0.5481.192","23.2.1":"110.0.5481.208","23.2.2":"110.0.5481.208","23.2.3":"110.0.5481.208","23.2.4":"110.0.5481.208","23.3.0":"110.0.5481.208","23.3.1":"110.0.5481.208","23.3.2":"110.0.5481.208","23.3.3":"110.0.5481.208","23.3.4":"110.0.5481.208","23.3.5":"110.0.5481.208","23.3.6":"110.0.5481.208","23.3.7":"110.0.5481.208","23.3.8":"110.0.5481.208","23.3.9":"110.0.5481.208","23.3.10":"110.0.5481.208","23.3.11":"110.0.5481.208","23.3.12":"110.0.5481.208","23.3.13":"110.0.5481.208","24.0.0-alpha.1":"111.0.5560.0","24.0.0-alpha.2":"111.0.5560.0","24.0.0-alpha.3":"111.0.5560.0","24.0.0-alpha.4":"111.0.5560.0","24.0.0-alpha.5":"111.0.5560.0","24.0.0-alpha.6":"111.0.5560.0","24.0.0-alpha.7":"111.0.5560.0","24.0.0-beta.1":"111.0.5563.50","24.0.0-beta.2":"111.0.5563.50","24.0.0-beta.3":"112.0.5615.20","24.0.0-beta.4":"112.0.5615.20","24.0.0-beta.5":"112.0.5615.29","24.0.0-beta.6":"112.0.5615.39","24.0.0-beta.7":"112.0.5615.39","24.0.0":"112.0.5615.49","24.1.0":"112.0.5615.50","24.1.1":"112.0.5615.50","24.1.2":"112.0.5615.87","24.1.3":"112.0.5615.165","24.2.0":"112.0.5615.165","24.3.0":"112.0.5615.165","24.3.1":"112.0.5615.183","24.4.0":"112.0.5615.204","24.4.1":"112.0.5615.204","24.5.0":"112.0.5615.204","24.5.1":"112.0.5615.204","24.6.0":"112.0.5615.204","24.6.1":"112.0.5615.204","24.6.2":"112.0.5615.204","24.6.3":"112.0.5615.204","24.6.4":"112.0.5615.204","24.6.5":"112.0.5615.204","24.7.0":"112.0.5615.204","24.7.1":"112.0.5615.204","24.8.0":"112.0.5615.204","24.8.1":"112.0.5615.204","24.8.2":"112.0.5615.204","24.8.3":"112.0.5615.204","24.8.4":"112.0.5615.204","24.8.5":"112.0.5615.204","24.8.6":"112.0.5615.204","24.8.7":"112.0.5615.204","24.8.8":"112.0.5615.204","25.0.0-alpha.1":"114.0.5694.0","25.0.0-alpha.2":"114.0.5694.0","25.0.0-alpha.3":"114.0.5710.0","25.0.0-alpha.4":"114.0.5710.0","25.0.0-alpha.5":"114.0.5719.0","25.0.0-alpha.6":"114.0.5719.0","25.0.0-beta.1":"114.0.5719.0","25.0.0-beta.2":"114.0.5719.0","25.0.0-beta.3":"114.0.5719.0","25.0.0-beta.4":"114.0.5735.16","25.0.0-beta.5":"114.0.5735.16","25.0.0-beta.6":"114.0.5735.16","25.0.0-beta.7":"114.0.5735.16","25.0.0-beta.8":"114.0.5735.35","25.0.0-beta.9":"114.0.5735.45","25.0.0":"114.0.5735.45","25.0.1":"114.0.5735.45","25.1.0":"114.0.5735.106","25.1.1":"114.0.5735.106","25.2.0":"114.0.5735.134","25.3.0":"114.0.5735.199","25.3.1":"114.0.5735.243","25.3.2":"114.0.5735.248","25.4.0":"114.0.5735.248","25.5.0":"114.0.5735.289","25.6.0":"114.0.5735.289","25.7.0":"114.0.5735.289","25.8.0":"114.0.5735.289","25.8.1":"114.0.5735.289","25.8.2":"114.0.5735.289","25.8.3":"114.0.5735.289","25.8.4":"114.0.5735.289","25.9.0":"114.0.5735.289","25.9.1":"114.0.5735.289","25.9.2":"114.0.5735.289","25.9.3":"114.0.5735.289","25.9.4":"114.0.5735.289","25.9.5":"114.0.5735.289","25.9.6":"114.0.5735.289","25.9.7":"114.0.5735.289","25.9.8":"114.0.5735.289","26.0.0-alpha.1":"116.0.5791.0","26.0.0-alpha.2":"116.0.5791.0","26.0.0-alpha.3":"116.0.5791.0","26.0.0-alpha.4":"116.0.5791.0","26.0.0-alpha.5":"116.0.5791.0","26.0.0-alpha.6":"116.0.5815.0","26.0.0-alpha.7":"116.0.5831.0","26.0.0-alpha.8":"116.0.5845.0","26.0.0-beta.1":"116.0.5845.0","26.0.0-beta.2":"116.0.5845.14","26.0.0-beta.3":"116.0.5845.14","26.0.0-beta.4":"116.0.5845.14","26.0.0-beta.5":"116.0.5845.14","26.0.0-beta.6":"116.0.5845.14","26.0.0-beta.7":"116.0.5845.14","26.0.0-beta.8":"116.0.5845.42","26.0.0-beta.9":"116.0.5845.42","26.0.0-beta.10":"116.0.5845.49","26.0.0-beta.11":"116.0.5845.49","26.0.0-beta.12":"116.0.5845.62","26.0.0":"116.0.5845.82","26.1.0":"116.0.5845.97","26.2.0":"116.0.5845.179","26.2.1":"116.0.5845.188","26.2.2":"116.0.5845.190","26.2.3":"116.0.5845.190","26.2.4":"116.0.5845.190","26.3.0":"116.0.5845.228","26.4.0":"116.0.5845.228","26.4.1":"116.0.5845.228","26.4.2":"116.0.5845.228","26.4.3":"116.0.5845.228","26.5.0":"116.0.5845.228","26.6.0":"116.0.5845.228","26.6.1":"116.0.5845.228","26.6.2":"116.0.5845.228","26.6.3":"116.0.5845.228","26.6.4":"116.0.5845.228","26.6.5":"116.0.5845.228","26.6.6":"116.0.5845.228","26.6.7":"116.0.5845.228","26.6.8":"116.0.5845.228","26.6.9":"116.0.5845.228","26.6.10":"116.0.5845.228","27.0.0-alpha.1":"118.0.5949.0","27.0.0-alpha.2":"118.0.5949.0","27.0.0-alpha.3":"118.0.5949.0","27.0.0-alpha.4":"118.0.5949.0","27.0.0-alpha.5":"118.0.5949.0","27.0.0-alpha.6":"118.0.5949.0","27.0.0-beta.1":"118.0.5993.5","27.0.0-beta.2":"118.0.5993.5","27.0.0-beta.3":"118.0.5993.5","27.0.0-beta.4":"118.0.5993.11","27.0.0-beta.5":"118.0.5993.18","27.0.0-beta.6":"118.0.5993.18","27.0.0-beta.7":"118.0.5993.18","27.0.0-beta.8":"118.0.5993.18","27.0.0-beta.9":"118.0.5993.18","27.0.0":"118.0.5993.54","27.0.1":"118.0.5993.89","27.0.2":"118.0.5993.89","27.0.3":"118.0.5993.120","27.0.4":"118.0.5993.129","27.1.0":"118.0.5993.144","27.1.2":"118.0.5993.144","27.1.3":"118.0.5993.159","27.2.0":"118.0.5993.159","27.2.1":"118.0.5993.159","27.2.2":"118.0.5993.159","27.2.3":"118.0.5993.159","27.2.4":"118.0.5993.159","27.3.0":"118.0.5993.159","27.3.1":"118.0.5993.159","27.3.2":"118.0.5993.159","27.3.3":"118.0.5993.159","27.3.4":"118.0.5993.159","27.3.5":"118.0.5993.159","27.3.6":"118.0.5993.159","27.3.7":"118.0.5993.159","27.3.8":"118.0.5993.159","27.3.9":"118.0.5993.159","27.3.10":"118.0.5993.159","27.3.11":"118.0.5993.159","28.0.0-alpha.1":"119.0.6045.0","28.0.0-alpha.2":"119.0.6045.0","28.0.0-alpha.3":"119.0.6045.21","28.0.0-alpha.4":"119.0.6045.21","28.0.0-alpha.5":"119.0.6045.33","28.0.0-alpha.6":"119.0.6045.33","28.0.0-alpha.7":"119.0.6045.33","28.0.0-beta.1":"119.0.6045.33","28.0.0-beta.2":"120.0.6099.0","28.0.0-beta.3":"120.0.6099.5","28.0.0-beta.4":"120.0.6099.5","28.0.0-beta.5":"120.0.6099.18","28.0.0-beta.6":"120.0.6099.18","28.0.0-beta.7":"120.0.6099.18","28.0.0-beta.8":"120.0.6099.18","28.0.0-beta.9":"120.0.6099.18","28.0.0-beta.10":"120.0.6099.18","28.0.0-beta.11":"120.0.6099.35","28.0.0":"120.0.6099.56","28.1.0":"120.0.6099.109","28.1.1":"120.0.6099.109","28.1.2":"120.0.6099.199","28.1.3":"120.0.6099.199","28.1.4":"120.0.6099.216","28.2.0":"120.0.6099.227","28.2.1":"120.0.6099.268","28.2.2":"120.0.6099.276","28.2.3":"120.0.6099.283","28.2.4":"120.0.6099.291","28.2.5":"120.0.6099.291","28.2.6":"120.0.6099.291","28.2.7":"120.0.6099.291","28.2.8":"120.0.6099.291","28.2.9":"120.0.6099.291","28.2.10":"120.0.6099.291","28.3.0":"120.0.6099.291","28.3.1":"120.0.6099.291","28.3.2":"120.0.6099.291","28.3.3":"120.0.6099.291","29.0.0-alpha.1":"121.0.6147.0","29.0.0-alpha.2":"121.0.6147.0","29.0.0-alpha.3":"121.0.6147.0","29.0.0-alpha.4":"121.0.6159.0","29.0.0-alpha.5":"121.0.6159.0","29.0.0-alpha.6":"121.0.6159.0","29.0.0-alpha.7":"121.0.6159.0","29.0.0-alpha.8":"122.0.6194.0","29.0.0-alpha.9":"122.0.6236.2","29.0.0-alpha.10":"122.0.6236.2","29.0.0-alpha.11":"122.0.6236.2","29.0.0-beta.1":"122.0.6236.2","29.0.0-beta.2":"122.0.6236.2","29.0.0-beta.3":"122.0.6261.6","29.0.0-beta.4":"122.0.6261.6","29.0.0-beta.5":"122.0.6261.18","29.0.0-beta.6":"122.0.6261.18","29.0.0-beta.7":"122.0.6261.18","29.0.0-beta.8":"122.0.6261.18","29.0.0-beta.9":"122.0.6261.18","29.0.0-beta.10":"122.0.6261.18","29.0.0-beta.11":"122.0.6261.18","29.0.0-beta.12":"122.0.6261.29","29.0.0":"122.0.6261.39","29.0.1":"122.0.6261.57","29.1.0":"122.0.6261.70","29.1.1":"122.0.6261.111","29.1.2":"122.0.6261.112","29.1.3":"122.0.6261.112","29.1.4":"122.0.6261.129","29.1.5":"122.0.6261.130","29.1.6":"122.0.6261.139","29.2.0":"122.0.6261.156","29.3.0":"122.0.6261.156","29.3.1":"122.0.6261.156","29.3.2":"122.0.6261.156","29.3.3":"122.0.6261.156","29.4.0":"122.0.6261.156","29.4.1":"122.0.6261.156","29.4.2":"122.0.6261.156","29.4.3":"122.0.6261.156","29.4.4":"122.0.6261.156","29.4.5":"122.0.6261.156","29.4.6":"122.0.6261.156","30.0.0-alpha.1":"123.0.6296.0","30.0.0-alpha.2":"123.0.6312.5","30.0.0-alpha.3":"124.0.6323.0","30.0.0-alpha.4":"124.0.6323.0","30.0.0-alpha.5":"124.0.6331.0","30.0.0-alpha.6":"124.0.6331.0","30.0.0-alpha.7":"124.0.6353.0","30.0.0-beta.1":"124.0.6359.0","30.0.0-beta.2":"124.0.6359.0","30.0.0-beta.3":"124.0.6367.9","30.0.0-beta.4":"124.0.6367.9","30.0.0-beta.5":"124.0.6367.9","30.0.0-beta.6":"124.0.6367.18","30.0.0-beta.7":"124.0.6367.29","30.0.0-beta.8":"124.0.6367.29","30.0.0":"124.0.6367.49","30.0.1":"124.0.6367.60","30.0.2":"124.0.6367.91","30.0.3":"124.0.6367.119","30.0.4":"124.0.6367.201","30.0.5":"124.0.6367.207","30.0.6":"124.0.6367.207","30.0.7":"124.0.6367.221","30.0.8":"124.0.6367.230","30.0.9":"124.0.6367.233","30.1.0":"124.0.6367.243","30.1.1":"124.0.6367.243","30.1.2":"124.0.6367.243","30.2.0":"124.0.6367.243","30.3.0":"124.0.6367.243","30.3.1":"124.0.6367.243","30.4.0":"124.0.6367.243","30.5.0":"124.0.6367.243","30.5.1":"124.0.6367.243","31.0.0-alpha.1":"125.0.6412.0","31.0.0-alpha.2":"125.0.6412.0","31.0.0-alpha.3":"125.0.6412.0","31.0.0-alpha.4":"125.0.6412.0","31.0.0-alpha.5":"125.0.6412.0","31.0.0-beta.1":"126.0.6445.0","31.0.0-beta.2":"126.0.6445.0","31.0.0-beta.3":"126.0.6445.0","31.0.0-beta.4":"126.0.6445.0","31.0.0-beta.5":"126.0.6445.0","31.0.0-beta.6":"126.0.6445.0","31.0.0-beta.7":"126.0.6445.0","31.0.0-beta.8":"126.0.6445.0","31.0.0-beta.9":"126.0.6445.0","31.0.0-beta.10":"126.0.6478.36","31.0.0":"126.0.6478.36","31.0.1":"126.0.6478.36","31.0.2":"126.0.6478.61","31.1.0":"126.0.6478.114","31.2.0":"126.0.6478.127","31.2.1":"126.0.6478.127","31.3.0":"126.0.6478.183","31.3.1":"126.0.6478.185","31.4.0":"126.0.6478.234","31.5.0":"126.0.6478.234","31.6.0":"126.0.6478.234","31.7.0":"126.0.6478.234","31.7.1":"126.0.6478.234","31.7.2":"126.0.6478.234","31.7.3":"126.0.6478.234","31.7.4":"126.0.6478.234","31.7.5":"126.0.6478.234","31.7.6":"126.0.6478.234","31.7.7":"126.0.6478.234","32.0.0-alpha.1":"127.0.6521.0","32.0.0-alpha.2":"127.0.6521.0","32.0.0-alpha.3":"127.0.6521.0","32.0.0-alpha.4":"127.0.6521.0","32.0.0-alpha.5":"127.0.6521.0","32.0.0-alpha.6":"128.0.6571.0","32.0.0-alpha.7":"128.0.6571.0","32.0.0-alpha.8":"128.0.6573.0","32.0.0-alpha.9":"128.0.6573.0","32.0.0-alpha.10":"128.0.6573.0","32.0.0-beta.1":"128.0.6573.0","32.0.0-beta.2":"128.0.6611.0","32.0.0-beta.3":"128.0.6613.7","32.0.0-beta.4":"128.0.6613.18","32.0.0-beta.5":"128.0.6613.27","32.0.0-beta.6":"128.0.6613.27","32.0.0-beta.7":"128.0.6613.27","32.0.0":"128.0.6613.36","32.0.1":"128.0.6613.36","32.0.2":"128.0.6613.84","32.1.0":"128.0.6613.120","32.1.1":"128.0.6613.137","32.1.2":"128.0.6613.162","32.2.0":"128.0.6613.178","32.2.1":"128.0.6613.186","32.2.2":"128.0.6613.186","32.2.3":"128.0.6613.186","32.2.4":"128.0.6613.186","32.2.5":"128.0.6613.186","32.2.6":"128.0.6613.186","32.2.7":"128.0.6613.186","32.2.8":"128.0.6613.186","32.3.0":"128.0.6613.186","32.3.1":"128.0.6613.186","32.3.2":"128.0.6613.186","32.3.3":"128.0.6613.186","33.0.0-alpha.1":"129.0.6668.0","33.0.0-alpha.2":"130.0.6672.0","33.0.0-alpha.3":"130.0.6672.0","33.0.0-alpha.4":"130.0.6672.0","33.0.0-alpha.5":"130.0.6672.0","33.0.0-alpha.6":"130.0.6672.0","33.0.0-beta.1":"130.0.6672.0","33.0.0-beta.2":"130.0.6672.0","33.0.0-beta.3":"130.0.6672.0","33.0.0-beta.4":"130.0.6672.0","33.0.0-beta.5":"130.0.6723.19","33.0.0-beta.6":"130.0.6723.19","33.0.0-beta.7":"130.0.6723.19","33.0.0-beta.8":"130.0.6723.31","33.0.0-beta.9":"130.0.6723.31","33.0.0-beta.10":"130.0.6723.31","33.0.0-beta.11":"130.0.6723.44","33.0.0":"130.0.6723.44","33.0.1":"130.0.6723.59","33.0.2":"130.0.6723.59","33.1.0":"130.0.6723.91","33.2.0":"130.0.6723.118","33.2.1":"130.0.6723.137","33.3.0":"130.0.6723.152","33.3.1":"130.0.6723.170","33.3.2":"130.0.6723.191","33.4.0":"130.0.6723.191","33.4.1":"130.0.6723.191","33.4.2":"130.0.6723.191","33.4.3":"130.0.6723.191","33.4.4":"130.0.6723.191","33.4.5":"130.0.6723.191","33.4.6":"130.0.6723.191","33.4.7":"130.0.6723.191","33.4.8":"130.0.6723.191","33.4.9":"130.0.6723.191","33.4.10":"130.0.6723.191","33.4.11":"130.0.6723.191","34.0.0-alpha.1":"131.0.6776.0","34.0.0-alpha.2":"132.0.6779.0","34.0.0-alpha.3":"132.0.6789.1","34.0.0-alpha.4":"132.0.6789.1","34.0.0-alpha.5":"132.0.6789.1","34.0.0-alpha.6":"132.0.6789.1","34.0.0-alpha.7":"132.0.6789.1","34.0.0-alpha.8":"132.0.6820.0","34.0.0-alpha.9":"132.0.6824.0","34.0.0-beta.1":"132.0.6824.0","34.0.0-beta.2":"132.0.6824.0","34.0.0-beta.3":"132.0.6824.0","34.0.0-beta.4":"132.0.6834.6","34.0.0-beta.5":"132.0.6834.6","34.0.0-beta.6":"132.0.6834.15","34.0.0-beta.7":"132.0.6834.15","34.0.0-beta.8":"132.0.6834.15","34.0.0-beta.9":"132.0.6834.32","34.0.0-beta.10":"132.0.6834.32","34.0.0-beta.11":"132.0.6834.32","34.0.0-beta.12":"132.0.6834.46","34.0.0-beta.13":"132.0.6834.46","34.0.0-beta.14":"132.0.6834.57","34.0.0-beta.15":"132.0.6834.57","34.0.0-beta.16":"132.0.6834.57","34.0.0":"132.0.6834.83","34.0.1":"132.0.6834.83","34.0.2":"132.0.6834.159","34.1.0":"132.0.6834.194","34.1.1":"132.0.6834.194","34.2.0":"132.0.6834.196","34.3.0":"132.0.6834.210","34.3.1":"132.0.6834.210","34.3.2":"132.0.6834.210","34.3.3":"132.0.6834.210","34.3.4":"132.0.6834.210","34.4.0":"132.0.6834.210","34.4.1":"132.0.6834.210","34.5.0":"132.0.6834.210","34.5.1":"132.0.6834.210","34.5.2":"132.0.6834.210","34.5.3":"132.0.6834.210","34.5.4":"132.0.6834.210","34.5.5":"132.0.6834.210","34.5.6":"132.0.6834.210","34.5.7":"132.0.6834.210","34.5.8":"132.0.6834.210","35.0.0-alpha.1":"133.0.6920.0","35.0.0-alpha.2":"133.0.6920.0","35.0.0-alpha.3":"133.0.6920.0","35.0.0-alpha.4":"133.0.6920.0","35.0.0-alpha.5":"133.0.6920.0","35.0.0-beta.1":"133.0.6920.0","35.0.0-beta.2":"134.0.6968.0","35.0.0-beta.3":"134.0.6968.0","35.0.0-beta.4":"134.0.6968.0","35.0.0-beta.5":"134.0.6989.0","35.0.0-beta.6":"134.0.6990.0","35.0.0-beta.7":"134.0.6990.0","35.0.0-beta.8":"134.0.6998.10","35.0.0-beta.9":"134.0.6998.10","35.0.0-beta.10":"134.0.6998.23","35.0.0-beta.11":"134.0.6998.23","35.0.0-beta.12":"134.0.6998.23","35.0.0-beta.13":"134.0.6998.44","35.0.0":"134.0.6998.44","35.0.1":"134.0.6998.44","35.0.2":"134.0.6998.88","35.0.3":"134.0.6998.88","35.1.0":"134.0.6998.165","35.1.1":"134.0.6998.165","35.1.2":"134.0.6998.178","35.1.3":"134.0.6998.179","35.1.4":"134.0.6998.179","35.1.5":"134.0.6998.179","35.2.0":"134.0.6998.205","35.2.1":"134.0.6998.205","35.2.2":"134.0.6998.205","35.3.0":"134.0.6998.205","35.4.0":"134.0.6998.205","35.5.0":"134.0.6998.205","35.5.1":"134.0.6998.205","35.6.0":"134.0.6998.205","35.7.0":"134.0.6998.205","35.7.1":"134.0.6998.205","35.7.2":"134.0.6998.205","35.7.4":"134.0.6998.205","35.7.5":"134.0.6998.205","36.0.0-alpha.1":"135.0.7049.5","36.0.0-alpha.2":"136.0.7062.0","36.0.0-alpha.3":"136.0.7062.0","36.0.0-alpha.4":"136.0.7062.0","36.0.0-alpha.5":"136.0.7067.0","36.0.0-alpha.6":"136.0.7067.0","36.0.0-beta.1":"136.0.7067.0","36.0.0-beta.2":"136.0.7067.0","36.0.0-beta.3":"136.0.7067.0","36.0.0-beta.4":"136.0.7067.0","36.0.0-beta.5":"136.0.7103.17","36.0.0-beta.6":"136.0.7103.25","36.0.0-beta.7":"136.0.7103.25","36.0.0-beta.8":"136.0.7103.33","36.0.0-beta.9":"136.0.7103.33","36.0.0":"136.0.7103.48","36.0.1":"136.0.7103.48","36.1.0":"136.0.7103.49","36.2.0":"136.0.7103.49","36.2.1":"136.0.7103.93","36.3.0":"136.0.7103.113","36.3.1":"136.0.7103.113","36.3.2":"136.0.7103.115","36.4.0":"136.0.7103.149","36.5.0":"136.0.7103.168","36.6.0":"136.0.7103.177","36.7.0":"136.0.7103.177","36.7.1":"136.0.7103.177","36.7.3":"136.0.7103.177","36.7.4":"136.0.7103.177","36.8.0":"136.0.7103.177","36.8.1":"136.0.7103.177","36.9.0":"136.0.7103.177","36.9.1":"136.0.7103.177","36.9.2":"136.0.7103.177","36.9.3":"136.0.7103.177","36.9.4":"136.0.7103.177","36.9.5":"136.0.7103.177","37.0.0-alpha.1":"137.0.7151.0","37.0.0-alpha.2":"137.0.7151.0","37.0.0-alpha.3":"138.0.7156.0","37.0.0-alpha.4":"138.0.7165.0","37.0.0-alpha.5":"138.0.7177.0","37.0.0-alpha.6":"138.0.7178.0","37.0.0-alpha.7":"138.0.7178.0","37.0.0-beta.1":"138.0.7178.0","37.0.0-beta.2":"138.0.7178.0","37.0.0-beta.3":"138.0.7190.0","37.0.0-beta.4":"138.0.7204.15","37.0.0-beta.5":"138.0.7204.15","37.0.0-beta.6":"138.0.7204.15","37.0.0-beta.7":"138.0.7204.15","37.0.0-beta.8":"138.0.7204.23","37.0.0-beta.9":"138.0.7204.35","37.0.0":"138.0.7204.35","37.1.0":"138.0.7204.35","37.2.0":"138.0.7204.97","37.2.1":"138.0.7204.97","37.2.2":"138.0.7204.100","37.2.3":"138.0.7204.100","37.2.4":"138.0.7204.157","37.2.5":"138.0.7204.168","37.2.6":"138.0.7204.185","37.3.0":"138.0.7204.224","37.3.1":"138.0.7204.235","37.4.0":"138.0.7204.243","37.5.0":"138.0.7204.251","37.5.1":"138.0.7204.251","37.6.0":"138.0.7204.251","37.6.1":"138.0.7204.251","37.7.0":"138.0.7204.251","37.7.1":"138.0.7204.251","37.8.0":"138.0.7204.251","37.9.0":"138.0.7204.251","37.10.0":"138.0.7204.251","37.10.1":"138.0.7204.251","37.10.2":"138.0.7204.251","38.0.0-alpha.1":"139.0.7219.0","38.0.0-alpha.2":"139.0.7219.0","38.0.0-alpha.3":"139.0.7219.0","38.0.0-alpha.4":"140.0.7261.0","38.0.0-alpha.5":"140.0.7261.0","38.0.0-alpha.6":"140.0.7261.0","38.0.0-alpha.7":"140.0.7281.0","38.0.0-alpha.8":"140.0.7281.0","38.0.0-alpha.9":"140.0.7301.0","38.0.0-alpha.10":"140.0.7309.0","38.0.0-alpha.11":"140.0.7312.0","38.0.0-alpha.12":"140.0.7314.0","38.0.0-alpha.13":"140.0.7314.0","38.0.0-beta.1":"140.0.7314.0","38.0.0-beta.2":"140.0.7327.0","38.0.0-beta.3":"140.0.7327.0","38.0.0-beta.4":"140.0.7339.2","38.0.0-beta.5":"140.0.7339.2","38.0.0-beta.6":"140.0.7339.2","38.0.0-beta.7":"140.0.7339.16","38.0.0-beta.8":"140.0.7339.24","38.0.0-beta.9":"140.0.7339.24","38.0.0-beta.11":"140.0.7339.41","38.0.0":"140.0.7339.41","38.1.0":"140.0.7339.80","38.1.1":"140.0.7339.133","38.1.2":"140.0.7339.133","38.2.0":"140.0.7339.133","38.2.1":"140.0.7339.133","38.2.2":"140.0.7339.133","38.3.0":"140.0.7339.240","38.4.0":"140.0.7339.240","38.5.0":"140.0.7339.249","38.6.0":"140.0.7339.249","38.7.0":"140.0.7339.249","38.7.1":"140.0.7339.249","39.0.0-alpha.1":"141.0.7361.0","39.0.0-alpha.2":"141.0.7361.0","39.0.0-alpha.3":"141.0.7390.7","39.0.0-alpha.4":"141.0.7390.7","39.0.0-alpha.5":"141.0.7390.7","39.0.0-alpha.6":"142.0.7417.0","39.0.0-alpha.7":"142.0.7417.0","39.0.0-alpha.8":"142.0.7417.0","39.0.0-alpha.9":"142.0.7417.0","39.0.0-beta.1":"142.0.7417.0","39.0.0-beta.2":"142.0.7417.0","39.0.0-beta.3":"142.0.7417.0","39.0.0-beta.4":"142.0.7444.34","39.0.0-beta.5":"142.0.7444.34","39.0.0":"142.0.7444.52","39.1.0":"142.0.7444.59","39.1.1":"142.0.7444.59","39.1.2":"142.0.7444.134","39.2.0":"142.0.7444.162","39.2.1":"142.0.7444.162","39.2.2":"142.0.7444.162","39.2.3":"142.0.7444.175","40.0.0-alpha.2":"143.0.7499.0","40.0.0-alpha.4":"144.0.7506.0","40.0.0-alpha.5":"144.0.7526.0","40.0.0-alpha.6":"144.0.7526.0"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/electron-to-chromium/index.js b/build_vtk_bundle/node_modules/electron-to-chromium/index.js deleted file mode 100644 index 1818281f..00000000 --- a/build_vtk_bundle/node_modules/electron-to-chromium/index.js +++ /dev/null @@ -1,36 +0,0 @@ -var versions = require('./versions'); -var fullVersions = require('./full-versions'); -var chromiumVersions = require('./chromium-versions'); -var fullChromiumVersions = require('./full-chromium-versions'); - -var electronToChromium = function (query) { - var number = getQueryString(query); - return number.split('.').length > 2 ? fullVersions[number] : versions[number] || undefined; -}; - -var chromiumToElectron = function (query) { - var number = getQueryString(query); - return number.split('.').length > 2 ? fullChromiumVersions[number] : chromiumVersions[number] || undefined; -}; - -var electronToBrowserList = function (query) { - var number = getQueryString(query); - return versions[number] ? "Chrome >= " + versions[number] : undefined; -}; - -var getQueryString = function (query) { - var number = query; - if (query === 1) { number = "1.0" } - if (typeof query === 'number') { number += ''; } - return number; -}; - -module.exports = { - versions: versions, - fullVersions: fullVersions, - chromiumVersions: chromiumVersions, - fullChromiumVersions: fullChromiumVersions, - electronToChromium: electronToChromium, - electronToBrowserList: electronToBrowserList, - chromiumToElectron: chromiumToElectron -}; diff --git a/build_vtk_bundle/node_modules/electron-to-chromium/package.json b/build_vtk_bundle/node_modules/electron-to-chromium/package.json deleted file mode 100644 index 04597406..00000000 --- a/build_vtk_bundle/node_modules/electron-to-chromium/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "electron-to-chromium", - "version": "1.5.258", - "description": "Provides a list of electron-to-chromium version mappings", - "main": "index.js", - "files": [ - "versions.js", - "full-versions.js", - "chromium-versions.js", - "full-chromium-versions.js", - "versions.json", - "full-versions.json", - "chromium-versions.json", - "full-chromium-versions.json", - "LICENSE" - ], - "scripts": { - "build": "node build.mjs", - "update": "node automated-update.js", - "test": "nyc ava --verbose", - "report": "nyc report --reporter=text-lcov > coverage.lcov && codecov" - }, - "repository": { - "type": "git", - "url": "https://github.com/kilian/electron-to-chromium/" - }, - "keywords": [ - "electron", - "chrome", - "chromium", - "browserslist", - "browserlist" - ], - "author": "Kilian Valkhof", - "license": "ISC", - "devDependencies": { - "ava": "^5.1.1", - "codecov": "^3.8.2", - "compare-versions": "^6.0.0-rc.1", - "node-fetch": "^3.3.0", - "nyc": "^15.1.0", - "shelljs": "^0.8.5" - } -} diff --git a/build_vtk_bundle/node_modules/electron-to-chromium/versions.js b/build_vtk_bundle/node_modules/electron-to-chromium/versions.js deleted file mode 100644 index 9313b3d1..00000000 --- a/build_vtk_bundle/node_modules/electron-to-chromium/versions.js +++ /dev/null @@ -1,224 +0,0 @@ -module.exports = { - "0.20": "39", - "0.21": "41", - "0.22": "41", - "0.23": "41", - "0.24": "41", - "0.25": "42", - "0.26": "42", - "0.27": "43", - "0.28": "43", - "0.29": "43", - "0.30": "44", - "0.31": "45", - "0.32": "45", - "0.33": "45", - "0.34": "45", - "0.35": "45", - "0.36": "47", - "0.37": "49", - "1.0": "49", - "1.1": "50", - "1.2": "51", - "1.3": "52", - "1.4": "53", - "1.5": "54", - "1.6": "56", - "1.7": "58", - "1.8": "59", - "2.0": "61", - "2.1": "61", - "3.0": "66", - "3.1": "66", - "4.0": "69", - "4.1": "69", - "4.2": "69", - "5.0": "73", - "6.0": "76", - "6.1": "76", - "7.0": "78", - "7.1": "78", - "7.2": "78", - "7.3": "78", - "8.0": "80", - "8.1": "80", - "8.2": "80", - "8.3": "80", - "8.4": "80", - "8.5": "80", - "9.0": "83", - "9.1": "83", - "9.2": "83", - "9.3": "83", - "9.4": "83", - "10.0": "85", - "10.1": "85", - "10.2": "85", - "10.3": "85", - "10.4": "85", - "11.0": "87", - "11.1": "87", - "11.2": "87", - "11.3": "87", - "11.4": "87", - "11.5": "87", - "12.0": "89", - "12.1": "89", - "12.2": "89", - "13.0": "91", - "13.1": "91", - "13.2": "91", - "13.3": "91", - "13.4": "91", - "13.5": "91", - "13.6": "91", - "14.0": "93", - "14.1": "93", - "14.2": "93", - "15.0": "94", - "15.1": "94", - "15.2": "94", - "15.3": "94", - "15.4": "94", - "15.5": "94", - "16.0": "96", - "16.1": "96", - "16.2": "96", - "17.0": "98", - "17.1": "98", - "17.2": "98", - "17.3": "98", - "17.4": "98", - "18.0": "100", - "18.1": "100", - "18.2": "100", - "18.3": "100", - "19.0": "102", - "19.1": "102", - "20.0": "104", - "20.1": "104", - "20.2": "104", - "20.3": "104", - "21.0": "106", - "21.1": "106", - "21.2": "106", - "21.3": "106", - "21.4": "106", - "22.0": "108", - "22.1": "108", - "22.2": "108", - "22.3": "108", - "23.0": "110", - "23.1": "110", - "23.2": "110", - "23.3": "110", - "24.0": "112", - "24.1": "112", - "24.2": "112", - "24.3": "112", - "24.4": "112", - "24.5": "112", - "24.6": "112", - "24.7": "112", - "24.8": "112", - "25.0": "114", - "25.1": "114", - "25.2": "114", - "25.3": "114", - "25.4": "114", - "25.5": "114", - "25.6": "114", - "25.7": "114", - "25.8": "114", - "25.9": "114", - "26.0": "116", - "26.1": "116", - "26.2": "116", - "26.3": "116", - "26.4": "116", - "26.5": "116", - "26.6": "116", - "27.0": "118", - "27.1": "118", - "27.2": "118", - "27.3": "118", - "28.0": "120", - "28.1": "120", - "28.2": "120", - "28.3": "120", - "29.0": "122", - "29.1": "122", - "29.2": "122", - "29.3": "122", - "29.4": "122", - "30.0": "124", - "30.1": "124", - "30.2": "124", - "30.3": "124", - "30.4": "124", - "30.5": "124", - "31.0": "126", - "31.1": "126", - "31.2": "126", - "31.3": "126", - "31.4": "126", - "31.5": "126", - "31.6": "126", - "31.7": "126", - "32.0": "128", - "32.1": "128", - "32.2": "128", - "32.3": "128", - "33.0": "130", - "33.1": "130", - "33.2": "130", - "33.3": "130", - "33.4": "130", - "34.0": "132", - "34.1": "132", - "34.2": "132", - "34.3": "132", - "34.4": "132", - "34.5": "132", - "35.0": "134", - "35.1": "134", - "35.2": "134", - "35.3": "134", - "35.4": "134", - "35.5": "134", - "35.6": "134", - "35.7": "134", - "36.0": "136", - "36.1": "136", - "36.2": "136", - "36.3": "136", - "36.4": "136", - "36.5": "136", - "36.6": "136", - "36.7": "136", - "36.8": "136", - "36.9": "136", - "37.0": "138", - "37.1": "138", - "37.2": "138", - "37.3": "138", - "37.4": "138", - "37.5": "138", - "37.6": "138", - "37.7": "138", - "37.8": "138", - "37.9": "138", - "37.10": "138", - "38.0": "140", - "38.1": "140", - "38.2": "140", - "38.3": "140", - "38.4": "140", - "38.5": "140", - "38.6": "140", - "38.7": "140", - "39.0": "142", - "39.1": "142", - "39.2": "142", - "40.0": "144" -}; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/electron-to-chromium/versions.json b/build_vtk_bundle/node_modules/electron-to-chromium/versions.json deleted file mode 100644 index 56b24212..00000000 --- a/build_vtk_bundle/node_modules/electron-to-chromium/versions.json +++ /dev/null @@ -1 +0,0 @@ -{"0.20":"39","0.21":"41","0.22":"41","0.23":"41","0.24":"41","0.25":"42","0.26":"42","0.27":"43","0.28":"43","0.29":"43","0.30":"44","0.31":"45","0.32":"45","0.33":"45","0.34":"45","0.35":"45","0.36":"47","0.37":"49","1.0":"49","1.1":"50","1.2":"51","1.3":"52","1.4":"53","1.5":"54","1.6":"56","1.7":"58","1.8":"59","2.0":"61","2.1":"61","3.0":"66","3.1":"66","4.0":"69","4.1":"69","4.2":"69","5.0":"73","6.0":"76","6.1":"76","7.0":"78","7.1":"78","7.2":"78","7.3":"78","8.0":"80","8.1":"80","8.2":"80","8.3":"80","8.4":"80","8.5":"80","9.0":"83","9.1":"83","9.2":"83","9.3":"83","9.4":"83","10.0":"85","10.1":"85","10.2":"85","10.3":"85","10.4":"85","11.0":"87","11.1":"87","11.2":"87","11.3":"87","11.4":"87","11.5":"87","12.0":"89","12.1":"89","12.2":"89","13.0":"91","13.1":"91","13.2":"91","13.3":"91","13.4":"91","13.5":"91","13.6":"91","14.0":"93","14.1":"93","14.2":"93","15.0":"94","15.1":"94","15.2":"94","15.3":"94","15.4":"94","15.5":"94","16.0":"96","16.1":"96","16.2":"96","17.0":"98","17.1":"98","17.2":"98","17.3":"98","17.4":"98","18.0":"100","18.1":"100","18.2":"100","18.3":"100","19.0":"102","19.1":"102","20.0":"104","20.1":"104","20.2":"104","20.3":"104","21.0":"106","21.1":"106","21.2":"106","21.3":"106","21.4":"106","22.0":"108","22.1":"108","22.2":"108","22.3":"108","23.0":"110","23.1":"110","23.2":"110","23.3":"110","24.0":"112","24.1":"112","24.2":"112","24.3":"112","24.4":"112","24.5":"112","24.6":"112","24.7":"112","24.8":"112","25.0":"114","25.1":"114","25.2":"114","25.3":"114","25.4":"114","25.5":"114","25.6":"114","25.7":"114","25.8":"114","25.9":"114","26.0":"116","26.1":"116","26.2":"116","26.3":"116","26.4":"116","26.5":"116","26.6":"116","27.0":"118","27.1":"118","27.2":"118","27.3":"118","28.0":"120","28.1":"120","28.2":"120","28.3":"120","29.0":"122","29.1":"122","29.2":"122","29.3":"122","29.4":"122","30.0":"124","30.1":"124","30.2":"124","30.3":"124","30.4":"124","30.5":"124","31.0":"126","31.1":"126","31.2":"126","31.3":"126","31.4":"126","31.5":"126","31.6":"126","31.7":"126","32.0":"128","32.1":"128","32.2":"128","32.3":"128","33.0":"130","33.1":"130","33.2":"130","33.3":"130","33.4":"130","34.0":"132","34.1":"132","34.2":"132","34.3":"132","34.4":"132","34.5":"132","35.0":"134","35.1":"134","35.2":"134","35.3":"134","35.4":"134","35.5":"134","35.6":"134","35.7":"134","36.0":"136","36.1":"136","36.2":"136","36.3":"136","36.4":"136","36.5":"136","36.6":"136","36.7":"136","36.8":"136","36.9":"136","37.0":"138","37.1":"138","37.2":"138","37.3":"138","37.4":"138","37.5":"138","37.6":"138","37.7":"138","37.8":"138","37.9":"138","37.10":"138","38.0":"140","38.1":"140","38.2":"140","38.3":"140","38.4":"140","38.5":"140","38.6":"140","38.7":"140","39.0":"142","39.1":"142","39.2":"142","40.0":"144"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/emojis-list/CHANGELOG.md b/build_vtk_bundle/node_modules/emojis-list/CHANGELOG.md deleted file mode 100644 index acaede6d..00000000 --- a/build_vtk_bundle/node_modules/emojis-list/CHANGELOG.md +++ /dev/null @@ -1,85 +0,0 @@ - -# 3.0.0 (2019-05-12) - -* build: bye bower ([4acc7c0](https://github.com/kikobeats/emojis-list/commit/4acc7c0)) -* build: remove gulp and bower ([12c83f3](https://github.com/kikobeats/emojis-list/commit/12c83f3)) -* build: update meta ([de14b12](https://github.com/kikobeats/emojis-list/commit/de14b12)) -* moar emojis ([b4a153f](https://github.com/kikobeats/emojis-list/commit/b4a153f)) -* chore: drop support for Node.js 0.10 ([20ed4f1](https://github.com/kikobeats/emojis-list/commit/20ed4f1)) - - -### BREAKING CHANGE - -* This module no longer supports Node.js 0.10 - - - -# 2.1.0 (2016-10-03) - -* Fetch new emoji ([7dbe84d](https://github.com/kikobeats/emojis-list/commit/7dbe84d)) - - - - -## 2.0.1 (2016-05-12) - -* Fix typo ([3808909](https://github.com/kikobeats/emojis-list/commit/3808909)) - - - - -# 2.0.0 (2016-05-12) - -* Add update script ([f846dd6](https://github.com/kikobeats/emojis-list/commit/f846dd6)) -* Block dependencies in last version ([1d9e0a5](https://github.com/kikobeats/emojis-list/commit/1d9e0a5)) -* Extract main file name ([9ffe7bb](https://github.com/kikobeats/emojis-list/commit/9ffe7bb)) -* Remove unnecessary files ([4c34729](https://github.com/kikobeats/emojis-list/commit/4c34729)) -* Update docs, special webpack setup is not necessary ([c4aefe9](https://github.com/kikobeats/emojis-list/commit/c4aefe9)) -* Update example ([1e2ae03](https://github.com/kikobeats/emojis-list/commit/1e2ae03)) -* Update how to generate emojis array ([b56bad9](https://github.com/kikobeats/emojis-list/commit/b56bad9)) -* Update main file based in the new interface ([996fccb](https://github.com/kikobeats/emojis-list/commit/996fccb)) - - - - -## 1.0.3 (2016-05-12) - -* Add standard as linter ([5e939d6](https://github.com/kikobeats/emojis-list/commit/5e939d6)) -* Change interface ([16bc0c0](https://github.com/kikobeats/emojis-list/commit/16bc0c0)) -* Generate emoji file ([fbcf8e9](https://github.com/kikobeats/emojis-list/commit/fbcf8e9)) -* Remove unnecessary special doc ([2b12bec](https://github.com/kikobeats/emojis-list/commit/2b12bec)) -* chore(package): update browserify to version 13.0.1 ([e2c98bf](https://github.com/kikobeats/emojis-list/commit/e2c98bf)) -* chore(package): update gulp-header to version 1.8.1 ([28de793](https://github.com/kikobeats/emojis-list/commit/28de793)) - - - - -## 1.0.2 (2016-05-05) - -* fixed #2 ([9a6abe7](https://github.com/kikobeats/emojis-list/commit/9a6abe7)), closes [#2](https://github.com/kikobeats/emojis-list/issues/2) -* Fomar using standard ([5202f9f](https://github.com/kikobeats/emojis-list/commit/5202f9f)) -* Update badge ([53fad9b](https://github.com/kikobeats/emojis-list/commit/53fad9b)) - - - - -## 1.0.1 (2016-04-13) - -* lock versions ([4a5d82e](https://github.com/kikobeats/emojis-list/commit/4a5d82e)) -* setup devDependencies ([d1de0fc](https://github.com/kikobeats/emojis-list/commit/d1de0fc)) -* update bumped ([9941038](https://github.com/kikobeats/emojis-list/commit/9941038)) -* Update package.json ([6c14b74](https://github.com/kikobeats/emojis-list/commit/6c14b74)) -* Update README.md ([1d9beeb](https://github.com/kikobeats/emojis-list/commit/1d9beeb)) -* Update README.md ([73f215e](https://github.com/kikobeats/emojis-list/commit/73f215e)) -* Update tests ([a94f7dc](https://github.com/kikobeats/emojis-list/commit/a94f7dc)) - - - - -# 1.0.0 (2015-05-12) - -* first commit ([a65b79d](https://github.com/kikobeats/emojis-list/commit/a65b79d)) -* updated ([9f0564c](https://github.com/kikobeats/emojis-list/commit/9f0564c)) - - - diff --git a/build_vtk_bundle/node_modules/emojis-list/LICENSE.md b/build_vtk_bundle/node_modules/emojis-list/LICENSE.md deleted file mode 100755 index c0928aeb..00000000 --- a/build_vtk_bundle/node_modules/emojis-list/LICENSE.md +++ /dev/null @@ -1,9 +0,0 @@ -The MIT License (MIT) - -Copyright © 2015 Kiko Beats - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/emojis-list/README.md b/build_vtk_bundle/node_modules/emojis-list/README.md deleted file mode 100755 index a103fbbe..00000000 --- a/build_vtk_bundle/node_modules/emojis-list/README.md +++ /dev/null @@ -1,36 +0,0 @@ -# emojis-list - -[![Dependency status](http://img.shields.io/david/Kikobeats/emojis-list.svg?style=flat-square)](https://david-dm.org/Kikobeats/emojis-list) -[![Dev Dependencies Status](http://img.shields.io/david/dev/Kikobeats/emojis-list.svg?style=flat-square)](https://david-dm.org/Kikobeats/emojis-list#info=devDependencies) -[![NPM Status](http://img.shields.io/npm/dm/emojis-list.svg?style=flat-square)](https://www.npmjs.org/package/emojis-list) -[![Donate](https://img.shields.io/badge/donate-paypal-blue.svg?style=flat-square)](https://paypal.me/kikobeats) - -> Complete list of standard Unicode Hex Character Code that represent emojis. - -**NOTE**: The lists is related with the Unicode Hex Character Code. The representation of the emoji depend of the system. Will be possible that the system don't have all the representations. - -## Install - -```bash -npm install emojis-list --save -``` - -## Usage - -```js -const emojis = require('emojis-list') -console.log(emojis[0]) -// => 🀄 -``` - -## Related - -* [emojis-unicode](https://github.com/Kikobeats/emojis-unicode) – Complete list of standard Unicode codes that represent emojis. -* [emojis-keywords](https://github.com/Kikobeats/emojis-keywords) – Complete list of am emoji shortcuts. -* [is-emoji-keyword](https://github.com/Kikobeats/is-emoji-keyword) – Check if a word is a emoji shortcut. -* [is-standard-emoji](https://github.com/kikobeats/is-standard-emoji) – Simply way to check if a emoji is a standard emoji. -* [trim-emoji](https://github.com/Kikobeats/trim-emoji) – Deletes ':' from the begin and the end of an emoji shortcut. - -## License - -MIT © [Kiko Beats](http://www.kikobeats.com) diff --git a/build_vtk_bundle/node_modules/emojis-list/index.js b/build_vtk_bundle/node_modules/emojis-list/index.js deleted file mode 100644 index 2c2f75ae..00000000 --- a/build_vtk_bundle/node_modules/emojis-list/index.js +++ /dev/null @@ -1,3077 +0,0 @@ -module.exports = [ - "🀄️", - "🃏", - "🅰️", - "🅱️", - "🅾️", - "🅿️", - "🆎", - "🆑", - "🆒", - "🆓", - "🆔", - "🆕", - "🆖", - "🆗", - "🆘", - "🆙", - "🆚", - "🇦🇨", - "🇦🇩", - "🇦🇪", - "🇦🇫", - "🇦🇬", - "🇦🇮", - "🇦🇱", - "🇦🇲", - "🇦🇴", - "🇦🇶", - "🇦🇷", - "🇦🇸", - "🇦🇹", - "🇦🇺", - "🇦🇼", - "🇦🇽", - "🇦🇿", - "🇦", - "🇧🇦", - "🇧🇧", - "🇧🇩", - "🇧🇪", - "🇧🇫", - "🇧🇬", - "🇧🇭", - "🇧🇮", - "🇧🇯", - "🇧🇱", - "🇧🇲", - "🇧🇳", - "🇧🇴", - "🇧🇶", - "🇧🇷", - "🇧🇸", - "🇧🇹", - "🇧🇻", - "🇧🇼", - "🇧🇾", - "🇧🇿", - "🇧", - "🇨🇦", - "🇨🇨", - "🇨🇩", - "🇨🇫", - "🇨🇬", - "🇨🇭", - "🇨🇮", - "🇨🇰", - "🇨🇱", - "🇨🇲", - "🇨🇳", - "🇨🇴", - "🇨🇵", - "🇨🇷", - "🇨🇺", - "🇨🇻", - "🇨🇼", - "🇨🇽", - "🇨🇾", - "🇨🇿", - "🇨", - "🇩🇪", - "🇩🇬", - "🇩🇯", - "🇩🇰", - "🇩🇲", - "🇩🇴", - "🇩🇿", - "🇩", - "🇪🇦", - "🇪🇨", - "🇪🇪", - "🇪🇬", - "🇪🇭", - "🇪🇷", - "🇪🇸", - "🇪🇹", - "🇪🇺", - "🇪", - "🇫🇮", - "🇫🇯", - "🇫🇰", - "🇫🇲", - "🇫🇴", - "🇫🇷", - "🇫", - "🇬🇦", - "🇬🇧", - "🇬🇩", - "🇬🇪", - "🇬🇫", - "🇬🇬", - "🇬🇭", - "🇬🇮", - "🇬🇱", - "🇬🇲", - "🇬🇳", - "🇬🇵", - "🇬🇶", - "🇬🇷", - "🇬🇸", - "🇬🇹", - "🇬🇺", - "🇬🇼", - "🇬🇾", - "🇬", - "🇭🇰", - "🇭🇲", - "🇭🇳", - "🇭🇷", - "🇭🇹", - "🇭🇺", - "🇭", - "🇮🇨", - "🇮🇩", - "🇮🇪", - "🇮🇱", - "🇮🇲", - "🇮🇳", - "🇮🇴", - "🇮🇶", - "🇮🇷", - "🇮🇸", - "🇮🇹", - "🇮", - "🇯🇪", - "🇯🇲", - "🇯🇴", - "🇯🇵", - "🇯", - "🇰🇪", - "🇰🇬", - "🇰🇭", - "🇰🇮", - "🇰🇲", - "🇰🇳", - "🇰🇵", - "🇰🇷", - "🇰🇼", - "🇰🇾", - "🇰🇿", - "🇰", - "🇱🇦", - "🇱🇧", - "🇱🇨", - "🇱🇮", - "🇱🇰", - "🇱🇷", - "🇱🇸", - "🇱🇹", - "🇱🇺", - "🇱🇻", - "🇱🇾", - "🇱", - "🇲🇦", - "🇲🇨", - "🇲🇩", - "🇲🇪", - "🇲🇫", - "🇲🇬", - "🇲🇭", - "🇲🇰", - "🇲🇱", - "🇲🇲", - "🇲🇳", - "🇲🇴", - "🇲🇵", - "🇲🇶", - "🇲🇷", - "🇲🇸", - "🇲🇹", - "🇲🇺", - "🇲🇻", - "🇲🇼", - "🇲🇽", - "🇲🇾", - "🇲🇿", - "🇲", - "🇳🇦", - "🇳🇨", - "🇳🇪", - "🇳🇫", - "🇳🇬", - "🇳🇮", - "🇳🇱", - "🇳🇴", - "🇳🇵", - "🇳🇷", - "🇳🇺", - "🇳🇿", - "🇳", - "🇴🇲", - "🇴", - "🇵🇦", - "🇵🇪", - "🇵🇫", - "🇵🇬", - "🇵🇭", - "🇵🇰", - "🇵🇱", - "🇵🇲", - "🇵🇳", - "🇵🇷", - "🇵🇸", - "🇵🇹", - "🇵🇼", - "🇵🇾", - "🇵", - "🇶🇦", - "🇶", - "🇷🇪", - "🇷🇴", - "🇷🇸", - "🇷🇺", - "🇷🇼", - "🇷", - "🇸🇦", - "🇸🇧", - "🇸🇨", - "🇸🇩", - "🇸🇪", - "🇸🇬", - "🇸🇭", - "🇸🇮", - "🇸🇯", - "🇸🇰", - "🇸🇱", - "🇸🇲", - "🇸🇳", - "🇸🇴", - "🇸🇷", - "🇸🇸", - "🇸🇹", - "🇸🇻", - "🇸🇽", - "🇸🇾", - "🇸🇿", - "🇸", - "🇹🇦", - "🇹🇨", - "🇹🇩", - "🇹🇫", - "🇹🇬", - "🇹🇭", - "🇹🇯", - "🇹🇰", - "🇹🇱", - "🇹🇲", - "🇹🇳", - "🇹🇴", - "🇹🇷", - "🇹🇹", - "🇹🇻", - "🇹🇼", - "🇹🇿", - "🇹", - "🇺🇦", - "🇺🇬", - "🇺🇲", - "🇺🇳", - "🇺🇸", - "🇺🇾", - "🇺🇿", - "🇺", - "🇻🇦", - "🇻🇨", - "🇻🇪", - "🇻🇬", - "🇻🇮", - "🇻🇳", - "🇻🇺", - "🇻", - "🇼🇫", - "🇼🇸", - "🇼", - "🇽🇰", - "🇽", - "🇾🇪", - "🇾🇹", - "🇾", - "🇿🇦", - "🇿🇲", - "🇿🇼", - "🇿", - "🈁", - "🈂️", - "🈚️", - "🈯️", - "🈲", - "🈳", - "🈴", - "🈵", - "🈶", - "🈷️", - "🈸", - "🈹", - "🈺", - "🉐", - "🉑", - "🌀", - "🌁", - "🌂", - "🌃", - "🌄", - "🌅", - "🌆", - "🌇", - "🌈", - "🌉", - "🌊", - "🌋", - "🌌", - "🌍", - "🌎", - "🌏", - "🌐", - "🌑", - "🌒", - "🌓", - "🌔", - "🌕", - "🌖", - "🌗", - "🌘", - "🌙", - "🌚", - "🌛", - "🌜", - "🌝", - "🌞", - "🌟", - "🌠", - "🌡️", - "🌤️", - "🌥️", - "🌦️", - "🌧️", - "🌨️", - "🌩️", - "🌪️", - "🌫️", - "🌬️", - "🌭", - "🌮", - "🌯", - "🌰", - "🌱", - "🌲", - "🌳", - "🌴", - "🌵", - "🌶️", - "🌷", - "🌸", - "🌹", - "🌺", - "🌻", - "🌼", - "🌽", - "🌾", - "🌿", - "🍀", - "🍁", - "🍂", - "🍃", - "🍄", - "🍅", - "🍆", - "🍇", - "🍈", - "🍉", - "🍊", - "🍋", - "🍌", - "🍍", - "🍎", - "🍏", - "🍐", - "🍑", - "🍒", - "🍓", - "🍔", - "🍕", - "🍖", - "🍗", - "🍘", - "🍙", - "🍚", - "🍛", - "🍜", - "🍝", - "🍞", - "🍟", - "🍠", - "🍡", - "🍢", - "🍣", - "🍤", - "🍥", - "🍦", - "🍧", - "🍨", - "🍩", - "🍪", - "🍫", - "🍬", - "🍭", - "🍮", - "🍯", - "🍰", - "🍱", - "🍲", - "🍳", - "🍴", - "🍵", - "🍶", - "🍷", - "🍸", - "🍹", - "🍺", - "🍻", - "🍼", - "🍽️", - "🍾", - "🍿", - "🎀", - "🎁", - "🎂", - "🎃", - "🎄", - "🎅🏻", - "🎅🏼", - "🎅🏽", - "🎅🏾", - "🎅🏿", - "🎅", - "🎆", - "🎇", - "🎈", - "🎉", - "🎊", - "🎋", - "🎌", - "🎍", - "🎎", - "🎏", - "🎐", - "🎑", - "🎒", - "🎓", - "🎖️", - "🎗️", - "🎙️", - "🎚️", - "🎛️", - "🎞️", - "🎟️", - "🎠", - "🎡", - "🎢", - "🎣", - "🎤", - "🎥", - "🎦", - "🎧", - "🎨", - "🎩", - "🎪", - "🎫", - "🎬", - "🎭", - "🎮", - "🎯", - "🎰", - "🎱", - "🎲", - "🎳", - "🎴", - "🎵", - "🎶", - "🎷", - "🎸", - "🎹", - "🎺", - "🎻", - "🎼", - "🎽", - "🎾", - "🎿", - "🏀", - "🏁", - "🏂🏻", - "🏂🏼", - "🏂🏽", - "🏂🏾", - "🏂🏿", - "🏂", - "🏃🏻‍♀️", - "🏃🏻‍♂️", - "🏃🏻", - "🏃🏼‍♀️", - "🏃🏼‍♂️", - "🏃🏼", - "🏃🏽‍♀️", - "🏃🏽‍♂️", - "🏃🏽", - "🏃🏾‍♀️", - "🏃🏾‍♂️", - "🏃🏾", - "🏃🏿‍♀️", - "🏃🏿‍♂️", - "🏃🏿", - "🏃‍♀️", - "🏃‍♂️", - "🏃", - "🏄🏻‍♀️", - "🏄🏻‍♂️", - "🏄🏻", - "🏄🏼‍♀️", - "🏄🏼‍♂️", - "🏄🏼", - "🏄🏽‍♀️", - "🏄🏽‍♂️", - "🏄🏽", - "🏄🏾‍♀️", - "🏄🏾‍♂️", - "🏄🏾", - "🏄🏿‍♀️", - "🏄🏿‍♂️", - "🏄🏿", - "🏄‍♀️", - "🏄‍♂️", - "🏄", - "🏅", - "🏆", - "🏇🏻", - "🏇🏼", - "🏇🏽", - "🏇🏾", - "🏇🏿", - "🏇", - "🏈", - "🏉", - "🏊🏻‍♀️", - "🏊🏻‍♂️", - "🏊🏻", - "🏊🏼‍♀️", - "🏊🏼‍♂️", - "🏊🏼", - "🏊🏽‍♀️", - "🏊🏽‍♂️", - "🏊🏽", - "🏊🏾‍♀️", - "🏊🏾‍♂️", - "🏊🏾", - "🏊🏿‍♀️", - "🏊🏿‍♂️", - "🏊🏿", - "🏊‍♀️", - "🏊‍♂️", - "🏊", - "🏋🏻‍♀️", - "🏋🏻‍♂️", - "🏋🏻", - "🏋🏼‍♀️", - "🏋🏼‍♂️", - "🏋🏼", - "🏋🏽‍♀️", - "🏋🏽‍♂️", - "🏋🏽", - "🏋🏾‍♀️", - "🏋🏾‍♂️", - "🏋🏾", - "🏋🏿‍♀️", - "🏋🏿‍♂️", - "🏋🏿", - "🏋️‍♀️", - "🏋️‍♂️", - "🏋️", - "🏌🏻‍♀️", - "🏌🏻‍♂️", - "🏌🏻", - "🏌🏼‍♀️", - "🏌🏼‍♂️", - "🏌🏼", - "🏌🏽‍♀️", - "🏌🏽‍♂️", - "🏌🏽", - "🏌🏾‍♀️", - "🏌🏾‍♂️", - "🏌🏾", - "🏌🏿‍♀️", - "🏌🏿‍♂️", - "🏌🏿", - "🏌️‍♀️", - "🏌️‍♂️", - "🏌️", - "🏍️", - "🏎️", - "🏏", - "🏐", - "🏑", - "🏒", - "🏓", - "🏔️", - "🏕️", - "🏖️", - "🏗️", - "🏘️", - "🏙️", - "🏚️", - "🏛️", - "🏜️", - "🏝️", - "🏞️", - "🏟️", - "🏠", - "🏡", - "🏢", - "🏣", - "🏤", - "🏥", - "🏦", - "🏧", - "🏨", - "🏩", - "🏪", - "🏫", - "🏬", - "🏭", - "🏮", - "🏯", - "🏰", - "🏳️‍🌈", - "🏳️", - "🏴‍☠️", - "🏴󠁧󠁢󠁥󠁮󠁧󠁿", - "🏴󠁧󠁢󠁳󠁣󠁴󠁿", - "🏴󠁧󠁢󠁷󠁬󠁳󠁿", - "🏴", - "🏵️", - "🏷️", - "🏸", - "🏹", - "🏺", - "🏻", - "🏼", - "🏽", - "🏾", - "🏿", - "🐀", - "🐁", - "🐂", - "🐃", - "🐄", - "🐅", - "🐆", - "🐇", - "🐈", - "🐉", - "🐊", - "🐋", - "🐌", - "🐍", - "🐎", - "🐏", - "🐐", - "🐑", - "🐒", - "🐓", - "🐔", - "🐕‍🦺", - "🐕", - "🐖", - "🐗", - "🐘", - "🐙", - "🐚", - "🐛", - "🐜", - "🐝", - "🐞", - "🐟", - "🐠", - "🐡", - "🐢", - "🐣", - "🐤", - "🐥", - "🐦", - "🐧", - "🐨", - "🐩", - "🐪", - "🐫", - "🐬", - "🐭", - "🐮", - "🐯", - "🐰", - "🐱", - "🐲", - "🐳", - "🐴", - "🐵", - "🐶", - "🐷", - "🐸", - "🐹", - "🐺", - "🐻", - "🐼", - "🐽", - "🐾", - "🐿️", - "👀", - "👁‍🗨", - "👁️", - "👂🏻", - "👂🏼", - "👂🏽", - "👂🏾", - "👂🏿", - "👂", - "👃🏻", - "👃🏼", - "👃🏽", - "👃🏾", - "👃🏿", - "👃", - "👄", - "👅", - "👆🏻", - "👆🏼", - "👆🏽", - "👆🏾", - "👆🏿", - "👆", - "👇🏻", - "👇🏼", - "👇🏽", - "👇🏾", - "👇🏿", - "👇", - "👈🏻", - "👈🏼", - "👈🏽", - "👈🏾", - "👈🏿", - "👈", - "👉🏻", - "👉🏼", - "👉🏽", - "👉🏾", - "👉🏿", - "👉", - "👊🏻", - "👊🏼", - "👊🏽", - "👊🏾", - "👊🏿", - "👊", - "👋🏻", - "👋🏼", - "👋🏽", - "👋🏾", - "👋🏿", - "👋", - "👌🏻", - "👌🏼", - "👌🏽", - "👌🏾", - "👌🏿", - "👌", - "👍🏻", - "👍🏼", - "👍🏽", - "👍🏾", - "👍🏿", - "👍", - "👎🏻", - "👎🏼", - "👎🏽", - "👎🏾", - "👎🏿", - "👎", - "👏🏻", - "👏🏼", - "👏🏽", - "👏🏾", - "👏🏿", - "👏", - "👐🏻", - "👐🏼", - "👐🏽", - "👐🏾", - "👐🏿", - "👐", - "👑", - "👒", - "👓", - "👔", - "👕", - "👖", - "👗", - "👘", - "👙", - "👚", - "👛", - "👜", - "👝", - "👞", - "👟", - "👠", - "👡", - "👢", - "👣", - "👤", - "👥", - "👦🏻", - "👦🏼", - "👦🏽", - "👦🏾", - "👦🏿", - "👦", - "👧🏻", - "👧🏼", - "👧🏽", - "👧🏾", - "👧🏿", - "👧", - "👨🏻‍🌾", - "👨🏻‍🍳", - "👨🏻‍🎓", - "👨🏻‍🎤", - "👨🏻‍🎨", - "👨🏻‍🏫", - "👨🏻‍🏭", - "👨🏻‍💻", - "👨🏻‍💼", - "👨🏻‍🔧", - "👨🏻‍🔬", - "👨🏻‍🚀", - "👨🏻‍🚒", - "👨🏻‍🦯", - "👨🏻‍🦰", - "👨🏻‍🦱", - "👨🏻‍🦲", - "👨🏻‍🦳", - "👨🏻‍🦼", - "👨🏻‍🦽", - "👨🏻‍⚕️", - "👨🏻‍⚖️", - "👨🏻‍✈️", - "👨🏻", - "👨🏼‍🌾", - "👨🏼‍🍳", - "👨🏼‍🎓", - "👨🏼‍🎤", - "👨🏼‍🎨", - "👨🏼‍🏫", - "👨🏼‍🏭", - "👨🏼‍💻", - "👨🏼‍💼", - "👨🏼‍🔧", - "👨🏼‍🔬", - "👨🏼‍🚀", - "👨🏼‍🚒", - "👨🏼‍🤝‍👨🏻", - "👨🏼‍🦯", - "👨🏼‍🦰", - "👨🏼‍🦱", - "👨🏼‍🦲", - "👨🏼‍🦳", - "👨🏼‍🦼", - "👨🏼‍🦽", - "👨🏼‍⚕️", - "👨🏼‍⚖️", - "👨🏼‍✈️", - "👨🏼", - "👨🏽‍🌾", - "👨🏽‍🍳", - "👨🏽‍🎓", - "👨🏽‍🎤", - "👨🏽‍🎨", - "👨🏽‍🏫", - "👨🏽‍🏭", - "👨🏽‍💻", - "👨🏽‍💼", - "👨🏽‍🔧", - "👨🏽‍🔬", - "👨🏽‍🚀", - "👨🏽‍🚒", - "👨🏽‍🤝‍👨🏻", - "👨🏽‍🤝‍👨🏼", - "👨🏽‍🦯", - "👨🏽‍🦰", - "👨🏽‍🦱", - "👨🏽‍🦲", - "👨🏽‍🦳", - "👨🏽‍🦼", - "👨🏽‍🦽", - "👨🏽‍⚕️", - "👨🏽‍⚖️", - "👨🏽‍✈️", - "👨🏽", - "👨🏾‍🌾", - "👨🏾‍🍳", - "👨🏾‍🎓", - "👨🏾‍🎤", - "👨🏾‍🎨", - "👨🏾‍🏫", - "👨🏾‍🏭", - "👨🏾‍💻", - "👨🏾‍💼", - "👨🏾‍🔧", - "👨🏾‍🔬", - "👨🏾‍🚀", - "👨🏾‍🚒", - "👨🏾‍🤝‍👨🏻", - "👨🏾‍🤝‍👨🏼", - "👨🏾‍🤝‍👨🏽", - "👨🏾‍🦯", - "👨🏾‍🦰", - "👨🏾‍🦱", - "👨🏾‍🦲", - "👨🏾‍🦳", - "👨🏾‍🦼", - "👨🏾‍🦽", - "👨🏾‍⚕️", - "👨🏾‍⚖️", - "👨🏾‍✈️", - "👨🏾", - "👨🏿‍🌾", - "👨🏿‍🍳", - "👨🏿‍🎓", - "👨🏿‍🎤", - "👨🏿‍🎨", - "👨🏿‍🏫", - "👨🏿‍🏭", - "👨🏿‍💻", - "👨🏿‍💼", - "👨🏿‍🔧", - "👨🏿‍🔬", - "👨🏿‍🚀", - "👨🏿‍🚒", - "👨🏿‍🤝‍👨🏻", - "👨🏿‍🤝‍👨🏼", - "👨🏿‍🤝‍👨🏽", - "👨🏿‍🤝‍👨🏾", - "👨🏿‍🦯", - "👨🏿‍🦰", - "👨🏿‍🦱", - "👨🏿‍🦲", - "👨🏿‍🦳", - "👨🏿‍🦼", - "👨🏿‍🦽", - "👨🏿‍⚕️", - "👨🏿‍⚖️", - "👨🏿‍✈️", - "👨🏿", - "👨‍🌾", - "👨‍🍳", - "👨‍🎓", - "👨‍🎤", - "👨‍🎨", - "👨‍🏫", - "👨‍🏭", - "👨‍👦‍👦", - "👨‍👦", - "👨‍👧‍👦", - "👨‍👧‍👧", - "👨‍👧", - "👨‍👨‍👦‍👦", - "👨‍👨‍👦", - "👨‍👨‍👧‍👦", - "👨‍👨‍👧‍👧", - "👨‍👨‍👧", - "👨‍👩‍👦‍👦", - "👨‍👩‍👦", - "👨‍👩‍👧‍👦", - "👨‍👩‍👧‍👧", - "👨‍👩‍👧", - "👨‍💻", - "👨‍💼", - "👨‍🔧", - "👨‍🔬", - "👨‍🚀", - "👨‍🚒", - "👨‍🦯", - "👨‍🦰", - "👨‍🦱", - "👨‍🦲", - "👨‍🦳", - "👨‍🦼", - "👨‍🦽", - "👨‍⚕️", - "👨‍⚖️", - "👨‍✈️", - "👨‍❤️‍👨", - "👨‍❤️‍💋‍👨", - "👨", - "👩🏻‍🌾", - "👩🏻‍🍳", - "👩🏻‍🎓", - "👩🏻‍🎤", - "👩🏻‍🎨", - "👩🏻‍🏫", - "👩🏻‍🏭", - "👩🏻‍💻", - "👩🏻‍💼", - "👩🏻‍🔧", - "👩🏻‍🔬", - "👩🏻‍🚀", - "👩🏻‍🚒", - "👩🏻‍🤝‍👨🏼", - "👩🏻‍🤝‍👨🏽", - "👩🏻‍🤝‍👨🏾", - "👩🏻‍🤝‍👨🏿", - "👩🏻‍🦯", - "👩🏻‍🦰", - "👩🏻‍🦱", - "👩🏻‍🦲", - "👩🏻‍🦳", - "👩🏻‍🦼", - "👩🏻‍🦽", - "👩🏻‍⚕️", - "👩🏻‍⚖️", - "👩🏻‍✈️", - "👩🏻", - "👩🏼‍🌾", - "👩🏼‍🍳", - "👩🏼‍🎓", - "👩🏼‍🎤", - "👩🏼‍🎨", - "👩🏼‍🏫", - "👩🏼‍🏭", - "👩🏼‍💻", - "👩🏼‍💼", - "👩🏼‍🔧", - "👩🏼‍🔬", - "👩🏼‍🚀", - "👩🏼‍🚒", - "👩🏼‍🤝‍👨🏻", - "👩🏼‍🤝‍👨🏽", - "👩🏼‍🤝‍👨🏾", - "👩🏼‍🤝‍👨🏿", - "👩🏼‍🤝‍👩🏻", - "👩🏼‍🦯", - "👩🏼‍🦰", - "👩🏼‍🦱", - "👩🏼‍🦲", - "👩🏼‍🦳", - "👩🏼‍🦼", - "👩🏼‍🦽", - "👩🏼‍⚕️", - "👩🏼‍⚖️", - "👩🏼‍✈️", - "👩🏼", - "👩🏽‍🌾", - "👩🏽‍🍳", - "👩🏽‍🎓", - "👩🏽‍🎤", - "👩🏽‍🎨", - "👩🏽‍🏫", - "👩🏽‍🏭", - "👩🏽‍💻", - "👩🏽‍💼", - "👩🏽‍🔧", - "👩🏽‍🔬", - "👩🏽‍🚀", - "👩🏽‍🚒", - "👩🏽‍🤝‍👨🏻", - "👩🏽‍🤝‍👨🏼", - "👩🏽‍🤝‍👨🏾", - "👩🏽‍🤝‍👨🏿", - "👩🏽‍🤝‍👩🏻", - "👩🏽‍🤝‍👩🏼", - "👩🏽‍🦯", - "👩🏽‍🦰", - "👩🏽‍🦱", - "👩🏽‍🦲", - "👩🏽‍🦳", - "👩🏽‍🦼", - "👩🏽‍🦽", - "👩🏽‍⚕️", - "👩🏽‍⚖️", - "👩🏽‍✈️", - "👩🏽", - "👩🏾‍🌾", - "👩🏾‍🍳", - "👩🏾‍🎓", - "👩🏾‍🎤", - "👩🏾‍🎨", - "👩🏾‍🏫", - "👩🏾‍🏭", - "👩🏾‍💻", - "👩🏾‍💼", - "👩🏾‍🔧", - "👩🏾‍🔬", - "👩🏾‍🚀", - "👩🏾‍🚒", - "👩🏾‍🤝‍👨🏻", - "👩🏾‍🤝‍👨🏼", - "👩🏾‍🤝‍👨🏽", - "👩🏾‍🤝‍👨🏿", - "👩🏾‍🤝‍👩🏻", - "👩🏾‍🤝‍👩🏼", - "👩🏾‍🤝‍👩🏽", - "👩🏾‍🦯", - "👩🏾‍🦰", - "👩🏾‍🦱", - "👩🏾‍🦲", - "👩🏾‍🦳", - "👩🏾‍🦼", - "👩🏾‍🦽", - "👩🏾‍⚕️", - "👩🏾‍⚖️", - "👩🏾‍✈️", - "👩🏾", - "👩🏿‍🌾", - "👩🏿‍🍳", - "👩🏿‍🎓", - "👩🏿‍🎤", - "👩🏿‍🎨", - "👩🏿‍🏫", - "👩🏿‍🏭", - "👩🏿‍💻", - "👩🏿‍💼", - "👩🏿‍🔧", - "👩🏿‍🔬", - "👩🏿‍🚀", - "👩🏿‍🚒", - "👩🏿‍🤝‍👨🏻", - "👩🏿‍🤝‍👨🏼", - "👩🏿‍🤝‍👨🏽", - "👩🏿‍🤝‍👨🏾", - "👩🏿‍🤝‍👩🏻", - "👩🏿‍🤝‍👩🏼", - "👩🏿‍🤝‍👩🏽", - "👩🏿‍🤝‍👩🏾", - "👩🏿‍🦯", - "👩🏿‍🦰", - "👩🏿‍🦱", - "👩🏿‍🦲", - "👩🏿‍🦳", - "👩🏿‍🦼", - "👩🏿‍🦽", - "👩🏿‍⚕️", - "👩🏿‍⚖️", - "👩🏿‍✈️", - "👩🏿", - "👩‍🌾", - "👩‍🍳", - "👩‍🎓", - "👩‍🎤", - "👩‍🎨", - "👩‍🏫", - "👩‍🏭", - "👩‍👦‍👦", - "👩‍👦", - "👩‍👧‍👦", - "👩‍👧‍👧", - "👩‍👧", - "👩‍👩‍👦‍👦", - "👩‍👩‍👦", - "👩‍👩‍👧‍👦", - "👩‍👩‍👧‍👧", - "👩‍👩‍👧", - "👩‍💻", - "👩‍💼", - "👩‍🔧", - "👩‍🔬", - "👩‍🚀", - "👩‍🚒", - "👩‍🦯", - "👩‍🦰", - "👩‍🦱", - "👩‍🦲", - "👩‍🦳", - "👩‍🦼", - "👩‍🦽", - "👩‍⚕️", - "👩‍⚖️", - "👩‍✈️", - "👩‍❤️‍👨", - "👩‍❤️‍👩", - "👩‍❤️‍💋‍👨", - "👩‍❤️‍💋‍👩", - "👩", - "👪", - "👫🏻", - "👫🏼", - "👫🏽", - "👫🏾", - "👫🏿", - "👫", - "👬🏻", - "👬🏼", - "👬🏽", - "👬🏾", - "👬🏿", - "👬", - "👭🏻", - "👭🏼", - "👭🏽", - "👭🏾", - "👭🏿", - "👭", - "👮🏻‍♀️", - "👮🏻‍♂️", - "👮🏻", - "👮🏼‍♀️", - "👮🏼‍♂️", - "👮🏼", - "👮🏽‍♀️", - "👮🏽‍♂️", - "👮🏽", - "👮🏾‍♀️", - "👮🏾‍♂️", - "👮🏾", - "👮🏿‍♀️", - "👮🏿‍♂️", - "👮🏿", - "👮‍♀️", - "👮‍♂️", - "👮", - "👯‍♀️", - "👯‍♂️", - "👯", - "👰🏻", - "👰🏼", - "👰🏽", - "👰🏾", - "👰🏿", - "👰", - "👱🏻‍♀️", - "👱🏻‍♂️", - "👱🏻", - "👱🏼‍♀️", - "👱🏼‍♂️", - "👱🏼", - "👱🏽‍♀️", - "👱🏽‍♂️", - "👱🏽", - "👱🏾‍♀️", - "👱🏾‍♂️", - "👱🏾", - "👱🏿‍♀️", - "👱🏿‍♂️", - "👱🏿", - "👱‍♀️", - "👱‍♂️", - "👱", - "👲🏻", - "👲🏼", - "👲🏽", - "👲🏾", - "👲🏿", - "👲", - "👳🏻‍♀️", - "👳🏻‍♂️", - "👳🏻", - "👳🏼‍♀️", - "👳🏼‍♂️", - "👳🏼", - "👳🏽‍♀️", - "👳🏽‍♂️", - "👳🏽", - "👳🏾‍♀️", - "👳🏾‍♂️", - "👳🏾", - "👳🏿‍♀️", - "👳🏿‍♂️", - "👳🏿", - "👳‍♀️", - "👳‍♂️", - "👳", - "👴🏻", - "👴🏼", - "👴🏽", - "👴🏾", - "👴🏿", - "👴", - "👵🏻", - "👵🏼", - "👵🏽", - "👵🏾", - "👵🏿", - "👵", - "👶🏻", - "👶🏼", - "👶🏽", - "👶🏾", - "👶🏿", - "👶", - "👷🏻‍♀️", - "👷🏻‍♂️", - "👷🏻", - "👷🏼‍♀️", - "👷🏼‍♂️", - "👷🏼", - "👷🏽‍♀️", - "👷🏽‍♂️", - "👷🏽", - "👷🏾‍♀️", - "👷🏾‍♂️", - "👷🏾", - "👷🏿‍♀️", - "👷🏿‍♂️", - "👷🏿", - "👷‍♀️", - "👷‍♂️", - "👷", - "👸🏻", - "👸🏼", - "👸🏽", - "👸🏾", - "👸🏿", - "👸", - "👹", - "👺", - "👻", - "👼🏻", - "👼🏼", - "👼🏽", - "👼🏾", - "👼🏿", - "👼", - "👽", - "👾", - "👿", - "💀", - "💁🏻‍♀️", - "💁🏻‍♂️", - "💁🏻", - "💁🏼‍♀️", - "💁🏼‍♂️", - "💁🏼", - "💁🏽‍♀️", - "💁🏽‍♂️", - "💁🏽", - "💁🏾‍♀️", - "💁🏾‍♂️", - "💁🏾", - "💁🏿‍♀️", - "💁🏿‍♂️", - "💁🏿", - "💁‍♀️", - "💁‍♂️", - "💁", - "💂🏻‍♀️", - "💂🏻‍♂️", - "💂🏻", - "💂🏼‍♀️", - "💂🏼‍♂️", - "💂🏼", - "💂🏽‍♀️", - "💂🏽‍♂️", - "💂🏽", - "💂🏾‍♀️", - "💂🏾‍♂️", - "💂🏾", - "💂🏿‍♀️", - "💂🏿‍♂️", - "💂🏿", - "💂‍♀️", - "💂‍♂️", - "💂", - "💃🏻", - "💃🏼", - "💃🏽", - "💃🏾", - "💃🏿", - "💃", - "💄", - "💅🏻", - "💅🏼", - "💅🏽", - "💅🏾", - "💅🏿", - "💅", - "💆🏻‍♀️", - "💆🏻‍♂️", - "💆🏻", - "💆🏼‍♀️", - "💆🏼‍♂️", - "💆🏼", - "💆🏽‍♀️", - "💆🏽‍♂️", - "💆🏽", - "💆🏾‍♀️", - "💆🏾‍♂️", - "💆🏾", - "💆🏿‍♀️", - "💆🏿‍♂️", - "💆🏿", - "💆‍♀️", - "💆‍♂️", - "💆", - "💇🏻‍♀️", - "💇🏻‍♂️", - "💇🏻", - "💇🏼‍♀️", - "💇🏼‍♂️", - "💇🏼", - "💇🏽‍♀️", - "💇🏽‍♂️", - "💇🏽", - "💇🏾‍♀️", - "💇🏾‍♂️", - "💇🏾", - "💇🏿‍♀️", - "💇🏿‍♂️", - "💇🏿", - "💇‍♀️", - "💇‍♂️", - "💇", - "💈", - "💉", - "💊", - "💋", - "💌", - "💍", - "💎", - "💏", - "💐", - "💑", - "💒", - "💓", - "💔", - "💕", - "💖", - "💗", - "💘", - "💙", - "💚", - "💛", - "💜", - "💝", - "💞", - "💟", - "💠", - "💡", - "💢", - "💣", - "💤", - "💥", - "💦", - "💧", - "💨", - "💩", - "💪🏻", - "💪🏼", - "💪🏽", - "💪🏾", - "💪🏿", - "💪", - "💫", - "💬", - "💭", - "💮", - "💯", - "💰", - "💱", - "💲", - "💳", - "💴", - "💵", - "💶", - "💷", - "💸", - "💹", - "💺", - "💻", - "💼", - "💽", - "💾", - "💿", - "📀", - "📁", - "📂", - "📃", - "📄", - "📅", - "📆", - "📇", - "📈", - "📉", - "📊", - "📋", - "📌", - "📍", - "📎", - "📏", - "📐", - "📑", - "📒", - "📓", - "📔", - "📕", - "📖", - "📗", - "📘", - "📙", - "📚", - "📛", - "📜", - "📝", - "📞", - "📟", - "📠", - "📡", - "📢", - "📣", - "📤", - "📥", - "📦", - "📧", - "📨", - "📩", - "📪", - "📫", - "📬", - "📭", - "📮", - "📯", - "📰", - "📱", - "📲", - "📳", - "📴", - "📵", - "📶", - "📷", - "📸", - "📹", - "📺", - "📻", - "📼", - "📽️", - "📿", - "🔀", - "🔁", - "🔂", - "🔃", - "🔄", - "🔅", - "🔆", - "🔇", - "🔈", - "🔉", - "🔊", - "🔋", - "🔌", - "🔍", - "🔎", - "🔏", - "🔐", - "🔑", - "🔒", - "🔓", - "🔔", - "🔕", - "🔖", - "🔗", - "🔘", - "🔙", - "🔚", - "🔛", - "🔜", - "🔝", - "🔞", - "🔟", - "🔠", - "🔡", - "🔢", - "🔣", - "🔤", - "🔥", - "🔦", - "🔧", - "🔨", - "🔩", - "🔪", - "🔫", - "🔬", - "🔭", - "🔮", - "🔯", - "🔰", - "🔱", - "🔲", - "🔳", - "🔴", - "🔵", - "🔶", - "🔷", - "🔸", - "🔹", - "🔺", - "🔻", - "🔼", - "🔽", - "🕉️", - "🕊️", - "🕋", - "🕌", - "🕍", - "🕎", - "🕐", - "🕑", - "🕒", - "🕓", - "🕔", - "🕕", - "🕖", - "🕗", - "🕘", - "🕙", - "🕚", - "🕛", - "🕜", - "🕝", - "🕞", - "🕟", - "🕠", - "🕡", - "🕢", - "🕣", - "🕤", - "🕥", - "🕦", - "🕧", - "🕯️", - "🕰️", - "🕳️", - "🕴🏻‍♀️", - "🕴🏻‍♂️", - "🕴🏻", - "🕴🏼‍♀️", - "🕴🏼‍♂️", - "🕴🏼", - "🕴🏽‍♀️", - "🕴🏽‍♂️", - "🕴🏽", - "🕴🏾‍♀️", - "🕴🏾‍♂️", - "🕴🏾", - "🕴🏿‍♀️", - "🕴🏿‍♂️", - "🕴🏿", - "🕴️‍♀️", - "🕴️‍♂️", - "🕴️", - "🕵🏻‍♀️", - "🕵🏻‍♂️", - "🕵🏻", - "🕵🏼‍♀️", - "🕵🏼‍♂️", - "🕵🏼", - "🕵🏽‍♀️", - "🕵🏽‍♂️", - "🕵🏽", - "🕵🏾‍♀️", - "🕵🏾‍♂️", - "🕵🏾", - "🕵🏿‍♀️", - "🕵🏿‍♂️", - "🕵🏿", - "🕵️‍♀️", - "🕵️‍♂️", - "🕵️", - "🕶️", - "🕷️", - "🕸️", - "🕹️", - "🕺🏻", - "🕺🏼", - "🕺🏽", - "🕺🏾", - "🕺🏿", - "🕺", - "🖇️", - "🖊️", - "🖋️", - "🖌️", - "🖍️", - "🖐🏻", - "🖐🏼", - "🖐🏽", - "🖐🏾", - "🖐🏿", - "🖐️", - "🖕🏻", - "🖕🏼", - "🖕🏽", - "🖕🏾", - "🖕🏿", - "🖕", - "🖖🏻", - "🖖🏼", - "🖖🏽", - "🖖🏾", - "🖖🏿", - "🖖", - "🖤", - "🖥️", - "🖨️", - "🖱️", - "🖲️", - "🖼️", - "🗂️", - "🗃️", - "🗄️", - "🗑️", - "🗒️", - "🗓️", - "🗜️", - "🗝️", - "🗞️", - "🗡️", - "🗣️", - "🗨️", - "🗯️", - "🗳️", - "🗺️", - "🗻", - "🗼", - "🗽", - "🗾", - "🗿", - "😀", - "😁", - "😂", - "😃", - "😄", - "😅", - "😆", - "😇", - "😈", - "😉", - "😊", - "😋", - "😌", - "😍", - "😎", - "😏", - "😐", - "😑", - "😒", - "😓", - "😔", - "😕", - "😖", - "😗", - "😘", - "😙", - "😚", - "😛", - "😜", - "😝", - "😞", - "😟", - "😠", - "😡", - "😢", - "😣", - "😤", - "😥", - "😦", - "😧", - "😨", - "😩", - "😪", - "😫", - "😬", - "😭", - "😮", - "😯", - "😰", - "😱", - "😲", - "😳", - "😴", - "😵", - "😶", - "😷", - "😸", - "😹", - "😺", - "😻", - "😼", - "😽", - "😾", - "😿", - "🙀", - "🙁", - "🙂", - "🙃", - "🙄", - "🙅🏻‍♀️", - "🙅🏻‍♂️", - "🙅🏻", - "🙅🏼‍♀️", - "🙅🏼‍♂️", - "🙅🏼", - "🙅🏽‍♀️", - "🙅🏽‍♂️", - "🙅🏽", - "🙅🏾‍♀️", - "🙅🏾‍♂️", - "🙅🏾", - "🙅🏿‍♀️", - "🙅🏿‍♂️", - "🙅🏿", - "🙅‍♀️", - "🙅‍♂️", - "🙅", - "🙆🏻‍♀️", - "🙆🏻‍♂️", - "🙆🏻", - "🙆🏼‍♀️", - "🙆🏼‍♂️", - "🙆🏼", - "🙆🏽‍♀️", - "🙆🏽‍♂️", - "🙆🏽", - "🙆🏾‍♀️", - "🙆🏾‍♂️", - "🙆🏾", - "🙆🏿‍♀️", - "🙆🏿‍♂️", - "🙆🏿", - "🙆‍♀️", - "🙆‍♂️", - "🙆", - "🙇🏻‍♀️", - "🙇🏻‍♂️", - "🙇🏻", - "🙇🏼‍♀️", - "🙇🏼‍♂️", - "🙇🏼", - "🙇🏽‍♀️", - "🙇🏽‍♂️", - "🙇🏽", - "🙇🏾‍♀️", - "🙇🏾‍♂️", - "🙇🏾", - "🙇🏿‍♀️", - "🙇🏿‍♂️", - "🙇🏿", - "🙇‍♀️", - "🙇‍♂️", - "🙇", - "🙈", - "🙉", - "🙊", - "🙋🏻‍♀️", - "🙋🏻‍♂️", - "🙋🏻", - "🙋🏼‍♀️", - "🙋🏼‍♂️", - "🙋🏼", - "🙋🏽‍♀️", - "🙋🏽‍♂️", - "🙋🏽", - "🙋🏾‍♀️", - "🙋🏾‍♂️", - "🙋🏾", - "🙋🏿‍♀️", - "🙋🏿‍♂️", - "🙋🏿", - "🙋‍♀️", - "🙋‍♂️", - "🙋", - "🙌🏻", - "🙌🏼", - "🙌🏽", - "🙌🏾", - "🙌🏿", - "🙌", - "🙍🏻‍♀️", - "🙍🏻‍♂️", - "🙍🏻", - "🙍🏼‍♀️", - "🙍🏼‍♂️", - "🙍🏼", - "🙍🏽‍♀️", - "🙍🏽‍♂️", - "🙍🏽", - "🙍🏾‍♀️", - "🙍🏾‍♂️", - "🙍🏾", - "🙍🏿‍♀️", - "🙍🏿‍♂️", - "🙍🏿", - "🙍‍♀️", - "🙍‍♂️", - "🙍", - "🙎🏻‍♀️", - "🙎🏻‍♂️", - "🙎🏻", - "🙎🏼‍♀️", - "🙎🏼‍♂️", - "🙎🏼", - "🙎🏽‍♀️", - "🙎🏽‍♂️", - "🙎🏽", - "🙎🏾‍♀️", - "🙎🏾‍♂️", - "🙎🏾", - "🙎🏿‍♀️", - "🙎🏿‍♂️", - "🙎🏿", - "🙎‍♀️", - "🙎‍♂️", - "🙎", - "🙏🏻", - "🙏🏼", - "🙏🏽", - "🙏🏾", - "🙏🏿", - "🙏", - "🚀", - "🚁", - "🚂", - "🚃", - "🚄", - "🚅", - "🚆", - "🚇", - "🚈", - "🚉", - "🚊", - "🚋", - "🚌", - "🚍", - "🚎", - "🚏", - "🚐", - "🚑", - "🚒", - "🚓", - "🚔", - "🚕", - "🚖", - "🚗", - "🚘", - "🚙", - "🚚", - "🚛", - "🚜", - "🚝", - "🚞", - "🚟", - "🚠", - "🚡", - "🚢", - "🚣🏻‍♀️", - "🚣🏻‍♂️", - "🚣🏻", - "🚣🏼‍♀️", - "🚣🏼‍♂️", - "🚣🏼", - "🚣🏽‍♀️", - "🚣🏽‍♂️", - "🚣🏽", - "🚣🏾‍♀️", - "🚣🏾‍♂️", - "🚣🏾", - "🚣🏿‍♀️", - "🚣🏿‍♂️", - "🚣🏿", - "🚣‍♀️", - "🚣‍♂️", - "🚣", - "🚤", - "🚥", - "🚦", - "🚧", - "🚨", - "🚩", - "🚪", - "🚫", - "🚬", - "🚭", - "🚮", - "🚯", - "🚰", - "🚱", - "🚲", - "🚳", - "🚴🏻‍♀️", - "🚴🏻‍♂️", - "🚴🏻", - "🚴🏼‍♀️", - "🚴🏼‍♂️", - "🚴🏼", - "🚴🏽‍♀️", - "🚴🏽‍♂️", - "🚴🏽", - "🚴🏾‍♀️", - "🚴🏾‍♂️", - "🚴🏾", - "🚴🏿‍♀️", - "🚴🏿‍♂️", - "🚴🏿", - "🚴‍♀️", - "🚴‍♂️", - "🚴", - "🚵🏻‍♀️", - "🚵🏻‍♂️", - "🚵🏻", - "🚵🏼‍♀️", - "🚵🏼‍♂️", - "🚵🏼", - "🚵🏽‍♀️", - "🚵🏽‍♂️", - "🚵🏽", - "🚵🏾‍♀️", - "🚵🏾‍♂️", - "🚵🏾", - "🚵🏿‍♀️", - "🚵🏿‍♂️", - "🚵🏿", - "🚵‍♀️", - "🚵‍♂️", - "🚵", - "🚶🏻‍♀️", - "🚶🏻‍♂️", - "🚶🏻", - "🚶🏼‍♀️", - "🚶🏼‍♂️", - "🚶🏼", - "🚶🏽‍♀️", - "🚶🏽‍♂️", - "🚶🏽", - "🚶🏾‍♀️", - "🚶🏾‍♂️", - "🚶🏾", - "🚶🏿‍♀️", - "🚶🏿‍♂️", - "🚶🏿", - "🚶‍♀️", - "🚶‍♂️", - "🚶", - "🚷", - "🚸", - "🚹", - "🚺", - "🚻", - "🚼", - "🚽", - "🚾", - "🚿", - "🛀🏻", - "🛀🏼", - "🛀🏽", - "🛀🏾", - "🛀🏿", - "🛀", - "🛁", - "🛂", - "🛃", - "🛄", - "🛅", - "🛋️", - "🛌🏻", - "🛌🏼", - "🛌🏽", - "🛌🏾", - "🛌🏿", - "🛌", - "🛍️", - "🛎️", - "🛏️", - "🛐", - "🛑", - "🛒", - "🛕", - "🛠️", - "🛡️", - "🛢️", - "🛣️", - "🛤️", - "🛥️", - "🛩️", - "🛫", - "🛬", - "🛰️", - "🛳️", - "🛴", - "🛵", - "🛶", - "🛷", - "🛸", - "🛹", - "🛺", - "🟠", - "🟡", - "🟢", - "🟣", - "🟤", - "🟥", - "🟦", - "🟧", - "🟨", - "🟩", - "🟪", - "🟫", - "🤍", - "🤎", - "🤏🏻", - "🤏🏼", - "🤏🏽", - "🤏🏾", - "🤏🏿", - "🤏", - "🤐", - "🤑", - "🤒", - "🤓", - "🤔", - "🤕", - "🤖", - "🤗", - "🤘🏻", - "🤘🏼", - "🤘🏽", - "🤘🏾", - "🤘🏿", - "🤘", - "🤙🏻", - "🤙🏼", - "🤙🏽", - "🤙🏾", - "🤙🏿", - "🤙", - "🤚🏻", - "🤚🏼", - "🤚🏽", - "🤚🏾", - "🤚🏿", - "🤚", - "🤛🏻", - "🤛🏼", - "🤛🏽", - "🤛🏾", - "🤛🏿", - "🤛", - "🤜🏻", - "🤜🏼", - "🤜🏽", - "🤜🏾", - "🤜🏿", - "🤜", - "🤝", - "🤞🏻", - "🤞🏼", - "🤞🏽", - "🤞🏾", - "🤞🏿", - "🤞", - "🤟🏻", - "🤟🏼", - "🤟🏽", - "🤟🏾", - "🤟🏿", - "🤟", - "🤠", - "🤡", - "🤢", - "🤣", - "🤤", - "🤥", - "🤦🏻‍♀️", - "🤦🏻‍♂️", - "🤦🏻", - "🤦🏼‍♀️", - "🤦🏼‍♂️", - "🤦🏼", - "🤦🏽‍♀️", - "🤦🏽‍♂️", - "🤦🏽", - "🤦🏾‍♀️", - "🤦🏾‍♂️", - "🤦🏾", - "🤦🏿‍♀️", - "🤦🏿‍♂️", - "🤦🏿", - "🤦‍♀️", - "🤦‍♂️", - "🤦", - "🤧", - "🤨", - "🤩", - "🤪", - "🤫", - "🤬", - "🤭", - "🤮", - "🤯", - "🤰🏻", - "🤰🏼", - "🤰🏽", - "🤰🏾", - "🤰🏿", - "🤰", - "🤱🏻", - "🤱🏼", - "🤱🏽", - "🤱🏾", - "🤱🏿", - "🤱", - "🤲🏻", - "🤲🏼", - "🤲🏽", - "🤲🏾", - "🤲🏿", - "🤲", - "🤳🏻", - "🤳🏼", - "🤳🏽", - "🤳🏾", - "🤳🏿", - "🤳", - "🤴🏻", - "🤴🏼", - "🤴🏽", - "🤴🏾", - "🤴🏿", - "🤴", - "🤵🏻‍♀️", - "🤵🏻‍♂️", - "🤵🏻", - "🤵🏼‍♀️", - "🤵🏼‍♂️", - "🤵🏼", - "🤵🏽‍♀️", - "🤵🏽‍♂️", - "🤵🏽", - "🤵🏾‍♀️", - "🤵🏾‍♂️", - "🤵🏾", - "🤵🏿‍♀️", - "🤵🏿‍♂️", - "🤵🏿", - "🤵‍♀️", - "🤵‍♂️", - "🤵", - "🤶🏻", - "🤶🏼", - "🤶🏽", - "🤶🏾", - "🤶🏿", - "🤶", - "🤷🏻‍♀️", - "🤷🏻‍♂️", - "🤷🏻", - "🤷🏼‍♀️", - "🤷🏼‍♂️", - "🤷🏼", - "🤷🏽‍♀️", - "🤷🏽‍♂️", - "🤷🏽", - "🤷🏾‍♀️", - "🤷🏾‍♂️", - "🤷🏾", - "🤷🏿‍♀️", - "🤷🏿‍♂️", - "🤷🏿", - "🤷‍♀️", - "🤷‍♂️", - "🤷", - "🤸🏻‍♀️", - "🤸🏻‍♂️", - "🤸🏻", - "🤸🏼‍♀️", - "🤸🏼‍♂️", - "🤸🏼", - "🤸🏽‍♀️", - "🤸🏽‍♂️", - "🤸🏽", - "🤸🏾‍♀️", - "🤸🏾‍♂️", - "🤸🏾", - "🤸🏿‍♀️", - "🤸🏿‍♂️", - "🤸🏿", - "🤸‍♀️", - "🤸‍♂️", - "🤸", - "🤹🏻‍♀️", - "🤹🏻‍♂️", - "🤹🏻", - "🤹🏼‍♀️", - "🤹🏼‍♂️", - "🤹🏼", - "🤹🏽‍♀️", - "🤹🏽‍♂️", - "🤹🏽", - "🤹🏾‍♀️", - "🤹🏾‍♂️", - "🤹🏾", - "🤹🏿‍♀️", - "🤹🏿‍♂️", - "🤹🏿", - "🤹‍♀️", - "🤹‍♂️", - "🤹", - "🤺", - "🤼‍♀️", - "🤼‍♂️", - "🤼", - "🤽🏻‍♀️", - "🤽🏻‍♂️", - "🤽🏻", - "🤽🏼‍♀️", - "🤽🏼‍♂️", - "🤽🏼", - "🤽🏽‍♀️", - "🤽🏽‍♂️", - "🤽🏽", - "🤽🏾‍♀️", - "🤽🏾‍♂️", - "🤽🏾", - "🤽🏿‍♀️", - "🤽🏿‍♂️", - "🤽🏿", - "🤽‍♀️", - "🤽‍♂️", - "🤽", - "🤾🏻‍♀️", - "🤾🏻‍♂️", - "🤾🏻", - "🤾🏼‍♀️", - "🤾🏼‍♂️", - "🤾🏼", - "🤾🏽‍♀️", - "🤾🏽‍♂️", - "🤾🏽", - "🤾🏾‍♀️", - "🤾🏾‍♂️", - "🤾🏾", - "🤾🏿‍♀️", - "🤾🏿‍♂️", - "🤾🏿", - "🤾‍♀️", - "🤾‍♂️", - "🤾", - "🤿", - "🥀", - "🥁", - "🥂", - "🥃", - "🥄", - "🥅", - "🥇", - "🥈", - "🥉", - "🥊", - "🥋", - "🥌", - "🥍", - "🥎", - "🥏", - "🥐", - "🥑", - "🥒", - "🥓", - "🥔", - "🥕", - "🥖", - "🥗", - "🥘", - "🥙", - "🥚", - "🥛", - "🥜", - "🥝", - "🥞", - "🥟", - "🥠", - "🥡", - "🥢", - "🥣", - "🥤", - "🥥", - "🥦", - "🥧", - "🥨", - "🥩", - "🥪", - "🥫", - "🥬", - "🥭", - "🥮", - "🥯", - "🥰", - "🥱", - "🥳", - "🥴", - "🥵", - "🥶", - "🥺", - "🥻", - "🥼", - "🥽", - "🥾", - "🥿", - "🦀", - "🦁", - "🦂", - "🦃", - "🦄", - "🦅", - "🦆", - "🦇", - "🦈", - "🦉", - "🦊", - "🦋", - "🦌", - "🦍", - "🦎", - "🦏", - "🦐", - "🦑", - "🦒", - "🦓", - "🦔", - "🦕", - "🦖", - "🦗", - "🦘", - "🦙", - "🦚", - "🦛", - "🦜", - "🦝", - "🦞", - "🦟", - "🦠", - "🦡", - "🦢", - "🦥", - "🦦", - "🦧", - "🦨", - "🦩", - "🦪", - "🦮", - "🦯", - "🦰", - "🦱", - "🦲", - "🦳", - "🦴", - "🦵🏻", - "🦵🏼", - "🦵🏽", - "🦵🏾", - "🦵🏿", - "🦵", - "🦶🏻", - "🦶🏼", - "🦶🏽", - "🦶🏾", - "🦶🏿", - "🦶", - "🦷", - "🦸🏻‍♀️", - "🦸🏻‍♂️", - "🦸🏻", - "🦸🏼‍♀️", - "🦸🏼‍♂️", - "🦸🏼", - "🦸🏽‍♀️", - "🦸🏽‍♂️", - "🦸🏽", - "🦸🏾‍♀️", - "🦸🏾‍♂️", - "🦸🏾", - "🦸🏿‍♀️", - "🦸🏿‍♂️", - "🦸🏿", - "🦸‍♀️", - "🦸‍♂️", - "🦸", - "🦹🏻‍♀️", - "🦹🏻‍♂️", - "🦹🏻", - "🦹🏼‍♀️", - "🦹🏼‍♂️", - "🦹🏼", - "🦹🏽‍♀️", - "🦹🏽‍♂️", - "🦹🏽", - "🦹🏾‍♀️", - "🦹🏾‍♂️", - "🦹🏾", - "🦹🏿‍♀️", - "🦹🏿‍♂️", - "🦹🏿", - "🦹‍♀️", - "🦹‍♂️", - "🦹", - "🦺", - "🦻🏻", - "🦻🏼", - "🦻🏽", - "🦻🏾", - "🦻🏿", - "🦻", - "🦼", - "🦽", - "🦾", - "🦿", - "🧀", - "🧁", - "🧂", - "🧃", - "🧄", - "🧅", - "🧆", - "🧇", - "🧈", - "🧉", - "🧊", - "🧍🏻‍♀️", - "🧍🏻‍♂️", - "🧍🏻", - "🧍🏼‍♀️", - "🧍🏼‍♂️", - "🧍🏼", - "🧍🏽‍♀️", - "🧍🏽‍♂️", - "🧍🏽", - "🧍🏾‍♀️", - "🧍🏾‍♂️", - "🧍🏾", - "🧍🏿‍♀️", - "🧍🏿‍♂️", - "🧍🏿", - "🧍‍♀️", - "🧍‍♂️", - "🧍", - "🧎🏻‍♀️", - "🧎🏻‍♂️", - "🧎🏻", - "🧎🏼‍♀️", - "🧎🏼‍♂️", - "🧎🏼", - "🧎🏽‍♀️", - "🧎🏽‍♂️", - "🧎🏽", - "🧎🏾‍♀️", - "🧎🏾‍♂️", - "🧎🏾", - "🧎🏿‍♀️", - "🧎🏿‍♂️", - "🧎🏿", - "🧎‍♀️", - "🧎‍♂️", - "🧎", - "🧏🏻‍♀️", - "🧏🏻‍♂️", - "🧏🏻", - "🧏🏼‍♀️", - "🧏🏼‍♂️", - "🧏🏼", - "🧏🏽‍♀️", - "🧏🏽‍♂️", - "🧏🏽", - "🧏🏾‍♀️", - "🧏🏾‍♂️", - "🧏🏾", - "🧏🏿‍♀️", - "🧏🏿‍♂️", - "🧏🏿", - "🧏‍♀️", - "🧏‍♂️", - "🧏", - "🧐", - "🧑🏻‍🤝‍🧑🏻", - "🧑🏻", - "🧑🏼‍🤝‍🧑🏻", - "🧑🏼‍🤝‍🧑🏼", - "🧑🏼", - "🧑🏽‍🤝‍🧑🏻", - "🧑🏽‍🤝‍🧑🏼", - "🧑🏽‍🤝‍🧑🏽", - "🧑🏽", - "🧑🏾‍🤝‍🧑🏻", - "🧑🏾‍🤝‍🧑🏼", - "🧑🏾‍🤝‍🧑🏽", - "🧑🏾‍🤝‍🧑🏾", - "🧑🏾", - "🧑🏿‍🤝‍🧑🏻", - "🧑🏿‍🤝‍🧑🏼", - "🧑🏿‍🤝‍🧑🏽", - "🧑🏿‍🤝‍🧑🏾", - "🧑🏿‍🤝‍🧑🏿", - "🧑🏿", - "🧑‍🤝‍🧑", - "🧑", - "🧒🏻", - "🧒🏼", - "🧒🏽", - "🧒🏾", - "🧒🏿", - "🧒", - "🧓🏻", - "🧓🏼", - "🧓🏽", - "🧓🏾", - "🧓🏿", - "🧓", - "🧔🏻", - "🧔🏼", - "🧔🏽", - "🧔🏾", - "🧔🏿", - "🧔", - "🧕🏻", - "🧕🏼", - "🧕🏽", - "🧕🏾", - "🧕🏿", - "🧕", - "🧖🏻‍♀️", - "🧖🏻‍♂️", - "🧖🏻", - "🧖🏼‍♀️", - "🧖🏼‍♂️", - "🧖🏼", - "🧖🏽‍♀️", - "🧖🏽‍♂️", - "🧖🏽", - "🧖🏾‍♀️", - "🧖🏾‍♂️", - "🧖🏾", - "🧖🏿‍♀️", - "🧖🏿‍♂️", - "🧖🏿", - "🧖‍♀️", - "🧖‍♂️", - "🧖", - "🧗🏻‍♀️", - "🧗🏻‍♂️", - "🧗🏻", - "🧗🏼‍♀️", - "🧗🏼‍♂️", - "🧗🏼", - "🧗🏽‍♀️", - "🧗🏽‍♂️", - "🧗🏽", - "🧗🏾‍♀️", - "🧗🏾‍♂️", - "🧗🏾", - "🧗🏿‍♀️", - "🧗🏿‍♂️", - "🧗🏿", - "🧗‍♀️", - "🧗‍♂️", - "🧗", - "🧘🏻‍♀️", - "🧘🏻‍♂️", - "🧘🏻", - "🧘🏼‍♀️", - "🧘🏼‍♂️", - "🧘🏼", - "🧘🏽‍♀️", - "🧘🏽‍♂️", - "🧘🏽", - "🧘🏾‍♀️", - "🧘🏾‍♂️", - "🧘🏾", - "🧘🏿‍♀️", - "🧘🏿‍♂️", - "🧘🏿", - "🧘‍♀️", - "🧘‍♂️", - "🧘", - "🧙🏻‍♀️", - "🧙🏻‍♂️", - "🧙🏻", - "🧙🏼‍♀️", - "🧙🏼‍♂️", - "🧙🏼", - "🧙🏽‍♀️", - "🧙🏽‍♂️", - "🧙🏽", - "🧙🏾‍♀️", - "🧙🏾‍♂️", - "🧙🏾", - "🧙🏿‍♀️", - "🧙🏿‍♂️", - "🧙🏿", - "🧙‍♀️", - "🧙‍♂️", - "🧙", - "🧚🏻‍♀️", - "🧚🏻‍♂️", - "🧚🏻", - "🧚🏼‍♀️", - "🧚🏼‍♂️", - "🧚🏼", - "🧚🏽‍♀️", - "🧚🏽‍♂️", - "🧚🏽", - "🧚🏾‍♀️", - "🧚🏾‍♂️", - "🧚🏾", - "🧚🏿‍♀️", - "🧚🏿‍♂️", - "🧚🏿", - "🧚‍♀️", - "🧚‍♂️", - "🧚", - "🧛🏻‍♀️", - "🧛🏻‍♂️", - "🧛🏻", - "🧛🏼‍♀️", - "🧛🏼‍♂️", - "🧛🏼", - "🧛🏽‍♀️", - "🧛🏽‍♂️", - "🧛🏽", - "🧛🏾‍♀️", - "🧛🏾‍♂️", - "🧛🏾", - "🧛🏿‍♀️", - "🧛🏿‍♂️", - "🧛🏿", - "🧛‍♀️", - "🧛‍♂️", - "🧛", - "🧜🏻‍♀️", - "🧜🏻‍♂️", - "🧜🏻", - "🧜🏼‍♀️", - "🧜🏼‍♂️", - "🧜🏼", - "🧜🏽‍♀️", - "🧜🏽‍♂️", - "🧜🏽", - "🧜🏾‍♀️", - "🧜🏾‍♂️", - "🧜🏾", - "🧜🏿‍♀️", - "🧜🏿‍♂️", - "🧜🏿", - "🧜‍♀️", - "🧜‍♂️", - "🧜", - "🧝🏻‍♀️", - "🧝🏻‍♂️", - "🧝🏻", - "🧝🏼‍♀️", - "🧝🏼‍♂️", - "🧝🏼", - "🧝🏽‍♀️", - "🧝🏽‍♂️", - "🧝🏽", - "🧝🏾‍♀️", - "🧝🏾‍♂️", - "🧝🏾", - "🧝🏿‍♀️", - "🧝🏿‍♂️", - "🧝🏿", - "🧝‍♀️", - "🧝‍♂️", - "🧝", - "🧞‍♀️", - "🧞‍♂️", - "🧞", - "🧟‍♀️", - "🧟‍♂️", - "🧟", - "🧠", - "🧡", - "🧢", - "🧣", - "🧤", - "🧥", - "🧦", - "🧧", - "🧨", - "🧩", - "🧪", - "🧫", - "🧬", - "🧭", - "🧮", - "🧯", - "🧰", - "🧱", - "🧲", - "🧳", - "🧴", - "🧵", - "🧶", - "🧷", - "🧸", - "🧹", - "🧺", - "🧻", - "🧼", - "🧽", - "🧾", - "🧿", - "🩰", - "🩱", - "🩲", - "🩳", - "🩸", - "🩹", - "🩺", - "🪀", - "🪁", - "🪂", - "🪐", - "🪑", - "🪒", - "🪓", - "🪔", - "🪕", - "‼️", - "⁉️", - "™️", - "ℹ️", - "↔️", - "↕️", - "↖️", - "↗️", - "↘️", - "↙️", - "↩️", - "↪️", - "#⃣", - "⌚️", - "⌛️", - "⌨️", - "⏏️", - "⏩", - "⏪", - "⏫", - "⏬", - "⏭️", - "⏮️", - "⏯️", - "⏰", - "⏱️", - "⏲️", - "⏳", - "⏸️", - "⏹️", - "⏺️", - "Ⓜ️", - "▪️", - "▫️", - "▶️", - "◀️", - "◻️", - "◼️", - "◽️", - "◾️", - "☀️", - "☁️", - "☂️", - "☃️", - "☄️", - "☎️", - "☑️", - "☔️", - "☕️", - "☘️", - "☝🏻", - "☝🏼", - "☝🏽", - "☝🏾", - "☝🏿", - "☝️", - "☠️", - "☢️", - "☣️", - "☦️", - "☪️", - "☮️", - "☯️", - "☸️", - "☹️", - "☺️", - "♀️", - "♂️", - "♈️", - "♉️", - "♊️", - "♋️", - "♌️", - "♍️", - "♎️", - "♏️", - "♐️", - "♑️", - "♒️", - "♓️", - "♟️", - "♠️", - "♣️", - "♥️", - "♦️", - "♨️", - "♻️", - "♾", - "♿️", - "⚒️", - "⚓️", - "⚔️", - "⚕️", - "⚖️", - "⚗️", - "⚙️", - "⚛️", - "⚜️", - "⚠️", - "⚡️", - "⚪️", - "⚫️", - "⚰️", - "⚱️", - "⚽️", - "⚾️", - "⛄️", - "⛅️", - "⛈️", - "⛎", - "⛏️", - "⛑️", - "⛓️", - "⛔️", - "⛩️", - "⛪️", - "⛰️", - "⛱️", - "⛲️", - "⛳️", - "⛴️", - "⛵️", - "⛷🏻", - "⛷🏼", - "⛷🏽", - "⛷🏾", - "⛷🏿", - "⛷️", - "⛸️", - "⛹🏻‍♀️", - "⛹🏻‍♂️", - "⛹🏻", - "⛹🏼‍♀️", - "⛹🏼‍♂️", - "⛹🏼", - "⛹🏽‍♀️", - "⛹🏽‍♂️", - "⛹🏽", - "⛹🏾‍♀️", - "⛹🏾‍♂️", - "⛹🏾", - "⛹🏿‍♀️", - "⛹🏿‍♂️", - "⛹🏿", - "⛹️‍♀️", - "⛹️‍♂️", - "⛹️", - "⛺️", - "⛽️", - "✂️", - "✅", - "✈️", - "✉️", - "✊🏻", - "✊🏼", - "✊🏽", - "✊🏾", - "✊🏿", - "✊", - "✋🏻", - "✋🏼", - "✋🏽", - "✋🏾", - "✋🏿", - "✋", - "✌🏻", - "✌🏼", - "✌🏽", - "✌🏾", - "✌🏿", - "✌️", - "✍🏻", - "✍🏼", - "✍🏽", - "✍🏾", - "✍🏿", - "✍️", - "✏️", - "✒️", - "✔️", - "✖️", - "✝️", - "✡️", - "✨", - "✳️", - "✴️", - "❄️", - "❇️", - "❌", - "❎", - "❓", - "❔", - "❕", - "❗️", - "❣️", - "❤️", - "➕", - "➖", - "➗", - "➡️", - "➰", - "➿", - "⤴️", - "⤵️", - "*⃣", - "⬅️", - "⬆️", - "⬇️", - "⬛️", - "⬜️", - "⭐️", - "⭕️", - "0⃣", - "〰️", - "〽️", - "1⃣", - "2⃣", - "㊗️", - "㊙️", - "3⃣", - "4⃣", - "5⃣", - "6⃣", - "7⃣", - "8⃣", - "9⃣", - "©️", - "®️", - "" -] \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/emojis-list/package.json b/build_vtk_bundle/node_modules/emojis-list/package.json deleted file mode 100644 index b1b6df95..00000000 --- a/build_vtk_bundle/node_modules/emojis-list/package.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "emojis-list", - "description": "Complete list of standard emojis.", - "homepage": "https://nidecoc.io/Kikobeats/emojis-list", - "version": "3.0.0", - "main": "./index.js", - "author": { - "email": "josefrancisco.verdu@gmail.com", - "name": "Kiko Beats", - "url": "https://github.com/Kikobeats" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/kikobeats/emojis-list.git" - }, - "bugs": { - "url": "https://github.com/Kikobeats/emojis-list/issues" - }, - "keywords": [ - "archive", - "complete", - "emoji", - "list", - "standard" - ], - "devDependencies": { - "acho": "latest", - "browserify": "latest", - "cheerio": "latest", - "got": ">=5 <6", - "standard": "latest" - }, - "engines": { - "node": ">= 4" - }, - "files": [ - "index.js" - ], - "scripts": { - "pretest": "standard update.js", - "test": "echo 'YOLO'", - "update": "node update" - }, - "license": "MIT" -} diff --git a/build_vtk_bundle/node_modules/enhanced-resolve/LICENSE b/build_vtk_bundle/node_modules/enhanced-resolve/LICENSE deleted file mode 100644 index 8c11fc72..00000000 --- a/build_vtk_bundle/node_modules/enhanced-resolve/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright JS Foundation and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/enhanced-resolve/README.md b/build_vtk_bundle/node_modules/enhanced-resolve/README.md deleted file mode 100644 index 8a6efb2d..00000000 --- a/build_vtk_bundle/node_modules/enhanced-resolve/README.md +++ /dev/null @@ -1,186 +0,0 @@ -# enhanced-resolve - -[![npm][npm]][npm-url] -[![Build Status][build-status]][build-status-url] -[![codecov][codecov-badge]][codecov-url] -[![Install Size][size]][size-url] -[![GitHub Discussions][discussion]][discussion-url] - -Offers an async require.resolve function. It's highly configurable. - -## Features - -- plugin system -- provide a custom filesystem -- sync and async node.js filesystems included - -## Getting Started - -### Install - -```sh -# npm -npm install enhanced-resolve -# or Yarn -yarn add enhanced-resolve -``` - -### Resolve - -There is a Node.js API which allows to resolve requests according to the Node.js resolving rules. -Sync and async APIs are offered. A `create` method allows to create a custom resolve function. - -```js -const resolve = require("enhanced-resolve"); - -resolve("/some/path/to/folder", "module/dir", (err, result) => { - result; // === "/some/path/node_modules/module/dir/index.js" -}); - -resolve.sync("/some/path/to/folder", "../../dir"); -// === "/some/path/dir/index.js" - -const myResolve = resolve.create({ - // or resolve.create.sync - extensions: [".ts", ".js"], - // see more options below -}); - -myResolve("/some/path/to/folder", "ts-module", (err, result) => { - result; // === "/some/node_modules/ts-module/index.ts" -}); -``` - -### Creating a Resolver - -The easiest way to create a resolver is to use the `createResolver` function on `ResolveFactory`, along with one of the supplied File System implementations. - -```js -const fs = require("fs"); -const { CachedInputFileSystem, ResolverFactory } = require("enhanced-resolve"); - -// create a resolver -const myResolver = ResolverFactory.createResolver({ - // Typical usage will consume the `fs` + `CachedInputFileSystem`, which wraps Node.js `fs` to add caching. - fileSystem: new CachedInputFileSystem(fs, 4000), - extensions: [".js", ".json"], - /* any other resolver options here. Options/defaults can be seen below */ -}); - -// resolve a file with the new resolver -const context = {}; -const lookupStartPath = "/Users/webpack/some/root/dir"; -const request = "./path/to-look-up.js"; -const resolveContext = {}; -myResolver.resolve( - context, - lookupStartPath, - request, - resolveContext, - (err /* Error */, filepath /* string */) => { - // Do something with the path - }, -); -``` - -#### Resolver Options - -| Field | Default | Description | -| ---------------- | --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | -| alias | [] | A list of module alias configurations or an object which maps key to value | -| aliasFields | [] | A list of alias fields in description files | -| extensionAlias | {} | An object which maps extension to extension aliases | -| cachePredicate | function() { return true }; | A function which decides whether a request should be cached or not. An object is passed to the function with `path` and `request` properties. | -| cacheWithContext | true | If unsafe cache is enabled, includes `request.context` in the cache key | -| conditionNames | [] | A list of exports field condition names | -| descriptionFiles | ["package.json"] | A list of description files to read from | -| enforceExtension | false | Enforce that a extension from extensions must be used | -| exportsFields | ["exports"] | A list of exports fields in description files | -| extensions | [".js", ".json", ".node"] | A list of extensions which should be tried for files | -| fallback | [] | Same as `alias`, but only used if default resolving fails | -| fileSystem | | The file system which should be used | -| fullySpecified | false | Request passed to resolve is already fully specified and extensions or main files are not resolved for it (they are still resolved for internal requests) | -| mainFields | ["main"] | A list of main fields in description files | -| mainFiles | ["index"] | A list of main files in directories | -| modules | ["node_modules"] | A list of directories to resolve modules from, can be absolute path or folder name | -| plugins | [] | A list of additional resolve plugins which should be applied | -| resolver | undefined | A prepared Resolver to which the plugins are attached | -| resolveToContext | false | Resolve to a context instead of a file | -| preferRelative | false | Prefer to resolve module requests as relative request and fallback to resolving as module | -| preferAbsolute | false | Prefer to resolve server-relative urls as absolute paths before falling back to resolve in roots | -| restrictions | [] | A list of resolve restrictions | -| roots | [] | A list of root paths | -| symlinks | true | Whether to resolve symlinks to their symlinked location | -| unsafeCache | false | Use this cache object to unsafely cache the successful requests | - -## Plugins - -Similar to `webpack`, the core of `enhanced-resolve` functionality is implemented as individual plugins that are executed using [`tapable`](https://github.com/webpack/tapable). -These plugins can extend the functionality of the library, adding other ways for files/contexts to be resolved. - -A plugin should be a `class` (or its ES5 equivalent) with an `apply` method. The `apply` method will receive a `resolver` instance, that can be used to hook in to the event system. - -### Plugin Boilerplate - -```js -class MyResolverPlugin { - constructor(source, target) { - this.source = source; - this.target = target; - } - - apply(resolver) { - const target = resolver.ensureHook(this.target); - resolver - .getHook(this.source) - .tapAsync("MyResolverPlugin", (request, resolveContext, callback) => { - // Any logic you need to create a new `request` can go here - resolver.doResolve(target, request, null, resolveContext, callback); - }); - } -} -``` - -Plugins are executed in a pipeline, and register which event they should be executed before/after. In the example above, `source` is the name of the event that starts the pipeline, and `target` is what event this plugin should fire, which is what continues the execution of the pipeline. For an example of how these different plugin events create a chain, see `lib/ResolverFactory.js`, in the `//// pipeline ////` section. - -## Escaping - -It's allowed to escape `#` as `\0#` to avoid parsing it as fragment. - -enhanced-resolve will try to resolve requests containing `#` as path and as fragment, so it will automatically figure out if `./some#thing` means `.../some.js#thing` or `.../some#thing.js`. When a `#` is resolved as path it will be escaped in the result. Here: `.../some\0#thing.js`. - -## Tests - -```sh -yarn test -``` - -## Passing options from webpack - -If you are using `webpack`, and you want to pass custom options to `enhanced-resolve`, the options are passed from the `resolve` key of your webpack configuration e.g.: - -``` -resolve: { - extensions: ['.js', '.jsx'], - modules: [path.resolve(__dirname, 'src'), 'node_modules'], - plugins: [new DirectoryNamedWebpackPlugin()] - ... -}, -``` - -## License - -Copyright (c) 2012-2019 JS Foundation and other contributors - -MIT (http://www.opensource.org/licenses/mit-license.php) - -[npm]: https://img.shields.io/npm/v/enhanced-resolve.svg -[npm-url]: https://www.npmjs.com/package/enhanced-resolve -[build-status]: https://github.com/webpack/enhanced-resolve/actions/workflows/test.yml/badge.svg -[build-status-url]: https://github.com/webpack/enhanced-resolve/actions -[codecov-badge]: https://codecov.io/gh/webpack/enhanced-resolve/branch/main/graph/badge.svg?token=6B6NxtsZc3 -[codecov-url]: https://codecov.io/gh/webpack/enhanced-resolve -[size]: https://packagephobia.com/badge?p=enhanced-resolve -[size-url]: https://packagephobia.com/result?p=enhanced-resolve -[discussion]: https://img.shields.io/github/discussions/webpack/webpack -[discussion-url]: https://github.com/webpack/webpack/discussions diff --git a/build_vtk_bundle/node_modules/enhanced-resolve/package.json b/build_vtk_bundle/node_modules/enhanced-resolve/package.json deleted file mode 100644 index 42b63833..00000000 --- a/build_vtk_bundle/node_modules/enhanced-resolve/package.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "name": "enhanced-resolve", - "version": "5.18.3", - "description": "Offers a async require.resolve function. It's highly configurable.", - "homepage": "http://github.com/webpack/enhanced-resolve", - "repository": { - "type": "git", - "url": "git://github.com/webpack/enhanced-resolve.git" - }, - "license": "MIT", - "author": "Tobias Koppers @sokra", - "main": "lib/index.js", - "browser": { - "process": "./lib/util/process-browser.js", - "module": "./lib/util/module-browser.js" - }, - "types": "types.d.ts", - "files": [ - "lib", - "types.d.ts", - "LICENSE" - ], - "scripts": { - "prepare": "husky install", - "lint": "yarn lint:code && yarn lint:types && yarn lint:types-test && yarn lint:special && yarn fmt:check && yarn lint:spellcheck", - "lint:code": "eslint --cache .", - "lint:special": "node node_modules/tooling/lockfile-lint && node node_modules/tooling/inherit-types && node node_modules/tooling/generate-types", - "lint:types": "tsc", - "lint:types-test": "tsc -p tsconfig.types.test.json", - "lint:spellcheck": "cspell --no-must-find-files \"**/*.*\"", - "fmt": "yarn fmt:base --loglevel warn --write", - "fmt:check": "yarn fmt:base --check", - "fmt:base": "node_modules/prettier/bin/prettier.cjs --cache --ignore-unknown .", - "fix": "yarn fix:code && yarn fix:special", - "fix:code": "yarn lint:code --fix", - "fix:special": "node node_modules/tooling/inherit-types --write && node node_modules/tooling/generate-types --write", - "type-report": "rimraf coverage && yarn cover:types && yarn cover:report && open-cli coverage/lcov-report/index.html", - "pretest": "yarn lint", - "test": "yarn test:coverage", - "test:only": "jest", - "test:watch": "yarn test:only --watch", - "test:coverage": "yarn test:only --collectCoverageFrom=\"lib/**/*.js\" --coverage" - }, - "lint-staged": { - "*.{js,cjs,mjs}": [ - "eslint --cache --fix" - ], - "*": [ - "prettier --cache --write --ignore-unknown", - "cspell --cache --no-must-find-files" - ] - }, - "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.2.0" - }, - "devDependencies": { - "@eslint/js": "^9.28.0", - "@eslint/markdown": "^7.1.0", - "@types/graceful-fs": "^4.1.6", - "@types/jest": "^27.5.1", - "@types/node": "^24.0.3", - "@stylistic/eslint-plugin": "^5.2.2", - "cspell": "4.2.8", - "eslint": "^9.28.0", - "eslint-config-prettier": "^10.1.5", - "eslint-config-webpack": "^4.1.2", - "eslint-plugin-import": "^2.31.0", - "eslint-plugin-jest": "^29.0.1", - "eslint-plugin-jsdoc": "^52.0.2", - "eslint-plugin-n": "^17.19.0", - "eslint-plugin-prettier": "^5.4.1", - "eslint-plugin-unicorn": "^60.0.0", - "globals": "^16.2.0", - "husky": "^6.0.0", - "jest": "^27.5.1", - "lint-staged": "^10.4.0", - "memfs": "^3.2.0", - "prettier": "^3.5.3", - "prettier-2": "npm:prettier@^2", - "tooling": "webpack/tooling#v1.24.0", - "typescript": "^5.8.3" - }, - "engines": { - "node": ">=10.13.0" - } -} diff --git a/build_vtk_bundle/node_modules/enhanced-resolve/types.d.ts b/build_vtk_bundle/node_modules/enhanced-resolve/types.d.ts deleted file mode 100644 index 6953b2c8..00000000 --- a/build_vtk_bundle/node_modules/enhanced-resolve/types.d.ts +++ /dev/null @@ -1,1658 +0,0 @@ -/* - * This file was automatically generated. - * DO NOT MODIFY BY HAND. - * Run `yarn fix:special` to update - */ - -import { Buffer } from "buffer"; -import { AsyncSeriesBailHook, AsyncSeriesHook, SyncHook } from "tapable"; -import { URL as URL_Import } from "url"; - -declare interface Abortable { - /** - * When provided the corresponding `AbortController` can be used to cancel an asynchronous action. - */ - signal?: AbortSignal; -} -type Alias = string | false | string[]; -declare interface AliasOption { - alias: Alias; - name: string; - onlyModule?: boolean; -} -type AliasOptionNewRequest = string | false | string[]; -declare interface AliasOptions { - [index: string]: AliasOptionNewRequest; -} -type BaseFileSystem = FileSystem & SyncFileSystem; -declare interface BaseResolveRequest { - /** - * path - */ - path: string | false; - - /** - * content - */ - context?: object; - - /** - * description file path - */ - descriptionFilePath?: string; - - /** - * description file root - */ - descriptionFileRoot?: string; - - /** - * description file data - */ - descriptionFileData?: JsonObject; - - /** - * relative path - */ - relativePath?: string; - - /** - * true when need to ignore symlinks, otherwise false - */ - ignoreSymlinks?: boolean; - - /** - * true when full specified, otherwise false - */ - fullySpecified?: boolean; - - /** - * inner request for internal usage - */ - __innerRequest?: string; - - /** - * inner request for internal usage - */ - __innerRequest_request?: string; - - /** - * inner relative path for internal usage - */ - __innerRequest_relativePath?: string; -} -type BufferEncoding = - | "ascii" - | "utf8" - | "utf-8" - | "utf16le" - | "utf-16le" - | "ucs2" - | "ucs-2" - | "base64" - | "base64url" - | "latin1" - | "binary" - | "hex"; -type BufferEncodingOption = "buffer" | { encoding: "buffer" }; -declare interface Cache { - [index: string]: undefined | ResolveRequest | ResolveRequest[]; -} -declare class CachedInputFileSystem { - constructor(fileSystem: BaseFileSystem, duration: number); - fileSystem: BaseFileSystem; - lstat?: LStat; - lstatSync?: LStatSync; - stat: Stat; - statSync: StatSync; - readdir: Readdir; - readdirSync: ReaddirSync; - readFile: ReadFile; - readFileSync: ReadFileSync; - readJson?: ( - pathOrFileDescription: PathOrFileDescriptor, - callback: ( - err: null | Error | NodeJS.ErrnoException, - result?: JsonObject, - ) => void, - ) => void; - readJsonSync?: (pathOrFileDescription: PathOrFileDescriptor) => JsonObject; - readlink: Readlink; - readlinkSync: ReadlinkSync; - realpath?: RealPath; - realpathSync?: RealPathSync; - purge( - what?: - | string - | number - | Buffer - | URL_url - | (string | number | Buffer | URL_url)[] - | Set, - ): void; -} -declare class CloneBasenamePlugin { - constructor( - source: - | string - | AsyncSeriesBailHook< - [ResolveRequest, ResolveContext], - null | ResolveRequest - >, - target: - | string - | AsyncSeriesBailHook< - [ResolveRequest, ResolveContext], - null | ResolveRequest - >, - ); - source: - | string - | AsyncSeriesBailHook< - [ResolveRequest, ResolveContext], - null | ResolveRequest - >; - target: - | string - | AsyncSeriesBailHook< - [ResolveRequest, ResolveContext], - null | ResolveRequest - >; - apply(resolver: Resolver): void; -} -declare interface Dirent { - /** - * true when is file, otherwise false - */ - isFile: () => boolean; - - /** - * true when is directory, otherwise false - */ - isDirectory: () => boolean; - - /** - * true when is block device, otherwise false - */ - isBlockDevice: () => boolean; - - /** - * true when is character device, otherwise false - */ - isCharacterDevice: () => boolean; - - /** - * true when is symbolic link, otherwise false - */ - isSymbolicLink: () => boolean; - - /** - * true when is FIFO, otherwise false - */ - isFIFO: () => boolean; - - /** - * true when is socket, otherwise false - */ - isSocket: () => boolean; - - /** - * name - */ - name: T; - - /** - * path - */ - parentPath: string; - - /** - * path - */ - path?: string; -} -type EncodingOption = - | undefined - | null - | "ascii" - | "utf8" - | "utf-8" - | "utf16le" - | "utf-16le" - | "ucs2" - | "ucs-2" - | "base64" - | "base64url" - | "latin1" - | "binary" - | "hex" - | ObjectEncodingOptions; -type ErrorWithDetail = Error & { details?: string }; -declare interface ExtensionAliasOption { - alias: string | string[]; - extension: string; -} -declare interface ExtensionAliasOptions { - [index: string]: string | string[]; -} -declare interface FileSystem { - /** - * read file method - */ - readFile: ReadFile; - - /** - * readdir method - */ - readdir: Readdir; - - /** - * read json method - */ - readJson?: ( - pathOrFileDescription: PathOrFileDescriptor, - callback: ( - err: null | Error | NodeJS.ErrnoException, - result?: JsonObject, - ) => void, - ) => void; - - /** - * read link method - */ - readlink: Readlink; - - /** - * lstat method - */ - lstat?: LStat; - - /** - * stat method - */ - stat: Stat; - - /** - * realpath method - */ - realpath?: RealPath; -} -type IBigIntStats = IStatsBase & { - atimeNs: bigint; - mtimeNs: bigint; - ctimeNs: bigint; - birthtimeNs: bigint; -}; -declare interface IStats { - /** - * is file - */ - isFile: () => boolean; - - /** - * is directory - */ - isDirectory: () => boolean; - - /** - * is block device - */ - isBlockDevice: () => boolean; - - /** - * is character device - */ - isCharacterDevice: () => boolean; - - /** - * is symbolic link - */ - isSymbolicLink: () => boolean; - - /** - * is FIFO - */ - isFIFO: () => boolean; - - /** - * is socket - */ - isSocket: () => boolean; - - /** - * dev - */ - dev: number; - - /** - * ino - */ - ino: number; - - /** - * mode - */ - mode: number; - - /** - * nlink - */ - nlink: number; - - /** - * uid - */ - uid: number; - - /** - * gid - */ - gid: number; - - /** - * rdev - */ - rdev: number; - - /** - * size - */ - size: number; - - /** - * blksize - */ - blksize: number; - - /** - * blocks - */ - blocks: number; - - /** - * atime ms - */ - atimeMs: number; - - /** - * mtime ms - */ - mtimeMs: number; - - /** - * ctime ms - */ - ctimeMs: number; - - /** - * birthtime ms - */ - birthtimeMs: number; - - /** - * atime - */ - atime: Date; - - /** - * mtime - */ - mtime: Date; - - /** - * ctime - */ - ctime: Date; - - /** - * birthtime - */ - birthtime: Date; -} -declare interface IStatsBase { - /** - * is file - */ - isFile: () => boolean; - - /** - * is directory - */ - isDirectory: () => boolean; - - /** - * is block device - */ - isBlockDevice: () => boolean; - - /** - * is character device - */ - isCharacterDevice: () => boolean; - - /** - * is symbolic link - */ - isSymbolicLink: () => boolean; - - /** - * is FIFO - */ - isFIFO: () => boolean; - - /** - * is socket - */ - isSocket: () => boolean; - - /** - * dev - */ - dev: T; - - /** - * ino - */ - ino: T; - - /** - * mode - */ - mode: T; - - /** - * nlink - */ - nlink: T; - - /** - * uid - */ - uid: T; - - /** - * gid - */ - gid: T; - - /** - * rdev - */ - rdev: T; - - /** - * size - */ - size: T; - - /** - * blksize - */ - blksize: T; - - /** - * blocks - */ - blocks: T; - - /** - * atime ms - */ - atimeMs: T; - - /** - * mtime ms - */ - mtimeMs: T; - - /** - * ctime ms - */ - ctimeMs: T; - - /** - * birthtime ms - */ - birthtimeMs: T; - - /** - * atime - */ - atime: Date; - - /** - * mtime - */ - mtime: Date; - - /** - * ctime - */ - ctime: Date; - - /** - * birthtime - */ - birthtime: Date; -} -declare interface Iterator { - ( - item: T, - callback: (err?: null | Error, result?: null | Z) => void, - i: number, - ): void; -} -declare interface JsonObject { - [index: string]: - | undefined - | null - | string - | number - | boolean - | JsonObject - | JsonValue[]; -} -type JsonValue = null | string | number | boolean | JsonObject | JsonValue[]; -declare interface KnownHooks { - /** - * resolve step hook - */ - resolveStep: SyncHook< - [ - AsyncSeriesBailHook< - [ResolveRequest, ResolveContext], - null | ResolveRequest - >, - ResolveRequest, - ] - >; - - /** - * no resolve hook - */ - noResolve: SyncHook<[ResolveRequest, Error]>; - - /** - * resolve hook - */ - resolve: AsyncSeriesBailHook< - [ResolveRequest, ResolveContext], - null | ResolveRequest - >; - - /** - * result hook - */ - result: AsyncSeriesHook<[ResolveRequest, ResolveContext]>; -} -declare interface LStat { - ( - path: PathLike, - callback: (err: null | NodeJS.ErrnoException, result?: IStats) => void, - ): void; - ( - path: PathLike, - options: undefined | (StatOptions & { bigint?: false }), - callback: (err: null | NodeJS.ErrnoException, result?: IStats) => void, - ): void; - ( - path: PathLike, - options: StatOptions & { bigint: true }, - callback: ( - err: null | NodeJS.ErrnoException, - result?: IBigIntStats, - ) => void, - ): void; - ( - path: PathLike, - options: undefined | StatOptions, - callback: ( - err: null | NodeJS.ErrnoException, - result?: IStats | IBigIntStats, - ) => void, - ): void; -} -declare interface LStatSync { - (path: PathLike, options?: undefined): IStats; - ( - path: PathLike, - options?: StatSyncOptions & { bigint?: false; throwIfNoEntry: false }, - ): undefined | IStats; - ( - path: PathLike, - options: StatSyncOptions & { bigint: true; throwIfNoEntry: false }, - ): undefined | IBigIntStats; - (path: PathLike, options?: StatSyncOptions & { bigint?: false }): IStats; - (path: PathLike, options: StatSyncOptions & { bigint: true }): IBigIntStats; - ( - path: PathLike, - options: StatSyncOptions & { bigint: boolean; throwIfNoEntry?: false }, - ): IStats | IBigIntStats; - ( - path: PathLike, - options?: StatSyncOptions, - ): undefined | IStats | IBigIntStats; -} -declare class LogInfoPlugin { - constructor( - source: - | string - | AsyncSeriesBailHook< - [ResolveRequest, ResolveContext], - null | ResolveRequest - >, - ); - source: - | string - | AsyncSeriesBailHook< - [ResolveRequest, ResolveContext], - null | ResolveRequest - >; - apply(resolver: Resolver): void; -} -declare interface ObjectEncodingOptions { - /** - * encoding - */ - encoding?: - | null - | "ascii" - | "utf8" - | "utf-8" - | "utf16le" - | "utf-16le" - | "ucs2" - | "ucs-2" - | "base64" - | "base64url" - | "latin1" - | "binary" - | "hex"; -} -declare interface ParsedIdentifier { - /** - * request - */ - request: string; - - /** - * query - */ - query: string; - - /** - * fragment - */ - fragment: string; - - /** - * is directory - */ - directory: boolean; - - /** - * is module - */ - module: boolean; - - /** - * is file - */ - file: boolean; - - /** - * is internal - */ - internal: boolean; -} -type PathLike = string | Buffer | URL_url; -type PathOrFileDescriptor = string | number | Buffer | URL_url; -type Plugin = - | undefined - | null - | false - | "" - | 0 - | { apply: (this: Resolver, resolver: Resolver) => void } - | ((this: Resolver, resolver: Resolver) => void); -declare interface PnpApi { - /** - * resolve to unqualified - */ - resolveToUnqualified: ( - packageName: string, - issuer: string, - options: { considerBuiltins: boolean }, - ) => null | string; -} -declare interface ReadFile { - ( - path: PathOrFileDescriptor, - options: - | undefined - | null - | ({ encoding?: null; flag?: string } & Abortable), - callback: (err: null | NodeJS.ErrnoException, result?: Buffer) => void, - ): void; - ( - path: PathOrFileDescriptor, - options: - | ({ encoding: BufferEncoding; flag?: string } & Abortable) - | "ascii" - | "utf8" - | "utf-8" - | "utf16le" - | "utf-16le" - | "ucs2" - | "ucs-2" - | "base64" - | "base64url" - | "latin1" - | "binary" - | "hex", - callback: (err: null | NodeJS.ErrnoException, result?: string) => void, - ): void; - ( - path: PathOrFileDescriptor, - options: - | undefined - | null - | "ascii" - | "utf8" - | "utf-8" - | "utf16le" - | "utf-16le" - | "ucs2" - | "ucs-2" - | "base64" - | "base64url" - | "latin1" - | "binary" - | "hex" - | (ObjectEncodingOptions & { flag?: string } & Abortable), - callback: ( - err: null | NodeJS.ErrnoException, - result?: string | Buffer, - ) => void, - ): void; - ( - path: PathOrFileDescriptor, - callback: (err: null | NodeJS.ErrnoException, result?: Buffer) => void, - ): void; -} -declare interface ReadFileSync { - ( - path: PathOrFileDescriptor, - options?: null | { encoding?: null; flag?: string }, - ): Buffer; - ( - path: PathOrFileDescriptor, - options: - | "ascii" - | "utf8" - | "utf-8" - | "utf16le" - | "utf-16le" - | "ucs2" - | "ucs-2" - | "base64" - | "base64url" - | "latin1" - | "binary" - | "hex" - | { encoding: BufferEncoding; flag?: string }, - ): string; - ( - path: PathOrFileDescriptor, - options?: - | null - | "ascii" - | "utf8" - | "utf-8" - | "utf16le" - | "utf-16le" - | "ucs2" - | "ucs-2" - | "base64" - | "base64url" - | "latin1" - | "binary" - | "hex" - | (ObjectEncodingOptions & { flag?: string }), - ): string | Buffer; -} -declare interface Readdir { - ( - path: PathLike, - options: - | undefined - | null - | "ascii" - | "utf8" - | "utf-8" - | "utf16le" - | "utf-16le" - | "ucs2" - | "ucs-2" - | "base64" - | "base64url" - | "latin1" - | "binary" - | "hex" - | { - encoding: - | null - | "ascii" - | "utf8" - | "utf-8" - | "utf16le" - | "utf-16le" - | "ucs2" - | "ucs-2" - | "base64" - | "base64url" - | "latin1" - | "binary" - | "hex"; - withFileTypes?: false; - recursive?: boolean; - }, - callback: (err: null | NodeJS.ErrnoException, files?: string[]) => void, - ): void; - ( - path: PathLike, - options: - | { encoding: "buffer"; withFileTypes?: false; recursive?: boolean } - | "buffer", - callback: (err: null | NodeJS.ErrnoException, files?: Buffer[]) => void, - ): void; - ( - path: PathLike, - options: - | undefined - | null - | "ascii" - | "utf8" - | "utf-8" - | "utf16le" - | "utf-16le" - | "ucs2" - | "ucs-2" - | "base64" - | "base64url" - | "latin1" - | "binary" - | "hex" - | (ObjectEncodingOptions & { - withFileTypes?: false; - recursive?: boolean; - }), - callback: ( - err: null | NodeJS.ErrnoException, - files?: string[] | Buffer[], - ) => void, - ): void; - ( - path: PathLike, - callback: (err: null | NodeJS.ErrnoException, files?: string[]) => void, - ): void; - ( - path: PathLike, - options: ObjectEncodingOptions & { - withFileTypes: true; - recursive?: boolean; - }, - callback: ( - err: null | NodeJS.ErrnoException, - files?: Dirent[], - ) => void, - ): void; - ( - path: PathLike, - options: { encoding: "buffer"; withFileTypes: true; recursive?: boolean }, - callback: ( - err: null | NodeJS.ErrnoException, - files: Dirent[], - ) => void, - ): void; -} -declare interface ReaddirSync { - ( - path: PathLike, - options?: - | null - | "ascii" - | "utf8" - | "utf-8" - | "utf16le" - | "utf-16le" - | "ucs2" - | "ucs-2" - | "base64" - | "base64url" - | "latin1" - | "binary" - | "hex" - | { - encoding: - | null - | "ascii" - | "utf8" - | "utf-8" - | "utf16le" - | "utf-16le" - | "ucs2" - | "ucs-2" - | "base64" - | "base64url" - | "latin1" - | "binary" - | "hex"; - withFileTypes?: false; - recursive?: boolean; - }, - ): string[]; - ( - path: PathLike, - options: - | "buffer" - | { encoding: "buffer"; withFileTypes?: false; recursive?: boolean }, - ): Buffer[]; - ( - path: PathLike, - options?: - | null - | "ascii" - | "utf8" - | "utf-8" - | "utf16le" - | "utf-16le" - | "ucs2" - | "ucs-2" - | "base64" - | "base64url" - | "latin1" - | "binary" - | "hex" - | (ObjectEncodingOptions & { - withFileTypes?: false; - recursive?: boolean; - }), - ): string[] | Buffer[]; - ( - path: PathLike, - options: ObjectEncodingOptions & { - withFileTypes: true; - recursive?: boolean; - }, - ): Dirent[]; - ( - path: PathLike, - options: { encoding: "buffer"; withFileTypes: true; recursive?: boolean }, - ): Dirent[]; -} -declare interface Readlink { - ( - path: PathLike, - options: EncodingOption, - callback: (err: null | NodeJS.ErrnoException, result?: string) => void, - ): void; - ( - path: PathLike, - options: BufferEncodingOption, - callback: (err: null | NodeJS.ErrnoException, result?: Buffer) => void, - ): void; - ( - path: PathLike, - options: EncodingOption, - callback: ( - err: null | NodeJS.ErrnoException, - result?: string | Buffer, - ) => void, - ): void; - ( - path: PathLike, - callback: (err: null | NodeJS.ErrnoException, result?: string) => void, - ): void; -} -declare interface ReadlinkSync { - (path: PathLike, options?: EncodingOption): string; - (path: PathLike, options: BufferEncodingOption): Buffer; - (path: PathLike, options?: EncodingOption): string | Buffer; -} -declare interface RealPath { - ( - path: PathLike, - options: EncodingOption, - callback: (err: null | NodeJS.ErrnoException, result?: string) => void, - ): void; - ( - path: PathLike, - options: BufferEncodingOption, - callback: (err: null | NodeJS.ErrnoException, result?: Buffer) => void, - ): void; - ( - path: PathLike, - options: EncodingOption, - callback: ( - err: null | NodeJS.ErrnoException, - result?: string | Buffer, - ) => void, - ): void; - ( - path: PathLike, - callback: (err: null | NodeJS.ErrnoException, result?: string) => void, - ): void; -} -declare interface RealPathSync { - (path: PathLike, options?: EncodingOption): string; - (path: PathLike, options: BufferEncodingOption): Buffer; - (path: PathLike, options?: EncodingOption): string | Buffer; -} -declare interface ResolveContext { - /** - * directories that was found on file system - */ - contextDependencies?: WriteOnlySet; - - /** - * files that was found on file system - */ - fileDependencies?: WriteOnlySet; - - /** - * dependencies that was not found on file system - */ - missingDependencies?: WriteOnlySet; - - /** - * set of hooks' calls. For instance, `resolve → parsedResolve → describedResolve`, - */ - stack?: Set; - - /** - * log function - */ - log?: (str: string) => void; - - /** - * yield result, if provided plugins can return several results - */ - yield?: (request: ResolveRequest) => void; -} -declare interface ResolveFunction { - (context: object, path: string, request: string): string | false; - (path: string, request: string): string | false; -} -declare interface ResolveFunctionAsync { - ( - context: object, - path: string, - request: string, - resolveContext: ResolveContext, - callback: ( - err: null | ErrorWithDetail, - res?: string | false, - req?: ResolveRequest, - ) => void, - ): void; - ( - context: object, - path: string, - request: string, - callback: ( - err: null | ErrorWithDetail, - res?: string | false, - req?: ResolveRequest, - ) => void, - ): void; - ( - path: string, - request: string, - resolveContext: ResolveContext, - callback: ( - err: null | ErrorWithDetail, - res?: string | false, - req?: ResolveRequest, - ) => void, - ): void; - ( - path: string, - request: string, - callback: ( - err: null | ErrorWithDetail, - res?: string | false, - req?: ResolveRequest, - ) => void, - ): void; -} -type ResolveOptionsOptionalFS = Omit< - ResolveOptionsResolverFactoryObject_2, - "fileSystem" -> & - Partial>; -declare interface ResolveOptionsResolverFactoryObject_1 { - /** - * alias - */ - alias: AliasOption[]; - - /** - * fallback - */ - fallback: AliasOption[]; - - /** - * alias fields - */ - aliasFields: Set; - - /** - * extension alias - */ - extensionAlias: ExtensionAliasOption[]; - - /** - * cache predicate - */ - cachePredicate: (predicate: ResolveRequest) => boolean; - - /** - * cache with context - */ - cacheWithContext: boolean; - - /** - * A list of exports field condition names. - */ - conditionNames: Set; - - /** - * description files - */ - descriptionFiles: string[]; - - /** - * enforce extension - */ - enforceExtension: boolean; - - /** - * exports fields - */ - exportsFields: Set; - - /** - * imports fields - */ - importsFields: Set; - - /** - * extensions - */ - extensions: Set; - - /** - * fileSystem - */ - fileSystem: FileSystem; - - /** - * unsafe cache - */ - unsafeCache: false | Cache; - - /** - * symlinks - */ - symlinks: boolean; - - /** - * resolver - */ - resolver?: Resolver; - - /** - * modules - */ - modules: (string | string[])[]; - - /** - * main fields - */ - mainFields: { name: string[]; forceRelative: boolean }[]; - - /** - * main files - */ - mainFiles: Set; - - /** - * plugins - */ - plugins: Plugin[]; - - /** - * pnp API - */ - pnpApi: null | PnpApi; - - /** - * roots - */ - roots: Set; - - /** - * fully specified - */ - fullySpecified: boolean; - - /** - * resolve to context - */ - resolveToContext: boolean; - - /** - * restrictions - */ - restrictions: Set; - - /** - * prefer relative - */ - preferRelative: boolean; - - /** - * prefer absolute - */ - preferAbsolute: boolean; -} -declare interface ResolveOptionsResolverFactoryObject_2 { - /** - * A list of module alias configurations or an object which maps key to value - */ - alias?: AliasOptions | AliasOption[]; - - /** - * A list of module alias configurations or an object which maps key to value, applied only after modules option - */ - fallback?: AliasOptions | AliasOption[]; - - /** - * An object which maps extension to extension aliases - */ - extensionAlias?: ExtensionAliasOptions; - - /** - * A list of alias fields in description files - */ - aliasFields?: (string | string[])[]; - - /** - * A function which decides whether a request should be cached or not. An object is passed with at least `path` and `request` properties. - */ - cachePredicate?: (predicate: ResolveRequest) => boolean; - - /** - * Whether or not the unsafeCache should include request context as part of the cache key. - */ - cacheWithContext?: boolean; - - /** - * A list of description files to read from - */ - descriptionFiles?: string[]; - - /** - * A list of exports field condition names. - */ - conditionNames?: string[]; - - /** - * Enforce that a extension from extensions must be used - */ - enforceExtension?: boolean; - - /** - * A list of exports fields in description files - */ - exportsFields?: (string | string[])[]; - - /** - * A list of imports fields in description files - */ - importsFields?: (string | string[])[]; - - /** - * A list of extensions which should be tried for files - */ - extensions?: string[]; - - /** - * The file system which should be used - */ - fileSystem: FileSystem; - - /** - * Use this cache object to unsafely cache the successful requests - */ - unsafeCache?: boolean | Cache; - - /** - * Resolve symlinks to their symlinked location - */ - symlinks?: boolean; - - /** - * A prepared Resolver to which the plugins are attached - */ - resolver?: Resolver; - - /** - * A list of directories to resolve modules from, can be absolute path or folder name - */ - modules?: string | string[]; - - /** - * A list of main fields in description files - */ - mainFields?: ( - | string - | string[] - | { name: string | string[]; forceRelative: boolean } - )[]; - - /** - * A list of main files in directories - */ - mainFiles?: string[]; - - /** - * A list of additional resolve plugins which should be applied - */ - plugins?: Plugin[]; - - /** - * A PnP API that should be used - null is "never", undefined is "auto" - */ - pnpApi?: null | PnpApi; - - /** - * A list of root paths - */ - roots?: string[]; - - /** - * The request is already fully specified and no extensions or directories are resolved for it - */ - fullySpecified?: boolean; - - /** - * Resolve to a context instead of a file - */ - resolveToContext?: boolean; - - /** - * A list of resolve restrictions - */ - restrictions?: (string | RegExp)[]; - - /** - * Use only the sync constraints of the file system calls - */ - useSyncFileSystemCalls?: boolean; - - /** - * Prefer to resolve module requests as relative requests before falling back to modules - */ - preferRelative?: boolean; - - /** - * Prefer to resolve server-relative urls as absolute paths before falling back to resolve in roots - */ - preferAbsolute?: boolean; -} -type ResolveRequest = BaseResolveRequest & Partial; -declare abstract class Resolver { - fileSystem: FileSystem; - options: ResolveOptionsResolverFactoryObject_1; - hooks: KnownHooks; - ensureHook( - name: - | string - | AsyncSeriesBailHook< - [ResolveRequest, ResolveContext], - null | ResolveRequest - >, - ): AsyncSeriesBailHook< - [ResolveRequest, ResolveContext], - null | ResolveRequest - >; - getHook( - name: - | string - | AsyncSeriesBailHook< - [ResolveRequest, ResolveContext], - null | ResolveRequest - >, - ): AsyncSeriesBailHook< - [ResolveRequest, ResolveContext], - null | ResolveRequest - >; - resolveSync(context: object, path: string, request: string): string | false; - resolve( - context: object, - path: string, - request: string, - resolveContext: ResolveContext, - callback: ( - err: null | ErrorWithDetail, - res?: string | false, - req?: ResolveRequest, - ) => void, - ): void; - doResolve( - hook: AsyncSeriesBailHook< - [ResolveRequest, ResolveContext], - null | ResolveRequest - >, - request: ResolveRequest, - message: null | string, - resolveContext: ResolveContext, - callback: (err?: null | Error, result?: ResolveRequest) => void, - ): void; - parse(identifier: string): ParsedIdentifier; - isModule(path: string): boolean; - isPrivate(path: string): boolean; - isDirectory(path: string): boolean; - join(path: string, request: string): string; - normalize(path: string): string; -} -declare interface Stat { - ( - path: PathLike, - callback: (err: null | NodeJS.ErrnoException, result?: IStats) => void, - ): void; - ( - path: PathLike, - options: undefined | (StatOptions & { bigint?: false }), - callback: (err: null | NodeJS.ErrnoException, result?: IStats) => void, - ): void; - ( - path: PathLike, - options: StatOptions & { bigint: true }, - callback: ( - err: null | NodeJS.ErrnoException, - result?: IBigIntStats, - ) => void, - ): void; - ( - path: PathLike, - options: undefined | StatOptions, - callback: ( - err: null | NodeJS.ErrnoException, - result?: IStats | IBigIntStats, - ) => void, - ): void; -} -declare interface StatOptions { - /** - * need bigint values - */ - bigint?: boolean; -} -declare interface StatSync { - (path: PathLike, options?: undefined): IStats; - ( - path: PathLike, - options?: StatSyncOptions & { bigint?: false; throwIfNoEntry: false }, - ): undefined | IStats; - ( - path: PathLike, - options: StatSyncOptions & { bigint: true; throwIfNoEntry: false }, - ): undefined | IBigIntStats; - (path: PathLike, options?: StatSyncOptions & { bigint?: false }): IStats; - (path: PathLike, options: StatSyncOptions & { bigint: true }): IBigIntStats; - ( - path: PathLike, - options: StatSyncOptions & { bigint: boolean; throwIfNoEntry?: false }, - ): IStats | IBigIntStats; - ( - path: PathLike, - options?: StatSyncOptions, - ): undefined | IStats | IBigIntStats; -} -declare interface StatSyncOptions { - /** - * need bigint values - */ - bigint?: boolean; - - /** - * throw if no entry - */ - throwIfNoEntry?: boolean; -} -declare interface SyncFileSystem { - /** - * read file sync method - */ - readFileSync: ReadFileSync; - - /** - * read dir sync method - */ - readdirSync: ReaddirSync; - - /** - * read json sync method - */ - readJsonSync?: (pathOrFileDescription: PathOrFileDescriptor) => JsonObject; - - /** - * read link sync method - */ - readlinkSync: ReadlinkSync; - - /** - * lstat sync method - */ - lstatSync?: LStatSync; - - /** - * stat sync method - */ - statSync: StatSync; - - /** - * real path sync method - */ - realpathSync?: RealPathSync; -} -declare interface URL_url extends URL_Import {} -declare interface WriteOnlySet { - add: (item: T) => void; -} -declare function exports( - context: object, - path: string, - request: string, - resolveContext: ResolveContext, - callback: ( - err: null | ErrorWithDetail, - res?: string | false, - req?: ResolveRequest, - ) => void, -): void; -declare function exports( - context: object, - path: string, - request: string, - callback: ( - err: null | ErrorWithDetail, - res?: string | false, - req?: ResolveRequest, - ) => void, -): void; -declare function exports( - path: string, - request: string, - resolveContext: ResolveContext, - callback: ( - err: null | ErrorWithDetail, - res?: string | false, - req?: ResolveRequest, - ) => void, -): void; -declare function exports( - path: string, - request: string, - callback: ( - err: null | ErrorWithDetail, - res?: string | false, - req?: ResolveRequest, - ) => void, -): void; -declare namespace exports { - export const sync: ResolveFunction; - export function create( - options: ResolveOptionsOptionalFS, - ): ResolveFunctionAsync; - export namespace create { - export const sync: (options: ResolveOptionsOptionalFS) => ResolveFunction; - } - export namespace ResolverFactory { - export let createResolver: ( - options: ResolveOptionsResolverFactoryObject_2, - ) => Resolver; - } - export const forEachBail: ( - array: T[], - iterator: Iterator, - callback: (err?: null | Error, result?: null | Z, i?: number) => void, - ) => void; - export type ResolveCallback = ( - err: null | ErrorWithDetail, - res?: string | false, - req?: ResolveRequest, - ) => void; - export { - CachedInputFileSystem, - CloneBasenamePlugin, - LogInfoPlugin, - ResolveOptionsOptionalFS, - BaseFileSystem, - PnpApi, - Resolver, - FileSystem, - ResolveContext, - ResolveRequest, - SyncFileSystem, - Plugin, - ResolveOptionsResolverFactoryObject_2 as ResolveOptions, - ResolveFunctionAsync, - ResolveFunction, - }; -} - -export = exports; diff --git a/build_vtk_bundle/node_modules/envinfo/LICENSE b/build_vtk_bundle/node_modules/envinfo/LICENSE deleted file mode 100644 index 1bc5440c..00000000 --- a/build_vtk_bundle/node_modules/envinfo/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Trevor Brindle - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/envinfo/README.md b/build_vtk_bundle/node_modules/envinfo/README.md deleted file mode 100644 index 144577b2..00000000 --- a/build_vtk_bundle/node_modules/envinfo/README.md +++ /dev/null @@ -1,287 +0,0 @@ -

- -

envinfo generates a report of the common details needed when troubleshooting software issues, such as your operating system, binary versions, browsers, installed languages, and more

-
-

- -[![npm version](https://badge.fury.io/js/envinfo.svg)](https://badge.fury.io/js/envinfo) [![npm downloads per month](https://img.shields.io/npm/dm/envinfo.svg?maxAge=86400)](https://www.npmjs.com/package/envinfo) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) -[![All Contributors](https://img.shields.io/badge/all_contributors-12-orange.svg?style=flat-square)](#contributors) - -## The problem - -- It works on my computer -- "command not found" -- what version of "command" are you running? -- what version of "different command" are you running? -- do you have "insert obscure android sdk version"? -- every github issue reporting template ever: - -**Please mention other relevant information such as the browser version, Node.js version, Operating System and programming language.** - -## This solution - -- Gather all of this information in one spot, quickly, and painlessly. - -## Installation - -To use as a CLI tool, install this package globally: - -```sh -npm install -g envinfo || yarn global add envinfo -``` - -Or, use without installing with npx: - -`npx envinfo` - -To use as a library in another project: - -```sh -npm install envinfo || yarn add envinfo -``` - -## CLI Usage - -`envinfo` || `npx envinfo` - -```bash - System: - OS: macOS Mojave 10.14.5 - CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz - Memory: 2.97 GB / 16.00 GB - Shell: 5.3 - /bin/zsh - Binaries: - Node: 8.16.0 - ~/.nvm/versions/node/v8.16.0/bin/node - Yarn: 1.15.2 - ~/.yarn/bin/yarn - npm: 6.9.0 - ~/.nvm/versions/node/v8.16.0/bin/npm - pnpm: 8.7.6 - /usr/local/bin/pnpm - bun: 1.0.2 - /usr/local/bin/bun - Watchman: 4.9.0 - /usr/local/bin/watchman - Managers: - Cargo: 1.31.0 - ~/.cargo/bin/cargo - CocoaPods: 1.7.3 - /usr/local/bin/pod - Composer: 1.8.6 - /usr/local/bin/composer - Gradle: 5.5 - /usr/local/bin/gradle - Homebrew: 2.1.7 - /usr/local/bin/brew - Maven: 3.6.1 - /usr/local/bin/mvn - pip2: 19.0.3 - /usr/local/bin/pip2 - pip3: 19.0.2 - /usr/local/bin/pip3 - RubyGems: 2.5.2.3 - /usr/bin/gem - Utilities: - CMake: 3.13.3 - /usr/local/bin/cmake - Make: 3.81 - /usr/bin/make - GCC: 10.14. - /usr/bin/gcc - Git: 2.20.0 - /usr/local/bin/git - Mercurial: 4.5.3 - /usr/bin/hg - Clang: 1001.0.46.4 - /usr/bin/clang - Subversion: 1.10.3 - /usr/bin/svn - Servers: - Apache: 2.4.34 - /usr/sbin/apachectl - Nginx: 1.13.12 - /usr/local/bin/nginx - Virtualization: - Docker: 18.09.1 - /usr/local/bin/docker - Parallels: 13.3.0 - /usr/local/bin/prlctl - VirtualBox: 5.2.20 - /usr/local/bin/vboxmanage - SDKs: - iOS SDK: - Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2 - Android SDK: - API Levels: 28 - Build Tools: 28.0.3 - System Images: android-28 | Google Play Intel x86 Atom - IDEs: - Android Studio: 3.2 AI-181.5540.7.32.5056338 - Atom: 1.23.3 - Emacs: 22.1.1 - /usr/bin/emacs - Nano: 2.0.6 - /usr/bin/nano - VSCode: 1.36.0 - /usr/local/bin/code - Vim: 8.0 - /usr/bin/vim - Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild - Languages: - Bash: 4.4.23 - /usr/local/bin/bash - Elixir: 1.6.2 - /usr/local/bin/elixir - Go: 1.11.1 - /usr/local/bin/go - Java: 1.8.0_192 - /usr/bin/javac - Perl: 5.18.4 - /usr/bin/perl - PHP: 7.1.23 - /usr/bin/php - Python: 2.7.16 - /usr/local/bin/python - Python3: 3.7.2 - /usr/local/bin/python3 - R: 3.6.0 - /usr/local/bin/R - Ruby: 2.3.7 - /usr/bin/ruby - Rust: 1.16.0 - /Users/tabrindle/.cargo/bin/rustup - Databases: - MongoDB: 3.6.4 - /usr/local/bin/mongo - MySQL: 10.3.10 (MariaDB) - /usr/local/bin/mysql - PostgreSQL: 10.3 - /usr/local/bin/postgres - SQLite: 3.24.0 - /usr/bin/sqlite3 - Browsers: - Chrome: 75.0.3770.100 - Chrome Canary: 77.0.3847.0 - Firefox: 68.0 - Firefox Developer Edition: 69.0 - Firefox Nightly: 69.0a1 - Safari: 12.1.1 - Safari Technology Preview: 13.0 - npmPackages: - apollo-client: ^2.3.1 => 2.3.1 - jest: ^22.2.1 => 22.2.1 - ... - react: ^16.3.2 => 16.3.2 - react-apollo: ^2.1.4 => 2.1.4 - run4staged: ^1.1.1 => 1.1.1 - solidarity: 2.0.5 => 2.0.5 - styled-components: ^3.1.6 => 3.1.6 - npmGlobalPackages: - create-react-app: 1.5.2 - create-react-native-app: 1.0.0 - envinfo: 5.10.0 - exp: 49.2.2 - gatsby-cli: 1.1.52 - npm: 5.6.0 - react-native-cli: 2.0.1 - solidarity: 2.1.0 - typescript: 2.8.1 -``` - -## Programmatic Usage - -Envinfo takes a configuration object and returns a Promise that resolves a string (optionally yaml, json or markdown) - -```javascript -import envinfo from 'envinfo'; - -envinfo.run( - { - System: ['OS', 'CPU'], - Binaries: ['Node', 'Yarn', 'npm'], - Browsers: ['Chrome', 'Firefox', 'Safari'], - npmPackages: ['styled-components', 'babel-plugin-styled-components'], - }, - { json: true, showNotFound: true } -).then(env => console.log(env)); -``` - -logs: - -```json -{ - "System": { - "OS": "macOS High Sierra 10.13", - "CPU": "x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz" - }, - "Binaries": { - "Node": { - "version": "8.11.0", - "path": "~/.nvm/versions/node/v8.11.0/bin/node" - }, - "Yarn": { - "version": "1.5.1", - "path": "~/.yarn/bin/yarn" - }, - "npm": { - "version": "5.6.0", - "path": "~/.nvm/versions/node/v8.11.0/bin/npm" - } - }, - "Browsers": { - "Chrome": { - "version": "67.0.3396.62" - }, - "Firefox": { - "version": "59.0.2" - }, - "Safari": { - "version": "11.0" - } - }, - "npmPackages": { - "styled-components": { - "wanted": "^3.2.1", - "installed": "3.2.1" - }, - "babel-plugin-styled-components": "Not Found" - } -} -``` - -All of envinfo's helpers are also exported for use. You can use envinfo as a whole, or just the parts that you need, like this: - -```javascript -const envinfo = require('envinfo'); - -// each helper returns a promise -const node = await envinfo.helpers.getNodeInfo(); - -// The promises resolve to an array of values: ["Name", "Version", "Path"] -// e.g. ["Node", "10.9.0", "/usr/local/bin/node"] - -console.log(`Node: ${node[1]} - ${node[2]}`); // "Node: 10.9.0 - ~/.nvm/versions/node/v8.14.0/bin/node" -``` - -## CLI Options - -``` - --system Print general system info such as OS, CPU, Memory and Shell - --browsers Get version numbers of installed web browsers - --SDKs Get platforms, build tools and SDKs of iOS and Android - --IDEs Get version numbers of installed IDEs - --languages Get version numbers of installed languages such as Java, Python, PHP, etc - --binaries Get version numbers of node, npm, watchman, etc - --npmPackages Get version numbers of locally installed npm packages - glob, string, or comma delimited list - --npmGlobalPackages Get version numbers of globally installed npm packages - - --duplicates Mark duplicate npm packages inside parentheses eg. (2.1.4) - --fullTree Traverse entire node_modules dependency tree, not just top level - - --markdown Print output in markdown format - --json Print output in JSON format - --console Print to console (defaults to on for CLI usage, off for programmatic usage) -``` - -## Integration - -envinfo is live in: - -- [React Native](https://github.com/facebook/react-native) (`react-native info`) -- [Create React App](https://github.com/facebook/create-react-app) (`create-react-app --info`) -- [Expo Environment Info](https://github.com/expo/expo-cli/tree/main/packages/expo-env-info) (`npx expo-env-info`) -- [Webpack](https://github.com/webpack/webpack-cli) (`webpack-cli info`) -- [Solidarity](https://github.com/infinitered/solidarity) (`solidarity report`) -- [Gatsby](https://github.com/gatsbyjs/gatsby) (`gatsby info`) - -envinfo is used in the ISSUE_TEMPLATE of: - -- [styled-components](https://github.com/styled-components/styled-components) -- [Jest](https://github.com/facebook/jest) -- [Apollo Client](https://github.com/apollographql/apollo-client) -- [FakerJS](https://github.com/faker-js/faker) - -## Alternatives - -- type `command -v` until you smash your computer -- [screenfetch](https://github.com/KittyKatt/screenFetch) - fetch system and terminal information, and display a pretty ascii logo -- [Solidarity](https://github.com/infinitered/solidarity) - a project based environment checker -- write your own - -## License - -MIT - -## Contributing - -PRs for additional features are welcome! Run `npm run lint && npm run format` before committing. - -This project came out of a [PR](https://github.com/facebook/react-native/pull/14428) to the React Native CLI tool - issues are reported frequently without important environment information, like Node/npm versions. - -## Contributors - -Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)): - - - -| [
Trevor Brindle](http://trevorbrindle.com)
[💬](#question-tabrindle "Answering Questions") [📝](#blog-tabrindle "Blogposts") [🐛](https://github.com/tabrindle/envinfo/issues?q=author%3Atabrindle "Bug reports") [💻](https://github.com/tabrindle/envinfo/commits?author=tabrindle "Code") [📖](https://github.com/tabrindle/envinfo/commits?author=tabrindle "Documentation") [💡](#example-tabrindle "Examples") [🤔](#ideas-tabrindle "Ideas, Planning, & Feedback") [👀](#review-tabrindle "Reviewed Pull Requests") [📢](#talk-tabrindle "Talks") [⚠️](https://github.com/tabrindle/envinfo/commits?author=tabrindle "Tests") | [
Gant Laborde](http://gantlaborde.com/)
[📝](#blog-GantMan "Blogposts") [🐛](https://github.com/tabrindle/envinfo/issues?q=author%3AGantMan "Bug reports") [💻](https://github.com/tabrindle/envinfo/commits?author=GantMan "Code") [🤔](#ideas-GantMan "Ideas, Planning, & Feedback") | [
Anton Fisher](http://antonfisher.com)
[🐛](https://github.com/tabrindle/envinfo/issues?q=author%3Aantonfisher "Bug reports") [💻](https://github.com/tabrindle/envinfo/commits?author=antonfisher "Code") | [
Ahmad Awais ⚡️](https://AhmadAwais.com/)
[🐛](https://github.com/tabrindle/envinfo/issues?q=author%3Aahmadawais "Bug reports") [💻](https://github.com/tabrindle/envinfo/commits?author=ahmadawais "Code") | [
Hasan](https://github.com/LEQADA)
[🐛](https://github.com/tabrindle/envinfo/issues?q=author%3ALEQADA "Bug reports") [💻](https://github.com/tabrindle/envinfo/commits?author=LEQADA "Code") | [
Ernesto Ramírez](http://twitter.com/_ErnestoR)
[🐛](https://github.com/tabrindle/envinfo/issues?q=author%3AErnestoR "Bug reports") [💻](https://github.com/tabrindle/envinfo/commits?author=ErnestoR "Code") | [
Jiawen Geng](https://www.gengjiawen.com)
[🐛](https://github.com/tabrindle/envinfo/issues?q=author%3Agengjiawen "Bug reports") [💻](https://github.com/tabrindle/envinfo/commits?author=gengjiawen "Code") [🤔](#ideas-gengjiawen "Ideas, Planning, & Feedback") [⚠️](https://github.com/tabrindle/envinfo/commits?author=gengjiawen "Tests") | -| :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| [
Zac Anger](https://zacanger.com)
[💻](https://github.com/tabrindle/envinfo/commits?author=zacanger "Code") [🐛](https://github.com/tabrindle/envinfo/issues?q=author%3Azacanger "Bug reports") | [
Ville Immonen](https://twitter.com/VilleImmonen)
[🐛](https://github.com/tabrindle/envinfo/issues?q=author%3Afson "Bug reports") [💻](https://github.com/tabrindle/envinfo/commits?author=fson "Code") | [
Olmo Maldonado](http://ibolmo.com)
[🐛](https://github.com/tabrindle/envinfo/issues?q=author%3Aibolmo "Bug reports") [💻](https://github.com/tabrindle/envinfo/commits?author=ibolmo "Code") | [
Rishabh Chawla](https://rishabhchawla.co)
[🐛](https://github.com/tabrindle/envinfo/issues?q=author%3Arishabh3112 "Bug reports") [💻](https://github.com/tabrindle/envinfo/commits?author=rishabh3112 "Code") | [
Carl Taylor](https://github.com/Nthalk)
[💻](https://github.com/tabrindle/envinfo/commits?author=Nthalk "Code") | - - -This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome! diff --git a/build_vtk_bundle/node_modules/envinfo/package.json b/build_vtk_bundle/node_modules/envinfo/package.json deleted file mode 100644 index 96ddae66..00000000 --- a/build_vtk_bundle/node_modules/envinfo/package.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "name": "envinfo", - "version": "7.20.0", - "description": "Info about your dev environment for debugging purposes", - "repository": "https://github.com/tabrindle/envinfo", - "author": "tabrindle@gmail.com", - "license": "MIT", - "files": [ - "dist/" - ], - "main": "dist/envinfo.js", - "bin": { - "envinfo": "dist/cli.js" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "build": "webpack --progress", - "check:format": "prettier -l src/**/*.js --verbose", - "compress": "gzexe envinfo-* && upx envinfo-win.exe", - "contributors:add": "all-contributors add", - "contributors:generate": "all-contributors generate", - "postcompress": "tar -czvf envinfo-linux.tar.gz envinfo-linux && tar -czvf envinfo-macos.tar.gz envinfo-macos && zip -r -X envinfo-win.zip envinfo-win.exe", - "executable": "pkg package.json", - "format": "prettier --write src/**/*.js", - "lint": "eslint src", - "lint-fix": "eslint src --fix", - "preversion": "npm run test && webpack && git add .", - "postversion": "npm run executable && npm run compress && npm run release", - "release": "github-release upload --owner=tabrindle --repo=envinfo --tag=${npm_package_version} 'envinfo-linux.tar.gz' 'envinfo-macos.tar.gz' 'envinfo-win.zip'", - "start": "node src/cli.js", - "test": "jest --env=node && eslint src && prettier -l src/**/*.js" - }, - "husky": { - "hooks": { - "commit-msg": "commitlint -E HUSKY_GIT_PARAMS && npm run lint" - } - }, - "keywords": [ - "development", - "env", - "environment", - "info", - "issues", - "reporting", - "diagnostics" - ], - "pkg": { - "scripts": "dist/*.js", - "targets": [ - "linux", - "macos", - "win" - ] - }, - "jest": { - "testEnvironment": "node" - }, - "dependencies": {}, - "devDependencies": { - "@babel/core": "^7.2.2", - "@babel/plugin-proposal-optional-chaining": "^7.2.0", - "@babel/polyfill": "^7.2.5", - "@babel/preset-env": "^7.3.1", - "@commitlint/cli": "^8.3.5", - "@commitlint/config-conventional": "^8.3.4", - "all-contributors-cli": "^4.11.1", - "babel-core": "7.0.0-bridge.0", - "babel-eslint": "^10.0.1", - "babel-jest": "23.6.0", - "babel-loader": "^8.0.5", - "eslint": "^5.13.0", - "eslint-config-airbnb-base": "^12.1.0", - "eslint-config-prettier": "^2.7.0", - "eslint-plugin-import": "^2.8.0", - "eslint-plugin-prettier": "^2.3.1", - "github-release-cli": "^0.4.1", - "glob": "^7.1.6", - "husky": "^4.2.5", - "jest": "^22.4.3", - "minimist": "^1.2.5", - "os-name": "^3.1.0", - "pkg": "^4.5.1", - "prettier": "^1.19.1", - "prettier-eslint-cli": "^4.1.1", - "webpack": "^5.90.1", - "webpack-cli": "^5.1.4", - "which": "^1.2.14", - "yamlify-object": "^0.5.1" - }, - "resolutions": { - "lodash": "4.17.15" - } -} diff --git a/build_vtk_bundle/node_modules/es-define-property/.eslintrc b/build_vtk_bundle/node_modules/es-define-property/.eslintrc deleted file mode 100644 index 46f3b120..00000000 --- a/build_vtk_bundle/node_modules/es-define-property/.eslintrc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "root": true, - - "extends": "@ljharb", - - "rules": { - "new-cap": ["error", { - "capIsNewExceptions": [ - "GetIntrinsic", - ], - }], - }, -} diff --git a/build_vtk_bundle/node_modules/es-define-property/.github/FUNDING.yml b/build_vtk_bundle/node_modules/es-define-property/.github/FUNDING.yml deleted file mode 100644 index 4445451f..00000000 --- a/build_vtk_bundle/node_modules/es-define-property/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: [ljharb] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: npm/es-define-property -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with a single custom sponsorship URL diff --git a/build_vtk_bundle/node_modules/es-define-property/.nycrc b/build_vtk_bundle/node_modules/es-define-property/.nycrc deleted file mode 100644 index bdd626ce..00000000 --- a/build_vtk_bundle/node_modules/es-define-property/.nycrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "all": true, - "check-coverage": false, - "reporter": ["text-summary", "text", "html", "json"], - "exclude": [ - "coverage", - "test" - ] -} diff --git a/build_vtk_bundle/node_modules/es-define-property/CHANGELOG.md b/build_vtk_bundle/node_modules/es-define-property/CHANGELOG.md deleted file mode 100644 index 5f60cc09..00000000 --- a/build_vtk_bundle/node_modules/es-define-property/CHANGELOG.md +++ /dev/null @@ -1,29 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [v1.0.1](https://github.com/ljharb/es-define-property/compare/v1.0.0...v1.0.1) - 2024-12-06 - -### Commits - -- [types] use shared tsconfig [`954a663`](https://github.com/ljharb/es-define-property/commit/954a66360326e508a0e5daa4b07493d58f5e110e) -- [actions] split out node 10-20, and 20+ [`3a8e84b`](https://github.com/ljharb/es-define-property/commit/3a8e84b23883f26ff37b3e82ff283834228e18c6) -- [Dev Deps] update `@ljharb/eslint-config`, `@ljharb/tsconfig`, `@types/get-intrinsic`, `@types/tape`, `auto-changelog`, `gopd`, `tape` [`86ae27b`](https://github.com/ljharb/es-define-property/commit/86ae27bb8cc857b23885136fad9cbe965ae36612) -- [Refactor] avoid using `get-intrinsic` [`02480c0`](https://github.com/ljharb/es-define-property/commit/02480c0353ef6118965282977c3864aff53d98b1) -- [Tests] replace `aud` with `npm audit` [`f6093ff`](https://github.com/ljharb/es-define-property/commit/f6093ff74ab51c98015c2592cd393bd42478e773) -- [Tests] configure testling [`7139e66`](https://github.com/ljharb/es-define-property/commit/7139e66959247a56086d9977359caef27c6849e7) -- [Dev Deps] update `tape` [`b901b51`](https://github.com/ljharb/es-define-property/commit/b901b511a75e001a40ce1a59fef7d9ffcfc87482) -- [Tests] fix types in tests [`469d269`](https://github.com/ljharb/es-define-property/commit/469d269fd141b1e773ec053a9fa35843493583e0) -- [Dev Deps] add missing peer dep [`733acfb`](https://github.com/ljharb/es-define-property/commit/733acfb0c4c96edf337e470b89a25a5b3724c352) - -## v1.0.0 - 2024-02-12 - -### Commits - -- Initial implementation, tests, readme, types [`3e154e1`](https://github.com/ljharb/es-define-property/commit/3e154e11a2fee09127220f5e503bf2c0a31dd480) -- Initial commit [`07d98de`](https://github.com/ljharb/es-define-property/commit/07d98de34a4dc31ff5e83a37c0c3f49e0d85cd50) -- npm init [`c4eb634`](https://github.com/ljharb/es-define-property/commit/c4eb6348b0d3886aac36cef34ad2ee0665ea6f3e) -- Only apps should have lockfiles [`7af86ec`](https://github.com/ljharb/es-define-property/commit/7af86ec1d311ec0b17fdfe616a25f64276903856) diff --git a/build_vtk_bundle/node_modules/es-define-property/LICENSE b/build_vtk_bundle/node_modules/es-define-property/LICENSE deleted file mode 100644 index f82f3896..00000000 --- a/build_vtk_bundle/node_modules/es-define-property/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2024 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/es-define-property/README.md b/build_vtk_bundle/node_modules/es-define-property/README.md deleted file mode 100644 index 9b291bdd..00000000 --- a/build_vtk_bundle/node_modules/es-define-property/README.md +++ /dev/null @@ -1,49 +0,0 @@ -# es-define-property [![Version Badge][npm-version-svg]][package-url] - -[![github actions][actions-image]][actions-url] -[![coverage][codecov-image]][codecov-url] -[![License][license-image]][license-url] -[![Downloads][downloads-image]][downloads-url] - -[![npm badge][npm-badge-png]][package-url] - -`Object.defineProperty`, but not IE 8's broken one. - -## Example - -```js -const assert = require('assert'); - -const $defineProperty = require('es-define-property'); - -if ($defineProperty) { - assert.equal($defineProperty, Object.defineProperty); -} else if (Object.defineProperty) { - assert.equal($defineProperty, false, 'this is IE 8'); -} else { - assert.equal($defineProperty, false, 'this is an ES3 engine'); -} -``` - -## Tests -Simply clone the repo, `npm install`, and run `npm test` - -## Security - -Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report. - -[package-url]: https://npmjs.org/package/es-define-property -[npm-version-svg]: https://versionbadg.es/ljharb/es-define-property.svg -[deps-svg]: https://david-dm.org/ljharb/es-define-property.svg -[deps-url]: https://david-dm.org/ljharb/es-define-property -[dev-deps-svg]: https://david-dm.org/ljharb/es-define-property/dev-status.svg -[dev-deps-url]: https://david-dm.org/ljharb/es-define-property#info=devDependencies -[npm-badge-png]: https://nodei.co/npm/es-define-property.png?downloads=true&stars=true -[license-image]: https://img.shields.io/npm/l/es-define-property.svg -[license-url]: LICENSE -[downloads-image]: https://img.shields.io/npm/dm/es-define-property.svg -[downloads-url]: https://npm-stat.com/charts.html?package=es-define-property -[codecov-image]: https://codecov.io/gh/ljharb/es-define-property/branch/main/graphs/badge.svg -[codecov-url]: https://app.codecov.io/gh/ljharb/es-define-property/ -[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/es-define-property -[actions-url]: https://github.com/ljharb/es-define-property/actions diff --git a/build_vtk_bundle/node_modules/es-define-property/index.d.ts b/build_vtk_bundle/node_modules/es-define-property/index.d.ts deleted file mode 100644 index 6012247c..00000000 --- a/build_vtk_bundle/node_modules/es-define-property/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare const defineProperty: false | typeof Object.defineProperty; - -export = defineProperty; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/es-define-property/index.js b/build_vtk_bundle/node_modules/es-define-property/index.js deleted file mode 100644 index e0a29251..00000000 --- a/build_vtk_bundle/node_modules/es-define-property/index.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -/** @type {import('.')} */ -var $defineProperty = Object.defineProperty || false; -if ($defineProperty) { - try { - $defineProperty({}, 'a', { value: 1 }); - } catch (e) { - // IE 8 has a broken defineProperty - $defineProperty = false; - } -} - -module.exports = $defineProperty; diff --git a/build_vtk_bundle/node_modules/es-define-property/package.json b/build_vtk_bundle/node_modules/es-define-property/package.json deleted file mode 100644 index fbed1878..00000000 --- a/build_vtk_bundle/node_modules/es-define-property/package.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "name": "es-define-property", - "version": "1.0.1", - "description": "`Object.defineProperty`, but not IE 8's broken one.", - "main": "index.js", - "types": "./index.d.ts", - "exports": { - ".": "./index.js", - "./package.json": "./package.json" - }, - "sideEffects": false, - "scripts": { - "prepack": "npmignore --auto --commentLines=autogenerated", - "prepublish": "not-in-publish || npm run prepublishOnly", - "prepublishOnly": "safe-publish-latest", - "prelint": "evalmd README.md", - "lint": "eslint --ext=js,mjs .", - "postlint": "tsc -p .", - "pretest": "npm run lint", - "tests-only": "nyc tape 'test/**/*.js'", - "test": "npm run tests-only", - "posttest": "npx npm@'>= 10.2' audit --production", - "version": "auto-changelog && git add CHANGELOG.md", - "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/ljharb/es-define-property.git" - }, - "keywords": [ - "javascript", - "ecmascript", - "object", - "define", - "property", - "defineProperty", - "Object.defineProperty" - ], - "author": "Jordan Harband ", - "license": "MIT", - "bugs": { - "url": "https://github.com/ljharb/es-define-property/issues" - }, - "homepage": "https://github.com/ljharb/es-define-property#readme", - "devDependencies": { - "@ljharb/eslint-config": "^21.1.1", - "@ljharb/tsconfig": "^0.2.2", - "@types/gopd": "^1.0.3", - "@types/tape": "^5.6.5", - "auto-changelog": "^2.5.0", - "encoding": "^0.1.13", - "eslint": "^8.8.0", - "evalmd": "^0.0.19", - "gopd": "^1.2.0", - "in-publish": "^2.0.1", - "npmignore": "^0.3.1", - "nyc": "^10.3.2", - "safe-publish-latest": "^2.0.0", - "tape": "^5.9.0", - "typescript": "next" - }, - "engines": { - "node": ">= 0.4" - }, - "testling": { - "files": "test/index.js" - }, - "auto-changelog": { - "output": "CHANGELOG.md", - "template": "keepachangelog", - "unreleased": false, - "commitLimit": false, - "backfillLimit": false, - "hideCredit": true - }, - "publishConfig": { - "ignore": [ - ".github/workflows" - ] - } -} diff --git a/build_vtk_bundle/node_modules/es-define-property/test/index.js b/build_vtk_bundle/node_modules/es-define-property/test/index.js deleted file mode 100644 index b4b4688f..00000000 --- a/build_vtk_bundle/node_modules/es-define-property/test/index.js +++ /dev/null @@ -1,56 +0,0 @@ -'use strict'; - -var $defineProperty = require('../'); - -var test = require('tape'); -var gOPD = require('gopd'); - -test('defineProperty: supported', { skip: !$defineProperty }, function (t) { - t.plan(4); - - t.equal(typeof $defineProperty, 'function', 'defineProperty is supported'); - if ($defineProperty && gOPD) { // this `if` check is just to shut TS up - /** @type {{ a: number, b?: number, c?: number }} */ - var o = { a: 1 }; - - $defineProperty(o, 'b', { enumerable: true, value: 2 }); - t.deepEqual( - gOPD(o, 'b'), - { - configurable: false, - enumerable: true, - value: 2, - writable: false - }, - 'property descriptor is as expected' - ); - - $defineProperty(o, 'c', { enumerable: false, value: 3, writable: true }); - t.deepEqual( - gOPD(o, 'c'), - { - configurable: false, - enumerable: false, - value: 3, - writable: true - }, - 'property descriptor is as expected' - ); - } - - t.equal($defineProperty, Object.defineProperty, 'defineProperty is Object.defineProperty'); - - t.end(); -}); - -test('defineProperty: not supported', { skip: !!$defineProperty }, function (t) { - t.notOk($defineProperty, 'defineProperty is not supported'); - - t.match( - typeof $defineProperty, - /^(?:undefined|boolean)$/, - '`typeof defineProperty` is `undefined` or `boolean`' - ); - - t.end(); -}); diff --git a/build_vtk_bundle/node_modules/es-define-property/tsconfig.json b/build_vtk_bundle/node_modules/es-define-property/tsconfig.json deleted file mode 100644 index 5a49992e..00000000 --- a/build_vtk_bundle/node_modules/es-define-property/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "@ljharb/tsconfig", - "compilerOptions": { - "target": "es2022", - }, - "exclude": [ - "coverage", - "test/list-exports" - ], -} diff --git a/build_vtk_bundle/node_modules/es-errors/.eslintrc b/build_vtk_bundle/node_modules/es-errors/.eslintrc deleted file mode 100644 index 3b5d9e90..00000000 --- a/build_vtk_bundle/node_modules/es-errors/.eslintrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "root": true, - - "extends": "@ljharb", -} diff --git a/build_vtk_bundle/node_modules/es-errors/.github/FUNDING.yml b/build_vtk_bundle/node_modules/es-errors/.github/FUNDING.yml deleted file mode 100644 index f1b88055..00000000 --- a/build_vtk_bundle/node_modules/es-errors/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: [ljharb] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: npm/es-errors -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with a single custom sponsorship URL diff --git a/build_vtk_bundle/node_modules/es-errors/CHANGELOG.md b/build_vtk_bundle/node_modules/es-errors/CHANGELOG.md deleted file mode 100644 index 204a9e90..00000000 --- a/build_vtk_bundle/node_modules/es-errors/CHANGELOG.md +++ /dev/null @@ -1,40 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [v1.3.0](https://github.com/ljharb/es-errors/compare/v1.2.1...v1.3.0) - 2024-02-05 - -### Commits - -- [New] add `EvalError` and `URIError` [`1927627`](https://github.com/ljharb/es-errors/commit/1927627ba68cb6c829d307231376c967db53acdf) - -## [v1.2.1](https://github.com/ljharb/es-errors/compare/v1.2.0...v1.2.1) - 2024-02-04 - -### Commits - -- [Fix] add missing `exports` entry [`5bb5f28`](https://github.com/ljharb/es-errors/commit/5bb5f280f98922701109d6ebb82eea2257cecc7e) - -## [v1.2.0](https://github.com/ljharb/es-errors/compare/v1.1.0...v1.2.0) - 2024-02-04 - -### Commits - -- [New] add `ReferenceError` [`6d8cf5b`](https://github.com/ljharb/es-errors/commit/6d8cf5bbb6f3f598d02cf6f30e468ba2caa8e143) - -## [v1.1.0](https://github.com/ljharb/es-errors/compare/v1.0.0...v1.1.0) - 2024-02-04 - -### Commits - -- [New] add base Error [`2983ab6`](https://github.com/ljharb/es-errors/commit/2983ab65f7bc5441276cb021dc3aa03c78881698) - -## v1.0.0 - 2024-02-03 - -### Commits - -- Initial implementation, tests, readme, type [`8f47631`](https://github.com/ljharb/es-errors/commit/8f476317e9ad76f40ad648081829b1a1a3a1288b) -- Initial commit [`ea5d099`](https://github.com/ljharb/es-errors/commit/ea5d099ef18e550509ab9e2be000526afd81c385) -- npm init [`6f5ebf9`](https://github.com/ljharb/es-errors/commit/6f5ebf9cead474dadd72b9e63dad315820a089ae) -- Only apps should have lockfiles [`e1a0aeb`](https://github.com/ljharb/es-errors/commit/e1a0aeb7b80f5cfc56be54d6b2100e915d47def8) -- [meta] add `sideEffects` flag [`a9c7d46`](https://github.com/ljharb/es-errors/commit/a9c7d460a492f1d8a241c836bc25a322a19cc043) diff --git a/build_vtk_bundle/node_modules/es-errors/LICENSE b/build_vtk_bundle/node_modules/es-errors/LICENSE deleted file mode 100644 index f82f3896..00000000 --- a/build_vtk_bundle/node_modules/es-errors/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2024 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/es-errors/README.md b/build_vtk_bundle/node_modules/es-errors/README.md deleted file mode 100644 index 8dbfacfe..00000000 --- a/build_vtk_bundle/node_modules/es-errors/README.md +++ /dev/null @@ -1,55 +0,0 @@ -# es-errors [![Version Badge][npm-version-svg]][package-url] - -[![github actions][actions-image]][actions-url] -[![coverage][codecov-image]][codecov-url] -[![License][license-image]][license-url] -[![Downloads][downloads-image]][downloads-url] - -[![npm badge][npm-badge-png]][package-url] - -A simple cache for a few of the JS Error constructors. - -## Example - -```js -const assert = require('assert'); - -const Base = require('es-errors'); -const Eval = require('es-errors/eval'); -const Range = require('es-errors/range'); -const Ref = require('es-errors/ref'); -const Syntax = require('es-errors/syntax'); -const Type = require('es-errors/type'); -const URI = require('es-errors/uri'); - -assert.equal(Base, Error); -assert.equal(Eval, EvalError); -assert.equal(Range, RangeError); -assert.equal(Ref, ReferenceError); -assert.equal(Syntax, SyntaxError); -assert.equal(Type, TypeError); -assert.equal(URI, URIError); -``` - -## Tests -Simply clone the repo, `npm install`, and run `npm test` - -## Security - -Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report. - -[package-url]: https://npmjs.org/package/es-errors -[npm-version-svg]: https://versionbadg.es/ljharb/es-errors.svg -[deps-svg]: https://david-dm.org/ljharb/es-errors.svg -[deps-url]: https://david-dm.org/ljharb/es-errors -[dev-deps-svg]: https://david-dm.org/ljharb/es-errors/dev-status.svg -[dev-deps-url]: https://david-dm.org/ljharb/es-errors#info=devDependencies -[npm-badge-png]: https://nodei.co/npm/es-errors.png?downloads=true&stars=true -[license-image]: https://img.shields.io/npm/l/es-errors.svg -[license-url]: LICENSE -[downloads-image]: https://img.shields.io/npm/dm/es-errors.svg -[downloads-url]: https://npm-stat.com/charts.html?package=es-errors -[codecov-image]: https://codecov.io/gh/ljharb/es-errors/branch/main/graphs/badge.svg -[codecov-url]: https://app.codecov.io/gh/ljharb/es-errors/ -[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/es-errors -[actions-url]: https://github.com/ljharb/es-errors/actions diff --git a/build_vtk_bundle/node_modules/es-errors/eval.d.ts b/build_vtk_bundle/node_modules/es-errors/eval.d.ts deleted file mode 100644 index e4210e01..00000000 --- a/build_vtk_bundle/node_modules/es-errors/eval.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare const EvalError: EvalErrorConstructor; - -export = EvalError; diff --git a/build_vtk_bundle/node_modules/es-errors/eval.js b/build_vtk_bundle/node_modules/es-errors/eval.js deleted file mode 100644 index 725ccb61..00000000 --- a/build_vtk_bundle/node_modules/es-errors/eval.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -/** @type {import('./eval')} */ -module.exports = EvalError; diff --git a/build_vtk_bundle/node_modules/es-errors/index.d.ts b/build_vtk_bundle/node_modules/es-errors/index.d.ts deleted file mode 100644 index 69bdbc92..00000000 --- a/build_vtk_bundle/node_modules/es-errors/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare const Error: ErrorConstructor; - -export = Error; diff --git a/build_vtk_bundle/node_modules/es-errors/index.js b/build_vtk_bundle/node_modules/es-errors/index.js deleted file mode 100644 index cc0c5212..00000000 --- a/build_vtk_bundle/node_modules/es-errors/index.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -/** @type {import('.')} */ -module.exports = Error; diff --git a/build_vtk_bundle/node_modules/es-errors/package.json b/build_vtk_bundle/node_modules/es-errors/package.json deleted file mode 100644 index ff8c2a53..00000000 --- a/build_vtk_bundle/node_modules/es-errors/package.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "name": "es-errors", - "version": "1.3.0", - "description": "A simple cache for a few of the JS Error constructors.", - "main": "index.js", - "exports": { - ".": "./index.js", - "./eval": "./eval.js", - "./range": "./range.js", - "./ref": "./ref.js", - "./syntax": "./syntax.js", - "./type": "./type.js", - "./uri": "./uri.js", - "./package.json": "./package.json" - }, - "sideEffects": false, - "scripts": { - "prepack": "npmignore --auto --commentLines=autogenerated", - "prepublishOnly": "safe-publish-latest", - "prepublish": "not-in-publish || npm run prepublishOnly", - "pretest": "npm run lint", - "test": "npm run tests-only", - "tests-only": "nyc tape 'test/**/*.js'", - "posttest": "aud --production", - "prelint": "evalmd README.md", - "lint": "eslint --ext=js,mjs .", - "postlint": "tsc -p . && eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)", - "version": "auto-changelog && git add CHANGELOG.md", - "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/ljharb/es-errors.git" - }, - "keywords": [ - "javascript", - "ecmascript", - "error", - "typeerror", - "syntaxerror", - "rangeerror" - ], - "author": "Jordan Harband ", - "license": "MIT", - "bugs": { - "url": "https://github.com/ljharb/es-errors/issues" - }, - "homepage": "https://github.com/ljharb/es-errors#readme", - "devDependencies": { - "@ljharb/eslint-config": "^21.1.0", - "@types/tape": "^5.6.4", - "aud": "^2.0.4", - "auto-changelog": "^2.4.0", - "eclint": "^2.8.1", - "eslint": "^8.8.0", - "evalmd": "^0.0.19", - "in-publish": "^2.0.1", - "npmignore": "^0.3.1", - "nyc": "^10.3.2", - "safe-publish-latest": "^2.0.0", - "tape": "^5.7.4", - "typescript": "next" - }, - "auto-changelog": { - "output": "CHANGELOG.md", - "template": "keepachangelog", - "unreleased": false, - "commitLimit": false, - "backfillLimit": false, - "hideCredit": true - }, - "publishConfig": { - "ignore": [ - ".github/workflows" - ] - }, - "engines": { - "node": ">= 0.4" - } -} diff --git a/build_vtk_bundle/node_modules/es-errors/range.d.ts b/build_vtk_bundle/node_modules/es-errors/range.d.ts deleted file mode 100644 index 3a12e864..00000000 --- a/build_vtk_bundle/node_modules/es-errors/range.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare const RangeError: RangeErrorConstructor; - -export = RangeError; diff --git a/build_vtk_bundle/node_modules/es-errors/range.js b/build_vtk_bundle/node_modules/es-errors/range.js deleted file mode 100644 index 2044fe03..00000000 --- a/build_vtk_bundle/node_modules/es-errors/range.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -/** @type {import('./range')} */ -module.exports = RangeError; diff --git a/build_vtk_bundle/node_modules/es-errors/ref.d.ts b/build_vtk_bundle/node_modules/es-errors/ref.d.ts deleted file mode 100644 index a13107e2..00000000 --- a/build_vtk_bundle/node_modules/es-errors/ref.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare const ReferenceError: ReferenceErrorConstructor; - -export = ReferenceError; diff --git a/build_vtk_bundle/node_modules/es-errors/ref.js b/build_vtk_bundle/node_modules/es-errors/ref.js deleted file mode 100644 index d7c430fd..00000000 --- a/build_vtk_bundle/node_modules/es-errors/ref.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -/** @type {import('./ref')} */ -module.exports = ReferenceError; diff --git a/build_vtk_bundle/node_modules/es-errors/syntax.d.ts b/build_vtk_bundle/node_modules/es-errors/syntax.d.ts deleted file mode 100644 index 6a0c53c5..00000000 --- a/build_vtk_bundle/node_modules/es-errors/syntax.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare const SyntaxError: SyntaxErrorConstructor; - -export = SyntaxError; diff --git a/build_vtk_bundle/node_modules/es-errors/syntax.js b/build_vtk_bundle/node_modules/es-errors/syntax.js deleted file mode 100644 index 5f5fddee..00000000 --- a/build_vtk_bundle/node_modules/es-errors/syntax.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -/** @type {import('./syntax')} */ -module.exports = SyntaxError; diff --git a/build_vtk_bundle/node_modules/es-errors/test/index.js b/build_vtk_bundle/node_modules/es-errors/test/index.js deleted file mode 100644 index 1ff02772..00000000 --- a/build_vtk_bundle/node_modules/es-errors/test/index.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; - -var test = require('tape'); - -var E = require('../'); -var R = require('../range'); -var Ref = require('../ref'); -var S = require('../syntax'); -var T = require('../type'); - -test('errors', function (t) { - t.equal(E, Error); - t.equal(R, RangeError); - t.equal(Ref, ReferenceError); - t.equal(S, SyntaxError); - t.equal(T, TypeError); - - t.end(); -}); diff --git a/build_vtk_bundle/node_modules/es-errors/tsconfig.json b/build_vtk_bundle/node_modules/es-errors/tsconfig.json deleted file mode 100644 index 99dfeb6c..00000000 --- a/build_vtk_bundle/node_modules/es-errors/tsconfig.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "compilerOptions": { - /* Visit https://aka.ms/tsconfig.json to read more about this file */ - - /* Projects */ - - /* Language and Environment */ - "target": "es5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ - // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ - // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ - "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ - // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ - - /* Modules */ - "module": "commonjs", /* Specify what module code is generated. */ - // "rootDir": "./", /* Specify the root folder within your source files. */ - // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ - // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ - // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ - // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ - // "typeRoots": ["types"], /* Specify multiple folders that act like `./node_modules/@types`. */ - "resolveJsonModule": true, /* Enable importing .json files. */ - // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ - - /* JavaScript Support */ - "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */ - "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ - "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */ - - /* Emit */ - "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ - "declarationMap": true, /* Create sourcemaps for d.ts files. */ - "noEmit": true, /* Disable emitting files from a compilation. */ - - /* Interop Constraints */ - "allowSyntheticDefaultImports": true, /* Allow `import x from y` when a module doesn't have a default export. */ - "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */ - "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ - - /* Type Checking */ - "strict": true, /* Enable all strict type-checking options. */ - - /* Completeness */ - // "skipLibCheck": true /* Skip type checking all .d.ts files. */ - }, - "exclude": [ - "coverage", - ], -} diff --git a/build_vtk_bundle/node_modules/es-errors/type.d.ts b/build_vtk_bundle/node_modules/es-errors/type.d.ts deleted file mode 100644 index 576fb516..00000000 --- a/build_vtk_bundle/node_modules/es-errors/type.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare const TypeError: TypeErrorConstructor - -export = TypeError; diff --git a/build_vtk_bundle/node_modules/es-errors/type.js b/build_vtk_bundle/node_modules/es-errors/type.js deleted file mode 100644 index 9769e44e..00000000 --- a/build_vtk_bundle/node_modules/es-errors/type.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -/** @type {import('./type')} */ -module.exports = TypeError; diff --git a/build_vtk_bundle/node_modules/es-errors/uri.d.ts b/build_vtk_bundle/node_modules/es-errors/uri.d.ts deleted file mode 100644 index c3261c91..00000000 --- a/build_vtk_bundle/node_modules/es-errors/uri.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare const URIError: URIErrorConstructor; - -export = URIError; diff --git a/build_vtk_bundle/node_modules/es-errors/uri.js b/build_vtk_bundle/node_modules/es-errors/uri.js deleted file mode 100644 index e9cd1c78..00000000 --- a/build_vtk_bundle/node_modules/es-errors/uri.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -/** @type {import('./uri')} */ -module.exports = URIError; diff --git a/build_vtk_bundle/node_modules/es-module-lexer/LICENSE b/build_vtk_bundle/node_modules/es-module-lexer/LICENSE deleted file mode 100644 index c795a277..00000000 --- a/build_vtk_bundle/node_modules/es-module-lexer/LICENSE +++ /dev/null @@ -1,10 +0,0 @@ -MIT License ------------ - -Copyright (C) 2018-2022 Guy Bedford - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/es-module-lexer/README.md b/build_vtk_bundle/node_modules/es-module-lexer/README.md deleted file mode 100644 index 310f4ee6..00000000 --- a/build_vtk_bundle/node_modules/es-module-lexer/README.md +++ /dev/null @@ -1,338 +0,0 @@ -# ES Module Lexer - -[![Build Status][actions-image]][actions-url] - -A JS module syntax lexer used in [es-module-shims](https://github.com/guybedford/es-module-shims). - -Outputs the list of exports and locations of import specifiers, including dynamic import and import meta handling. - -Supports new syntax features including import attributes and source phase imports. - -A very small single JS file (4KiB gzipped) that includes inlined Web Assembly for very fast source analysis of ECMAScript module syntax only. - -For an example of the performance, Angular 1 (720KiB) is fully parsed in 5ms, in comparison to the fastest JS parser, Acorn which takes over 100ms. - -_Comprehensively handles the JS language grammar while remaining small and fast. - ~10ms per MB of JS cold and ~5ms per MB of JS warm, [see benchmarks](#benchmarks) for more info._ - -> [Built with](https://github.com/guybedford/es-module-lexer/blob/main/chompfile.toml) [Chomp](https://chompbuild.com/) - -### Usage - -``` -npm install es-module-lexer -``` - -See [src/lexer.ts](src/lexer.ts) for the type definitions. - -For use in CommonJS: - -```js -const { init, parse } = require('es-module-lexer'); - -(async () => { - // either await init, or call parse asynchronously - // this is necessary for the Web Assembly boot - await init; - - const source = 'export var p = 5'; - const [imports, exports] = parse(source); - - // Returns "p" - source.slice(exports[0].s, exports[0].e); - // Returns "p" - source.slice(exports[0].ls, exports[0].le); -})(); -``` - -An ES module version is also available: - -```js -import { init, parse } from 'es-module-lexer'; - -(async () => { - await init; - - const source = ` - import { name } from 'mod\\u1011'; - import json from './json.json' assert { type: 'json' } - export var p = 5; - export function q () { - - }; - export { x as 'external name' } from 'external'; - - // Comments provided to demonstrate edge cases - import /*comment!*/ ( 'asdf', { assert: { type: 'json' }}); - import /*comment!*/.meta.asdf; - - // Source phase imports: - import source mod from './mod.wasm'; - import.source('./mod.wasm'); - `; - - const [imports, exports] = parse(source, 'optional-sourcename'); - - // Returns "modထ" - imports[0].n - // Returns "mod\u1011" - source.slice(imports[0].s, imports[0].e); - // "s" = start - // "e" = end - - // Returns "import { name } from 'mod'" - source.slice(imports[0].ss, imports[0].se); - // "ss" = statement start - // "se" = statement end - - // Returns "{ type: 'json' }" - source.slice(imports[1].a, imports[1].se); - // "a" = assert, -1 for no assertion - - // Returns "external" - source.slice(imports[2].s, imports[2].e); - - // Returns "p" - source.slice(exports[0].s, exports[0].e); - // Returns "p" - source.slice(exports[0].ls, exports[0].le); - // Returns "q" - source.slice(exports[1].s, exports[1].e); - // Returns "q" - source.slice(exports[1].ls, exports[1].le); - // Returns "'external name'" - source.slice(exports[2].s, exports[2].e); - // Returns -1 - exports[2].ls; - // Returns -1 - exports[2].le; - - // Import type is provided by `t` value - // (1 for static, 2, for dynamic) - // Returns true - imports[2].t == 2; - - // Returns "asdf" (only for string literal dynamic imports) - imports[2].n - // Returns "import /*comment!*/ ( 'asdf', { assert: { type: 'json' } })" - source.slice(imports[3].ss, imports[3].se); - // Returns "'asdf'" - source.slice(imports[3].s, imports[3].e); - // Returns "( 'asdf', { assert: { type: 'json' } })" - source.slice(imports[3].d, imports[3].se); - // Returns "{ assert: { type: 'json' } }" - source.slice(imports[3].a, imports[3].se - 1); - - // For non-string dynamic import expressions: - // - n will be undefined - // - a is currently -1 even if there is an assertion - // - e is currently the character before the closing ) - - // For nested dynamic imports, the se value of the outer import is -1 as end tracking does not - // currently support nested dynamic immports - - // import.meta is indicated by imports[3].d === -2 - // Returns true - imports[4].d === -2; - // Returns "import /*comment!*/.meta" - source.slice(imports[4].s, imports[4].e); - // ss and se are the same for import meta - - // Returns "'./mod.wasm'" - source.slice(imports[5].s, imports[5].e); - - // Import type 4 and 5 for static and dynamic source phase - imports[5].t === 4; - imports[6].t === 5; -})(); -``` - -### CSP asm.js Build - -The default version of the library uses Wasm and (safe) eval usage for performance and a minimal footprint. - -Neither of these represent security escalation possibilities since there are no execution string injection vectors, but that can still violate existing CSP policies for applications. - -For a version that works with CSP eval disabled, use the `es-module-lexer/js` build: - -```js -import { parse } from 'es-module-lexer/js'; -``` - -Instead of Web Assembly, this uses an asm.js build which is almost as fast as the Wasm version ([see benchmarks below](#benchmarks)). - -### Escape Sequences - -To handle escape sequences in specifier strings, the `.n` field of imported specifiers will be provided where possible. - -For dynamic import expressions, this field will be empty if not a valid JS string. - -### Facade Detection - -Facade modules that only use import / export syntax can be detected via the third return value: - -```js -const [,, facade] = parse(` - export * from 'external'; - import * as ns from 'external2'; - export { a as b } from 'external3'; - export { ns }; -`); -facade === true; -``` - -### ESM Detection - -Modules that uses ESM syntaxes can be detected via the fourth return value: - -```js -const [,,, hasModuleSyntax] = parse(` - export {} -`); -hasModuleSyntax === true; -``` - -Dynamic imports are ignored since they can be used in Non-ESM files. - -```js -const [,,, hasModuleSyntax] = parse(` - import('./foo.js') -`); -hasModuleSyntax === false; -``` - -### Environment Support - -Node.js 10+, and [all browsers with Web Assembly support](https://caniuse.com/#feat=wasm). - -### Grammar Support - -* Token state parses all line comments, block comments, strings, template strings, blocks, parens and punctuators. -* Division operator / regex token ambiguity is handled via backtracking checks against punctuator prefixes, including closing brace or paren backtracking. -* Always correctly parses valid JS source, but may parse invalid JS source without errors. - -### Limitations - -The lexing approach is designed to deal with the full language grammar including RegEx / division operator ambiguity through backtracking and paren / brace tracking. - -The only limitation to the reduced parser is that the "exports" list may not correctly gather all export identifiers in the following edge cases: - -```js -// Only "a" is detected as an export, "q" isn't -export var a = 'asdf', q = z; - -// "b" is not detected as an export -export var { a: b } = asdf; -``` - -The above cases are handled gracefully in that the lexer will keep going fine, it will just not properly detect the export names above. - -### Benchmarks - -Benchmarks can be run with `npm run bench`. - -Current results for a high spec machine: - -#### Wasm Build - -``` -Module load time -> 5ms -Cold Run, All Samples -test/samples/*.js (3123 KiB) -> 18ms - -Warm Runs (average of 25 runs) -test/samples/angular.js (739 KiB) -> 3ms -test/samples/angular.min.js (188 KiB) -> 1ms -test/samples/d3.js (508 KiB) -> 3ms -test/samples/d3.min.js (274 KiB) -> 2ms -test/samples/magic-string.js (35 KiB) -> 0ms -test/samples/magic-string.min.js (20 KiB) -> 0ms -test/samples/rollup.js (929 KiB) -> 4.32ms -test/samples/rollup.min.js (429 KiB) -> 2.16ms - -Warm Runs, All Samples (average of 25 runs) -test/samples/*.js (3123 KiB) -> 14.16ms -``` - -#### JS Build (asm.js) - -``` -Module load time -> 2ms -Cold Run, All Samples -test/samples/*.js (3123 KiB) -> 34ms - -Warm Runs (average of 25 runs) -test/samples/angular.js (739 KiB) -> 3ms -test/samples/angular.min.js (188 KiB) -> 1ms -test/samples/d3.js (508 KiB) -> 3ms -test/samples/d3.min.js (274 KiB) -> 2ms -test/samples/magic-string.js (35 KiB) -> 0ms -test/samples/magic-string.min.js (20 KiB) -> 0ms -test/samples/rollup.js (929 KiB) -> 5ms -test/samples/rollup.min.js (429 KiB) -> 3.04ms - -Warm Runs, All Samples (average of 25 runs) -test/samples/*.js (3123 KiB) -> 17.12ms -``` - -### Building - -This project uses [Chomp](https://chompbuild.com) for building. - -With Chomp installed, download the WASI SDK 12.0 from https://github.com/WebAssembly/wasi-sdk/releases/tag/wasi-sdk-12. - -- [Linux](https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-12/wasi-sdk-12.0-linux.tar.gz) -- [Windows (MinGW)](https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-12/wasi-sdk-12.0-mingw.tar.gz) -- [macOS](https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-12/wasi-sdk-12.0-macos.tar.gz) - -Locate the WASI-SDK as a sibling folder, or customize the path via the `WASI_PATH` environment variable. - -Emscripten emsdk is also assumed to be a sibling folder or via the `EMSDK_PATH` environment variable. - -Example setup: - -``` -git clone https://github.com:guybedford/es-module-lexer -git clone https://github.com/emscripten-core/emsdk -cd emsdk -git checkout 1.40.1-fastcomp -./emsdk install 1.40.1-fastcomp -cd .. -wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-12/wasi-sdk-12.0-linux.tar.gz -gunzip wasi-sdk-12.0-linux.tar.gz -tar -xf wasi-sdk-12.0-linux.tar -mv wasi-sdk-12.0-linux.tar wasi-sdk-12.0 -cargo install chompbuild -cd es-module-lexer -chomp test -``` - -For the `asm.js` build, git clone `emsdk` from is assumed to be a sibling folder as well. - -### License - -MIT - -[actions-image]: https://github.com/guybedford/es-module-lexer/actions/workflows/build.yml/badge.svg -[actions-url]: https://github.com/guybedford/es-module-lexer/actions/workflows/build.yml diff --git a/build_vtk_bundle/node_modules/es-module-lexer/lexer.js b/build_vtk_bundle/node_modules/es-module-lexer/lexer.js deleted file mode 100644 index 587fafe0..00000000 --- a/build_vtk_bundle/node_modules/es-module-lexer/lexer.js +++ /dev/null @@ -1,925 +0,0 @@ -let source, pos, end, - openTokenDepth, - lastTokenPos, - openTokenPosStack, - openClassPosStack, - curDynamicImport, - templateStackDepth, - facade, - lastSlashWasDivision, - nextBraceIsClass, - templateDepth, - templateStack, - imports, - exports, - name; - -function addImport (ss, s, e, d) { - const impt = { ss, se: d === -2 ? e : d === -1 ? e + 1 : 0, s, e, d, a: -1, n: undefined }; - imports.push(impt); - return impt; -} - -function addExport (s, e, ls, le) { - exports.push({ - s, - e, - ls, - le, - n: s[0] === '"' ? readString(s, '"') : s[0] === "'" ? readString(s, "'") : source.slice(s, e), - ln: ls[0] === '"' ? readString(ls, '"') : ls[0] === "'" ? readString(ls, "'") : source.slice(ls, le) - }); -} - -function readName (impt) { - let { d, s } = impt; - if (d !== -1) - s++; - impt.n = readString(s, source.charCodeAt(s - 1)); -} - -// Note: parsing is based on the _assumption_ that the source is already valid -export function parse (_source, _name) { - openTokenDepth = 0; - curDynamicImport = null; - templateDepth = -1; - lastTokenPos = -1; - lastSlashWasDivision = false; - templateStack = Array(1024); - templateStackDepth = 0; - openTokenPosStack = Array(1024); - openClassPosStack = Array(1024); - nextBraceIsClass = false; - facade = true; - name = _name || '@'; - - imports = []; - exports = []; - - source = _source; - pos = -1; - end = source.length - 1; - let ch = 0; - - // start with a pure "module-only" parser - m: while (pos++ < end) { - ch = source.charCodeAt(pos); - - if (ch === 32 || ch < 14 && ch > 8) - continue; - - switch (ch) { - case 101/*e*/: - if (openTokenDepth === 0 && keywordStart(pos) && source.startsWith('xport', pos + 1)) { - tryParseExportStatement(); - // export might have been a non-pure declaration - if (!facade) { - lastTokenPos = pos; - break m; - } - } - break; - case 105/*i*/: - if (keywordStart(pos) && source.startsWith('mport', pos + 1)) - tryParseImportStatement(); - break; - case 59/*;*/: - break; - case 47/*/*/: { - const next_ch = source.charCodeAt(pos + 1); - if (next_ch === 47/*/*/) { - lineComment(); - // dont update lastToken - continue; - } - else if (next_ch === 42/***/) { - blockComment(true); - // dont update lastToken - continue; - } - // fallthrough - } - default: - // as soon as we hit a non-module token, we go to main parser - facade = false; - pos--; - break m; - } - lastTokenPos = pos; - } - - while (pos++ < end) { - ch = source.charCodeAt(pos); - - if (ch === 32 || ch < 14 && ch > 8) - continue; - - switch (ch) { - case 101/*e*/: - if (openTokenDepth === 0 && keywordStart(pos) && source.startsWith('xport', pos + 1)) - tryParseExportStatement(); - break; - case 105/*i*/: - if (keywordStart(pos) && source.startsWith('mport', pos + 1)) - tryParseImportStatement(); - break; - case 99/*c*/: - if (keywordStart(pos) && source.startsWith('lass', pos + 1) && isBrOrWs(source.charCodeAt(pos + 5))) - nextBraceIsClass = true; - break; - case 40/*(*/: - openTokenPosStack[openTokenDepth++] = lastTokenPos; - break; - case 41/*)*/: - if (openTokenDepth === 0) - syntaxError(); - openTokenDepth--; - if (curDynamicImport && curDynamicImport.d === openTokenPosStack[openTokenDepth]) { - if (curDynamicImport.e === 0) - curDynamicImport.e = pos; - curDynamicImport.se = pos; - curDynamicImport = null; - } - break; - case 123/*{*/: - // dynamic import followed by { is not a dynamic import (so remove) - // this is a sneaky way to get around { import () {} } v { import () } - // block / object ambiguity without a parser (assuming source is valid) - if (source.charCodeAt(lastTokenPos) === 41/*)*/ && imports.length && imports[imports.length - 1].e === lastTokenPos) { - imports.pop(); - } - openClassPosStack[openTokenDepth] = nextBraceIsClass; - nextBraceIsClass = false; - openTokenPosStack[openTokenDepth++] = lastTokenPos; - break; - case 125/*}*/: - if (openTokenDepth === 0) - syntaxError(); - if (openTokenDepth-- === templateDepth) { - templateDepth = templateStack[--templateStackDepth]; - templateString(); - } - else { - if (templateDepth !== -1 && openTokenDepth < templateDepth) - syntaxError(); - } - break; - case 39/*'*/: - case 34/*"*/: - stringLiteral(ch); - break; - case 47/*/*/: { - const next_ch = source.charCodeAt(pos + 1); - if (next_ch === 47/*/*/) { - lineComment(); - // dont update lastToken - continue; - } - else if (next_ch === 42/***/) { - blockComment(true); - // dont update lastToken - continue; - } - else { - // Division / regex ambiguity handling based on checking backtrack analysis of: - // - what token came previously (lastToken) - // - if a closing brace or paren, what token came before the corresponding - // opening brace or paren (lastOpenTokenIndex) - const lastToken = source.charCodeAt(lastTokenPos); - const lastExport = exports[exports.length - 1]; - if (isExpressionPunctuator(lastToken) && - !(lastToken === 46/*.*/ && (source.charCodeAt(lastTokenPos - 1) >= 48/*0*/ && source.charCodeAt(lastTokenPos - 1) <= 57/*9*/)) && - !(lastToken === 43/*+*/ && source.charCodeAt(lastTokenPos - 1) === 43/*+*/) && !(lastToken === 45/*-*/ && source.charCodeAt(lastTokenPos - 1) === 45/*-*/) || - lastToken === 41/*)*/ && isParenKeyword(openTokenPosStack[openTokenDepth]) || - lastToken === 125/*}*/ && (isExpressionTerminator(openTokenPosStack[openTokenDepth]) || openClassPosStack[openTokenDepth]) || - lastToken === 47/*/*/ && lastSlashWasDivision || - isExpressionKeyword(lastTokenPos) || - !lastToken) { - regularExpression(); - lastSlashWasDivision = false; - } - else if (lastExport && lastTokenPos >= lastExport.s && lastTokenPos <= lastExport.e) { - // export default /some-regexp/ - regularExpression(); - lastSlashWasDivision = false; - } - else { - lastSlashWasDivision = true; - } - } - break; - } - case 96/*`*/: - templateString(); - break; - } - lastTokenPos = pos; - } - - if (templateDepth !== -1 || openTokenDepth) - syntaxError(); - - return [imports, exports, facade]; -} - -function tryParseImportStatement () { - const startPos = pos; - - pos += 6; - - let ch = commentWhitespace(true); - - switch (ch) { - // dynamic import - case 40/*(*/: - openTokenPosStack[openTokenDepth++] = startPos; - if (source.charCodeAt(lastTokenPos) === 46/*.*/) - return; - // dynamic import indicated by positive d - const impt = addImport(startPos, pos + 1, 0, startPos); - curDynamicImport = impt; - // try parse a string, to record a safe dynamic import string - pos++; - ch = commentWhitespace(true); - if (ch === 39/*'*/ || ch === 34/*"*/) { - stringLiteral(ch); - } - else { - pos--; - return; - } - pos++; - ch = commentWhitespace(true); - if (ch === 44/*,*/) { - impt.e = pos; - pos++; - ch = commentWhitespace(true); - impt.a = pos; - readName(impt); - pos--; - } - else if (ch === 41/*)*/) { - openTokenDepth--; - impt.e = pos; - impt.se = pos; - readName(impt); - } - else { - pos--; - } - return; - // import.meta - case 46/*.*/: - pos++; - ch = commentWhitespace(true); - // import.meta indicated by d === -2 - if (ch === 109/*m*/ && source.startsWith('eta', pos + 1) && source.charCodeAt(lastTokenPos) !== 46/*.*/) - addImport(startPos, startPos, pos + 4, -2); - return; - - default: - // no space after "import" -> not an import keyword - if (pos === startPos + 6) - break; - case 34/*"*/: - case 39/*'*/: - case 123/*{*/: - case 42/***/: - // import statement only permitted at base-level - if (openTokenDepth !== 0) { - pos--; - return; - } - while (pos < end) { - ch = source.charCodeAt(pos); - if (ch === 39/*'*/ || ch === 34/*"*/) { - readImportString(startPos, ch); - return; - } - pos++; - } - syntaxError(); - } -} - -function tryParseExportStatement () { - const sStartPos = pos; - const prevExport = exports.length; - - pos += 6; - - const curPos = pos; - - let ch = commentWhitespace(true); - - if (pos === curPos && !isPunctuator(ch)) - return; - - switch (ch) { - // export default ... - case 100/*d*/: - addExport(pos, pos + 7, -1, -1); - return; - - // export async? function*? name () { - case 97/*a*/: - pos += 5; - commentWhitespace(true); - // fallthrough - case 102/*f*/: - pos += 8; - ch = commentWhitespace(true); - if (ch === 42/***/) { - pos++; - ch = commentWhitespace(true); - } - const startPos = pos; - ch = readToWsOrPunctuator(ch); - addExport(startPos, pos, startPos, pos); - pos--; - return; - - // export class name ... - case 99/*c*/: - if (source.startsWith('lass', pos + 1) && isBrOrWsOrPunctuatorNotDot(source.charCodeAt(pos + 5))) { - pos += 5; - ch = commentWhitespace(true); - const startPos = pos; - ch = readToWsOrPunctuator(ch); - addExport(startPos, pos, startPos, pos); - pos--; - return; - } - pos += 2; - // fallthrough - - // export var/let/const name = ...(, name = ...)+ - case 118/*v*/: - case 109/*l*/: - // destructured initializations not currently supported (skipped for { or [) - // also, lexing names after variable equals is skipped (export var p = function () { ... }, q = 5 skips "q") - pos += 2; - facade = false; - do { - pos++; - ch = commentWhitespace(true); - const startPos = pos; - ch = readToWsOrPunctuator(ch); - // dont yet handle [ { destructurings - if (ch === 123/*{*/ || ch === 91/*[*/) { - pos--; - return; - } - if (pos === startPos) - return; - addExport(startPos, pos, startPos, pos); - ch = commentWhitespace(true); - if (ch === 61/*=*/) { - pos--; - return; - } - } while (ch === 44/*,*/); - pos--; - return; - - - // export {...} - case 123/*{*/: - pos++; - ch = commentWhitespace(true); - while (true) { - const startPos = pos; - readToWsOrPunctuator(ch); - const endPos = pos; - commentWhitespace(true); - ch = readExportAs(startPos, endPos); - // , - if (ch === 44/*,*/) { - pos++; - ch = commentWhitespace(true); - } - if (ch === 125/*}*/) - break; - if (pos === startPos) - return syntaxError(); - if (pos > end) - return syntaxError(); - } - pos++; - ch = commentWhitespace(true); - break; - - // export * - // export * as X - case 42/***/: - pos++; - commentWhitespace(true); - ch = readExportAs(pos, pos); - ch = commentWhitespace(true); - break; - } - - // from ... - if (ch === 102/*f*/ && source.startsWith('rom', pos + 1)) { - pos += 4; - readImportString(sStartPos, commentWhitespace(true)); - - // There were no local names. - for (let i = prevExport; i < exports.length; ++i) { - exports[i].ls = exports[i].le = -1; - exports[i].ln = undefined; - } - } - else { - pos--; - } -} - -/* - * Ported from Acorn - * - * MIT License - - * Copyright (C) 2012-2020 by various contributors (see AUTHORS) - - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -let acornPos; -function readString (start, quote) { - acornPos = start; - let out = '', chunkStart = acornPos; - for (;;) { - if (acornPos >= source.length) syntaxError(); - const ch = source.charCodeAt(acornPos); - if (ch === quote) break; - if (ch === 92) { // '\' - out += source.slice(chunkStart, acornPos); - out += readEscapedChar(); - chunkStart = acornPos; - } - else if (ch === 0x2028 || ch === 0x2029) { - ++acornPos; - } - else { - if (isBr(ch)) syntaxError(); - ++acornPos; - } - } - out += source.slice(chunkStart, acornPos++); - return out; -} - -// Used to read escaped characters - -function readEscapedChar () { - let ch = source.charCodeAt(++acornPos); - ++acornPos; - switch (ch) { - case 110: return '\n'; // 'n' -> '\n' - case 114: return '\r'; // 'r' -> '\r' - case 120: return String.fromCharCode(readHexChar(2)); // 'x' - case 117: return readCodePointToString(); // 'u' - case 116: return '\t'; // 't' -> '\t' - case 98: return '\b'; // 'b' -> '\b' - case 118: return '\u000b'; // 'v' -> '\u000b' - case 102: return '\f'; // 'f' -> '\f' - case 13: if (source.charCodeAt(acornPos) === 10) ++acornPos; // '\r\n' - case 10: // ' \n' - return ''; - case 56: - case 57: - syntaxError(); - default: - if (ch >= 48 && ch <= 55) { - let octalStr = source.substr(acornPos - 1, 3).match(/^[0-7]+/)[0]; - let octal = parseInt(octalStr, 8); - if (octal > 255) { - octalStr = octalStr.slice(0, -1); - octal = parseInt(octalStr, 8); - } - acornPos += octalStr.length - 1; - ch = source.charCodeAt(acornPos); - if (octalStr !== '0' || ch === 56 || ch === 57) - syntaxError(); - return String.fromCharCode(octal); - } - if (isBr(ch)) { - // Unicode new line characters after \ get removed from output in both - // template literals and strings - return ''; - } - return String.fromCharCode(ch); - } -} - -// Used to read character escape sequences ('\x', '\u', '\U'). - -function readHexChar (len) { - const start = acornPos; - let total = 0, lastCode = 0; - for (let i = 0; i < len; ++i, ++acornPos) { - let code = source.charCodeAt(acornPos), val; - - if (code === 95) { - if (lastCode === 95 || i === 0) syntaxError(); - lastCode = code; - continue; - } - - if (code >= 97) val = code - 97 + 10; // a - else if (code >= 65) val = code - 65 + 10; // A - else if (code >= 48 && code <= 57) val = code - 48; // 0-9 - else break; - if (val >= 16) break; - lastCode = code; - total = total * 16 + val; - } - - if (lastCode === 95 || acornPos - start !== len) syntaxError(); - - return total; -} - -// Read a string value, interpreting backslash-escapes. - -function readCodePointToString () { - const ch = source.charCodeAt(acornPos); - let code; - if (ch === 123) { // '{' - ++acornPos; - code = readHexChar(source.indexOf('}', acornPos) - acornPos); - ++acornPos; - if (code > 0x10FFFF) syntaxError(); - } else { - code = readHexChar(4); - } - // UTF-16 Decoding - if (code <= 0xFFFF) return String.fromCharCode(code); - code -= 0x10000; - return String.fromCharCode((code >> 10) + 0xD800, (code & 1023) + 0xDC00); -} - -/* - * - */ - -function readExportAs (startPos, endPos) { - let ch = source.charCodeAt(pos); - let ls = startPos, le = endPos; - if (ch === 97 /*a*/) { - pos += 2; - ch = commentWhitespace(true); - startPos = pos; - readToWsOrPunctuator(ch); - endPos = pos; - ch = commentWhitespace(true); - } - if (pos !== startPos) - addExport(startPos, endPos, ls, le); - return ch; -} - -function readImportString (ss, ch) { - const startPos = pos + 1; - if (ch === 39/*'*/ || ch === 34/*"*/) { - stringLiteral(ch); - } - else { - syntaxError(); - return; - } - const impt = addImport(ss, startPos, pos, -1); - readName(impt); - pos++; - ch = commentWhitespace(false); - if (ch !== 97/*a*/ || !source.startsWith('ssert', pos + 1)) { - pos--; - return; - } - const assertIndex = pos; - - pos += 6; - ch = commentWhitespace(true); - if (ch !== 123/*{*/) { - pos = assertIndex; - return; - } - const assertStart = pos; - do { - pos++; - ch = commentWhitespace(true); - if (ch === 39/*'*/ || ch === 34/*"*/) { - stringLiteral(ch); - pos++; - ch = commentWhitespace(true); - } - else { - ch = readToWsOrPunctuator(ch); - } - if (ch !== 58/*:*/) { - pos = assertIndex; - return; - } - pos++; - ch = commentWhitespace(true); - if (ch === 39/*'*/ || ch === 34/*"*/) { - stringLiteral(ch); - } - else { - pos = assertIndex; - return; - } - pos++; - ch = commentWhitespace(true); - if (ch === 44/*,*/) { - pos++; - ch = commentWhitespace(true); - if (ch === 125/*}*/) - break; - continue; - } - if (ch === 125/*}*/) - break; - pos = assertIndex; - return; - } while (true); - impt.a = assertStart; - impt.se = pos + 1; -} - -function commentWhitespace (br) { - let ch; - do { - ch = source.charCodeAt(pos); - if (ch === 47/*/*/) { - const next_ch = source.charCodeAt(pos + 1); - if (next_ch === 47/*/*/) - lineComment(); - else if (next_ch === 42/***/) - blockComment(br); - else - return ch; - } - else if (br ? !isBrOrWs(ch): !isWsNotBr(ch)) { - return ch; - } - } while (pos++ < end); - return ch; -} - -function templateString () { - while (pos++ < end) { - const ch = source.charCodeAt(pos); - if (ch === 36/*$*/ && source.charCodeAt(pos + 1) === 123/*{*/) { - pos++; - templateStack[templateStackDepth++] = templateDepth; - templateDepth = ++openTokenDepth; - return; - } - if (ch === 96/*`*/) - return; - if (ch === 92/*\*/) - pos++; - } - syntaxError(); -} - -function blockComment (br) { - pos++; - while (pos++ < end) { - const ch = source.charCodeAt(pos); - if (!br && isBr(ch)) - return; - if (ch === 42/***/ && source.charCodeAt(pos + 1) === 47/*/*/) { - pos++; - return; - } - } -} - -function lineComment () { - while (pos++ < end) { - const ch = source.charCodeAt(pos); - if (ch === 10/*\n*/ || ch === 13/*\r*/) - return; - } -} - -function stringLiteral (quote) { - while (pos++ < end) { - let ch = source.charCodeAt(pos); - if (ch === quote) - return; - if (ch === 92/*\*/) { - ch = source.charCodeAt(++pos); - if (ch === 13/*\r*/ && source.charCodeAt(pos + 1) === 10/*\n*/) - pos++; - } - else if (isBr(ch)) - break; - } - syntaxError(); -} - -function regexCharacterClass () { - while (pos++ < end) { - let ch = source.charCodeAt(pos); - if (ch === 93/*]*/) - return ch; - if (ch === 92/*\*/) - pos++; - else if (ch === 10/*\n*/ || ch === 13/*\r*/) - break; - } - syntaxError(); -} - -function regularExpression () { - while (pos++ < end) { - let ch = source.charCodeAt(pos); - if (ch === 47/*/*/) - return; - if (ch === 91/*[*/) - ch = regexCharacterClass(); - else if (ch === 92/*\*/) - pos++; - else if (ch === 10/*\n*/ || ch === 13/*\r*/) - break; - } - syntaxError(); -} - -function readToWsOrPunctuator (ch) { - do { - if (isBrOrWs(ch) || isPunctuator(ch)) - return ch; - } while (ch = source.charCodeAt(++pos)); - return ch; -} - -// Note: non-asii BR and whitespace checks omitted for perf / footprint -// if there is a significant user need this can be reconsidered -function isBr (c) { - return c === 13/*\r*/ || c === 10/*\n*/; -} - -function isWsNotBr (c) { - return c === 9 || c === 11 || c === 12 || c === 32 || c === 160; -} - -function isBrOrWs (c) { - return c > 8 && c < 14 || c === 32 || c === 160; -} - -function isBrOrWsOrPunctuatorNotDot (c) { - return c > 8 && c < 14 || c === 32 || c === 160 || isPunctuator(c) && c !== 46/*.*/; -} - -function keywordStart (pos) { - return pos === 0 || isBrOrWsOrPunctuatorNotDot(source.charCodeAt(pos - 1)); -} - -function readPrecedingKeyword (pos, match) { - if (pos < match.length - 1) - return false; - return source.startsWith(match, pos - match.length + 1) && (pos === 0 || isBrOrWsOrPunctuatorNotDot(source.charCodeAt(pos - match.length))); -} - -function readPrecedingKeyword1 (pos, ch) { - return source.charCodeAt(pos) === ch && (pos === 0 || isBrOrWsOrPunctuatorNotDot(source.charCodeAt(pos - 1))); -} - -// Detects one of case, debugger, delete, do, else, in, instanceof, new, -// return, throw, typeof, void, yield, await -function isExpressionKeyword (pos) { - switch (source.charCodeAt(pos)) { - case 100/*d*/: - switch (source.charCodeAt(pos - 1)) { - case 105/*i*/: - // void - return readPrecedingKeyword(pos - 2, 'vo'); - case 108/*l*/: - // yield - return readPrecedingKeyword(pos - 2, 'yie'); - default: - return false; - } - case 101/*e*/: - switch (source.charCodeAt(pos - 1)) { - case 115/*s*/: - switch (source.charCodeAt(pos - 2)) { - case 108/*l*/: - // else - return readPrecedingKeyword1(pos - 3, 101/*e*/); - case 97/*a*/: - // case - return readPrecedingKeyword1(pos - 3, 99/*c*/); - default: - return false; - } - case 116/*t*/: - // delete - return readPrecedingKeyword(pos - 2, 'dele'); - default: - return false; - } - case 102/*f*/: - if (source.charCodeAt(pos - 1) !== 111/*o*/ || source.charCodeAt(pos - 2) !== 101/*e*/) - return false; - switch (source.charCodeAt(pos - 3)) { - case 99/*c*/: - // instanceof - return readPrecedingKeyword(pos - 4, 'instan'); - case 112/*p*/: - // typeof - return readPrecedingKeyword(pos - 4, 'ty'); - default: - return false; - } - case 110/*n*/: - // in, return - return readPrecedingKeyword1(pos - 1, 105/*i*/) || readPrecedingKeyword(pos - 1, 'retur'); - case 111/*o*/: - // do - return readPrecedingKeyword1(pos - 1, 100/*d*/); - case 114/*r*/: - // debugger - return readPrecedingKeyword(pos - 1, 'debugge'); - case 116/*t*/: - // await - return readPrecedingKeyword(pos - 1, 'awai'); - case 119/*w*/: - switch (source.charCodeAt(pos - 1)) { - case 101/*e*/: - // new - return readPrecedingKeyword1(pos - 2, 110/*n*/); - case 111/*o*/: - // throw - return readPrecedingKeyword(pos - 2, 'thr'); - default: - return false; - } - } - return false; -} - -function isParenKeyword (curPos) { - return source.charCodeAt(curPos) === 101/*e*/ && source.startsWith('whil', curPos - 4) || - source.charCodeAt(curPos) === 114/*r*/ && source.startsWith('fo', curPos - 2) || - source.charCodeAt(curPos - 1) === 105/*i*/ && source.charCodeAt(curPos) === 102/*f*/; -} - -function isPunctuator (ch) { - // 23 possible punctuator endings: !%&()*+,-./:;<=>?[]^{}|~ - return ch === 33/*!*/ || ch === 37/*%*/ || ch === 38/*&*/ || - ch > 39 && ch < 48 || ch > 57 && ch < 64 || - ch === 91/*[*/ || ch === 93/*]*/ || ch === 94/*^*/ || - ch > 122 && ch < 127; -} - -function isExpressionPunctuator (ch) { - // 20 possible expression endings: !%&(*+,-.:;<=>?[^{|~ - return ch === 33/*!*/ || ch === 37/*%*/ || ch === 38/*&*/ || - ch > 39 && ch < 47 && ch !== 41 || ch > 57 && ch < 64 || - ch === 91/*[*/ || ch === 94/*^*/ || ch > 122 && ch < 127 && ch !== 125/*}*/; -} - -function isExpressionTerminator (curPos) { - // detects: - // => ; ) finally catch else - // as all of these followed by a { will indicate a statement brace - switch (source.charCodeAt(curPos)) { - case 62/*>*/: - return source.charCodeAt(curPos - 1) === 61/*=*/; - case 59/*;*/: - case 41/*)*/: - return true; - case 104/*h*/: - return source.startsWith('catc', curPos - 4); - case 121/*y*/: - return source.startsWith('finall', curPos - 6); - case 101/*e*/: - return source.startsWith('els', curPos - 3); - } - return false; -} - -function syntaxError () { - throw Object.assign(new Error(`Parse error ${name}:${source.slice(0, pos).split('\n').length}:${pos - source.lastIndexOf('\n', pos - 1)}`), { idx: pos }); -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/es-module-lexer/package.json b/build_vtk_bundle/node_modules/es-module-lexer/package.json deleted file mode 100644 index 98a3adfc..00000000 --- a/build_vtk_bundle/node_modules/es-module-lexer/package.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "name": "es-module-lexer", - "version": "1.7.0", - "description": "Lexes ES modules returning their import/export metadata", - "main": "dist/lexer.cjs", - "module": "dist/lexer.js", - "types": "types/lexer.d.ts", - "exports": { - ".": { - "types": "./types/lexer.d.ts", - "module": "./dist/lexer.js", - "import": "./dist/lexer.js", - "require": "./dist/lexer.cjs" - }, - "./js": { - "types": "./types/lexer.d.ts", - "default": "./dist/lexer.asm.js" - } - }, - "scripts": { - "build": "npm install -g chomp ; chomp build", - "test": "npm install -g chomp ; chomp test" - }, - "author": "Guy Bedford", - "license": "MIT", - "devDependencies": { - "@babel/cli": "^7.5.5", - "@babel/core": "^7.5.5", - "@babel/plugin-transform-modules-commonjs": "^7.5.0", - "@swc/cli": "^0.1.57", - "@swc/core": "^1.2.224", - "@types/node": "^18.7.1", - "kleur": "^2.0.2", - "mocha": "^5.2.0", - "terser": "^5.19.4", - "typescript": "^4.7.4" - }, - "files": [ - "dist", - "types", - "lexer.js" - ], - "type": "module", - "repository": { - "type": "git", - "url": "git+https://github.com/guybedford/es-module-lexer.git" - }, - "bugs": { - "url": "https://github.com/guybedford/es-module-lexer/issues" - }, - "homepage": "https://github.com/guybedford/es-module-lexer#readme", - "directories": { - "lib": "lib", - "test": "test" - }, - "keywords": [] -} diff --git a/build_vtk_bundle/node_modules/es-module-lexer/types/lexer.d.ts b/build_vtk_bundle/node_modules/es-module-lexer/types/lexer.d.ts deleted file mode 100644 index dd15b64d..00000000 --- a/build_vtk_bundle/node_modules/es-module-lexer/types/lexer.d.ts +++ /dev/null @@ -1,195 +0,0 @@ -export declare enum ImportType { - /** - * A normal static using any syntax variations - * import .. from 'module' - */ - Static = 1, - /** - * A dynamic import expression `import(specifier)` - * or `import(specifier, opts)` - */ - Dynamic = 2, - /** - * An import.meta expression - */ - ImportMeta = 3, - /** - * A source phase import - * import source x from 'module' - */ - StaticSourcePhase = 4, - /** - * A dynamic source phase import - * import.source('module') - */ - DynamicSourcePhase = 5, - /** - * A defer phase import - * import defer * as x from 'module' - */ - StaticDeferPhase = 6, - /** - * A dynamic defer phase import - * import.defer('module') - */ - DynamicDeferPhase = 7 -} -export interface ImportSpecifier { - /** - * Module name - * - * To handle escape sequences in specifier strings, the .n field of imported specifiers will be provided where possible. - * - * For dynamic import expressions, this field will be empty if not a valid JS string. - * For static import expressions, this field will always be populated. - * - * @example - * const [imports1, exports1] = parse(String.raw`import './\u0061\u0062.js'`); - * imports1[0].n; - * // Returns "./ab.js" - * - * const [imports2, exports2] = parse(`import("./ab.js")`); - * imports2[0].n; - * // Returns "./ab.js" - * - * const [imports3, exports3] = parse(`import("./" + "ab.js")`); - * imports3[0].n; - * // Returns undefined - */ - readonly n: string | undefined; - /** - * Type of import statement - */ - readonly t: ImportType; - /** - * Start of module specifier - * - * @example - * const source = `import { a } from 'asdf'`; - * const [imports, exports] = parse(source); - * source.substring(imports[0].s, imports[0].e); - * // Returns "asdf" - */ - readonly s: number; - /** - * End of module specifier - */ - readonly e: number; - /** - * Start of import statement - * - * @example - * const source = `import { a } from 'asdf'`; - * const [imports, exports] = parse(source); - * source.substring(imports[0].ss, imports[0].se); - * // Returns "import { a } from 'asdf';" - */ - readonly ss: number; - /** - * End of import statement - */ - readonly se: number; - /** - * If this import keyword is a dynamic import, this is the start value. - * If this import keyword is a static import, this is -1. - * If this import keyword is an import.meta expresion, this is -2. - */ - readonly d: number; - /** - * If this import has an import assertion, this is the start value. - * Otherwise this is `-1`. - */ - readonly a: number; -} -export interface ExportSpecifier { - /** - * Exported name - * - * @example - * const source = `export default []`; - * const [imports, exports] = parse(source); - * exports[0].n; - * // Returns "default" - * - * @example - * const source = `export const asdf = 42`; - * const [imports, exports] = parse(source); - * exports[0].n; - * // Returns "asdf" - */ - readonly n: string; - /** - * Local name, or undefined. - * - * @example - * const source = `export default []`; - * const [imports, exports] = parse(source); - * exports[0].ln; - * // Returns undefined - * - * @example - * const asdf = 42; - * const source = `export { asdf as a }`; - * const [imports, exports] = parse(source); - * exports[0].ln; - * // Returns "asdf" - */ - readonly ln: string | undefined; - /** - * Start of exported name - * - * @example - * const source = `export default []`; - * const [imports, exports] = parse(source); - * source.substring(exports[0].s, exports[0].e); - * // Returns "default" - * - * @example - * const source = `export { 42 as asdf }`; - * const [imports, exports] = parse(source); - * source.substring(exports[0].s, exports[0].e); - * // Returns "asdf" - */ - readonly s: number; - /** - * End of exported name - */ - readonly e: number; - /** - * Start of local name, or -1. - * - * @example - * const asdf = 42; - * const source = `export { asdf as a }`; - * const [imports, exports] = parse(source); - * source.substring(exports[0].ls, exports[0].le); - * // Returns "asdf" - */ - readonly ls: number; - /** - * End of local name, or -1. - */ - readonly le: number; -} -export interface ParseError extends Error { - idx: number; -} -/** - * Outputs the list of exports and locations of import specifiers, - * including dynamic import and import meta handling. - * - * @param source Source code to parser - * @param name Optional sourcename - * @returns Tuple contaning imports list and exports list. - */ -export declare function parse(source: string, name?: string): readonly [ - imports: ReadonlyArray, - exports: ReadonlyArray, - facade: boolean, - hasModuleSyntax: boolean -]; -/** - * Wait for init to resolve before calling `parse`. - */ -export declare const init: Promise; -export declare const initSync: () => void; diff --git a/build_vtk_bundle/node_modules/escalade/index.d.mts b/build_vtk_bundle/node_modules/escalade/index.d.mts deleted file mode 100644 index 550699cf..00000000 --- a/build_vtk_bundle/node_modules/escalade/index.d.mts +++ /dev/null @@ -1,11 +0,0 @@ -type Promisable = T | Promise; - -export type Callback = ( - directory: string, - files: string[], -) => Promisable; - -export default function ( - directory: string, - callback: Callback, -): Promise; diff --git a/build_vtk_bundle/node_modules/escalade/index.d.ts b/build_vtk_bundle/node_modules/escalade/index.d.ts deleted file mode 100644 index 26c58f2f..00000000 --- a/build_vtk_bundle/node_modules/escalade/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -type Promisable = T | Promise; - -declare namespace escalade { - export type Callback = ( - directory: string, - files: string[], - ) => Promisable; -} - -declare function escalade( - directory: string, - callback: escalade.Callback, -): Promise; - -export = escalade; diff --git a/build_vtk_bundle/node_modules/escalade/license b/build_vtk_bundle/node_modules/escalade/license deleted file mode 100644 index fa6089fa..00000000 --- a/build_vtk_bundle/node_modules/escalade/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Luke Edwards (lukeed.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/escalade/package.json b/build_vtk_bundle/node_modules/escalade/package.json deleted file mode 100644 index 1eed4f93..00000000 --- a/build_vtk_bundle/node_modules/escalade/package.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "name": "escalade", - "version": "3.2.0", - "repository": "lukeed/escalade", - "description": "A tiny (183B to 210B) and fast utility to ascend parent directories", - "module": "dist/index.mjs", - "main": "dist/index.js", - "types": "index.d.ts", - "license": "MIT", - "author": { - "name": "Luke Edwards", - "email": "luke.edwards05@gmail.com", - "url": "https://lukeed.com" - }, - "exports": { - ".": [ - { - "import": { - "types": "./index.d.mts", - "default": "./dist/index.mjs" - }, - "require": { - "types": "./index.d.ts", - "default": "./dist/index.js" - } - }, - "./dist/index.js" - ], - "./sync": [ - { - "import": { - "types": "./sync/index.d.mts", - "default": "./sync/index.mjs" - }, - "require": { - "types": "./sync/index.d.ts", - "default": "./sync/index.js" - } - }, - "./sync/index.js" - ] - }, - "files": [ - "*.d.mts", - "*.d.ts", - "dist", - "sync" - ], - "modes": { - "sync": "src/sync.js", - "default": "src/async.js" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "build": "bundt", - "pretest": "npm run build", - "test": "uvu -r esm test -i fixtures" - }, - "keywords": [ - "find", - "parent", - "parents", - "directory", - "search", - "walk" - ], - "devDependencies": { - "bundt": "1.1.1", - "esm": "3.2.25", - "uvu": "0.3.3" - } -} diff --git a/build_vtk_bundle/node_modules/escalade/readme.md b/build_vtk_bundle/node_modules/escalade/readme.md deleted file mode 100644 index e07ee0d3..00000000 --- a/build_vtk_bundle/node_modules/escalade/readme.md +++ /dev/null @@ -1,211 +0,0 @@ -# escalade [![CI](https://github.com/lukeed/escalade/workflows/CI/badge.svg)](https://github.com/lukeed/escalade/actions) [![licenses](https://licenses.dev/b/npm/escalade)](https://licenses.dev/npm/escalade) [![codecov](https://badgen.now.sh/codecov/c/github/lukeed/escalade)](https://codecov.io/gh/lukeed/escalade) - -> A tiny (183B to 210B) and [fast](#benchmarks) utility to ascend parent directories - -With [escalade](https://en.wikipedia.org/wiki/Escalade), you can scale parent directories until you've found what you're looking for.
Given an input file or directory, `escalade` will continue executing your callback function until either: - -1) the callback returns a truthy value -2) `escalade` has reached the system root directory (eg, `/`) - -> **Important:**
Please note that `escalade` only deals with direct ancestry – it will not dive into parents' sibling directories. - ---- - -**Notice:** As of v3.1.0, `escalade` now includes [Deno support](http://deno.land/x/escalade)! Please see [Deno Usage](#deno) below. - ---- - -## Install - -``` -$ npm install --save escalade -``` - - -## Modes - -There are two "versions" of `escalade` available: - -#### "async" -> **Node.js:** >= 8.x
-> **Size (gzip):** 210 bytes
-> **Availability:** [CommonJS](https://unpkg.com/escalade/dist/index.js), [ES Module](https://unpkg.com/escalade/dist/index.mjs) - -This is the primary/default mode. It makes use of `async`/`await` and [`util.promisify`](https://nodejs.org/api/util.html#util_util_promisify_original). - -#### "sync" -> **Node.js:** >= 6.x
-> **Size (gzip):** 183 bytes
-> **Availability:** [CommonJS](https://unpkg.com/escalade/sync/index.js), [ES Module](https://unpkg.com/escalade/sync/index.mjs) - -This is the opt-in mode, ideal for scenarios where `async` usage cannot be supported. - - -## Usage - -***Example Structure*** - -``` -/Users/lukeed - └── oss - ├── license - └── escalade - ├── package.json - └── test - └── fixtures - ├── index.js - └── foobar - └── demo.js -``` - -***Example Usage*** - -```js -//~> demo.js -import { join } from 'path'; -import escalade from 'escalade'; - -const input = join(__dirname, 'demo.js'); -// or: const input = __dirname; - -const pkg = await escalade(input, (dir, names) => { - console.log('~> dir:', dir); - console.log('~> names:', names); - console.log('---'); - - if (names.includes('package.json')) { - // will be resolved into absolute - return 'package.json'; - } -}); - -//~> dir: /Users/lukeed/oss/escalade/test/fixtures/foobar -//~> names: ['demo.js'] -//--- -//~> dir: /Users/lukeed/oss/escalade/test/fixtures -//~> names: ['index.js', 'foobar'] -//--- -//~> dir: /Users/lukeed/oss/escalade/test -//~> names: ['fixtures'] -//--- -//~> dir: /Users/lukeed/oss/escalade -//~> names: ['package.json', 'test'] -//--- - -console.log(pkg); -//=> /Users/lukeed/oss/escalade/package.json - -// Now search for "missing123.txt" -// (Assume it doesn't exist anywhere!) -const missing = await escalade(input, (dir, names) => { - console.log('~> dir:', dir); - return names.includes('missing123.txt') && 'missing123.txt'; -}); - -//~> dir: /Users/lukeed/oss/escalade/test/fixtures/foobar -//~> dir: /Users/lukeed/oss/escalade/test/fixtures -//~> dir: /Users/lukeed/oss/escalade/test -//~> dir: /Users/lukeed/oss/escalade -//~> dir: /Users/lukeed/oss -//~> dir: /Users/lukeed -//~> dir: /Users -//~> dir: / - -console.log(missing); -//=> undefined -``` - -> **Note:** To run the above example with "sync" mode, import from `escalade/sync` and remove the `await` keyword. - - -## API - -### escalade(input, callback) -Returns: `string|void` or `Promise` - -When your `callback` locates a file, `escalade` will resolve/return with an absolute path.
-If your `callback` was never satisfied, then `escalade` will resolve/return with nothing (undefined). - -> **Important:**
The `sync` and `async` versions share the same API.
The **only** difference is that `sync` is not Promise-based. - -#### input -Type: `string` - -The path from which to start ascending. - -This may be a file or a directory path.
However, when `input` is a file, `escalade` will begin with its parent directory. - -> **Important:** Unless given an absolute path, `input` will be resolved from `process.cwd()` location. - -#### callback -Type: `Function` - -The callback to execute for each ancestry level. It always is given two arguments: - -1) `dir` - an absolute path of the current parent directory -2) `names` - a list (`string[]`) of contents _relative to_ the `dir` parent - -> **Note:** The `names` list can contain names of files _and_ directories. - -When your callback returns a _falsey_ value, then `escalade` will continue with `dir`'s parent directory, re-invoking your callback with new argument values. - -When your callback returns a string, then `escalade` stops iteration immediately.
-If the string is an absolute path, then it's left as is. Otherwise, the string is resolved into an absolute path _from_ the `dir` that housed the satisfying condition. - -> **Important:** Your `callback` can be a `Promise/AsyncFunction` when using the "async" version of `escalade`. - -## Benchmarks - -> Running on Node.js v10.13.0 - -``` -# Load Time - find-up 3.891ms - escalade 0.485ms - escalade/sync 0.309ms - -# Levels: 6 (target = "foo.txt"): - find-up x 24,856 ops/sec ±6.46% (55 runs sampled) - escalade x 73,084 ops/sec ±4.23% (73 runs sampled) - find-up.sync x 3,663 ops/sec ±1.12% (83 runs sampled) - escalade/sync x 9,360 ops/sec ±0.62% (88 runs sampled) - -# Levels: 12 (target = "package.json"): - find-up x 29,300 ops/sec ±10.68% (70 runs sampled) - escalade x 73,685 ops/sec ± 5.66% (66 runs sampled) - find-up.sync x 1,707 ops/sec ± 0.58% (91 runs sampled) - escalade/sync x 4,667 ops/sec ± 0.68% (94 runs sampled) - -# Levels: 18 (target = "missing123.txt"): - find-up x 21,818 ops/sec ±17.37% (14 runs sampled) - escalade x 67,101 ops/sec ±21.60% (20 runs sampled) - find-up.sync x 1,037 ops/sec ± 2.86% (88 runs sampled) - escalade/sync x 1,248 ops/sec ± 0.50% (93 runs sampled) -``` - -## Deno - -As of v3.1.0, `escalade` is available on the Deno registry. - -Please note that the [API](#api) is identical and that there are still [two modes](#modes) from which to choose: - -```ts -// Choose "async" mode -import escalade from 'https://deno.land/escalade/async.ts'; - -// Choose "sync" mode -import escalade from 'https://deno.land/escalade/sync.ts'; -``` - -> **Important:** The `allow-read` permission is required! - - -## Related - -- [premove](https://github.com/lukeed/premove) - A tiny (247B) utility to remove items recursively -- [totalist](https://github.com/lukeed/totalist) - A tiny (195B to 224B) utility to recursively list all (total) files in a directory -- [mk-dirs](https://github.com/lukeed/mk-dirs) - A tiny (420B) utility to make a directory and its parents, recursively - -## License - -MIT © [Luke Edwards](https://lukeed.com) diff --git a/build_vtk_bundle/node_modules/escalade/sync/index.d.mts b/build_vtk_bundle/node_modules/escalade/sync/index.d.mts deleted file mode 100644 index c023d37b..00000000 --- a/build_vtk_bundle/node_modules/escalade/sync/index.d.mts +++ /dev/null @@ -1,9 +0,0 @@ -export type Callback = ( - directory: string, - files: string[], -) => string | false | void; - -export default function ( - directory: string, - callback: Callback, -): string | void; diff --git a/build_vtk_bundle/node_modules/escalade/sync/index.d.ts b/build_vtk_bundle/node_modules/escalade/sync/index.d.ts deleted file mode 100644 index 9d5b5890..00000000 --- a/build_vtk_bundle/node_modules/escalade/sync/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -declare namespace escalade { - export type Callback = ( - directory: string, - files: string[], - ) => string | false | void; -} - -declare function escalade( - directory: string, - callback: escalade.Callback, -): string | void; - -export = escalade; diff --git a/build_vtk_bundle/node_modules/escalade/sync/index.js b/build_vtk_bundle/node_modules/escalade/sync/index.js deleted file mode 100644 index 902cc46c..00000000 --- a/build_vtk_bundle/node_modules/escalade/sync/index.js +++ /dev/null @@ -1,18 +0,0 @@ -const { dirname, resolve } = require('path'); -const { readdirSync, statSync } = require('fs'); - -module.exports = function (start, callback) { - let dir = resolve('.', start); - let tmp, stats = statSync(dir); - - if (!stats.isDirectory()) { - dir = dirname(dir); - } - - while (true) { - tmp = callback(dir, readdirSync(dir)); - if (tmp) return resolve(dir, tmp); - dir = dirname(tmp = dir); - if (tmp === dir) break; - } -} diff --git a/build_vtk_bundle/node_modules/escalade/sync/index.mjs b/build_vtk_bundle/node_modules/escalade/sync/index.mjs deleted file mode 100644 index 3cdc5bd1..00000000 --- a/build_vtk_bundle/node_modules/escalade/sync/index.mjs +++ /dev/null @@ -1,18 +0,0 @@ -import { dirname, resolve } from 'path'; -import { readdirSync, statSync } from 'fs'; - -export default function (start, callback) { - let dir = resolve('.', start); - let tmp, stats = statSync(dir); - - if (!stats.isDirectory()) { - dir = dirname(dir); - } - - while (true) { - tmp = callback(dir, readdirSync(dir)); - if (tmp) return resolve(dir, tmp); - dir = dirname(tmp = dir); - if (tmp === dir) break; - } -} diff --git a/build_vtk_bundle/node_modules/eslint-scope/CHANGELOG.md b/build_vtk_bundle/node_modules/eslint-scope/CHANGELOG.md deleted file mode 100644 index cc07de01..00000000 --- a/build_vtk_bundle/node_modules/eslint-scope/CHANGELOG.md +++ /dev/null @@ -1,70 +0,0 @@ -v5.1.1 - September 12, 2020 - -* [`9b528d7`](https://github.com/eslint/eslint-scope/commit/9b528d778c381718c12dabfb7f1c0e0dc6b36e49) Upgrade: esrecurse version to ^4.3.0 (#64) (Timofey Kachalov) -* [`f758bbc`](https://github.com/eslint/eslint-scope/commit/f758bbc3d49b9b9ea2289a5d6a6bba8dcf2c4903) Chore: fix definiton -> definition typo in comments (#63) (Kevin Kirsche) -* [`7513734`](https://github.com/eslint/eslint-scope/commit/751373473375b3f2edc4eaf1c8d2763d8435bb72) Chore: move to GitHub Actions (#62) (Kai Cataldo) - -v5.1.0 - June 4, 2020 - -* [`d4a3764`](https://github.com/eslint/eslint-scope/commit/d4a376434b16289c1a428d7e304576e997520873) Update: support new export syntax (#56) (Toru Nagashima) - -v5.0.0 - July 20, 2019 - -* [`e9fa22e`](https://github.com/eslint/eslint-scope/commit/e9fa22ea412c26cf2761fa98af7e715644bdb464) Upgrade: update dependencies after dropping support for Node <8 (#53) (Kai Cataldo) -* [`ee9f7c1`](https://github.com/eslint/eslint-scope/commit/ee9f7c12721aa195ba7e0e69551f49bfdb479951) Breaking: drop support for Node v6 (#54) (Kai Cataldo) - -v4.0.3 - March 15, 2019 - -* [`299df64`](https://github.com/eslint/eslint-scope/commit/299df64bdafb30b4d9372e4b7af0cf51a3818c4a) Fix: arrow function scope strictness (take 2) (#52) (futpib) - -v4.0.2 - March 1, 2019 - -* [`c925600`](https://github.com/eslint/eslint-scope/commit/c925600a684ae0f71b96f85339437a43b4d50d99) Revert "Fix: Arrow function scope strictness (fixes #49) (#50)" (#51) (Teddy Katz) - -v4.0.1 - March 1, 2019 - -* [`2533966`](https://github.com/eslint/eslint-scope/commit/2533966faf317df5a3847fab937ba462c16808b8) Fix: Arrow function scope strictness (fixes #49) (#50) (futpib) -* [`0cbeea5`](https://github.com/eslint/eslint-scope/commit/0cbeea51dfb66ab88ea34b0e3b4ad5e6cc210f2f) Chore: add supported Node.js versions to CI (#47) (Kai Cataldo) -* [`b423057`](https://github.com/eslint/eslint-scope/commit/b42305760638b8edf4667acf1445e450869bd983) Upgrade: eslint-release@1.0.0 (#46) (Teddy Katz) - -v4.0.0 - June 21, 2018 - - - -v4.0.0-rc.0 - June 9, 2018 - -* 3b919b8 Build: Adding rc release script to package.json (#38) (Kevin Partington) -* 137732a Chore: avoid creating package-lock.json files (#37) (Teddy Katz) - -v4.0.0-alpha.0 - April 27, 2018 - -* 7cc3769 Upgrade: eslint-release ^0.11.1 (#36) (Teddy Katz) -* c9f6967 Breaking: remove TDZScope (refs eslint/eslint#10245) (#35) (Toru Nagashima) -* 982a71f Fix: wrong resolution about default parameters (#33) (Toru Nagashima) -* 57889f1 Docs: Remove extra header line from LICENSE (#32) (Gyandeep Singh) - -v3.7.1 - April 12, 2017 - -* ced6262 Fix: restore previous Scope API exports from escope (#31) (Vitor Balocco) -* 5c3d966 Fix: Remove and Modify tests that contain invalid ES6 syntax (#29) (Reyad Attiyat) - -v3.7.0 - March 17, 2017 - -* 9e27835 Chore: Add files section to package.json (#24) (Ilya Volodin) -* 3e4d123 Upgrade: eslint-config-eslint to 4.0.0 (#21) (Teddy Katz) -* 38c50fb Chore: Rename src to lib and test to tests (#20) (Corbin Uselton) -* f4cd920 Chore: Remove esprima (#19) (Corbin Uselton) -* f81fad5 Revert "Chore: Remove esprima" (#18) (James Henry) -* 31b0085 Chore: Remove es6-map and es6-weakmap as they are included in node4 (#10) (#13) (Corbin Uselton) -* 12a1ca1 Add Makefile.js and eslint (#15) (Reyad Attiyat) -* 7d23f8e Chore: Remove es6-map and es6-weakmap as they are included in node4 (#10) (Corbin Uselton) -* 019441e Chore: Convert to ES6 that is supported on Node 4, commonjs modules and remove Babel (#14) (Corbin Uselton) -* c647f65 Update: Add check for node.body in referencer (#2) (Corbin Uselton) -* eb5c9db Remove browserify and jsdoc (#12) (Corbin Uselton) -* cf38df0 Chore: Update README.md (#3) (James Henry) -* 8a142ca Chore: Add eslint-release scripts (#6) (James Henry) -* e60d8cb Chore: Remove unused bower.json (#5) (James Henry) -* 049c545 Chore: Fix tests for eslint-scope (#4) (James Henry) -* f026aab Chore: Update package.json for eslint fork (#1) (James Henry) -* a94d281 Chore: Update license with JSF copyright (Nicholas C. Zakas) - diff --git a/build_vtk_bundle/node_modules/eslint-scope/LICENSE b/build_vtk_bundle/node_modules/eslint-scope/LICENSE deleted file mode 100644 index d36a526f..00000000 --- a/build_vtk_bundle/node_modules/eslint-scope/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright JS Foundation and other contributors, https://js.foundation -Copyright (C) 2012-2013 Yusuke Suzuki (twitter: @Constellation) and other contributors. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/build_vtk_bundle/node_modules/eslint-scope/README.md b/build_vtk_bundle/node_modules/eslint-scope/README.md deleted file mode 100644 index 7e7ce0d3..00000000 --- a/build_vtk_bundle/node_modules/eslint-scope/README.md +++ /dev/null @@ -1,54 +0,0 @@ -# ESLint Scope - -ESLint Scope is the [ECMAScript](http://www.ecma-international.org/publications/standards/Ecma-262.htm) scope analyzer used in ESLint. It is a fork of [escope](http://github.com/estools/escope). - -## Usage - -Install: - -``` -npm i eslint-scope --save -``` - -Example: - -```js -var eslintScope = require('eslint-scope'); -var espree = require('espree'); -var estraverse = require('estraverse'); - -var ast = espree.parse(code); -var scopeManager = eslintScope.analyze(ast); - -var currentScope = scopeManager.acquire(ast); // global scope - -estraverse.traverse(ast, { - enter: function(node, parent) { - // do stuff - - if (/Function/.test(node.type)) { - currentScope = scopeManager.acquire(node); // get current function scope - } - }, - leave: function(node, parent) { - if (/Function/.test(node.type)) { - currentScope = currentScope.upper; // set to parent scope - } - - // do stuff - } -}); -``` - -## Contributing - -Issues and pull requests will be triaged and responded to as quickly as possible. We operate under the [ESLint Contributor Guidelines](http://eslint.org/docs/developer-guide/contributing), so please be sure to read them before contributing. If you're not sure where to dig in, check out the [issues](https://github.com/eslint/eslint-scope/issues). - -## Build Commands - -* `npm test` - run all linting and tests -* `npm run lint` - run all linting - -## License - -ESLint Scope is licensed under a permissive BSD 2-clause license. diff --git a/build_vtk_bundle/node_modules/eslint-scope/package.json b/build_vtk_bundle/node_modules/eslint-scope/package.json deleted file mode 100644 index b700b92a..00000000 --- a/build_vtk_bundle/node_modules/eslint-scope/package.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "eslint-scope", - "description": "ECMAScript scope analyzer for ESLint", - "homepage": "http://github.com/eslint/eslint-scope", - "main": "lib/index.js", - "version": "5.1.1", - "engines": { - "node": ">=8.0.0" - }, - "repository": "eslint/eslint-scope", - "bugs": { - "url": "https://github.com/eslint/eslint-scope/issues" - }, - "license": "BSD-2-Clause", - "scripts": { - "test": "node Makefile.js test", - "lint": "node Makefile.js lint", - "generate-release": "eslint-generate-release", - "generate-alpharelease": "eslint-generate-prerelease alpha", - "generate-betarelease": "eslint-generate-prerelease beta", - "generate-rcrelease": "eslint-generate-prerelease rc", - "publish-release": "eslint-publish-release" - }, - "files": [ - "LICENSE", - "README.md", - "lib" - ], - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "devDependencies": { - "@typescript-eslint/parser": "^1.11.0", - "chai": "^4.2.0", - "eslint": "^6.0.1", - "eslint-config-eslint": "^5.0.1", - "eslint-plugin-node": "^9.1.0", - "eslint-release": "^1.0.0", - "eslint-visitor-keys": "^1.2.0", - "espree": "^7.1.0", - "istanbul": "^0.4.5", - "mocha": "^6.1.4", - "npm-license": "^0.3.3", - "shelljs": "^0.8.3", - "typescript": "^3.5.2" - } -} diff --git a/build_vtk_bundle/node_modules/esprima/ChangeLog b/build_vtk_bundle/node_modules/esprima/ChangeLog deleted file mode 100644 index fafe1c98..00000000 --- a/build_vtk_bundle/node_modules/esprima/ChangeLog +++ /dev/null @@ -1,235 +0,0 @@ -2018-06-17: Version 4.0.1 - - * Fix parsing async get/set in a class (issue 1861, 1875) - * Account for different return statement argument (issue 1829, 1897, 1928) - * Correct the handling of HTML comment when parsing a module (issue 1841) - * Fix incorrect parse async with proto-identifier-shorthand (issue 1847) - * Fix negative column in binary expression (issue 1844) - * Fix incorrect YieldExpression in object methods (issue 1834) - * Various documentation fixes - -2017-06-10: Version 4.0.0 - - * Support ES2017 async function and await expression (issue 1079) - * Support ES2017 trailing commas in function parameters (issue 1550) - * Explicitly distinguish parsing a module vs a script (issue 1576) - * Fix JSX non-empty container (issue 1786) - * Allow JSX element in a yield expression (issue 1765) - * Allow `in` expression in a concise body with a function body (issue 1793) - * Setter function argument must not be a rest parameter (issue 1693) - * Limit strict mode directive to functions with a simple parameter list (issue 1677) - * Prohibit any escape sequence in a reserved word (issue 1612) - * Only permit hex digits in hex escape sequence (issue 1619) - * Prohibit labelled class/generator/function declaration (issue 1484) - * Limit function declaration as if statement clause only in non-strict mode (issue 1657) - * Tolerate missing ) in a with and do-while statement (issue 1481) - -2016-12-22: Version 3.1.3 - - * Support binding patterns as rest element (issue 1681) - * Account for different possible arguments of a yield expression (issue 1469) - -2016-11-24: Version 3.1.2 - - * Ensure that import specifier is more restrictive (issue 1615) - * Fix duplicated JSX tokens (issue 1613) - * Scan template literal in a JSX expression container (issue 1622) - * Improve XHTML entity scanning in JSX (issue 1629) - -2016-10-31: Version 3.1.1 - - * Fix assignment expression problem in an export declaration (issue 1596) - * Fix incorrect tokenization of hex digits (issue 1605) - -2016-10-09: Version 3.1.0 - - * Do not implicitly collect comments when comment attachment is specified (issue 1553) - * Fix incorrect handling of duplicated proto shorthand fields (issue 1485) - * Prohibit initialization in some variants of for statements (issue 1309, 1561) - * Fix incorrect parsing of export specifier (issue 1578) - * Fix ESTree compatibility for assignment pattern (issue 1575) - -2016-09-03: Version 3.0.0 - - * Support ES2016 exponentiation expression (issue 1490) - * Support JSX syntax (issue 1467) - * Use the latest Unicode 8.0 (issue 1475) - * Add the support for syntax node delegate (issue 1435) - * Fix ESTree compatibility on meta property (issue 1338) - * Fix ESTree compatibility on default parameter value (issue 1081) - * Fix ESTree compatibility on try handler (issue 1030) - -2016-08-23: Version 2.7.3 - - * Fix tokenizer confusion with a comment (issue 1493, 1516) - -2016-02-02: Version 2.7.2 - - * Fix out-of-bound error location in an invalid string literal (issue 1457) - * Fix shorthand object destructuring defaults in variable declarations (issue 1459) - -2015-12-10: Version 2.7.1 - - * Do not allow trailing comma in a variable declaration (issue 1360) - * Fix assignment to `let` in non-strict mode (issue 1376) - * Fix missing delegate property in YieldExpression (issue 1407) - -2015-10-22: Version 2.7.0 - - * Fix the handling of semicolon in a break statement (issue 1044) - * Run the test suite with major web browsers (issue 1259, 1317) - * Allow `let` as an identifier in non-strict mode (issue 1289) - * Attach orphaned comments as `innerComments` (issue 1328) - * Add the support for token delegator (issue 1332) - -2015-09-01: Version 2.6.0 - - * Properly allow or prohibit `let` in a binding identifier/pattern (issue 1048, 1098) - * Add sourceType field for Program node (issue 1159) - * Ensure that strict mode reserved word binding throw an error (issue 1171) - * Run the test suite with Node.js and IE 11 on Windows (issue 1294) - * Allow binding pattern with no initializer in a for statement (issue 1301) - -2015-07-31: Version 2.5.0 - - * Run the test suite in a browser environment (issue 1004) - * Ensure a comma between imported default binding and named imports (issue 1046) - * Distinguish `yield` as a keyword vs an identifier (issue 1186) - * Support ES6 meta property `new.target` (issue 1203) - * Fix the syntax node for yield with expression (issue 1223) - * Fix the check of duplicated proto in property names (issue 1225) - * Fix ES6 Unicode escape in identifier name (issue 1229) - * Support ES6 IdentifierStart and IdentifierPart (issue 1232) - * Treat await as a reserved word when parsing as a module (issue 1234) - * Recognize identifier characters from Unicode SMP (issue 1244) - * Ensure that export and import can be followed by a comma (issue 1250) - * Fix yield operator precedence (issue 1262) - -2015-07-01: Version 2.4.1 - - * Fix some cases of comment attachment (issue 1071, 1175) - * Fix the handling of destructuring in function arguments (issue 1193) - * Fix invalid ranges in assignment expression (issue 1201) - -2015-06-26: Version 2.4.0 - - * Support ES6 for-of iteration (issue 1047) - * Support ES6 spread arguments (issue 1169) - * Minimize npm payload (issue 1191) - -2015-06-16: Version 2.3.0 - - * Support ES6 generator (issue 1033) - * Improve parsing of regular expressions with `u` flag (issue 1179) - -2015-04-17: Version 2.2.0 - - * Support ES6 import and export declarations (issue 1000) - * Fix line terminator before arrow not recognized as error (issue 1009) - * Support ES6 destructuring (issue 1045) - * Support ES6 template literal (issue 1074) - * Fix the handling of invalid/incomplete string escape sequences (issue 1106) - * Fix ES3 static member access restriction (issue 1120) - * Support for `super` in ES6 class (issue 1147) - -2015-03-09: Version 2.1.0 - - * Support ES6 class (issue 1001) - * Support ES6 rest parameter (issue 1011) - * Expand the location of property getter, setter, and methods (issue 1029) - * Enable TryStatement transition to a single handler (issue 1031) - * Support ES6 computed property name (issue 1037) - * Tolerate unclosed block comment (issue 1041) - * Support ES6 lexical declaration (issue 1065) - -2015-02-06: Version 2.0.0 - - * Support ES6 arrow function (issue 517) - * Support ES6 Unicode code point escape (issue 521) - * Improve the speed and accuracy of comment attachment (issue 522) - * Support ES6 default parameter (issue 519) - * Support ES6 regular expression flags (issue 557) - * Fix scanning of implicit octal literals (issue 565) - * Fix the handling of automatic semicolon insertion (issue 574) - * Support ES6 method definition (issue 620) - * Support ES6 octal integer literal (issue 621) - * Support ES6 binary integer literal (issue 622) - * Support ES6 object literal property value shorthand (issue 624) - -2015-03-03: Version 1.2.5 - - * Fix scanning of implicit octal literals (issue 565) - -2015-02-05: Version 1.2.4 - - * Fix parsing of LeftHandSideExpression in ForInStatement (issue 560) - * Fix the handling of automatic semicolon insertion (issue 574) - -2015-01-18: Version 1.2.3 - - * Fix division by this (issue 616) - -2014-05-18: Version 1.2.2 - - * Fix duplicated tokens when collecting comments (issue 537) - -2014-05-04: Version 1.2.1 - - * Ensure that Program node may still have leading comments (issue 536) - -2014-04-29: Version 1.2.0 - - * Fix semicolon handling for expression statement (issue 462, 533) - * Disallow escaped characters in regular expression flags (issue 503) - * Performance improvement for location tracking (issue 520) - * Improve the speed of comment attachment (issue 522) - -2014-03-26: Version 1.1.1 - - * Fix token handling of forward slash after an array literal (issue 512) - -2014-03-23: Version 1.1.0 - - * Optionally attach comments to the owning syntax nodes (issue 197) - * Simplify binary parsing with stack-based shift reduce (issue 352) - * Always include the raw source of literals (issue 376) - * Add optional input source information (issue 386) - * Tokenizer API for pure lexical scanning (issue 398) - * Improve the web site and its online demos (issue 337, 400, 404) - * Performance improvement for location tracking (issue 417, 424) - * Support HTML comment syntax (issue 451) - * Drop support for legacy browsers (issue 474) - -2013-08-27: Version 1.0.4 - - * Minimize the payload for packages (issue 362) - * Fix missing cases on an empty switch statement (issue 436) - * Support escaped ] in regexp literal character classes (issue 442) - * Tolerate invalid left-hand side expression (issue 130) - -2013-05-17: Version 1.0.3 - - * Variable declaration needs at least one declarator (issue 391) - * Fix benchmark's variance unit conversion (issue 397) - * IE < 9: \v should be treated as vertical tab (issue 405) - * Unary expressions should always have prefix: true (issue 418) - * Catch clause should only accept an identifier (issue 423) - * Tolerate setters without parameter (issue 426) - -2012-11-02: Version 1.0.2 - - Improvement: - - * Fix esvalidate JUnit output upon a syntax error (issue 374) - -2012-10-28: Version 1.0.1 - - Improvements: - - * esvalidate understands shebang in a Unix shell script (issue 361) - * esvalidate treats fatal parsing failure as an error (issue 361) - * Reduce Node.js package via .npmignore (issue 362) - -2012-10-22: Version 1.0.0 - - Initial release. diff --git a/build_vtk_bundle/node_modules/esprima/LICENSE.BSD b/build_vtk_bundle/node_modules/esprima/LICENSE.BSD deleted file mode 100644 index 7a55160f..00000000 --- a/build_vtk_bundle/node_modules/esprima/LICENSE.BSD +++ /dev/null @@ -1,21 +0,0 @@ -Copyright JS Foundation and other contributors, https://js.foundation/ - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/build_vtk_bundle/node_modules/esprima/README.md b/build_vtk_bundle/node_modules/esprima/README.md deleted file mode 100644 index 8fb25e6c..00000000 --- a/build_vtk_bundle/node_modules/esprima/README.md +++ /dev/null @@ -1,46 +0,0 @@ -[![NPM version](https://img.shields.io/npm/v/esprima.svg)](https://www.npmjs.com/package/esprima) -[![npm download](https://img.shields.io/npm/dm/esprima.svg)](https://www.npmjs.com/package/esprima) -[![Build Status](https://img.shields.io/travis/jquery/esprima/master.svg)](https://travis-ci.org/jquery/esprima) -[![Coverage Status](https://img.shields.io/codecov/c/github/jquery/esprima/master.svg)](https://codecov.io/github/jquery/esprima) - -**Esprima** ([esprima.org](http://esprima.org), BSD license) is a high performance, -standard-compliant [ECMAScript](http://www.ecma-international.org/publications/standards/Ecma-262.htm) -parser written in ECMAScript (also popularly known as -[JavaScript](https://en.wikipedia.org/wiki/JavaScript)). -Esprima is created and maintained by [Ariya Hidayat](https://twitter.com/ariyahidayat), -with the help of [many contributors](https://github.com/jquery/esprima/contributors). - -### Features - -- Full support for ECMAScript 2017 ([ECMA-262 8th Edition](http://www.ecma-international.org/publications/standards/Ecma-262.htm)) -- Sensible [syntax tree format](https://github.com/estree/estree/blob/master/es5.md) as standardized by [ESTree project](https://github.com/estree/estree) -- Experimental support for [JSX](https://facebook.github.io/jsx/), a syntax extension for [React](https://facebook.github.io/react/) -- Optional tracking of syntax node location (index-based and line-column) -- [Heavily tested](http://esprima.org/test/ci.html) (~1500 [unit tests](https://github.com/jquery/esprima/tree/master/test/fixtures) with [full code coverage](https://codecov.io/github/jquery/esprima)) - -### API - -Esprima can be used to perform [lexical analysis](https://en.wikipedia.org/wiki/Lexical_analysis) (tokenization) or [syntactic analysis](https://en.wikipedia.org/wiki/Parsing) (parsing) of a JavaScript program. - -A simple example on Node.js REPL: - -```javascript -> var esprima = require('esprima'); -> var program = 'const answer = 42'; - -> esprima.tokenize(program); -[ { type: 'Keyword', value: 'const' }, - { type: 'Identifier', value: 'answer' }, - { type: 'Punctuator', value: '=' }, - { type: 'Numeric', value: '42' } ] - -> esprima.parseScript(program); -{ type: 'Program', - body: - [ { type: 'VariableDeclaration', - declarations: [Object], - kind: 'const' } ], - sourceType: 'script' } -``` - -For more information, please read the [complete documentation](http://esprima.org/doc). \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/esprima/bin/esparse.js b/build_vtk_bundle/node_modules/esprima/bin/esparse.js deleted file mode 100755 index 45d05fbb..00000000 --- a/build_vtk_bundle/node_modules/esprima/bin/esparse.js +++ /dev/null @@ -1,139 +0,0 @@ -#!/usr/bin/env node -/* - Copyright JS Foundation and other contributors, https://js.foundation/ - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -/*jslint sloppy:true node:true rhino:true */ - -var fs, esprima, fname, forceFile, content, options, syntax; - -if (typeof require === 'function') { - fs = require('fs'); - try { - esprima = require('esprima'); - } catch (e) { - esprima = require('../'); - } -} else if (typeof load === 'function') { - try { - load('esprima.js'); - } catch (e) { - load('../esprima.js'); - } -} - -// Shims to Node.js objects when running under Rhino. -if (typeof console === 'undefined' && typeof process === 'undefined') { - console = { log: print }; - fs = { readFileSync: readFile }; - process = { argv: arguments, exit: quit }; - process.argv.unshift('esparse.js'); - process.argv.unshift('rhino'); -} - -function showUsage() { - console.log('Usage:'); - console.log(' esparse [options] [file.js]'); - console.log(); - console.log('Available options:'); - console.log(); - console.log(' --comment Gather all line and block comments in an array'); - console.log(' --loc Include line-column location info for each syntax node'); - console.log(' --range Include index-based range for each syntax node'); - console.log(' --raw Display the raw value of literals'); - console.log(' --tokens List all tokens in an array'); - console.log(' --tolerant Tolerate errors on a best-effort basis (experimental)'); - console.log(' -v, --version Shows program version'); - console.log(); - process.exit(1); -} - -options = {}; - -process.argv.splice(2).forEach(function (entry) { - - if (forceFile || entry === '-' || entry.slice(0, 1) !== '-') { - if (typeof fname === 'string') { - console.log('Error: more than one input file.'); - process.exit(1); - } else { - fname = entry; - } - } else if (entry === '-h' || entry === '--help') { - showUsage(); - } else if (entry === '-v' || entry === '--version') { - console.log('ECMAScript Parser (using Esprima version', esprima.version, ')'); - console.log(); - process.exit(0); - } else if (entry === '--comment') { - options.comment = true; - } else if (entry === '--loc') { - options.loc = true; - } else if (entry === '--range') { - options.range = true; - } else if (entry === '--raw') { - options.raw = true; - } else if (entry === '--tokens') { - options.tokens = true; - } else if (entry === '--tolerant') { - options.tolerant = true; - } else if (entry === '--') { - forceFile = true; - } else { - console.log('Error: unknown option ' + entry + '.'); - process.exit(1); - } -}); - -// Special handling for regular expression literal since we need to -// convert it to a string literal, otherwise it will be decoded -// as object "{}" and the regular expression would be lost. -function adjustRegexLiteral(key, value) { - if (key === 'value' && value instanceof RegExp) { - value = value.toString(); - } - return value; -} - -function run(content) { - syntax = esprima.parse(content, options); - console.log(JSON.stringify(syntax, adjustRegexLiteral, 4)); -} - -try { - if (fname && (fname !== '-' || forceFile)) { - run(fs.readFileSync(fname, 'utf-8')); - } else { - var content = ''; - process.stdin.resume(); - process.stdin.on('data', function(chunk) { - content += chunk; - }); - process.stdin.on('end', function() { - run(content); - }); - } -} catch (e) { - console.log('Error: ' + e.message); - process.exit(1); -} diff --git a/build_vtk_bundle/node_modules/esprima/bin/esvalidate.js b/build_vtk_bundle/node_modules/esprima/bin/esvalidate.js deleted file mode 100755 index d49a7e40..00000000 --- a/build_vtk_bundle/node_modules/esprima/bin/esvalidate.js +++ /dev/null @@ -1,236 +0,0 @@ -#!/usr/bin/env node -/* - Copyright JS Foundation and other contributors, https://js.foundation/ - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -/*jslint sloppy:true plusplus:true node:true rhino:true */ -/*global phantom:true */ - -var fs, system, esprima, options, fnames, forceFile, count; - -if (typeof esprima === 'undefined') { - // PhantomJS can only require() relative files - if (typeof phantom === 'object') { - fs = require('fs'); - system = require('system'); - esprima = require('./esprima'); - } else if (typeof require === 'function') { - fs = require('fs'); - try { - esprima = require('esprima'); - } catch (e) { - esprima = require('../'); - } - } else if (typeof load === 'function') { - try { - load('esprima.js'); - } catch (e) { - load('../esprima.js'); - } - } -} - -// Shims to Node.js objects when running under PhantomJS 1.7+. -if (typeof phantom === 'object') { - fs.readFileSync = fs.read; - process = { - argv: [].slice.call(system.args), - exit: phantom.exit, - on: function (evt, callback) { - callback(); - } - }; - process.argv.unshift('phantomjs'); -} - -// Shims to Node.js objects when running under Rhino. -if (typeof console === 'undefined' && typeof process === 'undefined') { - console = { log: print }; - fs = { readFileSync: readFile }; - process = { - argv: arguments, - exit: quit, - on: function (evt, callback) { - callback(); - } - }; - process.argv.unshift('esvalidate.js'); - process.argv.unshift('rhino'); -} - -function showUsage() { - console.log('Usage:'); - console.log(' esvalidate [options] [file.js...]'); - console.log(); - console.log('Available options:'); - console.log(); - console.log(' --format=type Set the report format, plain (default) or junit'); - console.log(' -v, --version Print program version'); - console.log(); - process.exit(1); -} - -options = { - format: 'plain' -}; - -fnames = []; - -process.argv.splice(2).forEach(function (entry) { - - if (forceFile || entry === '-' || entry.slice(0, 1) !== '-') { - fnames.push(entry); - } else if (entry === '-h' || entry === '--help') { - showUsage(); - } else if (entry === '-v' || entry === '--version') { - console.log('ECMAScript Validator (using Esprima version', esprima.version, ')'); - console.log(); - process.exit(0); - } else if (entry.slice(0, 9) === '--format=') { - options.format = entry.slice(9); - if (options.format !== 'plain' && options.format !== 'junit') { - console.log('Error: unknown report format ' + options.format + '.'); - process.exit(1); - } - } else if (entry === '--') { - forceFile = true; - } else { - console.log('Error: unknown option ' + entry + '.'); - process.exit(1); - } -}); - -if (fnames.length === 0) { - fnames.push(''); -} - -if (options.format === 'junit') { - console.log(''); - console.log(''); -} - -count = 0; - -function run(fname, content) { - var timestamp, syntax, name; - try { - if (typeof content !== 'string') { - throw content; - } - - if (content[0] === '#' && content[1] === '!') { - content = '//' + content.substr(2, content.length); - } - - timestamp = Date.now(); - syntax = esprima.parse(content, { tolerant: true }); - - if (options.format === 'junit') { - - name = fname; - if (name.lastIndexOf('/') >= 0) { - name = name.slice(name.lastIndexOf('/') + 1); - } - - console.log(''); - - syntax.errors.forEach(function (error) { - var msg = error.message; - msg = msg.replace(/^Line\ [0-9]*\:\ /, ''); - console.log(' '); - console.log(' ' + - error.message + '(' + name + ':' + error.lineNumber + ')' + - ''); - console.log(' '); - }); - - console.log(''); - - } else if (options.format === 'plain') { - - syntax.errors.forEach(function (error) { - var msg = error.message; - msg = msg.replace(/^Line\ [0-9]*\:\ /, ''); - msg = fname + ':' + error.lineNumber + ': ' + msg; - console.log(msg); - ++count; - }); - - } - } catch (e) { - ++count; - if (options.format === 'junit') { - console.log(''); - console.log(' '); - console.log(' ' + - e.message + '(' + fname + ((e.lineNumber) ? ':' + e.lineNumber : '') + - ')'); - console.log(' '); - console.log(''); - } else { - console.log(fname + ':' + e.lineNumber + ': ' + e.message.replace(/^Line\ [0-9]*\:\ /, '')); - } - } -} - -fnames.forEach(function (fname) { - var content = ''; - try { - if (fname && (fname !== '-' || forceFile)) { - content = fs.readFileSync(fname, 'utf-8'); - } else { - fname = ''; - process.stdin.resume(); - process.stdin.on('data', function(chunk) { - content += chunk; - }); - process.stdin.on('end', function() { - run(fname, content); - }); - return; - } - } catch (e) { - content = e; - } - run(fname, content); -}); - -process.on('exit', function () { - if (options.format === 'junit') { - console.log(''); - } - - if (count > 0) { - process.exit(1); - } - - if (count === 0 && typeof phantom === 'object') { - process.exit(0); - } -}); diff --git a/build_vtk_bundle/node_modules/esprima/package.json b/build_vtk_bundle/node_modules/esprima/package.json deleted file mode 100644 index 4148b8ce..00000000 --- a/build_vtk_bundle/node_modules/esprima/package.json +++ /dev/null @@ -1,112 +0,0 @@ -{ - "name": "esprima", - "description": "ECMAScript parsing infrastructure for multipurpose analysis", - "homepage": "http://esprima.org", - "main": "dist/esprima.js", - "bin": { - "esparse": "./bin/esparse.js", - "esvalidate": "./bin/esvalidate.js" - }, - "version": "4.0.1", - "files": [ - "bin", - "dist/esprima.js" - ], - "engines": { - "node": ">=4" - }, - "author": { - "name": "Ariya Hidayat", - "email": "ariya.hidayat@gmail.com" - }, - "maintainers": [ - { - "name": "Ariya Hidayat", - "email": "ariya.hidayat@gmail.com", - "web": "http://ariya.ofilabs.com" - } - ], - "repository": { - "type": "git", - "url": "https://github.com/jquery/esprima.git" - }, - "bugs": { - "url": "https://github.com/jquery/esprima/issues" - }, - "license": "BSD-2-Clause", - "devDependencies": { - "codecov.io": "~0.1.6", - "escomplex-js": "1.2.0", - "everything.js": "~1.0.3", - "glob": "~7.1.0", - "istanbul": "~0.4.0", - "json-diff": "~0.3.1", - "karma": "~1.3.0", - "karma-chrome-launcher": "~2.0.0", - "karma-detect-browsers": "~2.2.3", - "karma-edge-launcher": "~0.2.0", - "karma-firefox-launcher": "~1.0.0", - "karma-ie-launcher": "~1.0.0", - "karma-mocha": "~1.3.0", - "karma-safari-launcher": "~1.0.0", - "karma-safaritechpreview-launcher": "~0.0.4", - "karma-sauce-launcher": "~1.1.0", - "lodash": "~3.10.1", - "mocha": "~3.2.0", - "node-tick-processor": "~0.0.2", - "regenerate": "~1.3.2", - "temp": "~0.8.3", - "tslint": "~5.1.0", - "typescript": "~2.3.2", - "typescript-formatter": "~5.1.3", - "unicode-8.0.0": "~0.7.0", - "webpack": "~1.14.0" - }, - "keywords": [ - "ast", - "ecmascript", - "esprima", - "javascript", - "parser", - "syntax" - ], - "scripts": { - "check-version": "node test/check-version.js", - "tslint": "tslint src/*.ts", - "code-style": "tsfmt --verify src/*.ts && tsfmt --verify test/*.js", - "format-code": "tsfmt -r src/*.ts && tsfmt -r test/*.js", - "complexity": "node test/check-complexity.js", - "static-analysis": "npm run check-version && npm run tslint && npm run code-style && npm run complexity", - "hostile-env-tests": "node test/hostile-environment-tests.js", - "unit-tests": "node test/unit-tests.js", - "api-tests": "mocha -R dot test/api-tests.js", - "grammar-tests": "node test/grammar-tests.js", - "regression-tests": "node test/regression-tests.js", - "all-tests": "npm run verify-line-ending && npm run generate-fixtures && npm run unit-tests && npm run api-tests && npm run grammar-tests && npm run regression-tests && npm run hostile-env-tests", - "verify-line-ending": "node test/verify-line-ending.js", - "generate-fixtures": "node tools/generate-fixtures.js", - "browser-tests": "npm run compile && npm run generate-fixtures && cd test && karma start --single-run", - "saucelabs-evergreen": "cd test && karma start saucelabs-evergreen.conf.js", - "saucelabs-safari": "cd test && karma start saucelabs-safari.conf.js", - "saucelabs-ie": "cd test && karma start saucelabs-ie.conf.js", - "saucelabs": "npm run saucelabs-evergreen && npm run saucelabs-ie && npm run saucelabs-safari", - "analyze-coverage": "istanbul cover test/unit-tests.js", - "check-coverage": "istanbul check-coverage --statement 100 --branch 100 --function 100", - "dynamic-analysis": "npm run analyze-coverage && npm run check-coverage", - "compile": "tsc -p src/ && webpack && node tools/fixupbundle.js", - "test": "npm run compile && npm run all-tests && npm run static-analysis && npm run dynamic-analysis", - "prepublish": "npm run compile", - "profile": "node --prof test/profile.js && mv isolate*.log v8.log && node-tick-processor", - "benchmark-parser": "node -expose_gc test/benchmark-parser.js", - "benchmark-tokenizer": "node --expose_gc test/benchmark-tokenizer.js", - "benchmark": "npm run benchmark-parser && npm run benchmark-tokenizer", - "codecov": "istanbul report cobertura && codecov < ./coverage/cobertura-coverage.xml", - "downstream": "node test/downstream.js", - "travis": "npm test", - "circleci": "npm test && npm run codecov && npm run downstream", - "appveyor": "npm run compile && npm run all-tests && npm run browser-tests", - "droneio": "npm run compile && npm run all-tests && npm run saucelabs", - "generate-regex": "node tools/generate-identifier-regex.js", - "generate-xhtml-entities": "node tools/generate-xhtml-entities.js" - } -} diff --git a/build_vtk_bundle/node_modules/esrecurse/.babelrc b/build_vtk_bundle/node_modules/esrecurse/.babelrc deleted file mode 100644 index a0765e18..00000000 --- a/build_vtk_bundle/node_modules/esrecurse/.babelrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "presets": ["es2015"] -} diff --git a/build_vtk_bundle/node_modules/esrecurse/README.md b/build_vtk_bundle/node_modules/esrecurse/README.md deleted file mode 100644 index ffea6b43..00000000 --- a/build_vtk_bundle/node_modules/esrecurse/README.md +++ /dev/null @@ -1,171 +0,0 @@ -### Esrecurse [![Build Status](https://travis-ci.org/estools/esrecurse.svg?branch=master)](https://travis-ci.org/estools/esrecurse) - -Esrecurse ([esrecurse](https://github.com/estools/esrecurse)) is -[ECMAScript](https://www.ecma-international.org/publications/standards/Ecma-262.htm) -recursive traversing functionality. - -### Example Usage - -The following code will output all variables declared at the root of a file. - -```javascript -esrecurse.visit(ast, { - XXXStatement: function (node) { - this.visit(node.left); - // do something... - this.visit(node.right); - } -}); -``` - -We can use `Visitor` instance. - -```javascript -var visitor = new esrecurse.Visitor({ - XXXStatement: function (node) { - this.visit(node.left); - // do something... - this.visit(node.right); - } -}); - -visitor.visit(ast); -``` - -We can inherit `Visitor` instance easily. - -```javascript -class Derived extends esrecurse.Visitor { - constructor() - { - super(null); - } - - XXXStatement(node) { - } -} -``` - -```javascript -function DerivedVisitor() { - esrecurse.Visitor.call(/* this for constructor */ this /* visitor object automatically becomes this. */); -} -util.inherits(DerivedVisitor, esrecurse.Visitor); -DerivedVisitor.prototype.XXXStatement = function (node) { - this.visit(node.left); - // do something... - this.visit(node.right); -}; -``` - -And you can invoke default visiting operation inside custom visit operation. - -```javascript -function DerivedVisitor() { - esrecurse.Visitor.call(/* this for constructor */ this /* visitor object automatically becomes this. */); -} -util.inherits(DerivedVisitor, esrecurse.Visitor); -DerivedVisitor.prototype.XXXStatement = function (node) { - // do something... - this.visitChildren(node); -}; -``` - -The `childVisitorKeys` option does customize the behaviour of `this.visitChildren(node)`. -We can use user-defined node types. - -```javascript -// This tree contains a user-defined `TestExpression` node. -var tree = { - type: 'TestExpression', - - // This 'argument' is the property containing the other **node**. - argument: { - type: 'Literal', - value: 20 - }, - - // This 'extended' is the property not containing the other **node**. - extended: true -}; -esrecurse.visit( - ast, - { - Literal: function (node) { - // do something... - } - }, - { - // Extending the existing traversing rules. - childVisitorKeys: { - // TargetNodeName: [ 'keys', 'containing', 'the', 'other', '**node**' ] - TestExpression: ['argument'] - } - } -); -``` - -We can use the `fallback` option as well. -If the `fallback` option is `"iteration"`, `esrecurse` would visit all enumerable properties of unknown nodes. -Please note circular references cause the stack overflow. AST might have circular references in additional properties for some purpose (e.g. `node.parent`). - -```javascript -esrecurse.visit( - ast, - { - Literal: function (node) { - // do something... - } - }, - { - fallback: 'iteration' - } -); -``` - -If the `fallback` option is a function, `esrecurse` calls this function to determine the enumerable properties of unknown nodes. -Please note circular references cause the stack overflow. AST might have circular references in additional properties for some purpose (e.g. `node.parent`). - -```javascript -esrecurse.visit( - ast, - { - Literal: function (node) { - // do something... - } - }, - { - fallback: function (node) { - return Object.keys(node).filter(function(key) { - return key !== 'argument' - }); - } - } -); -``` - -### License - -Copyright (C) 2014 [Yusuke Suzuki](https://github.com/Constellation) - (twitter: [@Constellation](https://twitter.com/Constellation)) and other contributors. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/build_vtk_bundle/node_modules/esrecurse/esrecurse.js b/build_vtk_bundle/node_modules/esrecurse/esrecurse.js deleted file mode 100644 index 15d57dfd..00000000 --- a/build_vtk_bundle/node_modules/esrecurse/esrecurse.js +++ /dev/null @@ -1,117 +0,0 @@ -/* - Copyright (C) 2014 Yusuke Suzuki - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ -(function () { - 'use strict'; - - var estraverse = require('estraverse'); - - function isNode(node) { - if (node == null) { - return false; - } - return typeof node === 'object' && typeof node.type === 'string'; - } - - function isProperty(nodeType, key) { - return (nodeType === estraverse.Syntax.ObjectExpression || nodeType === estraverse.Syntax.ObjectPattern) && key === 'properties'; - } - - function Visitor(visitor, options) { - options = options || {}; - - this.__visitor = visitor || this; - this.__childVisitorKeys = options.childVisitorKeys - ? Object.assign({}, estraverse.VisitorKeys, options.childVisitorKeys) - : estraverse.VisitorKeys; - if (options.fallback === 'iteration') { - this.__fallback = Object.keys; - } else if (typeof options.fallback === 'function') { - this.__fallback = options.fallback; - } - } - - /* Default method for visiting children. - * When you need to call default visiting operation inside custom visiting - * operation, you can use it with `this.visitChildren(node)`. - */ - Visitor.prototype.visitChildren = function (node) { - var type, children, i, iz, j, jz, child; - - if (node == null) { - return; - } - - type = node.type || estraverse.Syntax.Property; - - children = this.__childVisitorKeys[type]; - if (!children) { - if (this.__fallback) { - children = this.__fallback(node); - } else { - throw new Error('Unknown node type ' + type + '.'); - } - } - - for (i = 0, iz = children.length; i < iz; ++i) { - child = node[children[i]]; - if (child) { - if (Array.isArray(child)) { - for (j = 0, jz = child.length; j < jz; ++j) { - if (child[j]) { - if (isNode(child[j]) || isProperty(type, children[i])) { - this.visit(child[j]); - } - } - } - } else if (isNode(child)) { - this.visit(child); - } - } - } - }; - - /* Dispatching node. */ - Visitor.prototype.visit = function (node) { - var type; - - if (node == null) { - return; - } - - type = node.type || estraverse.Syntax.Property; - if (this.__visitor[type]) { - this.__visitor[type].call(this, node); - return; - } - this.visitChildren(node); - }; - - exports.version = require('./package.json').version; - exports.Visitor = Visitor; - exports.visit = function (node, visitor, options) { - var v = new Visitor(visitor, options); - v.visit(node); - }; -}()); -/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/build_vtk_bundle/node_modules/esrecurse/gulpfile.babel.js b/build_vtk_bundle/node_modules/esrecurse/gulpfile.babel.js deleted file mode 100644 index aa881c9c..00000000 --- a/build_vtk_bundle/node_modules/esrecurse/gulpfile.babel.js +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (C) 2014 Yusuke Suzuki -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the distribution. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -// ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -import gulp from 'gulp'; -import mocha from 'gulp-mocha'; -import eslint from 'gulp-eslint'; -import minimist from 'minimist'; -import git from 'gulp-git'; -import bump from 'gulp-bump'; -import filter from 'gulp-filter'; -import tagVersion from 'gulp-tag-version'; -import 'babel-register'; - -const SOURCE = [ - '*.js' -]; - -let ESLINT_OPTION = { - parser: 'babel-eslint', - parserOptions: { - 'sourceType': 'module' - }, - rules: { - 'quotes': 0, - 'eqeqeq': 0, - 'no-use-before-define': 0, - 'no-shadow': 0, - 'no-new': 0, - 'no-underscore-dangle': 0, - 'no-multi-spaces': 0, - 'no-native-reassign': 0, - 'no-loop-func': 0 - }, - env: { - 'node': true - } -}; - -gulp.task('test', function() { - let options = minimist(process.argv.slice(2), { - string: 'test', - default: { - test: 'test/*.js' - } - } - ); - return gulp.src(options.test).pipe(mocha({reporter: 'spec'})); -}); - -gulp.task('lint', () => - gulp.src(SOURCE) - .pipe(eslint(ESLINT_OPTION)) - .pipe(eslint.formatEach('stylish', process.stderr)) - .pipe(eslint.failOnError()) -); - -let inc = importance => - gulp.src(['./package.json']) - .pipe(bump({type: importance})) - .pipe(gulp.dest('./')) - .pipe(git.commit('Bumps package version')) - .pipe(filter('package.json')) - .pipe(tagVersion({ - prefix: '' - })) -; - -gulp.task('travis', [ 'lint', 'test' ]); -gulp.task('default', [ 'travis' ]); - -gulp.task('patch', [ ], () => inc('patch')); -gulp.task('minor', [ ], () => inc('minor')); -gulp.task('major', [ ], () => inc('major')); diff --git a/build_vtk_bundle/node_modules/esrecurse/node_modules/estraverse/.jshintrc b/build_vtk_bundle/node_modules/esrecurse/node_modules/estraverse/.jshintrc deleted file mode 100644 index f642dae7..00000000 --- a/build_vtk_bundle/node_modules/esrecurse/node_modules/estraverse/.jshintrc +++ /dev/null @@ -1,16 +0,0 @@ -{ - "curly": true, - "eqeqeq": true, - "immed": true, - "eqnull": true, - "latedef": true, - "noarg": true, - "noempty": true, - "quotmark": "single", - "undef": true, - "unused": true, - "strict": true, - "trailing": true, - - "node": true -} diff --git a/build_vtk_bundle/node_modules/esrecurse/node_modules/estraverse/LICENSE.BSD b/build_vtk_bundle/node_modules/esrecurse/node_modules/estraverse/LICENSE.BSD deleted file mode 100644 index 3e580c35..00000000 --- a/build_vtk_bundle/node_modules/esrecurse/node_modules/estraverse/LICENSE.BSD +++ /dev/null @@ -1,19 +0,0 @@ -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/build_vtk_bundle/node_modules/esrecurse/node_modules/estraverse/README.md b/build_vtk_bundle/node_modules/esrecurse/node_modules/estraverse/README.md deleted file mode 100644 index ccd3377f..00000000 --- a/build_vtk_bundle/node_modules/esrecurse/node_modules/estraverse/README.md +++ /dev/null @@ -1,153 +0,0 @@ -### Estraverse [![Build Status](https://secure.travis-ci.org/estools/estraverse.svg)](http://travis-ci.org/estools/estraverse) - -Estraverse ([estraverse](http://github.com/estools/estraverse)) is -[ECMAScript](http://www.ecma-international.org/publications/standards/Ecma-262.htm) -traversal functions from [esmangle project](http://github.com/estools/esmangle). - -### Documentation - -You can find usage docs at [wiki page](https://github.com/estools/estraverse/wiki/Usage). - -### Example Usage - -The following code will output all variables declared at the root of a file. - -```javascript -estraverse.traverse(ast, { - enter: function (node, parent) { - if (node.type == 'FunctionExpression' || node.type == 'FunctionDeclaration') - return estraverse.VisitorOption.Skip; - }, - leave: function (node, parent) { - if (node.type == 'VariableDeclarator') - console.log(node.id.name); - } -}); -``` - -We can use `this.skip`, `this.remove` and `this.break` functions instead of using Skip, Remove and Break. - -```javascript -estraverse.traverse(ast, { - enter: function (node) { - this.break(); - } -}); -``` - -And estraverse provides `estraverse.replace` function. When returning node from `enter`/`leave`, current node is replaced with it. - -```javascript -result = estraverse.replace(tree, { - enter: function (node) { - // Replace it with replaced. - if (node.type === 'Literal') - return replaced; - } -}); -``` - -By passing `visitor.keys` mapping, we can extend estraverse traversing functionality. - -```javascript -// This tree contains a user-defined `TestExpression` node. -var tree = { - type: 'TestExpression', - - // This 'argument' is the property containing the other **node**. - argument: { - type: 'Literal', - value: 20 - }, - - // This 'extended' is the property not containing the other **node**. - extended: true -}; -estraverse.traverse(tree, { - enter: function (node) { }, - - // Extending the existing traversing rules. - keys: { - // TargetNodeName: [ 'keys', 'containing', 'the', 'other', '**node**' ] - TestExpression: ['argument'] - } -}); -``` - -By passing `visitor.fallback` option, we can control the behavior when encountering unknown nodes. - -```javascript -// This tree contains a user-defined `TestExpression` node. -var tree = { - type: 'TestExpression', - - // This 'argument' is the property containing the other **node**. - argument: { - type: 'Literal', - value: 20 - }, - - // This 'extended' is the property not containing the other **node**. - extended: true -}; -estraverse.traverse(tree, { - enter: function (node) { }, - - // Iterating the child **nodes** of unknown nodes. - fallback: 'iteration' -}); -``` - -When `visitor.fallback` is a function, we can determine which keys to visit on each node. - -```javascript -// This tree contains a user-defined `TestExpression` node. -var tree = { - type: 'TestExpression', - - // This 'argument' is the property containing the other **node**. - argument: { - type: 'Literal', - value: 20 - }, - - // This 'extended' is the property not containing the other **node**. - extended: true -}; -estraverse.traverse(tree, { - enter: function (node) { }, - - // Skip the `argument` property of each node - fallback: function(node) { - return Object.keys(node).filter(function(key) { - return key !== 'argument'; - }); - } -}); -``` - -### License - -Copyright (C) 2012-2016 [Yusuke Suzuki](http://github.com/Constellation) - (twitter: [@Constellation](http://twitter.com/Constellation)) and other contributors. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/build_vtk_bundle/node_modules/esrecurse/node_modules/estraverse/estraverse.js b/build_vtk_bundle/node_modules/esrecurse/node_modules/estraverse/estraverse.js deleted file mode 100644 index f0d9af9b..00000000 --- a/build_vtk_bundle/node_modules/esrecurse/node_modules/estraverse/estraverse.js +++ /dev/null @@ -1,805 +0,0 @@ -/* - Copyright (C) 2012-2013 Yusuke Suzuki - Copyright (C) 2012 Ariya Hidayat - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ -/*jslint vars:false, bitwise:true*/ -/*jshint indent:4*/ -/*global exports:true*/ -(function clone(exports) { - 'use strict'; - - var Syntax, - VisitorOption, - VisitorKeys, - BREAK, - SKIP, - REMOVE; - - function deepCopy(obj) { - var ret = {}, key, val; - for (key in obj) { - if (obj.hasOwnProperty(key)) { - val = obj[key]; - if (typeof val === 'object' && val !== null) { - ret[key] = deepCopy(val); - } else { - ret[key] = val; - } - } - } - return ret; - } - - // based on LLVM libc++ upper_bound / lower_bound - // MIT License - - function upperBound(array, func) { - var diff, len, i, current; - - len = array.length; - i = 0; - - while (len) { - diff = len >>> 1; - current = i + diff; - if (func(array[current])) { - len = diff; - } else { - i = current + 1; - len -= diff + 1; - } - } - return i; - } - - Syntax = { - AssignmentExpression: 'AssignmentExpression', - AssignmentPattern: 'AssignmentPattern', - ArrayExpression: 'ArrayExpression', - ArrayPattern: 'ArrayPattern', - ArrowFunctionExpression: 'ArrowFunctionExpression', - AwaitExpression: 'AwaitExpression', // CAUTION: It's deferred to ES7. - BlockStatement: 'BlockStatement', - BinaryExpression: 'BinaryExpression', - BreakStatement: 'BreakStatement', - CallExpression: 'CallExpression', - CatchClause: 'CatchClause', - ChainExpression: 'ChainExpression', - ClassBody: 'ClassBody', - ClassDeclaration: 'ClassDeclaration', - ClassExpression: 'ClassExpression', - ComprehensionBlock: 'ComprehensionBlock', // CAUTION: It's deferred to ES7. - ComprehensionExpression: 'ComprehensionExpression', // CAUTION: It's deferred to ES7. - ConditionalExpression: 'ConditionalExpression', - ContinueStatement: 'ContinueStatement', - DebuggerStatement: 'DebuggerStatement', - DirectiveStatement: 'DirectiveStatement', - DoWhileStatement: 'DoWhileStatement', - EmptyStatement: 'EmptyStatement', - ExportAllDeclaration: 'ExportAllDeclaration', - ExportDefaultDeclaration: 'ExportDefaultDeclaration', - ExportNamedDeclaration: 'ExportNamedDeclaration', - ExportSpecifier: 'ExportSpecifier', - ExpressionStatement: 'ExpressionStatement', - ForStatement: 'ForStatement', - ForInStatement: 'ForInStatement', - ForOfStatement: 'ForOfStatement', - FunctionDeclaration: 'FunctionDeclaration', - FunctionExpression: 'FunctionExpression', - GeneratorExpression: 'GeneratorExpression', // CAUTION: It's deferred to ES7. - Identifier: 'Identifier', - IfStatement: 'IfStatement', - ImportExpression: 'ImportExpression', - ImportDeclaration: 'ImportDeclaration', - ImportDefaultSpecifier: 'ImportDefaultSpecifier', - ImportNamespaceSpecifier: 'ImportNamespaceSpecifier', - ImportSpecifier: 'ImportSpecifier', - Literal: 'Literal', - LabeledStatement: 'LabeledStatement', - LogicalExpression: 'LogicalExpression', - MemberExpression: 'MemberExpression', - MetaProperty: 'MetaProperty', - MethodDefinition: 'MethodDefinition', - ModuleSpecifier: 'ModuleSpecifier', - NewExpression: 'NewExpression', - ObjectExpression: 'ObjectExpression', - ObjectPattern: 'ObjectPattern', - PrivateIdentifier: 'PrivateIdentifier', - Program: 'Program', - Property: 'Property', - PropertyDefinition: 'PropertyDefinition', - RestElement: 'RestElement', - ReturnStatement: 'ReturnStatement', - SequenceExpression: 'SequenceExpression', - SpreadElement: 'SpreadElement', - Super: 'Super', - SwitchStatement: 'SwitchStatement', - SwitchCase: 'SwitchCase', - TaggedTemplateExpression: 'TaggedTemplateExpression', - TemplateElement: 'TemplateElement', - TemplateLiteral: 'TemplateLiteral', - ThisExpression: 'ThisExpression', - ThrowStatement: 'ThrowStatement', - TryStatement: 'TryStatement', - UnaryExpression: 'UnaryExpression', - UpdateExpression: 'UpdateExpression', - VariableDeclaration: 'VariableDeclaration', - VariableDeclarator: 'VariableDeclarator', - WhileStatement: 'WhileStatement', - WithStatement: 'WithStatement', - YieldExpression: 'YieldExpression' - }; - - VisitorKeys = { - AssignmentExpression: ['left', 'right'], - AssignmentPattern: ['left', 'right'], - ArrayExpression: ['elements'], - ArrayPattern: ['elements'], - ArrowFunctionExpression: ['params', 'body'], - AwaitExpression: ['argument'], // CAUTION: It's deferred to ES7. - BlockStatement: ['body'], - BinaryExpression: ['left', 'right'], - BreakStatement: ['label'], - CallExpression: ['callee', 'arguments'], - CatchClause: ['param', 'body'], - ChainExpression: ['expression'], - ClassBody: ['body'], - ClassDeclaration: ['id', 'superClass', 'body'], - ClassExpression: ['id', 'superClass', 'body'], - ComprehensionBlock: ['left', 'right'], // CAUTION: It's deferred to ES7. - ComprehensionExpression: ['blocks', 'filter', 'body'], // CAUTION: It's deferred to ES7. - ConditionalExpression: ['test', 'consequent', 'alternate'], - ContinueStatement: ['label'], - DebuggerStatement: [], - DirectiveStatement: [], - DoWhileStatement: ['body', 'test'], - EmptyStatement: [], - ExportAllDeclaration: ['source'], - ExportDefaultDeclaration: ['declaration'], - ExportNamedDeclaration: ['declaration', 'specifiers', 'source'], - ExportSpecifier: ['exported', 'local'], - ExpressionStatement: ['expression'], - ForStatement: ['init', 'test', 'update', 'body'], - ForInStatement: ['left', 'right', 'body'], - ForOfStatement: ['left', 'right', 'body'], - FunctionDeclaration: ['id', 'params', 'body'], - FunctionExpression: ['id', 'params', 'body'], - GeneratorExpression: ['blocks', 'filter', 'body'], // CAUTION: It's deferred to ES7. - Identifier: [], - IfStatement: ['test', 'consequent', 'alternate'], - ImportExpression: ['source'], - ImportDeclaration: ['specifiers', 'source'], - ImportDefaultSpecifier: ['local'], - ImportNamespaceSpecifier: ['local'], - ImportSpecifier: ['imported', 'local'], - Literal: [], - LabeledStatement: ['label', 'body'], - LogicalExpression: ['left', 'right'], - MemberExpression: ['object', 'property'], - MetaProperty: ['meta', 'property'], - MethodDefinition: ['key', 'value'], - ModuleSpecifier: [], - NewExpression: ['callee', 'arguments'], - ObjectExpression: ['properties'], - ObjectPattern: ['properties'], - PrivateIdentifier: [], - Program: ['body'], - Property: ['key', 'value'], - PropertyDefinition: ['key', 'value'], - RestElement: [ 'argument' ], - ReturnStatement: ['argument'], - SequenceExpression: ['expressions'], - SpreadElement: ['argument'], - Super: [], - SwitchStatement: ['discriminant', 'cases'], - SwitchCase: ['test', 'consequent'], - TaggedTemplateExpression: ['tag', 'quasi'], - TemplateElement: [], - TemplateLiteral: ['quasis', 'expressions'], - ThisExpression: [], - ThrowStatement: ['argument'], - TryStatement: ['block', 'handler', 'finalizer'], - UnaryExpression: ['argument'], - UpdateExpression: ['argument'], - VariableDeclaration: ['declarations'], - VariableDeclarator: ['id', 'init'], - WhileStatement: ['test', 'body'], - WithStatement: ['object', 'body'], - YieldExpression: ['argument'] - }; - - // unique id - BREAK = {}; - SKIP = {}; - REMOVE = {}; - - VisitorOption = { - Break: BREAK, - Skip: SKIP, - Remove: REMOVE - }; - - function Reference(parent, key) { - this.parent = parent; - this.key = key; - } - - Reference.prototype.replace = function replace(node) { - this.parent[this.key] = node; - }; - - Reference.prototype.remove = function remove() { - if (Array.isArray(this.parent)) { - this.parent.splice(this.key, 1); - return true; - } else { - this.replace(null); - return false; - } - }; - - function Element(node, path, wrap, ref) { - this.node = node; - this.path = path; - this.wrap = wrap; - this.ref = ref; - } - - function Controller() { } - - // API: - // return property path array from root to current node - Controller.prototype.path = function path() { - var i, iz, j, jz, result, element; - - function addToPath(result, path) { - if (Array.isArray(path)) { - for (j = 0, jz = path.length; j < jz; ++j) { - result.push(path[j]); - } - } else { - result.push(path); - } - } - - // root node - if (!this.__current.path) { - return null; - } - - // first node is sentinel, second node is root element - result = []; - for (i = 2, iz = this.__leavelist.length; i < iz; ++i) { - element = this.__leavelist[i]; - addToPath(result, element.path); - } - addToPath(result, this.__current.path); - return result; - }; - - // API: - // return type of current node - Controller.prototype.type = function () { - var node = this.current(); - return node.type || this.__current.wrap; - }; - - // API: - // return array of parent elements - Controller.prototype.parents = function parents() { - var i, iz, result; - - // first node is sentinel - result = []; - for (i = 1, iz = this.__leavelist.length; i < iz; ++i) { - result.push(this.__leavelist[i].node); - } - - return result; - }; - - // API: - // return current node - Controller.prototype.current = function current() { - return this.__current.node; - }; - - Controller.prototype.__execute = function __execute(callback, element) { - var previous, result; - - result = undefined; - - previous = this.__current; - this.__current = element; - this.__state = null; - if (callback) { - result = callback.call(this, element.node, this.__leavelist[this.__leavelist.length - 1].node); - } - this.__current = previous; - - return result; - }; - - // API: - // notify control skip / break - Controller.prototype.notify = function notify(flag) { - this.__state = flag; - }; - - // API: - // skip child nodes of current node - Controller.prototype.skip = function () { - this.notify(SKIP); - }; - - // API: - // break traversals - Controller.prototype['break'] = function () { - this.notify(BREAK); - }; - - // API: - // remove node - Controller.prototype.remove = function () { - this.notify(REMOVE); - }; - - Controller.prototype.__initialize = function(root, visitor) { - this.visitor = visitor; - this.root = root; - this.__worklist = []; - this.__leavelist = []; - this.__current = null; - this.__state = null; - this.__fallback = null; - if (visitor.fallback === 'iteration') { - this.__fallback = Object.keys; - } else if (typeof visitor.fallback === 'function') { - this.__fallback = visitor.fallback; - } - - this.__keys = VisitorKeys; - if (visitor.keys) { - this.__keys = Object.assign(Object.create(this.__keys), visitor.keys); - } - }; - - function isNode(node) { - if (node == null) { - return false; - } - return typeof node === 'object' && typeof node.type === 'string'; - } - - function isProperty(nodeType, key) { - return (nodeType === Syntax.ObjectExpression || nodeType === Syntax.ObjectPattern) && 'properties' === key; - } - - function candidateExistsInLeaveList(leavelist, candidate) { - for (var i = leavelist.length - 1; i >= 0; --i) { - if (leavelist[i].node === candidate) { - return true; - } - } - return false; - } - - Controller.prototype.traverse = function traverse(root, visitor) { - var worklist, - leavelist, - element, - node, - nodeType, - ret, - key, - current, - current2, - candidates, - candidate, - sentinel; - - this.__initialize(root, visitor); - - sentinel = {}; - - // reference - worklist = this.__worklist; - leavelist = this.__leavelist; - - // initialize - worklist.push(new Element(root, null, null, null)); - leavelist.push(new Element(null, null, null, null)); - - while (worklist.length) { - element = worklist.pop(); - - if (element === sentinel) { - element = leavelist.pop(); - - ret = this.__execute(visitor.leave, element); - - if (this.__state === BREAK || ret === BREAK) { - return; - } - continue; - } - - if (element.node) { - - ret = this.__execute(visitor.enter, element); - - if (this.__state === BREAK || ret === BREAK) { - return; - } - - worklist.push(sentinel); - leavelist.push(element); - - if (this.__state === SKIP || ret === SKIP) { - continue; - } - - node = element.node; - nodeType = node.type || element.wrap; - candidates = this.__keys[nodeType]; - if (!candidates) { - if (this.__fallback) { - candidates = this.__fallback(node); - } else { - throw new Error('Unknown node type ' + nodeType + '.'); - } - } - - current = candidates.length; - while ((current -= 1) >= 0) { - key = candidates[current]; - candidate = node[key]; - if (!candidate) { - continue; - } - - if (Array.isArray(candidate)) { - current2 = candidate.length; - while ((current2 -= 1) >= 0) { - if (!candidate[current2]) { - continue; - } - - if (candidateExistsInLeaveList(leavelist, candidate[current2])) { - continue; - } - - if (isProperty(nodeType, candidates[current])) { - element = new Element(candidate[current2], [key, current2], 'Property', null); - } else if (isNode(candidate[current2])) { - element = new Element(candidate[current2], [key, current2], null, null); - } else { - continue; - } - worklist.push(element); - } - } else if (isNode(candidate)) { - if (candidateExistsInLeaveList(leavelist, candidate)) { - continue; - } - - worklist.push(new Element(candidate, key, null, null)); - } - } - } - } - }; - - Controller.prototype.replace = function replace(root, visitor) { - var worklist, - leavelist, - node, - nodeType, - target, - element, - current, - current2, - candidates, - candidate, - sentinel, - outer, - key; - - function removeElem(element) { - var i, - key, - nextElem, - parent; - - if (element.ref.remove()) { - // When the reference is an element of an array. - key = element.ref.key; - parent = element.ref.parent; - - // If removed from array, then decrease following items' keys. - i = worklist.length; - while (i--) { - nextElem = worklist[i]; - if (nextElem.ref && nextElem.ref.parent === parent) { - if (nextElem.ref.key < key) { - break; - } - --nextElem.ref.key; - } - } - } - } - - this.__initialize(root, visitor); - - sentinel = {}; - - // reference - worklist = this.__worklist; - leavelist = this.__leavelist; - - // initialize - outer = { - root: root - }; - element = new Element(root, null, null, new Reference(outer, 'root')); - worklist.push(element); - leavelist.push(element); - - while (worklist.length) { - element = worklist.pop(); - - if (element === sentinel) { - element = leavelist.pop(); - - target = this.__execute(visitor.leave, element); - - // node may be replaced with null, - // so distinguish between undefined and null in this place - if (target !== undefined && target !== BREAK && target !== SKIP && target !== REMOVE) { - // replace - element.ref.replace(target); - } - - if (this.__state === REMOVE || target === REMOVE) { - removeElem(element); - } - - if (this.__state === BREAK || target === BREAK) { - return outer.root; - } - continue; - } - - target = this.__execute(visitor.enter, element); - - // node may be replaced with null, - // so distinguish between undefined and null in this place - if (target !== undefined && target !== BREAK && target !== SKIP && target !== REMOVE) { - // replace - element.ref.replace(target); - element.node = target; - } - - if (this.__state === REMOVE || target === REMOVE) { - removeElem(element); - element.node = null; - } - - if (this.__state === BREAK || target === BREAK) { - return outer.root; - } - - // node may be null - node = element.node; - if (!node) { - continue; - } - - worklist.push(sentinel); - leavelist.push(element); - - if (this.__state === SKIP || target === SKIP) { - continue; - } - - nodeType = node.type || element.wrap; - candidates = this.__keys[nodeType]; - if (!candidates) { - if (this.__fallback) { - candidates = this.__fallback(node); - } else { - throw new Error('Unknown node type ' + nodeType + '.'); - } - } - - current = candidates.length; - while ((current -= 1) >= 0) { - key = candidates[current]; - candidate = node[key]; - if (!candidate) { - continue; - } - - if (Array.isArray(candidate)) { - current2 = candidate.length; - while ((current2 -= 1) >= 0) { - if (!candidate[current2]) { - continue; - } - if (isProperty(nodeType, candidates[current])) { - element = new Element(candidate[current2], [key, current2], 'Property', new Reference(candidate, current2)); - } else if (isNode(candidate[current2])) { - element = new Element(candidate[current2], [key, current2], null, new Reference(candidate, current2)); - } else { - continue; - } - worklist.push(element); - } - } else if (isNode(candidate)) { - worklist.push(new Element(candidate, key, null, new Reference(node, key))); - } - } - } - - return outer.root; - }; - - function traverse(root, visitor) { - var controller = new Controller(); - return controller.traverse(root, visitor); - } - - function replace(root, visitor) { - var controller = new Controller(); - return controller.replace(root, visitor); - } - - function extendCommentRange(comment, tokens) { - var target; - - target = upperBound(tokens, function search(token) { - return token.range[0] > comment.range[0]; - }); - - comment.extendedRange = [comment.range[0], comment.range[1]]; - - if (target !== tokens.length) { - comment.extendedRange[1] = tokens[target].range[0]; - } - - target -= 1; - if (target >= 0) { - comment.extendedRange[0] = tokens[target].range[1]; - } - - return comment; - } - - function attachComments(tree, providedComments, tokens) { - // At first, we should calculate extended comment ranges. - var comments = [], comment, len, i, cursor; - - if (!tree.range) { - throw new Error('attachComments needs range information'); - } - - // tokens array is empty, we attach comments to tree as 'leadingComments' - if (!tokens.length) { - if (providedComments.length) { - for (i = 0, len = providedComments.length; i < len; i += 1) { - comment = deepCopy(providedComments[i]); - comment.extendedRange = [0, tree.range[0]]; - comments.push(comment); - } - tree.leadingComments = comments; - } - return tree; - } - - for (i = 0, len = providedComments.length; i < len; i += 1) { - comments.push(extendCommentRange(deepCopy(providedComments[i]), tokens)); - } - - // This is based on John Freeman's implementation. - cursor = 0; - traverse(tree, { - enter: function (node) { - var comment; - - while (cursor < comments.length) { - comment = comments[cursor]; - if (comment.extendedRange[1] > node.range[0]) { - break; - } - - if (comment.extendedRange[1] === node.range[0]) { - if (!node.leadingComments) { - node.leadingComments = []; - } - node.leadingComments.push(comment); - comments.splice(cursor, 1); - } else { - cursor += 1; - } - } - - // already out of owned node - if (cursor === comments.length) { - return VisitorOption.Break; - } - - if (comments[cursor].extendedRange[0] > node.range[1]) { - return VisitorOption.Skip; - } - } - }); - - cursor = 0; - traverse(tree, { - leave: function (node) { - var comment; - - while (cursor < comments.length) { - comment = comments[cursor]; - if (node.range[1] < comment.extendedRange[0]) { - break; - } - - if (node.range[1] === comment.extendedRange[0]) { - if (!node.trailingComments) { - node.trailingComments = []; - } - node.trailingComments.push(comment); - comments.splice(cursor, 1); - } else { - cursor += 1; - } - } - - // already out of owned node - if (cursor === comments.length) { - return VisitorOption.Break; - } - - if (comments[cursor].extendedRange[0] > node.range[1]) { - return VisitorOption.Skip; - } - } - }); - - return tree; - } - - exports.Syntax = Syntax; - exports.traverse = traverse; - exports.replace = replace; - exports.attachComments = attachComments; - exports.VisitorKeys = VisitorKeys; - exports.VisitorOption = VisitorOption; - exports.Controller = Controller; - exports.cloneEnvironment = function () { return clone({}); }; - - return exports; -}(exports)); -/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/build_vtk_bundle/node_modules/esrecurse/node_modules/estraverse/gulpfile.js b/build_vtk_bundle/node_modules/esrecurse/node_modules/estraverse/gulpfile.js deleted file mode 100644 index 8772bbcc..00000000 --- a/build_vtk_bundle/node_modules/esrecurse/node_modules/estraverse/gulpfile.js +++ /dev/null @@ -1,70 +0,0 @@ -/* - Copyright (C) 2014 Yusuke Suzuki - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -'use strict'; - -var gulp = require('gulp'), - git = require('gulp-git'), - bump = require('gulp-bump'), - filter = require('gulp-filter'), - tagVersion = require('gulp-tag-version'); - -var TEST = [ 'test/*.js' ]; -var POWERED = [ 'powered-test/*.js' ]; -var SOURCE = [ 'src/**/*.js' ]; - -/** - * Bumping version number and tagging the repository with it. - * Please read http://semver.org/ - * - * You can use the commands - * - * gulp patch # makes v0.1.0 -> v0.1.1 - * gulp feature # makes v0.1.1 -> v0.2.0 - * gulp release # makes v0.2.1 -> v1.0.0 - * - * To bump the version numbers accordingly after you did a patch, - * introduced a feature or made a backwards-incompatible release. - */ - -function inc(importance) { - // get all the files to bump version in - return gulp.src(['./package.json']) - // bump the version number in those files - .pipe(bump({type: importance})) - // save it back to filesystem - .pipe(gulp.dest('./')) - // commit the changed version number - .pipe(git.commit('Bumps package version')) - // read only one file to get the version number - .pipe(filter('package.json')) - // **tag it in the repository** - .pipe(tagVersion({ - prefix: '' - })); -} - -gulp.task('patch', [ ], function () { return inc('patch'); }) -gulp.task('minor', [ ], function () { return inc('minor'); }) -gulp.task('major', [ ], function () { return inc('major'); }) diff --git a/build_vtk_bundle/node_modules/esrecurse/node_modules/estraverse/package.json b/build_vtk_bundle/node_modules/esrecurse/node_modules/estraverse/package.json deleted file mode 100644 index a8632185..00000000 --- a/build_vtk_bundle/node_modules/esrecurse/node_modules/estraverse/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "estraverse", - "description": "ECMAScript JS AST traversal functions", - "homepage": "https://github.com/estools/estraverse", - "main": "estraverse.js", - "version": "5.3.0", - "engines": { - "node": ">=4.0" - }, - "maintainers": [ - { - "name": "Yusuke Suzuki", - "email": "utatane.tea@gmail.com", - "web": "http://github.com/Constellation" - } - ], - "repository": { - "type": "git", - "url": "http://github.com/estools/estraverse.git" - }, - "devDependencies": { - "babel-preset-env": "^1.6.1", - "babel-register": "^6.3.13", - "chai": "^2.1.1", - "espree": "^1.11.0", - "gulp": "^3.8.10", - "gulp-bump": "^0.2.2", - "gulp-filter": "^2.0.0", - "gulp-git": "^1.0.1", - "gulp-tag-version": "^1.3.0", - "jshint": "^2.5.6", - "mocha": "^2.1.0" - }, - "license": "BSD-2-Clause", - "scripts": { - "test": "npm run-script lint && npm run-script unit-test", - "lint": "jshint estraverse.js", - "unit-test": "mocha --compilers js:babel-register" - } -} diff --git a/build_vtk_bundle/node_modules/esrecurse/package.json b/build_vtk_bundle/node_modules/esrecurse/package.json deleted file mode 100755 index dec5b1bc..00000000 --- a/build_vtk_bundle/node_modules/esrecurse/package.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "esrecurse", - "description": "ECMAScript AST recursive visitor", - "homepage": "https://github.com/estools/esrecurse", - "main": "esrecurse.js", - "version": "4.3.0", - "engines": { - "node": ">=4.0" - }, - "maintainers": [ - { - "name": "Yusuke Suzuki", - "email": "utatane.tea@gmail.com", - "web": "https://github.com/Constellation" - } - ], - "repository": { - "type": "git", - "url": "https://github.com/estools/esrecurse.git" - }, - "dependencies": { - "estraverse": "^5.2.0" - }, - "devDependencies": { - "babel-cli": "^6.24.1", - "babel-eslint": "^7.2.3", - "babel-preset-es2015": "^6.24.1", - "babel-register": "^6.24.1", - "chai": "^4.0.2", - "esprima": "^4.0.0", - "gulp": "^3.9.0", - "gulp-bump": "^2.7.0", - "gulp-eslint": "^4.0.0", - "gulp-filter": "^5.0.0", - "gulp-git": "^2.4.1", - "gulp-mocha": "^4.3.1", - "gulp-tag-version": "^1.2.1", - "jsdoc": "^3.3.0-alpha10", - "minimist": "^1.1.0" - }, - "license": "BSD-2-Clause", - "scripts": { - "test": "gulp travis", - "unit-test": "gulp test", - "lint": "gulp lint" - }, - "babel": { - "presets": [ - "es2015" - ] - } -} diff --git a/build_vtk_bundle/node_modules/estraverse/.jshintrc b/build_vtk_bundle/node_modules/estraverse/.jshintrc deleted file mode 100644 index f642dae7..00000000 --- a/build_vtk_bundle/node_modules/estraverse/.jshintrc +++ /dev/null @@ -1,16 +0,0 @@ -{ - "curly": true, - "eqeqeq": true, - "immed": true, - "eqnull": true, - "latedef": true, - "noarg": true, - "noempty": true, - "quotmark": "single", - "undef": true, - "unused": true, - "strict": true, - "trailing": true, - - "node": true -} diff --git a/build_vtk_bundle/node_modules/estraverse/LICENSE.BSD b/build_vtk_bundle/node_modules/estraverse/LICENSE.BSD deleted file mode 100644 index 3e580c35..00000000 --- a/build_vtk_bundle/node_modules/estraverse/LICENSE.BSD +++ /dev/null @@ -1,19 +0,0 @@ -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/build_vtk_bundle/node_modules/estraverse/README.md b/build_vtk_bundle/node_modules/estraverse/README.md deleted file mode 100644 index ccd3377f..00000000 --- a/build_vtk_bundle/node_modules/estraverse/README.md +++ /dev/null @@ -1,153 +0,0 @@ -### Estraverse [![Build Status](https://secure.travis-ci.org/estools/estraverse.svg)](http://travis-ci.org/estools/estraverse) - -Estraverse ([estraverse](http://github.com/estools/estraverse)) is -[ECMAScript](http://www.ecma-international.org/publications/standards/Ecma-262.htm) -traversal functions from [esmangle project](http://github.com/estools/esmangle). - -### Documentation - -You can find usage docs at [wiki page](https://github.com/estools/estraverse/wiki/Usage). - -### Example Usage - -The following code will output all variables declared at the root of a file. - -```javascript -estraverse.traverse(ast, { - enter: function (node, parent) { - if (node.type == 'FunctionExpression' || node.type == 'FunctionDeclaration') - return estraverse.VisitorOption.Skip; - }, - leave: function (node, parent) { - if (node.type == 'VariableDeclarator') - console.log(node.id.name); - } -}); -``` - -We can use `this.skip`, `this.remove` and `this.break` functions instead of using Skip, Remove and Break. - -```javascript -estraverse.traverse(ast, { - enter: function (node) { - this.break(); - } -}); -``` - -And estraverse provides `estraverse.replace` function. When returning node from `enter`/`leave`, current node is replaced with it. - -```javascript -result = estraverse.replace(tree, { - enter: function (node) { - // Replace it with replaced. - if (node.type === 'Literal') - return replaced; - } -}); -``` - -By passing `visitor.keys` mapping, we can extend estraverse traversing functionality. - -```javascript -// This tree contains a user-defined `TestExpression` node. -var tree = { - type: 'TestExpression', - - // This 'argument' is the property containing the other **node**. - argument: { - type: 'Literal', - value: 20 - }, - - // This 'extended' is the property not containing the other **node**. - extended: true -}; -estraverse.traverse(tree, { - enter: function (node) { }, - - // Extending the existing traversing rules. - keys: { - // TargetNodeName: [ 'keys', 'containing', 'the', 'other', '**node**' ] - TestExpression: ['argument'] - } -}); -``` - -By passing `visitor.fallback` option, we can control the behavior when encountering unknown nodes. - -```javascript -// This tree contains a user-defined `TestExpression` node. -var tree = { - type: 'TestExpression', - - // This 'argument' is the property containing the other **node**. - argument: { - type: 'Literal', - value: 20 - }, - - // This 'extended' is the property not containing the other **node**. - extended: true -}; -estraverse.traverse(tree, { - enter: function (node) { }, - - // Iterating the child **nodes** of unknown nodes. - fallback: 'iteration' -}); -``` - -When `visitor.fallback` is a function, we can determine which keys to visit on each node. - -```javascript -// This tree contains a user-defined `TestExpression` node. -var tree = { - type: 'TestExpression', - - // This 'argument' is the property containing the other **node**. - argument: { - type: 'Literal', - value: 20 - }, - - // This 'extended' is the property not containing the other **node**. - extended: true -}; -estraverse.traverse(tree, { - enter: function (node) { }, - - // Skip the `argument` property of each node - fallback: function(node) { - return Object.keys(node).filter(function(key) { - return key !== 'argument'; - }); - } -}); -``` - -### License - -Copyright (C) 2012-2016 [Yusuke Suzuki](http://github.com/Constellation) - (twitter: [@Constellation](http://twitter.com/Constellation)) and other contributors. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/build_vtk_bundle/node_modules/estraverse/estraverse.js b/build_vtk_bundle/node_modules/estraverse/estraverse.js deleted file mode 100644 index b106d386..00000000 --- a/build_vtk_bundle/node_modules/estraverse/estraverse.js +++ /dev/null @@ -1,782 +0,0 @@ -/* - Copyright (C) 2012-2013 Yusuke Suzuki - Copyright (C) 2012 Ariya Hidayat - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ -/*jslint vars:false, bitwise:true*/ -/*jshint indent:4*/ -/*global exports:true*/ -(function clone(exports) { - 'use strict'; - - var Syntax, - VisitorOption, - VisitorKeys, - BREAK, - SKIP, - REMOVE; - - function deepCopy(obj) { - var ret = {}, key, val; - for (key in obj) { - if (obj.hasOwnProperty(key)) { - val = obj[key]; - if (typeof val === 'object' && val !== null) { - ret[key] = deepCopy(val); - } else { - ret[key] = val; - } - } - } - return ret; - } - - // based on LLVM libc++ upper_bound / lower_bound - // MIT License - - function upperBound(array, func) { - var diff, len, i, current; - - len = array.length; - i = 0; - - while (len) { - diff = len >>> 1; - current = i + diff; - if (func(array[current])) { - len = diff; - } else { - i = current + 1; - len -= diff + 1; - } - } - return i; - } - - Syntax = { - AssignmentExpression: 'AssignmentExpression', - AssignmentPattern: 'AssignmentPattern', - ArrayExpression: 'ArrayExpression', - ArrayPattern: 'ArrayPattern', - ArrowFunctionExpression: 'ArrowFunctionExpression', - AwaitExpression: 'AwaitExpression', // CAUTION: It's deferred to ES7. - BlockStatement: 'BlockStatement', - BinaryExpression: 'BinaryExpression', - BreakStatement: 'BreakStatement', - CallExpression: 'CallExpression', - CatchClause: 'CatchClause', - ClassBody: 'ClassBody', - ClassDeclaration: 'ClassDeclaration', - ClassExpression: 'ClassExpression', - ComprehensionBlock: 'ComprehensionBlock', // CAUTION: It's deferred to ES7. - ComprehensionExpression: 'ComprehensionExpression', // CAUTION: It's deferred to ES7. - ConditionalExpression: 'ConditionalExpression', - ContinueStatement: 'ContinueStatement', - DebuggerStatement: 'DebuggerStatement', - DirectiveStatement: 'DirectiveStatement', - DoWhileStatement: 'DoWhileStatement', - EmptyStatement: 'EmptyStatement', - ExportAllDeclaration: 'ExportAllDeclaration', - ExportDefaultDeclaration: 'ExportDefaultDeclaration', - ExportNamedDeclaration: 'ExportNamedDeclaration', - ExportSpecifier: 'ExportSpecifier', - ExpressionStatement: 'ExpressionStatement', - ForStatement: 'ForStatement', - ForInStatement: 'ForInStatement', - ForOfStatement: 'ForOfStatement', - FunctionDeclaration: 'FunctionDeclaration', - FunctionExpression: 'FunctionExpression', - GeneratorExpression: 'GeneratorExpression', // CAUTION: It's deferred to ES7. - Identifier: 'Identifier', - IfStatement: 'IfStatement', - ImportExpression: 'ImportExpression', - ImportDeclaration: 'ImportDeclaration', - ImportDefaultSpecifier: 'ImportDefaultSpecifier', - ImportNamespaceSpecifier: 'ImportNamespaceSpecifier', - ImportSpecifier: 'ImportSpecifier', - Literal: 'Literal', - LabeledStatement: 'LabeledStatement', - LogicalExpression: 'LogicalExpression', - MemberExpression: 'MemberExpression', - MetaProperty: 'MetaProperty', - MethodDefinition: 'MethodDefinition', - ModuleSpecifier: 'ModuleSpecifier', - NewExpression: 'NewExpression', - ObjectExpression: 'ObjectExpression', - ObjectPattern: 'ObjectPattern', - Program: 'Program', - Property: 'Property', - RestElement: 'RestElement', - ReturnStatement: 'ReturnStatement', - SequenceExpression: 'SequenceExpression', - SpreadElement: 'SpreadElement', - Super: 'Super', - SwitchStatement: 'SwitchStatement', - SwitchCase: 'SwitchCase', - TaggedTemplateExpression: 'TaggedTemplateExpression', - TemplateElement: 'TemplateElement', - TemplateLiteral: 'TemplateLiteral', - ThisExpression: 'ThisExpression', - ThrowStatement: 'ThrowStatement', - TryStatement: 'TryStatement', - UnaryExpression: 'UnaryExpression', - UpdateExpression: 'UpdateExpression', - VariableDeclaration: 'VariableDeclaration', - VariableDeclarator: 'VariableDeclarator', - WhileStatement: 'WhileStatement', - WithStatement: 'WithStatement', - YieldExpression: 'YieldExpression' - }; - - VisitorKeys = { - AssignmentExpression: ['left', 'right'], - AssignmentPattern: ['left', 'right'], - ArrayExpression: ['elements'], - ArrayPattern: ['elements'], - ArrowFunctionExpression: ['params', 'body'], - AwaitExpression: ['argument'], // CAUTION: It's deferred to ES7. - BlockStatement: ['body'], - BinaryExpression: ['left', 'right'], - BreakStatement: ['label'], - CallExpression: ['callee', 'arguments'], - CatchClause: ['param', 'body'], - ClassBody: ['body'], - ClassDeclaration: ['id', 'superClass', 'body'], - ClassExpression: ['id', 'superClass', 'body'], - ComprehensionBlock: ['left', 'right'], // CAUTION: It's deferred to ES7. - ComprehensionExpression: ['blocks', 'filter', 'body'], // CAUTION: It's deferred to ES7. - ConditionalExpression: ['test', 'consequent', 'alternate'], - ContinueStatement: ['label'], - DebuggerStatement: [], - DirectiveStatement: [], - DoWhileStatement: ['body', 'test'], - EmptyStatement: [], - ExportAllDeclaration: ['source'], - ExportDefaultDeclaration: ['declaration'], - ExportNamedDeclaration: ['declaration', 'specifiers', 'source'], - ExportSpecifier: ['exported', 'local'], - ExpressionStatement: ['expression'], - ForStatement: ['init', 'test', 'update', 'body'], - ForInStatement: ['left', 'right', 'body'], - ForOfStatement: ['left', 'right', 'body'], - FunctionDeclaration: ['id', 'params', 'body'], - FunctionExpression: ['id', 'params', 'body'], - GeneratorExpression: ['blocks', 'filter', 'body'], // CAUTION: It's deferred to ES7. - Identifier: [], - IfStatement: ['test', 'consequent', 'alternate'], - ImportExpression: ['source'], - ImportDeclaration: ['specifiers', 'source'], - ImportDefaultSpecifier: ['local'], - ImportNamespaceSpecifier: ['local'], - ImportSpecifier: ['imported', 'local'], - Literal: [], - LabeledStatement: ['label', 'body'], - LogicalExpression: ['left', 'right'], - MemberExpression: ['object', 'property'], - MetaProperty: ['meta', 'property'], - MethodDefinition: ['key', 'value'], - ModuleSpecifier: [], - NewExpression: ['callee', 'arguments'], - ObjectExpression: ['properties'], - ObjectPattern: ['properties'], - Program: ['body'], - Property: ['key', 'value'], - RestElement: [ 'argument' ], - ReturnStatement: ['argument'], - SequenceExpression: ['expressions'], - SpreadElement: ['argument'], - Super: [], - SwitchStatement: ['discriminant', 'cases'], - SwitchCase: ['test', 'consequent'], - TaggedTemplateExpression: ['tag', 'quasi'], - TemplateElement: [], - TemplateLiteral: ['quasis', 'expressions'], - ThisExpression: [], - ThrowStatement: ['argument'], - TryStatement: ['block', 'handler', 'finalizer'], - UnaryExpression: ['argument'], - UpdateExpression: ['argument'], - VariableDeclaration: ['declarations'], - VariableDeclarator: ['id', 'init'], - WhileStatement: ['test', 'body'], - WithStatement: ['object', 'body'], - YieldExpression: ['argument'] - }; - - // unique id - BREAK = {}; - SKIP = {}; - REMOVE = {}; - - VisitorOption = { - Break: BREAK, - Skip: SKIP, - Remove: REMOVE - }; - - function Reference(parent, key) { - this.parent = parent; - this.key = key; - } - - Reference.prototype.replace = function replace(node) { - this.parent[this.key] = node; - }; - - Reference.prototype.remove = function remove() { - if (Array.isArray(this.parent)) { - this.parent.splice(this.key, 1); - return true; - } else { - this.replace(null); - return false; - } - }; - - function Element(node, path, wrap, ref) { - this.node = node; - this.path = path; - this.wrap = wrap; - this.ref = ref; - } - - function Controller() { } - - // API: - // return property path array from root to current node - Controller.prototype.path = function path() { - var i, iz, j, jz, result, element; - - function addToPath(result, path) { - if (Array.isArray(path)) { - for (j = 0, jz = path.length; j < jz; ++j) { - result.push(path[j]); - } - } else { - result.push(path); - } - } - - // root node - if (!this.__current.path) { - return null; - } - - // first node is sentinel, second node is root element - result = []; - for (i = 2, iz = this.__leavelist.length; i < iz; ++i) { - element = this.__leavelist[i]; - addToPath(result, element.path); - } - addToPath(result, this.__current.path); - return result; - }; - - // API: - // return type of current node - Controller.prototype.type = function () { - var node = this.current(); - return node.type || this.__current.wrap; - }; - - // API: - // return array of parent elements - Controller.prototype.parents = function parents() { - var i, iz, result; - - // first node is sentinel - result = []; - for (i = 1, iz = this.__leavelist.length; i < iz; ++i) { - result.push(this.__leavelist[i].node); - } - - return result; - }; - - // API: - // return current node - Controller.prototype.current = function current() { - return this.__current.node; - }; - - Controller.prototype.__execute = function __execute(callback, element) { - var previous, result; - - result = undefined; - - previous = this.__current; - this.__current = element; - this.__state = null; - if (callback) { - result = callback.call(this, element.node, this.__leavelist[this.__leavelist.length - 1].node); - } - this.__current = previous; - - return result; - }; - - // API: - // notify control skip / break - Controller.prototype.notify = function notify(flag) { - this.__state = flag; - }; - - // API: - // skip child nodes of current node - Controller.prototype.skip = function () { - this.notify(SKIP); - }; - - // API: - // break traversals - Controller.prototype['break'] = function () { - this.notify(BREAK); - }; - - // API: - // remove node - Controller.prototype.remove = function () { - this.notify(REMOVE); - }; - - Controller.prototype.__initialize = function(root, visitor) { - this.visitor = visitor; - this.root = root; - this.__worklist = []; - this.__leavelist = []; - this.__current = null; - this.__state = null; - this.__fallback = null; - if (visitor.fallback === 'iteration') { - this.__fallback = Object.keys; - } else if (typeof visitor.fallback === 'function') { - this.__fallback = visitor.fallback; - } - - this.__keys = VisitorKeys; - if (visitor.keys) { - this.__keys = Object.assign(Object.create(this.__keys), visitor.keys); - } - }; - - function isNode(node) { - if (node == null) { - return false; - } - return typeof node === 'object' && typeof node.type === 'string'; - } - - function isProperty(nodeType, key) { - return (nodeType === Syntax.ObjectExpression || nodeType === Syntax.ObjectPattern) && 'properties' === key; - } - - Controller.prototype.traverse = function traverse(root, visitor) { - var worklist, - leavelist, - element, - node, - nodeType, - ret, - key, - current, - current2, - candidates, - candidate, - sentinel; - - this.__initialize(root, visitor); - - sentinel = {}; - - // reference - worklist = this.__worklist; - leavelist = this.__leavelist; - - // initialize - worklist.push(new Element(root, null, null, null)); - leavelist.push(new Element(null, null, null, null)); - - while (worklist.length) { - element = worklist.pop(); - - if (element === sentinel) { - element = leavelist.pop(); - - ret = this.__execute(visitor.leave, element); - - if (this.__state === BREAK || ret === BREAK) { - return; - } - continue; - } - - if (element.node) { - - ret = this.__execute(visitor.enter, element); - - if (this.__state === BREAK || ret === BREAK) { - return; - } - - worklist.push(sentinel); - leavelist.push(element); - - if (this.__state === SKIP || ret === SKIP) { - continue; - } - - node = element.node; - nodeType = node.type || element.wrap; - candidates = this.__keys[nodeType]; - if (!candidates) { - if (this.__fallback) { - candidates = this.__fallback(node); - } else { - throw new Error('Unknown node type ' + nodeType + '.'); - } - } - - current = candidates.length; - while ((current -= 1) >= 0) { - key = candidates[current]; - candidate = node[key]; - if (!candidate) { - continue; - } - - if (Array.isArray(candidate)) { - current2 = candidate.length; - while ((current2 -= 1) >= 0) { - if (!candidate[current2]) { - continue; - } - if (isProperty(nodeType, candidates[current])) { - element = new Element(candidate[current2], [key, current2], 'Property', null); - } else if (isNode(candidate[current2])) { - element = new Element(candidate[current2], [key, current2], null, null); - } else { - continue; - } - worklist.push(element); - } - } else if (isNode(candidate)) { - worklist.push(new Element(candidate, key, null, null)); - } - } - } - } - }; - - Controller.prototype.replace = function replace(root, visitor) { - var worklist, - leavelist, - node, - nodeType, - target, - element, - current, - current2, - candidates, - candidate, - sentinel, - outer, - key; - - function removeElem(element) { - var i, - key, - nextElem, - parent; - - if (element.ref.remove()) { - // When the reference is an element of an array. - key = element.ref.key; - parent = element.ref.parent; - - // If removed from array, then decrease following items' keys. - i = worklist.length; - while (i--) { - nextElem = worklist[i]; - if (nextElem.ref && nextElem.ref.parent === parent) { - if (nextElem.ref.key < key) { - break; - } - --nextElem.ref.key; - } - } - } - } - - this.__initialize(root, visitor); - - sentinel = {}; - - // reference - worklist = this.__worklist; - leavelist = this.__leavelist; - - // initialize - outer = { - root: root - }; - element = new Element(root, null, null, new Reference(outer, 'root')); - worklist.push(element); - leavelist.push(element); - - while (worklist.length) { - element = worklist.pop(); - - if (element === sentinel) { - element = leavelist.pop(); - - target = this.__execute(visitor.leave, element); - - // node may be replaced with null, - // so distinguish between undefined and null in this place - if (target !== undefined && target !== BREAK && target !== SKIP && target !== REMOVE) { - // replace - element.ref.replace(target); - } - - if (this.__state === REMOVE || target === REMOVE) { - removeElem(element); - } - - if (this.__state === BREAK || target === BREAK) { - return outer.root; - } - continue; - } - - target = this.__execute(visitor.enter, element); - - // node may be replaced with null, - // so distinguish between undefined and null in this place - if (target !== undefined && target !== BREAK && target !== SKIP && target !== REMOVE) { - // replace - element.ref.replace(target); - element.node = target; - } - - if (this.__state === REMOVE || target === REMOVE) { - removeElem(element); - element.node = null; - } - - if (this.__state === BREAK || target === BREAK) { - return outer.root; - } - - // node may be null - node = element.node; - if (!node) { - continue; - } - - worklist.push(sentinel); - leavelist.push(element); - - if (this.__state === SKIP || target === SKIP) { - continue; - } - - nodeType = node.type || element.wrap; - candidates = this.__keys[nodeType]; - if (!candidates) { - if (this.__fallback) { - candidates = this.__fallback(node); - } else { - throw new Error('Unknown node type ' + nodeType + '.'); - } - } - - current = candidates.length; - while ((current -= 1) >= 0) { - key = candidates[current]; - candidate = node[key]; - if (!candidate) { - continue; - } - - if (Array.isArray(candidate)) { - current2 = candidate.length; - while ((current2 -= 1) >= 0) { - if (!candidate[current2]) { - continue; - } - if (isProperty(nodeType, candidates[current])) { - element = new Element(candidate[current2], [key, current2], 'Property', new Reference(candidate, current2)); - } else if (isNode(candidate[current2])) { - element = new Element(candidate[current2], [key, current2], null, new Reference(candidate, current2)); - } else { - continue; - } - worklist.push(element); - } - } else if (isNode(candidate)) { - worklist.push(new Element(candidate, key, null, new Reference(node, key))); - } - } - } - - return outer.root; - }; - - function traverse(root, visitor) { - var controller = new Controller(); - return controller.traverse(root, visitor); - } - - function replace(root, visitor) { - var controller = new Controller(); - return controller.replace(root, visitor); - } - - function extendCommentRange(comment, tokens) { - var target; - - target = upperBound(tokens, function search(token) { - return token.range[0] > comment.range[0]; - }); - - comment.extendedRange = [comment.range[0], comment.range[1]]; - - if (target !== tokens.length) { - comment.extendedRange[1] = tokens[target].range[0]; - } - - target -= 1; - if (target >= 0) { - comment.extendedRange[0] = tokens[target].range[1]; - } - - return comment; - } - - function attachComments(tree, providedComments, tokens) { - // At first, we should calculate extended comment ranges. - var comments = [], comment, len, i, cursor; - - if (!tree.range) { - throw new Error('attachComments needs range information'); - } - - // tokens array is empty, we attach comments to tree as 'leadingComments' - if (!tokens.length) { - if (providedComments.length) { - for (i = 0, len = providedComments.length; i < len; i += 1) { - comment = deepCopy(providedComments[i]); - comment.extendedRange = [0, tree.range[0]]; - comments.push(comment); - } - tree.leadingComments = comments; - } - return tree; - } - - for (i = 0, len = providedComments.length; i < len; i += 1) { - comments.push(extendCommentRange(deepCopy(providedComments[i]), tokens)); - } - - // This is based on John Freeman's implementation. - cursor = 0; - traverse(tree, { - enter: function (node) { - var comment; - - while (cursor < comments.length) { - comment = comments[cursor]; - if (comment.extendedRange[1] > node.range[0]) { - break; - } - - if (comment.extendedRange[1] === node.range[0]) { - if (!node.leadingComments) { - node.leadingComments = []; - } - node.leadingComments.push(comment); - comments.splice(cursor, 1); - } else { - cursor += 1; - } - } - - // already out of owned node - if (cursor === comments.length) { - return VisitorOption.Break; - } - - if (comments[cursor].extendedRange[0] > node.range[1]) { - return VisitorOption.Skip; - } - } - }); - - cursor = 0; - traverse(tree, { - leave: function (node) { - var comment; - - while (cursor < comments.length) { - comment = comments[cursor]; - if (node.range[1] < comment.extendedRange[0]) { - break; - } - - if (node.range[1] === comment.extendedRange[0]) { - if (!node.trailingComments) { - node.trailingComments = []; - } - node.trailingComments.push(comment); - comments.splice(cursor, 1); - } else { - cursor += 1; - } - } - - // already out of owned node - if (cursor === comments.length) { - return VisitorOption.Break; - } - - if (comments[cursor].extendedRange[0] > node.range[1]) { - return VisitorOption.Skip; - } - } - }); - - return tree; - } - - exports.version = require('./package.json').version; - exports.Syntax = Syntax; - exports.traverse = traverse; - exports.replace = replace; - exports.attachComments = attachComments; - exports.VisitorKeys = VisitorKeys; - exports.VisitorOption = VisitorOption; - exports.Controller = Controller; - exports.cloneEnvironment = function () { return clone({}); }; - - return exports; -}(exports)); -/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/build_vtk_bundle/node_modules/estraverse/gulpfile.js b/build_vtk_bundle/node_modules/estraverse/gulpfile.js deleted file mode 100644 index 8772bbcc..00000000 --- a/build_vtk_bundle/node_modules/estraverse/gulpfile.js +++ /dev/null @@ -1,70 +0,0 @@ -/* - Copyright (C) 2014 Yusuke Suzuki - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -'use strict'; - -var gulp = require('gulp'), - git = require('gulp-git'), - bump = require('gulp-bump'), - filter = require('gulp-filter'), - tagVersion = require('gulp-tag-version'); - -var TEST = [ 'test/*.js' ]; -var POWERED = [ 'powered-test/*.js' ]; -var SOURCE = [ 'src/**/*.js' ]; - -/** - * Bumping version number and tagging the repository with it. - * Please read http://semver.org/ - * - * You can use the commands - * - * gulp patch # makes v0.1.0 -> v0.1.1 - * gulp feature # makes v0.1.1 -> v0.2.0 - * gulp release # makes v0.2.1 -> v1.0.0 - * - * To bump the version numbers accordingly after you did a patch, - * introduced a feature or made a backwards-incompatible release. - */ - -function inc(importance) { - // get all the files to bump version in - return gulp.src(['./package.json']) - // bump the version number in those files - .pipe(bump({type: importance})) - // save it back to filesystem - .pipe(gulp.dest('./')) - // commit the changed version number - .pipe(git.commit('Bumps package version')) - // read only one file to get the version number - .pipe(filter('package.json')) - // **tag it in the repository** - .pipe(tagVersion({ - prefix: '' - })); -} - -gulp.task('patch', [ ], function () { return inc('patch'); }) -gulp.task('minor', [ ], function () { return inc('minor'); }) -gulp.task('major', [ ], function () { return inc('major'); }) diff --git a/build_vtk_bundle/node_modules/estraverse/package.json b/build_vtk_bundle/node_modules/estraverse/package.json deleted file mode 100644 index 11382386..00000000 --- a/build_vtk_bundle/node_modules/estraverse/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "estraverse", - "description": "ECMAScript JS AST traversal functions", - "homepage": "https://github.com/estools/estraverse", - "main": "estraverse.js", - "version": "4.3.0", - "engines": { - "node": ">=4.0" - }, - "maintainers": [ - { - "name": "Yusuke Suzuki", - "email": "utatane.tea@gmail.com", - "web": "http://github.com/Constellation" - } - ], - "repository": { - "type": "git", - "url": "http://github.com/estools/estraverse.git" - }, - "devDependencies": { - "babel-preset-env": "^1.6.1", - "babel-register": "^6.3.13", - "chai": "^2.1.1", - "espree": "^1.11.0", - "gulp": "^3.8.10", - "gulp-bump": "^0.2.2", - "gulp-filter": "^2.0.0", - "gulp-git": "^1.0.1", - "gulp-tag-version": "^1.3.0", - "jshint": "^2.5.6", - "mocha": "^2.1.0" - }, - "license": "BSD-2-Clause", - "scripts": { - "test": "npm run-script lint && npm run-script unit-test", - "lint": "jshint estraverse.js", - "unit-test": "mocha --compilers js:babel-register" - } -} diff --git a/build_vtk_bundle/node_modules/esutils/LICENSE.BSD b/build_vtk_bundle/node_modules/esutils/LICENSE.BSD deleted file mode 100644 index 3e580c35..00000000 --- a/build_vtk_bundle/node_modules/esutils/LICENSE.BSD +++ /dev/null @@ -1,19 +0,0 @@ -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/build_vtk_bundle/node_modules/esutils/README.md b/build_vtk_bundle/node_modules/esutils/README.md deleted file mode 100644 index 517526cf..00000000 --- a/build_vtk_bundle/node_modules/esutils/README.md +++ /dev/null @@ -1,174 +0,0 @@ -### esutils [![Build Status](https://secure.travis-ci.org/estools/esutils.svg)](http://travis-ci.org/estools/esutils) -esutils ([esutils](http://github.com/estools/esutils)) is -utility box for ECMAScript language tools. - -### API - -### ast - -#### ast.isExpression(node) - -Returns true if `node` is an Expression as defined in ECMA262 edition 5.1 section -[11](https://es5.github.io/#x11). - -#### ast.isStatement(node) - -Returns true if `node` is a Statement as defined in ECMA262 edition 5.1 section -[12](https://es5.github.io/#x12). - -#### ast.isIterationStatement(node) - -Returns true if `node` is an IterationStatement as defined in ECMA262 edition -5.1 section [12.6](https://es5.github.io/#x12.6). - -#### ast.isSourceElement(node) - -Returns true if `node` is a SourceElement as defined in ECMA262 edition 5.1 -section [14](https://es5.github.io/#x14). - -#### ast.trailingStatement(node) - -Returns `Statement?` if `node` has trailing `Statement`. -```js -if (cond) - consequent; -``` -When taking this `IfStatement`, returns `consequent;` statement. - -#### ast.isProblematicIfStatement(node) - -Returns true if `node` is a problematic IfStatement. If `node` is a problematic `IfStatement`, `node` cannot be represented as an one on one JavaScript code. -```js -{ - type: 'IfStatement', - consequent: { - type: 'WithStatement', - body: { - type: 'IfStatement', - consequent: {type: 'EmptyStatement'} - } - }, - alternate: {type: 'EmptyStatement'} -} -``` -The above node cannot be represented as a JavaScript code, since the top level `else` alternate belongs to an inner `IfStatement`. - - -### code - -#### code.isDecimalDigit(code) - -Return true if provided code is decimal digit. - -#### code.isHexDigit(code) - -Return true if provided code is hexadecimal digit. - -#### code.isOctalDigit(code) - -Return true if provided code is octal digit. - -#### code.isWhiteSpace(code) - -Return true if provided code is white space. White space characters are formally defined in ECMA262. - -#### code.isLineTerminator(code) - -Return true if provided code is line terminator. Line terminator characters are formally defined in ECMA262. - -#### code.isIdentifierStart(code) - -Return true if provided code can be the first character of ECMA262 Identifier. They are formally defined in ECMA262. - -#### code.isIdentifierPart(code) - -Return true if provided code can be the trailing character of ECMA262 Identifier. They are formally defined in ECMA262. - -### keyword - -#### keyword.isKeywordES5(id, strict) - -Returns `true` if provided identifier string is a Keyword or Future Reserved Word -in ECMA262 edition 5.1. They are formally defined in ECMA262 sections -[7.6.1.1](http://es5.github.io/#x7.6.1.1) and [7.6.1.2](http://es5.github.io/#x7.6.1.2), -respectively. If the `strict` flag is truthy, this function additionally checks whether -`id` is a Keyword or Future Reserved Word under strict mode. - -#### keyword.isKeywordES6(id, strict) - -Returns `true` if provided identifier string is a Keyword or Future Reserved Word -in ECMA262 edition 6. They are formally defined in ECMA262 sections -[11.6.2.1](http://ecma-international.org/ecma-262/6.0/#sec-keywords) and -[11.6.2.2](http://ecma-international.org/ecma-262/6.0/#sec-future-reserved-words), -respectively. If the `strict` flag is truthy, this function additionally checks whether -`id` is a Keyword or Future Reserved Word under strict mode. - -#### keyword.isReservedWordES5(id, strict) - -Returns `true` if provided identifier string is a Reserved Word in ECMA262 edition 5.1. -They are formally defined in ECMA262 section [7.6.1](http://es5.github.io/#x7.6.1). -If the `strict` flag is truthy, this function additionally checks whether `id` -is a Reserved Word under strict mode. - -#### keyword.isReservedWordES6(id, strict) - -Returns `true` if provided identifier string is a Reserved Word in ECMA262 edition 6. -They are formally defined in ECMA262 section [11.6.2](http://ecma-international.org/ecma-262/6.0/#sec-reserved-words). -If the `strict` flag is truthy, this function additionally checks whether `id` -is a Reserved Word under strict mode. - -#### keyword.isRestrictedWord(id) - -Returns `true` if provided identifier string is one of `eval` or `arguments`. -They are restricted in strict mode code throughout ECMA262 edition 5.1 and -in ECMA262 edition 6 section [12.1.1](http://ecma-international.org/ecma-262/6.0/#sec-identifiers-static-semantics-early-errors). - -#### keyword.isIdentifierNameES5(id) - -Return true if provided identifier string is an IdentifierName as specified in -ECMA262 edition 5.1 section [7.6](https://es5.github.io/#x7.6). - -#### keyword.isIdentifierNameES6(id) - -Return true if provided identifier string is an IdentifierName as specified in -ECMA262 edition 6 section [11.6](http://ecma-international.org/ecma-262/6.0/#sec-names-and-keywords). - -#### keyword.isIdentifierES5(id, strict) - -Return true if provided identifier string is an Identifier as specified in -ECMA262 edition 5.1 section [7.6](https://es5.github.io/#x7.6). If the `strict` -flag is truthy, this function additionally checks whether `id` is an Identifier -under strict mode. - -#### keyword.isIdentifierES6(id, strict) - -Return true if provided identifier string is an Identifier as specified in -ECMA262 edition 6 section [12.1](http://ecma-international.org/ecma-262/6.0/#sec-identifiers). -If the `strict` flag is truthy, this function additionally checks whether `id` -is an Identifier under strict mode. - -### License - -Copyright (C) 2013 [Yusuke Suzuki](http://github.com/Constellation) - (twitter: [@Constellation](http://twitter.com/Constellation)) and other contributors. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/build_vtk_bundle/node_modules/esutils/package.json b/build_vtk_bundle/node_modules/esutils/package.json deleted file mode 100644 index 8396f4ce..00000000 --- a/build_vtk_bundle/node_modules/esutils/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "esutils", - "description": "utility box for ECMAScript language tools", - "homepage": "https://github.com/estools/esutils", - "main": "lib/utils.js", - "version": "2.0.3", - "engines": { - "node": ">=0.10.0" - }, - "directories": { - "lib": "./lib" - }, - "files": [ - "LICENSE.BSD", - "README.md", - "lib" - ], - "maintainers": [ - { - "name": "Yusuke Suzuki", - "email": "utatane.tea@gmail.com", - "web": "http://github.com/Constellation" - } - ], - "repository": { - "type": "git", - "url": "http://github.com/estools/esutils.git" - }, - "devDependencies": { - "chai": "~1.7.2", - "coffee-script": "~1.6.3", - "jshint": "2.6.3", - "mocha": "~2.2.1", - "regenerate": "~1.3.1", - "unicode-9.0.0": "~0.7.0" - }, - "license": "BSD-2-Clause", - "scripts": { - "test": "npm run-script lint && npm run-script unit-test", - "lint": "jshint lib/*.js", - "unit-test": "mocha --compilers coffee:coffee-script -R spec", - "generate-regex": "node tools/generate-identifier-regex.js" - } -} diff --git a/build_vtk_bundle/node_modules/events/.airtap.yml b/build_vtk_bundle/node_modules/events/.airtap.yml deleted file mode 100644 index c7a8a87d..00000000 --- a/build_vtk_bundle/node_modules/events/.airtap.yml +++ /dev/null @@ -1,15 +0,0 @@ -sauce_connect: true -loopback: airtap.local -browsers: - - name: chrome - version: latest - - name: firefox - version: latest - - name: safari - version: 9..latest - - name: iphone - version: latest - - name: ie - version: 9..latest - - name: microsoftedge - version: 13..latest diff --git a/build_vtk_bundle/node_modules/events/.github/FUNDING.yml b/build_vtk_bundle/node_modules/events/.github/FUNDING.yml deleted file mode 100644 index 8b8cb78b..00000000 --- a/build_vtk_bundle/node_modules/events/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: npm/events -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/build_vtk_bundle/node_modules/events/.travis.yml b/build_vtk_bundle/node_modules/events/.travis.yml deleted file mode 100644 index 486dc3c4..00000000 --- a/build_vtk_bundle/node_modules/events/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -dist: xenial -os: linux -language: node_js -node_js: - - 'stable' - - 'lts/*' - - '0.12' -script: - - npm test - - if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_NODE_VERSION}" = "stable" ]; then npm run test:browsers; fi -addons: - sauce_connect: true - hosts: - - airtap.local -env: - global: - - secure: XcBiD8yReflut9q7leKsigDZ0mI3qTKH+QrNVY8DaqlomJOZw8aOrVuX9Jz12l86ZJ41nbxmKnRNkFzcVr9mbP9YaeTb3DpeOBWmvaoSfud9Wnc16VfXtc1FCcwDhSVcSiM3UtnrmFU5cH+Dw1LPh5PbfylYOS/nJxUvG0FFLqI= - - secure: jNWtEbqhUdQ0xXDHvCYfUbKYeJCi6a7B4LsrcxYCyWWn4NIgncE5x2YbB+FSUUFVYfz0dsn5RKP1oHB99f0laUEo18HBNkrAS/rtyOdVzcpJjbQ6kgSILGjnJD/Ty1B57Rcz3iyev5Y7bLZ6Y1FbDnk/i9/l0faOGz8vTC3Vdkc= diff --git a/build_vtk_bundle/node_modules/events/History.md b/build_vtk_bundle/node_modules/events/History.md deleted file mode 100644 index f48bf210..00000000 --- a/build_vtk_bundle/node_modules/events/History.md +++ /dev/null @@ -1,118 +0,0 @@ -# 3.3.0 - - - Support EventTarget emitters in `events.once` from Node.js 12.11.0. - - Now you can use the `events.once` function with objects that implement the EventTarget interface. This interface is used widely in - the DOM and other web APIs. - - ```js - var events = require('events'); - var assert = require('assert'); - - async function connect() { - var ws = new WebSocket('wss://example.com'); - await events.once(ws, 'open'); - assert(ws.readyState === WebSocket.OPEN); - } - - async function onClick() { - await events.once(document.body, 'click'); - alert('you clicked the page!'); - } - ``` - -# 3.2.0 - - - Add `events.once` from Node.js 11.13.0. - - To use this function, Promises must be supported in the environment. Use a polyfill like `es6-promise` if you support older browsers. - -# 3.1.0 (2020-01-08) - -`events` now matches the Node.js 11.12.0 API. - - - pass through return value in wrapped `emitter.once()` listeners - - Now, this works: - ```js - emitter.once('myevent', function () { return 1; }); - var listener = emitter.rawListeners('myevent')[0] - assert(listener() === 1); - ``` - Previously, `listener()` would return undefined regardless of the implementation. - - Ported from https://github.com/nodejs/node/commit/acc506c2d2771dab8d7bba6d3452bc5180dff7cf - - - Reduce code duplication in listener type check ([#67](https://github.com/Gozala/events/pull/67) by [@friederbluemle](https://github.com/friederbluemle)). - - Improve `emitter.once()` performance in some engines - -# 3.0.0 (2018-05-25) - -**This version drops support for IE8.** `events` no longer includes polyfills -for ES5 features. If you need to support older environments, use an ES5 shim -like [es5-shim](https://npmjs.com/package/es5-shim). Both the shim and sham -versions of es5-shim are necessary. - - - Update to events code from Node.js 10.x - - (semver major) Adds `off()` method - - Port more tests from Node.js - - Switch browser tests to airtap, making things more reliable - -# 2.1.0 (2018-05-25) - - - add Emitter#rawListeners from Node.js v9.4 - -# 2.0.0 (2018-02-02) - - - Update to events code from node.js 8.x - - Adds `prependListener()` and `prependOnceListener()` - - Adds `eventNames()` method - - (semver major) Unwrap `once()` listeners in `listeners()` - - copy tests from node.js - -Note that this version doubles the gzipped size, jumping from 1.1KB to 2.1KB, -due to new methods and runtime performance improvements. Be aware of that when -upgrading. - -# 1.1.1 (2016-06-22) - - - add more context to errors if they are not instanceof Error - -# 1.1.0 (2015-09-29) - - - add Emitter#listerCount (to match node v4 api) - -# 1.0.2 (2014-08-28) - - - remove un-reachable code - - update devDeps - -## 1.0.1 / 2014-05-11 - - - check for console.trace before using it - -## 1.0.0 / 2013-12-10 - - - Update to latest events code from node.js 0.10 - - copy tests from node.js - -## 0.4.0 / 2011-07-03 ## - - - Switching to graphquire@0.8.0 - -## 0.3.0 / 2011-07-03 ## - - - Switching to URL based module require. - -## 0.2.0 / 2011-06-10 ## - - - Simplified package structure. - - Graphquire for dependency management. - -## 0.1.1 / 2011-05-16 ## - - - Unhandled errors are logged via console.error - -## 0.1.0 / 2011-04-22 ## - - - Initial release diff --git a/build_vtk_bundle/node_modules/events/LICENSE b/build_vtk_bundle/node_modules/events/LICENSE deleted file mode 100644 index 52ed3b0a..00000000 --- a/build_vtk_bundle/node_modules/events/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT - -Copyright Joyent, Inc. and other Node contributors. - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to permit -persons to whom the Software is furnished to do so, subject to the -following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/events/Readme.md b/build_vtk_bundle/node_modules/events/Readme.md deleted file mode 100644 index 80849c0b..00000000 --- a/build_vtk_bundle/node_modules/events/Readme.md +++ /dev/null @@ -1,50 +0,0 @@ -# events [![Build Status](https://travis-ci.org/Gozala/events.png?branch=master)](https://travis-ci.org/Gozala/events) - -> Node's event emitter for all engines. - -This implements the Node.js [`events`][node.js docs] module for environments that do not have it, like browsers. - -> `events` currently matches the **Node.js 11.13.0** API. - -Note that the `events` module uses ES5 features. If you need to support very old browsers like IE8, use a shim like [`es5-shim`](https://www.npmjs.com/package/es5-shim). You need both the shim and the sham versions of `es5-shim`. - -This module is maintained, but only by very few people. If you'd like to help, let us know in the [Maintainer Needed](https://github.com/Gozala/events/issues/43) issue! - -## Install - -You usually do not have to install `events` yourself! If your code runs in Node.js, `events` is built in. If your code runs in the browser, bundlers like [browserify](https://github.com/browserify/browserify) or [webpack](https://github.com/webpack/webpack) also include the `events` module. - -But if none of those apply, with npm do: - -``` -npm install events -``` - -## Usage - -```javascript -var EventEmitter = require('events') - -var ee = new EventEmitter() -ee.on('message', function (text) { - console.log(text) -}) -ee.emit('message', 'hello world') -``` - -## API - -See the [Node.js EventEmitter docs][node.js docs]. `events` currently matches the Node.js 11.13.0 API. - -## Contributing - -PRs are very welcome! The main way to contribute to `events` is by porting features, bugfixes and tests from Node.js. Ideally, code contributions to this module are copy-pasted from Node.js and transpiled to ES5, rather than reimplemented from scratch. Matching the Node.js code as closely as possible makes maintenance simpler when new changes land in Node.js. -This module intends to provide exactly the same API as Node.js, so features that are not available in the core `events` module will not be accepted. Feature requests should instead be directed at [nodejs/node](https://github.com/nodejs/node) and will be added to this module once they are implemented in Node.js. - -If there is a difference in behaviour between Node.js's `events` module and this module, please open an issue! - -## License - -[MIT](./LICENSE) - -[node.js docs]: https://nodejs.org/dist/v11.13.0/docs/api/events.html diff --git a/build_vtk_bundle/node_modules/events/events.js b/build_vtk_bundle/node_modules/events/events.js deleted file mode 100644 index 34b69a0b..00000000 --- a/build_vtk_bundle/node_modules/events/events.js +++ /dev/null @@ -1,497 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -'use strict'; - -var R = typeof Reflect === 'object' ? Reflect : null -var ReflectApply = R && typeof R.apply === 'function' - ? R.apply - : function ReflectApply(target, receiver, args) { - return Function.prototype.apply.call(target, receiver, args); - } - -var ReflectOwnKeys -if (R && typeof R.ownKeys === 'function') { - ReflectOwnKeys = R.ownKeys -} else if (Object.getOwnPropertySymbols) { - ReflectOwnKeys = function ReflectOwnKeys(target) { - return Object.getOwnPropertyNames(target) - .concat(Object.getOwnPropertySymbols(target)); - }; -} else { - ReflectOwnKeys = function ReflectOwnKeys(target) { - return Object.getOwnPropertyNames(target); - }; -} - -function ProcessEmitWarning(warning) { - if (console && console.warn) console.warn(warning); -} - -var NumberIsNaN = Number.isNaN || function NumberIsNaN(value) { - return value !== value; -} - -function EventEmitter() { - EventEmitter.init.call(this); -} -module.exports = EventEmitter; -module.exports.once = once; - -// Backwards-compat with node 0.10.x -EventEmitter.EventEmitter = EventEmitter; - -EventEmitter.prototype._events = undefined; -EventEmitter.prototype._eventsCount = 0; -EventEmitter.prototype._maxListeners = undefined; - -// By default EventEmitters will print a warning if more than 10 listeners are -// added to it. This is a useful default which helps finding memory leaks. -var defaultMaxListeners = 10; - -function checkListener(listener) { - if (typeof listener !== 'function') { - throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener); - } -} - -Object.defineProperty(EventEmitter, 'defaultMaxListeners', { - enumerable: true, - get: function() { - return defaultMaxListeners; - }, - set: function(arg) { - if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) { - throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + '.'); - } - defaultMaxListeners = arg; - } -}); - -EventEmitter.init = function() { - - if (this._events === undefined || - this._events === Object.getPrototypeOf(this)._events) { - this._events = Object.create(null); - this._eventsCount = 0; - } - - this._maxListeners = this._maxListeners || undefined; -}; - -// Obviously not all Emitters should be limited to 10. This function allows -// that to be increased. Set to zero for unlimited. -EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) { - if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) { - throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + '.'); - } - this._maxListeners = n; - return this; -}; - -function _getMaxListeners(that) { - if (that._maxListeners === undefined) - return EventEmitter.defaultMaxListeners; - return that._maxListeners; -} - -EventEmitter.prototype.getMaxListeners = function getMaxListeners() { - return _getMaxListeners(this); -}; - -EventEmitter.prototype.emit = function emit(type) { - var args = []; - for (var i = 1; i < arguments.length; i++) args.push(arguments[i]); - var doError = (type === 'error'); - - var events = this._events; - if (events !== undefined) - doError = (doError && events.error === undefined); - else if (!doError) - return false; - - // If there is no 'error' event listener then throw. - if (doError) { - var er; - if (args.length > 0) - er = args[0]; - if (er instanceof Error) { - // Note: The comments on the `throw` lines are intentional, they show - // up in Node's output if this results in an unhandled exception. - throw er; // Unhandled 'error' event - } - // At least give some kind of context to the user - var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : '')); - err.context = er; - throw err; // Unhandled 'error' event - } - - var handler = events[type]; - - if (handler === undefined) - return false; - - if (typeof handler === 'function') { - ReflectApply(handler, this, args); - } else { - var len = handler.length; - var listeners = arrayClone(handler, len); - for (var i = 0; i < len; ++i) - ReflectApply(listeners[i], this, args); - } - - return true; -}; - -function _addListener(target, type, listener, prepend) { - var m; - var events; - var existing; - - checkListener(listener); - - events = target._events; - if (events === undefined) { - events = target._events = Object.create(null); - target._eventsCount = 0; - } else { - // To avoid recursion in the case that type === "newListener"! Before - // adding it to the listeners, first emit "newListener". - if (events.newListener !== undefined) { - target.emit('newListener', type, - listener.listener ? listener.listener : listener); - - // Re-assign `events` because a newListener handler could have caused the - // this._events to be assigned to a new object - events = target._events; - } - existing = events[type]; - } - - if (existing === undefined) { - // Optimize the case of one listener. Don't need the extra array object. - existing = events[type] = listener; - ++target._eventsCount; - } else { - if (typeof existing === 'function') { - // Adding the second element, need to change to array. - existing = events[type] = - prepend ? [listener, existing] : [existing, listener]; - // If we've already got an array, just append. - } else if (prepend) { - existing.unshift(listener); - } else { - existing.push(listener); - } - - // Check for listener leak - m = _getMaxListeners(target); - if (m > 0 && existing.length > m && !existing.warned) { - existing.warned = true; - // No error code for this since it is a Warning - // eslint-disable-next-line no-restricted-syntax - var w = new Error('Possible EventEmitter memory leak detected. ' + - existing.length + ' ' + String(type) + ' listeners ' + - 'added. Use emitter.setMaxListeners() to ' + - 'increase limit'); - w.name = 'MaxListenersExceededWarning'; - w.emitter = target; - w.type = type; - w.count = existing.length; - ProcessEmitWarning(w); - } - } - - return target; -} - -EventEmitter.prototype.addListener = function addListener(type, listener) { - return _addListener(this, type, listener, false); -}; - -EventEmitter.prototype.on = EventEmitter.prototype.addListener; - -EventEmitter.prototype.prependListener = - function prependListener(type, listener) { - return _addListener(this, type, listener, true); - }; - -function onceWrapper() { - if (!this.fired) { - this.target.removeListener(this.type, this.wrapFn); - this.fired = true; - if (arguments.length === 0) - return this.listener.call(this.target); - return this.listener.apply(this.target, arguments); - } -} - -function _onceWrap(target, type, listener) { - var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener }; - var wrapped = onceWrapper.bind(state); - wrapped.listener = listener; - state.wrapFn = wrapped; - return wrapped; -} - -EventEmitter.prototype.once = function once(type, listener) { - checkListener(listener); - this.on(type, _onceWrap(this, type, listener)); - return this; -}; - -EventEmitter.prototype.prependOnceListener = - function prependOnceListener(type, listener) { - checkListener(listener); - this.prependListener(type, _onceWrap(this, type, listener)); - return this; - }; - -// Emits a 'removeListener' event if and only if the listener was removed. -EventEmitter.prototype.removeListener = - function removeListener(type, listener) { - var list, events, position, i, originalListener; - - checkListener(listener); - - events = this._events; - if (events === undefined) - return this; - - list = events[type]; - if (list === undefined) - return this; - - if (list === listener || list.listener === listener) { - if (--this._eventsCount === 0) - this._events = Object.create(null); - else { - delete events[type]; - if (events.removeListener) - this.emit('removeListener', type, list.listener || listener); - } - } else if (typeof list !== 'function') { - position = -1; - - for (i = list.length - 1; i >= 0; i--) { - if (list[i] === listener || list[i].listener === listener) { - originalListener = list[i].listener; - position = i; - break; - } - } - - if (position < 0) - return this; - - if (position === 0) - list.shift(); - else { - spliceOne(list, position); - } - - if (list.length === 1) - events[type] = list[0]; - - if (events.removeListener !== undefined) - this.emit('removeListener', type, originalListener || listener); - } - - return this; - }; - -EventEmitter.prototype.off = EventEmitter.prototype.removeListener; - -EventEmitter.prototype.removeAllListeners = - function removeAllListeners(type) { - var listeners, events, i; - - events = this._events; - if (events === undefined) - return this; - - // not listening for removeListener, no need to emit - if (events.removeListener === undefined) { - if (arguments.length === 0) { - this._events = Object.create(null); - this._eventsCount = 0; - } else if (events[type] !== undefined) { - if (--this._eventsCount === 0) - this._events = Object.create(null); - else - delete events[type]; - } - return this; - } - - // emit removeListener for all listeners on all events - if (arguments.length === 0) { - var keys = Object.keys(events); - var key; - for (i = 0; i < keys.length; ++i) { - key = keys[i]; - if (key === 'removeListener') continue; - this.removeAllListeners(key); - } - this.removeAllListeners('removeListener'); - this._events = Object.create(null); - this._eventsCount = 0; - return this; - } - - listeners = events[type]; - - if (typeof listeners === 'function') { - this.removeListener(type, listeners); - } else if (listeners !== undefined) { - // LIFO order - for (i = listeners.length - 1; i >= 0; i--) { - this.removeListener(type, listeners[i]); - } - } - - return this; - }; - -function _listeners(target, type, unwrap) { - var events = target._events; - - if (events === undefined) - return []; - - var evlistener = events[type]; - if (evlistener === undefined) - return []; - - if (typeof evlistener === 'function') - return unwrap ? [evlistener.listener || evlistener] : [evlistener]; - - return unwrap ? - unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length); -} - -EventEmitter.prototype.listeners = function listeners(type) { - return _listeners(this, type, true); -}; - -EventEmitter.prototype.rawListeners = function rawListeners(type) { - return _listeners(this, type, false); -}; - -EventEmitter.listenerCount = function(emitter, type) { - if (typeof emitter.listenerCount === 'function') { - return emitter.listenerCount(type); - } else { - return listenerCount.call(emitter, type); - } -}; - -EventEmitter.prototype.listenerCount = listenerCount; -function listenerCount(type) { - var events = this._events; - - if (events !== undefined) { - var evlistener = events[type]; - - if (typeof evlistener === 'function') { - return 1; - } else if (evlistener !== undefined) { - return evlistener.length; - } - } - - return 0; -} - -EventEmitter.prototype.eventNames = function eventNames() { - return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : []; -}; - -function arrayClone(arr, n) { - var copy = new Array(n); - for (var i = 0; i < n; ++i) - copy[i] = arr[i]; - return copy; -} - -function spliceOne(list, index) { - for (; index + 1 < list.length; index++) - list[index] = list[index + 1]; - list.pop(); -} - -function unwrapListeners(arr) { - var ret = new Array(arr.length); - for (var i = 0; i < ret.length; ++i) { - ret[i] = arr[i].listener || arr[i]; - } - return ret; -} - -function once(emitter, name) { - return new Promise(function (resolve, reject) { - function errorListener(err) { - emitter.removeListener(name, resolver); - reject(err); - } - - function resolver() { - if (typeof emitter.removeListener === 'function') { - emitter.removeListener('error', errorListener); - } - resolve([].slice.call(arguments)); - }; - - eventTargetAgnosticAddListener(emitter, name, resolver, { once: true }); - if (name !== 'error') { - addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true }); - } - }); -} - -function addErrorHandlerIfEventEmitter(emitter, handler, flags) { - if (typeof emitter.on === 'function') { - eventTargetAgnosticAddListener(emitter, 'error', handler, flags); - } -} - -function eventTargetAgnosticAddListener(emitter, name, listener, flags) { - if (typeof emitter.on === 'function') { - if (flags.once) { - emitter.once(name, listener); - } else { - emitter.on(name, listener); - } - } else if (typeof emitter.addEventListener === 'function') { - // EventTarget does not have `error` event semantics like Node - // EventEmitters, we do not listen for `error` events here. - emitter.addEventListener(name, function wrapListener(arg) { - // IE does not have builtin `{ once: true }` support so we - // have to do it manually. - if (flags.once) { - emitter.removeEventListener(name, wrapListener); - } - listener(arg); - }); - } else { - throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter); - } -} diff --git a/build_vtk_bundle/node_modules/events/package.json b/build_vtk_bundle/node_modules/events/package.json deleted file mode 100644 index b9580d88..00000000 --- a/build_vtk_bundle/node_modules/events/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "events", - "version": "3.3.0", - "description": "Node's event emitter for all engines.", - "keywords": [ - "events", - "eventEmitter", - "eventDispatcher", - "listeners" - ], - "author": "Irakli Gozalishvili (http://jeditoolkit.com)", - "repository": { - "type": "git", - "url": "git://github.com/Gozala/events.git", - "web": "https://github.com/Gozala/events" - }, - "bugs": { - "url": "http://github.com/Gozala/events/issues/" - }, - "main": "./events.js", - "engines": { - "node": ">=0.8.x" - }, - "devDependencies": { - "airtap": "^1.0.0", - "functions-have-names": "^1.2.1", - "has": "^1.0.3", - "has-symbols": "^1.0.1", - "isarray": "^2.0.5", - "tape": "^5.0.0" - }, - "scripts": { - "test": "node tests/index.js", - "test:browsers": "airtap -- tests/index.js" - }, - "license": "MIT" -} diff --git a/build_vtk_bundle/node_modules/events/security.md b/build_vtk_bundle/node_modules/events/security.md deleted file mode 100644 index a14ace6a..00000000 --- a/build_vtk_bundle/node_modules/events/security.md +++ /dev/null @@ -1,10 +0,0 @@ -# Security Policy - -## Supported Versions -Only the latest major version is supported at any given time. - -## Reporting a Vulnerability - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. diff --git a/build_vtk_bundle/node_modules/events/tests/add-listeners.js b/build_vtk_bundle/node_modules/events/tests/add-listeners.js deleted file mode 100644 index 9b578272..00000000 --- a/build_vtk_bundle/node_modules/events/tests/add-listeners.js +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -var common = require('./common'); -var assert = require('assert'); -var EventEmitter = require('../'); - -{ - var ee = new EventEmitter(); - var events_new_listener_emitted = []; - var listeners_new_listener_emitted = []; - - // Sanity check - assert.strictEqual(ee.addListener, ee.on); - - ee.on('newListener', function(event, listener) { - // Don't track newListener listeners. - if (event === 'newListener') - return; - - events_new_listener_emitted.push(event); - listeners_new_listener_emitted.push(listener); - }); - - var hello = common.mustCall(function(a, b) { - assert.strictEqual('a', a); - assert.strictEqual('b', b); - }); - - ee.once('newListener', function(name, listener) { - assert.strictEqual(name, 'hello'); - assert.strictEqual(listener, hello); - - var listeners = this.listeners('hello'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 0); - }); - - ee.on('hello', hello); - ee.once('foo', assert.fail); - - assert.ok(Array.isArray(events_new_listener_emitted)); - assert.strictEqual(events_new_listener_emitted.length, 2); - assert.strictEqual(events_new_listener_emitted[0], 'hello'); - assert.strictEqual(events_new_listener_emitted[1], 'foo'); - - assert.ok(Array.isArray(listeners_new_listener_emitted)); - assert.strictEqual(listeners_new_listener_emitted.length, 2); - assert.strictEqual(listeners_new_listener_emitted[0], hello); - assert.strictEqual(listeners_new_listener_emitted[1], assert.fail); - - ee.emit('hello', 'a', 'b'); -} - -// just make sure that this doesn't throw: -{ - var f = new EventEmitter(); - - f.setMaxListeners(0); -} - -{ - var listen1 = function() {}; - var listen2 = function() {}; - var ee = new EventEmitter(); - - ee.once('newListener', function() { - var listeners = ee.listeners('hello'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 0); - ee.once('newListener', function() { - var listeners = ee.listeners('hello'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 0); - }); - ee.on('hello', listen2); - }); - ee.on('hello', listen1); - // The order of listeners on an event is not always the order in which the - // listeners were added. - var listeners = ee.listeners('hello'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 2); - assert.strictEqual(listeners[0], listen2); - assert.strictEqual(listeners[1], listen1); -} - -// Verify that the listener must be a function -assert.throws(function() { - var ee = new EventEmitter(); - - ee.on('foo', null); -}, /^TypeError: The "listener" argument must be of type Function. Received type object$/); diff --git a/build_vtk_bundle/node_modules/events/tests/check-listener-leaks.js b/build_vtk_bundle/node_modules/events/tests/check-listener-leaks.js deleted file mode 100644 index 7fce48f3..00000000 --- a/build_vtk_bundle/node_modules/events/tests/check-listener-leaks.js +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -var common = require('./common'); -var assert = require('assert'); -var events = require('../'); - -// Redirect warning output to tape. -var consoleWarn = console.warn; -console.warn = common.test.comment; - -common.test.on('end', function () { - console.warn = consoleWarn; -}); - -// default -{ - var e = new events.EventEmitter(); - - for (var i = 0; i < 10; i++) { - e.on('default', common.mustNotCall()); - } - assert.ok(!e._events['default'].hasOwnProperty('warned')); - e.on('default', common.mustNotCall()); - assert.ok(e._events['default'].warned); - - // specific - e.setMaxListeners(5); - for (var i = 0; i < 5; i++) { - e.on('specific', common.mustNotCall()); - } - assert.ok(!e._events['specific'].hasOwnProperty('warned')); - e.on('specific', common.mustNotCall()); - assert.ok(e._events['specific'].warned); - - // only one - e.setMaxListeners(1); - e.on('only one', common.mustNotCall()); - assert.ok(!e._events['only one'].hasOwnProperty('warned')); - e.on('only one', common.mustNotCall()); - assert.ok(e._events['only one'].hasOwnProperty('warned')); - - // unlimited - e.setMaxListeners(0); - for (var i = 0; i < 1000; i++) { - e.on('unlimited', common.mustNotCall()); - } - assert.ok(!e._events['unlimited'].hasOwnProperty('warned')); -} - -// process-wide -{ - events.EventEmitter.defaultMaxListeners = 42; - var e = new events.EventEmitter(); - - for (var i = 0; i < 42; ++i) { - e.on('fortytwo', common.mustNotCall()); - } - assert.ok(!e._events['fortytwo'].hasOwnProperty('warned')); - e.on('fortytwo', common.mustNotCall()); - assert.ok(e._events['fortytwo'].hasOwnProperty('warned')); - delete e._events['fortytwo'].warned; - - events.EventEmitter.defaultMaxListeners = 44; - e.on('fortytwo', common.mustNotCall()); - assert.ok(!e._events['fortytwo'].hasOwnProperty('warned')); - e.on('fortytwo', common.mustNotCall()); - assert.ok(e._events['fortytwo'].hasOwnProperty('warned')); -} - -// but _maxListeners still has precedence over defaultMaxListeners -{ - events.EventEmitter.defaultMaxListeners = 42; - var e = new events.EventEmitter(); - e.setMaxListeners(1); - e.on('uno', common.mustNotCall()); - assert.ok(!e._events['uno'].hasOwnProperty('warned')); - e.on('uno', common.mustNotCall()); - assert.ok(e._events['uno'].hasOwnProperty('warned')); - - // chainable - assert.strictEqual(e, e.setMaxListeners(1)); -} diff --git a/build_vtk_bundle/node_modules/events/tests/common.js b/build_vtk_bundle/node_modules/events/tests/common.js deleted file mode 100644 index 49569b05..00000000 --- a/build_vtk_bundle/node_modules/events/tests/common.js +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -var test = require('tape'); -var assert = require('assert'); - -var noop = function() {}; - -var mustCallChecks = []; - -function runCallChecks(exitCode) { - if (exitCode !== 0) return; - - var failed = filter(mustCallChecks, function(context) { - if ('minimum' in context) { - context.messageSegment = 'at least ' + context.minimum; - return context.actual < context.minimum; - } else { - context.messageSegment = 'exactly ' + context.exact; - return context.actual !== context.exact; - } - }); - - for (var i = 0; i < failed.length; i++) { - var context = failed[i]; - console.log('Mismatched %s function calls. Expected %s, actual %d.', - context.name, - context.messageSegment, - context.actual); - // IE8 has no .stack - if (context.stack) console.log(context.stack.split('\n').slice(2).join('\n')); - } - - assert.strictEqual(failed.length, 0); -} - -exports.mustCall = function(fn, exact) { - return _mustCallInner(fn, exact, 'exact'); -}; - -function _mustCallInner(fn, criteria, field) { - if (typeof criteria == 'undefined') criteria = 1; - - if (typeof fn === 'number') { - criteria = fn; - fn = noop; - } else if (fn === undefined) { - fn = noop; - } - - if (typeof criteria !== 'number') - throw new TypeError('Invalid ' + field + ' value: ' + criteria); - - var context = { - actual: 0, - stack: (new Error()).stack, - name: fn.name || '' - }; - - context[field] = criteria; - - // add the exit listener only once to avoid listener leak warnings - if (mustCallChecks.length === 0) test.onFinish(function() { runCallChecks(0); }); - - mustCallChecks.push(context); - - return function() { - context.actual++; - return fn.apply(this, arguments); - }; -} - -exports.mustNotCall = function(msg) { - return function mustNotCall() { - assert.fail(msg || 'function should not have been called'); - }; -}; - -function filter(arr, fn) { - if (arr.filter) return arr.filter(fn); - var filtered = []; - for (var i = 0; i < arr.length; i++) { - if (fn(arr[i], i, arr)) filtered.push(arr[i]); - } - return filtered -} diff --git a/build_vtk_bundle/node_modules/events/tests/errors.js b/build_vtk_bundle/node_modules/events/tests/errors.js deleted file mode 100644 index a23df437..00000000 --- a/build_vtk_bundle/node_modules/events/tests/errors.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; -var assert = require('assert'); -var EventEmitter = require('../'); - -var EE = new EventEmitter(); - -assert.throws(function () { - EE.emit('error', 'Accepts a string'); -}, 'Error: Unhandled error. (Accepts a string)'); - -assert.throws(function () { - EE.emit('error', { message: 'Error!' }); -}, 'Unhandled error. ([object Object])'); diff --git a/build_vtk_bundle/node_modules/events/tests/events-list.js b/build_vtk_bundle/node_modules/events/tests/events-list.js deleted file mode 100644 index 08aa6217..00000000 --- a/build_vtk_bundle/node_modules/events/tests/events-list.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict'; - -var EventEmitter = require('../'); -var assert = require('assert'); - -var EE = new EventEmitter(); -var m = function() {}; -EE.on('foo', function() {}); -assert.equal(1, EE.eventNames().length); -assert.equal('foo', EE.eventNames()[0]); -EE.on('bar', m); -assert.equal(2, EE.eventNames().length); -assert.equal('foo', EE.eventNames()[0]); -assert.equal('bar', EE.eventNames()[1]); -EE.removeListener('bar', m); -assert.equal(1, EE.eventNames().length); -assert.equal('foo', EE.eventNames()[0]); - -if (typeof Symbol !== 'undefined') { - var s = Symbol('s'); - EE.on(s, m); - assert.equal(2, EE.eventNames().length); - assert.equal('foo', EE.eventNames()[0]); - assert.equal(s, EE.eventNames()[1]); - EE.removeListener(s, m); - assert.equal(1, EE.eventNames().length); - assert.equal('foo', EE.eventNames()[0]); -} diff --git a/build_vtk_bundle/node_modules/events/tests/events-once.js b/build_vtk_bundle/node_modules/events/tests/events-once.js deleted file mode 100644 index dae86496..00000000 --- a/build_vtk_bundle/node_modules/events/tests/events-once.js +++ /dev/null @@ -1,234 +0,0 @@ -'use strict'; - -var common = require('./common'); -var EventEmitter = require('../').EventEmitter; -var once = require('../').once; -var has = require('has'); -var assert = require('assert'); - -function Event(type) { - this.type = type; -} - -function EventTargetMock() { - this.events = {}; - - this.addEventListener = common.mustCall(this.addEventListener); - this.removeEventListener = common.mustCall(this.removeEventListener); -} - -EventTargetMock.prototype.addEventListener = function addEventListener(name, listener, options) { - if (!(name in this.events)) { - this.events[name] = { listeners: [], options: options || {} } - } - this.events[name].listeners.push(listener); -}; - -EventTargetMock.prototype.removeEventListener = function removeEventListener(name, callback) { - if (!(name in this.events)) { - return; - } - var event = this.events[name]; - var stack = event.listeners; - - for (var i = 0, l = stack.length; i < l; i++) { - if (stack[i] === callback) { - stack.splice(i, 1); - if (stack.length === 0) { - delete this.events[name]; - } - return; - } - } -}; - -EventTargetMock.prototype.dispatchEvent = function dispatchEvent(arg) { - if (!(arg.type in this.events)) { - return true; - } - - var event = this.events[arg.type]; - var stack = event.listeners.slice(); - - for (var i = 0, l = stack.length; i < l; i++) { - stack[i].call(null, arg); - if (event.options.once) { - this.removeEventListener(arg.type, stack[i]); - } - } - return !arg.defaultPrevented; -}; - -function onceAnEvent() { - var ee = new EventEmitter(); - - process.nextTick(function () { - ee.emit('myevent', 42); - }); - - return once(ee, 'myevent').then(function (args) { - var value = args[0] - assert.strictEqual(value, 42); - assert.strictEqual(ee.listenerCount('error'), 0); - assert.strictEqual(ee.listenerCount('myevent'), 0); - }); -} - -function onceAnEventWithTwoArgs() { - var ee = new EventEmitter(); - - process.nextTick(function () { - ee.emit('myevent', 42, 24); - }); - - return once(ee, 'myevent').then(function (value) { - assert.strictEqual(value.length, 2); - assert.strictEqual(value[0], 42); - assert.strictEqual(value[1], 24); - }); -} - -function catchesErrors() { - var ee = new EventEmitter(); - - var expected = new Error('kaboom'); - var err; - process.nextTick(function () { - ee.emit('error', expected); - }); - - return once(ee, 'myevent').then(function () { - throw new Error('should reject') - }, function (err) { - assert.strictEqual(err, expected); - assert.strictEqual(ee.listenerCount('error'), 0); - assert.strictEqual(ee.listenerCount('myevent'), 0); - }); -} - -function stopListeningAfterCatchingError() { - var ee = new EventEmitter(); - - var expected = new Error('kaboom'); - var err; - process.nextTick(function () { - ee.emit('error', expected); - ee.emit('myevent', 42, 24); - }); - - // process.on('multipleResolves', common.mustNotCall()); - - return once(ee, 'myevent').then(common.mustNotCall, function (err) { - // process.removeAllListeners('multipleResolves'); - assert.strictEqual(err, expected); - assert.strictEqual(ee.listenerCount('error'), 0); - assert.strictEqual(ee.listenerCount('myevent'), 0); - }); -} - -function onceError() { - var ee = new EventEmitter(); - - var expected = new Error('kaboom'); - process.nextTick(function () { - ee.emit('error', expected); - }); - - var promise = once(ee, 'error'); - assert.strictEqual(ee.listenerCount('error'), 1); - return promise.then(function (args) { - var err = args[0] - assert.strictEqual(err, expected); - assert.strictEqual(ee.listenerCount('error'), 0); - assert.strictEqual(ee.listenerCount('myevent'), 0); - }); -} - -function onceWithEventTarget() { - var et = new EventTargetMock(); - var event = new Event('myevent'); - process.nextTick(function () { - et.dispatchEvent(event); - }); - return once(et, 'myevent').then(function (args) { - var value = args[0]; - assert.strictEqual(value, event); - assert.strictEqual(has(et.events, 'myevent'), false); - }); -} - -function onceWithEventTargetError() { - var et = new EventTargetMock(); - var error = new Event('error'); - process.nextTick(function () { - et.dispatchEvent(error); - }); - return once(et, 'error').then(function (args) { - var err = args[0]; - assert.strictEqual(err, error); - assert.strictEqual(has(et.events, 'error'), false); - }); -} - -function prioritizesEventEmitter() { - var ee = new EventEmitter(); - ee.addEventListener = assert.fail; - ee.removeAllListeners = assert.fail; - process.nextTick(function () { - ee.emit('foo'); - }); - return once(ee, 'foo'); -} - -var allTests = [ - onceAnEvent(), - onceAnEventWithTwoArgs(), - catchesErrors(), - stopListeningAfterCatchingError(), - onceError(), - onceWithEventTarget(), - onceWithEventTargetError(), - prioritizesEventEmitter() -]; - -var hasBrowserEventTarget = false; -try { - hasBrowserEventTarget = typeof (new window.EventTarget().addEventListener) === 'function' && - new window.Event('xyz').type === 'xyz'; -} catch (err) {} - -if (hasBrowserEventTarget) { - var onceWithBrowserEventTarget = function onceWithBrowserEventTarget() { - var et = new window.EventTarget(); - var event = new window.Event('myevent'); - process.nextTick(function () { - et.dispatchEvent(event); - }); - return once(et, 'myevent').then(function (args) { - var value = args[0]; - assert.strictEqual(value, event); - assert.strictEqual(has(et.events, 'myevent'), false); - }); - } - - var onceWithBrowserEventTargetError = function onceWithBrowserEventTargetError() { - var et = new window.EventTarget(); - var error = new window.Event('error'); - process.nextTick(function () { - et.dispatchEvent(error); - }); - return once(et, 'error').then(function (args) { - var err = args[0]; - assert.strictEqual(err, error); - assert.strictEqual(has(et.events, 'error'), false); - }); - } - - common.test.comment('Testing with browser built-in EventTarget'); - allTests.push([ - onceWithBrowserEventTarget(), - onceWithBrowserEventTargetError() - ]); -} - -module.exports = Promise.all(allTests); diff --git a/build_vtk_bundle/node_modules/events/tests/index.js b/build_vtk_bundle/node_modules/events/tests/index.js deleted file mode 100644 index 2d739e67..00000000 --- a/build_vtk_bundle/node_modules/events/tests/index.js +++ /dev/null @@ -1,64 +0,0 @@ -var test = require('tape'); -var functionsHaveNames = require('functions-have-names'); -var hasSymbols = require('has-symbols'); - -require('./legacy-compat'); -var common = require('./common'); - -// we do this to easily wrap each file in a mocha test -// and also have browserify be able to statically analyze this file -var orig_require = require; -var require = function(file) { - test(file, function(t) { - // Store the tape object so tests can access it. - t.on('end', function () { delete common.test; }); - common.test = t; - - try { - var exp = orig_require(file); - if (exp && exp.then) { - exp.then(function () { t.end(); }, t.fail); - return; - } - } catch (err) { - t.fail(err); - } - t.end(); - }); -}; - -require('./add-listeners.js'); -require('./check-listener-leaks.js'); -require('./errors.js'); -require('./events-list.js'); -if (typeof Promise === 'function') { - require('./events-once.js'); -} else { - // Promise support is not available. - test('./events-once.js', { skip: true }, function () {}); -} -require('./listener-count.js'); -require('./listeners-side-effects.js'); -require('./listeners.js'); -require('./max-listeners.js'); -if (functionsHaveNames()) { - require('./method-names.js'); -} else { - // Function.name is not supported in IE - test('./method-names.js', { skip: true }, function () {}); -} -require('./modify-in-emit.js'); -require('./num-args.js'); -require('./once.js'); -require('./prepend.js'); -require('./set-max-listeners-side-effects.js'); -require('./special-event-names.js'); -require('./subclass.js'); -if (hasSymbols()) { - require('./symbols.js'); -} else { - // Symbol is not available. - test('./symbols.js', { skip: true }, function () {}); -} -require('./remove-all-listeners.js'); -require('./remove-listeners.js'); diff --git a/build_vtk_bundle/node_modules/events/tests/legacy-compat.js b/build_vtk_bundle/node_modules/events/tests/legacy-compat.js deleted file mode 100644 index a402be6e..00000000 --- a/build_vtk_bundle/node_modules/events/tests/legacy-compat.js +++ /dev/null @@ -1,16 +0,0 @@ -// sigh... life is hard -if (!global.console) { - console = {} -} - -var fns = ['log', 'error', 'trace']; -for (var i=0 ; ifoo should not be emitted'); -} - -e.once('foo', remove); -e.removeListener('foo', remove); -e.emit('foo'); - -e.once('e', common.mustCall(function() { - e.emit('e'); -})); - -e.once('e', common.mustCall()); - -e.emit('e'); - -// Verify that the listener must be a function -assert.throws(function() { - var ee = new EventEmitter(); - - ee.once('foo', null); -}, /^TypeError: The "listener" argument must be of type Function. Received type object$/); - -{ - // once() has different code paths based on the number of arguments being - // emitted. Verify that all of the cases are covered. - var maxArgs = 4; - - for (var i = 0; i <= maxArgs; ++i) { - var ee = new EventEmitter(); - var args = ['foo']; - - for (var j = 0; j < i; ++j) - args.push(j); - - ee.once('foo', common.mustCall(function() { - var params = Array.prototype.slice.call(arguments); - var restArgs = args.slice(1); - assert.ok(Array.isArray(params)); - assert.strictEqual(params.length, restArgs.length); - for (var index = 0; index < params.length; index++) { - var param = params[index]; - assert.strictEqual(param, restArgs[index]); - } - })); - - EventEmitter.prototype.emit.apply(ee, args); - } -} diff --git a/build_vtk_bundle/node_modules/events/tests/prepend.js b/build_vtk_bundle/node_modules/events/tests/prepend.js deleted file mode 100644 index 79afde0b..00000000 --- a/build_vtk_bundle/node_modules/events/tests/prepend.js +++ /dev/null @@ -1,31 +0,0 @@ -'use strict'; - -var common = require('./common'); -var EventEmitter = require('../'); -var assert = require('assert'); - -var myEE = new EventEmitter(); -var m = 0; -// This one comes last. -myEE.on('foo', common.mustCall(function () { - assert.strictEqual(m, 2); -})); - -// This one comes second. -myEE.prependListener('foo', common.mustCall(function () { - assert.strictEqual(m++, 1); -})); - -// This one comes first. -myEE.prependOnceListener('foo', - common.mustCall(function () { - assert.strictEqual(m++, 0); - })); - -myEE.emit('foo'); - -// Verify that the listener must be a function -assert.throws(function () { - var ee = new EventEmitter(); - ee.prependOnceListener('foo', null); -}, 'TypeError: The "listener" argument must be of type Function. Received type object'); diff --git a/build_vtk_bundle/node_modules/events/tests/remove-all-listeners.js b/build_vtk_bundle/node_modules/events/tests/remove-all-listeners.js deleted file mode 100644 index 622941cf..00000000 --- a/build_vtk_bundle/node_modules/events/tests/remove-all-listeners.js +++ /dev/null @@ -1,133 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -var common = require('./common'); -var assert = require('assert'); -var events = require('../'); -var test = require('tape'); - -function expect(expected) { - var actual = []; - test.onFinish(function() { - var sortedActual = actual.sort(); - var sortedExpected = expected.sort(); - assert.strictEqual(sortedActual.length, sortedExpected.length); - for (var index = 0; index < sortedActual.length; index++) { - var value = sortedActual[index]; - assert.strictEqual(value, sortedExpected[index]); - } - }); - function listener(name) { - actual.push(name); - } - return common.mustCall(listener, expected.length); -} - -{ - var ee = new events.EventEmitter(); - var noop = common.mustNotCall(); - ee.on('foo', noop); - ee.on('bar', noop); - ee.on('baz', noop); - ee.on('baz', noop); - var fooListeners = ee.listeners('foo'); - var barListeners = ee.listeners('bar'); - var bazListeners = ee.listeners('baz'); - ee.on('removeListener', expect(['bar', 'baz', 'baz'])); - ee.removeAllListeners('bar'); - ee.removeAllListeners('baz'); - - var listeners = ee.listeners('foo'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 1); - assert.strictEqual(listeners[0], noop); - - listeners = ee.listeners('bar'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 0); - listeners = ee.listeners('baz'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 0); - // After calling removeAllListeners(), - // the old listeners array should stay unchanged. - assert.strictEqual(fooListeners.length, 1); - assert.strictEqual(fooListeners[0], noop); - assert.strictEqual(barListeners.length, 1); - assert.strictEqual(barListeners[0], noop); - assert.strictEqual(bazListeners.length, 2); - assert.strictEqual(bazListeners[0], noop); - assert.strictEqual(bazListeners[1], noop); - // After calling removeAllListeners(), - // new listeners arrays is different from the old. - assert.notStrictEqual(ee.listeners('bar'), barListeners); - assert.notStrictEqual(ee.listeners('baz'), bazListeners); -} - -{ - var ee = new events.EventEmitter(); - ee.on('foo', common.mustNotCall()); - ee.on('bar', common.mustNotCall()); - // Expect LIFO order - ee.on('removeListener', expect(['foo', 'bar', 'removeListener'])); - ee.on('removeListener', expect(['foo', 'bar'])); - ee.removeAllListeners(); - - var listeners = ee.listeners('foo'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 0); - listeners = ee.listeners('bar'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 0); -} - -{ - var ee = new events.EventEmitter(); - ee.on('removeListener', common.mustNotCall()); - // Check for regression where removeAllListeners() throws when - // there exists a 'removeListener' listener, but there exists - // no listeners for the provided event type. - assert.doesNotThrow(function () { ee.removeAllListeners(ee, 'foo') }); -} - -{ - var ee = new events.EventEmitter(); - var expectLength = 2; - ee.on('removeListener', function() { - assert.strictEqual(expectLength--, this.listeners('baz').length); - }); - ee.on('baz', common.mustNotCall()); - ee.on('baz', common.mustNotCall()); - ee.on('baz', common.mustNotCall()); - assert.strictEqual(ee.listeners('baz').length, expectLength + 1); - ee.removeAllListeners('baz'); - assert.strictEqual(ee.listeners('baz').length, 0); -} - -{ - var ee = new events.EventEmitter(); - assert.strictEqual(ee, ee.removeAllListeners()); -} - -{ - var ee = new events.EventEmitter(); - ee._events = undefined; - assert.strictEqual(ee, ee.removeAllListeners()); -} diff --git a/build_vtk_bundle/node_modules/events/tests/remove-listeners.js b/build_vtk_bundle/node_modules/events/tests/remove-listeners.js deleted file mode 100644 index 18e4d165..00000000 --- a/build_vtk_bundle/node_modules/events/tests/remove-listeners.js +++ /dev/null @@ -1,212 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -var common = require('./common'); -var assert = require('assert'); -var EventEmitter = require('../'); - -var listener1 = function listener1() {}; -var listener2 = function listener2() {}; - -{ - var ee = new EventEmitter(); - ee.on('hello', listener1); - ee.on('removeListener', common.mustCall(function(name, cb) { - assert.strictEqual(name, 'hello'); - assert.strictEqual(cb, listener1); - })); - ee.removeListener('hello', listener1); - var listeners = ee.listeners('hello'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 0); -} - -{ - var ee = new EventEmitter(); - ee.on('hello', listener1); - ee.on('removeListener', common.mustNotCall()); - ee.removeListener('hello', listener2); - - var listeners = ee.listeners('hello'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 1); - assert.strictEqual(listeners[0], listener1); -} - -{ - var ee = new EventEmitter(); - ee.on('hello', listener1); - ee.on('hello', listener2); - - var listeners; - ee.once('removeListener', common.mustCall(function(name, cb) { - assert.strictEqual(name, 'hello'); - assert.strictEqual(cb, listener1); - listeners = ee.listeners('hello'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 1); - assert.strictEqual(listeners[0], listener2); - })); - ee.removeListener('hello', listener1); - listeners = ee.listeners('hello'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 1); - assert.strictEqual(listeners[0], listener2); - ee.once('removeListener', common.mustCall(function(name, cb) { - assert.strictEqual(name, 'hello'); - assert.strictEqual(cb, listener2); - listeners = ee.listeners('hello'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 0); - })); - ee.removeListener('hello', listener2); - listeners = ee.listeners('hello'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 0); -} - -{ - var ee = new EventEmitter(); - - function remove1() { - assert.fail('remove1 should not have been called'); - } - - function remove2() { - assert.fail('remove2 should not have been called'); - } - - ee.on('removeListener', common.mustCall(function(name, cb) { - if (cb !== remove1) return; - this.removeListener('quux', remove2); - this.emit('quux'); - }, 2)); - ee.on('quux', remove1); - ee.on('quux', remove2); - ee.removeListener('quux', remove1); -} - -{ - var ee = new EventEmitter(); - ee.on('hello', listener1); - ee.on('hello', listener2); - - var listeners; - ee.once('removeListener', common.mustCall(function(name, cb) { - assert.strictEqual(name, 'hello'); - assert.strictEqual(cb, listener1); - listeners = ee.listeners('hello'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 1); - assert.strictEqual(listeners[0], listener2); - ee.once('removeListener', common.mustCall(function(name, cb) { - assert.strictEqual(name, 'hello'); - assert.strictEqual(cb, listener2); - listeners = ee.listeners('hello'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 0); - })); - ee.removeListener('hello', listener2); - listeners = ee.listeners('hello'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 0); - })); - ee.removeListener('hello', listener1); - listeners = ee.listeners('hello'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 0); -} - -{ - var ee = new EventEmitter(); - var listener3 = common.mustCall(function() { - ee.removeListener('hello', listener4); - }, 2); - var listener4 = common.mustCall(); - - ee.on('hello', listener3); - ee.on('hello', listener4); - - // listener4 will still be called although it is removed by listener 3. - ee.emit('hello'); - // This is so because the interal listener array at time of emit - // was [listener3,listener4] - - // Interal listener array [listener3] - ee.emit('hello'); -} - -{ - var ee = new EventEmitter(); - - ee.once('hello', listener1); - ee.on('removeListener', common.mustCall(function(eventName, listener) { - assert.strictEqual(eventName, 'hello'); - assert.strictEqual(listener, listener1); - })); - ee.emit('hello'); -} - -{ - var ee = new EventEmitter(); - - assert.strictEqual(ee, ee.removeListener('foo', function() {})); -} - -// Verify that the removed listener must be a function -assert.throws(function() { - var ee = new EventEmitter(); - - ee.removeListener('foo', null); -}, /^TypeError: The "listener" argument must be of type Function\. Received type object$/); - -{ - var ee = new EventEmitter(); - var listener = function() {}; - ee._events = undefined; - var e = ee.removeListener('foo', listener); - assert.strictEqual(e, ee); -} - -{ - var ee = new EventEmitter(); - - ee.on('foo', listener1); - ee.on('foo', listener2); - var listeners = ee.listeners('foo'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 2); - assert.strictEqual(listeners[0], listener1); - assert.strictEqual(listeners[1], listener2); - - ee.removeListener('foo', listener1); - assert.strictEqual(ee._events.foo, listener2); - - ee.on('foo', listener1); - listeners = ee.listeners('foo'); - assert.ok(Array.isArray(listeners)); - assert.strictEqual(listeners.length, 2); - assert.strictEqual(listeners[0], listener2); - assert.strictEqual(listeners[1], listener1); - - ee.removeListener('foo', listener1); - assert.strictEqual(ee._events.foo, listener2); -} diff --git a/build_vtk_bundle/node_modules/events/tests/set-max-listeners-side-effects.js b/build_vtk_bundle/node_modules/events/tests/set-max-listeners-side-effects.js deleted file mode 100644 index 13dbb671..00000000 --- a/build_vtk_bundle/node_modules/events/tests/set-max-listeners-side-effects.js +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -require('./common'); -var assert = require('assert'); -var events = require('../'); - -var e = new events.EventEmitter(); - -if (Object.create) assert.ok(!(e._events instanceof Object)); -assert.strictEqual(Object.keys(e._events).length, 0); -e.setMaxListeners(5); -assert.strictEqual(Object.keys(e._events).length, 0); diff --git a/build_vtk_bundle/node_modules/events/tests/special-event-names.js b/build_vtk_bundle/node_modules/events/tests/special-event-names.js deleted file mode 100644 index a2f0b744..00000000 --- a/build_vtk_bundle/node_modules/events/tests/special-event-names.js +++ /dev/null @@ -1,45 +0,0 @@ -'use strict'; - -var common = require('./common'); -var EventEmitter = require('../'); -var assert = require('assert'); - -var ee = new EventEmitter(); -var handler = function() {}; - -assert.strictEqual(ee.eventNames().length, 0); - -assert.strictEqual(ee._events.hasOwnProperty, undefined); -assert.strictEqual(ee._events.toString, undefined); - -ee.on('__defineGetter__', handler); -ee.on('toString', handler); -ee.on('__proto__', handler); - -assert.strictEqual(ee.eventNames()[0], '__defineGetter__'); -assert.strictEqual(ee.eventNames()[1], 'toString'); - -assert.strictEqual(ee.listeners('__defineGetter__').length, 1); -assert.strictEqual(ee.listeners('__defineGetter__')[0], handler); -assert.strictEqual(ee.listeners('toString').length, 1); -assert.strictEqual(ee.listeners('toString')[0], handler); - -// Only run __proto__ tests if that property can actually be set -if ({ __proto__: 'ok' }.__proto__ === 'ok') { - assert.strictEqual(ee.eventNames().length, 3); - assert.strictEqual(ee.eventNames()[2], '__proto__'); - assert.strictEqual(ee.listeners('__proto__').length, 1); - assert.strictEqual(ee.listeners('__proto__')[0], handler); - - ee.on('__proto__', common.mustCall(function(val) { - assert.strictEqual(val, 1); - })); - ee.emit('__proto__', 1); - - process.on('__proto__', common.mustCall(function(val) { - assert.strictEqual(val, 1); - })); - process.emit('__proto__', 1); -} else { - console.log('# skipped __proto__') -} diff --git a/build_vtk_bundle/node_modules/events/tests/subclass.js b/build_vtk_bundle/node_modules/events/tests/subclass.js deleted file mode 100644 index bd033fff..00000000 --- a/build_vtk_bundle/node_modules/events/tests/subclass.js +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -var common = require('./common'); -var test = require('tape'); -var assert = require('assert'); -var EventEmitter = require('../').EventEmitter; -var util = require('util'); - -util.inherits(MyEE, EventEmitter); - -function MyEE(cb) { - this.once(1, cb); - this.emit(1); - this.removeAllListeners(); - EventEmitter.call(this); -} - -var myee = new MyEE(common.mustCall()); - - -util.inherits(ErrorEE, EventEmitter); -function ErrorEE() { - this.emit('error', new Error('blerg')); -} - -assert.throws(function() { - new ErrorEE(); -}, /blerg/); - -test.onFinish(function() { - assert.ok(!(myee._events instanceof Object)); - assert.strictEqual(Object.keys(myee._events).length, 0); -}); - - -function MyEE2() { - EventEmitter.call(this); -} - -MyEE2.prototype = new EventEmitter(); - -var ee1 = new MyEE2(); -var ee2 = new MyEE2(); - -ee1.on('x', function() {}); - -assert.strictEqual(ee2.listenerCount('x'), 0); diff --git a/build_vtk_bundle/node_modules/events/tests/symbols.js b/build_vtk_bundle/node_modules/events/tests/symbols.js deleted file mode 100644 index 0721f0ec..00000000 --- a/build_vtk_bundle/node_modules/events/tests/symbols.js +++ /dev/null @@ -1,25 +0,0 @@ -'use strict'; - -var common = require('./common'); -var EventEmitter = require('../'); -var assert = require('assert'); - -var ee = new EventEmitter(); -var foo = Symbol('foo'); -var listener = common.mustCall(); - -ee.on(foo, listener); -assert.strictEqual(ee.listeners(foo).length, 1); -assert.strictEqual(ee.listeners(foo)[0], listener); - -ee.emit(foo); - -ee.removeAllListeners(); -assert.strictEqual(ee.listeners(foo).length, 0); - -ee.on(foo, listener); -assert.strictEqual(ee.listeners(foo).length, 1); -assert.strictEqual(ee.listeners(foo)[0], listener); - -ee.removeListener(foo, listener); -assert.strictEqual(ee.listeners(foo).length, 0); diff --git a/build_vtk_bundle/node_modules/fast-deep-equal/LICENSE b/build_vtk_bundle/node_modules/fast-deep-equal/LICENSE deleted file mode 100644 index 7f154356..00000000 --- a/build_vtk_bundle/node_modules/fast-deep-equal/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Evgeny Poberezkin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/fast-deep-equal/README.md b/build_vtk_bundle/node_modules/fast-deep-equal/README.md deleted file mode 100644 index d3f4ffcc..00000000 --- a/build_vtk_bundle/node_modules/fast-deep-equal/README.md +++ /dev/null @@ -1,96 +0,0 @@ -# fast-deep-equal -The fastest deep equal with ES6 Map, Set and Typed arrays support. - -[![Build Status](https://travis-ci.org/epoberezkin/fast-deep-equal.svg?branch=master)](https://travis-ci.org/epoberezkin/fast-deep-equal) -[![npm](https://img.shields.io/npm/v/fast-deep-equal.svg)](https://www.npmjs.com/package/fast-deep-equal) -[![Coverage Status](https://coveralls.io/repos/github/epoberezkin/fast-deep-equal/badge.svg?branch=master)](https://coveralls.io/github/epoberezkin/fast-deep-equal?branch=master) - - -## Install - -```bash -npm install fast-deep-equal -``` - - -## Features - -- ES5 compatible -- works in node.js (8+) and browsers (IE9+) -- checks equality of Date and RegExp objects by value. - -ES6 equal (`require('fast-deep-equal/es6')`) also supports: -- Maps -- Sets -- Typed arrays - - -## Usage - -```javascript -var equal = require('fast-deep-equal'); -console.log(equal({foo: 'bar'}, {foo: 'bar'})); // true -``` - -To support ES6 Maps, Sets and Typed arrays equality use: - -```javascript -var equal = require('fast-deep-equal/es6'); -console.log(equal(Int16Array([1, 2]), Int16Array([1, 2]))); // true -``` - -To use with React (avoiding the traversal of React elements' _owner -property that contains circular references and is not needed when -comparing the elements - borrowed from [react-fast-compare](https://github.com/FormidableLabs/react-fast-compare)): - -```javascript -var equal = require('fast-deep-equal/react'); -var equal = require('fast-deep-equal/es6/react'); -``` - - -## Performance benchmark - -Node.js v12.6.0: - -``` -fast-deep-equal x 261,950 ops/sec ±0.52% (89 runs sampled) -fast-deep-equal/es6 x 212,991 ops/sec ±0.34% (92 runs sampled) -fast-equals x 230,957 ops/sec ±0.83% (85 runs sampled) -nano-equal x 187,995 ops/sec ±0.53% (88 runs sampled) -shallow-equal-fuzzy x 138,302 ops/sec ±0.49% (90 runs sampled) -underscore.isEqual x 74,423 ops/sec ±0.38% (89 runs sampled) -lodash.isEqual x 36,637 ops/sec ±0.72% (90 runs sampled) -deep-equal x 2,310 ops/sec ±0.37% (90 runs sampled) -deep-eql x 35,312 ops/sec ±0.67% (91 runs sampled) -ramda.equals x 12,054 ops/sec ±0.40% (91 runs sampled) -util.isDeepStrictEqual x 46,440 ops/sec ±0.43% (90 runs sampled) -assert.deepStrictEqual x 456 ops/sec ±0.71% (88 runs sampled) - -The fastest is fast-deep-equal -``` - -To run benchmark (requires node.js 6+): - -```bash -npm run benchmark -``` - -__Please note__: this benchmark runs against the available test cases. To choose the most performant library for your application, it is recommended to benchmark against your data and to NOT expect this benchmark to reflect the performance difference in your application. - - -## Enterprise support - -fast-deep-equal package is a part of [Tidelift enterprise subscription](https://tidelift.com/subscription/pkg/npm-fast-deep-equal?utm_source=npm-fast-deep-equal&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - it provides a centralised commercial support to open-source software users, in addition to the support provided by software maintainers. - - -## Security contact - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerability via GitHub issues. - - -## License - -[MIT](https://github.com/epoberezkin/fast-deep-equal/blob/master/LICENSE) diff --git a/build_vtk_bundle/node_modules/fast-deep-equal/es6/index.d.ts b/build_vtk_bundle/node_modules/fast-deep-equal/es6/index.d.ts deleted file mode 100644 index c7eb9c79..00000000 --- a/build_vtk_bundle/node_modules/fast-deep-equal/es6/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const equal: (a: any, b: any) => boolean; -export = equal; diff --git a/build_vtk_bundle/node_modules/fast-deep-equal/es6/index.js b/build_vtk_bundle/node_modules/fast-deep-equal/es6/index.js deleted file mode 100644 index d980be25..00000000 --- a/build_vtk_bundle/node_modules/fast-deep-equal/es6/index.js +++ /dev/null @@ -1,72 +0,0 @@ -'use strict'; - -// do not edit .js files directly - edit src/index.jst - - - var envHasBigInt64Array = typeof BigInt64Array !== 'undefined'; - - -module.exports = function equal(a, b) { - if (a === b) return true; - - if (a && b && typeof a == 'object' && typeof b == 'object') { - if (a.constructor !== b.constructor) return false; - - var length, i, keys; - if (Array.isArray(a)) { - length = a.length; - if (length != b.length) return false; - for (i = length; i-- !== 0;) - if (!equal(a[i], b[i])) return false; - return true; - } - - - if ((a instanceof Map) && (b instanceof Map)) { - if (a.size !== b.size) return false; - for (i of a.entries()) - if (!b.has(i[0])) return false; - for (i of a.entries()) - if (!equal(i[1], b.get(i[0]))) return false; - return true; - } - - if ((a instanceof Set) && (b instanceof Set)) { - if (a.size !== b.size) return false; - for (i of a.entries()) - if (!b.has(i[0])) return false; - return true; - } - - if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) { - length = a.length; - if (length != b.length) return false; - for (i = length; i-- !== 0;) - if (a[i] !== b[i]) return false; - return true; - } - - - if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags; - if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf(); - if (a.toString !== Object.prototype.toString) return a.toString() === b.toString(); - - keys = Object.keys(a); - length = keys.length; - if (length !== Object.keys(b).length) return false; - - for (i = length; i-- !== 0;) - if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false; - - for (i = length; i-- !== 0;) { - var key = keys[i]; - - if (!equal(a[key], b[key])) return false; - } - - return true; - } - - // true if both NaN, false otherwise - return a!==a && b!==b; -}; diff --git a/build_vtk_bundle/node_modules/fast-deep-equal/es6/react.d.ts b/build_vtk_bundle/node_modules/fast-deep-equal/es6/react.d.ts deleted file mode 100644 index c7eb9c79..00000000 --- a/build_vtk_bundle/node_modules/fast-deep-equal/es6/react.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const equal: (a: any, b: any) => boolean; -export = equal; diff --git a/build_vtk_bundle/node_modules/fast-deep-equal/es6/react.js b/build_vtk_bundle/node_modules/fast-deep-equal/es6/react.js deleted file mode 100644 index 98e2f9b7..00000000 --- a/build_vtk_bundle/node_modules/fast-deep-equal/es6/react.js +++ /dev/null @@ -1,79 +0,0 @@ -'use strict'; - -// do not edit .js files directly - edit src/index.jst - - - var envHasBigInt64Array = typeof BigInt64Array !== 'undefined'; - - -module.exports = function equal(a, b) { - if (a === b) return true; - - if (a && b && typeof a == 'object' && typeof b == 'object') { - if (a.constructor !== b.constructor) return false; - - var length, i, keys; - if (Array.isArray(a)) { - length = a.length; - if (length != b.length) return false; - for (i = length; i-- !== 0;) - if (!equal(a[i], b[i])) return false; - return true; - } - - - if ((a instanceof Map) && (b instanceof Map)) { - if (a.size !== b.size) return false; - for (i of a.entries()) - if (!b.has(i[0])) return false; - for (i of a.entries()) - if (!equal(i[1], b.get(i[0]))) return false; - return true; - } - - if ((a instanceof Set) && (b instanceof Set)) { - if (a.size !== b.size) return false; - for (i of a.entries()) - if (!b.has(i[0])) return false; - return true; - } - - if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) { - length = a.length; - if (length != b.length) return false; - for (i = length; i-- !== 0;) - if (a[i] !== b[i]) return false; - return true; - } - - - if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags; - if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf(); - if (a.toString !== Object.prototype.toString) return a.toString() === b.toString(); - - keys = Object.keys(a); - length = keys.length; - if (length !== Object.keys(b).length) return false; - - for (i = length; i-- !== 0;) - if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false; - - for (i = length; i-- !== 0;) { - var key = keys[i]; - - if (key === '_owner' && a.$$typeof) { - // React-specific: avoid traversing React elements' _owner. - // _owner contains circular references - // and is not needed when comparing the actual elements (and not their owners) - continue; - } - - if (!equal(a[key], b[key])) return false; - } - - return true; - } - - // true if both NaN, false otherwise - return a!==a && b!==b; -}; diff --git a/build_vtk_bundle/node_modules/fast-deep-equal/index.d.ts b/build_vtk_bundle/node_modules/fast-deep-equal/index.d.ts deleted file mode 100644 index 3c042caa..00000000 --- a/build_vtk_bundle/node_modules/fast-deep-equal/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -declare module 'fast-deep-equal' { - const equal: (a: any, b: any) => boolean; - export = equal; -} diff --git a/build_vtk_bundle/node_modules/fast-deep-equal/index.js b/build_vtk_bundle/node_modules/fast-deep-equal/index.js deleted file mode 100644 index 30dd1ba7..00000000 --- a/build_vtk_bundle/node_modules/fast-deep-equal/index.js +++ /dev/null @@ -1,46 +0,0 @@ -'use strict'; - -// do not edit .js files directly - edit src/index.jst - - - -module.exports = function equal(a, b) { - if (a === b) return true; - - if (a && b && typeof a == 'object' && typeof b == 'object') { - if (a.constructor !== b.constructor) return false; - - var length, i, keys; - if (Array.isArray(a)) { - length = a.length; - if (length != b.length) return false; - for (i = length; i-- !== 0;) - if (!equal(a[i], b[i])) return false; - return true; - } - - - - if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags; - if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf(); - if (a.toString !== Object.prototype.toString) return a.toString() === b.toString(); - - keys = Object.keys(a); - length = keys.length; - if (length !== Object.keys(b).length) return false; - - for (i = length; i-- !== 0;) - if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false; - - for (i = length; i-- !== 0;) { - var key = keys[i]; - - if (!equal(a[key], b[key])) return false; - } - - return true; - } - - // true if both NaN, false otherwise - return a!==a && b!==b; -}; diff --git a/build_vtk_bundle/node_modules/fast-deep-equal/package.json b/build_vtk_bundle/node_modules/fast-deep-equal/package.json deleted file mode 100644 index 3cfe66c6..00000000 --- a/build_vtk_bundle/node_modules/fast-deep-equal/package.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "name": "fast-deep-equal", - "version": "3.1.3", - "description": "Fast deep equal", - "main": "index.js", - "scripts": { - "eslint": "eslint *.js benchmark/*.js spec/*.js", - "build": "node build", - "benchmark": "npm i && npm run build && cd ./benchmark && npm i && node ./", - "test-spec": "mocha spec/*.spec.js -R spec", - "test-cov": "nyc npm run test-spec", - "test-ts": "tsc --target ES5 --noImplicitAny index.d.ts", - "test": "npm run build && npm run eslint && npm run test-ts && npm run test-cov", - "prepublish": "npm run build" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/epoberezkin/fast-deep-equal.git" - }, - "keywords": [ - "fast", - "equal", - "deep-equal" - ], - "author": "Evgeny Poberezkin", - "license": "MIT", - "bugs": { - "url": "https://github.com/epoberezkin/fast-deep-equal/issues" - }, - "homepage": "https://github.com/epoberezkin/fast-deep-equal#readme", - "devDependencies": { - "coveralls": "^3.1.0", - "dot": "^1.1.2", - "eslint": "^7.2.0", - "mocha": "^7.2.0", - "nyc": "^15.1.0", - "pre-commit": "^1.2.2", - "react": "^16.12.0", - "react-test-renderer": "^16.12.0", - "sinon": "^9.0.2", - "typescript": "^3.9.5" - }, - "nyc": { - "exclude": [ - "**/spec/**", - "node_modules" - ], - "reporter": [ - "lcov", - "text-summary" - ] - }, - "files": [ - "index.js", - "index.d.ts", - "react.js", - "react.d.ts", - "es6/" - ], - "types": "index.d.ts" -} diff --git a/build_vtk_bundle/node_modules/fast-deep-equal/react.d.ts b/build_vtk_bundle/node_modules/fast-deep-equal/react.d.ts deleted file mode 100644 index c7eb9c79..00000000 --- a/build_vtk_bundle/node_modules/fast-deep-equal/react.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const equal: (a: any, b: any) => boolean; -export = equal; diff --git a/build_vtk_bundle/node_modules/fast-deep-equal/react.js b/build_vtk_bundle/node_modules/fast-deep-equal/react.js deleted file mode 100644 index 3489b983..00000000 --- a/build_vtk_bundle/node_modules/fast-deep-equal/react.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; - -// do not edit .js files directly - edit src/index.jst - - - -module.exports = function equal(a, b) { - if (a === b) return true; - - if (a && b && typeof a == 'object' && typeof b == 'object') { - if (a.constructor !== b.constructor) return false; - - var length, i, keys; - if (Array.isArray(a)) { - length = a.length; - if (length != b.length) return false; - for (i = length; i-- !== 0;) - if (!equal(a[i], b[i])) return false; - return true; - } - - - - if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags; - if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf(); - if (a.toString !== Object.prototype.toString) return a.toString() === b.toString(); - - keys = Object.keys(a); - length = keys.length; - if (length !== Object.keys(b).length) return false; - - for (i = length; i-- !== 0;) - if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false; - - for (i = length; i-- !== 0;) { - var key = keys[i]; - - if (key === '_owner' && a.$$typeof) { - // React-specific: avoid traversing React elements' _owner. - // _owner contains circular references - // and is not needed when comparing the actual elements (and not their owners) - continue; - } - - if (!equal(a[key], b[key])) return false; - } - - return true; - } - - // true if both NaN, false otherwise - return a!==a && b!==b; -}; diff --git a/build_vtk_bundle/node_modules/fast-json-stable-stringify/.eslintrc.yml b/build_vtk_bundle/node_modules/fast-json-stable-stringify/.eslintrc.yml deleted file mode 100644 index 1c77b0d4..00000000 --- a/build_vtk_bundle/node_modules/fast-json-stable-stringify/.eslintrc.yml +++ /dev/null @@ -1,26 +0,0 @@ -extends: eslint:recommended -env: - node: true - browser: true -rules: - block-scoped-var: 2 - callback-return: 2 - dot-notation: 2 - indent: 2 - linebreak-style: [2, unix] - new-cap: 2 - no-console: [2, allow: [warn, error]] - no-else-return: 2 - no-eq-null: 2 - no-fallthrough: 2 - no-invalid-this: 2 - no-return-assign: 2 - no-shadow: 1 - no-trailing-spaces: 2 - no-use-before-define: [2, nofunc] - quotes: [2, single, avoid-escape] - semi: [2, always] - strict: [2, global] - valid-jsdoc: [2, requireReturn: false] - no-control-regex: 0 - no-useless-escape: 2 diff --git a/build_vtk_bundle/node_modules/fast-json-stable-stringify/.github/FUNDING.yml b/build_vtk_bundle/node_modules/fast-json-stable-stringify/.github/FUNDING.yml deleted file mode 100644 index 61f9daa9..00000000 --- a/build_vtk_bundle/node_modules/fast-json-stable-stringify/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -tidelift: "npm/fast-json-stable-stringify" diff --git a/build_vtk_bundle/node_modules/fast-json-stable-stringify/.travis.yml b/build_vtk_bundle/node_modules/fast-json-stable-stringify/.travis.yml deleted file mode 100644 index b61e8f0d..00000000 --- a/build_vtk_bundle/node_modules/fast-json-stable-stringify/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js -node_js: - - "8" - - "10" - - "12" - - "13" -after_script: - - coveralls < coverage/lcov.info diff --git a/build_vtk_bundle/node_modules/fast-json-stable-stringify/LICENSE b/build_vtk_bundle/node_modules/fast-json-stable-stringify/LICENSE deleted file mode 100644 index c932223b..00000000 --- a/build_vtk_bundle/node_modules/fast-json-stable-stringify/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -This software is released under the MIT license: - -Copyright (c) 2017 Evgeny Poberezkin -Copyright (c) 2013 James Halliday - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/fast-json-stable-stringify/README.md b/build_vtk_bundle/node_modules/fast-json-stable-stringify/README.md deleted file mode 100644 index 02cf49ff..00000000 --- a/build_vtk_bundle/node_modules/fast-json-stable-stringify/README.md +++ /dev/null @@ -1,131 +0,0 @@ -# fast-json-stable-stringify - -Deterministic `JSON.stringify()` - a faster version of [@substack](https://github.com/substack)'s json-stable-strigify without [jsonify](https://github.com/substack/jsonify). - -You can also pass in a custom comparison function. - -[![Build Status](https://travis-ci.org/epoberezkin/fast-json-stable-stringify.svg?branch=master)](https://travis-ci.org/epoberezkin/fast-json-stable-stringify) -[![Coverage Status](https://coveralls.io/repos/github/epoberezkin/fast-json-stable-stringify/badge.svg?branch=master)](https://coveralls.io/github/epoberezkin/fast-json-stable-stringify?branch=master) - -# example - -``` js -var stringify = require('fast-json-stable-stringify'); -var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 }; -console.log(stringify(obj)); -``` - -output: - -``` -{"a":3,"b":[{"x":4,"y":5,"z":6},7],"c":8} -``` - - -# methods - -``` js -var stringify = require('fast-json-stable-stringify') -``` - -## var str = stringify(obj, opts) - -Return a deterministic stringified string `str` from the object `obj`. - - -## options - -### cmp - -If `opts` is given, you can supply an `opts.cmp` to have a custom comparison -function for object keys. Your function `opts.cmp` is called with these -parameters: - -``` js -opts.cmp({ key: akey, value: avalue }, { key: bkey, value: bvalue }) -``` - -For example, to sort on the object key names in reverse order you could write: - -``` js -var stringify = require('fast-json-stable-stringify'); - -var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 }; -var s = stringify(obj, function (a, b) { - return a.key < b.key ? 1 : -1; -}); -console.log(s); -``` - -which results in the output string: - -``` -{"c":8,"b":[{"z":6,"y":5,"x":4},7],"a":3} -``` - -Or if you wanted to sort on the object values in reverse order, you could write: - -``` -var stringify = require('fast-json-stable-stringify'); - -var obj = { d: 6, c: 5, b: [{z:3,y:2,x:1},9], a: 10 }; -var s = stringify(obj, function (a, b) { - return a.value < b.value ? 1 : -1; -}); -console.log(s); -``` - -which outputs: - -``` -{"d":6,"c":5,"b":[{"z":3,"y":2,"x":1},9],"a":10} -``` - -### cycles - -Pass `true` in `opts.cycles` to stringify circular property as `__cycle__` - the result will not be a valid JSON string in this case. - -TypeError will be thrown in case of circular object without this option. - - -# install - -With [npm](https://npmjs.org) do: - -``` -npm install fast-json-stable-stringify -``` - - -# benchmark - -To run benchmark (requires Node.js 6+): -``` -node benchmark -``` - -Results: -``` -fast-json-stable-stringify x 17,189 ops/sec ±1.43% (83 runs sampled) -json-stable-stringify x 13,634 ops/sec ±1.39% (85 runs sampled) -fast-stable-stringify x 20,212 ops/sec ±1.20% (84 runs sampled) -faster-stable-stringify x 15,549 ops/sec ±1.12% (84 runs sampled) -The fastest is fast-stable-stringify -``` - - -## Enterprise support - -fast-json-stable-stringify package is a part of [Tidelift enterprise subscription](https://tidelift.com/subscription/pkg/npm-fast-json-stable-stringify?utm_source=npm-fast-json-stable-stringify&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - it provides a centralised commercial support to open-source software users, in addition to the support provided by software maintainers. - - -## Security contact - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerability via GitHub issues. - - -# license - -[MIT](https://github.com/epoberezkin/fast-json-stable-stringify/blob/master/LICENSE) diff --git a/build_vtk_bundle/node_modules/fast-json-stable-stringify/benchmark/index.js b/build_vtk_bundle/node_modules/fast-json-stable-stringify/benchmark/index.js deleted file mode 100644 index e725f9fc..00000000 --- a/build_vtk_bundle/node_modules/fast-json-stable-stringify/benchmark/index.js +++ /dev/null @@ -1,31 +0,0 @@ -'use strict'; - -const Benchmark = require('benchmark'); -const suite = new Benchmark.Suite; -const testData = require('./test.json'); - - -const stringifyPackages = { - // 'JSON.stringify': JSON.stringify, - 'fast-json-stable-stringify': require('../index'), - 'json-stable-stringify': true, - 'fast-stable-stringify': true, - 'faster-stable-stringify': true -}; - - -for (const name in stringifyPackages) { - let func = stringifyPackages[name]; - if (func === true) func = require(name); - - suite.add(name, function() { - func(testData); - }); -} - -suite - .on('cycle', (event) => console.log(String(event.target))) - .on('complete', function () { - console.log('The fastest is ' + this.filter('fastest').map('name')); - }) - .run({async: true}); diff --git a/build_vtk_bundle/node_modules/fast-json-stable-stringify/benchmark/test.json b/build_vtk_bundle/node_modules/fast-json-stable-stringify/benchmark/test.json deleted file mode 100644 index c9118c11..00000000 --- a/build_vtk_bundle/node_modules/fast-json-stable-stringify/benchmark/test.json +++ /dev/null @@ -1,137 +0,0 @@ -[ - { - "_id": "59ef4a83ee8364808d761beb", - "index": 0, - "guid": "e50ffae9-7128-4148-9ee5-40c3fc523c5d", - "isActive": false, - "balance": "$2,341.81", - "picture": "http://placehold.it/32x32", - "age": 28, - "eyeColor": "brown", - "name": "Carey Savage", - "gender": "female", - "company": "VERAQ", - "email": "careysavage@veraq.com", - "phone": "+1 (897) 574-3014", - "address": "458 Willow Street, Henrietta, California, 7234", - "about": "Nisi reprehenderit nulla ad officia pariatur non dolore laboris irure cupidatat laborum. Minim eu ex Lorem adipisicing exercitation irure minim sunt est enim mollit incididunt voluptate nulla. Ut mollit anim reprehenderit et aliqua ex esse aliquip. Aute sit duis deserunt do incididunt consequat minim qui dolor commodo deserunt et voluptate.\r\n", - "registered": "2014-05-21T01:56:51 -01:00", - "latitude": 63.89502, - "longitude": 62.369807, - "tags": [ - "nostrud", - "nisi", - "consectetur", - "ullamco", - "cupidatat", - "culpa", - "commodo" - ], - "friends": [ - { - "id": 0, - "name": "Henry Walls" - }, - { - "id": 1, - "name": "Janice Baker" - }, - { - "id": 2, - "name": "Russell Bush" - } - ], - "greeting": "Hello, Carey Savage! You have 4 unread messages.", - "favoriteFruit": "banana" - }, - { - "_id": "59ef4a83ff5774a691454e89", - "index": 1, - "guid": "2bee9efc-4095-4c2e-87ef-d08c8054c89d", - "isActive": true, - "balance": "$1,618.15", - "picture": "http://placehold.it/32x32", - "age": 35, - "eyeColor": "blue", - "name": "Elinor Pearson", - "gender": "female", - "company": "FLEXIGEN", - "email": "elinorpearson@flexigen.com", - "phone": "+1 (923) 548-3751", - "address": "600 Bayview Avenue, Draper, Montana, 3088", - "about": "Mollit commodo ea sit Lorem velit. Irure anim esse Lorem sint quis officia ut. Aliqua nisi dolore in aute deserunt mollit ex ea in mollit.\r\n", - "registered": "2017-04-22T07:58:41 -01:00", - "latitude": -87.824919, - "longitude": 69.538927, - "tags": [ - "fugiat", - "labore", - "proident", - "quis", - "eiusmod", - "qui", - "est" - ], - "friends": [ - { - "id": 0, - "name": "Massey Wagner" - }, - { - "id": 1, - "name": "Marcella Ferrell" - }, - { - "id": 2, - "name": "Evans Mckee" - } - ], - "greeting": "Hello, Elinor Pearson! You have 3 unread messages.", - "favoriteFruit": "strawberry" - }, - { - "_id": "59ef4a839ec8a4be4430b36b", - "index": 2, - "guid": "ddd6e8c0-95bd-416d-8b46-a768d6363809", - "isActive": false, - "balance": "$2,046.95", - "picture": "http://placehold.it/32x32", - "age": 40, - "eyeColor": "green", - "name": "Irwin Davidson", - "gender": "male", - "company": "DANJA", - "email": "irwindavidson@danja.com", - "phone": "+1 (883) 537-2041", - "address": "439 Cook Street, Chapin, Kentucky, 7398", - "about": "Irure velit non commodo aliqua exercitation ut nostrud minim magna. Dolor ad ad ut irure eu. Non pariatur dolor eiusmod ipsum do et exercitation cillum. Et amet laboris minim eiusmod ullamco magna ea reprehenderit proident sunt.\r\n", - "registered": "2016-09-01T07:49:08 -01:00", - "latitude": -49.803812, - "longitude": 104.93279, - "tags": [ - "consequat", - "enim", - "quis", - "magna", - "est", - "culpa", - "tempor" - ], - "friends": [ - { - "id": 0, - "name": "Ruth Hansen" - }, - { - "id": 1, - "name": "Kathrine Austin" - }, - { - "id": 2, - "name": "Rivera Munoz" - } - ], - "greeting": "Hello, Irwin Davidson! You have 2 unread messages.", - "favoriteFruit": "banana" - } -] diff --git a/build_vtk_bundle/node_modules/fast-json-stable-stringify/example/key_cmp.js b/build_vtk_bundle/node_modules/fast-json-stable-stringify/example/key_cmp.js deleted file mode 100644 index d5f66752..00000000 --- a/build_vtk_bundle/node_modules/fast-json-stable-stringify/example/key_cmp.js +++ /dev/null @@ -1,7 +0,0 @@ -var stringify = require('../'); - -var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 }; -var s = stringify(obj, function (a, b) { - return a.key < b.key ? 1 : -1; -}); -console.log(s); diff --git a/build_vtk_bundle/node_modules/fast-json-stable-stringify/example/nested.js b/build_vtk_bundle/node_modules/fast-json-stable-stringify/example/nested.js deleted file mode 100644 index 9a672fc6..00000000 --- a/build_vtk_bundle/node_modules/fast-json-stable-stringify/example/nested.js +++ /dev/null @@ -1,3 +0,0 @@ -var stringify = require('../'); -var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 }; -console.log(stringify(obj)); diff --git a/build_vtk_bundle/node_modules/fast-json-stable-stringify/example/str.js b/build_vtk_bundle/node_modules/fast-json-stable-stringify/example/str.js deleted file mode 100644 index 9b4b3cd2..00000000 --- a/build_vtk_bundle/node_modules/fast-json-stable-stringify/example/str.js +++ /dev/null @@ -1,3 +0,0 @@ -var stringify = require('../'); -var obj = { c: 6, b: [4,5], a: 3 }; -console.log(stringify(obj)); diff --git a/build_vtk_bundle/node_modules/fast-json-stable-stringify/example/value_cmp.js b/build_vtk_bundle/node_modules/fast-json-stable-stringify/example/value_cmp.js deleted file mode 100644 index 09f1c5f7..00000000 --- a/build_vtk_bundle/node_modules/fast-json-stable-stringify/example/value_cmp.js +++ /dev/null @@ -1,7 +0,0 @@ -var stringify = require('../'); - -var obj = { d: 6, c: 5, b: [{z:3,y:2,x:1},9], a: 10 }; -var s = stringify(obj, function (a, b) { - return a.value < b.value ? 1 : -1; -}); -console.log(s); diff --git a/build_vtk_bundle/node_modules/fast-json-stable-stringify/index.d.ts b/build_vtk_bundle/node_modules/fast-json-stable-stringify/index.d.ts deleted file mode 100644 index 23e46caf..00000000 --- a/build_vtk_bundle/node_modules/fast-json-stable-stringify/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -declare module 'fast-json-stable-stringify' { - function stringify(obj: any): string; - export = stringify; -} diff --git a/build_vtk_bundle/node_modules/fast-json-stable-stringify/index.js b/build_vtk_bundle/node_modules/fast-json-stable-stringify/index.js deleted file mode 100644 index c44e6a41..00000000 --- a/build_vtk_bundle/node_modules/fast-json-stable-stringify/index.js +++ /dev/null @@ -1,59 +0,0 @@ -'use strict'; - -module.exports = function (data, opts) { - if (!opts) opts = {}; - if (typeof opts === 'function') opts = { cmp: opts }; - var cycles = (typeof opts.cycles === 'boolean') ? opts.cycles : false; - - var cmp = opts.cmp && (function (f) { - return function (node) { - return function (a, b) { - var aobj = { key: a, value: node[a] }; - var bobj = { key: b, value: node[b] }; - return f(aobj, bobj); - }; - }; - })(opts.cmp); - - var seen = []; - return (function stringify (node) { - if (node && node.toJSON && typeof node.toJSON === 'function') { - node = node.toJSON(); - } - - if (node === undefined) return; - if (typeof node == 'number') return isFinite(node) ? '' + node : 'null'; - if (typeof node !== 'object') return JSON.stringify(node); - - var i, out; - if (Array.isArray(node)) { - out = '['; - for (i = 0; i < node.length; i++) { - if (i) out += ','; - out += stringify(node[i]) || 'null'; - } - return out + ']'; - } - - if (node === null) return 'null'; - - if (seen.indexOf(node) !== -1) { - if (cycles) return JSON.stringify('__cycle__'); - throw new TypeError('Converting circular structure to JSON'); - } - - var seenIndex = seen.push(node) - 1; - var keys = Object.keys(node).sort(cmp && cmp(node)); - out = ''; - for (i = 0; i < keys.length; i++) { - var key = keys[i]; - var value = stringify(node[key]); - - if (!value) continue; - if (out) out += ','; - out += JSON.stringify(key) + ':' + value; - } - seen.splice(seenIndex, 1); - return '{' + out + '}'; - })(data); -}; diff --git a/build_vtk_bundle/node_modules/fast-json-stable-stringify/package.json b/build_vtk_bundle/node_modules/fast-json-stable-stringify/package.json deleted file mode 100644 index ad2c8bff..00000000 --- a/build_vtk_bundle/node_modules/fast-json-stable-stringify/package.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "fast-json-stable-stringify", - "version": "2.1.0", - "description": "deterministic `JSON.stringify()` - a faster version of substack's json-stable-strigify without jsonify", - "main": "index.js", - "types": "index.d.ts", - "dependencies": {}, - "devDependencies": { - "benchmark": "^2.1.4", - "coveralls": "^3.0.0", - "eslint": "^6.7.0", - "fast-stable-stringify": "latest", - "faster-stable-stringify": "latest", - "json-stable-stringify": "latest", - "nyc": "^14.1.0", - "pre-commit": "^1.2.2", - "tape": "^4.11.0" - }, - "scripts": { - "eslint": "eslint index.js test", - "test-spec": "tape test/*.js", - "test": "npm run eslint && nyc npm run test-spec" - }, - "repository": { - "type": "git", - "url": "git://github.com/epoberezkin/fast-json-stable-stringify.git" - }, - "homepage": "https://github.com/epoberezkin/fast-json-stable-stringify", - "keywords": [ - "json", - "stringify", - "deterministic", - "hash", - "stable" - ], - "author": { - "name": "James Halliday", - "email": "mail@substack.net", - "url": "http://substack.net" - }, - "license": "MIT", - "nyc": { - "exclude": [ - "test", - "node_modules" - ], - "reporter": [ - "lcov", - "text-summary" - ] - } -} diff --git a/build_vtk_bundle/node_modules/fast-json-stable-stringify/test/cmp.js b/build_vtk_bundle/node_modules/fast-json-stable-stringify/test/cmp.js deleted file mode 100644 index 4efd6b59..00000000 --- a/build_vtk_bundle/node_modules/fast-json-stable-stringify/test/cmp.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -var test = require('tape'); -var stringify = require('../'); - -test('custom comparison function', function (t) { - t.plan(1); - var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 }; - var s = stringify(obj, function (a, b) { - return a.key < b.key ? 1 : -1; - }); - t.equal(s, '{"c":8,"b":[{"z":6,"y":5,"x":4},7],"a":3}'); -}); diff --git a/build_vtk_bundle/node_modules/fast-json-stable-stringify/test/nested.js b/build_vtk_bundle/node_modules/fast-json-stable-stringify/test/nested.js deleted file mode 100644 index 167a358e..00000000 --- a/build_vtk_bundle/node_modules/fast-json-stable-stringify/test/nested.js +++ /dev/null @@ -1,44 +0,0 @@ -'use strict'; - -var test = require('tape'); -var stringify = require('../'); - -test('nested', function (t) { - t.plan(1); - var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 }; - t.equal(stringify(obj), '{"a":3,"b":[{"x":4,"y":5,"z":6},7],"c":8}'); -}); - -test('cyclic (default)', function (t) { - t.plan(1); - var one = { a: 1 }; - var two = { a: 2, one: one }; - one.two = two; - try { - stringify(one); - } catch (ex) { - t.equal(ex.toString(), 'TypeError: Converting circular structure to JSON'); - } -}); - -test('cyclic (specifically allowed)', function (t) { - t.plan(1); - var one = { a: 1 }; - var two = { a: 2, one: one }; - one.two = two; - t.equal(stringify(one, {cycles:true}), '{"a":1,"two":{"a":2,"one":"__cycle__"}}'); -}); - -test('repeated non-cyclic value', function(t) { - t.plan(1); - var one = { x: 1 }; - var two = { a: one, b: one }; - t.equal(stringify(two), '{"a":{"x":1},"b":{"x":1}}'); -}); - -test('acyclic but with reused obj-property pointers', function (t) { - t.plan(1); - var x = { a: 1 }; - var y = { b: x, c: x }; - t.equal(stringify(y), '{"b":{"a":1},"c":{"a":1}}'); -}); diff --git a/build_vtk_bundle/node_modules/fast-json-stable-stringify/test/str.js b/build_vtk_bundle/node_modules/fast-json-stable-stringify/test/str.js deleted file mode 100644 index 99a9ade1..00000000 --- a/build_vtk_bundle/node_modules/fast-json-stable-stringify/test/str.js +++ /dev/null @@ -1,46 +0,0 @@ -'use strict'; - -var test = require('tape'); -var stringify = require('../'); - -test('simple object', function (t) { - t.plan(1); - var obj = { c: 6, b: [4,5], a: 3, z: null }; - t.equal(stringify(obj), '{"a":3,"b":[4,5],"c":6,"z":null}'); -}); - -test('object with undefined', function (t) { - t.plan(1); - var obj = { a: 3, z: undefined }; - t.equal(stringify(obj), '{"a":3}'); -}); - -test('object with null', function (t) { - t.plan(1); - var obj = { a: 3, z: null }; - t.equal(stringify(obj), '{"a":3,"z":null}'); -}); - -test('object with NaN and Infinity', function (t) { - t.plan(1); - var obj = { a: 3, b: NaN, c: Infinity }; - t.equal(stringify(obj), '{"a":3,"b":null,"c":null}'); -}); - -test('array with undefined', function (t) { - t.plan(1); - var obj = [4, undefined, 6]; - t.equal(stringify(obj), '[4,null,6]'); -}); - -test('object with empty string', function (t) { - t.plan(1); - var obj = { a: 3, z: '' }; - t.equal(stringify(obj), '{"a":3,"z":""}'); -}); - -test('array with empty string', function (t) { - t.plan(1); - var obj = [4, '', 6]; - t.equal(stringify(obj), '[4,"",6]'); -}); diff --git a/build_vtk_bundle/node_modules/fast-json-stable-stringify/test/to-json.js b/build_vtk_bundle/node_modules/fast-json-stable-stringify/test/to-json.js deleted file mode 100644 index 2fb2cfa3..00000000 --- a/build_vtk_bundle/node_modules/fast-json-stable-stringify/test/to-json.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; - -var test = require('tape'); -var stringify = require('../'); - -test('toJSON function', function (t) { - t.plan(1); - var obj = { one: 1, two: 2, toJSON: function() { return { one: 1 }; } }; - t.equal(stringify(obj), '{"one":1}' ); -}); - -test('toJSON returns string', function (t) { - t.plan(1); - var obj = { one: 1, two: 2, toJSON: function() { return 'one'; } }; - t.equal(stringify(obj), '"one"'); -}); - -test('toJSON returns array', function (t) { - t.plan(1); - var obj = { one: 1, two: 2, toJSON: function() { return ['one']; } }; - t.equal(stringify(obj), '["one"]'); -}); diff --git a/build_vtk_bundle/node_modules/fast-uri/.gitattributes b/build_vtk_bundle/node_modules/fast-uri/.gitattributes deleted file mode 100644 index a0e7df93..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/.gitattributes +++ /dev/null @@ -1,2 +0,0 @@ -# Set default behavior to automatically convert line endings -* text=auto eol=lf diff --git a/build_vtk_bundle/node_modules/fast-uri/.github/.stale.yml b/build_vtk_bundle/node_modules/fast-uri/.github/.stale.yml deleted file mode 100644 index 2ee12691..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/.github/.stale.yml +++ /dev/null @@ -1,21 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 15 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 7 -# Issues with these labels will never be considered stale -exemptLabels: - - "discussion" - - "feature request" - - "bug" - - "help wanted" - - "plugin suggestion" - - "good first issue" -# Label to use when marking an issue as stale -staleLabel: stale -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions. -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: false \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/fast-uri/.github/dependabot.yml b/build_vtk_bundle/node_modules/fast-uri/.github/dependabot.yml deleted file mode 100644 index 35d66ca7..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/.github/dependabot.yml +++ /dev/null @@ -1,13 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "monthly" - open-pull-requests-limit: 10 - - - package-ecosystem: "npm" - directory: "/" - schedule: - interval: "monthly" - open-pull-requests-limit: 10 diff --git a/build_vtk_bundle/node_modules/fast-uri/.github/tests_checker.yml b/build_vtk_bundle/node_modules/fast-uri/.github/tests_checker.yml deleted file mode 100644 index 769469b2..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/.github/tests_checker.yml +++ /dev/null @@ -1,8 +0,0 @@ -comment: | - Hello! Thank you for contributing! - It appears that you have changed the code, but the tests that verify your change are missing. Could you please add them? -fileExtensions: - - '.ts' - - '.js' - -testDir: 'test' \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/fast-uri/.github/workflows/ci.yml b/build_vtk_bundle/node_modules/fast-uri/.github/workflows/ci.yml deleted file mode 100644 index 88717877..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/.github/workflows/ci.yml +++ /dev/null @@ -1,101 +0,0 @@ -name: CI - -on: - push: - branches: - - main - - next - - 'v*' - paths-ignore: - - 'docs/**' - - '*.md' - pull_request: - paths-ignore: - - 'docs/**' - - '*.md' - -permissions: - contents: read - -jobs: - test-regression-check-node10: - name: Test compatibility with Node.js 10 - runs-on: ubuntu-latest - permissions: - contents: read - steps: - - uses: actions/checkout@v4 - with: - persist-credentials: false - - - uses: actions/setup-node@v4 - with: - node-version: '10' - cache: 'npm' - cache-dependency-path: package.json - check-latest: true - - - name: Install - run: | - npm install --ignore-scripts - - - name: Copy project as fast-uri to node_node_modules - run: | - rm -rf ./node_modules/fast-uri/lib && - rm -rf ./node_modules/fast-uri/index.js && - cp -r ./lib ./node_modules/fast-uri/lib && - cp ./index.js ./node_modules/fast-uri/index.js - - - name: Run tests - run: | - npm run test:unit - env: - NODE_OPTIONS: no-network-family-autoselection - - test-browser: - name: Test browser compatibility - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: ['ubuntu-latest', 'windows-latest', 'macos-latest'] - browser: ['chromium', 'firefox', 'webkit'] - exclude: - - os: ubuntu-latest - browser: webkit - permissions: - contents: read - steps: - - uses: actions/checkout@v4 - with: - persist-credentials: false - - - uses: actions/setup-node@v4 - with: - node-version: '24' - cache: 'npm' - cache-dependency-path: package.json - check-latest: true - - - name: Install dependencies - run: | - npm install --ignore-scripts - - - if: ${{ matrix.os == 'windows-latest' }} - run: npx playwright install winldd - - - name: Run browser tests - run: | - npm run test:browser:${{ matrix.browser }} - - test: - needs: - - test-regression-check-node10 - permissions: - contents: write - pull-requests: write - uses: fastify/workflows/.github/workflows/plugins-ci.yml@v5 - with: - license-check: true - lint: true - node-versions: '["16", "18", "20", "22", "24"]' diff --git a/build_vtk_bundle/node_modules/fast-uri/.github/workflows/package-manager-ci.yml b/build_vtk_bundle/node_modules/fast-uri/.github/workflows/package-manager-ci.yml deleted file mode 100644 index c38d0600..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: package-manager-ci - -on: - push: - branches: - - main - - next - - 'v*' - paths-ignore: - - 'docs/**' - - '*.md' - pull_request: - paths-ignore: - - 'docs/**' - - '*.md' - -permissions: - contents: read - -jobs: - test: - permissions: - contents: read - uses: fastify/workflows/.github/workflows/plugins-ci-package-manager.yml@v5 diff --git a/build_vtk_bundle/node_modules/fast-uri/LICENSE b/build_vtk_bundle/node_modules/fast-uri/LICENSE deleted file mode 100644 index a8fe7895..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/LICENSE +++ /dev/null @@ -1,32 +0,0 @@ -Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae -Copyright (c) 2021-present The Fastify team -All rights reserved. - -The Fastify team members are listed at https://github.com/fastify/fastify#team. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * The names of any contributors may not be used to endorse or promote - products derived from this software without specific prior written - permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - * * * - -The complete list of contributors can be found at: -- https://github.com/garycourt/uri-js/graphs/contributors \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/fast-uri/README.md b/build_vtk_bundle/node_modules/fast-uri/README.md deleted file mode 100644 index 5c7c732f..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/README.md +++ /dev/null @@ -1,143 +0,0 @@ -# fast-uri - -
- -[![NPM version](https://img.shields.io/npm/v/fast-uri.svg?style=flat)](https://www.npmjs.com/package/fast-uri) -[![CI](https://github.com/fastify/fast-uri/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/fastify/fast-uri/actions/workflows/ci.yml) -[![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-brightgreen?style=flat)](https://github.com/neostandard/neostandard) - -
- -Dependency-free RFC 3986 URI toolbox. - -## Usage - -## Options - -All of the above functions can accept an additional options argument that is an object that can contain one or more of the following properties: - -* `scheme` (string) - Indicates the scheme that the URI should be treated as, overriding the URI's normal scheme parsing behavior. - -* `reference` (string) - If set to `"suffix"`, it indicates that the URI is in the suffix format and the parser will use the option's `scheme` property to determine the URI's scheme. - -* `tolerant` (boolean, false) - If set to `true`, the parser will relax URI resolving rules. - -* `absolutePath` (boolean, false) - If set to `true`, the serializer will not resolve a relative `path` component. - -* `unicodeSupport` (boolean, false) - If set to `true`, the parser will unescape non-ASCII characters in the parsed output as per [RFC 3987](http://www.ietf.org/rfc/rfc3987.txt). - -* `domainHost` (boolean, false) - If set to `true`, the library will treat the `host` component as a domain name, and convert IDNs (International Domain Names) as per [RFC 5891](http://www.ietf.org/rfc/rfc5891.txt). - -### Parse - -```js -const uri = require('fast-uri') -uri.parse('uri://user:pass@example.com:123/one/two.three?q1=a1&q2=a2#body') -// Output -{ - scheme: "uri", - userinfo: "user:pass", - host: "example.com", - port: 123, - path: "/one/two.three", - query: "q1=a1&q2=a2", - fragment: "body" -} -``` - -### Serialize - -```js -const uri = require('fast-uri') -uri.serialize({scheme: "http", host: "example.com", fragment: "footer"}) -// Output -"http://example.com/#footer" - -``` - -### Resolve - -```js -const uri = require('fast-uri') -uri.resolve("uri://a/b/c/d?q", "../../g") -// Output -"uri://a/g" -``` - -### Equal - -```js -const uri = require('fast-uri') -uri.equal("example://a/b/c/%7Bfoo%7D", "eXAMPLE://a/./b/../b/%63/%7bfoo%7d") -// Output -true -``` - -## Scheme supports - -fast-uri supports inserting custom [scheme](http://en.wikipedia.org/wiki/URI_scheme)-dependent processing rules. Currently, fast-uri has built-in support for the following schemes: - -* http \[[RFC 2616](http://www.ietf.org/rfc/rfc2616.txt)\] -* https \[[RFC 2818](http://www.ietf.org/rfc/rfc2818.txt)\] -* ws \[[RFC 6455](http://www.ietf.org/rfc/rfc6455.txt)\] -* wss \[[RFC 6455](http://www.ietf.org/rfc/rfc6455.txt)\] -* urn \[[RFC 2141](http://www.ietf.org/rfc/rfc2141.txt)\] -* urn:uuid \[[RFC 4122](http://www.ietf.org/rfc/rfc4122.txt)\] - - -## Benchmarks - -``` -fast-uri benchmark -┌─────────┬──────────────────────────────────────────┬──────────────────┬──────────────────┬────────────────────────┬────────────────────────┬─────────┐ -│ (index) │ Task name │ Latency avg (ns) │ Latency med (ns) │ Throughput avg (ops/s) │ Throughput med (ops/s) │ Samples │ -├─────────┼──────────────────────────────────────────┼──────────────────┼──────────────────┼────────────────────────┼────────────────────────┼─────────┤ -│ 0 │ 'fast-uri: parse domain' │ '951.31 ± 0.75%' │ '875.00 ± 11.00' │ '1122538 ± 0.01%' │ '1142857 ± 14550' │ 1051187 │ -│ 1 │ 'fast-uri: parse IPv4' │ '443.44 ± 0.22%' │ '406.00 ± 3.00' │ '2422762 ± 0.01%' │ '2463054 ± 18335' │ 2255105 │ -│ 2 │ 'fast-uri: parse IPv6' │ '1241.6 ± 1.74%' │ '1131.0 ± 30.00' │ '875177 ± 0.02%' │ '884173 ± 24092' │ 805399 │ -│ 3 │ 'fast-uri: parse URN' │ '689.19 ± 4.29%' │ '618.00 ± 9.00' │ '1598373 ± 0.01%' │ '1618123 ± 23913' │ 1450972 │ -│ 4 │ 'fast-uri: parse URN uuid' │ '1025.4 ± 2.02%' │ '921.00 ± 19.00' │ '1072419 ± 0.02%' │ '1085776 ± 22871' │ 975236 │ -│ 5 │ 'fast-uri: serialize uri' │ '1028.5 ± 0.53%' │ '933.00 ± 43.00' │ '1063310 ± 0.02%' │ '1071811 ± 50523' │ 972249 │ -│ 6 │ 'fast-uri: serialize long uri with dots' │ '1805.1 ± 0.52%' │ '1627.0 ± 17.00' │ '602620 ± 0.02%' │ '614628 ± 6490' │ 553997 │ -│ 7 │ 'fast-uri: serialize IPv6' │ '2569.4 ± 2.69%' │ '2302.0 ± 21.00' │ '426080 ± 0.03%' │ '434405 ± 3999' │ 389194 │ -│ 8 │ 'fast-uri: serialize ws' │ '979.39 ± 0.43%' │ '882.00 ± 8.00' │ '1111665 ± 0.02%' │ '1133787 ± 10378' │ 1021045 │ -│ 9 │ 'fast-uri: resolve' │ '2208.2 ± 1.08%' │ '1980.0 ± 24.00' │ '495001 ± 0.03%' │ '505051 ± 6049' │ 452848 │ -└─────────┴──────────────────────────────────────────┴──────────────────┴──────────────────┴────────────────────────┴────────────────────────┴─────────┘ -uri-js benchmark -┌─────────┬───────────────────────────────────────┬──────────────────┬──────────────────┬────────────────────────┬────────────────────────┬─────────┐ -│ (index) │ Task name │ Latency avg (ns) │ Latency med (ns) │ Throughput avg (ops/s) │ Throughput med (ops/s) │ Samples │ -├─────────┼───────────────────────────────────────┼──────────────────┼──────────────────┼────────────────────────┼────────────────────────┼─────────┤ -│ 0 │ 'urijs: parse domain' │ '3618.3 ± 0.43%' │ '3314.0 ± 33.00' │ '294875 ± 0.04%' │ '301750 ± 2975' │ 276375 │ -│ 1 │ 'urijs: parse IPv4' │ '4024.1 ± 0.41%' │ '3751.0 ± 25.00' │ '261981 ± 0.04%' │ '266596 ± 1789' │ 248506 │ -│ 2 │ 'urijs: parse IPv6' │ '5417.2 ± 0.46%' │ '4968.0 ± 43.00' │ '196023 ± 0.05%' │ '201288 ± 1727' │ 184598 │ -│ 3 │ 'urijs: parse URN' │ '1324.2 ± 0.23%' │ '1229.0 ± 17.00' │ '801535 ± 0.02%' │ '813670 ± 11413' │ 755185 │ -│ 4 │ 'urijs: parse URN uuid' │ '1822.0 ± 3.08%' │ '1655.0 ± 15.00' │ '594433 ± 0.02%' │ '604230 ± 5427' │ 548843 │ -│ 5 │ 'urijs: serialize uri' │ '4196.8 ± 0.36%' │ '3908.0 ± 27.00' │ '251146 ± 0.04%' │ '255885 ± 1756' │ 238276 │ -│ 6 │ 'urijs: serialize long uri with dots' │ '8331.0 ± 1.30%' │ '7658.0 ± 72.00' │ '126440 ± 0.07%' │ '130582 ± 1239' │ 120034 │ -│ 7 │ 'urijs: serialize IPv6' │ '5685.5 ± 0.30%' │ '5366.0 ± 33.00' │ '182632 ± 0.05%' │ '186359 ± 1153' │ 175886 │ -│ 8 │ 'urijs: serialize ws' │ '4159.3 ± 0.20%' │ '3899.0 ± 28.00' │ '250459 ± 0.04%' │ '256476 ± 1855' │ 240423 │ -│ 9 │ 'urijs: resolve' │ '6729.9 ± 0.39%' │ '6261.0 ± 37.00' │ '156361 ± 0.06%' │ '159719 ± 949' │ 148591 │ -└─────────┴───────────────────────────────────────┴──────────────────┴──────────────────┴────────────────────────┴────────────────────────┴─────────┘ -WHATWG URL benchmark -┌─────────┬────────────────────────────┬──────────────────┬──────────────────┬────────────────────────┬────────────────────────┬─────────┐ -│ (index) │ Task name │ Latency avg (ns) │ Latency med (ns) │ Throughput avg (ops/s) │ Throughput med (ops/s) │ Samples │ -├─────────┼────────────────────────────┼──────────────────┼──────────────────┼────────────────────────┼────────────────────────┼─────────┤ -│ 0 │ 'WHATWG URL: parse domain' │ '475.22 ± 0.20%' │ '444.00 ± 5.00' │ '2217599 ± 0.01%' │ '2252252 ± 25652' │ 2104289 │ -│ 1 │ 'WHATWG URL: parse URN' │ '384.78 ± 0.85%' │ '350.00 ± 5.00' │ '2809071 ± 0.01%' │ '2857143 ± 41408' │ 2598885 │ -└─────────┴────────────────────────────┴──────────────────┴──────────────────┴────────────────────────┴────────────────────────┴─────────┘ -``` - -## TODO - -- [ ] Support MailTo -- [ ] Be 100% iso compatible with uri-js - -## License - -Licensed under [BSD-3-Clause](./LICENSE). diff --git a/build_vtk_bundle/node_modules/fast-uri/benchmark/benchmark.mjs b/build_vtk_bundle/node_modules/fast-uri/benchmark/benchmark.mjs deleted file mode 100644 index 2e49fc67..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/benchmark/benchmark.mjs +++ /dev/null @@ -1,159 +0,0 @@ -import { Bench } from 'tinybench' -import { fastUri } from '../index.js' -import { parse as uriJsParse, serialize as uriJsSerialize, resolve as uriJsResolve, equal as uriJsEqual } from 'uri-js' - -const base = 'uri://a/b/c/d;p?q' - -const domain = 'https://example.com/foo#bar$fiz' -const ipv4 = '//10.10.10.10' -const ipv6 = '//[2001:db8::7]' -const urn = 'urn:foo:a123,456' -const urnuuid = 'urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6' - -const urnuuidComponent = { - scheme: 'urn', - nid: 'uuid', - uuid: 'f81d4fae-7dec-11d0-a765-00a0c91e6bf6' -} - -const { - parse: fastUriParse, - serialize: fastUriSerialize, - resolve: fastUriResolve, - equal: fastUriEqual, -} = fastUri - -// Initialization as there is a lot to parse at first -// eg: regexes -fastUriParse(domain) -uriJsParse(domain) - -const benchFastUri = new Bench({ name: 'fast-uri benchmark' }) -const benchUriJs = new Bench({ name: 'uri-js benchmark' }) -const benchWHATWG = new Bench({ name: 'WHATWG URL benchmark' }) - -benchFastUri.add('fast-uri: parse domain', function () { - fastUriParse(domain) -}) -benchUriJs.add('urijs: parse domain', function () { - uriJsParse(domain) -}) -benchWHATWG.add('WHATWG URL: parse domain', function () { - // eslint-disable-next-line - new URL(domain) -}) -benchFastUri.add('fast-uri: parse IPv4', function () { - fastUriParse(ipv4) -}) -benchUriJs.add('urijs: parse IPv4', function () { - uriJsParse(ipv4) -}) -benchFastUri.add('fast-uri: parse IPv6', function () { - fastUriParse(ipv6) -}) -benchUriJs.add('urijs: parse IPv6', function () { - uriJsParse(ipv6) -}) -benchFastUri.add('fast-uri: parse URN', function () { - fastUriParse(urn) -}) -benchUriJs.add('urijs: parse URN', function () { - uriJsParse(urn) -}) -benchWHATWG.add('WHATWG URL: parse URN', function () { - // eslint-disable-next-line - new URL(urn) -}) -benchFastUri.add('fast-uri: parse URN uuid', function () { - fastUriParse(urnuuid) -}) -benchUriJs.add('urijs: parse URN uuid', function () { - uriJsParse(urnuuid) -}) -benchFastUri.add('fast-uri: serialize URN uuid', function () { - fastUriSerialize(urnuuidComponent) -}) -benchUriJs.add('uri-js: serialize URN uuid', function () { - uriJsSerialize(urnuuidComponent) -}) -benchFastUri.add('fast-uri: serialize uri', function () { - fastUriSerialize({ - scheme: 'uri', - userinfo: 'foo:bar', - host: 'example.com', - port: 1, - path: 'path', - query: 'query', - fragment: 'fragment' - }) -}) -benchUriJs.add('urijs: serialize uri', function () { - uriJsSerialize({ - scheme: 'uri', - userinfo: 'foo:bar', - host: 'example.com', - port: 1, - path: 'path', - query: 'query', - fragment: 'fragment' - }) -}) -benchFastUri.add('fast-uri: serialize long uri with dots', function () { - fastUriSerialize({ - scheme: 'uri', - userinfo: 'foo:bar', - host: 'example.com', - port: 1, - path: './a/./b/c/../.././d/../e/f/.././/', - query: 'query', - fragment: 'fragment' - }) -}) -benchUriJs.add('urijs: serialize long uri with dots', function () { - uriJsSerialize({ - scheme: 'uri', - userinfo: 'foo:bar', - host: 'example.com', - port: 1, - path: './a/./b/c/../.././d/../e/f/.././/', - query: 'query', - fragment: 'fragment' - }) -}) -benchFastUri.add('fast-uri: serialize IPv6', function () { - fastUriSerialize({ host: '2606:2800:220:1:248:1893:25c8:1946' }) -}) -benchUriJs.add('urijs: serialize IPv6', function () { - uriJsSerialize({ host: '2606:2800:220:1:248:1893:25c8:1946' }) -}) -benchFastUri.add('fast-uri: serialize ws', function () { - fastUriSerialize({ scheme: 'ws', host: 'example.com', resourceName: '/foo?bar', secure: true }) -}) -benchUriJs.add('urijs: serialize ws', function () { - uriJsSerialize({ scheme: 'ws', host: 'example.com', resourceName: '/foo?bar', secure: true }) -}) -benchFastUri.add('fast-uri: resolve', function () { - fastUriResolve(base, '../../../g') -}) -benchUriJs.add('urijs: resolve', function () { - uriJsResolve(base, '../../../g') -}) - -benchFastUri.add('fast-uri: equal', function () { - fastUriEqual('example://a/b/c/%7Bfoo%7D', 'eXAMPLE://a/./b/../b/%63/%7bfoo%7d') -}) -benchUriJs.add('urijs: equal', function () { - uriJsEqual('example://a/b/c/%7Bfoo%7D', 'eXAMPLE://a/./b/../b/%63/%7bfoo%7d') -}) - -await benchFastUri.run() -console.log(benchFastUri.name) -console.table(benchFastUri.table()) - -await benchUriJs.run() -console.log(benchUriJs.name) -console.table(benchUriJs.table()) - -await benchWHATWG.run() -console.log(benchWHATWG.name) -console.table(benchWHATWG.table()) diff --git a/build_vtk_bundle/node_modules/fast-uri/benchmark/equal.mjs b/build_vtk_bundle/node_modules/fast-uri/benchmark/equal.mjs deleted file mode 100644 index 3dea7ec8..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/benchmark/equal.mjs +++ /dev/null @@ -1,51 +0,0 @@ -import { Bench } from 'tinybench' -import { fastUri } from '../index.js' - -const { - equal: fastUriEqual, - parse: fastUriParse, -} = fastUri - -const stringA = 'example://a/b/c/%7Bfoo%7D' -const stringB = 'eXAMPLE://a/./b/../b/%63/%7bfoo%7d' - -const componentA = fastUriParse(stringA) -const componentB = fastUriParse(stringB) - -const benchFastUri = new Bench({ name: 'fast-uri equal' }) - -benchFastUri.add('equal string with string', function () { - fastUriEqual(stringA, stringA) -}) - -benchFastUri.add('equal component with component', function () { - fastUriEqual(componentA, componentA) -}) - -benchFastUri.add('equal component with string', function () { - fastUriEqual(componentA, stringA) -}) - -benchFastUri.add('equal string with component', function () { - fastUriEqual(stringA, componentA) -}) - -benchFastUri.add('not equal string with string', function () { - fastUriEqual(stringA, stringB) -}) - -benchFastUri.add('not equal component with component', function () { - fastUriEqual(componentA, componentB) -}) - -benchFastUri.add('not equal component with string', function () { - fastUriEqual(componentA, stringB) -}) - -benchFastUri.add('not equal string with component', function () { - fastUriEqual(stringA, componentB) -}) - -await benchFastUri.run() -console.log(benchFastUri.name) -console.table(benchFastUri.table()) diff --git a/build_vtk_bundle/node_modules/fast-uri/benchmark/non-simple-domain.mjs b/build_vtk_bundle/node_modules/fast-uri/benchmark/non-simple-domain.mjs deleted file mode 100644 index 4c041da4..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/benchmark/non-simple-domain.mjs +++ /dev/null @@ -1,22 +0,0 @@ -import { Bench } from 'tinybench' -import { nonSimpleDomain } from '../lib/utils.js' - -const benchNonSimpleDomain = new Bench({ name: 'nonSimpleDomain' }) - -const exampleCom = 'example.com' -const exaumlmpleCom = 'exämple.com' -const longDomain = 'abc'.repeat(100) + '.com' - -console.assert(nonSimpleDomain(exampleCom) === false, 'example.com should be a simple domain') -console.assert(nonSimpleDomain(exaumlmpleCom) === true, 'exämple.com should not be a simple domain') -console.assert(nonSimpleDomain(longDomain) === false, `${longDomain} should be a simple domain?`) - -benchNonSimpleDomain.add('nonSimpleDomain', function () { - nonSimpleDomain(exampleCom) - nonSimpleDomain(exaumlmpleCom) - nonSimpleDomain(longDomain) -}) - -await benchNonSimpleDomain.run() -console.log(benchNonSimpleDomain.name) -console.table(benchNonSimpleDomain.table()) diff --git a/build_vtk_bundle/node_modules/fast-uri/benchmark/package.json b/build_vtk_bundle/node_modules/fast-uri/benchmark/package.json deleted file mode 100644 index 7c0816a5..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/benchmark/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "benchmark", - "version": "1.0.0", - "description": "", - "main": "index.js", - "private": true, - "scripts": { - "bench": "node benchmark.mjs" - }, - "keywords": [], - "author": "", - "license": "ISC", - "dependencies": { - "tinybench": "^5.0.0", - "uri-js": "^4.4.1" - } -} diff --git a/build_vtk_bundle/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs b/build_vtk_bundle/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs deleted file mode 100644 index 94875dad..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +++ /dev/null @@ -1,24 +0,0 @@ -import { Bench } from 'tinybench' -import { stringArrayToHexStripped } from '../lib/utils.js' - -const benchStringArrayToHexStripped = new Bench({ name: 'stringArrayToHexStripped' }) - -const case1 = ['0', '0', '0', '0'] -const case2 = ['0', '0', '0', '1'] -const case3 = ['0', '0', '1', '0'] -const case4 = ['0', '1', '0', '0'] -const case5 = ['1', '0', '0', '0'] -const case6 = ['1', '0', '0', '1'] - -benchStringArrayToHexStripped.add('stringArrayToHexStripped', function () { - stringArrayToHexStripped(case1) - stringArrayToHexStripped(case2) - stringArrayToHexStripped(case3) - stringArrayToHexStripped(case4) - stringArrayToHexStripped(case5) - stringArrayToHexStripped(case6) -}) - -await benchStringArrayToHexStripped.run() -console.log(benchStringArrayToHexStripped.name) -console.table(benchStringArrayToHexStripped.table()) diff --git a/build_vtk_bundle/node_modules/fast-uri/benchmark/ws-is-secure.mjs b/build_vtk_bundle/node_modules/fast-uri/benchmark/ws-is-secure.mjs deleted file mode 100644 index b579a766..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/benchmark/ws-is-secure.mjs +++ /dev/null @@ -1,65 +0,0 @@ -import { Bench } from 'tinybench' -import { wsIsSecure } from '../lib/schemes.js' - -const benchWsIsSecure = new Bench({ name: 'wsIsSecure' }) - -const wsComponentAttributeSecureTrue = { - scheme: 'ws', - secure: true, -} - -const wsComponentAttributeSecureFalse = { - scheme: 'ws', - secure: false, -} - -const wssComponent = { - scheme: 'wss', -} - -const wssComponentMixedCase = { - scheme: 'Wss', -} - -const wssComponentUpperCase = { - scheme: 'WSS', -} - -const httpComponent = { - scheme: 'http', -} - -console.assert(wsIsSecure(wsComponentAttributeSecureTrue) === true, 'wsComponentAttributeSecureTrue should be secure') -console.assert(wsIsSecure(wsComponentAttributeSecureFalse) === false, 'wsComponentAttributeSecureFalse should not be secure') -console.assert(wsIsSecure(wssComponent) === true, 'wssComponent should be secure') -console.assert(wsIsSecure(wssComponentMixedCase) === true, 'wssComponentMixedCase should be secure') -console.assert(wsIsSecure(wssComponentUpperCase) === true, 'wssComponentUpperCase should be secure') -console.assert(wsIsSecure(httpComponent) === false, 'httpComponent should not be secure') - -benchWsIsSecure.add(JSON.stringify(wsComponentAttributeSecureFalse), function () { - wsIsSecure(wsComponentAttributeSecureFalse) -}) - -benchWsIsSecure.add(JSON.stringify(wsComponentAttributeSecureTrue), function () { - wsIsSecure(wsComponentAttributeSecureTrue) -}) - -benchWsIsSecure.add(JSON.stringify(wssComponent), function () { - wsIsSecure(wssComponent) -}) - -benchWsIsSecure.add(JSON.stringify(wssComponentMixedCase), function () { - wsIsSecure(wssComponentMixedCase) -}) - -benchWsIsSecure.add(JSON.stringify(wssComponentUpperCase), function () { - wsIsSecure(wssComponentUpperCase) -}) - -benchWsIsSecure.add(JSON.stringify(httpComponent), function () { - wsIsSecure(httpComponent) -}) - -await benchWsIsSecure.run() -console.log(benchWsIsSecure.name) -console.table(benchWsIsSecure.table()) diff --git a/build_vtk_bundle/node_modules/fast-uri/eslint.config.js b/build_vtk_bundle/node_modules/fast-uri/eslint.config.js deleted file mode 100644 index 89fd678f..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/eslint.config.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict' - -module.exports = require('neostandard')({ - ignores: require('neostandard').resolveIgnoresFromGitignore(), - ts: true -}) diff --git a/build_vtk_bundle/node_modules/fast-uri/index.js b/build_vtk_bundle/node_modules/fast-uri/index.js deleted file mode 100644 index f8d05f2a..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/index.js +++ /dev/null @@ -1,340 +0,0 @@ -'use strict' - -const { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require('./lib/utils') -const { SCHEMES, getSchemeHandler } = require('./lib/schemes') - -/** - * @template {import('./types/index').URIComponent|string} T - * @param {T} uri - * @param {import('./types/index').Options} [options] - * @returns {T} - */ -function normalize (uri, options) { - if (typeof uri === 'string') { - uri = /** @type {T} */ (serialize(parse(uri, options), options)) - } else if (typeof uri === 'object') { - uri = /** @type {T} */ (parse(serialize(uri, options), options)) - } - return uri -} - -/** - * @param {string} baseURI - * @param {string} relativeURI - * @param {import('./types/index').Options} [options] - * @returns {string} - */ -function resolve (baseURI, relativeURI, options) { - const schemelessOptions = options ? Object.assign({ scheme: 'null' }, options) : { scheme: 'null' } - const resolved = resolveComponent(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true) - schemelessOptions.skipEscape = true - return serialize(resolved, schemelessOptions) -} - -/** - * @param {import ('./types/index').URIComponent} base - * @param {import ('./types/index').URIComponent} relative - * @param {import('./types/index').Options} [options] - * @param {boolean} [skipNormalization=false] - * @returns {import ('./types/index').URIComponent} - */ -function resolveComponent (base, relative, options, skipNormalization) { - /** @type {import('./types/index').URIComponent} */ - const target = {} - if (!skipNormalization) { - base = parse(serialize(base, options), options) // normalize base component - relative = parse(serialize(relative, options), options) // normalize relative component - } - options = options || {} - - if (!options.tolerant && relative.scheme) { - target.scheme = relative.scheme - // target.authority = relative.authority; - target.userinfo = relative.userinfo - target.host = relative.host - target.port = relative.port - target.path = removeDotSegments(relative.path || '') - target.query = relative.query - } else { - if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) { - // target.authority = relative.authority; - target.userinfo = relative.userinfo - target.host = relative.host - target.port = relative.port - target.path = removeDotSegments(relative.path || '') - target.query = relative.query - } else { - if (!relative.path) { - target.path = base.path - if (relative.query !== undefined) { - target.query = relative.query - } else { - target.query = base.query - } - } else { - if (relative.path[0] === '/') { - target.path = removeDotSegments(relative.path) - } else { - if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) { - target.path = '/' + relative.path - } else if (!base.path) { - target.path = relative.path - } else { - target.path = base.path.slice(0, base.path.lastIndexOf('/') + 1) + relative.path - } - target.path = removeDotSegments(target.path) - } - target.query = relative.query - } - // target.authority = base.authority; - target.userinfo = base.userinfo - target.host = base.host - target.port = base.port - } - target.scheme = base.scheme - } - - target.fragment = relative.fragment - - return target -} - -/** - * @param {import ('./types/index').URIComponent|string} uriA - * @param {import ('./types/index').URIComponent|string} uriB - * @param {import ('./types/index').Options} options - * @returns {boolean} - */ -function equal (uriA, uriB, options) { - if (typeof uriA === 'string') { - uriA = unescape(uriA) - uriA = serialize(normalizeComponentEncoding(parse(uriA, options), true), { ...options, skipEscape: true }) - } else if (typeof uriA === 'object') { - uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true }) - } - - if (typeof uriB === 'string') { - uriB = unescape(uriB) - uriB = serialize(normalizeComponentEncoding(parse(uriB, options), true), { ...options, skipEscape: true }) - } else if (typeof uriB === 'object') { - uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true }) - } - - return uriA.toLowerCase() === uriB.toLowerCase() -} - -/** - * @param {Readonly} cmpts - * @param {import('./types/index').Options} [opts] - * @returns {string} - */ -function serialize (cmpts, opts) { - const component = { - host: cmpts.host, - scheme: cmpts.scheme, - userinfo: cmpts.userinfo, - port: cmpts.port, - path: cmpts.path, - query: cmpts.query, - nid: cmpts.nid, - nss: cmpts.nss, - uuid: cmpts.uuid, - fragment: cmpts.fragment, - reference: cmpts.reference, - resourceName: cmpts.resourceName, - secure: cmpts.secure, - error: '' - } - const options = Object.assign({}, opts) - const uriTokens = [] - - // find scheme handler - const schemeHandler = getSchemeHandler(options.scheme || component.scheme) - - // perform scheme specific serialization - if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options) - - if (component.path !== undefined) { - if (!options.skipEscape) { - component.path = escape(component.path) - - if (component.scheme !== undefined) { - component.path = component.path.split('%3A').join(':') - } - } else { - component.path = unescape(component.path) - } - } - - if (options.reference !== 'suffix' && component.scheme) { - uriTokens.push(component.scheme, ':') - } - - const authority = recomposeAuthority(component) - if (authority !== undefined) { - if (options.reference !== 'suffix') { - uriTokens.push('//') - } - - uriTokens.push(authority) - - if (component.path && component.path[0] !== '/') { - uriTokens.push('/') - } - } - if (component.path !== undefined) { - let s = component.path - - if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) { - s = removeDotSegments(s) - } - - if ( - authority === undefined && - s[0] === '/' && - s[1] === '/' - ) { - // don't allow the path to start with "//" - s = '/%2F' + s.slice(2) - } - - uriTokens.push(s) - } - - if (component.query !== undefined) { - uriTokens.push('?', component.query) - } - - if (component.fragment !== undefined) { - uriTokens.push('#', component.fragment) - } - return uriTokens.join('') -} - -const URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u - -/** - * @param {string} uri - * @param {import('./types/index').Options} [opts] - * @returns - */ -function parse (uri, opts) { - const options = Object.assign({}, opts) - /** @type {import('./types/index').URIComponent} */ - const parsed = { - scheme: undefined, - userinfo: undefined, - host: '', - port: undefined, - path: '', - query: undefined, - fragment: undefined - } - - let isIP = false - if (options.reference === 'suffix') { - if (options.scheme) { - uri = options.scheme + ':' + uri - } else { - uri = '//' + uri - } - } - - const matches = uri.match(URI_PARSE) - - if (matches) { - // store each component - parsed.scheme = matches[1] - parsed.userinfo = matches[3] - parsed.host = matches[4] - parsed.port = parseInt(matches[5], 10) - parsed.path = matches[6] || '' - parsed.query = matches[7] - parsed.fragment = matches[8] - - // fix port number - if (isNaN(parsed.port)) { - parsed.port = matches[5] - } - if (parsed.host) { - const ipv4result = isIPv4(parsed.host) - if (ipv4result === false) { - const ipv6result = normalizeIPv6(parsed.host) - parsed.host = ipv6result.host.toLowerCase() - isIP = ipv6result.isIPV6 - } else { - isIP = true - } - } - if (parsed.scheme === undefined && parsed.userinfo === undefined && parsed.host === undefined && parsed.port === undefined && parsed.query === undefined && !parsed.path) { - parsed.reference = 'same-document' - } else if (parsed.scheme === undefined) { - parsed.reference = 'relative' - } else if (parsed.fragment === undefined) { - parsed.reference = 'absolute' - } else { - parsed.reference = 'uri' - } - - // check for reference errors - if (options.reference && options.reference !== 'suffix' && options.reference !== parsed.reference) { - parsed.error = parsed.error || 'URI is not a ' + options.reference + ' reference.' - } - - // find scheme handler - const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme) - - // check if scheme can't handle IRIs - if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) { - // if host component is a domain name - if (parsed.host && (options.domainHost || (schemeHandler && schemeHandler.domainHost)) && isIP === false && nonSimpleDomain(parsed.host)) { - // convert Unicode IDN -> ASCII IDN - try { - parsed.host = URL.domainToASCII(parsed.host.toLowerCase()) - } catch (e) { - parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e - } - } - // convert IRI -> URI - } - - if (!schemeHandler || (schemeHandler && !schemeHandler.skipNormalize)) { - if (uri.indexOf('%') !== -1) { - if (parsed.scheme !== undefined) { - parsed.scheme = unescape(parsed.scheme) - } - if (parsed.host !== undefined) { - parsed.host = unescape(parsed.host) - } - } - if (parsed.path) { - parsed.path = escape(unescape(parsed.path)) - } - if (parsed.fragment) { - parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment)) - } - } - - // perform scheme specific parsing - if (schemeHandler && schemeHandler.parse) { - schemeHandler.parse(parsed, options) - } - } else { - parsed.error = parsed.error || 'URI can not be parsed.' - } - return parsed -} - -const fastUri = { - SCHEMES, - normalize, - resolve, - resolveComponent, - equal, - serialize, - parse -} - -module.exports = fastUri -module.exports.default = fastUri -module.exports.fastUri = fastUri diff --git a/build_vtk_bundle/node_modules/fast-uri/package.json b/build_vtk_bundle/node_modules/fast-uri/package.json deleted file mode 100644 index 5aa6eee3..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/package.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "name": "fast-uri", - "description": "Dependency-free RFC 3986 URI toolbox", - "version": "3.1.0", - "main": "index.js", - "type": "commonjs", - "types": "types/index.d.ts", - "license": "BSD-3-Clause", - "author": "Vincent Le Goff (https://github.com/zekth)", - "contributors": [ - { - "name": "Matteo Collina", - "email": "hello@matteocollina.com" - }, - { - "name": "Gürgün Dayıoğlu", - "email": "hey@gurgun.day", - "url": "https://heyhey.to/G" - }, - { - "name": "Aras Abbasi", - "email": "aras.abbasi@gmail.com" - }, - { - "name": "Frazer Smith", - "email": "frazer.dev@icloud.com", - "url": "https://github.com/fdawgs" - } - ], - "repository": { - "type": "git", - "url": "git+https://github.com/fastify/fast-uri.git" - }, - "bugs": { - "url": "https://github.com/fastify/fast-uri/issues" - }, - "homepage": "https://github.com/fastify/fast-uri", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fastify" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fastify" - } - ], - "scripts": { - "lint": "eslint", - "lint:fix": "eslint --fix", - "test": "npm run test:unit && npm run test:typescript", - "test:browser:chromium": "playwright-test ./test/* --runner tape --browser=chromium", - "test:browser:firefox": "playwright-test ./test/* --runner tape --browser=firefox", - "test:browser:webkit": "playwright-test ./test/* --runner tape --browser=webkit", - "test:browser": "npm run test:browser:chromium && npm run test:browser:firefox && npm run test:browser:webkit", - "test:unit": "tape test/**/*.js", - "test:unit:dev": "npm run test:unit -- --coverage-report=html", - "test:typescript": "tsd" - }, - "devDependencies": { - "@fastify/pre-commit": "^2.1.0", - "ajv": "^8.16.0", - "eslint": "^9.17.0", - "neostandard": "^0.12.0", - "playwright-test": "^14.1.12", - "tape": "^5.8.1", - "tsd": "^0.32.0" - } -} diff --git a/build_vtk_bundle/node_modules/fast-uri/test/ajv.test.js b/build_vtk_bundle/node_modules/fast-uri/test/ajv.test.js deleted file mode 100644 index e6a44fe8..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/test/ajv.test.js +++ /dev/null @@ -1,43 +0,0 @@ -'use strict' - -const test = require('tape') -const fastURI = require('..') - -const AJV = require('ajv') - -const ajv = new AJV({ - uriResolver: fastURI // comment this line to see it works with uri-js -}) - -test('ajv', t => { - t.plan(1) - const schema = { - $ref: '#/definitions/Record%3Cstring%2CPerson%3E', - definitions: { - Person: { - type: 'object', - properties: { - firstName: { - type: 'string' - } - } - }, - 'Record': { - type: 'object', - additionalProperties: { - $ref: '#/definitions/Person' - } - } - } - } - - const data = { - joe: { - firstName: 'Joe' - } - - } - - const validate = ajv.compile(schema) - t.ok(validate(data)) -}) diff --git a/build_vtk_bundle/node_modules/fast-uri/test/equal.test.js b/build_vtk_bundle/node_modules/fast-uri/test/equal.test.js deleted file mode 100644 index e5e9dfcf..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/test/equal.test.js +++ /dev/null @@ -1,108 +0,0 @@ -'use strict' - -const test = require('tape') -const fastURI = require('..') - -const fn = fastURI.equal -const runTest = (t, suite) => { - suite.forEach(s => { - const operator = s.result ? '==' : '!=' - t.equal(fn(s.pair[0], s.pair[1]), s.result, `${s.pair[0]} ${operator} ${s.pair[1]}`) - t.equal(fn(s.pair[1], s.pair[0]), s.result, `${s.pair[1]} ${operator} ${s.pair[0]}`) - }) -} - -test('URI Equals', (t) => { - const suite = [ - { pair: ['example://a/b/c/%7Bfoo%7D', 'eXAMPLE://a/./b/../b/%63/%7bfoo%7d'], result: true }, // test from RFC 3986 - { pair: ['http://example.org/~user', 'http://example.org/%7euser'], result: true } // test from RFC 3987 - ] - runTest(t, suite) - t.end() -}) - -// test('IRI Equals', (t) => { -// // example from RFC 3987 -// t.equal(URI.equal('example://a/b/c/%7Bfoo%7D/ros\xE9', 'eXAMPLE://a/./b/../b/%63/%7bfoo%7d/ros%C3%A9', IRI_OPTION), true) -// t.end() -// }) - -test('HTTP Equals', (t) => { - const suite = [ - // test from RFC 2616 - { pair: ['http://abc.com:80/~smith/home.html', 'http://abc.com/~smith/home.html'], result: true }, - { pair: [{ scheme: 'http', host: 'abc.com', port: 80, path: '/~smith/home.html' }, 'http://abc.com/~smith/home.html'], result: true }, - { pair: ['http://ABC.com/%7Esmith/home.html', 'http://abc.com/~smith/home.html'], result: true }, - { pair: ['http://ABC.com:/%7esmith/home.html', 'http://abc.com/~smith/home.html'], result: true }, - { pair: ['HTTP://ABC.COM', 'http://abc.com/'], result: true }, - // test from RFC 3986 - { pair: ['http://example.com:/', 'http://example.com:80/'], result: true } - ] - runTest(t, suite) - t.end() -}) - -test('HTTPS Equals', (t) => { - const suite = [ - { pair: ['https://example.com', 'https://example.com:443/'], result: true }, - { pair: ['https://example.com:/', 'https://example.com:443/'], result: true } - ] - runTest(t, suite) - t.end() -}) - -test('URN Equals', (t) => { - const suite = [ - // test from RFC 2141 - { pair: ['urn:foo:a123,456', 'urn:foo:a123,456'], result: true }, - { pair: ['urn:foo:a123,456', 'URN:foo:a123,456'], result: true }, - { pair: ['urn:foo:a123,456', 'urn:FOO:a123,456'], result: true } - ] - - // Disabling for now as the whole equal logic might need - // to be refactored - // t.equal(URI.equal('urn:foo:a123,456', 'urn:foo:A123,456'), false) - // t.equal(URI.equal('urn:foo:a123%2C456', 'URN:FOO:a123%2c456'), true) - - runTest(t, suite) - - t.throws(() => { - fn('urn:', 'urn:FOO:a123,456') - }, 'URN without nid cannot be serialized') - - t.end() -}) - -test('UUID Equals', (t) => { - const suite = [ - { pair: ['URN:UUID:F81D4FAE-7DEC-11D0-A765-00A0C91E6BF6', 'urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6'], result: true } - ] - - runTest(t, suite) - t.end() -}) - -// test('Mailto Equals', (t) => { -// // tests from RFC 6068 -// t.equal(URI.equal('mailto:addr1@an.example,addr2@an.example', 'mailto:?to=addr1@an.example,addr2@an.example'), true) -// t.equal(URI.equal('mailto:?to=addr1@an.example,addr2@an.example', 'mailto:addr1@an.example?to=addr2@an.example'), true) -// t.end() -// }) - -test('WS Equal', (t) => { - const suite = [ - { pair: ['WS://ABC.COM:80/chat#one', 'ws://abc.com/chat'], result: true } - ] - - runTest(t, suite) - t.end() -}) - -test('WSS Equal', (t) => { - const suite = [ - { pair: ['WSS://ABC.COM:443/chat#one', 'wss://abc.com/chat'], result: true } - ] - - runTest(t, suite) - t.end() -}) diff --git a/build_vtk_bundle/node_modules/fast-uri/test/fixtures/uri-js-parse.json b/build_vtk_bundle/node_modules/fast-uri/test/fixtures/uri-js-parse.json deleted file mode 100644 index 6b848134..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/test/fixtures/uri-js-parse.json +++ /dev/null @@ -1,501 +0,0 @@ -[ - [ - "//www.g.com/error\n/bleh/bleh", - { - "host": "www.g.com", - "path": "/error%0A/bleh/bleh", - "reference": "relative" - } - ], - [ - "https://fastify.org", - { - "scheme": "https", - "host": "fastify.org", - "path": "", - "reference": "absolute" - } - ], - [ - "/definitions/Record%3Cstring%2CPerson%3E", - { - "path": "/definitions/Record%3Cstring%2CPerson%3E", - "reference": "relative" - } - ], - [ - "//10.10.10.10", - { - "host": "10.10.10.10", - "path": "", - "reference": "relative" - } - ], - [ - "//10.10.000.10", - { - "host": "10.10.0.10", - "path": "", - "reference": "relative" - } - ], - [ - "//[2001:db8::7%en0]", - { - "host": "2001:db8::7%en0", - "path": "", - "reference": "relative" - } - ], - [ - "//[2001:dbZ::1]:80", - { - "host": "[2001:dbz::1]", - "port": 80, - "path": "", - "reference": "relative" - } - ], - [ - "//[2001:db8::1]:80", - { - "host": "2001:db8::1", - "port": 80, - "path": "", - "reference": "relative" - } - ], - [ - "//[2001:db8::001]:80", - { - "host": "2001:db8::1", - "port": 80, - "path": "", - "reference": "relative" - } - ], - [ - "uri://user:pass@example.com:123/one/two.three?q1=a1&q2=a2#body", - { - "scheme": "uri", - "userinfo": "user:pass", - "host": "example.com", - "port": 123, - "path": "/one/two.three", - "query": "q1=a1&q2=a2", - "fragment": "body", - "reference": "uri" - } - ], - [ - "http://user:pass@example.com:123/one/space in.url?q1=a1&q2=a2#body", - { - "scheme": "http", - "userinfo": "user:pass", - "host": "example.com", - "port": 123, - "path": "/one/space%20in.url", - "query": "q1=a1&q2=a2", - "fragment": "body", - "reference": "uri" - } - ], - [ - "http://User:Pass@example.com:123/one/space in.url?q1=a1&q2=a2#body", - { - "scheme": "http", - "userinfo": "User:Pass", - "host": "example.com", - "port": 123, - "path": "/one/space%20in.url", - "query": "q1=a1&q2=a2", - "fragment": "body", - "reference": "uri" - } - ], - [ - "http://A%3AB@example.com:123/one/space", - { - "scheme": "http", - "userinfo": "A%3AB", - "host": "example.com", - "port": 123, - "path": "/one/space", - "reference": "absolute" - } - ], - [ - "//[::ffff:129.144.52.38]", - { - "host": "::ffff:129.144.52.38", - "path": "", - "reference": "relative" - } - ], - [ - "uri://10.10.10.10.example.com/en/process", - { - "scheme": "uri", - "host": "10.10.10.10.example.com", - "path": "/en/process", - "reference": "absolute" - } - ], - [ - "//[2606:2800:220:1:248:1893:25c8:1946]/test", - { - "host": "2606:2800:220:1:248:1893:25c8:1946", - "path": "/test", - "reference": "relative" - } - ], - [ - "ws://example.com/chat", - { - "scheme": "ws", - "host": "example.com", - "reference": "absolute", - "secure": false, - "resourceName": "/chat" - } - ], - [ - "ws://example.com/foo?bar=baz", - { - "scheme": "ws", - "host": "example.com", - "reference": "absolute", - "secure": false, - "resourceName": "/foo?bar=baz" - } - ], - [ - "wss://example.com/?bar=baz", - { - "scheme": "wss", - "host": "example.com", - "reference": "absolute", - "secure": true, - "resourceName": "/?bar=baz" - } - ], - [ - "wss://example.com/chat", - { - "scheme": "wss", - "host": "example.com", - "reference": "absolute", - "secure": true, - "resourceName": "/chat" - } - ], - [ - "wss://example.com/foo?bar=baz", - { - "scheme": "wss", - "host": "example.com", - "reference": "absolute", - "secure": true, - "resourceName": "/foo?bar=baz" - } - ], - [ - "wss://example.com/?bar=baz", - { - "scheme": "wss", - "host": "example.com", - "reference": "absolute", - "secure": true, - "resourceName": "/?bar=baz" - } - ], - [ - "urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6", - { - "scheme": "urn", - "reference": "absolute", - "nid": "uuid", - "uuid": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6" - } - ], - [ - "urn:uuid:notauuid-7dec-11d0-a765-00a0c91e6bf6", - { - "scheme": "urn", - "reference": "absolute", - "nid": "uuid", - "uuid": "notauuid-7dec-11d0-a765-00a0c91e6bf6", - "error": "UUID is not valid." - } - ], - [ - "urn:example:%D0%B0123,z456", - { - "scheme": "urn", - "reference": "absolute", - "nid": "example", - "nss": "%D0%B0123,z456" - } - ], - [ - "//[2606:2800:220:1:248:1893:25c8:1946:43209]", - { - "host": "[2606:2800:220:1:248:1893:25c8:1946:43209]", - "path": "", - "reference": "relative" - } - ], - [ - "http://foo.bar", - { - "scheme": "http", - "host": "foo.bar", - "path": "", - "reference": "absolute" - } - ], - [ - "http://", - { - "scheme": "http", - "host": "", - "path": "", - "reference": "absolute", - "error": "HTTP URIs must have a host." - } - ], - [ - "#/$defs/stringMap", - { - "path": "", - "fragment": "/$defs/stringMap", - "reference": "same-document" - } - ], - [ - "#/$defs/string%20Map", - { - "path": "", - "fragment": "/$defs/string%20Map", - "reference": "same-document" - } - ], - [ - "#/$defs/string Map", - { - "path": "", - "fragment": "/$defs/string%20Map", - "reference": "same-document" - } - ], - [ - "//?json=%7B%22foo%22%3A%22bar%22%7D", - { - "host": "", - "path": "", - "query": "json=%7B%22foo%22%3A%22bar%22%7D", - "reference": "relative" - } - ], - [ - "mailto:chris@example.com", - { - "scheme": "mailto", - "reference": "absolute", - "to": [ - "chris@example.com" - ] - } - ], - [ - "mailto:infobot@example.com?subject=current-issue", - { - "scheme": "mailto", - "reference": "absolute", - "to": [ - "infobot@example.com" - ], - "subject": "current-issue" - } - ], - [ - "mailto:infobot@example.com?body=send%20current-issue", - { - "scheme": "mailto", - "reference": "absolute", - "to": [ - "infobot@example.com" - ], - "body": "send current-issue" - } - ], - [ - "mailto:infobot@example.com?body=send%20current-issue%0D%0Asend%20index", - { - "scheme": "mailto", - "reference": "absolute", - "to": [ - "infobot@example.com" - ], - "body": "send current-issue\r\nsend index" - } - ], - [ - "mailto:list@example.org?In-Reply-To=%3C3469A91.D10AF4C@example.com%3E", - { - "scheme": "mailto", - "reference": "absolute", - "to": [ - "list@example.org" - ], - "headers": { - "In-Reply-To": "<3469A91.D10AF4C@example.com>" - } - } - ], - [ - "mailto:majordomo@example.com?body=subscribe%20bamboo-l", - { - "scheme": "mailto", - "reference": "absolute", - "to": [ - "majordomo@example.com" - ], - "body": "subscribe bamboo-l" - } - ], - [ - "mailto:joe@example.com?cc=bob@example.com&body=hello", - { - "scheme": "mailto", - "reference": "absolute", - "to": [ - "joe@example.com" - ], - "body": "hello", - "headers": { - "cc": "bob@example.com" - } - } - ], - [ - "mailto:gorby%25kremvax@example.com", - { - "scheme": "mailto", - "reference": "absolute", - "to": [ - "gorby%kremvax@example.com" - ] - } - ], - [ - "mailto:unlikely%3Faddress@example.com?blat=foop", - { - "scheme": "mailto", - "reference": "absolute", - "to": [ - "unlikely?address@example.com" - ], - "headers": { - "blat": "foop" - } - } - ], - [ - "mailto:Mike%26family@example.org", - { - "scheme": "mailto", - "reference": "absolute", - "to": [ - "Mike&family@example.org" - ] - } - ], - [ - "mailto:%22not%40me%22@example.org", - { - "scheme": "mailto", - "reference": "absolute", - "to": [ - "\"not@me\"@example.org" - ] - } - ], - [ - "mailto:%22oh%5C%5Cno%22@example.org", - { - "scheme": "mailto", - "reference": "absolute", - "to": [ - "\"oh\\\\no\"@example.org" - ] - } - ], - [ - "mailto:%22%5C%5C%5C%22it's%5C%20ugly%5C%5C%5C%22%22@example.org", - { - "scheme": "mailto", - "reference": "absolute", - "to": [ - "\"\\\\\\\"it's\\ ugly\\\\\\\"\"@example.org" - ] - } - ], - [ - "mailto:user@example.org?subject=caf%C3%A9", - { - "scheme": "mailto", - "reference": "absolute", - "to": [ - "user@example.org" - ], - "subject": "café" - } - ], - [ - "mailto:user@example.org?subject=%3D%3Futf-8%3FQ%3Fcaf%3DC3%3DA9%3F%3D", - { - "scheme": "mailto", - "reference": "absolute", - "to": [ - "user@example.org" - ], - "subject": "=?utf-8?Q?caf=C3=A9?=" - } - ], - [ - "mailto:user@example.org?subject=%3D%3Fiso-8859-1%3FQ%3Fcaf%3DE9%3F%3D", - { - "scheme": "mailto", - "reference": "absolute", - "to": [ - "user@example.org" - ], - "subject": "=?iso-8859-1?Q?caf=E9?=" - } - ], - [ - "mailto:user@example.org?subject=caf%C3%A9&body=caf%C3%A9", - { - "scheme": "mailto", - "reference": "absolute", - "to": [ - "user@example.org" - ], - "subject": "café", - "body": "café" - } - ], - [ - "mailto:user@%E7%B4%8D%E8%B1%86.example.org?subject=Test&body=NATTO", - { - "scheme": "mailto", - "reference": "absolute", - "to": [ - "user@xn--99zt52a.example.org" - ], - "subject": "Test", - "body": "NATTO" - } - ] -] \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/fast-uri/test/fixtures/uri-js-serialize.json b/build_vtk_bundle/node_modules/fast-uri/test/fixtures/uri-js-serialize.json deleted file mode 100644 index 87d71467..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +++ /dev/null @@ -1,120 +0,0 @@ -[ - [ - { - "host": "10.10.10.10.example.com" - }, - "//10.10.10.10.example.com" - ], - [ - { - "host": "2001:db8::7" - }, - "//[2001:db8::7]" - ], - [ - { - "host": "::ffff:129.144.52.38" - }, - "//[::ffff:129.144.52.38]" - ], - [ - { - "host": "2606:2800:220:1:248:1893:25c8:1946" - }, - "//[2606:2800:220:1:248:1893:25c8:1946]" - ], - [ - { - "host": "10.10.10.10.example.com" - }, - "//10.10.10.10.example.com" - ], - [ - { - "host": "10.10.10.10" - }, - "//10.10.10.10" - ], - [ - { - "path": "?query" - }, - "%3Fquery" - ], - [ - { - "path": "foo:bar" - }, - "foo%3Abar" - ], - [ - { - "path": "//path" - }, - "/%2Fpath" - ], - [ - { - "scheme": "uri", - "host": "example.com", - "port": "9000" - }, - "uri://example.com:9000" - ], - [ - { - "scheme": "uri", - "userinfo": "foo:bar", - "host": "example.com", - "port": 1, - "path": "path", - "query": "query", - "fragment": "fragment" - }, - "uri://foo:bar@example.com:1/path?query#fragment" - ], - [ - { - "scheme": "", - "userinfo": "", - "host": "", - "port": 0, - "path": "", - "query": "", - "fragment": "" - }, - "//@:0?#" - ], - [ - {}, - "" - ], - [ - { - "host": "fe80::a%en1" - }, - "//[fe80::a%25en1]" - ], - [ - { - "host": "fe80::a%25en1" - }, - "//[fe80::a%25en1]" - ], - [ - { - "scheme": "wss", - "host": "example.com", - "path": "/foo", - "query": "bar" - }, - "wss://example.com/foo?bar" - ], - [ - { - "scheme": "scheme", - "path": "with:colon" - }, - "scheme:with:colon" - ] -] \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/fast-uri/test/parse.test.js b/build_vtk_bundle/node_modules/fast-uri/test/parse.test.js deleted file mode 100644 index 6a2be03b..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/test/parse.test.js +++ /dev/null @@ -1,318 +0,0 @@ -'use strict' - -const test = require('tape') -const fastURI = require('..') - -test('URI parse', (t) => { - let components - - // scheme - components = fastURI.parse('uri:') - t.equal(components.error, undefined, 'scheme errors') - t.equal(components.scheme, 'uri', 'scheme') - // t.equal(components.authority, undefined, "authority"); - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // userinfo - components = fastURI.parse('//@') - t.equal(components.error, undefined, 'userinfo errors') - t.equal(components.scheme, undefined, 'scheme') - // t.equal(components.authority, "@", "authority"); - t.equal(components.userinfo, '', 'userinfo') - t.equal(components.host, '', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // host - components = fastURI.parse('//') - t.equal(components.error, undefined, 'host errors') - t.equal(components.scheme, undefined, 'scheme') - // t.equal(components.authority, "", "authority"); - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, '', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // port - components = fastURI.parse('//:') - t.equal(components.error, undefined, 'port errors') - t.equal(components.scheme, undefined, 'scheme') - // t.equal(components.authority, ":", "authority"); - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, '', 'host') - t.equal(components.port, '', 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // path - components = fastURI.parse('') - t.equal(components.error, undefined, 'path errors') - t.equal(components.scheme, undefined, 'scheme') - // t.equal(components.authority, undefined, "authority"); - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // query - components = fastURI.parse('?') - t.equal(components.error, undefined, 'query errors') - t.equal(components.scheme, undefined, 'scheme') - // t.equal(components.authority, undefined, "authority"); - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, '', 'query') - t.equal(components.fragment, undefined, 'fragment') - - // fragment - components = fastURI.parse('#') - t.equal(components.error, undefined, 'fragment errors') - t.equal(components.scheme, undefined, 'scheme') - // t.equal(components.authority, undefined, "authority"); - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, '', 'fragment') - - // fragment with character tabulation - components = fastURI.parse('#\t') - t.equal(components.error, undefined, 'path errors') - t.equal(components.scheme, undefined, 'scheme') - // t.equal(components.authority, undefined, "authority"); - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, '%09', 'fragment') - - // fragment with line feed - components = fastURI.parse('#\n') - t.equal(components.error, undefined, 'path errors') - t.equal(components.scheme, undefined, 'scheme') - // t.equal(components.authority, undefined, "authority"); - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, '%0A', 'fragment') - - // fragment with line tabulation - components = fastURI.parse('#\v') - t.equal(components.error, undefined, 'path errors') - t.equal(components.scheme, undefined, 'scheme') - // t.equal(components.authority, undefined, "authority"); - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, '%0B', 'fragment') - - // fragment with form feed - components = fastURI.parse('#\f') - t.equal(components.error, undefined, 'path errors') - t.equal(components.scheme, undefined, 'scheme') - // t.equal(components.authority, undefined, "authority"); - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, '%0C', 'fragment') - - // fragment with carriage return - components = fastURI.parse('#\r') - t.equal(components.error, undefined, 'path errors') - t.equal(components.scheme, undefined, 'scheme') - // t.equal(components.authority, undefined, "authority"); - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, '%0D', 'fragment') - - // all - components = fastURI.parse('uri://user:pass@example.com:123/one/two.three?q1=a1&q2=a2#body') - t.equal(components.error, undefined, 'all errors') - t.equal(components.scheme, 'uri', 'scheme') - // t.equal(components.authority, "user:pass@example.com:123", "authority"); - t.equal(components.userinfo, 'user:pass', 'userinfo') - t.equal(components.host, 'example.com', 'host') - t.equal(components.port, 123, 'port') - t.equal(components.path, '/one/two.three', 'path') - t.equal(components.query, 'q1=a1&q2=a2', 'query') - t.equal(components.fragment, 'body', 'fragment') - - // IPv4address - components = fastURI.parse('//10.10.10.10') - t.equal(components.error, undefined, 'IPv4address errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, '10.10.10.10', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // IPv4address with unformated 0 stay as-is - components = fastURI.parse('//10.10.000.10') // not valid as per https://datatracker.ietf.org/doc/html/rfc5954#section-4.1 - t.equal(components.error, undefined, 'IPv4address errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, '10.10.000.10', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - components = fastURI.parse('//01.01.01.01') // not valid in URIs: https://datatracker.ietf.org/doc/html/rfc3986#section-7.4 - t.equal(components.error, undefined, 'IPv4address errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, '01.01.01.01', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // IPv6address - components = fastURI.parse('//[2001:db8::7]') - t.equal(components.error, undefined, 'IPv4address errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, '2001:db8::7', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // invalid IPv6 - components = fastURI.parse('//[2001:dbZ::7]') - t.equal(components.host, '[2001:dbz::7]') - - // mixed IPv4address & IPv6address - components = fastURI.parse('//[::ffff:129.144.52.38]') - t.equal(components.error, undefined, 'IPv4address errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, '::ffff:129.144.52.38', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // mixed IPv4address & reg-name, example from terion-name (https://github.com/garycourt/uri-js/issues/4) - components = fastURI.parse('uri://10.10.10.10.example.com/en/process') - t.equal(components.error, undefined, 'mixed errors') - t.equal(components.scheme, 'uri', 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, '10.10.10.10.example.com', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '/en/process', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // IPv6address, example from bkw (https://github.com/garycourt/uri-js/pull/16) - components = fastURI.parse('//[2606:2800:220:1:248:1893:25c8:1946]/test') - t.equal(components.error, undefined, 'IPv6address errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, '2606:2800:220:1:248:1893:25c8:1946', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '/test', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // IPv6address, example from RFC 5952 - components = fastURI.parse('//[2001:db8::1]:80') - t.equal(components.error, undefined, 'IPv6address errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, '2001:db8::1', 'host') - t.equal(components.port, 80, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // IPv6address with zone identifier, RFC 6874 - components = fastURI.parse('//[fe80::a%25en1]') - t.equal(components.error, undefined, 'IPv4address errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, 'fe80::a%en1', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // IPv6address with an unescaped interface specifier, example from pekkanikander (https://github.com/garycourt/uri-js/pull/22) - components = fastURI.parse('//[2001:db8::7%en0]') - t.equal(components.error, undefined, 'IPv6address interface errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, '2001:db8::7%en0', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // UUID V1 - components = fastURI.parse('urn:uuid:b571b0bc-4713-11ec-81d3-0242ac130003') - t.equal(components.error, undefined, 'errors') - t.equal(components.scheme, 'urn', 'scheme') - // t.equal(components.authority, undefined, "authority"); - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, undefined, 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - t.equal(components.nid, 'uuid', 'nid') - t.equal(components.nss, undefined, 'nss') - t.equal(components.uuid, 'b571b0bc-4713-11ec-81d3-0242ac130003', 'uuid') - - // UUID v4 - components = fastURI.parse('urn:uuid:97a32222-89b7-420e-8507-4360723e2c2a') - t.equal(components.uuid, '97a32222-89b7-420e-8507-4360723e2c2a', 'uuid') - - components = fastURI.parse('urn:uuid:notauuid-7dec-11d0-a765-00a0c91e6bf6') - t.notSame(components.error, undefined, 'errors') - - components = fastURI.parse('urn:foo:a123,456') - t.equal(components.error, undefined, 'errors') - t.equal(components.scheme, 'urn', 'scheme') - // t.equal(components.authority, undefined, "authority"); - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, undefined, 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - t.equal(components.nid, 'foo', 'nid') - t.equal(components.nss, 'a123,456', 'nss') - - components = fastURI.parse('//[2606:2800:220:1:248:1893:25c8:1946:43209]') - t.equal(components.host, '[2606:2800:220:1:248:1893:25c8:1946:43209]') - - components = fastURI.parse('urn:foo:|\\24fpl') - t.equal(components.error, 'URN can not be parsed.') - t.end() -}) diff --git a/build_vtk_bundle/node_modules/fast-uri/test/resolve.test.js b/build_vtk_bundle/node_modules/fast-uri/test/resolve.test.js deleted file mode 100644 index 200754c4..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/test/resolve.test.js +++ /dev/null @@ -1,78 +0,0 @@ -'use strict' - -const test = require('tape') -const fastURI = require('..') - -test('URI Resolving', (t) => { - // normal examples from RFC 3986 - const base = 'uri://a/b/c/d;p?q' - t.equal(fastURI.resolve(base, 'g:h'), 'g:h', 'g:h') - t.equal(fastURI.resolve(base, 'g:h'), 'g:h', 'g:h') - t.equal(fastURI.resolve(base, 'g'), 'uri://a/b/c/g', 'g') - t.equal(fastURI.resolve(base, './g'), 'uri://a/b/c/g', './g') - t.equal(fastURI.resolve(base, 'g/'), 'uri://a/b/c/g/', 'g/') - t.equal(fastURI.resolve(base, '/g'), 'uri://a/g', '/g') - t.equal(fastURI.resolve(base, '//g'), 'uri://g', '//g') - t.equal(fastURI.resolve(base, '?y'), 'uri://a/b/c/d;p?y', '?y') - t.equal(fastURI.resolve(base, 'g?y'), 'uri://a/b/c/g?y', 'g?y') - t.equal(fastURI.resolve(base, '#s'), 'uri://a/b/c/d;p?q#s', '#s') - t.equal(fastURI.resolve(base, 'g#s'), 'uri://a/b/c/g#s', 'g#s') - t.equal(fastURI.resolve(base, 'g?y#s'), 'uri://a/b/c/g?y#s', 'g?y#s') - t.equal(fastURI.resolve(base, ';x'), 'uri://a/b/c/;x', ';x') - t.equal(fastURI.resolve(base, 'g;x'), 'uri://a/b/c/g;x', 'g;x') - t.equal(fastURI.resolve(base, 'g;x?y#s'), 'uri://a/b/c/g;x?y#s', 'g;x?y#s') - t.equal(fastURI.resolve(base, ''), 'uri://a/b/c/d;p?q', '') - t.equal(fastURI.resolve(base, '.'), 'uri://a/b/c/', '.') - t.equal(fastURI.resolve(base, './'), 'uri://a/b/c/', './') - t.equal(fastURI.resolve(base, '..'), 'uri://a/b/', '..') - t.equal(fastURI.resolve(base, '../'), 'uri://a/b/', '../') - t.equal(fastURI.resolve(base, '../g'), 'uri://a/b/g', '../g') - t.equal(fastURI.resolve(base, '../..'), 'uri://a/', '../..') - t.equal(fastURI.resolve(base, '../../'), 'uri://a/', '../../') - t.equal(fastURI.resolve(base, '../../g'), 'uri://a/g', '../../g') - - // abnormal examples from RFC 3986 - t.equal(fastURI.resolve(base, '../../../g'), 'uri://a/g', '../../../g') - t.equal(fastURI.resolve(base, '../../../../g'), 'uri://a/g', '../../../../g') - - t.equal(fastURI.resolve(base, '/./g'), 'uri://a/g', '/./g') - t.equal(fastURI.resolve(base, '/../g'), 'uri://a/g', '/../g') - t.equal(fastURI.resolve(base, 'g.'), 'uri://a/b/c/g.', 'g.') - t.equal(fastURI.resolve(base, '.g'), 'uri://a/b/c/.g', '.g') - t.equal(fastURI.resolve(base, 'g..'), 'uri://a/b/c/g..', 'g..') - t.equal(fastURI.resolve(base, '..g'), 'uri://a/b/c/..g', '..g') - - t.equal(fastURI.resolve(base, './../g'), 'uri://a/b/g', './../g') - t.equal(fastURI.resolve(base, './g/.'), 'uri://a/b/c/g/', './g/.') - t.equal(fastURI.resolve(base, 'g/./h'), 'uri://a/b/c/g/h', 'g/./h') - t.equal(fastURI.resolve(base, 'g/../h'), 'uri://a/b/c/h', 'g/../h') - t.equal(fastURI.resolve(base, 'g;x=1/./y'), 'uri://a/b/c/g;x=1/y', 'g;x=1/./y') - t.equal(fastURI.resolve(base, 'g;x=1/../y'), 'uri://a/b/c/y', 'g;x=1/../y') - - t.equal(fastURI.resolve(base, 'g?y/./x'), 'uri://a/b/c/g?y/./x', 'g?y/./x') - t.equal(fastURI.resolve(base, 'g?y/../x'), 'uri://a/b/c/g?y/../x', 'g?y/../x') - t.equal(fastURI.resolve(base, 'g#s/./x'), 'uri://a/b/c/g#s/./x', 'g#s/./x') - t.equal(fastURI.resolve(base, 'g#s/../x'), 'uri://a/b/c/g#s/../x', 'g#s/../x') - - t.equal(fastURI.resolve(base, 'uri:g'), 'uri:g', 'uri:g') - t.equal(fastURI.resolve(base, 'uri:g', {}), 'uri:g', 'uri:g') - t.equal(fastURI.resolve(base, 'uri:g', { tolerant: undefined }), 'uri:g', 'uri:g') - t.equal(fastURI.resolve(base, 'uri:g', { tolerant: false }), 'uri:g', 'uri:g') - t.equal(fastURI.resolve(base, 'uri:g', { tolerant: true }), 'uri://a/b/c/g', 'uri:g') - - // examples by PAEz - // example was provided to avoid infinite loop within regex - // this is not the case anymore - // t.equal(URI.resolve('//www.g.com/', '/adf\ngf'), '//www.g.com/adf%0Agf', '/adf\\ngf') - // t.equal(URI.resolve('//www.g.com/error\n/bleh/bleh', '..'), '//www.g.com/error%0A/', '//www.g.com/error\\n/bleh/bleh') - t.end() -}) - -test('URN Resolving', (t) => { - // example from epoberezkin - t.equal(fastURI.resolve('', 'urn:some:ip:prop'), 'urn:some:ip:prop', 'urn:some:ip:prop') - t.equal(fastURI.resolve('#', 'urn:some:ip:prop'), 'urn:some:ip:prop', 'urn:some:ip:prop') - t.equal(fastURI.resolve('urn:some:ip:prop', 'urn:some:ip:prop'), 'urn:some:ip:prop', 'urn:some:ip:prop') - t.equal(fastURI.resolve('urn:some:other:prop', 'urn:some:ip:prop'), 'urn:some:ip:prop', 'urn:some:ip:prop') - t.end() -}) diff --git a/build_vtk_bundle/node_modules/fast-uri/test/rfc-3986.test.js b/build_vtk_bundle/node_modules/fast-uri/test/rfc-3986.test.js deleted file mode 100644 index 0a5adbec..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/test/rfc-3986.test.js +++ /dev/null @@ -1,90 +0,0 @@ -'use strict' - -const test = require('tape') -const fastURI = require('..') - -test('RFC 3986', (t) => { - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '/', secure: true }), - 'http://example.com/', 'http://example.com/') - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '/foo', secure: true }), - 'http://example.com/foo', 'http://example.com/foo') - - // A. If the input buffer begins with a prefix of "../" or "./", - // then remove that prefix from the input buffer; otherwise, - - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '../', secure: true }), - 'http://example.com/', 'http://example.com/') - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: './', secure: true }), - 'http://example.com/', 'http://example.com/') - - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '../../', secure: true }), - 'http://example.com/', 'http://example.com/') - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '././', secure: true }), - 'http://example.com/', 'http://example.com/') - - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: './../', secure: true }), - 'http://example.com/', 'http://example.com/') - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '.././', secure: true }), - 'http://example.com/', 'http://example.com/') - - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '../foo', secure: true }), - 'http://example.com/foo', 'http://example.com/foo') - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: './foo', secure: true }), - 'http://example.com/foo', 'http://example.com/foo') - - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '../../foo', secure: true }), - 'http://example.com/foo', 'http://example.com/foo') - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '././foo', secure: true }), - 'http://example.com/foo', 'http://example.com/foo') - - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: './../foo', secure: true }), - 'http://example.com/foo', 'http://example.com/foo') - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '.././foo', secure: true }), - 'http://example.com/foo', 'http://example.com/foo') - - // B. if the input buffer begins with a prefix of "/./" or "/.", - // where "." is a complete path segment, then replace that - // prefix with "/" in the input buffer; otherwise, - - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '/./', secure: true }), - 'http://example.com/', 'http://example.com/') - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '/.', secure: true }), - 'http://example.com/', 'http://example.com/') - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '/./foo', secure: true }), - 'http://example.com/foo', 'http://example.com/foo') - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '/.././foo', secure: true }), - 'http://example.com/foo', 'http://example.com/foo') - - // C. if the input buffer begins with a prefix of "/../" or "/..", - // where ".." is a complete path segment, then replace that - // prefix with "/" in the input buffer and remove the last - // segment and its preceding "/" (if any) from the output - // buffer; otherwise, - - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '/../', secure: true }), - 'http://example.com/', 'http://example.com/') - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '/..', secure: true }), - 'http://example.com/', 'http://example.com/') - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '/../foo', secure: true }), - 'http://example.com/foo', 'http://example.com/foo') - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '/foo/..', secure: true }), - 'http://example.com/', 'http://example.com/') - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '/foo/bar/..', secure: true }), - 'http://example.com/foo/', 'http://example.com/foo/') - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '/foo/../bar/..', secure: true }), - 'http://example.com/', 'http://example.com/') - - // D. if the input buffer consists only of "." or "..", then remove - // that from the input buffer; otherwise, - - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '/.', secure: true }), - 'http://example.com/', 'http://example.com/') - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '/..', secure: true }), - 'http://example.com/', 'http://example.com/') - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '.', secure: true }), - 'http://example.com/', 'http://example.com/') - t.strictEqual(fastURI.serialize({ scheme: 'http', host: 'example.com', path: '..', secure: true }), - 'http://example.com/', 'http://example.com/') - - t.end() -}) diff --git a/build_vtk_bundle/node_modules/fast-uri/test/serialize.test.js b/build_vtk_bundle/node_modules/fast-uri/test/serialize.test.js deleted file mode 100644 index 0eaa346a..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/test/serialize.test.js +++ /dev/null @@ -1,151 +0,0 @@ -'use strict' - -const test = require('tape') -const fastURI = require('..') - -test('URI Serialize', (t) => { - let components = { - scheme: undefined, - userinfo: undefined, - host: undefined, - port: undefined, - path: undefined, - query: undefined, - fragment: undefined - } - t.equal(fastURI.serialize(components), '', 'Undefined Components') - - components = { - scheme: '', - userinfo: '', - host: '', - port: 0, - path: '', - query: '', - fragment: '' - } - t.equal(fastURI.serialize(components), '//@:0?#', 'Empty Components') - - components = { - scheme: 'uri', - userinfo: 'foo:bar', - host: 'example.com', - port: 1, - path: 'path', - query: 'query', - fragment: 'fragment' - } - t.equal(fastURI.serialize(components), 'uri://foo:bar@example.com:1/path?query#fragment', 'All Components') - - components = { - scheme: 'uri', - host: 'example.com', - port: '9000' - } - t.equal(fastURI.serialize(components), 'uri://example.com:9000', 'String port') - - t.equal(fastURI.serialize({ path: '//path' }), '/%2Fpath', 'Double slash path') - t.equal(fastURI.serialize({ path: 'foo:bar' }), 'foo%3Abar', 'Colon path') - t.equal(fastURI.serialize({ path: '?query' }), '%3Fquery', 'Query path') - - t.equal(fastURI.serialize({ host: '10.10.10.10' }), '//10.10.10.10', 'IPv4address') - - // mixed IPv4address & reg-name, example from terion-name (https://github.com/garycourt/uri-js/issues/4) - t.equal(fastURI.serialize({ host: '10.10.10.10.example.com' }), '//10.10.10.10.example.com', 'Mixed IPv4address & reg-name') - - // IPv6address - t.equal(fastURI.serialize({ host: '2001:db8::7' }), '//[2001:db8::7]', 'IPv6 Host') - t.equal(fastURI.serialize({ host: '::ffff:129.144.52.38' }), '//[::ffff:129.144.52.38]', 'IPv6 Mixed Host') - t.equal(fastURI.serialize({ host: '2606:2800:220:1:248:1893:25c8:1946' }), '//[2606:2800:220:1:248:1893:25c8:1946]', 'IPv6 Full Host') - - // IPv6address with zone identifier, RFC 6874 - t.equal(fastURI.serialize({ host: 'fe80::a%en1' }), '//[fe80::a%25en1]', 'IPv6 Zone Unescaped Host') - t.equal(fastURI.serialize({ host: 'fe80::a%25en1' }), '//[fe80::a%25en1]', 'IPv6 Zone Escaped Host') - - t.end() -}) - -test('WS serialize', (t) => { - t.equal(fastURI.serialize({ scheme: 'ws' }), 'ws:') - t.equal(fastURI.serialize({ scheme: 'ws', host: 'example.com' }), 'ws://example.com') - t.equal(fastURI.serialize({ scheme: 'ws', resourceName: '/' }), 'ws:') - t.equal(fastURI.serialize({ scheme: 'ws', resourceName: '/foo' }), 'ws:/foo') - t.equal(fastURI.serialize({ scheme: 'ws', resourceName: '/foo?bar' }), 'ws:/foo?bar') - t.equal(fastURI.serialize({ scheme: 'ws', secure: false }), 'ws:') - t.equal(fastURI.serialize({ scheme: 'ws', secure: true }), 'wss:') - t.equal(fastURI.serialize({ scheme: 'ws', host: 'example.com', resourceName: '/foo' }), 'ws://example.com/foo') - t.equal(fastURI.serialize({ scheme: 'ws', host: 'example.com', resourceName: '/foo?bar' }), 'ws://example.com/foo?bar') - t.equal(fastURI.serialize({ scheme: 'ws', host: 'example.com', secure: false }), 'ws://example.com') - t.equal(fastURI.serialize({ scheme: 'ws', host: 'example.com', secure: true }), 'wss://example.com') - t.equal(fastURI.serialize({ scheme: 'ws', host: 'example.com', resourceName: '/foo?bar', secure: false }), 'ws://example.com/foo?bar') - t.equal(fastURI.serialize({ scheme: 'ws', host: 'example.com', resourceName: '/foo?bar', secure: true }), 'wss://example.com/foo?bar') - t.end() -}) - -test('WSS serialize', (t) => { - t.equal(fastURI.serialize({ scheme: 'wss' }), 'wss:') - t.equal(fastURI.serialize({ scheme: 'wss', host: 'example.com' }), 'wss://example.com') - t.equal(fastURI.serialize({ scheme: 'wss', resourceName: '/' }), 'wss:') - t.equal(fastURI.serialize({ scheme: 'wss', resourceName: '/foo' }), 'wss:/foo') - t.equal(fastURI.serialize({ scheme: 'wss', resourceName: '/foo?bar' }), 'wss:/foo?bar') - t.equal(fastURI.serialize({ scheme: 'wss', secure: false }), 'ws:') - t.equal(fastURI.serialize({ scheme: 'wss', secure: true }), 'wss:') - t.equal(fastURI.serialize({ scheme: 'wss', host: 'example.com', resourceName: '/foo' }), 'wss://example.com/foo') - t.equal(fastURI.serialize({ scheme: 'wss', host: 'example.com', resourceName: '/foo?bar' }), 'wss://example.com/foo?bar') - t.equal(fastURI.serialize({ scheme: 'wss', host: 'example.com', secure: false }), 'ws://example.com') - t.equal(fastURI.serialize({ scheme: 'wss', host: 'example.com', secure: true }), 'wss://example.com') - t.equal(fastURI.serialize({ scheme: 'wss', host: 'example.com', resourceName: '/foo?bar', secure: false }), 'ws://example.com/foo?bar') - t.equal(fastURI.serialize({ scheme: 'wss', host: 'example.com', resourceName: '/foo?bar', secure: true }), 'wss://example.com/foo?bar') - - t.end() -}) - -test('URN serialize', (t) => { - // example from RFC 2141 - const components = { - scheme: 'urn', - nid: 'foo', - nss: 'a123,456' - } - t.equal(fastURI.serialize(components), 'urn:foo:a123,456') - // example from RFC 4122 - let uuidcomponents = { - scheme: 'urn', - nid: 'uuid', - uuid: 'f81d4fae-7dec-11d0-a765-00a0c91e6bf6' - } - t.equal(fastURI.serialize(uuidcomponents), 'urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6') - - uuidcomponents = { - scheme: 'urn', - nid: 'uuid', - uuid: 'notauuid-7dec-11d0-a765-00a0c91e6bf6' - } - t.equal(fastURI.serialize(uuidcomponents), 'urn:uuid:notauuid-7dec-11d0-a765-00a0c91e6bf6') - - uuidcomponents = { - scheme: 'urn', - nid: undefined, - uuid: 'notauuid-7dec-11d0-a765-00a0c91e6bf6' - } - t.throws(() => { fastURI.serialize(uuidcomponents) }, 'URN without nid cannot be serialized') - - t.end() -}) -test('URN NID Override', (t) => { - let components = fastURI.parse('urn:foo:f81d4fae-7dec-11d0-a765-00a0c91e6bf6', { nid: 'uuid' }) - t.equal(components.error, undefined, 'errors') - t.equal(components.scheme, 'urn', 'scheme') - t.equal(components.path, undefined, 'path') - t.equal(components.nid, 'foo', 'nid') - t.equal(components.nss, undefined, 'nss') - t.equal(components.uuid, 'f81d4fae-7dec-11d0-a765-00a0c91e6bf6', 'uuid') - - components = { - scheme: 'urn', - nid: 'foo', - uuid: 'f81d4fae-7dec-11d0-a765-00a0c91e6bf6' - } - t.equal(fastURI.serialize(components, { nid: 'uuid' }), 'urn:foo:f81d4fae-7dec-11d0-a765-00a0c91e6bf6') - t.end() -}) diff --git a/build_vtk_bundle/node_modules/fast-uri/test/uri-js-compatibility.test.js b/build_vtk_bundle/node_modules/fast-uri/test/uri-js-compatibility.test.js deleted file mode 100644 index a75869b1..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/test/uri-js-compatibility.test.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict' - -const test = require('tape') -const fastURI = require('../') - -const uriJsParseFixtures = require('./fixtures/uri-js-parse.json') -const uriJsSerializeFixtures = require('./fixtures/uri-js-serialize.json') - -test('uri-js compatibility Parse', (t) => { - uriJsParseFixtures.forEach(( - [value, expected] - ) => { - if (value === '//10.10.000.10') { - return t.skip('Skipping //10.10.000.10 as it is not a valid URI per URI spec: https://datatracker.ietf.org/doc/html/rfc5954#section-4.1') - } - if (value.slice(0, 6) === 'mailto') { - return t.skip('Skipping mailto schema test as it is not supported by fastifyURI') - } - t.same(JSON.parse(JSON.stringify(fastURI.parse(value))), expected, 'Compatibility parse: ' + value) - }) - t.end() -}) - -test('uri-js compatibility serialize', (t) => { - uriJsSerializeFixtures.forEach(([value, expected]) => { - t.same( - fastURI.serialize(value), - expected, - 'Compatibility serialize: ' + JSON.stringify(value) - ) - }) - t.end() -}) diff --git a/build_vtk_bundle/node_modules/fast-uri/test/uri-js.test.js b/build_vtk_bundle/node_modules/fast-uri/test/uri-js.test.js deleted file mode 100644 index 109df95e..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/test/uri-js.test.js +++ /dev/null @@ -1,912 +0,0 @@ -'use strict' - -const test = require('tape') -const fastURI = require('..') - -/** - * URI.js - * - * @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/normalizing/resolving/serializing library for JavaScript. - * @author Gary Court - * @see http://github.com/garycourt/uri-js - */ - -/** - * Copyright 2011 Gary Court. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, are - * permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, this list of - * conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright notice, this list - * of conditions and the following disclaimer in the documentation and/or other materials - * provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY GARY COURT ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND - * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * The views and conclusions contained in the software and documentation are those of the - * authors and should not be interpreted as representing official policies, either expressed - * or implied, of Gary Court. - */ - -test('Acquire URI', (t) => { - t.ok(fastURI) - t.end() -}) - -test('URI Parsing', (t) => { - let components - - // scheme - components = fastURI.parse('uri:') - t.equal(components.error, undefined, 'scheme errors') - t.equal(components.scheme, 'uri', 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // userinfo - components = fastURI.parse('//@') - t.equal(components.error, undefined, 'userinfo errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, '', 'userinfo') - t.equal(components.host, '', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // host - components = fastURI.parse('//') - t.equal(components.error, undefined, 'host errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, '', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // port - components = fastURI.parse('//:') - t.equal(components.error, undefined, 'port errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, '', 'host') - t.equal(components.port, '', 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // path - components = fastURI.parse('') - t.equal(components.error, undefined, 'path errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // query - components = fastURI.parse('?') - t.equal(components.error, undefined, 'query errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, '', 'query') - t.equal(components.fragment, undefined, 'fragment') - - // fragment - components = fastURI.parse('#') - t.equal(components.error, undefined, 'fragment errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, '', 'fragment') - - // fragment with character tabulation - components = fastURI.parse('#\t') - t.equal(components.error, undefined, 'path errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, '%09', 'fragment') - - // fragment with line feed - components = fastURI.parse('#\n') - t.equal(components.error, undefined, 'path errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, '%0A', 'fragment') - - // fragment with line tabulation - components = fastURI.parse('#\v') - t.equal(components.error, undefined, 'path errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, '%0B', 'fragment') - - // fragment with form feed - components = fastURI.parse('#\f') - t.equal(components.error, undefined, 'path errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, '%0C', 'fragment') - - // fragment with carriage return - components = fastURI.parse('#\r') - t.equal(components.error, undefined, 'path errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, '%0D', 'fragment') - - // all - components = fastURI.parse('uri://user:pass@example.com:123/one/two.three?q1=a1&q2=a2#body') - t.equal(components.error, undefined, 'all errors') - t.equal(components.scheme, 'uri', 'scheme') - t.equal(components.userinfo, 'user:pass', 'userinfo') - t.equal(components.host, 'example.com', 'host') - t.equal(components.port, 123, 'port') - t.equal(components.path, '/one/two.three', 'path') - t.equal(components.query, 'q1=a1&q2=a2', 'query') - t.equal(components.fragment, 'body', 'fragment') - - // IPv4address - components = fastURI.parse('//10.10.10.10') - t.equal(components.error, undefined, 'IPv4address errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, '10.10.10.10', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // IPv6address - components = fastURI.parse('//[2001:db8::7]') - t.equal(components.error, undefined, 'IPv4address errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, '2001:db8::7', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // mixed IPv4address & IPv6address - components = fastURI.parse('//[::ffff:129.144.52.38]') - t.equal(components.error, undefined, 'IPv4address errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, '::ffff:129.144.52.38', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // mixed IPv4address & reg-name, example from terion-name (https://github.com/garycourt/uri-js/issues/4) - components = fastURI.parse('uri://10.10.10.10.example.com/en/process') - t.equal(components.error, undefined, 'mixed errors') - t.equal(components.scheme, 'uri', 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, '10.10.10.10.example.com', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '/en/process', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // IPv6address, example from bkw (https://github.com/garycourt/uri-js/pull/16) - components = fastURI.parse('//[2606:2800:220:1:248:1893:25c8:1946]/test') - t.equal(components.error, undefined, 'IPv6address errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, '2606:2800:220:1:248:1893:25c8:1946', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '/test', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // IPv6address, example from RFC 5952 - components = fastURI.parse('//[2001:db8::1]:80') - t.equal(components.error, undefined, 'IPv6address errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, '2001:db8::1', 'host') - t.equal(components.port, 80, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // IPv6address with zone identifier, RFC 6874 - components = fastURI.parse('//[fe80::a%25en1]') - t.equal(components.error, undefined, 'IPv4address errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, 'fe80::a%en1', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - // IPv6address with an unescaped interface specifier, example from pekkanikander (https://github.com/garycourt/uri-js/pull/22) - components = fastURI.parse('//[2001:db8::7%en0]') - t.equal(components.error, undefined, 'IPv6address interface errors') - t.equal(components.scheme, undefined, 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, '2001:db8::7%en0', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, '', 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - - t.end() -}) - -test('URI Serialization', (t) => { - let components = { - scheme: undefined, - userinfo: undefined, - host: undefined, - port: undefined, - path: undefined, - query: undefined, - fragment: undefined - } - t.equal(fastURI.serialize(components), '', 'Undefined Components') - - components = { - scheme: '', - userinfo: '', - host: '', - port: 0, - path: '', - query: '', - fragment: '' - } - t.equal(fastURI.serialize(components), '//@:0?#', 'Empty Components') - - components = { - scheme: 'uri', - userinfo: 'foo:bar', - host: 'example.com', - port: 1, - path: 'path', - query: 'query', - fragment: 'fragment' - } - t.equal(fastURI.serialize(components), 'uri://foo:bar@example.com:1/path?query#fragment', 'All Components') - - components = { - scheme: 'uri', - host: 'example.com', - port: '9000' - } - t.equal(fastURI.serialize(components), 'uri://example.com:9000', 'String port') - - t.equal(fastURI.serialize({ path: '//path' }), '/%2Fpath', 'Double slash path') - t.equal(fastURI.serialize({ path: 'foo:bar' }), 'foo%3Abar', 'Colon path') - t.equal(fastURI.serialize({ path: '?query' }), '%3Fquery', 'Query path') - - // mixed IPv4address & reg-name, example from terion-name (https://github.com/garycourt/uri-js/issues/4) - t.equal(fastURI.serialize({ host: '10.10.10.10.example.com' }), '//10.10.10.10.example.com', 'Mixed IPv4address & reg-name') - - // IPv6address - t.equal(fastURI.serialize({ host: '2001:db8::7' }), '//[2001:db8::7]', 'IPv6 Host') - t.equal(fastURI.serialize({ host: '::ffff:129.144.52.38' }), '//[::ffff:129.144.52.38]', 'IPv6 Mixed Host') - t.equal(fastURI.serialize({ host: '2606:2800:220:1:248:1893:25c8:1946' }), '//[2606:2800:220:1:248:1893:25c8:1946]', 'IPv6 Full Host') - - // IPv6address with zone identifier, RFC 6874 - t.equal(fastURI.serialize({ host: 'fe80::a%en1' }), '//[fe80::a%25en1]', 'IPv6 Zone Unescaped Host') - t.equal(fastURI.serialize({ host: 'fe80::a%25en1' }), '//[fe80::a%25en1]', 'IPv6 Zone Escaped Host') - - t.end() -}) - -test('URI Resolving', { skip: true }, (t) => { - // normal examples from RFC 3986 - const base = 'uri://a/b/c/d;p?q' - t.equal(fastURI.resolve(base, 'g:h'), 'g:h', 'g:h') - t.equal(fastURI.resolve(base, 'g'), 'uri://a/b/c/g', 'g') - t.equal(fastURI.resolve(base, './g'), 'uri://a/b/c/g', './g') - t.equal(fastURI.resolve(base, 'g/'), 'uri://a/b/c/g/', 'g/') - t.equal(fastURI.resolve(base, '/g'), 'uri://a/g', '/g') - t.equal(fastURI.resolve(base, '//g'), 'uri://g', '//g') - t.equal(fastURI.resolve(base, '?y'), 'uri://a/b/c/d;p?y', '?y') - t.equal(fastURI.resolve(base, 'g?y'), 'uri://a/b/c/g?y', 'g?y') - t.equal(fastURI.resolve(base, '#s'), 'uri://a/b/c/d;p?q#s', '#s') - t.equal(fastURI.resolve(base, 'g#s'), 'uri://a/b/c/g#s', 'g#s') - t.equal(fastURI.resolve(base, 'g?y#s'), 'uri://a/b/c/g?y#s', 'g?y#s') - t.equal(fastURI.resolve(base, ';x'), 'uri://a/b/c/;x', ';x') - t.equal(fastURI.resolve(base, 'g;x'), 'uri://a/b/c/g;x', 'g;x') - t.equal(fastURI.resolve(base, 'g;x?y#s'), 'uri://a/b/c/g;x?y#s', 'g;x?y#s') - t.equal(fastURI.resolve(base, ''), 'uri://a/b/c/d;p?q', '') - t.equal(fastURI.resolve(base, '.'), 'uri://a/b/c/', '.') - t.equal(fastURI.resolve(base, './'), 'uri://a/b/c/', './') - t.equal(fastURI.resolve(base, '..'), 'uri://a/b/', '..') - t.equal(fastURI.resolve(base, '../'), 'uri://a/b/', '../') - t.equal(fastURI.resolve(base, '../g'), 'uri://a/b/g', '../g') - t.equal(fastURI.resolve(base, '../..'), 'uri://a/', '../..') - t.equal(fastURI.resolve(base, '../../'), 'uri://a/', '../../') - t.equal(fastURI.resolve(base, '../../g'), 'uri://a/g', '../../g') - - // abnormal examples from RFC 3986 - t.equal(fastURI.resolve(base, '../../../g'), 'uri://a/g', '../../../g') - t.equal(fastURI.resolve(base, '../../../../g'), 'uri://a/g', '../../../../g') - - t.equal(fastURI.resolve(base, '/./g'), 'uri://a/g', '/./g') - t.equal(fastURI.resolve(base, '/../g'), 'uri://a/g', '/../g') - t.equal(fastURI.resolve(base, 'g.'), 'uri://a/b/c/g.', 'g.') - t.equal(fastURI.resolve(base, '.g'), 'uri://a/b/c/.g', '.g') - t.equal(fastURI.resolve(base, 'g..'), 'uri://a/b/c/g..', 'g..') - t.equal(fastURI.resolve(base, '..g'), 'uri://a/b/c/..g', '..g') - - t.equal(fastURI.resolve(base, './../g'), 'uri://a/b/g', './../g') - t.equal(fastURI.resolve(base, './g/.'), 'uri://a/b/c/g/', './g/.') - t.equal(fastURI.resolve(base, 'g/./h'), 'uri://a/b/c/g/h', 'g/./h') - t.equal(fastURI.resolve(base, 'g/../h'), 'uri://a/b/c/h', 'g/../h') - t.equal(fastURI.resolve(base, 'g;x=1/./y'), 'uri://a/b/c/g;x=1/y', 'g;x=1/./y') - t.equal(fastURI.resolve(base, 'g;x=1/../y'), 'uri://a/b/c/y', 'g;x=1/../y') - - t.equal(fastURI.resolve(base, 'g?y/./x'), 'uri://a/b/c/g?y/./x', 'g?y/./x') - t.equal(fastURI.resolve(base, 'g?y/../x'), 'uri://a/b/c/g?y/../x', 'g?y/../x') - t.equal(fastURI.resolve(base, 'g#s/./x'), 'uri://a/b/c/g#s/./x', 'g#s/./x') - t.equal(fastURI.resolve(base, 'g#s/../x'), 'uri://a/b/c/g#s/../x', 'g#s/../x') - - t.equal(fastURI.resolve(base, 'uri:g'), 'uri:g', 'uri:g') - t.equal(fastURI.resolve(base, 'uri:g', { tolerant: true }), 'uri://a/b/c/g', 'uri:g') - - // examples by PAEz - t.equal(fastURI.resolve('//www.g.com/', '/adf\ngf'), '//www.g.com/adf%0Agf', '/adf\\ngf') - t.equal(fastURI.resolve('//www.g.com/error\n/bleh/bleh', '..'), '//www.g.com/error%0A/', '//www.g.com/error\\n/bleh/bleh') - - t.end() -}) - -test('URI Normalizing', { skip: true }, (t) => { - // test from RFC 3987 - t.equal(fastURI.normalize('uri://www.example.org/red%09ros\xE9#red'), 'uri://www.example.org/red%09ros%C3%A9#red') - - // IPv4address - t.equal(fastURI.normalize('//192.068.001.000'), '//192.68.1.0') - - // IPv6address, example from RFC 3513 - t.equal(fastURI.normalize('http://[1080::8:800:200C:417A]/'), 'http://[1080::8:800:200c:417a]/') - - // IPv6address, examples from RFC 5952 - t.equal(fastURI.normalize('//[2001:0db8::0001]/'), '//[2001:db8::1]/') - t.equal(fastURI.normalize('//[2001:db8::1:0000:1]/'), '//[2001:db8::1:0:1]/') - t.equal(fastURI.normalize('//[2001:db8:0:0:0:0:2:1]/'), '//[2001:db8::2:1]/') - t.equal(fastURI.normalize('//[2001:db8:0:1:1:1:1:1]/'), '//[2001:db8:0:1:1:1:1:1]/') - t.equal(fastURI.normalize('//[2001:0:0:1:0:0:0:1]/'), '//[2001:0:0:1::1]/') - t.equal(fastURI.normalize('//[2001:db8:0:0:1:0:0:1]/'), '//[2001:db8::1:0:0:1]/') - t.equal(fastURI.normalize('//[2001:DB8::1]/'), '//[2001:db8::1]/') - t.equal(fastURI.normalize('//[0:0:0:0:0:ffff:192.0.2.1]/'), '//[::ffff:192.0.2.1]/') - - // Mixed IPv4 and IPv6 address - t.equal(fastURI.normalize('//[1:2:3:4:5:6:192.0.2.1]/'), '//[1:2:3:4:5:6:192.0.2.1]/') - t.equal(fastURI.normalize('//[1:2:3:4:5:6:192.068.001.000]/'), '//[1:2:3:4:5:6:192.68.1.0]/') - - t.end() -}) - -test('URI Equals', (t) => { - // test from RFC 3986 - t.equal(fastURI.equal('example://a/b/c/%7Bfoo%7D', 'eXAMPLE://a/./b/../b/%63/%7bfoo%7d'), true) - - // test from RFC 3987 - t.equal(fastURI.equal('http://example.org/~user', 'http://example.org/%7euser'), true) - - t.end() -}) - -test('Escape Component', { skip: true }, (t) => { - let chr - for (let d = 0; d <= 129; ++d) { - chr = String.fromCharCode(d) - if (!chr.match(/[$&+,;=]/)) { - t.equal(fastURI.escapeComponent(chr), encodeURIComponent(chr)) - } else { - t.equal(fastURI.escapeComponent(chr), chr) - } - } - t.equal(fastURI.escapeComponent('\u00c0'), encodeURIComponent('\u00c0')) - t.equal(fastURI.escapeComponent('\u07ff'), encodeURIComponent('\u07ff')) - t.equal(fastURI.escapeComponent('\u0800'), encodeURIComponent('\u0800')) - t.equal(fastURI.escapeComponent('\u30a2'), encodeURIComponent('\u30a2')) - t.end() -}) - -test('Unescape Component', { skip: true }, (t) => { - let chr - for (let d = 0; d <= 129; ++d) { - chr = String.fromCharCode(d) - t.equal(fastURI.unescapeComponent(encodeURIComponent(chr)), chr) - } - t.equal(fastURI.unescapeComponent(encodeURIComponent('\u00c0')), '\u00c0') - t.equal(fastURI.unescapeComponent(encodeURIComponent('\u07ff')), '\u07ff') - t.equal(fastURI.unescapeComponent(encodeURIComponent('\u0800')), '\u0800') - t.equal(fastURI.unescapeComponent(encodeURIComponent('\u30a2')), '\u30a2') - t.end() -}) - -const IRI_OPTION = { iri: true, unicodeSupport: true } - -test('IRI Parsing', { skip: true }, (t) => { - const components = fastURI.parse('uri://us\xA0er:pa\uD7FFss@example.com:123/o\uF900ne/t\uFDCFwo.t\uFDF0hree?q1=a1\uF8FF\uE000&q2=a2#bo\uFFEFdy', IRI_OPTION) - t.equal(components.error, undefined, 'all errors') - t.equal(components.scheme, 'uri', 'scheme') - t.equal(components.userinfo, 'us\xA0er:pa\uD7FFss', 'userinfo') - t.equal(components.host, 'example.com', 'host') - t.equal(components.port, 123, 'port') - t.equal(components.path, '/o\uF900ne/t\uFDCFwo.t\uFDF0hree', 'path') - t.equal(components.query, 'q1=a1\uF8FF\uE000&q2=a2', 'query') - t.equal(components.fragment, 'bo\uFFEFdy', 'fragment') - t.end() -}) - -test('IRI Serialization', { skip: true }, (t) => { - const components = { - scheme: 'uri', - userinfo: 'us\xA0er:pa\uD7FFss', - host: 'example.com', - port: 123, - path: '/o\uF900ne/t\uFDCFwo.t\uFDF0hree', - query: 'q1=a1\uF8FF\uE000&q2=a2', - fragment: 'bo\uFFEFdy\uE001' - } - t.equal(fastURI.serialize(components, IRI_OPTION), 'uri://us\xA0er:pa\uD7FFss@example.com:123/o\uF900ne/t\uFDCFwo.t\uFDF0hree?q1=a1\uF8FF\uE000&q2=a2#bo\uFFEFdy%EE%80%81') - t.end() -}) - -test('IRI Normalizing', { skip: true }, (t) => { - t.equal(fastURI.normalize('uri://www.example.org/red%09ros\xE9#red', IRI_OPTION), 'uri://www.example.org/red%09ros\xE9#red') - t.end() -}) - -test('IRI Equals', { skip: true }, (t) => { - // example from RFC 3987 - t.equal(fastURI.equal('example://a/b/c/%7Bfoo%7D/ros\xE9', 'eXAMPLE://a/./b/../b/%63/%7bfoo%7d/ros%C3%A9', IRI_OPTION), true) - t.end() -}) - -test('Convert IRI to URI', { skip: true }, (t) => { - // example from RFC 3987 - t.equal(fastURI.serialize(fastURI.parse('uri://www.example.org/red%09ros\xE9#red', IRI_OPTION)), 'uri://www.example.org/red%09ros%C3%A9#red') - - // Internationalized Domain Name conversion via punycode example from RFC 3987 - t.equal(fastURI.serialize(fastURI.parse('uri://r\xE9sum\xE9.example.org', { iri: true, domainHost: true }), { domainHost: true }), 'uri://xn--rsum-bpad.example.org') - t.end() -}) - -test('Convert URI to IRI', { skip: true }, (t) => { - // examples from RFC 3987 - t.equal(fastURI.serialize(fastURI.parse('uri://www.example.org/D%C3%BCrst'), IRI_OPTION), 'uri://www.example.org/D\xFCrst') - t.equal(fastURI.serialize(fastURI.parse('uri://www.example.org/D%FCrst'), IRI_OPTION), 'uri://www.example.org/D%FCrst') - t.equal(fastURI.serialize(fastURI.parse('uri://xn--99zt52a.example.org/%e2%80%ae'), IRI_OPTION), 'uri://xn--99zt52a.example.org/%E2%80%AE') // or uri://\u7D0D\u8C46.example.org/%E2%80%AE - - // Internationalized Domain Name conversion via punycode example from RFC 3987 - t.equal(fastURI.serialize(fastURI.parse('uri://xn--rsum-bpad.example.org', { domainHost: true }), { iri: true, domainHost: true }), 'uri://r\xE9sum\xE9.example.org') - t.end() -}) - -if (fastURI.SCHEMES.http) { - test('HTTP Equals', (t) => { - // test from RFC 2616 - t.equal(fastURI.equal('http://abc.com:80/~smith/home.html', 'http://abc.com/~smith/home.html'), true) - t.equal(fastURI.equal('http://ABC.com/%7Esmith/home.html', 'http://abc.com/~smith/home.html'), true) - t.equal(fastURI.equal('http://ABC.com:/%7esmith/home.html', 'http://abc.com/~smith/home.html'), true) - t.equal(fastURI.equal('HTTP://ABC.COM', 'http://abc.com/'), true) - // test from RFC 3986 - t.equal(fastURI.equal('http://example.com:/', 'http://example.com:80/'), true) - t.end() - }) -} - -if (fastURI.SCHEMES.https) { - test('HTTPS Equals', (t) => { - t.equal(fastURI.equal('https://example.com', 'https://example.com:443/'), true) - t.equal(fastURI.equal('https://example.com:/', 'https://example.com:443/'), true) - t.end() - }) -} - -if (fastURI.SCHEMES.urn) { - test('URN Parsing', (t) => { - // example from RFC 2141 - const components = fastURI.parse('urn:foo:a123,456') - t.equal(components.error, undefined, 'errors') - t.equal(components.scheme, 'urn', 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, undefined, 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - t.equal(components.nid, 'foo', 'nid') - t.equal(components.nss, 'a123,456', 'nss') - t.end() - }) - - test('URN Serialization', (t) => { - // example from RFC 2141 - const components = { - scheme: 'urn', - nid: 'foo', - nss: 'a123,456' - } - t.equal(fastURI.serialize(components), 'urn:foo:a123,456') - t.end() - }) - - test('URN Equals', { skip: true }, (t) => { - // test from RFC 2141 - t.equal(fastURI.equal('urn:foo:a123,456', 'urn:foo:a123,456'), true) - t.equal(fastURI.equal('urn:foo:a123,456', 'URN:foo:a123,456'), true) - t.equal(fastURI.equal('urn:foo:a123,456', 'urn:FOO:a123,456'), true) - t.equal(fastURI.equal('urn:foo:a123,456', 'urn:foo:A123,456'), false) - t.equal(fastURI.equal('urn:foo:a123%2C456', 'URN:FOO:a123%2c456'), true) - t.end() - }) - - test('URN Resolving', (t) => { - // example from epoberezkin - t.equal(fastURI.resolve('', 'urn:some:ip:prop'), 'urn:some:ip:prop') - t.equal(fastURI.resolve('#', 'urn:some:ip:prop'), 'urn:some:ip:prop') - t.equal(fastURI.resolve('urn:some:ip:prop', 'urn:some:ip:prop'), 'urn:some:ip:prop') - t.equal(fastURI.resolve('urn:some:other:prop', 'urn:some:ip:prop'), 'urn:some:ip:prop') - t.end() - }) - - test('UUID Parsing', (t) => { - // example from RFC 4122 - let components = fastURI.parse('urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6') - t.equal(components.error, undefined, 'errors') - t.equal(components.scheme, 'urn', 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, undefined, 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - t.equal(components.nid, 'uuid', 'nid') - t.equal(components.nss, undefined, 'nss') - t.equal(components.uuid, 'f81d4fae-7dec-11d0-a765-00a0c91e6bf6', 'uuid') - - components = fastURI.parse('urn:uuid:notauuid-7dec-11d0-a765-00a0c91e6bf6') - t.notEqual(components.error, undefined, 'errors') - t.end() - }) - - test('UUID Serialization', (t) => { - // example from RFC 4122 - let components = { - scheme: 'urn', - nid: 'uuid', - uuid: 'f81d4fae-7dec-11d0-a765-00a0c91e6bf6' - } - t.equal(fastURI.serialize(components), 'urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6') - - components = { - scheme: 'urn', - nid: 'uuid', - uuid: 'notauuid-7dec-11d0-a765-00a0c91e6bf6' - } - t.equal(fastURI.serialize(components), 'urn:uuid:notauuid-7dec-11d0-a765-00a0c91e6bf6') - t.end() - }) - - test('UUID Equals', (t) => { - t.equal(fastURI.equal('URN:UUID:F81D4FAE-7DEC-11D0-A765-00A0C91E6BF6', 'urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6'), true) - t.end() - }) - - test('URN NID Override', (t) => { - let components = fastURI.parse('urn:foo:f81d4fae-7dec-11d0-a765-00a0c91e6bf6', { nid: 'uuid' }) - t.equal(components.error, undefined, 'errors') - t.equal(components.scheme, 'urn', 'scheme') - t.equal(components.path, undefined, 'path') - t.equal(components.nid, 'foo', 'nid') - t.equal(components.nss, undefined, 'nss') - t.equal(components.uuid, 'f81d4fae-7dec-11d0-a765-00a0c91e6bf6', 'uuid') - - components = { - scheme: 'urn', - nid: 'foo', - uuid: 'f81d4fae-7dec-11d0-a765-00a0c91e6bf6' - } - t.equal(fastURI.serialize(components, { nid: 'uuid' }), 'urn:foo:f81d4fae-7dec-11d0-a765-00a0c91e6bf6') - t.end() - }) -} - -if (fastURI.SCHEMES.mailto) { - test('Mailto Parse', (t) => { - let components - - // tests from RFC 6068 - - components = fastURI.parse('mailto:chris@example.com') - t.equal(components.error, undefined, 'error') - t.equal(components.scheme, 'mailto', 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, undefined, 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, undefined, 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - t.deepEqual(components.to, ['chris@example.com'], 'to') - t.equal(components.subject, undefined, 'subject') - t.equal(components.body, undefined, 'body') - t.equal(components.headers, undefined, 'headers') - - components = fastURI.parse('mailto:infobot@example.com?subject=current-issue') - t.deepEqual(components.to, ['infobot@example.com'], 'to') - t.equal(components.subject, 'current-issue', 'subject') - - components = fastURI.parse('mailto:infobot@example.com?body=send%20current-issue') - t.deepEqual(components.to, ['infobot@example.com'], 'to') - t.equal(components.body, 'send current-issue', 'body') - - components = fastURI.parse('mailto:infobot@example.com?body=send%20current-issue%0D%0Asend%20index') - t.deepEqual(components.to, ['infobot@example.com'], 'to') - t.equal(components.body, 'send current-issue\x0D\x0Asend index', 'body') - - components = fastURI.parse('mailto:list@example.org?In-Reply-To=%3C3469A91.D10AF4C@example.com%3E') - t.deepEqual(components.to, ['list@example.org'], 'to') - t.deepEqual(components.headers, { 'In-Reply-To': '<3469A91.D10AF4C@example.com>' }, 'headers') - - components = fastURI.parse('mailto:majordomo@example.com?body=subscribe%20bamboo-l') - t.deepEqual(components.to, ['majordomo@example.com'], 'to') - t.equal(components.body, 'subscribe bamboo-l', 'body') - - components = fastURI.parse('mailto:joe@example.com?cc=bob@example.com&body=hello') - t.deepEqual(components.to, ['joe@example.com'], 'to') - t.equal(components.body, 'hello', 'body') - t.deepEqual(components.headers, { cc: 'bob@example.com' }, 'headers') - - components = fastURI.parse('mailto:joe@example.com?cc=bob@example.com?body=hello') - if (fastURI.VALIDATE_SUPPORT) t.ok(components.error, 'invalid header fields') - - components = fastURI.parse('mailto:gorby%25kremvax@example.com') - t.deepEqual(components.to, ['gorby%kremvax@example.com'], 'to gorby%kremvax@example.com') - - components = fastURI.parse('mailto:unlikely%3Faddress@example.com?blat=foop') - t.deepEqual(components.to, ['unlikely?address@example.com'], 'to unlikely?address@example.com') - t.deepEqual(components.headers, { blat: 'foop' }, 'headers') - - components = fastURI.parse('mailto:Mike%26family@example.org') - t.deepEqual(components.to, ['Mike&family@example.org'], 'to Mike&family@example.org') - - components = fastURI.parse('mailto:%22not%40me%22@example.org') - t.deepEqual(components.to, ['"not@me"@example.org'], 'to ' + '"not@me"@example.org') - - components = fastURI.parse('mailto:%22oh%5C%5Cno%22@example.org') - t.deepEqual(components.to, ['"oh\\\\no"@example.org'], 'to ' + '"oh\\\\no"@example.org') - - components = fastURI.parse("mailto:%22%5C%5C%5C%22it's%5C%20ugly%5C%5C%5C%22%22@example.org") - t.deepEqual(components.to, ['"\\\\\\"it\'s\\ ugly\\\\\\""@example.org'], 'to ' + '"\\\\\\"it\'s\\ ugly\\\\\\""@example.org') - - components = fastURI.parse('mailto:user@example.org?subject=caf%C3%A9') - t.deepEqual(components.to, ['user@example.org'], 'to') - t.equal(components.subject, 'caf\xE9', 'subject') - - components = fastURI.parse('mailto:user@example.org?subject=%3D%3Futf-8%3FQ%3Fcaf%3DC3%3DA9%3F%3D') - t.deepEqual(components.to, ['user@example.org'], 'to') - t.equal(components.subject, '=?utf-8?Q?caf=C3=A9?=', 'subject') // TODO: Verify this - - components = fastURI.parse('mailto:user@example.org?subject=%3D%3Fiso-8859-1%3FQ%3Fcaf%3DE9%3F%3D') - t.deepEqual(components.to, ['user@example.org'], 'to') - t.equal(components.subject, '=?iso-8859-1?Q?caf=E9?=', 'subject') // TODO: Verify this - - components = fastURI.parse('mailto:user@example.org?subject=caf%C3%A9&body=caf%C3%A9') - t.deepEqual(components.to, ['user@example.org'], 'to') - t.equal(components.subject, 'caf\xE9', 'subject') - t.equal(components.body, 'caf\xE9', 'body') - - if (fastURI.IRI_SUPPORT) { - components = fastURI.parse('mailto:user@%E7%B4%8D%E8%B1%86.example.org?subject=Test&body=NATTO') - t.deepEqual(components.to, ['user@xn--99zt52a.example.org'], 'to') - t.equal(components.subject, 'Test', 'subject') - t.equal(components.body, 'NATTO', 'body') - } - - t.end() - }) - - test('Mailto Serialize', (t) => { - // tests from RFC 6068 - t.equal(fastURI.serialize({ scheme: 'mailto', to: ['chris@example.com'] }), 'mailto:chris@example.com') - t.equal(fastURI.serialize({ scheme: 'mailto', to: ['infobot@example.com'], body: 'current-issue' }), 'mailto:infobot@example.com?body=current-issue') - t.equal(fastURI.serialize({ scheme: 'mailto', to: ['infobot@example.com'], body: 'send current-issue' }), 'mailto:infobot@example.com?body=send%20current-issue') - t.equal(fastURI.serialize({ scheme: 'mailto', to: ['infobot@example.com'], body: 'send current-issue\x0D\x0Asend index' }), 'mailto:infobot@example.com?body=send%20current-issue%0D%0Asend%20index') - t.equal(fastURI.serialize({ scheme: 'mailto', to: ['list@example.org'], headers: { 'In-Reply-To': '<3469A91.D10AF4C@example.com>' } }), 'mailto:list@example.org?In-Reply-To=%3C3469A91.D10AF4C@example.com%3E') - t.equal(fastURI.serialize({ scheme: 'mailto', to: ['majordomo@example.com'], body: 'subscribe bamboo-l' }), 'mailto:majordomo@example.com?body=subscribe%20bamboo-l') - t.equal(fastURI.serialize({ scheme: 'mailto', to: ['joe@example.com'], headers: { cc: 'bob@example.com', body: 'hello' } }), 'mailto:joe@example.com?cc=bob@example.com&body=hello') - t.equal(fastURI.serialize({ scheme: 'mailto', to: ['gorby%25kremvax@example.com'] }), 'mailto:gorby%25kremvax@example.com') - t.equal(fastURI.serialize({ scheme: 'mailto', to: ['unlikely%3Faddress@example.com'], headers: { blat: 'foop' } }), 'mailto:unlikely%3Faddress@example.com?blat=foop') - t.equal(fastURI.serialize({ scheme: 'mailto', to: ['Mike&family@example.org'] }), 'mailto:Mike%26family@example.org') - t.equal(fastURI.serialize({ scheme: 'mailto', to: ['"not@me"@example.org'] }), 'mailto:%22not%40me%22@example.org') - t.equal(fastURI.serialize({ scheme: 'mailto', to: ['"oh\\\\no"@example.org'] }), 'mailto:%22oh%5C%5Cno%22@example.org') - t.equal(fastURI.serialize({ scheme: 'mailto', to: ['"\\\\\\"it\'s\\ ugly\\\\\\""@example.org'] }), "mailto:%22%5C%5C%5C%22it's%5C%20ugly%5C%5C%5C%22%22@example.org") - t.equal(fastURI.serialize({ scheme: 'mailto', to: ['user@example.org'], subject: 'caf\xE9' }), 'mailto:user@example.org?subject=caf%C3%A9') - t.equal(fastURI.serialize({ scheme: 'mailto', to: ['user@example.org'], subject: '=?utf-8?Q?caf=C3=A9?=' }), 'mailto:user@example.org?subject=%3D%3Futf-8%3FQ%3Fcaf%3DC3%3DA9%3F%3D') - t.equal(fastURI.serialize({ scheme: 'mailto', to: ['user@example.org'], subject: '=?iso-8859-1?Q?caf=E9?=' }), 'mailto:user@example.org?subject=%3D%3Fiso-8859-1%3FQ%3Fcaf%3DE9%3F%3D') - t.equal(fastURI.serialize({ scheme: 'mailto', to: ['user@example.org'], subject: 'caf\xE9', body: 'caf\xE9' }), 'mailto:user@example.org?subject=caf%C3%A9&body=caf%C3%A9') - if (fastURI.IRI_SUPPORT) { - t.equal(fastURI.serialize({ scheme: 'mailto', to: ['us\xE9r@\u7d0d\u8c46.example.org'], subject: 'Test', body: 'NATTO' }), 'mailto:us%C3%A9r@xn--99zt52a.example.org?subject=Test&body=NATTO') - } - t.end() - }) - - test('Mailto Equals', (t) => { - // tests from RFC 6068 - t.equal(fastURI.equal('mailto:addr1@an.example,addr2@an.example', 'mailto:?to=addr1@an.example,addr2@an.example'), true) - t.equal(fastURI.equal('mailto:?to=addr1@an.example,addr2@an.example', 'mailto:addr1@an.example?to=addr2@an.example'), true) - t.end() - }) -} - -if (fastURI.SCHEMES.ws) { - test('WS Parse', (t) => { - let components - - // example from RFC 6455, Sec 4.1 - components = fastURI.parse('ws://example.com/chat') - t.equal(components.error, undefined, 'error') - t.equal(components.scheme, 'ws', 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, 'example.com', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, undefined, 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - t.equal(components.resourceName, '/chat', 'resourceName') - t.equal(components.secure, false, 'secure') - - components = fastURI.parse('ws://example.com/foo?bar=baz') - t.equal(components.error, undefined, 'error') - t.equal(components.scheme, 'ws', 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, 'example.com', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, undefined, 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - t.equal(components.resourceName, '/foo?bar=baz', 'resourceName') - t.equal(components.secure, false, 'secure') - - components = fastURI.parse('ws://example.com/?bar=baz') - t.equal(components.resourceName, '/?bar=baz', 'resourceName') - - t.end() - }) - - test('WS Serialize', (t) => { - t.equal(fastURI.serialize({ scheme: 'ws' }), 'ws:') - t.equal(fastURI.serialize({ scheme: 'ws', host: 'example.com' }), 'ws://example.com') - t.equal(fastURI.serialize({ scheme: 'ws', resourceName: '/' }), 'ws:') - t.equal(fastURI.serialize({ scheme: 'ws', resourceName: '/foo' }), 'ws:/foo') - t.equal(fastURI.serialize({ scheme: 'ws', resourceName: '/foo?bar' }), 'ws:/foo?bar') - t.equal(fastURI.serialize({ scheme: 'ws', secure: false }), 'ws:') - t.equal(fastURI.serialize({ scheme: 'ws', secure: true }), 'wss:') - t.equal(fastURI.serialize({ scheme: 'ws', host: 'example.com', resourceName: '/foo' }), 'ws://example.com/foo') - t.equal(fastURI.serialize({ scheme: 'ws', host: 'example.com', resourceName: '/foo?bar' }), 'ws://example.com/foo?bar') - t.equal(fastURI.serialize({ scheme: 'ws', host: 'example.com', secure: false }), 'ws://example.com') - t.equal(fastURI.serialize({ scheme: 'ws', host: 'example.com', secure: true }), 'wss://example.com') - t.equal(fastURI.serialize({ scheme: 'ws', host: 'example.com', resourceName: '/foo?bar', secure: false }), 'ws://example.com/foo?bar') - t.equal(fastURI.serialize({ scheme: 'ws', host: 'example.com', resourceName: '/foo?bar', secure: true }), 'wss://example.com/foo?bar') - t.end() - }) - - test('WS Equal', (t) => { - t.equal(fastURI.equal('WS://ABC.COM:80/chat#one', 'ws://abc.com/chat'), true) - t.end() - }) - - test('WS Normalize', (t) => { - t.equal(fastURI.normalize('ws://example.com:80/foo#hash'), 'ws://example.com/foo') - t.end() - }) -} - -if (fastURI.SCHEMES.wss) { - test('WSS Parse', (t) => { - let components - - // example from RFC 6455, Sec 4.1 - components = fastURI.parse('wss://example.com/chat') - t.equal(components.error, undefined, 'error') - t.equal(components.scheme, 'wss', 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, 'example.com', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, undefined, 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - t.equal(components.resourceName, '/chat', 'resourceName') - t.equal(components.secure, true, 'secure') - - components = fastURI.parse('wss://example.com/foo?bar=baz') - t.equal(components.error, undefined, 'error') - t.equal(components.scheme, 'wss', 'scheme') - t.equal(components.userinfo, undefined, 'userinfo') - t.equal(components.host, 'example.com', 'host') - t.equal(components.port, undefined, 'port') - t.equal(components.path, undefined, 'path') - t.equal(components.query, undefined, 'query') - t.equal(components.fragment, undefined, 'fragment') - t.equal(components.resourceName, '/foo?bar=baz', 'resourceName') - t.equal(components.secure, true, 'secure') - - components = fastURI.parse('wss://example.com/?bar=baz') - t.equal(components.resourceName, '/?bar=baz', 'resourceName') - - t.end() - }) - - test('WSS Serialize', (t) => { - t.equal(fastURI.serialize({ scheme: 'wss' }), 'wss:') - t.equal(fastURI.serialize({ scheme: 'wss', host: 'example.com' }), 'wss://example.com') - t.equal(fastURI.serialize({ scheme: 'wss', resourceName: '/' }), 'wss:') - t.equal(fastURI.serialize({ scheme: 'wss', resourceName: '/foo' }), 'wss:/foo') - t.equal(fastURI.serialize({ scheme: 'wss', resourceName: '/foo?bar' }), 'wss:/foo?bar') - t.equal(fastURI.serialize({ scheme: 'wss', secure: false }), 'ws:') - t.equal(fastURI.serialize({ scheme: 'wss', secure: true }), 'wss:') - t.equal(fastURI.serialize({ scheme: 'wss', host: 'example.com', resourceName: '/foo' }), 'wss://example.com/foo') - t.equal(fastURI.serialize({ scheme: 'wss', host: 'example.com', resourceName: '/foo?bar' }), 'wss://example.com/foo?bar') - t.equal(fastURI.serialize({ scheme: 'wss', host: 'example.com', secure: false }), 'ws://example.com') - t.equal(fastURI.serialize({ scheme: 'wss', host: 'example.com', secure: true }), 'wss://example.com') - t.equal(fastURI.serialize({ scheme: 'wss', host: 'example.com', resourceName: '/foo?bar', secure: false }), 'ws://example.com/foo?bar') - t.equal(fastURI.serialize({ scheme: 'wss', host: 'example.com', resourceName: '/foo?bar', secure: true }), 'wss://example.com/foo?bar') - t.end() - }) - - test('WSS Equal', (t) => { - t.equal(fastURI.equal('WSS://ABC.COM:443/chat#one', 'wss://abc.com/chat'), true) - t.end() - }) - - test('WSS Normalize', (t) => { - t.equal(fastURI.normalize('wss://example.com:443/foo#hash'), 'wss://example.com/foo') - t.end() - }) -} diff --git a/build_vtk_bundle/node_modules/fast-uri/test/util.test.js b/build_vtk_bundle/node_modules/fast-uri/test/util.test.js deleted file mode 100644 index bbf7ebd8..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/test/util.test.js +++ /dev/null @@ -1,38 +0,0 @@ -'use strict' - -const test = require('tape') -const { - stringArrayToHexStripped, - removeDotSegments -} = require('../lib/utils') - -test('stringArrayToHexStripped', (t) => { - const testCases = [ - [['0', '0', '0', '0'], ''], - [['0', '0', '0', '1'], '1'], - [['0', '0', '1', '0'], '10'], - [['0', '1', '0', '0'], '100'], - [['1', '0', '0', '0'], '1000'], - [['1', '0', '0', '1'], '1001'], - ] - - t.plan(testCases.length) - - testCases.forEach(([input, expected]) => { - t.same(stringArrayToHexStripped(input), expected) - }) -}) - -// Just fixtures, because this function already tested by resolve -test('removeDotSegments', (t) => { - const testCases = [] - // https://github.com/fastify/fast-uri/issues/139 - testCases.push(['WS:/WS://1305G130505:1&%0D:1&C(XXXXX*)))))))XXX130505:UUVUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa$aaaaaaaaaaaa13a', - 'WS:/WS://1305G130505:1&%0D:1&C(XXXXX*)))))))XXX130505:UUVUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa$aaaaaaaaaaaa13a']) - - t.plan(testCases.length) - - testCases.forEach(([input, expected]) => { - t.same(removeDotSegments(input), expected) - }) -}) diff --git a/build_vtk_bundle/node_modules/fast-uri/tsconfig.json b/build_vtk_bundle/node_modules/fast-uri/tsconfig.json deleted file mode 100644 index 9ace90de..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "compilerOptions": { - "allowJs": true, - "checkJs": true, - "strict": true, - "noImplicitAny": true, - "target": "es2015" - } -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/fast-uri/types/index.d.ts b/build_vtk_bundle/node_modules/fast-uri/types/index.d.ts deleted file mode 100644 index c1481ba9..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/types/index.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -type FastUri = typeof fastUri - -declare namespace fastUri { - export interface URIComponent { - scheme?: string; - userinfo?: string; - host?: string; - port?: number | string; - path?: string; - query?: string; - fragment?: string; - reference?: string; - nid?: string; - nss?: string; - resourceName?: string; - secure?: boolean; - uuid?: string; - error?: string; - } - export interface Options { - scheme?: string; - reference?: string; - unicodeSupport?: boolean; - domainHost?: boolean; - absolutePath?: boolean; - tolerant?: boolean; - skipEscape?: boolean; - nid?: string; - } - - /** - * @deprecated Use Options instead - */ - export type options = Options - /** - * @deprecated Use URIComponent instead - */ - export type URIComponents = URIComponent - - export function normalize (uri: string, opts?: Options): string - export function normalize (uri: URIComponent, opts?: Options): URIComponent - export function normalize (uri: any, opts?: Options): any - - export function resolve (baseURI: string, relativeURI: string, options?: Options): string - - export function resolveComponent (base: URIComponent, relative: URIComponent, options?: Options, skipNormalization?: boolean): URIComponent - - export function parse (uri: string, opts?: Options): URIComponent - - export function serialize (component: URIComponent, opts?: Options): string - - export function equal (uriA: string, uriB: string): boolean - - export function resolve (base: string, path: string): string - - export const fastUri: FastUri - export { fastUri as default } -} - -export = fastUri diff --git a/build_vtk_bundle/node_modules/fast-uri/types/index.test-d.ts b/build_vtk_bundle/node_modules/fast-uri/types/index.test-d.ts deleted file mode 100644 index 02670ced..00000000 --- a/build_vtk_bundle/node_modules/fast-uri/types/index.test-d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import uri, { URIComponents, URIComponent, Options, options } from '..' -import { expectDeprecated, expectType } from 'tsd' - -const parsed = uri.parse('foo') -expectType(parsed) -const parsed2 = uri.parse('foo', { - domainHost: true, - scheme: 'https', - unicodeSupport: false -}) -expectType(parsed2) - -expectType({} as URIComponents) -expectDeprecated({} as URIComponents) - -expectType({} as options) -expectDeprecated({} as options) diff --git a/build_vtk_bundle/node_modules/fastest-levenshtein/.eslintrc.json b/build_vtk_bundle/node_modules/fastest-levenshtein/.eslintrc.json deleted file mode 100644 index 691f81ba..00000000 --- a/build_vtk_bundle/node_modules/fastest-levenshtein/.eslintrc.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parserOptions": { - "ecmaVersion": 2020 - }, - "extends": [ - "eslint:all", - "prettier", - "plugin:node/recommended", - "plugin:@typescript-eslint/eslint-recommended", - "plugin:@typescript-eslint/recommended" - ], - "parser": "@typescript-eslint/parser", - "plugins": ["@typescript-eslint"], - "rules": { - "capitalized-comments": "off", - "camelcase": "off", - "curly": ["error", "all"], - "id-length": "off", - "max-lines-per-function": "off", - "max-statements": "off", - "multiline-comment-style": "off", - "no-bitwise": "off", - "no-magic-numbers": "off", - "no-param-reassign": "off", - "no-plusplus": "off", - "node/no-unsupported-features/es-syntax": "off", - "one-var": "off", - "padded-blocks": "off" - } -} diff --git a/build_vtk_bundle/node_modules/fastest-levenshtein/.prettierrc b/build_vtk_bundle/node_modules/fastest-levenshtein/.prettierrc deleted file mode 100644 index 222861c3..00000000 --- a/build_vtk_bundle/node_modules/fastest-levenshtein/.prettierrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "tabWidth": 2, - "useTabs": false -} diff --git a/build_vtk_bundle/node_modules/fastest-levenshtein/.travis.yml b/build_vtk_bundle/node_modules/fastest-levenshtein/.travis.yml deleted file mode 100644 index 7b2f12d1..00000000 --- a/build_vtk_bundle/node_modules/fastest-levenshtein/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -sudo: false - -language: node_js - -os: - - linux - - osx - - windows - -arch: amd64 - -node_js: - - 14 - - 13 - - 12 - - 11 - - 10 - -script: - - npm test - - npm run test:coveralls \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/fastest-levenshtein/LICENSE.md b/build_vtk_bundle/node_modules/fastest-levenshtein/LICENSE.md deleted file mode 100644 index 0e62da30..00000000 --- a/build_vtk_bundle/node_modules/fastest-levenshtein/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2020 Kasper Unn Weihe - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/fastest-levenshtein/README.md b/build_vtk_bundle/node_modules/fastest-levenshtein/README.md deleted file mode 100644 index 4d19e880..00000000 --- a/build_vtk_bundle/node_modules/fastest-levenshtein/README.md +++ /dev/null @@ -1,57 +0,0 @@ -# fastest-levenshtein :rocket: -> Fastest JS/TS implemenation of [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance).
-> Measure the difference between two strings. - -[![Build Status](https://travis-ci.org/ka-weihe/fastest-levenshtein.svg?branch=master)](https://travis-ci.org/ka-weihe/fastest-levenshtein) -[![Coverage Status](https://coveralls.io/repos/github/ka-weihe/node-levenshtein/badge.svg?branch=master)](https://coveralls.io/github/ka-weihe/node-levenshtein?branch=master) -[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/ka-weihe/fastest-levenshtein.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/ka-weihe/fastest-levenshtein/context:javascript) -![npm](https://img.shields.io/npm/dm/fastest-levenshtein) -```bash -$ npm i fastest-levenshtein -``` - -## Usage -### Node -```javascript -const {distance, closest} = require('fastest-levenshtein') - -// Print levenshtein-distance between 'fast' and 'faster' -console.log(distance('fast', 'faster')) -//=> 2 - -// Print string from array with lowest edit-distance to 'fast' -console.log(closest('fast', ['slow', 'faster', 'fastest'])) -//=> 'faster' -``` - -### Deno -```javascript -import {distance, closest} from 'https://deno.land/x/fastest_levenshtein/mod.ts' - -// Print levenshtein-distance between 'fast' and 'faster' -console.log(distance('fast', 'faster')) -//=> 2 - -// Print string from array with lowest edit-distance to 'fast' -console.log(closest('fast', ['slow', 'faster', 'fastest'])) -//=> 'faster' -``` - -## Benchmark -I generated 500 pairs of strings with length N. I measured the ops/sec each library achieves to process all the given pairs. Higher is better. - -| Test Target | N=4 | N=8 | N=16 | N=32 | N=64 | N=128 | N=256 | N=512 | N=1024 | -|---------------------------|-------|-------|-------|------|-------|-------|-------|-------|--------| -| fastest-levenshtein | 44423 | 23702 | 10764 | 4595 | 1049 | 291.5 | 86.64 | 22.24 | 5.473 | -| js-levenshtein | 21261 | 10030 | 2939 | 824 | 223 | 57.62 | 14.77 | 3.717 | 0.934 | -| leven | 19688 | 6884 | 1606 | 436 | 117 | 30.34 | 7.604 | 1.929 | 0.478 | -| fast-levenshtein | 18577 | 6112 | 1265 | 345 | 89.41 | 22.70 | 5.676 | 1.428 | 0.348 | -| levenshtein-edit-distance | 22968 | 7445 | 1493 | 409 | 109 | 28.07 | 7.095 | 1.789 | 0.445 | - -### Relative Performance -This image shows the relative performance between `fastest-levenshtein` and `js-levenshtein` (the 2nd fastest). `fastest-levenshtein` is always a lot faster. y-axis shows "times faster". - -![Benchmark](/images/relaperf.png) - -## License -This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details diff --git a/build_vtk_bundle/node_modules/fastest-levenshtein/bench.js b/build_vtk_bundle/node_modules/fastest-levenshtein/bench.js deleted file mode 100644 index 1fd420bd..00000000 --- a/build_vtk_bundle/node_modules/fastest-levenshtein/bench.js +++ /dev/null @@ -1,96 +0,0 @@ -"use strict"; -exports.__esModule = true; -/* eslint-disable @typescript-eslint/no-var-requires */ -/* eslint-disable no-console */ -var Benchmark = require("benchmark"); -var mod_js_1 = require("./mod.js"); -var fast_levenshtein_1 = require("fast-levenshtein"); -var fs = require("fs"); -var jslevenshtein = require("js-levenshtein"); -var leven = require("leven"); -var levenshteinEditDistance = require("levenshtein-edit-distance"); -var suite = new Benchmark.Suite(); -var randomstring = function (length) { - var result = ""; - var characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; - var charactersLength = characters.length; - for (var i = 0; i < length; i++) { - result += characters.charAt(Math.floor(Math.random() * charactersLength)); - } - return result; -}; -var randomstringArr = function (stringSize, arraySize) { - var i = 0; - var arr = []; - for (i = 0; i < arraySize; i++) { - arr.push(randomstring(stringSize)); - } - return arr; -}; -var arrSize = 1000; -if (!fs.existsSync("data.json")) { - var data_1 = [ - randomstringArr(4, arrSize), - randomstringArr(8, arrSize), - randomstringArr(16, arrSize), - randomstringArr(32, arrSize), - randomstringArr(64, arrSize), - randomstringArr(128, arrSize), - randomstringArr(256, arrSize), - randomstringArr(512, arrSize), - randomstringArr(1024, arrSize), - ]; - fs.writeFileSync("data.json", JSON.stringify(data_1)); -} -var data = JSON.parse(fs.readFileSync("data.json", "utf8")); -var _loop_1 = function (i) { - var datapick = data[i]; - if (process.argv[2] !== "no") { - suite - .add("".concat(i, " - js-levenshtein"), function () { - for (var j = 0; j < arrSize - 1; j += 2) { - jslevenshtein(datapick[j], datapick[j + 1]); - } - }) - .add("".concat(i, " - leven"), function () { - for (var j = 0; j < arrSize - 1; j += 2) { - leven(datapick[j], datapick[j + 1]); - } - }) - .add("".concat(i, " - fast-levenshtein"), function () { - for (var j = 0; j < arrSize - 1; j += 2) { - (0, fast_levenshtein_1.get)(datapick[j], datapick[j + 1]); - } - }) - .add("".concat(i, " - levenshtein-edit-distance"), function () { - for (var j = 0; j < arrSize - 1; j += 2) { - levenshteinEditDistance(datapick[j], datapick[j + 1]); - } - }); - } - suite.add("".concat(i, " - fastest-levenshtein"), function () { - for (var j = 0; j < arrSize - 1; j += 2) { - (0, mod_js_1.distance)(datapick[j], datapick[j + 1]); - } - }); -}; -// BENCHMARKS -for (var i = 0; i < 9; i++) { - _loop_1(i); -} -var results = new Map(); -suite - .on("cycle", function (event) { - console.log(String(event.target)); - if (results.has(event.target.name[0])) { - results.get(event.target.name[0]).push(event.target.hz); - } - else { - results.set(event.target.name[0], [event.target.hz]); - } -}) - .on("complete", function () { - console.log(results); -}) - // run async - .run({ async: true }); diff --git a/build_vtk_bundle/node_modules/fastest-levenshtein/esm/mod.d.ts b/build_vtk_bundle/node_modules/fastest-levenshtein/esm/mod.d.ts deleted file mode 100644 index 50927ef5..00000000 --- a/build_vtk_bundle/node_modules/fastest-levenshtein/esm/mod.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -declare const distance: (a: string, b: string) => number; -declare const closest: (str: string, arr: readonly string[]) => string; -export { closest, distance }; -//# sourceMappingURL=mod.d.ts.map \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/fastest-levenshtein/esm/mod.d.ts.map b/build_vtk_bundle/node_modules/fastest-levenshtein/esm/mod.d.ts.map deleted file mode 100644 index 7fd5c175..00000000 --- a/build_vtk_bundle/node_modules/fastest-levenshtein/esm/mod.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../mod.ts"],"names":[],"mappings":"AAiHA,QAAA,MAAM,QAAQ,MAAO,MAAM,KAAK,MAAM,KAAG,MAaxC,CAAC;AAEF,QAAA,MAAM,OAAO,QAAS,MAAM,OAAO,SAAS,MAAM,EAAE,KAAG,MAWtD,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/fastest-levenshtein/esm/mod.js b/build_vtk_bundle/node_modules/fastest-levenshtein/esm/mod.js deleted file mode 100644 index 719f2b8f..00000000 --- a/build_vtk_bundle/node_modules/fastest-levenshtein/esm/mod.js +++ /dev/null @@ -1,138 +0,0 @@ -const peq = new Uint32Array(0x10000); -const myers_32 = (a, b) => { - const n = a.length; - const m = b.length; - const lst = 1 << (n - 1); - let pv = -1; - let mv = 0; - let sc = n; - let i = n; - while (i--) { - peq[a.charCodeAt(i)] |= 1 << i; - } - for (i = 0; i < m; i++) { - let eq = peq[b.charCodeAt(i)]; - const xv = eq | mv; - eq |= ((eq & pv) + pv) ^ pv; - mv |= ~(eq | pv); - pv &= eq; - if (mv & lst) { - sc++; - } - if (pv & lst) { - sc--; - } - mv = (mv << 1) | 1; - pv = (pv << 1) | ~(xv | mv); - mv &= xv; - } - i = n; - while (i--) { - peq[a.charCodeAt(i)] = 0; - } - return sc; -}; -const myers_x = (b, a) => { - const n = a.length; - const m = b.length; - const mhc = []; - const phc = []; - const hsize = Math.ceil(n / 32); - const vsize = Math.ceil(m / 32); - for (let i = 0; i < hsize; i++) { - phc[i] = -1; - mhc[i] = 0; - } - let j = 0; - for (; j < vsize - 1; j++) { - let mv = 0; - let pv = -1; - const start = j * 32; - const vlen = Math.min(32, m) + start; - for (let k = start; k < vlen; k++) { - peq[b.charCodeAt(k)] |= 1 << k; - } - for (let i = 0; i < n; i++) { - const eq = peq[a.charCodeAt(i)]; - const pb = (phc[(i / 32) | 0] >>> i) & 1; - const mb = (mhc[(i / 32) | 0] >>> i) & 1; - const xv = eq | mv; - const xh = ((((eq | mb) & pv) + pv) ^ pv) | eq | mb; - let ph = mv | ~(xh | pv); - let mh = pv & xh; - if ((ph >>> 31) ^ pb) { - phc[(i / 32) | 0] ^= 1 << i; - } - if ((mh >>> 31) ^ mb) { - mhc[(i / 32) | 0] ^= 1 << i; - } - ph = (ph << 1) | pb; - mh = (mh << 1) | mb; - pv = mh | ~(xv | ph); - mv = ph & xv; - } - for (let k = start; k < vlen; k++) { - peq[b.charCodeAt(k)] = 0; - } - } - let mv = 0; - let pv = -1; - const start = j * 32; - const vlen = Math.min(32, m - start) + start; - for (let k = start; k < vlen; k++) { - peq[b.charCodeAt(k)] |= 1 << k; - } - let score = m; - for (let i = 0; i < n; i++) { - const eq = peq[a.charCodeAt(i)]; - const pb = (phc[(i / 32) | 0] >>> i) & 1; - const mb = (mhc[(i / 32) | 0] >>> i) & 1; - const xv = eq | mv; - const xh = ((((eq | mb) & pv) + pv) ^ pv) | eq | mb; - let ph = mv | ~(xh | pv); - let mh = pv & xh; - score += (ph >>> (m - 1)) & 1; - score -= (mh >>> (m - 1)) & 1; - if ((ph >>> 31) ^ pb) { - phc[(i / 32) | 0] ^= 1 << i; - } - if ((mh >>> 31) ^ mb) { - mhc[(i / 32) | 0] ^= 1 << i; - } - ph = (ph << 1) | pb; - mh = (mh << 1) | mb; - pv = mh | ~(xv | ph); - mv = ph & xv; - } - for (let k = start; k < vlen; k++) { - peq[b.charCodeAt(k)] = 0; - } - return score; -}; -const distance = (a, b) => { - if (a.length < b.length) { - const tmp = b; - b = a; - a = tmp; - } - if (b.length === 0) { - return a.length; - } - if (a.length <= 32) { - return myers_32(a, b); - } - return myers_x(a, b); -}; -const closest = (str, arr) => { - let min_distance = Infinity; - let min_index = 0; - for (let i = 0; i < arr.length; i++) { - const dist = distance(str, arr[i]); - if (dist < min_distance) { - min_distance = dist; - min_index = i; - } - } - return arr[min_index]; -}; -export { closest, distance }; diff --git a/build_vtk_bundle/node_modules/fastest-levenshtein/mod.d.ts b/build_vtk_bundle/node_modules/fastest-levenshtein/mod.d.ts deleted file mode 100644 index b1b5ce7f..00000000 --- a/build_vtk_bundle/node_modules/fastest-levenshtein/mod.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare const distance: (a: string, b: string) => number; -declare const closest: (str: string, arr: readonly string[]) => string; -export { closest, distance }; diff --git a/build_vtk_bundle/node_modules/fastest-levenshtein/mod.js b/build_vtk_bundle/node_modules/fastest-levenshtein/mod.js deleted file mode 100644 index 6bc27459..00000000 --- a/build_vtk_bundle/node_modules/fastest-levenshtein/mod.js +++ /dev/null @@ -1,142 +0,0 @@ -"use strict"; -exports.__esModule = true; -exports.distance = exports.closest = void 0; -var peq = new Uint32Array(0x10000); -var myers_32 = function (a, b) { - var n = a.length; - var m = b.length; - var lst = 1 << (n - 1); - var pv = -1; - var mv = 0; - var sc = n; - var i = n; - while (i--) { - peq[a.charCodeAt(i)] |= 1 << i; - } - for (i = 0; i < m; i++) { - var eq = peq[b.charCodeAt(i)]; - var xv = eq | mv; - eq |= ((eq & pv) + pv) ^ pv; - mv |= ~(eq | pv); - pv &= eq; - if (mv & lst) { - sc++; - } - if (pv & lst) { - sc--; - } - mv = (mv << 1) | 1; - pv = (pv << 1) | ~(xv | mv); - mv &= xv; - } - i = n; - while (i--) { - peq[a.charCodeAt(i)] = 0; - } - return sc; -}; -var myers_x = function (b, a) { - var n = a.length; - var m = b.length; - var mhc = []; - var phc = []; - var hsize = Math.ceil(n / 32); - var vsize = Math.ceil(m / 32); - for (var i = 0; i < hsize; i++) { - phc[i] = -1; - mhc[i] = 0; - } - var j = 0; - for (; j < vsize - 1; j++) { - var mv_1 = 0; - var pv_1 = -1; - var start_1 = j * 32; - var vlen_1 = Math.min(32, m) + start_1; - for (var k = start_1; k < vlen_1; k++) { - peq[b.charCodeAt(k)] |= 1 << k; - } - for (var i = 0; i < n; i++) { - var eq = peq[a.charCodeAt(i)]; - var pb = (phc[(i / 32) | 0] >>> i) & 1; - var mb = (mhc[(i / 32) | 0] >>> i) & 1; - var xv = eq | mv_1; - var xh = ((((eq | mb) & pv_1) + pv_1) ^ pv_1) | eq | mb; - var ph = mv_1 | ~(xh | pv_1); - var mh = pv_1 & xh; - if ((ph >>> 31) ^ pb) { - phc[(i / 32) | 0] ^= 1 << i; - } - if ((mh >>> 31) ^ mb) { - mhc[(i / 32) | 0] ^= 1 << i; - } - ph = (ph << 1) | pb; - mh = (mh << 1) | mb; - pv_1 = mh | ~(xv | ph); - mv_1 = ph & xv; - } - for (var k = start_1; k < vlen_1; k++) { - peq[b.charCodeAt(k)] = 0; - } - } - var mv = 0; - var pv = -1; - var start = j * 32; - var vlen = Math.min(32, m - start) + start; - for (var k = start; k < vlen; k++) { - peq[b.charCodeAt(k)] |= 1 << k; - } - var score = m; - for (var i = 0; i < n; i++) { - var eq = peq[a.charCodeAt(i)]; - var pb = (phc[(i / 32) | 0] >>> i) & 1; - var mb = (mhc[(i / 32) | 0] >>> i) & 1; - var xv = eq | mv; - var xh = ((((eq | mb) & pv) + pv) ^ pv) | eq | mb; - var ph = mv | ~(xh | pv); - var mh = pv & xh; - score += (ph >>> (m - 1)) & 1; - score -= (mh >>> (m - 1)) & 1; - if ((ph >>> 31) ^ pb) { - phc[(i / 32) | 0] ^= 1 << i; - } - if ((mh >>> 31) ^ mb) { - mhc[(i / 32) | 0] ^= 1 << i; - } - ph = (ph << 1) | pb; - mh = (mh << 1) | mb; - pv = mh | ~(xv | ph); - mv = ph & xv; - } - for (var k = start; k < vlen; k++) { - peq[b.charCodeAt(k)] = 0; - } - return score; -}; -var distance = function (a, b) { - if (a.length < b.length) { - var tmp = b; - b = a; - a = tmp; - } - if (b.length === 0) { - return a.length; - } - if (a.length <= 32) { - return myers_32(a, b); - } - return myers_x(a, b); -}; -exports.distance = distance; -var closest = function (str, arr) { - var min_distance = Infinity; - var min_index = 0; - for (var i = 0; i < arr.length; i++) { - var dist = distance(str, arr[i]); - if (dist < min_distance) { - min_distance = dist; - min_index = i; - } - } - return arr[min_index]; -}; -exports.closest = closest; diff --git a/build_vtk_bundle/node_modules/fastest-levenshtein/package.json b/build_vtk_bundle/node_modules/fastest-levenshtein/package.json deleted file mode 100644 index c395b852..00000000 --- a/build_vtk_bundle/node_modules/fastest-levenshtein/package.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "name": "fastest-levenshtein", - "version": "1.0.16", - "description": "Fastest Levenshtein distance implementation in JS.", - "main": "mod.js", - "types": "mod.d.ts", - "module": "./esm/mod.js", - "repository": { - "type": "git", - "url": "git+https://github.com/ka-weihe/fastest-levenshtein.git" - }, - "keywords": [ - "levenshtein", - "distance", - "fast", - "fastest", - "edit", - "string", - "similarity", - "algorithm", - "match", - "comparison", - "fuzzy", - "search", - "string", - "matching", - "similar", - "node", - "difference" - ], - "author": "Kasper U. Weihe", - "license": "MIT", - "bugs": { - "url": "https://github.com/ka-weihe/fastest-levenshtein/issues" - }, - "homepage": "https://github.com/ka-weihe/fastest-levenshtein#README", - "scripts": { - "build": "tsc mod.ts --declaration", - "build:esm": "tsc --declaration -p tsconfig.esm.json", - "prepare": "npm run build && npm run build:esm", - "bench": "npm run build && tsc bench.ts && node bench.js", - "test": "npm run build && tsc test.ts && jest test.js", - "test:coverage": "npm run build && jest --coverage", - "test:coveralls": "npm run build && jest --coverage --coverageReporters=text-lcov | coveralls" - }, - "devDependencies": { - "@types/benchmark": "^1.0.33", - "@types/jest": "^26.0.15", - "@typescript-eslint/eslint-plugin": "^4.7.0", - "@typescript-eslint/parser": "^4.7.0", - "benchmark": "^2.1.4", - "coveralls": "^3.1.0", - "eslint": "^7.13.0", - "eslint-config-node": "^4.1.0", - "eslint-config-prettier": "^6.15.0", - "eslint-plugin-import": "^2.22.1", - "eslint-plugin-node": "^11.1.0", - "eslint-plugin-prettier": "^3.1.4", - "fast-levenshtein": "^2.0.6", - "jest": "^26.6.3", - "js-levenshtein": "^1.1.6", - "leven": "^3.1.0", - "levenshtein-edit-distance": "^2.0.5", - "natural": "^2.1.5", - "prettier": "^2.1.2", - "talisman": "^1.1.3", - "typescript": "^4.0.5" - }, - "engines": { - "node": ">= 4.9.1" - } -} diff --git a/build_vtk_bundle/node_modules/fastest-levenshtein/test.js b/build_vtk_bundle/node_modules/fastest-levenshtein/test.js deleted file mode 100644 index 47506339..00000000 --- a/build_vtk_bundle/node_modules/fastest-levenshtein/test.js +++ /dev/null @@ -1,55 +0,0 @@ -var _a = require("./mod.js"), closest = _a.closest, distance = _a.distance; -var levenshtein = function (a, b) { - if (a.length === 0) { - return b.length; - } - if (b.length === 0) { - return a.length; - } - if (a.length > b.length) { - var tmp = a; - a = b; - b = tmp; - } - var row = []; - for (var i = 0; i <= a.length; i++) { - row[i] = i; - } - for (var i = 1; i <= b.length; i++) { - var prev = i; - for (var j = 1; j <= a.length; j++) { - var val = 0; - if (b.charAt(i - 1) === a.charAt(j - 1)) { - val = row[j - 1]; - } - else { - val = Math.min(row[j - 1] + 1, prev + 1, row[j] + 1); - } - row[j - 1] = prev; - prev = val; - } - row[a.length] = prev; - } - return row[a.length]; -}; -var makeid = function (length) { - var result = ""; - var characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; - var charactersLength = characters.length; - for (var i = 0; i < length; i++) { - result += characters.charAt(Math.floor(Math.random() * charactersLength)); - } - return result; -}; -for (var i = 0; i < 10000; i++) { - var rnd_num1 = (Math.random() * 1000) | 0; - var rnd_num2 = (Math.random() * 1000) | 0; - var rnd_string1 = makeid(rnd_num1); - var rnd_string2 = makeid(rnd_num2); - var actual = distance(rnd_string1, rnd_string2); - var expected = levenshtein(rnd_string1, rnd_string2); - console.log(i); - if (actual !== expected) { - console.log("fail"); - } -} diff --git a/build_vtk_bundle/node_modules/fastest-levenshtein/test.ts b/build_vtk_bundle/node_modules/fastest-levenshtein/test.ts deleted file mode 100644 index 41939bcd..00000000 --- a/build_vtk_bundle/node_modules/fastest-levenshtein/test.ts +++ /dev/null @@ -1,67 +0,0 @@ -const { closest, distance } = require("./mod.js"); - -const levenshtein = (a, b) => { - if (a.length === 0) { - return b.length; - } - if (b.length === 0) { - return a.length; - } - - if (a.length > b.length) { - const tmp = a; - a = b; - b = tmp; - } - - const row = []; - for (let i = 0; i <= a.length; i++) { - row[i] = i; - } - - for (let i = 1; i <= b.length; i++) { - let prev = i; - for (let j = 1; j <= a.length; j++) { - let val = 0; - if (b.charAt(i - 1) === a.charAt(j - 1)) { - val = row[j - 1]; - } else { - val = Math.min(row[j - 1] + 1, prev + 1, row[j] + 1); - } - row[j - 1] = prev; - prev = val; - } - row[a.length] = prev; - } - - return row[a.length]; -}; - -const makeid = (length) => { - let result = ""; - const characters = - "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; - const charactersLength = characters.length; - for (let i = 0; i < length; i++) { - result += characters.charAt(Math.floor(Math.random() * charactersLength)); - } - return result; -}; - -test("test compare", () => { - for (let i = 0; i < 1000; i++) { - const rnd_num1 = (Math.random() * 1000) | 0; - const rnd_num2 = (Math.random() * 1000) | 0; - const rnd_string1 = makeid(rnd_num1); - const rnd_string2 = makeid(rnd_num2); - const actual = distance(rnd_string1, rnd_string2); - const expected = levenshtein(rnd_string1, rnd_string2); - expect(actual).toBe(expected); - } -}); - -test("test find", () => { - const actual = closest("fast", ["slow", "faster", "fastest"]); - const expected = "faster"; - expect(actual).toBe(expected); -}); diff --git a/build_vtk_bundle/node_modules/fflate/CHANGELOG.md b/build_vtk_bundle/node_modules/fflate/CHANGELOG.md deleted file mode 100644 index acb659bc..00000000 --- a/build_vtk_bundle/node_modules/fflate/CHANGELOG.md +++ /dev/null @@ -1,96 +0,0 @@ -## 0.7.3 -- Fix folder creation for certain operating system - - Create 0-length "files" for each directory specified with "object" syntax" - - Support empty folders - - Add options for folders -- Fix minification in SWC - - Remove instanceof, no-whitespace assumptions in async functions -## 0.7.2 -- Fixed TypeScript typing for errors when using `strictNullChecks` -- Fixed failure to compress files above 64kB with `{ level: 0 }` -- Fixed AMD module definition in UMD build -## 0.7.1 -- Removed requirement for `setTimeout` -- Added support for unzip file filters (thanks to [@manucorporat](https://github.com/manucorporat): #67) -- Fixed streaming gunzip and unzlib bug causing corruption -## 0.7.0 -- Improved errors - - Now errors are error objects instead of strings - - Check the error code to apply custom logic based on error type -- Made async operations always call callbacks asynchronously -- Fixed bug that caused errors to not appear in asynchronous operations in browsers -## 0.6.10 -- Fixed async operations on Node.js with native ESM -## 0.6.5 -- Fixed streams not recognizing final chunk -- Fixed streaming UTF-8 decoder bug -## 0.6.4 -- Made streaming inflate consume all data possible -- Optimized use of values near 32-bit boundary -## 0.6.3 -- Patch exports of async functions -- Fix streaming unzip -## 0.6.2 -- Replace Adler-32 implementation (used in Zlib compression) with one more optimized for V8 - - Advice from @SheetJSDev -- Add support for extra fields, file comments in ZIP files -- Work on Rust version -## 0.6.0 -- Revamped streaming unzip for compatibility and performance improvements -- Fixed streaming data bugs -- Fixed inflation errors -- Planned new tests -## 0.5.2 -- General bugfixes -## 0.5.0 -- Add streaming zip, unzip -- Fix import issues with certain environments - - If you had problems with `worker_threads` being included in your bundle, try updating! -## 0.4.8 -- Support strict Content Security Policy - - Remove `new Function` -## 0.4.7 -- Fix data streaming bugs -## 0.4.5 -- Zip64 support - - Still not possible to have above 4GB files -## 0.4.4 -- Files up to 4GB supported - - Hey, that's better than even Node.js `zlib`! -## 0.4.1 -- Fix ZIP failure bug -- Make ZIP options work better -- Improve docs -- Fix async inflate failure -- Work on Rust version -## 0.3.11 -- Fix docs -## 0.3.9 -- Fixed issue with unzipping -## 0.3.7 -- Patched streaming compression bugs -- Added demo page -## 0.3.6 -- Allowed true ESM imports -## 0.3.4 -- Fixed rare overflow bug causing corruption -- Added async stream termination -- Added UMD bundle -## 0.3.0 -- Added support for asynchronous and synchronous streaming -- Reduced bundle size by autogenerating worker code, even in minified environments -- Error detection rather than hanging -- Improved performance -## 0.2.3 -- Improved Zlib autodetection -## 0.2.2 -- Fixed Node Worker -## 0.2.1 -- Fixed ZIP bug -## 0.2.0 -- Added support for ZIP files (parallelized) -- Added ability to terminate running asynchronous operations -## 0.1.0 -- Rewrote API: added support for asynchronous (Worker) compression/decompression, fixed critical bug involving fixed Huffman trees -## 0.0.1 -- Created, works on basic input \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/fflate/LICENSE b/build_vtk_bundle/node_modules/fflate/LICENSE deleted file mode 100644 index d844c26c..00000000 --- a/build_vtk_bundle/node_modules/fflate/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2020 Arjun Barrett - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/fflate/README.md b/build_vtk_bundle/node_modules/fflate/README.md deleted file mode 100644 index 85071459..00000000 --- a/build_vtk_bundle/node_modules/fflate/README.md +++ /dev/null @@ -1,553 +0,0 @@ -# fflate -High performance (de)compression in an 8kB package - -## Why fflate? -`fflate` (short for fast flate) is the **fastest, smallest, and most versatile** pure JavaScript compression and decompression library in existence, handily beating [`pako`](https://npmjs.com/package/pako), [`tiny-inflate`](https://npmjs.com/package/tiny-inflate), and [`UZIP.js`](https://github.com/photopea/UZIP.js) in performance benchmarks while being multiple times more lightweight. Its compression ratios are often better than even the original Zlib C library. It includes support for DEFLATE, GZIP, and Zlib data. Data compressed by `fflate` can be decompressed by other tools, and vice versa. - -In addition to the base decompression and compression APIs, `fflate` supports high-speed ZIP file archiving for an extra 3 kB. In fact, the compressor, in synchronous mode, compresses both more quickly and with a higher compression ratio than most compression software (even Info-ZIP, a C program), and in asynchronous mode it can utilize multiple threads to achieve over 3x the performance of any other utility. - -| | `pako` | `tiny-inflate` | `UZIP.js` | `fflate` | -|-----------------------------|--------|------------------------|-----------------------|--------------------------------| -| Decompression performance | 1x | Up to 40% slower | **Up to 40% faster** | **Up to 40% faster** | -| Compression performance | 1x | N/A | Up to 5% faster | **Up to 50% faster** | -| Base bundle size (minified) | 45.6kB | **3kB (inflate only)** | 14.2kB | 8kB **(3kB for inflate only)** | -| Compression support | ✅ | ❌ | ✅ | ✅ | -| Thread/Worker safe | ✅ | ✅ | ❌ | ✅ | -| ZIP support | ❌ | ❌ | ✅ | ✅ | -| Streaming support | ✅ | ❌ | ❌ | ✅ | -| GZIP/Zlib support | ✅ | ❌ | ❌ | ✅ | -| Supports files up to 4GB | ✅ | ❌ | ❌ | ✅ | -| Doesn't hang on error | ✅ | ❌ | ❌ | ✅ | -| Multi-thread/Asynchronous | ❌ | ❌ | ❌ | ✅ | -| Streaming ZIP support | ❌ | ❌ | ❌ | ✅ | -| Uses ES Modules | ❌ | ❌ | ❌ | ✅ | - -## Demo -If you'd like to try `fflate` for yourself without installing it, you can take a look at the [browser demo](https://101arrowz.github.io/fflate). Since `fflate` is a pure JavaScript library, it works in both the browser and Node.js (see [Browser support](https://github.com/101arrowz/fflate/#browser-support) for more info). - -## Usage - -Install `fflate`: -```sh -npm i fflate # or yarn add fflate, or pnpm add fflate -``` - -Import: -```js -// I will assume that you use the following for the rest of this guide -import * as fflate from 'fflate'; - -// However, you should import ONLY what you need to minimize bloat. -// So, if you just need GZIP compression support: -import { gzipSync } from 'fflate'; -// Woo! You just saved 20 kB off your bundle with one line. -``` - -If your environment doesn't support ES Modules (e.g. Node.js): -```js -// Try to avoid this when using fflate in the browser, as it will import -// all of fflate's components, even those that you aren't using. -const fflate = require('fflate'); -``` - -If you want to load from a CDN in the browser: -```html - - - - - - - -``` - -If you are using Deno: -```js -// Don't use the ?dts Skypack flag; it isn't necessary for Deno support -// The @deno-types comment adds TypeScript typings - -// @deno-types="https://cdn.skypack.dev/fflate/lib/index.d.ts" -import * as fflate from 'https://cdn.skypack.dev/fflate?min'; -``` - - -If your environment doesn't support bundling: -```js -// Again, try to import just what you need - -// For the browser: -import * as fflate from 'fflate/esm/browser.js'; -// If the standard ESM import fails on Node (i.e. older version): -import * as fflate from 'fflate/esm'; -``` - -And use: -```js -// This is an ArrayBuffer of data -const massiveFileBuf = await fetch('/aMassiveFile').then( - res => res.arrayBuffer() -); -// To use fflate, you need a Uint8Array -const massiveFile = new Uint8Array(massiveFileBuf); -// Note that Node.js Buffers work just fine as well: -// const massiveFile = require('fs').readFileSync('aMassiveFile.txt'); - -// Higher level means lower performance but better compression -// The level ranges from 0 (no compression) to 9 (max compression) -// The default level is 6 -const notSoMassive = fflate.zlibSync(massiveFile, { level: 9 }); -const massiveAgain = fflate.unzlibSync(notSoMassive); -const gzipped = fflate.gzipSync(massiveFile, { - // GZIP-specific: the filename to use when decompressed - filename: 'aMassiveFile.txt', - // GZIP-specific: the modification time. Can be a Date, date string, - // or Unix timestamp - mtime: '9/1/16 2:00 PM' -}); -``` -`fflate` can autodetect a compressed file's format as well: -```js -const compressed = new Uint8Array( - await fetch('/GZIPorZLIBorDEFLATE').then(res => res.arrayBuffer()) -); -// Above example with Node.js Buffers: -// Buffer.from('H4sIAAAAAAAAE8tIzcnJBwCGphA2BQAAAA==', 'base64'); - -const decompressed = fflate.decompressSync(compressed); -``` - -Using strings is easy with `fflate`'s string conversion API: -```js -const buf = fflate.strToU8('Hello world!'); - -// The default compression method is gzip -// Increasing mem may increase performance at the cost of memory -// The mem ranges from 0 to 12, where 4 is the default -const compressed = fflate.compressSync(buf, { level: 6, mem: 8 }); - -// When you need to decompress: -const decompressed = fflate.decompressSync(compressed); -const origText = fflate.strFromU8(decompressed); -console.log(origText); // Hello world! -``` - -If you need to use an (albeit inefficient) binary string, you can set the second argument to `true`. -```js -const buf = fflate.strToU8('Hello world!'); - -// The second argument, latin1, is a boolean that indicates that the data -// is not Unicode but rather should be encoded and decoded as Latin-1. -// This is useful for creating a string from binary data that isn't -// necessarily valid UTF-8. However, binary strings are incredibly -// inefficient and tend to double file size, so they're not recommended. -const compressedString = fflate.strFromU8( - fflate.compressSync(buf), - true -); -const decompressed = fflate.decompressSync( - fflate.strToU8(compressedString, true) -); -const origText = fflate.strFromU8(decompressed); -console.log(origText); // Hello world! -``` - -You can use streams as well to incrementally add data to be compressed or decompressed: -```js -// This example uses synchronous streams, but for the best experience -// you'll definitely want to use asynchronous streams. - -let outStr = ''; -const gzipStream = new fflate.Gzip({ level: 9 }, (chunk, isLast) => { - // accumulate in an inefficient binary string (just an example) - outStr += fflate.strFromU8(chunk, true); -}); - -// You can also attach the data handler separately if you don't want to -// do so in the constructor. -gzipStream.ondata = (chunk, final) => { ... } - -// Since this is synchronous, all errors will be thrown by stream.push() -gzipStream.push(chunk1); -gzipStream.push(chunk2); - -... - -// You should mark the last chunk by using true in the second argument -// In addition to being necessary for the stream to work properly, this -// will also set the isLast parameter in the handler to true. -gzipStream.push(lastChunk, true); - -console.log(outStr); // The compressed binary string is now available - -// The options parameter for compression streams is optional; you can -// provide one parameter (the handler) or none at all if you set -// deflateStream.ondata later. -const deflateStream = new fflate.Deflate((chunk, final) => { - console.log(chunk, final); -}); - -// If you want to create a stream from strings, use EncodeUTF8 -const utfEncode = new fflate.EncodeUTF8((data, final) => { - // Chaining streams together is done by pushing to the - // next stream in the handler for the previous stream - deflateStream.push(data, final); -}); - -utfEncode.push('Hello'.repeat(1000)); -utfEncode.push(' '.repeat(100)); -utfEncode.push('world!'.repeat(10), true); - -// The deflateStream has logged the compressed data - -const inflateStream = new fflate.Inflate(); -inflateStream.ondata = (decompressedChunk, final) => { ... }; - -let stringData = ''; - -// Streaming UTF-8 decode is available too -const utfDecode = new fflate.DecodeUTF8((data, final) => { - stringData += data; -}); - -// Decompress streams auto-detect the compression method, as the -// non-streaming decompress() method does. -const dcmpStrm = new fflate.Decompress((chunk, final) => { - console.log(chunk, 'was encoded with GZIP, Zlib, or DEFLATE'); - utfDecode.push(chunk, final); -}); - -dcmpStrm.push(zlibJSONData1); -dcmpStrm.push(zlibJSONData2, true); - -// This succeeds; the UTF-8 decoder chained with the unknown compression format -// stream to reach a string as a sink. -console.log(JSON.parse(stringData)); -``` - -You can create multi-file ZIP archives easily as well. Note that by default, compression is enabled for all files, which is not useful when ZIPping many PNGs, JPEGs, PDFs, etc. because those formats are already compressed. You should either override the level on a per-file basis or globally to avoid wasting resources. -```js -// Note that the asynchronous version (see below) runs in parallel and -// is *much* (up to 3x) faster for larger archives. -const zipped = fflate.zipSync({ - // Directories can be nested structures, as in an actual filesystem - 'dir1': { - 'nested': { - // You can use Unicode in filenames - '你好.txt': fflate.strToU8('Hey there!') - }, - // You can also manually write out a directory path - 'other/tmp.txt': new Uint8Array([97, 98, 99, 100]) - }, - - // You can also provide compression options - 'massiveImage.bmp': [aMassiveFile, { - level: 9, - mem: 12 - }], - // PNG is pre-compressed; no need to waste time - 'superTinyFile.png': [aPNGFile, { level: 0 }], - - // Directories take options too - 'exec': [{ - 'hello.sh': [fflate.strToU8('echo hello world'), { - // ZIP only: Set the operating system to Unix - os: 3, - // ZIP only: Make this file executable on Unix - attrs: 0o755 << 16 - }] - }, { - // ZIP and GZIP support mtime (defaults to current time) - mtime: new Date('10/20/2020') - }] -}, { - // These options are the defaults for all files, but file-specific - // options take precedence. - level: 1, - // Obfuscate last modified time by default - mtime: new Date('1/1/1980') -}); - -// If you write the zipped data to myzip.zip and unzip, the folder -// structure will be outputted as: - -// myzip.zip (original file) -// dir1 -// |-> nested -// | |-> 你好.txt -// |-> other -// | |-> tmp.txt -// massiveImage.bmp -// superTinyFile.png - -// When decompressing, folders are not nested; all filepaths are fully -// written out in the keys. For example, the return value may be: -// { 'nested/directory/structure.txt': Uint8Array(2) [97, 97] } -const decompressed = fflate.unzipSync(zipped, { - // You may optionally supply a filter for files. By default, all files in a - // ZIP archive are extracted, but a filter can save resources by telling - // the library not to decompress certain files - filter(file) { - // Don't decompress the massive image or any files larger than 10 MiB - return file.name != 'massiveImage.bmp' && file.originalSize <= 10_000_000; - } -}); -``` - -If you need extremely high performance or custom ZIP compression formats, you can use the highly-extensible ZIP streams. They take streams as both input and output. You can even use custom compression/decompression algorithms from other libraries, as long as they [are defined in the ZIP spec](https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT) (see section 4.4.5). If you'd like more info on using custom compressors, [feel free to ask](https://github.com/101arrowz/fflate/discussions). -```js -// ZIP object -// Can also specify zip.ondata outside of the constructor -const zip = new fflate.Zip((err, dat, final) => { - if (!err) { - // output of the streams - console.log(dat, final); - } -}); - -const helloTxt = new fflate.ZipDeflate('hello.txt', { - level: 9 -}); - -// Always add streams to ZIP archives before pushing to those streams -zip.add(helloTxt); - -helloTxt.push(chunk1); -// Last chunk -helloTxt.push(chunk2, true); - -// ZipPassThrough is like ZipDeflate with level 0, but allows for tree shaking -const nonStreamingFile = new fflate.ZipPassThrough('test.png'); -zip.add(nonStreamingFile); -// If you have data already loaded, just .push(data, true) -nonStreamingFile.push(pngData, true); - -// You need to call .end() after finishing -// This ensures the ZIP is valid -zip.end(); - -// Unzip object -const unzipper = new fflate.Unzip(); - -// This function will almost always have to be called. It is used to support -// compression algorithms such as BZIP2 or LZMA in ZIP files if just DEFLATE -// is not enough (though it almost always is). -// If your ZIP files are not compressed, this line is not needed. -unzipper.register(fflate.UnzipInflate); - -const neededFiles = ['file1.txt', 'example.json']; - -// Can specify handler in constructor too -unzipper.onfile = file => { - // file.name is a string, file is a stream - if (neededFiles.includes(file.name)) { - file.ondata = (err, dat, final) => { - // Stream output here - console.log(dat, final); - }; - - console.log('Reading:', file.name); - - // File sizes are sometimes not set if the ZIP file did not encode - // them, so you may want to check that file.size != undefined - console.log('Compressed size', file.size); - console.log('Decompressed size', file.originalSize); - - // You should only start the stream if you plan to use it to improve - // performance. Only after starting the stream will ondata be called. - // This method will throw if the compression method hasn't been registered - file.start(); - } -}; - -// Try to keep under 5,000 files per chunk to avoid stack limit errors -// For example, if all files are a few kB, multi-megabyte chunks are OK -// If files are mostly under 100 bytes, 64kB chunks are the limit -unzipper.push(zipChunk1); -unzipper.push(zipChunk2); -unzipper.push(zipChunk3, true); -``` - -As you may have guessed, there is an asynchronous version of every method as well. Unlike most libraries, this will cause the compression or decompression run in a separate thread entirely and automatically by using Web (or Node) Workers (as of now, Deno is unsupported). This means that the processing will not block the main thread at all. - -Note that there is a significant initial overhead to using workers of about 70ms for each asynchronous function. For instance, if you call `unzip` ten times, the overhead only applies for the first call, but if you call `unzip` and `zlib`, they will each cause the 70ms delay. Therefore, it's best to avoid the asynchronous API unless necessary. However, if you're compressing multiple large files at once, or the synchronous API causes the main thread to hang for too long, the callback APIs are an order of magnitude better. -```js -import { - gzip, zlib, AsyncGzip, zip, unzip, strFromU8, - Zip, AsyncZipDeflate, Unzip, AsyncUnzipInflate -} from 'fflate'; - -// Workers will work in almost any browser (even IE11!) -// However, they fail below Node v12 without the --experimental-worker -// CLI flag, and will fail entirely on Node below v10. - -// All of the async APIs use a node-style callback as so: -const terminate = gzip(aMassiveFile, (err, data) => { - if (err) { - // The compressed data was likely corrupt, so we have to handle - // the error. - return; - } - // Use data however you like - console.log(data.length); -}); - -if (needToCancel) { - // The return value of any of the asynchronous APIs is a function that, - // when called, will immediately cancel the operation. The callback - // will not be called. - terminate(); -} - -// If you wish to provide options, use the second argument. - -// The consume option will render the data inside aMassiveFile unusable, -// but can improve performance and dramatically reduce memory usage. -zlib(aMassiveFile, { consume: true, level: 9 }, (err, data) => { - // Use the data -}); - -// Asynchronous streams are similar to synchronous streams, but the -// handler has the error that occurred (if any) as the first parameter, -// and they don't block the main thread. - -// Additionally, any buffers that are pushed in will be consumed and -// rendered unusable; if you need to use a buffer you push in, you -// should clone it first. -const gzs = new AsyncGzip({ level: 9, mem: 12, filename: 'hello.txt' }); -let wasCallbackCalled = false; -gzs.ondata = (err, chunk, final) => { - // Note the new err parameter - if (err) { - // Note that after this occurs, the stream becomes corrupt and must - // be discarded. You can't continue pushing chunks and expect it to - // work. - console.error(err); - return; - } - wasCallbackCalled = true; -} -gzs.push(chunk); - -// Since the stream is asynchronous, the callback will not be called -// immediately. If such behavior is absolutely necessary (it shouldn't -// be), use synchronous streams. -console.log(wasCallbackCalled) // false - -// To terminate an asynchronous stream's internal worker, call -// stream.terminate(). -gzs.terminate(); - -// This is way faster than zipSync because the compression of multiple -// files runs in parallel. In fact, the fact that it's parallelized -// makes it faster than most standalone ZIP CLIs. The effect is most -// significant for multiple large files; less so for many small ones. -zip({ f1: aMassiveFile, 'f2.txt': anotherMassiveFile }, { - // The options object is still optional, you can still do just - // zip(archive, callback) - level: 6 -}, (err, data) => { - // Save the ZIP file -}); - -// unzip is the only async function without support for consume option -// It is parallelized, so unzip is also often much faster than unzipSync -unzip(aMassiveZIPFile, (err, unzipped) => { - // If the archive has data.xml, log it here - console.log(unzipped['data.xml']); - // Conversion to string - console.log(strFromU8(unzipped['data.xml'])) -}); - -// Streaming ZIP archives can accept asynchronous streams. This automatically -// uses multicore compression. -const zip = new Zip(); -zip.ondata = (err, chunk, final) => { ... }; -// The JSON and BMP are compressed in parallel -const exampleFile = new AsyncZipDeflate('example.json'); -exampleFile.push(JSON.stringify({ large: 'object' }), true); -const exampleFile2 = new AsyncZipDeflate('example2.bmp', { level: 9 }); -exampleFile.push(ec2a); -exampleFile.push(ec2b); -exampleFile.push(ec2c); -... -exampleFile.push(ec2Final, true); -zip.end(); - -// Streaming Unzip should register the asynchronous inflation algorithm -// for parallel processing. -const unzip = new Unzip(stream => { - if (stream.name.endsWith('.json')) { - stream.ondata = (err, chunk, final) => { ... }; - stream.start(); - - if (needToCancel) { - // To cancel these streams, call .terminate() - stream.terminate(); - } - } -}); -unzip.register(AsyncUnzipInflate); -unzip.push(data, true); -``` - -See the [documentation](https://github.com/101arrowz/fflate/blob/master/docs/README.md) for more detailed information about the API. - -## Bundle size estimates - -Since `fflate` uses ES Modules, this table should give you a general idea of `fflate`'s bundle size for the features you need. The maximum bundle size that is possible with `fflate` is about 30kB if you use every single feature, but feature parity with `pako` is only around 10kB (as opposed to 45kB from `pako`). If your bundle size increases dramatically after adding `fflate`, please [create an issue](https://github.com/101arrowz/fflate/issues/new). - -| Feature | Bundle size (minified) | Nearest competitor | -|-------------------------|--------------------------------|------------------------| -| Decompression | 3kB | `tiny-inflate` | -| Compression | 5kB | `UZIP.js`, 184% larger | -| Async decompression | 4kB (1kB + raw decompression) | N/A | -| Async compression | 6kB (1kB + raw compression) | N/A | -| ZIP decompression | 5kB (2kB + raw decompression) | `UZIP.js`, 184% larger | -| ZIP compression | 7kB (2kB + raw compression) | `UZIP.js`, 103% larger | -| GZIP/Zlib decompression | 4kB (1kB + raw decompression) | `pako`, 1040% larger | -| GZIP/Zlib compression | 5kB (1kB + raw compression) | `pako`, 812% larger | -| Streaming decompression | 4kB (1kB + raw decompression) | `pako`, 1040% larger | -| Streaming compression | 5kB (1kB + raw compression) | `pako`, 812% larger | - -## What makes `fflate` so fast? -Many JavaScript compression/decompression libraries exist. However, the most popular one, [`pako`](https://npmjs.com/package/pako), is merely a clone of Zlib rewritten nearly line-for-line in JavaScript. Although it is by no means poorly made, `pako` doesn't recognize the many differences between JavaScript and C, and therefore is suboptimal for performance. Moreover, even when minified, the library is 45 kB; it may not seem like much, but for anyone concerned with optimizing bundle size (especially library authors), it's more weight than necessary. - -Note that there exist some small libraries like [`tiny-inflate`](https://npmjs.com/package/tiny-inflate) for solely decompression, and with a minified size of 3 kB, it can be appealing; however, its performance is lackluster, typically 40% worse than `pako` in my tests. - -[`UZIP.js`](https://github.com/photopea/UZIP.js) is both faster (by up to 40%) and smaller (14 kB minified) than `pako`, and it contains a variety of innovations that make it excellent for both performance and compression ratio. However, the developer made a variety of tiny mistakes and inefficient design choices that make it imperfect. Moreover, it does not support GZIP or Zlib data directly; one must remove the headers manually to use `UZIP.js`. - -So what makes `fflate` different? It takes the brilliant innovations of `UZIP.js` and optimizes them while adding direct support for GZIP and Zlib data. And unlike all of the above libraries, it uses ES Modules to allow for partial builds through tree shaking, meaning that it can rival even `tiny-inflate` in size while maintaining excellent performance. The end result is a library that, in total, weighs 8kB minified for the core build (3kB for decompression only and 5kB for compression only), is about 15% faster than `UZIP.js` or up to 60% faster than `pako`, and achieves the same or better compression ratio than the rest. - -If you're willing to have 160 kB of extra weight and [much less browser support](https://caniuse.com/wasm), you could theoretically achieve more performance than `fflate` with a WASM build of Zlib like [`wasm-flate`](https://www.npmjs.com/package/wasm-flate). However, per some tests I conducted, the WASM interpreters of major browsers are not fast enough as of December 2020 for `wasm-flate` to be useful: `fflate` is around 2x faster. - -Before you decide that `fflate` is the end-all compression library, you should note that JavaScript simply cannot rival the performance of a native program. If you're only using Node.js, it's probably better to use the [native Zlib bindings](https://nodejs.org/api/zlib.html), which tend to offer the best performance. Though note that even against Zlib, `fflate` is only around 30% slower in decompression and 10% slower in compression, and can still achieve better compression ratios! - -## Browser support -`fflate` makes heavy use of typed arrays (`Uint8Array`, `Uint16Array`, etc.). Typed arrays can be polyfilled at the cost of performance, but the most recent browser that doesn't support them [is from 2011](https://caniuse.com/typedarrays), so I wouldn't bother. - -The asynchronous APIs also use `Worker`, which is not supported in a few browsers (however, the vast majority of browsers that support typed arrays support `Worker`). - -Other than that, `fflate` is completely ES3, meaning you probably won't even need a bundler to use it. - -## Testing -You can validate the performance of `fflate` with `npm`/`yarn`/`pnpm` `test`. It validates that the module is working as expected, ensures the outputs are no more than 5% larger than competitors at max compression, and outputs performance metrics to `test/results`. - -Note that the time it takes for the CLI to show the completion of each test is not representative of the time each package took, so please check the JSON output if you want accurate measurements. - -## License - -This software is [MIT Licensed](./LICENSE), with special exemptions for projects -and organizations as noted below: - -- [SheetJS](https://github.com/SheetJS/) is exempt from MIT licensing and may - license any source code from this software under the BSD Zero Clause License diff --git a/build_vtk_bundle/node_modules/fflate/esm/browser.js b/build_vtk_bundle/node_modules/fflate/esm/browser.js deleted file mode 100644 index 8ef8ed2c..00000000 --- a/build_vtk_bundle/node_modules/fflate/esm/browser.js +++ /dev/null @@ -1,2547 +0,0 @@ -// DEFLATE is a complex format; to read this code, you should probably check the RFC first: -// https://tools.ietf.org/html/rfc1951 -// You may also wish to take a look at the guide I made about this program: -// https://gist.github.com/101arrowz/253f31eb5abc3d9275ab943003ffecad -// Some of the following code is similar to that of UZIP.js: -// https://github.com/photopea/UZIP.js -// However, the vast majority of the codebase has diverged from UZIP.js to increase performance and reduce bundle size. -// Sometimes 0 will appear where -1 would be more appropriate. This is because using a uint -// is better for memory in most engines (I *think*). -var ch2 = {}; -var wk = (function (c, id, msg, transfer, cb) { - var w = new Worker(ch2[id] || (ch2[id] = URL.createObjectURL(new Blob([ - c + ';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})' - ], { type: 'text/javascript' })))); - w.onmessage = function (e) { - var d = e.data, ed = d.$e$; - if (ed) { - var err = new Error(ed[0]); - err['code'] = ed[1]; - err.stack = ed[2]; - cb(err, null); - } - else - cb(null, d); - }; - w.postMessage(msg, transfer); - return w; -}); - -// aliases for shorter compressed code (most minifers don't do this) -var u8 = Uint8Array, u16 = Uint16Array, u32 = Uint32Array; -// fixed length extra bits -var fleb = new u8([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, /* unused */ 0, 0, /* impossible */ 0]); -// fixed distance extra bits -// see fleb note -var fdeb = new u8([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, /* unused */ 0, 0]); -// code length index map -var clim = new u8([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]); -// get base, reverse index map from extra bits -var freb = function (eb, start) { - var b = new u16(31); - for (var i = 0; i < 31; ++i) { - b[i] = start += 1 << eb[i - 1]; - } - // numbers here are at max 18 bits - var r = new u32(b[30]); - for (var i = 1; i < 30; ++i) { - for (var j = b[i]; j < b[i + 1]; ++j) { - r[j] = ((j - b[i]) << 5) | i; - } - } - return [b, r]; -}; -var _a = freb(fleb, 2), fl = _a[0], revfl = _a[1]; -// we can ignore the fact that the other numbers are wrong; they never happen anyway -fl[28] = 258, revfl[258] = 28; -var _b = freb(fdeb, 0), fd = _b[0], revfd = _b[1]; -// map of value to reverse (assuming 16 bits) -var rev = new u16(32768); -for (var i = 0; i < 32768; ++i) { - // reverse table algorithm from SO - var x = ((i & 0xAAAA) >>> 1) | ((i & 0x5555) << 1); - x = ((x & 0xCCCC) >>> 2) | ((x & 0x3333) << 2); - x = ((x & 0xF0F0) >>> 4) | ((x & 0x0F0F) << 4); - rev[i] = (((x & 0xFF00) >>> 8) | ((x & 0x00FF) << 8)) >>> 1; -} -// create huffman tree from u8 "map": index -> code length for code index -// mb (max bits) must be at most 15 -// TODO: optimize/split up? -var hMap = (function (cd, mb, r) { - var s = cd.length; - // index - var i = 0; - // u16 "map": index -> # of codes with bit length = index - var l = new u16(mb); - // length of cd must be 288 (total # of codes) - for (; i < s; ++i) { - if (cd[i]) - ++l[cd[i] - 1]; - } - // u16 "map": index -> minimum code for bit length = index - var le = new u16(mb); - for (i = 0; i < mb; ++i) { - le[i] = (le[i - 1] + l[i - 1]) << 1; - } - var co; - if (r) { - // u16 "map": index -> number of actual bits, symbol for code - co = new u16(1 << mb); - // bits to remove for reverser - var rvb = 15 - mb; - for (i = 0; i < s; ++i) { - // ignore 0 lengths - if (cd[i]) { - // num encoding both symbol and bits read - var sv = (i << 4) | cd[i]; - // free bits - var r_1 = mb - cd[i]; - // start value - var v = le[cd[i] - 1]++ << r_1; - // m is end value - for (var m = v | ((1 << r_1) - 1); v <= m; ++v) { - // every 16 bit value starting with the code yields the same result - co[rev[v] >>> rvb] = sv; - } - } - } - } - else { - co = new u16(s); - for (i = 0; i < s; ++i) { - if (cd[i]) { - co[i] = rev[le[cd[i] - 1]++] >>> (15 - cd[i]); - } - } - } - return co; -}); -// fixed length tree -var flt = new u8(288); -for (var i = 0; i < 144; ++i) - flt[i] = 8; -for (var i = 144; i < 256; ++i) - flt[i] = 9; -for (var i = 256; i < 280; ++i) - flt[i] = 7; -for (var i = 280; i < 288; ++i) - flt[i] = 8; -// fixed distance tree -var fdt = new u8(32); -for (var i = 0; i < 32; ++i) - fdt[i] = 5; -// fixed length map -var flm = /*#__PURE__*/ hMap(flt, 9, 0), flrm = /*#__PURE__*/ hMap(flt, 9, 1); -// fixed distance map -var fdm = /*#__PURE__*/ hMap(fdt, 5, 0), fdrm = /*#__PURE__*/ hMap(fdt, 5, 1); -// find max of array -var max = function (a) { - var m = a[0]; - for (var i = 1; i < a.length; ++i) { - if (a[i] > m) - m = a[i]; - } - return m; -}; -// read d, starting at bit p and mask with m -var bits = function (d, p, m) { - var o = (p / 8) | 0; - return ((d[o] | (d[o + 1] << 8)) >> (p & 7)) & m; -}; -// read d, starting at bit p continuing for at least 16 bits -var bits16 = function (d, p) { - var o = (p / 8) | 0; - return ((d[o] | (d[o + 1] << 8) | (d[o + 2] << 16)) >> (p & 7)); -}; -// get end of byte -var shft = function (p) { return ((p + 7) / 8) | 0; }; -// typed array slice - allows garbage collector to free original reference, -// while being more compatible than .slice -var slc = function (v, s, e) { - if (s == null || s < 0) - s = 0; - if (e == null || e > v.length) - e = v.length; - // can't use .constructor in case user-supplied - var n = new (v.BYTES_PER_ELEMENT == 2 ? u16 : v.BYTES_PER_ELEMENT == 4 ? u32 : u8)(e - s); - n.set(v.subarray(s, e)); - return n; -}; -/** - * Codes for errors generated within this library - */ -export var FlateErrorCode = { - UnexpectedEOF: 0, - InvalidBlockType: 1, - InvalidLengthLiteral: 2, - InvalidDistance: 3, - StreamFinished: 4, - NoStreamHandler: 5, - InvalidHeader: 6, - NoCallback: 7, - InvalidUTF8: 8, - ExtraFieldTooLong: 9, - InvalidDate: 10, - FilenameTooLong: 11, - StreamFinishing: 12, - InvalidZipData: 13, - UnknownCompressionMethod: 14 -}; -// error codes -var ec = [ - 'unexpected EOF', - 'invalid block type', - 'invalid length/literal', - 'invalid distance', - 'stream finished', - 'no stream handler', - , - 'no callback', - 'invalid UTF-8 data', - 'extra field too long', - 'date not in range 1980-2099', - 'filename too long', - 'stream finishing', - 'invalid zip data' - // determined by unknown compression method -]; -; -var err = function (ind, msg, nt) { - var e = new Error(msg || ec[ind]); - e.code = ind; - if (Error.captureStackTrace) - Error.captureStackTrace(e, err); - if (!nt) - throw e; - return e; -}; -// expands raw DEFLATE data -var inflt = function (dat, buf, st) { - // source length - var sl = dat.length; - if (!sl || (st && st.f && !st.l)) - return buf || new u8(0); - // have to estimate size - var noBuf = !buf || st; - // no state - var noSt = !st || st.i; - if (!st) - st = {}; - // Assumes roughly 33% compression ratio average - if (!buf) - buf = new u8(sl * 3); - // ensure buffer can fit at least l elements - var cbuf = function (l) { - var bl = buf.length; - // need to increase size to fit - if (l > bl) { - // Double or set to necessary, whichever is greater - var nbuf = new u8(Math.max(bl * 2, l)); - nbuf.set(buf); - buf = nbuf; - } - }; - // last chunk bitpos bytes - var final = st.f || 0, pos = st.p || 0, bt = st.b || 0, lm = st.l, dm = st.d, lbt = st.m, dbt = st.n; - // total bits - var tbts = sl * 8; - do { - if (!lm) { - // BFINAL - this is only 1 when last chunk is next - final = bits(dat, pos, 1); - // type: 0 = no compression, 1 = fixed huffman, 2 = dynamic huffman - var type = bits(dat, pos + 1, 3); - pos += 3; - if (!type) { - // go to end of byte boundary - var s = shft(pos) + 4, l = dat[s - 4] | (dat[s - 3] << 8), t = s + l; - if (t > sl) { - if (noSt) - err(0); - break; - } - // ensure size - if (noBuf) - cbuf(bt + l); - // Copy over uncompressed data - buf.set(dat.subarray(s, t), bt); - // Get new bitpos, update byte count - st.b = bt += l, st.p = pos = t * 8, st.f = final; - continue; - } - else if (type == 1) - lm = flrm, dm = fdrm, lbt = 9, dbt = 5; - else if (type == 2) { - // literal lengths - var hLit = bits(dat, pos, 31) + 257, hcLen = bits(dat, pos + 10, 15) + 4; - var tl = hLit + bits(dat, pos + 5, 31) + 1; - pos += 14; - // length+distance tree - var ldt = new u8(tl); - // code length tree - var clt = new u8(19); - for (var i = 0; i < hcLen; ++i) { - // use index map to get real code - clt[clim[i]] = bits(dat, pos + i * 3, 7); - } - pos += hcLen * 3; - // code lengths bits - var clb = max(clt), clbmsk = (1 << clb) - 1; - // code lengths map - var clm = hMap(clt, clb, 1); - for (var i = 0; i < tl;) { - var r = clm[bits(dat, pos, clbmsk)]; - // bits read - pos += r & 15; - // symbol - var s = r >>> 4; - // code length to copy - if (s < 16) { - ldt[i++] = s; - } - else { - // copy count - var c = 0, n = 0; - if (s == 16) - n = 3 + bits(dat, pos, 3), pos += 2, c = ldt[i - 1]; - else if (s == 17) - n = 3 + bits(dat, pos, 7), pos += 3; - else if (s == 18) - n = 11 + bits(dat, pos, 127), pos += 7; - while (n--) - ldt[i++] = c; - } - } - // length tree distance tree - var lt = ldt.subarray(0, hLit), dt = ldt.subarray(hLit); - // max length bits - lbt = max(lt); - // max dist bits - dbt = max(dt); - lm = hMap(lt, lbt, 1); - dm = hMap(dt, dbt, 1); - } - else - err(1); - if (pos > tbts) { - if (noSt) - err(0); - break; - } - } - // Make sure the buffer can hold this + the largest possible addition - // Maximum chunk size (practically, theoretically infinite) is 2^17; - if (noBuf) - cbuf(bt + 131072); - var lms = (1 << lbt) - 1, dms = (1 << dbt) - 1; - var lpos = pos; - for (;; lpos = pos) { - // bits read, code - var c = lm[bits16(dat, pos) & lms], sym = c >>> 4; - pos += c & 15; - if (pos > tbts) { - if (noSt) - err(0); - break; - } - if (!c) - err(2); - if (sym < 256) - buf[bt++] = sym; - else if (sym == 256) { - lpos = pos, lm = null; - break; - } - else { - var add = sym - 254; - // no extra bits needed if less - if (sym > 264) { - // index - var i = sym - 257, b = fleb[i]; - add = bits(dat, pos, (1 << b) - 1) + fl[i]; - pos += b; - } - // dist - var d = dm[bits16(dat, pos) & dms], dsym = d >>> 4; - if (!d) - err(3); - pos += d & 15; - var dt = fd[dsym]; - if (dsym > 3) { - var b = fdeb[dsym]; - dt += bits16(dat, pos) & ((1 << b) - 1), pos += b; - } - if (pos > tbts) { - if (noSt) - err(0); - break; - } - if (noBuf) - cbuf(bt + 131072); - var end = bt + add; - for (; bt < end; bt += 4) { - buf[bt] = buf[bt - dt]; - buf[bt + 1] = buf[bt + 1 - dt]; - buf[bt + 2] = buf[bt + 2 - dt]; - buf[bt + 3] = buf[bt + 3 - dt]; - } - bt = end; - } - } - st.l = lm, st.p = lpos, st.b = bt, st.f = final; - if (lm) - final = 1, st.m = lbt, st.d = dm, st.n = dbt; - } while (!final); - return bt == buf.length ? buf : slc(buf, 0, bt); -}; -// starting at p, write the minimum number of bits that can hold v to d -var wbits = function (d, p, v) { - v <<= p & 7; - var o = (p / 8) | 0; - d[o] |= v; - d[o + 1] |= v >>> 8; -}; -// starting at p, write the minimum number of bits (>8) that can hold v to d -var wbits16 = function (d, p, v) { - v <<= p & 7; - var o = (p / 8) | 0; - d[o] |= v; - d[o + 1] |= v >>> 8; - d[o + 2] |= v >>> 16; -}; -// creates code lengths from a frequency table -var hTree = function (d, mb) { - // Need extra info to make a tree - var t = []; - for (var i = 0; i < d.length; ++i) { - if (d[i]) - t.push({ s: i, f: d[i] }); - } - var s = t.length; - var t2 = t.slice(); - if (!s) - return [et, 0]; - if (s == 1) { - var v = new u8(t[0].s + 1); - v[t[0].s] = 1; - return [v, 1]; - } - t.sort(function (a, b) { return a.f - b.f; }); - // after i2 reaches last ind, will be stopped - // freq must be greater than largest possible number of symbols - t.push({ s: -1, f: 25001 }); - var l = t[0], r = t[1], i0 = 0, i1 = 1, i2 = 2; - t[0] = { s: -1, f: l.f + r.f, l: l, r: r }; - // efficient algorithm from UZIP.js - // i0 is lookbehind, i2 is lookahead - after processing two low-freq - // symbols that combined have high freq, will start processing i2 (high-freq, - // non-composite) symbols instead - // see https://reddit.com/r/photopea/comments/ikekht/uzipjs_questions/ - while (i1 != s - 1) { - l = t[t[i0].f < t[i2].f ? i0++ : i2++]; - r = t[i0 != i1 && t[i0].f < t[i2].f ? i0++ : i2++]; - t[i1++] = { s: -1, f: l.f + r.f, l: l, r: r }; - } - var maxSym = t2[0].s; - for (var i = 1; i < s; ++i) { - if (t2[i].s > maxSym) - maxSym = t2[i].s; - } - // code lengths - var tr = new u16(maxSym + 1); - // max bits in tree - var mbt = ln(t[i1 - 1], tr, 0); - if (mbt > mb) { - // more algorithms from UZIP.js - // TODO: find out how this code works (debt) - // ind debt - var i = 0, dt = 0; - // left cost - var lft = mbt - mb, cst = 1 << lft; - t2.sort(function (a, b) { return tr[b.s] - tr[a.s] || a.f - b.f; }); - for (; i < s; ++i) { - var i2_1 = t2[i].s; - if (tr[i2_1] > mb) { - dt += cst - (1 << (mbt - tr[i2_1])); - tr[i2_1] = mb; - } - else - break; - } - dt >>>= lft; - while (dt > 0) { - var i2_2 = t2[i].s; - if (tr[i2_2] < mb) - dt -= 1 << (mb - tr[i2_2]++ - 1); - else - ++i; - } - for (; i >= 0 && dt; --i) { - var i2_3 = t2[i].s; - if (tr[i2_3] == mb) { - --tr[i2_3]; - ++dt; - } - } - mbt = mb; - } - return [new u8(tr), mbt]; -}; -// get the max length and assign length codes -var ln = function (n, l, d) { - return n.s == -1 - ? Math.max(ln(n.l, l, d + 1), ln(n.r, l, d + 1)) - : (l[n.s] = d); -}; -// length codes generation -var lc = function (c) { - var s = c.length; - // Note that the semicolon was intentional - while (s && !c[--s]) - ; - var cl = new u16(++s); - // ind num streak - var cli = 0, cln = c[0], cls = 1; - var w = function (v) { cl[cli++] = v; }; - for (var i = 1; i <= s; ++i) { - if (c[i] == cln && i != s) - ++cls; - else { - if (!cln && cls > 2) { - for (; cls > 138; cls -= 138) - w(32754); - if (cls > 2) { - w(cls > 10 ? ((cls - 11) << 5) | 28690 : ((cls - 3) << 5) | 12305); - cls = 0; - } - } - else if (cls > 3) { - w(cln), --cls; - for (; cls > 6; cls -= 6) - w(8304); - if (cls > 2) - w(((cls - 3) << 5) | 8208), cls = 0; - } - while (cls--) - w(cln); - cls = 1; - cln = c[i]; - } - } - return [cl.subarray(0, cli), s]; -}; -// calculate the length of output from tree, code lengths -var clen = function (cf, cl) { - var l = 0; - for (var i = 0; i < cl.length; ++i) - l += cf[i] * cl[i]; - return l; -}; -// writes a fixed block -// returns the new bit pos -var wfblk = function (out, pos, dat) { - // no need to write 00 as type: TypedArray defaults to 0 - var s = dat.length; - var o = shft(pos + 2); - out[o] = s & 255; - out[o + 1] = s >>> 8; - out[o + 2] = out[o] ^ 255; - out[o + 3] = out[o + 1] ^ 255; - for (var i = 0; i < s; ++i) - out[o + i + 4] = dat[i]; - return (o + 4 + s) * 8; -}; -// writes a block -var wblk = function (dat, out, final, syms, lf, df, eb, li, bs, bl, p) { - wbits(out, p++, final); - ++lf[256]; - var _a = hTree(lf, 15), dlt = _a[0], mlb = _a[1]; - var _b = hTree(df, 15), ddt = _b[0], mdb = _b[1]; - var _c = lc(dlt), lclt = _c[0], nlc = _c[1]; - var _d = lc(ddt), lcdt = _d[0], ndc = _d[1]; - var lcfreq = new u16(19); - for (var i = 0; i < lclt.length; ++i) - lcfreq[lclt[i] & 31]++; - for (var i = 0; i < lcdt.length; ++i) - lcfreq[lcdt[i] & 31]++; - var _e = hTree(lcfreq, 7), lct = _e[0], mlcb = _e[1]; - var nlcc = 19; - for (; nlcc > 4 && !lct[clim[nlcc - 1]]; --nlcc) - ; - var flen = (bl + 5) << 3; - var ftlen = clen(lf, flt) + clen(df, fdt) + eb; - var dtlen = clen(lf, dlt) + clen(df, ddt) + eb + 14 + 3 * nlcc + clen(lcfreq, lct) + (2 * lcfreq[16] + 3 * lcfreq[17] + 7 * lcfreq[18]); - if (flen <= ftlen && flen <= dtlen) - return wfblk(out, p, dat.subarray(bs, bs + bl)); - var lm, ll, dm, dl; - wbits(out, p, 1 + (dtlen < ftlen)), p += 2; - if (dtlen < ftlen) { - lm = hMap(dlt, mlb, 0), ll = dlt, dm = hMap(ddt, mdb, 0), dl = ddt; - var llm = hMap(lct, mlcb, 0); - wbits(out, p, nlc - 257); - wbits(out, p + 5, ndc - 1); - wbits(out, p + 10, nlcc - 4); - p += 14; - for (var i = 0; i < nlcc; ++i) - wbits(out, p + 3 * i, lct[clim[i]]); - p += 3 * nlcc; - var lcts = [lclt, lcdt]; - for (var it = 0; it < 2; ++it) { - var clct = lcts[it]; - for (var i = 0; i < clct.length; ++i) { - var len = clct[i] & 31; - wbits(out, p, llm[len]), p += lct[len]; - if (len > 15) - wbits(out, p, (clct[i] >>> 5) & 127), p += clct[i] >>> 12; - } - } - } - else { - lm = flm, ll = flt, dm = fdm, dl = fdt; - } - for (var i = 0; i < li; ++i) { - if (syms[i] > 255) { - var len = (syms[i] >>> 18) & 31; - wbits16(out, p, lm[len + 257]), p += ll[len + 257]; - if (len > 7) - wbits(out, p, (syms[i] >>> 23) & 31), p += fleb[len]; - var dst = syms[i] & 31; - wbits16(out, p, dm[dst]), p += dl[dst]; - if (dst > 3) - wbits16(out, p, (syms[i] >>> 5) & 8191), p += fdeb[dst]; - } - else { - wbits16(out, p, lm[syms[i]]), p += ll[syms[i]]; - } - } - wbits16(out, p, lm[256]); - return p + ll[256]; -}; -// deflate options (nice << 13) | chain -var deo = /*#__PURE__*/ new u32([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]); -// empty -var et = /*#__PURE__*/ new u8(0); -// compresses data into a raw DEFLATE buffer -var dflt = function (dat, lvl, plvl, pre, post, lst) { - var s = dat.length; - var o = new u8(pre + s + 5 * (1 + Math.ceil(s / 7000)) + post); - // writing to this writes to the output buffer - var w = o.subarray(pre, o.length - post); - var pos = 0; - if (!lvl || s < 8) { - for (var i = 0; i <= s; i += 65535) { - // end - var e = i + 65535; - if (e >= s) { - // write final block - w[pos >> 3] = lst; - } - pos = wfblk(w, pos + 1, dat.subarray(i, e)); - } - } - else { - var opt = deo[lvl - 1]; - var n = opt >>> 13, c = opt & 8191; - var msk_1 = (1 << plvl) - 1; - // prev 2-byte val map curr 2-byte val map - var prev = new u16(32768), head = new u16(msk_1 + 1); - var bs1_1 = Math.ceil(plvl / 3), bs2_1 = 2 * bs1_1; - var hsh = function (i) { return (dat[i] ^ (dat[i + 1] << bs1_1) ^ (dat[i + 2] << bs2_1)) & msk_1; }; - // 24576 is an arbitrary number of maximum symbols per block - // 424 buffer for last block - var syms = new u32(25000); - // length/literal freq distance freq - var lf = new u16(288), df = new u16(32); - // l/lcnt exbits index l/lind waitdx bitpos - var lc_1 = 0, eb = 0, i = 0, li = 0, wi = 0, bs = 0; - for (; i < s; ++i) { - // hash value - // deopt when i > s - 3 - at end, deopt acceptable - var hv = hsh(i); - // index mod 32768 previous index mod - var imod = i & 32767, pimod = head[hv]; - prev[imod] = pimod; - head[hv] = imod; - // We always should modify head and prev, but only add symbols if - // this data is not yet processed ("wait" for wait index) - if (wi <= i) { - // bytes remaining - var rem = s - i; - if ((lc_1 > 7000 || li > 24576) && rem > 423) { - pos = wblk(dat, w, 0, syms, lf, df, eb, li, bs, i - bs, pos); - li = lc_1 = eb = 0, bs = i; - for (var j = 0; j < 286; ++j) - lf[j] = 0; - for (var j = 0; j < 30; ++j) - df[j] = 0; - } - // len dist chain - var l = 2, d = 0, ch_1 = c, dif = (imod - pimod) & 32767; - if (rem > 2 && hv == hsh(i - dif)) { - var maxn = Math.min(n, rem) - 1; - var maxd = Math.min(32767, i); - // max possible length - // not capped at dif because decompressors implement "rolling" index population - var ml = Math.min(258, rem); - while (dif <= maxd && --ch_1 && imod != pimod) { - if (dat[i + l] == dat[i + l - dif]) { - var nl = 0; - for (; nl < ml && dat[i + nl] == dat[i + nl - dif]; ++nl) - ; - if (nl > l) { - l = nl, d = dif; - // break out early when we reach "nice" (we are satisfied enough) - if (nl > maxn) - break; - // now, find the rarest 2-byte sequence within this - // length of literals and search for that instead. - // Much faster than just using the start - var mmd = Math.min(dif, nl - 2); - var md = 0; - for (var j = 0; j < mmd; ++j) { - var ti = (i - dif + j + 32768) & 32767; - var pti = prev[ti]; - var cd = (ti - pti + 32768) & 32767; - if (cd > md) - md = cd, pimod = ti; - } - } - } - // check the previous match - imod = pimod, pimod = prev[imod]; - dif += (imod - pimod + 32768) & 32767; - } - } - // d will be nonzero only when a match was found - if (d) { - // store both dist and len data in one Uint32 - // Make sure this is recognized as a len/dist with 28th bit (2^28) - syms[li++] = 268435456 | (revfl[l] << 18) | revfd[d]; - var lin = revfl[l] & 31, din = revfd[d] & 31; - eb += fleb[lin] + fdeb[din]; - ++lf[257 + lin]; - ++df[din]; - wi = i + l; - ++lc_1; - } - else { - syms[li++] = dat[i]; - ++lf[dat[i]]; - } - } - } - pos = wblk(dat, w, lst, syms, lf, df, eb, li, bs, i - bs, pos); - // this is the easiest way to avoid needing to maintain state - if (!lst && pos & 7) - pos = wfblk(w, pos + 1, et); - } - return slc(o, 0, pre + shft(pos) + post); -}; -// CRC32 table -var crct = /*#__PURE__*/ (function () { - var t = new Int32Array(256); - for (var i = 0; i < 256; ++i) { - var c = i, k = 9; - while (--k) - c = ((c & 1) && -306674912) ^ (c >>> 1); - t[i] = c; - } - return t; -})(); -// CRC32 -var crc = function () { - var c = -1; - return { - p: function (d) { - // closures have awful performance - var cr = c; - for (var i = 0; i < d.length; ++i) - cr = crct[(cr & 255) ^ d[i]] ^ (cr >>> 8); - c = cr; - }, - d: function () { return ~c; } - }; -}; -// Alder32 -var adler = function () { - var a = 1, b = 0; - return { - p: function (d) { - // closures have awful performance - var n = a, m = b; - var l = d.length | 0; - for (var i = 0; i != l;) { - var e = Math.min(i + 2655, l); - for (; i < e; ++i) - m += n += d[i]; - n = (n & 65535) + 15 * (n >> 16), m = (m & 65535) + 15 * (m >> 16); - } - a = n, b = m; - }, - d: function () { - a %= 65521, b %= 65521; - return (a & 255) << 24 | (a >>> 8) << 16 | (b & 255) << 8 | (b >>> 8); - } - }; -}; -; -// deflate with opts -var dopt = function (dat, opt, pre, post, st) { - return dflt(dat, opt.level == null ? 6 : opt.level, opt.mem == null ? Math.ceil(Math.max(8, Math.min(13, Math.log(dat.length))) * 1.5) : (12 + opt.mem), pre, post, !st); -}; -// Walmart object spread -var mrg = function (a, b) { - var o = {}; - for (var k in a) - o[k] = a[k]; - for (var k in b) - o[k] = b[k]; - return o; -}; -// worker clone -// This is possibly the craziest part of the entire codebase, despite how simple it may seem. -// The only parameter to this function is a closure that returns an array of variables outside of the function scope. -// We're going to try to figure out the variable names used in the closure as strings because that is crucial for workerization. -// We will return an object mapping of true variable name to value (basically, the current scope as a JS object). -// The reason we can't just use the original variable names is minifiers mangling the toplevel scope. -// This took me three weeks to figure out how to do. -var wcln = function (fn, fnStr, td) { - var dt = fn(); - var st = fn.toString(); - var ks = st.slice(st.indexOf('[') + 1, st.lastIndexOf(']')).replace(/\s+/g, '').split(','); - for (var i = 0; i < dt.length; ++i) { - var v = dt[i], k = ks[i]; - if (typeof v == 'function') { - fnStr += ';' + k + '='; - var st_1 = v.toString(); - if (v.prototype) { - // for global objects - if (st_1.indexOf('[native code]') != -1) { - var spInd = st_1.indexOf(' ', 8) + 1; - fnStr += st_1.slice(spInd, st_1.indexOf('(', spInd)); - } - else { - fnStr += st_1; - for (var t in v.prototype) - fnStr += ';' + k + '.prototype.' + t + '=' + v.prototype[t].toString(); - } - } - else - fnStr += st_1; - } - else - td[k] = v; - } - return [fnStr, td]; -}; -var ch = []; -// clone bufs -var cbfs = function (v) { - var tl = []; - for (var k in v) { - if (v[k].buffer) { - tl.push((v[k] = new v[k].constructor(v[k])).buffer); - } - } - return tl; -}; -// use a worker to execute code -var wrkr = function (fns, init, id, cb) { - var _a; - if (!ch[id]) { - var fnStr = '', td_1 = {}, m = fns.length - 1; - for (var i = 0; i < m; ++i) - _a = wcln(fns[i], fnStr, td_1), fnStr = _a[0], td_1 = _a[1]; - ch[id] = wcln(fns[m], fnStr, td_1); - } - var td = mrg({}, ch[id][1]); - return wk(ch[id][0] + ';onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage=' + init.toString() + '}', id, td, cbfs(td), cb); -}; -// base async inflate fn -var bInflt = function () { return [u8, u16, u32, fleb, fdeb, clim, fl, fd, flrm, fdrm, rev, ec, hMap, max, bits, bits16, shft, slc, err, inflt, inflateSync, pbf, gu8]; }; -var bDflt = function () { return [u8, u16, u32, fleb, fdeb, clim, revfl, revfd, flm, flt, fdm, fdt, rev, deo, et, hMap, wbits, wbits16, hTree, ln, lc, clen, wfblk, wblk, shft, slc, dflt, dopt, deflateSync, pbf]; }; -// gzip extra -var gze = function () { return [gzh, gzhl, wbytes, crc, crct]; }; -// gunzip extra -var guze = function () { return [gzs, gzl]; }; -// zlib extra -var zle = function () { return [zlh, wbytes, adler]; }; -// unzlib extra -var zule = function () { return [zlv]; }; -// post buf -var pbf = function (msg) { return postMessage(msg, [msg.buffer]); }; -// get u8 -var gu8 = function (o) { return o && o.size && new u8(o.size); }; -// async helper -var cbify = function (dat, opts, fns, init, id, cb) { - var w = wrkr(fns, init, id, function (err, dat) { - w.terminate(); - cb(err, dat); - }); - w.postMessage([dat, opts], opts.consume ? [dat.buffer] : []); - return function () { w.terminate(); }; -}; -// auto stream -var astrm = function (strm) { - strm.ondata = function (dat, final) { return postMessage([dat, final], [dat.buffer]); }; - return function (ev) { return strm.push(ev.data[0], ev.data[1]); }; -}; -// async stream attach -var astrmify = function (fns, strm, opts, init, id) { - var t; - var w = wrkr(fns, init, id, function (err, dat) { - if (err) - w.terminate(), strm.ondata.call(strm, err); - else { - if (dat[1]) - w.terminate(); - strm.ondata.call(strm, err, dat[0], dat[1]); - } - }); - w.postMessage(opts); - strm.push = function (d, f) { - if (!strm.ondata) - err(5); - if (t) - strm.ondata(err(4, 0, 1), null, !!f); - w.postMessage([d, t = f], [d.buffer]); - }; - strm.terminate = function () { w.terminate(); }; -}; -// read 2 bytes -var b2 = function (d, b) { return d[b] | (d[b + 1] << 8); }; -// read 4 bytes -var b4 = function (d, b) { return (d[b] | (d[b + 1] << 8) | (d[b + 2] << 16) | (d[b + 3] << 24)) >>> 0; }; -var b8 = function (d, b) { return b4(d, b) + (b4(d, b + 4) * 4294967296); }; -// write bytes -var wbytes = function (d, b, v) { - for (; v; ++b) - d[b] = v, v >>>= 8; -}; -// gzip header -var gzh = function (c, o) { - var fn = o.filename; - c[0] = 31, c[1] = 139, c[2] = 8, c[8] = o.level < 2 ? 4 : o.level == 9 ? 2 : 0, c[9] = 3; // assume Unix - if (o.mtime != 0) - wbytes(c, 4, Math.floor(new Date(o.mtime || Date.now()) / 1000)); - if (fn) { - c[3] = 8; - for (var i = 0; i <= fn.length; ++i) - c[i + 10] = fn.charCodeAt(i); - } -}; -// gzip footer: -8 to -4 = CRC, -4 to -0 is length -// gzip start -var gzs = function (d) { - if (d[0] != 31 || d[1] != 139 || d[2] != 8) - err(6, 'invalid gzip data'); - var flg = d[3]; - var st = 10; - if (flg & 4) - st += d[10] | (d[11] << 8) + 2; - for (var zs = (flg >> 3 & 1) + (flg >> 4 & 1); zs > 0; zs -= !d[st++]) - ; - return st + (flg & 2); -}; -// gzip length -var gzl = function (d) { - var l = d.length; - return ((d[l - 4] | d[l - 3] << 8 | d[l - 2] << 16) | (d[l - 1] << 24)) >>> 0; -}; -// gzip header length -var gzhl = function (o) { return 10 + ((o.filename && (o.filename.length + 1)) || 0); }; -// zlib header -var zlh = function (c, o) { - var lv = o.level, fl = lv == 0 ? 0 : lv < 6 ? 1 : lv == 9 ? 3 : 2; - c[0] = 120, c[1] = (fl << 6) | (fl ? (32 - 2 * fl) : 1); -}; -// zlib valid -var zlv = function (d) { - if ((d[0] & 15) != 8 || (d[0] >>> 4) > 7 || ((d[0] << 8 | d[1]) % 31)) - err(6, 'invalid zlib data'); - if (d[1] & 32) - err(6, 'invalid zlib data: preset dictionaries not supported'); -}; -function AsyncCmpStrm(opts, cb) { - if (!cb && typeof opts == 'function') - cb = opts, opts = {}; - this.ondata = cb; - return opts; -} -// zlib footer: -4 to -0 is Adler32 -/** - * Streaming DEFLATE compression - */ -var Deflate = /*#__PURE__*/ (function () { - function Deflate(opts, cb) { - if (!cb && typeof opts == 'function') - cb = opts, opts = {}; - this.ondata = cb; - this.o = opts || {}; - } - Deflate.prototype.p = function (c, f) { - this.ondata(dopt(c, this.o, 0, 0, !f), f); - }; - /** - * Pushes a chunk to be deflated - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - Deflate.prototype.push = function (chunk, final) { - if (!this.ondata) - err(5); - if (this.d) - err(4); - this.d = final; - this.p(chunk, final || false); - }; - return Deflate; -}()); -export { Deflate }; -/** - * Asynchronous streaming DEFLATE compression - */ -var AsyncDeflate = /*#__PURE__*/ (function () { - function AsyncDeflate(opts, cb) { - astrmify([ - bDflt, - function () { return [astrm, Deflate]; } - ], this, AsyncCmpStrm.call(this, opts, cb), function (ev) { - var strm = new Deflate(ev.data); - onmessage = astrm(strm); - }, 6); - } - return AsyncDeflate; -}()); -export { AsyncDeflate }; -export function deflate(data, opts, cb) { - if (!cb) - cb = opts, opts = {}; - if (typeof cb != 'function') - err(7); - return cbify(data, opts, [ - bDflt, - ], function (ev) { return pbf(deflateSync(ev.data[0], ev.data[1])); }, 0, cb); -} -/** - * Compresses data with DEFLATE without any wrapper - * @param data The data to compress - * @param opts The compression options - * @returns The deflated version of the data - */ -export function deflateSync(data, opts) { - return dopt(data, opts || {}, 0, 0); -} -/** - * Streaming DEFLATE decompression - */ -var Inflate = /*#__PURE__*/ (function () { - /** - * Creates an inflation stream - * @param cb The callback to call whenever data is inflated - */ - function Inflate(cb) { - this.s = {}; - this.p = new u8(0); - this.ondata = cb; - } - Inflate.prototype.e = function (c) { - if (!this.ondata) - err(5); - if (this.d) - err(4); - var l = this.p.length; - var n = new u8(l + c.length); - n.set(this.p), n.set(c, l), this.p = n; - }; - Inflate.prototype.c = function (final) { - this.d = this.s.i = final || false; - var bts = this.s.b; - var dt = inflt(this.p, this.o, this.s); - this.ondata(slc(dt, bts, this.s.b), this.d); - this.o = slc(dt, this.s.b - 32768), this.s.b = this.o.length; - this.p = slc(this.p, (this.s.p / 8) | 0), this.s.p &= 7; - }; - /** - * Pushes a chunk to be inflated - * @param chunk The chunk to push - * @param final Whether this is the final chunk - */ - Inflate.prototype.push = function (chunk, final) { - this.e(chunk), this.c(final); - }; - return Inflate; -}()); -export { Inflate }; -/** - * Asynchronous streaming DEFLATE decompression - */ -var AsyncInflate = /*#__PURE__*/ (function () { - /** - * Creates an asynchronous inflation stream - * @param cb The callback to call whenever data is deflated - */ - function AsyncInflate(cb) { - this.ondata = cb; - astrmify([ - bInflt, - function () { return [astrm, Inflate]; } - ], this, 0, function () { - var strm = new Inflate(); - onmessage = astrm(strm); - }, 7); - } - return AsyncInflate; -}()); -export { AsyncInflate }; -export function inflate(data, opts, cb) { - if (!cb) - cb = opts, opts = {}; - if (typeof cb != 'function') - err(7); - return cbify(data, opts, [ - bInflt - ], function (ev) { return pbf(inflateSync(ev.data[0], gu8(ev.data[1]))); }, 1, cb); -} -/** - * Expands DEFLATE data with no wrapper - * @param data The data to decompress - * @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length. - * @returns The decompressed version of the data - */ -export function inflateSync(data, out) { - return inflt(data, out); -} -// before you yell at me for not just using extends, my reason is that TS inheritance is hard to workerize. -/** - * Streaming GZIP compression - */ -var Gzip = /*#__PURE__*/ (function () { - function Gzip(opts, cb) { - this.c = crc(); - this.l = 0; - this.v = 1; - Deflate.call(this, opts, cb); - } - /** - * Pushes a chunk to be GZIPped - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - Gzip.prototype.push = function (chunk, final) { - Deflate.prototype.push.call(this, chunk, final); - }; - Gzip.prototype.p = function (c, f) { - this.c.p(c); - this.l += c.length; - var raw = dopt(c, this.o, this.v && gzhl(this.o), f && 8, !f); - if (this.v) - gzh(raw, this.o), this.v = 0; - if (f) - wbytes(raw, raw.length - 8, this.c.d()), wbytes(raw, raw.length - 4, this.l); - this.ondata(raw, f); - }; - return Gzip; -}()); -export { Gzip }; -/** - * Asynchronous streaming GZIP compression - */ -var AsyncGzip = /*#__PURE__*/ (function () { - function AsyncGzip(opts, cb) { - astrmify([ - bDflt, - gze, - function () { return [astrm, Deflate, Gzip]; } - ], this, AsyncCmpStrm.call(this, opts, cb), function (ev) { - var strm = new Gzip(ev.data); - onmessage = astrm(strm); - }, 8); - } - return AsyncGzip; -}()); -export { AsyncGzip }; -export function gzip(data, opts, cb) { - if (!cb) - cb = opts, opts = {}; - if (typeof cb != 'function') - err(7); - return cbify(data, opts, [ - bDflt, - gze, - function () { return [gzipSync]; } - ], function (ev) { return pbf(gzipSync(ev.data[0], ev.data[1])); }, 2, cb); -} -/** - * Compresses data with GZIP - * @param data The data to compress - * @param opts The compression options - * @returns The gzipped version of the data - */ -export function gzipSync(data, opts) { - if (!opts) - opts = {}; - var c = crc(), l = data.length; - c.p(data); - var d = dopt(data, opts, gzhl(opts), 8), s = d.length; - return gzh(d, opts), wbytes(d, s - 8, c.d()), wbytes(d, s - 4, l), d; -} -/** - * Streaming GZIP decompression - */ -var Gunzip = /*#__PURE__*/ (function () { - /** - * Creates a GUNZIP stream - * @param cb The callback to call whenever data is inflated - */ - function Gunzip(cb) { - this.v = 1; - Inflate.call(this, cb); - } - /** - * Pushes a chunk to be GUNZIPped - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - Gunzip.prototype.push = function (chunk, final) { - Inflate.prototype.e.call(this, chunk); - if (this.v) { - var s = this.p.length > 3 ? gzs(this.p) : 4; - if (s >= this.p.length && !final) - return; - this.p = this.p.subarray(s), this.v = 0; - } - if (final) { - if (this.p.length < 8) - err(6, 'invalid gzip data'); - this.p = this.p.subarray(0, -8); - } - // necessary to prevent TS from using the closure value - // This allows for workerization to function correctly - Inflate.prototype.c.call(this, final); - }; - return Gunzip; -}()); -export { Gunzip }; -/** - * Asynchronous streaming GZIP decompression - */ -var AsyncGunzip = /*#__PURE__*/ (function () { - /** - * Creates an asynchronous GUNZIP stream - * @param cb The callback to call whenever data is deflated - */ - function AsyncGunzip(cb) { - this.ondata = cb; - astrmify([ - bInflt, - guze, - function () { return [astrm, Inflate, Gunzip]; } - ], this, 0, function () { - var strm = new Gunzip(); - onmessage = astrm(strm); - }, 9); - } - return AsyncGunzip; -}()); -export { AsyncGunzip }; -export function gunzip(data, opts, cb) { - if (!cb) - cb = opts, opts = {}; - if (typeof cb != 'function') - err(7); - return cbify(data, opts, [ - bInflt, - guze, - function () { return [gunzipSync]; } - ], function (ev) { return pbf(gunzipSync(ev.data[0])); }, 3, cb); -} -/** - * Expands GZIP data - * @param data The data to decompress - * @param out Where to write the data. GZIP already encodes the output size, so providing this doesn't save memory. - * @returns The decompressed version of the data - */ -export function gunzipSync(data, out) { - return inflt(data.subarray(gzs(data), -8), out || new u8(gzl(data))); -} -/** - * Streaming Zlib compression - */ -var Zlib = /*#__PURE__*/ (function () { - function Zlib(opts, cb) { - this.c = adler(); - this.v = 1; - Deflate.call(this, opts, cb); - } - /** - * Pushes a chunk to be zlibbed - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - Zlib.prototype.push = function (chunk, final) { - Deflate.prototype.push.call(this, chunk, final); - }; - Zlib.prototype.p = function (c, f) { - this.c.p(c); - var raw = dopt(c, this.o, this.v && 2, f && 4, !f); - if (this.v) - zlh(raw, this.o), this.v = 0; - if (f) - wbytes(raw, raw.length - 4, this.c.d()); - this.ondata(raw, f); - }; - return Zlib; -}()); -export { Zlib }; -/** - * Asynchronous streaming Zlib compression - */ -var AsyncZlib = /*#__PURE__*/ (function () { - function AsyncZlib(opts, cb) { - astrmify([ - bDflt, - zle, - function () { return [astrm, Deflate, Zlib]; } - ], this, AsyncCmpStrm.call(this, opts, cb), function (ev) { - var strm = new Zlib(ev.data); - onmessage = astrm(strm); - }, 10); - } - return AsyncZlib; -}()); -export { AsyncZlib }; -export function zlib(data, opts, cb) { - if (!cb) - cb = opts, opts = {}; - if (typeof cb != 'function') - err(7); - return cbify(data, opts, [ - bDflt, - zle, - function () { return [zlibSync]; } - ], function (ev) { return pbf(zlibSync(ev.data[0], ev.data[1])); }, 4, cb); -} -/** - * Compress data with Zlib - * @param data The data to compress - * @param opts The compression options - * @returns The zlib-compressed version of the data - */ -export function zlibSync(data, opts) { - if (!opts) - opts = {}; - var a = adler(); - a.p(data); - var d = dopt(data, opts, 2, 4); - return zlh(d, opts), wbytes(d, d.length - 4, a.d()), d; -} -/** - * Streaming Zlib decompression - */ -var Unzlib = /*#__PURE__*/ (function () { - /** - * Creates a Zlib decompression stream - * @param cb The callback to call whenever data is inflated - */ - function Unzlib(cb) { - this.v = 1; - Inflate.call(this, cb); - } - /** - * Pushes a chunk to be unzlibbed - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - Unzlib.prototype.push = function (chunk, final) { - Inflate.prototype.e.call(this, chunk); - if (this.v) { - if (this.p.length < 2 && !final) - return; - this.p = this.p.subarray(2), this.v = 0; - } - if (final) { - if (this.p.length < 4) - err(6, 'invalid zlib data'); - this.p = this.p.subarray(0, -4); - } - // necessary to prevent TS from using the closure value - // This allows for workerization to function correctly - Inflate.prototype.c.call(this, final); - }; - return Unzlib; -}()); -export { Unzlib }; -/** - * Asynchronous streaming Zlib decompression - */ -var AsyncUnzlib = /*#__PURE__*/ (function () { - /** - * Creates an asynchronous Zlib decompression stream - * @param cb The callback to call whenever data is deflated - */ - function AsyncUnzlib(cb) { - this.ondata = cb; - astrmify([ - bInflt, - zule, - function () { return [astrm, Inflate, Unzlib]; } - ], this, 0, function () { - var strm = new Unzlib(); - onmessage = astrm(strm); - }, 11); - } - return AsyncUnzlib; -}()); -export { AsyncUnzlib }; -export function unzlib(data, opts, cb) { - if (!cb) - cb = opts, opts = {}; - if (typeof cb != 'function') - err(7); - return cbify(data, opts, [ - bInflt, - zule, - function () { return [unzlibSync]; } - ], function (ev) { return pbf(unzlibSync(ev.data[0], gu8(ev.data[1]))); }, 5, cb); -} -/** - * Expands Zlib data - * @param data The data to decompress - * @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length. - * @returns The decompressed version of the data - */ -export function unzlibSync(data, out) { - return inflt((zlv(data), data.subarray(2, -4)), out); -} -// Default algorithm for compression (used because having a known output size allows faster decompression) -export { gzip as compress, AsyncGzip as AsyncCompress }; -// Default algorithm for compression (used because having a known output size allows faster decompression) -export { gzipSync as compressSync, Gzip as Compress }; -/** - * Streaming GZIP, Zlib, or raw DEFLATE decompression - */ -var Decompress = /*#__PURE__*/ (function () { - /** - * Creates a decompression stream - * @param cb The callback to call whenever data is decompressed - */ - function Decompress(cb) { - this.G = Gunzip; - this.I = Inflate; - this.Z = Unzlib; - this.ondata = cb; - } - /** - * Pushes a chunk to be decompressed - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - Decompress.prototype.push = function (chunk, final) { - if (!this.ondata) - err(5); - if (!this.s) { - if (this.p && this.p.length) { - var n = new u8(this.p.length + chunk.length); - n.set(this.p), n.set(chunk, this.p.length); - } - else - this.p = chunk; - if (this.p.length > 2) { - var _this_1 = this; - var cb = function () { _this_1.ondata.apply(_this_1, arguments); }; - this.s = (this.p[0] == 31 && this.p[1] == 139 && this.p[2] == 8) - ? new this.G(cb) - : ((this.p[0] & 15) != 8 || (this.p[0] >> 4) > 7 || ((this.p[0] << 8 | this.p[1]) % 31)) - ? new this.I(cb) - : new this.Z(cb); - this.s.push(this.p, final); - this.p = null; - } - } - else - this.s.push(chunk, final); - }; - return Decompress; -}()); -export { Decompress }; -/** - * Asynchronous streaming GZIP, Zlib, or raw DEFLATE decompression - */ -var AsyncDecompress = /*#__PURE__*/ (function () { - /** - * Creates an asynchronous decompression stream - * @param cb The callback to call whenever data is decompressed - */ - function AsyncDecompress(cb) { - this.G = AsyncGunzip; - this.I = AsyncInflate; - this.Z = AsyncUnzlib; - this.ondata = cb; - } - /** - * Pushes a chunk to be decompressed - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - AsyncDecompress.prototype.push = function (chunk, final) { - Decompress.prototype.push.call(this, chunk, final); - }; - return AsyncDecompress; -}()); -export { AsyncDecompress }; -export function decompress(data, opts, cb) { - if (!cb) - cb = opts, opts = {}; - if (typeof cb != 'function') - err(7); - return (data[0] == 31 && data[1] == 139 && data[2] == 8) - ? gunzip(data, opts, cb) - : ((data[0] & 15) != 8 || (data[0] >> 4) > 7 || ((data[0] << 8 | data[1]) % 31)) - ? inflate(data, opts, cb) - : unzlib(data, opts, cb); -} -/** - * Expands compressed GZIP, Zlib, or raw DEFLATE data, automatically detecting the format - * @param data The data to decompress - * @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length. - * @returns The decompressed version of the data - */ -export function decompressSync(data, out) { - return (data[0] == 31 && data[1] == 139 && data[2] == 8) - ? gunzipSync(data, out) - : ((data[0] & 15) != 8 || (data[0] >> 4) > 7 || ((data[0] << 8 | data[1]) % 31)) - ? inflateSync(data, out) - : unzlibSync(data, out); -} -// flatten a directory structure -var fltn = function (d, p, t, o) { - for (var k in d) { - var val = d[k], n = p + k, op = o; - if (Array.isArray(val)) - op = mrg(o, val[1]), val = val[0]; - if (val instanceof u8) - t[n] = [val, op]; - else { - t[n += '/'] = [new u8(0), op]; - fltn(val, n, t, o); - } - } -}; -// text encoder -var te = typeof TextEncoder != 'undefined' && /*#__PURE__*/ new TextEncoder(); -// text decoder -var td = typeof TextDecoder != 'undefined' && /*#__PURE__*/ new TextDecoder(); -// text decoder stream -var tds = 0; -try { - td.decode(et, { stream: true }); - tds = 1; -} -catch (e) { } -// decode UTF8 -var dutf8 = function (d) { - for (var r = '', i = 0;;) { - var c = d[i++]; - var eb = (c > 127) + (c > 223) + (c > 239); - if (i + eb > d.length) - return [r, slc(d, i - 1)]; - if (!eb) - r += String.fromCharCode(c); - else if (eb == 3) { - c = ((c & 15) << 18 | (d[i++] & 63) << 12 | (d[i++] & 63) << 6 | (d[i++] & 63)) - 65536, - r += String.fromCharCode(55296 | (c >> 10), 56320 | (c & 1023)); - } - else if (eb & 1) - r += String.fromCharCode((c & 31) << 6 | (d[i++] & 63)); - else - r += String.fromCharCode((c & 15) << 12 | (d[i++] & 63) << 6 | (d[i++] & 63)); - } -}; -/** - * Streaming UTF-8 decoding - */ -var DecodeUTF8 = /*#__PURE__*/ (function () { - /** - * Creates a UTF-8 decoding stream - * @param cb The callback to call whenever data is decoded - */ - function DecodeUTF8(cb) { - this.ondata = cb; - if (tds) - this.t = new TextDecoder(); - else - this.p = et; - } - /** - * Pushes a chunk to be decoded from UTF-8 binary - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - DecodeUTF8.prototype.push = function (chunk, final) { - if (!this.ondata) - err(5); - final = !!final; - if (this.t) { - this.ondata(this.t.decode(chunk, { stream: true }), final); - if (final) { - if (this.t.decode().length) - err(8); - this.t = null; - } - return; - } - if (!this.p) - err(4); - var dat = new u8(this.p.length + chunk.length); - dat.set(this.p); - dat.set(chunk, this.p.length); - var _a = dutf8(dat), ch = _a[0], np = _a[1]; - if (final) { - if (np.length) - err(8); - this.p = null; - } - else - this.p = np; - this.ondata(ch, final); - }; - return DecodeUTF8; -}()); -export { DecodeUTF8 }; -/** - * Streaming UTF-8 encoding - */ -var EncodeUTF8 = /*#__PURE__*/ (function () { - /** - * Creates a UTF-8 decoding stream - * @param cb The callback to call whenever data is encoded - */ - function EncodeUTF8(cb) { - this.ondata = cb; - } - /** - * Pushes a chunk to be encoded to UTF-8 - * @param chunk The string data to push - * @param final Whether this is the last chunk - */ - EncodeUTF8.prototype.push = function (chunk, final) { - if (!this.ondata) - err(5); - if (this.d) - err(4); - this.ondata(strToU8(chunk), this.d = final || false); - }; - return EncodeUTF8; -}()); -export { EncodeUTF8 }; -/** - * Converts a string into a Uint8Array for use with compression/decompression methods - * @param str The string to encode - * @param latin1 Whether or not to interpret the data as Latin-1. This should - * not need to be true unless decoding a binary string. - * @returns The string encoded in UTF-8/Latin-1 binary - */ -export function strToU8(str, latin1) { - if (latin1) { - var ar_1 = new u8(str.length); - for (var i = 0; i < str.length; ++i) - ar_1[i] = str.charCodeAt(i); - return ar_1; - } - if (te) - return te.encode(str); - var l = str.length; - var ar = new u8(str.length + (str.length >> 1)); - var ai = 0; - var w = function (v) { ar[ai++] = v; }; - for (var i = 0; i < l; ++i) { - if (ai + 5 > ar.length) { - var n = new u8(ai + 8 + ((l - i) << 1)); - n.set(ar); - ar = n; - } - var c = str.charCodeAt(i); - if (c < 128 || latin1) - w(c); - else if (c < 2048) - w(192 | (c >> 6)), w(128 | (c & 63)); - else if (c > 55295 && c < 57344) - c = 65536 + (c & 1023 << 10) | (str.charCodeAt(++i) & 1023), - w(240 | (c >> 18)), w(128 | ((c >> 12) & 63)), w(128 | ((c >> 6) & 63)), w(128 | (c & 63)); - else - w(224 | (c >> 12)), w(128 | ((c >> 6) & 63)), w(128 | (c & 63)); - } - return slc(ar, 0, ai); -} -/** - * Converts a Uint8Array to a string - * @param dat The data to decode to string - * @param latin1 Whether or not to interpret the data as Latin-1. This should - * not need to be true unless encoding to binary string. - * @returns The original UTF-8/Latin-1 string - */ -export function strFromU8(dat, latin1) { - if (latin1) { - var r = ''; - for (var i = 0; i < dat.length; i += 16384) - r += String.fromCharCode.apply(null, dat.subarray(i, i + 16384)); - return r; - } - else if (td) - return td.decode(dat); - else { - var _a = dutf8(dat), out = _a[0], ext = _a[1]; - if (ext.length) - err(8); - return out; - } -} -; -// deflate bit flag -var dbf = function (l) { return l == 1 ? 3 : l < 6 ? 2 : l == 9 ? 1 : 0; }; -// skip local zip header -var slzh = function (d, b) { return b + 30 + b2(d, b + 26) + b2(d, b + 28); }; -// read zip header -var zh = function (d, b, z) { - var fnl = b2(d, b + 28), fn = strFromU8(d.subarray(b + 46, b + 46 + fnl), !(b2(d, b + 8) & 2048)), es = b + 46 + fnl, bs = b4(d, b + 20); - var _a = z && bs == 4294967295 ? z64e(d, es) : [bs, b4(d, b + 24), b4(d, b + 42)], sc = _a[0], su = _a[1], off = _a[2]; - return [b2(d, b + 10), sc, su, fn, es + b2(d, b + 30) + b2(d, b + 32), off]; -}; -// read zip64 extra field -var z64e = function (d, b) { - for (; b2(d, b) != 1; b += 4 + b2(d, b + 2)) - ; - return [b8(d, b + 12), b8(d, b + 4), b8(d, b + 20)]; -}; -// extra field length -var exfl = function (ex) { - var le = 0; - if (ex) { - for (var k in ex) { - var l = ex[k].length; - if (l > 65535) - err(9); - le += l + 4; - } - } - return le; -}; -// write zip header -var wzh = function (d, b, f, fn, u, c, ce, co) { - var fl = fn.length, ex = f.extra, col = co && co.length; - var exl = exfl(ex); - wbytes(d, b, ce != null ? 0x2014B50 : 0x4034B50), b += 4; - if (ce != null) - d[b++] = 20, d[b++] = f.os; - d[b] = 20, b += 2; // spec compliance? what's that? - d[b++] = (f.flag << 1) | (c == null && 8), d[b++] = u && 8; - d[b++] = f.compression & 255, d[b++] = f.compression >> 8; - var dt = new Date(f.mtime == null ? Date.now() : f.mtime), y = dt.getFullYear() - 1980; - if (y < 0 || y > 119) - err(10); - wbytes(d, b, (y << 25) | ((dt.getMonth() + 1) << 21) | (dt.getDate() << 16) | (dt.getHours() << 11) | (dt.getMinutes() << 5) | (dt.getSeconds() >>> 1)), b += 4; - if (c != null) { - wbytes(d, b, f.crc); - wbytes(d, b + 4, c); - wbytes(d, b + 8, f.size); - } - wbytes(d, b + 12, fl); - wbytes(d, b + 14, exl), b += 16; - if (ce != null) { - wbytes(d, b, col); - wbytes(d, b + 6, f.attrs); - wbytes(d, b + 10, ce), b += 14; - } - d.set(fn, b); - b += fl; - if (exl) { - for (var k in ex) { - var exf = ex[k], l = exf.length; - wbytes(d, b, +k); - wbytes(d, b + 2, l); - d.set(exf, b + 4), b += 4 + l; - } - } - if (col) - d.set(co, b), b += col; - return b; -}; -// write zip footer (end of central directory) -var wzf = function (o, b, c, d, e) { - wbytes(o, b, 0x6054B50); // skip disk - wbytes(o, b + 8, c); - wbytes(o, b + 10, c); - wbytes(o, b + 12, d); - wbytes(o, b + 16, e); -}; -/** - * A pass-through stream to keep data uncompressed in a ZIP archive. - */ -var ZipPassThrough = /*#__PURE__*/ (function () { - /** - * Creates a pass-through stream that can be added to ZIP archives - * @param filename The filename to associate with this data stream - */ - function ZipPassThrough(filename) { - this.filename = filename; - this.c = crc(); - this.size = 0; - this.compression = 0; - } - /** - * Processes a chunk and pushes to the output stream. You can override this - * method in a subclass for custom behavior, but by default this passes - * the data through. You must call this.ondata(err, chunk, final) at some - * point in this method. - * @param chunk The chunk to process - * @param final Whether this is the last chunk - */ - ZipPassThrough.prototype.process = function (chunk, final) { - this.ondata(null, chunk, final); - }; - /** - * Pushes a chunk to be added. If you are subclassing this with a custom - * compression algorithm, note that you must push data from the source - * file only, pre-compression. - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - ZipPassThrough.prototype.push = function (chunk, final) { - if (!this.ondata) - err(5); - this.c.p(chunk); - this.size += chunk.length; - if (final) - this.crc = this.c.d(); - this.process(chunk, final || false); - }; - return ZipPassThrough; -}()); -export { ZipPassThrough }; -// I don't extend because TypeScript extension adds 1kB of runtime bloat -/** - * Streaming DEFLATE compression for ZIP archives. Prefer using AsyncZipDeflate - * for better performance - */ -var ZipDeflate = /*#__PURE__*/ (function () { - /** - * Creates a DEFLATE stream that can be added to ZIP archives - * @param filename The filename to associate with this data stream - * @param opts The compression options - */ - function ZipDeflate(filename, opts) { - var _this_1 = this; - if (!opts) - opts = {}; - ZipPassThrough.call(this, filename); - this.d = new Deflate(opts, function (dat, final) { - _this_1.ondata(null, dat, final); - }); - this.compression = 8; - this.flag = dbf(opts.level); - } - ZipDeflate.prototype.process = function (chunk, final) { - try { - this.d.push(chunk, final); - } - catch (e) { - this.ondata(e, null, final); - } - }; - /** - * Pushes a chunk to be deflated - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - ZipDeflate.prototype.push = function (chunk, final) { - ZipPassThrough.prototype.push.call(this, chunk, final); - }; - return ZipDeflate; -}()); -export { ZipDeflate }; -/** - * Asynchronous streaming DEFLATE compression for ZIP archives - */ -var AsyncZipDeflate = /*#__PURE__*/ (function () { - /** - * Creates a DEFLATE stream that can be added to ZIP archives - * @param filename The filename to associate with this data stream - * @param opts The compression options - */ - function AsyncZipDeflate(filename, opts) { - var _this_1 = this; - if (!opts) - opts = {}; - ZipPassThrough.call(this, filename); - this.d = new AsyncDeflate(opts, function (err, dat, final) { - _this_1.ondata(err, dat, final); - }); - this.compression = 8; - this.flag = dbf(opts.level); - this.terminate = this.d.terminate; - } - AsyncZipDeflate.prototype.process = function (chunk, final) { - this.d.push(chunk, final); - }; - /** - * Pushes a chunk to be deflated - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - AsyncZipDeflate.prototype.push = function (chunk, final) { - ZipPassThrough.prototype.push.call(this, chunk, final); - }; - return AsyncZipDeflate; -}()); -export { AsyncZipDeflate }; -// TODO: Better tree shaking -/** - * A zippable archive to which files can incrementally be added - */ -var Zip = /*#__PURE__*/ (function () { - /** - * Creates an empty ZIP archive to which files can be added - * @param cb The callback to call whenever data for the generated ZIP archive - * is available - */ - function Zip(cb) { - this.ondata = cb; - this.u = []; - this.d = 1; - } - /** - * Adds a file to the ZIP archive - * @param file The file stream to add - */ - Zip.prototype.add = function (file) { - var _this_1 = this; - if (!this.ondata) - err(5); - // finishing or finished - if (this.d & 2) - this.ondata(err(4 + (this.d & 1) * 8, 0, 1), null, false); - else { - var f = strToU8(file.filename), fl_1 = f.length; - var com = file.comment, o = com && strToU8(com); - var u = fl_1 != file.filename.length || (o && (com.length != o.length)); - var hl_1 = fl_1 + exfl(file.extra) + 30; - if (fl_1 > 65535) - this.ondata(err(11, 0, 1), null, false); - var header = new u8(hl_1); - wzh(header, 0, file, f, u); - var chks_1 = [header]; - var pAll_1 = function () { - for (var _i = 0, chks_2 = chks_1; _i < chks_2.length; _i++) { - var chk = chks_2[_i]; - _this_1.ondata(null, chk, false); - } - chks_1 = []; - }; - var tr_1 = this.d; - this.d = 0; - var ind_1 = this.u.length; - var uf_1 = mrg(file, { - f: f, - u: u, - o: o, - t: function () { - if (file.terminate) - file.terminate(); - }, - r: function () { - pAll_1(); - if (tr_1) { - var nxt = _this_1.u[ind_1 + 1]; - if (nxt) - nxt.r(); - else - _this_1.d = 1; - } - tr_1 = 1; - } - }); - var cl_1 = 0; - file.ondata = function (err, dat, final) { - if (err) { - _this_1.ondata(err, dat, final); - _this_1.terminate(); - } - else { - cl_1 += dat.length; - chks_1.push(dat); - if (final) { - var dd = new u8(16); - wbytes(dd, 0, 0x8074B50); - wbytes(dd, 4, file.crc); - wbytes(dd, 8, cl_1); - wbytes(dd, 12, file.size); - chks_1.push(dd); - uf_1.c = cl_1, uf_1.b = hl_1 + cl_1 + 16, uf_1.crc = file.crc, uf_1.size = file.size; - if (tr_1) - uf_1.r(); - tr_1 = 1; - } - else if (tr_1) - pAll_1(); - } - }; - this.u.push(uf_1); - } - }; - /** - * Ends the process of adding files and prepares to emit the final chunks. - * This *must* be called after adding all desired files for the resulting - * ZIP file to work properly. - */ - Zip.prototype.end = function () { - var _this_1 = this; - if (this.d & 2) { - this.ondata(err(4 + (this.d & 1) * 8, 0, 1), null, true); - return; - } - if (this.d) - this.e(); - else - this.u.push({ - r: function () { - if (!(_this_1.d & 1)) - return; - _this_1.u.splice(-1, 1); - _this_1.e(); - }, - t: function () { } - }); - this.d = 3; - }; - Zip.prototype.e = function () { - var bt = 0, l = 0, tl = 0; - for (var _i = 0, _a = this.u; _i < _a.length; _i++) { - var f = _a[_i]; - tl += 46 + f.f.length + exfl(f.extra) + (f.o ? f.o.length : 0); - } - var out = new u8(tl + 22); - for (var _b = 0, _c = this.u; _b < _c.length; _b++) { - var f = _c[_b]; - wzh(out, bt, f, f.f, f.u, f.c, l, f.o); - bt += 46 + f.f.length + exfl(f.extra) + (f.o ? f.o.length : 0), l += f.b; - } - wzf(out, bt, this.u.length, tl, l); - this.ondata(null, out, true); - this.d = 2; - }; - /** - * A method to terminate any internal workers used by the stream. Subsequent - * calls to add() will fail. - */ - Zip.prototype.terminate = function () { - for (var _i = 0, _a = this.u; _i < _a.length; _i++) { - var f = _a[_i]; - f.t(); - } - this.d = 2; - }; - return Zip; -}()); -export { Zip }; -export function zip(data, opts, cb) { - if (!cb) - cb = opts, opts = {}; - if (typeof cb != 'function') - err(7); - var r = {}; - fltn(data, '', r, opts); - var k = Object.keys(r); - var lft = k.length, o = 0, tot = 0; - var slft = lft, files = new Array(lft); - var term = []; - var tAll = function () { - for (var i = 0; i < term.length; ++i) - term[i](); - }; - var cbd = function (a, b) { - mt(function () { cb(a, b); }); - }; - mt(function () { cbd = cb; }); - var cbf = function () { - var out = new u8(tot + 22), oe = o, cdl = tot - o; - tot = 0; - for (var i = 0; i < slft; ++i) { - var f = files[i]; - try { - var l = f.c.length; - wzh(out, tot, f, f.f, f.u, l); - var badd = 30 + f.f.length + exfl(f.extra); - var loc = tot + badd; - out.set(f.c, loc); - wzh(out, o, f, f.f, f.u, l, tot, f.m), o += 16 + badd + (f.m ? f.m.length : 0), tot = loc + l; - } - catch (e) { - return cbd(e, null); - } - } - wzf(out, o, files.length, cdl, oe); - cbd(null, out); - }; - if (!lft) - cbf(); - var _loop_1 = function (i) { - var fn = k[i]; - var _a = r[fn], file = _a[0], p = _a[1]; - var c = crc(), size = file.length; - c.p(file); - var f = strToU8(fn), s = f.length; - var com = p.comment, m = com && strToU8(com), ms = m && m.length; - var exl = exfl(p.extra); - var compression = p.level == 0 ? 0 : 8; - var cbl = function (e, d) { - if (e) { - tAll(); - cbd(e, null); - } - else { - var l = d.length; - files[i] = mrg(p, { - size: size, - crc: c.d(), - c: d, - f: f, - m: m, - u: s != fn.length || (m && (com.length != ms)), - compression: compression - }); - o += 30 + s + exl + l; - tot += 76 + 2 * (s + exl) + (ms || 0) + l; - if (!--lft) - cbf(); - } - }; - if (s > 65535) - cbl(err(11, 0, 1), null); - if (!compression) - cbl(null, file); - else if (size < 160000) { - try { - cbl(null, deflateSync(file, p)); - } - catch (e) { - cbl(e, null); - } - } - else - term.push(deflate(file, p, cbl)); - }; - // Cannot use lft because it can decrease - for (var i = 0; i < slft; ++i) { - _loop_1(i); - } - return tAll; -} -/** - * Synchronously creates a ZIP file. Prefer using `zip` for better performance - * with more than one file. - * @param data The directory structure for the ZIP archive - * @param opts The main options, merged with per-file options - * @returns The generated ZIP archive - */ -export function zipSync(data, opts) { - if (!opts) - opts = {}; - var r = {}; - var files = []; - fltn(data, '', r, opts); - var o = 0; - var tot = 0; - for (var fn in r) { - var _a = r[fn], file = _a[0], p = _a[1]; - var compression = p.level == 0 ? 0 : 8; - var f = strToU8(fn), s = f.length; - var com = p.comment, m = com && strToU8(com), ms = m && m.length; - var exl = exfl(p.extra); - if (s > 65535) - err(11); - var d = compression ? deflateSync(file, p) : file, l = d.length; - var c = crc(); - c.p(file); - files.push(mrg(p, { - size: file.length, - crc: c.d(), - c: d, - f: f, - m: m, - u: s != fn.length || (m && (com.length != ms)), - o: o, - compression: compression - })); - o += 30 + s + exl + l; - tot += 76 + 2 * (s + exl) + (ms || 0) + l; - } - var out = new u8(tot + 22), oe = o, cdl = tot - o; - for (var i = 0; i < files.length; ++i) { - var f = files[i]; - wzh(out, f.o, f, f.f, f.u, f.c.length); - var badd = 30 + f.f.length + exfl(f.extra); - out.set(f.c, f.o + badd); - wzh(out, o, f, f.f, f.u, f.c.length, f.o, f.m), o += 16 + badd + (f.m ? f.m.length : 0); - } - wzf(out, o, files.length, cdl, oe); - return out; -} -/** - * Streaming pass-through decompression for ZIP archives - */ -var UnzipPassThrough = /*#__PURE__*/ (function () { - function UnzipPassThrough() { - } - UnzipPassThrough.prototype.push = function (data, final) { - this.ondata(null, data, final); - }; - UnzipPassThrough.compression = 0; - return UnzipPassThrough; -}()); -export { UnzipPassThrough }; -/** - * Streaming DEFLATE decompression for ZIP archives. Prefer AsyncZipInflate for - * better performance. - */ -var UnzipInflate = /*#__PURE__*/ (function () { - /** - * Creates a DEFLATE decompression that can be used in ZIP archives - */ - function UnzipInflate() { - var _this_1 = this; - this.i = new Inflate(function (dat, final) { - _this_1.ondata(null, dat, final); - }); - } - UnzipInflate.prototype.push = function (data, final) { - try { - this.i.push(data, final); - } - catch (e) { - this.ondata(e, null, final); - } - }; - UnzipInflate.compression = 8; - return UnzipInflate; -}()); -export { UnzipInflate }; -/** - * Asynchronous streaming DEFLATE decompression for ZIP archives - */ -var AsyncUnzipInflate = /*#__PURE__*/ (function () { - /** - * Creates a DEFLATE decompression that can be used in ZIP archives - */ - function AsyncUnzipInflate(_, sz) { - var _this_1 = this; - if (sz < 320000) { - this.i = new Inflate(function (dat, final) { - _this_1.ondata(null, dat, final); - }); - } - else { - this.i = new AsyncInflate(function (err, dat, final) { - _this_1.ondata(err, dat, final); - }); - this.terminate = this.i.terminate; - } - } - AsyncUnzipInflate.prototype.push = function (data, final) { - if (this.i.terminate) - data = slc(data, 0); - this.i.push(data, final); - }; - AsyncUnzipInflate.compression = 8; - return AsyncUnzipInflate; -}()); -export { AsyncUnzipInflate }; -/** - * A ZIP archive decompression stream that emits files as they are discovered - */ -var Unzip = /*#__PURE__*/ (function () { - /** - * Creates a ZIP decompression stream - * @param cb The callback to call whenever a file in the ZIP archive is found - */ - function Unzip(cb) { - this.onfile = cb; - this.k = []; - this.o = { - 0: UnzipPassThrough - }; - this.p = et; - } - /** - * Pushes a chunk to be unzipped - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - Unzip.prototype.push = function (chunk, final) { - var _this_1 = this; - if (!this.onfile) - err(5); - if (!this.p) - err(4); - if (this.c > 0) { - var len = Math.min(this.c, chunk.length); - var toAdd = chunk.subarray(0, len); - this.c -= len; - if (this.d) - this.d.push(toAdd, !this.c); - else - this.k[0].push(toAdd); - chunk = chunk.subarray(len); - if (chunk.length) - return this.push(chunk, final); - } - else { - var f = 0, i = 0, is = void 0, buf = void 0; - if (!this.p.length) - buf = chunk; - else if (!chunk.length) - buf = this.p; - else { - buf = new u8(this.p.length + chunk.length); - buf.set(this.p), buf.set(chunk, this.p.length); - } - var l = buf.length, oc = this.c, add = oc && this.d; - var _loop_2 = function () { - var _a; - var sig = b4(buf, i); - if (sig == 0x4034B50) { - f = 1, is = i; - this_1.d = null; - this_1.c = 0; - var bf = b2(buf, i + 6), cmp_1 = b2(buf, i + 8), u = bf & 2048, dd = bf & 8, fnl = b2(buf, i + 26), es = b2(buf, i + 28); - if (l > i + 30 + fnl + es) { - var chks_3 = []; - this_1.k.unshift(chks_3); - f = 2; - var sc_1 = b4(buf, i + 18), su_1 = b4(buf, i + 22); - var fn_1 = strFromU8(buf.subarray(i + 30, i += 30 + fnl), !u); - if (sc_1 == 4294967295) { - _a = dd ? [-2] : z64e(buf, i), sc_1 = _a[0], su_1 = _a[1]; - } - else if (dd) - sc_1 = -1; - i += es; - this_1.c = sc_1; - var d_1; - var file_1 = { - name: fn_1, - compression: cmp_1, - start: function () { - if (!file_1.ondata) - err(5); - if (!sc_1) - file_1.ondata(null, et, true); - else { - var ctr = _this_1.o[cmp_1]; - if (!ctr) - file_1.ondata(err(14, 'unknown compression type ' + cmp_1, 1), null, false); - d_1 = sc_1 < 0 ? new ctr(fn_1) : new ctr(fn_1, sc_1, su_1); - d_1.ondata = function (err, dat, final) { file_1.ondata(err, dat, final); }; - for (var _i = 0, chks_4 = chks_3; _i < chks_4.length; _i++) { - var dat = chks_4[_i]; - d_1.push(dat, false); - } - if (_this_1.k[0] == chks_3 && _this_1.c) - _this_1.d = d_1; - else - d_1.push(et, true); - } - }, - terminate: function () { - if (d_1 && d_1.terminate) - d_1.terminate(); - } - }; - if (sc_1 >= 0) - file_1.size = sc_1, file_1.originalSize = su_1; - this_1.onfile(file_1); - } - return "break"; - } - else if (oc) { - if (sig == 0x8074B50) { - is = i += 12 + (oc == -2 && 8), f = 3, this_1.c = 0; - return "break"; - } - else if (sig == 0x2014B50) { - is = i -= 4, f = 3, this_1.c = 0; - return "break"; - } - } - }; - var this_1 = this; - for (; i < l - 4; ++i) { - var state_1 = _loop_2(); - if (state_1 === "break") - break; - } - this.p = et; - if (oc < 0) { - var dat = f ? buf.subarray(0, is - 12 - (oc == -2 && 8) - (b4(buf, is - 16) == 0x8074B50 && 4)) : buf.subarray(0, i); - if (add) - add.push(dat, !!f); - else - this.k[+(f == 2)].push(dat); - } - if (f & 2) - return this.push(buf.subarray(i), final); - this.p = buf.subarray(i); - } - if (final) { - if (this.c) - err(13); - this.p = null; - } - }; - /** - * Registers a decoder with the stream, allowing for files compressed with - * the compression type provided to be expanded correctly - * @param decoder The decoder constructor - */ - Unzip.prototype.register = function (decoder) { - this.o[decoder.compression] = decoder; - }; - return Unzip; -}()); -export { Unzip }; -var mt = typeof queueMicrotask == 'function' ? queueMicrotask : typeof setTimeout == 'function' ? setTimeout : function (fn) { fn(); }; -export function unzip(data, opts, cb) { - if (!cb) - cb = opts, opts = {}; - if (typeof cb != 'function') - err(7); - var term = []; - var tAll = function () { - for (var i = 0; i < term.length; ++i) - term[i](); - }; - var files = {}; - var cbd = function (a, b) { - mt(function () { cb(a, b); }); - }; - mt(function () { cbd = cb; }); - var e = data.length - 22; - for (; b4(data, e) != 0x6054B50; --e) { - if (!e || data.length - e > 65558) { - cbd(err(13, 0, 1), null); - return tAll; - } - } - ; - var lft = b2(data, e + 8); - if (lft) { - var c = lft; - var o = b4(data, e + 16); - var z = o == 4294967295; - if (z) { - e = b4(data, e - 12); - if (b4(data, e) != 0x6064B50) { - cbd(err(13, 0, 1), null); - return tAll; - } - c = lft = b4(data, e + 32); - o = b4(data, e + 48); - } - var fltr = opts && opts.filter; - var _loop_3 = function (i) { - var _a = zh(data, o, z), c_1 = _a[0], sc = _a[1], su = _a[2], fn = _a[3], no = _a[4], off = _a[5], b = slzh(data, off); - o = no; - var cbl = function (e, d) { - if (e) { - tAll(); - cbd(e, null); - } - else { - if (d) - files[fn] = d; - if (!--lft) - cbd(null, files); - } - }; - if (!fltr || fltr({ - name: fn, - size: sc, - originalSize: su, - compression: c_1 - })) { - if (!c_1) - cbl(null, slc(data, b, b + sc)); - else if (c_1 == 8) { - var infl = data.subarray(b, b + sc); - if (sc < 320000) { - try { - cbl(null, inflateSync(infl, new u8(su))); - } - catch (e) { - cbl(e, null); - } - } - else - term.push(inflate(infl, { size: su }, cbl)); - } - else - cbl(err(14, 'unknown compression type ' + c_1, 1), null); - } - else - cbl(null, null); - }; - for (var i = 0; i < c; ++i) { - _loop_3(i); - } - } - else - cbd(null, {}); - return tAll; -} -/** - * Synchronously decompresses a ZIP archive. Prefer using `unzip` for better - * performance with more than one file. - * @param data The raw compressed ZIP file - * @param opts The ZIP extraction options - * @returns The decompressed files - */ -export function unzipSync(data, opts) { - var files = {}; - var e = data.length - 22; - for (; b4(data, e) != 0x6054B50; --e) { - if (!e || data.length - e > 65558) - err(13); - } - ; - var c = b2(data, e + 8); - if (!c) - return {}; - var o = b4(data, e + 16); - var z = o == 4294967295; - if (z) { - e = b4(data, e - 12); - if (b4(data, e) != 0x6064B50) - err(13); - c = b4(data, e + 32); - o = b4(data, e + 48); - } - var fltr = opts && opts.filter; - for (var i = 0; i < c; ++i) { - var _a = zh(data, o, z), c_2 = _a[0], sc = _a[1], su = _a[2], fn = _a[3], no = _a[4], off = _a[5], b = slzh(data, off); - o = no; - if (!fltr || fltr({ - name: fn, - size: sc, - originalSize: su, - compression: c_2 - })) { - if (!c_2) - files[fn] = slc(data, b, b + sc); - else if (c_2 == 8) - files[fn] = inflateSync(data.subarray(b, b + sc), new u8(su)); - else - err(14, 'unknown compression type ' + c_2); - } - } - return files; -} diff --git a/build_vtk_bundle/node_modules/fflate/esm/index.mjs b/build_vtk_bundle/node_modules/fflate/esm/index.mjs deleted file mode 100644 index 34a3db4a..00000000 --- a/build_vtk_bundle/node_modules/fflate/esm/index.mjs +++ /dev/null @@ -1,2561 +0,0 @@ -import { createRequire } from 'module'; -var require = createRequire('/'); -// DEFLATE is a complex format; to read this code, you should probably check the RFC first: -// https://tools.ietf.org/html/rfc1951 -// You may also wish to take a look at the guide I made about this program: -// https://gist.github.com/101arrowz/253f31eb5abc3d9275ab943003ffecad -// Some of the following code is similar to that of UZIP.js: -// https://github.com/photopea/UZIP.js -// However, the vast majority of the codebase has diverged from UZIP.js to increase performance and reduce bundle size. -// Sometimes 0 will appear where -1 would be more appropriate. This is because using a uint -// is better for memory in most engines (I *think*). -// Mediocre shim -var Worker; -var workerAdd = ";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global"; -try { - Worker = require('worker_threads').Worker; -} -catch (e) { -} -var wk = Worker ? function (c, _, msg, transfer, cb) { - var done = false; - var w = new Worker(c + workerAdd, { eval: true }) - .on('error', function (e) { return cb(e, null); }) - .on('message', function (m) { return cb(null, m); }) - .on('exit', function (c) { - if (c && !done) - cb(new Error('exited with code ' + c), null); - }); - w.postMessage(msg, transfer); - w.terminate = function () { - done = true; - return Worker.prototype.terminate.call(w); - }; - return w; -} : function (_, __, ___, ____, cb) { - setImmediate(function () { return cb(new Error('async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)'), null); }); - var NOP = function () { }; - return { - terminate: NOP, - postMessage: NOP - }; -}; - -// aliases for shorter compressed code (most minifers don't do this) -var u8 = Uint8Array, u16 = Uint16Array, u32 = Uint32Array; -// fixed length extra bits -var fleb = new u8([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, /* unused */ 0, 0, /* impossible */ 0]); -// fixed distance extra bits -// see fleb note -var fdeb = new u8([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, /* unused */ 0, 0]); -// code length index map -var clim = new u8([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]); -// get base, reverse index map from extra bits -var freb = function (eb, start) { - var b = new u16(31); - for (var i = 0; i < 31; ++i) { - b[i] = start += 1 << eb[i - 1]; - } - // numbers here are at max 18 bits - var r = new u32(b[30]); - for (var i = 1; i < 30; ++i) { - for (var j = b[i]; j < b[i + 1]; ++j) { - r[j] = ((j - b[i]) << 5) | i; - } - } - return [b, r]; -}; -var _a = freb(fleb, 2), fl = _a[0], revfl = _a[1]; -// we can ignore the fact that the other numbers are wrong; they never happen anyway -fl[28] = 258, revfl[258] = 28; -var _b = freb(fdeb, 0), fd = _b[0], revfd = _b[1]; -// map of value to reverse (assuming 16 bits) -var rev = new u16(32768); -for (var i = 0; i < 32768; ++i) { - // reverse table algorithm from SO - var x = ((i & 0xAAAA) >>> 1) | ((i & 0x5555) << 1); - x = ((x & 0xCCCC) >>> 2) | ((x & 0x3333) << 2); - x = ((x & 0xF0F0) >>> 4) | ((x & 0x0F0F) << 4); - rev[i] = (((x & 0xFF00) >>> 8) | ((x & 0x00FF) << 8)) >>> 1; -} -// create huffman tree from u8 "map": index -> code length for code index -// mb (max bits) must be at most 15 -// TODO: optimize/split up? -var hMap = (function (cd, mb, r) { - var s = cd.length; - // index - var i = 0; - // u16 "map": index -> # of codes with bit length = index - var l = new u16(mb); - // length of cd must be 288 (total # of codes) - for (; i < s; ++i) { - if (cd[i]) - ++l[cd[i] - 1]; - } - // u16 "map": index -> minimum code for bit length = index - var le = new u16(mb); - for (i = 0; i < mb; ++i) { - le[i] = (le[i - 1] + l[i - 1]) << 1; - } - var co; - if (r) { - // u16 "map": index -> number of actual bits, symbol for code - co = new u16(1 << mb); - // bits to remove for reverser - var rvb = 15 - mb; - for (i = 0; i < s; ++i) { - // ignore 0 lengths - if (cd[i]) { - // num encoding both symbol and bits read - var sv = (i << 4) | cd[i]; - // free bits - var r_1 = mb - cd[i]; - // start value - var v = le[cd[i] - 1]++ << r_1; - // m is end value - for (var m = v | ((1 << r_1) - 1); v <= m; ++v) { - // every 16 bit value starting with the code yields the same result - co[rev[v] >>> rvb] = sv; - } - } - } - } - else { - co = new u16(s); - for (i = 0; i < s; ++i) { - if (cd[i]) { - co[i] = rev[le[cd[i] - 1]++] >>> (15 - cd[i]); - } - } - } - return co; -}); -// fixed length tree -var flt = new u8(288); -for (var i = 0; i < 144; ++i) - flt[i] = 8; -for (var i = 144; i < 256; ++i) - flt[i] = 9; -for (var i = 256; i < 280; ++i) - flt[i] = 7; -for (var i = 280; i < 288; ++i) - flt[i] = 8; -// fixed distance tree -var fdt = new u8(32); -for (var i = 0; i < 32; ++i) - fdt[i] = 5; -// fixed length map -var flm = /*#__PURE__*/ hMap(flt, 9, 0), flrm = /*#__PURE__*/ hMap(flt, 9, 1); -// fixed distance map -var fdm = /*#__PURE__*/ hMap(fdt, 5, 0), fdrm = /*#__PURE__*/ hMap(fdt, 5, 1); -// find max of array -var max = function (a) { - var m = a[0]; - for (var i = 1; i < a.length; ++i) { - if (a[i] > m) - m = a[i]; - } - return m; -}; -// read d, starting at bit p and mask with m -var bits = function (d, p, m) { - var o = (p / 8) | 0; - return ((d[o] | (d[o + 1] << 8)) >> (p & 7)) & m; -}; -// read d, starting at bit p continuing for at least 16 bits -var bits16 = function (d, p) { - var o = (p / 8) | 0; - return ((d[o] | (d[o + 1] << 8) | (d[o + 2] << 16)) >> (p & 7)); -}; -// get end of byte -var shft = function (p) { return ((p + 7) / 8) | 0; }; -// typed array slice - allows garbage collector to free original reference, -// while being more compatible than .slice -var slc = function (v, s, e) { - if (s == null || s < 0) - s = 0; - if (e == null || e > v.length) - e = v.length; - // can't use .constructor in case user-supplied - var n = new (v.BYTES_PER_ELEMENT == 2 ? u16 : v.BYTES_PER_ELEMENT == 4 ? u32 : u8)(e - s); - n.set(v.subarray(s, e)); - return n; -}; -/** - * Codes for errors generated within this library - */ -export var FlateErrorCode = { - UnexpectedEOF: 0, - InvalidBlockType: 1, - InvalidLengthLiteral: 2, - InvalidDistance: 3, - StreamFinished: 4, - NoStreamHandler: 5, - InvalidHeader: 6, - NoCallback: 7, - InvalidUTF8: 8, - ExtraFieldTooLong: 9, - InvalidDate: 10, - FilenameTooLong: 11, - StreamFinishing: 12, - InvalidZipData: 13, - UnknownCompressionMethod: 14 -}; -// error codes -var ec = [ - 'unexpected EOF', - 'invalid block type', - 'invalid length/literal', - 'invalid distance', - 'stream finished', - 'no stream handler', - , - 'no callback', - 'invalid UTF-8 data', - 'extra field too long', - 'date not in range 1980-2099', - 'filename too long', - 'stream finishing', - 'invalid zip data' - // determined by unknown compression method -]; -; -var err = function (ind, msg, nt) { - var e = new Error(msg || ec[ind]); - e.code = ind; - if (Error.captureStackTrace) - Error.captureStackTrace(e, err); - if (!nt) - throw e; - return e; -}; -// expands raw DEFLATE data -var inflt = function (dat, buf, st) { - // source length - var sl = dat.length; - if (!sl || (st && st.f && !st.l)) - return buf || new u8(0); - // have to estimate size - var noBuf = !buf || st; - // no state - var noSt = !st || st.i; - if (!st) - st = {}; - // Assumes roughly 33% compression ratio average - if (!buf) - buf = new u8(sl * 3); - // ensure buffer can fit at least l elements - var cbuf = function (l) { - var bl = buf.length; - // need to increase size to fit - if (l > bl) { - // Double or set to necessary, whichever is greater - var nbuf = new u8(Math.max(bl * 2, l)); - nbuf.set(buf); - buf = nbuf; - } - }; - // last chunk bitpos bytes - var final = st.f || 0, pos = st.p || 0, bt = st.b || 0, lm = st.l, dm = st.d, lbt = st.m, dbt = st.n; - // total bits - var tbts = sl * 8; - do { - if (!lm) { - // BFINAL - this is only 1 when last chunk is next - final = bits(dat, pos, 1); - // type: 0 = no compression, 1 = fixed huffman, 2 = dynamic huffman - var type = bits(dat, pos + 1, 3); - pos += 3; - if (!type) { - // go to end of byte boundary - var s = shft(pos) + 4, l = dat[s - 4] | (dat[s - 3] << 8), t = s + l; - if (t > sl) { - if (noSt) - err(0); - break; - } - // ensure size - if (noBuf) - cbuf(bt + l); - // Copy over uncompressed data - buf.set(dat.subarray(s, t), bt); - // Get new bitpos, update byte count - st.b = bt += l, st.p = pos = t * 8, st.f = final; - continue; - } - else if (type == 1) - lm = flrm, dm = fdrm, lbt = 9, dbt = 5; - else if (type == 2) { - // literal lengths - var hLit = bits(dat, pos, 31) + 257, hcLen = bits(dat, pos + 10, 15) + 4; - var tl = hLit + bits(dat, pos + 5, 31) + 1; - pos += 14; - // length+distance tree - var ldt = new u8(tl); - // code length tree - var clt = new u8(19); - for (var i = 0; i < hcLen; ++i) { - // use index map to get real code - clt[clim[i]] = bits(dat, pos + i * 3, 7); - } - pos += hcLen * 3; - // code lengths bits - var clb = max(clt), clbmsk = (1 << clb) - 1; - // code lengths map - var clm = hMap(clt, clb, 1); - for (var i = 0; i < tl;) { - var r = clm[bits(dat, pos, clbmsk)]; - // bits read - pos += r & 15; - // symbol - var s = r >>> 4; - // code length to copy - if (s < 16) { - ldt[i++] = s; - } - else { - // copy count - var c = 0, n = 0; - if (s == 16) - n = 3 + bits(dat, pos, 3), pos += 2, c = ldt[i - 1]; - else if (s == 17) - n = 3 + bits(dat, pos, 7), pos += 3; - else if (s == 18) - n = 11 + bits(dat, pos, 127), pos += 7; - while (n--) - ldt[i++] = c; - } - } - // length tree distance tree - var lt = ldt.subarray(0, hLit), dt = ldt.subarray(hLit); - // max length bits - lbt = max(lt); - // max dist bits - dbt = max(dt); - lm = hMap(lt, lbt, 1); - dm = hMap(dt, dbt, 1); - } - else - err(1); - if (pos > tbts) { - if (noSt) - err(0); - break; - } - } - // Make sure the buffer can hold this + the largest possible addition - // Maximum chunk size (practically, theoretically infinite) is 2^17; - if (noBuf) - cbuf(bt + 131072); - var lms = (1 << lbt) - 1, dms = (1 << dbt) - 1; - var lpos = pos; - for (;; lpos = pos) { - // bits read, code - var c = lm[bits16(dat, pos) & lms], sym = c >>> 4; - pos += c & 15; - if (pos > tbts) { - if (noSt) - err(0); - break; - } - if (!c) - err(2); - if (sym < 256) - buf[bt++] = sym; - else if (sym == 256) { - lpos = pos, lm = null; - break; - } - else { - var add = sym - 254; - // no extra bits needed if less - if (sym > 264) { - // index - var i = sym - 257, b = fleb[i]; - add = bits(dat, pos, (1 << b) - 1) + fl[i]; - pos += b; - } - // dist - var d = dm[bits16(dat, pos) & dms], dsym = d >>> 4; - if (!d) - err(3); - pos += d & 15; - var dt = fd[dsym]; - if (dsym > 3) { - var b = fdeb[dsym]; - dt += bits16(dat, pos) & ((1 << b) - 1), pos += b; - } - if (pos > tbts) { - if (noSt) - err(0); - break; - } - if (noBuf) - cbuf(bt + 131072); - var end = bt + add; - for (; bt < end; bt += 4) { - buf[bt] = buf[bt - dt]; - buf[bt + 1] = buf[bt + 1 - dt]; - buf[bt + 2] = buf[bt + 2 - dt]; - buf[bt + 3] = buf[bt + 3 - dt]; - } - bt = end; - } - } - st.l = lm, st.p = lpos, st.b = bt, st.f = final; - if (lm) - final = 1, st.m = lbt, st.d = dm, st.n = dbt; - } while (!final); - return bt == buf.length ? buf : slc(buf, 0, bt); -}; -// starting at p, write the minimum number of bits that can hold v to d -var wbits = function (d, p, v) { - v <<= p & 7; - var o = (p / 8) | 0; - d[o] |= v; - d[o + 1] |= v >>> 8; -}; -// starting at p, write the minimum number of bits (>8) that can hold v to d -var wbits16 = function (d, p, v) { - v <<= p & 7; - var o = (p / 8) | 0; - d[o] |= v; - d[o + 1] |= v >>> 8; - d[o + 2] |= v >>> 16; -}; -// creates code lengths from a frequency table -var hTree = function (d, mb) { - // Need extra info to make a tree - var t = []; - for (var i = 0; i < d.length; ++i) { - if (d[i]) - t.push({ s: i, f: d[i] }); - } - var s = t.length; - var t2 = t.slice(); - if (!s) - return [et, 0]; - if (s == 1) { - var v = new u8(t[0].s + 1); - v[t[0].s] = 1; - return [v, 1]; - } - t.sort(function (a, b) { return a.f - b.f; }); - // after i2 reaches last ind, will be stopped - // freq must be greater than largest possible number of symbols - t.push({ s: -1, f: 25001 }); - var l = t[0], r = t[1], i0 = 0, i1 = 1, i2 = 2; - t[0] = { s: -1, f: l.f + r.f, l: l, r: r }; - // efficient algorithm from UZIP.js - // i0 is lookbehind, i2 is lookahead - after processing two low-freq - // symbols that combined have high freq, will start processing i2 (high-freq, - // non-composite) symbols instead - // see https://reddit.com/r/photopea/comments/ikekht/uzipjs_questions/ - while (i1 != s - 1) { - l = t[t[i0].f < t[i2].f ? i0++ : i2++]; - r = t[i0 != i1 && t[i0].f < t[i2].f ? i0++ : i2++]; - t[i1++] = { s: -1, f: l.f + r.f, l: l, r: r }; - } - var maxSym = t2[0].s; - for (var i = 1; i < s; ++i) { - if (t2[i].s > maxSym) - maxSym = t2[i].s; - } - // code lengths - var tr = new u16(maxSym + 1); - // max bits in tree - var mbt = ln(t[i1 - 1], tr, 0); - if (mbt > mb) { - // more algorithms from UZIP.js - // TODO: find out how this code works (debt) - // ind debt - var i = 0, dt = 0; - // left cost - var lft = mbt - mb, cst = 1 << lft; - t2.sort(function (a, b) { return tr[b.s] - tr[a.s] || a.f - b.f; }); - for (; i < s; ++i) { - var i2_1 = t2[i].s; - if (tr[i2_1] > mb) { - dt += cst - (1 << (mbt - tr[i2_1])); - tr[i2_1] = mb; - } - else - break; - } - dt >>>= lft; - while (dt > 0) { - var i2_2 = t2[i].s; - if (tr[i2_2] < mb) - dt -= 1 << (mb - tr[i2_2]++ - 1); - else - ++i; - } - for (; i >= 0 && dt; --i) { - var i2_3 = t2[i].s; - if (tr[i2_3] == mb) { - --tr[i2_3]; - ++dt; - } - } - mbt = mb; - } - return [new u8(tr), mbt]; -}; -// get the max length and assign length codes -var ln = function (n, l, d) { - return n.s == -1 - ? Math.max(ln(n.l, l, d + 1), ln(n.r, l, d + 1)) - : (l[n.s] = d); -}; -// length codes generation -var lc = function (c) { - var s = c.length; - // Note that the semicolon was intentional - while (s && !c[--s]) - ; - var cl = new u16(++s); - // ind num streak - var cli = 0, cln = c[0], cls = 1; - var w = function (v) { cl[cli++] = v; }; - for (var i = 1; i <= s; ++i) { - if (c[i] == cln && i != s) - ++cls; - else { - if (!cln && cls > 2) { - for (; cls > 138; cls -= 138) - w(32754); - if (cls > 2) { - w(cls > 10 ? ((cls - 11) << 5) | 28690 : ((cls - 3) << 5) | 12305); - cls = 0; - } - } - else if (cls > 3) { - w(cln), --cls; - for (; cls > 6; cls -= 6) - w(8304); - if (cls > 2) - w(((cls - 3) << 5) | 8208), cls = 0; - } - while (cls--) - w(cln); - cls = 1; - cln = c[i]; - } - } - return [cl.subarray(0, cli), s]; -}; -// calculate the length of output from tree, code lengths -var clen = function (cf, cl) { - var l = 0; - for (var i = 0; i < cl.length; ++i) - l += cf[i] * cl[i]; - return l; -}; -// writes a fixed block -// returns the new bit pos -var wfblk = function (out, pos, dat) { - // no need to write 00 as type: TypedArray defaults to 0 - var s = dat.length; - var o = shft(pos + 2); - out[o] = s & 255; - out[o + 1] = s >>> 8; - out[o + 2] = out[o] ^ 255; - out[o + 3] = out[o + 1] ^ 255; - for (var i = 0; i < s; ++i) - out[o + i + 4] = dat[i]; - return (o + 4 + s) * 8; -}; -// writes a block -var wblk = function (dat, out, final, syms, lf, df, eb, li, bs, bl, p) { - wbits(out, p++, final); - ++lf[256]; - var _a = hTree(lf, 15), dlt = _a[0], mlb = _a[1]; - var _b = hTree(df, 15), ddt = _b[0], mdb = _b[1]; - var _c = lc(dlt), lclt = _c[0], nlc = _c[1]; - var _d = lc(ddt), lcdt = _d[0], ndc = _d[1]; - var lcfreq = new u16(19); - for (var i = 0; i < lclt.length; ++i) - lcfreq[lclt[i] & 31]++; - for (var i = 0; i < lcdt.length; ++i) - lcfreq[lcdt[i] & 31]++; - var _e = hTree(lcfreq, 7), lct = _e[0], mlcb = _e[1]; - var nlcc = 19; - for (; nlcc > 4 && !lct[clim[nlcc - 1]]; --nlcc) - ; - var flen = (bl + 5) << 3; - var ftlen = clen(lf, flt) + clen(df, fdt) + eb; - var dtlen = clen(lf, dlt) + clen(df, ddt) + eb + 14 + 3 * nlcc + clen(lcfreq, lct) + (2 * lcfreq[16] + 3 * lcfreq[17] + 7 * lcfreq[18]); - if (flen <= ftlen && flen <= dtlen) - return wfblk(out, p, dat.subarray(bs, bs + bl)); - var lm, ll, dm, dl; - wbits(out, p, 1 + (dtlen < ftlen)), p += 2; - if (dtlen < ftlen) { - lm = hMap(dlt, mlb, 0), ll = dlt, dm = hMap(ddt, mdb, 0), dl = ddt; - var llm = hMap(lct, mlcb, 0); - wbits(out, p, nlc - 257); - wbits(out, p + 5, ndc - 1); - wbits(out, p + 10, nlcc - 4); - p += 14; - for (var i = 0; i < nlcc; ++i) - wbits(out, p + 3 * i, lct[clim[i]]); - p += 3 * nlcc; - var lcts = [lclt, lcdt]; - for (var it = 0; it < 2; ++it) { - var clct = lcts[it]; - for (var i = 0; i < clct.length; ++i) { - var len = clct[i] & 31; - wbits(out, p, llm[len]), p += lct[len]; - if (len > 15) - wbits(out, p, (clct[i] >>> 5) & 127), p += clct[i] >>> 12; - } - } - } - else { - lm = flm, ll = flt, dm = fdm, dl = fdt; - } - for (var i = 0; i < li; ++i) { - if (syms[i] > 255) { - var len = (syms[i] >>> 18) & 31; - wbits16(out, p, lm[len + 257]), p += ll[len + 257]; - if (len > 7) - wbits(out, p, (syms[i] >>> 23) & 31), p += fleb[len]; - var dst = syms[i] & 31; - wbits16(out, p, dm[dst]), p += dl[dst]; - if (dst > 3) - wbits16(out, p, (syms[i] >>> 5) & 8191), p += fdeb[dst]; - } - else { - wbits16(out, p, lm[syms[i]]), p += ll[syms[i]]; - } - } - wbits16(out, p, lm[256]); - return p + ll[256]; -}; -// deflate options (nice << 13) | chain -var deo = /*#__PURE__*/ new u32([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]); -// empty -var et = /*#__PURE__*/ new u8(0); -// compresses data into a raw DEFLATE buffer -var dflt = function (dat, lvl, plvl, pre, post, lst) { - var s = dat.length; - var o = new u8(pre + s + 5 * (1 + Math.ceil(s / 7000)) + post); - // writing to this writes to the output buffer - var w = o.subarray(pre, o.length - post); - var pos = 0; - if (!lvl || s < 8) { - for (var i = 0; i <= s; i += 65535) { - // end - var e = i + 65535; - if (e >= s) { - // write final block - w[pos >> 3] = lst; - } - pos = wfblk(w, pos + 1, dat.subarray(i, e)); - } - } - else { - var opt = deo[lvl - 1]; - var n = opt >>> 13, c = opt & 8191; - var msk_1 = (1 << plvl) - 1; - // prev 2-byte val map curr 2-byte val map - var prev = new u16(32768), head = new u16(msk_1 + 1); - var bs1_1 = Math.ceil(plvl / 3), bs2_1 = 2 * bs1_1; - var hsh = function (i) { return (dat[i] ^ (dat[i + 1] << bs1_1) ^ (dat[i + 2] << bs2_1)) & msk_1; }; - // 24576 is an arbitrary number of maximum symbols per block - // 424 buffer for last block - var syms = new u32(25000); - // length/literal freq distance freq - var lf = new u16(288), df = new u16(32); - // l/lcnt exbits index l/lind waitdx bitpos - var lc_1 = 0, eb = 0, i = 0, li = 0, wi = 0, bs = 0; - for (; i < s; ++i) { - // hash value - // deopt when i > s - 3 - at end, deopt acceptable - var hv = hsh(i); - // index mod 32768 previous index mod - var imod = i & 32767, pimod = head[hv]; - prev[imod] = pimod; - head[hv] = imod; - // We always should modify head and prev, but only add symbols if - // this data is not yet processed ("wait" for wait index) - if (wi <= i) { - // bytes remaining - var rem = s - i; - if ((lc_1 > 7000 || li > 24576) && rem > 423) { - pos = wblk(dat, w, 0, syms, lf, df, eb, li, bs, i - bs, pos); - li = lc_1 = eb = 0, bs = i; - for (var j = 0; j < 286; ++j) - lf[j] = 0; - for (var j = 0; j < 30; ++j) - df[j] = 0; - } - // len dist chain - var l = 2, d = 0, ch_1 = c, dif = (imod - pimod) & 32767; - if (rem > 2 && hv == hsh(i - dif)) { - var maxn = Math.min(n, rem) - 1; - var maxd = Math.min(32767, i); - // max possible length - // not capped at dif because decompressors implement "rolling" index population - var ml = Math.min(258, rem); - while (dif <= maxd && --ch_1 && imod != pimod) { - if (dat[i + l] == dat[i + l - dif]) { - var nl = 0; - for (; nl < ml && dat[i + nl] == dat[i + nl - dif]; ++nl) - ; - if (nl > l) { - l = nl, d = dif; - // break out early when we reach "nice" (we are satisfied enough) - if (nl > maxn) - break; - // now, find the rarest 2-byte sequence within this - // length of literals and search for that instead. - // Much faster than just using the start - var mmd = Math.min(dif, nl - 2); - var md = 0; - for (var j = 0; j < mmd; ++j) { - var ti = (i - dif + j + 32768) & 32767; - var pti = prev[ti]; - var cd = (ti - pti + 32768) & 32767; - if (cd > md) - md = cd, pimod = ti; - } - } - } - // check the previous match - imod = pimod, pimod = prev[imod]; - dif += (imod - pimod + 32768) & 32767; - } - } - // d will be nonzero only when a match was found - if (d) { - // store both dist and len data in one Uint32 - // Make sure this is recognized as a len/dist with 28th bit (2^28) - syms[li++] = 268435456 | (revfl[l] << 18) | revfd[d]; - var lin = revfl[l] & 31, din = revfd[d] & 31; - eb += fleb[lin] + fdeb[din]; - ++lf[257 + lin]; - ++df[din]; - wi = i + l; - ++lc_1; - } - else { - syms[li++] = dat[i]; - ++lf[dat[i]]; - } - } - } - pos = wblk(dat, w, lst, syms, lf, df, eb, li, bs, i - bs, pos); - // this is the easiest way to avoid needing to maintain state - if (!lst && pos & 7) - pos = wfblk(w, pos + 1, et); - } - return slc(o, 0, pre + shft(pos) + post); -}; -// CRC32 table -var crct = /*#__PURE__*/ (function () { - var t = new Int32Array(256); - for (var i = 0; i < 256; ++i) { - var c = i, k = 9; - while (--k) - c = ((c & 1) && -306674912) ^ (c >>> 1); - t[i] = c; - } - return t; -})(); -// CRC32 -var crc = function () { - var c = -1; - return { - p: function (d) { - // closures have awful performance - var cr = c; - for (var i = 0; i < d.length; ++i) - cr = crct[(cr & 255) ^ d[i]] ^ (cr >>> 8); - c = cr; - }, - d: function () { return ~c; } - }; -}; -// Alder32 -var adler = function () { - var a = 1, b = 0; - return { - p: function (d) { - // closures have awful performance - var n = a, m = b; - var l = d.length | 0; - for (var i = 0; i != l;) { - var e = Math.min(i + 2655, l); - for (; i < e; ++i) - m += n += d[i]; - n = (n & 65535) + 15 * (n >> 16), m = (m & 65535) + 15 * (m >> 16); - } - a = n, b = m; - }, - d: function () { - a %= 65521, b %= 65521; - return (a & 255) << 24 | (a >>> 8) << 16 | (b & 255) << 8 | (b >>> 8); - } - }; -}; -; -// deflate with opts -var dopt = function (dat, opt, pre, post, st) { - return dflt(dat, opt.level == null ? 6 : opt.level, opt.mem == null ? Math.ceil(Math.max(8, Math.min(13, Math.log(dat.length))) * 1.5) : (12 + opt.mem), pre, post, !st); -}; -// Walmart object spread -var mrg = function (a, b) { - var o = {}; - for (var k in a) - o[k] = a[k]; - for (var k in b) - o[k] = b[k]; - return o; -}; -// worker clone -// This is possibly the craziest part of the entire codebase, despite how simple it may seem. -// The only parameter to this function is a closure that returns an array of variables outside of the function scope. -// We're going to try to figure out the variable names used in the closure as strings because that is crucial for workerization. -// We will return an object mapping of true variable name to value (basically, the current scope as a JS object). -// The reason we can't just use the original variable names is minifiers mangling the toplevel scope. -// This took me three weeks to figure out how to do. -var wcln = function (fn, fnStr, td) { - var dt = fn(); - var st = fn.toString(); - var ks = st.slice(st.indexOf('[') + 1, st.lastIndexOf(']')).replace(/\s+/g, '').split(','); - for (var i = 0; i < dt.length; ++i) { - var v = dt[i], k = ks[i]; - if (typeof v == 'function') { - fnStr += ';' + k + '='; - var st_1 = v.toString(); - if (v.prototype) { - // for global objects - if (st_1.indexOf('[native code]') != -1) { - var spInd = st_1.indexOf(' ', 8) + 1; - fnStr += st_1.slice(spInd, st_1.indexOf('(', spInd)); - } - else { - fnStr += st_1; - for (var t in v.prototype) - fnStr += ';' + k + '.prototype.' + t + '=' + v.prototype[t].toString(); - } - } - else - fnStr += st_1; - } - else - td[k] = v; - } - return [fnStr, td]; -}; -var ch = []; -// clone bufs -var cbfs = function (v) { - var tl = []; - for (var k in v) { - if (v[k].buffer) { - tl.push((v[k] = new v[k].constructor(v[k])).buffer); - } - } - return tl; -}; -// use a worker to execute code -var wrkr = function (fns, init, id, cb) { - var _a; - if (!ch[id]) { - var fnStr = '', td_1 = {}, m = fns.length - 1; - for (var i = 0; i < m; ++i) - _a = wcln(fns[i], fnStr, td_1), fnStr = _a[0], td_1 = _a[1]; - ch[id] = wcln(fns[m], fnStr, td_1); - } - var td = mrg({}, ch[id][1]); - return wk(ch[id][0] + ';onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage=' + init.toString() + '}', id, td, cbfs(td), cb); -}; -// base async inflate fn -var bInflt = function () { return [u8, u16, u32, fleb, fdeb, clim, fl, fd, flrm, fdrm, rev, ec, hMap, max, bits, bits16, shft, slc, err, inflt, inflateSync, pbf, gu8]; }; -var bDflt = function () { return [u8, u16, u32, fleb, fdeb, clim, revfl, revfd, flm, flt, fdm, fdt, rev, deo, et, hMap, wbits, wbits16, hTree, ln, lc, clen, wfblk, wblk, shft, slc, dflt, dopt, deflateSync, pbf]; }; -// gzip extra -var gze = function () { return [gzh, gzhl, wbytes, crc, crct]; }; -// gunzip extra -var guze = function () { return [gzs, gzl]; }; -// zlib extra -var zle = function () { return [zlh, wbytes, adler]; }; -// unzlib extra -var zule = function () { return [zlv]; }; -// post buf -var pbf = function (msg) { return postMessage(msg, [msg.buffer]); }; -// get u8 -var gu8 = function (o) { return o && o.size && new u8(o.size); }; -// async helper -var cbify = function (dat, opts, fns, init, id, cb) { - var w = wrkr(fns, init, id, function (err, dat) { - w.terminate(); - cb(err, dat); - }); - w.postMessage([dat, opts], opts.consume ? [dat.buffer] : []); - return function () { w.terminate(); }; -}; -// auto stream -var astrm = function (strm) { - strm.ondata = function (dat, final) { return postMessage([dat, final], [dat.buffer]); }; - return function (ev) { return strm.push(ev.data[0], ev.data[1]); }; -}; -// async stream attach -var astrmify = function (fns, strm, opts, init, id) { - var t; - var w = wrkr(fns, init, id, function (err, dat) { - if (err) - w.terminate(), strm.ondata.call(strm, err); - else { - if (dat[1]) - w.terminate(); - strm.ondata.call(strm, err, dat[0], dat[1]); - } - }); - w.postMessage(opts); - strm.push = function (d, f) { - if (!strm.ondata) - err(5); - if (t) - strm.ondata(err(4, 0, 1), null, !!f); - w.postMessage([d, t = f], [d.buffer]); - }; - strm.terminate = function () { w.terminate(); }; -}; -// read 2 bytes -var b2 = function (d, b) { return d[b] | (d[b + 1] << 8); }; -// read 4 bytes -var b4 = function (d, b) { return (d[b] | (d[b + 1] << 8) | (d[b + 2] << 16) | (d[b + 3] << 24)) >>> 0; }; -var b8 = function (d, b) { return b4(d, b) + (b4(d, b + 4) * 4294967296); }; -// write bytes -var wbytes = function (d, b, v) { - for (; v; ++b) - d[b] = v, v >>>= 8; -}; -// gzip header -var gzh = function (c, o) { - var fn = o.filename; - c[0] = 31, c[1] = 139, c[2] = 8, c[8] = o.level < 2 ? 4 : o.level == 9 ? 2 : 0, c[9] = 3; // assume Unix - if (o.mtime != 0) - wbytes(c, 4, Math.floor(new Date(o.mtime || Date.now()) / 1000)); - if (fn) { - c[3] = 8; - for (var i = 0; i <= fn.length; ++i) - c[i + 10] = fn.charCodeAt(i); - } -}; -// gzip footer: -8 to -4 = CRC, -4 to -0 is length -// gzip start -var gzs = function (d) { - if (d[0] != 31 || d[1] != 139 || d[2] != 8) - err(6, 'invalid gzip data'); - var flg = d[3]; - var st = 10; - if (flg & 4) - st += d[10] | (d[11] << 8) + 2; - for (var zs = (flg >> 3 & 1) + (flg >> 4 & 1); zs > 0; zs -= !d[st++]) - ; - return st + (flg & 2); -}; -// gzip length -var gzl = function (d) { - var l = d.length; - return ((d[l - 4] | d[l - 3] << 8 | d[l - 2] << 16) | (d[l - 1] << 24)) >>> 0; -}; -// gzip header length -var gzhl = function (o) { return 10 + ((o.filename && (o.filename.length + 1)) || 0); }; -// zlib header -var zlh = function (c, o) { - var lv = o.level, fl = lv == 0 ? 0 : lv < 6 ? 1 : lv == 9 ? 3 : 2; - c[0] = 120, c[1] = (fl << 6) | (fl ? (32 - 2 * fl) : 1); -}; -// zlib valid -var zlv = function (d) { - if ((d[0] & 15) != 8 || (d[0] >>> 4) > 7 || ((d[0] << 8 | d[1]) % 31)) - err(6, 'invalid zlib data'); - if (d[1] & 32) - err(6, 'invalid zlib data: preset dictionaries not supported'); -}; -function AsyncCmpStrm(opts, cb) { - if (!cb && typeof opts == 'function') - cb = opts, opts = {}; - this.ondata = cb; - return opts; -} -// zlib footer: -4 to -0 is Adler32 -/** - * Streaming DEFLATE compression - */ -var Deflate = /*#__PURE__*/ (function () { - function Deflate(opts, cb) { - if (!cb && typeof opts == 'function') - cb = opts, opts = {}; - this.ondata = cb; - this.o = opts || {}; - } - Deflate.prototype.p = function (c, f) { - this.ondata(dopt(c, this.o, 0, 0, !f), f); - }; - /** - * Pushes a chunk to be deflated - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - Deflate.prototype.push = function (chunk, final) { - if (!this.ondata) - err(5); - if (this.d) - err(4); - this.d = final; - this.p(chunk, final || false); - }; - return Deflate; -}()); -export { Deflate }; -/** - * Asynchronous streaming DEFLATE compression - */ -var AsyncDeflate = /*#__PURE__*/ (function () { - function AsyncDeflate(opts, cb) { - astrmify([ - bDflt, - function () { return [astrm, Deflate]; } - ], this, AsyncCmpStrm.call(this, opts, cb), function (ev) { - var strm = new Deflate(ev.data); - onmessage = astrm(strm); - }, 6); - } - return AsyncDeflate; -}()); -export { AsyncDeflate }; -export function deflate(data, opts, cb) { - if (!cb) - cb = opts, opts = {}; - if (typeof cb != 'function') - err(7); - return cbify(data, opts, [ - bDflt, - ], function (ev) { return pbf(deflateSync(ev.data[0], ev.data[1])); }, 0, cb); -} -/** - * Compresses data with DEFLATE without any wrapper - * @param data The data to compress - * @param opts The compression options - * @returns The deflated version of the data - */ -export function deflateSync(data, opts) { - return dopt(data, opts || {}, 0, 0); -} -/** - * Streaming DEFLATE decompression - */ -var Inflate = /*#__PURE__*/ (function () { - /** - * Creates an inflation stream - * @param cb The callback to call whenever data is inflated - */ - function Inflate(cb) { - this.s = {}; - this.p = new u8(0); - this.ondata = cb; - } - Inflate.prototype.e = function (c) { - if (!this.ondata) - err(5); - if (this.d) - err(4); - var l = this.p.length; - var n = new u8(l + c.length); - n.set(this.p), n.set(c, l), this.p = n; - }; - Inflate.prototype.c = function (final) { - this.d = this.s.i = final || false; - var bts = this.s.b; - var dt = inflt(this.p, this.o, this.s); - this.ondata(slc(dt, bts, this.s.b), this.d); - this.o = slc(dt, this.s.b - 32768), this.s.b = this.o.length; - this.p = slc(this.p, (this.s.p / 8) | 0), this.s.p &= 7; - }; - /** - * Pushes a chunk to be inflated - * @param chunk The chunk to push - * @param final Whether this is the final chunk - */ - Inflate.prototype.push = function (chunk, final) { - this.e(chunk), this.c(final); - }; - return Inflate; -}()); -export { Inflate }; -/** - * Asynchronous streaming DEFLATE decompression - */ -var AsyncInflate = /*#__PURE__*/ (function () { - /** - * Creates an asynchronous inflation stream - * @param cb The callback to call whenever data is deflated - */ - function AsyncInflate(cb) { - this.ondata = cb; - astrmify([ - bInflt, - function () { return [astrm, Inflate]; } - ], this, 0, function () { - var strm = new Inflate(); - onmessage = astrm(strm); - }, 7); - } - return AsyncInflate; -}()); -export { AsyncInflate }; -export function inflate(data, opts, cb) { - if (!cb) - cb = opts, opts = {}; - if (typeof cb != 'function') - err(7); - return cbify(data, opts, [ - bInflt - ], function (ev) { return pbf(inflateSync(ev.data[0], gu8(ev.data[1]))); }, 1, cb); -} -/** - * Expands DEFLATE data with no wrapper - * @param data The data to decompress - * @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length. - * @returns The decompressed version of the data - */ -export function inflateSync(data, out) { - return inflt(data, out); -} -// before you yell at me for not just using extends, my reason is that TS inheritance is hard to workerize. -/** - * Streaming GZIP compression - */ -var Gzip = /*#__PURE__*/ (function () { - function Gzip(opts, cb) { - this.c = crc(); - this.l = 0; - this.v = 1; - Deflate.call(this, opts, cb); - } - /** - * Pushes a chunk to be GZIPped - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - Gzip.prototype.push = function (chunk, final) { - Deflate.prototype.push.call(this, chunk, final); - }; - Gzip.prototype.p = function (c, f) { - this.c.p(c); - this.l += c.length; - var raw = dopt(c, this.o, this.v && gzhl(this.o), f && 8, !f); - if (this.v) - gzh(raw, this.o), this.v = 0; - if (f) - wbytes(raw, raw.length - 8, this.c.d()), wbytes(raw, raw.length - 4, this.l); - this.ondata(raw, f); - }; - return Gzip; -}()); -export { Gzip }; -/** - * Asynchronous streaming GZIP compression - */ -var AsyncGzip = /*#__PURE__*/ (function () { - function AsyncGzip(opts, cb) { - astrmify([ - bDflt, - gze, - function () { return [astrm, Deflate, Gzip]; } - ], this, AsyncCmpStrm.call(this, opts, cb), function (ev) { - var strm = new Gzip(ev.data); - onmessage = astrm(strm); - }, 8); - } - return AsyncGzip; -}()); -export { AsyncGzip }; -export function gzip(data, opts, cb) { - if (!cb) - cb = opts, opts = {}; - if (typeof cb != 'function') - err(7); - return cbify(data, opts, [ - bDflt, - gze, - function () { return [gzipSync]; } - ], function (ev) { return pbf(gzipSync(ev.data[0], ev.data[1])); }, 2, cb); -} -/** - * Compresses data with GZIP - * @param data The data to compress - * @param opts The compression options - * @returns The gzipped version of the data - */ -export function gzipSync(data, opts) { - if (!opts) - opts = {}; - var c = crc(), l = data.length; - c.p(data); - var d = dopt(data, opts, gzhl(opts), 8), s = d.length; - return gzh(d, opts), wbytes(d, s - 8, c.d()), wbytes(d, s - 4, l), d; -} -/** - * Streaming GZIP decompression - */ -var Gunzip = /*#__PURE__*/ (function () { - /** - * Creates a GUNZIP stream - * @param cb The callback to call whenever data is inflated - */ - function Gunzip(cb) { - this.v = 1; - Inflate.call(this, cb); - } - /** - * Pushes a chunk to be GUNZIPped - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - Gunzip.prototype.push = function (chunk, final) { - Inflate.prototype.e.call(this, chunk); - if (this.v) { - var s = this.p.length > 3 ? gzs(this.p) : 4; - if (s >= this.p.length && !final) - return; - this.p = this.p.subarray(s), this.v = 0; - } - if (final) { - if (this.p.length < 8) - err(6, 'invalid gzip data'); - this.p = this.p.subarray(0, -8); - } - // necessary to prevent TS from using the closure value - // This allows for workerization to function correctly - Inflate.prototype.c.call(this, final); - }; - return Gunzip; -}()); -export { Gunzip }; -/** - * Asynchronous streaming GZIP decompression - */ -var AsyncGunzip = /*#__PURE__*/ (function () { - /** - * Creates an asynchronous GUNZIP stream - * @param cb The callback to call whenever data is deflated - */ - function AsyncGunzip(cb) { - this.ondata = cb; - astrmify([ - bInflt, - guze, - function () { return [astrm, Inflate, Gunzip]; } - ], this, 0, function () { - var strm = new Gunzip(); - onmessage = astrm(strm); - }, 9); - } - return AsyncGunzip; -}()); -export { AsyncGunzip }; -export function gunzip(data, opts, cb) { - if (!cb) - cb = opts, opts = {}; - if (typeof cb != 'function') - err(7); - return cbify(data, opts, [ - bInflt, - guze, - function () { return [gunzipSync]; } - ], function (ev) { return pbf(gunzipSync(ev.data[0])); }, 3, cb); -} -/** - * Expands GZIP data - * @param data The data to decompress - * @param out Where to write the data. GZIP already encodes the output size, so providing this doesn't save memory. - * @returns The decompressed version of the data - */ -export function gunzipSync(data, out) { - return inflt(data.subarray(gzs(data), -8), out || new u8(gzl(data))); -} -/** - * Streaming Zlib compression - */ -var Zlib = /*#__PURE__*/ (function () { - function Zlib(opts, cb) { - this.c = adler(); - this.v = 1; - Deflate.call(this, opts, cb); - } - /** - * Pushes a chunk to be zlibbed - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - Zlib.prototype.push = function (chunk, final) { - Deflate.prototype.push.call(this, chunk, final); - }; - Zlib.prototype.p = function (c, f) { - this.c.p(c); - var raw = dopt(c, this.o, this.v && 2, f && 4, !f); - if (this.v) - zlh(raw, this.o), this.v = 0; - if (f) - wbytes(raw, raw.length - 4, this.c.d()); - this.ondata(raw, f); - }; - return Zlib; -}()); -export { Zlib }; -/** - * Asynchronous streaming Zlib compression - */ -var AsyncZlib = /*#__PURE__*/ (function () { - function AsyncZlib(opts, cb) { - astrmify([ - bDflt, - zle, - function () { return [astrm, Deflate, Zlib]; } - ], this, AsyncCmpStrm.call(this, opts, cb), function (ev) { - var strm = new Zlib(ev.data); - onmessage = astrm(strm); - }, 10); - } - return AsyncZlib; -}()); -export { AsyncZlib }; -export function zlib(data, opts, cb) { - if (!cb) - cb = opts, opts = {}; - if (typeof cb != 'function') - err(7); - return cbify(data, opts, [ - bDflt, - zle, - function () { return [zlibSync]; } - ], function (ev) { return pbf(zlibSync(ev.data[0], ev.data[1])); }, 4, cb); -} -/** - * Compress data with Zlib - * @param data The data to compress - * @param opts The compression options - * @returns The zlib-compressed version of the data - */ -export function zlibSync(data, opts) { - if (!opts) - opts = {}; - var a = adler(); - a.p(data); - var d = dopt(data, opts, 2, 4); - return zlh(d, opts), wbytes(d, d.length - 4, a.d()), d; -} -/** - * Streaming Zlib decompression - */ -var Unzlib = /*#__PURE__*/ (function () { - /** - * Creates a Zlib decompression stream - * @param cb The callback to call whenever data is inflated - */ - function Unzlib(cb) { - this.v = 1; - Inflate.call(this, cb); - } - /** - * Pushes a chunk to be unzlibbed - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - Unzlib.prototype.push = function (chunk, final) { - Inflate.prototype.e.call(this, chunk); - if (this.v) { - if (this.p.length < 2 && !final) - return; - this.p = this.p.subarray(2), this.v = 0; - } - if (final) { - if (this.p.length < 4) - err(6, 'invalid zlib data'); - this.p = this.p.subarray(0, -4); - } - // necessary to prevent TS from using the closure value - // This allows for workerization to function correctly - Inflate.prototype.c.call(this, final); - }; - return Unzlib; -}()); -export { Unzlib }; -/** - * Asynchronous streaming Zlib decompression - */ -var AsyncUnzlib = /*#__PURE__*/ (function () { - /** - * Creates an asynchronous Zlib decompression stream - * @param cb The callback to call whenever data is deflated - */ - function AsyncUnzlib(cb) { - this.ondata = cb; - astrmify([ - bInflt, - zule, - function () { return [astrm, Inflate, Unzlib]; } - ], this, 0, function () { - var strm = new Unzlib(); - onmessage = astrm(strm); - }, 11); - } - return AsyncUnzlib; -}()); -export { AsyncUnzlib }; -export function unzlib(data, opts, cb) { - if (!cb) - cb = opts, opts = {}; - if (typeof cb != 'function') - err(7); - return cbify(data, opts, [ - bInflt, - zule, - function () { return [unzlibSync]; } - ], function (ev) { return pbf(unzlibSync(ev.data[0], gu8(ev.data[1]))); }, 5, cb); -} -/** - * Expands Zlib data - * @param data The data to decompress - * @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length. - * @returns The decompressed version of the data - */ -export function unzlibSync(data, out) { - return inflt((zlv(data), data.subarray(2, -4)), out); -} -// Default algorithm for compression (used because having a known output size allows faster decompression) -export { gzip as compress, AsyncGzip as AsyncCompress }; -// Default algorithm for compression (used because having a known output size allows faster decompression) -export { gzipSync as compressSync, Gzip as Compress }; -/** - * Streaming GZIP, Zlib, or raw DEFLATE decompression - */ -var Decompress = /*#__PURE__*/ (function () { - /** - * Creates a decompression stream - * @param cb The callback to call whenever data is decompressed - */ - function Decompress(cb) { - this.G = Gunzip; - this.I = Inflate; - this.Z = Unzlib; - this.ondata = cb; - } - /** - * Pushes a chunk to be decompressed - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - Decompress.prototype.push = function (chunk, final) { - if (!this.ondata) - err(5); - if (!this.s) { - if (this.p && this.p.length) { - var n = new u8(this.p.length + chunk.length); - n.set(this.p), n.set(chunk, this.p.length); - } - else - this.p = chunk; - if (this.p.length > 2) { - var _this_1 = this; - var cb = function () { _this_1.ondata.apply(_this_1, arguments); }; - this.s = (this.p[0] == 31 && this.p[1] == 139 && this.p[2] == 8) - ? new this.G(cb) - : ((this.p[0] & 15) != 8 || (this.p[0] >> 4) > 7 || ((this.p[0] << 8 | this.p[1]) % 31)) - ? new this.I(cb) - : new this.Z(cb); - this.s.push(this.p, final); - this.p = null; - } - } - else - this.s.push(chunk, final); - }; - return Decompress; -}()); -export { Decompress }; -/** - * Asynchronous streaming GZIP, Zlib, or raw DEFLATE decompression - */ -var AsyncDecompress = /*#__PURE__*/ (function () { - /** - * Creates an asynchronous decompression stream - * @param cb The callback to call whenever data is decompressed - */ - function AsyncDecompress(cb) { - this.G = AsyncGunzip; - this.I = AsyncInflate; - this.Z = AsyncUnzlib; - this.ondata = cb; - } - /** - * Pushes a chunk to be decompressed - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - AsyncDecompress.prototype.push = function (chunk, final) { - Decompress.prototype.push.call(this, chunk, final); - }; - return AsyncDecompress; -}()); -export { AsyncDecompress }; -export function decompress(data, opts, cb) { - if (!cb) - cb = opts, opts = {}; - if (typeof cb != 'function') - err(7); - return (data[0] == 31 && data[1] == 139 && data[2] == 8) - ? gunzip(data, opts, cb) - : ((data[0] & 15) != 8 || (data[0] >> 4) > 7 || ((data[0] << 8 | data[1]) % 31)) - ? inflate(data, opts, cb) - : unzlib(data, opts, cb); -} -/** - * Expands compressed GZIP, Zlib, or raw DEFLATE data, automatically detecting the format - * @param data The data to decompress - * @param out Where to write the data. Saves memory if you know the decompressed size and provide an output buffer of that length. - * @returns The decompressed version of the data - */ -export function decompressSync(data, out) { - return (data[0] == 31 && data[1] == 139 && data[2] == 8) - ? gunzipSync(data, out) - : ((data[0] & 15) != 8 || (data[0] >> 4) > 7 || ((data[0] << 8 | data[1]) % 31)) - ? inflateSync(data, out) - : unzlibSync(data, out); -} -// flatten a directory structure -var fltn = function (d, p, t, o) { - for (var k in d) { - var val = d[k], n = p + k, op = o; - if (Array.isArray(val)) - op = mrg(o, val[1]), val = val[0]; - if (val instanceof u8) - t[n] = [val, op]; - else { - t[n += '/'] = [new u8(0), op]; - fltn(val, n, t, o); - } - } -}; -// text encoder -var te = typeof TextEncoder != 'undefined' && /*#__PURE__*/ new TextEncoder(); -// text decoder -var td = typeof TextDecoder != 'undefined' && /*#__PURE__*/ new TextDecoder(); -// text decoder stream -var tds = 0; -try { - td.decode(et, { stream: true }); - tds = 1; -} -catch (e) { } -// decode UTF8 -var dutf8 = function (d) { - for (var r = '', i = 0;;) { - var c = d[i++]; - var eb = (c > 127) + (c > 223) + (c > 239); - if (i + eb > d.length) - return [r, slc(d, i - 1)]; - if (!eb) - r += String.fromCharCode(c); - else if (eb == 3) { - c = ((c & 15) << 18 | (d[i++] & 63) << 12 | (d[i++] & 63) << 6 | (d[i++] & 63)) - 65536, - r += String.fromCharCode(55296 | (c >> 10), 56320 | (c & 1023)); - } - else if (eb & 1) - r += String.fromCharCode((c & 31) << 6 | (d[i++] & 63)); - else - r += String.fromCharCode((c & 15) << 12 | (d[i++] & 63) << 6 | (d[i++] & 63)); - } -}; -/** - * Streaming UTF-8 decoding - */ -var DecodeUTF8 = /*#__PURE__*/ (function () { - /** - * Creates a UTF-8 decoding stream - * @param cb The callback to call whenever data is decoded - */ - function DecodeUTF8(cb) { - this.ondata = cb; - if (tds) - this.t = new TextDecoder(); - else - this.p = et; - } - /** - * Pushes a chunk to be decoded from UTF-8 binary - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - DecodeUTF8.prototype.push = function (chunk, final) { - if (!this.ondata) - err(5); - final = !!final; - if (this.t) { - this.ondata(this.t.decode(chunk, { stream: true }), final); - if (final) { - if (this.t.decode().length) - err(8); - this.t = null; - } - return; - } - if (!this.p) - err(4); - var dat = new u8(this.p.length + chunk.length); - dat.set(this.p); - dat.set(chunk, this.p.length); - var _a = dutf8(dat), ch = _a[0], np = _a[1]; - if (final) { - if (np.length) - err(8); - this.p = null; - } - else - this.p = np; - this.ondata(ch, final); - }; - return DecodeUTF8; -}()); -export { DecodeUTF8 }; -/** - * Streaming UTF-8 encoding - */ -var EncodeUTF8 = /*#__PURE__*/ (function () { - /** - * Creates a UTF-8 decoding stream - * @param cb The callback to call whenever data is encoded - */ - function EncodeUTF8(cb) { - this.ondata = cb; - } - /** - * Pushes a chunk to be encoded to UTF-8 - * @param chunk The string data to push - * @param final Whether this is the last chunk - */ - EncodeUTF8.prototype.push = function (chunk, final) { - if (!this.ondata) - err(5); - if (this.d) - err(4); - this.ondata(strToU8(chunk), this.d = final || false); - }; - return EncodeUTF8; -}()); -export { EncodeUTF8 }; -/** - * Converts a string into a Uint8Array for use with compression/decompression methods - * @param str The string to encode - * @param latin1 Whether or not to interpret the data as Latin-1. This should - * not need to be true unless decoding a binary string. - * @returns The string encoded in UTF-8/Latin-1 binary - */ -export function strToU8(str, latin1) { - if (latin1) { - var ar_1 = new u8(str.length); - for (var i = 0; i < str.length; ++i) - ar_1[i] = str.charCodeAt(i); - return ar_1; - } - if (te) - return te.encode(str); - var l = str.length; - var ar = new u8(str.length + (str.length >> 1)); - var ai = 0; - var w = function (v) { ar[ai++] = v; }; - for (var i = 0; i < l; ++i) { - if (ai + 5 > ar.length) { - var n = new u8(ai + 8 + ((l - i) << 1)); - n.set(ar); - ar = n; - } - var c = str.charCodeAt(i); - if (c < 128 || latin1) - w(c); - else if (c < 2048) - w(192 | (c >> 6)), w(128 | (c & 63)); - else if (c > 55295 && c < 57344) - c = 65536 + (c & 1023 << 10) | (str.charCodeAt(++i) & 1023), - w(240 | (c >> 18)), w(128 | ((c >> 12) & 63)), w(128 | ((c >> 6) & 63)), w(128 | (c & 63)); - else - w(224 | (c >> 12)), w(128 | ((c >> 6) & 63)), w(128 | (c & 63)); - } - return slc(ar, 0, ai); -} -/** - * Converts a Uint8Array to a string - * @param dat The data to decode to string - * @param latin1 Whether or not to interpret the data as Latin-1. This should - * not need to be true unless encoding to binary string. - * @returns The original UTF-8/Latin-1 string - */ -export function strFromU8(dat, latin1) { - if (latin1) { - var r = ''; - for (var i = 0; i < dat.length; i += 16384) - r += String.fromCharCode.apply(null, dat.subarray(i, i + 16384)); - return r; - } - else if (td) - return td.decode(dat); - else { - var _a = dutf8(dat), out = _a[0], ext = _a[1]; - if (ext.length) - err(8); - return out; - } -} -; -// deflate bit flag -var dbf = function (l) { return l == 1 ? 3 : l < 6 ? 2 : l == 9 ? 1 : 0; }; -// skip local zip header -var slzh = function (d, b) { return b + 30 + b2(d, b + 26) + b2(d, b + 28); }; -// read zip header -var zh = function (d, b, z) { - var fnl = b2(d, b + 28), fn = strFromU8(d.subarray(b + 46, b + 46 + fnl), !(b2(d, b + 8) & 2048)), es = b + 46 + fnl, bs = b4(d, b + 20); - var _a = z && bs == 4294967295 ? z64e(d, es) : [bs, b4(d, b + 24), b4(d, b + 42)], sc = _a[0], su = _a[1], off = _a[2]; - return [b2(d, b + 10), sc, su, fn, es + b2(d, b + 30) + b2(d, b + 32), off]; -}; -// read zip64 extra field -var z64e = function (d, b) { - for (; b2(d, b) != 1; b += 4 + b2(d, b + 2)) - ; - return [b8(d, b + 12), b8(d, b + 4), b8(d, b + 20)]; -}; -// extra field length -var exfl = function (ex) { - var le = 0; - if (ex) { - for (var k in ex) { - var l = ex[k].length; - if (l > 65535) - err(9); - le += l + 4; - } - } - return le; -}; -// write zip header -var wzh = function (d, b, f, fn, u, c, ce, co) { - var fl = fn.length, ex = f.extra, col = co && co.length; - var exl = exfl(ex); - wbytes(d, b, ce != null ? 0x2014B50 : 0x4034B50), b += 4; - if (ce != null) - d[b++] = 20, d[b++] = f.os; - d[b] = 20, b += 2; // spec compliance? what's that? - d[b++] = (f.flag << 1) | (c == null && 8), d[b++] = u && 8; - d[b++] = f.compression & 255, d[b++] = f.compression >> 8; - var dt = new Date(f.mtime == null ? Date.now() : f.mtime), y = dt.getFullYear() - 1980; - if (y < 0 || y > 119) - err(10); - wbytes(d, b, (y << 25) | ((dt.getMonth() + 1) << 21) | (dt.getDate() << 16) | (dt.getHours() << 11) | (dt.getMinutes() << 5) | (dt.getSeconds() >>> 1)), b += 4; - if (c != null) { - wbytes(d, b, f.crc); - wbytes(d, b + 4, c); - wbytes(d, b + 8, f.size); - } - wbytes(d, b + 12, fl); - wbytes(d, b + 14, exl), b += 16; - if (ce != null) { - wbytes(d, b, col); - wbytes(d, b + 6, f.attrs); - wbytes(d, b + 10, ce), b += 14; - } - d.set(fn, b); - b += fl; - if (exl) { - for (var k in ex) { - var exf = ex[k], l = exf.length; - wbytes(d, b, +k); - wbytes(d, b + 2, l); - d.set(exf, b + 4), b += 4 + l; - } - } - if (col) - d.set(co, b), b += col; - return b; -}; -// write zip footer (end of central directory) -var wzf = function (o, b, c, d, e) { - wbytes(o, b, 0x6054B50); // skip disk - wbytes(o, b + 8, c); - wbytes(o, b + 10, c); - wbytes(o, b + 12, d); - wbytes(o, b + 16, e); -}; -/** - * A pass-through stream to keep data uncompressed in a ZIP archive. - */ -var ZipPassThrough = /*#__PURE__*/ (function () { - /** - * Creates a pass-through stream that can be added to ZIP archives - * @param filename The filename to associate with this data stream - */ - function ZipPassThrough(filename) { - this.filename = filename; - this.c = crc(); - this.size = 0; - this.compression = 0; - } - /** - * Processes a chunk and pushes to the output stream. You can override this - * method in a subclass for custom behavior, but by default this passes - * the data through. You must call this.ondata(err, chunk, final) at some - * point in this method. - * @param chunk The chunk to process - * @param final Whether this is the last chunk - */ - ZipPassThrough.prototype.process = function (chunk, final) { - this.ondata(null, chunk, final); - }; - /** - * Pushes a chunk to be added. If you are subclassing this with a custom - * compression algorithm, note that you must push data from the source - * file only, pre-compression. - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - ZipPassThrough.prototype.push = function (chunk, final) { - if (!this.ondata) - err(5); - this.c.p(chunk); - this.size += chunk.length; - if (final) - this.crc = this.c.d(); - this.process(chunk, final || false); - }; - return ZipPassThrough; -}()); -export { ZipPassThrough }; -// I don't extend because TypeScript extension adds 1kB of runtime bloat -/** - * Streaming DEFLATE compression for ZIP archives. Prefer using AsyncZipDeflate - * for better performance - */ -var ZipDeflate = /*#__PURE__*/ (function () { - /** - * Creates a DEFLATE stream that can be added to ZIP archives - * @param filename The filename to associate with this data stream - * @param opts The compression options - */ - function ZipDeflate(filename, opts) { - var _this_1 = this; - if (!opts) - opts = {}; - ZipPassThrough.call(this, filename); - this.d = new Deflate(opts, function (dat, final) { - _this_1.ondata(null, dat, final); - }); - this.compression = 8; - this.flag = dbf(opts.level); - } - ZipDeflate.prototype.process = function (chunk, final) { - try { - this.d.push(chunk, final); - } - catch (e) { - this.ondata(e, null, final); - } - }; - /** - * Pushes a chunk to be deflated - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - ZipDeflate.prototype.push = function (chunk, final) { - ZipPassThrough.prototype.push.call(this, chunk, final); - }; - return ZipDeflate; -}()); -export { ZipDeflate }; -/** - * Asynchronous streaming DEFLATE compression for ZIP archives - */ -var AsyncZipDeflate = /*#__PURE__*/ (function () { - /** - * Creates a DEFLATE stream that can be added to ZIP archives - * @param filename The filename to associate with this data stream - * @param opts The compression options - */ - function AsyncZipDeflate(filename, opts) { - var _this_1 = this; - if (!opts) - opts = {}; - ZipPassThrough.call(this, filename); - this.d = new AsyncDeflate(opts, function (err, dat, final) { - _this_1.ondata(err, dat, final); - }); - this.compression = 8; - this.flag = dbf(opts.level); - this.terminate = this.d.terminate; - } - AsyncZipDeflate.prototype.process = function (chunk, final) { - this.d.push(chunk, final); - }; - /** - * Pushes a chunk to be deflated - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - AsyncZipDeflate.prototype.push = function (chunk, final) { - ZipPassThrough.prototype.push.call(this, chunk, final); - }; - return AsyncZipDeflate; -}()); -export { AsyncZipDeflate }; -// TODO: Better tree shaking -/** - * A zippable archive to which files can incrementally be added - */ -var Zip = /*#__PURE__*/ (function () { - /** - * Creates an empty ZIP archive to which files can be added - * @param cb The callback to call whenever data for the generated ZIP archive - * is available - */ - function Zip(cb) { - this.ondata = cb; - this.u = []; - this.d = 1; - } - /** - * Adds a file to the ZIP archive - * @param file The file stream to add - */ - Zip.prototype.add = function (file) { - var _this_1 = this; - if (!this.ondata) - err(5); - // finishing or finished - if (this.d & 2) - this.ondata(err(4 + (this.d & 1) * 8, 0, 1), null, false); - else { - var f = strToU8(file.filename), fl_1 = f.length; - var com = file.comment, o = com && strToU8(com); - var u = fl_1 != file.filename.length || (o && (com.length != o.length)); - var hl_1 = fl_1 + exfl(file.extra) + 30; - if (fl_1 > 65535) - this.ondata(err(11, 0, 1), null, false); - var header = new u8(hl_1); - wzh(header, 0, file, f, u); - var chks_1 = [header]; - var pAll_1 = function () { - for (var _i = 0, chks_2 = chks_1; _i < chks_2.length; _i++) { - var chk = chks_2[_i]; - _this_1.ondata(null, chk, false); - } - chks_1 = []; - }; - var tr_1 = this.d; - this.d = 0; - var ind_1 = this.u.length; - var uf_1 = mrg(file, { - f: f, - u: u, - o: o, - t: function () { - if (file.terminate) - file.terminate(); - }, - r: function () { - pAll_1(); - if (tr_1) { - var nxt = _this_1.u[ind_1 + 1]; - if (nxt) - nxt.r(); - else - _this_1.d = 1; - } - tr_1 = 1; - } - }); - var cl_1 = 0; - file.ondata = function (err, dat, final) { - if (err) { - _this_1.ondata(err, dat, final); - _this_1.terminate(); - } - else { - cl_1 += dat.length; - chks_1.push(dat); - if (final) { - var dd = new u8(16); - wbytes(dd, 0, 0x8074B50); - wbytes(dd, 4, file.crc); - wbytes(dd, 8, cl_1); - wbytes(dd, 12, file.size); - chks_1.push(dd); - uf_1.c = cl_1, uf_1.b = hl_1 + cl_1 + 16, uf_1.crc = file.crc, uf_1.size = file.size; - if (tr_1) - uf_1.r(); - tr_1 = 1; - } - else if (tr_1) - pAll_1(); - } - }; - this.u.push(uf_1); - } - }; - /** - * Ends the process of adding files and prepares to emit the final chunks. - * This *must* be called after adding all desired files for the resulting - * ZIP file to work properly. - */ - Zip.prototype.end = function () { - var _this_1 = this; - if (this.d & 2) { - this.ondata(err(4 + (this.d & 1) * 8, 0, 1), null, true); - return; - } - if (this.d) - this.e(); - else - this.u.push({ - r: function () { - if (!(_this_1.d & 1)) - return; - _this_1.u.splice(-1, 1); - _this_1.e(); - }, - t: function () { } - }); - this.d = 3; - }; - Zip.prototype.e = function () { - var bt = 0, l = 0, tl = 0; - for (var _i = 0, _a = this.u; _i < _a.length; _i++) { - var f = _a[_i]; - tl += 46 + f.f.length + exfl(f.extra) + (f.o ? f.o.length : 0); - } - var out = new u8(tl + 22); - for (var _b = 0, _c = this.u; _b < _c.length; _b++) { - var f = _c[_b]; - wzh(out, bt, f, f.f, f.u, f.c, l, f.o); - bt += 46 + f.f.length + exfl(f.extra) + (f.o ? f.o.length : 0), l += f.b; - } - wzf(out, bt, this.u.length, tl, l); - this.ondata(null, out, true); - this.d = 2; - }; - /** - * A method to terminate any internal workers used by the stream. Subsequent - * calls to add() will fail. - */ - Zip.prototype.terminate = function () { - for (var _i = 0, _a = this.u; _i < _a.length; _i++) { - var f = _a[_i]; - f.t(); - } - this.d = 2; - }; - return Zip; -}()); -export { Zip }; -export function zip(data, opts, cb) { - if (!cb) - cb = opts, opts = {}; - if (typeof cb != 'function') - err(7); - var r = {}; - fltn(data, '', r, opts); - var k = Object.keys(r); - var lft = k.length, o = 0, tot = 0; - var slft = lft, files = new Array(lft); - var term = []; - var tAll = function () { - for (var i = 0; i < term.length; ++i) - term[i](); - }; - var cbd = function (a, b) { - mt(function () { cb(a, b); }); - }; - mt(function () { cbd = cb; }); - var cbf = function () { - var out = new u8(tot + 22), oe = o, cdl = tot - o; - tot = 0; - for (var i = 0; i < slft; ++i) { - var f = files[i]; - try { - var l = f.c.length; - wzh(out, tot, f, f.f, f.u, l); - var badd = 30 + f.f.length + exfl(f.extra); - var loc = tot + badd; - out.set(f.c, loc); - wzh(out, o, f, f.f, f.u, l, tot, f.m), o += 16 + badd + (f.m ? f.m.length : 0), tot = loc + l; - } - catch (e) { - return cbd(e, null); - } - } - wzf(out, o, files.length, cdl, oe); - cbd(null, out); - }; - if (!lft) - cbf(); - var _loop_1 = function (i) { - var fn = k[i]; - var _a = r[fn], file = _a[0], p = _a[1]; - var c = crc(), size = file.length; - c.p(file); - var f = strToU8(fn), s = f.length; - var com = p.comment, m = com && strToU8(com), ms = m && m.length; - var exl = exfl(p.extra); - var compression = p.level == 0 ? 0 : 8; - var cbl = function (e, d) { - if (e) { - tAll(); - cbd(e, null); - } - else { - var l = d.length; - files[i] = mrg(p, { - size: size, - crc: c.d(), - c: d, - f: f, - m: m, - u: s != fn.length || (m && (com.length != ms)), - compression: compression - }); - o += 30 + s + exl + l; - tot += 76 + 2 * (s + exl) + (ms || 0) + l; - if (!--lft) - cbf(); - } - }; - if (s > 65535) - cbl(err(11, 0, 1), null); - if (!compression) - cbl(null, file); - else if (size < 160000) { - try { - cbl(null, deflateSync(file, p)); - } - catch (e) { - cbl(e, null); - } - } - else - term.push(deflate(file, p, cbl)); - }; - // Cannot use lft because it can decrease - for (var i = 0; i < slft; ++i) { - _loop_1(i); - } - return tAll; -} -/** - * Synchronously creates a ZIP file. Prefer using `zip` for better performance - * with more than one file. - * @param data The directory structure for the ZIP archive - * @param opts The main options, merged with per-file options - * @returns The generated ZIP archive - */ -export function zipSync(data, opts) { - if (!opts) - opts = {}; - var r = {}; - var files = []; - fltn(data, '', r, opts); - var o = 0; - var tot = 0; - for (var fn in r) { - var _a = r[fn], file = _a[0], p = _a[1]; - var compression = p.level == 0 ? 0 : 8; - var f = strToU8(fn), s = f.length; - var com = p.comment, m = com && strToU8(com), ms = m && m.length; - var exl = exfl(p.extra); - if (s > 65535) - err(11); - var d = compression ? deflateSync(file, p) : file, l = d.length; - var c = crc(); - c.p(file); - files.push(mrg(p, { - size: file.length, - crc: c.d(), - c: d, - f: f, - m: m, - u: s != fn.length || (m && (com.length != ms)), - o: o, - compression: compression - })); - o += 30 + s + exl + l; - tot += 76 + 2 * (s + exl) + (ms || 0) + l; - } - var out = new u8(tot + 22), oe = o, cdl = tot - o; - for (var i = 0; i < files.length; ++i) { - var f = files[i]; - wzh(out, f.o, f, f.f, f.u, f.c.length); - var badd = 30 + f.f.length + exfl(f.extra); - out.set(f.c, f.o + badd); - wzh(out, o, f, f.f, f.u, f.c.length, f.o, f.m), o += 16 + badd + (f.m ? f.m.length : 0); - } - wzf(out, o, files.length, cdl, oe); - return out; -} -/** - * Streaming pass-through decompression for ZIP archives - */ -var UnzipPassThrough = /*#__PURE__*/ (function () { - function UnzipPassThrough() { - } - UnzipPassThrough.prototype.push = function (data, final) { - this.ondata(null, data, final); - }; - UnzipPassThrough.compression = 0; - return UnzipPassThrough; -}()); -export { UnzipPassThrough }; -/** - * Streaming DEFLATE decompression for ZIP archives. Prefer AsyncZipInflate for - * better performance. - */ -var UnzipInflate = /*#__PURE__*/ (function () { - /** - * Creates a DEFLATE decompression that can be used in ZIP archives - */ - function UnzipInflate() { - var _this_1 = this; - this.i = new Inflate(function (dat, final) { - _this_1.ondata(null, dat, final); - }); - } - UnzipInflate.prototype.push = function (data, final) { - try { - this.i.push(data, final); - } - catch (e) { - this.ondata(e, null, final); - } - }; - UnzipInflate.compression = 8; - return UnzipInflate; -}()); -export { UnzipInflate }; -/** - * Asynchronous streaming DEFLATE decompression for ZIP archives - */ -var AsyncUnzipInflate = /*#__PURE__*/ (function () { - /** - * Creates a DEFLATE decompression that can be used in ZIP archives - */ - function AsyncUnzipInflate(_, sz) { - var _this_1 = this; - if (sz < 320000) { - this.i = new Inflate(function (dat, final) { - _this_1.ondata(null, dat, final); - }); - } - else { - this.i = new AsyncInflate(function (err, dat, final) { - _this_1.ondata(err, dat, final); - }); - this.terminate = this.i.terminate; - } - } - AsyncUnzipInflate.prototype.push = function (data, final) { - if (this.i.terminate) - data = slc(data, 0); - this.i.push(data, final); - }; - AsyncUnzipInflate.compression = 8; - return AsyncUnzipInflate; -}()); -export { AsyncUnzipInflate }; -/** - * A ZIP archive decompression stream that emits files as they are discovered - */ -var Unzip = /*#__PURE__*/ (function () { - /** - * Creates a ZIP decompression stream - * @param cb The callback to call whenever a file in the ZIP archive is found - */ - function Unzip(cb) { - this.onfile = cb; - this.k = []; - this.o = { - 0: UnzipPassThrough - }; - this.p = et; - } - /** - * Pushes a chunk to be unzipped - * @param chunk The chunk to push - * @param final Whether this is the last chunk - */ - Unzip.prototype.push = function (chunk, final) { - var _this_1 = this; - if (!this.onfile) - err(5); - if (!this.p) - err(4); - if (this.c > 0) { - var len = Math.min(this.c, chunk.length); - var toAdd = chunk.subarray(0, len); - this.c -= len; - if (this.d) - this.d.push(toAdd, !this.c); - else - this.k[0].push(toAdd); - chunk = chunk.subarray(len); - if (chunk.length) - return this.push(chunk, final); - } - else { - var f = 0, i = 0, is = void 0, buf = void 0; - if (!this.p.length) - buf = chunk; - else if (!chunk.length) - buf = this.p; - else { - buf = new u8(this.p.length + chunk.length); - buf.set(this.p), buf.set(chunk, this.p.length); - } - var l = buf.length, oc = this.c, add = oc && this.d; - var _loop_2 = function () { - var _a; - var sig = b4(buf, i); - if (sig == 0x4034B50) { - f = 1, is = i; - this_1.d = null; - this_1.c = 0; - var bf = b2(buf, i + 6), cmp_1 = b2(buf, i + 8), u = bf & 2048, dd = bf & 8, fnl = b2(buf, i + 26), es = b2(buf, i + 28); - if (l > i + 30 + fnl + es) { - var chks_3 = []; - this_1.k.unshift(chks_3); - f = 2; - var sc_1 = b4(buf, i + 18), su_1 = b4(buf, i + 22); - var fn_1 = strFromU8(buf.subarray(i + 30, i += 30 + fnl), !u); - if (sc_1 == 4294967295) { - _a = dd ? [-2] : z64e(buf, i), sc_1 = _a[0], su_1 = _a[1]; - } - else if (dd) - sc_1 = -1; - i += es; - this_1.c = sc_1; - var d_1; - var file_1 = { - name: fn_1, - compression: cmp_1, - start: function () { - if (!file_1.ondata) - err(5); - if (!sc_1) - file_1.ondata(null, et, true); - else { - var ctr = _this_1.o[cmp_1]; - if (!ctr) - file_1.ondata(err(14, 'unknown compression type ' + cmp_1, 1), null, false); - d_1 = sc_1 < 0 ? new ctr(fn_1) : new ctr(fn_1, sc_1, su_1); - d_1.ondata = function (err, dat, final) { file_1.ondata(err, dat, final); }; - for (var _i = 0, chks_4 = chks_3; _i < chks_4.length; _i++) { - var dat = chks_4[_i]; - d_1.push(dat, false); - } - if (_this_1.k[0] == chks_3 && _this_1.c) - _this_1.d = d_1; - else - d_1.push(et, true); - } - }, - terminate: function () { - if (d_1 && d_1.terminate) - d_1.terminate(); - } - }; - if (sc_1 >= 0) - file_1.size = sc_1, file_1.originalSize = su_1; - this_1.onfile(file_1); - } - return "break"; - } - else if (oc) { - if (sig == 0x8074B50) { - is = i += 12 + (oc == -2 && 8), f = 3, this_1.c = 0; - return "break"; - } - else if (sig == 0x2014B50) { - is = i -= 4, f = 3, this_1.c = 0; - return "break"; - } - } - }; - var this_1 = this; - for (; i < l - 4; ++i) { - var state_1 = _loop_2(); - if (state_1 === "break") - break; - } - this.p = et; - if (oc < 0) { - var dat = f ? buf.subarray(0, is - 12 - (oc == -2 && 8) - (b4(buf, is - 16) == 0x8074B50 && 4)) : buf.subarray(0, i); - if (add) - add.push(dat, !!f); - else - this.k[+(f == 2)].push(dat); - } - if (f & 2) - return this.push(buf.subarray(i), final); - this.p = buf.subarray(i); - } - if (final) { - if (this.c) - err(13); - this.p = null; - } - }; - /** - * Registers a decoder with the stream, allowing for files compressed with - * the compression type provided to be expanded correctly - * @param decoder The decoder constructor - */ - Unzip.prototype.register = function (decoder) { - this.o[decoder.compression] = decoder; - }; - return Unzip; -}()); -export { Unzip }; -var mt = typeof queueMicrotask == 'function' ? queueMicrotask : typeof setTimeout == 'function' ? setTimeout : function (fn) { fn(); }; -export function unzip(data, opts, cb) { - if (!cb) - cb = opts, opts = {}; - if (typeof cb != 'function') - err(7); - var term = []; - var tAll = function () { - for (var i = 0; i < term.length; ++i) - term[i](); - }; - var files = {}; - var cbd = function (a, b) { - mt(function () { cb(a, b); }); - }; - mt(function () { cbd = cb; }); - var e = data.length - 22; - for (; b4(data, e) != 0x6054B50; --e) { - if (!e || data.length - e > 65558) { - cbd(err(13, 0, 1), null); - return tAll; - } - } - ; - var lft = b2(data, e + 8); - if (lft) { - var c = lft; - var o = b4(data, e + 16); - var z = o == 4294967295; - if (z) { - e = b4(data, e - 12); - if (b4(data, e) != 0x6064B50) { - cbd(err(13, 0, 1), null); - return tAll; - } - c = lft = b4(data, e + 32); - o = b4(data, e + 48); - } - var fltr = opts && opts.filter; - var _loop_3 = function (i) { - var _a = zh(data, o, z), c_1 = _a[0], sc = _a[1], su = _a[2], fn = _a[3], no = _a[4], off = _a[5], b = slzh(data, off); - o = no; - var cbl = function (e, d) { - if (e) { - tAll(); - cbd(e, null); - } - else { - if (d) - files[fn] = d; - if (!--lft) - cbd(null, files); - } - }; - if (!fltr || fltr({ - name: fn, - size: sc, - originalSize: su, - compression: c_1 - })) { - if (!c_1) - cbl(null, slc(data, b, b + sc)); - else if (c_1 == 8) { - var infl = data.subarray(b, b + sc); - if (sc < 320000) { - try { - cbl(null, inflateSync(infl, new u8(su))); - } - catch (e) { - cbl(e, null); - } - } - else - term.push(inflate(infl, { size: su }, cbl)); - } - else - cbl(err(14, 'unknown compression type ' + c_1, 1), null); - } - else - cbl(null, null); - }; - for (var i = 0; i < c; ++i) { - _loop_3(i); - } - } - else - cbd(null, {}); - return tAll; -} -/** - * Synchronously decompresses a ZIP archive. Prefer using `unzip` for better - * performance with more than one file. - * @param data The raw compressed ZIP file - * @param opts The ZIP extraction options - * @returns The decompressed files - */ -export function unzipSync(data, opts) { - var files = {}; - var e = data.length - 22; - for (; b4(data, e) != 0x6054B50; --e) { - if (!e || data.length - e > 65558) - err(13); - } - ; - var c = b2(data, e + 8); - if (!c) - return {}; - var o = b4(data, e + 16); - var z = o == 4294967295; - if (z) { - e = b4(data, e - 12); - if (b4(data, e) != 0x6064B50) - err(13); - c = b4(data, e + 32); - o = b4(data, e + 48); - } - var fltr = opts && opts.filter; - for (var i = 0; i < c; ++i) { - var _a = zh(data, o, z), c_2 = _a[0], sc = _a[1], su = _a[2], fn = _a[3], no = _a[4], off = _a[5], b = slzh(data, off); - o = no; - if (!fltr || fltr({ - name: fn, - size: sc, - originalSize: su, - compression: c_2 - })) { - if (!c_2) - files[fn] = slc(data, b, b + sc); - else if (c_2 == 8) - files[fn] = inflateSync(data.subarray(b, b + sc), new u8(su)); - else - err(14, 'unknown compression type ' + c_2); - } - } - return files; -} diff --git a/build_vtk_bundle/node_modules/fflate/package.json b/build_vtk_bundle/node_modules/fflate/package.json deleted file mode 100644 index 51bf514a..00000000 --- a/build_vtk_bundle/node_modules/fflate/package.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "name": "fflate", - "version": "0.7.3", - "description": "High performance (de)compression in an 8kB package", - "main": "./lib/index.cjs", - "module": "./esm/browser.js", - "types": "./lib/index.d.ts", - "unpkg": "./umd/index.js", - "jsdelivr": "./umd/index.js", - "browser": { - "./lib/node-worker.cjs": "./lib/worker.cjs" - }, - "exports": { - ".": { - "node": { - "import": "./esm/index.mjs", - "require": "./lib/node.cjs" - }, - "import": "./esm/browser.js", - "require": "./lib/index.cjs" - }, - "./node": { - "import": "./esm/index.mjs", - "require": "./lib/node.cjs" - }, - "./browser": { - "import": "./esm/browser.js", - "require": "./lib/browser.cjs" - } - }, - "targets": { - "main": false, - "module": false, - "browser": false, - "types": false - }, - "sideEffects": false, - "homepage": "https://101arrowz.github.io/fflate", - "repository": "https://github.com/101arrowz/fflate", - "bugs": { - "email": "arjunbarrett@gmail.com", - "url": "https://github.com/101arrowz/fflate/issues" - }, - "author": "Arjun Barrett ", - "license": "MIT", - "keywords": [ - "gzip", - "gunzip", - "deflate", - "inflate", - "compression", - "decompression", - "zlib", - "pako", - "jszip", - "browser", - "node.js", - "tiny", - "fast", - "zip", - "unzip", - "non-blocking" - ], - "scripts": { - "build": "yarn build:lib && yarn build:docs && yarn build:demo", - "script": "node -r ts-node/register scripts/$SC.ts", - "build:lib": "tsc && tsc --project tsconfig.esm.json && yarn build:rewrite && yarn build:umd", - "build:umd": "SC=buildUMD yarn script", - "build:rewrite": "SC=rewriteBuilds yarn script", - "build:demo": "tsc --project tsconfig.demo.json && parcel build demo/index.html --public-url \"./\" && SC=cpGHPages yarn script", - "build:docs": "typedoc --mode library --plugin typedoc-plugin-markdown --hideProjectName --hideBreadcrumbs --readme none --disableSources --excludePrivate --excludeProtected --out docs/ src/index.ts", - "test": "TS_NODE_PROJECT=test/tsconfig.json uvu -b -r ts-node/register test", - "prepack": "yarn build && yarn test" - }, - "devDependencies": { - "@types/node": "^14.11.2", - "@types/pako": "*", - "@types/react": "^16.9.55", - "@types/react-dom": "^16.9.9", - "jszip": "^3.5.0", - "pako": "*", - "parcel": "^2.0.0-nightly.440", - "parcel-config-precache-manifest": "^0.0.3", - "preact": "^10.5.5", - "react": "^17.0.1", - "react-dom": "^17.0.1", - "simple-git": "^2.22.0", - "terser": "^5.3.8", - "tiny-inflate": "*", - "ts-node": "^9.0.0", - "typedoc": "^0.17.0-3", - "typedoc-plugin-markdown": "^3.0.2", - "typescript": "^4.0.2", - "uvu": "^0.3.3", - "uzip": "*" - }, - "alias": { - "react": "preact/compat", - "react-dom": "preact/compat", - "react-dom/test-utils": "preact/test-utils" - } -} diff --git a/build_vtk_bundle/node_modules/fflate/umd/index.js b/build_vtk_bundle/node_modules/fflate/umd/index.js deleted file mode 100644 index 47e072cd..00000000 --- a/build_vtk_bundle/node_modules/fflate/umd/index.js +++ /dev/null @@ -1 +0,0 @@ -!function(f){typeof module!='undefined'&&typeof exports=='object'?module.exports=f():typeof define!='undefined'&&define.amd?define(f):(typeof self!='undefined'?self:this).fflate=f()}(function(){var _e={};"use strict";var t=(typeof module!='undefined'&&typeof exports=='object'?function(_f){"use strict";var e,t=";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global";try{e=require("worker_threads").Worker}catch(e){}exports.default=e?function(r,n,o,a,s){var u=!1,i=new e(r+t,{eval:!0}).on("error",(function(e){return s(e,null)})).on("message",(function(e){return s(null,e)})).on("exit",(function(e){e&&!u&&s(Error("exited with code "+e),null)}));return i.postMessage(o,a),i.terminate=function(){return u=!0,e.prototype.terminate.call(i)},i}:function(e,t,r,n,o){setImmediate((function(){return o(Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)}));var a=function(){};return{terminate:a,postMessage:a}};return _f}:function(_f){"use strict";var e={};_f.default=function(r,t,s,a,n){var o=new Worker(e[t]||(e[t]=URL.createObjectURL(new Blob([r+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return o.onmessage=function(e){var r=e.data,t=r.$e$;if(t){var s=Error(t[0]);s.code=t[1],s.stack=t[2],n(s,null)}else n(null,r)},o.postMessage(s,a),o};return _f})({}),n=Uint8Array,r=Uint16Array,e=Uint32Array,i=new n([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),o=new n([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,n){for(var i=new r(31),o=0;o<31;++o)i[o]=n+=1<>>1|(21845&d)<<1;v[d]=((65280&(g=(61680&(g=(52428&g)>>>2|(13107&g)<<2))>>>4|(3855&g)<<4))>>>8|(255&g)<<8)>>>1}var y=function(t,n,e){for(var i=t.length,o=0,a=new r(n);o>>f]=h}else for(s=new r(i),o=0;o>>15-t[o]);return s},m=new n(288);for(d=0;d<144;++d)m[d]=8;for(d=144;d<256;++d)m[d]=9;for(d=256;d<280;++d)m[d]=7;for(d=280;d<288;++d)m[d]=8;var w=new n(32);for(d=0;d<32;++d)w[d]=5;var x=y(m,9,0),b=y(m,9,1),z=y(w,5,0),k=y(w,5,1),M=function(t){for(var n=t[0],r=1;rn&&(n=t[r]);return n},S=function(t,n,r){var e=n/8|0;return(t[e]|t[e+1]<<8)>>(7&n)&r},T=function(t,n){var r=n/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(7&n)},A=function(t){return(t+7)/8|0},E=function(t,i,o){(null==i||i<0)&&(i=0),(null==o||o>t.length)&&(o=t.length);var a=new(2==t.BYTES_PER_ELEMENT?r:4==t.BYTES_PER_ELEMENT?e:n)(o-i);return a.set(t.subarray(i,o)),a};_e.FlateErrorCode={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14};var D=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],C=function(t,n,r){var e=Error(n||D[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,C),!r)throw e;return e},U=function(t,r,e){var s=t.length;if(!s||e&&e.f&&!e.l)return r||new n(0);var u=!r||e,h=!e||e.i;e||(e={}),r||(r=new n(3*s));var c=function(t){var e=r.length;if(t>e){var i=new n(Math.max(2*e,t));i.set(r),r=i}},p=e.f||0,v=e.p||0,d=e.b||0,g=e.l,m=e.d,w=e.m,x=e.n,z=8*s;do{if(!g){p=S(t,v,1);var D=S(t,v+1,3);if(v+=3,!D){var U=t[(B=A(v)+4)-4]|t[B-3]<<8,I=B+U;if(I>s){h&&C(0);break}u&&c(d+U),r.set(t.subarray(B,I),d),e.b=d+=U,e.p=v=8*I,e.f=p;continue}if(1==D)g=b,m=k,w=9,x=5;else if(2==D){var F=S(t,v,31)+257,Z=S(t,v+10,15)+4,O=F+S(t,v+5,31)+1;v+=14;for(var G=new n(O),L=new n(19),N=0;N>>4)<16)G[N++]=B;else{var Y=0,j=0;for(16==B?(j=3+S(t,v,3),v+=2,Y=G[N-1]):17==B?(j=3+S(t,v,7),v+=3):18==B&&(j=11+S(t,v,127),v+=7);j--;)G[N++]=Y}}var R=G.subarray(0,F),J=G.subarray(F);w=M(R),x=M(J),g=y(R,w,1),m=y(J,x,1)}else C(1);if(v>z){h&&C(0);break}}u&&c(d+131072);for(var K=(1<>>4;if((v+=15&Y)>z){h&&C(0);break}if(Y||C(2),W<256)r[d++]=W;else{if(256==W){V=v,g=null;break}var X=W-254;W>264&&(X=S(t,v,(1<<(nt=i[N=W-257]))-1)+f[N],v+=nt);var $=m[T(t,v)&Q],tt=$>>>4;if($||C(3),v+=15&$,J=l[tt],tt>3){var nt=o[tt];J+=T(t,v)&(1<z){h&&C(0);break}u&&c(d+131072);for(var rt=d+X;d>>8},F=function(t,n,r){var e=n/8|0;t[e]|=r<<=7&n,t[e+1]|=r>>>8,t[e+2]|=r>>>16},Z=function(t,e){for(var i=[],o=0;ov&&(v=s[o].s);var d=new r(v+1),g=O(i[l-1],d,0);if(g>e){o=0;var y=0,m=g-e,w=1<e))break;y+=w-(1<>>=m;y>0;){var b=s[o].s;d[b]=0&&y;--o){var z=s[o].s;d[z]==e&&(--d[z],++y)}g=e}return[new n(d),g]},O=function(t,n,r){return-1==t.s?Math.max(O(t.l,n,r+1),O(t.r,n,r+1)):n[t.s]=r},G=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new r(++n),i=0,o=t[0],a=1,s=function(t){e[i++]=t},u=1;u<=n;++u)if(t[u]==o&&u!=n)++a;else{if(!o&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(o),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(o);a=1,o=t[u]}return[e.subarray(0,i),n]},L=function(t,n){for(var r=0,e=0;e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var o=0;o4&&!q[a[H-1]];--H);var Y,j,R,J,K=p+5<<3,Q=L(u,m)+L(f,w)+h,V=L(u,g)+L(f,M)+h+14+3*H+L(O,q)+(2*O[16]+3*O[17]+7*O[18]);if(K<=Q&&K<=V)return N(n,v,t.subarray(l,l+p));if(I(n,v,1+(V15&&(I(n,v,tt[P]>>>5&127),v+=tt[P]>>>12)}}else Y=x,j=m,R=z,J=w;for(P=0;P255){var nt;F(n,v,Y[257+(nt=s[P]>>>18&31)]),v+=j[nt+257],nt>7&&(I(n,v,s[P]>>>23&31),v+=i[nt]);var rt=31&s[P];F(n,v,R[rt]),v+=J[rt],rt>3&&(F(n,v,s[P]>>>5&8191),v+=o[rt])}else F(n,v,Y[s[P]]),v+=j[s[P]];return F(n,v,Y[256]),v+j[256]},_=new e([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),q=new n(0),B=function(t,a,s,u,f,c){var l=t.length,v=new n(u+l+5*(1+Math.ceil(l/7e3))+f),d=v.subarray(u,v.length-f),g=0;if(!a||l<8)for(var y=0;y<=l;y+=65535){var m=y+65535;m>=l&&(d[g>>3]=c),g=N(d,g+1,t.subarray(y,m))}else{for(var w=_[a-1],x=w>>>13,b=8191&w,z=(1<7e3||O>24576)&&j>423){g=P(t,d,0,C,U,I,Z,O,L,y-L,g),O=F=Z=0,L=y;for(var R=0;R<286;++R)U[R]=0;for(R=0;R<30;++R)I[R]=0}var J=2,K=0,Q=b,V=H-Y&32767;if(j>2&&B==D(y-V))for(var W=Math.min(x,j)-1,X=Math.min(32767,y),$=Math.min(258,j);V<=X&&--Q&&H!=Y;){if(t[y+J]==t[y+J-V]){for(var tt=0;tt<$&&t[y+tt]==t[y+tt-V];++tt);if(tt>J){if(J=tt,K=V,tt>W)break;var nt=Math.min(V,tt-2),rt=0;for(R=0;Rrt&&(rt=it,Y=et)}}}V+=(H=Y)-(Y=k[H])+32768&32767}if(K){C[O++]=268435456|h[J]<<18|p[K];var ot=31&h[J],at=31&p[K];Z+=i[ot]+o[at],++U[257+ot],++I[at],G=y+J,++F}else C[O++]=t[y],++U[t[y]]}}g=P(t,d,c,C,U,I,Z,O,L,y-L,g),!c&&7&g&&(g=N(d,g+1,q))}return E(v,0,u+A(g)+f)},H=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),Y=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}},j=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,o=0|r.length,a=0;a!=o;){for(var s=Math.min(a+2655,o);a>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|t>>>8<<16|(255&(n%=65521))<<8|n>>>8}}},R=function(t,n,r,e,i){return B(t,null==n.level?6:n.level,null==n.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+n.mem,r,e,!i)},J=function(t,n){var r={};for(var e in t)r[e]=t[e];for(var e in n)r[e]=n[e];return r},K=function(t,n,r){for(var e=t(),i=""+t,o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),a=0;a>>0},ct=function(t,n){return ht(t,n)+4294967296*ht(t,n+4)},lt=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},pt=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&<(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},vt=function(t){31==t[0]&&139==t[1]&&8==t[2]||C(6,"invalid gzip data");var n=t[3],r=10;4&n&&(r+=t[10]|2+(t[11]<<8));for(var e=(n>>3&1)+(n>>4&1);e>0;e-=!t[r++]);return r+(2&n)},dt=function(t){var n=t.length;return(t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24)>>>0},gt=function(t){return 10+(t.filename&&t.filename.length+1||0)},yt=function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;t[0]=120,t[1]=e<<6|(e?32-2*e:1)},mt=function(t){(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)&&C(6,"invalid zlib data"),32&t[1]&&C(6,"invalid zlib data: preset dictionaries not supported")};function wt(t,n){return n||"function"!=typeof t||(n=t,t={}),this.ondata=n,t}var xt=function(){function t(t,n){n||"function"!=typeof t||(n=t,t={}),this.ondata=n,this.o=t||{}}return t.prototype.p=function(t,n){this.ondata(R(t,this.o,0,0,!n),n)},t.prototype.push=function(t,n){this.ondata||C(5),this.d&&C(4),this.d=n,this.p(t,n||!1)},t}();_e.Deflate=xt;var bt=function(){return function(t,n){ut([$,function(){return[st,xt]}],this,wt.call(this,t,n),(function(t){var n=new xt(t.data);onmessage=st(n)}),6)}}();function zt(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&C(7),at(t,n,[$],(function(t){return it(kt(t.data[0],t.data[1]))}),0,r)}function kt(t,n){return R(t,n||{},0,0)}_e.AsyncDeflate=bt,_e.deflate=zt,_e.deflateSync=kt;var Mt=function(){function t(t){this.s={},this.p=new n(0),this.ondata=t}return t.prototype.e=function(t){this.ondata||C(5),this.d&&C(4);var r=this.p.length,e=new n(r+t.length);e.set(this.p),e.set(t,r),this.p=e},t.prototype.c=function(t){this.d=this.s.i=t||!1;var n=this.s.b,r=U(this.p,this.o,this.s);this.ondata(E(r,n,this.s.b),this.d),this.o=E(r,this.s.b-32768),this.s.b=this.o.length,this.p=E(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(n)},t}();_e.Inflate=Mt;var St=function(){return function(t){this.ondata=t,ut([X,function(){return[st,Mt]}],this,0,(function(){var t=new Mt;onmessage=st(t)}),7)}}();function Tt(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&C(7),at(t,n,[X],(function(t){return it(At(t.data[0],ot(t.data[1])))}),1,r)}function At(t,n){return U(t,n)}_e.AsyncInflate=St,_e.inflate=Tt,_e.inflateSync=At;var Et=function(){function t(t,n){this.c=Y(),this.l=0,this.v=1,xt.call(this,t,n)}return t.prototype.push=function(t,n){xt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t),this.l+=t.length;var r=R(t,this.o,this.v&>(this.o),n&&8,!n);this.v&&(pt(r,this.o),this.v=0),n&&(lt(r,r.length-8,this.c.d()),lt(r,r.length-4,this.l)),this.ondata(r,n)},t}();_e.Gzip=Et,_e.Compress=Et;var Dt=function(){return function(t,n){ut([$,tt,function(){return[st,xt,Et]}],this,wt.call(this,t,n),(function(t){var n=new Et(t.data);onmessage=st(n)}),8)}}();function Ct(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&C(7),at(t,n,[$,tt,function(){return[Ut]}],(function(t){return it(Ut(t.data[0],t.data[1]))}),2,r)}function Ut(t,n){n||(n={});var r=Y(),e=t.length;r.p(t);var i=R(t,n,gt(n),8),o=i.length;return pt(i,n),lt(i,o-8,r.d()),lt(i,o-4,e),i}_e.AsyncGzip=Dt,_e.AsyncCompress=Dt,_e.gzip=Ct,_e.compress=Ct,_e.gzipSync=Ut,_e.compressSync=Ut;var It=function(){function t(t){this.v=1,Mt.call(this,t)}return t.prototype.push=function(t,n){if(Mt.prototype.e.call(this,t),this.v){var r=this.p.length>3?vt(this.p):4;if(r>=this.p.length&&!n)return;this.p=this.p.subarray(r),this.v=0}n&&(this.p.length<8&&C(6,"invalid gzip data"),this.p=this.p.subarray(0,-8)),Mt.prototype.c.call(this,n)},t}();_e.Gunzip=It;var Ft=function(){return function(t){this.ondata=t,ut([X,nt,function(){return[st,Mt,It]}],this,0,(function(){var t=new It;onmessage=st(t)}),9)}}();function Zt(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&C(7),at(t,n,[X,nt,function(){return[Ot]}],(function(t){return it(Ot(t.data[0]))}),3,r)}function Ot(t,r){return U(t.subarray(vt(t),-8),r||new n(dt(t)))}_e.AsyncGunzip=Ft,_e.gunzip=Zt,_e.gunzipSync=Ot;var Gt=function(){function t(t,n){this.c=j(),this.v=1,xt.call(this,t,n)}return t.prototype.push=function(t,n){xt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){this.c.p(t);var r=R(t,this.o,this.v&&2,n&&4,!n);this.v&&(yt(r,this.o),this.v=0),n&<(r,r.length-4,this.c.d()),this.ondata(r,n)},t}();_e.Zlib=Gt;var Lt=function(){return function(t,n){ut([$,rt,function(){return[st,xt,Gt]}],this,wt.call(this,t,n),(function(t){var n=new Gt(t.data);onmessage=st(n)}),10)}}();function Nt(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&C(7),at(t,n,[$,rt,function(){return[Pt]}],(function(t){return it(Pt(t.data[0],t.data[1]))}),4,r)}function Pt(t,n){n||(n={});var r=j();r.p(t);var e=R(t,n,2,4);return yt(e,n),lt(e,e.length-4,r.d()),e}_e.AsyncZlib=Lt,_e.zlib=Nt,_e.zlibSync=Pt;var _t=function(){function t(t){this.v=1,Mt.call(this,t)}return t.prototype.push=function(t,n){if(Mt.prototype.e.call(this,t),this.v){if(this.p.length<2&&!n)return;this.p=this.p.subarray(2),this.v=0}n&&(this.p.length<4&&C(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),Mt.prototype.c.call(this,n)},t}();_e.Unzlib=_t;var qt=function(){return function(t){this.ondata=t,ut([X,et,function(){return[st,Mt,_t]}],this,0,(function(){var t=new _t;onmessage=st(t)}),11)}}();function Bt(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&C(7),at(t,n,[X,et,function(){return[Ht]}],(function(t){return it(Ht(t.data[0],ot(t.data[1])))}),5,r)}function Ht(t,n){return U((mt(t),t.subarray(2,-4)),n)}_e.AsyncUnzlib=qt,_e.unzlib=Bt,_e.unzlibSync=Ht;var Yt=function(){function t(t){this.G=It,this.I=Mt,this.Z=_t,this.ondata=t}return t.prototype.push=function(t,r){if(this.ondata||C(5),this.s)this.s.push(t,r);else{if(this.p&&this.p.length){var e=new n(this.p.length+t.length);e.set(this.p),e.set(t,this.p.length)}else this.p=t;if(this.p.length>2){var i=this,o=function(){i.ondata.apply(i,arguments)};this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(o):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(o):new this.Z(o),this.s.push(this.p,r),this.p=null}}},t}();_e.Decompress=Yt;var jt=function(){function t(t){this.G=Ft,this.I=St,this.Z=qt,this.ondata=t}return t.prototype.push=function(t,n){Yt.prototype.push.call(this,t,n)},t}();function Rt(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&C(7),31==t[0]&&139==t[1]&&8==t[2]?Zt(t,n,r):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?Tt(t,n,r):Bt(t,n,r)}function Jt(t,n){return 31==t[0]&&139==t[1]&&8==t[2]?Ot(t,n):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?At(t,n):Ht(t,n)}_e.AsyncDecompress=jt,_e.decompress=Rt,_e.decompressSync=Jt;var Kt=function(t,r,e,i){for(var o in t){var a=t[o],s=r+o,u=i;Array.isArray(a)&&(u=J(i,a[1]),a=a[0]),a instanceof n?e[s]=[a,u]:(e[s+="/"]=[new n(0),u],Kt(a,s,e,i))}},Qt="undefined"!=typeof TextEncoder&&new TextEncoder,Vt="undefined"!=typeof TextDecoder&&new TextDecoder,Wt=0;try{Vt.decode(q,{stream:!0}),Wt=1}catch(t){}var Xt=function(t){for(var n="",r=0;;){var e=t[r++],i=(e>127)+(e>223)+(e>239);if(r+i>t.length)return[n,E(t,r-1)];i?3==i?(e=((15&e)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,n+=String.fromCharCode(55296|e>>10,56320|1023&e)):n+=String.fromCharCode(1&i?(31&e)<<6|63&t[r++]:(15&e)<<12|(63&t[r++])<<6|63&t[r++]):n+=String.fromCharCode(e)}},$t=function(){function t(t){this.ondata=t,Wt?this.t=new TextDecoder:this.p=q}return t.prototype.push=function(t,r){if(this.ondata||C(5),r=!!r,this.t)return this.ondata(this.t.decode(t,{stream:!0}),r),void(r&&(this.t.decode().length&&C(8),this.t=null));this.p||C(4);var e=new n(this.p.length+t.length);e.set(this.p),e.set(t,this.p.length);var i=Xt(e),o=i[0],a=i[1];r?(a.length&&C(8),this.p=null):this.p=a,this.ondata(o,r)},t}();_e.DecodeUTF8=$t;var tn=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||C(5),this.d&&C(4),this.ondata(nn(t),this.d=n||!1)},t}();function nn(t,r){if(r){for(var e=new n(t.length),i=0;i>1)),s=0,u=function(t){a[s++]=t};for(i=0;ia.length){var f=new n(s+8+(o-i<<1));f.set(a),a=f}var h=t.charCodeAt(i);h<128||r?u(h):h<2048?(u(192|h>>6),u(128|63&h)):h>55295&&h<57344?(u(240|(h=65536+(1047552&h)|1023&t.charCodeAt(++i))>>18),u(128|h>>12&63),u(128|h>>6&63),u(128|63&h)):(u(224|h>>12),u(128|h>>6&63),u(128|63&h))}return E(a,0,s)}function rn(t,n){if(n){for(var r="",e=0;e65535&&C(9),n+=e+4}return n},fn=function(t,n,r,e,i,o,a,s){var u=e.length,f=r.extra,h=s&&s.length,c=un(f);lt(t,n,null!=a?33639248:67324752),n+=4,null!=a&&(t[n++]=20,t[n++]=r.os),t[n]=20,n+=2,t[n++]=r.flag<<1|(null==o&&8),t[n++]=i&&8,t[n++]=255&r.compression,t[n++]=r.compression>>8;var l=new Date(null==r.mtime?Date.now():r.mtime),p=l.getFullYear()-1980;if((p<0||p>119)&&C(10),lt(t,n,p<<25|l.getMonth()+1<<21|l.getDate()<<16|l.getHours()<<11|l.getMinutes()<<5|l.getSeconds()>>>1),n+=4,null!=o&&(lt(t,n,r.crc),lt(t,n+4,o),lt(t,n+8,r.size)),lt(t,n+12,u),lt(t,n+14,c),n+=16,null!=a&&(lt(t,n,h),lt(t,n+6,r.attrs),lt(t,n+10,a),n+=14),t.set(e,n),n+=u,c)for(var v in f){var d=f[v],g=d.length;lt(t,n,+v),lt(t,n+2,g),t.set(d,n+4),n+=4+g}return h&&(t.set(s,n),n+=h),n},hn=function(t,n,r,e,i){lt(t,n,101010256),lt(t,n+8,r),lt(t,n+10,r),lt(t,n+12,e),lt(t,n+16,i)},cn=function(){function t(t){this.filename=t,this.c=Y(),this.size=0,this.compression=0}return t.prototype.process=function(t,n){this.ondata(null,t,n)},t.prototype.push=function(t,n){this.ondata||C(5),this.c.p(t),this.size+=t.length,n&&(this.crc=this.c.d()),this.process(t,n||!1)},t}();_e.ZipPassThrough=cn;var ln=function(){function t(t,n){var r=this;n||(n={}),cn.call(this,t),this.d=new xt(n,(function(t,n){r.ondata(null,t,n)})),this.compression=8,this.flag=en(n.level)}return t.prototype.process=function(t,n){try{this.d.push(t,n)}catch(t){this.ondata(t,null,n)}},t.prototype.push=function(t,n){cn.prototype.push.call(this,t,n)},t}();_e.ZipDeflate=ln;var pn=function(){function t(t,n){var r=this;n||(n={}),cn.call(this,t),this.d=new bt(n,(function(t,n,e){r.ondata(t,n,e)})),this.compression=8,this.flag=en(n.level),this.terminate=this.d.terminate}return t.prototype.process=function(t,n){this.d.push(t,n)},t.prototype.push=function(t,n){cn.prototype.push.call(this,t,n)},t}();_e.AsyncZipDeflate=pn;var vn=function(){function t(t){this.ondata=t,this.u=[],this.d=1}return t.prototype.add=function(t){var r=this;if(this.ondata||C(5),2&this.d)this.ondata(C(4+8*(1&this.d),0,1),null,!1);else{var e=nn(t.filename),i=e.length,o=t.comment,a=o&&nn(o),s=i!=t.filename.length||a&&o.length!=a.length,u=i+un(t.extra)+30;i>65535&&this.ondata(C(11,0,1),null,!1);var f=new n(u);fn(f,0,t,e,s);var h=[f],c=function(){for(var t=0,n=h;t65535&&M(C(11,0,1),null),k)if(g<16e4)try{M(null,kt(e,f))}catch(t){M(t,null)}else c.push(zt(e,f,M));else M(null,e)},g=0;g65535&&C(11);var y=c?kt(f,h):f,m=y.length,w=Y();w.p(f),i.push(J(h,{size:f.length,crc:w.d(),c:y,f:M,m:v,u:l!=s.length||v&&p.length!=d,o:o,compression:c})),o+=30+l+g+m,a+=76+2*(l+g)+(d||0)+m}for(var x=new n(a+22),b=o,z=a-o,k=0;k0){var i=Math.min(this.c,t.length),o=t.subarray(0,i);if(this.c-=i,this.d?this.d.push(o,!this.c):this.k[0].push(o),(t=t.subarray(i)).length)return this.push(t,r)}else{var a=0,s=0,u=void 0,f=void 0;this.p.length?t.length?((f=new n(this.p.length+t.length)).set(this.p),f.set(t,this.p.length)):f=this.p:f=t;for(var h=f.length,c=this.c,l=c&&this.d,p=function(){var t,n=ht(f,s);if(67324752==n){a=1,u=s,v.d=null,v.c=0;var r=ft(f,s+6),i=ft(f,s+8),o=2048&r,l=8&r,p=ft(f,s+26),d=ft(f,s+28);if(h>s+30+p+d){var g=[];v.k.unshift(g),a=2;var y,m=ht(f,s+18),w=ht(f,s+22),x=rn(f.subarray(s+30,s+=30+p),!o);4294967295==m?(t=l?[-2]:sn(f,s),m=t[0],w=t[1]):l&&(m=-1),s+=d,v.c=m;var b={name:x,compression:i,start:function(){if(b.ondata||C(5),m){var t=e.o[i];t||b.ondata(C(14,"unknown compression type "+i,1),null,!1),(y=m<0?new t(x):new t(x,m,w)).ondata=function(t,n,r){b.ondata(t,n,r)};for(var n=0,r=g;n=0&&(b.size=m,b.originalSize=w),v.onfile(b)}return"break"}if(c){if(134695760==n)return u=s+=12+(-2==c&&8),a=3,v.c=0,"break";if(33639248==n)return u=s-=4,a=3,v.c=0,"break"}},v=this;s65558)return s(C(13,0,1),null),o;var f=ft(t,u+8);if(f){var h=f,c=ht(t,u+16),l=4294967295==c;if(l){if(u=ht(t,u-12),101075792!=ht(t,u))return s(C(13,0,1),null),o;h=f=ht(t,u+32),c=ht(t,u+48)}for(var p=r&&r.filter,v=function(r){var e=an(t,c,l),u=e[0],h=e[1],v=e[2],d=e[3],g=e[4],y=on(t,e[5]);c=g;var m=function(t,n){t?(o(),s(t,null)):(n&&(a[d]=n),--f||s(null,a))};if(!p||p({name:d,size:h,originalSize:v,compression:u}))if(u)if(8==u){var w=t.subarray(y,y+h);if(h<32e4)try{m(null,At(w,new n(v)))}catch(t){m(t,null)}else i.push(Tt(w,{size:v},m))}else m(C(14,"unknown compression type "+u,1),null);else m(null,E(t,y,y+h));else m(null,null)},d=0;d65558)&&C(13);var o=ft(t,i+8);if(!o)return{};var a=ht(t,i+16),s=4294967295==a;s&&(i=ht(t,i-12),101075792!=ht(t,i)&&C(13),o=ht(t,i+32),a=ht(t,i+48));for(var u=r&&r.filter,f=0;f true - ``` - */ - exists: (path: string) => boolean; - - /** - Synchronously find a file or directory by walking up parent directories. - - @param name - Name of the file or directory to find. Can be multiple. - @returns The first path found (by respecting the order of `name`s) or `undefined` if none could be found. - */ - (name: string | readonly string[], options?: findUp.Options): string | undefined; - - /** - Synchronously find a file or directory by walking up parent directories. - - @param matcher - Called for each directory in the search. Return a path or `findUp.stop` to stop the search. - @returns The first path found or `undefined` if none could be found. - - @example - ``` - import path = require('path'); - import findUp = require('find-up'); - - console.log(findUp.sync(directory => { - const hasUnicorns = findUp.sync.exists(path.join(directory, 'unicorn.png')); - return hasUnicorns && directory; - }, {type: 'directory'})); - //=> '/Users/sindresorhus' - ``` - */ - (matcher: (directory: string) => findUp.Match, options?: findUp.Options): string | undefined; - }; - - /** - Check if a path exists. - - @param path - Path to a file or directory. - @returns Whether the path exists. - - @example - ``` - import findUp = require('find-up'); - - (async () => { - console.log(await findUp.exists('/Users/sindresorhus/unicorn.png')); - //=> true - })(); - ``` - */ - exists: (path: string) => Promise; - - /** - Return this in a `matcher` function to stop the search and force `findUp` to immediately return `undefined`. - */ - readonly stop: findUp.StopSymbol; - - /** - Find a file or directory by walking up parent directories. - - @param name - Name of the file or directory to find. Can be multiple. - @returns The first path found (by respecting the order of `name`s) or `undefined` if none could be found. - - @example - ``` - // / - // └── Users - // └── sindresorhus - // ├── unicorn.png - // └── foo - // └── bar - // ├── baz - // └── example.js - - // example.js - import findUp = require('find-up'); - - (async () => { - console.log(await findUp('unicorn.png')); - //=> '/Users/sindresorhus/unicorn.png' - - console.log(await findUp(['rainbow.png', 'unicorn.png'])); - //=> '/Users/sindresorhus/unicorn.png' - })(); - ``` - */ - (name: string | readonly string[], options?: findUp.Options): Promise; - - /** - Find a file or directory by walking up parent directories. - - @param matcher - Called for each directory in the search. Return a path or `findUp.stop` to stop the search. - @returns The first path found or `undefined` if none could be found. - - @example - ``` - import path = require('path'); - import findUp = require('find-up'); - - (async () => { - console.log(await findUp(async directory => { - const hasUnicorns = await findUp.exists(path.join(directory, 'unicorn.png')); - return hasUnicorns && directory; - }, {type: 'directory'})); - //=> '/Users/sindresorhus' - })(); - ``` - */ - (matcher: (directory: string) => (findUp.Match | Promise), options?: findUp.Options): Promise; -}; - -export = findUp; diff --git a/build_vtk_bundle/node_modules/find-up/index.js b/build_vtk_bundle/node_modules/find-up/index.js deleted file mode 100644 index ce564e5d..00000000 --- a/build_vtk_bundle/node_modules/find-up/index.js +++ /dev/null @@ -1,89 +0,0 @@ -'use strict'; -const path = require('path'); -const locatePath = require('locate-path'); -const pathExists = require('path-exists'); - -const stop = Symbol('findUp.stop'); - -module.exports = async (name, options = {}) => { - let directory = path.resolve(options.cwd || ''); - const {root} = path.parse(directory); - const paths = [].concat(name); - - const runMatcher = async locateOptions => { - if (typeof name !== 'function') { - return locatePath(paths, locateOptions); - } - - const foundPath = await name(locateOptions.cwd); - if (typeof foundPath === 'string') { - return locatePath([foundPath], locateOptions); - } - - return foundPath; - }; - - // eslint-disable-next-line no-constant-condition - while (true) { - // eslint-disable-next-line no-await-in-loop - const foundPath = await runMatcher({...options, cwd: directory}); - - if (foundPath === stop) { - return; - } - - if (foundPath) { - return path.resolve(directory, foundPath); - } - - if (directory === root) { - return; - } - - directory = path.dirname(directory); - } -}; - -module.exports.sync = (name, options = {}) => { - let directory = path.resolve(options.cwd || ''); - const {root} = path.parse(directory); - const paths = [].concat(name); - - const runMatcher = locateOptions => { - if (typeof name !== 'function') { - return locatePath.sync(paths, locateOptions); - } - - const foundPath = name(locateOptions.cwd); - if (typeof foundPath === 'string') { - return locatePath.sync([foundPath], locateOptions); - } - - return foundPath; - }; - - // eslint-disable-next-line no-constant-condition - while (true) { - const foundPath = runMatcher({...options, cwd: directory}); - - if (foundPath === stop) { - return; - } - - if (foundPath) { - return path.resolve(directory, foundPath); - } - - if (directory === root) { - return; - } - - directory = path.dirname(directory); - } -}; - -module.exports.exists = pathExists; - -module.exports.sync.exists = pathExists.sync; - -module.exports.stop = stop; diff --git a/build_vtk_bundle/node_modules/find-up/license b/build_vtk_bundle/node_modules/find-up/license deleted file mode 100644 index fa7ceba3..00000000 --- a/build_vtk_bundle/node_modules/find-up/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/find-up/package.json b/build_vtk_bundle/node_modules/find-up/package.json deleted file mode 100644 index 56db6dd8..00000000 --- a/build_vtk_bundle/node_modules/find-up/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "find-up", - "version": "5.0.0", - "description": "Find a file or directory by walking up parent directories", - "license": "MIT", - "repository": "sindresorhus/find-up", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "find", - "up", - "find-up", - "findup", - "look-up", - "look", - "file", - "search", - "match", - "package", - "resolve", - "parent", - "parents", - "folder", - "directory", - "walk", - "walking", - "path" - ], - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "is-path-inside": "^2.1.0", - "tempy": "^0.6.0", - "tsd": "^0.13.1", - "xo": "^0.33.0" - } -} diff --git a/build_vtk_bundle/node_modules/find-up/readme.md b/build_vtk_bundle/node_modules/find-up/readme.md deleted file mode 100644 index 7ad908a7..00000000 --- a/build_vtk_bundle/node_modules/find-up/readme.md +++ /dev/null @@ -1,151 +0,0 @@ -# find-up [![Build Status](https://travis-ci.com/sindresorhus/find-up.svg?branch=master)](https://travis-ci.com/github/sindresorhus/find-up) - -> Find a file or directory by walking up parent directories - -## Install - -``` -$ npm install find-up -``` - -## Usage - -``` -/ -└── Users - └── sindresorhus - ├── unicorn.png - └── foo - └── bar - ├── baz - └── example.js -``` - -`example.js` - -```js -const path = require('path'); -const findUp = require('find-up'); - -(async () => { - console.log(await findUp('unicorn.png')); - //=> '/Users/sindresorhus/unicorn.png' - - console.log(await findUp(['rainbow.png', 'unicorn.png'])); - //=> '/Users/sindresorhus/unicorn.png' - - console.log(await findUp(async directory => { - const hasUnicorns = await findUp.exists(path.join(directory, 'unicorn.png')); - return hasUnicorns && directory; - }, {type: 'directory'})); - //=> '/Users/sindresorhus' -})(); -``` - -## API - -### findUp(name, options?) -### findUp(matcher, options?) - -Returns a `Promise` for either the path or `undefined` if it couldn't be found. - -### findUp([...name], options?) - -Returns a `Promise` for either the first path found (by respecting the order of the array) or `undefined` if none could be found. - -### findUp.sync(name, options?) -### findUp.sync(matcher, options?) - -Returns a path or `undefined` if it couldn't be found. - -### findUp.sync([...name], options?) - -Returns the first path found (by respecting the order of the array) or `undefined` if none could be found. - -#### name - -Type: `string` - -Name of the file or directory to find. - -#### matcher - -Type: `Function` - -A function that will be called with each directory until it returns a `string` with the path, which stops the search, or the root directory has been reached and nothing was found. Useful if you want to match files with certain patterns, set of permissions, or other advanced use-cases. - -When using async mode, the `matcher` may optionally be an async or promise-returning function that returns the path. - -#### options - -Type: `object` - -##### cwd - -Type: `string`\ -Default: `process.cwd()` - -Directory to start from. - -##### type - -Type: `string`\ -Default: `'file'`\ -Values: `'file'` `'directory'` - -The type of paths that can match. - -##### allowSymlinks - -Type: `boolean`\ -Default: `true` - -Allow symbolic links to match if they point to the chosen path type. - -### findUp.exists(path) - -Returns a `Promise` of whether the path exists. - -### findUp.sync.exists(path) - -Returns a `boolean` of whether the path exists. - -#### path - -Type: `string` - -Path to a file or directory. - -### findUp.stop - -A [`Symbol`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol) that can be returned by a `matcher` function to stop the search and cause `findUp` to immediately return `undefined`. Useful as a performance optimization in case the current working directory is deeply nested in the filesystem. - -```js -const path = require('path'); -const findUp = require('find-up'); - -(async () => { - await findUp(directory => { - return path.basename(directory) === 'work' ? findUp.stop : 'logo.png'; - }); -})(); -``` - -## Related - -- [find-up-cli](https://github.com/sindresorhus/find-up-cli) - CLI for this module -- [pkg-up](https://github.com/sindresorhus/pkg-up) - Find the closest package.json file -- [pkg-dir](https://github.com/sindresorhus/pkg-dir) - Find the root directory of an npm package -- [resolve-from](https://github.com/sindresorhus/resolve-from) - Resolve the path of a module like `require.resolve()` but from a given path - ---- - -
- - Get professional support for 'find-up' with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/build_vtk_bundle/node_modules/flat/.travis.yml b/build_vtk_bundle/node_modules/flat/.travis.yml deleted file mode 100644 index f35768a9..00000000 --- a/build_vtk_bundle/node_modules/flat/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js -node_js: - - "6" - - "7" - - "8" - - "10" - - "12" - - "14" diff --git a/build_vtk_bundle/node_modules/flat/LICENSE b/build_vtk_bundle/node_modules/flat/LICENSE deleted file mode 100644 index d99b6554..00000000 --- a/build_vtk_bundle/node_modules/flat/LICENSE +++ /dev/null @@ -1,12 +0,0 @@ -Copyright (c) 2014, Hugh Kennedy -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - -3. Neither the name of the nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/build_vtk_bundle/node_modules/flat/README.md b/build_vtk_bundle/node_modules/flat/README.md deleted file mode 100644 index a036a9f2..00000000 --- a/build_vtk_bundle/node_modules/flat/README.md +++ /dev/null @@ -1,236 +0,0 @@ -# flat [![Build Status](https://secure.travis-ci.org/hughsk/flat.png?branch=master)](http://travis-ci.org/hughsk/flat) - -Take a nested Javascript object and flatten it, or unflatten an object with -delimited keys. - -## Installation - -``` bash -$ npm install flat -``` - -## Methods - -### flatten(original, options) - -Flattens the object - it'll return an object one level deep, regardless of how -nested the original object was: - -``` javascript -var flatten = require('flat') - -flatten({ - key1: { - keyA: 'valueI' - }, - key2: { - keyB: 'valueII' - }, - key3: { a: { b: { c: 2 } } } -}) - -// { -// 'key1.keyA': 'valueI', -// 'key2.keyB': 'valueII', -// 'key3.a.b.c': 2 -// } -``` - -### unflatten(original, options) - -Flattening is reversible too, you can call `flatten.unflatten()` on an object: - -``` javascript -var unflatten = require('flat').unflatten - -unflatten({ - 'three.levels.deep': 42, - 'three.levels': { - nested: true - } -}) - -// { -// three: { -// levels: { -// deep: 42, -// nested: true -// } -// } -// } -``` - -## Options - -### delimiter - -Use a custom delimiter for (un)flattening your objects, instead of `.`. - -### safe - -When enabled, both `flat` and `unflatten` will preserve arrays and their -contents. This is disabled by default. - -``` javascript -var flatten = require('flat') - -flatten({ - this: [ - { contains: 'arrays' }, - { preserving: { - them: 'for you' - }} - ] -}, { - safe: true -}) - -// { -// 'this': [ -// { contains: 'arrays' }, -// { preserving: { -// them: 'for you' -// }} -// ] -// } -``` - -### object - -When enabled, arrays will not be created automatically when calling unflatten, like so: - -``` javascript -unflatten({ - 'hello.you.0': 'ipsum', - 'hello.you.1': 'lorem', - 'hello.other.world': 'foo' -}, { object: true }) - -// hello: { -// you: { -// 0: 'ipsum', -// 1: 'lorem', -// }, -// other: { world: 'foo' } -// } -``` - -### overwrite - -When enabled, existing keys in the unflattened object may be overwritten if they cannot hold a newly encountered nested value: - -```javascript -unflatten({ - 'TRAVIS': 'true', - 'TRAVIS.DIR': '/home/travis/build/kvz/environmental' -}, { overwrite: true }) - -// TRAVIS: { -// DIR: '/home/travis/build/kvz/environmental' -// } -``` - -Without `overwrite` set to `true`, the `TRAVIS` key would already have been set to a string, thus could not accept the nested `DIR` element. - -This only makes sense on ordered arrays, and since we're overwriting data, should be used with care. - - -### maxDepth - -Maximum number of nested objects to flatten. - -``` javascript -var flatten = require('flat') - -flatten({ - key1: { - keyA: 'valueI' - }, - key2: { - keyB: 'valueII' - }, - key3: { a: { b: { c: 2 } } } -}, { maxDepth: 2 }) - -// { -// 'key1.keyA': 'valueI', -// 'key2.keyB': 'valueII', -// 'key3.a': { b: { c: 2 } } -// } -``` - -### transformKey - -Transform each part of a flat key before and after flattening. - -```javascript -var flatten = require('flat') -var unflatten = require('flat').unflatten - -flatten({ - key1: { - keyA: 'valueI' - }, - key2: { - keyB: 'valueII' - }, - key3: { a: { b: { c: 2 } } } -}, { - transformKey: function(key){ - return '__' + key + '__'; - } -}) - -// { -// '__key1__.__keyA__': 'valueI', -// '__key2__.__keyB__': 'valueII', -// '__key3__.__a__.__b__.__c__': 2 -// } - -unflatten({ - '__key1__.__keyA__': 'valueI', - '__key2__.__keyB__': 'valueII', - '__key3__.__a__.__b__.__c__': 2 -}, { - transformKey: function(key){ - return key.substring(2, key.length - 2) - } -}) - -// { -// key1: { -// keyA: 'valueI' -// }, -// key2: { -// keyB: 'valueII' -// }, -// key3: { a: { b: { c: 2 } } } -// } -``` - -## Command Line Usage - -`flat` is also available as a command line tool. You can run it with -[`npx`](https://ghub.io/npx): - -```sh -npx flat foo.json -``` - -Or install the `flat` command globally: - -```sh -npm i -g flat && flat foo.json -``` - -Accepts a filename as an argument: - -```sh -flat foo.json -``` - -Also accepts JSON on stdin: - -```sh -cat foo.json | flat -``` diff --git a/build_vtk_bundle/node_modules/flat/cli.js b/build_vtk_bundle/node_modules/flat/cli.js deleted file mode 100755 index e4f96b37..00000000 --- a/build_vtk_bundle/node_modules/flat/cli.js +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env node - -const fs = require('fs') -const path = require('path') -const readline = require('readline') - -const flat = require('./index') - -const filepath = process.argv.slice(2)[0] -if (filepath) { - // Read from file - const file = path.resolve(process.cwd(), filepath) - fs.accessSync(file, fs.constants.R_OK) // allow to throw if not readable - out(require(file)) -} else if (process.stdin.isTTY) { - usage(0) -} else { - // Read from newline-delimited STDIN - const lines = [] - readline.createInterface({ - input: process.stdin, - output: process.stdout, - terminal: false - }) - .on('line', line => lines.push(line)) - .on('close', () => out(JSON.parse(lines.join('\n')))) -} - -function out (data) { - process.stdout.write(JSON.stringify(flat(data), null, 2)) -} - -function usage (code) { - console.log(` -Usage: - -flat foo.json -cat foo.json | flat -`) - - process.exit(code || 0) -} diff --git a/build_vtk_bundle/node_modules/flat/index.js b/build_vtk_bundle/node_modules/flat/index.js deleted file mode 100644 index 2a5d7ca0..00000000 --- a/build_vtk_bundle/node_modules/flat/index.js +++ /dev/null @@ -1,158 +0,0 @@ -module.exports = flatten -flatten.flatten = flatten -flatten.unflatten = unflatten - -function isBuffer (obj) { - return obj && - obj.constructor && - (typeof obj.constructor.isBuffer === 'function') && - obj.constructor.isBuffer(obj) -} - -function keyIdentity (key) { - return key -} - -function flatten (target, opts) { - opts = opts || {} - - const delimiter = opts.delimiter || '.' - const maxDepth = opts.maxDepth - const transformKey = opts.transformKey || keyIdentity - const output = {} - - function step (object, prev, currentDepth) { - currentDepth = currentDepth || 1 - Object.keys(object).forEach(function (key) { - const value = object[key] - const isarray = opts.safe && Array.isArray(value) - const type = Object.prototype.toString.call(value) - const isbuffer = isBuffer(value) - const isobject = ( - type === '[object Object]' || - type === '[object Array]' - ) - - const newKey = prev - ? prev + delimiter + transformKey(key) - : transformKey(key) - - if (!isarray && !isbuffer && isobject && Object.keys(value).length && - (!opts.maxDepth || currentDepth < maxDepth)) { - return step(value, newKey, currentDepth + 1) - } - - output[newKey] = value - }) - } - - step(target) - - return output -} - -function unflatten (target, opts) { - opts = opts || {} - - const delimiter = opts.delimiter || '.' - const overwrite = opts.overwrite || false - const transformKey = opts.transformKey || keyIdentity - const result = {} - - const isbuffer = isBuffer(target) - if (isbuffer || Object.prototype.toString.call(target) !== '[object Object]') { - return target - } - - // safely ensure that the key is - // an integer. - function getkey (key) { - const parsedKey = Number(key) - - return ( - isNaN(parsedKey) || - key.indexOf('.') !== -1 || - opts.object - ) ? key - : parsedKey - } - - function addKeys (keyPrefix, recipient, target) { - return Object.keys(target).reduce(function (result, key) { - result[keyPrefix + delimiter + key] = target[key] - - return result - }, recipient) - } - - function isEmpty (val) { - const type = Object.prototype.toString.call(val) - const isArray = type === '[object Array]' - const isObject = type === '[object Object]' - - if (!val) { - return true - } else if (isArray) { - return !val.length - } else if (isObject) { - return !Object.keys(val).length - } - } - - target = Object.keys(target).reduce(function (result, key) { - const type = Object.prototype.toString.call(target[key]) - const isObject = (type === '[object Object]' || type === '[object Array]') - if (!isObject || isEmpty(target[key])) { - result[key] = target[key] - return result - } else { - return addKeys( - key, - result, - flatten(target[key], opts) - ) - } - }, {}) - - Object.keys(target).forEach(function (key) { - const split = key.split(delimiter).map(transformKey) - let key1 = getkey(split.shift()) - let key2 = getkey(split[0]) - let recipient = result - - while (key2 !== undefined) { - if (key1 === '__proto__') { - return - } - - const type = Object.prototype.toString.call(recipient[key1]) - const isobject = ( - type === '[object Object]' || - type === '[object Array]' - ) - - // do not write over falsey, non-undefined values if overwrite is false - if (!overwrite && !isobject && typeof recipient[key1] !== 'undefined') { - return - } - - if ((overwrite && !isobject) || (!overwrite && recipient[key1] == null)) { - recipient[key1] = ( - typeof key2 === 'number' && - !opts.object ? [] : {} - ) - } - - recipient = recipient[key1] - if (split.length > 0) { - key1 = getkey(split.shift()) - key2 = getkey(split[0]) - } - } - - // unflatten again for 'messy objects' - recipient[key1] = unflatten(target[key], opts) - }) - - return result -} diff --git a/build_vtk_bundle/node_modules/flat/package.json b/build_vtk_bundle/node_modules/flat/package.json deleted file mode 100644 index c2fbc963..00000000 --- a/build_vtk_bundle/node_modules/flat/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "flat", - "version": "5.0.2", - "main": "index.js", - "bin": "cli.js", - "scripts": { - "test": "mocha -u tdd --reporter spec && standard cli.js index.js test/index.js" - }, - "license": "BSD-3-Clause", - "description": "Take a nested Javascript object and flatten it, or unflatten an object with delimited keys", - "devDependencies": { - "mocha": "~8.1.1", - "standard": "^14.3.4" - }, - "directories": { - "test": "test" - }, - "dependencies": {}, - "repository": { - "type": "git", - "url": "git://github.com/hughsk/flat.git" - }, - "keywords": [ - "flat", - "json", - "flatten", - "unflatten", - "split", - "object", - "nested" - ], - "author": "Hugh Kennedy (http://hughskennedy.com)", - "bugs": { - "url": "https://github.com/hughsk/flat/issues" - }, - "homepage": "https://github.com/hughsk/flat" -} diff --git a/build_vtk_bundle/node_modules/flat/test/test.js b/build_vtk_bundle/node_modules/flat/test/test.js deleted file mode 100644 index 7f4ee3df..00000000 --- a/build_vtk_bundle/node_modules/flat/test/test.js +++ /dev/null @@ -1,643 +0,0 @@ -/* globals suite test */ - -const assert = require('assert') -const path = require('path') -const { exec } = require('child_process') -const pkg = require('../package.json') -const flat = require('../index') - -const flatten = flat.flatten -const unflatten = flat.unflatten - -const primitives = { - String: 'good morning', - Number: 1234.99, - Boolean: true, - Date: new Date(), - null: null, - undefined: undefined -} - -suite('Flatten Primitives', function () { - Object.keys(primitives).forEach(function (key) { - const value = primitives[key] - - test(key, function () { - assert.deepStrictEqual(flatten({ - hello: { - world: value - } - }), { - 'hello.world': value - }) - }) - }) -}) - -suite('Unflatten Primitives', function () { - Object.keys(primitives).forEach(function (key) { - const value = primitives[key] - - test(key, function () { - assert.deepStrictEqual(unflatten({ - 'hello.world': value - }), { - hello: { - world: value - } - }) - }) - }) -}) - -suite('Flatten', function () { - test('Nested once', function () { - assert.deepStrictEqual(flatten({ - hello: { - world: 'good morning' - } - }), { - 'hello.world': 'good morning' - }) - }) - - test('Nested twice', function () { - assert.deepStrictEqual(flatten({ - hello: { - world: { - again: 'good morning' - } - } - }), { - 'hello.world.again': 'good morning' - }) - }) - - test('Multiple Keys', function () { - assert.deepStrictEqual(flatten({ - hello: { - lorem: { - ipsum: 'again', - dolor: 'sit' - } - }, - world: { - lorem: { - ipsum: 'again', - dolor: 'sit' - } - } - }), { - 'hello.lorem.ipsum': 'again', - 'hello.lorem.dolor': 'sit', - 'world.lorem.ipsum': 'again', - 'world.lorem.dolor': 'sit' - }) - }) - - test('Custom Delimiter', function () { - assert.deepStrictEqual(flatten({ - hello: { - world: { - again: 'good morning' - } - } - }, { - delimiter: ':' - }), { - 'hello:world:again': 'good morning' - }) - }) - - test('Empty Objects', function () { - assert.deepStrictEqual(flatten({ - hello: { - empty: { - nested: {} - } - } - }), { - 'hello.empty.nested': {} - }) - }) - - if (typeof Buffer !== 'undefined') { - test('Buffer', function () { - assert.deepStrictEqual(flatten({ - hello: { - empty: { - nested: Buffer.from('test') - } - } - }), { - 'hello.empty.nested': Buffer.from('test') - }) - }) - } - - if (typeof Uint8Array !== 'undefined') { - test('typed arrays', function () { - assert.deepStrictEqual(flatten({ - hello: { - empty: { - nested: new Uint8Array([1, 2, 3, 4]) - } - } - }), { - 'hello.empty.nested': new Uint8Array([1, 2, 3, 4]) - }) - }) - } - - test('Custom Depth', function () { - assert.deepStrictEqual(flatten({ - hello: { - world: { - again: 'good morning' - } - }, - lorem: { - ipsum: { - dolor: 'good evening' - } - } - }, { - maxDepth: 2 - }), { - 'hello.world': { - again: 'good morning' - }, - 'lorem.ipsum': { - dolor: 'good evening' - } - }) - }) - - test('Transformed Keys', function () { - assert.deepStrictEqual(flatten({ - hello: { - world: { - again: 'good morning' - } - }, - lorem: { - ipsum: { - dolor: 'good evening' - } - } - }, { - transformKey: function (key) { - return '__' + key + '__' - } - }), { - '__hello__.__world__.__again__': 'good morning', - '__lorem__.__ipsum__.__dolor__': 'good evening' - }) - }) - - test('Should keep number in the left when object', function () { - assert.deepStrictEqual(flatten({ - hello: { - '0200': 'world', - '0500': 'darkness my old friend' - } - }), { - 'hello.0200': 'world', - 'hello.0500': 'darkness my old friend' - }) - }) -}) - -suite('Unflatten', function () { - test('Nested once', function () { - assert.deepStrictEqual({ - hello: { - world: 'good morning' - } - }, unflatten({ - 'hello.world': 'good morning' - })) - }) - - test('Nested twice', function () { - assert.deepStrictEqual({ - hello: { - world: { - again: 'good morning' - } - } - }, unflatten({ - 'hello.world.again': 'good morning' - })) - }) - - test('Multiple Keys', function () { - assert.deepStrictEqual({ - hello: { - lorem: { - ipsum: 'again', - dolor: 'sit' - } - }, - world: { - greet: 'hello', - lorem: { - ipsum: 'again', - dolor: 'sit' - } - } - }, unflatten({ - 'hello.lorem.ipsum': 'again', - 'hello.lorem.dolor': 'sit', - 'world.lorem.ipsum': 'again', - 'world.lorem.dolor': 'sit', - world: { greet: 'hello' } - })) - }) - - test('nested objects do not clobber each other when a.b inserted before a', function () { - const x = {} - x['foo.bar'] = { t: 123 } - x.foo = { p: 333 } - assert.deepStrictEqual(unflatten(x), { - foo: { - bar: { - t: 123 - }, - p: 333 - } - }) - }) - - test('Custom Delimiter', function () { - assert.deepStrictEqual({ - hello: { - world: { - again: 'good morning' - } - } - }, unflatten({ - 'hello world again': 'good morning' - }, { - delimiter: ' ' - })) - }) - - test('Overwrite', function () { - assert.deepStrictEqual({ - travis: { - build: { - dir: '/home/travis/build/kvz/environmental' - } - } - }, unflatten({ - travis: 'true', - travis_build_dir: '/home/travis/build/kvz/environmental' - }, { - delimiter: '_', - overwrite: true - })) - }) - - test('Transformed Keys', function () { - assert.deepStrictEqual(unflatten({ - '__hello__.__world__.__again__': 'good morning', - '__lorem__.__ipsum__.__dolor__': 'good evening' - }, { - transformKey: function (key) { - return key.substring(2, key.length - 2) - } - }), { - hello: { - world: { - again: 'good morning' - } - }, - lorem: { - ipsum: { - dolor: 'good evening' - } - } - }) - }) - - test('Messy', function () { - assert.deepStrictEqual({ - hello: { world: 'again' }, - lorem: { ipsum: 'another' }, - good: { - morning: { - hash: { - key: { - nested: { - deep: { - and: { - even: { - deeper: { still: 'hello' } - } - } - } - } - } - }, - again: { testing: { this: 'out' } } - } - } - }, unflatten({ - 'hello.world': 'again', - 'lorem.ipsum': 'another', - 'good.morning': { - 'hash.key': { - 'nested.deep': { - 'and.even.deeper.still': 'hello' - } - } - }, - 'good.morning.again': { - 'testing.this': 'out' - } - })) - }) - - suite('Overwrite + non-object values in key positions', function () { - test('non-object keys + overwrite should be overwritten', function () { - assert.deepStrictEqual(flat.unflatten({ a: null, 'a.b': 'c' }, { overwrite: true }), { a: { b: 'c' } }) - assert.deepStrictEqual(flat.unflatten({ a: 0, 'a.b': 'c' }, { overwrite: true }), { a: { b: 'c' } }) - assert.deepStrictEqual(flat.unflatten({ a: 1, 'a.b': 'c' }, { overwrite: true }), { a: { b: 'c' } }) - assert.deepStrictEqual(flat.unflatten({ a: '', 'a.b': 'c' }, { overwrite: true }), { a: { b: 'c' } }) - }) - - test('overwrite value should not affect undefined keys', function () { - assert.deepStrictEqual(flat.unflatten({ a: undefined, 'a.b': 'c' }, { overwrite: true }), { a: { b: 'c' } }) - assert.deepStrictEqual(flat.unflatten({ a: undefined, 'a.b': 'c' }, { overwrite: false }), { a: { b: 'c' } }) - }) - - test('if no overwrite, should ignore nested values under non-object key', function () { - assert.deepStrictEqual(flat.unflatten({ a: null, 'a.b': 'c' }), { a: null }) - assert.deepStrictEqual(flat.unflatten({ a: 0, 'a.b': 'c' }), { a: 0 }) - assert.deepStrictEqual(flat.unflatten({ a: 1, 'a.b': 'c' }), { a: 1 }) - assert.deepStrictEqual(flat.unflatten({ a: '', 'a.b': 'c' }), { a: '' }) - }) - }) - - suite('.safe', function () { - test('Should protect arrays when true', function () { - assert.deepStrictEqual(flatten({ - hello: [ - { world: { again: 'foo' } }, - { lorem: 'ipsum' } - ], - another: { - nested: [{ array: { too: 'deep' } }] - }, - lorem: { - ipsum: 'whoop' - } - }, { - safe: true - }), { - hello: [ - { world: { again: 'foo' } }, - { lorem: 'ipsum' } - ], - 'lorem.ipsum': 'whoop', - 'another.nested': [{ array: { too: 'deep' } }] - }) - }) - - test('Should not protect arrays when false', function () { - assert.deepStrictEqual(flatten({ - hello: [ - { world: { again: 'foo' } }, - { lorem: 'ipsum' } - ] - }, { - safe: false - }), { - 'hello.0.world.again': 'foo', - 'hello.1.lorem': 'ipsum' - }) - }) - - test('Empty objects should not be removed', function () { - assert.deepStrictEqual(unflatten({ - foo: [], - bar: {} - }), { foo: [], bar: {} }) - }) - }) - - suite('.object', function () { - test('Should create object instead of array when true', function () { - const unflattened = unflatten({ - 'hello.you.0': 'ipsum', - 'hello.you.1': 'lorem', - 'hello.other.world': 'foo' - }, { - object: true - }) - assert.deepStrictEqual({ - hello: { - you: { - 0: 'ipsum', - 1: 'lorem' - }, - other: { world: 'foo' } - } - }, unflattened) - assert(!Array.isArray(unflattened.hello.you)) - }) - - test('Should create object instead of array when nested', function () { - const unflattened = unflatten({ - hello: { - 'you.0': 'ipsum', - 'you.1': 'lorem', - 'other.world': 'foo' - } - }, { - object: true - }) - assert.deepStrictEqual({ - hello: { - you: { - 0: 'ipsum', - 1: 'lorem' - }, - other: { world: 'foo' } - } - }, unflattened) - assert(!Array.isArray(unflattened.hello.you)) - }) - - test('Should keep the zero in the left when object is true', function () { - const unflattened = unflatten({ - 'hello.0200': 'world', - 'hello.0500': 'darkness my old friend' - }, { - object: true - }) - - assert.deepStrictEqual({ - hello: { - '0200': 'world', - '0500': 'darkness my old friend' - } - }, unflattened) - }) - - test('Should not create object when false', function () { - const unflattened = unflatten({ - 'hello.you.0': 'ipsum', - 'hello.you.1': 'lorem', - 'hello.other.world': 'foo' - }, { - object: false - }) - assert.deepStrictEqual({ - hello: { - you: ['ipsum', 'lorem'], - other: { world: 'foo' } - } - }, unflattened) - assert(Array.isArray(unflattened.hello.you)) - }) - }) - - if (typeof Buffer !== 'undefined') { - test('Buffer', function () { - assert.deepStrictEqual(unflatten({ - 'hello.empty.nested': Buffer.from('test') - }), { - hello: { - empty: { - nested: Buffer.from('test') - } - } - }) - }) - } - - if (typeof Uint8Array !== 'undefined') { - test('typed arrays', function () { - assert.deepStrictEqual(unflatten({ - 'hello.empty.nested': new Uint8Array([1, 2, 3, 4]) - }), { - hello: { - empty: { - nested: new Uint8Array([1, 2, 3, 4]) - } - } - }) - }) - } - - test('should not pollute prototype', function () { - unflatten({ - '__proto__.polluted': true - }) - unflatten({ - 'prefix.__proto__.polluted': true - }) - unflatten({ - 'prefix.0.__proto__.polluted': true - }) - - assert.notStrictEqual({}.polluted, true) - }) -}) - -suite('Arrays', function () { - test('Should be able to flatten arrays properly', function () { - assert.deepStrictEqual({ - 'a.0': 'foo', - 'a.1': 'bar' - }, flatten({ - a: ['foo', 'bar'] - })) - }) - - test('Should be able to revert and reverse array serialization via unflatten', function () { - assert.deepStrictEqual({ - a: ['foo', 'bar'] - }, unflatten({ - 'a.0': 'foo', - 'a.1': 'bar' - })) - }) - - test('Array typed objects should be restored by unflatten', function () { - assert.strictEqual( - Object.prototype.toString.call(['foo', 'bar']) - , Object.prototype.toString.call(unflatten({ - 'a.0': 'foo', - 'a.1': 'bar' - }).a) - ) - }) - - test('Do not include keys with numbers inside them', function () { - assert.deepStrictEqual(unflatten({ - '1key.2_key': 'ok' - }), { - '1key': { - '2_key': 'ok' - } - }) - }) -}) - -suite('Order of Keys', function () { - test('Order of keys should not be changed after round trip flatten/unflatten', function () { - const obj = { - b: 1, - abc: { - c: [{ - d: 1, - bca: 1, - a: 1 - }] - }, - a: 1 - } - const result = unflatten( - flatten(obj) - ) - - assert.deepStrictEqual(Object.keys(obj), Object.keys(result)) - assert.deepStrictEqual(Object.keys(obj.abc), Object.keys(result.abc)) - assert.deepStrictEqual(Object.keys(obj.abc.c[0]), Object.keys(result.abc.c[0])) - }) -}) - -suite('CLI', function () { - test('can take filename', function (done) { - const cli = path.resolve(__dirname, '..', pkg.bin) - const pkgJSON = path.resolve(__dirname, '..', 'package.json') - exec(`${cli} ${pkgJSON}`, (err, stdout, stderr) => { - assert.ifError(err) - assert.strictEqual(stdout.trim(), JSON.stringify(flatten(pkg), null, 2)) - done() - }) - }) - - test('exits with usage if no file', function (done) { - const cli = path.resolve(__dirname, '..', pkg.bin) - const pkgJSON = path.resolve(__dirname, '..', 'package.json') - exec(`${cli} ${pkgJSON}`, (err, stdout, stderr) => { - assert.ifError(err) - assert.strictEqual(stdout.trim(), JSON.stringify(flatten(pkg), null, 2)) - done() - }) - }) - - test('can take piped file', function (done) { - const cli = path.resolve(__dirname, '..', pkg.bin) - const pkgJSON = path.resolve(__dirname, '..', 'package.json') - exec(`cat ${pkgJSON} | ${cli}`, (err, stdout, stderr) => { - assert.ifError(err) - assert.strictEqual(stdout.trim(), JSON.stringify(flatten(pkg), null, 2)) - done() - }) - }) -}) diff --git a/build_vtk_bundle/node_modules/fraction.js/CHANGELOG.md b/build_vtk_bundle/node_modules/fraction.js/CHANGELOG.md deleted file mode 100644 index ec492a7e..00000000 --- a/build_vtk_bundle/node_modules/fraction.js/CHANGELOG.md +++ /dev/null @@ -1,38 +0,0 @@ -# CHANGELOG - -v5.2.2 - - Improved documentation and removed unecessary check - -v5.2.1: - - 2bb7b05: Added negative sign check - -v5.2: - - 6f9d124: Implemented log and improved simplify - - b773e7a: Added named export to TS definition - - 70304f9: Fixed merge conflict - - 3b940d3: Implemented other comparing functions - - 10acdfc: Update README.md - - ba41d00: Update README.md - - 73ded97: Update README.md - - acabc39: Fixed param parsing - -v5.0.5: - - 2c9d4c2: Improved roundTo() and param parser - -v5.0.4: - - 39e61e7: Fixed bignum param passing - -v5.0.3: - - 7d9a3ec: Upgraded bundler for code quality - -v5.0.2: - - c64b1d6: fixed esm export - -v5.0.1: - - e440f9c: Fixed CJS export - - 9bbdd29: Fixed CJS export - -v5.0.0: - - ac7cd06: Fixed readme - - 33cc9e5: Added crude build - - 1adcc76: Release breaking v5.0. Fraction.js now builds on BigInt. The API stays the same as v4, except that the object attributes `n`, `d`, and `s`, are not Number but BigInt and may break code that directly accesses these attributes. \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/fraction.js/LICENSE b/build_vtk_bundle/node_modules/fraction.js/LICENSE deleted file mode 100644 index 8741015c..00000000 --- a/build_vtk_bundle/node_modules/fraction.js/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2025 Robert Eisele - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/fraction.js/README.md b/build_vtk_bundle/node_modules/fraction.js/README.md deleted file mode 100644 index e53343e8..00000000 --- a/build_vtk_bundle/node_modules/fraction.js/README.md +++ /dev/null @@ -1,520 +0,0 @@ -# Fraction.js - ℚ in JavaScript - -[![NPM Package](https://img.shields.io/npm/v/fraction.js.svg?style=flat)](https://npmjs.org/package/fraction.js "View this project on npm") -[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT) - -Do you find the limitations of floating-point arithmetic frustrating, especially when rational and irrational numbers like π or √2 are stored within the same finite precision? This can lead to avoidable inaccuracies such as: - -```javascript -1 / 98 * 98 // Results in 0.9999999999999999 -``` - -For applications requiring higher precision or where working with fractions is preferable, consider incorporating *Fraction.js* into your project. - -The library effectively addresses precision issues, as demonstrated below: - -```javascript -Fraction(1).div(98).mul(98) // Returns 1 -``` - -*Fraction.js* uses a `BigInt` representation for both the numerator and denominator, ensuring minimal performance overhead while maximizing accuracy. Its design is optimized for precision, making it an ideal choice as a foundational library for other math tools, such as [Polynomial.js](https://github.com/rawify/Polynomial.js) and [Math.js](https://github.com/josdejong/mathjs). - -## Convert Decimal to Fraction - -One of the core features of *Fraction.js* is its ability to seamlessly convert decimal numbers into fractions. - -```javascript -let x = new Fraction(1.88); -let res = x.toFraction(true); // Returns "1 22/25" as a string -``` - -This is particularly useful when you need precise fraction representations instead of dealing with the limitations of floating-point arithmetic. What if you allow some error tolerance? - -```javascript -let x = new Fraction(0.33333); -let res = x.simplify(0.001) // Error < 0.001 - .toFraction(); // Returns "1/3" as a string -``` - -## Precision - -As native `BigInt` support in JavaScript becomes more common, libraries like *Fraction.js* use it to handle calculations with higher precision. This improves the speed and accuracy of math operations with large numbers, providing a better solution for tasks that need more precision than floating-point numbers can offer. - -## Examples / Motivation - -A simple example of using *Fraction.js* might look like this: - -```javascript -var f = new Fraction("9.4'31'"); // 9.4313131313131... -f.mul([-4, 3]).mod("4.'8'"); // 4.88888888888888... -``` - -The result can then be displayed as: - -```javascript -console.log(f.toFraction()); // -4154 / 1485 -``` - -Additionally, you can access the internal attributes of the fraction, such as the sign (s), numerator (n), and denominator (d). Keep in mind that these values are stored as `BigInt`: - -```javascript -Number(f.s) * Number(f.n) / Number(f.d) = -1 * 4154 / 1485 = -2.797306... -``` - -If you attempted to calculate this manually using floating-point arithmetic, you'd get something like: - -```javascript -(9.4313131 * (-4 / 3)) % 4.888888 = -2.797308133... -``` - -While the result is reasonably close, it’s not as accurate as the fraction-based approach that *Fraction.js* provides, especially when dealing with repeating decimals or complex operations. This highlights the value of precision that the library brings. - -### Laplace Probability - -Here's a straightforward example of using *Fraction.js* to calculate probabilities. Let's determine the probability of rolling a specific outcome on a fair die: - -- **P({3})**: The probability of rolling a 3. -- **P({1, 4})**: The probability of rolling either 1 or 4. -- **P({2, 4, 6})**: The probability of rolling 2, 4, or 6. - -#### P({3}): - -```javascript -var p = new Fraction([3].length, 6).toString(); // "0.1(6)" -``` - -#### P({1, 4}): - -```javascript -var p = new Fraction([1, 4].length, 6).toString(); // "0.(3)" -``` - -#### P({2, 4, 6}): - -```javascript -var p = new Fraction([2, 4, 6].length, 6).toString(); // "0.5" -``` - -### Convert degrees/minutes/seconds to precise rational representation: - -57+45/60+17/3600 - -```javascript -var deg = 57; // 57° -var min = 45; // 45 Minutes -var sec = 17; // 17 Seconds - -new Fraction(deg).add(min, 60).add(sec, 3600).toString() // -> 57.7547(2) -``` - - -### Rational approximation of irrational numbers - -To approximate a number like *sqrt(5) - 2* with a numerator and denominator, you can reformat the equation as follows: *pow(n / d + 2, 2) = 5*. - -Then the following algorithm will generate the rational number besides the binary representation. - -```javascript -var x = "/", s = ""; - -var a = new Fraction(0), - b = new Fraction(1); -for (var n = 0; n <= 10; n++) { - - var c = a.add(b).div(2); - - console.log(n + "\t" + a + "\t" + b + "\t" + c + "\t" + x); - - if (c.add(2).pow(2).valueOf() < 5) { - a = c; - x = "1"; - } else { - b = c; - x = "0"; - } - s+= x; -} -console.log(s) -``` - -The result is - -``` -n a[n] b[n] c[n] x[n] -0 0/1 1/1 1/2 / -1 0/1 1/2 1/4 0 -2 0/1 1/4 1/8 0 -3 1/8 1/4 3/16 1 -4 3/16 1/4 7/32 1 -5 7/32 1/4 15/64 1 -6 15/64 1/4 31/128 1 -7 15/64 31/128 61/256 0 -8 15/64 61/256 121/512 0 -9 15/64 121/512 241/1024 0 -10 241/1024 121/512 483/2048 1 -``` - -Thus the approximation after 11 iterations of the bisection method is *483 / 2048* and the binary representation is 0.00111100011 (see [WolframAlpha](http://www.wolframalpha.com/input/?i=sqrt%285%29-2+binary)) - -I published another example on how to approximate PI with fraction.js on my [blog](https://raw.org/article/rational-numbers-in-javascript/) (Still not the best idea to approximate irrational numbers, but it illustrates the capabilities of Fraction.js perfectly). - - -### Get the exact fractional part of a number - -```javascript -var f = new Fraction("-6.(3416)"); -console.log(f.mod(1).abs().toFraction()); // = 3416/9999 -``` - -### Mathematical correct modulo - -The behaviour on negative congruences is different to most modulo implementations in computer science. Even the *mod()* function of Fraction.js behaves in the typical way. To solve the problem of having the mathematical correct modulo with Fraction.js you could come up with this: - -```javascript -var a = -1; -var b = 10.99; - -console.log(new Fraction(a) - .mod(b)); // Not correct, usual Modulo - -console.log(new Fraction(a) - .mod(b).add(b).mod(b)); // Correct! Mathematical Modulo -``` - -fmod() imprecision circumvented ---- -It turns out that Fraction.js outperforms almost any fmod() implementation, including JavaScript itself, [php.js](http://phpjs.org/functions/fmod/), C++, Python, Java and even Wolframalpha due to the fact that numbers like 0.05, 0.1, ... are infinite decimal in base 2. - -The equation *fmod(4.55, 0.05)* gives *0.04999999999999957*, wolframalpha says *1/20*. The correct answer should be **zero**, as 0.05 divides 4.55 without any remainder. - - -## Parser - -Any function (see below) as well as the constructor of the *Fraction* class parses its input and reduce it to the smallest term. - -You can pass either Arrays, Objects, Integers, Doubles or Strings. - -### Arrays / Objects - -```javascript -new Fraction(numerator, denominator); -new Fraction([numerator, denominator]); -new Fraction({n: numerator, d: denominator}); -``` - -### Integers - -```javascript -new Fraction(123); -``` - -### Doubles - -```javascript -new Fraction(55.4); -``` - -**Note:** If you pass a double as it is, Fraction.js will perform a number analysis based on Farey Sequences. If you concern performance, cache Fraction.js objects and pass arrays/objects. - -The method is really precise, but too large exact numbers, like 1234567.9991829 will result in a wrong approximation. If you want to keep the number as it is, convert it to a string, as the string parser will not perform any further observations. If you have problems with the approximation, in the file `examples/approx.js` is a different approximation algorithm, which might work better in some more specific use-cases. - - -### Strings - -```javascript -new Fraction("123.45"); -new Fraction("123/45"); // A rational number represented as two decimals, separated by a slash -new Fraction("123:45"); // A rational number represented as two decimals, separated by a colon -new Fraction("4 123/45"); // A rational number represented as a whole number and a fraction -new Fraction("123.'456'"); // Note the quotes, see below! -new Fraction("123.(456)"); // Note the brackets, see below! -new Fraction("123.45'6'"); // Note the quotes, see below! -new Fraction("123.45(6)"); // Note the brackets, see below! -``` - -### Two arguments - -```javascript -new Fraction(3, 2); // 3/2 = 1.5 -``` - -### Repeating decimal places - -*Fraction.js* can easily handle repeating decimal places. For example *1/3* is *0.3333...*. There is only one repeating digit. As you can see in the examples above, you can pass a number like *1/3* as "0.'3'" or "0.(3)", which are synonym. There are no tests to parse something like 0.166666666 to 1/6! If you really want to handle this number, wrap around brackets on your own with the function below for example: 0.1(66666666) - -Assume you want to divide 123.32 / 33.6(567). [WolframAlpha](http://www.wolframalpha.com/input/?i=123.32+%2F+%2812453%2F370%29) states that you'll get a period of 1776 digits. *Fraction.js* comes to the same result. Give it a try: - -```javascript -var f = new Fraction("123.32"); -console.log("Bam: " + f.div("33.6(567)")); -``` - -To automatically make a number like "0.123123123" to something more Fraction.js friendly like "0.(123)", I hacked this little brute force algorithm in a 10 minutes. Improvements are welcome... - -```javascript -function formatDecimal(str) { - - var comma, pre, offset, pad, times, repeat; - - if (-1 === (comma = str.indexOf("."))) - return str; - - pre = str.substr(0, comma + 1); - str = str.substr(comma + 1); - - for (var i = 0; i < str.length; i++) { - - offset = str.substr(0, i); - - for (var j = 0; j < 5; j++) { - - pad = str.substr(i, j + 1); - - times = Math.ceil((str.length - offset.length) / pad.length); - - repeat = new Array(times + 1).join(pad); // Silly String.repeat hack - - if (0 === (offset + repeat).indexOf(str)) { - return pre + offset + "(" + pad + ")"; - } - } - } - return null; -} - -var f, x = formatDecimal("13.0123123123"); // = 13.0(123) -if (x !== null) { - f = new Fraction(x); -} -``` - -## Attributes - - -The Fraction object allows direct access to the numerator, denominator and sign attributes. It is ensured that only the sign-attribute holds sign information so that a sign comparison is only necessary against this attribute. - -```javascript -var f = new Fraction('-1/2'); -console.log(f.n); // Numerator: 1 -console.log(f.d); // Denominator: 2 -console.log(f.s); // Sign: -1 -``` - - -## Functions - -### Fraction abs() - -Returns the actual number without any sign information - -### Fraction neg() - -Returns the actual number with flipped sign in order to get the additive inverse - -### Fraction add(n) - -Returns the sum of the actual number and the parameter n - -### Fraction sub(n) - -Returns the difference of the actual number and the parameter n - -### Fraction mul(n) - -Returns the product of the actual number and the parameter n - -### Fraction div(n) - -Returns the quotient of the actual number and the parameter n - -### Fraction pow(exp) - -Returns the power of the actual number, raised to an possible rational exponent. If the result becomes non-rational the function returns `null`. - -### Fraction log(base) - -Returns the logarithm of the actual number to a given rational base. If the result becomes non-rational the function returns `null`. - -### Fraction mod(n) - -Returns the modulus (rest of the division) of the actual object and n (this % n). It's a much more precise [fmod()](#fmod-impreciseness-circumvented) if you like. Please note that *mod()* is just like the modulo operator of most programming languages. If you want a mathematical correct modulo, see [here](#mathematical-correct-modulo). - -### Fraction mod() - -Returns the modulus (rest of the division) of the actual object (numerator mod denominator) - -### Fraction gcd(n) - -Returns the fractional greatest common divisor - -### Fraction lcm(n) - -Returns the fractional least common multiple - -### Fraction ceil([places=0-16]) - -Returns the ceiling of a rational number with Math.ceil - -### Fraction floor([places=0-16]) - -Returns the floor of a rational number with Math.floor - -### Fraction round([places=0-16]) - -Returns the rational number rounded with Math.round - -### Fraction roundTo(multiple) - -Rounds a fraction to the closest multiple of another fraction. - -### Fraction inverse() - -Returns the multiplicative inverse of the actual number (n / d becomes d / n) in order to get the reciprocal - -### Fraction simplify([eps=0.001]) - -Simplifies the rational number under a certain error threshold. Ex. `0.333` will be `1/3` with `eps=0.001` - -### boolean equals(n) - -Check if two rational numbers are equal - -### boolean lt(n) - -Check if this rational number is less than another - -### boolean lte(n) - -Check if this rational number is less than or equal another - -### boolean gt(n) - -Check if this rational number is greater than another - -### boolean gte(n) - -Check if this rational number is greater than or equal another - -### int compare(n) - -Compare two numbers. -``` -result < 0: n is greater than actual number -result > 0: n is smaller than actual number -result = 0: n is equal to the actual number -``` - -### boolean divisible(n) - -Check if two numbers are divisible (n divides this) - -### double valueOf() - -Returns a decimal representation of the fraction - -### String toString([decimalPlaces=15]) - -Generates an exact string representation of the given object. For repeating decimal places, digits within repeating cycles are enclosed in parentheses, e.g., `1/3 = "0.(3)"`. For other numbers, the string will include up to the specified `decimalPlaces` significant digits, including any trailing zeros if truncation occurs. For example, `1/2` will be represented as `"0.5"`, without additional trailing zeros. - -**Note:** Since both `valueOf()` and `toString()` are provided, `toString()` will only be invoked implicitly when the object is used in a string context. For instance, when using the plus operator like `"123" + new Fraction`, `valueOf()` will be called first, as JavaScript attempts to combine primitives before concatenating them, with the string type taking precedence. However, `alert(new Fraction)` or `String(new Fraction)` will behave as expected. To ensure specific behavior, explicitly call either `toString()` or `valueOf()`. - -### String toLatex(showMixed=false) - -Generates an exact LaTeX representation of the actual object. You can see a [live demo](https://raw.org/article/rational-numbers-in-javascript/) on my blog. - -The optional boolean parameter indicates if you want to show the a mixed fraction. "1 1/3" instead of "4/3" - -### String toFraction(showMixed=false) - -Gets a string representation of the fraction - -The optional boolean parameter indicates if you want to showa mixed fraction. "1 1/3" instead of "4/3" - -### Array toContinued() - -Gets an array of the fraction represented as a continued fraction. The first element always contains the whole part. - -```javascript -var f = new Fraction('88/33'); -var c = f.toContinued(); // [2, 1, 2] -``` - -### Fraction clone() - -Creates a copy of the actual Fraction object - - -## Exceptions - -If a really hard error occurs (parsing error, division by zero), *Fraction.js* throws exceptions! Please make sure you handle them correctly. - - -## Installation - -You can install `Fraction.js` via npm: - -```bash -npm install fraction.js -``` - -Or with yarn: - -```bash -yarn add fraction.js -``` - -Alternatively, download or clone the repository: - -```bash -git clone https://github.com/rawify/Fraction.js -``` - -## Usage - -Include the `fraction.min.js` file in your project: - -```html - - -``` - -Or in a Node.js project: - -```javascript -const Fraction = require('fraction.js'); -``` - -or - -```javascript -import Fraction from 'fraction.js'; -``` - - -## Coding Style - -As every library I publish, Fraction.js is also built to be as small as possible after compressing it with Google Closure Compiler in advanced mode. Thus the coding style orientates a little on maxing-out the compression rate. Please make sure you keep this style if you plan to extend the library. - -## Building the library - -After cloning the Git repository run: - -```bash -npm install -npm run build -``` - -## Run a test - -Testing the source against the shipped test suite is as easy as - -```bash -npm run test -``` - -## Copyright and Licensing - -Copyright (c) 2025, [Robert Eisele](https://raw.org/) -Licensed under the MIT license. diff --git a/build_vtk_bundle/node_modules/fraction.js/examples/angles.js b/build_vtk_bundle/node_modules/fraction.js/examples/angles.js deleted file mode 100644 index 436947e9..00000000 --- a/build_vtk_bundle/node_modules/fraction.js/examples/angles.js +++ /dev/null @@ -1,26 +0,0 @@ -/* -Fraction.js v5.0.0 10/1/2024 -https://raw.org/article/rational-numbers-in-javascript/ - -Copyright (c) 2024, Robert Eisele (https://raw.org/) -Licensed under the MIT license. -*/ - -// This example generates a list of angles with human readable radians - -var Fraction = require('fraction.js'); - -var tab = []; -for (var d = 1; d <= 360; d++) { - - var pi = Fraction(2, 360).mul(d); - var tau = Fraction(1, 360).mul(d); - - if (pi.d <= 6n && pi.d != 5n) - tab.push([ - d, - pi.toFraction() + "pi", - tau.toFraction() + "tau"]); -} - -console.table(tab); diff --git a/build_vtk_bundle/node_modules/fraction.js/examples/approx.js b/build_vtk_bundle/node_modules/fraction.js/examples/approx.js deleted file mode 100644 index 36aa030d..00000000 --- a/build_vtk_bundle/node_modules/fraction.js/examples/approx.js +++ /dev/null @@ -1,54 +0,0 @@ -/* -Fraction.js v5.0.0 10/1/2024 -https://raw.org/article/rational-numbers-in-javascript/ - -Copyright (c) 2024, Robert Eisele (https://raw.org/) -Licensed under the MIT license. -*/ -const Fraction = require('fraction.js'); - -// Another rational approximation, not using Farey Sequences but Binary Search using the mediant -function approximate(p, precision) { - - var num1 = Math.floor(p); - var den1 = 1; - - var num2 = num1 + 1; - var den2 = 1; - - if (p !== num1) { - - while (den1 <= precision && den2 <= precision) { - - var m = (num1 + num2) / (den1 + den2); - - if (p === m) { - - if (den1 + den2 <= precision) { - den1 += den2; - num1 += num2; - den2 = precision + 1; - } else if (den1 > den2) { - den2 = precision + 1; - } else { - den1 = precision + 1; - } - break; - - } else if (p < m) { - num2 += num1; - den2 += den1; - } else { - num1 += num2; - den1 += den2; - } - } - } - - if (den1 > precision) { - den1 = den2; - num1 = num2; - } - return new Fraction(num1, den1); -} - diff --git a/build_vtk_bundle/node_modules/fraction.js/examples/egyptian.js b/build_vtk_bundle/node_modules/fraction.js/examples/egyptian.js deleted file mode 100644 index 66fc209f..00000000 --- a/build_vtk_bundle/node_modules/fraction.js/examples/egyptian.js +++ /dev/null @@ -1,24 +0,0 @@ -/* -Fraction.js v5.0.0 10/1/2024 -https://raw.org/article/rational-numbers-in-javascript/ - -Copyright (c) 2024, Robert Eisele (https://raw.org/) -Licensed under the MIT license. -*/ -const Fraction = require('fraction.js'); - -// Based on http://www.maths.surrey.ac.uk/hosted-sites/R.Knott/Fractions/egyptian.html -function egyptian(a, b) { - - var res = []; - - do { - var t = Math.ceil(b / a); - var x = new Fraction(a, b).sub(1, t); - res.push(t); - a = Number(x.n); - b = Number(x.d); - } while (a !== 0n); - return res; -} -console.log("1 / " + egyptian(521, 1050).join(" + 1 / ")); diff --git a/build_vtk_bundle/node_modules/fraction.js/examples/hesse-convergence.js b/build_vtk_bundle/node_modules/fraction.js/examples/hesse-convergence.js deleted file mode 100644 index c33a58be..00000000 --- a/build_vtk_bundle/node_modules/fraction.js/examples/hesse-convergence.js +++ /dev/null @@ -1,111 +0,0 @@ -/* -Fraction.js v5.0.0 10/1/2024 -https://raw.org/article/rational-numbers-in-javascript/ - -Copyright (c) 2024, Robert Eisele (https://raw.org/) -Licensed under the MIT license. -*/ -const Fraction = require('fraction.js'); - -/* -We have the polynom f(x) = 1/3x_1^2 + x_2^2 + x_1 * x_2 + 3 - -The gradient of f(x): - -grad(x) = | x_1^2+x_2 | - | 2x_2+x_1 | - -And thus the Hesse-Matrix H: -| 2x_1 1 | -| 1 2 | - -The inverse Hesse-Matrix H^-1 is -| -2 / (1-4x_1) 1 / (1 - 4x_1) | -| 1 / (1 - 4x_1) -2x_1 / (1 - 4x_1) | - -We now want to find lim ->oo x[n], with the starting element of (3 2)^T - -*/ - -// Get the Hesse Matrix -function H(x) { - - var z = Fraction(1).sub(Fraction(4).mul(x[0])); - - return [ - Fraction(-2).div(z), - Fraction(1).div(z), - Fraction(1).div(z), - Fraction(-2).mul(x[0]).div(z), - ]; -} - -// Get the gradient of f(x) -function grad(x) { - - return [ - Fraction(x[0]).mul(x[0]).add(x[1]), - Fraction(2).mul(x[1]).add(x[0]) - ]; -} - -// A simple matrix multiplication helper -function matrMult(m, v) { - - return [ - Fraction(m[0]).mul(v[0]).add(Fraction(m[1]).mul(v[1])), - Fraction(m[2]).mul(v[0]).add(Fraction(m[3]).mul(v[1])) - ]; -} - -// A simple vector subtraction helper -function vecSub(a, b) { - - return [ - Fraction(a[0]).sub(b[0]), - Fraction(a[1]).sub(b[1]) - ]; -} - -// Main function, gets a vector and the actual index -function run(V, j) { - - var t = H(V); - //console.log("H(X)"); - for (var i in t) { - - // console.log(t[i].toFraction()); - } - - var s = grad(V); - //console.log("vf(X)"); - for (var i in s) { - - // console.log(s[i].toFraction()); - } - - //console.log("multiplication"); - var r = matrMult(t, s); - for (var i in r) { - - // console.log(r[i].toFraction()); - } - - var R = (vecSub(V, r)); - - console.log("X" + j); - console.log(R[0].toFraction(), "= " + R[0].valueOf()); - console.log(R[1].toFraction(), "= " + R[1].valueOf()); - console.log("\n"); - - return R; -} - - -// Set the starting vector -var v = [3, 2]; - -for (var i = 0; i < 15; i++) { - - v = run(v, i); -} diff --git a/build_vtk_bundle/node_modules/fraction.js/examples/integrate.js b/build_vtk_bundle/node_modules/fraction.js/examples/integrate.js deleted file mode 100644 index 6376aed4..00000000 --- a/build_vtk_bundle/node_modules/fraction.js/examples/integrate.js +++ /dev/null @@ -1,67 +0,0 @@ -/* -Fraction.js v5.0.0 10/1/2024 -https://raw.org/article/rational-numbers-in-javascript/ - -Copyright (c) 2024, Robert Eisele (https://raw.org/) -Licensed under the MIT license. -*/ -const Fraction = require('fraction.js'); - -// NOTE: This is a nice example, but a stable version of this is served with Polynomial.js: -// https://github.com/rawify/Polynomial.js - -function integrate(poly) { - - poly = poly.replace(/\s+/g, ""); - - var regex = /(\([+-]?[0-9/]+\)|[+-]?[0-9/]+)x(?:\^(\([+-]?[0-9/]+\)|[+-]?[0-9]+))?/g; - var arr; - var res = {}; - while (null !== (arr = regex.exec(poly))) { - - var a = (arr[1] || "1").replace("(", "").replace(")", "").split("/"); - var b = (arr[2] || "1").replace("(", "").replace(")", "").split("/"); - - var exp = new Fraction(b).add(1); - var key = "" + exp; - - if (res[key] !== undefined) { - res[key] = { x: new Fraction(a).div(exp).add(res[key].x), e: exp }; - } else { - res[key] = { x: new Fraction(a).div(exp), e: exp }; - } - } - - var str = ""; - var c = 0; - for (var i in res) { - if (res[i].x.s !== -1n && c > 0) { - str += "+"; - } else if (res[i].x.s === -1n) { - str += "-"; - } - if (res[i].x.n !== res[i].x.d) { - if (res[i].x.d !== 1n) { - str += res[i].x.n + "/" + res[i].x.d; - } else { - str += res[i].x.n; - } - } - str += "x"; - if (res[i].e.n !== res[i].e.d) { - str += "^"; - if (res[i].e.d !== 1n) { - str += "(" + res[i].e.n + "/" + res[i].e.d + ")"; - } else { - str += res[i].e.n; - } - } - c++; - } - return str; -} - -var poly = "-2/3x^3-2x^2+3x+8x^3-1/3x^(4/8)"; - -console.log("f(x): " + poly); -console.log("F(x): " + integrate(poly)); diff --git a/build_vtk_bundle/node_modules/fraction.js/examples/ratio-chain.js b/build_vtk_bundle/node_modules/fraction.js/examples/ratio-chain.js deleted file mode 100644 index fab78762..00000000 --- a/build_vtk_bundle/node_modules/fraction.js/examples/ratio-chain.js +++ /dev/null @@ -1,24 +0,0 @@ -/* -Given the ratio a : b : c = 2 : 3 : 4 -What is c, given a = 40? - -A general ratio chain is a_1 : a_2 : a_3 : ... : a_n = r_1 : r2 : r_3 : ... : r_n. -Now each term can be expressed as a_i = r_i * x for some unknown proportional constant x. -If a_k is known it follows that x = a_k / r_k. Substituting x into the first equation yields -a_i = r_i / r_k * a_k. - -Given an array r and a given value a_k, the following function calculates all a_i: -*/ - -function calculateRatios(r, a_k, k) { - const x = Fraction(a_k).div(r[k]); - return r.map(r_i => x.mul(r_i)); -} - -// Example usage: -const r = [2, 3, 4]; // Ratio array representing a : b : c = 2 : 3 : 4 -const a_k = 40; // Given value of a (corresponding to r[0]) -const k = 0; // Index of the known value (a corresponds to r[0]) - -const result = calculateRatios(r, a_k, k); -console.log(result); // Output: [40, 60, 80] diff --git a/build_vtk_bundle/node_modules/fraction.js/examples/rational-pow.js b/build_vtk_bundle/node_modules/fraction.js/examples/rational-pow.js deleted file mode 100644 index 1268e274..00000000 --- a/build_vtk_bundle/node_modules/fraction.js/examples/rational-pow.js +++ /dev/null @@ -1,29 +0,0 @@ -/* -Fraction.js v5.0.0 10/1/2024 -https://raw.org/article/rational-numbers-in-javascript/ - -Copyright (c) 2024, Robert Eisele (https://raw.org/) -Licensed under the MIT license. -*/ -const Fraction = require('fraction.js'); - -// Calculates (a/b)^(c/d) if result is rational -// Derivation: https://raw.org/book/analysis/rational-numbers/ -function root(a, b, c, d) { - - // Initial estimate - let x = Fraction(100 * (Math.floor(Math.pow(a / b, c / d)) || 1), 100); - const abc = Fraction(a, b).pow(c); - - for (let i = 0; i < 30; i++) { - const n = abc.mul(x.pow(1 - d)).sub(x).div(d).add(x) - - if (x.n === n.n && x.d === n.d) { - return n; - } - x = n; - } - return null; -} - -root(18, 2, 1, 2); // 3/1 diff --git a/build_vtk_bundle/node_modules/fraction.js/examples/tape-measure.js b/build_vtk_bundle/node_modules/fraction.js/examples/tape-measure.js deleted file mode 100644 index 14ec524b..00000000 --- a/build_vtk_bundle/node_modules/fraction.js/examples/tape-measure.js +++ /dev/null @@ -1,16 +0,0 @@ -/* -Fraction.js v5.0.0 10/1/2024 -https://raw.org/article/rational-numbers-in-javascript/ - -Copyright (c) 2024, Robert Eisele (https://raw.org/) -Licensed under the MIT license. -*/ -const Fraction = require('fraction.js'); - -function closestTapeMeasure(frac) { - - // A tape measure is usually divided in parts of 1/16 - - return Fraction(frac).roundTo("1/16"); -} -console.log(closestTapeMeasure("1/3")); // 5/16 diff --git a/build_vtk_bundle/node_modules/fraction.js/examples/toFraction.js b/build_vtk_bundle/node_modules/fraction.js/examples/toFraction.js deleted file mode 100644 index f935e473..00000000 --- a/build_vtk_bundle/node_modules/fraction.js/examples/toFraction.js +++ /dev/null @@ -1,35 +0,0 @@ -/* -Fraction.js v5.0.0 10/1/2024 -https://raw.org/article/rational-numbers-in-javascript/ - -Copyright (c) 2024, Robert Eisele (https://raw.org/) -Licensed under the MIT license. -*/ - -const Fraction = require('fraction.js'); - -function toFraction(frac) { - - var map = { - '1:4': "¼", - '1:2': "½", - '3:4': "¾", - '1:7': "⅐", - '1:9': "⅑", - '1:10': "⅒", - '1:3': "⅓", - '2:3': "⅔", - '1:5': "⅕", - '2:5': "⅖", - '3:5': "⅗", - '4:5': "⅘", - '1:6': "⅙", - '5:6': "⅚", - '1:8': "⅛", - '3:8': "⅜", - '5:8': "⅝", - '7:8': "⅞" - }; - return map[frac.n + ":" + frac.d] || frac.toFraction(false); -} -console.log(toFraction(Fraction(0.25))); // ¼ diff --git a/build_vtk_bundle/node_modules/fraction.js/examples/valueOfPi.js b/build_vtk_bundle/node_modules/fraction.js/examples/valueOfPi.js deleted file mode 100644 index 8fc877eb..00000000 --- a/build_vtk_bundle/node_modules/fraction.js/examples/valueOfPi.js +++ /dev/null @@ -1,42 +0,0 @@ -/* -Fraction.js v5.0.0 10/1/2024 -https://raw.org/article/rational-numbers-in-javascript/ - -Copyright (c) 2024, Robert Eisele (https://raw.org/) -Licensed under the MIT license. -*/ - -var Fraction = require("fraction.js") - -function valueOfPi(val) { - - let minLen = Infinity, minI = 0, min = null; - const choose = [val, val * Math.PI, val / Math.PI]; - for (let i = 0; i < choose.length; i++) { - let el = new Fraction(choose[i]).simplify(1e-13); - let len = Math.log(Number(el.n) + 1) + Math.log(Number(el.d)); - if (len < minLen) { - minLen = len; - minI = i; - min = el; - } - } - - if (minI == 2) { - return min.toFraction().replace(/(\d+)(\/\d+)?/, (_, p, q) => - (p == "1" ? "" : p) + "π" + (q || "")); - } - - if (minI == 1) { - return min.toFraction().replace(/(\d+)(\/\d+)?/, (_, p, q) => - p + (!q ? "/π" : "/(" + q.slice(1) + "π)")); - } - return min.toFraction(); -} - -console.log(valueOfPi(-3)); // -3 -console.log(valueOfPi(4 * Math.PI)); // 4π -console.log(valueOfPi(3.14)); // 157/50 -console.log(valueOfPi(3 / 2 * Math.PI)); // 3π/2 -console.log(valueOfPi(Math.PI / 2)); // π/2 -console.log(valueOfPi(-1 / (2 * Math.PI))); // -1/(2π) diff --git a/build_vtk_bundle/node_modules/fraction.js/fraction.d.mts b/build_vtk_bundle/node_modules/fraction.js/fraction.d.mts deleted file mode 100644 index 0604ad7f..00000000 --- a/build_vtk_bundle/node_modules/fraction.js/fraction.d.mts +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Interface representing a fraction with numerator and denominator. - */ -export interface NumeratorDenominator { - n: number | bigint; - d: number | bigint; -} - -/** - * Type for handling multiple types of input for Fraction operations. - */ -export type FractionInput = - | Fraction - | number - | bigint - | string - | [number | bigint | string, number | bigint | string] - | NumeratorDenominator; - -/** - * Function signature for Fraction operations like add, sub, mul, etc. - */ -export type FractionParam = { - (numerator: number | bigint, denominator: number | bigint): Fraction; - (num: FractionInput): Fraction; -}; - -/** - * Fraction class representing a rational number with numerator and denominator. - */ -declare class Fraction { - constructor(); - constructor(num: FractionInput); - constructor(numerator: number | bigint, denominator: number | bigint); - - s: bigint; - n: bigint; - d: bigint; - - abs(): Fraction; - neg(): Fraction; - - add: FractionParam; - sub: FractionParam; - mul: FractionParam; - div: FractionParam; - pow: FractionParam; - log: FractionParam; - gcd: FractionParam; - lcm: FractionParam; - - mod(): Fraction; - mod(num: FractionInput): Fraction; - - ceil(places?: number): Fraction; - floor(places?: number): Fraction; - round(places?: number): Fraction; - roundTo: FractionParam; - - inverse(): Fraction; - simplify(eps?: number): Fraction; - - equals(num: FractionInput): boolean; - lt(num: FractionInput): boolean; - lte(num: FractionInput): boolean; - gt(num: FractionInput): boolean; - gte(num: FractionInput): boolean; - compare(num: FractionInput): number; - divisible(num: FractionInput): boolean; - - valueOf(): number; - toString(decimalPlaces?: number): string; - toLatex(showMixed?: boolean): string; - toFraction(showMixed?: boolean): string; - toContinued(): bigint[]; - clone(): Fraction; -} - -export { Fraction as default, Fraction }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/fraction.js/fraction.d.ts b/build_vtk_bundle/node_modules/fraction.js/fraction.d.ts deleted file mode 100644 index 97222b90..00000000 --- a/build_vtk_bundle/node_modules/fraction.js/fraction.d.ts +++ /dev/null @@ -1,79 +0,0 @@ -declare class Fraction { - constructor(); - constructor(num: Fraction.FractionInput); - constructor(numerator: number | bigint, denominator: number | bigint); - - s: bigint; - n: bigint; - d: bigint; - - abs(): Fraction; - neg(): Fraction; - - add: Fraction.FractionParam; - sub: Fraction.FractionParam; - mul: Fraction.FractionParam; - div: Fraction.FractionParam; - pow: Fraction.FractionParam; - log: Fraction.FractionParam; - gcd: Fraction.FractionParam; - lcm: Fraction.FractionParam; - - mod(): Fraction; - mod(num: Fraction.FractionInput): Fraction; - - ceil(places?: number): Fraction; - floor(places?: number): Fraction; - round(places?: number): Fraction; - roundTo: Fraction.FractionParam; - - inverse(): Fraction; - simplify(eps?: number): Fraction; - - equals(num: Fraction.FractionInput): boolean; - lt(num: Fraction.FractionInput): boolean; - lte(num: Fraction.FractionInput): boolean; - gt(num: Fraction.FractionInput): boolean; - gte(num: Fraction.FractionInput): boolean; - compare(num: Fraction.FractionInput): number; - divisible(num: Fraction.FractionInput): boolean; - - valueOf(): number; - toString(decimalPlaces?: number): string; - toLatex(showMixed?: boolean): string; - toFraction(showMixed?: boolean): string; - toContinued(): bigint[]; - clone(): Fraction; - - static default: typeof Fraction; - static Fraction: typeof Fraction; -} - -declare namespace Fraction { - interface NumeratorDenominator { n: number | bigint; d: number | bigint; } - type FractionInput = - | Fraction - | number - | bigint - | string - | [number | bigint | string, number | bigint | string] - | NumeratorDenominator; - - type FractionParam = { - (numerator: number | bigint, denominator: number | bigint): Fraction; - (num: FractionInput): Fraction; - }; -} - -/** - * Export matches CJS runtime: - * module.exports = Fraction; - * module.exports.default = Fraction; - * module.exports.Fraction = Fraction; - */ -declare const FractionExport: typeof Fraction & { - default: typeof Fraction; - Fraction: typeof Fraction; -}; - -export = FractionExport; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/fraction.js/package.json b/build_vtk_bundle/node_modules/fraction.js/package.json deleted file mode 100644 index 03f7986b..00000000 --- a/build_vtk_bundle/node_modules/fraction.js/package.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "name": "fraction.js", - "title": "Fraction.js", - "version": "5.3.4", - "description": "The RAW rational numbers library", - "homepage": "https://raw.org/article/rational-numbers-in-javascript/", - "bugs": "https://github.com/rawify/Fraction.js/issues", - "keywords": [ - "math", - "numbers", - "parser", - "ratio", - "fraction", - "fractions", - "rational", - "rationals", - "rational numbers", - "bigint", - "arbitrary precision", - "mixed numbers", - "decimal", - "numerator", - "denominator", - "simplification" - ], - "private": false, - "main": "./dist/fraction.js", - "module": "./dist/fraction.mjs", - "browser": "./dist/fraction.min.js", - "unpkg": "./dist/fraction.min.js", - "types": "./fraction.d.mts", - "exports": { - ".": { - "types": { - "import": "./fraction.d.mts", - "require": "./fraction.d.ts" - }, - "import": "./dist/fraction.mjs", - "require": "./dist/fraction.js", - "browser": "./dist/fraction.min.js" - }, - "./package.json": "./package.json" - }, - "typesVersions": { - "<4.7": { - "*": [ - "fraction.d.ts" - ] - } - }, - "sideEffects": false, - "repository": { - "type": "git", - "url": "git+ssh://git@github.com/rawify/Fraction.js.git" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/rawify" - }, - "author": { - "name": "Robert Eisele", - "email": "robert@raw.org", - "url": "https://raw.org/" - }, - "license": "MIT", - "engines": { - "node": "*" - }, - "directories": { - "example": "examples", - "test": "tests" - }, - "scripts": { - "build": "crude-build Fraction", - "test": "mocha tests/*.js" - }, - "devDependencies": { - "crude-build": "^0.1.2", - "mocha": "*" - } -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/fraction.js/src/fraction.js b/build_vtk_bundle/node_modules/fraction.js/src/fraction.js deleted file mode 100644 index 4292c48b..00000000 --- a/build_vtk_bundle/node_modules/fraction.js/src/fraction.js +++ /dev/null @@ -1,1046 +0,0 @@ -/** - * @license Fraction.js v5.3.4 8/22/2025 - * https://raw.org/article/rational-numbers-in-javascript/ - * - * Copyright (c) 2025, Robert Eisele (https://raw.org/) - * Licensed under the MIT license. - **/ - -/** - * - * This class offers the possibility to calculate fractions. - * You can pass a fraction in different formats. Either as array, as double, as string or as an integer. - * - * Array/Object form - * [ 0 => , 1 => ] - * { n => , d => } - * - * Integer form - * - Single integer value as BigInt or Number - * - * Double form - * - Single double value as Number - * - * String form - * 123.456 - a simple double - * 123/456 - a string fraction - * 123.'456' - a double with repeating decimal places - * 123.(456) - synonym - * 123.45'6' - a double with repeating last place - * 123.45(6) - synonym - * - * Example: - * let f = new Fraction("9.4'31'"); - * f.mul([-4, 3]).div(4.9); - * - */ - -// Set Identity function to downgrade BigInt to Number if needed -if (typeof BigInt === 'undefined') BigInt = function (n) { if (isNaN(n)) throw new Error(""); return n; }; - -const C_ZERO = BigInt(0); -const C_ONE = BigInt(1); -const C_TWO = BigInt(2); -const C_THREE = BigInt(3); -const C_FIVE = BigInt(5); -const C_TEN = BigInt(10); -const MAX_INTEGER = BigInt(Number.MAX_SAFE_INTEGER); - -// Maximum search depth for cyclic rational numbers. 2000 should be more than enough. -// Example: 1/7 = 0.(142857) has 6 repeating decimal places. -// If MAX_CYCLE_LEN gets reduced, long cycles will not be detected and toString() only gets the first 10 digits -const MAX_CYCLE_LEN = 2000; - -// Parsed data to avoid calling "new" all the time -const P = { - "s": C_ONE, - "n": C_ZERO, - "d": C_ONE -}; - -function assign(n, s) { - - try { - n = BigInt(n); - } catch (e) { - throw InvalidParameter(); - } - return n * s; -} - -function ifloor(x) { - return typeof x === 'bigint' ? x : Math.floor(x); -} - -// Creates a new Fraction internally without the need of the bulky constructor -function newFraction(n, d) { - - if (d === C_ZERO) { - throw DivisionByZero(); - } - - const f = Object.create(Fraction.prototype); - f["s"] = n < C_ZERO ? -C_ONE : C_ONE; - - n = n < C_ZERO ? -n : n; - - const a = gcd(n, d); - - f["n"] = n / a; - f["d"] = d / a; - return f; -} - -const FACTORSTEPS = [C_TWO * C_TWO, C_TWO, C_TWO * C_TWO, C_TWO, C_TWO * C_TWO, C_TWO * C_THREE, C_TWO, C_TWO * C_THREE]; // repeats -function factorize(n) { - - const factors = Object.create(null); - if (n <= C_ONE) { - factors[n] = C_ONE; - return factors; - } - - const add = (p) => { factors[p] = (factors[p] || C_ZERO) + C_ONE; }; - - while (n % C_TWO === C_ZERO) { add(C_TWO); n /= C_TWO; } - while (n % C_THREE === C_ZERO) { add(C_THREE); n /= C_THREE; } - while (n % C_FIVE === C_ZERO) { add(C_FIVE); n /= C_FIVE; } - - // 30-wheel trial division: test only residues coprime to 2*3*5 - // Residue step pattern after 5: 7,11,13,17,19,23,29,31, ... - for (let si = 0, p = C_TWO + C_FIVE; p * p <= n;) { - while (n % p === C_ZERO) { add(p); n /= p; } - p += FACTORSTEPS[si]; - si = (si + 1) & 7; // fast modulo 8 - } - if (n > C_ONE) add(n); - return factors; -} - -const parse = function (p1, p2) { - - let n = C_ZERO, d = C_ONE, s = C_ONE; - - if (p1 === undefined || p1 === null) { // No argument - /* void */ - } else if (p2 !== undefined) { // Two arguments - - if (typeof p1 === "bigint") { - n = p1; - } else if (isNaN(p1)) { - throw InvalidParameter(); - } else if (p1 % 1 !== 0) { - throw NonIntegerParameter(); - } else { - n = BigInt(p1); - } - - if (typeof p2 === "bigint") { - d = p2; - } else if (isNaN(p2)) { - throw InvalidParameter(); - } else if (p2 % 1 !== 0) { - throw NonIntegerParameter(); - } else { - d = BigInt(p2); - } - - s = n * d; - - } else if (typeof p1 === "object") { - if ("d" in p1 && "n" in p1) { - n = BigInt(p1["n"]); - d = BigInt(p1["d"]); - if ("s" in p1) - n *= BigInt(p1["s"]); - } else if (0 in p1) { - n = BigInt(p1[0]); - if (1 in p1) - d = BigInt(p1[1]); - } else if (typeof p1 === "bigint") { - n = p1; - } else { - throw InvalidParameter(); - } - s = n * d; - } else if (typeof p1 === "number") { - - if (isNaN(p1)) { - throw InvalidParameter(); - } - - if (p1 < 0) { - s = -C_ONE; - p1 = -p1; - } - - if (p1 % 1 === 0) { - n = BigInt(p1); - } else { - - let z = 1; - - let A = 0, B = 1; - let C = 1, D = 1; - - let N = 10000000; - - if (p1 >= 1) { - z = 10 ** Math.floor(1 + Math.log10(p1)); - p1 /= z; - } - - // Using Farey Sequences - - while (B <= N && D <= N) { - let M = (A + C) / (B + D); - - if (p1 === M) { - if (B + D <= N) { - n = A + C; - d = B + D; - } else if (D > B) { - n = C; - d = D; - } else { - n = A; - d = B; - } - break; - - } else { - - if (p1 > M) { - A += C; - B += D; - } else { - C += A; - D += B; - } - - if (B > N) { - n = C; - d = D; - } else { - n = A; - d = B; - } - } - } - n = BigInt(n) * BigInt(z); - d = BigInt(d); - } - - } else if (typeof p1 === "string") { - - let ndx = 0; - - let v = C_ZERO, w = C_ZERO, x = C_ZERO, y = C_ONE, z = C_ONE; - - let match = p1.replace(/_/g, '').match(/\d+|./g); - - if (match === null) - throw InvalidParameter(); - - if (match[ndx] === '-') {// Check for minus sign at the beginning - s = -C_ONE; - ndx++; - } else if (match[ndx] === '+') {// Check for plus sign at the beginning - ndx++; - } - - if (match.length === ndx + 1) { // Check if it's just a simple number "1234" - w = assign(match[ndx++], s); - } else if (match[ndx + 1] === '.' || match[ndx] === '.') { // Check if it's a decimal number - - if (match[ndx] !== '.') { // Handle 0.5 and .5 - v = assign(match[ndx++], s); - } - ndx++; - - // Check for decimal places - if (ndx + 1 === match.length || match[ndx + 1] === '(' && match[ndx + 3] === ')' || match[ndx + 1] === "'" && match[ndx + 3] === "'") { - w = assign(match[ndx], s); - y = C_TEN ** BigInt(match[ndx].length); - ndx++; - } - - // Check for repeating places - if (match[ndx] === '(' && match[ndx + 2] === ')' || match[ndx] === "'" && match[ndx + 2] === "'") { - x = assign(match[ndx + 1], s); - z = C_TEN ** BigInt(match[ndx + 1].length) - C_ONE; - ndx += 3; - } - - } else if (match[ndx + 1] === '/' || match[ndx + 1] === ':') { // Check for a simple fraction "123/456" or "123:456" - w = assign(match[ndx], s); - y = assign(match[ndx + 2], C_ONE); - ndx += 3; - } else if (match[ndx + 3] === '/' && match[ndx + 1] === ' ') { // Check for a complex fraction "123 1/2" - v = assign(match[ndx], s); - w = assign(match[ndx + 2], s); - y = assign(match[ndx + 4], C_ONE); - ndx += 5; - } - - if (match.length <= ndx) { // Check for more tokens on the stack - d = y * z; - s = /* void */ - n = x + d * v + z * w; - } else { - throw InvalidParameter(); - } - - } else if (typeof p1 === "bigint") { - n = p1; - s = p1; - d = C_ONE; - } else { - throw InvalidParameter(); - } - - if (d === C_ZERO) { - throw DivisionByZero(); - } - - P["s"] = s < C_ZERO ? -C_ONE : C_ONE; - P["n"] = n < C_ZERO ? -n : n; - P["d"] = d < C_ZERO ? -d : d; -}; - -function modpow(b, e, m) { - - let r = C_ONE; - for (; e > C_ZERO; b = (b * b) % m, e >>= C_ONE) { - - if (e & C_ONE) { - r = (r * b) % m; - } - } - return r; -} - -function cycleLen(n, d) { - - for (; d % C_TWO === C_ZERO; - d /= C_TWO) { - } - - for (; d % C_FIVE === C_ZERO; - d /= C_FIVE) { - } - - if (d === C_ONE) // Catch non-cyclic numbers - return C_ZERO; - - // If we would like to compute really large numbers quicker, we could make use of Fermat's little theorem: - // 10^(d-1) % d == 1 - // However, we don't need such large numbers and MAX_CYCLE_LEN should be the capstone, - // as we want to translate the numbers to strings. - - let rem = C_TEN % d; - let t = 1; - - for (; rem !== C_ONE; t++) { - rem = rem * C_TEN % d; - - if (t > MAX_CYCLE_LEN) - return C_ZERO; // Returning 0 here means that we don't print it as a cyclic number. It's likely that the answer is `d-1` - } - return BigInt(t); -} - -function cycleStart(n, d, len) { - - let rem1 = C_ONE; - let rem2 = modpow(C_TEN, len, d); - - for (let t = 0; t < 300; t++) { // s < ~log10(Number.MAX_VALUE) - // Solve 10^s == 10^(s+t) (mod d) - - if (rem1 === rem2) - return BigInt(t); - - rem1 = rem1 * C_TEN % d; - rem2 = rem2 * C_TEN % d; - } - return 0; -} - -function gcd(a, b) { - - if (!a) - return b; - if (!b) - return a; - - while (1) { - a %= b; - if (!a) - return b; - b %= a; - if (!b) - return a; - } -} - -/** - * Module constructor - * - * @constructor - * @param {number|Fraction=} a - * @param {number=} b - */ -function Fraction(a, b) { - - parse(a, b); - - if (this instanceof Fraction) { - a = gcd(P["d"], P["n"]); // Abuse a - this["s"] = P["s"]; - this["n"] = P["n"] / a; - this["d"] = P["d"] / a; - } else { - return newFraction(P['s'] * P['n'], P['d']); - } -} - -const DivisionByZero = function () { return new Error("Division by Zero"); }; -const InvalidParameter = function () { return new Error("Invalid argument"); }; -const NonIntegerParameter = function () { return new Error("Parameters must be integer"); }; - -Fraction.prototype = { - - "s": C_ONE, - "n": C_ZERO, - "d": C_ONE, - - /** - * Calculates the absolute value - * - * Ex: new Fraction(-4).abs() => 4 - **/ - "abs": function () { - - return newFraction(this["n"], this["d"]); - }, - - /** - * Inverts the sign of the current fraction - * - * Ex: new Fraction(-4).neg() => 4 - **/ - "neg": function () { - - return newFraction(-this["s"] * this["n"], this["d"]); - }, - - /** - * Adds two rational numbers - * - * Ex: new Fraction({n: 2, d: 3}).add("14.9") => 467 / 30 - **/ - "add": function (a, b) { - - parse(a, b); - return newFraction( - this["s"] * this["n"] * P["d"] + P["s"] * this["d"] * P["n"], - this["d"] * P["d"] - ); - }, - - /** - * Subtracts two rational numbers - * - * Ex: new Fraction({n: 2, d: 3}).add("14.9") => -427 / 30 - **/ - "sub": function (a, b) { - - parse(a, b); - return newFraction( - this["s"] * this["n"] * P["d"] - P["s"] * this["d"] * P["n"], - this["d"] * P["d"] - ); - }, - - /** - * Multiplies two rational numbers - * - * Ex: new Fraction("-17.(345)").mul(3) => 5776 / 111 - **/ - "mul": function (a, b) { - - parse(a, b); - return newFraction( - this["s"] * P["s"] * this["n"] * P["n"], - this["d"] * P["d"] - ); - }, - - /** - * Divides two rational numbers - * - * Ex: new Fraction("-17.(345)").inverse().div(3) - **/ - "div": function (a, b) { - - parse(a, b); - return newFraction( - this["s"] * P["s"] * this["n"] * P["d"], - this["d"] * P["n"] - ); - }, - - /** - * Clones the actual object - * - * Ex: new Fraction("-17.(345)").clone() - **/ - "clone": function () { - return newFraction(this['s'] * this['n'], this['d']); - }, - - /** - * Calculates the modulo of two rational numbers - a more precise fmod - * - * Ex: new Fraction('4.(3)').mod([7, 8]) => (13/3) % (7/8) = (5/6) - * Ex: new Fraction(20, 10).mod().equals(0) ? "is Integer" - **/ - "mod": function (a, b) { - - if (a === undefined) { - return newFraction(this["s"] * this["n"] % this["d"], C_ONE); - } - - parse(a, b); - if (C_ZERO === P["n"] * this["d"]) { - throw DivisionByZero(); - } - - /** - * I derived the rational modulo similar to the modulo for integers - * - * https://raw.org/book/analysis/rational-numbers/ - * - * n1/d1 = (n2/d2) * q + r, where 0 ≤ r < n2/d2 - * => d2 * n1 = n2 * d1 * q + d1 * d2 * r - * => r = (d2 * n1 - n2 * d1 * q) / (d1 * d2) - * = (d2 * n1 - n2 * d1 * floor((d2 * n1) / (n2 * d1))) / (d1 * d2) - * = ((d2 * n1) % (n2 * d1)) / (d1 * d2) - */ - return newFraction( - this["s"] * (P["d"] * this["n"]) % (P["n"] * this["d"]), - P["d"] * this["d"]); - }, - - /** - * Calculates the fractional gcd of two rational numbers - * - * Ex: new Fraction(5,8).gcd(3,7) => 1/56 - */ - "gcd": function (a, b) { - - parse(a, b); - - // https://raw.org/book/analysis/rational-numbers/ - // gcd(a / b, c / d) = gcd(a, c) / lcm(b, d) - - return newFraction(gcd(P["n"], this["n"]) * gcd(P["d"], this["d"]), P["d"] * this["d"]); - }, - - /** - * Calculates the fractional lcm of two rational numbers - * - * Ex: new Fraction(5,8).lcm(3,7) => 15 - */ - "lcm": function (a, b) { - - parse(a, b); - - // https://raw.org/book/analysis/rational-numbers/ - // lcm(a / b, c / d) = lcm(a, c) / gcd(b, d) - - if (P["n"] === C_ZERO && this["n"] === C_ZERO) { - return newFraction(C_ZERO, C_ONE); - } - return newFraction(P["n"] * this["n"], gcd(P["n"], this["n"]) * gcd(P["d"], this["d"])); - }, - - /** - * Gets the inverse of the fraction, means numerator and denominator are exchanged - * - * Ex: new Fraction([-3, 4]).inverse() => -4 / 3 - **/ - "inverse": function () { - return newFraction(this["s"] * this["d"], this["n"]); - }, - - /** - * Calculates the fraction to some integer exponent - * - * Ex: new Fraction(-1,2).pow(-3) => -8 - */ - "pow": function (a, b) { - - parse(a, b); - - // Trivial case when exp is an integer - - if (P['d'] === C_ONE) { - - if (P['s'] < C_ZERO) { - return newFraction((this['s'] * this["d"]) ** P['n'], this["n"] ** P['n']); - } else { - return newFraction((this['s'] * this["n"]) ** P['n'], this["d"] ** P['n']); - } - } - - // Negative roots become complex - // (-a/b)^(c/d) = x - // ⇔ (-1)^(c/d) * (a/b)^(c/d) = x - // ⇔ (cos(pi) + i*sin(pi))^(c/d) * (a/b)^(c/d) = x - // ⇔ (cos(c*pi/d) + i*sin(c*pi/d)) * (a/b)^(c/d) = x # DeMoivre's formula - // From which follows that only for c=0 the root is non-complex - if (this['s'] < C_ZERO) return null; - - // Now prime factor n and d - let N = factorize(this['n']); - let D = factorize(this['d']); - - // Exponentiate and take root for n and d individually - let n = C_ONE; - let d = C_ONE; - for (let k in N) { - if (k === '1') continue; - if (k === '0') { - n = C_ZERO; - break; - } - N[k] *= P['n']; - - if (N[k] % P['d'] === C_ZERO) { - N[k] /= P['d']; - } else return null; - n *= BigInt(k) ** N[k]; - } - - for (let k in D) { - if (k === '1') continue; - D[k] *= P['n']; - - if (D[k] % P['d'] === C_ZERO) { - D[k] /= P['d']; - } else return null; - d *= BigInt(k) ** D[k]; - } - - if (P['s'] < C_ZERO) { - return newFraction(d, n); - } - return newFraction(n, d); - }, - - /** - * Calculates the logarithm of a fraction to a given rational base - * - * Ex: new Fraction(27, 8).log(9, 4) => 3/2 - */ - "log": function (a, b) { - - parse(a, b); - - if (this['s'] <= C_ZERO || P['s'] <= C_ZERO) return null; - - const allPrimes = Object.create(null); - - const baseFactors = factorize(P['n']); - const T1 = factorize(P['d']); - - const numberFactors = factorize(this['n']); - const T2 = factorize(this['d']); - - for (const prime in T1) { - baseFactors[prime] = (baseFactors[prime] || C_ZERO) - T1[prime]; - } - for (const prime in T2) { - numberFactors[prime] = (numberFactors[prime] || C_ZERO) - T2[prime]; - } - - for (const prime in baseFactors) { - if (prime === '1') continue; - allPrimes[prime] = true; - } - for (const prime in numberFactors) { - if (prime === '1') continue; - allPrimes[prime] = true; - } - - let retN = null; - let retD = null; - - // Iterate over all unique primes to determine if a consistent ratio exists - for (const prime in allPrimes) { - - const baseExponent = baseFactors[prime] || C_ZERO; - const numberExponent = numberFactors[prime] || C_ZERO; - - if (baseExponent === C_ZERO) { - if (numberExponent !== C_ZERO) { - return null; // Logarithm cannot be expressed as a rational number - } - continue; // Skip this prime since both exponents are zero - } - - // Calculate the ratio of exponents for this prime - let curN = numberExponent; - let curD = baseExponent; - - // Simplify the current ratio - const gcdValue = gcd(curN, curD); - curN /= gcdValue; - curD /= gcdValue; - - // Check if this is the first ratio; otherwise, ensure ratios are consistent - if (retN === null && retD === null) { - retN = curN; - retD = curD; - } else if (curN * retD !== retN * curD) { - return null; // Ratios do not match, logarithm cannot be rational - } - } - - return retN !== null && retD !== null - ? newFraction(retN, retD) - : null; - }, - - /** - * Check if two rational numbers are the same - * - * Ex: new Fraction(19.6).equals([98, 5]); - **/ - "equals": function (a, b) { - - parse(a, b); - return this["s"] * this["n"] * P["d"] === P["s"] * P["n"] * this["d"]; - }, - - /** - * Check if this rational number is less than another - * - * Ex: new Fraction(19.6).lt([98, 5]); - **/ - "lt": function (a, b) { - - parse(a, b); - return this["s"] * this["n"] * P["d"] < P["s"] * P["n"] * this["d"]; - }, - - /** - * Check if this rational number is less than or equal another - * - * Ex: new Fraction(19.6).lt([98, 5]); - **/ - "lte": function (a, b) { - - parse(a, b); - return this["s"] * this["n"] * P["d"] <= P["s"] * P["n"] * this["d"]; - }, - - /** - * Check if this rational number is greater than another - * - * Ex: new Fraction(19.6).lt([98, 5]); - **/ - "gt": function (a, b) { - - parse(a, b); - return this["s"] * this["n"] * P["d"] > P["s"] * P["n"] * this["d"]; - }, - - /** - * Check if this rational number is greater than or equal another - * - * Ex: new Fraction(19.6).lt([98, 5]); - **/ - "gte": function (a, b) { - - parse(a, b); - return this["s"] * this["n"] * P["d"] >= P["s"] * P["n"] * this["d"]; - }, - - /** - * Compare two rational numbers - * < 0 iff this < that - * > 0 iff this > that - * = 0 iff this = that - * - * Ex: new Fraction(19.6).compare([98, 5]); - **/ - "compare": function (a, b) { - - parse(a, b); - let t = this["s"] * this["n"] * P["d"] - P["s"] * P["n"] * this["d"]; - - return (C_ZERO < t) - (t < C_ZERO); - }, - - /** - * Calculates the ceil of a rational number - * - * Ex: new Fraction('4.(3)').ceil() => (5 / 1) - **/ - "ceil": function (places) { - - places = C_TEN ** BigInt(places || 0); - - return newFraction(ifloor(this["s"] * places * this["n"] / this["d"]) + - (places * this["n"] % this["d"] > C_ZERO && this["s"] >= C_ZERO ? C_ONE : C_ZERO), - places); - }, - - /** - * Calculates the floor of a rational number - * - * Ex: new Fraction('4.(3)').floor() => (4 / 1) - **/ - "floor": function (places) { - - places = C_TEN ** BigInt(places || 0); - - return newFraction(ifloor(this["s"] * places * this["n"] / this["d"]) - - (places * this["n"] % this["d"] > C_ZERO && this["s"] < C_ZERO ? C_ONE : C_ZERO), - places); - }, - - /** - * Rounds a rational numbers - * - * Ex: new Fraction('4.(3)').round() => (4 / 1) - **/ - "round": function (places) { - - places = C_TEN ** BigInt(places || 0); - - /* Derivation: - - s >= 0: - round(n / d) = ifloor(n / d) + (n % d) / d >= 0.5 ? 1 : 0 - = ifloor(n / d) + 2(n % d) >= d ? 1 : 0 - s < 0: - round(n / d) =-ifloor(n / d) - (n % d) / d > 0.5 ? 1 : 0 - =-ifloor(n / d) - 2(n % d) > d ? 1 : 0 - - =>: - - round(s * n / d) = s * ifloor(n / d) + s * (C + 2(n % d) > d ? 1 : 0) - where C = s >= 0 ? 1 : 0, to fix the >= for the positve case. - */ - - return newFraction(ifloor(this["s"] * places * this["n"] / this["d"]) + - this["s"] * ((this["s"] >= C_ZERO ? C_ONE : C_ZERO) + C_TWO * (places * this["n"] % this["d"]) > this["d"] ? C_ONE : C_ZERO), - places); - }, - - /** - * Rounds a rational number to a multiple of another rational number - * - * Ex: new Fraction('0.9').roundTo("1/8") => 7 / 8 - **/ - "roundTo": function (a, b) { - - /* - k * x/y ≤ a/b < (k+1) * x/y - ⇔ k ≤ a/b / (x/y) < (k+1) - ⇔ k = floor(a/b * y/x) - ⇔ k = floor((a * y) / (b * x)) - */ - - parse(a, b); - - const n = this['n'] * P['d']; - const d = this['d'] * P['n']; - const r = n % d; - - // round(n / d) = ifloor(n / d) + 2(n % d) >= d ? 1 : 0 - let k = ifloor(n / d); - if (r + r >= d) { - k++; - } - return newFraction(this['s'] * k * P['n'], P['d']); - }, - - /** - * Check if two rational numbers are divisible - * - * Ex: new Fraction(19.6).divisible(1.5); - */ - "divisible": function (a, b) { - - parse(a, b); - if (P['n'] === C_ZERO) return false; - return (this['n'] * P['d']) % (P['n'] * this['d']) === C_ZERO; - }, - - /** - * Returns a decimal representation of the fraction - * - * Ex: new Fraction("100.'91823'").valueOf() => 100.91823918239183 - **/ - 'valueOf': function () { - //if (this['n'] <= MAX_INTEGER && this['d'] <= MAX_INTEGER) { - return Number(this['s'] * this['n']) / Number(this['d']); - //} - }, - - /** - * Creates a string representation of a fraction with all digits - * - * Ex: new Fraction("100.'91823'").toString() => "100.(91823)" - **/ - 'toString': function (dec = 15) { - - let N = this["n"]; - let D = this["d"]; - - let cycLen = cycleLen(N, D); // Cycle length - let cycOff = cycleStart(N, D, cycLen); // Cycle start - - let str = this['s'] < C_ZERO ? "-" : ""; - - // Append integer part - str += ifloor(N / D); - - N %= D; - N *= C_TEN; - - if (N) - str += "."; - - if (cycLen) { - - for (let i = cycOff; i--;) { - str += ifloor(N / D); - N %= D; - N *= C_TEN; - } - str += "("; - for (let i = cycLen; i--;) { - str += ifloor(N / D); - N %= D; - N *= C_TEN; - } - str += ")"; - } else { - for (let i = dec; N && i--;) { - str += ifloor(N / D); - N %= D; - N *= C_TEN; - } - } - return str; - }, - - /** - * Returns a string-fraction representation of a Fraction object - * - * Ex: new Fraction("1.'3'").toFraction() => "4 1/3" - **/ - 'toFraction': function (showMixed = false) { - - let n = this["n"]; - let d = this["d"]; - let str = this['s'] < C_ZERO ? "-" : ""; - - if (d === C_ONE) { - str += n; - } else { - const whole = ifloor(n / d); - if (showMixed && whole > C_ZERO) { - str += whole; - str += " "; - n %= d; - } - - str += n; - str += '/'; - str += d; - } - return str; - }, - - /** - * Returns a latex representation of a Fraction object - * - * Ex: new Fraction("1.'3'").toLatex() => "\frac{4}{3}" - **/ - 'toLatex': function (showMixed = false) { - - let n = this["n"]; - let d = this["d"]; - let str = this['s'] < C_ZERO ? "-" : ""; - - if (d === C_ONE) { - str += n; - } else { - const whole = ifloor(n / d); - if (showMixed && whole > C_ZERO) { - str += whole; - n %= d; - } - - str += "\\frac{"; - str += n; - str += '}{'; - str += d; - str += '}'; - } - return str; - }, - - /** - * Returns an array of continued fraction elements - * - * Ex: new Fraction("7/8").toContinued() => [0,1,7] - */ - 'toContinued': function () { - - let a = this['n']; - let b = this['d']; - const res = []; - - while (b) { - res.push(ifloor(a / b)); - const t = a % b; - a = b; - b = t; - } - return res; - }, - - "simplify": function (eps = 1e-3) { - - // Continued fractions give best approximations for a max denominator, - // generally outperforming mediants in denominator–accuracy trade-offs. - // Semiconvergents can further reduce the denominator within tolerance. - - const ieps = BigInt(Math.ceil(1 / eps)); - - const thisABS = this['abs'](); - const cont = thisABS['toContinued'](); - - for (let i = 1; i < cont.length; i++) { - - let s = newFraction(cont[i - 1], C_ONE); - for (let k = i - 2; k >= 0; k--) { - s = s['inverse']()['add'](cont[k]); - } - - let t = s['sub'](thisABS); - if (t['n'] * ieps < t['d']) { // More robust than Math.abs(t.valueOf()) < eps - return s['mul'](this['s']); - } - } - return this; - } -}; diff --git a/build_vtk_bundle/node_modules/fraction.js/tests/fraction.test.js b/build_vtk_bundle/node_modules/fraction.js/tests/fraction.test.js deleted file mode 100644 index b65833c5..00000000 --- a/build_vtk_bundle/node_modules/fraction.js/tests/fraction.test.js +++ /dev/null @@ -1,1806 +0,0 @@ -const Fraction = require('fraction.js'); -const assert = require('assert'); - -var DivisionByZero = function () { return new Error("Division by Zero"); }; -var InvalidParameter = function () { return new Error("Invalid argument"); }; -var NonIntegerParameter = function () { return new Error("Parameters must be integer"); }; - -var tests = [{ - set: "", - expectError: InvalidParameter() -}, { - set: "foo", - expectError: InvalidParameter() -}, { - set: " 123", - expectError: InvalidParameter() -}, { - set: 0, - expect: 0 -}, { - set: .2, - expect: "0.2" -}, { - set: .333, - expect: "0.333" -}, { - set: 1.1, - expect: "1.1" -}, { - set: 1.2, - expect: "1.2" -}, { - set: 1.3, - expect: "1.3" -}, { - set: 1.4, - expect: "1.4" -}, { - set: 1.5, - expect: "1.5" -}, { - set: 2.555, - expect: "2.555" -}, { - set: 1e12, - expect: "1000000000000" -}, { - set: " - ", - expectError: InvalidParameter() -}, { - set: ".5", - expect: "0.5" -}, { - set: "2_000_000", - expect: "2000000" -}, { - set: "-.5", - expect: "-0.5" -}, { - set: "123", - expect: "123" -}, { - set: "-123", - expect: "-123" -}, { - set: "123.4", - expect: "123.4" -}, { - set: "-123.4", - expect: "-123.4" -}, { - set: "123.", - expect: "123" -}, { - set: "-123.", - expect: "-123" -}, { - set: "123.4(56)", - expect: "123.4(56)" -}, { - set: "-123.4(56)", - expect: "-123.4(56)" -}, { - set: "123.(4)", - expect: "123.(4)" -}, { - set: "-123.(4)", - expect: "-123.(4)" -}, { - set: "0/0", - expectError: DivisionByZero() -}, { - set: "9/0", - expectError: DivisionByZero() -}, { - label: "0/1+0/1", - set: "0/1", - param: "0/1", - expect: "0" -}, { - label: "1/9+0/1", - set: "1/9", - param: "0/1", - expect: "0.(1)" -}, { - set: "123/456", - expect: "0.269(736842105263157894)" -}, { - set: "-123/456", - expect: "-0.269(736842105263157894)" -}, { - set: "19 123/456", - expect: "19.269(736842105263157894)" -}, { - set: "-19 123/456", - expect: "-19.269(736842105263157894)" -}, { - set: "123.(22)123", - expectError: InvalidParameter() -}, { - set: "+33.3(3)", - expect: "33.(3)" -}, { - set: "3.'09009'", - expect: "3.(09009)" -}, { - set: "123.(((", - expectError: InvalidParameter() -}, { - set: "123.((", - expectError: InvalidParameter() -}, { - set: "123.()", - expectError: InvalidParameter() -}, { - set: null, - expect: "0" // I would say it's just fine -}, { - set: [22, 7], - expect: '3.(142857)' // We got Pi! - almost ;o -}, { - set: "355/113", - expect: "3.(1415929203539823008849557522123893805309734513274336283185840707964601769911504424778761061946902654867256637168)" // Yay, a better PI -}, { - set: "3 1/7", - expect: '3.(142857)' -}, { - set: [36, -36], - expect: "-1" -}, { - set: [1n, 3n], - expect: "0.(3)" -}, { - set: 1n, - set2: 3n, - expect: "0.(3)" -}, { - set: { n: 1n, d: 3n }, - expect: "0.(3)" -}, { - set: { n: 1n, d: 3n }, - expect: "0.(3)" -}, { - set: [1n, 3n], - expect: "0.(3)" -}, { - set: "9/12", - expect: "0.75" -}, { - set: "0.09(33)", - expect: "0.09(3)" -}, { - set: 1 / 2, - expect: "0.5" -}, { - set: 1 / 3, - expect: "0.(3)" -}, { - set: "0.'3'", - expect: "0.(3)" -}, { - set: "0.00002", - expect: "0.00002" -}, { - set: 7 / 8, - expect: "0.875" -}, { - set: 0.003, - expect: "0.003" -}, { - set: 4, - expect: "4" -}, { - set: -99, - expect: "-99" -}, { - set: "-92332.1192", - expect: "-92332.1192" -}, { - set: '88.92933(12111)', - expect: "88.92933(12111)" -}, { - set: '-192322.823(123)', - expect: "-192322.8(231)" -}, { - label: "-99.12 % 0.09(34)", - set: '-99.12', - fn: "mod", - param: "0.09(34)", - expect: "-0.07(95)" -}, { - label: "0.4 / 0.1", - set: .4, - fn: "div", - param: ".1", - expect: "4" -}, { - label: "1 / -.1", - set: 1, - fn: "div", - param: "-.1", - expect: "-10" -}, { - label: "1 - (-1)", - set: 1, - fn: "sub", - param: "-1", - expect: "2" -}, { - label: "1 + (-1)", - set: 1, - fn: "add", - param: "-1", - expect: "0" -}, { - label: "-187 % 12", - set: '-187', - fn: "mod", - param: "12", - expect: "-7" -}, { - label: "Negate by 99 * -1", - set: '99', - fn: "mul", - param: "-1", - expect: "-99" -}, { - label: "0.5050000000000000000000000", - set: "0.5050000000000000000000000", - expect: "101/200", - fn: "toFraction", - param: true -}, { - label: "0.505000000(0000000000)", - set: "0.505000000(0000000000)", - expect: "101/200", - fn: "toFraction", - param: true -}, { - set: [20, -5], - expect: "-4", - fn: "toFraction", - param: true -}, { - set: [-10, -7], - expect: "1 3/7", - fn: "toFraction", - param: true -}, { - set: [21, -6], - expect: "-3 1/2", - fn: "toFraction", - param: true -}, { - set: "10/78", - expect: "5/39", - fn: "toFraction", - param: true -}, { - set: "0/91", - expect: "0", - fn: "toFraction", - param: true -}, { - set: "-0/287", - expect: "0", - fn: "toFraction", - param: true -}, { - set: "-5/20", - expect: "-1/4", - fn: "toFraction", - param: true -}, { - set: "42/9", - expect: "4 2/3", - fn: "toFraction", - param: true -}, { - set: "71/23", - expect: "3 2/23", - fn: "toFraction", - param: true -}, { - set: "6/3", - expect: "2", - fn: "toFraction", - param: true -}, { - set: "28/4", - expect: "7", - fn: "toFraction", - param: true -}, { - set: "105/35", - expect: "3", - fn: "toFraction", - param: true -}, { - set: "4/6", - expect: "2/3", - fn: "toFraction", - param: true -}, { - label: "99.(9) + 66", - set: '99.(999999)', - fn: "add", - param: "66", - expect: "166" -}, { - label: "123.32 / 33.'9821'", - set: '123.32', - fn: "div", - param: "33.'9821'", - expect: "3.628958880242975" -}, { - label: "-82.124 / 66.(3)", - set: '-82.124', - fn: "div", - param: "66.(3)", - expect: "-1.238(050251256281407035175879396984924623115577889447236180904522613065326633165829145728643216080402010)" -}, { - label: "100 - .91", - set: '100', - fn: "sub", - param: ".91", - expect: "99.09" -}, { - label: "381.(33411) % 11.119(356)", - set: '381.(33411)', - fn: "mod", - param: "11.119(356)", - expect: "3.275(997225017295217)" -}, { - label: "13/26 mod 1", - set: '13/26', - fn: "mod", - param: "1.000", - expect: "0.5" -}, { - label: "381.(33411) % 1", // Extract fraction part of a number - set: '381.(33411)', - fn: "mod", - param: "1", - expect: "0.(33411)" -}, { - label: "-222/3", - set: { - n: 3, - d: 222, - s: -1 - }, - fn: "inverse", - param: null, - expect: "-74" -}, { - label: "inverse", - set: 1 / 2, - fn: "inverse", - param: null, - expect: "2" -}, { - label: "abs(-222/3)", - set: { - n: -222, - d: 3 - }, - fn: "abs", - param: null, - expect: "74" -}, { - label: "9 % -2", - set: 9, - fn: "mod", - param: "-2", - expect: "1" -}, { - label: "-9 % 2", - set: '-9', - fn: "mod", - param: "-2", - expect: "-1" -}, { - label: "1 / 195312500", - set: '1', - fn: "div", - param: "195312500", - expect: "0.00000000512" -}, { - label: "10 / 0", - set: 10, - fn: "div", - param: 0, - expectError: DivisionByZero() -}, { - label: "-3 / 4", - set: [-3, 4], - fn: "inverse", - param: null, - expect: "-1.(3)" -}, { - label: "-19.6", - set: [-98, 5], - fn: "equals", - param: '-19.6', - expect: "true" // actually, we get a real bool but we call toString() in the test below -}, { - label: "-19.6", - set: [98, -5], - fn: "equals", - param: '-19.6', - expect: "true" -}, { - label: "99/88", - set: [99, 88], - fn: "equals", - param: [88, 99], - expect: "false" -}, { - label: "99/88", - set: [99, -88], - fn: "equals", - param: [9, 8], - expect: "false" -}, { - label: "12.5", - set: 12.5, - fn: "add", - param: 0, - expect: "12.5" -}, { - label: "0/1 -> 1/0", - set: 0, - fn: "inverse", - param: null, - expectError: DivisionByZero() -}, { - label: "abs(-100.25)", - set: -100.25, - fn: "abs", - param: null, - expect: "100.25" -}, { - label: "0.022222222", - set: '0.0(22222222)', - fn: "abs", - param: null, - expect: "0.0(2)" -}, { - label: "1.5 | 100.5", - set: 100.5, - fn: "divisible", - param: '1.5', - expect: "true" -}, { - label: "1.5 | 100.6", - set: 100.6, - fn: "divisible", - param: 1.6, - expect: "false" -}, { - label: "(1/6) | (2/3)", // == 4 - set: [2, 3], - fn: "divisible", - param: [1, 6], - expect: "true" -}, { - label: "(1/6) | (2/5)", - set: [2, 5], - fn: "divisible", - param: [1, 6], - expect: "false" -}, { - label: "0 | (2/5)", - set: [2, 5], - fn: "divisible", - param: 0, - expect: "false" -}, { - label: "6 | 0", - set: 0, - fn: "divisible", - param: 6, - expect: "true" -}, { - label: "fmod(4.55, 0.05)", // http://phpjs.org/functions/fmod/ (comment section) - set: 4.55, - fn: "mod", - param: 0.05, - expect: "0" -}, { - label: "fmod(99.12, 0.4)", - set: 99.12, - fn: "mod", - param: "0.4", - expect: "0.32" -}, { - label: "fmod(fmod(1.0,0.1))", // http://stackoverflow.com/questions/4218961/why-fmod1-0-0-1-1 - set: 1.0, - fn: "mod", - param: 0.1, - expect: "0" -}, { - label: "bignum", - set: [5385020324, 1673196525], - fn: "add", - param: 0, - expect: "3.21(840276592733181776121606516006839065124164060763872313206005492988936251824931324190982287630557922656455433410609073551596098372245902196097377144624418820138297860736950789447760776337973807350574075570710380240599651018280712721418065340531352107607323652551812465663589637206543923464101146157950573080469432602963360804254598843372567965379918536467197121390148715495330113717514444395585868193217769203770011415724163065662594535928766646225254382476081224230369471990147720394052336440275597631903998844367669243157195775313960803259497565595290726533154854597848271290188102679689703515252041298615534717298077104242133182771222884293284077911887845930112722413166618308629346454087334421161315763550250022184333666363549254920906556389124702491239037207539024741878423396797336762338781453063321417070239253574830368476888869943116813489676593728283053898883754853602746993512910863832926021645903191198654921901657666901979730085800889408373591978384009612977172541043856160291750546158945674358246709841810124486123947693472528578195558946669459524487119048971249805817042322628538808374587079661786890216019304725725509141850506771761314768448972244907094819599867385572056456428511886850828834945135927771544947477105237234460548500123140047759781236696030073335228807028510891749551057667897081007863078128255137273847732859712937785356684266362554153643129279150277938809369688357439064129062782986595074359241811119587401724970711375341877428295519559485099934689381452068220139292962014728066686607540019843156200674036183526020650801913421377683054893985032630879985)" -}, { - label: "ceil(0.4)", - set: 0.4, - fn: "ceil", - param: null, - expect: "1" -}, - - -{ - label: "1 < 2", - set: 1, - fn: "lt", - param: 2, - expect: "true" -}, { - label: "2 < 2", - set: 2, - fn: "lt", - param: 2, - expect: "false" -}, { - label: "3 > 2", - set: 3, - fn: "gt", - param: 2, - expect: "true" -}, { - label: "2 > 2", - set: 2, - fn: "gt", - param: 2, - expect: "false" -}, { - label: "1 <= 2", - set: 1, - fn: "lte", - param: 2, - expect: "true" -}, { - label: "2 <= 2", - set: 2, - fn: "lte", - param: 2, - expect: "true" -}, { - label: "3 <= 2", - set: 3, - fn: "lte", - param: 2, - expect: "false" -}, { - label: "3 >= 2", - set: 3, - fn: "gte", - param: 2, - expect: "true" -}, { - label: "2 >= 2", - set: 2, - fn: "gte", - param: 2, - expect: "true" -}, { - label: "ceil(0.5)", - set: 0.5, - fn: "ceil", - param: null, - expect: "1" -}, { - label: "ceil(0.23, 2)", - set: 0.23, - fn: "ceil", - param: 2, - expect: "0.23" -}, { - label: "ceil(0.6)", - set: 0.6, - fn: "ceil", - param: null, - expect: "1" -}, { - label: "ceil(-0.4)", - set: -0.4, - fn: "ceil", - param: null, - expect: "0" -}, { - label: "ceil(-0.5)", - set: -0.5, - fn: "ceil", - param: null, - expect: "0" -}, { - label: "ceil(-0.6)", - set: -0.6, - fn: "ceil", - param: null, - expect: "0" -}, { - label: "floor(0.4)", - set: 0.4, - fn: "floor", - param: null, - expect: "0" -}, { - label: "floor(0.4, 1)", - set: 0.4, - fn: "floor", - param: 1, - expect: "0.4" -}, { - label: "floor(0.5)", - set: 0.5, - fn: "floor", - param: null, - expect: "0" -}, { - label: "floor(0.6)", - set: 0.6, - fn: "floor", - param: null, - expect: "0" -}, { - label: "floor(-0.4)", - set: -0.4, - fn: "floor", - param: null, - expect: "-1" -}, { - label: "floor(-0.5)", - set: -0.5, - fn: "floor", - param: null, - expect: "-1" -}, { - label: "floor(-0.6)", - set: -0.6, - fn: "floor", - param: null, - expect: "-1" -}, { - label: "floor(10.4)", - set: 10.4, - fn: "floor", - param: null, - expect: "10" -}, { - label: "floor(10.4, 1)", - set: 10.4, - fn: "floor", - param: 1, - expect: "10.4" -}, { - label: "floor(10.5)", - set: 10.5, - fn: "floor", - param: null, - expect: "10" -}, { - label: "floor(10.6)", - set: 10.6, - fn: "floor", - param: null, - expect: "10" -}, { - label: "floor(-10.4)", - set: -10.4, - fn: "floor", - param: null, - expect: "-11" -}, { - label: "floor(-10.5)", - set: -10.5, - fn: "floor", - param: null, - expect: "-11" -}, { - label: "floor(-10.6)", - set: -10.6, - fn: "floor", - param: null, - expect: "-11" -}, { - label: "floor(-10.543,3)", - set: -10.543, - fn: "floor", - param: 3, - expect: "-10.543" -}, { - label: "floor(10.543,3)", - set: 10.543, - fn: "floor", - param: 3, - expect: "10.543" -}, { - label: "round(-10.543,3)", - set: -10.543, - fn: "round", - param: 3, - expect: "-10.543" -}, { - label: "round(10.543,3)", - set: 10.543, - fn: "round", - param: 3, - expect: "10.543" -}, { - label: "round(10.4)", - set: 10.4, - fn: "round", - param: null, - expect: "10" -}, { - label: "round(10.5)", - set: 10.5, - fn: "round", - param: null, - expect: "11" -}, { - label: "round(10.5, 1)", - set: 10.5, - fn: "round", - param: 1, - expect: "10.5" -}, { - label: "round(10.6)", - set: 10.6, - fn: "round", - param: null, - expect: "11" -}, { - label: "round(-10.4)", - set: -10.4, - fn: "round", - param: null, - expect: "-10" -}, { - label: "round(-10.5)", - set: -10.5, - fn: "round", - param: null, - expect: "-10" -}, { - label: "round(-10.6)", - set: -10.6, - fn: "round", - param: null, - expect: "-11" -}, { - label: "round(-0.4)", - set: -0.4, - fn: "round", - param: null, - expect: "0" -}, { - label: "round(-0.5)", - set: -0.5, - fn: "round", - param: null, - expect: "0" -}, { - label: "round(-0.6)", - set: -0.6, - fn: "round", - param: null, - expect: "-1" -}, { - label: "round(-0)", - set: -0, - fn: "round", - param: null, - expect: "0" -}, { - label: "round(big fraction)", - set: [ - '409652136432929109317120'.repeat(100), - '63723676445298091081155'.repeat(100) - ], - fn: "round", - param: null, - expect: "6428570341270001560623330590225448467479093479780591305451264291405695842465355472558570608574213642" -}, { - label: "round(big numerator)", - set: ['409652136432929109317'.repeat(100), 10], - fn: "round", - param: null, - expect: '409652136432929109317'.repeat(99) + '40965213643292910932' -}, { - label: "17402216385200408/5539306332998545", - set: [17402216385200408, 5539306332998545], - fn: "add", - param: 0, - expect: "3.141587653589870" -}, { - label: "17402216385200401/553930633299855", - set: [17402216385200401, 553930633299855], - fn: "add", - param: 0, - expect: "31.415876535898660" -}, { - label: "1283191/418183", - set: [1283191, 418183], - fn: "add", - param: 0, - expect: "3.068491545567371" -}, { - label: "1.001", - set: "1.001", - fn: "add", - param: 0, - expect: "1.001" -}, { - label: "99+1", - set: [99, 1], - fn: "add", - param: 1, - expect: "100" -}, { - label: "gcd(5/8, 3/7)", - set: [5, 8], - fn: "gcd", - param: [3, 7], - expect: "0.017(857142)" // == 1/56 -}, { - label: "gcd(52, 39)", - set: 52, - fn: "gcd", - param: 39, - expect: "13" -}, { - label: "gcd(51357, 3819)", - set: 51357, - fn: "gcd", - param: 3819, - expect: "57" -}, { - label: "gcd(841, 299)", - set: 841, - fn: "gcd", - param: 299, - expect: "1" -}, { - label: "gcd(2/3, 7/5)", - set: [2, 3], - fn: "gcd", - param: [7, 5], - expect: "0.0(6)" // == 1/15 -}, { - label: "lcm(-3, 3)", - set: -3, - fn: "lcm", - param: 3, - expect: "3" -}, { - label: "lcm(3,-3)", - set: 3, - fn: "lcm", - param: -3, - expect: "3" -}, { - label: "lcm(0,3)", - set: 0, - fn: "lcm", - param: 3, - expect: "0" -}, { - label: "lcm(3, 0)", - set: 3, - fn: "lcm", - param: 0, - expect: "0" -}, { - label: "lcm(0, 0)", - set: 0, - fn: "lcm", - param: 0, - expect: "0" -}, { - label: "lcm(200, 333)", - set: 200, - fn: "lcm", - param: 333, expect: "66600" -}, -{ - label: "1 + -1", - set: 1, - fn: "add", - param: -1, - expect: "0" -}, { - label: "3/10+3/14", - set: "3/10", - fn: "add", - param: "3/14", - expect: "0.5(142857)" -}, { - label: "3/10-3/14", - set: "3/10", - fn: "sub", - param: "3/14", - expect: "0.0(857142)" -}, { - label: "3/10*3/14", - set: "3/10", - fn: "mul", - param: "3/14", - expect: "0.06(428571)" -}, { - label: "3/10 / 3/14", - set: "3/10", - fn: "div", - param: "3/14", - expect: "1.4" -}, { - label: "1-2", - set: "1", - fn: "sub", - param: "2", - expect: "-1" -}, { - label: "1--1", - set: "1", - fn: "sub", - param: "-1", - expect: "2" -}, { - label: "0/1*1/3", - set: "0/1", - fn: "mul", - param: "1/3", - expect: "0" -}, { - label: "3/10 * 8/12", - set: "3/10", - fn: "mul", - param: "8/12", - expect: "0.2" -}, { - label: ".5+5", - set: ".5", - fn: "add", - param: 5, expect: "5.5" -}, -{ - label: "10/12-5/60", - set: "10/12", - fn: "sub", - param: "5/60", - expect: "0.75" -}, { - label: "10/15 / 3/4", - set: "10/15", - fn: "div", - param: "3/4", - expect: "0.(8)" -}, { - label: "1/4 + 3/8", - set: "1/4", - fn: "add", - param: "3/8", - expect: "0.625" -}, { - label: "2-1/3", - set: "2", - fn: "sub", - param: "1/3", - expect: "1.(6)" -}, { - label: "5*6", - set: "5", - fn: "mul", - param: 6, - expect: "30" -}, { - label: "1/2-1/5", - set: "1/2", - fn: "sub", - param: "1/5", - expect: "0.3" -}, { - label: "1/2-5", - set: "1/2", - fn: "add", - param: -5, - expect: "-4.5" -}, { - label: "1*-1", - set: "1", - fn: "mul", - param: -1, - expect: "-1" -}, { - label: "5/10", - set: 5.0, - fn: "div", - param: 10, - expect: "0.5" -}, { - label: "1/-1", - set: "1", - fn: "div", - param: -1, - expect: "-1" -}, { - label: "4/5 + 13/2", - set: "4/5", - fn: "add", - param: "13/2", - expect: "7.3" -}, { - label: "4/5 + 61/2", - set: "4/5", - fn: "add", - param: "61/2", - expect: "31.3" -}, { - label: "0.8 + 6.5", - set: "0.8", - fn: "add", - param: "6.5", - expect: "7.3" -}, { - label: "2/7 inverse", - set: "2/7", - fn: "inverse", - param: null, - expect: "3.5" -}, { - label: "neg 1/3", - set: "1/3", - fn: "neg", - param: null, - expect: "-0.(3)" -}, { - label: "1/2+1/3", - set: "1/2", - fn: "add", - param: "1/3", - expect: "0.8(3)" -}, { - label: "1/2+3", - set: ".5", - fn: "add", - param: 3, - expect: "3.5" -}, { - label: "1/2+3.14", - set: "1/2", - fn: "add", - param: "3.14", - expect: "3.64" -}, { - label: "3.5 < 4.1", - set: 3.5, - fn: "compare", - param: 4.1, - expect: "-1" -}, { - label: "3.5 > 4.1", - set: 4.1, - fn: "compare", - param: 3.1, - expect: "1" -}, { - label: "-3.5 > -4.1", - set: -3.5, - fn: "compare", - param: -4.1, - expect: "1" -}, { - label: "-3.5 > -4.1", - set: -4.1, - fn: "compare", - param: -3.5, - expect: "-1" -}, { - label: "4.3 == 4.3", - set: 4.3, - fn: "compare", - param: 4.3, - expect: "0" -}, { - label: "-4.3 == -4.3", - set: -4.3, - fn: "compare", - param: -4.3, - expect: "0" -}, { - label: "-4.3 < 4.3", - set: -4.3, - fn: "compare", - param: 4.3, - expect: "-1" -}, { - label: "4.3 == -4.3", - set: 4.3, - fn: "compare", - param: -4.3, - expect: "1" -}, { - label: "2^0.5", - set: 2, - fn: "pow", - param: 0.5, - expect: "null" -}, { - label: "(-8/27)^(1/3)", - set: [-8, 27], - fn: "pow", - param: [1, 3], - expect: "null" -}, { - label: "(-8/27)^(2/3)", - set: [-8, 27], - fn: "pow", - param: [2, 3], - expect: "null" -}, { - label: "(-32/243)^(5/3)", - set: [-32, 243], - fn: "pow", - param: [5, 3], - expect: "null" -}, { - label: "sqrt(0)", - set: 0, - fn: "pow", - param: 0.5, - expect: "0" -}, { - label: "27^(2/3)", - set: 27, - fn: "pow", - param: "2/3", - expect: "9" -}, { - label: "(243/1024)^(2/5)", - set: "243/1024", - fn: "pow", - param: "2/5", - expect: "0.5625" -}, { - label: "-0.5^-3", - set: -0.5, - fn: "pow", - param: -3, - expect: "-8" -}, { - label: "", - set: -3, - fn: "pow", - param: -3, - expect: "-0.(037)" -}, { - label: "-3", - set: -3, - fn: "pow", - param: 2, - expect: "9" -}, { - label: "-3", - set: -3, - fn: "pow", - param: 3, - expect: "-27" -}, { - label: "0^0", - set: 0, - fn: "pow", - param: 0, - expect: "1" -}, { - label: "2/3^7", - set: [2, 3], - fn: "pow", - param: 7, - expect: "0.(058527663465935070873342478280749885688157293095564700502972107910379515317786922725194330132601737540009144947416552354823959762231367169638774577046181984453589391860996799268404206675811614083219021490626428898033836305441243712848651120256)" -}, { - label: "-0.6^4", - set: -0.6, - fn: "pow", - param: 4, - expect: "0.1296" -}, { - label: "8128371:12394 - 8128371/12394", - set: "8128371:12394", - fn: "sub", - param: "8128371/12394", - expect: "0" -}, { - label: "3/4 + 1/4", - set: "3/4", - fn: "add", - param: "1/4", - expect: "1" -}, { - label: "1/10 + 2/10", - set: "1/10", - fn: "add", - param: "2/10", - expect: "0.3" -}, { - label: "5/10 + 2/10", - set: "5/10", - fn: "add", - param: "2/10", - expect: "0.7" -}, { - label: "18/10 + 2/10", - set: "18/10", - fn: "add", - param: "2/10", - expect: "2" -}, { - label: "1/3 + 1/6", - set: "1/3", - fn: "add", - param: "1/6", - expect: "0.5" -}, { - label: "1/3 + 2/6", - set: "1/3", - fn: "add", - param: "2/6", - expect: "0.(6)" -}, { - label: "3/4 / 1/4", - set: "3/4", - fn: "div", - param: "1/4", - expect: "3" -}, { - label: "1/10 / 2/10", - set: "1/10", - fn: "div", - param: "2/10", - expect: "0.5" -}, { - label: "5/10 / 2/10", - set: "5/10", - fn: "div", - param: "2/10", - expect: "2.5" -}, { - label: "18/10 / 2/10", - set: "18/10", - fn: "div", - param: "2/10", - expect: "9" -}, { - label: "1/3 / 1/6", - set: "1/3", - fn: "div", - param: "1/6", - expect: "2" -}, { - label: "1/3 / 2/6", - set: "1/3", - fn: "div", - param: "2/6", - expect: "1" -}, { - label: "3/4 * 1/4", - set: "3/4", - fn: "mul", - param: "1/4", - expect: "0.1875" -}, { - label: "1/10 * 2/10", - set: "1/10", - fn: "mul", - param: "2/10", - expect: "0.02" -}, { - label: "5/10 * 2/10", - set: "5/10", - fn: "mul", - param: "2/10", - expect: "0.1" -}, { - label: "18/10 * 2/10", - set: "18/10", - fn: "mul", - param: "2/10", - expect: "0.36" -}, { - label: "1/3 * 1/6", - set: "1/3", - fn: "mul", - param: "1/6", - expect: "0.0(5)" -}, { - label: "1/3 * 2/6", - set: "1/3", - fn: "mul", - param: "2/6", - expect: "0.(1)" -}, { - label: "5/4 - 1/4", - set: "5/4", - fn: "sub", - param: "1/4", - expect: "1" -}, { - label: "5/10 - 2/10", - set: "5/10", - fn: "sub", - param: "2/10", - expect: "0.3" -}, { - label: "9/10 - 2/10", - set: "9/10", - fn: "sub", - param: "2/10", - expect: "0.7" -}, { - label: "22/10 - 2/10", - set: "22/10", - fn: "sub", - param: "2/10", - expect: "2" -}, { - label: "2/3 - 1/6", - set: "2/3", - fn: "sub", - param: "1/6", - expect: "0.5" -}, { - label: "3/3 - 2/6", - set: "3/3", - fn: "sub", - param: "2/6", - expect: "0.(6)" -}, { - label: "0.006999999999999999", - set: 0.006999999999999999, - fn: "add", - param: 0, - expect: "0.007" -}, { - label: "1/7 - 1", - set: 1 / 7, - fn: "add", - param: -1, - expect: "-0.(857142)" -}, { - label: "0.0065 + 0.0005", - set: 0.0065, - fn: "add", - param: 0.0005, - expect: "0.007" -}, { - label: "6.5/.5", - set: 6.5, - fn: "div", - param: .5, - expect: "13" -}, { - label: "0.999999999999999999999999999", - set: 0.999999999999999999999999999, - fn: "sub", - param: 1, - expect: "0" -}, { - label: "0.5833333333333334", - set: 0.5833333333333334, - fn: "add", - param: 0, - expect: "0.58(3)" -}, { - label: "1.75/3", - set: 1.75 / 3, - fn: "add", - param: 0, - expect: "0.58(3)" -}, { - label: "3.3333333333333", - set: 3.3333333333333, - fn: "add", - param: 0, - expect: "3.(3)" -}, { - label: "4.285714285714285714285714", - set: 4.285714285714285714285714, - fn: "add", - param: 0, - expect: "4.(285714)" -}, { - label: "-4", - set: -4, - fn: "neg", - param: 0, - expect: "4" -}, { - label: "4", - set: 4, - fn: "neg", - param: 0, - expect: "-4" -}, { - label: "0", - set: 0, - fn: "neg", - param: 0, - expect: "0" -}, { - label: "6869570742453802/5329686054127205", - set: "6869570742453802/5329686054127205", - fn: "neg", - param: 0, - expect: "-1.288925965373540" -}, { - label: "686970702/53212205", - set: "686970702/53212205", - fn: "neg", - param: 0, - expect: "-12.910021338149772" -}, { - label: "1/3000000000000000", - set: "1/3000000000000000", - fn: "add", - param: 0, - expect: "0.000000000000000(3)" -}, { - label: "toString(15) .0000000000000003", - set: ".0000000000000003", - fn: "toString", - param: 15, - expect: "0.000000000000000" -}, { - label: "toString(16) .0000000000000003", - set: ".0000000000000003", - fn: "toString", - param: 16, - expect: "0.0000000000000003" -}, { - label: "12 / 4.3", - set: 12, - set2: 4.3, - fn: "toString", - param: null, - expectError: NonIntegerParameter() -}, { - label: "12.5 / 4", - set: 12.5, - set2: 4, - fn: "toString", - param: null, - expectError: NonIntegerParameter() -}, { - label: "0.9 round to multiple of 1/8", - set: .9, - fn: "roundTo", - param: "1/8", - expect: "0.875" -}, { - label: "1/3 round to multiple of 1/16", - set: 1 / 3, - fn: "roundTo", - param: "1/16", - expect: "0.3125" -}, { - label: "1/3 round to multiple of 1/16", - set: -1 / 3, - fn: "roundTo", - param: "1/16", - expect: "-0.3125" -}, { - label: "1/2 round to multiple of 1/4", - set: 1 / 2, - fn: "roundTo", - param: "1/4", - expect: "0.5" -}, { - label: "1/4 round to multiple of 1/2", - set: 1 / 4, - fn: "roundTo", - param: "1/2", - expect: "0.5" -}, { - label: "10/3 round to multiple of 1/2", - set: "10/3", - fn: "roundTo", - param: "1/2", - expect: "3.5" -}, { - label: "-10/3 round to multiple of 1/2", - set: "-10/3", - fn: "roundTo", - param: "1/2", - expect: "-3.5" -}, { - label: "log_2(8)", - set: "8", - fn: "log", - param: "2", - expect: "3" // because 2^3 = 8 -}, { - label: "log_2(3)", - set: "3", - fn: "log", - param: "2", - expect: 'null' // because 2^(p/q) != 3 -}, { - label: "log_10(1000)", - set: "1000", - fn: "log", - param: "10", - expect: "3" // because 10^3 = 1000 -}, { - label: "log_27(81)", - set: "81", - fn: "log", - param: "27", - expect: "1.(3)" // because 27^(4/3) = 81 -}, { - label: "log_27(9)", - set: "9", - fn: "log", - param: "27", - expect: "0.(6)" // because 27^(2/3) = 9 -}, { - label: "log_9/4(27/8)", - set: "27/8", - fn: "log", - param: "9/4", - expect: "1.5" // because (9/4)^(3/2) = 27/8 -}]; - -describe('Fraction', function () { - for (var i = 0; i < tests.length; i++) { - - (function (i) { - var action; - - if (tests[i].fn) { - action = function () { - var x = Fraction(tests[i].set, tests[i].set2)[tests[i].fn](tests[i].param); - if (x === null) return "null"; - return x.toString(); - }; - } else { - action = function () { - var x = new Fraction(tests[i].set, tests[i].set2); - if (x === null) return "null"; - return x.toString(); - }; - } - - it(String(tests[i].label || tests[i].set), function () { - if (tests[i].expectError) { - assert.throws(action, tests[i].expectError); - } else { - assert.equal(action(), tests[i].expect); - } - }); - - })(i); - } -}); - -describe('JSON', function () { - - it("Should be possible to stringify the object", function () { - - if (typeof Fraction(1).n !== 'number') { - return; - } - assert.equal('{"s":1,"n":14623,"d":330}', JSON.stringify(new Fraction("44.3(12)"))); - assert.equal('{"s":-1,"n":2,"d":1}', JSON.stringify(new Fraction(-1 / 2).inverse())); - }); -}); - -describe('Arguments', function () { - - it("Should be possible to use different kind of params", function () { - - // String - var fraction = new Fraction("0.1"); - assert.equal("1/10", fraction.n + "/" + fraction.d); - - var fraction = new Fraction("6234/6460"); - assert.equal("3117/3230", fraction.n + "/" + fraction.d); - - // Two params - var fraction = new Fraction(1, 2); - assert.equal("1/2", fraction.n + "/" + fraction.d); - - // Object - var fraction = new Fraction({ n: 1, d: 3 }); - assert.equal("1/3", fraction.n + "/" + fraction.d); - - // Array - var fraction = new Fraction([1, 4]); - assert.equal("1/4", fraction.n + "/" + fraction.d); - }); -}); - -describe('fractions', function () { - - it("Should pass 0.08 = 2/25", function () { - - var fraction = new Fraction("0.08"); - assert.equal("2/25", fraction.n + "/" + fraction.d); - }); - - it("Should pass 0.200 = 1/5", function () { - - var fraction = new Fraction("0.200"); - assert.equal("1/5", fraction.n + "/" + fraction.d); - }); - - it("Should pass 0.125 = 1/8", function () { - - var fraction = new Fraction("0.125"); - assert.equal("1/8", fraction.n + "/" + fraction.d); - }); - - it("Should pass 8.36 = 209/25", function () { - - var fraction = new Fraction(8.36); - assert.equal("209/25", fraction.n + "/" + fraction.d); - }); - -}); - -describe('constructors', function () { - - it("Should pass 0.08 = 2/25", function () { - - var tmp = new Fraction({ d: 4, n: 2, s: -1 }); - assert.equal("-1/2", tmp.s * tmp.n + "/" + tmp.d); - - var tmp = new Fraction(-88.3); - assert.equal("-883/10", tmp.s * tmp.n + "/" + tmp.d); - - var tmp = new Fraction(-88.3).clone(); - assert.equal("-883/10", tmp.s * tmp.n + "/" + tmp.d); - - var tmp = new Fraction("123.'3'"); - assert.equal("370/3", tmp.s * tmp.n + "/" + tmp.d); - - var tmp = new Fraction("123.'3'").clone(); - assert.equal("370/3", tmp.s * tmp.n + "/" + tmp.d); - - var tmp = new Fraction([-1023461776, 334639305]); - tmp = tmp.add([4, 25]); - assert.equal("-4849597436/1673196525", tmp.s * tmp.n + "/" + tmp.d); - }); -}); - -describe('Latex Output', function () { - - it("Should pass 123.'3' = \\frac{370}{3}", function () { - - var tmp = new Fraction("123.'3'"); - assert.equal("\\frac{370}{3}", tmp.toLatex()); - }); - - it("Should pass 1.'3' = \\frac{4}{3}", function () { - - var tmp = new Fraction("1.'3'"); - assert.equal("\\frac{4}{3}", tmp.toLatex()); - }); - - it("Should pass -1.0000000000 = -1", function () { - - var tmp = new Fraction("-1.0000000000"); - assert.equal('-1', tmp.toLatex()); - }); - - it("Should pass -0.0000000000 = 0", function () { - - var tmp = new Fraction("-0.0000000000"); - assert.equal('0', tmp.toLatex()); - }); -}); - -describe('Fraction Output', function () { - - it("Should pass 123.'3' = 123 1/3", function () { - - var tmp = new Fraction("123.'3'"); - assert.equal('370/3', tmp.toFraction()); - }); - - it("Should pass 1.'3' = 1 1/3", function () { - - var tmp = new Fraction("1.'3'"); - assert.equal('4/3', tmp.toFraction()); - }); - - it("Should pass -1.0000000000 = -1", function () { - - var tmp = new Fraction("-1.0000000000"); - assert.equal('-1', tmp.toFraction()); - }); - - it("Should pass -0.0000000000 = 0", function () { - - var tmp = new Fraction("-0.0000000000"); - assert.equal('0', tmp.toFraction()); - }); - - it("Should pass 1/-99/293 = -1/29007", function () { - - var tmp = new Fraction(-99).inverse().div(293); - assert.equal('-1/29007', tmp.toFraction()); - }); - - it('Should work with large calculations', function () { - var x = Fraction(1123875); - var y = Fraction(1238750184); - var z = Fraction(1657134); - var r = Fraction(77344464613500, 92063); - assert.equal(x.mul(y).div(z).toFraction(), r.toFraction()); - }); -}); - -describe('Fraction toContinued', function () { - - it("Should pass 415/93", function () { - - var tmp = new Fraction(415, 93); - assert.equal('4,2,6,7', tmp.toContinued().toString()); - }); - - it("Should pass 0/2", function () { - - var tmp = new Fraction(0, 2); - assert.equal('0', tmp.toContinued().toString()); - }); - - it("Should pass 1/7", function () { - - var tmp = new Fraction(1, 7); - assert.equal('0,7', tmp.toContinued().toString()); - }); - - it("Should pass 23/88", function () { - - var tmp = new Fraction('23/88'); - assert.equal('0,3,1,4,1,3', tmp.toContinued().toString()); - }); - - it("Should pass 1/99", function () { - - var tmp = new Fraction('1/99'); - assert.equal('0,99', tmp.toContinued().toString()); - }); - - it("Should pass 1768/99", function () { - - var tmp = new Fraction('1768/99'); - assert.equal('17,1,6,14', tmp.toContinued().toString()); - }); - - it("Should pass 1768/99", function () { - - var tmp = new Fraction('7/8'); - assert.equal('0,1,7', tmp.toContinued().toString()); - }); - -}); - - -describe('Fraction simplify', function () { - - it("Should pass 415/93", function () { - - var tmp = new Fraction(415, 93); - assert.equal('9/2', tmp.simplify(0.1).toFraction()); - assert.equal('58/13', tmp.simplify(0.01).toFraction()); - assert.equal('415/93', tmp.simplify(0.0001).toFraction()); - }); - -}); diff --git a/build_vtk_bundle/node_modules/fs.realpath/LICENSE b/build_vtk_bundle/node_modules/fs.realpath/LICENSE deleted file mode 100644 index 5bd884c2..00000000 --- a/build_vtk_bundle/node_modules/fs.realpath/LICENSE +++ /dev/null @@ -1,43 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - ----- - -This library bundles a version of the `fs.realpath` and `fs.realpathSync` -methods from Node.js v0.10 under the terms of the Node.js MIT license. - -Node's license follows, also included at the header of `old.js` which contains -the licensed code: - - Copyright Joyent, Inc. and other Node contributors. - - Permission is hereby granted, free of charge, to any person obtaining a - copy of this software and associated documentation files (the "Software"), - to deal in the Software without restriction, including without limitation - the rights to use, copy, modify, merge, publish, distribute, sublicense, - and/or sell copies of the Software, and to permit persons to whom the - Software is furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/fs.realpath/README.md b/build_vtk_bundle/node_modules/fs.realpath/README.md deleted file mode 100644 index a42ceac6..00000000 --- a/build_vtk_bundle/node_modules/fs.realpath/README.md +++ /dev/null @@ -1,33 +0,0 @@ -# fs.realpath - -A backwards-compatible fs.realpath for Node v6 and above - -In Node v6, the JavaScript implementation of fs.realpath was replaced -with a faster (but less resilient) native implementation. That raises -new and platform-specific errors and cannot handle long or excessively -symlink-looping paths. - -This module handles those cases by detecting the new errors and -falling back to the JavaScript implementation. On versions of Node -prior to v6, it has no effect. - -## USAGE - -```js -var rp = require('fs.realpath') - -// async version -rp.realpath(someLongAndLoopingPath, function (er, real) { - // the ELOOP was handled, but it was a bit slower -}) - -// sync version -var real = rp.realpathSync(someLongAndLoopingPath) - -// monkeypatch at your own risk! -// This replaces the fs.realpath/fs.realpathSync builtins -rp.monkeypatch() - -// un-do the monkeypatching -rp.unmonkeypatch() -``` diff --git a/build_vtk_bundle/node_modules/fs.realpath/index.js b/build_vtk_bundle/node_modules/fs.realpath/index.js deleted file mode 100644 index b09c7c7e..00000000 --- a/build_vtk_bundle/node_modules/fs.realpath/index.js +++ /dev/null @@ -1,66 +0,0 @@ -module.exports = realpath -realpath.realpath = realpath -realpath.sync = realpathSync -realpath.realpathSync = realpathSync -realpath.monkeypatch = monkeypatch -realpath.unmonkeypatch = unmonkeypatch - -var fs = require('fs') -var origRealpath = fs.realpath -var origRealpathSync = fs.realpathSync - -var version = process.version -var ok = /^v[0-5]\./.test(version) -var old = require('./old.js') - -function newError (er) { - return er && er.syscall === 'realpath' && ( - er.code === 'ELOOP' || - er.code === 'ENOMEM' || - er.code === 'ENAMETOOLONG' - ) -} - -function realpath (p, cache, cb) { - if (ok) { - return origRealpath(p, cache, cb) - } - - if (typeof cache === 'function') { - cb = cache - cache = null - } - origRealpath(p, cache, function (er, result) { - if (newError(er)) { - old.realpath(p, cache, cb) - } else { - cb(er, result) - } - }) -} - -function realpathSync (p, cache) { - if (ok) { - return origRealpathSync(p, cache) - } - - try { - return origRealpathSync(p, cache) - } catch (er) { - if (newError(er)) { - return old.realpathSync(p, cache) - } else { - throw er - } - } -} - -function monkeypatch () { - fs.realpath = realpath - fs.realpathSync = realpathSync -} - -function unmonkeypatch () { - fs.realpath = origRealpath - fs.realpathSync = origRealpathSync -} diff --git a/build_vtk_bundle/node_modules/fs.realpath/old.js b/build_vtk_bundle/node_modules/fs.realpath/old.js deleted file mode 100644 index b40305e7..00000000 --- a/build_vtk_bundle/node_modules/fs.realpath/old.js +++ /dev/null @@ -1,303 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -var pathModule = require('path'); -var isWindows = process.platform === 'win32'; -var fs = require('fs'); - -// JavaScript implementation of realpath, ported from node pre-v6 - -var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG); - -function rethrow() { - // Only enable in debug mode. A backtrace uses ~1000 bytes of heap space and - // is fairly slow to generate. - var callback; - if (DEBUG) { - var backtrace = new Error; - callback = debugCallback; - } else - callback = missingCallback; - - return callback; - - function debugCallback(err) { - if (err) { - backtrace.message = err.message; - err = backtrace; - missingCallback(err); - } - } - - function missingCallback(err) { - if (err) { - if (process.throwDeprecation) - throw err; // Forgot a callback but don't know where? Use NODE_DEBUG=fs - else if (!process.noDeprecation) { - var msg = 'fs: missing callback ' + (err.stack || err.message); - if (process.traceDeprecation) - console.trace(msg); - else - console.error(msg); - } - } - } -} - -function maybeCallback(cb) { - return typeof cb === 'function' ? cb : rethrow(); -} - -var normalize = pathModule.normalize; - -// Regexp that finds the next partion of a (partial) path -// result is [base_with_slash, base], e.g. ['somedir/', 'somedir'] -if (isWindows) { - var nextPartRe = /(.*?)(?:[\/\\]+|$)/g; -} else { - var nextPartRe = /(.*?)(?:[\/]+|$)/g; -} - -// Regex to find the device root, including trailing slash. E.g. 'c:\\'. -if (isWindows) { - var splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/; -} else { - var splitRootRe = /^[\/]*/; -} - -exports.realpathSync = function realpathSync(p, cache) { - // make p is absolute - p = pathModule.resolve(p); - - if (cache && Object.prototype.hasOwnProperty.call(cache, p)) { - return cache[p]; - } - - var original = p, - seenLinks = {}, - knownHard = {}; - - // current character position in p - var pos; - // the partial path so far, including a trailing slash if any - var current; - // the partial path without a trailing slash (except when pointing at a root) - var base; - // the partial path scanned in the previous round, with slash - var previous; - - start(); - - function start() { - // Skip over roots - var m = splitRootRe.exec(p); - pos = m[0].length; - current = m[0]; - base = m[0]; - previous = ''; - - // On windows, check that the root exists. On unix there is no need. - if (isWindows && !knownHard[base]) { - fs.lstatSync(base); - knownHard[base] = true; - } - } - - // walk down the path, swapping out linked pathparts for their real - // values - // NB: p.length changes. - while (pos < p.length) { - // find the next part - nextPartRe.lastIndex = pos; - var result = nextPartRe.exec(p); - previous = current; - current += result[0]; - base = previous + result[1]; - pos = nextPartRe.lastIndex; - - // continue if not a symlink - if (knownHard[base] || (cache && cache[base] === base)) { - continue; - } - - var resolvedLink; - if (cache && Object.prototype.hasOwnProperty.call(cache, base)) { - // some known symbolic link. no need to stat again. - resolvedLink = cache[base]; - } else { - var stat = fs.lstatSync(base); - if (!stat.isSymbolicLink()) { - knownHard[base] = true; - if (cache) cache[base] = base; - continue; - } - - // read the link if it wasn't read before - // dev/ino always return 0 on windows, so skip the check. - var linkTarget = null; - if (!isWindows) { - var id = stat.dev.toString(32) + ':' + stat.ino.toString(32); - if (seenLinks.hasOwnProperty(id)) { - linkTarget = seenLinks[id]; - } - } - if (linkTarget === null) { - fs.statSync(base); - linkTarget = fs.readlinkSync(base); - } - resolvedLink = pathModule.resolve(previous, linkTarget); - // track this, if given a cache. - if (cache) cache[base] = resolvedLink; - if (!isWindows) seenLinks[id] = linkTarget; - } - - // resolve the link, then start over - p = pathModule.resolve(resolvedLink, p.slice(pos)); - start(); - } - - if (cache) cache[original] = p; - - return p; -}; - - -exports.realpath = function realpath(p, cache, cb) { - if (typeof cb !== 'function') { - cb = maybeCallback(cache); - cache = null; - } - - // make p is absolute - p = pathModule.resolve(p); - - if (cache && Object.prototype.hasOwnProperty.call(cache, p)) { - return process.nextTick(cb.bind(null, null, cache[p])); - } - - var original = p, - seenLinks = {}, - knownHard = {}; - - // current character position in p - var pos; - // the partial path so far, including a trailing slash if any - var current; - // the partial path without a trailing slash (except when pointing at a root) - var base; - // the partial path scanned in the previous round, with slash - var previous; - - start(); - - function start() { - // Skip over roots - var m = splitRootRe.exec(p); - pos = m[0].length; - current = m[0]; - base = m[0]; - previous = ''; - - // On windows, check that the root exists. On unix there is no need. - if (isWindows && !knownHard[base]) { - fs.lstat(base, function(err) { - if (err) return cb(err); - knownHard[base] = true; - LOOP(); - }); - } else { - process.nextTick(LOOP); - } - } - - // walk down the path, swapping out linked pathparts for their real - // values - function LOOP() { - // stop if scanned past end of path - if (pos >= p.length) { - if (cache) cache[original] = p; - return cb(null, p); - } - - // find the next part - nextPartRe.lastIndex = pos; - var result = nextPartRe.exec(p); - previous = current; - current += result[0]; - base = previous + result[1]; - pos = nextPartRe.lastIndex; - - // continue if not a symlink - if (knownHard[base] || (cache && cache[base] === base)) { - return process.nextTick(LOOP); - } - - if (cache && Object.prototype.hasOwnProperty.call(cache, base)) { - // known symbolic link. no need to stat again. - return gotResolvedLink(cache[base]); - } - - return fs.lstat(base, gotStat); - } - - function gotStat(err, stat) { - if (err) return cb(err); - - // if not a symlink, skip to the next path part - if (!stat.isSymbolicLink()) { - knownHard[base] = true; - if (cache) cache[base] = base; - return process.nextTick(LOOP); - } - - // stat & read the link if not read before - // call gotTarget as soon as the link target is known - // dev/ino always return 0 on windows, so skip the check. - if (!isWindows) { - var id = stat.dev.toString(32) + ':' + stat.ino.toString(32); - if (seenLinks.hasOwnProperty(id)) { - return gotTarget(null, seenLinks[id], base); - } - } - fs.stat(base, function(err) { - if (err) return cb(err); - - fs.readlink(base, function(err, target) { - if (!isWindows) seenLinks[id] = target; - gotTarget(err, target); - }); - }); - } - - function gotTarget(err, target, base) { - if (err) return cb(err); - - var resolvedLink = pathModule.resolve(previous, target); - if (cache) cache[base] = resolvedLink; - gotResolvedLink(resolvedLink); - } - - function gotResolvedLink(resolvedLink) { - // resolve the link, then start over - p = pathModule.resolve(resolvedLink, p.slice(pos)); - start(); - } -}; diff --git a/build_vtk_bundle/node_modules/fs.realpath/package.json b/build_vtk_bundle/node_modules/fs.realpath/package.json deleted file mode 100644 index 3edc57d2..00000000 --- a/build_vtk_bundle/node_modules/fs.realpath/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "fs.realpath", - "version": "1.0.0", - "description": "Use node's fs.realpath, but fall back to the JS implementation if the native one fails", - "main": "index.js", - "dependencies": {}, - "devDependencies": {}, - "scripts": { - "test": "tap test/*.js --cov" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/isaacs/fs.realpath.git" - }, - "keywords": [ - "realpath", - "fs", - "polyfill" - ], - "author": "Isaac Z. Schlueter (http://blog.izs.me/)", - "license": "ISC", - "files": [ - "old.js", - "index.js" - ] -} diff --git a/build_vtk_bundle/node_modules/function-bind/.eslintrc b/build_vtk_bundle/node_modules/function-bind/.eslintrc deleted file mode 100644 index 71a054fd..00000000 --- a/build_vtk_bundle/node_modules/function-bind/.eslintrc +++ /dev/null @@ -1,21 +0,0 @@ -{ - "root": true, - - "extends": "@ljharb", - - "rules": { - "func-name-matching": 0, - "indent": [2, 4], - "no-new-func": [1], - }, - - "overrides": [ - { - "files": "test/**", - "rules": { - "max-lines-per-function": 0, - "strict": [0] - }, - }, - ], -} diff --git a/build_vtk_bundle/node_modules/function-bind/.github/FUNDING.yml b/build_vtk_bundle/node_modules/function-bind/.github/FUNDING.yml deleted file mode 100644 index 74482195..00000000 --- a/build_vtk_bundle/node_modules/function-bind/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: [ljharb] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: npm/function-bind -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/build_vtk_bundle/node_modules/function-bind/.github/SECURITY.md b/build_vtk_bundle/node_modules/function-bind/.github/SECURITY.md deleted file mode 100644 index 82e4285a..00000000 --- a/build_vtk_bundle/node_modules/function-bind/.github/SECURITY.md +++ /dev/null @@ -1,3 +0,0 @@ -# Security - -Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report. diff --git a/build_vtk_bundle/node_modules/function-bind/.nycrc b/build_vtk_bundle/node_modules/function-bind/.nycrc deleted file mode 100644 index 1826526e..00000000 --- a/build_vtk_bundle/node_modules/function-bind/.nycrc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "all": true, - "check-coverage": false, - "reporter": ["text-summary", "text", "html", "json"], - "lines": 86, - "statements": 85.93, - "functions": 82.43, - "branches": 76.06, - "exclude": [ - "coverage", - "test" - ] -} diff --git a/build_vtk_bundle/node_modules/function-bind/CHANGELOG.md b/build_vtk_bundle/node_modules/function-bind/CHANGELOG.md deleted file mode 100644 index f9e6cc07..00000000 --- a/build_vtk_bundle/node_modules/function-bind/CHANGELOG.md +++ /dev/null @@ -1,136 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [v1.1.2](https://github.com/ljharb/function-bind/compare/v1.1.1...v1.1.2) - 2023-10-12 - -### Merged - -- Point to the correct file [`#16`](https://github.com/ljharb/function-bind/pull/16) - -### Commits - -- [Tests] migrate tests to Github Actions [`4f8b57c`](https://github.com/ljharb/function-bind/commit/4f8b57c02f2011fe9ae353d5e74e8745f0988af8) -- [Tests] remove `jscs` [`90eb2ed`](https://github.com/ljharb/function-bind/commit/90eb2edbeefd5b76cd6c3a482ea3454db169b31f) -- [meta] update `.gitignore` [`53fcdc3`](https://github.com/ljharb/function-bind/commit/53fcdc371cd66634d6e9b71c836a50f437e89fed) -- [Tests] up to `node` `v11.10`, `v10.15`, `v9.11`, `v8.15`, `v6.16`, `v4.9`; use `nvm install-latest-npm`; run audit script in tests [`1fe8f6e`](https://github.com/ljharb/function-bind/commit/1fe8f6e9aed0dfa8d8b3cdbd00c7f5ea0cd2b36e) -- [meta] add `auto-changelog` [`1921fcb`](https://github.com/ljharb/function-bind/commit/1921fcb5b416b63ffc4acad051b6aad5722f777d) -- [Robustness] remove runtime dependency on all builtins except `.apply` [`f743e61`](https://github.com/ljharb/function-bind/commit/f743e61aa6bb2360358c04d4884c9db853d118b7) -- Docs: enable badges; update wording [`503cb12`](https://github.com/ljharb/function-bind/commit/503cb12d998b5f91822776c73332c7adcd6355dd) -- [readme] update badges [`290c5db`](https://github.com/ljharb/function-bind/commit/290c5dbbbda7264efaeb886552a374b869a4bb48) -- [Tests] switch to nyc for coverage [`ea360ba`](https://github.com/ljharb/function-bind/commit/ea360ba907fc2601ed18d01a3827fa2d3533cdf8) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`cae5e9e`](https://github.com/ljharb/function-bind/commit/cae5e9e07a5578dc6df26c03ee22851ce05b943c) -- [meta] add `funding` field; create FUNDING.yml [`c9f4274`](https://github.com/ljharb/function-bind/commit/c9f4274aa80ea3aae9657a3938fdba41a3b04ca6) -- [Tests] fix eslint errors from #15 [`f69aaa2`](https://github.com/ljharb/function-bind/commit/f69aaa2beb2fdab4415bfb885760a699d0b9c964) -- [actions] fix permissions [`99a0cd9`](https://github.com/ljharb/function-bind/commit/99a0cd9f3b5bac223a0d572f081834cd73314be7) -- [meta] use `npmignore` to autogenerate an npmignore file [`f03b524`](https://github.com/ljharb/function-bind/commit/f03b524ca91f75a109a5d062f029122c86ecd1ae) -- [Dev Deps] update `@ljharb/eslint‑config`, `eslint`, `tape` [`7af9300`](https://github.com/ljharb/function-bind/commit/7af930023ae2ce7645489532821e4fbbcd7a2280) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `covert`, `tape` [`64a9127`](https://github.com/ljharb/function-bind/commit/64a9127ab0bd331b93d6572eaf6e9971967fc08c) -- [Tests] use `aud` instead of `npm audit` [`e75069c`](https://github.com/ljharb/function-bind/commit/e75069c50010a8fcce2a9ce2324934c35fdb4386) -- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`d03555c`](https://github.com/ljharb/function-bind/commit/d03555ca59dea3b71ce710045e4303b9e2619e28) -- [meta] add `safe-publish-latest` [`9c8f809`](https://github.com/ljharb/function-bind/commit/9c8f8092aed027d7e80c94f517aa892385b64f09) -- [Dev Deps] update `@ljharb/eslint-config`, `tape` [`baf6893`](https://github.com/ljharb/function-bind/commit/baf6893e27f5b59abe88bc1995e6f6ed1e527397) -- [meta] create SECURITY.md [`4db1779`](https://github.com/ljharb/function-bind/commit/4db17799f1f28ae294cb95e0081ca2b591c3911b) -- [Tests] add `npm run audit` [`c8b38ec`](https://github.com/ljharb/function-bind/commit/c8b38ec40ed3f85dabdee40ed4148f1748375bc2) -- Revert "Point to the correct file" [`05cdf0f`](https://github.com/ljharb/function-bind/commit/05cdf0fa205c6a3c5ba40bbedd1dfa9874f915c9) - -## [v1.1.1](https://github.com/ljharb/function-bind/compare/v1.1.0...v1.1.1) - 2017-08-28 - -### Commits - -- [Tests] up to `node` `v8`; newer npm breaks on older node; fix scripts [`817f7d2`](https://github.com/ljharb/function-bind/commit/817f7d28470fdbff8ef608d4d565dd4d1430bc5e) -- [Dev Deps] update `eslint`, `jscs`, `tape`, `@ljharb/eslint-config` [`854288b`](https://github.com/ljharb/function-bind/commit/854288b1b6f5c555f89aceb9eff1152510262084) -- [Dev Deps] update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config` [`83e639f`](https://github.com/ljharb/function-bind/commit/83e639ff74e6cd6921285bccec22c1bcf72311bd) -- Only apps should have lockfiles [`5ed97f5`](https://github.com/ljharb/function-bind/commit/5ed97f51235c17774e0832e122abda0f3229c908) -- Use a SPDX-compliant “license” field. [`5feefea`](https://github.com/ljharb/function-bind/commit/5feefea0dc0193993e83e5df01ded424403a5381) - -## [v1.1.0](https://github.com/ljharb/function-bind/compare/v1.0.2...v1.1.0) - 2016-02-14 - -### Commits - -- Update `eslint`, `tape`; use my personal shared `eslint` config [`9c9062a`](https://github.com/ljharb/function-bind/commit/9c9062abbe9dd70b59ea2c3a3c3a81f29b457097) -- Add `npm run eslint` [`dd96c56`](https://github.com/ljharb/function-bind/commit/dd96c56720034a3c1ffee10b8a59a6f7c53e24ad) -- [New] return the native `bind` when available. [`82186e0`](https://github.com/ljharb/function-bind/commit/82186e03d73e580f95ff167e03f3582bed90ed72) -- [Dev Deps] update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config` [`a3dd767`](https://github.com/ljharb/function-bind/commit/a3dd76720c795cb7f4586b0544efabf8aa107b8b) -- Update `eslint` [`3dae2f7`](https://github.com/ljharb/function-bind/commit/3dae2f7423de30a2d20313ddb1edc19660142fe9) -- Update `tape`, `covert`, `jscs` [`a181eee`](https://github.com/ljharb/function-bind/commit/a181eee0cfa24eb229c6e843a971f36e060a2f6a) -- [Tests] up to `node` `v5.6`, `v4.3` [`964929a`](https://github.com/ljharb/function-bind/commit/964929a6a4ddb36fb128de2bcc20af5e4f22e1ed) -- Test up to `io.js` `v2.1` [`2be7310`](https://github.com/ljharb/function-bind/commit/2be7310f2f74886a7124ca925be411117d41d5ea) -- Update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config` [`45f3d68`](https://github.com/ljharb/function-bind/commit/45f3d6865c6ca93726abcef54febe009087af101) -- [Dev Deps] update `tape`, `jscs` [`6e1340d`](https://github.com/ljharb/function-bind/commit/6e1340d94642deaecad3e717825db641af4f8b1f) -- [Tests] up to `io.js` `v3.3`, `node` `v4.1` [`d9bad2b`](https://github.com/ljharb/function-bind/commit/d9bad2b778b1b3a6dd2876087b88b3acf319f8cc) -- Update `eslint` [`935590c`](https://github.com/ljharb/function-bind/commit/935590caa024ab356102e4858e8fc315b2ccc446) -- [Dev Deps] update `jscs`, `eslint`, `@ljharb/eslint-config` [`8c9a1ef`](https://github.com/ljharb/function-bind/commit/8c9a1efd848e5167887aa8501857a0940a480c57) -- Test on `io.js` `v2.2` [`9a3a38c`](https://github.com/ljharb/function-bind/commit/9a3a38c92013aed6e108666e7bd40969b84ac86e) -- Run `travis-ci` tests on `iojs` and `node` v0.12; speed up builds; allow 0.8 failures. [`69afc26`](https://github.com/ljharb/function-bind/commit/69afc2617405b147dd2a8d8ae73ca9e9283f18b4) -- [Dev Deps] Update `tape`, `eslint` [`36c1be0`](https://github.com/ljharb/function-bind/commit/36c1be0ab12b45fe5df6b0fdb01a5d5137fd0115) -- Update `tape`, `jscs` [`98d8303`](https://github.com/ljharb/function-bind/commit/98d8303cd5ca1c6b8f985469f86b0d44d7d45f6e) -- Update `jscs` [`9633a4e`](https://github.com/ljharb/function-bind/commit/9633a4e9fbf82051c240855166e468ba8ba0846f) -- Update `tape`, `jscs` [`c80ef0f`](https://github.com/ljharb/function-bind/commit/c80ef0f46efc9791e76fa50de4414092ac147831) -- Test up to `io.js` `v3.0` [`7e2c853`](https://github.com/ljharb/function-bind/commit/7e2c8537d52ab9cf5a655755561d8917684c0df4) -- Test on `io.js` `v2.4` [`5a199a2`](https://github.com/ljharb/function-bind/commit/5a199a27ba46795ba5eaf0845d07d4b8232895c9) -- Test on `io.js` `v2.3` [`a511b88`](https://github.com/ljharb/function-bind/commit/a511b8896de0bddf3b56862daa416c701f4d0453) -- Fixing a typo from 822b4e1938db02dc9584aa434fd3a45cb20caf43 [`732d6b6`](https://github.com/ljharb/function-bind/commit/732d6b63a9b33b45230e630dbcac7a10855d3266) -- Update `jscs` [`da52a48`](https://github.com/ljharb/function-bind/commit/da52a4886c06d6490f46ae30b15e4163ba08905d) -- Lock covert to v1.0.0. [`d6150fd`](https://github.com/ljharb/function-bind/commit/d6150fda1e6f486718ebdeff823333d9e48e7430) - -## [v1.0.2](https://github.com/ljharb/function-bind/compare/v1.0.1...v1.0.2) - 2014-10-04 - -## [v1.0.1](https://github.com/ljharb/function-bind/compare/v1.0.0...v1.0.1) - 2014-10-03 - -### Merged - -- make CI build faster [`#3`](https://github.com/ljharb/function-bind/pull/3) - -### Commits - -- Using my standard jscs.json [`d8ee94c`](https://github.com/ljharb/function-bind/commit/d8ee94c993eff0a84cf5744fe6a29627f5cffa1a) -- Adding `npm run lint` [`7571ab7`](https://github.com/ljharb/function-bind/commit/7571ab7dfdbd99b25a1dbb2d232622bd6f4f9c10) -- Using consistent indentation [`e91a1b1`](https://github.com/ljharb/function-bind/commit/e91a1b13a61e99ec1e530e299b55508f74218a95) -- Updating jscs [`7e17892`](https://github.com/ljharb/function-bind/commit/7e1789284bc629bc9c1547a61c9b227bbd8c7a65) -- Using consistent quotes [`c50b57f`](https://github.com/ljharb/function-bind/commit/c50b57fcd1c5ec38320979c837006069ebe02b77) -- Adding keywords [`cb94631`](https://github.com/ljharb/function-bind/commit/cb946314eed35f21186a25fb42fc118772f9ee00) -- Directly export a function expression instead of using a declaration, and relying on hoisting. [`5a33c5f`](https://github.com/ljharb/function-bind/commit/5a33c5f45642de180e0d207110bf7d1843ceb87c) -- Naming npm URL and badge in README; use SVG [`2aef8fc`](https://github.com/ljharb/function-bind/commit/2aef8fcb79d54e63a58ae557c4e60949e05d5e16) -- Naming deps URLs in README [`04228d7`](https://github.com/ljharb/function-bind/commit/04228d766670ee45ca24e98345c1f6a7621065b5) -- Naming travis-ci URLs in README; using SVG [`62c810c`](https://github.com/ljharb/function-bind/commit/62c810c2f54ced956cd4d4ab7b793055addfe36e) -- Make sure functions are invoked correctly (also passing coverage tests) [`2b289b4`](https://github.com/ljharb/function-bind/commit/2b289b4dfbf037ffcfa4dc95eb540f6165e9e43a) -- Removing the strict mode pragmas; they make tests fail. [`1aa701d`](https://github.com/ljharb/function-bind/commit/1aa701d199ddc3782476e8f7eef82679be97b845) -- Adding myself as a contributor [`85fd57b`](https://github.com/ljharb/function-bind/commit/85fd57b0860e5a7af42de9a287f3f265fc6d72fc) -- Adding strict mode pragmas [`915b08e`](https://github.com/ljharb/function-bind/commit/915b08e084c86a722eafe7245e21db74aa21ca4c) -- Adding devDeps URLs to README [`4ccc731`](https://github.com/ljharb/function-bind/commit/4ccc73112c1769859e4ca3076caf4086b3cba2cd) -- Fixing the description. [`a7a472c`](https://github.com/ljharb/function-bind/commit/a7a472cf649af515c635cf560fc478fbe48999c8) -- Using a function expression instead of a function declaration. [`b5d3e4e`](https://github.com/ljharb/function-bind/commit/b5d3e4ea6aaffc63888953eeb1fbc7ff45f1fa14) -- Updating tape [`f086be6`](https://github.com/ljharb/function-bind/commit/f086be6029fb56dde61a258c1340600fa174d1e0) -- Updating jscs [`5f9bdb3`](https://github.com/ljharb/function-bind/commit/5f9bdb375ab13ba48f30852aab94029520c54d71) -- Updating jscs [`9b409ba`](https://github.com/ljharb/function-bind/commit/9b409ba6118e23395a4e5d83ef39152aab9d3bfc) -- Run coverage as part of tests. [`8e1b6d4`](https://github.com/ljharb/function-bind/commit/8e1b6d459f047d1bd4fee814e01247c984c80bd0) -- Run linter as part of tests [`c1ca83f`](https://github.com/ljharb/function-bind/commit/c1ca83f832df94587d09e621beba682fabfaa987) -- Updating covert [`701e837`](https://github.com/ljharb/function-bind/commit/701e83774b57b4d3ef631e1948143f43a72f4bb9) - -## [v1.0.0](https://github.com/ljharb/function-bind/compare/v0.2.0...v1.0.0) - 2014-08-09 - -### Commits - -- Make sure old and unstable nodes don't fail Travis [`27adca3`](https://github.com/ljharb/function-bind/commit/27adca34a4ab6ad67b6dfde43942a1b103ce4d75) -- Fixing an issue when the bound function is called as a constructor in ES3. [`e20122d`](https://github.com/ljharb/function-bind/commit/e20122d267d92ce553859b280cbbea5d27c07731) -- Adding `npm run coverage` [`a2e29c4`](https://github.com/ljharb/function-bind/commit/a2e29c4ecaef9e2f6cd1603e868c139073375502) -- Updating tape [`b741168`](https://github.com/ljharb/function-bind/commit/b741168b12b235b1717ff696087645526b69213c) -- Upgrading tape [`63631a0`](https://github.com/ljharb/function-bind/commit/63631a04c7fbe97cc2fa61829cc27246d6986f74) -- Updating tape [`363cb46`](https://github.com/ljharb/function-bind/commit/363cb46dafb23cb3e347729a22f9448051d78464) - -## v0.2.0 - 2014-03-23 - -### Commits - -- Updating test coverage to match es5-shim. [`aa94d44`](https://github.com/ljharb/function-bind/commit/aa94d44b8f9d7f69f10e060db7709aa7a694e5d4) -- initial [`942ee07`](https://github.com/ljharb/function-bind/commit/942ee07e94e542d91798137bc4b80b926137e066) -- Setting the bound function's length properly. [`079f46a`](https://github.com/ljharb/function-bind/commit/079f46a2d3515b7c0b308c2c13fceb641f97ca25) -- Ensuring that some older browsers will throw when given a regex. [`36ac55b`](https://github.com/ljharb/function-bind/commit/36ac55b87f460d4330253c92870aa26fbfe8227f) -- Removing npm scripts that don't have dependencies [`9d2be60`](https://github.com/ljharb/function-bind/commit/9d2be600002cb8bc8606f8f3585ad3e05868c750) -- Updating tape [`297a4ac`](https://github.com/ljharb/function-bind/commit/297a4acc5464db381940aafb194d1c88f4e678f3) -- Skipping length tests for now. [`d9891ea`](https://github.com/ljharb/function-bind/commit/d9891ea4d2aaffa69f408339cdd61ff740f70565) -- don't take my tea [`dccd930`](https://github.com/ljharb/function-bind/commit/dccd930bfd60ea10cb178d28c97550c3bc8c1e07) diff --git a/build_vtk_bundle/node_modules/function-bind/LICENSE b/build_vtk_bundle/node_modules/function-bind/LICENSE deleted file mode 100644 index 62d6d237..00000000 --- a/build_vtk_bundle/node_modules/function-bind/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2013 Raynos. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - diff --git a/build_vtk_bundle/node_modules/function-bind/README.md b/build_vtk_bundle/node_modules/function-bind/README.md deleted file mode 100644 index 814c20b5..00000000 --- a/build_vtk_bundle/node_modules/function-bind/README.md +++ /dev/null @@ -1,46 +0,0 @@ -# function-bind [![Version Badge][npm-version-svg]][package-url] - -[![github actions][actions-image]][actions-url] - -[![dependency status][deps-svg]][deps-url] -[![dev dependency status][dev-deps-svg]][dev-deps-url] -[![License][license-image]][license-url] -[![Downloads][downloads-image]][downloads-url] - -[![npm badge][npm-badge-png]][package-url] - -Implementation of function.prototype.bind - -Old versions of phantomjs, Internet Explorer < 9, and node < 0.6 don't support `Function.prototype.bind`. - -## Example - -```js -Function.prototype.bind = require("function-bind") -``` - -## Installation - -`npm install function-bind` - -## Contributors - - - Raynos - -## MIT Licenced - -[package-url]: https://npmjs.org/package/function-bind -[npm-version-svg]: https://versionbadg.es/Raynos/function-bind.svg -[deps-svg]: https://david-dm.org/Raynos/function-bind.svg -[deps-url]: https://david-dm.org/Raynos/function-bind -[dev-deps-svg]: https://david-dm.org/Raynos/function-bind/dev-status.svg -[dev-deps-url]: https://david-dm.org/Raynos/function-bind#info=devDependencies -[npm-badge-png]: https://nodei.co/npm/function-bind.png?downloads=true&stars=true -[license-image]: https://img.shields.io/npm/l/function-bind.svg -[license-url]: LICENSE -[downloads-image]: https://img.shields.io/npm/dm/function-bind.svg -[downloads-url]: https://npm-stat.com/charts.html?package=function-bind -[codecov-image]: https://codecov.io/gh/Raynos/function-bind/branch/main/graphs/badge.svg -[codecov-url]: https://app.codecov.io/gh/Raynos/function-bind/ -[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/Raynos/function-bind -[actions-url]: https://github.com/Raynos/function-bind/actions diff --git a/build_vtk_bundle/node_modules/function-bind/implementation.js b/build_vtk_bundle/node_modules/function-bind/implementation.js deleted file mode 100644 index fd4384cc..00000000 --- a/build_vtk_bundle/node_modules/function-bind/implementation.js +++ /dev/null @@ -1,84 +0,0 @@ -'use strict'; - -/* eslint no-invalid-this: 1 */ - -var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible '; -var toStr = Object.prototype.toString; -var max = Math.max; -var funcType = '[object Function]'; - -var concatty = function concatty(a, b) { - var arr = []; - - for (var i = 0; i < a.length; i += 1) { - arr[i] = a[i]; - } - for (var j = 0; j < b.length; j += 1) { - arr[j + a.length] = b[j]; - } - - return arr; -}; - -var slicy = function slicy(arrLike, offset) { - var arr = []; - for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) { - arr[j] = arrLike[i]; - } - return arr; -}; - -var joiny = function (arr, joiner) { - var str = ''; - for (var i = 0; i < arr.length; i += 1) { - str += arr[i]; - if (i + 1 < arr.length) { - str += joiner; - } - } - return str; -}; - -module.exports = function bind(that) { - var target = this; - if (typeof target !== 'function' || toStr.apply(target) !== funcType) { - throw new TypeError(ERROR_MESSAGE + target); - } - var args = slicy(arguments, 1); - - var bound; - var binder = function () { - if (this instanceof bound) { - var result = target.apply( - this, - concatty(args, arguments) - ); - if (Object(result) === result) { - return result; - } - return this; - } - return target.apply( - that, - concatty(args, arguments) - ); - - }; - - var boundLength = max(0, target.length - args.length); - var boundArgs = []; - for (var i = 0; i < boundLength; i++) { - boundArgs[i] = '$' + i; - } - - bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder); - - if (target.prototype) { - var Empty = function Empty() {}; - Empty.prototype = target.prototype; - bound.prototype = new Empty(); - Empty.prototype = null; - } - - return bound; -}; diff --git a/build_vtk_bundle/node_modules/function-bind/index.js b/build_vtk_bundle/node_modules/function-bind/index.js deleted file mode 100644 index 3bb6b960..00000000 --- a/build_vtk_bundle/node_modules/function-bind/index.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var implementation = require('./implementation'); - -module.exports = Function.prototype.bind || implementation; diff --git a/build_vtk_bundle/node_modules/function-bind/package.json b/build_vtk_bundle/node_modules/function-bind/package.json deleted file mode 100644 index 61859638..00000000 --- a/build_vtk_bundle/node_modules/function-bind/package.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "name": "function-bind", - "version": "1.1.2", - "description": "Implementation of Function.prototype.bind", - "keywords": [ - "function", - "bind", - "shim", - "es5" - ], - "author": "Raynos ", - "repository": { - "type": "git", - "url": "https://github.com/Raynos/function-bind.git" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "main": "index", - "homepage": "https://github.com/Raynos/function-bind", - "contributors": [ - { - "name": "Raynos" - }, - { - "name": "Jordan Harband", - "url": "https://github.com/ljharb" - } - ], - "bugs": { - "url": "https://github.com/Raynos/function-bind/issues", - "email": "raynos2@gmail.com" - }, - "devDependencies": { - "@ljharb/eslint-config": "^21.1.0", - "aud": "^2.0.3", - "auto-changelog": "^2.4.0", - "eslint": "=8.8.0", - "in-publish": "^2.0.1", - "npmignore": "^0.3.0", - "nyc": "^10.3.2", - "safe-publish-latest": "^2.0.0", - "tape": "^5.7.1" - }, - "license": "MIT", - "scripts": { - "prepublishOnly": "safe-publish-latest", - "prepublish": "not-in-publish || npm run prepublishOnly", - "prepack": "npmignore --auto --commentLines=autogenerated", - "pretest": "npm run lint", - "test": "npm run tests-only", - "posttest": "aud --production", - "tests-only": "nyc tape 'test/**/*.js'", - "lint": "eslint --ext=js,mjs .", - "version": "auto-changelog && git add CHANGELOG.md", - "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" - }, - "testling": { - "files": "test/index.js", - "browsers": [ - "ie/8..latest", - "firefox/16..latest", - "firefox/nightly", - "chrome/22..latest", - "chrome/canary", - "opera/12..latest", - "opera/next", - "safari/5.1..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2..latest" - ] - }, - "auto-changelog": { - "output": "CHANGELOG.md", - "template": "keepachangelog", - "unreleased": false, - "commitLimit": false, - "backfillLimit": false, - "hideCredit": true - }, - "publishConfig": { - "ignore": [ - ".github/workflows" - ] - } -} diff --git a/build_vtk_bundle/node_modules/function-bind/test/.eslintrc b/build_vtk_bundle/node_modules/function-bind/test/.eslintrc deleted file mode 100644 index 8a56d5b7..00000000 --- a/build_vtk_bundle/node_modules/function-bind/test/.eslintrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "rules": { - "array-bracket-newline": 0, - "array-element-newline": 0, - "max-statements-per-line": [2, { "max": 2 }], - "no-invalid-this": 0, - "no-magic-numbers": 0, - } -} diff --git a/build_vtk_bundle/node_modules/function-bind/test/index.js b/build_vtk_bundle/node_modules/function-bind/test/index.js deleted file mode 100644 index 2edecce2..00000000 --- a/build_vtk_bundle/node_modules/function-bind/test/index.js +++ /dev/null @@ -1,252 +0,0 @@ -// jscs:disable requireUseStrict - -var test = require('tape'); - -var functionBind = require('../implementation'); -var getCurrentContext = function () { return this; }; - -test('functionBind is a function', function (t) { - t.equal(typeof functionBind, 'function'); - t.end(); -}); - -test('non-functions', function (t) { - var nonFunctions = [true, false, [], {}, 42, 'foo', NaN, /a/g]; - t.plan(nonFunctions.length); - for (var i = 0; i < nonFunctions.length; ++i) { - try { functionBind.call(nonFunctions[i]); } catch (ex) { - t.ok(ex instanceof TypeError, 'throws when given ' + String(nonFunctions[i])); - } - } - t.end(); -}); - -test('without a context', function (t) { - t.test('binds properly', function (st) { - var args, context; - var namespace = { - func: functionBind.call(function () { - args = Array.prototype.slice.call(arguments); - context = this; - }) - }; - namespace.func(1, 2, 3); - st.deepEqual(args, [1, 2, 3]); - st.equal(context, getCurrentContext.call()); - st.end(); - }); - - t.test('binds properly, and still supplies bound arguments', function (st) { - var args, context; - var namespace = { - func: functionBind.call(function () { - args = Array.prototype.slice.call(arguments); - context = this; - }, undefined, 1, 2, 3) - }; - namespace.func(4, 5, 6); - st.deepEqual(args, [1, 2, 3, 4, 5, 6]); - st.equal(context, getCurrentContext.call()); - st.end(); - }); - - t.test('returns properly', function (st) { - var args; - var namespace = { - func: functionBind.call(function () { - args = Array.prototype.slice.call(arguments); - return this; - }, null) - }; - var context = namespace.func(1, 2, 3); - st.equal(context, getCurrentContext.call(), 'returned context is namespaced context'); - st.deepEqual(args, [1, 2, 3], 'passed arguments are correct'); - st.end(); - }); - - t.test('returns properly with bound arguments', function (st) { - var args; - var namespace = { - func: functionBind.call(function () { - args = Array.prototype.slice.call(arguments); - return this; - }, null, 1, 2, 3) - }; - var context = namespace.func(4, 5, 6); - st.equal(context, getCurrentContext.call(), 'returned context is namespaced context'); - st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'passed arguments are correct'); - st.end(); - }); - - t.test('called as a constructor', function (st) { - var thunkify = function (value) { - return function () { return value; }; - }; - st.test('returns object value', function (sst) { - var expectedReturnValue = [1, 2, 3]; - var Constructor = functionBind.call(thunkify(expectedReturnValue), null); - var result = new Constructor(); - sst.equal(result, expectedReturnValue); - sst.end(); - }); - - st.test('does not return primitive value', function (sst) { - var Constructor = functionBind.call(thunkify(42), null); - var result = new Constructor(); - sst.notEqual(result, 42); - sst.end(); - }); - - st.test('object from bound constructor is instance of original and bound constructor', function (sst) { - var A = function (x) { - this.name = x || 'A'; - }; - var B = functionBind.call(A, null, 'B'); - - var result = new B(); - sst.ok(result instanceof B, 'result is instance of bound constructor'); - sst.ok(result instanceof A, 'result is instance of original constructor'); - sst.end(); - }); - - st.end(); - }); - - t.end(); -}); - -test('with a context', function (t) { - t.test('with no bound arguments', function (st) { - var args, context; - var boundContext = {}; - var namespace = { - func: functionBind.call(function () { - args = Array.prototype.slice.call(arguments); - context = this; - }, boundContext) - }; - namespace.func(1, 2, 3); - st.equal(context, boundContext, 'binds a context properly'); - st.deepEqual(args, [1, 2, 3], 'supplies passed arguments'); - st.end(); - }); - - t.test('with bound arguments', function (st) { - var args, context; - var boundContext = {}; - var namespace = { - func: functionBind.call(function () { - args = Array.prototype.slice.call(arguments); - context = this; - }, boundContext, 1, 2, 3) - }; - namespace.func(4, 5, 6); - st.equal(context, boundContext, 'binds a context properly'); - st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'supplies bound and passed arguments'); - st.end(); - }); - - t.test('returns properly', function (st) { - var boundContext = {}; - var args; - var namespace = { - func: functionBind.call(function () { - args = Array.prototype.slice.call(arguments); - return this; - }, boundContext) - }; - var context = namespace.func(1, 2, 3); - st.equal(context, boundContext, 'returned context is bound context'); - st.notEqual(context, getCurrentContext.call(), 'returned context is not lexical context'); - st.deepEqual(args, [1, 2, 3], 'passed arguments are correct'); - st.end(); - }); - - t.test('returns properly with bound arguments', function (st) { - var boundContext = {}; - var args; - var namespace = { - func: functionBind.call(function () { - args = Array.prototype.slice.call(arguments); - return this; - }, boundContext, 1, 2, 3) - }; - var context = namespace.func(4, 5, 6); - st.equal(context, boundContext, 'returned context is bound context'); - st.notEqual(context, getCurrentContext.call(), 'returned context is not lexical context'); - st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'passed arguments are correct'); - st.end(); - }); - - t.test('passes the correct arguments when called as a constructor', function (st) { - var expected = { name: 'Correct' }; - var namespace = { - Func: functionBind.call(function (arg) { - return arg; - }, { name: 'Incorrect' }) - }; - var returned = new namespace.Func(expected); - st.equal(returned, expected, 'returns the right arg when called as a constructor'); - st.end(); - }); - - t.test('has the new instance\'s context when called as a constructor', function (st) { - var actualContext; - var expectedContext = { foo: 'bar' }; - var namespace = { - Func: functionBind.call(function () { - actualContext = this; - }, expectedContext) - }; - var result = new namespace.Func(); - st.equal(result instanceof namespace.Func, true); - st.notEqual(actualContext, expectedContext); - st.end(); - }); - - t.end(); -}); - -test('bound function length', function (t) { - t.test('sets a correct length without thisArg', function (st) { - var subject = functionBind.call(function (a, b, c) { return a + b + c; }); - st.equal(subject.length, 3); - st.equal(subject(1, 2, 3), 6); - st.end(); - }); - - t.test('sets a correct length with thisArg', function (st) { - var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {}); - st.equal(subject.length, 3); - st.equal(subject(1, 2, 3), 6); - st.end(); - }); - - t.test('sets a correct length without thisArg and first argument', function (st) { - var subject = functionBind.call(function (a, b, c) { return a + b + c; }, undefined, 1); - st.equal(subject.length, 2); - st.equal(subject(2, 3), 6); - st.end(); - }); - - t.test('sets a correct length with thisArg and first argument', function (st) { - var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {}, 1); - st.equal(subject.length, 2); - st.equal(subject(2, 3), 6); - st.end(); - }); - - t.test('sets a correct length without thisArg and too many arguments', function (st) { - var subject = functionBind.call(function (a, b, c) { return a + b + c; }, undefined, 1, 2, 3, 4); - st.equal(subject.length, 0); - st.equal(subject(), 6); - st.end(); - }); - - t.test('sets a correct length with thisArg and too many arguments', function (st) { - var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {}, 1, 2, 3, 4); - st.equal(subject.length, 0); - st.equal(subject(), 6); - st.end(); - }); -}); diff --git a/build_vtk_bundle/node_modules/gensync/LICENSE b/build_vtk_bundle/node_modules/gensync/LICENSE deleted file mode 100644 index af7f781f..00000000 --- a/build_vtk_bundle/node_modules/gensync/LICENSE +++ /dev/null @@ -1,7 +0,0 @@ -Copyright 2018 Logan Smyth - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/gensync/README.md b/build_vtk_bundle/node_modules/gensync/README.md deleted file mode 100644 index f68ce1a3..00000000 --- a/build_vtk_bundle/node_modules/gensync/README.md +++ /dev/null @@ -1,196 +0,0 @@ -# gensync - -This module allows for developers to write common code that can share -implementation details, hiding whether an underlying request happens -synchronously or asynchronously. This is in contrast with many current Node -APIs which explicitly implement the same API twice, once with calls to -synchronous functions, and once with asynchronous functions. - -Take for example `fs.readFile` and `fs.readFileSync`, if you're writing an API -that loads a file and then performs a synchronous operation on the data, it -can be frustrating to maintain two parallel functions. - - -## Example - -```js -const fs = require("fs"); -const gensync = require("gensync"); - -const readFile = gensync({ - sync: fs.readFileSync, - errback: fs.readFile, -}); - -const myOperation = gensync(function* (filename) { - const code = yield* readFile(filename, "utf8"); - - return "// some custom prefix\n" + code; -}); - -// Load and add the prefix synchronously: -const result = myOperation.sync("./some-file.js"); - -// Load and add the prefix asynchronously with promises: -myOperation.async("./some-file.js").then(result => { - -}); - -// Load and add the prefix asynchronously with promises: -myOperation.errback("./some-file.js", (err, result) => { - -}); -``` - -This could even be exposed as your official API by doing -```js -// Using the common 'Sync' suffix for sync functions, and 'Async' suffix for -// promise-returning versions. -exports.myOperationSync = myOperation.sync; -exports.myOperationAsync = myOperation.async; -exports.myOperation = myOperation.errback; -``` -or potentially expose one of the async versions as the default, with a -`.sync` property on the function to expose the synchronous version. -```js -module.exports = myOperation.errback; -module.exports.sync = myOperation.sync; -```` - - -## API - -### gensync(generatorFnOrOptions) - -Returns a function that can be "await"-ed in another `gensync` generator -function, or executed via - -* `.sync(...args)` - Returns the computed value, or throws. -* `.async(...args)` - Returns a promise for the computed value. -* `.errback(...args, (err, result) => {})` - Calls the callback with the computed value, or error. - - -#### Passed a generator - -Wraps the generator to populate the `.sync`/`.async`/`.errback` helpers above to -allow for evaluation of the generator for the final value. - -##### Example - -```js -const readFile = function* () { - return 42; -}; - -const readFileAndMore = gensync(function* (){ - const val = yield* readFile(); - return 42 + val; -}); - -// In general cases -const code = readFileAndMore.sync("./file.js", "utf8"); -readFileAndMore.async("./file.js", "utf8").then(code => {}) -readFileAndMore.errback("./file.js", "utf8", (err, code) => {}); - -// In a generator being called indirectly with .sync/.async/.errback -const code = yield* readFileAndMore("./file.js", "utf8"); -``` - - -#### Passed an options object - -* `opts.sync` - - Example: `(...args) => 4` - - A function that will be called when `.sync()` is called on the `gensync()` - result, or when the result is passed to `yield*` in another generator that - is being run synchronously. - - Also called for `.async()` calls if no async handlers are provided. - -* `opts.async` - - Example: `async (...args) => 4` - - A function that will be called when `.async()` or `.errback()` is called on - the `gensync()` result, or when the result is passed to `yield*` in another - generator that is being run asynchronously. - -* `opts.errback` - - Example: `(...args, cb) => cb(null, 4)` - - A function that will be called when `.async()` or `.errback()` is called on - the `gensync()` result, or when the result is passed to `yield*` in another - generator that is being run asynchronously. - - This option allows for simpler compatibility with many existing Node APIs, - and also avoids introducing the extra even loop turns that promises introduce - to access the result value. - -* `opts.name` - - Example: `"readFile"` - - A string name to apply to the returned function. If no value is provided, - the name of `errback`/`async`/`sync` functions will be used, with any - `Sync` or `Async` suffix stripped off. If the callback is simply named - with ES6 inference (same name as the options property), the name is ignored. - -* `opts.arity` - - Example: `4` - - A number for the length to set on the returned function. If no value - is provided, the length will be carried over from the `sync` function's - `length` value. - -##### Example - -```js -const readFile = gensync({ - sync: fs.readFileSync, - errback: fs.readFile, -}); - -const code = readFile.sync("./file.js", "utf8"); -readFile.async("./file.js", "utf8").then(code => {}) -readFile.errback("./file.js", "utf8", (err, code) => {}); -``` - - -### gensync.all(iterable) - -`Promise.all`-like combinator that works with an iterable of generator objects -that could be passed to `yield*` within a gensync generator. - -#### Example - -```js -const loadFiles = gensync(function* () { - return yield* gensync.all([ - readFile("./one.js"), - readFile("./two.js"), - readFile("./three.js"), - ]); -}); -``` - - -### gensync.race(iterable) - -`Promise.race`-like combinator that works with an iterable of generator objects -that could be passed to `yield*` within a gensync generator. - -#### Example - -```js -const loadFiles = gensync(function* () { - return yield* gensync.race([ - readFile("./one.js"), - readFile("./two.js"), - readFile("./three.js"), - ]); -}); -``` diff --git a/build_vtk_bundle/node_modules/gensync/index.js b/build_vtk_bundle/node_modules/gensync/index.js deleted file mode 100644 index ee0ea616..00000000 --- a/build_vtk_bundle/node_modules/gensync/index.js +++ /dev/null @@ -1,373 +0,0 @@ -"use strict"; - -// These use the global symbol registry so that multiple copies of this -// library can work together in case they are not deduped. -const GENSYNC_START = Symbol.for("gensync:v1:start"); -const GENSYNC_SUSPEND = Symbol.for("gensync:v1:suspend"); - -const GENSYNC_EXPECTED_START = "GENSYNC_EXPECTED_START"; -const GENSYNC_EXPECTED_SUSPEND = "GENSYNC_EXPECTED_SUSPEND"; -const GENSYNC_OPTIONS_ERROR = "GENSYNC_OPTIONS_ERROR"; -const GENSYNC_RACE_NONEMPTY = "GENSYNC_RACE_NONEMPTY"; -const GENSYNC_ERRBACK_NO_CALLBACK = "GENSYNC_ERRBACK_NO_CALLBACK"; - -module.exports = Object.assign( - function gensync(optsOrFn) { - let genFn = optsOrFn; - if (typeof optsOrFn !== "function") { - genFn = newGenerator(optsOrFn); - } else { - genFn = wrapGenerator(optsOrFn); - } - - return Object.assign(genFn, makeFunctionAPI(genFn)); - }, - { - all: buildOperation({ - name: "all", - arity: 1, - sync: function(args) { - const items = Array.from(args[0]); - return items.map(item => evaluateSync(item)); - }, - async: function(args, resolve, reject) { - const items = Array.from(args[0]); - - if (items.length === 0) { - Promise.resolve().then(() => resolve([])); - return; - } - - let count = 0; - const results = items.map(() => undefined); - items.forEach((item, i) => { - evaluateAsync( - item, - val => { - results[i] = val; - count += 1; - - if (count === results.length) resolve(results); - }, - reject - ); - }); - }, - }), - race: buildOperation({ - name: "race", - arity: 1, - sync: function(args) { - const items = Array.from(args[0]); - if (items.length === 0) { - throw makeError("Must race at least 1 item", GENSYNC_RACE_NONEMPTY); - } - - return evaluateSync(items[0]); - }, - async: function(args, resolve, reject) { - const items = Array.from(args[0]); - if (items.length === 0) { - throw makeError("Must race at least 1 item", GENSYNC_RACE_NONEMPTY); - } - - for (const item of items) { - evaluateAsync(item, resolve, reject); - } - }, - }), - } -); - -/** - * Given a generator function, return the standard API object that executes - * the generator and calls the callbacks. - */ -function makeFunctionAPI(genFn) { - const fns = { - sync: function(...args) { - return evaluateSync(genFn.apply(this, args)); - }, - async: function(...args) { - return new Promise((resolve, reject) => { - evaluateAsync(genFn.apply(this, args), resolve, reject); - }); - }, - errback: function(...args) { - const cb = args.pop(); - if (typeof cb !== "function") { - throw makeError( - "Asynchronous function called without callback", - GENSYNC_ERRBACK_NO_CALLBACK - ); - } - - let gen; - try { - gen = genFn.apply(this, args); - } catch (err) { - cb(err); - return; - } - - evaluateAsync(gen, val => cb(undefined, val), err => cb(err)); - }, - }; - return fns; -} - -function assertTypeof(type, name, value, allowUndefined) { - if ( - typeof value === type || - (allowUndefined && typeof value === "undefined") - ) { - return; - } - - let msg; - if (allowUndefined) { - msg = `Expected opts.${name} to be either a ${type}, or undefined.`; - } else { - msg = `Expected opts.${name} to be a ${type}.`; - } - - throw makeError(msg, GENSYNC_OPTIONS_ERROR); -} -function makeError(msg, code) { - return Object.assign(new Error(msg), { code }); -} - -/** - * Given an options object, return a new generator that dispatches the - * correct handler based on sync or async execution. - */ -function newGenerator({ name, arity, sync, async, errback }) { - assertTypeof("string", "name", name, true /* allowUndefined */); - assertTypeof("number", "arity", arity, true /* allowUndefined */); - assertTypeof("function", "sync", sync); - assertTypeof("function", "async", async, true /* allowUndefined */); - assertTypeof("function", "errback", errback, true /* allowUndefined */); - if (async && errback) { - throw makeError( - "Expected one of either opts.async or opts.errback, but got _both_.", - GENSYNC_OPTIONS_ERROR - ); - } - - if (typeof name !== "string") { - let fnName; - if (errback && errback.name && errback.name !== "errback") { - fnName = errback.name; - } - if (async && async.name && async.name !== "async") { - fnName = async.name.replace(/Async$/, ""); - } - if (sync && sync.name && sync.name !== "sync") { - fnName = sync.name.replace(/Sync$/, ""); - } - - if (typeof fnName === "string") { - name = fnName; - } - } - - if (typeof arity !== "number") { - arity = sync.length; - } - - return buildOperation({ - name, - arity, - sync: function(args) { - return sync.apply(this, args); - }, - async: function(args, resolve, reject) { - if (async) { - async.apply(this, args).then(resolve, reject); - } else if (errback) { - errback.call(this, ...args, (err, value) => { - if (err == null) resolve(value); - else reject(err); - }); - } else { - resolve(sync.apply(this, args)); - } - }, - }); -} - -function wrapGenerator(genFn) { - return setFunctionMetadata(genFn.name, genFn.length, function(...args) { - return genFn.apply(this, args); - }); -} - -function buildOperation({ name, arity, sync, async }) { - return setFunctionMetadata(name, arity, function*(...args) { - const resume = yield GENSYNC_START; - if (!resume) { - // Break the tail call to avoid a bug in V8 v6.X with --harmony enabled. - const res = sync.call(this, args); - return res; - } - - let result; - try { - async.call( - this, - args, - value => { - if (result) return; - - result = { value }; - resume(); - }, - err => { - if (result) return; - - result = { err }; - resume(); - } - ); - } catch (err) { - result = { err }; - resume(); - } - - // Suspend until the callbacks run. Will resume synchronously if the - // callback was already called. - yield GENSYNC_SUSPEND; - - if (result.hasOwnProperty("err")) { - throw result.err; - } - - return result.value; - }); -} - -function evaluateSync(gen) { - let value; - while (!({ value } = gen.next()).done) { - assertStart(value, gen); - } - return value; -} - -function evaluateAsync(gen, resolve, reject) { - (function step() { - try { - let value; - while (!({ value } = gen.next()).done) { - assertStart(value, gen); - - // If this throws, it is considered to have broken the contract - // established for async handlers. If these handlers are called - // synchronously, it is also considered bad behavior. - let sync = true; - let didSyncResume = false; - const out = gen.next(() => { - if (sync) { - didSyncResume = true; - } else { - step(); - } - }); - sync = false; - - assertSuspend(out, gen); - - if (!didSyncResume) { - // Callback wasn't called synchronously, so break out of the loop - // and let it call 'step' later. - return; - } - } - - return resolve(value); - } catch (err) { - return reject(err); - } - })(); -} - -function assertStart(value, gen) { - if (value === GENSYNC_START) return; - - throwError( - gen, - makeError( - `Got unexpected yielded value in gensync generator: ${JSON.stringify( - value - )}. Did you perhaps mean to use 'yield*' instead of 'yield'?`, - GENSYNC_EXPECTED_START - ) - ); -} -function assertSuspend({ value, done }, gen) { - if (!done && value === GENSYNC_SUSPEND) return; - - throwError( - gen, - makeError( - done - ? "Unexpected generator completion. If you get this, it is probably a gensync bug." - : `Expected GENSYNC_SUSPEND, got ${JSON.stringify( - value - )}. If you get this, it is probably a gensync bug.`, - GENSYNC_EXPECTED_SUSPEND - ) - ); -} - -function throwError(gen, err) { - // Call `.throw` so that users can step in a debugger to easily see which - // 'yield' passed an unexpected value. If the `.throw` call didn't throw - // back to the generator, we explicitly do it to stop the error - // from being swallowed by user code try/catches. - if (gen.throw) gen.throw(err); - throw err; -} - -function isIterable(value) { - return ( - !!value && - (typeof value === "object" || typeof value === "function") && - !value[Symbol.iterator] - ); -} - -function setFunctionMetadata(name, arity, fn) { - if (typeof name === "string") { - // This should always work on the supported Node versions, but for the - // sake of users that are compiling to older versions, we check for - // configurability so we don't throw. - const nameDesc = Object.getOwnPropertyDescriptor(fn, "name"); - if (!nameDesc || nameDesc.configurable) { - Object.defineProperty( - fn, - "name", - Object.assign(nameDesc || {}, { - configurable: true, - value: name, - }) - ); - } - } - - if (typeof arity === "number") { - const lengthDesc = Object.getOwnPropertyDescriptor(fn, "length"); - if (!lengthDesc || lengthDesc.configurable) { - Object.defineProperty( - fn, - "length", - Object.assign(lengthDesc || {}, { - configurable: true, - value: arity, - }) - ); - } - } - - return fn; -} diff --git a/build_vtk_bundle/node_modules/gensync/index.js.flow b/build_vtk_bundle/node_modules/gensync/index.js.flow deleted file mode 100644 index fa22e0ba..00000000 --- a/build_vtk_bundle/node_modules/gensync/index.js.flow +++ /dev/null @@ -1,32 +0,0 @@ -// @flow - -opaque type Next = Function | void; -opaque type Yield = mixed; - -export type Gensync = { - (...args: Args): Handler, - sync(...args: Args): Return, - async(...args: Args): Promise, - // ...args: [...Args, Callback] - errback(...args: any[]): void, -}; - -export type Handler = Generator; -export type Options = { - sync(...args: Args): Return, - arity?: number, - name?: string, -} & ( - | { async?: (...args: Args) => Promise } - // ...args: [...Args, Callback] - | { errback(...args: any[]): void } -); - -declare module.exports: { - ( - Options | ((...args: Args) => Handler) - ): Gensync, - - all(Array>): Handler, - race(Array>): Handler, -}; diff --git a/build_vtk_bundle/node_modules/gensync/package.json b/build_vtk_bundle/node_modules/gensync/package.json deleted file mode 100644 index 07f87570..00000000 --- a/build_vtk_bundle/node_modules/gensync/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "gensync", - "version": "1.0.0-beta.2", - "license": "MIT", - "description": "Allows users to use generators in order to write common functions that can be both sync or async.", - "main": "index.js", - "author": "Logan Smyth ", - "homepage": "https://github.com/loganfsmyth/gensync", - "repository": { - "type": "git", - "url": "https://github.com/loganfsmyth/gensync.git" - }, - "scripts": { - "test": "jest" - }, - "engines": { - "node": ">=6.9.0" - }, - "keywords": [ - "async", - "sync", - "generators", - "async-await", - "callbacks" - ], - "devDependencies": { - "babel-core": "^6.26.3", - "babel-preset-env": "^1.6.1", - "eslint": "^4.19.1", - "eslint-config-prettier": "^2.9.0", - "eslint-plugin-node": "^6.0.1", - "eslint-plugin-prettier": "^2.6.0", - "flow-bin": "^0.71.0", - "jest": "^22.4.3", - "prettier": "^1.12.1" - } -} diff --git a/build_vtk_bundle/node_modules/gensync/test/.babelrc b/build_vtk_bundle/node_modules/gensync/test/.babelrc deleted file mode 100644 index cc7f4e98..00000000 --- a/build_vtk_bundle/node_modules/gensync/test/.babelrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - presets: [ - ["env", { targets: { node: "current" }}], - ], -} diff --git a/build_vtk_bundle/node_modules/gensync/test/index.test.js b/build_vtk_bundle/node_modules/gensync/test/index.test.js deleted file mode 100644 index ca1a2695..00000000 --- a/build_vtk_bundle/node_modules/gensync/test/index.test.js +++ /dev/null @@ -1,489 +0,0 @@ -"use strict"; - -const promisify = require("util.promisify"); -const gensync = require("../"); - -const TEST_ERROR = new Error("TEST_ERROR"); - -const DID_ERROR = new Error("DID_ERROR"); - -const doSuccess = gensync({ - sync: () => 42, - async: () => Promise.resolve(42), -}); - -const doError = gensync({ - sync: () => { - throw DID_ERROR; - }, - async: () => Promise.reject(DID_ERROR), -}); - -function throwTestError() { - throw TEST_ERROR; -} - -async function expectResult( - fn, - arg, - { error, value, expectSync = false, syncErrback = expectSync } -) { - if (!expectSync) { - expect(() => fn.sync(arg)).toThrow(TEST_ERROR); - } else if (error) { - expect(() => fn.sync(arg)).toThrow(error); - } else { - expect(fn.sync(arg)).toBe(value); - } - - if (error) { - await expect(fn.async(arg)).rejects.toBe(error); - } else { - await expect(fn.async(arg)).resolves.toBe(value); - } - - await new Promise((resolve, reject) => { - let sync = true; - fn.errback(arg, (err, val) => { - try { - expect(err).toBe(error); - expect(val).toBe(value); - expect(sync).toBe(syncErrback); - - resolve(); - } catch (e) { - reject(e); - } - }); - sync = false; - }); -} - -describe("gensync({})", () => { - describe("option validation", () => { - test("disallow async and errback handler together", () => { - try { - gensync({ - sync: throwTestError, - async: throwTestError, - errback: throwTestError, - }); - - throwTestError(); - } catch (err) { - expect(err.message).toMatch( - /Expected one of either opts.async or opts.errback, but got _both_\./ - ); - expect(err.code).toBe("GENSYNC_OPTIONS_ERROR"); - } - }); - - test("disallow missing sync handler", () => { - try { - gensync({ - async: throwTestError, - }); - - throwTestError(); - } catch (err) { - expect(err.message).toMatch(/Expected opts.sync to be a function./); - expect(err.code).toBe("GENSYNC_OPTIONS_ERROR"); - } - }); - - test("errback callback required", () => { - const fn = gensync({ - sync: throwTestError, - async: throwTestError, - }); - - try { - fn.errback(); - - throwTestError(); - } catch (err) { - expect(err.message).toMatch(/function called without callback/); - expect(err.code).toBe("GENSYNC_ERRBACK_NO_CALLBACK"); - } - }); - }); - - describe("generator function metadata", () => { - test("automatic naming", () => { - expect( - gensync({ - sync: function readFileSync() {}, - async: () => {}, - }).name - ).toBe("readFile"); - expect( - gensync({ - sync: function readFile() {}, - async: () => {}, - }).name - ).toBe("readFile"); - expect( - gensync({ - sync: function readFileAsync() {}, - async: () => {}, - }).name - ).toBe("readFileAsync"); - - expect( - gensync({ - sync: () => {}, - async: function readFileSync() {}, - }).name - ).toBe("readFileSync"); - expect( - gensync({ - sync: () => {}, - async: function readFile() {}, - }).name - ).toBe("readFile"); - expect( - gensync({ - sync: () => {}, - async: function readFileAsync() {}, - }).name - ).toBe("readFile"); - - expect( - gensync({ - sync: () => {}, - errback: function readFileSync() {}, - }).name - ).toBe("readFileSync"); - expect( - gensync({ - sync: () => {}, - errback: function readFile() {}, - }).name - ).toBe("readFile"); - expect( - gensync({ - sync: () => {}, - errback: function readFileAsync() {}, - }).name - ).toBe("readFileAsync"); - }); - - test("explicit naming", () => { - expect( - gensync({ - name: "readFile", - sync: () => {}, - async: () => {}, - }).name - ).toBe("readFile"); - }); - - test("default arity", () => { - expect( - gensync({ - sync: function(a, b, c, d, e, f, g) { - throwTestError(); - }, - async: throwTestError, - }).length - ).toBe(7); - }); - - test("explicit arity", () => { - expect( - gensync({ - arity: 3, - sync: throwTestError, - async: throwTestError, - }).length - ).toBe(3); - }); - }); - - describe("'sync' handler", async () => { - test("success", async () => { - const fn = gensync({ - sync: (...args) => JSON.stringify(args), - }); - - await expectResult(fn, 42, { value: "[42]", expectSync: true }); - }); - - test("failure", async () => { - const fn = gensync({ - sync: (...args) => { - throw JSON.stringify(args); - }, - }); - - await expectResult(fn, 42, { error: "[42]", expectSync: true }); - }); - }); - - describe("'async' handler", async () => { - test("success", async () => { - const fn = gensync({ - sync: throwTestError, - async: (...args) => Promise.resolve(JSON.stringify(args)), - }); - - await expectResult(fn, 42, { value: "[42]" }); - }); - - test("failure", async () => { - const fn = gensync({ - sync: throwTestError, - async: (...args) => Promise.reject(JSON.stringify(args)), - }); - - await expectResult(fn, 42, { error: "[42]" }); - }); - }); - - describe("'errback' sync handler", async () => { - test("success", async () => { - const fn = gensync({ - sync: throwTestError, - errback: (...args) => args.pop()(null, JSON.stringify(args)), - }); - - await expectResult(fn, 42, { value: "[42]", syncErrback: true }); - }); - - test("failure", async () => { - const fn = gensync({ - sync: throwTestError, - errback: (...args) => args.pop()(JSON.stringify(args)), - }); - - await expectResult(fn, 42, { error: "[42]", syncErrback: true }); - }); - }); - - describe("'errback' async handler", async () => { - test("success", async () => { - const fn = gensync({ - sync: throwTestError, - errback: (...args) => - process.nextTick(() => args.pop()(null, JSON.stringify(args))), - }); - - await expectResult(fn, 42, { value: "[42]" }); - }); - - test("failure", async () => { - const fn = gensync({ - sync: throwTestError, - errback: (...args) => - process.nextTick(() => args.pop()(JSON.stringify(args))), - }); - - await expectResult(fn, 42, { error: "[42]" }); - }); - }); -}); - -describe("gensync(function* () {})", () => { - test("sync throw before body", async () => { - const fn = gensync(function*(arg = throwTestError()) {}); - - await expectResult(fn, undefined, { - error: TEST_ERROR, - syncErrback: true, - }); - }); - - test("sync throw inside body", async () => { - const fn = gensync(function*() { - throwTestError(); - }); - - await expectResult(fn, undefined, { - error: TEST_ERROR, - syncErrback: true, - }); - }); - - test("async throw inside body", async () => { - const fn = gensync(function*() { - const val = yield* doSuccess(); - throwTestError(); - }); - - await expectResult(fn, undefined, { - error: TEST_ERROR, - }); - }); - - test("error inside body", async () => { - const fn = gensync(function*() { - yield* doError(); - }); - - await expectResult(fn, undefined, { - error: DID_ERROR, - expectSync: true, - syncErrback: false, - }); - }); - - test("successful return value", async () => { - const fn = gensync(function*() { - const value = yield* doSuccess(); - - expect(value).toBe(42); - - return 84; - }); - - await expectResult(fn, undefined, { - value: 84, - expectSync: true, - syncErrback: false, - }); - }); - - test("successful final value", async () => { - const fn = gensync(function*() { - return 42; - }); - - await expectResult(fn, undefined, { - value: 42, - expectSync: true, - }); - }); - - test("yield unexpected object", async () => { - const fn = gensync(function*() { - yield {}; - }); - - try { - await fn.async(); - - throwTestError(); - } catch (err) { - expect(err.message).toMatch( - /Got unexpected yielded value in gensync generator/ - ); - expect(err.code).toBe("GENSYNC_EXPECTED_START"); - } - }); - - test("yield suspend yield", async () => { - const fn = gensync(function*() { - yield Symbol.for("gensync:v1:start"); - - // Should be "yield*" for no error. - yield {}; - }); - - try { - await fn.async(); - - throwTestError(); - } catch (err) { - expect(err.message).toMatch(/Expected GENSYNC_SUSPEND, got {}/); - expect(err.code).toBe("GENSYNC_EXPECTED_SUSPEND"); - } - }); - - test("yield suspend return", async () => { - const fn = gensync(function*() { - yield Symbol.for("gensync:v1:start"); - - // Should be "yield*" for no error. - return {}; - }); - - try { - await fn.async(); - - throwTestError(); - } catch (err) { - expect(err.message).toMatch(/Unexpected generator completion/); - expect(err.code).toBe("GENSYNC_EXPECTED_SUSPEND"); - } - }); -}); - -describe("gensync.all()", () => { - test("success", async () => { - const fn = gensync(function*() { - const result = yield* gensync.all([doSuccess(), doSuccess()]); - - expect(result).toEqual([42, 42]); - }); - - await expectResult(fn, undefined, { - value: undefined, - expectSync: true, - syncErrback: false, - }); - }); - - test("error first", async () => { - const fn = gensync(function*() { - yield* gensync.all([doError(), doSuccess()]); - }); - - await expectResult(fn, undefined, { - error: DID_ERROR, - expectSync: true, - syncErrback: false, - }); - }); - - test("error last", async () => { - const fn = gensync(function*() { - yield* gensync.all([doSuccess(), doError()]); - }); - - await expectResult(fn, undefined, { - error: DID_ERROR, - expectSync: true, - syncErrback: false, - }); - }); - - test("empty list", async () => { - const fn = gensync(function*() { - yield* gensync.all([]); - }); - - await expectResult(fn, undefined, { - value: undefined, - expectSync: true, - syncErrback: false, - }); - }); -}); - -describe("gensync.race()", () => { - test("success", async () => { - const fn = gensync(function*() { - const result = yield* gensync.race([doSuccess(), doError()]); - - expect(result).toEqual(42); - }); - - await expectResult(fn, undefined, { - value: undefined, - expectSync: true, - syncErrback: false, - }); - }); - - test("error", async () => { - const fn = gensync(function*() { - yield* gensync.race([doError(), doSuccess()]); - }); - - await expectResult(fn, undefined, { - error: DID_ERROR, - expectSync: true, - syncErrback: false, - }); - }); -}); diff --git a/build_vtk_bundle/node_modules/gl-matrix/LICENSE.md b/build_vtk_bundle/node_modules/gl-matrix/LICENSE.md deleted file mode 100755 index 3a96fca4..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/LICENSE.md +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2015-2021, Brandon Jones, Colin MacKenzie IV. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/README.md b/build_vtk_bundle/node_modules/gl-matrix/README.md deleted file mode 100755 index f58881d2..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/README.md +++ /dev/null @@ -1,33 +0,0 @@ -glMatrix -======================= -[![NPM Version](https://img.shields.io/npm/v/gl-matrix.svg)](https://www.npmjs.com/package/gl-matrix) -[![Build Status](https://travis-ci.org/toji/gl-matrix.svg)](https://travis-ci.org/toji/gl-matrix) - -Javascript has evolved into a language capable of handling realtime 3D graphics, -via WebGL, and computationally intensive tasks such as physics simulations. -These types of applications demand high performance vector and matrix math, -which is something that Javascript doesn't provide by default. -glMatrix to the rescue! - -glMatrix is designed to perform vector and matrix operations stupidly fast! By -hand-tuning each function for maximum performance and encouraging efficient -usage patterns through API conventions, glMatrix will help you get the most out -of your browsers Javascript engine. - -Learn More ----------------------- -For documentation and news, visit the [glMatrix Homepage](http://glmatrix.net/) - -For a tutorial, see [the "introducing glMatrix" section of _Introduction to Computer Graphics_ by David J. Eck](http://math.hws.edu/graphicsbook/c7/s1.html#webgl3d.1.2) - -For a babel plugin to make writing the API nicer, see [babel-plugin-transfrom-gl-matrix](https://github.com/akira-cn/babel-plugin-transform-gl-matrix) - -Regarding the current performance in modern web browsers, calling `glMatrix.setMatrixArrayType(Array)` to use normal arrays instead of Float32Arrays can greatly increase the performance. - -Contributing Guidelines ----------------------- -See [CONTRIBUTING.md](./CONTRIBUTING.md) - -Building ----------------------- -See [BUILDING.md](./BUILDING.md) diff --git a/build_vtk_bundle/node_modules/gl-matrix/cjs/common.js b/build_vtk_bundle/node_modules/gl-matrix/cjs/common.js deleted file mode 100755 index fc38b2d3..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/cjs/common.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.setMatrixArrayType = setMatrixArrayType; -exports.toRadian = toRadian; -exports.equals = equals; -exports.RANDOM = exports.ARRAY_TYPE = exports.EPSILON = void 0; - -/** - * Common utilities - * @module glMatrix - */ -// Configuration Constants -var EPSILON = 0.000001; -exports.EPSILON = EPSILON; -var ARRAY_TYPE = typeof Float32Array !== 'undefined' ? Float32Array : Array; -exports.ARRAY_TYPE = ARRAY_TYPE; -var RANDOM = Math.random; -/** - * Sets the type of array used when creating new vectors and matrices - * - * @param {Float32ArrayConstructor | ArrayConstructor} type Array type, such as Float32Array or Array - */ - -exports.RANDOM = RANDOM; - -function setMatrixArrayType(type) { - exports.ARRAY_TYPE = ARRAY_TYPE = type; -} - -var degree = Math.PI / 180; -/** - * Convert Degree To Radian - * - * @param {Number} a Angle in Degrees - */ - -function toRadian(a) { - return a * degree; -} -/** - * Tests whether or not the arguments have approximately the same value, within an absolute - * or relative tolerance of glMatrix.EPSILON (an absolute tolerance is used for values less - * than or equal to 1.0, and a relative tolerance is used for larger values) - * - * @param {Number} a The first number to test. - * @param {Number} b The second number to test. - * @returns {Boolean} True if the numbers are approximately equal, false otherwise. - */ - - -function equals(a, b) { - return Math.abs(a - b) <= EPSILON * Math.max(1.0, Math.abs(a), Math.abs(b)); -} - -if (!Math.hypot) Math.hypot = function () { - var y = 0, - i = arguments.length; - - while (i--) { - y += arguments[i] * arguments[i]; - } - - return Math.sqrt(y); -}; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/cjs/index.js b/build_vtk_bundle/node_modules/gl-matrix/cjs/index.js deleted file mode 100755 index bb064933..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/cjs/index.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; - -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.vec4 = exports.vec3 = exports.vec2 = exports.quat2 = exports.quat = exports.mat4 = exports.mat3 = exports.mat2d = exports.mat2 = exports.glMatrix = void 0; - -var glMatrix = _interopRequireWildcard(require("./common.js")); - -exports.glMatrix = glMatrix; - -var mat2 = _interopRequireWildcard(require("./mat2.js")); - -exports.mat2 = mat2; - -var mat2d = _interopRequireWildcard(require("./mat2d.js")); - -exports.mat2d = mat2d; - -var mat3 = _interopRequireWildcard(require("./mat3.js")); - -exports.mat3 = mat3; - -var mat4 = _interopRequireWildcard(require("./mat4.js")); - -exports.mat4 = mat4; - -var quat = _interopRequireWildcard(require("./quat.js")); - -exports.quat = quat; - -var quat2 = _interopRequireWildcard(require("./quat2.js")); - -exports.quat2 = quat2; - -var vec2 = _interopRequireWildcard(require("./vec2.js")); - -exports.vec2 = vec2; - -var vec3 = _interopRequireWildcard(require("./vec3.js")); - -exports.vec3 = vec3; - -var vec4 = _interopRequireWildcard(require("./vec4.js")); - -exports.vec4 = vec4; - -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/cjs/mat2.js b/build_vtk_bundle/node_modules/gl-matrix/cjs/mat2.js deleted file mode 100755 index b8b2b30f..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/cjs/mat2.js +++ /dev/null @@ -1,495 +0,0 @@ -"use strict"; - -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.create = create; -exports.clone = clone; -exports.copy = copy; -exports.identity = identity; -exports.fromValues = fromValues; -exports.set = set; -exports.transpose = transpose; -exports.invert = invert; -exports.adjoint = adjoint; -exports.determinant = determinant; -exports.multiply = multiply; -exports.rotate = rotate; -exports.scale = scale; -exports.fromRotation = fromRotation; -exports.fromScaling = fromScaling; -exports.str = str; -exports.frob = frob; -exports.LDU = LDU; -exports.add = add; -exports.subtract = subtract; -exports.exactEquals = exactEquals; -exports.equals = equals; -exports.multiplyScalar = multiplyScalar; -exports.multiplyScalarAndAdd = multiplyScalarAndAdd; -exports.sub = exports.mul = void 0; - -var glMatrix = _interopRequireWildcard(require("./common.js")); - -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - -/** - * 2x2 Matrix - * @module mat2 - */ - -/** - * Creates a new identity mat2 - * - * @returns {mat2} a new 2x2 matrix - */ -function create() { - var out = new glMatrix.ARRAY_TYPE(4); - - if (glMatrix.ARRAY_TYPE != Float32Array) { - out[1] = 0; - out[2] = 0; - } - - out[0] = 1; - out[3] = 1; - return out; -} -/** - * Creates a new mat2 initialized with values from an existing matrix - * - * @param {ReadonlyMat2} a matrix to clone - * @returns {mat2} a new 2x2 matrix - */ - - -function clone(a) { - var out = new glMatrix.ARRAY_TYPE(4); - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - return out; -} -/** - * Copy the values from one mat2 to another - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the source matrix - * @returns {mat2} out - */ - - -function copy(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - return out; -} -/** - * Set a mat2 to the identity matrix - * - * @param {mat2} out the receiving matrix - * @returns {mat2} out - */ - - -function identity(out) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 1; - return out; -} -/** - * Create a new mat2 with the given values - * - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m10 Component in column 1, row 0 position (index 2) - * @param {Number} m11 Component in column 1, row 1 position (index 3) - * @returns {mat2} out A new 2x2 matrix - */ - - -function fromValues(m00, m01, m10, m11) { - var out = new glMatrix.ARRAY_TYPE(4); - out[0] = m00; - out[1] = m01; - out[2] = m10; - out[3] = m11; - return out; -} -/** - * Set the components of a mat2 to the given values - * - * @param {mat2} out the receiving matrix - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m10 Component in column 1, row 0 position (index 2) - * @param {Number} m11 Component in column 1, row 1 position (index 3) - * @returns {mat2} out - */ - - -function set(out, m00, m01, m10, m11) { - out[0] = m00; - out[1] = m01; - out[2] = m10; - out[3] = m11; - return out; -} -/** - * Transpose the values of a mat2 - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the source matrix - * @returns {mat2} out - */ - - -function transpose(out, a) { - // If we are transposing ourselves we can skip a few steps but have to cache - // some values - if (out === a) { - var a1 = a[1]; - out[1] = a[2]; - out[2] = a1; - } else { - out[0] = a[0]; - out[1] = a[2]; - out[2] = a[1]; - out[3] = a[3]; - } - - return out; -} -/** - * Inverts a mat2 - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the source matrix - * @returns {mat2} out - */ - - -function invert(out, a) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; // Calculate the determinant - - var det = a0 * a3 - a2 * a1; - - if (!det) { - return null; - } - - det = 1.0 / det; - out[0] = a3 * det; - out[1] = -a1 * det; - out[2] = -a2 * det; - out[3] = a0 * det; - return out; -} -/** - * Calculates the adjugate of a mat2 - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the source matrix - * @returns {mat2} out - */ - - -function adjoint(out, a) { - // Caching this value is nessecary if out == a - var a0 = a[0]; - out[0] = a[3]; - out[1] = -a[1]; - out[2] = -a[2]; - out[3] = a0; - return out; -} -/** - * Calculates the determinant of a mat2 - * - * @param {ReadonlyMat2} a the source matrix - * @returns {Number} determinant of a - */ - - -function determinant(a) { - return a[0] * a[3] - a[2] * a[1]; -} -/** - * Multiplies two mat2's - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the first operand - * @param {ReadonlyMat2} b the second operand - * @returns {mat2} out - */ - - -function multiply(out, a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3]; - out[0] = a0 * b0 + a2 * b1; - out[1] = a1 * b0 + a3 * b1; - out[2] = a0 * b2 + a2 * b3; - out[3] = a1 * b2 + a3 * b3; - return out; -} -/** - * Rotates a mat2 by the given angle - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat2} out - */ - - -function rotate(out, a, rad) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var s = Math.sin(rad); - var c = Math.cos(rad); - out[0] = a0 * c + a2 * s; - out[1] = a1 * c + a3 * s; - out[2] = a0 * -s + a2 * c; - out[3] = a1 * -s + a3 * c; - return out; -} -/** - * Scales the mat2 by the dimensions in the given vec2 - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the matrix to rotate - * @param {ReadonlyVec2} v the vec2 to scale the matrix by - * @returns {mat2} out - **/ - - -function scale(out, a, v) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var v0 = v[0], - v1 = v[1]; - out[0] = a0 * v0; - out[1] = a1 * v0; - out[2] = a2 * v1; - out[3] = a3 * v1; - return out; -} -/** - * Creates a matrix from a given angle - * This is equivalent to (but much faster than): - * - * mat2.identity(dest); - * mat2.rotate(dest, dest, rad); - * - * @param {mat2} out mat2 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat2} out - */ - - -function fromRotation(out, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); - out[0] = c; - out[1] = s; - out[2] = -s; - out[3] = c; - return out; -} -/** - * Creates a matrix from a vector scaling - * This is equivalent to (but much faster than): - * - * mat2.identity(dest); - * mat2.scale(dest, dest, vec); - * - * @param {mat2} out mat2 receiving operation result - * @param {ReadonlyVec2} v Scaling vector - * @returns {mat2} out - */ - - -function fromScaling(out, v) { - out[0] = v[0]; - out[1] = 0; - out[2] = 0; - out[3] = v[1]; - return out; -} -/** - * Returns a string representation of a mat2 - * - * @param {ReadonlyMat2} a matrix to represent as a string - * @returns {String} string representation of the matrix - */ - - -function str(a) { - return "mat2(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ")"; -} -/** - * Returns Frobenius norm of a mat2 - * - * @param {ReadonlyMat2} a the matrix to calculate Frobenius norm of - * @returns {Number} Frobenius norm - */ - - -function frob(a) { - return Math.hypot(a[0], a[1], a[2], a[3]); -} -/** - * Returns L, D and U matrices (Lower triangular, Diagonal and Upper triangular) by factorizing the input matrix - * @param {ReadonlyMat2} L the lower triangular matrix - * @param {ReadonlyMat2} D the diagonal matrix - * @param {ReadonlyMat2} U the upper triangular matrix - * @param {ReadonlyMat2} a the input matrix to factorize - */ - - -function LDU(L, D, U, a) { - L[2] = a[2] / a[0]; - U[0] = a[0]; - U[1] = a[1]; - U[3] = a[3] - L[2] * U[1]; - return [L, D, U]; -} -/** - * Adds two mat2's - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the first operand - * @param {ReadonlyMat2} b the second operand - * @returns {mat2} out - */ - - -function add(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - out[3] = a[3] + b[3]; - return out; -} -/** - * Subtracts matrix b from matrix a - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the first operand - * @param {ReadonlyMat2} b the second operand - * @returns {mat2} out - */ - - -function subtract(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - out[2] = a[2] - b[2]; - out[3] = a[3] - b[3]; - return out; -} -/** - * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyMat2} a The first matrix. - * @param {ReadonlyMat2} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - - -function exactEquals(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3]; -} -/** - * Returns whether or not the matrices have approximately the same elements in the same position. - * - * @param {ReadonlyMat2} a The first matrix. - * @param {ReadonlyMat2} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - - -function equals(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3]; - return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)); -} -/** - * Multiply each element of the matrix by a scalar. - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the matrix to scale - * @param {Number} b amount to scale the matrix's elements by - * @returns {mat2} out - */ - - -function multiplyScalar(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - out[3] = a[3] * b; - return out; -} -/** - * Adds two mat2's after multiplying each element of the second operand by a scalar value. - * - * @param {mat2} out the receiving vector - * @param {ReadonlyMat2} a the first operand - * @param {ReadonlyMat2} b the second operand - * @param {Number} scale the amount to scale b's elements by before adding - * @returns {mat2} out - */ - - -function multiplyScalarAndAdd(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - out[2] = a[2] + b[2] * scale; - out[3] = a[3] + b[3] * scale; - return out; -} -/** - * Alias for {@link mat2.multiply} - * @function - */ - - -var mul = multiply; -/** - * Alias for {@link mat2.subtract} - * @function - */ - -exports.mul = mul; -var sub = subtract; -exports.sub = sub; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/cjs/mat2d.js b/build_vtk_bundle/node_modules/gl-matrix/cjs/mat2d.js deleted file mode 100755 index 249caa5a..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/cjs/mat2d.js +++ /dev/null @@ -1,547 +0,0 @@ -"use strict"; - -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.create = create; -exports.clone = clone; -exports.copy = copy; -exports.identity = identity; -exports.fromValues = fromValues; -exports.set = set; -exports.invert = invert; -exports.determinant = determinant; -exports.multiply = multiply; -exports.rotate = rotate; -exports.scale = scale; -exports.translate = translate; -exports.fromRotation = fromRotation; -exports.fromScaling = fromScaling; -exports.fromTranslation = fromTranslation; -exports.str = str; -exports.frob = frob; -exports.add = add; -exports.subtract = subtract; -exports.multiplyScalar = multiplyScalar; -exports.multiplyScalarAndAdd = multiplyScalarAndAdd; -exports.exactEquals = exactEquals; -exports.equals = equals; -exports.sub = exports.mul = void 0; - -var glMatrix = _interopRequireWildcard(require("./common.js")); - -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - -/** - * 2x3 Matrix - * @module mat2d - * @description - * A mat2d contains six elements defined as: - *
- * [a, b,
- *  c, d,
- *  tx, ty]
- * 
- * This is a short form for the 3x3 matrix: - *
- * [a, b, 0,
- *  c, d, 0,
- *  tx, ty, 1]
- * 
- * The last column is ignored so the array is shorter and operations are faster. - */ - -/** - * Creates a new identity mat2d - * - * @returns {mat2d} a new 2x3 matrix - */ -function create() { - var out = new glMatrix.ARRAY_TYPE(6); - - if (glMatrix.ARRAY_TYPE != Float32Array) { - out[1] = 0; - out[2] = 0; - out[4] = 0; - out[5] = 0; - } - - out[0] = 1; - out[3] = 1; - return out; -} -/** - * Creates a new mat2d initialized with values from an existing matrix - * - * @param {ReadonlyMat2d} a matrix to clone - * @returns {mat2d} a new 2x3 matrix - */ - - -function clone(a) { - var out = new glMatrix.ARRAY_TYPE(6); - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - return out; -} -/** - * Copy the values from one mat2d to another - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the source matrix - * @returns {mat2d} out - */ - - -function copy(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - return out; -} -/** - * Set a mat2d to the identity matrix - * - * @param {mat2d} out the receiving matrix - * @returns {mat2d} out - */ - - -function identity(out) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 1; - out[4] = 0; - out[5] = 0; - return out; -} -/** - * Create a new mat2d with the given values - * - * @param {Number} a Component A (index 0) - * @param {Number} b Component B (index 1) - * @param {Number} c Component C (index 2) - * @param {Number} d Component D (index 3) - * @param {Number} tx Component TX (index 4) - * @param {Number} ty Component TY (index 5) - * @returns {mat2d} A new mat2d - */ - - -function fromValues(a, b, c, d, tx, ty) { - var out = new glMatrix.ARRAY_TYPE(6); - out[0] = a; - out[1] = b; - out[2] = c; - out[3] = d; - out[4] = tx; - out[5] = ty; - return out; -} -/** - * Set the components of a mat2d to the given values - * - * @param {mat2d} out the receiving matrix - * @param {Number} a Component A (index 0) - * @param {Number} b Component B (index 1) - * @param {Number} c Component C (index 2) - * @param {Number} d Component D (index 3) - * @param {Number} tx Component TX (index 4) - * @param {Number} ty Component TY (index 5) - * @returns {mat2d} out - */ - - -function set(out, a, b, c, d, tx, ty) { - out[0] = a; - out[1] = b; - out[2] = c; - out[3] = d; - out[4] = tx; - out[5] = ty; - return out; -} -/** - * Inverts a mat2d - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the source matrix - * @returns {mat2d} out - */ - - -function invert(out, a) { - var aa = a[0], - ab = a[1], - ac = a[2], - ad = a[3]; - var atx = a[4], - aty = a[5]; - var det = aa * ad - ab * ac; - - if (!det) { - return null; - } - - det = 1.0 / det; - out[0] = ad * det; - out[1] = -ab * det; - out[2] = -ac * det; - out[3] = aa * det; - out[4] = (ac * aty - ad * atx) * det; - out[5] = (ab * atx - aa * aty) * det; - return out; -} -/** - * Calculates the determinant of a mat2d - * - * @param {ReadonlyMat2d} a the source matrix - * @returns {Number} determinant of a - */ - - -function determinant(a) { - return a[0] * a[3] - a[1] * a[2]; -} -/** - * Multiplies two mat2d's - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the first operand - * @param {ReadonlyMat2d} b the second operand - * @returns {mat2d} out - */ - - -function multiply(out, a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3], - b4 = b[4], - b5 = b[5]; - out[0] = a0 * b0 + a2 * b1; - out[1] = a1 * b0 + a3 * b1; - out[2] = a0 * b2 + a2 * b3; - out[3] = a1 * b2 + a3 * b3; - out[4] = a0 * b4 + a2 * b5 + a4; - out[5] = a1 * b4 + a3 * b5 + a5; - return out; -} -/** - * Rotates a mat2d by the given angle - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat2d} out - */ - - -function rotate(out, a, rad) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5]; - var s = Math.sin(rad); - var c = Math.cos(rad); - out[0] = a0 * c + a2 * s; - out[1] = a1 * c + a3 * s; - out[2] = a0 * -s + a2 * c; - out[3] = a1 * -s + a3 * c; - out[4] = a4; - out[5] = a5; - return out; -} -/** - * Scales the mat2d by the dimensions in the given vec2 - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the matrix to translate - * @param {ReadonlyVec2} v the vec2 to scale the matrix by - * @returns {mat2d} out - **/ - - -function scale(out, a, v) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5]; - var v0 = v[0], - v1 = v[1]; - out[0] = a0 * v0; - out[1] = a1 * v0; - out[2] = a2 * v1; - out[3] = a3 * v1; - out[4] = a4; - out[5] = a5; - return out; -} -/** - * Translates the mat2d by the dimensions in the given vec2 - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the matrix to translate - * @param {ReadonlyVec2} v the vec2 to translate the matrix by - * @returns {mat2d} out - **/ - - -function translate(out, a, v) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5]; - var v0 = v[0], - v1 = v[1]; - out[0] = a0; - out[1] = a1; - out[2] = a2; - out[3] = a3; - out[4] = a0 * v0 + a2 * v1 + a4; - out[5] = a1 * v0 + a3 * v1 + a5; - return out; -} -/** - * Creates a matrix from a given angle - * This is equivalent to (but much faster than): - * - * mat2d.identity(dest); - * mat2d.rotate(dest, dest, rad); - * - * @param {mat2d} out mat2d receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat2d} out - */ - - -function fromRotation(out, rad) { - var s = Math.sin(rad), - c = Math.cos(rad); - out[0] = c; - out[1] = s; - out[2] = -s; - out[3] = c; - out[4] = 0; - out[5] = 0; - return out; -} -/** - * Creates a matrix from a vector scaling - * This is equivalent to (but much faster than): - * - * mat2d.identity(dest); - * mat2d.scale(dest, dest, vec); - * - * @param {mat2d} out mat2d receiving operation result - * @param {ReadonlyVec2} v Scaling vector - * @returns {mat2d} out - */ - - -function fromScaling(out, v) { - out[0] = v[0]; - out[1] = 0; - out[2] = 0; - out[3] = v[1]; - out[4] = 0; - out[5] = 0; - return out; -} -/** - * Creates a matrix from a vector translation - * This is equivalent to (but much faster than): - * - * mat2d.identity(dest); - * mat2d.translate(dest, dest, vec); - * - * @param {mat2d} out mat2d receiving operation result - * @param {ReadonlyVec2} v Translation vector - * @returns {mat2d} out - */ - - -function fromTranslation(out, v) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 1; - out[4] = v[0]; - out[5] = v[1]; - return out; -} -/** - * Returns a string representation of a mat2d - * - * @param {ReadonlyMat2d} a matrix to represent as a string - * @returns {String} string representation of the matrix - */ - - -function str(a) { - return "mat2d(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ")"; -} -/** - * Returns Frobenius norm of a mat2d - * - * @param {ReadonlyMat2d} a the matrix to calculate Frobenius norm of - * @returns {Number} Frobenius norm - */ - - -function frob(a) { - return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], 1); -} -/** - * Adds two mat2d's - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the first operand - * @param {ReadonlyMat2d} b the second operand - * @returns {mat2d} out - */ - - -function add(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - out[3] = a[3] + b[3]; - out[4] = a[4] + b[4]; - out[5] = a[5] + b[5]; - return out; -} -/** - * Subtracts matrix b from matrix a - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the first operand - * @param {ReadonlyMat2d} b the second operand - * @returns {mat2d} out - */ - - -function subtract(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - out[2] = a[2] - b[2]; - out[3] = a[3] - b[3]; - out[4] = a[4] - b[4]; - out[5] = a[5] - b[5]; - return out; -} -/** - * Multiply each element of the matrix by a scalar. - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the matrix to scale - * @param {Number} b amount to scale the matrix's elements by - * @returns {mat2d} out - */ - - -function multiplyScalar(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - out[3] = a[3] * b; - out[4] = a[4] * b; - out[5] = a[5] * b; - return out; -} -/** - * Adds two mat2d's after multiplying each element of the second operand by a scalar value. - * - * @param {mat2d} out the receiving vector - * @param {ReadonlyMat2d} a the first operand - * @param {ReadonlyMat2d} b the second operand - * @param {Number} scale the amount to scale b's elements by before adding - * @returns {mat2d} out - */ - - -function multiplyScalarAndAdd(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - out[2] = a[2] + b[2] * scale; - out[3] = a[3] + b[3] * scale; - out[4] = a[4] + b[4] * scale; - out[5] = a[5] + b[5] * scale; - return out; -} -/** - * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyMat2d} a The first matrix. - * @param {ReadonlyMat2d} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - - -function exactEquals(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5]; -} -/** - * Returns whether or not the matrices have approximately the same elements in the same position. - * - * @param {ReadonlyMat2d} a The first matrix. - * @param {ReadonlyMat2d} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - - -function equals(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3], - b4 = b[4], - b5 = b[5]; - return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)); -} -/** - * Alias for {@link mat2d.multiply} - * @function - */ - - -var mul = multiply; -/** - * Alias for {@link mat2d.subtract} - * @function - */ - -exports.mul = mul; -var sub = subtract; -exports.sub = sub; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/cjs/mat3.js b/build_vtk_bundle/node_modules/gl-matrix/cjs/mat3.js deleted file mode 100755 index afb6247a..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/cjs/mat3.js +++ /dev/null @@ -1,853 +0,0 @@ -"use strict"; - -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.create = create; -exports.fromMat4 = fromMat4; -exports.clone = clone; -exports.copy = copy; -exports.fromValues = fromValues; -exports.set = set; -exports.identity = identity; -exports.transpose = transpose; -exports.invert = invert; -exports.adjoint = adjoint; -exports.determinant = determinant; -exports.multiply = multiply; -exports.translate = translate; -exports.rotate = rotate; -exports.scale = scale; -exports.fromTranslation = fromTranslation; -exports.fromRotation = fromRotation; -exports.fromScaling = fromScaling; -exports.fromMat2d = fromMat2d; -exports.fromQuat = fromQuat; -exports.normalFromMat4 = normalFromMat4; -exports.projection = projection; -exports.str = str; -exports.frob = frob; -exports.add = add; -exports.subtract = subtract; -exports.multiplyScalar = multiplyScalar; -exports.multiplyScalarAndAdd = multiplyScalarAndAdd; -exports.exactEquals = exactEquals; -exports.equals = equals; -exports.sub = exports.mul = void 0; - -var glMatrix = _interopRequireWildcard(require("./common.js")); - -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - -/** - * 3x3 Matrix - * @module mat3 - */ - -/** - * Creates a new identity mat3 - * - * @returns {mat3} a new 3x3 matrix - */ -function create() { - var out = new glMatrix.ARRAY_TYPE(9); - - if (glMatrix.ARRAY_TYPE != Float32Array) { - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[5] = 0; - out[6] = 0; - out[7] = 0; - } - - out[0] = 1; - out[4] = 1; - out[8] = 1; - return out; -} -/** - * Copies the upper-left 3x3 values into the given mat3. - * - * @param {mat3} out the receiving 3x3 matrix - * @param {ReadonlyMat4} a the source 4x4 matrix - * @returns {mat3} out - */ - - -function fromMat4(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[4]; - out[4] = a[5]; - out[5] = a[6]; - out[6] = a[8]; - out[7] = a[9]; - out[8] = a[10]; - return out; -} -/** - * Creates a new mat3 initialized with values from an existing matrix - * - * @param {ReadonlyMat3} a matrix to clone - * @returns {mat3} a new 3x3 matrix - */ - - -function clone(a) { - var out = new glMatrix.ARRAY_TYPE(9); - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - out[6] = a[6]; - out[7] = a[7]; - out[8] = a[8]; - return out; -} -/** - * Copy the values from one mat3 to another - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the source matrix - * @returns {mat3} out - */ - - -function copy(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - out[6] = a[6]; - out[7] = a[7]; - out[8] = a[8]; - return out; -} -/** - * Create a new mat3 with the given values - * - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m02 Component in column 0, row 2 position (index 2) - * @param {Number} m10 Component in column 1, row 0 position (index 3) - * @param {Number} m11 Component in column 1, row 1 position (index 4) - * @param {Number} m12 Component in column 1, row 2 position (index 5) - * @param {Number} m20 Component in column 2, row 0 position (index 6) - * @param {Number} m21 Component in column 2, row 1 position (index 7) - * @param {Number} m22 Component in column 2, row 2 position (index 8) - * @returns {mat3} A new mat3 - */ - - -function fromValues(m00, m01, m02, m10, m11, m12, m20, m21, m22) { - var out = new glMatrix.ARRAY_TYPE(9); - out[0] = m00; - out[1] = m01; - out[2] = m02; - out[3] = m10; - out[4] = m11; - out[5] = m12; - out[6] = m20; - out[7] = m21; - out[8] = m22; - return out; -} -/** - * Set the components of a mat3 to the given values - * - * @param {mat3} out the receiving matrix - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m02 Component in column 0, row 2 position (index 2) - * @param {Number} m10 Component in column 1, row 0 position (index 3) - * @param {Number} m11 Component in column 1, row 1 position (index 4) - * @param {Number} m12 Component in column 1, row 2 position (index 5) - * @param {Number} m20 Component in column 2, row 0 position (index 6) - * @param {Number} m21 Component in column 2, row 1 position (index 7) - * @param {Number} m22 Component in column 2, row 2 position (index 8) - * @returns {mat3} out - */ - - -function set(out, m00, m01, m02, m10, m11, m12, m20, m21, m22) { - out[0] = m00; - out[1] = m01; - out[2] = m02; - out[3] = m10; - out[4] = m11; - out[5] = m12; - out[6] = m20; - out[7] = m21; - out[8] = m22; - return out; -} -/** - * Set a mat3 to the identity matrix - * - * @param {mat3} out the receiving matrix - * @returns {mat3} out - */ - - -function identity(out) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 1; - out[5] = 0; - out[6] = 0; - out[7] = 0; - out[8] = 1; - return out; -} -/** - * Transpose the values of a mat3 - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the source matrix - * @returns {mat3} out - */ - - -function transpose(out, a) { - // If we are transposing ourselves we can skip a few steps but have to cache some values - if (out === a) { - var a01 = a[1], - a02 = a[2], - a12 = a[5]; - out[1] = a[3]; - out[2] = a[6]; - out[3] = a01; - out[5] = a[7]; - out[6] = a02; - out[7] = a12; - } else { - out[0] = a[0]; - out[1] = a[3]; - out[2] = a[6]; - out[3] = a[1]; - out[4] = a[4]; - out[5] = a[7]; - out[6] = a[2]; - out[7] = a[5]; - out[8] = a[8]; - } - - return out; -} -/** - * Inverts a mat3 - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the source matrix - * @returns {mat3} out - */ - - -function invert(out, a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2]; - var a10 = a[3], - a11 = a[4], - a12 = a[5]; - var a20 = a[6], - a21 = a[7], - a22 = a[8]; - var b01 = a22 * a11 - a12 * a21; - var b11 = -a22 * a10 + a12 * a20; - var b21 = a21 * a10 - a11 * a20; // Calculate the determinant - - var det = a00 * b01 + a01 * b11 + a02 * b21; - - if (!det) { - return null; - } - - det = 1.0 / det; - out[0] = b01 * det; - out[1] = (-a22 * a01 + a02 * a21) * det; - out[2] = (a12 * a01 - a02 * a11) * det; - out[3] = b11 * det; - out[4] = (a22 * a00 - a02 * a20) * det; - out[5] = (-a12 * a00 + a02 * a10) * det; - out[6] = b21 * det; - out[7] = (-a21 * a00 + a01 * a20) * det; - out[8] = (a11 * a00 - a01 * a10) * det; - return out; -} -/** - * Calculates the adjugate of a mat3 - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the source matrix - * @returns {mat3} out - */ - - -function adjoint(out, a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2]; - var a10 = a[3], - a11 = a[4], - a12 = a[5]; - var a20 = a[6], - a21 = a[7], - a22 = a[8]; - out[0] = a11 * a22 - a12 * a21; - out[1] = a02 * a21 - a01 * a22; - out[2] = a01 * a12 - a02 * a11; - out[3] = a12 * a20 - a10 * a22; - out[4] = a00 * a22 - a02 * a20; - out[5] = a02 * a10 - a00 * a12; - out[6] = a10 * a21 - a11 * a20; - out[7] = a01 * a20 - a00 * a21; - out[8] = a00 * a11 - a01 * a10; - return out; -} -/** - * Calculates the determinant of a mat3 - * - * @param {ReadonlyMat3} a the source matrix - * @returns {Number} determinant of a - */ - - -function determinant(a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2]; - var a10 = a[3], - a11 = a[4], - a12 = a[5]; - var a20 = a[6], - a21 = a[7], - a22 = a[8]; - return a00 * (a22 * a11 - a12 * a21) + a01 * (-a22 * a10 + a12 * a20) + a02 * (a21 * a10 - a11 * a20); -} -/** - * Multiplies two mat3's - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the first operand - * @param {ReadonlyMat3} b the second operand - * @returns {mat3} out - */ - - -function multiply(out, a, b) { - var a00 = a[0], - a01 = a[1], - a02 = a[2]; - var a10 = a[3], - a11 = a[4], - a12 = a[5]; - var a20 = a[6], - a21 = a[7], - a22 = a[8]; - var b00 = b[0], - b01 = b[1], - b02 = b[2]; - var b10 = b[3], - b11 = b[4], - b12 = b[5]; - var b20 = b[6], - b21 = b[7], - b22 = b[8]; - out[0] = b00 * a00 + b01 * a10 + b02 * a20; - out[1] = b00 * a01 + b01 * a11 + b02 * a21; - out[2] = b00 * a02 + b01 * a12 + b02 * a22; - out[3] = b10 * a00 + b11 * a10 + b12 * a20; - out[4] = b10 * a01 + b11 * a11 + b12 * a21; - out[5] = b10 * a02 + b11 * a12 + b12 * a22; - out[6] = b20 * a00 + b21 * a10 + b22 * a20; - out[7] = b20 * a01 + b21 * a11 + b22 * a21; - out[8] = b20 * a02 + b21 * a12 + b22 * a22; - return out; -} -/** - * Translate a mat3 by the given vector - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the matrix to translate - * @param {ReadonlyVec2} v vector to translate by - * @returns {mat3} out - */ - - -function translate(out, a, v) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a10 = a[3], - a11 = a[4], - a12 = a[5], - a20 = a[6], - a21 = a[7], - a22 = a[8], - x = v[0], - y = v[1]; - out[0] = a00; - out[1] = a01; - out[2] = a02; - out[3] = a10; - out[4] = a11; - out[5] = a12; - out[6] = x * a00 + y * a10 + a20; - out[7] = x * a01 + y * a11 + a21; - out[8] = x * a02 + y * a12 + a22; - return out; -} -/** - * Rotates a mat3 by the given angle - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat3} out - */ - - -function rotate(out, a, rad) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a10 = a[3], - a11 = a[4], - a12 = a[5], - a20 = a[6], - a21 = a[7], - a22 = a[8], - s = Math.sin(rad), - c = Math.cos(rad); - out[0] = c * a00 + s * a10; - out[1] = c * a01 + s * a11; - out[2] = c * a02 + s * a12; - out[3] = c * a10 - s * a00; - out[4] = c * a11 - s * a01; - out[5] = c * a12 - s * a02; - out[6] = a20; - out[7] = a21; - out[8] = a22; - return out; -} -/** - * Scales the mat3 by the dimensions in the given vec2 - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the matrix to rotate - * @param {ReadonlyVec2} v the vec2 to scale the matrix by - * @returns {mat3} out - **/ - - -function scale(out, a, v) { - var x = v[0], - y = v[1]; - out[0] = x * a[0]; - out[1] = x * a[1]; - out[2] = x * a[2]; - out[3] = y * a[3]; - out[4] = y * a[4]; - out[5] = y * a[5]; - out[6] = a[6]; - out[7] = a[7]; - out[8] = a[8]; - return out; -} -/** - * Creates a matrix from a vector translation - * This is equivalent to (but much faster than): - * - * mat3.identity(dest); - * mat3.translate(dest, dest, vec); - * - * @param {mat3} out mat3 receiving operation result - * @param {ReadonlyVec2} v Translation vector - * @returns {mat3} out - */ - - -function fromTranslation(out, v) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 1; - out[5] = 0; - out[6] = v[0]; - out[7] = v[1]; - out[8] = 1; - return out; -} -/** - * Creates a matrix from a given angle - * This is equivalent to (but much faster than): - * - * mat3.identity(dest); - * mat3.rotate(dest, dest, rad); - * - * @param {mat3} out mat3 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat3} out - */ - - -function fromRotation(out, rad) { - var s = Math.sin(rad), - c = Math.cos(rad); - out[0] = c; - out[1] = s; - out[2] = 0; - out[3] = -s; - out[4] = c; - out[5] = 0; - out[6] = 0; - out[7] = 0; - out[8] = 1; - return out; -} -/** - * Creates a matrix from a vector scaling - * This is equivalent to (but much faster than): - * - * mat3.identity(dest); - * mat3.scale(dest, dest, vec); - * - * @param {mat3} out mat3 receiving operation result - * @param {ReadonlyVec2} v Scaling vector - * @returns {mat3} out - */ - - -function fromScaling(out, v) { - out[0] = v[0]; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = v[1]; - out[5] = 0; - out[6] = 0; - out[7] = 0; - out[8] = 1; - return out; -} -/** - * Copies the values from a mat2d into a mat3 - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat2d} a the matrix to copy - * @returns {mat3} out - **/ - - -function fromMat2d(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = 0; - out[3] = a[2]; - out[4] = a[3]; - out[5] = 0; - out[6] = a[4]; - out[7] = a[5]; - out[8] = 1; - return out; -} -/** - * Calculates a 3x3 matrix from the given quaternion - * - * @param {mat3} out mat3 receiving operation result - * @param {ReadonlyQuat} q Quaternion to create matrix from - * - * @returns {mat3} out - */ - - -function fromQuat(out, q) { - var x = q[0], - y = q[1], - z = q[2], - w = q[3]; - var x2 = x + x; - var y2 = y + y; - var z2 = z + z; - var xx = x * x2; - var yx = y * x2; - var yy = y * y2; - var zx = z * x2; - var zy = z * y2; - var zz = z * z2; - var wx = w * x2; - var wy = w * y2; - var wz = w * z2; - out[0] = 1 - yy - zz; - out[3] = yx - wz; - out[6] = zx + wy; - out[1] = yx + wz; - out[4] = 1 - xx - zz; - out[7] = zy - wx; - out[2] = zx - wy; - out[5] = zy + wx; - out[8] = 1 - xx - yy; - return out; -} -/** - * Calculates a 3x3 normal matrix (transpose inverse) from the 4x4 matrix - * - * @param {mat3} out mat3 receiving operation result - * @param {ReadonlyMat4} a Mat4 to derive the normal matrix from - * - * @returns {mat3} out - */ - - -function normalFromMat4(out, a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a03 = a[3]; - var a10 = a[4], - a11 = a[5], - a12 = a[6], - a13 = a[7]; - var a20 = a[8], - a21 = a[9], - a22 = a[10], - a23 = a[11]; - var a30 = a[12], - a31 = a[13], - a32 = a[14], - a33 = a[15]; - var b00 = a00 * a11 - a01 * a10; - var b01 = a00 * a12 - a02 * a10; - var b02 = a00 * a13 - a03 * a10; - var b03 = a01 * a12 - a02 * a11; - var b04 = a01 * a13 - a03 * a11; - var b05 = a02 * a13 - a03 * a12; - var b06 = a20 * a31 - a21 * a30; - var b07 = a20 * a32 - a22 * a30; - var b08 = a20 * a33 - a23 * a30; - var b09 = a21 * a32 - a22 * a31; - var b10 = a21 * a33 - a23 * a31; - var b11 = a22 * a33 - a23 * a32; // Calculate the determinant - - var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; - - if (!det) { - return null; - } - - det = 1.0 / det; - out[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det; - out[1] = (a12 * b08 - a10 * b11 - a13 * b07) * det; - out[2] = (a10 * b10 - a11 * b08 + a13 * b06) * det; - out[3] = (a02 * b10 - a01 * b11 - a03 * b09) * det; - out[4] = (a00 * b11 - a02 * b08 + a03 * b07) * det; - out[5] = (a01 * b08 - a00 * b10 - a03 * b06) * det; - out[6] = (a31 * b05 - a32 * b04 + a33 * b03) * det; - out[7] = (a32 * b02 - a30 * b05 - a33 * b01) * det; - out[8] = (a30 * b04 - a31 * b02 + a33 * b00) * det; - return out; -} -/** - * Generates a 2D projection matrix with the given bounds - * - * @param {mat3} out mat3 frustum matrix will be written into - * @param {number} width Width of your gl context - * @param {number} height Height of gl context - * @returns {mat3} out - */ - - -function projection(out, width, height) { - out[0] = 2 / width; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = -2 / height; - out[5] = 0; - out[6] = -1; - out[7] = 1; - out[8] = 1; - return out; -} -/** - * Returns a string representation of a mat3 - * - * @param {ReadonlyMat3} a matrix to represent as a string - * @returns {String} string representation of the matrix - */ - - -function str(a) { - return "mat3(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ", " + a[6] + ", " + a[7] + ", " + a[8] + ")"; -} -/** - * Returns Frobenius norm of a mat3 - * - * @param {ReadonlyMat3} a the matrix to calculate Frobenius norm of - * @returns {Number} Frobenius norm - */ - - -function frob(a) { - return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8]); -} -/** - * Adds two mat3's - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the first operand - * @param {ReadonlyMat3} b the second operand - * @returns {mat3} out - */ - - -function add(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - out[3] = a[3] + b[3]; - out[4] = a[4] + b[4]; - out[5] = a[5] + b[5]; - out[6] = a[6] + b[6]; - out[7] = a[7] + b[7]; - out[8] = a[8] + b[8]; - return out; -} -/** - * Subtracts matrix b from matrix a - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the first operand - * @param {ReadonlyMat3} b the second operand - * @returns {mat3} out - */ - - -function subtract(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - out[2] = a[2] - b[2]; - out[3] = a[3] - b[3]; - out[4] = a[4] - b[4]; - out[5] = a[5] - b[5]; - out[6] = a[6] - b[6]; - out[7] = a[7] - b[7]; - out[8] = a[8] - b[8]; - return out; -} -/** - * Multiply each element of the matrix by a scalar. - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the matrix to scale - * @param {Number} b amount to scale the matrix's elements by - * @returns {mat3} out - */ - - -function multiplyScalar(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - out[3] = a[3] * b; - out[4] = a[4] * b; - out[5] = a[5] * b; - out[6] = a[6] * b; - out[7] = a[7] * b; - out[8] = a[8] * b; - return out; -} -/** - * Adds two mat3's after multiplying each element of the second operand by a scalar value. - * - * @param {mat3} out the receiving vector - * @param {ReadonlyMat3} a the first operand - * @param {ReadonlyMat3} b the second operand - * @param {Number} scale the amount to scale b's elements by before adding - * @returns {mat3} out - */ - - -function multiplyScalarAndAdd(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - out[2] = a[2] + b[2] * scale; - out[3] = a[3] + b[3] * scale; - out[4] = a[4] + b[4] * scale; - out[5] = a[5] + b[5] * scale; - out[6] = a[6] + b[6] * scale; - out[7] = a[7] + b[7] * scale; - out[8] = a[8] + b[8] * scale; - return out; -} -/** - * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyMat3} a The first matrix. - * @param {ReadonlyMat3} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - - -function exactEquals(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7] && a[8] === b[8]; -} -/** - * Returns whether or not the matrices have approximately the same elements in the same position. - * - * @param {ReadonlyMat3} a The first matrix. - * @param {ReadonlyMat3} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - - -function equals(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5], - a6 = a[6], - a7 = a[7], - a8 = a[8]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3], - b4 = b[4], - b5 = b[5], - b6 = b[6], - b7 = b[7], - b8 = b[8]; - return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a7), Math.abs(b7)) && Math.abs(a8 - b8) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a8), Math.abs(b8)); -} -/** - * Alias for {@link mat3.multiply} - * @function - */ - - -var mul = multiply; -/** - * Alias for {@link mat3.subtract} - * @function - */ - -exports.mul = mul; -var sub = subtract; -exports.sub = sub; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/cjs/mat4.js b/build_vtk_bundle/node_modules/gl-matrix/cjs/mat4.js deleted file mode 100755 index 2b536e72..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/cjs/mat4.js +++ /dev/null @@ -1,2023 +0,0 @@ -"use strict"; - -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.create = create; -exports.clone = clone; -exports.copy = copy; -exports.fromValues = fromValues; -exports.set = set; -exports.identity = identity; -exports.transpose = transpose; -exports.invert = invert; -exports.adjoint = adjoint; -exports.determinant = determinant; -exports.multiply = multiply; -exports.translate = translate; -exports.scale = scale; -exports.rotate = rotate; -exports.rotateX = rotateX; -exports.rotateY = rotateY; -exports.rotateZ = rotateZ; -exports.fromTranslation = fromTranslation; -exports.fromScaling = fromScaling; -exports.fromRotation = fromRotation; -exports.fromXRotation = fromXRotation; -exports.fromYRotation = fromYRotation; -exports.fromZRotation = fromZRotation; -exports.fromRotationTranslation = fromRotationTranslation; -exports.fromQuat2 = fromQuat2; -exports.getTranslation = getTranslation; -exports.getScaling = getScaling; -exports.getRotation = getRotation; -exports.fromRotationTranslationScale = fromRotationTranslationScale; -exports.fromRotationTranslationScaleOrigin = fromRotationTranslationScaleOrigin; -exports.fromQuat = fromQuat; -exports.frustum = frustum; -exports.perspectiveNO = perspectiveNO; -exports.perspectiveZO = perspectiveZO; -exports.perspectiveFromFieldOfView = perspectiveFromFieldOfView; -exports.orthoNO = orthoNO; -exports.orthoZO = orthoZO; -exports.lookAt = lookAt; -exports.targetTo = targetTo; -exports.str = str; -exports.frob = frob; -exports.add = add; -exports.subtract = subtract; -exports.multiplyScalar = multiplyScalar; -exports.multiplyScalarAndAdd = multiplyScalarAndAdd; -exports.exactEquals = exactEquals; -exports.equals = equals; -exports.sub = exports.mul = exports.ortho = exports.perspective = void 0; - -var glMatrix = _interopRequireWildcard(require("./common.js")); - -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - -/** - * 4x4 Matrix
Format: column-major, when typed out it looks like row-major
The matrices are being post multiplied. - * @module mat4 - */ - -/** - * Creates a new identity mat4 - * - * @returns {mat4} a new 4x4 matrix - */ -function create() { - var out = new glMatrix.ARRAY_TYPE(16); - - if (glMatrix.ARRAY_TYPE != Float32Array) { - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - } - - out[0] = 1; - out[5] = 1; - out[10] = 1; - out[15] = 1; - return out; -} -/** - * Creates a new mat4 initialized with values from an existing matrix - * - * @param {ReadonlyMat4} a matrix to clone - * @returns {mat4} a new 4x4 matrix - */ - - -function clone(a) { - var out = new glMatrix.ARRAY_TYPE(16); - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - out[6] = a[6]; - out[7] = a[7]; - out[8] = a[8]; - out[9] = a[9]; - out[10] = a[10]; - out[11] = a[11]; - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - return out; -} -/** - * Copy the values from one mat4 to another - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the source matrix - * @returns {mat4} out - */ - - -function copy(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - out[6] = a[6]; - out[7] = a[7]; - out[8] = a[8]; - out[9] = a[9]; - out[10] = a[10]; - out[11] = a[11]; - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - return out; -} -/** - * Create a new mat4 with the given values - * - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m02 Component in column 0, row 2 position (index 2) - * @param {Number} m03 Component in column 0, row 3 position (index 3) - * @param {Number} m10 Component in column 1, row 0 position (index 4) - * @param {Number} m11 Component in column 1, row 1 position (index 5) - * @param {Number} m12 Component in column 1, row 2 position (index 6) - * @param {Number} m13 Component in column 1, row 3 position (index 7) - * @param {Number} m20 Component in column 2, row 0 position (index 8) - * @param {Number} m21 Component in column 2, row 1 position (index 9) - * @param {Number} m22 Component in column 2, row 2 position (index 10) - * @param {Number} m23 Component in column 2, row 3 position (index 11) - * @param {Number} m30 Component in column 3, row 0 position (index 12) - * @param {Number} m31 Component in column 3, row 1 position (index 13) - * @param {Number} m32 Component in column 3, row 2 position (index 14) - * @param {Number} m33 Component in column 3, row 3 position (index 15) - * @returns {mat4} A new mat4 - */ - - -function fromValues(m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33) { - var out = new glMatrix.ARRAY_TYPE(16); - out[0] = m00; - out[1] = m01; - out[2] = m02; - out[3] = m03; - out[4] = m10; - out[5] = m11; - out[6] = m12; - out[7] = m13; - out[8] = m20; - out[9] = m21; - out[10] = m22; - out[11] = m23; - out[12] = m30; - out[13] = m31; - out[14] = m32; - out[15] = m33; - return out; -} -/** - * Set the components of a mat4 to the given values - * - * @param {mat4} out the receiving matrix - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m02 Component in column 0, row 2 position (index 2) - * @param {Number} m03 Component in column 0, row 3 position (index 3) - * @param {Number} m10 Component in column 1, row 0 position (index 4) - * @param {Number} m11 Component in column 1, row 1 position (index 5) - * @param {Number} m12 Component in column 1, row 2 position (index 6) - * @param {Number} m13 Component in column 1, row 3 position (index 7) - * @param {Number} m20 Component in column 2, row 0 position (index 8) - * @param {Number} m21 Component in column 2, row 1 position (index 9) - * @param {Number} m22 Component in column 2, row 2 position (index 10) - * @param {Number} m23 Component in column 2, row 3 position (index 11) - * @param {Number} m30 Component in column 3, row 0 position (index 12) - * @param {Number} m31 Component in column 3, row 1 position (index 13) - * @param {Number} m32 Component in column 3, row 2 position (index 14) - * @param {Number} m33 Component in column 3, row 3 position (index 15) - * @returns {mat4} out - */ - - -function set(out, m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33) { - out[0] = m00; - out[1] = m01; - out[2] = m02; - out[3] = m03; - out[4] = m10; - out[5] = m11; - out[6] = m12; - out[7] = m13; - out[8] = m20; - out[9] = m21; - out[10] = m22; - out[11] = m23; - out[12] = m30; - out[13] = m31; - out[14] = m32; - out[15] = m33; - return out; -} -/** - * Set a mat4 to the identity matrix - * - * @param {mat4} out the receiving matrix - * @returns {mat4} out - */ - - -function identity(out) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = 1; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[10] = 1; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; -} -/** - * Transpose the values of a mat4 - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the source matrix - * @returns {mat4} out - */ - - -function transpose(out, a) { - // If we are transposing ourselves we can skip a few steps but have to cache some values - if (out === a) { - var a01 = a[1], - a02 = a[2], - a03 = a[3]; - var a12 = a[6], - a13 = a[7]; - var a23 = a[11]; - out[1] = a[4]; - out[2] = a[8]; - out[3] = a[12]; - out[4] = a01; - out[6] = a[9]; - out[7] = a[13]; - out[8] = a02; - out[9] = a12; - out[11] = a[14]; - out[12] = a03; - out[13] = a13; - out[14] = a23; - } else { - out[0] = a[0]; - out[1] = a[4]; - out[2] = a[8]; - out[3] = a[12]; - out[4] = a[1]; - out[5] = a[5]; - out[6] = a[9]; - out[7] = a[13]; - out[8] = a[2]; - out[9] = a[6]; - out[10] = a[10]; - out[11] = a[14]; - out[12] = a[3]; - out[13] = a[7]; - out[14] = a[11]; - out[15] = a[15]; - } - - return out; -} -/** - * Inverts a mat4 - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the source matrix - * @returns {mat4} out - */ - - -function invert(out, a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a03 = a[3]; - var a10 = a[4], - a11 = a[5], - a12 = a[6], - a13 = a[7]; - var a20 = a[8], - a21 = a[9], - a22 = a[10], - a23 = a[11]; - var a30 = a[12], - a31 = a[13], - a32 = a[14], - a33 = a[15]; - var b00 = a00 * a11 - a01 * a10; - var b01 = a00 * a12 - a02 * a10; - var b02 = a00 * a13 - a03 * a10; - var b03 = a01 * a12 - a02 * a11; - var b04 = a01 * a13 - a03 * a11; - var b05 = a02 * a13 - a03 * a12; - var b06 = a20 * a31 - a21 * a30; - var b07 = a20 * a32 - a22 * a30; - var b08 = a20 * a33 - a23 * a30; - var b09 = a21 * a32 - a22 * a31; - var b10 = a21 * a33 - a23 * a31; - var b11 = a22 * a33 - a23 * a32; // Calculate the determinant - - var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; - - if (!det) { - return null; - } - - det = 1.0 / det; - out[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det; - out[1] = (a02 * b10 - a01 * b11 - a03 * b09) * det; - out[2] = (a31 * b05 - a32 * b04 + a33 * b03) * det; - out[3] = (a22 * b04 - a21 * b05 - a23 * b03) * det; - out[4] = (a12 * b08 - a10 * b11 - a13 * b07) * det; - out[5] = (a00 * b11 - a02 * b08 + a03 * b07) * det; - out[6] = (a32 * b02 - a30 * b05 - a33 * b01) * det; - out[7] = (a20 * b05 - a22 * b02 + a23 * b01) * det; - out[8] = (a10 * b10 - a11 * b08 + a13 * b06) * det; - out[9] = (a01 * b08 - a00 * b10 - a03 * b06) * det; - out[10] = (a30 * b04 - a31 * b02 + a33 * b00) * det; - out[11] = (a21 * b02 - a20 * b04 - a23 * b00) * det; - out[12] = (a11 * b07 - a10 * b09 - a12 * b06) * det; - out[13] = (a00 * b09 - a01 * b07 + a02 * b06) * det; - out[14] = (a31 * b01 - a30 * b03 - a32 * b00) * det; - out[15] = (a20 * b03 - a21 * b01 + a22 * b00) * det; - return out; -} -/** - * Calculates the adjugate of a mat4 - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the source matrix - * @returns {mat4} out - */ - - -function adjoint(out, a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a03 = a[3]; - var a10 = a[4], - a11 = a[5], - a12 = a[6], - a13 = a[7]; - var a20 = a[8], - a21 = a[9], - a22 = a[10], - a23 = a[11]; - var a30 = a[12], - a31 = a[13], - a32 = a[14], - a33 = a[15]; - out[0] = a11 * (a22 * a33 - a23 * a32) - a21 * (a12 * a33 - a13 * a32) + a31 * (a12 * a23 - a13 * a22); - out[1] = -(a01 * (a22 * a33 - a23 * a32) - a21 * (a02 * a33 - a03 * a32) + a31 * (a02 * a23 - a03 * a22)); - out[2] = a01 * (a12 * a33 - a13 * a32) - a11 * (a02 * a33 - a03 * a32) + a31 * (a02 * a13 - a03 * a12); - out[3] = -(a01 * (a12 * a23 - a13 * a22) - a11 * (a02 * a23 - a03 * a22) + a21 * (a02 * a13 - a03 * a12)); - out[4] = -(a10 * (a22 * a33 - a23 * a32) - a20 * (a12 * a33 - a13 * a32) + a30 * (a12 * a23 - a13 * a22)); - out[5] = a00 * (a22 * a33 - a23 * a32) - a20 * (a02 * a33 - a03 * a32) + a30 * (a02 * a23 - a03 * a22); - out[6] = -(a00 * (a12 * a33 - a13 * a32) - a10 * (a02 * a33 - a03 * a32) + a30 * (a02 * a13 - a03 * a12)); - out[7] = a00 * (a12 * a23 - a13 * a22) - a10 * (a02 * a23 - a03 * a22) + a20 * (a02 * a13 - a03 * a12); - out[8] = a10 * (a21 * a33 - a23 * a31) - a20 * (a11 * a33 - a13 * a31) + a30 * (a11 * a23 - a13 * a21); - out[9] = -(a00 * (a21 * a33 - a23 * a31) - a20 * (a01 * a33 - a03 * a31) + a30 * (a01 * a23 - a03 * a21)); - out[10] = a00 * (a11 * a33 - a13 * a31) - a10 * (a01 * a33 - a03 * a31) + a30 * (a01 * a13 - a03 * a11); - out[11] = -(a00 * (a11 * a23 - a13 * a21) - a10 * (a01 * a23 - a03 * a21) + a20 * (a01 * a13 - a03 * a11)); - out[12] = -(a10 * (a21 * a32 - a22 * a31) - a20 * (a11 * a32 - a12 * a31) + a30 * (a11 * a22 - a12 * a21)); - out[13] = a00 * (a21 * a32 - a22 * a31) - a20 * (a01 * a32 - a02 * a31) + a30 * (a01 * a22 - a02 * a21); - out[14] = -(a00 * (a11 * a32 - a12 * a31) - a10 * (a01 * a32 - a02 * a31) + a30 * (a01 * a12 - a02 * a11)); - out[15] = a00 * (a11 * a22 - a12 * a21) - a10 * (a01 * a22 - a02 * a21) + a20 * (a01 * a12 - a02 * a11); - return out; -} -/** - * Calculates the determinant of a mat4 - * - * @param {ReadonlyMat4} a the source matrix - * @returns {Number} determinant of a - */ - - -function determinant(a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a03 = a[3]; - var a10 = a[4], - a11 = a[5], - a12 = a[6], - a13 = a[7]; - var a20 = a[8], - a21 = a[9], - a22 = a[10], - a23 = a[11]; - var a30 = a[12], - a31 = a[13], - a32 = a[14], - a33 = a[15]; - var b00 = a00 * a11 - a01 * a10; - var b01 = a00 * a12 - a02 * a10; - var b02 = a00 * a13 - a03 * a10; - var b03 = a01 * a12 - a02 * a11; - var b04 = a01 * a13 - a03 * a11; - var b05 = a02 * a13 - a03 * a12; - var b06 = a20 * a31 - a21 * a30; - var b07 = a20 * a32 - a22 * a30; - var b08 = a20 * a33 - a23 * a30; - var b09 = a21 * a32 - a22 * a31; - var b10 = a21 * a33 - a23 * a31; - var b11 = a22 * a33 - a23 * a32; // Calculate the determinant - - return b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; -} -/** - * Multiplies two mat4s - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the first operand - * @param {ReadonlyMat4} b the second operand - * @returns {mat4} out - */ - - -function multiply(out, a, b) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a03 = a[3]; - var a10 = a[4], - a11 = a[5], - a12 = a[6], - a13 = a[7]; - var a20 = a[8], - a21 = a[9], - a22 = a[10], - a23 = a[11]; - var a30 = a[12], - a31 = a[13], - a32 = a[14], - a33 = a[15]; // Cache only the current line of the second matrix - - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3]; - out[0] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[1] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[2] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[3] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - b0 = b[4]; - b1 = b[5]; - b2 = b[6]; - b3 = b[7]; - out[4] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[5] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[6] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[7] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - b0 = b[8]; - b1 = b[9]; - b2 = b[10]; - b3 = b[11]; - out[8] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[9] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[10] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[11] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - b0 = b[12]; - b1 = b[13]; - b2 = b[14]; - b3 = b[15]; - out[12] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[13] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[14] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[15] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - return out; -} -/** - * Translate a mat4 by the given vector - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to translate - * @param {ReadonlyVec3} v vector to translate by - * @returns {mat4} out - */ - - -function translate(out, a, v) { - var x = v[0], - y = v[1], - z = v[2]; - var a00, a01, a02, a03; - var a10, a11, a12, a13; - var a20, a21, a22, a23; - - if (a === out) { - out[12] = a[0] * x + a[4] * y + a[8] * z + a[12]; - out[13] = a[1] * x + a[5] * y + a[9] * z + a[13]; - out[14] = a[2] * x + a[6] * y + a[10] * z + a[14]; - out[15] = a[3] * x + a[7] * y + a[11] * z + a[15]; - } else { - a00 = a[0]; - a01 = a[1]; - a02 = a[2]; - a03 = a[3]; - a10 = a[4]; - a11 = a[5]; - a12 = a[6]; - a13 = a[7]; - a20 = a[8]; - a21 = a[9]; - a22 = a[10]; - a23 = a[11]; - out[0] = a00; - out[1] = a01; - out[2] = a02; - out[3] = a03; - out[4] = a10; - out[5] = a11; - out[6] = a12; - out[7] = a13; - out[8] = a20; - out[9] = a21; - out[10] = a22; - out[11] = a23; - out[12] = a00 * x + a10 * y + a20 * z + a[12]; - out[13] = a01 * x + a11 * y + a21 * z + a[13]; - out[14] = a02 * x + a12 * y + a22 * z + a[14]; - out[15] = a03 * x + a13 * y + a23 * z + a[15]; - } - - return out; -} -/** - * Scales the mat4 by the dimensions in the given vec3 not using vectorization - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to scale - * @param {ReadonlyVec3} v the vec3 to scale the matrix by - * @returns {mat4} out - **/ - - -function scale(out, a, v) { - var x = v[0], - y = v[1], - z = v[2]; - out[0] = a[0] * x; - out[1] = a[1] * x; - out[2] = a[2] * x; - out[3] = a[3] * x; - out[4] = a[4] * y; - out[5] = a[5] * y; - out[6] = a[6] * y; - out[7] = a[7] * y; - out[8] = a[8] * z; - out[9] = a[9] * z; - out[10] = a[10] * z; - out[11] = a[11] * z; - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - return out; -} -/** - * Rotates a mat4 by the given angle around the given axis - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @param {ReadonlyVec3} axis the axis to rotate around - * @returns {mat4} out - */ - - -function rotate(out, a, rad, axis) { - var x = axis[0], - y = axis[1], - z = axis[2]; - var len = Math.hypot(x, y, z); - var s, c, t; - var a00, a01, a02, a03; - var a10, a11, a12, a13; - var a20, a21, a22, a23; - var b00, b01, b02; - var b10, b11, b12; - var b20, b21, b22; - - if (len < glMatrix.EPSILON) { - return null; - } - - len = 1 / len; - x *= len; - y *= len; - z *= len; - s = Math.sin(rad); - c = Math.cos(rad); - t = 1 - c; - a00 = a[0]; - a01 = a[1]; - a02 = a[2]; - a03 = a[3]; - a10 = a[4]; - a11 = a[5]; - a12 = a[6]; - a13 = a[7]; - a20 = a[8]; - a21 = a[9]; - a22 = a[10]; - a23 = a[11]; // Construct the elements of the rotation matrix - - b00 = x * x * t + c; - b01 = y * x * t + z * s; - b02 = z * x * t - y * s; - b10 = x * y * t - z * s; - b11 = y * y * t + c; - b12 = z * y * t + x * s; - b20 = x * z * t + y * s; - b21 = y * z * t - x * s; - b22 = z * z * t + c; // Perform rotation-specific matrix multiplication - - out[0] = a00 * b00 + a10 * b01 + a20 * b02; - out[1] = a01 * b00 + a11 * b01 + a21 * b02; - out[2] = a02 * b00 + a12 * b01 + a22 * b02; - out[3] = a03 * b00 + a13 * b01 + a23 * b02; - out[4] = a00 * b10 + a10 * b11 + a20 * b12; - out[5] = a01 * b10 + a11 * b11 + a21 * b12; - out[6] = a02 * b10 + a12 * b11 + a22 * b12; - out[7] = a03 * b10 + a13 * b11 + a23 * b12; - out[8] = a00 * b20 + a10 * b21 + a20 * b22; - out[9] = a01 * b20 + a11 * b21 + a21 * b22; - out[10] = a02 * b20 + a12 * b21 + a22 * b22; - out[11] = a03 * b20 + a13 * b21 + a23 * b22; - - if (a !== out) { - // If the source and destination differ, copy the unchanged last row - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - } - - return out; -} -/** - * Rotates a matrix by the given angle around the X axis - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - - -function rotateX(out, a, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); - var a10 = a[4]; - var a11 = a[5]; - var a12 = a[6]; - var a13 = a[7]; - var a20 = a[8]; - var a21 = a[9]; - var a22 = a[10]; - var a23 = a[11]; - - if (a !== out) { - // If the source and destination differ, copy the unchanged rows - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - } // Perform axis-specific matrix multiplication - - - out[4] = a10 * c + a20 * s; - out[5] = a11 * c + a21 * s; - out[6] = a12 * c + a22 * s; - out[7] = a13 * c + a23 * s; - out[8] = a20 * c - a10 * s; - out[9] = a21 * c - a11 * s; - out[10] = a22 * c - a12 * s; - out[11] = a23 * c - a13 * s; - return out; -} -/** - * Rotates a matrix by the given angle around the Y axis - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - - -function rotateY(out, a, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); - var a00 = a[0]; - var a01 = a[1]; - var a02 = a[2]; - var a03 = a[3]; - var a20 = a[8]; - var a21 = a[9]; - var a22 = a[10]; - var a23 = a[11]; - - if (a !== out) { - // If the source and destination differ, copy the unchanged rows - out[4] = a[4]; - out[5] = a[5]; - out[6] = a[6]; - out[7] = a[7]; - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - } // Perform axis-specific matrix multiplication - - - out[0] = a00 * c - a20 * s; - out[1] = a01 * c - a21 * s; - out[2] = a02 * c - a22 * s; - out[3] = a03 * c - a23 * s; - out[8] = a00 * s + a20 * c; - out[9] = a01 * s + a21 * c; - out[10] = a02 * s + a22 * c; - out[11] = a03 * s + a23 * c; - return out; -} -/** - * Rotates a matrix by the given angle around the Z axis - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - - -function rotateZ(out, a, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); - var a00 = a[0]; - var a01 = a[1]; - var a02 = a[2]; - var a03 = a[3]; - var a10 = a[4]; - var a11 = a[5]; - var a12 = a[6]; - var a13 = a[7]; - - if (a !== out) { - // If the source and destination differ, copy the unchanged last row - out[8] = a[8]; - out[9] = a[9]; - out[10] = a[10]; - out[11] = a[11]; - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - } // Perform axis-specific matrix multiplication - - - out[0] = a00 * c + a10 * s; - out[1] = a01 * c + a11 * s; - out[2] = a02 * c + a12 * s; - out[3] = a03 * c + a13 * s; - out[4] = a10 * c - a00 * s; - out[5] = a11 * c - a01 * s; - out[6] = a12 * c - a02 * s; - out[7] = a13 * c - a03 * s; - return out; -} -/** - * Creates a matrix from a vector translation - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.translate(dest, dest, vec); - * - * @param {mat4} out mat4 receiving operation result - * @param {ReadonlyVec3} v Translation vector - * @returns {mat4} out - */ - - -function fromTranslation(out, v) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = 1; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[10] = 1; - out[11] = 0; - out[12] = v[0]; - out[13] = v[1]; - out[14] = v[2]; - out[15] = 1; - return out; -} -/** - * Creates a matrix from a vector scaling - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.scale(dest, dest, vec); - * - * @param {mat4} out mat4 receiving operation result - * @param {ReadonlyVec3} v Scaling vector - * @returns {mat4} out - */ - - -function fromScaling(out, v) { - out[0] = v[0]; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = v[1]; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[10] = v[2]; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; -} -/** - * Creates a matrix from a given angle around a given axis - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.rotate(dest, dest, rad, axis); - * - * @param {mat4} out mat4 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @param {ReadonlyVec3} axis the axis to rotate around - * @returns {mat4} out - */ - - -function fromRotation(out, rad, axis) { - var x = axis[0], - y = axis[1], - z = axis[2]; - var len = Math.hypot(x, y, z); - var s, c, t; - - if (len < glMatrix.EPSILON) { - return null; - } - - len = 1 / len; - x *= len; - y *= len; - z *= len; - s = Math.sin(rad); - c = Math.cos(rad); - t = 1 - c; // Perform rotation-specific matrix multiplication - - out[0] = x * x * t + c; - out[1] = y * x * t + z * s; - out[2] = z * x * t - y * s; - out[3] = 0; - out[4] = x * y * t - z * s; - out[5] = y * y * t + c; - out[6] = z * y * t + x * s; - out[7] = 0; - out[8] = x * z * t + y * s; - out[9] = y * z * t - x * s; - out[10] = z * z * t + c; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; -} -/** - * Creates a matrix from the given angle around the X axis - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.rotateX(dest, dest, rad); - * - * @param {mat4} out mat4 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - - -function fromXRotation(out, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); // Perform axis-specific matrix multiplication - - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = c; - out[6] = s; - out[7] = 0; - out[8] = 0; - out[9] = -s; - out[10] = c; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; -} -/** - * Creates a matrix from the given angle around the Y axis - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.rotateY(dest, dest, rad); - * - * @param {mat4} out mat4 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - - -function fromYRotation(out, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); // Perform axis-specific matrix multiplication - - out[0] = c; - out[1] = 0; - out[2] = -s; - out[3] = 0; - out[4] = 0; - out[5] = 1; - out[6] = 0; - out[7] = 0; - out[8] = s; - out[9] = 0; - out[10] = c; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; -} -/** - * Creates a matrix from the given angle around the Z axis - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.rotateZ(dest, dest, rad); - * - * @param {mat4} out mat4 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - - -function fromZRotation(out, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); // Perform axis-specific matrix multiplication - - out[0] = c; - out[1] = s; - out[2] = 0; - out[3] = 0; - out[4] = -s; - out[5] = c; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[10] = 1; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; -} -/** - * Creates a matrix from a quaternion rotation and vector translation - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.translate(dest, vec); - * let quatMat = mat4.create(); - * quat4.toMat4(quat, quatMat); - * mat4.multiply(dest, quatMat); - * - * @param {mat4} out mat4 receiving operation result - * @param {quat4} q Rotation quaternion - * @param {ReadonlyVec3} v Translation vector - * @returns {mat4} out - */ - - -function fromRotationTranslation(out, q, v) { - // Quaternion math - var x = q[0], - y = q[1], - z = q[2], - w = q[3]; - var x2 = x + x; - var y2 = y + y; - var z2 = z + z; - var xx = x * x2; - var xy = x * y2; - var xz = x * z2; - var yy = y * y2; - var yz = y * z2; - var zz = z * z2; - var wx = w * x2; - var wy = w * y2; - var wz = w * z2; - out[0] = 1 - (yy + zz); - out[1] = xy + wz; - out[2] = xz - wy; - out[3] = 0; - out[4] = xy - wz; - out[5] = 1 - (xx + zz); - out[6] = yz + wx; - out[7] = 0; - out[8] = xz + wy; - out[9] = yz - wx; - out[10] = 1 - (xx + yy); - out[11] = 0; - out[12] = v[0]; - out[13] = v[1]; - out[14] = v[2]; - out[15] = 1; - return out; -} -/** - * Creates a new mat4 from a dual quat. - * - * @param {mat4} out Matrix - * @param {ReadonlyQuat2} a Dual Quaternion - * @returns {mat4} mat4 receiving operation result - */ - - -function fromQuat2(out, a) { - var translation = new glMatrix.ARRAY_TYPE(3); - var bx = -a[0], - by = -a[1], - bz = -a[2], - bw = a[3], - ax = a[4], - ay = a[5], - az = a[6], - aw = a[7]; - var magnitude = bx * bx + by * by + bz * bz + bw * bw; //Only scale if it makes sense - - if (magnitude > 0) { - translation[0] = (ax * bw + aw * bx + ay * bz - az * by) * 2 / magnitude; - translation[1] = (ay * bw + aw * by + az * bx - ax * bz) * 2 / magnitude; - translation[2] = (az * bw + aw * bz + ax * by - ay * bx) * 2 / magnitude; - } else { - translation[0] = (ax * bw + aw * bx + ay * bz - az * by) * 2; - translation[1] = (ay * bw + aw * by + az * bx - ax * bz) * 2; - translation[2] = (az * bw + aw * bz + ax * by - ay * bx) * 2; - } - - fromRotationTranslation(out, a, translation); - return out; -} -/** - * Returns the translation vector component of a transformation - * matrix. If a matrix is built with fromRotationTranslation, - * the returned vector will be the same as the translation vector - * originally supplied. - * @param {vec3} out Vector to receive translation component - * @param {ReadonlyMat4} mat Matrix to be decomposed (input) - * @return {vec3} out - */ - - -function getTranslation(out, mat) { - out[0] = mat[12]; - out[1] = mat[13]; - out[2] = mat[14]; - return out; -} -/** - * Returns the scaling factor component of a transformation - * matrix. If a matrix is built with fromRotationTranslationScale - * with a normalized Quaternion paramter, the returned vector will be - * the same as the scaling vector - * originally supplied. - * @param {vec3} out Vector to receive scaling factor component - * @param {ReadonlyMat4} mat Matrix to be decomposed (input) - * @return {vec3} out - */ - - -function getScaling(out, mat) { - var m11 = mat[0]; - var m12 = mat[1]; - var m13 = mat[2]; - var m21 = mat[4]; - var m22 = mat[5]; - var m23 = mat[6]; - var m31 = mat[8]; - var m32 = mat[9]; - var m33 = mat[10]; - out[0] = Math.hypot(m11, m12, m13); - out[1] = Math.hypot(m21, m22, m23); - out[2] = Math.hypot(m31, m32, m33); - return out; -} -/** - * Returns a quaternion representing the rotational component - * of a transformation matrix. If a matrix is built with - * fromRotationTranslation, the returned quaternion will be the - * same as the quaternion originally supplied. - * @param {quat} out Quaternion to receive the rotation component - * @param {ReadonlyMat4} mat Matrix to be decomposed (input) - * @return {quat} out - */ - - -function getRotation(out, mat) { - var scaling = new glMatrix.ARRAY_TYPE(3); - getScaling(scaling, mat); - var is1 = 1 / scaling[0]; - var is2 = 1 / scaling[1]; - var is3 = 1 / scaling[2]; - var sm11 = mat[0] * is1; - var sm12 = mat[1] * is2; - var sm13 = mat[2] * is3; - var sm21 = mat[4] * is1; - var sm22 = mat[5] * is2; - var sm23 = mat[6] * is3; - var sm31 = mat[8] * is1; - var sm32 = mat[9] * is2; - var sm33 = mat[10] * is3; - var trace = sm11 + sm22 + sm33; - var S = 0; - - if (trace > 0) { - S = Math.sqrt(trace + 1.0) * 2; - out[3] = 0.25 * S; - out[0] = (sm23 - sm32) / S; - out[1] = (sm31 - sm13) / S; - out[2] = (sm12 - sm21) / S; - } else if (sm11 > sm22 && sm11 > sm33) { - S = Math.sqrt(1.0 + sm11 - sm22 - sm33) * 2; - out[3] = (sm23 - sm32) / S; - out[0] = 0.25 * S; - out[1] = (sm12 + sm21) / S; - out[2] = (sm31 + sm13) / S; - } else if (sm22 > sm33) { - S = Math.sqrt(1.0 + sm22 - sm11 - sm33) * 2; - out[3] = (sm31 - sm13) / S; - out[0] = (sm12 + sm21) / S; - out[1] = 0.25 * S; - out[2] = (sm23 + sm32) / S; - } else { - S = Math.sqrt(1.0 + sm33 - sm11 - sm22) * 2; - out[3] = (sm12 - sm21) / S; - out[0] = (sm31 + sm13) / S; - out[1] = (sm23 + sm32) / S; - out[2] = 0.25 * S; - } - - return out; -} -/** - * Creates a matrix from a quaternion rotation, vector translation and vector scale - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.translate(dest, vec); - * let quatMat = mat4.create(); - * quat4.toMat4(quat, quatMat); - * mat4.multiply(dest, quatMat); - * mat4.scale(dest, scale) - * - * @param {mat4} out mat4 receiving operation result - * @param {quat4} q Rotation quaternion - * @param {ReadonlyVec3} v Translation vector - * @param {ReadonlyVec3} s Scaling vector - * @returns {mat4} out - */ - - -function fromRotationTranslationScale(out, q, v, s) { - // Quaternion math - var x = q[0], - y = q[1], - z = q[2], - w = q[3]; - var x2 = x + x; - var y2 = y + y; - var z2 = z + z; - var xx = x * x2; - var xy = x * y2; - var xz = x * z2; - var yy = y * y2; - var yz = y * z2; - var zz = z * z2; - var wx = w * x2; - var wy = w * y2; - var wz = w * z2; - var sx = s[0]; - var sy = s[1]; - var sz = s[2]; - out[0] = (1 - (yy + zz)) * sx; - out[1] = (xy + wz) * sx; - out[2] = (xz - wy) * sx; - out[3] = 0; - out[4] = (xy - wz) * sy; - out[5] = (1 - (xx + zz)) * sy; - out[6] = (yz + wx) * sy; - out[7] = 0; - out[8] = (xz + wy) * sz; - out[9] = (yz - wx) * sz; - out[10] = (1 - (xx + yy)) * sz; - out[11] = 0; - out[12] = v[0]; - out[13] = v[1]; - out[14] = v[2]; - out[15] = 1; - return out; -} -/** - * Creates a matrix from a quaternion rotation, vector translation and vector scale, rotating and scaling around the given origin - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.translate(dest, vec); - * mat4.translate(dest, origin); - * let quatMat = mat4.create(); - * quat4.toMat4(quat, quatMat); - * mat4.multiply(dest, quatMat); - * mat4.scale(dest, scale) - * mat4.translate(dest, negativeOrigin); - * - * @param {mat4} out mat4 receiving operation result - * @param {quat4} q Rotation quaternion - * @param {ReadonlyVec3} v Translation vector - * @param {ReadonlyVec3} s Scaling vector - * @param {ReadonlyVec3} o The origin vector around which to scale and rotate - * @returns {mat4} out - */ - - -function fromRotationTranslationScaleOrigin(out, q, v, s, o) { - // Quaternion math - var x = q[0], - y = q[1], - z = q[2], - w = q[3]; - var x2 = x + x; - var y2 = y + y; - var z2 = z + z; - var xx = x * x2; - var xy = x * y2; - var xz = x * z2; - var yy = y * y2; - var yz = y * z2; - var zz = z * z2; - var wx = w * x2; - var wy = w * y2; - var wz = w * z2; - var sx = s[0]; - var sy = s[1]; - var sz = s[2]; - var ox = o[0]; - var oy = o[1]; - var oz = o[2]; - var out0 = (1 - (yy + zz)) * sx; - var out1 = (xy + wz) * sx; - var out2 = (xz - wy) * sx; - var out4 = (xy - wz) * sy; - var out5 = (1 - (xx + zz)) * sy; - var out6 = (yz + wx) * sy; - var out8 = (xz + wy) * sz; - var out9 = (yz - wx) * sz; - var out10 = (1 - (xx + yy)) * sz; - out[0] = out0; - out[1] = out1; - out[2] = out2; - out[3] = 0; - out[4] = out4; - out[5] = out5; - out[6] = out6; - out[7] = 0; - out[8] = out8; - out[9] = out9; - out[10] = out10; - out[11] = 0; - out[12] = v[0] + ox - (out0 * ox + out4 * oy + out8 * oz); - out[13] = v[1] + oy - (out1 * ox + out5 * oy + out9 * oz); - out[14] = v[2] + oz - (out2 * ox + out6 * oy + out10 * oz); - out[15] = 1; - return out; -} -/** - * Calculates a 4x4 matrix from the given quaternion - * - * @param {mat4} out mat4 receiving operation result - * @param {ReadonlyQuat} q Quaternion to create matrix from - * - * @returns {mat4} out - */ - - -function fromQuat(out, q) { - var x = q[0], - y = q[1], - z = q[2], - w = q[3]; - var x2 = x + x; - var y2 = y + y; - var z2 = z + z; - var xx = x * x2; - var yx = y * x2; - var yy = y * y2; - var zx = z * x2; - var zy = z * y2; - var zz = z * z2; - var wx = w * x2; - var wy = w * y2; - var wz = w * z2; - out[0] = 1 - yy - zz; - out[1] = yx + wz; - out[2] = zx - wy; - out[3] = 0; - out[4] = yx - wz; - out[5] = 1 - xx - zz; - out[6] = zy + wx; - out[7] = 0; - out[8] = zx + wy; - out[9] = zy - wx; - out[10] = 1 - xx - yy; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; -} -/** - * Generates a frustum matrix with the given bounds - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {Number} left Left bound of the frustum - * @param {Number} right Right bound of the frustum - * @param {Number} bottom Bottom bound of the frustum - * @param {Number} top Top bound of the frustum - * @param {Number} near Near bound of the frustum - * @param {Number} far Far bound of the frustum - * @returns {mat4} out - */ - - -function frustum(out, left, right, bottom, top, near, far) { - var rl = 1 / (right - left); - var tb = 1 / (top - bottom); - var nf = 1 / (near - far); - out[0] = near * 2 * rl; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = near * 2 * tb; - out[6] = 0; - out[7] = 0; - out[8] = (right + left) * rl; - out[9] = (top + bottom) * tb; - out[10] = (far + near) * nf; - out[11] = -1; - out[12] = 0; - out[13] = 0; - out[14] = far * near * 2 * nf; - out[15] = 0; - return out; -} -/** - * Generates a perspective projection matrix with the given bounds. - * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1], - * which matches WebGL/OpenGL's clip volume. - * Passing null/undefined/no value for far will generate infinite projection matrix. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {number} fovy Vertical field of view in radians - * @param {number} aspect Aspect ratio. typically viewport width/height - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum, can be null or Infinity - * @returns {mat4} out - */ - - -function perspectiveNO(out, fovy, aspect, near, far) { - var f = 1.0 / Math.tan(fovy / 2), - nf; - out[0] = f / aspect; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = f; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[11] = -1; - out[12] = 0; - out[13] = 0; - out[15] = 0; - - if (far != null && far !== Infinity) { - nf = 1 / (near - far); - out[10] = (far + near) * nf; - out[14] = 2 * far * near * nf; - } else { - out[10] = -1; - out[14] = -2 * near; - } - - return out; -} -/** - * Alias for {@link mat4.perspectiveNO} - * @function - */ - - -var perspective = perspectiveNO; -/** - * Generates a perspective projection matrix suitable for WebGPU with the given bounds. - * The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1], - * which matches WebGPU/Vulkan/DirectX/Metal's clip volume. - * Passing null/undefined/no value for far will generate infinite projection matrix. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {number} fovy Vertical field of view in radians - * @param {number} aspect Aspect ratio. typically viewport width/height - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum, can be null or Infinity - * @returns {mat4} out - */ - -exports.perspective = perspective; - -function perspectiveZO(out, fovy, aspect, near, far) { - var f = 1.0 / Math.tan(fovy / 2), - nf; - out[0] = f / aspect; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = f; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[11] = -1; - out[12] = 0; - out[13] = 0; - out[15] = 0; - - if (far != null && far !== Infinity) { - nf = 1 / (near - far); - out[10] = far * nf; - out[14] = far * near * nf; - } else { - out[10] = -1; - out[14] = -near; - } - - return out; -} -/** - * Generates a perspective projection matrix with the given field of view. - * This is primarily useful for generating projection matrices to be used - * with the still experiemental WebVR API. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {Object} fov Object containing the following values: upDegrees, downDegrees, leftDegrees, rightDegrees - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum - * @returns {mat4} out - */ - - -function perspectiveFromFieldOfView(out, fov, near, far) { - var upTan = Math.tan(fov.upDegrees * Math.PI / 180.0); - var downTan = Math.tan(fov.downDegrees * Math.PI / 180.0); - var leftTan = Math.tan(fov.leftDegrees * Math.PI / 180.0); - var rightTan = Math.tan(fov.rightDegrees * Math.PI / 180.0); - var xScale = 2.0 / (leftTan + rightTan); - var yScale = 2.0 / (upTan + downTan); - out[0] = xScale; - out[1] = 0.0; - out[2] = 0.0; - out[3] = 0.0; - out[4] = 0.0; - out[5] = yScale; - out[6] = 0.0; - out[7] = 0.0; - out[8] = -((leftTan - rightTan) * xScale * 0.5); - out[9] = (upTan - downTan) * yScale * 0.5; - out[10] = far / (near - far); - out[11] = -1.0; - out[12] = 0.0; - out[13] = 0.0; - out[14] = far * near / (near - far); - out[15] = 0.0; - return out; -} -/** - * Generates a orthogonal projection matrix with the given bounds. - * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1], - * which matches WebGL/OpenGL's clip volume. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {number} left Left bound of the frustum - * @param {number} right Right bound of the frustum - * @param {number} bottom Bottom bound of the frustum - * @param {number} top Top bound of the frustum - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum - * @returns {mat4} out - */ - - -function orthoNO(out, left, right, bottom, top, near, far) { - var lr = 1 / (left - right); - var bt = 1 / (bottom - top); - var nf = 1 / (near - far); - out[0] = -2 * lr; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = -2 * bt; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[10] = 2 * nf; - out[11] = 0; - out[12] = (left + right) * lr; - out[13] = (top + bottom) * bt; - out[14] = (far + near) * nf; - out[15] = 1; - return out; -} -/** - * Alias for {@link mat4.orthoNO} - * @function - */ - - -var ortho = orthoNO; -/** - * Generates a orthogonal projection matrix with the given bounds. - * The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1], - * which matches WebGPU/Vulkan/DirectX/Metal's clip volume. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {number} left Left bound of the frustum - * @param {number} right Right bound of the frustum - * @param {number} bottom Bottom bound of the frustum - * @param {number} top Top bound of the frustum - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum - * @returns {mat4} out - */ - -exports.ortho = ortho; - -function orthoZO(out, left, right, bottom, top, near, far) { - var lr = 1 / (left - right); - var bt = 1 / (bottom - top); - var nf = 1 / (near - far); - out[0] = -2 * lr; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = -2 * bt; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[10] = nf; - out[11] = 0; - out[12] = (left + right) * lr; - out[13] = (top + bottom) * bt; - out[14] = near * nf; - out[15] = 1; - return out; -} -/** - * Generates a look-at matrix with the given eye position, focal point, and up axis. - * If you want a matrix that actually makes an object look at another object, you should use targetTo instead. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {ReadonlyVec3} eye Position of the viewer - * @param {ReadonlyVec3} center Point the viewer is looking at - * @param {ReadonlyVec3} up vec3 pointing up - * @returns {mat4} out - */ - - -function lookAt(out, eye, center, up) { - var x0, x1, x2, y0, y1, y2, z0, z1, z2, len; - var eyex = eye[0]; - var eyey = eye[1]; - var eyez = eye[2]; - var upx = up[0]; - var upy = up[1]; - var upz = up[2]; - var centerx = center[0]; - var centery = center[1]; - var centerz = center[2]; - - if (Math.abs(eyex - centerx) < glMatrix.EPSILON && Math.abs(eyey - centery) < glMatrix.EPSILON && Math.abs(eyez - centerz) < glMatrix.EPSILON) { - return identity(out); - } - - z0 = eyex - centerx; - z1 = eyey - centery; - z2 = eyez - centerz; - len = 1 / Math.hypot(z0, z1, z2); - z0 *= len; - z1 *= len; - z2 *= len; - x0 = upy * z2 - upz * z1; - x1 = upz * z0 - upx * z2; - x2 = upx * z1 - upy * z0; - len = Math.hypot(x0, x1, x2); - - if (!len) { - x0 = 0; - x1 = 0; - x2 = 0; - } else { - len = 1 / len; - x0 *= len; - x1 *= len; - x2 *= len; - } - - y0 = z1 * x2 - z2 * x1; - y1 = z2 * x0 - z0 * x2; - y2 = z0 * x1 - z1 * x0; - len = Math.hypot(y0, y1, y2); - - if (!len) { - y0 = 0; - y1 = 0; - y2 = 0; - } else { - len = 1 / len; - y0 *= len; - y1 *= len; - y2 *= len; - } - - out[0] = x0; - out[1] = y0; - out[2] = z0; - out[3] = 0; - out[4] = x1; - out[5] = y1; - out[6] = z1; - out[7] = 0; - out[8] = x2; - out[9] = y2; - out[10] = z2; - out[11] = 0; - out[12] = -(x0 * eyex + x1 * eyey + x2 * eyez); - out[13] = -(y0 * eyex + y1 * eyey + y2 * eyez); - out[14] = -(z0 * eyex + z1 * eyey + z2 * eyez); - out[15] = 1; - return out; -} -/** - * Generates a matrix that makes something look at something else. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {ReadonlyVec3} eye Position of the viewer - * @param {ReadonlyVec3} center Point the viewer is looking at - * @param {ReadonlyVec3} up vec3 pointing up - * @returns {mat4} out - */ - - -function targetTo(out, eye, target, up) { - var eyex = eye[0], - eyey = eye[1], - eyez = eye[2], - upx = up[0], - upy = up[1], - upz = up[2]; - var z0 = eyex - target[0], - z1 = eyey - target[1], - z2 = eyez - target[2]; - var len = z0 * z0 + z1 * z1 + z2 * z2; - - if (len > 0) { - len = 1 / Math.sqrt(len); - z0 *= len; - z1 *= len; - z2 *= len; - } - - var x0 = upy * z2 - upz * z1, - x1 = upz * z0 - upx * z2, - x2 = upx * z1 - upy * z0; - len = x0 * x0 + x1 * x1 + x2 * x2; - - if (len > 0) { - len = 1 / Math.sqrt(len); - x0 *= len; - x1 *= len; - x2 *= len; - } - - out[0] = x0; - out[1] = x1; - out[2] = x2; - out[3] = 0; - out[4] = z1 * x2 - z2 * x1; - out[5] = z2 * x0 - z0 * x2; - out[6] = z0 * x1 - z1 * x0; - out[7] = 0; - out[8] = z0; - out[9] = z1; - out[10] = z2; - out[11] = 0; - out[12] = eyex; - out[13] = eyey; - out[14] = eyez; - out[15] = 1; - return out; -} -/** - * Returns a string representation of a mat4 - * - * @param {ReadonlyMat4} a matrix to represent as a string - * @returns {String} string representation of the matrix - */ - - -function str(a) { - return "mat4(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ", " + a[6] + ", " + a[7] + ", " + a[8] + ", " + a[9] + ", " + a[10] + ", " + a[11] + ", " + a[12] + ", " + a[13] + ", " + a[14] + ", " + a[15] + ")"; -} -/** - * Returns Frobenius norm of a mat4 - * - * @param {ReadonlyMat4} a the matrix to calculate Frobenius norm of - * @returns {Number} Frobenius norm - */ - - -function frob(a) { - return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11], a[12], a[13], a[14], a[15]); -} -/** - * Adds two mat4's - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the first operand - * @param {ReadonlyMat4} b the second operand - * @returns {mat4} out - */ - - -function add(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - out[3] = a[3] + b[3]; - out[4] = a[4] + b[4]; - out[5] = a[5] + b[5]; - out[6] = a[6] + b[6]; - out[7] = a[7] + b[7]; - out[8] = a[8] + b[8]; - out[9] = a[9] + b[9]; - out[10] = a[10] + b[10]; - out[11] = a[11] + b[11]; - out[12] = a[12] + b[12]; - out[13] = a[13] + b[13]; - out[14] = a[14] + b[14]; - out[15] = a[15] + b[15]; - return out; -} -/** - * Subtracts matrix b from matrix a - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the first operand - * @param {ReadonlyMat4} b the second operand - * @returns {mat4} out - */ - - -function subtract(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - out[2] = a[2] - b[2]; - out[3] = a[3] - b[3]; - out[4] = a[4] - b[4]; - out[5] = a[5] - b[5]; - out[6] = a[6] - b[6]; - out[7] = a[7] - b[7]; - out[8] = a[8] - b[8]; - out[9] = a[9] - b[9]; - out[10] = a[10] - b[10]; - out[11] = a[11] - b[11]; - out[12] = a[12] - b[12]; - out[13] = a[13] - b[13]; - out[14] = a[14] - b[14]; - out[15] = a[15] - b[15]; - return out; -} -/** - * Multiply each element of the matrix by a scalar. - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to scale - * @param {Number} b amount to scale the matrix's elements by - * @returns {mat4} out - */ - - -function multiplyScalar(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - out[3] = a[3] * b; - out[4] = a[4] * b; - out[5] = a[5] * b; - out[6] = a[6] * b; - out[7] = a[7] * b; - out[8] = a[8] * b; - out[9] = a[9] * b; - out[10] = a[10] * b; - out[11] = a[11] * b; - out[12] = a[12] * b; - out[13] = a[13] * b; - out[14] = a[14] * b; - out[15] = a[15] * b; - return out; -} -/** - * Adds two mat4's after multiplying each element of the second operand by a scalar value. - * - * @param {mat4} out the receiving vector - * @param {ReadonlyMat4} a the first operand - * @param {ReadonlyMat4} b the second operand - * @param {Number} scale the amount to scale b's elements by before adding - * @returns {mat4} out - */ - - -function multiplyScalarAndAdd(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - out[2] = a[2] + b[2] * scale; - out[3] = a[3] + b[3] * scale; - out[4] = a[4] + b[4] * scale; - out[5] = a[5] + b[5] * scale; - out[6] = a[6] + b[6] * scale; - out[7] = a[7] + b[7] * scale; - out[8] = a[8] + b[8] * scale; - out[9] = a[9] + b[9] * scale; - out[10] = a[10] + b[10] * scale; - out[11] = a[11] + b[11] * scale; - out[12] = a[12] + b[12] * scale; - out[13] = a[13] + b[13] * scale; - out[14] = a[14] + b[14] * scale; - out[15] = a[15] + b[15] * scale; - return out; -} -/** - * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyMat4} a The first matrix. - * @param {ReadonlyMat4} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - - -function exactEquals(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7] && a[8] === b[8] && a[9] === b[9] && a[10] === b[10] && a[11] === b[11] && a[12] === b[12] && a[13] === b[13] && a[14] === b[14] && a[15] === b[15]; -} -/** - * Returns whether or not the matrices have approximately the same elements in the same position. - * - * @param {ReadonlyMat4} a The first matrix. - * @param {ReadonlyMat4} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - - -function equals(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var a4 = a[4], - a5 = a[5], - a6 = a[6], - a7 = a[7]; - var a8 = a[8], - a9 = a[9], - a10 = a[10], - a11 = a[11]; - var a12 = a[12], - a13 = a[13], - a14 = a[14], - a15 = a[15]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3]; - var b4 = b[4], - b5 = b[5], - b6 = b[6], - b7 = b[7]; - var b8 = b[8], - b9 = b[9], - b10 = b[10], - b11 = b[11]; - var b12 = b[12], - b13 = b[13], - b14 = b[14], - b15 = b[15]; - return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a7), Math.abs(b7)) && Math.abs(a8 - b8) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a8), Math.abs(b8)) && Math.abs(a9 - b9) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a9), Math.abs(b9)) && Math.abs(a10 - b10) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a10), Math.abs(b10)) && Math.abs(a11 - b11) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a11), Math.abs(b11)) && Math.abs(a12 - b12) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a12), Math.abs(b12)) && Math.abs(a13 - b13) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a13), Math.abs(b13)) && Math.abs(a14 - b14) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a14), Math.abs(b14)) && Math.abs(a15 - b15) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a15), Math.abs(b15)); -} -/** - * Alias for {@link mat4.multiply} - * @function - */ - - -var mul = multiply; -/** - * Alias for {@link mat4.subtract} - * @function - */ - -exports.mul = mul; -var sub = subtract; -exports.sub = sub; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/cjs/quat.js b/build_vtk_bundle/node_modules/gl-matrix/cjs/quat.js deleted file mode 100755 index 2c5b17c7..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/cjs/quat.js +++ /dev/null @@ -1,791 +0,0 @@ -"use strict"; - -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.create = create; -exports.identity = identity; -exports.setAxisAngle = setAxisAngle; -exports.getAxisAngle = getAxisAngle; -exports.getAngle = getAngle; -exports.multiply = multiply; -exports.rotateX = rotateX; -exports.rotateY = rotateY; -exports.rotateZ = rotateZ; -exports.calculateW = calculateW; -exports.exp = exp; -exports.ln = ln; -exports.pow = pow; -exports.slerp = slerp; -exports.random = random; -exports.invert = invert; -exports.conjugate = conjugate; -exports.fromMat3 = fromMat3; -exports.fromEuler = fromEuler; -exports.str = str; -exports.setAxes = exports.sqlerp = exports.rotationTo = exports.equals = exports.exactEquals = exports.normalize = exports.sqrLen = exports.squaredLength = exports.len = exports.length = exports.lerp = exports.dot = exports.scale = exports.mul = exports.add = exports.set = exports.copy = exports.fromValues = exports.clone = void 0; - -var glMatrix = _interopRequireWildcard(require("./common.js")); - -var mat3 = _interopRequireWildcard(require("./mat3.js")); - -var vec3 = _interopRequireWildcard(require("./vec3.js")); - -var vec4 = _interopRequireWildcard(require("./vec4.js")); - -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - -/** - * Quaternion - * @module quat - */ - -/** - * Creates a new identity quat - * - * @returns {quat} a new quaternion - */ -function create() { - var out = new glMatrix.ARRAY_TYPE(4); - - if (glMatrix.ARRAY_TYPE != Float32Array) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - } - - out[3] = 1; - return out; -} -/** - * Set a quat to the identity quaternion - * - * @param {quat} out the receiving quaternion - * @returns {quat} out - */ - - -function identity(out) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - out[3] = 1; - return out; -} -/** - * Sets a quat from the given angle and rotation axis, - * then returns it. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyVec3} axis the axis around which to rotate - * @param {Number} rad the angle in radians - * @returns {quat} out - **/ - - -function setAxisAngle(out, axis, rad) { - rad = rad * 0.5; - var s = Math.sin(rad); - out[0] = s * axis[0]; - out[1] = s * axis[1]; - out[2] = s * axis[2]; - out[3] = Math.cos(rad); - return out; -} -/** - * Gets the rotation axis and angle for a given - * quaternion. If a quaternion is created with - * setAxisAngle, this method will return the same - * values as providied in the original parameter list - * OR functionally equivalent values. - * Example: The quaternion formed by axis [0, 0, 1] and - * angle -90 is the same as the quaternion formed by - * [0, 0, 1] and 270. This method favors the latter. - * @param {vec3} out_axis Vector receiving the axis of rotation - * @param {ReadonlyQuat} q Quaternion to be decomposed - * @return {Number} Angle, in radians, of the rotation - */ - - -function getAxisAngle(out_axis, q) { - var rad = Math.acos(q[3]) * 2.0; - var s = Math.sin(rad / 2.0); - - if (s > glMatrix.EPSILON) { - out_axis[0] = q[0] / s; - out_axis[1] = q[1] / s; - out_axis[2] = q[2] / s; - } else { - // If s is zero, return any axis (no rotation - axis does not matter) - out_axis[0] = 1; - out_axis[1] = 0; - out_axis[2] = 0; - } - - return rad; -} -/** - * Gets the angular distance between two unit quaternions - * - * @param {ReadonlyQuat} a Origin unit quaternion - * @param {ReadonlyQuat} b Destination unit quaternion - * @return {Number} Angle, in radians, between the two quaternions - */ - - -function getAngle(a, b) { - var dotproduct = dot(a, b); - return Math.acos(2 * dotproduct * dotproduct - 1); -} -/** - * Multiplies two quat's - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @returns {quat} out - */ - - -function multiply(out, a, b) { - var ax = a[0], - ay = a[1], - az = a[2], - aw = a[3]; - var bx = b[0], - by = b[1], - bz = b[2], - bw = b[3]; - out[0] = ax * bw + aw * bx + ay * bz - az * by; - out[1] = ay * bw + aw * by + az * bx - ax * bz; - out[2] = az * bw + aw * bz + ax * by - ay * bx; - out[3] = aw * bw - ax * bx - ay * by - az * bz; - return out; -} -/** - * Rotates a quaternion by the given angle about the X axis - * - * @param {quat} out quat receiving operation result - * @param {ReadonlyQuat} a quat to rotate - * @param {number} rad angle (in radians) to rotate - * @returns {quat} out - */ - - -function rotateX(out, a, rad) { - rad *= 0.5; - var ax = a[0], - ay = a[1], - az = a[2], - aw = a[3]; - var bx = Math.sin(rad), - bw = Math.cos(rad); - out[0] = ax * bw + aw * bx; - out[1] = ay * bw + az * bx; - out[2] = az * bw - ay * bx; - out[3] = aw * bw - ax * bx; - return out; -} -/** - * Rotates a quaternion by the given angle about the Y axis - * - * @param {quat} out quat receiving operation result - * @param {ReadonlyQuat} a quat to rotate - * @param {number} rad angle (in radians) to rotate - * @returns {quat} out - */ - - -function rotateY(out, a, rad) { - rad *= 0.5; - var ax = a[0], - ay = a[1], - az = a[2], - aw = a[3]; - var by = Math.sin(rad), - bw = Math.cos(rad); - out[0] = ax * bw - az * by; - out[1] = ay * bw + aw * by; - out[2] = az * bw + ax * by; - out[3] = aw * bw - ay * by; - return out; -} -/** - * Rotates a quaternion by the given angle about the Z axis - * - * @param {quat} out quat receiving operation result - * @param {ReadonlyQuat} a quat to rotate - * @param {number} rad angle (in radians) to rotate - * @returns {quat} out - */ - - -function rotateZ(out, a, rad) { - rad *= 0.5; - var ax = a[0], - ay = a[1], - az = a[2], - aw = a[3]; - var bz = Math.sin(rad), - bw = Math.cos(rad); - out[0] = ax * bw + ay * bz; - out[1] = ay * bw - ax * bz; - out[2] = az * bw + aw * bz; - out[3] = aw * bw - az * bz; - return out; -} -/** - * Calculates the W component of a quat from the X, Y, and Z components. - * Assumes that quaternion is 1 unit in length. - * Any existing W component will be ignored. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate W component of - * @returns {quat} out - */ - - -function calculateW(out, a) { - var x = a[0], - y = a[1], - z = a[2]; - out[0] = x; - out[1] = y; - out[2] = z; - out[3] = Math.sqrt(Math.abs(1.0 - x * x - y * y - z * z)); - return out; -} -/** - * Calculate the exponential of a unit quaternion. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate the exponential of - * @returns {quat} out - */ - - -function exp(out, a) { - var x = a[0], - y = a[1], - z = a[2], - w = a[3]; - var r = Math.sqrt(x * x + y * y + z * z); - var et = Math.exp(w); - var s = r > 0 ? et * Math.sin(r) / r : 0; - out[0] = x * s; - out[1] = y * s; - out[2] = z * s; - out[3] = et * Math.cos(r); - return out; -} -/** - * Calculate the natural logarithm of a unit quaternion. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate the exponential of - * @returns {quat} out - */ - - -function ln(out, a) { - var x = a[0], - y = a[1], - z = a[2], - w = a[3]; - var r = Math.sqrt(x * x + y * y + z * z); - var t = r > 0 ? Math.atan2(r, w) / r : 0; - out[0] = x * t; - out[1] = y * t; - out[2] = z * t; - out[3] = 0.5 * Math.log(x * x + y * y + z * z + w * w); - return out; -} -/** - * Calculate the scalar power of a unit quaternion. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate the exponential of - * @param {Number} b amount to scale the quaternion by - * @returns {quat} out - */ - - -function pow(out, a, b) { - ln(out, a); - scale(out, out, b); - exp(out, out); - return out; -} -/** - * Performs a spherical linear interpolation between two quat - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {quat} out - */ - - -function slerp(out, a, b, t) { - // benchmarks: - // http://jsperf.com/quaternion-slerp-implementations - var ax = a[0], - ay = a[1], - az = a[2], - aw = a[3]; - var bx = b[0], - by = b[1], - bz = b[2], - bw = b[3]; - var omega, cosom, sinom, scale0, scale1; // calc cosine - - cosom = ax * bx + ay * by + az * bz + aw * bw; // adjust signs (if necessary) - - if (cosom < 0.0) { - cosom = -cosom; - bx = -bx; - by = -by; - bz = -bz; - bw = -bw; - } // calculate coefficients - - - if (1.0 - cosom > glMatrix.EPSILON) { - // standard case (slerp) - omega = Math.acos(cosom); - sinom = Math.sin(omega); - scale0 = Math.sin((1.0 - t) * omega) / sinom; - scale1 = Math.sin(t * omega) / sinom; - } else { - // "from" and "to" quaternions are very close - // ... so we can do a linear interpolation - scale0 = 1.0 - t; - scale1 = t; - } // calculate final values - - - out[0] = scale0 * ax + scale1 * bx; - out[1] = scale0 * ay + scale1 * by; - out[2] = scale0 * az + scale1 * bz; - out[3] = scale0 * aw + scale1 * bw; - return out; -} -/** - * Generates a random unit quaternion - * - * @param {quat} out the receiving quaternion - * @returns {quat} out - */ - - -function random(out) { - // Implementation of http://planning.cs.uiuc.edu/node198.html - // TODO: Calling random 3 times is probably not the fastest solution - var u1 = glMatrix.RANDOM(); - var u2 = glMatrix.RANDOM(); - var u3 = glMatrix.RANDOM(); - var sqrt1MinusU1 = Math.sqrt(1 - u1); - var sqrtU1 = Math.sqrt(u1); - out[0] = sqrt1MinusU1 * Math.sin(2.0 * Math.PI * u2); - out[1] = sqrt1MinusU1 * Math.cos(2.0 * Math.PI * u2); - out[2] = sqrtU1 * Math.sin(2.0 * Math.PI * u3); - out[3] = sqrtU1 * Math.cos(2.0 * Math.PI * u3); - return out; -} -/** - * Calculates the inverse of a quat - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate inverse of - * @returns {quat} out - */ - - -function invert(out, a) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var dot = a0 * a0 + a1 * a1 + a2 * a2 + a3 * a3; - var invDot = dot ? 1.0 / dot : 0; // TODO: Would be faster to return [0,0,0,0] immediately if dot == 0 - - out[0] = -a0 * invDot; - out[1] = -a1 * invDot; - out[2] = -a2 * invDot; - out[3] = a3 * invDot; - return out; -} -/** - * Calculates the conjugate of a quat - * If the quaternion is normalized, this function is faster than quat.inverse and produces the same result. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate conjugate of - * @returns {quat} out - */ - - -function conjugate(out, a) { - out[0] = -a[0]; - out[1] = -a[1]; - out[2] = -a[2]; - out[3] = a[3]; - return out; -} -/** - * Creates a quaternion from the given 3x3 rotation matrix. - * - * NOTE: The resultant quaternion is not normalized, so you should be sure - * to renormalize the quaternion yourself where necessary. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyMat3} m rotation matrix - * @returns {quat} out - * @function - */ - - -function fromMat3(out, m) { - // Algorithm in Ken Shoemake's article in 1987 SIGGRAPH course notes - // article "Quaternion Calculus and Fast Animation". - var fTrace = m[0] + m[4] + m[8]; - var fRoot; - - if (fTrace > 0.0) { - // |w| > 1/2, may as well choose w > 1/2 - fRoot = Math.sqrt(fTrace + 1.0); // 2w - - out[3] = 0.5 * fRoot; - fRoot = 0.5 / fRoot; // 1/(4w) - - out[0] = (m[5] - m[7]) * fRoot; - out[1] = (m[6] - m[2]) * fRoot; - out[2] = (m[1] - m[3]) * fRoot; - } else { - // |w| <= 1/2 - var i = 0; - if (m[4] > m[0]) i = 1; - if (m[8] > m[i * 3 + i]) i = 2; - var j = (i + 1) % 3; - var k = (i + 2) % 3; - fRoot = Math.sqrt(m[i * 3 + i] - m[j * 3 + j] - m[k * 3 + k] + 1.0); - out[i] = 0.5 * fRoot; - fRoot = 0.5 / fRoot; - out[3] = (m[j * 3 + k] - m[k * 3 + j]) * fRoot; - out[j] = (m[j * 3 + i] + m[i * 3 + j]) * fRoot; - out[k] = (m[k * 3 + i] + m[i * 3 + k]) * fRoot; - } - - return out; -} -/** - * Creates a quaternion from the given euler angle x, y, z. - * - * @param {quat} out the receiving quaternion - * @param {x} Angle to rotate around X axis in degrees. - * @param {y} Angle to rotate around Y axis in degrees. - * @param {z} Angle to rotate around Z axis in degrees. - * @returns {quat} out - * @function - */ - - -function fromEuler(out, x, y, z) { - var halfToRad = 0.5 * Math.PI / 180.0; - x *= halfToRad; - y *= halfToRad; - z *= halfToRad; - var sx = Math.sin(x); - var cx = Math.cos(x); - var sy = Math.sin(y); - var cy = Math.cos(y); - var sz = Math.sin(z); - var cz = Math.cos(z); - out[0] = sx * cy * cz - cx * sy * sz; - out[1] = cx * sy * cz + sx * cy * sz; - out[2] = cx * cy * sz - sx * sy * cz; - out[3] = cx * cy * cz + sx * sy * sz; - return out; -} -/** - * Returns a string representation of a quatenion - * - * @param {ReadonlyQuat} a vector to represent as a string - * @returns {String} string representation of the vector - */ - - -function str(a) { - return "quat(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ")"; -} -/** - * Creates a new quat initialized with values from an existing quaternion - * - * @param {ReadonlyQuat} a quaternion to clone - * @returns {quat} a new quaternion - * @function - */ - - -var clone = vec4.clone; -/** - * Creates a new quat initialized with the given values - * - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @param {Number} w W component - * @returns {quat} a new quaternion - * @function - */ - -exports.clone = clone; -var fromValues = vec4.fromValues; -/** - * Copy the values from one quat to another - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the source quaternion - * @returns {quat} out - * @function - */ - -exports.fromValues = fromValues; -var copy = vec4.copy; -/** - * Set the components of a quat to the given values - * - * @param {quat} out the receiving quaternion - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @param {Number} w W component - * @returns {quat} out - * @function - */ - -exports.copy = copy; -var set = vec4.set; -/** - * Adds two quat's - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @returns {quat} out - * @function - */ - -exports.set = set; -var add = vec4.add; -/** - * Alias for {@link quat.multiply} - * @function - */ - -exports.add = add; -var mul = multiply; -/** - * Scales a quat by a scalar number - * - * @param {quat} out the receiving vector - * @param {ReadonlyQuat} a the vector to scale - * @param {Number} b amount to scale the vector by - * @returns {quat} out - * @function - */ - -exports.mul = mul; -var scale = vec4.scale; -/** - * Calculates the dot product of two quat's - * - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @returns {Number} dot product of a and b - * @function - */ - -exports.scale = scale; -var dot = vec4.dot; -/** - * Performs a linear interpolation between two quat's - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {quat} out - * @function - */ - -exports.dot = dot; -var lerp = vec4.lerp; -/** - * Calculates the length of a quat - * - * @param {ReadonlyQuat} a vector to calculate length of - * @returns {Number} length of a - */ - -exports.lerp = lerp; -var length = vec4.length; -/** - * Alias for {@link quat.length} - * @function - */ - -exports.length = length; -var len = length; -/** - * Calculates the squared length of a quat - * - * @param {ReadonlyQuat} a vector to calculate squared length of - * @returns {Number} squared length of a - * @function - */ - -exports.len = len; -var squaredLength = vec4.squaredLength; -/** - * Alias for {@link quat.squaredLength} - * @function - */ - -exports.squaredLength = squaredLength; -var sqrLen = squaredLength; -/** - * Normalize a quat - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quaternion to normalize - * @returns {quat} out - * @function - */ - -exports.sqrLen = sqrLen; -var normalize = vec4.normalize; -/** - * Returns whether or not the quaternions have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyQuat} a The first quaternion. - * @param {ReadonlyQuat} b The second quaternion. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - -exports.normalize = normalize; -var exactEquals = vec4.exactEquals; -/** - * Returns whether or not the quaternions have approximately the same elements in the same position. - * - * @param {ReadonlyQuat} a The first vector. - * @param {ReadonlyQuat} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - -exports.exactEquals = exactEquals; -var equals = vec4.equals; -/** - * Sets a quaternion to represent the shortest rotation from one - * vector to another. - * - * Both vectors are assumed to be unit length. - * - * @param {quat} out the receiving quaternion. - * @param {ReadonlyVec3} a the initial vector - * @param {ReadonlyVec3} b the destination vector - * @returns {quat} out - */ - -exports.equals = equals; - -var rotationTo = function () { - var tmpvec3 = vec3.create(); - var xUnitVec3 = vec3.fromValues(1, 0, 0); - var yUnitVec3 = vec3.fromValues(0, 1, 0); - return function (out, a, b) { - var dot = vec3.dot(a, b); - - if (dot < -0.999999) { - vec3.cross(tmpvec3, xUnitVec3, a); - if (vec3.len(tmpvec3) < 0.000001) vec3.cross(tmpvec3, yUnitVec3, a); - vec3.normalize(tmpvec3, tmpvec3); - setAxisAngle(out, tmpvec3, Math.PI); - return out; - } else if (dot > 0.999999) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - out[3] = 1; - return out; - } else { - vec3.cross(tmpvec3, a, b); - out[0] = tmpvec3[0]; - out[1] = tmpvec3[1]; - out[2] = tmpvec3[2]; - out[3] = 1 + dot; - return normalize(out, out); - } - }; -}(); -/** - * Performs a spherical linear interpolation with two control points - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @param {ReadonlyQuat} c the third operand - * @param {ReadonlyQuat} d the fourth operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {quat} out - */ - - -exports.rotationTo = rotationTo; - -var sqlerp = function () { - var temp1 = create(); - var temp2 = create(); - return function (out, a, b, c, d, t) { - slerp(temp1, a, d, t); - slerp(temp2, b, c, t); - slerp(out, temp1, temp2, 2 * t * (1 - t)); - return out; - }; -}(); -/** - * Sets the specified quaternion with values corresponding to the given - * axes. Each axis is a vec3 and is expected to be unit length and - * perpendicular to all other specified axes. - * - * @param {ReadonlyVec3} view the vector representing the viewing direction - * @param {ReadonlyVec3} right the vector representing the local "right" direction - * @param {ReadonlyVec3} up the vector representing the local "up" direction - * @returns {quat} out - */ - - -exports.sqlerp = sqlerp; - -var setAxes = function () { - var matr = mat3.create(); - return function (out, view, right, up) { - matr[0] = right[0]; - matr[3] = right[1]; - matr[6] = right[2]; - matr[1] = up[0]; - matr[4] = up[1]; - matr[7] = up[2]; - matr[2] = -view[0]; - matr[5] = -view[1]; - matr[8] = -view[2]; - return normalize(out, fromMat3(out, matr)); - }; -}(); - -exports.setAxes = setAxes; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/cjs/quat2.js b/build_vtk_bundle/node_modules/gl-matrix/cjs/quat2.js deleted file mode 100755 index fa92010f..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/cjs/quat2.js +++ /dev/null @@ -1,924 +0,0 @@ -"use strict"; - -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.create = create; -exports.clone = clone; -exports.fromValues = fromValues; -exports.fromRotationTranslationValues = fromRotationTranslationValues; -exports.fromRotationTranslation = fromRotationTranslation; -exports.fromTranslation = fromTranslation; -exports.fromRotation = fromRotation; -exports.fromMat4 = fromMat4; -exports.copy = copy; -exports.identity = identity; -exports.set = set; -exports.getDual = getDual; -exports.setDual = setDual; -exports.getTranslation = getTranslation; -exports.translate = translate; -exports.rotateX = rotateX; -exports.rotateY = rotateY; -exports.rotateZ = rotateZ; -exports.rotateByQuatAppend = rotateByQuatAppend; -exports.rotateByQuatPrepend = rotateByQuatPrepend; -exports.rotateAroundAxis = rotateAroundAxis; -exports.add = add; -exports.multiply = multiply; -exports.scale = scale; -exports.lerp = lerp; -exports.invert = invert; -exports.conjugate = conjugate; -exports.normalize = normalize; -exports.str = str; -exports.exactEquals = exactEquals; -exports.equals = equals; -exports.sqrLen = exports.squaredLength = exports.len = exports.length = exports.dot = exports.mul = exports.setReal = exports.getReal = void 0; - -var glMatrix = _interopRequireWildcard(require("./common.js")); - -var quat = _interopRequireWildcard(require("./quat.js")); - -var mat4 = _interopRequireWildcard(require("./mat4.js")); - -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - -/** - * Dual Quaternion
- * Format: [real, dual]
- * Quaternion format: XYZW
- * Make sure to have normalized dual quaternions, otherwise the functions may not work as intended.
- * @module quat2 - */ - -/** - * Creates a new identity dual quat - * - * @returns {quat2} a new dual quaternion [real -> rotation, dual -> translation] - */ -function create() { - var dq = new glMatrix.ARRAY_TYPE(8); - - if (glMatrix.ARRAY_TYPE != Float32Array) { - dq[0] = 0; - dq[1] = 0; - dq[2] = 0; - dq[4] = 0; - dq[5] = 0; - dq[6] = 0; - dq[7] = 0; - } - - dq[3] = 1; - return dq; -} -/** - * Creates a new quat initialized with values from an existing quaternion - * - * @param {ReadonlyQuat2} a dual quaternion to clone - * @returns {quat2} new dual quaternion - * @function - */ - - -function clone(a) { - var dq = new glMatrix.ARRAY_TYPE(8); - dq[0] = a[0]; - dq[1] = a[1]; - dq[2] = a[2]; - dq[3] = a[3]; - dq[4] = a[4]; - dq[5] = a[5]; - dq[6] = a[6]; - dq[7] = a[7]; - return dq; -} -/** - * Creates a new dual quat initialized with the given values - * - * @param {Number} x1 X component - * @param {Number} y1 Y component - * @param {Number} z1 Z component - * @param {Number} w1 W component - * @param {Number} x2 X component - * @param {Number} y2 Y component - * @param {Number} z2 Z component - * @param {Number} w2 W component - * @returns {quat2} new dual quaternion - * @function - */ - - -function fromValues(x1, y1, z1, w1, x2, y2, z2, w2) { - var dq = new glMatrix.ARRAY_TYPE(8); - dq[0] = x1; - dq[1] = y1; - dq[2] = z1; - dq[3] = w1; - dq[4] = x2; - dq[5] = y2; - dq[6] = z2; - dq[7] = w2; - return dq; -} -/** - * Creates a new dual quat from the given values (quat and translation) - * - * @param {Number} x1 X component - * @param {Number} y1 Y component - * @param {Number} z1 Z component - * @param {Number} w1 W component - * @param {Number} x2 X component (translation) - * @param {Number} y2 Y component (translation) - * @param {Number} z2 Z component (translation) - * @returns {quat2} new dual quaternion - * @function - */ - - -function fromRotationTranslationValues(x1, y1, z1, w1, x2, y2, z2) { - var dq = new glMatrix.ARRAY_TYPE(8); - dq[0] = x1; - dq[1] = y1; - dq[2] = z1; - dq[3] = w1; - var ax = x2 * 0.5, - ay = y2 * 0.5, - az = z2 * 0.5; - dq[4] = ax * w1 + ay * z1 - az * y1; - dq[5] = ay * w1 + az * x1 - ax * z1; - dq[6] = az * w1 + ax * y1 - ay * x1; - dq[7] = -ax * x1 - ay * y1 - az * z1; - return dq; -} -/** - * Creates a dual quat from a quaternion and a translation - * - * @param {ReadonlyQuat2} dual quaternion receiving operation result - * @param {ReadonlyQuat} q a normalized quaternion - * @param {ReadonlyVec3} t tranlation vector - * @returns {quat2} dual quaternion receiving operation result - * @function - */ - - -function fromRotationTranslation(out, q, t) { - var ax = t[0] * 0.5, - ay = t[1] * 0.5, - az = t[2] * 0.5, - bx = q[0], - by = q[1], - bz = q[2], - bw = q[3]; - out[0] = bx; - out[1] = by; - out[2] = bz; - out[3] = bw; - out[4] = ax * bw + ay * bz - az * by; - out[5] = ay * bw + az * bx - ax * bz; - out[6] = az * bw + ax * by - ay * bx; - out[7] = -ax * bx - ay * by - az * bz; - return out; -} -/** - * Creates a dual quat from a translation - * - * @param {ReadonlyQuat2} dual quaternion receiving operation result - * @param {ReadonlyVec3} t translation vector - * @returns {quat2} dual quaternion receiving operation result - * @function - */ - - -function fromTranslation(out, t) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - out[3] = 1; - out[4] = t[0] * 0.5; - out[5] = t[1] * 0.5; - out[6] = t[2] * 0.5; - out[7] = 0; - return out; -} -/** - * Creates a dual quat from a quaternion - * - * @param {ReadonlyQuat2} dual quaternion receiving operation result - * @param {ReadonlyQuat} q the quaternion - * @returns {quat2} dual quaternion receiving operation result - * @function - */ - - -function fromRotation(out, q) { - out[0] = q[0]; - out[1] = q[1]; - out[2] = q[2]; - out[3] = q[3]; - out[4] = 0; - out[5] = 0; - out[6] = 0; - out[7] = 0; - return out; -} -/** - * Creates a new dual quat from a matrix (4x4) - * - * @param {quat2} out the dual quaternion - * @param {ReadonlyMat4} a the matrix - * @returns {quat2} dual quat receiving operation result - * @function - */ - - -function fromMat4(out, a) { - //TODO Optimize this - var outer = quat.create(); - mat4.getRotation(outer, a); - var t = new glMatrix.ARRAY_TYPE(3); - mat4.getTranslation(t, a); - fromRotationTranslation(out, outer, t); - return out; -} -/** - * Copy the values from one dual quat to another - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the source dual quaternion - * @returns {quat2} out - * @function - */ - - -function copy(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - out[6] = a[6]; - out[7] = a[7]; - return out; -} -/** - * Set a dual quat to the identity dual quaternion - * - * @param {quat2} out the receiving quaternion - * @returns {quat2} out - */ - - -function identity(out) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - out[3] = 1; - out[4] = 0; - out[5] = 0; - out[6] = 0; - out[7] = 0; - return out; -} -/** - * Set the components of a dual quat to the given values - * - * @param {quat2} out the receiving quaternion - * @param {Number} x1 X component - * @param {Number} y1 Y component - * @param {Number} z1 Z component - * @param {Number} w1 W component - * @param {Number} x2 X component - * @param {Number} y2 Y component - * @param {Number} z2 Z component - * @param {Number} w2 W component - * @returns {quat2} out - * @function - */ - - -function set(out, x1, y1, z1, w1, x2, y2, z2, w2) { - out[0] = x1; - out[1] = y1; - out[2] = z1; - out[3] = w1; - out[4] = x2; - out[5] = y2; - out[6] = z2; - out[7] = w2; - return out; -} -/** - * Gets the real part of a dual quat - * @param {quat} out real part - * @param {ReadonlyQuat2} a Dual Quaternion - * @return {quat} real part - */ - - -var getReal = quat.copy; -/** - * Gets the dual part of a dual quat - * @param {quat} out dual part - * @param {ReadonlyQuat2} a Dual Quaternion - * @return {quat} dual part - */ - -exports.getReal = getReal; - -function getDual(out, a) { - out[0] = a[4]; - out[1] = a[5]; - out[2] = a[6]; - out[3] = a[7]; - return out; -} -/** - * Set the real component of a dual quat to the given quaternion - * - * @param {quat2} out the receiving quaternion - * @param {ReadonlyQuat} q a quaternion representing the real part - * @returns {quat2} out - * @function - */ - - -var setReal = quat.copy; -/** - * Set the dual component of a dual quat to the given quaternion - * - * @param {quat2} out the receiving quaternion - * @param {ReadonlyQuat} q a quaternion representing the dual part - * @returns {quat2} out - * @function - */ - -exports.setReal = setReal; - -function setDual(out, q) { - out[4] = q[0]; - out[5] = q[1]; - out[6] = q[2]; - out[7] = q[3]; - return out; -} -/** - * Gets the translation of a normalized dual quat - * @param {vec3} out translation - * @param {ReadonlyQuat2} a Dual Quaternion to be decomposed - * @return {vec3} translation - */ - - -function getTranslation(out, a) { - var ax = a[4], - ay = a[5], - az = a[6], - aw = a[7], - bx = -a[0], - by = -a[1], - bz = -a[2], - bw = a[3]; - out[0] = (ax * bw + aw * bx + ay * bz - az * by) * 2; - out[1] = (ay * bw + aw * by + az * bx - ax * bz) * 2; - out[2] = (az * bw + aw * bz + ax * by - ay * bx) * 2; - return out; -} -/** - * Translates a dual quat by the given vector - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to translate - * @param {ReadonlyVec3} v vector to translate by - * @returns {quat2} out - */ - - -function translate(out, a, v) { - var ax1 = a[0], - ay1 = a[1], - az1 = a[2], - aw1 = a[3], - bx1 = v[0] * 0.5, - by1 = v[1] * 0.5, - bz1 = v[2] * 0.5, - ax2 = a[4], - ay2 = a[5], - az2 = a[6], - aw2 = a[7]; - out[0] = ax1; - out[1] = ay1; - out[2] = az1; - out[3] = aw1; - out[4] = aw1 * bx1 + ay1 * bz1 - az1 * by1 + ax2; - out[5] = aw1 * by1 + az1 * bx1 - ax1 * bz1 + ay2; - out[6] = aw1 * bz1 + ax1 * by1 - ay1 * bx1 + az2; - out[7] = -ax1 * bx1 - ay1 * by1 - az1 * bz1 + aw2; - return out; -} -/** - * Rotates a dual quat around the X axis - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @param {number} rad how far should the rotation be - * @returns {quat2} out - */ - - -function rotateX(out, a, rad) { - var bx = -a[0], - by = -a[1], - bz = -a[2], - bw = a[3], - ax = a[4], - ay = a[5], - az = a[6], - aw = a[7], - ax1 = ax * bw + aw * bx + ay * bz - az * by, - ay1 = ay * bw + aw * by + az * bx - ax * bz, - az1 = az * bw + aw * bz + ax * by - ay * bx, - aw1 = aw * bw - ax * bx - ay * by - az * bz; - quat.rotateX(out, a, rad); - bx = out[0]; - by = out[1]; - bz = out[2]; - bw = out[3]; - out[4] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by; - out[5] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz; - out[6] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx; - out[7] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz; - return out; -} -/** - * Rotates a dual quat around the Y axis - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @param {number} rad how far should the rotation be - * @returns {quat2} out - */ - - -function rotateY(out, a, rad) { - var bx = -a[0], - by = -a[1], - bz = -a[2], - bw = a[3], - ax = a[4], - ay = a[5], - az = a[6], - aw = a[7], - ax1 = ax * bw + aw * bx + ay * bz - az * by, - ay1 = ay * bw + aw * by + az * bx - ax * bz, - az1 = az * bw + aw * bz + ax * by - ay * bx, - aw1 = aw * bw - ax * bx - ay * by - az * bz; - quat.rotateY(out, a, rad); - bx = out[0]; - by = out[1]; - bz = out[2]; - bw = out[3]; - out[4] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by; - out[5] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz; - out[6] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx; - out[7] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz; - return out; -} -/** - * Rotates a dual quat around the Z axis - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @param {number} rad how far should the rotation be - * @returns {quat2} out - */ - - -function rotateZ(out, a, rad) { - var bx = -a[0], - by = -a[1], - bz = -a[2], - bw = a[3], - ax = a[4], - ay = a[5], - az = a[6], - aw = a[7], - ax1 = ax * bw + aw * bx + ay * bz - az * by, - ay1 = ay * bw + aw * by + az * bx - ax * bz, - az1 = az * bw + aw * bz + ax * by - ay * bx, - aw1 = aw * bw - ax * bx - ay * by - az * bz; - quat.rotateZ(out, a, rad); - bx = out[0]; - by = out[1]; - bz = out[2]; - bw = out[3]; - out[4] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by; - out[5] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz; - out[6] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx; - out[7] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz; - return out; -} -/** - * Rotates a dual quat by a given quaternion (a * q) - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @param {ReadonlyQuat} q quaternion to rotate by - * @returns {quat2} out - */ - - -function rotateByQuatAppend(out, a, q) { - var qx = q[0], - qy = q[1], - qz = q[2], - qw = q[3], - ax = a[0], - ay = a[1], - az = a[2], - aw = a[3]; - out[0] = ax * qw + aw * qx + ay * qz - az * qy; - out[1] = ay * qw + aw * qy + az * qx - ax * qz; - out[2] = az * qw + aw * qz + ax * qy - ay * qx; - out[3] = aw * qw - ax * qx - ay * qy - az * qz; - ax = a[4]; - ay = a[5]; - az = a[6]; - aw = a[7]; - out[4] = ax * qw + aw * qx + ay * qz - az * qy; - out[5] = ay * qw + aw * qy + az * qx - ax * qz; - out[6] = az * qw + aw * qz + ax * qy - ay * qx; - out[7] = aw * qw - ax * qx - ay * qy - az * qz; - return out; -} -/** - * Rotates a dual quat by a given quaternion (q * a) - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat} q quaternion to rotate by - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @returns {quat2} out - */ - - -function rotateByQuatPrepend(out, q, a) { - var qx = q[0], - qy = q[1], - qz = q[2], - qw = q[3], - bx = a[0], - by = a[1], - bz = a[2], - bw = a[3]; - out[0] = qx * bw + qw * bx + qy * bz - qz * by; - out[1] = qy * bw + qw * by + qz * bx - qx * bz; - out[2] = qz * bw + qw * bz + qx * by - qy * bx; - out[3] = qw * bw - qx * bx - qy * by - qz * bz; - bx = a[4]; - by = a[5]; - bz = a[6]; - bw = a[7]; - out[4] = qx * bw + qw * bx + qy * bz - qz * by; - out[5] = qy * bw + qw * by + qz * bx - qx * bz; - out[6] = qz * bw + qw * bz + qx * by - qy * bx; - out[7] = qw * bw - qx * bx - qy * by - qz * bz; - return out; -} -/** - * Rotates a dual quat around a given axis. Does the normalisation automatically - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @param {ReadonlyVec3} axis the axis to rotate around - * @param {Number} rad how far the rotation should be - * @returns {quat2} out - */ - - -function rotateAroundAxis(out, a, axis, rad) { - //Special case for rad = 0 - if (Math.abs(rad) < glMatrix.EPSILON) { - return copy(out, a); - } - - var axisLength = Math.hypot(axis[0], axis[1], axis[2]); - rad = rad * 0.5; - var s = Math.sin(rad); - var bx = s * axis[0] / axisLength; - var by = s * axis[1] / axisLength; - var bz = s * axis[2] / axisLength; - var bw = Math.cos(rad); - var ax1 = a[0], - ay1 = a[1], - az1 = a[2], - aw1 = a[3]; - out[0] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by; - out[1] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz; - out[2] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx; - out[3] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz; - var ax = a[4], - ay = a[5], - az = a[6], - aw = a[7]; - out[4] = ax * bw + aw * bx + ay * bz - az * by; - out[5] = ay * bw + aw * by + az * bx - ax * bz; - out[6] = az * bw + aw * bz + ax * by - ay * bx; - out[7] = aw * bw - ax * bx - ay * by - az * bz; - return out; -} -/** - * Adds two dual quat's - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the first operand - * @param {ReadonlyQuat2} b the second operand - * @returns {quat2} out - * @function - */ - - -function add(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - out[3] = a[3] + b[3]; - out[4] = a[4] + b[4]; - out[5] = a[5] + b[5]; - out[6] = a[6] + b[6]; - out[7] = a[7] + b[7]; - return out; -} -/** - * Multiplies two dual quat's - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the first operand - * @param {ReadonlyQuat2} b the second operand - * @returns {quat2} out - */ - - -function multiply(out, a, b) { - var ax0 = a[0], - ay0 = a[1], - az0 = a[2], - aw0 = a[3], - bx1 = b[4], - by1 = b[5], - bz1 = b[6], - bw1 = b[7], - ax1 = a[4], - ay1 = a[5], - az1 = a[6], - aw1 = a[7], - bx0 = b[0], - by0 = b[1], - bz0 = b[2], - bw0 = b[3]; - out[0] = ax0 * bw0 + aw0 * bx0 + ay0 * bz0 - az0 * by0; - out[1] = ay0 * bw0 + aw0 * by0 + az0 * bx0 - ax0 * bz0; - out[2] = az0 * bw0 + aw0 * bz0 + ax0 * by0 - ay0 * bx0; - out[3] = aw0 * bw0 - ax0 * bx0 - ay0 * by0 - az0 * bz0; - out[4] = ax0 * bw1 + aw0 * bx1 + ay0 * bz1 - az0 * by1 + ax1 * bw0 + aw1 * bx0 + ay1 * bz0 - az1 * by0; - out[5] = ay0 * bw1 + aw0 * by1 + az0 * bx1 - ax0 * bz1 + ay1 * bw0 + aw1 * by0 + az1 * bx0 - ax1 * bz0; - out[6] = az0 * bw1 + aw0 * bz1 + ax0 * by1 - ay0 * bx1 + az1 * bw0 + aw1 * bz0 + ax1 * by0 - ay1 * bx0; - out[7] = aw0 * bw1 - ax0 * bx1 - ay0 * by1 - az0 * bz1 + aw1 * bw0 - ax1 * bx0 - ay1 * by0 - az1 * bz0; - return out; -} -/** - * Alias for {@link quat2.multiply} - * @function - */ - - -var mul = multiply; -/** - * Scales a dual quat by a scalar number - * - * @param {quat2} out the receiving dual quat - * @param {ReadonlyQuat2} a the dual quat to scale - * @param {Number} b amount to scale the dual quat by - * @returns {quat2} out - * @function - */ - -exports.mul = mul; - -function scale(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - out[3] = a[3] * b; - out[4] = a[4] * b; - out[5] = a[5] * b; - out[6] = a[6] * b; - out[7] = a[7] * b; - return out; -} -/** - * Calculates the dot product of two dual quat's (The dot product of the real parts) - * - * @param {ReadonlyQuat2} a the first operand - * @param {ReadonlyQuat2} b the second operand - * @returns {Number} dot product of a and b - * @function - */ - - -var dot = quat.dot; -/** - * Performs a linear interpolation between two dual quats's - * NOTE: The resulting dual quaternions won't always be normalized (The error is most noticeable when t = 0.5) - * - * @param {quat2} out the receiving dual quat - * @param {ReadonlyQuat2} a the first operand - * @param {ReadonlyQuat2} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {quat2} out - */ - -exports.dot = dot; - -function lerp(out, a, b, t) { - var mt = 1 - t; - if (dot(a, b) < 0) t = -t; - out[0] = a[0] * mt + b[0] * t; - out[1] = a[1] * mt + b[1] * t; - out[2] = a[2] * mt + b[2] * t; - out[3] = a[3] * mt + b[3] * t; - out[4] = a[4] * mt + b[4] * t; - out[5] = a[5] * mt + b[5] * t; - out[6] = a[6] * mt + b[6] * t; - out[7] = a[7] * mt + b[7] * t; - return out; -} -/** - * Calculates the inverse of a dual quat. If they are normalized, conjugate is cheaper - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a dual quat to calculate inverse of - * @returns {quat2} out - */ - - -function invert(out, a) { - var sqlen = squaredLength(a); - out[0] = -a[0] / sqlen; - out[1] = -a[1] / sqlen; - out[2] = -a[2] / sqlen; - out[3] = a[3] / sqlen; - out[4] = -a[4] / sqlen; - out[5] = -a[5] / sqlen; - out[6] = -a[6] / sqlen; - out[7] = a[7] / sqlen; - return out; -} -/** - * Calculates the conjugate of a dual quat - * If the dual quaternion is normalized, this function is faster than quat2.inverse and produces the same result. - * - * @param {quat2} out the receiving quaternion - * @param {ReadonlyQuat2} a quat to calculate conjugate of - * @returns {quat2} out - */ - - -function conjugate(out, a) { - out[0] = -a[0]; - out[1] = -a[1]; - out[2] = -a[2]; - out[3] = a[3]; - out[4] = -a[4]; - out[5] = -a[5]; - out[6] = -a[6]; - out[7] = a[7]; - return out; -} -/** - * Calculates the length of a dual quat - * - * @param {ReadonlyQuat2} a dual quat to calculate length of - * @returns {Number} length of a - * @function - */ - - -var length = quat.length; -/** - * Alias for {@link quat2.length} - * @function - */ - -exports.length = length; -var len = length; -/** - * Calculates the squared length of a dual quat - * - * @param {ReadonlyQuat2} a dual quat to calculate squared length of - * @returns {Number} squared length of a - * @function - */ - -exports.len = len; -var squaredLength = quat.squaredLength; -/** - * Alias for {@link quat2.squaredLength} - * @function - */ - -exports.squaredLength = squaredLength; -var sqrLen = squaredLength; -/** - * Normalize a dual quat - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a dual quaternion to normalize - * @returns {quat2} out - * @function - */ - -exports.sqrLen = sqrLen; - -function normalize(out, a) { - var magnitude = squaredLength(a); - - if (magnitude > 0) { - magnitude = Math.sqrt(magnitude); - var a0 = a[0] / magnitude; - var a1 = a[1] / magnitude; - var a2 = a[2] / magnitude; - var a3 = a[3] / magnitude; - var b0 = a[4]; - var b1 = a[5]; - var b2 = a[6]; - var b3 = a[7]; - var a_dot_b = a0 * b0 + a1 * b1 + a2 * b2 + a3 * b3; - out[0] = a0; - out[1] = a1; - out[2] = a2; - out[3] = a3; - out[4] = (b0 - a0 * a_dot_b) / magnitude; - out[5] = (b1 - a1 * a_dot_b) / magnitude; - out[6] = (b2 - a2 * a_dot_b) / magnitude; - out[7] = (b3 - a3 * a_dot_b) / magnitude; - } - - return out; -} -/** - * Returns a string representation of a dual quatenion - * - * @param {ReadonlyQuat2} a dual quaternion to represent as a string - * @returns {String} string representation of the dual quat - */ - - -function str(a) { - return "quat2(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ", " + a[6] + ", " + a[7] + ")"; -} -/** - * Returns whether or not the dual quaternions have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyQuat2} a the first dual quaternion. - * @param {ReadonlyQuat2} b the second dual quaternion. - * @returns {Boolean} true if the dual quaternions are equal, false otherwise. - */ - - -function exactEquals(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7]; -} -/** - * Returns whether or not the dual quaternions have approximately the same elements in the same position. - * - * @param {ReadonlyQuat2} a the first dual quat. - * @param {ReadonlyQuat2} b the second dual quat. - * @returns {Boolean} true if the dual quats are equal, false otherwise. - */ - - -function equals(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5], - a6 = a[6], - a7 = a[7]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3], - b4 = b[4], - b5 = b[5], - b6 = b[6], - b7 = b[7]; - return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a7), Math.abs(b7)); -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/cjs/vec2.js b/build_vtk_bundle/node_modules/gl-matrix/cjs/vec2.js deleted file mode 100755 index e97cf05e..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/cjs/vec2.js +++ /dev/null @@ -1,721 +0,0 @@ -"use strict"; - -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.create = create; -exports.clone = clone; -exports.fromValues = fromValues; -exports.copy = copy; -exports.set = set; -exports.add = add; -exports.subtract = subtract; -exports.multiply = multiply; -exports.divide = divide; -exports.ceil = ceil; -exports.floor = floor; -exports.min = min; -exports.max = max; -exports.round = round; -exports.scale = scale; -exports.scaleAndAdd = scaleAndAdd; -exports.distance = distance; -exports.squaredDistance = squaredDistance; -exports.length = length; -exports.squaredLength = squaredLength; -exports.negate = negate; -exports.inverse = inverse; -exports.normalize = normalize; -exports.dot = dot; -exports.cross = cross; -exports.lerp = lerp; -exports.random = random; -exports.transformMat2 = transformMat2; -exports.transformMat2d = transformMat2d; -exports.transformMat3 = transformMat3; -exports.transformMat4 = transformMat4; -exports.rotate = rotate; -exports.angle = angle; -exports.zero = zero; -exports.str = str; -exports.exactEquals = exactEquals; -exports.equals = equals; -exports.forEach = exports.sqrLen = exports.sqrDist = exports.dist = exports.div = exports.mul = exports.sub = exports.len = void 0; - -var glMatrix = _interopRequireWildcard(require("./common.js")); - -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - -/** - * 2 Dimensional Vector - * @module vec2 - */ - -/** - * Creates a new, empty vec2 - * - * @returns {vec2} a new 2D vector - */ -function create() { - var out = new glMatrix.ARRAY_TYPE(2); - - if (glMatrix.ARRAY_TYPE != Float32Array) { - out[0] = 0; - out[1] = 0; - } - - return out; -} -/** - * Creates a new vec2 initialized with values from an existing vector - * - * @param {ReadonlyVec2} a vector to clone - * @returns {vec2} a new 2D vector - */ - - -function clone(a) { - var out = new glMatrix.ARRAY_TYPE(2); - out[0] = a[0]; - out[1] = a[1]; - return out; -} -/** - * Creates a new vec2 initialized with the given values - * - * @param {Number} x X component - * @param {Number} y Y component - * @returns {vec2} a new 2D vector - */ - - -function fromValues(x, y) { - var out = new glMatrix.ARRAY_TYPE(2); - out[0] = x; - out[1] = y; - return out; -} -/** - * Copy the values from one vec2 to another - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the source vector - * @returns {vec2} out - */ - - -function copy(out, a) { - out[0] = a[0]; - out[1] = a[1]; - return out; -} -/** - * Set the components of a vec2 to the given values - * - * @param {vec2} out the receiving vector - * @param {Number} x X component - * @param {Number} y Y component - * @returns {vec2} out - */ - - -function set(out, x, y) { - out[0] = x; - out[1] = y; - return out; -} -/** - * Adds two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - - -function add(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - return out; -} -/** - * Subtracts vector b from vector a - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - - -function subtract(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - return out; -} -/** - * Multiplies two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - - -function multiply(out, a, b) { - out[0] = a[0] * b[0]; - out[1] = a[1] * b[1]; - return out; -} -/** - * Divides two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - - -function divide(out, a, b) { - out[0] = a[0] / b[0]; - out[1] = a[1] / b[1]; - return out; -} -/** - * Math.ceil the components of a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to ceil - * @returns {vec2} out - */ - - -function ceil(out, a) { - out[0] = Math.ceil(a[0]); - out[1] = Math.ceil(a[1]); - return out; -} -/** - * Math.floor the components of a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to floor - * @returns {vec2} out - */ - - -function floor(out, a) { - out[0] = Math.floor(a[0]); - out[1] = Math.floor(a[1]); - return out; -} -/** - * Returns the minimum of two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - - -function min(out, a, b) { - out[0] = Math.min(a[0], b[0]); - out[1] = Math.min(a[1], b[1]); - return out; -} -/** - * Returns the maximum of two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - - -function max(out, a, b) { - out[0] = Math.max(a[0], b[0]); - out[1] = Math.max(a[1], b[1]); - return out; -} -/** - * Math.round the components of a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to round - * @returns {vec2} out - */ - - -function round(out, a) { - out[0] = Math.round(a[0]); - out[1] = Math.round(a[1]); - return out; -} -/** - * Scales a vec2 by a scalar number - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the vector to scale - * @param {Number} b amount to scale the vector by - * @returns {vec2} out - */ - - -function scale(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - return out; -} -/** - * Adds two vec2's after scaling the second operand by a scalar value - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @param {Number} scale the amount to scale b by before adding - * @returns {vec2} out - */ - - -function scaleAndAdd(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - return out; -} -/** - * Calculates the euclidian distance between two vec2's - * - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {Number} distance between a and b - */ - - -function distance(a, b) { - var x = b[0] - a[0], - y = b[1] - a[1]; - return Math.hypot(x, y); -} -/** - * Calculates the squared euclidian distance between two vec2's - * - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {Number} squared distance between a and b - */ - - -function squaredDistance(a, b) { - var x = b[0] - a[0], - y = b[1] - a[1]; - return x * x + y * y; -} -/** - * Calculates the length of a vec2 - * - * @param {ReadonlyVec2} a vector to calculate length of - * @returns {Number} length of a - */ - - -function length(a) { - var x = a[0], - y = a[1]; - return Math.hypot(x, y); -} -/** - * Calculates the squared length of a vec2 - * - * @param {ReadonlyVec2} a vector to calculate squared length of - * @returns {Number} squared length of a - */ - - -function squaredLength(a) { - var x = a[0], - y = a[1]; - return x * x + y * y; -} -/** - * Negates the components of a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to negate - * @returns {vec2} out - */ - - -function negate(out, a) { - out[0] = -a[0]; - out[1] = -a[1]; - return out; -} -/** - * Returns the inverse of the components of a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to invert - * @returns {vec2} out - */ - - -function inverse(out, a) { - out[0] = 1.0 / a[0]; - out[1] = 1.0 / a[1]; - return out; -} -/** - * Normalize a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to normalize - * @returns {vec2} out - */ - - -function normalize(out, a) { - var x = a[0], - y = a[1]; - var len = x * x + y * y; - - if (len > 0) { - //TODO: evaluate use of glm_invsqrt here? - len = 1 / Math.sqrt(len); - } - - out[0] = a[0] * len; - out[1] = a[1] * len; - return out; -} -/** - * Calculates the dot product of two vec2's - * - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {Number} dot product of a and b - */ - - -function dot(a, b) { - return a[0] * b[0] + a[1] * b[1]; -} -/** - * Computes the cross product of two vec2's - * Note that the cross product must by definition produce a 3D vector - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec3} out - */ - - -function cross(out, a, b) { - var z = a[0] * b[1] - a[1] * b[0]; - out[0] = out[1] = 0; - out[2] = z; - return out; -} -/** - * Performs a linear interpolation between two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {vec2} out - */ - - -function lerp(out, a, b, t) { - var ax = a[0], - ay = a[1]; - out[0] = ax + t * (b[0] - ax); - out[1] = ay + t * (b[1] - ay); - return out; -} -/** - * Generates a random vector with the given scale - * - * @param {vec2} out the receiving vector - * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned - * @returns {vec2} out - */ - - -function random(out, scale) { - scale = scale || 1.0; - var r = glMatrix.RANDOM() * 2.0 * Math.PI; - out[0] = Math.cos(r) * scale; - out[1] = Math.sin(r) * scale; - return out; -} -/** - * Transforms the vec2 with a mat2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the vector to transform - * @param {ReadonlyMat2} m matrix to transform with - * @returns {vec2} out - */ - - -function transformMat2(out, a, m) { - var x = a[0], - y = a[1]; - out[0] = m[0] * x + m[2] * y; - out[1] = m[1] * x + m[3] * y; - return out; -} -/** - * Transforms the vec2 with a mat2d - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the vector to transform - * @param {ReadonlyMat2d} m matrix to transform with - * @returns {vec2} out - */ - - -function transformMat2d(out, a, m) { - var x = a[0], - y = a[1]; - out[0] = m[0] * x + m[2] * y + m[4]; - out[1] = m[1] * x + m[3] * y + m[5]; - return out; -} -/** - * Transforms the vec2 with a mat3 - * 3rd vector component is implicitly '1' - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the vector to transform - * @param {ReadonlyMat3} m matrix to transform with - * @returns {vec2} out - */ - - -function transformMat3(out, a, m) { - var x = a[0], - y = a[1]; - out[0] = m[0] * x + m[3] * y + m[6]; - out[1] = m[1] * x + m[4] * y + m[7]; - return out; -} -/** - * Transforms the vec2 with a mat4 - * 3rd vector component is implicitly '0' - * 4th vector component is implicitly '1' - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the vector to transform - * @param {ReadonlyMat4} m matrix to transform with - * @returns {vec2} out - */ - - -function transformMat4(out, a, m) { - var x = a[0]; - var y = a[1]; - out[0] = m[0] * x + m[4] * y + m[12]; - out[1] = m[1] * x + m[5] * y + m[13]; - return out; -} -/** - * Rotate a 2D vector - * @param {vec2} out The receiving vec2 - * @param {ReadonlyVec2} a The vec2 point to rotate - * @param {ReadonlyVec2} b The origin of the rotation - * @param {Number} rad The angle of rotation in radians - * @returns {vec2} out - */ - - -function rotate(out, a, b, rad) { - //Translate point to the origin - var p0 = a[0] - b[0], - p1 = a[1] - b[1], - sinC = Math.sin(rad), - cosC = Math.cos(rad); //perform rotation and translate to correct position - - out[0] = p0 * cosC - p1 * sinC + b[0]; - out[1] = p0 * sinC + p1 * cosC + b[1]; - return out; -} -/** - * Get the angle between two 2D vectors - * @param {ReadonlyVec2} a The first operand - * @param {ReadonlyVec2} b The second operand - * @returns {Number} The angle in radians - */ - - -function angle(a, b) { - var x1 = a[0], - y1 = a[1], - x2 = b[0], - y2 = b[1], - // mag is the product of the magnitudes of a and b - mag = Math.sqrt(x1 * x1 + y1 * y1) * Math.sqrt(x2 * x2 + y2 * y2), - // mag &&.. short circuits if mag == 0 - cosine = mag && (x1 * x2 + y1 * y2) / mag; // Math.min(Math.max(cosine, -1), 1) clamps the cosine between -1 and 1 - - return Math.acos(Math.min(Math.max(cosine, -1), 1)); -} -/** - * Set the components of a vec2 to zero - * - * @param {vec2} out the receiving vector - * @returns {vec2} out - */ - - -function zero(out) { - out[0] = 0.0; - out[1] = 0.0; - return out; -} -/** - * Returns a string representation of a vector - * - * @param {ReadonlyVec2} a vector to represent as a string - * @returns {String} string representation of the vector - */ - - -function str(a) { - return "vec2(" + a[0] + ", " + a[1] + ")"; -} -/** - * Returns whether or not the vectors exactly have the same elements in the same position (when compared with ===) - * - * @param {ReadonlyVec2} a The first vector. - * @param {ReadonlyVec2} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - - -function exactEquals(a, b) { - return a[0] === b[0] && a[1] === b[1]; -} -/** - * Returns whether or not the vectors have approximately the same elements in the same position. - * - * @param {ReadonlyVec2} a The first vector. - * @param {ReadonlyVec2} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - - -function equals(a, b) { - var a0 = a[0], - a1 = a[1]; - var b0 = b[0], - b1 = b[1]; - return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)); -} -/** - * Alias for {@link vec2.length} - * @function - */ - - -var len = length; -/** - * Alias for {@link vec2.subtract} - * @function - */ - -exports.len = len; -var sub = subtract; -/** - * Alias for {@link vec2.multiply} - * @function - */ - -exports.sub = sub; -var mul = multiply; -/** - * Alias for {@link vec2.divide} - * @function - */ - -exports.mul = mul; -var div = divide; -/** - * Alias for {@link vec2.distance} - * @function - */ - -exports.div = div; -var dist = distance; -/** - * Alias for {@link vec2.squaredDistance} - * @function - */ - -exports.dist = dist; -var sqrDist = squaredDistance; -/** - * Alias for {@link vec2.squaredLength} - * @function - */ - -exports.sqrDist = sqrDist; -var sqrLen = squaredLength; -/** - * Perform some operation over an array of vec2s. - * - * @param {Array} a the array of vectors to iterate over - * @param {Number} stride Number of elements between the start of each vec2. If 0 assumes tightly packed - * @param {Number} offset Number of elements to skip at the beginning of the array - * @param {Number} count Number of vec2s to iterate over. If 0 iterates over entire array - * @param {Function} fn Function to call for each vector in the array - * @param {Object} [arg] additional argument to pass to fn - * @returns {Array} a - * @function - */ - -exports.sqrLen = sqrLen; - -var forEach = function () { - var vec = create(); - return function (a, stride, offset, count, fn, arg) { - var i, l; - - if (!stride) { - stride = 2; - } - - if (!offset) { - offset = 0; - } - - if (count) { - l = Math.min(count * stride + offset, a.length); - } else { - l = a.length; - } - - for (i = offset; i < l; i += stride) { - vec[0] = a[i]; - vec[1] = a[i + 1]; - fn(vec, vec, arg); - a[i] = vec[0]; - a[i + 1] = vec[1]; - } - - return a; - }; -}(); - -exports.forEach = forEach; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/cjs/vec3.js b/build_vtk_bundle/node_modules/gl-matrix/cjs/vec3.js deleted file mode 100755 index d734cc91..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/cjs/vec3.js +++ /dev/null @@ -1,890 +0,0 @@ -"use strict"; - -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.create = create; -exports.clone = clone; -exports.length = length; -exports.fromValues = fromValues; -exports.copy = copy; -exports.set = set; -exports.add = add; -exports.subtract = subtract; -exports.multiply = multiply; -exports.divide = divide; -exports.ceil = ceil; -exports.floor = floor; -exports.min = min; -exports.max = max; -exports.round = round; -exports.scale = scale; -exports.scaleAndAdd = scaleAndAdd; -exports.distance = distance; -exports.squaredDistance = squaredDistance; -exports.squaredLength = squaredLength; -exports.negate = negate; -exports.inverse = inverse; -exports.normalize = normalize; -exports.dot = dot; -exports.cross = cross; -exports.lerp = lerp; -exports.hermite = hermite; -exports.bezier = bezier; -exports.random = random; -exports.transformMat4 = transformMat4; -exports.transformMat3 = transformMat3; -exports.transformQuat = transformQuat; -exports.rotateX = rotateX; -exports.rotateY = rotateY; -exports.rotateZ = rotateZ; -exports.angle = angle; -exports.zero = zero; -exports.str = str; -exports.exactEquals = exactEquals; -exports.equals = equals; -exports.forEach = exports.sqrLen = exports.len = exports.sqrDist = exports.dist = exports.div = exports.mul = exports.sub = void 0; - -var glMatrix = _interopRequireWildcard(require("./common.js")); - -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - -/** - * 3 Dimensional Vector - * @module vec3 - */ - -/** - * Creates a new, empty vec3 - * - * @returns {vec3} a new 3D vector - */ -function create() { - var out = new glMatrix.ARRAY_TYPE(3); - - if (glMatrix.ARRAY_TYPE != Float32Array) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - } - - return out; -} -/** - * Creates a new vec3 initialized with values from an existing vector - * - * @param {ReadonlyVec3} a vector to clone - * @returns {vec3} a new 3D vector - */ - - -function clone(a) { - var out = new glMatrix.ARRAY_TYPE(3); - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - return out; -} -/** - * Calculates the length of a vec3 - * - * @param {ReadonlyVec3} a vector to calculate length of - * @returns {Number} length of a - */ - - -function length(a) { - var x = a[0]; - var y = a[1]; - var z = a[2]; - return Math.hypot(x, y, z); -} -/** - * Creates a new vec3 initialized with the given values - * - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @returns {vec3} a new 3D vector - */ - - -function fromValues(x, y, z) { - var out = new glMatrix.ARRAY_TYPE(3); - out[0] = x; - out[1] = y; - out[2] = z; - return out; -} -/** - * Copy the values from one vec3 to another - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the source vector - * @returns {vec3} out - */ - - -function copy(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - return out; -} -/** - * Set the components of a vec3 to the given values - * - * @param {vec3} out the receiving vector - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @returns {vec3} out - */ - - -function set(out, x, y, z) { - out[0] = x; - out[1] = y; - out[2] = z; - return out; -} -/** - * Adds two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - - -function add(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - return out; -} -/** - * Subtracts vector b from vector a - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - - -function subtract(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - out[2] = a[2] - b[2]; - return out; -} -/** - * Multiplies two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - - -function multiply(out, a, b) { - out[0] = a[0] * b[0]; - out[1] = a[1] * b[1]; - out[2] = a[2] * b[2]; - return out; -} -/** - * Divides two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - - -function divide(out, a, b) { - out[0] = a[0] / b[0]; - out[1] = a[1] / b[1]; - out[2] = a[2] / b[2]; - return out; -} -/** - * Math.ceil the components of a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to ceil - * @returns {vec3} out - */ - - -function ceil(out, a) { - out[0] = Math.ceil(a[0]); - out[1] = Math.ceil(a[1]); - out[2] = Math.ceil(a[2]); - return out; -} -/** - * Math.floor the components of a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to floor - * @returns {vec3} out - */ - - -function floor(out, a) { - out[0] = Math.floor(a[0]); - out[1] = Math.floor(a[1]); - out[2] = Math.floor(a[2]); - return out; -} -/** - * Returns the minimum of two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - - -function min(out, a, b) { - out[0] = Math.min(a[0], b[0]); - out[1] = Math.min(a[1], b[1]); - out[2] = Math.min(a[2], b[2]); - return out; -} -/** - * Returns the maximum of two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - - -function max(out, a, b) { - out[0] = Math.max(a[0], b[0]); - out[1] = Math.max(a[1], b[1]); - out[2] = Math.max(a[2], b[2]); - return out; -} -/** - * Math.round the components of a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to round - * @returns {vec3} out - */ - - -function round(out, a) { - out[0] = Math.round(a[0]); - out[1] = Math.round(a[1]); - out[2] = Math.round(a[2]); - return out; -} -/** - * Scales a vec3 by a scalar number - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the vector to scale - * @param {Number} b amount to scale the vector by - * @returns {vec3} out - */ - - -function scale(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - return out; -} -/** - * Adds two vec3's after scaling the second operand by a scalar value - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @param {Number} scale the amount to scale b by before adding - * @returns {vec3} out - */ - - -function scaleAndAdd(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - out[2] = a[2] + b[2] * scale; - return out; -} -/** - * Calculates the euclidian distance between two vec3's - * - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {Number} distance between a and b - */ - - -function distance(a, b) { - var x = b[0] - a[0]; - var y = b[1] - a[1]; - var z = b[2] - a[2]; - return Math.hypot(x, y, z); -} -/** - * Calculates the squared euclidian distance between two vec3's - * - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {Number} squared distance between a and b - */ - - -function squaredDistance(a, b) { - var x = b[0] - a[0]; - var y = b[1] - a[1]; - var z = b[2] - a[2]; - return x * x + y * y + z * z; -} -/** - * Calculates the squared length of a vec3 - * - * @param {ReadonlyVec3} a vector to calculate squared length of - * @returns {Number} squared length of a - */ - - -function squaredLength(a) { - var x = a[0]; - var y = a[1]; - var z = a[2]; - return x * x + y * y + z * z; -} -/** - * Negates the components of a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to negate - * @returns {vec3} out - */ - - -function negate(out, a) { - out[0] = -a[0]; - out[1] = -a[1]; - out[2] = -a[2]; - return out; -} -/** - * Returns the inverse of the components of a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to invert - * @returns {vec3} out - */ - - -function inverse(out, a) { - out[0] = 1.0 / a[0]; - out[1] = 1.0 / a[1]; - out[2] = 1.0 / a[2]; - return out; -} -/** - * Normalize a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to normalize - * @returns {vec3} out - */ - - -function normalize(out, a) { - var x = a[0]; - var y = a[1]; - var z = a[2]; - var len = x * x + y * y + z * z; - - if (len > 0) { - //TODO: evaluate use of glm_invsqrt here? - len = 1 / Math.sqrt(len); - } - - out[0] = a[0] * len; - out[1] = a[1] * len; - out[2] = a[2] * len; - return out; -} -/** - * Calculates the dot product of two vec3's - * - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {Number} dot product of a and b - */ - - -function dot(a, b) { - return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; -} -/** - * Computes the cross product of two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - - -function cross(out, a, b) { - var ax = a[0], - ay = a[1], - az = a[2]; - var bx = b[0], - by = b[1], - bz = b[2]; - out[0] = ay * bz - az * by; - out[1] = az * bx - ax * bz; - out[2] = ax * by - ay * bx; - return out; -} -/** - * Performs a linear interpolation between two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {vec3} out - */ - - -function lerp(out, a, b, t) { - var ax = a[0]; - var ay = a[1]; - var az = a[2]; - out[0] = ax + t * (b[0] - ax); - out[1] = ay + t * (b[1] - ay); - out[2] = az + t * (b[2] - az); - return out; -} -/** - * Performs a hermite interpolation with two control points - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @param {ReadonlyVec3} c the third operand - * @param {ReadonlyVec3} d the fourth operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {vec3} out - */ - - -function hermite(out, a, b, c, d, t) { - var factorTimes2 = t * t; - var factor1 = factorTimes2 * (2 * t - 3) + 1; - var factor2 = factorTimes2 * (t - 2) + t; - var factor3 = factorTimes2 * (t - 1); - var factor4 = factorTimes2 * (3 - 2 * t); - out[0] = a[0] * factor1 + b[0] * factor2 + c[0] * factor3 + d[0] * factor4; - out[1] = a[1] * factor1 + b[1] * factor2 + c[1] * factor3 + d[1] * factor4; - out[2] = a[2] * factor1 + b[2] * factor2 + c[2] * factor3 + d[2] * factor4; - return out; -} -/** - * Performs a bezier interpolation with two control points - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @param {ReadonlyVec3} c the third operand - * @param {ReadonlyVec3} d the fourth operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {vec3} out - */ - - -function bezier(out, a, b, c, d, t) { - var inverseFactor = 1 - t; - var inverseFactorTimesTwo = inverseFactor * inverseFactor; - var factorTimes2 = t * t; - var factor1 = inverseFactorTimesTwo * inverseFactor; - var factor2 = 3 * t * inverseFactorTimesTwo; - var factor3 = 3 * factorTimes2 * inverseFactor; - var factor4 = factorTimes2 * t; - out[0] = a[0] * factor1 + b[0] * factor2 + c[0] * factor3 + d[0] * factor4; - out[1] = a[1] * factor1 + b[1] * factor2 + c[1] * factor3 + d[1] * factor4; - out[2] = a[2] * factor1 + b[2] * factor2 + c[2] * factor3 + d[2] * factor4; - return out; -} -/** - * Generates a random vector with the given scale - * - * @param {vec3} out the receiving vector - * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned - * @returns {vec3} out - */ - - -function random(out, scale) { - scale = scale || 1.0; - var r = glMatrix.RANDOM() * 2.0 * Math.PI; - var z = glMatrix.RANDOM() * 2.0 - 1.0; - var zScale = Math.sqrt(1.0 - z * z) * scale; - out[0] = Math.cos(r) * zScale; - out[1] = Math.sin(r) * zScale; - out[2] = z * scale; - return out; -} -/** - * Transforms the vec3 with a mat4. - * 4th vector component is implicitly '1' - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the vector to transform - * @param {ReadonlyMat4} m matrix to transform with - * @returns {vec3} out - */ - - -function transformMat4(out, a, m) { - var x = a[0], - y = a[1], - z = a[2]; - var w = m[3] * x + m[7] * y + m[11] * z + m[15]; - w = w || 1.0; - out[0] = (m[0] * x + m[4] * y + m[8] * z + m[12]) / w; - out[1] = (m[1] * x + m[5] * y + m[9] * z + m[13]) / w; - out[2] = (m[2] * x + m[6] * y + m[10] * z + m[14]) / w; - return out; -} -/** - * Transforms the vec3 with a mat3. - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the vector to transform - * @param {ReadonlyMat3} m the 3x3 matrix to transform with - * @returns {vec3} out - */ - - -function transformMat3(out, a, m) { - var x = a[0], - y = a[1], - z = a[2]; - out[0] = x * m[0] + y * m[3] + z * m[6]; - out[1] = x * m[1] + y * m[4] + z * m[7]; - out[2] = x * m[2] + y * m[5] + z * m[8]; - return out; -} -/** - * Transforms the vec3 with a quat - * Can also be used for dual quaternions. (Multiply it with the real part) - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the vector to transform - * @param {ReadonlyQuat} q quaternion to transform with - * @returns {vec3} out - */ - - -function transformQuat(out, a, q) { - // benchmarks: https://jsperf.com/quaternion-transform-vec3-implementations-fixed - var qx = q[0], - qy = q[1], - qz = q[2], - qw = q[3]; - var x = a[0], - y = a[1], - z = a[2]; // var qvec = [qx, qy, qz]; - // var uv = vec3.cross([], qvec, a); - - var uvx = qy * z - qz * y, - uvy = qz * x - qx * z, - uvz = qx * y - qy * x; // var uuv = vec3.cross([], qvec, uv); - - var uuvx = qy * uvz - qz * uvy, - uuvy = qz * uvx - qx * uvz, - uuvz = qx * uvy - qy * uvx; // vec3.scale(uv, uv, 2 * w); - - var w2 = qw * 2; - uvx *= w2; - uvy *= w2; - uvz *= w2; // vec3.scale(uuv, uuv, 2); - - uuvx *= 2; - uuvy *= 2; - uuvz *= 2; // return vec3.add(out, a, vec3.add(out, uv, uuv)); - - out[0] = x + uvx + uuvx; - out[1] = y + uvy + uuvy; - out[2] = z + uvz + uuvz; - return out; -} -/** - * Rotate a 3D vector around the x-axis - * @param {vec3} out The receiving vec3 - * @param {ReadonlyVec3} a The vec3 point to rotate - * @param {ReadonlyVec3} b The origin of the rotation - * @param {Number} rad The angle of rotation in radians - * @returns {vec3} out - */ - - -function rotateX(out, a, b, rad) { - var p = [], - r = []; //Translate point to the origin - - p[0] = a[0] - b[0]; - p[1] = a[1] - b[1]; - p[2] = a[2] - b[2]; //perform rotation - - r[0] = p[0]; - r[1] = p[1] * Math.cos(rad) - p[2] * Math.sin(rad); - r[2] = p[1] * Math.sin(rad) + p[2] * Math.cos(rad); //translate to correct position - - out[0] = r[0] + b[0]; - out[1] = r[1] + b[1]; - out[2] = r[2] + b[2]; - return out; -} -/** - * Rotate a 3D vector around the y-axis - * @param {vec3} out The receiving vec3 - * @param {ReadonlyVec3} a The vec3 point to rotate - * @param {ReadonlyVec3} b The origin of the rotation - * @param {Number} rad The angle of rotation in radians - * @returns {vec3} out - */ - - -function rotateY(out, a, b, rad) { - var p = [], - r = []; //Translate point to the origin - - p[0] = a[0] - b[0]; - p[1] = a[1] - b[1]; - p[2] = a[2] - b[2]; //perform rotation - - r[0] = p[2] * Math.sin(rad) + p[0] * Math.cos(rad); - r[1] = p[1]; - r[2] = p[2] * Math.cos(rad) - p[0] * Math.sin(rad); //translate to correct position - - out[0] = r[0] + b[0]; - out[1] = r[1] + b[1]; - out[2] = r[2] + b[2]; - return out; -} -/** - * Rotate a 3D vector around the z-axis - * @param {vec3} out The receiving vec3 - * @param {ReadonlyVec3} a The vec3 point to rotate - * @param {ReadonlyVec3} b The origin of the rotation - * @param {Number} rad The angle of rotation in radians - * @returns {vec3} out - */ - - -function rotateZ(out, a, b, rad) { - var p = [], - r = []; //Translate point to the origin - - p[0] = a[0] - b[0]; - p[1] = a[1] - b[1]; - p[2] = a[2] - b[2]; //perform rotation - - r[0] = p[0] * Math.cos(rad) - p[1] * Math.sin(rad); - r[1] = p[0] * Math.sin(rad) + p[1] * Math.cos(rad); - r[2] = p[2]; //translate to correct position - - out[0] = r[0] + b[0]; - out[1] = r[1] + b[1]; - out[2] = r[2] + b[2]; - return out; -} -/** - * Get the angle between two 3D vectors - * @param {ReadonlyVec3} a The first operand - * @param {ReadonlyVec3} b The second operand - * @returns {Number} The angle in radians - */ - - -function angle(a, b) { - var ax = a[0], - ay = a[1], - az = a[2], - bx = b[0], - by = b[1], - bz = b[2], - mag1 = Math.sqrt(ax * ax + ay * ay + az * az), - mag2 = Math.sqrt(bx * bx + by * by + bz * bz), - mag = mag1 * mag2, - cosine = mag && dot(a, b) / mag; - return Math.acos(Math.min(Math.max(cosine, -1), 1)); -} -/** - * Set the components of a vec3 to zero - * - * @param {vec3} out the receiving vector - * @returns {vec3} out - */ - - -function zero(out) { - out[0] = 0.0; - out[1] = 0.0; - out[2] = 0.0; - return out; -} -/** - * Returns a string representation of a vector - * - * @param {ReadonlyVec3} a vector to represent as a string - * @returns {String} string representation of the vector - */ - - -function str(a) { - return "vec3(" + a[0] + ", " + a[1] + ", " + a[2] + ")"; -} -/** - * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyVec3} a The first vector. - * @param {ReadonlyVec3} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - - -function exactEquals(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2]; -} -/** - * Returns whether or not the vectors have approximately the same elements in the same position. - * - * @param {ReadonlyVec3} a The first vector. - * @param {ReadonlyVec3} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - - -function equals(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2]; - var b0 = b[0], - b1 = b[1], - b2 = b[2]; - return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)); -} -/** - * Alias for {@link vec3.subtract} - * @function - */ - - -var sub = subtract; -/** - * Alias for {@link vec3.multiply} - * @function - */ - -exports.sub = sub; -var mul = multiply; -/** - * Alias for {@link vec3.divide} - * @function - */ - -exports.mul = mul; -var div = divide; -/** - * Alias for {@link vec3.distance} - * @function - */ - -exports.div = div; -var dist = distance; -/** - * Alias for {@link vec3.squaredDistance} - * @function - */ - -exports.dist = dist; -var sqrDist = squaredDistance; -/** - * Alias for {@link vec3.length} - * @function - */ - -exports.sqrDist = sqrDist; -var len = length; -/** - * Alias for {@link vec3.squaredLength} - * @function - */ - -exports.len = len; -var sqrLen = squaredLength; -/** - * Perform some operation over an array of vec3s. - * - * @param {Array} a the array of vectors to iterate over - * @param {Number} stride Number of elements between the start of each vec3. If 0 assumes tightly packed - * @param {Number} offset Number of elements to skip at the beginning of the array - * @param {Number} count Number of vec3s to iterate over. If 0 iterates over entire array - * @param {Function} fn Function to call for each vector in the array - * @param {Object} [arg] additional argument to pass to fn - * @returns {Array} a - * @function - */ - -exports.sqrLen = sqrLen; - -var forEach = function () { - var vec = create(); - return function (a, stride, offset, count, fn, arg) { - var i, l; - - if (!stride) { - stride = 3; - } - - if (!offset) { - offset = 0; - } - - if (count) { - l = Math.min(count * stride + offset, a.length); - } else { - l = a.length; - } - - for (i = offset; i < l; i += stride) { - vec[0] = a[i]; - vec[1] = a[i + 1]; - vec[2] = a[i + 2]; - fn(vec, vec, arg); - a[i] = vec[0]; - a[i + 1] = vec[1]; - a[i + 2] = vec[2]; - } - - return a; - }; -}(); - -exports.forEach = forEach; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/cjs/vec4.js b/build_vtk_bundle/node_modules/gl-matrix/cjs/vec4.js deleted file mode 100755 index 3a6d8210..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/cjs/vec4.js +++ /dev/null @@ -1,752 +0,0 @@ -"use strict"; - -function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.create = create; -exports.clone = clone; -exports.fromValues = fromValues; -exports.copy = copy; -exports.set = set; -exports.add = add; -exports.subtract = subtract; -exports.multiply = multiply; -exports.divide = divide; -exports.ceil = ceil; -exports.floor = floor; -exports.min = min; -exports.max = max; -exports.round = round; -exports.scale = scale; -exports.scaleAndAdd = scaleAndAdd; -exports.distance = distance; -exports.squaredDistance = squaredDistance; -exports.length = length; -exports.squaredLength = squaredLength; -exports.negate = negate; -exports.inverse = inverse; -exports.normalize = normalize; -exports.dot = dot; -exports.cross = cross; -exports.lerp = lerp; -exports.random = random; -exports.transformMat4 = transformMat4; -exports.transformQuat = transformQuat; -exports.zero = zero; -exports.str = str; -exports.exactEquals = exactEquals; -exports.equals = equals; -exports.forEach = exports.sqrLen = exports.len = exports.sqrDist = exports.dist = exports.div = exports.mul = exports.sub = void 0; - -var glMatrix = _interopRequireWildcard(require("./common.js")); - -function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } - -function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } - -/** - * 4 Dimensional Vector - * @module vec4 - */ - -/** - * Creates a new, empty vec4 - * - * @returns {vec4} a new 4D vector - */ -function create() { - var out = new glMatrix.ARRAY_TYPE(4); - - if (glMatrix.ARRAY_TYPE != Float32Array) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - out[3] = 0; - } - - return out; -} -/** - * Creates a new vec4 initialized with values from an existing vector - * - * @param {ReadonlyVec4} a vector to clone - * @returns {vec4} a new 4D vector - */ - - -function clone(a) { - var out = new glMatrix.ARRAY_TYPE(4); - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - return out; -} -/** - * Creates a new vec4 initialized with the given values - * - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @param {Number} w W component - * @returns {vec4} a new 4D vector - */ - - -function fromValues(x, y, z, w) { - var out = new glMatrix.ARRAY_TYPE(4); - out[0] = x; - out[1] = y; - out[2] = z; - out[3] = w; - return out; -} -/** - * Copy the values from one vec4 to another - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the source vector - * @returns {vec4} out - */ - - -function copy(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - return out; -} -/** - * Set the components of a vec4 to the given values - * - * @param {vec4} out the receiving vector - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @param {Number} w W component - * @returns {vec4} out - */ - - -function set(out, x, y, z, w) { - out[0] = x; - out[1] = y; - out[2] = z; - out[3] = w; - return out; -} -/** - * Adds two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - - -function add(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - out[3] = a[3] + b[3]; - return out; -} -/** - * Subtracts vector b from vector a - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - - -function subtract(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - out[2] = a[2] - b[2]; - out[3] = a[3] - b[3]; - return out; -} -/** - * Multiplies two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - - -function multiply(out, a, b) { - out[0] = a[0] * b[0]; - out[1] = a[1] * b[1]; - out[2] = a[2] * b[2]; - out[3] = a[3] * b[3]; - return out; -} -/** - * Divides two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - - -function divide(out, a, b) { - out[0] = a[0] / b[0]; - out[1] = a[1] / b[1]; - out[2] = a[2] / b[2]; - out[3] = a[3] / b[3]; - return out; -} -/** - * Math.ceil the components of a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to ceil - * @returns {vec4} out - */ - - -function ceil(out, a) { - out[0] = Math.ceil(a[0]); - out[1] = Math.ceil(a[1]); - out[2] = Math.ceil(a[2]); - out[3] = Math.ceil(a[3]); - return out; -} -/** - * Math.floor the components of a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to floor - * @returns {vec4} out - */ - - -function floor(out, a) { - out[0] = Math.floor(a[0]); - out[1] = Math.floor(a[1]); - out[2] = Math.floor(a[2]); - out[3] = Math.floor(a[3]); - return out; -} -/** - * Returns the minimum of two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - - -function min(out, a, b) { - out[0] = Math.min(a[0], b[0]); - out[1] = Math.min(a[1], b[1]); - out[2] = Math.min(a[2], b[2]); - out[3] = Math.min(a[3], b[3]); - return out; -} -/** - * Returns the maximum of two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - - -function max(out, a, b) { - out[0] = Math.max(a[0], b[0]); - out[1] = Math.max(a[1], b[1]); - out[2] = Math.max(a[2], b[2]); - out[3] = Math.max(a[3], b[3]); - return out; -} -/** - * Math.round the components of a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to round - * @returns {vec4} out - */ - - -function round(out, a) { - out[0] = Math.round(a[0]); - out[1] = Math.round(a[1]); - out[2] = Math.round(a[2]); - out[3] = Math.round(a[3]); - return out; -} -/** - * Scales a vec4 by a scalar number - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the vector to scale - * @param {Number} b amount to scale the vector by - * @returns {vec4} out - */ - - -function scale(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - out[3] = a[3] * b; - return out; -} -/** - * Adds two vec4's after scaling the second operand by a scalar value - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @param {Number} scale the amount to scale b by before adding - * @returns {vec4} out - */ - - -function scaleAndAdd(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - out[2] = a[2] + b[2] * scale; - out[3] = a[3] + b[3] * scale; - return out; -} -/** - * Calculates the euclidian distance between two vec4's - * - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {Number} distance between a and b - */ - - -function distance(a, b) { - var x = b[0] - a[0]; - var y = b[1] - a[1]; - var z = b[2] - a[2]; - var w = b[3] - a[3]; - return Math.hypot(x, y, z, w); -} -/** - * Calculates the squared euclidian distance between two vec4's - * - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {Number} squared distance between a and b - */ - - -function squaredDistance(a, b) { - var x = b[0] - a[0]; - var y = b[1] - a[1]; - var z = b[2] - a[2]; - var w = b[3] - a[3]; - return x * x + y * y + z * z + w * w; -} -/** - * Calculates the length of a vec4 - * - * @param {ReadonlyVec4} a vector to calculate length of - * @returns {Number} length of a - */ - - -function length(a) { - var x = a[0]; - var y = a[1]; - var z = a[2]; - var w = a[3]; - return Math.hypot(x, y, z, w); -} -/** - * Calculates the squared length of a vec4 - * - * @param {ReadonlyVec4} a vector to calculate squared length of - * @returns {Number} squared length of a - */ - - -function squaredLength(a) { - var x = a[0]; - var y = a[1]; - var z = a[2]; - var w = a[3]; - return x * x + y * y + z * z + w * w; -} -/** - * Negates the components of a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to negate - * @returns {vec4} out - */ - - -function negate(out, a) { - out[0] = -a[0]; - out[1] = -a[1]; - out[2] = -a[2]; - out[3] = -a[3]; - return out; -} -/** - * Returns the inverse of the components of a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to invert - * @returns {vec4} out - */ - - -function inverse(out, a) { - out[0] = 1.0 / a[0]; - out[1] = 1.0 / a[1]; - out[2] = 1.0 / a[2]; - out[3] = 1.0 / a[3]; - return out; -} -/** - * Normalize a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to normalize - * @returns {vec4} out - */ - - -function normalize(out, a) { - var x = a[0]; - var y = a[1]; - var z = a[2]; - var w = a[3]; - var len = x * x + y * y + z * z + w * w; - - if (len > 0) { - len = 1 / Math.sqrt(len); - } - - out[0] = x * len; - out[1] = y * len; - out[2] = z * len; - out[3] = w * len; - return out; -} -/** - * Calculates the dot product of two vec4's - * - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {Number} dot product of a and b - */ - - -function dot(a, b) { - return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3]; -} -/** - * Returns the cross-product of three vectors in a 4-dimensional space - * - * @param {ReadonlyVec4} result the receiving vector - * @param {ReadonlyVec4} U the first vector - * @param {ReadonlyVec4} V the second vector - * @param {ReadonlyVec4} W the third vector - * @returns {vec4} result - */ - - -function cross(out, u, v, w) { - var A = v[0] * w[1] - v[1] * w[0], - B = v[0] * w[2] - v[2] * w[0], - C = v[0] * w[3] - v[3] * w[0], - D = v[1] * w[2] - v[2] * w[1], - E = v[1] * w[3] - v[3] * w[1], - F = v[2] * w[3] - v[3] * w[2]; - var G = u[0]; - var H = u[1]; - var I = u[2]; - var J = u[3]; - out[0] = H * F - I * E + J * D; - out[1] = -(G * F) + I * C - J * B; - out[2] = G * E - H * C + J * A; - out[3] = -(G * D) + H * B - I * A; - return out; -} -/** - * Performs a linear interpolation between two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {vec4} out - */ - - -function lerp(out, a, b, t) { - var ax = a[0]; - var ay = a[1]; - var az = a[2]; - var aw = a[3]; - out[0] = ax + t * (b[0] - ax); - out[1] = ay + t * (b[1] - ay); - out[2] = az + t * (b[2] - az); - out[3] = aw + t * (b[3] - aw); - return out; -} -/** - * Generates a random vector with the given scale - * - * @param {vec4} out the receiving vector - * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned - * @returns {vec4} out - */ - - -function random(out, scale) { - scale = scale || 1.0; // Marsaglia, George. Choosing a Point from the Surface of a - // Sphere. Ann. Math. Statist. 43 (1972), no. 2, 645--646. - // http://projecteuclid.org/euclid.aoms/1177692644; - - var v1, v2, v3, v4; - var s1, s2; - - do { - v1 = glMatrix.RANDOM() * 2 - 1; - v2 = glMatrix.RANDOM() * 2 - 1; - s1 = v1 * v1 + v2 * v2; - } while (s1 >= 1); - - do { - v3 = glMatrix.RANDOM() * 2 - 1; - v4 = glMatrix.RANDOM() * 2 - 1; - s2 = v3 * v3 + v4 * v4; - } while (s2 >= 1); - - var d = Math.sqrt((1 - s1) / s2); - out[0] = scale * v1; - out[1] = scale * v2; - out[2] = scale * v3 * d; - out[3] = scale * v4 * d; - return out; -} -/** - * Transforms the vec4 with a mat4. - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the vector to transform - * @param {ReadonlyMat4} m matrix to transform with - * @returns {vec4} out - */ - - -function transformMat4(out, a, m) { - var x = a[0], - y = a[1], - z = a[2], - w = a[3]; - out[0] = m[0] * x + m[4] * y + m[8] * z + m[12] * w; - out[1] = m[1] * x + m[5] * y + m[9] * z + m[13] * w; - out[2] = m[2] * x + m[6] * y + m[10] * z + m[14] * w; - out[3] = m[3] * x + m[7] * y + m[11] * z + m[15] * w; - return out; -} -/** - * Transforms the vec4 with a quat - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the vector to transform - * @param {ReadonlyQuat} q quaternion to transform with - * @returns {vec4} out - */ - - -function transformQuat(out, a, q) { - var x = a[0], - y = a[1], - z = a[2]; - var qx = q[0], - qy = q[1], - qz = q[2], - qw = q[3]; // calculate quat * vec - - var ix = qw * x + qy * z - qz * y; - var iy = qw * y + qz * x - qx * z; - var iz = qw * z + qx * y - qy * x; - var iw = -qx * x - qy * y - qz * z; // calculate result * inverse quat - - out[0] = ix * qw + iw * -qx + iy * -qz - iz * -qy; - out[1] = iy * qw + iw * -qy + iz * -qx - ix * -qz; - out[2] = iz * qw + iw * -qz + ix * -qy - iy * -qx; - out[3] = a[3]; - return out; -} -/** - * Set the components of a vec4 to zero - * - * @param {vec4} out the receiving vector - * @returns {vec4} out - */ - - -function zero(out) { - out[0] = 0.0; - out[1] = 0.0; - out[2] = 0.0; - out[3] = 0.0; - return out; -} -/** - * Returns a string representation of a vector - * - * @param {ReadonlyVec4} a vector to represent as a string - * @returns {String} string representation of the vector - */ - - -function str(a) { - return "vec4(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ")"; -} -/** - * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyVec4} a The first vector. - * @param {ReadonlyVec4} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - - -function exactEquals(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3]; -} -/** - * Returns whether or not the vectors have approximately the same elements in the same position. - * - * @param {ReadonlyVec4} a The first vector. - * @param {ReadonlyVec4} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - - -function equals(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3]; - return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)); -} -/** - * Alias for {@link vec4.subtract} - * @function - */ - - -var sub = subtract; -/** - * Alias for {@link vec4.multiply} - * @function - */ - -exports.sub = sub; -var mul = multiply; -/** - * Alias for {@link vec4.divide} - * @function - */ - -exports.mul = mul; -var div = divide; -/** - * Alias for {@link vec4.distance} - * @function - */ - -exports.div = div; -var dist = distance; -/** - * Alias for {@link vec4.squaredDistance} - * @function - */ - -exports.dist = dist; -var sqrDist = squaredDistance; -/** - * Alias for {@link vec4.length} - * @function - */ - -exports.sqrDist = sqrDist; -var len = length; -/** - * Alias for {@link vec4.squaredLength} - * @function - */ - -exports.len = len; -var sqrLen = squaredLength; -/** - * Perform some operation over an array of vec4s. - * - * @param {Array} a the array of vectors to iterate over - * @param {Number} stride Number of elements between the start of each vec4. If 0 assumes tightly packed - * @param {Number} offset Number of elements to skip at the beginning of the array - * @param {Number} count Number of vec4s to iterate over. If 0 iterates over entire array - * @param {Function} fn Function to call for each vector in the array - * @param {Object} [arg] additional argument to pass to fn - * @returns {Array} a - * @function - */ - -exports.sqrLen = sqrLen; - -var forEach = function () { - var vec = create(); - return function (a, stride, offset, count, fn, arg) { - var i, l; - - if (!stride) { - stride = 4; - } - - if (!offset) { - offset = 0; - } - - if (count) { - l = Math.min(count * stride + offset, a.length); - } else { - l = a.length; - } - - for (i = offset; i < l; i += stride) { - vec[0] = a[i]; - vec[1] = a[i + 1]; - vec[2] = a[i + 2]; - vec[3] = a[i + 3]; - fn(vec, vec, arg); - a[i] = vec[0]; - a[i + 1] = vec[1]; - a[i + 2] = vec[2]; - a[i + 3] = vec[3]; - } - - return a; - }; -}(); - -exports.forEach = forEach; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/esm/common.js b/build_vtk_bundle/node_modules/gl-matrix/esm/common.js deleted file mode 100755 index 91fed57c..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/esm/common.js +++ /dev/null @@ -1,50 +0,0 @@ -/** - * Common utilities - * @module glMatrix - */ -// Configuration Constants -export var EPSILON = 0.000001; -export var ARRAY_TYPE = typeof Float32Array !== 'undefined' ? Float32Array : Array; -export var RANDOM = Math.random; -/** - * Sets the type of array used when creating new vectors and matrices - * - * @param {Float32ArrayConstructor | ArrayConstructor} type Array type, such as Float32Array or Array - */ - -export function setMatrixArrayType(type) { - ARRAY_TYPE = type; -} -var degree = Math.PI / 180; -/** - * Convert Degree To Radian - * - * @param {Number} a Angle in Degrees - */ - -export function toRadian(a) { - return a * degree; -} -/** - * Tests whether or not the arguments have approximately the same value, within an absolute - * or relative tolerance of glMatrix.EPSILON (an absolute tolerance is used for values less - * than or equal to 1.0, and a relative tolerance is used for larger values) - * - * @param {Number} a The first number to test. - * @param {Number} b The second number to test. - * @returns {Boolean} True if the numbers are approximately equal, false otherwise. - */ - -export function equals(a, b) { - return Math.abs(a - b) <= EPSILON * Math.max(1.0, Math.abs(a), Math.abs(b)); -} -if (!Math.hypot) Math.hypot = function () { - var y = 0, - i = arguments.length; - - while (i--) { - y += arguments[i] * arguments[i]; - } - - return Math.sqrt(y); -}; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/esm/index.js b/build_vtk_bundle/node_modules/gl-matrix/esm/index.js deleted file mode 100755 index e89dffe6..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/esm/index.js +++ /dev/null @@ -1,11 +0,0 @@ -import * as glMatrix from "./common.js"; -import * as mat2 from "./mat2.js"; -import * as mat2d from "./mat2d.js"; -import * as mat3 from "./mat3.js"; -import * as mat4 from "./mat4.js"; -import * as quat from "./quat.js"; -import * as quat2 from "./quat2.js"; -import * as vec2 from "./vec2.js"; -import * as vec3 from "./vec3.js"; -import * as vec4 from "./vec4.js"; -export { glMatrix, mat2, mat2d, mat3, mat4, quat, quat2, vec2, vec3, vec4 }; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/esm/mat2.js b/build_vtk_bundle/node_modules/gl-matrix/esm/mat2.js deleted file mode 100755 index 61b66980..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/esm/mat2.js +++ /dev/null @@ -1,432 +0,0 @@ -import * as glMatrix from "./common.js"; -/** - * 2x2 Matrix - * @module mat2 - */ - -/** - * Creates a new identity mat2 - * - * @returns {mat2} a new 2x2 matrix - */ - -export function create() { - var out = new glMatrix.ARRAY_TYPE(4); - - if (glMatrix.ARRAY_TYPE != Float32Array) { - out[1] = 0; - out[2] = 0; - } - - out[0] = 1; - out[3] = 1; - return out; -} -/** - * Creates a new mat2 initialized with values from an existing matrix - * - * @param {ReadonlyMat2} a matrix to clone - * @returns {mat2} a new 2x2 matrix - */ - -export function clone(a) { - var out = new glMatrix.ARRAY_TYPE(4); - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - return out; -} -/** - * Copy the values from one mat2 to another - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the source matrix - * @returns {mat2} out - */ - -export function copy(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - return out; -} -/** - * Set a mat2 to the identity matrix - * - * @param {mat2} out the receiving matrix - * @returns {mat2} out - */ - -export function identity(out) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 1; - return out; -} -/** - * Create a new mat2 with the given values - * - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m10 Component in column 1, row 0 position (index 2) - * @param {Number} m11 Component in column 1, row 1 position (index 3) - * @returns {mat2} out A new 2x2 matrix - */ - -export function fromValues(m00, m01, m10, m11) { - var out = new glMatrix.ARRAY_TYPE(4); - out[0] = m00; - out[1] = m01; - out[2] = m10; - out[3] = m11; - return out; -} -/** - * Set the components of a mat2 to the given values - * - * @param {mat2} out the receiving matrix - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m10 Component in column 1, row 0 position (index 2) - * @param {Number} m11 Component in column 1, row 1 position (index 3) - * @returns {mat2} out - */ - -export function set(out, m00, m01, m10, m11) { - out[0] = m00; - out[1] = m01; - out[2] = m10; - out[3] = m11; - return out; -} -/** - * Transpose the values of a mat2 - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the source matrix - * @returns {mat2} out - */ - -export function transpose(out, a) { - // If we are transposing ourselves we can skip a few steps but have to cache - // some values - if (out === a) { - var a1 = a[1]; - out[1] = a[2]; - out[2] = a1; - } else { - out[0] = a[0]; - out[1] = a[2]; - out[2] = a[1]; - out[3] = a[3]; - } - - return out; -} -/** - * Inverts a mat2 - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the source matrix - * @returns {mat2} out - */ - -export function invert(out, a) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; // Calculate the determinant - - var det = a0 * a3 - a2 * a1; - - if (!det) { - return null; - } - - det = 1.0 / det; - out[0] = a3 * det; - out[1] = -a1 * det; - out[2] = -a2 * det; - out[3] = a0 * det; - return out; -} -/** - * Calculates the adjugate of a mat2 - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the source matrix - * @returns {mat2} out - */ - -export function adjoint(out, a) { - // Caching this value is nessecary if out == a - var a0 = a[0]; - out[0] = a[3]; - out[1] = -a[1]; - out[2] = -a[2]; - out[3] = a0; - return out; -} -/** - * Calculates the determinant of a mat2 - * - * @param {ReadonlyMat2} a the source matrix - * @returns {Number} determinant of a - */ - -export function determinant(a) { - return a[0] * a[3] - a[2] * a[1]; -} -/** - * Multiplies two mat2's - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the first operand - * @param {ReadonlyMat2} b the second operand - * @returns {mat2} out - */ - -export function multiply(out, a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3]; - out[0] = a0 * b0 + a2 * b1; - out[1] = a1 * b0 + a3 * b1; - out[2] = a0 * b2 + a2 * b3; - out[3] = a1 * b2 + a3 * b3; - return out; -} -/** - * Rotates a mat2 by the given angle - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat2} out - */ - -export function rotate(out, a, rad) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var s = Math.sin(rad); - var c = Math.cos(rad); - out[0] = a0 * c + a2 * s; - out[1] = a1 * c + a3 * s; - out[2] = a0 * -s + a2 * c; - out[3] = a1 * -s + a3 * c; - return out; -} -/** - * Scales the mat2 by the dimensions in the given vec2 - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the matrix to rotate - * @param {ReadonlyVec2} v the vec2 to scale the matrix by - * @returns {mat2} out - **/ - -export function scale(out, a, v) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var v0 = v[0], - v1 = v[1]; - out[0] = a0 * v0; - out[1] = a1 * v0; - out[2] = a2 * v1; - out[3] = a3 * v1; - return out; -} -/** - * Creates a matrix from a given angle - * This is equivalent to (but much faster than): - * - * mat2.identity(dest); - * mat2.rotate(dest, dest, rad); - * - * @param {mat2} out mat2 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat2} out - */ - -export function fromRotation(out, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); - out[0] = c; - out[1] = s; - out[2] = -s; - out[3] = c; - return out; -} -/** - * Creates a matrix from a vector scaling - * This is equivalent to (but much faster than): - * - * mat2.identity(dest); - * mat2.scale(dest, dest, vec); - * - * @param {mat2} out mat2 receiving operation result - * @param {ReadonlyVec2} v Scaling vector - * @returns {mat2} out - */ - -export function fromScaling(out, v) { - out[0] = v[0]; - out[1] = 0; - out[2] = 0; - out[3] = v[1]; - return out; -} -/** - * Returns a string representation of a mat2 - * - * @param {ReadonlyMat2} a matrix to represent as a string - * @returns {String} string representation of the matrix - */ - -export function str(a) { - return "mat2(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ")"; -} -/** - * Returns Frobenius norm of a mat2 - * - * @param {ReadonlyMat2} a the matrix to calculate Frobenius norm of - * @returns {Number} Frobenius norm - */ - -export function frob(a) { - return Math.hypot(a[0], a[1], a[2], a[3]); -} -/** - * Returns L, D and U matrices (Lower triangular, Diagonal and Upper triangular) by factorizing the input matrix - * @param {ReadonlyMat2} L the lower triangular matrix - * @param {ReadonlyMat2} D the diagonal matrix - * @param {ReadonlyMat2} U the upper triangular matrix - * @param {ReadonlyMat2} a the input matrix to factorize - */ - -export function LDU(L, D, U, a) { - L[2] = a[2] / a[0]; - U[0] = a[0]; - U[1] = a[1]; - U[3] = a[3] - L[2] * U[1]; - return [L, D, U]; -} -/** - * Adds two mat2's - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the first operand - * @param {ReadonlyMat2} b the second operand - * @returns {mat2} out - */ - -export function add(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - out[3] = a[3] + b[3]; - return out; -} -/** - * Subtracts matrix b from matrix a - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the first operand - * @param {ReadonlyMat2} b the second operand - * @returns {mat2} out - */ - -export function subtract(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - out[2] = a[2] - b[2]; - out[3] = a[3] - b[3]; - return out; -} -/** - * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyMat2} a The first matrix. - * @param {ReadonlyMat2} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - -export function exactEquals(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3]; -} -/** - * Returns whether or not the matrices have approximately the same elements in the same position. - * - * @param {ReadonlyMat2} a The first matrix. - * @param {ReadonlyMat2} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - -export function equals(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3]; - return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)); -} -/** - * Multiply each element of the matrix by a scalar. - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the matrix to scale - * @param {Number} b amount to scale the matrix's elements by - * @returns {mat2} out - */ - -export function multiplyScalar(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - out[3] = a[3] * b; - return out; -} -/** - * Adds two mat2's after multiplying each element of the second operand by a scalar value. - * - * @param {mat2} out the receiving vector - * @param {ReadonlyMat2} a the first operand - * @param {ReadonlyMat2} b the second operand - * @param {Number} scale the amount to scale b's elements by before adding - * @returns {mat2} out - */ - -export function multiplyScalarAndAdd(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - out[2] = a[2] + b[2] * scale; - out[3] = a[3] + b[3] * scale; - return out; -} -/** - * Alias for {@link mat2.multiply} - * @function - */ - -export var mul = multiply; -/** - * Alias for {@link mat2.subtract} - * @function - */ - -export var sub = subtract; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/esm/mat2d.js b/build_vtk_bundle/node_modules/gl-matrix/esm/mat2d.js deleted file mode 100755 index ce6988c3..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/esm/mat2d.js +++ /dev/null @@ -1,486 +0,0 @@ -import * as glMatrix from "./common.js"; -/** - * 2x3 Matrix - * @module mat2d - * @description - * A mat2d contains six elements defined as: - *
- * [a, b,
- *  c, d,
- *  tx, ty]
- * 
- * This is a short form for the 3x3 matrix: - *
- * [a, b, 0,
- *  c, d, 0,
- *  tx, ty, 1]
- * 
- * The last column is ignored so the array is shorter and operations are faster. - */ - -/** - * Creates a new identity mat2d - * - * @returns {mat2d} a new 2x3 matrix - */ - -export function create() { - var out = new glMatrix.ARRAY_TYPE(6); - - if (glMatrix.ARRAY_TYPE != Float32Array) { - out[1] = 0; - out[2] = 0; - out[4] = 0; - out[5] = 0; - } - - out[0] = 1; - out[3] = 1; - return out; -} -/** - * Creates a new mat2d initialized with values from an existing matrix - * - * @param {ReadonlyMat2d} a matrix to clone - * @returns {mat2d} a new 2x3 matrix - */ - -export function clone(a) { - var out = new glMatrix.ARRAY_TYPE(6); - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - return out; -} -/** - * Copy the values from one mat2d to another - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the source matrix - * @returns {mat2d} out - */ - -export function copy(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - return out; -} -/** - * Set a mat2d to the identity matrix - * - * @param {mat2d} out the receiving matrix - * @returns {mat2d} out - */ - -export function identity(out) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 1; - out[4] = 0; - out[5] = 0; - return out; -} -/** - * Create a new mat2d with the given values - * - * @param {Number} a Component A (index 0) - * @param {Number} b Component B (index 1) - * @param {Number} c Component C (index 2) - * @param {Number} d Component D (index 3) - * @param {Number} tx Component TX (index 4) - * @param {Number} ty Component TY (index 5) - * @returns {mat2d} A new mat2d - */ - -export function fromValues(a, b, c, d, tx, ty) { - var out = new glMatrix.ARRAY_TYPE(6); - out[0] = a; - out[1] = b; - out[2] = c; - out[3] = d; - out[4] = tx; - out[5] = ty; - return out; -} -/** - * Set the components of a mat2d to the given values - * - * @param {mat2d} out the receiving matrix - * @param {Number} a Component A (index 0) - * @param {Number} b Component B (index 1) - * @param {Number} c Component C (index 2) - * @param {Number} d Component D (index 3) - * @param {Number} tx Component TX (index 4) - * @param {Number} ty Component TY (index 5) - * @returns {mat2d} out - */ - -export function set(out, a, b, c, d, tx, ty) { - out[0] = a; - out[1] = b; - out[2] = c; - out[3] = d; - out[4] = tx; - out[5] = ty; - return out; -} -/** - * Inverts a mat2d - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the source matrix - * @returns {mat2d} out - */ - -export function invert(out, a) { - var aa = a[0], - ab = a[1], - ac = a[2], - ad = a[3]; - var atx = a[4], - aty = a[5]; - var det = aa * ad - ab * ac; - - if (!det) { - return null; - } - - det = 1.0 / det; - out[0] = ad * det; - out[1] = -ab * det; - out[2] = -ac * det; - out[3] = aa * det; - out[4] = (ac * aty - ad * atx) * det; - out[5] = (ab * atx - aa * aty) * det; - return out; -} -/** - * Calculates the determinant of a mat2d - * - * @param {ReadonlyMat2d} a the source matrix - * @returns {Number} determinant of a - */ - -export function determinant(a) { - return a[0] * a[3] - a[1] * a[2]; -} -/** - * Multiplies two mat2d's - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the first operand - * @param {ReadonlyMat2d} b the second operand - * @returns {mat2d} out - */ - -export function multiply(out, a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3], - b4 = b[4], - b5 = b[5]; - out[0] = a0 * b0 + a2 * b1; - out[1] = a1 * b0 + a3 * b1; - out[2] = a0 * b2 + a2 * b3; - out[3] = a1 * b2 + a3 * b3; - out[4] = a0 * b4 + a2 * b5 + a4; - out[5] = a1 * b4 + a3 * b5 + a5; - return out; -} -/** - * Rotates a mat2d by the given angle - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat2d} out - */ - -export function rotate(out, a, rad) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5]; - var s = Math.sin(rad); - var c = Math.cos(rad); - out[0] = a0 * c + a2 * s; - out[1] = a1 * c + a3 * s; - out[2] = a0 * -s + a2 * c; - out[3] = a1 * -s + a3 * c; - out[4] = a4; - out[5] = a5; - return out; -} -/** - * Scales the mat2d by the dimensions in the given vec2 - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the matrix to translate - * @param {ReadonlyVec2} v the vec2 to scale the matrix by - * @returns {mat2d} out - **/ - -export function scale(out, a, v) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5]; - var v0 = v[0], - v1 = v[1]; - out[0] = a0 * v0; - out[1] = a1 * v0; - out[2] = a2 * v1; - out[3] = a3 * v1; - out[4] = a4; - out[5] = a5; - return out; -} -/** - * Translates the mat2d by the dimensions in the given vec2 - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the matrix to translate - * @param {ReadonlyVec2} v the vec2 to translate the matrix by - * @returns {mat2d} out - **/ - -export function translate(out, a, v) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5]; - var v0 = v[0], - v1 = v[1]; - out[0] = a0; - out[1] = a1; - out[2] = a2; - out[3] = a3; - out[4] = a0 * v0 + a2 * v1 + a4; - out[5] = a1 * v0 + a3 * v1 + a5; - return out; -} -/** - * Creates a matrix from a given angle - * This is equivalent to (but much faster than): - * - * mat2d.identity(dest); - * mat2d.rotate(dest, dest, rad); - * - * @param {mat2d} out mat2d receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat2d} out - */ - -export function fromRotation(out, rad) { - var s = Math.sin(rad), - c = Math.cos(rad); - out[0] = c; - out[1] = s; - out[2] = -s; - out[3] = c; - out[4] = 0; - out[5] = 0; - return out; -} -/** - * Creates a matrix from a vector scaling - * This is equivalent to (but much faster than): - * - * mat2d.identity(dest); - * mat2d.scale(dest, dest, vec); - * - * @param {mat2d} out mat2d receiving operation result - * @param {ReadonlyVec2} v Scaling vector - * @returns {mat2d} out - */ - -export function fromScaling(out, v) { - out[0] = v[0]; - out[1] = 0; - out[2] = 0; - out[3] = v[1]; - out[4] = 0; - out[5] = 0; - return out; -} -/** - * Creates a matrix from a vector translation - * This is equivalent to (but much faster than): - * - * mat2d.identity(dest); - * mat2d.translate(dest, dest, vec); - * - * @param {mat2d} out mat2d receiving operation result - * @param {ReadonlyVec2} v Translation vector - * @returns {mat2d} out - */ - -export function fromTranslation(out, v) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 1; - out[4] = v[0]; - out[5] = v[1]; - return out; -} -/** - * Returns a string representation of a mat2d - * - * @param {ReadonlyMat2d} a matrix to represent as a string - * @returns {String} string representation of the matrix - */ - -export function str(a) { - return "mat2d(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ")"; -} -/** - * Returns Frobenius norm of a mat2d - * - * @param {ReadonlyMat2d} a the matrix to calculate Frobenius norm of - * @returns {Number} Frobenius norm - */ - -export function frob(a) { - return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], 1); -} -/** - * Adds two mat2d's - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the first operand - * @param {ReadonlyMat2d} b the second operand - * @returns {mat2d} out - */ - -export function add(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - out[3] = a[3] + b[3]; - out[4] = a[4] + b[4]; - out[5] = a[5] + b[5]; - return out; -} -/** - * Subtracts matrix b from matrix a - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the first operand - * @param {ReadonlyMat2d} b the second operand - * @returns {mat2d} out - */ - -export function subtract(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - out[2] = a[2] - b[2]; - out[3] = a[3] - b[3]; - out[4] = a[4] - b[4]; - out[5] = a[5] - b[5]; - return out; -} -/** - * Multiply each element of the matrix by a scalar. - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the matrix to scale - * @param {Number} b amount to scale the matrix's elements by - * @returns {mat2d} out - */ - -export function multiplyScalar(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - out[3] = a[3] * b; - out[4] = a[4] * b; - out[5] = a[5] * b; - return out; -} -/** - * Adds two mat2d's after multiplying each element of the second operand by a scalar value. - * - * @param {mat2d} out the receiving vector - * @param {ReadonlyMat2d} a the first operand - * @param {ReadonlyMat2d} b the second operand - * @param {Number} scale the amount to scale b's elements by before adding - * @returns {mat2d} out - */ - -export function multiplyScalarAndAdd(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - out[2] = a[2] + b[2] * scale; - out[3] = a[3] + b[3] * scale; - out[4] = a[4] + b[4] * scale; - out[5] = a[5] + b[5] * scale; - return out; -} -/** - * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyMat2d} a The first matrix. - * @param {ReadonlyMat2d} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - -export function exactEquals(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5]; -} -/** - * Returns whether or not the matrices have approximately the same elements in the same position. - * - * @param {ReadonlyMat2d} a The first matrix. - * @param {ReadonlyMat2d} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - -export function equals(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3], - b4 = b[4], - b5 = b[5]; - return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)); -} -/** - * Alias for {@link mat2d.multiply} - * @function - */ - -export var mul = multiply; -/** - * Alias for {@link mat2d.subtract} - * @function - */ - -export var sub = subtract; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/esm/mat3.js b/build_vtk_bundle/node_modules/gl-matrix/esm/mat3.js deleted file mode 100755 index 13974ab1..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/esm/mat3.js +++ /dev/null @@ -1,778 +0,0 @@ -import * as glMatrix from "./common.js"; -/** - * 3x3 Matrix - * @module mat3 - */ - -/** - * Creates a new identity mat3 - * - * @returns {mat3} a new 3x3 matrix - */ - -export function create() { - var out = new glMatrix.ARRAY_TYPE(9); - - if (glMatrix.ARRAY_TYPE != Float32Array) { - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[5] = 0; - out[6] = 0; - out[7] = 0; - } - - out[0] = 1; - out[4] = 1; - out[8] = 1; - return out; -} -/** - * Copies the upper-left 3x3 values into the given mat3. - * - * @param {mat3} out the receiving 3x3 matrix - * @param {ReadonlyMat4} a the source 4x4 matrix - * @returns {mat3} out - */ - -export function fromMat4(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[4]; - out[4] = a[5]; - out[5] = a[6]; - out[6] = a[8]; - out[7] = a[9]; - out[8] = a[10]; - return out; -} -/** - * Creates a new mat3 initialized with values from an existing matrix - * - * @param {ReadonlyMat3} a matrix to clone - * @returns {mat3} a new 3x3 matrix - */ - -export function clone(a) { - var out = new glMatrix.ARRAY_TYPE(9); - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - out[6] = a[6]; - out[7] = a[7]; - out[8] = a[8]; - return out; -} -/** - * Copy the values from one mat3 to another - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the source matrix - * @returns {mat3} out - */ - -export function copy(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - out[6] = a[6]; - out[7] = a[7]; - out[8] = a[8]; - return out; -} -/** - * Create a new mat3 with the given values - * - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m02 Component in column 0, row 2 position (index 2) - * @param {Number} m10 Component in column 1, row 0 position (index 3) - * @param {Number} m11 Component in column 1, row 1 position (index 4) - * @param {Number} m12 Component in column 1, row 2 position (index 5) - * @param {Number} m20 Component in column 2, row 0 position (index 6) - * @param {Number} m21 Component in column 2, row 1 position (index 7) - * @param {Number} m22 Component in column 2, row 2 position (index 8) - * @returns {mat3} A new mat3 - */ - -export function fromValues(m00, m01, m02, m10, m11, m12, m20, m21, m22) { - var out = new glMatrix.ARRAY_TYPE(9); - out[0] = m00; - out[1] = m01; - out[2] = m02; - out[3] = m10; - out[4] = m11; - out[5] = m12; - out[6] = m20; - out[7] = m21; - out[8] = m22; - return out; -} -/** - * Set the components of a mat3 to the given values - * - * @param {mat3} out the receiving matrix - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m02 Component in column 0, row 2 position (index 2) - * @param {Number} m10 Component in column 1, row 0 position (index 3) - * @param {Number} m11 Component in column 1, row 1 position (index 4) - * @param {Number} m12 Component in column 1, row 2 position (index 5) - * @param {Number} m20 Component in column 2, row 0 position (index 6) - * @param {Number} m21 Component in column 2, row 1 position (index 7) - * @param {Number} m22 Component in column 2, row 2 position (index 8) - * @returns {mat3} out - */ - -export function set(out, m00, m01, m02, m10, m11, m12, m20, m21, m22) { - out[0] = m00; - out[1] = m01; - out[2] = m02; - out[3] = m10; - out[4] = m11; - out[5] = m12; - out[6] = m20; - out[7] = m21; - out[8] = m22; - return out; -} -/** - * Set a mat3 to the identity matrix - * - * @param {mat3} out the receiving matrix - * @returns {mat3} out - */ - -export function identity(out) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 1; - out[5] = 0; - out[6] = 0; - out[7] = 0; - out[8] = 1; - return out; -} -/** - * Transpose the values of a mat3 - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the source matrix - * @returns {mat3} out - */ - -export function transpose(out, a) { - // If we are transposing ourselves we can skip a few steps but have to cache some values - if (out === a) { - var a01 = a[1], - a02 = a[2], - a12 = a[5]; - out[1] = a[3]; - out[2] = a[6]; - out[3] = a01; - out[5] = a[7]; - out[6] = a02; - out[7] = a12; - } else { - out[0] = a[0]; - out[1] = a[3]; - out[2] = a[6]; - out[3] = a[1]; - out[4] = a[4]; - out[5] = a[7]; - out[6] = a[2]; - out[7] = a[5]; - out[8] = a[8]; - } - - return out; -} -/** - * Inverts a mat3 - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the source matrix - * @returns {mat3} out - */ - -export function invert(out, a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2]; - var a10 = a[3], - a11 = a[4], - a12 = a[5]; - var a20 = a[6], - a21 = a[7], - a22 = a[8]; - var b01 = a22 * a11 - a12 * a21; - var b11 = -a22 * a10 + a12 * a20; - var b21 = a21 * a10 - a11 * a20; // Calculate the determinant - - var det = a00 * b01 + a01 * b11 + a02 * b21; - - if (!det) { - return null; - } - - det = 1.0 / det; - out[0] = b01 * det; - out[1] = (-a22 * a01 + a02 * a21) * det; - out[2] = (a12 * a01 - a02 * a11) * det; - out[3] = b11 * det; - out[4] = (a22 * a00 - a02 * a20) * det; - out[5] = (-a12 * a00 + a02 * a10) * det; - out[6] = b21 * det; - out[7] = (-a21 * a00 + a01 * a20) * det; - out[8] = (a11 * a00 - a01 * a10) * det; - return out; -} -/** - * Calculates the adjugate of a mat3 - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the source matrix - * @returns {mat3} out - */ - -export function adjoint(out, a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2]; - var a10 = a[3], - a11 = a[4], - a12 = a[5]; - var a20 = a[6], - a21 = a[7], - a22 = a[8]; - out[0] = a11 * a22 - a12 * a21; - out[1] = a02 * a21 - a01 * a22; - out[2] = a01 * a12 - a02 * a11; - out[3] = a12 * a20 - a10 * a22; - out[4] = a00 * a22 - a02 * a20; - out[5] = a02 * a10 - a00 * a12; - out[6] = a10 * a21 - a11 * a20; - out[7] = a01 * a20 - a00 * a21; - out[8] = a00 * a11 - a01 * a10; - return out; -} -/** - * Calculates the determinant of a mat3 - * - * @param {ReadonlyMat3} a the source matrix - * @returns {Number} determinant of a - */ - -export function determinant(a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2]; - var a10 = a[3], - a11 = a[4], - a12 = a[5]; - var a20 = a[6], - a21 = a[7], - a22 = a[8]; - return a00 * (a22 * a11 - a12 * a21) + a01 * (-a22 * a10 + a12 * a20) + a02 * (a21 * a10 - a11 * a20); -} -/** - * Multiplies two mat3's - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the first operand - * @param {ReadonlyMat3} b the second operand - * @returns {mat3} out - */ - -export function multiply(out, a, b) { - var a00 = a[0], - a01 = a[1], - a02 = a[2]; - var a10 = a[3], - a11 = a[4], - a12 = a[5]; - var a20 = a[6], - a21 = a[7], - a22 = a[8]; - var b00 = b[0], - b01 = b[1], - b02 = b[2]; - var b10 = b[3], - b11 = b[4], - b12 = b[5]; - var b20 = b[6], - b21 = b[7], - b22 = b[8]; - out[0] = b00 * a00 + b01 * a10 + b02 * a20; - out[1] = b00 * a01 + b01 * a11 + b02 * a21; - out[2] = b00 * a02 + b01 * a12 + b02 * a22; - out[3] = b10 * a00 + b11 * a10 + b12 * a20; - out[4] = b10 * a01 + b11 * a11 + b12 * a21; - out[5] = b10 * a02 + b11 * a12 + b12 * a22; - out[6] = b20 * a00 + b21 * a10 + b22 * a20; - out[7] = b20 * a01 + b21 * a11 + b22 * a21; - out[8] = b20 * a02 + b21 * a12 + b22 * a22; - return out; -} -/** - * Translate a mat3 by the given vector - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the matrix to translate - * @param {ReadonlyVec2} v vector to translate by - * @returns {mat3} out - */ - -export function translate(out, a, v) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a10 = a[3], - a11 = a[4], - a12 = a[5], - a20 = a[6], - a21 = a[7], - a22 = a[8], - x = v[0], - y = v[1]; - out[0] = a00; - out[1] = a01; - out[2] = a02; - out[3] = a10; - out[4] = a11; - out[5] = a12; - out[6] = x * a00 + y * a10 + a20; - out[7] = x * a01 + y * a11 + a21; - out[8] = x * a02 + y * a12 + a22; - return out; -} -/** - * Rotates a mat3 by the given angle - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat3} out - */ - -export function rotate(out, a, rad) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a10 = a[3], - a11 = a[4], - a12 = a[5], - a20 = a[6], - a21 = a[7], - a22 = a[8], - s = Math.sin(rad), - c = Math.cos(rad); - out[0] = c * a00 + s * a10; - out[1] = c * a01 + s * a11; - out[2] = c * a02 + s * a12; - out[3] = c * a10 - s * a00; - out[4] = c * a11 - s * a01; - out[5] = c * a12 - s * a02; - out[6] = a20; - out[7] = a21; - out[8] = a22; - return out; -} -/** - * Scales the mat3 by the dimensions in the given vec2 - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the matrix to rotate - * @param {ReadonlyVec2} v the vec2 to scale the matrix by - * @returns {mat3} out - **/ - -export function scale(out, a, v) { - var x = v[0], - y = v[1]; - out[0] = x * a[0]; - out[1] = x * a[1]; - out[2] = x * a[2]; - out[3] = y * a[3]; - out[4] = y * a[4]; - out[5] = y * a[5]; - out[6] = a[6]; - out[7] = a[7]; - out[8] = a[8]; - return out; -} -/** - * Creates a matrix from a vector translation - * This is equivalent to (but much faster than): - * - * mat3.identity(dest); - * mat3.translate(dest, dest, vec); - * - * @param {mat3} out mat3 receiving operation result - * @param {ReadonlyVec2} v Translation vector - * @returns {mat3} out - */ - -export function fromTranslation(out, v) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 1; - out[5] = 0; - out[6] = v[0]; - out[7] = v[1]; - out[8] = 1; - return out; -} -/** - * Creates a matrix from a given angle - * This is equivalent to (but much faster than): - * - * mat3.identity(dest); - * mat3.rotate(dest, dest, rad); - * - * @param {mat3} out mat3 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat3} out - */ - -export function fromRotation(out, rad) { - var s = Math.sin(rad), - c = Math.cos(rad); - out[0] = c; - out[1] = s; - out[2] = 0; - out[3] = -s; - out[4] = c; - out[5] = 0; - out[6] = 0; - out[7] = 0; - out[8] = 1; - return out; -} -/** - * Creates a matrix from a vector scaling - * This is equivalent to (but much faster than): - * - * mat3.identity(dest); - * mat3.scale(dest, dest, vec); - * - * @param {mat3} out mat3 receiving operation result - * @param {ReadonlyVec2} v Scaling vector - * @returns {mat3} out - */ - -export function fromScaling(out, v) { - out[0] = v[0]; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = v[1]; - out[5] = 0; - out[6] = 0; - out[7] = 0; - out[8] = 1; - return out; -} -/** - * Copies the values from a mat2d into a mat3 - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat2d} a the matrix to copy - * @returns {mat3} out - **/ - -export function fromMat2d(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = 0; - out[3] = a[2]; - out[4] = a[3]; - out[5] = 0; - out[6] = a[4]; - out[7] = a[5]; - out[8] = 1; - return out; -} -/** - * Calculates a 3x3 matrix from the given quaternion - * - * @param {mat3} out mat3 receiving operation result - * @param {ReadonlyQuat} q Quaternion to create matrix from - * - * @returns {mat3} out - */ - -export function fromQuat(out, q) { - var x = q[0], - y = q[1], - z = q[2], - w = q[3]; - var x2 = x + x; - var y2 = y + y; - var z2 = z + z; - var xx = x * x2; - var yx = y * x2; - var yy = y * y2; - var zx = z * x2; - var zy = z * y2; - var zz = z * z2; - var wx = w * x2; - var wy = w * y2; - var wz = w * z2; - out[0] = 1 - yy - zz; - out[3] = yx - wz; - out[6] = zx + wy; - out[1] = yx + wz; - out[4] = 1 - xx - zz; - out[7] = zy - wx; - out[2] = zx - wy; - out[5] = zy + wx; - out[8] = 1 - xx - yy; - return out; -} -/** - * Calculates a 3x3 normal matrix (transpose inverse) from the 4x4 matrix - * - * @param {mat3} out mat3 receiving operation result - * @param {ReadonlyMat4} a Mat4 to derive the normal matrix from - * - * @returns {mat3} out - */ - -export function normalFromMat4(out, a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a03 = a[3]; - var a10 = a[4], - a11 = a[5], - a12 = a[6], - a13 = a[7]; - var a20 = a[8], - a21 = a[9], - a22 = a[10], - a23 = a[11]; - var a30 = a[12], - a31 = a[13], - a32 = a[14], - a33 = a[15]; - var b00 = a00 * a11 - a01 * a10; - var b01 = a00 * a12 - a02 * a10; - var b02 = a00 * a13 - a03 * a10; - var b03 = a01 * a12 - a02 * a11; - var b04 = a01 * a13 - a03 * a11; - var b05 = a02 * a13 - a03 * a12; - var b06 = a20 * a31 - a21 * a30; - var b07 = a20 * a32 - a22 * a30; - var b08 = a20 * a33 - a23 * a30; - var b09 = a21 * a32 - a22 * a31; - var b10 = a21 * a33 - a23 * a31; - var b11 = a22 * a33 - a23 * a32; // Calculate the determinant - - var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; - - if (!det) { - return null; - } - - det = 1.0 / det; - out[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det; - out[1] = (a12 * b08 - a10 * b11 - a13 * b07) * det; - out[2] = (a10 * b10 - a11 * b08 + a13 * b06) * det; - out[3] = (a02 * b10 - a01 * b11 - a03 * b09) * det; - out[4] = (a00 * b11 - a02 * b08 + a03 * b07) * det; - out[5] = (a01 * b08 - a00 * b10 - a03 * b06) * det; - out[6] = (a31 * b05 - a32 * b04 + a33 * b03) * det; - out[7] = (a32 * b02 - a30 * b05 - a33 * b01) * det; - out[8] = (a30 * b04 - a31 * b02 + a33 * b00) * det; - return out; -} -/** - * Generates a 2D projection matrix with the given bounds - * - * @param {mat3} out mat3 frustum matrix will be written into - * @param {number} width Width of your gl context - * @param {number} height Height of gl context - * @returns {mat3} out - */ - -export function projection(out, width, height) { - out[0] = 2 / width; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = -2 / height; - out[5] = 0; - out[6] = -1; - out[7] = 1; - out[8] = 1; - return out; -} -/** - * Returns a string representation of a mat3 - * - * @param {ReadonlyMat3} a matrix to represent as a string - * @returns {String} string representation of the matrix - */ - -export function str(a) { - return "mat3(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ", " + a[6] + ", " + a[7] + ", " + a[8] + ")"; -} -/** - * Returns Frobenius norm of a mat3 - * - * @param {ReadonlyMat3} a the matrix to calculate Frobenius norm of - * @returns {Number} Frobenius norm - */ - -export function frob(a) { - return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8]); -} -/** - * Adds two mat3's - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the first operand - * @param {ReadonlyMat3} b the second operand - * @returns {mat3} out - */ - -export function add(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - out[3] = a[3] + b[3]; - out[4] = a[4] + b[4]; - out[5] = a[5] + b[5]; - out[6] = a[6] + b[6]; - out[7] = a[7] + b[7]; - out[8] = a[8] + b[8]; - return out; -} -/** - * Subtracts matrix b from matrix a - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the first operand - * @param {ReadonlyMat3} b the second operand - * @returns {mat3} out - */ - -export function subtract(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - out[2] = a[2] - b[2]; - out[3] = a[3] - b[3]; - out[4] = a[4] - b[4]; - out[5] = a[5] - b[5]; - out[6] = a[6] - b[6]; - out[7] = a[7] - b[7]; - out[8] = a[8] - b[8]; - return out; -} -/** - * Multiply each element of the matrix by a scalar. - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the matrix to scale - * @param {Number} b amount to scale the matrix's elements by - * @returns {mat3} out - */ - -export function multiplyScalar(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - out[3] = a[3] * b; - out[4] = a[4] * b; - out[5] = a[5] * b; - out[6] = a[6] * b; - out[7] = a[7] * b; - out[8] = a[8] * b; - return out; -} -/** - * Adds two mat3's after multiplying each element of the second operand by a scalar value. - * - * @param {mat3} out the receiving vector - * @param {ReadonlyMat3} a the first operand - * @param {ReadonlyMat3} b the second operand - * @param {Number} scale the amount to scale b's elements by before adding - * @returns {mat3} out - */ - -export function multiplyScalarAndAdd(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - out[2] = a[2] + b[2] * scale; - out[3] = a[3] + b[3] * scale; - out[4] = a[4] + b[4] * scale; - out[5] = a[5] + b[5] * scale; - out[6] = a[6] + b[6] * scale; - out[7] = a[7] + b[7] * scale; - out[8] = a[8] + b[8] * scale; - return out; -} -/** - * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyMat3} a The first matrix. - * @param {ReadonlyMat3} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - -export function exactEquals(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7] && a[8] === b[8]; -} -/** - * Returns whether or not the matrices have approximately the same elements in the same position. - * - * @param {ReadonlyMat3} a The first matrix. - * @param {ReadonlyMat3} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - -export function equals(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5], - a6 = a[6], - a7 = a[7], - a8 = a[8]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3], - b4 = b[4], - b5 = b[5], - b6 = b[6], - b7 = b[7], - b8 = b[8]; - return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a7), Math.abs(b7)) && Math.abs(a8 - b8) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a8), Math.abs(b8)); -} -/** - * Alias for {@link mat3.multiply} - * @function - */ - -export var mul = multiply; -/** - * Alias for {@link mat3.subtract} - * @function - */ - -export var sub = subtract; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/esm/mat4.js b/build_vtk_bundle/node_modules/gl-matrix/esm/mat4.js deleted file mode 100755 index edb7b76e..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/esm/mat4.js +++ /dev/null @@ -1,1910 +0,0 @@ -import * as glMatrix from "./common.js"; -/** - * 4x4 Matrix
Format: column-major, when typed out it looks like row-major
The matrices are being post multiplied. - * @module mat4 - */ - -/** - * Creates a new identity mat4 - * - * @returns {mat4} a new 4x4 matrix - */ - -export function create() { - var out = new glMatrix.ARRAY_TYPE(16); - - if (glMatrix.ARRAY_TYPE != Float32Array) { - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - } - - out[0] = 1; - out[5] = 1; - out[10] = 1; - out[15] = 1; - return out; -} -/** - * Creates a new mat4 initialized with values from an existing matrix - * - * @param {ReadonlyMat4} a matrix to clone - * @returns {mat4} a new 4x4 matrix - */ - -export function clone(a) { - var out = new glMatrix.ARRAY_TYPE(16); - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - out[6] = a[6]; - out[7] = a[7]; - out[8] = a[8]; - out[9] = a[9]; - out[10] = a[10]; - out[11] = a[11]; - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - return out; -} -/** - * Copy the values from one mat4 to another - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the source matrix - * @returns {mat4} out - */ - -export function copy(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - out[6] = a[6]; - out[7] = a[7]; - out[8] = a[8]; - out[9] = a[9]; - out[10] = a[10]; - out[11] = a[11]; - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - return out; -} -/** - * Create a new mat4 with the given values - * - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m02 Component in column 0, row 2 position (index 2) - * @param {Number} m03 Component in column 0, row 3 position (index 3) - * @param {Number} m10 Component in column 1, row 0 position (index 4) - * @param {Number} m11 Component in column 1, row 1 position (index 5) - * @param {Number} m12 Component in column 1, row 2 position (index 6) - * @param {Number} m13 Component in column 1, row 3 position (index 7) - * @param {Number} m20 Component in column 2, row 0 position (index 8) - * @param {Number} m21 Component in column 2, row 1 position (index 9) - * @param {Number} m22 Component in column 2, row 2 position (index 10) - * @param {Number} m23 Component in column 2, row 3 position (index 11) - * @param {Number} m30 Component in column 3, row 0 position (index 12) - * @param {Number} m31 Component in column 3, row 1 position (index 13) - * @param {Number} m32 Component in column 3, row 2 position (index 14) - * @param {Number} m33 Component in column 3, row 3 position (index 15) - * @returns {mat4} A new mat4 - */ - -export function fromValues(m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33) { - var out = new glMatrix.ARRAY_TYPE(16); - out[0] = m00; - out[1] = m01; - out[2] = m02; - out[3] = m03; - out[4] = m10; - out[5] = m11; - out[6] = m12; - out[7] = m13; - out[8] = m20; - out[9] = m21; - out[10] = m22; - out[11] = m23; - out[12] = m30; - out[13] = m31; - out[14] = m32; - out[15] = m33; - return out; -} -/** - * Set the components of a mat4 to the given values - * - * @param {mat4} out the receiving matrix - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m02 Component in column 0, row 2 position (index 2) - * @param {Number} m03 Component in column 0, row 3 position (index 3) - * @param {Number} m10 Component in column 1, row 0 position (index 4) - * @param {Number} m11 Component in column 1, row 1 position (index 5) - * @param {Number} m12 Component in column 1, row 2 position (index 6) - * @param {Number} m13 Component in column 1, row 3 position (index 7) - * @param {Number} m20 Component in column 2, row 0 position (index 8) - * @param {Number} m21 Component in column 2, row 1 position (index 9) - * @param {Number} m22 Component in column 2, row 2 position (index 10) - * @param {Number} m23 Component in column 2, row 3 position (index 11) - * @param {Number} m30 Component in column 3, row 0 position (index 12) - * @param {Number} m31 Component in column 3, row 1 position (index 13) - * @param {Number} m32 Component in column 3, row 2 position (index 14) - * @param {Number} m33 Component in column 3, row 3 position (index 15) - * @returns {mat4} out - */ - -export function set(out, m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33) { - out[0] = m00; - out[1] = m01; - out[2] = m02; - out[3] = m03; - out[4] = m10; - out[5] = m11; - out[6] = m12; - out[7] = m13; - out[8] = m20; - out[9] = m21; - out[10] = m22; - out[11] = m23; - out[12] = m30; - out[13] = m31; - out[14] = m32; - out[15] = m33; - return out; -} -/** - * Set a mat4 to the identity matrix - * - * @param {mat4} out the receiving matrix - * @returns {mat4} out - */ - -export function identity(out) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = 1; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[10] = 1; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; -} -/** - * Transpose the values of a mat4 - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the source matrix - * @returns {mat4} out - */ - -export function transpose(out, a) { - // If we are transposing ourselves we can skip a few steps but have to cache some values - if (out === a) { - var a01 = a[1], - a02 = a[2], - a03 = a[3]; - var a12 = a[6], - a13 = a[7]; - var a23 = a[11]; - out[1] = a[4]; - out[2] = a[8]; - out[3] = a[12]; - out[4] = a01; - out[6] = a[9]; - out[7] = a[13]; - out[8] = a02; - out[9] = a12; - out[11] = a[14]; - out[12] = a03; - out[13] = a13; - out[14] = a23; - } else { - out[0] = a[0]; - out[1] = a[4]; - out[2] = a[8]; - out[3] = a[12]; - out[4] = a[1]; - out[5] = a[5]; - out[6] = a[9]; - out[7] = a[13]; - out[8] = a[2]; - out[9] = a[6]; - out[10] = a[10]; - out[11] = a[14]; - out[12] = a[3]; - out[13] = a[7]; - out[14] = a[11]; - out[15] = a[15]; - } - - return out; -} -/** - * Inverts a mat4 - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the source matrix - * @returns {mat4} out - */ - -export function invert(out, a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a03 = a[3]; - var a10 = a[4], - a11 = a[5], - a12 = a[6], - a13 = a[7]; - var a20 = a[8], - a21 = a[9], - a22 = a[10], - a23 = a[11]; - var a30 = a[12], - a31 = a[13], - a32 = a[14], - a33 = a[15]; - var b00 = a00 * a11 - a01 * a10; - var b01 = a00 * a12 - a02 * a10; - var b02 = a00 * a13 - a03 * a10; - var b03 = a01 * a12 - a02 * a11; - var b04 = a01 * a13 - a03 * a11; - var b05 = a02 * a13 - a03 * a12; - var b06 = a20 * a31 - a21 * a30; - var b07 = a20 * a32 - a22 * a30; - var b08 = a20 * a33 - a23 * a30; - var b09 = a21 * a32 - a22 * a31; - var b10 = a21 * a33 - a23 * a31; - var b11 = a22 * a33 - a23 * a32; // Calculate the determinant - - var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; - - if (!det) { - return null; - } - - det = 1.0 / det; - out[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det; - out[1] = (a02 * b10 - a01 * b11 - a03 * b09) * det; - out[2] = (a31 * b05 - a32 * b04 + a33 * b03) * det; - out[3] = (a22 * b04 - a21 * b05 - a23 * b03) * det; - out[4] = (a12 * b08 - a10 * b11 - a13 * b07) * det; - out[5] = (a00 * b11 - a02 * b08 + a03 * b07) * det; - out[6] = (a32 * b02 - a30 * b05 - a33 * b01) * det; - out[7] = (a20 * b05 - a22 * b02 + a23 * b01) * det; - out[8] = (a10 * b10 - a11 * b08 + a13 * b06) * det; - out[9] = (a01 * b08 - a00 * b10 - a03 * b06) * det; - out[10] = (a30 * b04 - a31 * b02 + a33 * b00) * det; - out[11] = (a21 * b02 - a20 * b04 - a23 * b00) * det; - out[12] = (a11 * b07 - a10 * b09 - a12 * b06) * det; - out[13] = (a00 * b09 - a01 * b07 + a02 * b06) * det; - out[14] = (a31 * b01 - a30 * b03 - a32 * b00) * det; - out[15] = (a20 * b03 - a21 * b01 + a22 * b00) * det; - return out; -} -/** - * Calculates the adjugate of a mat4 - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the source matrix - * @returns {mat4} out - */ - -export function adjoint(out, a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a03 = a[3]; - var a10 = a[4], - a11 = a[5], - a12 = a[6], - a13 = a[7]; - var a20 = a[8], - a21 = a[9], - a22 = a[10], - a23 = a[11]; - var a30 = a[12], - a31 = a[13], - a32 = a[14], - a33 = a[15]; - out[0] = a11 * (a22 * a33 - a23 * a32) - a21 * (a12 * a33 - a13 * a32) + a31 * (a12 * a23 - a13 * a22); - out[1] = -(a01 * (a22 * a33 - a23 * a32) - a21 * (a02 * a33 - a03 * a32) + a31 * (a02 * a23 - a03 * a22)); - out[2] = a01 * (a12 * a33 - a13 * a32) - a11 * (a02 * a33 - a03 * a32) + a31 * (a02 * a13 - a03 * a12); - out[3] = -(a01 * (a12 * a23 - a13 * a22) - a11 * (a02 * a23 - a03 * a22) + a21 * (a02 * a13 - a03 * a12)); - out[4] = -(a10 * (a22 * a33 - a23 * a32) - a20 * (a12 * a33 - a13 * a32) + a30 * (a12 * a23 - a13 * a22)); - out[5] = a00 * (a22 * a33 - a23 * a32) - a20 * (a02 * a33 - a03 * a32) + a30 * (a02 * a23 - a03 * a22); - out[6] = -(a00 * (a12 * a33 - a13 * a32) - a10 * (a02 * a33 - a03 * a32) + a30 * (a02 * a13 - a03 * a12)); - out[7] = a00 * (a12 * a23 - a13 * a22) - a10 * (a02 * a23 - a03 * a22) + a20 * (a02 * a13 - a03 * a12); - out[8] = a10 * (a21 * a33 - a23 * a31) - a20 * (a11 * a33 - a13 * a31) + a30 * (a11 * a23 - a13 * a21); - out[9] = -(a00 * (a21 * a33 - a23 * a31) - a20 * (a01 * a33 - a03 * a31) + a30 * (a01 * a23 - a03 * a21)); - out[10] = a00 * (a11 * a33 - a13 * a31) - a10 * (a01 * a33 - a03 * a31) + a30 * (a01 * a13 - a03 * a11); - out[11] = -(a00 * (a11 * a23 - a13 * a21) - a10 * (a01 * a23 - a03 * a21) + a20 * (a01 * a13 - a03 * a11)); - out[12] = -(a10 * (a21 * a32 - a22 * a31) - a20 * (a11 * a32 - a12 * a31) + a30 * (a11 * a22 - a12 * a21)); - out[13] = a00 * (a21 * a32 - a22 * a31) - a20 * (a01 * a32 - a02 * a31) + a30 * (a01 * a22 - a02 * a21); - out[14] = -(a00 * (a11 * a32 - a12 * a31) - a10 * (a01 * a32 - a02 * a31) + a30 * (a01 * a12 - a02 * a11)); - out[15] = a00 * (a11 * a22 - a12 * a21) - a10 * (a01 * a22 - a02 * a21) + a20 * (a01 * a12 - a02 * a11); - return out; -} -/** - * Calculates the determinant of a mat4 - * - * @param {ReadonlyMat4} a the source matrix - * @returns {Number} determinant of a - */ - -export function determinant(a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a03 = a[3]; - var a10 = a[4], - a11 = a[5], - a12 = a[6], - a13 = a[7]; - var a20 = a[8], - a21 = a[9], - a22 = a[10], - a23 = a[11]; - var a30 = a[12], - a31 = a[13], - a32 = a[14], - a33 = a[15]; - var b00 = a00 * a11 - a01 * a10; - var b01 = a00 * a12 - a02 * a10; - var b02 = a00 * a13 - a03 * a10; - var b03 = a01 * a12 - a02 * a11; - var b04 = a01 * a13 - a03 * a11; - var b05 = a02 * a13 - a03 * a12; - var b06 = a20 * a31 - a21 * a30; - var b07 = a20 * a32 - a22 * a30; - var b08 = a20 * a33 - a23 * a30; - var b09 = a21 * a32 - a22 * a31; - var b10 = a21 * a33 - a23 * a31; - var b11 = a22 * a33 - a23 * a32; // Calculate the determinant - - return b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; -} -/** - * Multiplies two mat4s - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the first operand - * @param {ReadonlyMat4} b the second operand - * @returns {mat4} out - */ - -export function multiply(out, a, b) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a03 = a[3]; - var a10 = a[4], - a11 = a[5], - a12 = a[6], - a13 = a[7]; - var a20 = a[8], - a21 = a[9], - a22 = a[10], - a23 = a[11]; - var a30 = a[12], - a31 = a[13], - a32 = a[14], - a33 = a[15]; // Cache only the current line of the second matrix - - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3]; - out[0] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[1] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[2] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[3] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - b0 = b[4]; - b1 = b[5]; - b2 = b[6]; - b3 = b[7]; - out[4] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[5] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[6] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[7] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - b0 = b[8]; - b1 = b[9]; - b2 = b[10]; - b3 = b[11]; - out[8] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[9] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[10] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[11] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - b0 = b[12]; - b1 = b[13]; - b2 = b[14]; - b3 = b[15]; - out[12] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[13] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[14] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[15] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - return out; -} -/** - * Translate a mat4 by the given vector - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to translate - * @param {ReadonlyVec3} v vector to translate by - * @returns {mat4} out - */ - -export function translate(out, a, v) { - var x = v[0], - y = v[1], - z = v[2]; - var a00, a01, a02, a03; - var a10, a11, a12, a13; - var a20, a21, a22, a23; - - if (a === out) { - out[12] = a[0] * x + a[4] * y + a[8] * z + a[12]; - out[13] = a[1] * x + a[5] * y + a[9] * z + a[13]; - out[14] = a[2] * x + a[6] * y + a[10] * z + a[14]; - out[15] = a[3] * x + a[7] * y + a[11] * z + a[15]; - } else { - a00 = a[0]; - a01 = a[1]; - a02 = a[2]; - a03 = a[3]; - a10 = a[4]; - a11 = a[5]; - a12 = a[6]; - a13 = a[7]; - a20 = a[8]; - a21 = a[9]; - a22 = a[10]; - a23 = a[11]; - out[0] = a00; - out[1] = a01; - out[2] = a02; - out[3] = a03; - out[4] = a10; - out[5] = a11; - out[6] = a12; - out[7] = a13; - out[8] = a20; - out[9] = a21; - out[10] = a22; - out[11] = a23; - out[12] = a00 * x + a10 * y + a20 * z + a[12]; - out[13] = a01 * x + a11 * y + a21 * z + a[13]; - out[14] = a02 * x + a12 * y + a22 * z + a[14]; - out[15] = a03 * x + a13 * y + a23 * z + a[15]; - } - - return out; -} -/** - * Scales the mat4 by the dimensions in the given vec3 not using vectorization - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to scale - * @param {ReadonlyVec3} v the vec3 to scale the matrix by - * @returns {mat4} out - **/ - -export function scale(out, a, v) { - var x = v[0], - y = v[1], - z = v[2]; - out[0] = a[0] * x; - out[1] = a[1] * x; - out[2] = a[2] * x; - out[3] = a[3] * x; - out[4] = a[4] * y; - out[5] = a[5] * y; - out[6] = a[6] * y; - out[7] = a[7] * y; - out[8] = a[8] * z; - out[9] = a[9] * z; - out[10] = a[10] * z; - out[11] = a[11] * z; - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - return out; -} -/** - * Rotates a mat4 by the given angle around the given axis - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @param {ReadonlyVec3} axis the axis to rotate around - * @returns {mat4} out - */ - -export function rotate(out, a, rad, axis) { - var x = axis[0], - y = axis[1], - z = axis[2]; - var len = Math.hypot(x, y, z); - var s, c, t; - var a00, a01, a02, a03; - var a10, a11, a12, a13; - var a20, a21, a22, a23; - var b00, b01, b02; - var b10, b11, b12; - var b20, b21, b22; - - if (len < glMatrix.EPSILON) { - return null; - } - - len = 1 / len; - x *= len; - y *= len; - z *= len; - s = Math.sin(rad); - c = Math.cos(rad); - t = 1 - c; - a00 = a[0]; - a01 = a[1]; - a02 = a[2]; - a03 = a[3]; - a10 = a[4]; - a11 = a[5]; - a12 = a[6]; - a13 = a[7]; - a20 = a[8]; - a21 = a[9]; - a22 = a[10]; - a23 = a[11]; // Construct the elements of the rotation matrix - - b00 = x * x * t + c; - b01 = y * x * t + z * s; - b02 = z * x * t - y * s; - b10 = x * y * t - z * s; - b11 = y * y * t + c; - b12 = z * y * t + x * s; - b20 = x * z * t + y * s; - b21 = y * z * t - x * s; - b22 = z * z * t + c; // Perform rotation-specific matrix multiplication - - out[0] = a00 * b00 + a10 * b01 + a20 * b02; - out[1] = a01 * b00 + a11 * b01 + a21 * b02; - out[2] = a02 * b00 + a12 * b01 + a22 * b02; - out[3] = a03 * b00 + a13 * b01 + a23 * b02; - out[4] = a00 * b10 + a10 * b11 + a20 * b12; - out[5] = a01 * b10 + a11 * b11 + a21 * b12; - out[6] = a02 * b10 + a12 * b11 + a22 * b12; - out[7] = a03 * b10 + a13 * b11 + a23 * b12; - out[8] = a00 * b20 + a10 * b21 + a20 * b22; - out[9] = a01 * b20 + a11 * b21 + a21 * b22; - out[10] = a02 * b20 + a12 * b21 + a22 * b22; - out[11] = a03 * b20 + a13 * b21 + a23 * b22; - - if (a !== out) { - // If the source and destination differ, copy the unchanged last row - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - } - - return out; -} -/** - * Rotates a matrix by the given angle around the X axis - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - -export function rotateX(out, a, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); - var a10 = a[4]; - var a11 = a[5]; - var a12 = a[6]; - var a13 = a[7]; - var a20 = a[8]; - var a21 = a[9]; - var a22 = a[10]; - var a23 = a[11]; - - if (a !== out) { - // If the source and destination differ, copy the unchanged rows - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - } // Perform axis-specific matrix multiplication - - - out[4] = a10 * c + a20 * s; - out[5] = a11 * c + a21 * s; - out[6] = a12 * c + a22 * s; - out[7] = a13 * c + a23 * s; - out[8] = a20 * c - a10 * s; - out[9] = a21 * c - a11 * s; - out[10] = a22 * c - a12 * s; - out[11] = a23 * c - a13 * s; - return out; -} -/** - * Rotates a matrix by the given angle around the Y axis - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - -export function rotateY(out, a, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); - var a00 = a[0]; - var a01 = a[1]; - var a02 = a[2]; - var a03 = a[3]; - var a20 = a[8]; - var a21 = a[9]; - var a22 = a[10]; - var a23 = a[11]; - - if (a !== out) { - // If the source and destination differ, copy the unchanged rows - out[4] = a[4]; - out[5] = a[5]; - out[6] = a[6]; - out[7] = a[7]; - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - } // Perform axis-specific matrix multiplication - - - out[0] = a00 * c - a20 * s; - out[1] = a01 * c - a21 * s; - out[2] = a02 * c - a22 * s; - out[3] = a03 * c - a23 * s; - out[8] = a00 * s + a20 * c; - out[9] = a01 * s + a21 * c; - out[10] = a02 * s + a22 * c; - out[11] = a03 * s + a23 * c; - return out; -} -/** - * Rotates a matrix by the given angle around the Z axis - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - -export function rotateZ(out, a, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); - var a00 = a[0]; - var a01 = a[1]; - var a02 = a[2]; - var a03 = a[3]; - var a10 = a[4]; - var a11 = a[5]; - var a12 = a[6]; - var a13 = a[7]; - - if (a !== out) { - // If the source and destination differ, copy the unchanged last row - out[8] = a[8]; - out[9] = a[9]; - out[10] = a[10]; - out[11] = a[11]; - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - } // Perform axis-specific matrix multiplication - - - out[0] = a00 * c + a10 * s; - out[1] = a01 * c + a11 * s; - out[2] = a02 * c + a12 * s; - out[3] = a03 * c + a13 * s; - out[4] = a10 * c - a00 * s; - out[5] = a11 * c - a01 * s; - out[6] = a12 * c - a02 * s; - out[7] = a13 * c - a03 * s; - return out; -} -/** - * Creates a matrix from a vector translation - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.translate(dest, dest, vec); - * - * @param {mat4} out mat4 receiving operation result - * @param {ReadonlyVec3} v Translation vector - * @returns {mat4} out - */ - -export function fromTranslation(out, v) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = 1; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[10] = 1; - out[11] = 0; - out[12] = v[0]; - out[13] = v[1]; - out[14] = v[2]; - out[15] = 1; - return out; -} -/** - * Creates a matrix from a vector scaling - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.scale(dest, dest, vec); - * - * @param {mat4} out mat4 receiving operation result - * @param {ReadonlyVec3} v Scaling vector - * @returns {mat4} out - */ - -export function fromScaling(out, v) { - out[0] = v[0]; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = v[1]; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[10] = v[2]; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; -} -/** - * Creates a matrix from a given angle around a given axis - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.rotate(dest, dest, rad, axis); - * - * @param {mat4} out mat4 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @param {ReadonlyVec3} axis the axis to rotate around - * @returns {mat4} out - */ - -export function fromRotation(out, rad, axis) { - var x = axis[0], - y = axis[1], - z = axis[2]; - var len = Math.hypot(x, y, z); - var s, c, t; - - if (len < glMatrix.EPSILON) { - return null; - } - - len = 1 / len; - x *= len; - y *= len; - z *= len; - s = Math.sin(rad); - c = Math.cos(rad); - t = 1 - c; // Perform rotation-specific matrix multiplication - - out[0] = x * x * t + c; - out[1] = y * x * t + z * s; - out[2] = z * x * t - y * s; - out[3] = 0; - out[4] = x * y * t - z * s; - out[5] = y * y * t + c; - out[6] = z * y * t + x * s; - out[7] = 0; - out[8] = x * z * t + y * s; - out[9] = y * z * t - x * s; - out[10] = z * z * t + c; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; -} -/** - * Creates a matrix from the given angle around the X axis - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.rotateX(dest, dest, rad); - * - * @param {mat4} out mat4 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - -export function fromXRotation(out, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); // Perform axis-specific matrix multiplication - - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = c; - out[6] = s; - out[7] = 0; - out[8] = 0; - out[9] = -s; - out[10] = c; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; -} -/** - * Creates a matrix from the given angle around the Y axis - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.rotateY(dest, dest, rad); - * - * @param {mat4} out mat4 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - -export function fromYRotation(out, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); // Perform axis-specific matrix multiplication - - out[0] = c; - out[1] = 0; - out[2] = -s; - out[3] = 0; - out[4] = 0; - out[5] = 1; - out[6] = 0; - out[7] = 0; - out[8] = s; - out[9] = 0; - out[10] = c; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; -} -/** - * Creates a matrix from the given angle around the Z axis - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.rotateZ(dest, dest, rad); - * - * @param {mat4} out mat4 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - -export function fromZRotation(out, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); // Perform axis-specific matrix multiplication - - out[0] = c; - out[1] = s; - out[2] = 0; - out[3] = 0; - out[4] = -s; - out[5] = c; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[10] = 1; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; -} -/** - * Creates a matrix from a quaternion rotation and vector translation - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.translate(dest, vec); - * let quatMat = mat4.create(); - * quat4.toMat4(quat, quatMat); - * mat4.multiply(dest, quatMat); - * - * @param {mat4} out mat4 receiving operation result - * @param {quat4} q Rotation quaternion - * @param {ReadonlyVec3} v Translation vector - * @returns {mat4} out - */ - -export function fromRotationTranslation(out, q, v) { - // Quaternion math - var x = q[0], - y = q[1], - z = q[2], - w = q[3]; - var x2 = x + x; - var y2 = y + y; - var z2 = z + z; - var xx = x * x2; - var xy = x * y2; - var xz = x * z2; - var yy = y * y2; - var yz = y * z2; - var zz = z * z2; - var wx = w * x2; - var wy = w * y2; - var wz = w * z2; - out[0] = 1 - (yy + zz); - out[1] = xy + wz; - out[2] = xz - wy; - out[3] = 0; - out[4] = xy - wz; - out[5] = 1 - (xx + zz); - out[6] = yz + wx; - out[7] = 0; - out[8] = xz + wy; - out[9] = yz - wx; - out[10] = 1 - (xx + yy); - out[11] = 0; - out[12] = v[0]; - out[13] = v[1]; - out[14] = v[2]; - out[15] = 1; - return out; -} -/** - * Creates a new mat4 from a dual quat. - * - * @param {mat4} out Matrix - * @param {ReadonlyQuat2} a Dual Quaternion - * @returns {mat4} mat4 receiving operation result - */ - -export function fromQuat2(out, a) { - var translation = new glMatrix.ARRAY_TYPE(3); - var bx = -a[0], - by = -a[1], - bz = -a[2], - bw = a[3], - ax = a[4], - ay = a[5], - az = a[6], - aw = a[7]; - var magnitude = bx * bx + by * by + bz * bz + bw * bw; //Only scale if it makes sense - - if (magnitude > 0) { - translation[0] = (ax * bw + aw * bx + ay * bz - az * by) * 2 / magnitude; - translation[1] = (ay * bw + aw * by + az * bx - ax * bz) * 2 / magnitude; - translation[2] = (az * bw + aw * bz + ax * by - ay * bx) * 2 / magnitude; - } else { - translation[0] = (ax * bw + aw * bx + ay * bz - az * by) * 2; - translation[1] = (ay * bw + aw * by + az * bx - ax * bz) * 2; - translation[2] = (az * bw + aw * bz + ax * by - ay * bx) * 2; - } - - fromRotationTranslation(out, a, translation); - return out; -} -/** - * Returns the translation vector component of a transformation - * matrix. If a matrix is built with fromRotationTranslation, - * the returned vector will be the same as the translation vector - * originally supplied. - * @param {vec3} out Vector to receive translation component - * @param {ReadonlyMat4} mat Matrix to be decomposed (input) - * @return {vec3} out - */ - -export function getTranslation(out, mat) { - out[0] = mat[12]; - out[1] = mat[13]; - out[2] = mat[14]; - return out; -} -/** - * Returns the scaling factor component of a transformation - * matrix. If a matrix is built with fromRotationTranslationScale - * with a normalized Quaternion paramter, the returned vector will be - * the same as the scaling vector - * originally supplied. - * @param {vec3} out Vector to receive scaling factor component - * @param {ReadonlyMat4} mat Matrix to be decomposed (input) - * @return {vec3} out - */ - -export function getScaling(out, mat) { - var m11 = mat[0]; - var m12 = mat[1]; - var m13 = mat[2]; - var m21 = mat[4]; - var m22 = mat[5]; - var m23 = mat[6]; - var m31 = mat[8]; - var m32 = mat[9]; - var m33 = mat[10]; - out[0] = Math.hypot(m11, m12, m13); - out[1] = Math.hypot(m21, m22, m23); - out[2] = Math.hypot(m31, m32, m33); - return out; -} -/** - * Returns a quaternion representing the rotational component - * of a transformation matrix. If a matrix is built with - * fromRotationTranslation, the returned quaternion will be the - * same as the quaternion originally supplied. - * @param {quat} out Quaternion to receive the rotation component - * @param {ReadonlyMat4} mat Matrix to be decomposed (input) - * @return {quat} out - */ - -export function getRotation(out, mat) { - var scaling = new glMatrix.ARRAY_TYPE(3); - getScaling(scaling, mat); - var is1 = 1 / scaling[0]; - var is2 = 1 / scaling[1]; - var is3 = 1 / scaling[2]; - var sm11 = mat[0] * is1; - var sm12 = mat[1] * is2; - var sm13 = mat[2] * is3; - var sm21 = mat[4] * is1; - var sm22 = mat[5] * is2; - var sm23 = mat[6] * is3; - var sm31 = mat[8] * is1; - var sm32 = mat[9] * is2; - var sm33 = mat[10] * is3; - var trace = sm11 + sm22 + sm33; - var S = 0; - - if (trace > 0) { - S = Math.sqrt(trace + 1.0) * 2; - out[3] = 0.25 * S; - out[0] = (sm23 - sm32) / S; - out[1] = (sm31 - sm13) / S; - out[2] = (sm12 - sm21) / S; - } else if (sm11 > sm22 && sm11 > sm33) { - S = Math.sqrt(1.0 + sm11 - sm22 - sm33) * 2; - out[3] = (sm23 - sm32) / S; - out[0] = 0.25 * S; - out[1] = (sm12 + sm21) / S; - out[2] = (sm31 + sm13) / S; - } else if (sm22 > sm33) { - S = Math.sqrt(1.0 + sm22 - sm11 - sm33) * 2; - out[3] = (sm31 - sm13) / S; - out[0] = (sm12 + sm21) / S; - out[1] = 0.25 * S; - out[2] = (sm23 + sm32) / S; - } else { - S = Math.sqrt(1.0 + sm33 - sm11 - sm22) * 2; - out[3] = (sm12 - sm21) / S; - out[0] = (sm31 + sm13) / S; - out[1] = (sm23 + sm32) / S; - out[2] = 0.25 * S; - } - - return out; -} -/** - * Creates a matrix from a quaternion rotation, vector translation and vector scale - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.translate(dest, vec); - * let quatMat = mat4.create(); - * quat4.toMat4(quat, quatMat); - * mat4.multiply(dest, quatMat); - * mat4.scale(dest, scale) - * - * @param {mat4} out mat4 receiving operation result - * @param {quat4} q Rotation quaternion - * @param {ReadonlyVec3} v Translation vector - * @param {ReadonlyVec3} s Scaling vector - * @returns {mat4} out - */ - -export function fromRotationTranslationScale(out, q, v, s) { - // Quaternion math - var x = q[0], - y = q[1], - z = q[2], - w = q[3]; - var x2 = x + x; - var y2 = y + y; - var z2 = z + z; - var xx = x * x2; - var xy = x * y2; - var xz = x * z2; - var yy = y * y2; - var yz = y * z2; - var zz = z * z2; - var wx = w * x2; - var wy = w * y2; - var wz = w * z2; - var sx = s[0]; - var sy = s[1]; - var sz = s[2]; - out[0] = (1 - (yy + zz)) * sx; - out[1] = (xy + wz) * sx; - out[2] = (xz - wy) * sx; - out[3] = 0; - out[4] = (xy - wz) * sy; - out[5] = (1 - (xx + zz)) * sy; - out[6] = (yz + wx) * sy; - out[7] = 0; - out[8] = (xz + wy) * sz; - out[9] = (yz - wx) * sz; - out[10] = (1 - (xx + yy)) * sz; - out[11] = 0; - out[12] = v[0]; - out[13] = v[1]; - out[14] = v[2]; - out[15] = 1; - return out; -} -/** - * Creates a matrix from a quaternion rotation, vector translation and vector scale, rotating and scaling around the given origin - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.translate(dest, vec); - * mat4.translate(dest, origin); - * let quatMat = mat4.create(); - * quat4.toMat4(quat, quatMat); - * mat4.multiply(dest, quatMat); - * mat4.scale(dest, scale) - * mat4.translate(dest, negativeOrigin); - * - * @param {mat4} out mat4 receiving operation result - * @param {quat4} q Rotation quaternion - * @param {ReadonlyVec3} v Translation vector - * @param {ReadonlyVec3} s Scaling vector - * @param {ReadonlyVec3} o The origin vector around which to scale and rotate - * @returns {mat4} out - */ - -export function fromRotationTranslationScaleOrigin(out, q, v, s, o) { - // Quaternion math - var x = q[0], - y = q[1], - z = q[2], - w = q[3]; - var x2 = x + x; - var y2 = y + y; - var z2 = z + z; - var xx = x * x2; - var xy = x * y2; - var xz = x * z2; - var yy = y * y2; - var yz = y * z2; - var zz = z * z2; - var wx = w * x2; - var wy = w * y2; - var wz = w * z2; - var sx = s[0]; - var sy = s[1]; - var sz = s[2]; - var ox = o[0]; - var oy = o[1]; - var oz = o[2]; - var out0 = (1 - (yy + zz)) * sx; - var out1 = (xy + wz) * sx; - var out2 = (xz - wy) * sx; - var out4 = (xy - wz) * sy; - var out5 = (1 - (xx + zz)) * sy; - var out6 = (yz + wx) * sy; - var out8 = (xz + wy) * sz; - var out9 = (yz - wx) * sz; - var out10 = (1 - (xx + yy)) * sz; - out[0] = out0; - out[1] = out1; - out[2] = out2; - out[3] = 0; - out[4] = out4; - out[5] = out5; - out[6] = out6; - out[7] = 0; - out[8] = out8; - out[9] = out9; - out[10] = out10; - out[11] = 0; - out[12] = v[0] + ox - (out0 * ox + out4 * oy + out8 * oz); - out[13] = v[1] + oy - (out1 * ox + out5 * oy + out9 * oz); - out[14] = v[2] + oz - (out2 * ox + out6 * oy + out10 * oz); - out[15] = 1; - return out; -} -/** - * Calculates a 4x4 matrix from the given quaternion - * - * @param {mat4} out mat4 receiving operation result - * @param {ReadonlyQuat} q Quaternion to create matrix from - * - * @returns {mat4} out - */ - -export function fromQuat(out, q) { - var x = q[0], - y = q[1], - z = q[2], - w = q[3]; - var x2 = x + x; - var y2 = y + y; - var z2 = z + z; - var xx = x * x2; - var yx = y * x2; - var yy = y * y2; - var zx = z * x2; - var zy = z * y2; - var zz = z * z2; - var wx = w * x2; - var wy = w * y2; - var wz = w * z2; - out[0] = 1 - yy - zz; - out[1] = yx + wz; - out[2] = zx - wy; - out[3] = 0; - out[4] = yx - wz; - out[5] = 1 - xx - zz; - out[6] = zy + wx; - out[7] = 0; - out[8] = zx + wy; - out[9] = zy - wx; - out[10] = 1 - xx - yy; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; -} -/** - * Generates a frustum matrix with the given bounds - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {Number} left Left bound of the frustum - * @param {Number} right Right bound of the frustum - * @param {Number} bottom Bottom bound of the frustum - * @param {Number} top Top bound of the frustum - * @param {Number} near Near bound of the frustum - * @param {Number} far Far bound of the frustum - * @returns {mat4} out - */ - -export function frustum(out, left, right, bottom, top, near, far) { - var rl = 1 / (right - left); - var tb = 1 / (top - bottom); - var nf = 1 / (near - far); - out[0] = near * 2 * rl; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = near * 2 * tb; - out[6] = 0; - out[7] = 0; - out[8] = (right + left) * rl; - out[9] = (top + bottom) * tb; - out[10] = (far + near) * nf; - out[11] = -1; - out[12] = 0; - out[13] = 0; - out[14] = far * near * 2 * nf; - out[15] = 0; - return out; -} -/** - * Generates a perspective projection matrix with the given bounds. - * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1], - * which matches WebGL/OpenGL's clip volume. - * Passing null/undefined/no value for far will generate infinite projection matrix. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {number} fovy Vertical field of view in radians - * @param {number} aspect Aspect ratio. typically viewport width/height - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum, can be null or Infinity - * @returns {mat4} out - */ - -export function perspectiveNO(out, fovy, aspect, near, far) { - var f = 1.0 / Math.tan(fovy / 2), - nf; - out[0] = f / aspect; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = f; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[11] = -1; - out[12] = 0; - out[13] = 0; - out[15] = 0; - - if (far != null && far !== Infinity) { - nf = 1 / (near - far); - out[10] = (far + near) * nf; - out[14] = 2 * far * near * nf; - } else { - out[10] = -1; - out[14] = -2 * near; - } - - return out; -} -/** - * Alias for {@link mat4.perspectiveNO} - * @function - */ - -export var perspective = perspectiveNO; -/** - * Generates a perspective projection matrix suitable for WebGPU with the given bounds. - * The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1], - * which matches WebGPU/Vulkan/DirectX/Metal's clip volume. - * Passing null/undefined/no value for far will generate infinite projection matrix. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {number} fovy Vertical field of view in radians - * @param {number} aspect Aspect ratio. typically viewport width/height - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum, can be null or Infinity - * @returns {mat4} out - */ - -export function perspectiveZO(out, fovy, aspect, near, far) { - var f = 1.0 / Math.tan(fovy / 2), - nf; - out[0] = f / aspect; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = f; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[11] = -1; - out[12] = 0; - out[13] = 0; - out[15] = 0; - - if (far != null && far !== Infinity) { - nf = 1 / (near - far); - out[10] = far * nf; - out[14] = far * near * nf; - } else { - out[10] = -1; - out[14] = -near; - } - - return out; -} -/** - * Generates a perspective projection matrix with the given field of view. - * This is primarily useful for generating projection matrices to be used - * with the still experiemental WebVR API. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {Object} fov Object containing the following values: upDegrees, downDegrees, leftDegrees, rightDegrees - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum - * @returns {mat4} out - */ - -export function perspectiveFromFieldOfView(out, fov, near, far) { - var upTan = Math.tan(fov.upDegrees * Math.PI / 180.0); - var downTan = Math.tan(fov.downDegrees * Math.PI / 180.0); - var leftTan = Math.tan(fov.leftDegrees * Math.PI / 180.0); - var rightTan = Math.tan(fov.rightDegrees * Math.PI / 180.0); - var xScale = 2.0 / (leftTan + rightTan); - var yScale = 2.0 / (upTan + downTan); - out[0] = xScale; - out[1] = 0.0; - out[2] = 0.0; - out[3] = 0.0; - out[4] = 0.0; - out[5] = yScale; - out[6] = 0.0; - out[7] = 0.0; - out[8] = -((leftTan - rightTan) * xScale * 0.5); - out[9] = (upTan - downTan) * yScale * 0.5; - out[10] = far / (near - far); - out[11] = -1.0; - out[12] = 0.0; - out[13] = 0.0; - out[14] = far * near / (near - far); - out[15] = 0.0; - return out; -} -/** - * Generates a orthogonal projection matrix with the given bounds. - * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1], - * which matches WebGL/OpenGL's clip volume. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {number} left Left bound of the frustum - * @param {number} right Right bound of the frustum - * @param {number} bottom Bottom bound of the frustum - * @param {number} top Top bound of the frustum - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum - * @returns {mat4} out - */ - -export function orthoNO(out, left, right, bottom, top, near, far) { - var lr = 1 / (left - right); - var bt = 1 / (bottom - top); - var nf = 1 / (near - far); - out[0] = -2 * lr; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = -2 * bt; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[10] = 2 * nf; - out[11] = 0; - out[12] = (left + right) * lr; - out[13] = (top + bottom) * bt; - out[14] = (far + near) * nf; - out[15] = 1; - return out; -} -/** - * Alias for {@link mat4.orthoNO} - * @function - */ - -export var ortho = orthoNO; -/** - * Generates a orthogonal projection matrix with the given bounds. - * The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1], - * which matches WebGPU/Vulkan/DirectX/Metal's clip volume. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {number} left Left bound of the frustum - * @param {number} right Right bound of the frustum - * @param {number} bottom Bottom bound of the frustum - * @param {number} top Top bound of the frustum - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum - * @returns {mat4} out - */ - -export function orthoZO(out, left, right, bottom, top, near, far) { - var lr = 1 / (left - right); - var bt = 1 / (bottom - top); - var nf = 1 / (near - far); - out[0] = -2 * lr; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = -2 * bt; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[10] = nf; - out[11] = 0; - out[12] = (left + right) * lr; - out[13] = (top + bottom) * bt; - out[14] = near * nf; - out[15] = 1; - return out; -} -/** - * Generates a look-at matrix with the given eye position, focal point, and up axis. - * If you want a matrix that actually makes an object look at another object, you should use targetTo instead. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {ReadonlyVec3} eye Position of the viewer - * @param {ReadonlyVec3} center Point the viewer is looking at - * @param {ReadonlyVec3} up vec3 pointing up - * @returns {mat4} out - */ - -export function lookAt(out, eye, center, up) { - var x0, x1, x2, y0, y1, y2, z0, z1, z2, len; - var eyex = eye[0]; - var eyey = eye[1]; - var eyez = eye[2]; - var upx = up[0]; - var upy = up[1]; - var upz = up[2]; - var centerx = center[0]; - var centery = center[1]; - var centerz = center[2]; - - if (Math.abs(eyex - centerx) < glMatrix.EPSILON && Math.abs(eyey - centery) < glMatrix.EPSILON && Math.abs(eyez - centerz) < glMatrix.EPSILON) { - return identity(out); - } - - z0 = eyex - centerx; - z1 = eyey - centery; - z2 = eyez - centerz; - len = 1 / Math.hypot(z0, z1, z2); - z0 *= len; - z1 *= len; - z2 *= len; - x0 = upy * z2 - upz * z1; - x1 = upz * z0 - upx * z2; - x2 = upx * z1 - upy * z0; - len = Math.hypot(x0, x1, x2); - - if (!len) { - x0 = 0; - x1 = 0; - x2 = 0; - } else { - len = 1 / len; - x0 *= len; - x1 *= len; - x2 *= len; - } - - y0 = z1 * x2 - z2 * x1; - y1 = z2 * x0 - z0 * x2; - y2 = z0 * x1 - z1 * x0; - len = Math.hypot(y0, y1, y2); - - if (!len) { - y0 = 0; - y1 = 0; - y2 = 0; - } else { - len = 1 / len; - y0 *= len; - y1 *= len; - y2 *= len; - } - - out[0] = x0; - out[1] = y0; - out[2] = z0; - out[3] = 0; - out[4] = x1; - out[5] = y1; - out[6] = z1; - out[7] = 0; - out[8] = x2; - out[9] = y2; - out[10] = z2; - out[11] = 0; - out[12] = -(x0 * eyex + x1 * eyey + x2 * eyez); - out[13] = -(y0 * eyex + y1 * eyey + y2 * eyez); - out[14] = -(z0 * eyex + z1 * eyey + z2 * eyez); - out[15] = 1; - return out; -} -/** - * Generates a matrix that makes something look at something else. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {ReadonlyVec3} eye Position of the viewer - * @param {ReadonlyVec3} center Point the viewer is looking at - * @param {ReadonlyVec3} up vec3 pointing up - * @returns {mat4} out - */ - -export function targetTo(out, eye, target, up) { - var eyex = eye[0], - eyey = eye[1], - eyez = eye[2], - upx = up[0], - upy = up[1], - upz = up[2]; - var z0 = eyex - target[0], - z1 = eyey - target[1], - z2 = eyez - target[2]; - var len = z0 * z0 + z1 * z1 + z2 * z2; - - if (len > 0) { - len = 1 / Math.sqrt(len); - z0 *= len; - z1 *= len; - z2 *= len; - } - - var x0 = upy * z2 - upz * z1, - x1 = upz * z0 - upx * z2, - x2 = upx * z1 - upy * z0; - len = x0 * x0 + x1 * x1 + x2 * x2; - - if (len > 0) { - len = 1 / Math.sqrt(len); - x0 *= len; - x1 *= len; - x2 *= len; - } - - out[0] = x0; - out[1] = x1; - out[2] = x2; - out[3] = 0; - out[4] = z1 * x2 - z2 * x1; - out[5] = z2 * x0 - z0 * x2; - out[6] = z0 * x1 - z1 * x0; - out[7] = 0; - out[8] = z0; - out[9] = z1; - out[10] = z2; - out[11] = 0; - out[12] = eyex; - out[13] = eyey; - out[14] = eyez; - out[15] = 1; - return out; -} -/** - * Returns a string representation of a mat4 - * - * @param {ReadonlyMat4} a matrix to represent as a string - * @returns {String} string representation of the matrix - */ - -export function str(a) { - return "mat4(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ", " + a[6] + ", " + a[7] + ", " + a[8] + ", " + a[9] + ", " + a[10] + ", " + a[11] + ", " + a[12] + ", " + a[13] + ", " + a[14] + ", " + a[15] + ")"; -} -/** - * Returns Frobenius norm of a mat4 - * - * @param {ReadonlyMat4} a the matrix to calculate Frobenius norm of - * @returns {Number} Frobenius norm - */ - -export function frob(a) { - return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11], a[12], a[13], a[14], a[15]); -} -/** - * Adds two mat4's - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the first operand - * @param {ReadonlyMat4} b the second operand - * @returns {mat4} out - */ - -export function add(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - out[3] = a[3] + b[3]; - out[4] = a[4] + b[4]; - out[5] = a[5] + b[5]; - out[6] = a[6] + b[6]; - out[7] = a[7] + b[7]; - out[8] = a[8] + b[8]; - out[9] = a[9] + b[9]; - out[10] = a[10] + b[10]; - out[11] = a[11] + b[11]; - out[12] = a[12] + b[12]; - out[13] = a[13] + b[13]; - out[14] = a[14] + b[14]; - out[15] = a[15] + b[15]; - return out; -} -/** - * Subtracts matrix b from matrix a - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the first operand - * @param {ReadonlyMat4} b the second operand - * @returns {mat4} out - */ - -export function subtract(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - out[2] = a[2] - b[2]; - out[3] = a[3] - b[3]; - out[4] = a[4] - b[4]; - out[5] = a[5] - b[5]; - out[6] = a[6] - b[6]; - out[7] = a[7] - b[7]; - out[8] = a[8] - b[8]; - out[9] = a[9] - b[9]; - out[10] = a[10] - b[10]; - out[11] = a[11] - b[11]; - out[12] = a[12] - b[12]; - out[13] = a[13] - b[13]; - out[14] = a[14] - b[14]; - out[15] = a[15] - b[15]; - return out; -} -/** - * Multiply each element of the matrix by a scalar. - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to scale - * @param {Number} b amount to scale the matrix's elements by - * @returns {mat4} out - */ - -export function multiplyScalar(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - out[3] = a[3] * b; - out[4] = a[4] * b; - out[5] = a[5] * b; - out[6] = a[6] * b; - out[7] = a[7] * b; - out[8] = a[8] * b; - out[9] = a[9] * b; - out[10] = a[10] * b; - out[11] = a[11] * b; - out[12] = a[12] * b; - out[13] = a[13] * b; - out[14] = a[14] * b; - out[15] = a[15] * b; - return out; -} -/** - * Adds two mat4's after multiplying each element of the second operand by a scalar value. - * - * @param {mat4} out the receiving vector - * @param {ReadonlyMat4} a the first operand - * @param {ReadonlyMat4} b the second operand - * @param {Number} scale the amount to scale b's elements by before adding - * @returns {mat4} out - */ - -export function multiplyScalarAndAdd(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - out[2] = a[2] + b[2] * scale; - out[3] = a[3] + b[3] * scale; - out[4] = a[4] + b[4] * scale; - out[5] = a[5] + b[5] * scale; - out[6] = a[6] + b[6] * scale; - out[7] = a[7] + b[7] * scale; - out[8] = a[8] + b[8] * scale; - out[9] = a[9] + b[9] * scale; - out[10] = a[10] + b[10] * scale; - out[11] = a[11] + b[11] * scale; - out[12] = a[12] + b[12] * scale; - out[13] = a[13] + b[13] * scale; - out[14] = a[14] + b[14] * scale; - out[15] = a[15] + b[15] * scale; - return out; -} -/** - * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyMat4} a The first matrix. - * @param {ReadonlyMat4} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - -export function exactEquals(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7] && a[8] === b[8] && a[9] === b[9] && a[10] === b[10] && a[11] === b[11] && a[12] === b[12] && a[13] === b[13] && a[14] === b[14] && a[15] === b[15]; -} -/** - * Returns whether or not the matrices have approximately the same elements in the same position. - * - * @param {ReadonlyMat4} a The first matrix. - * @param {ReadonlyMat4} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - -export function equals(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var a4 = a[4], - a5 = a[5], - a6 = a[6], - a7 = a[7]; - var a8 = a[8], - a9 = a[9], - a10 = a[10], - a11 = a[11]; - var a12 = a[12], - a13 = a[13], - a14 = a[14], - a15 = a[15]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3]; - var b4 = b[4], - b5 = b[5], - b6 = b[6], - b7 = b[7]; - var b8 = b[8], - b9 = b[9], - b10 = b[10], - b11 = b[11]; - var b12 = b[12], - b13 = b[13], - b14 = b[14], - b15 = b[15]; - return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a7), Math.abs(b7)) && Math.abs(a8 - b8) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a8), Math.abs(b8)) && Math.abs(a9 - b9) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a9), Math.abs(b9)) && Math.abs(a10 - b10) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a10), Math.abs(b10)) && Math.abs(a11 - b11) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a11), Math.abs(b11)) && Math.abs(a12 - b12) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a12), Math.abs(b12)) && Math.abs(a13 - b13) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a13), Math.abs(b13)) && Math.abs(a14 - b14) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a14), Math.abs(b14)) && Math.abs(a15 - b15) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a15), Math.abs(b15)); -} -/** - * Alias for {@link mat4.multiply} - * @function - */ - -export var mul = multiply; -/** - * Alias for {@link mat4.subtract} - * @function - */ - -export var sub = subtract; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/esm/quat.js b/build_vtk_bundle/node_modules/gl-matrix/esm/quat.js deleted file mode 100755 index 9c13f1a8..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/esm/quat.js +++ /dev/null @@ -1,710 +0,0 @@ -import * as glMatrix from "./common.js"; -import * as mat3 from "./mat3.js"; -import * as vec3 from "./vec3.js"; -import * as vec4 from "./vec4.js"; -/** - * Quaternion - * @module quat - */ - -/** - * Creates a new identity quat - * - * @returns {quat} a new quaternion - */ - -export function create() { - var out = new glMatrix.ARRAY_TYPE(4); - - if (glMatrix.ARRAY_TYPE != Float32Array) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - } - - out[3] = 1; - return out; -} -/** - * Set a quat to the identity quaternion - * - * @param {quat} out the receiving quaternion - * @returns {quat} out - */ - -export function identity(out) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - out[3] = 1; - return out; -} -/** - * Sets a quat from the given angle and rotation axis, - * then returns it. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyVec3} axis the axis around which to rotate - * @param {Number} rad the angle in radians - * @returns {quat} out - **/ - -export function setAxisAngle(out, axis, rad) { - rad = rad * 0.5; - var s = Math.sin(rad); - out[0] = s * axis[0]; - out[1] = s * axis[1]; - out[2] = s * axis[2]; - out[3] = Math.cos(rad); - return out; -} -/** - * Gets the rotation axis and angle for a given - * quaternion. If a quaternion is created with - * setAxisAngle, this method will return the same - * values as providied in the original parameter list - * OR functionally equivalent values. - * Example: The quaternion formed by axis [0, 0, 1] and - * angle -90 is the same as the quaternion formed by - * [0, 0, 1] and 270. This method favors the latter. - * @param {vec3} out_axis Vector receiving the axis of rotation - * @param {ReadonlyQuat} q Quaternion to be decomposed - * @return {Number} Angle, in radians, of the rotation - */ - -export function getAxisAngle(out_axis, q) { - var rad = Math.acos(q[3]) * 2.0; - var s = Math.sin(rad / 2.0); - - if (s > glMatrix.EPSILON) { - out_axis[0] = q[0] / s; - out_axis[1] = q[1] / s; - out_axis[2] = q[2] / s; - } else { - // If s is zero, return any axis (no rotation - axis does not matter) - out_axis[0] = 1; - out_axis[1] = 0; - out_axis[2] = 0; - } - - return rad; -} -/** - * Gets the angular distance between two unit quaternions - * - * @param {ReadonlyQuat} a Origin unit quaternion - * @param {ReadonlyQuat} b Destination unit quaternion - * @return {Number} Angle, in radians, between the two quaternions - */ - -export function getAngle(a, b) { - var dotproduct = dot(a, b); - return Math.acos(2 * dotproduct * dotproduct - 1); -} -/** - * Multiplies two quat's - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @returns {quat} out - */ - -export function multiply(out, a, b) { - var ax = a[0], - ay = a[1], - az = a[2], - aw = a[3]; - var bx = b[0], - by = b[1], - bz = b[2], - bw = b[3]; - out[0] = ax * bw + aw * bx + ay * bz - az * by; - out[1] = ay * bw + aw * by + az * bx - ax * bz; - out[2] = az * bw + aw * bz + ax * by - ay * bx; - out[3] = aw * bw - ax * bx - ay * by - az * bz; - return out; -} -/** - * Rotates a quaternion by the given angle about the X axis - * - * @param {quat} out quat receiving operation result - * @param {ReadonlyQuat} a quat to rotate - * @param {number} rad angle (in radians) to rotate - * @returns {quat} out - */ - -export function rotateX(out, a, rad) { - rad *= 0.5; - var ax = a[0], - ay = a[1], - az = a[2], - aw = a[3]; - var bx = Math.sin(rad), - bw = Math.cos(rad); - out[0] = ax * bw + aw * bx; - out[1] = ay * bw + az * bx; - out[2] = az * bw - ay * bx; - out[3] = aw * bw - ax * bx; - return out; -} -/** - * Rotates a quaternion by the given angle about the Y axis - * - * @param {quat} out quat receiving operation result - * @param {ReadonlyQuat} a quat to rotate - * @param {number} rad angle (in radians) to rotate - * @returns {quat} out - */ - -export function rotateY(out, a, rad) { - rad *= 0.5; - var ax = a[0], - ay = a[1], - az = a[2], - aw = a[3]; - var by = Math.sin(rad), - bw = Math.cos(rad); - out[0] = ax * bw - az * by; - out[1] = ay * bw + aw * by; - out[2] = az * bw + ax * by; - out[3] = aw * bw - ay * by; - return out; -} -/** - * Rotates a quaternion by the given angle about the Z axis - * - * @param {quat} out quat receiving operation result - * @param {ReadonlyQuat} a quat to rotate - * @param {number} rad angle (in radians) to rotate - * @returns {quat} out - */ - -export function rotateZ(out, a, rad) { - rad *= 0.5; - var ax = a[0], - ay = a[1], - az = a[2], - aw = a[3]; - var bz = Math.sin(rad), - bw = Math.cos(rad); - out[0] = ax * bw + ay * bz; - out[1] = ay * bw - ax * bz; - out[2] = az * bw + aw * bz; - out[3] = aw * bw - az * bz; - return out; -} -/** - * Calculates the W component of a quat from the X, Y, and Z components. - * Assumes that quaternion is 1 unit in length. - * Any existing W component will be ignored. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate W component of - * @returns {quat} out - */ - -export function calculateW(out, a) { - var x = a[0], - y = a[1], - z = a[2]; - out[0] = x; - out[1] = y; - out[2] = z; - out[3] = Math.sqrt(Math.abs(1.0 - x * x - y * y - z * z)); - return out; -} -/** - * Calculate the exponential of a unit quaternion. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate the exponential of - * @returns {quat} out - */ - -export function exp(out, a) { - var x = a[0], - y = a[1], - z = a[2], - w = a[3]; - var r = Math.sqrt(x * x + y * y + z * z); - var et = Math.exp(w); - var s = r > 0 ? et * Math.sin(r) / r : 0; - out[0] = x * s; - out[1] = y * s; - out[2] = z * s; - out[3] = et * Math.cos(r); - return out; -} -/** - * Calculate the natural logarithm of a unit quaternion. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate the exponential of - * @returns {quat} out - */ - -export function ln(out, a) { - var x = a[0], - y = a[1], - z = a[2], - w = a[3]; - var r = Math.sqrt(x * x + y * y + z * z); - var t = r > 0 ? Math.atan2(r, w) / r : 0; - out[0] = x * t; - out[1] = y * t; - out[2] = z * t; - out[3] = 0.5 * Math.log(x * x + y * y + z * z + w * w); - return out; -} -/** - * Calculate the scalar power of a unit quaternion. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate the exponential of - * @param {Number} b amount to scale the quaternion by - * @returns {quat} out - */ - -export function pow(out, a, b) { - ln(out, a); - scale(out, out, b); - exp(out, out); - return out; -} -/** - * Performs a spherical linear interpolation between two quat - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {quat} out - */ - -export function slerp(out, a, b, t) { - // benchmarks: - // http://jsperf.com/quaternion-slerp-implementations - var ax = a[0], - ay = a[1], - az = a[2], - aw = a[3]; - var bx = b[0], - by = b[1], - bz = b[2], - bw = b[3]; - var omega, cosom, sinom, scale0, scale1; // calc cosine - - cosom = ax * bx + ay * by + az * bz + aw * bw; // adjust signs (if necessary) - - if (cosom < 0.0) { - cosom = -cosom; - bx = -bx; - by = -by; - bz = -bz; - bw = -bw; - } // calculate coefficients - - - if (1.0 - cosom > glMatrix.EPSILON) { - // standard case (slerp) - omega = Math.acos(cosom); - sinom = Math.sin(omega); - scale0 = Math.sin((1.0 - t) * omega) / sinom; - scale1 = Math.sin(t * omega) / sinom; - } else { - // "from" and "to" quaternions are very close - // ... so we can do a linear interpolation - scale0 = 1.0 - t; - scale1 = t; - } // calculate final values - - - out[0] = scale0 * ax + scale1 * bx; - out[1] = scale0 * ay + scale1 * by; - out[2] = scale0 * az + scale1 * bz; - out[3] = scale0 * aw + scale1 * bw; - return out; -} -/** - * Generates a random unit quaternion - * - * @param {quat} out the receiving quaternion - * @returns {quat} out - */ - -export function random(out) { - // Implementation of http://planning.cs.uiuc.edu/node198.html - // TODO: Calling random 3 times is probably not the fastest solution - var u1 = glMatrix.RANDOM(); - var u2 = glMatrix.RANDOM(); - var u3 = glMatrix.RANDOM(); - var sqrt1MinusU1 = Math.sqrt(1 - u1); - var sqrtU1 = Math.sqrt(u1); - out[0] = sqrt1MinusU1 * Math.sin(2.0 * Math.PI * u2); - out[1] = sqrt1MinusU1 * Math.cos(2.0 * Math.PI * u2); - out[2] = sqrtU1 * Math.sin(2.0 * Math.PI * u3); - out[3] = sqrtU1 * Math.cos(2.0 * Math.PI * u3); - return out; -} -/** - * Calculates the inverse of a quat - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate inverse of - * @returns {quat} out - */ - -export function invert(out, a) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var dot = a0 * a0 + a1 * a1 + a2 * a2 + a3 * a3; - var invDot = dot ? 1.0 / dot : 0; // TODO: Would be faster to return [0,0,0,0] immediately if dot == 0 - - out[0] = -a0 * invDot; - out[1] = -a1 * invDot; - out[2] = -a2 * invDot; - out[3] = a3 * invDot; - return out; -} -/** - * Calculates the conjugate of a quat - * If the quaternion is normalized, this function is faster than quat.inverse and produces the same result. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate conjugate of - * @returns {quat} out - */ - -export function conjugate(out, a) { - out[0] = -a[0]; - out[1] = -a[1]; - out[2] = -a[2]; - out[3] = a[3]; - return out; -} -/** - * Creates a quaternion from the given 3x3 rotation matrix. - * - * NOTE: The resultant quaternion is not normalized, so you should be sure - * to renormalize the quaternion yourself where necessary. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyMat3} m rotation matrix - * @returns {quat} out - * @function - */ - -export function fromMat3(out, m) { - // Algorithm in Ken Shoemake's article in 1987 SIGGRAPH course notes - // article "Quaternion Calculus and Fast Animation". - var fTrace = m[0] + m[4] + m[8]; - var fRoot; - - if (fTrace > 0.0) { - // |w| > 1/2, may as well choose w > 1/2 - fRoot = Math.sqrt(fTrace + 1.0); // 2w - - out[3] = 0.5 * fRoot; - fRoot = 0.5 / fRoot; // 1/(4w) - - out[0] = (m[5] - m[7]) * fRoot; - out[1] = (m[6] - m[2]) * fRoot; - out[2] = (m[1] - m[3]) * fRoot; - } else { - // |w| <= 1/2 - var i = 0; - if (m[4] > m[0]) i = 1; - if (m[8] > m[i * 3 + i]) i = 2; - var j = (i + 1) % 3; - var k = (i + 2) % 3; - fRoot = Math.sqrt(m[i * 3 + i] - m[j * 3 + j] - m[k * 3 + k] + 1.0); - out[i] = 0.5 * fRoot; - fRoot = 0.5 / fRoot; - out[3] = (m[j * 3 + k] - m[k * 3 + j]) * fRoot; - out[j] = (m[j * 3 + i] + m[i * 3 + j]) * fRoot; - out[k] = (m[k * 3 + i] + m[i * 3 + k]) * fRoot; - } - - return out; -} -/** - * Creates a quaternion from the given euler angle x, y, z. - * - * @param {quat} out the receiving quaternion - * @param {x} Angle to rotate around X axis in degrees. - * @param {y} Angle to rotate around Y axis in degrees. - * @param {z} Angle to rotate around Z axis in degrees. - * @returns {quat} out - * @function - */ - -export function fromEuler(out, x, y, z) { - var halfToRad = 0.5 * Math.PI / 180.0; - x *= halfToRad; - y *= halfToRad; - z *= halfToRad; - var sx = Math.sin(x); - var cx = Math.cos(x); - var sy = Math.sin(y); - var cy = Math.cos(y); - var sz = Math.sin(z); - var cz = Math.cos(z); - out[0] = sx * cy * cz - cx * sy * sz; - out[1] = cx * sy * cz + sx * cy * sz; - out[2] = cx * cy * sz - sx * sy * cz; - out[3] = cx * cy * cz + sx * sy * sz; - return out; -} -/** - * Returns a string representation of a quatenion - * - * @param {ReadonlyQuat} a vector to represent as a string - * @returns {String} string representation of the vector - */ - -export function str(a) { - return "quat(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ")"; -} -/** - * Creates a new quat initialized with values from an existing quaternion - * - * @param {ReadonlyQuat} a quaternion to clone - * @returns {quat} a new quaternion - * @function - */ - -export var clone = vec4.clone; -/** - * Creates a new quat initialized with the given values - * - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @param {Number} w W component - * @returns {quat} a new quaternion - * @function - */ - -export var fromValues = vec4.fromValues; -/** - * Copy the values from one quat to another - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the source quaternion - * @returns {quat} out - * @function - */ - -export var copy = vec4.copy; -/** - * Set the components of a quat to the given values - * - * @param {quat} out the receiving quaternion - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @param {Number} w W component - * @returns {quat} out - * @function - */ - -export var set = vec4.set; -/** - * Adds two quat's - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @returns {quat} out - * @function - */ - -export var add = vec4.add; -/** - * Alias for {@link quat.multiply} - * @function - */ - -export var mul = multiply; -/** - * Scales a quat by a scalar number - * - * @param {quat} out the receiving vector - * @param {ReadonlyQuat} a the vector to scale - * @param {Number} b amount to scale the vector by - * @returns {quat} out - * @function - */ - -export var scale = vec4.scale; -/** - * Calculates the dot product of two quat's - * - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @returns {Number} dot product of a and b - * @function - */ - -export var dot = vec4.dot; -/** - * Performs a linear interpolation between two quat's - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {quat} out - * @function - */ - -export var lerp = vec4.lerp; -/** - * Calculates the length of a quat - * - * @param {ReadonlyQuat} a vector to calculate length of - * @returns {Number} length of a - */ - -export var length = vec4.length; -/** - * Alias for {@link quat.length} - * @function - */ - -export var len = length; -/** - * Calculates the squared length of a quat - * - * @param {ReadonlyQuat} a vector to calculate squared length of - * @returns {Number} squared length of a - * @function - */ - -export var squaredLength = vec4.squaredLength; -/** - * Alias for {@link quat.squaredLength} - * @function - */ - -export var sqrLen = squaredLength; -/** - * Normalize a quat - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quaternion to normalize - * @returns {quat} out - * @function - */ - -export var normalize = vec4.normalize; -/** - * Returns whether or not the quaternions have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyQuat} a The first quaternion. - * @param {ReadonlyQuat} b The second quaternion. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - -export var exactEquals = vec4.exactEquals; -/** - * Returns whether or not the quaternions have approximately the same elements in the same position. - * - * @param {ReadonlyQuat} a The first vector. - * @param {ReadonlyQuat} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - -export var equals = vec4.equals; -/** - * Sets a quaternion to represent the shortest rotation from one - * vector to another. - * - * Both vectors are assumed to be unit length. - * - * @param {quat} out the receiving quaternion. - * @param {ReadonlyVec3} a the initial vector - * @param {ReadonlyVec3} b the destination vector - * @returns {quat} out - */ - -export var rotationTo = function () { - var tmpvec3 = vec3.create(); - var xUnitVec3 = vec3.fromValues(1, 0, 0); - var yUnitVec3 = vec3.fromValues(0, 1, 0); - return function (out, a, b) { - var dot = vec3.dot(a, b); - - if (dot < -0.999999) { - vec3.cross(tmpvec3, xUnitVec3, a); - if (vec3.len(tmpvec3) < 0.000001) vec3.cross(tmpvec3, yUnitVec3, a); - vec3.normalize(tmpvec3, tmpvec3); - setAxisAngle(out, tmpvec3, Math.PI); - return out; - } else if (dot > 0.999999) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - out[3] = 1; - return out; - } else { - vec3.cross(tmpvec3, a, b); - out[0] = tmpvec3[0]; - out[1] = tmpvec3[1]; - out[2] = tmpvec3[2]; - out[3] = 1 + dot; - return normalize(out, out); - } - }; -}(); -/** - * Performs a spherical linear interpolation with two control points - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @param {ReadonlyQuat} c the third operand - * @param {ReadonlyQuat} d the fourth operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {quat} out - */ - -export var sqlerp = function () { - var temp1 = create(); - var temp2 = create(); - return function (out, a, b, c, d, t) { - slerp(temp1, a, d, t); - slerp(temp2, b, c, t); - slerp(out, temp1, temp2, 2 * t * (1 - t)); - return out; - }; -}(); -/** - * Sets the specified quaternion with values corresponding to the given - * axes. Each axis is a vec3 and is expected to be unit length and - * perpendicular to all other specified axes. - * - * @param {ReadonlyVec3} view the vector representing the viewing direction - * @param {ReadonlyVec3} right the vector representing the local "right" direction - * @param {ReadonlyVec3} up the vector representing the local "up" direction - * @returns {quat} out - */ - -export var setAxes = function () { - var matr = mat3.create(); - return function (out, view, right, up) { - matr[0] = right[0]; - matr[3] = right[1]; - matr[6] = right[2]; - matr[1] = up[0]; - matr[4] = up[1]; - matr[7] = up[2]; - matr[2] = -view[0]; - matr[5] = -view[1]; - matr[8] = -view[2]; - return normalize(out, fromMat3(out, matr)); - }; -}(); \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/esm/quat2.js b/build_vtk_bundle/node_modules/gl-matrix/esm/quat2.js deleted file mode 100755 index ff732d0e..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/esm/quat2.js +++ /dev/null @@ -1,835 +0,0 @@ -import * as glMatrix from "./common.js"; -import * as quat from "./quat.js"; -import * as mat4 from "./mat4.js"; -/** - * Dual Quaternion
- * Format: [real, dual]
- * Quaternion format: XYZW
- * Make sure to have normalized dual quaternions, otherwise the functions may not work as intended.
- * @module quat2 - */ - -/** - * Creates a new identity dual quat - * - * @returns {quat2} a new dual quaternion [real -> rotation, dual -> translation] - */ - -export function create() { - var dq = new glMatrix.ARRAY_TYPE(8); - - if (glMatrix.ARRAY_TYPE != Float32Array) { - dq[0] = 0; - dq[1] = 0; - dq[2] = 0; - dq[4] = 0; - dq[5] = 0; - dq[6] = 0; - dq[7] = 0; - } - - dq[3] = 1; - return dq; -} -/** - * Creates a new quat initialized with values from an existing quaternion - * - * @param {ReadonlyQuat2} a dual quaternion to clone - * @returns {quat2} new dual quaternion - * @function - */ - -export function clone(a) { - var dq = new glMatrix.ARRAY_TYPE(8); - dq[0] = a[0]; - dq[1] = a[1]; - dq[2] = a[2]; - dq[3] = a[3]; - dq[4] = a[4]; - dq[5] = a[5]; - dq[6] = a[6]; - dq[7] = a[7]; - return dq; -} -/** - * Creates a new dual quat initialized with the given values - * - * @param {Number} x1 X component - * @param {Number} y1 Y component - * @param {Number} z1 Z component - * @param {Number} w1 W component - * @param {Number} x2 X component - * @param {Number} y2 Y component - * @param {Number} z2 Z component - * @param {Number} w2 W component - * @returns {quat2} new dual quaternion - * @function - */ - -export function fromValues(x1, y1, z1, w1, x2, y2, z2, w2) { - var dq = new glMatrix.ARRAY_TYPE(8); - dq[0] = x1; - dq[1] = y1; - dq[2] = z1; - dq[3] = w1; - dq[4] = x2; - dq[5] = y2; - dq[6] = z2; - dq[7] = w2; - return dq; -} -/** - * Creates a new dual quat from the given values (quat and translation) - * - * @param {Number} x1 X component - * @param {Number} y1 Y component - * @param {Number} z1 Z component - * @param {Number} w1 W component - * @param {Number} x2 X component (translation) - * @param {Number} y2 Y component (translation) - * @param {Number} z2 Z component (translation) - * @returns {quat2} new dual quaternion - * @function - */ - -export function fromRotationTranslationValues(x1, y1, z1, w1, x2, y2, z2) { - var dq = new glMatrix.ARRAY_TYPE(8); - dq[0] = x1; - dq[1] = y1; - dq[2] = z1; - dq[3] = w1; - var ax = x2 * 0.5, - ay = y2 * 0.5, - az = z2 * 0.5; - dq[4] = ax * w1 + ay * z1 - az * y1; - dq[5] = ay * w1 + az * x1 - ax * z1; - dq[6] = az * w1 + ax * y1 - ay * x1; - dq[7] = -ax * x1 - ay * y1 - az * z1; - return dq; -} -/** - * Creates a dual quat from a quaternion and a translation - * - * @param {ReadonlyQuat2} dual quaternion receiving operation result - * @param {ReadonlyQuat} q a normalized quaternion - * @param {ReadonlyVec3} t tranlation vector - * @returns {quat2} dual quaternion receiving operation result - * @function - */ - -export function fromRotationTranslation(out, q, t) { - var ax = t[0] * 0.5, - ay = t[1] * 0.5, - az = t[2] * 0.5, - bx = q[0], - by = q[1], - bz = q[2], - bw = q[3]; - out[0] = bx; - out[1] = by; - out[2] = bz; - out[3] = bw; - out[4] = ax * bw + ay * bz - az * by; - out[5] = ay * bw + az * bx - ax * bz; - out[6] = az * bw + ax * by - ay * bx; - out[7] = -ax * bx - ay * by - az * bz; - return out; -} -/** - * Creates a dual quat from a translation - * - * @param {ReadonlyQuat2} dual quaternion receiving operation result - * @param {ReadonlyVec3} t translation vector - * @returns {quat2} dual quaternion receiving operation result - * @function - */ - -export function fromTranslation(out, t) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - out[3] = 1; - out[4] = t[0] * 0.5; - out[5] = t[1] * 0.5; - out[6] = t[2] * 0.5; - out[7] = 0; - return out; -} -/** - * Creates a dual quat from a quaternion - * - * @param {ReadonlyQuat2} dual quaternion receiving operation result - * @param {ReadonlyQuat} q the quaternion - * @returns {quat2} dual quaternion receiving operation result - * @function - */ - -export function fromRotation(out, q) { - out[0] = q[0]; - out[1] = q[1]; - out[2] = q[2]; - out[3] = q[3]; - out[4] = 0; - out[5] = 0; - out[6] = 0; - out[7] = 0; - return out; -} -/** - * Creates a new dual quat from a matrix (4x4) - * - * @param {quat2} out the dual quaternion - * @param {ReadonlyMat4} a the matrix - * @returns {quat2} dual quat receiving operation result - * @function - */ - -export function fromMat4(out, a) { - //TODO Optimize this - var outer = quat.create(); - mat4.getRotation(outer, a); - var t = new glMatrix.ARRAY_TYPE(3); - mat4.getTranslation(t, a); - fromRotationTranslation(out, outer, t); - return out; -} -/** - * Copy the values from one dual quat to another - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the source dual quaternion - * @returns {quat2} out - * @function - */ - -export function copy(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - out[6] = a[6]; - out[7] = a[7]; - return out; -} -/** - * Set a dual quat to the identity dual quaternion - * - * @param {quat2} out the receiving quaternion - * @returns {quat2} out - */ - -export function identity(out) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - out[3] = 1; - out[4] = 0; - out[5] = 0; - out[6] = 0; - out[7] = 0; - return out; -} -/** - * Set the components of a dual quat to the given values - * - * @param {quat2} out the receiving quaternion - * @param {Number} x1 X component - * @param {Number} y1 Y component - * @param {Number} z1 Z component - * @param {Number} w1 W component - * @param {Number} x2 X component - * @param {Number} y2 Y component - * @param {Number} z2 Z component - * @param {Number} w2 W component - * @returns {quat2} out - * @function - */ - -export function set(out, x1, y1, z1, w1, x2, y2, z2, w2) { - out[0] = x1; - out[1] = y1; - out[2] = z1; - out[3] = w1; - out[4] = x2; - out[5] = y2; - out[6] = z2; - out[7] = w2; - return out; -} -/** - * Gets the real part of a dual quat - * @param {quat} out real part - * @param {ReadonlyQuat2} a Dual Quaternion - * @return {quat} real part - */ - -export var getReal = quat.copy; -/** - * Gets the dual part of a dual quat - * @param {quat} out dual part - * @param {ReadonlyQuat2} a Dual Quaternion - * @return {quat} dual part - */ - -export function getDual(out, a) { - out[0] = a[4]; - out[1] = a[5]; - out[2] = a[6]; - out[3] = a[7]; - return out; -} -/** - * Set the real component of a dual quat to the given quaternion - * - * @param {quat2} out the receiving quaternion - * @param {ReadonlyQuat} q a quaternion representing the real part - * @returns {quat2} out - * @function - */ - -export var setReal = quat.copy; -/** - * Set the dual component of a dual quat to the given quaternion - * - * @param {quat2} out the receiving quaternion - * @param {ReadonlyQuat} q a quaternion representing the dual part - * @returns {quat2} out - * @function - */ - -export function setDual(out, q) { - out[4] = q[0]; - out[5] = q[1]; - out[6] = q[2]; - out[7] = q[3]; - return out; -} -/** - * Gets the translation of a normalized dual quat - * @param {vec3} out translation - * @param {ReadonlyQuat2} a Dual Quaternion to be decomposed - * @return {vec3} translation - */ - -export function getTranslation(out, a) { - var ax = a[4], - ay = a[5], - az = a[6], - aw = a[7], - bx = -a[0], - by = -a[1], - bz = -a[2], - bw = a[3]; - out[0] = (ax * bw + aw * bx + ay * bz - az * by) * 2; - out[1] = (ay * bw + aw * by + az * bx - ax * bz) * 2; - out[2] = (az * bw + aw * bz + ax * by - ay * bx) * 2; - return out; -} -/** - * Translates a dual quat by the given vector - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to translate - * @param {ReadonlyVec3} v vector to translate by - * @returns {quat2} out - */ - -export function translate(out, a, v) { - var ax1 = a[0], - ay1 = a[1], - az1 = a[2], - aw1 = a[3], - bx1 = v[0] * 0.5, - by1 = v[1] * 0.5, - bz1 = v[2] * 0.5, - ax2 = a[4], - ay2 = a[5], - az2 = a[6], - aw2 = a[7]; - out[0] = ax1; - out[1] = ay1; - out[2] = az1; - out[3] = aw1; - out[4] = aw1 * bx1 + ay1 * bz1 - az1 * by1 + ax2; - out[5] = aw1 * by1 + az1 * bx1 - ax1 * bz1 + ay2; - out[6] = aw1 * bz1 + ax1 * by1 - ay1 * bx1 + az2; - out[7] = -ax1 * bx1 - ay1 * by1 - az1 * bz1 + aw2; - return out; -} -/** - * Rotates a dual quat around the X axis - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @param {number} rad how far should the rotation be - * @returns {quat2} out - */ - -export function rotateX(out, a, rad) { - var bx = -a[0], - by = -a[1], - bz = -a[2], - bw = a[3], - ax = a[4], - ay = a[5], - az = a[6], - aw = a[7], - ax1 = ax * bw + aw * bx + ay * bz - az * by, - ay1 = ay * bw + aw * by + az * bx - ax * bz, - az1 = az * bw + aw * bz + ax * by - ay * bx, - aw1 = aw * bw - ax * bx - ay * by - az * bz; - quat.rotateX(out, a, rad); - bx = out[0]; - by = out[1]; - bz = out[2]; - bw = out[3]; - out[4] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by; - out[5] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz; - out[6] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx; - out[7] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz; - return out; -} -/** - * Rotates a dual quat around the Y axis - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @param {number} rad how far should the rotation be - * @returns {quat2} out - */ - -export function rotateY(out, a, rad) { - var bx = -a[0], - by = -a[1], - bz = -a[2], - bw = a[3], - ax = a[4], - ay = a[5], - az = a[6], - aw = a[7], - ax1 = ax * bw + aw * bx + ay * bz - az * by, - ay1 = ay * bw + aw * by + az * bx - ax * bz, - az1 = az * bw + aw * bz + ax * by - ay * bx, - aw1 = aw * bw - ax * bx - ay * by - az * bz; - quat.rotateY(out, a, rad); - bx = out[0]; - by = out[1]; - bz = out[2]; - bw = out[3]; - out[4] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by; - out[5] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz; - out[6] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx; - out[7] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz; - return out; -} -/** - * Rotates a dual quat around the Z axis - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @param {number} rad how far should the rotation be - * @returns {quat2} out - */ - -export function rotateZ(out, a, rad) { - var bx = -a[0], - by = -a[1], - bz = -a[2], - bw = a[3], - ax = a[4], - ay = a[5], - az = a[6], - aw = a[7], - ax1 = ax * bw + aw * bx + ay * bz - az * by, - ay1 = ay * bw + aw * by + az * bx - ax * bz, - az1 = az * bw + aw * bz + ax * by - ay * bx, - aw1 = aw * bw - ax * bx - ay * by - az * bz; - quat.rotateZ(out, a, rad); - bx = out[0]; - by = out[1]; - bz = out[2]; - bw = out[3]; - out[4] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by; - out[5] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz; - out[6] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx; - out[7] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz; - return out; -} -/** - * Rotates a dual quat by a given quaternion (a * q) - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @param {ReadonlyQuat} q quaternion to rotate by - * @returns {quat2} out - */ - -export function rotateByQuatAppend(out, a, q) { - var qx = q[0], - qy = q[1], - qz = q[2], - qw = q[3], - ax = a[0], - ay = a[1], - az = a[2], - aw = a[3]; - out[0] = ax * qw + aw * qx + ay * qz - az * qy; - out[1] = ay * qw + aw * qy + az * qx - ax * qz; - out[2] = az * qw + aw * qz + ax * qy - ay * qx; - out[3] = aw * qw - ax * qx - ay * qy - az * qz; - ax = a[4]; - ay = a[5]; - az = a[6]; - aw = a[7]; - out[4] = ax * qw + aw * qx + ay * qz - az * qy; - out[5] = ay * qw + aw * qy + az * qx - ax * qz; - out[6] = az * qw + aw * qz + ax * qy - ay * qx; - out[7] = aw * qw - ax * qx - ay * qy - az * qz; - return out; -} -/** - * Rotates a dual quat by a given quaternion (q * a) - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat} q quaternion to rotate by - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @returns {quat2} out - */ - -export function rotateByQuatPrepend(out, q, a) { - var qx = q[0], - qy = q[1], - qz = q[2], - qw = q[3], - bx = a[0], - by = a[1], - bz = a[2], - bw = a[3]; - out[0] = qx * bw + qw * bx + qy * bz - qz * by; - out[1] = qy * bw + qw * by + qz * bx - qx * bz; - out[2] = qz * bw + qw * bz + qx * by - qy * bx; - out[3] = qw * bw - qx * bx - qy * by - qz * bz; - bx = a[4]; - by = a[5]; - bz = a[6]; - bw = a[7]; - out[4] = qx * bw + qw * bx + qy * bz - qz * by; - out[5] = qy * bw + qw * by + qz * bx - qx * bz; - out[6] = qz * bw + qw * bz + qx * by - qy * bx; - out[7] = qw * bw - qx * bx - qy * by - qz * bz; - return out; -} -/** - * Rotates a dual quat around a given axis. Does the normalisation automatically - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @param {ReadonlyVec3} axis the axis to rotate around - * @param {Number} rad how far the rotation should be - * @returns {quat2} out - */ - -export function rotateAroundAxis(out, a, axis, rad) { - //Special case for rad = 0 - if (Math.abs(rad) < glMatrix.EPSILON) { - return copy(out, a); - } - - var axisLength = Math.hypot(axis[0], axis[1], axis[2]); - rad = rad * 0.5; - var s = Math.sin(rad); - var bx = s * axis[0] / axisLength; - var by = s * axis[1] / axisLength; - var bz = s * axis[2] / axisLength; - var bw = Math.cos(rad); - var ax1 = a[0], - ay1 = a[1], - az1 = a[2], - aw1 = a[3]; - out[0] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by; - out[1] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz; - out[2] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx; - out[3] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz; - var ax = a[4], - ay = a[5], - az = a[6], - aw = a[7]; - out[4] = ax * bw + aw * bx + ay * bz - az * by; - out[5] = ay * bw + aw * by + az * bx - ax * bz; - out[6] = az * bw + aw * bz + ax * by - ay * bx; - out[7] = aw * bw - ax * bx - ay * by - az * bz; - return out; -} -/** - * Adds two dual quat's - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the first operand - * @param {ReadonlyQuat2} b the second operand - * @returns {quat2} out - * @function - */ - -export function add(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - out[3] = a[3] + b[3]; - out[4] = a[4] + b[4]; - out[5] = a[5] + b[5]; - out[6] = a[6] + b[6]; - out[7] = a[7] + b[7]; - return out; -} -/** - * Multiplies two dual quat's - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the first operand - * @param {ReadonlyQuat2} b the second operand - * @returns {quat2} out - */ - -export function multiply(out, a, b) { - var ax0 = a[0], - ay0 = a[1], - az0 = a[2], - aw0 = a[3], - bx1 = b[4], - by1 = b[5], - bz1 = b[6], - bw1 = b[7], - ax1 = a[4], - ay1 = a[5], - az1 = a[6], - aw1 = a[7], - bx0 = b[0], - by0 = b[1], - bz0 = b[2], - bw0 = b[3]; - out[0] = ax0 * bw0 + aw0 * bx0 + ay0 * bz0 - az0 * by0; - out[1] = ay0 * bw0 + aw0 * by0 + az0 * bx0 - ax0 * bz0; - out[2] = az0 * bw0 + aw0 * bz0 + ax0 * by0 - ay0 * bx0; - out[3] = aw0 * bw0 - ax0 * bx0 - ay0 * by0 - az0 * bz0; - out[4] = ax0 * bw1 + aw0 * bx1 + ay0 * bz1 - az0 * by1 + ax1 * bw0 + aw1 * bx0 + ay1 * bz0 - az1 * by0; - out[5] = ay0 * bw1 + aw0 * by1 + az0 * bx1 - ax0 * bz1 + ay1 * bw0 + aw1 * by0 + az1 * bx0 - ax1 * bz0; - out[6] = az0 * bw1 + aw0 * bz1 + ax0 * by1 - ay0 * bx1 + az1 * bw0 + aw1 * bz0 + ax1 * by0 - ay1 * bx0; - out[7] = aw0 * bw1 - ax0 * bx1 - ay0 * by1 - az0 * bz1 + aw1 * bw0 - ax1 * bx0 - ay1 * by0 - az1 * bz0; - return out; -} -/** - * Alias for {@link quat2.multiply} - * @function - */ - -export var mul = multiply; -/** - * Scales a dual quat by a scalar number - * - * @param {quat2} out the receiving dual quat - * @param {ReadonlyQuat2} a the dual quat to scale - * @param {Number} b amount to scale the dual quat by - * @returns {quat2} out - * @function - */ - -export function scale(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - out[3] = a[3] * b; - out[4] = a[4] * b; - out[5] = a[5] * b; - out[6] = a[6] * b; - out[7] = a[7] * b; - return out; -} -/** - * Calculates the dot product of two dual quat's (The dot product of the real parts) - * - * @param {ReadonlyQuat2} a the first operand - * @param {ReadonlyQuat2} b the second operand - * @returns {Number} dot product of a and b - * @function - */ - -export var dot = quat.dot; -/** - * Performs a linear interpolation between two dual quats's - * NOTE: The resulting dual quaternions won't always be normalized (The error is most noticeable when t = 0.5) - * - * @param {quat2} out the receiving dual quat - * @param {ReadonlyQuat2} a the first operand - * @param {ReadonlyQuat2} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {quat2} out - */ - -export function lerp(out, a, b, t) { - var mt = 1 - t; - if (dot(a, b) < 0) t = -t; - out[0] = a[0] * mt + b[0] * t; - out[1] = a[1] * mt + b[1] * t; - out[2] = a[2] * mt + b[2] * t; - out[3] = a[3] * mt + b[3] * t; - out[4] = a[4] * mt + b[4] * t; - out[5] = a[5] * mt + b[5] * t; - out[6] = a[6] * mt + b[6] * t; - out[7] = a[7] * mt + b[7] * t; - return out; -} -/** - * Calculates the inverse of a dual quat. If they are normalized, conjugate is cheaper - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a dual quat to calculate inverse of - * @returns {quat2} out - */ - -export function invert(out, a) { - var sqlen = squaredLength(a); - out[0] = -a[0] / sqlen; - out[1] = -a[1] / sqlen; - out[2] = -a[2] / sqlen; - out[3] = a[3] / sqlen; - out[4] = -a[4] / sqlen; - out[5] = -a[5] / sqlen; - out[6] = -a[6] / sqlen; - out[7] = a[7] / sqlen; - return out; -} -/** - * Calculates the conjugate of a dual quat - * If the dual quaternion is normalized, this function is faster than quat2.inverse and produces the same result. - * - * @param {quat2} out the receiving quaternion - * @param {ReadonlyQuat2} a quat to calculate conjugate of - * @returns {quat2} out - */ - -export function conjugate(out, a) { - out[0] = -a[0]; - out[1] = -a[1]; - out[2] = -a[2]; - out[3] = a[3]; - out[4] = -a[4]; - out[5] = -a[5]; - out[6] = -a[6]; - out[7] = a[7]; - return out; -} -/** - * Calculates the length of a dual quat - * - * @param {ReadonlyQuat2} a dual quat to calculate length of - * @returns {Number} length of a - * @function - */ - -export var length = quat.length; -/** - * Alias for {@link quat2.length} - * @function - */ - -export var len = length; -/** - * Calculates the squared length of a dual quat - * - * @param {ReadonlyQuat2} a dual quat to calculate squared length of - * @returns {Number} squared length of a - * @function - */ - -export var squaredLength = quat.squaredLength; -/** - * Alias for {@link quat2.squaredLength} - * @function - */ - -export var sqrLen = squaredLength; -/** - * Normalize a dual quat - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a dual quaternion to normalize - * @returns {quat2} out - * @function - */ - -export function normalize(out, a) { - var magnitude = squaredLength(a); - - if (magnitude > 0) { - magnitude = Math.sqrt(magnitude); - var a0 = a[0] / magnitude; - var a1 = a[1] / magnitude; - var a2 = a[2] / magnitude; - var a3 = a[3] / magnitude; - var b0 = a[4]; - var b1 = a[5]; - var b2 = a[6]; - var b3 = a[7]; - var a_dot_b = a0 * b0 + a1 * b1 + a2 * b2 + a3 * b3; - out[0] = a0; - out[1] = a1; - out[2] = a2; - out[3] = a3; - out[4] = (b0 - a0 * a_dot_b) / magnitude; - out[5] = (b1 - a1 * a_dot_b) / magnitude; - out[6] = (b2 - a2 * a_dot_b) / magnitude; - out[7] = (b3 - a3 * a_dot_b) / magnitude; - } - - return out; -} -/** - * Returns a string representation of a dual quatenion - * - * @param {ReadonlyQuat2} a dual quaternion to represent as a string - * @returns {String} string representation of the dual quat - */ - -export function str(a) { - return "quat2(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ", " + a[6] + ", " + a[7] + ")"; -} -/** - * Returns whether or not the dual quaternions have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyQuat2} a the first dual quaternion. - * @param {ReadonlyQuat2} b the second dual quaternion. - * @returns {Boolean} true if the dual quaternions are equal, false otherwise. - */ - -export function exactEquals(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7]; -} -/** - * Returns whether or not the dual quaternions have approximately the same elements in the same position. - * - * @param {ReadonlyQuat2} a the first dual quat. - * @param {ReadonlyQuat2} b the second dual quat. - * @returns {Boolean} true if the dual quats are equal, false otherwise. - */ - -export function equals(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5], - a6 = a[6], - a7 = a[7]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3], - b4 = b[4], - b5 = b[5], - b6 = b[6], - b7 = b[7]; - return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a7), Math.abs(b7)); -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/esm/vec2.js b/build_vtk_bundle/node_modules/gl-matrix/esm/vec2.js deleted file mode 100755 index eca4b076..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/esm/vec2.js +++ /dev/null @@ -1,624 +0,0 @@ -import * as glMatrix from "./common.js"; -/** - * 2 Dimensional Vector - * @module vec2 - */ - -/** - * Creates a new, empty vec2 - * - * @returns {vec2} a new 2D vector - */ - -export function create() { - var out = new glMatrix.ARRAY_TYPE(2); - - if (glMatrix.ARRAY_TYPE != Float32Array) { - out[0] = 0; - out[1] = 0; - } - - return out; -} -/** - * Creates a new vec2 initialized with values from an existing vector - * - * @param {ReadonlyVec2} a vector to clone - * @returns {vec2} a new 2D vector - */ - -export function clone(a) { - var out = new glMatrix.ARRAY_TYPE(2); - out[0] = a[0]; - out[1] = a[1]; - return out; -} -/** - * Creates a new vec2 initialized with the given values - * - * @param {Number} x X component - * @param {Number} y Y component - * @returns {vec2} a new 2D vector - */ - -export function fromValues(x, y) { - var out = new glMatrix.ARRAY_TYPE(2); - out[0] = x; - out[1] = y; - return out; -} -/** - * Copy the values from one vec2 to another - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the source vector - * @returns {vec2} out - */ - -export function copy(out, a) { - out[0] = a[0]; - out[1] = a[1]; - return out; -} -/** - * Set the components of a vec2 to the given values - * - * @param {vec2} out the receiving vector - * @param {Number} x X component - * @param {Number} y Y component - * @returns {vec2} out - */ - -export function set(out, x, y) { - out[0] = x; - out[1] = y; - return out; -} -/** - * Adds two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - -export function add(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - return out; -} -/** - * Subtracts vector b from vector a - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - -export function subtract(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - return out; -} -/** - * Multiplies two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - -export function multiply(out, a, b) { - out[0] = a[0] * b[0]; - out[1] = a[1] * b[1]; - return out; -} -/** - * Divides two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - -export function divide(out, a, b) { - out[0] = a[0] / b[0]; - out[1] = a[1] / b[1]; - return out; -} -/** - * Math.ceil the components of a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to ceil - * @returns {vec2} out - */ - -export function ceil(out, a) { - out[0] = Math.ceil(a[0]); - out[1] = Math.ceil(a[1]); - return out; -} -/** - * Math.floor the components of a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to floor - * @returns {vec2} out - */ - -export function floor(out, a) { - out[0] = Math.floor(a[0]); - out[1] = Math.floor(a[1]); - return out; -} -/** - * Returns the minimum of two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - -export function min(out, a, b) { - out[0] = Math.min(a[0], b[0]); - out[1] = Math.min(a[1], b[1]); - return out; -} -/** - * Returns the maximum of two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - -export function max(out, a, b) { - out[0] = Math.max(a[0], b[0]); - out[1] = Math.max(a[1], b[1]); - return out; -} -/** - * Math.round the components of a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to round - * @returns {vec2} out - */ - -export function round(out, a) { - out[0] = Math.round(a[0]); - out[1] = Math.round(a[1]); - return out; -} -/** - * Scales a vec2 by a scalar number - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the vector to scale - * @param {Number} b amount to scale the vector by - * @returns {vec2} out - */ - -export function scale(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - return out; -} -/** - * Adds two vec2's after scaling the second operand by a scalar value - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @param {Number} scale the amount to scale b by before adding - * @returns {vec2} out - */ - -export function scaleAndAdd(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - return out; -} -/** - * Calculates the euclidian distance between two vec2's - * - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {Number} distance between a and b - */ - -export function distance(a, b) { - var x = b[0] - a[0], - y = b[1] - a[1]; - return Math.hypot(x, y); -} -/** - * Calculates the squared euclidian distance between two vec2's - * - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {Number} squared distance between a and b - */ - -export function squaredDistance(a, b) { - var x = b[0] - a[0], - y = b[1] - a[1]; - return x * x + y * y; -} -/** - * Calculates the length of a vec2 - * - * @param {ReadonlyVec2} a vector to calculate length of - * @returns {Number} length of a - */ - -export function length(a) { - var x = a[0], - y = a[1]; - return Math.hypot(x, y); -} -/** - * Calculates the squared length of a vec2 - * - * @param {ReadonlyVec2} a vector to calculate squared length of - * @returns {Number} squared length of a - */ - -export function squaredLength(a) { - var x = a[0], - y = a[1]; - return x * x + y * y; -} -/** - * Negates the components of a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to negate - * @returns {vec2} out - */ - -export function negate(out, a) { - out[0] = -a[0]; - out[1] = -a[1]; - return out; -} -/** - * Returns the inverse of the components of a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to invert - * @returns {vec2} out - */ - -export function inverse(out, a) { - out[0] = 1.0 / a[0]; - out[1] = 1.0 / a[1]; - return out; -} -/** - * Normalize a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to normalize - * @returns {vec2} out - */ - -export function normalize(out, a) { - var x = a[0], - y = a[1]; - var len = x * x + y * y; - - if (len > 0) { - //TODO: evaluate use of glm_invsqrt here? - len = 1 / Math.sqrt(len); - } - - out[0] = a[0] * len; - out[1] = a[1] * len; - return out; -} -/** - * Calculates the dot product of two vec2's - * - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {Number} dot product of a and b - */ - -export function dot(a, b) { - return a[0] * b[0] + a[1] * b[1]; -} -/** - * Computes the cross product of two vec2's - * Note that the cross product must by definition produce a 3D vector - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec3} out - */ - -export function cross(out, a, b) { - var z = a[0] * b[1] - a[1] * b[0]; - out[0] = out[1] = 0; - out[2] = z; - return out; -} -/** - * Performs a linear interpolation between two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {vec2} out - */ - -export function lerp(out, a, b, t) { - var ax = a[0], - ay = a[1]; - out[0] = ax + t * (b[0] - ax); - out[1] = ay + t * (b[1] - ay); - return out; -} -/** - * Generates a random vector with the given scale - * - * @param {vec2} out the receiving vector - * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned - * @returns {vec2} out - */ - -export function random(out, scale) { - scale = scale || 1.0; - var r = glMatrix.RANDOM() * 2.0 * Math.PI; - out[0] = Math.cos(r) * scale; - out[1] = Math.sin(r) * scale; - return out; -} -/** - * Transforms the vec2 with a mat2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the vector to transform - * @param {ReadonlyMat2} m matrix to transform with - * @returns {vec2} out - */ - -export function transformMat2(out, a, m) { - var x = a[0], - y = a[1]; - out[0] = m[0] * x + m[2] * y; - out[1] = m[1] * x + m[3] * y; - return out; -} -/** - * Transforms the vec2 with a mat2d - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the vector to transform - * @param {ReadonlyMat2d} m matrix to transform with - * @returns {vec2} out - */ - -export function transformMat2d(out, a, m) { - var x = a[0], - y = a[1]; - out[0] = m[0] * x + m[2] * y + m[4]; - out[1] = m[1] * x + m[3] * y + m[5]; - return out; -} -/** - * Transforms the vec2 with a mat3 - * 3rd vector component is implicitly '1' - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the vector to transform - * @param {ReadonlyMat3} m matrix to transform with - * @returns {vec2} out - */ - -export function transformMat3(out, a, m) { - var x = a[0], - y = a[1]; - out[0] = m[0] * x + m[3] * y + m[6]; - out[1] = m[1] * x + m[4] * y + m[7]; - return out; -} -/** - * Transforms the vec2 with a mat4 - * 3rd vector component is implicitly '0' - * 4th vector component is implicitly '1' - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the vector to transform - * @param {ReadonlyMat4} m matrix to transform with - * @returns {vec2} out - */ - -export function transformMat4(out, a, m) { - var x = a[0]; - var y = a[1]; - out[0] = m[0] * x + m[4] * y + m[12]; - out[1] = m[1] * x + m[5] * y + m[13]; - return out; -} -/** - * Rotate a 2D vector - * @param {vec2} out The receiving vec2 - * @param {ReadonlyVec2} a The vec2 point to rotate - * @param {ReadonlyVec2} b The origin of the rotation - * @param {Number} rad The angle of rotation in radians - * @returns {vec2} out - */ - -export function rotate(out, a, b, rad) { - //Translate point to the origin - var p0 = a[0] - b[0], - p1 = a[1] - b[1], - sinC = Math.sin(rad), - cosC = Math.cos(rad); //perform rotation and translate to correct position - - out[0] = p0 * cosC - p1 * sinC + b[0]; - out[1] = p0 * sinC + p1 * cosC + b[1]; - return out; -} -/** - * Get the angle between two 2D vectors - * @param {ReadonlyVec2} a The first operand - * @param {ReadonlyVec2} b The second operand - * @returns {Number} The angle in radians - */ - -export function angle(a, b) { - var x1 = a[0], - y1 = a[1], - x2 = b[0], - y2 = b[1], - // mag is the product of the magnitudes of a and b - mag = Math.sqrt(x1 * x1 + y1 * y1) * Math.sqrt(x2 * x2 + y2 * y2), - // mag &&.. short circuits if mag == 0 - cosine = mag && (x1 * x2 + y1 * y2) / mag; // Math.min(Math.max(cosine, -1), 1) clamps the cosine between -1 and 1 - - return Math.acos(Math.min(Math.max(cosine, -1), 1)); -} -/** - * Set the components of a vec2 to zero - * - * @param {vec2} out the receiving vector - * @returns {vec2} out - */ - -export function zero(out) { - out[0] = 0.0; - out[1] = 0.0; - return out; -} -/** - * Returns a string representation of a vector - * - * @param {ReadonlyVec2} a vector to represent as a string - * @returns {String} string representation of the vector - */ - -export function str(a) { - return "vec2(" + a[0] + ", " + a[1] + ")"; -} -/** - * Returns whether or not the vectors exactly have the same elements in the same position (when compared with ===) - * - * @param {ReadonlyVec2} a The first vector. - * @param {ReadonlyVec2} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - -export function exactEquals(a, b) { - return a[0] === b[0] && a[1] === b[1]; -} -/** - * Returns whether or not the vectors have approximately the same elements in the same position. - * - * @param {ReadonlyVec2} a The first vector. - * @param {ReadonlyVec2} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - -export function equals(a, b) { - var a0 = a[0], - a1 = a[1]; - var b0 = b[0], - b1 = b[1]; - return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)); -} -/** - * Alias for {@link vec2.length} - * @function - */ - -export var len = length; -/** - * Alias for {@link vec2.subtract} - * @function - */ - -export var sub = subtract; -/** - * Alias for {@link vec2.multiply} - * @function - */ - -export var mul = multiply; -/** - * Alias for {@link vec2.divide} - * @function - */ - -export var div = divide; -/** - * Alias for {@link vec2.distance} - * @function - */ - -export var dist = distance; -/** - * Alias for {@link vec2.squaredDistance} - * @function - */ - -export var sqrDist = squaredDistance; -/** - * Alias for {@link vec2.squaredLength} - * @function - */ - -export var sqrLen = squaredLength; -/** - * Perform some operation over an array of vec2s. - * - * @param {Array} a the array of vectors to iterate over - * @param {Number} stride Number of elements between the start of each vec2. If 0 assumes tightly packed - * @param {Number} offset Number of elements to skip at the beginning of the array - * @param {Number} count Number of vec2s to iterate over. If 0 iterates over entire array - * @param {Function} fn Function to call for each vector in the array - * @param {Object} [arg] additional argument to pass to fn - * @returns {Array} a - * @function - */ - -export var forEach = function () { - var vec = create(); - return function (a, stride, offset, count, fn, arg) { - var i, l; - - if (!stride) { - stride = 2; - } - - if (!offset) { - offset = 0; - } - - if (count) { - l = Math.min(count * stride + offset, a.length); - } else { - l = a.length; - } - - for (i = offset; i < l; i += stride) { - vec[0] = a[i]; - vec[1] = a[i + 1]; - fn(vec, vec, arg); - a[i] = vec[0]; - a[i + 1] = vec[1]; - } - - return a; - }; -}(); \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/esm/vec3.js b/build_vtk_bundle/node_modules/gl-matrix/esm/vec3.js deleted file mode 100755 index f5fc096e..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/esm/vec3.js +++ /dev/null @@ -1,787 +0,0 @@ -import * as glMatrix from "./common.js"; -/** - * 3 Dimensional Vector - * @module vec3 - */ - -/** - * Creates a new, empty vec3 - * - * @returns {vec3} a new 3D vector - */ - -export function create() { - var out = new glMatrix.ARRAY_TYPE(3); - - if (glMatrix.ARRAY_TYPE != Float32Array) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - } - - return out; -} -/** - * Creates a new vec3 initialized with values from an existing vector - * - * @param {ReadonlyVec3} a vector to clone - * @returns {vec3} a new 3D vector - */ - -export function clone(a) { - var out = new glMatrix.ARRAY_TYPE(3); - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - return out; -} -/** - * Calculates the length of a vec3 - * - * @param {ReadonlyVec3} a vector to calculate length of - * @returns {Number} length of a - */ - -export function length(a) { - var x = a[0]; - var y = a[1]; - var z = a[2]; - return Math.hypot(x, y, z); -} -/** - * Creates a new vec3 initialized with the given values - * - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @returns {vec3} a new 3D vector - */ - -export function fromValues(x, y, z) { - var out = new glMatrix.ARRAY_TYPE(3); - out[0] = x; - out[1] = y; - out[2] = z; - return out; -} -/** - * Copy the values from one vec3 to another - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the source vector - * @returns {vec3} out - */ - -export function copy(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - return out; -} -/** - * Set the components of a vec3 to the given values - * - * @param {vec3} out the receiving vector - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @returns {vec3} out - */ - -export function set(out, x, y, z) { - out[0] = x; - out[1] = y; - out[2] = z; - return out; -} -/** - * Adds two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - -export function add(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - return out; -} -/** - * Subtracts vector b from vector a - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - -export function subtract(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - out[2] = a[2] - b[2]; - return out; -} -/** - * Multiplies two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - -export function multiply(out, a, b) { - out[0] = a[0] * b[0]; - out[1] = a[1] * b[1]; - out[2] = a[2] * b[2]; - return out; -} -/** - * Divides two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - -export function divide(out, a, b) { - out[0] = a[0] / b[0]; - out[1] = a[1] / b[1]; - out[2] = a[2] / b[2]; - return out; -} -/** - * Math.ceil the components of a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to ceil - * @returns {vec3} out - */ - -export function ceil(out, a) { - out[0] = Math.ceil(a[0]); - out[1] = Math.ceil(a[1]); - out[2] = Math.ceil(a[2]); - return out; -} -/** - * Math.floor the components of a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to floor - * @returns {vec3} out - */ - -export function floor(out, a) { - out[0] = Math.floor(a[0]); - out[1] = Math.floor(a[1]); - out[2] = Math.floor(a[2]); - return out; -} -/** - * Returns the minimum of two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - -export function min(out, a, b) { - out[0] = Math.min(a[0], b[0]); - out[1] = Math.min(a[1], b[1]); - out[2] = Math.min(a[2], b[2]); - return out; -} -/** - * Returns the maximum of two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - -export function max(out, a, b) { - out[0] = Math.max(a[0], b[0]); - out[1] = Math.max(a[1], b[1]); - out[2] = Math.max(a[2], b[2]); - return out; -} -/** - * Math.round the components of a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to round - * @returns {vec3} out - */ - -export function round(out, a) { - out[0] = Math.round(a[0]); - out[1] = Math.round(a[1]); - out[2] = Math.round(a[2]); - return out; -} -/** - * Scales a vec3 by a scalar number - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the vector to scale - * @param {Number} b amount to scale the vector by - * @returns {vec3} out - */ - -export function scale(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - return out; -} -/** - * Adds two vec3's after scaling the second operand by a scalar value - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @param {Number} scale the amount to scale b by before adding - * @returns {vec3} out - */ - -export function scaleAndAdd(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - out[2] = a[2] + b[2] * scale; - return out; -} -/** - * Calculates the euclidian distance between two vec3's - * - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {Number} distance between a and b - */ - -export function distance(a, b) { - var x = b[0] - a[0]; - var y = b[1] - a[1]; - var z = b[2] - a[2]; - return Math.hypot(x, y, z); -} -/** - * Calculates the squared euclidian distance between two vec3's - * - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {Number} squared distance between a and b - */ - -export function squaredDistance(a, b) { - var x = b[0] - a[0]; - var y = b[1] - a[1]; - var z = b[2] - a[2]; - return x * x + y * y + z * z; -} -/** - * Calculates the squared length of a vec3 - * - * @param {ReadonlyVec3} a vector to calculate squared length of - * @returns {Number} squared length of a - */ - -export function squaredLength(a) { - var x = a[0]; - var y = a[1]; - var z = a[2]; - return x * x + y * y + z * z; -} -/** - * Negates the components of a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to negate - * @returns {vec3} out - */ - -export function negate(out, a) { - out[0] = -a[0]; - out[1] = -a[1]; - out[2] = -a[2]; - return out; -} -/** - * Returns the inverse of the components of a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to invert - * @returns {vec3} out - */ - -export function inverse(out, a) { - out[0] = 1.0 / a[0]; - out[1] = 1.0 / a[1]; - out[2] = 1.0 / a[2]; - return out; -} -/** - * Normalize a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to normalize - * @returns {vec3} out - */ - -export function normalize(out, a) { - var x = a[0]; - var y = a[1]; - var z = a[2]; - var len = x * x + y * y + z * z; - - if (len > 0) { - //TODO: evaluate use of glm_invsqrt here? - len = 1 / Math.sqrt(len); - } - - out[0] = a[0] * len; - out[1] = a[1] * len; - out[2] = a[2] * len; - return out; -} -/** - * Calculates the dot product of two vec3's - * - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {Number} dot product of a and b - */ - -export function dot(a, b) { - return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; -} -/** - * Computes the cross product of two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - -export function cross(out, a, b) { - var ax = a[0], - ay = a[1], - az = a[2]; - var bx = b[0], - by = b[1], - bz = b[2]; - out[0] = ay * bz - az * by; - out[1] = az * bx - ax * bz; - out[2] = ax * by - ay * bx; - return out; -} -/** - * Performs a linear interpolation between two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {vec3} out - */ - -export function lerp(out, a, b, t) { - var ax = a[0]; - var ay = a[1]; - var az = a[2]; - out[0] = ax + t * (b[0] - ax); - out[1] = ay + t * (b[1] - ay); - out[2] = az + t * (b[2] - az); - return out; -} -/** - * Performs a hermite interpolation with two control points - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @param {ReadonlyVec3} c the third operand - * @param {ReadonlyVec3} d the fourth operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {vec3} out - */ - -export function hermite(out, a, b, c, d, t) { - var factorTimes2 = t * t; - var factor1 = factorTimes2 * (2 * t - 3) + 1; - var factor2 = factorTimes2 * (t - 2) + t; - var factor3 = factorTimes2 * (t - 1); - var factor4 = factorTimes2 * (3 - 2 * t); - out[0] = a[0] * factor1 + b[0] * factor2 + c[0] * factor3 + d[0] * factor4; - out[1] = a[1] * factor1 + b[1] * factor2 + c[1] * factor3 + d[1] * factor4; - out[2] = a[2] * factor1 + b[2] * factor2 + c[2] * factor3 + d[2] * factor4; - return out; -} -/** - * Performs a bezier interpolation with two control points - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @param {ReadonlyVec3} c the third operand - * @param {ReadonlyVec3} d the fourth operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {vec3} out - */ - -export function bezier(out, a, b, c, d, t) { - var inverseFactor = 1 - t; - var inverseFactorTimesTwo = inverseFactor * inverseFactor; - var factorTimes2 = t * t; - var factor1 = inverseFactorTimesTwo * inverseFactor; - var factor2 = 3 * t * inverseFactorTimesTwo; - var factor3 = 3 * factorTimes2 * inverseFactor; - var factor4 = factorTimes2 * t; - out[0] = a[0] * factor1 + b[0] * factor2 + c[0] * factor3 + d[0] * factor4; - out[1] = a[1] * factor1 + b[1] * factor2 + c[1] * factor3 + d[1] * factor4; - out[2] = a[2] * factor1 + b[2] * factor2 + c[2] * factor3 + d[2] * factor4; - return out; -} -/** - * Generates a random vector with the given scale - * - * @param {vec3} out the receiving vector - * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned - * @returns {vec3} out - */ - -export function random(out, scale) { - scale = scale || 1.0; - var r = glMatrix.RANDOM() * 2.0 * Math.PI; - var z = glMatrix.RANDOM() * 2.0 - 1.0; - var zScale = Math.sqrt(1.0 - z * z) * scale; - out[0] = Math.cos(r) * zScale; - out[1] = Math.sin(r) * zScale; - out[2] = z * scale; - return out; -} -/** - * Transforms the vec3 with a mat4. - * 4th vector component is implicitly '1' - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the vector to transform - * @param {ReadonlyMat4} m matrix to transform with - * @returns {vec3} out - */ - -export function transformMat4(out, a, m) { - var x = a[0], - y = a[1], - z = a[2]; - var w = m[3] * x + m[7] * y + m[11] * z + m[15]; - w = w || 1.0; - out[0] = (m[0] * x + m[4] * y + m[8] * z + m[12]) / w; - out[1] = (m[1] * x + m[5] * y + m[9] * z + m[13]) / w; - out[2] = (m[2] * x + m[6] * y + m[10] * z + m[14]) / w; - return out; -} -/** - * Transforms the vec3 with a mat3. - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the vector to transform - * @param {ReadonlyMat3} m the 3x3 matrix to transform with - * @returns {vec3} out - */ - -export function transformMat3(out, a, m) { - var x = a[0], - y = a[1], - z = a[2]; - out[0] = x * m[0] + y * m[3] + z * m[6]; - out[1] = x * m[1] + y * m[4] + z * m[7]; - out[2] = x * m[2] + y * m[5] + z * m[8]; - return out; -} -/** - * Transforms the vec3 with a quat - * Can also be used for dual quaternions. (Multiply it with the real part) - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the vector to transform - * @param {ReadonlyQuat} q quaternion to transform with - * @returns {vec3} out - */ - -export function transformQuat(out, a, q) { - // benchmarks: https://jsperf.com/quaternion-transform-vec3-implementations-fixed - var qx = q[0], - qy = q[1], - qz = q[2], - qw = q[3]; - var x = a[0], - y = a[1], - z = a[2]; // var qvec = [qx, qy, qz]; - // var uv = vec3.cross([], qvec, a); - - var uvx = qy * z - qz * y, - uvy = qz * x - qx * z, - uvz = qx * y - qy * x; // var uuv = vec3.cross([], qvec, uv); - - var uuvx = qy * uvz - qz * uvy, - uuvy = qz * uvx - qx * uvz, - uuvz = qx * uvy - qy * uvx; // vec3.scale(uv, uv, 2 * w); - - var w2 = qw * 2; - uvx *= w2; - uvy *= w2; - uvz *= w2; // vec3.scale(uuv, uuv, 2); - - uuvx *= 2; - uuvy *= 2; - uuvz *= 2; // return vec3.add(out, a, vec3.add(out, uv, uuv)); - - out[0] = x + uvx + uuvx; - out[1] = y + uvy + uuvy; - out[2] = z + uvz + uuvz; - return out; -} -/** - * Rotate a 3D vector around the x-axis - * @param {vec3} out The receiving vec3 - * @param {ReadonlyVec3} a The vec3 point to rotate - * @param {ReadonlyVec3} b The origin of the rotation - * @param {Number} rad The angle of rotation in radians - * @returns {vec3} out - */ - -export function rotateX(out, a, b, rad) { - var p = [], - r = []; //Translate point to the origin - - p[0] = a[0] - b[0]; - p[1] = a[1] - b[1]; - p[2] = a[2] - b[2]; //perform rotation - - r[0] = p[0]; - r[1] = p[1] * Math.cos(rad) - p[2] * Math.sin(rad); - r[2] = p[1] * Math.sin(rad) + p[2] * Math.cos(rad); //translate to correct position - - out[0] = r[0] + b[0]; - out[1] = r[1] + b[1]; - out[2] = r[2] + b[2]; - return out; -} -/** - * Rotate a 3D vector around the y-axis - * @param {vec3} out The receiving vec3 - * @param {ReadonlyVec3} a The vec3 point to rotate - * @param {ReadonlyVec3} b The origin of the rotation - * @param {Number} rad The angle of rotation in radians - * @returns {vec3} out - */ - -export function rotateY(out, a, b, rad) { - var p = [], - r = []; //Translate point to the origin - - p[0] = a[0] - b[0]; - p[1] = a[1] - b[1]; - p[2] = a[2] - b[2]; //perform rotation - - r[0] = p[2] * Math.sin(rad) + p[0] * Math.cos(rad); - r[1] = p[1]; - r[2] = p[2] * Math.cos(rad) - p[0] * Math.sin(rad); //translate to correct position - - out[0] = r[0] + b[0]; - out[1] = r[1] + b[1]; - out[2] = r[2] + b[2]; - return out; -} -/** - * Rotate a 3D vector around the z-axis - * @param {vec3} out The receiving vec3 - * @param {ReadonlyVec3} a The vec3 point to rotate - * @param {ReadonlyVec3} b The origin of the rotation - * @param {Number} rad The angle of rotation in radians - * @returns {vec3} out - */ - -export function rotateZ(out, a, b, rad) { - var p = [], - r = []; //Translate point to the origin - - p[0] = a[0] - b[0]; - p[1] = a[1] - b[1]; - p[2] = a[2] - b[2]; //perform rotation - - r[0] = p[0] * Math.cos(rad) - p[1] * Math.sin(rad); - r[1] = p[0] * Math.sin(rad) + p[1] * Math.cos(rad); - r[2] = p[2]; //translate to correct position - - out[0] = r[0] + b[0]; - out[1] = r[1] + b[1]; - out[2] = r[2] + b[2]; - return out; -} -/** - * Get the angle between two 3D vectors - * @param {ReadonlyVec3} a The first operand - * @param {ReadonlyVec3} b The second operand - * @returns {Number} The angle in radians - */ - -export function angle(a, b) { - var ax = a[0], - ay = a[1], - az = a[2], - bx = b[0], - by = b[1], - bz = b[2], - mag1 = Math.sqrt(ax * ax + ay * ay + az * az), - mag2 = Math.sqrt(bx * bx + by * by + bz * bz), - mag = mag1 * mag2, - cosine = mag && dot(a, b) / mag; - return Math.acos(Math.min(Math.max(cosine, -1), 1)); -} -/** - * Set the components of a vec3 to zero - * - * @param {vec3} out the receiving vector - * @returns {vec3} out - */ - -export function zero(out) { - out[0] = 0.0; - out[1] = 0.0; - out[2] = 0.0; - return out; -} -/** - * Returns a string representation of a vector - * - * @param {ReadonlyVec3} a vector to represent as a string - * @returns {String} string representation of the vector - */ - -export function str(a) { - return "vec3(" + a[0] + ", " + a[1] + ", " + a[2] + ")"; -} -/** - * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyVec3} a The first vector. - * @param {ReadonlyVec3} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - -export function exactEquals(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2]; -} -/** - * Returns whether or not the vectors have approximately the same elements in the same position. - * - * @param {ReadonlyVec3} a The first vector. - * @param {ReadonlyVec3} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - -export function equals(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2]; - var b0 = b[0], - b1 = b[1], - b2 = b[2]; - return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)); -} -/** - * Alias for {@link vec3.subtract} - * @function - */ - -export var sub = subtract; -/** - * Alias for {@link vec3.multiply} - * @function - */ - -export var mul = multiply; -/** - * Alias for {@link vec3.divide} - * @function - */ - -export var div = divide; -/** - * Alias for {@link vec3.distance} - * @function - */ - -export var dist = distance; -/** - * Alias for {@link vec3.squaredDistance} - * @function - */ - -export var sqrDist = squaredDistance; -/** - * Alias for {@link vec3.length} - * @function - */ - -export var len = length; -/** - * Alias for {@link vec3.squaredLength} - * @function - */ - -export var sqrLen = squaredLength; -/** - * Perform some operation over an array of vec3s. - * - * @param {Array} a the array of vectors to iterate over - * @param {Number} stride Number of elements between the start of each vec3. If 0 assumes tightly packed - * @param {Number} offset Number of elements to skip at the beginning of the array - * @param {Number} count Number of vec3s to iterate over. If 0 iterates over entire array - * @param {Function} fn Function to call for each vector in the array - * @param {Object} [arg] additional argument to pass to fn - * @returns {Array} a - * @function - */ - -export var forEach = function () { - var vec = create(); - return function (a, stride, offset, count, fn, arg) { - var i, l; - - if (!stride) { - stride = 3; - } - - if (!offset) { - offset = 0; - } - - if (count) { - l = Math.min(count * stride + offset, a.length); - } else { - l = a.length; - } - - for (i = offset; i < l; i += stride) { - vec[0] = a[i]; - vec[1] = a[i + 1]; - vec[2] = a[i + 2]; - fn(vec, vec, arg); - a[i] = vec[0]; - a[i + 1] = vec[1]; - a[i + 2] = vec[2]; - } - - return a; - }; -}(); \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/esm/vec4.js b/build_vtk_bundle/node_modules/gl-matrix/esm/vec4.js deleted file mode 100755 index e0f206fd..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/esm/vec4.js +++ /dev/null @@ -1,663 +0,0 @@ -import * as glMatrix from "./common.js"; -/** - * 4 Dimensional Vector - * @module vec4 - */ - -/** - * Creates a new, empty vec4 - * - * @returns {vec4} a new 4D vector - */ - -export function create() { - var out = new glMatrix.ARRAY_TYPE(4); - - if (glMatrix.ARRAY_TYPE != Float32Array) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - out[3] = 0; - } - - return out; -} -/** - * Creates a new vec4 initialized with values from an existing vector - * - * @param {ReadonlyVec4} a vector to clone - * @returns {vec4} a new 4D vector - */ - -export function clone(a) { - var out = new glMatrix.ARRAY_TYPE(4); - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - return out; -} -/** - * Creates a new vec4 initialized with the given values - * - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @param {Number} w W component - * @returns {vec4} a new 4D vector - */ - -export function fromValues(x, y, z, w) { - var out = new glMatrix.ARRAY_TYPE(4); - out[0] = x; - out[1] = y; - out[2] = z; - out[3] = w; - return out; -} -/** - * Copy the values from one vec4 to another - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the source vector - * @returns {vec4} out - */ - -export function copy(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - return out; -} -/** - * Set the components of a vec4 to the given values - * - * @param {vec4} out the receiving vector - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @param {Number} w W component - * @returns {vec4} out - */ - -export function set(out, x, y, z, w) { - out[0] = x; - out[1] = y; - out[2] = z; - out[3] = w; - return out; -} -/** - * Adds two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - -export function add(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - out[3] = a[3] + b[3]; - return out; -} -/** - * Subtracts vector b from vector a - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - -export function subtract(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - out[2] = a[2] - b[2]; - out[3] = a[3] - b[3]; - return out; -} -/** - * Multiplies two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - -export function multiply(out, a, b) { - out[0] = a[0] * b[0]; - out[1] = a[1] * b[1]; - out[2] = a[2] * b[2]; - out[3] = a[3] * b[3]; - return out; -} -/** - * Divides two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - -export function divide(out, a, b) { - out[0] = a[0] / b[0]; - out[1] = a[1] / b[1]; - out[2] = a[2] / b[2]; - out[3] = a[3] / b[3]; - return out; -} -/** - * Math.ceil the components of a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to ceil - * @returns {vec4} out - */ - -export function ceil(out, a) { - out[0] = Math.ceil(a[0]); - out[1] = Math.ceil(a[1]); - out[2] = Math.ceil(a[2]); - out[3] = Math.ceil(a[3]); - return out; -} -/** - * Math.floor the components of a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to floor - * @returns {vec4} out - */ - -export function floor(out, a) { - out[0] = Math.floor(a[0]); - out[1] = Math.floor(a[1]); - out[2] = Math.floor(a[2]); - out[3] = Math.floor(a[3]); - return out; -} -/** - * Returns the minimum of two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - -export function min(out, a, b) { - out[0] = Math.min(a[0], b[0]); - out[1] = Math.min(a[1], b[1]); - out[2] = Math.min(a[2], b[2]); - out[3] = Math.min(a[3], b[3]); - return out; -} -/** - * Returns the maximum of two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - -export function max(out, a, b) { - out[0] = Math.max(a[0], b[0]); - out[1] = Math.max(a[1], b[1]); - out[2] = Math.max(a[2], b[2]); - out[3] = Math.max(a[3], b[3]); - return out; -} -/** - * Math.round the components of a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to round - * @returns {vec4} out - */ - -export function round(out, a) { - out[0] = Math.round(a[0]); - out[1] = Math.round(a[1]); - out[2] = Math.round(a[2]); - out[3] = Math.round(a[3]); - return out; -} -/** - * Scales a vec4 by a scalar number - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the vector to scale - * @param {Number} b amount to scale the vector by - * @returns {vec4} out - */ - -export function scale(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - out[3] = a[3] * b; - return out; -} -/** - * Adds two vec4's after scaling the second operand by a scalar value - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @param {Number} scale the amount to scale b by before adding - * @returns {vec4} out - */ - -export function scaleAndAdd(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - out[2] = a[2] + b[2] * scale; - out[3] = a[3] + b[3] * scale; - return out; -} -/** - * Calculates the euclidian distance between two vec4's - * - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {Number} distance between a and b - */ - -export function distance(a, b) { - var x = b[0] - a[0]; - var y = b[1] - a[1]; - var z = b[2] - a[2]; - var w = b[3] - a[3]; - return Math.hypot(x, y, z, w); -} -/** - * Calculates the squared euclidian distance between two vec4's - * - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {Number} squared distance between a and b - */ - -export function squaredDistance(a, b) { - var x = b[0] - a[0]; - var y = b[1] - a[1]; - var z = b[2] - a[2]; - var w = b[3] - a[3]; - return x * x + y * y + z * z + w * w; -} -/** - * Calculates the length of a vec4 - * - * @param {ReadonlyVec4} a vector to calculate length of - * @returns {Number} length of a - */ - -export function length(a) { - var x = a[0]; - var y = a[1]; - var z = a[2]; - var w = a[3]; - return Math.hypot(x, y, z, w); -} -/** - * Calculates the squared length of a vec4 - * - * @param {ReadonlyVec4} a vector to calculate squared length of - * @returns {Number} squared length of a - */ - -export function squaredLength(a) { - var x = a[0]; - var y = a[1]; - var z = a[2]; - var w = a[3]; - return x * x + y * y + z * z + w * w; -} -/** - * Negates the components of a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to negate - * @returns {vec4} out - */ - -export function negate(out, a) { - out[0] = -a[0]; - out[1] = -a[1]; - out[2] = -a[2]; - out[3] = -a[3]; - return out; -} -/** - * Returns the inverse of the components of a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to invert - * @returns {vec4} out - */ - -export function inverse(out, a) { - out[0] = 1.0 / a[0]; - out[1] = 1.0 / a[1]; - out[2] = 1.0 / a[2]; - out[3] = 1.0 / a[3]; - return out; -} -/** - * Normalize a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to normalize - * @returns {vec4} out - */ - -export function normalize(out, a) { - var x = a[0]; - var y = a[1]; - var z = a[2]; - var w = a[3]; - var len = x * x + y * y + z * z + w * w; - - if (len > 0) { - len = 1 / Math.sqrt(len); - } - - out[0] = x * len; - out[1] = y * len; - out[2] = z * len; - out[3] = w * len; - return out; -} -/** - * Calculates the dot product of two vec4's - * - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {Number} dot product of a and b - */ - -export function dot(a, b) { - return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3]; -} -/** - * Returns the cross-product of three vectors in a 4-dimensional space - * - * @param {ReadonlyVec4} result the receiving vector - * @param {ReadonlyVec4} U the first vector - * @param {ReadonlyVec4} V the second vector - * @param {ReadonlyVec4} W the third vector - * @returns {vec4} result - */ - -export function cross(out, u, v, w) { - var A = v[0] * w[1] - v[1] * w[0], - B = v[0] * w[2] - v[2] * w[0], - C = v[0] * w[3] - v[3] * w[0], - D = v[1] * w[2] - v[2] * w[1], - E = v[1] * w[3] - v[3] * w[1], - F = v[2] * w[3] - v[3] * w[2]; - var G = u[0]; - var H = u[1]; - var I = u[2]; - var J = u[3]; - out[0] = H * F - I * E + J * D; - out[1] = -(G * F) + I * C - J * B; - out[2] = G * E - H * C + J * A; - out[3] = -(G * D) + H * B - I * A; - return out; -} -/** - * Performs a linear interpolation between two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {vec4} out - */ - -export function lerp(out, a, b, t) { - var ax = a[0]; - var ay = a[1]; - var az = a[2]; - var aw = a[3]; - out[0] = ax + t * (b[0] - ax); - out[1] = ay + t * (b[1] - ay); - out[2] = az + t * (b[2] - az); - out[3] = aw + t * (b[3] - aw); - return out; -} -/** - * Generates a random vector with the given scale - * - * @param {vec4} out the receiving vector - * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned - * @returns {vec4} out - */ - -export function random(out, scale) { - scale = scale || 1.0; // Marsaglia, George. Choosing a Point from the Surface of a - // Sphere. Ann. Math. Statist. 43 (1972), no. 2, 645--646. - // http://projecteuclid.org/euclid.aoms/1177692644; - - var v1, v2, v3, v4; - var s1, s2; - - do { - v1 = glMatrix.RANDOM() * 2 - 1; - v2 = glMatrix.RANDOM() * 2 - 1; - s1 = v1 * v1 + v2 * v2; - } while (s1 >= 1); - - do { - v3 = glMatrix.RANDOM() * 2 - 1; - v4 = glMatrix.RANDOM() * 2 - 1; - s2 = v3 * v3 + v4 * v4; - } while (s2 >= 1); - - var d = Math.sqrt((1 - s1) / s2); - out[0] = scale * v1; - out[1] = scale * v2; - out[2] = scale * v3 * d; - out[3] = scale * v4 * d; - return out; -} -/** - * Transforms the vec4 with a mat4. - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the vector to transform - * @param {ReadonlyMat4} m matrix to transform with - * @returns {vec4} out - */ - -export function transformMat4(out, a, m) { - var x = a[0], - y = a[1], - z = a[2], - w = a[3]; - out[0] = m[0] * x + m[4] * y + m[8] * z + m[12] * w; - out[1] = m[1] * x + m[5] * y + m[9] * z + m[13] * w; - out[2] = m[2] * x + m[6] * y + m[10] * z + m[14] * w; - out[3] = m[3] * x + m[7] * y + m[11] * z + m[15] * w; - return out; -} -/** - * Transforms the vec4 with a quat - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the vector to transform - * @param {ReadonlyQuat} q quaternion to transform with - * @returns {vec4} out - */ - -export function transformQuat(out, a, q) { - var x = a[0], - y = a[1], - z = a[2]; - var qx = q[0], - qy = q[1], - qz = q[2], - qw = q[3]; // calculate quat * vec - - var ix = qw * x + qy * z - qz * y; - var iy = qw * y + qz * x - qx * z; - var iz = qw * z + qx * y - qy * x; - var iw = -qx * x - qy * y - qz * z; // calculate result * inverse quat - - out[0] = ix * qw + iw * -qx + iy * -qz - iz * -qy; - out[1] = iy * qw + iw * -qy + iz * -qx - ix * -qz; - out[2] = iz * qw + iw * -qz + ix * -qy - iy * -qx; - out[3] = a[3]; - return out; -} -/** - * Set the components of a vec4 to zero - * - * @param {vec4} out the receiving vector - * @returns {vec4} out - */ - -export function zero(out) { - out[0] = 0.0; - out[1] = 0.0; - out[2] = 0.0; - out[3] = 0.0; - return out; -} -/** - * Returns a string representation of a vector - * - * @param {ReadonlyVec4} a vector to represent as a string - * @returns {String} string representation of the vector - */ - -export function str(a) { - return "vec4(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ")"; -} -/** - * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyVec4} a The first vector. - * @param {ReadonlyVec4} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - -export function exactEquals(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3]; -} -/** - * Returns whether or not the vectors have approximately the same elements in the same position. - * - * @param {ReadonlyVec4} a The first vector. - * @param {ReadonlyVec4} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - -export function equals(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3]; - return Math.abs(a0 - b0) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= glMatrix.EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)); -} -/** - * Alias for {@link vec4.subtract} - * @function - */ - -export var sub = subtract; -/** - * Alias for {@link vec4.multiply} - * @function - */ - -export var mul = multiply; -/** - * Alias for {@link vec4.divide} - * @function - */ - -export var div = divide; -/** - * Alias for {@link vec4.distance} - * @function - */ - -export var dist = distance; -/** - * Alias for {@link vec4.squaredDistance} - * @function - */ - -export var sqrDist = squaredDistance; -/** - * Alias for {@link vec4.length} - * @function - */ - -export var len = length; -/** - * Alias for {@link vec4.squaredLength} - * @function - */ - -export var sqrLen = squaredLength; -/** - * Perform some operation over an array of vec4s. - * - * @param {Array} a the array of vectors to iterate over - * @param {Number} stride Number of elements between the start of each vec4. If 0 assumes tightly packed - * @param {Number} offset Number of elements to skip at the beginning of the array - * @param {Number} count Number of vec4s to iterate over. If 0 iterates over entire array - * @param {Function} fn Function to call for each vector in the array - * @param {Object} [arg] additional argument to pass to fn - * @returns {Array} a - * @function - */ - -export var forEach = function () { - var vec = create(); - return function (a, stride, offset, count, fn, arg) { - var i, l; - - if (!stride) { - stride = 4; - } - - if (!offset) { - offset = 0; - } - - if (count) { - l = Math.min(count * stride + offset, a.length); - } else { - l = a.length; - } - - for (i = offset; i < l; i += stride) { - vec[0] = a[i]; - vec[1] = a[i + 1]; - vec[2] = a[i + 2]; - vec[3] = a[i + 3]; - fn(vec, vec, arg); - a[i] = vec[0]; - a[i + 1] = vec[1]; - a[i + 2] = vec[2]; - a[i + 3] = vec[3]; - } - - return a; - }; -}(); \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/gl-matrix-min.js b/build_vtk_bundle/node_modules/gl-matrix/gl-matrix-min.js deleted file mode 100755 index d2dd80a7..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/gl-matrix-min.js +++ /dev/null @@ -1,28 +0,0 @@ -/*! -@fileoverview gl-matrix - High performance matrix and vector operations -@author Brandon Jones -@author Colin MacKenzie IV -@version 3.4.3 - -Copyright (c) 2015-2021, Brandon Jones, Colin MacKenzie IV. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -*/ -!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).glMatrix={})}(this,(function(t){"use strict";var n=1e-6,a="undefined"!=typeof Float32Array?Float32Array:Array,r=Math.random;var u=Math.PI/180;Math.hypot||(Math.hypot=function(){for(var t=0,n=arguments.length;n--;)t+=arguments[n]*arguments[n];return Math.sqrt(t)});var e=Object.freeze({__proto__:null,EPSILON:n,get ARRAY_TYPE(){return a},RANDOM:r,setMatrixArrayType:function(t){a=t},toRadian:function(t){return t*u},equals:function(t,a){return Math.abs(t-a)<=n*Math.max(1,Math.abs(t),Math.abs(a))}});function o(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],i=a[0],h=a[1],c=a[2],s=a[3];return t[0]=r*i+e*h,t[1]=u*i+o*h,t[2]=r*c+e*s,t[3]=u*c+o*s,t}function i(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t[3]=n[3]-a[3],t}var h=o,c=i,s=Object.freeze({__proto__:null,create:function(){var t=new a(4);return a!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},clone:function(t){var n=new a(4);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n},copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},fromValues:function(t,n,r,u){var e=new a(4);return e[0]=t,e[1]=n,e[2]=r,e[3]=u,e},set:function(t,n,a,r,u){return t[0]=n,t[1]=a,t[2]=r,t[3]=u,t},transpose:function(t,n){if(t===n){var a=n[1];t[1]=n[2],t[2]=a}else t[0]=n[0],t[1]=n[2],t[2]=n[1],t[3]=n[3];return t},invert:function(t,n){var a=n[0],r=n[1],u=n[2],e=n[3],o=a*e-u*r;return o?(o=1/o,t[0]=e*o,t[1]=-r*o,t[2]=-u*o,t[3]=a*o,t):null},adjoint:function(t,n){var a=n[0];return t[0]=n[3],t[1]=-n[1],t[2]=-n[2],t[3]=a,t},determinant:function(t){return t[0]*t[3]-t[2]*t[1]},multiply:o,rotate:function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],i=Math.sin(a),h=Math.cos(a);return t[0]=r*h+e*i,t[1]=u*h+o*i,t[2]=r*-i+e*h,t[3]=u*-i+o*h,t},scale:function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],i=a[0],h=a[1];return t[0]=r*i,t[1]=u*i,t[2]=e*h,t[3]=o*h,t},fromRotation:function(t,n){var a=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=a,t[2]=-a,t[3]=r,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=n[1],t},str:function(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},frob:function(t){return Math.hypot(t[0],t[1],t[2],t[3])},LDU:function(t,n,a,r){return t[2]=r[2]/r[0],a[0]=r[0],a[1]=r[1],a[3]=r[3]-t[2]*a[1],[t,n,a]},add:function(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t[3]=n[3]+a[3],t},subtract:i,exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]},equals:function(t,a){var r=t[0],u=t[1],e=t[2],o=t[3],i=a[0],h=a[1],c=a[2],s=a[3];return Math.abs(r-i)<=n*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(u-h)<=n*Math.max(1,Math.abs(u),Math.abs(h))&&Math.abs(e-c)<=n*Math.max(1,Math.abs(e),Math.abs(c))&&Math.abs(o-s)<=n*Math.max(1,Math.abs(o),Math.abs(s))},multiplyScalar:function(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t[3]=n[3]*a,t},multiplyScalarAndAdd:function(t,n,a,r){return t[0]=n[0]+a[0]*r,t[1]=n[1]+a[1]*r,t[2]=n[2]+a[2]*r,t[3]=n[3]+a[3]*r,t},mul:h,sub:c});function M(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],i=n[4],h=n[5],c=a[0],s=a[1],M=a[2],f=a[3],l=a[4],v=a[5];return t[0]=r*c+e*s,t[1]=u*c+o*s,t[2]=r*M+e*f,t[3]=u*M+o*f,t[4]=r*l+e*v+i,t[5]=u*l+o*v+h,t}function f(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t[3]=n[3]-a[3],t[4]=n[4]-a[4],t[5]=n[5]-a[5],t}var l=M,v=f,b=Object.freeze({__proto__:null,create:function(){var t=new a(6);return a!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t},clone:function(t){var n=new a(6);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n},copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},fromValues:function(t,n,r,u,e,o){var i=new a(6);return i[0]=t,i[1]=n,i[2]=r,i[3]=u,i[4]=e,i[5]=o,i},set:function(t,n,a,r,u,e,o){return t[0]=n,t[1]=a,t[2]=r,t[3]=u,t[4]=e,t[5]=o,t},invert:function(t,n){var a=n[0],r=n[1],u=n[2],e=n[3],o=n[4],i=n[5],h=a*e-r*u;return h?(h=1/h,t[0]=e*h,t[1]=-r*h,t[2]=-u*h,t[3]=a*h,t[4]=(u*i-e*o)*h,t[5]=(r*o-a*i)*h,t):null},determinant:function(t){return t[0]*t[3]-t[1]*t[2]},multiply:M,rotate:function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],i=n[4],h=n[5],c=Math.sin(a),s=Math.cos(a);return t[0]=r*s+e*c,t[1]=u*s+o*c,t[2]=r*-c+e*s,t[3]=u*-c+o*s,t[4]=i,t[5]=h,t},scale:function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],i=n[4],h=n[5],c=a[0],s=a[1];return t[0]=r*c,t[1]=u*c,t[2]=e*s,t[3]=o*s,t[4]=i,t[5]=h,t},translate:function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],i=n[4],h=n[5],c=a[0],s=a[1];return t[0]=r,t[1]=u,t[2]=e,t[3]=o,t[4]=r*c+e*s+i,t[5]=u*c+o*s+h,t},fromRotation:function(t,n){var a=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=a,t[2]=-a,t[3]=r,t[4]=0,t[5]=0,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=n[1],t[4]=0,t[5]=0,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=n[0],t[5]=n[1],t},str:function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},frob:function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1)},add:function(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t[3]=n[3]+a[3],t[4]=n[4]+a[4],t[5]=n[5]+a[5],t},subtract:f,multiplyScalar:function(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t[3]=n[3]*a,t[4]=n[4]*a,t[5]=n[5]*a,t},multiplyScalarAndAdd:function(t,n,a,r){return t[0]=n[0]+a[0]*r,t[1]=n[1]+a[1]*r,t[2]=n[2]+a[2]*r,t[3]=n[3]+a[3]*r,t[4]=n[4]+a[4]*r,t[5]=n[5]+a[5]*r,t},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]},equals:function(t,a){var r=t[0],u=t[1],e=t[2],o=t[3],i=t[4],h=t[5],c=a[0],s=a[1],M=a[2],f=a[3],l=a[4],v=a[5];return Math.abs(r-c)<=n*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(u-s)<=n*Math.max(1,Math.abs(u),Math.abs(s))&&Math.abs(e-M)<=n*Math.max(1,Math.abs(e),Math.abs(M))&&Math.abs(o-f)<=n*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(i-l)<=n*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(h-v)<=n*Math.max(1,Math.abs(h),Math.abs(v))},mul:l,sub:v});function m(){var t=new a(9);return a!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function d(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],i=n[4],h=n[5],c=n[6],s=n[7],M=n[8],f=a[0],l=a[1],v=a[2],b=a[3],m=a[4],d=a[5],p=a[6],x=a[7],y=a[8];return t[0]=f*r+l*o+v*c,t[1]=f*u+l*i+v*s,t[2]=f*e+l*h+v*M,t[3]=b*r+m*o+d*c,t[4]=b*u+m*i+d*s,t[5]=b*e+m*h+d*M,t[6]=p*r+x*o+y*c,t[7]=p*u+x*i+y*s,t[8]=p*e+x*h+y*M,t}function p(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t[3]=n[3]-a[3],t[4]=n[4]-a[4],t[5]=n[5]-a[5],t[6]=n[6]-a[6],t[7]=n[7]-a[7],t[8]=n[8]-a[8],t}var x=d,y=p,q=Object.freeze({__proto__:null,create:m,fromMat4:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t},clone:function(t){var n=new a(9);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n},copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},fromValues:function(t,n,r,u,e,o,i,h,c){var s=new a(9);return s[0]=t,s[1]=n,s[2]=r,s[3]=u,s[4]=e,s[5]=o,s[6]=i,s[7]=h,s[8]=c,s},set:function(t,n,a,r,u,e,o,i,h,c){return t[0]=n,t[1]=a,t[2]=r,t[3]=u,t[4]=e,t[5]=o,t[6]=i,t[7]=h,t[8]=c,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},transpose:function(t,n){if(t===n){var a=n[1],r=n[2],u=n[5];t[1]=n[3],t[2]=n[6],t[3]=a,t[5]=n[7],t[6]=r,t[7]=u}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t},invert:function(t,n){var a=n[0],r=n[1],u=n[2],e=n[3],o=n[4],i=n[5],h=n[6],c=n[7],s=n[8],M=s*o-i*c,f=-s*e+i*h,l=c*e-o*h,v=a*M+r*f+u*l;return v?(v=1/v,t[0]=M*v,t[1]=(-s*r+u*c)*v,t[2]=(i*r-u*o)*v,t[3]=f*v,t[4]=(s*a-u*h)*v,t[5]=(-i*a+u*e)*v,t[6]=l*v,t[7]=(-c*a+r*h)*v,t[8]=(o*a-r*e)*v,t):null},adjoint:function(t,n){var a=n[0],r=n[1],u=n[2],e=n[3],o=n[4],i=n[5],h=n[6],c=n[7],s=n[8];return t[0]=o*s-i*c,t[1]=u*c-r*s,t[2]=r*i-u*o,t[3]=i*h-e*s,t[4]=a*s-u*h,t[5]=u*e-a*i,t[6]=e*c-o*h,t[7]=r*h-a*c,t[8]=a*o-r*e,t},determinant:function(t){var n=t[0],a=t[1],r=t[2],u=t[3],e=t[4],o=t[5],i=t[6],h=t[7],c=t[8];return n*(c*e-o*h)+a*(-c*u+o*i)+r*(h*u-e*i)},multiply:d,translate:function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],i=n[4],h=n[5],c=n[6],s=n[7],M=n[8],f=a[0],l=a[1];return t[0]=r,t[1]=u,t[2]=e,t[3]=o,t[4]=i,t[5]=h,t[6]=f*r+l*o+c,t[7]=f*u+l*i+s,t[8]=f*e+l*h+M,t},rotate:function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],i=n[4],h=n[5],c=n[6],s=n[7],M=n[8],f=Math.sin(a),l=Math.cos(a);return t[0]=l*r+f*o,t[1]=l*u+f*i,t[2]=l*e+f*h,t[3]=l*o-f*r,t[4]=l*i-f*u,t[5]=l*h-f*e,t[6]=c,t[7]=s,t[8]=M,t},scale:function(t,n,a){var r=a[0],u=a[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=u*n[3],t[4]=u*n[4],t[5]=u*n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},fromRotation:function(t,n){var a=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=a,t[2]=0,t[3]=-a,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromQuat:function(t,n){var a=n[0],r=n[1],u=n[2],e=n[3],o=a+a,i=r+r,h=u+u,c=a*o,s=r*o,M=r*i,f=u*o,l=u*i,v=u*h,b=e*o,m=e*i,d=e*h;return t[0]=1-M-v,t[3]=s-d,t[6]=f+m,t[1]=s+d,t[4]=1-c-v,t[7]=l-b,t[2]=f-m,t[5]=l+b,t[8]=1-c-M,t},normalFromMat4:function(t,n){var a=n[0],r=n[1],u=n[2],e=n[3],o=n[4],i=n[5],h=n[6],c=n[7],s=n[8],M=n[9],f=n[10],l=n[11],v=n[12],b=n[13],m=n[14],d=n[15],p=a*i-r*o,x=a*h-u*o,y=a*c-e*o,q=r*h-u*i,g=r*c-e*i,_=u*c-e*h,A=s*b-M*v,w=s*m-f*v,R=s*d-l*v,z=M*m-f*b,O=M*d-l*b,j=f*d-l*m,P=p*j-x*O+y*z+q*R-g*w+_*A;return P?(P=1/P,t[0]=(i*j-h*O+c*z)*P,t[1]=(h*R-o*j-c*w)*P,t[2]=(o*O-i*R+c*A)*P,t[3]=(u*O-r*j-e*z)*P,t[4]=(a*j-u*R+e*w)*P,t[5]=(r*R-a*O-e*A)*P,t[6]=(b*_-m*g+d*q)*P,t[7]=(m*y-v*_-d*x)*P,t[8]=(v*g-b*y+d*p)*P,t):null},projection:function(t,n,a){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/a,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},frob:function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},add:function(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t[3]=n[3]+a[3],t[4]=n[4]+a[4],t[5]=n[5]+a[5],t[6]=n[6]+a[6],t[7]=n[7]+a[7],t[8]=n[8]+a[8],t},subtract:p,multiplyScalar:function(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t[3]=n[3]*a,t[4]=n[4]*a,t[5]=n[5]*a,t[6]=n[6]*a,t[7]=n[7]*a,t[8]=n[8]*a,t},multiplyScalarAndAdd:function(t,n,a,r){return t[0]=n[0]+a[0]*r,t[1]=n[1]+a[1]*r,t[2]=n[2]+a[2]*r,t[3]=n[3]+a[3]*r,t[4]=n[4]+a[4]*r,t[5]=n[5]+a[5]*r,t[6]=n[6]+a[6]*r,t[7]=n[7]+a[7]*r,t[8]=n[8]+a[8]*r,t},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},equals:function(t,a){var r=t[0],u=t[1],e=t[2],o=t[3],i=t[4],h=t[5],c=t[6],s=t[7],M=t[8],f=a[0],l=a[1],v=a[2],b=a[3],m=a[4],d=a[5],p=a[6],x=a[7],y=a[8];return Math.abs(r-f)<=n*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(u-l)<=n*Math.max(1,Math.abs(u),Math.abs(l))&&Math.abs(e-v)<=n*Math.max(1,Math.abs(e),Math.abs(v))&&Math.abs(o-b)<=n*Math.max(1,Math.abs(o),Math.abs(b))&&Math.abs(i-m)<=n*Math.max(1,Math.abs(i),Math.abs(m))&&Math.abs(h-d)<=n*Math.max(1,Math.abs(h),Math.abs(d))&&Math.abs(c-p)<=n*Math.max(1,Math.abs(c),Math.abs(p))&&Math.abs(s-x)<=n*Math.max(1,Math.abs(s),Math.abs(x))&&Math.abs(M-y)<=n*Math.max(1,Math.abs(M),Math.abs(y))},mul:x,sub:y});function g(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],i=n[4],h=n[5],c=n[6],s=n[7],M=n[8],f=n[9],l=n[10],v=n[11],b=n[12],m=n[13],d=n[14],p=n[15],x=a[0],y=a[1],q=a[2],g=a[3];return t[0]=x*r+y*i+q*M+g*b,t[1]=x*u+y*h+q*f+g*m,t[2]=x*e+y*c+q*l+g*d,t[3]=x*o+y*s+q*v+g*p,x=a[4],y=a[5],q=a[6],g=a[7],t[4]=x*r+y*i+q*M+g*b,t[5]=x*u+y*h+q*f+g*m,t[6]=x*e+y*c+q*l+g*d,t[7]=x*o+y*s+q*v+g*p,x=a[8],y=a[9],q=a[10],g=a[11],t[8]=x*r+y*i+q*M+g*b,t[9]=x*u+y*h+q*f+g*m,t[10]=x*e+y*c+q*l+g*d,t[11]=x*o+y*s+q*v+g*p,x=a[12],y=a[13],q=a[14],g=a[15],t[12]=x*r+y*i+q*M+g*b,t[13]=x*u+y*h+q*f+g*m,t[14]=x*e+y*c+q*l+g*d,t[15]=x*o+y*s+q*v+g*p,t}function A(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],i=r+r,h=u+u,c=e+e,s=r*i,M=r*h,f=r*c,l=u*h,v=u*c,b=e*c,m=o*i,d=o*h,p=o*c;return t[0]=1-(l+b),t[1]=M+p,t[2]=f-d,t[3]=0,t[4]=M-p,t[5]=1-(s+b),t[6]=v+m,t[7]=0,t[8]=f+d,t[9]=v-m,t[10]=1-(s+l),t[11]=0,t[12]=a[0],t[13]=a[1],t[14]=a[2],t[15]=1,t}function w(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function R(t,n){var a=n[0],r=n[1],u=n[2],e=n[4],o=n[5],i=n[6],h=n[8],c=n[9],s=n[10];return t[0]=Math.hypot(a,r,u),t[1]=Math.hypot(e,o,i),t[2]=Math.hypot(h,c,s),t}function z(t,n){var r=new a(3);R(r,n);var u=1/r[0],e=1/r[1],o=1/r[2],i=n[0]*u,h=n[1]*e,c=n[2]*o,s=n[4]*u,M=n[5]*e,f=n[6]*o,l=n[8]*u,v=n[9]*e,b=n[10]*o,m=i+M+b,d=0;return m>0?(d=2*Math.sqrt(m+1),t[3]=.25*d,t[0]=(f-v)/d,t[1]=(l-c)/d,t[2]=(h-s)/d):i>M&&i>b?(d=2*Math.sqrt(1+i-M-b),t[3]=(f-v)/d,t[0]=.25*d,t[1]=(h+s)/d,t[2]=(l+c)/d):M>b?(d=2*Math.sqrt(1+M-i-b),t[3]=(l-c)/d,t[0]=(h+s)/d,t[1]=.25*d,t[2]=(f+v)/d):(d=2*Math.sqrt(1+b-i-M),t[3]=(h-s)/d,t[0]=(l+c)/d,t[1]=(f+v)/d,t[2]=.25*d),t}function O(t,n,a,r,u){var e,o=1/Math.tan(n/2);return t[0]=o/a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=u&&u!==1/0?(e=1/(r-u),t[10]=(u+r)*e,t[14]=2*u*r*e):(t[10]=-1,t[14]=-2*r),t}var j=O;function P(t,n,a,r,u,e,o){var i=1/(n-a),h=1/(r-u),c=1/(e-o);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*h,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(n+a)*i,t[13]=(u+r)*h,t[14]=(o+e)*c,t[15]=1,t}var S=P;function E(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t[3]=n[3]-a[3],t[4]=n[4]-a[4],t[5]=n[5]-a[5],t[6]=n[6]-a[6],t[7]=n[7]-a[7],t[8]=n[8]-a[8],t[9]=n[9]-a[9],t[10]=n[10]-a[10],t[11]=n[11]-a[11],t[12]=n[12]-a[12],t[13]=n[13]-a[13],t[14]=n[14]-a[14],t[15]=n[15]-a[15],t}var T=_,D=E,F=Object.freeze({__proto__:null,create:function(){var t=new a(16);return a!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},clone:function(t){var n=new a(16);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15],n},copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t},fromValues:function(t,n,r,u,e,o,i,h,c,s,M,f,l,v,b,m){var d=new a(16);return d[0]=t,d[1]=n,d[2]=r,d[3]=u,d[4]=e,d[5]=o,d[6]=i,d[7]=h,d[8]=c,d[9]=s,d[10]=M,d[11]=f,d[12]=l,d[13]=v,d[14]=b,d[15]=m,d},set:function(t,n,a,r,u,e,o,i,h,c,s,M,f,l,v,b,m){return t[0]=n,t[1]=a,t[2]=r,t[3]=u,t[4]=e,t[5]=o,t[6]=i,t[7]=h,t[8]=c,t[9]=s,t[10]=M,t[11]=f,t[12]=l,t[13]=v,t[14]=b,t[15]=m,t},identity:g,transpose:function(t,n){if(t===n){var a=n[1],r=n[2],u=n[3],e=n[6],o=n[7],i=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=a,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=e,t[11]=n[14],t[12]=u,t[13]=o,t[14]=i}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t},invert:function(t,n){var a=n[0],r=n[1],u=n[2],e=n[3],o=n[4],i=n[5],h=n[6],c=n[7],s=n[8],M=n[9],f=n[10],l=n[11],v=n[12],b=n[13],m=n[14],d=n[15],p=a*i-r*o,x=a*h-u*o,y=a*c-e*o,q=r*h-u*i,g=r*c-e*i,_=u*c-e*h,A=s*b-M*v,w=s*m-f*v,R=s*d-l*v,z=M*m-f*b,O=M*d-l*b,j=f*d-l*m,P=p*j-x*O+y*z+q*R-g*w+_*A;return P?(P=1/P,t[0]=(i*j-h*O+c*z)*P,t[1]=(u*O-r*j-e*z)*P,t[2]=(b*_-m*g+d*q)*P,t[3]=(f*g-M*_-l*q)*P,t[4]=(h*R-o*j-c*w)*P,t[5]=(a*j-u*R+e*w)*P,t[6]=(m*y-v*_-d*x)*P,t[7]=(s*_-f*y+l*x)*P,t[8]=(o*O-i*R+c*A)*P,t[9]=(r*R-a*O-e*A)*P,t[10]=(v*g-b*y+d*p)*P,t[11]=(M*y-s*g-l*p)*P,t[12]=(i*w-o*z-h*A)*P,t[13]=(a*z-r*w+u*A)*P,t[14]=(b*x-v*q-m*p)*P,t[15]=(s*q-M*x+f*p)*P,t):null},adjoint:function(t,n){var a=n[0],r=n[1],u=n[2],e=n[3],o=n[4],i=n[5],h=n[6],c=n[7],s=n[8],M=n[9],f=n[10],l=n[11],v=n[12],b=n[13],m=n[14],d=n[15];return t[0]=i*(f*d-l*m)-M*(h*d-c*m)+b*(h*l-c*f),t[1]=-(r*(f*d-l*m)-M*(u*d-e*m)+b*(u*l-e*f)),t[2]=r*(h*d-c*m)-i*(u*d-e*m)+b*(u*c-e*h),t[3]=-(r*(h*l-c*f)-i*(u*l-e*f)+M*(u*c-e*h)),t[4]=-(o*(f*d-l*m)-s*(h*d-c*m)+v*(h*l-c*f)),t[5]=a*(f*d-l*m)-s*(u*d-e*m)+v*(u*l-e*f),t[6]=-(a*(h*d-c*m)-o*(u*d-e*m)+v*(u*c-e*h)),t[7]=a*(h*l-c*f)-o*(u*l-e*f)+s*(u*c-e*h),t[8]=o*(M*d-l*b)-s*(i*d-c*b)+v*(i*l-c*M),t[9]=-(a*(M*d-l*b)-s*(r*d-e*b)+v*(r*l-e*M)),t[10]=a*(i*d-c*b)-o*(r*d-e*b)+v*(r*c-e*i),t[11]=-(a*(i*l-c*M)-o*(r*l-e*M)+s*(r*c-e*i)),t[12]=-(o*(M*m-f*b)-s*(i*m-h*b)+v*(i*f-h*M)),t[13]=a*(M*m-f*b)-s*(r*m-u*b)+v*(r*f-u*M),t[14]=-(a*(i*m-h*b)-o*(r*m-u*b)+v*(r*h-u*i)),t[15]=a*(i*f-h*M)-o*(r*f-u*M)+s*(r*h-u*i),t},determinant:function(t){var n=t[0],a=t[1],r=t[2],u=t[3],e=t[4],o=t[5],i=t[6],h=t[7],c=t[8],s=t[9],M=t[10],f=t[11],l=t[12],v=t[13],b=t[14],m=t[15];return(n*o-a*e)*(M*m-f*b)-(n*i-r*e)*(s*m-f*v)+(n*h-u*e)*(s*b-M*v)+(a*i-r*o)*(c*m-f*l)-(a*h-u*o)*(c*b-M*l)+(r*h-u*i)*(c*v-s*l)},multiply:_,translate:function(t,n,a){var r,u,e,o,i,h,c,s,M,f,l,v,b=a[0],m=a[1],d=a[2];return n===t?(t[12]=n[0]*b+n[4]*m+n[8]*d+n[12],t[13]=n[1]*b+n[5]*m+n[9]*d+n[13],t[14]=n[2]*b+n[6]*m+n[10]*d+n[14],t[15]=n[3]*b+n[7]*m+n[11]*d+n[15]):(r=n[0],u=n[1],e=n[2],o=n[3],i=n[4],h=n[5],c=n[6],s=n[7],M=n[8],f=n[9],l=n[10],v=n[11],t[0]=r,t[1]=u,t[2]=e,t[3]=o,t[4]=i,t[5]=h,t[6]=c,t[7]=s,t[8]=M,t[9]=f,t[10]=l,t[11]=v,t[12]=r*b+i*m+M*d+n[12],t[13]=u*b+h*m+f*d+n[13],t[14]=e*b+c*m+l*d+n[14],t[15]=o*b+s*m+v*d+n[15]),t},scale:function(t,n,a){var r=a[0],u=a[1],e=a[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*u,t[5]=n[5]*u,t[6]=n[6]*u,t[7]=n[7]*u,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t},rotate:function(t,a,r,u){var e,o,i,h,c,s,M,f,l,v,b,m,d,p,x,y,q,g,_,A,w,R,z,O,j=u[0],P=u[1],S=u[2],E=Math.hypot(j,P,S);return E0?(r[0]=2*(h*i+M*u+c*o-s*e)/f,r[1]=2*(c*i+M*e+s*u-h*o)/f,r[2]=2*(s*i+M*o+h*e-c*u)/f):(r[0]=2*(h*i+M*u+c*o-s*e),r[1]=2*(c*i+M*e+s*u-h*o),r[2]=2*(s*i+M*o+h*e-c*u)),A(t,n,r),t},getTranslation:w,getScaling:R,getRotation:z,fromRotationTranslationScale:function(t,n,a,r){var u=n[0],e=n[1],o=n[2],i=n[3],h=u+u,c=e+e,s=o+o,M=u*h,f=u*c,l=u*s,v=e*c,b=e*s,m=o*s,d=i*h,p=i*c,x=i*s,y=r[0],q=r[1],g=r[2];return t[0]=(1-(v+m))*y,t[1]=(f+x)*y,t[2]=(l-p)*y,t[3]=0,t[4]=(f-x)*q,t[5]=(1-(M+m))*q,t[6]=(b+d)*q,t[7]=0,t[8]=(l+p)*g,t[9]=(b-d)*g,t[10]=(1-(M+v))*g,t[11]=0,t[12]=a[0],t[13]=a[1],t[14]=a[2],t[15]=1,t},fromRotationTranslationScaleOrigin:function(t,n,a,r,u){var e=n[0],o=n[1],i=n[2],h=n[3],c=e+e,s=o+o,M=i+i,f=e*c,l=e*s,v=e*M,b=o*s,m=o*M,d=i*M,p=h*c,x=h*s,y=h*M,q=r[0],g=r[1],_=r[2],A=u[0],w=u[1],R=u[2],z=(1-(b+d))*q,O=(l+y)*q,j=(v-x)*q,P=(l-y)*g,S=(1-(f+d))*g,E=(m+p)*g,T=(v+x)*_,D=(m-p)*_,F=(1-(f+b))*_;return t[0]=z,t[1]=O,t[2]=j,t[3]=0,t[4]=P,t[5]=S,t[6]=E,t[7]=0,t[8]=T,t[9]=D,t[10]=F,t[11]=0,t[12]=a[0]+A-(z*A+P*w+T*R),t[13]=a[1]+w-(O*A+S*w+D*R),t[14]=a[2]+R-(j*A+E*w+F*R),t[15]=1,t},fromQuat:function(t,n){var a=n[0],r=n[1],u=n[2],e=n[3],o=a+a,i=r+r,h=u+u,c=a*o,s=r*o,M=r*i,f=u*o,l=u*i,v=u*h,b=e*o,m=e*i,d=e*h;return t[0]=1-M-v,t[1]=s+d,t[2]=f-m,t[3]=0,t[4]=s-d,t[5]=1-c-v,t[6]=l+b,t[7]=0,t[8]=f+m,t[9]=l-b,t[10]=1-c-M,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,n,a,r,u,e,o){var i=1/(a-n),h=1/(u-r),c=1/(e-o);return t[0]=2*e*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*e*h,t[6]=0,t[7]=0,t[8]=(a+n)*i,t[9]=(u+r)*h,t[10]=(o+e)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*e*2*c,t[15]=0,t},perspectiveNO:O,perspective:j,perspectiveZO:function(t,n,a,r,u){var e,o=1/Math.tan(n/2);return t[0]=o/a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=u&&u!==1/0?(e=1/(r-u),t[10]=u*e,t[14]=u*r*e):(t[10]=-1,t[14]=-r),t},perspectiveFromFieldOfView:function(t,n,a,r){var u=Math.tan(n.upDegrees*Math.PI/180),e=Math.tan(n.downDegrees*Math.PI/180),o=Math.tan(n.leftDegrees*Math.PI/180),i=Math.tan(n.rightDegrees*Math.PI/180),h=2/(o+i),c=2/(u+e);return t[0]=h,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-i)*h*.5,t[9]=(u-e)*c*.5,t[10]=r/(a-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*a/(a-r),t[15]=0,t},orthoNO:P,ortho:S,orthoZO:function(t,n,a,r,u,e,o){var i=1/(n-a),h=1/(r-u),c=1/(e-o);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*h,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=c,t[11]=0,t[12]=(n+a)*i,t[13]=(u+r)*h,t[14]=e*c,t[15]=1,t},lookAt:function(t,a,r,u){var e,o,i,h,c,s,M,f,l,v,b=a[0],m=a[1],d=a[2],p=u[0],x=u[1],y=u[2],q=r[0],_=r[1],A=r[2];return Math.abs(b-q)0&&(s*=l=1/Math.sqrt(l),M*=l,f*=l);var v=h*f-c*M,b=c*s-i*f,m=i*M-h*s;return(l=v*v+b*b+m*m)>0&&(v*=l=1/Math.sqrt(l),b*=l,m*=l),t[0]=v,t[1]=b,t[2]=m,t[3]=0,t[4]=M*m-f*b,t[5]=f*v-s*m,t[6]=s*b-M*v,t[7]=0,t[8]=s,t[9]=M,t[10]=f,t[11]=0,t[12]=u,t[13]=e,t[14]=o,t[15]=1,t},str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},frob:function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},add:function(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t[3]=n[3]+a[3],t[4]=n[4]+a[4],t[5]=n[5]+a[5],t[6]=n[6]+a[6],t[7]=n[7]+a[7],t[8]=n[8]+a[8],t[9]=n[9]+a[9],t[10]=n[10]+a[10],t[11]=n[11]+a[11],t[12]=n[12]+a[12],t[13]=n[13]+a[13],t[14]=n[14]+a[14],t[15]=n[15]+a[15],t},subtract:E,multiplyScalar:function(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t[3]=n[3]*a,t[4]=n[4]*a,t[5]=n[5]*a,t[6]=n[6]*a,t[7]=n[7]*a,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=n[11]*a,t[12]=n[12]*a,t[13]=n[13]*a,t[14]=n[14]*a,t[15]=n[15]*a,t},multiplyScalarAndAdd:function(t,n,a,r){return t[0]=n[0]+a[0]*r,t[1]=n[1]+a[1]*r,t[2]=n[2]+a[2]*r,t[3]=n[3]+a[3]*r,t[4]=n[4]+a[4]*r,t[5]=n[5]+a[5]*r,t[6]=n[6]+a[6]*r,t[7]=n[7]+a[7]*r,t[8]=n[8]+a[8]*r,t[9]=n[9]+a[9]*r,t[10]=n[10]+a[10]*r,t[11]=n[11]+a[11]*r,t[12]=n[12]+a[12]*r,t[13]=n[13]+a[13]*r,t[14]=n[14]+a[14]*r,t[15]=n[15]+a[15]*r,t},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]},equals:function(t,a){var r=t[0],u=t[1],e=t[2],o=t[3],i=t[4],h=t[5],c=t[6],s=t[7],M=t[8],f=t[9],l=t[10],v=t[11],b=t[12],m=t[13],d=t[14],p=t[15],x=a[0],y=a[1],q=a[2],g=a[3],_=a[4],A=a[5],w=a[6],R=a[7],z=a[8],O=a[9],j=a[10],P=a[11],S=a[12],E=a[13],T=a[14],D=a[15];return Math.abs(r-x)<=n*Math.max(1,Math.abs(r),Math.abs(x))&&Math.abs(u-y)<=n*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(e-q)<=n*Math.max(1,Math.abs(e),Math.abs(q))&&Math.abs(o-g)<=n*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(i-_)<=n*Math.max(1,Math.abs(i),Math.abs(_))&&Math.abs(h-A)<=n*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(c-w)<=n*Math.max(1,Math.abs(c),Math.abs(w))&&Math.abs(s-R)<=n*Math.max(1,Math.abs(s),Math.abs(R))&&Math.abs(M-z)<=n*Math.max(1,Math.abs(M),Math.abs(z))&&Math.abs(f-O)<=n*Math.max(1,Math.abs(f),Math.abs(O))&&Math.abs(l-j)<=n*Math.max(1,Math.abs(l),Math.abs(j))&&Math.abs(v-P)<=n*Math.max(1,Math.abs(v),Math.abs(P))&&Math.abs(b-S)<=n*Math.max(1,Math.abs(b),Math.abs(S))&&Math.abs(m-E)<=n*Math.max(1,Math.abs(m),Math.abs(E))&&Math.abs(d-T)<=n*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(p-D)<=n*Math.max(1,Math.abs(p),Math.abs(D))},mul:T,sub:D});function I(){var t=new a(3);return a!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function L(t){var n=t[0],a=t[1],r=t[2];return Math.hypot(n,a,r)}function V(t,n,r){var u=new a(3);return u[0]=t,u[1]=n,u[2]=r,u}function Q(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t}function Y(t,n,a){return t[0]=n[0]*a[0],t[1]=n[1]*a[1],t[2]=n[2]*a[2],t}function Z(t,n,a){return t[0]=n[0]/a[0],t[1]=n[1]/a[1],t[2]=n[2]/a[2],t}function X(t,n){var a=n[0]-t[0],r=n[1]-t[1],u=n[2]-t[2];return Math.hypot(a,r,u)}function N(t,n){var a=n[0]-t[0],r=n[1]-t[1],u=n[2]-t[2];return a*a+r*r+u*u}function B(t){var n=t[0],a=t[1],r=t[2];return n*n+a*a+r*r}function k(t,n){var a=n[0],r=n[1],u=n[2],e=a*a+r*r+u*u;return e>0&&(e=1/Math.sqrt(e)),t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function U(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function W(t,n,a){var r=n[0],u=n[1],e=n[2],o=a[0],i=a[1],h=a[2];return t[0]=u*h-e*i,t[1]=e*o-r*h,t[2]=r*i-u*o,t}var C,G=Q,H=Y,J=Z,K=X,$=N,tt=L,nt=B,at=(C=I(),function(t,n,a,r,u,e){var o,i;for(n||(n=3),a||(a=0),i=r?Math.min(r*n+a,t.length):t.length,o=a;o0&&(o=1/Math.sqrt(o)),t[0]=a*o,t[1]=r*o,t[2]=u*o,t[3]=e*o,t}function xt(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function yt(t,n,a,r){var u=n[0],e=n[1],o=n[2],i=n[3];return t[0]=u+r*(a[0]-u),t[1]=e+r*(a[1]-e),t[2]=o+r*(a[2]-o),t[3]=i+r*(a[3]-i),t}function qt(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function gt(t,a){var r=t[0],u=t[1],e=t[2],o=t[3],i=a[0],h=a[1],c=a[2],s=a[3];return Math.abs(r-i)<=n*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(u-h)<=n*Math.max(1,Math.abs(u),Math.abs(h))&&Math.abs(e-c)<=n*Math.max(1,Math.abs(e),Math.abs(c))&&Math.abs(o-s)<=n*Math.max(1,Math.abs(o),Math.abs(s))}var _t=st,At=Mt,wt=ft,Rt=vt,zt=bt,Ot=mt,jt=dt,Pt=function(){var t=ut();return function(n,a,r,u,e,o){var i,h;for(a||(a=4),r||(r=0),h=u?Math.min(u*a+r,n.length):n.length,i=r;i=1);do{h=(e=2*r()-1)*e+(o=2*r()-1)*o}while(h>=1);var c=Math.sqrt((1-i)/h);return t[0]=n*a,t[1]=n*u,t[2]=n*e*c,t[3]=n*o*c,t},transformMat4:function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3];return t[0]=a[0]*r+a[4]*u+a[8]*e+a[12]*o,t[1]=a[1]*r+a[5]*u+a[9]*e+a[13]*o,t[2]=a[2]*r+a[6]*u+a[10]*e+a[14]*o,t[3]=a[3]*r+a[7]*u+a[11]*e+a[15]*o,t},transformQuat:function(t,n,a){var r=n[0],u=n[1],e=n[2],o=a[0],i=a[1],h=a[2],c=a[3],s=c*r+i*e-h*u,M=c*u+h*r-o*e,f=c*e+o*u-i*r,l=-o*r-i*u-h*e;return t[0]=s*c+l*-o+M*-h-f*-i,t[1]=M*c+l*-i+f*-o-s*-h,t[2]=f*c+l*-h+s*-i-M*-o,t[3]=n[3],t},zero:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},exactEquals:qt,equals:gt,sub:_t,mul:At,div:wt,dist:Rt,sqrDist:zt,len:Ot,sqrLen:jt,forEach:Pt});function Et(){var t=new a(4);return a!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function Tt(t,n,a){a*=.5;var r=Math.sin(a);return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=Math.cos(a),t}function Dt(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],i=a[0],h=a[1],c=a[2],s=a[3];return t[0]=r*s+o*i+u*c-e*h,t[1]=u*s+o*h+e*i-r*c,t[2]=e*s+o*c+r*h-u*i,t[3]=o*s-r*i-u*h-e*c,t}function Ft(t,n,a){a*=.5;var r=n[0],u=n[1],e=n[2],o=n[3],i=Math.sin(a),h=Math.cos(a);return t[0]=r*h+o*i,t[1]=u*h+e*i,t[2]=e*h-u*i,t[3]=o*h-r*i,t}function It(t,n,a){a*=.5;var r=n[0],u=n[1],e=n[2],o=n[3],i=Math.sin(a),h=Math.cos(a);return t[0]=r*h-e*i,t[1]=u*h+o*i,t[2]=e*h+r*i,t[3]=o*h-u*i,t}function Lt(t,n,a){a*=.5;var r=n[0],u=n[1],e=n[2],o=n[3],i=Math.sin(a),h=Math.cos(a);return t[0]=r*h+u*i,t[1]=u*h-r*i,t[2]=e*h+o*i,t[3]=o*h-e*i,t}function Vt(t,n){var a=n[0],r=n[1],u=n[2],e=n[3],o=Math.sqrt(a*a+r*r+u*u),i=Math.exp(e),h=o>0?i*Math.sin(o)/o:0;return t[0]=a*h,t[1]=r*h,t[2]=u*h,t[3]=i*Math.cos(o),t}function Qt(t,n){var a=n[0],r=n[1],u=n[2],e=n[3],o=Math.sqrt(a*a+r*r+u*u),i=o>0?Math.atan2(o,e)/o:0;return t[0]=a*i,t[1]=r*i,t[2]=u*i,t[3]=.5*Math.log(a*a+r*r+u*u+e*e),t}function Yt(t,a,r,u){var e,o,i,h,c,s=a[0],M=a[1],f=a[2],l=a[3],v=r[0],b=r[1],m=r[2],d=r[3];return(o=s*v+M*b+f*m+l*d)<0&&(o=-o,v=-v,b=-b,m=-m,d=-d),1-o>n?(e=Math.acos(o),i=Math.sin(e),h=Math.sin((1-u)*e)/i,c=Math.sin(u*e)/i):(h=1-u,c=u),t[0]=h*s+c*v,t[1]=h*M+c*b,t[2]=h*f+c*m,t[3]=h*l+c*d,t}function Zt(t,n){var a,r=n[0]+n[4]+n[8];if(r>0)a=Math.sqrt(r+1),t[3]=.5*a,a=.5/a,t[0]=(n[5]-n[7])*a,t[1]=(n[6]-n[2])*a,t[2]=(n[1]-n[3])*a;else{var u=0;n[4]>n[0]&&(u=1),n[8]>n[3*u+u]&&(u=2);var e=(u+1)%3,o=(u+2)%3;a=Math.sqrt(n[3*u+u]-n[3*e+e]-n[3*o+o]+1),t[u]=.5*a,a=.5/a,t[3]=(n[3*e+o]-n[3*o+e])*a,t[e]=(n[3*e+u]+n[3*u+e])*a,t[o]=(n[3*o+u]+n[3*u+o])*a}return t}var Xt,Nt,Bt,kt,Ut,Wt,Ct=et,Gt=ot,Ht=it,Jt=ht,Kt=ct,$t=Dt,tn=lt,nn=xt,an=yt,rn=mt,un=rn,en=dt,on=en,hn=pt,cn=qt,sn=gt,Mn=(Xt=I(),Nt=V(1,0,0),Bt=V(0,1,0),function(t,n,a){var r=U(n,a);return r<-.999999?(W(Xt,Nt,n),tt(Xt)<1e-6&&W(Xt,Bt,n),k(Xt,Xt),Tt(t,Xt,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(W(Xt,n,a),t[0]=Xt[0],t[1]=Xt[1],t[2]=Xt[2],t[3]=1+r,hn(t,t))}),fn=(kt=Et(),Ut=Et(),function(t,n,a,r,u,e){return Yt(kt,n,u,e),Yt(Ut,a,r,e),Yt(t,kt,Ut,2*e*(1-e)),t}),ln=(Wt=m(),function(t,n,a,r){return Wt[0]=a[0],Wt[3]=a[1],Wt[6]=a[2],Wt[1]=r[0],Wt[4]=r[1],Wt[7]=r[2],Wt[2]=-n[0],Wt[5]=-n[1],Wt[8]=-n[2],hn(t,Zt(t,Wt))}),vn=Object.freeze({__proto__:null,create:Et,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},setAxisAngle:Tt,getAxisAngle:function(t,a){var r=2*Math.acos(a[3]),u=Math.sin(r/2);return u>n?(t[0]=a[0]/u,t[1]=a[1]/u,t[2]=a[2]/u):(t[0]=1,t[1]=0,t[2]=0),r},getAngle:function(t,n){var a=nn(t,n);return Math.acos(2*a*a-1)},multiply:Dt,rotateX:Ft,rotateY:It,rotateZ:Lt,calculateW:function(t,n){var a=n[0],r=n[1],u=n[2];return t[0]=a,t[1]=r,t[2]=u,t[3]=Math.sqrt(Math.abs(1-a*a-r*r-u*u)),t},exp:Vt,ln:Qt,pow:function(t,n,a){return Qt(t,n),tn(t,t,a),Vt(t,t),t},slerp:Yt,random:function(t){var n=r(),a=r(),u=r(),e=Math.sqrt(1-n),o=Math.sqrt(n);return t[0]=e*Math.sin(2*Math.PI*a),t[1]=e*Math.cos(2*Math.PI*a),t[2]=o*Math.sin(2*Math.PI*u),t[3]=o*Math.cos(2*Math.PI*u),t},invert:function(t,n){var a=n[0],r=n[1],u=n[2],e=n[3],o=a*a+r*r+u*u+e*e,i=o?1/o:0;return t[0]=-a*i,t[1]=-r*i,t[2]=-u*i,t[3]=e*i,t},conjugate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t},fromMat3:Zt,fromEuler:function(t,n,a,r){var u=.5*Math.PI/180;n*=u,a*=u,r*=u;var e=Math.sin(n),o=Math.cos(n),i=Math.sin(a),h=Math.cos(a),c=Math.sin(r),s=Math.cos(r);return t[0]=e*h*s-o*i*c,t[1]=o*i*s+e*h*c,t[2]=o*h*c-e*i*s,t[3]=o*h*s+e*i*c,t},str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},clone:Ct,fromValues:Gt,copy:Ht,set:Jt,add:Kt,mul:$t,scale:tn,dot:nn,lerp:an,length:rn,len:un,squaredLength:en,sqrLen:on,normalize:hn,exactEquals:cn,equals:sn,rotationTo:Mn,sqlerp:fn,setAxes:ln});function bn(t,n,a){var r=.5*a[0],u=.5*a[1],e=.5*a[2],o=n[0],i=n[1],h=n[2],c=n[3];return t[0]=o,t[1]=i,t[2]=h,t[3]=c,t[4]=r*c+u*h-e*i,t[5]=u*c+e*o-r*h,t[6]=e*c+r*i-u*o,t[7]=-r*o-u*i-e*h,t}function mn(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t}var dn=Ht;var pn=Ht;function xn(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],i=a[4],h=a[5],c=a[6],s=a[7],M=n[4],f=n[5],l=n[6],v=n[7],b=a[0],m=a[1],d=a[2],p=a[3];return t[0]=r*p+o*b+u*d-e*m,t[1]=u*p+o*m+e*b-r*d,t[2]=e*p+o*d+r*m-u*b,t[3]=o*p-r*b-u*m-e*d,t[4]=r*s+o*i+u*c-e*h+M*p+v*b+f*d-l*m,t[5]=u*s+o*h+e*i-r*c+f*p+v*m+l*b-M*d,t[6]=e*s+o*c+r*h-u*i+l*p+v*d+M*m-f*b,t[7]=o*s-r*i-u*h-e*c+v*p-M*b-f*m-l*d,t}var yn=xn;var qn=nn;var gn=rn,_n=gn,An=en,wn=An;var Rn=Object.freeze({__proto__:null,create:function(){var t=new a(8);return a!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t},clone:function(t){var n=new a(8);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n},fromValues:function(t,n,r,u,e,o,i,h){var c=new a(8);return c[0]=t,c[1]=n,c[2]=r,c[3]=u,c[4]=e,c[5]=o,c[6]=i,c[7]=h,c},fromRotationTranslationValues:function(t,n,r,u,e,o,i){var h=new a(8);h[0]=t,h[1]=n,h[2]=r,h[3]=u;var c=.5*e,s=.5*o,M=.5*i;return h[4]=c*u+s*r-M*n,h[5]=s*u+M*t-c*r,h[6]=M*u+c*n-s*t,h[7]=-c*t-s*n-M*r,h},fromRotationTranslation:bn,fromTranslation:function(t,n){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*n[0],t[5]=.5*n[1],t[6]=.5*n[2],t[7]=0,t},fromRotation:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},fromMat4:function(t,n){var r=Et();z(r,n);var u=new a(3);return w(u,n),bn(t,r,u),t},copy:mn,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},set:function(t,n,a,r,u,e,o,i,h){return t[0]=n,t[1]=a,t[2]=r,t[3]=u,t[4]=e,t[5]=o,t[6]=i,t[7]=h,t},getReal:dn,getDual:function(t,n){return t[0]=n[4],t[1]=n[5],t[2]=n[6],t[3]=n[7],t},setReal:pn,setDual:function(t,n){return t[4]=n[0],t[5]=n[1],t[6]=n[2],t[7]=n[3],t},getTranslation:function(t,n){var a=n[4],r=n[5],u=n[6],e=n[7],o=-n[0],i=-n[1],h=-n[2],c=n[3];return t[0]=2*(a*c+e*o+r*h-u*i),t[1]=2*(r*c+e*i+u*o-a*h),t[2]=2*(u*c+e*h+a*i-r*o),t},translate:function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],i=.5*a[0],h=.5*a[1],c=.5*a[2],s=n[4],M=n[5],f=n[6],l=n[7];return t[0]=r,t[1]=u,t[2]=e,t[3]=o,t[4]=o*i+u*c-e*h+s,t[5]=o*h+e*i-r*c+M,t[6]=o*c+r*h-u*i+f,t[7]=-r*i-u*h-e*c+l,t},rotateX:function(t,n,a){var r=-n[0],u=-n[1],e=-n[2],o=n[3],i=n[4],h=n[5],c=n[6],s=n[7],M=i*o+s*r+h*e-c*u,f=h*o+s*u+c*r-i*e,l=c*o+s*e+i*u-h*r,v=s*o-i*r-h*u-c*e;return Ft(t,n,a),r=t[0],u=t[1],e=t[2],o=t[3],t[4]=M*o+v*r+f*e-l*u,t[5]=f*o+v*u+l*r-M*e,t[6]=l*o+v*e+M*u-f*r,t[7]=v*o-M*r-f*u-l*e,t},rotateY:function(t,n,a){var r=-n[0],u=-n[1],e=-n[2],o=n[3],i=n[4],h=n[5],c=n[6],s=n[7],M=i*o+s*r+h*e-c*u,f=h*o+s*u+c*r-i*e,l=c*o+s*e+i*u-h*r,v=s*o-i*r-h*u-c*e;return It(t,n,a),r=t[0],u=t[1],e=t[2],o=t[3],t[4]=M*o+v*r+f*e-l*u,t[5]=f*o+v*u+l*r-M*e,t[6]=l*o+v*e+M*u-f*r,t[7]=v*o-M*r-f*u-l*e,t},rotateZ:function(t,n,a){var r=-n[0],u=-n[1],e=-n[2],o=n[3],i=n[4],h=n[5],c=n[6],s=n[7],M=i*o+s*r+h*e-c*u,f=h*o+s*u+c*r-i*e,l=c*o+s*e+i*u-h*r,v=s*o-i*r-h*u-c*e;return Lt(t,n,a),r=t[0],u=t[1],e=t[2],o=t[3],t[4]=M*o+v*r+f*e-l*u,t[5]=f*o+v*u+l*r-M*e,t[6]=l*o+v*e+M*u-f*r,t[7]=v*o-M*r-f*u-l*e,t},rotateByQuatAppend:function(t,n,a){var r=a[0],u=a[1],e=a[2],o=a[3],i=n[0],h=n[1],c=n[2],s=n[3];return t[0]=i*o+s*r+h*e-c*u,t[1]=h*o+s*u+c*r-i*e,t[2]=c*o+s*e+i*u-h*r,t[3]=s*o-i*r-h*u-c*e,i=n[4],h=n[5],c=n[6],s=n[7],t[4]=i*o+s*r+h*e-c*u,t[5]=h*o+s*u+c*r-i*e,t[6]=c*o+s*e+i*u-h*r,t[7]=s*o-i*r-h*u-c*e,t},rotateByQuatPrepend:function(t,n,a){var r=n[0],u=n[1],e=n[2],o=n[3],i=a[0],h=a[1],c=a[2],s=a[3];return t[0]=r*s+o*i+u*c-e*h,t[1]=u*s+o*h+e*i-r*c,t[2]=e*s+o*c+r*h-u*i,t[3]=o*s-r*i-u*h-e*c,i=a[4],h=a[5],c=a[6],s=a[7],t[4]=r*s+o*i+u*c-e*h,t[5]=u*s+o*h+e*i-r*c,t[6]=e*s+o*c+r*h-u*i,t[7]=o*s-r*i-u*h-e*c,t},rotateAroundAxis:function(t,a,r,u){if(Math.abs(u)0){a=Math.sqrt(a);var r=n[0]/a,u=n[1]/a,e=n[2]/a,o=n[3]/a,i=n[4],h=n[5],c=n[6],s=n[7],M=r*i+u*h+e*c+o*s;t[0]=r,t[1]=u,t[2]=e,t[3]=o,t[4]=(i-r*M)/a,t[5]=(h-u*M)/a,t[6]=(c-e*M)/a,t[7]=(s-o*M)/a}return t},str:function(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]},equals:function(t,a){var r=t[0],u=t[1],e=t[2],o=t[3],i=t[4],h=t[5],c=t[6],s=t[7],M=a[0],f=a[1],l=a[2],v=a[3],b=a[4],m=a[5],d=a[6],p=a[7];return Math.abs(r-M)<=n*Math.max(1,Math.abs(r),Math.abs(M))&&Math.abs(u-f)<=n*Math.max(1,Math.abs(u),Math.abs(f))&&Math.abs(e-l)<=n*Math.max(1,Math.abs(e),Math.abs(l))&&Math.abs(o-v)<=n*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(i-b)<=n*Math.max(1,Math.abs(i),Math.abs(b))&&Math.abs(h-m)<=n*Math.max(1,Math.abs(h),Math.abs(m))&&Math.abs(c-d)<=n*Math.max(1,Math.abs(c),Math.abs(d))&&Math.abs(s-p)<=n*Math.max(1,Math.abs(s),Math.abs(p))}});function zn(){var t=new a(2);return a!=Float32Array&&(t[0]=0,t[1]=0),t}function On(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t}function jn(t,n,a){return t[0]=n[0]*a[0],t[1]=n[1]*a[1],t}function Pn(t,n,a){return t[0]=n[0]/a[0],t[1]=n[1]/a[1],t}function Sn(t,n){var a=n[0]-t[0],r=n[1]-t[1];return Math.hypot(a,r)}function En(t,n){var a=n[0]-t[0],r=n[1]-t[1];return a*a+r*r}function Tn(t){var n=t[0],a=t[1];return Math.hypot(n,a)}function Dn(t){var n=t[0],a=t[1];return n*n+a*a}var Fn=Tn,In=On,Ln=jn,Vn=Pn,Qn=Sn,Yn=En,Zn=Dn,Xn=function(){var t=zn();return function(n,a,r,u,e,o){var i,h;for(a||(a=2),r||(r=0),h=u?Math.min(u*a+r,n.length):n.length,i=r;i0&&(u=1/Math.sqrt(u)),t[0]=n[0]*u,t[1]=n[1]*u,t},dot:function(t,n){return t[0]*n[0]+t[1]*n[1]},cross:function(t,n,a){var r=n[0]*a[1]-n[1]*a[0];return t[0]=t[1]=0,t[2]=r,t},lerp:function(t,n,a,r){var u=n[0],e=n[1];return t[0]=u+r*(a[0]-u),t[1]=e+r*(a[1]-e),t},random:function(t,n){n=n||1;var a=2*r()*Math.PI;return t[0]=Math.cos(a)*n,t[1]=Math.sin(a)*n,t},transformMat2:function(t,n,a){var r=n[0],u=n[1];return t[0]=a[0]*r+a[2]*u,t[1]=a[1]*r+a[3]*u,t},transformMat2d:function(t,n,a){var r=n[0],u=n[1];return t[0]=a[0]*r+a[2]*u+a[4],t[1]=a[1]*r+a[3]*u+a[5],t},transformMat3:function(t,n,a){var r=n[0],u=n[1];return t[0]=a[0]*r+a[3]*u+a[6],t[1]=a[1]*r+a[4]*u+a[7],t},transformMat4:function(t,n,a){var r=n[0],u=n[1];return t[0]=a[0]*r+a[4]*u+a[12],t[1]=a[1]*r+a[5]*u+a[13],t},rotate:function(t,n,a,r){var u=n[0]-a[0],e=n[1]-a[1],o=Math.sin(r),i=Math.cos(r);return t[0]=u*i-e*o+a[0],t[1]=u*o+e*i+a[1],t},angle:function(t,n){var a=t[0],r=t[1],u=n[0],e=n[1],o=Math.sqrt(a*a+r*r)*Math.sqrt(u*u+e*e),i=o&&(a*u+r*e)/o;return Math.acos(Math.min(Math.max(i,-1),1))},zero:function(t){return t[0]=0,t[1]=0,t},str:function(t){return"vec2("+t[0]+", "+t[1]+")"},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]},equals:function(t,a){var r=t[0],u=t[1],e=a[0],o=a[1];return Math.abs(r-e)<=n*Math.max(1,Math.abs(r),Math.abs(e))&&Math.abs(u-o)<=n*Math.max(1,Math.abs(u),Math.abs(o))},len:Fn,sub:In,mul:Ln,div:Vn,dist:Qn,sqrDist:Yn,sqrLen:Zn,forEach:Xn});t.glMatrix=e,t.mat2=s,t.mat2d=b,t.mat3=q,t.mat4=F,t.quat=vn,t.quat2=Rn,t.vec2=Nn,t.vec3=rt,t.vec4=St,Object.defineProperty(t,"__esModule",{value:!0})})); diff --git a/build_vtk_bundle/node_modules/gl-matrix/gl-matrix.js b/build_vtk_bundle/node_modules/gl-matrix/gl-matrix.js deleted file mode 100755 index b360046d..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/gl-matrix.js +++ /dev/null @@ -1,7711 +0,0 @@ - -/*! -@fileoverview gl-matrix - High performance matrix and vector operations -@author Brandon Jones -@author Colin MacKenzie IV -@version 3.4.3 - -Copyright (c) 2015-2021, Brandon Jones, Colin MacKenzie IV. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -*/ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : - typeof define === 'function' && define.amd ? define(['exports'], factory) : - (global = global || self, factory(global.glMatrix = {})); -}(this, (function (exports) { 'use strict'; - - /** - * Common utilities - * @module glMatrix - */ - // Configuration Constants - var EPSILON = 0.000001; - var ARRAY_TYPE = typeof Float32Array !== 'undefined' ? Float32Array : Array; - var RANDOM = Math.random; - /** - * Sets the type of array used when creating new vectors and matrices - * - * @param {Float32ArrayConstructor | ArrayConstructor} type Array type, such as Float32Array or Array - */ - - function setMatrixArrayType(type) { - ARRAY_TYPE = type; - } - var degree = Math.PI / 180; - /** - * Convert Degree To Radian - * - * @param {Number} a Angle in Degrees - */ - - function toRadian(a) { - return a * degree; - } - /** - * Tests whether or not the arguments have approximately the same value, within an absolute - * or relative tolerance of glMatrix.EPSILON (an absolute tolerance is used for values less - * than or equal to 1.0, and a relative tolerance is used for larger values) - * - * @param {Number} a The first number to test. - * @param {Number} b The second number to test. - * @returns {Boolean} True if the numbers are approximately equal, false otherwise. - */ - - function equals(a, b) { - return Math.abs(a - b) <= EPSILON * Math.max(1.0, Math.abs(a), Math.abs(b)); - } - if (!Math.hypot) Math.hypot = function () { - var y = 0, - i = arguments.length; - - while (i--) { - y += arguments[i] * arguments[i]; - } - - return Math.sqrt(y); - }; - - var common = /*#__PURE__*/Object.freeze({ - __proto__: null, - EPSILON: EPSILON, - get ARRAY_TYPE () { return ARRAY_TYPE; }, - RANDOM: RANDOM, - setMatrixArrayType: setMatrixArrayType, - toRadian: toRadian, - equals: equals - }); - - /** - * 2x2 Matrix - * @module mat2 - */ - - /** - * Creates a new identity mat2 - * - * @returns {mat2} a new 2x2 matrix - */ - - function create() { - var out = new ARRAY_TYPE(4); - - if (ARRAY_TYPE != Float32Array) { - out[1] = 0; - out[2] = 0; - } - - out[0] = 1; - out[3] = 1; - return out; - } - /** - * Creates a new mat2 initialized with values from an existing matrix - * - * @param {ReadonlyMat2} a matrix to clone - * @returns {mat2} a new 2x2 matrix - */ - - function clone(a) { - var out = new ARRAY_TYPE(4); - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - return out; - } - /** - * Copy the values from one mat2 to another - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the source matrix - * @returns {mat2} out - */ - - function copy(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - return out; - } - /** - * Set a mat2 to the identity matrix - * - * @param {mat2} out the receiving matrix - * @returns {mat2} out - */ - - function identity(out) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 1; - return out; - } - /** - * Create a new mat2 with the given values - * - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m10 Component in column 1, row 0 position (index 2) - * @param {Number} m11 Component in column 1, row 1 position (index 3) - * @returns {mat2} out A new 2x2 matrix - */ - - function fromValues(m00, m01, m10, m11) { - var out = new ARRAY_TYPE(4); - out[0] = m00; - out[1] = m01; - out[2] = m10; - out[3] = m11; - return out; - } - /** - * Set the components of a mat2 to the given values - * - * @param {mat2} out the receiving matrix - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m10 Component in column 1, row 0 position (index 2) - * @param {Number} m11 Component in column 1, row 1 position (index 3) - * @returns {mat2} out - */ - - function set(out, m00, m01, m10, m11) { - out[0] = m00; - out[1] = m01; - out[2] = m10; - out[3] = m11; - return out; - } - /** - * Transpose the values of a mat2 - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the source matrix - * @returns {mat2} out - */ - - function transpose(out, a) { - // If we are transposing ourselves we can skip a few steps but have to cache - // some values - if (out === a) { - var a1 = a[1]; - out[1] = a[2]; - out[2] = a1; - } else { - out[0] = a[0]; - out[1] = a[2]; - out[2] = a[1]; - out[3] = a[3]; - } - - return out; - } - /** - * Inverts a mat2 - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the source matrix - * @returns {mat2} out - */ - - function invert(out, a) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; // Calculate the determinant - - var det = a0 * a3 - a2 * a1; - - if (!det) { - return null; - } - - det = 1.0 / det; - out[0] = a3 * det; - out[1] = -a1 * det; - out[2] = -a2 * det; - out[3] = a0 * det; - return out; - } - /** - * Calculates the adjugate of a mat2 - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the source matrix - * @returns {mat2} out - */ - - function adjoint(out, a) { - // Caching this value is nessecary if out == a - var a0 = a[0]; - out[0] = a[3]; - out[1] = -a[1]; - out[2] = -a[2]; - out[3] = a0; - return out; - } - /** - * Calculates the determinant of a mat2 - * - * @param {ReadonlyMat2} a the source matrix - * @returns {Number} determinant of a - */ - - function determinant(a) { - return a[0] * a[3] - a[2] * a[1]; - } - /** - * Multiplies two mat2's - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the first operand - * @param {ReadonlyMat2} b the second operand - * @returns {mat2} out - */ - - function multiply(out, a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3]; - out[0] = a0 * b0 + a2 * b1; - out[1] = a1 * b0 + a3 * b1; - out[2] = a0 * b2 + a2 * b3; - out[3] = a1 * b2 + a3 * b3; - return out; - } - /** - * Rotates a mat2 by the given angle - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat2} out - */ - - function rotate(out, a, rad) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var s = Math.sin(rad); - var c = Math.cos(rad); - out[0] = a0 * c + a2 * s; - out[1] = a1 * c + a3 * s; - out[2] = a0 * -s + a2 * c; - out[3] = a1 * -s + a3 * c; - return out; - } - /** - * Scales the mat2 by the dimensions in the given vec2 - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the matrix to rotate - * @param {ReadonlyVec2} v the vec2 to scale the matrix by - * @returns {mat2} out - **/ - - function scale(out, a, v) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var v0 = v[0], - v1 = v[1]; - out[0] = a0 * v0; - out[1] = a1 * v0; - out[2] = a2 * v1; - out[3] = a3 * v1; - return out; - } - /** - * Creates a matrix from a given angle - * This is equivalent to (but much faster than): - * - * mat2.identity(dest); - * mat2.rotate(dest, dest, rad); - * - * @param {mat2} out mat2 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat2} out - */ - - function fromRotation(out, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); - out[0] = c; - out[1] = s; - out[2] = -s; - out[3] = c; - return out; - } - /** - * Creates a matrix from a vector scaling - * This is equivalent to (but much faster than): - * - * mat2.identity(dest); - * mat2.scale(dest, dest, vec); - * - * @param {mat2} out mat2 receiving operation result - * @param {ReadonlyVec2} v Scaling vector - * @returns {mat2} out - */ - - function fromScaling(out, v) { - out[0] = v[0]; - out[1] = 0; - out[2] = 0; - out[3] = v[1]; - return out; - } - /** - * Returns a string representation of a mat2 - * - * @param {ReadonlyMat2} a matrix to represent as a string - * @returns {String} string representation of the matrix - */ - - function str(a) { - return "mat2(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ")"; - } - /** - * Returns Frobenius norm of a mat2 - * - * @param {ReadonlyMat2} a the matrix to calculate Frobenius norm of - * @returns {Number} Frobenius norm - */ - - function frob(a) { - return Math.hypot(a[0], a[1], a[2], a[3]); - } - /** - * Returns L, D and U matrices (Lower triangular, Diagonal and Upper triangular) by factorizing the input matrix - * @param {ReadonlyMat2} L the lower triangular matrix - * @param {ReadonlyMat2} D the diagonal matrix - * @param {ReadonlyMat2} U the upper triangular matrix - * @param {ReadonlyMat2} a the input matrix to factorize - */ - - function LDU(L, D, U, a) { - L[2] = a[2] / a[0]; - U[0] = a[0]; - U[1] = a[1]; - U[3] = a[3] - L[2] * U[1]; - return [L, D, U]; - } - /** - * Adds two mat2's - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the first operand - * @param {ReadonlyMat2} b the second operand - * @returns {mat2} out - */ - - function add(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - out[3] = a[3] + b[3]; - return out; - } - /** - * Subtracts matrix b from matrix a - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the first operand - * @param {ReadonlyMat2} b the second operand - * @returns {mat2} out - */ - - function subtract(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - out[2] = a[2] - b[2]; - out[3] = a[3] - b[3]; - return out; - } - /** - * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyMat2} a The first matrix. - * @param {ReadonlyMat2} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - - function exactEquals(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3]; - } - /** - * Returns whether or not the matrices have approximately the same elements in the same position. - * - * @param {ReadonlyMat2} a The first matrix. - * @param {ReadonlyMat2} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - - function equals$1(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3]; - return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)); - } - /** - * Multiply each element of the matrix by a scalar. - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the matrix to scale - * @param {Number} b amount to scale the matrix's elements by - * @returns {mat2} out - */ - - function multiplyScalar(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - out[3] = a[3] * b; - return out; - } - /** - * Adds two mat2's after multiplying each element of the second operand by a scalar value. - * - * @param {mat2} out the receiving vector - * @param {ReadonlyMat2} a the first operand - * @param {ReadonlyMat2} b the second operand - * @param {Number} scale the amount to scale b's elements by before adding - * @returns {mat2} out - */ - - function multiplyScalarAndAdd(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - out[2] = a[2] + b[2] * scale; - out[3] = a[3] + b[3] * scale; - return out; - } - /** - * Alias for {@link mat2.multiply} - * @function - */ - - var mul = multiply; - /** - * Alias for {@link mat2.subtract} - * @function - */ - - var sub = subtract; - - var mat2 = /*#__PURE__*/Object.freeze({ - __proto__: null, - create: create, - clone: clone, - copy: copy, - identity: identity, - fromValues: fromValues, - set: set, - transpose: transpose, - invert: invert, - adjoint: adjoint, - determinant: determinant, - multiply: multiply, - rotate: rotate, - scale: scale, - fromRotation: fromRotation, - fromScaling: fromScaling, - str: str, - frob: frob, - LDU: LDU, - add: add, - subtract: subtract, - exactEquals: exactEquals, - equals: equals$1, - multiplyScalar: multiplyScalar, - multiplyScalarAndAdd: multiplyScalarAndAdd, - mul: mul, - sub: sub - }); - - /** - * 2x3 Matrix - * @module mat2d - * @description - * A mat2d contains six elements defined as: - *
-   * [a, b,
-   *  c, d,
-   *  tx, ty]
-   * 
- * This is a short form for the 3x3 matrix: - *
-   * [a, b, 0,
-   *  c, d, 0,
-   *  tx, ty, 1]
-   * 
- * The last column is ignored so the array is shorter and operations are faster. - */ - - /** - * Creates a new identity mat2d - * - * @returns {mat2d} a new 2x3 matrix - */ - - function create$1() { - var out = new ARRAY_TYPE(6); - - if (ARRAY_TYPE != Float32Array) { - out[1] = 0; - out[2] = 0; - out[4] = 0; - out[5] = 0; - } - - out[0] = 1; - out[3] = 1; - return out; - } - /** - * Creates a new mat2d initialized with values from an existing matrix - * - * @param {ReadonlyMat2d} a matrix to clone - * @returns {mat2d} a new 2x3 matrix - */ - - function clone$1(a) { - var out = new ARRAY_TYPE(6); - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - return out; - } - /** - * Copy the values from one mat2d to another - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the source matrix - * @returns {mat2d} out - */ - - function copy$1(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - return out; - } - /** - * Set a mat2d to the identity matrix - * - * @param {mat2d} out the receiving matrix - * @returns {mat2d} out - */ - - function identity$1(out) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 1; - out[4] = 0; - out[5] = 0; - return out; - } - /** - * Create a new mat2d with the given values - * - * @param {Number} a Component A (index 0) - * @param {Number} b Component B (index 1) - * @param {Number} c Component C (index 2) - * @param {Number} d Component D (index 3) - * @param {Number} tx Component TX (index 4) - * @param {Number} ty Component TY (index 5) - * @returns {mat2d} A new mat2d - */ - - function fromValues$1(a, b, c, d, tx, ty) { - var out = new ARRAY_TYPE(6); - out[0] = a; - out[1] = b; - out[2] = c; - out[3] = d; - out[4] = tx; - out[5] = ty; - return out; - } - /** - * Set the components of a mat2d to the given values - * - * @param {mat2d} out the receiving matrix - * @param {Number} a Component A (index 0) - * @param {Number} b Component B (index 1) - * @param {Number} c Component C (index 2) - * @param {Number} d Component D (index 3) - * @param {Number} tx Component TX (index 4) - * @param {Number} ty Component TY (index 5) - * @returns {mat2d} out - */ - - function set$1(out, a, b, c, d, tx, ty) { - out[0] = a; - out[1] = b; - out[2] = c; - out[3] = d; - out[4] = tx; - out[5] = ty; - return out; - } - /** - * Inverts a mat2d - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the source matrix - * @returns {mat2d} out - */ - - function invert$1(out, a) { - var aa = a[0], - ab = a[1], - ac = a[2], - ad = a[3]; - var atx = a[4], - aty = a[5]; - var det = aa * ad - ab * ac; - - if (!det) { - return null; - } - - det = 1.0 / det; - out[0] = ad * det; - out[1] = -ab * det; - out[2] = -ac * det; - out[3] = aa * det; - out[4] = (ac * aty - ad * atx) * det; - out[5] = (ab * atx - aa * aty) * det; - return out; - } - /** - * Calculates the determinant of a mat2d - * - * @param {ReadonlyMat2d} a the source matrix - * @returns {Number} determinant of a - */ - - function determinant$1(a) { - return a[0] * a[3] - a[1] * a[2]; - } - /** - * Multiplies two mat2d's - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the first operand - * @param {ReadonlyMat2d} b the second operand - * @returns {mat2d} out - */ - - function multiply$1(out, a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3], - b4 = b[4], - b5 = b[5]; - out[0] = a0 * b0 + a2 * b1; - out[1] = a1 * b0 + a3 * b1; - out[2] = a0 * b2 + a2 * b3; - out[3] = a1 * b2 + a3 * b3; - out[4] = a0 * b4 + a2 * b5 + a4; - out[5] = a1 * b4 + a3 * b5 + a5; - return out; - } - /** - * Rotates a mat2d by the given angle - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat2d} out - */ - - function rotate$1(out, a, rad) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5]; - var s = Math.sin(rad); - var c = Math.cos(rad); - out[0] = a0 * c + a2 * s; - out[1] = a1 * c + a3 * s; - out[2] = a0 * -s + a2 * c; - out[3] = a1 * -s + a3 * c; - out[4] = a4; - out[5] = a5; - return out; - } - /** - * Scales the mat2d by the dimensions in the given vec2 - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the matrix to translate - * @param {ReadonlyVec2} v the vec2 to scale the matrix by - * @returns {mat2d} out - **/ - - function scale$1(out, a, v) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5]; - var v0 = v[0], - v1 = v[1]; - out[0] = a0 * v0; - out[1] = a1 * v0; - out[2] = a2 * v1; - out[3] = a3 * v1; - out[4] = a4; - out[5] = a5; - return out; - } - /** - * Translates the mat2d by the dimensions in the given vec2 - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the matrix to translate - * @param {ReadonlyVec2} v the vec2 to translate the matrix by - * @returns {mat2d} out - **/ - - function translate(out, a, v) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5]; - var v0 = v[0], - v1 = v[1]; - out[0] = a0; - out[1] = a1; - out[2] = a2; - out[3] = a3; - out[4] = a0 * v0 + a2 * v1 + a4; - out[5] = a1 * v0 + a3 * v1 + a5; - return out; - } - /** - * Creates a matrix from a given angle - * This is equivalent to (but much faster than): - * - * mat2d.identity(dest); - * mat2d.rotate(dest, dest, rad); - * - * @param {mat2d} out mat2d receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat2d} out - */ - - function fromRotation$1(out, rad) { - var s = Math.sin(rad), - c = Math.cos(rad); - out[0] = c; - out[1] = s; - out[2] = -s; - out[3] = c; - out[4] = 0; - out[5] = 0; - return out; - } - /** - * Creates a matrix from a vector scaling - * This is equivalent to (but much faster than): - * - * mat2d.identity(dest); - * mat2d.scale(dest, dest, vec); - * - * @param {mat2d} out mat2d receiving operation result - * @param {ReadonlyVec2} v Scaling vector - * @returns {mat2d} out - */ - - function fromScaling$1(out, v) { - out[0] = v[0]; - out[1] = 0; - out[2] = 0; - out[3] = v[1]; - out[4] = 0; - out[5] = 0; - return out; - } - /** - * Creates a matrix from a vector translation - * This is equivalent to (but much faster than): - * - * mat2d.identity(dest); - * mat2d.translate(dest, dest, vec); - * - * @param {mat2d} out mat2d receiving operation result - * @param {ReadonlyVec2} v Translation vector - * @returns {mat2d} out - */ - - function fromTranslation(out, v) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 1; - out[4] = v[0]; - out[5] = v[1]; - return out; - } - /** - * Returns a string representation of a mat2d - * - * @param {ReadonlyMat2d} a matrix to represent as a string - * @returns {String} string representation of the matrix - */ - - function str$1(a) { - return "mat2d(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ")"; - } - /** - * Returns Frobenius norm of a mat2d - * - * @param {ReadonlyMat2d} a the matrix to calculate Frobenius norm of - * @returns {Number} Frobenius norm - */ - - function frob$1(a) { - return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], 1); - } - /** - * Adds two mat2d's - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the first operand - * @param {ReadonlyMat2d} b the second operand - * @returns {mat2d} out - */ - - function add$1(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - out[3] = a[3] + b[3]; - out[4] = a[4] + b[4]; - out[5] = a[5] + b[5]; - return out; - } - /** - * Subtracts matrix b from matrix a - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the first operand - * @param {ReadonlyMat2d} b the second operand - * @returns {mat2d} out - */ - - function subtract$1(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - out[2] = a[2] - b[2]; - out[3] = a[3] - b[3]; - out[4] = a[4] - b[4]; - out[5] = a[5] - b[5]; - return out; - } - /** - * Multiply each element of the matrix by a scalar. - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the matrix to scale - * @param {Number} b amount to scale the matrix's elements by - * @returns {mat2d} out - */ - - function multiplyScalar$1(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - out[3] = a[3] * b; - out[4] = a[4] * b; - out[5] = a[5] * b; - return out; - } - /** - * Adds two mat2d's after multiplying each element of the second operand by a scalar value. - * - * @param {mat2d} out the receiving vector - * @param {ReadonlyMat2d} a the first operand - * @param {ReadonlyMat2d} b the second operand - * @param {Number} scale the amount to scale b's elements by before adding - * @returns {mat2d} out - */ - - function multiplyScalarAndAdd$1(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - out[2] = a[2] + b[2] * scale; - out[3] = a[3] + b[3] * scale; - out[4] = a[4] + b[4] * scale; - out[5] = a[5] + b[5] * scale; - return out; - } - /** - * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyMat2d} a The first matrix. - * @param {ReadonlyMat2d} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - - function exactEquals$1(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5]; - } - /** - * Returns whether or not the matrices have approximately the same elements in the same position. - * - * @param {ReadonlyMat2d} a The first matrix. - * @param {ReadonlyMat2d} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - - function equals$2(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3], - b4 = b[4], - b5 = b[5]; - return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)); - } - /** - * Alias for {@link mat2d.multiply} - * @function - */ - - var mul$1 = multiply$1; - /** - * Alias for {@link mat2d.subtract} - * @function - */ - - var sub$1 = subtract$1; - - var mat2d = /*#__PURE__*/Object.freeze({ - __proto__: null, - create: create$1, - clone: clone$1, - copy: copy$1, - identity: identity$1, - fromValues: fromValues$1, - set: set$1, - invert: invert$1, - determinant: determinant$1, - multiply: multiply$1, - rotate: rotate$1, - scale: scale$1, - translate: translate, - fromRotation: fromRotation$1, - fromScaling: fromScaling$1, - fromTranslation: fromTranslation, - str: str$1, - frob: frob$1, - add: add$1, - subtract: subtract$1, - multiplyScalar: multiplyScalar$1, - multiplyScalarAndAdd: multiplyScalarAndAdd$1, - exactEquals: exactEquals$1, - equals: equals$2, - mul: mul$1, - sub: sub$1 - }); - - /** - * 3x3 Matrix - * @module mat3 - */ - - /** - * Creates a new identity mat3 - * - * @returns {mat3} a new 3x3 matrix - */ - - function create$2() { - var out = new ARRAY_TYPE(9); - - if (ARRAY_TYPE != Float32Array) { - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[5] = 0; - out[6] = 0; - out[7] = 0; - } - - out[0] = 1; - out[4] = 1; - out[8] = 1; - return out; - } - /** - * Copies the upper-left 3x3 values into the given mat3. - * - * @param {mat3} out the receiving 3x3 matrix - * @param {ReadonlyMat4} a the source 4x4 matrix - * @returns {mat3} out - */ - - function fromMat4(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[4]; - out[4] = a[5]; - out[5] = a[6]; - out[6] = a[8]; - out[7] = a[9]; - out[8] = a[10]; - return out; - } - /** - * Creates a new mat3 initialized with values from an existing matrix - * - * @param {ReadonlyMat3} a matrix to clone - * @returns {mat3} a new 3x3 matrix - */ - - function clone$2(a) { - var out = new ARRAY_TYPE(9); - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - out[6] = a[6]; - out[7] = a[7]; - out[8] = a[8]; - return out; - } - /** - * Copy the values from one mat3 to another - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the source matrix - * @returns {mat3} out - */ - - function copy$2(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - out[6] = a[6]; - out[7] = a[7]; - out[8] = a[8]; - return out; - } - /** - * Create a new mat3 with the given values - * - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m02 Component in column 0, row 2 position (index 2) - * @param {Number} m10 Component in column 1, row 0 position (index 3) - * @param {Number} m11 Component in column 1, row 1 position (index 4) - * @param {Number} m12 Component in column 1, row 2 position (index 5) - * @param {Number} m20 Component in column 2, row 0 position (index 6) - * @param {Number} m21 Component in column 2, row 1 position (index 7) - * @param {Number} m22 Component in column 2, row 2 position (index 8) - * @returns {mat3} A new mat3 - */ - - function fromValues$2(m00, m01, m02, m10, m11, m12, m20, m21, m22) { - var out = new ARRAY_TYPE(9); - out[0] = m00; - out[1] = m01; - out[2] = m02; - out[3] = m10; - out[4] = m11; - out[5] = m12; - out[6] = m20; - out[7] = m21; - out[8] = m22; - return out; - } - /** - * Set the components of a mat3 to the given values - * - * @param {mat3} out the receiving matrix - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m02 Component in column 0, row 2 position (index 2) - * @param {Number} m10 Component in column 1, row 0 position (index 3) - * @param {Number} m11 Component in column 1, row 1 position (index 4) - * @param {Number} m12 Component in column 1, row 2 position (index 5) - * @param {Number} m20 Component in column 2, row 0 position (index 6) - * @param {Number} m21 Component in column 2, row 1 position (index 7) - * @param {Number} m22 Component in column 2, row 2 position (index 8) - * @returns {mat3} out - */ - - function set$2(out, m00, m01, m02, m10, m11, m12, m20, m21, m22) { - out[0] = m00; - out[1] = m01; - out[2] = m02; - out[3] = m10; - out[4] = m11; - out[5] = m12; - out[6] = m20; - out[7] = m21; - out[8] = m22; - return out; - } - /** - * Set a mat3 to the identity matrix - * - * @param {mat3} out the receiving matrix - * @returns {mat3} out - */ - - function identity$2(out) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 1; - out[5] = 0; - out[6] = 0; - out[7] = 0; - out[8] = 1; - return out; - } - /** - * Transpose the values of a mat3 - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the source matrix - * @returns {mat3} out - */ - - function transpose$1(out, a) { - // If we are transposing ourselves we can skip a few steps but have to cache some values - if (out === a) { - var a01 = a[1], - a02 = a[2], - a12 = a[5]; - out[1] = a[3]; - out[2] = a[6]; - out[3] = a01; - out[5] = a[7]; - out[6] = a02; - out[7] = a12; - } else { - out[0] = a[0]; - out[1] = a[3]; - out[2] = a[6]; - out[3] = a[1]; - out[4] = a[4]; - out[5] = a[7]; - out[6] = a[2]; - out[7] = a[5]; - out[8] = a[8]; - } - - return out; - } - /** - * Inverts a mat3 - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the source matrix - * @returns {mat3} out - */ - - function invert$2(out, a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2]; - var a10 = a[3], - a11 = a[4], - a12 = a[5]; - var a20 = a[6], - a21 = a[7], - a22 = a[8]; - var b01 = a22 * a11 - a12 * a21; - var b11 = -a22 * a10 + a12 * a20; - var b21 = a21 * a10 - a11 * a20; // Calculate the determinant - - var det = a00 * b01 + a01 * b11 + a02 * b21; - - if (!det) { - return null; - } - - det = 1.0 / det; - out[0] = b01 * det; - out[1] = (-a22 * a01 + a02 * a21) * det; - out[2] = (a12 * a01 - a02 * a11) * det; - out[3] = b11 * det; - out[4] = (a22 * a00 - a02 * a20) * det; - out[5] = (-a12 * a00 + a02 * a10) * det; - out[6] = b21 * det; - out[7] = (-a21 * a00 + a01 * a20) * det; - out[8] = (a11 * a00 - a01 * a10) * det; - return out; - } - /** - * Calculates the adjugate of a mat3 - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the source matrix - * @returns {mat3} out - */ - - function adjoint$1(out, a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2]; - var a10 = a[3], - a11 = a[4], - a12 = a[5]; - var a20 = a[6], - a21 = a[7], - a22 = a[8]; - out[0] = a11 * a22 - a12 * a21; - out[1] = a02 * a21 - a01 * a22; - out[2] = a01 * a12 - a02 * a11; - out[3] = a12 * a20 - a10 * a22; - out[4] = a00 * a22 - a02 * a20; - out[5] = a02 * a10 - a00 * a12; - out[6] = a10 * a21 - a11 * a20; - out[7] = a01 * a20 - a00 * a21; - out[8] = a00 * a11 - a01 * a10; - return out; - } - /** - * Calculates the determinant of a mat3 - * - * @param {ReadonlyMat3} a the source matrix - * @returns {Number} determinant of a - */ - - function determinant$2(a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2]; - var a10 = a[3], - a11 = a[4], - a12 = a[5]; - var a20 = a[6], - a21 = a[7], - a22 = a[8]; - return a00 * (a22 * a11 - a12 * a21) + a01 * (-a22 * a10 + a12 * a20) + a02 * (a21 * a10 - a11 * a20); - } - /** - * Multiplies two mat3's - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the first operand - * @param {ReadonlyMat3} b the second operand - * @returns {mat3} out - */ - - function multiply$2(out, a, b) { - var a00 = a[0], - a01 = a[1], - a02 = a[2]; - var a10 = a[3], - a11 = a[4], - a12 = a[5]; - var a20 = a[6], - a21 = a[7], - a22 = a[8]; - var b00 = b[0], - b01 = b[1], - b02 = b[2]; - var b10 = b[3], - b11 = b[4], - b12 = b[5]; - var b20 = b[6], - b21 = b[7], - b22 = b[8]; - out[0] = b00 * a00 + b01 * a10 + b02 * a20; - out[1] = b00 * a01 + b01 * a11 + b02 * a21; - out[2] = b00 * a02 + b01 * a12 + b02 * a22; - out[3] = b10 * a00 + b11 * a10 + b12 * a20; - out[4] = b10 * a01 + b11 * a11 + b12 * a21; - out[5] = b10 * a02 + b11 * a12 + b12 * a22; - out[6] = b20 * a00 + b21 * a10 + b22 * a20; - out[7] = b20 * a01 + b21 * a11 + b22 * a21; - out[8] = b20 * a02 + b21 * a12 + b22 * a22; - return out; - } - /** - * Translate a mat3 by the given vector - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the matrix to translate - * @param {ReadonlyVec2} v vector to translate by - * @returns {mat3} out - */ - - function translate$1(out, a, v) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a10 = a[3], - a11 = a[4], - a12 = a[5], - a20 = a[6], - a21 = a[7], - a22 = a[8], - x = v[0], - y = v[1]; - out[0] = a00; - out[1] = a01; - out[2] = a02; - out[3] = a10; - out[4] = a11; - out[5] = a12; - out[6] = x * a00 + y * a10 + a20; - out[7] = x * a01 + y * a11 + a21; - out[8] = x * a02 + y * a12 + a22; - return out; - } - /** - * Rotates a mat3 by the given angle - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat3} out - */ - - function rotate$2(out, a, rad) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a10 = a[3], - a11 = a[4], - a12 = a[5], - a20 = a[6], - a21 = a[7], - a22 = a[8], - s = Math.sin(rad), - c = Math.cos(rad); - out[0] = c * a00 + s * a10; - out[1] = c * a01 + s * a11; - out[2] = c * a02 + s * a12; - out[3] = c * a10 - s * a00; - out[4] = c * a11 - s * a01; - out[5] = c * a12 - s * a02; - out[6] = a20; - out[7] = a21; - out[8] = a22; - return out; - } - /** - * Scales the mat3 by the dimensions in the given vec2 - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the matrix to rotate - * @param {ReadonlyVec2} v the vec2 to scale the matrix by - * @returns {mat3} out - **/ - - function scale$2(out, a, v) { - var x = v[0], - y = v[1]; - out[0] = x * a[0]; - out[1] = x * a[1]; - out[2] = x * a[2]; - out[3] = y * a[3]; - out[4] = y * a[4]; - out[5] = y * a[5]; - out[6] = a[6]; - out[7] = a[7]; - out[8] = a[8]; - return out; - } - /** - * Creates a matrix from a vector translation - * This is equivalent to (but much faster than): - * - * mat3.identity(dest); - * mat3.translate(dest, dest, vec); - * - * @param {mat3} out mat3 receiving operation result - * @param {ReadonlyVec2} v Translation vector - * @returns {mat3} out - */ - - function fromTranslation$1(out, v) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 1; - out[5] = 0; - out[6] = v[0]; - out[7] = v[1]; - out[8] = 1; - return out; - } - /** - * Creates a matrix from a given angle - * This is equivalent to (but much faster than): - * - * mat3.identity(dest); - * mat3.rotate(dest, dest, rad); - * - * @param {mat3} out mat3 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat3} out - */ - - function fromRotation$2(out, rad) { - var s = Math.sin(rad), - c = Math.cos(rad); - out[0] = c; - out[1] = s; - out[2] = 0; - out[3] = -s; - out[4] = c; - out[5] = 0; - out[6] = 0; - out[7] = 0; - out[8] = 1; - return out; - } - /** - * Creates a matrix from a vector scaling - * This is equivalent to (but much faster than): - * - * mat3.identity(dest); - * mat3.scale(dest, dest, vec); - * - * @param {mat3} out mat3 receiving operation result - * @param {ReadonlyVec2} v Scaling vector - * @returns {mat3} out - */ - - function fromScaling$2(out, v) { - out[0] = v[0]; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = v[1]; - out[5] = 0; - out[6] = 0; - out[7] = 0; - out[8] = 1; - return out; - } - /** - * Copies the values from a mat2d into a mat3 - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat2d} a the matrix to copy - * @returns {mat3} out - **/ - - function fromMat2d(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = 0; - out[3] = a[2]; - out[4] = a[3]; - out[5] = 0; - out[6] = a[4]; - out[7] = a[5]; - out[8] = 1; - return out; - } - /** - * Calculates a 3x3 matrix from the given quaternion - * - * @param {mat3} out mat3 receiving operation result - * @param {ReadonlyQuat} q Quaternion to create matrix from - * - * @returns {mat3} out - */ - - function fromQuat(out, q) { - var x = q[0], - y = q[1], - z = q[2], - w = q[3]; - var x2 = x + x; - var y2 = y + y; - var z2 = z + z; - var xx = x * x2; - var yx = y * x2; - var yy = y * y2; - var zx = z * x2; - var zy = z * y2; - var zz = z * z2; - var wx = w * x2; - var wy = w * y2; - var wz = w * z2; - out[0] = 1 - yy - zz; - out[3] = yx - wz; - out[6] = zx + wy; - out[1] = yx + wz; - out[4] = 1 - xx - zz; - out[7] = zy - wx; - out[2] = zx - wy; - out[5] = zy + wx; - out[8] = 1 - xx - yy; - return out; - } - /** - * Calculates a 3x3 normal matrix (transpose inverse) from the 4x4 matrix - * - * @param {mat3} out mat3 receiving operation result - * @param {ReadonlyMat4} a Mat4 to derive the normal matrix from - * - * @returns {mat3} out - */ - - function normalFromMat4(out, a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a03 = a[3]; - var a10 = a[4], - a11 = a[5], - a12 = a[6], - a13 = a[7]; - var a20 = a[8], - a21 = a[9], - a22 = a[10], - a23 = a[11]; - var a30 = a[12], - a31 = a[13], - a32 = a[14], - a33 = a[15]; - var b00 = a00 * a11 - a01 * a10; - var b01 = a00 * a12 - a02 * a10; - var b02 = a00 * a13 - a03 * a10; - var b03 = a01 * a12 - a02 * a11; - var b04 = a01 * a13 - a03 * a11; - var b05 = a02 * a13 - a03 * a12; - var b06 = a20 * a31 - a21 * a30; - var b07 = a20 * a32 - a22 * a30; - var b08 = a20 * a33 - a23 * a30; - var b09 = a21 * a32 - a22 * a31; - var b10 = a21 * a33 - a23 * a31; - var b11 = a22 * a33 - a23 * a32; // Calculate the determinant - - var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; - - if (!det) { - return null; - } - - det = 1.0 / det; - out[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det; - out[1] = (a12 * b08 - a10 * b11 - a13 * b07) * det; - out[2] = (a10 * b10 - a11 * b08 + a13 * b06) * det; - out[3] = (a02 * b10 - a01 * b11 - a03 * b09) * det; - out[4] = (a00 * b11 - a02 * b08 + a03 * b07) * det; - out[5] = (a01 * b08 - a00 * b10 - a03 * b06) * det; - out[6] = (a31 * b05 - a32 * b04 + a33 * b03) * det; - out[7] = (a32 * b02 - a30 * b05 - a33 * b01) * det; - out[8] = (a30 * b04 - a31 * b02 + a33 * b00) * det; - return out; - } - /** - * Generates a 2D projection matrix with the given bounds - * - * @param {mat3} out mat3 frustum matrix will be written into - * @param {number} width Width of your gl context - * @param {number} height Height of gl context - * @returns {mat3} out - */ - - function projection(out, width, height) { - out[0] = 2 / width; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = -2 / height; - out[5] = 0; - out[6] = -1; - out[7] = 1; - out[8] = 1; - return out; - } - /** - * Returns a string representation of a mat3 - * - * @param {ReadonlyMat3} a matrix to represent as a string - * @returns {String} string representation of the matrix - */ - - function str$2(a) { - return "mat3(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ", " + a[6] + ", " + a[7] + ", " + a[8] + ")"; - } - /** - * Returns Frobenius norm of a mat3 - * - * @param {ReadonlyMat3} a the matrix to calculate Frobenius norm of - * @returns {Number} Frobenius norm - */ - - function frob$2(a) { - return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8]); - } - /** - * Adds two mat3's - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the first operand - * @param {ReadonlyMat3} b the second operand - * @returns {mat3} out - */ - - function add$2(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - out[3] = a[3] + b[3]; - out[4] = a[4] + b[4]; - out[5] = a[5] + b[5]; - out[6] = a[6] + b[6]; - out[7] = a[7] + b[7]; - out[8] = a[8] + b[8]; - return out; - } - /** - * Subtracts matrix b from matrix a - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the first operand - * @param {ReadonlyMat3} b the second operand - * @returns {mat3} out - */ - - function subtract$2(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - out[2] = a[2] - b[2]; - out[3] = a[3] - b[3]; - out[4] = a[4] - b[4]; - out[5] = a[5] - b[5]; - out[6] = a[6] - b[6]; - out[7] = a[7] - b[7]; - out[8] = a[8] - b[8]; - return out; - } - /** - * Multiply each element of the matrix by a scalar. - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the matrix to scale - * @param {Number} b amount to scale the matrix's elements by - * @returns {mat3} out - */ - - function multiplyScalar$2(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - out[3] = a[3] * b; - out[4] = a[4] * b; - out[5] = a[5] * b; - out[6] = a[6] * b; - out[7] = a[7] * b; - out[8] = a[8] * b; - return out; - } - /** - * Adds two mat3's after multiplying each element of the second operand by a scalar value. - * - * @param {mat3} out the receiving vector - * @param {ReadonlyMat3} a the first operand - * @param {ReadonlyMat3} b the second operand - * @param {Number} scale the amount to scale b's elements by before adding - * @returns {mat3} out - */ - - function multiplyScalarAndAdd$2(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - out[2] = a[2] + b[2] * scale; - out[3] = a[3] + b[3] * scale; - out[4] = a[4] + b[4] * scale; - out[5] = a[5] + b[5] * scale; - out[6] = a[6] + b[6] * scale; - out[7] = a[7] + b[7] * scale; - out[8] = a[8] + b[8] * scale; - return out; - } - /** - * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyMat3} a The first matrix. - * @param {ReadonlyMat3} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - - function exactEquals$2(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7] && a[8] === b[8]; - } - /** - * Returns whether or not the matrices have approximately the same elements in the same position. - * - * @param {ReadonlyMat3} a The first matrix. - * @param {ReadonlyMat3} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - - function equals$3(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5], - a6 = a[6], - a7 = a[7], - a8 = a[8]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3], - b4 = b[4], - b5 = b[5], - b6 = b[6], - b7 = b[7], - b8 = b[8]; - return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= EPSILON * Math.max(1.0, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= EPSILON * Math.max(1.0, Math.abs(a7), Math.abs(b7)) && Math.abs(a8 - b8) <= EPSILON * Math.max(1.0, Math.abs(a8), Math.abs(b8)); - } - /** - * Alias for {@link mat3.multiply} - * @function - */ - - var mul$2 = multiply$2; - /** - * Alias for {@link mat3.subtract} - * @function - */ - - var sub$2 = subtract$2; - - var mat3 = /*#__PURE__*/Object.freeze({ - __proto__: null, - create: create$2, - fromMat4: fromMat4, - clone: clone$2, - copy: copy$2, - fromValues: fromValues$2, - set: set$2, - identity: identity$2, - transpose: transpose$1, - invert: invert$2, - adjoint: adjoint$1, - determinant: determinant$2, - multiply: multiply$2, - translate: translate$1, - rotate: rotate$2, - scale: scale$2, - fromTranslation: fromTranslation$1, - fromRotation: fromRotation$2, - fromScaling: fromScaling$2, - fromMat2d: fromMat2d, - fromQuat: fromQuat, - normalFromMat4: normalFromMat4, - projection: projection, - str: str$2, - frob: frob$2, - add: add$2, - subtract: subtract$2, - multiplyScalar: multiplyScalar$2, - multiplyScalarAndAdd: multiplyScalarAndAdd$2, - exactEquals: exactEquals$2, - equals: equals$3, - mul: mul$2, - sub: sub$2 - }); - - /** - * 4x4 Matrix
Format: column-major, when typed out it looks like row-major
The matrices are being post multiplied. - * @module mat4 - */ - - /** - * Creates a new identity mat4 - * - * @returns {mat4} a new 4x4 matrix - */ - - function create$3() { - var out = new ARRAY_TYPE(16); - - if (ARRAY_TYPE != Float32Array) { - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - } - - out[0] = 1; - out[5] = 1; - out[10] = 1; - out[15] = 1; - return out; - } - /** - * Creates a new mat4 initialized with values from an existing matrix - * - * @param {ReadonlyMat4} a matrix to clone - * @returns {mat4} a new 4x4 matrix - */ - - function clone$3(a) { - var out = new ARRAY_TYPE(16); - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - out[6] = a[6]; - out[7] = a[7]; - out[8] = a[8]; - out[9] = a[9]; - out[10] = a[10]; - out[11] = a[11]; - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - return out; - } - /** - * Copy the values from one mat4 to another - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the source matrix - * @returns {mat4} out - */ - - function copy$3(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - out[6] = a[6]; - out[7] = a[7]; - out[8] = a[8]; - out[9] = a[9]; - out[10] = a[10]; - out[11] = a[11]; - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - return out; - } - /** - * Create a new mat4 with the given values - * - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m02 Component in column 0, row 2 position (index 2) - * @param {Number} m03 Component in column 0, row 3 position (index 3) - * @param {Number} m10 Component in column 1, row 0 position (index 4) - * @param {Number} m11 Component in column 1, row 1 position (index 5) - * @param {Number} m12 Component in column 1, row 2 position (index 6) - * @param {Number} m13 Component in column 1, row 3 position (index 7) - * @param {Number} m20 Component in column 2, row 0 position (index 8) - * @param {Number} m21 Component in column 2, row 1 position (index 9) - * @param {Number} m22 Component in column 2, row 2 position (index 10) - * @param {Number} m23 Component in column 2, row 3 position (index 11) - * @param {Number} m30 Component in column 3, row 0 position (index 12) - * @param {Number} m31 Component in column 3, row 1 position (index 13) - * @param {Number} m32 Component in column 3, row 2 position (index 14) - * @param {Number} m33 Component in column 3, row 3 position (index 15) - * @returns {mat4} A new mat4 - */ - - function fromValues$3(m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33) { - var out = new ARRAY_TYPE(16); - out[0] = m00; - out[1] = m01; - out[2] = m02; - out[3] = m03; - out[4] = m10; - out[5] = m11; - out[6] = m12; - out[7] = m13; - out[8] = m20; - out[9] = m21; - out[10] = m22; - out[11] = m23; - out[12] = m30; - out[13] = m31; - out[14] = m32; - out[15] = m33; - return out; - } - /** - * Set the components of a mat4 to the given values - * - * @param {mat4} out the receiving matrix - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m02 Component in column 0, row 2 position (index 2) - * @param {Number} m03 Component in column 0, row 3 position (index 3) - * @param {Number} m10 Component in column 1, row 0 position (index 4) - * @param {Number} m11 Component in column 1, row 1 position (index 5) - * @param {Number} m12 Component in column 1, row 2 position (index 6) - * @param {Number} m13 Component in column 1, row 3 position (index 7) - * @param {Number} m20 Component in column 2, row 0 position (index 8) - * @param {Number} m21 Component in column 2, row 1 position (index 9) - * @param {Number} m22 Component in column 2, row 2 position (index 10) - * @param {Number} m23 Component in column 2, row 3 position (index 11) - * @param {Number} m30 Component in column 3, row 0 position (index 12) - * @param {Number} m31 Component in column 3, row 1 position (index 13) - * @param {Number} m32 Component in column 3, row 2 position (index 14) - * @param {Number} m33 Component in column 3, row 3 position (index 15) - * @returns {mat4} out - */ - - function set$3(out, m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33) { - out[0] = m00; - out[1] = m01; - out[2] = m02; - out[3] = m03; - out[4] = m10; - out[5] = m11; - out[6] = m12; - out[7] = m13; - out[8] = m20; - out[9] = m21; - out[10] = m22; - out[11] = m23; - out[12] = m30; - out[13] = m31; - out[14] = m32; - out[15] = m33; - return out; - } - /** - * Set a mat4 to the identity matrix - * - * @param {mat4} out the receiving matrix - * @returns {mat4} out - */ - - function identity$3(out) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = 1; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[10] = 1; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; - } - /** - * Transpose the values of a mat4 - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the source matrix - * @returns {mat4} out - */ - - function transpose$2(out, a) { - // If we are transposing ourselves we can skip a few steps but have to cache some values - if (out === a) { - var a01 = a[1], - a02 = a[2], - a03 = a[3]; - var a12 = a[6], - a13 = a[7]; - var a23 = a[11]; - out[1] = a[4]; - out[2] = a[8]; - out[3] = a[12]; - out[4] = a01; - out[6] = a[9]; - out[7] = a[13]; - out[8] = a02; - out[9] = a12; - out[11] = a[14]; - out[12] = a03; - out[13] = a13; - out[14] = a23; - } else { - out[0] = a[0]; - out[1] = a[4]; - out[2] = a[8]; - out[3] = a[12]; - out[4] = a[1]; - out[5] = a[5]; - out[6] = a[9]; - out[7] = a[13]; - out[8] = a[2]; - out[9] = a[6]; - out[10] = a[10]; - out[11] = a[14]; - out[12] = a[3]; - out[13] = a[7]; - out[14] = a[11]; - out[15] = a[15]; - } - - return out; - } - /** - * Inverts a mat4 - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the source matrix - * @returns {mat4} out - */ - - function invert$3(out, a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a03 = a[3]; - var a10 = a[4], - a11 = a[5], - a12 = a[6], - a13 = a[7]; - var a20 = a[8], - a21 = a[9], - a22 = a[10], - a23 = a[11]; - var a30 = a[12], - a31 = a[13], - a32 = a[14], - a33 = a[15]; - var b00 = a00 * a11 - a01 * a10; - var b01 = a00 * a12 - a02 * a10; - var b02 = a00 * a13 - a03 * a10; - var b03 = a01 * a12 - a02 * a11; - var b04 = a01 * a13 - a03 * a11; - var b05 = a02 * a13 - a03 * a12; - var b06 = a20 * a31 - a21 * a30; - var b07 = a20 * a32 - a22 * a30; - var b08 = a20 * a33 - a23 * a30; - var b09 = a21 * a32 - a22 * a31; - var b10 = a21 * a33 - a23 * a31; - var b11 = a22 * a33 - a23 * a32; // Calculate the determinant - - var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; - - if (!det) { - return null; - } - - det = 1.0 / det; - out[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det; - out[1] = (a02 * b10 - a01 * b11 - a03 * b09) * det; - out[2] = (a31 * b05 - a32 * b04 + a33 * b03) * det; - out[3] = (a22 * b04 - a21 * b05 - a23 * b03) * det; - out[4] = (a12 * b08 - a10 * b11 - a13 * b07) * det; - out[5] = (a00 * b11 - a02 * b08 + a03 * b07) * det; - out[6] = (a32 * b02 - a30 * b05 - a33 * b01) * det; - out[7] = (a20 * b05 - a22 * b02 + a23 * b01) * det; - out[8] = (a10 * b10 - a11 * b08 + a13 * b06) * det; - out[9] = (a01 * b08 - a00 * b10 - a03 * b06) * det; - out[10] = (a30 * b04 - a31 * b02 + a33 * b00) * det; - out[11] = (a21 * b02 - a20 * b04 - a23 * b00) * det; - out[12] = (a11 * b07 - a10 * b09 - a12 * b06) * det; - out[13] = (a00 * b09 - a01 * b07 + a02 * b06) * det; - out[14] = (a31 * b01 - a30 * b03 - a32 * b00) * det; - out[15] = (a20 * b03 - a21 * b01 + a22 * b00) * det; - return out; - } - /** - * Calculates the adjugate of a mat4 - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the source matrix - * @returns {mat4} out - */ - - function adjoint$2(out, a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a03 = a[3]; - var a10 = a[4], - a11 = a[5], - a12 = a[6], - a13 = a[7]; - var a20 = a[8], - a21 = a[9], - a22 = a[10], - a23 = a[11]; - var a30 = a[12], - a31 = a[13], - a32 = a[14], - a33 = a[15]; - out[0] = a11 * (a22 * a33 - a23 * a32) - a21 * (a12 * a33 - a13 * a32) + a31 * (a12 * a23 - a13 * a22); - out[1] = -(a01 * (a22 * a33 - a23 * a32) - a21 * (a02 * a33 - a03 * a32) + a31 * (a02 * a23 - a03 * a22)); - out[2] = a01 * (a12 * a33 - a13 * a32) - a11 * (a02 * a33 - a03 * a32) + a31 * (a02 * a13 - a03 * a12); - out[3] = -(a01 * (a12 * a23 - a13 * a22) - a11 * (a02 * a23 - a03 * a22) + a21 * (a02 * a13 - a03 * a12)); - out[4] = -(a10 * (a22 * a33 - a23 * a32) - a20 * (a12 * a33 - a13 * a32) + a30 * (a12 * a23 - a13 * a22)); - out[5] = a00 * (a22 * a33 - a23 * a32) - a20 * (a02 * a33 - a03 * a32) + a30 * (a02 * a23 - a03 * a22); - out[6] = -(a00 * (a12 * a33 - a13 * a32) - a10 * (a02 * a33 - a03 * a32) + a30 * (a02 * a13 - a03 * a12)); - out[7] = a00 * (a12 * a23 - a13 * a22) - a10 * (a02 * a23 - a03 * a22) + a20 * (a02 * a13 - a03 * a12); - out[8] = a10 * (a21 * a33 - a23 * a31) - a20 * (a11 * a33 - a13 * a31) + a30 * (a11 * a23 - a13 * a21); - out[9] = -(a00 * (a21 * a33 - a23 * a31) - a20 * (a01 * a33 - a03 * a31) + a30 * (a01 * a23 - a03 * a21)); - out[10] = a00 * (a11 * a33 - a13 * a31) - a10 * (a01 * a33 - a03 * a31) + a30 * (a01 * a13 - a03 * a11); - out[11] = -(a00 * (a11 * a23 - a13 * a21) - a10 * (a01 * a23 - a03 * a21) + a20 * (a01 * a13 - a03 * a11)); - out[12] = -(a10 * (a21 * a32 - a22 * a31) - a20 * (a11 * a32 - a12 * a31) + a30 * (a11 * a22 - a12 * a21)); - out[13] = a00 * (a21 * a32 - a22 * a31) - a20 * (a01 * a32 - a02 * a31) + a30 * (a01 * a22 - a02 * a21); - out[14] = -(a00 * (a11 * a32 - a12 * a31) - a10 * (a01 * a32 - a02 * a31) + a30 * (a01 * a12 - a02 * a11)); - out[15] = a00 * (a11 * a22 - a12 * a21) - a10 * (a01 * a22 - a02 * a21) + a20 * (a01 * a12 - a02 * a11); - return out; - } - /** - * Calculates the determinant of a mat4 - * - * @param {ReadonlyMat4} a the source matrix - * @returns {Number} determinant of a - */ - - function determinant$3(a) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a03 = a[3]; - var a10 = a[4], - a11 = a[5], - a12 = a[6], - a13 = a[7]; - var a20 = a[8], - a21 = a[9], - a22 = a[10], - a23 = a[11]; - var a30 = a[12], - a31 = a[13], - a32 = a[14], - a33 = a[15]; - var b00 = a00 * a11 - a01 * a10; - var b01 = a00 * a12 - a02 * a10; - var b02 = a00 * a13 - a03 * a10; - var b03 = a01 * a12 - a02 * a11; - var b04 = a01 * a13 - a03 * a11; - var b05 = a02 * a13 - a03 * a12; - var b06 = a20 * a31 - a21 * a30; - var b07 = a20 * a32 - a22 * a30; - var b08 = a20 * a33 - a23 * a30; - var b09 = a21 * a32 - a22 * a31; - var b10 = a21 * a33 - a23 * a31; - var b11 = a22 * a33 - a23 * a32; // Calculate the determinant - - return b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; - } - /** - * Multiplies two mat4s - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the first operand - * @param {ReadonlyMat4} b the second operand - * @returns {mat4} out - */ - - function multiply$3(out, a, b) { - var a00 = a[0], - a01 = a[1], - a02 = a[2], - a03 = a[3]; - var a10 = a[4], - a11 = a[5], - a12 = a[6], - a13 = a[7]; - var a20 = a[8], - a21 = a[9], - a22 = a[10], - a23 = a[11]; - var a30 = a[12], - a31 = a[13], - a32 = a[14], - a33 = a[15]; // Cache only the current line of the second matrix - - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3]; - out[0] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[1] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[2] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[3] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - b0 = b[4]; - b1 = b[5]; - b2 = b[6]; - b3 = b[7]; - out[4] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[5] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[6] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[7] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - b0 = b[8]; - b1 = b[9]; - b2 = b[10]; - b3 = b[11]; - out[8] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[9] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[10] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[11] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - b0 = b[12]; - b1 = b[13]; - b2 = b[14]; - b3 = b[15]; - out[12] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30; - out[13] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31; - out[14] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32; - out[15] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33; - return out; - } - /** - * Translate a mat4 by the given vector - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to translate - * @param {ReadonlyVec3} v vector to translate by - * @returns {mat4} out - */ - - function translate$2(out, a, v) { - var x = v[0], - y = v[1], - z = v[2]; - var a00, a01, a02, a03; - var a10, a11, a12, a13; - var a20, a21, a22, a23; - - if (a === out) { - out[12] = a[0] * x + a[4] * y + a[8] * z + a[12]; - out[13] = a[1] * x + a[5] * y + a[9] * z + a[13]; - out[14] = a[2] * x + a[6] * y + a[10] * z + a[14]; - out[15] = a[3] * x + a[7] * y + a[11] * z + a[15]; - } else { - a00 = a[0]; - a01 = a[1]; - a02 = a[2]; - a03 = a[3]; - a10 = a[4]; - a11 = a[5]; - a12 = a[6]; - a13 = a[7]; - a20 = a[8]; - a21 = a[9]; - a22 = a[10]; - a23 = a[11]; - out[0] = a00; - out[1] = a01; - out[2] = a02; - out[3] = a03; - out[4] = a10; - out[5] = a11; - out[6] = a12; - out[7] = a13; - out[8] = a20; - out[9] = a21; - out[10] = a22; - out[11] = a23; - out[12] = a00 * x + a10 * y + a20 * z + a[12]; - out[13] = a01 * x + a11 * y + a21 * z + a[13]; - out[14] = a02 * x + a12 * y + a22 * z + a[14]; - out[15] = a03 * x + a13 * y + a23 * z + a[15]; - } - - return out; - } - /** - * Scales the mat4 by the dimensions in the given vec3 not using vectorization - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to scale - * @param {ReadonlyVec3} v the vec3 to scale the matrix by - * @returns {mat4} out - **/ - - function scale$3(out, a, v) { - var x = v[0], - y = v[1], - z = v[2]; - out[0] = a[0] * x; - out[1] = a[1] * x; - out[2] = a[2] * x; - out[3] = a[3] * x; - out[4] = a[4] * y; - out[5] = a[5] * y; - out[6] = a[6] * y; - out[7] = a[7] * y; - out[8] = a[8] * z; - out[9] = a[9] * z; - out[10] = a[10] * z; - out[11] = a[11] * z; - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - return out; - } - /** - * Rotates a mat4 by the given angle around the given axis - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @param {ReadonlyVec3} axis the axis to rotate around - * @returns {mat4} out - */ - - function rotate$3(out, a, rad, axis) { - var x = axis[0], - y = axis[1], - z = axis[2]; - var len = Math.hypot(x, y, z); - var s, c, t; - var a00, a01, a02, a03; - var a10, a11, a12, a13; - var a20, a21, a22, a23; - var b00, b01, b02; - var b10, b11, b12; - var b20, b21, b22; - - if (len < EPSILON) { - return null; - } - - len = 1 / len; - x *= len; - y *= len; - z *= len; - s = Math.sin(rad); - c = Math.cos(rad); - t = 1 - c; - a00 = a[0]; - a01 = a[1]; - a02 = a[2]; - a03 = a[3]; - a10 = a[4]; - a11 = a[5]; - a12 = a[6]; - a13 = a[7]; - a20 = a[8]; - a21 = a[9]; - a22 = a[10]; - a23 = a[11]; // Construct the elements of the rotation matrix - - b00 = x * x * t + c; - b01 = y * x * t + z * s; - b02 = z * x * t - y * s; - b10 = x * y * t - z * s; - b11 = y * y * t + c; - b12 = z * y * t + x * s; - b20 = x * z * t + y * s; - b21 = y * z * t - x * s; - b22 = z * z * t + c; // Perform rotation-specific matrix multiplication - - out[0] = a00 * b00 + a10 * b01 + a20 * b02; - out[1] = a01 * b00 + a11 * b01 + a21 * b02; - out[2] = a02 * b00 + a12 * b01 + a22 * b02; - out[3] = a03 * b00 + a13 * b01 + a23 * b02; - out[4] = a00 * b10 + a10 * b11 + a20 * b12; - out[5] = a01 * b10 + a11 * b11 + a21 * b12; - out[6] = a02 * b10 + a12 * b11 + a22 * b12; - out[7] = a03 * b10 + a13 * b11 + a23 * b12; - out[8] = a00 * b20 + a10 * b21 + a20 * b22; - out[9] = a01 * b20 + a11 * b21 + a21 * b22; - out[10] = a02 * b20 + a12 * b21 + a22 * b22; - out[11] = a03 * b20 + a13 * b21 + a23 * b22; - - if (a !== out) { - // If the source and destination differ, copy the unchanged last row - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - } - - return out; - } - /** - * Rotates a matrix by the given angle around the X axis - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - - function rotateX(out, a, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); - var a10 = a[4]; - var a11 = a[5]; - var a12 = a[6]; - var a13 = a[7]; - var a20 = a[8]; - var a21 = a[9]; - var a22 = a[10]; - var a23 = a[11]; - - if (a !== out) { - // If the source and destination differ, copy the unchanged rows - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - } // Perform axis-specific matrix multiplication - - - out[4] = a10 * c + a20 * s; - out[5] = a11 * c + a21 * s; - out[6] = a12 * c + a22 * s; - out[7] = a13 * c + a23 * s; - out[8] = a20 * c - a10 * s; - out[9] = a21 * c - a11 * s; - out[10] = a22 * c - a12 * s; - out[11] = a23 * c - a13 * s; - return out; - } - /** - * Rotates a matrix by the given angle around the Y axis - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - - function rotateY(out, a, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); - var a00 = a[0]; - var a01 = a[1]; - var a02 = a[2]; - var a03 = a[3]; - var a20 = a[8]; - var a21 = a[9]; - var a22 = a[10]; - var a23 = a[11]; - - if (a !== out) { - // If the source and destination differ, copy the unchanged rows - out[4] = a[4]; - out[5] = a[5]; - out[6] = a[6]; - out[7] = a[7]; - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - } // Perform axis-specific matrix multiplication - - - out[0] = a00 * c - a20 * s; - out[1] = a01 * c - a21 * s; - out[2] = a02 * c - a22 * s; - out[3] = a03 * c - a23 * s; - out[8] = a00 * s + a20 * c; - out[9] = a01 * s + a21 * c; - out[10] = a02 * s + a22 * c; - out[11] = a03 * s + a23 * c; - return out; - } - /** - * Rotates a matrix by the given angle around the Z axis - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - - function rotateZ(out, a, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); - var a00 = a[0]; - var a01 = a[1]; - var a02 = a[2]; - var a03 = a[3]; - var a10 = a[4]; - var a11 = a[5]; - var a12 = a[6]; - var a13 = a[7]; - - if (a !== out) { - // If the source and destination differ, copy the unchanged last row - out[8] = a[8]; - out[9] = a[9]; - out[10] = a[10]; - out[11] = a[11]; - out[12] = a[12]; - out[13] = a[13]; - out[14] = a[14]; - out[15] = a[15]; - } // Perform axis-specific matrix multiplication - - - out[0] = a00 * c + a10 * s; - out[1] = a01 * c + a11 * s; - out[2] = a02 * c + a12 * s; - out[3] = a03 * c + a13 * s; - out[4] = a10 * c - a00 * s; - out[5] = a11 * c - a01 * s; - out[6] = a12 * c - a02 * s; - out[7] = a13 * c - a03 * s; - return out; - } - /** - * Creates a matrix from a vector translation - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.translate(dest, dest, vec); - * - * @param {mat4} out mat4 receiving operation result - * @param {ReadonlyVec3} v Translation vector - * @returns {mat4} out - */ - - function fromTranslation$2(out, v) { - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = 1; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[10] = 1; - out[11] = 0; - out[12] = v[0]; - out[13] = v[1]; - out[14] = v[2]; - out[15] = 1; - return out; - } - /** - * Creates a matrix from a vector scaling - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.scale(dest, dest, vec); - * - * @param {mat4} out mat4 receiving operation result - * @param {ReadonlyVec3} v Scaling vector - * @returns {mat4} out - */ - - function fromScaling$3(out, v) { - out[0] = v[0]; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = v[1]; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[10] = v[2]; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; - } - /** - * Creates a matrix from a given angle around a given axis - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.rotate(dest, dest, rad, axis); - * - * @param {mat4} out mat4 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @param {ReadonlyVec3} axis the axis to rotate around - * @returns {mat4} out - */ - - function fromRotation$3(out, rad, axis) { - var x = axis[0], - y = axis[1], - z = axis[2]; - var len = Math.hypot(x, y, z); - var s, c, t; - - if (len < EPSILON) { - return null; - } - - len = 1 / len; - x *= len; - y *= len; - z *= len; - s = Math.sin(rad); - c = Math.cos(rad); - t = 1 - c; // Perform rotation-specific matrix multiplication - - out[0] = x * x * t + c; - out[1] = y * x * t + z * s; - out[2] = z * x * t - y * s; - out[3] = 0; - out[4] = x * y * t - z * s; - out[5] = y * y * t + c; - out[6] = z * y * t + x * s; - out[7] = 0; - out[8] = x * z * t + y * s; - out[9] = y * z * t - x * s; - out[10] = z * z * t + c; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; - } - /** - * Creates a matrix from the given angle around the X axis - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.rotateX(dest, dest, rad); - * - * @param {mat4} out mat4 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - - function fromXRotation(out, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); // Perform axis-specific matrix multiplication - - out[0] = 1; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = c; - out[6] = s; - out[7] = 0; - out[8] = 0; - out[9] = -s; - out[10] = c; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; - } - /** - * Creates a matrix from the given angle around the Y axis - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.rotateY(dest, dest, rad); - * - * @param {mat4} out mat4 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - - function fromYRotation(out, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); // Perform axis-specific matrix multiplication - - out[0] = c; - out[1] = 0; - out[2] = -s; - out[3] = 0; - out[4] = 0; - out[5] = 1; - out[6] = 0; - out[7] = 0; - out[8] = s; - out[9] = 0; - out[10] = c; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; - } - /** - * Creates a matrix from the given angle around the Z axis - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.rotateZ(dest, dest, rad); - * - * @param {mat4} out mat4 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - - function fromZRotation(out, rad) { - var s = Math.sin(rad); - var c = Math.cos(rad); // Perform axis-specific matrix multiplication - - out[0] = c; - out[1] = s; - out[2] = 0; - out[3] = 0; - out[4] = -s; - out[5] = c; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[10] = 1; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; - } - /** - * Creates a matrix from a quaternion rotation and vector translation - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.translate(dest, vec); - * let quatMat = mat4.create(); - * quat4.toMat4(quat, quatMat); - * mat4.multiply(dest, quatMat); - * - * @param {mat4} out mat4 receiving operation result - * @param {quat4} q Rotation quaternion - * @param {ReadonlyVec3} v Translation vector - * @returns {mat4} out - */ - - function fromRotationTranslation(out, q, v) { - // Quaternion math - var x = q[0], - y = q[1], - z = q[2], - w = q[3]; - var x2 = x + x; - var y2 = y + y; - var z2 = z + z; - var xx = x * x2; - var xy = x * y2; - var xz = x * z2; - var yy = y * y2; - var yz = y * z2; - var zz = z * z2; - var wx = w * x2; - var wy = w * y2; - var wz = w * z2; - out[0] = 1 - (yy + zz); - out[1] = xy + wz; - out[2] = xz - wy; - out[3] = 0; - out[4] = xy - wz; - out[5] = 1 - (xx + zz); - out[6] = yz + wx; - out[7] = 0; - out[8] = xz + wy; - out[9] = yz - wx; - out[10] = 1 - (xx + yy); - out[11] = 0; - out[12] = v[0]; - out[13] = v[1]; - out[14] = v[2]; - out[15] = 1; - return out; - } - /** - * Creates a new mat4 from a dual quat. - * - * @param {mat4} out Matrix - * @param {ReadonlyQuat2} a Dual Quaternion - * @returns {mat4} mat4 receiving operation result - */ - - function fromQuat2(out, a) { - var translation = new ARRAY_TYPE(3); - var bx = -a[0], - by = -a[1], - bz = -a[2], - bw = a[3], - ax = a[4], - ay = a[5], - az = a[6], - aw = a[7]; - var magnitude = bx * bx + by * by + bz * bz + bw * bw; //Only scale if it makes sense - - if (magnitude > 0) { - translation[0] = (ax * bw + aw * bx + ay * bz - az * by) * 2 / magnitude; - translation[1] = (ay * bw + aw * by + az * bx - ax * bz) * 2 / magnitude; - translation[2] = (az * bw + aw * bz + ax * by - ay * bx) * 2 / magnitude; - } else { - translation[0] = (ax * bw + aw * bx + ay * bz - az * by) * 2; - translation[1] = (ay * bw + aw * by + az * bx - ax * bz) * 2; - translation[2] = (az * bw + aw * bz + ax * by - ay * bx) * 2; - } - - fromRotationTranslation(out, a, translation); - return out; - } - /** - * Returns the translation vector component of a transformation - * matrix. If a matrix is built with fromRotationTranslation, - * the returned vector will be the same as the translation vector - * originally supplied. - * @param {vec3} out Vector to receive translation component - * @param {ReadonlyMat4} mat Matrix to be decomposed (input) - * @return {vec3} out - */ - - function getTranslation(out, mat) { - out[0] = mat[12]; - out[1] = mat[13]; - out[2] = mat[14]; - return out; - } - /** - * Returns the scaling factor component of a transformation - * matrix. If a matrix is built with fromRotationTranslationScale - * with a normalized Quaternion paramter, the returned vector will be - * the same as the scaling vector - * originally supplied. - * @param {vec3} out Vector to receive scaling factor component - * @param {ReadonlyMat4} mat Matrix to be decomposed (input) - * @return {vec3} out - */ - - function getScaling(out, mat) { - var m11 = mat[0]; - var m12 = mat[1]; - var m13 = mat[2]; - var m21 = mat[4]; - var m22 = mat[5]; - var m23 = mat[6]; - var m31 = mat[8]; - var m32 = mat[9]; - var m33 = mat[10]; - out[0] = Math.hypot(m11, m12, m13); - out[1] = Math.hypot(m21, m22, m23); - out[2] = Math.hypot(m31, m32, m33); - return out; - } - /** - * Returns a quaternion representing the rotational component - * of a transformation matrix. If a matrix is built with - * fromRotationTranslation, the returned quaternion will be the - * same as the quaternion originally supplied. - * @param {quat} out Quaternion to receive the rotation component - * @param {ReadonlyMat4} mat Matrix to be decomposed (input) - * @return {quat} out - */ - - function getRotation(out, mat) { - var scaling = new ARRAY_TYPE(3); - getScaling(scaling, mat); - var is1 = 1 / scaling[0]; - var is2 = 1 / scaling[1]; - var is3 = 1 / scaling[2]; - var sm11 = mat[0] * is1; - var sm12 = mat[1] * is2; - var sm13 = mat[2] * is3; - var sm21 = mat[4] * is1; - var sm22 = mat[5] * is2; - var sm23 = mat[6] * is3; - var sm31 = mat[8] * is1; - var sm32 = mat[9] * is2; - var sm33 = mat[10] * is3; - var trace = sm11 + sm22 + sm33; - var S = 0; - - if (trace > 0) { - S = Math.sqrt(trace + 1.0) * 2; - out[3] = 0.25 * S; - out[0] = (sm23 - sm32) / S; - out[1] = (sm31 - sm13) / S; - out[2] = (sm12 - sm21) / S; - } else if (sm11 > sm22 && sm11 > sm33) { - S = Math.sqrt(1.0 + sm11 - sm22 - sm33) * 2; - out[3] = (sm23 - sm32) / S; - out[0] = 0.25 * S; - out[1] = (sm12 + sm21) / S; - out[2] = (sm31 + sm13) / S; - } else if (sm22 > sm33) { - S = Math.sqrt(1.0 + sm22 - sm11 - sm33) * 2; - out[3] = (sm31 - sm13) / S; - out[0] = (sm12 + sm21) / S; - out[1] = 0.25 * S; - out[2] = (sm23 + sm32) / S; - } else { - S = Math.sqrt(1.0 + sm33 - sm11 - sm22) * 2; - out[3] = (sm12 - sm21) / S; - out[0] = (sm31 + sm13) / S; - out[1] = (sm23 + sm32) / S; - out[2] = 0.25 * S; - } - - return out; - } - /** - * Creates a matrix from a quaternion rotation, vector translation and vector scale - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.translate(dest, vec); - * let quatMat = mat4.create(); - * quat4.toMat4(quat, quatMat); - * mat4.multiply(dest, quatMat); - * mat4.scale(dest, scale) - * - * @param {mat4} out mat4 receiving operation result - * @param {quat4} q Rotation quaternion - * @param {ReadonlyVec3} v Translation vector - * @param {ReadonlyVec3} s Scaling vector - * @returns {mat4} out - */ - - function fromRotationTranslationScale(out, q, v, s) { - // Quaternion math - var x = q[0], - y = q[1], - z = q[2], - w = q[3]; - var x2 = x + x; - var y2 = y + y; - var z2 = z + z; - var xx = x * x2; - var xy = x * y2; - var xz = x * z2; - var yy = y * y2; - var yz = y * z2; - var zz = z * z2; - var wx = w * x2; - var wy = w * y2; - var wz = w * z2; - var sx = s[0]; - var sy = s[1]; - var sz = s[2]; - out[0] = (1 - (yy + zz)) * sx; - out[1] = (xy + wz) * sx; - out[2] = (xz - wy) * sx; - out[3] = 0; - out[4] = (xy - wz) * sy; - out[5] = (1 - (xx + zz)) * sy; - out[6] = (yz + wx) * sy; - out[7] = 0; - out[8] = (xz + wy) * sz; - out[9] = (yz - wx) * sz; - out[10] = (1 - (xx + yy)) * sz; - out[11] = 0; - out[12] = v[0]; - out[13] = v[1]; - out[14] = v[2]; - out[15] = 1; - return out; - } - /** - * Creates a matrix from a quaternion rotation, vector translation and vector scale, rotating and scaling around the given origin - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.translate(dest, vec); - * mat4.translate(dest, origin); - * let quatMat = mat4.create(); - * quat4.toMat4(quat, quatMat); - * mat4.multiply(dest, quatMat); - * mat4.scale(dest, scale) - * mat4.translate(dest, negativeOrigin); - * - * @param {mat4} out mat4 receiving operation result - * @param {quat4} q Rotation quaternion - * @param {ReadonlyVec3} v Translation vector - * @param {ReadonlyVec3} s Scaling vector - * @param {ReadonlyVec3} o The origin vector around which to scale and rotate - * @returns {mat4} out - */ - - function fromRotationTranslationScaleOrigin(out, q, v, s, o) { - // Quaternion math - var x = q[0], - y = q[1], - z = q[2], - w = q[3]; - var x2 = x + x; - var y2 = y + y; - var z2 = z + z; - var xx = x * x2; - var xy = x * y2; - var xz = x * z2; - var yy = y * y2; - var yz = y * z2; - var zz = z * z2; - var wx = w * x2; - var wy = w * y2; - var wz = w * z2; - var sx = s[0]; - var sy = s[1]; - var sz = s[2]; - var ox = o[0]; - var oy = o[1]; - var oz = o[2]; - var out0 = (1 - (yy + zz)) * sx; - var out1 = (xy + wz) * sx; - var out2 = (xz - wy) * sx; - var out4 = (xy - wz) * sy; - var out5 = (1 - (xx + zz)) * sy; - var out6 = (yz + wx) * sy; - var out8 = (xz + wy) * sz; - var out9 = (yz - wx) * sz; - var out10 = (1 - (xx + yy)) * sz; - out[0] = out0; - out[1] = out1; - out[2] = out2; - out[3] = 0; - out[4] = out4; - out[5] = out5; - out[6] = out6; - out[7] = 0; - out[8] = out8; - out[9] = out9; - out[10] = out10; - out[11] = 0; - out[12] = v[0] + ox - (out0 * ox + out4 * oy + out8 * oz); - out[13] = v[1] + oy - (out1 * ox + out5 * oy + out9 * oz); - out[14] = v[2] + oz - (out2 * ox + out6 * oy + out10 * oz); - out[15] = 1; - return out; - } - /** - * Calculates a 4x4 matrix from the given quaternion - * - * @param {mat4} out mat4 receiving operation result - * @param {ReadonlyQuat} q Quaternion to create matrix from - * - * @returns {mat4} out - */ - - function fromQuat$1(out, q) { - var x = q[0], - y = q[1], - z = q[2], - w = q[3]; - var x2 = x + x; - var y2 = y + y; - var z2 = z + z; - var xx = x * x2; - var yx = y * x2; - var yy = y * y2; - var zx = z * x2; - var zy = z * y2; - var zz = z * z2; - var wx = w * x2; - var wy = w * y2; - var wz = w * z2; - out[0] = 1 - yy - zz; - out[1] = yx + wz; - out[2] = zx - wy; - out[3] = 0; - out[4] = yx - wz; - out[5] = 1 - xx - zz; - out[6] = zy + wx; - out[7] = 0; - out[8] = zx + wy; - out[9] = zy - wx; - out[10] = 1 - xx - yy; - out[11] = 0; - out[12] = 0; - out[13] = 0; - out[14] = 0; - out[15] = 1; - return out; - } - /** - * Generates a frustum matrix with the given bounds - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {Number} left Left bound of the frustum - * @param {Number} right Right bound of the frustum - * @param {Number} bottom Bottom bound of the frustum - * @param {Number} top Top bound of the frustum - * @param {Number} near Near bound of the frustum - * @param {Number} far Far bound of the frustum - * @returns {mat4} out - */ - - function frustum(out, left, right, bottom, top, near, far) { - var rl = 1 / (right - left); - var tb = 1 / (top - bottom); - var nf = 1 / (near - far); - out[0] = near * 2 * rl; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = near * 2 * tb; - out[6] = 0; - out[7] = 0; - out[8] = (right + left) * rl; - out[9] = (top + bottom) * tb; - out[10] = (far + near) * nf; - out[11] = -1; - out[12] = 0; - out[13] = 0; - out[14] = far * near * 2 * nf; - out[15] = 0; - return out; - } - /** - * Generates a perspective projection matrix with the given bounds. - * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1], - * which matches WebGL/OpenGL's clip volume. - * Passing null/undefined/no value for far will generate infinite projection matrix. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {number} fovy Vertical field of view in radians - * @param {number} aspect Aspect ratio. typically viewport width/height - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum, can be null or Infinity - * @returns {mat4} out - */ - - function perspectiveNO(out, fovy, aspect, near, far) { - var f = 1.0 / Math.tan(fovy / 2), - nf; - out[0] = f / aspect; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = f; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[11] = -1; - out[12] = 0; - out[13] = 0; - out[15] = 0; - - if (far != null && far !== Infinity) { - nf = 1 / (near - far); - out[10] = (far + near) * nf; - out[14] = 2 * far * near * nf; - } else { - out[10] = -1; - out[14] = -2 * near; - } - - return out; - } - /** - * Alias for {@link mat4.perspectiveNO} - * @function - */ - - var perspective = perspectiveNO; - /** - * Generates a perspective projection matrix suitable for WebGPU with the given bounds. - * The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1], - * which matches WebGPU/Vulkan/DirectX/Metal's clip volume. - * Passing null/undefined/no value for far will generate infinite projection matrix. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {number} fovy Vertical field of view in radians - * @param {number} aspect Aspect ratio. typically viewport width/height - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum, can be null or Infinity - * @returns {mat4} out - */ - - function perspectiveZO(out, fovy, aspect, near, far) { - var f = 1.0 / Math.tan(fovy / 2), - nf; - out[0] = f / aspect; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = f; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[11] = -1; - out[12] = 0; - out[13] = 0; - out[15] = 0; - - if (far != null && far !== Infinity) { - nf = 1 / (near - far); - out[10] = far * nf; - out[14] = far * near * nf; - } else { - out[10] = -1; - out[14] = -near; - } - - return out; - } - /** - * Generates a perspective projection matrix with the given field of view. - * This is primarily useful for generating projection matrices to be used - * with the still experiemental WebVR API. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {Object} fov Object containing the following values: upDegrees, downDegrees, leftDegrees, rightDegrees - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum - * @returns {mat4} out - */ - - function perspectiveFromFieldOfView(out, fov, near, far) { - var upTan = Math.tan(fov.upDegrees * Math.PI / 180.0); - var downTan = Math.tan(fov.downDegrees * Math.PI / 180.0); - var leftTan = Math.tan(fov.leftDegrees * Math.PI / 180.0); - var rightTan = Math.tan(fov.rightDegrees * Math.PI / 180.0); - var xScale = 2.0 / (leftTan + rightTan); - var yScale = 2.0 / (upTan + downTan); - out[0] = xScale; - out[1] = 0.0; - out[2] = 0.0; - out[3] = 0.0; - out[4] = 0.0; - out[5] = yScale; - out[6] = 0.0; - out[7] = 0.0; - out[8] = -((leftTan - rightTan) * xScale * 0.5); - out[9] = (upTan - downTan) * yScale * 0.5; - out[10] = far / (near - far); - out[11] = -1.0; - out[12] = 0.0; - out[13] = 0.0; - out[14] = far * near / (near - far); - out[15] = 0.0; - return out; - } - /** - * Generates a orthogonal projection matrix with the given bounds. - * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1], - * which matches WebGL/OpenGL's clip volume. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {number} left Left bound of the frustum - * @param {number} right Right bound of the frustum - * @param {number} bottom Bottom bound of the frustum - * @param {number} top Top bound of the frustum - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum - * @returns {mat4} out - */ - - function orthoNO(out, left, right, bottom, top, near, far) { - var lr = 1 / (left - right); - var bt = 1 / (bottom - top); - var nf = 1 / (near - far); - out[0] = -2 * lr; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = -2 * bt; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[10] = 2 * nf; - out[11] = 0; - out[12] = (left + right) * lr; - out[13] = (top + bottom) * bt; - out[14] = (far + near) * nf; - out[15] = 1; - return out; - } - /** - * Alias for {@link mat4.orthoNO} - * @function - */ - - var ortho = orthoNO; - /** - * Generates a orthogonal projection matrix with the given bounds. - * The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1], - * which matches WebGPU/Vulkan/DirectX/Metal's clip volume. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {number} left Left bound of the frustum - * @param {number} right Right bound of the frustum - * @param {number} bottom Bottom bound of the frustum - * @param {number} top Top bound of the frustum - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum - * @returns {mat4} out - */ - - function orthoZO(out, left, right, bottom, top, near, far) { - var lr = 1 / (left - right); - var bt = 1 / (bottom - top); - var nf = 1 / (near - far); - out[0] = -2 * lr; - out[1] = 0; - out[2] = 0; - out[3] = 0; - out[4] = 0; - out[5] = -2 * bt; - out[6] = 0; - out[7] = 0; - out[8] = 0; - out[9] = 0; - out[10] = nf; - out[11] = 0; - out[12] = (left + right) * lr; - out[13] = (top + bottom) * bt; - out[14] = near * nf; - out[15] = 1; - return out; - } - /** - * Generates a look-at matrix with the given eye position, focal point, and up axis. - * If you want a matrix that actually makes an object look at another object, you should use targetTo instead. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {ReadonlyVec3} eye Position of the viewer - * @param {ReadonlyVec3} center Point the viewer is looking at - * @param {ReadonlyVec3} up vec3 pointing up - * @returns {mat4} out - */ - - function lookAt(out, eye, center, up) { - var x0, x1, x2, y0, y1, y2, z0, z1, z2, len; - var eyex = eye[0]; - var eyey = eye[1]; - var eyez = eye[2]; - var upx = up[0]; - var upy = up[1]; - var upz = up[2]; - var centerx = center[0]; - var centery = center[1]; - var centerz = center[2]; - - if (Math.abs(eyex - centerx) < EPSILON && Math.abs(eyey - centery) < EPSILON && Math.abs(eyez - centerz) < EPSILON) { - return identity$3(out); - } - - z0 = eyex - centerx; - z1 = eyey - centery; - z2 = eyez - centerz; - len = 1 / Math.hypot(z0, z1, z2); - z0 *= len; - z1 *= len; - z2 *= len; - x0 = upy * z2 - upz * z1; - x1 = upz * z0 - upx * z2; - x2 = upx * z1 - upy * z0; - len = Math.hypot(x0, x1, x2); - - if (!len) { - x0 = 0; - x1 = 0; - x2 = 0; - } else { - len = 1 / len; - x0 *= len; - x1 *= len; - x2 *= len; - } - - y0 = z1 * x2 - z2 * x1; - y1 = z2 * x0 - z0 * x2; - y2 = z0 * x1 - z1 * x0; - len = Math.hypot(y0, y1, y2); - - if (!len) { - y0 = 0; - y1 = 0; - y2 = 0; - } else { - len = 1 / len; - y0 *= len; - y1 *= len; - y2 *= len; - } - - out[0] = x0; - out[1] = y0; - out[2] = z0; - out[3] = 0; - out[4] = x1; - out[5] = y1; - out[6] = z1; - out[7] = 0; - out[8] = x2; - out[9] = y2; - out[10] = z2; - out[11] = 0; - out[12] = -(x0 * eyex + x1 * eyey + x2 * eyez); - out[13] = -(y0 * eyex + y1 * eyey + y2 * eyez); - out[14] = -(z0 * eyex + z1 * eyey + z2 * eyez); - out[15] = 1; - return out; - } - /** - * Generates a matrix that makes something look at something else. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {ReadonlyVec3} eye Position of the viewer - * @param {ReadonlyVec3} center Point the viewer is looking at - * @param {ReadonlyVec3} up vec3 pointing up - * @returns {mat4} out - */ - - function targetTo(out, eye, target, up) { - var eyex = eye[0], - eyey = eye[1], - eyez = eye[2], - upx = up[0], - upy = up[1], - upz = up[2]; - var z0 = eyex - target[0], - z1 = eyey - target[1], - z2 = eyez - target[2]; - var len = z0 * z0 + z1 * z1 + z2 * z2; - - if (len > 0) { - len = 1 / Math.sqrt(len); - z0 *= len; - z1 *= len; - z2 *= len; - } - - var x0 = upy * z2 - upz * z1, - x1 = upz * z0 - upx * z2, - x2 = upx * z1 - upy * z0; - len = x0 * x0 + x1 * x1 + x2 * x2; - - if (len > 0) { - len = 1 / Math.sqrt(len); - x0 *= len; - x1 *= len; - x2 *= len; - } - - out[0] = x0; - out[1] = x1; - out[2] = x2; - out[3] = 0; - out[4] = z1 * x2 - z2 * x1; - out[5] = z2 * x0 - z0 * x2; - out[6] = z0 * x1 - z1 * x0; - out[7] = 0; - out[8] = z0; - out[9] = z1; - out[10] = z2; - out[11] = 0; - out[12] = eyex; - out[13] = eyey; - out[14] = eyez; - out[15] = 1; - return out; - } - /** - * Returns a string representation of a mat4 - * - * @param {ReadonlyMat4} a matrix to represent as a string - * @returns {String} string representation of the matrix - */ - - function str$3(a) { - return "mat4(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ", " + a[6] + ", " + a[7] + ", " + a[8] + ", " + a[9] + ", " + a[10] + ", " + a[11] + ", " + a[12] + ", " + a[13] + ", " + a[14] + ", " + a[15] + ")"; - } - /** - * Returns Frobenius norm of a mat4 - * - * @param {ReadonlyMat4} a the matrix to calculate Frobenius norm of - * @returns {Number} Frobenius norm - */ - - function frob$3(a) { - return Math.hypot(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11], a[12], a[13], a[14], a[15]); - } - /** - * Adds two mat4's - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the first operand - * @param {ReadonlyMat4} b the second operand - * @returns {mat4} out - */ - - function add$3(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - out[3] = a[3] + b[3]; - out[4] = a[4] + b[4]; - out[5] = a[5] + b[5]; - out[6] = a[6] + b[6]; - out[7] = a[7] + b[7]; - out[8] = a[8] + b[8]; - out[9] = a[9] + b[9]; - out[10] = a[10] + b[10]; - out[11] = a[11] + b[11]; - out[12] = a[12] + b[12]; - out[13] = a[13] + b[13]; - out[14] = a[14] + b[14]; - out[15] = a[15] + b[15]; - return out; - } - /** - * Subtracts matrix b from matrix a - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the first operand - * @param {ReadonlyMat4} b the second operand - * @returns {mat4} out - */ - - function subtract$3(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - out[2] = a[2] - b[2]; - out[3] = a[3] - b[3]; - out[4] = a[4] - b[4]; - out[5] = a[5] - b[5]; - out[6] = a[6] - b[6]; - out[7] = a[7] - b[7]; - out[8] = a[8] - b[8]; - out[9] = a[9] - b[9]; - out[10] = a[10] - b[10]; - out[11] = a[11] - b[11]; - out[12] = a[12] - b[12]; - out[13] = a[13] - b[13]; - out[14] = a[14] - b[14]; - out[15] = a[15] - b[15]; - return out; - } - /** - * Multiply each element of the matrix by a scalar. - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to scale - * @param {Number} b amount to scale the matrix's elements by - * @returns {mat4} out - */ - - function multiplyScalar$3(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - out[3] = a[3] * b; - out[4] = a[4] * b; - out[5] = a[5] * b; - out[6] = a[6] * b; - out[7] = a[7] * b; - out[8] = a[8] * b; - out[9] = a[9] * b; - out[10] = a[10] * b; - out[11] = a[11] * b; - out[12] = a[12] * b; - out[13] = a[13] * b; - out[14] = a[14] * b; - out[15] = a[15] * b; - return out; - } - /** - * Adds two mat4's after multiplying each element of the second operand by a scalar value. - * - * @param {mat4} out the receiving vector - * @param {ReadonlyMat4} a the first operand - * @param {ReadonlyMat4} b the second operand - * @param {Number} scale the amount to scale b's elements by before adding - * @returns {mat4} out - */ - - function multiplyScalarAndAdd$3(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - out[2] = a[2] + b[2] * scale; - out[3] = a[3] + b[3] * scale; - out[4] = a[4] + b[4] * scale; - out[5] = a[5] + b[5] * scale; - out[6] = a[6] + b[6] * scale; - out[7] = a[7] + b[7] * scale; - out[8] = a[8] + b[8] * scale; - out[9] = a[9] + b[9] * scale; - out[10] = a[10] + b[10] * scale; - out[11] = a[11] + b[11] * scale; - out[12] = a[12] + b[12] * scale; - out[13] = a[13] + b[13] * scale; - out[14] = a[14] + b[14] * scale; - out[15] = a[15] + b[15] * scale; - return out; - } - /** - * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyMat4} a The first matrix. - * @param {ReadonlyMat4} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - - function exactEquals$3(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7] && a[8] === b[8] && a[9] === b[9] && a[10] === b[10] && a[11] === b[11] && a[12] === b[12] && a[13] === b[13] && a[14] === b[14] && a[15] === b[15]; - } - /** - * Returns whether or not the matrices have approximately the same elements in the same position. - * - * @param {ReadonlyMat4} a The first matrix. - * @param {ReadonlyMat4} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - - function equals$4(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var a4 = a[4], - a5 = a[5], - a6 = a[6], - a7 = a[7]; - var a8 = a[8], - a9 = a[9], - a10 = a[10], - a11 = a[11]; - var a12 = a[12], - a13 = a[13], - a14 = a[14], - a15 = a[15]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3]; - var b4 = b[4], - b5 = b[5], - b6 = b[6], - b7 = b[7]; - var b8 = b[8], - b9 = b[9], - b10 = b[10], - b11 = b[11]; - var b12 = b[12], - b13 = b[13], - b14 = b[14], - b15 = b[15]; - return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= EPSILON * Math.max(1.0, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= EPSILON * Math.max(1.0, Math.abs(a7), Math.abs(b7)) && Math.abs(a8 - b8) <= EPSILON * Math.max(1.0, Math.abs(a8), Math.abs(b8)) && Math.abs(a9 - b9) <= EPSILON * Math.max(1.0, Math.abs(a9), Math.abs(b9)) && Math.abs(a10 - b10) <= EPSILON * Math.max(1.0, Math.abs(a10), Math.abs(b10)) && Math.abs(a11 - b11) <= EPSILON * Math.max(1.0, Math.abs(a11), Math.abs(b11)) && Math.abs(a12 - b12) <= EPSILON * Math.max(1.0, Math.abs(a12), Math.abs(b12)) && Math.abs(a13 - b13) <= EPSILON * Math.max(1.0, Math.abs(a13), Math.abs(b13)) && Math.abs(a14 - b14) <= EPSILON * Math.max(1.0, Math.abs(a14), Math.abs(b14)) && Math.abs(a15 - b15) <= EPSILON * Math.max(1.0, Math.abs(a15), Math.abs(b15)); - } - /** - * Alias for {@link mat4.multiply} - * @function - */ - - var mul$3 = multiply$3; - /** - * Alias for {@link mat4.subtract} - * @function - */ - - var sub$3 = subtract$3; - - var mat4 = /*#__PURE__*/Object.freeze({ - __proto__: null, - create: create$3, - clone: clone$3, - copy: copy$3, - fromValues: fromValues$3, - set: set$3, - identity: identity$3, - transpose: transpose$2, - invert: invert$3, - adjoint: adjoint$2, - determinant: determinant$3, - multiply: multiply$3, - translate: translate$2, - scale: scale$3, - rotate: rotate$3, - rotateX: rotateX, - rotateY: rotateY, - rotateZ: rotateZ, - fromTranslation: fromTranslation$2, - fromScaling: fromScaling$3, - fromRotation: fromRotation$3, - fromXRotation: fromXRotation, - fromYRotation: fromYRotation, - fromZRotation: fromZRotation, - fromRotationTranslation: fromRotationTranslation, - fromQuat2: fromQuat2, - getTranslation: getTranslation, - getScaling: getScaling, - getRotation: getRotation, - fromRotationTranslationScale: fromRotationTranslationScale, - fromRotationTranslationScaleOrigin: fromRotationTranslationScaleOrigin, - fromQuat: fromQuat$1, - frustum: frustum, - perspectiveNO: perspectiveNO, - perspective: perspective, - perspectiveZO: perspectiveZO, - perspectiveFromFieldOfView: perspectiveFromFieldOfView, - orthoNO: orthoNO, - ortho: ortho, - orthoZO: orthoZO, - lookAt: lookAt, - targetTo: targetTo, - str: str$3, - frob: frob$3, - add: add$3, - subtract: subtract$3, - multiplyScalar: multiplyScalar$3, - multiplyScalarAndAdd: multiplyScalarAndAdd$3, - exactEquals: exactEquals$3, - equals: equals$4, - mul: mul$3, - sub: sub$3 - }); - - /** - * 3 Dimensional Vector - * @module vec3 - */ - - /** - * Creates a new, empty vec3 - * - * @returns {vec3} a new 3D vector - */ - - function create$4() { - var out = new ARRAY_TYPE(3); - - if (ARRAY_TYPE != Float32Array) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - } - - return out; - } - /** - * Creates a new vec3 initialized with values from an existing vector - * - * @param {ReadonlyVec3} a vector to clone - * @returns {vec3} a new 3D vector - */ - - function clone$4(a) { - var out = new ARRAY_TYPE(3); - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - return out; - } - /** - * Calculates the length of a vec3 - * - * @param {ReadonlyVec3} a vector to calculate length of - * @returns {Number} length of a - */ - - function length(a) { - var x = a[0]; - var y = a[1]; - var z = a[2]; - return Math.hypot(x, y, z); - } - /** - * Creates a new vec3 initialized with the given values - * - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @returns {vec3} a new 3D vector - */ - - function fromValues$4(x, y, z) { - var out = new ARRAY_TYPE(3); - out[0] = x; - out[1] = y; - out[2] = z; - return out; - } - /** - * Copy the values from one vec3 to another - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the source vector - * @returns {vec3} out - */ - - function copy$4(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - return out; - } - /** - * Set the components of a vec3 to the given values - * - * @param {vec3} out the receiving vector - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @returns {vec3} out - */ - - function set$4(out, x, y, z) { - out[0] = x; - out[1] = y; - out[2] = z; - return out; - } - /** - * Adds two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - - function add$4(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - return out; - } - /** - * Subtracts vector b from vector a - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - - function subtract$4(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - out[2] = a[2] - b[2]; - return out; - } - /** - * Multiplies two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - - function multiply$4(out, a, b) { - out[0] = a[0] * b[0]; - out[1] = a[1] * b[1]; - out[2] = a[2] * b[2]; - return out; - } - /** - * Divides two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - - function divide(out, a, b) { - out[0] = a[0] / b[0]; - out[1] = a[1] / b[1]; - out[2] = a[2] / b[2]; - return out; - } - /** - * Math.ceil the components of a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to ceil - * @returns {vec3} out - */ - - function ceil(out, a) { - out[0] = Math.ceil(a[0]); - out[1] = Math.ceil(a[1]); - out[2] = Math.ceil(a[2]); - return out; - } - /** - * Math.floor the components of a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to floor - * @returns {vec3} out - */ - - function floor(out, a) { - out[0] = Math.floor(a[0]); - out[1] = Math.floor(a[1]); - out[2] = Math.floor(a[2]); - return out; - } - /** - * Returns the minimum of two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - - function min(out, a, b) { - out[0] = Math.min(a[0], b[0]); - out[1] = Math.min(a[1], b[1]); - out[2] = Math.min(a[2], b[2]); - return out; - } - /** - * Returns the maximum of two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - - function max(out, a, b) { - out[0] = Math.max(a[0], b[0]); - out[1] = Math.max(a[1], b[1]); - out[2] = Math.max(a[2], b[2]); - return out; - } - /** - * Math.round the components of a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to round - * @returns {vec3} out - */ - - function round(out, a) { - out[0] = Math.round(a[0]); - out[1] = Math.round(a[1]); - out[2] = Math.round(a[2]); - return out; - } - /** - * Scales a vec3 by a scalar number - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the vector to scale - * @param {Number} b amount to scale the vector by - * @returns {vec3} out - */ - - function scale$4(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - return out; - } - /** - * Adds two vec3's after scaling the second operand by a scalar value - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @param {Number} scale the amount to scale b by before adding - * @returns {vec3} out - */ - - function scaleAndAdd(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - out[2] = a[2] + b[2] * scale; - return out; - } - /** - * Calculates the euclidian distance between two vec3's - * - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {Number} distance between a and b - */ - - function distance(a, b) { - var x = b[0] - a[0]; - var y = b[1] - a[1]; - var z = b[2] - a[2]; - return Math.hypot(x, y, z); - } - /** - * Calculates the squared euclidian distance between two vec3's - * - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {Number} squared distance between a and b - */ - - function squaredDistance(a, b) { - var x = b[0] - a[0]; - var y = b[1] - a[1]; - var z = b[2] - a[2]; - return x * x + y * y + z * z; - } - /** - * Calculates the squared length of a vec3 - * - * @param {ReadonlyVec3} a vector to calculate squared length of - * @returns {Number} squared length of a - */ - - function squaredLength(a) { - var x = a[0]; - var y = a[1]; - var z = a[2]; - return x * x + y * y + z * z; - } - /** - * Negates the components of a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to negate - * @returns {vec3} out - */ - - function negate(out, a) { - out[0] = -a[0]; - out[1] = -a[1]; - out[2] = -a[2]; - return out; - } - /** - * Returns the inverse of the components of a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to invert - * @returns {vec3} out - */ - - function inverse(out, a) { - out[0] = 1.0 / a[0]; - out[1] = 1.0 / a[1]; - out[2] = 1.0 / a[2]; - return out; - } - /** - * Normalize a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to normalize - * @returns {vec3} out - */ - - function normalize(out, a) { - var x = a[0]; - var y = a[1]; - var z = a[2]; - var len = x * x + y * y + z * z; - - if (len > 0) { - //TODO: evaluate use of glm_invsqrt here? - len = 1 / Math.sqrt(len); - } - - out[0] = a[0] * len; - out[1] = a[1] * len; - out[2] = a[2] * len; - return out; - } - /** - * Calculates the dot product of two vec3's - * - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {Number} dot product of a and b - */ - - function dot(a, b) { - return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; - } - /** - * Computes the cross product of two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - - function cross(out, a, b) { - var ax = a[0], - ay = a[1], - az = a[2]; - var bx = b[0], - by = b[1], - bz = b[2]; - out[0] = ay * bz - az * by; - out[1] = az * bx - ax * bz; - out[2] = ax * by - ay * bx; - return out; - } - /** - * Performs a linear interpolation between two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {vec3} out - */ - - function lerp(out, a, b, t) { - var ax = a[0]; - var ay = a[1]; - var az = a[2]; - out[0] = ax + t * (b[0] - ax); - out[1] = ay + t * (b[1] - ay); - out[2] = az + t * (b[2] - az); - return out; - } - /** - * Performs a hermite interpolation with two control points - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @param {ReadonlyVec3} c the third operand - * @param {ReadonlyVec3} d the fourth operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {vec3} out - */ - - function hermite(out, a, b, c, d, t) { - var factorTimes2 = t * t; - var factor1 = factorTimes2 * (2 * t - 3) + 1; - var factor2 = factorTimes2 * (t - 2) + t; - var factor3 = factorTimes2 * (t - 1); - var factor4 = factorTimes2 * (3 - 2 * t); - out[0] = a[0] * factor1 + b[0] * factor2 + c[0] * factor3 + d[0] * factor4; - out[1] = a[1] * factor1 + b[1] * factor2 + c[1] * factor3 + d[1] * factor4; - out[2] = a[2] * factor1 + b[2] * factor2 + c[2] * factor3 + d[2] * factor4; - return out; - } - /** - * Performs a bezier interpolation with two control points - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @param {ReadonlyVec3} c the third operand - * @param {ReadonlyVec3} d the fourth operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {vec3} out - */ - - function bezier(out, a, b, c, d, t) { - var inverseFactor = 1 - t; - var inverseFactorTimesTwo = inverseFactor * inverseFactor; - var factorTimes2 = t * t; - var factor1 = inverseFactorTimesTwo * inverseFactor; - var factor2 = 3 * t * inverseFactorTimesTwo; - var factor3 = 3 * factorTimes2 * inverseFactor; - var factor4 = factorTimes2 * t; - out[0] = a[0] * factor1 + b[0] * factor2 + c[0] * factor3 + d[0] * factor4; - out[1] = a[1] * factor1 + b[1] * factor2 + c[1] * factor3 + d[1] * factor4; - out[2] = a[2] * factor1 + b[2] * factor2 + c[2] * factor3 + d[2] * factor4; - return out; - } - /** - * Generates a random vector with the given scale - * - * @param {vec3} out the receiving vector - * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned - * @returns {vec3} out - */ - - function random(out, scale) { - scale = scale || 1.0; - var r = RANDOM() * 2.0 * Math.PI; - var z = RANDOM() * 2.0 - 1.0; - var zScale = Math.sqrt(1.0 - z * z) * scale; - out[0] = Math.cos(r) * zScale; - out[1] = Math.sin(r) * zScale; - out[2] = z * scale; - return out; - } - /** - * Transforms the vec3 with a mat4. - * 4th vector component is implicitly '1' - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the vector to transform - * @param {ReadonlyMat4} m matrix to transform with - * @returns {vec3} out - */ - - function transformMat4(out, a, m) { - var x = a[0], - y = a[1], - z = a[2]; - var w = m[3] * x + m[7] * y + m[11] * z + m[15]; - w = w || 1.0; - out[0] = (m[0] * x + m[4] * y + m[8] * z + m[12]) / w; - out[1] = (m[1] * x + m[5] * y + m[9] * z + m[13]) / w; - out[2] = (m[2] * x + m[6] * y + m[10] * z + m[14]) / w; - return out; - } - /** - * Transforms the vec3 with a mat3. - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the vector to transform - * @param {ReadonlyMat3} m the 3x3 matrix to transform with - * @returns {vec3} out - */ - - function transformMat3(out, a, m) { - var x = a[0], - y = a[1], - z = a[2]; - out[0] = x * m[0] + y * m[3] + z * m[6]; - out[1] = x * m[1] + y * m[4] + z * m[7]; - out[2] = x * m[2] + y * m[5] + z * m[8]; - return out; - } - /** - * Transforms the vec3 with a quat - * Can also be used for dual quaternions. (Multiply it with the real part) - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the vector to transform - * @param {ReadonlyQuat} q quaternion to transform with - * @returns {vec3} out - */ - - function transformQuat(out, a, q) { - // benchmarks: https://jsperf.com/quaternion-transform-vec3-implementations-fixed - var qx = q[0], - qy = q[1], - qz = q[2], - qw = q[3]; - var x = a[0], - y = a[1], - z = a[2]; // var qvec = [qx, qy, qz]; - // var uv = vec3.cross([], qvec, a); - - var uvx = qy * z - qz * y, - uvy = qz * x - qx * z, - uvz = qx * y - qy * x; // var uuv = vec3.cross([], qvec, uv); - - var uuvx = qy * uvz - qz * uvy, - uuvy = qz * uvx - qx * uvz, - uuvz = qx * uvy - qy * uvx; // vec3.scale(uv, uv, 2 * w); - - var w2 = qw * 2; - uvx *= w2; - uvy *= w2; - uvz *= w2; // vec3.scale(uuv, uuv, 2); - - uuvx *= 2; - uuvy *= 2; - uuvz *= 2; // return vec3.add(out, a, vec3.add(out, uv, uuv)); - - out[0] = x + uvx + uuvx; - out[1] = y + uvy + uuvy; - out[2] = z + uvz + uuvz; - return out; - } - /** - * Rotate a 3D vector around the x-axis - * @param {vec3} out The receiving vec3 - * @param {ReadonlyVec3} a The vec3 point to rotate - * @param {ReadonlyVec3} b The origin of the rotation - * @param {Number} rad The angle of rotation in radians - * @returns {vec3} out - */ - - function rotateX$1(out, a, b, rad) { - var p = [], - r = []; //Translate point to the origin - - p[0] = a[0] - b[0]; - p[1] = a[1] - b[1]; - p[2] = a[2] - b[2]; //perform rotation - - r[0] = p[0]; - r[1] = p[1] * Math.cos(rad) - p[2] * Math.sin(rad); - r[2] = p[1] * Math.sin(rad) + p[2] * Math.cos(rad); //translate to correct position - - out[0] = r[0] + b[0]; - out[1] = r[1] + b[1]; - out[2] = r[2] + b[2]; - return out; - } - /** - * Rotate a 3D vector around the y-axis - * @param {vec3} out The receiving vec3 - * @param {ReadonlyVec3} a The vec3 point to rotate - * @param {ReadonlyVec3} b The origin of the rotation - * @param {Number} rad The angle of rotation in radians - * @returns {vec3} out - */ - - function rotateY$1(out, a, b, rad) { - var p = [], - r = []; //Translate point to the origin - - p[0] = a[0] - b[0]; - p[1] = a[1] - b[1]; - p[2] = a[2] - b[2]; //perform rotation - - r[0] = p[2] * Math.sin(rad) + p[0] * Math.cos(rad); - r[1] = p[1]; - r[2] = p[2] * Math.cos(rad) - p[0] * Math.sin(rad); //translate to correct position - - out[0] = r[0] + b[0]; - out[1] = r[1] + b[1]; - out[2] = r[2] + b[2]; - return out; - } - /** - * Rotate a 3D vector around the z-axis - * @param {vec3} out The receiving vec3 - * @param {ReadonlyVec3} a The vec3 point to rotate - * @param {ReadonlyVec3} b The origin of the rotation - * @param {Number} rad The angle of rotation in radians - * @returns {vec3} out - */ - - function rotateZ$1(out, a, b, rad) { - var p = [], - r = []; //Translate point to the origin - - p[0] = a[0] - b[0]; - p[1] = a[1] - b[1]; - p[2] = a[2] - b[2]; //perform rotation - - r[0] = p[0] * Math.cos(rad) - p[1] * Math.sin(rad); - r[1] = p[0] * Math.sin(rad) + p[1] * Math.cos(rad); - r[2] = p[2]; //translate to correct position - - out[0] = r[0] + b[0]; - out[1] = r[1] + b[1]; - out[2] = r[2] + b[2]; - return out; - } - /** - * Get the angle between two 3D vectors - * @param {ReadonlyVec3} a The first operand - * @param {ReadonlyVec3} b The second operand - * @returns {Number} The angle in radians - */ - - function angle(a, b) { - var ax = a[0], - ay = a[1], - az = a[2], - bx = b[0], - by = b[1], - bz = b[2], - mag1 = Math.sqrt(ax * ax + ay * ay + az * az), - mag2 = Math.sqrt(bx * bx + by * by + bz * bz), - mag = mag1 * mag2, - cosine = mag && dot(a, b) / mag; - return Math.acos(Math.min(Math.max(cosine, -1), 1)); - } - /** - * Set the components of a vec3 to zero - * - * @param {vec3} out the receiving vector - * @returns {vec3} out - */ - - function zero(out) { - out[0] = 0.0; - out[1] = 0.0; - out[2] = 0.0; - return out; - } - /** - * Returns a string representation of a vector - * - * @param {ReadonlyVec3} a vector to represent as a string - * @returns {String} string representation of the vector - */ - - function str$4(a) { - return "vec3(" + a[0] + ", " + a[1] + ", " + a[2] + ")"; - } - /** - * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyVec3} a The first vector. - * @param {ReadonlyVec3} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - - function exactEquals$4(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2]; - } - /** - * Returns whether or not the vectors have approximately the same elements in the same position. - * - * @param {ReadonlyVec3} a The first vector. - * @param {ReadonlyVec3} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - - function equals$5(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2]; - var b0 = b[0], - b1 = b[1], - b2 = b[2]; - return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)); - } - /** - * Alias for {@link vec3.subtract} - * @function - */ - - var sub$4 = subtract$4; - /** - * Alias for {@link vec3.multiply} - * @function - */ - - var mul$4 = multiply$4; - /** - * Alias for {@link vec3.divide} - * @function - */ - - var div = divide; - /** - * Alias for {@link vec3.distance} - * @function - */ - - var dist = distance; - /** - * Alias for {@link vec3.squaredDistance} - * @function - */ - - var sqrDist = squaredDistance; - /** - * Alias for {@link vec3.length} - * @function - */ - - var len = length; - /** - * Alias for {@link vec3.squaredLength} - * @function - */ - - var sqrLen = squaredLength; - /** - * Perform some operation over an array of vec3s. - * - * @param {Array} a the array of vectors to iterate over - * @param {Number} stride Number of elements between the start of each vec3. If 0 assumes tightly packed - * @param {Number} offset Number of elements to skip at the beginning of the array - * @param {Number} count Number of vec3s to iterate over. If 0 iterates over entire array - * @param {Function} fn Function to call for each vector in the array - * @param {Object} [arg] additional argument to pass to fn - * @returns {Array} a - * @function - */ - - var forEach = function () { - var vec = create$4(); - return function (a, stride, offset, count, fn, arg) { - var i, l; - - if (!stride) { - stride = 3; - } - - if (!offset) { - offset = 0; - } - - if (count) { - l = Math.min(count * stride + offset, a.length); - } else { - l = a.length; - } - - for (i = offset; i < l; i += stride) { - vec[0] = a[i]; - vec[1] = a[i + 1]; - vec[2] = a[i + 2]; - fn(vec, vec, arg); - a[i] = vec[0]; - a[i + 1] = vec[1]; - a[i + 2] = vec[2]; - } - - return a; - }; - }(); - - var vec3 = /*#__PURE__*/Object.freeze({ - __proto__: null, - create: create$4, - clone: clone$4, - length: length, - fromValues: fromValues$4, - copy: copy$4, - set: set$4, - add: add$4, - subtract: subtract$4, - multiply: multiply$4, - divide: divide, - ceil: ceil, - floor: floor, - min: min, - max: max, - round: round, - scale: scale$4, - scaleAndAdd: scaleAndAdd, - distance: distance, - squaredDistance: squaredDistance, - squaredLength: squaredLength, - negate: negate, - inverse: inverse, - normalize: normalize, - dot: dot, - cross: cross, - lerp: lerp, - hermite: hermite, - bezier: bezier, - random: random, - transformMat4: transformMat4, - transformMat3: transformMat3, - transformQuat: transformQuat, - rotateX: rotateX$1, - rotateY: rotateY$1, - rotateZ: rotateZ$1, - angle: angle, - zero: zero, - str: str$4, - exactEquals: exactEquals$4, - equals: equals$5, - sub: sub$4, - mul: mul$4, - div: div, - dist: dist, - sqrDist: sqrDist, - len: len, - sqrLen: sqrLen, - forEach: forEach - }); - - /** - * 4 Dimensional Vector - * @module vec4 - */ - - /** - * Creates a new, empty vec4 - * - * @returns {vec4} a new 4D vector - */ - - function create$5() { - var out = new ARRAY_TYPE(4); - - if (ARRAY_TYPE != Float32Array) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - out[3] = 0; - } - - return out; - } - /** - * Creates a new vec4 initialized with values from an existing vector - * - * @param {ReadonlyVec4} a vector to clone - * @returns {vec4} a new 4D vector - */ - - function clone$5(a) { - var out = new ARRAY_TYPE(4); - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - return out; - } - /** - * Creates a new vec4 initialized with the given values - * - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @param {Number} w W component - * @returns {vec4} a new 4D vector - */ - - function fromValues$5(x, y, z, w) { - var out = new ARRAY_TYPE(4); - out[0] = x; - out[1] = y; - out[2] = z; - out[3] = w; - return out; - } - /** - * Copy the values from one vec4 to another - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the source vector - * @returns {vec4} out - */ - - function copy$5(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - return out; - } - /** - * Set the components of a vec4 to the given values - * - * @param {vec4} out the receiving vector - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @param {Number} w W component - * @returns {vec4} out - */ - - function set$5(out, x, y, z, w) { - out[0] = x; - out[1] = y; - out[2] = z; - out[3] = w; - return out; - } - /** - * Adds two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - - function add$5(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - out[3] = a[3] + b[3]; - return out; - } - /** - * Subtracts vector b from vector a - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - - function subtract$5(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - out[2] = a[2] - b[2]; - out[3] = a[3] - b[3]; - return out; - } - /** - * Multiplies two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - - function multiply$5(out, a, b) { - out[0] = a[0] * b[0]; - out[1] = a[1] * b[1]; - out[2] = a[2] * b[2]; - out[3] = a[3] * b[3]; - return out; - } - /** - * Divides two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - - function divide$1(out, a, b) { - out[0] = a[0] / b[0]; - out[1] = a[1] / b[1]; - out[2] = a[2] / b[2]; - out[3] = a[3] / b[3]; - return out; - } - /** - * Math.ceil the components of a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to ceil - * @returns {vec4} out - */ - - function ceil$1(out, a) { - out[0] = Math.ceil(a[0]); - out[1] = Math.ceil(a[1]); - out[2] = Math.ceil(a[2]); - out[3] = Math.ceil(a[3]); - return out; - } - /** - * Math.floor the components of a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to floor - * @returns {vec4} out - */ - - function floor$1(out, a) { - out[0] = Math.floor(a[0]); - out[1] = Math.floor(a[1]); - out[2] = Math.floor(a[2]); - out[3] = Math.floor(a[3]); - return out; - } - /** - * Returns the minimum of two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - - function min$1(out, a, b) { - out[0] = Math.min(a[0], b[0]); - out[1] = Math.min(a[1], b[1]); - out[2] = Math.min(a[2], b[2]); - out[3] = Math.min(a[3], b[3]); - return out; - } - /** - * Returns the maximum of two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - - function max$1(out, a, b) { - out[0] = Math.max(a[0], b[0]); - out[1] = Math.max(a[1], b[1]); - out[2] = Math.max(a[2], b[2]); - out[3] = Math.max(a[3], b[3]); - return out; - } - /** - * Math.round the components of a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to round - * @returns {vec4} out - */ - - function round$1(out, a) { - out[0] = Math.round(a[0]); - out[1] = Math.round(a[1]); - out[2] = Math.round(a[2]); - out[3] = Math.round(a[3]); - return out; - } - /** - * Scales a vec4 by a scalar number - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the vector to scale - * @param {Number} b amount to scale the vector by - * @returns {vec4} out - */ - - function scale$5(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - out[3] = a[3] * b; - return out; - } - /** - * Adds two vec4's after scaling the second operand by a scalar value - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @param {Number} scale the amount to scale b by before adding - * @returns {vec4} out - */ - - function scaleAndAdd$1(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - out[2] = a[2] + b[2] * scale; - out[3] = a[3] + b[3] * scale; - return out; - } - /** - * Calculates the euclidian distance between two vec4's - * - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {Number} distance between a and b - */ - - function distance$1(a, b) { - var x = b[0] - a[0]; - var y = b[1] - a[1]; - var z = b[2] - a[2]; - var w = b[3] - a[3]; - return Math.hypot(x, y, z, w); - } - /** - * Calculates the squared euclidian distance between two vec4's - * - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {Number} squared distance between a and b - */ - - function squaredDistance$1(a, b) { - var x = b[0] - a[0]; - var y = b[1] - a[1]; - var z = b[2] - a[2]; - var w = b[3] - a[3]; - return x * x + y * y + z * z + w * w; - } - /** - * Calculates the length of a vec4 - * - * @param {ReadonlyVec4} a vector to calculate length of - * @returns {Number} length of a - */ - - function length$1(a) { - var x = a[0]; - var y = a[1]; - var z = a[2]; - var w = a[3]; - return Math.hypot(x, y, z, w); - } - /** - * Calculates the squared length of a vec4 - * - * @param {ReadonlyVec4} a vector to calculate squared length of - * @returns {Number} squared length of a - */ - - function squaredLength$1(a) { - var x = a[0]; - var y = a[1]; - var z = a[2]; - var w = a[3]; - return x * x + y * y + z * z + w * w; - } - /** - * Negates the components of a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to negate - * @returns {vec4} out - */ - - function negate$1(out, a) { - out[0] = -a[0]; - out[1] = -a[1]; - out[2] = -a[2]; - out[3] = -a[3]; - return out; - } - /** - * Returns the inverse of the components of a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to invert - * @returns {vec4} out - */ - - function inverse$1(out, a) { - out[0] = 1.0 / a[0]; - out[1] = 1.0 / a[1]; - out[2] = 1.0 / a[2]; - out[3] = 1.0 / a[3]; - return out; - } - /** - * Normalize a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to normalize - * @returns {vec4} out - */ - - function normalize$1(out, a) { - var x = a[0]; - var y = a[1]; - var z = a[2]; - var w = a[3]; - var len = x * x + y * y + z * z + w * w; - - if (len > 0) { - len = 1 / Math.sqrt(len); - } - - out[0] = x * len; - out[1] = y * len; - out[2] = z * len; - out[3] = w * len; - return out; - } - /** - * Calculates the dot product of two vec4's - * - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {Number} dot product of a and b - */ - - function dot$1(a, b) { - return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3]; - } - /** - * Returns the cross-product of three vectors in a 4-dimensional space - * - * @param {ReadonlyVec4} result the receiving vector - * @param {ReadonlyVec4} U the first vector - * @param {ReadonlyVec4} V the second vector - * @param {ReadonlyVec4} W the third vector - * @returns {vec4} result - */ - - function cross$1(out, u, v, w) { - var A = v[0] * w[1] - v[1] * w[0], - B = v[0] * w[2] - v[2] * w[0], - C = v[0] * w[3] - v[3] * w[0], - D = v[1] * w[2] - v[2] * w[1], - E = v[1] * w[3] - v[3] * w[1], - F = v[2] * w[3] - v[3] * w[2]; - var G = u[0]; - var H = u[1]; - var I = u[2]; - var J = u[3]; - out[0] = H * F - I * E + J * D; - out[1] = -(G * F) + I * C - J * B; - out[2] = G * E - H * C + J * A; - out[3] = -(G * D) + H * B - I * A; - return out; - } - /** - * Performs a linear interpolation between two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {vec4} out - */ - - function lerp$1(out, a, b, t) { - var ax = a[0]; - var ay = a[1]; - var az = a[2]; - var aw = a[3]; - out[0] = ax + t * (b[0] - ax); - out[1] = ay + t * (b[1] - ay); - out[2] = az + t * (b[2] - az); - out[3] = aw + t * (b[3] - aw); - return out; - } - /** - * Generates a random vector with the given scale - * - * @param {vec4} out the receiving vector - * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned - * @returns {vec4} out - */ - - function random$1(out, scale) { - scale = scale || 1.0; // Marsaglia, George. Choosing a Point from the Surface of a - // Sphere. Ann. Math. Statist. 43 (1972), no. 2, 645--646. - // http://projecteuclid.org/euclid.aoms/1177692644; - - var v1, v2, v3, v4; - var s1, s2; - - do { - v1 = RANDOM() * 2 - 1; - v2 = RANDOM() * 2 - 1; - s1 = v1 * v1 + v2 * v2; - } while (s1 >= 1); - - do { - v3 = RANDOM() * 2 - 1; - v4 = RANDOM() * 2 - 1; - s2 = v3 * v3 + v4 * v4; - } while (s2 >= 1); - - var d = Math.sqrt((1 - s1) / s2); - out[0] = scale * v1; - out[1] = scale * v2; - out[2] = scale * v3 * d; - out[3] = scale * v4 * d; - return out; - } - /** - * Transforms the vec4 with a mat4. - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the vector to transform - * @param {ReadonlyMat4} m matrix to transform with - * @returns {vec4} out - */ - - function transformMat4$1(out, a, m) { - var x = a[0], - y = a[1], - z = a[2], - w = a[3]; - out[0] = m[0] * x + m[4] * y + m[8] * z + m[12] * w; - out[1] = m[1] * x + m[5] * y + m[9] * z + m[13] * w; - out[2] = m[2] * x + m[6] * y + m[10] * z + m[14] * w; - out[3] = m[3] * x + m[7] * y + m[11] * z + m[15] * w; - return out; - } - /** - * Transforms the vec4 with a quat - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the vector to transform - * @param {ReadonlyQuat} q quaternion to transform with - * @returns {vec4} out - */ - - function transformQuat$1(out, a, q) { - var x = a[0], - y = a[1], - z = a[2]; - var qx = q[0], - qy = q[1], - qz = q[2], - qw = q[3]; // calculate quat * vec - - var ix = qw * x + qy * z - qz * y; - var iy = qw * y + qz * x - qx * z; - var iz = qw * z + qx * y - qy * x; - var iw = -qx * x - qy * y - qz * z; // calculate result * inverse quat - - out[0] = ix * qw + iw * -qx + iy * -qz - iz * -qy; - out[1] = iy * qw + iw * -qy + iz * -qx - ix * -qz; - out[2] = iz * qw + iw * -qz + ix * -qy - iy * -qx; - out[3] = a[3]; - return out; - } - /** - * Set the components of a vec4 to zero - * - * @param {vec4} out the receiving vector - * @returns {vec4} out - */ - - function zero$1(out) { - out[0] = 0.0; - out[1] = 0.0; - out[2] = 0.0; - out[3] = 0.0; - return out; - } - /** - * Returns a string representation of a vector - * - * @param {ReadonlyVec4} a vector to represent as a string - * @returns {String} string representation of the vector - */ - - function str$5(a) { - return "vec4(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ")"; - } - /** - * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyVec4} a The first vector. - * @param {ReadonlyVec4} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - - function exactEquals$5(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3]; - } - /** - * Returns whether or not the vectors have approximately the same elements in the same position. - * - * @param {ReadonlyVec4} a The first vector. - * @param {ReadonlyVec4} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - - function equals$6(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3]; - return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)); - } - /** - * Alias for {@link vec4.subtract} - * @function - */ - - var sub$5 = subtract$5; - /** - * Alias for {@link vec4.multiply} - * @function - */ - - var mul$5 = multiply$5; - /** - * Alias for {@link vec4.divide} - * @function - */ - - var div$1 = divide$1; - /** - * Alias for {@link vec4.distance} - * @function - */ - - var dist$1 = distance$1; - /** - * Alias for {@link vec4.squaredDistance} - * @function - */ - - var sqrDist$1 = squaredDistance$1; - /** - * Alias for {@link vec4.length} - * @function - */ - - var len$1 = length$1; - /** - * Alias for {@link vec4.squaredLength} - * @function - */ - - var sqrLen$1 = squaredLength$1; - /** - * Perform some operation over an array of vec4s. - * - * @param {Array} a the array of vectors to iterate over - * @param {Number} stride Number of elements between the start of each vec4. If 0 assumes tightly packed - * @param {Number} offset Number of elements to skip at the beginning of the array - * @param {Number} count Number of vec4s to iterate over. If 0 iterates over entire array - * @param {Function} fn Function to call for each vector in the array - * @param {Object} [arg] additional argument to pass to fn - * @returns {Array} a - * @function - */ - - var forEach$1 = function () { - var vec = create$5(); - return function (a, stride, offset, count, fn, arg) { - var i, l; - - if (!stride) { - stride = 4; - } - - if (!offset) { - offset = 0; - } - - if (count) { - l = Math.min(count * stride + offset, a.length); - } else { - l = a.length; - } - - for (i = offset; i < l; i += stride) { - vec[0] = a[i]; - vec[1] = a[i + 1]; - vec[2] = a[i + 2]; - vec[3] = a[i + 3]; - fn(vec, vec, arg); - a[i] = vec[0]; - a[i + 1] = vec[1]; - a[i + 2] = vec[2]; - a[i + 3] = vec[3]; - } - - return a; - }; - }(); - - var vec4 = /*#__PURE__*/Object.freeze({ - __proto__: null, - create: create$5, - clone: clone$5, - fromValues: fromValues$5, - copy: copy$5, - set: set$5, - add: add$5, - subtract: subtract$5, - multiply: multiply$5, - divide: divide$1, - ceil: ceil$1, - floor: floor$1, - min: min$1, - max: max$1, - round: round$1, - scale: scale$5, - scaleAndAdd: scaleAndAdd$1, - distance: distance$1, - squaredDistance: squaredDistance$1, - length: length$1, - squaredLength: squaredLength$1, - negate: negate$1, - inverse: inverse$1, - normalize: normalize$1, - dot: dot$1, - cross: cross$1, - lerp: lerp$1, - random: random$1, - transformMat4: transformMat4$1, - transformQuat: transformQuat$1, - zero: zero$1, - str: str$5, - exactEquals: exactEquals$5, - equals: equals$6, - sub: sub$5, - mul: mul$5, - div: div$1, - dist: dist$1, - sqrDist: sqrDist$1, - len: len$1, - sqrLen: sqrLen$1, - forEach: forEach$1 - }); - - /** - * Quaternion - * @module quat - */ - - /** - * Creates a new identity quat - * - * @returns {quat} a new quaternion - */ - - function create$6() { - var out = new ARRAY_TYPE(4); - - if (ARRAY_TYPE != Float32Array) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - } - - out[3] = 1; - return out; - } - /** - * Set a quat to the identity quaternion - * - * @param {quat} out the receiving quaternion - * @returns {quat} out - */ - - function identity$4(out) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - out[3] = 1; - return out; - } - /** - * Sets a quat from the given angle and rotation axis, - * then returns it. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyVec3} axis the axis around which to rotate - * @param {Number} rad the angle in radians - * @returns {quat} out - **/ - - function setAxisAngle(out, axis, rad) { - rad = rad * 0.5; - var s = Math.sin(rad); - out[0] = s * axis[0]; - out[1] = s * axis[1]; - out[2] = s * axis[2]; - out[3] = Math.cos(rad); - return out; - } - /** - * Gets the rotation axis and angle for a given - * quaternion. If a quaternion is created with - * setAxisAngle, this method will return the same - * values as providied in the original parameter list - * OR functionally equivalent values. - * Example: The quaternion formed by axis [0, 0, 1] and - * angle -90 is the same as the quaternion formed by - * [0, 0, 1] and 270. This method favors the latter. - * @param {vec3} out_axis Vector receiving the axis of rotation - * @param {ReadonlyQuat} q Quaternion to be decomposed - * @return {Number} Angle, in radians, of the rotation - */ - - function getAxisAngle(out_axis, q) { - var rad = Math.acos(q[3]) * 2.0; - var s = Math.sin(rad / 2.0); - - if (s > EPSILON) { - out_axis[0] = q[0] / s; - out_axis[1] = q[1] / s; - out_axis[2] = q[2] / s; - } else { - // If s is zero, return any axis (no rotation - axis does not matter) - out_axis[0] = 1; - out_axis[1] = 0; - out_axis[2] = 0; - } - - return rad; - } - /** - * Gets the angular distance between two unit quaternions - * - * @param {ReadonlyQuat} a Origin unit quaternion - * @param {ReadonlyQuat} b Destination unit quaternion - * @return {Number} Angle, in radians, between the two quaternions - */ - - function getAngle(a, b) { - var dotproduct = dot$2(a, b); - return Math.acos(2 * dotproduct * dotproduct - 1); - } - /** - * Multiplies two quat's - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @returns {quat} out - */ - - function multiply$6(out, a, b) { - var ax = a[0], - ay = a[1], - az = a[2], - aw = a[3]; - var bx = b[0], - by = b[1], - bz = b[2], - bw = b[3]; - out[0] = ax * bw + aw * bx + ay * bz - az * by; - out[1] = ay * bw + aw * by + az * bx - ax * bz; - out[2] = az * bw + aw * bz + ax * by - ay * bx; - out[3] = aw * bw - ax * bx - ay * by - az * bz; - return out; - } - /** - * Rotates a quaternion by the given angle about the X axis - * - * @param {quat} out quat receiving operation result - * @param {ReadonlyQuat} a quat to rotate - * @param {number} rad angle (in radians) to rotate - * @returns {quat} out - */ - - function rotateX$2(out, a, rad) { - rad *= 0.5; - var ax = a[0], - ay = a[1], - az = a[2], - aw = a[3]; - var bx = Math.sin(rad), - bw = Math.cos(rad); - out[0] = ax * bw + aw * bx; - out[1] = ay * bw + az * bx; - out[2] = az * bw - ay * bx; - out[3] = aw * bw - ax * bx; - return out; - } - /** - * Rotates a quaternion by the given angle about the Y axis - * - * @param {quat} out quat receiving operation result - * @param {ReadonlyQuat} a quat to rotate - * @param {number} rad angle (in radians) to rotate - * @returns {quat} out - */ - - function rotateY$2(out, a, rad) { - rad *= 0.5; - var ax = a[0], - ay = a[1], - az = a[2], - aw = a[3]; - var by = Math.sin(rad), - bw = Math.cos(rad); - out[0] = ax * bw - az * by; - out[1] = ay * bw + aw * by; - out[2] = az * bw + ax * by; - out[3] = aw * bw - ay * by; - return out; - } - /** - * Rotates a quaternion by the given angle about the Z axis - * - * @param {quat} out quat receiving operation result - * @param {ReadonlyQuat} a quat to rotate - * @param {number} rad angle (in radians) to rotate - * @returns {quat} out - */ - - function rotateZ$2(out, a, rad) { - rad *= 0.5; - var ax = a[0], - ay = a[1], - az = a[2], - aw = a[3]; - var bz = Math.sin(rad), - bw = Math.cos(rad); - out[0] = ax * bw + ay * bz; - out[1] = ay * bw - ax * bz; - out[2] = az * bw + aw * bz; - out[3] = aw * bw - az * bz; - return out; - } - /** - * Calculates the W component of a quat from the X, Y, and Z components. - * Assumes that quaternion is 1 unit in length. - * Any existing W component will be ignored. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate W component of - * @returns {quat} out - */ - - function calculateW(out, a) { - var x = a[0], - y = a[1], - z = a[2]; - out[0] = x; - out[1] = y; - out[2] = z; - out[3] = Math.sqrt(Math.abs(1.0 - x * x - y * y - z * z)); - return out; - } - /** - * Calculate the exponential of a unit quaternion. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate the exponential of - * @returns {quat} out - */ - - function exp(out, a) { - var x = a[0], - y = a[1], - z = a[2], - w = a[3]; - var r = Math.sqrt(x * x + y * y + z * z); - var et = Math.exp(w); - var s = r > 0 ? et * Math.sin(r) / r : 0; - out[0] = x * s; - out[1] = y * s; - out[2] = z * s; - out[3] = et * Math.cos(r); - return out; - } - /** - * Calculate the natural logarithm of a unit quaternion. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate the exponential of - * @returns {quat} out - */ - - function ln(out, a) { - var x = a[0], - y = a[1], - z = a[2], - w = a[3]; - var r = Math.sqrt(x * x + y * y + z * z); - var t = r > 0 ? Math.atan2(r, w) / r : 0; - out[0] = x * t; - out[1] = y * t; - out[2] = z * t; - out[3] = 0.5 * Math.log(x * x + y * y + z * z + w * w); - return out; - } - /** - * Calculate the scalar power of a unit quaternion. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate the exponential of - * @param {Number} b amount to scale the quaternion by - * @returns {quat} out - */ - - function pow(out, a, b) { - ln(out, a); - scale$6(out, out, b); - exp(out, out); - return out; - } - /** - * Performs a spherical linear interpolation between two quat - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {quat} out - */ - - function slerp(out, a, b, t) { - // benchmarks: - // http://jsperf.com/quaternion-slerp-implementations - var ax = a[0], - ay = a[1], - az = a[2], - aw = a[3]; - var bx = b[0], - by = b[1], - bz = b[2], - bw = b[3]; - var omega, cosom, sinom, scale0, scale1; // calc cosine - - cosom = ax * bx + ay * by + az * bz + aw * bw; // adjust signs (if necessary) - - if (cosom < 0.0) { - cosom = -cosom; - bx = -bx; - by = -by; - bz = -bz; - bw = -bw; - } // calculate coefficients - - - if (1.0 - cosom > EPSILON) { - // standard case (slerp) - omega = Math.acos(cosom); - sinom = Math.sin(omega); - scale0 = Math.sin((1.0 - t) * omega) / sinom; - scale1 = Math.sin(t * omega) / sinom; - } else { - // "from" and "to" quaternions are very close - // ... so we can do a linear interpolation - scale0 = 1.0 - t; - scale1 = t; - } // calculate final values - - - out[0] = scale0 * ax + scale1 * bx; - out[1] = scale0 * ay + scale1 * by; - out[2] = scale0 * az + scale1 * bz; - out[3] = scale0 * aw + scale1 * bw; - return out; - } - /** - * Generates a random unit quaternion - * - * @param {quat} out the receiving quaternion - * @returns {quat} out - */ - - function random$2(out) { - // Implementation of http://planning.cs.uiuc.edu/node198.html - // TODO: Calling random 3 times is probably not the fastest solution - var u1 = RANDOM(); - var u2 = RANDOM(); - var u3 = RANDOM(); - var sqrt1MinusU1 = Math.sqrt(1 - u1); - var sqrtU1 = Math.sqrt(u1); - out[0] = sqrt1MinusU1 * Math.sin(2.0 * Math.PI * u2); - out[1] = sqrt1MinusU1 * Math.cos(2.0 * Math.PI * u2); - out[2] = sqrtU1 * Math.sin(2.0 * Math.PI * u3); - out[3] = sqrtU1 * Math.cos(2.0 * Math.PI * u3); - return out; - } - /** - * Calculates the inverse of a quat - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate inverse of - * @returns {quat} out - */ - - function invert$4(out, a) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3]; - var dot = a0 * a0 + a1 * a1 + a2 * a2 + a3 * a3; - var invDot = dot ? 1.0 / dot : 0; // TODO: Would be faster to return [0,0,0,0] immediately if dot == 0 - - out[0] = -a0 * invDot; - out[1] = -a1 * invDot; - out[2] = -a2 * invDot; - out[3] = a3 * invDot; - return out; - } - /** - * Calculates the conjugate of a quat - * If the quaternion is normalized, this function is faster than quat.inverse and produces the same result. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate conjugate of - * @returns {quat} out - */ - - function conjugate(out, a) { - out[0] = -a[0]; - out[1] = -a[1]; - out[2] = -a[2]; - out[3] = a[3]; - return out; - } - /** - * Creates a quaternion from the given 3x3 rotation matrix. - * - * NOTE: The resultant quaternion is not normalized, so you should be sure - * to renormalize the quaternion yourself where necessary. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyMat3} m rotation matrix - * @returns {quat} out - * @function - */ - - function fromMat3(out, m) { - // Algorithm in Ken Shoemake's article in 1987 SIGGRAPH course notes - // article "Quaternion Calculus and Fast Animation". - var fTrace = m[0] + m[4] + m[8]; - var fRoot; - - if (fTrace > 0.0) { - // |w| > 1/2, may as well choose w > 1/2 - fRoot = Math.sqrt(fTrace + 1.0); // 2w - - out[3] = 0.5 * fRoot; - fRoot = 0.5 / fRoot; // 1/(4w) - - out[0] = (m[5] - m[7]) * fRoot; - out[1] = (m[6] - m[2]) * fRoot; - out[2] = (m[1] - m[3]) * fRoot; - } else { - // |w| <= 1/2 - var i = 0; - if (m[4] > m[0]) i = 1; - if (m[8] > m[i * 3 + i]) i = 2; - var j = (i + 1) % 3; - var k = (i + 2) % 3; - fRoot = Math.sqrt(m[i * 3 + i] - m[j * 3 + j] - m[k * 3 + k] + 1.0); - out[i] = 0.5 * fRoot; - fRoot = 0.5 / fRoot; - out[3] = (m[j * 3 + k] - m[k * 3 + j]) * fRoot; - out[j] = (m[j * 3 + i] + m[i * 3 + j]) * fRoot; - out[k] = (m[k * 3 + i] + m[i * 3 + k]) * fRoot; - } - - return out; - } - /** - * Creates a quaternion from the given euler angle x, y, z. - * - * @param {quat} out the receiving quaternion - * @param {x} Angle to rotate around X axis in degrees. - * @param {y} Angle to rotate around Y axis in degrees. - * @param {z} Angle to rotate around Z axis in degrees. - * @returns {quat} out - * @function - */ - - function fromEuler(out, x, y, z) { - var halfToRad = 0.5 * Math.PI / 180.0; - x *= halfToRad; - y *= halfToRad; - z *= halfToRad; - var sx = Math.sin(x); - var cx = Math.cos(x); - var sy = Math.sin(y); - var cy = Math.cos(y); - var sz = Math.sin(z); - var cz = Math.cos(z); - out[0] = sx * cy * cz - cx * sy * sz; - out[1] = cx * sy * cz + sx * cy * sz; - out[2] = cx * cy * sz - sx * sy * cz; - out[3] = cx * cy * cz + sx * sy * sz; - return out; - } - /** - * Returns a string representation of a quatenion - * - * @param {ReadonlyQuat} a vector to represent as a string - * @returns {String} string representation of the vector - */ - - function str$6(a) { - return "quat(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ")"; - } - /** - * Creates a new quat initialized with values from an existing quaternion - * - * @param {ReadonlyQuat} a quaternion to clone - * @returns {quat} a new quaternion - * @function - */ - - var clone$6 = clone$5; - /** - * Creates a new quat initialized with the given values - * - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @param {Number} w W component - * @returns {quat} a new quaternion - * @function - */ - - var fromValues$6 = fromValues$5; - /** - * Copy the values from one quat to another - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the source quaternion - * @returns {quat} out - * @function - */ - - var copy$6 = copy$5; - /** - * Set the components of a quat to the given values - * - * @param {quat} out the receiving quaternion - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @param {Number} w W component - * @returns {quat} out - * @function - */ - - var set$6 = set$5; - /** - * Adds two quat's - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @returns {quat} out - * @function - */ - - var add$6 = add$5; - /** - * Alias for {@link quat.multiply} - * @function - */ - - var mul$6 = multiply$6; - /** - * Scales a quat by a scalar number - * - * @param {quat} out the receiving vector - * @param {ReadonlyQuat} a the vector to scale - * @param {Number} b amount to scale the vector by - * @returns {quat} out - * @function - */ - - var scale$6 = scale$5; - /** - * Calculates the dot product of two quat's - * - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @returns {Number} dot product of a and b - * @function - */ - - var dot$2 = dot$1; - /** - * Performs a linear interpolation between two quat's - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {quat} out - * @function - */ - - var lerp$2 = lerp$1; - /** - * Calculates the length of a quat - * - * @param {ReadonlyQuat} a vector to calculate length of - * @returns {Number} length of a - */ - - var length$2 = length$1; - /** - * Alias for {@link quat.length} - * @function - */ - - var len$2 = length$2; - /** - * Calculates the squared length of a quat - * - * @param {ReadonlyQuat} a vector to calculate squared length of - * @returns {Number} squared length of a - * @function - */ - - var squaredLength$2 = squaredLength$1; - /** - * Alias for {@link quat.squaredLength} - * @function - */ - - var sqrLen$2 = squaredLength$2; - /** - * Normalize a quat - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quaternion to normalize - * @returns {quat} out - * @function - */ - - var normalize$2 = normalize$1; - /** - * Returns whether or not the quaternions have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyQuat} a The first quaternion. - * @param {ReadonlyQuat} b The second quaternion. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - - var exactEquals$6 = exactEquals$5; - /** - * Returns whether or not the quaternions have approximately the same elements in the same position. - * - * @param {ReadonlyQuat} a The first vector. - * @param {ReadonlyQuat} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - - var equals$7 = equals$6; - /** - * Sets a quaternion to represent the shortest rotation from one - * vector to another. - * - * Both vectors are assumed to be unit length. - * - * @param {quat} out the receiving quaternion. - * @param {ReadonlyVec3} a the initial vector - * @param {ReadonlyVec3} b the destination vector - * @returns {quat} out - */ - - var rotationTo = function () { - var tmpvec3 = create$4(); - var xUnitVec3 = fromValues$4(1, 0, 0); - var yUnitVec3 = fromValues$4(0, 1, 0); - return function (out, a, b) { - var dot$1 = dot(a, b); - - if (dot$1 < -0.999999) { - cross(tmpvec3, xUnitVec3, a); - if (len(tmpvec3) < 0.000001) cross(tmpvec3, yUnitVec3, a); - normalize(tmpvec3, tmpvec3); - setAxisAngle(out, tmpvec3, Math.PI); - return out; - } else if (dot$1 > 0.999999) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - out[3] = 1; - return out; - } else { - cross(tmpvec3, a, b); - out[0] = tmpvec3[0]; - out[1] = tmpvec3[1]; - out[2] = tmpvec3[2]; - out[3] = 1 + dot$1; - return normalize$2(out, out); - } - }; - }(); - /** - * Performs a spherical linear interpolation with two control points - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @param {ReadonlyQuat} c the third operand - * @param {ReadonlyQuat} d the fourth operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {quat} out - */ - - var sqlerp = function () { - var temp1 = create$6(); - var temp2 = create$6(); - return function (out, a, b, c, d, t) { - slerp(temp1, a, d, t); - slerp(temp2, b, c, t); - slerp(out, temp1, temp2, 2 * t * (1 - t)); - return out; - }; - }(); - /** - * Sets the specified quaternion with values corresponding to the given - * axes. Each axis is a vec3 and is expected to be unit length and - * perpendicular to all other specified axes. - * - * @param {ReadonlyVec3} view the vector representing the viewing direction - * @param {ReadonlyVec3} right the vector representing the local "right" direction - * @param {ReadonlyVec3} up the vector representing the local "up" direction - * @returns {quat} out - */ - - var setAxes = function () { - var matr = create$2(); - return function (out, view, right, up) { - matr[0] = right[0]; - matr[3] = right[1]; - matr[6] = right[2]; - matr[1] = up[0]; - matr[4] = up[1]; - matr[7] = up[2]; - matr[2] = -view[0]; - matr[5] = -view[1]; - matr[8] = -view[2]; - return normalize$2(out, fromMat3(out, matr)); - }; - }(); - - var quat = /*#__PURE__*/Object.freeze({ - __proto__: null, - create: create$6, - identity: identity$4, - setAxisAngle: setAxisAngle, - getAxisAngle: getAxisAngle, - getAngle: getAngle, - multiply: multiply$6, - rotateX: rotateX$2, - rotateY: rotateY$2, - rotateZ: rotateZ$2, - calculateW: calculateW, - exp: exp, - ln: ln, - pow: pow, - slerp: slerp, - random: random$2, - invert: invert$4, - conjugate: conjugate, - fromMat3: fromMat3, - fromEuler: fromEuler, - str: str$6, - clone: clone$6, - fromValues: fromValues$6, - copy: copy$6, - set: set$6, - add: add$6, - mul: mul$6, - scale: scale$6, - dot: dot$2, - lerp: lerp$2, - length: length$2, - len: len$2, - squaredLength: squaredLength$2, - sqrLen: sqrLen$2, - normalize: normalize$2, - exactEquals: exactEquals$6, - equals: equals$7, - rotationTo: rotationTo, - sqlerp: sqlerp, - setAxes: setAxes - }); - - /** - * Dual Quaternion
- * Format: [real, dual]
- * Quaternion format: XYZW
- * Make sure to have normalized dual quaternions, otherwise the functions may not work as intended.
- * @module quat2 - */ - - /** - * Creates a new identity dual quat - * - * @returns {quat2} a new dual quaternion [real -> rotation, dual -> translation] - */ - - function create$7() { - var dq = new ARRAY_TYPE(8); - - if (ARRAY_TYPE != Float32Array) { - dq[0] = 0; - dq[1] = 0; - dq[2] = 0; - dq[4] = 0; - dq[5] = 0; - dq[6] = 0; - dq[7] = 0; - } - - dq[3] = 1; - return dq; - } - /** - * Creates a new quat initialized with values from an existing quaternion - * - * @param {ReadonlyQuat2} a dual quaternion to clone - * @returns {quat2} new dual quaternion - * @function - */ - - function clone$7(a) { - var dq = new ARRAY_TYPE(8); - dq[0] = a[0]; - dq[1] = a[1]; - dq[2] = a[2]; - dq[3] = a[3]; - dq[4] = a[4]; - dq[5] = a[5]; - dq[6] = a[6]; - dq[7] = a[7]; - return dq; - } - /** - * Creates a new dual quat initialized with the given values - * - * @param {Number} x1 X component - * @param {Number} y1 Y component - * @param {Number} z1 Z component - * @param {Number} w1 W component - * @param {Number} x2 X component - * @param {Number} y2 Y component - * @param {Number} z2 Z component - * @param {Number} w2 W component - * @returns {quat2} new dual quaternion - * @function - */ - - function fromValues$7(x1, y1, z1, w1, x2, y2, z2, w2) { - var dq = new ARRAY_TYPE(8); - dq[0] = x1; - dq[1] = y1; - dq[2] = z1; - dq[3] = w1; - dq[4] = x2; - dq[5] = y2; - dq[6] = z2; - dq[7] = w2; - return dq; - } - /** - * Creates a new dual quat from the given values (quat and translation) - * - * @param {Number} x1 X component - * @param {Number} y1 Y component - * @param {Number} z1 Z component - * @param {Number} w1 W component - * @param {Number} x2 X component (translation) - * @param {Number} y2 Y component (translation) - * @param {Number} z2 Z component (translation) - * @returns {quat2} new dual quaternion - * @function - */ - - function fromRotationTranslationValues(x1, y1, z1, w1, x2, y2, z2) { - var dq = new ARRAY_TYPE(8); - dq[0] = x1; - dq[1] = y1; - dq[2] = z1; - dq[3] = w1; - var ax = x2 * 0.5, - ay = y2 * 0.5, - az = z2 * 0.5; - dq[4] = ax * w1 + ay * z1 - az * y1; - dq[5] = ay * w1 + az * x1 - ax * z1; - dq[6] = az * w1 + ax * y1 - ay * x1; - dq[7] = -ax * x1 - ay * y1 - az * z1; - return dq; - } - /** - * Creates a dual quat from a quaternion and a translation - * - * @param {ReadonlyQuat2} dual quaternion receiving operation result - * @param {ReadonlyQuat} q a normalized quaternion - * @param {ReadonlyVec3} t tranlation vector - * @returns {quat2} dual quaternion receiving operation result - * @function - */ - - function fromRotationTranslation$1(out, q, t) { - var ax = t[0] * 0.5, - ay = t[1] * 0.5, - az = t[2] * 0.5, - bx = q[0], - by = q[1], - bz = q[2], - bw = q[3]; - out[0] = bx; - out[1] = by; - out[2] = bz; - out[3] = bw; - out[4] = ax * bw + ay * bz - az * by; - out[5] = ay * bw + az * bx - ax * bz; - out[6] = az * bw + ax * by - ay * bx; - out[7] = -ax * bx - ay * by - az * bz; - return out; - } - /** - * Creates a dual quat from a translation - * - * @param {ReadonlyQuat2} dual quaternion receiving operation result - * @param {ReadonlyVec3} t translation vector - * @returns {quat2} dual quaternion receiving operation result - * @function - */ - - function fromTranslation$3(out, t) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - out[3] = 1; - out[4] = t[0] * 0.5; - out[5] = t[1] * 0.5; - out[6] = t[2] * 0.5; - out[7] = 0; - return out; - } - /** - * Creates a dual quat from a quaternion - * - * @param {ReadonlyQuat2} dual quaternion receiving operation result - * @param {ReadonlyQuat} q the quaternion - * @returns {quat2} dual quaternion receiving operation result - * @function - */ - - function fromRotation$4(out, q) { - out[0] = q[0]; - out[1] = q[1]; - out[2] = q[2]; - out[3] = q[3]; - out[4] = 0; - out[5] = 0; - out[6] = 0; - out[7] = 0; - return out; - } - /** - * Creates a new dual quat from a matrix (4x4) - * - * @param {quat2} out the dual quaternion - * @param {ReadonlyMat4} a the matrix - * @returns {quat2} dual quat receiving operation result - * @function - */ - - function fromMat4$1(out, a) { - //TODO Optimize this - var outer = create$6(); - getRotation(outer, a); - var t = new ARRAY_TYPE(3); - getTranslation(t, a); - fromRotationTranslation$1(out, outer, t); - return out; - } - /** - * Copy the values from one dual quat to another - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the source dual quaternion - * @returns {quat2} out - * @function - */ - - function copy$7(out, a) { - out[0] = a[0]; - out[1] = a[1]; - out[2] = a[2]; - out[3] = a[3]; - out[4] = a[4]; - out[5] = a[5]; - out[6] = a[6]; - out[7] = a[7]; - return out; - } - /** - * Set a dual quat to the identity dual quaternion - * - * @param {quat2} out the receiving quaternion - * @returns {quat2} out - */ - - function identity$5(out) { - out[0] = 0; - out[1] = 0; - out[2] = 0; - out[3] = 1; - out[4] = 0; - out[5] = 0; - out[6] = 0; - out[7] = 0; - return out; - } - /** - * Set the components of a dual quat to the given values - * - * @param {quat2} out the receiving quaternion - * @param {Number} x1 X component - * @param {Number} y1 Y component - * @param {Number} z1 Z component - * @param {Number} w1 W component - * @param {Number} x2 X component - * @param {Number} y2 Y component - * @param {Number} z2 Z component - * @param {Number} w2 W component - * @returns {quat2} out - * @function - */ - - function set$7(out, x1, y1, z1, w1, x2, y2, z2, w2) { - out[0] = x1; - out[1] = y1; - out[2] = z1; - out[3] = w1; - out[4] = x2; - out[5] = y2; - out[6] = z2; - out[7] = w2; - return out; - } - /** - * Gets the real part of a dual quat - * @param {quat} out real part - * @param {ReadonlyQuat2} a Dual Quaternion - * @return {quat} real part - */ - - var getReal = copy$6; - /** - * Gets the dual part of a dual quat - * @param {quat} out dual part - * @param {ReadonlyQuat2} a Dual Quaternion - * @return {quat} dual part - */ - - function getDual(out, a) { - out[0] = a[4]; - out[1] = a[5]; - out[2] = a[6]; - out[3] = a[7]; - return out; - } - /** - * Set the real component of a dual quat to the given quaternion - * - * @param {quat2} out the receiving quaternion - * @param {ReadonlyQuat} q a quaternion representing the real part - * @returns {quat2} out - * @function - */ - - var setReal = copy$6; - /** - * Set the dual component of a dual quat to the given quaternion - * - * @param {quat2} out the receiving quaternion - * @param {ReadonlyQuat} q a quaternion representing the dual part - * @returns {quat2} out - * @function - */ - - function setDual(out, q) { - out[4] = q[0]; - out[5] = q[1]; - out[6] = q[2]; - out[7] = q[3]; - return out; - } - /** - * Gets the translation of a normalized dual quat - * @param {vec3} out translation - * @param {ReadonlyQuat2} a Dual Quaternion to be decomposed - * @return {vec3} translation - */ - - function getTranslation$1(out, a) { - var ax = a[4], - ay = a[5], - az = a[6], - aw = a[7], - bx = -a[0], - by = -a[1], - bz = -a[2], - bw = a[3]; - out[0] = (ax * bw + aw * bx + ay * bz - az * by) * 2; - out[1] = (ay * bw + aw * by + az * bx - ax * bz) * 2; - out[2] = (az * bw + aw * bz + ax * by - ay * bx) * 2; - return out; - } - /** - * Translates a dual quat by the given vector - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to translate - * @param {ReadonlyVec3} v vector to translate by - * @returns {quat2} out - */ - - function translate$3(out, a, v) { - var ax1 = a[0], - ay1 = a[1], - az1 = a[2], - aw1 = a[3], - bx1 = v[0] * 0.5, - by1 = v[1] * 0.5, - bz1 = v[2] * 0.5, - ax2 = a[4], - ay2 = a[5], - az2 = a[6], - aw2 = a[7]; - out[0] = ax1; - out[1] = ay1; - out[2] = az1; - out[3] = aw1; - out[4] = aw1 * bx1 + ay1 * bz1 - az1 * by1 + ax2; - out[5] = aw1 * by1 + az1 * bx1 - ax1 * bz1 + ay2; - out[6] = aw1 * bz1 + ax1 * by1 - ay1 * bx1 + az2; - out[7] = -ax1 * bx1 - ay1 * by1 - az1 * bz1 + aw2; - return out; - } - /** - * Rotates a dual quat around the X axis - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @param {number} rad how far should the rotation be - * @returns {quat2} out - */ - - function rotateX$3(out, a, rad) { - var bx = -a[0], - by = -a[1], - bz = -a[2], - bw = a[3], - ax = a[4], - ay = a[5], - az = a[6], - aw = a[7], - ax1 = ax * bw + aw * bx + ay * bz - az * by, - ay1 = ay * bw + aw * by + az * bx - ax * bz, - az1 = az * bw + aw * bz + ax * by - ay * bx, - aw1 = aw * bw - ax * bx - ay * by - az * bz; - rotateX$2(out, a, rad); - bx = out[0]; - by = out[1]; - bz = out[2]; - bw = out[3]; - out[4] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by; - out[5] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz; - out[6] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx; - out[7] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz; - return out; - } - /** - * Rotates a dual quat around the Y axis - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @param {number} rad how far should the rotation be - * @returns {quat2} out - */ - - function rotateY$3(out, a, rad) { - var bx = -a[0], - by = -a[1], - bz = -a[2], - bw = a[3], - ax = a[4], - ay = a[5], - az = a[6], - aw = a[7], - ax1 = ax * bw + aw * bx + ay * bz - az * by, - ay1 = ay * bw + aw * by + az * bx - ax * bz, - az1 = az * bw + aw * bz + ax * by - ay * bx, - aw1 = aw * bw - ax * bx - ay * by - az * bz; - rotateY$2(out, a, rad); - bx = out[0]; - by = out[1]; - bz = out[2]; - bw = out[3]; - out[4] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by; - out[5] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz; - out[6] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx; - out[7] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz; - return out; - } - /** - * Rotates a dual quat around the Z axis - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @param {number} rad how far should the rotation be - * @returns {quat2} out - */ - - function rotateZ$3(out, a, rad) { - var bx = -a[0], - by = -a[1], - bz = -a[2], - bw = a[3], - ax = a[4], - ay = a[5], - az = a[6], - aw = a[7], - ax1 = ax * bw + aw * bx + ay * bz - az * by, - ay1 = ay * bw + aw * by + az * bx - ax * bz, - az1 = az * bw + aw * bz + ax * by - ay * bx, - aw1 = aw * bw - ax * bx - ay * by - az * bz; - rotateZ$2(out, a, rad); - bx = out[0]; - by = out[1]; - bz = out[2]; - bw = out[3]; - out[4] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by; - out[5] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz; - out[6] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx; - out[7] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz; - return out; - } - /** - * Rotates a dual quat by a given quaternion (a * q) - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @param {ReadonlyQuat} q quaternion to rotate by - * @returns {quat2} out - */ - - function rotateByQuatAppend(out, a, q) { - var qx = q[0], - qy = q[1], - qz = q[2], - qw = q[3], - ax = a[0], - ay = a[1], - az = a[2], - aw = a[3]; - out[0] = ax * qw + aw * qx + ay * qz - az * qy; - out[1] = ay * qw + aw * qy + az * qx - ax * qz; - out[2] = az * qw + aw * qz + ax * qy - ay * qx; - out[3] = aw * qw - ax * qx - ay * qy - az * qz; - ax = a[4]; - ay = a[5]; - az = a[6]; - aw = a[7]; - out[4] = ax * qw + aw * qx + ay * qz - az * qy; - out[5] = ay * qw + aw * qy + az * qx - ax * qz; - out[6] = az * qw + aw * qz + ax * qy - ay * qx; - out[7] = aw * qw - ax * qx - ay * qy - az * qz; - return out; - } - /** - * Rotates a dual quat by a given quaternion (q * a) - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat} q quaternion to rotate by - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @returns {quat2} out - */ - - function rotateByQuatPrepend(out, q, a) { - var qx = q[0], - qy = q[1], - qz = q[2], - qw = q[3], - bx = a[0], - by = a[1], - bz = a[2], - bw = a[3]; - out[0] = qx * bw + qw * bx + qy * bz - qz * by; - out[1] = qy * bw + qw * by + qz * bx - qx * bz; - out[2] = qz * bw + qw * bz + qx * by - qy * bx; - out[3] = qw * bw - qx * bx - qy * by - qz * bz; - bx = a[4]; - by = a[5]; - bz = a[6]; - bw = a[7]; - out[4] = qx * bw + qw * bx + qy * bz - qz * by; - out[5] = qy * bw + qw * by + qz * bx - qx * bz; - out[6] = qz * bw + qw * bz + qx * by - qy * bx; - out[7] = qw * bw - qx * bx - qy * by - qz * bz; - return out; - } - /** - * Rotates a dual quat around a given axis. Does the normalisation automatically - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @param {ReadonlyVec3} axis the axis to rotate around - * @param {Number} rad how far the rotation should be - * @returns {quat2} out - */ - - function rotateAroundAxis(out, a, axis, rad) { - //Special case for rad = 0 - if (Math.abs(rad) < EPSILON) { - return copy$7(out, a); - } - - var axisLength = Math.hypot(axis[0], axis[1], axis[2]); - rad = rad * 0.5; - var s = Math.sin(rad); - var bx = s * axis[0] / axisLength; - var by = s * axis[1] / axisLength; - var bz = s * axis[2] / axisLength; - var bw = Math.cos(rad); - var ax1 = a[0], - ay1 = a[1], - az1 = a[2], - aw1 = a[3]; - out[0] = ax1 * bw + aw1 * bx + ay1 * bz - az1 * by; - out[1] = ay1 * bw + aw1 * by + az1 * bx - ax1 * bz; - out[2] = az1 * bw + aw1 * bz + ax1 * by - ay1 * bx; - out[3] = aw1 * bw - ax1 * bx - ay1 * by - az1 * bz; - var ax = a[4], - ay = a[5], - az = a[6], - aw = a[7]; - out[4] = ax * bw + aw * bx + ay * bz - az * by; - out[5] = ay * bw + aw * by + az * bx - ax * bz; - out[6] = az * bw + aw * bz + ax * by - ay * bx; - out[7] = aw * bw - ax * bx - ay * by - az * bz; - return out; - } - /** - * Adds two dual quat's - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the first operand - * @param {ReadonlyQuat2} b the second operand - * @returns {quat2} out - * @function - */ - - function add$7(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - out[2] = a[2] + b[2]; - out[3] = a[3] + b[3]; - out[4] = a[4] + b[4]; - out[5] = a[5] + b[5]; - out[6] = a[6] + b[6]; - out[7] = a[7] + b[7]; - return out; - } - /** - * Multiplies two dual quat's - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the first operand - * @param {ReadonlyQuat2} b the second operand - * @returns {quat2} out - */ - - function multiply$7(out, a, b) { - var ax0 = a[0], - ay0 = a[1], - az0 = a[2], - aw0 = a[3], - bx1 = b[4], - by1 = b[5], - bz1 = b[6], - bw1 = b[7], - ax1 = a[4], - ay1 = a[5], - az1 = a[6], - aw1 = a[7], - bx0 = b[0], - by0 = b[1], - bz0 = b[2], - bw0 = b[3]; - out[0] = ax0 * bw0 + aw0 * bx0 + ay0 * bz0 - az0 * by0; - out[1] = ay0 * bw0 + aw0 * by0 + az0 * bx0 - ax0 * bz0; - out[2] = az0 * bw0 + aw0 * bz0 + ax0 * by0 - ay0 * bx0; - out[3] = aw0 * bw0 - ax0 * bx0 - ay0 * by0 - az0 * bz0; - out[4] = ax0 * bw1 + aw0 * bx1 + ay0 * bz1 - az0 * by1 + ax1 * bw0 + aw1 * bx0 + ay1 * bz0 - az1 * by0; - out[5] = ay0 * bw1 + aw0 * by1 + az0 * bx1 - ax0 * bz1 + ay1 * bw0 + aw1 * by0 + az1 * bx0 - ax1 * bz0; - out[6] = az0 * bw1 + aw0 * bz1 + ax0 * by1 - ay0 * bx1 + az1 * bw0 + aw1 * bz0 + ax1 * by0 - ay1 * bx0; - out[7] = aw0 * bw1 - ax0 * bx1 - ay0 * by1 - az0 * bz1 + aw1 * bw0 - ax1 * bx0 - ay1 * by0 - az1 * bz0; - return out; - } - /** - * Alias for {@link quat2.multiply} - * @function - */ - - var mul$7 = multiply$7; - /** - * Scales a dual quat by a scalar number - * - * @param {quat2} out the receiving dual quat - * @param {ReadonlyQuat2} a the dual quat to scale - * @param {Number} b amount to scale the dual quat by - * @returns {quat2} out - * @function - */ - - function scale$7(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - out[2] = a[2] * b; - out[3] = a[3] * b; - out[4] = a[4] * b; - out[5] = a[5] * b; - out[6] = a[6] * b; - out[7] = a[7] * b; - return out; - } - /** - * Calculates the dot product of two dual quat's (The dot product of the real parts) - * - * @param {ReadonlyQuat2} a the first operand - * @param {ReadonlyQuat2} b the second operand - * @returns {Number} dot product of a and b - * @function - */ - - var dot$3 = dot$2; - /** - * Performs a linear interpolation between two dual quats's - * NOTE: The resulting dual quaternions won't always be normalized (The error is most noticeable when t = 0.5) - * - * @param {quat2} out the receiving dual quat - * @param {ReadonlyQuat2} a the first operand - * @param {ReadonlyQuat2} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {quat2} out - */ - - function lerp$3(out, a, b, t) { - var mt = 1 - t; - if (dot$3(a, b) < 0) t = -t; - out[0] = a[0] * mt + b[0] * t; - out[1] = a[1] * mt + b[1] * t; - out[2] = a[2] * mt + b[2] * t; - out[3] = a[3] * mt + b[3] * t; - out[4] = a[4] * mt + b[4] * t; - out[5] = a[5] * mt + b[5] * t; - out[6] = a[6] * mt + b[6] * t; - out[7] = a[7] * mt + b[7] * t; - return out; - } - /** - * Calculates the inverse of a dual quat. If they are normalized, conjugate is cheaper - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a dual quat to calculate inverse of - * @returns {quat2} out - */ - - function invert$5(out, a) { - var sqlen = squaredLength$3(a); - out[0] = -a[0] / sqlen; - out[1] = -a[1] / sqlen; - out[2] = -a[2] / sqlen; - out[3] = a[3] / sqlen; - out[4] = -a[4] / sqlen; - out[5] = -a[5] / sqlen; - out[6] = -a[6] / sqlen; - out[7] = a[7] / sqlen; - return out; - } - /** - * Calculates the conjugate of a dual quat - * If the dual quaternion is normalized, this function is faster than quat2.inverse and produces the same result. - * - * @param {quat2} out the receiving quaternion - * @param {ReadonlyQuat2} a quat to calculate conjugate of - * @returns {quat2} out - */ - - function conjugate$1(out, a) { - out[0] = -a[0]; - out[1] = -a[1]; - out[2] = -a[2]; - out[3] = a[3]; - out[4] = -a[4]; - out[5] = -a[5]; - out[6] = -a[6]; - out[7] = a[7]; - return out; - } - /** - * Calculates the length of a dual quat - * - * @param {ReadonlyQuat2} a dual quat to calculate length of - * @returns {Number} length of a - * @function - */ - - var length$3 = length$2; - /** - * Alias for {@link quat2.length} - * @function - */ - - var len$3 = length$3; - /** - * Calculates the squared length of a dual quat - * - * @param {ReadonlyQuat2} a dual quat to calculate squared length of - * @returns {Number} squared length of a - * @function - */ - - var squaredLength$3 = squaredLength$2; - /** - * Alias for {@link quat2.squaredLength} - * @function - */ - - var sqrLen$3 = squaredLength$3; - /** - * Normalize a dual quat - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a dual quaternion to normalize - * @returns {quat2} out - * @function - */ - - function normalize$3(out, a) { - var magnitude = squaredLength$3(a); - - if (magnitude > 0) { - magnitude = Math.sqrt(magnitude); - var a0 = a[0] / magnitude; - var a1 = a[1] / magnitude; - var a2 = a[2] / magnitude; - var a3 = a[3] / magnitude; - var b0 = a[4]; - var b1 = a[5]; - var b2 = a[6]; - var b3 = a[7]; - var a_dot_b = a0 * b0 + a1 * b1 + a2 * b2 + a3 * b3; - out[0] = a0; - out[1] = a1; - out[2] = a2; - out[3] = a3; - out[4] = (b0 - a0 * a_dot_b) / magnitude; - out[5] = (b1 - a1 * a_dot_b) / magnitude; - out[6] = (b2 - a2 * a_dot_b) / magnitude; - out[7] = (b3 - a3 * a_dot_b) / magnitude; - } - - return out; - } - /** - * Returns a string representation of a dual quatenion - * - * @param {ReadonlyQuat2} a dual quaternion to represent as a string - * @returns {String} string representation of the dual quat - */ - - function str$7(a) { - return "quat2(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ", " + a[6] + ", " + a[7] + ")"; - } - /** - * Returns whether or not the dual quaternions have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyQuat2} a the first dual quaternion. - * @param {ReadonlyQuat2} b the second dual quaternion. - * @returns {Boolean} true if the dual quaternions are equal, false otherwise. - */ - - function exactEquals$7(a, b) { - return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3] && a[4] === b[4] && a[5] === b[5] && a[6] === b[6] && a[7] === b[7]; - } - /** - * Returns whether or not the dual quaternions have approximately the same elements in the same position. - * - * @param {ReadonlyQuat2} a the first dual quat. - * @param {ReadonlyQuat2} b the second dual quat. - * @returns {Boolean} true if the dual quats are equal, false otherwise. - */ - - function equals$8(a, b) { - var a0 = a[0], - a1 = a[1], - a2 = a[2], - a3 = a[3], - a4 = a[4], - a5 = a[5], - a6 = a[6], - a7 = a[7]; - var b0 = b[0], - b1 = b[1], - b2 = b[2], - b3 = b[3], - b4 = b[4], - b5 = b[5], - b6 = b[6], - b7 = b[7]; - return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= EPSILON * Math.max(1.0, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= EPSILON * Math.max(1.0, Math.abs(a7), Math.abs(b7)); - } - - var quat2 = /*#__PURE__*/Object.freeze({ - __proto__: null, - create: create$7, - clone: clone$7, - fromValues: fromValues$7, - fromRotationTranslationValues: fromRotationTranslationValues, - fromRotationTranslation: fromRotationTranslation$1, - fromTranslation: fromTranslation$3, - fromRotation: fromRotation$4, - fromMat4: fromMat4$1, - copy: copy$7, - identity: identity$5, - set: set$7, - getReal: getReal, - getDual: getDual, - setReal: setReal, - setDual: setDual, - getTranslation: getTranslation$1, - translate: translate$3, - rotateX: rotateX$3, - rotateY: rotateY$3, - rotateZ: rotateZ$3, - rotateByQuatAppend: rotateByQuatAppend, - rotateByQuatPrepend: rotateByQuatPrepend, - rotateAroundAxis: rotateAroundAxis, - add: add$7, - multiply: multiply$7, - mul: mul$7, - scale: scale$7, - dot: dot$3, - lerp: lerp$3, - invert: invert$5, - conjugate: conjugate$1, - length: length$3, - len: len$3, - squaredLength: squaredLength$3, - sqrLen: sqrLen$3, - normalize: normalize$3, - str: str$7, - exactEquals: exactEquals$7, - equals: equals$8 - }); - - /** - * 2 Dimensional Vector - * @module vec2 - */ - - /** - * Creates a new, empty vec2 - * - * @returns {vec2} a new 2D vector - */ - - function create$8() { - var out = new ARRAY_TYPE(2); - - if (ARRAY_TYPE != Float32Array) { - out[0] = 0; - out[1] = 0; - } - - return out; - } - /** - * Creates a new vec2 initialized with values from an existing vector - * - * @param {ReadonlyVec2} a vector to clone - * @returns {vec2} a new 2D vector - */ - - function clone$8(a) { - var out = new ARRAY_TYPE(2); - out[0] = a[0]; - out[1] = a[1]; - return out; - } - /** - * Creates a new vec2 initialized with the given values - * - * @param {Number} x X component - * @param {Number} y Y component - * @returns {vec2} a new 2D vector - */ - - function fromValues$8(x, y) { - var out = new ARRAY_TYPE(2); - out[0] = x; - out[1] = y; - return out; - } - /** - * Copy the values from one vec2 to another - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the source vector - * @returns {vec2} out - */ - - function copy$8(out, a) { - out[0] = a[0]; - out[1] = a[1]; - return out; - } - /** - * Set the components of a vec2 to the given values - * - * @param {vec2} out the receiving vector - * @param {Number} x X component - * @param {Number} y Y component - * @returns {vec2} out - */ - - function set$8(out, x, y) { - out[0] = x; - out[1] = y; - return out; - } - /** - * Adds two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - - function add$8(out, a, b) { - out[0] = a[0] + b[0]; - out[1] = a[1] + b[1]; - return out; - } - /** - * Subtracts vector b from vector a - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - - function subtract$6(out, a, b) { - out[0] = a[0] - b[0]; - out[1] = a[1] - b[1]; - return out; - } - /** - * Multiplies two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - - function multiply$8(out, a, b) { - out[0] = a[0] * b[0]; - out[1] = a[1] * b[1]; - return out; - } - /** - * Divides two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - - function divide$2(out, a, b) { - out[0] = a[0] / b[0]; - out[1] = a[1] / b[1]; - return out; - } - /** - * Math.ceil the components of a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to ceil - * @returns {vec2} out - */ - - function ceil$2(out, a) { - out[0] = Math.ceil(a[0]); - out[1] = Math.ceil(a[1]); - return out; - } - /** - * Math.floor the components of a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to floor - * @returns {vec2} out - */ - - function floor$2(out, a) { - out[0] = Math.floor(a[0]); - out[1] = Math.floor(a[1]); - return out; - } - /** - * Returns the minimum of two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - - function min$2(out, a, b) { - out[0] = Math.min(a[0], b[0]); - out[1] = Math.min(a[1], b[1]); - return out; - } - /** - * Returns the maximum of two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - - function max$2(out, a, b) { - out[0] = Math.max(a[0], b[0]); - out[1] = Math.max(a[1], b[1]); - return out; - } - /** - * Math.round the components of a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to round - * @returns {vec2} out - */ - - function round$2(out, a) { - out[0] = Math.round(a[0]); - out[1] = Math.round(a[1]); - return out; - } - /** - * Scales a vec2 by a scalar number - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the vector to scale - * @param {Number} b amount to scale the vector by - * @returns {vec2} out - */ - - function scale$8(out, a, b) { - out[0] = a[0] * b; - out[1] = a[1] * b; - return out; - } - /** - * Adds two vec2's after scaling the second operand by a scalar value - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @param {Number} scale the amount to scale b by before adding - * @returns {vec2} out - */ - - function scaleAndAdd$2(out, a, b, scale) { - out[0] = a[0] + b[0] * scale; - out[1] = a[1] + b[1] * scale; - return out; - } - /** - * Calculates the euclidian distance between two vec2's - * - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {Number} distance between a and b - */ - - function distance$2(a, b) { - var x = b[0] - a[0], - y = b[1] - a[1]; - return Math.hypot(x, y); - } - /** - * Calculates the squared euclidian distance between two vec2's - * - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {Number} squared distance between a and b - */ - - function squaredDistance$2(a, b) { - var x = b[0] - a[0], - y = b[1] - a[1]; - return x * x + y * y; - } - /** - * Calculates the length of a vec2 - * - * @param {ReadonlyVec2} a vector to calculate length of - * @returns {Number} length of a - */ - - function length$4(a) { - var x = a[0], - y = a[1]; - return Math.hypot(x, y); - } - /** - * Calculates the squared length of a vec2 - * - * @param {ReadonlyVec2} a vector to calculate squared length of - * @returns {Number} squared length of a - */ - - function squaredLength$4(a) { - var x = a[0], - y = a[1]; - return x * x + y * y; - } - /** - * Negates the components of a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to negate - * @returns {vec2} out - */ - - function negate$2(out, a) { - out[0] = -a[0]; - out[1] = -a[1]; - return out; - } - /** - * Returns the inverse of the components of a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to invert - * @returns {vec2} out - */ - - function inverse$2(out, a) { - out[0] = 1.0 / a[0]; - out[1] = 1.0 / a[1]; - return out; - } - /** - * Normalize a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to normalize - * @returns {vec2} out - */ - - function normalize$4(out, a) { - var x = a[0], - y = a[1]; - var len = x * x + y * y; - - if (len > 0) { - //TODO: evaluate use of glm_invsqrt here? - len = 1 / Math.sqrt(len); - } - - out[0] = a[0] * len; - out[1] = a[1] * len; - return out; - } - /** - * Calculates the dot product of two vec2's - * - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {Number} dot product of a and b - */ - - function dot$4(a, b) { - return a[0] * b[0] + a[1] * b[1]; - } - /** - * Computes the cross product of two vec2's - * Note that the cross product must by definition produce a 3D vector - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec3} out - */ - - function cross$2(out, a, b) { - var z = a[0] * b[1] - a[1] * b[0]; - out[0] = out[1] = 0; - out[2] = z; - return out; - } - /** - * Performs a linear interpolation between two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {vec2} out - */ - - function lerp$4(out, a, b, t) { - var ax = a[0], - ay = a[1]; - out[0] = ax + t * (b[0] - ax); - out[1] = ay + t * (b[1] - ay); - return out; - } - /** - * Generates a random vector with the given scale - * - * @param {vec2} out the receiving vector - * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned - * @returns {vec2} out - */ - - function random$3(out, scale) { - scale = scale || 1.0; - var r = RANDOM() * 2.0 * Math.PI; - out[0] = Math.cos(r) * scale; - out[1] = Math.sin(r) * scale; - return out; - } - /** - * Transforms the vec2 with a mat2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the vector to transform - * @param {ReadonlyMat2} m matrix to transform with - * @returns {vec2} out - */ - - function transformMat2(out, a, m) { - var x = a[0], - y = a[1]; - out[0] = m[0] * x + m[2] * y; - out[1] = m[1] * x + m[3] * y; - return out; - } - /** - * Transforms the vec2 with a mat2d - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the vector to transform - * @param {ReadonlyMat2d} m matrix to transform with - * @returns {vec2} out - */ - - function transformMat2d(out, a, m) { - var x = a[0], - y = a[1]; - out[0] = m[0] * x + m[2] * y + m[4]; - out[1] = m[1] * x + m[3] * y + m[5]; - return out; - } - /** - * Transforms the vec2 with a mat3 - * 3rd vector component is implicitly '1' - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the vector to transform - * @param {ReadonlyMat3} m matrix to transform with - * @returns {vec2} out - */ - - function transformMat3$1(out, a, m) { - var x = a[0], - y = a[1]; - out[0] = m[0] * x + m[3] * y + m[6]; - out[1] = m[1] * x + m[4] * y + m[7]; - return out; - } - /** - * Transforms the vec2 with a mat4 - * 3rd vector component is implicitly '0' - * 4th vector component is implicitly '1' - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the vector to transform - * @param {ReadonlyMat4} m matrix to transform with - * @returns {vec2} out - */ - - function transformMat4$2(out, a, m) { - var x = a[0]; - var y = a[1]; - out[0] = m[0] * x + m[4] * y + m[12]; - out[1] = m[1] * x + m[5] * y + m[13]; - return out; - } - /** - * Rotate a 2D vector - * @param {vec2} out The receiving vec2 - * @param {ReadonlyVec2} a The vec2 point to rotate - * @param {ReadonlyVec2} b The origin of the rotation - * @param {Number} rad The angle of rotation in radians - * @returns {vec2} out - */ - - function rotate$4(out, a, b, rad) { - //Translate point to the origin - var p0 = a[0] - b[0], - p1 = a[1] - b[1], - sinC = Math.sin(rad), - cosC = Math.cos(rad); //perform rotation and translate to correct position - - out[0] = p0 * cosC - p1 * sinC + b[0]; - out[1] = p0 * sinC + p1 * cosC + b[1]; - return out; - } - /** - * Get the angle between two 2D vectors - * @param {ReadonlyVec2} a The first operand - * @param {ReadonlyVec2} b The second operand - * @returns {Number} The angle in radians - */ - - function angle$1(a, b) { - var x1 = a[0], - y1 = a[1], - x2 = b[0], - y2 = b[1], - // mag is the product of the magnitudes of a and b - mag = Math.sqrt(x1 * x1 + y1 * y1) * Math.sqrt(x2 * x2 + y2 * y2), - // mag &&.. short circuits if mag == 0 - cosine = mag && (x1 * x2 + y1 * y2) / mag; // Math.min(Math.max(cosine, -1), 1) clamps the cosine between -1 and 1 - - return Math.acos(Math.min(Math.max(cosine, -1), 1)); - } - /** - * Set the components of a vec2 to zero - * - * @param {vec2} out the receiving vector - * @returns {vec2} out - */ - - function zero$2(out) { - out[0] = 0.0; - out[1] = 0.0; - return out; - } - /** - * Returns a string representation of a vector - * - * @param {ReadonlyVec2} a vector to represent as a string - * @returns {String} string representation of the vector - */ - - function str$8(a) { - return "vec2(" + a[0] + ", " + a[1] + ")"; - } - /** - * Returns whether or not the vectors exactly have the same elements in the same position (when compared with ===) - * - * @param {ReadonlyVec2} a The first vector. - * @param {ReadonlyVec2} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - - function exactEquals$8(a, b) { - return a[0] === b[0] && a[1] === b[1]; - } - /** - * Returns whether or not the vectors have approximately the same elements in the same position. - * - * @param {ReadonlyVec2} a The first vector. - * @param {ReadonlyVec2} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - - function equals$9(a, b) { - var a0 = a[0], - a1 = a[1]; - var b0 = b[0], - b1 = b[1]; - return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)); - } - /** - * Alias for {@link vec2.length} - * @function - */ - - var len$4 = length$4; - /** - * Alias for {@link vec2.subtract} - * @function - */ - - var sub$6 = subtract$6; - /** - * Alias for {@link vec2.multiply} - * @function - */ - - var mul$8 = multiply$8; - /** - * Alias for {@link vec2.divide} - * @function - */ - - var div$2 = divide$2; - /** - * Alias for {@link vec2.distance} - * @function - */ - - var dist$2 = distance$2; - /** - * Alias for {@link vec2.squaredDistance} - * @function - */ - - var sqrDist$2 = squaredDistance$2; - /** - * Alias for {@link vec2.squaredLength} - * @function - */ - - var sqrLen$4 = squaredLength$4; - /** - * Perform some operation over an array of vec2s. - * - * @param {Array} a the array of vectors to iterate over - * @param {Number} stride Number of elements between the start of each vec2. If 0 assumes tightly packed - * @param {Number} offset Number of elements to skip at the beginning of the array - * @param {Number} count Number of vec2s to iterate over. If 0 iterates over entire array - * @param {Function} fn Function to call for each vector in the array - * @param {Object} [arg] additional argument to pass to fn - * @returns {Array} a - * @function - */ - - var forEach$2 = function () { - var vec = create$8(); - return function (a, stride, offset, count, fn, arg) { - var i, l; - - if (!stride) { - stride = 2; - } - - if (!offset) { - offset = 0; - } - - if (count) { - l = Math.min(count * stride + offset, a.length); - } else { - l = a.length; - } - - for (i = offset; i < l; i += stride) { - vec[0] = a[i]; - vec[1] = a[i + 1]; - fn(vec, vec, arg); - a[i] = vec[0]; - a[i + 1] = vec[1]; - } - - return a; - }; - }(); - - var vec2 = /*#__PURE__*/Object.freeze({ - __proto__: null, - create: create$8, - clone: clone$8, - fromValues: fromValues$8, - copy: copy$8, - set: set$8, - add: add$8, - subtract: subtract$6, - multiply: multiply$8, - divide: divide$2, - ceil: ceil$2, - floor: floor$2, - min: min$2, - max: max$2, - round: round$2, - scale: scale$8, - scaleAndAdd: scaleAndAdd$2, - distance: distance$2, - squaredDistance: squaredDistance$2, - length: length$4, - squaredLength: squaredLength$4, - negate: negate$2, - inverse: inverse$2, - normalize: normalize$4, - dot: dot$4, - cross: cross$2, - lerp: lerp$4, - random: random$3, - transformMat2: transformMat2, - transformMat2d: transformMat2d, - transformMat3: transformMat3$1, - transformMat4: transformMat4$2, - rotate: rotate$4, - angle: angle$1, - zero: zero$2, - str: str$8, - exactEquals: exactEquals$8, - equals: equals$9, - len: len$4, - sub: sub$6, - mul: mul$8, - div: div$2, - dist: dist$2, - sqrDist: sqrDist$2, - sqrLen: sqrLen$4, - forEach: forEach$2 - }); - - exports.glMatrix = common; - exports.mat2 = mat2; - exports.mat2d = mat2d; - exports.mat3 = mat3; - exports.mat4 = mat4; - exports.quat = quat; - exports.quat2 = quat2; - exports.vec2 = vec2; - exports.vec3 = vec3; - exports.vec4 = vec4; - - Object.defineProperty(exports, '__esModule', { value: true }); - -}))); diff --git a/build_vtk_bundle/node_modules/gl-matrix/index.d.ts b/build_vtk_bundle/node_modules/gl-matrix/index.d.ts deleted file mode 100755 index d8a7b015..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/index.d.ts +++ /dev/null @@ -1,3273 +0,0 @@ -declare module "gl-matrix" { - -// prettier-ignore -export type mat2 = - | [number, number, - number, number] - | Float32Array; - -// prettier-ignore -export type mat2d = - | [number, number, - number, number, - number, number] - | Float32Array; - -// prettier-ignore -export type mat3 = - | [number, number, number, - number, number, number, - number, number, number] - | Float32Array; - -// prettier-ignore -export type mat4 = - | [number, number, number, number, - number, number, number, number, - number, number, number, number, - number, number, number, number] - | Float32Array; - -export type quat = [number, number, number, number] | Float32Array; - -// prettier-ignore -export type quat2 = - | [number, number, number, number, - number, number, number, number] - | Float32Array; - -export type vec2 = [number, number] | Float32Array; -export type vec3 = [number, number, number] | Float32Array; -export type vec4 = [number, number, number, number] | Float32Array; - -// prettier-ignore -export type ReadonlyMat2 = - | readonly [ - number, number, - number, number - ] - | Float32Array; - -// prettier-ignore -export type ReadonlyMat2d = - | readonly [ - number, number, - number, number, - number, number - ] - | Float32Array; - -// prettier-ignore -export type ReadonlyMat3 = - | readonly [ - number, number, number, - number, number, number, - number, number, number - ] - | Float32Array; - -// prettier-ignore -export type ReadonlyMat4 = - | readonly [ - number, number, number, number, - number, number, number, number, - number, number, number, number, - number, number, number, number - ] - | Float32Array; - -export type ReadonlyQuat = - | readonly [number, number, number, number] - | Float32Array; - -export type ReadonlyQuat2 = - | readonly [number, number, number, number, number, number, number, number] - | Float32Array; - -export type ReadonlyVec2 = readonly [number, number] | Float32Array; -export type ReadonlyVec3 = readonly [number, number, number] | Float32Array; -export type ReadonlyVec4 = - | readonly [number, number, number, number] - | Float32Array; - -export module glMatrix { - /** - * Sets the type of array used when creating new vectors and matrices - * - * @param {Float32ArrayConstructor | ArrayConstructor} type Array type, such as Float32Array or Array - */ - export function setMatrixArrayType(type: ArrayConstructor | Float32ArrayConstructor): void; - /** - * Convert Degree To Radian - * - * @param {Number} a Angle in Degrees - */ - export function toRadian(a: number): number; - /** - * Tests whether or not the arguments have approximately the same value, within an absolute - * or relative tolerance of glMatrix.EPSILON (an absolute tolerance is used for values less - * than or equal to 1.0, and a relative tolerance is used for larger values) - * - * @param {Number} a The first number to test. - * @param {Number} b The second number to test. - * @returns {Boolean} True if the numbers are approximately equal, false otherwise. - */ - export function equals(a: number, b: number): boolean; - /** - * Common utilities - * @module glMatrix - */ - export const EPSILON: 0.000001; - export let ARRAY_TYPE: ArrayConstructor | Float32ArrayConstructor; - export const RANDOM: () => number; -} -export module mat2 { - /** - * 2x2 Matrix - * @module mat2 - */ - /** - * Creates a new identity mat2 - * - * @returns {mat2} a new 2x2 matrix - */ - export function create(): mat2; - /** - * Creates a new mat2 initialized with values from an existing matrix - * - * @param {ReadonlyMat2} a matrix to clone - * @returns {mat2} a new 2x2 matrix - */ - export function clone(a: ReadonlyMat2): mat2; - /** - * Copy the values from one mat2 to another - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the source matrix - * @returns {mat2} out - */ - export function copy(out: mat2, a: ReadonlyMat2): mat2; - /** - * Set a mat2 to the identity matrix - * - * @param {mat2} out the receiving matrix - * @returns {mat2} out - */ - export function identity(out: mat2): mat2; - /** - * Create a new mat2 with the given values - * - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m10 Component in column 1, row 0 position (index 2) - * @param {Number} m11 Component in column 1, row 1 position (index 3) - * @returns {mat2} out A new 2x2 matrix - */ - export function fromValues(m00: number, m01: number, m10: number, m11: number): mat2; - /** - * Set the components of a mat2 to the given values - * - * @param {mat2} out the receiving matrix - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m10 Component in column 1, row 0 position (index 2) - * @param {Number} m11 Component in column 1, row 1 position (index 3) - * @returns {mat2} out - */ - export function set(out: mat2, m00: number, m01: number, m10: number, m11: number): mat2; - /** - * Transpose the values of a mat2 - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the source matrix - * @returns {mat2} out - */ - export function transpose(out: mat2, a: ReadonlyMat2): mat2; - /** - * Inverts a mat2 - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the source matrix - * @returns {mat2} out - */ - export function invert(out: mat2, a: ReadonlyMat2): mat2; - /** - * Calculates the adjugate of a mat2 - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the source matrix - * @returns {mat2} out - */ - export function adjoint(out: mat2, a: ReadonlyMat2): mat2; - /** - * Calculates the determinant of a mat2 - * - * @param {ReadonlyMat2} a the source matrix - * @returns {Number} determinant of a - */ - export function determinant(a: ReadonlyMat2): number; - /** - * Multiplies two mat2's - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the first operand - * @param {ReadonlyMat2} b the second operand - * @returns {mat2} out - */ - export function multiply(out: mat2, a: ReadonlyMat2, b: ReadonlyMat2): mat2; - /** - * Rotates a mat2 by the given angle - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat2} out - */ - export function rotate(out: mat2, a: ReadonlyMat2, rad: number): mat2; - /** - * Scales the mat2 by the dimensions in the given vec2 - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the matrix to rotate - * @param {ReadonlyVec2} v the vec2 to scale the matrix by - * @returns {mat2} out - **/ - export function scale(out: mat2, a: ReadonlyMat2, v: ReadonlyVec2): mat2; - /** - * Creates a matrix from a given angle - * This is equivalent to (but much faster than): - * - * mat2.identity(dest); - * mat2.rotate(dest, dest, rad); - * - * @param {mat2} out mat2 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat2} out - */ - export function fromRotation(out: mat2, rad: number): mat2; - /** - * Creates a matrix from a vector scaling - * This is equivalent to (but much faster than): - * - * mat2.identity(dest); - * mat2.scale(dest, dest, vec); - * - * @param {mat2} out mat2 receiving operation result - * @param {ReadonlyVec2} v Scaling vector - * @returns {mat2} out - */ - export function fromScaling(out: mat2, v: ReadonlyVec2): mat2; - /** - * Returns a string representation of a mat2 - * - * @param {ReadonlyMat2} a matrix to represent as a string - * @returns {String} string representation of the matrix - */ - export function str(a: ReadonlyMat2): string; - /** - * Returns Frobenius norm of a mat2 - * - * @param {ReadonlyMat2} a the matrix to calculate Frobenius norm of - * @returns {Number} Frobenius norm - */ - export function frob(a: ReadonlyMat2): number; - /** - * Returns L, D and U matrices (Lower triangular, Diagonal and Upper triangular) by factorizing the input matrix - * @param {ReadonlyMat2} L the lower triangular matrix - * @param {ReadonlyMat2} D the diagonal matrix - * @param {ReadonlyMat2} U the upper triangular matrix - * @param {ReadonlyMat2} a the input matrix to factorize - */ - export function LDU(L: ReadonlyMat2, D: ReadonlyMat2, U: ReadonlyMat2, a: ReadonlyMat2): ReadonlyMat2[]; - /** - * Adds two mat2's - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the first operand - * @param {ReadonlyMat2} b the second operand - * @returns {mat2} out - */ - export function add(out: mat2, a: ReadonlyMat2, b: ReadonlyMat2): mat2; - /** - * Subtracts matrix b from matrix a - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the first operand - * @param {ReadonlyMat2} b the second operand - * @returns {mat2} out - */ - export function subtract(out: mat2, a: ReadonlyMat2, b: ReadonlyMat2): mat2; - /** - * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyMat2} a The first matrix. - * @param {ReadonlyMat2} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - export function exactEquals(a: ReadonlyMat2, b: ReadonlyMat2): boolean; - /** - * Returns whether or not the matrices have approximately the same elements in the same position. - * - * @param {ReadonlyMat2} a The first matrix. - * @param {ReadonlyMat2} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - export function equals(a: ReadonlyMat2, b: ReadonlyMat2): boolean; - /** - * Multiply each element of the matrix by a scalar. - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the matrix to scale - * @param {Number} b amount to scale the matrix's elements by - * @returns {mat2} out - */ - export function multiplyScalar(out: mat2, a: ReadonlyMat2, b: number): mat2; - /** - * Adds two mat2's after multiplying each element of the second operand by a scalar value. - * - * @param {mat2} out the receiving vector - * @param {ReadonlyMat2} a the first operand - * @param {ReadonlyMat2} b the second operand - * @param {Number} scale the amount to scale b's elements by before adding - * @returns {mat2} out - */ - export function multiplyScalarAndAdd(out: mat2, a: ReadonlyMat2, b: ReadonlyMat2, scale: number): mat2; - /** - * Multiplies two mat2's - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the first operand - * @param {ReadonlyMat2} b the second operand - * @returns {mat2} out - */ - export function mul(out: mat2, a: ReadonlyMat2, b: ReadonlyMat2): mat2; - /** - * Subtracts matrix b from matrix a - * - * @param {mat2} out the receiving matrix - * @param {ReadonlyMat2} a the first operand - * @param {ReadonlyMat2} b the second operand - * @returns {mat2} out - */ - export function sub(out: mat2, a: ReadonlyMat2, b: ReadonlyMat2): mat2; -} -export module mat2d { - /** - * 2x3 Matrix - * @module mat2d - * @description - * A mat2d contains six elements defined as: - *
-     * [a, b,
-     *  c, d,
-     *  tx, ty]
-     * 
- * This is a short form for the 3x3 matrix: - *
-     * [a, b, 0,
-     *  c, d, 0,
-     *  tx, ty, 1]
-     * 
- * The last column is ignored so the array is shorter and operations are faster. - */ - /** - * Creates a new identity mat2d - * - * @returns {mat2d} a new 2x3 matrix - */ - export function create(): mat2d; - /** - * Creates a new mat2d initialized with values from an existing matrix - * - * @param {ReadonlyMat2d} a matrix to clone - * @returns {mat2d} a new 2x3 matrix - */ - export function clone(a: ReadonlyMat2d): mat2d; - /** - * Copy the values from one mat2d to another - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the source matrix - * @returns {mat2d} out - */ - export function copy(out: mat2d, a: ReadonlyMat2d): mat2d; - /** - * Set a mat2d to the identity matrix - * - * @param {mat2d} out the receiving matrix - * @returns {mat2d} out - */ - export function identity(out: mat2d): mat2d; - /** - * Create a new mat2d with the given values - * - * @param {Number} a Component A (index 0) - * @param {Number} b Component B (index 1) - * @param {Number} c Component C (index 2) - * @param {Number} d Component D (index 3) - * @param {Number} tx Component TX (index 4) - * @param {Number} ty Component TY (index 5) - * @returns {mat2d} A new mat2d - */ - export function fromValues(a: number, b: number, c: number, d: number, tx: number, ty: number): mat2d; - /** - * Set the components of a mat2d to the given values - * - * @param {mat2d} out the receiving matrix - * @param {Number} a Component A (index 0) - * @param {Number} b Component B (index 1) - * @param {Number} c Component C (index 2) - * @param {Number} d Component D (index 3) - * @param {Number} tx Component TX (index 4) - * @param {Number} ty Component TY (index 5) - * @returns {mat2d} out - */ - export function set(out: mat2d, a: number, b: number, c: number, d: number, tx: number, ty: number): mat2d; - /** - * Inverts a mat2d - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the source matrix - * @returns {mat2d} out - */ - export function invert(out: mat2d, a: ReadonlyMat2d): mat2d; - /** - * Calculates the determinant of a mat2d - * - * @param {ReadonlyMat2d} a the source matrix - * @returns {Number} determinant of a - */ - export function determinant(a: ReadonlyMat2d): number; - /** - * Multiplies two mat2d's - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the first operand - * @param {ReadonlyMat2d} b the second operand - * @returns {mat2d} out - */ - export function multiply(out: mat2d, a: ReadonlyMat2d, b: ReadonlyMat2d): mat2d; - /** - * Rotates a mat2d by the given angle - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat2d} out - */ - export function rotate(out: mat2d, a: ReadonlyMat2d, rad: number): mat2d; - /** - * Scales the mat2d by the dimensions in the given vec2 - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the matrix to translate - * @param {ReadonlyVec2} v the vec2 to scale the matrix by - * @returns {mat2d} out - **/ - export function scale(out: mat2d, a: ReadonlyMat2d, v: ReadonlyVec2): mat2d; - /** - * Translates the mat2d by the dimensions in the given vec2 - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the matrix to translate - * @param {ReadonlyVec2} v the vec2 to translate the matrix by - * @returns {mat2d} out - **/ - export function translate(out: mat2d, a: ReadonlyMat2d, v: ReadonlyVec2): mat2d; - /** - * Creates a matrix from a given angle - * This is equivalent to (but much faster than): - * - * mat2d.identity(dest); - * mat2d.rotate(dest, dest, rad); - * - * @param {mat2d} out mat2d receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat2d} out - */ - export function fromRotation(out: mat2d, rad: number): mat2d; - /** - * Creates a matrix from a vector scaling - * This is equivalent to (but much faster than): - * - * mat2d.identity(dest); - * mat2d.scale(dest, dest, vec); - * - * @param {mat2d} out mat2d receiving operation result - * @param {ReadonlyVec2} v Scaling vector - * @returns {mat2d} out - */ - export function fromScaling(out: mat2d, v: ReadonlyVec2): mat2d; - /** - * Creates a matrix from a vector translation - * This is equivalent to (but much faster than): - * - * mat2d.identity(dest); - * mat2d.translate(dest, dest, vec); - * - * @param {mat2d} out mat2d receiving operation result - * @param {ReadonlyVec2} v Translation vector - * @returns {mat2d} out - */ - export function fromTranslation(out: mat2d, v: ReadonlyVec2): mat2d; - /** - * Returns a string representation of a mat2d - * - * @param {ReadonlyMat2d} a matrix to represent as a string - * @returns {String} string representation of the matrix - */ - export function str(a: ReadonlyMat2d): string; - /** - * Returns Frobenius norm of a mat2d - * - * @param {ReadonlyMat2d} a the matrix to calculate Frobenius norm of - * @returns {Number} Frobenius norm - */ - export function frob(a: ReadonlyMat2d): number; - /** - * Adds two mat2d's - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the first operand - * @param {ReadonlyMat2d} b the second operand - * @returns {mat2d} out - */ - export function add(out: mat2d, a: ReadonlyMat2d, b: ReadonlyMat2d): mat2d; - /** - * Subtracts matrix b from matrix a - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the first operand - * @param {ReadonlyMat2d} b the second operand - * @returns {mat2d} out - */ - export function subtract(out: mat2d, a: ReadonlyMat2d, b: ReadonlyMat2d): mat2d; - /** - * Multiply each element of the matrix by a scalar. - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the matrix to scale - * @param {Number} b amount to scale the matrix's elements by - * @returns {mat2d} out - */ - export function multiplyScalar(out: mat2d, a: ReadonlyMat2d, b: number): mat2d; - /** - * Adds two mat2d's after multiplying each element of the second operand by a scalar value. - * - * @param {mat2d} out the receiving vector - * @param {ReadonlyMat2d} a the first operand - * @param {ReadonlyMat2d} b the second operand - * @param {Number} scale the amount to scale b's elements by before adding - * @returns {mat2d} out - */ - export function multiplyScalarAndAdd(out: mat2d, a: ReadonlyMat2d, b: ReadonlyMat2d, scale: number): mat2d; - /** - * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyMat2d} a The first matrix. - * @param {ReadonlyMat2d} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - export function exactEquals(a: ReadonlyMat2d, b: ReadonlyMat2d): boolean; - /** - * Returns whether or not the matrices have approximately the same elements in the same position. - * - * @param {ReadonlyMat2d} a The first matrix. - * @param {ReadonlyMat2d} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - export function equals(a: ReadonlyMat2d, b: ReadonlyMat2d): boolean; - /** - * Multiplies two mat2d's - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the first operand - * @param {ReadonlyMat2d} b the second operand - * @returns {mat2d} out - */ - export function mul(out: mat2d, a: ReadonlyMat2d, b: ReadonlyMat2d): mat2d; - /** - * Subtracts matrix b from matrix a - * - * @param {mat2d} out the receiving matrix - * @param {ReadonlyMat2d} a the first operand - * @param {ReadonlyMat2d} b the second operand - * @returns {mat2d} out - */ - export function sub(out: mat2d, a: ReadonlyMat2d, b: ReadonlyMat2d): mat2d; -} -export module mat3 { - /** - * 3x3 Matrix - * @module mat3 - */ - /** - * Creates a new identity mat3 - * - * @returns {mat3} a new 3x3 matrix - */ - export function create(): mat3; - /** - * Copies the upper-left 3x3 values into the given mat3. - * - * @param {mat3} out the receiving 3x3 matrix - * @param {ReadonlyMat4} a the source 4x4 matrix - * @returns {mat3} out - */ - export function fromMat4(out: mat3, a: ReadonlyMat4): mat3; - /** - * Creates a new mat3 initialized with values from an existing matrix - * - * @param {ReadonlyMat3} a matrix to clone - * @returns {mat3} a new 3x3 matrix - */ - export function clone(a: ReadonlyMat3): mat3; - /** - * Copy the values from one mat3 to another - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the source matrix - * @returns {mat3} out - */ - export function copy(out: mat3, a: ReadonlyMat3): mat3; - /** - * Create a new mat3 with the given values - * - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m02 Component in column 0, row 2 position (index 2) - * @param {Number} m10 Component in column 1, row 0 position (index 3) - * @param {Number} m11 Component in column 1, row 1 position (index 4) - * @param {Number} m12 Component in column 1, row 2 position (index 5) - * @param {Number} m20 Component in column 2, row 0 position (index 6) - * @param {Number} m21 Component in column 2, row 1 position (index 7) - * @param {Number} m22 Component in column 2, row 2 position (index 8) - * @returns {mat3} A new mat3 - */ - export function fromValues(m00: number, m01: number, m02: number, m10: number, m11: number, m12: number, m20: number, m21: number, m22: number): mat3; - /** - * Set the components of a mat3 to the given values - * - * @param {mat3} out the receiving matrix - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m02 Component in column 0, row 2 position (index 2) - * @param {Number} m10 Component in column 1, row 0 position (index 3) - * @param {Number} m11 Component in column 1, row 1 position (index 4) - * @param {Number} m12 Component in column 1, row 2 position (index 5) - * @param {Number} m20 Component in column 2, row 0 position (index 6) - * @param {Number} m21 Component in column 2, row 1 position (index 7) - * @param {Number} m22 Component in column 2, row 2 position (index 8) - * @returns {mat3} out - */ - export function set(out: mat3, m00: number, m01: number, m02: number, m10: number, m11: number, m12: number, m20: number, m21: number, m22: number): mat3; - /** - * Set a mat3 to the identity matrix - * - * @param {mat3} out the receiving matrix - * @returns {mat3} out - */ - export function identity(out: mat3): mat3; - /** - * Transpose the values of a mat3 - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the source matrix - * @returns {mat3} out - */ - export function transpose(out: mat3, a: ReadonlyMat3): mat3; - /** - * Inverts a mat3 - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the source matrix - * @returns {mat3} out - */ - export function invert(out: mat3, a: ReadonlyMat3): mat3; - /** - * Calculates the adjugate of a mat3 - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the source matrix - * @returns {mat3} out - */ - export function adjoint(out: mat3, a: ReadonlyMat3): mat3; - /** - * Calculates the determinant of a mat3 - * - * @param {ReadonlyMat3} a the source matrix - * @returns {Number} determinant of a - */ - export function determinant(a: ReadonlyMat3): number; - /** - * Multiplies two mat3's - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the first operand - * @param {ReadonlyMat3} b the second operand - * @returns {mat3} out - */ - export function multiply(out: mat3, a: ReadonlyMat3, b: ReadonlyMat3): mat3; - /** - * Translate a mat3 by the given vector - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the matrix to translate - * @param {ReadonlyVec2} v vector to translate by - * @returns {mat3} out - */ - export function translate(out: mat3, a: ReadonlyMat3, v: ReadonlyVec2): mat3; - /** - * Rotates a mat3 by the given angle - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat3} out - */ - export function rotate(out: mat3, a: ReadonlyMat3, rad: number): mat3; - /** - * Scales the mat3 by the dimensions in the given vec2 - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the matrix to rotate - * @param {ReadonlyVec2} v the vec2 to scale the matrix by - * @returns {mat3} out - **/ - export function scale(out: mat3, a: ReadonlyMat3, v: ReadonlyVec2): mat3; - /** - * Creates a matrix from a vector translation - * This is equivalent to (but much faster than): - * - * mat3.identity(dest); - * mat3.translate(dest, dest, vec); - * - * @param {mat3} out mat3 receiving operation result - * @param {ReadonlyVec2} v Translation vector - * @returns {mat3} out - */ - export function fromTranslation(out: mat3, v: ReadonlyVec2): mat3; - /** - * Creates a matrix from a given angle - * This is equivalent to (but much faster than): - * - * mat3.identity(dest); - * mat3.rotate(dest, dest, rad); - * - * @param {mat3} out mat3 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat3} out - */ - export function fromRotation(out: mat3, rad: number): mat3; - /** - * Creates a matrix from a vector scaling - * This is equivalent to (but much faster than): - * - * mat3.identity(dest); - * mat3.scale(dest, dest, vec); - * - * @param {mat3} out mat3 receiving operation result - * @param {ReadonlyVec2} v Scaling vector - * @returns {mat3} out - */ - export function fromScaling(out: mat3, v: ReadonlyVec2): mat3; - /** - * Copies the values from a mat2d into a mat3 - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat2d} a the matrix to copy - * @returns {mat3} out - **/ - export function fromMat2d(out: mat3, a: ReadonlyMat2d): mat3; - /** - * Calculates a 3x3 matrix from the given quaternion - * - * @param {mat3} out mat3 receiving operation result - * @param {ReadonlyQuat} q Quaternion to create matrix from - * - * @returns {mat3} out - */ - export function fromQuat(out: mat3, q: ReadonlyQuat): mat3; - /** - * Calculates a 3x3 normal matrix (transpose inverse) from the 4x4 matrix - * - * @param {mat3} out mat3 receiving operation result - * @param {ReadonlyMat4} a Mat4 to derive the normal matrix from - * - * @returns {mat3} out - */ - export function normalFromMat4(out: mat3, a: ReadonlyMat4): mat3; - /** - * Generates a 2D projection matrix with the given bounds - * - * @param {mat3} out mat3 frustum matrix will be written into - * @param {number} width Width of your gl context - * @param {number} height Height of gl context - * @returns {mat3} out - */ - export function projection(out: mat3, width: number, height: number): mat3; - /** - * Returns a string representation of a mat3 - * - * @param {ReadonlyMat3} a matrix to represent as a string - * @returns {String} string representation of the matrix - */ - export function str(a: ReadonlyMat3): string; - /** - * Returns Frobenius norm of a mat3 - * - * @param {ReadonlyMat3} a the matrix to calculate Frobenius norm of - * @returns {Number} Frobenius norm - */ - export function frob(a: ReadonlyMat3): number; - /** - * Adds two mat3's - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the first operand - * @param {ReadonlyMat3} b the second operand - * @returns {mat3} out - */ - export function add(out: mat3, a: ReadonlyMat3, b: ReadonlyMat3): mat3; - /** - * Subtracts matrix b from matrix a - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the first operand - * @param {ReadonlyMat3} b the second operand - * @returns {mat3} out - */ - export function subtract(out: mat3, a: ReadonlyMat3, b: ReadonlyMat3): mat3; - /** - * Multiply each element of the matrix by a scalar. - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the matrix to scale - * @param {Number} b amount to scale the matrix's elements by - * @returns {mat3} out - */ - export function multiplyScalar(out: mat3, a: ReadonlyMat3, b: number): mat3; - /** - * Adds two mat3's after multiplying each element of the second operand by a scalar value. - * - * @param {mat3} out the receiving vector - * @param {ReadonlyMat3} a the first operand - * @param {ReadonlyMat3} b the second operand - * @param {Number} scale the amount to scale b's elements by before adding - * @returns {mat3} out - */ - export function multiplyScalarAndAdd(out: mat3, a: ReadonlyMat3, b: ReadonlyMat3, scale: number): mat3; - /** - * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyMat3} a The first matrix. - * @param {ReadonlyMat3} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - export function exactEquals(a: ReadonlyMat3, b: ReadonlyMat3): boolean; - /** - * Returns whether or not the matrices have approximately the same elements in the same position. - * - * @param {ReadonlyMat3} a The first matrix. - * @param {ReadonlyMat3} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - export function equals(a: ReadonlyMat3, b: ReadonlyMat3): boolean; - /** - * Multiplies two mat3's - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the first operand - * @param {ReadonlyMat3} b the second operand - * @returns {mat3} out - */ - export function mul(out: mat3, a: ReadonlyMat3, b: ReadonlyMat3): mat3; - /** - * Subtracts matrix b from matrix a - * - * @param {mat3} out the receiving matrix - * @param {ReadonlyMat3} a the first operand - * @param {ReadonlyMat3} b the second operand - * @returns {mat3} out - */ - export function sub(out: mat3, a: ReadonlyMat3, b: ReadonlyMat3): mat3; -} -export module mat4 { - /** - * 4x4 Matrix
Format: column-major, when typed out it looks like row-major
The matrices are being post multiplied. - * @module mat4 - */ - /** - * Creates a new identity mat4 - * - * @returns {mat4} a new 4x4 matrix - */ - export function create(): mat4; - /** - * Creates a new mat4 initialized with values from an existing matrix - * - * @param {ReadonlyMat4} a matrix to clone - * @returns {mat4} a new 4x4 matrix - */ - export function clone(a: ReadonlyMat4): mat4; - /** - * Copy the values from one mat4 to another - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the source matrix - * @returns {mat4} out - */ - export function copy(out: mat4, a: ReadonlyMat4): mat4; - /** - * Create a new mat4 with the given values - * - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m02 Component in column 0, row 2 position (index 2) - * @param {Number} m03 Component in column 0, row 3 position (index 3) - * @param {Number} m10 Component in column 1, row 0 position (index 4) - * @param {Number} m11 Component in column 1, row 1 position (index 5) - * @param {Number} m12 Component in column 1, row 2 position (index 6) - * @param {Number} m13 Component in column 1, row 3 position (index 7) - * @param {Number} m20 Component in column 2, row 0 position (index 8) - * @param {Number} m21 Component in column 2, row 1 position (index 9) - * @param {Number} m22 Component in column 2, row 2 position (index 10) - * @param {Number} m23 Component in column 2, row 3 position (index 11) - * @param {Number} m30 Component in column 3, row 0 position (index 12) - * @param {Number} m31 Component in column 3, row 1 position (index 13) - * @param {Number} m32 Component in column 3, row 2 position (index 14) - * @param {Number} m33 Component in column 3, row 3 position (index 15) - * @returns {mat4} A new mat4 - */ - export function fromValues(m00: number, m01: number, m02: number, m03: number, m10: number, m11: number, m12: number, m13: number, m20: number, m21: number, m22: number, m23: number, m30: number, m31: number, m32: number, m33: number): mat4; - /** - * Set the components of a mat4 to the given values - * - * @param {mat4} out the receiving matrix - * @param {Number} m00 Component in column 0, row 0 position (index 0) - * @param {Number} m01 Component in column 0, row 1 position (index 1) - * @param {Number} m02 Component in column 0, row 2 position (index 2) - * @param {Number} m03 Component in column 0, row 3 position (index 3) - * @param {Number} m10 Component in column 1, row 0 position (index 4) - * @param {Number} m11 Component in column 1, row 1 position (index 5) - * @param {Number} m12 Component in column 1, row 2 position (index 6) - * @param {Number} m13 Component in column 1, row 3 position (index 7) - * @param {Number} m20 Component in column 2, row 0 position (index 8) - * @param {Number} m21 Component in column 2, row 1 position (index 9) - * @param {Number} m22 Component in column 2, row 2 position (index 10) - * @param {Number} m23 Component in column 2, row 3 position (index 11) - * @param {Number} m30 Component in column 3, row 0 position (index 12) - * @param {Number} m31 Component in column 3, row 1 position (index 13) - * @param {Number} m32 Component in column 3, row 2 position (index 14) - * @param {Number} m33 Component in column 3, row 3 position (index 15) - * @returns {mat4} out - */ - export function set(out: mat4, m00: number, m01: number, m02: number, m03: number, m10: number, m11: number, m12: number, m13: number, m20: number, m21: number, m22: number, m23: number, m30: number, m31: number, m32: number, m33: number): mat4; - /** - * Set a mat4 to the identity matrix - * - * @param {mat4} out the receiving matrix - * @returns {mat4} out - */ - export function identity(out: mat4): mat4; - /** - * Transpose the values of a mat4 - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the source matrix - * @returns {mat4} out - */ - export function transpose(out: mat4, a: ReadonlyMat4): mat4; - /** - * Inverts a mat4 - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the source matrix - * @returns {mat4} out - */ - export function invert(out: mat4, a: ReadonlyMat4): mat4; - /** - * Calculates the adjugate of a mat4 - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the source matrix - * @returns {mat4} out - */ - export function adjoint(out: mat4, a: ReadonlyMat4): mat4; - /** - * Calculates the determinant of a mat4 - * - * @param {ReadonlyMat4} a the source matrix - * @returns {Number} determinant of a - */ - export function determinant(a: ReadonlyMat4): number; - /** - * Multiplies two mat4s - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the first operand - * @param {ReadonlyMat4} b the second operand - * @returns {mat4} out - */ - export function multiply(out: mat4, a: ReadonlyMat4, b: ReadonlyMat4): mat4; - /** - * Translate a mat4 by the given vector - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to translate - * @param {ReadonlyVec3} v vector to translate by - * @returns {mat4} out - */ - export function translate(out: mat4, a: ReadonlyMat4, v: ReadonlyVec3): mat4; - /** - * Scales the mat4 by the dimensions in the given vec3 not using vectorization - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to scale - * @param {ReadonlyVec3} v the vec3 to scale the matrix by - * @returns {mat4} out - **/ - export function scale(out: mat4, a: ReadonlyMat4, v: ReadonlyVec3): mat4; - /** - * Rotates a mat4 by the given angle around the given axis - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @param {ReadonlyVec3} axis the axis to rotate around - * @returns {mat4} out - */ - export function rotate(out: mat4, a: ReadonlyMat4, rad: number, axis: ReadonlyVec3): mat4; - /** - * Rotates a matrix by the given angle around the X axis - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - export function rotateX(out: mat4, a: ReadonlyMat4, rad: number): mat4; - /** - * Rotates a matrix by the given angle around the Y axis - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - export function rotateY(out: mat4, a: ReadonlyMat4, rad: number): mat4; - /** - * Rotates a matrix by the given angle around the Z axis - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to rotate - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - export function rotateZ(out: mat4, a: ReadonlyMat4, rad: number): mat4; - /** - * Creates a matrix from a vector translation - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.translate(dest, dest, vec); - * - * @param {mat4} out mat4 receiving operation result - * @param {ReadonlyVec3} v Translation vector - * @returns {mat4} out - */ - export function fromTranslation(out: mat4, v: ReadonlyVec3): mat4; - /** - * Creates a matrix from a vector scaling - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.scale(dest, dest, vec); - * - * @param {mat4} out mat4 receiving operation result - * @param {ReadonlyVec3} v Scaling vector - * @returns {mat4} out - */ - export function fromScaling(out: mat4, v: ReadonlyVec3): mat4; - /** - * Creates a matrix from a given angle around a given axis - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.rotate(dest, dest, rad, axis); - * - * @param {mat4} out mat4 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @param {ReadonlyVec3} axis the axis to rotate around - * @returns {mat4} out - */ - export function fromRotation(out: mat4, rad: number, axis: ReadonlyVec3): mat4; - /** - * Creates a matrix from the given angle around the X axis - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.rotateX(dest, dest, rad); - * - * @param {mat4} out mat4 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - export function fromXRotation(out: mat4, rad: number): mat4; - /** - * Creates a matrix from the given angle around the Y axis - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.rotateY(dest, dest, rad); - * - * @param {mat4} out mat4 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - export function fromYRotation(out: mat4, rad: number): mat4; - /** - * Creates a matrix from the given angle around the Z axis - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.rotateZ(dest, dest, rad); - * - * @param {mat4} out mat4 receiving operation result - * @param {Number} rad the angle to rotate the matrix by - * @returns {mat4} out - */ - export function fromZRotation(out: mat4, rad: number): mat4; - /** - * Creates a matrix from a quaternion rotation and vector translation - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.translate(dest, vec); - * let quatMat = mat4.create(); - * quat4.toMat4(quat, quatMat); - * mat4.multiply(dest, quatMat); - * - * @param {mat4} out mat4 receiving operation result - * @param {quat4} q Rotation quaternion - * @param {ReadonlyVec3} v Translation vector - * @returns {mat4} out - */ - export function fromRotationTranslation(out: mat4, q: any, v: ReadonlyVec3): mat4; - /** - * Creates a new mat4 from a dual quat. - * - * @param {mat4} out Matrix - * @param {ReadonlyQuat2} a Dual Quaternion - * @returns {mat4} mat4 receiving operation result - */ - export function fromQuat2(out: mat4, a: ReadonlyQuat2): mat4; - /** - * Returns the translation vector component of a transformation - * matrix. If a matrix is built with fromRotationTranslation, - * the returned vector will be the same as the translation vector - * originally supplied. - * @param {vec3} out Vector to receive translation component - * @param {ReadonlyMat4} mat Matrix to be decomposed (input) - * @return {vec3} out - */ - export function getTranslation(out: vec3, mat: ReadonlyMat4): vec3; - /** - * Returns the scaling factor component of a transformation - * matrix. If a matrix is built with fromRotationTranslationScale - * with a normalized Quaternion paramter, the returned vector will be - * the same as the scaling vector - * originally supplied. - * @param {vec3} out Vector to receive scaling factor component - * @param {ReadonlyMat4} mat Matrix to be decomposed (input) - * @return {vec3} out - */ - export function getScaling(out: vec3, mat: ReadonlyMat4): vec3; - /** - * Returns a quaternion representing the rotational component - * of a transformation matrix. If a matrix is built with - * fromRotationTranslation, the returned quaternion will be the - * same as the quaternion originally supplied. - * @param {quat} out Quaternion to receive the rotation component - * @param {ReadonlyMat4} mat Matrix to be decomposed (input) - * @return {quat} out - */ - export function getRotation(out: quat, mat: ReadonlyMat4): quat; - /** - * Creates a matrix from a quaternion rotation, vector translation and vector scale - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.translate(dest, vec); - * let quatMat = mat4.create(); - * quat4.toMat4(quat, quatMat); - * mat4.multiply(dest, quatMat); - * mat4.scale(dest, scale) - * - * @param {mat4} out mat4 receiving operation result - * @param {quat4} q Rotation quaternion - * @param {ReadonlyVec3} v Translation vector - * @param {ReadonlyVec3} s Scaling vector - * @returns {mat4} out - */ - export function fromRotationTranslationScale(out: mat4, q: any, v: ReadonlyVec3, s: ReadonlyVec3): mat4; - /** - * Creates a matrix from a quaternion rotation, vector translation and vector scale, rotating and scaling around the given origin - * This is equivalent to (but much faster than): - * - * mat4.identity(dest); - * mat4.translate(dest, vec); - * mat4.translate(dest, origin); - * let quatMat = mat4.create(); - * quat4.toMat4(quat, quatMat); - * mat4.multiply(dest, quatMat); - * mat4.scale(dest, scale) - * mat4.translate(dest, negativeOrigin); - * - * @param {mat4} out mat4 receiving operation result - * @param {quat4} q Rotation quaternion - * @param {ReadonlyVec3} v Translation vector - * @param {ReadonlyVec3} s Scaling vector - * @param {ReadonlyVec3} o The origin vector around which to scale and rotate - * @returns {mat4} out - */ - export function fromRotationTranslationScaleOrigin(out: mat4, q: any, v: ReadonlyVec3, s: ReadonlyVec3, o: ReadonlyVec3): mat4; - /** - * Calculates a 4x4 matrix from the given quaternion - * - * @param {mat4} out mat4 receiving operation result - * @param {ReadonlyQuat} q Quaternion to create matrix from - * - * @returns {mat4} out - */ - export function fromQuat(out: mat4, q: ReadonlyQuat): mat4; - /** - * Generates a frustum matrix with the given bounds - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {Number} left Left bound of the frustum - * @param {Number} right Right bound of the frustum - * @param {Number} bottom Bottom bound of the frustum - * @param {Number} top Top bound of the frustum - * @param {Number} near Near bound of the frustum - * @param {Number} far Far bound of the frustum - * @returns {mat4} out - */ - export function frustum(out: mat4, left: number, right: number, bottom: number, top: number, near: number, far: number): mat4; - /** - * Generates a perspective projection matrix with the given bounds. - * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1], - * which matches WebGL/OpenGL's clip volume. - * Passing null/undefined/no value for far will generate infinite projection matrix. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {number} fovy Vertical field of view in radians - * @param {number} aspect Aspect ratio. typically viewport width/height - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum, can be null or Infinity - * @returns {mat4} out - */ - export function perspectiveNO(out: mat4, fovy: number, aspect: number, near: number, far: number): mat4; - /** - * Generates a perspective projection matrix suitable for WebGPU with the given bounds. - * The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1], - * which matches WebGPU/Vulkan/DirectX/Metal's clip volume. - * Passing null/undefined/no value for far will generate infinite projection matrix. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {number} fovy Vertical field of view in radians - * @param {number} aspect Aspect ratio. typically viewport width/height - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum, can be null or Infinity - * @returns {mat4} out - */ - export function perspectiveZO(out: mat4, fovy: number, aspect: number, near: number, far: number): mat4; - /** - * Generates a perspective projection matrix with the given field of view. - * This is primarily useful for generating projection matrices to be used - * with the still experiemental WebVR API. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {Object} fov Object containing the following values: upDegrees, downDegrees, leftDegrees, rightDegrees - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum - * @returns {mat4} out - */ - export function perspectiveFromFieldOfView(out: mat4, fov: any, near: number, far: number): mat4; - /** - * Generates a orthogonal projection matrix with the given bounds. - * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1], - * which matches WebGL/OpenGL's clip volume. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {number} left Left bound of the frustum - * @param {number} right Right bound of the frustum - * @param {number} bottom Bottom bound of the frustum - * @param {number} top Top bound of the frustum - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum - * @returns {mat4} out - */ - export function orthoNO(out: mat4, left: number, right: number, bottom: number, top: number, near: number, far: number): mat4; - /** - * Generates a orthogonal projection matrix with the given bounds. - * The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1], - * which matches WebGPU/Vulkan/DirectX/Metal's clip volume. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {number} left Left bound of the frustum - * @param {number} right Right bound of the frustum - * @param {number} bottom Bottom bound of the frustum - * @param {number} top Top bound of the frustum - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum - * @returns {mat4} out - */ - export function orthoZO(out: mat4, left: number, right: number, bottom: number, top: number, near: number, far: number): mat4; - /** - * Generates a look-at matrix with the given eye position, focal point, and up axis. - * If you want a matrix that actually makes an object look at another object, you should use targetTo instead. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {ReadonlyVec3} eye Position of the viewer - * @param {ReadonlyVec3} center Point the viewer is looking at - * @param {ReadonlyVec3} up vec3 pointing up - * @returns {mat4} out - */ - export function lookAt(out: mat4, eye: ReadonlyVec3, center: ReadonlyVec3, up: ReadonlyVec3): mat4; - /** - * Generates a matrix that makes something look at something else. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {ReadonlyVec3} eye Position of the viewer - * @param {ReadonlyVec3} center Point the viewer is looking at - * @param {ReadonlyVec3} up vec3 pointing up - * @returns {mat4} out - */ - export function targetTo(out: mat4, eye: ReadonlyVec3, target: any, up: ReadonlyVec3): mat4; - /** - * Returns a string representation of a mat4 - * - * @param {ReadonlyMat4} a matrix to represent as a string - * @returns {String} string representation of the matrix - */ - export function str(a: ReadonlyMat4): string; - /** - * Returns Frobenius norm of a mat4 - * - * @param {ReadonlyMat4} a the matrix to calculate Frobenius norm of - * @returns {Number} Frobenius norm - */ - export function frob(a: ReadonlyMat4): number; - /** - * Adds two mat4's - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the first operand - * @param {ReadonlyMat4} b the second operand - * @returns {mat4} out - */ - export function add(out: mat4, a: ReadonlyMat4, b: ReadonlyMat4): mat4; - /** - * Subtracts matrix b from matrix a - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the first operand - * @param {ReadonlyMat4} b the second operand - * @returns {mat4} out - */ - export function subtract(out: mat4, a: ReadonlyMat4, b: ReadonlyMat4): mat4; - /** - * Multiply each element of the matrix by a scalar. - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the matrix to scale - * @param {Number} b amount to scale the matrix's elements by - * @returns {mat4} out - */ - export function multiplyScalar(out: mat4, a: ReadonlyMat4, b: number): mat4; - /** - * Adds two mat4's after multiplying each element of the second operand by a scalar value. - * - * @param {mat4} out the receiving vector - * @param {ReadonlyMat4} a the first operand - * @param {ReadonlyMat4} b the second operand - * @param {Number} scale the amount to scale b's elements by before adding - * @returns {mat4} out - */ - export function multiplyScalarAndAdd(out: mat4, a: ReadonlyMat4, b: ReadonlyMat4, scale: number): mat4; - /** - * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyMat4} a The first matrix. - * @param {ReadonlyMat4} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - export function exactEquals(a: ReadonlyMat4, b: ReadonlyMat4): boolean; - /** - * Returns whether or not the matrices have approximately the same elements in the same position. - * - * @param {ReadonlyMat4} a The first matrix. - * @param {ReadonlyMat4} b The second matrix. - * @returns {Boolean} True if the matrices are equal, false otherwise. - */ - export function equals(a: ReadonlyMat4, b: ReadonlyMat4): boolean; - /** - * Generates a perspective projection matrix with the given bounds. - * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1], - * which matches WebGL/OpenGL's clip volume. - * Passing null/undefined/no value for far will generate infinite projection matrix. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {number} fovy Vertical field of view in radians - * @param {number} aspect Aspect ratio. typically viewport width/height - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum, can be null or Infinity - * @returns {mat4} out - */ - export function perspective(out: mat4, fovy: number, aspect: number, near: number, far: number): mat4; - /** - * Generates a orthogonal projection matrix with the given bounds. - * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1], - * which matches WebGL/OpenGL's clip volume. - * - * @param {mat4} out mat4 frustum matrix will be written into - * @param {number} left Left bound of the frustum - * @param {number} right Right bound of the frustum - * @param {number} bottom Bottom bound of the frustum - * @param {number} top Top bound of the frustum - * @param {number} near Near bound of the frustum - * @param {number} far Far bound of the frustum - * @returns {mat4} out - */ - export function ortho(out: mat4, left: number, right: number, bottom: number, top: number, near: number, far: number): mat4; - /** - * Multiplies two mat4s - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the first operand - * @param {ReadonlyMat4} b the second operand - * @returns {mat4} out - */ - export function mul(out: mat4, a: ReadonlyMat4, b: ReadonlyMat4): mat4; - /** - * Subtracts matrix b from matrix a - * - * @param {mat4} out the receiving matrix - * @param {ReadonlyMat4} a the first operand - * @param {ReadonlyMat4} b the second operand - * @returns {mat4} out - */ - export function sub(out: mat4, a: ReadonlyMat4, b: ReadonlyMat4): mat4; -} -export module vec3 { - /** - * 3 Dimensional Vector - * @module vec3 - */ - /** - * Creates a new, empty vec3 - * - * @returns {vec3} a new 3D vector - */ - export function create(): vec3; - /** - * Creates a new vec3 initialized with values from an existing vector - * - * @param {ReadonlyVec3} a vector to clone - * @returns {vec3} a new 3D vector - */ - export function clone(a: ReadonlyVec3): vec3; - /** - * Calculates the length of a vec3 - * - * @param {ReadonlyVec3} a vector to calculate length of - * @returns {Number} length of a - */ - export function length(a: ReadonlyVec3): number; - /** - * Creates a new vec3 initialized with the given values - * - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @returns {vec3} a new 3D vector - */ - export function fromValues(x: number, y: number, z: number): vec3; - /** - * Copy the values from one vec3 to another - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the source vector - * @returns {vec3} out - */ - export function copy(out: vec3, a: ReadonlyVec3): vec3; - /** - * Set the components of a vec3 to the given values - * - * @param {vec3} out the receiving vector - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @returns {vec3} out - */ - export function set(out: vec3, x: number, y: number, z: number): vec3; - /** - * Adds two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - export function add(out: vec3, a: ReadonlyVec3, b: ReadonlyVec3): vec3; - /** - * Subtracts vector b from vector a - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - export function subtract(out: vec3, a: ReadonlyVec3, b: ReadonlyVec3): vec3; - /** - * Multiplies two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - export function multiply(out: vec3, a: ReadonlyVec3, b: ReadonlyVec3): vec3; - /** - * Divides two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - export function divide(out: vec3, a: ReadonlyVec3, b: ReadonlyVec3): vec3; - /** - * Math.ceil the components of a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to ceil - * @returns {vec3} out - */ - export function ceil(out: vec3, a: ReadonlyVec3): vec3; - /** - * Math.floor the components of a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to floor - * @returns {vec3} out - */ - export function floor(out: vec3, a: ReadonlyVec3): vec3; - /** - * Returns the minimum of two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - export function min(out: vec3, a: ReadonlyVec3, b: ReadonlyVec3): vec3; - /** - * Returns the maximum of two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - export function max(out: vec3, a: ReadonlyVec3, b: ReadonlyVec3): vec3; - /** - * Math.round the components of a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to round - * @returns {vec3} out - */ - export function round(out: vec3, a: ReadonlyVec3): vec3; - /** - * Scales a vec3 by a scalar number - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the vector to scale - * @param {Number} b amount to scale the vector by - * @returns {vec3} out - */ - export function scale(out: vec3, a: ReadonlyVec3, b: number): vec3; - /** - * Adds two vec3's after scaling the second operand by a scalar value - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @param {Number} scale the amount to scale b by before adding - * @returns {vec3} out - */ - export function scaleAndAdd(out: vec3, a: ReadonlyVec3, b: ReadonlyVec3, scale: number): vec3; - /** - * Calculates the euclidian distance between two vec3's - * - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {Number} distance between a and b - */ - export function distance(a: ReadonlyVec3, b: ReadonlyVec3): number; - /** - * Calculates the squared euclidian distance between two vec3's - * - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {Number} squared distance between a and b - */ - export function squaredDistance(a: ReadonlyVec3, b: ReadonlyVec3): number; - /** - * Calculates the squared length of a vec3 - * - * @param {ReadonlyVec3} a vector to calculate squared length of - * @returns {Number} squared length of a - */ - export function squaredLength(a: ReadonlyVec3): number; - /** - * Negates the components of a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to negate - * @returns {vec3} out - */ - export function negate(out: vec3, a: ReadonlyVec3): vec3; - /** - * Returns the inverse of the components of a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to invert - * @returns {vec3} out - */ - export function inverse(out: vec3, a: ReadonlyVec3): vec3; - /** - * Normalize a vec3 - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a vector to normalize - * @returns {vec3} out - */ - export function normalize(out: vec3, a: ReadonlyVec3): vec3; - /** - * Calculates the dot product of two vec3's - * - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {Number} dot product of a and b - */ - export function dot(a: ReadonlyVec3, b: ReadonlyVec3): number; - /** - * Computes the cross product of two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - export function cross(out: vec3, a: ReadonlyVec3, b: ReadonlyVec3): vec3; - /** - * Performs a linear interpolation between two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {vec3} out - */ - export function lerp(out: vec3, a: ReadonlyVec3, b: ReadonlyVec3, t: number): vec3; - /** - * Performs a hermite interpolation with two control points - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @param {ReadonlyVec3} c the third operand - * @param {ReadonlyVec3} d the fourth operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {vec3} out - */ - export function hermite(out: vec3, a: ReadonlyVec3, b: ReadonlyVec3, c: ReadonlyVec3, d: ReadonlyVec3, t: number): vec3; - /** - * Performs a bezier interpolation with two control points - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @param {ReadonlyVec3} c the third operand - * @param {ReadonlyVec3} d the fourth operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {vec3} out - */ - export function bezier(out: vec3, a: ReadonlyVec3, b: ReadonlyVec3, c: ReadonlyVec3, d: ReadonlyVec3, t: number): vec3; - /** - * Generates a random vector with the given scale - * - * @param {vec3} out the receiving vector - * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned - * @returns {vec3} out - */ - export function random(out: vec3, scale?: number): vec3; - /** - * Transforms the vec3 with a mat4. - * 4th vector component is implicitly '1' - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the vector to transform - * @param {ReadonlyMat4} m matrix to transform with - * @returns {vec3} out - */ - export function transformMat4(out: vec3, a: ReadonlyVec3, m: ReadonlyMat4): vec3; - /** - * Transforms the vec3 with a mat3. - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the vector to transform - * @param {ReadonlyMat3} m the 3x3 matrix to transform with - * @returns {vec3} out - */ - export function transformMat3(out: vec3, a: ReadonlyVec3, m: ReadonlyMat3): vec3; - /** - * Transforms the vec3 with a quat - * Can also be used for dual quaternions. (Multiply it with the real part) - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the vector to transform - * @param {ReadonlyQuat} q quaternion to transform with - * @returns {vec3} out - */ - export function transformQuat(out: vec3, a: ReadonlyVec3, q: ReadonlyQuat): vec3; - /** - * Rotate a 3D vector around the x-axis - * @param {vec3} out The receiving vec3 - * @param {ReadonlyVec3} a The vec3 point to rotate - * @param {ReadonlyVec3} b The origin of the rotation - * @param {Number} rad The angle of rotation in radians - * @returns {vec3} out - */ - export function rotateX(out: vec3, a: ReadonlyVec3, b: ReadonlyVec3, rad: number): vec3; - /** - * Rotate a 3D vector around the y-axis - * @param {vec3} out The receiving vec3 - * @param {ReadonlyVec3} a The vec3 point to rotate - * @param {ReadonlyVec3} b The origin of the rotation - * @param {Number} rad The angle of rotation in radians - * @returns {vec3} out - */ - export function rotateY(out: vec3, a: ReadonlyVec3, b: ReadonlyVec3, rad: number): vec3; - /** - * Rotate a 3D vector around the z-axis - * @param {vec3} out The receiving vec3 - * @param {ReadonlyVec3} a The vec3 point to rotate - * @param {ReadonlyVec3} b The origin of the rotation - * @param {Number} rad The angle of rotation in radians - * @returns {vec3} out - */ - export function rotateZ(out: vec3, a: ReadonlyVec3, b: ReadonlyVec3, rad: number): vec3; - /** - * Get the angle between two 3D vectors - * @param {ReadonlyVec3} a The first operand - * @param {ReadonlyVec3} b The second operand - * @returns {Number} The angle in radians - */ - export function angle(a: ReadonlyVec3, b: ReadonlyVec3): number; - /** - * Set the components of a vec3 to zero - * - * @param {vec3} out the receiving vector - * @returns {vec3} out - */ - export function zero(out: vec3): vec3; - /** - * Returns a string representation of a vector - * - * @param {ReadonlyVec3} a vector to represent as a string - * @returns {String} string representation of the vector - */ - export function str(a: ReadonlyVec3): string; - /** - * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyVec3} a The first vector. - * @param {ReadonlyVec3} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - export function exactEquals(a: ReadonlyVec3, b: ReadonlyVec3): boolean; - /** - * Returns whether or not the vectors have approximately the same elements in the same position. - * - * @param {ReadonlyVec3} a The first vector. - * @param {ReadonlyVec3} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - export function equals(a: ReadonlyVec3, b: ReadonlyVec3): boolean; - /** - * Subtracts vector b from vector a - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - export function sub(out: vec3, a: ReadonlyVec3, b: ReadonlyVec3): vec3; - /** - * Multiplies two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - export function mul(out: vec3, a: ReadonlyVec3, b: ReadonlyVec3): vec3; - /** - * Divides two vec3's - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {vec3} out - */ - export function div(out: vec3, a: ReadonlyVec3, b: ReadonlyVec3): vec3; - /** - * Calculates the euclidian distance between two vec3's - * - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {Number} distance between a and b - */ - export function dist(a: ReadonlyVec3, b: ReadonlyVec3): number; - /** - * Calculates the squared euclidian distance between two vec3's - * - * @param {ReadonlyVec3} a the first operand - * @param {ReadonlyVec3} b the second operand - * @returns {Number} squared distance between a and b - */ - export function sqrDist(a: ReadonlyVec3, b: ReadonlyVec3): number; - /** - * Calculates the length of a vec3 - * - * @param {ReadonlyVec3} a vector to calculate length of - * @returns {Number} length of a - */ - export function len(a: ReadonlyVec3): number; - /** - * Calculates the squared length of a vec3 - * - * @param {ReadonlyVec3} a vector to calculate squared length of - * @returns {Number} squared length of a - */ - export function sqrLen(a: ReadonlyVec3): number; - export function forEach(a: any, stride: any, offset: any, count: any, fn: any, arg: any): any; -} -export module vec4 { - /** - * 4 Dimensional Vector - * @module vec4 - */ - /** - * Creates a new, empty vec4 - * - * @returns {vec4} a new 4D vector - */ - export function create(): vec4; - /** - * Creates a new vec4 initialized with values from an existing vector - * - * @param {ReadonlyVec4} a vector to clone - * @returns {vec4} a new 4D vector - */ - export function clone(a: ReadonlyVec4): vec4; - /** - * Creates a new vec4 initialized with the given values - * - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @param {Number} w W component - * @returns {vec4} a new 4D vector - */ - export function fromValues(x: number, y: number, z: number, w: number): vec4; - /** - * Copy the values from one vec4 to another - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the source vector - * @returns {vec4} out - */ - export function copy(out: vec4, a: ReadonlyVec4): vec4; - /** - * Set the components of a vec4 to the given values - * - * @param {vec4} out the receiving vector - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @param {Number} w W component - * @returns {vec4} out - */ - export function set(out: vec4, x: number, y: number, z: number, w: number): vec4; - /** - * Adds two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - export function add(out: vec4, a: ReadonlyVec4, b: ReadonlyVec4): vec4; - /** - * Subtracts vector b from vector a - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - export function subtract(out: vec4, a: ReadonlyVec4, b: ReadonlyVec4): vec4; - /** - * Multiplies two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - export function multiply(out: vec4, a: ReadonlyVec4, b: ReadonlyVec4): vec4; - /** - * Divides two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - export function divide(out: vec4, a: ReadonlyVec4, b: ReadonlyVec4): vec4; - /** - * Math.ceil the components of a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to ceil - * @returns {vec4} out - */ - export function ceil(out: vec4, a: ReadonlyVec4): vec4; - /** - * Math.floor the components of a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to floor - * @returns {vec4} out - */ - export function floor(out: vec4, a: ReadonlyVec4): vec4; - /** - * Returns the minimum of two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - export function min(out: vec4, a: ReadonlyVec4, b: ReadonlyVec4): vec4; - /** - * Returns the maximum of two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - export function max(out: vec4, a: ReadonlyVec4, b: ReadonlyVec4): vec4; - /** - * Math.round the components of a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to round - * @returns {vec4} out - */ - export function round(out: vec4, a: ReadonlyVec4): vec4; - /** - * Scales a vec4 by a scalar number - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the vector to scale - * @param {Number} b amount to scale the vector by - * @returns {vec4} out - */ - export function scale(out: vec4, a: ReadonlyVec4, b: number): vec4; - /** - * Adds two vec4's after scaling the second operand by a scalar value - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @param {Number} scale the amount to scale b by before adding - * @returns {vec4} out - */ - export function scaleAndAdd(out: vec4, a: ReadonlyVec4, b: ReadonlyVec4, scale: number): vec4; - /** - * Calculates the euclidian distance between two vec4's - * - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {Number} distance between a and b - */ - export function distance(a: ReadonlyVec4, b: ReadonlyVec4): number; - /** - * Calculates the squared euclidian distance between two vec4's - * - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {Number} squared distance between a and b - */ - export function squaredDistance(a: ReadonlyVec4, b: ReadonlyVec4): number; - /** - * Calculates the length of a vec4 - * - * @param {ReadonlyVec4} a vector to calculate length of - * @returns {Number} length of a - */ - export function length(a: ReadonlyVec4): number; - /** - * Calculates the squared length of a vec4 - * - * @param {ReadonlyVec4} a vector to calculate squared length of - * @returns {Number} squared length of a - */ - export function squaredLength(a: ReadonlyVec4): number; - /** - * Negates the components of a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to negate - * @returns {vec4} out - */ - export function negate(out: vec4, a: ReadonlyVec4): vec4; - /** - * Returns the inverse of the components of a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to invert - * @returns {vec4} out - */ - export function inverse(out: vec4, a: ReadonlyVec4): vec4; - /** - * Normalize a vec4 - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a vector to normalize - * @returns {vec4} out - */ - export function normalize(out: vec4, a: ReadonlyVec4): vec4; - /** - * Calculates the dot product of two vec4's - * - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {Number} dot product of a and b - */ - export function dot(a: ReadonlyVec4, b: ReadonlyVec4): number; - /** - * Returns the cross-product of three vectors in a 4-dimensional space - * - * @param {ReadonlyVec4} result the receiving vector - * @param {ReadonlyVec4} U the first vector - * @param {ReadonlyVec4} V the second vector - * @param {ReadonlyVec4} W the third vector - * @returns {vec4} result - */ - export function cross(out: any, u: any, v: any, w: any): vec4; - /** - * Performs a linear interpolation between two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {vec4} out - */ - export function lerp(out: vec4, a: ReadonlyVec4, b: ReadonlyVec4, t: number): vec4; - /** - * Generates a random vector with the given scale - * - * @param {vec4} out the receiving vector - * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned - * @returns {vec4} out - */ - export function random(out: vec4, scale?: number): vec4; - /** - * Transforms the vec4 with a mat4. - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the vector to transform - * @param {ReadonlyMat4} m matrix to transform with - * @returns {vec4} out - */ - export function transformMat4(out: vec4, a: ReadonlyVec4, m: ReadonlyMat4): vec4; - /** - * Transforms the vec4 with a quat - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the vector to transform - * @param {ReadonlyQuat} q quaternion to transform with - * @returns {vec4} out - */ - export function transformQuat(out: vec4, a: ReadonlyVec4, q: ReadonlyQuat): vec4; - /** - * Set the components of a vec4 to zero - * - * @param {vec4} out the receiving vector - * @returns {vec4} out - */ - export function zero(out: vec4): vec4; - /** - * Returns a string representation of a vector - * - * @param {ReadonlyVec4} a vector to represent as a string - * @returns {String} string representation of the vector - */ - export function str(a: ReadonlyVec4): string; - /** - * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyVec4} a The first vector. - * @param {ReadonlyVec4} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - export function exactEquals(a: ReadonlyVec4, b: ReadonlyVec4): boolean; - /** - * Returns whether or not the vectors have approximately the same elements in the same position. - * - * @param {ReadonlyVec4} a The first vector. - * @param {ReadonlyVec4} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - export function equals(a: ReadonlyVec4, b: ReadonlyVec4): boolean; - /** - * Subtracts vector b from vector a - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - export function sub(out: vec4, a: ReadonlyVec4, b: ReadonlyVec4): vec4; - /** - * Multiplies two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - export function mul(out: vec4, a: ReadonlyVec4, b: ReadonlyVec4): vec4; - /** - * Divides two vec4's - * - * @param {vec4} out the receiving vector - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {vec4} out - */ - export function div(out: vec4, a: ReadonlyVec4, b: ReadonlyVec4): vec4; - /** - * Calculates the euclidian distance between two vec4's - * - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {Number} distance between a and b - */ - export function dist(a: ReadonlyVec4, b: ReadonlyVec4): number; - /** - * Calculates the squared euclidian distance between two vec4's - * - * @param {ReadonlyVec4} a the first operand - * @param {ReadonlyVec4} b the second operand - * @returns {Number} squared distance between a and b - */ - export function sqrDist(a: ReadonlyVec4, b: ReadonlyVec4): number; - /** - * Calculates the length of a vec4 - * - * @param {ReadonlyVec4} a vector to calculate length of - * @returns {Number} length of a - */ - export function len(a: ReadonlyVec4): number; - /** - * Calculates the squared length of a vec4 - * - * @param {ReadonlyVec4} a vector to calculate squared length of - * @returns {Number} squared length of a - */ - export function sqrLen(a: ReadonlyVec4): number; - export function forEach(a: any, stride: any, offset: any, count: any, fn: any, arg: any): any; -} -export module quat { - /** - * Quaternion - * @module quat - */ - /** - * Creates a new identity quat - * - * @returns {quat} a new quaternion - */ - export function create(): quat; - /** - * Set a quat to the identity quaternion - * - * @param {quat} out the receiving quaternion - * @returns {quat} out - */ - export function identity(out: quat): quat; - /** - * Sets a quat from the given angle and rotation axis, - * then returns it. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyVec3} axis the axis around which to rotate - * @param {Number} rad the angle in radians - * @returns {quat} out - **/ - export function setAxisAngle(out: quat, axis: ReadonlyVec3, rad: number): quat; - /** - * Gets the rotation axis and angle for a given - * quaternion. If a quaternion is created with - * setAxisAngle, this method will return the same - * values as providied in the original parameter list - * OR functionally equivalent values. - * Example: The quaternion formed by axis [0, 0, 1] and - * angle -90 is the same as the quaternion formed by - * [0, 0, 1] and 270. This method favors the latter. - * @param {vec3} out_axis Vector receiving the axis of rotation - * @param {ReadonlyQuat} q Quaternion to be decomposed - * @return {Number} Angle, in radians, of the rotation - */ - export function getAxisAngle(out_axis: vec3, q: ReadonlyQuat): number; - /** - * Gets the angular distance between two unit quaternions - * - * @param {ReadonlyQuat} a Origin unit quaternion - * @param {ReadonlyQuat} b Destination unit quaternion - * @return {Number} Angle, in radians, between the two quaternions - */ - export function getAngle(a: ReadonlyQuat, b: ReadonlyQuat): number; - /** - * Multiplies two quat's - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @returns {quat} out - */ - export function multiply(out: quat, a: ReadonlyQuat, b: ReadonlyQuat): quat; - /** - * Rotates a quaternion by the given angle about the X axis - * - * @param {quat} out quat receiving operation result - * @param {ReadonlyQuat} a quat to rotate - * @param {number} rad angle (in radians) to rotate - * @returns {quat} out - */ - export function rotateX(out: quat, a: ReadonlyQuat, rad: number): quat; - /** - * Rotates a quaternion by the given angle about the Y axis - * - * @param {quat} out quat receiving operation result - * @param {ReadonlyQuat} a quat to rotate - * @param {number} rad angle (in radians) to rotate - * @returns {quat} out - */ - export function rotateY(out: quat, a: ReadonlyQuat, rad: number): quat; - /** - * Rotates a quaternion by the given angle about the Z axis - * - * @param {quat} out quat receiving operation result - * @param {ReadonlyQuat} a quat to rotate - * @param {number} rad angle (in radians) to rotate - * @returns {quat} out - */ - export function rotateZ(out: quat, a: ReadonlyQuat, rad: number): quat; - /** - * Calculates the W component of a quat from the X, Y, and Z components. - * Assumes that quaternion is 1 unit in length. - * Any existing W component will be ignored. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate W component of - * @returns {quat} out - */ - export function calculateW(out: quat, a: ReadonlyQuat): quat; - /** - * Calculate the exponential of a unit quaternion. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate the exponential of - * @returns {quat} out - */ - export function exp(out: quat, a: ReadonlyQuat): quat; - /** - * Calculate the natural logarithm of a unit quaternion. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate the exponential of - * @returns {quat} out - */ - export function ln(out: quat, a: ReadonlyQuat): quat; - /** - * Calculate the scalar power of a unit quaternion. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate the exponential of - * @param {Number} b amount to scale the quaternion by - * @returns {quat} out - */ - export function pow(out: quat, a: ReadonlyQuat, b: number): quat; - /** - * Performs a spherical linear interpolation between two quat - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {quat} out - */ - export function slerp(out: quat, a: ReadonlyQuat, b: ReadonlyQuat, t: number): quat; - /** - * Generates a random unit quaternion - * - * @param {quat} out the receiving quaternion - * @returns {quat} out - */ - export function random(out: quat): quat; - /** - * Calculates the inverse of a quat - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate inverse of - * @returns {quat} out - */ - export function invert(out: quat, a: ReadonlyQuat): quat; - /** - * Calculates the conjugate of a quat - * If the quaternion is normalized, this function is faster than quat.inverse and produces the same result. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quat to calculate conjugate of - * @returns {quat} out - */ - export function conjugate(out: quat, a: ReadonlyQuat): quat; - /** - * Creates a quaternion from the given 3x3 rotation matrix. - * - * NOTE: The resultant quaternion is not normalized, so you should be sure - * to renormalize the quaternion yourself where necessary. - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyMat3} m rotation matrix - * @returns {quat} out - * @function - */ - export function fromMat3(out: quat, m: ReadonlyMat3): quat; - /** - * Creates a quaternion from the given euler angle x, y, z. - * - * @param {quat} out the receiving quaternion - * @param {x} Angle to rotate around X axis in degrees. - * @param {y} Angle to rotate around Y axis in degrees. - * @param {z} Angle to rotate around Z axis in degrees. - * @returns {quat} out - * @function - */ - export function fromEuler(out: quat, x: any, y: any, z: any): quat; - /** - * Returns a string representation of a quatenion - * - * @param {ReadonlyQuat} a vector to represent as a string - * @returns {String} string representation of the vector - */ - export function str(a: ReadonlyQuat): string; - /** - * Creates a new quat initialized with values from an existing quaternion - * - * @param {ReadonlyQuat} a quaternion to clone - * @returns {quat} a new quaternion - * @function - */ - export const clone: typeof vec4.clone; - /** - * Creates a new quat initialized with the given values - * - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @param {Number} w W component - * @returns {quat} a new quaternion - * @function - */ - export const fromValues: typeof vec4.fromValues; - /** - * Copy the values from one quat to another - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the source quaternion - * @returns {quat} out - * @function - */ - export const copy: typeof vec4.copy; - /** - * Set the components of a quat to the given values - * - * @param {quat} out the receiving quaternion - * @param {Number} x X component - * @param {Number} y Y component - * @param {Number} z Z component - * @param {Number} w W component - * @returns {quat} out - * @function - */ - export const set: typeof vec4.set; - /** - * Adds two quat's - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @returns {quat} out - * @function - */ - export const add: typeof vec4.add; - /** - * Multiplies two quat's - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @returns {quat} out - */ - export function mul(out: quat, a: ReadonlyQuat, b: ReadonlyQuat): quat; - /** - * Scales a quat by a scalar number - * - * @param {quat} out the receiving vector - * @param {ReadonlyQuat} a the vector to scale - * @param {Number} b amount to scale the vector by - * @returns {quat} out - * @function - */ - export const scale: typeof vec4.scale; - /** - * Calculates the dot product of two quat's - * - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @returns {Number} dot product of a and b - * @function - */ - export const dot: typeof vec4.dot; - /** - * Performs a linear interpolation between two quat's - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a the first operand - * @param {ReadonlyQuat} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {quat} out - * @function - */ - export const lerp: typeof vec4.lerp; - /** - * Calculates the length of a quat - * - * @param {ReadonlyQuat} a vector to calculate length of - * @returns {Number} length of a - */ - export const length: typeof vec4.length; - /** - * Alias for {@link quat.length} - * @function - */ - export const len: typeof vec4.length; - /** - * Calculates the squared length of a quat - * - * @param {ReadonlyQuat} a vector to calculate squared length of - * @returns {Number} squared length of a - * @function - */ - export const squaredLength: typeof vec4.squaredLength; - /** - * Alias for {@link quat.squaredLength} - * @function - */ - export const sqrLen: typeof vec4.squaredLength; - /** - * Normalize a quat - * - * @param {quat} out the receiving quaternion - * @param {ReadonlyQuat} a quaternion to normalize - * @returns {quat} out - * @function - */ - export const normalize: typeof vec4.normalize; - /** - * Returns whether or not the quaternions have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyQuat} a The first quaternion. - * @param {ReadonlyQuat} b The second quaternion. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - export const exactEquals: typeof vec4.exactEquals; - /** - * Returns whether or not the quaternions have approximately the same elements in the same position. - * - * @param {ReadonlyQuat} a The first vector. - * @param {ReadonlyQuat} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - export const equals: typeof vec4.equals; - export function rotationTo(out: any, a: any, b: any): any; - export function sqlerp(out: any, a: any, b: any, c: any, d: any, t: any): any; - export function setAxes(out: any, view: any, right: any, up: any): vec4; - -} -export module quat2 { - /** - * Dual Quaternion
- * Format: [real, dual]
- * Quaternion format: XYZW
- * Make sure to have normalized dual quaternions, otherwise the functions may not work as intended.
- * @module quat2 - */ - /** - * Creates a new identity dual quat - * - * @returns {quat2} a new dual quaternion [real -> rotation, dual -> translation] - */ - export function create(): quat2; - /** - * Creates a new quat initialized with values from an existing quaternion - * - * @param {ReadonlyQuat2} a dual quaternion to clone - * @returns {quat2} new dual quaternion - * @function - */ - export function clone(a: ReadonlyQuat2): quat2; - /** - * Creates a new dual quat initialized with the given values - * - * @param {Number} x1 X component - * @param {Number} y1 Y component - * @param {Number} z1 Z component - * @param {Number} w1 W component - * @param {Number} x2 X component - * @param {Number} y2 Y component - * @param {Number} z2 Z component - * @param {Number} w2 W component - * @returns {quat2} new dual quaternion - * @function - */ - export function fromValues(x1: number, y1: number, z1: number, w1: number, x2: number, y2: number, z2: number, w2: number): quat2; - /** - * Creates a new dual quat from the given values (quat and translation) - * - * @param {Number} x1 X component - * @param {Number} y1 Y component - * @param {Number} z1 Z component - * @param {Number} w1 W component - * @param {Number} x2 X component (translation) - * @param {Number} y2 Y component (translation) - * @param {Number} z2 Z component (translation) - * @returns {quat2} new dual quaternion - * @function - */ - export function fromRotationTranslationValues(x1: number, y1: number, z1: number, w1: number, x2: number, y2: number, z2: number): quat2; - /** - * Creates a dual quat from a quaternion and a translation - * - * @param {ReadonlyQuat2} dual quaternion receiving operation result - * @param {ReadonlyQuat} q a normalized quaternion - * @param {ReadonlyVec3} t tranlation vector - * @returns {quat2} dual quaternion receiving operation result - * @function - */ - export function fromRotationTranslation(out: any, q: ReadonlyQuat, t: ReadonlyVec3): quat2; - /** - * Creates a dual quat from a translation - * - * @param {ReadonlyQuat2} dual quaternion receiving operation result - * @param {ReadonlyVec3} t translation vector - * @returns {quat2} dual quaternion receiving operation result - * @function - */ - export function fromTranslation(out: any, t: ReadonlyVec3): quat2; - /** - * Creates a dual quat from a quaternion - * - * @param {ReadonlyQuat2} dual quaternion receiving operation result - * @param {ReadonlyQuat} q the quaternion - * @returns {quat2} dual quaternion receiving operation result - * @function - */ - export function fromRotation(out: any, q: ReadonlyQuat): quat2; - /** - * Creates a new dual quat from a matrix (4x4) - * - * @param {quat2} out the dual quaternion - * @param {ReadonlyMat4} a the matrix - * @returns {quat2} dual quat receiving operation result - * @function - */ - export function fromMat4(out: quat2, a: ReadonlyMat4): quat2; - /** - * Copy the values from one dual quat to another - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the source dual quaternion - * @returns {quat2} out - * @function - */ - export function copy(out: quat2, a: ReadonlyQuat2): quat2; - /** - * Set a dual quat to the identity dual quaternion - * - * @param {quat2} out the receiving quaternion - * @returns {quat2} out - */ - export function identity(out: quat2): quat2; - /** - * Set the components of a dual quat to the given values - * - * @param {quat2} out the receiving quaternion - * @param {Number} x1 X component - * @param {Number} y1 Y component - * @param {Number} z1 Z component - * @param {Number} w1 W component - * @param {Number} x2 X component - * @param {Number} y2 Y component - * @param {Number} z2 Z component - * @param {Number} w2 W component - * @returns {quat2} out - * @function - */ - export function set(out: quat2, x1: number, y1: number, z1: number, w1: number, x2: number, y2: number, z2: number, w2: number): quat2; - /** - * Gets the dual part of a dual quat - * @param {quat} out dual part - * @param {ReadonlyQuat2} a Dual Quaternion - * @return {quat} dual part - */ - export function getDual(out: quat, a: ReadonlyQuat2): quat; - /** - * Set the dual component of a dual quat to the given quaternion - * - * @param {quat2} out the receiving quaternion - * @param {ReadonlyQuat} q a quaternion representing the dual part - * @returns {quat2} out - * @function - */ - export function setDual(out: quat2, q: ReadonlyQuat): quat2; - /** - * Gets the translation of a normalized dual quat - * @param {vec3} out translation - * @param {ReadonlyQuat2} a Dual Quaternion to be decomposed - * @return {vec3} translation - */ - export function getTranslation(out: vec3, a: ReadonlyQuat2): vec3; - /** - * Translates a dual quat by the given vector - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to translate - * @param {ReadonlyVec3} v vector to translate by - * @returns {quat2} out - */ - export function translate(out: quat2, a: ReadonlyQuat2, v: ReadonlyVec3): quat2; - /** - * Rotates a dual quat around the X axis - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @param {number} rad how far should the rotation be - * @returns {quat2} out - */ - export function rotateX(out: quat2, a: ReadonlyQuat2, rad: number): quat2; - /** - * Rotates a dual quat around the Y axis - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @param {number} rad how far should the rotation be - * @returns {quat2} out - */ - export function rotateY(out: quat2, a: ReadonlyQuat2, rad: number): quat2; - /** - * Rotates a dual quat around the Z axis - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @param {number} rad how far should the rotation be - * @returns {quat2} out - */ - export function rotateZ(out: quat2, a: ReadonlyQuat2, rad: number): quat2; - /** - * Rotates a dual quat by a given quaternion (a * q) - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @param {ReadonlyQuat} q quaternion to rotate by - * @returns {quat2} out - */ - export function rotateByQuatAppend(out: quat2, a: ReadonlyQuat2, q: ReadonlyQuat): quat2; - /** - * Rotates a dual quat by a given quaternion (q * a) - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat} q quaternion to rotate by - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @returns {quat2} out - */ - export function rotateByQuatPrepend(out: quat2, q: ReadonlyQuat, a: ReadonlyQuat2): quat2; - /** - * Rotates a dual quat around a given axis. Does the normalisation automatically - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the dual quaternion to rotate - * @param {ReadonlyVec3} axis the axis to rotate around - * @param {Number} rad how far the rotation should be - * @returns {quat2} out - */ - export function rotateAroundAxis(out: quat2, a: ReadonlyQuat2, axis: ReadonlyVec3, rad: number): quat2; - /** - * Adds two dual quat's - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the first operand - * @param {ReadonlyQuat2} b the second operand - * @returns {quat2} out - * @function - */ - export function add(out: quat2, a: ReadonlyQuat2, b: ReadonlyQuat2): quat2; - /** - * Multiplies two dual quat's - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the first operand - * @param {ReadonlyQuat2} b the second operand - * @returns {quat2} out - */ - export function multiply(out: quat2, a: ReadonlyQuat2, b: ReadonlyQuat2): quat2; - /** - * Scales a dual quat by a scalar number - * - * @param {quat2} out the receiving dual quat - * @param {ReadonlyQuat2} a the dual quat to scale - * @param {Number} b amount to scale the dual quat by - * @returns {quat2} out - * @function - */ - export function scale(out: quat2, a: ReadonlyQuat2, b: number): quat2; - /** - * Performs a linear interpolation between two dual quats's - * NOTE: The resulting dual quaternions won't always be normalized (The error is most noticeable when t = 0.5) - * - * @param {quat2} out the receiving dual quat - * @param {ReadonlyQuat2} a the first operand - * @param {ReadonlyQuat2} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {quat2} out - */ - export function lerp(out: quat2, a: ReadonlyQuat2, b: ReadonlyQuat2, t: number): quat2; - /** - * Calculates the inverse of a dual quat. If they are normalized, conjugate is cheaper - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a dual quat to calculate inverse of - * @returns {quat2} out - */ - export function invert(out: quat2, a: ReadonlyQuat2): quat2; - /** - * Calculates the conjugate of a dual quat - * If the dual quaternion is normalized, this function is faster than quat2.inverse and produces the same result. - * - * @param {quat2} out the receiving quaternion - * @param {ReadonlyQuat2} a quat to calculate conjugate of - * @returns {quat2} out - */ - export function conjugate(out: quat2, a: ReadonlyQuat2): quat2; - /** - * Normalize a dual quat - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a dual quaternion to normalize - * @returns {quat2} out - * @function - */ - export function normalize(out: quat2, a: ReadonlyQuat2): quat2; - /** - * Returns a string representation of a dual quatenion - * - * @param {ReadonlyQuat2} a dual quaternion to represent as a string - * @returns {String} string representation of the dual quat - */ - export function str(a: ReadonlyQuat2): string; - /** - * Returns whether or not the dual quaternions have exactly the same elements in the same position (when compared with ===) - * - * @param {ReadonlyQuat2} a the first dual quaternion. - * @param {ReadonlyQuat2} b the second dual quaternion. - * @returns {Boolean} true if the dual quaternions are equal, false otherwise. - */ - export function exactEquals(a: ReadonlyQuat2, b: ReadonlyQuat2): boolean; - /** - * Returns whether or not the dual quaternions have approximately the same elements in the same position. - * - * @param {ReadonlyQuat2} a the first dual quat. - * @param {ReadonlyQuat2} b the second dual quat. - * @returns {Boolean} true if the dual quats are equal, false otherwise. - */ - export function equals(a: ReadonlyQuat2, b: ReadonlyQuat2): boolean; - /** - * Gets the real part of a dual quat - * @param {quat} out real part - * @param {ReadonlyQuat2} a Dual Quaternion - * @return {quat} real part - */ - export const getReal: typeof vec4.copy; - /** - * Set the real component of a dual quat to the given quaternion - * - * @param {quat2} out the receiving quaternion - * @param {ReadonlyQuat} q a quaternion representing the real part - * @returns {quat2} out - * @function - */ - export const setReal: typeof vec4.copy; - /** - * Multiplies two dual quat's - * - * @param {quat2} out the receiving dual quaternion - * @param {ReadonlyQuat2} a the first operand - * @param {ReadonlyQuat2} b the second operand - * @returns {quat2} out - */ - export function mul(out: quat2, a: ReadonlyQuat2, b: ReadonlyQuat2): quat2; - /** - * Calculates the dot product of two dual quat's (The dot product of the real parts) - * - * @param {ReadonlyQuat2} a the first operand - * @param {ReadonlyQuat2} b the second operand - * @returns {Number} dot product of a and b - * @function - */ - export const dot: typeof vec4.dot; - /** - * Calculates the length of a dual quat - * - * @param {ReadonlyQuat2} a dual quat to calculate length of - * @returns {Number} length of a - * @function - */ - export const length: typeof vec4.length; - /** - * Alias for {@link quat2.length} - * @function - */ - export const len: typeof vec4.length; - /** - * Calculates the squared length of a dual quat - * - * @param {ReadonlyQuat2} a dual quat to calculate squared length of - * @returns {Number} squared length of a - * @function - */ - export const squaredLength: typeof vec4.squaredLength; - /** - * Alias for {@link quat2.squaredLength} - * @function - */ - export const sqrLen: typeof vec4.squaredLength; -} -export module vec2 { - /** - * 2 Dimensional Vector - * @module vec2 - */ - /** - * Creates a new, empty vec2 - * - * @returns {vec2} a new 2D vector - */ - export function create(): vec2; - /** - * Creates a new vec2 initialized with values from an existing vector - * - * @param {ReadonlyVec2} a vector to clone - * @returns {vec2} a new 2D vector - */ - export function clone(a: ReadonlyVec2): vec2; - /** - * Creates a new vec2 initialized with the given values - * - * @param {Number} x X component - * @param {Number} y Y component - * @returns {vec2} a new 2D vector - */ - export function fromValues(x: number, y: number): vec2; - /** - * Copy the values from one vec2 to another - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the source vector - * @returns {vec2} out - */ - export function copy(out: vec2, a: ReadonlyVec2): vec2; - /** - * Set the components of a vec2 to the given values - * - * @param {vec2} out the receiving vector - * @param {Number} x X component - * @param {Number} y Y component - * @returns {vec2} out - */ - export function set(out: vec2, x: number, y: number): vec2; - /** - * Adds two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - export function add(out: vec2, a: ReadonlyVec2, b: ReadonlyVec2): vec2; - /** - * Subtracts vector b from vector a - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - export function subtract(out: vec2, a: ReadonlyVec2, b: ReadonlyVec2): vec2; - /** - * Multiplies two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - export function multiply(out: vec2, a: ReadonlyVec2, b: ReadonlyVec2): vec2; - /** - * Divides two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - export function divide(out: vec2, a: ReadonlyVec2, b: ReadonlyVec2): vec2; - /** - * Math.ceil the components of a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to ceil - * @returns {vec2} out - */ - export function ceil(out: vec2, a: ReadonlyVec2): vec2; - /** - * Math.floor the components of a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to floor - * @returns {vec2} out - */ - export function floor(out: vec2, a: ReadonlyVec2): vec2; - /** - * Returns the minimum of two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - export function min(out: vec2, a: ReadonlyVec2, b: ReadonlyVec2): vec2; - /** - * Returns the maximum of two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - export function max(out: vec2, a: ReadonlyVec2, b: ReadonlyVec2): vec2; - /** - * Math.round the components of a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to round - * @returns {vec2} out - */ - export function round(out: vec2, a: ReadonlyVec2): vec2; - /** - * Scales a vec2 by a scalar number - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the vector to scale - * @param {Number} b amount to scale the vector by - * @returns {vec2} out - */ - export function scale(out: vec2, a: ReadonlyVec2, b: number): vec2; - /** - * Adds two vec2's after scaling the second operand by a scalar value - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @param {Number} scale the amount to scale b by before adding - * @returns {vec2} out - */ - export function scaleAndAdd(out: vec2, a: ReadonlyVec2, b: ReadonlyVec2, scale: number): vec2; - /** - * Calculates the euclidian distance between two vec2's - * - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {Number} distance between a and b - */ - export function distance(a: ReadonlyVec2, b: ReadonlyVec2): number; - /** - * Calculates the squared euclidian distance between two vec2's - * - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {Number} squared distance between a and b - */ - export function squaredDistance(a: ReadonlyVec2, b: ReadonlyVec2): number; - /** - * Calculates the length of a vec2 - * - * @param {ReadonlyVec2} a vector to calculate length of - * @returns {Number} length of a - */ - export function length(a: ReadonlyVec2): number; - /** - * Calculates the squared length of a vec2 - * - * @param {ReadonlyVec2} a vector to calculate squared length of - * @returns {Number} squared length of a - */ - export function squaredLength(a: ReadonlyVec2): number; - /** - * Negates the components of a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to negate - * @returns {vec2} out - */ - export function negate(out: vec2, a: ReadonlyVec2): vec2; - /** - * Returns the inverse of the components of a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to invert - * @returns {vec2} out - */ - export function inverse(out: vec2, a: ReadonlyVec2): vec2; - /** - * Normalize a vec2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a vector to normalize - * @returns {vec2} out - */ - export function normalize(out: vec2, a: ReadonlyVec2): vec2; - /** - * Calculates the dot product of two vec2's - * - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {Number} dot product of a and b - */ - export function dot(a: ReadonlyVec2, b: ReadonlyVec2): number; - /** - * Computes the cross product of two vec2's - * Note that the cross product must by definition produce a 3D vector - * - * @param {vec3} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec3} out - */ - export function cross(out: vec3, a: ReadonlyVec2, b: ReadonlyVec2): vec3; - /** - * Performs a linear interpolation between two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @param {Number} t interpolation amount, in the range [0-1], between the two inputs - * @returns {vec2} out - */ - export function lerp(out: vec2, a: ReadonlyVec2, b: ReadonlyVec2, t: number): vec2; - /** - * Generates a random vector with the given scale - * - * @param {vec2} out the receiving vector - * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned - * @returns {vec2} out - */ - export function random(out: vec2, scale?: number): vec2; - /** - * Transforms the vec2 with a mat2 - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the vector to transform - * @param {ReadonlyMat2} m matrix to transform with - * @returns {vec2} out - */ - export function transformMat2(out: vec2, a: ReadonlyVec2, m: ReadonlyMat2): vec2; - /** - * Transforms the vec2 with a mat2d - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the vector to transform - * @param {ReadonlyMat2d} m matrix to transform with - * @returns {vec2} out - */ - export function transformMat2d(out: vec2, a: ReadonlyVec2, m: ReadonlyMat2d): vec2; - /** - * Transforms the vec2 with a mat3 - * 3rd vector component is implicitly '1' - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the vector to transform - * @param {ReadonlyMat3} m matrix to transform with - * @returns {vec2} out - */ - export function transformMat3(out: vec2, a: ReadonlyVec2, m: ReadonlyMat3): vec2; - /** - * Transforms the vec2 with a mat4 - * 3rd vector component is implicitly '0' - * 4th vector component is implicitly '1' - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the vector to transform - * @param {ReadonlyMat4} m matrix to transform with - * @returns {vec2} out - */ - export function transformMat4(out: vec2, a: ReadonlyVec2, m: ReadonlyMat4): vec2; - /** - * Rotate a 2D vector - * @param {vec2} out The receiving vec2 - * @param {ReadonlyVec2} a The vec2 point to rotate - * @param {ReadonlyVec2} b The origin of the rotation - * @param {Number} rad The angle of rotation in radians - * @returns {vec2} out - */ - export function rotate(out: vec2, a: ReadonlyVec2, b: ReadonlyVec2, rad: number): vec2; - /** - * Get the angle between two 2D vectors - * @param {ReadonlyVec2} a The first operand - * @param {ReadonlyVec2} b The second operand - * @returns {Number} The angle in radians - */ - export function angle(a: ReadonlyVec2, b: ReadonlyVec2): number; - /** - * Set the components of a vec2 to zero - * - * @param {vec2} out the receiving vector - * @returns {vec2} out - */ - export function zero(out: vec2): vec2; - /** - * Returns a string representation of a vector - * - * @param {ReadonlyVec2} a vector to represent as a string - * @returns {String} string representation of the vector - */ - export function str(a: ReadonlyVec2): string; - /** - * Returns whether or not the vectors exactly have the same elements in the same position (when compared with ===) - * - * @param {ReadonlyVec2} a The first vector. - * @param {ReadonlyVec2} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - export function exactEquals(a: ReadonlyVec2, b: ReadonlyVec2): boolean; - /** - * Returns whether or not the vectors have approximately the same elements in the same position. - * - * @param {ReadonlyVec2} a The first vector. - * @param {ReadonlyVec2} b The second vector. - * @returns {Boolean} True if the vectors are equal, false otherwise. - */ - export function equals(a: ReadonlyVec2, b: ReadonlyVec2): boolean; - /** - * Calculates the length of a vec2 - * - * @param {ReadonlyVec2} a vector to calculate length of - * @returns {Number} length of a - */ - export function len(a: ReadonlyVec2): number; - /** - * Subtracts vector b from vector a - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - export function sub(out: vec2, a: ReadonlyVec2, b: ReadonlyVec2): vec2; - /** - * Multiplies two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - export function mul(out: vec2, a: ReadonlyVec2, b: ReadonlyVec2): vec2; - /** - * Divides two vec2's - * - * @param {vec2} out the receiving vector - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {vec2} out - */ - export function div(out: vec2, a: ReadonlyVec2, b: ReadonlyVec2): vec2; - /** - * Calculates the euclidian distance between two vec2's - * - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {Number} distance between a and b - */ - export function dist(a: ReadonlyVec2, b: ReadonlyVec2): number; - /** - * Calculates the squared euclidian distance between two vec2's - * - * @param {ReadonlyVec2} a the first operand - * @param {ReadonlyVec2} b the second operand - * @returns {Number} squared distance between a and b - */ - export function sqrDist(a: ReadonlyVec2, b: ReadonlyVec2): number; - /** - * Calculates the squared length of a vec2 - * - * @param {ReadonlyVec2} a vector to calculate squared length of - * @returns {Number} squared length of a - */ - export function sqrLen(a: ReadonlyVec2): number; - export function forEach(a: any, stride: any, offset: any, count: any, fn: any, arg: any): any; -} - - -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/mat2/package.json b/build_vtk_bundle/node_modules/gl-matrix/mat2/package.json deleted file mode 100755 index 1f131c4a..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/mat2/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "gl-matrix/mat2", - "main": "../cjs/mat2.js", - "module": "../esm/mat2.js" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/mat2d/package.json b/build_vtk_bundle/node_modules/gl-matrix/mat2d/package.json deleted file mode 100755 index f9af4d71..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/mat2d/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "gl-matrix/mat2d", - "main": "../cjs/mat2d.js", - "module": "../esm/mat2d.js" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/mat3/package.json b/build_vtk_bundle/node_modules/gl-matrix/mat3/package.json deleted file mode 100755 index 23f5f956..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/mat3/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "gl-matrix/mat3", - "main": "../cjs/mat3.js", - "module": "../esm/mat3.js" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/mat4/package.json b/build_vtk_bundle/node_modules/gl-matrix/mat4/package.json deleted file mode 100755 index 9de35a90..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/mat4/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "gl-matrix/mat4", - "main": "../cjs/mat4.js", - "module": "../esm/mat4.js" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/package.json b/build_vtk_bundle/node_modules/gl-matrix/package.json deleted file mode 100755 index 6d2fbf10..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "version": "3.4.3", - "name": "gl-matrix", - "description": "Javascript Matrix and Vector library for High Performance WebGL apps", - "sideEffects": false, - "main": "cjs/index.js", - "module": "esm/index.js", - "homepage": "http://glmatrix.net", - "license": "MIT", - "bugs": { - "url": "https://github.com/toji/gl-matrix/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/toji/gl-matrix.git" - }, - "contributors": [ - { - "name": "Brandon Jones", - "email": "tojiro@gmail.com" - }, - { - "name": "Colin MacKenzie IV", - "email": "sinisterchipmunk@gmail.com" - } - ] -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/quat/package.json b/build_vtk_bundle/node_modules/gl-matrix/quat/package.json deleted file mode 100755 index 264ee352..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/quat/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "gl-matrix/quat", - "main": "../cjs/quat.js", - "module": "../esm/quat.js" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/quat2/package.json b/build_vtk_bundle/node_modules/gl-matrix/quat2/package.json deleted file mode 100755 index 119de4e7..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/quat2/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "gl-matrix/quat2", - "main": "../cjs/quat2.js", - "module": "../esm/quat2.js" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/types.d.ts/package.json b/build_vtk_bundle/node_modules/gl-matrix/types.d.ts/package.json deleted file mode 100755 index 1f79746d..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/types.d.ts/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "gl-matrix/types.d.ts", - "main": "../cjs/types.d.ts", - "module": "../esm/types.d.ts" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/vec2/package.json b/build_vtk_bundle/node_modules/gl-matrix/vec2/package.json deleted file mode 100755 index b58bf53a..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/vec2/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "gl-matrix/vec2", - "main": "../cjs/vec2.js", - "module": "../esm/vec2.js" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/vec3/package.json b/build_vtk_bundle/node_modules/gl-matrix/vec3/package.json deleted file mode 100755 index 6dbaa7be..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/vec3/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "gl-matrix/vec3", - "main": "../cjs/vec3.js", - "module": "../esm/vec3.js" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gl-matrix/vec4/package.json b/build_vtk_bundle/node_modules/gl-matrix/vec4/package.json deleted file mode 100755 index c51be75c..00000000 --- a/build_vtk_bundle/node_modules/gl-matrix/vec4/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "gl-matrix/vec4", - "main": "../cjs/vec4.js", - "module": "../esm/vec4.js" -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/glob-to-regexp/.travis.yml b/build_vtk_bundle/node_modules/glob-to-regexp/.travis.yml deleted file mode 100644 index ddc9c4f9..00000000 --- a/build_vtk_bundle/node_modules/glob-to-regexp/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - 0.8 - - "0.10" \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/glob-to-regexp/README.md b/build_vtk_bundle/node_modules/glob-to-regexp/README.md deleted file mode 100644 index afb41142..00000000 --- a/build_vtk_bundle/node_modules/glob-to-regexp/README.md +++ /dev/null @@ -1,75 +0,0 @@ -# Glob To Regular Expression - -[![Build Status](https://travis-ci.org/fitzgen/glob-to-regexp.png?branch=master)](https://travis-ci.org/fitzgen/glob-to-regexp) - -Turn a \*-wildcard style glob (`"*.min.js"`) into a regular expression -(`/^.*\.min\.js$/`)! - -To match bash-like globs, eg. `?` for any single-character match, `[a-z]` for -character ranges, and `{*.html, *.js}` for multiple alternatives, call with -`{ extended: true }`. - -To obey [globstars `**`](https://github.com/isaacs/node-glob#glob-primer) rules set option `{globstar: true}`. -NOTE: This changes the behavior of `*` when `globstar` is `true` as shown below: -When `{globstar: true}`: `/foo/**` will match any string that starts with `/foo/` -like `/foo/index.htm`, `/foo/bar/baz.txt`, etc. Also, `/foo/**/*.txt` will match -any string that starts with `/foo/` and ends with `.txt` like `/foo/bar.txt`, -`/foo/bar/baz.txt`, etc. -Whereas `/foo/*` (single `*`, not a globstar) will match strings that start with -`/foo/` like `/foo/index.htm`, `/foo/baz.txt` but will not match strings that -contain a `/` to the right like `/foo/bar/baz.txt`, `/foo/bar/baz/qux.dat`, etc. - -Set flags on the resulting `RegExp` object by adding the `flags` property to the option object, eg `{ flags: "i" }` for ignoring case. - -## Install - - npm install glob-to-regexp - -## Usage -```js -var globToRegExp = require('glob-to-regexp'); -var re = globToRegExp("p*uck"); -re.test("pot luck"); // true -re.test("pluck"); // true -re.test("puck"); // true - -re = globToRegExp("*.min.js"); -re.test("http://example.com/jquery.min.js"); // true -re.test("http://example.com/jquery.min.js.map"); // false - -re = globToRegExp("*/www/*.js"); -re.test("http://example.com/www/app.js"); // true -re.test("http://example.com/www/lib/factory-proxy-model-observer.js"); // true - -// Extended globs -re = globToRegExp("*/www/{*.js,*.html}", { extended: true }); -re.test("http://example.com/www/app.js"); // true -re.test("http://example.com/www/index.html"); // true -``` - -## License - -Copyright (c) 2013, Nick Fitzgerald - -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, this - list of conditions and the following disclaimer in the documentation and/or - other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/build_vtk_bundle/node_modules/glob-to-regexp/index.js b/build_vtk_bundle/node_modules/glob-to-regexp/index.js deleted file mode 100644 index 365cf227..00000000 --- a/build_vtk_bundle/node_modules/glob-to-regexp/index.js +++ /dev/null @@ -1,130 +0,0 @@ -module.exports = function (glob, opts) { - if (typeof glob !== 'string') { - throw new TypeError('Expected a string'); - } - - var str = String(glob); - - // The regexp we are building, as a string. - var reStr = ""; - - // Whether we are matching so called "extended" globs (like bash) and should - // support single character matching, matching ranges of characters, group - // matching, etc. - var extended = opts ? !!opts.extended : false; - - // When globstar is _false_ (default), '/foo/*' is translated a regexp like - // '^\/foo\/.*$' which will match any string beginning with '/foo/' - // When globstar is _true_, '/foo/*' is translated to regexp like - // '^\/foo\/[^/]*$' which will match any string beginning with '/foo/' BUT - // which does not have a '/' to the right of it. - // E.g. with '/foo/*' these will match: '/foo/bar', '/foo/bar.txt' but - // these will not '/foo/bar/baz', '/foo/bar/baz.txt' - // Lastely, when globstar is _true_, '/foo/**' is equivelant to '/foo/*' when - // globstar is _false_ - var globstar = opts ? !!opts.globstar : false; - - // If we are doing extended matching, this boolean is true when we are inside - // a group (eg {*.html,*.js}), and false otherwise. - var inGroup = false; - - // RegExp flags (eg "i" ) to pass in to RegExp constructor. - var flags = opts && typeof( opts.flags ) === "string" ? opts.flags : ""; - - var c; - for (var i = 0, len = str.length; i < len; i++) { - c = str[i]; - - switch (c) { - case "/": - case "$": - case "^": - case "+": - case ".": - case "(": - case ")": - case "=": - case "!": - case "|": - reStr += "\\" + c; - break; - - case "?": - if (extended) { - reStr += "."; - break; - } - - case "[": - case "]": - if (extended) { - reStr += c; - break; - } - - case "{": - if (extended) { - inGroup = true; - reStr += "("; - break; - } - - case "}": - if (extended) { - inGroup = false; - reStr += ")"; - break; - } - - case ",": - if (inGroup) { - reStr += "|"; - break; - } - reStr += "\\" + c; - break; - - case "*": - // Move over all consecutive "*"'s. - // Also store the previous and next characters - var prevChar = str[i - 1]; - var starCount = 1; - while(str[i + 1] === "*") { - starCount++; - i++; - } - var nextChar = str[i + 1]; - - if (!globstar) { - // globstar is disabled, so treat any number of "*" as one - reStr += ".*"; - } else { - // globstar is enabled, so determine if this is a globstar segment - var isGlobstar = starCount > 1 // multiple "*"'s - && (prevChar === "/" || prevChar === undefined) // from the start of the segment - && (nextChar === "/" || nextChar === undefined) // to the end of the segment - - if (isGlobstar) { - // it's a globstar, so match zero or more path segments - reStr += "((?:[^/]*(?:\/|$))*)"; - i++; // move over the "/" - } else { - // it's not a globstar, so only match one path segment - reStr += "([^/]*)"; - } - } - break; - - default: - reStr += c; - } - } - - // When regexp 'g' flag is specified don't - // constrain the regular expression with ^ & $ - if (!flags || !~flags.indexOf('g')) { - reStr = "^" + reStr + "$"; - } - - return new RegExp(reStr, flags); -}; diff --git a/build_vtk_bundle/node_modules/glob-to-regexp/package.json b/build_vtk_bundle/node_modules/glob-to-regexp/package.json deleted file mode 100644 index 467daf31..00000000 --- a/build_vtk_bundle/node_modules/glob-to-regexp/package.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "glob-to-regexp", - "version": "0.4.1", - "description": "Convert globs to regular expressions", - "main": "index.js", - "scripts": { - "test": "node test.js" - }, - "repository": { - "type": "git", - "url": "https://github.com/fitzgen/glob-to-regexp.git" - }, - "keywords": [ - "regexp", - "glob", - "regexps", - "regular expressions", - "regular expression", - "wildcard" - ], - "author": "Nick Fitzgerald ", - "license": "BSD-2-Clause" -} diff --git a/build_vtk_bundle/node_modules/glob-to-regexp/test.js b/build_vtk_bundle/node_modules/glob-to-regexp/test.js deleted file mode 100644 index 58ee622c..00000000 --- a/build_vtk_bundle/node_modules/glob-to-regexp/test.js +++ /dev/null @@ -1,235 +0,0 @@ -var globToRegexp = require("./index.js"); -var assert = require("assert"); - -function assertMatch(glob, str, opts) { - //console.log(glob, globToRegexp(glob, opts)); - assert.ok(globToRegexp(glob, opts).test(str)); -} - -function assertNotMatch(glob, str, opts) { - //console.log(glob, globToRegexp(glob, opts)); - assert.equal(false, globToRegexp(glob, opts).test(str)); -} - -function test(globstar) { - // Match everything - assertMatch("*", "foo"); - assertMatch("*", "foo", { flags: 'g' }); - - // Match the end - assertMatch("f*", "foo"); - assertMatch("f*", "foo", { flags: 'g' }); - - // Match the start - assertMatch("*o", "foo"); - assertMatch("*o", "foo", { flags: 'g' }); - - // Match the middle - assertMatch("f*uck", "firetruck"); - assertMatch("f*uck", "firetruck", { flags: 'g' }); - - // Don't match without Regexp 'g' - assertNotMatch("uc", "firetruck"); - // Match anywhere with RegExp 'g' - assertMatch("uc", "firetruck", { flags: 'g' }); - - // Match zero characters - assertMatch("f*uck", "fuck"); - assertMatch("f*uck", "fuck", { flags: 'g' }); - - // More complex matches - assertMatch("*.min.js", "http://example.com/jquery.min.js", {globstar: false}); - assertMatch("*.min.*", "http://example.com/jquery.min.js", {globstar: false}); - assertMatch("*/js/*.js", "http://example.com/js/jquery.min.js", {globstar: false}); - - // More complex matches with RegExp 'g' flag (complex regression) - assertMatch("*.min.*", "http://example.com/jquery.min.js", { flags: 'g' }); - assertMatch("*.min.js", "http://example.com/jquery.min.js", { flags: 'g' }); - assertMatch("*/js/*.js", "http://example.com/js/jquery.min.js", { flags: 'g' }); - - // Test string "\\\\/$^+?.()=!|{},[].*" represents \\/$^+?.()=!|{},[].* - // The equivalent regex is: /^\\\/\$\^\+\?\.\(\)\=\!\|\{\}\,\[\]\..*$/ - // Both glob and regex match: \/$^+?.()=!|{},[].* - var testStr = "\\\\/$^+?.()=!|{},[].*"; - var targetStr = "\\/$^+?.()=!|{},[].*"; - assertMatch(testStr, targetStr); - assertMatch(testStr, targetStr, { flags: 'g' }); - - // Equivalent matches without/with using RegExp 'g' - assertNotMatch(".min.", "http://example.com/jquery.min.js"); - assertMatch("*.min.*", "http://example.com/jquery.min.js"); - assertMatch(".min.", "http://example.com/jquery.min.js", { flags: 'g' }); - - assertNotMatch("http:", "http://example.com/jquery.min.js"); - assertMatch("http:*", "http://example.com/jquery.min.js"); - assertMatch("http:", "http://example.com/jquery.min.js", { flags: 'g' }); - - assertNotMatch("min.js", "http://example.com/jquery.min.js"); - assertMatch("*.min.js", "http://example.com/jquery.min.js"); - assertMatch("min.js", "http://example.com/jquery.min.js", { flags: 'g' }); - - // Match anywhere (globally) using RegExp 'g' - assertMatch("min", "http://example.com/jquery.min.js", { flags: 'g' }); - assertMatch("/js/", "http://example.com/js/jquery.min.js", { flags: 'g' }); - - assertNotMatch("/js*jq*.js", "http://example.com/js/jquery.min.js"); - assertMatch("/js*jq*.js", "http://example.com/js/jquery.min.js", { flags: 'g' }); - - // Extended mode - - // ?: Match one character, no more and no less - assertMatch("f?o", "foo", { extended: true }); - assertNotMatch("f?o", "fooo", { extended: true }); - assertNotMatch("f?oo", "foo", { extended: true }); - - // ?: Match one character with RegExp 'g' - assertMatch("f?o", "foo", { extended: true, globstar: globstar, flags: 'g' }); - assertMatch("f?o", "fooo", { extended: true, globstar: globstar, flags: 'g' }); - assertMatch("f?o?", "fooo", { extended: true, globstar: globstar, flags: 'g' }); - assertNotMatch("?fo", "fooo", { extended: true, globstar: globstar, flags: 'g' }); - assertNotMatch("f?oo", "foo", { extended: true, globstar: globstar, flags: 'g' }); - assertNotMatch("foo?", "foo", { extended: true, globstar: globstar, flags: 'g' }); - - // []: Match a character range - assertMatch("fo[oz]", "foo", { extended: true }); - assertMatch("fo[oz]", "foz", { extended: true }); - assertNotMatch("fo[oz]", "fog", { extended: true }); - - // []: Match a character range and RegExp 'g' (regresion) - assertMatch("fo[oz]", "foo", { extended: true, globstar: globstar, flags: 'g' }); - assertMatch("fo[oz]", "foz", { extended: true, globstar: globstar, flags: 'g' }); - assertNotMatch("fo[oz]", "fog", { extended: true, globstar: globstar, flags: 'g' }); - - // {}: Match a choice of different substrings - assertMatch("foo{bar,baaz}", "foobaaz", { extended: true }); - assertMatch("foo{bar,baaz}", "foobar", { extended: true }); - assertNotMatch("foo{bar,baaz}", "foobuzz", { extended: true }); - assertMatch("foo{bar,b*z}", "foobuzz", { extended: true }); - - // {}: Match a choice of different substrings and RegExp 'g' (regression) - assertMatch("foo{bar,baaz}", "foobaaz", { extended: true, globstar: globstar, flags: 'g' }); - assertMatch("foo{bar,baaz}", "foobar", { extended: true, globstar: globstar, flags: 'g' }); - assertNotMatch("foo{bar,baaz}", "foobuzz", { extended: true, globstar: globstar, flags: 'g' }); - assertMatch("foo{bar,b*z}", "foobuzz", { extended: true, globstar: globstar, flags: 'g' }); - - // More complex extended matches - assertMatch("http://?o[oz].b*z.com/{*.js,*.html}", - "http://foo.baaz.com/jquery.min.js", - { extended: true }); - assertMatch("http://?o[oz].b*z.com/{*.js,*.html}", - "http://moz.buzz.com/index.html", - { extended: true }); - assertNotMatch("http://?o[oz].b*z.com/{*.js,*.html}", - "http://moz.buzz.com/index.htm", - { extended: true }); - assertNotMatch("http://?o[oz].b*z.com/{*.js,*.html}", - "http://moz.bar.com/index.html", - { extended: true }); - assertNotMatch("http://?o[oz].b*z.com/{*.js,*.html}", - "http://flozz.buzz.com/index.html", - { extended: true }); - - // More complex extended matches and RegExp 'g' (regresion) - assertMatch("http://?o[oz].b*z.com/{*.js,*.html}", - "http://foo.baaz.com/jquery.min.js", - { extended: true, globstar: globstar, flags: 'g' }); - assertMatch("http://?o[oz].b*z.com/{*.js,*.html}", - "http://moz.buzz.com/index.html", - { extended: true, globstar: globstar, flags: 'g' }); - assertNotMatch("http://?o[oz].b*z.com/{*.js,*.html}", - "http://moz.buzz.com/index.htm", - { extended: true, globstar: globstar, flags: 'g' }); - assertNotMatch("http://?o[oz].b*z.com/{*.js,*.html}", - "http://moz.bar.com/index.html", - { extended: true, globstar: globstar, flags: 'g' }); - assertNotMatch("http://?o[oz].b*z.com/{*.js,*.html}", - "http://flozz.buzz.com/index.html", - { extended: true, globstar: globstar, flags: 'g' }); - - // globstar - assertMatch("http://foo.com/**/{*.js,*.html}", - "http://foo.com/bar/jquery.min.js", - { extended: true, globstar: globstar, flags: 'g' }); - assertMatch("http://foo.com/**/{*.js,*.html}", - "http://foo.com/bar/baz/jquery.min.js", - { extended: true, globstar: globstar, flags: 'g' }); - assertMatch("http://foo.com/**", - "http://foo.com/bar/baz/jquery.min.js", - { extended: true, globstar: globstar, flags: 'g' }); - - // Remaining special chars should still match themselves - // Test string "\\\\/$^+.()=!|,.*" represents \\/$^+.()=!|,.* - // The equivalent regex is: /^\\\/\$\^\+\.\(\)\=\!\|\,\..*$/ - // Both glob and regex match: \/$^+.()=!|,.* - var testExtStr = "\\\\/$^+.()=!|,.*"; - var targetExtStr = "\\/$^+.()=!|,.*"; - assertMatch(testExtStr, targetExtStr, { extended: true }); - assertMatch(testExtStr, targetExtStr, { extended: true, globstar: globstar, flags: 'g' }); -} - -// regression -// globstar false -test(false) -// globstar true -test(true); - -// globstar specific tests -assertMatch("/foo/*", "/foo/bar.txt", {globstar: true }); -assertMatch("/foo/**", "/foo/baz.txt", {globstar: true }); -assertMatch("/foo/**", "/foo/bar/baz.txt", {globstar: true }); -assertMatch("/foo/*/*.txt", "/foo/bar/baz.txt", {globstar: true }); -assertMatch("/foo/**/*.txt", "/foo/bar/baz.txt", {globstar: true }); -assertMatch("/foo/**/*.txt", "/foo/bar/baz/qux.txt", {globstar: true }); -assertMatch("/foo/**/bar.txt", "/foo/bar.txt", {globstar: true }); -assertMatch("/foo/**/**/bar.txt", "/foo/bar.txt", {globstar: true }); -assertMatch("/foo/**/*/baz.txt", "/foo/bar/baz.txt", {globstar: true }); -assertMatch("/foo/**/*.txt", "/foo/bar.txt", {globstar: true }); -assertMatch("/foo/**/**/*.txt", "/foo/bar.txt", {globstar: true }); -assertMatch("/foo/**/*/*.txt", "/foo/bar/baz.txt", {globstar: true }); -assertMatch("**/*.txt", "/foo/bar/baz/qux.txt", {globstar: true }); -assertMatch("**/foo.txt", "foo.txt", {globstar: true }); -assertMatch("**/*.txt", "foo.txt", {globstar: true }); - -assertNotMatch("/foo/*", "/foo/bar/baz.txt", {globstar: true }); -assertNotMatch("/foo/*.txt", "/foo/bar/baz.txt", {globstar: true }); -assertNotMatch("/foo/*/*.txt", "/foo/bar/baz/qux.txt", {globstar: true }); -assertNotMatch("/foo/*/bar.txt", "/foo/bar.txt", {globstar: true }); -assertNotMatch("/foo/*/*/baz.txt", "/foo/bar/baz.txt", {globstar: true }); -assertNotMatch("/foo/**.txt", "/foo/bar/baz/qux.txt", {globstar: true }); -assertNotMatch("/foo/bar**/*.txt", "/foo/bar/baz/qux.txt", {globstar: true }); -assertNotMatch("/foo/bar**", "/foo/bar/baz.txt", {globstar: true }); -assertNotMatch("**/.txt", "/foo/bar/baz/qux.txt", {globstar: true }); -assertNotMatch("*/*.txt", "/foo/bar/baz/qux.txt", {globstar: true }); -assertNotMatch("*/*.txt", "foo.txt", {globstar: true }); - -assertNotMatch("http://foo.com/*", - "http://foo.com/bar/baz/jquery.min.js", - { extended: true, globstar: true }); -assertNotMatch("http://foo.com/*", - "http://foo.com/bar/baz/jquery.min.js", - { globstar: true }); - -assertMatch("http://foo.com/*", - "http://foo.com/bar/baz/jquery.min.js", - { globstar: false }); -assertMatch("http://foo.com/**", - "http://foo.com/bar/baz/jquery.min.js", - { globstar: true }); - -assertMatch("http://foo.com/*/*/jquery.min.js", - "http://foo.com/bar/baz/jquery.min.js", - { globstar: true }); -assertMatch("http://foo.com/**/jquery.min.js", - "http://foo.com/bar/baz/jquery.min.js", - { globstar: true }); -assertMatch("http://foo.com/*/*/jquery.min.js", - "http://foo.com/bar/baz/jquery.min.js", - { globstar: false }); -assertMatch("http://foo.com/*/jquery.min.js", - "http://foo.com/bar/baz/jquery.min.js", - { globstar: false }); -assertNotMatch("http://foo.com/*/jquery.min.js", - "http://foo.com/bar/baz/jquery.min.js", - { globstar: true }); - -console.log("Ok!"); diff --git a/build_vtk_bundle/node_modules/glob/LICENSE b/build_vtk_bundle/node_modules/glob/LICENSE deleted file mode 100644 index 42ca266d..00000000 --- a/build_vtk_bundle/node_modules/glob/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - -## Glob Logo - -Glob's logo created by Tanya Brassie , licensed -under a Creative Commons Attribution-ShareAlike 4.0 International License -https://creativecommons.org/licenses/by-sa/4.0/ diff --git a/build_vtk_bundle/node_modules/glob/README.md b/build_vtk_bundle/node_modules/glob/README.md deleted file mode 100644 index 83f0c83a..00000000 --- a/build_vtk_bundle/node_modules/glob/README.md +++ /dev/null @@ -1,378 +0,0 @@ -# Glob - -Match files using the patterns the shell uses, like stars and stuff. - -[![Build Status](https://travis-ci.org/isaacs/node-glob.svg?branch=master)](https://travis-ci.org/isaacs/node-glob/) [![Build Status](https://ci.appveyor.com/api/projects/status/kd7f3yftf7unxlsx?svg=true)](https://ci.appveyor.com/project/isaacs/node-glob) [![Coverage Status](https://coveralls.io/repos/isaacs/node-glob/badge.svg?branch=master&service=github)](https://coveralls.io/github/isaacs/node-glob?branch=master) - -This is a glob implementation in JavaScript. It uses the `minimatch` -library to do its matching. - -![a fun cartoon logo made of glob characters](logo/glob.png) - -## Usage - -Install with npm - -``` -npm i glob -``` - -```javascript -var glob = require("glob") - -// options is optional -glob("**/*.js", options, function (er, files) { - // files is an array of filenames. - // If the `nonull` option is set, and nothing - // was found, then files is ["**/*.js"] - // er is an error object or null. -}) -``` - -## Glob Primer - -"Globs" are the patterns you type when you do stuff like `ls *.js` on -the command line, or put `build/*` in a `.gitignore` file. - -Before parsing the path part patterns, braced sections are expanded -into a set. Braced sections start with `{` and end with `}`, with any -number of comma-delimited sections within. Braced sections may contain -slash characters, so `a{/b/c,bcd}` would expand into `a/b/c` and `abcd`. - -The following characters have special magic meaning when used in a -path portion: - -* `*` Matches 0 or more characters in a single path portion -* `?` Matches 1 character -* `[...]` Matches a range of characters, similar to a RegExp range. - If the first character of the range is `!` or `^` then it matches - any character not in the range. -* `!(pattern|pattern|pattern)` Matches anything that does not match - any of the patterns provided. -* `?(pattern|pattern|pattern)` Matches zero or one occurrence of the - patterns provided. -* `+(pattern|pattern|pattern)` Matches one or more occurrences of the - patterns provided. -* `*(a|b|c)` Matches zero or more occurrences of the patterns provided -* `@(pattern|pat*|pat?erN)` Matches exactly one of the patterns - provided -* `**` If a "globstar" is alone in a path portion, then it matches - zero or more directories and subdirectories searching for matches. - It does not crawl symlinked directories. - -### Dots - -If a file or directory path portion has a `.` as the first character, -then it will not match any glob pattern unless that pattern's -corresponding path part also has a `.` as its first character. - -For example, the pattern `a/.*/c` would match the file at `a/.b/c`. -However the pattern `a/*/c` would not, because `*` does not start with -a dot character. - -You can make glob treat dots as normal characters by setting -`dot:true` in the options. - -### Basename Matching - -If you set `matchBase:true` in the options, and the pattern has no -slashes in it, then it will seek for any file anywhere in the tree -with a matching basename. For example, `*.js` would match -`test/simple/basic.js`. - -### Empty Sets - -If no matching files are found, then an empty array is returned. This -differs from the shell, where the pattern itself is returned. For -example: - - $ echo a*s*d*f - a*s*d*f - -To get the bash-style behavior, set the `nonull:true` in the options. - -### See Also: - -* `man sh` -* `man bash` (Search for "Pattern Matching") -* `man 3 fnmatch` -* `man 5 gitignore` -* [minimatch documentation](https://github.com/isaacs/minimatch) - -## glob.hasMagic(pattern, [options]) - -Returns `true` if there are any special characters in the pattern, and -`false` otherwise. - -Note that the options affect the results. If `noext:true` is set in -the options object, then `+(a|b)` will not be considered a magic -pattern. If the pattern has a brace expansion, like `a/{b/c,x/y}` -then that is considered magical, unless `nobrace:true` is set in the -options. - -## glob(pattern, [options], cb) - -* `pattern` `{String}` Pattern to be matched -* `options` `{Object}` -* `cb` `{Function}` - * `err` `{Error | null}` - * `matches` `{Array}` filenames found matching the pattern - -Perform an asynchronous glob search. - -## glob.sync(pattern, [options]) - -* `pattern` `{String}` Pattern to be matched -* `options` `{Object}` -* return: `{Array}` filenames found matching the pattern - -Perform a synchronous glob search. - -## Class: glob.Glob - -Create a Glob object by instantiating the `glob.Glob` class. - -```javascript -var Glob = require("glob").Glob -var mg = new Glob(pattern, options, cb) -``` - -It's an EventEmitter, and starts walking the filesystem to find matches -immediately. - -### new glob.Glob(pattern, [options], [cb]) - -* `pattern` `{String}` pattern to search for -* `options` `{Object}` -* `cb` `{Function}` Called when an error occurs, or matches are found - * `err` `{Error | null}` - * `matches` `{Array}` filenames found matching the pattern - -Note that if the `sync` flag is set in the options, then matches will -be immediately available on the `g.found` member. - -### Properties - -* `minimatch` The minimatch object that the glob uses. -* `options` The options object passed in. -* `aborted` Boolean which is set to true when calling `abort()`. There - is no way at this time to continue a glob search after aborting, but - you can re-use the statCache to avoid having to duplicate syscalls. -* `cache` Convenience object. Each field has the following possible - values: - * `false` - Path does not exist - * `true` - Path exists - * `'FILE'` - Path exists, and is not a directory - * `'DIR'` - Path exists, and is a directory - * `[file, entries, ...]` - Path exists, is a directory, and the - array value is the results of `fs.readdir` -* `statCache` Cache of `fs.stat` results, to prevent statting the same - path multiple times. -* `symlinks` A record of which paths are symbolic links, which is - relevant in resolving `**` patterns. -* `realpathCache` An optional object which is passed to `fs.realpath` - to minimize unnecessary syscalls. It is stored on the instantiated - Glob object, and may be re-used. - -### Events - -* `end` When the matching is finished, this is emitted with all the - matches found. If the `nonull` option is set, and no match was found, - then the `matches` list contains the original pattern. The matches - are sorted, unless the `nosort` flag is set. -* `match` Every time a match is found, this is emitted with the specific - thing that matched. It is not deduplicated or resolved to a realpath. -* `error` Emitted when an unexpected error is encountered, or whenever - any fs error occurs if `options.strict` is set. -* `abort` When `abort()` is called, this event is raised. - -### Methods - -* `pause` Temporarily stop the search -* `resume` Resume the search -* `abort` Stop the search forever - -### Options - -All the options that can be passed to Minimatch can also be passed to -Glob to change pattern matching behavior. Also, some have been added, -or have glob-specific ramifications. - -All options are false by default, unless otherwise noted. - -All options are added to the Glob object, as well. - -If you are running many `glob` operations, you can pass a Glob object -as the `options` argument to a subsequent operation to shortcut some -`stat` and `readdir` calls. At the very least, you may pass in shared -`symlinks`, `statCache`, `realpathCache`, and `cache` options, so that -parallel glob operations will be sped up by sharing information about -the filesystem. - -* `cwd` The current working directory in which to search. Defaults - to `process.cwd()`. -* `root` The place where patterns starting with `/` will be mounted - onto. Defaults to `path.resolve(options.cwd, "/")` (`/` on Unix - systems, and `C:\` or some such on Windows.) -* `dot` Include `.dot` files in normal matches and `globstar` matches. - Note that an explicit dot in a portion of the pattern will always - match dot files. -* `nomount` By default, a pattern starting with a forward-slash will be - "mounted" onto the root setting, so that a valid filesystem path is - returned. Set this flag to disable that behavior. -* `mark` Add a `/` character to directory matches. Note that this - requires additional stat calls. -* `nosort` Don't sort the results. -* `stat` Set to true to stat *all* results. This reduces performance - somewhat, and is completely unnecessary, unless `readdir` is presumed - to be an untrustworthy indicator of file existence. -* `silent` When an unusual error is encountered when attempting to - read a directory, a warning will be printed to stderr. Set the - `silent` option to true to suppress these warnings. -* `strict` When an unusual error is encountered when attempting to - read a directory, the process will just continue on in search of - other matches. Set the `strict` option to raise an error in these - cases. -* `cache` See `cache` property above. Pass in a previously generated - cache object to save some fs calls. -* `statCache` A cache of results of filesystem information, to prevent - unnecessary stat calls. While it should not normally be necessary - to set this, you may pass the statCache from one glob() call to the - options object of another, if you know that the filesystem will not - change between calls. (See "Race Conditions" below.) -* `symlinks` A cache of known symbolic links. You may pass in a - previously generated `symlinks` object to save `lstat` calls when - resolving `**` matches. -* `sync` DEPRECATED: use `glob.sync(pattern, opts)` instead. -* `nounique` In some cases, brace-expanded patterns can result in the - same file showing up multiple times in the result set. By default, - this implementation prevents duplicates in the result set. Set this - flag to disable that behavior. -* `nonull` Set to never return an empty set, instead returning a set - containing the pattern itself. This is the default in glob(3). -* `debug` Set to enable debug logging in minimatch and glob. -* `nobrace` Do not expand `{a,b}` and `{1..3}` brace sets. -* `noglobstar` Do not match `**` against multiple filenames. (Ie, - treat it as a normal `*` instead.) -* `noext` Do not match `+(a|b)` "extglob" patterns. -* `nocase` Perform a case-insensitive match. Note: on - case-insensitive filesystems, non-magic patterns will match by - default, since `stat` and `readdir` will not raise errors. -* `matchBase` Perform a basename-only match if the pattern does not - contain any slash characters. That is, `*.js` would be treated as - equivalent to `**/*.js`, matching all js files in all directories. -* `nodir` Do not match directories, only files. (Note: to match - *only* directories, simply put a `/` at the end of the pattern.) -* `ignore` Add a pattern or an array of glob patterns to exclude matches. - Note: `ignore` patterns are *always* in `dot:true` mode, regardless - of any other settings. -* `follow` Follow symlinked directories when expanding `**` patterns. - Note that this can result in a lot of duplicate references in the - presence of cyclic links. -* `realpath` Set to true to call `fs.realpath` on all of the results. - In the case of a symlink that cannot be resolved, the full absolute - path to the matched entry is returned (though it will usually be a - broken symlink) -* `absolute` Set to true to always receive absolute paths for matched - files. Unlike `realpath`, this also affects the values returned in - the `match` event. -* `fs` File-system object with Node's `fs` API. By default, the built-in - `fs` module will be used. Set to a volume provided by a library like - `memfs` to avoid using the "real" file-system. - -## Comparisons to other fnmatch/glob implementations - -While strict compliance with the existing standards is a worthwhile -goal, some discrepancies exist between node-glob and other -implementations, and are intentional. - -The double-star character `**` is supported by default, unless the -`noglobstar` flag is set. This is supported in the manner of bsdglob -and bash 4.3, where `**` only has special significance if it is the only -thing in a path part. That is, `a/**/b` will match `a/x/y/b`, but -`a/**b` will not. - -Note that symlinked directories are not crawled as part of a `**`, -though their contents may match against subsequent portions of the -pattern. This prevents infinite loops and duplicates and the like. - -If an escaped pattern has no matches, and the `nonull` flag is set, -then glob returns the pattern as-provided, rather than -interpreting the character escapes. For example, -`glob.match([], "\\*a\\?")` will return `"\\*a\\?"` rather than -`"*a?"`. This is akin to setting the `nullglob` option in bash, except -that it does not resolve escaped pattern characters. - -If brace expansion is not disabled, then it is performed before any -other interpretation of the glob pattern. Thus, a pattern like -`+(a|{b),c)}`, which would not be valid in bash or zsh, is expanded -**first** into the set of `+(a|b)` and `+(a|c)`, and those patterns are -checked for validity. Since those two are valid, matching proceeds. - -### Comments and Negation - -Previously, this module let you mark a pattern as a "comment" if it -started with a `#` character, or a "negated" pattern if it started -with a `!` character. - -These options were deprecated in version 5, and removed in version 6. - -To specify things that should not match, use the `ignore` option. - -## Windows - -**Please only use forward-slashes in glob expressions.** - -Though windows uses either `/` or `\` as its path separator, only `/` -characters are used by this glob implementation. You must use -forward-slashes **only** in glob expressions. Back-slashes will always -be interpreted as escape characters, not path separators. - -Results from absolute patterns such as `/foo/*` are mounted onto the -root setting using `path.join`. On windows, this will by default result -in `/foo/*` matching `C:\foo\bar.txt`. - -## Race Conditions - -Glob searching, by its very nature, is susceptible to race conditions, -since it relies on directory walking and such. - -As a result, it is possible that a file that exists when glob looks for -it may have been deleted or modified by the time it returns the result. - -As part of its internal implementation, this program caches all stat -and readdir calls that it makes, in order to cut down on system -overhead. However, this also makes it even more susceptible to races, -especially if the cache or statCache objects are reused between glob -calls. - -Users are thus advised not to use a glob result as a guarantee of -filesystem state in the face of rapid changes. For the vast majority -of operations, this is never a problem. - -## Glob Logo -Glob's logo was created by [Tanya Brassie](http://tanyabrassie.com/). Logo files can be found [here](https://github.com/isaacs/node-glob/tree/master/logo). - -The logo is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/). - -## Contributing - -Any change to behavior (including bugfixes) must come with a test. - -Patches that fail tests or reduce performance will be rejected. - -``` -# to run tests -npm test - -# to re-generate test fixtures -npm run test-regen - -# to benchmark against bash/zsh -npm run bench - -# to profile javascript -npm run prof -``` - -![](oh-my-glob.gif) diff --git a/build_vtk_bundle/node_modules/glob/common.js b/build_vtk_bundle/node_modules/glob/common.js deleted file mode 100644 index 424c46e1..00000000 --- a/build_vtk_bundle/node_modules/glob/common.js +++ /dev/null @@ -1,238 +0,0 @@ -exports.setopts = setopts -exports.ownProp = ownProp -exports.makeAbs = makeAbs -exports.finish = finish -exports.mark = mark -exports.isIgnored = isIgnored -exports.childrenIgnored = childrenIgnored - -function ownProp (obj, field) { - return Object.prototype.hasOwnProperty.call(obj, field) -} - -var fs = require("fs") -var path = require("path") -var minimatch = require("minimatch") -var isAbsolute = require("path-is-absolute") -var Minimatch = minimatch.Minimatch - -function alphasort (a, b) { - return a.localeCompare(b, 'en') -} - -function setupIgnores (self, options) { - self.ignore = options.ignore || [] - - if (!Array.isArray(self.ignore)) - self.ignore = [self.ignore] - - if (self.ignore.length) { - self.ignore = self.ignore.map(ignoreMap) - } -} - -// ignore patterns are always in dot:true mode. -function ignoreMap (pattern) { - var gmatcher = null - if (pattern.slice(-3) === '/**') { - var gpattern = pattern.replace(/(\/\*\*)+$/, '') - gmatcher = new Minimatch(gpattern, { dot: true }) - } - - return { - matcher: new Minimatch(pattern, { dot: true }), - gmatcher: gmatcher - } -} - -function setopts (self, pattern, options) { - if (!options) - options = {} - - // base-matching: just use globstar for that. - if (options.matchBase && -1 === pattern.indexOf("/")) { - if (options.noglobstar) { - throw new Error("base matching requires globstar") - } - pattern = "**/" + pattern - } - - self.silent = !!options.silent - self.pattern = pattern - self.strict = options.strict !== false - self.realpath = !!options.realpath - self.realpathCache = options.realpathCache || Object.create(null) - self.follow = !!options.follow - self.dot = !!options.dot - self.mark = !!options.mark - self.nodir = !!options.nodir - if (self.nodir) - self.mark = true - self.sync = !!options.sync - self.nounique = !!options.nounique - self.nonull = !!options.nonull - self.nosort = !!options.nosort - self.nocase = !!options.nocase - self.stat = !!options.stat - self.noprocess = !!options.noprocess - self.absolute = !!options.absolute - self.fs = options.fs || fs - - self.maxLength = options.maxLength || Infinity - self.cache = options.cache || Object.create(null) - self.statCache = options.statCache || Object.create(null) - self.symlinks = options.symlinks || Object.create(null) - - setupIgnores(self, options) - - self.changedCwd = false - var cwd = process.cwd() - if (!ownProp(options, "cwd")) - self.cwd = cwd - else { - self.cwd = path.resolve(options.cwd) - self.changedCwd = self.cwd !== cwd - } - - self.root = options.root || path.resolve(self.cwd, "/") - self.root = path.resolve(self.root) - if (process.platform === "win32") - self.root = self.root.replace(/\\/g, "/") - - // TODO: is an absolute `cwd` supposed to be resolved against `root`? - // e.g. { cwd: '/test', root: __dirname } === path.join(__dirname, '/test') - self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd) - if (process.platform === "win32") - self.cwdAbs = self.cwdAbs.replace(/\\/g, "/") - self.nomount = !!options.nomount - - // disable comments and negation in Minimatch. - // Note that they are not supported in Glob itself anyway. - options.nonegate = true - options.nocomment = true - // always treat \ in patterns as escapes, not path separators - options.allowWindowsEscape = false - - self.minimatch = new Minimatch(pattern, options) - self.options = self.minimatch.options -} - -function finish (self) { - var nou = self.nounique - var all = nou ? [] : Object.create(null) - - for (var i = 0, l = self.matches.length; i < l; i ++) { - var matches = self.matches[i] - if (!matches || Object.keys(matches).length === 0) { - if (self.nonull) { - // do like the shell, and spit out the literal glob - var literal = self.minimatch.globSet[i] - if (nou) - all.push(literal) - else - all[literal] = true - } - } else { - // had matches - var m = Object.keys(matches) - if (nou) - all.push.apply(all, m) - else - m.forEach(function (m) { - all[m] = true - }) - } - } - - if (!nou) - all = Object.keys(all) - - if (!self.nosort) - all = all.sort(alphasort) - - // at *some* point we statted all of these - if (self.mark) { - for (var i = 0; i < all.length; i++) { - all[i] = self._mark(all[i]) - } - if (self.nodir) { - all = all.filter(function (e) { - var notDir = !(/\/$/.test(e)) - var c = self.cache[e] || self.cache[makeAbs(self, e)] - if (notDir && c) - notDir = c !== 'DIR' && !Array.isArray(c) - return notDir - }) - } - } - - if (self.ignore.length) - all = all.filter(function(m) { - return !isIgnored(self, m) - }) - - self.found = all -} - -function mark (self, p) { - var abs = makeAbs(self, p) - var c = self.cache[abs] - var m = p - if (c) { - var isDir = c === 'DIR' || Array.isArray(c) - var slash = p.slice(-1) === '/' - - if (isDir && !slash) - m += '/' - else if (!isDir && slash) - m = m.slice(0, -1) - - if (m !== p) { - var mabs = makeAbs(self, m) - self.statCache[mabs] = self.statCache[abs] - self.cache[mabs] = self.cache[abs] - } - } - - return m -} - -// lotta situps... -function makeAbs (self, f) { - var abs = f - if (f.charAt(0) === '/') { - abs = path.join(self.root, f) - } else if (isAbsolute(f) || f === '') { - abs = f - } else if (self.changedCwd) { - abs = path.resolve(self.cwd, f) - } else { - abs = path.resolve(f) - } - - if (process.platform === 'win32') - abs = abs.replace(/\\/g, '/') - - return abs -} - - -// Return true, if pattern ends with globstar '**', for the accompanying parent directory. -// Ex:- If node_modules/** is the pattern, add 'node_modules' to ignore list along with it's contents -function isIgnored (self, path) { - if (!self.ignore.length) - return false - - return self.ignore.some(function(item) { - return item.matcher.match(path) || !!(item.gmatcher && item.gmatcher.match(path)) - }) -} - -function childrenIgnored (self, path) { - if (!self.ignore.length) - return false - - return self.ignore.some(function(item) { - return !!(item.gmatcher && item.gmatcher.match(path)) - }) -} diff --git a/build_vtk_bundle/node_modules/glob/glob.js b/build_vtk_bundle/node_modules/glob/glob.js deleted file mode 100644 index 37a4d7e6..00000000 --- a/build_vtk_bundle/node_modules/glob/glob.js +++ /dev/null @@ -1,790 +0,0 @@ -// Approach: -// -// 1. Get the minimatch set -// 2. For each pattern in the set, PROCESS(pattern, false) -// 3. Store matches per-set, then uniq them -// -// PROCESS(pattern, inGlobStar) -// Get the first [n] items from pattern that are all strings -// Join these together. This is PREFIX. -// If there is no more remaining, then stat(PREFIX) and -// add to matches if it succeeds. END. -// -// If inGlobStar and PREFIX is symlink and points to dir -// set ENTRIES = [] -// else readdir(PREFIX) as ENTRIES -// If fail, END -// -// with ENTRIES -// If pattern[n] is GLOBSTAR -// // handle the case where the globstar match is empty -// // by pruning it out, and testing the resulting pattern -// PROCESS(pattern[0..n] + pattern[n+1 .. $], false) -// // handle other cases. -// for ENTRY in ENTRIES (not dotfiles) -// // attach globstar + tail onto the entry -// // Mark that this entry is a globstar match -// PROCESS(pattern[0..n] + ENTRY + pattern[n .. $], true) -// -// else // not globstar -// for ENTRY in ENTRIES (not dotfiles, unless pattern[n] is dot) -// Test ENTRY against pattern[n] -// If fails, continue -// If passes, PROCESS(pattern[0..n] + item + pattern[n+1 .. $]) -// -// Caveat: -// Cache all stats and readdirs results to minimize syscall. Since all -// we ever care about is existence and directory-ness, we can just keep -// `true` for files, and [children,...] for directories, or `false` for -// things that don't exist. - -module.exports = glob - -var rp = require('fs.realpath') -var minimatch = require('minimatch') -var Minimatch = minimatch.Minimatch -var inherits = require('inherits') -var EE = require('events').EventEmitter -var path = require('path') -var assert = require('assert') -var isAbsolute = require('path-is-absolute') -var globSync = require('./sync.js') -var common = require('./common.js') -var setopts = common.setopts -var ownProp = common.ownProp -var inflight = require('inflight') -var util = require('util') -var childrenIgnored = common.childrenIgnored -var isIgnored = common.isIgnored - -var once = require('once') - -function glob (pattern, options, cb) { - if (typeof options === 'function') cb = options, options = {} - if (!options) options = {} - - if (options.sync) { - if (cb) - throw new TypeError('callback provided to sync glob') - return globSync(pattern, options) - } - - return new Glob(pattern, options, cb) -} - -glob.sync = globSync -var GlobSync = glob.GlobSync = globSync.GlobSync - -// old api surface -glob.glob = glob - -function extend (origin, add) { - if (add === null || typeof add !== 'object') { - return origin - } - - var keys = Object.keys(add) - var i = keys.length - while (i--) { - origin[keys[i]] = add[keys[i]] - } - return origin -} - -glob.hasMagic = function (pattern, options_) { - var options = extend({}, options_) - options.noprocess = true - - var g = new Glob(pattern, options) - var set = g.minimatch.set - - if (!pattern) - return false - - if (set.length > 1) - return true - - for (var j = 0; j < set[0].length; j++) { - if (typeof set[0][j] !== 'string') - return true - } - - return false -} - -glob.Glob = Glob -inherits(Glob, EE) -function Glob (pattern, options, cb) { - if (typeof options === 'function') { - cb = options - options = null - } - - if (options && options.sync) { - if (cb) - throw new TypeError('callback provided to sync glob') - return new GlobSync(pattern, options) - } - - if (!(this instanceof Glob)) - return new Glob(pattern, options, cb) - - setopts(this, pattern, options) - this._didRealPath = false - - // process each pattern in the minimatch set - var n = this.minimatch.set.length - - // The matches are stored as {: true,...} so that - // duplicates are automagically pruned. - // Later, we do an Object.keys() on these. - // Keep them as a list so we can fill in when nonull is set. - this.matches = new Array(n) - - if (typeof cb === 'function') { - cb = once(cb) - this.on('error', cb) - this.on('end', function (matches) { - cb(null, matches) - }) - } - - var self = this - this._processing = 0 - - this._emitQueue = [] - this._processQueue = [] - this.paused = false - - if (this.noprocess) - return this - - if (n === 0) - return done() - - var sync = true - for (var i = 0; i < n; i ++) { - this._process(this.minimatch.set[i], i, false, done) - } - sync = false - - function done () { - --self._processing - if (self._processing <= 0) { - if (sync) { - process.nextTick(function () { - self._finish() - }) - } else { - self._finish() - } - } - } -} - -Glob.prototype._finish = function () { - assert(this instanceof Glob) - if (this.aborted) - return - - if (this.realpath && !this._didRealpath) - return this._realpath() - - common.finish(this) - this.emit('end', this.found) -} - -Glob.prototype._realpath = function () { - if (this._didRealpath) - return - - this._didRealpath = true - - var n = this.matches.length - if (n === 0) - return this._finish() - - var self = this - for (var i = 0; i < this.matches.length; i++) - this._realpathSet(i, next) - - function next () { - if (--n === 0) - self._finish() - } -} - -Glob.prototype._realpathSet = function (index, cb) { - var matchset = this.matches[index] - if (!matchset) - return cb() - - var found = Object.keys(matchset) - var self = this - var n = found.length - - if (n === 0) - return cb() - - var set = this.matches[index] = Object.create(null) - found.forEach(function (p, i) { - // If there's a problem with the stat, then it means that - // one or more of the links in the realpath couldn't be - // resolved. just return the abs value in that case. - p = self._makeAbs(p) - rp.realpath(p, self.realpathCache, function (er, real) { - if (!er) - set[real] = true - else if (er.syscall === 'stat') - set[p] = true - else - self.emit('error', er) // srsly wtf right here - - if (--n === 0) { - self.matches[index] = set - cb() - } - }) - }) -} - -Glob.prototype._mark = function (p) { - return common.mark(this, p) -} - -Glob.prototype._makeAbs = function (f) { - return common.makeAbs(this, f) -} - -Glob.prototype.abort = function () { - this.aborted = true - this.emit('abort') -} - -Glob.prototype.pause = function () { - if (!this.paused) { - this.paused = true - this.emit('pause') - } -} - -Glob.prototype.resume = function () { - if (this.paused) { - this.emit('resume') - this.paused = false - if (this._emitQueue.length) { - var eq = this._emitQueue.slice(0) - this._emitQueue.length = 0 - for (var i = 0; i < eq.length; i ++) { - var e = eq[i] - this._emitMatch(e[0], e[1]) - } - } - if (this._processQueue.length) { - var pq = this._processQueue.slice(0) - this._processQueue.length = 0 - for (var i = 0; i < pq.length; i ++) { - var p = pq[i] - this._processing-- - this._process(p[0], p[1], p[2], p[3]) - } - } - } -} - -Glob.prototype._process = function (pattern, index, inGlobStar, cb) { - assert(this instanceof Glob) - assert(typeof cb === 'function') - - if (this.aborted) - return - - this._processing++ - if (this.paused) { - this._processQueue.push([pattern, index, inGlobStar, cb]) - return - } - - //console.error('PROCESS %d', this._processing, pattern) - - // Get the first [n] parts of pattern that are all strings. - var n = 0 - while (typeof pattern[n] === 'string') { - n ++ - } - // now n is the index of the first one that is *not* a string. - - // see if there's anything else - var prefix - switch (n) { - // if not, then this is rather simple - case pattern.length: - this._processSimple(pattern.join('/'), index, cb) - return - - case 0: - // pattern *starts* with some non-trivial item. - // going to readdir(cwd), but not include the prefix in matches. - prefix = null - break - - default: - // pattern has some string bits in the front. - // whatever it starts with, whether that's 'absolute' like /foo/bar, - // or 'relative' like '../baz' - prefix = pattern.slice(0, n).join('/') - break - } - - var remain = pattern.slice(n) - - // get the list of entries. - var read - if (prefix === null) - read = '.' - else if (isAbsolute(prefix) || - isAbsolute(pattern.map(function (p) { - return typeof p === 'string' ? p : '[*]' - }).join('/'))) { - if (!prefix || !isAbsolute(prefix)) - prefix = '/' + prefix - read = prefix - } else - read = prefix - - var abs = this._makeAbs(read) - - //if ignored, skip _processing - if (childrenIgnored(this, read)) - return cb() - - var isGlobStar = remain[0] === minimatch.GLOBSTAR - if (isGlobStar) - this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb) - else - this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb) -} - -Glob.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar, cb) { - var self = this - this._readdir(abs, inGlobStar, function (er, entries) { - return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb) - }) -} - -Glob.prototype._processReaddir2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) { - - // if the abs isn't a dir, then nothing can match! - if (!entries) - return cb() - - // It will only match dot entries if it starts with a dot, or if - // dot is set. Stuff like @(.foo|.bar) isn't allowed. - var pn = remain[0] - var negate = !!this.minimatch.negate - var rawGlob = pn._glob - var dotOk = this.dot || rawGlob.charAt(0) === '.' - - var matchedEntries = [] - for (var i = 0; i < entries.length; i++) { - var e = entries[i] - if (e.charAt(0) !== '.' || dotOk) { - var m - if (negate && !prefix) { - m = !e.match(pn) - } else { - m = e.match(pn) - } - if (m) - matchedEntries.push(e) - } - } - - //console.error('prd2', prefix, entries, remain[0]._glob, matchedEntries) - - var len = matchedEntries.length - // If there are no matched entries, then nothing matches. - if (len === 0) - return cb() - - // if this is the last remaining pattern bit, then no need for - // an additional stat *unless* the user has specified mark or - // stat explicitly. We know they exist, since readdir returned - // them. - - if (remain.length === 1 && !this.mark && !this.stat) { - if (!this.matches[index]) - this.matches[index] = Object.create(null) - - for (var i = 0; i < len; i ++) { - var e = matchedEntries[i] - if (prefix) { - if (prefix !== '/') - e = prefix + '/' + e - else - e = prefix + e - } - - if (e.charAt(0) === '/' && !this.nomount) { - e = path.join(this.root, e) - } - this._emitMatch(index, e) - } - // This was the last one, and no stats were needed - return cb() - } - - // now test all matched entries as stand-ins for that part - // of the pattern. - remain.shift() - for (var i = 0; i < len; i ++) { - var e = matchedEntries[i] - var newPattern - if (prefix) { - if (prefix !== '/') - e = prefix + '/' + e - else - e = prefix + e - } - this._process([e].concat(remain), index, inGlobStar, cb) - } - cb() -} - -Glob.prototype._emitMatch = function (index, e) { - if (this.aborted) - return - - if (isIgnored(this, e)) - return - - if (this.paused) { - this._emitQueue.push([index, e]) - return - } - - var abs = isAbsolute(e) ? e : this._makeAbs(e) - - if (this.mark) - e = this._mark(e) - - if (this.absolute) - e = abs - - if (this.matches[index][e]) - return - - if (this.nodir) { - var c = this.cache[abs] - if (c === 'DIR' || Array.isArray(c)) - return - } - - this.matches[index][e] = true - - var st = this.statCache[abs] - if (st) - this.emit('stat', e, st) - - this.emit('match', e) -} - -Glob.prototype._readdirInGlobStar = function (abs, cb) { - if (this.aborted) - return - - // follow all symlinked directories forever - // just proceed as if this is a non-globstar situation - if (this.follow) - return this._readdir(abs, false, cb) - - var lstatkey = 'lstat\0' + abs - var self = this - var lstatcb = inflight(lstatkey, lstatcb_) - - if (lstatcb) - self.fs.lstat(abs, lstatcb) - - function lstatcb_ (er, lstat) { - if (er && er.code === 'ENOENT') - return cb() - - var isSym = lstat && lstat.isSymbolicLink() - self.symlinks[abs] = isSym - - // If it's not a symlink or a dir, then it's definitely a regular file. - // don't bother doing a readdir in that case. - if (!isSym && lstat && !lstat.isDirectory()) { - self.cache[abs] = 'FILE' - cb() - } else - self._readdir(abs, false, cb) - } -} - -Glob.prototype._readdir = function (abs, inGlobStar, cb) { - if (this.aborted) - return - - cb = inflight('readdir\0'+abs+'\0'+inGlobStar, cb) - if (!cb) - return - - //console.error('RD %j %j', +inGlobStar, abs) - if (inGlobStar && !ownProp(this.symlinks, abs)) - return this._readdirInGlobStar(abs, cb) - - if (ownProp(this.cache, abs)) { - var c = this.cache[abs] - if (!c || c === 'FILE') - return cb() - - if (Array.isArray(c)) - return cb(null, c) - } - - var self = this - self.fs.readdir(abs, readdirCb(this, abs, cb)) -} - -function readdirCb (self, abs, cb) { - return function (er, entries) { - if (er) - self._readdirError(abs, er, cb) - else - self._readdirEntries(abs, entries, cb) - } -} - -Glob.prototype._readdirEntries = function (abs, entries, cb) { - if (this.aborted) - return - - // if we haven't asked to stat everything, then just - // assume that everything in there exists, so we can avoid - // having to stat it a second time. - if (!this.mark && !this.stat) { - for (var i = 0; i < entries.length; i ++) { - var e = entries[i] - if (abs === '/') - e = abs + e - else - e = abs + '/' + e - this.cache[e] = true - } - } - - this.cache[abs] = entries - return cb(null, entries) -} - -Glob.prototype._readdirError = function (f, er, cb) { - if (this.aborted) - return - - // handle errors, and cache the information - switch (er.code) { - case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205 - case 'ENOTDIR': // totally normal. means it *does* exist. - var abs = this._makeAbs(f) - this.cache[abs] = 'FILE' - if (abs === this.cwdAbs) { - var error = new Error(er.code + ' invalid cwd ' + this.cwd) - error.path = this.cwd - error.code = er.code - this.emit('error', error) - this.abort() - } - break - - case 'ENOENT': // not terribly unusual - case 'ELOOP': - case 'ENAMETOOLONG': - case 'UNKNOWN': - this.cache[this._makeAbs(f)] = false - break - - default: // some unusual error. Treat as failure. - this.cache[this._makeAbs(f)] = false - if (this.strict) { - this.emit('error', er) - // If the error is handled, then we abort - // if not, we threw out of here - this.abort() - } - if (!this.silent) - console.error('glob error', er) - break - } - - return cb() -} - -Glob.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar, cb) { - var self = this - this._readdir(abs, inGlobStar, function (er, entries) { - self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb) - }) -} - - -Glob.prototype._processGlobStar2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) { - //console.error('pgs2', prefix, remain[0], entries) - - // no entries means not a dir, so it can never have matches - // foo.txt/** doesn't match foo.txt - if (!entries) - return cb() - - // test without the globstar, and with every child both below - // and replacing the globstar. - var remainWithoutGlobStar = remain.slice(1) - var gspref = prefix ? [ prefix ] : [] - var noGlobStar = gspref.concat(remainWithoutGlobStar) - - // the noGlobStar pattern exits the inGlobStar state - this._process(noGlobStar, index, false, cb) - - var isSym = this.symlinks[abs] - var len = entries.length - - // If it's a symlink, and we're in a globstar, then stop - if (isSym && inGlobStar) - return cb() - - for (var i = 0; i < len; i++) { - var e = entries[i] - if (e.charAt(0) === '.' && !this.dot) - continue - - // these two cases enter the inGlobStar state - var instead = gspref.concat(entries[i], remainWithoutGlobStar) - this._process(instead, index, true, cb) - - var below = gspref.concat(entries[i], remain) - this._process(below, index, true, cb) - } - - cb() -} - -Glob.prototype._processSimple = function (prefix, index, cb) { - // XXX review this. Shouldn't it be doing the mounting etc - // before doing stat? kinda weird? - var self = this - this._stat(prefix, function (er, exists) { - self._processSimple2(prefix, index, er, exists, cb) - }) -} -Glob.prototype._processSimple2 = function (prefix, index, er, exists, cb) { - - //console.error('ps2', prefix, exists) - - if (!this.matches[index]) - this.matches[index] = Object.create(null) - - // If it doesn't exist, then just mark the lack of results - if (!exists) - return cb() - - if (prefix && isAbsolute(prefix) && !this.nomount) { - var trail = /[\/\\]$/.test(prefix) - if (prefix.charAt(0) === '/') { - prefix = path.join(this.root, prefix) - } else { - prefix = path.resolve(this.root, prefix) - if (trail) - prefix += '/' - } - } - - if (process.platform === 'win32') - prefix = prefix.replace(/\\/g, '/') - - // Mark this as a match - this._emitMatch(index, prefix) - cb() -} - -// Returns either 'DIR', 'FILE', or false -Glob.prototype._stat = function (f, cb) { - var abs = this._makeAbs(f) - var needDir = f.slice(-1) === '/' - - if (f.length > this.maxLength) - return cb() - - if (!this.stat && ownProp(this.cache, abs)) { - var c = this.cache[abs] - - if (Array.isArray(c)) - c = 'DIR' - - // It exists, but maybe not how we need it - if (!needDir || c === 'DIR') - return cb(null, c) - - if (needDir && c === 'FILE') - return cb() - - // otherwise we have to stat, because maybe c=true - // if we know it exists, but not what it is. - } - - var exists - var stat = this.statCache[abs] - if (stat !== undefined) { - if (stat === false) - return cb(null, stat) - else { - var type = stat.isDirectory() ? 'DIR' : 'FILE' - if (needDir && type === 'FILE') - return cb() - else - return cb(null, type, stat) - } - } - - var self = this - var statcb = inflight('stat\0' + abs, lstatcb_) - if (statcb) - self.fs.lstat(abs, statcb) - - function lstatcb_ (er, lstat) { - if (lstat && lstat.isSymbolicLink()) { - // If it's a symlink, then treat it as the target, unless - // the target does not exist, then treat it as a file. - return self.fs.stat(abs, function (er, stat) { - if (er) - self._stat2(f, abs, null, lstat, cb) - else - self._stat2(f, abs, er, stat, cb) - }) - } else { - self._stat2(f, abs, er, lstat, cb) - } - } -} - -Glob.prototype._stat2 = function (f, abs, er, stat, cb) { - if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) { - this.statCache[abs] = false - return cb() - } - - var needDir = f.slice(-1) === '/' - this.statCache[abs] = stat - - if (abs.slice(-1) === '/' && stat && !stat.isDirectory()) - return cb(null, false, stat) - - var c = true - if (stat) - c = stat.isDirectory() ? 'DIR' : 'FILE' - this.cache[abs] = this.cache[abs] || c - - if (needDir && c === 'FILE') - return cb() - - return cb(null, c, stat) -} diff --git a/build_vtk_bundle/node_modules/glob/package.json b/build_vtk_bundle/node_modules/glob/package.json deleted file mode 100644 index 5940b649..00000000 --- a/build_vtk_bundle/node_modules/glob/package.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "author": "Isaac Z. Schlueter (http://blog.izs.me/)", - "name": "glob", - "description": "a little globber", - "version": "7.2.3", - "publishConfig": { - "tag": "v7-legacy" - }, - "repository": { - "type": "git", - "url": "git://github.com/isaacs/node-glob.git" - }, - "main": "glob.js", - "files": [ - "glob.js", - "sync.js", - "common.js" - ], - "engines": { - "node": "*" - }, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "devDependencies": { - "memfs": "^3.2.0", - "mkdirp": "0", - "rimraf": "^2.2.8", - "tap": "^15.0.6", - "tick": "0.0.6" - }, - "tap": { - "before": "test/00-setup.js", - "after": "test/zz-cleanup.js", - "jobs": 1 - }, - "scripts": { - "prepublish": "npm run benchclean", - "profclean": "rm -f v8.log profile.txt", - "test": "tap", - "test-regen": "npm run profclean && TEST_REGEN=1 node test/00-setup.js", - "bench": "bash benchmark.sh", - "prof": "bash prof.sh && cat profile.txt", - "benchclean": "node benchclean.js" - }, - "license": "ISC", - "funding": { - "url": "https://github.com/sponsors/isaacs" - } -} diff --git a/build_vtk_bundle/node_modules/glob/sync.js b/build_vtk_bundle/node_modules/glob/sync.js deleted file mode 100644 index 2c4f4801..00000000 --- a/build_vtk_bundle/node_modules/glob/sync.js +++ /dev/null @@ -1,486 +0,0 @@ -module.exports = globSync -globSync.GlobSync = GlobSync - -var rp = require('fs.realpath') -var minimatch = require('minimatch') -var Minimatch = minimatch.Minimatch -var Glob = require('./glob.js').Glob -var util = require('util') -var path = require('path') -var assert = require('assert') -var isAbsolute = require('path-is-absolute') -var common = require('./common.js') -var setopts = common.setopts -var ownProp = common.ownProp -var childrenIgnored = common.childrenIgnored -var isIgnored = common.isIgnored - -function globSync (pattern, options) { - if (typeof options === 'function' || arguments.length === 3) - throw new TypeError('callback provided to sync glob\n'+ - 'See: https://github.com/isaacs/node-glob/issues/167') - - return new GlobSync(pattern, options).found -} - -function GlobSync (pattern, options) { - if (!pattern) - throw new Error('must provide pattern') - - if (typeof options === 'function' || arguments.length === 3) - throw new TypeError('callback provided to sync glob\n'+ - 'See: https://github.com/isaacs/node-glob/issues/167') - - if (!(this instanceof GlobSync)) - return new GlobSync(pattern, options) - - setopts(this, pattern, options) - - if (this.noprocess) - return this - - var n = this.minimatch.set.length - this.matches = new Array(n) - for (var i = 0; i < n; i ++) { - this._process(this.minimatch.set[i], i, false) - } - this._finish() -} - -GlobSync.prototype._finish = function () { - assert.ok(this instanceof GlobSync) - if (this.realpath) { - var self = this - this.matches.forEach(function (matchset, index) { - var set = self.matches[index] = Object.create(null) - for (var p in matchset) { - try { - p = self._makeAbs(p) - var real = rp.realpathSync(p, self.realpathCache) - set[real] = true - } catch (er) { - if (er.syscall === 'stat') - set[self._makeAbs(p)] = true - else - throw er - } - } - }) - } - common.finish(this) -} - - -GlobSync.prototype._process = function (pattern, index, inGlobStar) { - assert.ok(this instanceof GlobSync) - - // Get the first [n] parts of pattern that are all strings. - var n = 0 - while (typeof pattern[n] === 'string') { - n ++ - } - // now n is the index of the first one that is *not* a string. - - // See if there's anything else - var prefix - switch (n) { - // if not, then this is rather simple - case pattern.length: - this._processSimple(pattern.join('/'), index) - return - - case 0: - // pattern *starts* with some non-trivial item. - // going to readdir(cwd), but not include the prefix in matches. - prefix = null - break - - default: - // pattern has some string bits in the front. - // whatever it starts with, whether that's 'absolute' like /foo/bar, - // or 'relative' like '../baz' - prefix = pattern.slice(0, n).join('/') - break - } - - var remain = pattern.slice(n) - - // get the list of entries. - var read - if (prefix === null) - read = '.' - else if (isAbsolute(prefix) || - isAbsolute(pattern.map(function (p) { - return typeof p === 'string' ? p : '[*]' - }).join('/'))) { - if (!prefix || !isAbsolute(prefix)) - prefix = '/' + prefix - read = prefix - } else - read = prefix - - var abs = this._makeAbs(read) - - //if ignored, skip processing - if (childrenIgnored(this, read)) - return - - var isGlobStar = remain[0] === minimatch.GLOBSTAR - if (isGlobStar) - this._processGlobStar(prefix, read, abs, remain, index, inGlobStar) - else - this._processReaddir(prefix, read, abs, remain, index, inGlobStar) -} - - -GlobSync.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar) { - var entries = this._readdir(abs, inGlobStar) - - // if the abs isn't a dir, then nothing can match! - if (!entries) - return - - // It will only match dot entries if it starts with a dot, or if - // dot is set. Stuff like @(.foo|.bar) isn't allowed. - var pn = remain[0] - var negate = !!this.minimatch.negate - var rawGlob = pn._glob - var dotOk = this.dot || rawGlob.charAt(0) === '.' - - var matchedEntries = [] - for (var i = 0; i < entries.length; i++) { - var e = entries[i] - if (e.charAt(0) !== '.' || dotOk) { - var m - if (negate && !prefix) { - m = !e.match(pn) - } else { - m = e.match(pn) - } - if (m) - matchedEntries.push(e) - } - } - - var len = matchedEntries.length - // If there are no matched entries, then nothing matches. - if (len === 0) - return - - // if this is the last remaining pattern bit, then no need for - // an additional stat *unless* the user has specified mark or - // stat explicitly. We know they exist, since readdir returned - // them. - - if (remain.length === 1 && !this.mark && !this.stat) { - if (!this.matches[index]) - this.matches[index] = Object.create(null) - - for (var i = 0; i < len; i ++) { - var e = matchedEntries[i] - if (prefix) { - if (prefix.slice(-1) !== '/') - e = prefix + '/' + e - else - e = prefix + e - } - - if (e.charAt(0) === '/' && !this.nomount) { - e = path.join(this.root, e) - } - this._emitMatch(index, e) - } - // This was the last one, and no stats were needed - return - } - - // now test all matched entries as stand-ins for that part - // of the pattern. - remain.shift() - for (var i = 0; i < len; i ++) { - var e = matchedEntries[i] - var newPattern - if (prefix) - newPattern = [prefix, e] - else - newPattern = [e] - this._process(newPattern.concat(remain), index, inGlobStar) - } -} - - -GlobSync.prototype._emitMatch = function (index, e) { - if (isIgnored(this, e)) - return - - var abs = this._makeAbs(e) - - if (this.mark) - e = this._mark(e) - - if (this.absolute) { - e = abs - } - - if (this.matches[index][e]) - return - - if (this.nodir) { - var c = this.cache[abs] - if (c === 'DIR' || Array.isArray(c)) - return - } - - this.matches[index][e] = true - - if (this.stat) - this._stat(e) -} - - -GlobSync.prototype._readdirInGlobStar = function (abs) { - // follow all symlinked directories forever - // just proceed as if this is a non-globstar situation - if (this.follow) - return this._readdir(abs, false) - - var entries - var lstat - var stat - try { - lstat = this.fs.lstatSync(abs) - } catch (er) { - if (er.code === 'ENOENT') { - // lstat failed, doesn't exist - return null - } - } - - var isSym = lstat && lstat.isSymbolicLink() - this.symlinks[abs] = isSym - - // If it's not a symlink or a dir, then it's definitely a regular file. - // don't bother doing a readdir in that case. - if (!isSym && lstat && !lstat.isDirectory()) - this.cache[abs] = 'FILE' - else - entries = this._readdir(abs, false) - - return entries -} - -GlobSync.prototype._readdir = function (abs, inGlobStar) { - var entries - - if (inGlobStar && !ownProp(this.symlinks, abs)) - return this._readdirInGlobStar(abs) - - if (ownProp(this.cache, abs)) { - var c = this.cache[abs] - if (!c || c === 'FILE') - return null - - if (Array.isArray(c)) - return c - } - - try { - return this._readdirEntries(abs, this.fs.readdirSync(abs)) - } catch (er) { - this._readdirError(abs, er) - return null - } -} - -GlobSync.prototype._readdirEntries = function (abs, entries) { - // if we haven't asked to stat everything, then just - // assume that everything in there exists, so we can avoid - // having to stat it a second time. - if (!this.mark && !this.stat) { - for (var i = 0; i < entries.length; i ++) { - var e = entries[i] - if (abs === '/') - e = abs + e - else - e = abs + '/' + e - this.cache[e] = true - } - } - - this.cache[abs] = entries - - // mark and cache dir-ness - return entries -} - -GlobSync.prototype._readdirError = function (f, er) { - // handle errors, and cache the information - switch (er.code) { - case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205 - case 'ENOTDIR': // totally normal. means it *does* exist. - var abs = this._makeAbs(f) - this.cache[abs] = 'FILE' - if (abs === this.cwdAbs) { - var error = new Error(er.code + ' invalid cwd ' + this.cwd) - error.path = this.cwd - error.code = er.code - throw error - } - break - - case 'ENOENT': // not terribly unusual - case 'ELOOP': - case 'ENAMETOOLONG': - case 'UNKNOWN': - this.cache[this._makeAbs(f)] = false - break - - default: // some unusual error. Treat as failure. - this.cache[this._makeAbs(f)] = false - if (this.strict) - throw er - if (!this.silent) - console.error('glob error', er) - break - } -} - -GlobSync.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar) { - - var entries = this._readdir(abs, inGlobStar) - - // no entries means not a dir, so it can never have matches - // foo.txt/** doesn't match foo.txt - if (!entries) - return - - // test without the globstar, and with every child both below - // and replacing the globstar. - var remainWithoutGlobStar = remain.slice(1) - var gspref = prefix ? [ prefix ] : [] - var noGlobStar = gspref.concat(remainWithoutGlobStar) - - // the noGlobStar pattern exits the inGlobStar state - this._process(noGlobStar, index, false) - - var len = entries.length - var isSym = this.symlinks[abs] - - // If it's a symlink, and we're in a globstar, then stop - if (isSym && inGlobStar) - return - - for (var i = 0; i < len; i++) { - var e = entries[i] - if (e.charAt(0) === '.' && !this.dot) - continue - - // these two cases enter the inGlobStar state - var instead = gspref.concat(entries[i], remainWithoutGlobStar) - this._process(instead, index, true) - - var below = gspref.concat(entries[i], remain) - this._process(below, index, true) - } -} - -GlobSync.prototype._processSimple = function (prefix, index) { - // XXX review this. Shouldn't it be doing the mounting etc - // before doing stat? kinda weird? - var exists = this._stat(prefix) - - if (!this.matches[index]) - this.matches[index] = Object.create(null) - - // If it doesn't exist, then just mark the lack of results - if (!exists) - return - - if (prefix && isAbsolute(prefix) && !this.nomount) { - var trail = /[\/\\]$/.test(prefix) - if (prefix.charAt(0) === '/') { - prefix = path.join(this.root, prefix) - } else { - prefix = path.resolve(this.root, prefix) - if (trail) - prefix += '/' - } - } - - if (process.platform === 'win32') - prefix = prefix.replace(/\\/g, '/') - - // Mark this as a match - this._emitMatch(index, prefix) -} - -// Returns either 'DIR', 'FILE', or false -GlobSync.prototype._stat = function (f) { - var abs = this._makeAbs(f) - var needDir = f.slice(-1) === '/' - - if (f.length > this.maxLength) - return false - - if (!this.stat && ownProp(this.cache, abs)) { - var c = this.cache[abs] - - if (Array.isArray(c)) - c = 'DIR' - - // It exists, but maybe not how we need it - if (!needDir || c === 'DIR') - return c - - if (needDir && c === 'FILE') - return false - - // otherwise we have to stat, because maybe c=true - // if we know it exists, but not what it is. - } - - var exists - var stat = this.statCache[abs] - if (!stat) { - var lstat - try { - lstat = this.fs.lstatSync(abs) - } catch (er) { - if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) { - this.statCache[abs] = false - return false - } - } - - if (lstat && lstat.isSymbolicLink()) { - try { - stat = this.fs.statSync(abs) - } catch (er) { - stat = lstat - } - } else { - stat = lstat - } - } - - this.statCache[abs] = stat - - var c = true - if (stat) - c = stat.isDirectory() ? 'DIR' : 'FILE' - - this.cache[abs] = this.cache[abs] || c - - if (needDir && c === 'FILE') - return false - - return c -} - -GlobSync.prototype._mark = function (p) { - return common.mark(this, p) -} - -GlobSync.prototype._makeAbs = function (f) { - return common.makeAbs(this, f) -} diff --git a/build_vtk_bundle/node_modules/globalthis/.eslintrc b/build_vtk_bundle/node_modules/globalthis/.eslintrc deleted file mode 100644 index afbd40a7..00000000 --- a/build_vtk_bundle/node_modules/globalthis/.eslintrc +++ /dev/null @@ -1,18 +0,0 @@ -{ - "root": true, - - "extends": "@ljharb", - - "env": { - "browser": true, - "node": true, - }, - - "ignorePatterns": [ - "dist", - ], - - "rules": { - "max-statements-per-line": [2, { "max": 2 }] - } -} diff --git a/build_vtk_bundle/node_modules/globalthis/.nycrc b/build_vtk_bundle/node_modules/globalthis/.nycrc deleted file mode 100644 index 726d82ba..00000000 --- a/build_vtk_bundle/node_modules/globalthis/.nycrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "all": true, - "check-coverage": false, - "reporter": ["text-summary", "text", "html", "json"], - "exclude": [ - "coverage", - "dist", - "test" - ] -} diff --git a/build_vtk_bundle/node_modules/globalthis/CHANGELOG.md b/build_vtk_bundle/node_modules/globalthis/CHANGELOG.md deleted file mode 100644 index b2962da9..00000000 --- a/build_vtk_bundle/node_modules/globalthis/CHANGELOG.md +++ /dev/null @@ -1,96 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [v1.0.3](https://github.com/es-shims/globalThis/compare/v1.0.2...v1.0.3) - 2022-05-07 - -### Commits - -- [actions] reuse common workflows [`65891e4`](https://github.com/es-shims/globalThis/commit/65891e4d285ae04e216ff01160cff861e0e41a4f) -- [actions] use `node/install` instead of `node/run`; use `codecov` action [`82f8481`](https://github.com/es-shims/globalThis/commit/82f84815027f666f625e1ccb41f723800a05d016) -- [meta] use `npmignore` to autogenerate an npmignore file [`53afc39`](https://github.com/es-shims/globalThis/commit/53afc39bfd3eb262c5e6e9dfd25e4f81f3578c1c) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`03169d4`](https://github.com/es-shims/globalThis/commit/03169d4254c9ef177d6537becca5b0b56df50d91) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape` [`4986e3e`](https://github.com/es-shims/globalThis/commit/4986e3e20c5f664601871a0fac68c1efd0a68472) -- [actions] update codecov uploader [`15c4b06`](https://github.com/es-shims/globalThis/commit/15c4b062b1a9434dbec93604ed31b6893d11d458) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `auto-changelog`, `tape` [`8b04a74`](https://github.com/es-shims/globalThis/commit/8b04a749d3cb2f825920beb700899f0c13ad2fb8) -- [Fix] `globalThis` should be writable [`8759985`](https://github.com/es-shims/globalThis/commit/87599852d5f91e2e1f06e424cdefcd443ec98476) -- [readme] add github actions/codecov badges [`0263f0d`](https://github.com/es-shims/globalThis/commit/0263f0debfa982b928fcd301b11fe3e3193bf33d) -- [Dev Deps] update `aud`, `eslint`, `tape` [`e88d296`](https://github.com/es-shims/globalThis/commit/e88d296bb026633bdd1be2e1542903a5d0107cd8) -- [meta] use `prepublishOnly` script for npm 7+ [`c81fde6`](https://github.com/es-shims/globalThis/commit/c81fde6a9e44345e56dada588e16db736809ddd9) -- [Tests] nycignore `dist` [`bde0c0d`](https://github.com/es-shims/globalThis/commit/bde0c0df46f684316ab414da1487a0cd2efe3eeb) -- [meta] gitignore coverage output [`79f73f8`](https://github.com/es-shims/globalThis/commit/79f73f8b0c1180567fba473f92c07d71efd4dd0b) - -## [v1.0.2](https://github.com/es-shims/globalThis/compare/v1.0.1...v1.0.2) - 2021-02-22 - -### Commits - -- [Tests] migrate tests to Github Actions [`a3f50f7`](https://github.com/es-shims/globalThis/commit/a3f50f77a392c0ffdaca18fb5881743b874d0a6f) -- [meta] do not publish github action workflow files [`eb5c787`](https://github.com/es-shims/globalThis/commit/eb5c7879317cd7f1fde52228660be8e779c9d4e3) -- [Tests] add `implementation` est; run `es-shim-api` in postlint; use `tape` runner [`c9dd792`](https://github.com/es-shims/globalThis/commit/c9dd792d492ec9744a5e5d5033e919b94d441bac) -- [Tests] fix native tests [`6b76dff`](https://github.com/es-shims/globalThis/commit/6b76dff3af3fe9bcd7b24d48c6ba55116169e840) -- [Tests] run `nyc` on all tests [`0407f79`](https://github.com/es-shims/globalThis/commit/0407f79f64bf9fc30111f3bf4dff7e4205331fb6) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape`, `browserify` [`b8cc020`](https://github.com/es-shims/globalThis/commit/b8cc020e5ecc2d5a5a5b4160aabc60cc42d50c03) -- [actions] add "Allow Edits" workflow [`e2854df`](https://github.com/es-shims/globalThis/commit/e2854df653667b16ff34a7a0a7b677231dfe2b02) -- [readme] remove travis badge [`262eb76`](https://github.com/es-shims/globalThis/commit/262eb76e4e0d3f2df354cc6aff1b18f50c7b147f) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`; add `safe-publish-latest` [`3c76883`](https://github.com/es-shims/globalThis/commit/3c7688325f6aa050afe3ed978e423e70974e4d3b) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`7276123`](https://github.com/es-shims/globalThis/commit/727612396262fc22275f44159ec5b39115dc359f) -- [actions] update workflows [`bcb0f42`](https://github.com/es-shims/globalThis/commit/bcb0f42c319cf19746e03a6667cf25d3e835f46e) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`5485851`](https://github.com/es-shims/globalThis/commit/548585148e874d6eb0b0463526a88e8b64e7c5eb) -- [Dev Deps] update `auto-changelog`, `tape` [`6a01da3`](https://github.com/es-shims/globalThis/commit/6a01da3f321983d1970d793711d31cf8508ef94d) -- [Dev Deps] update `@ljharb/eslint-config`, `tape` [`7a07f4e`](https://github.com/es-shims/globalThis/commit/7a07f4ebc5580933b40bbe67f357632e0f7d5586) -- [meta] only run the build script in publish [`797e492`](https://github.com/es-shims/globalThis/commit/797e492519ed0bf6270537290e69ca0456790575) -- [meta] combine duplicate `prepublish` scripts [`92bbef0`](https://github.com/es-shims/globalThis/commit/92bbef0f91f6e91163186f68b5f5f1ffd26c479d) -- [Dev Deps] update `auto-changelog`; add `aud` [`be6dbec`](https://github.com/es-shims/globalThis/commit/be6dbecefddb40493c5568a2cbe83f74e2e0385f) -- [actions] switch Automatic Rebase workflow to `pull_request_target` event [`bfd54f8`](https://github.com/es-shims/globalThis/commit/bfd54f8388758e7dec618dc34956e7075a7c15f0) -- [Tests] only audit prod deps [`0f64b47`](https://github.com/es-shims/globalThis/commit/0f64b47acfa812affbacbe487fcb0f6c02eccc25) - -## [v1.0.1](https://github.com/es-shims/globalThis/compare/v1.0.0...v1.0.1) - 2019-12-15 - -### Fixed - -- [Refactor] only use `global` in node; only check browser globals in browsers [`#2`](https://github.com/es-shims/globalThis/issues/2) - -### Commits - -- [Tests] use shared travis-ci configs [`edb1cc9`](https://github.com/es-shims/globalThis/commit/edb1cc9d900a40e8c1732264b6e85d4f9760920c) -- [Tests] remove `jscs` [`1847ac2`](https://github.com/es-shims/globalThis/commit/1847ac2487e2c13cf8bf717211c6a93fe60831f9) -- [meta] add `auto-changelog` [`933c381`](https://github.com/es-shims/globalThis/commit/933c381083890965ac848d3da21ed9e910cc09cf) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `browserify`, `tape` [`93310bc`](https://github.com/es-shims/globalThis/commit/93310bc01ddacbe23a93b3022daebc9b6f6ae8c3) -- [actions] add automatic rebasing / merge commit blocking [`231dec5`](https://github.com/es-shims/globalThis/commit/231dec511c42e1509035d176e2451c55de20bfe7) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `browserify`, `covert`, `is`, `tape` [`e50c1f6`](https://github.com/es-shims/globalThis/commit/e50c1f6d2d45c66f53ffda471bbf62c08ed15c9b) -- [Tests] use `npx aud` instead of `nsp` or `npm audit` with hoops [`4abd340`](https://github.com/es-shims/globalThis/commit/4abd3400fc8942963e77515d0cf2fbcac3cb7bc8) -- [meta] add `funding` field [`2d1f9eb`](https://github.com/es-shims/globalThis/commit/2d1f9eb00b2dea46f6de7d563b31db17f44f1899) -- [meta] remove unused deps [`5bd6bef`](https://github.com/es-shims/globalThis/commit/5bd6befefbaf0c7e6f70eb3c1919b5c5a271d29d) -- readme: Fix casing + phrasing [`66379cc`](https://github.com/es-shims/globalThis/commit/66379ccf5008f7676aac5f3dec1ea2fe55e3516c) -- [Deps] update `define-properties`, `object-keys` [`4585e5a`](https://github.com/es-shims/globalThis/commit/4585e5ab461093ab6c62ce0b22b959925e8f818c) -- fix issue with Webpack's CaseSensitivePathsPlugin [`842e84e`](https://github.com/es-shims/globalThis/commit/842e84e0096c9eea660c78fd19c9c07799b81537) - -## v1.0.0 - 2018-08-10 - -### Commits - -- Dotfiles. [`f01b02d`](https://github.com/es-shims/globalThis/commit/f01b02d315865c812e5b9158f71bb18f3b153def) -- [Tests] up to `node` `v10.7`, `v9.11`, `v8.11`, `v7.10`, `v6.14`, `v4.9`; use `nvm install-latest-npm`; improve matrix [`ed1fa5d`](https://github.com/es-shims/globalThis/commit/ed1fa5d473d933b3270410b658183dc1c556a663) -- Tests [`ab99527`](https://github.com/es-shims/globalThis/commit/ab99527e3c434e89dd40f8cba3b0e2e976156611) -- [breaking] update property name, rename repo [`be42e3d`](https://github.com/es-shims/globalThis/commit/be42e3dce08b62a78260d487f62fa69b410d7918) -- package.json [`ca43a36`](https://github.com/es-shims/globalThis/commit/ca43a363e3ce0dbc2d4623169f8cb3d792f8bc84) -- implementation [`80b5a40`](https://github.com/es-shims/globalThis/commit/80b5a403ef532254b2af46ec3ba5f442a308a57d) -- read me [`f6df9b3`](https://github.com/es-shims/globalThis/commit/f6df9b3b69977f04e080d1720ba1203c13447884) -- Rename `System.global` to `global` [`fa8503c`](https://github.com/es-shims/globalThis/commit/fa8503cf94afe84b3729dd5b0e9f73f481fb1fee) -- Initial commit [`99f1dc3`](https://github.com/es-shims/globalThis/commit/99f1dc328d0b4c52a550037de0139d5452ac01de) -- [Tests] up to `node` `v6.7`, `v5.12`, `v4.6`; improve test matrix [`712ec0e`](https://github.com/es-shims/globalThis/commit/712ec0e545d1603c4e23f4ff1acb066cc4a3c9ee) -- [Dev Deps] update `browserify`, `tape`, `jscs`, `nsp`, `eslint`, `@ljharb/eslint-config` [`73278bd`](https://github.com/es-shims/globalThis/commit/73278bd638d1e762eb7415350a738f5d345896f5) -- [Dev Deps] update `@es-shims/api`, `@ljharb/eslint-config`, `browserify`, `eslint`, `for-each`, `is`, `nsp`, `tape` [`75fa992`](https://github.com/es-shims/globalThis/commit/75fa9929be81afec43895c02e33d0b8a78f11d1f) -- [Dev Deps] update `browserify`, `is`, `tape`, `nsp`, `eslint` [`b223e86`](https://github.com/es-shims/globalThis/commit/b223e86d0868efb1f0c966370ff2f822516d6956) -- [Tests] fix linting; remove parallelshell [`271b329`](https://github.com/es-shims/globalThis/commit/271b329d174b94c08913060752a2e9f9116fe5b8) -- [Deps] update `function-bind`, `object-keys` [`002d0c5`](https://github.com/es-shims/globalThis/commit/002d0c5685a83f97e014a8a07134eb621794c649) -- Only apps should have lockfiles [`960f1d0`](https://github.com/es-shims/globalThis/commit/960f1d00598cbba5427849c863eb10b8de82fb1b) -- [Tests] on `node` `v10.8` [`37fad9d`](https://github.com/es-shims/globalThis/commit/37fad9db9860c654efe0a32ec187f21730d5fed8) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config` [`df28dfe`](https://github.com/es-shims/globalThis/commit/df28dfe7f0daf3db95a536a6ce64062bd706185d) -- [New] add `auto` entry point [`86eb2ab`](https://github.com/es-shims/globalThis/commit/86eb2ab4c4dc2babff20ac436cf7fb7f8da7d2f2) -- [Dev Deps] update `eslint` [`1bdc1aa`](https://github.com/es-shims/globalThis/commit/1bdc1aacfb94dcdc7bb61688c7634c435012e35d) -- [Deps] update `object-keys` [`72cdbf5`](https://github.com/es-shims/globalThis/commit/72cdbf596b16103ee711d52b2b645b42efc08c51) -- Update most common usage to invoke the function upon being required [`5026296`](https://github.com/es-shims/globalThis/commit/502629660da2c21cfb0f8ca233e2b9d427c052fe) diff --git a/build_vtk_bundle/node_modules/globalthis/LICENSE b/build_vtk_bundle/node_modules/globalthis/LICENSE deleted file mode 100644 index 44f679ad..00000000 --- a/build_vtk_bundle/node_modules/globalthis/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/globalthis/README.md b/build_vtk_bundle/node_modules/globalthis/README.md deleted file mode 100644 index 6abffa03..00000000 --- a/build_vtk_bundle/node_modules/globalthis/README.md +++ /dev/null @@ -1,70 +0,0 @@ -# globalThis [![Version Badge][npm-version-svg]][npm-url] - -[![github actions][actions-image]][actions-url] -[![coverage][codecov-image]][codecov-url] -[![dependency status][deps-svg]][deps-url] -[![dev dependency status][dev-deps-svg]][dev-deps-url] -[![License][license-image]][license-url] -[![Downloads][downloads-image]][downloads-url] - -[![npm badge][npm-badge-png]][npm-url] - -An ECMAScript spec-compliant polyfill/shim for `globalThis`. Invoke its "shim" method to shim `globalThis` if it is unavailable. - -This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec proposal](https://github.com/tc39/proposal-global). - -Most common usage: -```js -var globalThis = require('globalthis')(); // returns native globalThis if compliant - /* or */ -var globalThis = require('globalthis/polyfill')(); // returns native globalThis if compliant -``` - -## Example - -```js -var assert = require('assert'); - -// the below function is not CSP-compliant, but reliably gets the -// global object in sloppy mode in every engine. -var getGlobal = Function('return this'); - -assert.equal(globalThis, getGlobal()); -``` - -```js -/* when `globalThis` is not present */ -var shimmedGlobal = require('globalthis').shim(); - /* or */ -var shimmedGlobal = require('globalthis/shim')(); - -assert.equal(shimmedGlobal, globalThis); -assert.equal(shimmedGlobal, getGlobal()); -``` - -```js -/* when `globalThis` is present */ -var shimmedGlobal = require('globalthis').shim(); - -assert.equal(shimmedGlobal, globalThis); -assert.equal(shimmedGlobal, getGlobal()); -``` - -## Tests -Simply clone the repo, `npm install`, and run `npm test` - -[npm-url]: https://npmjs.org/package/globalthis -[npm-version-svg]: https://versionbadg.es/ljharb/globalThis.svg -[deps-svg]: https://david-dm.org/ljharb/globalThis.svg?theme=shields.io -[deps-url]: https://david-dm.org/ljharb/globalThis -[dev-deps-svg]: https://david-dm.org/ljharb/globalThis/dev-status.svg?theme=shields.io -[dev-deps-url]: https://david-dm.org/ljharb/globalThis#info=devDependencies -[npm-badge-png]: https://nodei.co/npm/globalthis.png?downloads=true&stars=true -[license-image]: https://img.shields.io/npm/l/globalthis.svg -[license-url]: LICENSE -[downloads-image]: https://img.shields.io/npm/dm/globalthis.svg -[downloads-url]: https://npm-stat.com/charts.html?package=globalthis -[codecov-image]: https://codecov.io/gh/es-shims/globalThis/branch/main/graphs/badge.svg -[codecov-url]: https://app.codecov.io/gh/es-shims/globalThis/ -[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/globalThis -[actions-url]: https://github.com/es-shims/globalThis/actions diff --git a/build_vtk_bundle/node_modules/globalthis/auto.js b/build_vtk_bundle/node_modules/globalthis/auto.js deleted file mode 100644 index 8ebf606c..00000000 --- a/build_vtk_bundle/node_modules/globalthis/auto.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -require('./shim')(); diff --git a/build_vtk_bundle/node_modules/globalthis/implementation.browser.js b/build_vtk_bundle/node_modules/globalthis/implementation.browser.js deleted file mode 100644 index 746a274d..00000000 --- a/build_vtk_bundle/node_modules/globalthis/implementation.browser.js +++ /dev/null @@ -1,11 +0,0 @@ -/* eslint no-negated-condition: 0, no-new-func: 0 */ - -'use strict'; - -if (typeof self !== 'undefined') { - module.exports = self; -} else if (typeof window !== 'undefined') { - module.exports = window; -} else { - module.exports = Function('return this')(); -} diff --git a/build_vtk_bundle/node_modules/globalthis/implementation.js b/build_vtk_bundle/node_modules/globalthis/implementation.js deleted file mode 100644 index 46b8ceb3..00000000 --- a/build_vtk_bundle/node_modules/globalthis/implementation.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = global; diff --git a/build_vtk_bundle/node_modules/globalthis/index.js b/build_vtk_bundle/node_modules/globalthis/index.js deleted file mode 100644 index 7c73cef2..00000000 --- a/build_vtk_bundle/node_modules/globalthis/index.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; - -var defineProperties = require('define-properties'); - -var implementation = require('./implementation'); -var getPolyfill = require('./polyfill'); -var shim = require('./shim'); - -var polyfill = getPolyfill(); - -var getGlobal = function () { return polyfill; }; - -defineProperties(getGlobal, { - getPolyfill: getPolyfill, - implementation: implementation, - shim: shim -}); - -module.exports = getGlobal; diff --git a/build_vtk_bundle/node_modules/globalthis/package.json b/build_vtk_bundle/node_modules/globalthis/package.json deleted file mode 100644 index 3750c43d..00000000 --- a/build_vtk_bundle/node_modules/globalthis/package.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "name": "globalthis", - "version": "1.0.3", - "author": "Jordan Harband ", - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "description": "ECMAScript spec-compliant polyfill/shim for `globalThis`", - "license": "MIT", - "main": "index.js", - "browser": { - "./implementation": "./implementation.browser.js" - }, - "scripts": { - "prepack": "npmignore --auto --commentLines=autogenerated", - "prepublishOnly": "safe-publish-latest && npm run build", - "prepublish": "not-in-publish || npm run prepublishOnly", - "pretest": "npm run lint", - "test": "npm run --silent tests-only", - "posttest": "aud --production", - "tests-only": "nyc tape 'test/**/*.js'", - "lint": "eslint --ext=js,mjs .", - "postlint": "es-shim-api --bound --property", - "build": "mkdir -p dist && browserify browserShim.js > dist/browser.js", - "version": "auto-changelog && git add CHANGELOG.md", - "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" - }, - "repository": { - "type": "git", - "url": "git://github.com/ljharb/System.global.git" - }, - "keywords": [ - "window", - "self", - "global", - "globalThis", - "System.global", - "global object", - "global this value", - "ECMAScript", - "es-shim API", - "polyfill", - "shim" - ], - "dependencies": { - "define-properties": "^1.1.3" - }, - "devDependencies": { - "@es-shims/api": "^2.2.3", - "@ljharb/eslint-config": "^21.0.0", - "aud": "^2.0.0", - "auto-changelog": "^2.4.0", - "browserify": "^16.5.2", - "eslint": "=8.8.0", - "for-each": "^0.3.3", - "in-publish": "^2.0.1", - "is": "^3.3.0", - "nyc": "^10.3.2", - "safe-publish-latest": "^2.0.0", - "tape": "^5.5.3" - }, - "testling": { - "files": "test/index.js", - "browsers": [ - "iexplore/6.0..latest", - "firefox/3.0..6.0", - "firefox/15.0..latest", - "firefox/nightly", - "chrome/4.0..10.0", - "chrome/20.0..latest", - "chrome/canary", - "opera/10.0..latest", - "opera/next", - "safari/4.0..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2" - ] - }, - "engines": { - "node": ">= 0.4" - }, - "auto-changelog": { - "output": "CHANGELOG.md", - "template": "keepachangelog", - "unreleased": false, - "commitLimit": false, - "backfillLimit": false, - "hideCredit": true - }, - "publishConfig": { - "ignore": [ - "browserShim.js", - ".github/workflows" - ] - } -} diff --git a/build_vtk_bundle/node_modules/globalthis/polyfill.js b/build_vtk_bundle/node_modules/globalthis/polyfill.js deleted file mode 100644 index e2e706bd..00000000 --- a/build_vtk_bundle/node_modules/globalthis/polyfill.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -var implementation = require('./implementation'); - -module.exports = function getPolyfill() { - if (typeof global !== 'object' || !global || global.Math !== Math || global.Array !== Array) { - return implementation; - } - return global; -}; diff --git a/build_vtk_bundle/node_modules/globalthis/shim.js b/build_vtk_bundle/node_modules/globalthis/shim.js deleted file mode 100644 index 7ccf455d..00000000 --- a/build_vtk_bundle/node_modules/globalthis/shim.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; - -var define = require('define-properties'); -var getPolyfill = require('./polyfill'); - -module.exports = function shimGlobal() { - var polyfill = getPolyfill(); - if (define.supportsDescriptors) { - var descriptor = Object.getOwnPropertyDescriptor(polyfill, 'globalThis'); - if (!descriptor || (descriptor.configurable && (descriptor.enumerable || !descriptor.writable || globalThis !== polyfill))) { // eslint-disable-line max-len - Object.defineProperty(polyfill, 'globalThis', { - configurable: true, - enumerable: false, - value: polyfill, - writable: true - }); - } - } else if (typeof globalThis !== 'object' || globalThis !== polyfill) { - polyfill.globalThis = polyfill; - } - return polyfill; -}; diff --git a/build_vtk_bundle/node_modules/globalthis/test/implementation.js b/build_vtk_bundle/node_modules/globalthis/test/implementation.js deleted file mode 100644 index 36f1275b..00000000 --- a/build_vtk_bundle/node_modules/globalthis/test/implementation.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -var implementation = require('../implementation'); -var test = require('tape'); -var runTests = require('./tests'); - -test('implementation', function (t) { - runTests(implementation, t); - - t.end(); -}); diff --git a/build_vtk_bundle/node_modules/globalthis/test/index.js b/build_vtk_bundle/node_modules/globalthis/test/index.js deleted file mode 100644 index dac0a10a..00000000 --- a/build_vtk_bundle/node_modules/globalthis/test/index.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -var systemGlobal = require('../'); -var test = require('tape'); -var runTests = require('./tests'); - -test('as a function', function (t) { - runTests(systemGlobal(), t); - - t.end(); -}); diff --git a/build_vtk_bundle/node_modules/globalthis/test/native.js b/build_vtk_bundle/node_modules/globalthis/test/native.js deleted file mode 100644 index 7a085ab0..00000000 --- a/build_vtk_bundle/node_modules/globalthis/test/native.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; - -var test = require('tape'); -var defineProperties = require('define-properties'); -var isEnumerable = Object.prototype.propertyIsEnumerable; - -var missing = {}; -var theGlobal = typeof globalThis === 'object' ? globalThis : missing; - -var runTests = require('./tests'); - -test('native', { todo: theGlobal === missing }, function (t) { - if (theGlobal !== missing) { - t.equal(typeof theGlobal, 'object', 'globalThis is an object'); - t.equal('globalThis' in theGlobal, true, 'globalThis is in globalThis'); - - t.test('enumerability', { skip: !defineProperties.supportsDescriptors }, function (et) { - et.equal(false, isEnumerable.call(theGlobal, 'globalThis'), 'globalThis is not enumerable'); - et.end(); - }); - - runTests(theGlobal, t); - } - - t.end(); -}); diff --git a/build_vtk_bundle/node_modules/globalthis/test/shimmed.js b/build_vtk_bundle/node_modules/globalthis/test/shimmed.js deleted file mode 100644 index 24b3f34d..00000000 --- a/build_vtk_bundle/node_modules/globalthis/test/shimmed.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict'; - -require('../auto'); - -var test = require('tape'); -var defineProperties = require('define-properties'); -var isEnumerable = Object.prototype.propertyIsEnumerable; - -var runTests = require('./tests'); - -test('shimmed', function (t) { - t.equal(typeof globalThis, 'object', 'globalThis is an object'); - t.equal('globalThis' in globalThis, true, 'globalThis is in globalThis'); - - t.test('enumerability', { skip: !defineProperties.supportsDescriptors }, function (et) { - et.equal(false, isEnumerable.call(globalThis, 'globalThis'), 'globalThis.globalThis is not enumerable'); - et.end(); - }); - - t.test('writability', { skip: !defineProperties.supportsDescriptors }, function (wt) { - var desc = Object.getOwnPropertyDescriptor(globalThis, 'globalThis'); - wt.equal(desc.writable, true, 'globalThis.globalThis is writable'); - wt.end(); - }); - - runTests(globalThis.globalThis, t); - - t.end(); -}); diff --git a/build_vtk_bundle/node_modules/globalthis/test/tests.js b/build_vtk_bundle/node_modules/globalthis/test/tests.js deleted file mode 100644 index 21896405..00000000 --- a/build_vtk_bundle/node_modules/globalthis/test/tests.js +++ /dev/null @@ -1,36 +0,0 @@ -/* jscs:disable requireUseStrict */ -/* eslint strict: 0, max-statements: 0 */ - -module.exports = function (theGlobal, t) { - t.equal(typeof theGlobal, 'object', 'is an object'); - - t.test('built-in globals', function (st) { - st.equal(theGlobal.Math, Math, 'Math is on the global'); - st.equal(theGlobal.JSON, JSON, 'JSON is on the global'); - st.equal(theGlobal.String, String, 'String is on the global'); - st.equal(theGlobal.Array, Array, 'Array is on the global'); - st.equal(theGlobal.Number, Number, 'Number is on the global'); - st.equal(theGlobal.Boolean, Boolean, 'Boolean is on the global'); - st.equal(theGlobal.Object, Object, 'Object is on the global'); - st.equal(theGlobal.Function, Function, 'Function is on the global'); - st.equal(theGlobal.Date, Date, 'Date is on the global'); - st.equal(theGlobal.RegExp, RegExp, 'RegExp is on the global'); - - if (typeof Symbol === 'undefined') { - st.comment('# SKIP Symbol is not supported'); - } else { - st.equal(theGlobal.Symbol, Symbol, 'Symbol is on the global'); - } - st.end(); - }); - - t.test('custom property', function (st) { - var key = 'random_custom_key_' + new Date().getTime(); - var semaphore = {}; - /* eslint no-eval: 1 */ - eval(key + ' = semaphore;'); - st.equal(theGlobal[key], semaphore, 'global variable ends up on the global object'); - delete theGlobal[key]; // eslint-disable-line no-param-reassign - st.end(); - }); -}; diff --git a/build_vtk_bundle/node_modules/gopd/.eslintrc b/build_vtk_bundle/node_modules/gopd/.eslintrc deleted file mode 100644 index e2550c0f..00000000 --- a/build_vtk_bundle/node_modules/gopd/.eslintrc +++ /dev/null @@ -1,16 +0,0 @@ -{ - "root": true, - - "extends": "@ljharb", - - "rules": { - "func-style": [2, "declaration"], - "id-length": 0, - "multiline-comment-style": 0, - "new-cap": [2, { - "capIsNewExceptions": [ - "GetIntrinsic", - ], - }], - }, -} diff --git a/build_vtk_bundle/node_modules/gopd/.github/FUNDING.yml b/build_vtk_bundle/node_modules/gopd/.github/FUNDING.yml deleted file mode 100644 index 94a44a8e..00000000 --- a/build_vtk_bundle/node_modules/gopd/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: [ljharb] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: npm/gopd -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/build_vtk_bundle/node_modules/gopd/CHANGELOG.md b/build_vtk_bundle/node_modules/gopd/CHANGELOG.md deleted file mode 100644 index 87f5727f..00000000 --- a/build_vtk_bundle/node_modules/gopd/CHANGELOG.md +++ /dev/null @@ -1,45 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [v1.2.0](https://github.com/ljharb/gopd/compare/v1.1.0...v1.2.0) - 2024-12-03 - -### Commits - -- [New] add `gOPD` entry point; remove `get-intrinsic` [`5b61232`](https://github.com/ljharb/gopd/commit/5b61232dedea4591a314bcf16101b1961cee024e) - -## [v1.1.0](https://github.com/ljharb/gopd/compare/v1.0.1...v1.1.0) - 2024-11-29 - -### Commits - -- [New] add types [`f585e39`](https://github.com/ljharb/gopd/commit/f585e397886d270e4ba84e53d226e4f9ca2eb0e6) -- [Dev Deps] update `@ljharb/eslint-config`, `auto-changelog`, `tape` [`0b8e4fd`](https://github.com/ljharb/gopd/commit/0b8e4fded64397a7726a9daa144a6cc9a5e2edfa) -- [Dev Deps] update `aud`, `npmignore`, `tape` [`48378b2`](https://github.com/ljharb/gopd/commit/48378b2443f09a4f7efbd0fb6c3ee845a6cabcf3) -- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`78099ee`](https://github.com/ljharb/gopd/commit/78099eeed41bfdc134c912280483689cc8861c31) -- [Tests] replace `aud` with `npm audit` [`4e0d0ac`](https://github.com/ljharb/gopd/commit/4e0d0ac47619d24a75318a8e1f543ee04b2a2632) -- [meta] add missing `engines.node` [`1443316`](https://github.com/ljharb/gopd/commit/14433165d07835c680155b3dfd62d9217d735eca) -- [Deps] update `get-intrinsic` [`eee5f51`](https://github.com/ljharb/gopd/commit/eee5f51769f3dbaf578b70e2a3199116b01aa670) -- [Deps] update `get-intrinsic` [`550c378`](https://github.com/ljharb/gopd/commit/550c3780e3a9c77b62565712a001b4ed64ea61f5) -- [Dev Deps] add missing peer dep [`8c2ecf8`](https://github.com/ljharb/gopd/commit/8c2ecf848122e4e30abfc5b5086fb48b390dce75) - -## [v1.0.1](https://github.com/ljharb/gopd/compare/v1.0.0...v1.0.1) - 2022-11-01 - -### Commits - -- [Fix] actually export gOPD instead of dP [`4b624bf`](https://github.com/ljharb/gopd/commit/4b624bfbeff788c5e3ff16d9443a83627847234f) - -## v1.0.0 - 2022-11-01 - -### Commits - -- Initial implementation, tests, readme [`0911e01`](https://github.com/ljharb/gopd/commit/0911e012cd642092bd88b732c161c58bf4f20bea) -- Initial commit [`b84e33f`](https://github.com/ljharb/gopd/commit/b84e33f5808a805ac57ff88d4247ad935569acbe) -- [actions] add reusable workflows [`12ae28a`](https://github.com/ljharb/gopd/commit/12ae28ae5f50f86e750215b6e2188901646d0119) -- npm init [`280118b`](https://github.com/ljharb/gopd/commit/280118badb45c80b4483836b5cb5315bddf6e582) -- [meta] add `auto-changelog` [`bb78de5`](https://github.com/ljharb/gopd/commit/bb78de5639a180747fb290c28912beaaf1615709) -- [meta] create FUNDING.yml; add `funding` in package.json [`11c22e6`](https://github.com/ljharb/gopd/commit/11c22e6355bb01f24e7fac4c9bb3055eb5b25002) -- [meta] use `npmignore` to autogenerate an npmignore file [`4f4537a`](https://github.com/ljharb/gopd/commit/4f4537a843b39f698c52f072845092e6fca345bb) -- Only apps should have lockfiles [`c567022`](https://github.com/ljharb/gopd/commit/c567022a18573aa7951cf5399445d9840e23e98b) diff --git a/build_vtk_bundle/node_modules/gopd/LICENSE b/build_vtk_bundle/node_modules/gopd/LICENSE deleted file mode 100644 index 6abfe143..00000000 --- a/build_vtk_bundle/node_modules/gopd/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2022 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/gopd/README.md b/build_vtk_bundle/node_modules/gopd/README.md deleted file mode 100644 index 784e56a0..00000000 --- a/build_vtk_bundle/node_modules/gopd/README.md +++ /dev/null @@ -1,40 +0,0 @@ -# gopd [![Version Badge][npm-version-svg]][package-url] - -[![github actions][actions-image]][actions-url] -[![coverage][codecov-image]][codecov-url] -[![License][license-image]][license-url] -[![Downloads][downloads-image]][downloads-url] - -[![npm badge][npm-badge-png]][package-url] - -`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation. - -## Usage - -```javascript -var gOPD = require('gopd'); -var assert = require('assert'); - -if (gOPD) { - assert.equal(typeof gOPD, 'function', 'descriptors supported'); - // use gOPD like Object.getOwnPropertyDescriptor here -} else { - assert.ok(!gOPD, 'descriptors not supported'); -} -``` - -[package-url]: https://npmjs.org/package/gopd -[npm-version-svg]: https://versionbadg.es/ljharb/gopd.svg -[deps-svg]: https://david-dm.org/ljharb/gopd.svg -[deps-url]: https://david-dm.org/ljharb/gopd -[dev-deps-svg]: https://david-dm.org/ljharb/gopd/dev-status.svg -[dev-deps-url]: https://david-dm.org/ljharb/gopd#info=devDependencies -[npm-badge-png]: https://nodei.co/npm/gopd.png?downloads=true&stars=true -[license-image]: https://img.shields.io/npm/l/gopd.svg -[license-url]: LICENSE -[downloads-image]: https://img.shields.io/npm/dm/gopd.svg -[downloads-url]: https://npm-stat.com/charts.html?package=gopd -[codecov-image]: https://codecov.io/gh/ljharb/gopd/branch/main/graphs/badge.svg -[codecov-url]: https://app.codecov.io/gh/ljharb/gopd/ -[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/gopd -[actions-url]: https://github.com/ljharb/gopd/actions diff --git a/build_vtk_bundle/node_modules/gopd/gOPD.d.ts b/build_vtk_bundle/node_modules/gopd/gOPD.d.ts deleted file mode 100644 index def48a3c..00000000 --- a/build_vtk_bundle/node_modules/gopd/gOPD.d.ts +++ /dev/null @@ -1 +0,0 @@ -export = Object.getOwnPropertyDescriptor; diff --git a/build_vtk_bundle/node_modules/gopd/gOPD.js b/build_vtk_bundle/node_modules/gopd/gOPD.js deleted file mode 100644 index cf9616c4..00000000 --- a/build_vtk_bundle/node_modules/gopd/gOPD.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -/** @type {import('./gOPD')} */ -module.exports = Object.getOwnPropertyDescriptor; diff --git a/build_vtk_bundle/node_modules/gopd/index.d.ts b/build_vtk_bundle/node_modules/gopd/index.d.ts deleted file mode 100644 index e228065f..00000000 --- a/build_vtk_bundle/node_modules/gopd/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -declare function gOPD(obj: O, prop: K): PropertyDescriptor | undefined; - -declare const fn: typeof gOPD | undefined | null; - -export = fn; \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/gopd/index.js b/build_vtk_bundle/node_modules/gopd/index.js deleted file mode 100644 index a4081b01..00000000 --- a/build_vtk_bundle/node_modules/gopd/index.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -/** @type {import('.')} */ -var $gOPD = require('./gOPD'); - -if ($gOPD) { - try { - $gOPD([], 'length'); - } catch (e) { - // IE 8 has a broken gOPD - $gOPD = null; - } -} - -module.exports = $gOPD; diff --git a/build_vtk_bundle/node_modules/gopd/package.json b/build_vtk_bundle/node_modules/gopd/package.json deleted file mode 100644 index 01c5ffa6..00000000 --- a/build_vtk_bundle/node_modules/gopd/package.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "name": "gopd", - "version": "1.2.0", - "description": "`Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation.", - "main": "index.js", - "exports": { - ".": "./index.js", - "./gOPD": "./gOPD.js", - "./package.json": "./package.json" - }, - "sideEffects": false, - "scripts": { - "prepack": "npmignore --auto --commentLines=autogenerated", - "prepublishOnly": "safe-publish-latest", - "prepublish": "not-in-publish || npm run prepublishOnly", - "prelint": "tsc -p . && attw -P", - "lint": "eslint --ext=js,mjs .", - "postlint": "evalmd README.md", - "pretest": "npm run lint", - "tests-only": "tape 'test/**/*.js'", - "test": "npm run tests-only", - "posttest": "npx npm@'>=10.2' audit --production", - "version": "auto-changelog && git add CHANGELOG.md", - "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/ljharb/gopd.git" - }, - "keywords": [ - "ecmascript", - "javascript", - "getownpropertydescriptor", - "property", - "descriptor" - ], - "author": "Jordan Harband ", - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "license": "MIT", - "bugs": { - "url": "https://github.com/ljharb/gopd/issues" - }, - "homepage": "https://github.com/ljharb/gopd#readme", - "devDependencies": { - "@arethetypeswrong/cli": "^0.17.0", - "@ljharb/eslint-config": "^21.1.1", - "@ljharb/tsconfig": "^0.2.0", - "@types/tape": "^5.6.5", - "auto-changelog": "^2.5.0", - "encoding": "^0.1.13", - "eslint": "=8.8.0", - "evalmd": "^0.0.19", - "in-publish": "^2.0.1", - "npmignore": "^0.3.1", - "safe-publish-latest": "^2.0.0", - "tape": "^5.9.0", - "typescript": "next" - }, - "auto-changelog": { - "output": "CHANGELOG.md", - "template": "keepachangelog", - "unreleased": false, - "commitLimit": false, - "backfillLimit": false, - "hideCredit": true - }, - "publishConfig": { - "ignore": [ - ".github/workflows" - ] - }, - "engines": { - "node": ">= 0.4" - } -} diff --git a/build_vtk_bundle/node_modules/gopd/test/index.js b/build_vtk_bundle/node_modules/gopd/test/index.js deleted file mode 100644 index 6f43453a..00000000 --- a/build_vtk_bundle/node_modules/gopd/test/index.js +++ /dev/null @@ -1,36 +0,0 @@ -'use strict'; - -var test = require('tape'); -var gOPD = require('../'); - -test('gOPD', function (t) { - t.test('supported', { skip: !gOPD }, function (st) { - st.equal(typeof gOPD, 'function', 'is a function'); - - var obj = { x: 1 }; - st.ok('x' in obj, 'property exists'); - - // @ts-expect-error TS can't figure out narrowing from `skip` - var desc = gOPD(obj, 'x'); - st.deepEqual( - desc, - { - configurable: true, - enumerable: true, - value: 1, - writable: true - }, - 'descriptor is as expected' - ); - - st.end(); - }); - - t.test('not supported', { skip: !!gOPD }, function (st) { - st.notOk(gOPD, 'is falsy'); - - st.end(); - }); - - t.end(); -}); diff --git a/build_vtk_bundle/node_modules/gopd/tsconfig.json b/build_vtk_bundle/node_modules/gopd/tsconfig.json deleted file mode 100644 index d9a6668c..00000000 --- a/build_vtk_bundle/node_modules/gopd/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "@ljharb/tsconfig", - "compilerOptions": { - "target": "es2021", - }, - "exclude": [ - "coverage", - ], -} diff --git a/build_vtk_bundle/node_modules/graceful-fs/LICENSE b/build_vtk_bundle/node_modules/graceful-fs/LICENSE deleted file mode 100644 index e906a25a..00000000 --- a/build_vtk_bundle/node_modules/graceful-fs/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) 2011-2022 Isaac Z. Schlueter, Ben Noordhuis, and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/build_vtk_bundle/node_modules/graceful-fs/README.md b/build_vtk_bundle/node_modules/graceful-fs/README.md deleted file mode 100644 index 82d6e4da..00000000 --- a/build_vtk_bundle/node_modules/graceful-fs/README.md +++ /dev/null @@ -1,143 +0,0 @@ -# graceful-fs - -graceful-fs functions as a drop-in replacement for the fs module, -making various improvements. - -The improvements are meant to normalize behavior across different -platforms and environments, and to make filesystem access more -resilient to errors. - -## Improvements over [fs module](https://nodejs.org/api/fs.html) - -* Queues up `open` and `readdir` calls, and retries them once - something closes if there is an EMFILE error from too many file - descriptors. -* fixes `lchmod` for Node versions prior to 0.6.2. -* implements `fs.lutimes` if possible. Otherwise it becomes a noop. -* ignores `EINVAL` and `EPERM` errors in `chown`, `fchown` or - `lchown` if the user isn't root. -* makes `lchmod` and `lchown` become noops, if not available. -* retries reading a file if `read` results in EAGAIN error. - -On Windows, it retries renaming a file for up to one second if `EACCESS` -or `EPERM` error occurs, likely because antivirus software has locked -the directory. - -## USAGE - -```javascript -// use just like fs -var fs = require('graceful-fs') - -// now go and do stuff with it... -fs.readFile('some-file-or-whatever', (err, data) => { - // Do stuff here. -}) -``` - -## Sync methods - -This module cannot intercept or handle `EMFILE` or `ENFILE` errors from sync -methods. If you use sync methods which open file descriptors then you are -responsible for dealing with any errors. - -This is a known limitation, not a bug. - -## Global Patching - -If you want to patch the global fs module (or any other fs-like -module) you can do this: - -```javascript -// Make sure to read the caveat below. -var realFs = require('fs') -var gracefulFs = require('graceful-fs') -gracefulFs.gracefulify(realFs) -``` - -This should only ever be done at the top-level application layer, in -order to delay on EMFILE errors from any fs-using dependencies. You -should **not** do this in a library, because it can cause unexpected -delays in other parts of the program. - -## Changes - -This module is fairly stable at this point, and used by a lot of -things. That being said, because it implements a subtle behavior -change in a core part of the node API, even modest changes can be -extremely breaking, and the versioning is thus biased towards -bumping the major when in doubt. - -The main change between major versions has been switching between -providing a fully-patched `fs` module vs monkey-patching the node core -builtin, and the approach by which a non-monkey-patched `fs` was -created. - -The goal is to trade `EMFILE` errors for slower fs operations. So, if -you try to open a zillion files, rather than crashing, `open` -operations will be queued up and wait for something else to `close`. - -There are advantages to each approach. Monkey-patching the fs means -that no `EMFILE` errors can possibly occur anywhere in your -application, because everything is using the same core `fs` module, -which is patched. However, it can also obviously cause undesirable -side-effects, especially if the module is loaded multiple times. - -Implementing a separate-but-identical patched `fs` module is more -surgical (and doesn't run the risk of patching multiple times), but -also imposes the challenge of keeping in sync with the core module. - -The current approach loads the `fs` module, and then creates a -lookalike object that has all the same methods, except a few that are -patched. It is safe to use in all versions of Node from 0.8 through -7.0. - -### v4 - -* Do not monkey-patch the fs module. This module may now be used as a - drop-in dep, and users can opt into monkey-patching the fs builtin - if their app requires it. - -### v3 - -* Monkey-patch fs, because the eval approach no longer works on recent - node. -* fixed possible type-error throw if rename fails on windows -* verify that we *never* get EMFILE errors -* Ignore ENOSYS from chmod/chown -* clarify that graceful-fs must be used as a drop-in - -### v2.1.0 - -* Use eval rather than monkey-patching fs. -* readdir: Always sort the results -* win32: requeue a file if error has an OK status - -### v2.0 - -* A return to monkey patching -* wrap process.cwd - -### v1.1 - -* wrap readFile -* Wrap fs.writeFile. -* readdir protection -* Don't clobber the fs builtin -* Handle fs.read EAGAIN errors by trying again -* Expose the curOpen counter -* No-op lchown/lchmod if not implemented -* fs.rename patch only for win32 -* Patch fs.rename to handle AV software on Windows -* Close #4 Chown should not fail on einval or eperm if non-root -* Fix isaacs/fstream#1 Only wrap fs one time -* Fix #3 Start at 1024 max files, then back off on EMFILE -* lutimes that doens't blow up on Linux -* A full on-rewrite using a queue instead of just swallowing the EMFILE error -* Wrap Read/Write streams as well - -### 1.0 - -* Update engines for node 0.6 -* Be lstat-graceful on Windows -* first diff --git a/build_vtk_bundle/node_modules/graceful-fs/clone.js b/build_vtk_bundle/node_modules/graceful-fs/clone.js deleted file mode 100644 index dff3cc8c..00000000 --- a/build_vtk_bundle/node_modules/graceful-fs/clone.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict' - -module.exports = clone - -var getPrototypeOf = Object.getPrototypeOf || function (obj) { - return obj.__proto__ -} - -function clone (obj) { - if (obj === null || typeof obj !== 'object') - return obj - - if (obj instanceof Object) - var copy = { __proto__: getPrototypeOf(obj) } - else - var copy = Object.create(null) - - Object.getOwnPropertyNames(obj).forEach(function (key) { - Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key)) - }) - - return copy -} diff --git a/build_vtk_bundle/node_modules/graceful-fs/graceful-fs.js b/build_vtk_bundle/node_modules/graceful-fs/graceful-fs.js deleted file mode 100644 index 8d5b89e4..00000000 --- a/build_vtk_bundle/node_modules/graceful-fs/graceful-fs.js +++ /dev/null @@ -1,448 +0,0 @@ -var fs = require('fs') -var polyfills = require('./polyfills.js') -var legacy = require('./legacy-streams.js') -var clone = require('./clone.js') - -var util = require('util') - -/* istanbul ignore next - node 0.x polyfill */ -var gracefulQueue -var previousSymbol - -/* istanbul ignore else - node 0.x polyfill */ -if (typeof Symbol === 'function' && typeof Symbol.for === 'function') { - gracefulQueue = Symbol.for('graceful-fs.queue') - // This is used in testing by future versions - previousSymbol = Symbol.for('graceful-fs.previous') -} else { - gracefulQueue = '___graceful-fs.queue' - previousSymbol = '___graceful-fs.previous' -} - -function noop () {} - -function publishQueue(context, queue) { - Object.defineProperty(context, gracefulQueue, { - get: function() { - return queue - } - }) -} - -var debug = noop -if (util.debuglog) - debug = util.debuglog('gfs4') -else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) - debug = function() { - var m = util.format.apply(util, arguments) - m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ') - console.error(m) - } - -// Once time initialization -if (!fs[gracefulQueue]) { - // This queue can be shared by multiple loaded instances - var queue = global[gracefulQueue] || [] - publishQueue(fs, queue) - - // Patch fs.close/closeSync to shared queue version, because we need - // to retry() whenever a close happens *anywhere* in the program. - // This is essential when multiple graceful-fs instances are - // in play at the same time. - fs.close = (function (fs$close) { - function close (fd, cb) { - return fs$close.call(fs, fd, function (err) { - // This function uses the graceful-fs shared queue - if (!err) { - resetQueue() - } - - if (typeof cb === 'function') - cb.apply(this, arguments) - }) - } - - Object.defineProperty(close, previousSymbol, { - value: fs$close - }) - return close - })(fs.close) - - fs.closeSync = (function (fs$closeSync) { - function closeSync (fd) { - // This function uses the graceful-fs shared queue - fs$closeSync.apply(fs, arguments) - resetQueue() - } - - Object.defineProperty(closeSync, previousSymbol, { - value: fs$closeSync - }) - return closeSync - })(fs.closeSync) - - if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) { - process.on('exit', function() { - debug(fs[gracefulQueue]) - require('assert').equal(fs[gracefulQueue].length, 0) - }) - } -} - -if (!global[gracefulQueue]) { - publishQueue(global, fs[gracefulQueue]); -} - -module.exports = patch(clone(fs)) -if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) { - module.exports = patch(fs) - fs.__patched = true; -} - -function patch (fs) { - // Everything that references the open() function needs to be in here - polyfills(fs) - fs.gracefulify = patch - - fs.createReadStream = createReadStream - fs.createWriteStream = createWriteStream - var fs$readFile = fs.readFile - fs.readFile = readFile - function readFile (path, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$readFile(path, options, cb) - - function go$readFile (path, options, cb, startTime) { - return fs$readFile(path, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$readFile, [path, options, cb], err, startTime || Date.now(), Date.now()]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - } - }) - } - } - - var fs$writeFile = fs.writeFile - fs.writeFile = writeFile - function writeFile (path, data, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$writeFile(path, data, options, cb) - - function go$writeFile (path, data, options, cb, startTime) { - return fs$writeFile(path, data, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$writeFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - } - }) - } - } - - var fs$appendFile = fs.appendFile - if (fs$appendFile) - fs.appendFile = appendFile - function appendFile (path, data, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - return go$appendFile(path, data, options, cb) - - function go$appendFile (path, data, options, cb, startTime) { - return fs$appendFile(path, data, options, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$appendFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - } - }) - } - } - - var fs$copyFile = fs.copyFile - if (fs$copyFile) - fs.copyFile = copyFile - function copyFile (src, dest, flags, cb) { - if (typeof flags === 'function') { - cb = flags - flags = 0 - } - return go$copyFile(src, dest, flags, cb) - - function go$copyFile (src, dest, flags, cb, startTime) { - return fs$copyFile(src, dest, flags, function (err) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$copyFile, [src, dest, flags, cb], err, startTime || Date.now(), Date.now()]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - } - }) - } - } - - var fs$readdir = fs.readdir - fs.readdir = readdir - var noReaddirOptionVersions = /^v[0-5]\./ - function readdir (path, options, cb) { - if (typeof options === 'function') - cb = options, options = null - - var go$readdir = noReaddirOptionVersions.test(process.version) - ? function go$readdir (path, options, cb, startTime) { - return fs$readdir(path, fs$readdirCallback( - path, options, cb, startTime - )) - } - : function go$readdir (path, options, cb, startTime) { - return fs$readdir(path, options, fs$readdirCallback( - path, options, cb, startTime - )) - } - - return go$readdir(path, options, cb) - - function fs$readdirCallback (path, options, cb, startTime) { - return function (err, files) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([ - go$readdir, - [path, options, cb], - err, - startTime || Date.now(), - Date.now() - ]) - else { - if (files && files.sort) - files.sort() - - if (typeof cb === 'function') - cb.call(this, err, files) - } - } - } - } - - if (process.version.substr(0, 4) === 'v0.8') { - var legStreams = legacy(fs) - ReadStream = legStreams.ReadStream - WriteStream = legStreams.WriteStream - } - - var fs$ReadStream = fs.ReadStream - if (fs$ReadStream) { - ReadStream.prototype = Object.create(fs$ReadStream.prototype) - ReadStream.prototype.open = ReadStream$open - } - - var fs$WriteStream = fs.WriteStream - if (fs$WriteStream) { - WriteStream.prototype = Object.create(fs$WriteStream.prototype) - WriteStream.prototype.open = WriteStream$open - } - - Object.defineProperty(fs, 'ReadStream', { - get: function () { - return ReadStream - }, - set: function (val) { - ReadStream = val - }, - enumerable: true, - configurable: true - }) - Object.defineProperty(fs, 'WriteStream', { - get: function () { - return WriteStream - }, - set: function (val) { - WriteStream = val - }, - enumerable: true, - configurable: true - }) - - // legacy names - var FileReadStream = ReadStream - Object.defineProperty(fs, 'FileReadStream', { - get: function () { - return FileReadStream - }, - set: function (val) { - FileReadStream = val - }, - enumerable: true, - configurable: true - }) - var FileWriteStream = WriteStream - Object.defineProperty(fs, 'FileWriteStream', { - get: function () { - return FileWriteStream - }, - set: function (val) { - FileWriteStream = val - }, - enumerable: true, - configurable: true - }) - - function ReadStream (path, options) { - if (this instanceof ReadStream) - return fs$ReadStream.apply(this, arguments), this - else - return ReadStream.apply(Object.create(ReadStream.prototype), arguments) - } - - function ReadStream$open () { - var that = this - open(that.path, that.flags, that.mode, function (err, fd) { - if (err) { - if (that.autoClose) - that.destroy() - - that.emit('error', err) - } else { - that.fd = fd - that.emit('open', fd) - that.read() - } - }) - } - - function WriteStream (path, options) { - if (this instanceof WriteStream) - return fs$WriteStream.apply(this, arguments), this - else - return WriteStream.apply(Object.create(WriteStream.prototype), arguments) - } - - function WriteStream$open () { - var that = this - open(that.path, that.flags, that.mode, function (err, fd) { - if (err) { - that.destroy() - that.emit('error', err) - } else { - that.fd = fd - that.emit('open', fd) - } - }) - } - - function createReadStream (path, options) { - return new fs.ReadStream(path, options) - } - - function createWriteStream (path, options) { - return new fs.WriteStream(path, options) - } - - var fs$open = fs.open - fs.open = open - function open (path, flags, mode, cb) { - if (typeof mode === 'function') - cb = mode, mode = null - - return go$open(path, flags, mode, cb) - - function go$open (path, flags, mode, cb, startTime) { - return fs$open(path, flags, mode, function (err, fd) { - if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) - enqueue([go$open, [path, flags, mode, cb], err, startTime || Date.now(), Date.now()]) - else { - if (typeof cb === 'function') - cb.apply(this, arguments) - } - }) - } - } - - return fs -} - -function enqueue (elem) { - debug('ENQUEUE', elem[0].name, elem[1]) - fs[gracefulQueue].push(elem) - retry() -} - -// keep track of the timeout between retry() calls -var retryTimer - -// reset the startTime and lastTime to now -// this resets the start of the 60 second overall timeout as well as the -// delay between attempts so that we'll retry these jobs sooner -function resetQueue () { - var now = Date.now() - for (var i = 0; i < fs[gracefulQueue].length; ++i) { - // entries that are only a length of 2 are from an older version, don't - // bother modifying those since they'll be retried anyway. - if (fs[gracefulQueue][i].length > 2) { - fs[gracefulQueue][i][3] = now // startTime - fs[gracefulQueue][i][4] = now // lastTime - } - } - // call retry to make sure we're actively processing the queue - retry() -} - -function retry () { - // clear the timer and remove it to help prevent unintended concurrency - clearTimeout(retryTimer) - retryTimer = undefined - - if (fs[gracefulQueue].length === 0) - return - - var elem = fs[gracefulQueue].shift() - var fn = elem[0] - var args = elem[1] - // these items may be unset if they were added by an older graceful-fs - var err = elem[2] - var startTime = elem[3] - var lastTime = elem[4] - - // if we don't have a startTime we have no way of knowing if we've waited - // long enough, so go ahead and retry this item now - if (startTime === undefined) { - debug('RETRY', fn.name, args) - fn.apply(null, args) - } else if (Date.now() - startTime >= 60000) { - // it's been more than 60 seconds total, bail now - debug('TIMEOUT', fn.name, args) - var cb = args.pop() - if (typeof cb === 'function') - cb.call(null, err) - } else { - // the amount of time between the last attempt and right now - var sinceAttempt = Date.now() - lastTime - // the amount of time between when we first tried, and when we last tried - // rounded up to at least 1 - var sinceStart = Math.max(lastTime - startTime, 1) - // backoff. wait longer than the total time we've been retrying, but only - // up to a maximum of 100ms - var desiredDelay = Math.min(sinceStart * 1.2, 100) - // it's been long enough since the last retry, do it again - if (sinceAttempt >= desiredDelay) { - debug('RETRY', fn.name, args) - fn.apply(null, args.concat([startTime])) - } else { - // if we can't do this job yet, push it to the end of the queue - // and let the next iteration check again - fs[gracefulQueue].push(elem) - } - } - - // schedule our next run if one isn't already scheduled - if (retryTimer === undefined) { - retryTimer = setTimeout(retry, 0) - } -} diff --git a/build_vtk_bundle/node_modules/graceful-fs/legacy-streams.js b/build_vtk_bundle/node_modules/graceful-fs/legacy-streams.js deleted file mode 100644 index d617b50f..00000000 --- a/build_vtk_bundle/node_modules/graceful-fs/legacy-streams.js +++ /dev/null @@ -1,118 +0,0 @@ -var Stream = require('stream').Stream - -module.exports = legacy - -function legacy (fs) { - return { - ReadStream: ReadStream, - WriteStream: WriteStream - } - - function ReadStream (path, options) { - if (!(this instanceof ReadStream)) return new ReadStream(path, options); - - Stream.call(this); - - var self = this; - - this.path = path; - this.fd = null; - this.readable = true; - this.paused = false; - - this.flags = 'r'; - this.mode = 438; /*=0666*/ - this.bufferSize = 64 * 1024; - - options = options || {}; - - // Mixin options into this - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - - if (this.encoding) this.setEncoding(this.encoding); - - if (this.start !== undefined) { - if ('number' !== typeof this.start) { - throw TypeError('start must be a Number'); - } - if (this.end === undefined) { - this.end = Infinity; - } else if ('number' !== typeof this.end) { - throw TypeError('end must be a Number'); - } - - if (this.start > this.end) { - throw new Error('start must be <= end'); - } - - this.pos = this.start; - } - - if (this.fd !== null) { - process.nextTick(function() { - self._read(); - }); - return; - } - - fs.open(this.path, this.flags, this.mode, function (err, fd) { - if (err) { - self.emit('error', err); - self.readable = false; - return; - } - - self.fd = fd; - self.emit('open', fd); - self._read(); - }) - } - - function WriteStream (path, options) { - if (!(this instanceof WriteStream)) return new WriteStream(path, options); - - Stream.call(this); - - this.path = path; - this.fd = null; - this.writable = true; - - this.flags = 'w'; - this.encoding = 'binary'; - this.mode = 438; /*=0666*/ - this.bytesWritten = 0; - - options = options || {}; - - // Mixin options into this - var keys = Object.keys(options); - for (var index = 0, length = keys.length; index < length; index++) { - var key = keys[index]; - this[key] = options[key]; - } - - if (this.start !== undefined) { - if ('number' !== typeof this.start) { - throw TypeError('start must be a Number'); - } - if (this.start < 0) { - throw new Error('start must be >= zero'); - } - - this.pos = this.start; - } - - this.busy = false; - this._queue = []; - - if (this.fd === null) { - this._open = fs.open; - this._queue.push([this._open, this.path, this.flags, this.mode, undefined]); - this.flush(); - } - } -} diff --git a/build_vtk_bundle/node_modules/graceful-fs/package.json b/build_vtk_bundle/node_modules/graceful-fs/package.json deleted file mode 100644 index 87babf02..00000000 --- a/build_vtk_bundle/node_modules/graceful-fs/package.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "name": "graceful-fs", - "description": "A drop-in replacement for fs, making various improvements.", - "version": "4.2.11", - "repository": { - "type": "git", - "url": "https://github.com/isaacs/node-graceful-fs" - }, - "main": "graceful-fs.js", - "directories": { - "test": "test" - }, - "scripts": { - "preversion": "npm test", - "postversion": "npm publish", - "postpublish": "git push origin --follow-tags", - "test": "nyc --silent node test.js | tap -c -", - "posttest": "nyc report" - }, - "keywords": [ - "fs", - "module", - "reading", - "retry", - "retries", - "queue", - "error", - "errors", - "handling", - "EMFILE", - "EAGAIN", - "EINVAL", - "EPERM", - "EACCESS" - ], - "license": "ISC", - "devDependencies": { - "import-fresh": "^2.0.0", - "mkdirp": "^0.5.0", - "rimraf": "^2.2.8", - "tap": "^16.3.4" - }, - "files": [ - "fs.js", - "graceful-fs.js", - "legacy-streams.js", - "polyfills.js", - "clone.js" - ], - "tap": { - "reporter": "classic" - } -} diff --git a/build_vtk_bundle/node_modules/graceful-fs/polyfills.js b/build_vtk_bundle/node_modules/graceful-fs/polyfills.js deleted file mode 100644 index 453f1a9e..00000000 --- a/build_vtk_bundle/node_modules/graceful-fs/polyfills.js +++ /dev/null @@ -1,355 +0,0 @@ -var constants = require('constants') - -var origCwd = process.cwd -var cwd = null - -var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform - -process.cwd = function() { - if (!cwd) - cwd = origCwd.call(process) - return cwd -} -try { - process.cwd() -} catch (er) {} - -// This check is needed until node.js 12 is required -if (typeof process.chdir === 'function') { - var chdir = process.chdir - process.chdir = function (d) { - cwd = null - chdir.call(process, d) - } - if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir) -} - -module.exports = patch - -function patch (fs) { - // (re-)implement some things that are known busted or missing. - - // lchmod, broken prior to 0.6.2 - // back-port the fix here. - if (constants.hasOwnProperty('O_SYMLINK') && - process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) { - patchLchmod(fs) - } - - // lutimes implementation, or no-op - if (!fs.lutimes) { - patchLutimes(fs) - } - - // https://github.com/isaacs/node-graceful-fs/issues/4 - // Chown should not fail on einval or eperm if non-root. - // It should not fail on enosys ever, as this just indicates - // that a fs doesn't support the intended operation. - - fs.chown = chownFix(fs.chown) - fs.fchown = chownFix(fs.fchown) - fs.lchown = chownFix(fs.lchown) - - fs.chmod = chmodFix(fs.chmod) - fs.fchmod = chmodFix(fs.fchmod) - fs.lchmod = chmodFix(fs.lchmod) - - fs.chownSync = chownFixSync(fs.chownSync) - fs.fchownSync = chownFixSync(fs.fchownSync) - fs.lchownSync = chownFixSync(fs.lchownSync) - - fs.chmodSync = chmodFixSync(fs.chmodSync) - fs.fchmodSync = chmodFixSync(fs.fchmodSync) - fs.lchmodSync = chmodFixSync(fs.lchmodSync) - - fs.stat = statFix(fs.stat) - fs.fstat = statFix(fs.fstat) - fs.lstat = statFix(fs.lstat) - - fs.statSync = statFixSync(fs.statSync) - fs.fstatSync = statFixSync(fs.fstatSync) - fs.lstatSync = statFixSync(fs.lstatSync) - - // if lchmod/lchown do not exist, then make them no-ops - if (fs.chmod && !fs.lchmod) { - fs.lchmod = function (path, mode, cb) { - if (cb) process.nextTick(cb) - } - fs.lchmodSync = function () {} - } - if (fs.chown && !fs.lchown) { - fs.lchown = function (path, uid, gid, cb) { - if (cb) process.nextTick(cb) - } - fs.lchownSync = function () {} - } - - // on Windows, A/V software can lock the directory, causing this - // to fail with an EACCES or EPERM if the directory contains newly - // created files. Try again on failure, for up to 60 seconds. - - // Set the timeout this long because some Windows Anti-Virus, such as Parity - // bit9, may lock files for up to a minute, causing npm package install - // failures. Also, take care to yield the scheduler. Windows scheduling gives - // CPU to a busy looping process, which can cause the program causing the lock - // contention to be starved of CPU by node, so the contention doesn't resolve. - if (platform === "win32") { - fs.rename = typeof fs.rename !== 'function' ? fs.rename - : (function (fs$rename) { - function rename (from, to, cb) { - var start = Date.now() - var backoff = 0; - fs$rename(from, to, function CB (er) { - if (er - && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") - && Date.now() - start < 60000) { - setTimeout(function() { - fs.stat(to, function (stater, st) { - if (stater && stater.code === "ENOENT") - fs$rename(from, to, CB); - else - cb(er) - }) - }, backoff) - if (backoff < 100) - backoff += 10; - return; - } - if (cb) cb(er) - }) - } - if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename) - return rename - })(fs.rename) - } - - // if read() returns EAGAIN, then just try it again. - fs.read = typeof fs.read !== 'function' ? fs.read - : (function (fs$read) { - function read (fd, buffer, offset, length, position, callback_) { - var callback - if (callback_ && typeof callback_ === 'function') { - var eagCounter = 0 - callback = function (er, _, __) { - if (er && er.code === 'EAGAIN' && eagCounter < 10) { - eagCounter ++ - return fs$read.call(fs, fd, buffer, offset, length, position, callback) - } - callback_.apply(this, arguments) - } - } - return fs$read.call(fs, fd, buffer, offset, length, position, callback) - } - - // This ensures `util.promisify` works as it does for native `fs.read`. - if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read) - return read - })(fs.read) - - fs.readSync = typeof fs.readSync !== 'function' ? fs.readSync - : (function (fs$readSync) { return function (fd, buffer, offset, length, position) { - var eagCounter = 0 - while (true) { - try { - return fs$readSync.call(fs, fd, buffer, offset, length, position) - } catch (er) { - if (er.code === 'EAGAIN' && eagCounter < 10) { - eagCounter ++ - continue - } - throw er - } - } - }})(fs.readSync) - - function patchLchmod (fs) { - fs.lchmod = function (path, mode, callback) { - fs.open( path - , constants.O_WRONLY | constants.O_SYMLINK - , mode - , function (err, fd) { - if (err) { - if (callback) callback(err) - return - } - // prefer to return the chmod error, if one occurs, - // but still try to close, and report closing errors if they occur. - fs.fchmod(fd, mode, function (err) { - fs.close(fd, function(err2) { - if (callback) callback(err || err2) - }) - }) - }) - } - - fs.lchmodSync = function (path, mode) { - var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode) - - // prefer to return the chmod error, if one occurs, - // but still try to close, and report closing errors if they occur. - var threw = true - var ret - try { - ret = fs.fchmodSync(fd, mode) - threw = false - } finally { - if (threw) { - try { - fs.closeSync(fd) - } catch (er) {} - } else { - fs.closeSync(fd) - } - } - return ret - } - } - - function patchLutimes (fs) { - if (constants.hasOwnProperty("O_SYMLINK") && fs.futimes) { - fs.lutimes = function (path, at, mt, cb) { - fs.open(path, constants.O_SYMLINK, function (er, fd) { - if (er) { - if (cb) cb(er) - return - } - fs.futimes(fd, at, mt, function (er) { - fs.close(fd, function (er2) { - if (cb) cb(er || er2) - }) - }) - }) - } - - fs.lutimesSync = function (path, at, mt) { - var fd = fs.openSync(path, constants.O_SYMLINK) - var ret - var threw = true - try { - ret = fs.futimesSync(fd, at, mt) - threw = false - } finally { - if (threw) { - try { - fs.closeSync(fd) - } catch (er) {} - } else { - fs.closeSync(fd) - } - } - return ret - } - - } else if (fs.futimes) { - fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) } - fs.lutimesSync = function () {} - } - } - - function chmodFix (orig) { - if (!orig) return orig - return function (target, mode, cb) { - return orig.call(fs, target, mode, function (er) { - if (chownErOk(er)) er = null - if (cb) cb.apply(this, arguments) - }) - } - } - - function chmodFixSync (orig) { - if (!orig) return orig - return function (target, mode) { - try { - return orig.call(fs, target, mode) - } catch (er) { - if (!chownErOk(er)) throw er - } - } - } - - - function chownFix (orig) { - if (!orig) return orig - return function (target, uid, gid, cb) { - return orig.call(fs, target, uid, gid, function (er) { - if (chownErOk(er)) er = null - if (cb) cb.apply(this, arguments) - }) - } - } - - function chownFixSync (orig) { - if (!orig) return orig - return function (target, uid, gid) { - try { - return orig.call(fs, target, uid, gid) - } catch (er) { - if (!chownErOk(er)) throw er - } - } - } - - function statFix (orig) { - if (!orig) return orig - // Older versions of Node erroneously returned signed integers for - // uid + gid. - return function (target, options, cb) { - if (typeof options === 'function') { - cb = options - options = null - } - function callback (er, stats) { - if (stats) { - if (stats.uid < 0) stats.uid += 0x100000000 - if (stats.gid < 0) stats.gid += 0x100000000 - } - if (cb) cb.apply(this, arguments) - } - return options ? orig.call(fs, target, options, callback) - : orig.call(fs, target, callback) - } - } - - function statFixSync (orig) { - if (!orig) return orig - // Older versions of Node erroneously returned signed integers for - // uid + gid. - return function (target, options) { - var stats = options ? orig.call(fs, target, options) - : orig.call(fs, target) - if (stats) { - if (stats.uid < 0) stats.uid += 0x100000000 - if (stats.gid < 0) stats.gid += 0x100000000 - } - return stats; - } - } - - // ENOSYS means that the fs doesn't support the op. Just ignore - // that, because it doesn't matter. - // - // if there's no getuid, or if getuid() is something other - // than 0, and the error is EINVAL or EPERM, then just ignore - // it. - // - // This specific case is a silent failure in cp, install, tar, - // and most other unix tools that manage permissions. - // - // When running as root, or if other types of errors are - // encountered, then it's strict. - function chownErOk (er) { - if (!er) - return true - - if (er.code === "ENOSYS") - return true - - var nonroot = !process.getuid || process.getuid() !== 0 - if (nonroot) { - if (er.code === "EINVAL" || er.code === "EPERM") - return true - } - - return false - } -} diff --git a/build_vtk_bundle/node_modules/has-flag/index.d.ts b/build_vtk_bundle/node_modules/has-flag/index.d.ts deleted file mode 100644 index a0a48c89..00000000 --- a/build_vtk_bundle/node_modules/has-flag/index.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** -Check if [`argv`](https://nodejs.org/docs/latest/api/process.html#process_process_argv) has a specific flag. - -@param flag - CLI flag to look for. The `--` prefix is optional. -@param argv - CLI arguments. Default: `process.argv`. -@returns Whether the flag exists. - -@example -``` -// $ ts-node foo.ts -f --unicorn --foo=bar -- --rainbow - -// foo.ts -import hasFlag = require('has-flag'); - -hasFlag('unicorn'); -//=> true - -hasFlag('--unicorn'); -//=> true - -hasFlag('f'); -//=> true - -hasFlag('-f'); -//=> true - -hasFlag('foo=bar'); -//=> true - -hasFlag('foo'); -//=> false - -hasFlag('rainbow'); -//=> false -``` -*/ -declare function hasFlag(flag: string, argv?: string[]): boolean; - -export = hasFlag; diff --git a/build_vtk_bundle/node_modules/has-flag/index.js b/build_vtk_bundle/node_modules/has-flag/index.js deleted file mode 100644 index b6f80b1f..00000000 --- a/build_vtk_bundle/node_modules/has-flag/index.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -module.exports = (flag, argv = process.argv) => { - const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--'); - const position = argv.indexOf(prefix + flag); - const terminatorPosition = argv.indexOf('--'); - return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition); -}; diff --git a/build_vtk_bundle/node_modules/has-flag/license b/build_vtk_bundle/node_modules/has-flag/license deleted file mode 100644 index e7af2f77..00000000 --- a/build_vtk_bundle/node_modules/has-flag/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/has-flag/package.json b/build_vtk_bundle/node_modules/has-flag/package.json deleted file mode 100644 index a9cba4b8..00000000 --- a/build_vtk_bundle/node_modules/has-flag/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "has-flag", - "version": "4.0.0", - "description": "Check if argv has a specific flag", - "license": "MIT", - "repository": "sindresorhus/has-flag", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "has", - "check", - "detect", - "contains", - "find", - "flag", - "cli", - "command-line", - "argv", - "process", - "arg", - "args", - "argument", - "arguments", - "getopt", - "minimist", - "optimist" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } -} diff --git a/build_vtk_bundle/node_modules/has-flag/readme.md b/build_vtk_bundle/node_modules/has-flag/readme.md deleted file mode 100644 index 3f72dff2..00000000 --- a/build_vtk_bundle/node_modules/has-flag/readme.md +++ /dev/null @@ -1,89 +0,0 @@ -# has-flag [![Build Status](https://travis-ci.org/sindresorhus/has-flag.svg?branch=master)](https://travis-ci.org/sindresorhus/has-flag) - -> Check if [`argv`](https://nodejs.org/docs/latest/api/process.html#process_process_argv) has a specific flag - -Correctly stops looking after an `--` argument terminator. - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
- ---- - - -## Install - -``` -$ npm install has-flag -``` - - -## Usage - -```js -// foo.js -const hasFlag = require('has-flag'); - -hasFlag('unicorn'); -//=> true - -hasFlag('--unicorn'); -//=> true - -hasFlag('f'); -//=> true - -hasFlag('-f'); -//=> true - -hasFlag('foo=bar'); -//=> true - -hasFlag('foo'); -//=> false - -hasFlag('rainbow'); -//=> false -``` - -``` -$ node foo.js -f --unicorn --foo=bar -- --rainbow -``` - - -## API - -### hasFlag(flag, [argv]) - -Returns a boolean for whether the flag exists. - -#### flag - -Type: `string` - -CLI flag to look for. The `--` prefix is optional. - -#### argv - -Type: `string[]`
-Default: `process.argv` - -CLI arguments. - - -## Security - -To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/build_vtk_bundle/node_modules/has-property-descriptors/.eslintrc b/build_vtk_bundle/node_modules/has-property-descriptors/.eslintrc deleted file mode 100644 index 2fcc002b..00000000 --- a/build_vtk_bundle/node_modules/has-property-descriptors/.eslintrc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "root": true, - - "extends": "@ljharb", - - "rules": { - "func-name-matching": 0, - "id-length": 0, - "new-cap": [2, { - "capIsNewExceptions": ["GetIntrinsic"], - }], - }, -} diff --git a/build_vtk_bundle/node_modules/has-property-descriptors/.github/FUNDING.yml b/build_vtk_bundle/node_modules/has-property-descriptors/.github/FUNDING.yml deleted file mode 100644 index 817aacf1..00000000 --- a/build_vtk_bundle/node_modules/has-property-descriptors/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: [ljharb] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: npm/has-property-descriptors -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/build_vtk_bundle/node_modules/has-property-descriptors/.nycrc b/build_vtk_bundle/node_modules/has-property-descriptors/.nycrc deleted file mode 100644 index bdd626ce..00000000 --- a/build_vtk_bundle/node_modules/has-property-descriptors/.nycrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "all": true, - "check-coverage": false, - "reporter": ["text-summary", "text", "html", "json"], - "exclude": [ - "coverage", - "test" - ] -} diff --git a/build_vtk_bundle/node_modules/has-property-descriptors/CHANGELOG.md b/build_vtk_bundle/node_modules/has-property-descriptors/CHANGELOG.md deleted file mode 100644 index 19c8a959..00000000 --- a/build_vtk_bundle/node_modules/has-property-descriptors/CHANGELOG.md +++ /dev/null @@ -1,35 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [v1.0.2](https://github.com/inspect-js/has-property-descriptors/compare/v1.0.1...v1.0.2) - 2024-02-12 - -### Commits - -- [Refactor] use `es-define-property` [`f93a8c8`](https://github.com/inspect-js/has-property-descriptors/commit/f93a8c85eba70cbceab500f2619fb5cce73a1805) -- [Dev Deps] update `aud`, `npmignore`, `tape` [`42b0c9d`](https://github.com/inspect-js/has-property-descriptors/commit/42b0c9d1c23e747755f0f2924923c418ea34a9ee) -- [Deps] update `get-intrinsic` [`35e9b46`](https://github.com/inspect-js/has-property-descriptors/commit/35e9b46a7f14331bf0de98b644dd803676746037) - -## [v1.0.1](https://github.com/inspect-js/has-property-descriptors/compare/v1.0.0...v1.0.1) - 2023-10-20 - -### Commits - -- [meta] use `npmignore` to autogenerate an npmignore file [`5bbf4da`](https://github.com/inspect-js/has-property-descriptors/commit/5bbf4dae1b58950d87bb3af508bee7513e640868) -- [actions] update rebase action to use reusable workflow [`3a5585b`](https://github.com/inspect-js/has-property-descriptors/commit/3a5585bf74988f71a8f59e67a07d594e62c51fd8) -- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`e5c1212`](https://github.com/inspect-js/has-property-descriptors/commit/e5c1212048a8fda549794c47863724ca60b89cae) -- [Dev Deps] update `aud`, `tape` [`e942917`](https://github.com/inspect-js/has-property-descriptors/commit/e942917b6c2f7c090d5623048989cf20d0834ebf) -- [Deps] update `get-intrinsic` [`f4a44ec`](https://github.com/inspect-js/has-property-descriptors/commit/f4a44ec6d94146fa6c550d3c15c31a2062c83ef4) -- [Deps] update `get-intrinsic` [`eeb275b`](https://github.com/inspect-js/has-property-descriptors/commit/eeb275b473e5d72ca843b61ca25cfcb06a5d4300) - -## v1.0.0 - 2022-04-14 - -### Commits - -- Initial implementation, tests [`303559f`](https://github.com/inspect-js/has-property-descriptors/commit/303559f2a72dfe7111573a1aec475ed4a184c35a) -- Initial commit [`3a7ca2d`](https://github.com/inspect-js/has-property-descriptors/commit/3a7ca2dc49f1fff0279a28bb16265e7615e14749) -- read me [`dd73dce`](https://github.com/inspect-js/has-property-descriptors/commit/dd73dce09d89d0f7a4a6e3b1e562a506f979a767) -- npm init [`c1e6557`](https://github.com/inspect-js/has-property-descriptors/commit/c1e655779de632d68cb944c50da6b71bcb7b8c85) -- Only apps should have lockfiles [`e72f7c6`](https://github.com/inspect-js/has-property-descriptors/commit/e72f7c68de534b2d273ee665f8b18d4ecc7f70b0) diff --git a/build_vtk_bundle/node_modules/has-property-descriptors/LICENSE b/build_vtk_bundle/node_modules/has-property-descriptors/LICENSE deleted file mode 100644 index 2e7b9a3e..00000000 --- a/build_vtk_bundle/node_modules/has-property-descriptors/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2022 Inspect JS - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/has-property-descriptors/README.md b/build_vtk_bundle/node_modules/has-property-descriptors/README.md deleted file mode 100644 index d81fbd99..00000000 --- a/build_vtk_bundle/node_modules/has-property-descriptors/README.md +++ /dev/null @@ -1,43 +0,0 @@ -# has-property-descriptors [![Version Badge][npm-version-svg]][package-url] - -[![github actions][actions-image]][actions-url] -[![coverage][codecov-image]][codecov-url] -[![dependency status][deps-svg]][deps-url] -[![dev dependency status][dev-deps-svg]][dev-deps-url] -[![License][license-image]][license-url] -[![Downloads][downloads-image]][downloads-url] - -[![npm badge][npm-badge-png]][package-url] - -Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD. - -## Example - -```js -var hasPropertyDescriptors = require('has-property-descriptors'); -var assert = require('assert'); - -assert.equal(hasPropertyDescriptors(), true); // will be `false` in IE 6-8, and ES5 engines - -// Arrays can not have their length `[[Defined]]` in some engines -assert.equal(hasPropertyDescriptors.hasArrayLengthDefineBug(), false); // will be `true` in Firefox 4-22, and node v0.6 -``` - -## Tests -Simply clone the repo, `npm install`, and run `npm test` - -[package-url]: https://npmjs.org/package/has-property-descriptors -[npm-version-svg]: https://versionbadg.es/inspect-js/has-property-descriptors.svg -[deps-svg]: https://david-dm.org/inspect-js/has-property-descriptors.svg -[deps-url]: https://david-dm.org/inspect-js/has-property-descriptors -[dev-deps-svg]: https://david-dm.org/inspect-js/has-property-descriptors/dev-status.svg -[dev-deps-url]: https://david-dm.org/inspect-js/has-property-descriptors#info=devDependencies -[npm-badge-png]: https://nodei.co/npm/has-property-descriptors.png?downloads=true&stars=true -[license-image]: https://img.shields.io/npm/l/has-property-descriptors.svg -[license-url]: LICENSE -[downloads-image]: https://img.shields.io/npm/dm/has-property-descriptors.svg -[downloads-url]: https://npm-stat.com/charts.html?package=has-property-descriptors -[codecov-image]: https://codecov.io/gh/inspect-js/has-property-descriptors/branch/main/graphs/badge.svg -[codecov-url]: https://app.codecov.io/gh/inspect-js/has-property-descriptors/ -[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/has-property-descriptors -[actions-url]: https://github.com/inspect-js/has-property-descriptors/actions diff --git a/build_vtk_bundle/node_modules/has-property-descriptors/index.js b/build_vtk_bundle/node_modules/has-property-descriptors/index.js deleted file mode 100644 index 04804379..00000000 --- a/build_vtk_bundle/node_modules/has-property-descriptors/index.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; - -var $defineProperty = require('es-define-property'); - -var hasPropertyDescriptors = function hasPropertyDescriptors() { - return !!$defineProperty; -}; - -hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() { - // node v0.6 has a bug where array lengths can be Set but not Defined - if (!$defineProperty) { - return null; - } - try { - return $defineProperty([], 'length', { value: 1 }).length !== 1; - } catch (e) { - // In Firefox 4-22, defining length on an array throws an exception. - return true; - } -}; - -module.exports = hasPropertyDescriptors; diff --git a/build_vtk_bundle/node_modules/has-property-descriptors/package.json b/build_vtk_bundle/node_modules/has-property-descriptors/package.json deleted file mode 100644 index 7e70218b..00000000 --- a/build_vtk_bundle/node_modules/has-property-descriptors/package.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "name": "has-property-descriptors", - "version": "1.0.2", - "description": "Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.", - "main": "index.js", - "exports": { - ".": "./index.js", - "./package.json": "./package.json" - }, - "sideEffects": false, - "scripts": { - "prepack": "npmignore --auto --commentLines=autogenerated", - "prepublishOnly": "safe-publish-latest", - "prepublish": "not-in-publish || npm run prepublishOnly", - "pretest": "npm run lint", - "prelint": "evalmd README.md", - "lint": "eslint --ext=js,mjs .", - "tests-only": "nyc tape 'test/**/*.js'", - "test": "npm run tests-only", - "posttest": "aud --production", - "version": "auto-changelog && git add CHANGELOG.md", - "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/inspect-js/has-property-descriptors.git" - }, - "keywords": [ - "property", - "descriptors", - "has", - "environment", - "env", - "defineProperty", - "getOwnPropertyDescriptor" - ], - "author": "Jordan Harband ", - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "license": "MIT", - "bugs": { - "url": "https://github.com/inspect-js/has-property-descriptors/issues" - }, - "homepage": "https://github.com/inspect-js/has-property-descriptors#readme", - "devDependencies": { - "@ljharb/eslint-config": "^21.1.0", - "aud": "^2.0.4", - "auto-changelog": "^2.4.0", - "eslint": "=8.8.0", - "evalmd": "^0.0.19", - "in-publish": "^2.0.1", - "npmignore": "^0.3.1", - "nyc": "^10.3.2", - "safe-publish-latest": "^2.0.0", - "tape": "^5.7.4" - }, - "dependencies": { - "es-define-property": "^1.0.0" - }, - "testling": { - "files": "test/index.js" - }, - "auto-changelog": { - "output": "CHANGELOG.md", - "template": "keepachangelog", - "unreleased": false, - "commitLimit": false, - "backfillLimit": false, - "hideCredit": true - }, - "publishConfig": { - "ignore": [ - ".github/workflows" - ] - } -} diff --git a/build_vtk_bundle/node_modules/has-property-descriptors/test/index.js b/build_vtk_bundle/node_modules/has-property-descriptors/test/index.js deleted file mode 100644 index 7f02bd3e..00000000 --- a/build_vtk_bundle/node_modules/has-property-descriptors/test/index.js +++ /dev/null @@ -1,57 +0,0 @@ -'use strict'; - -var test = require('tape'); - -var hasPropertyDescriptors = require('../'); - -var sentinel = {}; - -test('hasPropertyDescriptors', function (t) { - t.equal(typeof hasPropertyDescriptors, 'function', 'is a function'); - t.equal(typeof hasPropertyDescriptors.hasArrayLengthDefineBug, 'function', '`hasArrayLengthDefineBug` property is a function'); - - var yes = hasPropertyDescriptors(); - t.test('property descriptors', { skip: !yes }, function (st) { - var o = { a: sentinel }; - - st.deepEqual( - Object.getOwnPropertyDescriptor(o, 'a'), - { - configurable: true, - enumerable: true, - value: sentinel, - writable: true - }, - 'has expected property descriptor' - ); - - Object.defineProperty(o, 'a', { enumerable: false, writable: false }); - - st.deepEqual( - Object.getOwnPropertyDescriptor(o, 'a'), - { - configurable: true, - enumerable: false, - value: sentinel, - writable: false - }, - 'has expected property descriptor after [[Define]]' - ); - - st.end(); - }); - - var arrayBug = hasPropertyDescriptors.hasArrayLengthDefineBug(); - t.test('defining array lengths', { skip: !yes || arrayBug }, function (st) { - var arr = [1, , 3]; // eslint-disable-line no-sparse-arrays - st.equal(arr.length, 3, 'array starts with length 3'); - - Object.defineProperty(arr, 'length', { value: 5 }); - - st.equal(arr.length, 5, 'array ends with length 5'); - - st.end(); - }); - - t.end(); -}); diff --git a/build_vtk_bundle/node_modules/hasown/.eslintrc b/build_vtk_bundle/node_modules/hasown/.eslintrc deleted file mode 100644 index 3b5d9e90..00000000 --- a/build_vtk_bundle/node_modules/hasown/.eslintrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "root": true, - - "extends": "@ljharb", -} diff --git a/build_vtk_bundle/node_modules/hasown/.github/FUNDING.yml b/build_vtk_bundle/node_modules/hasown/.github/FUNDING.yml deleted file mode 100644 index d68c8b71..00000000 --- a/build_vtk_bundle/node_modules/hasown/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: [ljharb] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: npm/hasown -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with a single custom sponsorship URL diff --git a/build_vtk_bundle/node_modules/hasown/.nycrc b/build_vtk_bundle/node_modules/hasown/.nycrc deleted file mode 100644 index 1826526e..00000000 --- a/build_vtk_bundle/node_modules/hasown/.nycrc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "all": true, - "check-coverage": false, - "reporter": ["text-summary", "text", "html", "json"], - "lines": 86, - "statements": 85.93, - "functions": 82.43, - "branches": 76.06, - "exclude": [ - "coverage", - "test" - ] -} diff --git a/build_vtk_bundle/node_modules/hasown/CHANGELOG.md b/build_vtk_bundle/node_modules/hasown/CHANGELOG.md deleted file mode 100644 index 2b0a980f..00000000 --- a/build_vtk_bundle/node_modules/hasown/CHANGELOG.md +++ /dev/null @@ -1,40 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [v2.0.2](https://github.com/inspect-js/hasOwn/compare/v2.0.1...v2.0.2) - 2024-03-10 - -### Commits - -- [types] use shared config [`68e9d4d`](https://github.com/inspect-js/hasOwn/commit/68e9d4dab6facb4f05f02c6baea94a3f2a4e44b2) -- [actions] remove redundant finisher; use reusable workflow [`241a68e`](https://github.com/inspect-js/hasOwn/commit/241a68e13ea1fe52bec5ba7f74144befc31fae7b) -- [Tests] increase coverage [`4125c0d`](https://github.com/inspect-js/hasOwn/commit/4125c0d6121db56ae30e38346dfb0c000b04f0a7) -- [Tests] skip `npm ls` in old node due to TS [`01b9282`](https://github.com/inspect-js/hasOwn/commit/01b92822f9971dea031eafdd14767df41d61c202) -- [types] improve predicate type [`d340f85`](https://github.com/inspect-js/hasOwn/commit/d340f85ce02e286ef61096cbbb6697081d40a12b) -- [Dev Deps] update `tape` [`70089fc`](https://github.com/inspect-js/hasOwn/commit/70089fcf544e64acc024cbe60f5a9b00acad86de) -- [Tests] use `@arethetypeswrong/cli` [`50b272c`](https://github.com/inspect-js/hasOwn/commit/50b272c829f40d053a3dd91c9796e0ac0b2af084) - -## [v2.0.1](https://github.com/inspect-js/hasOwn/compare/v2.0.0...v2.0.1) - 2024-02-10 - -### Commits - -- [types] use a handwritten d.ts file; fix exported type [`012b989`](https://github.com/inspect-js/hasOwn/commit/012b9898ccf91dc441e2ebf594ff70270a5fda58) -- [Dev Deps] update `@types/function-bind`, `@types/mock-property`, `@types/tape`, `aud`, `mock-property`, `npmignore`, `tape`, `typescript` [`977a56f`](https://github.com/inspect-js/hasOwn/commit/977a56f51a1f8b20566f3c471612137894644025) -- [meta] add `sideEffects` flag [`3a60b7b`](https://github.com/inspect-js/hasOwn/commit/3a60b7bf42fccd8c605e5f145a6fcc83b13cb46f) - -## [v2.0.0](https://github.com/inspect-js/hasOwn/compare/v1.0.1...v2.0.0) - 2023-10-19 - -### Commits - -- revamped implementation, tests, readme [`72bf8b3`](https://github.com/inspect-js/hasOwn/commit/72bf8b338e77a638f0a290c63ffaed18339c36b4) -- [meta] revamp package.json [`079775f`](https://github.com/inspect-js/hasOwn/commit/079775fb1ec72c1c6334069593617a0be3847458) -- Only apps should have lockfiles [`6640e23`](https://github.com/inspect-js/hasOwn/commit/6640e233d1bb8b65260880f90787637db157d215) - -## v1.0.1 - 2023-10-10 - -### Commits - -- Initial commit [`8dbfde6`](https://github.com/inspect-js/hasOwn/commit/8dbfde6e8fb0ebb076fab38d138f2984eb340a62) diff --git a/build_vtk_bundle/node_modules/hasown/LICENSE b/build_vtk_bundle/node_modules/hasown/LICENSE deleted file mode 100644 index 03149290..00000000 --- a/build_vtk_bundle/node_modules/hasown/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) Jordan Harband and contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/hasown/README.md b/build_vtk_bundle/node_modules/hasown/README.md deleted file mode 100644 index f759b8a8..00000000 --- a/build_vtk_bundle/node_modules/hasown/README.md +++ /dev/null @@ -1,40 +0,0 @@ -# hasown [![Version Badge][npm-version-svg]][package-url] - -[![github actions][actions-image]][actions-url] -[![coverage][codecov-image]][codecov-url] -[![License][license-image]][license-url] -[![Downloads][downloads-image]][downloads-url] - -[![npm badge][npm-badge-png]][package-url] - -A robust, ES3 compatible, "has own property" predicate. - -## Example - -```js -const assert = require('assert'); -const hasOwn = require('hasown'); - -assert.equal(hasOwn({}, 'toString'), false); -assert.equal(hasOwn([], 'length'), true); -assert.equal(hasOwn({ a: 42 }, 'a'), true); -``` - -## Tests -Simply clone the repo, `npm install`, and run `npm test` - -[package-url]: https://npmjs.org/package/hasown -[npm-version-svg]: https://versionbadg.es/inspect-js/hasown.svg -[deps-svg]: https://david-dm.org/inspect-js/hasOwn.svg -[deps-url]: https://david-dm.org/inspect-js/hasOwn -[dev-deps-svg]: https://david-dm.org/inspect-js/hasOwn/dev-status.svg -[dev-deps-url]: https://david-dm.org/inspect-js/hasOwn#info=devDependencies -[npm-badge-png]: https://nodei.co/npm/hasown.png?downloads=true&stars=true -[license-image]: https://img.shields.io/npm/l/hasown.svg -[license-url]: LICENSE -[downloads-image]: https://img.shields.io/npm/dm/hasown.svg -[downloads-url]: https://npm-stat.com/charts.html?package=hasown -[codecov-image]: https://codecov.io/gh/inspect-js/hasOwn/branch/main/graphs/badge.svg -[codecov-url]: https://app.codecov.io/gh/inspect-js/hasOwn/ -[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/hasOwn -[actions-url]: https://github.com/inspect-js/hasOwn/actions diff --git a/build_vtk_bundle/node_modules/hasown/index.d.ts b/build_vtk_bundle/node_modules/hasown/index.d.ts deleted file mode 100644 index aafdf3b2..00000000 --- a/build_vtk_bundle/node_modules/hasown/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare function hasOwn(o: O, p: K): o is O & Record; - -export = hasOwn; diff --git a/build_vtk_bundle/node_modules/hasown/index.js b/build_vtk_bundle/node_modules/hasown/index.js deleted file mode 100644 index 34e60591..00000000 --- a/build_vtk_bundle/node_modules/hasown/index.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -var call = Function.prototype.call; -var $hasOwn = Object.prototype.hasOwnProperty; -var bind = require('function-bind'); - -/** @type {import('.')} */ -module.exports = bind.call(call, $hasOwn); diff --git a/build_vtk_bundle/node_modules/hasown/package.json b/build_vtk_bundle/node_modules/hasown/package.json deleted file mode 100644 index 8502e13d..00000000 --- a/build_vtk_bundle/node_modules/hasown/package.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "name": "hasown", - "version": "2.0.2", - "description": "A robust, ES3 compatible, \"has own property\" predicate.", - "main": "index.js", - "exports": { - ".": "./index.js", - "./package.json": "./package.json" - }, - "types": "index.d.ts", - "sideEffects": false, - "scripts": { - "prepack": "npmignore --auto --commentLines=autogenerated", - "prepublish": "not-in-publish || npm run prepublishOnly", - "prepublishOnly": "safe-publish-latest", - "prelint": "evalmd README.md", - "lint": "eslint --ext=js,mjs .", - "postlint": "npm run tsc", - "pretest": "npm run lint", - "tsc": "tsc -p .", - "posttsc": "attw -P", - "tests-only": "nyc tape 'test/**/*.js'", - "test": "npm run tests-only", - "posttest": "aud --production", - "version": "auto-changelog && git add CHANGELOG.md", - "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/inspect-js/hasOwn.git" - }, - "keywords": [ - "has", - "hasOwnProperty", - "hasOwn", - "has-own", - "own", - "has", - "property", - "in", - "javascript", - "ecmascript" - ], - "author": "Jordan Harband ", - "license": "MIT", - "bugs": { - "url": "https://github.com/inspect-js/hasOwn/issues" - }, - "homepage": "https://github.com/inspect-js/hasOwn#readme", - "dependencies": { - "function-bind": "^1.1.2" - }, - "devDependencies": { - "@arethetypeswrong/cli": "^0.15.1", - "@ljharb/eslint-config": "^21.1.0", - "@ljharb/tsconfig": "^0.2.0", - "@types/function-bind": "^1.1.10", - "@types/mock-property": "^1.0.2", - "@types/tape": "^5.6.4", - "aud": "^2.0.4", - "auto-changelog": "^2.4.0", - "eslint": "=8.8.0", - "evalmd": "^0.0.19", - "in-publish": "^2.0.1", - "mock-property": "^1.0.3", - "npmignore": "^0.3.1", - "nyc": "^10.3.2", - "safe-publish-latest": "^2.0.0", - "tape": "^5.7.5", - "typescript": "next" - }, - "engines": { - "node": ">= 0.4" - }, - "testling": { - "files": "test/index.js" - }, - "auto-changelog": { - "output": "CHANGELOG.md", - "template": "keepachangelog", - "unreleased": false, - "commitLimit": false, - "backfillLimit": false, - "hideCredit": true - }, - "publishConfig": { - "ignore": [ - ".github/workflows", - "test" - ] - } -} diff --git a/build_vtk_bundle/node_modules/hasown/tsconfig.json b/build_vtk_bundle/node_modules/hasown/tsconfig.json deleted file mode 100644 index 0930c565..00000000 --- a/build_vtk_bundle/node_modules/hasown/tsconfig.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "@ljharb/tsconfig", - "exclude": [ - "coverage", - ], -} diff --git a/build_vtk_bundle/node_modules/import-local/fixtures/cli.js b/build_vtk_bundle/node_modules/import-local/fixtures/cli.js deleted file mode 100755 index 46b939f1..00000000 --- a/build_vtk_bundle/node_modules/import-local/fixtures/cli.js +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env node -'use strict'; -const importLocal = require('..'); - -if (importLocal(__filename)) { - console.log('local'); -} diff --git a/build_vtk_bundle/node_modules/import-local/index.d.ts b/build_vtk_bundle/node_modules/import-local/index.d.ts deleted file mode 100644 index c432c732..00000000 --- a/build_vtk_bundle/node_modules/import-local/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** -Let a globally installed package use a locally installed version of itself if available. - -@param filePath - The absolute file path to the main file of the package. - -@example -``` -import importLocal from 'import-local'; - -if (importLocal(import.meta.url)) { - console.log('Using local version of this package'); -} else { - // Code for both global and local version here… -} -``` -*/ -export default function importLocal(filePath: string): boolean | undefined | unknown; diff --git a/build_vtk_bundle/node_modules/import-local/index.js b/build_vtk_bundle/node_modules/import-local/index.js deleted file mode 100644 index 28c9c605..00000000 --- a/build_vtk_bundle/node_modules/import-local/index.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; -const path = require('path'); -const {fileURLToPath} = require('url'); -const resolveCwd = require('resolve-cwd'); -const pkgDir = require('pkg-dir'); - -module.exports = filename => { - const normalizedFilename = filename.startsWith('file://') ? fileURLToPath(filename) : filename; - const globalDir = pkgDir.sync(path.dirname(normalizedFilename)); - const relativePath = path.relative(globalDir, normalizedFilename); - const pkg = require(path.join(globalDir, 'package.json')); - const localFile = resolveCwd.silent(path.join(pkg.name, relativePath)); - const localNodeModules = path.join(process.cwd(), 'node_modules'); - - const filenameInLocalNodeModules = !path.relative(localNodeModules, normalizedFilename).startsWith('..') && - // On Windows, if `localNodeModules` and `normalizedFilename` are on different partitions, `path.relative()` returns the value of `normalizedFilename`, resulting in `filenameInLocalNodeModules` incorrectly becoming `true`. - path.parse(localNodeModules).root === path.parse(normalizedFilename).root; - - // Use `path.relative()` to detect local package installation, - // because __filename's case is inconsistent on Windows - // Can use `===` when targeting Node.js 8 - // See https://github.com/nodejs/node/issues/6624 - return !filenameInLocalNodeModules && localFile && path.relative(localFile, normalizedFilename) !== '' && require(localFile); -}; diff --git a/build_vtk_bundle/node_modules/import-local/license b/build_vtk_bundle/node_modules/import-local/license deleted file mode 100644 index fa7ceba3..00000000 --- a/build_vtk_bundle/node_modules/import-local/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/import-local/package.json b/build_vtk_bundle/node_modules/import-local/package.json deleted file mode 100644 index 53d6e3bf..00000000 --- a/build_vtk_bundle/node_modules/import-local/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "import-local", - "version": "3.2.0", - "description": "Let a globally installed package use a locally installed version of itself if available", - "license": "MIT", - "repository": "sindresorhus/import-local", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, - "sideEffects": false, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "index.d.ts", - "fixtures/cli.js" - ], - "keywords": [ - "import", - "local", - "require", - "resolve", - "global", - "version", - "prefer", - "cli" - ], - "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "devDependencies": { - "ava": "2.1.0", - "cpy": "^7.0.1", - "del": "^4.1.1", - "execa": "^2.0.1", - "xo": "^0.24.0" - }, - "xo": { - "ignores": [ - "fixtures" - ] - } -} diff --git a/build_vtk_bundle/node_modules/import-local/readme.md b/build_vtk_bundle/node_modules/import-local/readme.md deleted file mode 100644 index f0dc6e34..00000000 --- a/build_vtk_bundle/node_modules/import-local/readme.md +++ /dev/null @@ -1,25 +0,0 @@ -# import-local - -> Let a globally installed package use a locally installed version of itself if available - -Useful for CLI tools that want to defer to the user's locally installed version when available, but still work if it's not installed locally. For example, [AVA](https://avajs.dev) and [XO](https://github.com/xojs/xo) uses this method. - -## Install - -```sh -npm install import-local -``` - -## Usage - -```js -import importLocal from 'import-local'; - -if (importLocal(import.meta.url)) { - console.log('Using local version of this package'); -} else { - // Code for both global and local version here… -} -``` - -You can also pass in `__filename` when used in a CommonJS context. diff --git a/build_vtk_bundle/node_modules/inflight/LICENSE b/build_vtk_bundle/node_modules/inflight/LICENSE deleted file mode 100644 index 05eeeb88..00000000 --- a/build_vtk_bundle/node_modules/inflight/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/build_vtk_bundle/node_modules/inflight/README.md b/build_vtk_bundle/node_modules/inflight/README.md deleted file mode 100644 index 6dc89291..00000000 --- a/build_vtk_bundle/node_modules/inflight/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# inflight - -Add callbacks to requests in flight to avoid async duplication - -## USAGE - -```javascript -var inflight = require('inflight') - -// some request that does some stuff -function req(key, callback) { - // key is any random string. like a url or filename or whatever. - // - // will return either a falsey value, indicating that the - // request for this key is already in flight, or a new callback - // which when called will call all callbacks passed to inflightk - // with the same key - callback = inflight(key, callback) - - // If we got a falsey value back, then there's already a req going - if (!callback) return - - // this is where you'd fetch the url or whatever - // callback is also once()-ified, so it can safely be assigned - // to multiple events etc. First call wins. - setTimeout(function() { - callback(null, key) - }, 100) -} - -// only assigns a single setTimeout -// when it dings, all cbs get called -req('foo', cb1) -req('foo', cb2) -req('foo', cb3) -req('foo', cb4) -``` diff --git a/build_vtk_bundle/node_modules/inflight/inflight.js b/build_vtk_bundle/node_modules/inflight/inflight.js deleted file mode 100644 index 48202b3c..00000000 --- a/build_vtk_bundle/node_modules/inflight/inflight.js +++ /dev/null @@ -1,54 +0,0 @@ -var wrappy = require('wrappy') -var reqs = Object.create(null) -var once = require('once') - -module.exports = wrappy(inflight) - -function inflight (key, cb) { - if (reqs[key]) { - reqs[key].push(cb) - return null - } else { - reqs[key] = [cb] - return makeres(key) - } -} - -function makeres (key) { - return once(function RES () { - var cbs = reqs[key] - var len = cbs.length - var args = slice(arguments) - - // XXX It's somewhat ambiguous whether a new callback added in this - // pass should be queued for later execution if something in the - // list of callbacks throws, or if it should just be discarded. - // However, it's such an edge case that it hardly matters, and either - // choice is likely as surprising as the other. - // As it happens, we do go ahead and schedule it for later execution. - try { - for (var i = 0; i < len; i++) { - cbs[i].apply(null, args) - } - } finally { - if (cbs.length > len) { - // added more in the interim. - // de-zalgo, just in case, but don't call again. - cbs.splice(0, len) - process.nextTick(function () { - RES.apply(null, args) - }) - } else { - delete reqs[key] - } - } - }) -} - -function slice (args) { - var length = args.length - var array = [] - - for (var i = 0; i < length; i++) array[i] = args[i] - return array -} diff --git a/build_vtk_bundle/node_modules/inflight/package.json b/build_vtk_bundle/node_modules/inflight/package.json deleted file mode 100644 index 6084d350..00000000 --- a/build_vtk_bundle/node_modules/inflight/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "inflight", - "version": "1.0.6", - "description": "Add callbacks to requests in flight to avoid async duplication", - "main": "inflight.js", - "files": [ - "inflight.js" - ], - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - }, - "devDependencies": { - "tap": "^7.1.2" - }, - "scripts": { - "test": "tap test.js --100" - }, - "repository": { - "type": "git", - "url": "https://github.com/npm/inflight.git" - }, - "author": "Isaac Z. Schlueter (http://blog.izs.me/)", - "bugs": { - "url": "https://github.com/isaacs/inflight/issues" - }, - "homepage": "https://github.com/isaacs/inflight", - "license": "ISC" -} diff --git a/build_vtk_bundle/node_modules/inherits/LICENSE b/build_vtk_bundle/node_modules/inherits/LICENSE deleted file mode 100644 index dea3013d..00000000 --- a/build_vtk_bundle/node_modules/inherits/LICENSE +++ /dev/null @@ -1,16 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. - diff --git a/build_vtk_bundle/node_modules/inherits/README.md b/build_vtk_bundle/node_modules/inherits/README.md deleted file mode 100644 index b1c56658..00000000 --- a/build_vtk_bundle/node_modules/inherits/README.md +++ /dev/null @@ -1,42 +0,0 @@ -Browser-friendly inheritance fully compatible with standard node.js -[inherits](http://nodejs.org/api/util.html#util_util_inherits_constructor_superconstructor). - -This package exports standard `inherits` from node.js `util` module in -node environment, but also provides alternative browser-friendly -implementation through [browser -field](https://gist.github.com/shtylman/4339901). Alternative -implementation is a literal copy of standard one located in standalone -module to avoid requiring of `util`. It also has a shim for old -browsers with no `Object.create` support. - -While keeping you sure you are using standard `inherits` -implementation in node.js environment, it allows bundlers such as -[browserify](https://github.com/substack/node-browserify) to not -include full `util` package to your client code if all you need is -just `inherits` function. It worth, because browser shim for `util` -package is large and `inherits` is often the single function you need -from it. - -It's recommended to use this package instead of -`require('util').inherits` for any code that has chances to be used -not only in node.js but in browser too. - -## usage - -```js -var inherits = require('inherits'); -// then use exactly as the standard one -``` - -## note on version ~1.0 - -Version ~1.0 had completely different motivation and is not compatible -neither with 2.0 nor with standard node.js `inherits`. - -If you are using version ~1.0 and planning to switch to ~2.0, be -careful: - -* new version uses `super_` instead of `super` for referencing - superclass -* new version overwrites current prototype while old one preserves any - existing fields on it diff --git a/build_vtk_bundle/node_modules/inherits/inherits.js b/build_vtk_bundle/node_modules/inherits/inherits.js deleted file mode 100644 index f71f2d93..00000000 --- a/build_vtk_bundle/node_modules/inherits/inherits.js +++ /dev/null @@ -1,9 +0,0 @@ -try { - var util = require('util'); - /* istanbul ignore next */ - if (typeof util.inherits !== 'function') throw ''; - module.exports = util.inherits; -} catch (e) { - /* istanbul ignore next */ - module.exports = require('./inherits_browser.js'); -} diff --git a/build_vtk_bundle/node_modules/inherits/inherits_browser.js b/build_vtk_bundle/node_modules/inherits/inherits_browser.js deleted file mode 100644 index 86bbb3dc..00000000 --- a/build_vtk_bundle/node_modules/inherits/inherits_browser.js +++ /dev/null @@ -1,27 +0,0 @@ -if (typeof Object.create === 'function') { - // implementation from standard node.js 'util' module - module.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor - ctor.prototype = Object.create(superCtor.prototype, { - constructor: { - value: ctor, - enumerable: false, - writable: true, - configurable: true - } - }) - } - }; -} else { - // old school shim for old browsers - module.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor - var TempCtor = function () {} - TempCtor.prototype = superCtor.prototype - ctor.prototype = new TempCtor() - ctor.prototype.constructor = ctor - } - } -} diff --git a/build_vtk_bundle/node_modules/inherits/package.json b/build_vtk_bundle/node_modules/inherits/package.json deleted file mode 100644 index 37b4366b..00000000 --- a/build_vtk_bundle/node_modules/inherits/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "inherits", - "description": "Browser-friendly inheritance fully compatible with standard node.js inherits()", - "version": "2.0.4", - "keywords": [ - "inheritance", - "class", - "klass", - "oop", - "object-oriented", - "inherits", - "browser", - "browserify" - ], - "main": "./inherits.js", - "browser": "./inherits_browser.js", - "repository": "git://github.com/isaacs/inherits", - "license": "ISC", - "scripts": { - "test": "tap" - }, - "devDependencies": { - "tap": "^14.2.4" - }, - "files": [ - "inherits.js", - "inherits_browser.js" - ] -} diff --git a/build_vtk_bundle/node_modules/internmap/LICENSE b/build_vtk_bundle/node_modules/internmap/LICENSE deleted file mode 100644 index 6fca7113..00000000 --- a/build_vtk_bundle/node_modules/internmap/LICENSE +++ /dev/null @@ -1,13 +0,0 @@ -Copyright 2021 Mike Bostock - -Permission to use, copy, modify, and/or distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright notice -and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS -OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER -TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -THIS SOFTWARE. diff --git a/build_vtk_bundle/node_modules/internmap/README.md b/build_vtk_bundle/node_modules/internmap/README.md deleted file mode 100644 index 13993dfe..00000000 --- a/build_vtk_bundle/node_modules/internmap/README.md +++ /dev/null @@ -1,94 +0,0 @@ -# InternMap - -*For live examples, see https://observablehq.com/@mbostock/internmap.* - -If you use dates as keys in a JavaScript Map (or as values in a Set), you may be surprised that it won’t work as you expect. - -```js -dateMap = new Map([ - [new Date(Date.UTC(2001, 0, 1)), "red"], - [new Date(Date.UTC(2001, 0, 1)), "green"] // distinct key! -]) -``` -```js -dateMap.get(new Date(Date.UTC(2001, 0, 1))) // undefined! -``` - -That’s because Map uses the [SameValueZero algorithm](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness) to determine key equality: for two dates to be considered the same, they must be the same instance (the same object), not just the same moment in time. This is true of the equality operator, too. - -```js -{ - const date1 = new Date(Date.UTC(2001, 0, 1)); - const date2 = new Date(Date.UTC(2001, 0, 1)); - return date1 === date2; // false! -} -``` - -You can avoid this issue by using primitive values such as numbers or strings as keys instead. But it’s tedious and easy to forget to coerce types. (You’ll also need to do the inverse type conversion when pulling keys out of the map, say when using *map*.keys or *map*.entries, or when iterating over the map. The inverse above is new Date(*key*). Also, if you forget to coerce your key to a number when using *map*.get, it’s easy not to notice because the map won’t throw an error; it’ll simply return undefined.) - -```js -numberMap = new Map([[978307200000, "red"]]) -numberMap.get(978307200000) // "red" -numberMap.get(new Date(978307200000)) // undefined; oops! -``` - -Wouldn’t it be easier if Map and Set “just worked” with dates? Or with any object that supports [*object*.valueOf](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/valueOf)? - -Enter **InternMap**. [*Interning*](https://en.wikipedia.org/wiki/String_interning) refers to storing only one copy of each distinct key. An InternMap considers two Date instances representing the same moment to be equal, storing only the first instance. - -```js -map = new InternMap([ - [new Date(Date.UTC(2001, 0, 1)), "red"], - [new Date(Date.UTC(2001, 0, 1)), "green"] // replaces previous entry -]) -``` -```js -map.get(new Date(Date.UTC(2001, 0, 1))) // "green" -``` -```js -[...map.keys()] // [2001-01-01] -``` - -InternMap extends Map, so you can simply drop it in whenever you’d prefer this behavior to the SameValueZero algorithm. Because InternMap calls *object*.valueOf only for non-primitive keys, note that you can pass primitive keys, too. - -```js -map.get(978307200000) // "green"; this works too! -``` - -InternMap keeps only the first distinct key according to its associated primitive value. Avoid adding keys to the map with inconsistent types. - -```js -map2 = new InternMap([ - [978307200000, "red"], // danger! - [new Date(Date.UTC(2001, 0, 1)), "blue"] -]) -``` -```js -map2.get(new Date(Date.UTC(2001, 0, 1))) // "blue"; this still works… -``` -```js -[...map2.keys()] // [978307200000]; but the key isn’t a Date -``` - -While InternMap uses *object*.valueOf by default to compute the intern key, you can pass a key function as a second argument to the constructor to change the behavior. For example, if you use JSON.stringify, you can use arrays as compound keys (assuming that the array elements can be serialized to JSON). - -```js -map3 = new InternMap([ - [["foo", "bar"], 1], - [["foo", "baz"], 2], - [["goo", "bee"], 3] -], JSON.stringify) -``` -```js -map3.get(["foo", "baz"]) // 2 -``` - -There’s an **InternSet** class, too. - -```js -set = new InternSet([ - new Date(Date.UTC(2000, 0, 1)), - new Date(Date.UTC(2001, 0, 1)), - new Date(Date.UTC(2001, 0, 1)) -]) -``` diff --git a/build_vtk_bundle/node_modules/internmap/package.json b/build_vtk_bundle/node_modules/internmap/package.json deleted file mode 100644 index ad37cab1..00000000 --- a/build_vtk_bundle/node_modules/internmap/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "internmap", - "version": "2.0.3", - "description": "Map and Set with automatic key interning", - "homepage": "https://github.com/mbostock/internmap/", - "license": "ISC", - "author": { - "name": "Mike Bostock", - "url": "https://bost.ocks.org/mike" - }, - "type": "module", - "main": "src/index.js", - "module": "src/index.js", - "jsdelivr": "dist/internmap.min.js", - "unpkg": "dist/internmap.min.js", - "exports": { - "umd": "./dist/internmap.min.js", - "default": "./src/index.js" - }, - "repository": { - "type": "git", - "url": "https://github.com/mbostock/internmap.git" - }, - "files": [ - "dist/**/*.js", - "src/**/*.js" - ], - "scripts": { - "test": "mocha 'test/**/*-test.js' && eslint src test", - "prepublishOnly": "rm -rf dist && yarn test && rollup -c", - "postpublish": "git push && git push --tags" - }, - "sideEffects": false, - "devDependencies": { - "eslint": "^7.32.0", - "mocha": "^9.1.1", - "rollup": "^2.56.3", - "rollup-plugin-terser": "^7.0.2" - }, - "engines": { - "node": ">=12" - } -} diff --git a/build_vtk_bundle/node_modules/internmap/src/index.js b/build_vtk_bundle/node_modules/internmap/src/index.js deleted file mode 100644 index 6cdf1a8b..00000000 --- a/build_vtk_bundle/node_modules/internmap/src/index.js +++ /dev/null @@ -1,61 +0,0 @@ -export class InternMap extends Map { - constructor(entries, key = keyof) { - super(); - Object.defineProperties(this, {_intern: {value: new Map()}, _key: {value: key}}); - if (entries != null) for (const [key, value] of entries) this.set(key, value); - } - get(key) { - return super.get(intern_get(this, key)); - } - has(key) { - return super.has(intern_get(this, key)); - } - set(key, value) { - return super.set(intern_set(this, key), value); - } - delete(key) { - return super.delete(intern_delete(this, key)); - } -} - -export class InternSet extends Set { - constructor(values, key = keyof) { - super(); - Object.defineProperties(this, {_intern: {value: new Map()}, _key: {value: key}}); - if (values != null) for (const value of values) this.add(value); - } - has(value) { - return super.has(intern_get(this, value)); - } - add(value) { - return super.add(intern_set(this, value)); - } - delete(value) { - return super.delete(intern_delete(this, value)); - } -} - -function intern_get({_intern, _key}, value) { - const key = _key(value); - return _intern.has(key) ? _intern.get(key) : value; -} - -function intern_set({_intern, _key}, value) { - const key = _key(value); - if (_intern.has(key)) return _intern.get(key); - _intern.set(key, value); - return value; -} - -function intern_delete({_intern, _key}, value) { - const key = _key(value); - if (_intern.has(key)) { - value = _intern.get(key); - _intern.delete(key); - } - return value; -} - -function keyof(value) { - return value !== null && typeof value === "object" ? value.valueOf() : value; -} diff --git a/build_vtk_bundle/node_modules/interpret/CHANGELOG b/build_vtk_bundle/node_modules/interpret/CHANGELOG deleted file mode 100644 index cbc8a8af..00000000 --- a/build_vtk_bundle/node_modules/interpret/CHANGELOG +++ /dev/null @@ -1,115 +0,0 @@ -v1.0.3: - date: 2017-04-18 - changes: - - fix buble support -v1.0.2: - date: 2017-03-29 - changes: - - add support for coffeescript (now with no hyphen) -v1.0.1: - date: 2016-05-01 - changes: - - add support for buble -v1.0.0: - date: 2015-11-18 - changes: - - add support for babel-register - - go stable! -v0.6.6: - date: 2015-09-21 - changes: - - add support for ts-node (formerly typescript-node) -v0.6.5: - date: 2015-07-22 - changes: - - add support for typescript 1.5 via typescript-node -v0.6.4: - date: 2015-07-07 - changes: - - add support for earlgrey -v0.6.3: - date: 2015-07-03 - changes: - - prefer babel/core to babel -v0.6.2: - date: 2015-05-20 - changes: - - update module list for iced coffee-script -v0.6.1: - date: 2015-05-20 - changes: - - Fix toml loader. -v0.6.0: - date: 2015-05-19 - changes: - - Combine fallbacks and loaders into `extensions`. - - Provide implementation guidance. -v0.5.1: - date: 2015-03-01 - changes: - - Add support for CirruScript. -v0.5.0: - date: 2015-02-27 - changes: - - Refactor es6 support via Babel (formerly 6to5) -v0.4.3: - date: 2015-02-09 - changes: - - Switch support from typescript-require to typescript-register. -v0.4.2: - date: 2015-01-16 - changes: - - Add support for wisp. -v0.4.1: - date: 2015-01-10 - changes: - - Add support for 6to5 (es6) -v0.4.0: - date: 2014-01-09 - changes: - - Add support for fallback (legacy) modules - - Add support for module configurations -v0.3.10: - date: 2014-12-17 - changes: - - Add support for json5. -v0.3.9: - date: 2014-12-08 - changes: - - Add support for literate iced coffee. -v0.3.8: - date: 2014-11-20 - changes: - - Add support for [cjsx](https://github.com/jsdf/coffee-react). -v0.3.7: - date: 2014-09-08 - changes: - - Add support for [TypeScript](http://www.typescriptlang.org/). -v0.3.6: - date: 2014-08-25 - changes: - - Add support for coffee.md. -v0.3.5: - date: 2014-07-03 - changes: - - Add support for jsx. -v0.3.4: - date: 2014-06-27 - changes: - - Make .js first jsVariant entry. -v0.3.3: - date: 2014-06-02 - changes: - - Fix casing on livescript dependency. -v0.3.0: - date: 2014-04-20 - changes: - - Simplify loading of coffee-script and iced-coffee-script. -v0.2.0: - date: 2014-04-20 - changes: - - Move module loading into rechoir. -v0.1.0: - date: 2014-04-20 - changes: - - Initial public release. diff --git a/build_vtk_bundle/node_modules/interpret/LICENSE b/build_vtk_bundle/node_modules/interpret/LICENSE deleted file mode 100644 index 7d7525da..00000000 --- a/build_vtk_bundle/node_modules/interpret/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) 2014-2018 Tyler Kellen , Blaine Bublitz , and Eric Schoffstall - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/interpret/README.md b/build_vtk_bundle/node_modules/interpret/README.md deleted file mode 100644 index 4dffc994..00000000 --- a/build_vtk_bundle/node_modules/interpret/README.md +++ /dev/null @@ -1,187 +0,0 @@ -

- - - -

- -# interpret - -[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url] - -A dictionary of file extensions and associated module loaders. - -## What is it -This is used by [Liftoff](http://github.com/tkellen/node-liftoff) to automatically require dependencies for configuration files, and by [rechoir](http://github.com/tkellen/node-rechoir) for registering module loaders. - -## API - -### extensions -Map file types to modules which provide a [require.extensions] loader. - -```js -{ - '.babel.js': [ - { - module: '@babel/register', - register: function(hook) { - // register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353 - // which only captures the final extension (.babel.js -> .js) - hook({ extensions: '.js' }); - }, - }, - { - module: 'babel-register', - register: function(hook) { - hook({ extensions: '.js' }); - }, - }, - { - module: 'babel-core/register', - register: function(hook) { - hook({ extensions: '.js' }); - }, - }, - { - module: 'babel/register', - register: function(hook) { - hook({ extensions: '.js' }); - }, - }, - ], - '.babel.ts': [ - { - module: '@babel/register', - register: function(hook) { - hook({ extensions: '.ts' }); - }, - }, - ], - '.buble.js': 'buble/register', - '.cirru': 'cirru-script/lib/register', - '.cjsx': 'node-cjsx/register', - '.co': 'coco', - '.coffee': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'], - '.coffee.md': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'], - '.csv': 'require-csv', - '.eg': 'earlgrey/register', - '.esm.js': { - module: 'esm', - register: function(hook) { - // register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353 - // which only captures the final extension (.babel.js -> .js) - var esmLoader = hook(module); - require.extensions['.js'] = esmLoader('module')._extensions['.js']; - }, - }, - '.iced': ['iced-coffee-script/register', 'iced-coffee-script'], - '.iced.md': 'iced-coffee-script/register', - '.ini': 'require-ini', - '.js': null, - '.json': null, - '.json5': 'json5/lib/require', - '.jsx': [ - { - module: '@babel/register', - register: function(hook) { - hook({ extensions: '.jsx' }); - }, - }, - { - module: 'babel-register', - register: function(hook) { - hook({ extensions: '.jsx' }); - }, - }, - { - module: 'babel-core/register', - register: function(hook) { - hook({ extensions: '.jsx' }); - }, - }, - { - module: 'babel/register', - register: function(hook) { - hook({ extensions: '.jsx' }); - }, - }, - { - module: 'node-jsx', - register: function(hook) { - hook.install({ extension: '.jsx', harmony: true }); - }, - }, - ], - '.litcoffee': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'], - '.liticed': 'iced-coffee-script/register', - '.ls': ['livescript', 'LiveScript'], - '.mjs': '/absolute/path/to/interpret/mjs-stub.js', - '.node': null, - '.toml': { - module: 'toml-require', - register: function(hook) { - hook.install(); - }, - }, - '.ts': [ - 'ts-node/register', - 'typescript-node/register', - 'typescript-register', - 'typescript-require', - 'sucrase/register/ts', - { - module: '@babel/register', - register: function(hook) { - hook({ extensions: '.ts' }); - }, - }, - ], - '.tsx': [ - 'ts-node/register', - 'typescript-node/register', - 'sucrase/register', - { - module: '@babel/register', - register: function(hook) { - hook({ extensions: '.tsx' }); - }, - }, - ], - '.wisp': 'wisp/engine/node', - '.xml': 'require-xml', - '.yaml': 'require-yaml', - '.yml': 'require-yaml', -} -``` - -### jsVariants -Same as above, but only include the extensions which are javascript variants. - -## How to use it - -Consumers should use the exported `extensions` or `jsVariants` object to determine which module should be loaded for a given extension. If a matching extension is found, consumers should do the following: - -1. If the value is null, do nothing. - -2. If the value is a string, try to require it. - -3. If the value is an object, try to require the `module` property. If successful, the `register` property (a function) should be called with the module passed as the first argument. - -4. If the value is an array, iterate over it, attempting step #2 or #3 until one of the attempts does not throw. - -[require.extensions]: http://nodejs.org/api/globals.html#globals_require_extensions - -[downloads-image]: http://img.shields.io/npm/dm/interpret.svg -[npm-url]: https://www.npmjs.com/package/interpret -[npm-image]: http://img.shields.io/npm/v/interpret.svg - -[travis-url]: https://travis-ci.org/gulpjs/interpret -[travis-image]: http://img.shields.io/travis/gulpjs/interpret.svg?label=travis-ci - -[appveyor-url]: https://ci.appveyor.com/project/gulpjs/interpret -[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/interpret.svg?label=appveyor - -[coveralls-url]: https://coveralls.io/r/gulpjs/interpret -[coveralls-image]: http://img.shields.io/coveralls/gulpjs/interpret/master.svg - -[gitter-url]: https://gitter.im/gulpjs/gulp -[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg diff --git a/build_vtk_bundle/node_modules/interpret/index.js b/build_vtk_bundle/node_modules/interpret/index.js deleted file mode 100644 index a5c04f74..00000000 --- a/build_vtk_bundle/node_modules/interpret/index.js +++ /dev/null @@ -1,168 +0,0 @@ -var path = require('path'); - -var mjsStub = path.join(__dirname, 'mjs-stub'); - -var extensions = { - '.babel.js': [ - { - module: '@babel/register', - register: function(hook) { - // register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353 - // which only captures the final extension (.babel.js -> .js) - hook({ extensions: '.js' }); - }, - }, - { - module: 'babel-register', - register: function(hook) { - hook({ extensions: '.js' }); - }, - }, - { - module: 'babel-core/register', - register: function(hook) { - hook({ extensions: '.js' }); - }, - }, - { - module: 'babel/register', - register: function(hook) { - hook({ extensions: '.js' }); - }, - }, - ], - '.babel.ts': [ - { - module: '@babel/register', - register: function(hook) { - hook({ extensions: '.ts' }); - }, - }, - ], - '.buble.js': 'buble/register', - '.cirru': 'cirru-script/lib/register', - '.cjsx': 'node-cjsx/register', - '.co': 'coco', - '.coffee': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'], - '.coffee.md': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'], - '.csv': 'require-csv', - '.eg': 'earlgrey/register', - '.esm.js': { - module: 'esm', - register: function(hook) { - // register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353 - // which only captures the final extension (.babel.js -> .js) - var esmLoader = hook(module); - require.extensions['.js'] = esmLoader('module')._extensions['.js']; - }, - }, - '.iced': ['iced-coffee-script/register', 'iced-coffee-script'], - '.iced.md': 'iced-coffee-script/register', - '.ini': 'require-ini', - '.js': null, - '.json': null, - '.json5': 'json5/lib/require', - '.jsx': [ - { - module: '@babel/register', - register: function(hook) { - hook({ extensions: '.jsx' }); - }, - }, - { - module: 'babel-register', - register: function(hook) { - hook({ extensions: '.jsx' }); - }, - }, - { - module: 'babel-core/register', - register: function(hook) { - hook({ extensions: '.jsx' }); - }, - }, - { - module: 'babel/register', - register: function(hook) { - hook({ extensions: '.jsx' }); - }, - }, - { - module: 'node-jsx', - register: function(hook) { - hook.install({ extension: '.jsx', harmony: true }); - }, - }, - ], - '.litcoffee': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'], - '.liticed': 'iced-coffee-script/register', - '.ls': ['livescript', 'LiveScript'], - '.mjs': mjsStub, - '.node': null, - '.toml': { - module: 'toml-require', - register: function(hook) { - hook.install(); - }, - }, - '.ts': [ - 'ts-node/register', - 'typescript-node/register', - 'typescript-register', - 'typescript-require', - 'sucrase/register/ts', - { - module: '@babel/register', - register: function(hook) { - hook({ extensions: '.ts' }); - }, - }, - ], - '.tsx': [ - 'ts-node/register', - 'typescript-node/register', - 'sucrase/register', - { - module: '@babel/register', - register: function(hook) { - hook({ extensions: '.tsx' }); - }, - }, - ], - '.wisp': 'wisp/engine/node', - '.xml': 'require-xml', - '.yaml': 'require-yaml', - '.yml': 'require-yaml', -}; - -var jsVariantExtensions = [ - '.js', - '.babel.js', - '.babel.ts', - '.buble.js', - '.cirru', - '.cjsx', - '.co', - '.coffee', - '.coffee.md', - '.eg', - '.esm.js', - '.iced', - '.iced.md', - '.jsx', - '.litcoffee', - '.liticed', - '.ls', - '.mjs', - '.ts', - '.tsx', - '.wisp', -]; - -module.exports = { - extensions: extensions, - jsVariants: jsVariantExtensions.reduce(function(result, ext) { - result[ext] = extensions[ext]; - return result; - }, {}), -}; diff --git a/build_vtk_bundle/node_modules/interpret/mjs-stub.js b/build_vtk_bundle/node_modules/interpret/mjs-stub.js deleted file mode 100644 index 6a1af956..00000000 --- a/build_vtk_bundle/node_modules/interpret/mjs-stub.js +++ /dev/null @@ -1 +0,0 @@ -require.extensions['.mjs'] = null; diff --git a/build_vtk_bundle/node_modules/interpret/package.json b/build_vtk_bundle/node_modules/interpret/package.json deleted file mode 100644 index 06535164..00000000 --- a/build_vtk_bundle/node_modules/interpret/package.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "name": "interpret", - "version": "1.4.0", - "description": "A dictionary of file extensions and associated module loaders.", - "author": "Gulp Team (http://gulpjs.com/)", - "contributors": [ - "Blaine Bublitz ", - "Tyler Kellen (http://goingslowly.com/)" - ], - "repository": "gulpjs/interpret", - "license": "MIT", - "engines": { - "node": ">= 0.10" - }, - "main": "index.js", - "files": [ - "LICENSE", - "index.js", - "mjs-stub.js" - ], - "scripts": { - "lint": "eslint .", - "pretest": "rm -rf tmp/ && npm run lint", - "test": "mocha --async-only", - "cover": "istanbul cover _mocha --report lcovonly", - "coveralls": "npm run cover && istanbul-coveralls" - }, - "dependencies": {}, - "devDependencies": { - "eslint": "^2.13.0", - "eslint-config-gulp": "^3.0.1", - "expect": "^1.20.2", - "istanbul": "^0.4.3", - "istanbul-coveralls": "^1.0.3", - "mocha": "^3.5.3", - "parse-node-version": "^1.0.0", - "rechoir": "^0.6.2", - "shelljs": "0.7.5", - "trash-cli": "^3.0.0" - }, - "keywords": [ - "cirru-script", - "cjsx", - "co", - "coco", - "coffee", - "coffee-script", - "coffee.md", - "coffeescript", - "csv", - "earlgrey", - "es", - "es6", - "iced", - "iced.md", - "iced-coffee-script", - "ini", - "js", - "json", - "json5", - "jsx", - "react", - "litcoffee", - "liticed", - "ls", - "livescript", - "toml", - "ts", - "typescript", - "wisp", - "xml", - "yaml", - "yml" - ] -} diff --git a/build_vtk_bundle/node_modules/is-core-module/.eslintrc b/build_vtk_bundle/node_modules/is-core-module/.eslintrc deleted file mode 100644 index f2e07268..00000000 --- a/build_vtk_bundle/node_modules/is-core-module/.eslintrc +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": "@ljharb", - "root": true, - "rules": { - "func-style": 1, - }, - "overrides": [ - { - "files": "test/**", - "rules": { - "global-require": 0, - "max-depth": 0, - "max-lines-per-function": 0, - "no-negated-condition": 0, - }, - }, - ], -} diff --git a/build_vtk_bundle/node_modules/is-core-module/.nycrc b/build_vtk_bundle/node_modules/is-core-module/.nycrc deleted file mode 100644 index bdd626ce..00000000 --- a/build_vtk_bundle/node_modules/is-core-module/.nycrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "all": true, - "check-coverage": false, - "reporter": ["text-summary", "text", "html", "json"], - "exclude": [ - "coverage", - "test" - ] -} diff --git a/build_vtk_bundle/node_modules/is-core-module/CHANGELOG.md b/build_vtk_bundle/node_modules/is-core-module/CHANGELOG.md deleted file mode 100644 index 0177c82b..00000000 --- a/build_vtk_bundle/node_modules/is-core-module/CHANGELOG.md +++ /dev/null @@ -1,218 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [v2.16.1](https://github.com/inspect-js/is-core-module/compare/v2.16.0...v2.16.1) - 2024-12-21 - -### Fixed - -- [Fix] `node:sqlite` is available in node ^22.13 [`#17`](https://github.com/inspect-js/is-core-module/issues/17) - -## [v2.16.0](https://github.com/inspect-js/is-core-module/compare/v2.15.1...v2.16.0) - 2024-12-13 - -### Commits - -- [New] add `node:sqlite` [`1ee94d2`](https://github.com/inspect-js/is-core-module/commit/1ee94d20857e22cdb24e9b4bb1a2097f2e03e26f) -- [Dev Deps] update `auto-changelog`, `tape` [`aa84aa3`](https://github.com/inspect-js/is-core-module/commit/aa84aa34face677f14e08ec1c737f0c4bba27260) - -## [v2.15.1](https://github.com/inspect-js/is-core-module/compare/v2.15.0...v2.15.1) - 2024-08-21 - -### Commits - -- [Tests] add `process.getBuiltinModule` tests [`28c7791`](https://github.com/inspect-js/is-core-module/commit/28c7791c196d58c64cfdf638b7e68ed1b62a4da0) -- [Fix] `test/mock_loader` is no longer exposed as of v22.7 [`68b08b0`](https://github.com/inspect-js/is-core-module/commit/68b08b0d7963447dbffa5142e8810dca550383af) -- [Tests] replace `aud` with `npm audit` [`32f8060`](https://github.com/inspect-js/is-core-module/commit/32f806026dac14f9016be4401a643851240c76b9) -- [Dev Deps] update `mock-property` [`f7d3c8f`](https://github.com/inspect-js/is-core-module/commit/f7d3c8f01e922be49621683eb41477c4f50522e1) -- [Dev Deps] add missing peer dep [`eaee885`](https://github.com/inspect-js/is-core-module/commit/eaee885b67238819e9c8ed5bd2098766e1d05331) - -## [v2.15.0](https://github.com/inspect-js/is-core-module/compare/v2.14.0...v2.15.0) - 2024-07-17 - -### Commits - -- [New] add `node:sea` [`2819fb3`](https://github.com/inspect-js/is-core-module/commit/2819fb3eae312fa64643bc5430ebd06ec0f3fb88) - -## [v2.14.0](https://github.com/inspect-js/is-core-module/compare/v2.13.1...v2.14.0) - 2024-06-20 - -### Commits - -- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `mock-property`, `npmignore`, `tape` [`0e43200`](https://github.com/inspect-js/is-core-module/commit/0e432006d97237cc082d41e6a593e87c81068364) -- [meta] add missing `engines.node` [`4ea3af8`](https://github.com/inspect-js/is-core-module/commit/4ea3af88891a1d4f96026f0ec0ef08c67cd1bd24) -- [New] add `test/mock_loader` [`e9fbd29`](https://github.com/inspect-js/is-core-module/commit/e9fbd2951383be070aeffb9ebbf3715237282610) -- [Deps] update `hasown` [`57f1940`](https://github.com/inspect-js/is-core-module/commit/57f1940947b3e368abdf529232d2f17d88909358) - -## [v2.13.1](https://github.com/inspect-js/is-core-module/compare/v2.13.0...v2.13.1) - 2023-10-20 - -### Commits - -- [Refactor] use `hasown` instead of `has` [`0e52096`](https://github.com/inspect-js/is-core-module/commit/0e520968b0a725276b67420ab4b877486b243ae0) -- [Dev Deps] update `mock-property`, `tape` [`8736b35`](https://github.com/inspect-js/is-core-module/commit/8736b35464d0f297b55da2c6b30deee04b8303c5) - -## [v2.13.0](https://github.com/inspect-js/is-core-module/compare/v2.12.1...v2.13.0) - 2023-08-05 - -### Commits - -- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `semver`, `tape` [`c75b263`](https://github.com/inspect-js/is-core-module/commit/c75b263d047cb53430c3970107e5eb64d6cd6c0c) -- [New] `node:test/reporters` and `wasi`/`node:wasi` are in v18.17 [`d76cbf8`](https://github.com/inspect-js/is-core-module/commit/d76cbf8e9b208acfd98913fed5a5f45cb15fe5dc) - -## [v2.12.1](https://github.com/inspect-js/is-core-module/compare/v2.12.0...v2.12.1) - 2023-05-16 - -### Commits - -- [Fix] `test/reporters` now requires the `node:` prefix as of v20.2 [`12183d0`](https://github.com/inspect-js/is-core-module/commit/12183d0d8e4edf56b6ce18a1b3be54bfce10175b) - -## [v2.12.0](https://github.com/inspect-js/is-core-module/compare/v2.11.0...v2.12.0) - 2023-04-10 - -### Commits - -- [actions] update rebase action to use reusable workflow [`c0a7251`](https://github.com/inspect-js/is-core-module/commit/c0a7251f734f3c621932c5fcdfd1bf966b42ca32) -- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`9ae8b7f`](https://github.com/inspect-js/is-core-module/commit/9ae8b7fac03c369861d0991b4a2ce8d4848e6a7d) -- [New] `test/reporters` added in v19.9, `wasi` added in v20 [`9d5341a`](https://github.com/inspect-js/is-core-module/commit/9d5341ab32053f25b7fa7db3c0e18461db24a79c) -- [Dev Deps] add missing `in-publish` dep [`5980245`](https://github.com/inspect-js/is-core-module/commit/59802456e9ac919fa748f53be9d8fbf304a197df) - -## [v2.11.0](https://github.com/inspect-js/is-core-module/compare/v2.10.0...v2.11.0) - 2022-10-18 - -### Commits - -- [meta] use `npmignore` to autogenerate an npmignore file [`3360011`](https://github.com/inspect-js/is-core-module/commit/33600118857b46177178072fba2affcdeb009d12) -- [Dev Deps] update `aud`, `tape` [`651c6b0`](https://github.com/inspect-js/is-core-module/commit/651c6b0cc2799d4130866cf43ad333dcade3d26c) -- [New] `inspector/promises` and `node:inspector/promises` is now available in node 19 [`22d332f`](https://github.com/inspect-js/is-core-module/commit/22d332fe22ac050305444e0781ff85af819abcb0) - -## [v2.10.0](https://github.com/inspect-js/is-core-module/compare/v2.9.0...v2.10.0) - 2022-08-03 - -### Commits - -- [New] `node:test` is now available in node ^16.17 [`e8fd36e`](https://github.com/inspect-js/is-core-module/commit/e8fd36e9b86c917775a07cc473b62a3294f459f2) -- [Tests] improve skip message [`c014a4c`](https://github.com/inspect-js/is-core-module/commit/c014a4c0cd6eb15fff573ae4709191775e70cab4) - -## [v2.9.0](https://github.com/inspect-js/is-core-module/compare/v2.8.1...v2.9.0) - 2022-04-19 - -### Commits - -- [New] add `node:test`, in node 18+ [`f853eca`](https://github.com/inspect-js/is-core-module/commit/f853eca801d0a7d4e1dbb670f1b6d9837d9533c5) -- [Tests] use `mock-property` [`03b3644`](https://github.com/inspect-js/is-core-module/commit/03b3644dff4417f4ba5a7d0aa0138f5f6b3e5c46) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`7c0e2d0`](https://github.com/inspect-js/is-core-module/commit/7c0e2d06ed2a89acf53abe2ab34d703ed5b03455) -- [meta] simplify "exports" [`d6ed201`](https://github.com/inspect-js/is-core-module/commit/d6ed201eba7fbba0e59814a9050fc49a6e9878c8) - -## [v2.8.1](https://github.com/inspect-js/is-core-module/compare/v2.8.0...v2.8.1) - 2022-01-05 - -### Commits - -- [actions] reuse common workflows [`cd2cf9b`](https://github.com/inspect-js/is-core-module/commit/cd2cf9b3b66c8d328f65610efe41e9325db7716d) -- [Fix] update node 0.4 results [`062195d`](https://github.com/inspect-js/is-core-module/commit/062195d89f0876a88b95d378b43f7fcc1205bc5b) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape` [`0790b62`](https://github.com/inspect-js/is-core-module/commit/0790b6222848c6167132f9f73acc3520fa8d1298) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`7d139a6`](https://github.com/inspect-js/is-core-module/commit/7d139a6d767709eabf0a0251e074ec1fb230c06e) -- [Tests] run `nyc` in `tests-only`, not `test` [`780e8a0`](https://github.com/inspect-js/is-core-module/commit/780e8a049951c71cf78b1707f0871c48a28bde14) - -## [v2.8.0](https://github.com/inspect-js/is-core-module/compare/v2.7.0...v2.8.0) - 2021-10-14 - -### Commits - -- [actions] update codecov uploader [`0cfe94e`](https://github.com/inspect-js/is-core-module/commit/0cfe94e106a7d005ea03e008c0a21dec13a77904) -- [New] add `readline/promises` to node v17+ [`4f78c30`](https://github.com/inspect-js/is-core-module/commit/4f78c3008b1b58b4db6dc91d99610b1bc859da7e) -- [Tests] node ^14.18 supports `node:` prefixes for CJS [`43e2f17`](https://github.com/inspect-js/is-core-module/commit/43e2f177452cea2f0eaf34f61b5407217bbdb6f4) - -## [v2.7.0](https://github.com/inspect-js/is-core-module/compare/v2.6.0...v2.7.0) - 2021-09-27 - -### Commits - -- [New] node `v14.18` added `node:`-prefixed core modules to `require` [`6d943ab`](https://github.com/inspect-js/is-core-module/commit/6d943abe81382b9bbe344384d80fbfebe1cc0526) -- [Tests] add coverage for Object.prototype pollution [`c6baf5f`](https://github.com/inspect-js/is-core-module/commit/c6baf5f942311a1945c1af41167bb80b84df2af7) -- [Dev Deps] update `@ljharb/eslint-config` [`6717f00`](https://github.com/inspect-js/is-core-module/commit/6717f000d063ea57beb772bded36c2f056ac404c) -- [eslint] fix linter warning [`594c10b`](https://github.com/inspect-js/is-core-module/commit/594c10bb7d39d7eb00925c90924199ff596184b2) -- [meta] add `sideEffects` flag [`c32cfa5`](https://github.com/inspect-js/is-core-module/commit/c32cfa5195632944c4dd4284a142b8476e75be13) - -## [v2.6.0](https://github.com/inspect-js/is-core-module/compare/v2.5.0...v2.6.0) - 2021-08-17 - -### Commits - -- [Dev Deps] update `eslint`, `tape` [`6cc928f`](https://github.com/inspect-js/is-core-module/commit/6cc928f8a4bba66aeeccc4f6beeac736d4bd3081) -- [New] add `stream/consumers` to node `>= 16.7` [`a1a423e`](https://github.com/inspect-js/is-core-module/commit/a1a423e467e4cc27df180234fad5bab45943e67d) -- [Refactor] Remove duplicated `&&` operand [`86faea7`](https://github.com/inspect-js/is-core-module/commit/86faea738213a2433c62d1098488dc9314dca832) -- [Tests] include prereleases [`a4da7a6`](https://github.com/inspect-js/is-core-module/commit/a4da7a6abf7568e2aa4fd98e69452179f1850963) - -## [v2.5.0](https://github.com/inspect-js/is-core-module/compare/v2.4.0...v2.5.0) - 2021-07-12 - -### Commits - -- [Dev Deps] update `auto-changelog`, `eslint` [`6334cc9`](https://github.com/inspect-js/is-core-module/commit/6334cc94f3af7469685bd8f236740991baaf2705) -- [New] add `stream/web` to node v16.5+ [`17ac59b`](https://github.com/inspect-js/is-core-module/commit/17ac59b662d63e220a2e5728625f005c24f177b2) - -## [v2.4.0](https://github.com/inspect-js/is-core-module/compare/v2.3.0...v2.4.0) - 2021-05-09 - -### Commits - -- [readme] add actions and codecov badges [`82b7faa`](https://github.com/inspect-js/is-core-module/commit/82b7faa12b56dbe47fbea67e1a5b9e447027ba40) -- [Dev Deps] update `@ljharb/eslint-config`, `aud` [`8096868`](https://github.com/inspect-js/is-core-module/commit/8096868c024a161ccd4d44110b136763e92eace8) -- [Dev Deps] update `eslint` [`6726824`](https://github.com/inspect-js/is-core-module/commit/67268249b88230018c510f6532a8046d7326346f) -- [New] add `diagnostics_channel` to node `^14.17` [`86c6563`](https://github.com/inspect-js/is-core-module/commit/86c65634201b8ff9b3e48a9a782594579c7f5c3c) -- [meta] fix prepublish script [`697a01e`](https://github.com/inspect-js/is-core-module/commit/697a01e3c9c0be074066520954f30fb28532ec57) - -## [v2.3.0](https://github.com/inspect-js/is-core-module/compare/v2.2.0...v2.3.0) - 2021-04-24 - -### Commits - -- [meta] do not publish github action workflow files [`060d4bb`](https://github.com/inspect-js/is-core-module/commit/060d4bb971a29451c19ff336eb56bee27f9fa95a) -- [New] add support for `node:` prefix, in node 16+ [`7341223`](https://github.com/inspect-js/is-core-module/commit/73412230a769f6e81c05eea50b6520cebf54ed2f) -- [actions] use `node/install` instead of `node/run`; use `codecov` action [`016269a`](https://github.com/inspect-js/is-core-module/commit/016269abae9f6657a5254adfbb813f09a05067f9) -- [patch] remove unneeded `.0` in version ranges [`cb466a6`](https://github.com/inspect-js/is-core-module/commit/cb466a6d89e52b8389e5c12715efcd550c41cea3) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`c9f9c39`](https://github.com/inspect-js/is-core-module/commit/c9f9c396ace60ef81906f98059c064e6452473ed) -- [actions] update workflows [`3ee4a89`](https://github.com/inspect-js/is-core-module/commit/3ee4a89fd5a02fccd43882d905448ea6a98e9a3c) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config` [`dee4fed`](https://github.com/inspect-js/is-core-module/commit/dee4fed79690c1d43a22f7fa9426abebdc6d727f) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config` [`7d046ba`](https://github.com/inspect-js/is-core-module/commit/7d046ba07ae8c9292e43652694ca808d7b309de8) -- [meta] use `prepublishOnly` script for npm 7+ [`149e677`](https://github.com/inspect-js/is-core-module/commit/149e6771a5ede6d097e71785b467a9c4b4977cc7) -- [readme] remove travis badge [`903b51d`](https://github.com/inspect-js/is-core-module/commit/903b51d6b69b98abeabfbc3695c345b02646f19c) - -## [v2.2.0](https://github.com/inspect-js/is-core-module/compare/v2.1.0...v2.2.0) - 2020-11-26 - -### Commits - -- [Tests] migrate tests to Github Actions [`c919f57`](https://github.com/inspect-js/is-core-module/commit/c919f573c0a92d10a0acad0b650b5aecb033d426) -- [patch] `core.json`: %s/ /\t/g [`db3f685`](https://github.com/inspect-js/is-core-module/commit/db3f68581f53e73cc09cd675955eb1bdd6a5a39b) -- [Tests] run `nyc` on all tests [`b2f925f`](https://github.com/inspect-js/is-core-module/commit/b2f925f8866f210ef441f39fcc8cc42692ab89b1) -- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`; add `safe-publish-latest` [`89f02a2`](https://github.com/inspect-js/is-core-module/commit/89f02a2b4162246dea303a6ee31bb9a550b05c72) -- [New] add `path/posix`, `path/win32`, `util/types` [`77f94f1`](https://github.com/inspect-js/is-core-module/commit/77f94f1e90ffd7c0be2a3f1aa8574ebf7fd981b3) - -## [v2.1.0](https://github.com/inspect-js/is-core-module/compare/v2.0.0...v2.1.0) - 2020-11-04 - -### Commits - -- [Dev Deps] update `eslint` [`5e0034e`](https://github.com/inspect-js/is-core-module/commit/5e0034eae57c09c8f1bd769f502486a00f56c6e4) -- [New] Add `diagnostics_channel` [`c2d83d0`](https://github.com/inspect-js/is-core-module/commit/c2d83d0a0225a1a658945d9bab7036ea347d29ec) - -## [v2.0.0](https://github.com/inspect-js/is-core-module/compare/v1.0.2...v2.0.0) - 2020-09-29 - -### Commits - -- v2 implementation [`865aeb5`](https://github.com/inspect-js/is-core-module/commit/865aeb5ca0e90248a3dfff5d7622e4751fdeb9cd) -- Only apps should have lockfiles [`5a5e660`](https://github.com/inspect-js/is-core-module/commit/5a5e660d568e37eb44e17fb1ebb12a105205fc2b) -- Initial commit for v2 [`5a51524`](https://github.com/inspect-js/is-core-module/commit/5a51524e06f92adece5fbb138c69b7b9748a2348) -- Tests [`116eae4`](https://github.com/inspect-js/is-core-module/commit/116eae4fccd01bc72c1fd3cc4b7561c387afc496) -- [meta] add `auto-changelog` [`c24388b`](https://github.com/inspect-js/is-core-module/commit/c24388bee828d223040519d1f5b226ca35beee63) -- [actions] add "Automatic Rebase" and "require allow edits" actions [`34292db`](https://github.com/inspect-js/is-core-module/commit/34292dbcbadae0868aff03c22dbd8b7b8a11558a) -- [Tests] add `npm run lint` [`4f9eeee`](https://github.com/inspect-js/is-core-module/commit/4f9eeee7ddff10698bbf528620f4dc8d4fa3e697) -- [readme] fix travis badges, https all URLs [`e516a73`](https://github.com/inspect-js/is-core-module/commit/e516a73b0dccce20938c432b1ba512eae8eff9e9) -- [meta] create FUNDING.yml [`1aabebc`](https://github.com/inspect-js/is-core-module/commit/1aabebca98d01f8a04e46bc2e2520fa93cf21ac6) -- [Fix] `domain`: domain landed sometime > v0.7.7 and <= v0.7.12 [`2df7d37`](https://github.com/inspect-js/is-core-module/commit/2df7d37595d41b15eeada732b706b926c2771655) -- [Fix] `sys`: worked in 0.6, not 0.7, and 0.8+ [`a75c134`](https://github.com/inspect-js/is-core-module/commit/a75c134229e1e9441801f6b73f6a52489346eb65) - -## [v1.0.2](https://github.com/inspect-js/is-core-module/compare/v1.0.1...v1.0.2) - 2014-09-28 - -### Commits - -- simpler [`66fe90f`](https://github.com/inspect-js/is-core-module/commit/66fe90f9771581b9adc0c3900baa52c21b5baea2) - -## [v1.0.1](https://github.com/inspect-js/is-core-module/compare/v1.0.0...v1.0.1) - 2014-09-28 - -### Commits - -- remove stupid [`f21f906`](https://github.com/inspect-js/is-core-module/commit/f21f906f882c2bd656a5fc5ed6fbe48ddaffb2ac) -- update readme [`1eff0ec`](https://github.com/inspect-js/is-core-module/commit/1eff0ec69798d1ec65771552d1562911e90a8027) - -## v1.0.0 - 2014-09-28 - -### Commits - -- init [`48e5e76`](https://github.com/inspect-js/is-core-module/commit/48e5e76cac378fddb8c1f7d4055b8dfc943d6b96) diff --git a/build_vtk_bundle/node_modules/is-core-module/LICENSE b/build_vtk_bundle/node_modules/is-core-module/LICENSE deleted file mode 100644 index 2e502872..00000000 --- a/build_vtk_bundle/node_modules/is-core-module/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Dave Justice - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/is-core-module/README.md b/build_vtk_bundle/node_modules/is-core-module/README.md deleted file mode 100644 index 062d9068..00000000 --- a/build_vtk_bundle/node_modules/is-core-module/README.md +++ /dev/null @@ -1,40 +0,0 @@ -# is-core-module [![Version Badge][2]][1] - -[![github actions][actions-image]][actions-url] -[![coverage][codecov-image]][codecov-url] -[![dependency status][5]][6] -[![dev dependency status][7]][8] -[![License][license-image]][license-url] -[![Downloads][downloads-image]][downloads-url] - -[![npm badge][11]][1] - -Is this specifier a node.js core module? Optionally provide a node version to check; defaults to the current node version. - -## Example - -```js -var isCore = require('is-core-module'); -var assert = require('assert'); -assert(isCore('fs')); -assert(!isCore('butts')); -``` - -## Tests -Clone the repo, `npm install`, and run `npm test` - -[1]: https://npmjs.org/package/is-core-module -[2]: https://versionbadg.es/inspect-js/is-core-module.svg -[5]: https://david-dm.org/inspect-js/is-core-module.svg -[6]: https://david-dm.org/inspect-js/is-core-module -[7]: https://david-dm.org/inspect-js/is-core-module/dev-status.svg -[8]: https://david-dm.org/inspect-js/is-core-module#info=devDependencies -[11]: https://nodei.co/npm/is-core-module.png?downloads=true&stars=true -[license-image]: https://img.shields.io/npm/l/is-core-module.svg -[license-url]: LICENSE -[downloads-image]: https://img.shields.io/npm/dm/is-core-module.svg -[downloads-url]: https://npm-stat.com/charts.html?package=is-core-module -[codecov-image]: https://codecov.io/gh/inspect-js/is-core-module/branch/main/graphs/badge.svg -[codecov-url]: https://app.codecov.io/gh/inspect-js/is-core-module/ -[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-core-module -[actions-url]: https://github.com/inspect-js/is-core-module/actions diff --git a/build_vtk_bundle/node_modules/is-core-module/core.json b/build_vtk_bundle/node_modules/is-core-module/core.json deleted file mode 100644 index 930ec682..00000000 --- a/build_vtk_bundle/node_modules/is-core-module/core.json +++ /dev/null @@ -1,162 +0,0 @@ -{ - "assert": true, - "node:assert": [">= 14.18 && < 15", ">= 16"], - "assert/strict": ">= 15", - "node:assert/strict": ">= 16", - "async_hooks": ">= 8", - "node:async_hooks": [">= 14.18 && < 15", ">= 16"], - "buffer_ieee754": ">= 0.5 && < 0.9.7", - "buffer": true, - "node:buffer": [">= 14.18 && < 15", ">= 16"], - "child_process": true, - "node:child_process": [">= 14.18 && < 15", ">= 16"], - "cluster": ">= 0.5", - "node:cluster": [">= 14.18 && < 15", ">= 16"], - "console": true, - "node:console": [">= 14.18 && < 15", ">= 16"], - "constants": true, - "node:constants": [">= 14.18 && < 15", ">= 16"], - "crypto": true, - "node:crypto": [">= 14.18 && < 15", ">= 16"], - "_debug_agent": ">= 1 && < 8", - "_debugger": "< 8", - "dgram": true, - "node:dgram": [">= 14.18 && < 15", ">= 16"], - "diagnostics_channel": [">= 14.17 && < 15", ">= 15.1"], - "node:diagnostics_channel": [">= 14.18 && < 15", ">= 16"], - "dns": true, - "node:dns": [">= 14.18 && < 15", ">= 16"], - "dns/promises": ">= 15", - "node:dns/promises": ">= 16", - "domain": ">= 0.7.12", - "node:domain": [">= 14.18 && < 15", ">= 16"], - "events": true, - "node:events": [">= 14.18 && < 15", ">= 16"], - "freelist": "< 6", - "fs": true, - "node:fs": [">= 14.18 && < 15", ">= 16"], - "fs/promises": [">= 10 && < 10.1", ">= 14"], - "node:fs/promises": [">= 14.18 && < 15", ">= 16"], - "_http_agent": ">= 0.11.1", - "node:_http_agent": [">= 14.18 && < 15", ">= 16"], - "_http_client": ">= 0.11.1", - "node:_http_client": [">= 14.18 && < 15", ">= 16"], - "_http_common": ">= 0.11.1", - "node:_http_common": [">= 14.18 && < 15", ">= 16"], - "_http_incoming": ">= 0.11.1", - "node:_http_incoming": [">= 14.18 && < 15", ">= 16"], - "_http_outgoing": ">= 0.11.1", - "node:_http_outgoing": [">= 14.18 && < 15", ">= 16"], - "_http_server": ">= 0.11.1", - "node:_http_server": [">= 14.18 && < 15", ">= 16"], - "http": true, - "node:http": [">= 14.18 && < 15", ">= 16"], - "http2": ">= 8.8", - "node:http2": [">= 14.18 && < 15", ">= 16"], - "https": true, - "node:https": [">= 14.18 && < 15", ">= 16"], - "inspector": ">= 8", - "node:inspector": [">= 14.18 && < 15", ">= 16"], - "inspector/promises": [">= 19"], - "node:inspector/promises": [">= 19"], - "_linklist": "< 8", - "module": true, - "node:module": [">= 14.18 && < 15", ">= 16"], - "net": true, - "node:net": [">= 14.18 && < 15", ">= 16"], - "node-inspect/lib/_inspect": ">= 7.6 && < 12", - "node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12", - "node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12", - "os": true, - "node:os": [">= 14.18 && < 15", ">= 16"], - "path": true, - "node:path": [">= 14.18 && < 15", ">= 16"], - "path/posix": ">= 15.3", - "node:path/posix": ">= 16", - "path/win32": ">= 15.3", - "node:path/win32": ">= 16", - "perf_hooks": ">= 8.5", - "node:perf_hooks": [">= 14.18 && < 15", ">= 16"], - "process": ">= 1", - "node:process": [">= 14.18 && < 15", ">= 16"], - "punycode": ">= 0.5", - "node:punycode": [">= 14.18 && < 15", ">= 16"], - "querystring": true, - "node:querystring": [">= 14.18 && < 15", ">= 16"], - "readline": true, - "node:readline": [">= 14.18 && < 15", ">= 16"], - "readline/promises": ">= 17", - "node:readline/promises": ">= 17", - "repl": true, - "node:repl": [">= 14.18 && < 15", ">= 16"], - "node:sea": [">= 20.12 && < 21", ">= 21.7"], - "smalloc": ">= 0.11.5 && < 3", - "node:sqlite": [">= 22.13 && < 23", ">= 23.4"], - "_stream_duplex": ">= 0.9.4", - "node:_stream_duplex": [">= 14.18 && < 15", ">= 16"], - "_stream_transform": ">= 0.9.4", - "node:_stream_transform": [">= 14.18 && < 15", ">= 16"], - "_stream_wrap": ">= 1.4.1", - "node:_stream_wrap": [">= 14.18 && < 15", ">= 16"], - "_stream_passthrough": ">= 0.9.4", - "node:_stream_passthrough": [">= 14.18 && < 15", ">= 16"], - "_stream_readable": ">= 0.9.4", - "node:_stream_readable": [">= 14.18 && < 15", ">= 16"], - "_stream_writable": ">= 0.9.4", - "node:_stream_writable": [">= 14.18 && < 15", ">= 16"], - "stream": true, - "node:stream": [">= 14.18 && < 15", ">= 16"], - "stream/consumers": ">= 16.7", - "node:stream/consumers": ">= 16.7", - "stream/promises": ">= 15", - "node:stream/promises": ">= 16", - "stream/web": ">= 16.5", - "node:stream/web": ">= 16.5", - "string_decoder": true, - "node:string_decoder": [">= 14.18 && < 15", ">= 16"], - "sys": [">= 0.4 && < 0.7", ">= 0.8"], - "node:sys": [">= 14.18 && < 15", ">= 16"], - "test/reporters": ">= 19.9 && < 20.2", - "node:test/reporters": [">= 18.17 && < 19", ">= 19.9", ">= 20"], - "test/mock_loader": ">= 22.3 && < 22.7", - "node:test/mock_loader": ">= 22.3 && < 22.7", - "node:test": [">= 16.17 && < 17", ">= 18"], - "timers": true, - "node:timers": [">= 14.18 && < 15", ">= 16"], - "timers/promises": ">= 15", - "node:timers/promises": ">= 16", - "_tls_common": ">= 0.11.13", - "node:_tls_common": [">= 14.18 && < 15", ">= 16"], - "_tls_legacy": ">= 0.11.3 && < 10", - "_tls_wrap": ">= 0.11.3", - "node:_tls_wrap": [">= 14.18 && < 15", ">= 16"], - "tls": true, - "node:tls": [">= 14.18 && < 15", ">= 16"], - "trace_events": ">= 10", - "node:trace_events": [">= 14.18 && < 15", ">= 16"], - "tty": true, - "node:tty": [">= 14.18 && < 15", ">= 16"], - "url": true, - "node:url": [">= 14.18 && < 15", ">= 16"], - "util": true, - "node:util": [">= 14.18 && < 15", ">= 16"], - "util/types": ">= 15.3", - "node:util/types": ">= 16", - "v8/tools/arguments": ">= 10 && < 12", - "v8/tools/codemap": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/consarray": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/csvparser": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/logreader": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/profile_view": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/splaytree": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8": ">= 1", - "node:v8": [">= 14.18 && < 15", ">= 16"], - "vm": true, - "node:vm": [">= 14.18 && < 15", ">= 16"], - "wasi": [">= 13.4 && < 13.5", ">= 18.17 && < 19", ">= 20"], - "node:wasi": [">= 18.17 && < 19", ">= 20"], - "worker_threads": ">= 11.7", - "node:worker_threads": [">= 14.18 && < 15", ">= 16"], - "zlib": ">= 0.5", - "node:zlib": [">= 14.18 && < 15", ">= 16"] -} diff --git a/build_vtk_bundle/node_modules/is-core-module/index.js b/build_vtk_bundle/node_modules/is-core-module/index.js deleted file mode 100644 index 423e20c0..00000000 --- a/build_vtk_bundle/node_modules/is-core-module/index.js +++ /dev/null @@ -1,69 +0,0 @@ -'use strict'; - -var hasOwn = require('hasown'); - -function specifierIncluded(current, specifier) { - var nodeParts = current.split('.'); - var parts = specifier.split(' '); - var op = parts.length > 1 ? parts[0] : '='; - var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split('.'); - - for (var i = 0; i < 3; ++i) { - var cur = parseInt(nodeParts[i] || 0, 10); - var ver = parseInt(versionParts[i] || 0, 10); - if (cur === ver) { - continue; // eslint-disable-line no-restricted-syntax, no-continue - } - if (op === '<') { - return cur < ver; - } - if (op === '>=') { - return cur >= ver; - } - return false; - } - return op === '>='; -} - -function matchesRange(current, range) { - var specifiers = range.split(/ ?&& ?/); - if (specifiers.length === 0) { - return false; - } - for (var i = 0; i < specifiers.length; ++i) { - if (!specifierIncluded(current, specifiers[i])) { - return false; - } - } - return true; -} - -function versionIncluded(nodeVersion, specifierValue) { - if (typeof specifierValue === 'boolean') { - return specifierValue; - } - - var current = typeof nodeVersion === 'undefined' - ? process.versions && process.versions.node - : nodeVersion; - - if (typeof current !== 'string') { - throw new TypeError(typeof nodeVersion === 'undefined' ? 'Unable to determine current node version' : 'If provided, a valid node version is required'); - } - - if (specifierValue && typeof specifierValue === 'object') { - for (var i = 0; i < specifierValue.length; ++i) { - if (matchesRange(current, specifierValue[i])) { - return true; - } - } - return false; - } - return matchesRange(current, specifierValue); -} - -var data = require('./core.json'); - -module.exports = function isCore(x, nodeVersion) { - return hasOwn(data, x) && versionIncluded(nodeVersion, data[x]); -}; diff --git a/build_vtk_bundle/node_modules/is-core-module/package.json b/build_vtk_bundle/node_modules/is-core-module/package.json deleted file mode 100644 index 26682564..00000000 --- a/build_vtk_bundle/node_modules/is-core-module/package.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "name": "is-core-module", - "version": "2.16.1", - "description": "Is this specifier a node.js core module?", - "main": "index.js", - "sideEffects": false, - "exports": { - ".": "./index.js", - "./package.json": "./package.json" - }, - "scripts": { - "prepack": "npmignore --auto --commentLines=autogenerated", - "prepublish": "not-in-publish || npm run prepublishOnly", - "prepublishOnly": "safe-publish-latest", - "lint": "eslint .", - "pretest": "npm run lint", - "tests-only": "nyc tape 'test/**/*.js'", - "test": "npm run tests-only", - "posttest": "npx npm@'>=10.2' audit --production", - "version": "auto-changelog && git add CHANGELOG.md", - "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/inspect-js/is-core-module.git" - }, - "keywords": [ - "core", - "modules", - "module", - "npm", - "node", - "dependencies" - ], - "author": "Jordan Harband ", - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "license": "MIT", - "bugs": { - "url": "https://github.com/inspect-js/is-core-module/issues" - }, - "homepage": "https://github.com/inspect-js/is-core-module", - "dependencies": { - "hasown": "^2.0.2" - }, - "devDependencies": { - "@ljharb/eslint-config": "^21.1.1", - "auto-changelog": "^2.5.0", - "encoding": "^0.1.13", - "eslint": "=8.8.0", - "in-publish": "^2.0.1", - "mock-property": "^1.1.0", - "npmignore": "^0.3.1", - "nyc": "^10.3.2", - "safe-publish-latest": "^2.0.0", - "semver": "^6.3.1", - "tape": "^5.9.0" - }, - "auto-changelog": { - "output": "CHANGELOG.md", - "template": "keepachangelog", - "unreleased": false, - "commitLimit": false, - "backfillLimit": false, - "hideCredit": true - }, - "publishConfig": { - "ignore": [ - ".github" - ] - }, - "engines": { - "node": ">= 0.4" - } -} diff --git a/build_vtk_bundle/node_modules/is-core-module/test/index.js b/build_vtk_bundle/node_modules/is-core-module/test/index.js deleted file mode 100644 index 7a81e1c7..00000000 --- a/build_vtk_bundle/node_modules/is-core-module/test/index.js +++ /dev/null @@ -1,157 +0,0 @@ -'use strict'; - -var test = require('tape'); -var keys = require('object-keys'); -var semver = require('semver'); -var mockProperty = require('mock-property'); - -var isCore = require('../'); -var data = require('../core.json'); - -var supportsNodePrefix = semver.satisfies(process.versions.node, '^14.18 || >= 16', { includePrerelease: true }); - -test('core modules', function (t) { - t.test('isCore()', function (st) { - st.ok(isCore('fs')); - st.ok(isCore('net')); - st.ok(isCore('http')); - - st.ok(!isCore('seq')); - st.ok(!isCore('../')); - - st.ok(!isCore('toString')); - - st.end(); - }); - - t.test('core list', function (st) { - var cores = keys(data); - st.plan(cores.length); - - for (var i = 0; i < cores.length; ++i) { - var mod = cores[i]; - var requireFunc = function () { require(mod); }; // eslint-disable-line no-loop-func - if (isCore(mod)) { - st.doesNotThrow(requireFunc, mod + ' supported; requiring does not throw'); - } else { - st['throws'](requireFunc, mod + ' not supported; requiring throws'); - } - } - - st.end(); - }); - - t.test('core via repl module', { skip: !data.repl }, function (st) { - var libs = require('repl')._builtinLibs; // eslint-disable-line no-underscore-dangle - if (!libs) { - st.skip('repl._builtinLibs does not exist'); - } else { - for (var i = 0; i < libs.length; ++i) { - var mod = libs[i]; - st.ok(data[mod], mod + ' is a core module'); - st.doesNotThrow( - function () { require(mod); }, // eslint-disable-line no-loop-func - 'requiring ' + mod + ' does not throw' - ); - if (mod.slice(0, 5) !== 'node:') { - if (supportsNodePrefix) { - st.doesNotThrow( - function () { require('node:' + mod); }, // eslint-disable-line no-loop-func - 'requiring node:' + mod + ' does not throw' - ); - } else { - st['throws']( - function () { require('node:' + mod); }, // eslint-disable-line no-loop-func - 'requiring node:' + mod + ' throws' - ); - } - } - } - } - st.end(); - }); - - t.test('core via builtinModules list', { skip: !data.module }, function (st) { - var Module = require('module'); - var libs = Module.builtinModules; - if (!libs) { - st.skip('module.builtinModules does not exist'); - } else { - var excludeList = [ - '_debug_agent', - 'v8/tools/tickprocessor-driver', - 'v8/tools/SourceMap', - 'v8/tools/tickprocessor', - 'v8/tools/profile' - ]; - - // see https://github.com/nodejs/node/issues/42785 - if (semver.satisfies(process.version, '>= 18')) { - libs = libs.concat('node:test'); - } - if (semver.satisfies(process.version, '^20.12 || >= 21.7')) { - libs = libs.concat('node:sea'); - } - if (semver.satisfies(process.version, '>= 23.4')) { - libs = libs.concat('node:sqlite'); - } - - for (var i = 0; i < libs.length; ++i) { - var mod = libs[i]; - if (excludeList.indexOf(mod) === -1) { - st.ok(data[mod], mod + ' is a core module'); - - if (Module.isBuiltin) { - st.ok(Module.isBuiltin(mod), 'module.isBuiltin(' + mod + ') is true'); - } - - st.doesNotThrow( - function () { require(mod); }, // eslint-disable-line no-loop-func - 'requiring ' + mod + ' does not throw' - ); - - if (process.getBuiltinModule) { - st.equal( - process.getBuiltinModule(mod), - require(mod), - 'process.getBuiltinModule(' + mod + ') === require(' + mod + ')' - ); - } - - if (mod.slice(0, 5) !== 'node:') { - if (supportsNodePrefix) { - st.doesNotThrow( - function () { require('node:' + mod); }, // eslint-disable-line no-loop-func - 'requiring node:' + mod + ' does not throw' - ); - } else { - st['throws']( - function () { require('node:' + mod); }, // eslint-disable-line no-loop-func - 'requiring node:' + mod + ' throws' - ); - } - } - } - } - } - - st.end(); - }); - - t.test('Object.prototype pollution', function (st) { - var nonKey = 'not a core module'; - st.teardown(mockProperty(Object.prototype, 'fs', { value: false })); - st.teardown(mockProperty(Object.prototype, 'path', { value: '>= 999999999' })); - st.teardown(mockProperty(Object.prototype, 'http', { value: data.http })); - st.teardown(mockProperty(Object.prototype, nonKey, { value: true })); - - st.equal(isCore('fs'), true, 'fs is a core module even if Object.prototype lies'); - st.equal(isCore('path'), true, 'path is a core module even if Object.prototype lies'); - st.equal(isCore('http'), true, 'path is a core module even if Object.prototype matches data'); - st.equal(isCore(nonKey), false, '"' + nonKey + '" is not a core module even if Object.prototype lies'); - - st.end(); - }); - - t.end(); -}); diff --git a/build_vtk_bundle/node_modules/is-plain-object/LICENSE b/build_vtk_bundle/node_modules/is-plain-object/LICENSE deleted file mode 100644 index 3f2eca18..00000000 --- a/build_vtk_bundle/node_modules/is-plain-object/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-2017, Jon Schlinkert. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/is-plain-object/README.md b/build_vtk_bundle/node_modules/is-plain-object/README.md deleted file mode 100644 index 1f9d0c82..00000000 --- a/build_vtk_bundle/node_modules/is-plain-object/README.md +++ /dev/null @@ -1,104 +0,0 @@ -# is-plain-object [![NPM version](https://img.shields.io/npm/v/is-plain-object.svg?style=flat)](https://www.npmjs.com/package/is-plain-object) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-plain-object.svg?style=flat)](https://npmjs.org/package/is-plain-object) [![NPM total downloads](https://img.shields.io/npm/dt/is-plain-object.svg?style=flat)](https://npmjs.org/package/is-plain-object) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-plain-object.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/is-plain-object) - -> Returns true if an object was created by the `Object` constructor. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save is-plain-object -``` - -Use [isobject](https://github.com/jonschlinkert/isobject) if you only want to check if the value is an object and not an array or null. - -## Usage - -```js -var isPlainObject = require('is-plain-object'); -``` - -**true** when created by the `Object` constructor. - -```js -isPlainObject(Object.create({})); -//=> true -isPlainObject(Object.create(Object.prototype)); -//=> true -isPlainObject({foo: 'bar'}); -//=> true -isPlainObject({}); -//=> true -``` - -**false** when not created by the `Object` constructor. - -```js -isPlainObject(1); -//=> false -isPlainObject(['foo', 'bar']); -//=> false -isPlainObject([]); -//=> false -isPlainObject(new Foo); -//=> false -isPlainObject(null); -//=> false -isPlainObject(Object.create(null)); -//=> false -``` - -## About - -### Related projects - -* [is-number](https://www.npmjs.com/package/is-number): Returns true if the value is a number. comprehensive tests. | [homepage](https://github.com/jonschlinkert/is-number "Returns true if the value is a number. comprehensive tests.") -* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject "Returns true if the value is an object and not an array or null.") -* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of "Get the native type of a value.") - -### Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -### Contributors - -| **Commits** | **Contributor** | -| --- | --- | -| 17 | [jonschlinkert](https://github.com/jonschlinkert) | -| 6 | [stevenvachon](https://github.com/stevenvachon) | -| 3 | [onokumus](https://github.com/onokumus) | -| 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) | - -### Building docs - -_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ - -To generate the readme, run the following command: - -```sh -$ npm install -g verbose/verb#dev verb-generate-readme && verb -``` - -### Running tests - -Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: - -```sh -$ npm install && npm test -``` - -### Author - -**Jon Schlinkert** - -* [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](https://twitter.com/jonschlinkert) - -### License - -Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT License](LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on July 11, 2017._ \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/is-plain-object/index.d.ts b/build_vtk_bundle/node_modules/is-plain-object/index.d.ts deleted file mode 100644 index 74a44e97..00000000 --- a/build_vtk_bundle/node_modules/is-plain-object/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export = isPlainObject; - -declare function isPlainObject(o: any): boolean; - -declare namespace isPlainObject {} diff --git a/build_vtk_bundle/node_modules/is-plain-object/index.js b/build_vtk_bundle/node_modules/is-plain-object/index.js deleted file mode 100644 index c3284849..00000000 --- a/build_vtk_bundle/node_modules/is-plain-object/index.js +++ /dev/null @@ -1,37 +0,0 @@ -/*! - * is-plain-object - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */ - -'use strict'; - -var isObject = require('isobject'); - -function isObjectObject(o) { - return isObject(o) === true - && Object.prototype.toString.call(o) === '[object Object]'; -} - -module.exports = function isPlainObject(o) { - var ctor,prot; - - if (isObjectObject(o) === false) return false; - - // If has modified constructor - ctor = o.constructor; - if (typeof ctor !== 'function') return false; - - // If has modified prototype - prot = ctor.prototype; - if (isObjectObject(prot) === false) return false; - - // If constructor does not have an Object-specific method - if (prot.hasOwnProperty('isPrototypeOf') === false) { - return false; - } - - // Most likely a plain Object - return true; -}; diff --git a/build_vtk_bundle/node_modules/is-plain-object/package.json b/build_vtk_bundle/node_modules/is-plain-object/package.json deleted file mode 100644 index dd604986..00000000 --- a/build_vtk_bundle/node_modules/is-plain-object/package.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "name": "is-plain-object", - "description": "Returns true if an object was created by the `Object` constructor.", - "version": "2.0.4", - "homepage": "https://github.com/jonschlinkert/is-plain-object", - "author": "Jon Schlinkert (https://github.com/jonschlinkert)", - "contributors": [ - "Jon Schlinkert (http://twitter.com/jonschlinkert)", - "Osman Nuri Okumuş (http://onokumus.com)", - "Steven Vachon (https://svachon.com)", - "(https://github.com/wtgtybhertgeghgtwtg)" - ], - "repository": "jonschlinkert/is-plain-object", - "bugs": { - "url": "https://github.com/jonschlinkert/is-plain-object/issues" - }, - "license": "MIT", - "files": [ - "index.d.ts", - "index.js" - ], - "main": "index.js", - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "browserify": "browserify index.js --standalone isPlainObject | uglifyjs --compress --mangle -o browser/is-plain-object.js", - "test_browser": "mocha-phantomjs test/browser.html", - "test_node": "mocha", - "test": "npm run test_node && npm run browserify && npm run test_browser" - }, - "dependencies": { - "isobject": "^3.0.1" - }, - "devDependencies": { - "browserify": "^14.4.0", - "chai": "^4.0.2", - "gulp-format-md": "^1.0.0", - "mocha": "^3.4.2", - "mocha-phantomjs": "^4.1.0", - "phantomjs": "^2.1.7", - "uglify-js": "^3.0.24" - }, - "keywords": [ - "check", - "is", - "is-object", - "isobject", - "javascript", - "kind", - "kind-of", - "object", - "plain", - "type", - "typeof", - "value" - ], - "types": "index.d.ts", - "verb": { - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "related": { - "list": [ - "is-number", - "isobject", - "kind-of" - ] - }, - "lint": { - "reflinks": true - } - } -} diff --git a/build_vtk_bundle/node_modules/isexe/.npmignore b/build_vtk_bundle/node_modules/isexe/.npmignore deleted file mode 100644 index c1cb757a..00000000 --- a/build_vtk_bundle/node_modules/isexe/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -.nyc_output/ -coverage/ diff --git a/build_vtk_bundle/node_modules/isexe/LICENSE b/build_vtk_bundle/node_modules/isexe/LICENSE deleted file mode 100644 index 19129e31..00000000 --- a/build_vtk_bundle/node_modules/isexe/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/build_vtk_bundle/node_modules/isexe/README.md b/build_vtk_bundle/node_modules/isexe/README.md deleted file mode 100644 index 35769e84..00000000 --- a/build_vtk_bundle/node_modules/isexe/README.md +++ /dev/null @@ -1,51 +0,0 @@ -# isexe - -Minimal module to check if a file is executable, and a normal file. - -Uses `fs.stat` and tests against the `PATHEXT` environment variable on -Windows. - -## USAGE - -```javascript -var isexe = require('isexe') -isexe('some-file-name', function (err, isExe) { - if (err) { - console.error('probably file does not exist or something', err) - } else if (isExe) { - console.error('this thing can be run') - } else { - console.error('cannot be run') - } -}) - -// same thing but synchronous, throws errors -var isExe = isexe.sync('some-file-name') - -// treat errors as just "not executable" -isexe('maybe-missing-file', { ignoreErrors: true }, callback) -var isExe = isexe.sync('maybe-missing-file', { ignoreErrors: true }) -``` - -## API - -### `isexe(path, [options], [callback])` - -Check if the path is executable. If no callback provided, and a -global `Promise` object is available, then a Promise will be returned. - -Will raise whatever errors may be raised by `fs.stat`, unless -`options.ignoreErrors` is set to true. - -### `isexe.sync(path, [options])` - -Same as `isexe` but returns the value and throws any errors raised. - -### Options - -* `ignoreErrors` Treat all errors as "no, this is not executable", but - don't raise them. -* `uid` Number to use as the user id -* `gid` Number to use as the group id -* `pathExt` List of path extensions to use instead of `PATHEXT` - environment variable on Windows. diff --git a/build_vtk_bundle/node_modules/isexe/index.js b/build_vtk_bundle/node_modules/isexe/index.js deleted file mode 100644 index 553fb32b..00000000 --- a/build_vtk_bundle/node_modules/isexe/index.js +++ /dev/null @@ -1,57 +0,0 @@ -var fs = require('fs') -var core -if (process.platform === 'win32' || global.TESTING_WINDOWS) { - core = require('./windows.js') -} else { - core = require('./mode.js') -} - -module.exports = isexe -isexe.sync = sync - -function isexe (path, options, cb) { - if (typeof options === 'function') { - cb = options - options = {} - } - - if (!cb) { - if (typeof Promise !== 'function') { - throw new TypeError('callback not provided') - } - - return new Promise(function (resolve, reject) { - isexe(path, options || {}, function (er, is) { - if (er) { - reject(er) - } else { - resolve(is) - } - }) - }) - } - - core(path, options || {}, function (er, is) { - // ignore EACCES because that just means we aren't allowed to run it - if (er) { - if (er.code === 'EACCES' || options && options.ignoreErrors) { - er = null - is = false - } - } - cb(er, is) - }) -} - -function sync (path, options) { - // my kingdom for a filtered catch - try { - return core.sync(path, options || {}) - } catch (er) { - if (options && options.ignoreErrors || er.code === 'EACCES') { - return false - } else { - throw er - } - } -} diff --git a/build_vtk_bundle/node_modules/isexe/mode.js b/build_vtk_bundle/node_modules/isexe/mode.js deleted file mode 100644 index 1995ea4a..00000000 --- a/build_vtk_bundle/node_modules/isexe/mode.js +++ /dev/null @@ -1,41 +0,0 @@ -module.exports = isexe -isexe.sync = sync - -var fs = require('fs') - -function isexe (path, options, cb) { - fs.stat(path, function (er, stat) { - cb(er, er ? false : checkStat(stat, options)) - }) -} - -function sync (path, options) { - return checkStat(fs.statSync(path), options) -} - -function checkStat (stat, options) { - return stat.isFile() && checkMode(stat, options) -} - -function checkMode (stat, options) { - var mod = stat.mode - var uid = stat.uid - var gid = stat.gid - - var myUid = options.uid !== undefined ? - options.uid : process.getuid && process.getuid() - var myGid = options.gid !== undefined ? - options.gid : process.getgid && process.getgid() - - var u = parseInt('100', 8) - var g = parseInt('010', 8) - var o = parseInt('001', 8) - var ug = u | g - - var ret = (mod & o) || - (mod & g) && gid === myGid || - (mod & u) && uid === myUid || - (mod & ug) && myUid === 0 - - return ret -} diff --git a/build_vtk_bundle/node_modules/isexe/package.json b/build_vtk_bundle/node_modules/isexe/package.json deleted file mode 100644 index e4526894..00000000 --- a/build_vtk_bundle/node_modules/isexe/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "isexe", - "version": "2.0.0", - "description": "Minimal module to check if a file is executable.", - "main": "index.js", - "directories": { - "test": "test" - }, - "devDependencies": { - "mkdirp": "^0.5.1", - "rimraf": "^2.5.0", - "tap": "^10.3.0" - }, - "scripts": { - "test": "tap test/*.js --100", - "preversion": "npm test", - "postversion": "npm publish", - "postpublish": "git push origin --all; git push origin --tags" - }, - "author": "Isaac Z. Schlueter (http://blog.izs.me/)", - "license": "ISC", - "repository": { - "type": "git", - "url": "git+https://github.com/isaacs/isexe.git" - }, - "keywords": [], - "bugs": { - "url": "https://github.com/isaacs/isexe/issues" - }, - "homepage": "https://github.com/isaacs/isexe#readme" -} diff --git a/build_vtk_bundle/node_modules/isexe/test/basic.js b/build_vtk_bundle/node_modules/isexe/test/basic.js deleted file mode 100644 index d926df64..00000000 --- a/build_vtk_bundle/node_modules/isexe/test/basic.js +++ /dev/null @@ -1,221 +0,0 @@ -var t = require('tap') -var fs = require('fs') -var path = require('path') -var fixture = path.resolve(__dirname, 'fixtures') -var meow = fixture + '/meow.cat' -var mine = fixture + '/mine.cat' -var ours = fixture + '/ours.cat' -var fail = fixture + '/fail.false' -var noent = fixture + '/enoent.exe' -var mkdirp = require('mkdirp') -var rimraf = require('rimraf') - -var isWindows = process.platform === 'win32' -var hasAccess = typeof fs.access === 'function' -var winSkip = isWindows && 'windows' -var accessSkip = !hasAccess && 'no fs.access function' -var hasPromise = typeof Promise === 'function' -var promiseSkip = !hasPromise && 'no global Promise' - -function reset () { - delete require.cache[require.resolve('../')] - return require('../') -} - -t.test('setup fixtures', function (t) { - rimraf.sync(fixture) - mkdirp.sync(fixture) - fs.writeFileSync(meow, '#!/usr/bin/env cat\nmeow\n') - fs.chmodSync(meow, parseInt('0755', 8)) - fs.writeFileSync(fail, '#!/usr/bin/env false\n') - fs.chmodSync(fail, parseInt('0644', 8)) - fs.writeFileSync(mine, '#!/usr/bin/env cat\nmine\n') - fs.chmodSync(mine, parseInt('0744', 8)) - fs.writeFileSync(ours, '#!/usr/bin/env cat\nours\n') - fs.chmodSync(ours, parseInt('0754', 8)) - t.end() -}) - -t.test('promise', { skip: promiseSkip }, function (t) { - var isexe = reset() - t.test('meow async', function (t) { - isexe(meow).then(function (is) { - t.ok(is) - t.end() - }) - }) - t.test('fail async', function (t) { - isexe(fail).then(function (is) { - t.notOk(is) - t.end() - }) - }) - t.test('noent async', function (t) { - isexe(noent).catch(function (er) { - t.ok(er) - t.end() - }) - }) - t.test('noent ignore async', function (t) { - isexe(noent, { ignoreErrors: true }).then(function (is) { - t.notOk(is) - t.end() - }) - }) - t.end() -}) - -t.test('no promise', function (t) { - global.Promise = null - var isexe = reset() - t.throws('try to meow a promise', function () { - isexe(meow) - }) - t.end() -}) - -t.test('access', { skip: accessSkip || winSkip }, function (t) { - runTest(t) -}) - -t.test('mode', { skip: winSkip }, function (t) { - delete fs.access - delete fs.accessSync - var isexe = reset() - t.ok(isexe.sync(ours, { uid: 0, gid: 0 })) - t.ok(isexe.sync(mine, { uid: 0, gid: 0 })) - runTest(t) -}) - -t.test('windows', function (t) { - global.TESTING_WINDOWS = true - var pathExt = '.EXE;.CAT;.CMD;.COM' - t.test('pathExt option', function (t) { - runTest(t, { pathExt: '.EXE;.CAT;.CMD;.COM' }) - }) - t.test('pathExt env', function (t) { - process.env.PATHEXT = pathExt - runTest(t) - }) - t.test('no pathExt', function (t) { - // with a pathExt of '', any filename is fine. - // so the "fail" one would still pass. - runTest(t, { pathExt: '', skipFail: true }) - }) - t.test('pathext with empty entry', function (t) { - // with a pathExt of '', any filename is fine. - // so the "fail" one would still pass. - runTest(t, { pathExt: ';' + pathExt, skipFail: true }) - }) - t.end() -}) - -t.test('cleanup', function (t) { - rimraf.sync(fixture) - t.end() -}) - -function runTest (t, options) { - var isexe = reset() - - var optionsIgnore = Object.create(options || {}) - optionsIgnore.ignoreErrors = true - - if (!options || !options.skipFail) { - t.notOk(isexe.sync(fail, options)) - } - t.notOk(isexe.sync(noent, optionsIgnore)) - if (!options) { - t.ok(isexe.sync(meow)) - } else { - t.ok(isexe.sync(meow, options)) - } - - t.ok(isexe.sync(mine, options)) - t.ok(isexe.sync(ours, options)) - t.throws(function () { - isexe.sync(noent, options) - }) - - t.test('meow async', function (t) { - if (!options) { - isexe(meow, function (er, is) { - if (er) { - throw er - } - t.ok(is) - t.end() - }) - } else { - isexe(meow, options, function (er, is) { - if (er) { - throw er - } - t.ok(is) - t.end() - }) - } - }) - - t.test('mine async', function (t) { - isexe(mine, options, function (er, is) { - if (er) { - throw er - } - t.ok(is) - t.end() - }) - }) - - t.test('ours async', function (t) { - isexe(ours, options, function (er, is) { - if (er) { - throw er - } - t.ok(is) - t.end() - }) - }) - - if (!options || !options.skipFail) { - t.test('fail async', function (t) { - isexe(fail, options, function (er, is) { - if (er) { - throw er - } - t.notOk(is) - t.end() - }) - }) - } - - t.test('noent async', function (t) { - isexe(noent, options, function (er, is) { - t.ok(er) - t.notOk(is) - t.end() - }) - }) - - t.test('noent ignore async', function (t) { - isexe(noent, optionsIgnore, function (er, is) { - if (er) { - throw er - } - t.notOk(is) - t.end() - }) - }) - - t.test('directory is not executable', function (t) { - isexe(__dirname, options, function (er, is) { - if (er) { - throw er - } - t.notOk(is) - t.end() - }) - }) - - t.end() -} diff --git a/build_vtk_bundle/node_modules/isexe/windows.js b/build_vtk_bundle/node_modules/isexe/windows.js deleted file mode 100644 index 34996734..00000000 --- a/build_vtk_bundle/node_modules/isexe/windows.js +++ /dev/null @@ -1,42 +0,0 @@ -module.exports = isexe -isexe.sync = sync - -var fs = require('fs') - -function checkPathExt (path, options) { - var pathext = options.pathExt !== undefined ? - options.pathExt : process.env.PATHEXT - - if (!pathext) { - return true - } - - pathext = pathext.split(';') - if (pathext.indexOf('') !== -1) { - return true - } - for (var i = 0; i < pathext.length; i++) { - var p = pathext[i].toLowerCase() - if (p && path.substr(-p.length).toLowerCase() === p) { - return true - } - } - return false -} - -function checkStat (stat, path, options) { - if (!stat.isSymbolicLink() && !stat.isFile()) { - return false - } - return checkPathExt(path, options) -} - -function isexe (path, options, cb) { - fs.stat(path, function (er, stat) { - cb(er, er ? false : checkStat(stat, path, options)) - }) -} - -function sync (path, options) { - return checkStat(fs.statSync(path), path, options) -} diff --git a/build_vtk_bundle/node_modules/isobject/LICENSE b/build_vtk_bundle/node_modules/isobject/LICENSE deleted file mode 100644 index 943e71d0..00000000 --- a/build_vtk_bundle/node_modules/isobject/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-2017, Jon Schlinkert. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/isobject/README.md b/build_vtk_bundle/node_modules/isobject/README.md deleted file mode 100644 index d01feaa4..00000000 --- a/build_vtk_bundle/node_modules/isobject/README.md +++ /dev/null @@ -1,122 +0,0 @@ -# isobject [![NPM version](https://img.shields.io/npm/v/isobject.svg?style=flat)](https://www.npmjs.com/package/isobject) [![NPM monthly downloads](https://img.shields.io/npm/dm/isobject.svg?style=flat)](https://npmjs.org/package/isobject) [![NPM total downloads](https://img.shields.io/npm/dt/isobject.svg?style=flat)](https://npmjs.org/package/isobject) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/isobject.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/isobject) - -> Returns true if the value is an object and not an array or null. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save isobject -``` - -Install with [yarn](https://yarnpkg.com): - -```sh -$ yarn add isobject -``` - -Use [is-plain-object](https://github.com/jonschlinkert/is-plain-object) if you want only objects that are created by the `Object` constructor. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install isobject -``` -Install with [bower](https://bower.io/) - -```sh -$ bower install isobject -``` - -## Usage - -```js -var isObject = require('isobject'); -``` - -**True** - -All of the following return `true`: - -```js -isObject({}); -isObject(Object.create({})); -isObject(Object.create(Object.prototype)); -isObject(Object.create(null)); -isObject({}); -isObject(new Foo); -isObject(/foo/); -``` - -**False** - -All of the following return `false`: - -```js -isObject(); -isObject(function () {}); -isObject(1); -isObject([]); -isObject(undefined); -isObject(null); -``` - -## About - -### Related projects - -* [extend-shallow](https://www.npmjs.com/package/extend-shallow): Extend an object with the properties of additional objects. node.js/javascript util. | [homepage](https://github.com/jonschlinkert/extend-shallow "Extend an object with the properties of additional objects. node.js/javascript util.") -* [is-plain-object](https://www.npmjs.com/package/is-plain-object): Returns true if an object was created by the `Object` constructor. | [homepage](https://github.com/jonschlinkert/is-plain-object "Returns true if an object was created by the `Object` constructor.") -* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of "Get the native type of a value.") -* [merge-deep](https://www.npmjs.com/package/merge-deep): Recursively merge values in a javascript object. | [homepage](https://github.com/jonschlinkert/merge-deep "Recursively merge values in a javascript object.") - -### Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -### Contributors - -| **Commits** | **Contributor** | -| --- | --- | -| 29 | [jonschlinkert](https://github.com/jonschlinkert) | -| 4 | [doowb](https://github.com/doowb) | -| 1 | [magnudae](https://github.com/magnudae) | -| 1 | [LeSuisse](https://github.com/LeSuisse) | -| 1 | [tmcw](https://github.com/tmcw) | - -### Building docs - -_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ - -To generate the readme, run the following command: - -```sh -$ npm install -g verbose/verb#dev verb-generate-readme && verb -``` - -### Running tests - -Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: - -```sh -$ npm install && npm test -``` - -### Author - -**Jon Schlinkert** - -* [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](https://twitter.com/jonschlinkert) - -### License - -Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT License](LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 30, 2017._ \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/isobject/index.d.ts b/build_vtk_bundle/node_modules/isobject/index.d.ts deleted file mode 100644 index 55f81c27..00000000 --- a/build_vtk_bundle/node_modules/isobject/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export = isObject; - -declare function isObject(val: any): boolean; - -declare namespace isObject {} diff --git a/build_vtk_bundle/node_modules/isobject/index.js b/build_vtk_bundle/node_modules/isobject/index.js deleted file mode 100644 index 2d59958b..00000000 --- a/build_vtk_bundle/node_modules/isobject/index.js +++ /dev/null @@ -1,12 +0,0 @@ -/*! - * isobject - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */ - -'use strict'; - -module.exports = function isObject(val) { - return val != null && typeof val === 'object' && Array.isArray(val) === false; -}; diff --git a/build_vtk_bundle/node_modules/isobject/package.json b/build_vtk_bundle/node_modules/isobject/package.json deleted file mode 100644 index 62aa8c1b..00000000 --- a/build_vtk_bundle/node_modules/isobject/package.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "name": "isobject", - "description": "Returns true if the value is an object and not an array or null.", - "version": "3.0.1", - "homepage": "https://github.com/jonschlinkert/isobject", - "author": "Jon Schlinkert (https://github.com/jonschlinkert)", - "contributors": [ - "(https://github.com/LeSuisse)", - "Brian Woodward (https://twitter.com/doowb)", - "Jon Schlinkert (http://twitter.com/jonschlinkert)", - "Magnús Dæhlen (https://github.com/magnudae)", - "Tom MacWright (https://macwright.org)" - ], - "repository": "jonschlinkert/isobject", - "bugs": { - "url": "https://github.com/jonschlinkert/isobject/issues" - }, - "license": "MIT", - "files": [ - "index.d.ts", - "index.js" - ], - "main": "index.js", - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "test": "mocha" - }, - "dependencies": {}, - "devDependencies": { - "gulp-format-md": "^0.1.9", - "mocha": "^2.4.5" - }, - "keywords": [ - "check", - "is", - "is-object", - "isobject", - "kind", - "kind-of", - "kindof", - "native", - "object", - "type", - "typeof", - "value" - ], - "types": "index.d.ts", - "verb": { - "related": { - "list": [ - "extend-shallow", - "is-plain-object", - "kind-of", - "merge-deep" - ] - }, - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "lint": { - "reflinks": true - }, - "reflinks": [ - "verb" - ] - } -} diff --git a/build_vtk_bundle/node_modules/jest-worker/LICENSE b/build_vtk_bundle/node_modules/jest-worker/LICENSE deleted file mode 100644 index b96dcb04..00000000 --- a/build_vtk_bundle/node_modules/jest-worker/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) Facebook, Inc. and its affiliates. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/jest-worker/README.md b/build_vtk_bundle/node_modules/jest-worker/README.md deleted file mode 100644 index 0727a04b..00000000 --- a/build_vtk_bundle/node_modules/jest-worker/README.md +++ /dev/null @@ -1,247 +0,0 @@ -# jest-worker - -Module for executing heavy tasks under forked processes in parallel, by providing a `Promise` based interface, minimum overhead, and bound workers. - -The module works by providing an absolute path of the module to be loaded in all forked processes. Files relative to a node module are also accepted. All methods are exposed on the parent process as promises, so they can be `await`'ed. Child (worker) methods can either be synchronous or asynchronous. - -The module also implements support for bound workers. Binding a worker means that, based on certain parameters, the same task will always be executed by the same worker. The way bound workers work is by using the returned string of the `computeWorkerKey` method. If the string was used before for a task, the call will be queued to the related worker that processed the task earlier; if not, it will be executed by the first available worker, then sticked to the worker that executed it; so the next time it will be processed by the same worker. If you have no preference on the worker executing the task, but you have defined a `computeWorkerKey` method because you want _some_ of the tasks to be sticked, you can return `null` from it. - -The list of exposed methods can be explicitly provided via the `exposedMethods` option. If it is not provided, it will be obtained by requiring the child module into the main process, and analyzed via reflection. Check the "minimal example" section for a valid one. - -## Install - -```sh -$ yarn add jest-worker -``` - -## Example - -This example covers the minimal usage: - -### File `parent.js` - -```javascript -import {Worker as JestWorker} from 'jest-worker'; - -async function main() { - const worker = new JestWorker(require.resolve('./Worker')); - const result = await worker.hello('Alice'); // "Hello, Alice" -} - -main(); -``` - -### File `worker.js` - -```javascript -export function hello(param) { - return 'Hello, ' + param; -} -``` - -## Experimental worker - -Node 10 shipped with [worker-threads](https://nodejs.org/api/worker_threads.html), a "threading API" that uses SharedArrayBuffers to communicate between the main process and its child threads. This experimental Node feature can significantly improve the communication time between parent and child processes in `jest-worker`. - -Since `worker_threads` are considered experimental in Node, you have to opt-in to this behavior by passing `enableWorkerThreads: true` when instantiating the worker. While the feature was unflagged in Node 11.7.0, you'll need to run the Node process with the `--experimental-worker` flag for Node 10. - -## API - -The `Worker` export is a constructor that is initialized by passing the worker path, plus an options object. - -### `workerPath: string` (required) - -Node module name or absolute path of the file to be loaded in the child processes. Use `require.resolve` to transform a relative path into an absolute one. - -### `options: Object` (optional) - -#### `exposedMethods: $ReadOnlyArray` (optional) - -List of method names that can be called on the child processes from the parent process. You cannot expose any method named like a public `Worker` method, or starting with `_`. If you use method auto-discovery, then these methods will not be exposed, even if they exist. - -#### `numWorkers: number` (optional) - -Amount of workers to spawn. Defaults to the number of CPUs minus 1. - -#### `maxRetries: number` (optional) - -Maximum amount of times that a dead child can be re-spawned, per call. Defaults to `3`, pass `Infinity` to allow endless retries. - -#### `forkOptions: Object` (optional) - -Allow customizing all options passed to `childProcess.fork`. By default, some values are set (`cwd`, `env` and `execArgv`), but you can override them and customize the rest. For a list of valid values, check [the Node documentation](https://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options). - -#### `computeWorkerKey: (method: string, ...args: Array) => ?string` (optional) - -Every time a method exposed via the API is called, `computeWorkerKey` is also called in order to bound the call to a worker. This is useful for workers that are able to cache the result or part of it. You bound calls to a worker by making `computeWorkerKey` return the same identifier for all different calls. If you do not want to bind the call to any worker, return `null`. - -The callback you provide is called with the method name, plus all the rest of the arguments of the call. Thus, you have full control to decide what to return. Check a practical example on bound workers under the "bound worker usage" section. - -By default, no process is bound to any worker. - -#### `setupArgs: Array` (optional) - -The arguments that will be passed to the `setup` method during initialization. - -#### `WorkerPool: (workerPath: string, options?: WorkerPoolOptions) => WorkerPoolInterface` (optional) - -Provide a custom worker pool to be used for spawning child processes. By default, Jest will use a node thread pool if available and fall back to child process threads. - -#### `enableWorkerThreads: boolean` (optional) - -`jest-worker` will automatically detect if `worker_threads` are available, but will not use them unless passed `enableWorkerThreads: true`. - -### `workerSchedulingPolicy: 'round-robin' | 'in-order'` (optional) - -Specifies the policy how tasks are assigned to workers if multiple workers are _idle_: - -- `round-robin` (default): The task will be sequentially distributed onto the workers. The first task is assigned to the worker 1, the second to the worker 2, to ensure that the work is distributed across workers. -- `in-order`: The task will be assigned to the first free worker starting with worker 1 and only assign the work to worker 2 if the worker 1 is busy. - -Tasks are always assigned to the first free worker as soon as tasks start to queue up. The scheduling policy does not define the task scheduling which is always first-in, first-out. - -### `taskQueue`: TaskQueue` (optional) - -The task queue defines in which order tasks (method calls) are processed by the workers. `jest-worker` ships with a `FifoQueue` and `PriorityQueue`: - -- `FifoQueue` (default): Processes the method calls (tasks) in the call order. -- `PriorityQueue`: Processes the method calls by a computed priority in natural ordering (lower priorities first). Tasks with the same priority are processed in any order (FIFO not guaranteed). The constructor accepts a single argument, the function that is passed the name of the called function and the arguments and returns a numerical value for the priority: `new require('jest-worker').PriorityQueue((method, filename) => filename.length)`. - -## JestWorker - -### Methods - -The returned `JestWorker` instance has all the exposed methods, plus some additional ones to interact with the workers itself: - -#### `getStdout(): Readable` - -Returns a `ReadableStream` where the standard output of all workers is piped. Note that the `silent` option of the child workers must be set to `true` to make it work. This is the default set by `jest-worker`, but keep it in mind when overriding options through `forkOptions`. - -#### `getStderr(): Readable` - -Returns a `ReadableStream` where the standard error of all workers is piped. Note that the `silent` option of the child workers must be set to `true` to make it work. This is the default set by `jest-worker`, but keep it in mind when overriding options through `forkOptions`. - -#### `end()` - -Finishes the workers by killing all workers. No further calls can be done to the `Worker` instance. - -Returns a Promise that resolves with `{ forceExited: boolean }` once all workers are dead. If `forceExited` is `true`, at least one of the workers did not exit gracefully, which likely happened because it executed a leaky task that left handles open. This should be avoided, force exiting workers is a last resort to prevent creating lots of orphans. - -**Note:** - -`await`ing the `end()` Promise immediately after the workers are no longer needed before proceeding to do other useful things in your program may not be a good idea. If workers have to be force exited, `jest-worker` may go through multiple stages of force exiting (e.g. SIGTERM, later SIGKILL) and give the worker overall around 1 second time to exit on its own. During this time, your program will wait, even though it may not be necessary that all workers are dead before continuing execution. - -Consider deliberately leaving this Promise floating (unhandled resolution). After your program has done the rest of its work and is about to exit, the Node process will wait for the Promise to resolve after all workers are dead as the last event loop task. That way you parallelized computation time of your program and waiting time and you didn't delay the outputs of your program unnecessarily. - -### Worker IDs - -Each worker has a unique id (index that starts with `1`), which is available inside the worker as `process.env.JEST_WORKER_ID`. - -## Setting up and tearing down the child process - -The child process can define two special methods (both of them can be asynchronous): - -- `setup()`: If defined, it's executed before the first call to any method in the child. -- `teardown()`: If defined, it's executed when the farm ends. - -# More examples - -## Standard usage - -This example covers the standard usage: - -### File `parent.js` - -```javascript -import {Worker as JestWorker} from 'jest-worker'; - -async function main() { - const myWorker = new JestWorker(require.resolve('./Worker'), { - exposedMethods: ['foo', 'bar', 'getWorkerId'], - numWorkers: 4, - }); - - console.log(await myWorker.foo('Alice')); // "Hello from foo: Alice" - console.log(await myWorker.bar('Bob')); // "Hello from bar: Bob" - console.log(await myWorker.getWorkerId()); // "3" -> this message has sent from the 3rd worker - - const {forceExited} = await myWorker.end(); - if (forceExited) { - console.error('Workers failed to exit gracefully'); - } -} - -main(); -``` - -### File `worker.js` - -```javascript -export function foo(param) { - return 'Hello from foo: ' + param; -} - -export function bar(param) { - return 'Hello from bar: ' + param; -} - -export function getWorkerId() { - return process.env.JEST_WORKER_ID; -} -``` - -## Bound worker usage: - -This example covers the usage with a `computeWorkerKey` method: - -### File `parent.js` - -```javascript -import {Worker as JestWorker} from 'jest-worker'; - -async function main() { - const myWorker = new JestWorker(require.resolve('./Worker'), { - computeWorkerKey: (method, filename) => filename, - }); - - // Transform the given file, within the first available worker. - console.log(await myWorker.transform('/tmp/foo.js')); - - // Wait a bit. - await sleep(10000); - - // Transform the same file again. Will immediately return because the - // transformed file is cached in the worker, and `computeWorkerKey` ensures - // the same worker that processed the file the first time will process it now. - console.log(await myWorker.transform('/tmp/foo.js')); - - const {forceExited} = await myWorker.end(); - if (forceExited) { - console.error('Workers failed to exit gracefully'); - } -} - -main(); -``` - -### File `worker.js` - -```javascript -import babel from '@babel/core'; - -const cache = Object.create(null); - -export function transform(filename) { - if (cache[filename]) { - return cache[filename]; - } - - // jest-worker can handle both immediate results and thenables. If a - // thenable is returned, it will be await'ed until it resolves. - return babel.transformFileAsync(filename).then(result => { - cache[filename] = result; - - return result; - }); -} -``` diff --git a/build_vtk_bundle/node_modules/jest-worker/package.json b/build_vtk_bundle/node_modules/jest-worker/package.json deleted file mode 100644 index 06280d1c..00000000 --- a/build_vtk_bundle/node_modules/jest-worker/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "jest-worker", - "version": "27.5.1", - "repository": { - "type": "git", - "url": "https://github.com/facebook/jest.git", - "directory": "packages/jest-worker" - }, - "license": "MIT", - "main": "./build/index.js", - "types": "./build/index.d.ts", - "exports": { - ".": { - "types": "./build/index.d.ts", - "default": "./build/index.js" - }, - "./package.json": "./package.json" - }, - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "devDependencies": { - "@types/merge-stream": "^1.1.2", - "@types/supports-color": "^8.1.0", - "get-stream": "^6.0.0", - "jest-leak-detector": "^27.5.1", - "worker-farm": "^1.6.0" - }, - "engines": { - "node": ">= 10.13.0" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "67c1aa20c5fec31366d733e901fee2b981cb1850" -} diff --git a/build_vtk_bundle/node_modules/js-tokens/CHANGELOG.md b/build_vtk_bundle/node_modules/js-tokens/CHANGELOG.md deleted file mode 100644 index 755e6f6e..00000000 --- a/build_vtk_bundle/node_modules/js-tokens/CHANGELOG.md +++ /dev/null @@ -1,151 +0,0 @@ -### Version 4.0.0 (2018-01-28) ### - -- Added: Support for ES2018. The only change needed was recognizing the `s` - regex flag. -- Changed: _All_ tokens returned by the `matchToToken` function now have a - `closed` property. It is set to `undefined` for the tokens where “closed” - doesn’t make sense. This means that all tokens objects have the same shape, - which might improve performance. - -These are the breaking changes: - -- `'/a/s'.match(jsTokens)` no longer returns `['/', 'a', '/', 's']`, but - `['/a/s']`. (There are of course other variations of this.) -- Code that rely on some token objects not having the `closed` property could - now behave differently. - - -### Version 3.0.2 (2017-06-28) ### - -- No code changes. Just updates to the readme. - - -### Version 3.0.1 (2017-01-30) ### - -- Fixed: ES2015 unicode escapes with more than 6 hex digits are now matched - correctly. - - -### Version 3.0.0 (2017-01-11) ### - -This release contains one breaking change, that should [improve performance in -V8][v8-perf]: - -> So how can you, as a JavaScript developer, ensure that your RegExps are fast? -> If you are not interested in hooking into RegExp internals, make sure that -> neither the RegExp instance, nor its prototype is modified in order to get the -> best performance: -> -> ```js -> var re = /./g; -> re.exec(''); // Fast path. -> re.new_property = 'slow'; -> ``` - -This module used to export a single regex, with `.matchToToken` bolted -on, just like in the above example. This release changes the exports of -the module to avoid this issue. - -Before: - -```js -import jsTokens from "js-tokens" -// or: -var jsTokens = require("js-tokens") -var matchToToken = jsTokens.matchToToken -``` - -After: - -```js -import jsTokens, {matchToToken} from "js-tokens" -// or: -var jsTokens = require("js-tokens").default -var matchToToken = require("js-tokens").matchToToken -``` - -[v8-perf]: http://v8project.blogspot.se/2017/01/speeding-up-v8-regular-expressions.html - - -### Version 2.0.0 (2016-06-19) ### - -- Added: Support for ES2016. In other words, support for the `**` exponentiation - operator. - -These are the breaking changes: - -- `'**'.match(jsTokens)` no longer returns `['*', '*']`, but `['**']`. -- `'**='.match(jsTokens)` no longer returns `['*', '*=']`, but `['**=']`. - - -### Version 1.0.3 (2016-03-27) ### - -- Improved: Made the regex ever so slightly smaller. -- Updated: The readme. - - -### Version 1.0.2 (2015-10-18) ### - -- Improved: Limited npm package contents for a smaller download. Thanks to - @zertosh! - - -### Version 1.0.1 (2015-06-20) ### - -- Fixed: Declared an undeclared variable. - - -### Version 1.0.0 (2015-02-26) ### - -- Changed: Merged the 'operator' and 'punctuation' types into 'punctuator'. That - type is now equivalent to the Punctuator token in the ECMAScript - specification. (Backwards-incompatible change.) -- Fixed: A `-` followed by a number is now correctly matched as a punctuator - followed by a number. It used to be matched as just a number, but there is no - such thing as negative number literals. (Possibly backwards-incompatible - change.) - - -### Version 0.4.1 (2015-02-21) ### - -- Added: Support for the regex `u` flag. - - -### Version 0.4.0 (2015-02-21) ### - -- Improved: `jsTokens.matchToToken` performance. -- Added: Support for octal and binary number literals. -- Added: Support for template strings. - - -### Version 0.3.1 (2015-01-06) ### - -- Fixed: Support for unicode spaces. They used to be allowed in names (which is - very confusing), and some unicode newlines were wrongly allowed in strings and - regexes. - - -### Version 0.3.0 (2014-12-19) ### - -- Changed: The `jsTokens.names` array has been replaced with the - `jsTokens.matchToToken` function. The capturing groups of `jsTokens` are no - longer part of the public API; instead use said function. See this [gist] for - an example. (Backwards-incompatible change.) -- Changed: The empty string is now considered an “invalid” token, instead an - “empty” token (its own group). (Backwards-incompatible change.) -- Removed: component support. (Backwards-incompatible change.) - -[gist]: https://gist.github.com/lydell/be49dbf80c382c473004 - - -### Version 0.2.0 (2014-06-19) ### - -- Changed: Match ES6 function arrows (`=>`) as an operator, instead of its own - category (“functionArrow”), for simplicity. (Backwards-incompatible change.) -- Added: ES6 splats (`...`) are now matched as an operator (instead of three - punctuations). (Backwards-incompatible change.) - - -### Version 0.1.0 (2014-03-08) ### - -- Initial release. diff --git a/build_vtk_bundle/node_modules/js-tokens/LICENSE b/build_vtk_bundle/node_modules/js-tokens/LICENSE deleted file mode 100644 index 54aef52f..00000000 --- a/build_vtk_bundle/node_modules/js-tokens/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014, 2015, 2016, 2017, 2018 Simon Lydell - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/js-tokens/README.md b/build_vtk_bundle/node_modules/js-tokens/README.md deleted file mode 100644 index 00cdf163..00000000 --- a/build_vtk_bundle/node_modules/js-tokens/README.md +++ /dev/null @@ -1,240 +0,0 @@ -Overview [![Build Status](https://travis-ci.org/lydell/js-tokens.svg?branch=master)](https://travis-ci.org/lydell/js-tokens) -======== - -A regex that tokenizes JavaScript. - -```js -var jsTokens = require("js-tokens").default - -var jsString = "var foo=opts.foo;\n..." - -jsString.match(jsTokens) -// ["var", " ", "foo", "=", "opts", ".", "foo", ";", "\n", ...] -``` - - -Installation -============ - -`npm install js-tokens` - -```js -import jsTokens from "js-tokens" -// or: -var jsTokens = require("js-tokens").default -``` - - -Usage -===== - -### `jsTokens` ### - -A regex with the `g` flag that matches JavaScript tokens. - -The regex _always_ matches, even invalid JavaScript and the empty string. - -The next match is always directly after the previous. - -### `var token = matchToToken(match)` ### - -```js -import {matchToToken} from "js-tokens" -// or: -var matchToToken = require("js-tokens").matchToToken -``` - -Takes a `match` returned by `jsTokens.exec(string)`, and returns a `{type: -String, value: String}` object. The following types are available: - -- string -- comment -- regex -- number -- name -- punctuator -- whitespace -- invalid - -Multi-line comments and strings also have a `closed` property indicating if the -token was closed or not (see below). - -Comments and strings both come in several flavors. To distinguish them, check if -the token starts with `//`, `/*`, `'`, `"` or `` ` ``. - -Names are ECMAScript IdentifierNames, that is, including both identifiers and -keywords. You may use [is-keyword-js] to tell them apart. - -Whitespace includes both line terminators and other whitespace. - -[is-keyword-js]: https://github.com/crissdev/is-keyword-js - - -ECMAScript support -================== - -The intention is to always support the latest ECMAScript version whose feature -set has been finalized. - -If adding support for a newer version requires changes, a new version with a -major verion bump will be released. - -Currently, ECMAScript 2018 is supported. - - -Invalid code handling -===================== - -Unterminated strings are still matched as strings. JavaScript strings cannot -contain (unescaped) newlines, so unterminated strings simply end at the end of -the line. Unterminated template strings can contain unescaped newlines, though, -so they go on to the end of input. - -Unterminated multi-line comments are also still matched as comments. They -simply go on to the end of the input. - -Unterminated regex literals are likely matched as division and whatever is -inside the regex. - -Invalid ASCII characters have their own capturing group. - -Invalid non-ASCII characters are treated as names, to simplify the matching of -names (except unicode spaces which are treated as whitespace). Note: See also -the [ES2018](#es2018) section. - -Regex literals may contain invalid regex syntax. They are still matched as -regex literals. They may also contain repeated regex flags, to keep the regex -simple. - -Strings may contain invalid escape sequences. - - -Limitations -=========== - -Tokenizing JavaScript using regexes—in fact, _one single regex_—won’t be -perfect. But that’s not the point either. - -You may compare jsTokens with [esprima] by using `esprima-compare.js`. -See `npm run esprima-compare`! - -[esprima]: http://esprima.org/ - -### Template string interpolation ### - -Template strings are matched as single tokens, from the starting `` ` `` to the -ending `` ` ``, including interpolations (whose tokens are not matched -individually). - -Matching template string interpolations requires recursive balancing of `{` and -`}`—something that JavaScript regexes cannot do. Only one level of nesting is -supported. - -### Division and regex literals collision ### - -Consider this example: - -```js -var g = 9.82 -var number = bar / 2/g - -var regex = / 2/g -``` - -A human can easily understand that in the `number` line we’re dealing with -division, and in the `regex` line we’re dealing with a regex literal. How come? -Because humans can look at the whole code to put the `/` characters in context. -A JavaScript regex cannot. It only sees forwards. (Well, ES2018 regexes can also -look backwards. See the [ES2018](#es2018) section). - -When the `jsTokens` regex scans throught the above, it will see the following -at the end of both the `number` and `regex` rows: - -```js -/ 2/g -``` - -It is then impossible to know if that is a regex literal, or part of an -expression dealing with division. - -Here is a similar case: - -```js -foo /= 2/g -foo(/= 2/g) -``` - -The first line divides the `foo` variable with `2/g`. The second line calls the -`foo` function with the regex literal `/= 2/g`. Again, since `jsTokens` only -sees forwards, it cannot tell the two cases apart. - -There are some cases where we _can_ tell division and regex literals apart, -though. - -First off, we have the simple cases where there’s only one slash in the line: - -```js -var foo = 2/g -foo /= 2 -``` - -Regex literals cannot contain newlines, so the above cases are correctly -identified as division. Things are only problematic when there are more than -one non-comment slash in a single line. - -Secondly, not every character is a valid regex flag. - -```js -var number = bar / 2/e -``` - -The above example is also correctly identified as division, because `e` is not a -valid regex flag. I initially wanted to future-proof by allowing `[a-zA-Z]*` -(any letter) as flags, but it is not worth it since it increases the amount of -ambigous cases. So only the standard `g`, `m`, `i`, `y` and `u` flags are -allowed. This means that the above example will be identified as division as -long as you don’t rename the `e` variable to some permutation of `gmiyus` 1 to 6 -characters long. - -Lastly, we can look _forward_ for information. - -- If the token following what looks like a regex literal is not valid after a - regex literal, but is valid in a division expression, then the regex literal - is treated as division instead. For example, a flagless regex cannot be - followed by a string, number or name, but all of those three can be the - denominator of a division. -- Generally, if what looks like a regex literal is followed by an operator, the - regex literal is treated as division instead. This is because regexes are - seldomly used with operators (such as `+`, `*`, `&&` and `==`), but division - could likely be part of such an expression. - -Please consult the regex source and the test cases for precise information on -when regex or division is matched (should you need to know). In short, you -could sum it up as: - -If the end of a statement looks like a regex literal (even if it isn’t), it -will be treated as one. Otherwise it should work as expected (if you write sane -code). - -### ES2018 ### - -ES2018 added some nice regex improvements to the language. - -- [Unicode property escapes] should allow telling names and invalid non-ASCII - characters apart without blowing up the regex size. -- [Lookbehind assertions] should allow matching telling division and regex - literals apart in more cases. -- [Named capture groups] might simplify some things. - -These things would be nice to do, but are not critical. They probably have to -wait until the oldest maintained Node.js LTS release supports those features. - -[Unicode property escapes]: http://2ality.com/2017/07/regexp-unicode-property-escapes.html -[Lookbehind assertions]: http://2ality.com/2017/05/regexp-lookbehind-assertions.html -[Named capture groups]: http://2ality.com/2017/05/regexp-named-capture-groups.html - - -License -======= - -[MIT](LICENSE). diff --git a/build_vtk_bundle/node_modules/js-tokens/index.js b/build_vtk_bundle/node_modules/js-tokens/index.js deleted file mode 100644 index b23a4a0e..00000000 --- a/build_vtk_bundle/node_modules/js-tokens/index.js +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2014, 2015, 2016, 2017, 2018 Simon Lydell -// License: MIT. (See LICENSE.) - -Object.defineProperty(exports, "__esModule", { - value: true -}) - -// This regex comes from regex.coffee, and is inserted here by generate-index.js -// (run `npm run build`). -exports.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g - -exports.matchToToken = function(match) { - var token = {type: "invalid", value: match[0], closed: undefined} - if (match[ 1]) token.type = "string" , token.closed = !!(match[3] || match[4]) - else if (match[ 5]) token.type = "comment" - else if (match[ 6]) token.type = "comment", token.closed = !!match[7] - else if (match[ 8]) token.type = "regex" - else if (match[ 9]) token.type = "number" - else if (match[10]) token.type = "name" - else if (match[11]) token.type = "punctuator" - else if (match[12]) token.type = "whitespace" - return token -} diff --git a/build_vtk_bundle/node_modules/js-tokens/package.json b/build_vtk_bundle/node_modules/js-tokens/package.json deleted file mode 100644 index 66752fab..00000000 --- a/build_vtk_bundle/node_modules/js-tokens/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "js-tokens", - "version": "4.0.0", - "author": "Simon Lydell", - "license": "MIT", - "description": "A regex that tokenizes JavaScript.", - "keywords": [ - "JavaScript", - "js", - "token", - "tokenize", - "regex" - ], - "files": [ - "index.js" - ], - "repository": "lydell/js-tokens", - "scripts": { - "test": "mocha --ui tdd", - "esprima-compare": "node esprima-compare ./index.js everything.js/es5.js", - "build": "node generate-index.js", - "dev": "npm run build && npm test" - }, - "devDependencies": { - "coffeescript": "2.1.1", - "esprima": "4.0.0", - "everything.js": "1.0.3", - "mocha": "5.0.0" - } -} diff --git a/build_vtk_bundle/node_modules/js-yaml/CHANGELOG.md b/build_vtk_bundle/node_modules/js-yaml/CHANGELOG.md deleted file mode 100644 index b3513578..00000000 --- a/build_vtk_bundle/node_modules/js-yaml/CHANGELOG.md +++ /dev/null @@ -1,551 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - - -## [3.14.0] - 2020-05-22 -### Changed -- Support `safe/loadAll(input, options)` variant of call. -- CI: drop outdated nodejs versions. -- Dev deps bump. - -### Fixed -- Quote `=` in plain scalars #519. -- Check the node type for `!` tag in case user manually specifies it. -- Verify that there are no null-bytes in input. -- Fix wrong quote position when writing condensed flow, #526. - - -## [3.13.1] - 2019-04-05 -### Security -- Fix possible code execution in (already unsafe) `.load()`, #480. - - -## [3.13.0] - 2019-03-20 -### Security -- Security fix: `safeLoad()` can hang when arrays with nested refs - used as key. Now throws exception for nested arrays. #475. - - -## [3.12.2] - 2019-02-26 -### Fixed -- Fix `noArrayIndent` option for root level, #468. - - -## [3.12.1] - 2019-01-05 -### Added -- Added `noArrayIndent` option, #432. - - -## [3.12.0] - 2018-06-02 -### Changed -- Support arrow functions without a block statement, #421. - - -## [3.11.0] - 2018-03-05 -### Added -- Add arrow functions suport for `!!js/function`. - -### Fixed -- Fix dump in bin/octal/hex formats for negative integers, #399. - - -## [3.10.0] - 2017-09-10 -### Fixed -- Fix `condenseFlow` output (quote keys for sure, instead of spaces), #371, #370. -- Dump astrals as codepoints instead of surrogate pair, #368. - - -## [3.9.1] - 2017-07-08 -### Fixed -- Ensure stack is present for custom errors in node 7.+, #351. - - -## [3.9.0] - 2017-07-08 -### Added -- Add `condenseFlow` option (to create pretty URL query params), #346. - -### Fixed -- Support array return from safeLoadAll/loadAll, #350. - - -## [3.8.4] - 2017-05-08 -### Fixed -- Dumper: prevent space after dash for arrays that wrap, #343. - - -## [3.8.3] - 2017-04-05 -### Fixed -- Should not allow numbers to begin and end with underscore, #335. - - -## [3.8.2] - 2017-03-02 -### Fixed -- Fix `!!float 123` (integers) parse, #333. -- Don't allow leading zeros in floats (except 0, 0.xxx). -- Allow positive exponent without sign in floats. - - -## [3.8.1] - 2017-02-07 -### Changed -- Maintenance: update browserified build. - - -## [3.8.0] - 2017-02-07 -### Fixed -- Fix reported position for `duplicated mapping key` errors. - Now points to block start instead of block end. - (#243, thanks to @shockey). - - -## [3.7.0] - 2016-11-12 -### Added -- Support polymorphism for tags (#300, thanks to @monken). - -### Fixed -- Fix parsing of quotes followed by newlines (#304, thanks to @dplepage). - - -## [3.6.1] - 2016-05-11 -### Fixed -- Fix output cut on a pipe, #286. - - -## [3.6.0] - 2016-04-16 -### Fixed -- Dumper rewrite, fix multiple bugs with trailing `\n`. - Big thanks to @aepsilon! -- Loader: fix leading/trailing newlines in block scalars, @aepsilon. - - -## [3.5.5] - 2016-03-17 -### Fixed -- Date parse fix: don't allow dates with on digit in month and day, #268. - - -## [3.5.4] - 2016-03-09 -### Added -- `noCompatMode` for dumper, to disable quoting YAML 1.1 values. - - -## [3.5.3] - 2016-02-11 -### Changed -- Maintenance release. - - -## [3.5.2] - 2016-01-11 -### Changed -- Maintenance: missed comma in bower config. - - -## [3.5.1] - 2016-01-11 -### Changed -- Removed `inherit` dependency, #239. -- Better browserify workaround for esprima load. -- Demo rewrite. - - -## [3.5.0] - 2016-01-10 -### Fixed -- Dumper. Fold strings only, #217. -- Dumper. `norefs` option, to clone linked objects, #229. -- Loader. Throw a warning for duplicate keys, #166. -- Improved browserify support (mark `esprima` & `Buffer` excluded). - - -## [3.4.6] - 2015-11-26 -### Changed -- Use standalone `inherit` to keep browserified files clear. - - -## [3.4.5] - 2015-11-23 -### Added -- Added `lineWidth` option to dumper. - - -## [3.4.4] - 2015-11-21 -### Fixed -- Fixed floats dump (missed dot for scientific format), #220. -- Allow non-printable characters inside quoted scalars, #192. - - -## [3.4.3] - 2015-10-10 -### Changed -- Maintenance release - deps bump (esprima, argparse). - - -## [3.4.2] - 2015-09-09 -### Fixed -- Fixed serialization of duplicated entries in sequences, #205. - Thanks to @vogelsgesang. - - -## [3.4.1] - 2015-09-05 -### Fixed -- Fixed stacktrace handling in generated errors, for browsers (FF/IE). - - -## [3.4.0] - 2015-08-23 -### Changed -- Don't throw on warnings anymore. Use `onWarning` option to catch. -- Throw error on unknown tags (was warning before). -- Reworked internals of error class. - -### Fixed -- Fixed multiline keys dump, #197. Thanks to @tcr. -- Fixed heading line breaks in some scalars (regression). - - -## [3.3.1] - 2015-05-13 -### Added -- Added `.sortKeys` dumper option, thanks to @rjmunro. - -### Fixed -- Fixed astral characters support, #191. - - -## [3.3.0] - 2015-04-26 -### Changed -- Significantly improved long strings formatting in dumper, thanks to @isaacs. -- Strip BOM if exists. - - -## [3.2.7] - 2015-02-19 -### Changed -- Maintenance release. -- Updated dependencies. -- HISTORY.md -> CHANGELOG.md - - -## [3.2.6] - 2015-02-07 -### Fixed -- Fixed encoding of UTF-16 surrogate pairs. (e.g. "\U0001F431" CAT FACE). -- Fixed demo dates dump (#113, thanks to @Hypercubed). - - -## [3.2.5] - 2014-12-28 -### Fixed -- Fixed resolving of all built-in types on empty nodes. -- Fixed invalid warning on empty lines within quoted scalars and flow collections. -- Fixed bug: Tag on an empty node didn't resolve in some cases. - - -## [3.2.4] - 2014-12-19 -### Fixed -- Fixed resolving of !!null tag on an empty node. - - -## [3.2.3] - 2014-11-08 -### Fixed -- Implemented dumping of objects with circular and cross references. -- Partially fixed aliasing of constructed objects. (see issue #141 for details) - - -## [3.2.2] - 2014-09-07 -### Fixed -- Fixed infinite loop on unindented block scalars. -- Rewritten base64 encode/decode in binary type, to keep code licence clear. - - -## [3.2.1] - 2014-08-24 -### Fixed -- Nothig new. Just fix npm publish error. - - -## [3.2.0] - 2014-08-24 -### Added -- Added input piping support to CLI. - -### Fixed -- Fixed typo, that could cause hand on initial indent (#139). - - -## [3.1.0] - 2014-07-07 -### Changed -- 1.5x-2x speed boost. -- Removed deprecated `require('xxx.yml')` support. -- Significant code cleanup and refactoring. -- Internal API changed. If you used custom types - see updated examples. - Others are not affected. -- Even if the input string has no trailing line break character, - it will be parsed as if it has one. -- Added benchmark scripts. -- Moved bower files to /dist folder -- Bugfixes. - - -## [3.0.2] - 2014-02-27 -### Fixed -- Fixed bug: "constructor" string parsed as `null`. - - -## [3.0.1] - 2013-12-22 -### Fixed -- Fixed parsing of literal scalars. (issue #108) -- Prevented adding unnecessary spaces in object dumps. (issue #68) -- Fixed dumping of objects with very long (> 1024 in length) keys. - - -## [3.0.0] - 2013-12-16 -### Changed -- Refactored code. Changed API for custom types. -- Removed output colors in CLI, dump json by default. -- Removed big dependencies from browser version (esprima, buffer). Load `esprima` manually, if `!!js/function` needed. `!!bin` now returns Array in browser -- AMD support. -- Don't quote dumped strings because of `-` & `?` (if not first char). -- __Deprecated__ loading yaml files via `require()`, as not recommended - behaviour for node. - - -## [2.1.3] - 2013-10-16 -### Fixed -- Fix wrong loading of empty block scalars. - - -## [2.1.2] - 2013-10-07 -### Fixed -- Fix unwanted line breaks in folded scalars. - - -## [2.1.1] - 2013-10-02 -### Fixed -- Dumper now respects deprecated booleans syntax from YAML 1.0/1.1 -- Fixed reader bug in JSON-like sequences/mappings. - - -## [2.1.0] - 2013-06-05 -### Added -- Add standard YAML schemas: Failsafe (`FAILSAFE_SCHEMA`), - JSON (`JSON_SCHEMA`) and Core (`CORE_SCHEMA`). -- Add `skipInvalid` dumper option. - -### Changed -- Rename `DEFAULT_SCHEMA` to `DEFAULT_FULL_SCHEMA` - and `SAFE_SCHEMA` to `DEFAULT_SAFE_SCHEMA`. -- Use `safeLoad` for `require` extension. - -### Fixed -- Bug fix: export `NIL` constant from the public interface. - - -## [2.0.5] - 2013-04-26 -### Security -- Close security issue in !!js/function constructor. - Big thanks to @nealpoole for security audit. - - -## [2.0.4] - 2013-04-08 -### Changed -- Updated .npmignore to reduce package size - - -## [2.0.3] - 2013-02-26 -### Fixed -- Fixed dumping of empty arrays ans objects. ([] and {} instead of null) - - -## [2.0.2] - 2013-02-15 -### Fixed -- Fixed input validation: tabs are printable characters. - - -## [2.0.1] - 2013-02-09 -### Fixed -- Fixed error, when options not passed to function cass - - -## [2.0.0] - 2013-02-09 -### Changed -- Full rewrite. New architecture. Fast one-stage parsing. -- Changed custom types API. -- Added YAML dumper. - - -## [1.0.3] - 2012-11-05 -### Fixed -- Fixed utf-8 files loading. - - -## [1.0.2] - 2012-08-02 -### Fixed -- Pull out hand-written shims. Use ES5-Shims for old browsers support. See #44. -- Fix timstamps incorectly parsed in local time when no time part specified. - - -## [1.0.1] - 2012-07-07 -### Fixed -- Fixes `TypeError: 'undefined' is not an object` under Safari. Thanks Phuong. -- Fix timestamps incorrectly parsed in local time. Thanks @caolan. Closes #46. - - -## [1.0.0] - 2012-07-01 -### Changed -- `y`, `yes`, `n`, `no`, `on`, `off` are not converted to Booleans anymore. - Fixes #42. -- `require(filename)` now returns a single document and throws an Error if - file contains more than one document. -- CLI was merged back from js-yaml.bin - - -## [0.3.7] - 2012-02-28 -### Fixed -- Fix export of `addConstructor()`. Closes #39. - - -## [0.3.6] - 2012-02-22 -### Changed -- Removed AMD parts - too buggy to use. Need help to rewrite from scratch - -### Fixed -- Removed YUI compressor warning (renamed `double` variable). Closes #40. - - -## [0.3.5] - 2012-01-10 -### Fixed -- Workagound for .npmignore fuckup under windows. Thanks to airportyh. - - -## [0.3.4] - 2011-12-24 -### Fixed -- Fixes str[] for oldIEs support. -- Adds better has change support for browserified demo. -- improves compact output of Error. Closes #33. - - -## [0.3.3] - 2011-12-20 -### Added -- adds `compact` stringification of Errors. - -### Changed -- jsyaml executable moved to separate module. - - -## [0.3.2] - 2011-12-16 -### Added -- Added jsyaml executable. -- Added !!js/function support. Closes #12. - -### Fixed -- Fixes ug with block style scalars. Closes #26. -- All sources are passing JSLint now. -- Fixes bug in Safari. Closes #28. -- Fixes bug in Opers. Closes #29. -- Improves browser support. Closes #20. - - -## [0.3.1] - 2011-11-18 -### Added -- Added AMD support for browserified version. -- Added permalinks for online demo YAML snippets. Now we have YPaste service, lol. -- Added !!js/regexp and !!js/undefined types. Partially solves #12. - -### Changed -- Wrapped browserified js-yaml into closure. - -### Fixed -- Fixed the resolvement of non-specific tags. Closes #17. -- Fixed !!set mapping. -- Fixed month parse in dates. Closes #19. - - -## [0.3.0] - 2011-11-09 -### Added -- Added browserified version. Closes #13. -- Added live demo of browserified version. -- Ported some of the PyYAML tests. See #14. - -### Fixed -- Removed JS.Class dependency. Closes #3. -- Fixed timestamp bug when fraction was given. - - -## [0.2.2] - 2011-11-06 -### Fixed -- Fixed crash on docs without ---. Closes #8. -- Fixed multiline string parse -- Fixed tests/comments for using array as key - - -## [0.2.1] - 2011-11-02 -### Fixed -- Fixed short file read (<4k). Closes #9. - - -## [0.2.0] - 2011-11-02 -### Changed -- First public release - - -[3.14.0]: https://github.com/nodeca/js-yaml/compare/3.13.1...3.14.0 -[3.13.1]: https://github.com/nodeca/js-yaml/compare/3.13.0...3.13.1 -[3.13.0]: https://github.com/nodeca/js-yaml/compare/3.12.2...3.13.0 -[3.12.2]: https://github.com/nodeca/js-yaml/compare/3.12.1...3.12.2 -[3.12.1]: https://github.com/nodeca/js-yaml/compare/3.12.0...3.12.1 -[3.12.0]: https://github.com/nodeca/js-yaml/compare/3.11.0...3.12.0 -[3.11.0]: https://github.com/nodeca/js-yaml/compare/3.10.0...3.11.0 -[3.10.0]: https://github.com/nodeca/js-yaml/compare/3.9.1...3.10.0 -[3.9.1]: https://github.com/nodeca/js-yaml/compare/3.9.0...3.9.1 -[3.9.0]: https://github.com/nodeca/js-yaml/compare/3.8.4...3.9.0 -[3.8.4]: https://github.com/nodeca/js-yaml/compare/3.8.3...3.8.4 -[3.8.3]: https://github.com/nodeca/js-yaml/compare/3.8.2...3.8.3 -[3.8.2]: https://github.com/nodeca/js-yaml/compare/3.8.1...3.8.2 -[3.8.1]: https://github.com/nodeca/js-yaml/compare/3.8.0...3.8.1 -[3.8.0]: https://github.com/nodeca/js-yaml/compare/3.7.0...3.8.0 -[3.7.0]: https://github.com/nodeca/js-yaml/compare/3.6.1...3.7.0 -[3.6.1]: https://github.com/nodeca/js-yaml/compare/3.6.0...3.6.1 -[3.6.0]: https://github.com/nodeca/js-yaml/compare/3.5.5...3.6.0 -[3.5.5]: https://github.com/nodeca/js-yaml/compare/3.5.4...3.5.5 -[3.5.4]: https://github.com/nodeca/js-yaml/compare/3.5.3...3.5.4 -[3.5.3]: https://github.com/nodeca/js-yaml/compare/3.5.2...3.5.3 -[3.5.2]: https://github.com/nodeca/js-yaml/compare/3.5.1...3.5.2 -[3.5.1]: https://github.com/nodeca/js-yaml/compare/3.5.0...3.5.1 -[3.5.0]: https://github.com/nodeca/js-yaml/compare/3.4.6...3.5.0 -[3.4.6]: https://github.com/nodeca/js-yaml/compare/3.4.5...3.4.6 -[3.4.5]: https://github.com/nodeca/js-yaml/compare/3.4.4...3.4.5 -[3.4.4]: https://github.com/nodeca/js-yaml/compare/3.4.3...3.4.4 -[3.4.3]: https://github.com/nodeca/js-yaml/compare/3.4.2...3.4.3 -[3.4.2]: https://github.com/nodeca/js-yaml/compare/3.4.1...3.4.2 -[3.4.1]: https://github.com/nodeca/js-yaml/compare/3.4.0...3.4.1 -[3.4.0]: https://github.com/nodeca/js-yaml/compare/3.3.1...3.4.0 -[3.3.1]: https://github.com/nodeca/js-yaml/compare/3.3.0...3.3.1 -[3.3.0]: https://github.com/nodeca/js-yaml/compare/3.2.7...3.3.0 -[3.2.7]: https://github.com/nodeca/js-yaml/compare/3.2.6...3.2.7 -[3.2.6]: https://github.com/nodeca/js-yaml/compare/3.2.5...3.2.6 -[3.2.5]: https://github.com/nodeca/js-yaml/compare/3.2.4...3.2.5 -[3.2.4]: https://github.com/nodeca/js-yaml/compare/3.2.3...3.2.4 -[3.2.3]: https://github.com/nodeca/js-yaml/compare/3.2.2...3.2.3 -[3.2.2]: https://github.com/nodeca/js-yaml/compare/3.2.1...3.2.2 -[3.2.1]: https://github.com/nodeca/js-yaml/compare/3.2.0...3.2.1 -[3.2.0]: https://github.com/nodeca/js-yaml/compare/3.1.0...3.2.0 -[3.1.0]: https://github.com/nodeca/js-yaml/compare/3.0.2...3.1.0 -[3.0.2]: https://github.com/nodeca/js-yaml/compare/3.0.1...3.0.2 -[3.0.1]: https://github.com/nodeca/js-yaml/compare/3.0.0...3.0.1 -[3.0.0]: https://github.com/nodeca/js-yaml/compare/2.1.3...3.0.0 -[2.1.3]: https://github.com/nodeca/js-yaml/compare/2.1.2...2.1.3 -[2.1.2]: https://github.com/nodeca/js-yaml/compare/2.1.1...2.1.2 -[2.1.1]: https://github.com/nodeca/js-yaml/compare/2.1.0...2.1.1 -[2.1.0]: https://github.com/nodeca/js-yaml/compare/2.0.5...2.1.0 -[2.0.5]: https://github.com/nodeca/js-yaml/compare/2.0.4...2.0.5 -[2.0.4]: https://github.com/nodeca/js-yaml/compare/2.0.3...2.0.4 -[2.0.3]: https://github.com/nodeca/js-yaml/compare/2.0.2...2.0.3 -[2.0.2]: https://github.com/nodeca/js-yaml/compare/2.0.1...2.0.2 -[2.0.1]: https://github.com/nodeca/js-yaml/compare/2.0.0...2.0.1 -[2.0.0]: https://github.com/nodeca/js-yaml/compare/1.0.3...2.0.0 -[1.0.3]: https://github.com/nodeca/js-yaml/compare/1.0.2...1.0.3 -[1.0.2]: https://github.com/nodeca/js-yaml/compare/1.0.1...1.0.2 -[1.0.1]: https://github.com/nodeca/js-yaml/compare/1.0.0...1.0.1 -[1.0.0]: https://github.com/nodeca/js-yaml/compare/0.3.7...1.0.0 -[0.3.7]: https://github.com/nodeca/js-yaml/compare/0.3.6...0.3.7 -[0.3.6]: https://github.com/nodeca/js-yaml/compare/0.3.5...0.3.6 -[0.3.5]: https://github.com/nodeca/js-yaml/compare/0.3.4...0.3.5 -[0.3.4]: https://github.com/nodeca/js-yaml/compare/0.3.3...0.3.4 -[0.3.3]: https://github.com/nodeca/js-yaml/compare/0.3.2...0.3.3 -[0.3.2]: https://github.com/nodeca/js-yaml/compare/0.3.1...0.3.2 -[0.3.1]: https://github.com/nodeca/js-yaml/compare/0.3.0...0.3.1 -[0.3.0]: https://github.com/nodeca/js-yaml/compare/0.2.2...0.3.0 -[0.2.2]: https://github.com/nodeca/js-yaml/compare/0.2.1...0.2.2 -[0.2.1]: https://github.com/nodeca/js-yaml/compare/0.2.0...0.2.1 -[0.2.0]: https://github.com/nodeca/js-yaml/releases/tag/0.2.0 diff --git a/build_vtk_bundle/node_modules/js-yaml/LICENSE b/build_vtk_bundle/node_modules/js-yaml/LICENSE deleted file mode 100644 index 09d3a29e..00000000 --- a/build_vtk_bundle/node_modules/js-yaml/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -(The MIT License) - -Copyright (C) 2011-2015 by Vitaly Puzrin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/js-yaml/README.md b/build_vtk_bundle/node_modules/js-yaml/README.md deleted file mode 100644 index 246e5635..00000000 --- a/build_vtk_bundle/node_modules/js-yaml/README.md +++ /dev/null @@ -1,299 +0,0 @@ -JS-YAML - YAML 1.2 parser / writer for JavaScript -================================================= - -[![Build Status](https://travis-ci.org/nodeca/js-yaml.svg?branch=master)](https://travis-ci.org/nodeca/js-yaml) -[![NPM version](https://img.shields.io/npm/v/js-yaml.svg)](https://www.npmjs.org/package/js-yaml) - -__[Online Demo](http://nodeca.github.com/js-yaml/)__ - - -This is an implementation of [YAML](http://yaml.org/), a human-friendly data -serialization language. Started as [PyYAML](http://pyyaml.org/) port, it was -completely rewritten from scratch. Now it's very fast, and supports 1.2 spec. - - -Installation ------------- - -### YAML module for node.js - -``` -npm install js-yaml -``` - - -### CLI executable - -If you want to inspect your YAML files from CLI, install js-yaml globally: - -``` -npm install -g js-yaml -``` - -#### Usage - -``` -usage: js-yaml [-h] [-v] [-c] [-t] file - -Positional arguments: - file File with YAML document(s) - -Optional arguments: - -h, --help Show this help message and exit. - -v, --version Show program's version number and exit. - -c, --compact Display errors in compact mode - -t, --trace Show stack trace on error -``` - - -### Bundled YAML library for browsers - -``` html - - - - -``` - -Browser support was done mostly for the online demo. If you find any errors - feel -free to send pull requests with fixes. Also note, that IE and other old browsers -needs [es5-shims](https://github.com/kriskowal/es5-shim) to operate. - -Notes: - -1. We have no resources to support browserified version. Don't expect it to be - well tested. Don't expect fast fixes if something goes wrong there. -2. `!!js/function` in browser bundle will not work by default. If you really need - it - load `esprima` parser first (via amd or directly). -3. `!!bin` in browser will return `Array`, because browsers do not support - node.js `Buffer` and adding Buffer shims is completely useless on practice. - - -API ---- - -Here we cover the most 'useful' methods. If you need advanced details (creating -your own tags), see [wiki](https://github.com/nodeca/js-yaml/wiki) and -[examples](https://github.com/nodeca/js-yaml/tree/master/examples) for more -info. - -``` javascript -const yaml = require('js-yaml'); -const fs = require('fs'); - -// Get document, or throw exception on error -try { - const doc = yaml.safeLoad(fs.readFileSync('/home/ixti/example.yml', 'utf8')); - console.log(doc); -} catch (e) { - console.log(e); -} -``` - - -### safeLoad (string [ , options ]) - -**Recommended loading way.** Parses `string` as single YAML document. Returns either a -plain object, a string or `undefined`, or throws `YAMLException` on error. By default, does -not support regexps, functions and undefined. This method is safe for untrusted data. - -options: - -- `filename` _(default: null)_ - string to be used as a file path in - error/warning messages. -- `onWarning` _(default: null)_ - function to call on warning messages. - Loader will call this function with an instance of `YAMLException` for each warning. -- `schema` _(default: `DEFAULT_SAFE_SCHEMA`)_ - specifies a schema to use. - - `FAILSAFE_SCHEMA` - only strings, arrays and plain objects: - http://www.yaml.org/spec/1.2/spec.html#id2802346 - - `JSON_SCHEMA` - all JSON-supported types: - http://www.yaml.org/spec/1.2/spec.html#id2803231 - - `CORE_SCHEMA` - same as `JSON_SCHEMA`: - http://www.yaml.org/spec/1.2/spec.html#id2804923 - - `DEFAULT_SAFE_SCHEMA` - all supported YAML types, without unsafe ones - (`!!js/undefined`, `!!js/regexp` and `!!js/function`): - http://yaml.org/type/ - - `DEFAULT_FULL_SCHEMA` - all supported YAML types. -- `json` _(default: false)_ - compatibility with JSON.parse behaviour. If true, then duplicate keys in a mapping will override values rather than throwing an error. - -NOTE: This function **does not** understand multi-document sources, it throws -exception on those. - -NOTE: JS-YAML **does not** support schema-specific tag resolution restrictions. -So, the JSON schema is not as strictly defined in the YAML specification. -It allows numbers in any notation, use `Null` and `NULL` as `null`, etc. -The core schema also has no such restrictions. It allows binary notation for integers. - - -### load (string [ , options ]) - -**Use with care with untrusted sources**. The same as `safeLoad()` but uses -`DEFAULT_FULL_SCHEMA` by default - adds some JavaScript-specific types: -`!!js/function`, `!!js/regexp` and `!!js/undefined`. For untrusted sources, you -must additionally validate object structure to avoid injections: - -``` javascript -const untrusted_code = '"toString": ! "function (){very_evil_thing();}"'; - -// I'm just converting that string, what could possibly go wrong? -require('js-yaml').load(untrusted_code) + '' -``` - - -### safeLoadAll (string [, iterator] [, options ]) - -Same as `safeLoad()`, but understands multi-document sources. Applies -`iterator` to each document if specified, or returns array of documents. - -``` javascript -const yaml = require('js-yaml'); - -yaml.safeLoadAll(data, function (doc) { - console.log(doc); -}); -``` - - -### loadAll (string [, iterator] [ , options ]) - -Same as `safeLoadAll()` but uses `DEFAULT_FULL_SCHEMA` by default. - - -### safeDump (object [ , options ]) - -Serializes `object` as a YAML document. Uses `DEFAULT_SAFE_SCHEMA`, so it will -throw an exception if you try to dump regexps or functions. However, you can -disable exceptions by setting the `skipInvalid` option to `true`. - -options: - -- `indent` _(default: 2)_ - indentation width to use (in spaces). -- `noArrayIndent` _(default: false)_ - when true, will not add an indentation level to array elements -- `skipInvalid` _(default: false)_ - do not throw on invalid types (like function - in the safe schema) and skip pairs and single values with such types. -- `flowLevel` (default: -1) - specifies level of nesting, when to switch from - block to flow style for collections. -1 means block style everwhere -- `styles` - "tag" => "style" map. Each tag may have own set of styles. -- `schema` _(default: `DEFAULT_SAFE_SCHEMA`)_ specifies a schema to use. -- `sortKeys` _(default: `false`)_ - if `true`, sort keys when dumping YAML. If a - function, use the function to sort the keys. -- `lineWidth` _(default: `80`)_ - set max line width. -- `noRefs` _(default: `false`)_ - if `true`, don't convert duplicate objects into references -- `noCompatMode` _(default: `false`)_ - if `true` don't try to be compatible with older - yaml versions. Currently: don't quote "yes", "no" and so on, as required for YAML 1.1 -- `condenseFlow` _(default: `false`)_ - if `true` flow sequences will be condensed, omitting the space between `a, b`. Eg. `'[a,b]'`, and omitting the space between `key: value` and quoting the key. Eg. `'{"a":b}'` Can be useful when using yaml for pretty URL query params as spaces are %-encoded. - -The following table show availlable styles (e.g. "canonical", -"binary"...) available for each tag (.e.g. !!null, !!int ...). Yaml -output is shown on the right side after `=>` (default setting) or `->`: - -``` none -!!null - "canonical" -> "~" - "lowercase" => "null" - "uppercase" -> "NULL" - "camelcase" -> "Null" - -!!int - "binary" -> "0b1", "0b101010", "0b1110001111010" - "octal" -> "01", "052", "016172" - "decimal" => "1", "42", "7290" - "hexadecimal" -> "0x1", "0x2A", "0x1C7A" - -!!bool - "lowercase" => "true", "false" - "uppercase" -> "TRUE", "FALSE" - "camelcase" -> "True", "False" - -!!float - "lowercase" => ".nan", '.inf' - "uppercase" -> ".NAN", '.INF' - "camelcase" -> ".NaN", '.Inf' -``` - -Example: - -``` javascript -safeDump (object, { - 'styles': { - '!!null': 'canonical' // dump null as ~ - }, - 'sortKeys': true // sort object keys -}); -``` - -### dump (object [ , options ]) - -Same as `safeDump()` but without limits (uses `DEFAULT_FULL_SCHEMA` by default). - - -Supported YAML types --------------------- - -The list of standard YAML tags and corresponding JavaScipt types. See also -[YAML tag discussion](http://pyyaml.org/wiki/YAMLTagDiscussion) and -[YAML types repository](http://yaml.org/type/). - -``` -!!null '' # null -!!bool 'yes' # bool -!!int '3...' # number -!!float '3.14...' # number -!!binary '...base64...' # buffer -!!timestamp 'YYYY-...' # date -!!omap [ ... ] # array of key-value pairs -!!pairs [ ... ] # array or array pairs -!!set { ... } # array of objects with given keys and null values -!!str '...' # string -!!seq [ ... ] # array -!!map { ... } # object -``` - -**JavaScript-specific tags** - -``` -!!js/regexp /pattern/gim # RegExp -!!js/undefined '' # Undefined -!!js/function 'function () {...}' # Function -``` - -Caveats -------- - -Note, that you use arrays or objects as key in JS-YAML. JS does not allow objects -or arrays as keys, and stringifies (by calling `toString()` method) them at the -moment of adding them. - -``` yaml ---- -? [ foo, bar ] -: - baz -? { foo: bar } -: - baz - - baz -``` - -``` javascript -{ "foo,bar": ["baz"], "[object Object]": ["baz", "baz"] } -``` - -Also, reading of properties on implicit block mapping keys is not supported yet. -So, the following YAML document cannot be loaded. - -``` yaml -&anchor foo: - foo: bar - *anchor: duplicate key - baz: bat - *anchor: duplicate key -``` - - -js-yaml for enterprise ----------------------- - -Available as part of the Tidelift Subscription - -The maintainers of js-yaml and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-js-yaml?utm_source=npm-js-yaml&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) diff --git a/build_vtk_bundle/node_modules/js-yaml/bin/js-yaml.js b/build_vtk_bundle/node_modules/js-yaml/bin/js-yaml.js deleted file mode 100755 index e79186be..00000000 --- a/build_vtk_bundle/node_modules/js-yaml/bin/js-yaml.js +++ /dev/null @@ -1,132 +0,0 @@ -#!/usr/bin/env node - - -'use strict'; - -/*eslint-disable no-console*/ - - -// stdlib -var fs = require('fs'); - - -// 3rd-party -var argparse = require('argparse'); - - -// internal -var yaml = require('..'); - - -//////////////////////////////////////////////////////////////////////////////// - - -var cli = new argparse.ArgumentParser({ - prog: 'js-yaml', - version: require('../package.json').version, - addHelp: true -}); - - -cli.addArgument([ '-c', '--compact' ], { - help: 'Display errors in compact mode', - action: 'storeTrue' -}); - - -// deprecated (not needed after we removed output colors) -// option suppressed, but not completely removed for compatibility -cli.addArgument([ '-j', '--to-json' ], { - help: argparse.Const.SUPPRESS, - dest: 'json', - action: 'storeTrue' -}); - - -cli.addArgument([ '-t', '--trace' ], { - help: 'Show stack trace on error', - action: 'storeTrue' -}); - -cli.addArgument([ 'file' ], { - help: 'File to read, utf-8 encoded without BOM', - nargs: '?', - defaultValue: '-' -}); - - -//////////////////////////////////////////////////////////////////////////////// - - -var options = cli.parseArgs(); - - -//////////////////////////////////////////////////////////////////////////////// - -function readFile(filename, encoding, callback) { - if (options.file === '-') { - // read from stdin - - var chunks = []; - - process.stdin.on('data', function (chunk) { - chunks.push(chunk); - }); - - process.stdin.on('end', function () { - return callback(null, Buffer.concat(chunks).toString(encoding)); - }); - } else { - fs.readFile(filename, encoding, callback); - } -} - -readFile(options.file, 'utf8', function (error, input) { - var output, isYaml; - - if (error) { - if (error.code === 'ENOENT') { - console.error('File not found: ' + options.file); - process.exit(2); - } - - console.error( - options.trace && error.stack || - error.message || - String(error)); - - process.exit(1); - } - - try { - output = JSON.parse(input); - isYaml = false; - } catch (err) { - if (err instanceof SyntaxError) { - try { - output = []; - yaml.loadAll(input, function (doc) { output.push(doc); }, {}); - isYaml = true; - - if (output.length === 0) output = null; - else if (output.length === 1) output = output[0]; - - } catch (e) { - if (options.trace && err.stack) console.error(e.stack); - else console.error(e.toString(options.compact)); - - process.exit(1); - } - } else { - console.error( - options.trace && err.stack || - err.message || - String(err)); - - process.exit(1); - } - } - - if (isYaml) console.log(JSON.stringify(output, null, ' ')); - else console.log(yaml.dump(output)); -}); diff --git a/build_vtk_bundle/node_modules/js-yaml/index.js b/build_vtk_bundle/node_modules/js-yaml/index.js deleted file mode 100644 index 13744352..00000000 --- a/build_vtk_bundle/node_modules/js-yaml/index.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - - -var yaml = require('./lib/js-yaml.js'); - - -module.exports = yaml; diff --git a/build_vtk_bundle/node_modules/js-yaml/package.json b/build_vtk_bundle/node_modules/js-yaml/package.json deleted file mode 100644 index 66aa7f00..00000000 --- a/build_vtk_bundle/node_modules/js-yaml/package.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "name": "js-yaml", - "version": "3.14.0", - "description": "YAML 1.2 parser and serializer", - "keywords": [ - "yaml", - "parser", - "serializer", - "pyyaml" - ], - "homepage": "https://github.com/nodeca/js-yaml", - "author": "Vladimir Zapparov ", - "contributors": [ - "Aleksey V Zapparov (http://www.ixti.net/)", - "Vitaly Puzrin (https://github.com/puzrin)", - "Martin Grenfell (http://got-ravings.blogspot.com)" - ], - "license": "MIT", - "repository": "nodeca/js-yaml", - "files": [ - "index.js", - "lib/", - "bin/", - "dist/" - ], - "bin": { - "js-yaml": "bin/js-yaml.js" - }, - "unpkg": "dist/js-yaml.min.js", - "jsdelivr": "dist/js-yaml.min.js", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "devDependencies": { - "ansi": "^0.3.1", - "benchmark": "^2.1.4", - "browserify": "^16.2.2", - "codemirror": "^5.13.4", - "eslint": "^7.0.0", - "fast-check": "^1.24.2", - "istanbul": "^0.4.5", - "mocha": "^7.1.2", - "uglify-js": "^3.0.1" - }, - "scripts": { - "test": "make test" - } -} diff --git a/build_vtk_bundle/node_modules/jsesc/LICENSE-MIT.txt b/build_vtk_bundle/node_modules/jsesc/LICENSE-MIT.txt deleted file mode 100644 index a41e0a7e..00000000 --- a/build_vtk_bundle/node_modules/jsesc/LICENSE-MIT.txt +++ /dev/null @@ -1,20 +0,0 @@ -Copyright Mathias Bynens - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/jsesc/README.md b/build_vtk_bundle/node_modules/jsesc/README.md deleted file mode 100644 index 840d2c85..00000000 --- a/build_vtk_bundle/node_modules/jsesc/README.md +++ /dev/null @@ -1,422 +0,0 @@ -# jsesc - -Given some data, _jsesc_ returns a stringified representation of that data. jsesc is similar to `JSON.stringify()` except: - -1. it outputs JavaScript instead of JSON [by default](#json), enabling support for data structures like ES6 maps and sets; -2. it offers [many options](#api) to customize the output; -3. its output is ASCII-safe [by default](#minimal), thanks to its use of [escape sequences](https://mathiasbynens.be/notes/javascript-escapes) where needed. - -For any input, jsesc generates the shortest possible valid printable-ASCII-only output. [Here’s an online demo.](https://mothereff.in/js-escapes) - -jsesc’s output can be used instead of `JSON.stringify`’s to avoid [mojibake](https://en.wikipedia.org/wiki/Mojibake) and other encoding issues, or even to [avoid errors](https://twitter.com/annevk/status/380000829643571200) when passing JSON-formatted data (which may contain U+2028 LINE SEPARATOR, U+2029 PARAGRAPH SEPARATOR, or [lone surrogates](https://esdiscuss.org/topic/code-points-vs-unicode-scalar-values#content-14)) to a JavaScript parser or an UTF-8 encoder. - -## Installation - -Via [npm](https://www.npmjs.com/): - -```bash -npm install jsesc -``` - -In [Node.js](https://nodejs.org/): - -```js -const jsesc = require('jsesc'); -``` - -## API - -### `jsesc(value, options)` - -This function takes a value and returns an escaped version of the value where any characters that are not printable ASCII symbols are escaped using the shortest possible (but valid) [escape sequences for use in JavaScript strings](https://mathiasbynens.be/notes/javascript-escapes). The first supported value type is strings: - -```js -jsesc('Ich ♥ Bücher'); -// → 'Ich \\u2665 B\\xFCcher' - -jsesc('foo 𝌆 bar'); -// → 'foo \\uD834\\uDF06 bar' -``` - -Instead of a string, the `value` can also be an array, an object, a map, a set, or a buffer. In such cases, `jsesc` returns a stringified version of the value where any characters that are not printable ASCII symbols are escaped in the same way. - -```js -// Escaping an array -jsesc([ - 'Ich ♥ Bücher', 'foo 𝌆 bar' -]); -// → '[\'Ich \\u2665 B\\xFCcher\',\'foo \\uD834\\uDF06 bar\']' - -// Escaping an object -jsesc({ - 'Ich ♥ Bücher': 'foo 𝌆 bar' -}); -// → '{\'Ich \\u2665 B\\xFCcher\':\'foo \\uD834\\uDF06 bar\'}' -``` - -The optional `options` argument accepts an object with the following options: - -#### `quotes` - -The default value for the `quotes` option is `'single'`. This means that any occurrences of `'` in the input string are escaped as `\'`, so that the output can be used in a string literal wrapped in single quotes. - -```js -jsesc('`Lorem` ipsum "dolor" sit \'amet\' etc.'); -// → 'Lorem ipsum "dolor" sit \\\'amet\\\' etc.' - -jsesc('`Lorem` ipsum "dolor" sit \'amet\' etc.', { - 'quotes': 'single' -}); -// → '`Lorem` ipsum "dolor" sit \\\'amet\\\' etc.' -// → "`Lorem` ipsum \"dolor\" sit \\'amet\\' etc." -``` - -If you want to use the output as part of a string literal wrapped in double quotes, set the `quotes` option to `'double'`. - -```js -jsesc('`Lorem` ipsum "dolor" sit \'amet\' etc.', { - 'quotes': 'double' -}); -// → '`Lorem` ipsum \\"dolor\\" sit \'amet\' etc.' -// → "`Lorem` ipsum \\\"dolor\\\" sit 'amet' etc." -``` - -If you want to use the output as part of a template literal (i.e. wrapped in backticks), set the `quotes` option to `'backtick'`. - -```js -jsesc('`Lorem` ipsum "dolor" sit \'amet\' etc.', { - 'quotes': 'backtick' -}); -// → '\\`Lorem\\` ipsum "dolor" sit \'amet\' etc.' -// → "\\`Lorem\\` ipsum \"dolor\" sit 'amet' etc." -// → `\\\`Lorem\\\` ipsum "dolor" sit 'amet' etc.` -``` - -This setting also affects the output for arrays and objects: - -```js -jsesc({ 'Ich ♥ Bücher': 'foo 𝌆 bar' }, { - 'quotes': 'double' -}); -// → '{"Ich \\u2665 B\\xFCcher":"foo \\uD834\\uDF06 bar"}' - -jsesc([ 'Ich ♥ Bücher', 'foo 𝌆 bar' ], { - 'quotes': 'double' -}); -// → '["Ich \\u2665 B\\xFCcher","foo \\uD834\\uDF06 bar"]' -``` - -#### `numbers` - -The default value for the `numbers` option is `'decimal'`. This means that any numeric values are represented using decimal integer literals. Other valid options are `binary`, `octal`, and `hexadecimal`, which result in binary integer literals, octal integer literals, and hexadecimal integer literals, respectively. - -```js -jsesc(42, { - 'numbers': 'binary' -}); -// → '0b101010' - -jsesc(42, { - 'numbers': 'octal' -}); -// → '0o52' - -jsesc(42, { - 'numbers': 'decimal' -}); -// → '42' - -jsesc(42, { - 'numbers': 'hexadecimal' -}); -// → '0x2A' -``` - -#### `wrap` - -The `wrap` option takes a boolean value (`true` or `false`), and defaults to `false` (disabled). When enabled, the output is a valid JavaScript string literal wrapped in quotes. The type of quotes can be specified through the `quotes` setting. - -```js -jsesc('Lorem ipsum "dolor" sit \'amet\' etc.', { - 'quotes': 'single', - 'wrap': true -}); -// → '\'Lorem ipsum "dolor" sit \\\'amet\\\' etc.\'' -// → "\'Lorem ipsum \"dolor\" sit \\\'amet\\\' etc.\'" - -jsesc('Lorem ipsum "dolor" sit \'amet\' etc.', { - 'quotes': 'double', - 'wrap': true -}); -// → '"Lorem ipsum \\"dolor\\" sit \'amet\' etc."' -// → "\"Lorem ipsum \\\"dolor\\\" sit \'amet\' etc.\"" -``` - -#### `es6` - -The `es6` option takes a boolean value (`true` or `false`), and defaults to `false` (disabled). When enabled, any astral Unicode symbols in the input are escaped using [ECMAScript 6 Unicode code point escape sequences](https://mathiasbynens.be/notes/javascript-escapes#unicode-code-point) instead of using separate escape sequences for each surrogate half. If backwards compatibility with ES5 environments is a concern, don’t enable this setting. If the `json` setting is enabled, the value for the `es6` setting is ignored (as if it was `false`). - -```js -// By default, the `es6` option is disabled: -jsesc('foo 𝌆 bar 💩 baz'); -// → 'foo \\uD834\\uDF06 bar \\uD83D\\uDCA9 baz' - -// To explicitly disable it: -jsesc('foo 𝌆 bar 💩 baz', { - 'es6': false -}); -// → 'foo \\uD834\\uDF06 bar \\uD83D\\uDCA9 baz' - -// To enable it: -jsesc('foo 𝌆 bar 💩 baz', { - 'es6': true -}); -// → 'foo \\u{1D306} bar \\u{1F4A9} baz' -``` - -#### `escapeEverything` - -The `escapeEverything` option takes a boolean value (`true` or `false`), and defaults to `false` (disabled). When enabled, all the symbols in the output are escaped — even printable ASCII symbols. - -```js -jsesc('lolwat"foo\'bar', { - 'escapeEverything': true -}); -// → '\\x6C\\x6F\\x6C\\x77\\x61\\x74\\"\\x66\\x6F\\x6F\\\'\\x62\\x61\\x72' -// → "\\x6C\\x6F\\x6C\\x77\\x61\\x74\\\"\\x66\\x6F\\x6F\\'\\x62\\x61\\x72" -``` - -This setting also affects the output for string literals within arrays and objects. - -#### `minimal` - -The `minimal` option takes a boolean value (`true` or `false`), and defaults to `false` (disabled). When enabled, only a limited set of symbols in the output are escaped: - -* U+0000 `\0` -* U+0008 `\b` -* U+0009 `\t` -* U+000A `\n` -* U+000C `\f` -* U+000D `\r` -* U+005C `\\` -* U+2028 `\u2028` -* U+2029 `\u2029` -* whatever symbol is being used for wrapping string literals (based on [the `quotes` option](#quotes)) -* [lone surrogates](https://esdiscuss.org/topic/code-points-vs-unicode-scalar-values#content-14) - -Note: with this option enabled, jsesc output is no longer guaranteed to be ASCII-safe. - -```js -jsesc('foo\u2029bar\nbaz©qux𝌆flops', { - 'minimal': false -}); -// → 'foo\\u2029bar\\nbaz©qux𝌆flops' -``` - -#### `isScriptContext` - -The `isScriptContext` option takes a boolean value (`true` or `false`), and defaults to `false` (disabled). When enabled, occurrences of [`` or ` - - -
-
-

- All files -

-
-
- 93.21% - Statements - 439/471 -
-
- 73.2% - Branches - 142/194 -
-
- 90.41% - Functions - 66/73 -
-
- 94.44% - Lines - 374/396 -
-
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
seedrandom
96%96/10085.11%40/4793.33%14/1596.39%80/83
seedrandom/lib
92.45%343/37169.39%102/14789.66%52/5893.93%294/313
-
-
- - - - - - - - diff --git a/build_vtk_bundle/node_modules/seedrandom/coverage/lcov-report/prettify.css b/build_vtk_bundle/node_modules/seedrandom/coverage/lcov-report/prettify.css deleted file mode 100644 index b317a7cd..00000000 --- a/build_vtk_bundle/node_modules/seedrandom/coverage/lcov-report/prettify.css +++ /dev/null @@ -1 +0,0 @@ -.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} diff --git a/build_vtk_bundle/node_modules/seedrandom/coverage/lcov-report/prettify.js b/build_vtk_bundle/node_modules/seedrandom/coverage/lcov-report/prettify.js deleted file mode 100644 index b3225238..00000000 --- a/build_vtk_bundle/node_modules/seedrandom/coverage/lcov-report/prettify.js +++ /dev/null @@ -1,2 +0,0 @@ -/* eslint-disable */ -window.PR_SHOULD_USE_CONTINUATION=true;(function(){var h=["break,continue,do,else,for,if,return,while"];var u=[h,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var p=[u,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var l=[p,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var x=[p,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var R=[x,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"];var r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes";var w=[p,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var I=[h,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var f=[h,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var H=[h,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var A=[l,R,w,s+I,f,H];var e=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/;var C="str";var z="kwd";var j="com";var O="typ";var G="lit";var L="pun";var F="pln";var m="tag";var E="dec";var J="src";var P="atn";var n="atv";var N="nocode";var M="(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function k(Z){var ad=0;var S=false;var ac=false;for(var V=0,U=Z.length;V122)){if(!(al<65||ag>90)){af.push([Math.max(65,ag)|32,Math.min(al,90)|32])}if(!(al<97||ag>122)){af.push([Math.max(97,ag)&~32,Math.min(al,122)&~32])}}}}af.sort(function(av,au){return(av[0]-au[0])||(au[1]-av[1])});var ai=[];var ap=[NaN,NaN];for(var ar=0;arat[0]){if(at[1]+1>at[0]){an.push("-")}an.push(T(at[1]))}}an.push("]");return an.join("")}function W(al){var aj=al.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var ah=aj.length;var an=[];for(var ak=0,am=0;ak=2&&ai==="["){aj[ak]=X(ag)}else{if(ai!=="\\"){aj[ak]=ag.replace(/[a-zA-Z]/g,function(ao){var ap=ao.charCodeAt(0);return"["+String.fromCharCode(ap&~32,ap|32)+"]"})}}}}return aj.join("")}var aa=[];for(var V=0,U=Z.length;V=0;){S[ac.charAt(ae)]=Y}}var af=Y[1];var aa=""+af;if(!ag.hasOwnProperty(aa)){ah.push(af);ag[aa]=null}}ah.push(/[\0-\uffff]/);V=k(ah)})();var X=T.length;var W=function(ah){var Z=ah.sourceCode,Y=ah.basePos;var ad=[Y,F];var af=0;var an=Z.match(V)||[];var aj={};for(var ae=0,aq=an.length;ae=5&&"lang-"===ap.substring(0,5);if(am&&!(ai&&typeof ai[1]==="string")){am=false;ap=J}if(!am){aj[ag]=ap}}var ab=af;af+=ag.length;if(!am){ad.push(Y+ab,ap)}else{var al=ai[1];var ak=ag.indexOf(al);var ac=ak+al.length;if(ai[2]){ac=ag.length-ai[2].length;ak=ac-al.length}var ar=ap.substring(5);B(Y+ab,ag.substring(0,ak),W,ad);B(Y+ab+ak,al,q(ar,al),ad);B(Y+ab+ac,ag.substring(ac),W,ad)}}ah.decorations=ad};return W}function i(T){var W=[],S=[];if(T.tripleQuotedStrings){W.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(T.multiLineStrings){W.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{W.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(T.verbatimStrings){S.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var Y=T.hashComments;if(Y){if(T.cStyleComments){if(Y>1){W.push([j,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{W.push([j,/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}S.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null])}else{W.push([j,/^#[^\r\n]*/,null,"#"])}}if(T.cStyleComments){S.push([j,/^\/\/[^\r\n]*/,null]);S.push([j,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(T.regexLiterals){var X=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");S.push(["lang-regex",new RegExp("^"+M+"("+X+")")])}var V=T.types;if(V){S.push([O,V])}var U=(""+T.keywords).replace(/^ | $/g,"");if(U.length){S.push([z,new RegExp("^(?:"+U.replace(/[\s,]+/g,"|")+")\\b"),null])}W.push([F,/^\s+/,null," \r\n\t\xA0"]);S.push([G,/^@[a-z_$][a-z_$@0-9]*/i,null],[O,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[F,/^[a-z_$][a-z_$@0-9]*/i,null],[G,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[F,/^\\[\s\S]?/,null],[L,/^.[^\s\w\.$@\'\"\`\/\#\\]*/,null]);return g(W,S)}var K=i({keywords:A,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function Q(V,ag){var U=/(?:^|\s)nocode(?:\s|$)/;var ab=/\r\n?|\n/;var ac=V.ownerDocument;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=ac.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Z=S&&"pre"===S.substring(0,3);var af=ac.createElement("LI");while(V.firstChild){af.appendChild(V.firstChild)}var W=[af];function ae(al){switch(al.nodeType){case 1:if(U.test(al.className)){break}if("BR"===al.nodeName){ad(al);if(al.parentNode){al.parentNode.removeChild(al)}}else{for(var an=al.firstChild;an;an=an.nextSibling){ae(an)}}break;case 3:case 4:if(Z){var am=al.nodeValue;var aj=am.match(ab);if(aj){var ai=am.substring(0,aj.index);al.nodeValue=ai;var ah=am.substring(aj.index+aj[0].length);if(ah){var ak=al.parentNode;ak.insertBefore(ac.createTextNode(ah),al.nextSibling)}ad(al);if(!ai){al.parentNode.removeChild(al)}}}break}}function ad(ak){while(!ak.nextSibling){ak=ak.parentNode;if(!ak){return}}function ai(al,ar){var aq=ar?al.cloneNode(false):al;var ao=al.parentNode;if(ao){var ap=ai(ao,1);var an=al.nextSibling;ap.appendChild(aq);for(var am=an;am;am=an){an=am.nextSibling;ap.appendChild(am)}}return aq}var ah=ai(ak.nextSibling,0);for(var aj;(aj=ah.parentNode)&&aj.nodeType===1;){ah=aj}W.push(ah)}for(var Y=0;Y=S){ah+=2}if(V>=ap){Z+=2}}}var t={};function c(U,V){for(var S=V.length;--S>=0;){var T=V[S];if(!t.hasOwnProperty(T)){t[T]=U}else{if(window.console){console.warn("cannot override language handler %s",T)}}}}function q(T,S){if(!(T&&t.hasOwnProperty(T))){T=/^\s*]*(?:>|$)/],[j,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[L,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);c(g([[F,/^[\s]+/,null," \t\r\n"],[n,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[m,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[L,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);c(g([],[[n,/^[\s\S]+/]]),["uq.val"]);c(i({keywords:l,hashComments:true,cStyleComments:true,types:e}),["c","cc","cpp","cxx","cyc","m"]);c(i({keywords:"null,true,false"}),["json"]);c(i({keywords:R,hashComments:true,cStyleComments:true,verbatimStrings:true,types:e}),["cs"]);c(i({keywords:x,cStyleComments:true}),["java"]);c(i({keywords:H,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);c(i({keywords:I,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);c(i({keywords:s,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);c(i({keywords:f,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);c(i({keywords:w,cStyleComments:true,regexLiterals:true}),["js"]);c(i({keywords:r,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);c(g([],[[C,/^[\s\S]+/]]),["regex"]);function d(V){var U=V.langExtension;try{var S=a(V.sourceNode);var T=S.sourceCode;V.sourceCode=T;V.spans=S.spans;V.basePos=0;q(U,T)(V);D(V)}catch(W){if("console" in window){console.log(W&&W.stack?W.stack:W)}}}function y(W,V,U){var S=document.createElement("PRE");S.innerHTML=W;if(U){Q(S,U)}var T={langExtension:V,numberLines:U,sourceNode:S};d(T);return S.innerHTML}function b(ad){function Y(af){return document.getElementsByTagName(af)}var ac=[Y("pre"),Y("code"),Y("xmp")];var T=[];for(var aa=0;aa=0){var ah=ai.match(ab);var am;if(!ah&&(am=o(aj))&&"CODE"===am.tagName){ah=am.className.match(ab)}if(ah){ah=ah[1]}var al=false;for(var ak=aj.parentNode;ak;ak=ak.parentNode){if((ak.tagName==="pre"||ak.tagName==="code"||ak.tagName==="xmp")&&ak.className&&ak.className.indexOf("prettyprint")>=0){al=true;break}}if(!al){var af=aj.className.match(/\blinenums\b(?::(\d+))?/);af=af?af[1]&&af[1].length?+af[1]:true:false;if(af){Q(aj,af)}S={langExtension:ah,sourceNode:aj,numberLines:af};d(S)}}}if(X]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]); diff --git a/build_vtk_bundle/node_modules/seedrandom/coverage/lcov-report/seedrandom/index.html b/build_vtk_bundle/node_modules/seedrandom/coverage/lcov-report/seedrandom/index.html deleted file mode 100644 index 7c99c881..00000000 --- a/build_vtk_bundle/node_modules/seedrandom/coverage/lcov-report/seedrandom/index.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - Code coverage report for seedrandom - - - - - - - -
-
-

- All files seedrandom -

-
-
- 96% - Statements - 96/100 -
-
- 85.11% - Branches - 40/47 -
-
- 93.33% - Functions - 14/15 -
-
- 96.39% - Lines - 80/83 -
-
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
seedrandom.js
96%96/10085.11%40/4793.33%14/1596.39%80/83
-
-
- - - - - - - - diff --git a/build_vtk_bundle/node_modules/seedrandom/coverage/lcov-report/seedrandom/seedrandom.js.html b/build_vtk_bundle/node_modules/seedrandom/coverage/lcov-report/seedrandom/seedrandom.js.html deleted file mode 100644 index ca725644..00000000 --- a/build_vtk_bundle/node_modules/seedrandom/coverage/lcov-report/seedrandom/seedrandom.js.html +++ /dev/null @@ -1,828 +0,0 @@ - - - - Code coverage report for seedrandom/seedrandom.js - - - - - - - -
-
-

- All files / seedrandom seedrandom.js -

-
-
- 96% - Statements - 96/100 -
-
- 85.11% - Branches - 40/47 -
-
- 93.33% - Functions - 14/15 -
-
- 96.39% - Lines - 80/83 -
-
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -121 -122 -123 -124 -125 -126 -127 -128 -129 -130 -131 -132 -133 -134 -135 -136 -137 -138 -139 -140 -141 -142 -143 -144 -145 -146 -147 -148 -149 -150 -151 -152 -153 -154 -155 -156 -157 -158 -159 -160 -161 -162 -163 -164 -165 -166 -167 -168 -169 -170 -171 -172 -173 -174 -175 -176 -177 -178 -179 -180 -181 -182 -183 -184 -185 -186 -187 -188 -189 -190 -191 -192 -193 -194 -195 -196 -197 -198 -199 -200 -201 -202 -203 -204 -205 -206 -207 -208 -209 -210 -211 -212 -213 -214 -215 -216 -217 -218 -219 -220 -221 -222 -223 -224 -225 -226 -227 -228 -229 -230 -231 -232 -233 -234 -235 -236 -237 -238 -239 -240 -241 -242 -243 -244 -245 -246 -247 -248 -249 -250 -251 -252 -253 -254  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -6x -  -  -  -  -6x -6x -6x -6x -6x -6x -6x -6x -  -  -  -  -  -  -  -23x -23x -  -  -23x -  -  -  -  -23x -  -  -  -23x -3694x -3694x -3694x -3694x -3917x -3917x -3917x -  -3694x -9249x -9249x -9249x -  -3694x -  -  -1025x -4100001x -23x -  -  -23x -  -  -23x -  -20x -  -4x -  -4x -  -  -  -  -20x -  -  -  -19x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -23x -23x -  -  -23x -  -  -23x -5888x -  -23x -5888x -5888x -  -  -  -23x -  -4108660x -4108660x -4108660x -16436073x -16436073x -  -4108660x -4108660x -  -  -  -  -  -  -  -  -  -  -  -4x -4x -4x -4x -  -  -  -  -  -  -  -32x -32x -4x -9x -  -  -32x -  -  -  -  -  -  -  -  -52x -52x -7735x -  -  -52x -  -  -  -  -  -  -  -  -4x -  -4x -  -3x -  -1x -1x -  -3x -  -1x -1x -1x -  -  -  -  -  -  -  -  -81x -  -  -  -  -  -  -  -  -  -6x -  -  -  -  -  -6x -6x -  -6x -6x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  - 
/*
-Copyright 2019 David Bau.
- 
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
- 
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
- 
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- 
-*/
- 
-(function (global, pool, math) {
-//
-// The following constants are related to IEEE 754 limits.
-//
- 
-var width = 256,        // each RC4 output is 0 <= x < 256
-    chunks = 6,         // at least six RC4 outputs for each double
-    digits = 52,        // there are 52 significant digits in a double
-    rngname = 'random', // rngname: name for Math.random and Math.seedrandom
-    startdenom = math.pow(width, chunks),
-    significance = math.pow(2, digits),
-    overflow = significance * 2,
-    mask = width - 1,
-    nodecrypto;         // node.js crypto module, initialized at the bottom.
- 
-//
-// seedrandom()
-// This is the seedrandom function described above.
-//
-function seedrandom(seed, options, callback) {
-  var key = [];
-  options = (options == true) ? { entropy: true } : (options || {});
- 
-  // Flatten the seed string or build one from local entropy if needed.
-  var shortseed = mixkey(flatten(
-    options.entropy ? [seed, tostring(pool)] :
-    (seed == null) ? autoseed() : seed, 3), key);
- 
-  // Use the seed to initialize an ARC4 generator.
-  var arc4 = new ARC4(key);
- 
-  // This function returns a random double in [0, 1) that contains
-  // randomness in every bit of the mantissa of the IEEE 754 value.
-  var prng = function() {
-    var n = arc4.g(chunks),             // Start with a numerator n < 2 ^ 48
-        d = startdenom,                 //   and denominator d = 2 ^ 48.
-        x = 0;                          //   and no 'extra last byte'.
-    while (n < significance) {          // Fill up all significant digits by
-      n = (n + x) * width;              //   shifting numerator and
-      d *= width;                       //   denominator and generating a
-      x = arc4.g(1);                    //   new least-significant-byte.
-    }
-    while (n >= overflow) {             // To avoid rounding up, before adding
-      n /= 2;                           //   last byte, shift everything
-      d /= 2;                           //   right using integer math until
-      x >>>= 1;                         //   we have exactly the desired bits.
-    }
-    return (n + x) / d;                 // Form the number within [0, 1).
-  };
- 
-  prng.int32 = function() { return arc4.g(4) | 0; }
-  prng.quick = function() { return arc4.g(4) / 0x100000000; }
-  prng.double = prng;
- 
-  // Mix the randomness into accumulated entropy.
-  mixkey(tostring(arc4.S), pool);
- 
-  // Calling convention: what to return as a function of prng, seed, is_math.
-  return (options.pass || callback ||
-      function(prng, seed, is_math_call, state) {
-        if (state) {
-          // Load the arc4 state from the given state if it has an S array.
-          if (state.S) { copy(state, arc4); }
-          // Only provide the .state method if requested via options.state.
-          prng.state = function() { return copy(arc4, {}); }
-        }
- 
-        // If called as a method of Math (Math.seedrandom()), mutate
-        // Math.random because that is how seedrandom.js has worked since v1.0.
-        if (is_math_call) { math[rngname] = prng; return seed; }
- 
-        // Otherwise, it is a newer calling convention, so return the
-        // prng directly.
-        else return prng;
-      })(
-  prng,
-  shortseed,
-  'global' in options ? options.global : (this == math),
-  options.state);
-}
- 
-//
-// ARC4
-//
-// An ARC4 implementation.  The constructor takes a key in the form of
-// an array of at most (width) integers that should be 0 <= x < (width).
-//
-// The g(count) method returns a pseudorandom integer that concatenates
-// the next (count) outputs from ARC4.  Its return value is a number x
-// that is in the range 0 <= x < (width ^ count).
-//
-function ARC4(key) {
-  var t, keylen = key.length,
-      me = this, i = 0, j = me.i = me.j = 0, s = me.S = [];
- 
-  // The empty key [] is treated as [0].
-  if (!keylen) { key = [keylen++]; }
- 
-  // Set up S using the standard key scheduling algorithm.
-  while (i < width) {
-    s[i] = i++;
-  }
-  for (i = 0; i < width; i++) {
-    s[i] = s[j = mask & (j + key[i % keylen] + (t = s[i]))];
-    s[j] = t;
-  }
- 
-  // The "g" method returns the next (count) outputs as one number.
-  (me.g = function(count) {
-    // Using instance members instead of closure state nearly doubles speed.
-    var t, r = 0,
-        i = me.i, j = me.j, s = me.S;
-    while (count--) {
-      t = s[i = mask & (i + 1)];
-      r = r * width + s[mask & ((s[i] = s[j = mask & (j + t)]) + (s[j] = t))];
-    }
-    me.i = i; me.j = j;
-    return r;
-    // For robust unpredictability, the function call below automatically
-    // discards an initial batch of values.  This is called RC4-drop[256].
-    // See http://google.com/search?q=rsa+fluhrer+response&btnI
-  })(width);
-}
- 
-//
-// copy()
-// Copies internal state of ARC4 to or from a plain object.
-//
-function copy(f, t) {
-  t.i = f.i;
-  t.j = f.j;
-  t.S = f.S.slice();
-  return t;
-};
- 
-//
-// flatten()
-// Converts an object tree to nested arrays of strings.
-//
-function flatten(obj, depth) {
-  var result = [], typ = (typeof obj), prop;
-  if (depth && typ == 'object') {
-    for (prop in obj) {
-      try { result.push(flatten(obj[prop], depth - 1)); } catch (e) {}
-    }
-  }
-  return (result.length ? result : typ == 'string' ? obj : obj + '\0');
-}
- 
-//
-// mixkey()
-// Mixes a string seed into a key that is an array of integers, and
-// returns a shortened string seed that is equivalent to the result key.
-//
-function mixkey(seed, key) {
-  var stringseed = seed + '', smear, j = 0;
-  while (j < stringseed.length) {
-    key[mask & j] =
-      mask & ((smear ^= key[mask & j] * 19) + stringseed.charCodeAt(j++));
-  }
-  return tostring(key);
-}
- 
-//
-// autoseed()
-// Returns an object for autoseeding, using window.crypto and Node crypto
-// module if available.
-//
-function autoseed() {
-  try {
-    var out;
-    if (nodecrypto && (out = nodecrypto.randomBytes)) {
-      // The use of 'out' to remember randomBytes makes tight minified code.
-      out = out(width);
-    } else {
-      out = new Uint8Array(width);
-      (global.crypto || global.msCrypto).getRandomValues(out);
-    }
-    return tostring(out);
-  } catch (e) {
-    var browser = global.navigator,
-        plugins = browser && browser.plugins;
-    return [+new Date, global, plugins, global.screen, tostring(pool)];
-  }
-}
- 
-//
-// tostring()
-// Converts an array of charcodes to a string
-//
-function tostring(a) {
-  return String.fromCharCode.apply(0, a);
-}
- 
-//
-// When seedrandom.js is loaded, we immediately mix a few bits
-// from the built-in RNG into the entropy pool.  Because we do
-// not want to interfere with deterministic PRNG state later,
-// seedrandom will not call math.random on its own again after
-// initialization.
-//
-mixkey(math.random(), pool);
- 
-//
-// Nodejs and AMD support: export the implementation as a module using
-// either convention.
-//
-Eif ((typeof module) == 'object' && module.exports) {
-  module.exports = seedrandom;
-  // When in node.js, try using crypto package for autoseeding.
-  try {
-    nodecrypto = require('crypto');
-  } catch (ex) {}
-} else if ((typeof define) == 'function' && define.amd) {
-  define(function() { return seedrandom; });
-} else {
-  // When included as a plain script, set up Math.seedrandom global.
-  math['seed' + rngname] = seedrandom;
-}
- 
- 
-// End anonymous scope, and pass initial values.
-})(
-  // global: `self` in browsers (including strict mode and web workers),
-  // otherwise `this` in Node and other environments
-  (typeof self !== 'undefined') ? self : this,
-  [],     // pool: entropy pool starts empty
-  Math    // math: package containing random, pow, and seedrandom
-);
- 
-
-
- - - - - - - - diff --git a/build_vtk_bundle/node_modules/seedrandom/coverage/lcov-report/sort-arrow-sprite.png b/build_vtk_bundle/node_modules/seedrandom/coverage/lcov-report/sort-arrow-sprite.png deleted file mode 100644 index 03f704a6..00000000 Binary files a/build_vtk_bundle/node_modules/seedrandom/coverage/lcov-report/sort-arrow-sprite.png and /dev/null differ diff --git a/build_vtk_bundle/node_modules/seedrandom/coverage/lcov-report/sorter.js b/build_vtk_bundle/node_modules/seedrandom/coverage/lcov-report/sorter.js deleted file mode 100644 index 16de10c4..00000000 --- a/build_vtk_bundle/node_modules/seedrandom/coverage/lcov-report/sorter.js +++ /dev/null @@ -1,170 +0,0 @@ -/* eslint-disable */ -var addSorting = (function() { - 'use strict'; - var cols, - currentSort = { - index: 0, - desc: false - }; - - // returns the summary table element - function getTable() { - return document.querySelector('.coverage-summary'); - } - // returns the thead element of the summary table - function getTableHeader() { - return getTable().querySelector('thead tr'); - } - // returns the tbody element of the summary table - function getTableBody() { - return getTable().querySelector('tbody'); - } - // returns the th element for nth column - function getNthColumn(n) { - return getTableHeader().querySelectorAll('th')[n]; - } - - // loads all columns - function loadColumns() { - var colNodes = getTableHeader().querySelectorAll('th'), - colNode, - cols = [], - col, - i; - - for (i = 0; i < colNodes.length; i += 1) { - colNode = colNodes[i]; - col = { - key: colNode.getAttribute('data-col'), - sortable: !colNode.getAttribute('data-nosort'), - type: colNode.getAttribute('data-type') || 'string' - }; - cols.push(col); - if (col.sortable) { - col.defaultDescSort = col.type === 'number'; - colNode.innerHTML = - colNode.innerHTML + ''; - } - } - return cols; - } - // attaches a data attribute to every tr element with an object - // of data values keyed by column name - function loadRowData(tableRow) { - var tableCols = tableRow.querySelectorAll('td'), - colNode, - col, - data = {}, - i, - val; - for (i = 0; i < tableCols.length; i += 1) { - colNode = tableCols[i]; - col = cols[i]; - val = colNode.getAttribute('data-value'); - if (col.type === 'number') { - val = Number(val); - } - data[col.key] = val; - } - return data; - } - // loads all row data - function loadData() { - var rows = getTableBody().querySelectorAll('tr'), - i; - - for (i = 0; i < rows.length; i += 1) { - rows[i].data = loadRowData(rows[i]); - } - } - // sorts the table using the data for the ith column - function sortByIndex(index, desc) { - var key = cols[index].key, - sorter = function(a, b) { - a = a.data[key]; - b = b.data[key]; - return a < b ? -1 : a > b ? 1 : 0; - }, - finalSorter = sorter, - tableBody = document.querySelector('.coverage-summary tbody'), - rowNodes = tableBody.querySelectorAll('tr'), - rows = [], - i; - - if (desc) { - finalSorter = function(a, b) { - return -1 * sorter(a, b); - }; - } - - for (i = 0; i < rowNodes.length; i += 1) { - rows.push(rowNodes[i]); - tableBody.removeChild(rowNodes[i]); - } - - rows.sort(finalSorter); - - for (i = 0; i < rows.length; i += 1) { - tableBody.appendChild(rows[i]); - } - } - // removes sort indicators for current column being sorted - function removeSortIndicators() { - var col = getNthColumn(currentSort.index), - cls = col.className; - - cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, ''); - col.className = cls; - } - // adds sort indicators for current column being sorted - function addSortIndicators() { - getNthColumn(currentSort.index).className += currentSort.desc - ? ' sorted-desc' - : ' sorted'; - } - // adds event listeners for all sorter widgets - function enableUI() { - var i, - el, - ithSorter = function ithSorter(i) { - var col = cols[i]; - - return function() { - var desc = col.defaultDescSort; - - if (currentSort.index === i) { - desc = !currentSort.desc; - } - sortByIndex(i, desc); - removeSortIndicators(); - currentSort.index = i; - currentSort.desc = desc; - addSortIndicators(); - }; - }; - for (i = 0; i < cols.length; i += 1) { - if (cols[i].sortable) { - // add the click event handler on the th so users - // dont have to click on those tiny arrows - el = getNthColumn(i).querySelector('.sorter').parentElement; - if (el.addEventListener) { - el.addEventListener('click', ithSorter(i)); - } else { - el.attachEvent('onclick', ithSorter(i)); - } - } - } - } - // adds sorting functionality to the UI - return function() { - if (!getTable()) { - return; - } - cols = loadColumns(); - loadData(); - addSortIndicators(); - enableUI(); - }; -})(); - -window.addEventListener('load', addSorting); diff --git a/build_vtk_bundle/node_modules/seedrandom/coverage/lcov.info b/build_vtk_bundle/node_modules/seedrandom/coverage/lcov.info deleted file mode 100644 index bf8175df..00000000 --- a/build_vtk_bundle/node_modules/seedrandom/coverage/lcov.info +++ /dev/null @@ -1,799 +0,0 @@ -TN: -SF:/home/davidbau/git/seedrandom/seedrandom.js -FN:25,(anonymous_0) -FN:44,seedrandom -FN:58,(anonymous_2) -FN:75,(anonymous_3) -FN:76,(anonymous_4) -FN:84,(anonymous_5) -FN:89,(anonymous_6) -FN:116,ARC4 -FN:133,(anonymous_8) -FN:153,copy -FN:164,flatten -FN:179,mixkey -FN:193,autoseed -FN:215,tostring -FN:239,(anonymous_14) -FNF:15 -FNH:14 -FNDA:6,(anonymous_0) -FNDA:23,seedrandom -FNDA:3694,(anonymous_2) -FNDA:1025,(anonymous_3) -FNDA:4100001,(anonymous_4) -FNDA:20,(anonymous_5) -FNDA:2,(anonymous_6) -FNDA:23,ARC4 -FNDA:4108660,(anonymous_8) -FNDA:4,copy -FNDA:32,flatten -FNDA:52,mixkey -FNDA:4,autoseed -FNDA:81,tostring -FNDA:0,(anonymous_14) -DA:25,6 -DA:30,6 -DA:31,6 -DA:32,6 -DA:33,6 -DA:34,6 -DA:35,6 -DA:36,6 -DA:37,6 -DA:45,23 -DA:46,23 -DA:49,23 -DA:54,23 -DA:58,23 -DA:59,3694 -DA:60,3694 -DA:61,3694 -DA:62,3694 -DA:63,3917 -DA:64,3917 -DA:65,3917 -DA:67,3694 -DA:68,9249 -DA:69,9249 -DA:70,9249 -DA:72,3694 -DA:75,1025 -DA:76,4100001 -DA:77,23 -DA:80,23 -DA:83,23 -DA:85,20 -DA:87,4 -DA:89,4 -DA:94,20 -DA:98,19 -DA:117,23 -DA:118,23 -DA:121,23 -DA:124,23 -DA:125,5888 -DA:127,23 -DA:128,5888 -DA:129,5888 -DA:133,23 -DA:135,4108660 -DA:136,4108660 -DA:137,4108660 -DA:138,16436073 -DA:139,16436073 -DA:141,4108660 -DA:142,4108660 -DA:154,4 -DA:155,4 -DA:156,4 -DA:157,4 -DA:165,32 -DA:166,32 -DA:167,4 -DA:168,9 -DA:171,32 -DA:180,52 -DA:181,52 -DA:182,7735 -DA:185,52 -DA:194,4 -DA:196,4 -DA:198,3 -DA:200,1 -DA:201,1 -DA:203,3 -DA:205,1 -DA:206,1 -DA:207,1 -DA:216,81 -DA:226,6 -DA:232,6 -DA:233,6 -DA:235,6 -DA:236,6 -DA:238,0 -DA:239,0 -DA:242,0 -LF:83 -LH:80 -BRDA:46,0,0,1 -BRDA:46,0,1,22 -BRDA:46,1,0,22 -BRDA:46,1,1,11 -BRDA:50,2,0,2 -BRDA:50,2,1,21 -BRDA:51,3,0,4 -BRDA:51,3,1,17 -BRDA:83,4,0,23 -BRDA:83,4,1,21 -BRDA:83,4,2,20 -BRDA:85,5,0,4 -BRDA:85,5,1,16 -BRDA:87,6,0,2 -BRDA:87,6,1,2 -BRDA:94,7,0,1 -BRDA:94,7,1,19 -BRDA:102,8,0,4 -BRDA:102,8,1,19 -BRDA:121,9,0,1 -BRDA:121,9,1,22 -BRDA:166,10,0,4 -BRDA:166,10,1,28 -BRDA:166,11,0,32 -BRDA:166,11,1,32 -BRDA:171,12,0,3 -BRDA:171,12,1,29 -BRDA:171,13,0,23 -BRDA:171,13,1,6 -BRDA:196,14,0,3 -BRDA:196,14,1,1 -BRDA:196,15,0,4 -BRDA:196,15,1,3 -BRDA:201,16,0,1 -BRDA:201,16,1,1 -BRDA:206,17,0,1 -BRDA:206,17,1,0 -BRDA:232,18,0,6 -BRDA:232,18,1,0 -BRDA:232,19,0,6 -BRDA:232,19,1,6 -BRDA:238,20,0,0 -BRDA:238,20,1,0 -BRDA:238,21,0,0 -BRDA:238,21,1,0 -BRDA:250,22,0,0 -BRDA:250,22,1,6 -BRF:47 -BRH:40 -end_of_record -TN: -SF:/home/davidbau/git/seedrandom/lib/alea.js -FN:28,(anonymous_0) -FN:30,Alea -FN:33,(anonymous_2) -FN:54,copy -FN:62,impl -FN:66,(anonymous_5) -FN:67,(anonymous_6) -FN:73,(anonymous_7) -FN:78,Mash -FN:81,(anonymous_9) -FN:103,(anonymous_10) -FNF:11 -FNH:10 -FNDA:1,(anonymous_0) -FNDA:3,Alea -FNDA:4105129,(anonymous_2) -FNDA:2,copy -FNDA:3,impl -FNDA:1025,(anonymous_5) -FNDA:1025,(anonymous_6) -FNDA:1,(anonymous_7) -FNDA:3,Mash -FNDA:18,(anonymous_9) -FNDA:0,(anonymous_10) -DA:28,1 -DA:31,3 -DA:33,3 -DA:34,4105129 -DA:35,4105129 -DA:36,4105129 -DA:37,4105129 -DA:41,3 -DA:42,3 -DA:43,3 -DA:44,3 -DA:45,3 -DA:46,3 -DA:47,3 -DA:48,3 -DA:49,3 -DA:50,3 -DA:51,3 -DA:55,2 -DA:56,2 -DA:57,2 -DA:58,2 -DA:59,2 -DA:63,3 -DA:64,3 -DA:65,3 -DA:66,1025 -DA:67,3 -DA:68,1025 -DA:70,3 -DA:71,3 -DA:72,2 -DA:73,2 -DA:75,3 -DA:79,3 -DA:81,3 -DA:82,18 -DA:83,18 -DA:84,33 -DA:85,33 -DA:86,33 -DA:87,33 -DA:88,33 -DA:89,33 -DA:90,33 -DA:91,33 -DA:93,18 -DA:96,3 -DA:100,1 -DA:101,1 -DA:102,0 -DA:103,0 -DA:105,0 -LF:53 -LH:50 -BRDA:46,0,0,1 -BRDA:46,0,1,2 -BRDA:48,1,0,3 -BRDA:48,1,1,0 -BRDA:50,2,0,0 -BRDA:50,2,1,3 -BRDA:64,3,0,3 -BRDA:64,3,1,2 -BRDA:71,4,0,2 -BRDA:71,4,1,1 -BRDA:72,5,0,1 -BRDA:72,5,1,1 -BRDA:100,6,0,1 -BRDA:100,6,1,0 -BRDA:100,7,0,1 -BRDA:100,7,1,1 -BRDA:102,8,0,0 -BRDA:102,8,1,0 -BRDA:102,9,0,0 -BRDA:102,9,1,0 -BRDA:110,10,0,1 -BRDA:110,10,1,1 -BRDA:111,11,0,1 -BRDA:111,11,1,0 -BRF:24 -BRH:16 -end_of_record -TN: -SF:/home/davidbau/git/seedrandom/lib/tychei.js -FN:5,(anonymous_0) -FN:7,XorGen -FN:11,(anonymous_2) -FN:60,copy -FN:68,impl -FN:71,(anonymous_5) -FN:72,(anonymous_6) -FN:84,(anonymous_7) -FN:92,(anonymous_8) -FNF:9 -FNH:8 -FNDA:1,(anonymous_0) -FNDA:3,XorGen -FNDA:4105195,(anonymous_2) -FNDA:2,copy -FNDA:3,impl -FNDA:4102054,(anonymous_5) -FNDA:1025,(anonymous_6) -FNDA:1,(anonymous_7) -FNDA:0,(anonymous_8) -DA:5,1 -DA:8,3 -DA:11,3 -DA:12,4105195 -DA:13,4105195 -DA:14,4105195 -DA:15,4105195 -DA:16,4105195 -DA:17,4105195 -DA:18,4105195 -DA:19,4105195 -DA:20,4105195 -DA:39,3 -DA:40,3 -DA:41,3 -DA:42,3 -DA:44,3 -DA:46,2 -DA:47,2 -DA:50,1 -DA:54,3 -DA:55,66 -DA:56,66 -DA:61,2 -DA:62,2 -DA:63,2 -DA:64,2 -DA:65,2 -DA:69,3 -DA:70,3 -DA:71,4102054 -DA:72,3 -DA:73,1025 -DA:74,1025 -DA:75,1025 -DA:76,1025 -DA:78,1025 -DA:80,3 -DA:81,3 -DA:82,3 -DA:83,2 -DA:84,2 -DA:86,3 -DA:89,1 -DA:90,1 -DA:91,0 -DA:92,0 -DA:94,0 -LF:48 -LH:45 -BRDA:44,0,0,2 -BRDA:44,0,1,1 -BRDA:70,1,0,3 -BRDA:70,1,1,2 -BRDA:82,2,0,2 -BRDA:82,2,1,1 -BRDA:83,3,0,1 -BRDA:83,3,1,1 -BRDA:89,4,0,1 -BRDA:89,4,1,0 -BRDA:89,5,0,1 -BRDA:89,5,1,1 -BRDA:91,6,0,0 -BRDA:91,6,1,0 -BRDA:91,7,0,0 -BRDA:91,7,1,0 -BRDA:99,8,0,1 -BRDA:99,8,1,1 -BRDA:100,9,0,1 -BRDA:100,9,1,0 -BRF:20 -BRH:14 -end_of_record -TN: -SF:/home/davidbau/git/seedrandom/lib/xor128.js -FN:4,(anonymous_0) -FN:6,XorGen -FN:15,(anonymous_2) -FN:38,copy -FN:46,impl -FN:49,(anonymous_5) -FN:50,(anonymous_6) -FN:62,(anonymous_7) -FN:70,(anonymous_8) -FNF:9 -FNH:8 -FNDA:1,(anonymous_0) -FNDA:3,XorGen -FNDA:4105327,(anonymous_2) -FNDA:2,copy -FNDA:3,impl -FNDA:4102054,(anonymous_5) -FNDA:1025,(anonymous_6) -FNDA:1,(anonymous_7) -FNDA:0,(anonymous_8) -DA:4,1 -DA:7,3 -DA:9,3 -DA:10,3 -DA:11,3 -DA:12,3 -DA:15,3 -DA:16,4105327 -DA:17,4105327 -DA:18,4105327 -DA:19,4105327 -DA:20,4105327 -DA:23,3 -DA:25,2 -DA:28,1 -DA:32,3 -DA:33,198 -DA:34,198 -DA:39,2 -DA:40,2 -DA:41,2 -DA:42,2 -DA:43,2 -DA:47,3 -DA:48,3 -DA:49,4102054 -DA:50,3 -DA:51,1025 -DA:52,1025 -DA:53,1025 -DA:54,1025 -DA:56,1025 -DA:58,3 -DA:59,3 -DA:60,3 -DA:61,2 -DA:62,2 -DA:64,3 -DA:67,1 -DA:68,1 -DA:69,0 -DA:70,0 -DA:72,0 -LF:43 -LH:40 -BRDA:23,0,0,2 -BRDA:23,0,1,1 -BRDA:48,1,0,3 -BRDA:48,1,1,2 -BRDA:60,2,0,2 -BRDA:60,2,1,1 -BRDA:61,3,0,1 -BRDA:61,3,1,1 -BRDA:67,4,0,1 -BRDA:67,4,1,0 -BRDA:67,5,0,1 -BRDA:67,5,1,1 -BRDA:69,6,0,0 -BRDA:69,6,1,0 -BRDA:69,7,0,0 -BRDA:69,7,1,0 -BRDA:77,8,0,1 -BRDA:77,8,1,1 -BRDA:78,9,0,1 -BRDA:78,9,1,0 -BRF:20 -BRH:14 -end_of_record -TN: -SF:/home/davidbau/git/seedrandom/lib/xor4096.js -FN:26,(anonymous_0) -FN:28,XorGen -FN:32,(anonymous_2) -FN:51,init -FN:105,copy -FN:112,impl -FN:116,(anonymous_6) -FN:117,(anonymous_7) -FN:129,(anonymous_8) -FN:137,(anonymous_9) -FNF:10 -FNH:9 -FNDA:1,(anonymous_0) -FNDA:3,XorGen -FNDA:4105129,(anonymous_2) -FNDA:3,init -FNDA:2,copy -FNDA:3,impl -FNDA:4102054,(anonymous_6) -FNDA:1025,(anonymous_7) -FNDA:1,(anonymous_8) -FNDA:0,(anonymous_9) -DA:26,1 -DA:29,3 -DA:32,3 -DA:33,4105129 -DA:34,4105129 -DA:36,4105129 -DA:38,4105129 -DA:39,4105129 -DA:40,4105129 -DA:41,4105129 -DA:42,4105129 -DA:43,4105129 -DA:45,4105129 -DA:46,4105129 -DA:48,4105129 -DA:52,3 -DA:53,3 -DA:55,2 -DA:56,2 -DA:59,1 -DA:60,1 -DA:61,1 -DA:64,3 -DA:66,480 -DA:68,480 -DA:69,480 -DA:70,480 -DA:71,480 -DA:72,480 -DA:73,480 -DA:74,384 -DA:75,384 -DA:76,384 -DA:80,3 -DA:81,0 -DA:86,3 -DA:87,3 -DA:88,1536 -DA:89,1536 -DA:90,1536 -DA:91,1536 -DA:92,1536 -DA:93,1536 -DA:94,1536 -DA:97,3 -DA:98,3 -DA:99,3 -DA:102,3 -DA:106,2 -DA:107,2 -DA:108,2 -DA:109,2 -DA:113,3 -DA:114,3 -DA:115,3 -DA:116,4102054 -DA:117,3 -DA:118,1025 -DA:119,1025 -DA:120,1025 -DA:121,1025 -DA:123,1025 -DA:125,3 -DA:126,3 -DA:127,3 -DA:128,2 -DA:129,2 -DA:131,3 -DA:134,1 -DA:135,1 -DA:136,0 -DA:137,0 -DA:139,0 -LF:73 -LH:69 -BRDA:53,0,0,2 -BRDA:53,0,1,1 -BRDA:66,1,0,160 -BRDA:66,1,1,320 -BRDA:68,2,0,3 -BRDA:68,2,1,477 -BRDA:73,3,0,384 -BRDA:73,3,1,96 -BRDA:76,4,0,0 -BRDA:76,4,1,384 -BRDA:80,5,0,0 -BRDA:80,5,1,3 -BRDA:81,6,0,0 -BRDA:81,6,1,0 -BRDA:81,6,2,0 -BRDA:113,7,0,0 -BRDA:113,7,1,3 -BRDA:115,8,0,3 -BRDA:115,8,1,2 -BRDA:127,9,0,2 -BRDA:127,9,1,1 -BRDA:128,10,0,1 -BRDA:128,10,1,1 -BRDA:134,11,0,1 -BRDA:134,11,1,0 -BRDA:134,12,0,1 -BRDA:134,12,1,1 -BRDA:136,13,0,0 -BRDA:136,13,1,0 -BRDA:136,14,0,0 -BRDA:136,14,1,0 -BRDA:144,15,0,1 -BRDA:144,15,1,1 -BRDA:145,16,0,1 -BRDA:145,16,1,0 -BRF:35 -BRH:23 -end_of_record -TN: -SF:/home/davidbau/git/seedrandom/lib/xorshift7.js -FN:6,(anonymous_0) -FN:8,XorGen -FN:12,(anonymous_2) -FN:25,init -FN:56,copy -FN:62,impl -FN:66,(anonymous_6) -FN:67,(anonymous_7) -FN:79,(anonymous_8) -FN:87,(anonymous_9) -FNF:10 -FNH:9 -FNDA:1,(anonymous_0) -FNDA:3,XorGen -FNDA:4105897,(anonymous_2) -FNDA:3,init -FNDA:2,copy -FNDA:3,impl -FNDA:4102054,(anonymous_6) -FNDA:1025,(anonymous_7) -FNDA:1,(anonymous_8) -FNDA:0,(anonymous_9) -DA:6,1 -DA:9,3 -DA:12,3 -DA:14,4105897 -DA:15,4105897 -DA:16,4105897 -DA:17,4105897 -DA:18,4105897 -DA:19,4105897 -DA:20,4105897 -DA:21,4105897 -DA:22,4105897 -DA:26,3 -DA:28,3 -DA:30,2 -DA:33,1 -DA:34,1 -DA:35,6 -DA:40,16 -DA:41,3 -DA:42,3 -DA:44,3 -DA:45,3 -DA:48,3 -DA:49,768 -DA:53,3 -DA:57,2 -DA:58,2 -DA:59,2 -DA:63,3 -DA:64,3 -DA:65,3 -DA:66,4102054 -DA:67,3 -DA:68,1025 -DA:69,1025 -DA:70,1025 -DA:71,1025 -DA:73,1025 -DA:75,3 -DA:76,3 -DA:77,3 -DA:78,2 -DA:79,2 -DA:81,3 -DA:84,1 -DA:85,1 -DA:86,0 -DA:87,0 -DA:89,0 -LF:50 -LH:47 -BRDA:28,0,0,2 -BRDA:28,0,1,1 -BRDA:41,1,0,19 -BRDA:41,1,1,17 -BRDA:42,2,0,2 -BRDA:42,2,1,1 -BRDA:63,3,0,0 -BRDA:63,3,1,3 -BRDA:65,4,0,3 -BRDA:65,4,1,2 -BRDA:77,5,0,2 -BRDA:77,5,1,1 -BRDA:78,6,0,1 -BRDA:78,6,1,1 -BRDA:84,7,0,1 -BRDA:84,7,1,0 -BRDA:84,8,0,1 -BRDA:84,8,1,1 -BRDA:86,9,0,0 -BRDA:86,9,1,0 -BRDA:86,10,0,0 -BRDA:86,10,1,0 -BRDA:94,11,0,1 -BRDA:94,11,1,1 -BRDA:95,12,0,1 -BRDA:95,12,1,0 -BRF:26 -BRH:19 -end_of_record -TN: -SF:/home/davidbau/git/seedrandom/lib/xorwow.js -FN:4,(anonymous_0) -FN:6,XorGen -FN:10,(anonymous_2) -FN:41,copy -FN:51,impl -FN:54,(anonymous_5) -FN:55,(anonymous_6) -FN:67,(anonymous_7) -FN:75,(anonymous_8) -FNF:9 -FNH:8 -FNDA:1,(anonymous_0) -FNDA:3,XorGen -FNDA:4105327,(anonymous_2) -FNDA:2,copy -FNDA:3,impl -FNDA:4102054,(anonymous_5) -FNDA:1025,(anonymous_6) -FNDA:1,(anonymous_7) -FNDA:0,(anonymous_8) -DA:4,1 -DA:7,3 -DA:10,3 -DA:11,4105327 -DA:12,4105327 -DA:13,4105327 -DA:17,3 -DA:18,3 -DA:19,3 -DA:20,3 -DA:21,3 -DA:23,3 -DA:25,2 -DA:28,1 -DA:32,3 -DA:33,198 -DA:34,198 -DA:35,3 -DA:37,198 -DA:42,2 -DA:43,2 -DA:44,2 -DA:45,2 -DA:46,2 -DA:47,2 -DA:48,2 -DA:52,3 -DA:53,3 -DA:54,4102054 -DA:55,3 -DA:56,1025 -DA:57,1025 -DA:58,1025 -DA:59,1025 -DA:61,1025 -DA:63,3 -DA:64,3 -DA:65,3 -DA:66,2 -DA:67,2 -DA:69,3 -DA:72,1 -DA:73,1 -DA:74,0 -DA:75,0 -DA:77,0 -LF:46 -LH:43 -BRDA:23,0,0,2 -BRDA:23,0,1,1 -BRDA:34,1,0,3 -BRDA:34,1,1,195 -BRDA:53,2,0,3 -BRDA:53,2,1,2 -BRDA:65,3,0,2 -BRDA:65,3,1,1 -BRDA:66,4,0,1 -BRDA:66,4,1,1 -BRDA:72,5,0,1 -BRDA:72,5,1,0 -BRDA:72,6,0,1 -BRDA:72,6,1,1 -BRDA:74,7,0,0 -BRDA:74,7,1,0 -BRDA:74,8,0,0 -BRDA:74,8,1,0 -BRDA:82,9,0,1 -BRDA:82,9,1,1 -BRDA:83,10,0,1 -BRDA:83,10,1,0 -BRF:22 -BRH:16 -end_of_record diff --git a/build_vtk_bundle/node_modules/seedrandom/index.js b/build_vtk_bundle/node_modules/seedrandom/index.js deleted file mode 100644 index 513669a4..00000000 --- a/build_vtk_bundle/node_modules/seedrandom/index.js +++ /dev/null @@ -1,60 +0,0 @@ -// A library of seedable RNGs implemented in Javascript. -// -// Usage: -// -// var seedrandom = require('seedrandom'); -// var random = seedrandom(1); // or any seed. -// var x = random(); // 0 <= x < 1. Every bit is random. -// var x = random.quick(); // 0 <= x < 1. 32 bits of randomness. - -// alea, a 53-bit multiply-with-carry generator by Johannes Baagøe. -// Period: ~2^116 -// Reported to pass all BigCrush tests. -var alea = require('./lib/alea'); - -// xor128, a pure xor-shift generator by George Marsaglia. -// Period: 2^128-1. -// Reported to fail: MatrixRank and LinearComp. -var xor128 = require('./lib/xor128'); - -// xorwow, George Marsaglia's 160-bit xor-shift combined plus weyl. -// Period: 2^192-2^32 -// Reported to fail: CollisionOver, SimpPoker, and LinearComp. -var xorwow = require('./lib/xorwow'); - -// xorshift7, by François Panneton and Pierre L'ecuyer, takes -// a different approach: it adds robustness by allowing more shifts -// than Marsaglia's original three. It is a 7-shift generator -// with 256 bits, that passes BigCrush with no systmatic failures. -// Period 2^256-1. -// No systematic BigCrush failures reported. -var xorshift7 = require('./lib/xorshift7'); - -// xor4096, by Richard Brent, is a 4096-bit xor-shift with a -// very long period that also adds a Weyl generator. It also passes -// BigCrush with no systematic failures. Its long period may -// be useful if you have many generators and need to avoid -// collisions. -// Period: 2^4128-2^32. -// No systematic BigCrush failures reported. -var xor4096 = require('./lib/xor4096'); - -// Tyche-i, by Samuel Neves and Filipe Araujo, is a bit-shifting random -// number generator derived from ChaCha, a modern stream cipher. -// https://eden.dei.uc.pt/~sneves/pubs/2011-snfa2.pdf -// Period: ~2^127 -// No systematic BigCrush failures reported. -var tychei = require('./lib/tychei'); - -// The original ARC4-based prng included in this library. -// Period: ~2^1600 -var sr = require('./seedrandom'); - -sr.alea = alea; -sr.xor128 = xor128; -sr.xorwow = xorwow; -sr.xorshift7 = xorshift7; -sr.xor4096 = xor4096; -sr.tychei = tychei; - -module.exports = sr; diff --git a/build_vtk_bundle/node_modules/seedrandom/package.json b/build_vtk_bundle/node_modules/seedrandom/package.json deleted file mode 100644 index 86aad134..00000000 --- a/build_vtk_bundle/node_modules/seedrandom/package.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "name": "seedrandom", - "version": "3.0.5", - "description": "Seeded random number generator for Javascript.", - "main": "index.js", - "jsdelivr": "seedrandom.min.js", - "unpkg": "seedrandom.min.js", - "keywords": [ - "seed", - "random", - "crypto" - ], - "scripts": { - "test": "grunt travis" - }, - "repository": { - "type": "git", - "url": "git://github.com/davidbau/seedrandom.git" - }, - "author": "David Bau", - "license": "MIT", - "bugs": { - "url": "https://github.com/davidbau/seedrandom/issues" - }, - "homepage": "http://davidbau.com/archives/2010/01/30/random_seeds_coded_hints_and_quintillions.html", - "config": { - "blanket": { - "pattern": [ - "seedrandom.js", - "lib/alea.js", - "lib/xor128.js", - "lib/xorwow.js", - "lib/xorshift7.js", - "lib/tychei.js", - "lib/xor4096.js" - ] - } - }, - "browser": { - "crypto": false - }, - "devDependencies": { - "blanket": "latest", - "coveralls": "latest", - "grunt": "latest", - "grunt-browserify": "latest", - "grunt-release": "davidbau/grunt-release", - "grunt-cli": "latest", - "grunt-contrib-connect": "latest", - "grunt-contrib-copy": "latest", - "grunt-contrib-qunit": "latest", - "grunt-contrib-uglify": "latest", - "grunt-mocha-nyc": "latest", - "mocha": "latest", - "nyc": "latest", - "proxyquire": "latest", - "qunit": "latest", - "requirejs": "latest" - } -} diff --git a/build_vtk_bundle/node_modules/seedrandom/seedrandom.js b/build_vtk_bundle/node_modules/seedrandom/seedrandom.js deleted file mode 100644 index 12d7ee1d..00000000 --- a/build_vtk_bundle/node_modules/seedrandom/seedrandom.js +++ /dev/null @@ -1,253 +0,0 @@ -/* -Copyright 2019 David Bau. - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -*/ - -(function (global, pool, math) { -// -// The following constants are related to IEEE 754 limits. -// - -var width = 256, // each RC4 output is 0 <= x < 256 - chunks = 6, // at least six RC4 outputs for each double - digits = 52, // there are 52 significant digits in a double - rngname = 'random', // rngname: name for Math.random and Math.seedrandom - startdenom = math.pow(width, chunks), - significance = math.pow(2, digits), - overflow = significance * 2, - mask = width - 1, - nodecrypto; // node.js crypto module, initialized at the bottom. - -// -// seedrandom() -// This is the seedrandom function described above. -// -function seedrandom(seed, options, callback) { - var key = []; - options = (options == true) ? { entropy: true } : (options || {}); - - // Flatten the seed string or build one from local entropy if needed. - var shortseed = mixkey(flatten( - options.entropy ? [seed, tostring(pool)] : - (seed == null) ? autoseed() : seed, 3), key); - - // Use the seed to initialize an ARC4 generator. - var arc4 = new ARC4(key); - - // This function returns a random double in [0, 1) that contains - // randomness in every bit of the mantissa of the IEEE 754 value. - var prng = function() { - var n = arc4.g(chunks), // Start with a numerator n < 2 ^ 48 - d = startdenom, // and denominator d = 2 ^ 48. - x = 0; // and no 'extra last byte'. - while (n < significance) { // Fill up all significant digits by - n = (n + x) * width; // shifting numerator and - d *= width; // denominator and generating a - x = arc4.g(1); // new least-significant-byte. - } - while (n >= overflow) { // To avoid rounding up, before adding - n /= 2; // last byte, shift everything - d /= 2; // right using integer math until - x >>>= 1; // we have exactly the desired bits. - } - return (n + x) / d; // Form the number within [0, 1). - }; - - prng.int32 = function() { return arc4.g(4) | 0; } - prng.quick = function() { return arc4.g(4) / 0x100000000; } - prng.double = prng; - - // Mix the randomness into accumulated entropy. - mixkey(tostring(arc4.S), pool); - - // Calling convention: what to return as a function of prng, seed, is_math. - return (options.pass || callback || - function(prng, seed, is_math_call, state) { - if (state) { - // Load the arc4 state from the given state if it has an S array. - if (state.S) { copy(state, arc4); } - // Only provide the .state method if requested via options.state. - prng.state = function() { return copy(arc4, {}); } - } - - // If called as a method of Math (Math.seedrandom()), mutate - // Math.random because that is how seedrandom.js has worked since v1.0. - if (is_math_call) { math[rngname] = prng; return seed; } - - // Otherwise, it is a newer calling convention, so return the - // prng directly. - else return prng; - })( - prng, - shortseed, - 'global' in options ? options.global : (this == math), - options.state); -} - -// -// ARC4 -// -// An ARC4 implementation. The constructor takes a key in the form of -// an array of at most (width) integers that should be 0 <= x < (width). -// -// The g(count) method returns a pseudorandom integer that concatenates -// the next (count) outputs from ARC4. Its return value is a number x -// that is in the range 0 <= x < (width ^ count). -// -function ARC4(key) { - var t, keylen = key.length, - me = this, i = 0, j = me.i = me.j = 0, s = me.S = []; - - // The empty key [] is treated as [0]. - if (!keylen) { key = [keylen++]; } - - // Set up S using the standard key scheduling algorithm. - while (i < width) { - s[i] = i++; - } - for (i = 0; i < width; i++) { - s[i] = s[j = mask & (j + key[i % keylen] + (t = s[i]))]; - s[j] = t; - } - - // The "g" method returns the next (count) outputs as one number. - (me.g = function(count) { - // Using instance members instead of closure state nearly doubles speed. - var t, r = 0, - i = me.i, j = me.j, s = me.S; - while (count--) { - t = s[i = mask & (i + 1)]; - r = r * width + s[mask & ((s[i] = s[j = mask & (j + t)]) + (s[j] = t))]; - } - me.i = i; me.j = j; - return r; - // For robust unpredictability, the function call below automatically - // discards an initial batch of values. This is called RC4-drop[256]. - // See http://google.com/search?q=rsa+fluhrer+response&btnI - })(width); -} - -// -// copy() -// Copies internal state of ARC4 to or from a plain object. -// -function copy(f, t) { - t.i = f.i; - t.j = f.j; - t.S = f.S.slice(); - return t; -}; - -// -// flatten() -// Converts an object tree to nested arrays of strings. -// -function flatten(obj, depth) { - var result = [], typ = (typeof obj), prop; - if (depth && typ == 'object') { - for (prop in obj) { - try { result.push(flatten(obj[prop], depth - 1)); } catch (e) {} - } - } - return (result.length ? result : typ == 'string' ? obj : obj + '\0'); -} - -// -// mixkey() -// Mixes a string seed into a key that is an array of integers, and -// returns a shortened string seed that is equivalent to the result key. -// -function mixkey(seed, key) { - var stringseed = seed + '', smear, j = 0; - while (j < stringseed.length) { - key[mask & j] = - mask & ((smear ^= key[mask & j] * 19) + stringseed.charCodeAt(j++)); - } - return tostring(key); -} - -// -// autoseed() -// Returns an object for autoseeding, using window.crypto and Node crypto -// module if available. -// -function autoseed() { - try { - var out; - if (nodecrypto && (out = nodecrypto.randomBytes)) { - // The use of 'out' to remember randomBytes makes tight minified code. - out = out(width); - } else { - out = new Uint8Array(width); - (global.crypto || global.msCrypto).getRandomValues(out); - } - return tostring(out); - } catch (e) { - var browser = global.navigator, - plugins = browser && browser.plugins; - return [+new Date, global, plugins, global.screen, tostring(pool)]; - } -} - -// -// tostring() -// Converts an array of charcodes to a string -// -function tostring(a) { - return String.fromCharCode.apply(0, a); -} - -// -// When seedrandom.js is loaded, we immediately mix a few bits -// from the built-in RNG into the entropy pool. Because we do -// not want to interfere with deterministic PRNG state later, -// seedrandom will not call math.random on its own again after -// initialization. -// -mixkey(math.random(), pool); - -// -// Nodejs and AMD support: export the implementation as a module using -// either convention. -// -if ((typeof module) == 'object' && module.exports) { - module.exports = seedrandom; - // When in node.js, try using crypto package for autoseeding. - try { - nodecrypto = require('crypto'); - } catch (ex) {} -} else if ((typeof define) == 'function' && define.amd) { - define(function() { return seedrandom; }); -} else { - // When included as a plain script, set up Math.seedrandom global. - math['seed' + rngname] = seedrandom; -} - - -// End anonymous scope, and pass initial values. -})( - // global: `self` in browsers (including strict mode and web workers), - // otherwise `this` in Node and other environments - (typeof self !== 'undefined') ? self : this, - [], // pool: entropy pool starts empty - Math // math: package containing random, pow, and seedrandom -); diff --git a/build_vtk_bundle/node_modules/seedrandom/seedrandom.min.js b/build_vtk_bundle/node_modules/seedrandom/seedrandom.min.js deleted file mode 100644 index 56e1afcd..00000000 --- a/build_vtk_bundle/node_modules/seedrandom/seedrandom.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(f,a,c){var s,l=256,p="random",d=c.pow(l,6),g=c.pow(2,52),y=2*g,h=l-1;function n(n,t,r){function e(){for(var n=u.g(6),t=d,r=0;n>>=1;return(n+r)/t}var o=[],i=j(function n(t,r){var e,o=[],i=typeof t;if(r&&"object"==i)for(e in t)try{o.push(n(t[e],r-1))}catch(n){}return o.length?o:"string"==i?t:t+"\0"}((t=1==t?{entropy:!0}:t||{}).entropy?[n,S(a)]:null==n?function(){try{var n;return s&&(n=s.randomBytes)?n=n(l):(n=new Uint8Array(l),(f.crypto||f.msCrypto).getRandomValues(n)),S(n)}catch(n){var t=f.navigator,r=t&&t.plugins;return[+new Date,f,r,f.screen,S(a)]}}():n,3),o),u=new m(o);return e.int32=function(){return 0|u.g(4)},e.quick=function(){return u.g(4)/4294967296},e.double=e,j(S(u.S),a),(t.pass||r||function(n,t,r,e){return e&&(e.S&&v(e,u),n.state=function(){return v(u,{})}),r?(c[p]=n,t):n})(e,i,"global"in t?t.global:this==c,t.state)}function m(n){var t,r=n.length,u=this,e=0,o=u.i=u.j=0,i=u.S=[];for(r||(n=[r++]);e=2.5.0 || 5.0.0 - 7.2.3') // true -semver.gt('1.2.3', '9.8.7') // false -semver.lt('1.2.3', '9.8.7') // true -semver.minVersion('>=1.0.0') // '1.0.0' -semver.valid(semver.coerce('v2')) // '2.0.0' -semver.valid(semver.coerce('42.6.7.9.3-alpha')) // '42.6.7' -``` - -As a command-line utility: - -``` -$ semver -h - -A JavaScript implementation of the https://semver.org/ specification -Copyright Isaac Z. Schlueter - -Usage: semver [options] [ [...]] -Prints valid versions sorted by SemVer precedence - -Options: --r --range - Print versions that match the specified range. - --i --increment [] - Increment a version by the specified level. Level can - be one of: major, minor, patch, premajor, preminor, - prepatch, or prerelease. Default level is 'patch'. - Only one version may be specified. - ---preid - Identifier to be used to prefix premajor, preminor, - prepatch or prerelease version increments. - --l --loose - Interpret versions and ranges loosely - --p --include-prerelease - Always include prerelease versions in range matching - --c --coerce - Coerce a string into SemVer if possible - (does not imply --loose) - ---rtl - Coerce version strings right to left - ---ltr - Coerce version strings left to right (default) - -Program exits successfully if any valid version satisfies -all supplied ranges, and prints all satisfying versions. - -If no satisfying versions are found, then exits failure. - -Versions are printed in ascending order, so supplying -multiple versions to the utility will just sort them. -``` - -## Versions - -A "version" is described by the `v2.0.0` specification found at -. - -A leading `"="` or `"v"` character is stripped off and ignored. - -## Ranges - -A `version range` is a set of `comparators` which specify versions -that satisfy the range. - -A `comparator` is composed of an `operator` and a `version`. The set -of primitive `operators` is: - -* `<` Less than -* `<=` Less than or equal to -* `>` Greater than -* `>=` Greater than or equal to -* `=` Equal. If no operator is specified, then equality is assumed, - so this operator is optional, but MAY be included. - -For example, the comparator `>=1.2.7` would match the versions -`1.2.7`, `1.2.8`, `2.5.3`, and `1.3.9`, but not the versions `1.2.6` -or `1.1.0`. - -Comparators can be joined by whitespace to form a `comparator set`, -which is satisfied by the **intersection** of all of the comparators -it includes. - -A range is composed of one or more comparator sets, joined by `||`. A -version matches a range if and only if every comparator in at least -one of the `||`-separated comparator sets is satisfied by the version. - -For example, the range `>=1.2.7 <1.3.0` would match the versions -`1.2.7`, `1.2.8`, and `1.2.99`, but not the versions `1.2.6`, `1.3.0`, -or `1.1.0`. - -The range `1.2.7 || >=1.2.9 <2.0.0` would match the versions `1.2.7`, -`1.2.9`, and `1.4.6`, but not the versions `1.2.8` or `2.0.0`. - -### Prerelease Tags - -If a version has a prerelease tag (for example, `1.2.3-alpha.3`) then -it will only be allowed to satisfy comparator sets if at least one -comparator with the same `[major, minor, patch]` tuple also has a -prerelease tag. - -For example, the range `>1.2.3-alpha.3` would be allowed to match the -version `1.2.3-alpha.7`, but it would *not* be satisfied by -`3.4.5-alpha.9`, even though `3.4.5-alpha.9` is technically "greater -than" `1.2.3-alpha.3` according to the SemVer sort rules. The version -range only accepts prerelease tags on the `1.2.3` version. The -version `3.4.5` *would* satisfy the range, because it does not have a -prerelease flag, and `3.4.5` is greater than `1.2.3-alpha.7`. - -The purpose for this behavior is twofold. First, prerelease versions -frequently are updated very quickly, and contain many breaking changes -that are (by the author's design) not yet fit for public consumption. -Therefore, by default, they are excluded from range matching -semantics. - -Second, a user who has opted into using a prerelease version has -clearly indicated the intent to use *that specific* set of -alpha/beta/rc versions. By including a prerelease tag in the range, -the user is indicating that they are aware of the risk. However, it -is still not appropriate to assume that they have opted into taking a -similar risk on the *next* set of prerelease versions. - -Note that this behavior can be suppressed (treating all prerelease -versions as if they were normal versions, for the purpose of range -matching) by setting the `includePrerelease` flag on the options -object to any -[functions](https://github.com/npm/node-semver#functions) that do -range matching. - -#### Prerelease Identifiers - -The method `.inc` takes an additional `identifier` string argument that -will append the value of the string as a prerelease identifier: - -```javascript -semver.inc('1.2.3', 'prerelease', 'beta') -// '1.2.4-beta.0' -``` - -command-line example: - -```bash -$ semver 1.2.3 -i prerelease --preid beta -1.2.4-beta.0 -``` - -Which then can be used to increment further: - -```bash -$ semver 1.2.4-beta.0 -i prerelease -1.2.4-beta.1 -``` - -### Advanced Range Syntax - -Advanced range syntax desugars to primitive comparators in -deterministic ways. - -Advanced ranges may be combined in the same way as primitive -comparators using white space or `||`. - -#### Hyphen Ranges `X.Y.Z - A.B.C` - -Specifies an inclusive set. - -* `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4` - -If a partial version is provided as the first version in the inclusive -range, then the missing pieces are replaced with zeroes. - -* `1.2 - 2.3.4` := `>=1.2.0 <=2.3.4` - -If a partial version is provided as the second version in the -inclusive range, then all versions that start with the supplied parts -of the tuple are accepted, but nothing that would be greater than the -provided tuple parts. - -* `1.2.3 - 2.3` := `>=1.2.3 <2.4.0` -* `1.2.3 - 2` := `>=1.2.3 <3.0.0` - -#### X-Ranges `1.2.x` `1.X` `1.2.*` `*` - -Any of `X`, `x`, or `*` may be used to "stand in" for one of the -numeric values in the `[major, minor, patch]` tuple. - -* `*` := `>=0.0.0` (Any version satisfies) -* `1.x` := `>=1.0.0 <2.0.0` (Matching major version) -* `1.2.x` := `>=1.2.0 <1.3.0` (Matching major and minor versions) - -A partial version range is treated as an X-Range, so the special -character is in fact optional. - -* `""` (empty string) := `*` := `>=0.0.0` -* `1` := `1.x.x` := `>=1.0.0 <2.0.0` -* `1.2` := `1.2.x` := `>=1.2.0 <1.3.0` - -#### Tilde Ranges `~1.2.3` `~1.2` `~1` - -Allows patch-level changes if a minor version is specified on the -comparator. Allows minor-level changes if not. - -* `~1.2.3` := `>=1.2.3 <1.(2+1).0` := `>=1.2.3 <1.3.0` -* `~1.2` := `>=1.2.0 <1.(2+1).0` := `>=1.2.0 <1.3.0` (Same as `1.2.x`) -* `~1` := `>=1.0.0 <(1+1).0.0` := `>=1.0.0 <2.0.0` (Same as `1.x`) -* `~0.2.3` := `>=0.2.3 <0.(2+1).0` := `>=0.2.3 <0.3.0` -* `~0.2` := `>=0.2.0 <0.(2+1).0` := `>=0.2.0 <0.3.0` (Same as `0.2.x`) -* `~0` := `>=0.0.0 <(0+1).0.0` := `>=0.0.0 <1.0.0` (Same as `0.x`) -* `~1.2.3-beta.2` := `>=1.2.3-beta.2 <1.3.0` Note that prereleases in - the `1.2.3` version will be allowed, if they are greater than or - equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but - `1.2.4-beta.2` would not, because it is a prerelease of a - different `[major, minor, patch]` tuple. - -#### Caret Ranges `^1.2.3` `^0.2.5` `^0.0.4` - -Allows changes that do not modify the left-most non-zero element in the -`[major, minor, patch]` tuple. In other words, this allows patch and -minor updates for versions `1.0.0` and above, patch updates for -versions `0.X >=0.1.0`, and *no* updates for versions `0.0.X`. - -Many authors treat a `0.x` version as if the `x` were the major -"breaking-change" indicator. - -Caret ranges are ideal when an author may make breaking changes -between `0.2.4` and `0.3.0` releases, which is a common practice. -However, it presumes that there will *not* be breaking changes between -`0.2.4` and `0.2.5`. It allows for changes that are presumed to be -additive (but non-breaking), according to commonly observed practices. - -* `^1.2.3` := `>=1.2.3 <2.0.0` -* `^0.2.3` := `>=0.2.3 <0.3.0` -* `^0.0.3` := `>=0.0.3 <0.0.4` -* `^1.2.3-beta.2` := `>=1.2.3-beta.2 <2.0.0` Note that prereleases in - the `1.2.3` version will be allowed, if they are greater than or - equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but - `1.2.4-beta.2` would not, because it is a prerelease of a - different `[major, minor, patch]` tuple. -* `^0.0.3-beta` := `>=0.0.3-beta <0.0.4` Note that prereleases in the - `0.0.3` version *only* will be allowed, if they are greater than or - equal to `beta`. So, `0.0.3-pr.2` would be allowed. - -When parsing caret ranges, a missing `patch` value desugars to the -number `0`, but will allow flexibility within that value, even if the -major and minor versions are both `0`. - -* `^1.2.x` := `>=1.2.0 <2.0.0` -* `^0.0.x` := `>=0.0.0 <0.1.0` -* `^0.0` := `>=0.0.0 <0.1.0` - -A missing `minor` and `patch` values will desugar to zero, but also -allow flexibility within those values, even if the major version is -zero. - -* `^1.x` := `>=1.0.0 <2.0.0` -* `^0.x` := `>=0.0.0 <1.0.0` - -### Range Grammar - -Putting all this together, here is a Backus-Naur grammar for ranges, -for the benefit of parser authors: - -```bnf -range-set ::= range ( logical-or range ) * -logical-or ::= ( ' ' ) * '||' ( ' ' ) * -range ::= hyphen | simple ( ' ' simple ) * | '' -hyphen ::= partial ' - ' partial -simple ::= primitive | partial | tilde | caret -primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial -partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )? -xr ::= 'x' | 'X' | '*' | nr -nr ::= '0' | ['1'-'9'] ( ['0'-'9'] ) * -tilde ::= '~' partial -caret ::= '^' partial -qualifier ::= ( '-' pre )? ( '+' build )? -pre ::= parts -build ::= parts -parts ::= part ( '.' part ) * -part ::= nr | [-0-9A-Za-z]+ -``` - -## Functions - -All methods and classes take a final `options` object argument. All -options in this object are `false` by default. The options supported -are: - -- `loose` Be more forgiving about not-quite-valid semver strings. - (Any resulting output will always be 100% strict compliant, of - course.) For backwards compatibility reasons, if the `options` - argument is a boolean value instead of an object, it is interpreted - to be the `loose` param. -- `includePrerelease` Set to suppress the [default - behavior](https://github.com/npm/node-semver#prerelease-tags) of - excluding prerelease tagged versions from ranges unless they are - explicitly opted into. - -Strict-mode Comparators and Ranges will be strict about the SemVer -strings that they parse. - -* `valid(v)`: Return the parsed version, or null if it's not valid. -* `inc(v, release)`: Return the version incremented by the release - type (`major`, `premajor`, `minor`, `preminor`, `patch`, - `prepatch`, or `prerelease`), or null if it's not valid - * `premajor` in one call will bump the version up to the next major - version and down to a prerelease of that major version. - `preminor`, and `prepatch` work the same way. - * If called from a non-prerelease version, the `prerelease` will work the - same as `prepatch`. It increments the patch version, then makes a - prerelease. If the input version is already a prerelease it simply - increments it. -* `prerelease(v)`: Returns an array of prerelease components, or null - if none exist. Example: `prerelease('1.2.3-alpha.1') -> ['alpha', 1]` -* `major(v)`: Return the major version number. -* `minor(v)`: Return the minor version number. -* `patch(v)`: Return the patch version number. -* `intersects(r1, r2, loose)`: Return true if the two supplied ranges - or comparators intersect. -* `parse(v)`: Attempt to parse a string as a semantic version, returning either - a `SemVer` object or `null`. - -### Comparison - -* `gt(v1, v2)`: `v1 > v2` -* `gte(v1, v2)`: `v1 >= v2` -* `lt(v1, v2)`: `v1 < v2` -* `lte(v1, v2)`: `v1 <= v2` -* `eq(v1, v2)`: `v1 == v2` This is true if they're logically equivalent, - even if they're not the exact same string. You already know how to - compare strings. -* `neq(v1, v2)`: `v1 != v2` The opposite of `eq`. -* `cmp(v1, comparator, v2)`: Pass in a comparison string, and it'll call - the corresponding function above. `"==="` and `"!=="` do simple - string comparison, but are included for completeness. Throws if an - invalid comparison string is provided. -* `compare(v1, v2)`: Return `0` if `v1 == v2`, or `1` if `v1` is greater, or `-1` if - `v2` is greater. Sorts in ascending order if passed to `Array.sort()`. -* `rcompare(v1, v2)`: The reverse of compare. Sorts an array of versions - in descending order when passed to `Array.sort()`. -* `compareBuild(v1, v2)`: The same as `compare` but considers `build` when two versions - are equal. Sorts in ascending order if passed to `Array.sort()`. - `v2` is greater. Sorts in ascending order if passed to `Array.sort()`. -* `diff(v1, v2)`: Returns difference between two versions by the release type - (`major`, `premajor`, `minor`, `preminor`, `patch`, `prepatch`, or `prerelease`), - or null if the versions are the same. - -### Comparators - -* `intersects(comparator)`: Return true if the comparators intersect - -### Ranges - -* `validRange(range)`: Return the valid range or null if it's not valid -* `satisfies(version, range)`: Return true if the version satisfies the - range. -* `maxSatisfying(versions, range)`: Return the highest version in the list - that satisfies the range, or `null` if none of them do. -* `minSatisfying(versions, range)`: Return the lowest version in the list - that satisfies the range, or `null` if none of them do. -* `minVersion(range)`: Return the lowest version that can possibly match - the given range. -* `gtr(version, range)`: Return `true` if version is greater than all the - versions possible in the range. -* `ltr(version, range)`: Return `true` if version is less than all the - versions possible in the range. -* `outside(version, range, hilo)`: Return true if the version is outside - the bounds of the range in either the high or low direction. The - `hilo` argument must be either the string `'>'` or `'<'`. (This is - the function called by `gtr` and `ltr`.) -* `intersects(range)`: Return true if any of the ranges comparators intersect - -Note that, since ranges may be non-contiguous, a version might not be -greater than a range, less than a range, *or* satisfy a range! For -example, the range `1.2 <1.2.9 || >2.0.0` would have a hole from `1.2.9` -until `2.0.0`, so the version `1.2.10` would not be greater than the -range (because `2.0.1` satisfies, which is higher), nor less than the -range (since `1.2.8` satisfies, which is lower), and it also does not -satisfy the range. - -If you want to know if a version satisfies or does not satisfy a -range, use the `satisfies(version, range)` function. - -### Coercion - -* `coerce(version, options)`: Coerces a string to semver if possible - -This aims to provide a very forgiving translation of a non-semver string to -semver. It looks for the first digit in a string, and consumes all -remaining characters which satisfy at least a partial semver (e.g., `1`, -`1.2`, `1.2.3`) up to the max permitted length (256 characters). Longer -versions are simply truncated (`4.6.3.9.2-alpha2` becomes `4.6.3`). All -surrounding text is simply ignored (`v3.4 replaces v3.3.1` becomes -`3.4.0`). Only text which lacks digits will fail coercion (`version one` -is not valid). The maximum length for any semver component considered for -coercion is 16 characters; longer components will be ignored -(`10000000000000000.4.7.4` becomes `4.7.4`). The maximum value for any -semver component is `Integer.MAX_SAFE_INTEGER || (2**53 - 1)`; higher value -components are invalid (`9999999999999999.4.7.4` is likely invalid). - -If the `options.rtl` flag is set, then `coerce` will return the right-most -coercible tuple that does not share an ending index with a longer coercible -tuple. For example, `1.2.3.4` will return `2.3.4` in rtl mode, not -`4.0.0`. `1.2.3/4` will return `4.0.0`, because the `4` is not a part of -any other overlapping SemVer tuple. - -### Clean - -* `clean(version)`: Clean a string to be a valid semver if possible - -This will return a cleaned and trimmed semver version. If the provided version is not valid a null will be returned. This does not work for ranges. - -ex. -* `s.clean(' = v 2.1.5foo')`: `null` -* `s.clean(' = v 2.1.5foo', { loose: true })`: `'2.1.5-foo'` -* `s.clean(' = v 2.1.5-foo')`: `null` -* `s.clean(' = v 2.1.5-foo', { loose: true })`: `'2.1.5-foo'` -* `s.clean('=v2.1.5')`: `'2.1.5'` -* `s.clean(' =v2.1.5')`: `2.1.5` -* `s.clean(' 2.1.5 ')`: `'2.1.5'` -* `s.clean('~1.0.0')`: `null` diff --git a/build_vtk_bundle/node_modules/semver/bin/semver.js b/build_vtk_bundle/node_modules/semver/bin/semver.js deleted file mode 100755 index 666034a7..00000000 --- a/build_vtk_bundle/node_modules/semver/bin/semver.js +++ /dev/null @@ -1,174 +0,0 @@ -#!/usr/bin/env node -// Standalone semver comparison program. -// Exits successfully and prints matching version(s) if -// any supplied version is valid and passes all tests. - -var argv = process.argv.slice(2) - -var versions = [] - -var range = [] - -var inc = null - -var version = require('../package.json').version - -var loose = false - -var includePrerelease = false - -var coerce = false - -var rtl = false - -var identifier - -var semver = require('../semver') - -var reverse = false - -var options = {} - -main() - -function main () { - if (!argv.length) return help() - while (argv.length) { - var a = argv.shift() - var indexOfEqualSign = a.indexOf('=') - if (indexOfEqualSign !== -1) { - a = a.slice(0, indexOfEqualSign) - argv.unshift(a.slice(indexOfEqualSign + 1)) - } - switch (a) { - case '-rv': case '-rev': case '--rev': case '--reverse': - reverse = true - break - case '-l': case '--loose': - loose = true - break - case '-p': case '--include-prerelease': - includePrerelease = true - break - case '-v': case '--version': - versions.push(argv.shift()) - break - case '-i': case '--inc': case '--increment': - switch (argv[0]) { - case 'major': case 'minor': case 'patch': case 'prerelease': - case 'premajor': case 'preminor': case 'prepatch': - inc = argv.shift() - break - default: - inc = 'patch' - break - } - break - case '--preid': - identifier = argv.shift() - break - case '-r': case '--range': - range.push(argv.shift()) - break - case '-c': case '--coerce': - coerce = true - break - case '--rtl': - rtl = true - break - case '--ltr': - rtl = false - break - case '-h': case '--help': case '-?': - return help() - default: - versions.push(a) - break - } - } - - var options = { loose: loose, includePrerelease: includePrerelease, rtl: rtl } - - versions = versions.map(function (v) { - return coerce ? (semver.coerce(v, options) || { version: v }).version : v - }).filter(function (v) { - return semver.valid(v) - }) - if (!versions.length) return fail() - if (inc && (versions.length !== 1 || range.length)) { return failInc() } - - for (var i = 0, l = range.length; i < l; i++) { - versions = versions.filter(function (v) { - return semver.satisfies(v, range[i], options) - }) - if (!versions.length) return fail() - } - return success(versions) -} - -function failInc () { - console.error('--inc can only be used on a single version with no range') - fail() -} - -function fail () { process.exit(1) } - -function success () { - var compare = reverse ? 'rcompare' : 'compare' - versions.sort(function (a, b) { - return semver[compare](a, b, options) - }).map(function (v) { - return semver.clean(v, options) - }).map(function (v) { - return inc ? semver.inc(v, inc, options, identifier) : v - }).forEach(function (v, i, _) { console.log(v) }) -} - -function help () { - console.log(['SemVer ' + version, - '', - 'A JavaScript implementation of the https://semver.org/ specification', - 'Copyright Isaac Z. Schlueter', - '', - 'Usage: semver [options] [ [...]]', - 'Prints valid versions sorted by SemVer precedence', - '', - 'Options:', - '-r --range ', - ' Print versions that match the specified range.', - '', - '-i --increment []', - ' Increment a version by the specified level. Level can', - ' be one of: major, minor, patch, premajor, preminor,', - " prepatch, or prerelease. Default level is 'patch'.", - ' Only one version may be specified.', - '', - '--preid ', - ' Identifier to be used to prefix premajor, preminor,', - ' prepatch or prerelease version increments.', - '', - '-l --loose', - ' Interpret versions and ranges loosely', - '', - '-p --include-prerelease', - ' Always include prerelease versions in range matching', - '', - '-c --coerce', - ' Coerce a string into SemVer if possible', - ' (does not imply --loose)', - '', - '--rtl', - ' Coerce version strings right to left', - '', - '--ltr', - ' Coerce version strings left to right (default)', - '', - 'Program exits successfully if any valid version satisfies', - 'all supplied ranges, and prints all satisfying versions.', - '', - 'If no satisfying versions are found, then exits failure.', - '', - 'Versions are printed in ascending order, so supplying', - 'multiple versions to the utility will just sort them.' - ].join('\n')) -} diff --git a/build_vtk_bundle/node_modules/semver/package.json b/build_vtk_bundle/node_modules/semver/package.json deleted file mode 100644 index 6b970a62..00000000 --- a/build_vtk_bundle/node_modules/semver/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "semver", - "version": "6.3.1", - "description": "The semantic version parser used by npm.", - "main": "semver.js", - "scripts": { - "test": "tap test/ --100 --timeout=30", - "lint": "echo linting disabled", - "postlint": "template-oss-check", - "template-oss-apply": "template-oss-apply --force", - "lintfix": "npm run lint -- --fix", - "snap": "tap test/ --100 --timeout=30", - "posttest": "npm run lint" - }, - "devDependencies": { - "@npmcli/template-oss": "4.17.0", - "tap": "^12.7.0" - }, - "license": "ISC", - "repository": { - "type": "git", - "url": "https://github.com/npm/node-semver.git" - }, - "bin": { - "semver": "./bin/semver.js" - }, - "files": [ - "bin", - "range.bnf", - "semver.js" - ], - "author": "GitHub Inc.", - "templateOSS": { - "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", - "content": "./scripts/template-oss", - "version": "4.17.0" - } -} diff --git a/build_vtk_bundle/node_modules/semver/range.bnf b/build_vtk_bundle/node_modules/semver/range.bnf deleted file mode 100644 index d4c6ae0d..00000000 --- a/build_vtk_bundle/node_modules/semver/range.bnf +++ /dev/null @@ -1,16 +0,0 @@ -range-set ::= range ( logical-or range ) * -logical-or ::= ( ' ' ) * '||' ( ' ' ) * -range ::= hyphen | simple ( ' ' simple ) * | '' -hyphen ::= partial ' - ' partial -simple ::= primitive | partial | tilde | caret -primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial -partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )? -xr ::= 'x' | 'X' | '*' | nr -nr ::= '0' | [1-9] ( [0-9] ) * -tilde ::= '~' partial -caret ::= '^' partial -qualifier ::= ( '-' pre )? ( '+' build )? -pre ::= parts -build ::= parts -parts ::= part ( '.' part ) * -part ::= nr | [-0-9A-Za-z]+ diff --git a/build_vtk_bundle/node_modules/semver/semver.js b/build_vtk_bundle/node_modules/semver/semver.js deleted file mode 100644 index 39319c13..00000000 --- a/build_vtk_bundle/node_modules/semver/semver.js +++ /dev/null @@ -1,1643 +0,0 @@ -exports = module.exports = SemVer - -var debug -/* istanbul ignore next */ -if (typeof process === 'object' && - process.env && - process.env.NODE_DEBUG && - /\bsemver\b/i.test(process.env.NODE_DEBUG)) { - debug = function () { - var args = Array.prototype.slice.call(arguments, 0) - args.unshift('SEMVER') - console.log.apply(console, args) - } -} else { - debug = function () {} -} - -// Note: this is the semver.org version of the spec that it implements -// Not necessarily the package version of this code. -exports.SEMVER_SPEC_VERSION = '2.0.0' - -var MAX_LENGTH = 256 -var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || - /* istanbul ignore next */ 9007199254740991 - -// Max safe segment length for coercion. -var MAX_SAFE_COMPONENT_LENGTH = 16 - -var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6 - -// The actual regexps go on exports.re -var re = exports.re = [] -var safeRe = exports.safeRe = [] -var src = exports.src = [] -var t = exports.tokens = {} -var R = 0 - -function tok (n) { - t[n] = R++ -} - -var LETTERDASHNUMBER = '[a-zA-Z0-9-]' - -// Replace some greedy regex tokens to prevent regex dos issues. These regex are -// used internally via the safeRe object since all inputs in this library get -// normalized first to trim and collapse all extra whitespace. The original -// regexes are exported for userland consumption and lower level usage. A -// future breaking change could export the safer regex only with a note that -// all input should have extra whitespace removed. -var safeRegexReplacements = [ - ['\\s', 1], - ['\\d', MAX_LENGTH], - [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH], -] - -function makeSafeRe (value) { - for (var i = 0; i < safeRegexReplacements.length; i++) { - var token = safeRegexReplacements[i][0] - var max = safeRegexReplacements[i][1] - value = value - .split(token + '*').join(token + '{0,' + max + '}') - .split(token + '+').join(token + '{1,' + max + '}') - } - return value -} - -// The following Regular Expressions can be used for tokenizing, -// validating, and parsing SemVer version strings. - -// ## Numeric Identifier -// A single `0`, or a non-zero digit followed by zero or more digits. - -tok('NUMERICIDENTIFIER') -src[t.NUMERICIDENTIFIER] = '0|[1-9]\\d*' -tok('NUMERICIDENTIFIERLOOSE') -src[t.NUMERICIDENTIFIERLOOSE] = '\\d+' - -// ## Non-numeric Identifier -// Zero or more digits, followed by a letter or hyphen, and then zero or -// more letters, digits, or hyphens. - -tok('NONNUMERICIDENTIFIER') -src[t.NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-]' + LETTERDASHNUMBER + '*' - -// ## Main Version -// Three dot-separated numeric identifiers. - -tok('MAINVERSION') -src[t.MAINVERSION] = '(' + src[t.NUMERICIDENTIFIER] + ')\\.' + - '(' + src[t.NUMERICIDENTIFIER] + ')\\.' + - '(' + src[t.NUMERICIDENTIFIER] + ')' - -tok('MAINVERSIONLOOSE') -src[t.MAINVERSIONLOOSE] = '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' + - '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')\\.' + - '(' + src[t.NUMERICIDENTIFIERLOOSE] + ')' - -// ## Pre-release Version Identifier -// A numeric identifier, or a non-numeric identifier. - -tok('PRERELEASEIDENTIFIER') -src[t.PRERELEASEIDENTIFIER] = '(?:' + src[t.NUMERICIDENTIFIER] + - '|' + src[t.NONNUMERICIDENTIFIER] + ')' - -tok('PRERELEASEIDENTIFIERLOOSE') -src[t.PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[t.NUMERICIDENTIFIERLOOSE] + - '|' + src[t.NONNUMERICIDENTIFIER] + ')' - -// ## Pre-release Version -// Hyphen, followed by one or more dot-separated pre-release version -// identifiers. - -tok('PRERELEASE') -src[t.PRERELEASE] = '(?:-(' + src[t.PRERELEASEIDENTIFIER] + - '(?:\\.' + src[t.PRERELEASEIDENTIFIER] + ')*))' - -tok('PRERELEASELOOSE') -src[t.PRERELEASELOOSE] = '(?:-?(' + src[t.PRERELEASEIDENTIFIERLOOSE] + - '(?:\\.' + src[t.PRERELEASEIDENTIFIERLOOSE] + ')*))' - -// ## Build Metadata Identifier -// Any combination of digits, letters, or hyphens. - -tok('BUILDIDENTIFIER') -src[t.BUILDIDENTIFIER] = LETTERDASHNUMBER + '+' - -// ## Build Metadata -// Plus sign, followed by one or more period-separated build metadata -// identifiers. - -tok('BUILD') -src[t.BUILD] = '(?:\\+(' + src[t.BUILDIDENTIFIER] + - '(?:\\.' + src[t.BUILDIDENTIFIER] + ')*))' - -// ## Full Version String -// A main version, followed optionally by a pre-release version and -// build metadata. - -// Note that the only major, minor, patch, and pre-release sections of -// the version string are capturing groups. The build metadata is not a -// capturing group, because it should not ever be used in version -// comparison. - -tok('FULL') -tok('FULLPLAIN') -src[t.FULLPLAIN] = 'v?' + src[t.MAINVERSION] + - src[t.PRERELEASE] + '?' + - src[t.BUILD] + '?' - -src[t.FULL] = '^' + src[t.FULLPLAIN] + '$' - -// like full, but allows v1.2.3 and =1.2.3, which people do sometimes. -// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty -// common in the npm registry. -tok('LOOSEPLAIN') -src[t.LOOSEPLAIN] = '[v=\\s]*' + src[t.MAINVERSIONLOOSE] + - src[t.PRERELEASELOOSE] + '?' + - src[t.BUILD] + '?' - -tok('LOOSE') -src[t.LOOSE] = '^' + src[t.LOOSEPLAIN] + '$' - -tok('GTLT') -src[t.GTLT] = '((?:<|>)?=?)' - -// Something like "2.*" or "1.2.x". -// Note that "x.x" is a valid xRange identifer, meaning "any version" -// Only the first item is strictly required. -tok('XRANGEIDENTIFIERLOOSE') -src[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\*' -tok('XRANGEIDENTIFIER') -src[t.XRANGEIDENTIFIER] = src[t.NUMERICIDENTIFIER] + '|x|X|\\*' - -tok('XRANGEPLAIN') -src[t.XRANGEPLAIN] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIER] + ')' + - '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' + - '(?:\\.(' + src[t.XRANGEIDENTIFIER] + ')' + - '(?:' + src[t.PRERELEASE] + ')?' + - src[t.BUILD] + '?' + - ')?)?' - -tok('XRANGEPLAINLOOSE') -src[t.XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' + - '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' + - '(?:\\.(' + src[t.XRANGEIDENTIFIERLOOSE] + ')' + - '(?:' + src[t.PRERELEASELOOSE] + ')?' + - src[t.BUILD] + '?' + - ')?)?' - -tok('XRANGE') -src[t.XRANGE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAIN] + '$' -tok('XRANGELOOSE') -src[t.XRANGELOOSE] = '^' + src[t.GTLT] + '\\s*' + src[t.XRANGEPLAINLOOSE] + '$' - -// Coercion. -// Extract anything that could conceivably be a part of a valid semver -tok('COERCE') -src[t.COERCE] = '(^|[^\\d])' + - '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' + - '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + - '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + - '(?:$|[^\\d])' -tok('COERCERTL') -re[t.COERCERTL] = new RegExp(src[t.COERCE], 'g') -safeRe[t.COERCERTL] = new RegExp(makeSafeRe(src[t.COERCE]), 'g') - -// Tilde ranges. -// Meaning is "reasonably at or greater than" -tok('LONETILDE') -src[t.LONETILDE] = '(?:~>?)' - -tok('TILDETRIM') -src[t.TILDETRIM] = '(\\s*)' + src[t.LONETILDE] + '\\s+' -re[t.TILDETRIM] = new RegExp(src[t.TILDETRIM], 'g') -safeRe[t.TILDETRIM] = new RegExp(makeSafeRe(src[t.TILDETRIM]), 'g') -var tildeTrimReplace = '$1~' - -tok('TILDE') -src[t.TILDE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAIN] + '$' -tok('TILDELOOSE') -src[t.TILDELOOSE] = '^' + src[t.LONETILDE] + src[t.XRANGEPLAINLOOSE] + '$' - -// Caret ranges. -// Meaning is "at least and backwards compatible with" -tok('LONECARET') -src[t.LONECARET] = '(?:\\^)' - -tok('CARETTRIM') -src[t.CARETTRIM] = '(\\s*)' + src[t.LONECARET] + '\\s+' -re[t.CARETTRIM] = new RegExp(src[t.CARETTRIM], 'g') -safeRe[t.CARETTRIM] = new RegExp(makeSafeRe(src[t.CARETTRIM]), 'g') -var caretTrimReplace = '$1^' - -tok('CARET') -src[t.CARET] = '^' + src[t.LONECARET] + src[t.XRANGEPLAIN] + '$' -tok('CARETLOOSE') -src[t.CARETLOOSE] = '^' + src[t.LONECARET] + src[t.XRANGEPLAINLOOSE] + '$' - -// A simple gt/lt/eq thing, or just "" to indicate "any version" -tok('COMPARATORLOOSE') -src[t.COMPARATORLOOSE] = '^' + src[t.GTLT] + '\\s*(' + src[t.LOOSEPLAIN] + ')$|^$' -tok('COMPARATOR') -src[t.COMPARATOR] = '^' + src[t.GTLT] + '\\s*(' + src[t.FULLPLAIN] + ')$|^$' - -// An expression to strip any whitespace between the gtlt and the thing -// it modifies, so that `> 1.2.3` ==> `>1.2.3` -tok('COMPARATORTRIM') -src[t.COMPARATORTRIM] = '(\\s*)' + src[t.GTLT] + - '\\s*(' + src[t.LOOSEPLAIN] + '|' + src[t.XRANGEPLAIN] + ')' - -// this one has to use the /g flag -re[t.COMPARATORTRIM] = new RegExp(src[t.COMPARATORTRIM], 'g') -safeRe[t.COMPARATORTRIM] = new RegExp(makeSafeRe(src[t.COMPARATORTRIM]), 'g') -var comparatorTrimReplace = '$1$2$3' - -// Something like `1.2.3 - 1.2.4` -// Note that these all use the loose form, because they'll be -// checked against either the strict or loose comparator form -// later. -tok('HYPHENRANGE') -src[t.HYPHENRANGE] = '^\\s*(' + src[t.XRANGEPLAIN] + ')' + - '\\s+-\\s+' + - '(' + src[t.XRANGEPLAIN] + ')' + - '\\s*$' - -tok('HYPHENRANGELOOSE') -src[t.HYPHENRANGELOOSE] = '^\\s*(' + src[t.XRANGEPLAINLOOSE] + ')' + - '\\s+-\\s+' + - '(' + src[t.XRANGEPLAINLOOSE] + ')' + - '\\s*$' - -// Star ranges basically just allow anything at all. -tok('STAR') -src[t.STAR] = '(<|>)?=?\\s*\\*' - -// Compile to actual regexp objects. -// All are flag-free, unless they were created above with a flag. -for (var i = 0; i < R; i++) { - debug(i, src[i]) - if (!re[i]) { - re[i] = new RegExp(src[i]) - - // Replace all greedy whitespace to prevent regex dos issues. These regex are - // used internally via the safeRe object since all inputs in this library get - // normalized first to trim and collapse all extra whitespace. The original - // regexes are exported for userland consumption and lower level usage. A - // future breaking change could export the safer regex only with a note that - // all input should have extra whitespace removed. - safeRe[i] = new RegExp(makeSafeRe(src[i])) - } -} - -exports.parse = parse -function parse (version, options) { - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false - } - } - - if (version instanceof SemVer) { - return version - } - - if (typeof version !== 'string') { - return null - } - - if (version.length > MAX_LENGTH) { - return null - } - - var r = options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL] - if (!r.test(version)) { - return null - } - - try { - return new SemVer(version, options) - } catch (er) { - return null - } -} - -exports.valid = valid -function valid (version, options) { - var v = parse(version, options) - return v ? v.version : null -} - -exports.clean = clean -function clean (version, options) { - var s = parse(version.trim().replace(/^[=v]+/, ''), options) - return s ? s.version : null -} - -exports.SemVer = SemVer - -function SemVer (version, options) { - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false - } - } - if (version instanceof SemVer) { - if (version.loose === options.loose) { - return version - } else { - version = version.version - } - } else if (typeof version !== 'string') { - throw new TypeError('Invalid Version: ' + version) - } - - if (version.length > MAX_LENGTH) { - throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters') - } - - if (!(this instanceof SemVer)) { - return new SemVer(version, options) - } - - debug('SemVer', version, options) - this.options = options - this.loose = !!options.loose - - var m = version.trim().match(options.loose ? safeRe[t.LOOSE] : safeRe[t.FULL]) - - if (!m) { - throw new TypeError('Invalid Version: ' + version) - } - - this.raw = version - - // these are actually numbers - this.major = +m[1] - this.minor = +m[2] - this.patch = +m[3] - - if (this.major > MAX_SAFE_INTEGER || this.major < 0) { - throw new TypeError('Invalid major version') - } - - if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { - throw new TypeError('Invalid minor version') - } - - if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { - throw new TypeError('Invalid patch version') - } - - // numberify any prerelease numeric ids - if (!m[4]) { - this.prerelease = [] - } else { - this.prerelease = m[4].split('.').map(function (id) { - if (/^[0-9]+$/.test(id)) { - var num = +id - if (num >= 0 && num < MAX_SAFE_INTEGER) { - return num - } - } - return id - }) - } - - this.build = m[5] ? m[5].split('.') : [] - this.format() -} - -SemVer.prototype.format = function () { - this.version = this.major + '.' + this.minor + '.' + this.patch - if (this.prerelease.length) { - this.version += '-' + this.prerelease.join('.') - } - return this.version -} - -SemVer.prototype.toString = function () { - return this.version -} - -SemVer.prototype.compare = function (other) { - debug('SemVer.compare', this.version, this.options, other) - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } - - return this.compareMain(other) || this.comparePre(other) -} - -SemVer.prototype.compareMain = function (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } - - return compareIdentifiers(this.major, other.major) || - compareIdentifiers(this.minor, other.minor) || - compareIdentifiers(this.patch, other.patch) -} - -SemVer.prototype.comparePre = function (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } - - // NOT having a prerelease is > having one - if (this.prerelease.length && !other.prerelease.length) { - return -1 - } else if (!this.prerelease.length && other.prerelease.length) { - return 1 - } else if (!this.prerelease.length && !other.prerelease.length) { - return 0 - } - - var i = 0 - do { - var a = this.prerelease[i] - var b = other.prerelease[i] - debug('prerelease compare', i, a, b) - if (a === undefined && b === undefined) { - return 0 - } else if (b === undefined) { - return 1 - } else if (a === undefined) { - return -1 - } else if (a === b) { - continue - } else { - return compareIdentifiers(a, b) - } - } while (++i) -} - -SemVer.prototype.compareBuild = function (other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) - } - - var i = 0 - do { - var a = this.build[i] - var b = other.build[i] - debug('prerelease compare', i, a, b) - if (a === undefined && b === undefined) { - return 0 - } else if (b === undefined) { - return 1 - } else if (a === undefined) { - return -1 - } else if (a === b) { - continue - } else { - return compareIdentifiers(a, b) - } - } while (++i) -} - -// preminor will bump the version up to the next minor release, and immediately -// down to pre-release. premajor and prepatch work the same way. -SemVer.prototype.inc = function (release, identifier) { - switch (release) { - case 'premajor': - this.prerelease.length = 0 - this.patch = 0 - this.minor = 0 - this.major++ - this.inc('pre', identifier) - break - case 'preminor': - this.prerelease.length = 0 - this.patch = 0 - this.minor++ - this.inc('pre', identifier) - break - case 'prepatch': - // If this is already a prerelease, it will bump to the next version - // drop any prereleases that might already exist, since they are not - // relevant at this point. - this.prerelease.length = 0 - this.inc('patch', identifier) - this.inc('pre', identifier) - break - // If the input is a non-prerelease version, this acts the same as - // prepatch. - case 'prerelease': - if (this.prerelease.length === 0) { - this.inc('patch', identifier) - } - this.inc('pre', identifier) - break - - case 'major': - // If this is a pre-major version, bump up to the same major version. - // Otherwise increment major. - // 1.0.0-5 bumps to 1.0.0 - // 1.1.0 bumps to 2.0.0 - if (this.minor !== 0 || - this.patch !== 0 || - this.prerelease.length === 0) { - this.major++ - } - this.minor = 0 - this.patch = 0 - this.prerelease = [] - break - case 'minor': - // If this is a pre-minor version, bump up to the same minor version. - // Otherwise increment minor. - // 1.2.0-5 bumps to 1.2.0 - // 1.2.1 bumps to 1.3.0 - if (this.patch !== 0 || this.prerelease.length === 0) { - this.minor++ - } - this.patch = 0 - this.prerelease = [] - break - case 'patch': - // If this is not a pre-release version, it will increment the patch. - // If it is a pre-release it will bump up to the same patch version. - // 1.2.0-5 patches to 1.2.0 - // 1.2.0 patches to 1.2.1 - if (this.prerelease.length === 0) { - this.patch++ - } - this.prerelease = [] - break - // This probably shouldn't be used publicly. - // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction. - case 'pre': - if (this.prerelease.length === 0) { - this.prerelease = [0] - } else { - var i = this.prerelease.length - while (--i >= 0) { - if (typeof this.prerelease[i] === 'number') { - this.prerelease[i]++ - i = -2 - } - } - if (i === -1) { - // didn't increment anything - this.prerelease.push(0) - } - } - if (identifier) { - // 1.2.0-beta.1 bumps to 1.2.0-beta.2, - // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0 - if (this.prerelease[0] === identifier) { - if (isNaN(this.prerelease[1])) { - this.prerelease = [identifier, 0] - } - } else { - this.prerelease = [identifier, 0] - } - } - break - - default: - throw new Error('invalid increment argument: ' + release) - } - this.format() - this.raw = this.version - return this -} - -exports.inc = inc -function inc (version, release, loose, identifier) { - if (typeof (loose) === 'string') { - identifier = loose - loose = undefined - } - - try { - return new SemVer(version, loose).inc(release, identifier).version - } catch (er) { - return null - } -} - -exports.diff = diff -function diff (version1, version2) { - if (eq(version1, version2)) { - return null - } else { - var v1 = parse(version1) - var v2 = parse(version2) - var prefix = '' - if (v1.prerelease.length || v2.prerelease.length) { - prefix = 'pre' - var defaultResult = 'prerelease' - } - for (var key in v1) { - if (key === 'major' || key === 'minor' || key === 'patch') { - if (v1[key] !== v2[key]) { - return prefix + key - } - } - } - return defaultResult // may be undefined - } -} - -exports.compareIdentifiers = compareIdentifiers - -var numeric = /^[0-9]+$/ -function compareIdentifiers (a, b) { - var anum = numeric.test(a) - var bnum = numeric.test(b) - - if (anum && bnum) { - a = +a - b = +b - } - - return a === b ? 0 - : (anum && !bnum) ? -1 - : (bnum && !anum) ? 1 - : a < b ? -1 - : 1 -} - -exports.rcompareIdentifiers = rcompareIdentifiers -function rcompareIdentifiers (a, b) { - return compareIdentifiers(b, a) -} - -exports.major = major -function major (a, loose) { - return new SemVer(a, loose).major -} - -exports.minor = minor -function minor (a, loose) { - return new SemVer(a, loose).minor -} - -exports.patch = patch -function patch (a, loose) { - return new SemVer(a, loose).patch -} - -exports.compare = compare -function compare (a, b, loose) { - return new SemVer(a, loose).compare(new SemVer(b, loose)) -} - -exports.compareLoose = compareLoose -function compareLoose (a, b) { - return compare(a, b, true) -} - -exports.compareBuild = compareBuild -function compareBuild (a, b, loose) { - var versionA = new SemVer(a, loose) - var versionB = new SemVer(b, loose) - return versionA.compare(versionB) || versionA.compareBuild(versionB) -} - -exports.rcompare = rcompare -function rcompare (a, b, loose) { - return compare(b, a, loose) -} - -exports.sort = sort -function sort (list, loose) { - return list.sort(function (a, b) { - return exports.compareBuild(a, b, loose) - }) -} - -exports.rsort = rsort -function rsort (list, loose) { - return list.sort(function (a, b) { - return exports.compareBuild(b, a, loose) - }) -} - -exports.gt = gt -function gt (a, b, loose) { - return compare(a, b, loose) > 0 -} - -exports.lt = lt -function lt (a, b, loose) { - return compare(a, b, loose) < 0 -} - -exports.eq = eq -function eq (a, b, loose) { - return compare(a, b, loose) === 0 -} - -exports.neq = neq -function neq (a, b, loose) { - return compare(a, b, loose) !== 0 -} - -exports.gte = gte -function gte (a, b, loose) { - return compare(a, b, loose) >= 0 -} - -exports.lte = lte -function lte (a, b, loose) { - return compare(a, b, loose) <= 0 -} - -exports.cmp = cmp -function cmp (a, op, b, loose) { - switch (op) { - case '===': - if (typeof a === 'object') - a = a.version - if (typeof b === 'object') - b = b.version - return a === b - - case '!==': - if (typeof a === 'object') - a = a.version - if (typeof b === 'object') - b = b.version - return a !== b - - case '': - case '=': - case '==': - return eq(a, b, loose) - - case '!=': - return neq(a, b, loose) - - case '>': - return gt(a, b, loose) - - case '>=': - return gte(a, b, loose) - - case '<': - return lt(a, b, loose) - - case '<=': - return lte(a, b, loose) - - default: - throw new TypeError('Invalid operator: ' + op) - } -} - -exports.Comparator = Comparator -function Comparator (comp, options) { - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false - } - } - - if (comp instanceof Comparator) { - if (comp.loose === !!options.loose) { - return comp - } else { - comp = comp.value - } - } - - if (!(this instanceof Comparator)) { - return new Comparator(comp, options) - } - - comp = comp.trim().split(/\s+/).join(' ') - debug('comparator', comp, options) - this.options = options - this.loose = !!options.loose - this.parse(comp) - - if (this.semver === ANY) { - this.value = '' - } else { - this.value = this.operator + this.semver.version - } - - debug('comp', this) -} - -var ANY = {} -Comparator.prototype.parse = function (comp) { - var r = this.options.loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR] - var m = comp.match(r) - - if (!m) { - throw new TypeError('Invalid comparator: ' + comp) - } - - this.operator = m[1] !== undefined ? m[1] : '' - if (this.operator === '=') { - this.operator = '' - } - - // if it literally is just '>' or '' then allow anything. - if (!m[2]) { - this.semver = ANY - } else { - this.semver = new SemVer(m[2], this.options.loose) - } -} - -Comparator.prototype.toString = function () { - return this.value -} - -Comparator.prototype.test = function (version) { - debug('Comparator.test', version, this.options.loose) - - if (this.semver === ANY || version === ANY) { - return true - } - - if (typeof version === 'string') { - try { - version = new SemVer(version, this.options) - } catch (er) { - return false - } - } - - return cmp(version, this.operator, this.semver, this.options) -} - -Comparator.prototype.intersects = function (comp, options) { - if (!(comp instanceof Comparator)) { - throw new TypeError('a Comparator is required') - } - - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false - } - } - - var rangeTmp - - if (this.operator === '') { - if (this.value === '') { - return true - } - rangeTmp = new Range(comp.value, options) - return satisfies(this.value, rangeTmp, options) - } else if (comp.operator === '') { - if (comp.value === '') { - return true - } - rangeTmp = new Range(this.value, options) - return satisfies(comp.semver, rangeTmp, options) - } - - var sameDirectionIncreasing = - (this.operator === '>=' || this.operator === '>') && - (comp.operator === '>=' || comp.operator === '>') - var sameDirectionDecreasing = - (this.operator === '<=' || this.operator === '<') && - (comp.operator === '<=' || comp.operator === '<') - var sameSemVer = this.semver.version === comp.semver.version - var differentDirectionsInclusive = - (this.operator === '>=' || this.operator === '<=') && - (comp.operator === '>=' || comp.operator === '<=') - var oppositeDirectionsLessThan = - cmp(this.semver, '<', comp.semver, options) && - ((this.operator === '>=' || this.operator === '>') && - (comp.operator === '<=' || comp.operator === '<')) - var oppositeDirectionsGreaterThan = - cmp(this.semver, '>', comp.semver, options) && - ((this.operator === '<=' || this.operator === '<') && - (comp.operator === '>=' || comp.operator === '>')) - - return sameDirectionIncreasing || sameDirectionDecreasing || - (sameSemVer && differentDirectionsInclusive) || - oppositeDirectionsLessThan || oppositeDirectionsGreaterThan -} - -exports.Range = Range -function Range (range, options) { - if (!options || typeof options !== 'object') { - options = { - loose: !!options, - includePrerelease: false - } - } - - if (range instanceof Range) { - if (range.loose === !!options.loose && - range.includePrerelease === !!options.includePrerelease) { - return range - } else { - return new Range(range.raw, options) - } - } - - if (range instanceof Comparator) { - return new Range(range.value, options) - } - - if (!(this instanceof Range)) { - return new Range(range, options) - } - - this.options = options - this.loose = !!options.loose - this.includePrerelease = !!options.includePrerelease - - // First reduce all whitespace as much as possible so we do not have to rely - // on potentially slow regexes like \s*. This is then stored and used for - // future error messages as well. - this.raw = range - .trim() - .split(/\s+/) - .join(' ') - - // First, split based on boolean or || - this.set = this.raw.split('||').map(function (range) { - return this.parseRange(range.trim()) - }, this).filter(function (c) { - // throw out any that are not relevant for whatever reason - return c.length - }) - - if (!this.set.length) { - throw new TypeError('Invalid SemVer Range: ' + this.raw) - } - - this.format() -} - -Range.prototype.format = function () { - this.range = this.set.map(function (comps) { - return comps.join(' ').trim() - }).join('||').trim() - return this.range -} - -Range.prototype.toString = function () { - return this.range -} - -Range.prototype.parseRange = function (range) { - var loose = this.options.loose - // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4` - var hr = loose ? safeRe[t.HYPHENRANGELOOSE] : safeRe[t.HYPHENRANGE] - range = range.replace(hr, hyphenReplace) - debug('hyphen replace', range) - // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5` - range = range.replace(safeRe[t.COMPARATORTRIM], comparatorTrimReplace) - debug('comparator trim', range, safeRe[t.COMPARATORTRIM]) - - // `~ 1.2.3` => `~1.2.3` - range = range.replace(safeRe[t.TILDETRIM], tildeTrimReplace) - - // `^ 1.2.3` => `^1.2.3` - range = range.replace(safeRe[t.CARETTRIM], caretTrimReplace) - - // normalize spaces - range = range.split(/\s+/).join(' ') - - // At this point, the range is completely trimmed and - // ready to be split into comparators. - - var compRe = loose ? safeRe[t.COMPARATORLOOSE] : safeRe[t.COMPARATOR] - var set = range.split(' ').map(function (comp) { - return parseComparator(comp, this.options) - }, this).join(' ').split(/\s+/) - if (this.options.loose) { - // in loose mode, throw out any that are not valid comparators - set = set.filter(function (comp) { - return !!comp.match(compRe) - }) - } - set = set.map(function (comp) { - return new Comparator(comp, this.options) - }, this) - - return set -} - -Range.prototype.intersects = function (range, options) { - if (!(range instanceof Range)) { - throw new TypeError('a Range is required') - } - - return this.set.some(function (thisComparators) { - return ( - isSatisfiable(thisComparators, options) && - range.set.some(function (rangeComparators) { - return ( - isSatisfiable(rangeComparators, options) && - thisComparators.every(function (thisComparator) { - return rangeComparators.every(function (rangeComparator) { - return thisComparator.intersects(rangeComparator, options) - }) - }) - ) - }) - ) - }) -} - -// take a set of comparators and determine whether there -// exists a version which can satisfy it -function isSatisfiable (comparators, options) { - var result = true - var remainingComparators = comparators.slice() - var testComparator = remainingComparators.pop() - - while (result && remainingComparators.length) { - result = remainingComparators.every(function (otherComparator) { - return testComparator.intersects(otherComparator, options) - }) - - testComparator = remainingComparators.pop() - } - - return result -} - -// Mostly just for testing and legacy API reasons -exports.toComparators = toComparators -function toComparators (range, options) { - return new Range(range, options).set.map(function (comp) { - return comp.map(function (c) { - return c.value - }).join(' ').trim().split(' ') - }) -} - -// comprised of xranges, tildes, stars, and gtlt's at this point. -// already replaced the hyphen ranges -// turn into a set of JUST comparators. -function parseComparator (comp, options) { - debug('comp', comp, options) - comp = replaceCarets(comp, options) - debug('caret', comp) - comp = replaceTildes(comp, options) - debug('tildes', comp) - comp = replaceXRanges(comp, options) - debug('xrange', comp) - comp = replaceStars(comp, options) - debug('stars', comp) - return comp -} - -function isX (id) { - return !id || id.toLowerCase() === 'x' || id === '*' -} - -// ~, ~> --> * (any, kinda silly) -// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0 -// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0 -// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0 -// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0 -// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0 -function replaceTildes (comp, options) { - return comp.trim().split(/\s+/).map(function (comp) { - return replaceTilde(comp, options) - }).join(' ') -} - -function replaceTilde (comp, options) { - var r = options.loose ? safeRe[t.TILDELOOSE] : safeRe[t.TILDE] - return comp.replace(r, function (_, M, m, p, pr) { - debug('tilde', comp, _, M, m, p, pr) - var ret - - if (isX(M)) { - ret = '' - } else if (isX(m)) { - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' - } else if (isX(p)) { - // ~1.2 == >=1.2.0 <1.3.0 - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' - } else if (pr) { - debug('replaceTilde pr', pr) - ret = '>=' + M + '.' + m + '.' + p + '-' + pr + - ' <' + M + '.' + (+m + 1) + '.0' - } else { - // ~1.2.3 == >=1.2.3 <1.3.0 - ret = '>=' + M + '.' + m + '.' + p + - ' <' + M + '.' + (+m + 1) + '.0' - } - - debug('tilde return', ret) - return ret - }) -} - -// ^ --> * (any, kinda silly) -// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0 -// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0 -// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0 -// ^1.2.3 --> >=1.2.3 <2.0.0 -// ^1.2.0 --> >=1.2.0 <2.0.0 -function replaceCarets (comp, options) { - return comp.trim().split(/\s+/).map(function (comp) { - return replaceCaret(comp, options) - }).join(' ') -} - -function replaceCaret (comp, options) { - debug('caret', comp, options) - var r = options.loose ? safeRe[t.CARETLOOSE] : safeRe[t.CARET] - return comp.replace(r, function (_, M, m, p, pr) { - debug('caret', comp, _, M, m, p, pr) - var ret - - if (isX(M)) { - ret = '' - } else if (isX(m)) { - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' - } else if (isX(p)) { - if (M === '0') { - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' - } else { - ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0' - } - } else if (pr) { - debug('replaceCaret pr', pr) - if (M === '0') { - if (m === '0') { - ret = '>=' + M + '.' + m + '.' + p + '-' + pr + - ' <' + M + '.' + m + '.' + (+p + 1) - } else { - ret = '>=' + M + '.' + m + '.' + p + '-' + pr + - ' <' + M + '.' + (+m + 1) + '.0' - } - } else { - ret = '>=' + M + '.' + m + '.' + p + '-' + pr + - ' <' + (+M + 1) + '.0.0' - } - } else { - debug('no pr') - if (M === '0') { - if (m === '0') { - ret = '>=' + M + '.' + m + '.' + p + - ' <' + M + '.' + m + '.' + (+p + 1) - } else { - ret = '>=' + M + '.' + m + '.' + p + - ' <' + M + '.' + (+m + 1) + '.0' - } - } else { - ret = '>=' + M + '.' + m + '.' + p + - ' <' + (+M + 1) + '.0.0' - } - } - - debug('caret return', ret) - return ret - }) -} - -function replaceXRanges (comp, options) { - debug('replaceXRanges', comp, options) - return comp.split(/\s+/).map(function (comp) { - return replaceXRange(comp, options) - }).join(' ') -} - -function replaceXRange (comp, options) { - comp = comp.trim() - var r = options.loose ? safeRe[t.XRANGELOOSE] : safeRe[t.XRANGE] - return comp.replace(r, function (ret, gtlt, M, m, p, pr) { - debug('xRange', comp, ret, gtlt, M, m, p, pr) - var xM = isX(M) - var xm = xM || isX(m) - var xp = xm || isX(p) - var anyX = xp - - if (gtlt === '=' && anyX) { - gtlt = '' - } - - // if we're including prereleases in the match, then we need - // to fix this to -0, the lowest possible prerelease value - pr = options.includePrerelease ? '-0' : '' - - if (xM) { - if (gtlt === '>' || gtlt === '<') { - // nothing is allowed - ret = '<0.0.0-0' - } else { - // nothing is forbidden - ret = '*' - } - } else if (gtlt && anyX) { - // we know patch is an x, because we have any x at all. - // replace X with 0 - if (xm) { - m = 0 - } - p = 0 - - if (gtlt === '>') { - // >1 => >=2.0.0 - // >1.2 => >=1.3.0 - // >1.2.3 => >= 1.2.4 - gtlt = '>=' - if (xm) { - M = +M + 1 - m = 0 - p = 0 - } else { - m = +m + 1 - p = 0 - } - } else if (gtlt === '<=') { - // <=0.7.x is actually <0.8.0, since any 0.7.x should - // pass. Similarly, <=7.x is actually <8.0.0, etc. - gtlt = '<' - if (xm) { - M = +M + 1 - } else { - m = +m + 1 - } - } - - ret = gtlt + M + '.' + m + '.' + p + pr - } else if (xm) { - ret = '>=' + M + '.0.0' + pr + ' <' + (+M + 1) + '.0.0' + pr - } else if (xp) { - ret = '>=' + M + '.' + m + '.0' + pr + - ' <' + M + '.' + (+m + 1) + '.0' + pr - } - - debug('xRange return', ret) - - return ret - }) -} - -// Because * is AND-ed with everything else in the comparator, -// and '' means "any version", just remove the *s entirely. -function replaceStars (comp, options) { - debug('replaceStars', comp, options) - // Looseness is ignored here. star is always as loose as it gets! - return comp.trim().replace(safeRe[t.STAR], '') -} - -// This function is passed to string.replace(re[t.HYPHENRANGE]) -// M, m, patch, prerelease, build -// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5 -// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do -// 1.2 - 3.4 => >=1.2.0 <3.5.0 -function hyphenReplace ($0, - from, fM, fm, fp, fpr, fb, - to, tM, tm, tp, tpr, tb) { - if (isX(fM)) { - from = '' - } else if (isX(fm)) { - from = '>=' + fM + '.0.0' - } else if (isX(fp)) { - from = '>=' + fM + '.' + fm + '.0' - } else { - from = '>=' + from - } - - if (isX(tM)) { - to = '' - } else if (isX(tm)) { - to = '<' + (+tM + 1) + '.0.0' - } else if (isX(tp)) { - to = '<' + tM + '.' + (+tm + 1) + '.0' - } else if (tpr) { - to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr - } else { - to = '<=' + to - } - - return (from + ' ' + to).trim() -} - -// if ANY of the sets match ALL of its comparators, then pass -Range.prototype.test = function (version) { - if (!version) { - return false - } - - if (typeof version === 'string') { - try { - version = new SemVer(version, this.options) - } catch (er) { - return false - } - } - - for (var i = 0; i < this.set.length; i++) { - if (testSet(this.set[i], version, this.options)) { - return true - } - } - return false -} - -function testSet (set, version, options) { - for (var i = 0; i < set.length; i++) { - if (!set[i].test(version)) { - return false - } - } - - if (version.prerelease.length && !options.includePrerelease) { - // Find the set of versions that are allowed to have prereleases - // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0 - // That should allow `1.2.3-pr.2` to pass. - // However, `1.2.4-alpha.notready` should NOT be allowed, - // even though it's within the range set by the comparators. - for (i = 0; i < set.length; i++) { - debug(set[i].semver) - if (set[i].semver === ANY) { - continue - } - - if (set[i].semver.prerelease.length > 0) { - var allowed = set[i].semver - if (allowed.major === version.major && - allowed.minor === version.minor && - allowed.patch === version.patch) { - return true - } - } - } - - // Version has a -pre, but it's not one of the ones we like. - return false - } - - return true -} - -exports.satisfies = satisfies -function satisfies (version, range, options) { - try { - range = new Range(range, options) - } catch (er) { - return false - } - return range.test(version) -} - -exports.maxSatisfying = maxSatisfying -function maxSatisfying (versions, range, options) { - var max = null - var maxSV = null - try { - var rangeObj = new Range(range, options) - } catch (er) { - return null - } - versions.forEach(function (v) { - if (rangeObj.test(v)) { - // satisfies(v, range, options) - if (!max || maxSV.compare(v) === -1) { - // compare(max, v, true) - max = v - maxSV = new SemVer(max, options) - } - } - }) - return max -} - -exports.minSatisfying = minSatisfying -function minSatisfying (versions, range, options) { - var min = null - var minSV = null - try { - var rangeObj = new Range(range, options) - } catch (er) { - return null - } - versions.forEach(function (v) { - if (rangeObj.test(v)) { - // satisfies(v, range, options) - if (!min || minSV.compare(v) === 1) { - // compare(min, v, true) - min = v - minSV = new SemVer(min, options) - } - } - }) - return min -} - -exports.minVersion = minVersion -function minVersion (range, loose) { - range = new Range(range, loose) - - var minver = new SemVer('0.0.0') - if (range.test(minver)) { - return minver - } - - minver = new SemVer('0.0.0-0') - if (range.test(minver)) { - return minver - } - - minver = null - for (var i = 0; i < range.set.length; ++i) { - var comparators = range.set[i] - - comparators.forEach(function (comparator) { - // Clone to avoid manipulating the comparator's semver object. - var compver = new SemVer(comparator.semver.version) - switch (comparator.operator) { - case '>': - if (compver.prerelease.length === 0) { - compver.patch++ - } else { - compver.prerelease.push(0) - } - compver.raw = compver.format() - /* fallthrough */ - case '': - case '>=': - if (!minver || gt(minver, compver)) { - minver = compver - } - break - case '<': - case '<=': - /* Ignore maximum versions */ - break - /* istanbul ignore next */ - default: - throw new Error('Unexpected operation: ' + comparator.operator) - } - }) - } - - if (minver && range.test(minver)) { - return minver - } - - return null -} - -exports.validRange = validRange -function validRange (range, options) { - try { - // Return '*' instead of '' so that truthiness works. - // This will throw if it's invalid anyway - return new Range(range, options).range || '*' - } catch (er) { - return null - } -} - -// Determine if version is less than all the versions possible in the range -exports.ltr = ltr -function ltr (version, range, options) { - return outside(version, range, '<', options) -} - -// Determine if version is greater than all the versions possible in the range. -exports.gtr = gtr -function gtr (version, range, options) { - return outside(version, range, '>', options) -} - -exports.outside = outside -function outside (version, range, hilo, options) { - version = new SemVer(version, options) - range = new Range(range, options) - - var gtfn, ltefn, ltfn, comp, ecomp - switch (hilo) { - case '>': - gtfn = gt - ltefn = lte - ltfn = lt - comp = '>' - ecomp = '>=' - break - case '<': - gtfn = lt - ltefn = gte - ltfn = gt - comp = '<' - ecomp = '<=' - break - default: - throw new TypeError('Must provide a hilo val of "<" or ">"') - } - - // If it satisifes the range it is not outside - if (satisfies(version, range, options)) { - return false - } - - // From now on, variable terms are as if we're in "gtr" mode. - // but note that everything is flipped for the "ltr" function. - - for (var i = 0; i < range.set.length; ++i) { - var comparators = range.set[i] - - var high = null - var low = null - - comparators.forEach(function (comparator) { - if (comparator.semver === ANY) { - comparator = new Comparator('>=0.0.0') - } - high = high || comparator - low = low || comparator - if (gtfn(comparator.semver, high.semver, options)) { - high = comparator - } else if (ltfn(comparator.semver, low.semver, options)) { - low = comparator - } - }) - - // If the edge version comparator has a operator then our version - // isn't outside it - if (high.operator === comp || high.operator === ecomp) { - return false - } - - // If the lowest version comparator has an operator and our version - // is less than it then it isn't higher than the range - if ((!low.operator || low.operator === comp) && - ltefn(version, low.semver)) { - return false - } else if (low.operator === ecomp && ltfn(version, low.semver)) { - return false - } - } - return true -} - -exports.prerelease = prerelease -function prerelease (version, options) { - var parsed = parse(version, options) - return (parsed && parsed.prerelease.length) ? parsed.prerelease : null -} - -exports.intersects = intersects -function intersects (r1, r2, options) { - r1 = new Range(r1, options) - r2 = new Range(r2, options) - return r1.intersects(r2) -} - -exports.coerce = coerce -function coerce (version, options) { - if (version instanceof SemVer) { - return version - } - - if (typeof version === 'number') { - version = String(version) - } - - if (typeof version !== 'string') { - return null - } - - options = options || {} - - var match = null - if (!options.rtl) { - match = version.match(safeRe[t.COERCE]) - } else { - // Find the right-most coercible string that does not share - // a terminus with a more left-ward coercible string. - // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4' - // - // Walk through the string checking with a /g regexp - // Manually set the index so as to pick up overlapping matches. - // Stop when we get a match that ends at the string end, since no - // coercible string can be more right-ward without the same terminus. - var next - while ((next = safeRe[t.COERCERTL].exec(version)) && - (!match || match.index + match[0].length !== version.length) - ) { - if (!match || - next.index + next[0].length !== match.index + match[0].length) { - match = next - } - safeRe[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length - } - // leave it in a clean state - safeRe[t.COERCERTL].lastIndex = -1 - } - - if (match === null) { - return null - } - - return parse(match[2] + - '.' + (match[3] || '0') + - '.' + (match[4] || '0'), options) -} diff --git a/build_vtk_bundle/node_modules/serialize-javascript/LICENSE b/build_vtk_bundle/node_modules/serialize-javascript/LICENSE deleted file mode 100644 index 263382ae..00000000 --- a/build_vtk_bundle/node_modules/serialize-javascript/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright 2014 Yahoo! Inc. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - * Neither the name of the Yahoo! Inc. nor the - names of its contributors may be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/build_vtk_bundle/node_modules/serialize-javascript/README.md b/build_vtk_bundle/node_modules/serialize-javascript/README.md deleted file mode 100644 index e6523ba8..00000000 --- a/build_vtk_bundle/node_modules/serialize-javascript/README.md +++ /dev/null @@ -1,143 +0,0 @@ -Serialize JavaScript -==================== - -Serialize JavaScript to a _superset_ of JSON that includes regular expressions, dates and functions. - -[![npm Version][npm-badge]][npm] -[![Dependency Status][david-badge]][david] -![Test](https://github.com/yahoo/serialize-javascript/workflows/Test/badge.svg) - -## Overview - -The code in this package began its life as an internal module to [express-state][]. To expand its usefulness, it now lives as `serialize-javascript` — an independent package on npm. - -You're probably wondering: **What about `JSON.stringify()`!?** We've found that sometimes we need to serialize JavaScript **functions**, **regexps**, **dates**, **sets** or **maps**. A great example is a web app that uses client-side URL routing where the route definitions are regexps that need to be shared from the server to the client. But this module is also great for communicating between node processes. - -The string returned from this package's single export function is literal JavaScript which can be saved to a `.js` file, or be embedded into an HTML document by making the content of a `' -}); -``` - -The above will produce the following string, HTML-escaped output which is safe to put into an HTML document as it will not cause the inline script element to terminate: - -```js -'{"haxorXSS":"\\u003C\\u002Fscript\\u003E"}' -``` - -> You can pass an optional `unsafe` argument to `serialize()` for straight serialization. - -### Options - -The `serialize()` function accepts an `options` object as its second argument. All options are being defaulted to `undefined`: - -#### `options.space` - -This option is the same as the `space` argument that can be passed to [`JSON.stringify`][JSON.stringify]. It can be used to add whitespace and indentation to the serialized output to make it more readable. - -```js -serialize(obj, {space: 2}); -``` - -#### `options.isJSON` - -This option is a signal to `serialize()` that the object being serialized does not contain any function or regexps values. This enables a hot-path that allows serialization to be over 3x faster. If you're serializing a lot of data, and know its pure JSON, then you can enable this option for a speed-up. - -**Note:** That when using this option, the output will still be escaped to protect against XSS. - -```js -serialize(obj, {isJSON: true}); -``` - -#### `options.unsafe` - -This option is to signal `serialize()` that we want to do a straight conversion, without the XSS protection. This options needs to be explicitly set to `true`. HTML characters and JavaScript line terminators will not be escaped. You will have to roll your own. - -```js -serialize(obj, {unsafe: true}); -``` - -#### `options.ignoreFunction` - -This option is to signal `serialize()` that we do not want serialize JavaScript function. -Just treat function like `JSON.stringify` do, but other features will work as expected. - -```js -serialize(obj, {ignoreFunction: true}); -``` - -## Deserializing - -For some use cases you might also need to deserialize the string. This is explicitly not part of this module. However, you can easily write it yourself: - -```js -function deserialize(serializedJavascript){ - return eval('(' + serializedJavascript + ')'); -} -``` - -**Note:** Don't forget the parentheses around the serialized javascript, as the opening bracket `{` will be considered to be the start of a body. - -## License - -This software is free to use under the Yahoo! Inc. BSD license. -See the [LICENSE file][LICENSE] for license text and copyright information. - - -[npm]: https://www.npmjs.org/package/serialize-javascript -[npm-badge]: https://img.shields.io/npm/v/serialize-javascript.svg?style=flat-square -[david]: https://david-dm.org/yahoo/serialize-javascript -[david-badge]: https://img.shields.io/david/yahoo/serialize-javascript.svg?style=flat-square -[express-state]: https://github.com/yahoo/express-state -[JSON.stringify]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify -[LICENSE]: https://github.com/yahoo/serialize-javascript/blob/main/LICENSE diff --git a/build_vtk_bundle/node_modules/serialize-javascript/index.js b/build_vtk_bundle/node_modules/serialize-javascript/index.js deleted file mode 100644 index 156f8f91..00000000 --- a/build_vtk_bundle/node_modules/serialize-javascript/index.js +++ /dev/null @@ -1,268 +0,0 @@ -/* -Copyright (c) 2014, Yahoo! Inc. All rights reserved. -Copyrights licensed under the New BSD License. -See the accompanying LICENSE file for terms. -*/ - -'use strict'; - -var randomBytes = require('randombytes'); - -// Generate an internal UID to make the regexp pattern harder to guess. -var UID_LENGTH = 16; -var UID = generateUID(); -var PLACE_HOLDER_REGEXP = new RegExp('(\\\\)?"@__(F|R|D|M|S|A|U|I|B|L)-' + UID + '-(\\d+)__@"', 'g'); - -var IS_NATIVE_CODE_REGEXP = /\{\s*\[native code\]\s*\}/g; -var IS_PURE_FUNCTION = /function.*?\(/; -var IS_ARROW_FUNCTION = /.*?=>.*?/; -var UNSAFE_CHARS_REGEXP = /[<>\/\u2028\u2029]/g; - -var RESERVED_SYMBOLS = ['*', 'async']; - -// Mapping of unsafe HTML and invalid JavaScript line terminator chars to their -// Unicode char counterparts which are safe to use in JavaScript strings. -var ESCAPED_CHARS = { - '<' : '\\u003C', - '>' : '\\u003E', - '/' : '\\u002F', - '\u2028': '\\u2028', - '\u2029': '\\u2029' -}; - -function escapeUnsafeChars(unsafeChar) { - return ESCAPED_CHARS[unsafeChar]; -} - -function generateUID() { - var bytes = randomBytes(UID_LENGTH); - var result = ''; - for(var i=0; i arg1+5 - if(IS_ARROW_FUNCTION.test(serializedFn)) { - return serializedFn; - } - - var argsStartsAt = serializedFn.indexOf('('); - var def = serializedFn.substr(0, argsStartsAt) - .trim() - .split(' ') - .filter(function(val) { return val.length > 0 }); - - var nonReservedSymbols = def.filter(function(val) { - return RESERVED_SYMBOLS.indexOf(val) === -1 - }); - - // enhanced literal objects, example: {key() {}} - if(nonReservedSymbols.length > 0) { - return (def.indexOf('async') > -1 ? 'async ' : '') + 'function' - + (def.join('').indexOf('*') > -1 ? '*' : '') - + serializedFn.substr(argsStartsAt); - } - - // arrow functions - return serializedFn; - } - - // Check if the parameter is function - if (options.ignoreFunction && typeof obj === "function") { - obj = undefined; - } - // Protects against `JSON.stringify()` returning `undefined`, by serializing - // to the literal string: "undefined". - if (obj === undefined) { - return String(obj); - } - - var str; - - // Creates a JSON string representation of the value. - // NOTE: Node 0.12 goes into slow mode with extra JSON.stringify() args. - if (options.isJSON && !options.space) { - str = JSON.stringify(obj); - } else { - str = JSON.stringify(obj, options.isJSON ? null : replacer, options.space); - } - - // Protects against `JSON.stringify()` returning `undefined`, by serializing - // to the literal string: "undefined". - if (typeof str !== 'string') { - return String(str); - } - - // Replace unsafe HTML and invalid JavaScript line terminator chars with - // their safe Unicode char counterpart. This _must_ happen before the - // regexps and functions are serialized and added back to the string. - if (options.unsafe !== true) { - str = str.replace(UNSAFE_CHARS_REGEXP, escapeUnsafeChars); - } - - if (functions.length === 0 && regexps.length === 0 && dates.length === 0 && maps.length === 0 && sets.length === 0 && arrays.length === 0 && undefs.length === 0 && infinities.length === 0 && bigInts.length === 0 && urls.length === 0) { - return str; - } - - // Replaces all occurrences of function, regexp, date, map and set placeholders in the - // JSON string with their string representations. If the original value can - // not be found, then `undefined` is used. - return str.replace(PLACE_HOLDER_REGEXP, function (match, backSlash, type, valueIndex) { - // The placeholder may not be preceded by a backslash. This is to prevent - // replacing things like `"a\"@__R--0__@"` and thus outputting - // invalid JS. - if (backSlash) { - return match; - } - - if (type === 'D') { - return "new Date(\"" + dates[valueIndex].toISOString() + "\")"; - } - - if (type === 'R') { - return "new RegExp(" + serialize(regexps[valueIndex].source) + ", \"" + regexps[valueIndex].flags + "\")"; - } - - if (type === 'M') { - return "new Map(" + serialize(Array.from(maps[valueIndex].entries()), options) + ")"; - } - - if (type === 'S') { - return "new Set(" + serialize(Array.from(sets[valueIndex].values()), options) + ")"; - } - - if (type === 'A') { - return "Array.prototype.slice.call(" + serialize(Object.assign({ length: arrays[valueIndex].length }, arrays[valueIndex]), options) + ")"; - } - - if (type === 'U') { - return 'undefined' - } - - if (type === 'I') { - return infinities[valueIndex]; - } - - if (type === 'B') { - return "BigInt(\"" + bigInts[valueIndex] + "\")"; - } - - if (type === 'L') { - return "new URL(" + serialize(urls[valueIndex].toString(), options) + ")"; - } - - var fn = functions[valueIndex]; - - return serializeFunc(fn); - }); -} diff --git a/build_vtk_bundle/node_modules/serialize-javascript/package.json b/build_vtk_bundle/node_modules/serialize-javascript/package.json deleted file mode 100644 index ee716721..00000000 --- a/build_vtk_bundle/node_modules/serialize-javascript/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "serialize-javascript", - "version": "6.0.2", - "description": "Serialize JavaScript to a superset of JSON that includes regular expressions and functions.", - "main": "index.js", - "scripts": { - "benchmark": "node -v && node test/benchmark/serialize.js", - "test": "nyc --reporter=lcov mocha test/unit" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/yahoo/serialize-javascript.git" - }, - "keywords": [ - "serialize", - "serialization", - "javascript", - "js", - "json" - ], - "author": "Eric Ferraiuolo ", - "license": "BSD-3-Clause", - "bugs": { - "url": "https://github.com/yahoo/serialize-javascript/issues" - }, - "homepage": "https://github.com/yahoo/serialize-javascript", - "devDependencies": { - "benchmark": "^2.1.4", - "chai": "^4.1.0", - "mocha": "^10.0.0", - "nyc": "^15.0.0" - }, - "dependencies": { - "randombytes": "^2.1.0" - } -} diff --git a/build_vtk_bundle/node_modules/shader-loader/.npmignore b/build_vtk_bundle/node_modules/shader-loader/.npmignore deleted file mode 100644 index aba914c7..00000000 --- a/build_vtk_bundle/node_modules/shader-loader/.npmignore +++ /dev/null @@ -1,12 +0,0 @@ -.DS_Store -node_modules/ -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# Editor directories and files -.idea -*.suo -*.ntvs* -*.njsproj -*.sln diff --git a/build_vtk_bundle/node_modules/shader-loader/README.md b/build_vtk_bundle/node_modules/shader-loader/README.md deleted file mode 100644 index 42bec987..00000000 --- a/build_vtk_bundle/node_modules/shader-loader/README.md +++ /dev/null @@ -1,47 +0,0 @@ -# Glsl loader for webpack - -Glsl loader for webpack2 & webpack3. It support chunks & inspire by [ShaderLoader](https://github.com/cabbibo/ShaderLoader) - -## Getting started - -Install: -``` shell -npm install shader-loader --save-dev -``` - -Config webpack: -``` javascript -module: { - rules: [ - { - test: /\.(glsl|vs|fs)$/, - loader: 'shader-loader', - options: { - glsl: { - chunkPath: resolve("/glsl/chunks") - } - } - } - ] -} -``` - -You can now require your glsl files: -``` javascript -var vertexShader = require("shader.vs"); -var fragmentShader = require("shader.fs"); -``` - -if you use $xxx in your shader its replace by the content of xxx.glsl, for example: - -``` glsl -void main(void) { - $snoise //replace by chunks/snoise.glsl -} -``` - -Learn more about loaders & webpack: -http://webpack.github.io/docs/loaders.html - -## License -MIT (http://www.opensource.org/licenses/mit-license.php) diff --git a/build_vtk_bundle/node_modules/shader-loader/index.js b/build_vtk_bundle/node_modules/shader-loader/index.js deleted file mode 100644 index 2d36f299..00000000 --- a/build_vtk_bundle/node_modules/shader-loader/index.js +++ /dev/null @@ -1,83 +0,0 @@ -var path = require('path') -var fs = require('fs') -var loaderUtils = require('loader-utils') - -var chunks = {} -var chunkPath = "" - -module.exports = function(source) { - this.cacheable && this.cacheable() - - var uid = new Object() - uid.callback = this.async() - uid.finalString = source - uid.queue = 0 - uid.done = false - - var options = loaderUtils.getOptions(this) || {} - - if(options.glsl && options.glsl.chunkPath){ - chunkPath = options.glsl.chunkPath - } - - var r = /\$[\w-.]+/gi - var match = source.match( r ) - - if(match){ - for (var i = 0; i < match.length; i++) { - chunks[match[i]] = "" - } - } else { - onChunksLoaded.call(uid) - } - - var keys = [] - for (var key in chunks){ - keys.push(key) - } - keys.sort() - keys.reverse() - uid.queue+=keys.length - - for(var i=0; i < keys.length; i++){ - loadChunk.call(this, keys[i], uid ) - - } -} - -function loadChunk(key, uid){ - var name = key.substr(1, key.length-1) - var headerPath = path.resolve(chunkPath+"/"+name+".glsl"); - this.dependency(headerPath) - fs.readFile(headerPath, "utf-8", function(err, content) { - uid.queue-- - chunks[key]=content - if(err) { - chunks[key]="" - console.error("Can't open the shader chunk "+name+":\n"+err.toString()) - } - if(uid.queue==0){ - onChunksLoaded.call(uid) - } - }) - -} - -function onChunksLoaded(){ - if(this.done){ return } - this.done = true - var keys = [] - for (var key in chunks){ - keys.push(key) - } - keys.sort() - keys.reverse() - for(var i=0; i < keys.length; i++){ - var key = keys[i] - var re = new RegExp("(\\"+key+")", "gi") - this.finalString = this.finalString.replace(re,chunks[key]) - } - - this.finalString = "module.exports = " + JSON.stringify(this.finalString) - this.callback(null, this.finalString) -} diff --git a/build_vtk_bundle/node_modules/shader-loader/package.json b/build_vtk_bundle/node_modules/shader-loader/package.json deleted file mode 100644 index a7c332e8..00000000 --- a/build_vtk_bundle/node_modules/shader-loader/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "shader-loader", - "version": "1.3.1", - "description": "glsl loader for webpack working with chunks (inspired by ShaderLoader from cabbibo)", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "repository": { - "type": "git", - "url": "https://github.com/Makio64/shader-loader" - }, - "keywords": [ - "glsl", - "webpack", - "loader", - "shader", - "chunks" - ], - "author": "David Ronai @Makio64", - "license": "MIT", - "bugs": { - "url": "https://github.com/Makio64/shader-loader/issues" - }, - "homepage": "https://github.com/Makio64/shader-loader", - "dependencies": { - "loader-utils": "^1.1.0" - } -} diff --git a/build_vtk_bundle/node_modules/shallow-clone/LICENSE b/build_vtk_bundle/node_modules/shallow-clone/LICENSE deleted file mode 100644 index 7cccaf9e..00000000 --- a/build_vtk_bundle/node_modules/shallow-clone/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015-present, Jon Schlinkert. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/shallow-clone/README.md b/build_vtk_bundle/node_modules/shallow-clone/README.md deleted file mode 100644 index ea7514ed..00000000 --- a/build_vtk_bundle/node_modules/shallow-clone/README.md +++ /dev/null @@ -1,153 +0,0 @@ -# shallow-clone [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W8YFZ425KND68) [![NPM version](https://img.shields.io/npm/v/shallow-clone.svg?style=flat)](https://www.npmjs.com/package/shallow-clone) [![NPM monthly downloads](https://img.shields.io/npm/dm/shallow-clone.svg?style=flat)](https://npmjs.org/package/shallow-clone) [![NPM total downloads](https://img.shields.io/npm/dt/shallow-clone.svg?style=flat)](https://npmjs.org/package/shallow-clone) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/shallow-clone.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/shallow-clone) - -> Creates a shallow clone of any JavaScript value. - -Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save shallow-clone -``` - -## Usage - -```js -const clone = require('shallow-clone'); -``` - -**Supports** - -* array buffers -* arrays -* buffers -* dates -* errors -* float32 arrays -* float64 arrays -* int16 arrays -* int32 arrays -* int8 arrays -* maps -* objects -* primitives -* regular expressions -* sets -* symbols -* uint16 arrays -* uint32 arrays -* uint8 arrays -* uint8clamped arrays - -## Arrays - -By default, only the array itself is cloned (shallow), use [clone-deep](https://github.com/jonschlinkert/clone-deep) if you also need the elements in the array to be cloned. - -```js -const arr = [{ a: 0 }, { b: 1 }]; -const foo = clone(arr); -// foo => [{ 'a': 0 }, { 'b': 1 }] - -// array is cloned -assert(actual === expected); // false - -// array elements are not -assert.deepEqual(actual[0], expected[0]); // true -``` - -## Objects - -Only the object is shallow cloned, use [clone-deep](https://github.com/jonschlinkert/clone-deep) if you also need the values in the object to be cloned. - -```js -console.log(clone({ a: 1, b: 2, c: 3 })); -//=> {a: 1, b: 2, c: 3 } -``` - -## RegExp - -Clones regular expressions and flags, and preserves the `.lastIndex`. - -```js -const regex = clone(/foo/g); //=> /foo/g -// you can manually reset lastIndex if necessary -regex.lastIndex = 0; -``` - -## Primitives - -Simply returns primitives unchanged. - -```js -clone(0); //=> 0 -clone('foo'); //=> 'foo' -``` - -## About - -
-Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -
- -
-Running Tests - -Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: - -```sh -$ npm install && npm test -``` - -
- -
-Building docs - -_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ - -To generate the readme, run the following command: - -```sh -$ npm install -g verbose/verb#dev verb-generate-readme && verb -``` - -
- -### Related projects - -You might also be interested in these projects: - -* [assign-deep](https://www.npmjs.com/package/assign-deep): Deeply assign the values of all enumerable-own-properties and symbols from one or more source objects… [more](https://github.com/jonschlinkert/assign-deep) | [homepage](https://github.com/jonschlinkert/assign-deep "Deeply assign the values of all enumerable-own-properties and symbols from one or more source objects to a target object. Returns the target object.") -* [clone-deep](https://www.npmjs.com/package/clone-deep): Recursively (deep) clone JavaScript native types, like Object, Array, RegExp, Date as well as primitives. | [homepage](https://github.com/jonschlinkert/clone-deep "Recursively (deep) clone JavaScript native types, like Object, Array, RegExp, Date as well as primitives.") -* [is-plain-object](https://www.npmjs.com/package/is-plain-object): Returns true if an object was created by the `Object` constructor. | [homepage](https://github.com/jonschlinkert/is-plain-object "Returns true if an object was created by the `Object` constructor.") -* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of "Get the native type of a value.") - -### Contributors - -| **Commits** | **Contributor** | -| --- | --- | -| 20 | [jonschlinkert](https://github.com/jonschlinkert) | -| 2 | [doowb](https://github.com/doowb) | -| 1 | [jakub-g](https://github.com/jakub-g) | - -### Author - -**Jon Schlinkert** - -* [GitHub Profile](https://github.com/jonschlinkert) -* [Twitter Profile](https://twitter.com/jonschlinkert) -* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) - -### License - -Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT License](LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on April 15, 2019._ \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/shallow-clone/index.js b/build_vtk_bundle/node_modules/shallow-clone/index.js deleted file mode 100644 index 012746ff..00000000 --- a/build_vtk_bundle/node_modules/shallow-clone/index.js +++ /dev/null @@ -1,83 +0,0 @@ -/*! - * shallow-clone - * - * Copyright (c) 2015-present, Jon Schlinkert. - * Released under the MIT License. - */ - -'use strict'; - -const valueOf = Symbol.prototype.valueOf; -const typeOf = require('kind-of'); - -function clone(val, deep) { - switch (typeOf(val)) { - case 'array': - return val.slice(); - case 'object': - return Object.assign({}, val); - case 'date': - return new val.constructor(Number(val)); - case 'map': - return new Map(val); - case 'set': - return new Set(val); - case 'buffer': - return cloneBuffer(val); - case 'symbol': - return cloneSymbol(val); - case 'arraybuffer': - return cloneArrayBuffer(val); - case 'float32array': - case 'float64array': - case 'int16array': - case 'int32array': - case 'int8array': - case 'uint16array': - case 'uint32array': - case 'uint8clampedarray': - case 'uint8array': - return cloneTypedArray(val); - case 'regexp': - return cloneRegExp(val); - case 'error': - return Object.create(val); - default: { - return val; - } - } -} - -function cloneRegExp(val) { - const flags = val.flags !== void 0 ? val.flags : (/\w+$/.exec(val) || void 0); - const re = new val.constructor(val.source, flags); - re.lastIndex = val.lastIndex; - return re; -} - -function cloneArrayBuffer(val) { - const res = new val.constructor(val.byteLength); - new Uint8Array(res).set(new Uint8Array(val)); - return res; -} - -function cloneTypedArray(val, deep) { - return new val.constructor(val.buffer, val.byteOffset, val.length); -} - -function cloneBuffer(val) { - const len = val.length; - const buf = Buffer.allocUnsafe ? Buffer.allocUnsafe(len) : Buffer.from(len); - val.copy(buf); - return buf; -} - -function cloneSymbol(val) { - return valueOf ? Object(valueOf.call(val)) : {}; -} - -/** - * Expose `clone` - */ - -module.exports = clone; diff --git a/build_vtk_bundle/node_modules/shallow-clone/package.json b/build_vtk_bundle/node_modules/shallow-clone/package.json deleted file mode 100644 index 91f281c2..00000000 --- a/build_vtk_bundle/node_modules/shallow-clone/package.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "name": "shallow-clone", - "description": "Creates a shallow clone of any JavaScript value.", - "version": "3.0.1", - "homepage": "https://github.com/jonschlinkert/shallow-clone", - "author": "Jon Schlinkert (https://github.com/jonschlinkert)", - "contributors": [ - "Brian Woodward (https://twitter.com/doowb)", - "Jon Schlinkert (http://twitter.com/jonschlinkert)" - ], - "repository": "jonschlinkert/shallow-clone", - "bugs": { - "url": "https://github.com/jonschlinkert/shallow-clone/issues" - }, - "license": "MIT", - "files": [ - "index.js" - ], - "main": "index.js", - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "mocha" - }, - "dependencies": { - "kind-of": "^6.0.2" - }, - "devDependencies": { - "gulp-format-md": "^2.0.0", - "mocha": "^6.1.3" - }, - "keywords": [ - "array", - "clone", - "copy", - "extend", - "mixin", - "object", - "primitive", - "shallow" - ], - "verb": { - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "lint": { - "reflinks": true - }, - "related": { - "list": [ - "assign-deep", - "clone-deep", - "is-plain-object", - "kind-of" - ] - } - } -} diff --git a/build_vtk_bundle/node_modules/shebang-command/index.js b/build_vtk_bundle/node_modules/shebang-command/index.js deleted file mode 100644 index f35db308..00000000 --- a/build_vtk_bundle/node_modules/shebang-command/index.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; -const shebangRegex = require('shebang-regex'); - -module.exports = (string = '') => { - const match = string.match(shebangRegex); - - if (!match) { - return null; - } - - const [path, argument] = match[0].replace(/#! ?/, '').split(' '); - const binary = path.split('/').pop(); - - if (binary === 'env') { - return argument; - } - - return argument ? `${binary} ${argument}` : binary; -}; diff --git a/build_vtk_bundle/node_modules/shebang-command/license b/build_vtk_bundle/node_modules/shebang-command/license deleted file mode 100644 index db6bc32c..00000000 --- a/build_vtk_bundle/node_modules/shebang-command/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Kevin Mårtensson (github.com/kevva) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/shebang-command/package.json b/build_vtk_bundle/node_modules/shebang-command/package.json deleted file mode 100644 index 18e3c046..00000000 --- a/build_vtk_bundle/node_modules/shebang-command/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "shebang-command", - "version": "2.0.0", - "description": "Get the command from a shebang", - "license": "MIT", - "repository": "kevva/shebang-command", - "author": { - "name": "Kevin Mårtensson", - "email": "kevinmartensson@gmail.com", - "url": "github.com/kevva" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "cmd", - "command", - "parse", - "shebang" - ], - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "devDependencies": { - "ava": "^2.3.0", - "xo": "^0.24.0" - } -} diff --git a/build_vtk_bundle/node_modules/shebang-command/readme.md b/build_vtk_bundle/node_modules/shebang-command/readme.md deleted file mode 100644 index 84feb442..00000000 --- a/build_vtk_bundle/node_modules/shebang-command/readme.md +++ /dev/null @@ -1,34 +0,0 @@ -# shebang-command [![Build Status](https://travis-ci.org/kevva/shebang-command.svg?branch=master)](https://travis-ci.org/kevva/shebang-command) - -> Get the command from a shebang - - -## Install - -``` -$ npm install shebang-command -``` - - -## Usage - -```js -const shebangCommand = require('shebang-command'); - -shebangCommand('#!/usr/bin/env node'); -//=> 'node' - -shebangCommand('#!/bin/bash'); -//=> 'bash' -``` - - -## API - -### shebangCommand(string) - -#### string - -Type: `string` - -String containing a shebang. diff --git a/build_vtk_bundle/node_modules/shebang-regex/index.d.ts b/build_vtk_bundle/node_modules/shebang-regex/index.d.ts deleted file mode 100644 index 61d034b3..00000000 --- a/build_vtk_bundle/node_modules/shebang-regex/index.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** -Regular expression for matching a [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) line. - -@example -``` -import shebangRegex = require('shebang-regex'); - -const string = '#!/usr/bin/env node\nconsole.log("unicorns");'; - -shebangRegex.test(string); -//=> true - -shebangRegex.exec(string)[0]; -//=> '#!/usr/bin/env node' - -shebangRegex.exec(string)[1]; -//=> '/usr/bin/env node' -``` -*/ -declare const shebangRegex: RegExp; - -export = shebangRegex; diff --git a/build_vtk_bundle/node_modules/shebang-regex/index.js b/build_vtk_bundle/node_modules/shebang-regex/index.js deleted file mode 100644 index 63fc4a0b..00000000 --- a/build_vtk_bundle/node_modules/shebang-regex/index.js +++ /dev/null @@ -1,2 +0,0 @@ -'use strict'; -module.exports = /^#!(.*)/; diff --git a/build_vtk_bundle/node_modules/shebang-regex/license b/build_vtk_bundle/node_modules/shebang-regex/license deleted file mode 100644 index e7af2f77..00000000 --- a/build_vtk_bundle/node_modules/shebang-regex/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/shebang-regex/package.json b/build_vtk_bundle/node_modules/shebang-regex/package.json deleted file mode 100644 index 00ab30fe..00000000 --- a/build_vtk_bundle/node_modules/shebang-regex/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "shebang-regex", - "version": "3.0.0", - "description": "Regular expression for matching a shebang line", - "license": "MIT", - "repository": "sindresorhus/shebang-regex", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "regex", - "regexp", - "shebang", - "match", - "test", - "line" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } -} diff --git a/build_vtk_bundle/node_modules/shebang-regex/readme.md b/build_vtk_bundle/node_modules/shebang-regex/readme.md deleted file mode 100644 index 5ecf863a..00000000 --- a/build_vtk_bundle/node_modules/shebang-regex/readme.md +++ /dev/null @@ -1,33 +0,0 @@ -# shebang-regex [![Build Status](https://travis-ci.org/sindresorhus/shebang-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/shebang-regex) - -> Regular expression for matching a [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) line - - -## Install - -``` -$ npm install shebang-regex -``` - - -## Usage - -```js -const shebangRegex = require('shebang-regex'); - -const string = '#!/usr/bin/env node\nconsole.log("unicorns");'; - -shebangRegex.test(string); -//=> true - -shebangRegex.exec(string)[0]; -//=> '#!/usr/bin/env node' - -shebangRegex.exec(string)[1]; -//=> '/usr/bin/env node' -``` - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/build_vtk_bundle/node_modules/shelljs/CHANGELOG.md b/build_vtk_bundle/node_modules/shelljs/CHANGELOG.md deleted file mode 100644 index 68c9ccfb..00000000 --- a/build_vtk_bundle/node_modules/shelljs/CHANGELOG.md +++ /dev/null @@ -1,942 +0,0 @@ -# Change Log - -## [Unreleased](https://github.com/shelljs/shelljs/tree/HEAD) - -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.8.2...HEAD) - -**Closed issues:** - -- Shelljs print stderr to console even if exec-only "silent" is true [\#905](https://github.com/shelljs/shelljs/issues/905) -- refactor: remove common.state.tempDir [\#902](https://github.com/shelljs/shelljs/issues/902) -- Can't suppress stdout for echo [\#899](https://github.com/shelljs/shelljs/issues/899) -- exec\(\) doesn't apply the arguments correctly [\#895](https://github.com/shelljs/shelljs/issues/895) -- Travis CI currently broken [\#893](https://github.com/shelljs/shelljs/issues/893) -- shell.exec\('npm pack'\) painfully slow [\#885](https://github.com/shelljs/shelljs/issues/885) -- shelljs.exec cannot find app.asar/node\_modules/shelljs/src/exec-child.js [\#881](https://github.com/shelljs/shelljs/issues/881) -- test infra: mocks and skipOnWin conflict [\#862](https://github.com/shelljs/shelljs/issues/862) -- Support for shell function completion on IDE [\#859](https://github.com/shelljs/shelljs/issues/859) -- echo command shows options in stdout [\#855](https://github.com/shelljs/shelljs/issues/855) -- silent does not always work [\#851](https://github.com/shelljs/shelljs/issues/851) -- Appveyor installs the latest npm, instead of the latest compatible npm [\#844](https://github.com/shelljs/shelljs/issues/844) -- Force symbolic link \(ln -sf\) does not overwrite/recreate existing destination [\#830](https://github.com/shelljs/shelljs/issues/830) -- inconsistent result when trying to echo to a file [\#798](https://github.com/shelljs/shelljs/issues/798) -- Prevent require\(\)ing executable-only files [\#789](https://github.com/shelljs/shelljs/issues/789) -- Cannot set property to of \[object String\] which has only a getter [\#752](https://github.com/shelljs/shelljs/issues/752) -- which\(\) should check executability before returning a value [\#657](https://github.com/shelljs/shelljs/issues/657) -- Bad encoding experience [\#456](https://github.com/shelljs/shelljs/issues/456) -- phpcs very slow [\#440](https://github.com/shelljs/shelljs/issues/440) -- Error shown when triggering a sigint during shelljs.exec if process.on sigint is defined [\#254](https://github.com/shelljs/shelljs/issues/254) -- `.to\(file\)` does not mute STDIO output [\#146](https://github.com/shelljs/shelljs/issues/146) -- Escaping shell arguments to exec\(\) [\#143](https://github.com/shelljs/shelljs/issues/143) -- Allow multiple string arguments for exec\(\) [\#103](https://github.com/shelljs/shelljs/issues/103) -- cp does not recursively copy from readonly location [\#98](https://github.com/shelljs/shelljs/issues/98) -- Handling permissions errors on file I/O [\#64](https://github.com/shelljs/shelljs/issues/64) - -**Merged pull requests:** - -- refactor: don't expose tempdir in common.state [\#903](https://github.com/shelljs/shelljs/pull/903) ([nfischer](https://github.com/nfischer)) -- chore\(ci\): fix codecov on travis [\#897](https://github.com/shelljs/shelljs/pull/897) ([nfischer](https://github.com/nfischer)) -- chore\(npm\): add ci-or-install script [\#896](https://github.com/shelljs/shelljs/pull/896) ([nfischer](https://github.com/nfischer)) -- Fix silent exec [\#892](https://github.com/shelljs/shelljs/pull/892) ([nfischer](https://github.com/nfischer)) -- chore\(appveyor\): run entire test matrix [\#886](https://github.com/shelljs/shelljs/pull/886) ([nfischer](https://github.com/nfischer)) -- docs: remove gitter badge [\#880](https://github.com/shelljs/shelljs/pull/880) ([nfischer](https://github.com/nfischer)) -- grep includes the i flag [\#876](https://github.com/shelljs/shelljs/pull/876) ([ppsleep](https://github.com/ppsleep)) -- Fix\(which\): match only executable files \(\#657\) [\#874](https://github.com/shelljs/shelljs/pull/874) ([termosa](https://github.com/termosa)) -- chore: rename some tests [\#871](https://github.com/shelljs/shelljs/pull/871) ([nfischer](https://github.com/nfischer)) -- Fix cp from readonly source [\#870](https://github.com/shelljs/shelljs/pull/870) ([nfischer](https://github.com/nfischer)) -- chore: bump dev dependencies and add package-lock [\#864](https://github.com/shelljs/shelljs/pull/864) ([nfischer](https://github.com/nfischer)) -- fix\(mocks\): fix conflict between mocks and skip [\#863](https://github.com/shelljs/shelljs/pull/863) ([nfischer](https://github.com/nfischer)) -- chore: output npm version in travis [\#850](https://github.com/shelljs/shelljs/pull/850) ([nfischer](https://github.com/nfischer)) -- Prevent require-ing bin/shjs [\#848](https://github.com/shelljs/shelljs/pull/848) ([freitagbr](https://github.com/freitagbr)) -- chore\(appveyor\): do not use latest npm [\#847](https://github.com/shelljs/shelljs/pull/847) ([nfischer](https://github.com/nfischer)) -- chore: update shelljs-release version [\#846](https://github.com/shelljs/shelljs/pull/846) ([nfischer](https://github.com/nfischer)) - -## [v0.8.2](https://github.com/shelljs/shelljs/tree/v0.8.2) (2018-05-08) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.8.1...v0.8.2) - -**Closed issues:** - -- High severity vulnerability in shelljs 0.8.1 [\#842](https://github.com/shelljs/shelljs/issues/842) -- Add test for ls\(\) on a symlink to a directory [\#795](https://github.com/shelljs/shelljs/issues/795) -- Harden shell.exec by writing the child process in a source file [\#782](https://github.com/shelljs/shelljs/issues/782) -- shell.exec\(\) doesn't respond correctly to config.fatal = true [\#735](https://github.com/shelljs/shelljs/issues/735) -- Merge 'exec: internal error' with ShellJSInternalError [\#734](https://github.com/shelljs/shelljs/issues/734) -- exec returning null from command [\#724](https://github.com/shelljs/shelljs/issues/724) -- Only Get Stderr from Exec [\#371](https://github.com/shelljs/shelljs/issues/371) -- Execute child.stdout.on before child.on\("exit"\) [\#224](https://github.com/shelljs/shelljs/issues/224) - -**Merged pull requests:** - -- Workaround codecov bug of miscalculation of coverage \(\#795\) [\#838](https://github.com/shelljs/shelljs/pull/838) ([dwi2](https://github.com/dwi2)) -- Update doc comments and regenerate README.md. [\#825](https://github.com/shelljs/shelljs/pull/825) ([Zearin](https://github.com/Zearin)) -- chore: update contributing guidelines [\#817](https://github.com/shelljs/shelljs/pull/817) ([nfischer](https://github.com/nfischer)) -- chore\(lint\): don't allow excess trailing newlines [\#816](https://github.com/shelljs/shelljs/pull/816) ([nfischer](https://github.com/nfischer)) -- Remove separate "internal error" from exec [\#802](https://github.com/shelljs/shelljs/pull/802) ([freitagbr](https://github.com/freitagbr)) - -## [v0.8.1](https://github.com/shelljs/shelljs/tree/v0.8.1) (2018-01-20) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.8.0...v0.8.1) - -**Closed issues:** - -- Exec failing with internal error when piping large output [\#818](https://github.com/shelljs/shelljs/issues/818) - -**Merged pull requests:** - -- Revert "refactor\(exec\): remove paramsFile \(\#807\)" [\#819](https://github.com/shelljs/shelljs/pull/819) ([nfischer](https://github.com/nfischer)) - -## [v0.8.0](https://github.com/shelljs/shelljs/tree/v0.8.0) (2018-01-12) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.7.8...v0.8.0) - -**Closed issues:** - -- Snyk vulnerability DB reporting command injection vulnerability in ShellJS [\#810](https://github.com/shelljs/shelljs/issues/810) -- chore: upgrade nyc [\#803](https://github.com/shelljs/shelljs/issues/803) -- Update CI to use Node v9 [\#799](https://github.com/shelljs/shelljs/issues/799) -- Link to FAQ wiki section in our issue template [\#787](https://github.com/shelljs/shelljs/issues/787) -- Is it possible to get a js library\(file\) for ShellJS [\#776](https://github.com/shelljs/shelljs/issues/776) -- 48, [\#774](https://github.com/shelljs/shelljs/issues/774) -- 47 [\#773](https://github.com/shelljs/shelljs/issues/773) -- Exec function calls JSON.stringify on command [\#772](https://github.com/shelljs/shelljs/issues/772) -- getting different result from terminal and with shelljs [\#769](https://github.com/shelljs/shelljs/issues/769) -- test\(\) does not support -w and -x options [\#768](https://github.com/shelljs/shelljs/issues/768) -- Snyk "high severity" issue [\#766](https://github.com/shelljs/shelljs/issues/766) -- Snyk "high security [\#765](https://github.com/shelljs/shelljs/issues/765) -- ShellJS doesn't respect NPM Registry being set outside of it [\#761](https://github.com/shelljs/shelljs/issues/761) -- Run second shell script [\#756](https://github.com/shelljs/shelljs/issues/756) -- shelljs seems NOT compatible with nexe under CentOS 6.5 [\#754](https://github.com/shelljs/shelljs/issues/754) -- Feature request: pushd/popd -q option [\#753](https://github.com/shelljs/shelljs/issues/753) -- cat doesn't support '-n' option [\#750](https://github.com/shelljs/shelljs/issues/750) -- shelljs run xcodebuild error [\#749](https://github.com/shelljs/shelljs/issues/749) -- Add wrappers around fs.statSync and fs.lstatSync [\#745](https://github.com/shelljs/shelljs/issues/745) -- Improve coverage for exec\(\) [\#742](https://github.com/shelljs/shelljs/issues/742) -- Improve coverage for head\(\) [\#741](https://github.com/shelljs/shelljs/issues/741) -- shelljs is no longer used in PDF.js [\#737](https://github.com/shelljs/shelljs/issues/737) -- ls doesn't follow links to directories [\#733](https://github.com/shelljs/shelljs/issues/733) -- Add test for `ls regular-file.txt` [\#732](https://github.com/shelljs/shelljs/issues/732) -- Clean up common tests [\#714](https://github.com/shelljs/shelljs/issues/714) -- Cant get encoding buffer to work on exec [\#675](https://github.com/shelljs/shelljs/issues/675) -- Set up Codecov for the project [\#671](https://github.com/shelljs/shelljs/issues/671) -- ShellJS: internal error Error: EBUSY: resource busy or locked, lstat 'C:\pagefile.sys' [\#514](https://github.com/shelljs/shelljs/issues/514) -- Feature request: provide a way to skip option parsing [\#778](https://github.com/shelljs/shelljs/issues/778) -- Switch to os.homedir\(\) when we move to v4+ [\#683](https://github.com/shelljs/shelljs/issues/683) -- Drop support for v0.12 [\#647](https://github.com/shelljs/shelljs/issues/647) -- feature: echo -n [\#559](https://github.com/shelljs/shelljs/issues/559) -- Don't kill the node process upon unexpected error [\#483](https://github.com/shelljs/shelljs/issues/483) -- Echo doesn't return value ending in a trailing newline [\#476](https://github.com/shelljs/shelljs/issues/476) -- Synchronous exec stalls permenantly when there is an error/w the shell [\#7](https://github.com/shelljs/shelljs/issues/7) - -**Merged pull requests:** - -- docs: announce plugin API [\#812](https://github.com/shelljs/shelljs/pull/812) ([nfischer](https://github.com/nfischer)) -- chore: update CI to Node v9 [\#811](https://github.com/shelljs/shelljs/pull/811) ([nfischer](https://github.com/nfischer)) -- refactor\(exec\): remove paramsFile [\#807](https://github.com/shelljs/shelljs/pull/807) ([nfischer](https://github.com/nfischer)) -- chore: update nyc dependency [\#805](https://github.com/shelljs/shelljs/pull/805) ([nfischer](https://github.com/nfischer)) -- refactor: harden plugins against unknown options [\#804](https://github.com/shelljs/shelljs/pull/804) ([nfischer](https://github.com/nfischer)) -- chore\(eslint\): use words instead of numbers [\#797](https://github.com/shelljs/shelljs/pull/797) ([nfischer](https://github.com/nfischer)) -- Add note to issue template about FAQ [\#794](https://github.com/shelljs/shelljs/pull/794) ([freitagbr](https://github.com/freitagbr)) -- Remove codeFile parameter [\#791](https://github.com/shelljs/shelljs/pull/791) ([nfischer](https://github.com/nfischer)) -- Use execFileSync to launch child process [\#790](https://github.com/shelljs/shelljs/pull/790) ([nfischer](https://github.com/nfischer)) -- refactor\(exec\): move child process to source file [\#786](https://github.com/shelljs/shelljs/pull/786) ([nfischer](https://github.com/nfischer)) -- Remove unnecessary shell.error checks from common tests [\#785](https://github.com/shelljs/shelljs/pull/785) ([freitagbr](https://github.com/freitagbr)) -- Add a test for ls for a single file [\#784](https://github.com/shelljs/shelljs/pull/784) ([freitagbr](https://github.com/freitagbr)) -- Wrap fs.statSync and fs.lstatSync [\#783](https://github.com/shelljs/shelljs/pull/783) ([freitagbr](https://github.com/freitagbr)) -- chore: set AVA options [\#780](https://github.com/shelljs/shelljs/pull/780) ([nfischer](https://github.com/nfischer)) -- chore: clean up refs to unsupported node versions [\#779](https://github.com/shelljs/shelljs/pull/779) ([nfischer](https://github.com/nfischer)) -- Added `-q` \(quiet\) option to `push`, `popd`, `dirs` functions. [\#777](https://github.com/shelljs/shelljs/pull/777) ([alexreg](https://github.com/alexreg)) -- feat\(cat\): number output lines \(\#750\) [\#775](https://github.com/shelljs/shelljs/pull/775) ([gcca](https://github.com/gcca)) -- refactor\(test\): update AVA and refactor tests [\#760](https://github.com/shelljs/shelljs/pull/760) ([nfischer](https://github.com/nfischer)) -- chore: add skipOnWin and skipOnUnix test helpers [\#746](https://github.com/shelljs/shelljs/pull/746) ([nfischer](https://github.com/nfischer)) -- test\(exec\): add tests for coverage [\#744](https://github.com/shelljs/shelljs/pull/744) ([nfischer](https://github.com/nfischer)) -- test\(head\): improve coverage [\#743](https://github.com/shelljs/shelljs/pull/743) ([nfischer](https://github.com/nfischer)) -- Remove PDF.js mention from README.md [\#738](https://github.com/shelljs/shelljs/pull/738) ([voy](https://github.com/voy)) -- Provide an API to pass parameters which resemble options [\#792](https://github.com/shelljs/shelljs/pull/792) ([nfischer](https://github.com/nfischer)) -- Fix ls not following links to directories by default [\#764](https://github.com/shelljs/shelljs/pull/764) ([freitagbr](https://github.com/freitagbr)) -- Add "encoding" option to exec [\#763](https://github.com/shelljs/shelljs/pull/763) ([freitagbr](https://github.com/freitagbr)) -- Merge dev into master [\#731](https://github.com/shelljs/shelljs/pull/731) ([freitagbr](https://github.com/freitagbr)) -- Deprecate common.getUserHome, advise using os.homedir instead [\#725](https://github.com/shelljs/shelljs/pull/725) ([freitagbr](https://github.com/freitagbr)) -- Echo test mocks [\#708](https://github.com/shelljs/shelljs/pull/708) ([freitagbr](https://github.com/freitagbr)) -- Safely exit by throwing an error [\#546](https://github.com/shelljs/shelljs/pull/546) ([freitagbr](https://github.com/freitagbr)) -- chore\(make\): depreciate shelljs/make [\#431](https://github.com/shelljs/shelljs/pull/431) ([ariporad](https://github.com/ariporad)) - -## [v0.7.8](https://github.com/shelljs/shelljs/tree/v0.7.8) (2017-06-07) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.7.7...v0.7.8) - -**Closed issues:** - -- Add node v8 to CI [\#729](https://github.com/shelljs/shelljs/issues/729) -- Exec not working in Electron ! [\#726](https://github.com/shelljs/shelljs/issues/726) -- is rechoir used anywhere? [\#723](https://github.com/shelljs/shelljs/issues/723) -- ShellJS: internal error on shelljs.mkdir\('myFile/myDir'\) [\#720](https://github.com/shelljs/shelljs/issues/720) -- Can't make sed perform global replace [\#719](https://github.com/shelljs/shelljs/issues/719) -- grep: option not recognized: l [\#717](https://github.com/shelljs/shelljs/issues/717) -- Problems getting code, stdout, stderr [\#715](https://github.com/shelljs/shelljs/issues/715) -- Copying hidden files fails on Windows 10 [\#711](https://github.com/shelljs/shelljs/issues/711) -- How am I suppose to handle errors with ShellJS? [\#707](https://github.com/shelljs/shelljs/issues/707) -- use cp\('-r', './src', './dist'\) bug [\#705](https://github.com/shelljs/shelljs/issues/705) -- Way to ignore files in globs. [\#699](https://github.com/shelljs/shelljs/issues/699) -- Buffer constructor is deprecated [\#694](https://github.com/shelljs/shelljs/issues/694) -- source command not working via exec method. [\#693](https://github.com/shelljs/shelljs/issues/693) -- Would you be interested in a PR for `open`? [\#692](https://github.com/shelljs/shelljs/issues/692) -- Get rid of common.platform in favor of process.platform [\#670](https://github.com/shelljs/shelljs/issues/670) -- Passing empty string to cp throws internal error [\#664](https://github.com/shelljs/shelljs/issues/664) -- Why does sed split files into an array, call replace on each line and rejoin? [\#645](https://github.com/shelljs/shelljs/issues/645) -- feat: cp & mv should not overwrite recently created files [\#631](https://github.com/shelljs/shelljs/issues/631) -- Echo tests unnecessarily run tests in own process [\#622](https://github.com/shelljs/shelljs/issues/622) -- rm -rf on a symbolic link to a dir deletes its contents [\#587](https://github.com/shelljs/shelljs/issues/587) -- "Cannot extract package" with node-webkit [\#181](https://github.com/shelljs/shelljs/issues/181) -- EBADF, bad file descriptor [\#180](https://github.com/shelljs/shelljs/issues/180) - -**Merged pull requests:** - -- Add node 8 to CI [\#730](https://github.com/shelljs/shelljs/pull/730) ([freitagbr](https://github.com/freitagbr)) -- fix\(mkdir\): improve error handling around files [\#721](https://github.com/shelljs/shelljs/pull/721) ([nfischer](https://github.com/nfischer)) -- Properly handle directories as arguments [\#713](https://github.com/shelljs/shelljs/pull/713) ([nfischer](https://github.com/nfischer)) -- Add common.buffer [\#710](https://github.com/shelljs/shelljs/pull/710) ([freitagbr](https://github.com/freitagbr)) -- Fix common.expand error [\#709](https://github.com/shelljs/shelljs/pull/709) ([freitagbr](https://github.com/freitagbr)) -- refactor: remove unnecessary common.js imports [\#703](https://github.com/shelljs/shelljs/pull/703) ([nfischer](https://github.com/nfischer)) -- Fix \#631 throw error when overwriting recently created file [\#702](https://github.com/shelljs/shelljs/pull/702) ([uttpal](https://github.com/uttpal)) -- Small clarification of verbose flag [\#691](https://github.com/shelljs/shelljs/pull/691) ([zommerfelds](https://github.com/zommerfelds)) -- fix\(grep, sed, sort, uniq\): Split only on newline characters [\#690](https://github.com/shelljs/shelljs/pull/690) ([freitagbr](https://github.com/freitagbr)) -- Refactor: Use process.platform across codebase [\#689](https://github.com/shelljs/shelljs/pull/689) ([freitagbr](https://github.com/freitagbr)) -- Remove contents of symlink to dir with rm -rf [\#688](https://github.com/shelljs/shelljs/pull/688) ([freitagbr](https://github.com/freitagbr)) -- Echo stdout [\#677](https://github.com/shelljs/shelljs/pull/677) ([nfischer](https://github.com/nfischer)) - -## [v0.7.7](https://github.com/shelljs/shelljs/tree/v0.7.7) (2017-03-09) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.7.6...v0.7.7) - -**Closed issues:** - -- Error output should be consistent across all platforms. [\#681](https://github.com/shelljs/shelljs/issues/681) -- \*CRITICAL data loss\* shell.cp\(\) Content of file is erased when trying to copy it to the folder it already belongs to [\#678](https://github.com/shelljs/shelljs/issues/678) -- Use with webpack broken in 0.7.6 [\#667](https://github.com/shelljs/shelljs/issues/667) -- Difference between bash ls -R and ShellJS ls -R with symlinks [\#666](https://github.com/shelljs/shelljs/issues/666) -- Refactor which\(\) \(too many repeated code blocks\) [\#656](https://github.com/shelljs/shelljs/issues/656) -- find\(\) raises error when unable to find any files matching, expected to return empty array. [\#653](https://github.com/shelljs/shelljs/issues/653) -- Reformat the markdown in RELEASE.md [\#642](https://github.com/shelljs/shelljs/issues/642) -- rm -rf doesn't work if the directory contains an asar archive in Electron [\#618](https://github.com/shelljs/shelljs/issues/618) -- Add support for other file types in rm [\#617](https://github.com/shelljs/shelljs/issues/617) -- Feature request: ls -L option [\#563](https://github.com/shelljs/shelljs/issues/563) -- How to send SIGINT signal to child process launched with exec [\#518](https://github.com/shelljs/shelljs/issues/518) -- feature request: option to add node\_modules to the path for shelljs scripts [\#469](https://github.com/shelljs/shelljs/issues/469) -- high cpu usage during synchronous exec [\#167](https://github.com/shelljs/shelljs/issues/167) - -**Merged pull requests:** - -- Add support for removing fifos [\#687](https://github.com/shelljs/shelljs/pull/687) ([freitagbr](https://github.com/freitagbr)) -- chore: add codecov script to appveyor CI [\#686](https://github.com/shelljs/shelljs/pull/686) ([nfischer](https://github.com/nfischer)) -- Refactor tests to improve readability [\#685](https://github.com/shelljs/shelljs/pull/685) ([nfischer](https://github.com/nfischer)) -- fix: convert error output to be consistent cross-platform [\#684](https://github.com/shelljs/shelljs/pull/684) ([nfischer](https://github.com/nfischer)) -- chore: add codecov [\#682](https://github.com/shelljs/shelljs/pull/682) ([nfischer](https://github.com/nfischer)) -- Fix cp overwriting identical files [\#679](https://github.com/shelljs/shelljs/pull/679) ([freitagbr](https://github.com/freitagbr)) -- Modified glob pattern. Fixes \#666 [\#676](https://github.com/shelljs/shelljs/pull/676) ([frandiox](https://github.com/frandiox)) -- refactor\(parseOptions\): better handle errors [\#674](https://github.com/shelljs/shelljs/pull/674) ([nfischer](https://github.com/nfischer)) -- test: add misc. tests to improve coverage [\#673](https://github.com/shelljs/shelljs/pull/673) ([nfischer](https://github.com/nfischer)) -- test: don't count hard-to-test lines for coverage [\#672](https://github.com/shelljs/shelljs/pull/672) ([nfischer](https://github.com/nfischer)) -- fix: switch commands.json -\> commands.js [\#668](https://github.com/shelljs/shelljs/pull/668) ([nfischer](https://github.com/nfischer)) -- ls -L \(follow symlinks\) [\#665](https://github.com/shelljs/shelljs/pull/665) ([frandiox](https://github.com/frandiox)) -- docs\(chmod\): document `options` argument [\#663](https://github.com/shelljs/shelljs/pull/663) ([gkalpak](https://github.com/gkalpak)) -- docs: clean up RELEASE.md [\#662](https://github.com/shelljs/shelljs/pull/662) ([nfischer](https://github.com/nfischer)) -- docs: miscellaneous README changes [\#661](https://github.com/shelljs/shelljs/pull/661) ([nfischer](https://github.com/nfischer)) -- Fix typo in README [\#660](https://github.com/shelljs/shelljs/pull/660) ([faheel](https://github.com/faheel)) -- refactor: reduce repeated code in which\(\) [\#659](https://github.com/shelljs/shelljs/pull/659) ([nfischer](https://github.com/nfischer)) -- feature: add -a option for which command [\#655](https://github.com/shelljs/shelljs/pull/655) ([termosa](https://github.com/termosa)) -- Fix find ENOENT [\#654](https://github.com/shelljs/shelljs/pull/654) ([freitagbr](https://github.com/freitagbr)) -- Safely exit by throwing an error [\#649](https://github.com/shelljs/shelljs/pull/649) ([freitagbr](https://github.com/freitagbr)) -- Chore drop 0.12 [\#648](https://github.com/shelljs/shelljs/pull/648) ([nfischer](https://github.com/nfischer)) -- chore\(lint\): Enforce a trailing comma for multi-line [\#646](https://github.com/shelljs/shelljs/pull/646) ([nfischer](https://github.com/nfischer)) -- docs\(release\): use bulleted list [\#643](https://github.com/shelljs/shelljs/pull/643) ([freitagbr](https://github.com/freitagbr)) - -## [v0.7.6](https://github.com/shelljs/shelljs/tree/v0.7.6) (2017-01-08) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.7.5...v0.7.6) - -**Closed issues:** - -- unable to execute ionic command with shell js [\#640](https://github.com/shelljs/shelljs/issues/640) -- How to increase ShellJS buffer size? [\#639](https://github.com/shelljs/shelljs/issues/639) -- mkdir fails with non-normalized path [\#634](https://github.com/shelljs/shelljs/issues/634) -- Move execPath into common [\#633](https://github.com/shelljs/shelljs/issues/633) -- QUESTION: Feedback while an operation is running? [\#629](https://github.com/shelljs/shelljs/issues/629) -- Test setup/cleanup is broken [\#621](https://github.com/shelljs/shelljs/issues/621) -- Ignore temp directories when running lint [\#620](https://github.com/shelljs/shelljs/issues/620) -- parseOptions should throw an error if the option string doesn't start with '-' [\#614](https://github.com/shelljs/shelljs/issues/614) -- chore: LGTM.co is gone [\#595](https://github.com/shelljs/shelljs/issues/595) -- refactor: objectAssign should refer to Object.assign if it exists, or the internal polyfill otherwise [\#592](https://github.com/shelljs/shelljs/issues/592) -- parseOptions: allow a way to keep errors silent \(exception only\) [\#591](https://github.com/shelljs/shelljs/issues/591) -- \[Question\] commands with multiple options / arguments? [\#589](https://github.com/shelljs/shelljs/issues/589) -- feature: GNU Parallel [\#585](https://github.com/shelljs/shelljs/issues/585) -- write to file [\#568](https://github.com/shelljs/shelljs/issues/568) -- Cannot figure out how to disable globbing for rm [\#567](https://github.com/shelljs/shelljs/issues/567) -- Switch to the ava test framework [\#560](https://github.com/shelljs/shelljs/issues/560) -- Option not recognized [\#556](https://github.com/shelljs/shelljs/issues/556) -- chore: add @freitagbr to LGTM maintainers [\#552](https://github.com/shelljs/shelljs/issues/552) -- chore: set up dev branch [\#548](https://github.com/shelljs/shelljs/issues/548) -- bug: cp\(\) doesn't always copy everything [\#547](https://github.com/shelljs/shelljs/issues/547) -- User-friendly lint command [\#544](https://github.com/shelljs/shelljs/issues/544) -- Lint warning [\#542](https://github.com/shelljs/shelljs/issues/542) -- chore: add nodejs v7 to CI [\#537](https://github.com/shelljs/shelljs/issues/537) -- error.code is not always available [\#536](https://github.com/shelljs/shelljs/issues/536) -- Add shx as a dependency for testing [\#525](https://github.com/shelljs/shelljs/issues/525) -- Feature request: allow `common.error\(\)` to optionally not insert a prefix and optionally not print to console [\#523](https://github.com/shelljs/shelljs/issues/523) -- Feature request: Add "shelljs.unlink" [\#519](https://github.com/shelljs/shelljs/issues/519) -- Sed should allow a replacement string to contain `\1` for match groups [\#507](https://github.com/shelljs/shelljs/issues/507) -- Usage with neodoc [\#445](https://github.com/shelljs/shelljs/issues/445) -- \[ Feature idea \] synchronous sleep command [\#441](https://github.com/shelljs/shelljs/issues/441) -- Improve test coverage [\#347](https://github.com/shelljs/shelljs/issues/347) -- Add a way to prevent shell-expansion on commands \(this issue is not for exec\) [\#345](https://github.com/shelljs/shelljs/issues/345) -- Chown [\#183](https://github.com/shelljs/shelljs/issues/183) -- spawn EMFILE [\#81](https://github.com/shelljs/shelljs/issues/81) -- Rewrite exec using execsync-ng \(which uses node-ffi\) [\#66](https://github.com/shelljs/shelljs/issues/66) -- `exec` gets stuck on my Debian box [\#51](https://github.com/shelljs/shelljs/issues/51) -- 100% cpu usage when a nodejs script goes side ways executing a command. [\#5](https://github.com/shelljs/shelljs/issues/5) - -**Merged pull requests:** - -- refactor: add config.reset\(\) and .resetForTesting\(\) [\#641](https://github.com/shelljs/shelljs/pull/641) ([nfischer](https://github.com/nfischer)) -- chore: set up test coverage [\#638](https://github.com/shelljs/shelljs/pull/638) ([nfischer](https://github.com/nfischer)) -- refactor: create common.execPath [\#636](https://github.com/shelljs/shelljs/pull/636) ([nfischer](https://github.com/nfischer)) -- fix: allow non-normalized paths as input to mkdir [\#635](https://github.com/shelljs/shelljs/pull/635) ([nfischer](https://github.com/nfischer)) -- Finalize moving to ava [\#630](https://github.com/shelljs/shelljs/pull/630) ([freitagbr](https://github.com/freitagbr)) -- test: refactor pushd tests to AVA [\#627](https://github.com/shelljs/shelljs/pull/627) ([nfischer](https://github.com/nfischer)) -- test: refactor popd tests to AVA [\#626](https://github.com/shelljs/shelljs/pull/626) ([nfischer](https://github.com/nfischer)) -- test: refactor shjs tests to AVA [\#625](https://github.com/shelljs/shelljs/pull/625) ([nfischer](https://github.com/nfischer)) -- test: remove tests for make \(deprecated\) [\#624](https://github.com/shelljs/shelljs/pull/624) ([nfischer](https://github.com/nfischer)) -- Ignore test temp directories during linting [\#623](https://github.com/shelljs/shelljs/pull/623) ([freitagbr](https://github.com/freitagbr)) -- refactor: list all commands in commands.json [\#616](https://github.com/shelljs/shelljs/pull/616) ([nfischer](https://github.com/nfischer)) -- Throw an error if the options string does not start with '-' [\#615](https://github.com/shelljs/shelljs/pull/615) ([freitagbr](https://github.com/freitagbr)) -- chore: switch to files attribute from npmignore [\#613](https://github.com/shelljs/shelljs/pull/613) ([nfischer](https://github.com/nfischer)) -- test: refactor 'test' command tests to AVA [\#612](https://github.com/shelljs/shelljs/pull/612) ([nfischer](https://github.com/nfischer)) -- test: refactor find tests to AVA [\#611](https://github.com/shelljs/shelljs/pull/611) ([nfischer](https://github.com/nfischer)) -- test: refactor ln tests to AVA [\#610](https://github.com/shelljs/shelljs/pull/610) ([nfischer](https://github.com/nfischer)) -- test: refactor ls to use AVA [\#609](https://github.com/shelljs/shelljs/pull/609) ([nfischer](https://github.com/nfischer)) -- test: refactor pipe tests to AVA [\#608](https://github.com/shelljs/shelljs/pull/608) ([nfischer](https://github.com/nfischer)) -- test: refactor sed tests to AVA [\#607](https://github.com/shelljs/shelljs/pull/607) ([nfischer](https://github.com/nfischer)) -- test: refactor grep tests to AVA [\#606](https://github.com/shelljs/shelljs/pull/606) ([nfischer](https://github.com/nfischer)) -- test: refactor global tests to AVA [\#605](https://github.com/shelljs/shelljs/pull/605) ([nfischer](https://github.com/nfischer)) -- test: refactor touch tests to AVA [\#604](https://github.com/shelljs/shelljs/pull/604) ([nfischer](https://github.com/nfischer)) -- test: refactor uniq tests to AVA [\#603](https://github.com/shelljs/shelljs/pull/603) ([nfischer](https://github.com/nfischer)) -- test: refactor sort tests to AVA [\#602](https://github.com/shelljs/shelljs/pull/602) ([nfischer](https://github.com/nfischer)) -- test: refactor tail tests to AVA [\#601](https://github.com/shelljs/shelljs/pull/601) ([nfischer](https://github.com/nfischer)) -- test: refactor head tests to AVA [\#600](https://github.com/shelljs/shelljs/pull/600) ([nfischer](https://github.com/nfischer)) -- test: refactor mkdir tests to AVA [\#599](https://github.com/shelljs/shelljs/pull/599) ([nfischer](https://github.com/nfischer)) -- Fix: rm behavior regarding symlinks [\#598](https://github.com/shelljs/shelljs/pull/598) ([freitagbr](https://github.com/freitagbr)) -- test: refactor mv tests to AVA [\#597](https://github.com/shelljs/shelljs/pull/597) ([nfischer](https://github.com/nfischer)) -- Remove files related to lgtm.co [\#596](https://github.com/shelljs/shelljs/pull/596) ([freitagbr](https://github.com/freitagbr)) -- Add ability to configure error from parseOptions [\#594](https://github.com/shelljs/shelljs/pull/594) ([freitagbr](https://github.com/freitagbr)) -- Use Object.assign if possible [\#593](https://github.com/shelljs/shelljs/pull/593) ([freitagbr](https://github.com/freitagbr)) -- Add "-n" option to echo [\#590](https://github.com/shelljs/shelljs/pull/590) ([freitagbr](https://github.com/freitagbr)) -- test: refactor rm tests to AVA [\#586](https://github.com/shelljs/shelljs/pull/586) ([nfischer](https://github.com/nfischer)) -- test: refactor pwd tests to AVA [\#582](https://github.com/shelljs/shelljs/pull/582) ([nfischer](https://github.com/nfischer)) -- test: refactor tempdir tests to AVA [\#581](https://github.com/shelljs/shelljs/pull/581) ([nfischer](https://github.com/nfischer)) -- test: refactor 'which' tests to AVA [\#580](https://github.com/shelljs/shelljs/pull/580) ([nfischer](https://github.com/nfischer)) -- test: refactor plugin tests to AVA [\#579](https://github.com/shelljs/shelljs/pull/579) ([nfischer](https://github.com/nfischer)) -- test: refactor toEnd tests to AVA [\#578](https://github.com/shelljs/shelljs/pull/578) ([nfischer](https://github.com/nfischer)) -- test: refactor to tests to AVA [\#577](https://github.com/shelljs/shelljs/pull/577) ([nfischer](https://github.com/nfischer)) -- test: refactor 'set' tests to AVA [\#576](https://github.com/shelljs/shelljs/pull/576) ([nfischer](https://github.com/nfischer)) -- test: refactor echo tests to AVA [\#575](https://github.com/shelljs/shelljs/pull/575) ([nfischer](https://github.com/nfischer)) -- test: refactor exec tests to AVA [\#574](https://github.com/shelljs/shelljs/pull/574) ([nfischer](https://github.com/nfischer)) -- test: refactor env tests to AVA [\#573](https://github.com/shelljs/shelljs/pull/573) ([nfischer](https://github.com/nfischer)) -- test: refactor dirs tests to AVA [\#572](https://github.com/shelljs/shelljs/pull/572) ([nfischer](https://github.com/nfischer)) -- test: refactor config tests to AVA [\#571](https://github.com/shelljs/shelljs/pull/571) ([nfischer](https://github.com/nfischer)) -- test: refactor common tests to AVA [\#570](https://github.com/shelljs/shelljs/pull/570) ([nfischer](https://github.com/nfischer)) -- test: refactor chmod tests to AVA [\#569](https://github.com/shelljs/shelljs/pull/569) ([nfischer](https://github.com/nfischer)) -- test: refactor cp tests to ava [\#565](https://github.com/shelljs/shelljs/pull/565) ([nfischer](https://github.com/nfischer)) -- test: refactor cat tests to ava [\#564](https://github.com/shelljs/shelljs/pull/564) ([nfischer](https://github.com/nfischer)) -- test: set up ava and move cd.js [\#561](https://github.com/shelljs/shelljs/pull/561) ([nfischer](https://github.com/nfischer)) -- Update sed documentation regarding capture groups [\#558](https://github.com/shelljs/shelljs/pull/558) ([freitagbr](https://github.com/freitagbr)) -- Add newline to output of echo [\#557](https://github.com/shelljs/shelljs/pull/557) ([freitagbr](https://github.com/freitagbr)) -- fix: handle code-less errors more carefully in exec [\#554](https://github.com/shelljs/shelljs/pull/554) ([nfischer](https://github.com/nfischer)) -- Add Brandon Freitag to maintainers/contributors [\#553](https://github.com/shelljs/shelljs/pull/553) ([freitagbr](https://github.com/freitagbr)) -- Get pipe tests running on Windows. [\#550](https://github.com/shelljs/shelljs/pull/550) ([binki](https://github.com/binki)) -- fix: maxdepth doesn't limit total number of copies [\#549](https://github.com/shelljs/shelljs/pull/549) ([nfischer](https://github.com/nfischer)) -- Fix lint warning [\#543](https://github.com/shelljs/shelljs/pull/543) ([freitagbr](https://github.com/freitagbr)) -- chore: remove v0.10 from Travis CI [\#540](https://github.com/shelljs/shelljs/pull/540) ([nfischer](https://github.com/nfischer)) -- chore: add Node v7 for CI [\#539](https://github.com/shelljs/shelljs/pull/539) ([nfischer](https://github.com/nfischer)) - -## [v0.7.5](https://github.com/shelljs/shelljs/tree/v0.7.5) (2016-10-27) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.7.4...v0.7.5) - -**Closed issues:** - -- Project objectives: there is some higher goal to achieve? [\#533](https://github.com/shelljs/shelljs/issues/533) -- fs.existsSync is un-deprecated [\#531](https://github.com/shelljs/shelljs/issues/531) -- Inadvertent breaking change to shell.test\(\) [\#529](https://github.com/shelljs/shelljs/issues/529) -- Add -u flag support for cp [\#526](https://github.com/shelljs/shelljs/issues/526) -- API request: allow `plugin.error\(\)` to take an options parameter [\#522](https://github.com/shelljs/shelljs/issues/522) -- FS Real Path error thrown when requiring shelljs [\#521](https://github.com/shelljs/shelljs/issues/521) -- Question: passing code via pipe? [\#520](https://github.com/shelljs/shelljs/issues/520) -- The performance in `cp` is different between `0.6.0` and `0.7.4` [\#517](https://github.com/shelljs/shelljs/issues/517) -- ShellJS in Electron package don't find ffmpeg anymore [\#516](https://github.com/shelljs/shelljs/issues/516) -- Exec issues with string option introduced in 0.7.4 [\#515](https://github.com/shelljs/shelljs/issues/515) -- \[ Feature \] SSH command [\#435](https://github.com/shelljs/shelljs/issues/435) - -**Merged pull requests:** - -- feat: plugin.error\(\) takes an options parameter [\#535](https://github.com/shelljs/shelljs/pull/535) ([nfischer](https://github.com/nfischer)) -- Revert "refactor: replace fs.existsSync" fixes\(\#531\) [\#532](https://github.com/shelljs/shelljs/pull/532) ([gyandeeps](https://github.com/gyandeeps)) -- Fix: Remove default glob from shell.test \(fixes \#529\) [\#530](https://github.com/shelljs/shelljs/pull/530) ([gyandeeps](https://github.com/gyandeeps)) -- feat: cp -u option [\#527](https://github.com/shelljs/shelljs/pull/527) ([nfischer](https://github.com/nfischer)) -- chore: add downloads per month on README [\#513](https://github.com/shelljs/shelljs/pull/513) ([nfischer](https://github.com/nfischer)) - -## [v0.7.4](https://github.com/shelljs/shelljs/tree/v0.7.4) (2016-08-26) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.7.3...v0.7.4) - -**Closed issues:** - -- fix: echo -e should not print "-e" [\#510](https://github.com/shelljs/shelljs/issues/510) -- Wrong method signature in doc [\#498](https://github.com/shelljs/shelljs/issues/498) -- readFromPipe should be a function with no arguments [\#485](https://github.com/shelljs/shelljs/issues/485) -- TypeError: Cannot read property 'toString' of undefined [\#471](https://github.com/shelljs/shelljs/issues/471) - -**Merged pull requests:** - -- fix: echo supports -e option properly [\#511](https://github.com/shelljs/shelljs/pull/511) ([nfischer](https://github.com/nfischer)) -- refactor: replace fs.existsSync [\#509](https://github.com/shelljs/shelljs/pull/509) ([nfischer](https://github.com/nfischer)) -- refactor: readFromPipe\(\) requires no arguments [\#506](https://github.com/shelljs/shelljs/pull/506) ([nfischer](https://github.com/nfischer)) -- chore: switch to eslint [\#504](https://github.com/shelljs/shelljs/pull/504) ([nfischer](https://github.com/nfischer)) -- feat: add overWrite option for commands [\#503](https://github.com/shelljs/shelljs/pull/503) ([nfischer](https://github.com/nfischer)) -- chore: update issue template [\#502](https://github.com/shelljs/shelljs/pull/502) ([nfischer](https://github.com/nfischer)) -- fixed head/tail readme [\#499](https://github.com/shelljs/shelljs/pull/499) ([charlesread](https://github.com/charlesread)) - -## [v0.7.3](https://github.com/shelljs/shelljs/tree/v0.7.3) (2016-07-27) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.7.2...v0.7.3) - -**Closed issues:** - -- expose execSync [\#494](https://github.com/shelljs/shelljs/issues/494) -- Add a way to create commands that can receive from a pipe without being standalone commands [\#487](https://github.com/shelljs/shelljs/issues/487) -- cp -r breaks when the directory contains a softlink [\#193](https://github.com/shelljs/shelljs/issues/193) -- Redirect output to file fails [\#60](https://github.com/shelljs/shelljs/issues/60) -- We need sed -n ? [\#38](https://github.com/shelljs/shelljs/issues/38) - -**Merged pull requests:** - -- refactor: allow pipeOnly commands \(methods on ShellStrings\) [\#493](https://github.com/shelljs/shelljs/pull/493) ([nfischer](https://github.com/nfischer)) -- refactor: glob by default for commands [\#492](https://github.com/shelljs/shelljs/pull/492) ([nfischer](https://github.com/nfischer)) -- refactor: switch from notUnix to unix in wrap\(\) [\#491](https://github.com/shelljs/shelljs/pull/491) ([nfischer](https://github.com/nfischer)) -- refactor: switch common.extend\(\) to Object.assign ponyfill [\#490](https://github.com/shelljs/shelljs/pull/490) ([nfischer](https://github.com/nfischer)) -- fix: conflicting options now properly override each other [\#489](https://github.com/shelljs/shelljs/pull/489) ([nfischer](https://github.com/nfischer)) -- refactor: expose plugin utils & add initial tests [\#484](https://github.com/shelljs/shelljs/pull/484) ([nfischer](https://github.com/nfischer)) - -## [v0.7.2](https://github.com/shelljs/shelljs/tree/v0.7.2) (2016-07-25) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.7.1...v0.7.2) - -**Closed issues:** - -- shelljs should not kill process if node call throws exception [\#473](https://github.com/shelljs/shelljs/issues/473) -- `cp` work incorrectly when folder name contains '@' [\#463](https://github.com/shelljs/shelljs/issues/463) -- Something went wrong [\#158](https://github.com/shelljs/shelljs/issues/158) - -**Merged pull requests:** - -- fix: resolve a cylcic-dependency problem [\#482](https://github.com/shelljs/shelljs/pull/482) ([nfischer](https://github.com/nfischer)) -- refactor: add wrapOutput option to auto-ShellString-ify command output [\#481](https://github.com/shelljs/shelljs/pull/481) ([nfischer](https://github.com/nfischer)) -- refactor: move option parsing into common.wrap\(\) [\#479](https://github.com/shelljs/shelljs/pull/479) ([nfischer](https://github.com/nfischer)) -- refactor: hook new uniq\(\) command using new format [\#478](https://github.com/shelljs/shelljs/pull/478) ([nfischer](https://github.com/nfischer)) -- Fix mkdir malformed path [\#477](https://github.com/shelljs/shelljs/pull/477) ([nfischer](https://github.com/nfischer)) -- fix: mkdir for invalid perms does not kill process [\#474](https://github.com/shelljs/shelljs/pull/474) ([nfischer](https://github.com/nfischer)) -- feat\(command\): new command: uniq\(\) [\#453](https://github.com/shelljs/shelljs/pull/453) ([joshi-sh](https://github.com/joshi-sh)) - -## [v0.7.1](https://github.com/shelljs/shelljs/tree/v0.7.1) (2016-07-22) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.7.0...v0.7.1) - -**Closed issues:** - -- cp -n doesn't work correctly [\#465](https://github.com/shelljs/shelljs/issues/465) -- how can i run sudo apt-get install xtodotool by your plugin? [\#448](https://github.com/shelljs/shelljs/issues/448) -- shell.js grep: internal error, Invalid regular expression [\#447](https://github.com/shelljs/shelljs/issues/447) -- Stdout is empty on Git log command [\#439](https://github.com/shelljs/shelljs/issues/439) -- Cannot read toString of null when using execSync [\#415](https://github.com/shelljs/shelljs/issues/415) -- cp -R dir/ target fails to copy hidden files in dir [\#140](https://github.com/shelljs/shelljs/issues/140) -- \#mv Won't Work Across Disks [\#1](https://github.com/shelljs/shelljs/issues/1) - -**Merged pull requests:** - -- refactor: commands now register themselves [\#475](https://github.com/shelljs/shelljs/pull/475) ([nfischer](https://github.com/nfischer)) -- chore: switch to shields.io, and add npm badge [\#470](https://github.com/shelljs/shelljs/pull/470) ([nfischer](https://github.com/nfischer)) -- fix\(cp\): -n option no longer raises error [\#466](https://github.com/shelljs/shelljs/pull/466) ([nfischer](https://github.com/nfischer)) -- refactor: expose pipe-ability to command configuration [\#464](https://github.com/shelljs/shelljs/pull/464) ([nfischer](https://github.com/nfischer)) -- fix\(mv\): works across partitions [\#461](https://github.com/shelljs/shelljs/pull/461) ([nfischer](https://github.com/nfischer)) -- chore: switch to shelljs-changelog [\#460](https://github.com/shelljs/shelljs/pull/460) ([nfischer](https://github.com/nfischer)) -- chore: update release process [\#459](https://github.com/shelljs/shelljs/pull/459) ([nfischer](https://github.com/nfischer)) -- chore: revert depreciate shelljs/make \(\#431\) [\#458](https://github.com/shelljs/shelljs/pull/458) ([zephraph](https://github.com/zephraph)) -- chore: clarify message for when docs are not generated [\#457](https://github.com/shelljs/shelljs/pull/457) ([nfischer](https://github.com/nfischer)) -- chore\(gendocs\): add `npm run gendocs` command [\#455](https://github.com/shelljs/shelljs/pull/455) ([nfischer](https://github.com/nfischer)) -- chore: update jshint and move it to an npm script [\#454](https://github.com/shelljs/shelljs/pull/454) ([nfischer](https://github.com/nfischer)) -- test\(ls\): add case for trailing slash on dir name [\#450](https://github.com/shelljs/shelljs/pull/450) ([nfischer](https://github.com/nfischer)) -- docs\(exec\): explicitly mention the `shell` option [\#449](https://github.com/shelljs/shelljs/pull/449) ([nfischer](https://github.com/nfischer)) -- chore: setup changelog [\#443](https://github.com/shelljs/shelljs/pull/443) ([levithomason](https://github.com/levithomason)) -- docs: comment code better to help contributors [\#437](https://github.com/shelljs/shelljs/pull/437) ([nfischer](https://github.com/nfischer)) -- chore\(CI\): update appveyor [\#436](https://github.com/shelljs/shelljs/pull/436) ([nfischer](https://github.com/nfischer)) -- chore: test against node v6 [\#433](https://github.com/shelljs/shelljs/pull/433) ([nfischer](https://github.com/nfischer)) -- docs: warn that README contains newest features [\#410](https://github.com/shelljs/shelljs/pull/410) ([nfischer](https://github.com/nfischer)) - -## [v0.7.0](https://github.com/shelljs/shelljs/tree/v0.7.0) (2016-04-25) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.6.0...v0.7.0) - -**Closed issues:** - -- exec\('nohup node some.js &'\) [\#426](https://github.com/shelljs/shelljs/issues/426) -- shelljs Breaks SemVer for Alpha and Pre-Release Versions [\#390](https://github.com/shelljs/shelljs/issues/390) -- Copy not accepting source end with wildcards \* when using -r on v0.6.0 [\#389](https://github.com/shelljs/shelljs/issues/389) -- Support globbing in `shjs` [\#388](https://github.com/shelljs/shelljs/issues/388) -- Refactor more commands to return ShellString [\#373](https://github.com/shelljs/shelljs/issues/373) -- ln\('-sf', './', '\'\) is not linking the right folder [\#363](https://github.com/shelljs/shelljs/issues/363) -- v0.6.0 - shell.cp\('r', '/foo/\*, '/bar'\) fails with /foo/\* no such file or directory [\#342](https://github.com/shelljs/shelljs/issues/342) -- Add documentup as a webhook [\#327](https://github.com/shelljs/shelljs/issues/327) -- Dir glob breaks when in the middle of path [\#245](https://github.com/shelljs/shelljs/issues/245) -- could you switch off wiki page? [\#233](https://github.com/shelljs/shelljs/issues/233) -- ls globbing does not behave like shell, consider using glob.sync [\#225](https://github.com/shelljs/shelljs/issues/225) -- Cannot run shell.exec\('heroku config:push'\) -- just hangs [\#218](https://github.com/shelljs/shelljs/issues/218) -- `cp` does not overwrite files by default [\#210](https://github.com/shelljs/shelljs/issues/210) -- exec failed to return [\#208](https://github.com/shelljs/shelljs/issues/208) -- CLI Version [\#202](https://github.com/shelljs/shelljs/issues/202) -- Bracket expansion not working [\#176](https://github.com/shelljs/shelljs/issues/176) -- "exec" causes LiveScript interpreter \(lsc\) to hang [\#160](https://github.com/shelljs/shelljs/issues/160) -- Don't modify string prototype [\#159](https://github.com/shelljs/shelljs/issues/159) -- `exec\(...\).to\(file\)` should work [\#154](https://github.com/shelljs/shelljs/issues/154) -- Can't install shelljs locally instead of globally [\#136](https://github.com/shelljs/shelljs/issues/136) -- shelljs and node 0.10.28 [\#125](https://github.com/shelljs/shelljs/issues/125) -- Use case for global installed shelljs [\#123](https://github.com/shelljs/shelljs/issues/123) -- Only get stdout from `exec` [\#92](https://github.com/shelljs/shelljs/issues/92) -- What about other commands? [\#90](https://github.com/shelljs/shelljs/issues/90) -- Flesh out example of exit\(\) [\#73](https://github.com/shelljs/shelljs/issues/73) -- exec doesn't work with qualified paths on windows [\#41](https://github.com/shelljs/shelljs/issues/41) -- exec does not working in mingw bash in windows [\#17](https://github.com/shelljs/shelljs/issues/17) -- Add support for cp -P option [\#413](https://github.com/shelljs/shelljs/issues/413) -- cp -L: Incorrect behavior for symlinks to regular files [\#407](https://github.com/shelljs/shelljs/issues/407) -- Edit the docs to emphasize ShellStrings and Pipes [\#398](https://github.com/shelljs/shelljs/issues/398) -- Error message isn't always printed [\#372](https://github.com/shelljs/shelljs/issues/372) -- Standardize command output [\#356](https://github.com/shelljs/shelljs/issues/356) -- exec\(\) doesn't clean up all temp files [\#353](https://github.com/shelljs/shelljs/issues/353) -- Document that exec\(\) options don't work on early versions of node [\#350](https://github.com/shelljs/shelljs/issues/350) -- Add -f option to set\(\) [\#344](https://github.com/shelljs/shelljs/issues/344) -- Glob commands by default [\#343](https://github.com/shelljs/shelljs/issues/343) -- rm -rf incorrect behaviour [\#332](https://github.com/shelljs/shelljs/issues/332) -- Switch `exec\(\)` to use bash by default [\#281](https://github.com/shelljs/shelljs/issues/281) -- pipe to proc [\#148](https://github.com/shelljs/shelljs/issues/148) -- shell builtin [\#138](https://github.com/shelljs/shelljs/issues/138) -- add timeout option for exec [\#132](https://github.com/shelljs/shelljs/issues/132) -- shelljs cp handling symlinks badly [\#69](https://github.com/shelljs/shelljs/issues/69) - -**Merged pull requests:** - -- chore: add "Team" section to README [\#423](https://github.com/shelljs/shelljs/pull/423) ([nfischer](https://github.com/nfischer)) -- Contributing guidelines [\#422](https://github.com/shelljs/shelljs/pull/422) ([nfischer](https://github.com/nfischer)) -- feat\(glob\): expose config.globOptions. [\#400](https://github.com/shelljs/shelljs/pull/400) ([nfischer](https://github.com/nfischer)) -- Add shelljs as a keyword in package.json [\#393](https://github.com/shelljs/shelljs/pull/393) ([nfischer](https://github.com/nfischer)) -- docs: add link to wiki page [\#392](https://github.com/shelljs/shelljs/pull/392) ([nfischer](https://github.com/nfischer)) -- refactor\(cd\): use process.env.OLDPWD to store previous dir [\#383](https://github.com/shelljs/shelljs/pull/383) ([nfischer](https://github.com/nfischer)) -- chore\(appveyor\): add in node 4 for appveyor [\#381](https://github.com/shelljs/shelljs/pull/381) ([nfischer](https://github.com/nfischer)) -- Add Cash cross-reference [\#375](https://github.com/shelljs/shelljs/pull/375) ([dthree](https://github.com/dthree)) -- Ignore gitattributes from npm package [\#361](https://github.com/shelljs/shelljs/pull/361) ([nfischer](https://github.com/nfischer)) -- Consistently use LF line endings [\#355](https://github.com/shelljs/shelljs/pull/355) ([TimothyGu](https://github.com/TimothyGu)) -- Release v0.7.0 [\#429](https://github.com/shelljs/shelljs/pull/429) ([nfischer](https://github.com/nfischer)) -- fix: null is no longer confused for an object [\#428](https://github.com/shelljs/shelljs/pull/428) ([nfischer](https://github.com/nfischer)) -- fix\(ls\): no trailing newline for empty directories [\#425](https://github.com/shelljs/shelljs/pull/425) ([nfischer](https://github.com/nfischer)) -- feat\(cp\): -P option, plus better handling of symlinks [\#421](https://github.com/shelljs/shelljs/pull/421) ([nfischer](https://github.com/nfischer)) -- docs\(exec\): fix docs about exec return type [\#419](https://github.com/shelljs/shelljs/pull/419) ([nfischer](https://github.com/nfischer)) -- docs\(error\): deprecate relying on string value [\#418](https://github.com/shelljs/shelljs/pull/418) ([nfischer](https://github.com/nfischer)) -- fix: error message now printed for fatal failures [\#417](https://github.com/shelljs/shelljs/pull/417) ([nfischer](https://github.com/nfischer)) -- issue-407: Add regular files unit tests and fix symlink copy behavior [\#409](https://github.com/shelljs/shelljs/pull/409) ([charlesverge](https://github.com/charlesverge)) -- refactor\(rm\): Remove duplicate code [\#408](https://github.com/shelljs/shelljs/pull/408) ([nfischer](https://github.com/nfischer)) -- docs: wildcards for all commands, other docs cleanups [\#404](https://github.com/shelljs/shelljs/pull/404) ([nfischer](https://github.com/nfischer)) -- test\(rm\): add tests to prevent a future regression [\#403](https://github.com/shelljs/shelljs/pull/403) ([nfischer](https://github.com/nfischer)) -- refactor\(string\): modify string protoype, but only for shelljs/global [\#401](https://github.com/shelljs/shelljs/pull/401) ([nfischer](https://github.com/nfischer)) -- feat: adding error codes to ShellJS [\#394](https://github.com/shelljs/shelljs/pull/394) ([nfischer](https://github.com/nfischer)) -- feature: use rechoir [\#384](https://github.com/shelljs/shelljs/pull/384) ([nfischer](https://github.com/nfischer)) -- refactor\(cp\): clean up code and fix \#376 [\#380](https://github.com/shelljs/shelljs/pull/380) ([nfischer](https://github.com/nfischer)) -- New commands: sort\(\), head\(\), and tail\(\) [\#379](https://github.com/shelljs/shelljs/pull/379) ([nfischer](https://github.com/nfischer)) -- Add unit tests to prevent regression \(see \#376\) [\#378](https://github.com/shelljs/shelljs/pull/378) ([nfischer](https://github.com/nfischer)) -- feat\(pipe\): add support for pipes between commands [\#370](https://github.com/shelljs/shelljs/pull/370) ([nfischer](https://github.com/nfischer)) -- refactor\(ls\): greatly simplify ls implimentation [\#369](https://github.com/shelljs/shelljs/pull/369) ([ariporad](https://github.com/ariporad)) -- chore: drop node v0.10 support [\#368](https://github.com/shelljs/shelljs/pull/368) ([ariporad](https://github.com/ariporad)) -- perf\(cd\): only run `stat` once [\#367](https://github.com/shelljs/shelljs/pull/367) ([ariporad](https://github.com/ariporad)) -- fix\(exec\): properly handles paths with spaces and quotes [\#365](https://github.com/shelljs/shelljs/pull/365) ([nfischer](https://github.com/nfischer)) -- test\(ln\): add tests for linking to cwd [\#364](https://github.com/shelljs/shelljs/pull/364) ([nfischer](https://github.com/nfischer)) -- fix\(verbose\): verbose-style logging is consistent [\#362](https://github.com/shelljs/shelljs/pull/362) ([nfischer](https://github.com/nfischer)) -- Refactor shellstring [\#360](https://github.com/shelljs/shelljs/pull/360) ([nfischer](https://github.com/nfischer)) -- feat\(glob\): use glob module for globbing [\#359](https://github.com/shelljs/shelljs/pull/359) ([nfischer](https://github.com/nfischer)) -- feat\(set\): add -f option to disable globbing [\#358](https://github.com/shelljs/shelljs/pull/358) ([nfischer](https://github.com/nfischer)) -- config.fatal now throws an exception [\#357](https://github.com/shelljs/shelljs/pull/357) ([jrmclaurin](https://github.com/jrmclaurin)) -- fix\(exec\): temp files are now cleaned up [\#354](https://github.com/shelljs/shelljs/pull/354) ([nfischer](https://github.com/nfischer)) -- feat\(glob\): glob support for \(almost\) all commands [\#352](https://github.com/shelljs/shelljs/pull/352) ([nfischer](https://github.com/nfischer)) -- feat\(grep\): add -l option [\#349](https://github.com/shelljs/shelljs/pull/349) ([nfischer](https://github.com/nfischer)) -- fix\(exec\): now actually supports shell option [\#348](https://github.com/shelljs/shelljs/pull/348) ([nfischer](https://github.com/nfischer)) -- feat\(touch\): supports multiple files [\#346](https://github.com/shelljs/shelljs/pull/346) ([nfischer](https://github.com/nfischer)) - -## [v0.6.0](https://github.com/shelljs/shelljs/tree/v0.6.0) (2016-02-05) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.5.3...v0.6.0) - -**Closed issues:** - -- option not recognized [\#334](https://github.com/shelljs/shelljs/issues/334) -- Feature request: Metadata with `ls` [\#323](https://github.com/shelljs/shelljs/issues/323) -- Gen-docs is broken [\#309](https://github.com/shelljs/shelljs/issues/309) -- `link -s` is broken for files on Windows [\#301](https://github.com/shelljs/shelljs/issues/301) -- Shelljs quits unexpectedly: [\#300](https://github.com/shelljs/shelljs/issues/300) -- Failing tests on Windows [\#296](https://github.com/shelljs/shelljs/issues/296) -- run-tests.js is broken for cmd.exe [\#294](https://github.com/shelljs/shelljs/issues/294) -- Support echo-ing environment variables [\#291](https://github.com/shelljs/shelljs/issues/291) -- Add Windows CI [\#287](https://github.com/shelljs/shelljs/issues/287) -- Add tests for the shjs utility [\#280](https://github.com/shelljs/shelljs/issues/280) -- Allow shjs utility to infer the extension for "filename." [\#278](https://github.com/shelljs/shelljs/issues/278) -- Ability to read the stdout buffer line-by-line [\#277](https://github.com/shelljs/shelljs/issues/277) -- Poor output for commands with multiple errors [\#267](https://github.com/shelljs/shelljs/issues/267) -- Travis ci build status says "unknown" [\#266](https://github.com/shelljs/shelljs/issues/266) -- wild card characters in filename not working as expected [\#262](https://github.com/shelljs/shelljs/issues/262) -- shell.exec - read internal variable [\#260](https://github.com/shelljs/shelljs/issues/260) -- cp and rename directory with -r doesn't match unix behavior [\#256](https://github.com/shelljs/shelljs/issues/256) -- console.log.apply throwing TypeError: Illegal Invocation [\#255](https://github.com/shelljs/shelljs/issues/255) -- How to exit on first error [\#253](https://github.com/shelljs/shelljs/issues/253) -- why not support set 'cwd' when invoke execAsync ? [\#250](https://github.com/shelljs/shelljs/issues/250) -- Not possible to check the failure of cd? [\#247](https://github.com/shelljs/shelljs/issues/247) -- By default shelljs runs command in root [\#246](https://github.com/shelljs/shelljs/issues/246) -- /usr/bin/env: node: No such file or directory [\#243](https://github.com/shelljs/shelljs/issues/243) -- "Which" command not working properly on Windows Platform. [\#238](https://github.com/shelljs/shelljs/issues/238) -- Arguments [\#237](https://github.com/shelljs/shelljs/issues/237) -- sed\(\) should accept multiple file arguments [\#231](https://github.com/shelljs/shelljs/issues/231) -- shelljs.exec\('aaa && bbb'\) blocks [\#229](https://github.com/shelljs/shelljs/issues/229) -- Consider creating a GitHub Organization with more maintainers [\#223](https://github.com/shelljs/shelljs/issues/223) -- \[idea\] Add chmodr function. [\#219](https://github.com/shelljs/shelljs/issues/219) -- Execute a file [\#211](https://github.com/shelljs/shelljs/issues/211) -- Where is standard error going to? [\#209](https://github.com/shelljs/shelljs/issues/209) -- boolean return value for string.to\(\) [\#205](https://github.com/shelljs/shelljs/issues/205) -- `common.error` doesn't throw [\#199](https://github.com/shelljs/shelljs/issues/199) -- Problems with exec \(sync\) on 0.12/io.js [\#197](https://github.com/shelljs/shelljs/issues/197) -- cp --update flag [\#172](https://github.com/shelljs/shelljs/issues/172) -- Is there a way to suppress pushd/popd output? [\#171](https://github.com/shelljs/shelljs/issues/171) -- Cannot recursively list all \*.js files [\#162](https://github.com/shelljs/shelljs/issues/162) -- exec\(\) breaks if executed in a deleted directory [\#157](https://github.com/shelljs/shelljs/issues/157) -- shjs command always exits with zero code [\#133](https://github.com/shelljs/shelljs/issues/133) -- touch command [\#122](https://github.com/shelljs/shelljs/issues/122) -- Symbolic links are broken! [\#100](https://github.com/shelljs/shelljs/issues/100) -- interpret `--` as stdin [\#55](https://github.com/shelljs/shelljs/issues/55) -- Error ENOTEMPTY when deleting a directory recursively. [\#49](https://github.com/shelljs/shelljs/issues/49) -- Cross-platform way to add to PATH [\#32](https://github.com/shelljs/shelljs/issues/32) -- `mv` fails on block, character, fifo [\#25](https://github.com/shelljs/shelljs/issues/25) -- ls -l [\#22](https://github.com/shelljs/shelljs/issues/22) - -**Merged pull requests:** - -- feat\(set\): add new set\(\) command [\#329](https://github.com/shelljs/shelljs/pull/329) ([nfischer](https://github.com/nfischer)) -- Fix symlinking on Windows [\#322](https://github.com/shelljs/shelljs/pull/322) ([BYK](https://github.com/BYK)) -- Rewrite .gitignore to be more comprehensive [\#321](https://github.com/shelljs/shelljs/pull/321) ([BYK](https://github.com/BYK)) -- chore\(gitter/travis\): add gitter webhook to travis [\#313](https://github.com/shelljs/shelljs/pull/313) ([ariporad](https://github.com/ariporad)) -- chore\(LGTM\): add LGTM config files [\#312](https://github.com/shelljs/shelljs/pull/312) ([ariporad](https://github.com/ariporad)) -- feat\(ls\): add -d flag to ls\(\) [\#311](https://github.com/shelljs/shelljs/pull/311) ([nfischer](https://github.com/nfischer)) -- fix\(gen-docs\): fix issue where docs are generated wrong [\#310](https://github.com/shelljs/shelljs/pull/310) ([nfischer](https://github.com/nfischer)) -- chore\(package\): remove v0.8 from engines list [\#308](https://github.com/shelljs/shelljs/pull/308) ([nfischer](https://github.com/nfischer)) -- travis: Mark as not using `sudo` and do not test 0.11 [\#307](https://github.com/shelljs/shelljs/pull/307) ([TimothyGu](https://github.com/TimothyGu)) -- fix: jshint works on Windows [\#295](https://github.com/shelljs/shelljs/pull/295) ([nfischer](https://github.com/nfischer)) -- feat: add tilde expansion to expand\(\) [\#293](https://github.com/shelljs/shelljs/pull/293) ([nfischer](https://github.com/nfischer)) -- style: make docs more consistent [\#292](https://github.com/shelljs/shelljs/pull/292) ([nfischer](https://github.com/nfischer)) -- update `exec` docs to match implemented behaviour [\#289](https://github.com/shelljs/shelljs/pull/289) ([vise890](https://github.com/vise890)) -- chore: update github URL in package.json [\#288](https://github.com/shelljs/shelljs/pull/288) ([nfischer](https://github.com/nfischer)) -- docs\(spelling\): fix typo in source comment [\#285](https://github.com/shelljs/shelljs/pull/285) ([nfischer](https://github.com/nfischer)) -- chore\(travis\): add OS X to Travis CI [\#283](https://github.com/shelljs/shelljs/pull/283) ([nfischer](https://github.com/nfischer)) -- Don't do `console.log.apply\(this, ...\)`. [\#274](https://github.com/shelljs/shelljs/pull/274) ([ariporad](https://github.com/ariporad)) -- Implementing cd\('-'\) to behave like Bash's "cd -" [\#273](https://github.com/shelljs/shelljs/pull/273) ([nfischer](https://github.com/nfischer)) -- Fix cp to match unix behavior [\#271](https://github.com/shelljs/shelljs/pull/271) ([freitagbr](https://github.com/freitagbr)) -- Commands that have multiple errors now produce cleaner log output [\#268](https://github.com/shelljs/shelljs/pull/268) ([nfischer](https://github.com/nfischer)) -- Support exit code in shjs. [\#252](https://github.com/shelljs/shelljs/pull/252) ([bryce-gibson](https://github.com/bryce-gibson)) -- add touch\(1\) [\#249](https://github.com/shelljs/shelljs/pull/249) ([blockloop](https://github.com/blockloop)) -- Fix `os.tmpdir` bug [\#240](https://github.com/shelljs/shelljs/pull/240) ([BYK](https://github.com/BYK)) -- Make sure Which\(\) on Windows platform always return the command with … [\#239](https://github.com/shelljs/shelljs/pull/239) ([TingluoHuang](https://github.com/TingluoHuang)) -- Add target node.js \(iojs v1, v2, v3\) [\#230](https://github.com/shelljs/shelljs/pull/230) ([sanemat](https://github.com/sanemat)) -- feat-multisymbolic + Support for directory entry \(capital X in chmod terms\) [\#228](https://github.com/shelljs/shelljs/pull/228) ([rezonant](https://github.com/rezonant)) -- Fixes an issue with multi-symbolic mode specification \(ie a-rwx,u+rw\) [\#227](https://github.com/shelljs/shelljs/pull/227) ([rezonant](https://github.com/rezonant)) -- Memoized the result of target invocation [\#216](https://github.com/shelljs/shelljs/pull/216) ([rizowski](https://github.com/rizowski)) -- remove empty for loop and leaked i var [\#166](https://github.com/shelljs/shelljs/pull/166) ([ratbeard](https://github.com/ratbeard)) -- Wrap script name in double quotes [\#135](https://github.com/shelljs/shelljs/pull/135) ([ndelitski](https://github.com/ndelitski)) -- Fixed coffeescript syntax in top example [\#99](https://github.com/shelljs/shelljs/pull/99) ([maxnordlund](https://github.com/maxnordlund)) -- fix\(touch\): enhance parseOptions and fix touch's -r flag [\#341](https://github.com/shelljs/shelljs/pull/341) ([nfischer](https://github.com/nfischer)) -- chore\(.npmignore\): update npmignore [\#339](https://github.com/shelljs/shelljs/pull/339) ([ariporad](https://github.com/ariporad)) -- Release v0.6.0 [\#338](https://github.com/shelljs/shelljs/pull/338) ([ariporad](https://github.com/ariporad)) -- docs\(README\): remove coffeescript from README [\#337](https://github.com/shelljs/shelljs/pull/337) ([ariporad](https://github.com/ariporad)) -- fix\(cp\): add -n option, make -f default behavior [\#336](https://github.com/shelljs/shelljs/pull/336) ([nfischer](https://github.com/nfischer)) -- feat\(exec\): allow all exec options to pass through [\#335](https://github.com/shelljs/shelljs/pull/335) ([nfischer](https://github.com/nfischer)) -- fix\(mv\): add -n option, make -f default behavior [\#328](https://github.com/shelljs/shelljs/pull/328) ([nfischer](https://github.com/nfischer)) -- fix\(cat\): make behavior more like unix [\#326](https://github.com/shelljs/shelljs/pull/326) ([nfischer](https://github.com/nfischer)) -- feat\(ls\): add -l option [\#324](https://github.com/shelljs/shelljs/pull/324) ([nfischer](https://github.com/nfischer)) -- style\(test/which\): make test/which.js conform to the style guidelines [\#320](https://github.com/shelljs/shelljs/pull/320) ([ariporad](https://github.com/ariporad)) -- chore\(appveyor\): add badge [\#316](https://github.com/shelljs/shelljs/pull/316) ([nfischer](https://github.com/nfischer)) -- fix\(windows\): fix shjs commands for windows [\#315](https://github.com/shelljs/shelljs/pull/315) ([nfischer](https://github.com/nfischer)) -- feat\(sed\): support multiple file names [\#314](https://github.com/shelljs/shelljs/pull/314) ([nfischer](https://github.com/nfischer)) -- feat\(cd\): cd\(\) \(no args\) changes to home directory [\#306](https://github.com/shelljs/shelljs/pull/306) ([nfischer](https://github.com/nfischer)) -- test\(shjs\): add tests for shjs [\#304](https://github.com/shelljs/shelljs/pull/304) ([ariporad](https://github.com/ariporad)) -- fix: regexes are more consistent with sed and grep [\#303](https://github.com/shelljs/shelljs/pull/303) ([nfischer](https://github.com/nfischer)) -- Add appveyor.yml config file [\#299](https://github.com/shelljs/shelljs/pull/299) ([nfischer](https://github.com/nfischer)) -- Fix tests on Windows [\#297](https://github.com/shelljs/shelljs/pull/297) ([BYK](https://github.com/BYK)) -- Search PATHEXT instead of 3 hardcoded values [\#290](https://github.com/shelljs/shelljs/pull/290) ([isiahmeadows](https://github.com/isiahmeadows)) -- Fix relative symlinks [\#282](https://github.com/shelljs/shelljs/pull/282) ([freitagbr](https://github.com/freitagbr)) -- Make to and toEnd chainable [\#276](https://github.com/shelljs/shelljs/pull/276) ([TimothyGu](https://github.com/TimothyGu)) - -## [v0.5.3](https://github.com/shelljs/shelljs/tree/v0.5.3) (2015-08-11) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.5.2...v0.5.3) - -**Merged pull requests:** - -- Manually closing streams [\#222](https://github.com/shelljs/shelljs/pull/222) ([JulianLaval](https://github.com/JulianLaval)) - -## [v0.5.2](https://github.com/shelljs/shelljs/tree/v0.5.2) (2015-08-10) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.5.1...v0.5.2) - -**Closed issues:** - -- Cannot run shell.exec [\#217](https://github.com/shelljs/shelljs/issues/217) -- write after end: internal error [\#206](https://github.com/shelljs/shelljs/issues/206) - -**Merged pull requests:** - -- Update README.md [\#221](https://github.com/shelljs/shelljs/pull/221) ([giosh94mhz](https://github.com/giosh94mhz)) -- prevent internal error: write after end [\#214](https://github.com/shelljs/shelljs/pull/214) ([charlierudolph](https://github.com/charlierudolph)) - -## [v0.5.1](https://github.com/shelljs/shelljs/tree/v0.5.1) (2015-06-05) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.5.0...v0.5.1) - -**Closed issues:** - -- cd into home directory [\#9](https://github.com/shelljs/shelljs/issues/9) - -**Merged pull requests:** - -- Fix issue \#49: Retry rmdirSync on Windows for up to 1 second if files still exist. [\#179](https://github.com/shelljs/shelljs/pull/179) ([andreialecu](https://github.com/andreialecu)) - -## [v0.5.0](https://github.com/shelljs/shelljs/tree/v0.5.0) (2015-05-19) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.3.0...v0.5.0) - -**Closed issues:** - -- Enter text to prompt [\#203](https://github.com/shelljs/shelljs/issues/203) -- Find which shell is being used [\#195](https://github.com/shelljs/shelljs/issues/195) -- Pass command line params to the make tool [\#188](https://github.com/shelljs/shelljs/issues/188) -- Is it possible to call exec with a command containing new lines ? [\#177](https://github.com/shelljs/shelljs/issues/177) -- The installation would break on Windows 7 [\#161](https://github.com/shelljs/shelljs/issues/161) -- Q.ninvoke\(\) returns undefined [\#153](https://github.com/shelljs/shelljs/issues/153) -- installed shelljs on osx but reported error: npm ERR! 404 '%5B-g%5D' is not in the npm registry. [\#124](https://github.com/shelljs/shelljs/issues/124) -- "ln" not found \(OS X\) [\#106](https://github.com/shelljs/shelljs/issues/106) -- Using shelljs in a CLI app. [\#91](https://github.com/shelljs/shelljs/issues/91) - -**Merged pull requests:** - -- Breaking: Allow -- as args separators \(fixes \#188\) [\#207](https://github.com/shelljs/shelljs/pull/207) ([nzakas](https://github.com/nzakas)) -- Update .travis.yml [\#190](https://github.com/shelljs/shelljs/pull/190) ([arturadib](https://github.com/arturadib)) -- Use new child\_process.execSync instead of busywaiting [\#189](https://github.com/shelljs/shelljs/pull/189) ([madd512](https://github.com/madd512)) -- Update README.md: explains how to access "config" [\#145](https://github.com/shelljs/shelljs/pull/145) ([kerphi](https://github.com/kerphi)) -- Fix to set state.error before throw the exception [\#120](https://github.com/shelljs/shelljs/pull/120) ([abdul-martinez](https://github.com/abdul-martinez)) -- Add -l and -s support to grep. [\#116](https://github.com/shelljs/shelljs/pull/116) ([idearat](https://github.com/idearat)) - -## [v0.3.0](https://github.com/shelljs/shelljs/tree/v0.3.0) (2014-05-08) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.2.6...v0.3.0) - -**Closed issues:** - -- grep\(\) should fully support globing [\#118](https://github.com/shelljs/shelljs/issues/118) -- sed\(\) could support replacement function [\#115](https://github.com/shelljs/shelljs/issues/115) -- How would you close an exec process that runs indefinitely? [\#113](https://github.com/shelljs/shelljs/issues/113) -- listen for intermittent output of a long-running child process [\#111](https://github.com/shelljs/shelljs/issues/111) -- Cannot find module 'shelljs' after installing shelljs with npm [\#109](https://github.com/shelljs/shelljs/issues/109) -- Massive CPU usage on exec\(\) windows [\#108](https://github.com/shelljs/shelljs/issues/108) -- cp skipping dot files? [\#79](https://github.com/shelljs/shelljs/issues/79) -- $variables in exec\(\) aren't handled correctly [\#11](https://github.com/shelljs/shelljs/issues/11) -- debug flag that prints commands instead of executing [\#8](https://github.com/shelljs/shelljs/issues/8) - -**Merged pull requests:** - -- grep\(\) support for globing, fixes \#118 [\#119](https://github.com/shelljs/shelljs/pull/119) ([utensil](https://github.com/utensil)) -- make sed\(\) support replacement function, fixes \#115 [\#117](https://github.com/shelljs/shelljs/pull/117) ([utensil](https://github.com/utensil)) -- which\(\) should only find files, not directories [\#110](https://github.com/shelljs/shelljs/pull/110) ([panrafal](https://github.com/panrafal)) -- Added the New BSD license to the package.json. [\#105](https://github.com/shelljs/shelljs/pull/105) ([keskival](https://github.com/keskival)) -- Added win32 support to ln [\#104](https://github.com/shelljs/shelljs/pull/104) ([jamon](https://github.com/jamon)) -- Fix ln using bad paths when given abspaths. [\#89](https://github.com/shelljs/shelljs/pull/89) ([Schoonology](https://github.com/Schoonology)) -- Add ln support, including both -s and -f options. [\#88](https://github.com/shelljs/shelljs/pull/88) ([Schoonology](https://github.com/Schoonology)) -- add support for symlinking \(junctions\) on win32 [\#87](https://github.com/shelljs/shelljs/pull/87) ([jamon](https://github.com/jamon)) - -## [v0.2.6](https://github.com/shelljs/shelljs/tree/v0.2.6) (2013-09-22) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.2.5...v0.2.6) - -**Closed issues:** - -- Versions 0.2.4 and 0.2.3 keep throwing strange errors [\#82](https://github.com/shelljs/shelljs/issues/82) -- Add global pollution tests [\#33](https://github.com/shelljs/shelljs/issues/33) - -## [v0.2.5](https://github.com/shelljs/shelljs/tree/v0.2.5) (2013-09-11) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.2.4...v0.2.5) - -**Closed issues:** - -- shelljs.exec stalls on Red Hat when script is invoked with 'sudo -u username' [\#72](https://github.com/shelljs/shelljs/issues/72) - -## [v0.2.4](https://github.com/shelljs/shelljs/tree/v0.2.4) (2013-09-11) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.2.3...v0.2.4) - -## [v0.2.3](https://github.com/shelljs/shelljs/tree/v0.2.3) (2013-09-09) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.2.2...v0.2.3) - -**Merged pull requests:** - -- Make shell.exec\(\) treat process error return codes as shelljs errors [\#80](https://github.com/shelljs/shelljs/pull/80) ([nilsbunger](https://github.com/nilsbunger)) - -## [v0.2.2](https://github.com/shelljs/shelljs/tree/v0.2.2) (2013-09-02) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.1.4...v0.2.2) - -**Closed issues:** - -- which and node\_modules [\#63](https://github.com/shelljs/shelljs/issues/63) -- cannot install with nodejs 0.10.2 [\#57](https://github.com/shelljs/shelljs/issues/57) - -**Merged pull requests:** - -- Addition of a toEnd\(\) function modeled after the Unix \>\> pipe. [\#78](https://github.com/shelljs/shelljs/pull/78) ([a10y](https://github.com/a10y)) -- Added appendTo\(\) function to imitate '\>\>' redirect-and-append pipe. [\#75](https://github.com/shelljs/shelljs/pull/75) ([a10y](https://github.com/a10y)) -- Fix a small typo in README.md [\#71](https://github.com/shelljs/shelljs/pull/71) ([asmblah](https://github.com/asmblah)) -- adding an `.npmignore` file [\#70](https://github.com/shelljs/shelljs/pull/70) ([stephenmathieson](https://github.com/stephenmathieson)) -- tempdir: use `os.tmpDir` when possible [\#67](https://github.com/shelljs/shelljs/pull/67) ([stephenmathieson](https://github.com/stephenmathieson)) - -## [v0.1.4](https://github.com/shelljs/shelljs/tree/v0.1.4) (2013-05-10) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.1.3...v0.1.4) - -**Merged pull requests:** - -- removing extra fs calls [\#62](https://github.com/shelljs/shelljs/pull/62) ([stephenmathieson](https://github.com/stephenmathieson)) -- moving \_jshint\_ to a development dependency [\#61](https://github.com/shelljs/shelljs/pull/61) ([stephenmathieson](https://github.com/stephenmathieson)) -- Make the maximum buffersize 20 MB. [\#59](https://github.com/shelljs/shelljs/pull/59) ([waddlesplash](https://github.com/waddlesplash)) - -## [v0.1.3](https://github.com/shelljs/shelljs/tree/v0.1.3) (2013-04-21) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.1.2...v0.1.3) - -**Merged pull requests:** - -- test\('-L', badlink\) should return true [\#56](https://github.com/shelljs/shelljs/pull/56) ([lge88](https://github.com/lge88)) -- exec options now allows `silent:true` with callback. [\#54](https://github.com/shelljs/shelljs/pull/54) ([iapain](https://github.com/iapain)) -- Add Zepto to README [\#53](https://github.com/shelljs/shelljs/pull/53) ([madrobby](https://github.com/madrobby)) - -## [v0.1.2](https://github.com/shelljs/shelljs/tree/v0.1.2) (2013-01-08) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.1.1...v0.1.2) - -**Closed issues:** - -- pushd/popd [\#24](https://github.com/shelljs/shelljs/issues/24) - -**Merged pull requests:** - -- Implemented chmod command. Github issue 35 [\#48](https://github.com/shelljs/shelljs/pull/48) ([brandonramirez](https://github.com/brandonramirez)) - -## [v0.1.1](https://github.com/shelljs/shelljs/tree/v0.1.1) (2013-01-01) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.1.0...v0.1.1) - -**Merged pull requests:** - -- Work in progress: pushd/popd/dirs [\#47](https://github.com/shelljs/shelljs/pull/47) ([mstade](https://github.com/mstade)) - -## [v0.1.0](https://github.com/shelljs/shelljs/tree/v0.1.0) (2012-12-26) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.0.9...v0.1.0) - -**Closed issues:** - -- test\(\) for binary file? [\#45](https://github.com/shelljs/shelljs/issues/45) -- Inconsistent behaviour of cp command with directories. [\#44](https://github.com/shelljs/shelljs/issues/44) -- Executing SSH with ShellJs [\#43](https://github.com/shelljs/shelljs/issues/43) - -**Merged pull requests:** - -- Fix for \#44 [\#46](https://github.com/shelljs/shelljs/pull/46) ([mstade](https://github.com/mstade)) -- Fix single/double quotes in exec [\#42](https://github.com/shelljs/shelljs/pull/42) ([danielepolencic](https://github.com/danielepolencic)) - -## [v0.0.9](https://github.com/shelljs/shelljs/tree/v0.0.9) (2012-12-01) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.0.8...v0.0.9) - -**Closed issues:** - -- silent output [\#40](https://github.com/shelljs/shelljs/issues/40) -- asynchronous exec [\#34](https://github.com/shelljs/shelljs/issues/34) - -**Merged pull requests:** - -- Passed process arguments to executable script [\#36](https://github.com/shelljs/shelljs/pull/36) ([Zanisimo](https://github.com/Zanisimo)) - -## [v0.0.8](https://github.com/shelljs/shelljs/tree/v0.0.8) (2012-10-11) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.0.7...v0.0.8) - -**Closed issues:** - -- exec with callback should automatically be async [\#31](https://github.com/shelljs/shelljs/issues/31) -- Exporting variables. [\#30](https://github.com/shelljs/shelljs/issues/30) -- Detecting shelljs/node [\#27](https://github.com/shelljs/shelljs/issues/27) - -**Merged pull requests:** - -- fix: global leak 'stats' [\#29](https://github.com/shelljs/shelljs/pull/29) ([ando-takahiro](https://github.com/ando-takahiro)) -- -a includes . and ..; -A does not [\#28](https://github.com/shelljs/shelljs/pull/28) ([aeosynth](https://github.com/aeosynth)) - -## [v0.0.7](https://github.com/shelljs/shelljs/tree/v0.0.7) (2012-09-23) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.0.6...v0.0.7) - -**Closed issues:** - -- gh-pages: clicking 'fork me' just reloads the page [\#26](https://github.com/shelljs/shelljs/issues/26) -- Not declared local var implies possible memory leak [\#21](https://github.com/shelljs/shelljs/issues/21) -- Cannot echo a string that starts with - [\#20](https://github.com/shelljs/shelljs/issues/20) -- Unexpected cp behaviour with directories [\#15](https://github.com/shelljs/shelljs/issues/15) - -**Merged pull requests:** - -- add primaries to \_test [\#23](https://github.com/shelljs/shelljs/pull/23) ([aeosynth](https://github.com/aeosynth)) - -## [v0.0.6](https://github.com/shelljs/shelljs/tree/v0.0.6) (2012-08-07) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.0.6pre2...v0.0.6) - -**Merged pull requests:** - -- Fixed a global variable leak [\#16](https://github.com/shelljs/shelljs/pull/16) ([dallonf](https://github.com/dallonf)) - -## [v0.0.6pre2](https://github.com/shelljs/shelljs/tree/v0.0.6pre2) (2012-05-25) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.0.6pre1...v0.0.6pre2) - -## [v0.0.6pre1](https://github.com/shelljs/shelljs/tree/v0.0.6pre1) (2012-05-25) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.0.5...v0.0.6pre1) - -## [v0.0.5](https://github.com/shelljs/shelljs/tree/v0.0.5) (2012-05-24) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.0.5pre4...v0.0.5) - -**Closed issues:** - -- global.key assigned value 'async' as a result of shell.exec\(...\) [\#12](https://github.com/shelljs/shelljs/issues/12) - -**Merged pull requests:** - -- Add support for grep option -v. [\#13](https://github.com/shelljs/shelljs/pull/13) ([kkujala](https://github.com/kkujala)) - -## [v0.0.5pre4](https://github.com/shelljs/shelljs/tree/v0.0.5pre4) (2012-03-27) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.0.5pre3...v0.0.5pre4) - -## [v0.0.5pre3](https://github.com/shelljs/shelljs/tree/v0.0.5pre3) (2012-03-27) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.0.5pre2...v0.0.5pre3) - -## [v0.0.5pre2](https://github.com/shelljs/shelljs/tree/v0.0.5pre2) (2012-03-26) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.0.5pre1...v0.0.5pre2) - -## [v0.0.5pre1](https://github.com/shelljs/shelljs/tree/v0.0.5pre1) (2012-03-26) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.0.4...v0.0.5pre1) - -**Closed issues:** - -- rm\(\) does not respect read/write modes [\#6](https://github.com/shelljs/shelljs/issues/6) - -## [v0.0.4](https://github.com/shelljs/shelljs/tree/v0.0.4) (2012-03-22) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.0.3...v0.0.4) - -**Closed issues:** - -- "For convenient iteration via `for in`, ..."? [\#4](https://github.com/shelljs/shelljs/issues/4) - -## [v0.0.3](https://github.com/shelljs/shelljs/tree/v0.0.3) (2012-03-21) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.0.2...v0.0.3) - -## [v0.0.2](https://github.com/shelljs/shelljs/tree/v0.0.2) (2012-03-15) -[Full Changelog](https://github.com/shelljs/shelljs/compare/v0.0.2pre1...v0.0.2) - -## [v0.0.2pre1](https://github.com/shelljs/shelljs/tree/v0.0.2pre1) (2012-03-03) - - -\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/shelljs/LICENSE b/build_vtk_bundle/node_modules/shelljs/LICENSE deleted file mode 100644 index 0f0f119b..00000000 --- a/build_vtk_bundle/node_modules/shelljs/LICENSE +++ /dev/null @@ -1,26 +0,0 @@ -Copyright (c) 2012, Artur Adib -All rights reserved. - -You may use this project under the terms of the New BSD license as follows: - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * Neither the name of Artur Adib nor the - names of the contributors may be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL ARTUR ADIB BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/build_vtk_bundle/node_modules/shelljs/README.md b/build_vtk_bundle/node_modules/shelljs/README.md deleted file mode 100644 index bead36e9..00000000 --- a/build_vtk_bundle/node_modules/shelljs/README.md +++ /dev/null @@ -1,835 +0,0 @@ -# ShellJS - Unix shell commands for Node.js - -[![Travis](https://img.shields.io/travis/shelljs/shelljs/master.svg?style=flat-square&label=unix)](https://travis-ci.org/shelljs/shelljs) -[![AppVeyor](https://img.shields.io/appveyor/ci/shelljs/shelljs/master.svg?style=flat-square&label=windows)](https://ci.appveyor.com/project/shelljs/shelljs/branch/master) -[![Codecov](https://img.shields.io/codecov/c/github/shelljs/shelljs/master.svg?style=flat-square&label=coverage)](https://codecov.io/gh/shelljs/shelljs) -[![npm version](https://img.shields.io/npm/v/shelljs.svg?style=flat-square)](https://www.npmjs.com/package/shelljs) -[![npm downloads](https://img.shields.io/npm/dm/shelljs.svg?style=flat-square)](https://www.npmjs.com/package/shelljs) - -ShellJS is a portable **(Windows/Linux/OS X)** implementation of Unix shell -commands on top of the Node.js API. You can use it to eliminate your shell -script's dependency on Unix while still keeping its familiar and powerful -commands. You can also install it globally so you can run it from outside Node -projects - say goodbye to those gnarly Bash scripts! - -ShellJS is proudly tested on every node release since `v4`! - -The project is [unit-tested](http://travis-ci.org/shelljs/shelljs) and battle-tested in projects like: - -+ [Firebug](http://getfirebug.com/) - Firefox's infamous debugger -+ [JSHint](http://jshint.com) & [ESLint](http://eslint.org/) - popular JavaScript linters -+ [Zepto](http://zeptojs.com) - jQuery-compatible JavaScript library for modern browsers -+ [Yeoman](http://yeoman.io/) - Web application stack and development tool -+ [Deployd.com](http://deployd.com) - Open source PaaS for quick API backend generation -+ And [many more](https://npmjs.org/browse/depended/shelljs). - -If you have feedback, suggestions, or need help, feel free to post in our [issue -tracker](https://github.com/shelljs/shelljs/issues). - -Think ShellJS is cool? Check out some related projects in our [Wiki -page](https://github.com/shelljs/shelljs/wiki)! - -Upgrading from an older version? Check out our [breaking -changes](https://github.com/shelljs/shelljs/wiki/Breaking-Changes) page to see -what changes to watch out for while upgrading. - -## Command line use - -If you just want cross platform UNIX commands, checkout our new project -[shelljs/shx](https://github.com/shelljs/shx), a utility to expose `shelljs` to -the command line. - -For example: - -``` -$ shx mkdir -p foo -$ shx touch foo/bar.txt -$ shx rm -rf foo -``` - -## Plugin API - -ShellJS now supports third-party plugins! You can learn more about using plugins -and writing your own ShellJS commands in [the -wiki](https://github.com/shelljs/shelljs/wiki/Using-ShellJS-Plugins). - -## A quick note about the docs - -For documentation on all the latest features, check out our -[README](https://github.com/shelljs/shelljs). To read docs that are consistent -with the latest release, check out [the npm -page](https://www.npmjs.com/package/shelljs) or -[shelljs.org](http://documentup.com/shelljs/shelljs). - -## Installing - -Via npm: - -```bash -$ npm install [-g] shelljs -``` - -## Examples - -```javascript -var shell = require('shelljs'); - -if (!shell.which('git')) { - shell.echo('Sorry, this script requires git'); - shell.exit(1); -} - -// Copy files to release dir -shell.rm('-rf', 'out/Release'); -shell.cp('-R', 'stuff/', 'out/Release'); - -// Replace macros in each .js file -shell.cd('lib'); -shell.ls('*.js').forEach(function (file) { - shell.sed('-i', 'BUILD_VERSION', 'v0.1.2', file); - shell.sed('-i', /^.*REMOVE_THIS_LINE.*$/, '', file); - shell.sed('-i', /.*REPLACE_LINE_WITH_MACRO.*\n/, shell.cat('macro.js'), file); -}); -shell.cd('..'); - -// Run external tool synchronously -if (shell.exec('git commit -am "Auto-commit"').code !== 0) { - shell.echo('Error: Git commit failed'); - shell.exit(1); -} -``` - -## Exclude options - -If you need to pass a parameter that looks like an option, you can do so like: - -```js -shell.grep('--', '-v', 'path/to/file'); // Search for "-v", no grep options - -shell.cp('-R', '-dir', 'outdir'); // If already using an option, you're done -``` - -## Global vs. Local - -We no longer recommend using a global-import for ShellJS (i.e. -`require('shelljs/global')`). While still supported for convenience, this -pollutes the global namespace, and should therefore only be used with caution. - -Instead, we recommend a local import (standard for npm packages): - -```javascript -var shell = require('shelljs'); -shell.echo('hello world'); -``` - - - - -## Command reference - - -All commands run synchronously, unless otherwise stated. -All commands accept standard bash globbing characters (`*`, `?`, etc.), -compatible with the [node `glob` module](https://github.com/isaacs/node-glob). - -For less-commonly used commands and features, please check out our [wiki -page](https://github.com/shelljs/shelljs/wiki). - - -### cat([options,] file [, file ...]) -### cat([options,] file_array) - -Available options: - -+ `-n`: number all output lines - -Examples: - -```javascript -var str = cat('file*.txt'); -var str = cat('file1', 'file2'); -var str = cat(['file1', 'file2']); // same as above -``` - -Returns a string containing the given file, or a concatenated string -containing the files if more than one file is given (a new line character is -introduced between each file). - - -### cd([dir]) - -Changes to directory `dir` for the duration of the script. Changes to home -directory if no argument is supplied. - - -### chmod([options,] octal_mode || octal_string, file) -### chmod([options,] symbolic_mode, file) - -Available options: - -+ `-v`: output a diagnostic for every file processed -+ `-c`: like verbose, but report only when a change is made -+ `-R`: change files and directories recursively - -Examples: - -```javascript -chmod(755, '/Users/brandon'); -chmod('755', '/Users/brandon'); // same as above -chmod('u+x', '/Users/brandon'); -chmod('-R', 'a-w', '/Users/brandon'); -``` - -Alters the permissions of a file or directory by either specifying the -absolute permissions in octal form or expressing the changes in symbols. -This command tries to mimic the POSIX behavior as much as possible. -Notable exceptions: - -+ In symbolic modes, `a-r` and `-r` are identical. No consideration is - given to the `umask`. -+ There is no "quiet" option, since default behavior is to run silent. - - -### cp([options,] source [, source ...], dest) -### cp([options,] source_array, dest) - -Available options: - -+ `-f`: force (default behavior) -+ `-n`: no-clobber -+ `-u`: only copy if `source` is newer than `dest` -+ `-r`, `-R`: recursive -+ `-L`: follow symlinks -+ `-P`: don't follow symlinks - -Examples: - -```javascript -cp('file1', 'dir1'); -cp('-R', 'path/to/dir/', '~/newCopy/'); -cp('-Rf', '/tmp/*', '/usr/local/*', '/home/tmp'); -cp('-Rf', ['/tmp/*', '/usr/local/*'], '/home/tmp'); // same as above -``` - -Copies files. - - -### pushd([options,] [dir | '-N' | '+N']) - -Available options: - -+ `-n`: Suppresses the normal change of directory when adding directories to the stack, so that only the stack is manipulated. -+ `-q`: Supresses output to the console. - -Arguments: - -+ `dir`: Sets the current working directory to the top of the stack, then executes the equivalent of `cd dir`. -+ `+N`: Brings the Nth directory (counting from the left of the list printed by dirs, starting with zero) to the top of the list by rotating the stack. -+ `-N`: Brings the Nth directory (counting from the right of the list printed by dirs, starting with zero) to the top of the list by rotating the stack. - -Examples: - -```javascript -// process.cwd() === '/usr' -pushd('/etc'); // Returns /etc /usr -pushd('+1'); // Returns /usr /etc -``` - -Save the current directory on the top of the directory stack and then `cd` to `dir`. With no arguments, `pushd` exchanges the top two directories. Returns an array of paths in the stack. - - -### popd([options,] ['-N' | '+N']) - -Available options: - -+ `-n`: Suppress the normal directory change when removing directories from the stack, so that only the stack is manipulated. -+ `-q`: Supresses output to the console. - -Arguments: - -+ `+N`: Removes the Nth directory (counting from the left of the list printed by dirs), starting with zero. -+ `-N`: Removes the Nth directory (counting from the right of the list printed by dirs), starting with zero. - -Examples: - -```javascript -echo(process.cwd()); // '/usr' -pushd('/etc'); // '/etc /usr' -echo(process.cwd()); // '/etc' -popd(); // '/usr' -echo(process.cwd()); // '/usr' -``` - -When no arguments are given, `popd` removes the top directory from the stack and performs a `cd` to the new top directory. The elements are numbered from 0, starting at the first directory listed with dirs (i.e., `popd` is equivalent to `popd +0`). Returns an array of paths in the stack. - - -### dirs([options | '+N' | '-N']) - -Available options: - -+ `-c`: Clears the directory stack by deleting all of the elements. -+ `-q`: Supresses output to the console. - -Arguments: - -+ `+N`: Displays the Nth directory (counting from the left of the list printed by dirs when invoked without options), starting with zero. -+ `-N`: Displays the Nth directory (counting from the right of the list printed by dirs when invoked without options), starting with zero. - -Display the list of currently remembered directories. Returns an array of paths in the stack, or a single path if `+N` or `-N` was specified. - -See also: `pushd`, `popd` - - -### echo([options,] string [, string ...]) - -Available options: - -+ `-e`: interpret backslash escapes (default) -+ `-n`: remove trailing newline from output - -Examples: - -```javascript -echo('hello world'); -var str = echo('hello world'); -echo('-n', 'no newline at end'); -``` - -Prints `string` to stdout, and returns string with additional utility methods -like `.to()`. - - -### exec(command [, options] [, callback]) - -Available options: - -+ `async`: Asynchronous execution. If a callback is provided, it will be set to - `true`, regardless of the passed value (default: `false`). -+ `silent`: Do not echo program output to console (default: `false`). -+ `encoding`: Character encoding to use. Affects the values returned to stdout and stderr, and - what is written to stdout and stderr when not in silent mode (default: `'utf8'`). -+ and any option available to Node.js's - [`child_process.exec()`](https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback) - -Examples: - -```javascript -var version = exec('node --version', {silent:true}).stdout; - -var child = exec('some_long_running_process', {async:true}); -child.stdout.on('data', function(data) { - /* ... do something with data ... */ -}); - -exec('some_long_running_process', function(code, stdout, stderr) { - console.log('Exit code:', code); - console.log('Program output:', stdout); - console.log('Program stderr:', stderr); -}); -``` - -Executes the given `command` _synchronously_, unless otherwise specified. When in synchronous -mode, this returns a `ShellString` (compatible with ShellJS v0.6.x, which returns an object -of the form `{ code:..., stdout:... , stderr:... }`). Otherwise, this returns the child process -object, and the `callback` receives the arguments `(code, stdout, stderr)`. - -Not seeing the behavior you want? `exec()` runs everything through `sh` -by default (or `cmd.exe` on Windows), which differs from `bash`. If you -need bash-specific behavior, try out the `{shell: 'path/to/bash'}` option. - - -### find(path [, path ...]) -### find(path_array) - -Examples: - -```javascript -find('src', 'lib'); -find(['src', 'lib']); // same as above -find('.').filter(function(file) { return file.match(/\.js$/); }); -``` - -Returns array of all files (however deep) in the given paths. - -The main difference from `ls('-R', path)` is that the resulting file names -include the base directories (e.g., `lib/resources/file1` instead of just `file1`). - - -### grep([options,] regex_filter, file [, file ...]) -### grep([options,] regex_filter, file_array) - -Available options: - -+ `-v`: Invert `regex_filter` (only print non-matching lines). -+ `-l`: Print only filenames of matching files. -+ `-i`: Ignore case. - -Examples: - -```javascript -grep('-v', 'GLOBAL_VARIABLE', '*.js'); -grep('GLOBAL_VARIABLE', '*.js'); -``` - -Reads input string from given files and returns a string containing all lines of the -file that match the given `regex_filter`. - - -### head([{'-n': \},] file [, file ...]) -### head([{'-n': \},] file_array) - -Available options: - -+ `-n `: Show the first `` lines of the files - -Examples: - -```javascript -var str = head({'-n': 1}, 'file*.txt'); -var str = head('file1', 'file2'); -var str = head(['file1', 'file2']); // same as above -``` - -Read the start of a file. - - -### ln([options,] source, dest) - -Available options: - -+ `-s`: symlink -+ `-f`: force - -Examples: - -```javascript -ln('file', 'newlink'); -ln('-sf', 'file', 'existing'); -``` - -Links `source` to `dest`. Use `-f` to force the link, should `dest` already exist. - - -### ls([options,] [path, ...]) -### ls([options,] path_array) - -Available options: - -+ `-R`: recursive -+ `-A`: all files (include files beginning with `.`, except for `.` and `..`) -+ `-L`: follow symlinks -+ `-d`: list directories themselves, not their contents -+ `-l`: list objects representing each file, each with fields containing `ls - -l` output fields. See - [`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats) - for more info - -Examples: - -```javascript -ls('projs/*.js'); -ls('-R', '/users/me', '/tmp'); -ls('-R', ['/users/me', '/tmp']); // same as above -ls('-l', 'file.txt'); // { name: 'file.txt', mode: 33188, nlink: 1, ...} -``` - -Returns array of files in the given `path`, or files in -the current directory if no `path` is provided. - - -### mkdir([options,] dir [, dir ...]) -### mkdir([options,] dir_array) - -Available options: - -+ `-p`: full path (and create intermediate directories, if necessary) - -Examples: - -```javascript -mkdir('-p', '/tmp/a/b/c/d', '/tmp/e/f/g'); -mkdir('-p', ['/tmp/a/b/c/d', '/tmp/e/f/g']); // same as above -``` - -Creates directories. - - -### mv([options ,] source [, source ...], dest') -### mv([options ,] source_array, dest') - -Available options: - -+ `-f`: force (default behavior) -+ `-n`: no-clobber - -Examples: - -```javascript -mv('-n', 'file', 'dir/'); -mv('file1', 'file2', 'dir/'); -mv(['file1', 'file2'], 'dir/'); // same as above -``` - -Moves `source` file(s) to `dest`. - - -### pwd() - -Returns the current directory. - - -### rm([options,] file [, file ...]) -### rm([options,] file_array) - -Available options: - -+ `-f`: force -+ `-r, -R`: recursive - -Examples: - -```javascript -rm('-rf', '/tmp/*'); -rm('some_file.txt', 'another_file.txt'); -rm(['some_file.txt', 'another_file.txt']); // same as above -``` - -Removes files. - - -### sed([options,] search_regex, replacement, file [, file ...]) -### sed([options,] search_regex, replacement, file_array) - -Available options: - -+ `-i`: Replace contents of `file` in-place. _Note that no backups will be created!_ - -Examples: - -```javascript -sed('-i', 'PROGRAM_VERSION', 'v0.1.3', 'source.js'); -sed(/.*DELETE_THIS_LINE.*\n/, '', 'source.js'); -``` - -Reads an input string from `file`s, and performs a JavaScript `replace()` on the input -using the given `search_regex` and `replacement` string or function. Returns the new string after replacement. - -Note: - -Like unix `sed`, ShellJS `sed` supports capture groups. Capture groups are specified -using the `$n` syntax: - -```javascript -sed(/(\w+)\s(\w+)/, '$2, $1', 'file.txt'); -``` - - -### set(options) - -Available options: - -+ `+/-e`: exit upon error (`config.fatal`) -+ `+/-v`: verbose: show all commands (`config.verbose`) -+ `+/-f`: disable filename expansion (globbing) - -Examples: - -```javascript -set('-e'); // exit upon first error -set('+e'); // this undoes a "set('-e')" -``` - -Sets global configuration variables. - - -### sort([options,] file [, file ...]) -### sort([options,] file_array) - -Available options: - -+ `-r`: Reverse the results -+ `-n`: Compare according to numerical value - -Examples: - -```javascript -sort('foo.txt', 'bar.txt'); -sort('-r', 'foo.txt'); -``` - -Return the contents of the `file`s, sorted line-by-line. Sorting multiple -files mixes their content (just as unix `sort` does). - - -### tail([{'-n': \},] file [, file ...]) -### tail([{'-n': \},] file_array) - -Available options: - -+ `-n `: Show the last `` lines of `file`s - -Examples: - -```javascript -var str = tail({'-n': 1}, 'file*.txt'); -var str = tail('file1', 'file2'); -var str = tail(['file1', 'file2']); // same as above -``` - -Read the end of a `file`. - - -### tempdir() - -Examples: - -```javascript -var tmp = tempdir(); // "/tmp" for most *nix platforms -``` - -Searches and returns string containing a writeable, platform-dependent temporary directory. -Follows Python's [tempfile algorithm](http://docs.python.org/library/tempfile.html#tempfile.tempdir). - - -### test(expression) - -Available expression primaries: - -+ `'-b', 'path'`: true if path is a block device -+ `'-c', 'path'`: true if path is a character device -+ `'-d', 'path'`: true if path is a directory -+ `'-e', 'path'`: true if path exists -+ `'-f', 'path'`: true if path is a regular file -+ `'-L', 'path'`: true if path is a symbolic link -+ `'-p', 'path'`: true if path is a pipe (FIFO) -+ `'-S', 'path'`: true if path is a socket - -Examples: - -```javascript -if (test('-d', path)) { /* do something with dir */ }; -if (!test('-f', path)) continue; // skip if it's a regular file -``` - -Evaluates `expression` using the available primaries and returns corresponding value. - - -### ShellString.prototype.to(file) - -Examples: - -```javascript -cat('input.txt').to('output.txt'); -``` - -Analogous to the redirection operator `>` in Unix, but works with -`ShellStrings` (such as those returned by `cat`, `grep`, etc.). _Like Unix -redirections, `to()` will overwrite any existing file!_ - - -### ShellString.prototype.toEnd(file) - -Examples: - -```javascript -cat('input.txt').toEnd('output.txt'); -``` - -Analogous to the redirect-and-append operator `>>` in Unix, but works with -`ShellStrings` (such as those returned by `cat`, `grep`, etc.). - - -### touch([options,] file [, file ...]) -### touch([options,] file_array) - -Available options: - -+ `-a`: Change only the access time -+ `-c`: Do not create any files -+ `-m`: Change only the modification time -+ `-d DATE`: Parse `DATE` and use it instead of current time -+ `-r FILE`: Use `FILE`'s times instead of current time - -Examples: - -```javascript -touch('source.js'); -touch('-c', '/path/to/some/dir/source.js'); -touch({ '-r': FILE }, '/path/to/some/dir/source.js'); -``` - -Update the access and modification times of each `FILE` to the current time. -A `FILE` argument that does not exist is created empty, unless `-c` is supplied. -This is a partial implementation of [`touch(1)`](http://linux.die.net/man/1/touch). - - -### uniq([options,] [input, [output]]) - -Available options: - -+ `-i`: Ignore case while comparing -+ `-c`: Prefix lines by the number of occurrences -+ `-d`: Only print duplicate lines, one for each group of identical lines - -Examples: - -```javascript -uniq('foo.txt'); -uniq('-i', 'foo.txt'); -uniq('-cd', 'foo.txt', 'bar.txt'); -``` - -Filter adjacent matching lines from `input`. - - -### which(command) - -Examples: - -```javascript -var nodeExec = which('node'); -``` - -Searches for `command` in the system's `PATH`. On Windows, this uses the -`PATHEXT` variable to append the extension if it's not already executable. -Returns string containing the absolute path to `command`. - - -### exit(code) - -Exits the current process with the given exit `code`. - -### error() - -Tests if error occurred in the last command. Returns a truthy value if an -error returned, or a falsy value otherwise. - -**Note**: do not rely on the -return value to be an error message. If you need the last error message, use -the `.stderr` attribute from the last command's return value instead. - - -### ShellString(str) - -Examples: - -```javascript -var foo = ShellString('hello world'); -``` - -Turns a regular string into a string-like object similar to what each -command returns. This has special methods, like `.to()` and `.toEnd()`. - - -### env['VAR_NAME'] - -Object containing environment variables (both getter and setter). Shortcut -to `process.env`. - -### Pipes - -Examples: - -```javascript -grep('foo', 'file1.txt', 'file2.txt').sed(/o/g, 'a').to('output.txt'); -echo('files with o\'s in the name:\n' + ls().grep('o')); -cat('test.js').exec('node'); // pipe to exec() call -``` - -Commands can send their output to another command in a pipe-like fashion. -`sed`, `grep`, `cat`, `exec`, `to`, and `toEnd` can appear on the right-hand -side of a pipe. Pipes can be chained. - -## Configuration - - -### config.silent - -Example: - -```javascript -var sh = require('shelljs'); -var silentState = sh.config.silent; // save old silent state -sh.config.silent = true; -/* ... */ -sh.config.silent = silentState; // restore old silent state -``` - -Suppresses all command output if `true`, except for `echo()` calls. -Default is `false`. - -### config.fatal - -Example: - -```javascript -require('shelljs/global'); -config.fatal = true; // or set('-e'); -cp('this_file_does_not_exist', '/dev/null'); // throws Error here -/* more commands... */ -``` - -If `true`, the script will throw a Javascript error when any shell.js -command encounters an error. Default is `false`. This is analogous to -Bash's `set -e`. - -### config.verbose - -Example: - -```javascript -config.verbose = true; // or set('-v'); -cd('dir/'); -rm('-rf', 'foo.txt', 'bar.txt'); -exec('echo hello'); -``` - -Will print each command as follows: - -``` -cd dir/ -rm -rf foo.txt bar.txt -exec echo hello -``` - -### config.globOptions - -Example: - -```javascript -config.globOptions = {nodir: true}; -``` - -Use this value for calls to `glob.sync()` instead of the default options. - -### config.reset() - -Example: - -```javascript -var shell = require('shelljs'); -// Make changes to shell.config, and do stuff... -/* ... */ -shell.config.reset(); // reset to original state -// Do more stuff, but with original settings -/* ... */ -``` - -Reset `shell.config` to the defaults: - -```javascript -{ - fatal: false, - globOptions: {}, - maxdepth: 255, - noglob: false, - silent: false, - verbose: false, -} -``` - -## Team - -| [![Nate Fischer](https://avatars.githubusercontent.com/u/5801521?s=130)](https://github.com/nfischer) | [![Brandon Freitag](https://avatars1.githubusercontent.com/u/5988055?v=3&s=130)](http://github.com/freitagbr) | -|:---:|:---:| -| [Nate Fischer](https://github.com/nfischer) | [Brandon Freitag](http://github.com/freitagbr) | diff --git a/build_vtk_bundle/node_modules/shelljs/bin/shjs b/build_vtk_bundle/node_modules/shelljs/bin/shjs deleted file mode 100755 index c4609f7a..00000000 --- a/build_vtk_bundle/node_modules/shelljs/bin/shjs +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env node - -if (require.main !== module) { - throw new Error('Executable-only module should not be required'); -} - -// we must import global ShellJS methods after the require.main check to prevent the global -// namespace from being polluted if the error is caught -require('../global'); - -function exitWithErrorMessage(msg) { - console.log(msg); - console.log(); - process.exit(1); -} - -if (process.argv.length < 3) { - exitWithErrorMessage('ShellJS: missing argument (script name)'); -} - -var args, - scriptName = process.argv[2]; -env['NODE_PATH'] = __dirname + '/../..'; - -if (!scriptName.match(/\.js/) && !scriptName.match(/\.coffee/)) { - if (test('-f', scriptName + '.js')) - scriptName += '.js'; - if (test('-f', scriptName + '.coffee')) - scriptName += '.coffee'; -} - -if (!test('-f', scriptName)) { - exitWithErrorMessage('ShellJS: script not found ('+scriptName+')'); -} - -args = process.argv.slice(3); - -for (var i = 0, l = args.length; i < l; i++) { - if (args[i][0] !== "-"){ - args[i] = '"' + args[i] + '"'; // fixes arguments with multiple words - } -} - -var path = require('path'); -var extensions = require('interpret').extensions; -var rechoir = require('rechoir'); -rechoir.prepare(extensions, scriptName); -require(require.resolve(path.resolve(process.cwd(), scriptName))); diff --git a/build_vtk_bundle/node_modules/shelljs/commands.js b/build_vtk_bundle/node_modules/shelljs/commands.js deleted file mode 100644 index f31adb21..00000000 --- a/build_vtk_bundle/node_modules/shelljs/commands.js +++ /dev/null @@ -1,29 +0,0 @@ -module.exports = [ - 'cat', - 'cd', - 'chmod', - 'cp', - 'dirs', - 'echo', - 'exec', - 'find', - 'grep', - 'head', - 'ln', - 'ls', - 'mkdir', - 'mv', - 'pwd', - 'rm', - 'sed', - 'set', - 'sort', - 'tail', - 'tempdir', - 'test', - 'to', - 'toEnd', - 'touch', - 'uniq', - 'which', -]; diff --git a/build_vtk_bundle/node_modules/shelljs/global.js b/build_vtk_bundle/node_modules/shelljs/global.js deleted file mode 100644 index b232e66d..00000000 --- a/build_vtk_bundle/node_modules/shelljs/global.js +++ /dev/null @@ -1,12 +0,0 @@ -/* eslint no-extend-native: 0 */ -var shell = require('./shell.js'); -var common = require('./src/common'); -Object.keys(shell).forEach(function (cmd) { - global[cmd] = shell[cmd]; -}); - -var _to = require('./src/to'); -String.prototype.to = common.wrap('to', _to); - -var _toEnd = require('./src/toEnd'); -String.prototype.toEnd = common.wrap('toEnd', _toEnd); diff --git a/build_vtk_bundle/node_modules/shelljs/make.js b/build_vtk_bundle/node_modules/shelljs/make.js deleted file mode 100644 index a8438c84..00000000 --- a/build_vtk_bundle/node_modules/shelljs/make.js +++ /dev/null @@ -1,57 +0,0 @@ -require('./global'); - -global.config.fatal = true; -global.target = {}; - -var args = process.argv.slice(2), - targetArgs, - dashesLoc = args.indexOf('--'); - -// split args, everything after -- if only for targets -if (dashesLoc > -1) { - targetArgs = args.slice(dashesLoc + 1, args.length); - args = args.slice(0, dashesLoc); -} - -// This ensures we only execute the script targets after the entire script has -// been evaluated -setTimeout(function() { - var t; - - if (args.length === 1 && args[0] === '--help') { - console.log('Available targets:'); - for (t in global.target) - console.log(' ' + t); - return; - } - - // Wrap targets to prevent duplicate execution - for (t in global.target) { - (function(t, oldTarget){ - - // Wrap it - global.target[t] = function() { - if (!oldTarget.done){ - oldTarget.done = true; - oldTarget.result = oldTarget.apply(oldTarget, arguments); - } - return oldTarget.result; - }; - - })(t, global.target[t]); - } - - // Execute desired targets - if (args.length > 0) { - args.forEach(function(arg) { - if (arg in global.target) - global.target[arg](targetArgs); - else { - console.log('no such target: ' + arg); - } - }); - } else if ('all' in global.target) { - global.target.all(targetArgs); - } - -}, 0); diff --git a/build_vtk_bundle/node_modules/shelljs/package.json b/build_vtk_bundle/node_modules/shelljs/package.json deleted file mode 100644 index 5c79efee..00000000 --- a/build_vtk_bundle/node_modules/shelljs/package.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "name": "shelljs", - "version": "0.8.5", - "description": "Portable Unix shell commands for Node.js", - "keywords": [ - "shelljs", - "bash", - "unix", - "shell", - "makefile", - "make", - "jake", - "synchronous" - ], - "contributors": [ - "Nate Fischer (https://github.com/nfischer)", - "Brandon Freitag (https://github.com/freitagbr)" - ], - "repository": { - "type": "git", - "url": "git://github.com/shelljs/shelljs.git" - }, - "license": "BSD-3-Clause", - "homepage": "http://github.com/shelljs/shelljs", - "main": "./shell.js", - "files": [ - "commands.js", - "global.js", - "make.js", - "plugin.js", - "shell.js", - "bin", - "src" - ], - "scripts": { - "ci-or-install": "node scripts/ci-or-install", - "posttest": "npm run lint", - "test": "nyc --reporter=text --reporter=lcov ava test/*.js", - "test-no-coverage": "ava test/*.js", - "gendocs": "node scripts/generate-docs", - "lint": "eslint .", - "after-travis": "travis-check-changes", - "changelog": "shelljs-changelog", - "codecov": "codecov", - "release:major": "shelljs-release major", - "release:minor": "shelljs-release minor", - "release:patch": "shelljs-release patch" - }, - "bin": { - "shjs": "./bin/shjs" - }, - "dependencies": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - }, - "ava": { - "serial": true, - "powerAssert": false - }, - "devDependencies": { - "ava": "^0.21.0", - "chalk": "^1.1.3", - "codecov": "^3.0.2", - "coffee-script": "^1.10.0", - "eslint": "^2.0.0", - "eslint-config-airbnb-base": "^3.0.0", - "eslint-plugin-import": "^1.11.1", - "nyc": "^11.3.0", - "shelljs-changelog": "^0.2.0", - "shelljs-release": "^0.3.0", - "shx": "^0.2.0", - "travis-check-changes": "^0.2.0" - }, - "optionalDependencies": {}, - "engines": { - "node": ">=4" - } -} diff --git a/build_vtk_bundle/node_modules/shelljs/plugin.js b/build_vtk_bundle/node_modules/shelljs/plugin.js deleted file mode 100644 index f879ab32..00000000 --- a/build_vtk_bundle/node_modules/shelljs/plugin.js +++ /dev/null @@ -1,16 +0,0 @@ -// Various utilties exposed to plugins - -require('./shell'); // Create the ShellJS instance (mandatory) - -var common = require('./src/common'); - -var exportedAttributes = [ - 'error', // For signaling errors from within commands - 'parseOptions', // For custom option parsing - 'readFromPipe', // For commands with the .canReceivePipe attribute - 'register', // For registering plugins -]; - -exportedAttributes.forEach(function (attr) { - exports[attr] = common[attr]; -}); diff --git a/build_vtk_bundle/node_modules/shelljs/shell.js b/build_vtk_bundle/node_modules/shelljs/shell.js deleted file mode 100644 index f9c6f36d..00000000 --- a/build_vtk_bundle/node_modules/shelljs/shell.js +++ /dev/null @@ -1,156 +0,0 @@ -// -// ShellJS -// Unix shell commands on top of Node's API -// -// Copyright (c) 2012 Artur Adib -// http://github.com/shelljs/shelljs -// - -var common = require('./src/common'); - -//@ -//@ All commands run synchronously, unless otherwise stated. -//@ All commands accept standard bash globbing characters (`*`, `?`, etc.), -//@ compatible with the [node `glob` module](https://github.com/isaacs/node-glob). -//@ -//@ For less-commonly used commands and features, please check out our [wiki -//@ page](https://github.com/shelljs/shelljs/wiki). -//@ - -// Include the docs for all the default commands -//@commands - -// Load all default commands -require('./commands').forEach(function (command) { - require('./src/' + command); -}); - -//@ -//@ ### exit(code) -//@ -//@ Exits the current process with the given exit `code`. -exports.exit = process.exit; - -//@include ./src/error -exports.error = require('./src/error'); - -//@include ./src/common -exports.ShellString = common.ShellString; - -//@ -//@ ### env['VAR_NAME'] -//@ -//@ Object containing environment variables (both getter and setter). Shortcut -//@ to `process.env`. -exports.env = process.env; - -//@ -//@ ### Pipes -//@ -//@ Examples: -//@ -//@ ```javascript -//@ grep('foo', 'file1.txt', 'file2.txt').sed(/o/g, 'a').to('output.txt'); -//@ echo('files with o\'s in the name:\n' + ls().grep('o')); -//@ cat('test.js').exec('node'); // pipe to exec() call -//@ ``` -//@ -//@ Commands can send their output to another command in a pipe-like fashion. -//@ `sed`, `grep`, `cat`, `exec`, `to`, and `toEnd` can appear on the right-hand -//@ side of a pipe. Pipes can be chained. - -//@ -//@ ## Configuration -//@ - -exports.config = common.config; - -//@ -//@ ### config.silent -//@ -//@ Example: -//@ -//@ ```javascript -//@ var sh = require('shelljs'); -//@ var silentState = sh.config.silent; // save old silent state -//@ sh.config.silent = true; -//@ /* ... */ -//@ sh.config.silent = silentState; // restore old silent state -//@ ``` -//@ -//@ Suppresses all command output if `true`, except for `echo()` calls. -//@ Default is `false`. - -//@ -//@ ### config.fatal -//@ -//@ Example: -//@ -//@ ```javascript -//@ require('shelljs/global'); -//@ config.fatal = true; // or set('-e'); -//@ cp('this_file_does_not_exist', '/dev/null'); // throws Error here -//@ /* more commands... */ -//@ ``` -//@ -//@ If `true`, the script will throw a Javascript error when any shell.js -//@ command encounters an error. Default is `false`. This is analogous to -//@ Bash's `set -e`. - -//@ -//@ ### config.verbose -//@ -//@ Example: -//@ -//@ ```javascript -//@ config.verbose = true; // or set('-v'); -//@ cd('dir/'); -//@ rm('-rf', 'foo.txt', 'bar.txt'); -//@ exec('echo hello'); -//@ ``` -//@ -//@ Will print each command as follows: -//@ -//@ ``` -//@ cd dir/ -//@ rm -rf foo.txt bar.txt -//@ exec echo hello -//@ ``` - -//@ -//@ ### config.globOptions -//@ -//@ Example: -//@ -//@ ```javascript -//@ config.globOptions = {nodir: true}; -//@ ``` -//@ -//@ Use this value for calls to `glob.sync()` instead of the default options. - -//@ -//@ ### config.reset() -//@ -//@ Example: -//@ -//@ ```javascript -//@ var shell = require('shelljs'); -//@ // Make changes to shell.config, and do stuff... -//@ /* ... */ -//@ shell.config.reset(); // reset to original state -//@ // Do more stuff, but with original settings -//@ /* ... */ -//@ ``` -//@ -//@ Reset `shell.config` to the defaults: -//@ -//@ ```javascript -//@ { -//@ fatal: false, -//@ globOptions: {}, -//@ maxdepth: 255, -//@ noglob: false, -//@ silent: false, -//@ verbose: false, -//@ } -//@ ``` diff --git a/build_vtk_bundle/node_modules/shelljs/src/cat.js b/build_vtk_bundle/node_modules/shelljs/src/cat.js deleted file mode 100644 index c5c44347..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/cat.js +++ /dev/null @@ -1,76 +0,0 @@ -var common = require('./common'); -var fs = require('fs'); - -common.register('cat', _cat, { - canReceivePipe: true, - cmdOptions: { - 'n': 'number', - }, -}); - -//@ -//@ ### cat([options,] file [, file ...]) -//@ ### cat([options,] file_array) -//@ -//@ Available options: -//@ -//@ + `-n`: number all output lines -//@ -//@ Examples: -//@ -//@ ```javascript -//@ var str = cat('file*.txt'); -//@ var str = cat('file1', 'file2'); -//@ var str = cat(['file1', 'file2']); // same as above -//@ ``` -//@ -//@ Returns a string containing the given file, or a concatenated string -//@ containing the files if more than one file is given (a new line character is -//@ introduced between each file). -function _cat(options, files) { - var cat = common.readFromPipe(); - - if (!files && !cat) common.error('no paths given'); - - files = [].slice.call(arguments, 1); - - files.forEach(function (file) { - if (!fs.existsSync(file)) { - common.error('no such file or directory: ' + file); - } else if (common.statFollowLinks(file).isDirectory()) { - common.error(file + ': Is a directory'); - } - - cat += fs.readFileSync(file, 'utf8'); - }); - - if (options.number) { - cat = addNumbers(cat); - } - - return cat; -} -module.exports = _cat; - -function addNumbers(cat) { - var lines = cat.split('\n'); - var lastLine = lines.pop(); - - lines = lines.map(function (line, i) { - return numberedLine(i + 1, line); - }); - - if (lastLine.length) { - lastLine = numberedLine(lines.length + 1, lastLine); - } - lines.push(lastLine); - - return lines.join('\n'); -} - -function numberedLine(n, line) { - // GNU cat use six pad start number + tab. See http://lingrok.org/xref/coreutils/src/cat.c#57 - // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart - var number = (' ' + n).slice(-6) + '\t'; - return number + line; -} diff --git a/build_vtk_bundle/node_modules/shelljs/src/cd.js b/build_vtk_bundle/node_modules/shelljs/src/cd.js deleted file mode 100644 index 27bc2107..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/cd.js +++ /dev/null @@ -1,39 +0,0 @@ -var os = require('os'); -var common = require('./common'); - -common.register('cd', _cd, {}); - -//@ -//@ ### cd([dir]) -//@ -//@ Changes to directory `dir` for the duration of the script. Changes to home -//@ directory if no argument is supplied. -function _cd(options, dir) { - if (!dir) dir = os.homedir(); - - if (dir === '-') { - if (!process.env.OLDPWD) { - common.error('could not find previous directory'); - } else { - dir = process.env.OLDPWD; - } - } - - try { - var curDir = process.cwd(); - process.chdir(dir); - process.env.OLDPWD = curDir; - } catch (e) { - // something went wrong, let's figure out the error - var err; - try { - common.statFollowLinks(dir); // if this succeeds, it must be some sort of file - err = 'not a directory: ' + dir; - } catch (e2) { - err = 'no such file or directory: ' + dir; - } - if (err) common.error(err); - } - return ''; -} -module.exports = _cd; diff --git a/build_vtk_bundle/node_modules/shelljs/src/chmod.js b/build_vtk_bundle/node_modules/shelljs/src/chmod.js deleted file mode 100644 index bcc3a037..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/chmod.js +++ /dev/null @@ -1,216 +0,0 @@ -var common = require('./common'); -var fs = require('fs'); -var path = require('path'); - -var PERMS = (function (base) { - return { - OTHER_EXEC: base.EXEC, - OTHER_WRITE: base.WRITE, - OTHER_READ: base.READ, - - GROUP_EXEC: base.EXEC << 3, - GROUP_WRITE: base.WRITE << 3, - GROUP_READ: base.READ << 3, - - OWNER_EXEC: base.EXEC << 6, - OWNER_WRITE: base.WRITE << 6, - OWNER_READ: base.READ << 6, - - // Literal octal numbers are apparently not allowed in "strict" javascript. - STICKY: parseInt('01000', 8), - SETGID: parseInt('02000', 8), - SETUID: parseInt('04000', 8), - - TYPE_MASK: parseInt('0770000', 8), - }; -}({ - EXEC: 1, - WRITE: 2, - READ: 4, -})); - -common.register('chmod', _chmod, { -}); - -//@ -//@ ### chmod([options,] octal_mode || octal_string, file) -//@ ### chmod([options,] symbolic_mode, file) -//@ -//@ Available options: -//@ -//@ + `-v`: output a diagnostic for every file processed//@ -//@ + `-c`: like verbose, but report only when a change is made//@ -//@ + `-R`: change files and directories recursively//@ -//@ -//@ Examples: -//@ -//@ ```javascript -//@ chmod(755, '/Users/brandon'); -//@ chmod('755', '/Users/brandon'); // same as above -//@ chmod('u+x', '/Users/brandon'); -//@ chmod('-R', 'a-w', '/Users/brandon'); -//@ ``` -//@ -//@ Alters the permissions of a file or directory by either specifying the -//@ absolute permissions in octal form or expressing the changes in symbols. -//@ This command tries to mimic the POSIX behavior as much as possible. -//@ Notable exceptions: -//@ -//@ + In symbolic modes, `a-r` and `-r` are identical. No consideration is -//@ given to the `umask`. -//@ + There is no "quiet" option, since default behavior is to run silent. -function _chmod(options, mode, filePattern) { - if (!filePattern) { - if (options.length > 0 && options.charAt(0) === '-') { - // Special case where the specified file permissions started with - to subtract perms, which - // get picked up by the option parser as command flags. - // If we are down by one argument and options starts with -, shift everything over. - [].unshift.call(arguments, ''); - } else { - common.error('You must specify a file.'); - } - } - - options = common.parseOptions(options, { - 'R': 'recursive', - 'c': 'changes', - 'v': 'verbose', - }); - - filePattern = [].slice.call(arguments, 2); - - var files; - - // TODO: replace this with a call to common.expand() - if (options.recursive) { - files = []; - filePattern.forEach(function addFile(expandedFile) { - var stat = common.statNoFollowLinks(expandedFile); - - if (!stat.isSymbolicLink()) { - files.push(expandedFile); - - if (stat.isDirectory()) { // intentionally does not follow symlinks. - fs.readdirSync(expandedFile).forEach(function (child) { - addFile(expandedFile + '/' + child); - }); - } - } - }); - } else { - files = filePattern; - } - - files.forEach(function innerChmod(file) { - file = path.resolve(file); - if (!fs.existsSync(file)) { - common.error('File not found: ' + file); - } - - // When recursing, don't follow symlinks. - if (options.recursive && common.statNoFollowLinks(file).isSymbolicLink()) { - return; - } - - var stat = common.statFollowLinks(file); - var isDir = stat.isDirectory(); - var perms = stat.mode; - var type = perms & PERMS.TYPE_MASK; - - var newPerms = perms; - - if (isNaN(parseInt(mode, 8))) { - // parse options - mode.split(',').forEach(function (symbolicMode) { - var pattern = /([ugoa]*)([=\+-])([rwxXst]*)/i; - var matches = pattern.exec(symbolicMode); - - if (matches) { - var applyTo = matches[1]; - var operator = matches[2]; - var change = matches[3]; - - var changeOwner = applyTo.indexOf('u') !== -1 || applyTo === 'a' || applyTo === ''; - var changeGroup = applyTo.indexOf('g') !== -1 || applyTo === 'a' || applyTo === ''; - var changeOther = applyTo.indexOf('o') !== -1 || applyTo === 'a' || applyTo === ''; - - var changeRead = change.indexOf('r') !== -1; - var changeWrite = change.indexOf('w') !== -1; - var changeExec = change.indexOf('x') !== -1; - var changeExecDir = change.indexOf('X') !== -1; - var changeSticky = change.indexOf('t') !== -1; - var changeSetuid = change.indexOf('s') !== -1; - - if (changeExecDir && isDir) { - changeExec = true; - } - - var mask = 0; - if (changeOwner) { - mask |= (changeRead ? PERMS.OWNER_READ : 0) + (changeWrite ? PERMS.OWNER_WRITE : 0) + (changeExec ? PERMS.OWNER_EXEC : 0) + (changeSetuid ? PERMS.SETUID : 0); - } - if (changeGroup) { - mask |= (changeRead ? PERMS.GROUP_READ : 0) + (changeWrite ? PERMS.GROUP_WRITE : 0) + (changeExec ? PERMS.GROUP_EXEC : 0) + (changeSetuid ? PERMS.SETGID : 0); - } - if (changeOther) { - mask |= (changeRead ? PERMS.OTHER_READ : 0) + (changeWrite ? PERMS.OTHER_WRITE : 0) + (changeExec ? PERMS.OTHER_EXEC : 0); - } - - // Sticky bit is special - it's not tied to user, group or other. - if (changeSticky) { - mask |= PERMS.STICKY; - } - - switch (operator) { - case '+': - newPerms |= mask; - break; - - case '-': - newPerms &= ~mask; - break; - - case '=': - newPerms = type + mask; - - // According to POSIX, when using = to explicitly set the - // permissions, setuid and setgid can never be cleared. - if (common.statFollowLinks(file).isDirectory()) { - newPerms |= (PERMS.SETUID + PERMS.SETGID) & perms; - } - break; - default: - common.error('Could not recognize operator: `' + operator + '`'); - } - - if (options.verbose) { - console.log(file + ' -> ' + newPerms.toString(8)); - } - - if (perms !== newPerms) { - if (!options.verbose && options.changes) { - console.log(file + ' -> ' + newPerms.toString(8)); - } - fs.chmodSync(file, newPerms); - perms = newPerms; // for the next round of changes! - } - } else { - common.error('Invalid symbolic mode change: ' + symbolicMode); - } - }); - } else { - // they gave us a full number - newPerms = type + parseInt(mode, 8); - - // POSIX rules are that setuid and setgid can only be added using numeric - // form, but not cleared. - if (common.statFollowLinks(file).isDirectory()) { - newPerms |= (PERMS.SETUID + PERMS.SETGID) & perms; - } - - fs.chmodSync(file, newPerms); - } - }); - return ''; -} -module.exports = _chmod; diff --git a/build_vtk_bundle/node_modules/shelljs/src/common.js b/build_vtk_bundle/node_modules/shelljs/src/common.js deleted file mode 100644 index 64fa2fbc..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/common.js +++ /dev/null @@ -1,468 +0,0 @@ -// Ignore warning about 'new String()' -/* eslint no-new-wrappers: 0 */ -'use strict'; - -var os = require('os'); -var fs = require('fs'); -var glob = require('glob'); -var shell = require('..'); - -var shellMethods = Object.create(shell); - -exports.extend = Object.assign; - -// Check if we're running under electron -var isElectron = Boolean(process.versions.electron); - -// Module globals (assume no execPath by default) -var DEFAULT_CONFIG = { - fatal: false, - globOptions: {}, - maxdepth: 255, - noglob: false, - silent: false, - verbose: false, - execPath: null, - bufLength: 64 * 1024, // 64KB -}; - -var config = { - reset: function () { - Object.assign(this, DEFAULT_CONFIG); - if (!isElectron) { - this.execPath = process.execPath; - } - }, - resetForTesting: function () { - this.reset(); - this.silent = true; - }, -}; - -config.reset(); -exports.config = config; - -// Note: commands should generally consider these as read-only values. -var state = { - error: null, - errorCode: 0, - currentCmd: 'shell.js', -}; -exports.state = state; - -delete process.env.OLDPWD; // initially, there's no previous directory - -// Reliably test if something is any sort of javascript object -function isObject(a) { - return typeof a === 'object' && a !== null; -} -exports.isObject = isObject; - -function log() { - /* istanbul ignore next */ - if (!config.silent) { - console.error.apply(console, arguments); - } -} -exports.log = log; - -// Converts strings to be equivalent across all platforms. Primarily responsible -// for making sure we use '/' instead of '\' as path separators, but this may be -// expanded in the future if necessary -function convertErrorOutput(msg) { - if (typeof msg !== 'string') { - throw new TypeError('input must be a string'); - } - return msg.replace(/\\/g, '/'); -} -exports.convertErrorOutput = convertErrorOutput; - -// Shows error message. Throws if config.fatal is true -function error(msg, _code, options) { - // Validate input - if (typeof msg !== 'string') throw new Error('msg must be a string'); - - var DEFAULT_OPTIONS = { - continue: false, - code: 1, - prefix: state.currentCmd + ': ', - silent: false, - }; - - if (typeof _code === 'number' && isObject(options)) { - options.code = _code; - } else if (isObject(_code)) { // no 'code' - options = _code; - } else if (typeof _code === 'number') { // no 'options' - options = { code: _code }; - } else if (typeof _code !== 'number') { // only 'msg' - options = {}; - } - options = Object.assign({}, DEFAULT_OPTIONS, options); - - if (!state.errorCode) state.errorCode = options.code; - - var logEntry = convertErrorOutput(options.prefix + msg); - state.error = state.error ? state.error + '\n' : ''; - state.error += logEntry; - - // Throw an error, or log the entry - if (config.fatal) throw new Error(logEntry); - if (msg.length > 0 && !options.silent) log(logEntry); - - if (!options.continue) { - throw { - msg: 'earlyExit', - retValue: (new ShellString('', state.error, state.errorCode)), - }; - } -} -exports.error = error; - -//@ -//@ ### ShellString(str) -//@ -//@ Examples: -//@ -//@ ```javascript -//@ var foo = ShellString('hello world'); -//@ ``` -//@ -//@ Turns a regular string into a string-like object similar to what each -//@ command returns. This has special methods, like `.to()` and `.toEnd()`. -function ShellString(stdout, stderr, code) { - var that; - if (stdout instanceof Array) { - that = stdout; - that.stdout = stdout.join('\n'); - if (stdout.length > 0) that.stdout += '\n'; - } else { - that = new String(stdout); - that.stdout = stdout; - } - that.stderr = stderr; - that.code = code; - // A list of all commands that can appear on the right-hand side of a pipe - // (populated by calls to common.wrap()) - pipeMethods.forEach(function (cmd) { - that[cmd] = shellMethods[cmd].bind(that); - }); - return that; -} - -exports.ShellString = ShellString; - -// Returns {'alice': true, 'bob': false} when passed a string and dictionary as follows: -// parseOptions('-a', {'a':'alice', 'b':'bob'}); -// Returns {'reference': 'string-value', 'bob': false} when passed two dictionaries of the form: -// parseOptions({'-r': 'string-value'}, {'r':'reference', 'b':'bob'}); -// Throws an error when passed a string that does not start with '-': -// parseOptions('a', {'a':'alice'}); // throws -function parseOptions(opt, map, errorOptions) { - // Validate input - if (typeof opt !== 'string' && !isObject(opt)) { - throw new Error('options must be strings or key-value pairs'); - } else if (!isObject(map)) { - throw new Error('parseOptions() internal error: map must be an object'); - } else if (errorOptions && !isObject(errorOptions)) { - throw new Error('parseOptions() internal error: errorOptions must be object'); - } - - if (opt === '--') { - // This means there are no options. - return {}; - } - - // All options are false by default - var options = {}; - Object.keys(map).forEach(function (letter) { - var optName = map[letter]; - if (optName[0] !== '!') { - options[optName] = false; - } - }); - - if (opt === '') return options; // defaults - - if (typeof opt === 'string') { - if (opt[0] !== '-') { - throw new Error("Options string must start with a '-'"); - } - - // e.g. chars = ['R', 'f'] - var chars = opt.slice(1).split(''); - - chars.forEach(function (c) { - if (c in map) { - var optionName = map[c]; - if (optionName[0] === '!') { - options[optionName.slice(1)] = false; - } else { - options[optionName] = true; - } - } else { - error('option not recognized: ' + c, errorOptions || {}); - } - }); - } else { // opt is an Object - Object.keys(opt).forEach(function (key) { - // key is a string of the form '-r', '-d', etc. - var c = key[1]; - if (c in map) { - var optionName = map[c]; - options[optionName] = opt[key]; // assign the given value - } else { - error('option not recognized: ' + c, errorOptions || {}); - } - }); - } - return options; -} -exports.parseOptions = parseOptions; - -// Expands wildcards with matching (ie. existing) file names. -// For example: -// expand(['file*.js']) = ['file1.js', 'file2.js', ...] -// (if the files 'file1.js', 'file2.js', etc, exist in the current dir) -function expand(list) { - if (!Array.isArray(list)) { - throw new TypeError('must be an array'); - } - var expanded = []; - list.forEach(function (listEl) { - // Don't expand non-strings - if (typeof listEl !== 'string') { - expanded.push(listEl); - } else { - var ret; - try { - ret = glob.sync(listEl, config.globOptions); - // if nothing matched, interpret the string literally - ret = ret.length > 0 ? ret : [listEl]; - } catch (e) { - // if glob fails, interpret the string literally - ret = [listEl]; - } - expanded = expanded.concat(ret); - } - }); - return expanded; -} -exports.expand = expand; - -// Normalizes Buffer creation, using Buffer.alloc if possible. -// Also provides a good default buffer length for most use cases. -var buffer = typeof Buffer.alloc === 'function' ? - function (len) { - return Buffer.alloc(len || config.bufLength); - } : - function (len) { - return new Buffer(len || config.bufLength); - }; -exports.buffer = buffer; - -// Normalizes _unlinkSync() across platforms to match Unix behavior, i.e. -// file can be unlinked even if it's read-only, see https://github.com/joyent/node/issues/3006 -function unlinkSync(file) { - try { - fs.unlinkSync(file); - } catch (e) { - // Try to override file permission - /* istanbul ignore next */ - if (e.code === 'EPERM') { - fs.chmodSync(file, '0666'); - fs.unlinkSync(file); - } else { - throw e; - } - } -} -exports.unlinkSync = unlinkSync; - -// wrappers around common.statFollowLinks and common.statNoFollowLinks that clarify intent -// and improve readability -function statFollowLinks() { - return fs.statSync.apply(fs, arguments); -} -exports.statFollowLinks = statFollowLinks; - -function statNoFollowLinks() { - return fs.lstatSync.apply(fs, arguments); -} -exports.statNoFollowLinks = statNoFollowLinks; - -// e.g. 'shelljs_a5f185d0443ca...' -function randomFileName() { - function randomHash(count) { - if (count === 1) { - return parseInt(16 * Math.random(), 10).toString(16); - } - var hash = ''; - for (var i = 0; i < count; i++) { - hash += randomHash(1); - } - return hash; - } - - return 'shelljs_' + randomHash(20); -} -exports.randomFileName = randomFileName; - -// Common wrapper for all Unix-like commands that performs glob expansion, -// command-logging, and other nice things -function wrap(cmd, fn, options) { - options = options || {}; - return function () { - var retValue = null; - - state.currentCmd = cmd; - state.error = null; - state.errorCode = 0; - - try { - var args = [].slice.call(arguments, 0); - - // Log the command to stderr, if appropriate - if (config.verbose) { - console.error.apply(console, [cmd].concat(args)); - } - - // If this is coming from a pipe, let's set the pipedValue (otherwise, set - // it to the empty string) - state.pipedValue = (this && typeof this.stdout === 'string') ? this.stdout : ''; - - if (options.unix === false) { // this branch is for exec() - retValue = fn.apply(this, args); - } else { // and this branch is for everything else - if (isObject(args[0]) && args[0].constructor.name === 'Object') { - // a no-op, allowing the syntax `touch({'-r': file}, ...)` - } else if (args.length === 0 || typeof args[0] !== 'string' || args[0].length <= 1 || args[0][0] !== '-') { - args.unshift(''); // only add dummy option if '-option' not already present - } - - // flatten out arrays that are arguments, to make the syntax: - // `cp([file1, file2, file3], dest);` - // equivalent to: - // `cp(file1, file2, file3, dest);` - args = args.reduce(function (accum, cur) { - if (Array.isArray(cur)) { - return accum.concat(cur); - } - accum.push(cur); - return accum; - }, []); - - // Convert ShellStrings (basically just String objects) to regular strings - args = args.map(function (arg) { - if (isObject(arg) && arg.constructor.name === 'String') { - return arg.toString(); - } - return arg; - }); - - // Expand the '~' if appropriate - var homeDir = os.homedir(); - args = args.map(function (arg) { - if (typeof arg === 'string' && arg.slice(0, 2) === '~/' || arg === '~') { - return arg.replace(/^~/, homeDir); - } - return arg; - }); - - // Perform glob-expansion on all arguments after globStart, but preserve - // the arguments before it (like regexes for sed and grep) - if (!config.noglob && options.allowGlobbing === true) { - args = args.slice(0, options.globStart).concat(expand(args.slice(options.globStart))); - } - - try { - // parse options if options are provided - if (isObject(options.cmdOptions)) { - args[0] = parseOptions(args[0], options.cmdOptions); - } - - retValue = fn.apply(this, args); - } catch (e) { - /* istanbul ignore else */ - if (e.msg === 'earlyExit') { - retValue = e.retValue; - } else { - throw e; // this is probably a bug that should be thrown up the call stack - } - } - } - } catch (e) { - /* istanbul ignore next */ - if (!state.error) { - // If state.error hasn't been set it's an error thrown by Node, not us - probably a bug... - e.name = 'ShellJSInternalError'; - throw e; - } - if (config.fatal) throw e; - } - - if (options.wrapOutput && - (typeof retValue === 'string' || Array.isArray(retValue))) { - retValue = new ShellString(retValue, state.error, state.errorCode); - } - - state.currentCmd = 'shell.js'; - return retValue; - }; -} // wrap -exports.wrap = wrap; - -// This returns all the input that is piped into the current command (or the -// empty string, if this isn't on the right-hand side of a pipe -function _readFromPipe() { - return state.pipedValue; -} -exports.readFromPipe = _readFromPipe; - -var DEFAULT_WRAP_OPTIONS = { - allowGlobbing: true, - canReceivePipe: false, - cmdOptions: null, - globStart: 1, - pipeOnly: false, - wrapOutput: true, - unix: true, -}; - -// This is populated during plugin registration -var pipeMethods = []; - -// Register a new ShellJS command -function _register(name, implementation, wrapOptions) { - wrapOptions = wrapOptions || {}; - - // Validate options - Object.keys(wrapOptions).forEach(function (option) { - if (!DEFAULT_WRAP_OPTIONS.hasOwnProperty(option)) { - throw new Error("Unknown option '" + option + "'"); - } - if (typeof wrapOptions[option] !== typeof DEFAULT_WRAP_OPTIONS[option]) { - throw new TypeError("Unsupported type '" + typeof wrapOptions[option] + - "' for option '" + option + "'"); - } - }); - - // If an option isn't specified, use the default - wrapOptions = Object.assign({}, DEFAULT_WRAP_OPTIONS, wrapOptions); - - if (shell.hasOwnProperty(name)) { - throw new Error('Command `' + name + '` already exists'); - } - - if (wrapOptions.pipeOnly) { - wrapOptions.canReceivePipe = true; - shellMethods[name] = wrap(name, implementation, wrapOptions); - } else { - shell[name] = wrap(name, implementation, wrapOptions); - } - - if (wrapOptions.canReceivePipe) { - pipeMethods.push(name); - } -} -exports.register = _register; diff --git a/build_vtk_bundle/node_modules/shelljs/src/cp.js b/build_vtk_bundle/node_modules/shelljs/src/cp.js deleted file mode 100644 index 6218f670..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/cp.js +++ /dev/null @@ -1,304 +0,0 @@ -var fs = require('fs'); -var path = require('path'); -var common = require('./common'); - -common.register('cp', _cp, { - cmdOptions: { - 'f': '!no_force', - 'n': 'no_force', - 'u': 'update', - 'R': 'recursive', - 'r': 'recursive', - 'L': 'followsymlink', - 'P': 'noFollowsymlink', - }, - wrapOutput: false, -}); - -// Buffered file copy, synchronous -// (Using readFileSync() + writeFileSync() could easily cause a memory overflow -// with large files) -function copyFileSync(srcFile, destFile, options) { - if (!fs.existsSync(srcFile)) { - common.error('copyFileSync: no such file or directory: ' + srcFile); - } - - var isWindows = process.platform === 'win32'; - - // Check the mtimes of the files if the '-u' flag is provided - try { - if (options.update && common.statFollowLinks(srcFile).mtime < fs.statSync(destFile).mtime) { - return; - } - } catch (e) { - // If we're here, destFile probably doesn't exist, so just do a normal copy - } - - if (common.statNoFollowLinks(srcFile).isSymbolicLink() && !options.followsymlink) { - try { - common.statNoFollowLinks(destFile); - common.unlinkSync(destFile); // re-link it - } catch (e) { - // it doesn't exist, so no work needs to be done - } - - var symlinkFull = fs.readlinkSync(srcFile); - fs.symlinkSync(symlinkFull, destFile, isWindows ? 'junction' : null); - } else { - var buf = common.buffer(); - var bufLength = buf.length; - var bytesRead = bufLength; - var pos = 0; - var fdr = null; - var fdw = null; - - try { - fdr = fs.openSync(srcFile, 'r'); - } catch (e) { - /* istanbul ignore next */ - common.error('copyFileSync: could not read src file (' + srcFile + ')'); - } - - try { - fdw = fs.openSync(destFile, 'w'); - } catch (e) { - /* istanbul ignore next */ - common.error('copyFileSync: could not write to dest file (code=' + e.code + '):' + destFile); - } - - while (bytesRead === bufLength) { - bytesRead = fs.readSync(fdr, buf, 0, bufLength, pos); - fs.writeSync(fdw, buf, 0, bytesRead); - pos += bytesRead; - } - - fs.closeSync(fdr); - fs.closeSync(fdw); - - fs.chmodSync(destFile, common.statFollowLinks(srcFile).mode); - } -} - -// Recursively copies 'sourceDir' into 'destDir' -// Adapted from https://github.com/ryanmcgrath/wrench-js -// -// Copyright (c) 2010 Ryan McGrath -// Copyright (c) 2012 Artur Adib -// -// Licensed under the MIT License -// http://www.opensource.org/licenses/mit-license.php -function cpdirSyncRecursive(sourceDir, destDir, currentDepth, opts) { - if (!opts) opts = {}; - - // Ensure there is not a run away recursive copy - if (currentDepth >= common.config.maxdepth) return; - currentDepth++; - - var isWindows = process.platform === 'win32'; - - // Create the directory where all our junk is moving to; read the mode of the - // source directory and mirror it - try { - fs.mkdirSync(destDir); - } catch (e) { - // if the directory already exists, that's okay - if (e.code !== 'EEXIST') throw e; - } - - var files = fs.readdirSync(sourceDir); - - for (var i = 0; i < files.length; i++) { - var srcFile = sourceDir + '/' + files[i]; - var destFile = destDir + '/' + files[i]; - var srcFileStat = common.statNoFollowLinks(srcFile); - - var symlinkFull; - if (opts.followsymlink) { - if (cpcheckcycle(sourceDir, srcFile)) { - // Cycle link found. - console.error('Cycle link found.'); - symlinkFull = fs.readlinkSync(srcFile); - fs.symlinkSync(symlinkFull, destFile, isWindows ? 'junction' : null); - continue; - } - } - if (srcFileStat.isDirectory()) { - /* recursion this thing right on back. */ - cpdirSyncRecursive(srcFile, destFile, currentDepth, opts); - } else if (srcFileStat.isSymbolicLink() && !opts.followsymlink) { - symlinkFull = fs.readlinkSync(srcFile); - try { - common.statNoFollowLinks(destFile); - common.unlinkSync(destFile); // re-link it - } catch (e) { - // it doesn't exist, so no work needs to be done - } - fs.symlinkSync(symlinkFull, destFile, isWindows ? 'junction' : null); - } else if (srcFileStat.isSymbolicLink() && opts.followsymlink) { - srcFileStat = common.statFollowLinks(srcFile); - if (srcFileStat.isDirectory()) { - cpdirSyncRecursive(srcFile, destFile, currentDepth, opts); - } else { - copyFileSync(srcFile, destFile, opts); - } - } else { - /* At this point, we've hit a file actually worth copying... so copy it on over. */ - if (fs.existsSync(destFile) && opts.no_force) { - common.log('skipping existing file: ' + files[i]); - } else { - copyFileSync(srcFile, destFile, opts); - } - } - } // for files - - // finally change the mode for the newly created directory (otherwise, we - // couldn't add files to a read-only directory). - var checkDir = common.statFollowLinks(sourceDir); - fs.chmodSync(destDir, checkDir.mode); -} // cpdirSyncRecursive - -// Checks if cureent file was created recently -function checkRecentCreated(sources, index) { - var lookedSource = sources[index]; - return sources.slice(0, index).some(function (src) { - return path.basename(src) === path.basename(lookedSource); - }); -} - -function cpcheckcycle(sourceDir, srcFile) { - var srcFileStat = common.statNoFollowLinks(srcFile); - if (srcFileStat.isSymbolicLink()) { - // Do cycle check. For example: - // $ mkdir -p 1/2/3/4 - // $ cd 1/2/3/4 - // $ ln -s ../../3 link - // $ cd ../../../.. - // $ cp -RL 1 copy - var cyclecheck = common.statFollowLinks(srcFile); - if (cyclecheck.isDirectory()) { - var sourcerealpath = fs.realpathSync(sourceDir); - var symlinkrealpath = fs.realpathSync(srcFile); - var re = new RegExp(symlinkrealpath); - if (re.test(sourcerealpath)) { - return true; - } - } - } - return false; -} - -//@ -//@ ### cp([options,] source [, source ...], dest) -//@ ### cp([options,] source_array, dest) -//@ -//@ Available options: -//@ -//@ + `-f`: force (default behavior) -//@ + `-n`: no-clobber -//@ + `-u`: only copy if `source` is newer than `dest` -//@ + `-r`, `-R`: recursive -//@ + `-L`: follow symlinks -//@ + `-P`: don't follow symlinks -//@ -//@ Examples: -//@ -//@ ```javascript -//@ cp('file1', 'dir1'); -//@ cp('-R', 'path/to/dir/', '~/newCopy/'); -//@ cp('-Rf', '/tmp/*', '/usr/local/*', '/home/tmp'); -//@ cp('-Rf', ['/tmp/*', '/usr/local/*'], '/home/tmp'); // same as above -//@ ``` -//@ -//@ Copies files. -function _cp(options, sources, dest) { - // If we're missing -R, it actually implies -L (unless -P is explicit) - if (options.followsymlink) { - options.noFollowsymlink = false; - } - if (!options.recursive && !options.noFollowsymlink) { - options.followsymlink = true; - } - - // Get sources, dest - if (arguments.length < 3) { - common.error('missing and/or '); - } else { - sources = [].slice.call(arguments, 1, arguments.length - 1); - dest = arguments[arguments.length - 1]; - } - - var destExists = fs.existsSync(dest); - var destStat = destExists && common.statFollowLinks(dest); - - // Dest is not existing dir, but multiple sources given - if ((!destExists || !destStat.isDirectory()) && sources.length > 1) { - common.error('dest is not a directory (too many sources)'); - } - - // Dest is an existing file, but -n is given - if (destExists && destStat.isFile() && options.no_force) { - return new common.ShellString('', '', 0); - } - - sources.forEach(function (src, srcIndex) { - if (!fs.existsSync(src)) { - if (src === '') src = "''"; // if src was empty string, display empty string - common.error('no such file or directory: ' + src, { continue: true }); - return; // skip file - } - var srcStat = common.statFollowLinks(src); - if (!options.noFollowsymlink && srcStat.isDirectory()) { - if (!options.recursive) { - // Non-Recursive - common.error("omitting directory '" + src + "'", { continue: true }); - } else { - // Recursive - // 'cp /a/source dest' should create 'source' in 'dest' - var newDest = (destStat && destStat.isDirectory()) ? - path.join(dest, path.basename(src)) : - dest; - - try { - common.statFollowLinks(path.dirname(dest)); - cpdirSyncRecursive(src, newDest, 0, { no_force: options.no_force, followsymlink: options.followsymlink }); - } catch (e) { - /* istanbul ignore next */ - common.error("cannot create directory '" + dest + "': No such file or directory"); - } - } - } else { - // If here, src is a file - - // When copying to '/path/dir': - // thisDest = '/path/dir/file1' - var thisDest = dest; - if (destStat && destStat.isDirectory()) { - thisDest = path.normalize(dest + '/' + path.basename(src)); - } - - var thisDestExists = fs.existsSync(thisDest); - if (thisDestExists && checkRecentCreated(sources, srcIndex)) { - // cannot overwrite file created recently in current execution, but we want to continue copying other files - if (!options.no_force) { - common.error("will not overwrite just-created '" + thisDest + "' with '" + src + "'", { continue: true }); - } - return; - } - - if (thisDestExists && options.no_force) { - return; // skip file - } - - if (path.relative(src, thisDest) === '') { - // a file cannot be copied to itself, but we want to continue copying other files - common.error("'" + thisDest + "' and '" + src + "' are the same file", { continue: true }); - return; - } - - copyFileSync(src, thisDest, options); - } - }); // forEach(src) - - return new common.ShellString('', common.state.error, common.state.errorCode); -} -module.exports = _cp; diff --git a/build_vtk_bundle/node_modules/shelljs/src/dirs.js b/build_vtk_bundle/node_modules/shelljs/src/dirs.js deleted file mode 100644 index 26547a5b..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/dirs.js +++ /dev/null @@ -1,212 +0,0 @@ -var common = require('./common'); -var _cd = require('./cd'); -var path = require('path'); - -common.register('dirs', _dirs, { - wrapOutput: false, -}); -common.register('pushd', _pushd, { - wrapOutput: false, -}); -common.register('popd', _popd, { - wrapOutput: false, -}); - -// Pushd/popd/dirs internals -var _dirStack = []; - -function _isStackIndex(index) { - return (/^[\-+]\d+$/).test(index); -} - -function _parseStackIndex(index) { - if (_isStackIndex(index)) { - if (Math.abs(index) < _dirStack.length + 1) { // +1 for pwd - return (/^-/).test(index) ? Number(index) - 1 : Number(index); - } - common.error(index + ': directory stack index out of range'); - } else { - common.error(index + ': invalid number'); - } -} - -function _actualDirStack() { - return [process.cwd()].concat(_dirStack); -} - -//@ -//@ ### pushd([options,] [dir | '-N' | '+N']) -//@ -//@ Available options: -//@ -//@ + `-n`: Suppresses the normal change of directory when adding directories to the stack, so that only the stack is manipulated. -//@ + `-q`: Supresses output to the console. -//@ -//@ Arguments: -//@ -//@ + `dir`: Sets the current working directory to the top of the stack, then executes the equivalent of `cd dir`. -//@ + `+N`: Brings the Nth directory (counting from the left of the list printed by dirs, starting with zero) to the top of the list by rotating the stack. -//@ + `-N`: Brings the Nth directory (counting from the right of the list printed by dirs, starting with zero) to the top of the list by rotating the stack. -//@ -//@ Examples: -//@ -//@ ```javascript -//@ // process.cwd() === '/usr' -//@ pushd('/etc'); // Returns /etc /usr -//@ pushd('+1'); // Returns /usr /etc -//@ ``` -//@ -//@ Save the current directory on the top of the directory stack and then `cd` to `dir`. With no arguments, `pushd` exchanges the top two directories. Returns an array of paths in the stack. -function _pushd(options, dir) { - if (_isStackIndex(options)) { - dir = options; - options = ''; - } - - options = common.parseOptions(options, { - 'n': 'no-cd', - 'q': 'quiet', - }); - - var dirs = _actualDirStack(); - - if (dir === '+0') { - return dirs; // +0 is a noop - } else if (!dir) { - if (dirs.length > 1) { - dirs = dirs.splice(1, 1).concat(dirs); - } else { - return common.error('no other directory'); - } - } else if (_isStackIndex(dir)) { - var n = _parseStackIndex(dir); - dirs = dirs.slice(n).concat(dirs.slice(0, n)); - } else { - if (options['no-cd']) { - dirs.splice(1, 0, dir); - } else { - dirs.unshift(dir); - } - } - - if (options['no-cd']) { - dirs = dirs.slice(1); - } else { - dir = path.resolve(dirs.shift()); - _cd('', dir); - } - - _dirStack = dirs; - return _dirs(options.quiet ? '-q' : ''); -} -exports.pushd = _pushd; - -//@ -//@ -//@ ### popd([options,] ['-N' | '+N']) -//@ -//@ Available options: -//@ -//@ + `-n`: Suppress the normal directory change when removing directories from the stack, so that only the stack is manipulated. -//@ + `-q`: Supresses output to the console. -//@ -//@ Arguments: -//@ -//@ + `+N`: Removes the Nth directory (counting from the left of the list printed by dirs), starting with zero. -//@ + `-N`: Removes the Nth directory (counting from the right of the list printed by dirs), starting with zero. -//@ -//@ Examples: -//@ -//@ ```javascript -//@ echo(process.cwd()); // '/usr' -//@ pushd('/etc'); // '/etc /usr' -//@ echo(process.cwd()); // '/etc' -//@ popd(); // '/usr' -//@ echo(process.cwd()); // '/usr' -//@ ``` -//@ -//@ When no arguments are given, `popd` removes the top directory from the stack and performs a `cd` to the new top directory. The elements are numbered from 0, starting at the first directory listed with dirs (i.e., `popd` is equivalent to `popd +0`). Returns an array of paths in the stack. -function _popd(options, index) { - if (_isStackIndex(options)) { - index = options; - options = ''; - } - - options = common.parseOptions(options, { - 'n': 'no-cd', - 'q': 'quiet', - }); - - if (!_dirStack.length) { - return common.error('directory stack empty'); - } - - index = _parseStackIndex(index || '+0'); - - if (options['no-cd'] || index > 0 || _dirStack.length + index === 0) { - index = index > 0 ? index - 1 : index; - _dirStack.splice(index, 1); - } else { - var dir = path.resolve(_dirStack.shift()); - _cd('', dir); - } - - return _dirs(options.quiet ? '-q' : ''); -} -exports.popd = _popd; - -//@ -//@ -//@ ### dirs([options | '+N' | '-N']) -//@ -//@ Available options: -//@ -//@ + `-c`: Clears the directory stack by deleting all of the elements. -//@ + `-q`: Supresses output to the console. -//@ -//@ Arguments: -//@ -//@ + `+N`: Displays the Nth directory (counting from the left of the list printed by dirs when invoked without options), starting with zero. -//@ + `-N`: Displays the Nth directory (counting from the right of the list printed by dirs when invoked without options), starting with zero. -//@ -//@ Display the list of currently remembered directories. Returns an array of paths in the stack, or a single path if `+N` or `-N` was specified. -//@ -//@ See also: `pushd`, `popd` -function _dirs(options, index) { - if (_isStackIndex(options)) { - index = options; - options = ''; - } - - options = common.parseOptions(options, { - 'c': 'clear', - 'q': 'quiet', - }); - - if (options.clear) { - _dirStack = []; - return _dirStack; - } - - var stack = _actualDirStack(); - - if (index) { - index = _parseStackIndex(index); - - if (index < 0) { - index = stack.length + index; - } - - if (!options.quiet) { - common.log(stack[index]); - } - return stack[index]; - } - - if (!options.quiet) { - common.log(stack.join(' ')); - } - - return stack; -} -exports.dirs = _dirs; diff --git a/build_vtk_bundle/node_modules/shelljs/src/echo.js b/build_vtk_bundle/node_modules/shelljs/src/echo.js deleted file mode 100644 index 1b089d59..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/echo.js +++ /dev/null @@ -1,63 +0,0 @@ -var format = require('util').format; - -var common = require('./common'); - -common.register('echo', _echo, { - allowGlobbing: false, -}); - -//@ -//@ ### echo([options,] string [, string ...]) -//@ -//@ Available options: -//@ -//@ + `-e`: interpret backslash escapes (default) -//@ + `-n`: remove trailing newline from output -//@ -//@ Examples: -//@ -//@ ```javascript -//@ echo('hello world'); -//@ var str = echo('hello world'); -//@ echo('-n', 'no newline at end'); -//@ ``` -//@ -//@ Prints `string` to stdout, and returns string with additional utility methods -//@ like `.to()`. -function _echo(opts) { - // allow strings starting with '-', see issue #20 - var messages = [].slice.call(arguments, opts ? 0 : 1); - var options = {}; - - // If the first argument starts with '-', parse it as options string. - // If parseOptions throws, it wasn't an options string. - try { - options = common.parseOptions(messages[0], { - 'e': 'escapes', - 'n': 'no_newline', - }, { - silent: true, - }); - - // Allow null to be echoed - if (messages[0]) { - messages.shift(); - } - } catch (_) { - // Clear out error if an error occurred - common.state.error = null; - } - - var output = format.apply(null, messages); - - // Add newline if -n is not passed. - if (!options.no_newline) { - output += '\n'; - } - - process.stdout.write(output); - - return output; -} - -module.exports = _echo; diff --git a/build_vtk_bundle/node_modules/shelljs/src/error.js b/build_vtk_bundle/node_modules/shelljs/src/error.js deleted file mode 100644 index b0ed59e1..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/error.js +++ /dev/null @@ -1,15 +0,0 @@ -var common = require('./common'); - -//@ -//@ ### error() -//@ -//@ Tests if error occurred in the last command. Returns a truthy value if an -//@ error returned, or a falsy value otherwise. -//@ -//@ **Note**: do not rely on the -//@ return value to be an error message. If you need the last error message, use -//@ the `.stderr` attribute from the last command's return value instead. -function error() { - return common.state.error; -} -module.exports = error; diff --git a/build_vtk_bundle/node_modules/shelljs/src/exec-child.js b/build_vtk_bundle/node_modules/shelljs/src/exec-child.js deleted file mode 100644 index eab86ed3..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/exec-child.js +++ /dev/null @@ -1,39 +0,0 @@ -if (require.main !== module) { - throw new Error('This file should not be required'); -} - -var childProcess = require('child_process'); -var fs = require('fs'); - -var paramFilePath = process.argv[2]; - -var serializedParams = fs.readFileSync(paramFilePath, 'utf8'); -var params = JSON.parse(serializedParams); - -var cmd = params.command; -var execOptions = params.execOptions; -var pipe = params.pipe; -var stdoutFile = params.stdoutFile; -var stderrFile = params.stderrFile; - -var c = childProcess.exec(cmd, execOptions, function (err) { - if (!err) { - process.exitCode = 0; - } else if (err.code === undefined) { - process.exitCode = 1; - } else { - process.exitCode = err.code; - } -}); - -var stdoutStream = fs.createWriteStream(stdoutFile); -var stderrStream = fs.createWriteStream(stderrFile); - -c.stdout.pipe(stdoutStream); -c.stderr.pipe(stderrStream); -c.stdout.pipe(process.stdout); -c.stderr.pipe(process.stderr); - -if (pipe) { - c.stdin.end(pipe); -} diff --git a/build_vtk_bundle/node_modules/shelljs/src/exec.js b/build_vtk_bundle/node_modules/shelljs/src/exec.js deleted file mode 100644 index 78faf13d..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/exec.js +++ /dev/null @@ -1,226 +0,0 @@ -var common = require('./common'); -var _tempDir = require('./tempdir').tempDir; -var _pwd = require('./pwd'); -var path = require('path'); -var fs = require('fs'); -var child = require('child_process'); - -var DEFAULT_MAXBUFFER_SIZE = 20 * 1024 * 1024; -var DEFAULT_ERROR_CODE = 1; - -common.register('exec', _exec, { - unix: false, - canReceivePipe: true, - wrapOutput: false, -}); - -// We use this function to run `exec` synchronously while also providing realtime -// output. -function execSync(cmd, opts, pipe) { - if (!common.config.execPath) { - common.error('Unable to find a path to the node binary. Please manually set config.execPath'); - } - - var tempDir = _tempDir(); - var paramsFile = path.resolve(tempDir + '/' + common.randomFileName()); - var stderrFile = path.resolve(tempDir + '/' + common.randomFileName()); - var stdoutFile = path.resolve(tempDir + '/' + common.randomFileName()); - - opts = common.extend({ - silent: common.config.silent, - cwd: _pwd().toString(), - env: process.env, - maxBuffer: DEFAULT_MAXBUFFER_SIZE, - encoding: 'utf8', - }, opts); - - if (fs.existsSync(paramsFile)) common.unlinkSync(paramsFile); - if (fs.existsSync(stderrFile)) common.unlinkSync(stderrFile); - if (fs.existsSync(stdoutFile)) common.unlinkSync(stdoutFile); - - opts.cwd = path.resolve(opts.cwd); - - var paramsToSerialize = { - command: cmd, - execOptions: opts, - pipe: pipe, - stdoutFile: stdoutFile, - stderrFile: stderrFile, - }; - - // Create the files and ensure these are locked down (for read and write) to - // the current user. The main concerns here are: - // - // * If we execute a command which prints sensitive output, then - // stdoutFile/stderrFile must not be readable by other users. - // * paramsFile must not be readable by other users, or else they can read it - // to figure out the path for stdoutFile/stderrFile and create these first - // (locked down to their own access), which will crash exec() when it tries - // to write to the files. - function writeFileLockedDown(filePath, data) { - fs.writeFileSync(filePath, data, { - encoding: 'utf8', - mode: parseInt('600', 8), - }); - } - writeFileLockedDown(stdoutFile, ''); - writeFileLockedDown(stderrFile, ''); - writeFileLockedDown(paramsFile, JSON.stringify(paramsToSerialize)); - - var execArgs = [ - path.join(__dirname, 'exec-child.js'), - paramsFile, - ]; - - /* istanbul ignore else */ - if (opts.silent) { - opts.stdio = 'ignore'; - } else { - opts.stdio = [0, 1, 2]; - } - - var code = 0; - - // Welcome to the future - try { - // Bad things if we pass in a `shell` option to child_process.execFileSync, - // so we need to explicitly remove it here. - delete opts.shell; - - child.execFileSync(common.config.execPath, execArgs, opts); - } catch (e) { - // Commands with non-zero exit code raise an exception. - code = e.status || DEFAULT_ERROR_CODE; - } - - // fs.readFileSync uses buffer encoding by default, so call - // it without the encoding option if the encoding is 'buffer'. - // Also, if the exec timeout is too short for node to start up, - // the files will not be created, so these calls will throw. - var stdout = ''; - var stderr = ''; - if (opts.encoding === 'buffer') { - stdout = fs.readFileSync(stdoutFile); - stderr = fs.readFileSync(stderrFile); - } else { - stdout = fs.readFileSync(stdoutFile, opts.encoding); - stderr = fs.readFileSync(stderrFile, opts.encoding); - } - - // No biggie if we can't erase the files now -- they're in a temp dir anyway - // and we locked down permissions (see the note above). - try { common.unlinkSync(paramsFile); } catch (e) {} - try { common.unlinkSync(stderrFile); } catch (e) {} - try { common.unlinkSync(stdoutFile); } catch (e) {} - - if (code !== 0) { - // Note: `silent` should be unconditionally true to avoid double-printing - // the command's stderr, and to avoid printing any stderr when the user has - // set `shell.config.silent`. - common.error(stderr, code, { continue: true, silent: true }); - } - var obj = common.ShellString(stdout, stderr, code); - return obj; -} // execSync() - -// Wrapper around exec() to enable echoing output to console in real time -function execAsync(cmd, opts, pipe, callback) { - opts = common.extend({ - silent: common.config.silent, - cwd: _pwd().toString(), - env: process.env, - maxBuffer: DEFAULT_MAXBUFFER_SIZE, - encoding: 'utf8', - }, opts); - - var c = child.exec(cmd, opts, function (err, stdout, stderr) { - if (callback) { - if (!err) { - callback(0, stdout, stderr); - } else if (err.code === undefined) { - // See issue #536 - /* istanbul ignore next */ - callback(1, stdout, stderr); - } else { - callback(err.code, stdout, stderr); - } - } - }); - - if (pipe) c.stdin.end(pipe); - - if (!opts.silent) { - c.stdout.pipe(process.stdout); - c.stderr.pipe(process.stderr); - } - - return c; -} - -//@ -//@ ### exec(command [, options] [, callback]) -//@ -//@ Available options: -//@ -//@ + `async`: Asynchronous execution. If a callback is provided, it will be set to -//@ `true`, regardless of the passed value (default: `false`). -//@ + `silent`: Do not echo program output to console (default: `false`). -//@ + `encoding`: Character encoding to use. Affects the values returned to stdout and stderr, and -//@ what is written to stdout and stderr when not in silent mode (default: `'utf8'`). -//@ + and any option available to Node.js's -//@ [`child_process.exec()`](https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback) -//@ -//@ Examples: -//@ -//@ ```javascript -//@ var version = exec('node --version', {silent:true}).stdout; -//@ -//@ var child = exec('some_long_running_process', {async:true}); -//@ child.stdout.on('data', function(data) { -//@ /* ... do something with data ... */ -//@ }); -//@ -//@ exec('some_long_running_process', function(code, stdout, stderr) { -//@ console.log('Exit code:', code); -//@ console.log('Program output:', stdout); -//@ console.log('Program stderr:', stderr); -//@ }); -//@ ``` -//@ -//@ Executes the given `command` _synchronously_, unless otherwise specified. When in synchronous -//@ mode, this returns a `ShellString` (compatible with ShellJS v0.6.x, which returns an object -//@ of the form `{ code:..., stdout:... , stderr:... }`). Otherwise, this returns the child process -//@ object, and the `callback` receives the arguments `(code, stdout, stderr)`. -//@ -//@ Not seeing the behavior you want? `exec()` runs everything through `sh` -//@ by default (or `cmd.exe` on Windows), which differs from `bash`. If you -//@ need bash-specific behavior, try out the `{shell: 'path/to/bash'}` option. -function _exec(command, options, callback) { - options = options || {}; - if (!command) common.error('must specify command'); - - var pipe = common.readFromPipe(); - - // Callback is defined instead of options. - if (typeof options === 'function') { - callback = options; - options = { async: true }; - } - - // Callback is defined with options. - if (typeof options === 'object' && typeof callback === 'function') { - options.async = true; - } - - options = common.extend({ - silent: common.config.silent, - async: false, - }, options); - - if (options.async) { - return execAsync(command, options, pipe, callback); - } else { - return execSync(command, options, pipe); - } -} -module.exports = _exec; diff --git a/build_vtk_bundle/node_modules/shelljs/src/find.js b/build_vtk_bundle/node_modules/shelljs/src/find.js deleted file mode 100644 index 0de695ad..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/find.js +++ /dev/null @@ -1,61 +0,0 @@ -var path = require('path'); -var common = require('./common'); -var _ls = require('./ls'); - -common.register('find', _find, {}); - -//@ -//@ ### find(path [, path ...]) -//@ ### find(path_array) -//@ -//@ Examples: -//@ -//@ ```javascript -//@ find('src', 'lib'); -//@ find(['src', 'lib']); // same as above -//@ find('.').filter(function(file) { return file.match(/\.js$/); }); -//@ ``` -//@ -//@ Returns array of all files (however deep) in the given paths. -//@ -//@ The main difference from `ls('-R', path)` is that the resulting file names -//@ include the base directories (e.g., `lib/resources/file1` instead of just `file1`). -function _find(options, paths) { - if (!paths) { - common.error('no path specified'); - } else if (typeof paths === 'string') { - paths = [].slice.call(arguments, 1); - } - - var list = []; - - function pushFile(file) { - if (process.platform === 'win32') { - file = file.replace(/\\/g, '/'); - } - list.push(file); - } - - // why not simply do `ls('-R', paths)`? because the output wouldn't give the base dirs - // to get the base dir in the output, we need instead `ls('-R', 'dir/*')` for every directory - - paths.forEach(function (file) { - var stat; - try { - stat = common.statFollowLinks(file); - } catch (e) { - common.error('no such file or directory: ' + file); - } - - pushFile(file); - - if (stat.isDirectory()) { - _ls({ recursive: true, all: true }, file).forEach(function (subfile) { - pushFile(path.join(file, subfile)); - }); - } - }); - - return list; -} -module.exports = _find; diff --git a/build_vtk_bundle/node_modules/shelljs/src/grep.js b/build_vtk_bundle/node_modules/shelljs/src/grep.js deleted file mode 100644 index b696792a..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/grep.js +++ /dev/null @@ -1,73 +0,0 @@ -var common = require('./common'); -var fs = require('fs'); - -common.register('grep', _grep, { - globStart: 2, // don't glob-expand the regex - canReceivePipe: true, - cmdOptions: { - 'v': 'inverse', - 'l': 'nameOnly', - 'i': 'ignoreCase', - }, -}); - -//@ -//@ ### grep([options,] regex_filter, file [, file ...]) -//@ ### grep([options,] regex_filter, file_array) -//@ -//@ Available options: -//@ -//@ + `-v`: Invert `regex_filter` (only print non-matching lines). -//@ + `-l`: Print only filenames of matching files. -//@ + `-i`: Ignore case. -//@ -//@ Examples: -//@ -//@ ```javascript -//@ grep('-v', 'GLOBAL_VARIABLE', '*.js'); -//@ grep('GLOBAL_VARIABLE', '*.js'); -//@ ``` -//@ -//@ Reads input string from given files and returns a string containing all lines of the -//@ file that match the given `regex_filter`. -function _grep(options, regex, files) { - // Check if this is coming from a pipe - var pipe = common.readFromPipe(); - - if (!files && !pipe) common.error('no paths given', 2); - - files = [].slice.call(arguments, 2); - - if (pipe) { - files.unshift('-'); - } - - var grep = []; - if (options.ignoreCase) { - regex = new RegExp(regex, 'i'); - } - files.forEach(function (file) { - if (!fs.existsSync(file) && file !== '-') { - common.error('no such file or directory: ' + file, 2, { continue: true }); - return; - } - - var contents = file === '-' ? pipe : fs.readFileSync(file, 'utf8'); - if (options.nameOnly) { - if (contents.match(regex)) { - grep.push(file); - } - } else { - var lines = contents.split('\n'); - lines.forEach(function (line) { - var matched = line.match(regex); - if ((options.inverse && !matched) || (!options.inverse && matched)) { - grep.push(line); - } - }); - } - }); - - return grep.join('\n') + '\n'; -} -module.exports = _grep; diff --git a/build_vtk_bundle/node_modules/shelljs/src/head.js b/build_vtk_bundle/node_modules/shelljs/src/head.js deleted file mode 100644 index 7169fd39..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/head.js +++ /dev/null @@ -1,107 +0,0 @@ -var common = require('./common'); -var fs = require('fs'); - -common.register('head', _head, { - canReceivePipe: true, - cmdOptions: { - 'n': 'numLines', - }, -}); - -// Reads |numLines| lines or the entire file, whichever is less. -function readSomeLines(file, numLines) { - var buf = common.buffer(); - var bufLength = buf.length; - var bytesRead = bufLength; - var pos = 0; - - var fdr = fs.openSync(file, 'r'); - var numLinesRead = 0; - var ret = ''; - while (bytesRead === bufLength && numLinesRead < numLines) { - bytesRead = fs.readSync(fdr, buf, 0, bufLength, pos); - var bufStr = buf.toString('utf8', 0, bytesRead); - numLinesRead += bufStr.split('\n').length - 1; - ret += bufStr; - pos += bytesRead; - } - - fs.closeSync(fdr); - return ret; -} - -//@ -//@ ### head([{'-n': \},] file [, file ...]) -//@ ### head([{'-n': \},] file_array) -//@ -//@ Available options: -//@ -//@ + `-n `: Show the first `` lines of the files -//@ -//@ Examples: -//@ -//@ ```javascript -//@ var str = head({'-n': 1}, 'file*.txt'); -//@ var str = head('file1', 'file2'); -//@ var str = head(['file1', 'file2']); // same as above -//@ ``` -//@ -//@ Read the start of a file. -function _head(options, files) { - var head = []; - var pipe = common.readFromPipe(); - - if (!files && !pipe) common.error('no paths given'); - - var idx = 1; - if (options.numLines === true) { - idx = 2; - options.numLines = Number(arguments[1]); - } else if (options.numLines === false) { - options.numLines = 10; - } - files = [].slice.call(arguments, idx); - - if (pipe) { - files.unshift('-'); - } - - var shouldAppendNewline = false; - files.forEach(function (file) { - if (file !== '-') { - if (!fs.existsSync(file)) { - common.error('no such file or directory: ' + file, { continue: true }); - return; - } else if (common.statFollowLinks(file).isDirectory()) { - common.error("error reading '" + file + "': Is a directory", { - continue: true, - }); - return; - } - } - - var contents; - if (file === '-') { - contents = pipe; - } else if (options.numLines < 0) { - contents = fs.readFileSync(file, 'utf8'); - } else { - contents = readSomeLines(file, options.numLines); - } - - var lines = contents.split('\n'); - var hasTrailingNewline = (lines[lines.length - 1] === ''); - if (hasTrailingNewline) { - lines.pop(); - } - shouldAppendNewline = (hasTrailingNewline || options.numLines < lines.length); - - head = head.concat(lines.slice(0, options.numLines)); - }); - - if (shouldAppendNewline) { - head.push(''); // to add a trailing newline once we join - } - return head.join('\n'); -} -module.exports = _head; diff --git a/build_vtk_bundle/node_modules/shelljs/src/ln.js b/build_vtk_bundle/node_modules/shelljs/src/ln.js deleted file mode 100644 index 2cf87cd8..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/ln.js +++ /dev/null @@ -1,73 +0,0 @@ -var fs = require('fs'); -var path = require('path'); -var common = require('./common'); - -common.register('ln', _ln, { - cmdOptions: { - 's': 'symlink', - 'f': 'force', - }, -}); - -//@ -//@ ### ln([options,] source, dest) -//@ -//@ Available options: -//@ -//@ + `-s`: symlink -//@ + `-f`: force -//@ -//@ Examples: -//@ -//@ ```javascript -//@ ln('file', 'newlink'); -//@ ln('-sf', 'file', 'existing'); -//@ ``` -//@ -//@ Links `source` to `dest`. Use `-f` to force the link, should `dest` already exist. -function _ln(options, source, dest) { - if (!source || !dest) { - common.error('Missing and/or '); - } - - source = String(source); - var sourcePath = path.normalize(source).replace(RegExp(path.sep + '$'), ''); - var isAbsolute = (path.resolve(source) === sourcePath); - dest = path.resolve(process.cwd(), String(dest)); - - if (fs.existsSync(dest)) { - if (!options.force) { - common.error('Destination file exists', { continue: true }); - } - - fs.unlinkSync(dest); - } - - if (options.symlink) { - var isWindows = process.platform === 'win32'; - var linkType = isWindows ? 'file' : null; - var resolvedSourcePath = isAbsolute ? sourcePath : path.resolve(process.cwd(), path.dirname(dest), source); - if (!fs.existsSync(resolvedSourcePath)) { - common.error('Source file does not exist', { continue: true }); - } else if (isWindows && common.statFollowLinks(resolvedSourcePath).isDirectory()) { - linkType = 'junction'; - } - - try { - fs.symlinkSync(linkType === 'junction' ? resolvedSourcePath : source, dest, linkType); - } catch (err) { - common.error(err.message); - } - } else { - if (!fs.existsSync(source)) { - common.error('Source file does not exist', { continue: true }); - } - try { - fs.linkSync(source, dest); - } catch (err) { - common.error(err.message); - } - } - return ''; -} -module.exports = _ln; diff --git a/build_vtk_bundle/node_modules/shelljs/src/ls.js b/build_vtk_bundle/node_modules/shelljs/src/ls.js deleted file mode 100644 index daebdf82..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/ls.js +++ /dev/null @@ -1,141 +0,0 @@ -var path = require('path'); -var fs = require('fs'); -var common = require('./common'); -var glob = require('glob'); - -var globPatternRecursive = path.sep + '**'; - -common.register('ls', _ls, { - cmdOptions: { - 'R': 'recursive', - 'A': 'all', - 'L': 'link', - 'a': 'all_deprecated', - 'd': 'directory', - 'l': 'long', - }, -}); - -//@ -//@ ### ls([options,] [path, ...]) -//@ ### ls([options,] path_array) -//@ -//@ Available options: -//@ -//@ + `-R`: recursive -//@ + `-A`: all files (include files beginning with `.`, except for `.` and `..`) -//@ + `-L`: follow symlinks -//@ + `-d`: list directories themselves, not their contents -//@ + `-l`: list objects representing each file, each with fields containing `ls -//@ -l` output fields. See -//@ [`fs.Stats`](https://nodejs.org/api/fs.html#fs_class_fs_stats) -//@ for more info -//@ -//@ Examples: -//@ -//@ ```javascript -//@ ls('projs/*.js'); -//@ ls('-R', '/users/me', '/tmp'); -//@ ls('-R', ['/users/me', '/tmp']); // same as above -//@ ls('-l', 'file.txt'); // { name: 'file.txt', mode: 33188, nlink: 1, ...} -//@ ``` -//@ -//@ Returns array of files in the given `path`, or files in -//@ the current directory if no `path` is provided. -function _ls(options, paths) { - if (options.all_deprecated) { - // We won't support the -a option as it's hard to image why it's useful - // (it includes '.' and '..' in addition to '.*' files) - // For backwards compatibility we'll dump a deprecated message and proceed as before - common.log('ls: Option -a is deprecated. Use -A instead'); - options.all = true; - } - - if (!paths) { - paths = ['.']; - } else { - paths = [].slice.call(arguments, 1); - } - - var list = []; - - function pushFile(abs, relName, stat) { - if (process.platform === 'win32') { - relName = relName.replace(/\\/g, '/'); - } - if (options.long) { - stat = stat || (options.link ? common.statFollowLinks(abs) : common.statNoFollowLinks(abs)); - list.push(addLsAttributes(relName, stat)); - } else { - // list.push(path.relative(rel || '.', file)); - list.push(relName); - } - } - - paths.forEach(function (p) { - var stat; - - try { - stat = options.link ? common.statFollowLinks(p) : common.statNoFollowLinks(p); - // follow links to directories by default - if (stat.isSymbolicLink()) { - /* istanbul ignore next */ - // workaround for https://github.com/shelljs/shelljs/issues/795 - // codecov seems to have a bug that miscalculate this block as uncovered. - // but according to nyc report this block does get covered. - try { - var _stat = common.statFollowLinks(p); - if (_stat.isDirectory()) { - stat = _stat; - } - } catch (_) {} // bad symlink, treat it like a file - } - } catch (e) { - common.error('no such file or directory: ' + p, 2, { continue: true }); - return; - } - - // If the stat succeeded - if (stat.isDirectory() && !options.directory) { - if (options.recursive) { - // use glob, because it's simple - glob.sync(p + globPatternRecursive, { dot: options.all, follow: options.link }) - .forEach(function (item) { - // Glob pattern returns the directory itself and needs to be filtered out. - if (path.relative(p, item)) { - pushFile(item, path.relative(p, item)); - } - }); - } else if (options.all) { - // use fs.readdirSync, because it's fast - fs.readdirSync(p).forEach(function (item) { - pushFile(path.join(p, item), item); - }); - } else { - // use fs.readdirSync and then filter out secret files - fs.readdirSync(p).forEach(function (item) { - if (item[0] !== '.') { - pushFile(path.join(p, item), item); - } - }); - } - } else { - pushFile(p, p, stat); - } - }); - - // Add methods, to make this more compatible with ShellStrings - return list; -} - -function addLsAttributes(pathName, stats) { - // Note: this object will contain more information than .toString() returns - stats.name = pathName; - stats.toString = function () { - // Return a string resembling unix's `ls -l` format - return [this.mode, this.nlink, this.uid, this.gid, this.size, this.mtime, this.name].join(' '); - }; - return stats; -} - -module.exports = _ls; diff --git a/build_vtk_bundle/node_modules/shelljs/src/mkdir.js b/build_vtk_bundle/node_modules/shelljs/src/mkdir.js deleted file mode 100644 index 6168d592..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/mkdir.js +++ /dev/null @@ -1,100 +0,0 @@ -var common = require('./common'); -var fs = require('fs'); -var path = require('path'); - -common.register('mkdir', _mkdir, { - cmdOptions: { - 'p': 'fullpath', - }, -}); - -// Recursively creates `dir` -function mkdirSyncRecursive(dir) { - var baseDir = path.dirname(dir); - - // Prevents some potential problems arising from malformed UNCs or - // insufficient permissions. - /* istanbul ignore next */ - if (baseDir === dir) { - common.error('dirname() failed: [' + dir + ']'); - } - - // Base dir exists, no recursion necessary - if (fs.existsSync(baseDir)) { - fs.mkdirSync(dir, parseInt('0777', 8)); - return; - } - - // Base dir does not exist, go recursive - mkdirSyncRecursive(baseDir); - - // Base dir created, can create dir - fs.mkdirSync(dir, parseInt('0777', 8)); -} - -//@ -//@ ### mkdir([options,] dir [, dir ...]) -//@ ### mkdir([options,] dir_array) -//@ -//@ Available options: -//@ -//@ + `-p`: full path (and create intermediate directories, if necessary) -//@ -//@ Examples: -//@ -//@ ```javascript -//@ mkdir('-p', '/tmp/a/b/c/d', '/tmp/e/f/g'); -//@ mkdir('-p', ['/tmp/a/b/c/d', '/tmp/e/f/g']); // same as above -//@ ``` -//@ -//@ Creates directories. -function _mkdir(options, dirs) { - if (!dirs) common.error('no paths given'); - - if (typeof dirs === 'string') { - dirs = [].slice.call(arguments, 1); - } - // if it's array leave it as it is - - dirs.forEach(function (dir) { - try { - var stat = common.statNoFollowLinks(dir); - if (!options.fullpath) { - common.error('path already exists: ' + dir, { continue: true }); - } else if (stat.isFile()) { - common.error('cannot create directory ' + dir + ': File exists', { continue: true }); - } - return; // skip dir - } catch (e) { - // do nothing - } - - // Base dir does not exist, and no -p option given - var baseDir = path.dirname(dir); - if (!fs.existsSync(baseDir) && !options.fullpath) { - common.error('no such file or directory: ' + baseDir, { continue: true }); - return; // skip dir - } - - try { - if (options.fullpath) { - mkdirSyncRecursive(path.resolve(dir)); - } else { - fs.mkdirSync(dir, parseInt('0777', 8)); - } - } catch (e) { - var reason; - if (e.code === 'EACCES') { - reason = 'Permission denied'; - } else if (e.code === 'ENOTDIR' || e.code === 'ENOENT') { - reason = 'Not a directory'; - } else { - /* istanbul ignore next */ - throw e; - } - common.error('cannot create directory ' + dir + ': ' + reason, { continue: true }); - } - }); - return ''; -} // mkdir -module.exports = _mkdir; diff --git a/build_vtk_bundle/node_modules/shelljs/src/mv.js b/build_vtk_bundle/node_modules/shelljs/src/mv.js deleted file mode 100644 index ac28a24e..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/mv.js +++ /dev/null @@ -1,118 +0,0 @@ -var fs = require('fs'); -var path = require('path'); -var common = require('./common'); -var cp = require('./cp'); -var rm = require('./rm'); - -common.register('mv', _mv, { - cmdOptions: { - 'f': '!no_force', - 'n': 'no_force', - }, -}); - -// Checks if cureent file was created recently -function checkRecentCreated(sources, index) { - var lookedSource = sources[index]; - return sources.slice(0, index).some(function (src) { - return path.basename(src) === path.basename(lookedSource); - }); -} - -//@ -//@ ### mv([options ,] source [, source ...], dest') -//@ ### mv([options ,] source_array, dest') -//@ -//@ Available options: -//@ -//@ + `-f`: force (default behavior) -//@ + `-n`: no-clobber -//@ -//@ Examples: -//@ -//@ ```javascript -//@ mv('-n', 'file', 'dir/'); -//@ mv('file1', 'file2', 'dir/'); -//@ mv(['file1', 'file2'], 'dir/'); // same as above -//@ ``` -//@ -//@ Moves `source` file(s) to `dest`. -function _mv(options, sources, dest) { - // Get sources, dest - if (arguments.length < 3) { - common.error('missing and/or '); - } else if (arguments.length > 3) { - sources = [].slice.call(arguments, 1, arguments.length - 1); - dest = arguments[arguments.length - 1]; - } else if (typeof sources === 'string') { - sources = [sources]; - } else { - // TODO(nate): figure out if we actually need this line - common.error('invalid arguments'); - } - - var exists = fs.existsSync(dest); - var stats = exists && common.statFollowLinks(dest); - - // Dest is not existing dir, but multiple sources given - if ((!exists || !stats.isDirectory()) && sources.length > 1) { - common.error('dest is not a directory (too many sources)'); - } - - // Dest is an existing file, but no -f given - if (exists && stats.isFile() && options.no_force) { - common.error('dest file already exists: ' + dest); - } - - sources.forEach(function (src, srcIndex) { - if (!fs.existsSync(src)) { - common.error('no such file or directory: ' + src, { continue: true }); - return; // skip file - } - - // If here, src exists - - // When copying to '/path/dir': - // thisDest = '/path/dir/file1' - var thisDest = dest; - if (fs.existsSync(dest) && common.statFollowLinks(dest).isDirectory()) { - thisDest = path.normalize(dest + '/' + path.basename(src)); - } - - var thisDestExists = fs.existsSync(thisDest); - - if (thisDestExists && checkRecentCreated(sources, srcIndex)) { - // cannot overwrite file created recently in current execution, but we want to continue copying other files - if (!options.no_force) { - common.error("will not overwrite just-created '" + thisDest + "' with '" + src + "'", { continue: true }); - } - return; - } - - if (fs.existsSync(thisDest) && options.no_force) { - common.error('dest file already exists: ' + thisDest, { continue: true }); - return; // skip file - } - - if (path.resolve(src) === path.dirname(path.resolve(thisDest))) { - common.error('cannot move to self: ' + src, { continue: true }); - return; // skip file - } - - try { - fs.renameSync(src, thisDest); - } catch (e) { - /* istanbul ignore next */ - if (e.code === 'EXDEV') { - // If we're trying to `mv` to an external partition, we'll actually need - // to perform a copy and then clean up the original file. If either the - // copy or the rm fails with an exception, we should allow this - // exception to pass up to the top level. - cp('-r', src, thisDest); - rm('-rf', src); - } - } - }); // forEach(src) - return ''; -} // mv -module.exports = _mv; diff --git a/build_vtk_bundle/node_modules/shelljs/src/popd.js b/build_vtk_bundle/node_modules/shelljs/src/popd.js deleted file mode 100644 index d9eac3f5..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/popd.js +++ /dev/null @@ -1 +0,0 @@ -// see dirs.js diff --git a/build_vtk_bundle/node_modules/shelljs/src/pushd.js b/build_vtk_bundle/node_modules/shelljs/src/pushd.js deleted file mode 100644 index d9eac3f5..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/pushd.js +++ /dev/null @@ -1 +0,0 @@ -// see dirs.js diff --git a/build_vtk_bundle/node_modules/shelljs/src/pwd.js b/build_vtk_bundle/node_modules/shelljs/src/pwd.js deleted file mode 100644 index 8fcf8fce..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/pwd.js +++ /dev/null @@ -1,16 +0,0 @@ -var path = require('path'); -var common = require('./common'); - -common.register('pwd', _pwd, { - allowGlobbing: false, -}); - -//@ -//@ ### pwd() -//@ -//@ Returns the current directory. -function _pwd() { - var pwd = path.resolve(process.cwd()); - return pwd; -} -module.exports = _pwd; diff --git a/build_vtk_bundle/node_modules/shelljs/src/rm.js b/build_vtk_bundle/node_modules/shelljs/src/rm.js deleted file mode 100644 index 90409ac6..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/rm.js +++ /dev/null @@ -1,201 +0,0 @@ -var common = require('./common'); -var fs = require('fs'); - -common.register('rm', _rm, { - cmdOptions: { - 'f': 'force', - 'r': 'recursive', - 'R': 'recursive', - }, -}); - -// Recursively removes 'dir' -// Adapted from https://github.com/ryanmcgrath/wrench-js -// -// Copyright (c) 2010 Ryan McGrath -// Copyright (c) 2012 Artur Adib -// -// Licensed under the MIT License -// http://www.opensource.org/licenses/mit-license.php -function rmdirSyncRecursive(dir, force, fromSymlink) { - var files; - - files = fs.readdirSync(dir); - - // Loop through and delete everything in the sub-tree after checking it - for (var i = 0; i < files.length; i++) { - var file = dir + '/' + files[i]; - var currFile = common.statNoFollowLinks(file); - - if (currFile.isDirectory()) { // Recursive function back to the beginning - rmdirSyncRecursive(file, force); - } else { // Assume it's a file - perhaps a try/catch belongs here? - if (force || isWriteable(file)) { - try { - common.unlinkSync(file); - } catch (e) { - /* istanbul ignore next */ - common.error('could not remove file (code ' + e.code + '): ' + file, { - continue: true, - }); - } - } - } - } - - // if was directory was referenced through a symbolic link, - // the contents should be removed, but not the directory itself - if (fromSymlink) return; - - // Now that we know everything in the sub-tree has been deleted, we can delete the main directory. - // Huzzah for the shopkeep. - - var result; - try { - // Retry on windows, sometimes it takes a little time before all the files in the directory are gone - var start = Date.now(); - - // TODO: replace this with a finite loop - for (;;) { - try { - result = fs.rmdirSync(dir); - if (fs.existsSync(dir)) throw { code: 'EAGAIN' }; - break; - } catch (er) { - /* istanbul ignore next */ - // In addition to error codes, also check if the directory still exists and loop again if true - if (process.platform === 'win32' && (er.code === 'ENOTEMPTY' || er.code === 'EBUSY' || er.code === 'EPERM' || er.code === 'EAGAIN')) { - if (Date.now() - start > 1000) throw er; - } else if (er.code === 'ENOENT') { - // Directory did not exist, deletion was successful - break; - } else { - throw er; - } - } - } - } catch (e) { - common.error('could not remove directory (code ' + e.code + '): ' + dir, { continue: true }); - } - - return result; -} // rmdirSyncRecursive - -// Hack to determine if file has write permissions for current user -// Avoids having to check user, group, etc, but it's probably slow -function isWriteable(file) { - var writePermission = true; - try { - var __fd = fs.openSync(file, 'a'); - fs.closeSync(__fd); - } catch (e) { - writePermission = false; - } - - return writePermission; -} - -function handleFile(file, options) { - if (options.force || isWriteable(file)) { - // -f was passed, or file is writable, so it can be removed - common.unlinkSync(file); - } else { - common.error('permission denied: ' + file, { continue: true }); - } -} - -function handleDirectory(file, options) { - if (options.recursive) { - // -r was passed, so directory can be removed - rmdirSyncRecursive(file, options.force); - } else { - common.error('path is a directory', { continue: true }); - } -} - -function handleSymbolicLink(file, options) { - var stats; - try { - stats = common.statFollowLinks(file); - } catch (e) { - // symlink is broken, so remove the symlink itself - common.unlinkSync(file); - return; - } - - if (stats.isFile()) { - common.unlinkSync(file); - } else if (stats.isDirectory()) { - if (file[file.length - 1] === '/') { - // trailing separator, so remove the contents, not the link - if (options.recursive) { - // -r was passed, so directory can be removed - var fromSymlink = true; - rmdirSyncRecursive(file, options.force, fromSymlink); - } else { - common.error('path is a directory', { continue: true }); - } - } else { - // no trailing separator, so remove the link - common.unlinkSync(file); - } - } -} - -function handleFIFO(file) { - common.unlinkSync(file); -} - -//@ -//@ ### rm([options,] file [, file ...]) -//@ ### rm([options,] file_array) -//@ -//@ Available options: -//@ -//@ + `-f`: force -//@ + `-r, -R`: recursive -//@ -//@ Examples: -//@ -//@ ```javascript -//@ rm('-rf', '/tmp/*'); -//@ rm('some_file.txt', 'another_file.txt'); -//@ rm(['some_file.txt', 'another_file.txt']); // same as above -//@ ``` -//@ -//@ Removes files. -function _rm(options, files) { - if (!files) common.error('no paths given'); - - // Convert to array - files = [].slice.call(arguments, 1); - - files.forEach(function (file) { - var lstats; - try { - var filepath = (file[file.length - 1] === '/') - ? file.slice(0, -1) // remove the '/' so lstatSync can detect symlinks - : file; - lstats = common.statNoFollowLinks(filepath); // test for existence - } catch (e) { - // Path does not exist, no force flag given - if (!options.force) { - common.error('no such file or directory: ' + file, { continue: true }); - } - return; // skip file - } - - // If here, path exists - if (lstats.isFile()) { - handleFile(file, options); - } else if (lstats.isDirectory()) { - handleDirectory(file, options); - } else if (lstats.isSymbolicLink()) { - handleSymbolicLink(file, options); - } else if (lstats.isFIFO()) { - handleFIFO(file); - } - }); // forEach(file) - return ''; -} // rm -module.exports = _rm; diff --git a/build_vtk_bundle/node_modules/shelljs/src/sed.js b/build_vtk_bundle/node_modules/shelljs/src/sed.js deleted file mode 100644 index f094e444..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/sed.js +++ /dev/null @@ -1,87 +0,0 @@ -var common = require('./common'); -var fs = require('fs'); - -common.register('sed', _sed, { - globStart: 3, // don't glob-expand regexes - canReceivePipe: true, - cmdOptions: { - 'i': 'inplace', - }, -}); - -//@ -//@ ### sed([options,] search_regex, replacement, file [, file ...]) -//@ ### sed([options,] search_regex, replacement, file_array) -//@ -//@ Available options: -//@ -//@ + `-i`: Replace contents of `file` in-place. _Note that no backups will be created!_ -//@ -//@ Examples: -//@ -//@ ```javascript -//@ sed('-i', 'PROGRAM_VERSION', 'v0.1.3', 'source.js'); -//@ sed(/.*DELETE_THIS_LINE.*\n/, '', 'source.js'); -//@ ``` -//@ -//@ Reads an input string from `file`s, and performs a JavaScript `replace()` on the input -//@ using the given `search_regex` and `replacement` string or function. Returns the new string after replacement. -//@ -//@ Note: -//@ -//@ Like unix `sed`, ShellJS `sed` supports capture groups. Capture groups are specified -//@ using the `$n` syntax: -//@ -//@ ```javascript -//@ sed(/(\w+)\s(\w+)/, '$2, $1', 'file.txt'); -//@ ``` -function _sed(options, regex, replacement, files) { - // Check if this is coming from a pipe - var pipe = common.readFromPipe(); - - if (typeof replacement !== 'string' && typeof replacement !== 'function') { - if (typeof replacement === 'number') { - replacement = replacement.toString(); // fallback - } else { - common.error('invalid replacement string'); - } - } - - // Convert all search strings to RegExp - if (typeof regex === 'string') { - regex = RegExp(regex); - } - - if (!files && !pipe) { - common.error('no files given'); - } - - files = [].slice.call(arguments, 3); - - if (pipe) { - files.unshift('-'); - } - - var sed = []; - files.forEach(function (file) { - if (!fs.existsSync(file) && file !== '-') { - common.error('no such file or directory: ' + file, 2, { continue: true }); - return; - } - - var contents = file === '-' ? pipe : fs.readFileSync(file, 'utf8'); - var lines = contents.split('\n'); - var result = lines.map(function (line) { - return line.replace(regex, replacement); - }).join('\n'); - - sed.push(result); - - if (options.inplace) { - fs.writeFileSync(file, result, 'utf8'); - } - }); - - return sed.join('\n'); -} -module.exports = _sed; diff --git a/build_vtk_bundle/node_modules/shelljs/src/set.js b/build_vtk_bundle/node_modules/shelljs/src/set.js deleted file mode 100644 index 1101b6ff..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/set.js +++ /dev/null @@ -1,56 +0,0 @@ -var common = require('./common'); - -common.register('set', _set, { - allowGlobbing: false, - wrapOutput: false, -}); - -//@ -//@ ### set(options) -//@ -//@ Available options: -//@ -//@ + `+/-e`: exit upon error (`config.fatal`) -//@ + `+/-v`: verbose: show all commands (`config.verbose`) -//@ + `+/-f`: disable filename expansion (globbing) -//@ -//@ Examples: -//@ -//@ ```javascript -//@ set('-e'); // exit upon first error -//@ set('+e'); // this undoes a "set('-e')" -//@ ``` -//@ -//@ Sets global configuration variables. -function _set(options) { - if (!options) { - var args = [].slice.call(arguments, 0); - if (args.length < 2) common.error('must provide an argument'); - options = args[1]; - } - var negate = (options[0] === '+'); - if (negate) { - options = '-' + options.slice(1); // parseOptions needs a '-' prefix - } - options = common.parseOptions(options, { - 'e': 'fatal', - 'v': 'verbose', - 'f': 'noglob', - }); - - if (negate) { - Object.keys(options).forEach(function (key) { - options[key] = !options[key]; - }); - } - - Object.keys(options).forEach(function (key) { - // Only change the global config if `negate` is false and the option is true - // or if `negate` is true and the option is false (aka negate !== option) - if (negate !== options[key]) { - common.config[key] = options[key]; - } - }); - return; -} -module.exports = _set; diff --git a/build_vtk_bundle/node_modules/shelljs/src/sort.js b/build_vtk_bundle/node_modules/shelljs/src/sort.js deleted file mode 100644 index 0f42cb6a..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/sort.js +++ /dev/null @@ -1,97 +0,0 @@ -var common = require('./common'); -var fs = require('fs'); - -common.register('sort', _sort, { - canReceivePipe: true, - cmdOptions: { - 'r': 'reverse', - 'n': 'numerical', - }, -}); - -// parse out the number prefix of a line -function parseNumber(str) { - var match = str.match(/^\s*(\d*)\s*(.*)$/); - return { num: Number(match[1]), value: match[2] }; -} - -// compare two strings case-insensitively, but examine case for strings that are -// case-insensitive equivalent -function unixCmp(a, b) { - var aLower = a.toLowerCase(); - var bLower = b.toLowerCase(); - return (aLower === bLower ? - -1 * a.localeCompare(b) : // unix sort treats case opposite how javascript does - aLower.localeCompare(bLower)); -} - -// compare two strings in the fashion that unix sort's -n option works -function numericalCmp(a, b) { - var objA = parseNumber(a); - var objB = parseNumber(b); - if (objA.hasOwnProperty('num') && objB.hasOwnProperty('num')) { - return ((objA.num !== objB.num) ? - (objA.num - objB.num) : - unixCmp(objA.value, objB.value)); - } else { - return unixCmp(objA.value, objB.value); - } -} - -//@ -//@ ### sort([options,] file [, file ...]) -//@ ### sort([options,] file_array) -//@ -//@ Available options: -//@ -//@ + `-r`: Reverse the results -//@ + `-n`: Compare according to numerical value -//@ -//@ Examples: -//@ -//@ ```javascript -//@ sort('foo.txt', 'bar.txt'); -//@ sort('-r', 'foo.txt'); -//@ ``` -//@ -//@ Return the contents of the `file`s, sorted line-by-line. Sorting multiple -//@ files mixes their content (just as unix `sort` does). -function _sort(options, files) { - // Check if this is coming from a pipe - var pipe = common.readFromPipe(); - - if (!files && !pipe) common.error('no files given'); - - files = [].slice.call(arguments, 1); - - if (pipe) { - files.unshift('-'); - } - - var lines = files.reduce(function (accum, file) { - if (file !== '-') { - if (!fs.existsSync(file)) { - common.error('no such file or directory: ' + file, { continue: true }); - return accum; - } else if (common.statFollowLinks(file).isDirectory()) { - common.error('read failed: ' + file + ': Is a directory', { - continue: true, - }); - return accum; - } - } - - var contents = file === '-' ? pipe : fs.readFileSync(file, 'utf8'); - return accum.concat(contents.trimRight().split('\n')); - }, []); - - var sorted = lines.sort(options.numerical ? numericalCmp : unixCmp); - - if (options.reverse) { - sorted = sorted.reverse(); - } - - return sorted.join('\n') + '\n'; -} - -module.exports = _sort; diff --git a/build_vtk_bundle/node_modules/shelljs/src/tail.js b/build_vtk_bundle/node_modules/shelljs/src/tail.js deleted file mode 100644 index 258412f7..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/tail.js +++ /dev/null @@ -1,80 +0,0 @@ -var common = require('./common'); -var fs = require('fs'); - -common.register('tail', _tail, { - canReceivePipe: true, - cmdOptions: { - 'n': 'numLines', - }, -}); - -//@ -//@ ### tail([{'-n': \},] file [, file ...]) -//@ ### tail([{'-n': \},] file_array) -//@ -//@ Available options: -//@ -//@ + `-n `: Show the last `` lines of `file`s -//@ -//@ Examples: -//@ -//@ ```javascript -//@ var str = tail({'-n': 1}, 'file*.txt'); -//@ var str = tail('file1', 'file2'); -//@ var str = tail(['file1', 'file2']); // same as above -//@ ``` -//@ -//@ Read the end of a `file`. -function _tail(options, files) { - var tail = []; - var pipe = common.readFromPipe(); - - if (!files && !pipe) common.error('no paths given'); - - var idx = 1; - if (options.numLines === true) { - idx = 2; - options.numLines = Number(arguments[1]); - } else if (options.numLines === false) { - options.numLines = 10; - } - options.numLines = -1 * Math.abs(options.numLines); - files = [].slice.call(arguments, idx); - - if (pipe) { - files.unshift('-'); - } - - var shouldAppendNewline = false; - files.forEach(function (file) { - if (file !== '-') { - if (!fs.existsSync(file)) { - common.error('no such file or directory: ' + file, { continue: true }); - return; - } else if (common.statFollowLinks(file).isDirectory()) { - common.error("error reading '" + file + "': Is a directory", { - continue: true, - }); - return; - } - } - - var contents = file === '-' ? pipe : fs.readFileSync(file, 'utf8'); - - var lines = contents.split('\n'); - if (lines[lines.length - 1] === '') { - lines.pop(); - shouldAppendNewline = true; - } else { - shouldAppendNewline = false; - } - - tail = tail.concat(lines.slice(options.numLines)); - }); - - if (shouldAppendNewline) { - tail.push(''); // to add a trailing newline once we join - } - return tail.join('\n'); -} -module.exports = _tail; diff --git a/build_vtk_bundle/node_modules/shelljs/src/tempdir.js b/build_vtk_bundle/node_modules/shelljs/src/tempdir.js deleted file mode 100644 index b62032d7..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/tempdir.js +++ /dev/null @@ -1,75 +0,0 @@ -var common = require('./common'); -var os = require('os'); -var fs = require('fs'); - -common.register('tempdir', _tempDir, { - allowGlobbing: false, - wrapOutput: false, -}); - -// Returns false if 'dir' is not a writeable directory, 'dir' otherwise -function writeableDir(dir) { - if (!dir || !fs.existsSync(dir)) return false; - - if (!common.statFollowLinks(dir).isDirectory()) return false; - - var testFile = dir + '/' + common.randomFileName(); - try { - fs.writeFileSync(testFile, ' '); - common.unlinkSync(testFile); - return dir; - } catch (e) { - /* istanbul ignore next */ - return false; - } -} - -// Variable to cache the tempdir value for successive lookups. -var cachedTempDir; - -//@ -//@ ### tempdir() -//@ -//@ Examples: -//@ -//@ ```javascript -//@ var tmp = tempdir(); // "/tmp" for most *nix platforms -//@ ``` -//@ -//@ Searches and returns string containing a writeable, platform-dependent temporary directory. -//@ Follows Python's [tempfile algorithm](http://docs.python.org/library/tempfile.html#tempfile.tempdir). -function _tempDir() { - if (cachedTempDir) return cachedTempDir; - - cachedTempDir = writeableDir(os.tmpdir()) || - writeableDir(process.env.TMPDIR) || - writeableDir(process.env.TEMP) || - writeableDir(process.env.TMP) || - writeableDir(process.env.Wimp$ScrapDir) || // RiscOS - writeableDir('C:\\TEMP') || // Windows - writeableDir('C:\\TMP') || // Windows - writeableDir('\\TEMP') || // Windows - writeableDir('\\TMP') || // Windows - writeableDir('/tmp') || - writeableDir('/var/tmp') || - writeableDir('/usr/tmp') || - writeableDir('.'); // last resort - - return cachedTempDir; -} - -// Indicates if the tempdir value is currently cached. This is exposed for tests -// only. The return value should only be tested for truthiness. -function isCached() { - return cachedTempDir; -} - -// Clears the cached tempDir value, if one is cached. This is exposed for tests -// only. -function clearCache() { - cachedTempDir = undefined; -} - -module.exports.tempDir = _tempDir; -module.exports.isCached = isCached; -module.exports.clearCache = clearCache; diff --git a/build_vtk_bundle/node_modules/shelljs/src/test.js b/build_vtk_bundle/node_modules/shelljs/src/test.js deleted file mode 100644 index 228c7471..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/test.js +++ /dev/null @@ -1,85 +0,0 @@ -var common = require('./common'); -var fs = require('fs'); - -common.register('test', _test, { - cmdOptions: { - 'b': 'block', - 'c': 'character', - 'd': 'directory', - 'e': 'exists', - 'f': 'file', - 'L': 'link', - 'p': 'pipe', - 'S': 'socket', - }, - wrapOutput: false, - allowGlobbing: false, -}); - - -//@ -//@ ### test(expression) -//@ -//@ Available expression primaries: -//@ -//@ + `'-b', 'path'`: true if path is a block device -//@ + `'-c', 'path'`: true if path is a character device -//@ + `'-d', 'path'`: true if path is a directory -//@ + `'-e', 'path'`: true if path exists -//@ + `'-f', 'path'`: true if path is a regular file -//@ + `'-L', 'path'`: true if path is a symbolic link -//@ + `'-p', 'path'`: true if path is a pipe (FIFO) -//@ + `'-S', 'path'`: true if path is a socket -//@ -//@ Examples: -//@ -//@ ```javascript -//@ if (test('-d', path)) { /* do something with dir */ }; -//@ if (!test('-f', path)) continue; // skip if it's a regular file -//@ ``` -//@ -//@ Evaluates `expression` using the available primaries and returns corresponding value. -function _test(options, path) { - if (!path) common.error('no path given'); - - var canInterpret = false; - Object.keys(options).forEach(function (key) { - if (options[key] === true) { - canInterpret = true; - } - }); - - if (!canInterpret) common.error('could not interpret expression'); - - if (options.link) { - try { - return common.statNoFollowLinks(path).isSymbolicLink(); - } catch (e) { - return false; - } - } - - if (!fs.existsSync(path)) return false; - - if (options.exists) return true; - - var stats = common.statFollowLinks(path); - - if (options.block) return stats.isBlockDevice(); - - if (options.character) return stats.isCharacterDevice(); - - if (options.directory) return stats.isDirectory(); - - if (options.file) return stats.isFile(); - - /* istanbul ignore next */ - if (options.pipe) return stats.isFIFO(); - - /* istanbul ignore next */ - if (options.socket) return stats.isSocket(); - - /* istanbul ignore next */ - return false; // fallback -} // test -module.exports = _test; diff --git a/build_vtk_bundle/node_modules/shelljs/src/to.js b/build_vtk_bundle/node_modules/shelljs/src/to.js deleted file mode 100644 index f1355bfc..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/to.js +++ /dev/null @@ -1,37 +0,0 @@ -var common = require('./common'); -var fs = require('fs'); -var path = require('path'); - -common.register('to', _to, { - pipeOnly: true, - wrapOutput: false, -}); - -//@ -//@ ### ShellString.prototype.to(file) -//@ -//@ Examples: -//@ -//@ ```javascript -//@ cat('input.txt').to('output.txt'); -//@ ``` -//@ -//@ Analogous to the redirection operator `>` in Unix, but works with -//@ `ShellStrings` (such as those returned by `cat`, `grep`, etc.). _Like Unix -//@ redirections, `to()` will overwrite any existing file!_ -function _to(options, file) { - if (!file) common.error('wrong arguments'); - - if (!fs.existsSync(path.dirname(file))) { - common.error('no such file or directory: ' + path.dirname(file)); - } - - try { - fs.writeFileSync(file, this.stdout || this.toString(), 'utf8'); - return this; - } catch (e) { - /* istanbul ignore next */ - common.error('could not write to file (code ' + e.code + '): ' + file, { continue: true }); - } -} -module.exports = _to; diff --git a/build_vtk_bundle/node_modules/shelljs/src/toEnd.js b/build_vtk_bundle/node_modules/shelljs/src/toEnd.js deleted file mode 100644 index 63749d0b..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/toEnd.js +++ /dev/null @@ -1,36 +0,0 @@ -var common = require('./common'); -var fs = require('fs'); -var path = require('path'); - -common.register('toEnd', _toEnd, { - pipeOnly: true, - wrapOutput: false, -}); - -//@ -//@ ### ShellString.prototype.toEnd(file) -//@ -//@ Examples: -//@ -//@ ```javascript -//@ cat('input.txt').toEnd('output.txt'); -//@ ``` -//@ -//@ Analogous to the redirect-and-append operator `>>` in Unix, but works with -//@ `ShellStrings` (such as those returned by `cat`, `grep`, etc.). -function _toEnd(options, file) { - if (!file) common.error('wrong arguments'); - - if (!fs.existsSync(path.dirname(file))) { - common.error('no such file or directory: ' + path.dirname(file)); - } - - try { - fs.appendFileSync(file, this.stdout || this.toString(), 'utf8'); - return this; - } catch (e) { - /* istanbul ignore next */ - common.error('could not append to file (code ' + e.code + '): ' + file, { continue: true }); - } -} -module.exports = _toEnd; diff --git a/build_vtk_bundle/node_modules/shelljs/src/touch.js b/build_vtk_bundle/node_modules/shelljs/src/touch.js deleted file mode 100644 index 7b7033cd..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/touch.js +++ /dev/null @@ -1,111 +0,0 @@ -var common = require('./common'); -var fs = require('fs'); - -common.register('touch', _touch, { - cmdOptions: { - 'a': 'atime_only', - 'c': 'no_create', - 'd': 'date', - 'm': 'mtime_only', - 'r': 'reference', - }, -}); - -//@ -//@ ### touch([options,] file [, file ...]) -//@ ### touch([options,] file_array) -//@ -//@ Available options: -//@ -//@ + `-a`: Change only the access time -//@ + `-c`: Do not create any files -//@ + `-m`: Change only the modification time -//@ + `-d DATE`: Parse `DATE` and use it instead of current time -//@ + `-r FILE`: Use `FILE`'s times instead of current time -//@ -//@ Examples: -//@ -//@ ```javascript -//@ touch('source.js'); -//@ touch('-c', '/path/to/some/dir/source.js'); -//@ touch({ '-r': FILE }, '/path/to/some/dir/source.js'); -//@ ``` -//@ -//@ Update the access and modification times of each `FILE` to the current time. -//@ A `FILE` argument that does not exist is created empty, unless `-c` is supplied. -//@ This is a partial implementation of [`touch(1)`](http://linux.die.net/man/1/touch). -function _touch(opts, files) { - if (!files) { - common.error('no files given'); - } else if (typeof files === 'string') { - files = [].slice.call(arguments, 1); - } else { - common.error('file arg should be a string file path or an Array of string file paths'); - } - - files.forEach(function (f) { - touchFile(opts, f); - }); - return ''; -} - -function touchFile(opts, file) { - var stat = tryStatFile(file); - - if (stat && stat.isDirectory()) { - // don't error just exit - return; - } - - // if the file doesn't already exist and the user has specified --no-create then - // this script is finished - if (!stat && opts.no_create) { - return; - } - - // open the file and then close it. this will create it if it doesn't exist but will - // not truncate the file - fs.closeSync(fs.openSync(file, 'a')); - - // - // Set timestamps - // - - // setup some defaults - var now = new Date(); - var mtime = opts.date || now; - var atime = opts.date || now; - - // use reference file - if (opts.reference) { - var refStat = tryStatFile(opts.reference); - if (!refStat) { - common.error('failed to get attributess of ' + opts.reference); - } - mtime = refStat.mtime; - atime = refStat.atime; - } else if (opts.date) { - mtime = opts.date; - atime = opts.date; - } - - if (opts.atime_only && opts.mtime_only) { - // keep the new values of mtime and atime like GNU - } else if (opts.atime_only) { - mtime = stat.mtime; - } else if (opts.mtime_only) { - atime = stat.atime; - } - - fs.utimesSync(file, atime, mtime); -} - -module.exports = _touch; - -function tryStatFile(filePath) { - try { - return common.statFollowLinks(filePath); - } catch (e) { - return null; - } -} diff --git a/build_vtk_bundle/node_modules/shelljs/src/uniq.js b/build_vtk_bundle/node_modules/shelljs/src/uniq.js deleted file mode 100644 index a7e343bd..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/uniq.js +++ /dev/null @@ -1,92 +0,0 @@ -var common = require('./common'); -var fs = require('fs'); - -// add c spaces to the left of str -function lpad(c, str) { - var res = '' + str; - if (res.length < c) { - res = Array((c - res.length) + 1).join(' ') + res; - } - return res; -} - -common.register('uniq', _uniq, { - canReceivePipe: true, - cmdOptions: { - 'i': 'ignoreCase', - 'c': 'count', - 'd': 'duplicates', - }, -}); - -//@ -//@ ### uniq([options,] [input, [output]]) -//@ -//@ Available options: -//@ -//@ + `-i`: Ignore case while comparing -//@ + `-c`: Prefix lines by the number of occurrences -//@ + `-d`: Only print duplicate lines, one for each group of identical lines -//@ -//@ Examples: -//@ -//@ ```javascript -//@ uniq('foo.txt'); -//@ uniq('-i', 'foo.txt'); -//@ uniq('-cd', 'foo.txt', 'bar.txt'); -//@ ``` -//@ -//@ Filter adjacent matching lines from `input`. -function _uniq(options, input, output) { - // Check if this is coming from a pipe - var pipe = common.readFromPipe(); - - if (!pipe) { - if (!input) common.error('no input given'); - - if (!fs.existsSync(input)) { - common.error(input + ': No such file or directory'); - } else if (common.statFollowLinks(input).isDirectory()) { - common.error("error reading '" + input + "'"); - } - } - if (output && fs.existsSync(output) && common.statFollowLinks(output).isDirectory()) { - common.error(output + ': Is a directory'); - } - - var lines = (input ? fs.readFileSync(input, 'utf8') : pipe). - trimRight(). - split('\n'); - - var compare = function (a, b) { - return options.ignoreCase ? - a.toLocaleLowerCase().localeCompare(b.toLocaleLowerCase()) : - a.localeCompare(b); - }; - var uniqed = lines.reduceRight(function (res, e) { - // Perform uniq -c on the input - if (res.length === 0) { - return [{ count: 1, ln: e }]; - } else if (compare(res[0].ln, e) === 0) { - return [{ count: res[0].count + 1, ln: e }].concat(res.slice(1)); - } else { - return [{ count: 1, ln: e }].concat(res); - } - }, []).filter(function (obj) { - // Do we want only duplicated objects? - return options.duplicates ? obj.count > 1 : true; - }).map(function (obj) { - // Are we tracking the counts of each line? - return (options.count ? (lpad(7, obj.count) + ' ') : '') + obj.ln; - }).join('\n') + '\n'; - - if (output) { - (new common.ShellString(uniqed)).to(output); - // if uniq writes to output, nothing is passed to the next command in the pipeline (if any) - return ''; - } else { - return uniqed; - } -} - -module.exports = _uniq; diff --git a/build_vtk_bundle/node_modules/shelljs/src/which.js b/build_vtk_bundle/node_modules/shelljs/src/which.js deleted file mode 100644 index cc497384..00000000 --- a/build_vtk_bundle/node_modules/shelljs/src/which.js +++ /dev/null @@ -1,118 +0,0 @@ -var common = require('./common'); -var fs = require('fs'); -var path = require('path'); - -common.register('which', _which, { - allowGlobbing: false, - cmdOptions: { - 'a': 'all', - }, -}); - -// XP's system default value for `PATHEXT` system variable, just in case it's not -// set on Windows. -var XP_DEFAULT_PATHEXT = '.com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh'; - -// For earlier versions of NodeJS that doesn't have a list of constants (< v6) -var FILE_EXECUTABLE_MODE = 1; - -function isWindowsPlatform() { - return process.platform === 'win32'; -} - -// Cross-platform method for splitting environment `PATH` variables -function splitPath(p) { - return p ? p.split(path.delimiter) : []; -} - -// Tests are running all cases for this func but it stays uncovered by codecov due to unknown reason -/* istanbul ignore next */ -function isExecutable(pathName) { - try { - // TODO(node-support): replace with fs.constants.X_OK once remove support for node < v6 - fs.accessSync(pathName, FILE_EXECUTABLE_MODE); - } catch (err) { - return false; - } - return true; -} - -function checkPath(pathName) { - return fs.existsSync(pathName) && !common.statFollowLinks(pathName).isDirectory() - && (isWindowsPlatform() || isExecutable(pathName)); -} - -//@ -//@ ### which(command) -//@ -//@ Examples: -//@ -//@ ```javascript -//@ var nodeExec = which('node'); -//@ ``` -//@ -//@ Searches for `command` in the system's `PATH`. On Windows, this uses the -//@ `PATHEXT` variable to append the extension if it's not already executable. -//@ Returns string containing the absolute path to `command`. -function _which(options, cmd) { - if (!cmd) common.error('must specify command'); - - var isWindows = isWindowsPlatform(); - var pathArray = splitPath(process.env.PATH); - - var queryMatches = []; - - // No relative/absolute paths provided? - if (cmd.indexOf('/') === -1) { - // Assume that there are no extensions to append to queries (this is the - // case for unix) - var pathExtArray = ['']; - if (isWindows) { - // In case the PATHEXT variable is somehow not set (e.g. - // child_process.spawn with an empty environment), use the XP default. - var pathExtEnv = process.env.PATHEXT || XP_DEFAULT_PATHEXT; - pathExtArray = splitPath(pathExtEnv.toUpperCase()); - } - - // Search for command in PATH - for (var k = 0; k < pathArray.length; k++) { - // already found it - if (queryMatches.length > 0 && !options.all) break; - - var attempt = path.resolve(pathArray[k], cmd); - - if (isWindows) { - attempt = attempt.toUpperCase(); - } - - var match = attempt.match(/\.[^<>:"/\|?*.]+$/); - if (match && pathExtArray.indexOf(match[0]) >= 0) { // this is Windows-only - // The user typed a query with the file extension, like - // `which('node.exe')` - if (checkPath(attempt)) { - queryMatches.push(attempt); - break; - } - } else { // All-platforms - // Cycle through the PATHEXT array, and check each extension - // Note: the array is always [''] on Unix - for (var i = 0; i < pathExtArray.length; i++) { - var ext = pathExtArray[i]; - var newAttempt = attempt + ext; - if (checkPath(newAttempt)) { - queryMatches.push(newAttempt); - break; - } - } - } - } - } else if (checkPath(cmd)) { // a valid absolute or relative path - queryMatches.push(path.resolve(cmd)); - } - - if (queryMatches.length > 0) { - return options.all ? queryMatches : queryMatches[0]; - } - return options.all ? [] : null; -} -module.exports = _which; diff --git a/build_vtk_bundle/node_modules/source-map-js/LICENSE b/build_vtk_bundle/node_modules/source-map-js/LICENSE deleted file mode 100644 index ed1b7cf2..00000000 --- a/build_vtk_bundle/node_modules/source-map-js/LICENSE +++ /dev/null @@ -1,28 +0,0 @@ - -Copyright (c) 2009-2011, Mozilla Foundation and contributors -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the names of the Mozilla Foundation nor the names of project - contributors may be used to endorse or promote products derived from this - software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/build_vtk_bundle/node_modules/source-map-js/README.md b/build_vtk_bundle/node_modules/source-map-js/README.md deleted file mode 100644 index 614962d7..00000000 --- a/build_vtk_bundle/node_modules/source-map-js/README.md +++ /dev/null @@ -1,765 +0,0 @@ -# Source Map JS - -[![NPM](https://nodei.co/npm/source-map-js.png?downloads=true&downloadRank=true)](https://www.npmjs.com/package/source-map-js) - -Difference between original [source-map](https://github.com/mozilla/source-map): - -> TL,DR: it's fork of original source-map@0.6, but with perfomance optimizations. - -This journey starts from [source-map@0.7.0](https://github.com/mozilla/source-map/blob/master/CHANGELOG.md#070). Some part of it was rewritten to Rust and WASM and API became async. - -It's still a major block for many libraries like PostCSS or Sass for example because they need to migrate the whole API to the async way. This is the reason why 0.6.1 has 2x more downloads than 0.7.3 while it's faster several times. - -![Downloads count](media/downloads.png) - -More important that WASM version has some optimizations in JS code too. This is why [community asked to create branch for 0.6 version](https://github.com/mozilla/source-map/issues/324) and port these optimizations but, sadly, the answer was «no». A bit later I discovered [the issue](https://github.com/mozilla/source-map/issues/370) created by [Ben Rothman (@benthemonkey)](https://github.com/benthemonkey) with no response at all. - -[Roman Dvornov (@lahmatiy)](https://github.com/lahmatiy) wrote a [serveral posts](https://t.me/gorshochekvarit/76) (russian, only, sorry) about source-map library in his own Telegram channel. He mentioned the article [«Maybe you don't need Rust and WASM to speed up your JS»](https://mrale.ph/blog/2018/02/03/maybe-you-dont-need-rust-to-speed-up-your-js.html) written by [Vyacheslav Egorov (@mraleph)](https://github.com/mraleph). This article contains optimizations and hacks that lead to almost the same performance compare to WASM implementation. - -I decided to fork the original source-map and port these optimizations from the article and several others PR from the original source-map. - ---------- - -This is a library to generate and consume the source map format -[described here][format]. - -[format]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit - -## Use with Node - - $ npm install source-map-js - - - --------------------------------------------------------------------------------- - - - - - -## Table of Contents - -- [Examples](#examples) - - [Consuming a source map](#consuming-a-source-map) - - [Generating a source map](#generating-a-source-map) - - [With SourceNode (high level API)](#with-sourcenode-high-level-api) - - [With SourceMapGenerator (low level API)](#with-sourcemapgenerator-low-level-api) -- [API](#api) - - [SourceMapConsumer](#sourcemapconsumer) - - [new SourceMapConsumer(rawSourceMap)](#new-sourcemapconsumerrawsourcemap) - - [SourceMapConsumer.prototype.computeColumnSpans()](#sourcemapconsumerprototypecomputecolumnspans) - - [SourceMapConsumer.prototype.originalPositionFor(generatedPosition)](#sourcemapconsumerprototypeoriginalpositionforgeneratedposition) - - [SourceMapConsumer.prototype.generatedPositionFor(originalPosition)](#sourcemapconsumerprototypegeneratedpositionfororiginalposition) - - [SourceMapConsumer.prototype.allGeneratedPositionsFor(originalPosition)](#sourcemapconsumerprototypeallgeneratedpositionsfororiginalposition) - - [SourceMapConsumer.prototype.hasContentsOfAllSources()](#sourcemapconsumerprototypehascontentsofallsources) - - [SourceMapConsumer.prototype.sourceContentFor(source[, returnNullOnMissing])](#sourcemapconsumerprototypesourcecontentforsource-returnnullonmissing) - - [SourceMapConsumer.prototype.eachMapping(callback, context, order)](#sourcemapconsumerprototypeeachmappingcallback-context-order) - - [SourceMapGenerator](#sourcemapgenerator) - - [new SourceMapGenerator([startOfSourceMap])](#new-sourcemapgeneratorstartofsourcemap) - - [SourceMapGenerator.fromSourceMap(sourceMapConsumer)](#sourcemapgeneratorfromsourcemapsourcemapconsumer) - - [SourceMapGenerator.prototype.addMapping(mapping)](#sourcemapgeneratorprototypeaddmappingmapping) - - [SourceMapGenerator.prototype.setSourceContent(sourceFile, sourceContent)](#sourcemapgeneratorprototypesetsourcecontentsourcefile-sourcecontent) - - [SourceMapGenerator.prototype.applySourceMap(sourceMapConsumer[, sourceFile[, sourceMapPath]])](#sourcemapgeneratorprototypeapplysourcemapsourcemapconsumer-sourcefile-sourcemappath) - - [SourceMapGenerator.prototype.toString()](#sourcemapgeneratorprototypetostring) - - [SourceNode](#sourcenode) - - [new SourceNode([line, column, source[, chunk[, name]]])](#new-sourcenodeline-column-source-chunk-name) - - [SourceNode.fromStringWithSourceMap(code, sourceMapConsumer[, relativePath])](#sourcenodefromstringwithsourcemapcode-sourcemapconsumer-relativepath) - - [SourceNode.prototype.add(chunk)](#sourcenodeprototypeaddchunk) - - [SourceNode.prototype.prepend(chunk)](#sourcenodeprototypeprependchunk) - - [SourceNode.prototype.setSourceContent(sourceFile, sourceContent)](#sourcenodeprototypesetsourcecontentsourcefile-sourcecontent) - - [SourceNode.prototype.walk(fn)](#sourcenodeprototypewalkfn) - - [SourceNode.prototype.walkSourceContents(fn)](#sourcenodeprototypewalksourcecontentsfn) - - [SourceNode.prototype.join(sep)](#sourcenodeprototypejoinsep) - - [SourceNode.prototype.replaceRight(pattern, replacement)](#sourcenodeprototypereplacerightpattern-replacement) - - [SourceNode.prototype.toString()](#sourcenodeprototypetostring) - - [SourceNode.prototype.toStringWithSourceMap([startOfSourceMap])](#sourcenodeprototypetostringwithsourcemapstartofsourcemap) - - - -## Examples - -### Consuming a source map - -```js -var rawSourceMap = { - version: 3, - file: 'min.js', - names: ['bar', 'baz', 'n'], - sources: ['one.js', 'two.js'], - sourceRoot: 'http://example.com/www/js/', - mappings: 'CAAC,IAAI,IAAM,SAAUA,GAClB,OAAOC,IAAID;CCDb,IAAI,IAAM,SAAUE,GAClB,OAAOA' -}; - -var smc = new SourceMapConsumer(rawSourceMap); - -console.log(smc.sources); -// [ 'http://example.com/www/js/one.js', -// 'http://example.com/www/js/two.js' ] - -console.log(smc.originalPositionFor({ - line: 2, - column: 28 -})); -// { source: 'http://example.com/www/js/two.js', -// line: 2, -// column: 10, -// name: 'n' } - -console.log(smc.generatedPositionFor({ - source: 'http://example.com/www/js/two.js', - line: 2, - column: 10 -})); -// { line: 2, column: 28 } - -smc.eachMapping(function (m) { - // ... -}); -``` - -### Generating a source map - -In depth guide: -[**Compiling to JavaScript, and Debugging with Source Maps**](https://hacks.mozilla.org/2013/05/compiling-to-javascript-and-debugging-with-source-maps/) - -#### With SourceNode (high level API) - -```js -function compile(ast) { - switch (ast.type) { - case 'BinaryExpression': - return new SourceNode( - ast.location.line, - ast.location.column, - ast.location.source, - [compile(ast.left), " + ", compile(ast.right)] - ); - case 'Literal': - return new SourceNode( - ast.location.line, - ast.location.column, - ast.location.source, - String(ast.value) - ); - // ... - default: - throw new Error("Bad AST"); - } -} - -var ast = parse("40 + 2", "add.js"); -console.log(compile(ast).toStringWithSourceMap({ - file: 'add.js' -})); -// { code: '40 + 2', -// map: [object SourceMapGenerator] } -``` - -#### With SourceMapGenerator (low level API) - -```js -var map = new SourceMapGenerator({ - file: "source-mapped.js" -}); - -map.addMapping({ - generated: { - line: 10, - column: 35 - }, - source: "foo.js", - original: { - line: 33, - column: 2 - }, - name: "christopher" -}); - -console.log(map.toString()); -// '{"version":3,"file":"source-mapped.js","sources":["foo.js"],"names":["christopher"],"mappings":";;;;;;;;;mCAgCEA"}' -``` - -## API - -Get a reference to the module: - -```js -// Node.js -var sourceMap = require('source-map'); - -// Browser builds -var sourceMap = window.sourceMap; - -// Inside Firefox -const sourceMap = require("devtools/toolkit/sourcemap/source-map.js"); -``` - -### SourceMapConsumer - -A SourceMapConsumer instance represents a parsed source map which we can query -for information about the original file positions by giving it a file position -in the generated source. - -#### new SourceMapConsumer(rawSourceMap) - -The only parameter is the raw source map (either as a string which can be -`JSON.parse`'d, or an object). According to the spec, source maps have the -following attributes: - -* `version`: Which version of the source map spec this map is following. - -* `sources`: An array of URLs to the original source files. - -* `names`: An array of identifiers which can be referenced by individual - mappings. - -* `sourceRoot`: Optional. The URL root from which all sources are relative. - -* `sourcesContent`: Optional. An array of contents of the original source files. - -* `mappings`: A string of base64 VLQs which contain the actual mappings. - -* `file`: Optional. The generated filename this source map is associated with. - -```js -var consumer = new sourceMap.SourceMapConsumer(rawSourceMapJsonData); -``` - -#### SourceMapConsumer.prototype.computeColumnSpans() - -Compute the last column for each generated mapping. The last column is -inclusive. - -```js -// Before: -consumer.allGeneratedPositionsFor({ line: 2, source: "foo.coffee" }) -// [ { line: 2, -// column: 1 }, -// { line: 2, -// column: 10 }, -// { line: 2, -// column: 20 } ] - -consumer.computeColumnSpans(); - -// After: -consumer.allGeneratedPositionsFor({ line: 2, source: "foo.coffee" }) -// [ { line: 2, -// column: 1, -// lastColumn: 9 }, -// { line: 2, -// column: 10, -// lastColumn: 19 }, -// { line: 2, -// column: 20, -// lastColumn: Infinity } ] - -``` - -#### SourceMapConsumer.prototype.originalPositionFor(generatedPosition) - -Returns the original source, line, and column information for the generated -source's line and column positions provided. The only argument is an object with -the following properties: - -* `line`: The line number in the generated source. Line numbers in - this library are 1-based (note that the underlying source map - specification uses 0-based line numbers -- this library handles the - translation). - -* `column`: The column number in the generated source. Column numbers - in this library are 0-based. - -* `bias`: Either `SourceMapConsumer.GREATEST_LOWER_BOUND` or - `SourceMapConsumer.LEAST_UPPER_BOUND`. Specifies whether to return the closest - element that is smaller than or greater than the one we are searching for, - respectively, if the exact element cannot be found. Defaults to - `SourceMapConsumer.GREATEST_LOWER_BOUND`. - -and an object is returned with the following properties: - -* `source`: The original source file, or null if this information is not - available. - -* `line`: The line number in the original source, or null if this information is - not available. The line number is 1-based. - -* `column`: The column number in the original source, or null if this - information is not available. The column number is 0-based. - -* `name`: The original identifier, or null if this information is not available. - -```js -consumer.originalPositionFor({ line: 2, column: 10 }) -// { source: 'foo.coffee', -// line: 2, -// column: 2, -// name: null } - -consumer.originalPositionFor({ line: 99999999999999999, column: 999999999999999 }) -// { source: null, -// line: null, -// column: null, -// name: null } -``` - -#### SourceMapConsumer.prototype.generatedPositionFor(originalPosition) - -Returns the generated line and column information for the original source, -line, and column positions provided. The only argument is an object with -the following properties: - -* `source`: The filename of the original source. - -* `line`: The line number in the original source. The line number is - 1-based. - -* `column`: The column number in the original source. The column - number is 0-based. - -and an object is returned with the following properties: - -* `line`: The line number in the generated source, or null. The line - number is 1-based. - -* `column`: The column number in the generated source, or null. The - column number is 0-based. - -```js -consumer.generatedPositionFor({ source: "example.js", line: 2, column: 10 }) -// { line: 1, -// column: 56 } -``` - -#### SourceMapConsumer.prototype.allGeneratedPositionsFor(originalPosition) - -Returns all generated line and column information for the original source, line, -and column provided. If no column is provided, returns all mappings -corresponding to a either the line we are searching for or the next closest line -that has any mappings. Otherwise, returns all mappings corresponding to the -given line and either the column we are searching for or the next closest column -that has any offsets. - -The only argument is an object with the following properties: - -* `source`: The filename of the original source. - -* `line`: The line number in the original source. The line number is - 1-based. - -* `column`: Optional. The column number in the original source. The - column number is 0-based. - -and an array of objects is returned, each with the following properties: - -* `line`: The line number in the generated source, or null. The line - number is 1-based. - -* `column`: The column number in the generated source, or null. The - column number is 0-based. - -```js -consumer.allGeneratedpositionsfor({ line: 2, source: "foo.coffee" }) -// [ { line: 2, -// column: 1 }, -// { line: 2, -// column: 10 }, -// { line: 2, -// column: 20 } ] -``` - -#### SourceMapConsumer.prototype.hasContentsOfAllSources() - -Return true if we have the embedded source content for every source listed in -the source map, false otherwise. - -In other words, if this method returns `true`, then -`consumer.sourceContentFor(s)` will succeed for every source `s` in -`consumer.sources`. - -```js -// ... -if (consumer.hasContentsOfAllSources()) { - consumerReadyCallback(consumer); -} else { - fetchSources(consumer, consumerReadyCallback); -} -// ... -``` - -#### SourceMapConsumer.prototype.sourceContentFor(source[, returnNullOnMissing]) - -Returns the original source content for the source provided. The only -argument is the URL of the original source file. - -If the source content for the given source is not found, then an error is -thrown. Optionally, pass `true` as the second param to have `null` returned -instead. - -```js -consumer.sources -// [ "my-cool-lib.clj" ] - -consumer.sourceContentFor("my-cool-lib.clj") -// "..." - -consumer.sourceContentFor("this is not in the source map"); -// Error: "this is not in the source map" is not in the source map - -consumer.sourceContentFor("this is not in the source map", true); -// null -``` - -#### SourceMapConsumer.prototype.eachMapping(callback, context, order) - -Iterate over each mapping between an original source/line/column and a -generated line/column in this source map. - -* `callback`: The function that is called with each mapping. Mappings have the - form `{ source, generatedLine, generatedColumn, originalLine, originalColumn, - name }` - -* `context`: Optional. If specified, this object will be the value of `this` - every time that `callback` is called. - -* `order`: Either `SourceMapConsumer.GENERATED_ORDER` or - `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to iterate over - the mappings sorted by the generated file's line/column order or the - original's source/line/column order, respectively. Defaults to - `SourceMapConsumer.GENERATED_ORDER`. - -```js -consumer.eachMapping(function (m) { console.log(m); }) -// ... -// { source: 'illmatic.js', -// generatedLine: 1, -// generatedColumn: 0, -// originalLine: 1, -// originalColumn: 0, -// name: null } -// { source: 'illmatic.js', -// generatedLine: 2, -// generatedColumn: 0, -// originalLine: 2, -// originalColumn: 0, -// name: null } -// ... -``` -### SourceMapGenerator - -An instance of the SourceMapGenerator represents a source map which is being -built incrementally. - -#### new SourceMapGenerator([startOfSourceMap]) - -You may pass an object with the following properties: - -* `file`: The filename of the generated source that this source map is - associated with. - -* `sourceRoot`: A root for all relative URLs in this source map. - -* `skipValidation`: Optional. When `true`, disables validation of mappings as - they are added. This can improve performance but should be used with - discretion, as a last resort. Even then, one should avoid using this flag when - running tests, if possible. - -* `ignoreInvalidMapping`: Optional. When `true`, instead of throwing error on - invalid mapping, it will be ignored. - -```js -var generator = new sourceMap.SourceMapGenerator({ - file: "my-generated-javascript-file.js", - sourceRoot: "http://example.com/app/js/" -}); -``` - -#### SourceMapGenerator.fromSourceMap(sourceMapConsumer, sourceMapGeneratorOptions) - -Creates a new `SourceMapGenerator` from an existing `SourceMapConsumer` instance. - -* `sourceMapConsumer` The SourceMap. - -* `sourceMapGeneratorOptions` options that will be passed to the SourceMapGenerator constructor which used under the hood. - -```js -var generator = sourceMap.SourceMapGenerator.fromSourceMap(consumer, { - ignoreInvalidMapping: true, -}); -``` - -#### SourceMapGenerator.prototype.addMapping(mapping) - -Add a single mapping from original source line and column to the generated -source's line and column for this source map being created. The mapping object -should have the following properties: - -* `generated`: An object with the generated line and column positions. - -* `original`: An object with the original line and column positions. - -* `source`: The original source file (relative to the sourceRoot). - -* `name`: An optional original token name for this mapping. - -```js -generator.addMapping({ - source: "module-one.scm", - original: { line: 128, column: 0 }, - generated: { line: 3, column: 456 } -}) -``` - -#### SourceMapGenerator.prototype.setSourceContent(sourceFile, sourceContent) - -Set the source content for an original source file. - -* `sourceFile` the URL of the original source file. - -* `sourceContent` the content of the source file. - -```js -generator.setSourceContent("module-one.scm", - fs.readFileSync("path/to/module-one.scm")) -``` - -#### SourceMapGenerator.prototype.applySourceMap(sourceMapConsumer[, sourceFile[, sourceMapPath]]) - -Applies a SourceMap for a source file to the SourceMap. -Each mapping to the supplied source file is rewritten using the -supplied SourceMap. Note: The resolution for the resulting mappings -is the minimum of this map and the supplied map. - -* `sourceMapConsumer`: The SourceMap to be applied. - -* `sourceFile`: Optional. The filename of the source file. - If omitted, sourceMapConsumer.file will be used, if it exists. - Otherwise an error will be thrown. - -* `sourceMapPath`: Optional. The dirname of the path to the SourceMap - to be applied. If relative, it is relative to the SourceMap. - - This parameter is needed when the two SourceMaps aren't in the same - directory, and the SourceMap to be applied contains relative source - paths. If so, those relative source paths need to be rewritten - relative to the SourceMap. - - If omitted, it is assumed that both SourceMaps are in the same directory, - thus not needing any rewriting. (Supplying `'.'` has the same effect.) - -#### SourceMapGenerator.prototype.toString() - -Renders the source map being generated to a string. - -```js -generator.toString() -// '{"version":3,"sources":["module-one.scm"],"names":[],"mappings":"...snip...","file":"my-generated-javascript-file.js","sourceRoot":"http://example.com/app/js/"}' -``` - -### SourceNode - -SourceNodes provide a way to abstract over interpolating and/or concatenating -snippets of generated JavaScript source code, while maintaining the line and -column information associated between those snippets and the original source -code. This is useful as the final intermediate representation a compiler might -use before outputting the generated JS and source map. - -#### new SourceNode([line, column, source[, chunk[, name]]]) - -* `line`: The original line number associated with this source node, or null if - it isn't associated with an original line. The line number is 1-based. - -* `column`: The original column number associated with this source node, or null - if it isn't associated with an original column. The column number - is 0-based. - -* `source`: The original source's filename; null if no filename is provided. - -* `chunk`: Optional. Is immediately passed to `SourceNode.prototype.add`, see - below. - -* `name`: Optional. The original identifier. - -```js -var node = new SourceNode(1, 2, "a.cpp", [ - new SourceNode(3, 4, "b.cpp", "extern int status;\n"), - new SourceNode(5, 6, "c.cpp", "std::string* make_string(size_t n);\n"), - new SourceNode(7, 8, "d.cpp", "int main(int argc, char** argv) {}\n"), -]); -``` - -#### SourceNode.fromStringWithSourceMap(code, sourceMapConsumer[, relativePath]) - -Creates a SourceNode from generated code and a SourceMapConsumer. - -* `code`: The generated code - -* `sourceMapConsumer` The SourceMap for the generated code - -* `relativePath` The optional path that relative sources in `sourceMapConsumer` - should be relative to. - -```js -var consumer = new SourceMapConsumer(fs.readFileSync("path/to/my-file.js.map", "utf8")); -var node = SourceNode.fromStringWithSourceMap(fs.readFileSync("path/to/my-file.js"), - consumer); -``` - -#### SourceNode.prototype.add(chunk) - -Add a chunk of generated JS to this source node. - -* `chunk`: A string snippet of generated JS code, another instance of - `SourceNode`, or an array where each member is one of those things. - -```js -node.add(" + "); -node.add(otherNode); -node.add([leftHandOperandNode, " + ", rightHandOperandNode]); -``` - -#### SourceNode.prototype.prepend(chunk) - -Prepend a chunk of generated JS to this source node. - -* `chunk`: A string snippet of generated JS code, another instance of - `SourceNode`, or an array where each member is one of those things. - -```js -node.prepend("/** Build Id: f783haef86324gf **/\n\n"); -``` - -#### SourceNode.prototype.setSourceContent(sourceFile, sourceContent) - -Set the source content for a source file. This will be added to the -`SourceMap` in the `sourcesContent` field. - -* `sourceFile`: The filename of the source file - -* `sourceContent`: The content of the source file - -```js -node.setSourceContent("module-one.scm", - fs.readFileSync("path/to/module-one.scm")) -``` - -#### SourceNode.prototype.walk(fn) - -Walk over the tree of JS snippets in this node and its children. The walking -function is called once for each snippet of JS and is passed that snippet and -the its original associated source's line/column location. - -* `fn`: The traversal function. - -```js -var node = new SourceNode(1, 2, "a.js", [ - new SourceNode(3, 4, "b.js", "uno"), - "dos", - [ - "tres", - new SourceNode(5, 6, "c.js", "quatro") - ] -]); - -node.walk(function (code, loc) { console.log("WALK:", code, loc); }) -// WALK: uno { source: 'b.js', line: 3, column: 4, name: null } -// WALK: dos { source: 'a.js', line: 1, column: 2, name: null } -// WALK: tres { source: 'a.js', line: 1, column: 2, name: null } -// WALK: quatro { source: 'c.js', line: 5, column: 6, name: null } -``` - -#### SourceNode.prototype.walkSourceContents(fn) - -Walk over the tree of SourceNodes. The walking function is called for each -source file content and is passed the filename and source content. - -* `fn`: The traversal function. - -```js -var a = new SourceNode(1, 2, "a.js", "generated from a"); -a.setSourceContent("a.js", "original a"); -var b = new SourceNode(1, 2, "b.js", "generated from b"); -b.setSourceContent("b.js", "original b"); -var c = new SourceNode(1, 2, "c.js", "generated from c"); -c.setSourceContent("c.js", "original c"); - -var node = new SourceNode(null, null, null, [a, b, c]); -node.walkSourceContents(function (source, contents) { console.log("WALK:", source, ":", contents); }) -// WALK: a.js : original a -// WALK: b.js : original b -// WALK: c.js : original c -``` - -#### SourceNode.prototype.join(sep) - -Like `Array.prototype.join` except for SourceNodes. Inserts the separator -between each of this source node's children. - -* `sep`: The separator. - -```js -var lhs = new SourceNode(1, 2, "a.rs", "my_copy"); -var operand = new SourceNode(3, 4, "a.rs", "="); -var rhs = new SourceNode(5, 6, "a.rs", "orig.clone()"); - -var node = new SourceNode(null, null, null, [ lhs, operand, rhs ]); -var joinedNode = node.join(" "); -``` - -#### SourceNode.prototype.replaceRight(pattern, replacement) - -Call `String.prototype.replace` on the very right-most source snippet. Useful -for trimming white space from the end of a source node, etc. - -* `pattern`: The pattern to replace. - -* `replacement`: The thing to replace the pattern with. - -```js -// Trim trailing white space. -node.replaceRight(/\s*$/, ""); -``` - -#### SourceNode.prototype.toString() - -Return the string representation of this source node. Walks over the tree and -concatenates all the various snippets together to one string. - -```js -var node = new SourceNode(1, 2, "a.js", [ - new SourceNode(3, 4, "b.js", "uno"), - "dos", - [ - "tres", - new SourceNode(5, 6, "c.js", "quatro") - ] -]); - -node.toString() -// 'unodostresquatro' -``` - -#### SourceNode.prototype.toStringWithSourceMap([startOfSourceMap]) - -Returns the string representation of this tree of source nodes, plus a -SourceMapGenerator which contains all the mappings between the generated and -original sources. - -The arguments are the same as those to `new SourceMapGenerator`. - -```js -var node = new SourceNode(1, 2, "a.js", [ - new SourceNode(3, 4, "b.js", "uno"), - "dos", - [ - "tres", - new SourceNode(5, 6, "c.js", "quatro") - ] -]); - -node.toStringWithSourceMap({ file: "my-output-file.js" }) -// { code: 'unodostresquatro', -// map: [object SourceMapGenerator] } -``` diff --git a/build_vtk_bundle/node_modules/source-map-js/package.json b/build_vtk_bundle/node_modules/source-map-js/package.json deleted file mode 100644 index f58dbeb4..00000000 --- a/build_vtk_bundle/node_modules/source-map-js/package.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "name": "source-map-js", - "description": "Generates and consumes source maps", - "version": "1.2.1", - "homepage": "https://github.com/7rulnik/source-map-js", - "author": "Valentin 7rulnik Semirulnik ", - "contributors": [ - "Nick Fitzgerald ", - "Tobias Koppers ", - "Duncan Beevers ", - "Stephen Crane ", - "Ryan Seddon ", - "Miles Elam ", - "Mihai Bazon ", - "Michael Ficarra ", - "Todd Wolfson ", - "Alexander Solovyov ", - "Felix Gnass ", - "Conrad Irwin ", - "usrbincc ", - "David Glasser ", - "Chase Douglas ", - "Evan Wallace ", - "Heather Arthur ", - "Hugh Kennedy ", - "David Glasser ", - "Simon Lydell ", - "Jmeas Smith ", - "Michael Z Goddard ", - "azu ", - "John Gozde ", - "Adam Kirkton ", - "Chris Montgomery ", - "J. Ryan Stinnett ", - "Jack Herrington ", - "Chris Truter ", - "Daniel Espeset ", - "Jamie Wong ", - "Eddy Bruël ", - "Hawken Rives ", - "Gilad Peleg ", - "djchie ", - "Gary Ye ", - "Nicolas Lalevée " - ], - "repository": "7rulnik/source-map-js", - "main": "./source-map.js", - "files": [ - "source-map.js", - "source-map.d.ts", - "lib/" - ], - "engines": { - "node": ">=0.10.0" - }, - "license": "BSD-3-Clause", - "scripts": { - "test": "npm run build && node test/run-tests.js", - "build": "webpack --color", - "toc": "doctoc --title '## Table of Contents' README.md && doctoc --title '## Table of Contents' CONTRIBUTING.md" - }, - "devDependencies": { - "clean-publish": "^3.1.0", - "doctoc": "^0.15.0", - "webpack": "^1.12.0" - }, - "clean-publish": { - "cleanDocs": true - }, - "typings": "source-map.d.ts" -} diff --git a/build_vtk_bundle/node_modules/source-map-js/source-map.d.ts b/build_vtk_bundle/node_modules/source-map-js/source-map.d.ts deleted file mode 100644 index ec8892fa..00000000 --- a/build_vtk_bundle/node_modules/source-map-js/source-map.d.ts +++ /dev/null @@ -1,104 +0,0 @@ -export interface StartOfSourceMap { - file?: string; - sourceRoot?: string; -} - -export interface RawSourceMap extends StartOfSourceMap { - version: string; - sources: string[]; - names: string[]; - sourcesContent?: string[]; - mappings: string; -} - -export interface Position { - line: number; - column: number; -} - -export interface LineRange extends Position { - lastColumn: number; -} - -export interface FindPosition extends Position { - // SourceMapConsumer.GREATEST_LOWER_BOUND or SourceMapConsumer.LEAST_UPPER_BOUND - bias?: number; -} - -export interface SourceFindPosition extends FindPosition { - source: string; -} - -export interface MappedPosition extends Position { - source: string; - name?: string; -} - -export interface MappingItem { - source: string | null; - generatedLine: number; - generatedColumn: number; - originalLine: number | null; - originalColumn: number | null; - name: string | null; -} - -export class SourceMapConsumer { - static GENERATED_ORDER: number; - static ORIGINAL_ORDER: number; - - static GREATEST_LOWER_BOUND: number; - static LEAST_UPPER_BOUND: number; - - constructor(rawSourceMap: RawSourceMap); - readonly file: string | undefined | null; - readonly sourceRoot: string | undefined | null; - readonly sourcesContent: readonly string[] | null | undefined; - readonly sources: readonly string[] - - computeColumnSpans(): void; - originalPositionFor(generatedPosition: FindPosition): MappedPosition; - generatedPositionFor(originalPosition: SourceFindPosition): LineRange; - allGeneratedPositionsFor(originalPosition: MappedPosition): Position[]; - hasContentsOfAllSources(): boolean; - sourceContentFor(source: string, returnNullOnMissing?: boolean): string | null; - eachMapping(callback: (mapping: MappingItem) => void, context?: any, order?: number): void; -} - -export interface Mapping { - generated: Position; - original?: Position | null; - source?: string | null; - name?: string | null; -} - -export class SourceMapGenerator { - constructor(startOfSourceMap?: StartOfSourceMap); - static fromSourceMap(sourceMapConsumer: SourceMapConsumer, startOfSourceMap?: StartOfSourceMap): SourceMapGenerator; - addMapping(mapping: Mapping): void; - setSourceContent(sourceFile: string, sourceContent: string | null | undefined): void; - applySourceMap(sourceMapConsumer: SourceMapConsumer, sourceFile?: string, sourceMapPath?: string): void; - toString(): string; - toJSON(): RawSourceMap; -} - -export interface CodeWithSourceMap { - code: string; - map: SourceMapGenerator; -} - -export class SourceNode { - constructor(); - constructor(line: number, column: number, source: string); - constructor(line: number, column: number, source: string, chunk?: string, name?: string); - static fromStringWithSourceMap(code: string, sourceMapConsumer: SourceMapConsumer, relativePath?: string): SourceNode; - add(chunk: string): void; - prepend(chunk: string): void; - setSourceContent(sourceFile: string, sourceContent: string): void; - walk(fn: (chunk: string, mapping: MappedPosition) => void): void; - walkSourceContents(fn: (file: string, content: string) => void): void; - join(sep: string): SourceNode; - replaceRight(pattern: string, replacement: string): SourceNode; - toString(): string; - toStringWithSourceMap(startOfSourceMap?: StartOfSourceMap): CodeWithSourceMap; -} diff --git a/build_vtk_bundle/node_modules/source-map-js/source-map.js b/build_vtk_bundle/node_modules/source-map-js/source-map.js deleted file mode 100644 index bc88fe82..00000000 --- a/build_vtk_bundle/node_modules/source-map-js/source-map.js +++ /dev/null @@ -1,8 +0,0 @@ -/* - * Copyright 2009-2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE.txt or: - * http://opensource.org/licenses/BSD-3-Clause - */ -exports.SourceMapGenerator = require('./lib/source-map-generator').SourceMapGenerator; -exports.SourceMapConsumer = require('./lib/source-map-consumer').SourceMapConsumer; -exports.SourceNode = require('./lib/source-node').SourceNode; diff --git a/build_vtk_bundle/node_modules/source-map-support/LICENSE.md b/build_vtk_bundle/node_modules/source-map-support/LICENSE.md deleted file mode 100644 index 6247ca91..00000000 --- a/build_vtk_bundle/node_modules/source-map-support/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Evan Wallace - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/source-map-support/README.md b/build_vtk_bundle/node_modules/source-map-support/README.md deleted file mode 100644 index 40228b79..00000000 --- a/build_vtk_bundle/node_modules/source-map-support/README.md +++ /dev/null @@ -1,284 +0,0 @@ -# Source Map Support -[![Build Status](https://travis-ci.org/evanw/node-source-map-support.svg?branch=master)](https://travis-ci.org/evanw/node-source-map-support) - -This module provides source map support for stack traces in node via the [V8 stack trace API](https://github.com/v8/v8/wiki/Stack-Trace-API). It uses the [source-map](https://github.com/mozilla/source-map) module to replace the paths and line numbers of source-mapped files with their original paths and line numbers. The output mimics node's stack trace format with the goal of making every compile-to-JS language more of a first-class citizen. Source maps are completely general (not specific to any one language) so you can use source maps with multiple compile-to-JS languages in the same node process. - -## Installation and Usage - -#### Node support - -``` -$ npm install source-map-support -``` - -Source maps can be generated using libraries such as [source-map-index-generator](https://github.com/twolfson/source-map-index-generator). Once you have a valid source map, place a source mapping comment somewhere in the file (usually done automatically or with an option by your transpiler): - -``` -//# sourceMappingURL=path/to/source.map -``` - -If multiple sourceMappingURL comments exist in one file, the last sourceMappingURL comment will be -respected (e.g. if a file mentions the comment in code, or went through multiple transpilers). -The path should either be absolute or relative to the compiled file. - -From here you have two options. - -##### CLI Usage - -```bash -node -r source-map-support/register compiled.js -``` - -##### Programmatic Usage - -Put the following line at the top of the compiled file. - -```js -require('source-map-support').install(); -``` - -It is also possible to install the source map support directly by -requiring the `register` module which can be handy with ES6: - -```js -import 'source-map-support/register' - -// Instead of: -import sourceMapSupport from 'source-map-support' -sourceMapSupport.install() -``` -Note: if you're using babel-register, it includes source-map-support already. - -It is also very useful with Mocha: - -``` -$ mocha --require source-map-support/register tests/ -``` - -#### Browser support - -This library also works in Chrome. While the DevTools console already supports source maps, the V8 engine doesn't and `Error.prototype.stack` will be incorrect without this library. Everything will just work if you deploy your source files using [browserify](http://browserify.org/). Just make sure to pass the `--debug` flag to the browserify command so your source maps are included in the bundled code. - -This library also works if you use another build process or just include the source files directly. In this case, include the file `browser-source-map-support.js` in your page and call `sourceMapSupport.install()`. It contains the whole library already bundled for the browser using browserify. - -```html - - -``` - -This library also works if you use AMD (Asynchronous Module Definition), which is used in tools like [RequireJS](http://requirejs.org/). Just list `browser-source-map-support` as a dependency: - -```html - -``` - -## Options - -This module installs two things: a change to the `stack` property on `Error` objects and a handler for uncaught exceptions that mimics node's default exception handler (the handler can be seen in the demos below). You may want to disable the handler if you have your own uncaught exception handler. This can be done by passing an argument to the installer: - -```js -require('source-map-support').install({ - handleUncaughtExceptions: false -}); -``` - -This module loads source maps from the filesystem by default. You can provide alternate loading behavior through a callback as shown below. For example, [Meteor](https://github.com/meteor) keeps all source maps cached in memory to avoid disk access. - -```js -require('source-map-support').install({ - retrieveSourceMap: function(source) { - if (source === 'compiled.js') { - return { - url: 'original.js', - map: fs.readFileSync('compiled.js.map', 'utf8') - }; - } - return null; - } -}); -``` - -The module will by default assume a browser environment if XMLHttpRequest and window are defined. If either of these do not exist it will instead assume a node environment. -In some rare cases, e.g. when running a browser emulation and where both variables are also set, you can explictly specify the environment to be either 'browser' or 'node'. - -```js -require('source-map-support').install({ - environment: 'node' -}); -``` - -To support files with inline source maps, the `hookRequire` options can be specified, which will monitor all source files for inline source maps. - - -```js -require('source-map-support').install({ - hookRequire: true -}); -``` - -This monkey patches the `require` module loading chain, so is not enabled by default and is not recommended for any sort of production usage. - -## Demos - -#### Basic Demo - -original.js: - -```js -throw new Error('test'); // This is the original code -``` - -compiled.js: - -```js -require('source-map-support').install(); - -throw new Error('test'); // This is the compiled code -// The next line defines the sourceMapping. -//# sourceMappingURL=compiled.js.map -``` - -compiled.js.map: - -```json -{ - "version": 3, - "file": "compiled.js", - "sources": ["original.js"], - "names": [], - "mappings": ";;AAAA,MAAM,IAAI" -} -``` - -Run compiled.js using node (notice how the stack trace uses original.js instead of compiled.js): - -``` -$ node compiled.js - -original.js:1 -throw new Error('test'); // This is the original code - ^ -Error: test - at Object. (original.js:1:7) - at Module._compile (module.js:456:26) - at Object.Module._extensions..js (module.js:474:10) - at Module.load (module.js:356:32) - at Function.Module._load (module.js:312:12) - at Function.Module.runMain (module.js:497:10) - at startup (node.js:119:16) - at node.js:901:3 -``` - -#### TypeScript Demo - -demo.ts: - -```typescript -declare function require(name: string); -require('source-map-support').install(); -class Foo { - constructor() { this.bar(); } - bar() { throw new Error('this is a demo'); } -} -new Foo(); -``` - -Compile and run the file using the TypeScript compiler from the terminal: - -``` -$ npm install source-map-support typescript -$ node_modules/typescript/bin/tsc -sourcemap demo.ts -$ node demo.js - -demo.ts:5 - bar() { throw new Error('this is a demo'); } - ^ -Error: this is a demo - at Foo.bar (demo.ts:5:17) - at new Foo (demo.ts:4:24) - at Object. (demo.ts:7:1) - at Module._compile (module.js:456:26) - at Object.Module._extensions..js (module.js:474:10) - at Module.load (module.js:356:32) - at Function.Module._load (module.js:312:12) - at Function.Module.runMain (module.js:497:10) - at startup (node.js:119:16) - at node.js:901:3 -``` - -There is also the option to use `-r source-map-support/register` with typescript, without the need add the `require('source-map-support').install()` in the code base: - -``` -$ npm install source-map-support typescript -$ node_modules/typescript/bin/tsc -sourcemap demo.ts -$ node -r source-map-support/register demo.js - -demo.ts:5 - bar() { throw new Error('this is a demo'); } - ^ -Error: this is a demo - at Foo.bar (demo.ts:5:17) - at new Foo (demo.ts:4:24) - at Object. (demo.ts:7:1) - at Module._compile (module.js:456:26) - at Object.Module._extensions..js (module.js:474:10) - at Module.load (module.js:356:32) - at Function.Module._load (module.js:312:12) - at Function.Module.runMain (module.js:497:10) - at startup (node.js:119:16) - at node.js:901:3 -``` - -#### CoffeeScript Demo - -demo.coffee: - -```coffee -require('source-map-support').install() -foo = -> - bar = -> throw new Error 'this is a demo' - bar() -foo() -``` - -Compile and run the file using the CoffeeScript compiler from the terminal: - -```sh -$ npm install source-map-support coffeescript -$ node_modules/.bin/coffee --map --compile demo.coffee -$ node demo.js - -demo.coffee:3 - bar = -> throw new Error 'this is a demo' - ^ -Error: this is a demo - at bar (demo.coffee:3:22) - at foo (demo.coffee:4:3) - at Object. (demo.coffee:5:1) - at Object. (demo.coffee:1:1) - at Module._compile (module.js:456:26) - at Object.Module._extensions..js (module.js:474:10) - at Module.load (module.js:356:32) - at Function.Module._load (module.js:312:12) - at Function.Module.runMain (module.js:497:10) - at startup (node.js:119:16) -``` - -## Tests - -This repo contains both automated tests for node and manual tests for the browser. The automated tests can be run using mocha (type `mocha` in the root directory). To run the manual tests: - -* Build the tests using `build.js` -* Launch the HTTP server (`npm run serve-tests`) and visit - * http://127.0.0.1:1336/amd-test - * http://127.0.0.1:1336/browser-test - * http://127.0.0.1:1336/browserify-test - **Currently not working** due to a bug with browserify (see [pull request #66](https://github.com/evanw/node-source-map-support/pull/66) for details). -* For `header-test`, run `server.js` inside that directory and visit http://127.0.0.1:1337/ - -## License - -This code is available under the [MIT license](http://opensource.org/licenses/MIT). diff --git a/build_vtk_bundle/node_modules/source-map-support/browser-source-map-support.js b/build_vtk_bundle/node_modules/source-map-support/browser-source-map-support.js deleted file mode 100644 index 782da501..00000000 --- a/build_vtk_bundle/node_modules/source-map-support/browser-source-map-support.js +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Support for source maps in V8 stack traces - * https://github.com/evanw/node-source-map-support - */ -/* - The buffer module from node.js, for the browser. - - @author Feross Aboukhadijeh - license MIT -*/ -(this.define||function(R,U){this.sourceMapSupport=U()})("browser-source-map-support",function(R){(function e(C,J,A){function p(f,c){if(!J[f]){if(!C[f]){var l="function"==typeof require&&require;if(!c&&l)return l(f,!0);if(t)return t(f,!0);throw Error("Cannot find module '"+f+"'");}l=J[f]={exports:{}};C[f][0].call(l.exports,function(q){var r=C[f][1][q];return p(r?r:q)},l,l.exports,e,C,J,A)}return J[f].exports}for(var t="function"==typeof require&&require,m=0;mm)return-1;if(58>m)return m-48+52;if(91>m)return m-65;if(123>m)return m-97+26}var t="undefined"!==typeof Uint8Array?Uint8Array:Array;e.toByteArray=function(m){function f(d){q[k++]=d}if(0>16);f((u&65280)>>8);f(u&255)}2===l?(u=p(m.charAt(c))<<2|p(m.charAt(c+1))>>4,f(u&255)):1===l&&(u=p(m.charAt(c))<<10|p(m.charAt(c+1))<<4|p(m.charAt(c+2))>>2,f(u>>8&255),f(u&255));return q};e.fromByteArray=function(m){var f=m.length%3,c="",l;var q=0;for(l=m.length-f;q> -18&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>12&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r&63);c+=r}switch(f){case 1:r=m[m.length-1];c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>2);c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r<<4&63);c+="==";break;case 2:r=(m[m.length-2]<<8)+ -m[m.length-1],c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>10),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>4&63),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r<<2&63),c+="="}return c}})("undefined"===typeof A?this.base64js={}:A)},{}],3:[function(C,J,A){},{}],4:[function(C,J,A){(function(e){var p=Object.prototype.toString,t="function"===typeof e.alloc&&"function"===typeof e.allocUnsafe&&"function"=== -typeof e.from;J.exports=function(m,f,c){if("number"===typeof m)throw new TypeError('"value" argument must not be a number');if("ArrayBuffer"===p.call(m).slice(8,-1)){f>>>=0;var l=m.byteLength-f;if(0>l)throw new RangeError("'offset' is out of bounds");if(void 0===c)c=l;else if(c>>>=0,c>l)throw new RangeError("'length' is out of bounds");return t?e.from(m.slice(f,f+c)):new e(new Uint8Array(m.slice(f,f+c)))}if("string"===typeof m){c=f;if("string"!==typeof c||""===c)c="utf8";if(!e.isEncoding(c))throw new TypeError('"encoding" must be a valid string encoding'); -return t?e.from(m,c):new e(m,c)}return t?e.from(m):new e(m)}}).call(this,C("buffer").Buffer)},{buffer:5}],5:[function(C,J,A){function e(a,b,h){if(!(this instanceof e))return new e(a,b,h);var w=typeof a;if("number"===w)var y=0>>0:0;else if("string"===w){if("base64"===b)for(a=(a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")).replace(L,"");0!==a.length%4;)a+="=";y=e.byteLength(a,b)}else if("object"===w&&null!==a)"Buffer"===a.type&&z(a.data)&&(a=a.data),y=0<+a.length?Math.floor(+a.length):0;else throw new TypeError("must start with number, buffer, array or string"); -if(this.length>G)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+G.toString(16)+" bytes");if(e.TYPED_ARRAY_SUPPORT)var I=e._augment(new Uint8Array(y));else I=this,I.length=y,I._isBuffer=!0;if(e.TYPED_ARRAY_SUPPORT&&"number"===typeof a.byteLength)I._set(a);else{var K=a;if(z(K)||e.isBuffer(K)||K&&"object"===typeof K&&"number"===typeof K.length)if(e.isBuffer(a))for(b=0;ba)throw new RangeError("offset is not uint");if(a+b>h)throw new RangeError("Trying to access beyond buffer length");}function m(a,b,h,w,y,I){if(!e.isBuffer(a))throw new TypeError("buffer must be a Buffer instance");if(b>y||ba.length)throw new TypeError("index out of range"); -}function f(a,b,h,w){0>b&&(b=65535+b+1);for(var y=0,I=Math.min(a.length-h,2);y>>8*(w?y:1-y)}function c(a,b,h,w){0>b&&(b=4294967295+b+1);for(var y=0,I=Math.min(a.length-h,4);y>>8*(w?y:3-y)&255}function l(a,b,h,w,y,I){if(b>y||ba.length)throw new TypeError("index out of range");}function q(a,b,h,w,y){y||l(a,b,h,4,3.4028234663852886E38,-3.4028234663852886E38);v.write(a,b,h,w,23,4);return h+4}function r(a, -b,h,w,y){y||l(a,b,h,8,1.7976931348623157E308,-1.7976931348623157E308);v.write(a,b,h,w,52,8);return h+8}function k(a){for(var b=[],h=0;h=w)b.push(w);else{var y=h;55296<=w&&57343>=w&&h++;w=encodeURIComponent(a.slice(y,h+1)).substr(1).split("%");for(y=0;y=b.length||y>=a.length);y++)b[y+ -h]=a[y];return y}function g(a){try{return decodeURIComponent(a)}catch(b){return String.fromCharCode(65533)}}var n=C("base64-js"),v=C("ieee754"),z=C("is-array");A.Buffer=e;A.SlowBuffer=e;A.INSPECT_MAX_BYTES=50;e.poolSize=8192;var G=1073741823;e.TYPED_ARRAY_SUPPORT=function(){try{var a=new ArrayBuffer(0),b=new Uint8Array(a);b.foo=function(){return 42};return 42===b.foo()&&"function"===typeof b.subarray&&0===(new Uint8Array(1)).subarray(1,1).byteLength}catch(h){return!1}}();e.isBuffer=function(a){return!(null== -a||!a._isBuffer)};e.compare=function(a,b){if(!e.isBuffer(a)||!e.isBuffer(b))throw new TypeError("Arguments must be Buffers");for(var h=a.length,w=b.length,y=0,I=Math.min(h,w);y>>1;break;case "utf8":case "utf-8":h=k(a).length;break;case "base64":h=n.toByteArray(a).length; -break;default:h=a.length}return h};e.prototype.length=void 0;e.prototype.parent=void 0;e.prototype.toString=function(a,b,h){var w=!1;b>>>=0;h=void 0===h||Infinity===h?this.length:h>>>0;a||(a="utf8");0>b&&(b=0);h>this.length&&(h=this.length);if(h<=b)return"";for(;;)switch(a){case "hex":a=b;b=h;h=this.length;if(!a||0>a)a=0;if(!b||0>b||b>h)b=h;w="";for(h=a;hw?"0"+w.toString(16):w.toString(16),w=a+w;return w;case "utf8":case "utf-8":w=a="";for(h=Math.min(this.length,h);b= -this[b]?(a+=g(w)+String.fromCharCode(this[b]),w=""):w+="%"+this[b].toString(16);return a+g(w);case "ascii":return p(this,b,h);case "binary":return p(this,b,h);case "base64":return b=0===b&&h===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(b,h)),b;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":b=this.slice(b,h);h="";for(a=0;ab&&(a+=" ... "));return""};e.prototype.compare=function(a){if(!e.isBuffer(a))throw new TypeError("Argument must be a Buffer");return e.compare(this,a)};e.prototype.get=function(a){console.log(".get() is deprecated. Access using array indexes instead."); -return this.readUInt8(a)};e.prototype.set=function(a,b){console.log(".set() is deprecated. Access using array indexes instead.");return this.writeUInt8(a,b)};e.prototype.write=function(a,b,h,w){if(isFinite(b))isFinite(h)||(w=h,h=void 0);else{var y=w;w=b;b=h;h=y}b=Number(b)||0;y=this.length-b;h?(h=Number(h),h>y&&(h=y)):h=y;w=String(w||"utf8").toLowerCase();switch(w){case "hex":b=Number(b)||0;w=this.length-b;h?(h=Number(h),h>w&&(h=w)):h=w;w=a.length;if(0!==w%2)throw Error("Invalid hex string");h>w/ -2&&(h=w/2);for(w=0;w>8;K%=256;y.push(K);y.push(w)}a=d(y,this,b,h,2);break;default:throw new TypeError("Unknown encoding: "+ -w);}return a};e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};e.prototype.slice=function(a,b){var h=this.length;a=~~a;b=void 0===b?h:~~b;0>a?(a+=h,0>a&&(a=0)):a>h&&(a=h);0>b?(b+=h,0>b&&(b=0)):b>h&&(b=h);b>>=0;h||m(this,a,b,1,255,0);e.TYPED_ARRAY_SUPPORT||(a=Math.floor(a));this[b]=a;return b+1};e.prototype.writeUInt16LE=function(a, -b,h){a=+a;b>>>=0;h||m(this,a,b,2,65535,0);e.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8):f(this,a,b,!0);return b+2};e.prototype.writeUInt16BE=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,2,65535,0);e.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=a):f(this,a,b,!1);return b+2};e.prototype.writeUInt32LE=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,4,4294967295,0);e.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=a):c(this,a,b,!0);return b+4};e.prototype.writeUInt32BE=function(a, -b,h){a=+a;b>>>=0;h||m(this,a,b,4,4294967295,0);e.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=a):c(this,a,b,!1);return b+4};e.prototype.writeInt8=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,1,127,-128);e.TYPED_ARRAY_SUPPORT||(a=Math.floor(a));0>a&&(a=255+a+1);this[b]=a;return b+1};e.prototype.writeInt16LE=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,2,32767,-32768);e.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8):f(this,a,b,!0);return b+2};e.prototype.writeInt16BE=function(a, -b,h){a=+a;b>>>=0;h||m(this,a,b,2,32767,-32768);e.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=a):f(this,a,b,!1);return b+2};e.prototype.writeInt32LE=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,4,2147483647,-2147483648);e.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):c(this,a,b,!0);return b+4};e.prototype.writeInt32BE=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,4,2147483647,-2147483648);0>a&&(a=4294967295+a+1);e.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+ -2]=a>>>8,this[b+3]=a):c(this,a,b,!1);return b+4};e.prototype.writeFloatLE=function(a,b,h){return q(this,a,b,!0,h)};e.prototype.writeFloatBE=function(a,b,h){return q(this,a,b,!1,h)};e.prototype.writeDoubleLE=function(a,b,h){return r(this,a,b,!0,h)};e.prototype.writeDoubleBE=function(a,b,h){return r(this,a,b,!1,h)};e.prototype.copy=function(a,b,h,w){h||(h=0);w||0===w||(w=this.length);b||(b=0);if(w!==h&&0!==a.length&&0!==this.length){if(wb||b>=a.length)throw new TypeError("targetStart out of bounds"); -if(0>h||h>=this.length)throw new TypeError("sourceStart out of bounds");if(0>w||w>this.length)throw new TypeError("sourceEnd out of bounds");w>this.length&&(w=this.length);a.length-bw||!e.TYPED_ARRAY_SUPPORT)for(var y=0;yb||b>=this.length)throw new TypeError("start out of bounds"); -if(0>h||h>this.length)throw new TypeError("end out of bounds");if("number"===typeof a)for(;b>1,r=-7;f=t?f-1:0;var k=t?-1:1,u=e[p+f];f+=k;t=u&(1<<-r)-1;u>>=-r;for(r+=c;0>=-r;for(r+=m;0>1,u=23===f?Math.pow(2,-24)-Math.pow(2,-77):0;c=m?0:c-1;var d=m?1:-1,g=0>p||0===p&&0>1/p?1:0;p=Math.abs(p);isNaN(p)||Infinity===p?(p=isNaN(p)?1:0,m=r):(m=Math.floor(Math.log(p)/Math.LN2),1>p*(l=Math.pow(2,-m))&&(m--,l*=2),p=1<=m+k?p+u/l:p+u*Math.pow(2,1-k),2<=p*l&&(m++,l/=2),m+k>=r?(p=0,m=r):1<=m+k?(p=(p*l-1)*Math.pow(2,f),m+=k):(p=p*Math.pow(2,k-1)*Math.pow(2,f),m=0));for(;8<=f;e[t+c]=p&255,c+= -d,p/=256,f-=8);m=m<z?[]:n.slice(v,z-v+1)}c=A.resolve(c).substr(1);l=A.resolve(l).substr(1); -for(var r=q(c.split("/")),k=q(l.split("/")),u=Math.min(r.length,k.length),d=u,g=0;gl&&(l=c.length+l);return c.substr(l,q)}}).call(this,C("g5I+bs"))},{"g5I+bs":9}],9:[function(C,J,A){function e(){}C=J.exports={};C.nextTick=function(){if("undefined"!==typeof window&&window.setImmediate)return function(t){return window.setImmediate(t)};if("undefined"!==typeof window&&window.postMessage&&window.addEventListener){var p=[];window.addEventListener("message",function(t){var m=t.source;m!==window&&null!== -m||"process-tick"!==t.data||(t.stopPropagation(),0p?(-p<<1)+1:p<<1;do p=m&31,m>>>=5,0=f)throw Error("Expected more digits in base 64 VLQ value.");var q=e.decode(p.charCodeAt(t++));if(-1===q)throw Error("Invalid base64 digit: "+p.charAt(t-1));var r=!!(q&32);q&=31;c+=q<>1;m.value=1===(c&1)?-p:p;m.rest=t}},{"./base64":12}],12:[function(C, -J,A){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");A.encode=function(p){if(0<=p&&p=p?p-65:97<=p&&122>=p?p-97+26:48<=p&&57>=p?p-48+52:43==p?62:47==p?63:-1}},{}],13:[function(C,J,A){function e(p,t,m,f,c,l){var q=Math.floor((t-p)/2)+p,r=c(m,f[q],!0);return 0===r?q:0p?-1:p}A.GREATEST_LOWER_BOUND=1;A.LEAST_UPPER_BOUND=2;A.search=function(p,t,m,f){if(0===t.length)return-1;p=e(-1,t.length,p,t,m,f||A.GREATEST_LOWER_BOUND);if(0>p)return-1;for(;0<=p-1&&0===m(t[p],t[p-1],!0);)--p;return p}},{}],14:[function(C,J,A){function e(){this._array=[];this._sorted=!0;this._last={generatedLine:-1,generatedColumn:0}}var p=C("./util");e.prototype.unsortedForEach=function(t,m){this._array.forEach(t,m)};e.prototype.add=function(t){var m=this._last,f=m.generatedLine, -c=t.generatedLine,l=m.generatedColumn,q=t.generatedColumn;c>f||c==f&&q>=l||0>=p.compareByGeneratedPositionsInflated(m,t)?this._last=t:this._sorted=!1;this._array.push(t)};e.prototype.toArray=function(){this._sorted||(this._array.sort(p.compareByGeneratedPositionsInflated),this._sorted=!0);return this._array};A.MappingList=e},{"./util":19}],15:[function(C,J,A){function e(t,m,f){var c=t[m];t[m]=t[f];t[f]=c}function p(t,m,f,c){if(f=m(t[r],q)&&(l+=1,e(t,l,r));e(t,l+1,r);l+=1;p(t,m,f,l-1);p(t,m,l+1,c)}}A.quickSort=function(t,m){p(t,m,0,t.length-1)}},{}],16:[function(C,J,A){function e(k,u){var d=k;"string"===typeof k&&(d=f.parseSourceMapInput(k));return null!=d.sections?new m(d,u):new p(d,u)}function p(k,u){var d=k;"string"===typeof k&&(d=f.parseSourceMapInput(k));var g=f.getArg(d,"version"),n=f.getArg(d,"sources"),v=f.getArg(d,"names",[]),z=f.getArg(d,"sourceRoot",null),G=f.getArg(d,"sourcesContent",null),D=f.getArg(d, -"mappings");d=f.getArg(d,"file",null);if(g!=this._version)throw Error("Unsupported version: "+g);z&&(z=f.normalize(z));n=n.map(String).map(f.normalize).map(function(L){return z&&f.isAbsolute(z)&&f.isAbsolute(L)?f.relative(z,L):L});this._names=l.fromArray(v.map(String),!0);this._sources=l.fromArray(n,!0);this.sourceRoot=z;this.sourcesContent=G;this._mappings=D;this._sourceMapURL=u;this.file=d}function t(){this.generatedColumn=this.generatedLine=0;this.name=this.originalColumn=this.originalLine=this.source= -null}function m(k,u){var d=k;"string"===typeof k&&(d=f.parseSourceMapInput(k));var g=f.getArg(d,"version");d=f.getArg(d,"sections");if(g!=this._version)throw Error("Unsupported version: "+g);this._sources=new l;this._names=new l;var n={line:-1,column:0};this._sections=d.map(function(v){if(v.url)throw Error("Support for url field in sections not implemented.");var z=f.getArg(v,"offset"),G=f.getArg(z,"line"),D=f.getArg(z,"column");if(G=k[d])throw new TypeError("Line must be greater than or equal to 1, got "+ -k[d]);if(0>k[g])throw new TypeError("Column must be greater than or equal to 0, got "+k[g]);return c.search(k,u,n,v)};p.prototype.computeColumnSpans=function(){for(var k=0;k=this._sources.size()&&!this.sourcesContent.some(function(k){return null==k}):!1};p.prototype.sourceContentFor=function(k,u){if(!this.sourcesContent)return null;var d=k;null!=this.sourceRoot&&(d=f.relative(this.sourceRoot,d));if(this._sources.has(d))return this.sourcesContent[this._sources.indexOf(d)]; -var g=this.sources,n;for(n=0;n -g||95!==d.charCodeAt(g-1)||95!==d.charCodeAt(g-2)||111!==d.charCodeAt(g-3)||116!==d.charCodeAt(g-4)||111!==d.charCodeAt(g-5)||114!==d.charCodeAt(g-6)||112!==d.charCodeAt(g-7)||95!==d.charCodeAt(g-8)||95!==d.charCodeAt(g-9))return!1;for(g-=10;0<=g;g--)if(36!==d.charCodeAt(g))return!1;return!0}function r(d,g){return d===g?0:null===d?1:null===g?-1:d>g?1:-1}A.getArg=function(d,g,n){if(g in d)return d[g];if(3===arguments.length)return n;throw Error('"'+g+'" is a required argument.');};var k=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/, -u=/^data:.+,.+$/;A.urlParse=e;A.urlGenerate=p;A.normalize=t;A.join=m;A.isAbsolute=function(d){return"/"===d.charAt(0)||k.test(d)};A.relative=function(d,g){""===d&&(d=".");d=d.replace(/\/$/,"");for(var n=0;0!==g.indexOf(d+"/");){var v=d.lastIndexOf("/");if(0>v)return g;d=d.slice(0,v);if(d.match(/^([^\/]+:\/)?\/*$/))return g;++n}return Array(n+1).join("../")+g.substr(d.length+1)};C=!("__proto__"in Object.create(null));A.toSetString=C?f:c;A.fromSetString=C?f:l;A.compareByOriginalPositions=function(d, -g,n){var v=r(d.source,g.source);if(0!==v)return v;v=d.originalLine-g.originalLine;if(0!==v)return v;v=d.originalColumn-g.originalColumn;if(0!==v||n)return v;v=d.generatedColumn-g.generatedColumn;if(0!==v)return v;v=d.generatedLine-g.generatedLine;return 0!==v?v:r(d.name,g.name)};A.compareByGeneratedPositionsDeflated=function(d,g,n){var v=d.generatedLine-g.generatedLine;if(0!==v)return v;v=d.generatedColumn-g.generatedColumn;if(0!==v||n)return v;v=r(d.source,g.source);if(0!==v)return v;v=d.originalLine- -g.originalLine;if(0!==v)return v;v=d.originalColumn-g.originalColumn;return 0!==v?v:r(d.name,g.name)};A.compareByGeneratedPositionsInflated=function(d,g){var n=d.generatedLine-g.generatedLine;if(0!==n)return n;n=d.generatedColumn-g.generatedColumn;if(0!==n)return n;n=r(d.source,g.source);if(0!==n)return n;n=d.originalLine-g.originalLine;if(0!==n)return n;n=d.originalColumn-g.originalColumn;return 0!==n?n:r(d.name,g.name)};A.parseSourceMapInput=function(d){return JSON.parse(d.replace(/^\)]}'[^\n]*\n/, -""))};A.computeSourceURL=function(d,g,n){g=g||"";d&&("/"!==d[d.length-1]&&"/"!==g[0]&&(d+="/"),g=d+g);if(n){d=e(n);if(!d)throw Error("sourceMapURL could not be parsed");d.path&&(n=d.path.lastIndexOf("/"),0<=n&&(d.path=d.path.substring(0,n+1)));g=m(p(d),g)}return t(g)}},{}],20:[function(C,J,A){A.SourceMapGenerator=C("./lib/source-map-generator").SourceMapGenerator;A.SourceMapConsumer=C("./lib/source-map-consumer").SourceMapConsumer;A.SourceNode=C("./lib/source-node").SourceNode},{"./lib/source-map-consumer":16, -"./lib/source-map-generator":17,"./lib/source-node":18}],21:[function(C,J,A){(function(e){function p(){return"browser"===a?!0:"node"===a?!1:"undefined"!==typeof window&&"function"===typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type)}function t(x){return function(B){for(var F=0;F";B=this.getLineNumber();null!=B&&(x+=":"+B,(B= -this.getColumnNumber())&&(x+=":"+B))}B="";var F=this.getFunctionName(),E=!0,H=this.isConstructor();if(this.isToplevel()||H)H?B+="new "+(F||""):F?B+=F:(B+=x,E=!1);else{H=this.getTypeName();"[object Object]"===H&&(H="null");var M=this.getMethodName();F?(H&&0!=F.indexOf(H)&&(B+=H+"."),B+=F,M&&F.indexOf("."+M)!=F.length-M.length-1&&(B+=" [as "+M+"]")):B+=H+"."+(M||"")}E&&(B+=" ("+x+")");return B}function q(x){var B={};Object.getOwnPropertyNames(Object.getPrototypeOf(x)).forEach(function(F){B[F]= -/^(?:is|get)/.test(F)?function(){return x[F].call(x)}:x[F]});B.toString=l;return B}function r(x,B){void 0===B&&(B={nextPosition:null,curPosition:null});if(x.isNative())return B.curPosition=null,x;var F=x.getFileName()||x.getScriptNameOrSourceURL();if(F){var E=x.getLineNumber(),H=x.getColumnNumber()-1,M=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,S=M.test;var V="object"===typeof e&&null!==e?e.version:"";M=S.call(M,V)?0:62;1===E&&H>M&&!p()&&!x.isEval()&&(H-=M);var O= -f({source:F,line:E,column:H});B.curPosition=O;x=q(x);var T=x.getFunctionName;x.getFunctionName=function(){return null==B.nextPosition?T():B.nextPosition.name||T()};x.getFileName=function(){return O.source};x.getLineNumber=function(){return O.line};x.getColumnNumber=function(){return O.column+1};x.getScriptNameOrSourceURL=function(){return O.source};return x}var Q=x.isEval()&&x.getEvalOrigin();Q&&(Q=c(Q),x=q(x),x.getEvalOrigin=function(){return Q});return x}function k(x,B){L&&(b={},h={});for(var F= -(x.name||"Error")+": "+(x.message||""),E={nextPosition:null,curPosition:null},H=[],M=B.length-1;0<=M;M--)H.push("\n at "+r(B[M],E)),E.nextPosition=E.curPosition;E.curPosition=E.nextPosition=null;return F+H.reverse().join("")}function u(x){var B=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(x.stack);if(B){x=B[1];var F=+B[2];B=+B[3];var E=b[x];if(!E&&v&&v.existsSync(x))try{E=v.readFileSync(x,"utf8")}catch(H){E=""}if(E&&(E=E.split(/(?:\r\n|\r|\n)/)[F-1]))return x+":"+F+"\n"+E+"\n"+Array(B).join(" ")+ -"^"}return null}function d(){var x=e.emit;e.emit=function(B){if("uncaughtException"===B){var F=arguments[1]&&arguments[1].stack,E=0 C:/dir/file - '/'; // file:///root-dir/file -> /root-dir/file - }); - } - if (path in fileContentsCache) { - return fileContentsCache[path]; - } - - var contents = ''; - try { - if (!fs) { - // Use SJAX if we are in the browser - var xhr = new XMLHttpRequest(); - xhr.open('GET', path, /** async */ false); - xhr.send(null); - if (xhr.readyState === 4 && xhr.status === 200) { - contents = xhr.responseText; - } - } else if (fs.existsSync(path)) { - // Otherwise, use the filesystem - contents = fs.readFileSync(path, 'utf8'); - } - } catch (er) { - /* ignore any errors */ - } - - return fileContentsCache[path] = contents; -}); - -// Support URLs relative to a directory, but be careful about a protocol prefix -// in case we are in the browser (i.e. directories may start with "http://" or "file:///") -function supportRelativeURL(file, url) { - if (!file) return url; - var dir = path.dirname(file); - var match = /^\w+:\/\/[^\/]*/.exec(dir); - var protocol = match ? match[0] : ''; - var startPath = dir.slice(protocol.length); - if (protocol && /^\/\w\:/.test(startPath)) { - // handle file:///C:/ paths - protocol += '/'; - return protocol + path.resolve(dir.slice(protocol.length), url).replace(/\\/g, '/'); - } - return protocol + path.resolve(dir.slice(protocol.length), url); -} - -function retrieveSourceMapURL(source) { - var fileData; - - if (isInBrowser()) { - try { - var xhr = new XMLHttpRequest(); - xhr.open('GET', source, false); - xhr.send(null); - fileData = xhr.readyState === 4 ? xhr.responseText : null; - - // Support providing a sourceMappingURL via the SourceMap header - var sourceMapHeader = xhr.getResponseHeader("SourceMap") || - xhr.getResponseHeader("X-SourceMap"); - if (sourceMapHeader) { - return sourceMapHeader; - } - } catch (e) { - } - } - - // Get the URL of the source map - fileData = retrieveFile(source); - var re = /(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg; - // Keep executing the search to find the *last* sourceMappingURL to avoid - // picking up sourceMappingURLs from comments, strings, etc. - var lastMatch, match; - while (match = re.exec(fileData)) lastMatch = match; - if (!lastMatch) return null; - return lastMatch[1]; -}; - -// Can be overridden by the retrieveSourceMap option to install. Takes a -// generated source filename; returns a {map, optional url} object, or null if -// there is no source map. The map field may be either a string or the parsed -// JSON object (ie, it must be a valid argument to the SourceMapConsumer -// constructor). -var retrieveSourceMap = handlerExec(retrieveMapHandlers); -retrieveMapHandlers.push(function(source) { - var sourceMappingURL = retrieveSourceMapURL(source); - if (!sourceMappingURL) return null; - - // Read the contents of the source map - var sourceMapData; - if (reSourceMap.test(sourceMappingURL)) { - // Support source map URL as a data url - var rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(',') + 1); - sourceMapData = bufferFrom(rawData, "base64").toString(); - sourceMappingURL = source; - } else { - // Support source map URLs relative to the source URL - sourceMappingURL = supportRelativeURL(source, sourceMappingURL); - sourceMapData = retrieveFile(sourceMappingURL); - } - - if (!sourceMapData) { - return null; - } - - return { - url: sourceMappingURL, - map: sourceMapData - }; -}); - -function mapSourcePosition(position) { - var sourceMap = sourceMapCache[position.source]; - if (!sourceMap) { - // Call the (overrideable) retrieveSourceMap function to get the source map. - var urlAndMap = retrieveSourceMap(position.source); - if (urlAndMap) { - sourceMap = sourceMapCache[position.source] = { - url: urlAndMap.url, - map: new SourceMapConsumer(urlAndMap.map) - }; - - // Load all sources stored inline with the source map into the file cache - // to pretend like they are already loaded. They may not exist on disk. - if (sourceMap.map.sourcesContent) { - sourceMap.map.sources.forEach(function(source, i) { - var contents = sourceMap.map.sourcesContent[i]; - if (contents) { - var url = supportRelativeURL(sourceMap.url, source); - fileContentsCache[url] = contents; - } - }); - } - } else { - sourceMap = sourceMapCache[position.source] = { - url: null, - map: null - }; - } - } - - // Resolve the source URL relative to the URL of the source map - if (sourceMap && sourceMap.map && typeof sourceMap.map.originalPositionFor === 'function') { - var originalPosition = sourceMap.map.originalPositionFor(position); - - // Only return the original position if a matching line was found. If no - // matching line is found then we return position instead, which will cause - // the stack trace to print the path and line for the compiled file. It is - // better to give a precise location in the compiled file than a vague - // location in the original file. - if (originalPosition.source !== null) { - originalPosition.source = supportRelativeURL( - sourceMap.url, originalPosition.source); - return originalPosition; - } - } - - return position; -} - -// Parses code generated by FormatEvalOrigin(), a function inside V8: -// https://code.google.com/p/v8/source/browse/trunk/src/messages.js -function mapEvalOrigin(origin) { - // Most eval() calls are in this format - var match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin); - if (match) { - var position = mapSourcePosition({ - source: match[2], - line: +match[3], - column: match[4] - 1 - }); - return 'eval at ' + match[1] + ' (' + position.source + ':' + - position.line + ':' + (position.column + 1) + ')'; - } - - // Parse nested eval() calls using recursion - match = /^eval at ([^(]+) \((.+)\)$/.exec(origin); - if (match) { - return 'eval at ' + match[1] + ' (' + mapEvalOrigin(match[2]) + ')'; - } - - // Make sure we still return useful information if we didn't find anything - return origin; -} - -// This is copied almost verbatim from the V8 source code at -// https://code.google.com/p/v8/source/browse/trunk/src/messages.js. The -// implementation of wrapCallSite() used to just forward to the actual source -// code of CallSite.prototype.toString but unfortunately a new release of V8 -// did something to the prototype chain and broke the shim. The only fix I -// could find was copy/paste. -function CallSiteToString() { - var fileName; - var fileLocation = ""; - if (this.isNative()) { - fileLocation = "native"; - } else { - fileName = this.getScriptNameOrSourceURL(); - if (!fileName && this.isEval()) { - fileLocation = this.getEvalOrigin(); - fileLocation += ", "; // Expecting source position to follow. - } - - if (fileName) { - fileLocation += fileName; - } else { - // Source code does not originate from a file and is not native, but we - // can still get the source position inside the source string, e.g. in - // an eval string. - fileLocation += ""; - } - var lineNumber = this.getLineNumber(); - if (lineNumber != null) { - fileLocation += ":" + lineNumber; - var columnNumber = this.getColumnNumber(); - if (columnNumber) { - fileLocation += ":" + columnNumber; - } - } - } - - var line = ""; - var functionName = this.getFunctionName(); - var addSuffix = true; - var isConstructor = this.isConstructor(); - var isMethodCall = !(this.isToplevel() || isConstructor); - if (isMethodCall) { - var typeName = this.getTypeName(); - // Fixes shim to be backward compatable with Node v0 to v4 - if (typeName === "[object Object]") { - typeName = "null"; - } - var methodName = this.getMethodName(); - if (functionName) { - if (typeName && functionName.indexOf(typeName) != 0) { - line += typeName + "."; - } - line += functionName; - if (methodName && functionName.indexOf("." + methodName) != functionName.length - methodName.length - 1) { - line += " [as " + methodName + "]"; - } - } else { - line += typeName + "." + (methodName || ""); - } - } else if (isConstructor) { - line += "new " + (functionName || ""); - } else if (functionName) { - line += functionName; - } else { - line += fileLocation; - addSuffix = false; - } - if (addSuffix) { - line += " (" + fileLocation + ")"; - } - return line; -} - -function cloneCallSite(frame) { - var object = {}; - Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach(function(name) { - object[name] = /^(?:is|get)/.test(name) ? function() { return frame[name].call(frame); } : frame[name]; - }); - object.toString = CallSiteToString; - return object; -} - -function wrapCallSite(frame, state) { - // provides interface backward compatibility - if (state === undefined) { - state = { nextPosition: null, curPosition: null } - } - if(frame.isNative()) { - state.curPosition = null; - return frame; - } - - // Most call sites will return the source file from getFileName(), but code - // passed to eval() ending in "//# sourceURL=..." will return the source file - // from getScriptNameOrSourceURL() instead - var source = frame.getFileName() || frame.getScriptNameOrSourceURL(); - if (source) { - var line = frame.getLineNumber(); - var column = frame.getColumnNumber() - 1; - - // Fix position in Node where some (internal) code is prepended. - // See https://github.com/evanw/node-source-map-support/issues/36 - // Header removed in node at ^10.16 || >=11.11.0 - // v11 is not an LTS candidate, we can just test the one version with it. - // Test node versions for: 10.16-19, 10.20+, 12-19, 20-99, 100+, or 11.11 - var noHeader = /^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/; - var headerLength = noHeader.test(globalProcessVersion()) ? 0 : 62; - if (line === 1 && column > headerLength && !isInBrowser() && !frame.isEval()) { - column -= headerLength; - } - - var position = mapSourcePosition({ - source: source, - line: line, - column: column - }); - state.curPosition = position; - frame = cloneCallSite(frame); - var originalFunctionName = frame.getFunctionName; - frame.getFunctionName = function() { - if (state.nextPosition == null) { - return originalFunctionName(); - } - return state.nextPosition.name || originalFunctionName(); - }; - frame.getFileName = function() { return position.source; }; - frame.getLineNumber = function() { return position.line; }; - frame.getColumnNumber = function() { return position.column + 1; }; - frame.getScriptNameOrSourceURL = function() { return position.source; }; - return frame; - } - - // Code called using eval() needs special handling - var origin = frame.isEval() && frame.getEvalOrigin(); - if (origin) { - origin = mapEvalOrigin(origin); - frame = cloneCallSite(frame); - frame.getEvalOrigin = function() { return origin; }; - return frame; - } - - // If we get here then we were unable to change the source position - return frame; -} - -// This function is part of the V8 stack trace API, for more info see: -// https://v8.dev/docs/stack-trace-api -function prepareStackTrace(error, stack) { - if (emptyCacheBetweenOperations) { - fileContentsCache = {}; - sourceMapCache = {}; - } - - var name = error.name || 'Error'; - var message = error.message || ''; - var errorString = name + ": " + message; - - var state = { nextPosition: null, curPosition: null }; - var processedStack = []; - for (var i = stack.length - 1; i >= 0; i--) { - processedStack.push('\n at ' + wrapCallSite(stack[i], state)); - state.nextPosition = state.curPosition; - } - state.curPosition = state.nextPosition = null; - return errorString + processedStack.reverse().join(''); -} - -// Generate position and snippet of original source with pointer -function getErrorSource(error) { - var match = /\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack); - if (match) { - var source = match[1]; - var line = +match[2]; - var column = +match[3]; - - // Support the inline sourceContents inside the source map - var contents = fileContentsCache[source]; - - // Support files on disk - if (!contents && fs && fs.existsSync(source)) { - try { - contents = fs.readFileSync(source, 'utf8'); - } catch (er) { - contents = ''; - } - } - - // Format the line from the original source code like node does - if (contents) { - var code = contents.split(/(?:\r\n|\r|\n)/)[line - 1]; - if (code) { - return source + ':' + line + '\n' + code + '\n' + - new Array(column).join(' ') + '^'; - } - } - } - return null; -} - -function printErrorAndExit (error) { - var source = getErrorSource(error); - - // Ensure error is printed synchronously and not truncated - var stderr = globalProcessStderr(); - if (stderr && stderr._handle && stderr._handle.setBlocking) { - stderr._handle.setBlocking(true); - } - - if (source) { - console.error(); - console.error(source); - } - - console.error(error.stack); - globalProcessExit(1); -} - -function shimEmitUncaughtException () { - var origEmit = process.emit; - - process.emit = function (type) { - if (type === 'uncaughtException') { - var hasStack = (arguments[1] && arguments[1].stack); - var hasListeners = (this.listeners(type).length > 0); - - if (hasStack && !hasListeners) { - return printErrorAndExit(arguments[1]); - } - } - - return origEmit.apply(this, arguments); - }; -} - -var originalRetrieveFileHandlers = retrieveFileHandlers.slice(0); -var originalRetrieveMapHandlers = retrieveMapHandlers.slice(0); - -exports.wrapCallSite = wrapCallSite; -exports.getErrorSource = getErrorSource; -exports.mapSourcePosition = mapSourcePosition; -exports.retrieveSourceMap = retrieveSourceMap; - -exports.install = function(options) { - options = options || {}; - - if (options.environment) { - environment = options.environment; - if (["node", "browser", "auto"].indexOf(environment) === -1) { - throw new Error("environment " + environment + " was unknown. Available options are {auto, browser, node}") - } - } - - // Allow sources to be found by methods other than reading the files - // directly from disk. - if (options.retrieveFile) { - if (options.overrideRetrieveFile) { - retrieveFileHandlers.length = 0; - } - - retrieveFileHandlers.unshift(options.retrieveFile); - } - - // Allow source maps to be found by methods other than reading the files - // directly from disk. - if (options.retrieveSourceMap) { - if (options.overrideRetrieveSourceMap) { - retrieveMapHandlers.length = 0; - } - - retrieveMapHandlers.unshift(options.retrieveSourceMap); - } - - // Support runtime transpilers that include inline source maps - if (options.hookRequire && !isInBrowser()) { - // Use dynamicRequire to avoid including in browser bundles - var Module = dynamicRequire(module, 'module'); - var $compile = Module.prototype._compile; - - if (!$compile.__sourceMapSupport) { - Module.prototype._compile = function(content, filename) { - fileContentsCache[filename] = content; - sourceMapCache[filename] = undefined; - return $compile.call(this, content, filename); - }; - - Module.prototype._compile.__sourceMapSupport = true; - } - } - - // Configure options - if (!emptyCacheBetweenOperations) { - emptyCacheBetweenOperations = 'emptyCacheBetweenOperations' in options ? - options.emptyCacheBetweenOperations : false; - } - - // Install the error reformatter - if (!errorFormatterInstalled) { - errorFormatterInstalled = true; - Error.prepareStackTrace = prepareStackTrace; - } - - if (!uncaughtShimInstalled) { - var installHandler = 'handleUncaughtExceptions' in options ? - options.handleUncaughtExceptions : true; - - // Do not override 'uncaughtException' with our own handler in Node.js - // Worker threads. Workers pass the error to the main thread as an event, - // rather than printing something to stderr and exiting. - try { - // We need to use `dynamicRequire` because `require` on it's own will be optimized by WebPack/Browserify. - var worker_threads = dynamicRequire(module, 'worker_threads'); - if (worker_threads.isMainThread === false) { - installHandler = false; - } - } catch(e) {} - - // Provide the option to not install the uncaught exception handler. This is - // to support other uncaught exception handlers (in test frameworks, for - // example). If this handler is not installed and there are no other uncaught - // exception handlers, uncaught exceptions will be caught by node's built-in - // exception handler and the process will still be terminated. However, the - // generated JavaScript code will be shown above the stack trace instead of - // the original source code. - if (installHandler && hasGlobalProcessEventEmitter()) { - uncaughtShimInstalled = true; - shimEmitUncaughtException(); - } - } -}; - -exports.resetRetrieveHandlers = function() { - retrieveFileHandlers.length = 0; - retrieveMapHandlers.length = 0; - - retrieveFileHandlers = originalRetrieveFileHandlers.slice(0); - retrieveMapHandlers = originalRetrieveMapHandlers.slice(0); - - retrieveSourceMap = handlerExec(retrieveMapHandlers); - retrieveFile = handlerExec(retrieveFileHandlers); -} diff --git a/build_vtk_bundle/node_modules/source-map/CHANGELOG.md b/build_vtk_bundle/node_modules/source-map/CHANGELOG.md deleted file mode 100644 index 3a8c066c..00000000 --- a/build_vtk_bundle/node_modules/source-map/CHANGELOG.md +++ /dev/null @@ -1,301 +0,0 @@ -# Change Log - -## 0.5.6 - -* Fix for regression when people were using numbers as names in source maps. See - #236. - -## 0.5.5 - -* Fix "regression" of unsupported, implementation behavior that half the world - happens to have come to depend on. See #235. - -* Fix regression involving function hoisting in SpiderMonkey. See #233. - -## 0.5.4 - -* Large performance improvements to source-map serialization. See #228 and #229. - -## 0.5.3 - -* Do not include unnecessary distribution files. See - commit ef7006f8d1647e0a83fdc60f04f5a7ca54886f86. - -## 0.5.2 - -* Include browser distributions of the library in package.json's `files`. See - issue #212. - -## 0.5.1 - -* Fix latent bugs in IndexedSourceMapConsumer.prototype._parseMappings. See - ff05274becc9e6e1295ed60f3ea090d31d843379. - -## 0.5.0 - -* Node 0.8 is no longer supported. - -* Use webpack instead of dryice for bundling. - -* Big speedups serializing source maps. See pull request #203. - -* Fix a bug with `SourceMapConsumer.prototype.sourceContentFor` and sources that - explicitly start with the source root. See issue #199. - -## 0.4.4 - -* Fix an issue where using a `SourceMapGenerator` after having created a - `SourceMapConsumer` from it via `SourceMapConsumer.fromSourceMap` failed. See - issue #191. - -* Fix an issue with where `SourceMapGenerator` would mistakenly consider - different mappings as duplicates of each other and avoid generating them. See - issue #192. - -## 0.4.3 - -* A very large number of performance improvements, particularly when parsing - source maps. Collectively about 75% of time shaved off of the source map - parsing benchmark! - -* Fix a bug in `SourceMapConsumer.prototype.allGeneratedPositionsFor` and fuzzy - searching in the presence of a column option. See issue #177. - -* Fix a bug with joining a source and its source root when the source is above - the root. See issue #182. - -* Add the `SourceMapConsumer.prototype.hasContentsOfAllSources` method to - determine when all sources' contents are inlined into the source map. See - issue #190. - -## 0.4.2 - -* Add an `.npmignore` file so that the benchmarks aren't pulled down by - dependent projects. Issue #169. - -* Add an optional `column` argument to - `SourceMapConsumer.prototype.allGeneratedPositionsFor` and better handle lines - with no mappings. Issues #172 and #173. - -## 0.4.1 - -* Fix accidentally defining a global variable. #170. - -## 0.4.0 - -* The default direction for fuzzy searching was changed back to its original - direction. See #164. - -* There is now a `bias` option you can supply to `SourceMapConsumer` to control - the fuzzy searching direction. See #167. - -* About an 8% speed up in parsing source maps. See #159. - -* Added a benchmark for parsing and generating source maps. - -## 0.3.0 - -* Change the default direction that searching for positions fuzzes when there is - not an exact match. See #154. - -* Support for environments using json2.js for JSON serialization. See #156. - -## 0.2.0 - -* Support for consuming "indexed" source maps which do not have any remote - sections. See pull request #127. This introduces a minor backwards - incompatibility if you are monkey patching `SourceMapConsumer.prototype` - methods. - -## 0.1.43 - -* Performance improvements for `SourceMapGenerator` and `SourceNode`. See issue - #148 for some discussion and issues #150, #151, and #152 for implementations. - -## 0.1.42 - -* Fix an issue where `SourceNode`s from different versions of the source-map - library couldn't be used in conjunction with each other. See issue #142. - -## 0.1.41 - -* Fix a bug with getting the source content of relative sources with a "./" - prefix. See issue #145 and [Bug 1090768](bugzil.la/1090768). - -* Add the `SourceMapConsumer.prototype.computeColumnSpans` method to compute the - column span of each mapping. - -* Add the `SourceMapConsumer.prototype.allGeneratedPositionsFor` method to find - all generated positions associated with a given original source and line. - -## 0.1.40 - -* Performance improvements for parsing source maps in SourceMapConsumer. - -## 0.1.39 - -* Fix a bug where setting a source's contents to null before any source content - had been set before threw a TypeError. See issue #131. - -## 0.1.38 - -* Fix a bug where finding relative paths from an empty path were creating - absolute paths. See issue #129. - -## 0.1.37 - -* Fix a bug where if the source root was an empty string, relative source paths - would turn into absolute source paths. Issue #124. - -## 0.1.36 - -* Allow the `names` mapping property to be an empty string. Issue #121. - -## 0.1.35 - -* A third optional parameter was added to `SourceNode.fromStringWithSourceMap` - to specify a path that relative sources in the second parameter should be - relative to. Issue #105. - -* If no file property is given to a `SourceMapGenerator`, then the resulting - source map will no longer have a `null` file property. The property will - simply not exist. Issue #104. - -* Fixed a bug where consecutive newlines were ignored in `SourceNode`s. - Issue #116. - -## 0.1.34 - -* Make `SourceNode` work with windows style ("\r\n") newlines. Issue #103. - -* Fix bug involving source contents and the - `SourceMapGenerator.prototype.applySourceMap`. Issue #100. - -## 0.1.33 - -* Fix some edge cases surrounding path joining and URL resolution. - -* Add a third parameter for relative path to - `SourceMapGenerator.prototype.applySourceMap`. - -* Fix issues with mappings and EOLs. - -## 0.1.32 - -* Fixed a bug where SourceMapConsumer couldn't handle negative relative columns - (issue 92). - -* Fixed test runner to actually report number of failed tests as its process - exit code. - -* Fixed a typo when reporting bad mappings (issue 87). - -## 0.1.31 - -* Delay parsing the mappings in SourceMapConsumer until queried for a source - location. - -* Support Sass source maps (which at the time of writing deviate from the spec - in small ways) in SourceMapConsumer. - -## 0.1.30 - -* Do not join source root with a source, when the source is a data URI. - -* Extend the test runner to allow running single specific test files at a time. - -* Performance improvements in `SourceNode.prototype.walk` and - `SourceMapConsumer.prototype.eachMapping`. - -* Source map browser builds will now work inside Workers. - -* Better error messages when attempting to add an invalid mapping to a - `SourceMapGenerator`. - -## 0.1.29 - -* Allow duplicate entries in the `names` and `sources` arrays of source maps - (usually from TypeScript) we are parsing. Fixes github issue 72. - -## 0.1.28 - -* Skip duplicate mappings when creating source maps from SourceNode; github - issue 75. - -## 0.1.27 - -* Don't throw an error when the `file` property is missing in SourceMapConsumer, - we don't use it anyway. - -## 0.1.26 - -* Fix SourceNode.fromStringWithSourceMap for empty maps. Fixes github issue 70. - -## 0.1.25 - -* Make compatible with browserify - -## 0.1.24 - -* Fix issue with absolute paths and `file://` URIs. See - https://bugzilla.mozilla.org/show_bug.cgi?id=885597 - -## 0.1.23 - -* Fix issue with absolute paths and sourcesContent, github issue 64. - -## 0.1.22 - -* Ignore duplicate mappings in SourceMapGenerator. Fixes github issue 21. - -## 0.1.21 - -* Fixed handling of sources that start with a slash so that they are relative to - the source root's host. - -## 0.1.20 - -* Fixed github issue #43: absolute URLs aren't joined with the source root - anymore. - -## 0.1.19 - -* Using Travis CI to run tests. - -## 0.1.18 - -* Fixed a bug in the handling of sourceRoot. - -## 0.1.17 - -* Added SourceNode.fromStringWithSourceMap. - -## 0.1.16 - -* Added missing documentation. - -* Fixed the generating of empty mappings in SourceNode. - -## 0.1.15 - -* Added SourceMapGenerator.applySourceMap. - -## 0.1.14 - -* The sourceRoot is now handled consistently. - -## 0.1.13 - -* Added SourceMapGenerator.fromSourceMap. - -## 0.1.12 - -* SourceNode now generates empty mappings too. - -## 0.1.11 - -* Added name support to SourceNode. - -## 0.1.10 - -* Added sourcesContent support to the customer and generator. diff --git a/build_vtk_bundle/node_modules/source-map/LICENSE b/build_vtk_bundle/node_modules/source-map/LICENSE deleted file mode 100644 index ed1b7cf2..00000000 --- a/build_vtk_bundle/node_modules/source-map/LICENSE +++ /dev/null @@ -1,28 +0,0 @@ - -Copyright (c) 2009-2011, Mozilla Foundation and contributors -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the names of the Mozilla Foundation nor the names of project - contributors may be used to endorse or promote products derived from this - software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/build_vtk_bundle/node_modules/source-map/README.md b/build_vtk_bundle/node_modules/source-map/README.md deleted file mode 100644 index fea4beb1..00000000 --- a/build_vtk_bundle/node_modules/source-map/README.md +++ /dev/null @@ -1,742 +0,0 @@ -# Source Map - -[![Build Status](https://travis-ci.org/mozilla/source-map.png?branch=master)](https://travis-ci.org/mozilla/source-map) - -[![NPM](https://nodei.co/npm/source-map.png?downloads=true&downloadRank=true)](https://www.npmjs.com/package/source-map) - -This is a library to generate and consume the source map format -[described here][format]. - -[format]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit - -## Use with Node - - $ npm install source-map - -## Use on the Web - - - --------------------------------------------------------------------------------- - - - - - -## Table of Contents - -- [Examples](#examples) - - [Consuming a source map](#consuming-a-source-map) - - [Generating a source map](#generating-a-source-map) - - [With SourceNode (high level API)](#with-sourcenode-high-level-api) - - [With SourceMapGenerator (low level API)](#with-sourcemapgenerator-low-level-api) -- [API](#api) - - [SourceMapConsumer](#sourcemapconsumer) - - [new SourceMapConsumer(rawSourceMap)](#new-sourcemapconsumerrawsourcemap) - - [SourceMapConsumer.prototype.computeColumnSpans()](#sourcemapconsumerprototypecomputecolumnspans) - - [SourceMapConsumer.prototype.originalPositionFor(generatedPosition)](#sourcemapconsumerprototypeoriginalpositionforgeneratedposition) - - [SourceMapConsumer.prototype.generatedPositionFor(originalPosition)](#sourcemapconsumerprototypegeneratedpositionfororiginalposition) - - [SourceMapConsumer.prototype.allGeneratedPositionsFor(originalPosition)](#sourcemapconsumerprototypeallgeneratedpositionsfororiginalposition) - - [SourceMapConsumer.prototype.hasContentsOfAllSources()](#sourcemapconsumerprototypehascontentsofallsources) - - [SourceMapConsumer.prototype.sourceContentFor(source[, returnNullOnMissing])](#sourcemapconsumerprototypesourcecontentforsource-returnnullonmissing) - - [SourceMapConsumer.prototype.eachMapping(callback, context, order)](#sourcemapconsumerprototypeeachmappingcallback-context-order) - - [SourceMapGenerator](#sourcemapgenerator) - - [new SourceMapGenerator([startOfSourceMap])](#new-sourcemapgeneratorstartofsourcemap) - - [SourceMapGenerator.fromSourceMap(sourceMapConsumer)](#sourcemapgeneratorfromsourcemapsourcemapconsumer) - - [SourceMapGenerator.prototype.addMapping(mapping)](#sourcemapgeneratorprototypeaddmappingmapping) - - [SourceMapGenerator.prototype.setSourceContent(sourceFile, sourceContent)](#sourcemapgeneratorprototypesetsourcecontentsourcefile-sourcecontent) - - [SourceMapGenerator.prototype.applySourceMap(sourceMapConsumer[, sourceFile[, sourceMapPath]])](#sourcemapgeneratorprototypeapplysourcemapsourcemapconsumer-sourcefile-sourcemappath) - - [SourceMapGenerator.prototype.toString()](#sourcemapgeneratorprototypetostring) - - [SourceNode](#sourcenode) - - [new SourceNode([line, column, source[, chunk[, name]]])](#new-sourcenodeline-column-source-chunk-name) - - [SourceNode.fromStringWithSourceMap(code, sourceMapConsumer[, relativePath])](#sourcenodefromstringwithsourcemapcode-sourcemapconsumer-relativepath) - - [SourceNode.prototype.add(chunk)](#sourcenodeprototypeaddchunk) - - [SourceNode.prototype.prepend(chunk)](#sourcenodeprototypeprependchunk) - - [SourceNode.prototype.setSourceContent(sourceFile, sourceContent)](#sourcenodeprototypesetsourcecontentsourcefile-sourcecontent) - - [SourceNode.prototype.walk(fn)](#sourcenodeprototypewalkfn) - - [SourceNode.prototype.walkSourceContents(fn)](#sourcenodeprototypewalksourcecontentsfn) - - [SourceNode.prototype.join(sep)](#sourcenodeprototypejoinsep) - - [SourceNode.prototype.replaceRight(pattern, replacement)](#sourcenodeprototypereplacerightpattern-replacement) - - [SourceNode.prototype.toString()](#sourcenodeprototypetostring) - - [SourceNode.prototype.toStringWithSourceMap([startOfSourceMap])](#sourcenodeprototypetostringwithsourcemapstartofsourcemap) - - - -## Examples - -### Consuming a source map - -```js -var rawSourceMap = { - version: 3, - file: 'min.js', - names: ['bar', 'baz', 'n'], - sources: ['one.js', 'two.js'], - sourceRoot: 'http://example.com/www/js/', - mappings: 'CAAC,IAAI,IAAM,SAAUA,GAClB,OAAOC,IAAID;CCDb,IAAI,IAAM,SAAUE,GAClB,OAAOA' -}; - -var smc = new SourceMapConsumer(rawSourceMap); - -console.log(smc.sources); -// [ 'http://example.com/www/js/one.js', -// 'http://example.com/www/js/two.js' ] - -console.log(smc.originalPositionFor({ - line: 2, - column: 28 -})); -// { source: 'http://example.com/www/js/two.js', -// line: 2, -// column: 10, -// name: 'n' } - -console.log(smc.generatedPositionFor({ - source: 'http://example.com/www/js/two.js', - line: 2, - column: 10 -})); -// { line: 2, column: 28 } - -smc.eachMapping(function (m) { - // ... -}); -``` - -### Generating a source map - -In depth guide: -[**Compiling to JavaScript, and Debugging with Source Maps**](https://hacks.mozilla.org/2013/05/compiling-to-javascript-and-debugging-with-source-maps/) - -#### With SourceNode (high level API) - -```js -function compile(ast) { - switch (ast.type) { - case 'BinaryExpression': - return new SourceNode( - ast.location.line, - ast.location.column, - ast.location.source, - [compile(ast.left), " + ", compile(ast.right)] - ); - case 'Literal': - return new SourceNode( - ast.location.line, - ast.location.column, - ast.location.source, - String(ast.value) - ); - // ... - default: - throw new Error("Bad AST"); - } -} - -var ast = parse("40 + 2", "add.js"); -console.log(compile(ast).toStringWithSourceMap({ - file: 'add.js' -})); -// { code: '40 + 2', -// map: [object SourceMapGenerator] } -``` - -#### With SourceMapGenerator (low level API) - -```js -var map = new SourceMapGenerator({ - file: "source-mapped.js" -}); - -map.addMapping({ - generated: { - line: 10, - column: 35 - }, - source: "foo.js", - original: { - line: 33, - column: 2 - }, - name: "christopher" -}); - -console.log(map.toString()); -// '{"version":3,"file":"source-mapped.js","sources":["foo.js"],"names":["christopher"],"mappings":";;;;;;;;;mCAgCEA"}' -``` - -## API - -Get a reference to the module: - -```js -// Node.js -var sourceMap = require('source-map'); - -// Browser builds -var sourceMap = window.sourceMap; - -// Inside Firefox -const sourceMap = require("devtools/toolkit/sourcemap/source-map.js"); -``` - -### SourceMapConsumer - -A SourceMapConsumer instance represents a parsed source map which we can query -for information about the original file positions by giving it a file position -in the generated source. - -#### new SourceMapConsumer(rawSourceMap) - -The only parameter is the raw source map (either as a string which can be -`JSON.parse`'d, or an object). According to the spec, source maps have the -following attributes: - -* `version`: Which version of the source map spec this map is following. - -* `sources`: An array of URLs to the original source files. - -* `names`: An array of identifiers which can be referenced by individual - mappings. - -* `sourceRoot`: Optional. The URL root from which all sources are relative. - -* `sourcesContent`: Optional. An array of contents of the original source files. - -* `mappings`: A string of base64 VLQs which contain the actual mappings. - -* `file`: Optional. The generated filename this source map is associated with. - -```js -var consumer = new sourceMap.SourceMapConsumer(rawSourceMapJsonData); -``` - -#### SourceMapConsumer.prototype.computeColumnSpans() - -Compute the last column for each generated mapping. The last column is -inclusive. - -```js -// Before: -consumer.allGeneratedPositionsFor({ line: 2, source: "foo.coffee" }) -// [ { line: 2, -// column: 1 }, -// { line: 2, -// column: 10 }, -// { line: 2, -// column: 20 } ] - -consumer.computeColumnSpans(); - -// After: -consumer.allGeneratedPositionsFor({ line: 2, source: "foo.coffee" }) -// [ { line: 2, -// column: 1, -// lastColumn: 9 }, -// { line: 2, -// column: 10, -// lastColumn: 19 }, -// { line: 2, -// column: 20, -// lastColumn: Infinity } ] - -``` - -#### SourceMapConsumer.prototype.originalPositionFor(generatedPosition) - -Returns the original source, line, and column information for the generated -source's line and column positions provided. The only argument is an object with -the following properties: - -* `line`: The line number in the generated source. Line numbers in - this library are 1-based (note that the underlying source map - specification uses 0-based line numbers -- this library handles the - translation). - -* `column`: The column number in the generated source. Column numbers - in this library are 0-based. - -* `bias`: Either `SourceMapConsumer.GREATEST_LOWER_BOUND` or - `SourceMapConsumer.LEAST_UPPER_BOUND`. Specifies whether to return the closest - element that is smaller than or greater than the one we are searching for, - respectively, if the exact element cannot be found. Defaults to - `SourceMapConsumer.GREATEST_LOWER_BOUND`. - -and an object is returned with the following properties: - -* `source`: The original source file, or null if this information is not - available. - -* `line`: The line number in the original source, or null if this information is - not available. The line number is 1-based. - -* `column`: The column number in the original source, or null if this - information is not available. The column number is 0-based. - -* `name`: The original identifier, or null if this information is not available. - -```js -consumer.originalPositionFor({ line: 2, column: 10 }) -// { source: 'foo.coffee', -// line: 2, -// column: 2, -// name: null } - -consumer.originalPositionFor({ line: 99999999999999999, column: 999999999999999 }) -// { source: null, -// line: null, -// column: null, -// name: null } -``` - -#### SourceMapConsumer.prototype.generatedPositionFor(originalPosition) - -Returns the generated line and column information for the original source, -line, and column positions provided. The only argument is an object with -the following properties: - -* `source`: The filename of the original source. - -* `line`: The line number in the original source. The line number is - 1-based. - -* `column`: The column number in the original source. The column - number is 0-based. - -and an object is returned with the following properties: - -* `line`: The line number in the generated source, or null. The line - number is 1-based. - -* `column`: The column number in the generated source, or null. The - column number is 0-based. - -```js -consumer.generatedPositionFor({ source: "example.js", line: 2, column: 10 }) -// { line: 1, -// column: 56 } -``` - -#### SourceMapConsumer.prototype.allGeneratedPositionsFor(originalPosition) - -Returns all generated line and column information for the original source, line, -and column provided. If no column is provided, returns all mappings -corresponding to a either the line we are searching for or the next closest line -that has any mappings. Otherwise, returns all mappings corresponding to the -given line and either the column we are searching for or the next closest column -that has any offsets. - -The only argument is an object with the following properties: - -* `source`: The filename of the original source. - -* `line`: The line number in the original source. The line number is - 1-based. - -* `column`: Optional. The column number in the original source. The - column number is 0-based. - -and an array of objects is returned, each with the following properties: - -* `line`: The line number in the generated source, or null. The line - number is 1-based. - -* `column`: The column number in the generated source, or null. The - column number is 0-based. - -```js -consumer.allGeneratedpositionsfor({ line: 2, source: "foo.coffee" }) -// [ { line: 2, -// column: 1 }, -// { line: 2, -// column: 10 }, -// { line: 2, -// column: 20 } ] -``` - -#### SourceMapConsumer.prototype.hasContentsOfAllSources() - -Return true if we have the embedded source content for every source listed in -the source map, false otherwise. - -In other words, if this method returns `true`, then -`consumer.sourceContentFor(s)` will succeed for every source `s` in -`consumer.sources`. - -```js -// ... -if (consumer.hasContentsOfAllSources()) { - consumerReadyCallback(consumer); -} else { - fetchSources(consumer, consumerReadyCallback); -} -// ... -``` - -#### SourceMapConsumer.prototype.sourceContentFor(source[, returnNullOnMissing]) - -Returns the original source content for the source provided. The only -argument is the URL of the original source file. - -If the source content for the given source is not found, then an error is -thrown. Optionally, pass `true` as the second param to have `null` returned -instead. - -```js -consumer.sources -// [ "my-cool-lib.clj" ] - -consumer.sourceContentFor("my-cool-lib.clj") -// "..." - -consumer.sourceContentFor("this is not in the source map"); -// Error: "this is not in the source map" is not in the source map - -consumer.sourceContentFor("this is not in the source map", true); -// null -``` - -#### SourceMapConsumer.prototype.eachMapping(callback, context, order) - -Iterate over each mapping between an original source/line/column and a -generated line/column in this source map. - -* `callback`: The function that is called with each mapping. Mappings have the - form `{ source, generatedLine, generatedColumn, originalLine, originalColumn, - name }` - -* `context`: Optional. If specified, this object will be the value of `this` - every time that `callback` is called. - -* `order`: Either `SourceMapConsumer.GENERATED_ORDER` or - `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to iterate over - the mappings sorted by the generated file's line/column order or the - original's source/line/column order, respectively. Defaults to - `SourceMapConsumer.GENERATED_ORDER`. - -```js -consumer.eachMapping(function (m) { console.log(m); }) -// ... -// { source: 'illmatic.js', -// generatedLine: 1, -// generatedColumn: 0, -// originalLine: 1, -// originalColumn: 0, -// name: null } -// { source: 'illmatic.js', -// generatedLine: 2, -// generatedColumn: 0, -// originalLine: 2, -// originalColumn: 0, -// name: null } -// ... -``` -### SourceMapGenerator - -An instance of the SourceMapGenerator represents a source map which is being -built incrementally. - -#### new SourceMapGenerator([startOfSourceMap]) - -You may pass an object with the following properties: - -* `file`: The filename of the generated source that this source map is - associated with. - -* `sourceRoot`: A root for all relative URLs in this source map. - -* `skipValidation`: Optional. When `true`, disables validation of mappings as - they are added. This can improve performance but should be used with - discretion, as a last resort. Even then, one should avoid using this flag when - running tests, if possible. - -```js -var generator = new sourceMap.SourceMapGenerator({ - file: "my-generated-javascript-file.js", - sourceRoot: "http://example.com/app/js/" -}); -``` - -#### SourceMapGenerator.fromSourceMap(sourceMapConsumer) - -Creates a new `SourceMapGenerator` from an existing `SourceMapConsumer` instance. - -* `sourceMapConsumer` The SourceMap. - -```js -var generator = sourceMap.SourceMapGenerator.fromSourceMap(consumer); -``` - -#### SourceMapGenerator.prototype.addMapping(mapping) - -Add a single mapping from original source line and column to the generated -source's line and column for this source map being created. The mapping object -should have the following properties: - -* `generated`: An object with the generated line and column positions. - -* `original`: An object with the original line and column positions. - -* `source`: The original source file (relative to the sourceRoot). - -* `name`: An optional original token name for this mapping. - -```js -generator.addMapping({ - source: "module-one.scm", - original: { line: 128, column: 0 }, - generated: { line: 3, column: 456 } -}) -``` - -#### SourceMapGenerator.prototype.setSourceContent(sourceFile, sourceContent) - -Set the source content for an original source file. - -* `sourceFile` the URL of the original source file. - -* `sourceContent` the content of the source file. - -```js -generator.setSourceContent("module-one.scm", - fs.readFileSync("path/to/module-one.scm")) -``` - -#### SourceMapGenerator.prototype.applySourceMap(sourceMapConsumer[, sourceFile[, sourceMapPath]]) - -Applies a SourceMap for a source file to the SourceMap. -Each mapping to the supplied source file is rewritten using the -supplied SourceMap. Note: The resolution for the resulting mappings -is the minimum of this map and the supplied map. - -* `sourceMapConsumer`: The SourceMap to be applied. - -* `sourceFile`: Optional. The filename of the source file. - If omitted, sourceMapConsumer.file will be used, if it exists. - Otherwise an error will be thrown. - -* `sourceMapPath`: Optional. The dirname of the path to the SourceMap - to be applied. If relative, it is relative to the SourceMap. - - This parameter is needed when the two SourceMaps aren't in the same - directory, and the SourceMap to be applied contains relative source - paths. If so, those relative source paths need to be rewritten - relative to the SourceMap. - - If omitted, it is assumed that both SourceMaps are in the same directory, - thus not needing any rewriting. (Supplying `'.'` has the same effect.) - -#### SourceMapGenerator.prototype.toString() - -Renders the source map being generated to a string. - -```js -generator.toString() -// '{"version":3,"sources":["module-one.scm"],"names":[],"mappings":"...snip...","file":"my-generated-javascript-file.js","sourceRoot":"http://example.com/app/js/"}' -``` - -### SourceNode - -SourceNodes provide a way to abstract over interpolating and/or concatenating -snippets of generated JavaScript source code, while maintaining the line and -column information associated between those snippets and the original source -code. This is useful as the final intermediate representation a compiler might -use before outputting the generated JS and source map. - -#### new SourceNode([line, column, source[, chunk[, name]]]) - -* `line`: The original line number associated with this source node, or null if - it isn't associated with an original line. The line number is 1-based. - -* `column`: The original column number associated with this source node, or null - if it isn't associated with an original column. The column number - is 0-based. - -* `source`: The original source's filename; null if no filename is provided. - -* `chunk`: Optional. Is immediately passed to `SourceNode.prototype.add`, see - below. - -* `name`: Optional. The original identifier. - -```js -var node = new SourceNode(1, 2, "a.cpp", [ - new SourceNode(3, 4, "b.cpp", "extern int status;\n"), - new SourceNode(5, 6, "c.cpp", "std::string* make_string(size_t n);\n"), - new SourceNode(7, 8, "d.cpp", "int main(int argc, char** argv) {}\n"), -]); -``` - -#### SourceNode.fromStringWithSourceMap(code, sourceMapConsumer[, relativePath]) - -Creates a SourceNode from generated code and a SourceMapConsumer. - -* `code`: The generated code - -* `sourceMapConsumer` The SourceMap for the generated code - -* `relativePath` The optional path that relative sources in `sourceMapConsumer` - should be relative to. - -```js -var consumer = new SourceMapConsumer(fs.readFileSync("path/to/my-file.js.map", "utf8")); -var node = SourceNode.fromStringWithSourceMap(fs.readFileSync("path/to/my-file.js"), - consumer); -``` - -#### SourceNode.prototype.add(chunk) - -Add a chunk of generated JS to this source node. - -* `chunk`: A string snippet of generated JS code, another instance of - `SourceNode`, or an array where each member is one of those things. - -```js -node.add(" + "); -node.add(otherNode); -node.add([leftHandOperandNode, " + ", rightHandOperandNode]); -``` - -#### SourceNode.prototype.prepend(chunk) - -Prepend a chunk of generated JS to this source node. - -* `chunk`: A string snippet of generated JS code, another instance of - `SourceNode`, or an array where each member is one of those things. - -```js -node.prepend("/** Build Id: f783haef86324gf **/\n\n"); -``` - -#### SourceNode.prototype.setSourceContent(sourceFile, sourceContent) - -Set the source content for a source file. This will be added to the -`SourceMap` in the `sourcesContent` field. - -* `sourceFile`: The filename of the source file - -* `sourceContent`: The content of the source file - -```js -node.setSourceContent("module-one.scm", - fs.readFileSync("path/to/module-one.scm")) -``` - -#### SourceNode.prototype.walk(fn) - -Walk over the tree of JS snippets in this node and its children. The walking -function is called once for each snippet of JS and is passed that snippet and -the its original associated source's line/column location. - -* `fn`: The traversal function. - -```js -var node = new SourceNode(1, 2, "a.js", [ - new SourceNode(3, 4, "b.js", "uno"), - "dos", - [ - "tres", - new SourceNode(5, 6, "c.js", "quatro") - ] -]); - -node.walk(function (code, loc) { console.log("WALK:", code, loc); }) -// WALK: uno { source: 'b.js', line: 3, column: 4, name: null } -// WALK: dos { source: 'a.js', line: 1, column: 2, name: null } -// WALK: tres { source: 'a.js', line: 1, column: 2, name: null } -// WALK: quatro { source: 'c.js', line: 5, column: 6, name: null } -``` - -#### SourceNode.prototype.walkSourceContents(fn) - -Walk over the tree of SourceNodes. The walking function is called for each -source file content and is passed the filename and source content. - -* `fn`: The traversal function. - -```js -var a = new SourceNode(1, 2, "a.js", "generated from a"); -a.setSourceContent("a.js", "original a"); -var b = new SourceNode(1, 2, "b.js", "generated from b"); -b.setSourceContent("b.js", "original b"); -var c = new SourceNode(1, 2, "c.js", "generated from c"); -c.setSourceContent("c.js", "original c"); - -var node = new SourceNode(null, null, null, [a, b, c]); -node.walkSourceContents(function (source, contents) { console.log("WALK:", source, ":", contents); }) -// WALK: a.js : original a -// WALK: b.js : original b -// WALK: c.js : original c -``` - -#### SourceNode.prototype.join(sep) - -Like `Array.prototype.join` except for SourceNodes. Inserts the separator -between each of this source node's children. - -* `sep`: The separator. - -```js -var lhs = new SourceNode(1, 2, "a.rs", "my_copy"); -var operand = new SourceNode(3, 4, "a.rs", "="); -var rhs = new SourceNode(5, 6, "a.rs", "orig.clone()"); - -var node = new SourceNode(null, null, null, [ lhs, operand, rhs ]); -var joinedNode = node.join(" "); -``` - -#### SourceNode.prototype.replaceRight(pattern, replacement) - -Call `String.prototype.replace` on the very right-most source snippet. Useful -for trimming white space from the end of a source node, etc. - -* `pattern`: The pattern to replace. - -* `replacement`: The thing to replace the pattern with. - -```js -// Trim trailing white space. -node.replaceRight(/\s*$/, ""); -``` - -#### SourceNode.prototype.toString() - -Return the string representation of this source node. Walks over the tree and -concatenates all the various snippets together to one string. - -```js -var node = new SourceNode(1, 2, "a.js", [ - new SourceNode(3, 4, "b.js", "uno"), - "dos", - [ - "tres", - new SourceNode(5, 6, "c.js", "quatro") - ] -]); - -node.toString() -// 'unodostresquatro' -``` - -#### SourceNode.prototype.toStringWithSourceMap([startOfSourceMap]) - -Returns the string representation of this tree of source nodes, plus a -SourceMapGenerator which contains all the mappings between the generated and -original sources. - -The arguments are the same as those to `new SourceMapGenerator`. - -```js -var node = new SourceNode(1, 2, "a.js", [ - new SourceNode(3, 4, "b.js", "uno"), - "dos", - [ - "tres", - new SourceNode(5, 6, "c.js", "quatro") - ] -]); - -node.toStringWithSourceMap({ file: "my-output-file.js" }) -// { code: 'unodostresquatro', -// map: [object SourceMapGenerator] } -``` diff --git a/build_vtk_bundle/node_modules/source-map/package.json b/build_vtk_bundle/node_modules/source-map/package.json deleted file mode 100644 index 24663417..00000000 --- a/build_vtk_bundle/node_modules/source-map/package.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "name": "source-map", - "description": "Generates and consumes source maps", - "version": "0.6.1", - "homepage": "https://github.com/mozilla/source-map", - "author": "Nick Fitzgerald ", - "contributors": [ - "Tobias Koppers ", - "Duncan Beevers ", - "Stephen Crane ", - "Ryan Seddon ", - "Miles Elam ", - "Mihai Bazon ", - "Michael Ficarra ", - "Todd Wolfson ", - "Alexander Solovyov ", - "Felix Gnass ", - "Conrad Irwin ", - "usrbincc ", - "David Glasser ", - "Chase Douglas ", - "Evan Wallace ", - "Heather Arthur ", - "Hugh Kennedy ", - "David Glasser ", - "Simon Lydell ", - "Jmeas Smith ", - "Michael Z Goddard ", - "azu ", - "John Gozde ", - "Adam Kirkton ", - "Chris Montgomery ", - "J. Ryan Stinnett ", - "Jack Herrington ", - "Chris Truter ", - "Daniel Espeset ", - "Jamie Wong ", - "Eddy Bruël ", - "Hawken Rives ", - "Gilad Peleg ", - "djchie ", - "Gary Ye ", - "Nicolas Lalevée " - ], - "repository": { - "type": "git", - "url": "http://github.com/mozilla/source-map.git" - }, - "main": "./source-map.js", - "files": [ - "source-map.js", - "source-map.d.ts", - "lib/", - "dist/source-map.debug.js", - "dist/source-map.js", - "dist/source-map.min.js", - "dist/source-map.min.js.map" - ], - "engines": { - "node": ">=0.10.0" - }, - "license": "BSD-3-Clause", - "scripts": { - "test": "npm run build && node test/run-tests.js", - "build": "webpack --color", - "toc": "doctoc --title '## Table of Contents' README.md && doctoc --title '## Table of Contents' CONTRIBUTING.md" - }, - "devDependencies": { - "doctoc": "^0.15.0", - "webpack": "^1.12.0" - }, - "typings": "source-map" -} diff --git a/build_vtk_bundle/node_modules/source-map/source-map.d.ts b/build_vtk_bundle/node_modules/source-map/source-map.d.ts deleted file mode 100644 index 8f972b0c..00000000 --- a/build_vtk_bundle/node_modules/source-map/source-map.d.ts +++ /dev/null @@ -1,98 +0,0 @@ -export interface StartOfSourceMap { - file?: string; - sourceRoot?: string; -} - -export interface RawSourceMap extends StartOfSourceMap { - version: string; - sources: string[]; - names: string[]; - sourcesContent?: string[]; - mappings: string; -} - -export interface Position { - line: number; - column: number; -} - -export interface LineRange extends Position { - lastColumn: number; -} - -export interface FindPosition extends Position { - // SourceMapConsumer.GREATEST_LOWER_BOUND or SourceMapConsumer.LEAST_UPPER_BOUND - bias?: number; -} - -export interface SourceFindPosition extends FindPosition { - source: string; -} - -export interface MappedPosition extends Position { - source: string; - name?: string; -} - -export interface MappingItem { - source: string; - generatedLine: number; - generatedColumn: number; - originalLine: number; - originalColumn: number; - name: string; -} - -export class SourceMapConsumer { - static GENERATED_ORDER: number; - static ORIGINAL_ORDER: number; - - static GREATEST_LOWER_BOUND: number; - static LEAST_UPPER_BOUND: number; - - constructor(rawSourceMap: RawSourceMap); - computeColumnSpans(): void; - originalPositionFor(generatedPosition: FindPosition): MappedPosition; - generatedPositionFor(originalPosition: SourceFindPosition): LineRange; - allGeneratedPositionsFor(originalPosition: MappedPosition): Position[]; - hasContentsOfAllSources(): boolean; - sourceContentFor(source: string, returnNullOnMissing?: boolean): string; - eachMapping(callback: (mapping: MappingItem) => void, context?: any, order?: number): void; -} - -export interface Mapping { - generated: Position; - original: Position; - source: string; - name?: string; -} - -export class SourceMapGenerator { - constructor(startOfSourceMap?: StartOfSourceMap); - static fromSourceMap(sourceMapConsumer: SourceMapConsumer): SourceMapGenerator; - addMapping(mapping: Mapping): void; - setSourceContent(sourceFile: string, sourceContent: string): void; - applySourceMap(sourceMapConsumer: SourceMapConsumer, sourceFile?: string, sourceMapPath?: string): void; - toString(): string; -} - -export interface CodeWithSourceMap { - code: string; - map: SourceMapGenerator; -} - -export class SourceNode { - constructor(); - constructor(line: number, column: number, source: string); - constructor(line: number, column: number, source: string, chunk?: string, name?: string); - static fromStringWithSourceMap(code: string, sourceMapConsumer: SourceMapConsumer, relativePath?: string): SourceNode; - add(chunk: string): void; - prepend(chunk: string): void; - setSourceContent(sourceFile: string, sourceContent: string): void; - walk(fn: (chunk: string, mapping: MappedPosition) => void): void; - walkSourceContents(fn: (file: string, content: string) => void): void; - join(sep: string): SourceNode; - replaceRight(pattern: string, replacement: string): SourceNode; - toString(): string; - toStringWithSourceMap(startOfSourceMap?: StartOfSourceMap): CodeWithSourceMap; -} diff --git a/build_vtk_bundle/node_modules/source-map/source-map.js b/build_vtk_bundle/node_modules/source-map/source-map.js deleted file mode 100644 index bc88fe82..00000000 --- a/build_vtk_bundle/node_modules/source-map/source-map.js +++ /dev/null @@ -1,8 +0,0 @@ -/* - * Copyright 2009-2011 Mozilla Foundation and contributors - * Licensed under the New BSD license. See LICENSE.txt or: - * http://opensource.org/licenses/BSD-3-Clause - */ -exports.SourceMapGenerator = require('./lib/source-map-generator').SourceMapGenerator; -exports.SourceMapConsumer = require('./lib/source-map-consumer').SourceMapConsumer; -exports.SourceNode = require('./lib/source-node').SourceNode; diff --git a/build_vtk_bundle/node_modules/spark-md5/LICENSE b/build_vtk_bundle/node_modules/spark-md5/LICENSE deleted file mode 100644 index 20553dda..00000000 --- a/build_vtk_bundle/node_modules/spark-md5/LICENSE +++ /dev/null @@ -1,13 +0,0 @@ - DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE - Version 2, December 2004 - - Copyright (C) 2015 André Cruz - - Everyone is permitted to copy and distribute verbatim or modified - copies of this license document, and changing it is allowed as long - as the name is changed. - - DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/build_vtk_bundle/node_modules/spark-md5/README.md b/build_vtk_bundle/node_modules/spark-md5/README.md deleted file mode 100644 index dcf837db..00000000 --- a/build_vtk_bundle/node_modules/spark-md5/README.md +++ /dev/null @@ -1,191 +0,0 @@ -# SparkMD5 - -SparkMD5 is a fast md5 implementation of the MD5 algorithm. -This script is based in the JKM md5 library which is the [fastest](http://jsperf.com/md5-shootout/7) algorithm around. This is most suitable for browser usage, because `nodejs` version might be faster. - -NOTE: Please disable Firebug while performing the test! - Firebug consumes a lot of memory and CPU and slows the test by a great margin. - - -**[Demo](http://9px.ir/demo/incremental-md5.html)** - -## Install - -```sh -npm install --save spark-md5 -``` - -## Improvements over the JKM md5 library - - * Strings are converted to utf8, like most server side algorithms - * Fix computation for large amounts of data (overflow) - * Incremental md5 (see below) - * Support for array buffers (typed arrays) - * Functionality wrapped in a closure, to avoid global assignments - * Object oriented library - * CommonJS (it can be used in node) and AMD integration - * Code passed through JSHint and JSCS - - -Incremental md5 performs a lot better for hashing large amounts of data, such as -files. One could read files in chunks, using the FileReader & Blob's, and append -each chunk for md5 hashing while keeping memory usage low. See example below. - - -## Usage - -### Normal usage - -```js -var hexHash = SparkMD5.hash('Hi there'); // hex hash -var rawHash = SparkMD5.hash('Hi there', true); // OR raw hash (binary string) -``` - -### Incremental usage - -```js -var spark = new SparkMD5(); -spark.append('Hi'); -spark.append(' there'); -var hexHash = spark.end(); // hex hash -var rawHash = spark.end(true); // OR raw hash (binary string) -``` - -### Hash a file incrementally - -NOTE: If you test the code bellow using the file:// protocol in chrome you must start the browser with -allow-file-access-from-files argument. - Please see: http://code.google.com/p/chromium/issues/detail?id=60889 - -```js -document.getElementById('file').addEventListener('change', function () { - var blobSlice = File.prototype.slice || File.prototype.mozSlice || File.prototype.webkitSlice, - file = this.files[0], - chunkSize = 2097152, // Read in chunks of 2MB - chunks = Math.ceil(file.size / chunkSize), - currentChunk = 0, - spark = new SparkMD5.ArrayBuffer(), - fileReader = new FileReader(); - - fileReader.onload = function (e) { - console.log('read chunk nr', currentChunk + 1, 'of', chunks); - spark.append(e.target.result); // Append array buffer - currentChunk++; - - if (currentChunk < chunks) { - loadNext(); - } else { - console.log('finished loading'); - console.info('computed hash', spark.end()); // Compute hash - } - }; - - fileReader.onerror = function () { - console.warn('oops, something went wrong.'); - }; - - function loadNext() { - var start = currentChunk * chunkSize, - end = ((start + chunkSize) >= file.size) ? file.size : start + chunkSize; - - fileReader.readAsArrayBuffer(blobSlice.call(file, start, end)); - } - - loadNext(); -}); -``` - -You can see some more examples in the test folder. - -## Documentation - - -### SparkMD5 class - -#### SparkMD5#append(str) - -Appends a string, encoding it to UTF8 if necessary. - -#### SparkMD5#appendBinary(str) - -Appends a binary string (e.g.: string returned from the deprecated [readAsBinaryString](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsBinaryString)). - -#### SparkMD5#end(raw) - -Finishes the computation of the md5, returning the hex result. -If `raw` is true, the result as a binary string will be returned instead. - -#### SparkMD5#reset() - -Resets the internal state of the computation. - -#### SparkMD5#getState() - -Returns an object representing the internal computation state. -You can pass this state to setState(). This feature is useful to resume an incremental md5. - -#### SparkMD5#setState(state) - -Sets the internal computation state. See: getState(). - -#### SparkMD5#destroy() - -Releases memory used by the incremental buffer and other additional resources. - -#### SparkMD5.hash(str, raw) - -Hashes a string directly, returning the hex result. -If `raw` is true, the result as a binary string will be returned instead. -Note that this function is `static`. - -#### SparkMD5.hashBinary(str, raw) - -Hashes a binary string directly (e.g.: string returned from the deprecated [readAsBinaryString](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsBinaryString)), returning the hex result. -If `raw` is true, the result as a binary string will be returned instead. -Note that this function is `static`. - - -### SparkMD5.ArrayBuffer class - -#### SparkMD5.ArrayBuffer#append(arr) - -Appends an array buffer. - -#### SparkMD5.ArrayBuffer#end(raw) - -Finishes the computation of the md5, returning the hex result. -If `raw` is true, the result as a binary string will be returned instead. - -#### SparkMD5.ArrayBuffer#reset() - -Resets the internal state of the computation. - -#### SparkMD5.ArrayBuffer#destroy() - -Releases memory used by the incremental buffer and other additional resources. - -#### SparkMD5.ArrayBuffer#getState() - -Returns an object representing the internal computation state. -You can pass this state to setState(). This feature is useful to resume an incremental md5. - -#### SparkMD5.ArrayBuffer#setState(state) - -Sets the internal computation state. See: getState(). - -#### SparkMD5.ArrayBuffer.hash(arr, raw) - -Hashes an array buffer directly, returning the hex result. -If `raw` is true, the result as a binary string will be returned instead. -Note that this function is `static`. - - -## License - -The project is double licensed, being [WTF2](./LICENSE) the master license and [MIT](./LICENSE2) the alternative license. -The reason to have two licenses is that some entities refuse to use the master license (WTF2) due to -bad language. If that's also your case, you can choose the alternative license. - - -## Credits - -[Joseph Myers](http://www.myersdaily.org/joseph/javascript/md5-text.html) diff --git a/build_vtk_bundle/node_modules/spark-md5/package.json b/build_vtk_bundle/node_modules/spark-md5/package.json deleted file mode 100644 index 2e3f0978..00000000 --- a/build_vtk_bundle/node_modules/spark-md5/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "spark-md5", - "version": "3.0.2", - "description": "Lightning fast normal and incremental md5 for javascript", - "main": "spark-md5.js", - "files": [ - "spark-md5.js", - "spark-md5.min.js" - ], - "directories": { - "test": "test" - }, - "repository": { - "type": "git", - "url": "git@github.com:satazor/js-spark-md5.git" - }, - "keywords": [ - "md5", - "fast", - "spark", - "incremental" - ], - "author": "André Cruz ", - "license": "(WTFPL OR MIT)", - "bugs": { - "url": "https://github.com/satazor/js-spark-md5/issues" - }, - "scripts": { - "min": "uglifyjs spark-md5.js > spark-md5.min.js", - "test": "open test/index.html" - }, - "devDependencies": { - "uglify-js": "^3.0.0" - } -} diff --git a/build_vtk_bundle/node_modules/spark-md5/spark-md5.js b/build_vtk_bundle/node_modules/spark-md5/spark-md5.js deleted file mode 100644 index d2bdbbb0..00000000 --- a/build_vtk_bundle/node_modules/spark-md5/spark-md5.js +++ /dev/null @@ -1,751 +0,0 @@ -(function (factory) { - if (typeof exports === 'object') { - // Node/CommonJS - module.exports = factory(); - } else if (typeof define === 'function' && define.amd) { - // AMD - define(factory); - } else { - // Browser globals (with support for web workers) - var glob; - - try { - glob = window; - } catch (e) { - glob = self; - } - - glob.SparkMD5 = factory(); - } -}(function (undefined) { - - 'use strict'; - - /* - * Fastest md5 implementation around (JKM md5). - * Credits: Joseph Myers - * - * @see http://www.myersdaily.org/joseph/javascript/md5-text.html - * @see http://jsperf.com/md5-shootout/7 - */ - - /* this function is much faster, - so if possible we use it. Some IEs - are the only ones I know of that - need the idiotic second function, - generated by an if clause. */ - var add32 = function (a, b) { - return (a + b) & 0xFFFFFFFF; - }, - hex_chr = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f']; - - - function cmn(q, a, b, x, s, t) { - a = add32(add32(a, q), add32(x, t)); - return add32((a << s) | (a >>> (32 - s)), b); - } - - function md5cycle(x, k) { - var a = x[0], - b = x[1], - c = x[2], - d = x[3]; - - a += (b & c | ~b & d) + k[0] - 680876936 | 0; - a = (a << 7 | a >>> 25) + b | 0; - d += (a & b | ~a & c) + k[1] - 389564586 | 0; - d = (d << 12 | d >>> 20) + a | 0; - c += (d & a | ~d & b) + k[2] + 606105819 | 0; - c = (c << 17 | c >>> 15) + d | 0; - b += (c & d | ~c & a) + k[3] - 1044525330 | 0; - b = (b << 22 | b >>> 10) + c | 0; - a += (b & c | ~b & d) + k[4] - 176418897 | 0; - a = (a << 7 | a >>> 25) + b | 0; - d += (a & b | ~a & c) + k[5] + 1200080426 | 0; - d = (d << 12 | d >>> 20) + a | 0; - c += (d & a | ~d & b) + k[6] - 1473231341 | 0; - c = (c << 17 | c >>> 15) + d | 0; - b += (c & d | ~c & a) + k[7] - 45705983 | 0; - b = (b << 22 | b >>> 10) + c | 0; - a += (b & c | ~b & d) + k[8] + 1770035416 | 0; - a = (a << 7 | a >>> 25) + b | 0; - d += (a & b | ~a & c) + k[9] - 1958414417 | 0; - d = (d << 12 | d >>> 20) + a | 0; - c += (d & a | ~d & b) + k[10] - 42063 | 0; - c = (c << 17 | c >>> 15) + d | 0; - b += (c & d | ~c & a) + k[11] - 1990404162 | 0; - b = (b << 22 | b >>> 10) + c | 0; - a += (b & c | ~b & d) + k[12] + 1804603682 | 0; - a = (a << 7 | a >>> 25) + b | 0; - d += (a & b | ~a & c) + k[13] - 40341101 | 0; - d = (d << 12 | d >>> 20) + a | 0; - c += (d & a | ~d & b) + k[14] - 1502002290 | 0; - c = (c << 17 | c >>> 15) + d | 0; - b += (c & d | ~c & a) + k[15] + 1236535329 | 0; - b = (b << 22 | b >>> 10) + c | 0; - - a += (b & d | c & ~d) + k[1] - 165796510 | 0; - a = (a << 5 | a >>> 27) + b | 0; - d += (a & c | b & ~c) + k[6] - 1069501632 | 0; - d = (d << 9 | d >>> 23) + a | 0; - c += (d & b | a & ~b) + k[11] + 643717713 | 0; - c = (c << 14 | c >>> 18) + d | 0; - b += (c & a | d & ~a) + k[0] - 373897302 | 0; - b = (b << 20 | b >>> 12) + c | 0; - a += (b & d | c & ~d) + k[5] - 701558691 | 0; - a = (a << 5 | a >>> 27) + b | 0; - d += (a & c | b & ~c) + k[10] + 38016083 | 0; - d = (d << 9 | d >>> 23) + a | 0; - c += (d & b | a & ~b) + k[15] - 660478335 | 0; - c = (c << 14 | c >>> 18) + d | 0; - b += (c & a | d & ~a) + k[4] - 405537848 | 0; - b = (b << 20 | b >>> 12) + c | 0; - a += (b & d | c & ~d) + k[9] + 568446438 | 0; - a = (a << 5 | a >>> 27) + b | 0; - d += (a & c | b & ~c) + k[14] - 1019803690 | 0; - d = (d << 9 | d >>> 23) + a | 0; - c += (d & b | a & ~b) + k[3] - 187363961 | 0; - c = (c << 14 | c >>> 18) + d | 0; - b += (c & a | d & ~a) + k[8] + 1163531501 | 0; - b = (b << 20 | b >>> 12) + c | 0; - a += (b & d | c & ~d) + k[13] - 1444681467 | 0; - a = (a << 5 | a >>> 27) + b | 0; - d += (a & c | b & ~c) + k[2] - 51403784 | 0; - d = (d << 9 | d >>> 23) + a | 0; - c += (d & b | a & ~b) + k[7] + 1735328473 | 0; - c = (c << 14 | c >>> 18) + d | 0; - b += (c & a | d & ~a) + k[12] - 1926607734 | 0; - b = (b << 20 | b >>> 12) + c | 0; - - a += (b ^ c ^ d) + k[5] - 378558 | 0; - a = (a << 4 | a >>> 28) + b | 0; - d += (a ^ b ^ c) + k[8] - 2022574463 | 0; - d = (d << 11 | d >>> 21) + a | 0; - c += (d ^ a ^ b) + k[11] + 1839030562 | 0; - c = (c << 16 | c >>> 16) + d | 0; - b += (c ^ d ^ a) + k[14] - 35309556 | 0; - b = (b << 23 | b >>> 9) + c | 0; - a += (b ^ c ^ d) + k[1] - 1530992060 | 0; - a = (a << 4 | a >>> 28) + b | 0; - d += (a ^ b ^ c) + k[4] + 1272893353 | 0; - d = (d << 11 | d >>> 21) + a | 0; - c += (d ^ a ^ b) + k[7] - 155497632 | 0; - c = (c << 16 | c >>> 16) + d | 0; - b += (c ^ d ^ a) + k[10] - 1094730640 | 0; - b = (b << 23 | b >>> 9) + c | 0; - a += (b ^ c ^ d) + k[13] + 681279174 | 0; - a = (a << 4 | a >>> 28) + b | 0; - d += (a ^ b ^ c) + k[0] - 358537222 | 0; - d = (d << 11 | d >>> 21) + a | 0; - c += (d ^ a ^ b) + k[3] - 722521979 | 0; - c = (c << 16 | c >>> 16) + d | 0; - b += (c ^ d ^ a) + k[6] + 76029189 | 0; - b = (b << 23 | b >>> 9) + c | 0; - a += (b ^ c ^ d) + k[9] - 640364487 | 0; - a = (a << 4 | a >>> 28) + b | 0; - d += (a ^ b ^ c) + k[12] - 421815835 | 0; - d = (d << 11 | d >>> 21) + a | 0; - c += (d ^ a ^ b) + k[15] + 530742520 | 0; - c = (c << 16 | c >>> 16) + d | 0; - b += (c ^ d ^ a) + k[2] - 995338651 | 0; - b = (b << 23 | b >>> 9) + c | 0; - - a += (c ^ (b | ~d)) + k[0] - 198630844 | 0; - a = (a << 6 | a >>> 26) + b | 0; - d += (b ^ (a | ~c)) + k[7] + 1126891415 | 0; - d = (d << 10 | d >>> 22) + a | 0; - c += (a ^ (d | ~b)) + k[14] - 1416354905 | 0; - c = (c << 15 | c >>> 17) + d | 0; - b += (d ^ (c | ~a)) + k[5] - 57434055 | 0; - b = (b << 21 |b >>> 11) + c | 0; - a += (c ^ (b | ~d)) + k[12] + 1700485571 | 0; - a = (a << 6 | a >>> 26) + b | 0; - d += (b ^ (a | ~c)) + k[3] - 1894986606 | 0; - d = (d << 10 | d >>> 22) + a | 0; - c += (a ^ (d | ~b)) + k[10] - 1051523 | 0; - c = (c << 15 | c >>> 17) + d | 0; - b += (d ^ (c | ~a)) + k[1] - 2054922799 | 0; - b = (b << 21 |b >>> 11) + c | 0; - a += (c ^ (b | ~d)) + k[8] + 1873313359 | 0; - a = (a << 6 | a >>> 26) + b | 0; - d += (b ^ (a | ~c)) + k[15] - 30611744 | 0; - d = (d << 10 | d >>> 22) + a | 0; - c += (a ^ (d | ~b)) + k[6] - 1560198380 | 0; - c = (c << 15 | c >>> 17) + d | 0; - b += (d ^ (c | ~a)) + k[13] + 1309151649 | 0; - b = (b << 21 |b >>> 11) + c | 0; - a += (c ^ (b | ~d)) + k[4] - 145523070 | 0; - a = (a << 6 | a >>> 26) + b | 0; - d += (b ^ (a | ~c)) + k[11] - 1120210379 | 0; - d = (d << 10 | d >>> 22) + a | 0; - c += (a ^ (d | ~b)) + k[2] + 718787259 | 0; - c = (c << 15 | c >>> 17) + d | 0; - b += (d ^ (c | ~a)) + k[9] - 343485551 | 0; - b = (b << 21 | b >>> 11) + c | 0; - - x[0] = a + x[0] | 0; - x[1] = b + x[1] | 0; - x[2] = c + x[2] | 0; - x[3] = d + x[3] | 0; - } - - function md5blk(s) { - var md5blks = [], - i; /* Andy King said do it this way. */ - - for (i = 0; i < 64; i += 4) { - md5blks[i >> 2] = s.charCodeAt(i) + (s.charCodeAt(i + 1) << 8) + (s.charCodeAt(i + 2) << 16) + (s.charCodeAt(i + 3) << 24); - } - return md5blks; - } - - function md5blk_array(a) { - var md5blks = [], - i; /* Andy King said do it this way. */ - - for (i = 0; i < 64; i += 4) { - md5blks[i >> 2] = a[i] + (a[i + 1] << 8) + (a[i + 2] << 16) + (a[i + 3] << 24); - } - return md5blks; - } - - function md51(s) { - var n = s.length, - state = [1732584193, -271733879, -1732584194, 271733878], - i, - length, - tail, - tmp, - lo, - hi; - - for (i = 64; i <= n; i += 64) { - md5cycle(state, md5blk(s.substring(i - 64, i))); - } - s = s.substring(i - 64); - length = s.length; - tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; - for (i = 0; i < length; i += 1) { - tail[i >> 2] |= s.charCodeAt(i) << ((i % 4) << 3); - } - tail[i >> 2] |= 0x80 << ((i % 4) << 3); - if (i > 55) { - md5cycle(state, tail); - for (i = 0; i < 16; i += 1) { - tail[i] = 0; - } - } - - // Beware that the final length might not fit in 32 bits so we take care of that - tmp = n * 8; - tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/); - lo = parseInt(tmp[2], 16); - hi = parseInt(tmp[1], 16) || 0; - - tail[14] = lo; - tail[15] = hi; - - md5cycle(state, tail); - return state; - } - - function md51_array(a) { - var n = a.length, - state = [1732584193, -271733879, -1732584194, 271733878], - i, - length, - tail, - tmp, - lo, - hi; - - for (i = 64; i <= n; i += 64) { - md5cycle(state, md5blk_array(a.subarray(i - 64, i))); - } - - // Not sure if it is a bug, however IE10 will always produce a sub array of length 1 - // containing the last element of the parent array if the sub array specified starts - // beyond the length of the parent array - weird. - // https://connect.microsoft.com/IE/feedback/details/771452/typed-array-subarray-issue - a = (i - 64) < n ? a.subarray(i - 64) : new Uint8Array(0); - - length = a.length; - tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; - for (i = 0; i < length; i += 1) { - tail[i >> 2] |= a[i] << ((i % 4) << 3); - } - - tail[i >> 2] |= 0x80 << ((i % 4) << 3); - if (i > 55) { - md5cycle(state, tail); - for (i = 0; i < 16; i += 1) { - tail[i] = 0; - } - } - - // Beware that the final length might not fit in 32 bits so we take care of that - tmp = n * 8; - tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/); - lo = parseInt(tmp[2], 16); - hi = parseInt(tmp[1], 16) || 0; - - tail[14] = lo; - tail[15] = hi; - - md5cycle(state, tail); - - return state; - } - - function rhex(n) { - var s = '', - j; - for (j = 0; j < 4; j += 1) { - s += hex_chr[(n >> (j * 8 + 4)) & 0x0F] + hex_chr[(n >> (j * 8)) & 0x0F]; - } - return s; - } - - function hex(x) { - var i; - for (i = 0; i < x.length; i += 1) { - x[i] = rhex(x[i]); - } - return x.join(''); - } - - // In some cases the fast add32 function cannot be used.. - if (hex(md51('hello')) !== '5d41402abc4b2a76b9719d911017c592') { - add32 = function (x, y) { - var lsw = (x & 0xFFFF) + (y & 0xFFFF), - msw = (x >> 16) + (y >> 16) + (lsw >> 16); - return (msw << 16) | (lsw & 0xFFFF); - }; - } - - // --------------------------------------------------- - - /** - * ArrayBuffer slice polyfill. - * - * @see https://github.com/ttaubert/node-arraybuffer-slice - */ - - if (typeof ArrayBuffer !== 'undefined' && !ArrayBuffer.prototype.slice) { - (function () { - function clamp(val, length) { - val = (val | 0) || 0; - - if (val < 0) { - return Math.max(val + length, 0); - } - - return Math.min(val, length); - } - - ArrayBuffer.prototype.slice = function (from, to) { - var length = this.byteLength, - begin = clamp(from, length), - end = length, - num, - target, - targetArray, - sourceArray; - - if (to !== undefined) { - end = clamp(to, length); - } - - if (begin > end) { - return new ArrayBuffer(0); - } - - num = end - begin; - target = new ArrayBuffer(num); - targetArray = new Uint8Array(target); - - sourceArray = new Uint8Array(this, begin, num); - targetArray.set(sourceArray); - - return target; - }; - })(); - } - - // --------------------------------------------------- - - /** - * Helpers. - */ - - function toUtf8(str) { - if (/[\u0080-\uFFFF]/.test(str)) { - str = unescape(encodeURIComponent(str)); - } - - return str; - } - - function utf8Str2ArrayBuffer(str, returnUInt8Array) { - var length = str.length, - buff = new ArrayBuffer(length), - arr = new Uint8Array(buff), - i; - - for (i = 0; i < length; i += 1) { - arr[i] = str.charCodeAt(i); - } - - return returnUInt8Array ? arr : buff; - } - - function arrayBuffer2Utf8Str(buff) { - return String.fromCharCode.apply(null, new Uint8Array(buff)); - } - - function concatenateArrayBuffers(first, second, returnUInt8Array) { - var result = new Uint8Array(first.byteLength + second.byteLength); - - result.set(new Uint8Array(first)); - result.set(new Uint8Array(second), first.byteLength); - - return returnUInt8Array ? result : result.buffer; - } - - function hexToBinaryString(hex) { - var bytes = [], - length = hex.length, - x; - - for (x = 0; x < length - 1; x += 2) { - bytes.push(parseInt(hex.substr(x, 2), 16)); - } - - return String.fromCharCode.apply(String, bytes); - } - - // --------------------------------------------------- - - /** - * SparkMD5 OOP implementation. - * - * Use this class to perform an incremental md5, otherwise use the - * static methods instead. - */ - - function SparkMD5() { - // call reset to init the instance - this.reset(); - } - - /** - * Appends a string. - * A conversion will be applied if an utf8 string is detected. - * - * @param {String} str The string to be appended - * - * @return {SparkMD5} The instance itself - */ - SparkMD5.prototype.append = function (str) { - // Converts the string to utf8 bytes if necessary - // Then append as binary - this.appendBinary(toUtf8(str)); - - return this; - }; - - /** - * Appends a binary string. - * - * @param {String} contents The binary string to be appended - * - * @return {SparkMD5} The instance itself - */ - SparkMD5.prototype.appendBinary = function (contents) { - this._buff += contents; - this._length += contents.length; - - var length = this._buff.length, - i; - - for (i = 64; i <= length; i += 64) { - md5cycle(this._hash, md5blk(this._buff.substring(i - 64, i))); - } - - this._buff = this._buff.substring(i - 64); - - return this; - }; - - /** - * Finishes the incremental computation, reseting the internal state and - * returning the result. - * - * @param {Boolean} raw True to get the raw string, false to get the hex string - * - * @return {String} The result - */ - SparkMD5.prototype.end = function (raw) { - var buff = this._buff, - length = buff.length, - i, - tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], - ret; - - for (i = 0; i < length; i += 1) { - tail[i >> 2] |= buff.charCodeAt(i) << ((i % 4) << 3); - } - - this._finish(tail, length); - ret = hex(this._hash); - - if (raw) { - ret = hexToBinaryString(ret); - } - - this.reset(); - - return ret; - }; - - /** - * Resets the internal state of the computation. - * - * @return {SparkMD5} The instance itself - */ - SparkMD5.prototype.reset = function () { - this._buff = ''; - this._length = 0; - this._hash = [1732584193, -271733879, -1732584194, 271733878]; - - return this; - }; - - /** - * Gets the internal state of the computation. - * - * @return {Object} The state - */ - SparkMD5.prototype.getState = function () { - return { - buff: this._buff, - length: this._length, - hash: this._hash.slice() - }; - }; - - /** - * Gets the internal state of the computation. - * - * @param {Object} state The state - * - * @return {SparkMD5} The instance itself - */ - SparkMD5.prototype.setState = function (state) { - this._buff = state.buff; - this._length = state.length; - this._hash = state.hash; - - return this; - }; - - /** - * Releases memory used by the incremental buffer and other additional - * resources. If you plan to use the instance again, use reset instead. - */ - SparkMD5.prototype.destroy = function () { - delete this._hash; - delete this._buff; - delete this._length; - }; - - /** - * Finish the final calculation based on the tail. - * - * @param {Array} tail The tail (will be modified) - * @param {Number} length The length of the remaining buffer - */ - SparkMD5.prototype._finish = function (tail, length) { - var i = length, - tmp, - lo, - hi; - - tail[i >> 2] |= 0x80 << ((i % 4) << 3); - if (i > 55) { - md5cycle(this._hash, tail); - for (i = 0; i < 16; i += 1) { - tail[i] = 0; - } - } - - // Do the final computation based on the tail and length - // Beware that the final length may not fit in 32 bits so we take care of that - tmp = this._length * 8; - tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/); - lo = parseInt(tmp[2], 16); - hi = parseInt(tmp[1], 16) || 0; - - tail[14] = lo; - tail[15] = hi; - md5cycle(this._hash, tail); - }; - - /** - * Performs the md5 hash on a string. - * A conversion will be applied if utf8 string is detected. - * - * @param {String} str The string - * @param {Boolean} [raw] True to get the raw string, false to get the hex string - * - * @return {String} The result - */ - SparkMD5.hash = function (str, raw) { - // Converts the string to utf8 bytes if necessary - // Then compute it using the binary function - return SparkMD5.hashBinary(toUtf8(str), raw); - }; - - /** - * Performs the md5 hash on a binary string. - * - * @param {String} content The binary string - * @param {Boolean} [raw] True to get the raw string, false to get the hex string - * - * @return {String} The result - */ - SparkMD5.hashBinary = function (content, raw) { - var hash = md51(content), - ret = hex(hash); - - return raw ? hexToBinaryString(ret) : ret; - }; - - // --------------------------------------------------- - - /** - * SparkMD5 OOP implementation for array buffers. - * - * Use this class to perform an incremental md5 ONLY for array buffers. - */ - SparkMD5.ArrayBuffer = function () { - // call reset to init the instance - this.reset(); - }; - - /** - * Appends an array buffer. - * - * @param {ArrayBuffer} arr The array to be appended - * - * @return {SparkMD5.ArrayBuffer} The instance itself - */ - SparkMD5.ArrayBuffer.prototype.append = function (arr) { - var buff = concatenateArrayBuffers(this._buff.buffer, arr, true), - length = buff.length, - i; - - this._length += arr.byteLength; - - for (i = 64; i <= length; i += 64) { - md5cycle(this._hash, md5blk_array(buff.subarray(i - 64, i))); - } - - this._buff = (i - 64) < length ? new Uint8Array(buff.buffer.slice(i - 64)) : new Uint8Array(0); - - return this; - }; - - /** - * Finishes the incremental computation, reseting the internal state and - * returning the result. - * - * @param {Boolean} raw True to get the raw string, false to get the hex string - * - * @return {String} The result - */ - SparkMD5.ArrayBuffer.prototype.end = function (raw) { - var buff = this._buff, - length = buff.length, - tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], - i, - ret; - - for (i = 0; i < length; i += 1) { - tail[i >> 2] |= buff[i] << ((i % 4) << 3); - } - - this._finish(tail, length); - ret = hex(this._hash); - - if (raw) { - ret = hexToBinaryString(ret); - } - - this.reset(); - - return ret; - }; - - /** - * Resets the internal state of the computation. - * - * @return {SparkMD5.ArrayBuffer} The instance itself - */ - SparkMD5.ArrayBuffer.prototype.reset = function () { - this._buff = new Uint8Array(0); - this._length = 0; - this._hash = [1732584193, -271733879, -1732584194, 271733878]; - - return this; - }; - - /** - * Gets the internal state of the computation. - * - * @return {Object} The state - */ - SparkMD5.ArrayBuffer.prototype.getState = function () { - var state = SparkMD5.prototype.getState.call(this); - - // Convert buffer to a string - state.buff = arrayBuffer2Utf8Str(state.buff); - - return state; - }; - - /** - * Gets the internal state of the computation. - * - * @param {Object} state The state - * - * @return {SparkMD5.ArrayBuffer} The instance itself - */ - SparkMD5.ArrayBuffer.prototype.setState = function (state) { - // Convert string to buffer - state.buff = utf8Str2ArrayBuffer(state.buff, true); - - return SparkMD5.prototype.setState.call(this, state); - }; - - SparkMD5.ArrayBuffer.prototype.destroy = SparkMD5.prototype.destroy; - - SparkMD5.ArrayBuffer.prototype._finish = SparkMD5.prototype._finish; - - /** - * Performs the md5 hash on an array buffer. - * - * @param {ArrayBuffer} arr The array buffer - * @param {Boolean} [raw] True to get the raw string, false to get the hex one - * - * @return {String} The result - */ - SparkMD5.ArrayBuffer.hash = function (arr, raw) { - var hash = md51_array(new Uint8Array(arr)), - ret = hex(hash); - - return raw ? hexToBinaryString(ret) : ret; - }; - - return SparkMD5; -})); diff --git a/build_vtk_bundle/node_modules/spark-md5/spark-md5.min.js b/build_vtk_bundle/node_modules/spark-md5/spark-md5.min.js deleted file mode 100644 index 2ef527dd..00000000 --- a/build_vtk_bundle/node_modules/spark-md5/spark-md5.min.js +++ /dev/null @@ -1 +0,0 @@ -(function(factory){if(typeof exports==="object"){module.exports=factory()}else if(typeof define==="function"&&define.amd){define(factory)}else{var glob;try{glob=window}catch(e){glob=self}glob.SparkMD5=factory()}})(function(undefined){"use strict";var add32=function(a,b){return a+b&4294967295},hex_chr=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function cmn(q,a,b,x,s,t){a=add32(add32(a,q),add32(x,t));return add32(a<>>32-s,b)}function md5cycle(x,k){var a=x[0],b=x[1],c=x[2],d=x[3];a+=(b&c|~b&d)+k[0]-680876936|0;a=(a<<7|a>>>25)+b|0;d+=(a&b|~a&c)+k[1]-389564586|0;d=(d<<12|d>>>20)+a|0;c+=(d&a|~d&b)+k[2]+606105819|0;c=(c<<17|c>>>15)+d|0;b+=(c&d|~c&a)+k[3]-1044525330|0;b=(b<<22|b>>>10)+c|0;a+=(b&c|~b&d)+k[4]-176418897|0;a=(a<<7|a>>>25)+b|0;d+=(a&b|~a&c)+k[5]+1200080426|0;d=(d<<12|d>>>20)+a|0;c+=(d&a|~d&b)+k[6]-1473231341|0;c=(c<<17|c>>>15)+d|0;b+=(c&d|~c&a)+k[7]-45705983|0;b=(b<<22|b>>>10)+c|0;a+=(b&c|~b&d)+k[8]+1770035416|0;a=(a<<7|a>>>25)+b|0;d+=(a&b|~a&c)+k[9]-1958414417|0;d=(d<<12|d>>>20)+a|0;c+=(d&a|~d&b)+k[10]-42063|0;c=(c<<17|c>>>15)+d|0;b+=(c&d|~c&a)+k[11]-1990404162|0;b=(b<<22|b>>>10)+c|0;a+=(b&c|~b&d)+k[12]+1804603682|0;a=(a<<7|a>>>25)+b|0;d+=(a&b|~a&c)+k[13]-40341101|0;d=(d<<12|d>>>20)+a|0;c+=(d&a|~d&b)+k[14]-1502002290|0;c=(c<<17|c>>>15)+d|0;b+=(c&d|~c&a)+k[15]+1236535329|0;b=(b<<22|b>>>10)+c|0;a+=(b&d|c&~d)+k[1]-165796510|0;a=(a<<5|a>>>27)+b|0;d+=(a&c|b&~c)+k[6]-1069501632|0;d=(d<<9|d>>>23)+a|0;c+=(d&b|a&~b)+k[11]+643717713|0;c=(c<<14|c>>>18)+d|0;b+=(c&a|d&~a)+k[0]-373897302|0;b=(b<<20|b>>>12)+c|0;a+=(b&d|c&~d)+k[5]-701558691|0;a=(a<<5|a>>>27)+b|0;d+=(a&c|b&~c)+k[10]+38016083|0;d=(d<<9|d>>>23)+a|0;c+=(d&b|a&~b)+k[15]-660478335|0;c=(c<<14|c>>>18)+d|0;b+=(c&a|d&~a)+k[4]-405537848|0;b=(b<<20|b>>>12)+c|0;a+=(b&d|c&~d)+k[9]+568446438|0;a=(a<<5|a>>>27)+b|0;d+=(a&c|b&~c)+k[14]-1019803690|0;d=(d<<9|d>>>23)+a|0;c+=(d&b|a&~b)+k[3]-187363961|0;c=(c<<14|c>>>18)+d|0;b+=(c&a|d&~a)+k[8]+1163531501|0;b=(b<<20|b>>>12)+c|0;a+=(b&d|c&~d)+k[13]-1444681467|0;a=(a<<5|a>>>27)+b|0;d+=(a&c|b&~c)+k[2]-51403784|0;d=(d<<9|d>>>23)+a|0;c+=(d&b|a&~b)+k[7]+1735328473|0;c=(c<<14|c>>>18)+d|0;b+=(c&a|d&~a)+k[12]-1926607734|0;b=(b<<20|b>>>12)+c|0;a+=(b^c^d)+k[5]-378558|0;a=(a<<4|a>>>28)+b|0;d+=(a^b^c)+k[8]-2022574463|0;d=(d<<11|d>>>21)+a|0;c+=(d^a^b)+k[11]+1839030562|0;c=(c<<16|c>>>16)+d|0;b+=(c^d^a)+k[14]-35309556|0;b=(b<<23|b>>>9)+c|0;a+=(b^c^d)+k[1]-1530992060|0;a=(a<<4|a>>>28)+b|0;d+=(a^b^c)+k[4]+1272893353|0;d=(d<<11|d>>>21)+a|0;c+=(d^a^b)+k[7]-155497632|0;c=(c<<16|c>>>16)+d|0;b+=(c^d^a)+k[10]-1094730640|0;b=(b<<23|b>>>9)+c|0;a+=(b^c^d)+k[13]+681279174|0;a=(a<<4|a>>>28)+b|0;d+=(a^b^c)+k[0]-358537222|0;d=(d<<11|d>>>21)+a|0;c+=(d^a^b)+k[3]-722521979|0;c=(c<<16|c>>>16)+d|0;b+=(c^d^a)+k[6]+76029189|0;b=(b<<23|b>>>9)+c|0;a+=(b^c^d)+k[9]-640364487|0;a=(a<<4|a>>>28)+b|0;d+=(a^b^c)+k[12]-421815835|0;d=(d<<11|d>>>21)+a|0;c+=(d^a^b)+k[15]+530742520|0;c=(c<<16|c>>>16)+d|0;b+=(c^d^a)+k[2]-995338651|0;b=(b<<23|b>>>9)+c|0;a+=(c^(b|~d))+k[0]-198630844|0;a=(a<<6|a>>>26)+b|0;d+=(b^(a|~c))+k[7]+1126891415|0;d=(d<<10|d>>>22)+a|0;c+=(a^(d|~b))+k[14]-1416354905|0;c=(c<<15|c>>>17)+d|0;b+=(d^(c|~a))+k[5]-57434055|0;b=(b<<21|b>>>11)+c|0;a+=(c^(b|~d))+k[12]+1700485571|0;a=(a<<6|a>>>26)+b|0;d+=(b^(a|~c))+k[3]-1894986606|0;d=(d<<10|d>>>22)+a|0;c+=(a^(d|~b))+k[10]-1051523|0;c=(c<<15|c>>>17)+d|0;b+=(d^(c|~a))+k[1]-2054922799|0;b=(b<<21|b>>>11)+c|0;a+=(c^(b|~d))+k[8]+1873313359|0;a=(a<<6|a>>>26)+b|0;d+=(b^(a|~c))+k[15]-30611744|0;d=(d<<10|d>>>22)+a|0;c+=(a^(d|~b))+k[6]-1560198380|0;c=(c<<15|c>>>17)+d|0;b+=(d^(c|~a))+k[13]+1309151649|0;b=(b<<21|b>>>11)+c|0;a+=(c^(b|~d))+k[4]-145523070|0;a=(a<<6|a>>>26)+b|0;d+=(b^(a|~c))+k[11]-1120210379|0;d=(d<<10|d>>>22)+a|0;c+=(a^(d|~b))+k[2]+718787259|0;c=(c<<15|c>>>17)+d|0;b+=(d^(c|~a))+k[9]-343485551|0;b=(b<<21|b>>>11)+c|0;x[0]=a+x[0]|0;x[1]=b+x[1]|0;x[2]=c+x[2]|0;x[3]=d+x[3]|0}function md5blk(s){var md5blks=[],i;for(i=0;i<64;i+=4){md5blks[i>>2]=s.charCodeAt(i)+(s.charCodeAt(i+1)<<8)+(s.charCodeAt(i+2)<<16)+(s.charCodeAt(i+3)<<24)}return md5blks}function md5blk_array(a){var md5blks=[],i;for(i=0;i<64;i+=4){md5blks[i>>2]=a[i]+(a[i+1]<<8)+(a[i+2]<<16)+(a[i+3]<<24)}return md5blks}function md51(s){var n=s.length,state=[1732584193,-271733879,-1732584194,271733878],i,length,tail,tmp,lo,hi;for(i=64;i<=n;i+=64){md5cycle(state,md5blk(s.substring(i-64,i)))}s=s.substring(i-64);length=s.length;tail=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(i=0;i>2]|=s.charCodeAt(i)<<(i%4<<3)}tail[i>>2]|=128<<(i%4<<3);if(i>55){md5cycle(state,tail);for(i=0;i<16;i+=1){tail[i]=0}}tmp=n*8;tmp=tmp.toString(16).match(/(.*?)(.{0,8})$/);lo=parseInt(tmp[2],16);hi=parseInt(tmp[1],16)||0;tail[14]=lo;tail[15]=hi;md5cycle(state,tail);return state}function md51_array(a){var n=a.length,state=[1732584193,-271733879,-1732584194,271733878],i,length,tail,tmp,lo,hi;for(i=64;i<=n;i+=64){md5cycle(state,md5blk_array(a.subarray(i-64,i)))}a=i-64>2]|=a[i]<<(i%4<<3)}tail[i>>2]|=128<<(i%4<<3);if(i>55){md5cycle(state,tail);for(i=0;i<16;i+=1){tail[i]=0}}tmp=n*8;tmp=tmp.toString(16).match(/(.*?)(.{0,8})$/);lo=parseInt(tmp[2],16);hi=parseInt(tmp[1],16)||0;tail[14]=lo;tail[15]=hi;md5cycle(state,tail);return state}function rhex(n){var s="",j;for(j=0;j<4;j+=1){s+=hex_chr[n>>j*8+4&15]+hex_chr[n>>j*8&15]}return s}function hex(x){var i;for(i=0;i>16)+(y>>16)+(lsw>>16);return msw<<16|lsw&65535}}if(typeof ArrayBuffer!=="undefined"&&!ArrayBuffer.prototype.slice){(function(){function clamp(val,length){val=val|0||0;if(val<0){return Math.max(val+length,0)}return Math.min(val,length)}ArrayBuffer.prototype.slice=function(from,to){var length=this.byteLength,begin=clamp(from,length),end=length,num,target,targetArray,sourceArray;if(to!==undefined){end=clamp(to,length)}if(begin>end){return new ArrayBuffer(0)}num=end-begin;target=new ArrayBuffer(num);targetArray=new Uint8Array(target);sourceArray=new Uint8Array(this,begin,num);targetArray.set(sourceArray);return target}})()}function toUtf8(str){if(/[\u0080-\uFFFF]/.test(str)){str=unescape(encodeURIComponent(str))}return str}function utf8Str2ArrayBuffer(str,returnUInt8Array){var length=str.length,buff=new ArrayBuffer(length),arr=new Uint8Array(buff),i;for(i=0;i>2]|=buff.charCodeAt(i)<<(i%4<<3)}this._finish(tail,length);ret=hex(this._hash);if(raw){ret=hexToBinaryString(ret)}this.reset();return ret};SparkMD5.prototype.reset=function(){this._buff="";this._length=0;this._hash=[1732584193,-271733879,-1732584194,271733878];return this};SparkMD5.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}};SparkMD5.prototype.setState=function(state){this._buff=state.buff;this._length=state.length;this._hash=state.hash;return this};SparkMD5.prototype.destroy=function(){delete this._hash;delete this._buff;delete this._length};SparkMD5.prototype._finish=function(tail,length){var i=length,tmp,lo,hi;tail[i>>2]|=128<<(i%4<<3);if(i>55){md5cycle(this._hash,tail);for(i=0;i<16;i+=1){tail[i]=0}}tmp=this._length*8;tmp=tmp.toString(16).match(/(.*?)(.{0,8})$/);lo=parseInt(tmp[2],16);hi=parseInt(tmp[1],16)||0;tail[14]=lo;tail[15]=hi;md5cycle(this._hash,tail)};SparkMD5.hash=function(str,raw){return SparkMD5.hashBinary(toUtf8(str),raw)};SparkMD5.hashBinary=function(content,raw){var hash=md51(content),ret=hex(hash);return raw?hexToBinaryString(ret):ret};SparkMD5.ArrayBuffer=function(){this.reset()};SparkMD5.ArrayBuffer.prototype.append=function(arr){var buff=concatenateArrayBuffers(this._buff.buffer,arr,true),length=buff.length,i;this._length+=arr.byteLength;for(i=64;i<=length;i+=64){md5cycle(this._hash,md5blk_array(buff.subarray(i-64,i)))}this._buff=i-64>2]|=buff[i]<<(i%4<<3)}this._finish(tail,length);ret=hex(this._hash);if(raw){ret=hexToBinaryString(ret)}this.reset();return ret};SparkMD5.ArrayBuffer.prototype.reset=function(){this._buff=new Uint8Array(0);this._length=0;this._hash=[1732584193,-271733879,-1732584194,271733878];return this};SparkMD5.ArrayBuffer.prototype.getState=function(){var state=SparkMD5.prototype.getState.call(this);state.buff=arrayBuffer2Utf8Str(state.buff);return state};SparkMD5.ArrayBuffer.prototype.setState=function(state){state.buff=utf8Str2ArrayBuffer(state.buff,true);return SparkMD5.prototype.setState.call(this,state)};SparkMD5.ArrayBuffer.prototype.destroy=SparkMD5.prototype.destroy;SparkMD5.ArrayBuffer.prototype._finish=SparkMD5.prototype._finish;SparkMD5.ArrayBuffer.hash=function(arr,raw){var hash=md51_array(new Uint8Array(arr)),ret=hex(hash);return raw?hexToBinaryString(ret):ret};return SparkMD5}); diff --git a/build_vtk_bundle/node_modules/sprintf-js/.npmignore b/build_vtk_bundle/node_modules/sprintf-js/.npmignore deleted file mode 100644 index 096746c1..00000000 --- a/build_vtk_bundle/node_modules/sprintf-js/.npmignore +++ /dev/null @@ -1 +0,0 @@ -/node_modules/ \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/sprintf-js/LICENSE b/build_vtk_bundle/node_modules/sprintf-js/LICENSE deleted file mode 100644 index 663ac52e..00000000 --- a/build_vtk_bundle/node_modules/sprintf-js/LICENSE +++ /dev/null @@ -1,24 +0,0 @@ -Copyright (c) 2007-2014, Alexandru Marasteanu -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: -* Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -* Neither the name of this software nor the names of its contributors may be - used to endorse or promote products derived from this software without - specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/build_vtk_bundle/node_modules/sprintf-js/README.md b/build_vtk_bundle/node_modules/sprintf-js/README.md deleted file mode 100644 index 83863561..00000000 --- a/build_vtk_bundle/node_modules/sprintf-js/README.md +++ /dev/null @@ -1,88 +0,0 @@ -# sprintf.js -**sprintf.js** is a complete open source JavaScript sprintf implementation for the *browser* and *node.js*. - -Its prototype is simple: - - string sprintf(string format , [mixed arg1 [, mixed arg2 [ ,...]]]) - -The placeholders in the format string are marked by `%` and are followed by one or more of these elements, in this order: - -* An optional number followed by a `$` sign that selects which argument index to use for the value. If not specified, arguments will be placed in the same order as the placeholders in the input string. -* An optional `+` sign that forces to preceed the result with a plus or minus sign on numeric values. By default, only the `-` sign is used on negative numbers. -* An optional padding specifier that says what character to use for padding (if specified). Possible values are `0` or any other character precedeed by a `'` (single quote). The default is to pad with *spaces*. -* An optional `-` sign, that causes sprintf to left-align the result of this placeholder. The default is to right-align the result. -* An optional number, that says how many characters the result should have. If the value to be returned is shorter than this number, the result will be padded. When used with the `j` (JSON) type specifier, the padding length specifies the tab size used for indentation. -* An optional precision modifier, consisting of a `.` (dot) followed by a number, that says how many digits should be displayed for floating point numbers. When used with the `g` type specifier, it specifies the number of significant digits. When used on a string, it causes the result to be truncated. -* A type specifier that can be any of: - * `%` — yields a literal `%` character - * `b` — yields an integer as a binary number - * `c` — yields an integer as the character with that ASCII value - * `d` or `i` — yields an integer as a signed decimal number - * `e` — yields a float using scientific notation - * `u` — yields an integer as an unsigned decimal number - * `f` — yields a float as is; see notes on precision above - * `g` — yields a float as is; see notes on precision above - * `o` — yields an integer as an octal number - * `s` — yields a string as is - * `x` — yields an integer as a hexadecimal number (lower-case) - * `X` — yields an integer as a hexadecimal number (upper-case) - * `j` — yields a JavaScript object or array as a JSON encoded string - -## JavaScript `vsprintf` -`vsprintf` is the same as `sprintf` except that it accepts an array of arguments, rather than a variable number of arguments: - - vsprintf("The first 4 letters of the english alphabet are: %s, %s, %s and %s", ["a", "b", "c", "d"]) - -## Argument swapping -You can also swap the arguments. That is, the order of the placeholders doesn't have to match the order of the arguments. You can do that by simply indicating in the format string which arguments the placeholders refer to: - - sprintf("%2$s %3$s a %1$s", "cracker", "Polly", "wants") -And, of course, you can repeat the placeholders without having to increase the number of arguments. - -## Named arguments -Format strings may contain replacement fields rather than positional placeholders. Instead of referring to a certain argument, you can now refer to a certain key within an object. Replacement fields are surrounded by rounded parentheses - `(` and `)` - and begin with a keyword that refers to a key: - - var user = { - name: "Dolly" - } - sprintf("Hello %(name)s", user) // Hello Dolly -Keywords in replacement fields can be optionally followed by any number of keywords or indexes: - - var users = [ - {name: "Dolly"}, - {name: "Molly"}, - {name: "Polly"} - ] - sprintf("Hello %(users[0].name)s, %(users[1].name)s and %(users[2].name)s", {users: users}) // Hello Dolly, Molly and Polly -Note: mixing positional and named placeholders is not (yet) supported - -## Computed values -You can pass in a function as a dynamic value and it will be invoked (with no arguments) in order to compute the value on-the-fly. - - sprintf("Current timestamp: %d", Date.now) // Current timestamp: 1398005382890 - sprintf("Current date and time: %s", function() { return new Date().toString() }) - -# AngularJS -You can now use `sprintf` and `vsprintf` (also aliased as `fmt` and `vfmt` respectively) in your AngularJS projects. See `demo/`. - -# Installation - -## Via Bower - - bower install sprintf - -## Or as a node.js module - - npm install sprintf-js - -### Usage - - var sprintf = require("sprintf-js").sprintf, - vsprintf = require("sprintf-js").vsprintf - - sprintf("%2$s %3$s a %1$s", "cracker", "Polly", "wants") - vsprintf("The first 4 letters of the english alphabet are: %s, %s, %s and %s", ["a", "b", "c", "d"]) - -# License - -**sprintf.js** is licensed under the terms of the 3-clause BSD license. diff --git a/build_vtk_bundle/node_modules/sprintf-js/bower.json b/build_vtk_bundle/node_modules/sprintf-js/bower.json deleted file mode 100644 index d90a7598..00000000 --- a/build_vtk_bundle/node_modules/sprintf-js/bower.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name": "sprintf", - "description": "JavaScript sprintf implementation", - "version": "1.0.3", - "main": "src/sprintf.js", - "license": "BSD-3-Clause-Clear", - "keywords": ["sprintf", "string", "formatting"], - "authors": ["Alexandru Marasteanu (http://alexei.ro/)"], - "homepage": "https://github.com/alexei/sprintf.js", - "repository": { - "type": "git", - "url": "git://github.com/alexei/sprintf.js.git" - } -} diff --git a/build_vtk_bundle/node_modules/sprintf-js/demo/angular.html b/build_vtk_bundle/node_modules/sprintf-js/demo/angular.html deleted file mode 100644 index 3559efd7..00000000 --- a/build_vtk_bundle/node_modules/sprintf-js/demo/angular.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - -
{{ "%+010d"|sprintf:-123 }}
-
{{ "%+010d"|vsprintf:[-123] }}
-
{{ "%+010d"|fmt:-123 }}
-
{{ "%+010d"|vfmt:[-123] }}
-
{{ "I've got %2$d apples and %1$d oranges."|fmt:4:2 }}
-
{{ "I've got %(apples)d apples and %(oranges)d oranges."|fmt:{apples: 2, oranges: 4} }}
- - - - diff --git a/build_vtk_bundle/node_modules/sprintf-js/gruntfile.js b/build_vtk_bundle/node_modules/sprintf-js/gruntfile.js deleted file mode 100644 index 246e1c3b..00000000 --- a/build_vtk_bundle/node_modules/sprintf-js/gruntfile.js +++ /dev/null @@ -1,36 +0,0 @@ -module.exports = function(grunt) { - grunt.initConfig({ - pkg: grunt.file.readJSON("package.json"), - - uglify: { - options: { - banner: "/*! <%= pkg.name %> | <%= pkg.author %> | <%= pkg.license %> */\n", - sourceMap: true - }, - build: { - files: [ - { - src: "src/sprintf.js", - dest: "dist/sprintf.min.js" - }, - { - src: "src/angular-sprintf.js", - dest: "dist/angular-sprintf.min.js" - } - ] - } - }, - - watch: { - js: { - files: "src/*.js", - tasks: ["uglify"] - } - } - }) - - grunt.loadNpmTasks("grunt-contrib-uglify") - grunt.loadNpmTasks("grunt-contrib-watch") - - grunt.registerTask("default", ["uglify", "watch"]) -} diff --git a/build_vtk_bundle/node_modules/sprintf-js/package.json b/build_vtk_bundle/node_modules/sprintf-js/package.json deleted file mode 100644 index 75f7eca7..00000000 --- a/build_vtk_bundle/node_modules/sprintf-js/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "sprintf-js", - "version": "1.0.3", - "description": "JavaScript sprintf implementation", - "author": "Alexandru Marasteanu (http://alexei.ro/)", - "main": "src/sprintf.js", - "scripts": { - "test": "mocha test/test.js" - }, - "repository": { - "type": "git", - "url": "https://github.com/alexei/sprintf.js.git" - }, - "license": "BSD-3-Clause", - "readmeFilename": "README.md", - "devDependencies": { - "mocha": "*", - "grunt": "*", - "grunt-contrib-watch": "*", - "grunt-contrib-uglify": "*" - } -} diff --git a/build_vtk_bundle/node_modules/sprintf-js/src/angular-sprintf.js b/build_vtk_bundle/node_modules/sprintf-js/src/angular-sprintf.js deleted file mode 100644 index 9c69123b..00000000 --- a/build_vtk_bundle/node_modules/sprintf-js/src/angular-sprintf.js +++ /dev/null @@ -1,18 +0,0 @@ -angular. - module("sprintf", []). - filter("sprintf", function() { - return function() { - return sprintf.apply(null, arguments) - } - }). - filter("fmt", ["$filter", function($filter) { - return $filter("sprintf") - }]). - filter("vsprintf", function() { - return function(format, argv) { - return vsprintf(format, argv) - } - }). - filter("vfmt", ["$filter", function($filter) { - return $filter("vsprintf") - }]) diff --git a/build_vtk_bundle/node_modules/sprintf-js/src/sprintf.js b/build_vtk_bundle/node_modules/sprintf-js/src/sprintf.js deleted file mode 100644 index c0fc7c08..00000000 --- a/build_vtk_bundle/node_modules/sprintf-js/src/sprintf.js +++ /dev/null @@ -1,208 +0,0 @@ -(function(window) { - var re = { - not_string: /[^s]/, - number: /[diefg]/, - json: /[j]/, - not_json: /[^j]/, - text: /^[^\x25]+/, - modulo: /^\x25{2}/, - placeholder: /^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijosuxX])/, - key: /^([a-z_][a-z_\d]*)/i, - key_access: /^\.([a-z_][a-z_\d]*)/i, - index_access: /^\[(\d+)\]/, - sign: /^[\+\-]/ - } - - function sprintf() { - var key = arguments[0], cache = sprintf.cache - if (!(cache[key] && cache.hasOwnProperty(key))) { - cache[key] = sprintf.parse(key) - } - return sprintf.format.call(null, cache[key], arguments) - } - - sprintf.format = function(parse_tree, argv) { - var cursor = 1, tree_length = parse_tree.length, node_type = "", arg, output = [], i, k, match, pad, pad_character, pad_length, is_positive = true, sign = "" - for (i = 0; i < tree_length; i++) { - node_type = get_type(parse_tree[i]) - if (node_type === "string") { - output[output.length] = parse_tree[i] - } - else if (node_type === "array") { - match = parse_tree[i] // convenience purposes only - if (match[2]) { // keyword argument - arg = argv[cursor] - for (k = 0; k < match[2].length; k++) { - if (!arg.hasOwnProperty(match[2][k])) { - throw new Error(sprintf("[sprintf] property '%s' does not exist", match[2][k])) - } - arg = arg[match[2][k]] - } - } - else if (match[1]) { // positional argument (explicit) - arg = argv[match[1]] - } - else { // positional argument (implicit) - arg = argv[cursor++] - } - - if (get_type(arg) == "function") { - arg = arg() - } - - if (re.not_string.test(match[8]) && re.not_json.test(match[8]) && (get_type(arg) != "number" && isNaN(arg))) { - throw new TypeError(sprintf("[sprintf] expecting number but found %s", get_type(arg))) - } - - if (re.number.test(match[8])) { - is_positive = arg >= 0 - } - - switch (match[8]) { - case "b": - arg = arg.toString(2) - break - case "c": - arg = String.fromCharCode(arg) - break - case "d": - case "i": - arg = parseInt(arg, 10) - break - case "j": - arg = JSON.stringify(arg, null, match[6] ? parseInt(match[6]) : 0) - break - case "e": - arg = match[7] ? arg.toExponential(match[7]) : arg.toExponential() - break - case "f": - arg = match[7] ? parseFloat(arg).toFixed(match[7]) : parseFloat(arg) - break - case "g": - arg = match[7] ? parseFloat(arg).toPrecision(match[7]) : parseFloat(arg) - break - case "o": - arg = arg.toString(8) - break - case "s": - arg = ((arg = String(arg)) && match[7] ? arg.substring(0, match[7]) : arg) - break - case "u": - arg = arg >>> 0 - break - case "x": - arg = arg.toString(16) - break - case "X": - arg = arg.toString(16).toUpperCase() - break - } - if (re.json.test(match[8])) { - output[output.length] = arg - } - else { - if (re.number.test(match[8]) && (!is_positive || match[3])) { - sign = is_positive ? "+" : "-" - arg = arg.toString().replace(re.sign, "") - } - else { - sign = "" - } - pad_character = match[4] ? match[4] === "0" ? "0" : match[4].charAt(1) : " " - pad_length = match[6] - (sign + arg).length - pad = match[6] ? (pad_length > 0 ? str_repeat(pad_character, pad_length) : "") : "" - output[output.length] = match[5] ? sign + arg + pad : (pad_character === "0" ? sign + pad + arg : pad + sign + arg) - } - } - } - return output.join("") - } - - sprintf.cache = {} - - sprintf.parse = function(fmt) { - var _fmt = fmt, match = [], parse_tree = [], arg_names = 0 - while (_fmt) { - if ((match = re.text.exec(_fmt)) !== null) { - parse_tree[parse_tree.length] = match[0] - } - else if ((match = re.modulo.exec(_fmt)) !== null) { - parse_tree[parse_tree.length] = "%" - } - else if ((match = re.placeholder.exec(_fmt)) !== null) { - if (match[2]) { - arg_names |= 1 - var field_list = [], replacement_field = match[2], field_match = [] - if ((field_match = re.key.exec(replacement_field)) !== null) { - field_list[field_list.length] = field_match[1] - while ((replacement_field = replacement_field.substring(field_match[0].length)) !== "") { - if ((field_match = re.key_access.exec(replacement_field)) !== null) { - field_list[field_list.length] = field_match[1] - } - else if ((field_match = re.index_access.exec(replacement_field)) !== null) { - field_list[field_list.length] = field_match[1] - } - else { - throw new SyntaxError("[sprintf] failed to parse named argument key") - } - } - } - else { - throw new SyntaxError("[sprintf] failed to parse named argument key") - } - match[2] = field_list - } - else { - arg_names |= 2 - } - if (arg_names === 3) { - throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported") - } - parse_tree[parse_tree.length] = match - } - else { - throw new SyntaxError("[sprintf] unexpected placeholder") - } - _fmt = _fmt.substring(match[0].length) - } - return parse_tree - } - - var vsprintf = function(fmt, argv, _argv) { - _argv = (argv || []).slice(0) - _argv.splice(0, 0, fmt) - return sprintf.apply(null, _argv) - } - - /** - * helpers - */ - function get_type(variable) { - return Object.prototype.toString.call(variable).slice(8, -1).toLowerCase() - } - - function str_repeat(input, multiplier) { - return Array(multiplier + 1).join(input) - } - - /** - * export to either browser or node.js - */ - if (typeof exports !== "undefined") { - exports.sprintf = sprintf - exports.vsprintf = vsprintf - } - else { - window.sprintf = sprintf - window.vsprintf = vsprintf - - if (typeof define === "function" && define.amd) { - define(function() { - return { - sprintf: sprintf, - vsprintf: vsprintf - } - }) - } - } -})(typeof window === "undefined" ? this : window); diff --git a/build_vtk_bundle/node_modules/sprintf-js/test/test.js b/build_vtk_bundle/node_modules/sprintf-js/test/test.js deleted file mode 100644 index 6f57b253..00000000 --- a/build_vtk_bundle/node_modules/sprintf-js/test/test.js +++ /dev/null @@ -1,82 +0,0 @@ -var assert = require("assert"), - sprintfjs = require("../src/sprintf.js"), - sprintf = sprintfjs.sprintf, - vsprintf = sprintfjs.vsprintf - -describe("sprintfjs", function() { - var pi = 3.141592653589793 - - it("should return formated strings for simple placeholders", function() { - assert.equal("%", sprintf("%%")) - assert.equal("10", sprintf("%b", 2)) - assert.equal("A", sprintf("%c", 65)) - assert.equal("2", sprintf("%d", 2)) - assert.equal("2", sprintf("%i", 2)) - assert.equal("2", sprintf("%d", "2")) - assert.equal("2", sprintf("%i", "2")) - assert.equal('{"foo":"bar"}', sprintf("%j", {foo: "bar"})) - assert.equal('["foo","bar"]', sprintf("%j", ["foo", "bar"])) - assert.equal("2e+0", sprintf("%e", 2)) - assert.equal("2", sprintf("%u", 2)) - assert.equal("4294967294", sprintf("%u", -2)) - assert.equal("2.2", sprintf("%f", 2.2)) - assert.equal("3.141592653589793", sprintf("%g", pi)) - assert.equal("10", sprintf("%o", 8)) - assert.equal("%s", sprintf("%s", "%s")) - assert.equal("ff", sprintf("%x", 255)) - assert.equal("FF", sprintf("%X", 255)) - assert.equal("Polly wants a cracker", sprintf("%2$s %3$s a %1$s", "cracker", "Polly", "wants")) - assert.equal("Hello world!", sprintf("Hello %(who)s!", {"who": "world"})) - }) - - it("should return formated strings for complex placeholders", function() { - // sign - assert.equal("2", sprintf("%d", 2)) - assert.equal("-2", sprintf("%d", -2)) - assert.equal("+2", sprintf("%+d", 2)) - assert.equal("-2", sprintf("%+d", -2)) - assert.equal("2", sprintf("%i", 2)) - assert.equal("-2", sprintf("%i", -2)) - assert.equal("+2", sprintf("%+i", 2)) - assert.equal("-2", sprintf("%+i", -2)) - assert.equal("2.2", sprintf("%f", 2.2)) - assert.equal("-2.2", sprintf("%f", -2.2)) - assert.equal("+2.2", sprintf("%+f", 2.2)) - assert.equal("-2.2", sprintf("%+f", -2.2)) - assert.equal("-2.3", sprintf("%+.1f", -2.34)) - assert.equal("-0.0", sprintf("%+.1f", -0.01)) - assert.equal("3.14159", sprintf("%.6g", pi)) - assert.equal("3.14", sprintf("%.3g", pi)) - assert.equal("3", sprintf("%.1g", pi)) - assert.equal("-000000123", sprintf("%+010d", -123)) - assert.equal("______-123", sprintf("%+'_10d", -123)) - assert.equal("-234.34 123.2", sprintf("%f %f", -234.34, 123.2)) - - // padding - assert.equal("-0002", sprintf("%05d", -2)) - assert.equal("-0002", sprintf("%05i", -2)) - assert.equal(" <", sprintf("%5s", "<")) - assert.equal("0000<", sprintf("%05s", "<")) - assert.equal("____<", sprintf("%'_5s", "<")) - assert.equal("> ", sprintf("%-5s", ">")) - assert.equal(">0000", sprintf("%0-5s", ">")) - assert.equal(">____", sprintf("%'_-5s", ">")) - assert.equal("xxxxxx", sprintf("%5s", "xxxxxx")) - assert.equal("1234", sprintf("%02u", 1234)) - assert.equal(" -10.235", sprintf("%8.3f", -10.23456)) - assert.equal("-12.34 xxx", sprintf("%f %s", -12.34, "xxx")) - assert.equal('{\n "foo": "bar"\n}', sprintf("%2j", {foo: "bar"})) - assert.equal('[\n "foo",\n "bar"\n]', sprintf("%2j", ["foo", "bar"])) - - // precision - assert.equal("2.3", sprintf("%.1f", 2.345)) - assert.equal("xxxxx", sprintf("%5.5s", "xxxxxx")) - assert.equal(" x", sprintf("%5.1s", "xxxxxx")) - - }) - - it("should return formated strings for callbacks", function() { - assert.equal("foobar", sprintf("%s", function() { return "foobar" })) - assert.equal(Date.now(), sprintf("%s", Date.now)) // should pass... - }) -}) diff --git a/build_vtk_bundle/node_modules/stream-browserify/.airtap.yml b/build_vtk_bundle/node_modules/stream-browserify/.airtap.yml deleted file mode 100644 index 26195939..00000000 --- a/build_vtk_bundle/node_modules/stream-browserify/.airtap.yml +++ /dev/null @@ -1,20 +0,0 @@ -sauce_connect: true -loopback: airtap.local -browsers: - - name: chrome - version: latest - - name: firefox - # extended support releases 52, 60, 68 - version: [52, 60, 68, latest] - - name: safari - version: 9..latest - - name: iphone - version: latest - - name: ie - version: 9..latest - - name: microsoftedge - version: 13..latest -browserify: - - plugin: ./test/use-stream.js - - require: tape - expose: tape diff --git a/build_vtk_bundle/node_modules/stream-browserify/.github/FUNDING.yml b/build_vtk_bundle/node_modules/stream-browserify/.github/FUNDING.yml deleted file mode 100644 index 1c5a6e90..00000000 --- a/build_vtk_bundle/node_modules/stream-browserify/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: npm/stream-browserify -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/build_vtk_bundle/node_modules/stream-browserify/.travis.yml b/build_vtk_bundle/node_modules/stream-browserify/.travis.yml deleted file mode 100644 index 0153d926..00000000 --- a/build_vtk_bundle/node_modules/stream-browserify/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -os: linux -dist: bionic -language: node_js -jobs: - include: - - name: Run browser tests with airtap - node_js: stable - script: npm run test:browsers - addons: - sauce_connect: true - hosts: - - airtap.local - - name: Test on stable Node.js - node_js: stable - - name: Test on Node.js 12.x - node_js: 12 - - name: Test on Node.js 10.x - node_js: 10 - - name: Test on Node.js 8.x - node_js: 8 - - name: Test on Node.js 6.x - node_js: 6 - - name: Test on Node.js 4.x - node_js: 4 diff --git a/build_vtk_bundle/node_modules/stream-browserify/CHANGELOG.md b/build_vtk_bundle/node_modules/stream-browserify/CHANGELOG.md deleted file mode 100644 index 2a21e5bf..00000000 --- a/build_vtk_bundle/node_modules/stream-browserify/CHANGELOG.md +++ /dev/null @@ -1,8 +0,0 @@ -# stream-browserify change log - -All notable changes to this project will be documented in this file. - -This project adheres to [Semantic Versioning](http://semver.org/). - -## 3.0.0 -* Upgrade to `readable-stream` 3. For breaking changes, see the [readable-stream notes](https://github.com/nodejs/readable-stream#version-3xx). diff --git a/build_vtk_bundle/node_modules/stream-browserify/LICENSE b/build_vtk_bundle/node_modules/stream-browserify/LICENSE deleted file mode 100644 index 3e7d0c01..00000000 --- a/build_vtk_bundle/node_modules/stream-browserify/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -MIT License - -Copyright (c) James Halliday - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/stream-browserify/index.js b/build_vtk_bundle/node_modules/stream-browserify/index.js deleted file mode 100644 index 9ddc30d8..00000000 --- a/build_vtk_bundle/node_modules/stream-browserify/index.js +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -module.exports = Stream; - -var EE = require('events').EventEmitter; -var inherits = require('inherits'); - -inherits(Stream, EE); -Stream.Readable = require('readable-stream/lib/_stream_readable.js'); -Stream.Writable = require('readable-stream/lib/_stream_writable.js'); -Stream.Duplex = require('readable-stream/lib/_stream_duplex.js'); -Stream.Transform = require('readable-stream/lib/_stream_transform.js'); -Stream.PassThrough = require('readable-stream/lib/_stream_passthrough.js'); -Stream.finished = require('readable-stream/lib/internal/streams/end-of-stream.js') -Stream.pipeline = require('readable-stream/lib/internal/streams/pipeline.js') - -// Backwards-compat with node 0.4.x -Stream.Stream = Stream; - - - -// old-style streams. Note that the pipe method (the only relevant -// part of this class) is overridden in the Readable class. - -function Stream() { - EE.call(this); -} - -Stream.prototype.pipe = function(dest, options) { - var source = this; - - function ondata(chunk) { - if (dest.writable) { - if (false === dest.write(chunk) && source.pause) { - source.pause(); - } - } - } - - source.on('data', ondata); - - function ondrain() { - if (source.readable && source.resume) { - source.resume(); - } - } - - dest.on('drain', ondrain); - - // If the 'end' option is not supplied, dest.end() will be called when - // source gets the 'end' or 'close' events. Only dest.end() once. - if (!dest._isStdio && (!options || options.end !== false)) { - source.on('end', onend); - source.on('close', onclose); - } - - var didOnEnd = false; - function onend() { - if (didOnEnd) return; - didOnEnd = true; - - dest.end(); - } - - - function onclose() { - if (didOnEnd) return; - didOnEnd = true; - - if (typeof dest.destroy === 'function') dest.destroy(); - } - - // don't leave dangling pipes when there are errors. - function onerror(er) { - cleanup(); - if (EE.listenerCount(this, 'error') === 0) { - throw er; // Unhandled stream error in pipe. - } - } - - source.on('error', onerror); - dest.on('error', onerror); - - // remove all the event listeners that were added. - function cleanup() { - source.removeListener('data', ondata); - dest.removeListener('drain', ondrain); - - source.removeListener('end', onend); - source.removeListener('close', onclose); - - source.removeListener('error', onerror); - dest.removeListener('error', onerror); - - source.removeListener('end', cleanup); - source.removeListener('close', cleanup); - - dest.removeListener('close', cleanup); - } - - source.on('end', cleanup); - source.on('close', cleanup); - - dest.on('close', cleanup); - - dest.emit('pipe', source); - - // Allow for unix-like usage: A.pipe(B).pipe(C) - return dest; -}; diff --git a/build_vtk_bundle/node_modules/stream-browserify/package.json b/build_vtk_bundle/node_modules/stream-browserify/package.json deleted file mode 100644 index 0ba5a5d5..00000000 --- a/build_vtk_bundle/node_modules/stream-browserify/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "stream-browserify", - "version": "3.0.0", - "description": "the stream module from node core for browsers", - "main": "index.js", - "dependencies": { - "inherits": "~2.0.4", - "readable-stream": "^3.5.0" - }, - "devDependencies": { - "airtap": "^1.0.2", - "safe-buffer": "^5.1.2", - "tape": "^4.13.0", - "through": "^2.3.8" - }, - "scripts": { - "test": "node test", - "test:browsers": "airtap -- test/index.js" - }, - "repository": { - "type": "git", - "url": "git://github.com/browserify/stream-browserify.git" - }, - "homepage": "https://github.com/browserify/stream-browserify", - "keywords": [ - "stream", - "browser", - "browserify" - ], - "author": { - "name": "James Halliday", - "email": "mail@substack.net", - "url": "http://substack.net" - }, - "license": "MIT", - "testling": { - "files": "test/*.js", - "browsers": [ - "ie/8..latest", - "firefox/3.5", - "firefox/10", - "firefox/nightly", - "chrome/10", - "chrome/latest", - "chrome/canary", - "opera/12..latest", - "opera/next", - "safari/5.1..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2..latest" - ] - } -} diff --git a/build_vtk_bundle/node_modules/stream-browserify/readme.markdown b/build_vtk_bundle/node_modules/stream-browserify/readme.markdown deleted file mode 100644 index 16eb8ddc..00000000 --- a/build_vtk_bundle/node_modules/stream-browserify/readme.markdown +++ /dev/null @@ -1,32 +0,0 @@ -# stream-browserify - -the stream module from node core, for browsers! - -This module uses [`readable-stream`](https://github.com/nodejs/readable-stream), with additions for compatibility with npm packages that use old Node.js stream APIs. - -[![build status](https://secure.travis-ci.org/browserify/stream-browserify.svg?branch=master)](http://travis-ci.org/browserify/stream-browserify) - -## Install - -You usually do not have to install `stream-browserify` yourself! If your code runs in Node.js, `stream` is built in, or `readable-stream` can be used. If your code runs in the browser, bundlers like [browserify](https://github.com/browserify/browserify) also include the `stream-browserify` module. - -But if none of those apply, with [npm](https://npmjs.org) do: - -```bash -npm install stream-browserify -``` - -## API - -Consult the node core -[documentation on streams](http://nodejs.org/docs/latest/api/stream.html). - -## Browser Support - -Cross-browser testing generously provided by [Sauce Labs](https://saucelabs.com). - -[![Sauce Test Status](https://saucelabs.com/browser-matrix/stream-browserify.svg)](https://saucelabs.com/u/stream-browserify) - -## License - -[MIT](./LICENSE) diff --git a/build_vtk_bundle/node_modules/stream-browserify/security.md b/build_vtk_bundle/node_modules/stream-browserify/security.md deleted file mode 100644 index a14ace6a..00000000 --- a/build_vtk_bundle/node_modules/stream-browserify/security.md +++ /dev/null @@ -1,10 +0,0 @@ -# Security Policy - -## Supported Versions -Only the latest major version is supported at any given time. - -## Reporting a Vulnerability - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. diff --git a/build_vtk_bundle/node_modules/stream-browserify/test/buf.js b/build_vtk_bundle/node_modules/stream-browserify/test/buf.js deleted file mode 100644 index ade09b23..00000000 --- a/build_vtk_bundle/node_modules/stream-browserify/test/buf.js +++ /dev/null @@ -1,33 +0,0 @@ -var path = require('path'); -var test = require('tape'); -var Buffer = require('safe-buffer').Buffer; - -var Writable = require('..').Writable; -var inherits = require('inherits'); - -inherits(TestWritable, Writable); - -function TestWritable(opt) { - if (!(this instanceof TestWritable)) - return new TestWritable(opt); - Writable.call(this, opt); - this._written = []; -} - -TestWritable.prototype._write = function(chunk, encoding, cb) { - this._written.push(chunk); - cb(); -}; - -var buf = Buffer.from([ 88 ]); - -test('.writable writing ArrayBuffer', function(t) { - var writable = new TestWritable(); - - writable.write(buf); - writable.end(); - - t.equal(writable._written.length, 1); - t.equal(writable._written[0].toString(), 'X') - t.end() -}); diff --git a/build_vtk_bundle/node_modules/stream-browserify/test/index.js b/build_vtk_bundle/node_modules/stream-browserify/test/index.js deleted file mode 100644 index c85f6117..00000000 --- a/build_vtk_bundle/node_modules/stream-browserify/test/index.js +++ /dev/null @@ -1,2 +0,0 @@ -require('./buf'); -require('./pipeline'); diff --git a/build_vtk_bundle/node_modules/stream-browserify/test/pipeline.js b/build_vtk_bundle/node_modules/stream-browserify/test/pipeline.js deleted file mode 100644 index a66f4f2c..00000000 --- a/build_vtk_bundle/node_modules/stream-browserify/test/pipeline.js +++ /dev/null @@ -1,38 +0,0 @@ -var test = require('tape'); -var pipeline = require('..').pipeline; -var stream = require('..'); -var Buffer = require('safe-buffer').Buffer; - -test('supports pipeline', function(t) { - t.plan(4); - var readable = new stream.Readable({ - read: function () { - this.push(Buffer.from('chunk', 'ascii')); - } - }); - var transform1 = new stream.Transform({ - transform: function (chunk, enc, cb) { - cb(new Error('fail')); - } - }); - var transform2 = new stream.PassThrough(); - transform2.on('close', function () { - t.pass('transform2.close called'); - }); - var writable = new stream.Writable({ - write: function (chunk, enc, cb) { cb(); } - }); - writable.on('close', function () { - t.pass('writable.close called'); - }); - - pipeline( - readable, - transform1, - transform2, - writable, - function(err) { - t.ok(err); - t.equal(err.message, 'fail'); - }); -}); diff --git a/build_vtk_bundle/node_modules/stream-browserify/test/use-stream.js b/build_vtk_bundle/node_modules/stream-browserify/test/use-stream.js deleted file mode 100644 index 263c5b2f..00000000 --- a/build_vtk_bundle/node_modules/stream-browserify/test/use-stream.js +++ /dev/null @@ -1,4 +0,0 @@ -// browserify plugin to swap out the `stream` builtin node shim with the stream-browserify version in this repo. -module.exports = function (b) { - b._mdeps.options.modules.stream = require.resolve('../index.js'); -}; diff --git a/build_vtk_bundle/node_modules/string_decoder/LICENSE b/build_vtk_bundle/node_modules/string_decoder/LICENSE deleted file mode 100644 index 778edb20..00000000 --- a/build_vtk_bundle/node_modules/string_decoder/LICENSE +++ /dev/null @@ -1,48 +0,0 @@ -Node.js is licensed for use as follows: - -""" -Copyright Node.js contributors. All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. -""" - -This license applies to parts of Node.js originating from the -https://github.com/joyent/node repository: - -""" -Copyright Joyent, Inc. and other Node contributors. All rights reserved. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. -""" - diff --git a/build_vtk_bundle/node_modules/string_decoder/README.md b/build_vtk_bundle/node_modules/string_decoder/README.md deleted file mode 100644 index 5fd58315..00000000 --- a/build_vtk_bundle/node_modules/string_decoder/README.md +++ /dev/null @@ -1,47 +0,0 @@ -# string_decoder - -***Node-core v8.9.4 string_decoder for userland*** - - -[![NPM](https://nodei.co/npm/string_decoder.png?downloads=true&downloadRank=true)](https://nodei.co/npm/string_decoder/) -[![NPM](https://nodei.co/npm-dl/string_decoder.png?&months=6&height=3)](https://nodei.co/npm/string_decoder/) - - -```bash -npm install --save string_decoder -``` - -***Node-core string_decoder for userland*** - -This package is a mirror of the string_decoder implementation in Node-core. - -Full documentation may be found on the [Node.js website](https://nodejs.org/dist/v8.9.4/docs/api/). - -As of version 1.0.0 **string_decoder** uses semantic versioning. - -## Previous versions - -Previous version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10. - -## Update - -The *build/* directory contains a build script that will scrape the source from the [nodejs/node](https://github.com/nodejs/node) repo given a specific Node version. - -## Streams Working Group - -`string_decoder` is maintained by the Streams Working Group, which -oversees the development and maintenance of the Streams API within -Node.js. The responsibilities of the Streams Working Group include: - -* Addressing stream issues on the Node.js issue tracker. -* Authoring and editing stream documentation within the Node.js project. -* Reviewing changes to stream subclasses within the Node.js project. -* Redirecting changes to streams from the Node.js project to this - project. -* Assisting in the implementation of stream providers within Node.js. -* Recommending versions of `readable-stream` to be included in Node.js. -* Messaging about the future of streams to give the community advance - notice of changes. - -See [readable-stream](https://github.com/nodejs/readable-stream) for -more details. diff --git a/build_vtk_bundle/node_modules/string_decoder/package.json b/build_vtk_bundle/node_modules/string_decoder/package.json deleted file mode 100644 index b2bb1411..00000000 --- a/build_vtk_bundle/node_modules/string_decoder/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "string_decoder", - "version": "1.3.0", - "description": "The string_decoder module from Node core", - "main": "lib/string_decoder.js", - "files": [ - "lib" - ], - "dependencies": { - "safe-buffer": "~5.2.0" - }, - "devDependencies": { - "babel-polyfill": "^6.23.0", - "core-util-is": "^1.0.2", - "inherits": "^2.0.3", - "tap": "~0.4.8" - }, - "scripts": { - "test": "tap test/parallel/*.js && node test/verify-dependencies", - "ci": "tap test/parallel/*.js test/ours/*.js --tap | tee test.tap && node test/verify-dependencies.js" - }, - "repository": { - "type": "git", - "url": "git://github.com/nodejs/string_decoder.git" - }, - "homepage": "https://github.com/nodejs/string_decoder", - "keywords": [ - "string", - "decoder", - "browser", - "browserify" - ], - "license": "MIT" -} diff --git a/build_vtk_bundle/node_modules/supports-color/browser.js b/build_vtk_bundle/node_modules/supports-color/browser.js deleted file mode 100644 index f097aecd..00000000 --- a/build_vtk_bundle/node_modules/supports-color/browser.js +++ /dev/null @@ -1,24 +0,0 @@ -/* eslint-env browser */ -'use strict'; - -function getChromeVersion() { - const matches = /(Chrome|Chromium)\/(?\d+)\./.exec(navigator.userAgent); - - if (!matches) { - return; - } - - return Number.parseInt(matches.groups.chromeVersion, 10); -} - -const colorSupport = getChromeVersion() >= 69 ? { - level: 1, - hasBasic: true, - has256: false, - has16m: false -} : false; - -module.exports = { - stdout: colorSupport, - stderr: colorSupport -}; diff --git a/build_vtk_bundle/node_modules/supports-color/index.js b/build_vtk_bundle/node_modules/supports-color/index.js deleted file mode 100644 index 2dd2fcb0..00000000 --- a/build_vtk_bundle/node_modules/supports-color/index.js +++ /dev/null @@ -1,152 +0,0 @@ -'use strict'; -const os = require('os'); -const tty = require('tty'); -const hasFlag = require('has-flag'); - -const {env} = process; - -let flagForceColor; -if (hasFlag('no-color') || - hasFlag('no-colors') || - hasFlag('color=false') || - hasFlag('color=never')) { - flagForceColor = 0; -} else if (hasFlag('color') || - hasFlag('colors') || - hasFlag('color=true') || - hasFlag('color=always')) { - flagForceColor = 1; -} - -function envForceColor() { - if ('FORCE_COLOR' in env) { - if (env.FORCE_COLOR === 'true') { - return 1; - } - - if (env.FORCE_COLOR === 'false') { - return 0; - } - - return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3); - } -} - -function translateLevel(level) { - if (level === 0) { - return false; - } - - return { - level, - hasBasic: true, - has256: level >= 2, - has16m: level >= 3 - }; -} - -function supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) { - const noFlagForceColor = envForceColor(); - if (noFlagForceColor !== undefined) { - flagForceColor = noFlagForceColor; - } - - const forceColor = sniffFlags ? flagForceColor : noFlagForceColor; - - if (forceColor === 0) { - return 0; - } - - if (sniffFlags) { - if (hasFlag('color=16m') || - hasFlag('color=full') || - hasFlag('color=truecolor')) { - return 3; - } - - if (hasFlag('color=256')) { - return 2; - } - } - - if (haveStream && !streamIsTTY && forceColor === undefined) { - return 0; - } - - const min = forceColor || 0; - - if (env.TERM === 'dumb') { - return min; - } - - if (process.platform === 'win32') { - // Windows 10 build 10586 is the first Windows release that supports 256 colors. - // Windows 10 build 14931 is the first release that supports 16m/TrueColor. - const osRelease = os.release().split('.'); - if ( - Number(osRelease[0]) >= 10 && - Number(osRelease[2]) >= 10586 - ) { - return Number(osRelease[2]) >= 14931 ? 3 : 2; - } - - return 1; - } - - if ('CI' in env) { - if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') { - return 1; - } - - return min; - } - - if ('TEAMCITY_VERSION' in env) { - return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; - } - - if (env.COLORTERM === 'truecolor') { - return 3; - } - - if ('TERM_PROGRAM' in env) { - const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10); - - switch (env.TERM_PROGRAM) { - case 'iTerm.app': - return version >= 3 ? 3 : 2; - case 'Apple_Terminal': - return 2; - // No default - } - } - - if (/-256(color)?$/i.test(env.TERM)) { - return 2; - } - - if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { - return 1; - } - - if ('COLORTERM' in env) { - return 1; - } - - return min; -} - -function getSupportLevel(stream, options = {}) { - const level = supportsColor(stream, { - streamIsTTY: stream && stream.isTTY, - ...options - }); - - return translateLevel(level); -} - -module.exports = { - supportsColor: getSupportLevel, - stdout: getSupportLevel({isTTY: tty.isatty(1)}), - stderr: getSupportLevel({isTTY: tty.isatty(2)}) -}; diff --git a/build_vtk_bundle/node_modules/supports-color/license b/build_vtk_bundle/node_modules/supports-color/license deleted file mode 100644 index fa7ceba3..00000000 --- a/build_vtk_bundle/node_modules/supports-color/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/supports-color/package.json b/build_vtk_bundle/node_modules/supports-color/package.json deleted file mode 100644 index a97bf2a1..00000000 --- a/build_vtk_bundle/node_modules/supports-color/package.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "name": "supports-color", - "version": "8.1.1", - "description": "Detect whether a terminal supports color", - "license": "MIT", - "repository": "chalk/supports-color", - "funding": "https://github.com/chalk/supports-color?sponsor=1", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "browser.js" - ], - "exports": { - "node": "./index.js", - "default": "./browser.js" - }, - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "ansi", - "styles", - "tty", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "support", - "supports", - "capability", - "detect", - "truecolor", - "16m" - ], - "dependencies": { - "has-flag": "^4.0.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "import-fresh": "^3.2.2", - "xo": "^0.35.0" - }, - "browser": "browser.js" -} diff --git a/build_vtk_bundle/node_modules/supports-color/readme.md b/build_vtk_bundle/node_modules/supports-color/readme.md deleted file mode 100644 index 3eedd1ca..00000000 --- a/build_vtk_bundle/node_modules/supports-color/readme.md +++ /dev/null @@ -1,77 +0,0 @@ -# supports-color - -> Detect whether a terminal supports color - -## Install - -``` -$ npm install supports-color -``` - -## Usage - -```js -const supportsColor = require('supports-color'); - -if (supportsColor.stdout) { - console.log('Terminal stdout supports color'); -} - -if (supportsColor.stdout.has256) { - console.log('Terminal stdout supports 256 colors'); -} - -if (supportsColor.stderr.has16m) { - console.log('Terminal stderr supports 16 million colors (truecolor)'); -} -``` - -## API - -Returns an `Object` with a `stdout` and `stderr` property for testing either streams. Each property is an `Object`, or `false` if color is not supported. - -The `stdout`/`stderr` objects specifies a level of support for color through a `.level` property and a corresponding flag: - -- `.level = 1` and `.hasBasic = true`: Basic color support (16 colors) -- `.level = 2` and `.has256 = true`: 256 color support -- `.level = 3` and `.has16m = true`: Truecolor support (16 million colors) - -### `require('supports-color').supportsColor(stream, options?)` - -Additionally, `supports-color` exposes the `.supportsColor()` function that takes an arbitrary write stream (e.g. `process.stdout`) and an optional options object to (re-)evaluate color support for an arbitrary stream. - -For example, `require('supports-color').stdout` is the equivalent of `require('supports-color').supportsColor(process.stdout)`. - -The options object supports a single boolean property `sniffFlags`. By default it is `true`, which instructs `supportsColor()` to sniff `process.argv` for the multitude of `--color` flags (see _Info_ below). If `false`, then `process.argv` is not considered when determining color support. - -## Info - -It obeys the `--color` and `--no-color` CLI flags. - -For situations where using `--color` is not possible, use the environment variable `FORCE_COLOR=1` (level 1), `FORCE_COLOR=2` (level 2), or `FORCE_COLOR=3` (level 3) to forcefully enable color, or `FORCE_COLOR=0` to forcefully disable. The use of `FORCE_COLOR` overrides all other color support checks. - -Explicit 256/Truecolor mode can be enabled using the `--color=256` and `--color=16m` flags, respectively. - -## Related - -- [supports-color-cli](https://github.com/chalk/supports-color-cli) - CLI for this module -- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right - -## Maintainers - -- [Sindre Sorhus](https://github.com/sindresorhus) -- [Josh Junon](https://github.com/qix-) - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
- ---- diff --git a/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/.eslintrc b/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/.eslintrc deleted file mode 100644 index 346ffeca..00000000 --- a/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/.eslintrc +++ /dev/null @@ -1,14 +0,0 @@ -{ - "root": true, - - "extends": "@ljharb", - - "env": { - "browser": true, - "node": true, - }, - - "rules": { - "id-length": "off", - }, -} diff --git a/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml b/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml deleted file mode 100644 index e8d64f37..00000000 --- a/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: [ljharb] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: npm/supports-preserve-symlink-flag -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/.nycrc b/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/.nycrc deleted file mode 100644 index bdd626ce..00000000 --- a/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/.nycrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "all": true, - "check-coverage": false, - "reporter": ["text-summary", "text", "html", "json"], - "exclude": [ - "coverage", - "test" - ] -} diff --git a/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md b/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md deleted file mode 100644 index 61f607f4..00000000 --- a/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +++ /dev/null @@ -1,22 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## v1.0.0 - 2022-01-02 - -### Commits - -- Tests [`e2f59ad`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/e2f59ad74e2ae0f5f4899fcde6a6f693ab7cc074) -- Initial commit [`dc222aa`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/dc222aad3c0b940d8d3af1ca9937d108bd2dc4b9) -- [meta] do not publish workflow files [`5ef77f7`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/5ef77f7cb6946d16ee38672be9ec0f1bbdf63262) -- npm init [`992b068`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/992b068503a461f7e8676f40ca2aab255fd8d6ff) -- read me [`6c9afa9`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/6c9afa9fabc8eaf0814aaed6dd01e6df0931b76d) -- Initial implementation [`2f98925`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/2f9892546396d4ab0ad9f1ff83e76c3f01234ae8) -- [meta] add `auto-changelog` [`6c476ae`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/6c476ae1ed7ce68b0480344f090ac2844f35509d) -- [Dev Deps] add `eslint`, `@ljharb/eslint-config` [`d0fffc8`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/d0fffc886d25fba119355520750a909d64da0087) -- Only apps should have lockfiles [`ab318ed`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/ab318ed7ae62f6c2c0e80a50398d40912afd8f69) -- [meta] add `safe-publish-latest` [`2bb23b3`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/2bb23b3ebab02dc4135c4cdf0217db82835b9fca) -- [meta] add `sideEffects` flag [`600223b`](https://github.com/inspect-js/node-supports-preserve-symlinks-flag/commit/600223ba24f30779f209d9097721eff35ed62741) diff --git a/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/LICENSE b/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/LICENSE deleted file mode 100644 index 2e7b9a3e..00000000 --- a/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2022 Inspect JS - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/README.md b/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/README.md deleted file mode 100644 index eb05b124..00000000 --- a/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# node-supports-preserve-symlinks-flag [![Version Badge][npm-version-svg]][package-url] - -[![github actions][actions-image]][actions-url] -[![coverage][codecov-image]][codecov-url] -[![dependency status][deps-svg]][deps-url] -[![dev dependency status][dev-deps-svg]][dev-deps-url] -[![License][license-image]][license-url] -[![Downloads][downloads-image]][downloads-url] - -[![npm badge][npm-badge-png]][package-url] - -Determine if the current node version supports the `--preserve-symlinks` flag. - -## Example - -```js -var supportsPreserveSymlinks = require('node-supports-preserve-symlinks-flag'); -var assert = require('assert'); - -assert.equal(supportsPreserveSymlinks, null); // in a browser -assert.equal(supportsPreserveSymlinks, false); // in node < v6.2 -assert.equal(supportsPreserveSymlinks, true); // in node v6.2+ -``` - -## Tests -Simply clone the repo, `npm install`, and run `npm test` - -[package-url]: https://npmjs.org/package/node-supports-preserve-symlinks-flag -[npm-version-svg]: https://versionbadg.es/inspect-js/node-supports-preserve-symlinks-flag.svg -[deps-svg]: https://david-dm.org/inspect-js/node-supports-preserve-symlinks-flag.svg -[deps-url]: https://david-dm.org/inspect-js/node-supports-preserve-symlinks-flag -[dev-deps-svg]: https://david-dm.org/inspect-js/node-supports-preserve-symlinks-flag/dev-status.svg -[dev-deps-url]: https://david-dm.org/inspect-js/node-supports-preserve-symlinks-flag#info=devDependencies -[npm-badge-png]: https://nodei.co/npm/node-supports-preserve-symlinks-flag.png?downloads=true&stars=true -[license-image]: https://img.shields.io/npm/l/node-supports-preserve-symlinks-flag.svg -[license-url]: LICENSE -[downloads-image]: https://img.shields.io/npm/dm/node-supports-preserve-symlinks-flag.svg -[downloads-url]: https://npm-stat.com/charts.html?package=node-supports-preserve-symlinks-flag -[codecov-image]: https://codecov.io/gh/inspect-js/node-supports-preserve-symlinks-flag/branch/main/graphs/badge.svg -[codecov-url]: https://app.codecov.io/gh/inspect-js/node-supports-preserve-symlinks-flag/ -[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/node-supports-preserve-symlinks-flag -[actions-url]: https://github.com/inspect-js/node-supports-preserve-symlinks-flag/actions diff --git a/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/browser.js b/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/browser.js deleted file mode 100644 index 087be1fe..00000000 --- a/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/browser.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = null; diff --git a/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/index.js b/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/index.js deleted file mode 100644 index 86fd5d33..00000000 --- a/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/index.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -module.exports = ( -// node 12+ - process.allowedNodeEnvironmentFlags && process.allowedNodeEnvironmentFlags.has('--preserve-symlinks') -) || ( -// node v6.2 - v11 - String(module.constructor._findPath).indexOf('preserveSymlinks') >= 0 // eslint-disable-line no-underscore-dangle -); diff --git a/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/package.json b/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/package.json deleted file mode 100644 index 56edadca..00000000 --- a/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/package.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "name": "supports-preserve-symlinks-flag", - "version": "1.0.0", - "description": "Determine if the current node version supports the `--preserve-symlinks` flag.", - "main": "./index.js", - "browser": "./browser.js", - "exports": { - ".": [ - { - "browser": "./browser.js", - "default": "./index.js" - }, - "./index.js" - ], - "./package.json": "./package.json" - }, - "sideEffects": false, - "scripts": { - "prepublishOnly": "safe-publish-latest", - "prepublish": "not-in-publish || npm run prepublishOnly", - "lint": "eslint --ext=js,mjs .", - "pretest": "npm run lint", - "tests-only": "nyc tape 'test/**/*.js'", - "test": "npm run tests-only", - "posttest": "aud --production", - "version": "auto-changelog && git add CHANGELOG.md", - "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/inspect-js/node-supports-preserve-symlinks-flag.git" - }, - "keywords": [ - "node", - "flag", - "symlink", - "symlinks", - "preserve-symlinks" - ], - "author": "Jordan Harband ", - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "license": "MIT", - "bugs": { - "url": "https://github.com/inspect-js/node-supports-preserve-symlinks-flag/issues" - }, - "homepage": "https://github.com/inspect-js/node-supports-preserve-symlinks-flag#readme", - "devDependencies": { - "@ljharb/eslint-config": "^20.1.0", - "aud": "^1.1.5", - "auto-changelog": "^2.3.0", - "eslint": "^8.6.0", - "nyc": "^10.3.2", - "safe-publish-latest": "^2.0.0", - "semver": "^6.3.0", - "tape": "^5.4.0" - }, - "engines": { - "node": ">= 0.4" - }, - "auto-changelog": { - "output": "CHANGELOG.md", - "template": "keepachangelog", - "unreleased": false, - "commitLimit": false, - "backfillLimit": false, - "hideCredit": true - } -} diff --git a/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/test/index.js b/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/test/index.js deleted file mode 100644 index 9938d671..00000000 --- a/build_vtk_bundle/node_modules/supports-preserve-symlinks-flag/test/index.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict'; - -var test = require('tape'); -var semver = require('semver'); - -var supportsPreserveSymlinks = require('../'); -var browser = require('../browser'); - -test('supportsPreserveSymlinks', function (t) { - t.equal(typeof supportsPreserveSymlinks, 'boolean', 'is a boolean'); - - t.equal(browser, null, 'browser file is `null`'); - t.equal( - supportsPreserveSymlinks, - null, - 'in a browser, is null', - { skip: typeof window === 'undefined' } - ); - - var expected = semver.satisfies(process.version, '>= 6.2'); - t.equal( - supportsPreserveSymlinks, - expected, - 'is true in node v6.2+, false otherwise (actual: ' + supportsPreserveSymlinks + ', expected ' + expected + ')', - { skip: typeof window !== 'undefined' } - ); - - t.end(); -}); diff --git a/build_vtk_bundle/node_modules/tapable/LICENSE b/build_vtk_bundle/node_modules/tapable/LICENSE deleted file mode 100644 index 03c083ce..00000000 --- a/build_vtk_bundle/node_modules/tapable/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License - -Copyright JS Foundation and other contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/tapable/README.md b/build_vtk_bundle/node_modules/tapable/README.md deleted file mode 100644 index 53fd476f..00000000 --- a/build_vtk_bundle/node_modules/tapable/README.md +++ /dev/null @@ -1,332 +0,0 @@ -# Tapable - -The tapable package exposes many Hook classes, which can be used to create hooks for plugins. - -```javascript -const { - AsyncParallelBailHook, - AsyncParallelHook, - AsyncSeriesBailHook, - AsyncSeriesHook, - AsyncSeriesWaterfallHook, - SyncBailHook, - SyncHook, - SyncLoopHook, - SyncWaterfallHook -} = require("tapable"); -``` - -## Installation - -```shell -npm install --save tapable -``` - -## Usage - -All Hook constructors take one optional argument, which is a list of argument names as strings. - -```js -const hook = new SyncHook(["arg1", "arg2", "arg3"]); -``` - -The best practice is to expose all hooks of a class in a `hooks` property: - -```js -class Car { - constructor() { - this.hooks = { - accelerate: new SyncHook(["newSpeed"]), - brake: new SyncHook(), - calculateRoutes: new AsyncParallelHook(["source", "target", "routesList"]) - }; - } - - /* ... */ -} -``` - -Other people can now use these hooks: - -```js -const myCar = new Car(); - -// Use the tap method to add a consument -myCar.hooks.brake.tap("WarningLampPlugin", () => warningLamp.on()); -``` - -It's required to pass a name to identify the plugin/reason. - -You may receive arguments: - -```js -myCar.hooks.accelerate.tap("LoggerPlugin", (newSpeed) => - console.log(`Accelerating to ${newSpeed}`) -); -``` - -For sync hooks, `tap` is the only valid method to add a plugin. Async hooks also support async plugins: - -```js -myCar.hooks.calculateRoutes.tapPromise( - "GoogleMapsPlugin", - (source, target, routesList) => - // return a promise - google.maps.findRoute(source, target).then((route) => { - routesList.add(route); - }) -); -myCar.hooks.calculateRoutes.tapAsync( - "BingMapsPlugin", - (source, target, routesList, callback) => { - bing.findRoute(source, target, (err, route) => { - if (err) return callback(err); - routesList.add(route); - // call the callback - callback(); - }); - } -); - -// You can still use sync plugins -myCar.hooks.calculateRoutes.tap( - "CachedRoutesPlugin", - (source, target, routesList) => { - const cachedRoute = cache.get(source, target); - if (cachedRoute) routesList.add(cachedRoute); - } -); -``` - -The class declaring these hooks needs to call them: - -```js -class Car { - /** - * You won't get returned value from SyncHook or AsyncParallelHook, - * to do that, use SyncWaterfallHook and AsyncSeriesWaterfallHook respectively - */ - - setSpeed(newSpeed) { - // following call returns undefined even when you returned values - this.hooks.accelerate.call(newSpeed); - } - - useNavigationSystemPromise(source, target) { - const routesList = new List(); - return this.hooks.calculateRoutes - .promise(source, target, routesList) - .then((res) => - // res is undefined for AsyncParallelHook - routesList.getRoutes() - ); - } - - useNavigationSystemAsync(source, target, callback) { - const routesList = new List(); - this.hooks.calculateRoutes.callAsync(source, target, routesList, (err) => { - if (err) return callback(err); - callback(null, routesList.getRoutes()); - }); - } -} -``` - -The Hook will compile a method with the most efficient way of running your plugins. It generates code depending on: - -- The number of registered plugins (none, one, many) -- The kind of registered plugins (sync, async, promise) -- The used call method (sync, async, promise) -- The number of arguments -- Whether interception is used - -This ensures fastest possible execution. - -## Hook types - -Each hook can be tapped with one or several functions. How they are executed depends on the hook type: - -- Basic hook (without “Waterfall”, “Bail” or “Loop” in its name). This hook simply calls every function it tapped in a row. - -- **Waterfall**. A waterfall hook also calls each tapped function in a row. Unlike the basic hook, it passes a return value from each function to the next function. - -- **Bail**. A bail hook allows exiting early. When any of the tapped function returns anything, the bail hook will stop executing the remaining ones. - -- **Loop**. When a plugin in a loop hook returns a non-undefined value the hook will restart from the first plugin. It will loop until all plugins return undefined. - -Additionally, hooks can be synchronous or asynchronous. To reflect this, there’re “Sync”, “AsyncSeries”, and “AsyncParallel” hook classes: - -- **Sync**. A sync hook can only be tapped with synchronous functions (using `myHook.tap()`). - -- **AsyncSeries**. An async-series hook can be tapped with synchronous, callback-based and promise-based functions (using `myHook.tap()`, `myHook.tapAsync()` and `myHook.tapPromise()`). They call each async method in a row. - -- **AsyncParallel**. An async-parallel hook can also be tapped with synchronous, callback-based and promise-based functions (using `myHook.tap()`, `myHook.tapAsync()` and `myHook.tapPromise()`). However, they run each async method in parallel. - -The hook type is reflected in its class name. E.g., `AsyncSeriesWaterfallHook` allows asynchronous functions and runs them in series, passing each function’s return value into the next function. - -## Interception - -All Hooks offer an additional interception API: - -```js -myCar.hooks.calculateRoutes.intercept({ - call: (source, target, routesList) => { - console.log("Starting to calculate routes"); - }, - register: (tapInfo) => { - // tapInfo = { type: "promise", name: "GoogleMapsPlugin", fn: ... } - console.log(`${tapInfo.name} is doing its job`); - return tapInfo; // may return a new tapInfo object - } -}); -``` - -**call**: `(...args) => void` Adding `call` to your interceptor will trigger when hooks are triggered. You have access to the hooks arguments. - -**tap**: `(tap: Tap) => void` Adding `tap` to your interceptor will trigger when a plugin taps into a hook. Provided is the `Tap` object. `Tap` object can't be changed. - -**loop**: `(...args) => void` Adding `loop` to your interceptor will trigger for each loop of a looping hook. - -**register**: `(tap: Tap) => Tap | undefined` Adding `register` to your interceptor will trigger for each added `Tap` and allows to modify it. - -## Context - -Plugins and interceptors can opt-in to access an optional `context` object, which can be used to pass arbitrary values to subsequent plugins and interceptors. - -```js -myCar.hooks.accelerate.intercept({ - context: true, - tap: (context, tapInfo) => { - // tapInfo = { type: "sync", name: "NoisePlugin", fn: ... } - console.log(`${tapInfo.name} is doing it's job`); - - // `context` starts as an empty object if at least one plugin uses `context: true`. - // If no plugins use `context: true`, then `context` is undefined. - if (context) { - // Arbitrary properties can be added to `context`, which plugins can then access. - context.hasMuffler = true; - } - } -}); - -myCar.hooks.accelerate.tap( - { - name: "NoisePlugin", - context: true - }, - (context, newSpeed) => { - if (context && context.hasMuffler) { - console.log("Silence..."); - } else { - console.log("Vroom!"); - } - } -); -``` - -## HookMap - -A HookMap is a helper class for a Map with Hooks - -```js -const keyedHook = new HookMap((key) => new SyncHook(["arg"])); -``` - -```js -keyedHook.for("some-key").tap("MyPlugin", (arg) => { - /* ... */ -}); -keyedHook.for("some-key").tapAsync("MyPlugin", (arg, callback) => { - /* ... */ -}); -keyedHook.for("some-key").tapPromise("MyPlugin", (arg) => { - /* ... */ -}); -``` - -```js -const hook = keyedHook.get("some-key"); -if (hook !== undefined) { - hook.callAsync("arg", (err) => { - /* ... */ - }); -} -``` - -## Hook/HookMap interface - -Public: - -```ts -interface Hook { - tap: (name: string | Tap, fn: (context?, ...args) => Result) => void; - tapAsync: ( - name: string | Tap, - fn: ( - context?, - ...args, - callback: (err: Error | null, result: Result) => void - ) => void - ) => void; - tapPromise: ( - name: string | Tap, - fn: (context?, ...args) => Promise - ) => void; - intercept: (interceptor: HookInterceptor) => void; -} - -interface HookInterceptor { - call: (context?, ...args) => void; - loop: (context?, ...args) => void; - tap: (context?, tap: Tap) => void; - register: (tap: Tap) => Tap; - context: boolean; -} - -interface HookMap { - for: (key: any) => Hook; - intercept: (interceptor: HookMapInterceptor) => void; -} - -interface HookMapInterceptor { - factory: (key: any, hook: Hook) => Hook; -} - -interface Tap { - name: string; - type: string; - fn: Function; - stage: number; - context: boolean; - before?: string | Array; -} -``` - -Protected (only for the class containing the hook): - -```ts -interface Hook { - isUsed: () => boolean; - call: (...args) => Result; - promise: (...args) => Promise; - callAsync: ( - ...args, - callback: (err: Error | null, result: Result) => void - ) => void; -} - -interface HookMap { - get: (key: any) => Hook | undefined; - for: (key: any) => Hook; -} -``` - -## MultiHook - -A helper Hook-like class to redirect taps to multiple other hooks: - -```js -const { MultiHook } = require("tapable"); - -this.hooks.allHooks = new MultiHook([this.hooks.hookA, this.hooks.hookB]); -``` diff --git a/build_vtk_bundle/node_modules/tapable/package.json b/build_vtk_bundle/node_modules/tapable/package.json deleted file mode 100644 index 5ac2c4d0..00000000 --- a/build_vtk_bundle/node_modules/tapable/package.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "name": "tapable", - "version": "2.3.0", - "description": "Just a little module for plugins.", - "homepage": "https://github.com/webpack/tapable", - "repository": { - "type": "git", - "url": "http://github.com/webpack/tapable.git" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "license": "MIT", - "author": "Tobias Koppers @sokra", - "main": "lib/index.js", - "browser": { - "util": "./lib/util-browser.js" - }, - "types": "./tapable.d.ts", - "files": ["lib", "!lib/__tests__", "tapable.d.ts"], - "scripts": { - "lint": "yarn lint:code && yarn fmt:check", - "lint:code": "eslint --cache .", - "fmt": "yarn fmt:base --log-level warn --write", - "fmt:check": "yarn fmt:base --check", - "fmt:base": "node ./node_modules/prettier/bin/prettier.cjs --cache --ignore-unknown .", - "fix": "yarn fix:code && yarn fmt", - "fix:code": "yarn lint:code --fix", - "test": "jest" - }, - "jest": { - "transform": { - "__tests__[\\\\/].+\\.js$": "babel-jest" - } - }, - "devDependencies": { - "@babel/core": "^7.4.4", - "@babel/preset-env": "^7.4.4", - "@eslint/js": "^9.28.0", - "@eslint/markdown": "^7.1.0", - "@stylistic/eslint-plugin": "^5.2.3", - "babel-jest": "^24.8.0", - "globals": "^16.2.0", - "eslint": "^9.28.0", - "eslint-config-webpack": "^4.6.3", - "eslint-config-prettier": "^10.1.5", - "eslint-plugin-import": "^2.31.0", - "eslint-plugin-jest": "^29.0.1", - "eslint-plugin-n": "^17.19.0", - "eslint-plugin-prettier": "^5.4.1", - "eslint-plugin-unicorn": "^60.0.0", - "jest": "^24.8.0", - "prettier": "^3.5.3", - "prettier-1": "npm:prettier@^1" - }, - "engines": { - "node": ">=6" - } -} diff --git a/build_vtk_bundle/node_modules/tapable/tapable.d.ts b/build_vtk_bundle/node_modules/tapable/tapable.d.ts deleted file mode 100644 index e2ca8c2f..00000000 --- a/build_vtk_bundle/node_modules/tapable/tapable.d.ts +++ /dev/null @@ -1,174 +0,0 @@ -type FixedSizeArray = T extends 0 - ? void[] - : ReadonlyArray & { - 0: U; - length: T; - }; -type Measure = T extends 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 - ? T - : never; -type Append = { - 0: [U]; - 1: [T[0], U]; - 2: [T[0], T[1], U]; - 3: [T[0], T[1], T[2], U]; - 4: [T[0], T[1], T[2], T[3], U]; - 5: [T[0], T[1], T[2], T[3], T[4], U]; - 6: [T[0], T[1], T[2], T[3], T[4], T[5], U]; - 7: [T[0], T[1], T[2], T[3], T[4], T[5], T[6], U]; - 8: [T[0], T[1], T[2], T[3], T[4], T[5], T[6], T[7], U]; -}[Measure]; -type AsArray = T extends any[] ? T : [T]; - -declare class UnsetAdditionalOptions { - _UnsetAdditionalOptions: true; -} -type IfSet = X extends UnsetAdditionalOptions ? {} : X; - -type Callback = (error: E | null, result?: T) => void; -type InnerCallback = (error?: E | null | false, result?: T) => void; - -type FullTap = Tap & { - type: "sync" | "async" | "promise"; - fn: Function; -}; - -type Tap = TapOptions & { - name: string; -}; - -type TapOptions = { - before?: string; - stage?: number; -}; - -interface HookInterceptor { - name?: string; - tap?: (tap: FullTap & IfSet) => void; - call?: (...args: any[]) => void; - loop?: (...args: any[]) => void; - error?: (err: Error) => void; - result?: (result: R) => void; - done?: () => void; - register?: ( - tap: FullTap & IfSet - ) => FullTap & IfSet; -} - -type ArgumentNames = FixedSizeArray; - -declare class Hook { - constructor(args?: ArgumentNames>, name?: string); - name: string | undefined; - interceptors: HookInterceptor[]; - taps: FullTap[]; - intercept(interceptor: HookInterceptor): void; - isUsed(): boolean; - callAsync(...args: Append, Callback>): void; - promise(...args: AsArray): Promise; - tap( - options: string | (Tap & IfSet), - fn: (...args: AsArray) => R - ): void; - withOptions( - options: TapOptions & IfSet - ): Omit; -} - -export class SyncHook< - T, - R = void, - AdditionalOptions = UnsetAdditionalOptions -> extends Hook { - call(...args: AsArray): R; -} - -export class SyncBailHook< - T, - R, - AdditionalOptions = UnsetAdditionalOptions -> extends SyncHook {} -export class SyncLoopHook< - T, - AdditionalOptions = UnsetAdditionalOptions -> extends SyncHook {} -export class SyncWaterfallHook< - T, - R = AsArray[0], - AdditionalOptions = UnsetAdditionalOptions -> extends SyncHook {} - -declare class AsyncHook< - T, - R, - AdditionalOptions = UnsetAdditionalOptions -> extends Hook { - tapAsync( - options: string | (Tap & IfSet), - fn: (...args: Append, InnerCallback>) => void - ): void; - tapPromise( - options: string | (Tap & IfSet), - fn: (...args: AsArray) => Promise - ): void; -} - -export class AsyncParallelHook< - T, - AdditionalOptions = UnsetAdditionalOptions -> extends AsyncHook {} -export class AsyncParallelBailHook< - T, - R, - AdditionalOptions = UnsetAdditionalOptions -> extends AsyncHook {} -export class AsyncSeriesHook< - T, - AdditionalOptions = UnsetAdditionalOptions -> extends AsyncHook {} -export class AsyncSeriesBailHook< - T, - R, - AdditionalOptions = UnsetAdditionalOptions -> extends AsyncHook {} -export class AsyncSeriesLoopHook< - T, - AdditionalOptions = UnsetAdditionalOptions -> extends AsyncHook {} -export class AsyncSeriesWaterfallHook< - T, - R = AsArray[0], - AdditionalOptions = UnsetAdditionalOptions -> extends AsyncHook {} - -type HookFactory = (key: K) => H; - -interface HookMapInterceptor { - factory?: (key: K, hook: H) => H; -} - -export class HookMap { - constructor(factory: HookFactory, name?: string); - name: string | undefined; - get(key: any): H | undefined; - for(key: any): H; - intercept(interceptor: HookMapInterceptor): void; -} - -type AnyHook = Hook; - -export class TypedHookMap> { - constructor(factory: HookFactory, name?: string); - name: string | undefined; - get(key: K): M[K] | undefined; - for(key: K): M[K]; - intercept(interceptor: HookMapInterceptor): void; -} - -export class MultiHook { - constructor(hooks: H[], name?: string); - name: string | undefined; - tap(options: string | Tap, fn?: Function): void; - tapAsync(options: string | Tap, fn?: Function): void; - tapPromise(options: string | Tap, fn?: Function): void; -} diff --git a/build_vtk_bundle/node_modules/terser-webpack-plugin/LICENSE b/build_vtk_bundle/node_modules/terser-webpack-plugin/LICENSE deleted file mode 100644 index 8c11fc72..00000000 --- a/build_vtk_bundle/node_modules/terser-webpack-plugin/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright JS Foundation and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/terser-webpack-plugin/README.md b/build_vtk_bundle/node_modules/terser-webpack-plugin/README.md deleted file mode 100644 index 7818e5c8..00000000 --- a/build_vtk_bundle/node_modules/terser-webpack-plugin/README.md +++ /dev/null @@ -1,934 +0,0 @@ - - -[![npm][npm]][npm-url] -[![node][node]][node-url] -[![tests][tests]][tests-url] -[![cover][cover]][cover-url] -[![discussion][discussion]][discussion-url] -[![size][size]][size-url] - -# terser-webpack-plugin - -This plugin uses [terser](https://github.com/terser/terser) to minify/minimize your JavaScript. - -## Getting Started - -Webpack v5 comes with the latest `terser-webpack-plugin` out of the box. If you are using Webpack v5 or above and wish to customize the options, you will still need to install `terser-webpack-plugin`. Using Webpack v4, you have to install `terser-webpack-plugin` v4. - -To begin, you'll need to install `terser-webpack-plugin`: - -```console -npm install terser-webpack-plugin --save-dev -``` - -or - -```console -yarn add -D terser-webpack-plugin -``` - -or - -```console -pnpm add -D terser-webpack-plugin -``` - -Then add the plugin to your `webpack` config. For example: - -**webpack.config.js** - -```js -const TerserPlugin = require("terser-webpack-plugin"); - -module.exports = { - optimization: { - minimize: true, - minimizer: [new TerserPlugin()], - }, -}; -``` - -And run `webpack` via your preferred method. - -## Note about source maps - -**Works only with `source-map`, `inline-source-map`, `hidden-source-map` and `nosources-source-map` values for the [`devtool`](https://webpack.js.org/configuration/devtool/) option.** - -Why? - -- `eval` wraps modules in `eval("string")` and the minimizer does not handle strings. -- `cheap` has not column information and minimizer generate only a single line, which leave only a single mapping. - -Using supported `devtool` values enable source map generation. - -## Options - -- **[`test`](#test)** -- **[`include`](#include)** -- **[`exclude`](#exclude)** -- **[`parallel`](#parallel)** -- **[`minify`](#minify)** -- **[`terserOptions`](#terseroptions)** -- **[`extractComments`](#extractcomments)** - -### `test` - -Type: - -```ts -type test = string | RegExp | Array; -``` - -Default: `/\.m?js(\?.*)?$/i` - -Test to match files against. - -**webpack.config.js** - -```js -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - test: /\.js(\?.*)?$/i, - }), - ], - }, -}; -``` - -### `include` - -Type: - -```ts -type include = string | RegExp | Array; -``` - -Default: `undefined` - -Files to include. - -**webpack.config.js** - -```js -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - include: /\/includes/, - }), - ], - }, -}; -``` - -### `exclude` - -Type: - -```ts -type exclude = string | RegExp | Array; -``` - -Default: `undefined` - -Files to exclude. - -**webpack.config.js** - -```js -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - exclude: /\/excludes/, - }), - ], - }, -}; -``` - -### `parallel` - -Type: - -```ts -type parallel = boolean | number; -``` - -Default: `true` - -Use multi-process parallel running to improve the build speed. -Default number of concurrent runs: `os.cpus().length - 1` or `os.availableParallelism() - 1` (if this function is supported). - -> **Note** -> -> Parallelization can speedup your build significantly and is therefore **highly recommended**. - -> **Warning** -> -> If you use **Circle CI** or any other environment that doesn't provide real available count of CPUs then you need to setup explicitly number of CPUs to avoid `Error: Call retries were exceeded` (see [#143](https://github.com/webpack-contrib/terser-webpack-plugin/issues/143), [#202](https://github.com/webpack-contrib/terser-webpack-plugin/issues/202)). - -#### `boolean` - -Enable/disable multi-process parallel running. - -**webpack.config.js** - -```js -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - parallel: true, - }), - ], - }, -}; -``` - -#### `number` - -Enable multi-process parallel running and set number of concurrent runs. - -**webpack.config.js** - -```js -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - parallel: 4, - }), - ], - }, -}; -``` - -### `minify` - -Type: - -```ts -type minify = ( - input: { - [file: string]: string; - }, - sourceMap: import("@jridgewell/trace-mapping").SourceMapInput | undefined, - minifyOptions: { - module?: boolean | undefined; - ecma?: import("terser").ECMA | undefined; - }, - extractComments: - | boolean - | "all" - | "some" - | RegExp - | (( - astNode: any, - comment: { - value: string; - type: "comment1" | "comment2" | "comment3" | "comment4"; - pos: number; - line: number; - col: number; - } - ) => boolean) - | { - condition?: - | boolean - | "all" - | "some" - | RegExp - | (( - astNode: any, - comment: { - value: string; - type: "comment1" | "comment2" | "comment3" | "comment4"; - pos: number; - line: number; - col: number; - } - ) => boolean) - | undefined; - filename?: string | ((fileData: any) => string) | undefined; - banner?: - | string - | boolean - | ((commentsFile: string) => string) - | undefined; - } - | undefined -) => Promise<{ - code: string; - map?: import("@jridgewell/trace-mapping").SourceMapInput | undefined; - errors?: (string | Error)[] | undefined; - warnings?: (string | Error)[] | undefined; - extractedComments?: string[] | undefined; -}>; -``` - -Default: `TerserPlugin.terserMinify` - -Allows you to override default minify function. -By default plugin uses [terser](https://github.com/terser/terser) package. -Useful for using and testing unpublished versions or forks. - -> **Warning** -> -> **Always use `require` inside `minify` function when `parallel` option enabled**. - -**webpack.config.js** - -```js -// Can be async -const minify = (input, sourceMap, minimizerOptions, extractsComments) => { - // The `minimizerOptions` option contains option from the `terserOptions` option - // You can use `minimizerOptions.myCustomOption` - - // Custom logic for extract comments - const { map, code } = require("uglify-module") // Or require('./path/to/uglify-module') - .minify(input, { - /* Your options for minification */ - }); - - return { map, code, warnings: [], errors: [], extractedComments: [] }; -}; - -// Used to regenerate `fullhash`/`chunkhash` between different implementation -// Example: you fix a bug in custom minimizer/custom function, but unfortunately webpack doesn't know about it, so you will get the same fullhash/chunkhash -// to avoid this you can provide version of your custom minimizer -// You don't need if you use only `contenthash` -minify.getMinimizerVersion = () => { - let packageJson; - - try { - // eslint-disable-next-line global-require, import/no-extraneous-dependencies - packageJson = require("uglify-module/package.json"); - } catch (error) { - // Ignore - } - - return packageJson && packageJson.version; -}; - -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - terserOptions: { - myCustomOption: true, - }, - minify, - }), - ], - }, -}; -``` - -### `terserOptions` - -Type: - -```ts -type terserOptions = { - compress?: boolean | CompressOptions; - ecma?: ECMA; - enclose?: boolean | string; - ie8?: boolean; - keep_classnames?: boolean | RegExp; - keep_fnames?: boolean | RegExp; - mangle?: boolean | MangleOptions; - module?: boolean; - nameCache?: object; - format?: FormatOptions; - /** @deprecated */ - output?: FormatOptions; - parse?: ParseOptions; - safari10?: boolean; - sourceMap?: boolean | SourceMapOptions; - toplevel?: boolean; -}; -``` - -Default: [default](https://github.com/terser/terser#minify-options) - -Terser [options](https://github.com/terser/terser#minify-options). - -**webpack.config.js** - -```js -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - terserOptions: { - ecma: undefined, - parse: {}, - compress: {}, - mangle: true, // Note `mangle.properties` is `false` by default. - module: false, - // Deprecated - output: null, - format: null, - toplevel: false, - nameCache: null, - ie8: false, - keep_classnames: undefined, - keep_fnames: false, - safari10: false, - }, - }), - ], - }, -}; -``` - -### `extractComments` - -Type: - -```ts -type extractComments = - | boolean - | string - | RegExp - | (( - astNode: any, - comment: { - value: string; - type: "comment1" | "comment2" | "comment3" | "comment4"; - pos: number; - line: number; - col: number; - } - ) => boolean) - | { - condition?: - | boolean - | "all" - | "some" - | RegExp - | (( - astNode: any, - comment: { - value: string; - type: "comment1" | "comment2" | "comment3" | "comment4"; - pos: number; - line: number; - col: number; - } - ) => boolean) - | undefined; - filename?: string | ((fileData: any) => string) | undefined; - banner?: - | string - | boolean - | ((commentsFile: string) => string) - | undefined; - }; -``` - -Default: `true` - -Whether comments shall be extracted to a separate file, (see [details](https://github.com/webpack/webpack/commit/71933e979e51c533b432658d5e37917f9e71595a)). -By default extract only comments using `/^\**!|@preserve|@license|@cc_on/i` regexp condition and remove remaining comments. -If the original file is named `foo.js`, then the comments will be stored to `foo.js.LICENSE.txt`. -The `terserOptions.format.comments` option specifies whether the comment will be preserved, i.e. it is possible to preserve some comments (e.g. annotations) while extracting others or even preserving comments that have been extracted. - -#### `boolean` - -Enable/disable extracting comments. - -**webpack.config.js** - -```js -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - extractComments: true, - }), - ], - }, -}; -``` - -#### `string` - -Extract `all` or `some` (use `/^\**!|@preserve|@license|@cc_on/i` RegExp) comments. - -**webpack.config.js** - -```js -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - extractComments: "all", - }), - ], - }, -}; -``` - -#### `RegExp` - -All comments that match the given expression will be extracted to the separate file. - -**webpack.config.js** - -```js -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - extractComments: /@extract/i, - }), - ], - }, -}; -``` - -#### `function` - -All comments that match the given expression will be extracted to the separate file. - -**webpack.config.js** - -```js -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - extractComments: (astNode, comment) => { - if (/@extract/i.test(comment.value)) { - return true; - } - - return false; - }, - }), - ], - }, -}; -``` - -#### `object` - -Allow to customize condition for extract comments, specify extracted file name and banner. - -**webpack.config.js** - -```js -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - extractComments: { - condition: /^\**!|@preserve|@license|@cc_on/i, - filename: (fileData) => { - // The "fileData" argument contains object with "filename", "basename", "query" and "hash" - return `${fileData.filename}.LICENSE.txt${fileData.query}`; - }, - banner: (licenseFile) => { - return `License information can be found in ${licenseFile}`; - }, - }, - }), - ], - }, -}; -``` - -##### `condition` - -Type: - -```ts -type condition = - | boolean - | "all" - | "some" - | RegExp - | (( - astNode: any, - comment: { - value: string; - type: "comment1" | "comment2" | "comment3" | "comment4"; - pos: number; - line: number; - col: number; - } - ) => boolean) - | undefined; -``` - -Condition what comments you need extract. - -**webpack.config.js** - -```js -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - extractComments: { - condition: "some", - filename: (fileData) => { - // The "fileData" argument contains object with "filename", "basename", "query" and "hash" - return `${fileData.filename}.LICENSE.txt${fileData.query}`; - }, - banner: (licenseFile) => { - return `License information can be found in ${licenseFile}`; - }, - }, - }), - ], - }, -}; -``` - -##### `filename` - -Type: - -```ts -type filename = string | ((fileData: any) => string) | undefined; -``` - -Default: `[file].LICENSE.txt[query]` - -Available placeholders: `[file]`, `[query]` and `[filebase]` (`[base]` for webpack 5). - -The file where the extracted comments will be stored. -Default is to append the suffix `.LICENSE.txt` to the original filename. - -> **Warning** -> -> We highly recommend using the `txt` extension. Using `js`/`cjs`/`mjs` extensions may conflict with existing assets which leads to broken code. - -**webpack.config.js** - -```js -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - extractComments: { - condition: /^\**!|@preserve|@license|@cc_on/i, - filename: "extracted-comments.js", - banner: (licenseFile) => { - return `License information can be found in ${licenseFile}`; - }, - }, - }), - ], - }, -}; -``` - -##### `banner` - -Type: - -```ts -type banner = string | boolean | ((commentsFile: string) => string) | undefined; -``` - -Default: `/*! For license information please see ${commentsFile} */` - -The banner text that points to the extracted file and will be added on top of the original file. -Can be `false` (no banner), a `String`, or a `Function<(string) -> String>` that will be called with the filename where extracted comments have been stored. -Will be wrapped into comment. - -**webpack.config.js** - -```js -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - extractComments: { - condition: true, - filename: (fileData) => { - // The "fileData" argument contains object with "filename", "basename", "query" and "hash" - return `${fileData.filename}.LICENSE.txt${fileData.query}`; - }, - banner: (commentsFile) => { - return `My custom banner about license information ${commentsFile}`; - }, - }, - }), - ], - }, -}; -``` - -## Examples - -### Preserve Comments - -Extract all legal comments (i.e. `/^\**!|@preserve|@license|@cc_on/i`) and preserve `/@license/i` comments. - -**webpack.config.js** - -```js -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - terserOptions: { - format: { - comments: /@license/i, - }, - }, - extractComments: true, - }), - ], - }, -}; -``` - -### Remove Comments - -If you avoid building with comments, use this config: - -**webpack.config.js** - -```js -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - terserOptions: { - format: { - comments: false, - }, - }, - extractComments: false, - }), - ], - }, -}; -``` - -### [`uglify-js`](https://github.com/mishoo/UglifyJS) - -[`UglifyJS`](https://github.com/mishoo/UglifyJS) is a JavaScript parser, minifier, compressor and beautifier toolkit. - -**webpack.config.js** - -```js -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - minify: TerserPlugin.uglifyJsMinify, - // `terserOptions` options will be passed to `uglify-js` - // Link to options - https://github.com/mishoo/UglifyJS#minify-options - terserOptions: {}, - }), - ], - }, -}; -``` - -### [`swc`](https://github.com/swc-project/swc) - -[`swc`](https://github.com/swc-project/swc) is a super-fast compiler written in rust; producing widely-supported javascript from modern standards and typescript. - -> **Warning** -> -> the `extractComments` option is not supported and all comments will be removed by default, it will be fixed in future - -**webpack.config.js** - -```js -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - minify: TerserPlugin.swcMinify, - // `terserOptions` options will be passed to `swc` (`@swc/core`) - // Link to options - https://swc.rs/docs/config-js-minify - terserOptions: {}, - }), - ], - }, -}; -``` - -### [`esbuild`](https://github.com/evanw/esbuild) - -[`esbuild`](https://github.com/evanw/esbuild) is an extremely fast JavaScript bundler and minifier. - -> **Warning** -> -> the `extractComments` option is not supported and all legal comments (i.e. copyright, licenses and etc) will be preserved - -**webpack.config.js** - -```js -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - minify: TerserPlugin.esbuildMinify, - // `terserOptions` options will be passed to `esbuild` - // Link to options - https://esbuild.github.io/api/#minify - // Note: the `minify` options is true by default (and override other `minify*` options), so if you want to disable the `minifyIdentifiers` option (or other `minify*` options) please use: - // terserOptions: { - // minify: false, - // minifyWhitespace: true, - // minifyIdentifiers: false, - // minifySyntax: true, - // }, - terserOptions: {}, - }), - ], - }, -}; -``` - -### Custom Minify Function - -Override default minify function - use `uglify-js` for minification. - -**webpack.config.js** - -```js -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - minify: (file, sourceMap) => { - // https://github.com/mishoo/UglifyJS2#minify-options - const uglifyJsOptions = { - /* your `uglify-js` package options */ - }; - - if (sourceMap) { - uglifyJsOptions.sourceMap = { - content: sourceMap, - }; - } - - return require("uglify-js").minify(file, uglifyJsOptions); - }, - }), - ], - }, -}; -``` - -### Typescript - -With default terser minify function: - -```ts -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - terserOptions: { - compress: true, - }, - }), - ], - }, -}; -``` - -With built-in minify functions: - -```ts -import type { JsMinifyOptions as SwcOptions } from "@swc/core"; -import type { MinifyOptions as UglifyJSOptions } from "uglify-js"; -import type { TransformOptions as EsbuildOptions } from "esbuild"; -import type { MinifyOptions as TerserOptions } from "terser"; - -module.exports = { - optimization: { - minimize: true, - minimizer: [ - new TerserPlugin({ - minify: TerserPlugin.swcMinify, - terserOptions: { - // `swc` options - }, - }), - new TerserPlugin({ - minify: TerserPlugin.uglifyJsMinify, - terserOptions: { - // `uglif-js` options - }, - }), - new TerserPlugin({ - minify: TerserPlugin.esbuildMinify, - terserOptions: { - // `esbuild` options - }, - }), - - // Alternative usage: - new TerserPlugin({ - minify: TerserPlugin.terserMinify, - terserOptions: { - // `terser` options - }, - }), - ], - }, -}; -``` - -## Contributing - -Please take a moment to read our contributing guidelines if you haven't yet done so. - -[CONTRIBUTING](./.github/CONTRIBUTING.md) - -## License - -[MIT](./LICENSE) - -[npm]: https://img.shields.io/npm/v/terser-webpack-plugin.svg -[npm-url]: https://npmjs.com/package/terser-webpack-plugin -[node]: https://img.shields.io/node/v/terser-webpack-plugin.svg -[node-url]: https://nodejs.org -[tests]: https://github.com/webpack-contrib/terser-webpack-plugin/workflows/terser-webpack-plugin/badge.svg -[tests-url]: https://github.com/webpack-contrib/terser-webpack-plugin/actions -[cover]: https://codecov.io/gh/webpack-contrib/terser-webpack-plugin/branch/master/graph/badge.svg -[cover-url]: https://codecov.io/gh/webpack-contrib/terser-webpack-plugin -[discussion]: https://img.shields.io/github/discussions/webpack/webpack -[discussion-url]: https://github.com/webpack/webpack/discussions -[size]: https://packagephobia.now.sh/badge?p=terser-webpack-plugin -[size-url]: https://packagephobia.now.sh/result?p=terser-webpack-plugin diff --git a/build_vtk_bundle/node_modules/terser-webpack-plugin/package.json b/build_vtk_bundle/node_modules/terser-webpack-plugin/package.json deleted file mode 100644 index f0bf4d05..00000000 --- a/build_vtk_bundle/node_modules/terser-webpack-plugin/package.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "name": "terser-webpack-plugin", - "version": "5.3.14", - "description": "Terser plugin for webpack", - "license": "MIT", - "repository": "webpack-contrib/terser-webpack-plugin", - "author": "webpack Contrib Team", - "homepage": "https://github.com/webpack-contrib/terser-webpack-plugin", - "bugs": "https://github.com/webpack-contrib/terser-webpack-plugin/issues", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "main": "dist/index.js", - "types": "types/index.d.ts", - "engines": { - "node": ">= 10.13.0" - }, - "scripts": { - "clean": "del-cli dist types", - "prebuild": "npm run clean", - "build:types": "tsc --declaration --emitDeclarationOnly --outDir types && prettier \"types/**/*.ts\" --write", - "build:code": "cross-env NODE_ENV=production babel src -d dist --copy-files", - "build": "npm-run-all -p \"build:**\"", - "commitlint": "commitlint --from=master", - "security": "npm audit --production", - "lint:prettier": "prettier --list-different .", - "lint:js": "eslint --cache .", - "lint:spelling": "cspell \"**/*.*\"", - "lint:types": "tsc --pretty --noEmit", - "lint": "npm-run-all -l -p \"lint:**\"", - "fix:js": "npm run lint:js -- --fix", - "fix:prettier": "npm run lint:prettier -- --write", - "fix": "npm-run-all -l fix:js fix:prettier", - "test:only": "cross-env NODE_ENV=test jest", - "test:watch": "npm run test:only -- --watch", - "test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage", - "pretest": "npm run lint", - "test": "npm run test:coverage", - "prepare": "husky install && npm run build", - "release": "standard-version" - }, - "files": [ - "dist", - "types" - ], - "peerDependencies": { - "webpack": "^5.1.0" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "uglify-js": { - "optional": true - }, - "esbuild": { - "optional": true - } - }, - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.25", - "jest-worker": "^27.4.5", - "schema-utils": "^4.3.0", - "serialize-javascript": "^6.0.2", - "terser": "^5.31.1" - }, - "devDependencies": { - "@babel/cli": "^7.24.7", - "@babel/core": "^7.24.7", - "@babel/preset-env": "^7.24.7", - "@commitlint/cli": "^17.7.1", - "@commitlint/config-conventional": "^17.7.0", - "@swc/core": "^1.3.102", - "@types/node": "^18.15.11", - "@types/serialize-javascript": "^5.0.2", - "@types/uglify-js": "^3.17.5", - "@webpack-contrib/eslint-config-webpack": "^3.0.0", - "babel-jest": "^28.1.2", - "copy-webpack-plugin": "^9.0.1", - "cross-env": "^7.0.3", - "cspell": "^6.31.2", - "del": "^6.0.0", - "del-cli": "^3.0.1", - "esbuild": "^0.19.11", - "eslint": "^7.32.0", - "eslint-config-prettier": "^8.9.0", - "eslint-plugin-import": "^2.28.1", - "file-loader": "^6.2.0", - "husky": "^7.0.2", - "jest": "^27.5.1", - "lint-staged": "^13.2.3", - "memfs": "^3.4.13", - "npm-run-all": "^4.1.5", - "prettier": "^2.8.7", - "standard-version": "^9.3.1", - "typescript": "^4.9.5", - "uglify-js": "^3.18.0", - "webpack": "^5.92.1", - "webpack-cli": "^4.10.0", - "worker-loader": "^3.0.8" - }, - "keywords": [ - "uglify", - "uglify-js", - "uglify-es", - "terser", - "webpack", - "webpack-plugin", - "minification", - "compress", - "compressor", - "min", - "minification", - "minifier", - "minify", - "optimize", - "optimizer" - ] -} diff --git a/build_vtk_bundle/node_modules/terser-webpack-plugin/types/index.d.ts b/build_vtk_bundle/node_modules/terser-webpack-plugin/types/index.d.ts deleted file mode 100644 index e7e6b859..00000000 --- a/build_vtk_bundle/node_modules/terser-webpack-plugin/types/index.d.ts +++ /dev/null @@ -1,229 +0,0 @@ -export = TerserPlugin; -/** - * @template [T=import("terser").MinifyOptions] - */ -declare class TerserPlugin { - /** - * @private - * @param {any} input - * @returns {boolean} - */ - private static isSourceMap; - /** - * @private - * @param {unknown} warning - * @param {string} file - * @returns {Error} - */ - private static buildWarning; - /** - * @private - * @param {any} error - * @param {string} file - * @param {TraceMap} [sourceMap] - * @param {Compilation["requestShortener"]} [requestShortener] - * @returns {Error} - */ - private static buildError; - /** - * @private - * @param {Parallel} parallel - * @returns {number} - */ - private static getAvailableNumberOfCores; - /** - * @private - * @param {any} environment - * @returns {number} - */ - private static getEcmaVersion; - /** - * @param {BasePluginOptions & DefinedDefaultMinimizerAndOptions} [options] - */ - constructor( - options?: - | (BasePluginOptions & DefinedDefaultMinimizerAndOptions) - | undefined - ); - /** - * @private - * @type {InternalPluginOptions} - */ - private options; - /** - * @private - * @param {Compiler} compiler - * @param {Compilation} compilation - * @param {Record} assets - * @param {{availableNumberOfCores: number}} optimizeOptions - * @returns {Promise} - */ - private optimize; - /** - * @param {Compiler} compiler - * @returns {void} - */ - apply(compiler: Compiler): void; -} -declare namespace TerserPlugin { - export { - terserMinify, - uglifyJsMinify, - swcMinify, - esbuildMinify, - Schema, - Compiler, - Compilation, - WebpackError, - Asset, - JestWorker, - SourceMapInput, - TraceMap, - Rule, - Rules, - ExtractCommentsFunction, - ExtractCommentsCondition, - ExtractCommentsFilename, - ExtractCommentsBanner, - ExtractCommentsObject, - ExtractCommentsOptions, - MinimizedResult, - Input, - CustomOptions, - InferDefaultType, - PredefinedOptions, - MinimizerOptions, - BasicMinimizerImplementation, - MinimizeFunctionHelpers, - MinimizerImplementation, - InternalOptions, - MinimizerWorker, - Parallel, - BasePluginOptions, - DefinedDefaultMinimizerAndOptions, - InternalPluginOptions, - }; -} -type Compiler = import("webpack").Compiler; -type BasePluginOptions = { - test?: Rules | undefined; - include?: Rules | undefined; - exclude?: Rules | undefined; - extractComments?: ExtractCommentsOptions | undefined; - parallel?: Parallel; -}; -type DefinedDefaultMinimizerAndOptions = - T extends import("terser").MinifyOptions - ? { - minify?: MinimizerImplementation | undefined; - terserOptions?: MinimizerOptions | undefined; - } - : { - minify: MinimizerImplementation; - terserOptions?: MinimizerOptions | undefined; - }; -import { terserMinify } from "./utils"; -import { uglifyJsMinify } from "./utils"; -import { swcMinify } from "./utils"; -import { esbuildMinify } from "./utils"; -type Schema = import("schema-utils/declarations/validate").Schema; -type Compilation = import("webpack").Compilation; -type WebpackError = import("webpack").WebpackError; -type Asset = import("webpack").Asset; -type JestWorker = import("jest-worker").Worker; -type SourceMapInput = import("@jridgewell/trace-mapping").SourceMapInput; -type TraceMap = import("@jridgewell/trace-mapping").TraceMap; -type Rule = RegExp | string; -type Rules = Rule[] | Rule; -type ExtractCommentsFunction = ( - astNode: any, - comment: { - value: string; - type: "comment1" | "comment2" | "comment3" | "comment4"; - pos: number; - line: number; - col: number; - } -) => boolean; -type ExtractCommentsCondition = - | boolean - | "all" - | "some" - | RegExp - | ExtractCommentsFunction; -type ExtractCommentsFilename = string | ((fileData: any) => string); -type ExtractCommentsBanner = - | string - | boolean - | ((commentsFile: string) => string); -type ExtractCommentsObject = { - condition?: ExtractCommentsCondition | undefined; - filename?: ExtractCommentsFilename | undefined; - banner?: ExtractCommentsBanner | undefined; -}; -type ExtractCommentsOptions = ExtractCommentsCondition | ExtractCommentsObject; -type MinimizedResult = { - code: string; - map?: import("@jridgewell/trace-mapping").SourceMapInput | undefined; - errors?: (string | Error)[] | undefined; - warnings?: (string | Error)[] | undefined; - extractedComments?: string[] | undefined; -}; -type Input = { - [file: string]: string; -}; -type CustomOptions = { - [key: string]: any; -}; -type InferDefaultType = T extends infer U ? U : CustomOptions; -type PredefinedOptions = { - module?: - | (T extends { - module?: infer P | undefined; - } - ? P - : string | boolean) - | undefined; - ecma?: - | (T extends { - ecma?: infer P_1 | undefined; - } - ? P_1 - : string | number) - | undefined; -}; -type MinimizerOptions = PredefinedOptions & InferDefaultType; -type BasicMinimizerImplementation = ( - input: Input, - sourceMap: SourceMapInput | undefined, - minifyOptions: MinimizerOptions, - extractComments: ExtractCommentsOptions | undefined -) => Promise; -type MinimizeFunctionHelpers = { - getMinimizerVersion?: (() => string | undefined) | undefined; - supportsWorkerThreads?: (() => boolean | undefined) | undefined; -}; -type MinimizerImplementation = BasicMinimizerImplementation & - MinimizeFunctionHelpers; -type InternalOptions = { - name: string; - input: string; - inputSourceMap: SourceMapInput | undefined; - extractComments: ExtractCommentsOptions | undefined; - minimizer: { - implementation: MinimizerImplementation; - options: MinimizerOptions; - }; -}; -type MinimizerWorker = import("jest-worker").Worker & { - transform: (options: string) => MinimizedResult; - minify: (options: InternalOptions) => MinimizedResult; -}; -type Parallel = undefined | boolean | number; -type InternalPluginOptions = BasePluginOptions & { - minimizer: { - implementation: MinimizerImplementation; - options: MinimizerOptions; - }; -}; -import { minify } from "./minify"; diff --git a/build_vtk_bundle/node_modules/terser-webpack-plugin/types/minify.d.ts b/build_vtk_bundle/node_modules/terser-webpack-plugin/types/minify.d.ts deleted file mode 100644 index 0213d74d..00000000 --- a/build_vtk_bundle/node_modules/terser-webpack-plugin/types/minify.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -export type MinimizedResult = import("./index.js").MinimizedResult; -export type CustomOptions = import("./index.js").CustomOptions; -/** @typedef {import("./index.js").MinimizedResult} MinimizedResult */ -/** @typedef {import("./index.js").CustomOptions} CustomOptions */ -/** - * @template T - * @param {import("./index.js").InternalOptions} options - * @returns {Promise} - */ -export function minify( - options: import("./index.js").InternalOptions -): Promise; -/** - * @param {string} options - * @returns {Promise} - */ -export function transform(options: string): Promise; diff --git a/build_vtk_bundle/node_modules/terser-webpack-plugin/types/utils.d.ts b/build_vtk_bundle/node_modules/terser-webpack-plugin/types/utils.d.ts deleted file mode 100644 index 4aff4c72..00000000 --- a/build_vtk_bundle/node_modules/terser-webpack-plugin/types/utils.d.ts +++ /dev/null @@ -1,119 +0,0 @@ -export type Task = () => Promise; -export type SourceMapInput = import("@jridgewell/trace-mapping").SourceMapInput; -export type ExtractCommentsOptions = - import("./index.js").ExtractCommentsOptions; -export type ExtractCommentsFunction = - import("./index.js").ExtractCommentsFunction; -export type ExtractCommentsCondition = - import("./index.js").ExtractCommentsCondition; -export type Input = import("./index.js").Input; -export type MinimizedResult = import("./index.js").MinimizedResult; -export type CustomOptions = import("./index.js").CustomOptions; -export type PredefinedOptions = import("./index.js").PredefinedOptions; -export type ExtractedComments = Array; -/** - * @template T - * @typedef {() => Promise} Task - */ -/** - * Run tasks with limited concurrency. - * @template T - * @param {number} limit - Limit of tasks that run at once. - * @param {Task[]} tasks - List of tasks to run. - * @returns {Promise} A promise that fulfills to an array of the results - */ -export function throttleAll(limit: number, tasks: Task[]): Promise; -/** - * @template T - * @param fn {(function(): any) | undefined} - * @returns {function(): T} - */ -export function memoize(fn: (() => any) | undefined): () => T; -/** - * @param {Input} input - * @param {SourceMapInput | undefined} sourceMap - * @param {CustomOptions} minimizerOptions - * @param {ExtractCommentsOptions | undefined} extractComments - * @return {Promise} - */ -export function terserMinify( - input: Input, - sourceMap: SourceMapInput | undefined, - minimizerOptions: CustomOptions, - extractComments: ExtractCommentsOptions | undefined -): Promise; -export namespace terserMinify { - /** - * @returns {string | undefined} - */ - function getMinimizerVersion(): string | undefined; - /** - * @returns {boolean | undefined} - */ - function supportsWorkerThreads(): boolean | undefined; -} -/** - * @param {Input} input - * @param {SourceMapInput | undefined} sourceMap - * @param {CustomOptions} minimizerOptions - * @param {ExtractCommentsOptions | undefined} extractComments - * @return {Promise} - */ -export function uglifyJsMinify( - input: Input, - sourceMap: SourceMapInput | undefined, - minimizerOptions: CustomOptions, - extractComments: ExtractCommentsOptions | undefined -): Promise; -export namespace uglifyJsMinify { - /** - * @returns {string | undefined} - */ - function getMinimizerVersion(): string | undefined; - /** - * @returns {boolean | undefined} - */ - function supportsWorkerThreads(): boolean | undefined; -} -/** - * @param {Input} input - * @param {SourceMapInput | undefined} sourceMap - * @param {CustomOptions} minimizerOptions - * @return {Promise} - */ -export function swcMinify( - input: Input, - sourceMap: SourceMapInput | undefined, - minimizerOptions: CustomOptions -): Promise; -export namespace swcMinify { - /** - * @returns {string | undefined} - */ - function getMinimizerVersion(): string | undefined; - /** - * @returns {boolean | undefined} - */ - function supportsWorkerThreads(): boolean | undefined; -} -/** - * @param {Input} input - * @param {SourceMapInput | undefined} sourceMap - * @param {CustomOptions} minimizerOptions - * @return {Promise} - */ -export function esbuildMinify( - input: Input, - sourceMap: SourceMapInput | undefined, - minimizerOptions: CustomOptions -): Promise; -export namespace esbuildMinify { - /** - * @returns {string | undefined} - */ - function getMinimizerVersion(): string | undefined; - /** - * @returns {boolean | undefined} - */ - function supportsWorkerThreads(): boolean | undefined; -} diff --git a/build_vtk_bundle/node_modules/terser/CHANGELOG.md b/build_vtk_bundle/node_modules/terser/CHANGELOG.md deleted file mode 100644 index eda35cf9..00000000 --- a/build_vtk_bundle/node_modules/terser/CHANGELOG.md +++ /dev/null @@ -1,848 +0,0 @@ -# Changelog - -## v5.44.1 - - - fix bitwise optimization changing the result of `&&`, `||` - - switches: make sure `var` is extracted from a deleted default case - -## v5.44.0 - - - Support `using` and `await using` declarations (#1635) - -## v5.43.1 - - - Prevent niche optimizations that would move around block declarations - - Add `lhs_constants` to `CompressOptions` type (#1621) - -## v5.43.0 - - - Do not wrap callbacks in parentheses (`wrap_func_args` format option is now false by default) - - Do not inline functions into for loops (for performance reasons) - -## v5.42.0 - - - Improved performance in the parse step by adding a fast path for simple identifiers. - - Improved ESTree conversion - -## v5.41.0 - - - fixed semicolon insertion between class fields, when the field names are number literals - - `keep_numbers` format option now works for bigint - - internal: correctly mark accessors' is_generator property - - internal: do not read or assign quote properties without need - - internal: add missing equivalent_to comparison - -## v5.40.0 - - - Fix exporting AssignmentExpression (default assign pattern) to ESTree - - Fix ESTree output of object keys with quotes - - Fix handling of an ESTree empty `export {}` (#1601) - - Fix some `const` and `let` resulting from ESTree input (#1599) - -## v5.39.2 - - - Fix crash when parsing bare `yield` inside a template string. - - Update internally used acorn version requirement - -## v5.39.1 - - - Fix bitwise operations that could mix `BigInt` and `number` - -## v5.39.0 - - - Remove unnecessary `console.assert` calls (#1590) - -## v5.38.2 - - - internal: Flatten inheritance tree for object/class members - -## v5.38.1 - - - Fix inlining non-call expressions into an `optional_call?.()` - -## v5.38.0 - - - Remove `console` method-of-method calls (eg `console.log.apply()`) when `drop_console` option is used (#1585) - - Remove more object spreads, such as `{ ...void !0 }` (#1142) - -## v5.37.0 - - - Reserved object properties from chrome extensions (domprops) - - Fix semicolon insertion between a class property without a semicolon `a` and a computed class property `["prop"]` - -## v5.36.0 - - - Support import attributes `with` syntax - -## v5.35.0 - - - Ensure parent directory exists when using --output on CLI (#1530) - -## v5.34.1 - - - bump the rollup devDependency to disable CVE warnings (Terser was not affected) - -## v5.34.0 - - - internal: stop assigning properties to objects they don't belong in - - internal: run compress tests in parallel - - `drop_console`: emit an empty function if the return value of `console.METHOD(...)` may be called. - -## v5.33.0 - - - `reduce_vars` improved when dealing with hoisted function definitions (#1544) - -## v5.32.0 - - - `import("module")` can now be input and output from ESTree AST (#1557) - - `BigInt` literals can now be input and output from ESTree AST (#1555) - - `typeof` an object or array (`typeof {}` and `typeof []`) can now be statically evaluated. (#1546) - -## v5.31.6 - - Retain side effects in a `case` when the expression is a sequence (comma) expression - -## v5.31.5 - - Revert v5.31.4, which created mysterious issues #1548, #1549 - -## v5.31.4 (reverted) - - drop_unused: drop classes which only have side effects in the `extends` part - -## v5.31.3 - - drop_unused: drop unused parameters from IIFEs in some more situations. - -## v5.31.2 - - drop_unused: scan variables in self-referential class declarations that contain side effects. - - Don't add parens to arrow function when it's the default for an argument (#1540) - - Update domprops (#1538) - -## v5.31.1 - - Allow drop-unused to drop the whole assignment (not just the assigned name) in more situations, in order to avoid duplication of long strings. - -## v5.31.0 - - Sync up property mangler exceptions with current contents of Firefox and Chrome environments - - Add more webcomponent properties to property mangler exceptions (#1525) - - Drop non-nullish constants in `...spreads` in objects (#1141) - -## v5.30.4 - - Fix parsing `#private in ...` when next to other operators - -## v5.30.3 - - Fix precedence of `#private in ...` operator - -## v5.30.2 - - Avoid optimizations inside computed keys, because they can cause js-engine-specific bugs. - -## v5.30.1 - - Removed useless `\` escapes for non-ascii characters - - Make modern identifier characters quoted for older environments (#1512) - -## v5.30.0 - - Improve removal of classes referring to themselves - -## v5.29.2 - - Make sure 'computed_props' creates string keys - - Take into account the evaluated size when inlining - -## v5.29.1 - - fix optimisation of all-bits mask check - -## v5.29.0 - - Re-releases previously reverted 5.28.0 - - Fix crash while optimizing some bitwise ops - - (internal) Remove needless wrapper for from_moz (#1499) - -## v5.28.1 -(hotfix release) - - Reverts v5.28.0 - -## v5.28.0 - - Optimise redundant or shrinkable bitwise operations (`|`, `^`, `&`, `>>`, `<<`) - - Evaluate some `BigInt` math operations - -## v5.27.2 - - Recognise `this` as a reference to the surrounding class in `drop_unused`. Closes #1472 - -## v5.27.1 - - Fixed case where `collapse_vars` inlines `await` expressions into non-async functions. - -## v5.27.0 - - Created `minify_sync()` alternative to `minify()` since there's no async code left. - -## v5.26.0 - - Do not take the `/*#__PURE__*/` annotation into account when the `side_effects` compress option is off. - - The `preserve_annotations` option now automatically opts annotation comments in, instead of requiring the `comments` option to be configured for this. - - Refuse to parse empty parenthesized expressions (`()`) - -## v5.25.0 - - Regex properties added to reserved property mangler (#1471) - - `pure_new` option added to drop unused `new` expressions. - -## v5.24.0 - - Improve formatting performance in V8 by keeping a small work string and a large output string - -## v5.23.0 - - When top_retain will keep a variable assignment around, inline the assignee when it's shorter than the name (#1434) - - Remove empty class `static {}` blocks. - -## v5.22.0 - - Do not `unsafe`ly shorten expressions like a?.toString() when they're conditional. - - Avoid running drop_unused in nodes that aren't scopes. Fixes a rare crash. - - When 'module' is enabled, assume strict mode when figuring out scopes. - -## v5.21.0 - - Do not inline functions that would be retained in the toplevel (as this would cause code duplication). - - Fix precedence of arrow function and ternary operator when formatting output. - -## v5.20.0 - - Passing `minify()` zero files will now throw a clean exception (#1450) - - `drop_console` supports passing in an array of `console.*` method names (#1445) - - New DOM properties from the WebGPU API have been added for use in the property mangler (#1436) - - Internal code simplification (#1437) - -## v5.19.4 - - Prevent creating very deeply nested ternaries from a long list of `if..return` - - Prevent inlining classes into other functions, to avoid constructors being compared. - -## v5.19.3 - - Fix side effect detection of `optional?.chains`. - - Add roundRect to domprops.js (#1426) - -## v5.19.2 - - fix performance hit from avoiding HTML comments in the output - -## v5.19.1 - - Better avoid outputting `` and HTML comments. - - Fix unused variables in class static blocks not being dropped correctly. - - Fix sourcemap names of methods that are `async` or `static` - -## v5.19.0 - - Allow `/*@__MANGLE_PROP__*/` annotation in `object.property`, in addition to property declarations. - -## v5.18.2 - - Stop using recursion in hoisted defuns fix. - -## v5.18.1 - - Fix major performance issue caused by hoisted defuns' scopes bugfix. - -## v5.18.0 - - Add new `/*@__MANGLE_PROP__*/` annotation, to mark properties that should be mangled. - -## v5.17.7 - - Update some dependencies - - Add consistent sorting for `v` RegExp flag - - Add `inert` DOM attribute to domprops - -## v5.17.6 - - Fixes to mozilla AST input and output, for class properties, private properties and static blocks - - Fix outputting a shorthand property in quotes when safari10 and ecma=2015 options are enabled - - `configurable` and `enumerable`, used in Object.defineProperty, added to domprops (#1393) - -## v5.17.5 - - Take into account the non-deferred bits of a class, such as static properties, while dropping unused code. - -## v5.17.4 - - - Fix crash when trying to negate a class (`!class{}`) - - Avoid outputting comments between `yield`/`await` and its argument - - Fix detection of left-hand-side of assignment, to avoid optimizing it like any other expression in some edge cases - -## v5.17.3 - - - Fix issue with trimming a static class property's contents accessing the class as `this`. - -## v5.17.2 - - Be less conservative when detecting use-before-definition of `var` in hoisted functions. - - Support unusual (but perfectly valid) initializers of for-in and for-of loops. - - Fix issue where hoisted function would be dropped if it was after a `continue` statement - -## v5.17.1 - - Fix evaluating `.length` when the source array might've been mutated - -## v5.17.0 - - Drop vestigial `= undefined` default argument in IIFE calls (#1366) - - Evaluate known arrays' `.length` property when statically determinable - - Add `@__KEY__` annotation to mangle string literals (#1365) - -## v5.16.9 - - Fix parentheses in output of optional chains (`a?.b`) (#1374) - - More documentation on source maps (#1368) - - New `lhs_constants` option, allowing to stop Terser from swapping comparison operands (#1361) - -## v5.16.8 - - - Become even less conservative around function definitions for `reduce_vars` - - Fix parsing context of `import.meta` expressions such that method calls are allowed - -## v5.16.6 - - - Become less conservative with analyzing function definitions for `reduce_vars` - - Parse `import.meta` as a real AST node and not an `object.property` - -## v5.16.5 - - - Correctly handle AST transform functions that mutate children arrays - - Don't mutate the options object passed to Terser (#1342) - - Do not treat BigInt like a number - -## v5.16.4 - - - Keep `(defaultArg = undefined) => ...`, because default args don't count for function length - - Prevent inlining variables into `?.` optional chains - - Avoid removing unused arguments while transforming - - Optimize iterating AST node lists - - Make sure `catch` and `finally` aren't children of `try` in the AST - - Use modern unicode property escapes (`\p{...}`) to parse identifiers when available - -## v5.16.3 - - - Ensure function definitions, don't assume the values of variables defined after them. - -## v5.16.2 - - - Fix sourcemaps with non-ascii characters (#1318) - - Support string module name and export * as (#1336) - - Do not move `let` out of `for` initializers, as it can change scoping - - Fix a corner case that would generate the invalid syntax `if (something) let x` ("let" in braceless if body) - - Knowledge of more native object properties (#1330) - - Got rid of Travis (#1323) - - Added semi-secret `asObject` sourcemap option to typescript defs (#1321) - -## v5.16.1 - - - Properly handle references in destructurings (`const { [reference]: val } = ...`) - - Allow parsing of `.#privatefield` in nested classes - - Do not evaluate operations that return large strings if that would make the output code larger - - Make `collapse_vars` handle block scope correctly - - Internal improvements: Typos (#1311), more tests, small-scale refactoring - -## v5.16.0 - - - Disallow private fields in object bodies (#1011) - - Parse `#privatefield in object` (#1279) - - Compress `#privatefield in object` - -## v5.15.1 - - - Fixed missing parentheses around optional chains - - Avoid bare `let` or `const` as the bodies of `if` statements (#1253) - - Small internal fixes (#1271) - - Avoid inlining a class twice and creating two equivalent but `!==` classes. - -## v5.15.0 - - Basic support for ES2022 class static initializer blocks. - - Add `AudioWorkletNode` constructor options to domprops list (#1230) - - Make identity function inliner not inline `id(...expandedArgs)` - -## v5.14.2 - - - Security fix for RegExps that should not be evaluated (regexp DDOS) - - Source maps improvements (#1211) - - Performance improvements in long property access evaluation (#1213) - -## v5.14.1 - - keep_numbers option added to TypeScript defs (#1208) - - Fixed parsing of nested template strings (#1204) - -## v5.14.0 - - Switched to @jridgewell/source-map for sourcemap generation (#1190, #1181) - - Fixed source maps with non-terminated segments (#1106) - - Enabled typescript types to be imported from the package (#1194) - - Extra DOM props have been added (#1191) - - Delete the AST while generating code, as a means to save RAM - -## v5.13.1 - - Removed self-assignments (`varname=varname`) (closes #1081) - - Separated inlining code (for inlining things into references, or removing IIFEs) - - Allow multiple identifiers with the same name in `var` destructuring (eg `var { a, a } = x`) (#1176) - -## v5.13.0 - - - All calls to eval() were removed (#1171, #1184) - - `source-map` was updated to 0.8.0-beta.0 (#1164) - - NavigatorUAData was added to domprops to avoid property mangling (#1166) - -## v5.12.1 - - - Fixed an issue with function definitions inside blocks (#1155) - - Fixed parens of `new` in some situations (closes #1159) - -## v5.12.0 - - - `TERSER_DEBUG_DIR` environment variable - - @copyright comments are now preserved with the comments="some" option (#1153) - -## v5.11.0 - - - Unicode code point escapes (`\u{abcde}`) are not emitted inside RegExp literals anymore (#1147) - - acorn is now a regular dependency - -## v5.10.0 - - - Massive optimization to max_line_len (#1109) - - Basic support for import assertions - - Marked ES2022 Object.hasOwn as a pure function - - Fix `delete optional?.property` - - New CI/CD pipeline with github actions (#1057) - - Fix reordering of switch branches (#1092), (#1084) - - Fix error when creating a class property called `get` - - Acorn dependency is now an optional peerDependency - - Fix mangling collision with exported variables (#1072) - - Fix an issue with `return someVariable = (async () => { ... })()` (#1073) - -## v5.9.0 - - - Collapsing switch cases with the same bodies (even if they're not next to each other) (#1070). - - Fix evaluation of optional chain expressions (#1062) - - Fix mangling collision in ESM exports (#1063) - - Fix issue with mutating function objects after a second pass (#1047) - - Fix for inlining object spread `{ ...obj }` (#1071) - - Typescript typings fix (#1069) - -## v5.8.0 - - - Fixed shadowing variables while moving code in some cases (#1065) - - Stop mangling computed & quoted properties when keep_quoted is enabled. - - Fix for mangling private getter/setter and .#private access (#1060, #1068) - - Array.from has a new optimization when the unsafe option is set (#737) - - Mangle/propmangle let you generate your own identifiers through the nth_identifier option (#1061) - - More optimizations to switch statements (#1044) - -## v5.7.2 - - - Fixed issues with compressing functions defined in `global_defs` option (#1036) - - New recipe for using Terser in gulp was added to RECIPES.md (#1035) - - Fixed issues with `??` and `?.` (#1045) - - Future reserved words such as `package` no longer require you to disable strict mode to be used as names. - - Refactored huge compressor file into multiple more focused files. - - Avoided unparenthesized `in` operator in some for loops (it breaks parsing because of for..in loops) - - Improved documentation (#1021, #1025) - - More type definitions (#1021) - -## v5.7.1 - - - Avoided collapsing assignments together if it would place a chain assignment on the left hand side, which is invalid syntax (`a?.b = c`) - - Removed undefined from object expansions (`{ ...void 0 }` -> `{}`) - - Fix crash when checking if something is nullish or undefined (#1009) - - Fixed comparison of private class properties (#1015) - - Minor performance improvements (#993) - - Fixed scope of function defs in strict mode (they are block scoped) - -## v5.7.0 - - - Several compile-time evaluation and inlining fixes - - Allow `reduce_funcs` to be disabled again. - - Add `spidermonkey` options to parse and format (#974) - - Accept `{get = "default val"}` and `{set = "default val"}` in destructuring arguments. - - Change package.json export map to help require.resolve (#971) - - Improve docs - - Fix `export default` of an anonymous class with `extends` - -## v5.6.1 - - - Mark assignments to the `.prototype` of a class as pure - - Parenthesize `await` on the left of `**` (while accepting legacy non-parenthesised input) - - Avoided outputting NUL bytes in optimized RegExps, to stop the output from breaking other tools - - Added `exports` to domprops (#939) - - Fixed a crash when spreading `...this` - - Fixed the computed size of arrow functions, which improves their inlining - -## v5.6.0 - - - Added top-level await - - Beautify option has been removed in #895 - - Private properties, getters and setters have been added in #913 and some more commits - - Docs improvements: #896, #903, #916 - -## v5.5.1 - - - Fixed object properties with unicode surrogates on safari. - -## v5.5.0 - - - Fixed crash when inlining uninitialized variable into template string. - - The sourcemap for dist was removed for being too large. - -## v5.4.0 - - - Logical assignment - - Change `let x = undefined` to just `let x` - - Removed some optimizations for template strings, placing them behind `unsafe` options. Reason: adding strings is not equivalent to template strings, due to valueOf differences. - - The AST_Token class was slimmed down in order to use less memory. - -## v5.3.8 - - - Restore node 13 support - -## v5.3.7 - -Hotfix release, fixes package.json "engines" syntax - -## v5.3.6 - - - Fixed parentheses when outputting `??` mixed with `||` and `&&` - - Improved hygiene of the symbol generator - -## v5.3.5 - - - Avoid moving named functions into default exports. - - Enabled transform() for chain expressions. This allows AST transformers to reach inside chain expressions. - -## v5.3.4 - - - Fixed a crash when hoisting (with `hoist_vars`) a destructuring variable declaration - -## v5.3.3 - - - `source-map` library has been updated, bringing memory usage and CPU time improvements when reading input source maps (the SourceMapConsumer is now WASM based). - - The `wrap_func_args` option now also wraps arrow functions, as opposed to only function expressions. - -## v5.3.2 - - - Prevented spread operations from being expanded when the expanded array/object contains getters, setters, or array holes. - - Fixed _very_ slow self-recursion in some cases of removing extraneous parentheses from `+` operations. - -## v5.3.1 - - - An issue with destructuring declarations when `pure_getters` is enabled has been fixed - - Fixed a crash when chain expressions need to be shallowly compared - - Made inlining functions more conservative to make sure a function that contains a reference to itself isn't moved into a place that can create multiple instances of itself. - -## v5.3.0 - - - Fixed a crash when compressing object spreads in some cases - - Fixed compiletime evaluation of optional chains (caused typeof a?.b to always return "object") - - domprops has been updated to contain every single possible prop - -## v5.2.1 - - - The parse step now doesn't accept an `ecma` option, so that all ES code is accepted. - - Optional dotted chains now accept keywords, just like dotted expressions (`foo?.default`) - -## v5.2.0 - - - Optional chaining syntax is now supported. - - Consecutive await expressions don't have unnecessary parens - - Taking the variable name's length (after mangling) into consideration when deciding to inline - -## v5.1.0 - - - `import.meta` is now supported - - Typescript typings have been improved - -## v5.0.0 - - - `in` operator now taken into account during property mangle. - - Fixed infinite loop in face of a reference loop in some situations. - - Kept exports and imports around even if there's something which will throw before them. - - The main exported bundle for commonjs, dist/bundle.min.js is no longer minified. - -## v5.0.0-beta.0 - - - BREAKING: `minify()` is now async and rejects a promise instead of returning an error. - - BREAKING: Internal AST is no longer exposed, so that it can be improved without releasing breaking changes. - - BREAKING: Lowest supported node version is 10 - - BREAKING: There are no more warnings being emitted - - Module is now distributed as a dual package - You can `import` and `require()` too. - - Inline improvements were made - - ------ - -## v4.8.1 (backport) - - - Security fix for RegExps that should not be evaluated (regexp DDOS) - -## v4.8.0 - - - Support for numeric separators (`million = 1_000_000`) was added. - - Assigning properties to a class is now assumed to be pure. - - Fixed bug where `yield` wasn't considered a valid property key in generators. - -## v4.7.0 - - - A bug was fixed where an arrow function would have the wrong size - - `arguments` object is now considered safe to retrieve properties from (useful for `length`, or `0`) even when `pure_getters` is not set. - - Fixed erroneous `const` declarations without value (which is invalid) in some corner cases when using `collapse_vars`. - -## v4.6.13 - - - Fixed issue where ES5 object properties were being turned into ES6 object properties due to more lax unicode rules. - - Fixed parsing of BigInt with lowercase `e` in them. - -## v4.6.12 - - - Fixed subtree comparison code, making it see that `[1,[2, 3]]` is different from `[1, 2, [3]]` - - Printing of unicode identifiers has been improved - -## v4.6.11 - - - Read unused classes' properties and method keys, to figure out if they use other variables. - - Prevent inlining into block scopes when there are name collisions - - Functions are no longer inlined into parameter defaults, because they live in their own special scope. - - When inlining identity functions, take into account the fact they may be used to drop `this` in function calls. - - Nullish coalescing operator (`x ?? y`), plus basic optimization for it. - - Template literals in binary expressions such as `+` have been further optimized - -## v4.6.10 - - - Do not use reduce_vars when classes are present - -## v4.6.9 - - - Check if block scopes actually exist in blocks - -## v4.6.8 - - - Take into account "executed bits" of classes like static properties or computed keys, when checking if a class evaluation might throw or have side effects. - -## v4.6.7 - - - Some new performance gains through a `AST_Node.size()` method which measures a node's source code length without printing it to a string first. - - An issue with setting `--comments` to `false` in the CLI has been fixed. - - Fixed some issues with inlining - - `unsafe_symbols` compress option was added, which turns `Symbol("name")` into just `Symbol()` - - Brought back compress performance improvement through the `AST_Node.equivalent_to(other)` method (which was reverted in v4.6.6). - -## v4.6.6 - -(hotfix release) - - - Reverted code to 4.6.4 to allow for more time to investigate an issue. - -## v4.6.5 (REVERTED) - - - Improved compress performance through using a new method to see if two nodes are equivalent, instead of printing them to a string. - -## v4.6.4 - - - The `"some"` value in the `comments` output option now preserves `@lic` and other important comments when using `//` - - `` is now better escaped in regex, and in comments, when using the `inline_script` output option - - Fixed an issue when transforming `new RegExp` into `/.../` when slashes are included in the source - - `AST_Node.prototype.constructor` now exists, allowing for easier debugging of crashes - - Multiple if statements with the same consequents are now collapsed - - Typescript typings improvements - - Optimizations while looking for surrogate pairs in strings - -## v4.6.3 - - - Annotations such as `/*#__NOINLINE__*/` and `/*#__PURE__*/` may now be preserved using the `preserve_annotations` output option - - A TypeScript definition update for the `keep_quoted` output option. - -## v4.6.2 - - - A bug where functions were inlined into other functions with scope conflicts has been fixed. - - `/*#__NOINLINE__*/` annotation fixed for more use cases where inlining happens. - -## v4.6.1 - - - Fixed an issue where a class is duplicated by reduce_vars when there's a recursive reference to the class. - -## v4.6.0 - - - Fixed issues with recursive class references. - - BigInt evaluation has been prevented, stopping Terser from evaluating BigInts like it would do regular numbers. - - Class property support has been added - -## v4.5.1 - -(hotfix release) - - - Fixed issue where `() => ({})[something]` was not parenthesised correctly. - -## v4.5.0 - - - Inlining has been improved - - An issue where keep_fnames combined with functions declared through variables was causing name shadowing has been fixed - - You can now set the ES version through their year - - The output option `keep_numbers` has been added, which prevents Terser from turning `1000` into `1e3` and such - - Internal small optimisations and refactors - -## v4.4.3 - - - Number and BigInt parsing has been fixed - - `/*#__INLINE__*/` annotation fixed for arrow functions with non-block bodies. - - Functional tests have been added, using [this repository](https://github.com/terser/terser-functional-tests). - - A memory leak, where the entire AST lives on after compression, has been plugged. - -## v4.4.2 - - - Fixed a problem with inlining identity functions - -## v4.4.1 - -*note:* This introduced a feature, therefore it should have been a minor release. - - - Fixed a crash when `unsafe` was enabled. - - An issue has been fixed where `let` statements might be collapsed out of their scope. - - Some error messages have been improved by adding quotes around variable names. - -## v4.4.0 - - - Added `/*#__INLINE__*/` and `/*#__NOINLINE__*/` annotations for calls. If a call has one of these, it either forces or forbids inlining. - -## v4.3.11 - - - Fixed a problem where `window` was considered safe to access, even though there are situations where it isn't (Node.js, workers...) - - Fixed an error where `++` and `--` were considered side-effect free - - `Number(x)` now needs both `unsafe` and and `unsafe_math` to be compressed into `+x` because `x` might be a `BigInt` - - `keep_fnames` now correctly supports regexes when the function is in a variable declaration - -## v4.3.10 - - - Fixed syntax error when repeated semicolons were encountered in classes - - Fixed invalid output caused by the creation of empty sequences internally - - Scopes are now updated when scopes are inlined into them - -## v4.3.9 - - Fixed issue with mangle's `keep_fnames` option, introduced when adding code to keep variable names of anonymous functions - -## v4.3.8 - - - Typescript typings fix - -## v4.3.7 - - - Parsing of regex options in the CLI (which broke in v4.3.5) was fixed. - - typescript definition updates - -## v4.3.6 - -(crash hotfix) - -## v4.3.5 - - - Fixed an issue with DOS line endings strings separated by `\` and a new line. - - Improved fix for the output size regression related to unused references within the extends section of a class. - - Variable names of anonymous functions (eg: `const x = () => { ... }` or `var func = function () {...}`) are now preserved when keep_fnames is true. - - Fixed performance degradation introduced for large payloads in v4.2.0 - -## v4.3.4 - - - Fixed a regression where the output size was increased when unused classes were referred to in the extends clause of a class. - - Small typescript typings fixes. - - Comments with `@preserve`, `@license`, `@cc_on` as well as comments starting with `/*!` and `/**!` are now preserved by default. - -## v4.3.3 - - - Fixed a problem where parsing template strings would mix up octal notation and a slash followed by a zero representing a null character. - - Started accepting the name `async` in destructuring arguments with default value. - - Now Terser takes into account side effects inside class `extends` clauses. - - Added parens whenever there's a comment between a return statement and the returned value, to prevent issues with ASI. - - Stopped using raw RegExp objects, since the spec is going to continue to evolve. This ensures Terser is able to process new, unknown RegExp flags and features. This is a breaking change in the AST node AST_RegExp. - -## v4.3.2 - - - Typescript typing fix - - Ensure that functions can't be inlined, by reduce_vars, into places where they're accessing variables with the same name, but from somewhere else. - -## v4.3.1 - - - Fixed an issue from 4.3.0 where any block scope within a for loop erroneously had its parent set to the function scopee - - Fixed an issue where compressing IIFEs with argument expansions would result in some parameters becoming undefined - - addEventListener options argument's properties are now part of the DOM properties list. - -## v4.3.0 - - - Do not drop computed object keys with side effects - - Functions passed to other functions in calls are now wrapped in parentheses by default, which speeds up loading most modules - - Objects with computed properties are now less likely to be hoisted - - Speed and memory efficiency optimizations - - Fixed scoping issues with `try` and `switch` - -## v4.2.1 - - - Minor refactors - - Fixed a bug similar to #369 in collapse_vars - - Functions can no longer be inlined into a place where they're going to be compared with themselves. - - reduce_funcs option is now legacy, as using reduce_vars without reduce_funcs caused some weird corner cases. As a result, it is now implied in reduce_vars and can't be turned off without turning off reduce_vars. - - Bug which would cause a random stack overflow has now been fixed. - -## v4.2.0 - - - When the source map URL is `inline`, don't write it to a file. - - Fixed output parens when a lambda literal is the tag on a tagged template string. - - The `mangle.properties.undeclared` option was added. This enables the property mangler to mangle properties of variables which can be found in the name cache, but whose properties are not known to this Terser run. - - The v8 bug where the toString and source representations of regexes like `RegExp("\\\n")` includes an actual newline is now fixed. - - Now we're guaranteed to not have duplicate comments in the output - - Domprops updates - -## v4.1.4 - - - Fixed a crash when inlining a function into somewhere else when it has interdependent, non-removable variables. - -## v4.1.3 - - - Several issues with the `reduce_vars` option were fixed. - - Starting this version, we only have a dist/bundle.min.js - -## v4.1.2 - - - The hotfix was hotfixed - -## v4.1.1 - - - Fixed a bug where toplevel scopes were being mixed up with lambda scopes - -## v4.1.0 - - - Internal functions were replaced by `Object.assign`, `Array.prototype.some`, `Array.prototype.find` and `Array.prototype.every`. - - A serious issue where some ESM-native code was broken was fixed. - - Performance improvements were made. - - Support for BigInt was added. - - Inline efficiency was improved. Functions are now being inlined more proactively instead of being inlined only after another Compressor pass. - -## v4.0.2 - -(Hotfix release. Reverts unmapped segments PR [#342](https://github.com/terser/terser/pull/342), which will be put back on Terser when the upstream issue is resolved) - -## v4.0.1 - - - Collisions between the arguments of inlined functions and names in the outer scope are now being avoided while inlining - - Unmapped segments are now preserved when compressing a file which has source maps - - Default values of functions are now correctly converted from Mozilla AST to Terser AST - - JSON ⊂ ECMAScript spec (if you don't know what this is you don't need to) - - Export AST_* classes to library users - - Fixed issue with `collapse_vars` when functions are created with the same name as a variable which already exists - - Added `MutationObserverInit` (Object with options for initialising a mutation observer) properties to the DOM property list - - Custom `Error` subclasses are now internally used instead of old-school Error inheritance hacks. - - Documentation fixes - - Performance optimizations - -## v4.0.0 - - - **breaking change**: The `variables` property of all scopes has become a standard JavaScript `Map` as opposed to the old bespoke `Dictionary` object. - - Typescript definitions were fixed - - `terser --help` was fixed - - The public interface was cleaned up - - Fixed optimisation of `Array` and `new Array` - - Added the `keep_quoted=strict` mode to mangle_props, which behaves more like Google Closure Compiler by mangling all unquoted property names, instead of reserving quoted property names automatically. - - Fixed parent functions' parameters being shadowed in some cases - - Allowed Terser to run in a situation where there are custom functions attached to Object.prototype - - And more bug fixes, optimisations and internal changes - -## v3.17.0 - - - More DOM properties added to --mangle-properties's DOM property list - - Closed issue where if 2 functions had the same argument name, Terser would not inline them together properly - - Fixed issue with `hasOwnProperty.call` - - You can now list files to minify in a Terser config file - - Started replacing `new Array()` with an array literal - - Started using ES6 capabilities like `Set` and the `includes` method for strings and arrays - -## v3.16.1 - - - Fixed issue where Terser being imported with `import` would cause it not to work due to the `__esModule` property. (PR #254 was submitted, which was nice, but since it wasn't a pure commonJS approach I decided to go with my own solution) - -## v3.16.0 - - - No longer leaves names like Array or Object or window as a SimpleStatement (statement which is just a single expression). - - Add support for sections sourcemaps (IndexedSourceMapConsumer) - - Drops node.js v4 and starts using commonJS - - Is now built with rollup - -## v3.15.0 - - - Inlined spread syntax (`[...[1, 2, 3], 4, 5] => [1, 2, 3, 4, 5]`) in arrays and objects. - - Fixed typo in compressor warning - - Fixed inline source map input bug - - Fixed parsing of template literals with unnecessary escapes (Like `\\a`) diff --git a/build_vtk_bundle/node_modules/terser/LICENSE b/build_vtk_bundle/node_modules/terser/LICENSE deleted file mode 100644 index 3b07e946..00000000 --- a/build_vtk_bundle/node_modules/terser/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright 2012-2018 (c) Mihai Bazon - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - - * Redistributions of source code must retain the above - copyright notice, this list of conditions and the following - disclaimer. - - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials - provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY -EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE -LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, -OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR -TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -SUCH DAMAGE. diff --git a/build_vtk_bundle/node_modules/terser/PATRONS.md b/build_vtk_bundle/node_modules/terser/PATRONS.md deleted file mode 100644 index 3df7715e..00000000 --- a/build_vtk_bundle/node_modules/terser/PATRONS.md +++ /dev/null @@ -1,15 +0,0 @@ -# Our patrons - -These are the first-tier patrons from Patreon (notice: **The Terser Patreon is shutting down in favor of opencollective**). My appreciation goes to everyone on this list for supporting the project! - - * 38elements - * Alan Orozco - * Aria Buckles - * CKEditor - * Mariusz Nowak - * Nakshatra Mukhopadhyay - * Philippe Léger - * Piotrek Koszuliński - * Serhiy Shyyko - * Viktor Hubert - * 龙腾道 diff --git a/build_vtk_bundle/node_modules/terser/README.md b/build_vtk_bundle/node_modules/terser/README.md deleted file mode 100644 index 27cf463b..00000000 --- a/build_vtk_bundle/node_modules/terser/README.md +++ /dev/null @@ -1,1419 +0,0 @@ -

Terser

- - [![NPM Version][npm-image]][npm-url] - [![NPM Downloads][downloads-image]][downloads-url] - [![CI pipeline][ci-image]][ci-url] - [![Opencollective financial contributors][opencollective-contributors]][opencollective-url] - -A JavaScript mangler/compressor toolkit for ES6+. - -*note*: You can support this project on patreon: [link] **The Terser Patreon is shutting down in favor of opencollective**. Check out [PATRONS.md](https://github.com/terser/terser/blob/master/PATRONS.md) for our first-tier patrons. - -Terser recommends you use RollupJS to bundle your modules, as that produces smaller code overall. - -*Beautification* has been undocumented and is *being removed* from terser, we recommend you use [prettier](https://npmjs.com/package/prettier). - -Find the changelog in [CHANGELOG.md](https://github.com/terser/terser/blob/master/CHANGELOG.md) - - - -[npm-image]: https://img.shields.io/npm/v/terser.svg -[npm-url]: https://npmjs.org/package/terser -[downloads-image]: https://img.shields.io/npm/dm/terser.svg -[downloads-url]: https://npmjs.org/package/terser -[ci-image]: https://github.com/terser/terser/actions/workflows/ci.yml/badge.svg -[ci-url]: https://github.com/terser/terser/actions/workflows/ci.yml -[opencollective-contributors]: https://opencollective.com/terser/tiers/badge.svg -[opencollective-url]: https://opencollective.com/terser - -Why choose terser? ------------------- - -`uglify-es` is [no longer maintained](https://github.com/mishoo/UglifyJS2/issues/3156#issuecomment-392943058) and `uglify-js` does not support ES6+. - -**`terser`** is a fork of `uglify-es` that mostly retains API and CLI compatibility -with `uglify-es` and `uglify-js@3`. - -Install -------- - -First make sure you have installed the latest version of [node.js](http://nodejs.org/) -(You may need to restart your computer after this step). - -From NPM for use as a command line app: - - npm install terser -g - -From NPM for programmatic use: - - npm install terser - -# Command line usage - - - -``` -terser [input files] [options] -``` - -Terser can take multiple input files. It's recommended that you pass the -input files first, then pass the options. Terser will parse input files -in sequence and apply any compression options. The files are parsed in the -same global scope, that is, a reference from a file to some -variable/function declared in another file will be matched properly. - -Command line arguments that take options (like --parse, --compress, --mangle and ---format) can take in a comma-separated list of default option overrides. For -instance: - - terser input.js --compress ecma=2015,computed_props=false - -If no input file is specified, Terser will read from STDIN. - -If you wish to pass your options before the input files, separate the two with -a double dash to prevent input files being used as option arguments: - - terser --compress --mangle -- input.js - -### Command line options - -``` - -h, --help Print usage information. - `--help options` for details on available options. - -V, --version Print version number. - -p, --parse Specify parser options: - `acorn` Use Acorn for parsing. - `bare_returns` Allow return outside of functions. - Useful when minifying CommonJS - modules and Userscripts that may - be anonymous function wrapped (IIFE) - by the .user.js engine `caller`. - `expression` Parse a single expression, rather than - a program (for parsing JSON). - `spidermonkey` Assume input files are SpiderMonkey - AST format (as JSON). - -c, --compress [options] Enable compressor/specify compressor options: - `pure_funcs` List of functions that can be safely - removed when their return values are - not used. - -m, --mangle [options] Mangle names/specify mangler options: - `reserved` List of names that should not be mangled. - --mangle-props [options] Mangle properties/specify mangler options: - `builtins` Mangle property names that overlaps - with standard JavaScript globals and DOM - API props. - `debug` Add debug prefix and suffix. - `keep_quoted` Only mangle unquoted properties, quoted - properties are automatically reserved. - `strict` disables quoted properties - being automatically reserved. - `regex` Only mangle matched property names. - `only_annotated` Only mangle properties defined with /*@__MANGLE_PROP__*/. - `reserved` List of names that should not be mangled. - -f, --format [options] Specify format options. - `preamble` Preamble to prepend to the output. You - can use this to insert a comment, for - example for licensing information. - This will not be parsed, but the source - map will adjust for its presence. - `quote_style` Quote style: - 0 - auto - 1 - single - 2 - double - 3 - original - `wrap_iife` Wrap IIFEs in parenthesis. Note: you may - want to disable `negate_iife` under - compressor options. - `wrap_func_args` Wrap function arguments in parenthesis. - -o, --output Output file path (default STDOUT). Specify `ast` or - `spidermonkey` to write Terser or SpiderMonkey AST - as JSON to STDOUT respectively. - --comments [filter] Preserve copyright comments in the output. By - default this works like Google Closure, keeping - JSDoc-style comments that contain e.g. "@license", - or start with "!". You can optionally pass one of the - following arguments to this flag: - - "all" to keep all comments - - `false` to omit comments in the output - - a valid JS RegExp like `/foo/` or `/^!/` to - keep only matching comments. - Note that currently not *all* comments can be - kept when compression is on, because of dead - code removal or cascading statements into - sequences. - --config-file Read `minify()` options from JSON file. - -d, --define [=value] Global definitions. - --ecma Specify ECMAScript release: 5, 2015, 2016, etc. - -e, --enclose [arg[:value]] Embed output in a big function with configurable - arguments and values. - --ie8 Support non-standard Internet Explorer 8. - Equivalent to setting `ie8: true` in `minify()` - for `compress`, `mangle` and `format` options. - By default Terser will not try to be IE-proof. - --keep-classnames Do not mangle/drop class names. - --keep-fnames Do not mangle/drop function names. Useful for - code relying on Function.prototype.name. - --module Input is an ES6 module. If `compress` or `mangle` is - enabled then the `toplevel` option, as well as strict mode, - will be enabled. - --name-cache File to hold mangled name mappings. - --safari10 Support non-standard Safari 10/11. - Equivalent to setting `safari10: true` in `minify()` - for `mangle` and `format` options. - By default `terser` will not work around - Safari 10/11 bugs. - --source-map [options] Enable source map/specify source map options: - `base` Path to compute relative paths from input files. - `content` Input source map, useful if you're compressing - JS that was generated from some other original - code. Specify "inline" if the source map is - included within the sources. - `filename` Name and/or location of the output source. - `includeSources` Pass this flag if you want to include - the content of source files in the - source map as sourcesContent property. - `root` Path to the original source to be included in - the source map. - `url` If specified, path to the source map to append in - `//# sourceMappingURL`. - --timings Display operations run time on STDERR. - --toplevel Compress and/or mangle variables in top level scope. - --wrap Embed everything in a big function, making the - “exports” and “global” variables available. You - need to pass an argument to this option to - specify the name that your module will take - when included in, say, a browser. -``` - -Specify `--output` (`-o`) to declare the output file. Otherwise the output -goes to STDOUT. - -## CLI source map options - -Terser can generate a source map file, which is highly useful for -debugging your compressed JavaScript. To get a source map, pass -`--source-map --output output.js` (source map will be written out to -`output.js.map`). - -Additional options: - -- `--source-map "filename=''"` to specify the name of the source map. - -- `--source-map "root=''"` to pass the URL where the original files can be found. - -- `--source-map "url=''"` to specify the URL where the source map can be found. - Otherwise Terser assumes HTTP `X-SourceMap` is being used and will omit the - `//# sourceMappingURL=` directive. - -For example: - - terser js/file1.js js/file2.js \ - -o foo.min.js -c -m \ - --source-map "root='http://foo.com/src',url='foo.min.js.map'" - -The above will compress and mangle `file1.js` and `file2.js`, will drop the -output in `foo.min.js` and the source map in `foo.min.js.map`. The source -mapping will refer to `http://foo.com/src/js/file1.js` and -`http://foo.com/src/js/file2.js` (in fact it will list `http://foo.com/src` -as the source map root, and the original files as `js/file1.js` and -`js/file2.js`). - -### Composed source map - -When you're compressing JS code that was output by a compiler such as -CoffeeScript, mapping to the JS code won't be too helpful. Instead, you'd -like to map back to the original code (i.e. CoffeeScript). Terser has an -option to take an input source map. Assuming you have a mapping from -CoffeeScript → compiled JS, Terser can generate a map from CoffeeScript → -compressed JS by mapping every token in the compiled JS to its original -location. - -To use this feature pass `--source-map "content='/path/to/input/source.map'"` -or `--source-map "content=inline"` if the source map is included inline with -the sources. - -## CLI compress options - -You need to pass `--compress` (`-c`) to enable the compressor. Optionally -you can pass a comma-separated list of [compress options](#compress-options). - -Options are in the form `foo=bar`, or just `foo` (the latter implies -a boolean option that you want to set `true`; it's effectively a -shortcut for `foo=true`). - -Example: - - terser file.js -c toplevel,sequences=false - -## CLI mangle options - -To enable the mangler you need to pass `--mangle` (`-m`). The following -(comma-separated) options are supported: - -- `toplevel` (default `false`) -- mangle names declared in the top level scope. - -- `eval` (default `false`) -- mangle names visible in scopes where `eval` or `with` are used. - -When mangling is enabled but you want to prevent certain names from being -mangled, you can declare those names with `--mangle reserved` — pass a -comma-separated list of names. For example: - - terser ... -m reserved=['$','require','exports'] - -to prevent the `require`, `exports` and `$` names from being changed. - -### CLI mangling property names (`--mangle-props`) - -**Note:** THIS **WILL** BREAK YOUR CODE. A good rule of thumb is not to use this unless you know exactly what you're doing and how this works and read this section until the end. - -Mangling property names is a separate step, different from variable name mangling. Pass -`--mangle-props` to enable it. The least dangerous -way to use this is to use the `regex` option like so: - -``` -terser example.js -c -m --mangle-props regex=/_$/ -``` - -This will mangle all properties that end with an -underscore. So you can use it to mangle internal methods. - -By default, it will mangle all properties in the -input code with the exception of built in DOM properties and properties -in core JavaScript classes, which is what will break your code if you don't: - -1. Control all the code you're mangling -2. Avoid using a module bundler, as they usually will call Terser on each file individually, making it impossible to pass mangled objects between modules. -3. Avoid calling functions like `defineProperty` or `hasOwnProperty`, because they refer to object properties using strings and will break your code if you don't know what you are doing. - -An example: - -```javascript -// example.js -var x = { - baz_: 0, - foo_: 1, - calc: function() { - return this.foo_ + this.baz_; - } -}; -x.bar_ = 2; -x["baz_"] = 3; -console.log(x.calc()); -``` -Mangle all properties (except for JavaScript `builtins`) (**very** unsafe): -```bash -$ terser example.js -c passes=2 -m --mangle-props -``` -```javascript -var x={o:3,t:1,i:function(){return this.t+this.o},s:2};console.log(x.i()); -``` -Mangle all properties except for `reserved` properties (still very unsafe): -```bash -$ terser example.js -c passes=2 -m --mangle-props reserved=[foo_,bar_] -``` -```javascript -var x={o:3,foo_:1,t:function(){return this.foo_+this.o},bar_:2};console.log(x.t()); -``` -Mangle all properties matching a `regex` (not as unsafe but still unsafe): -```bash -$ terser example.js -c passes=2 -m --mangle-props regex=/_$/ -``` -```javascript -var x={o:3,t:1,calc:function(){return this.t+this.o},i:2};console.log(x.calc()); -``` - -Combining mangle properties options: -```bash -$ terser example.js -c passes=2 -m --mangle-props regex=/_$/,reserved=[bar_] -``` -```javascript -var x={o:3,t:1,calc:function(){return this.t+this.o},bar_:2};console.log(x.calc()); -``` - -In order for this to be of any use, we avoid mangling standard JS names and DOM -API properties by default (`--mangle-props builtins` to override). - -A regular expression can be used to define which property names should be -mangled. For example, `--mangle-props regex=/^_/` will only mangle property -names that start with an underscore. - -When you compress multiple files using this option, in order for them to -work together in the end we need to ensure somehow that one property gets -mangled to the same name in all of them. For this, pass `--name-cache filename.json` -and Terser will maintain these mappings in a file which can then be reused. -It should be initially empty. Example: - -```bash -$ rm -f /tmp/cache.json # start fresh -$ terser file1.js file2.js --mangle-props --name-cache /tmp/cache.json -o part1.js -$ terser file3.js file4.js --mangle-props --name-cache /tmp/cache.json -o part2.js -``` - -Now, `part1.js` and `part2.js` will be consistent with each other in terms -of mangled property names. - -Using the name cache is not necessary if you compress all your files in a -single call to Terser. - -### Mangling unquoted names (`--mangle-props keep_quoted`) - -Using quoted property name (`o["foo"]`) reserves the property name (`foo`) -so that it is not mangled throughout the entire script even when used in an -unquoted style (`o.foo`). Example: - -```javascript -// stuff.js -var o = { - "foo": 1, - bar: 3 -}; -o.foo += o.bar; -console.log(o.foo); -``` -```bash -$ terser stuff.js --mangle-props keep_quoted -c -m -``` -```javascript -var o={foo:1,o:3};o.foo+=o.o,console.log(o.foo); -``` - -### Debugging property name mangling - -You can also pass `--mangle-props debug` in order to mangle property names -without completely obscuring them. For example the property `o.foo` -would mangle to `o._$foo$_` with this option. This allows property mangling -of a large codebase while still being able to debug the code and identify -where mangling is breaking things. - -```bash -$ terser stuff.js --mangle-props debug -c -m -``` -```javascript -var o={_$foo$_:1,_$bar$_:3};o._$foo$_+=o._$bar$_,console.log(o._$foo$_); -``` - -You can also pass a custom suffix using `--mangle-props debug=XYZ`. This would then -mangle `o.foo` to `o._$foo$XYZ_`. You can change this each time you compile a -script to identify how a property got mangled. One technique is to pass a -random number on every compile to simulate mangling changing with different -inputs (e.g. as you update the input script with new properties), and to help -identify mistakes like writing mangled keys to storage. - - - -# API Reference - - - -Assuming installation via NPM, you can load Terser in your application -like this: - -```javascript -const { minify } = require("terser"); -``` - -Or, - -```javascript -import { minify } from "terser"; -``` - -Browser loading is also supported. It exposes a global variable `Terser` containing a `.minify` property: -```html - - -``` - -There is an async high level function, **`async minify(code, options)`**, -which will perform all minification [phases](#minify-options) in a configurable -manner. By default `minify()` will enable [`compress`](#compress-options) -and [`mangle`](#mangle-options). Example: -```javascript -var code = "function add(first, second) { return first + second; }"; -var result = await minify(code, { sourceMap: true }); -console.log(result.code); // minified output: function add(n,d){return n+d} -console.log(result.map); // source map -``` - -There is also a `minify_sync()` alternative version of it, which returns instantly. - -You can `minify` more than one JavaScript file at a time by using an object -for the first argument where the keys are file names and the values are source -code: -```javascript -var code = { - "file1.js": "function add(first, second) { return first + second; }", - "file2.js": "console.log(add(1 + 2, 3 + 4));" -}; -var result = await minify(code); -console.log(result.code); -// function add(d,n){return d+n}console.log(add(3,7)); -``` - -The `toplevel` option: -```javascript -var code = { - "file1.js": "function add(first, second) { return first + second; }", - "file2.js": "console.log(add(1 + 2, 3 + 4));" -}; -var options = { toplevel: true }; -var result = await minify(code, options); -console.log(result.code); -// console.log(3+7); -``` - -The `nameCache` option: -```javascript -var options = { - mangle: { - toplevel: true, - }, - nameCache: {} -}; -var result1 = await minify({ - "file1.js": "function add(first, second) { return first + second; }" -}, options); -var result2 = await minify({ - "file2.js": "console.log(add(1 + 2, 3 + 4));" -}, options); -console.log(result1.code); -// function n(n,r){return n+r} -console.log(result2.code); -// console.log(n(3,7)); -``` - -You may persist the name cache to the file system in the following way: -```javascript -var cacheFileName = "/tmp/cache.json"; -var options = { - mangle: { - properties: true, - }, - nameCache: JSON.parse(fs.readFileSync(cacheFileName, "utf8")) -}; -fs.writeFileSync("part1.js", await minify({ - "file1.js": fs.readFileSync("file1.js", "utf8"), - "file2.js": fs.readFileSync("file2.js", "utf8") -}, options).code, "utf8"); -fs.writeFileSync("part2.js", await minify({ - "file3.js": fs.readFileSync("file3.js", "utf8"), - "file4.js": fs.readFileSync("file4.js", "utf8") -}, options).code, "utf8"); -fs.writeFileSync(cacheFileName, JSON.stringify(options.nameCache), "utf8"); -``` - -An example of a combination of `minify()` options: -```javascript -var code = { - "file1.js": "function add(first, second) { return first + second; }", - "file2.js": "console.log(add(1 + 2, 3 + 4));" -}; -var options = { - toplevel: true, - compress: { - global_defs: { - "@console.log": "alert" - }, - passes: 2 - }, - format: { - preamble: "/* minified */" - } -}; -var result = await minify(code, options); -console.log(result.code); -// /* minified */ -// alert(10);" -``` - -An error example: -```javascript -try { - const result = await minify({"foo.js" : "if (0) else console.log(1);"}); - // Do something with result -} catch (error) { - const { message, filename, line, col, pos } = error; - // Do something with error -} -``` - -## Minify options - -- `ecma` (default `undefined`) - pass `5`, `2015`, `2016`, etc to override - `compress` and `format`'s `ecma` options. - -- `enclose` (default `false`) - pass `true`, or a string in the format - of `"args[:values]"`, where `args` and `values` are comma-separated - argument names and values, respectively, to embed the output in a big - function with the configurable arguments and values. - -- `parse` (default `{}`) — pass an object if you wish to specify some - additional [parse options](#parse-options). - -- `compress` (default `{}`) — pass `false` to skip compressing entirely. - Pass an object to specify custom [compress options](#compress-options). - -- `mangle` (default `true`) — pass `false` to skip mangling names, or pass - an object to specify [mangle options](#mangle-options) (see below). - - - `mangle.properties` (default `false`) — a subcategory of the mangle option. - Pass an object to specify custom [mangle property options](#mangle-properties-options). - -- `module` (default `false`) — Use when minifying an ES6 module. "use strict" - is implied and names can be mangled on the top scope. If `compress` or - `mangle` is enabled then the `toplevel` option will be enabled. - -- `format` or `output` (default `null`) — pass an object if you wish to specify - additional [format options](#format-options). The defaults are optimized - for best compression. - -- `sourceMap` (default `false`) - pass an object if you wish to specify - [source map options](#source-map-options). - -- `toplevel` (default `false`) - set to `true` if you wish to enable top level - variable and function name mangling and to drop unused variables and functions. - -- `nameCache` (default `null`) - pass an empty object `{}` or a previously - used `nameCache` object if you wish to cache mangled variable and - property names across multiple invocations of `minify()`. Note: this is - a read/write property. `minify()` will read the name cache state of this - object and update it during minification so that it may be - reused or externally persisted by the user. - -- `ie8` (default `false`) - set to `true` to support IE8. - -- `keep_classnames` (default: `undefined`) - pass `true` to prevent discarding or mangling - of class names. Pass a regular expression to only keep class names matching that regex. - -- `keep_fnames` (default: `false`) - pass `true` to prevent discarding or mangling - of function names. Pass a regular expression to only keep function names matching that regex. - Useful for code relying on `Function.prototype.name`. If the top level minify option - `keep_classnames` is `undefined` it will be overridden with the value of the top level - minify option `keep_fnames`. - -- `safari10` (default: `false`) - pass `true` to work around Safari 10/11 bugs in - loop scoping and `await`. See `safari10` options in [`mangle`](#mangle-options) - and [`format`](#format-options) for details. - -## Minify options structure - -```javascript -{ - parse: { - // parse options - }, - compress: { - // compress options - }, - mangle: { - // mangle options - - properties: { - // mangle property options - } - }, - format: { - // format options (can also use `output` for backwards compatibility) - }, - sourceMap: { - // source map options - }, - ecma: 5, // specify one of: 5, 2015, 2016, etc. - enclose: false, // or specify true, or "args:values" - keep_classnames: false, - keep_fnames: false, - ie8: false, - module: false, - nameCache: null, // or specify a name cache object - safari10: false, - toplevel: false -} -``` - -### Source map options - -To generate a source map: -```javascript -var result = await minify({"file1.js": "var a = function() {};"}, { - sourceMap: { - filename: "out.js", - url: "out.js.map" - } -}); -console.log(result.code); // minified output -console.log(result.map); // source map -``` - -Note that the source map is not saved in a file, it's just returned in -`result.map`. The value passed for `sourceMap.url` is only used to set -`//# sourceMappingURL=out.js.map` in `result.code`. The value of -`filename` is only used to set `file` attribute (see [the spec](https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k)) -in source map file. - -You can set option `sourceMap.url` to be `"inline"` and source map will -be appended to code. - -You can also specify sourceRoot property to be included in source map: -```javascript -var result = await minify({"file1.js": "var a = function() {};"}, { - sourceMap: { - root: "http://example.com/src", - url: "out.js.map" - } -}); -``` - -If you're compressing compiled JavaScript and have a source map for it, you -can use `sourceMap.content`: -```javascript -var result = await minify({"compiled.js": "compiled code"}, { - sourceMap: { - content: "content from compiled.js.map", - url: "minified.js.map" - } -}); -// same as before, it returns `code` and `map` -``` - -If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.url`. - -If you happen to need the source map as a raw object, set `sourceMap.asObject` to `true`. - - - - - -## Parse options - -- `bare_returns` (default `false`) -- support top level `return` statements - -- `html5_comments` (default `true`) - -- `shebang` (default `true`) -- support `#!command` as the first line - -- `spidermonkey` (default `false`) -- accept a Spidermonkey (Mozilla) AST - -## Compress options - -- `defaults` (default: `true`) -- Pass `false` to disable most default - enabled `compress` transforms. Useful when you only want to enable a few - `compress` options while disabling the rest. - -- `arrows` (default: `true`) -- Class and object literal methods are converted - will also be converted to arrow expressions if the resultant code is shorter: - `m(){return x}` becomes `m:()=>x`. To do this to regular ES5 functions which - don't use `this` or `arguments`, see `unsafe_arrows`. - -- `arguments` (default: `false`) -- replace `arguments[index]` with function - parameter name whenever possible. - -- `booleans` (default: `true`) -- various optimizations for boolean context, - for example `!!a ? b : c → a ? b : c` - -- `booleans_as_integers` (default: `false`) -- Turn booleans into 0 and 1, also - makes comparisons with booleans use `==` and `!=` instead of `===` and `!==`. - -- `collapse_vars` (default: `true`) -- Collapse single-use non-constant variables, - side effects permitting. - -- `comparisons` (default: `true`) -- apply certain optimizations to binary nodes, - e.g. `!(a <= b) → a > b` (only when `unsafe_comps`), attempts to negate binary - nodes, e.g. `a = !b && !c && !d && !e → a=!(b||c||d||e)` etc. Note: `comparisons` - works best with `lhs_constants` enabled. - -- `computed_props` (default: `true`) -- Transforms constant computed properties - into regular ones: `{["computed"]: 1}` is converted to `{computed: 1}`. - -- `conditionals` (default: `true`) -- apply optimizations for `if`-s and conditional - expressions - -- `dead_code` (default: `true`) -- remove unreachable code - -- `directives` (default: `true`) -- remove redundant or non-standard directives - -- `drop_console` (default: `false`) -- Pass `true` to discard calls to - `console.*` functions. If you only want to discard a portion of console, - you can pass an array like this `['log', 'info']`, which will only discard `console.log`、 `console.info`. - -- `drop_debugger` (default: `true`) -- remove `debugger;` statements - -- `ecma` (default: `5`) -- Pass `2015` or greater to enable `compress` options that - will transform ES5 code into smaller ES6+ equivalent forms. - -- `evaluate` (default: `true`) -- attempt to evaluate constant expressions - -- `expression` (default: `false`) -- Pass `true` to preserve completion values - from terminal statements without `return`, e.g. in bookmarklets. - -- `global_defs` (default: `{}`) -- see [conditional compilation](#conditional-compilation) - -- `hoist_funs` (default: `false`) -- hoist function declarations - -- `hoist_props` (default: `true`) -- hoist properties from constant object and - array literals into regular variables subject to a set of constraints. For example: - `var o={p:1, q:2}; f(o.p, o.q);` is converted to `f(1, 2);`. Note: `hoist_props` - works best with `mangle` enabled, the `compress` option `passes` set to `2` or higher, - and the `compress` option `toplevel` enabled. - -- `hoist_vars` (default: `false`) -- hoist `var` declarations (this is `false` - by default because it seems to increase the size of the output in general) - -- `if_return` (default: `true`) -- optimizations for if/return and if/continue - -- `inline` (default: `true`) -- inline calls to function with simple/`return` statement: - - `false` -- same as `0` - - `0` -- disabled inlining - - `1` -- inline simple functions - - `2` -- inline functions with arguments - - `3` -- inline functions with arguments and variables - - `true` -- same as `3` - -- `join_vars` (default: `true`) -- join consecutive `var`, `let` and `const` statements - -- `keep_classnames` (default: `false`) -- Pass `true` to prevent the compressor from - discarding class names. Pass a regular expression to only keep class names matching - that regex. See also: the `keep_classnames` [mangle option](#mangle-options). - -- `keep_fargs` (default: `true`) -- Prevents the compressor from discarding unused - function arguments. You need this for code which relies on `Function.length`. - -- `keep_fnames` (default: `false`) -- Pass `true` to prevent the - compressor from discarding function names. Pass a regular expression to only keep - function names matching that regex. Useful for code relying on `Function.prototype.name`. - See also: the `keep_fnames` [mangle option](#mangle-options). - -- `keep_infinity` (default: `false`) -- Pass `true` to prevent `Infinity` from - being compressed into `1/0`, which may cause performance issues on Chrome. - -- `lhs_constants` (default: `true`) -- Moves constant values to the left-hand side - of binary nodes. `foo == 42 → 42 == foo` - -- `loops` (default: `true`) -- optimizations for `do`, `while` and `for` loops - when we can statically determine the condition. - -- `module` (default `false`) -- Pass `true` when compressing an ES6 module. Strict - mode is implied and the `toplevel` option as well. - -- `negate_iife` (default: `true`) -- negate "Immediately-Called Function Expressions" - where the return value is discarded, to avoid the parens that the - code generator would insert. - -- `passes` (default: `1`) -- The maximum number of times to run compress. - In some cases more than one pass leads to further compressed code. Keep in - mind more passes will take more time. - -- `properties` (default: `true`) -- rewrite property access using the dot notation, for - example `foo["bar"] → foo.bar` - -- `pure_funcs` (default: `null`) -- You can pass an array of names and - Terser will assume that those functions do not produce side - effects. DANGER: will not check if the name is redefined in scope. - An example case here, for instance `var q = Math.floor(a/b)`. If - variable `q` is not used elsewhere, Terser will drop it, but will - still keep the `Math.floor(a/b)`, not knowing what it does. You can - pass `pure_funcs: [ 'Math.floor' ]` to let it know that this - function won't produce any side effect, in which case the whole - statement would get discarded. The current implementation adds some - overhead (compression will be slower). - -- `pure_getters` (default: `"strict"`) -- If you pass `true` for - this, Terser will assume that object property access - (e.g. `foo.bar` or `foo["bar"]`) doesn't have any side effects. - Specify `"strict"` to treat `foo.bar` as side-effect-free only when - `foo` is certain to not throw, i.e. not `null` or `undefined`. - -- `pure_new` (default: `false`) -- Set to `true` to assume `new X()` never has - side effects. - -- `reduce_vars` (default: `true`) -- Improve optimization on variables assigned with and - used as constant values. - -- `reduce_funcs` (default: `true`) -- Inline single-use functions when - possible. Depends on `reduce_vars` being enabled. Disabling this option - sometimes improves performance of the output code. - -- `sequences` (default: `true`) -- join consecutive simple statements using the - comma operator. May be set to a positive integer to specify the maximum number - of consecutive comma sequences that will be generated. If this option is set to - `true` then the default `sequences` limit is `200`. Set option to `false` or `0` - to disable. The smallest `sequences` length is `2`. A `sequences` value of `1` - is grandfathered to be equivalent to `true` and as such means `200`. On rare - occasions the default sequences limit leads to very slow compress times in which - case a value of `20` or less is recommended. - -- `side_effects` (default: `true`) -- Remove expressions which have no side effects - and whose results aren't used. - -- `switches` (default: `true`) -- de-duplicate and remove unreachable `switch` branches - -- `toplevel` (default: `false`) -- drop unreferenced functions (`"funcs"`) and/or - variables (`"vars"`) in the top level scope (`false` by default, `true` to drop - both unreferenced functions and variables) - -- `top_retain` (default: `null`) -- prevent specific toplevel functions and - variables from `unused` removal (can be array, comma-separated, RegExp or - function. Implies `toplevel`) - -- `typeofs` (default: `true`) -- Transforms `typeof foo == "undefined"` into - `foo === void 0`. Note: recommend to set this value to `false` for IE10 and - earlier versions due to known issues. - -- `unsafe` (default: `false`) -- apply "unsafe" transformations - ([details](#the-unsafe-compress-option)). - -- `unsafe_arrows` (default: `false`) -- Convert ES5 style anonymous function - expressions to arrow functions if the function body does not reference `this`. - Note: it is not always safe to perform this conversion if code relies on the - the function having a `prototype`, which arrow functions lack. - This transform requires that the `ecma` compress option is set to `2015` or greater. - -- `unsafe_comps` (default: `false`) -- Reverse `<` and `<=` to `>` and `>=` to - allow improved compression. This might be unsafe when an at least one of two - operands is an object with computed values due the use of methods like `get`, - or `valueOf`. This could cause change in execution order after operands in the - comparison are switching. Or if one of two operands is `NaN`, the result is always - `false`. Compression only works if both `comparisons` and - `unsafe_comps` are both set to true. - -- `unsafe_Function` (default: `false`) -- compress and mangle `Function(args, code)` - when both `args` and `code` are string literals. - -- `unsafe_math` (default: `false`) -- optimize numerical expressions like - `2 * x * 3` into `6 * x`, which may give imprecise floating point results. - -- `unsafe_symbols` (default: `false`) -- removes keys from native Symbol - declarations, e.g `Symbol("kDog")` becomes `Symbol()`. - -- `unsafe_methods` (default: false) -- Converts `{ m: function(){} }` to - `{ m(){} }`. `ecma` must be set to `6` or greater to enable this transform. - If `unsafe_methods` is a RegExp then key/value pairs with keys matching the - RegExp will be converted to concise methods. - Note: if enabled there is a risk of getting a "`` is not a - constructor" TypeError should any code try to `new` the former function. - -- `unsafe_proto` (default: `false`) -- optimize expressions like - `Array.prototype.slice.call(a)` into `[].slice.call(a)` - -- `unsafe_regexp` (default: `false`) -- enable substitutions of variables with - `RegExp` values the same way as if they are constants. - -- `unsafe_undefined` (default: `false`) -- substitute `void 0` if there is a - variable named `undefined` in scope (variable name will be mangled, typically - reduced to a single character) - -- `unused` (default: `true`) -- drop unreferenced functions and variables (simple - direct variable assignments do not count as references unless set to `"keep_assign"`) - -## Mangle options - -- `eval` (default `false`) -- Pass `true` to mangle names visible in scopes - where `eval` or `with` are used. - -- `keep_classnames` (default `false`) -- Pass `true` to not mangle class names. - Pass a regular expression to only keep class names matching that regex. - See also: the `keep_classnames` [compress option](#compress-options). - -- `keep_fnames` (default `false`) -- Pass `true` to not mangle function names. - Pass a regular expression to only keep function names matching that regex. - Useful for code relying on `Function.prototype.name`. See also: the `keep_fnames` - [compress option](#compress-options). - -- `module` (default `false`) -- Pass `true` an ES6 modules, where the toplevel - scope is not the global scope. Implies `toplevel` and assumes input code is strict mode JS. - -- `nth_identifier` (default: an internal mangler that weights based on character - frequency analysis) -- Pass an object with a `get(n)` function that converts an - ordinal into the nth most favored (usually shortest) identifier. - Optionally also provide `reset()`, `sort()`, and `consider(chars, delta)` to - use character frequency analysis of the source code. - -- `reserved` (default `[]`) -- Pass an array of identifiers that should be - excluded from mangling. Example: `["foo", "bar"]`. - -- `toplevel` (default `false`) -- Pass `true` to mangle names declared in the - top level scope. - -- `safari10` (default `false`) -- Pass `true` to work around the Safari 10 loop - iterator [bug](https://bugs.webkit.org/show_bug.cgi?id=171041) - "Cannot declare a let variable twice". - See also: the `safari10` [format option](#format-options). - -Examples: - -```javascript -// test.js -var globalVar; -function funcName(firstLongName, anotherLongName) { - var myVariable = firstLongName + anotherLongName; -} -``` -```javascript -var code = fs.readFileSync("test.js", "utf8"); - -await minify(code).code; -// 'function funcName(a,n){}var globalVar;' - -await minify(code, { mangle: { reserved: ['firstLongName'] } }).code; -// 'function funcName(firstLongName,a){}var globalVar;' - -await minify(code, { mangle: { toplevel: true } }).code; -// 'function n(n,a){}var a;' -``` - -### Mangle properties options - -- `builtins` (default: `false`) — Use `true` to allow the mangling of builtin - DOM properties. Not recommended to override this setting. - -- `debug` (default: `false`) — Mangle names with the original name still present. - Pass an empty string `""` to enable, or a non-empty string to set the debug suffix. - -- `keep_quoted` (default: `false`) — How quoting properties (`{"prop": ...}` and `obj["prop"]`) controls what gets mangled. - - `"strict"` (recommended) -- `obj.prop` is mangled. - - `false` -- `obj["prop"]` is mangled. - - `true` -- `obj.prop` is mangled unless there is `obj["prop"]` elsewhere in the code. - -- `nth_identifier` (default: an internal mangler that weights based on character - frequency analysis) -- Pass an object with a `get(n)` function that converts an - ordinal into the nth most favored (usually shortest) identifier. - Optionally also provide `reset()`, `sort()`, and `consider(chars, delta)` to - use character frequency analysis of the source code. - -- `regex` (default: `null`) — Pass a [RegExp literal or pattern string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp) to only mangle property matching the regular expression. - -- `reserved` (default: `[]`) — Do not mangle property names listed in the - `reserved` array. - -- `undeclared` (default: `false`) - Mangle those names when they are accessed - as properties of known top level variables but their declarations are never - found in input code. May be useful when only minifying parts of a project. - See [#397](https://github.com/terser/terser/issues/397) for more details. - - -## Format options - -These options control the format of Terser's output code. Previously known -as "output options". - -- `ascii_only` (default `false`) -- escape Unicode characters in strings and - regexps (affects directives with non-ascii characters becoming invalid) - -- `beautify` (default `false`) -- (DEPRECATED) whether to beautify the output. - When using the legacy `-b` CLI flag, this is set to true by default. - -- `braces` (default `false`) -- always insert braces in `if`, `for`, - `do`, `while` or `with` statements, even if their body is a single - statement. - -- `comments` (default `"some"`) -- by default it keeps JSDoc-style comments - that contain "@license", "@copyright", "@preserve" or start with `!`, pass `true` - or `"all"` to preserve all comments, `false` to omit comments in the output, - a regular expression string (e.g. `/^!/`) or a function. - -- `ecma` (default `5`) -- set desired EcmaScript standard version for output. - Set `ecma` to `2015` or greater to emit shorthand object properties - i.e.: - `{a}` instead of `{a: a}`. The `ecma` option will only change the output in - direct control of the beautifier. Non-compatible features in your input will - still be output as is. For example: an `ecma` setting of `5` will **not** - convert modern code to ES5. - -- `indent_level` (default `4`) - -- `indent_start` (default `0`) -- prefix all lines by that many spaces - -- `inline_script` (default `true`) -- escape HTML comments and the slash in - occurrences of `` in strings - -- `keep_numbers` (default `false`) -- keep number literals as it was in original code - (disables optimizations like converting `1000000` into `1e6`) - -- `keep_quoted_props` (default `false`) -- when turned on, prevents stripping - quotes from property names in object literals. - -- `max_line_len` (default `false`) -- maximum line length (for minified code) - -- `preamble` (default `null`) -- when passed it must be a string and - it will be prepended to the output literally. The source map will - adjust for this text. Can be used to insert a comment containing - licensing information, for example. - -- `quote_keys` (default `false`) -- pass `true` to quote all keys in literal - objects - -- `quote_style` (default `0`) -- preferred quote style for strings (affects - quoted property names and directives as well): - - `0` -- prefers double quotes, switches to single quotes when there are - more double quotes in the string itself. `0` is best for gzip size. - - `1` -- always use single quotes - - `2` -- always use double quotes - - `3` -- always use the original quotes - -- `preserve_annotations` -- (default `false`) -- Preserve [Terser annotations](#annotations) in the output. - -- `safari10` (default `false`) -- set this option to `true` to work around - the [Safari 10/11 await bug](https://bugs.webkit.org/show_bug.cgi?id=176685). - See also: the `safari10` [mangle option](#mangle-options). - -- `semicolons` (default `true`) -- separate statements with semicolons. If - you pass `false` then whenever possible we will use a newline instead of a - semicolon, leading to more readable output of minified code (size before - gzip could be smaller; size after gzip insignificantly larger). - -- `shebang` (default `true`) -- preserve shebang `#!` in preamble (bash scripts) - -- `spidermonkey` (default `false`) -- produce a Spidermonkey (Mozilla) AST - -- `webkit` (default `false`) -- enable workarounds for WebKit bugs. - PhantomJS users should set this option to `true`. - -- `wrap_iife` (default `false`) -- pass `true` to wrap immediately invoked - function expressions. See - [#640](https://github.com/mishoo/UglifyJS2/issues/640) for more details. - -- `wrap_func_args` (default `false`) -- pass `true` in order to wrap - function expressions that are passed as arguments, in parenthesis. See - [OptimizeJS](https://github.com/nolanlawson/optimize-js) for more details. - - - - - -# Miscellaneous - - - -### Keeping copyright notices or other comments - -You can pass `--comments` to retain certain comments in the output. By -default it will keep comments starting with "!" and JSDoc-style comments that -contain "@preserve", "@copyright", "@license" or "@cc_on" (conditional compilation for IE). -You can pass `--comments all` to keep all the comments, or a valid JavaScript regexp to -keep only comments that match this regexp. For example `--comments /^!/` -will keep comments like `/*! Copyright Notice */`. - -Note, however, that there might be situations where comments are lost. For -example: -```javascript -function f() { - /** @preserve Foo Bar */ - function g() { - // this function is never called - } - return something(); -} -``` - -Even though it has "@preserve", the comment will be lost because the inner -function `g` (which is the AST node to which the comment is attached to) is -discarded by the compressor as not referenced. - -The safest comments where to place copyright information (or other info that -needs to be kept in the output) are comments attached to toplevel nodes. - -### The `unsafe` `compress` option - -It enables some transformations that *might* break code logic in certain -contrived cases, but should be fine for most code. It assumes that standard -built-in ECMAScript functions and classes have not been altered or replaced. -You might want to try it on your own code; it should reduce the minified size. -Some examples of the optimizations made when this option is enabled: - -- `new Array(1, 2, 3)` or `Array(1, 2, 3)` → `[ 1, 2, 3 ]` -- `Array.from([1, 2, 3])` → `[1, 2, 3]` -- `new Object()` → `{}` -- `String(exp)` or `exp.toString()` → `"" + exp` -- `new Object/RegExp/Function/Error/Array (...)` → we discard the `new` -- `"foo bar".substr(4)` → `"bar"` - -### Conditional compilation - -You can use the `--define` (`-d`) switch in order to declare global -variables that Terser will assume to be constants (unless defined in -scope). For example if you pass `--define DEBUG=false` then, coupled with -dead code removal Terser will discard the following from the output: -```javascript -if (DEBUG) { - console.log("debug stuff"); -} -``` - -You can specify nested constants in the form of `--define env.DEBUG=false`. - -Another way of doing that is to declare your globals as constants in a -separate file and include it into the build. For example you can have a -`build/defines.js` file with the following: -```javascript -var DEBUG = false; -var PRODUCTION = true; -// etc. -``` - -and build your code like this: - - terser build/defines.js js/foo.js js/bar.js... -c - -Terser will notice the constants and, since they cannot be altered, it -will evaluate references to them to the value itself and drop unreachable -code as usual. The build will contain the `const` declarations if you use -them. If you are targeting < ES6 environments which does not support `const`, -using `var` with `reduce_vars` (enabled by default) should suffice. - -### Conditional compilation API - -You can also use conditional compilation via the programmatic API. With the difference that the -property name is `global_defs` and is a compressor property: - -```javascript -var result = await minify(fs.readFileSync("input.js", "utf8"), { - compress: { - dead_code: true, - global_defs: { - DEBUG: false - } - } -}); -``` - -To replace an identifier with an arbitrary non-constant expression it is -necessary to prefix the `global_defs` key with `"@"` to instruct Terser -to parse the value as an expression: -```javascript -await minify("alert('hello');", { - compress: { - global_defs: { - "@alert": "console.log" - } - } -}).code; -// returns: 'console.log("hello");' -``` - -Otherwise it would be replaced as string literal: -```javascript -await minify("alert('hello');", { - compress: { - global_defs: { - "alert": "console.log" - } - } -}).code; -// returns: '"console.log"("hello");' -``` - -### Annotations - -Annotations in Terser are a way to tell it to treat a certain function call differently. The following annotations are available: - - * `/*@__INLINE__*/` - forces a function to be inlined somewhere. - * `/*@__NOINLINE__*/` - Makes sure the called function is not inlined into the call site. - * `/*@__PURE__*/` - Marks a function call as pure. That means, it can safely be dropped. - * `/*@__KEY__*/` - Marks a string literal as a property to also mangle it when mangling properties. - * `/*@__MANGLE_PROP__*/` - Opts-in an object property (or class field) for mangling, when the property mangler is enabled. - -You can use either a `@` sign at the start, or a `#`. - -Here are some examples on how to use them: - -```javascript -/*@__INLINE__*/ -function_always_inlined_here() - -/*#__NOINLINE__*/ -function_cant_be_inlined_into_here() - -const x = /*#__PURE__*/i_am_dropped_if_x_is_not_used() - -function lookup(object, key) { return object[key]; } -lookup({ i_will_be_mangled_too: "bar" }, /*@__KEY__*/ "i_will_be_mangled_too"); -``` - -### ESTree / SpiderMonkey AST - -Terser has its own abstract syntax tree format; for -[practical reasons](http://lisperator.net/blog/uglifyjs-why-not-switching-to-spidermonkey-ast/) -we can't easily change to using the SpiderMonkey AST internally. However, -Terser now has a converter which can import a SpiderMonkey AST. - -For example [Acorn](https://github.com/acornjs/acorn) is a super-fast parser that produces a -SpiderMonkey AST. It has a small CLI utility that parses one file and dumps -the AST in JSON on the standard output. To use Terser to mangle and -compress that: - - acorn file.js | terser -p spidermonkey -m -c - -The `-p spidermonkey` option tells Terser that all input files are not -JavaScript, but JS code described in SpiderMonkey AST in JSON. Therefore we -don't use our own parser in this case, but just transform that AST into our -internal AST. - -`spidermonkey` is also available in `minify` as `parse` and `format` options to -accept and/or produce a spidermonkey AST. - -### Use Acorn for parsing - -More for fun, I added the `-p acorn` option which will use Acorn to do all -the parsing. If you pass this option, Terser will `require("acorn")`. - -Acorn is really fast (e.g. 250ms instead of 380ms on some 650K code), but -converting the SpiderMonkey tree that Acorn produces takes another 150ms so -in total it's a bit more than just using Terser's own parser. - -### Terser Fast Minify Mode - -It's not well known, but whitespace removal and symbol mangling accounts -for 95% of the size reduction in minified code for most JavaScript - not -elaborate code transforms. One can simply disable `compress` to speed up -Terser builds by 3 to 4 times. - -| d3.js | size | gzip size | time (s) | -| --- | ---: | ---: | ---: | -| original | 451,131 | 108,733 | - | -| terser@3.7.5 mangle=false, compress=false | 316,600 | 85,245 | 0.82 | -| terser@3.7.5 mangle=true, compress=false | 220,216 | 72,730 | 1.45 | -| terser@3.7.5 mangle=true, compress=true | 212,046 | 70,954 | 5.87 | -| babili@0.1.4 | 210,713 | 72,140 | 12.64 | -| babel-minify@0.4.3 | 210,321 | 72,242 | 48.67 | -| babel-minify@0.5.0-alpha.01eac1c3 | 210,421 | 72,238 | 14.17 | - -To enable fast minify mode from the CLI use: -``` -terser file.js -m -``` -To enable fast minify mode with the API use: -```js -await minify(code, { compress: false, mangle: true }); -``` - -#### Source maps and debugging - -Various `compress` transforms that simplify, rearrange, inline and remove code -are known to have an adverse effect on debugging with source maps. This is -expected as code is optimized and mappings are often simply not possible as -some code no longer exists. For highest fidelity in source map debugging -disable the `compress` option and just use `mangle`. - -When debugging, make sure you enable the **"map scopes"** feature to map mangled variable names back to their original names. -Without this, all variable values will be `undefined`. See https://github.com/terser/terser/issues/1367 for more details. -

- -![image](https://user-images.githubusercontent.com/27283110/230441652-ac5cf6b0-5dc5-4ffc-9d8b-bd02875484f4.png) - -### Compiler assumptions - -To allow for better optimizations, the compiler makes various assumptions: - -- `.toString()` and `.valueOf()` don't have side effects, and for built-in - objects they have not been overridden. -- `undefined`, `NaN` and `Infinity` have not been externally redefined. -- `arguments.callee`, `arguments.caller` and `Function.prototype.caller` are not used. -- The code doesn't expect the contents of `Function.prototype.toString()` or - `Error.prototype.stack` to be anything in particular. -- Getting and setting properties on a plain object does not cause other side effects - (using `.watch()` or `Proxy`). -- Object properties can be added, removed and modified (not prevented with - `Object.defineProperty()`, `Object.defineProperties()`, `Object.freeze()`, - `Object.preventExtensions()` or `Object.seal()`). -- `document.all` is not `== null` -- Assigning properties to a class doesn't have side effects and does not throw. - -### Build Tools and Adaptors using Terser - -https://www.npmjs.com/browse/depended/terser - -### Replacing `uglify-es` with `terser` in a project using `yarn` - -A number of JS bundlers and uglify wrappers are still using buggy versions -of `uglify-es` and have not yet upgraded to `terser`. If you are using `yarn` -you can add the following alias to your project's `package.json` file: - -```js - "resolutions": { - "uglify-es": "npm:terser" - } -``` - -to use `terser` instead of `uglify-es` in all deeply nested dependencies -without changing any code. - -Note: for this change to take effect you must run the following commands -to remove the existing `yarn` lock file and reinstall all packages: - -``` -$ rm -rf node_modules yarn.lock -$ yarn -``` - - - -# Reporting issues - - - -## A minimal, reproducible example - -You're expected to provide a [minimal reproducible example] of input code that will demonstrate your issue. - -To get to this example, you can remove bits of your code and stop if your issue ceases to reproduce. - -## Obtaining the source code given to Terser - -Because users often don't control the call to `await minify()` or its arguments, Terser provides a `TERSER_DEBUG_DIR` environment variable to make terser output some debug logs. - -These logs will contain the input code and options of each `minify()` call. - -```bash -TERSER_DEBUG_DIR=/tmp/terser-log-dir command-that-uses-terser -ls /tmp/terser-log-dir -terser-debug-123456.log -``` - -If you're not sure how to set an environment variable on your shell (the above example works in bash), you can try using cross-env: - -``` -> npx cross-env TERSER_DEBUG_DIR=/path/to/logs command-that-uses-terser -``` - -## Stack traces - -In the terser CLI we use [source-map-support](https://npmjs.com/source-map-support) to produce good error stacks. In your own app, you're expected to enable source-map-support (read their docs) to have nice stack traces that will help you write good issues. - - - -# README.md Patrons: - -*note*: You can support this project on patreon: [link] **The Terser Patreon is shutting down in favor of opencollective**. Check out [PATRONS.md](https://github.com/terser/terser/blob/master/PATRONS.md) for our first-tier patrons. - -These are the second-tier patrons. Great thanks for your support! - - * CKEditor ![](https://c10.patreonusercontent.com/3/eyJoIjoxMDAsInciOjEwMH0%3D/patreon-media/p/user/15452278/f8548dcf48d740619071e8d614459280/1?token-time=2145916800&token-hash=SIQ54PhIPHv3M7CVz9LxS8_8v4sOw4H304HaXsXj8MM%3D) - * 38elements ![](https://c10.patreonusercontent.com/3/eyJ3IjoyMDB9/patreon-media/p/user/12501844/88e7fc5dd62d45c6a5626533bbd48cfb/1?token-time=2145916800&token-hash=c3AsQ5T0IQWic0zKxFHu-bGGQJkXQFvafvJ4bPerFR4%3D) - -## Contributors - -### Code Contributors - -This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. - - -### Financial Contributors - -Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/terser/contribute)] - -#### Individuals - - - -#### Organizations - -Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/terser/contribute)] - - - - - - - - - - - diff --git a/build_vtk_bundle/node_modules/terser/bin/package.json b/build_vtk_bundle/node_modules/terser/bin/package.json deleted file mode 100644 index d937a6f8..00000000 --- a/build_vtk_bundle/node_modules/terser/bin/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "bin", - "private": true, - "version": "1.0.0", - "main": "terser", - "type": "commonjs", - "author": "", - "license": "BSD-2-Clause", - "description": "A package to hold the Terser bin bundle as commonjs while keeping the rest of it ESM." -} diff --git a/build_vtk_bundle/node_modules/terser/bin/terser b/build_vtk_bundle/node_modules/terser/bin/terser deleted file mode 100755 index b0cdc7c5..00000000 --- a/build_vtk_bundle/node_modules/terser/bin/terser +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env node - -"use strict"; - -require("../tools/exit.cjs"); - -try { - require("source-map-support").install(); -} catch (err) {} - -const fs = require("fs"); -const path = require("path"); -const program = require("commander"); - -const packageJson = require("../package.json"); -const { _run_cli: run_cli } = require(".."); - -run_cli({ program, packageJson, fs, path }).catch((error) => { - console.error(error); - process.exitCode = 1; -}); diff --git a/build_vtk_bundle/node_modules/terser/bin/uglifyjs b/build_vtk_bundle/node_modules/terser/bin/uglifyjs deleted file mode 100755 index f1930250..00000000 --- a/build_vtk_bundle/node_modules/terser/bin/uglifyjs +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env node -// -*- js -*- -/* eslint-env node */ - -"use strict"; - -process.stderr.write( "DEPRECATION WARNING: uglifyjs binary will soon be discontinued!\n"); -process.stderr.write("Please use \"terser\" instead.\n\n"); - -require("./terser"); diff --git a/build_vtk_bundle/node_modules/terser/main.js b/build_vtk_bundle/node_modules/terser/main.js deleted file mode 100644 index 56ab3638..00000000 --- a/build_vtk_bundle/node_modules/terser/main.js +++ /dev/null @@ -1,27 +0,0 @@ -import "./lib/transform.js"; -import "./lib/mozilla-ast.js"; -import { minify } from "./lib/minify.js"; - -export { minify, minify_sync } from "./lib/minify.js"; -export { run_cli as _run_cli } from "./lib/cli.js"; - -export async function _default_options() { - const defs = {}; - - Object.keys(infer_options({ 0: 0 })).forEach((component) => { - const options = infer_options({ - [component]: {0: 0} - }); - - if (options) defs[component] = options; - }); - return defs; -} - -async function infer_options(options) { - try { - await minify("", options); - } catch (error) { - return error.defs; - } -} diff --git a/build_vtk_bundle/node_modules/terser/node_modules/commander/CHANGELOG.md b/build_vtk_bundle/node_modules/terser/node_modules/commander/CHANGELOG.md deleted file mode 100644 index 7dce779d..00000000 --- a/build_vtk_bundle/node_modules/terser/node_modules/commander/CHANGELOG.md +++ /dev/null @@ -1,419 +0,0 @@ -2.20.3 / 2019-10-11 -================== - - * Support Node.js 0.10 (Revert #1059) - * Ran "npm unpublish commander@2.20.2". There is no 2.20.2. - -2.20.1 / 2019-09-29 -================== - - * Improve executable subcommand tracking - * Update dev dependencies - -2.20.0 / 2019-04-02 -================== - - * fix: resolve symbolic links completely when hunting for subcommands (#935) - * Update index.d.ts (#930) - * Update Readme.md (#924) - * Remove --save option as it isn't required anymore (#918) - * Add link to the license file (#900) - * Added example of receiving args from options (#858) - * Added missing semicolon (#882) - * Add extension to .eslintrc (#876) - -2.19.0 / 2018-10-02 -================== - - * Removed newline after Options and Commands headers (#864) - * Bugfix - Error output (#862) - * Fix to change default value to string (#856) - -2.18.0 / 2018-09-07 -================== - - * Standardize help output (#853) - * chmod 644 travis.yml (#851) - * add support for execute typescript subcommand via ts-node (#849) - -2.17.1 / 2018-08-07 -================== - - * Fix bug in command emit (#844) - -2.17.0 / 2018-08-03 -================== - - * fixed newline output after help information (#833) - * Fix to emit the action even without command (#778) - * npm update (#823) - -2.16.0 / 2018-06-29 -================== - - * Remove Makefile and `test/run` (#821) - * Make 'npm test' run on Windows (#820) - * Add badge to display install size (#807) - * chore: cache node_modules (#814) - * chore: remove Node.js 4 (EOL), add Node.js 10 (#813) - * fixed typo in readme (#812) - * Fix types (#804) - * Update eslint to resolve vulnerabilities in lodash (#799) - * updated readme with custom event listeners. (#791) - * fix tests (#794) - -2.15.0 / 2018-03-07 -================== - - * Update downloads badge to point to graph of downloads over time instead of duplicating link to npm - * Arguments description - -2.14.1 / 2018-02-07 -================== - - * Fix typing of help function - -2.14.0 / 2018-02-05 -================== - - * only register the option:version event once - * Fixes issue #727: Passing empty string for option on command is set to undefined - * enable eqeqeq rule - * resolves #754 add linter configuration to project - * resolves #560 respect custom name for version option - * document how to override the version flag - * document using options per command - -2.13.0 / 2018-01-09 -================== - - * Do not print default for --no- - * remove trailing spaces in command help - * Update CI's Node.js to LTS and latest version - * typedefs: Command and Option types added to commander namespace - -2.12.2 / 2017-11-28 -================== - - * fix: typings are not shipped - -2.12.1 / 2017-11-23 -================== - - * Move @types/node to dev dependency - -2.12.0 / 2017-11-22 -================== - - * add attributeName() method to Option objects - * Documentation updated for options with --no prefix - * typings: `outputHelp` takes a string as the first parameter - * typings: use overloads - * feat(typings): update to match js api - * Print default value in option help - * Fix translation error - * Fail when using same command and alias (#491) - * feat(typings): add help callback - * fix bug when description is add after command with options (#662) - * Format js code - * Rename History.md to CHANGELOG.md (#668) - * feat(typings): add typings to support TypeScript (#646) - * use current node - -2.11.0 / 2017-07-03 -================== - - * Fix help section order and padding (#652) - * feature: support for signals to subcommands (#632) - * Fixed #37, --help should not display first (#447) - * Fix translation errors. (#570) - * Add package-lock.json - * Remove engines - * Upgrade package version - * Prefix events to prevent conflicts between commands and options (#494) - * Removing dependency on graceful-readlink - * Support setting name in #name function and make it chainable - * Add .vscode directory to .gitignore (Visual Studio Code metadata) - * Updated link to ruby commander in readme files - -2.10.0 / 2017-06-19 -================== - - * Update .travis.yml. drop support for older node.js versions. - * Fix require arguments in README.md - * On SemVer you do not start from 0.0.1 - * Add missing semi colon in readme - * Add save param to npm install - * node v6 travis test - * Update Readme_zh-CN.md - * Allow literal '--' to be passed-through as an argument - * Test subcommand alias help - * link build badge to master branch - * Support the alias of Git style sub-command - * added keyword commander for better search result on npm - * Fix Sub-Subcommands - * test node.js stable - * Fixes TypeError when a command has an option called `--description` - * Update README.md to make it beginner friendly and elaborate on the difference between angled and square brackets. - * Add chinese Readme file - -2.9.0 / 2015-10-13 -================== - - * Add option `isDefault` to set default subcommand #415 @Qix- - * Add callback to allow filtering or post-processing of help text #434 @djulien - * Fix `undefined` text in help information close #414 #416 @zhiyelee - -2.8.1 / 2015-04-22 -================== - - * Back out `support multiline description` Close #396 #397 - -2.8.0 / 2015-04-07 -================== - - * Add `process.execArg` support, execution args like `--harmony` will be passed to sub-commands #387 @DigitalIO @zhiyelee - * Fix bug in Git-style sub-commands #372 @zhiyelee - * Allow commands to be hidden from help #383 @tonylukasavage - * When git-style sub-commands are in use, yet none are called, display help #382 @claylo - * Add ability to specify arguments syntax for top-level command #258 @rrthomas - * Support multiline descriptions #208 @zxqfox - -2.7.1 / 2015-03-11 -================== - - * Revert #347 (fix collisions when option and first arg have same name) which causes a bug in #367. - -2.7.0 / 2015-03-09 -================== - - * Fix git-style bug when installed globally. Close #335 #349 @zhiyelee - * Fix collisions when option and first arg have same name. Close #346 #347 @tonylukasavage - * Add support for camelCase on `opts()`. Close #353 @nkzawa - * Add node.js 0.12 and io.js to travis.yml - * Allow RegEx options. #337 @palanik - * Fixes exit code when sub-command failing. Close #260 #332 @pirelenito - * git-style `bin` files in $PATH make sense. Close #196 #327 @zhiyelee - -2.6.0 / 2014-12-30 -================== - - * added `Command#allowUnknownOption` method. Close #138 #318 @doozr @zhiyelee - * Add application description to the help msg. Close #112 @dalssoft - -2.5.1 / 2014-12-15 -================== - - * fixed two bugs incurred by variadic arguments. Close #291 @Quentin01 #302 @zhiyelee - -2.5.0 / 2014-10-24 -================== - - * add support for variadic arguments. Closes #277 @whitlockjc - -2.4.0 / 2014-10-17 -================== - - * fixed a bug on executing the coercion function of subcommands option. Closes #270 - * added `Command.prototype.name` to retrieve command name. Closes #264 #266 @tonylukasavage - * added `Command.prototype.opts` to retrieve all the options as a simple object of key-value pairs. Closes #262 @tonylukasavage - * fixed a bug on subcommand name. Closes #248 @jonathandelgado - * fixed function normalize doesn’t honor option terminator. Closes #216 @abbr - -2.3.0 / 2014-07-16 -================== - - * add command alias'. Closes PR #210 - * fix: Typos. Closes #99 - * fix: Unused fs module. Closes #217 - -2.2.0 / 2014-03-29 -================== - - * add passing of previous option value - * fix: support subcommands on windows. Closes #142 - * Now the defaultValue passed as the second argument of the coercion function. - -2.1.0 / 2013-11-21 -================== - - * add: allow cflag style option params, unit test, fixes #174 - -2.0.0 / 2013-07-18 -================== - - * remove input methods (.prompt, .confirm, etc) - -1.3.2 / 2013-07-18 -================== - - * add support for sub-commands to co-exist with the original command - -1.3.1 / 2013-07-18 -================== - - * add quick .runningCommand hack so you can opt-out of other logic when running a sub command - -1.3.0 / 2013-07-09 -================== - - * add EACCES error handling - * fix sub-command --help - -1.2.0 / 2013-06-13 -================== - - * allow "-" hyphen as an option argument - * support for RegExp coercion - -1.1.1 / 2012-11-20 -================== - - * add more sub-command padding - * fix .usage() when args are present. Closes #106 - -1.1.0 / 2012-11-16 -================== - - * add git-style executable subcommand support. Closes #94 - -1.0.5 / 2012-10-09 -================== - - * fix `--name` clobbering. Closes #92 - * fix examples/help. Closes #89 - -1.0.4 / 2012-09-03 -================== - - * add `outputHelp()` method. - -1.0.3 / 2012-08-30 -================== - - * remove invalid .version() defaulting - -1.0.2 / 2012-08-24 -================== - - * add `--foo=bar` support [arv] - * fix password on node 0.8.8. Make backward compatible with 0.6 [focusaurus] - -1.0.1 / 2012-08-03 -================== - - * fix issue #56 - * fix tty.setRawMode(mode) was moved to tty.ReadStream#setRawMode() (i.e. process.stdin.setRawMode()) - -1.0.0 / 2012-07-05 -================== - - * add support for optional option descriptions - * add defaulting of `.version()` to package.json's version - -0.6.1 / 2012-06-01 -================== - - * Added: append (yes or no) on confirmation - * Added: allow node.js v0.7.x - -0.6.0 / 2012-04-10 -================== - - * Added `.prompt(obj, callback)` support. Closes #49 - * Added default support to .choose(). Closes #41 - * Fixed the choice example - -0.5.1 / 2011-12-20 -================== - - * Fixed `password()` for recent nodes. Closes #36 - -0.5.0 / 2011-12-04 -================== - - * Added sub-command option support [itay] - -0.4.3 / 2011-12-04 -================== - - * Fixed custom help ordering. Closes #32 - -0.4.2 / 2011-11-24 -================== - - * Added travis support - * Fixed: line-buffered input automatically trimmed. Closes #31 - -0.4.1 / 2011-11-18 -================== - - * Removed listening for "close" on --help - -0.4.0 / 2011-11-15 -================== - - * Added support for `--`. Closes #24 - -0.3.3 / 2011-11-14 -================== - - * Fixed: wait for close event when writing help info [Jerry Hamlet] - -0.3.2 / 2011-11-01 -================== - - * Fixed long flag definitions with values [felixge] - -0.3.1 / 2011-10-31 -================== - - * Changed `--version` short flag to `-V` from `-v` - * Changed `.version()` so it's configurable [felixge] - -0.3.0 / 2011-10-31 -================== - - * Added support for long flags only. Closes #18 - -0.2.1 / 2011-10-24 -================== - - * "node": ">= 0.4.x < 0.7.0". Closes #20 - -0.2.0 / 2011-09-26 -================== - - * Allow for defaults that are not just boolean. Default peassignment only occurs for --no-*, optional, and required arguments. [Jim Isaacs] - -0.1.0 / 2011-08-24 -================== - - * Added support for custom `--help` output - -0.0.5 / 2011-08-18 -================== - - * Changed: when the user enters nothing prompt for password again - * Fixed issue with passwords beginning with numbers [NuckChorris] - -0.0.4 / 2011-08-15 -================== - - * Fixed `Commander#args` - -0.0.3 / 2011-08-15 -================== - - * Added default option value support - -0.0.2 / 2011-08-15 -================== - - * Added mask support to `Command#password(str[, mask], fn)` - * Added `Command#password(str, fn)` - -0.0.1 / 2010-01-03 -================== - - * Initial release diff --git a/build_vtk_bundle/node_modules/terser/node_modules/commander/LICENSE b/build_vtk_bundle/node_modules/terser/node_modules/commander/LICENSE deleted file mode 100644 index 10f997ab..00000000 --- a/build_vtk_bundle/node_modules/terser/node_modules/commander/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -(The MIT License) - -Copyright (c) 2011 TJ Holowaychuk - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/terser/node_modules/commander/Readme.md b/build_vtk_bundle/node_modules/terser/node_modules/commander/Readme.md deleted file mode 100644 index c846e7a2..00000000 --- a/build_vtk_bundle/node_modules/terser/node_modules/commander/Readme.md +++ /dev/null @@ -1,428 +0,0 @@ -# Commander.js - - -[![Build Status](https://api.travis-ci.org/tj/commander.js.svg?branch=master)](http://travis-ci.org/tj/commander.js) -[![NPM Version](http://img.shields.io/npm/v/commander.svg?style=flat)](https://www.npmjs.org/package/commander) -[![NPM Downloads](https://img.shields.io/npm/dm/commander.svg?style=flat)](https://npmcharts.com/compare/commander?minimal=true) -[![Install Size](https://packagephobia.now.sh/badge?p=commander)](https://packagephobia.now.sh/result?p=commander) -[![Join the chat at https://gitter.im/tj/commander.js](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/tj/commander.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) - - The complete solution for [node.js](http://nodejs.org) command-line interfaces, inspired by Ruby's [commander](https://github.com/commander-rb/commander). - [API documentation](http://tj.github.com/commander.js/) - - -## Installation - - $ npm install commander - -## Option parsing - -Options with commander are defined with the `.option()` method, also serving as documentation for the options. The example below parses args and options from `process.argv`, leaving remaining args as the `program.args` array which were not consumed by options. - -```js -#!/usr/bin/env node - -/** - * Module dependencies. - */ - -var program = require('commander'); - -program - .version('0.1.0') - .option('-p, --peppers', 'Add peppers') - .option('-P, --pineapple', 'Add pineapple') - .option('-b, --bbq-sauce', 'Add bbq sauce') - .option('-c, --cheese [type]', 'Add the specified type of cheese [marble]', 'marble') - .parse(process.argv); - -console.log('you ordered a pizza with:'); -if (program.peppers) console.log(' - peppers'); -if (program.pineapple) console.log(' - pineapple'); -if (program.bbqSauce) console.log(' - bbq'); -console.log(' - %s cheese', program.cheese); -``` - -Short flags may be passed as a single arg, for example `-abc` is equivalent to `-a -b -c`. Multi-word options such as "--template-engine" are camel-cased, becoming `program.templateEngine` etc. - -Note that multi-word options starting with `--no` prefix negate the boolean value of the following word. For example, `--no-sauce` sets the value of `program.sauce` to false. - -```js -#!/usr/bin/env node - -/** - * Module dependencies. - */ - -var program = require('commander'); - -program - .option('--no-sauce', 'Remove sauce') - .parse(process.argv); - -console.log('you ordered a pizza'); -if (program.sauce) console.log(' with sauce'); -else console.log(' without sauce'); -``` - -To get string arguments from options you will need to use angle brackets <> for required inputs or square brackets [] for optional inputs. - -e.g. ```.option('-m --myarg [myVar]', 'my super cool description')``` - -Then to access the input if it was passed in. - -e.g. ```var myInput = program.myarg``` - -**NOTE**: If you pass a argument without using brackets the example above will return true and not the value passed in. - - -## Version option - -Calling the `version` implicitly adds the `-V` and `--version` options to the command. -When either of these options is present, the command prints the version number and exits. - - $ ./examples/pizza -V - 0.0.1 - -If you want your program to respond to the `-v` option instead of the `-V` option, simply pass custom flags to the `version` method using the same syntax as the `option` method. - -```js -program - .version('0.0.1', '-v, --version') -``` - -The version flags can be named anything, but the long option is required. - -## Command-specific options - -You can attach options to a command. - -```js -#!/usr/bin/env node - -var program = require('commander'); - -program - .command('rm ') - .option('-r, --recursive', 'Remove recursively') - .action(function (dir, cmd) { - console.log('remove ' + dir + (cmd.recursive ? ' recursively' : '')) - }) - -program.parse(process.argv) -``` - -A command's options are validated when the command is used. Any unknown options will be reported as an error. However, if an action-based command does not define an action, then the options are not validated. - -## Coercion - -```js -function range(val) { - return val.split('..').map(Number); -} - -function list(val) { - return val.split(','); -} - -function collect(val, memo) { - memo.push(val); - return memo; -} - -function increaseVerbosity(v, total) { - return total + 1; -} - -program - .version('0.1.0') - .usage('[options] ') - .option('-i, --integer ', 'An integer argument', parseInt) - .option('-f, --float ', 'A float argument', parseFloat) - .option('-r, --range ..', 'A range', range) - .option('-l, --list ', 'A list', list) - .option('-o, --optional [value]', 'An optional value') - .option('-c, --collect [value]', 'A repeatable value', collect, []) - .option('-v, --verbose', 'A value that can be increased', increaseVerbosity, 0) - .parse(process.argv); - -console.log(' int: %j', program.integer); -console.log(' float: %j', program.float); -console.log(' optional: %j', program.optional); -program.range = program.range || []; -console.log(' range: %j..%j', program.range[0], program.range[1]); -console.log(' list: %j', program.list); -console.log(' collect: %j', program.collect); -console.log(' verbosity: %j', program.verbose); -console.log(' args: %j', program.args); -``` - -## Regular Expression -```js -program - .version('0.1.0') - .option('-s --size ', 'Pizza size', /^(large|medium|small)$/i, 'medium') - .option('-d --drink [drink]', 'Drink', /^(coke|pepsi|izze)$/i) - .parse(process.argv); - -console.log(' size: %j', program.size); -console.log(' drink: %j', program.drink); -``` - -## Variadic arguments - - The last argument of a command can be variadic, and only the last argument. To make an argument variadic you have to - append `...` to the argument name. Here is an example: - -```js -#!/usr/bin/env node - -/** - * Module dependencies. - */ - -var program = require('commander'); - -program - .version('0.1.0') - .command('rmdir [otherDirs...]') - .action(function (dir, otherDirs) { - console.log('rmdir %s', dir); - if (otherDirs) { - otherDirs.forEach(function (oDir) { - console.log('rmdir %s', oDir); - }); - } - }); - -program.parse(process.argv); -``` - - An `Array` is used for the value of a variadic argument. This applies to `program.args` as well as the argument passed - to your action as demonstrated above. - -## Specify the argument syntax - -```js -#!/usr/bin/env node - -var program = require('commander'); - -program - .version('0.1.0') - .arguments(' [env]') - .action(function (cmd, env) { - cmdValue = cmd; - envValue = env; - }); - -program.parse(process.argv); - -if (typeof cmdValue === 'undefined') { - console.error('no command given!'); - process.exit(1); -} -console.log('command:', cmdValue); -console.log('environment:', envValue || "no environment given"); -``` -Angled brackets (e.g. ``) indicate required input. Square brackets (e.g. `[env]`) indicate optional input. - -## Git-style sub-commands - -```js -// file: ./examples/pm -var program = require('commander'); - -program - .version('0.1.0') - .command('install [name]', 'install one or more packages') - .command('search [query]', 'search with optional query') - .command('list', 'list packages installed', {isDefault: true}) - .parse(process.argv); -``` - -When `.command()` is invoked with a description argument, no `.action(callback)` should be called to handle sub-commands, otherwise there will be an error. This tells commander that you're going to use separate executables for sub-commands, much like `git(1)` and other popular tools. -The commander will try to search the executables in the directory of the entry script (like `./examples/pm`) with the name `program-command`, like `pm-install`, `pm-search`. - -Options can be passed with the call to `.command()`. Specifying `true` for `opts.noHelp` will remove the subcommand from the generated help output. Specifying `true` for `opts.isDefault` will run the subcommand if no other subcommand is specified. - -If the program is designed to be installed globally, make sure the executables have proper modes, like `755`. - -### `--harmony` - -You can enable `--harmony` option in two ways: -* Use `#! /usr/bin/env node --harmony` in the sub-commands scripts. Note some os version don’t support this pattern. -* Use the `--harmony` option when call the command, like `node --harmony examples/pm publish`. The `--harmony` option will be preserved when spawning sub-command process. - -## Automated --help - - The help information is auto-generated based on the information commander already knows about your program, so the following `--help` info is for free: - -``` -$ ./examples/pizza --help -Usage: pizza [options] - -An application for pizzas ordering - -Options: - -h, --help output usage information - -V, --version output the version number - -p, --peppers Add peppers - -P, --pineapple Add pineapple - -b, --bbq Add bbq sauce - -c, --cheese Add the specified type of cheese [marble] - -C, --no-cheese You do not want any cheese -``` - -## Custom help - - You can display arbitrary `-h, --help` information - by listening for "--help". Commander will automatically - exit once you are done so that the remainder of your program - does not execute causing undesired behaviors, for example - in the following executable "stuff" will not output when - `--help` is used. - -```js -#!/usr/bin/env node - -/** - * Module dependencies. - */ - -var program = require('commander'); - -program - .version('0.1.0') - .option('-f, --foo', 'enable some foo') - .option('-b, --bar', 'enable some bar') - .option('-B, --baz', 'enable some baz'); - -// must be before .parse() since -// node's emit() is immediate - -program.on('--help', function(){ - console.log('') - console.log('Examples:'); - console.log(' $ custom-help --help'); - console.log(' $ custom-help -h'); -}); - -program.parse(process.argv); - -console.log('stuff'); -``` - -Yields the following help output when `node script-name.js -h` or `node script-name.js --help` are run: - -``` -Usage: custom-help [options] - -Options: - -h, --help output usage information - -V, --version output the version number - -f, --foo enable some foo - -b, --bar enable some bar - -B, --baz enable some baz - -Examples: - $ custom-help --help - $ custom-help -h -``` - -## .outputHelp(cb) - -Output help information without exiting. -Optional callback cb allows post-processing of help text before it is displayed. - -If you want to display help by default (e.g. if no command was provided), you can use something like: - -```js -var program = require('commander'); -var colors = require('colors'); - -program - .version('0.1.0') - .command('getstream [url]', 'get stream URL') - .parse(process.argv); - -if (!process.argv.slice(2).length) { - program.outputHelp(make_red); -} - -function make_red(txt) { - return colors.red(txt); //display the help text in red on the console -} -``` - -## .help(cb) - - Output help information and exit immediately. - Optional callback cb allows post-processing of help text before it is displayed. - - -## Custom event listeners - You can execute custom actions by listening to command and option events. - -```js -program.on('option:verbose', function () { - process.env.VERBOSE = this.verbose; -}); - -// error on unknown commands -program.on('command:*', function () { - console.error('Invalid command: %s\nSee --help for a list of available commands.', program.args.join(' ')); - process.exit(1); -}); -``` - -## Examples - -```js -var program = require('commander'); - -program - .version('0.1.0') - .option('-C, --chdir ', 'change the working directory') - .option('-c, --config ', 'set config path. defaults to ./deploy.conf') - .option('-T, --no-tests', 'ignore test hook'); - -program - .command('setup [env]') - .description('run setup commands for all envs') - .option("-s, --setup_mode [mode]", "Which setup mode to use") - .action(function(env, options){ - var mode = options.setup_mode || "normal"; - env = env || 'all'; - console.log('setup for %s env(s) with %s mode', env, mode); - }); - -program - .command('exec ') - .alias('ex') - .description('execute the given remote cmd') - .option("-e, --exec_mode ", "Which exec mode to use") - .action(function(cmd, options){ - console.log('exec "%s" using %s mode', cmd, options.exec_mode); - }).on('--help', function() { - console.log(''); - console.log('Examples:'); - console.log(''); - console.log(' $ deploy exec sequential'); - console.log(' $ deploy exec async'); - }); - -program - .command('*') - .action(function(env){ - console.log('deploying "%s"', env); - }); - -program.parse(process.argv); -``` - -More Demos can be found in the [examples](https://github.com/tj/commander.js/tree/master/examples) directory. - -## License - -[MIT](https://github.com/tj/commander.js/blob/master/LICENSE) diff --git a/build_vtk_bundle/node_modules/terser/node_modules/commander/index.js b/build_vtk_bundle/node_modules/terser/node_modules/commander/index.js deleted file mode 100644 index ec1d61d5..00000000 --- a/build_vtk_bundle/node_modules/terser/node_modules/commander/index.js +++ /dev/null @@ -1,1224 +0,0 @@ -/** - * Module dependencies. - */ - -var EventEmitter = require('events').EventEmitter; -var spawn = require('child_process').spawn; -var path = require('path'); -var dirname = path.dirname; -var basename = path.basename; -var fs = require('fs'); - -/** - * Inherit `Command` from `EventEmitter.prototype`. - */ - -require('util').inherits(Command, EventEmitter); - -/** - * Expose the root command. - */ - -exports = module.exports = new Command(); - -/** - * Expose `Command`. - */ - -exports.Command = Command; - -/** - * Expose `Option`. - */ - -exports.Option = Option; - -/** - * Initialize a new `Option` with the given `flags` and `description`. - * - * @param {String} flags - * @param {String} description - * @api public - */ - -function Option(flags, description) { - this.flags = flags; - this.required = flags.indexOf('<') >= 0; - this.optional = flags.indexOf('[') >= 0; - this.bool = flags.indexOf('-no-') === -1; - flags = flags.split(/[ ,|]+/); - if (flags.length > 1 && !/^[[<]/.test(flags[1])) this.short = flags.shift(); - this.long = flags.shift(); - this.description = description || ''; -} - -/** - * Return option name. - * - * @return {String} - * @api private - */ - -Option.prototype.name = function() { - return this.long - .replace('--', '') - .replace('no-', ''); -}; - -/** - * Return option name, in a camelcase format that can be used - * as a object attribute key. - * - * @return {String} - * @api private - */ - -Option.prototype.attributeName = function() { - return camelcase(this.name()); -}; - -/** - * Check if `arg` matches the short or long flag. - * - * @param {String} arg - * @return {Boolean} - * @api private - */ - -Option.prototype.is = function(arg) { - return this.short === arg || this.long === arg; -}; - -/** - * Initialize a new `Command`. - * - * @param {String} name - * @api public - */ - -function Command(name) { - this.commands = []; - this.options = []; - this._execs = {}; - this._allowUnknownOption = false; - this._args = []; - this._name = name || ''; -} - -/** - * Add command `name`. - * - * The `.action()` callback is invoked when the - * command `name` is specified via __ARGV__, - * and the remaining arguments are applied to the - * function for access. - * - * When the `name` is "*" an un-matched command - * will be passed as the first arg, followed by - * the rest of __ARGV__ remaining. - * - * Examples: - * - * program - * .version('0.0.1') - * .option('-C, --chdir ', 'change the working directory') - * .option('-c, --config ', 'set config path. defaults to ./deploy.conf') - * .option('-T, --no-tests', 'ignore test hook') - * - * program - * .command('setup') - * .description('run remote setup commands') - * .action(function() { - * console.log('setup'); - * }); - * - * program - * .command('exec ') - * .description('run the given remote command') - * .action(function(cmd) { - * console.log('exec "%s"', cmd); - * }); - * - * program - * .command('teardown [otherDirs...]') - * .description('run teardown commands') - * .action(function(dir, otherDirs) { - * console.log('dir "%s"', dir); - * if (otherDirs) { - * otherDirs.forEach(function (oDir) { - * console.log('dir "%s"', oDir); - * }); - * } - * }); - * - * program - * .command('*') - * .description('deploy the given env') - * .action(function(env) { - * console.log('deploying "%s"', env); - * }); - * - * program.parse(process.argv); - * - * @param {String} name - * @param {String} [desc] for git-style sub-commands - * @return {Command} the new command - * @api public - */ - -Command.prototype.command = function(name, desc, opts) { - if (typeof desc === 'object' && desc !== null) { - opts = desc; - desc = null; - } - opts = opts || {}; - var args = name.split(/ +/); - var cmd = new Command(args.shift()); - - if (desc) { - cmd.description(desc); - this.executables = true; - this._execs[cmd._name] = true; - if (opts.isDefault) this.defaultExecutable = cmd._name; - } - cmd._noHelp = !!opts.noHelp; - this.commands.push(cmd); - cmd.parseExpectedArgs(args); - cmd.parent = this; - - if (desc) return this; - return cmd; -}; - -/** - * Define argument syntax for the top-level command. - * - * @api public - */ - -Command.prototype.arguments = function(desc) { - return this.parseExpectedArgs(desc.split(/ +/)); -}; - -/** - * Add an implicit `help [cmd]` subcommand - * which invokes `--help` for the given command. - * - * @api private - */ - -Command.prototype.addImplicitHelpCommand = function() { - this.command('help [cmd]', 'display help for [cmd]'); -}; - -/** - * Parse expected `args`. - * - * For example `["[type]"]` becomes `[{ required: false, name: 'type' }]`. - * - * @param {Array} args - * @return {Command} for chaining - * @api public - */ - -Command.prototype.parseExpectedArgs = function(args) { - if (!args.length) return; - var self = this; - args.forEach(function(arg) { - var argDetails = { - required: false, - name: '', - variadic: false - }; - - switch (arg[0]) { - case '<': - argDetails.required = true; - argDetails.name = arg.slice(1, -1); - break; - case '[': - argDetails.name = arg.slice(1, -1); - break; - } - - if (argDetails.name.length > 3 && argDetails.name.slice(-3) === '...') { - argDetails.variadic = true; - argDetails.name = argDetails.name.slice(0, -3); - } - if (argDetails.name) { - self._args.push(argDetails); - } - }); - return this; -}; - -/** - * Register callback `fn` for the command. - * - * Examples: - * - * program - * .command('help') - * .description('display verbose help') - * .action(function() { - * // output help here - * }); - * - * @param {Function} fn - * @return {Command} for chaining - * @api public - */ - -Command.prototype.action = function(fn) { - var self = this; - var listener = function(args, unknown) { - // Parse any so-far unknown options - args = args || []; - unknown = unknown || []; - - var parsed = self.parseOptions(unknown); - - // Output help if necessary - outputHelpIfNecessary(self, parsed.unknown); - - // If there are still any unknown options, then we simply - // die, unless someone asked for help, in which case we give it - // to them, and then we die. - if (parsed.unknown.length > 0) { - self.unknownOption(parsed.unknown[0]); - } - - // Leftover arguments need to be pushed back. Fixes issue #56 - if (parsed.args.length) args = parsed.args.concat(args); - - self._args.forEach(function(arg, i) { - if (arg.required && args[i] == null) { - self.missingArgument(arg.name); - } else if (arg.variadic) { - if (i !== self._args.length - 1) { - self.variadicArgNotLast(arg.name); - } - - args[i] = args.splice(i); - } - }); - - // Always append ourselves to the end of the arguments, - // to make sure we match the number of arguments the user - // expects - if (self._args.length) { - args[self._args.length] = self; - } else { - args.push(self); - } - - fn.apply(self, args); - }; - var parent = this.parent || this; - var name = parent === this ? '*' : this._name; - parent.on('command:' + name, listener); - if (this._alias) parent.on('command:' + this._alias, listener); - return this; -}; - -/** - * Define option with `flags`, `description` and optional - * coercion `fn`. - * - * The `flags` string should contain both the short and long flags, - * separated by comma, a pipe or space. The following are all valid - * all will output this way when `--help` is used. - * - * "-p, --pepper" - * "-p|--pepper" - * "-p --pepper" - * - * Examples: - * - * // simple boolean defaulting to false - * program.option('-p, --pepper', 'add pepper'); - * - * --pepper - * program.pepper - * // => Boolean - * - * // simple boolean defaulting to true - * program.option('-C, --no-cheese', 'remove cheese'); - * - * program.cheese - * // => true - * - * --no-cheese - * program.cheese - * // => false - * - * // required argument - * program.option('-C, --chdir ', 'change the working directory'); - * - * --chdir /tmp - * program.chdir - * // => "/tmp" - * - * // optional argument - * program.option('-c, --cheese [type]', 'add cheese [marble]'); - * - * @param {String} flags - * @param {String} description - * @param {Function|*} [fn] or default - * @param {*} [defaultValue] - * @return {Command} for chaining - * @api public - */ - -Command.prototype.option = function(flags, description, fn, defaultValue) { - var self = this, - option = new Option(flags, description), - oname = option.name(), - name = option.attributeName(); - - // default as 3rd arg - if (typeof fn !== 'function') { - if (fn instanceof RegExp) { - var regex = fn; - fn = function(val, def) { - var m = regex.exec(val); - return m ? m[0] : def; - }; - } else { - defaultValue = fn; - fn = null; - } - } - - // preassign default value only for --no-*, [optional], or - if (!option.bool || option.optional || option.required) { - // when --no-* we make sure default is true - if (!option.bool) defaultValue = true; - // preassign only if we have a default - if (defaultValue !== undefined) { - self[name] = defaultValue; - option.defaultValue = defaultValue; - } - } - - // register the option - this.options.push(option); - - // when it's passed assign the value - // and conditionally invoke the callback - this.on('option:' + oname, function(val) { - // coercion - if (val !== null && fn) { - val = fn(val, self[name] === undefined ? defaultValue : self[name]); - } - - // unassigned or bool - if (typeof self[name] === 'boolean' || typeof self[name] === 'undefined') { - // if no value, bool true, and we have a default, then use it! - if (val == null) { - self[name] = option.bool - ? defaultValue || true - : false; - } else { - self[name] = val; - } - } else if (val !== null) { - // reassign - self[name] = val; - } - }); - - return this; -}; - -/** - * Allow unknown options on the command line. - * - * @param {Boolean} arg if `true` or omitted, no error will be thrown - * for unknown options. - * @api public - */ -Command.prototype.allowUnknownOption = function(arg) { - this._allowUnknownOption = arguments.length === 0 || arg; - return this; -}; - -/** - * Parse `argv`, settings options and invoking commands when defined. - * - * @param {Array} argv - * @return {Command} for chaining - * @api public - */ - -Command.prototype.parse = function(argv) { - // implicit help - if (this.executables) this.addImplicitHelpCommand(); - - // store raw args - this.rawArgs = argv; - - // guess name - this._name = this._name || basename(argv[1], '.js'); - - // github-style sub-commands with no sub-command - if (this.executables && argv.length < 3 && !this.defaultExecutable) { - // this user needs help - argv.push('--help'); - } - - // process argv - var parsed = this.parseOptions(this.normalize(argv.slice(2))); - var args = this.args = parsed.args; - - var result = this.parseArgs(this.args, parsed.unknown); - - // executable sub-commands - var name = result.args[0]; - - var aliasCommand = null; - // check alias of sub commands - if (name) { - aliasCommand = this.commands.filter(function(command) { - return command.alias() === name; - })[0]; - } - - if (this._execs[name] === true) { - return this.executeSubCommand(argv, args, parsed.unknown); - } else if (aliasCommand) { - // is alias of a subCommand - args[0] = aliasCommand._name; - return this.executeSubCommand(argv, args, parsed.unknown); - } else if (this.defaultExecutable) { - // use the default subcommand - args.unshift(this.defaultExecutable); - return this.executeSubCommand(argv, args, parsed.unknown); - } - - return result; -}; - -/** - * Execute a sub-command executable. - * - * @param {Array} argv - * @param {Array} args - * @param {Array} unknown - * @api private - */ - -Command.prototype.executeSubCommand = function(argv, args, unknown) { - args = args.concat(unknown); - - if (!args.length) this.help(); - if (args[0] === 'help' && args.length === 1) this.help(); - - // --help - if (args[0] === 'help') { - args[0] = args[1]; - args[1] = '--help'; - } - - // executable - var f = argv[1]; - // name of the subcommand, link `pm-install` - var bin = basename(f, path.extname(f)) + '-' + args[0]; - - // In case of globally installed, get the base dir where executable - // subcommand file should be located at - var baseDir; - - var resolvedLink = fs.realpathSync(f); - - baseDir = dirname(resolvedLink); - - // prefer local `./` to bin in the $PATH - var localBin = path.join(baseDir, bin); - - // whether bin file is a js script with explicit `.js` or `.ts` extension - var isExplicitJS = false; - if (exists(localBin + '.js')) { - bin = localBin + '.js'; - isExplicitJS = true; - } else if (exists(localBin + '.ts')) { - bin = localBin + '.ts'; - isExplicitJS = true; - } else if (exists(localBin)) { - bin = localBin; - } - - args = args.slice(1); - - var proc; - if (process.platform !== 'win32') { - if (isExplicitJS) { - args.unshift(bin); - // add executable arguments to spawn - args = (process.execArgv || []).concat(args); - - proc = spawn(process.argv[0], args, { stdio: 'inherit', customFds: [0, 1, 2] }); - } else { - proc = spawn(bin, args, { stdio: 'inherit', customFds: [0, 1, 2] }); - } - } else { - args.unshift(bin); - proc = spawn(process.execPath, args, { stdio: 'inherit' }); - } - - var signals = ['SIGUSR1', 'SIGUSR2', 'SIGTERM', 'SIGINT', 'SIGHUP']; - signals.forEach(function(signal) { - process.on(signal, function() { - if (proc.killed === false && proc.exitCode === null) { - proc.kill(signal); - } - }); - }); - proc.on('close', process.exit.bind(process)); - proc.on('error', function(err) { - if (err.code === 'ENOENT') { - console.error('error: %s(1) does not exist, try --help', bin); - } else if (err.code === 'EACCES') { - console.error('error: %s(1) not executable. try chmod or run with root', bin); - } - process.exit(1); - }); - - // Store the reference to the child process - this.runningCommand = proc; -}; - -/** - * Normalize `args`, splitting joined short flags. For example - * the arg "-abc" is equivalent to "-a -b -c". - * This also normalizes equal sign and splits "--abc=def" into "--abc def". - * - * @param {Array} args - * @return {Array} - * @api private - */ - -Command.prototype.normalize = function(args) { - var ret = [], - arg, - lastOpt, - index; - - for (var i = 0, len = args.length; i < len; ++i) { - arg = args[i]; - if (i > 0) { - lastOpt = this.optionFor(args[i - 1]); - } - - if (arg === '--') { - // Honor option terminator - ret = ret.concat(args.slice(i)); - break; - } else if (lastOpt && lastOpt.required) { - ret.push(arg); - } else if (arg.length > 1 && arg[0] === '-' && arg[1] !== '-') { - arg.slice(1).split('').forEach(function(c) { - ret.push('-' + c); - }); - } else if (/^--/.test(arg) && ~(index = arg.indexOf('='))) { - ret.push(arg.slice(0, index), arg.slice(index + 1)); - } else { - ret.push(arg); - } - } - - return ret; -}; - -/** - * Parse command `args`. - * - * When listener(s) are available those - * callbacks are invoked, otherwise the "*" - * event is emitted and those actions are invoked. - * - * @param {Array} args - * @return {Command} for chaining - * @api private - */ - -Command.prototype.parseArgs = function(args, unknown) { - var name; - - if (args.length) { - name = args[0]; - if (this.listeners('command:' + name).length) { - this.emit('command:' + args.shift(), args, unknown); - } else { - this.emit('command:*', args); - } - } else { - outputHelpIfNecessary(this, unknown); - - // If there were no args and we have unknown options, - // then they are extraneous and we need to error. - if (unknown.length > 0) { - this.unknownOption(unknown[0]); - } - if (this.commands.length === 0 && - this._args.filter(function(a) { return a.required; }).length === 0) { - this.emit('command:*'); - } - } - - return this; -}; - -/** - * Return an option matching `arg` if any. - * - * @param {String} arg - * @return {Option} - * @api private - */ - -Command.prototype.optionFor = function(arg) { - for (var i = 0, len = this.options.length; i < len; ++i) { - if (this.options[i].is(arg)) { - return this.options[i]; - } - } -}; - -/** - * Parse options from `argv` returning `argv` - * void of these options. - * - * @param {Array} argv - * @return {Array} - * @api public - */ - -Command.prototype.parseOptions = function(argv) { - var args = [], - len = argv.length, - literal, - option, - arg; - - var unknownOptions = []; - - // parse options - for (var i = 0; i < len; ++i) { - arg = argv[i]; - - // literal args after -- - if (literal) { - args.push(arg); - continue; - } - - if (arg === '--') { - literal = true; - continue; - } - - // find matching Option - option = this.optionFor(arg); - - // option is defined - if (option) { - // requires arg - if (option.required) { - arg = argv[++i]; - if (arg == null) return this.optionMissingArgument(option); - this.emit('option:' + option.name(), arg); - // optional arg - } else if (option.optional) { - arg = argv[i + 1]; - if (arg == null || (arg[0] === '-' && arg !== '-')) { - arg = null; - } else { - ++i; - } - this.emit('option:' + option.name(), arg); - // bool - } else { - this.emit('option:' + option.name()); - } - continue; - } - - // looks like an option - if (arg.length > 1 && arg[0] === '-') { - unknownOptions.push(arg); - - // If the next argument looks like it might be - // an argument for this option, we pass it on. - // If it isn't, then it'll simply be ignored - if ((i + 1) < argv.length && argv[i + 1][0] !== '-') { - unknownOptions.push(argv[++i]); - } - continue; - } - - // arg - args.push(arg); - } - - return { args: args, unknown: unknownOptions }; -}; - -/** - * Return an object containing options as key-value pairs - * - * @return {Object} - * @api public - */ -Command.prototype.opts = function() { - var result = {}, - len = this.options.length; - - for (var i = 0; i < len; i++) { - var key = this.options[i].attributeName(); - result[key] = key === this._versionOptionName ? this._version : this[key]; - } - return result; -}; - -/** - * Argument `name` is missing. - * - * @param {String} name - * @api private - */ - -Command.prototype.missingArgument = function(name) { - console.error("error: missing required argument `%s'", name); - process.exit(1); -}; - -/** - * `Option` is missing an argument, but received `flag` or nothing. - * - * @param {String} option - * @param {String} flag - * @api private - */ - -Command.prototype.optionMissingArgument = function(option, flag) { - if (flag) { - console.error("error: option `%s' argument missing, got `%s'", option.flags, flag); - } else { - console.error("error: option `%s' argument missing", option.flags); - } - process.exit(1); -}; - -/** - * Unknown option `flag`. - * - * @param {String} flag - * @api private - */ - -Command.prototype.unknownOption = function(flag) { - if (this._allowUnknownOption) return; - console.error("error: unknown option `%s'", flag); - process.exit(1); -}; - -/** - * Variadic argument with `name` is not the last argument as required. - * - * @param {String} name - * @api private - */ - -Command.prototype.variadicArgNotLast = function(name) { - console.error("error: variadic arguments must be last `%s'", name); - process.exit(1); -}; - -/** - * Set the program version to `str`. - * - * This method auto-registers the "-V, --version" flag - * which will print the version number when passed. - * - * @param {String} str - * @param {String} [flags] - * @return {Command} for chaining - * @api public - */ - -Command.prototype.version = function(str, flags) { - if (arguments.length === 0) return this._version; - this._version = str; - flags = flags || '-V, --version'; - var versionOption = new Option(flags, 'output the version number'); - this._versionOptionName = versionOption.long.substr(2) || 'version'; - this.options.push(versionOption); - this.on('option:' + this._versionOptionName, function() { - process.stdout.write(str + '\n'); - process.exit(0); - }); - return this; -}; - -/** - * Set the description to `str`. - * - * @param {String} str - * @param {Object} argsDescription - * @return {String|Command} - * @api public - */ - -Command.prototype.description = function(str, argsDescription) { - if (arguments.length === 0) return this._description; - this._description = str; - this._argsDescription = argsDescription; - return this; -}; - -/** - * Set an alias for the command - * - * @param {String} alias - * @return {String|Command} - * @api public - */ - -Command.prototype.alias = function(alias) { - var command = this; - if (this.commands.length !== 0) { - command = this.commands[this.commands.length - 1]; - } - - if (arguments.length === 0) return command._alias; - - if (alias === command._name) throw new Error('Command alias can\'t be the same as its name'); - - command._alias = alias; - return this; -}; - -/** - * Set / get the command usage `str`. - * - * @param {String} str - * @return {String|Command} - * @api public - */ - -Command.prototype.usage = function(str) { - var args = this._args.map(function(arg) { - return humanReadableArgName(arg); - }); - - var usage = '[options]' + - (this.commands.length ? ' [command]' : '') + - (this._args.length ? ' ' + args.join(' ') : ''); - - if (arguments.length === 0) return this._usage || usage; - this._usage = str; - - return this; -}; - -/** - * Get or set the name of the command - * - * @param {String} str - * @return {String|Command} - * @api public - */ - -Command.prototype.name = function(str) { - if (arguments.length === 0) return this._name; - this._name = str; - return this; -}; - -/** - * Return prepared commands. - * - * @return {Array} - * @api private - */ - -Command.prototype.prepareCommands = function() { - return this.commands.filter(function(cmd) { - return !cmd._noHelp; - }).map(function(cmd) { - var args = cmd._args.map(function(arg) { - return humanReadableArgName(arg); - }).join(' '); - - return [ - cmd._name + - (cmd._alias ? '|' + cmd._alias : '') + - (cmd.options.length ? ' [options]' : '') + - (args ? ' ' + args : ''), - cmd._description - ]; - }); -}; - -/** - * Return the largest command length. - * - * @return {Number} - * @api private - */ - -Command.prototype.largestCommandLength = function() { - var commands = this.prepareCommands(); - return commands.reduce(function(max, command) { - return Math.max(max, command[0].length); - }, 0); -}; - -/** - * Return the largest option length. - * - * @return {Number} - * @api private - */ - -Command.prototype.largestOptionLength = function() { - var options = [].slice.call(this.options); - options.push({ - flags: '-h, --help' - }); - return options.reduce(function(max, option) { - return Math.max(max, option.flags.length); - }, 0); -}; - -/** - * Return the largest arg length. - * - * @return {Number} - * @api private - */ - -Command.prototype.largestArgLength = function() { - return this._args.reduce(function(max, arg) { - return Math.max(max, arg.name.length); - }, 0); -}; - -/** - * Return the pad width. - * - * @return {Number} - * @api private - */ - -Command.prototype.padWidth = function() { - var width = this.largestOptionLength(); - if (this._argsDescription && this._args.length) { - if (this.largestArgLength() > width) { - width = this.largestArgLength(); - } - } - - if (this.commands && this.commands.length) { - if (this.largestCommandLength() > width) { - width = this.largestCommandLength(); - } - } - - return width; -}; - -/** - * Return help for options. - * - * @return {String} - * @api private - */ - -Command.prototype.optionHelp = function() { - var width = this.padWidth(); - - // Append the help information - return this.options.map(function(option) { - return pad(option.flags, width) + ' ' + option.description + - ((option.bool && option.defaultValue !== undefined) ? ' (default: ' + JSON.stringify(option.defaultValue) + ')' : ''); - }).concat([pad('-h, --help', width) + ' ' + 'output usage information']) - .join('\n'); -}; - -/** - * Return command help documentation. - * - * @return {String} - * @api private - */ - -Command.prototype.commandHelp = function() { - if (!this.commands.length) return ''; - - var commands = this.prepareCommands(); - var width = this.padWidth(); - - return [ - 'Commands:', - commands.map(function(cmd) { - var desc = cmd[1] ? ' ' + cmd[1] : ''; - return (desc ? pad(cmd[0], width) : cmd[0]) + desc; - }).join('\n').replace(/^/gm, ' '), - '' - ].join('\n'); -}; - -/** - * Return program help documentation. - * - * @return {String} - * @api private - */ - -Command.prototype.helpInformation = function() { - var desc = []; - if (this._description) { - desc = [ - this._description, - '' - ]; - - var argsDescription = this._argsDescription; - if (argsDescription && this._args.length) { - var width = this.padWidth(); - desc.push('Arguments:'); - desc.push(''); - this._args.forEach(function(arg) { - desc.push(' ' + pad(arg.name, width) + ' ' + argsDescription[arg.name]); - }); - desc.push(''); - } - } - - var cmdName = this._name; - if (this._alias) { - cmdName = cmdName + '|' + this._alias; - } - var usage = [ - 'Usage: ' + cmdName + ' ' + this.usage(), - '' - ]; - - var cmds = []; - var commandHelp = this.commandHelp(); - if (commandHelp) cmds = [commandHelp]; - - var options = [ - 'Options:', - '' + this.optionHelp().replace(/^/gm, ' '), - '' - ]; - - return usage - .concat(desc) - .concat(options) - .concat(cmds) - .join('\n'); -}; - -/** - * Output help information for this command - * - * @api public - */ - -Command.prototype.outputHelp = function(cb) { - if (!cb) { - cb = function(passthru) { - return passthru; - }; - } - process.stdout.write(cb(this.helpInformation())); - this.emit('--help'); -}; - -/** - * Output help information and exit. - * - * @api public - */ - -Command.prototype.help = function(cb) { - this.outputHelp(cb); - process.exit(); -}; - -/** - * Camel-case the given `flag` - * - * @param {String} flag - * @return {String} - * @api private - */ - -function camelcase(flag) { - return flag.split('-').reduce(function(str, word) { - return str + word[0].toUpperCase() + word.slice(1); - }); -} - -/** - * Pad `str` to `width`. - * - * @param {String} str - * @param {Number} width - * @return {String} - * @api private - */ - -function pad(str, width) { - var len = Math.max(0, width - str.length); - return str + Array(len + 1).join(' '); -} - -/** - * Output help information if necessary - * - * @param {Command} command to output help for - * @param {Array} array of options to search for -h or --help - * @api private - */ - -function outputHelpIfNecessary(cmd, options) { - options = options || []; - for (var i = 0; i < options.length; i++) { - if (options[i] === '--help' || options[i] === '-h') { - cmd.outputHelp(); - process.exit(0); - } - } -} - -/** - * Takes an argument an returns its human readable equivalent for help usage. - * - * @param {Object} arg - * @return {String} - * @api private - */ - -function humanReadableArgName(arg) { - var nameOutput = arg.name + (arg.variadic === true ? '...' : ''); - - return arg.required - ? '<' + nameOutput + '>' - : '[' + nameOutput + ']'; -} - -// for versions before node v0.8 when there weren't `fs.existsSync` -function exists(file) { - try { - if (fs.statSync(file).isFile()) { - return true; - } - } catch (e) { - return false; - } -} diff --git a/build_vtk_bundle/node_modules/terser/node_modules/commander/package.json b/build_vtk_bundle/node_modules/terser/node_modules/commander/package.json deleted file mode 100644 index 0023c5cd..00000000 --- a/build_vtk_bundle/node_modules/terser/node_modules/commander/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "commander", - "version": "2.20.3", - "description": "the complete solution for node.js command-line programs", - "keywords": [ - "commander", - "command", - "option", - "parser" - ], - "author": "TJ Holowaychuk ", - "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/tj/commander.js.git" - }, - "scripts": { - "lint": "eslint index.js", - "test": "node test/run.js && npm run test-typings", - "test-typings": "tsc -p tsconfig.json" - }, - "main": "index", - "files": [ - "index.js", - "typings/index.d.ts" - ], - "dependencies": {}, - "devDependencies": { - "@types/node": "^12.7.8", - "eslint": "^6.4.0", - "should": "^13.2.3", - "sinon": "^7.5.0", - "standard": "^14.3.1", - "ts-node": "^8.4.1", - "typescript": "^3.6.3" - }, - "typings": "typings/index.d.ts" -} diff --git a/build_vtk_bundle/node_modules/terser/node_modules/commander/typings/index.d.ts b/build_vtk_bundle/node_modules/terser/node_modules/commander/typings/index.d.ts deleted file mode 100644 index bcda2771..00000000 --- a/build_vtk_bundle/node_modules/terser/node_modules/commander/typings/index.d.ts +++ /dev/null @@ -1,310 +0,0 @@ -// Type definitions for commander 2.11 -// Project: https://github.com/visionmedia/commander.js -// Definitions by: Alan Agius , Marcelo Dezem , vvakame , Jules Randolph -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare namespace local { - - class Option { - flags: string; - required: boolean; - optional: boolean; - bool: boolean; - short?: string; - long: string; - description: string; - - /** - * Initialize a new `Option` with the given `flags` and `description`. - * - * @param {string} flags - * @param {string} [description] - */ - constructor(flags: string, description?: string); - } - - class Command extends NodeJS.EventEmitter { - [key: string]: any; - - args: string[]; - - /** - * Initialize a new `Command`. - * - * @param {string} [name] - */ - constructor(name?: string); - - /** - * Set the program version to `str`. - * - * This method auto-registers the "-V, --version" flag - * which will print the version number when passed. - * - * @param {string} str - * @param {string} [flags] - * @returns {Command} for chaining - */ - version(str: string, flags?: string): Command; - - /** - * Add command `name`. - * - * The `.action()` callback is invoked when the - * command `name` is specified via __ARGV__, - * and the remaining arguments are applied to the - * function for access. - * - * When the `name` is "*" an un-matched command - * will be passed as the first arg, followed by - * the rest of __ARGV__ remaining. - * - * @example - * program - * .version('0.0.1') - * .option('-C, --chdir ', 'change the working directory') - * .option('-c, --config ', 'set config path. defaults to ./deploy.conf') - * .option('-T, --no-tests', 'ignore test hook') - * - * program - * .command('setup') - * .description('run remote setup commands') - * .action(function() { - * console.log('setup'); - * }); - * - * program - * .command('exec ') - * .description('run the given remote command') - * .action(function(cmd) { - * console.log('exec "%s"', cmd); - * }); - * - * program - * .command('teardown [otherDirs...]') - * .description('run teardown commands') - * .action(function(dir, otherDirs) { - * console.log('dir "%s"', dir); - * if (otherDirs) { - * otherDirs.forEach(function (oDir) { - * console.log('dir "%s"', oDir); - * }); - * } - * }); - * - * program - * .command('*') - * .description('deploy the given env') - * .action(function(env) { - * console.log('deploying "%s"', env); - * }); - * - * program.parse(process.argv); - * - * @param {string} name - * @param {string} [desc] for git-style sub-commands - * @param {CommandOptions} [opts] command options - * @returns {Command} the new command - */ - command(name: string, desc?: string, opts?: commander.CommandOptions): Command; - - /** - * Define argument syntax for the top-level command. - * - * @param {string} desc - * @returns {Command} for chaining - */ - arguments(desc: string): Command; - - /** - * Parse expected `args`. - * - * For example `["[type]"]` becomes `[{ required: false, name: 'type' }]`. - * - * @param {string[]} args - * @returns {Command} for chaining - */ - parseExpectedArgs(args: string[]): Command; - - /** - * Register callback `fn` for the command. - * - * @example - * program - * .command('help') - * .description('display verbose help') - * .action(function() { - * // output help here - * }); - * - * @param {(...args: any[]) => void} fn - * @returns {Command} for chaining - */ - action(fn: (...args: any[]) => void): Command; - - /** - * Define option with `flags`, `description` and optional - * coercion `fn`. - * - * The `flags` string should contain both the short and long flags, - * separated by comma, a pipe or space. The following are all valid - * all will output this way when `--help` is used. - * - * "-p, --pepper" - * "-p|--pepper" - * "-p --pepper" - * - * @example - * // simple boolean defaulting to false - * program.option('-p, --pepper', 'add pepper'); - * - * --pepper - * program.pepper - * // => Boolean - * - * // simple boolean defaulting to true - * program.option('-C, --no-cheese', 'remove cheese'); - * - * program.cheese - * // => true - * - * --no-cheese - * program.cheese - * // => false - * - * // required argument - * program.option('-C, --chdir ', 'change the working directory'); - * - * --chdir /tmp - * program.chdir - * // => "/tmp" - * - * // optional argument - * program.option('-c, --cheese [type]', 'add cheese [marble]'); - * - * @param {string} flags - * @param {string} [description] - * @param {((arg1: any, arg2: any) => void) | RegExp} [fn] function or default - * @param {*} [defaultValue] - * @returns {Command} for chaining - */ - option(flags: string, description?: string, fn?: ((arg1: any, arg2: any) => void) | RegExp, defaultValue?: any): Command; - option(flags: string, description?: string, defaultValue?: any): Command; - - /** - * Allow unknown options on the command line. - * - * @param {boolean} [arg] if `true` or omitted, no error will be thrown for unknown options. - * @returns {Command} for chaining - */ - allowUnknownOption(arg?: boolean): Command; - - /** - * Parse `argv`, settings options and invoking commands when defined. - * - * @param {string[]} argv - * @returns {Command} for chaining - */ - parse(argv: string[]): Command; - - /** - * Parse options from `argv` returning `argv` void of these options. - * - * @param {string[]} argv - * @returns {ParseOptionsResult} - */ - parseOptions(argv: string[]): commander.ParseOptionsResult; - - /** - * Return an object containing options as key-value pairs - * - * @returns {{[key: string]: any}} - */ - opts(): { [key: string]: any }; - - /** - * Set the description to `str`. - * - * @param {string} str - * @param {{[argName: string]: string}} argsDescription - * @return {(Command | string)} - */ - description(str: string, argsDescription?: {[argName: string]: string}): Command; - description(): string; - - /** - * Set an alias for the command. - * - * @param {string} alias - * @return {(Command | string)} - */ - alias(alias: string): Command; - alias(): string; - - /** - * Set or get the command usage. - * - * @param {string} str - * @return {(Command | string)} - */ - usage(str: string): Command; - usage(): string; - - /** - * Set the name of the command. - * - * @param {string} str - * @return {Command} - */ - name(str: string): Command; - - /** - * Get the name of the command. - * - * @return {string} - */ - name(): string; - - /** - * Output help information for this command. - * - * @param {(str: string) => string} [cb] - */ - outputHelp(cb?: (str: string) => string): void; - - /** Output help information and exit. - * - * @param {(str: string) => string} [cb] - */ - help(cb?: (str: string) => string): never; - } - -} - -declare namespace commander { - - type Command = local.Command - - type Option = local.Option - - interface CommandOptions { - noHelp?: boolean; - isDefault?: boolean; - } - - interface ParseOptionsResult { - args: string[]; - unknown: string[]; - } - - interface CommanderStatic extends Command { - Command: typeof local.Command; - Option: typeof local.Option; - CommandOptions: CommandOptions; - ParseOptionsResult: ParseOptionsResult; - } - -} - -declare const commander: commander.CommanderStatic; -export = commander; diff --git a/build_vtk_bundle/node_modules/terser/package.json b/build_vtk_bundle/node_modules/terser/package.json deleted file mode 100644 index 0c58290c..00000000 --- a/build_vtk_bundle/node_modules/terser/package.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "name": "terser", - "description": "JavaScript parser, mangler/compressor and beautifier toolkit for ES6+", - "homepage": "https://terser.org", - "author": "Mihai Bazon (http://lisperator.net/)", - "license": "BSD-2-Clause", - "version": "5.44.1", - "engines": { - "node": ">=10" - }, - "maintainers": [ - "Fábio Santos " - ], - "repository": "https://github.com/terser/terser", - "main": "dist/bundle.min.js", - "type": "module", - "module": "./main.js", - "exports": { - ".": [ - { - "types": "./tools/terser.d.ts", - "import": "./main.js", - "require": "./dist/bundle.min.js" - }, - "./dist/bundle.min.js" - ], - "./package": "./package.json", - "./package.json": "./package.json", - "./bin/terser": "./bin/terser" - }, - "types": "tools/terser.d.ts", - "bin": { - "terser": "bin/terser" - }, - "files": [ - "bin", - "dist", - "lib", - "tools", - "LICENSE", - "README.md", - "CHANGELOG.md", - "PATRONS.md", - "main.js" - ], - "dependencies": { - "@jridgewell/source-map": "^0.3.3", - "acorn": "^8.15.0", - "commander": "^2.20.0", - "source-map-support": "~0.5.20" - }, - "devDependencies": { - "@ls-lint/ls-lint": "^1.11.2", - "astring": "^1.8.5", - "eslint": "^7.32.0", - "eslump": "^3.0.0", - "esm": "^3.2.25", - "mocha": "^9.2.0", - "pre-commit": "^1.2.2", - "rollup": "^2.79.2", - "semver": "^7.5.1", - "source-map": "~0.8.0-beta.0" - }, - "scripts": { - "test": "node test/compress.js && mocha test/mocha", - "test:compress": "node test/compress.js", - "test:mocha": "mocha test/mocha", - "lint": "eslint lib", - "lint-fix": "eslint --fix lib", - "ls-lint": "ls-lint", - "build": "rollup --config --silent", - "prepare": "npm run build", - "postversion": "echo 'Remember to update the changelog!'" - }, - "keywords": [ - "uglify", - "terser", - "uglify-es", - "uglify-js", - "minify", - "minifier", - "javascript", - "ecmascript", - "es5", - "es6", - "es7", - "es8", - "es2015", - "es2016", - "es2017", - "async", - "await" - ], - "eslintConfig": { - "parserOptions": { - "sourceType": "module", - "ecmaVersion": 2020 - }, - "env": { - "node": true, - "browser": true, - "es2020": true - }, - "globals": { - "describe": false, - "it": false, - "require": false, - "before": false, - "after": false, - "global": false, - "process": false - }, - "rules": { - "brace-style": [ - "error", - "1tbs", - { - "allowSingleLine": true - } - ], - "quotes": [ - "error", - "double", - "avoid-escape" - ], - "no-debugger": "error", - "no-undef": "error", - "no-unused-vars": [ - "error", - { - "varsIgnorePattern": "^_", - "argsIgnorePattern": "^_" - } - ], - "no-tabs": "error", - "semi": [ - "error", - "always" - ], - "no-extra-semi": "error", - "no-irregular-whitespace": "error", - "space-before-blocks": [ - "error", - "always" - ] - } - }, - "pre-commit": [ - "build", - "lint-fix", - "ls-lint", - "test" - ] -} diff --git a/build_vtk_bundle/node_modules/terser/tools/domprops.js b/build_vtk_bundle/node_modules/terser/tools/domprops.js deleted file mode 100644 index 74fb6d23..00000000 --- a/build_vtk_bundle/node_modules/terser/tools/domprops.js +++ /dev/null @@ -1,9026 +0,0 @@ -export var domprops = [ - "$&", - "$'", - "$*", - "$+", - "$1", - "$2", - "$3", - "$4", - "$5", - "$6", - "$7", - "$8", - "$9", - "$_", - "$`", - "$input", - "-moz-animation", - "-moz-animation-delay", - "-moz-animation-direction", - "-moz-animation-duration", - "-moz-animation-fill-mode", - "-moz-animation-iteration-count", - "-moz-animation-name", - "-moz-animation-play-state", - "-moz-animation-timing-function", - "-moz-appearance", - "-moz-backface-visibility", - "-moz-border-end", - "-moz-border-end-color", - "-moz-border-end-style", - "-moz-border-end-width", - "-moz-border-image", - "-moz-border-start", - "-moz-border-start-color", - "-moz-border-start-style", - "-moz-border-start-width", - "-moz-box-align", - "-moz-box-direction", - "-moz-box-flex", - "-moz-box-ordinal-group", - "-moz-box-orient", - "-moz-box-pack", - "-moz-box-sizing", - "-moz-float-edge", - "-moz-font-feature-settings", - "-moz-font-language-override", - "-moz-force-broken-image-icon", - "-moz-hyphens", - "-moz-image-region", - "-moz-margin-end", - "-moz-margin-start", - "-moz-orient", - "-moz-osx-font-smoothing", - "-moz-outline-radius", - "-moz-outline-radius-bottomleft", - "-moz-outline-radius-bottomright", - "-moz-outline-radius-topleft", - "-moz-outline-radius-topright", - "-moz-padding-end", - "-moz-padding-start", - "-moz-perspective", - "-moz-perspective-origin", - "-moz-tab-size", - "-moz-text-size-adjust", - "-moz-transform", - "-moz-transform-origin", - "-moz-transform-style", - "-moz-transition", - "-moz-transition-delay", - "-moz-transition-duration", - "-moz-transition-property", - "-moz-transition-timing-function", - "-moz-user-focus", - "-moz-user-input", - "-moz-user-modify", - "-moz-user-select", - "-moz-window-dragging", - "-webkit-align-content", - "-webkit-align-items", - "-webkit-align-self", - "-webkit-animation", - "-webkit-animation-delay", - "-webkit-animation-direction", - "-webkit-animation-duration", - "-webkit-animation-fill-mode", - "-webkit-animation-iteration-count", - "-webkit-animation-name", - "-webkit-animation-play-state", - "-webkit-animation-timing-function", - "-webkit-appearance", - "-webkit-backface-visibility", - "-webkit-background-clip", - "-webkit-background-origin", - "-webkit-background-size", - "-webkit-border-bottom-left-radius", - "-webkit-border-bottom-right-radius", - "-webkit-border-image", - "-webkit-border-radius", - "-webkit-border-top-left-radius", - "-webkit-border-top-right-radius", - "-webkit-box-align", - "-webkit-box-direction", - "-webkit-box-flex", - "-webkit-box-ordinal-group", - "-webkit-box-orient", - "-webkit-box-pack", - "-webkit-box-shadow", - "-webkit-box-sizing", - "-webkit-clip-path", - "-webkit-filter", - "-webkit-flex", - "-webkit-flex-basis", - "-webkit-flex-direction", - "-webkit-flex-flow", - "-webkit-flex-grow", - "-webkit-flex-shrink", - "-webkit-flex-wrap", - "-webkit-font-feature-settings", - "-webkit-justify-content", - "-webkit-line-clamp", - "-webkit-mask", - "-webkit-mask-clip", - "-webkit-mask-composite", - "-webkit-mask-image", - "-webkit-mask-origin", - "-webkit-mask-position", - "-webkit-mask-position-x", - "-webkit-mask-position-y", - "-webkit-mask-repeat", - "-webkit-mask-size", - "-webkit-order", - "-webkit-perspective", - "-webkit-perspective-origin", - "-webkit-text-fill-color", - "-webkit-text-security", - "-webkit-text-size-adjust", - "-webkit-text-stroke", - "-webkit-text-stroke-color", - "-webkit-text-stroke-width", - "-webkit-transform", - "-webkit-transform-origin", - "-webkit-transform-style", - "-webkit-transition", - "-webkit-transition-delay", - "-webkit-transition-duration", - "-webkit-transition-property", - "-webkit-transition-timing-function", - "-webkit-user-select", - "@@iterator", - "ABORT_ERR", - "ACTIVE", - "ACTIVE_ATTRIBUTES", - "ACTIVE_TEXTURE", - "ACTIVE_UNIFORMS", - "ACTIVE_UNIFORM_BLOCKS", - "ADDITION", - "ALIASED_LINE_WIDTH_RANGE", - "ALIASED_POINT_SIZE_RANGE", - "ALL", - "ALLOW_KEYBOARD_INPUT", - "ALLPASS", - "ALPHA", - "ALPHA_BITS", - "ALREADY_SIGNALED", - "ALT_MASK", - "ALWAYS", - "ANY_SAMPLES_PASSED", - "ANY_SAMPLES_PASSED_CONSERVATIVE", - "ANY_TYPE", - "ANY_UNORDERED_NODE_TYPE", - "ARRAY_BUFFER", - "ARRAY_BUFFER_BINDING", - "ATTACHED_SHADERS", - "ATTRIBUTE_NODE", - "AT_TARGET", - "AbortController", - "AbortSignal", - "AbsoluteOrientationSensor", - "AbstractRange", - "Accelerometer", - "AddSearchProvider", - "AggregateError", - "AnalyserNode", - "Animation", - "AnimationEffect", - "AnimationEvent", - "AnimationPlaybackEvent", - "AnimationTimeline", - "AnonXMLHttpRequest", - "Any", - "AnyPermissions", - "ApplicationCache", - "ApplicationCacheErrorEvent", - "Array", - "ArrayBuffer", - "ArrayType", - "Atomics", - "Attr", - "Audio", - "AudioBuffer", - "AudioBufferSourceNode", - "AudioContext", - "AudioData", - "AudioDecoder", - "AudioDestinationNode", - "AudioEncoder", - "AudioListener", - "AudioNode", - "AudioParam", - "AudioParamMap", - "AudioProcessingEvent", - "AudioScheduledSourceNode", - "AudioSinkInfo", - "AudioStreamTrack", - "AudioWorklet", - "AudioWorkletNode", - "AuthenticatorAssertionResponse", - "AuthenticatorAttestationResponse", - "AuthenticatorResponse", - "AutocompleteErrorEvent", - "BACK", - "BAD_BOUNDARYPOINTS_ERR", - "BAD_REQUEST", - "BANDPASS", - "BLEND", - "BLEND_COLOR", - "BLEND_DST_ALPHA", - "BLEND_DST_RGB", - "BLEND_EQUATION", - "BLEND_EQUATION_ALPHA", - "BLEND_EQUATION_RGB", - "BLEND_SRC_ALPHA", - "BLEND_SRC_RGB", - "BLUE", - "BLUE_BITS", - "BLUR", - "BOOL", - "BOOLEAN_TYPE", - "BOOL_VEC2", - "BOOL_VEC3", - "BOOL_VEC4", - "BOTH", - "BROWSER_DEFAULT_WEBGL", - "BUBBLING_PHASE", - "BUFFER_SIZE", - "BUFFER_USAGE", - "BYTE", - "BYTES_PER_ELEMENT", - "BackgroundFetchManager", - "BackgroundFetchRecord", - "BackgroundFetchRegistration", - "BarProp", - "BarcodeDetector", - "BaseAudioContext", - "BaseHref", - "BatteryManager", - "BeforeInstallPromptEvent", - "BeforeLoadEvent", - "BeforeUnloadEvent", - "BigInt", - "BigInt64Array", - "BigUint64Array", - "BiquadFilterNode", - "Blob", - "BlobEvent", - "Bluetooth", - "BluetoothCharacteristicProperties", - "BluetoothDevice", - "BluetoothRemoteGATTCharacteristic", - "BluetoothRemoteGATTDescriptor", - "BluetoothRemoteGATTServer", - "BluetoothRemoteGATTService", - "BluetoothUUID", - "Boolean", - "BroadcastChannel", - "BrowserCaptureMediaStreamTrack", - "BrowserInfo", - "ByteLengthQueuingStrategy", - "CAPTURING_PHASE", - "CCW", - "CDATASection", - "CDATA_SECTION_NODE", - "CHANGE", - "CHARSET_RULE", - "CHECKING", - "CLAMP_TO_EDGE", - "CLICK", - "CLOSED", - "CLOSING", - "COLOR", - "COLOR_ATTACHMENT0", - "COLOR_ATTACHMENT1", - "COLOR_ATTACHMENT10", - "COLOR_ATTACHMENT11", - "COLOR_ATTACHMENT12", - "COLOR_ATTACHMENT13", - "COLOR_ATTACHMENT14", - "COLOR_ATTACHMENT15", - "COLOR_ATTACHMENT2", - "COLOR_ATTACHMENT3", - "COLOR_ATTACHMENT4", - "COLOR_ATTACHMENT5", - "COLOR_ATTACHMENT6", - "COLOR_ATTACHMENT7", - "COLOR_ATTACHMENT8", - "COLOR_ATTACHMENT9", - "COLOR_BUFFER_BIT", - "COLOR_CLEAR_VALUE", - "COLOR_WRITEMASK", - "COMMENT_NODE", - "COMPARE_REF_TO_TEXTURE", - "COMPILE_STATUS", - "COMPLETION_STATUS_KHR", - "COMPRESSED_RGBA_S3TC_DXT1_EXT", - "COMPRESSED_RGBA_S3TC_DXT3_EXT", - "COMPRESSED_RGBA_S3TC_DXT5_EXT", - "COMPRESSED_RGB_S3TC_DXT1_EXT", - "COMPRESSED_TEXTURE_FORMATS", - "COMPUTE", - "CONDITION_SATISFIED", - "CONFIGURATION_UNSUPPORTED", - "CONNECTING", - "CONSTANT_ALPHA", - "CONSTANT_COLOR", - "CONSTRAINT_ERR", - "CONTEXT_LOST_WEBGL", - "CONTROL_MASK", - "COPY_DST", - "COPY_READ_BUFFER", - "COPY_READ_BUFFER_BINDING", - "COPY_SRC", - "COPY_WRITE_BUFFER", - "COPY_WRITE_BUFFER_BINDING", - "COUNTER_STYLE_RULE", - "CSS", - "CSS2Properties", - "CSSAnimation", - "CSSCharsetRule", - "CSSConditionRule", - "CSSContainerRule", - "CSSCounterStyleRule", - "CSSFontFaceRule", - "CSSFontFeatureValuesRule", - "CSSFontPaletteValuesRule", - "CSSGroupingRule", - "CSSImageValue", - "CSSImportRule", - "CSSKeyframeRule", - "CSSKeyframesRule", - "CSSKeywordValue", - "CSSLayerBlockRule", - "CSSLayerStatementRule", - "CSSMarginRule", - "CSSMathClamp", - "CSSMathInvert", - "CSSMathMax", - "CSSMathMin", - "CSSMathNegate", - "CSSMathProduct", - "CSSMathSum", - "CSSMathValue", - "CSSMatrixComponent", - "CSSMediaRule", - "CSSMozDocumentRule", - "CSSNameSpaceRule", - "CSSNamespaceRule", - "CSSNestedDeclarations", - "CSSNumericArray", - "CSSNumericValue", - "CSSPageDescriptors", - "CSSPageRule", - "CSSPerspective", - "CSSPositionTryDescriptors", - "CSSPositionTryRule", - "CSSPositionValue", - "CSSPrimitiveValue", - "CSSPropertyRule", - "CSSRotate", - "CSSRule", - "CSSRuleList", - "CSSScale", - "CSSScopeRule", - "CSSSkew", - "CSSSkewX", - "CSSSkewY", - "CSSStartingStyleRule", - "CSSStyleDeclaration", - "CSSStyleRule", - "CSSStyleSheet", - "CSSStyleValue", - "CSSSupportsRule", - "CSSTransformComponent", - "CSSTransformValue", - "CSSTransition", - "CSSTranslate", - "CSSUnitValue", - "CSSUnknownRule", - "CSSUnparsedValue", - "CSSValue", - "CSSValueList", - "CSSVariableReferenceValue", - "CSSVariablesDeclaration", - "CSSVariablesRule", - "CSSViewTransitionRule", - "CSSViewportRule", - "CSS_ATTR", - "CSS_CM", - "CSS_COUNTER", - "CSS_CUSTOM", - "CSS_DEG", - "CSS_DIMENSION", - "CSS_EMS", - "CSS_EXS", - "CSS_FILTER_BLUR", - "CSS_FILTER_BRIGHTNESS", - "CSS_FILTER_CONTRAST", - "CSS_FILTER_CUSTOM", - "CSS_FILTER_DROP_SHADOW", - "CSS_FILTER_GRAYSCALE", - "CSS_FILTER_HUE_ROTATE", - "CSS_FILTER_INVERT", - "CSS_FILTER_OPACITY", - "CSS_FILTER_REFERENCE", - "CSS_FILTER_SATURATE", - "CSS_FILTER_SEPIA", - "CSS_GRAD", - "CSS_HZ", - "CSS_IDENT", - "CSS_IN", - "CSS_INHERIT", - "CSS_KHZ", - "CSS_MATRIX", - "CSS_MATRIX3D", - "CSS_MM", - "CSS_MS", - "CSS_NUMBER", - "CSS_PC", - "CSS_PERCENTAGE", - "CSS_PERSPECTIVE", - "CSS_PRIMITIVE_VALUE", - "CSS_PT", - "CSS_PX", - "CSS_RAD", - "CSS_RECT", - "CSS_RGBCOLOR", - "CSS_ROTATE", - "CSS_ROTATE3D", - "CSS_ROTATEX", - "CSS_ROTATEY", - "CSS_ROTATEZ", - "CSS_S", - "CSS_SCALE", - "CSS_SCALE3D", - "CSS_SCALEX", - "CSS_SCALEY", - "CSS_SCALEZ", - "CSS_SKEW", - "CSS_SKEWX", - "CSS_SKEWY", - "CSS_STRING", - "CSS_TRANSLATE", - "CSS_TRANSLATE3D", - "CSS_TRANSLATEX", - "CSS_TRANSLATEY", - "CSS_TRANSLATEZ", - "CSS_UNKNOWN", - "CSS_URI", - "CSS_VALUE_LIST", - "CSS_VH", - "CSS_VMAX", - "CSS_VMIN", - "CSS_VW", - "CULL_FACE", - "CULL_FACE_MODE", - "CURRENT_PROGRAM", - "CURRENT_QUERY", - "CURRENT_VERTEX_ATTRIB", - "CUSTOM", - "CW", - "Cache", - "CacheStorage", - "CanvasCaptureMediaStream", - "CanvasCaptureMediaStreamTrack", - "CanvasGradient", - "CanvasPattern", - "CanvasRenderingContext2D", - "CaptureController", - "CaretPosition", - "ChannelMergerNode", - "ChannelSplitterNode", - "ChapterInformation", - "CharacterBoundsUpdateEvent", - "CharacterData", - "ClientRect", - "ClientRectList", - "Clipboard", - "ClipboardEvent", - "ClipboardItem", - "CloseEvent", - "CloseWatcher", - "Collator", - "ColorArray", - "ColorValue", - "CommandEvent", - "Comment", - "CompileError", - "CompositionEvent", - "CompressionStream", - "Console", - "ConstantSourceNode", - "ContentVisibilityAutoStateChangeEvent", - "ContextFilter", - "ContextType", - "Controllers", - "ConvolverNode", - "CookieChangeEvent", - "CookieStore", - "CookieStoreManager", - "CountQueuingStrategy", - "Counter", - "CreateType", - "Credential", - "CredentialsContainer", - "CropTarget", - "Crypto", - "CryptoKey", - "CustomElementRegistry", - "CustomEvent", - "CustomStateSet", - "DATABASE_ERR", - "DATA_CLONE_ERR", - "DATA_ERR", - "DBLCLICK", - "DECR", - "DECR_WRAP", - "DELETE_STATUS", - "DEPTH", - "DEPTH24_STENCIL8", - "DEPTH32F_STENCIL8", - "DEPTH_ATTACHMENT", - "DEPTH_BITS", - "DEPTH_BUFFER_BIT", - "DEPTH_CLEAR_VALUE", - "DEPTH_COMPONENT", - "DEPTH_COMPONENT16", - "DEPTH_COMPONENT24", - "DEPTH_COMPONENT32F", - "DEPTH_FUNC", - "DEPTH_RANGE", - "DEPTH_STENCIL", - "DEPTH_STENCIL_ATTACHMENT", - "DEPTH_TEST", - "DEPTH_WRITEMASK", - "DEVICE_INELIGIBLE", - "DIRECTION_DOWN", - "DIRECTION_LEFT", - "DIRECTION_RIGHT", - "DIRECTION_UP", - "DISABLED", - "DISPATCH_REQUEST_ERR", - "DITHER", - "DOCUMENT_FRAGMENT_NODE", - "DOCUMENT_NODE", - "DOCUMENT_POSITION_CONTAINED_BY", - "DOCUMENT_POSITION_CONTAINS", - "DOCUMENT_POSITION_DISCONNECTED", - "DOCUMENT_POSITION_FOLLOWING", - "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC", - "DOCUMENT_POSITION_PRECEDING", - "DOCUMENT_TYPE_NODE", - "DOMCursor", - "DOMError", - "DOMException", - "DOMImplementation", - "DOMImplementationLS", - "DOMMatrix", - "DOMMatrixReadOnly", - "DOMParser", - "DOMPoint", - "DOMPointReadOnly", - "DOMQuad", - "DOMRect", - "DOMRectList", - "DOMRectReadOnly", - "DOMRequest", - "DOMSTRING_SIZE_ERR", - "DOMSettableTokenList", - "DOMStringList", - "DOMStringMap", - "DOMTokenList", - "DOMTransactionEvent", - "DOM_DELTA_LINE", - "DOM_DELTA_PAGE", - "DOM_DELTA_PIXEL", - "DOM_INPUT_METHOD_DROP", - "DOM_INPUT_METHOD_HANDWRITING", - "DOM_INPUT_METHOD_IME", - "DOM_INPUT_METHOD_KEYBOARD", - "DOM_INPUT_METHOD_MULTIMODAL", - "DOM_INPUT_METHOD_OPTION", - "DOM_INPUT_METHOD_PASTE", - "DOM_INPUT_METHOD_SCRIPT", - "DOM_INPUT_METHOD_UNKNOWN", - "DOM_INPUT_METHOD_VOICE", - "DOM_KEY_LOCATION_JOYSTICK", - "DOM_KEY_LOCATION_LEFT", - "DOM_KEY_LOCATION_MOBILE", - "DOM_KEY_LOCATION_NUMPAD", - "DOM_KEY_LOCATION_RIGHT", - "DOM_KEY_LOCATION_STANDARD", - "DOM_VK_0", - "DOM_VK_1", - "DOM_VK_2", - "DOM_VK_3", - "DOM_VK_4", - "DOM_VK_5", - "DOM_VK_6", - "DOM_VK_7", - "DOM_VK_8", - "DOM_VK_9", - "DOM_VK_A", - "DOM_VK_ACCEPT", - "DOM_VK_ADD", - "DOM_VK_ALT", - "DOM_VK_ALTGR", - "DOM_VK_AMPERSAND", - "DOM_VK_ASTERISK", - "DOM_VK_AT", - "DOM_VK_ATTN", - "DOM_VK_B", - "DOM_VK_BACKSPACE", - "DOM_VK_BACK_QUOTE", - "DOM_VK_BACK_SLASH", - "DOM_VK_BACK_SPACE", - "DOM_VK_C", - "DOM_VK_CANCEL", - "DOM_VK_CAPS_LOCK", - "DOM_VK_CIRCUMFLEX", - "DOM_VK_CLEAR", - "DOM_VK_CLOSE_BRACKET", - "DOM_VK_CLOSE_CURLY_BRACKET", - "DOM_VK_CLOSE_PAREN", - "DOM_VK_COLON", - "DOM_VK_COMMA", - "DOM_VK_CONTEXT_MENU", - "DOM_VK_CONTROL", - "DOM_VK_CONVERT", - "DOM_VK_CRSEL", - "DOM_VK_CTRL", - "DOM_VK_D", - "DOM_VK_DECIMAL", - "DOM_VK_DELETE", - "DOM_VK_DIVIDE", - "DOM_VK_DOLLAR", - "DOM_VK_DOUBLE_QUOTE", - "DOM_VK_DOWN", - "DOM_VK_E", - "DOM_VK_EISU", - "DOM_VK_END", - "DOM_VK_ENTER", - "DOM_VK_EQUALS", - "DOM_VK_EREOF", - "DOM_VK_ESCAPE", - "DOM_VK_EXCLAMATION", - "DOM_VK_EXECUTE", - "DOM_VK_EXSEL", - "DOM_VK_F", - "DOM_VK_F1", - "DOM_VK_F10", - "DOM_VK_F11", - "DOM_VK_F12", - "DOM_VK_F13", - "DOM_VK_F14", - "DOM_VK_F15", - "DOM_VK_F16", - "DOM_VK_F17", - "DOM_VK_F18", - "DOM_VK_F19", - "DOM_VK_F2", - "DOM_VK_F20", - "DOM_VK_F21", - "DOM_VK_F22", - "DOM_VK_F23", - "DOM_VK_F24", - "DOM_VK_F25", - "DOM_VK_F26", - "DOM_VK_F27", - "DOM_VK_F28", - "DOM_VK_F29", - "DOM_VK_F3", - "DOM_VK_F30", - "DOM_VK_F31", - "DOM_VK_F32", - "DOM_VK_F33", - "DOM_VK_F34", - "DOM_VK_F35", - "DOM_VK_F36", - "DOM_VK_F4", - "DOM_VK_F5", - "DOM_VK_F6", - "DOM_VK_F7", - "DOM_VK_F8", - "DOM_VK_F9", - "DOM_VK_FINAL", - "DOM_VK_FRONT", - "DOM_VK_G", - "DOM_VK_GREATER_THAN", - "DOM_VK_H", - "DOM_VK_HANGUL", - "DOM_VK_HANJA", - "DOM_VK_HASH", - "DOM_VK_HELP", - "DOM_VK_HK_TOGGLE", - "DOM_VK_HOME", - "DOM_VK_HYPHEN_MINUS", - "DOM_VK_I", - "DOM_VK_INSERT", - "DOM_VK_J", - "DOM_VK_JUNJA", - "DOM_VK_K", - "DOM_VK_KANA", - "DOM_VK_KANJI", - "DOM_VK_L", - "DOM_VK_LEFT", - "DOM_VK_LEFT_TAB", - "DOM_VK_LESS_THAN", - "DOM_VK_M", - "DOM_VK_META", - "DOM_VK_MODECHANGE", - "DOM_VK_MULTIPLY", - "DOM_VK_N", - "DOM_VK_NONCONVERT", - "DOM_VK_NUMPAD0", - "DOM_VK_NUMPAD1", - "DOM_VK_NUMPAD2", - "DOM_VK_NUMPAD3", - "DOM_VK_NUMPAD4", - "DOM_VK_NUMPAD5", - "DOM_VK_NUMPAD6", - "DOM_VK_NUMPAD7", - "DOM_VK_NUMPAD8", - "DOM_VK_NUMPAD9", - "DOM_VK_NUM_LOCK", - "DOM_VK_O", - "DOM_VK_OEM_1", - "DOM_VK_OEM_102", - "DOM_VK_OEM_2", - "DOM_VK_OEM_3", - "DOM_VK_OEM_4", - "DOM_VK_OEM_5", - "DOM_VK_OEM_6", - "DOM_VK_OEM_7", - "DOM_VK_OEM_8", - "DOM_VK_OEM_COMMA", - "DOM_VK_OEM_MINUS", - "DOM_VK_OEM_PERIOD", - "DOM_VK_OEM_PLUS", - "DOM_VK_OPEN_BRACKET", - "DOM_VK_OPEN_CURLY_BRACKET", - "DOM_VK_OPEN_PAREN", - "DOM_VK_P", - "DOM_VK_PA1", - "DOM_VK_PAGEDOWN", - "DOM_VK_PAGEUP", - "DOM_VK_PAGE_DOWN", - "DOM_VK_PAGE_UP", - "DOM_VK_PAUSE", - "DOM_VK_PERCENT", - "DOM_VK_PERIOD", - "DOM_VK_PIPE", - "DOM_VK_PLAY", - "DOM_VK_PLUS", - "DOM_VK_PRINT", - "DOM_VK_PRINTSCREEN", - "DOM_VK_PROCESSKEY", - "DOM_VK_PROPERITES", - "DOM_VK_Q", - "DOM_VK_QUESTION_MARK", - "DOM_VK_QUOTE", - "DOM_VK_R", - "DOM_VK_REDO", - "DOM_VK_RETURN", - "DOM_VK_RIGHT", - "DOM_VK_S", - "DOM_VK_SCROLL_LOCK", - "DOM_VK_SELECT", - "DOM_VK_SEMICOLON", - "DOM_VK_SEPARATOR", - "DOM_VK_SHIFT", - "DOM_VK_SLASH", - "DOM_VK_SLEEP", - "DOM_VK_SPACE", - "DOM_VK_SUBTRACT", - "DOM_VK_T", - "DOM_VK_TAB", - "DOM_VK_TILDE", - "DOM_VK_U", - "DOM_VK_UNDERSCORE", - "DOM_VK_UNDO", - "DOM_VK_UNICODE", - "DOM_VK_UP", - "DOM_VK_V", - "DOM_VK_VOLUME_DOWN", - "DOM_VK_VOLUME_MUTE", - "DOM_VK_VOLUME_UP", - "DOM_VK_W", - "DOM_VK_WIN", - "DOM_VK_WINDOW", - "DOM_VK_WIN_ICO_00", - "DOM_VK_WIN_ICO_CLEAR", - "DOM_VK_WIN_ICO_HELP", - "DOM_VK_WIN_OEM_ATTN", - "DOM_VK_WIN_OEM_AUTO", - "DOM_VK_WIN_OEM_BACKTAB", - "DOM_VK_WIN_OEM_CLEAR", - "DOM_VK_WIN_OEM_COPY", - "DOM_VK_WIN_OEM_CUSEL", - "DOM_VK_WIN_OEM_ENLW", - "DOM_VK_WIN_OEM_FINISH", - "DOM_VK_WIN_OEM_FJ_JISHO", - "DOM_VK_WIN_OEM_FJ_LOYA", - "DOM_VK_WIN_OEM_FJ_MASSHOU", - "DOM_VK_WIN_OEM_FJ_ROYA", - "DOM_VK_WIN_OEM_FJ_TOUROKU", - "DOM_VK_WIN_OEM_JUMP", - "DOM_VK_WIN_OEM_PA1", - "DOM_VK_WIN_OEM_PA2", - "DOM_VK_WIN_OEM_PA3", - "DOM_VK_WIN_OEM_RESET", - "DOM_VK_WIN_OEM_WSCTRL", - "DOM_VK_X", - "DOM_VK_XF86XK_ADD_FAVORITE", - "DOM_VK_XF86XK_APPLICATION_LEFT", - "DOM_VK_XF86XK_APPLICATION_RIGHT", - "DOM_VK_XF86XK_AUDIO_CYCLE_TRACK", - "DOM_VK_XF86XK_AUDIO_FORWARD", - "DOM_VK_XF86XK_AUDIO_LOWER_VOLUME", - "DOM_VK_XF86XK_AUDIO_MEDIA", - "DOM_VK_XF86XK_AUDIO_MUTE", - "DOM_VK_XF86XK_AUDIO_NEXT", - "DOM_VK_XF86XK_AUDIO_PAUSE", - "DOM_VK_XF86XK_AUDIO_PLAY", - "DOM_VK_XF86XK_AUDIO_PREV", - "DOM_VK_XF86XK_AUDIO_RAISE_VOLUME", - "DOM_VK_XF86XK_AUDIO_RANDOM_PLAY", - "DOM_VK_XF86XK_AUDIO_RECORD", - "DOM_VK_XF86XK_AUDIO_REPEAT", - "DOM_VK_XF86XK_AUDIO_REWIND", - "DOM_VK_XF86XK_AUDIO_STOP", - "DOM_VK_XF86XK_AWAY", - "DOM_VK_XF86XK_BACK", - "DOM_VK_XF86XK_BACK_FORWARD", - "DOM_VK_XF86XK_BATTERY", - "DOM_VK_XF86XK_BLUE", - "DOM_VK_XF86XK_BLUETOOTH", - "DOM_VK_XF86XK_BOOK", - "DOM_VK_XF86XK_BRIGHTNESS_ADJUST", - "DOM_VK_XF86XK_CALCULATOR", - "DOM_VK_XF86XK_CALENDAR", - "DOM_VK_XF86XK_CD", - "DOM_VK_XF86XK_CLOSE", - "DOM_VK_XF86XK_COMMUNITY", - "DOM_VK_XF86XK_CONTRAST_ADJUST", - "DOM_VK_XF86XK_COPY", - "DOM_VK_XF86XK_CUT", - "DOM_VK_XF86XK_CYCLE_ANGLE", - "DOM_VK_XF86XK_DISPLAY", - "DOM_VK_XF86XK_DOCUMENTS", - "DOM_VK_XF86XK_DOS", - "DOM_VK_XF86XK_EJECT", - "DOM_VK_XF86XK_EXCEL", - "DOM_VK_XF86XK_EXPLORER", - "DOM_VK_XF86XK_FAVORITES", - "DOM_VK_XF86XK_FINANCE", - "DOM_VK_XF86XK_FORWARD", - "DOM_VK_XF86XK_FRAME_BACK", - "DOM_VK_XF86XK_FRAME_FORWARD", - "DOM_VK_XF86XK_GAME", - "DOM_VK_XF86XK_GO", - "DOM_VK_XF86XK_GREEN", - "DOM_VK_XF86XK_HIBERNATE", - "DOM_VK_XF86XK_HISTORY", - "DOM_VK_XF86XK_HOME_PAGE", - "DOM_VK_XF86XK_HOT_LINKS", - "DOM_VK_XF86XK_I_TOUCH", - "DOM_VK_XF86XK_KBD_BRIGHTNESS_DOWN", - "DOM_VK_XF86XK_KBD_BRIGHTNESS_UP", - "DOM_VK_XF86XK_KBD_LIGHT_ON_OFF", - "DOM_VK_XF86XK_LAUNCH0", - "DOM_VK_XF86XK_LAUNCH1", - "DOM_VK_XF86XK_LAUNCH2", - "DOM_VK_XF86XK_LAUNCH3", - "DOM_VK_XF86XK_LAUNCH4", - "DOM_VK_XF86XK_LAUNCH5", - "DOM_VK_XF86XK_LAUNCH6", - "DOM_VK_XF86XK_LAUNCH7", - "DOM_VK_XF86XK_LAUNCH8", - "DOM_VK_XF86XK_LAUNCH9", - "DOM_VK_XF86XK_LAUNCH_A", - "DOM_VK_XF86XK_LAUNCH_B", - "DOM_VK_XF86XK_LAUNCH_C", - "DOM_VK_XF86XK_LAUNCH_D", - "DOM_VK_XF86XK_LAUNCH_E", - "DOM_VK_XF86XK_LAUNCH_F", - "DOM_VK_XF86XK_LIGHT_BULB", - "DOM_VK_XF86XK_LOG_OFF", - "DOM_VK_XF86XK_MAIL", - "DOM_VK_XF86XK_MAIL_FORWARD", - "DOM_VK_XF86XK_MARKET", - "DOM_VK_XF86XK_MEETING", - "DOM_VK_XF86XK_MEMO", - "DOM_VK_XF86XK_MENU_KB", - "DOM_VK_XF86XK_MENU_PB", - "DOM_VK_XF86XK_MESSENGER", - "DOM_VK_XF86XK_MON_BRIGHTNESS_DOWN", - "DOM_VK_XF86XK_MON_BRIGHTNESS_UP", - "DOM_VK_XF86XK_MUSIC", - "DOM_VK_XF86XK_MY_COMPUTER", - "DOM_VK_XF86XK_MY_SITES", - "DOM_VK_XF86XK_NEW", - "DOM_VK_XF86XK_NEWS", - "DOM_VK_XF86XK_OFFICE_HOME", - "DOM_VK_XF86XK_OPEN", - "DOM_VK_XF86XK_OPEN_URL", - "DOM_VK_XF86XK_OPTION", - "DOM_VK_XF86XK_PASTE", - "DOM_VK_XF86XK_PHONE", - "DOM_VK_XF86XK_PICTURES", - "DOM_VK_XF86XK_POWER_DOWN", - "DOM_VK_XF86XK_POWER_OFF", - "DOM_VK_XF86XK_RED", - "DOM_VK_XF86XK_REFRESH", - "DOM_VK_XF86XK_RELOAD", - "DOM_VK_XF86XK_REPLY", - "DOM_VK_XF86XK_ROCKER_DOWN", - "DOM_VK_XF86XK_ROCKER_ENTER", - "DOM_VK_XF86XK_ROCKER_UP", - "DOM_VK_XF86XK_ROTATE_WINDOWS", - "DOM_VK_XF86XK_ROTATION_KB", - "DOM_VK_XF86XK_ROTATION_PB", - "DOM_VK_XF86XK_SAVE", - "DOM_VK_XF86XK_SCREEN_SAVER", - "DOM_VK_XF86XK_SCROLL_CLICK", - "DOM_VK_XF86XK_SCROLL_DOWN", - "DOM_VK_XF86XK_SCROLL_UP", - "DOM_VK_XF86XK_SEARCH", - "DOM_VK_XF86XK_SEND", - "DOM_VK_XF86XK_SHOP", - "DOM_VK_XF86XK_SPELL", - "DOM_VK_XF86XK_SPLIT_SCREEN", - "DOM_VK_XF86XK_STANDBY", - "DOM_VK_XF86XK_START", - "DOM_VK_XF86XK_STOP", - "DOM_VK_XF86XK_SUBTITLE", - "DOM_VK_XF86XK_SUPPORT", - "DOM_VK_XF86XK_SUSPEND", - "DOM_VK_XF86XK_TASK_PANE", - "DOM_VK_XF86XK_TERMINAL", - "DOM_VK_XF86XK_TIME", - "DOM_VK_XF86XK_TOOLS", - "DOM_VK_XF86XK_TOP_MENU", - "DOM_VK_XF86XK_TO_DO_LIST", - "DOM_VK_XF86XK_TRAVEL", - "DOM_VK_XF86XK_USER1KB", - "DOM_VK_XF86XK_USER2KB", - "DOM_VK_XF86XK_USER_PB", - "DOM_VK_XF86XK_UWB", - "DOM_VK_XF86XK_VENDOR_HOME", - "DOM_VK_XF86XK_VIDEO", - "DOM_VK_XF86XK_VIEW", - "DOM_VK_XF86XK_WAKE_UP", - "DOM_VK_XF86XK_WEB_CAM", - "DOM_VK_XF86XK_WHEEL_BUTTON", - "DOM_VK_XF86XK_WLAN", - "DOM_VK_XF86XK_WORD", - "DOM_VK_XF86XK_WWW", - "DOM_VK_XF86XK_XFER", - "DOM_VK_XF86XK_YELLOW", - "DOM_VK_XF86XK_ZOOM_IN", - "DOM_VK_XF86XK_ZOOM_OUT", - "DOM_VK_Y", - "DOM_VK_Z", - "DOM_VK_ZOOM", - "DONE", - "DONT_CARE", - "DOWNLOADING", - "DRAGDROP", - "DRAW_BUFFER0", - "DRAW_BUFFER1", - "DRAW_BUFFER10", - "DRAW_BUFFER11", - "DRAW_BUFFER12", - "DRAW_BUFFER13", - "DRAW_BUFFER14", - "DRAW_BUFFER15", - "DRAW_BUFFER2", - "DRAW_BUFFER3", - "DRAW_BUFFER4", - "DRAW_BUFFER5", - "DRAW_BUFFER6", - "DRAW_BUFFER7", - "DRAW_BUFFER8", - "DRAW_BUFFER9", - "DRAW_FRAMEBUFFER", - "DRAW_FRAMEBUFFER_BINDING", - "DST_ALPHA", - "DST_COLOR", - "DYNAMIC_COPY", - "DYNAMIC_DRAW", - "DYNAMIC_READ", - "DataChannel", - "DataTransfer", - "DataTransferItem", - "DataTransferItemList", - "DataView", - "Date", - "DateTimeFormat", - "DecompressionStream", - "DelayNode", - "DelegatedInkTrailPresenter", - "DeprecationReportBody", - "DesktopNotification", - "DesktopNotificationCenter", - "Details", - "DeviceLightEvent", - "DeviceMotionEvent", - "DeviceMotionEventAcceleration", - "DeviceMotionEventRotationRate", - "DeviceOrientationEvent", - "DeviceProximityEvent", - "DeviceStorage", - "DeviceStorageChangeEvent", - "Directory", - "DisplayNames", - "Document", - "DocumentFragment", - "DocumentPictureInPicture", - "DocumentPictureInPictureEvent", - "DocumentTimeline", - "DocumentType", - "DragEvent", - "DurationFormat", - "DynamicsCompressorNode", - "E", - "ELEMENT_ARRAY_BUFFER", - "ELEMENT_ARRAY_BUFFER_BINDING", - "ELEMENT_NODE", - "EMPTY", - "ENCODING_ERR", - "ENDED", - "END_TO_END", - "END_TO_START", - "ENTITY_NODE", - "ENTITY_REFERENCE_NODE", - "EPSILON", - "EQUAL", - "EQUALPOWER", - "ERROR", - "EXPONENTIAL_DISTANCE", - "EditContext", - "Element", - "ElementInternals", - "ElementQuery", - "EncodedAudioChunk", - "EncodedVideoChunk", - "EnterPictureInPictureEvent", - "Entity", - "EntityReference", - "Error", - "ErrorEvent", - "EvalError", - "Event", - "EventCounts", - "EventException", - "EventSource", - "EventTarget", - "Exception", - "ExtensionContext", - "ExtensionDisabledReason", - "ExtensionInfo", - "ExtensionInstallType", - "ExtensionType", - "External", - "EyeDropper", - "FASTEST", - "FIDOSDK", - "FILTER_ACCEPT", - "FILTER_INTERRUPT", - "FILTER_REJECT", - "FILTER_SKIP", - "FINISHED_STATE", - "FIRST_ORDERED_NODE_TYPE", - "FLOAT", - "FLOAT_32_UNSIGNED_INT_24_8_REV", - "FLOAT_MAT2", - "FLOAT_MAT2x3", - "FLOAT_MAT2x4", - "FLOAT_MAT3", - "FLOAT_MAT3x2", - "FLOAT_MAT3x4", - "FLOAT_MAT4", - "FLOAT_MAT4x2", - "FLOAT_MAT4x3", - "FLOAT_VEC2", - "FLOAT_VEC3", - "FLOAT_VEC4", - "FOCUS", - "FONT_FACE_RULE", - "FONT_FEATURE_VALUES_RULE", - "FRAGMENT", - "FRAGMENT_SHADER", - "FRAGMENT_SHADER_DERIVATIVE_HINT", - "FRAGMENT_SHADER_DERIVATIVE_HINT_OES", - "FRAMEBUFFER", - "FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE", - "FRAMEBUFFER_ATTACHMENT_BLUE_SIZE", - "FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING", - "FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE", - "FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE", - "FRAMEBUFFER_ATTACHMENT_GREEN_SIZE", - "FRAMEBUFFER_ATTACHMENT_OBJECT_NAME", - "FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE", - "FRAMEBUFFER_ATTACHMENT_RED_SIZE", - "FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE", - "FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE", - "FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER", - "FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL", - "FRAMEBUFFER_BINDING", - "FRAMEBUFFER_COMPLETE", - "FRAMEBUFFER_DEFAULT", - "FRAMEBUFFER_INCOMPLETE_ATTACHMENT", - "FRAMEBUFFER_INCOMPLETE_DIMENSIONS", - "FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT", - "FRAMEBUFFER_INCOMPLETE_MULTISAMPLE", - "FRAMEBUFFER_UNSUPPORTED", - "FRONT", - "FRONT_AND_BACK", - "FRONT_FACE", - "FUNC_ADD", - "FUNC_REVERSE_SUBTRACT", - "FUNC_SUBTRACT", - "FeaturePolicy", - "FeaturePolicyViolationReportBody", - "FederatedCredential", - "Feed", - "FeedEntry", - "Fence", - "FencedFrameConfig", - "File", - "FileError", - "FileList", - "FileReader", - "FileSystem", - "FileSystemDirectoryEntry", - "FileSystemDirectoryHandle", - "FileSystemDirectoryReader", - "FileSystemEntry", - "FileSystemFileEntry", - "FileSystemFileHandle", - "FileSystemHandle", - "FileSystemWritableFileStream", - "FinalizationRegistry", - "FindInPage", - "Float16Array", - "Float32Array", - "Float64Array", - "FocusEvent", - "FontData", - "FontFace", - "FontFaceSet", - "FontFaceSetLoadEvent", - "FormData", - "FormDataEvent", - "FragmentDirective", - "Function", - "GENERATE_MIPMAP_HINT", - "GEQUAL", - "GPU", - "GPUAdapter", - "GPUAdapterInfo", - "GPUBindGroup", - "GPUBindGroupLayout", - "GPUBuffer", - "GPUBufferUsage", - "GPUCanvasContext", - "GPUColorWrite", - "GPUCommandBuffer", - "GPUCommandEncoder", - "GPUCompilationInfo", - "GPUCompilationMessage", - "GPUComputePassEncoder", - "GPUComputePipeline", - "GPUDevice", - "GPUDeviceLostInfo", - "GPUError", - "GPUExternalTexture", - "GPUInternalError", - "GPUMapMode", - "GPUOutOfMemoryError", - "GPUPipelineError", - "GPUPipelineLayout", - "GPUQuerySet", - "GPUQueue", - "GPURenderBundle", - "GPURenderBundleEncoder", - "GPURenderPassEncoder", - "GPURenderPipeline", - "GPUSampler", - "GPUShaderModule", - "GPUShaderStage", - "GPUSupportedFeatures", - "GPUSupportedLimits", - "GPUTexture", - "GPUTextureUsage", - "GPUTextureView", - "GPUUncapturedErrorEvent", - "GPUValidationError", - "GREATER", - "GREEN", - "GREEN_BITS", - "GainNode", - "Gamepad", - "GamepadAxisMoveEvent", - "GamepadButton", - "GamepadButtonEvent", - "GamepadEvent", - "GamepadHapticActuator", - "GamepadPose", - "Geolocation", - "GeolocationCoordinates", - "GeolocationPosition", - "GeolocationPositionError", - "GestureEvent", - "GetInfo", - "Global", - "GravitySensor", - "Gyroscope", - "HALF_FLOAT", - "HAVE_CURRENT_DATA", - "HAVE_ENOUGH_DATA", - "HAVE_FUTURE_DATA", - "HAVE_METADATA", - "HAVE_NOTHING", - "HEADERS_RECEIVED", - "HID", - "HIDConnectionEvent", - "HIDDEN", - "HIDDevice", - "HIDInputReportEvent", - "HIERARCHY_REQUEST_ERR", - "HIGHPASS", - "HIGHSHELF", - "HIGH_FLOAT", - "HIGH_INT", - "HORIZONTAL", - "HORIZONTAL_AXIS", - "HRTF", - "HTMLAllCollection", - "HTMLAnchorElement", - "HTMLAppletElement", - "HTMLAreaElement", - "HTMLAudioElement", - "HTMLBRElement", - "HTMLBaseElement", - "HTMLBaseFontElement", - "HTMLBlockquoteElement", - "HTMLBodyElement", - "HTMLButtonElement", - "HTMLCanvasElement", - "HTMLCollection", - "HTMLCommandElement", - "HTMLContentElement", - "HTMLDListElement", - "HTMLDataElement", - "HTMLDataListElement", - "HTMLDetailsElement", - "HTMLDialogElement", - "HTMLDirectoryElement", - "HTMLDivElement", - "HTMLDocument", - "HTMLElement", - "HTMLEmbedElement", - "HTMLFencedFrameElement", - "HTMLFieldSetElement", - "HTMLFontElement", - "HTMLFormControlsCollection", - "HTMLFormElement", - "HTMLFrameElement", - "HTMLFrameSetElement", - "HTMLHRElement", - "HTMLHeadElement", - "HTMLHeadingElement", - "HTMLHtmlElement", - "HTMLIFrameElement", - "HTMLImageElement", - "HTMLInputElement", - "HTMLIsIndexElement", - "HTMLKeygenElement", - "HTMLLIElement", - "HTMLLabelElement", - "HTMLLegendElement", - "HTMLLinkElement", - "HTMLMapElement", - "HTMLMarqueeElement", - "HTMLMediaElement", - "HTMLMenuElement", - "HTMLMenuItemElement", - "HTMLMetaElement", - "HTMLMeterElement", - "HTMLModElement", - "HTMLOListElement", - "HTMLObjectElement", - "HTMLOptGroupElement", - "HTMLOptionElement", - "HTMLOptionsCollection", - "HTMLOutputElement", - "HTMLParagraphElement", - "HTMLParamElement", - "HTMLPictureElement", - "HTMLPreElement", - "HTMLProgressElement", - "HTMLPropertiesCollection", - "HTMLQuoteElement", - "HTMLScriptElement", - "HTMLSelectElement", - "HTMLShadowElement", - "HTMLSlotElement", - "HTMLSourceElement", - "HTMLSpanElement", - "HTMLStyleElement", - "HTMLTableCaptionElement", - "HTMLTableCellElement", - "HTMLTableColElement", - "HTMLTableElement", - "HTMLTableRowElement", - "HTMLTableSectionElement", - "HTMLTemplateElement", - "HTMLTextAreaElement", - "HTMLTimeElement", - "HTMLTitleElement", - "HTMLTrackElement", - "HTMLUListElement", - "HTMLUnknownElement", - "HTMLVideoElement", - "HashChangeEvent", - "Headers", - "Highlight", - "HighlightRegistry", - "History", - "Hz", - "ICE_CHECKING", - "ICE_CLOSED", - "ICE_COMPLETED", - "ICE_CONNECTED", - "ICE_FAILED", - "ICE_GATHERING", - "ICE_WAITING", - "IDBCursor", - "IDBCursorWithValue", - "IDBDatabase", - "IDBDatabaseException", - "IDBFactory", - "IDBFileHandle", - "IDBFileRequest", - "IDBIndex", - "IDBKeyRange", - "IDBMutableFile", - "IDBObjectStore", - "IDBOpenDBRequest", - "IDBRequest", - "IDBTransaction", - "IDBVersionChangeEvent", - "IDLE", - "IIRFilterNode", - "IMPLEMENTATION_COLOR_READ_FORMAT", - "IMPLEMENTATION_COLOR_READ_TYPE", - "IMPORT_RULE", - "INCR", - "INCR_WRAP", - "INDEX", - "INDEX_SIZE_ERR", - "INDIRECT", - "INT", - "INTERLEAVED_ATTRIBS", - "INT_2_10_10_10_REV", - "INT_SAMPLER_2D", - "INT_SAMPLER_2D_ARRAY", - "INT_SAMPLER_3D", - "INT_SAMPLER_CUBE", - "INT_VEC2", - "INT_VEC3", - "INT_VEC4", - "INUSE_ATTRIBUTE_ERR", - "INVALID_ACCESS_ERR", - "INVALID_CHARACTER_ERR", - "INVALID_ENUM", - "INVALID_EXPRESSION_ERR", - "INVALID_FRAMEBUFFER_OPERATION", - "INVALID_INDEX", - "INVALID_MODIFICATION_ERR", - "INVALID_NODE_TYPE_ERR", - "INVALID_OPERATION", - "INVALID_STATE_ERR", - "INVALID_VALUE", - "INVERSE_DISTANCE", - "INVERT", - "IceCandidate", - "IconInfo", - "IdentityCredential", - "IdentityCredentialError", - "IdentityProvider", - "IdleDeadline", - "IdleDetector", - "Image", - "ImageBitmap", - "ImageBitmapRenderingContext", - "ImageCapture", - "ImageData", - "ImageDataType", - "ImageDecoder", - "ImageTrack", - "ImageTrackList", - "Infinity", - "Ink", - "InputDeviceCapabilities", - "InputDeviceInfo", - "InputEvent", - "InputMethodContext", - "InstallTrigger", - "InstallTriggerImpl", - "Instance", - "Int16Array", - "Int32Array", - "Int8Array", - "Intent", - "InternalError", - "IntersectionObserver", - "IntersectionObserverEntry", - "Intl", - "IsSearchProviderInstalled", - "Iterator", - "JSON", - "JSTag", - "KEEP", - "KEYDOWN", - "KEYFRAMES_RULE", - "KEYFRAME_RULE", - "KEYPRESS", - "KEYUP", - "KeyEvent", - "Keyboard", - "KeyboardEvent", - "KeyboardLayoutMap", - "KeyframeEffect", - "LENGTHADJUST_SPACING", - "LENGTHADJUST_SPACINGANDGLYPHS", - "LENGTHADJUST_UNKNOWN", - "LEQUAL", - "LESS", - "LINEAR", - "LINEAR_DISTANCE", - "LINEAR_MIPMAP_LINEAR", - "LINEAR_MIPMAP_NEAREST", - "LINES", - "LINE_LOOP", - "LINE_STRIP", - "LINE_WIDTH", - "LINK_STATUS", - "LIVE", - "LN10", - "LN2", - "LOADED", - "LOADING", - "LOG10E", - "LOG2E", - "LOWPASS", - "LOWSHELF", - "LOW_FLOAT", - "LOW_INT", - "LSException", - "LSParserFilter", - "LUMINANCE", - "LUMINANCE_ALPHA", - "LanguageCode", - "LargestContentfulPaint", - "LaunchParams", - "LaunchQueue", - "LaunchType", - "LayoutShift", - "LayoutShiftAttribution", - "LinearAccelerationSensor", - "LinkError", - "ListFormat", - "LocalMediaStream", - "Locale", - "Location", - "Lock", - "LockManager", - "MAP_READ", - "MAP_WRITE", - "MARGIN_RULE", - "MAX", - "MAX_3D_TEXTURE_SIZE", - "MAX_ARRAY_TEXTURE_LAYERS", - "MAX_CAPTURE_VISIBLE_TAB_CALLS_PER_SECOND", - "MAX_CLIENT_WAIT_TIMEOUT_WEBGL", - "MAX_COLOR_ATTACHMENTS", - "MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS", - "MAX_COMBINED_TEXTURE_IMAGE_UNITS", - "MAX_COMBINED_UNIFORM_BLOCKS", - "MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS", - "MAX_CUBE_MAP_TEXTURE_SIZE", - "MAX_DRAW_BUFFERS", - "MAX_ELEMENTS_INDICES", - "MAX_ELEMENTS_VERTICES", - "MAX_ELEMENT_INDEX", - "MAX_FRAGMENT_INPUT_COMPONENTS", - "MAX_FRAGMENT_UNIFORM_BLOCKS", - "MAX_FRAGMENT_UNIFORM_COMPONENTS", - "MAX_FRAGMENT_UNIFORM_VECTORS", - "MAX_PROGRAM_TEXEL_OFFSET", - "MAX_RENDERBUFFER_SIZE", - "MAX_SAFE_INTEGER", - "MAX_SAMPLES", - "MAX_SERVER_WAIT_TIMEOUT", - "MAX_TEXTURE_IMAGE_UNITS", - "MAX_TEXTURE_LOD_BIAS", - "MAX_TEXTURE_MAX_ANISOTROPY_EXT", - "MAX_TEXTURE_SIZE", - "MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS", - "MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS", - "MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS", - "MAX_UNIFORM_BLOCK_SIZE", - "MAX_UNIFORM_BUFFER_BINDINGS", - "MAX_VALUE", - "MAX_VARYING_COMPONENTS", - "MAX_VARYING_VECTORS", - "MAX_VERTEX_ATTRIBS", - "MAX_VERTEX_OUTPUT_COMPONENTS", - "MAX_VERTEX_TEXTURE_IMAGE_UNITS", - "MAX_VERTEX_UNIFORM_BLOCKS", - "MAX_VERTEX_UNIFORM_COMPONENTS", - "MAX_VERTEX_UNIFORM_VECTORS", - "MAX_VIEWPORT_DIMS", - "MEDIA_ERR_ABORTED", - "MEDIA_ERR_DECODE", - "MEDIA_ERR_ENCRYPTED", - "MEDIA_ERR_NETWORK", - "MEDIA_ERR_SRC_NOT_SUPPORTED", - "MEDIA_KEYERR_CLIENT", - "MEDIA_KEYERR_DOMAIN", - "MEDIA_KEYERR_HARDWARECHANGE", - "MEDIA_KEYERR_OUTPUT", - "MEDIA_KEYERR_SERVICE", - "MEDIA_KEYERR_UNKNOWN", - "MEDIA_RULE", - "MEDIUM_FLOAT", - "MEDIUM_INT", - "META_MASK", - "MIDIAccess", - "MIDIConnectionEvent", - "MIDIInput", - "MIDIInputMap", - "MIDIMessageEvent", - "MIDIOutput", - "MIDIOutputMap", - "MIDIPort", - "MIN", - "MIN_PROGRAM_TEXEL_OFFSET", - "MIN_SAFE_INTEGER", - "MIN_VALUE", - "MIRRORED_REPEAT", - "MODE_ASYNCHRONOUS", - "MODE_SYNCHRONOUS", - "MODIFICATION", - "MOUSEDOWN", - "MOUSEDRAG", - "MOUSEMOVE", - "MOUSEOUT", - "MOUSEOVER", - "MOUSEUP", - "MOZ_KEYFRAMES_RULE", - "MOZ_KEYFRAME_RULE", - "MOZ_SOURCE_CURSOR", - "MOZ_SOURCE_ERASER", - "MOZ_SOURCE_KEYBOARD", - "MOZ_SOURCE_MOUSE", - "MOZ_SOURCE_PEN", - "MOZ_SOURCE_TOUCH", - "MOZ_SOURCE_UNKNOWN", - "MSGESTURE_FLAG_BEGIN", - "MSGESTURE_FLAG_CANCEL", - "MSGESTURE_FLAG_END", - "MSGESTURE_FLAG_INERTIA", - "MSGESTURE_FLAG_NONE", - "MSPOINTER_TYPE_MOUSE", - "MSPOINTER_TYPE_PEN", - "MSPOINTER_TYPE_TOUCH", - "MS_ASYNC_CALLBACK_STATUS_ASSIGN_DELEGATE", - "MS_ASYNC_CALLBACK_STATUS_CANCEL", - "MS_ASYNC_CALLBACK_STATUS_CHOOSEANY", - "MS_ASYNC_CALLBACK_STATUS_ERROR", - "MS_ASYNC_CALLBACK_STATUS_JOIN", - "MS_ASYNC_OP_STATUS_CANCELED", - "MS_ASYNC_OP_STATUS_ERROR", - "MS_ASYNC_OP_STATUS_SUCCESS", - "MS_MANIPULATION_STATE_ACTIVE", - "MS_MANIPULATION_STATE_CANCELLED", - "MS_MANIPULATION_STATE_COMMITTED", - "MS_MANIPULATION_STATE_DRAGGING", - "MS_MANIPULATION_STATE_INERTIA", - "MS_MANIPULATION_STATE_PRESELECT", - "MS_MANIPULATION_STATE_SELECTING", - "MS_MANIPULATION_STATE_STOPPED", - "MS_MEDIA_ERR_ENCRYPTED", - "MS_MEDIA_KEYERR_CLIENT", - "MS_MEDIA_KEYERR_DOMAIN", - "MS_MEDIA_KEYERR_HARDWARECHANGE", - "MS_MEDIA_KEYERR_OUTPUT", - "MS_MEDIA_KEYERR_SERVICE", - "MS_MEDIA_KEYERR_UNKNOWN", - "Map", - "Math", - "MathMLElement", - "MediaCapabilities", - "MediaCapabilitiesInfo", - "MediaController", - "MediaDeviceInfo", - "MediaDevices", - "MediaElementAudioSourceNode", - "MediaEncryptedEvent", - "MediaError", - "MediaKeyError", - "MediaKeyEvent", - "MediaKeyMessageEvent", - "MediaKeyNeededEvent", - "MediaKeySession", - "MediaKeyStatusMap", - "MediaKeySystemAccess", - "MediaKeys", - "MediaList", - "MediaMetadata", - "MediaQueryList", - "MediaQueryListEvent", - "MediaRecorder", - "MediaRecorderErrorEvent", - "MediaSession", - "MediaSettingsRange", - "MediaSource", - "MediaSourceHandle", - "MediaStream", - "MediaStreamAudioDestinationNode", - "MediaStreamAudioSourceNode", - "MediaStreamEvent", - "MediaStreamTrack", - "MediaStreamTrackAudioSourceNode", - "MediaStreamTrackAudioStats", - "MediaStreamTrackEvent", - "MediaStreamTrackGenerator", - "MediaStreamTrackProcessor", - "MediaStreamTrackVideoStats", - "Memory", - "MessageChannel", - "MessageEvent", - "MessagePort", - "MessageSender", - "Methods", - "MimeType", - "MimeTypeArray", - "Module", - "MouseEvent", - "MouseScrollEvent", - "MozAnimation", - "MozAnimationDelay", - "MozAnimationDirection", - "MozAnimationDuration", - "MozAnimationFillMode", - "MozAnimationIterationCount", - "MozAnimationName", - "MozAnimationPlayState", - "MozAnimationTimingFunction", - "MozAppearance", - "MozBackfaceVisibility", - "MozBinding", - "MozBorderBottomColors", - "MozBorderEnd", - "MozBorderEndColor", - "MozBorderEndStyle", - "MozBorderEndWidth", - "MozBorderImage", - "MozBorderLeftColors", - "MozBorderRightColors", - "MozBorderStart", - "MozBorderStartColor", - "MozBorderStartStyle", - "MozBorderStartWidth", - "MozBorderTopColors", - "MozBoxAlign", - "MozBoxDirection", - "MozBoxFlex", - "MozBoxOrdinalGroup", - "MozBoxOrient", - "MozBoxPack", - "MozBoxSizing", - "MozCSSKeyframeRule", - "MozCSSKeyframesRule", - "MozColumnCount", - "MozColumnFill", - "MozColumnGap", - "MozColumnRule", - "MozColumnRuleColor", - "MozColumnRuleStyle", - "MozColumnRuleWidth", - "MozColumnWidth", - "MozColumns", - "MozContactChangeEvent", - "MozFloatEdge", - "MozFontFeatureSettings", - "MozFontLanguageOverride", - "MozForceBrokenImageIcon", - "MozHyphens", - "MozImageRegion", - "MozMarginEnd", - "MozMarginStart", - "MozMmsEvent", - "MozMmsMessage", - "MozMobileMessageThread", - "MozOSXFontSmoothing", - "MozOrient", - "MozOsxFontSmoothing", - "MozOutlineRadius", - "MozOutlineRadiusBottomleft", - "MozOutlineRadiusBottomright", - "MozOutlineRadiusTopleft", - "MozOutlineRadiusTopright", - "MozPaddingEnd", - "MozPaddingStart", - "MozPerspective", - "MozPerspectiveOrigin", - "MozPowerManager", - "MozSettingsEvent", - "MozSmsEvent", - "MozSmsMessage", - "MozStackSizing", - "MozTabSize", - "MozTextAlignLast", - "MozTextDecorationColor", - "MozTextDecorationLine", - "MozTextDecorationStyle", - "MozTextSizeAdjust", - "MozTransform", - "MozTransformOrigin", - "MozTransformStyle", - "MozTransition", - "MozTransitionDelay", - "MozTransitionDuration", - "MozTransitionProperty", - "MozTransitionTimingFunction", - "MozUserFocus", - "MozUserInput", - "MozUserModify", - "MozUserSelect", - "MozWindowDragging", - "MozWindowShadow", - "MutationEvent", - "MutationObserver", - "MutationRecord", - "MutedInfo", - "MutedInfoReason", - "NAMESPACE_ERR", - "NAMESPACE_RULE", - "NEAREST", - "NEAREST_MIPMAP_LINEAR", - "NEAREST_MIPMAP_NEAREST", - "NEGATIVE_INFINITY", - "NETWORK_EMPTY", - "NETWORK_ERR", - "NETWORK_IDLE", - "NETWORK_LOADED", - "NETWORK_LOADING", - "NETWORK_NO_SOURCE", - "NEVER", - "NEW", - "NEXT", - "NEXT_NO_DUPLICATE", - "NICEST", - "NODE_AFTER", - "NODE_BEFORE", - "NODE_BEFORE_AND_AFTER", - "NODE_INSIDE", - "NONE", - "NON_TRANSIENT_ERR", - "NOTATION_NODE", - "NOTCH", - "NOTEQUAL", - "NOT_ALLOWED_ERR", - "NOT_FOUND_ERR", - "NOT_READABLE_ERR", - "NOT_SUPPORTED_ERR", - "NO_DATA_ALLOWED_ERR", - "NO_ERR", - "NO_ERROR", - "NO_MODIFICATION_ALLOWED_ERR", - "NUMBER_TYPE", - "NUM_COMPRESSED_TEXTURE_FORMATS", - "NaN", - "NamedNodeMap", - "NavigateEvent", - "Navigation", - "NavigationActivation", - "NavigationCurrentEntryChangeEvent", - "NavigationDestination", - "NavigationHistoryEntry", - "NavigationPreloadManager", - "NavigationTransition", - "Navigator", - "NavigatorLogin", - "NavigatorManagedData", - "NavigatorUAData", - "NearbyLinks", - "NetworkInformation", - "Node", - "NodeFilter", - "NodeIterator", - "NodeList", - "NotRestoredReasonDetails", - "NotRestoredReasons", - "Notation", - "Notification", - "NotifyPaintEvent", - "Number", - "NumberFormat", - "OBJECT_TYPE", - "OBSOLETE", - "OK", - "ONE", - "ONE_MINUS_CONSTANT_ALPHA", - "ONE_MINUS_CONSTANT_COLOR", - "ONE_MINUS_DST_ALPHA", - "ONE_MINUS_DST_COLOR", - "ONE_MINUS_SRC_ALPHA", - "ONE_MINUS_SRC_COLOR", - "OPEN", - "OPENED", - "OPENING", - "ORDERED_NODE_ITERATOR_TYPE", - "ORDERED_NODE_SNAPSHOT_TYPE", - "OTHER_ERROR", - "OTPCredential", - "OUT_OF_MEMORY", - "Object", - "OfflineAudioCompletionEvent", - "OfflineAudioContext", - "OfflineResourceList", - "OffscreenCanvas", - "OffscreenCanvasRenderingContext2D", - "OnClickData", - "OnInstalledReason", - "OnPerformanceWarningCategory", - "OnPerformanceWarningSeverity", - "OnRestartRequiredReason", - "Option", - "OrientationSensor", - "OscillatorNode", - "OverconstrainedError", - "OverflowEvent", - "PACK_ALIGNMENT", - "PACK_ROW_LENGTH", - "PACK_SKIP_PIXELS", - "PACK_SKIP_ROWS", - "PAGE_RULE", - "PARSE_ERR", - "PATHSEG_ARC_ABS", - "PATHSEG_ARC_REL", - "PATHSEG_CLOSEPATH", - "PATHSEG_CURVETO_CUBIC_ABS", - "PATHSEG_CURVETO_CUBIC_REL", - "PATHSEG_CURVETO_CUBIC_SMOOTH_ABS", - "PATHSEG_CURVETO_CUBIC_SMOOTH_REL", - "PATHSEG_CURVETO_QUADRATIC_ABS", - "PATHSEG_CURVETO_QUADRATIC_REL", - "PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS", - "PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL", - "PATHSEG_LINETO_ABS", - "PATHSEG_LINETO_HORIZONTAL_ABS", - "PATHSEG_LINETO_HORIZONTAL_REL", - "PATHSEG_LINETO_REL", - "PATHSEG_LINETO_VERTICAL_ABS", - "PATHSEG_LINETO_VERTICAL_REL", - "PATHSEG_MOVETO_ABS", - "PATHSEG_MOVETO_REL", - "PATHSEG_UNKNOWN", - "PATH_EXISTS_ERR", - "PEAKING", - "PERMISSION_DENIED", - "PERSISTENT", - "PI", - "PIXEL_PACK_BUFFER", - "PIXEL_PACK_BUFFER_BINDING", - "PIXEL_UNPACK_BUFFER", - "PIXEL_UNPACK_BUFFER_BINDING", - "PLAYING_STATE", - "POINTS", - "POLYGON_OFFSET_FACTOR", - "POLYGON_OFFSET_FILL", - "POLYGON_OFFSET_UNITS", - "POSITION_UNAVAILABLE", - "POSITIVE_INFINITY", - "PREV", - "PREV_NO_DUPLICATE", - "PROCESSING_INSTRUCTION_NODE", - "PageChangeEvent", - "PageRevealEvent", - "PageSettings", - "PageSwapEvent", - "PageTransitionEvent", - "PaintRequest", - "PaintRequestList", - "PannerNode", - "PasswordCredential", - "Path2D", - "PaymentAddress", - "PaymentInstruments", - "PaymentManager", - "PaymentMethodChangeEvent", - "PaymentRequest", - "PaymentRequestUpdateEvent", - "PaymentResponse", - "Performance", - "PerformanceElementTiming", - "PerformanceEntry", - "PerformanceEventTiming", - "PerformanceLongAnimationFrameTiming", - "PerformanceLongTaskTiming", - "PerformanceMark", - "PerformanceMeasure", - "PerformanceNavigation", - "PerformanceNavigationTiming", - "PerformanceObserver", - "PerformanceObserverEntryList", - "PerformancePaintTiming", - "PerformanceResourceTiming", - "PerformanceScriptTiming", - "PerformanceServerTiming", - "PerformanceTiming", - "PeriodicSyncManager", - "PeriodicWave", - "PermissionStatus", - "Permissions", - "PhotoCapabilities", - "PictureInPictureEvent", - "PictureInPictureWindow", - "PlatformArch", - "PlatformInfo", - "PlatformNaclArch", - "PlatformOs", - "Plugin", - "PluginArray", - "PluralRules", - "PointerEvent", - "PopStateEvent", - "PopupBlockedEvent", - "Port", - "Presentation", - "PresentationAvailability", - "PresentationConnection", - "PresentationConnectionAvailableEvent", - "PresentationConnectionCloseEvent", - "PresentationConnectionList", - "PresentationReceiver", - "PresentationRequest", - "PressureObserver", - "PressureRecord", - "ProcessingInstruction", - "Profiler", - "ProgressEvent", - "Promise", - "PromiseRejectionEvent", - "PropertyNodeList", - "ProtectedAudience", - "Proxy", - "PublicKeyCredential", - "PushManager", - "PushSubscription", - "PushSubscriptionOptions", - "Q", - "QUERY_RESOLVE", - "QUERY_RESULT", - "QUERY_RESULT_AVAILABLE", - "QUOTA_ERR", - "QUOTA_EXCEEDED_ERR", - "QueryInterface", - "R11F_G11F_B10F", - "R16F", - "R16I", - "R16UI", - "R32F", - "R32I", - "R32UI", - "R8", - "R8I", - "R8UI", - "R8_SNORM", - "RASTERIZER_DISCARD", - "READ", - "READ_BUFFER", - "READ_FRAMEBUFFER", - "READ_FRAMEBUFFER_BINDING", - "READ_ONLY", - "READ_ONLY_ERR", - "READ_WRITE", - "RED", - "RED_BITS", - "RED_INTEGER", - "REMOVAL", - "RENDERBUFFER", - "RENDERBUFFER_ALPHA_SIZE", - "RENDERBUFFER_BINDING", - "RENDERBUFFER_BLUE_SIZE", - "RENDERBUFFER_DEPTH_SIZE", - "RENDERBUFFER_GREEN_SIZE", - "RENDERBUFFER_HEIGHT", - "RENDERBUFFER_INTERNAL_FORMAT", - "RENDERBUFFER_RED_SIZE", - "RENDERBUFFER_SAMPLES", - "RENDERBUFFER_STENCIL_SIZE", - "RENDERBUFFER_WIDTH", - "RENDERER", - "RENDERING_INTENT_ABSOLUTE_COLORIMETRIC", - "RENDERING_INTENT_AUTO", - "RENDERING_INTENT_PERCEPTUAL", - "RENDERING_INTENT_RELATIVE_COLORIMETRIC", - "RENDERING_INTENT_SATURATION", - "RENDERING_INTENT_UNKNOWN", - "RENDER_ATTACHMENT", - "REPEAT", - "REPLACE", - "RG", - "RG16F", - "RG16I", - "RG16UI", - "RG32F", - "RG32I", - "RG32UI", - "RG8", - "RG8I", - "RG8UI", - "RG8_SNORM", - "RGB", - "RGB10_A2", - "RGB10_A2UI", - "RGB16F", - "RGB16I", - "RGB16UI", - "RGB32F", - "RGB32I", - "RGB32UI", - "RGB565", - "RGB5_A1", - "RGB8", - "RGB8I", - "RGB8UI", - "RGB8_SNORM", - "RGB9_E5", - "RGBA", - "RGBA16F", - "RGBA16I", - "RGBA16UI", - "RGBA32F", - "RGBA32I", - "RGBA32UI", - "RGBA4", - "RGBA8", - "RGBA8I", - "RGBA8UI", - "RGBA8_SNORM", - "RGBA_INTEGER", - "RGBColor", - "RGB_INTEGER", - "RG_INTEGER", - "ROTATION_CLOCKWISE", - "ROTATION_COUNTERCLOCKWISE", - "RTCCertificate", - "RTCDTMFSender", - "RTCDTMFToneChangeEvent", - "RTCDataChannel", - "RTCDataChannelEvent", - "RTCDtlsTransport", - "RTCEncodedAudioFrame", - "RTCEncodedVideoFrame", - "RTCError", - "RTCErrorEvent", - "RTCIceCandidate", - "RTCIceTransport", - "RTCPeerConnection", - "RTCPeerConnectionIceErrorEvent", - "RTCPeerConnectionIceEvent", - "RTCRtpReceiver", - "RTCRtpScriptTransform", - "RTCRtpSender", - "RTCRtpTransceiver", - "RTCSctpTransport", - "RTCSessionDescription", - "RTCStatsReport", - "RTCTrackEvent", - "RadioNodeList", - "Range", - "RangeError", - "RangeException", - "ReadableByteStreamController", - "ReadableStream", - "ReadableStreamBYOBReader", - "ReadableStreamBYOBRequest", - "ReadableStreamDefaultController", - "ReadableStreamDefaultReader", - "RecordErrorEvent", - "Rect", - "ReferenceError", - "Reflect", - "RegExp", - "RelativeOrientationSensor", - "RelativeTimeFormat", - "RemotePlayback", - "Report", - "ReportBody", - "ReportingObserver", - "Request", - "RequestUpdateCheckStatus", - "ResizeObserver", - "ResizeObserverEntry", - "ResizeObserverSize", - "Response", - "RuntimeError", - "SAMPLER_2D", - "SAMPLER_2D_ARRAY", - "SAMPLER_2D_ARRAY_SHADOW", - "SAMPLER_2D_SHADOW", - "SAMPLER_3D", - "SAMPLER_BINDING", - "SAMPLER_CUBE", - "SAMPLER_CUBE_SHADOW", - "SAMPLES", - "SAMPLE_ALPHA_TO_COVERAGE", - "SAMPLE_BUFFERS", - "SAMPLE_COVERAGE", - "SAMPLE_COVERAGE_INVERT", - "SAMPLE_COVERAGE_VALUE", - "SAWTOOTH", - "SCHEDULED_STATE", - "SCISSOR_BOX", - "SCISSOR_TEST", - "SCROLL_PAGE_DOWN", - "SCROLL_PAGE_UP", - "SDP_ANSWER", - "SDP_OFFER", - "SDP_PRANSWER", - "SECURITY_ERR", - "SELECT", - "SEPARATE_ATTRIBS", - "SERIALIZE_ERR", - "SEVERITY_ERROR", - "SEVERITY_FATAL_ERROR", - "SEVERITY_WARNING", - "SHADER_COMPILER", - "SHADER_TYPE", - "SHADING_LANGUAGE_VERSION", - "SHIFT_MASK", - "SHORT", - "SHOWING", - "SHOW_ALL", - "SHOW_ATTRIBUTE", - "SHOW_CDATA_SECTION", - "SHOW_COMMENT", - "SHOW_DOCUMENT", - "SHOW_DOCUMENT_FRAGMENT", - "SHOW_DOCUMENT_TYPE", - "SHOW_ELEMENT", - "SHOW_ENTITY", - "SHOW_ENTITY_REFERENCE", - "SHOW_NOTATION", - "SHOW_PROCESSING_INSTRUCTION", - "SHOW_TEXT", - "SIGNALED", - "SIGNED_NORMALIZED", - "SINE", - "SOUNDFIELD", - "SQLException", - "SQRT1_2", - "SQRT2", - "SQUARE", - "SRC_ALPHA", - "SRC_ALPHA_SATURATE", - "SRC_COLOR", - "SRGB", - "SRGB8", - "SRGB8_ALPHA8", - "START_TO_END", - "START_TO_START", - "STATIC_COPY", - "STATIC_DRAW", - "STATIC_READ", - "STENCIL", - "STENCIL_ATTACHMENT", - "STENCIL_BACK_FAIL", - "STENCIL_BACK_FUNC", - "STENCIL_BACK_PASS_DEPTH_FAIL", - "STENCIL_BACK_PASS_DEPTH_PASS", - "STENCIL_BACK_REF", - "STENCIL_BACK_VALUE_MASK", - "STENCIL_BACK_WRITEMASK", - "STENCIL_BITS", - "STENCIL_BUFFER_BIT", - "STENCIL_CLEAR_VALUE", - "STENCIL_FAIL", - "STENCIL_FUNC", - "STENCIL_INDEX", - "STENCIL_INDEX8", - "STENCIL_PASS_DEPTH_FAIL", - "STENCIL_PASS_DEPTH_PASS", - "STENCIL_REF", - "STENCIL_TEST", - "STENCIL_VALUE_MASK", - "STENCIL_WRITEMASK", - "STORAGE", - "STORAGE_BINDING", - "STREAM_COPY", - "STREAM_DRAW", - "STREAM_READ", - "STRING_TYPE", - "STYLE_RULE", - "SUBPIXEL_BITS", - "SUPPORTS_RULE", - "SVGAElement", - "SVGAltGlyphDefElement", - "SVGAltGlyphElement", - "SVGAltGlyphItemElement", - "SVGAngle", - "SVGAnimateColorElement", - "SVGAnimateElement", - "SVGAnimateMotionElement", - "SVGAnimateTransformElement", - "SVGAnimatedAngle", - "SVGAnimatedBoolean", - "SVGAnimatedEnumeration", - "SVGAnimatedInteger", - "SVGAnimatedLength", - "SVGAnimatedLengthList", - "SVGAnimatedNumber", - "SVGAnimatedNumberList", - "SVGAnimatedPreserveAspectRatio", - "SVGAnimatedRect", - "SVGAnimatedString", - "SVGAnimatedTransformList", - "SVGAnimationElement", - "SVGCircleElement", - "SVGClipPathElement", - "SVGColor", - "SVGComponentTransferFunctionElement", - "SVGCursorElement", - "SVGDefsElement", - "SVGDescElement", - "SVGDiscardElement", - "SVGDocument", - "SVGElement", - "SVGElementInstance", - "SVGElementInstanceList", - "SVGEllipseElement", - "SVGException", - "SVGFEBlendElement", - "SVGFEColorMatrixElement", - "SVGFEComponentTransferElement", - "SVGFECompositeElement", - "SVGFEConvolveMatrixElement", - "SVGFEDiffuseLightingElement", - "SVGFEDisplacementMapElement", - "SVGFEDistantLightElement", - "SVGFEDropShadowElement", - "SVGFEFloodElement", - "SVGFEFuncAElement", - "SVGFEFuncBElement", - "SVGFEFuncGElement", - "SVGFEFuncRElement", - "SVGFEGaussianBlurElement", - "SVGFEImageElement", - "SVGFEMergeElement", - "SVGFEMergeNodeElement", - "SVGFEMorphologyElement", - "SVGFEOffsetElement", - "SVGFEPointLightElement", - "SVGFESpecularLightingElement", - "SVGFESpotLightElement", - "SVGFETileElement", - "SVGFETurbulenceElement", - "SVGFilterElement", - "SVGFontElement", - "SVGFontFaceElement", - "SVGFontFaceFormatElement", - "SVGFontFaceNameElement", - "SVGFontFaceSrcElement", - "SVGFontFaceUriElement", - "SVGForeignObjectElement", - "SVGGElement", - "SVGGeometryElement", - "SVGGlyphElement", - "SVGGlyphRefElement", - "SVGGradientElement", - "SVGGraphicsElement", - "SVGHKernElement", - "SVGImageElement", - "SVGLength", - "SVGLengthList", - "SVGLineElement", - "SVGLinearGradientElement", - "SVGMPathElement", - "SVGMarkerElement", - "SVGMaskElement", - "SVGMatrix", - "SVGMetadataElement", - "SVGMissingGlyphElement", - "SVGNumber", - "SVGNumberList", - "SVGPaint", - "SVGPathElement", - "SVGPathSeg", - "SVGPathSegArcAbs", - "SVGPathSegArcRel", - "SVGPathSegClosePath", - "SVGPathSegCurvetoCubicAbs", - "SVGPathSegCurvetoCubicRel", - "SVGPathSegCurvetoCubicSmoothAbs", - "SVGPathSegCurvetoCubicSmoothRel", - "SVGPathSegCurvetoQuadraticAbs", - "SVGPathSegCurvetoQuadraticRel", - "SVGPathSegCurvetoQuadraticSmoothAbs", - "SVGPathSegCurvetoQuadraticSmoothRel", - "SVGPathSegLinetoAbs", - "SVGPathSegLinetoHorizontalAbs", - "SVGPathSegLinetoHorizontalRel", - "SVGPathSegLinetoRel", - "SVGPathSegLinetoVerticalAbs", - "SVGPathSegLinetoVerticalRel", - "SVGPathSegList", - "SVGPathSegMovetoAbs", - "SVGPathSegMovetoRel", - "SVGPatternElement", - "SVGPoint", - "SVGPointList", - "SVGPolygonElement", - "SVGPolylineElement", - "SVGPreserveAspectRatio", - "SVGRadialGradientElement", - "SVGRect", - "SVGRectElement", - "SVGRenderingIntent", - "SVGSVGElement", - "SVGScriptElement", - "SVGSetElement", - "SVGStopElement", - "SVGStringList", - "SVGStyleElement", - "SVGSwitchElement", - "SVGSymbolElement", - "SVGTRefElement", - "SVGTSpanElement", - "SVGTextContentElement", - "SVGTextElement", - "SVGTextPathElement", - "SVGTextPositioningElement", - "SVGTitleElement", - "SVGTransform", - "SVGTransformList", - "SVGUnitTypes", - "SVGUseElement", - "SVGVKernElement", - "SVGViewElement", - "SVGViewSpec", - "SVGZoomAndPan", - "SVGZoomEvent", - "SVG_ANGLETYPE_DEG", - "SVG_ANGLETYPE_GRAD", - "SVG_ANGLETYPE_RAD", - "SVG_ANGLETYPE_UNKNOWN", - "SVG_ANGLETYPE_UNSPECIFIED", - "SVG_CHANNEL_A", - "SVG_CHANNEL_B", - "SVG_CHANNEL_G", - "SVG_CHANNEL_R", - "SVG_CHANNEL_UNKNOWN", - "SVG_COLORTYPE_CURRENTCOLOR", - "SVG_COLORTYPE_RGBCOLOR", - "SVG_COLORTYPE_RGBCOLOR_ICCCOLOR", - "SVG_COLORTYPE_UNKNOWN", - "SVG_EDGEMODE_DUPLICATE", - "SVG_EDGEMODE_NONE", - "SVG_EDGEMODE_UNKNOWN", - "SVG_EDGEMODE_WRAP", - "SVG_FEBLEND_MODE_COLOR", - "SVG_FEBLEND_MODE_COLOR_BURN", - "SVG_FEBLEND_MODE_COLOR_DODGE", - "SVG_FEBLEND_MODE_DARKEN", - "SVG_FEBLEND_MODE_DIFFERENCE", - "SVG_FEBLEND_MODE_EXCLUSION", - "SVG_FEBLEND_MODE_HARD_LIGHT", - "SVG_FEBLEND_MODE_HUE", - "SVG_FEBLEND_MODE_LIGHTEN", - "SVG_FEBLEND_MODE_LUMINOSITY", - "SVG_FEBLEND_MODE_MULTIPLY", - "SVG_FEBLEND_MODE_NORMAL", - "SVG_FEBLEND_MODE_OVERLAY", - "SVG_FEBLEND_MODE_SATURATION", - "SVG_FEBLEND_MODE_SCREEN", - "SVG_FEBLEND_MODE_SOFT_LIGHT", - "SVG_FEBLEND_MODE_UNKNOWN", - "SVG_FECOLORMATRIX_TYPE_HUEROTATE", - "SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA", - "SVG_FECOLORMATRIX_TYPE_MATRIX", - "SVG_FECOLORMATRIX_TYPE_SATURATE", - "SVG_FECOLORMATRIX_TYPE_UNKNOWN", - "SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE", - "SVG_FECOMPONENTTRANSFER_TYPE_GAMMA", - "SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY", - "SVG_FECOMPONENTTRANSFER_TYPE_LINEAR", - "SVG_FECOMPONENTTRANSFER_TYPE_TABLE", - "SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN", - "SVG_FECOMPOSITE_OPERATOR_ARITHMETIC", - "SVG_FECOMPOSITE_OPERATOR_ATOP", - "SVG_FECOMPOSITE_OPERATOR_IN", - "SVG_FECOMPOSITE_OPERATOR_LIGHTER", - "SVG_FECOMPOSITE_OPERATOR_OUT", - "SVG_FECOMPOSITE_OPERATOR_OVER", - "SVG_FECOMPOSITE_OPERATOR_UNKNOWN", - "SVG_FECOMPOSITE_OPERATOR_XOR", - "SVG_INVALID_VALUE_ERR", - "SVG_LENGTHTYPE_CM", - "SVG_LENGTHTYPE_EMS", - "SVG_LENGTHTYPE_EXS", - "SVG_LENGTHTYPE_IN", - "SVG_LENGTHTYPE_MM", - "SVG_LENGTHTYPE_NUMBER", - "SVG_LENGTHTYPE_PC", - "SVG_LENGTHTYPE_PERCENTAGE", - "SVG_LENGTHTYPE_PT", - "SVG_LENGTHTYPE_PX", - "SVG_LENGTHTYPE_UNKNOWN", - "SVG_MARKERUNITS_STROKEWIDTH", - "SVG_MARKERUNITS_UNKNOWN", - "SVG_MARKERUNITS_USERSPACEONUSE", - "SVG_MARKER_ORIENT_ANGLE", - "SVG_MARKER_ORIENT_AUTO", - "SVG_MARKER_ORIENT_AUTO_START_REVERSE", - "SVG_MARKER_ORIENT_UNKNOWN", - "SVG_MASKTYPE_ALPHA", - "SVG_MASKTYPE_LUMINANCE", - "SVG_MATRIX_NOT_INVERTABLE", - "SVG_MEETORSLICE_MEET", - "SVG_MEETORSLICE_SLICE", - "SVG_MEETORSLICE_UNKNOWN", - "SVG_MORPHOLOGY_OPERATOR_DILATE", - "SVG_MORPHOLOGY_OPERATOR_ERODE", - "SVG_MORPHOLOGY_OPERATOR_UNKNOWN", - "SVG_PAINTTYPE_CURRENTCOLOR", - "SVG_PAINTTYPE_NONE", - "SVG_PAINTTYPE_RGBCOLOR", - "SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR", - "SVG_PAINTTYPE_UNKNOWN", - "SVG_PAINTTYPE_URI", - "SVG_PAINTTYPE_URI_CURRENTCOLOR", - "SVG_PAINTTYPE_URI_NONE", - "SVG_PAINTTYPE_URI_RGBCOLOR", - "SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR", - "SVG_PRESERVEASPECTRATIO_NONE", - "SVG_PRESERVEASPECTRATIO_UNKNOWN", - "SVG_PRESERVEASPECTRATIO_XMAXYMAX", - "SVG_PRESERVEASPECTRATIO_XMAXYMID", - "SVG_PRESERVEASPECTRATIO_XMAXYMIN", - "SVG_PRESERVEASPECTRATIO_XMIDYMAX", - "SVG_PRESERVEASPECTRATIO_XMIDYMID", - "SVG_PRESERVEASPECTRATIO_XMIDYMIN", - "SVG_PRESERVEASPECTRATIO_XMINYMAX", - "SVG_PRESERVEASPECTRATIO_XMINYMID", - "SVG_PRESERVEASPECTRATIO_XMINYMIN", - "SVG_SPREADMETHOD_PAD", - "SVG_SPREADMETHOD_REFLECT", - "SVG_SPREADMETHOD_REPEAT", - "SVG_SPREADMETHOD_UNKNOWN", - "SVG_STITCHTYPE_NOSTITCH", - "SVG_STITCHTYPE_STITCH", - "SVG_STITCHTYPE_UNKNOWN", - "SVG_TRANSFORM_MATRIX", - "SVG_TRANSFORM_ROTATE", - "SVG_TRANSFORM_SCALE", - "SVG_TRANSFORM_SKEWX", - "SVG_TRANSFORM_SKEWY", - "SVG_TRANSFORM_TRANSLATE", - "SVG_TRANSFORM_UNKNOWN", - "SVG_TURBULENCE_TYPE_FRACTALNOISE", - "SVG_TURBULENCE_TYPE_TURBULENCE", - "SVG_TURBULENCE_TYPE_UNKNOWN", - "SVG_UNIT_TYPE_OBJECTBOUNDINGBOX", - "SVG_UNIT_TYPE_UNKNOWN", - "SVG_UNIT_TYPE_USERSPACEONUSE", - "SVG_WRONG_TYPE_ERR", - "SVG_ZOOMANDPAN_DISABLE", - "SVG_ZOOMANDPAN_MAGNIFY", - "SVG_ZOOMANDPAN_UNKNOWN", - "SYNC_CONDITION", - "SYNC_FENCE", - "SYNC_FLAGS", - "SYNC_FLUSH_COMMANDS_BIT", - "SYNC_GPU_COMMANDS_COMPLETE", - "SYNC_STATUS", - "SYNTAX_ERR", - "SavedPages", - "Scheduler", - "Scheduling", - "Screen", - "ScreenDetailed", - "ScreenDetails", - "ScreenOrientation", - "Script", - "ScriptProcessorNode", - "ScrollAreaEvent", - "ScrollTimeline", - "SecurityPolicyViolationEvent", - "Segmenter", - "Selection", - "Sensor", - "SensorErrorEvent", - "Serial", - "SerialPort", - "ServiceWorker", - "ServiceWorkerContainer", - "ServiceWorkerRegistration", - "SessionDescription", - "Set", - "ShadowRoot", - "SharedArrayBuffer", - "SharedStorage", - "SharedStorageWorklet", - "SharedWorker", - "SharingState", - "SimpleGestureEvent", - "SnapEvent", - "SourceBuffer", - "SourceBufferList", - "SpeechSynthesis", - "SpeechSynthesisErrorEvent", - "SpeechSynthesisEvent", - "SpeechSynthesisUtterance", - "SpeechSynthesisVoice", - "StaticRange", - "StereoPannerNode", - "StopIteration", - "Storage", - "StorageBucket", - "StorageBucketManager", - "StorageEvent", - "StorageManager", - "String", - "StructType", - "StylePropertyMap", - "StylePropertyMapReadOnly", - "StyleSheet", - "StyleSheetList", - "SubmitEvent", - "SubtleCrypto", - "Symbol", - "SyncManager", - "SyntaxError", - "TAB_ID_NONE", - "TAB_INDEX_NONE", - "TEMPORARY", - "TEXTPATH_METHODTYPE_ALIGN", - "TEXTPATH_METHODTYPE_STRETCH", - "TEXTPATH_METHODTYPE_UNKNOWN", - "TEXTPATH_SPACINGTYPE_AUTO", - "TEXTPATH_SPACINGTYPE_EXACT", - "TEXTPATH_SPACINGTYPE_UNKNOWN", - "TEXTURE", - "TEXTURE0", - "TEXTURE1", - "TEXTURE10", - "TEXTURE11", - "TEXTURE12", - "TEXTURE13", - "TEXTURE14", - "TEXTURE15", - "TEXTURE16", - "TEXTURE17", - "TEXTURE18", - "TEXTURE19", - "TEXTURE2", - "TEXTURE20", - "TEXTURE21", - "TEXTURE22", - "TEXTURE23", - "TEXTURE24", - "TEXTURE25", - "TEXTURE26", - "TEXTURE27", - "TEXTURE28", - "TEXTURE29", - "TEXTURE3", - "TEXTURE30", - "TEXTURE31", - "TEXTURE4", - "TEXTURE5", - "TEXTURE6", - "TEXTURE7", - "TEXTURE8", - "TEXTURE9", - "TEXTURE_2D", - "TEXTURE_2D_ARRAY", - "TEXTURE_3D", - "TEXTURE_BASE_LEVEL", - "TEXTURE_BINDING", - "TEXTURE_BINDING_2D", - "TEXTURE_BINDING_2D_ARRAY", - "TEXTURE_BINDING_3D", - "TEXTURE_BINDING_CUBE_MAP", - "TEXTURE_COMPARE_FUNC", - "TEXTURE_COMPARE_MODE", - "TEXTURE_CUBE_MAP", - "TEXTURE_CUBE_MAP_NEGATIVE_X", - "TEXTURE_CUBE_MAP_NEGATIVE_Y", - "TEXTURE_CUBE_MAP_NEGATIVE_Z", - "TEXTURE_CUBE_MAP_POSITIVE_X", - "TEXTURE_CUBE_MAP_POSITIVE_Y", - "TEXTURE_CUBE_MAP_POSITIVE_Z", - "TEXTURE_IMMUTABLE_FORMAT", - "TEXTURE_IMMUTABLE_LEVELS", - "TEXTURE_MAG_FILTER", - "TEXTURE_MAX_ANISOTROPY_EXT", - "TEXTURE_MAX_LEVEL", - "TEXTURE_MAX_LOD", - "TEXTURE_MIN_FILTER", - "TEXTURE_MIN_LOD", - "TEXTURE_WRAP_R", - "TEXTURE_WRAP_S", - "TEXTURE_WRAP_T", - "TEXT_NODE", - "TIMEOUT", - "TIMEOUT_ERR", - "TIMEOUT_EXPIRED", - "TIMEOUT_IGNORED", - "TOO_LARGE_ERR", - "TRANSACTION_INACTIVE_ERR", - "TRANSFORM_FEEDBACK", - "TRANSFORM_FEEDBACK_ACTIVE", - "TRANSFORM_FEEDBACK_BINDING", - "TRANSFORM_FEEDBACK_BUFFER", - "TRANSFORM_FEEDBACK_BUFFER_BINDING", - "TRANSFORM_FEEDBACK_BUFFER_MODE", - "TRANSFORM_FEEDBACK_BUFFER_SIZE", - "TRANSFORM_FEEDBACK_BUFFER_START", - "TRANSFORM_FEEDBACK_PAUSED", - "TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN", - "TRANSFORM_FEEDBACK_VARYINGS", - "TRIANGLE", - "TRIANGLES", - "TRIANGLE_FAN", - "TRIANGLE_STRIP", - "TYPE_BACK_FORWARD", - "TYPE_ERR", - "TYPE_MISMATCH_ERR", - "TYPE_NAVIGATE", - "TYPE_RELOAD", - "TYPE_RESERVED", - "Tab", - "TabStatus", - "Table", - "Tag", - "TaskAttributionTiming", - "TaskController", - "TaskPriorityChangeEvent", - "TaskSignal", - "Text", - "TextDecoder", - "TextDecoderStream", - "TextEncoder", - "TextEncoderStream", - "TextEvent", - "TextFormat", - "TextFormatUpdateEvent", - "TextMetrics", - "TextTrack", - "TextTrackCue", - "TextTrackCueList", - "TextTrackList", - "TextUpdateEvent", - "TimeEvent", - "TimeRanges", - "ToggleEvent", - "Touch", - "TouchEvent", - "TouchList", - "TrackEvent", - "TransformStream", - "TransformStreamDefaultController", - "TransitionEvent", - "TreeWalker", - "TrustedHTML", - "TrustedScript", - "TrustedScriptURL", - "TrustedTypePolicy", - "TrustedTypePolicyFactory", - "TypeError", - "TypedObject", - "U2F", - "UIEvent", - "UNCACHED", - "UNIFORM", - "UNIFORM_ARRAY_STRIDE", - "UNIFORM_BLOCK_ACTIVE_UNIFORMS", - "UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES", - "UNIFORM_BLOCK_BINDING", - "UNIFORM_BLOCK_DATA_SIZE", - "UNIFORM_BLOCK_INDEX", - "UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER", - "UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER", - "UNIFORM_BUFFER", - "UNIFORM_BUFFER_BINDING", - "UNIFORM_BUFFER_OFFSET_ALIGNMENT", - "UNIFORM_BUFFER_SIZE", - "UNIFORM_BUFFER_START", - "UNIFORM_IS_ROW_MAJOR", - "UNIFORM_MATRIX_STRIDE", - "UNIFORM_OFFSET", - "UNIFORM_SIZE", - "UNIFORM_TYPE", - "UNKNOWN_ERR", - "UNKNOWN_RULE", - "UNMASKED_RENDERER_WEBGL", - "UNMASKED_VENDOR_WEBGL", - "UNORDERED_NODE_ITERATOR_TYPE", - "UNORDERED_NODE_SNAPSHOT_TYPE", - "UNPACK_ALIGNMENT", - "UNPACK_COLORSPACE_CONVERSION_WEBGL", - "UNPACK_FLIP_Y_WEBGL", - "UNPACK_IMAGE_HEIGHT", - "UNPACK_PREMULTIPLY_ALPHA_WEBGL", - "UNPACK_ROW_LENGTH", - "UNPACK_SKIP_IMAGES", - "UNPACK_SKIP_PIXELS", - "UNPACK_SKIP_ROWS", - "UNSCHEDULED_STATE", - "UNSENT", - "UNSIGNALED", - "UNSIGNED_BYTE", - "UNSIGNED_INT", - "UNSIGNED_INT_10F_11F_11F_REV", - "UNSIGNED_INT_24_8", - "UNSIGNED_INT_2_10_10_10_REV", - "UNSIGNED_INT_5_9_9_9_REV", - "UNSIGNED_INT_SAMPLER_2D", - "UNSIGNED_INT_SAMPLER_2D_ARRAY", - "UNSIGNED_INT_SAMPLER_3D", - "UNSIGNED_INT_SAMPLER_CUBE", - "UNSIGNED_INT_VEC2", - "UNSIGNED_INT_VEC3", - "UNSIGNED_INT_VEC4", - "UNSIGNED_NORMALIZED", - "UNSIGNED_SHORT", - "UNSIGNED_SHORT_4_4_4_4", - "UNSIGNED_SHORT_5_5_5_1", - "UNSIGNED_SHORT_5_6_5", - "UNSPECIFIED_EVENT_TYPE_ERR", - "UPDATEREADY", - "URIError", - "URL", - "URLPattern", - "URLSearchParams", - "URLUnencoded", - "URL_MISMATCH_ERR", - "USB", - "USBAlternateInterface", - "USBConfiguration", - "USBConnectionEvent", - "USBDevice", - "USBEndpoint", - "USBInTransferResult", - "USBInterface", - "USBIsochronousInTransferPacket", - "USBIsochronousInTransferResult", - "USBIsochronousOutTransferPacket", - "USBIsochronousOutTransferResult", - "USBOutTransferResult", - "UTC", - "Uint16Array", - "Uint32Array", - "Uint8Array", - "Uint8ClampedArray", - "UpdateFilter", - "UpdatePropertyName", - "UserActivation", - "UserMessageHandler", - "UserMessageHandlersNamespace", - "UserProximityEvent", - "VALIDATE_STATUS", - "VALIDATION_ERR", - "VARIABLES_RULE", - "VENDOR", - "VERSION", - "VERSION_CHANGE", - "VERSION_ERR", - "VERTEX", - "VERTEX_ARRAY_BINDING", - "VERTEX_ATTRIB_ARRAY_BUFFER_BINDING", - "VERTEX_ATTRIB_ARRAY_DIVISOR", - "VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE", - "VERTEX_ATTRIB_ARRAY_ENABLED", - "VERTEX_ATTRIB_ARRAY_INTEGER", - "VERTEX_ATTRIB_ARRAY_NORMALIZED", - "VERTEX_ATTRIB_ARRAY_POINTER", - "VERTEX_ATTRIB_ARRAY_SIZE", - "VERTEX_ATTRIB_ARRAY_STRIDE", - "VERTEX_ATTRIB_ARRAY_TYPE", - "VERTEX_SHADER", - "VERTICAL", - "VERTICAL_AXIS", - "VER_ERR", - "VIEWPORT", - "VIEWPORT_RULE", - "VRDisplay", - "VRDisplayCapabilities", - "VRDisplayEvent", - "VREyeParameters", - "VRFieldOfView", - "VRFrameData", - "VRPose", - "VRStageParameters", - "VTTCue", - "VTTRegion", - "ValidityState", - "VideoColorSpace", - "VideoDecoder", - "VideoEncoder", - "VideoFrame", - "VideoPlaybackQuality", - "VideoStreamTrack", - "ViewTimeline", - "ViewTransition", - "ViewTransitionTypeSet", - "ViewType", - "VirtualKeyboard", - "VirtualKeyboardGeometryChangeEvent", - "VisibilityStateEntry", - "VisualViewport", - "WAIT_FAILED", - "WEBKIT_FILTER_RULE", - "WEBKIT_KEYFRAMES_RULE", - "WEBKIT_KEYFRAME_RULE", - "WEBKIT_REGION_RULE", - "WGSLLanguageFeatures", - "WINDOW_ID_CURRENT", - "WINDOW_ID_NONE", - "WRITE", - "WRONG_DOCUMENT_ERR", - "WakeLock", - "WakeLockSentinel", - "WasmAnyRef", - "WaveShaperNode", - "WeakMap", - "WeakRef", - "WeakSet", - "WebAssembly", - "WebGL2RenderingContext", - "WebGLActiveInfo", - "WebGLBuffer", - "WebGLContextEvent", - "WebGLFramebuffer", - "WebGLObject", - "WebGLProgram", - "WebGLQuery", - "WebGLRenderbuffer", - "WebGLRenderingContext", - "WebGLSampler", - "WebGLShader", - "WebGLShaderPrecisionFormat", - "WebGLSync", - "WebGLTexture", - "WebGLTransformFeedback", - "WebGLUniformLocation", - "WebGLVertexArray", - "WebGLVertexArrayObject", - "WebKitAnimationEvent", - "WebKitBlobBuilder", - "WebKitCSSFilterRule", - "WebKitCSSFilterValue", - "WebKitCSSKeyframeRule", - "WebKitCSSKeyframesRule", - "WebKitCSSMatrix", - "WebKitCSSRegionRule", - "WebKitCSSTransformValue", - "WebKitDataCue", - "WebKitGamepad", - "WebKitMediaKeyError", - "WebKitMediaKeyMessageEvent", - "WebKitMediaKeySession", - "WebKitMediaKeys", - "WebKitMediaSource", - "WebKitMutationObserver", - "WebKitNamespace", - "WebKitPlaybackTargetAvailabilityEvent", - "WebKitPoint", - "WebKitShadowRoot", - "WebKitSourceBuffer", - "WebKitSourceBufferList", - "WebKitTransitionEvent", - "WebSocket", - "WebSocketError", - "WebSocketStream", - "WebTransport", - "WebTransportBidirectionalStream", - "WebTransportDatagramDuplexStream", - "WebTransportError", - "WebTransportReceiveStream", - "WebTransportSendStream", - "WebkitAlignContent", - "WebkitAlignItems", - "WebkitAlignSelf", - "WebkitAnimation", - "WebkitAnimationDelay", - "WebkitAnimationDirection", - "WebkitAnimationDuration", - "WebkitAnimationFillMode", - "WebkitAnimationIterationCount", - "WebkitAnimationName", - "WebkitAnimationPlayState", - "WebkitAnimationTimingFunction", - "WebkitAppearance", - "WebkitBackfaceVisibility", - "WebkitBackgroundClip", - "WebkitBackgroundOrigin", - "WebkitBackgroundSize", - "WebkitBorderBottomLeftRadius", - "WebkitBorderBottomRightRadius", - "WebkitBorderImage", - "WebkitBorderRadius", - "WebkitBorderTopLeftRadius", - "WebkitBorderTopRightRadius", - "WebkitBoxAlign", - "WebkitBoxDirection", - "WebkitBoxFlex", - "WebkitBoxOrdinalGroup", - "WebkitBoxOrient", - "WebkitBoxPack", - "WebkitBoxShadow", - "WebkitBoxSizing", - "WebkitClipPath", - "WebkitFilter", - "WebkitFlex", - "WebkitFlexBasis", - "WebkitFlexDirection", - "WebkitFlexFlow", - "WebkitFlexGrow", - "WebkitFlexShrink", - "WebkitFlexWrap", - "WebkitFontFeatureSettings", - "WebkitJustifyContent", - "WebkitLineClamp", - "WebkitMask", - "WebkitMaskClip", - "WebkitMaskComposite", - "WebkitMaskImage", - "WebkitMaskOrigin", - "WebkitMaskPosition", - "WebkitMaskPositionX", - "WebkitMaskPositionY", - "WebkitMaskRepeat", - "WebkitMaskSize", - "WebkitOrder", - "WebkitPerspective", - "WebkitPerspectiveOrigin", - "WebkitTextFillColor", - "WebkitTextSecurity", - "WebkitTextSizeAdjust", - "WebkitTextStroke", - "WebkitTextStrokeColor", - "WebkitTextStrokeWidth", - "WebkitTransform", - "WebkitTransformOrigin", - "WebkitTransformStyle", - "WebkitTransition", - "WebkitTransitionDelay", - "WebkitTransitionDuration", - "WebkitTransitionProperty", - "WebkitTransitionTimingFunction", - "WebkitUserSelect", - "WheelEvent", - "Window", - "WindowControlsOverlay", - "WindowControlsOverlayGeometryChangeEvent", - "WindowState", - "WindowType", - "Worker", - "Worklet", - "WritableStream", - "WritableStreamDefaultController", - "WritableStreamDefaultWriter", - "XMLDocument", - "XMLHttpRequest", - "XMLHttpRequestEventTarget", - "XMLHttpRequestException", - "XMLHttpRequestProgressEvent", - "XMLHttpRequestUpload", - "XMLSerializer", - "XMLStylesheetProcessingInstruction", - "XPathEvaluator", - "XPathException", - "XPathExpression", - "XPathNSResolver", - "XPathResult", - "XRAnchor", - "XRAnchorSet", - "XRBoundedReferenceSpace", - "XRCPUDepthInformation", - "XRCamera", - "XRDOMOverlayState", - "XRDepthInformation", - "XRFrame", - "XRHand", - "XRHitTestResult", - "XRHitTestSource", - "XRInputSource", - "XRInputSourceArray", - "XRInputSourceEvent", - "XRInputSourcesChangeEvent", - "XRJointPose", - "XRJointSpace", - "XRLayer", - "XRLightEstimate", - "XRLightProbe", - "XRPose", - "XRRay", - "XRReferenceSpace", - "XRReferenceSpaceEvent", - "XRRenderState", - "XRRigidTransform", - "XRSession", - "XRSessionEvent", - "XRSpace", - "XRSystem", - "XRTransientInputHitTestResult", - "XRTransientInputHitTestSource", - "XRView", - "XRViewerPose", - "XRViewport", - "XRWebGLBinding", - "XRWebGLDepthInformation", - "XRWebGLLayer", - "XSLTProcessor", - "ZERO", - "ZoomSettings", - "ZoomSettingsMode", - "ZoomSettingsScope", - "_XD0M_", - "_YD0M_", - "__REACT_DEVTOOLS_GLOBAL_HOOK__", - "__brand", - "__defineGetter__", - "__defineSetter__", - "__lookupGetter__", - "__lookupSetter__", - "__opera", - "__proto__", - "_browserjsran", - "a", - "aLink", - "abbr", - "abort", - "aborted", - "aboutConfigPrefs", - "abs", - "absolute", - "acceleration", - "accelerationIncludingGravity", - "accelerator", - "accent-color", - "accentColor", - "accept", - "acceptCharset", - "acceptNode", - "access", - "accessKey", - "accessKeyLabel", - "accuracy", - "acos", - "acosh", - "action", - "actionURL", - "actions", - "activated", - "activation", - "activationStart", - "active", - "activeCues", - "activeElement", - "activeSourceBuffers", - "activeSourceCount", - "activeTexture", - "activeVRDisplays", - "activityLog", - "actualBoundingBoxAscent", - "actualBoundingBoxDescent", - "actualBoundingBoxLeft", - "actualBoundingBoxRight", - "adAuctionComponents", - "adAuctionHeaders", - "add", - "addAll", - "addBehavior", - "addCandidate", - "addColorStop", - "addCue", - "addElement", - "addEventListener", - "addFilter", - "addFromString", - "addFromUri", - "addIceCandidate", - "addImport", - "addListener", - "addModule", - "addNamed", - "addPageRule", - "addPath", - "addPointer", - "addRange", - "addRegion", - "addRule", - "addSearchEngine", - "addSourceBuffer", - "addStream", - "addTextTrack", - "addTrack", - "addTransceiver", - "addWakeLockListener", - "added", - "addedNodes", - "additionalName", - "additiveSymbols", - "addons", - "address", - "addressLine", - "addressModeU", - "addressModeV", - "addressModeW", - "adoptNode", - "adoptedCallback", - "adoptedStyleSheets", - "adr", - "advance", - "after", - "alarms", - "album", - "alert", - "algorithm", - "align", - "align-content", - "align-items", - "align-self", - "alignContent", - "alignItems", - "alignSelf", - "alignmentBaseline", - "alinkColor", - "all", - "allSettled", - "allocationSize", - "allow", - "allowFullscreen", - "allowPaymentRequest", - "allowedDirections", - "allowedFeatures", - "allowedToPlay", - "allowsFeature", - "alpha", - "alphaMode", - "alphaToCoverageEnabled", - "alphabeticBaseline", - "alt", - "altGraphKey", - "altHtml", - "altKey", - "altLeft", - "alternate", - "alternateSetting", - "alternates", - "altitude", - "altitudeAccuracy", - "altitudeAngle", - "amplitude", - "ancestorOrigins", - "anchor", - "anchorNode", - "anchorOffset", - "anchorSpace", - "anchors", - "and", - "angle", - "angularAcceleration", - "angularVelocity", - "animVal", - "animate", - "animated", - "animatedInstanceRoot", - "animatedNormalizedPathSegList", - "animatedPathSegList", - "animatedPoints", - "animation", - "animation-composition", - "animation-delay", - "animation-direction", - "animation-duration", - "animation-fill-mode", - "animation-iteration-count", - "animation-name", - "animation-play-state", - "animation-timing-function", - "animationComposition", - "animationDelay", - "animationDirection", - "animationDuration", - "animationFillMode", - "animationIterationCount", - "animationName", - "animationPlayState", - "animationStartTime", - "animationTimingFunction", - "animationsPaused", - "anniversary", - "antialias", - "anticipatedRemoval", - "any", - "app", - "appCodeName", - "appMinorVersion", - "appName", - "appNotifications", - "appVersion", - "appearance", - "append", - "appendBuffer", - "appendChild", - "appendData", - "appendItem", - "appendMedium", - "appendNamed", - "appendRule", - "appendStream", - "appendWindowEnd", - "appendWindowStart", - "applets", - "applicationCache", - "applicationServerKey", - "apply", - "applyConstraints", - "applyElement", - "arc", - "arcTo", - "arch", - "architecture", - "archive", - "areas", - "arguments", - "ariaAtomic", - "ariaAutoComplete", - "ariaBrailleLabel", - "ariaBrailleRoleDescription", - "ariaBusy", - "ariaChecked", - "ariaColCount", - "ariaColIndex", - "ariaColIndexText", - "ariaColSpan", - "ariaCurrent", - "ariaDescription", - "ariaDisabled", - "ariaExpanded", - "ariaHasPopup", - "ariaHidden", - "ariaInvalid", - "ariaKeyShortcuts", - "ariaLabel", - "ariaLevel", - "ariaLive", - "ariaModal", - "ariaMultiLine", - "ariaMultiSelectable", - "ariaOrientation", - "ariaPlaceholder", - "ariaPosInSet", - "ariaPressed", - "ariaReadOnly", - "ariaRelevant", - "ariaRequired", - "ariaRoleDescription", - "ariaRowCount", - "ariaRowIndex", - "ariaRowIndexText", - "ariaRowSpan", - "ariaSelected", - "ariaSetSize", - "ariaSort", - "ariaValueMax", - "ariaValueMin", - "ariaValueNow", - "ariaValueText", - "arrayBuffer", - "arrayLayerCount", - "arrayStride", - "artist", - "artwork", - "as", - "asIntN", - "asUintN", - "ascentOverride", - "asin", - "asinh", - "aspect", - "aspect-ratio", - "aspectRatio", - "assert", - "assign", - "assignedElements", - "assignedNodes", - "assignedSlot", - "async", - "asyncDispose", - "asyncIterator", - "at", - "atEnd", - "atan", - "atan2", - "atanh", - "atob", - "attachEvent", - "attachInternals", - "attachShader", - "attachShadow", - "attachedElements", - "attachments", - "attack", - "attestationObject", - "attrChange", - "attrName", - "attributeChangedCallback", - "attributeFilter", - "attributeName", - "attributeNamespace", - "attributeOldValue", - "attributeStyleMap", - "attributes", - "attribution", - "attributionSrc", - "audioBitrateMode", - "audioBitsPerSecond", - "audioTracks", - "audioWorklet", - "authenticatedSignedWrites", - "authenticatorAttachment", - "authenticatorData", - "autoIncrement", - "autobuffer", - "autocapitalize", - "autocomplete", - "autocorrect", - "autofocus", - "automationRate", - "autoplay", - "availHeight", - "availLeft", - "availTop", - "availWidth", - "availability", - "available", - "averageLatency", - "aversion", - "ax", - "axes", - "axis", - "ay", - "azimuth", - "azimuthAngle", - "b", - "back", - "backdrop-filter", - "backdropFilter", - "backends", - "backface-visibility", - "backfaceVisibility", - "background", - "background-attachment", - "background-blend-mode", - "background-clip", - "background-color", - "background-image", - "background-origin", - "background-position", - "background-position-x", - "background-position-y", - "background-repeat", - "background-size", - "backgroundAttachment", - "backgroundBlendMode", - "backgroundClip", - "backgroundColor", - "backgroundFetch", - "backgroundImage", - "backgroundOrigin", - "backgroundPosition", - "backgroundPositionX", - "backgroundPositionY", - "backgroundRepeat", - "backgroundSize", - "badInput", - "badge", - "balance", - "baseArrayLayer", - "baseFrequencyX", - "baseFrequencyY", - "baseLatency", - "baseLayer", - "baseMipLevel", - "baseNode", - "baseOffset", - "basePalette", - "baseURI", - "baseVal", - "baseline-source", - "baselineShift", - "baselineSource", - "battery", - "bday", - "before", - "beginComputePass", - "beginElement", - "beginElementAt", - "beginOcclusionQuery", - "beginPath", - "beginQuery", - "beginRenderPass", - "beginTransformFeedback", - "beginningOfPassWriteIndex", - "behavior", - "behaviorCookie", - "behaviorPart", - "behaviorUrns", - "beta", - "bezierCurveTo", - "bgColor", - "bgProperties", - "bias", - "big", - "bigint64", - "biguint64", - "binaryType", - "bind", - "bindAttribLocation", - "bindBuffer", - "bindBufferBase", - "bindBufferRange", - "bindFramebuffer", - "bindGroupLayouts", - "bindRenderbuffer", - "bindSampler", - "bindTexture", - "bindTransformFeedback", - "bindVertexArray", - "binding", - "bitness", - "blend", - "blendColor", - "blendEquation", - "blendEquationSeparate", - "blendFunc", - "blendFuncSeparate", - "blink", - "blitFramebuffer", - "blob", - "block-size", - "blockDirection", - "blockSize", - "blockedURI", - "blocking", - "blockingDuration", - "blue", - "bluetooth", - "blur", - "body", - "bodyUsed", - "bold", - "bookmarks", - "booleanValue", - "border", - "border-block", - "border-block-color", - "border-block-end", - "border-block-end-color", - "border-block-end-style", - "border-block-end-width", - "border-block-start", - "border-block-start-color", - "border-block-start-style", - "border-block-start-width", - "border-block-style", - "border-block-width", - "border-bottom", - "border-bottom-color", - "border-bottom-left-radius", - "border-bottom-right-radius", - "border-bottom-style", - "border-bottom-width", - "border-collapse", - "border-color", - "border-end-end-radius", - "border-end-start-radius", - "border-image", - "border-image-outset", - "border-image-repeat", - "border-image-slice", - "border-image-source", - "border-image-width", - "border-inline", - "border-inline-color", - "border-inline-end", - "border-inline-end-color", - "border-inline-end-style", - "border-inline-end-width", - "border-inline-start", - "border-inline-start-color", - "border-inline-start-style", - "border-inline-start-width", - "border-inline-style", - "border-inline-width", - "border-left", - "border-left-color", - "border-left-style", - "border-left-width", - "border-radius", - "border-right", - "border-right-color", - "border-right-style", - "border-right-width", - "border-spacing", - "border-start-end-radius", - "border-start-start-radius", - "border-style", - "border-top", - "border-top-color", - "border-top-left-radius", - "border-top-right-radius", - "border-top-style", - "border-top-width", - "border-width", - "borderBlock", - "borderBlockColor", - "borderBlockEnd", - "borderBlockEndColor", - "borderBlockEndStyle", - "borderBlockEndWidth", - "borderBlockStart", - "borderBlockStartColor", - "borderBlockStartStyle", - "borderBlockStartWidth", - "borderBlockStyle", - "borderBlockWidth", - "borderBottom", - "borderBottomColor", - "borderBottomLeftRadius", - "borderBottomRightRadius", - "borderBottomStyle", - "borderBottomWidth", - "borderBoxSize", - "borderCollapse", - "borderColor", - "borderColorDark", - "borderColorLight", - "borderEndEndRadius", - "borderEndStartRadius", - "borderImage", - "borderImageOutset", - "borderImageRepeat", - "borderImageSlice", - "borderImageSource", - "borderImageWidth", - "borderInline", - "borderInlineColor", - "borderInlineEnd", - "borderInlineEndColor", - "borderInlineEndStyle", - "borderInlineEndWidth", - "borderInlineStart", - "borderInlineStartColor", - "borderInlineStartStyle", - "borderInlineStartWidth", - "borderInlineStyle", - "borderInlineWidth", - "borderLeft", - "borderLeftColor", - "borderLeftStyle", - "borderLeftWidth", - "borderRadius", - "borderRight", - "borderRightColor", - "borderRightStyle", - "borderRightWidth", - "borderSpacing", - "borderStartEndRadius", - "borderStartStartRadius", - "borderStyle", - "borderTop", - "borderTopColor", - "borderTopLeftRadius", - "borderTopRightRadius", - "borderTopStyle", - "borderTopWidth", - "borderWidth", - "bottom", - "bottomMargin", - "bound", - "boundElements", - "boundingClientRect", - "boundingHeight", - "boundingLeft", - "boundingRect", - "boundingTop", - "boundingWidth", - "bounds", - "boundsGeometry", - "box-decoration-break", - "box-shadow", - "box-sizing", - "boxDecorationBreak", - "boxShadow", - "boxSizing", - "brand", - "brands", - "break-after", - "break-before", - "break-inside", - "breakAfter", - "breakBefore", - "breakInside", - "broadcast", - "browser", - "browserLanguage", - "browserSettings", - "browsingData", - "browsingTopics", - "btoa", - "bubbles", - "buffer", - "bufferData", - "bufferDepth", - "bufferSize", - "bufferSubData", - "buffered", - "bufferedAmount", - "bufferedAmountLowThreshold", - "buffers", - "buildID", - "buildNumber", - "button", - "buttonID", - "buttons", - "byobRequest", - "byteLength", - "byteOffset", - "bytes", - "bytesPerRow", - "bytesWritten", - "c", - "cache", - "caches", - "call", - "caller", - "camera", - "canBeFormatted", - "canBeMounted", - "canBeShared", - "canConstructInDedicatedWorker", - "canGoBack", - "canGoForward", - "canHaveChildren", - "canHaveHTML", - "canInsertDTMF", - "canIntercept", - "canLoadAdAuctionFencedFrame", - "canLoadOpaqueURL", - "canMakePayment", - "canParse", - "canPlayType", - "canPresent", - "canShare", - "canTransition", - "canTrickleIceCandidates", - "cancel", - "cancelAndHoldAtTime", - "cancelAnimationFrame", - "cancelBubble", - "cancelIdleCallback", - "cancelScheduledValues", - "cancelVideoFrameCallback", - "cancelWatchAvailability", - "cancelable", - "candidate", - "canonicalUUID", - "canvas", - "cap", - "capabilities", - "caption", - "caption-side", - "captionSide", - "captivePortal", - "capture", - "captureEvents", - "captureStackTrace", - "captureStream", - "captureTab", - "captureVisibleTab", - "caret-color", - "caretBidiLevel", - "caretColor", - "caretPositionFromPoint", - "caretRangeFromPoint", - "cast", - "catch", - "category", - "cbrt", - "cd", - "ceil", - "cellIndex", - "cellPadding", - "cellSpacing", - "cells", - "ch", - "chOff", - "chain", - "challenge", - "changeType", - "changed", - "changedTouches", - "channel", - "channelCount", - "channelCountMode", - "channelInterpretation", - "chapterInfo", - "char", - "charAt", - "charCode", - "charCodeAt", - "charIndex", - "charLength", - "characterBounds", - "characterBoundsRangeStart", - "characterData", - "characterDataOldValue", - "characterSet", - "characteristic", - "charging", - "chargingTime", - "charset", - "check", - "checkDCE", - "checkEnclosure", - "checkFramebufferStatus", - "checkIntersection", - "checkValidity", - "checkVisibility", - "checked", - "childElementCount", - "childList", - "childNodes", - "children", - "chrome", - "ciphertext", - "cite", - "city", - "claimInterface", - "claimed", - "classList", - "className", - "classid", - "clear", - "clearAppBadge", - "clearAttributes", - "clearBuffer", - "clearBufferfi", - "clearBufferfv", - "clearBufferiv", - "clearBufferuiv", - "clearColor", - "clearData", - "clearDepth", - "clearHalt", - "clearImmediate", - "clearInterval", - "clearLiveSeekableRange", - "clearMarks", - "clearMaxGCPauseAccumulator", - "clearMeasures", - "clearOriginJoinedAdInterestGroups", - "clearParameters", - "clearRect", - "clearResourceTimings", - "clearShadow", - "clearStencil", - "clearTimeout", - "clearValue", - "clearWatch", - "click", - "clickCount", - "clientDataJSON", - "clientHeight", - "clientInformation", - "clientLeft", - "clientRect", - "clientRects", - "clientTop", - "clientWaitSync", - "clientWidth", - "clientX", - "clientY", - "clip", - "clip-path", - "clip-rule", - "clipBottom", - "clipLeft", - "clipPath", - "clipPathUnits", - "clipRight", - "clipRule", - "clipTop", - "clipboard", - "clipboardData", - "clonable", - "clone", - "cloneContents", - "cloneNode", - "cloneRange", - "close", - "closeCode", - "closePath", - "closed", - "closest", - "clz", - "clz32", - "cm", - "cmp", - "code", - "codeBase", - "codePointAt", - "codeType", - "codedHeight", - "codedRect", - "codedWidth", - "colSpan", - "collapse", - "collapseToEnd", - "collapseToStart", - "collapsed", - "collect", - "collections", - "colno", - "color", - "color-adjust", - "color-interpolation", - "color-interpolation-filters", - "color-scheme", - "colorAdjust", - "colorAttachments", - "colorDepth", - "colorFormats", - "colorInterpolation", - "colorInterpolationFilters", - "colorMask", - "colorScheme", - "colorSpace", - "colorType", - "cols", - "column-count", - "column-fill", - "column-gap", - "column-rule", - "column-rule-color", - "column-rule-style", - "column-rule-width", - "column-span", - "column-width", - "columnCount", - "columnFill", - "columnGap", - "columnNumber", - "columnRule", - "columnRuleColor", - "columnRuleStyle", - "columnRuleWidth", - "columnSpan", - "columnWidth", - "columns", - "command", - "commands", - "commit", - "commitLoadTime", - "commitPreferences", - "commitStyles", - "commonAncestorContainer", - "compact", - "compare", - "compareBoundaryPoints", - "compareDocumentPosition", - "compareEndPoints", - "compareExchange", - "compareNode", - "comparePoint", - "compatMode", - "compatible", - "compile", - "compileShader", - "compileStreaming", - "complete", - "completed", - "component", - "componentFromPoint", - "composed", - "composedPath", - "composite", - "compositionEndOffset", - "compositionStartOffset", - "compressedTexImage2D", - "compressedTexImage3D", - "compressedTexSubImage2D", - "compressedTexSubImage3D", - "compute", - "computedStyleMap", - "concat", - "conditionText", - "coneInnerAngle", - "coneOuterAngle", - "coneOuterGain", - "config", - "configurable", - "configuration", - "configurationName", - "configurationValue", - "configurations", - "configure", - "confirm", - "confirmComposition", - "confirmSiteSpecificTrackingException", - "confirmWebWideTrackingException", - "congestionControl", - "connect", - "connectEnd", - "connectNative", - "connectShark", - "connectStart", - "connected", - "connectedCallback", - "connection", - "connectionInfo", - "connectionList", - "connectionSpeed", - "connectionState", - "connections", - "console", - "consolidate", - "constants", - "constraint", - "constrictionActive", - "construct", - "constructor", - "contactID", - "contain", - "contain-intrinsic-block-size", - "contain-intrinsic-height", - "contain-intrinsic-inline-size", - "contain-intrinsic-size", - "contain-intrinsic-width", - "containIntrinsicBlockSize", - "containIntrinsicHeight", - "containIntrinsicInlineSize", - "containIntrinsicSize", - "containIntrinsicWidth", - "container", - "container-name", - "container-type", - "containerId", - "containerName", - "containerQuery", - "containerSrc", - "containerType", - "contains", - "containsNode", - "content", - "content-visibility", - "contentBoxSize", - "contentDocument", - "contentEditable", - "contentHint", - "contentOverflow", - "contentRect", - "contentScriptType", - "contentStyleType", - "contentType", - "contentVisibility", - "contentWindow", - "context", - "contextId", - "contextIds", - "contextMenu", - "contextMenus", - "contextType", - "contextTypes", - "contextmenu", - "contextualIdentities", - "continue", - "continuePrimaryKey", - "continuous", - "control", - "controlTransferIn", - "controlTransferOut", - "controller", - "controls", - "controlsList", - "convertPointFromNode", - "convertQuadFromNode", - "convertRectFromNode", - "convertToBlob", - "convertToSpecifiedUnits", - "cookie", - "cookieEnabled", - "cookieStore", - "cookies", - "coords", - "copyBufferSubData", - "copyBufferToBuffer", - "copyBufferToTexture", - "copyExternalImageToTexture", - "copyFromChannel", - "copyTexImage2D", - "copyTexSubImage2D", - "copyTexSubImage3D", - "copyTextureToBuffer", - "copyTextureToTexture", - "copyTo", - "copyToChannel", - "copyWithin", - "correspondingElement", - "correspondingUseElement", - "corruptedVideoFrames", - "cos", - "cosh", - "count", - "countReset", - "counter-increment", - "counter-reset", - "counter-set", - "counterIncrement", - "counterReset", - "counterSet", - "country", - "cpuClass", - "cpuSleepAllowed", - "cqb", - "cqh", - "cqi", - "cqmax", - "cqmin", - "cqw", - "create", - "createAnalyser", - "createAnchor", - "createAnswer", - "createAttribute", - "createAttributeNS", - "createAuctionNonce", - "createBidirectionalStream", - "createBindGroup", - "createBindGroupLayout", - "createBiquadFilter", - "createBuffer", - "createBufferSource", - "createCDATASection", - "createCSSStyleSheet", - "createCaption", - "createChannelMerger", - "createChannelSplitter", - "createCommandEncoder", - "createComment", - "createComputePipeline", - "createComputePipelineAsync", - "createConicGradient", - "createConstantSource", - "createContextualFragment", - "createControlRange", - "createConvolver", - "createDTMFSender", - "createDataChannel", - "createDelay", - "createDelayNode", - "createDocument", - "createDocumentFragment", - "createDocumentType", - "createDynamicsCompressor", - "createElement", - "createElementNS", - "createEncodedStreams", - "createEntityReference", - "createEvent", - "createEventObject", - "createExpression", - "createFramebuffer", - "createFunction", - "createGain", - "createGainNode", - "createHTML", - "createHTMLDocument", - "createIIRFilter", - "createImageBitmap", - "createImageData", - "createIndex", - "createJavaScriptNode", - "createLinearGradient", - "createMediaElementSource", - "createMediaKeys", - "createMediaStreamDestination", - "createMediaStreamSource", - "createMediaStreamTrackSource", - "createMutableFile", - "createNSResolver", - "createNodeIterator", - "createNotification", - "createObjectStore", - "createObjectURL", - "createOffer", - "createOscillator", - "createPanner", - "createPattern", - "createPeriodicWave", - "createPipelineLayout", - "createPolicy", - "createPopup", - "createProcessingInstruction", - "createProgram", - "createQuery", - "createQuerySet", - "createRadialGradient", - "createRange", - "createRangeCollection", - "createReader", - "createRenderBundleEncoder", - "createRenderPipeline", - "createRenderPipelineAsync", - "createRenderbuffer", - "createSVGAngle", - "createSVGLength", - "createSVGMatrix", - "createSVGNumber", - "createSVGPathSegArcAbs", - "createSVGPathSegArcRel", - "createSVGPathSegClosePath", - "createSVGPathSegCurvetoCubicAbs", - "createSVGPathSegCurvetoCubicRel", - "createSVGPathSegCurvetoCubicSmoothAbs", - "createSVGPathSegCurvetoCubicSmoothRel", - "createSVGPathSegCurvetoQuadraticAbs", - "createSVGPathSegCurvetoQuadraticRel", - "createSVGPathSegCurvetoQuadraticSmoothAbs", - "createSVGPathSegCurvetoQuadraticSmoothRel", - "createSVGPathSegLinetoAbs", - "createSVGPathSegLinetoHorizontalAbs", - "createSVGPathSegLinetoHorizontalRel", - "createSVGPathSegLinetoRel", - "createSVGPathSegLinetoVerticalAbs", - "createSVGPathSegLinetoVerticalRel", - "createSVGPathSegMovetoAbs", - "createSVGPathSegMovetoRel", - "createSVGPoint", - "createSVGRect", - "createSVGTransform", - "createSVGTransformFromMatrix", - "createSampler", - "createScript", - "createScriptProcessor", - "createScriptURL", - "createSession", - "createShader", - "createShaderModule", - "createShadowRoot", - "createStereoPanner", - "createStyleSheet", - "createTBody", - "createTFoot", - "createTHead", - "createTask", - "createTextNode", - "createTextRange", - "createTexture", - "createTouch", - "createTouchList", - "createTransformFeedback", - "createTreeWalker", - "createUnidirectionalStream", - "createVertexArray", - "createView", - "createWaveShaper", - "createWorklet", - "createWritable", - "creationTime", - "credentialless", - "credentials", - "criticalCHRestart", - "cropTo", - "crossOrigin", - "crossOriginIsolated", - "crypto", - "csi", - "csp", - "cssFloat", - "cssRules", - "cssText", - "cssValueType", - "ctrlKey", - "ctrlLeft", - "cues", - "cullFace", - "cullMode", - "currentCSSZoom", - "currentDirection", - "currentEntry", - "currentLocalDescription", - "currentNode", - "currentPage", - "currentRect", - "currentRemoteDescription", - "currentScale", - "currentScreen", - "currentScript", - "currentSrc", - "currentState", - "currentStyle", - "currentTarget", - "currentTime", - "currentTranslate", - "currentView", - "cursor", - "curve", - "customElements", - "customError", - "cx", - "cy", - "d", - "data", - "dataFld", - "dataFormatAs", - "dataLoss", - "dataLossMessage", - "dataPageSize", - "dataSrc", - "dataTransfer", - "database", - "databases", - "datagrams", - "dataset", - "dateTime", - "db", - "debug", - "debuggerEnabled", - "declarativeNetRequest", - "declare", - "decode", - "decodeAudioData", - "decodeQueueSize", - "decodeURI", - "decodeURIComponent", - "decodedBodySize", - "decoding", - "decodingInfo", - "decrypt", - "default", - "defaultCharset", - "defaultChecked", - "defaultMuted", - "defaultPlaybackRate", - "defaultPolicy", - "defaultPrevented", - "defaultQueue", - "defaultRequest", - "defaultSelected", - "defaultStatus", - "defaultURL", - "defaultValue", - "defaultView", - "defaultstatus", - "defer", - "define", - "defineMagicFunction", - "defineMagicVariable", - "defineProperties", - "defineProperty", - "deg", - "delay", - "delayTime", - "delegatesFocus", - "delete", - "deleteBuffer", - "deleteCaption", - "deleteCell", - "deleteContents", - "deleteData", - "deleteDatabase", - "deleteFramebuffer", - "deleteFromDocument", - "deleteIndex", - "deleteMedium", - "deleteObjectStore", - "deleteProgram", - "deleteProperty", - "deleteQuery", - "deleteRenderbuffer", - "deleteRow", - "deleteRule", - "deleteSampler", - "deleteShader", - "deleteSync", - "deleteTFoot", - "deleteTHead", - "deleteTexture", - "deleteTransformFeedback", - "deleteVertexArray", - "deleted", - "deliverChangeRecords", - "deliveredFrames", - "deliveredFramesDuration", - "delivery", - "deliveryInfo", - "deliveryStatus", - "deliveryTimestamp", - "deliveryType", - "delta", - "deltaMode", - "deltaX", - "deltaY", - "deltaZ", - "dependentLocality", - "deprecatedReplaceInURN", - "deprecatedRunAdAuctionEnforcesKAnonymity", - "deprecatedURNToURL", - "depthBias", - "depthBiasClamp", - "depthBiasSlopeScale", - "depthClearValue", - "depthCompare", - "depthDataFormat", - "depthFailOp", - "depthFar", - "depthFunc", - "depthLoadOp", - "depthMask", - "depthNear", - "depthOrArrayLayers", - "depthRange", - "depthReadOnly", - "depthStencil", - "depthStencilAttachment", - "depthStencilFormat", - "depthStoreOp", - "depthUsage", - "depthWriteEnabled", - "deref", - "deriveBits", - "deriveKey", - "descentOverride", - "description", - "deselectAll", - "designMode", - "desiredSize", - "destination", - "destinationURL", - "destroy", - "detach", - "detachEvent", - "detachShader", - "detached", - "detail", - "details", - "detect", - "detectLanguage", - "detune", - "device", - "deviceClass", - "deviceId", - "deviceMemory", - "devicePixelContentBoxSize", - "devicePixelRatio", - "deviceProtocol", - "deviceSubclass", - "deviceVersionMajor", - "deviceVersionMinor", - "deviceVersionSubminor", - "deviceXDPI", - "deviceYDPI", - "devtools", - "devtools_panels", - "didTimeout", - "difference", - "diffuseConstant", - "digest", - "dimension", - "dimensions", - "dir", - "dirName", - "direction", - "dirxml", - "disable", - "disablePictureInPicture", - "disableRemotePlayback", - "disableVertexAttribArray", - "disabled", - "discard", - "discardedFrames", - "dischargingTime", - "disconnect", - "disconnectShark", - "disconnectedCallback", - "dispatchEvent", - "dispatchWorkgroups", - "dispatchWorkgroupsIndirect", - "display", - "displayHeight", - "displayId", - "displayName", - "displayWidth", - "dispose", - "disposition", - "distanceModel", - "div", - "divisor", - "djsapi", - "djsproxy", - "dns", - "doImport", - "doNotTrack", - "doScroll", - "doctype", - "document", - "documentElement", - "documentId", - "documentIds", - "documentLifecycle", - "documentMode", - "documentOrigin", - "documentOrigins", - "documentPictureInPicture", - "documentURI", - "documentUrl", - "documentUrls", - "dolphin", - "dolphinGameCenter", - "dolphininfo", - "dolphinmeta", - "dom", - "domComplete", - "domContentLoadedEventEnd", - "domContentLoadedEventStart", - "domInteractive", - "domLoading", - "domOverlayState", - "domain", - "domainLookupEnd", - "domainLookupStart", - "dominant-baseline", - "dominantBaseline", - "done", - "dopplerFactor", - "dotAll", - "downDegrees", - "downlink", - "download", - "downloadRequest", - "downloadTotal", - "downloaded", - "downloads", - "dpcm", - "dpi", - "dppx", - "dragDrop", - "draggable", - "draw", - "drawArrays", - "drawArraysInstanced", - "drawArraysInstancedANGLE", - "drawBuffers", - "drawCustomFocusRing", - "drawElements", - "drawElementsInstanced", - "drawElementsInstancedANGLE", - "drawFocusIfNeeded", - "drawImage", - "drawImageFromRect", - "drawIndexed", - "drawIndexedIndirect", - "drawIndirect", - "drawRangeElements", - "drawSystemFocusRing", - "drawingBufferColorSpace", - "drawingBufferFormat", - "drawingBufferHeight", - "drawingBufferStorage", - "drawingBufferWidth", - "drop", - "dropEffect", - "droppedVideoFrames", - "dropzone", - "dstFactor", - "dtmf", - "dump", - "dumpProfile", - "duplex", - "duplicate", - "durability", - "duration", - "dvb", - "dvh", - "dvi", - "dvmax", - "dvmin", - "dvname", - "dvnum", - "dvw", - "dx", - "dy", - "dynamicId", - "dynsrc", - "e", - "edgeMode", - "editContext", - "effect", - "effectAllowed", - "effectiveDirective", - "effectiveType", - "effects", - "elapsedTime", - "element", - "elementFromPoint", - "elementTiming", - "elements", - "elementsFromPoint", - "elevation", - "ellipse", - "em", - "emHeightAscent", - "emHeightDescent", - "email", - "embeds", - "emit", - "emma", - "empty", - "empty-cells", - "emptyCells", - "emptyHTML", - "emptyScript", - "emulatedPosition", - "enable", - "enableBackground", - "enableDelegations", - "enableStyleSheetsForSet", - "enableVertexAttribArray", - "enabled", - "enabledFeatures", - "enabledPlugin", - "encode", - "encodeInto", - "encodeQueueSize", - "encodeURI", - "encodeURIComponent", - "encodedBodySize", - "encoding", - "encodingInfo", - "encrypt", - "enctype", - "end", - "endContainer", - "endElement", - "endElementAt", - "endOcclusionQuery", - "endOfPassWriteIndex", - "endOfStream", - "endOffset", - "endQuery", - "endTime", - "endTransformFeedback", - "ended", - "endpoint", - "endpointNumber", - "endpoints", - "endsWith", - "enqueue", - "enterKeyHint", - "entities", - "entries", - "entry", - "entryPoint", - "entryType", - "enumerable", - "enumerate", - "enumerateDevices", - "enumerateEditable", - "environmentBlendMode", - "equals", - "error", - "errorCode", - "errorDetail", - "errorText", - "escape", - "estimate", - "eval", - "evaluate", - "event", - "eventCounts", - "eventPhase", - "events", - "every", - "ex", - "exception", - "exchange", - "exec", - "execCommand", - "execCommandShowHelp", - "execScript", - "executeBundles", - "executionStart", - "exitFullscreen", - "exitPictureInPicture", - "exitPointerLock", - "exitPresent", - "exp", - "expand", - "expandEntityReferences", - "expando", - "expansion", - "expectedImprovement", - "experiments", - "expiration", - "expirationTime", - "expires", - "expiryDate", - "explicitOriginalTarget", - "expm1", - "exponent", - "exponentialRampToValueAtTime", - "exportKey", - "exports", - "extend", - "extension", - "extensionTypes", - "extensions", - "extentNode", - "extentOffset", - "external", - "externalResourcesRequired", - "externalTexture", - "extractContents", - "extractable", - "eye", - "f", - "f16round", - "face", - "factoryReset", - "failOp", - "failureReason", - "fallback", - "family", - "familyName", - "farthestViewportElement", - "fastSeek", - "fatal", - "featureId", - "featurePolicy", - "featureSettings", - "features", - "fence", - "fenceSync", - "fetch", - "fetchPriority", - "fetchStart", - "fftSize", - "fgColor", - "fieldOfView", - "file", - "fileCreatedDate", - "fileHandle", - "fileModifiedDate", - "fileName", - "fileSize", - "fileUpdatedDate", - "filename", - "files", - "filesystem", - "fill", - "fill-opacity", - "fill-rule", - "fillJointRadii", - "fillLightMode", - "fillOpacity", - "fillPoses", - "fillRect", - "fillRule", - "fillStyle", - "fillText", - "filter", - "filterResX", - "filterResY", - "filterUnits", - "filters", - "finally", - "find", - "findIndex", - "findLast", - "findLastIndex", - "findRule", - "findText", - "finish", - "finishDocumentLoadTime", - "finishLoadTime", - "finished", - "fireEvent", - "firesTouchEvents", - "firstChild", - "firstElementChild", - "firstInterimResponseStart", - "firstPage", - "firstPaintAfterLoadTime", - "firstPaintTime", - "firstUIEventTimestamp", - "fixed", - "flags", - "flat", - "flatMap", - "flex", - "flex-basis", - "flex-direction", - "flex-flow", - "flex-grow", - "flex-shrink", - "flex-wrap", - "flexBasis", - "flexDirection", - "flexFlow", - "flexGrow", - "flexShrink", - "flexWrap", - "flipX", - "flipY", - "float", - "float32", - "float64", - "flood-color", - "flood-opacity", - "floodColor", - "floodOpacity", - "floor", - "flush", - "focus", - "focusNode", - "focusOffset", - "font", - "font-family", - "font-feature-settings", - "font-kerning", - "font-language-override", - "font-optical-sizing", - "font-palette", - "font-size", - "font-size-adjust", - "font-stretch", - "font-style", - "font-synthesis", - "font-synthesis-position", - "font-synthesis-small-caps", - "font-synthesis-style", - "font-synthesis-weight", - "font-variant", - "font-variant-alternates", - "font-variant-caps", - "font-variant-east-asian", - "font-variant-ligatures", - "font-variant-numeric", - "font-variant-position", - "font-variation-settings", - "font-weight", - "fontBoundingBoxAscent", - "fontBoundingBoxDescent", - "fontFamily", - "fontFeatureSettings", - "fontKerning", - "fontLanguageOverride", - "fontOpticalSizing", - "fontPalette", - "fontSize", - "fontSizeAdjust", - "fontSmoothingEnabled", - "fontStretch", - "fontStyle", - "fontSynthesis", - "fontSynthesisPosition", - "fontSynthesisSmallCaps", - "fontSynthesisStyle", - "fontSynthesisWeight", - "fontVariant", - "fontVariantAlternates", - "fontVariantCaps", - "fontVariantEastAsian", - "fontVariantLigatures", - "fontVariantNumeric", - "fontVariantPosition", - "fontVariationSettings", - "fontWeight", - "fontcolor", - "fontfaces", - "fonts", - "fontsize", - "for", - "forEach", - "force", - "forceFallbackAdapter", - "forceRedraw", - "forced-color-adjust", - "forcedColorAdjust", - "forcedStyleAndLayoutDuration", - "forget", - "form", - "formAction", - "formData", - "formEnctype", - "formMethod", - "formNoValidate", - "formTarget", - "format", - "formatToParts", - "forms", - "forward", - "forwardX", - "forwardY", - "forwardZ", - "foundation", - "fr", - "fragment", - "fragmentDirective", - "frame", - "frameBorder", - "frameCount", - "frameElement", - "frameId", - "frameIds", - "frameSpacing", - "framebuffer", - "framebufferHeight", - "framebufferRenderbuffer", - "framebufferTexture2D", - "framebufferTextureLayer", - "framebufferWidth", - "frames", - "freeSpace", - "freeze", - "frequency", - "frequencyBinCount", - "from", - "fromAsync", - "fromBase64", - "fromCharCode", - "fromCodePoint", - "fromElement", - "fromEntries", - "fromFloat32Array", - "fromFloat64Array", - "fromHex", - "fromMatrix", - "fromPoint", - "fromQuad", - "fromRect", - "frontFace", - "fround", - "fullName", - "fullPath", - "fullRange", - "fullScreen", - "fullVersionList", - "fullscreen", - "fullscreenElement", - "fullscreenEnabled", - "fx", - "fy", - "g", - "gain", - "gamepad", - "gamma", - "gap", - "gatheringState", - "gatt", - "geckoProfiler", - "genderIdentity", - "generateCertificate", - "generateKey", - "generateMipmap", - "generateRequest", - "geolocation", - "gestureObject", - "get", - "getAcceptLanguages", - "getActiveAttrib", - "getActiveUniform", - "getActiveUniformBlockName", - "getActiveUniformBlockParameter", - "getActiveUniforms", - "getAdjacentText", - "getAll", - "getAllKeys", - "getAllResponseHeaders", - "getAllowlistForFeature", - "getAnimations", - "getAsFile", - "getAsFileSystemHandle", - "getAsString", - "getAttachedShaders", - "getAttribLocation", - "getAttribute", - "getAttributeNS", - "getAttributeNames", - "getAttributeNode", - "getAttributeNodeNS", - "getAttributeType", - "getAudioTracks", - "getAuthenticatorData", - "getAutoplayPolicy", - "getAvailability", - "getBBox", - "getBackgroundPage", - "getBadgeBackgroundColor", - "getBadgeText", - "getBadgeTextColor", - "getBattery", - "getBigInt64", - "getBigUint64", - "getBindGroupLayout", - "getBlob", - "getBookmark", - "getBoundingClientRect", - "getBounds", - "getBoxQuads", - "getBrowserInfo", - "getBufferParameter", - "getBufferSubData", - "getByteFrequencyData", - "getByteTimeDomainData", - "getCSSCanvasContext", - "getCTM", - "getCameraImage", - "getCandidateWindowClientRect", - "getCanonicalLocales", - "getCapabilities", - "getCaptureHandle", - "getChannelData", - "getCharNumAtPosition", - "getCharacteristic", - "getCharacteristics", - "getClientExtensionResults", - "getClientRect", - "getClientRects", - "getCoalescedEvents", - "getCompilationInfo", - "getCompositionAlternatives", - "getComputedStyle", - "getComputedTextLength", - "getComputedTiming", - "getConfiguration", - "getConstraints", - "getContext", - "getContextAttributes", - "getContexts", - "getContributingSources", - "getCounterValue", - "getCueAsHTML", - "getCueById", - "getCurrent", - "getCurrentPosition", - "getCurrentTexture", - "getCurrentTime", - "getData", - "getDatabaseNames", - "getDate", - "getDay", - "getDefaultComputedStyle", - "getDepthInMeters", - "getDepthInformation", - "getDescriptor", - "getDescriptors", - "getDestinationInsertionPoints", - "getDevices", - "getDirectory", - "getDirectoryHandle", - "getDisplayMedia", - "getDistributedNodes", - "getEditable", - "getElementById", - "getElementsByClassName", - "getElementsByName", - "getElementsByTagName", - "getElementsByTagNameNS", - "getEnclosureList", - "getEndPositionOfChar", - "getEntries", - "getEntriesByName", - "getEntriesByType", - "getError", - "getExtension", - "getExtentOfChar", - "getEyeParameters", - "getFeature", - "getFiberRoots", - "getFile", - "getFileHandle", - "getFiles", - "getFilesAndDirectories", - "getFingerprints", - "getFloat16", - "getFloat32", - "getFloat64", - "getFloatFrequencyData", - "getFloatTimeDomainData", - "getFloatValue", - "getFragDataLocation", - "getFrameData", - "getFrameId", - "getFramebufferAttachmentParameter", - "getFrequencyResponse", - "getFullYear", - "getGamepads", - "getHTML", - "getHeaderExtensionsToNegotiate", - "getHighEntropyValues", - "getHitTestResults", - "getHitTestResultsForTransientInput", - "getHours", - "getIdentityAssertion", - "getIds", - "getImageData", - "getIndexedParameter", - "getInfo", - "getInnerHTML", - "getInstalledRelatedApps", - "getInt16", - "getInt32", - "getInt8", - "getInterestGroupAdAuctionData", - "getInternalModuleRanges", - "getInternalformatParameter", - "getIntersectionList", - "getItem", - "getItems", - "getJointPose", - "getKey", - "getKeyframes", - "getLastFocused", - "getLayers", - "getLayoutMap", - "getLightEstimate", - "getLineDash", - "getLocalCandidates", - "getLocalParameters", - "getLocalStreams", - "getManagedConfiguration", - "getManifest", - "getMappedRange", - "getMarks", - "getMatchedCSSRules", - "getMaxGCPauseSinceClear", - "getMeasures", - "getMessage", - "getMetadata", - "getMilliseconds", - "getMinutes", - "getModifierState", - "getMonth", - "getName", - "getNamedItem", - "getNamedItemNS", - "getNativeFramebufferScaleFactor", - "getNegotiatedHeaderExtensions", - "getNestedConfigs", - "getNotifications", - "getNotifier", - "getNumberOfChars", - "getOffsetReferenceSpace", - "getOutputTimestamp", - "getOverrideHistoryNavigationMode", - "getOverrideStyle", - "getOwnPropertyDescriptor", - "getOwnPropertyDescriptors", - "getOwnPropertyNames", - "getOwnPropertySymbols", - "getPackageDirectoryEntry", - "getParameter", - "getParameters", - "getParent", - "getPathSegAtLength", - "getPermissionWarningsByManifest", - "getPhotoCapabilities", - "getPhotoSettings", - "getPlatformInfo", - "getPointAtLength", - "getPopup", - "getPorts", - "getPose", - "getPredictedEvents", - "getPreference", - "getPreferenceDefault", - "getPreferredCanvasFormat", - "getPresentationAttribute", - "getPreventDefault", - "getPrimaryService", - "getPrimaryServices", - "getProgramInfoLog", - "getProgramParameter", - "getPropertyCSSValue", - "getPropertyPriority", - "getPropertyShorthand", - "getPropertyType", - "getPropertyValue", - "getPrototypeOf", - "getPublicKey", - "getPublicKeyAlgorithm", - "getQuery", - "getQueryParameter", - "getRGBColorValue", - "getRandomValues", - "getRangeAt", - "getReader", - "getReceivers", - "getRectValue", - "getReflectionCubeMap", - "getRegistration", - "getRegistrations", - "getRemoteCandidates", - "getRemoteCertificates", - "getRemoteParameters", - "getRemoteStreams", - "getRenderbufferParameter", - "getResponseHeader", - "getRoot", - "getRootNode", - "getRotationOfChar", - "getSVGDocument", - "getSamplerParameter", - "getScreenCTM", - "getScreenDetails", - "getSeconds", - "getSelectedCandidatePair", - "getSelection", - "getSelf", - "getSenders", - "getService", - "getSetCookie", - "getSettings", - "getShaderInfoLog", - "getShaderParameter", - "getShaderPrecisionFormat", - "getShaderSource", - "getSignals", - "getSimpleDuration", - "getSiteIcons", - "getSources", - "getSpeculativeParserUrls", - "getStartPositionOfChar", - "getStartTime", - "getState", - "getStats", - "getStatusForPolicy", - "getStorageUpdates", - "getStreamById", - "getStringValue", - "getSubStringLength", - "getSubscription", - "getSubscriptions", - "getSupportedConstraints", - "getSupportedExtensions", - "getSupportedFormats", - "getSyncParameter", - "getSynchronizationSources", - "getTags", - "getTargetRanges", - "getTexParameter", - "getTextFormats", - "getTime", - "getTimezoneOffset", - "getTiming", - "getTitle", - "getTitlebarAreaRect", - "getTotalLength", - "getTrackById", - "getTracks", - "getTransceivers", - "getTransform", - "getTransformFeedbackVarying", - "getTransformToElement", - "getTransports", - "getType", - "getTypeMapping", - "getUILanguage", - "getURL", - "getUTCDate", - "getUTCDay", - "getUTCFullYear", - "getUTCHours", - "getUTCMilliseconds", - "getUTCMinutes", - "getUTCMonth", - "getUTCSeconds", - "getUint16", - "getUint32", - "getUint8", - "getUniform", - "getUniformBlockIndex", - "getUniformIndices", - "getUniformLocation", - "getUserInfo", - "getUserMedia", - "getUserSettings", - "getVRDisplays", - "getValues", - "getVarDate", - "getVariableValue", - "getVertexAttrib", - "getVertexAttribOffset", - "getVideoPlaybackQuality", - "getVideoTracks", - "getViewerPose", - "getViewport", - "getViews", - "getVoices", - "getWakeLockState", - "getWriter", - "getYear", - "getZoom", - "getZoomSettings", - "givenName", - "global", - "globalAlpha", - "globalCompositeOperation", - "globalPrivacyControl", - "globalThis", - "glyphOrientationHorizontal", - "glyphOrientationVertical", - "glyphRef", - "go", - "goBack", - "goForward", - "gpu", - "grabFrame", - "grad", - "gradientTransform", - "gradientUnits", - "grammars", - "green", - "grid", - "grid-area", - "grid-auto-columns", - "grid-auto-flow", - "grid-auto-rows", - "grid-column", - "grid-column-end", - "grid-column-gap", - "grid-column-start", - "grid-gap", - "grid-row", - "grid-row-end", - "grid-row-gap", - "grid-row-start", - "grid-template", - "grid-template-areas", - "grid-template-columns", - "grid-template-rows", - "gridArea", - "gridAutoColumns", - "gridAutoFlow", - "gridAutoRows", - "gridColumn", - "gridColumnEnd", - "gridColumnGap", - "gridColumnStart", - "gridGap", - "gridRow", - "gridRowEnd", - "gridRowGap", - "gridRowStart", - "gridTemplate", - "gridTemplateAreas", - "gridTemplateColumns", - "gridTemplateRows", - "gripSpace", - "group", - "groupBy", - "groupCollapsed", - "groupEnd", - "groupId", - "groups", - "grow", - "growable", - "guestProcessId", - "guestRenderFrameRoutingId", - "hadRecentInput", - "hand", - "handedness", - "hangingBaseline", - "hapticActuators", - "hardwareConcurrency", - "has", - "hasAttribute", - "hasAttributeNS", - "hasAttributes", - "hasBeenActive", - "hasChildNodes", - "hasComposition", - "hasDynamicOffset", - "hasEnrolledInstrument", - "hasExtension", - "hasExternalDisplay", - "hasFeature", - "hasFocus", - "hasIndices", - "hasInstance", - "hasLayout", - "hasOrientation", - "hasOwn", - "hasOwnProperty", - "hasPointerCapture", - "hasPosition", - "hasPrivateToken", - "hasReading", - "hasRedemptionRecord", - "hasRegExpGroups", - "hasStorageAccess", - "hasUAVisualTransition", - "hasUnpartitionedCookieAccess", - "hash", - "hashChange", - "head", - "headers", - "heading", - "height", - "hid", - "hidden", - "hide", - "hideFocus", - "hidePopover", - "high", - "highWaterMark", - "highlight", - "highlights", - "hint", - "hints", - "history", - "honorificPrefix", - "honorificSuffix", - "horizontalOverflow", - "host", - "hostCandidate", - "hostname", - "href", - "hrefTranslate", - "hreflang", - "hspace", - "html5TagCheckInerface", - "htmlFor", - "htmlText", - "httpEquiv", - "httpRequestStatusCode", - "hwTimestamp", - "hyphenate-character", - "hyphenateCharacter", - "hyphens", - "hypot", - "i18n", - "ic", - "iccId", - "iceConnectionState", - "iceGatheringState", - "iceTransport", - "icon", - "iconURL", - "id", - "identifier", - "identity", - "ideographicBaseline", - "idle", - "idpLoginUrl", - "ignoreBOM", - "ignoreCase", - "ignoreDepthValues", - "image", - "image-orientation", - "image-rendering", - "imageHeight", - "imageOrientation", - "imageRendering", - "imageSizes", - "imageSmoothingEnabled", - "imageSmoothingQuality", - "imageSrcset", - "imageWidth", - "images", - "ime-mode", - "imeMode", - "implementation", - "importExternalTexture", - "importKey", - "importNode", - "importStylesheet", - "imports", - "impp", - "imul", - "in", - "in1", - "in2", - "inBandMetadataTrackDispatchType", - "inIncognitoContext", - "inRange", - "includes", - "incognito", - "incomingBidirectionalStreams", - "incomingHighWaterMark", - "incomingMaxAge", - "incomingUnidirectionalStreams", - "incremental", - "indeterminate", - "index", - "indexNames", - "indexOf", - "indexedDB", - "indicate", - "indices", - "inert", - "inertiaDestinationX", - "inertiaDestinationY", - "info", - "inherits", - "init", - "initAnimationEvent", - "initBeforeLoadEvent", - "initClipboardEvent", - "initCloseEvent", - "initCommandEvent", - "initCompositionEvent", - "initCustomEvent", - "initData", - "initDataType", - "initDeviceMotionEvent", - "initDeviceOrientationEvent", - "initDragEvent", - "initErrorEvent", - "initEvent", - "initFocusEvent", - "initGestureEvent", - "initHashChangeEvent", - "initKeyEvent", - "initKeyboardEvent", - "initMSManipulationEvent", - "initMessageEvent", - "initMouseEvent", - "initMouseScrollEvent", - "initMouseWheelEvent", - "initMutationEvent", - "initNSMouseEvent", - "initOverflowEvent", - "initPageEvent", - "initPageTransitionEvent", - "initPointerEvent", - "initPopStateEvent", - "initProgressEvent", - "initScrollAreaEvent", - "initSimpleGestureEvent", - "initStorageEvent", - "initTextEvent", - "initTimeEvent", - "initTouchEvent", - "initTransitionEvent", - "initUIEvent", - "initWebKitAnimationEvent", - "initWebKitTransitionEvent", - "initWebKitWheelEvent", - "initWheelEvent", - "initialTime", - "initialValue", - "initialize", - "initiatorType", - "inject", - "ink", - "inline-size", - "inlineSize", - "inlineVerticalFieldOfView", - "inner", - "innerHTML", - "innerHeight", - "innerText", - "innerWidth", - "input", - "inputBuffer", - "inputEncoding", - "inputMethod", - "inputMode", - "inputSource", - "inputSources", - "inputType", - "inputs", - "insertAdjacentElement", - "insertAdjacentHTML", - "insertAdjacentText", - "insertBefore", - "insertCell", - "insertDTMF", - "insertData", - "insertDebugMarker", - "insertItemBefore", - "insertNode", - "insertRow", - "insertRule", - "inset", - "inset-block", - "inset-block-end", - "inset-block-start", - "inset-inline", - "inset-inline-end", - "inset-inline-start", - "insetBlock", - "insetBlockEnd", - "insetBlockStart", - "insetInline", - "insetInlineEnd", - "insetInlineStart", - "install", - "installing", - "instanceRoot", - "instantiate", - "instantiateStreaming", - "instruments", - "int16", - "int32", - "int8", - "integrity", - "interactionId", - "interactionMode", - "intercept", - "interfaceClass", - "interfaceName", - "interfaceNumber", - "interfaceProtocol", - "interfaceSubclass", - "interfaces", - "interimResults", - "internalSubset", - "interpretation", - "intersection", - "intersectionRatio", - "intersectionRect", - "intersectsNode", - "interval", - "invalidIteratorState", - "invalidateFramebuffer", - "invalidateSubFramebuffer", - "inverse", - "invertSelf", - "invoker", - "invokerType", - "is", - "is2D", - "isActive", - "isAllowedFileSchemeAccess", - "isAllowedIncognitoAccess", - "isAlternate", - "isArray", - "isAutoSelected", - "isBingCurrentSearchDefault", - "isBuffer", - "isCandidateWindowVisible", - "isChar", - "isCollapsed", - "isComposing", - "isConcatSpreadable", - "isConditionalMediationAvailable", - "isConfigSupported", - "isConnected", - "isContentEditable", - "isContentHandlerRegistered", - "isContextLost", - "isDefaultNamespace", - "isDirectory", - "isDisabled", - "isDisjointFrom", - "isEnabled", - "isEqual", - "isEqualNode", - "isExtended", - "isExtensible", - "isExternalCTAP2SecurityKeySupported", - "isFallbackAdapter", - "isFile", - "isFinite", - "isFirstPersonObserver", - "isFramebuffer", - "isFrozen", - "isGenerator", - "isHTML", - "isHistoryNavigation", - "isId", - "isIdentity", - "isInjected", - "isInputPending", - "isInteger", - "isInternal", - "isIntersecting", - "isLockFree", - "isMap", - "isMultiLine", - "isNaN", - "isOpen", - "isPointInFill", - "isPointInPath", - "isPointInRange", - "isPointInStroke", - "isPrefAlternate", - "isPresenting", - "isPrimary", - "isProgram", - "isPropertyImplicit", - "isProtocolHandlerRegistered", - "isPrototypeOf", - "isQuery", - "isRawJSON", - "isRenderbuffer", - "isSafeInteger", - "isSameEntry", - "isSameNode", - "isSampler", - "isScript", - "isScriptURL", - "isSealed", - "isSecureContext", - "isSessionSupported", - "isShader", - "isSubsetOf", - "isSupersetOf", - "isSupported", - "isSync", - "isTextEdit", - "isTexture", - "isTransformFeedback", - "isTrusted", - "isTypeSupported", - "isUserVerifyingPlatformAuthenticatorAvailable", - "isVertexArray", - "isView", - "isVisible", - "isWellFormed", - "isochronousTransferIn", - "isochronousTransferOut", - "isolation", - "italics", - "item", - "itemId", - "itemProp", - "itemRef", - "itemScope", - "itemType", - "itemValue", - "items", - "iterateNext", - "iterationComposite", - "iterator", - "javaEnabled", - "jitterBufferTarget", - "jobTitle", - "join", - "joinAdInterestGroup", - "jointName", - "json", - "justify-content", - "justify-items", - "justify-self", - "justifyContent", - "justifyItems", - "justifySelf", - "k1", - "k2", - "k3", - "k4", - "kHz", - "keepalive", - "kernelMatrix", - "kernelUnitLengthX", - "kernelUnitLengthY", - "kerning", - "key", - "keyCode", - "keyFor", - "keyIdentifier", - "keyLightEnabled", - "keyLocation", - "keyPath", - "keyStatuses", - "keySystem", - "keyText", - "keyUsage", - "keyboard", - "keys", - "keytype", - "kind", - "knee", - "knownSources", - "label", - "labels", - "lang", - "language", - "languages", - "largeArcFlag", - "lastChild", - "lastElementChild", - "lastError", - "lastEventId", - "lastIndex", - "lastIndexOf", - "lastInputTime", - "lastMatch", - "lastMessageSubject", - "lastMessageType", - "lastModified", - "lastModifiedDate", - "lastPage", - "lastParen", - "lastState", - "lastStyleSheetSet", - "latency", - "latitude", - "launchQueue", - "layerName", - "layerX", - "layerY", - "layout", - "layoutFlow", - "layoutGrid", - "layoutGridChar", - "layoutGridLine", - "layoutGridMode", - "layoutGridType", - "lbound", - "leaveAdInterestGroup", - "left", - "leftContext", - "leftDegrees", - "leftMargin", - "leftProjectionMatrix", - "leftViewMatrix", - "length", - "lengthAdjust", - "lengthComputable", - "letter-spacing", - "letterSpacing", - "level", - "lh", - "lighting-color", - "lightingColor", - "limitingConeAngle", - "limits", - "line", - "line-break", - "line-height", - "lineAlign", - "lineBreak", - "lineCap", - "lineDashOffset", - "lineGapOverride", - "lineHeight", - "lineJoin", - "lineNum", - "lineNumber", - "linePos", - "lineTo", - "lineWidth", - "linearAcceleration", - "linearRampToValueAtTime", - "linearVelocity", - "lineno", - "lines", - "link", - "linkColor", - "linkProgram", - "links", - "list", - "list-style", - "list-style-image", - "list-style-position", - "list-style-type", - "listStyle", - "listStyleImage", - "listStylePosition", - "listStyleType", - "listener", - "listeners", - "load", - "loadEventEnd", - "loadEventStart", - "loadOp", - "loadTime", - "loadTimes", - "loaded", - "loading", - "localDescription", - "localName", - "localService", - "localStorage", - "locale", - "localeCompare", - "location", - "locationbar", - "lock", - "locked", - "lockedFile", - "locks", - "lodMaxClamp", - "lodMinClamp", - "log", - "log10", - "log1p", - "log2", - "logicalXDPI", - "logicalYDPI", - "login", - "loglevel", - "longDesc", - "longitude", - "lookupNamespaceURI", - "lookupPrefix", - "loop", - "loopEnd", - "loopStart", - "looping", - "lost", - "low", - "lower", - "lowerBound", - "lowerOpen", - "lowsrc", - "lvb", - "lvh", - "lvi", - "lvmax", - "lvmin", - "lvw", - "m11", - "m12", - "m13", - "m14", - "m21", - "m22", - "m23", - "m24", - "m31", - "m32", - "m33", - "m34", - "m41", - "m42", - "m43", - "m44", - "magFilter", - "makeXRCompatible", - "managed", - "management", - "manifest", - "manufacturer", - "manufacturerName", - "map", - "mapAsync", - "mapState", - "mappedAtCreation", - "mapping", - "margin", - "margin-block", - "margin-block-end", - "margin-block-start", - "margin-bottom", - "margin-inline", - "margin-inline-end", - "margin-inline-start", - "margin-left", - "margin-right", - "margin-top", - "marginBlock", - "marginBlockEnd", - "marginBlockStart", - "marginBottom", - "marginHeight", - "marginInline", - "marginInlineEnd", - "marginInlineStart", - "marginLeft", - "marginRight", - "marginTop", - "marginWidth", - "mark", - "marker", - "marker-end", - "marker-mid", - "marker-offset", - "marker-start", - "markerEnd", - "markerHeight", - "markerMid", - "markerOffset", - "markerStart", - "markerUnits", - "markerWidth", - "marks", - "mask", - "mask-clip", - "mask-composite", - "mask-image", - "mask-mode", - "mask-origin", - "mask-position", - "mask-position-x", - "mask-position-y", - "mask-repeat", - "mask-size", - "mask-type", - "maskClip", - "maskComposite", - "maskContentUnits", - "maskImage", - "maskMode", - "maskOrigin", - "maskPosition", - "maskPositionX", - "maskPositionY", - "maskRepeat", - "maskSize", - "maskType", - "maskUnits", - "match", - "matchAll", - "matchMedia", - "matchMedium", - "matchPatterns", - "matches", - "math-depth", - "math-style", - "mathDepth", - "mathStyle", - "matrix", - "matrixTransform", - "max", - "max-block-size", - "max-height", - "max-inline-size", - "max-width", - "maxActions", - "maxAlternatives", - "maxAnisotropy", - "maxBindGroups", - "maxBindGroupsPlusVertexBuffers", - "maxBindingsPerBindGroup", - "maxBlockSize", - "maxBufferSize", - "maxByteLength", - "maxChannelCount", - "maxChannels", - "maxColorAttachmentBytesPerSample", - "maxColorAttachments", - "maxComputeInvocationsPerWorkgroup", - "maxComputeWorkgroupSizeX", - "maxComputeWorkgroupSizeY", - "maxComputeWorkgroupSizeZ", - "maxComputeWorkgroupStorageSize", - "maxComputeWorkgroupsPerDimension", - "maxConnectionsPerServer", - "maxDatagramSize", - "maxDecibels", - "maxDistance", - "maxDrawCount", - "maxDynamicStorageBuffersPerPipelineLayout", - "maxDynamicUniformBuffersPerPipelineLayout", - "maxHeight", - "maxInlineSize", - "maxInterStageShaderComponents", - "maxInterStageShaderVariables", - "maxLayers", - "maxLength", - "maxMessageSize", - "maxPacketLifeTime", - "maxRetransmits", - "maxSampledTexturesPerShaderStage", - "maxSamplersPerShaderStage", - "maxStorageBufferBindingSize", - "maxStorageBuffersPerShaderStage", - "maxStorageTexturesPerShaderStage", - "maxTextureArrayLayers", - "maxTextureDimension1D", - "maxTextureDimension2D", - "maxTextureDimension3D", - "maxTouchPoints", - "maxUniformBufferBindingSize", - "maxUniformBuffersPerShaderStage", - "maxValue", - "maxVertexAttributes", - "maxVertexBufferArrayStride", - "maxVertexBuffers", - "maxWidth", - "maximumLatency", - "measure", - "measureText", - "media", - "mediaCapabilities", - "mediaDevices", - "mediaElement", - "mediaGroup", - "mediaKeys", - "mediaSession", - "mediaStream", - "mediaText", - "meetOrSlice", - "memory", - "menubar", - "menus", - "menusChild", - "menusInternal", - "mergeAttributes", - "message", - "messageClass", - "messageHandlers", - "messageType", - "messages", - "metaKey", - "metadata", - "method", - "methodDetails", - "methodName", - "mid", - "mimeType", - "mimeTypes", - "min", - "min-block-size", - "min-height", - "min-inline-size", - "min-width", - "minBindingSize", - "minBlockSize", - "minDecibels", - "minFilter", - "minHeight", - "minInlineSize", - "minLength", - "minStorageBufferOffsetAlignment", - "minUniformBufferOffsetAlignment", - "minValue", - "minWidth", - "minimumLatency", - "mipLevel", - "mipLevelCount", - "mipmapFilter", - "miterLimit", - "mix-blend-mode", - "mixBlendMode", - "mm", - "mobile", - "mode", - "model", - "modify", - "module", - "mount", - "move", - "moveBy", - "moveEnd", - "moveFirst", - "moveFocusDown", - "moveFocusLeft", - "moveFocusRight", - "moveFocusUp", - "moveInSuccession", - "moveNext", - "moveRow", - "moveStart", - "moveTo", - "moveToBookmark", - "moveToElementText", - "moveToPoint", - "movementX", - "movementY", - "mozAdd", - "mozAnimationStartTime", - "mozAnon", - "mozApps", - "mozAudioCaptured", - "mozAudioChannelType", - "mozAutoplayEnabled", - "mozCancelAnimationFrame", - "mozCancelFullScreen", - "mozCancelRequestAnimationFrame", - "mozCaptureStream", - "mozCaptureStreamUntilEnded", - "mozClearDataAt", - "mozContact", - "mozContacts", - "mozCreateFileHandle", - "mozCurrentTransform", - "mozCurrentTransformInverse", - "mozCursor", - "mozDash", - "mozDashOffset", - "mozDecodedFrames", - "mozExitPointerLock", - "mozFillRule", - "mozFragmentEnd", - "mozFrameDelay", - "mozFullScreen", - "mozFullScreenElement", - "mozFullScreenEnabled", - "mozGetAll", - "mozGetAllKeys", - "mozGetAsFile", - "mozGetDataAt", - "mozGetMetadata", - "mozGetUserMedia", - "mozHasAudio", - "mozHasItem", - "mozHidden", - "mozImageSmoothingEnabled", - "mozIndexedDB", - "mozInnerScreenX", - "mozInnerScreenY", - "mozInputSource", - "mozIsTextField", - "mozItem", - "mozItemCount", - "mozItems", - "mozLength", - "mozLockOrientation", - "mozMatchesSelector", - "mozMovementX", - "mozMovementY", - "mozOpaque", - "mozOrientation", - "mozPaintCount", - "mozPaintedFrames", - "mozParsedFrames", - "mozPay", - "mozPointerLockElement", - "mozPresentedFrames", - "mozPreservesPitch", - "mozPressure", - "mozPrintCallback", - "mozRTCIceCandidate", - "mozRTCPeerConnection", - "mozRTCSessionDescription", - "mozRemove", - "mozRequestAnimationFrame", - "mozRequestFullScreen", - "mozRequestPointerLock", - "mozSetDataAt", - "mozSetImageElement", - "mozSourceNode", - "mozSrcObject", - "mozSystem", - "mozTCPSocket", - "mozTextStyle", - "mozTypesAt", - "mozUnlockOrientation", - "mozUserCancelled", - "mozVisibilityState", - "ms", - "msAnimation", - "msAnimationDelay", - "msAnimationDirection", - "msAnimationDuration", - "msAnimationFillMode", - "msAnimationIterationCount", - "msAnimationName", - "msAnimationPlayState", - "msAnimationStartTime", - "msAnimationTimingFunction", - "msBackfaceVisibility", - "msBlockProgression", - "msCSSOMElementFloatMetrics", - "msCaching", - "msCachingEnabled", - "msCancelRequestAnimationFrame", - "msCapsLockWarningOff", - "msClearImmediate", - "msClose", - "msContentZoomChaining", - "msContentZoomFactor", - "msContentZoomLimit", - "msContentZoomLimitMax", - "msContentZoomLimitMin", - "msContentZoomSnap", - "msContentZoomSnapPoints", - "msContentZoomSnapType", - "msContentZooming", - "msConvertURL", - "msCrypto", - "msDoNotTrack", - "msElementsFromPoint", - "msElementsFromRect", - "msExitFullscreen", - "msExtendedCode", - "msFillRule", - "msFirstPaint", - "msFlex", - "msFlexAlign", - "msFlexDirection", - "msFlexFlow", - "msFlexItemAlign", - "msFlexLinePack", - "msFlexNegative", - "msFlexOrder", - "msFlexPack", - "msFlexPositive", - "msFlexPreferredSize", - "msFlexWrap", - "msFlowFrom", - "msFlowInto", - "msFontFeatureSettings", - "msFullscreenElement", - "msFullscreenEnabled", - "msGetInputContext", - "msGetRegionContent", - "msGetUntransformedBounds", - "msGraphicsTrustStatus", - "msGridColumn", - "msGridColumnAlign", - "msGridColumnSpan", - "msGridColumns", - "msGridRow", - "msGridRowAlign", - "msGridRowSpan", - "msGridRows", - "msHidden", - "msHighContrastAdjust", - "msHyphenateLimitChars", - "msHyphenateLimitLines", - "msHyphenateLimitZone", - "msHyphens", - "msImageSmoothingEnabled", - "msImeAlign", - "msIndexedDB", - "msInterpolationMode", - "msIsStaticHTML", - "msKeySystem", - "msKeys", - "msLaunchUri", - "msLockOrientation", - "msManipulationViewsEnabled", - "msMatchMedia", - "msMatchesSelector", - "msMaxTouchPoints", - "msOrientation", - "msOverflowStyle", - "msPerspective", - "msPerspectiveOrigin", - "msPlayToDisabled", - "msPlayToPreferredSourceUri", - "msPlayToPrimary", - "msPointerEnabled", - "msRegionOverflow", - "msReleasePointerCapture", - "msRequestAnimationFrame", - "msRequestFullscreen", - "msSaveBlob", - "msSaveOrOpenBlob", - "msScrollChaining", - "msScrollLimit", - "msScrollLimitXMax", - "msScrollLimitXMin", - "msScrollLimitYMax", - "msScrollLimitYMin", - "msScrollRails", - "msScrollSnapPointsX", - "msScrollSnapPointsY", - "msScrollSnapType", - "msScrollSnapX", - "msScrollSnapY", - "msScrollTranslation", - "msSetImmediate", - "msSetMediaKeys", - "msSetPointerCapture", - "msTextCombineHorizontal", - "msTextSizeAdjust", - "msToBlob", - "msTouchAction", - "msTouchSelect", - "msTraceAsyncCallbackCompleted", - "msTraceAsyncCallbackStarting", - "msTraceAsyncOperationCompleted", - "msTraceAsyncOperationStarting", - "msTransform", - "msTransformOrigin", - "msTransformStyle", - "msTransition", - "msTransitionDelay", - "msTransitionDuration", - "msTransitionProperty", - "msTransitionTimingFunction", - "msUnlockOrientation", - "msUpdateAsyncCallbackRelation", - "msUserSelect", - "msVisibilityState", - "msWrapFlow", - "msWrapMargin", - "msWrapThrough", - "msWriteProfilerMark", - "msZoom", - "msZoomTo", - "mt", - "mul", - "multiEntry", - "multiSelectionObj", - "multiline", - "multiple", - "multiply", - "multiplySelf", - "multisample", - "multisampled", - "mutableFile", - "muted", - "n", - "nacl_arch", - "name", - "nameList", - "nameProp", - "namedItem", - "namedRecordset", - "names", - "namespaceURI", - "namespaces", - "nativeApplication", - "nativeMap", - "nativeObjectCreate", - "nativeSet", - "nativeWeakMap", - "naturalHeight", - "naturalWidth", - "navigate", - "navigation", - "navigationMode", - "navigationPreload", - "navigationStart", - "navigationType", - "navigator", - "near", - "nearestViewportElement", - "negative", - "negotiated", - "netscape", - "networkState", - "networkStatus", - "newScale", - "newState", - "newTranslate", - "newURL", - "newValue", - "newValueSpecifiedUnits", - "newVersion", - "newhome", - "next", - "nextElementSibling", - "nextHopProtocol", - "nextNode", - "nextPage", - "nextSibling", - "nickname", - "noHref", - "noModule", - "noResize", - "noShade", - "noValidate", - "noWrap", - "node", - "nodeName", - "nodeType", - "nodeValue", - "nonce", - "normDepthBufferFromNormView", - "normalize", - "normalizedPathSegList", - "normandyAddonStudy", - "notRestoredReasons", - "notationName", - "notations", - "note", - "noteGrainOn", - "noteOff", - "noteOn", - "notifications", - "notify", - "now", - "npnNegotiatedProtocol", - "numOctaves", - "number", - "numberOfChannels", - "numberOfFrames", - "numberOfInputs", - "numberOfItems", - "numberOfOutputs", - "numberValue", - "oMatchesSelector", - "object", - "object-fit", - "object-position", - "objectFit", - "objectPosition", - "objectStore", - "objectStoreNames", - "objectType", - "observe", - "occlusionQuerySet", - "of", - "off", - "offscreenBuffering", - "offset", - "offset-anchor", - "offset-distance", - "offset-path", - "offset-position", - "offset-rotate", - "offsetAnchor", - "offsetDistance", - "offsetHeight", - "offsetLeft", - "offsetNode", - "offsetParent", - "offsetPath", - "offsetPosition", - "offsetRotate", - "offsetTop", - "offsetWidth", - "offsetX", - "offsetY", - "ok", - "oldState", - "oldURL", - "oldValue", - "oldVersion", - "olderShadowRoot", - "omnibox", - "on", - "onActivated", - "onAdded", - "onAttached", - "onBoundsChanged", - "onBrowserUpdateAvailable", - "onClicked", - "onCommitFiberRoot", - "onCommitFiberUnmount", - "onConnect", - "onConnectExternal", - "onConnectNative", - "onCreated", - "onDetached", - "onDisabled", - "onEnabled", - "onFocusChanged", - "onHighlighted", - "onInstalled", - "onLine", - "onMessage", - "onMessageExternal", - "onMoved", - "onPerformanceWarning", - "onPostCommitFiberRoot", - "onRemoved", - "onReplaced", - "onRestartRequired", - "onStartup", - "onSubmittedWorkDone", - "onSuspend", - "onSuspendCanceled", - "onUninstalled", - "onUpdateAvailable", - "onUpdated", - "onUserScriptConnect", - "onUserScriptMessage", - "onUserSettingsChanged", - "onZoomChange", - "onabort", - "onabsolutedeviceorientation", - "onactivate", - "onactive", - "onaddsourcebuffer", - "onaddstream", - "onaddtrack", - "onafterprint", - "onafterscriptexecute", - "onafterupdate", - "onanimationcancel", - "onanimationend", - "onanimationiteration", - "onanimationstart", - "onappinstalled", - "onaudioend", - "onaudioprocess", - "onaudiostart", - "onautocomplete", - "onautocompleteerror", - "onauxclick", - "onbeforeactivate", - "onbeforecopy", - "onbeforecut", - "onbeforedeactivate", - "onbeforeeditfocus", - "onbeforeinput", - "onbeforeinstallprompt", - "onbeforematch", - "onbeforepaste", - "onbeforeprint", - "onbeforescriptexecute", - "onbeforetoggle", - "onbeforeunload", - "onbeforeupdate", - "onbeforexrselect", - "onbegin", - "onblocked", - "onblur", - "onbounce", - "onboundary", - "onbufferedamountlow", - "oncached", - "oncancel", - "oncandidatewindowhide", - "oncandidatewindowshow", - "oncandidatewindowupdate", - "oncanplay", - "oncanplaythrough", - "oncapturehandlechange", - "once", - "oncellchange", - "onchange", - "oncharacterboundsupdate", - "oncharacteristicvaluechanged", - "onchargingchange", - "onchargingtimechange", - "onchecking", - "onclick", - "onclose", - "onclosing", - "oncompassneedscalibration", - "oncomplete", - "oncompositionend", - "oncompositionstart", - "onconnect", - "onconnecting", - "onconnectionavailable", - "onconnectionstatechange", - "oncontentvisibilityautostatechange", - "oncontextlost", - "oncontextmenu", - "oncontextrestored", - "oncontrollerchange", - "oncontrolselect", - "oncopy", - "oncuechange", - "oncurrententrychange", - "oncurrentscreenchange", - "oncut", - "ondataavailable", - "ondatachannel", - "ondatasetchanged", - "ondatasetcomplete", - "ondblclick", - "ondeactivate", - "ondequeue", - "ondevicechange", - "ondevicelight", - "ondevicemotion", - "ondeviceorientation", - "ondeviceorientationabsolute", - "ondeviceproximity", - "ondischargingtimechange", - "ondisconnect", - "ondisplay", - "ondispose", - "ondownloading", - "ondrag", - "ondragend", - "ondragenter", - "ondragexit", - "ondragleave", - "ondragover", - "ondragstart", - "ondrop", - "ondurationchange", - "onemptied", - "onencrypted", - "onend", - "onended", - "onenter", - "onenterpictureinpicture", - "onerror", - "onerrorupdate", - "onexit", - "onfencedtreeclick", - "onfilterchange", - "onfinish", - "onfocus", - "onfocusin", - "onfocusout", - "onformdata", - "onfreeze", - "onfullscreenchange", - "onfullscreenerror", - "ongamepadconnected", - "ongamepaddisconnected", - "ongatheringstatechange", - "ongattserverdisconnected", - "ongeometrychange", - "ongesturechange", - "ongestureend", - "ongesturestart", - "ongotpointercapture", - "onhashchange", - "onhelp", - "onicecandidate", - "onicecandidateerror", - "oniceconnectionstatechange", - "onicegatheringstatechange", - "oninactive", - "oninput", - "oninputreport", - "oninputsourceschange", - "oninvalid", - "onkeydown", - "onkeypress", - "onkeystatuseschange", - "onkeyup", - "onlanguagechange", - "onlayoutcomplete", - "onleavepictureinpicture", - "onlevelchange", - "onload", - "onloadT", - "onloadeddata", - "onloadedmetadata", - "onloadend", - "onloading", - "onloadingdone", - "onloadingerror", - "onloadstart", - "onlosecapture", - "onlostpointercapture", - "only", - "onmanagedconfigurationchange", - "onmark", - "onmessage", - "onmessageerror", - "onmidimessage", - "onmousedown", - "onmouseenter", - "onmouseleave", - "onmousemove", - "onmouseout", - "onmouseover", - "onmouseup", - "onmousewheel", - "onmove", - "onmoveend", - "onmovestart", - "onmozfullscreenchange", - "onmozfullscreenerror", - "onmozorientationchange", - "onmozpointerlockchange", - "onmozpointerlockerror", - "onmscontentzoom", - "onmsfullscreenchange", - "onmsfullscreenerror", - "onmsgesturechange", - "onmsgesturedoubletap", - "onmsgestureend", - "onmsgesturehold", - "onmsgesturestart", - "onmsgesturetap", - "onmsgotpointercapture", - "onmsinertiastart", - "onmslostpointercapture", - "onmsmanipulationstatechanged", - "onmsneedkey", - "onmsorientationchange", - "onmspointercancel", - "onmspointerdown", - "onmspointerenter", - "onmspointerhover", - "onmspointerleave", - "onmspointermove", - "onmspointerout", - "onmspointerover", - "onmspointerup", - "onmssitemodejumplistitemremoved", - "onmsthumbnailclick", - "onmute", - "onnavigate", - "onnavigateerror", - "onnavigatesuccess", - "onnegotiationneeded", - "onnomatch", - "onnoupdate", - "onobsolete", - "onoffline", - "ononline", - "onopen", - "onorientationchange", - "onpagechange", - "onpagehide", - "onpagereveal", - "onpageshow", - "onpageswap", - "onpaste", - "onpause", - "onpayerdetailchange", - "onpaymentmethodchange", - "onplay", - "onplaying", - "onpluginstreamstart", - "onpointercancel", - "onpointerdown", - "onpointerenter", - "onpointerleave", - "onpointerlockchange", - "onpointerlockerror", - "onpointermove", - "onpointerout", - "onpointerover", - "onpointerrawupdate", - "onpointerup", - "onpopstate", - "onprerenderingchange", - "onprioritychange", - "onprocessorerror", - "onprogress", - "onpropertychange", - "onratechange", - "onreading", - "onreadystatechange", - "onreflectionchange", - "onrejectionhandled", - "onrelease", - "onremove", - "onremovesourcebuffer", - "onremovestream", - "onremovetrack", - "onrepeat", - "onreset", - "onresize", - "onresizeend", - "onresizestart", - "onresourcetimingbufferfull", - "onresult", - "onresume", - "onrowenter", - "onrowexit", - "onrowsdelete", - "onrowsinserted", - "onscreenschange", - "onscroll", - "onscrollend", - "onscrollsnapchange", - "onscrollsnapchanging", - "onsearch", - "onsecuritypolicyviolation", - "onseeked", - "onseeking", - "onselect", - "onselectedcandidatepairchange", - "onselectend", - "onselectionchange", - "onselectstart", - "onshippingaddresschange", - "onshippingoptionchange", - "onshow", - "onsignalingstatechange", - "onsinkchange", - "onslotchange", - "onsoundend", - "onsoundstart", - "onsourceclose", - "onsourceclosed", - "onsourceended", - "onsourceopen", - "onspeechend", - "onspeechstart", - "onsqueeze", - "onsqueezeend", - "onsqueezestart", - "onstalled", - "onstart", - "onstatechange", - "onstop", - "onstorage", - "onstoragecommit", - "onsubmit", - "onsuccess", - "onsuspend", - "onterminate", - "ontextformatupdate", - "ontextinput", - "ontextupdate", - "ontimeout", - "ontimeupdate", - "ontoggle", - "ontonechange", - "ontouchcancel", - "ontouchend", - "ontouchmove", - "ontouchstart", - "ontrack", - "ontransitioncancel", - "ontransitionend", - "ontransitionrun", - "ontransitionstart", - "onuncapturederror", - "onunhandledrejection", - "onunload", - "onunmute", - "onupdate", - "onupdateend", - "onupdatefound", - "onupdateready", - "onupdatestart", - "onupgradeneeded", - "onuserproximity", - "onversionchange", - "onvisibilitychange", - "onvoiceschanged", - "onvolumechange", - "onvrdisplayactivate", - "onvrdisplayconnect", - "onvrdisplaydeactivate", - "onvrdisplaydisconnect", - "onvrdisplaypresentchange", - "onwaiting", - "onwaitingforkey", - "onwarning", - "onwebkitanimationend", - "onwebkitanimationiteration", - "onwebkitanimationstart", - "onwebkitcurrentplaybacktargetiswirelesschanged", - "onwebkitfullscreenchange", - "onwebkitfullscreenerror", - "onwebkitkeyadded", - "onwebkitkeyerror", - "onwebkitkeymessage", - "onwebkitneedkey", - "onwebkitorientationchange", - "onwebkitplaybacktargetavailabilitychanged", - "onwebkitpointerlockchange", - "onwebkitpointerlockerror", - "onwebkitresourcetimingbufferfull", - "onwebkittransitionend", - "onwheel", - "onzoom", - "opacity", - "open", - "openCursor", - "openDatabase", - "openKeyCursor", - "openOptionsPage", - "openOrClosedShadowRoot", - "openPopup", - "opened", - "opener", - "opera", - "operation", - "operationType", - "operator", - "opr", - "optimum", - "options", - "or", - "order", - "orderX", - "orderY", - "ordered", - "org", - "organization", - "orient", - "orientAngle", - "orientType", - "orientation", - "orientationX", - "orientationY", - "orientationZ", - "origin", - "originAgentCluster", - "originalPolicy", - "originalTarget", - "orphans", - "os", - "oscpu", - "outerHTML", - "outerHeight", - "outerText", - "outerWidth", - "outgoingHighWaterMark", - "outgoingMaxAge", - "outline", - "outline-color", - "outline-offset", - "outline-style", - "outline-width", - "outlineColor", - "outlineOffset", - "outlineStyle", - "outlineWidth", - "outputBuffer", - "outputChannelCount", - "outputLatency", - "outputs", - "overflow", - "overflow-anchor", - "overflow-block", - "overflow-clip-margin", - "overflow-inline", - "overflow-wrap", - "overflow-x", - "overflow-y", - "overflowAnchor", - "overflowBlock", - "overflowClipMargin", - "overflowInline", - "overflowWrap", - "overflowX", - "overflowY", - "overlaysContent", - "overrideColors", - "overrideMimeType", - "oversample", - "overscroll-behavior", - "overscroll-behavior-block", - "overscroll-behavior-inline", - "overscroll-behavior-x", - "overscroll-behavior-y", - "overscrollBehavior", - "overscrollBehaviorBlock", - "overscrollBehaviorInline", - "overscrollBehaviorX", - "overscrollBehaviorY", - "ownKeys", - "ownerDocument", - "ownerElement", - "ownerNode", - "ownerRule", - "ownerSVGElement", - "owningElement", - "p1", - "p2", - "p3", - "p4", - "packetSize", - "packets", - "pad", - "padEnd", - "padStart", - "padding", - "padding-block", - "padding-block-end", - "padding-block-start", - "padding-bottom", - "padding-inline", - "padding-inline-end", - "padding-inline-start", - "padding-left", - "padding-right", - "padding-top", - "paddingBlock", - "paddingBlockEnd", - "paddingBlockStart", - "paddingBottom", - "paddingInline", - "paddingInlineEnd", - "paddingInlineStart", - "paddingLeft", - "paddingRight", - "paddingTop", - "page", - "page-break-after", - "page-break-before", - "page-break-inside", - "page-orientation", - "pageAction", - "pageBreakAfter", - "pageBreakBefore", - "pageBreakInside", - "pageCount", - "pageLeft", - "pageOrientation", - "pageT", - "pageTop", - "pageX", - "pageXOffset", - "pageY", - "pageYOffset", - "pages", - "paint-order", - "paintOrder", - "paintRequests", - "paintType", - "paintWorklet", - "palette", - "pan", - "panningModel", - "parameterData", - "parameters", - "parent", - "parentElement", - "parentNode", - "parentRule", - "parentStyleSheet", - "parentTextEdit", - "parentWindow", - "parse", - "parseAll", - "parseCreationOptionsFromJSON", - "parseFloat", - "parseFromString", - "parseHTMLUnsafe", - "parseInt", - "parseRequestOptionsFromJSON", - "part", - "participants", - "passOp", - "passive", - "password", - "pasteHTML", - "path", - "pathLength", - "pathSegList", - "pathSegType", - "pathSegTypeAsLetter", - "pathname", - "pattern", - "patternContentUnits", - "patternMismatch", - "patternTransform", - "patternUnits", - "pause", - "pauseAnimations", - "pauseDuration", - "pauseOnExit", - "pauseProfilers", - "pauseTransformFeedback", - "paused", - "payerEmail", - "payerName", - "payerPhone", - "paymentManager", - "pc", - "pdfViewerEnabled", - "peerIdentity", - "pending", - "pendingLocalDescription", - "pendingRemoteDescription", - "percent", - "performance", - "periodicSync", - "permission", - "permissionState", - "permissions", - "persist", - "persisted", - "persistentDeviceId", - "personalbar", - "perspective", - "perspective-origin", - "perspectiveOrigin", - "phone", - "phoneticFamilyName", - "phoneticGivenName", - "photo", - "pictureInPictureChild", - "pictureInPictureElement", - "pictureInPictureEnabled", - "pictureInPictureWindow", - "ping", - "pipeThrough", - "pipeTo", - "pitch", - "pixelBottom", - "pixelDepth", - "pixelHeight", - "pixelLeft", - "pixelRight", - "pixelStorei", - "pixelTop", - "pixelUnitToMillimeterX", - "pixelUnitToMillimeterY", - "pixelWidth", - "pkcs11", - "place-content", - "place-items", - "place-self", - "placeContent", - "placeItems", - "placeSelf", - "placeholder", - "platform", - "platformVersion", - "platforms", - "play", - "playEffect", - "playState", - "playbackRate", - "playbackState", - "playbackTime", - "played", - "playoutDelayHint", - "playsInline", - "plugins", - "pluginspage", - "pname", - "pointer-events", - "pointerBeforeReferenceNode", - "pointerEnabled", - "pointerEvents", - "pointerId", - "pointerLockElement", - "pointerType", - "points", - "pointsAtX", - "pointsAtY", - "pointsAtZ", - "polygonOffset", - "pop", - "popDebugGroup", - "popErrorScope", - "popover", - "popoverTargetAction", - "popoverTargetElement", - "populateMatrix", - "popupWindowFeatures", - "popupWindowName", - "popupWindowURI", - "port", - "port1", - "port2", - "ports", - "posBottom", - "posHeight", - "posLeft", - "posRight", - "posTop", - "posWidth", - "pose", - "position", - "position-anchor", - "position-area", - "positionAlign", - "positionAnchor", - "positionArea", - "positionX", - "positionY", - "positionZ", - "postError", - "postMessage", - "postTask", - "postalCode", - "poster", - "postscriptName", - "pow", - "powerEfficient", - "powerOff", - "powerPreference", - "preMultiplySelf", - "precision", - "preferredReflectionFormat", - "preferredStyleSheetSet", - "preferredStylesheetSet", - "prefix", - "preload", - "premultipliedAlpha", - "prepend", - "prerendering", - "presentation", - "presentationArea", - "presentationStyle", - "preserveAlpha", - "preserveAspectRatio", - "preserveAspectRatioString", - "preservesPitch", - "pressed", - "pressure", - "prevValue", - "preventDefault", - "preventExtensions", - "preventSilentAccess", - "previousElementSibling", - "previousNode", - "previousPage", - "previousPriority", - "previousRect", - "previousScale", - "previousSibling", - "previousTranslate", - "primaries", - "primaryKey", - "primaryLightDirection", - "primaryLightIntensity", - "primitive", - "primitiveType", - "primitiveUnits", - "principals", - "print", - "print-color-adjust", - "printColorAdjust", - "printPreview", - "priority", - "privacy", - "privateKey", - "privateToken", - "probablySupportsContext", - "probeSpace", - "process", - "processIceMessage", - "processingEnd", - "processingStart", - "processorOptions", - "product", - "productId", - "productName", - "productSub", - "profile", - "profileEnd", - "profiles", - "projectionMatrix", - "promise", - "prompt", - "properties", - "propertyIsEnumerable", - "propertyName", - "protectedAudience", - "protocol", - "protocolLong", - "prototype", - "provider", - "proxy", - "pseudoClass", - "pseudoElement", - "pt", - "publicId", - "publicKey", - "published", - "pulse", - "push", - "pushDebugGroup", - "pushErrorScope", - "pushManager", - "pushNotification", - "pushState", - "put", - "putImageData", - "px", - "quadraticCurveTo", - "qualifier", - "quaternion", - "query", - "queryCommandEnabled", - "queryCommandIndeterm", - "queryCommandState", - "queryCommandSupported", - "queryCommandText", - "queryCommandValue", - "queryFeatureSupport", - "queryLocalFonts", - "queryPermission", - "querySelector", - "querySelectorAll", - "querySet", - "queue", - "queueMicrotask", - "quote", - "quotes", - "r", - "r1", - "r2", - "race", - "rad", - "radiogroup", - "radius", - "radiusX", - "radiusY", - "random", - "randomUUID", - "range", - "rangeCount", - "rangeEnd", - "rangeMax", - "rangeMin", - "rangeOffset", - "rangeOverflow", - "rangeParent", - "rangeStart", - "rangeUnderflow", - "rate", - "ratio", - "raw", - "rawId", - "rawJSON", - "rawValueToMeters", - "rcap", - "rch", - "read", - "readAsArrayBuffer", - "readAsBinaryString", - "readAsBlob", - "readAsDataURL", - "readAsText", - "readBuffer", - "readEntries", - "readOnly", - "readPixels", - "readReportRequested", - "readText", - "readValue", - "readable", - "ready", - "readyState", - "reason", - "reasons", - "reboot", - "receiveFeatureReport", - "receivedAlert", - "receiver", - "receivers", - "recipient", - "recommendedViewportScale", - "reconnect", - "recordNumber", - "recordsAvailable", - "recordset", - "rect", - "red", - "redEyeReduction", - "redirect", - "redirectCount", - "redirectEnd", - "redirectStart", - "redirected", - "reduce", - "reduceRight", - "reduction", - "refDistance", - "refX", - "refY", - "referenceNode", - "referenceSpace", - "referrer", - "referrerPolicy", - "refresh", - "region", - "regionAnchorX", - "regionAnchorY", - "regionId", - "regions", - "register", - "registerContentHandler", - "registerElement", - "registerInternalModuleStart", - "registerInternalModuleStop", - "registerProperty", - "registerProtocolHandler", - "reject", - "rel", - "relList", - "relatedAddress", - "relatedNode", - "relatedPort", - "relatedTarget", - "relayProtocol", - "release", - "releaseCapture", - "releaseEvents", - "releaseInterface", - "releaseLock", - "releasePointerCapture", - "releaseShaderCompiler", - "released", - "reliability", - "reliable", - "reliableWrite", - "reload", - "rem", - "remainingSpace", - "remote", - "remoteDescription", - "remove", - "removeAllRanges", - "removeAttribute", - "removeAttributeNS", - "removeAttributeNode", - "removeBehavior", - "removeChild", - "removeCue", - "removeEntry", - "removeEventListener", - "removeFilter", - "removeImport", - "removeItem", - "removeListener", - "removeNamedItem", - "removeNamedItemNS", - "removeNode", - "removeParameter", - "removeProperty", - "removeRange", - "removeRegion", - "removeRule", - "removeSiteSpecificTrackingException", - "removeSourceBuffer", - "removeStream", - "removeTrack", - "removeVariable", - "removeWakeLockListener", - "removeWebWideTrackingException", - "removed", - "removedNodes", - "renderBlockingStatus", - "renderHeight", - "renderStart", - "renderState", - "renderTime", - "renderWidth", - "renderbufferStorage", - "renderbufferStorageMultisample", - "renderedBuffer", - "rendererInterfaces", - "renderers", - "renderingMode", - "renotify", - "repeat", - "repetitionCount", - "replace", - "replaceAdjacentText", - "replaceAll", - "replaceChild", - "replaceChildren", - "replaceData", - "replaceId", - "replaceItem", - "replaceNode", - "replaceState", - "replaceSync", - "replaceTrack", - "replaceWholeText", - "replaceWith", - "reportError", - "reportEvent", - "reportId", - "reportValidity", - "request", - "requestAdapter", - "requestAdapterInfo", - "requestAnimationFrame", - "requestAutocomplete", - "requestClose", - "requestData", - "requestDevice", - "requestFrame", - "requestFullscreen", - "requestHitTestSource", - "requestHitTestSourceForTransientInput", - "requestId", - "requestIdleCallback", - "requestLightProbe", - "requestMIDIAccess", - "requestMediaKeySystemAccess", - "requestPermission", - "requestPictureInPicture", - "requestPointerLock", - "requestPort", - "requestPresent", - "requestPresenter", - "requestReferenceSpace", - "requestSession", - "requestStart", - "requestStorageAccess", - "requestStorageAccessFor", - "requestSubmit", - "requestTime", - "requestUpdateCheck", - "requestVideoFrameCallback", - "requestViewportScale", - "requestWindow", - "requestingWindow", - "requireInteraction", - "required", - "requiredExtensions", - "requiredFeatures", - "requiredLimits", - "reset", - "resetLatency", - "resetPose", - "resetTransform", - "resizable", - "resize", - "resizeBy", - "resizeTo", - "resolve", - "resolveQuerySet", - "resolveTarget", - "resource", - "respond", - "respondWithNewView", - "response", - "responseBody", - "responseEnd", - "responseReady", - "responseStart", - "responseStatus", - "responseText", - "responseType", - "responseURL", - "responseXML", - "restart", - "restartAfterDelay", - "restartIce", - "restore", - "result", - "resultIndex", - "resultType", - "results", - "resume", - "resumeProfilers", - "resumeTransformFeedback", - "retry", - "returnValue", - "rev", - "reverse", - "reversed", - "revocable", - "revokeObjectURL", - "rex", - "rgbColor", - "ric", - "right", - "rightContext", - "rightDegrees", - "rightMargin", - "rightProjectionMatrix", - "rightViewMatrix", - "rlh", - "role", - "rolloffFactor", - "root", - "rootBounds", - "rootElement", - "rootMargin", - "rotate", - "rotateAxisAngle", - "rotateAxisAngleSelf", - "rotateFromVector", - "rotateFromVectorSelf", - "rotateSelf", - "rotation", - "rotationAngle", - "rotationRate", - "round", - "roundRect", - "row-gap", - "rowGap", - "rowIndex", - "rowSpan", - "rows", - "rowsPerImage", - "rtcpTransport", - "rtt", - "ruby-align", - "ruby-position", - "rubyAlign", - "rubyOverhang", - "rubyPosition", - "rules", - "run", - "runAdAuction", - "runtime", - "runtimeStyle", - "rx", - "ry", - "s", - "safari", - "sameDocument", - "sample", - "sampleCount", - "sampleCoverage", - "sampleInterval", - "sampleRate", - "sampleType", - "sampler", - "samplerParameterf", - "samplerParameteri", - "sandbox", - "save", - "saveAsPDF", - "saveData", - "scale", - "scale3d", - "scale3dSelf", - "scaleNonUniform", - "scaleNonUniformSelf", - "scaleSelf", - "scheduler", - "scheduling", - "scheme", - "scissor", - "scope", - "scopeName", - "scoped", - "screen", - "screenBrightness", - "screenEnabled", - "screenLeft", - "screenPixelToMillimeterX", - "screenPixelToMillimeterY", - "screenState", - "screenTop", - "screenX", - "screenY", - "screens", - "scriptURL", - "scripting", - "scripts", - "scroll", - "scroll-behavior", - "scroll-margin", - "scroll-margin-block", - "scroll-margin-block-end", - "scroll-margin-block-start", - "scroll-margin-bottom", - "scroll-margin-inline", - "scroll-margin-inline-end", - "scroll-margin-inline-start", - "scroll-margin-left", - "scroll-margin-right", - "scroll-margin-top", - "scroll-padding", - "scroll-padding-block", - "scroll-padding-block-end", - "scroll-padding-block-start", - "scroll-padding-bottom", - "scroll-padding-inline", - "scroll-padding-inline-end", - "scroll-padding-inline-start", - "scroll-padding-left", - "scroll-padding-right", - "scroll-padding-top", - "scroll-snap-align", - "scroll-snap-stop", - "scroll-snap-type", - "scrollAmount", - "scrollBehavior", - "scrollBy", - "scrollByLines", - "scrollByPages", - "scrollDelay", - "scrollHeight", - "scrollIntoView", - "scrollIntoViewIfNeeded", - "scrollLeft", - "scrollLeftMax", - "scrollMargin", - "scrollMarginBlock", - "scrollMarginBlockEnd", - "scrollMarginBlockStart", - "scrollMarginBottom", - "scrollMarginInline", - "scrollMarginInlineEnd", - "scrollMarginInlineStart", - "scrollMarginLeft", - "scrollMarginRight", - "scrollMarginTop", - "scrollMaxX", - "scrollMaxY", - "scrollPadding", - "scrollPaddingBlock", - "scrollPaddingBlockEnd", - "scrollPaddingBlockStart", - "scrollPaddingBottom", - "scrollPaddingInline", - "scrollPaddingInlineEnd", - "scrollPaddingInlineStart", - "scrollPaddingLeft", - "scrollPaddingRight", - "scrollPaddingTop", - "scrollRestoration", - "scrollSnapAlign", - "scrollSnapStop", - "scrollSnapType", - "scrollTo", - "scrollTop", - "scrollTopMax", - "scrollWidth", - "scrollX", - "scrollY", - "scrollbar-color", - "scrollbar-gutter", - "scrollbar-width", - "scrollbar3dLightColor", - "scrollbarArrowColor", - "scrollbarBaseColor", - "scrollbarColor", - "scrollbarDarkShadowColor", - "scrollbarFaceColor", - "scrollbarGutter", - "scrollbarHighlightColor", - "scrollbarShadowColor", - "scrollbarTrackColor", - "scrollbarWidth", - "scrollbars", - "scrolling", - "scrollingElement", - "sctp", - "sctpCauseCode", - "sdp", - "sdpLineNumber", - "sdpMLineIndex", - "sdpMid", - "seal", - "search", - "searchBox", - "searchBoxJavaBridge_", - "searchParams", - "sectionRowIndex", - "secureConnectionStart", - "security", - "seed", - "seek", - "seekToNextFrame", - "seekable", - "seeking", - "select", - "selectAllChildren", - "selectAlternateInterface", - "selectAudioOutput", - "selectConfiguration", - "selectNode", - "selectNodeContents", - "selectNodes", - "selectSingleNode", - "selectSubString", - "selectURL", - "selected", - "selectedIndex", - "selectedOptions", - "selectedStyleSheetSet", - "selectedStylesheetSet", - "selectedTrack", - "selection", - "selectionDirection", - "selectionEnd", - "selectionStart", - "selector", - "selectorText", - "self", - "send", - "sendAsBinary", - "sendBeacon", - "sendFeatureReport", - "sendMessage", - "sendNativeMessage", - "sendOrder", - "sendReport", - "sender", - "sentAlert", - "sentTimestamp", - "separator", - "serial", - "serialNumber", - "serializable", - "serializeToString", - "serverTiming", - "service", - "serviceWorker", - "session", - "sessionId", - "sessionStorage", - "sessions", - "set", - "setActionHandler", - "setActive", - "setAlpha", - "setAppBadge", - "setAttribute", - "setAttributeNS", - "setAttributeNode", - "setAttributeNodeNS", - "setAttributionReporting", - "setBadgeBackgroundColor", - "setBadgeText", - "setBadgeTextColor", - "setBaseAndExtent", - "setBigInt64", - "setBigUint64", - "setBindGroup", - "setBingCurrentSearchDefault", - "setBlendConstant", - "setCameraActive", - "setCapture", - "setCaptureHandleConfig", - "setCodecPreferences", - "setColor", - "setCompositeOperation", - "setConfiguration", - "setConsumer", - "setCurrentTime", - "setCustomValidity", - "setData", - "setDate", - "setDragImage", - "setEnabled", - "setEnd", - "setEndAfter", - "setEndBefore", - "setEndPoint", - "setExpires", - "setFillColor", - "setFilterRes", - "setFloat16", - "setFloat32", - "setFloat64", - "setFloatValue", - "setFocusBehavior", - "setFormValue", - "setFromBase64", - "setFromHex", - "setFullYear", - "setHTMLUnsafe", - "setHeaderExtensionsToNegotiate", - "setHeaderValue", - "setHours", - "setIcon", - "setIdentityProvider", - "setImmediate", - "setIndexBuffer", - "setInt16", - "setInt32", - "setInt8", - "setInterval", - "setItem", - "setKeyframes", - "setLineCap", - "setLineDash", - "setLineJoin", - "setLineWidth", - "setLiveSeekableRange", - "setLocalDescription", - "setMatrix", - "setMatrixValue", - "setMediaKeys", - "setMicrophoneActive", - "setMilliseconds", - "setMinutes", - "setMiterLimit", - "setMonth", - "setNamedItem", - "setNamedItemNS", - "setNonUserCodeExceptions", - "setOrientToAngle", - "setOrientToAuto", - "setOrientation", - "setOverrideHistoryNavigationMode", - "setPaint", - "setParameter", - "setParameters", - "setPeriodicWave", - "setPipeline", - "setPointerCapture", - "setPopup", - "setPosition", - "setPositionState", - "setPreference", - "setPriority", - "setPrivateToken", - "setProperty", - "setPrototypeOf", - "setRGBColor", - "setRGBColorICCColor", - "setRadius", - "setRangeText", - "setRemoteDescription", - "setReportEventDataForAutomaticBeacons", - "setRequestHeader", - "setResizable", - "setResourceTimingBufferSize", - "setRotate", - "setScale", - "setScissorRect", - "setSeconds", - "setSelectionRange", - "setServerCertificate", - "setShadow", - "setSharedStorageContext", - "setSignals", - "setSinkId", - "setSkewX", - "setSkewY", - "setStart", - "setStartAfter", - "setStartBefore", - "setStatus", - "setStdDeviation", - "setStencilReference", - "setStreams", - "setStrictMode", - "setStringValue", - "setStrokeColor", - "setSuggestResult", - "setTargetAtTime", - "setTargetValueAtTime", - "setTime", - "setTimeout", - "setTitle", - "setTransform", - "setTranslate", - "setUTCDate", - "setUTCFullYear", - "setUTCHours", - "setUTCMilliseconds", - "setUTCMinutes", - "setUTCMonth", - "setUTCSeconds", - "setUint16", - "setUint32", - "setUint8", - "setUninstallURL", - "setUpdateUrlData", - "setUri", - "setValidity", - "setValueAtTime", - "setValueCurveAtTime", - "setVariable", - "setVelocity", - "setVersion", - "setVertexBuffer", - "setViewport", - "setYear", - "setZoom", - "setZoomSettings", - "settingName", - "settingValue", - "sex", - "shaderLocation", - "shaderSource", - "shadowBlur", - "shadowColor", - "shadowOffsetX", - "shadowOffsetY", - "shadowRoot", - "shadowRootClonable", - "shadowRootDelegatesFocus", - "shadowRootMode", - "shadowRootSerializable", - "shape", - "shape-image-threshold", - "shape-margin", - "shape-outside", - "shape-rendering", - "shapeImageThreshold", - "shapeMargin", - "shapeOutside", - "shapeRendering", - "share", - "sharedStorage", - "sharedStorageWritable", - "sheet", - "shift", - "shiftKey", - "shiftLeft", - "shippingAddress", - "shippingOption", - "shippingType", - "show", - "showDirectoryPicker", - "showHelp", - "showModal", - "showModalDialog", - "showModelessDialog", - "showNotification", - "showOpenFilePicker", - "showPicker", - "showPopover", - "showSaveFilePicker", - "sidebar", - "sidebarAction", - "sign", - "signal", - "signalingState", - "signature", - "silent", - "sin", - "singleNodeValue", - "sinh", - "sinkId", - "sittingToStandingTransform", - "size", - "sizeAdjust", - "sizeToContent", - "sizeX", - "sizeZ", - "sizes", - "skewX", - "skewXSelf", - "skewY", - "skewYSelf", - "skipTransition", - "skipped", - "slice", - "slope", - "slot", - "slotAssignment", - "small", - "smil", - "smooth", - "smoothingTimeConstant", - "snapTargetBlock", - "snapTargetInline", - "snapToLines", - "snapshotItem", - "snapshotLength", - "some", - "sort", - "sortingCode", - "source", - "sourceBuffer", - "sourceBuffers", - "sourceCapabilities", - "sourceCharPosition", - "sourceFile", - "sourceFunctionName", - "sourceIndex", - "sourceMap", - "sourceURL", - "sources", - "spacing", - "span", - "speak", - "speakAs", - "speaking", - "species", - "specified", - "specularConstant", - "specularExponent", - "speechSynthesis", - "speed", - "speedOfSound", - "spellcheck", - "sphericalHarmonicsCoefficients", - "splice", - "split", - "splitText", - "spreadMethod", - "sqrt", - "src", - "srcElement", - "srcFactor", - "srcFilter", - "srcObject", - "srcUrn", - "srcdoc", - "srclang", - "srcset", - "stack", - "stackTraceLimit", - "stacktrace", - "stageParameters", - "standalone", - "standby", - "start", - "startContainer", - "startE", - "startIce", - "startLoadTime", - "startMessages", - "startNotifications", - "startOffset", - "startProfiling", - "startRendering", - "startShark", - "startTime", - "startViewTransition", - "startsWith", - "state", - "states", - "stats", - "status", - "statusCode", - "statusMessage", - "statusText", - "statusbar", - "stdDeviationX", - "stdDeviationY", - "stencilBack", - "stencilClearValue", - "stencilFront", - "stencilFunc", - "stencilFuncSeparate", - "stencilLoadOp", - "stencilMask", - "stencilMaskSeparate", - "stencilOp", - "stencilOpSeparate", - "stencilReadMask", - "stencilReadOnly", - "stencilStoreOp", - "stencilWriteMask", - "step", - "stepDown", - "stepMismatch", - "stepMode", - "stepUp", - "sticky", - "stitchTiles", - "stop", - "stop-color", - "stop-opacity", - "stopColor", - "stopImmediatePropagation", - "stopNotifications", - "stopOpacity", - "stopProfiling", - "stopPropagation", - "stopShark", - "stopped", - "storage", - "storageArea", - "storageBuckets", - "storageName", - "storageStatus", - "storageTexture", - "store", - "storeOp", - "storeSiteSpecificTrackingException", - "storeWebWideTrackingException", - "stpVersion", - "stream", - "streamErrorCode", - "streams", - "stretch", - "strike", - "string", - "stringValue", - "stringify", - "stripIndexFormat", - "stroke", - "stroke-dasharray", - "stroke-dashoffset", - "stroke-linecap", - "stroke-linejoin", - "stroke-miterlimit", - "stroke-opacity", - "stroke-width", - "strokeDasharray", - "strokeDashoffset", - "strokeLinecap", - "strokeLinejoin", - "strokeMiterlimit", - "strokeOpacity", - "strokeRect", - "strokeStyle", - "strokeText", - "strokeWidth", - "structuredClone", - "style", - "styleAndLayoutStart", - "styleFloat", - "styleMap", - "styleMedia", - "styleSheet", - "styleSheetSets", - "styleSheets", - "sub", - "subarray", - "subject", - "submit", - "submitFrame", - "submitter", - "subscribe", - "substr", - "substring", - "substringData", - "subtle", - "subtree", - "suffix", - "suffixes", - "summary", - "sup", - "supported", - "supportedContentEncodings", - "supportedEntryTypes", - "supportedValuesOf", - "supports", - "supportsFiber", - "supportsSession", - "supportsText", - "surfaceScale", - "surroundContents", - "suspend", - "suspendRedraw", - "svb", - "svh", - "svi", - "svmax", - "svmin", - "svw", - "swapCache", - "swapNode", - "sweepFlag", - "symbols", - "symmetricDifference", - "sync", - "syntax", - "sysexEnabled", - "system", - "systemCode", - "systemId", - "systemLanguage", - "systemXDPI", - "systemYDPI", - "tBodies", - "tFoot", - "tHead", - "tab", - "tab-size", - "tabId", - "tabIds", - "tabIndex", - "tabSize", - "table", - "table-layout", - "tableLayout", - "tableValues", - "tabs", - "tag", - "tagName", - "tagUrn", - "tags", - "taintEnabled", - "take", - "takePhoto", - "takeRecords", - "tan", - "tangentialPressure", - "tanh", - "target", - "targetAddressSpace", - "targetElement", - "targetRayMode", - "targetRaySpace", - "targetTouches", - "targetURL", - "targetX", - "targetY", - "targets", - "tcpType", - "tee", - "tel", - "telemetry", - "terminate", - "test", - "texImage2D", - "texImage3D", - "texParameterf", - "texParameteri", - "texStorage2D", - "texStorage3D", - "texSubImage2D", - "texSubImage3D", - "text", - "text-align", - "text-align-last", - "text-anchor", - "text-combine-upright", - "text-decoration", - "text-decoration-color", - "text-decoration-line", - "text-decoration-skip-ink", - "text-decoration-style", - "text-decoration-thickness", - "text-emphasis", - "text-emphasis-color", - "text-emphasis-position", - "text-emphasis-style", - "text-indent", - "text-justify", - "text-orientation", - "text-overflow", - "text-rendering", - "text-shadow", - "text-transform", - "text-underline-offset", - "text-underline-position", - "text-wrap", - "text-wrap-mode", - "text-wrap-style", - "textAlign", - "textAlignLast", - "textAnchor", - "textAutospace", - "textBaseline", - "textCombineUpright", - "textContent", - "textDecoration", - "textDecorationBlink", - "textDecorationColor", - "textDecorationLine", - "textDecorationLineThrough", - "textDecorationNone", - "textDecorationOverline", - "textDecorationSkipInk", - "textDecorationStyle", - "textDecorationThickness", - "textDecorationUnderline", - "textEmphasis", - "textEmphasisColor", - "textEmphasisPosition", - "textEmphasisStyle", - "textIndent", - "textJustify", - "textJustifyTrim", - "textKashida", - "textKashidaSpace", - "textLength", - "textOrientation", - "textOverflow", - "textRendering", - "textShadow", - "textTracks", - "textTransform", - "textUnderlineOffset", - "textUnderlinePosition", - "textWrap", - "textWrapMode", - "textWrapStyle", - "texture", - "theme", - "then", - "threadId", - "threshold", - "thresholds", - "throwIfAborted", - "tiltX", - "tiltY", - "time", - "timeEnd", - "timeLog", - "timeOrigin", - "timeRemaining", - "timeStamp", - "timecode", - "timeline", - "timelineTime", - "timeout", - "timestamp", - "timestampOffset", - "timestampWrites", - "timing", - "title", - "titlebarAreaRect", - "tlsChannelId", - "to", - "toArray", - "toBase64", - "toBlob", - "toDataURL", - "toDateString", - "toElement", - "toExponential", - "toFixed", - "toFloat32Array", - "toFloat64Array", - "toGMTString", - "toHex", - "toISOString", - "toJSON", - "toLocaleDateString", - "toLocaleFormat", - "toLocaleLowerCase", - "toLocaleString", - "toLocaleTimeString", - "toLocaleUpperCase", - "toLowerCase", - "toMatrix", - "toMethod", - "toPrecision", - "toPrimitive", - "toReversed", - "toSdp", - "toSorted", - "toSource", - "toSpliced", - "toStaticHTML", - "toString", - "toStringTag", - "toSum", - "toTimeString", - "toUTCString", - "toUpperCase", - "toWellFormed", - "toggle", - "toggleAttribute", - "toggleLongPressEnabled", - "togglePopover", - "toggleReaderMode", - "token", - "tone", - "toneBuffer", - "tooLong", - "tooShort", - "toolbar", - "top", - "topMargin", - "topSites", - "topology", - "total", - "totalFrameDelay", - "totalFrames", - "totalFramesDuration", - "totalVideoFrames", - "touch-action", - "touchAction", - "touched", - "touches", - "trace", - "track", - "trackVisibility", - "trackedAnchors", - "tracks", - "tran", - "transaction", - "transactions", - "transceiver", - "transfer", - "transferControlToOffscreen", - "transferFromImageBitmap", - "transferImageBitmap", - "transferIn", - "transferOut", - "transferSize", - "transferToFixedLength", - "transferToImageBitmap", - "transform", - "transform-box", - "transform-origin", - "transform-style", - "transformBox", - "transformFeedbackVaryings", - "transformOrigin", - "transformPoint", - "transformString", - "transformStyle", - "transformToDocument", - "transformToFragment", - "transition", - "transition-behavior", - "transition-delay", - "transition-duration", - "transition-property", - "transition-timing-function", - "transitionBehavior", - "transitionDelay", - "transitionDuration", - "transitionProperty", - "transitionTimingFunction", - "translate", - "translateSelf", - "translationX", - "translationY", - "transport", - "traverseTo", - "trim", - "trimEnd", - "trimLeft", - "trimRight", - "trimStart", - "trueSpeed", - "trunc", - "truncate", - "trustedTypes", - "try", - "turn", - "twist", - "type", - "typeDetail", - "typeMismatch", - "typeMustMatch", - "types", - "u2f", - "ubound", - "uint16", - "uint32", - "uint8", - "uint8Clamped", - "unadjustedMovement", - "unclippedDepth", - "unconfigure", - "undefined", - "underlineStyle", - "underlineThickness", - "unescape", - "uneval", - "ungroup", - "unicode", - "unicode-bidi", - "unicodeBidi", - "unicodeRange", - "unicodeSets", - "uniform1f", - "uniform1fv", - "uniform1i", - "uniform1iv", - "uniform1ui", - "uniform1uiv", - "uniform2f", - "uniform2fv", - "uniform2i", - "uniform2iv", - "uniform2ui", - "uniform2uiv", - "uniform3f", - "uniform3fv", - "uniform3i", - "uniform3iv", - "uniform3ui", - "uniform3uiv", - "uniform4f", - "uniform4fv", - "uniform4i", - "uniform4iv", - "uniform4ui", - "uniform4uiv", - "uniformBlockBinding", - "uniformMatrix2fv", - "uniformMatrix2x3fv", - "uniformMatrix2x4fv", - "uniformMatrix3fv", - "uniformMatrix3x2fv", - "uniformMatrix3x4fv", - "uniformMatrix4fv", - "uniformMatrix4x2fv", - "uniformMatrix4x3fv", - "uninstallSelf", - "union", - "unique", - "uniqueID", - "uniqueNumber", - "unit", - "unitType", - "units", - "unloadEventEnd", - "unloadEventStart", - "unlock", - "unmap", - "unmount", - "unobserve", - "unpackColorSpace", - "unpause", - "unpauseAnimations", - "unreadCount", - "unregister", - "unregisterContentHandler", - "unregisterProtocolHandler", - "unscopables", - "unselectable", - "unshift", - "unsubscribe", - "unsuspendRedraw", - "unsuspendRedrawAll", - "unwatch", - "unwrapKey", - "upDegrees", - "upX", - "upY", - "upZ", - "update", - "updateAdInterestGroups", - "updateCallbackDone", - "updateCharacterBounds", - "updateCommands", - "updateControlBounds", - "updateCurrentEntry", - "updateIce", - "updateInkTrailStartPoint", - "updateInterval", - "updatePlaybackRate", - "updateRangeEnd", - "updateRangeStart", - "updateRenderState", - "updateSelection", - "updateSelectionBounds", - "updateSettings", - "updateText", - "updateTiming", - "updateViaCache", - "updateWith", - "updated", - "updating", - "upgrade", - "upload", - "uploadTotal", - "uploaded", - "upper", - "upperBound", - "upperOpen", - "uri", - "url", - "urn", - "urns", - "usage", - "usages", - "usb", - "usbVersionMajor", - "usbVersionMinor", - "usbVersionSubminor", - "useCurrentView", - "useMap", - "useProgram", - "usedSpace", - "user-select", - "userActivation", - "userAgent", - "userAgentData", - "userChoice", - "userHandle", - "userHint", - "userInitiated", - "userLanguage", - "userSelect", - "userState", - "userVisibleOnly", - "username", - "usernameFragment", - "utterance", - "uuid", - "v8BreakIterator", - "vAlign", - "vLink", - "valid", - "validate", - "validateProgram", - "validationMessage", - "validity", - "value", - "valueAsDate", - "valueAsNumber", - "valueAsString", - "valueInSpecifiedUnits", - "valueMissing", - "valueOf", - "valueText", - "valueType", - "values", - "variable", - "variant", - "variationSettings", - "vb", - "vector-effect", - "vectorEffect", - "velocityAngular", - "velocityExpansion", - "velocityX", - "velocityY", - "vendor", - "vendorId", - "vendorSub", - "verify", - "version", - "vertex", - "vertexAttrib1f", - "vertexAttrib1fv", - "vertexAttrib2f", - "vertexAttrib2fv", - "vertexAttrib3f", - "vertexAttrib3fv", - "vertexAttrib4f", - "vertexAttrib4fv", - "vertexAttribDivisor", - "vertexAttribDivisorANGLE", - "vertexAttribI4i", - "vertexAttribI4iv", - "vertexAttribI4ui", - "vertexAttribI4uiv", - "vertexAttribIPointer", - "vertexAttribPointer", - "vertical", - "vertical-align", - "verticalAlign", - "verticalOverflow", - "vh", - "vi", - "vibrate", - "vibrationActuator", - "videoBitsPerSecond", - "videoHeight", - "videoTracks", - "videoWidth", - "view", - "viewBox", - "viewBoxString", - "viewDimension", - "viewFormats", - "viewTarget", - "viewTargetString", - "viewTransition", - "viewport", - "viewportAnchorX", - "viewportAnchorY", - "viewportElement", - "views", - "violatedDirective", - "virtualKeyboard", - "virtualKeyboardPolicy", - "visibility", - "visibilityState", - "visible", - "visibleRect", - "visualViewport", - "vlinkColor", - "vmax", - "vmin", - "voice", - "voiceURI", - "volume", - "vrml", - "vspace", - "vw", - "w", - "wait", - "waitAsync", - "waitSync", - "waiting", - "wake", - "wakeLock", - "wand", - "warmup", - "warn", - "wasAlternateProtocolAvailable", - "wasClean", - "wasDiscarded", - "wasFetchedViaSpdy", - "wasNpnNegotiated", - "watch", - "watchAvailability", - "watchPosition", - "webNavigation", - "webRequest", - "webdriver", - "webkitAddKey", - "webkitAlignContent", - "webkitAlignItems", - "webkitAlignSelf", - "webkitAnimation", - "webkitAnimationDelay", - "webkitAnimationDirection", - "webkitAnimationDuration", - "webkitAnimationFillMode", - "webkitAnimationIterationCount", - "webkitAnimationName", - "webkitAnimationPlayState", - "webkitAnimationTimingFunction", - "webkitAppearance", - "webkitAudioContext", - "webkitAudioDecodedByteCount", - "webkitAudioPannerNode", - "webkitBackfaceVisibility", - "webkitBackground", - "webkitBackgroundAttachment", - "webkitBackgroundClip", - "webkitBackgroundColor", - "webkitBackgroundImage", - "webkitBackgroundOrigin", - "webkitBackgroundPosition", - "webkitBackgroundPositionX", - "webkitBackgroundPositionY", - "webkitBackgroundRepeat", - "webkitBackgroundSize", - "webkitBackingStorePixelRatio", - "webkitBorderBottomLeftRadius", - "webkitBorderBottomRightRadius", - "webkitBorderImage", - "webkitBorderImageOutset", - "webkitBorderImageRepeat", - "webkitBorderImageSlice", - "webkitBorderImageSource", - "webkitBorderImageWidth", - "webkitBorderRadius", - "webkitBorderTopLeftRadius", - "webkitBorderTopRightRadius", - "webkitBoxAlign", - "webkitBoxDirection", - "webkitBoxFlex", - "webkitBoxOrdinalGroup", - "webkitBoxOrient", - "webkitBoxPack", - "webkitBoxShadow", - "webkitBoxSizing", - "webkitCancelAnimationFrame", - "webkitCancelFullScreen", - "webkitCancelKeyRequest", - "webkitCancelRequestAnimationFrame", - "webkitClearResourceTimings", - "webkitClipPath", - "webkitClosedCaptionsVisible", - "webkitConvertPointFromNodeToPage", - "webkitConvertPointFromPageToNode", - "webkitCreateShadowRoot", - "webkitCurrentFullScreenElement", - "webkitCurrentPlaybackTargetIsWireless", - "webkitDecodedFrameCount", - "webkitDirectionInvertedFromDevice", - "webkitDisplayingFullscreen", - "webkitDroppedFrameCount", - "webkitEnterFullScreen", - "webkitEnterFullscreen", - "webkitEntries", - "webkitExitFullScreen", - "webkitExitFullscreen", - "webkitExitPointerLock", - "webkitFilter", - "webkitFlex", - "webkitFlexBasis", - "webkitFlexDirection", - "webkitFlexFlow", - "webkitFlexGrow", - "webkitFlexShrink", - "webkitFlexWrap", - "webkitFontFeatureSettings", - "webkitFullScreenKeyboardInputAllowed", - "webkitFullscreenElement", - "webkitFullscreenEnabled", - "webkitGenerateKeyRequest", - "webkitGetAsEntry", - "webkitGetDatabaseNames", - "webkitGetEntries", - "webkitGetEntriesByName", - "webkitGetEntriesByType", - "webkitGetFlowByName", - "webkitGetGamepads", - "webkitGetImageDataHD", - "webkitGetNamedFlows", - "webkitGetRegionFlowRanges", - "webkitGetUserMedia", - "webkitHasClosedCaptions", - "webkitHidden", - "webkitIDBCursor", - "webkitIDBDatabase", - "webkitIDBDatabaseError", - "webkitIDBDatabaseException", - "webkitIDBFactory", - "webkitIDBIndex", - "webkitIDBKeyRange", - "webkitIDBObjectStore", - "webkitIDBRequest", - "webkitIDBTransaction", - "webkitImageSmoothingEnabled", - "webkitIndexedDB", - "webkitInitMessageEvent", - "webkitIsFullScreen", - "webkitJustifyContent", - "webkitKeys", - "webkitLineClamp", - "webkitLineDashOffset", - "webkitLockOrientation", - "webkitMask", - "webkitMaskClip", - "webkitMaskComposite", - "webkitMaskImage", - "webkitMaskOrigin", - "webkitMaskPosition", - "webkitMaskPositionX", - "webkitMaskPositionY", - "webkitMaskRepeat", - "webkitMaskSize", - "webkitMatchesSelector", - "webkitMediaStream", - "webkitNotifications", - "webkitOfflineAudioContext", - "webkitOrder", - "webkitOrientation", - "webkitPeerConnection00", - "webkitPersistentStorage", - "webkitPerspective", - "webkitPerspectiveOrigin", - "webkitPointerLockElement", - "webkitPostMessage", - "webkitPreservesPitch", - "webkitPutImageDataHD", - "webkitRTCPeerConnection", - "webkitRegionOverset", - "webkitRelativePath", - "webkitRequestAnimationFrame", - "webkitRequestFileSystem", - "webkitRequestFullScreen", - "webkitRequestFullscreen", - "webkitRequestPointerLock", - "webkitResolveLocalFileSystemURL", - "webkitSetMediaKeys", - "webkitSetResourceTimingBufferSize", - "webkitShadowRoot", - "webkitShowPlaybackTargetPicker", - "webkitSlice", - "webkitSpeechGrammar", - "webkitSpeechGrammarList", - "webkitSpeechRecognition", - "webkitSpeechRecognitionError", - "webkitSpeechRecognitionEvent", - "webkitStorageInfo", - "webkitSupportsFullscreen", - "webkitTemporaryStorage", - "webkitTextFillColor", - "webkitTextSecurity", - "webkitTextSizeAdjust", - "webkitTextStroke", - "webkitTextStrokeColor", - "webkitTextStrokeWidth", - "webkitTransform", - "webkitTransformOrigin", - "webkitTransformStyle", - "webkitTransition", - "webkitTransitionDelay", - "webkitTransitionDuration", - "webkitTransitionProperty", - "webkitTransitionTimingFunction", - "webkitURL", - "webkitUnlockOrientation", - "webkitUserSelect", - "webkitVideoDecodedByteCount", - "webkitVisibilityState", - "webkitWirelessVideoPlaybackDisabled", - "webkitdirectory", - "webkitdropzone", - "webstore", - "weight", - "wgslLanguageFeatures", - "whatToShow", - "wheelDelta", - "wheelDeltaX", - "wheelDeltaY", - "whenDefined", - "which", - "white-space", - "white-space-collapse", - "whiteSpace", - "whiteSpaceCollapse", - "wholeText", - "widows", - "width", - "will-change", - "willChange", - "willValidate", - "window", - "windowAttribution", - "windowControlsOverlay", - "windowId", - "windowIds", - "windows", - "with", - "withCredentials", - "withResolvers", - "word-break", - "word-spacing", - "word-wrap", - "wordBreak", - "wordSpacing", - "wordWrap", - "workerStart", - "worklet", - "wow64", - "wrap", - "wrapKey", - "writable", - "writableAuxiliaries", - "write", - "writeBuffer", - "writeMask", - "writeText", - "writeTexture", - "writeTimestamp", - "writeValue", - "writeValueWithResponse", - "writeValueWithoutResponse", - "writeWithoutResponse", - "writeln", - "writing-mode", - "writingMode", - "writingSuggestions", - "x", - "x1", - "x2", - "xChannelSelector", - "xmlEncoding", - "xmlStandalone", - "xmlVersion", - "xmlbase", - "xmllang", - "xmlspace", - "xor", - "xr", - "y", - "y1", - "y2", - "yChannelSelector", - "yandex", - "yield", - "z", - "z-index", - "zIndex", - "zoom", - "zoomAndPan", - "zoomRectScreen", -]; diff --git a/build_vtk_bundle/node_modules/terser/tools/exit.cjs b/build_vtk_bundle/node_modules/terser/tools/exit.cjs deleted file mode 100644 index 46a970be..00000000 --- a/build_vtk_bundle/node_modules/terser/tools/exit.cjs +++ /dev/null @@ -1,7 +0,0 @@ -// workaround for tty output truncation upon process.exit() -// https://github.com/nodejs/node/issues/6456 - -[process.stdout, process.stderr].forEach((s) => { - s && s.isTTY && s._handle && s._handle.setBlocking && - s._handle.setBlocking(true) -}); diff --git a/build_vtk_bundle/node_modules/terser/tools/props.html b/build_vtk_bundle/node_modules/terser/tools/props.html deleted file mode 100644 index fc2a4267..00000000 --- a/build_vtk_bundle/node_modules/terser/tools/props.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - diff --git a/build_vtk_bundle/node_modules/terser/tools/terser.d.ts b/build_vtk_bundle/node_modules/terser/tools/terser.d.ts deleted file mode 100644 index 799de080..00000000 --- a/build_vtk_bundle/node_modules/terser/tools/terser.d.ts +++ /dev/null @@ -1,217 +0,0 @@ -/// - -import { SectionedSourceMapInput, EncodedSourceMap, DecodedSourceMap } from '@jridgewell/source-map'; - -export type ECMA = 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020; - -export type ConsoleProperty = keyof typeof console; -type DropConsoleOption = boolean | ConsoleProperty[]; - -export interface ParseOptions { - bare_returns?: boolean; - /** @deprecated legacy option. Currently, all supported EcmaScript is valid to parse. */ - ecma?: ECMA; - html5_comments?: boolean; - shebang?: boolean; -} - -export interface CompressOptions { - arguments?: boolean; - arrows?: boolean; - booleans_as_integers?: boolean; - booleans?: boolean; - collapse_vars?: boolean; - comparisons?: boolean; - computed_props?: boolean; - conditionals?: boolean; - dead_code?: boolean; - defaults?: boolean; - directives?: boolean; - drop_console?: DropConsoleOption; - drop_debugger?: boolean; - ecma?: ECMA; - evaluate?: boolean; - expression?: boolean; - global_defs?: object; - hoist_funs?: boolean; - hoist_props?: boolean; - hoist_vars?: boolean; - ie8?: boolean; - if_return?: boolean; - inline?: boolean | InlineFunctions; - join_vars?: boolean; - keep_classnames?: boolean | RegExp; - keep_fargs?: boolean; - keep_fnames?: boolean | RegExp; - keep_infinity?: boolean; - lhs_constants?: boolean; - loops?: boolean; - module?: boolean; - negate_iife?: boolean; - passes?: number; - properties?: boolean; - pure_funcs?: string[]; - pure_new?: boolean; - pure_getters?: boolean | 'strict'; - reduce_funcs?: boolean; - reduce_vars?: boolean; - sequences?: boolean | number; - side_effects?: boolean; - switches?: boolean; - toplevel?: boolean; - top_retain?: null | string | string[] | RegExp; - typeofs?: boolean; - unsafe_arrows?: boolean; - unsafe?: boolean; - unsafe_comps?: boolean; - unsafe_Function?: boolean; - unsafe_math?: boolean; - unsafe_symbols?: boolean; - unsafe_methods?: boolean; - unsafe_proto?: boolean; - unsafe_regexp?: boolean; - unsafe_undefined?: boolean; - unused?: boolean; -} - -export enum InlineFunctions { - Disabled = 0, - SimpleFunctions = 1, - WithArguments = 2, - WithArgumentsAndVariables = 3 -} - -export interface MangleOptions { - eval?: boolean; - keep_classnames?: boolean | RegExp; - keep_fnames?: boolean | RegExp; - module?: boolean; - nth_identifier?: SimpleIdentifierMangler | WeightedIdentifierMangler; - properties?: boolean | ManglePropertiesOptions; - reserved?: string[]; - safari10?: boolean; - toplevel?: boolean; -} - -/** - * An identifier mangler for which the output is invariant with respect to the source code. - */ -export interface SimpleIdentifierMangler { - /** - * Obtains the nth most favored (usually shortest) identifier to rename a variable to. - * The mangler will increment n and retry until the return value is not in use in scope, and is not a reserved word. - * This function is expected to be stable; Evaluating get(n) === get(n) should always return true. - * @param n The ordinal of the identifier. - */ - get(n: number): string; -} - -/** - * An identifier mangler that leverages character frequency analysis to determine identifier precedence. - */ -export interface WeightedIdentifierMangler extends SimpleIdentifierMangler { - /** - * Modifies the internal weighting of the input characters by the specified delta. - * Will be invoked on the entire printed AST, and then deduct mangleable identifiers. - * @param chars The characters to modify the weighting of. - * @param delta The numeric weight to add to the characters. - */ - consider(chars: string, delta: number): number; - /** - * Resets character weights. - */ - reset(): void; - /** - * Sorts identifiers by character frequency, in preparation for calls to get(n). - */ - sort(): void; -} - -export interface ManglePropertiesOptions { - builtins?: boolean; - debug?: boolean; - keep_quoted?: boolean | 'strict'; - nth_identifier?: SimpleIdentifierMangler | WeightedIdentifierMangler; - regex?: RegExp | string; - reserved?: string[]; -} - -export interface FormatOptions { - ascii_only?: boolean; - /** @deprecated Not implemented anymore */ - beautify?: boolean; - braces?: boolean; - comments?: boolean | 'all' | 'some' | RegExp | ( (node: any, comment: { - value: string, - type: 'comment1' | 'comment2' | 'comment3' | 'comment4', - pos: number, - line: number, - col: number, - }) => boolean ); - ecma?: ECMA; - ie8?: boolean; - keep_numbers?: boolean; - indent_level?: number; - indent_start?: number; - inline_script?: boolean; - keep_quoted_props?: boolean; - max_line_len?: number | false; - preamble?: string; - preserve_annotations?: boolean; - quote_keys?: boolean; - quote_style?: OutputQuoteStyle; - safari10?: boolean; - semicolons?: boolean; - shebang?: boolean; - shorthand?: boolean; - source_map?: SourceMapOptions; - webkit?: boolean; - width?: number; - wrap_iife?: boolean; - wrap_func_args?: boolean; -} - -export enum OutputQuoteStyle { - PreferDouble = 0, - AlwaysSingle = 1, - AlwaysDouble = 2, - AlwaysOriginal = 3 -} - -export interface MinifyOptions { - compress?: boolean | CompressOptions; - ecma?: ECMA; - enclose?: boolean | string; - ie8?: boolean; - keep_classnames?: boolean | RegExp; - keep_fnames?: boolean | RegExp; - mangle?: boolean | MangleOptions; - module?: boolean; - nameCache?: object; - format?: FormatOptions; - /** @deprecated */ - output?: FormatOptions; - parse?: ParseOptions; - safari10?: boolean; - sourceMap?: boolean | SourceMapOptions; - toplevel?: boolean; -} - -export interface MinifyOutput { - code?: string; - map?: EncodedSourceMap | string; - decoded_map?: DecodedSourceMap | null; -} - -export interface SourceMapOptions { - /** Source map object, 'inline' or source map file content */ - content?: SectionedSourceMapInput | string; - includeSources?: boolean; - filename?: string; - root?: string; - asObject?: boolean; - url?: string | 'inline'; -} - -export function minify(files: string | string[] | { [file: string]: string }, options?: MinifyOptions): Promise; -export function minify_sync(files: string | string[] | { [file: string]: string }, options?: MinifyOptions): MinifyOutput; diff --git a/build_vtk_bundle/node_modules/undici-types/LICENSE b/build_vtk_bundle/node_modules/undici-types/LICENSE deleted file mode 100644 index e7323bb5..00000000 --- a/build_vtk_bundle/node_modules/undici-types/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) Matteo Collina and Undici contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/undici-types/README.md b/build_vtk_bundle/node_modules/undici-types/README.md deleted file mode 100644 index 20a721c4..00000000 --- a/build_vtk_bundle/node_modules/undici-types/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# undici-types - -This package is a dual-publish of the [undici](https://www.npmjs.com/package/undici) library types. The `undici` package **still contains types**. This package is for users who _only_ need undici types (such as for `@types/node`). It is published alongside every release of `undici`, so you can always use the same version. - -- [GitHub nodejs/undici](https://github.com/nodejs/undici) -- [Undici Documentation](https://undici.nodejs.org/#/) diff --git a/build_vtk_bundle/node_modules/undici-types/agent.d.ts b/build_vtk_bundle/node_modules/undici-types/agent.d.ts deleted file mode 100644 index 4bb3512c..00000000 --- a/build_vtk_bundle/node_modules/undici-types/agent.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { URL } from 'url' -import Pool from './pool' -import Dispatcher from './dispatcher' -import TClientStats from './client-stats' -import TPoolStats from './pool-stats' - -export default Agent - -declare class Agent extends Dispatcher { - constructor (opts?: Agent.Options) - /** `true` after `dispatcher.close()` has been called. */ - closed: boolean - /** `true` after `dispatcher.destroyed()` has been called or `dispatcher.close()` has been called and the dispatcher shutdown has completed. */ - destroyed: boolean - /** Dispatches a request. */ - dispatch (options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean - /** Aggregate stats for a Agent by origin. */ - readonly stats: Record -} - -declare namespace Agent { - export interface Options extends Pool.Options { - /** Default: `(origin, opts) => new Pool(origin, opts)`. */ - factory?(origin: string | URL, opts: Object): Dispatcher; - - interceptors?: { Agent?: readonly Dispatcher.DispatchInterceptor[] } & Pool.Options['interceptors'] - maxOrigins?: number - } - - export interface DispatchOptions extends Dispatcher.DispatchOptions { - } -} diff --git a/build_vtk_bundle/node_modules/undici-types/api.d.ts b/build_vtk_bundle/node_modules/undici-types/api.d.ts deleted file mode 100644 index e58d08f6..00000000 --- a/build_vtk_bundle/node_modules/undici-types/api.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { URL, UrlObject } from 'url' -import { Duplex } from 'stream' -import Dispatcher from './dispatcher' - -/** Performs an HTTP request. */ -declare function request ( - url: string | URL | UrlObject, - options?: { dispatcher?: Dispatcher } & Omit, 'origin' | 'path' | 'method'> & Partial>, -): Promise> - -/** A faster version of `request`. */ -declare function stream ( - url: string | URL | UrlObject, - options: { dispatcher?: Dispatcher } & Omit, 'origin' | 'path'>, - factory: Dispatcher.StreamFactory -): Promise> - -/** For easy use with `stream.pipeline`. */ -declare function pipeline ( - url: string | URL | UrlObject, - options: { dispatcher?: Dispatcher } & Omit, 'origin' | 'path'>, - handler: Dispatcher.PipelineHandler -): Duplex - -/** Starts two-way communications with the requested resource. */ -declare function connect ( - url: string | URL | UrlObject, - options?: { dispatcher?: Dispatcher } & Omit, 'origin' | 'path'> -): Promise> - -/** Upgrade to a different protocol. */ -declare function upgrade ( - url: string | URL | UrlObject, - options?: { dispatcher?: Dispatcher } & Omit -): Promise - -export { - request, - stream, - pipeline, - connect, - upgrade -} diff --git a/build_vtk_bundle/node_modules/undici-types/balanced-pool.d.ts b/build_vtk_bundle/node_modules/undici-types/balanced-pool.d.ts deleted file mode 100644 index 733239c0..00000000 --- a/build_vtk_bundle/node_modules/undici-types/balanced-pool.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import Pool from './pool' -import Dispatcher from './dispatcher' -import { URL } from 'url' - -export default BalancedPool - -type BalancedPoolConnectOptions = Omit - -declare class BalancedPool extends Dispatcher { - constructor (url: string | string[] | URL | URL[], options?: Pool.Options) - - addUpstream (upstream: string | URL): BalancedPool - removeUpstream (upstream: string | URL): BalancedPool - upstreams: Array - - /** `true` after `pool.close()` has been called. */ - closed: boolean - /** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */ - destroyed: boolean - - // Override dispatcher APIs. - override connect ( - options: BalancedPoolConnectOptions - ): Promise - override connect ( - options: BalancedPoolConnectOptions, - callback: (err: Error | null, data: Dispatcher.ConnectData) => void - ): void -} diff --git a/build_vtk_bundle/node_modules/undici-types/cache-interceptor.d.ts b/build_vtk_bundle/node_modules/undici-types/cache-interceptor.d.ts deleted file mode 100644 index e53be60a..00000000 --- a/build_vtk_bundle/node_modules/undici-types/cache-interceptor.d.ts +++ /dev/null @@ -1,172 +0,0 @@ -import { Readable, Writable } from 'node:stream' - -export default CacheHandler - -declare namespace CacheHandler { - export type CacheMethods = 'GET' | 'HEAD' | 'OPTIONS' | 'TRACE' - - export interface CacheHandlerOptions { - store: CacheStore - - cacheByDefault?: number - - type?: CacheOptions['type'] - } - - export interface CacheOptions { - store?: CacheStore - - /** - * The methods to cache - * Note we can only cache safe methods. Unsafe methods (i.e. PUT, POST) - * invalidate the cache for a origin. - * @see https://www.rfc-editor.org/rfc/rfc9111.html#name-invalidating-stored-respons - * @see https://www.rfc-editor.org/rfc/rfc9110#section-9.2.1 - */ - methods?: CacheMethods[] - - /** - * RFC9111 allows for caching responses that we aren't explicitly told to - * cache or to not cache. - * @see https://www.rfc-editor.org/rfc/rfc9111.html#section-3-5 - * @default undefined - */ - cacheByDefault?: number - - /** - * TODO docs - * @default 'shared' - */ - type?: 'shared' | 'private' - } - - export interface CacheControlDirectives { - 'max-stale'?: number; - 'min-fresh'?: number; - 'max-age'?: number; - 's-maxage'?: number; - 'stale-while-revalidate'?: number; - 'stale-if-error'?: number; - public?: true; - private?: true | string[]; - 'no-store'?: true; - 'no-cache'?: true | string[]; - 'must-revalidate'?: true; - 'proxy-revalidate'?: true; - immutable?: true; - 'no-transform'?: true; - 'must-understand'?: true; - 'only-if-cached'?: true; - } - - export interface CacheKey { - origin: string - method: string - path: string - headers?: Record - } - - export interface CacheValue { - statusCode: number - statusMessage: string - headers: Record - vary?: Record - etag?: string - cacheControlDirectives?: CacheControlDirectives - cachedAt: number - staleAt: number - deleteAt: number - } - - export interface DeleteByUri { - origin: string - method: string - path: string - } - - type GetResult = { - statusCode: number - statusMessage: string - headers: Record - vary?: Record - etag?: string - body?: Readable | Iterable | AsyncIterable | Buffer | Iterable | AsyncIterable | string - cacheControlDirectives: CacheControlDirectives, - cachedAt: number - staleAt: number - deleteAt: number - } - - /** - * Underlying storage provider for cached responses - */ - export interface CacheStore { - get(key: CacheKey): GetResult | Promise | undefined - - createWriteStream(key: CacheKey, val: CacheValue): Writable | undefined - - delete(key: CacheKey): void | Promise - } - - export interface MemoryCacheStoreOpts { - /** - * @default Infinity - */ - maxCount?: number - - /** - * @default Infinity - */ - maxSize?: number - - /** - * @default Infinity - */ - maxEntrySize?: number - - errorCallback?: (err: Error) => void - } - - export class MemoryCacheStore implements CacheStore { - constructor (opts?: MemoryCacheStoreOpts) - - get (key: CacheKey): GetResult | Promise | undefined - - createWriteStream (key: CacheKey, value: CacheValue): Writable | undefined - - delete (key: CacheKey): void | Promise - } - - export interface SqliteCacheStoreOpts { - /** - * Location of the database - * @default ':memory:' - */ - location?: string - - /** - * @default Infinity - */ - maxCount?: number - - /** - * @default Infinity - */ - maxEntrySize?: number - } - - export class SqliteCacheStore implements CacheStore { - constructor (opts?: SqliteCacheStoreOpts) - - /** - * Closes the connection to the database - */ - close (): void - - get (key: CacheKey): GetResult | Promise | undefined - - createWriteStream (key: CacheKey, value: CacheValue): Writable | undefined - - delete (key: CacheKey): void | Promise - } -} diff --git a/build_vtk_bundle/node_modules/undici-types/cache.d.ts b/build_vtk_bundle/node_modules/undici-types/cache.d.ts deleted file mode 100644 index 4c333357..00000000 --- a/build_vtk_bundle/node_modules/undici-types/cache.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import type { RequestInfo, Response, Request } from './fetch' - -export interface CacheStorage { - match (request: RequestInfo, options?: MultiCacheQueryOptions): Promise, - has (cacheName: string): Promise, - open (cacheName: string): Promise, - delete (cacheName: string): Promise, - keys (): Promise -} - -declare const CacheStorage: { - prototype: CacheStorage - new(): CacheStorage -} - -export interface Cache { - match (request: RequestInfo, options?: CacheQueryOptions): Promise, - matchAll (request?: RequestInfo, options?: CacheQueryOptions): Promise, - add (request: RequestInfo): Promise, - addAll (requests: RequestInfo[]): Promise, - put (request: RequestInfo, response: Response): Promise, - delete (request: RequestInfo, options?: CacheQueryOptions): Promise, - keys (request?: RequestInfo, options?: CacheQueryOptions): Promise -} - -export interface CacheQueryOptions { - ignoreSearch?: boolean, - ignoreMethod?: boolean, - ignoreVary?: boolean -} - -export interface MultiCacheQueryOptions extends CacheQueryOptions { - cacheName?: string -} - -export declare const caches: CacheStorage diff --git a/build_vtk_bundle/node_modules/undici-types/client-stats.d.ts b/build_vtk_bundle/node_modules/undici-types/client-stats.d.ts deleted file mode 100644 index ad9bd848..00000000 --- a/build_vtk_bundle/node_modules/undici-types/client-stats.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import Client from './client' - -export default ClientStats - -declare class ClientStats { - constructor (pool: Client) - /** If socket has open connection. */ - connected: boolean - /** Number of open socket connections in this client that do not have an active request. */ - pending: number - /** Number of currently active requests of this client. */ - running: number - /** Number of active, pending, or queued requests of this client. */ - size: number -} diff --git a/build_vtk_bundle/node_modules/undici-types/client.d.ts b/build_vtk_bundle/node_modules/undici-types/client.d.ts deleted file mode 100644 index bd1a32c3..00000000 --- a/build_vtk_bundle/node_modules/undici-types/client.d.ts +++ /dev/null @@ -1,108 +0,0 @@ -import { URL } from 'url' -import Dispatcher from './dispatcher' -import buildConnector from './connector' -import TClientStats from './client-stats' - -type ClientConnectOptions = Omit - -/** - * A basic HTTP/1.1 client, mapped on top a single TCP/TLS connection. Pipelining is disabled by default. - */ -export class Client extends Dispatcher { - constructor (url: string | URL, options?: Client.Options) - /** Property to get and set the pipelining factor. */ - pipelining: number - /** `true` after `client.close()` has been called. */ - closed: boolean - /** `true` after `client.destroyed()` has been called or `client.close()` has been called and the client shutdown has completed. */ - destroyed: boolean - /** Aggregate stats for a Client. */ - readonly stats: TClientStats - - // Override dispatcher APIs. - override connect ( - options: ClientConnectOptions - ): Promise - override connect ( - options: ClientConnectOptions, - callback: (err: Error | null, data: Dispatcher.ConnectData) => void - ): void -} - -export declare namespace Client { - export interface OptionsInterceptors { - Client: readonly Dispatcher.DispatchInterceptor[]; - } - export interface Options { - /** TODO */ - interceptors?: OptionsInterceptors; - /** The maximum length of request headers in bytes. Default: Node.js' `--max-http-header-size` or `16384` (16KiB). */ - maxHeaderSize?: number; - /** The amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers (Node 14 and above only). Default: `300e3` milliseconds (300s). */ - headersTimeout?: number; - /** @deprecated unsupported socketTimeout, use headersTimeout & bodyTimeout instead */ - socketTimeout?: never; - /** @deprecated unsupported requestTimeout, use headersTimeout & bodyTimeout instead */ - requestTimeout?: never; - /** TODO */ - connectTimeout?: number; - /** The timeout after which a request will time out, in milliseconds. Monitors time between receiving body data. Use `0` to disable it entirely. Default: `300e3` milliseconds (300s). */ - bodyTimeout?: number; - /** @deprecated unsupported idleTimeout, use keepAliveTimeout instead */ - idleTimeout?: never; - /** @deprecated unsupported keepAlive, use pipelining=0 instead */ - keepAlive?: never; - /** the timeout, in milliseconds, after which a socket without active requests will time out. Monitors time between activity on a connected socket. This value may be overridden by *keep-alive* hints from the server. Default: `4e3` milliseconds (4s). */ - keepAliveTimeout?: number; - /** @deprecated unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead */ - maxKeepAliveTimeout?: never; - /** the maximum allowed `idleTimeout`, in milliseconds, when overridden by *keep-alive* hints from the server. Default: `600e3` milliseconds (10min). */ - keepAliveMaxTimeout?: number; - /** A number of milliseconds subtracted from server *keep-alive* hints when overriding `idleTimeout` to account for timing inaccuracies caused by e.g. transport latency. Default: `1e3` milliseconds (1s). */ - keepAliveTimeoutThreshold?: number; - /** TODO */ - socketPath?: string; - /** The amount of concurrent requests to be sent over the single TCP/TLS connection according to [RFC7230](https://tools.ietf.org/html/rfc7230#section-6.3.2). Default: `1`. */ - pipelining?: number; - /** @deprecated use the connect option instead */ - tls?: never; - /** If `true`, an error is thrown when the request content-length header doesn't match the length of the request body. Default: `true`. */ - strictContentLength?: boolean; - /** TODO */ - maxCachedSessions?: number; - /** TODO */ - connect?: Partial | buildConnector.connector; - /** TODO */ - maxRequestsPerClient?: number; - /** TODO */ - localAddress?: string; - /** Max response body size in bytes, -1 is disabled */ - maxResponseSize?: number; - /** Enables a family autodetection algorithm that loosely implements section 5 of RFC 8305. */ - autoSelectFamily?: boolean; - /** The amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the `autoSelectFamily` option. */ - autoSelectFamilyAttemptTimeout?: number; - /** - * @description Enables support for H2 if the server has assigned bigger priority to it through ALPN negotiation. - * @default false - */ - allowH2?: boolean; - /** - * @description Dictates the maximum number of concurrent streams for a single H2 session. It can be overridden by a SETTINGS remote frame. - * @default 100 - */ - maxConcurrentStreams?: number; - } - export interface SocketInfo { - localAddress?: string - localPort?: number - remoteAddress?: string - remotePort?: number - remoteFamily?: string - timeout?: number - bytesWritten?: number - bytesRead?: number - } -} - -export default Client diff --git a/build_vtk_bundle/node_modules/undici-types/connector.d.ts b/build_vtk_bundle/node_modules/undici-types/connector.d.ts deleted file mode 100644 index bd924339..00000000 --- a/build_vtk_bundle/node_modules/undici-types/connector.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { TLSSocket, ConnectionOptions } from 'tls' -import { IpcNetConnectOpts, Socket, TcpNetConnectOpts } from 'net' - -export default buildConnector -declare function buildConnector (options?: buildConnector.BuildOptions): buildConnector.connector - -declare namespace buildConnector { - export type BuildOptions = (ConnectionOptions | TcpNetConnectOpts | IpcNetConnectOpts) & { - allowH2?: boolean; - maxCachedSessions?: number | null; - socketPath?: string | null; - timeout?: number | null; - port?: number; - keepAlive?: boolean | null; - keepAliveInitialDelay?: number | null; - } - - export interface Options { - hostname: string - host?: string - protocol: string - port: string - servername?: string - localAddress?: string | null - httpSocket?: Socket - } - - export type Callback = (...args: CallbackArgs) => void - type CallbackArgs = [null, Socket | TLSSocket] | [Error, null] - - export interface connector { - (options: buildConnector.Options, callback: buildConnector.Callback): void - } -} diff --git a/build_vtk_bundle/node_modules/undici-types/content-type.d.ts b/build_vtk_bundle/node_modules/undici-types/content-type.d.ts deleted file mode 100644 index f2a87f1b..00000000 --- a/build_vtk_bundle/node_modules/undici-types/content-type.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/// - -interface MIMEType { - type: string - subtype: string - parameters: Map - essence: string -} - -/** - * Parse a string to a {@link MIMEType} object. Returns `failure` if the string - * couldn't be parsed. - * @see https://mimesniff.spec.whatwg.org/#parse-a-mime-type - */ -export function parseMIMEType (input: string): 'failure' | MIMEType - -/** - * Convert a MIMEType object to a string. - * @see https://mimesniff.spec.whatwg.org/#serialize-a-mime-type - */ -export function serializeAMimeType (mimeType: MIMEType): string diff --git a/build_vtk_bundle/node_modules/undici-types/cookies.d.ts b/build_vtk_bundle/node_modules/undici-types/cookies.d.ts deleted file mode 100644 index f746d358..00000000 --- a/build_vtk_bundle/node_modules/undici-types/cookies.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/// - -import type { Headers } from './fetch' - -export interface Cookie { - name: string - value: string - expires?: Date | number - maxAge?: number - domain?: string - path?: string - secure?: boolean - httpOnly?: boolean - sameSite?: 'Strict' | 'Lax' | 'None' - unparsed?: string[] -} - -export function deleteCookie ( - headers: Headers, - name: string, - attributes?: { name?: string, domain?: string } -): void - -export function getCookies (headers: Headers): Record - -export function getSetCookies (headers: Headers): Cookie[] - -export function setCookie (headers: Headers, cookie: Cookie): void - -export function parseCookie (cookie: string): Cookie | null diff --git a/build_vtk_bundle/node_modules/undici-types/diagnostics-channel.d.ts b/build_vtk_bundle/node_modules/undici-types/diagnostics-channel.d.ts deleted file mode 100644 index 4925c871..00000000 --- a/build_vtk_bundle/node_modules/undici-types/diagnostics-channel.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { Socket } from 'net' -import { URL } from 'url' -import buildConnector from './connector' -import Dispatcher from './dispatcher' - -declare namespace DiagnosticsChannel { - interface Request { - origin?: string | URL; - completed: boolean; - method?: Dispatcher.HttpMethod; - path: string; - headers: any; - } - interface Response { - statusCode: number; - statusText: string; - headers: Array; - } - interface ConnectParams { - host: URL['host']; - hostname: URL['hostname']; - protocol: URL['protocol']; - port: URL['port']; - servername: string | null; - } - type Connector = buildConnector.connector - export interface RequestCreateMessage { - request: Request; - } - export interface RequestBodySentMessage { - request: Request; - } - - export interface RequestBodyChunkSentMessage { - request: Request; - chunk: Uint8Array | string; - } - export interface RequestBodyChunkReceivedMessage { - request: Request; - chunk: Buffer; - } - export interface RequestHeadersMessage { - request: Request; - response: Response; - } - export interface RequestTrailersMessage { - request: Request; - trailers: Array; - } - export interface RequestErrorMessage { - request: Request; - error: Error; - } - export interface ClientSendHeadersMessage { - request: Request; - headers: string; - socket: Socket; - } - export interface ClientBeforeConnectMessage { - connectParams: ConnectParams; - connector: Connector; - } - export interface ClientConnectedMessage { - socket: Socket; - connectParams: ConnectParams; - connector: Connector; - } - export interface ClientConnectErrorMessage { - error: Error; - socket: Socket; - connectParams: ConnectParams; - connector: Connector; - } -} diff --git a/build_vtk_bundle/node_modules/undici-types/dispatcher.d.ts b/build_vtk_bundle/node_modules/undici-types/dispatcher.d.ts deleted file mode 100644 index fffe870c..00000000 --- a/build_vtk_bundle/node_modules/undici-types/dispatcher.d.ts +++ /dev/null @@ -1,276 +0,0 @@ -import { URL } from 'url' -import { Duplex, Readable, Writable } from 'stream' -import { EventEmitter } from 'events' -import { Blob } from 'buffer' -import { IncomingHttpHeaders } from './header' -import BodyReadable from './readable' -import { FormData } from './formdata' -import Errors from './errors' -import { Autocomplete } from './utility' - -type AbortSignal = unknown - -export default Dispatcher - -export type UndiciHeaders = Record | IncomingHttpHeaders | string[] | Iterable<[string, string | string[] | undefined]> | null - -/** Dispatcher is the core API used to dispatch requests. */ -declare class Dispatcher extends EventEmitter { - /** Dispatches a request. This API is expected to evolve through semver-major versions and is less stable than the preceding higher level APIs. It is primarily intended for library developers who implement higher level APIs on top of this. */ - dispatch (options: Dispatcher.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean - /** Starts two-way communications with the requested resource. */ - connect(options: Dispatcher.ConnectOptions): Promise> - connect(options: Dispatcher.ConnectOptions, callback: (err: Error | null, data: Dispatcher.ConnectData) => void): void - /** Compose a chain of dispatchers */ - compose (dispatchers: Dispatcher.DispatcherComposeInterceptor[]): Dispatcher.ComposedDispatcher - compose (...dispatchers: Dispatcher.DispatcherComposeInterceptor[]): Dispatcher.ComposedDispatcher - /** Performs an HTTP request. */ - request(options: Dispatcher.RequestOptions): Promise> - request(options: Dispatcher.RequestOptions, callback: (err: Error | null, data: Dispatcher.ResponseData) => void): void - /** For easy use with `stream.pipeline`. */ - pipeline(options: Dispatcher.PipelineOptions, handler: Dispatcher.PipelineHandler): Duplex - /** A faster version of `Dispatcher.request`. */ - stream(options: Dispatcher.RequestOptions, factory: Dispatcher.StreamFactory): Promise> - stream(options: Dispatcher.RequestOptions, factory: Dispatcher.StreamFactory, callback: (err: Error | null, data: Dispatcher.StreamData) => void): void - /** Upgrade to a different protocol. */ - upgrade (options: Dispatcher.UpgradeOptions): Promise - upgrade (options: Dispatcher.UpgradeOptions, callback: (err: Error | null, data: Dispatcher.UpgradeData) => void): void - /** Closes the client and gracefully waits for enqueued requests to complete before invoking the callback (or returning a promise if no callback is provided). */ - close (): Promise - close (callback: () => void): void - /** Destroy the client abruptly with the given err. All the pending and running requests will be asynchronously aborted and error. Waits until socket is closed before invoking the callback (or returning a promise if no callback is provided). Since this operation is asynchronously dispatched there might still be some progress on dispatched requests. */ - destroy (): Promise - destroy (err: Error | null): Promise - destroy (callback: () => void): void - destroy (err: Error | null, callback: () => void): void - - on (eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this - on (eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - on (eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - on (eventName: 'drain', callback: (origin: URL) => void): this - - once (eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this - once (eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - once (eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - once (eventName: 'drain', callback: (origin: URL) => void): this - - off (eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this - off (eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - off (eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - off (eventName: 'drain', callback: (origin: URL) => void): this - - addListener (eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this - addListener (eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - addListener (eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - addListener (eventName: 'drain', callback: (origin: URL) => void): this - - removeListener (eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this - removeListener (eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - removeListener (eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - removeListener (eventName: 'drain', callback: (origin: URL) => void): this - - prependListener (eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this - prependListener (eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - prependListener (eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - prependListener (eventName: 'drain', callback: (origin: URL) => void): this - - prependOnceListener (eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this - prependOnceListener (eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - prependOnceListener (eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this - prependOnceListener (eventName: 'drain', callback: (origin: URL) => void): this - - listeners (eventName: 'connect'): ((origin: URL, targets: readonly Dispatcher[]) => void)[] - listeners (eventName: 'disconnect'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[] - listeners (eventName: 'connectionError'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[] - listeners (eventName: 'drain'): ((origin: URL) => void)[] - - rawListeners (eventName: 'connect'): ((origin: URL, targets: readonly Dispatcher[]) => void)[] - rawListeners (eventName: 'disconnect'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[] - rawListeners (eventName: 'connectionError'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[] - rawListeners (eventName: 'drain'): ((origin: URL) => void)[] - - emit (eventName: 'connect', origin: URL, targets: readonly Dispatcher[]): boolean - emit (eventName: 'disconnect', origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean - emit (eventName: 'connectionError', origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean - emit (eventName: 'drain', origin: URL): boolean -} - -declare namespace Dispatcher { - export interface ComposedDispatcher extends Dispatcher {} - export type Dispatch = Dispatcher['dispatch'] - export type DispatcherComposeInterceptor = (dispatch: Dispatch) => Dispatch - export interface DispatchOptions { - origin?: string | URL; - path: string; - method: HttpMethod; - /** Default: `null` */ - body?: string | Buffer | Uint8Array | Readable | null | FormData; - /** Default: `null` */ - headers?: UndiciHeaders; - /** Query string params to be embedded in the request URL. Default: `null` */ - query?: Record; - /** Whether the requests can be safely retried or not. If `false` the request won't be sent until all preceding requests in the pipeline have completed. Default: `true` if `method` is `HEAD` or `GET`. */ - idempotent?: boolean; - /** Whether the response is expected to take a long time and would end up blocking the pipeline. When this is set to `true` further pipelining will be avoided on the same connection until headers have been received. Defaults to `method !== 'HEAD'`. */ - blocking?: boolean; - /** Upgrade the request. Should be used to specify the kind of upgrade i.e. `'Websocket'`. Default: `method === 'CONNECT' || null`. */ - upgrade?: boolean | string | null; - /** The amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers. Defaults to 300 seconds. */ - headersTimeout?: number | null; - /** The timeout after which a request will time out, in milliseconds. Monitors time between receiving body data. Use 0 to disable it entirely. Defaults to 300 seconds. */ - bodyTimeout?: number | null; - /** Whether the request should stablish a keep-alive or not. Default `false` */ - reset?: boolean; - /** Whether Undici should throw an error upon receiving a 4xx or 5xx response from the server. Defaults to false */ - throwOnError?: boolean; - /** For H2, it appends the expect: 100-continue header, and halts the request body until a 100-continue is received from the remote server */ - expectContinue?: boolean; - } - export interface ConnectOptions { - origin: string | URL; - path: string; - /** Default: `null` */ - headers?: UndiciHeaders; - /** Default: `null` */ - signal?: AbortSignal | EventEmitter | null; - /** This argument parameter is passed through to `ConnectData` */ - opaque?: TOpaque; - /** Default: false */ - redirectionLimitReached?: boolean; - /** Default: `null` */ - responseHeaders?: 'raw' | null; - } - export interface RequestOptions extends DispatchOptions { - /** Default: `null` */ - opaque?: TOpaque; - /** Default: `null` */ - signal?: AbortSignal | EventEmitter | null; - /** Default: false */ - redirectionLimitReached?: boolean; - /** Default: `null` */ - onInfo?: (info: { statusCode: number, headers: Record }) => void; - /** Default: `null` */ - responseHeaders?: 'raw' | null; - /** Default: `64 KiB` */ - highWaterMark?: number; - } - export interface PipelineOptions extends RequestOptions { - /** `true` if the `handler` will return an object stream. Default: `false` */ - objectMode?: boolean; - } - export interface UpgradeOptions { - path: string; - /** Default: `'GET'` */ - method?: string; - /** Default: `null` */ - headers?: UndiciHeaders; - /** A string of comma separated protocols, in descending preference order. Default: `'Websocket'` */ - protocol?: string; - /** Default: `null` */ - signal?: AbortSignal | EventEmitter | null; - /** Default: false */ - redirectionLimitReached?: boolean; - /** Default: `null` */ - responseHeaders?: 'raw' | null; - } - export interface ConnectData { - statusCode: number; - headers: IncomingHttpHeaders; - socket: Duplex; - opaque: TOpaque; - } - export interface ResponseData { - statusCode: number; - headers: IncomingHttpHeaders; - body: BodyReadable & BodyMixin; - trailers: Record; - opaque: TOpaque; - context: object; - } - export interface PipelineHandlerData { - statusCode: number; - headers: IncomingHttpHeaders; - opaque: TOpaque; - body: BodyReadable; - context: object; - } - export interface StreamData { - opaque: TOpaque; - trailers: Record; - } - export interface UpgradeData { - headers: IncomingHttpHeaders; - socket: Duplex; - opaque: TOpaque; - } - export interface StreamFactoryData { - statusCode: number; - headers: IncomingHttpHeaders; - opaque: TOpaque; - context: object; - } - export type StreamFactory = (data: StreamFactoryData) => Writable - - export interface DispatchController { - get aborted () : boolean - get paused () : boolean - get reason () : Error | null - abort (reason: Error): void - pause(): void - resume(): void - } - - export interface DispatchHandler { - onRequestStart?(controller: DispatchController, context: any): void; - onRequestUpgrade?(controller: DispatchController, statusCode: number, headers: IncomingHttpHeaders, socket: Duplex): void; - onResponseStart?(controller: DispatchController, statusCode: number, headers: IncomingHttpHeaders, statusMessage?: string): void; - onResponseData?(controller: DispatchController, chunk: Buffer): void; - onResponseEnd?(controller: DispatchController, trailers: IncomingHttpHeaders): void; - onResponseError?(controller: DispatchController, error: Error): void; - - /** Invoked before request is dispatched on socket. May be invoked multiple times when a request is retried when the request at the head of the pipeline fails. */ - /** @deprecated */ - onConnect?(abort: (err?: Error) => void): void; - /** Invoked when an error has occurred. */ - /** @deprecated */ - onError?(err: Error): void; - /** Invoked when request is upgraded either due to a `Upgrade` header or `CONNECT` method. */ - /** @deprecated */ - onUpgrade?(statusCode: number, headers: Buffer[] | string[] | null, socket: Duplex): void; - /** Invoked when response is received, before headers have been read. **/ - /** @deprecated */ - onResponseStarted?(): void; - /** Invoked when statusCode and headers have been received. May be invoked multiple times due to 1xx informational headers. */ - /** @deprecated */ - onHeaders?(statusCode: number, headers: Buffer[], resume: () => void, statusText: string): boolean; - /** Invoked when response payload data is received. */ - /** @deprecated */ - onData?(chunk: Buffer): boolean; - /** Invoked when response payload and trailers have been received and the request has completed. */ - /** @deprecated */ - onComplete?(trailers: string[] | null): void; - /** Invoked when a body chunk is sent to the server. May be invoked multiple times for chunked requests */ - /** @deprecated */ - onBodySent?(chunkSize: number, totalBytesSent: number): void; - } - export type PipelineHandler = (data: PipelineHandlerData) => Readable - export type HttpMethod = Autocomplete<'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH'> - - /** - * @link https://fetch.spec.whatwg.org/#body-mixin - */ - interface BodyMixin { - readonly body?: never; - readonly bodyUsed: boolean; - arrayBuffer(): Promise; - blob(): Promise; - bytes(): Promise; - formData(): Promise; - json(): Promise; - text(): Promise; - } - - export interface DispatchInterceptor { - (dispatch: Dispatch): Dispatch - } -} diff --git a/build_vtk_bundle/node_modules/undici-types/env-http-proxy-agent.d.ts b/build_vtk_bundle/node_modules/undici-types/env-http-proxy-agent.d.ts deleted file mode 100644 index 1733d7f6..00000000 --- a/build_vtk_bundle/node_modules/undici-types/env-http-proxy-agent.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import Agent from './agent' -import ProxyAgent from './proxy-agent' -import Dispatcher from './dispatcher' - -export default EnvHttpProxyAgent - -declare class EnvHttpProxyAgent extends Dispatcher { - constructor (opts?: EnvHttpProxyAgent.Options) - - dispatch (options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean -} - -declare namespace EnvHttpProxyAgent { - export interface Options extends Omit { - /** Overrides the value of the HTTP_PROXY environment variable */ - httpProxy?: string; - /** Overrides the value of the HTTPS_PROXY environment variable */ - httpsProxy?: string; - /** Overrides the value of the NO_PROXY environment variable */ - noProxy?: string; - } -} diff --git a/build_vtk_bundle/node_modules/undici-types/errors.d.ts b/build_vtk_bundle/node_modules/undici-types/errors.d.ts deleted file mode 100644 index fbf31955..00000000 --- a/build_vtk_bundle/node_modules/undici-types/errors.d.ts +++ /dev/null @@ -1,161 +0,0 @@ -import { IncomingHttpHeaders } from './header' -import Client from './client' - -export default Errors - -declare namespace Errors { - export class UndiciError extends Error { - name: string - code: string - } - - /** Connect timeout error. */ - export class ConnectTimeoutError extends UndiciError { - name: 'ConnectTimeoutError' - code: 'UND_ERR_CONNECT_TIMEOUT' - } - - /** A header exceeds the `headersTimeout` option. */ - export class HeadersTimeoutError extends UndiciError { - name: 'HeadersTimeoutError' - code: 'UND_ERR_HEADERS_TIMEOUT' - } - - /** Headers overflow error. */ - export class HeadersOverflowError extends UndiciError { - name: 'HeadersOverflowError' - code: 'UND_ERR_HEADERS_OVERFLOW' - } - - /** A body exceeds the `bodyTimeout` option. */ - export class BodyTimeoutError extends UndiciError { - name: 'BodyTimeoutError' - code: 'UND_ERR_BODY_TIMEOUT' - } - - export class ResponseError extends UndiciError { - constructor ( - message: string, - code: number, - options: { - headers?: IncomingHttpHeaders | string[] | null, - body?: null | Record | string - } - ) - name: 'ResponseError' - code: 'UND_ERR_RESPONSE' - statusCode: number - body: null | Record | string - headers: IncomingHttpHeaders | string[] | null - } - - /** Passed an invalid argument. */ - export class InvalidArgumentError extends UndiciError { - name: 'InvalidArgumentError' - code: 'UND_ERR_INVALID_ARG' - } - - /** Returned an invalid value. */ - export class InvalidReturnValueError extends UndiciError { - name: 'InvalidReturnValueError' - code: 'UND_ERR_INVALID_RETURN_VALUE' - } - - /** The request has been aborted by the user. */ - export class RequestAbortedError extends UndiciError { - name: 'AbortError' - code: 'UND_ERR_ABORTED' - } - - /** Expected error with reason. */ - export class InformationalError extends UndiciError { - name: 'InformationalError' - code: 'UND_ERR_INFO' - } - - /** Request body length does not match content-length header. */ - export class RequestContentLengthMismatchError extends UndiciError { - name: 'RequestContentLengthMismatchError' - code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH' - } - - /** Response body length does not match content-length header. */ - export class ResponseContentLengthMismatchError extends UndiciError { - name: 'ResponseContentLengthMismatchError' - code: 'UND_ERR_RES_CONTENT_LENGTH_MISMATCH' - } - - /** Trying to use a destroyed client. */ - export class ClientDestroyedError extends UndiciError { - name: 'ClientDestroyedError' - code: 'UND_ERR_DESTROYED' - } - - /** Trying to use a closed client. */ - export class ClientClosedError extends UndiciError { - name: 'ClientClosedError' - code: 'UND_ERR_CLOSED' - } - - /** There is an error with the socket. */ - export class SocketError extends UndiciError { - name: 'SocketError' - code: 'UND_ERR_SOCKET' - socket: Client.SocketInfo | null - } - - /** Encountered unsupported functionality. */ - export class NotSupportedError extends UndiciError { - name: 'NotSupportedError' - code: 'UND_ERR_NOT_SUPPORTED' - } - - /** No upstream has been added to the BalancedPool. */ - export class BalancedPoolMissingUpstreamError extends UndiciError { - name: 'MissingUpstreamError' - code: 'UND_ERR_BPL_MISSING_UPSTREAM' - } - - export class HTTPParserError extends UndiciError { - name: 'HTTPParserError' - code: string - } - - /** The response exceed the length allowed. */ - export class ResponseExceededMaxSizeError extends UndiciError { - name: 'ResponseExceededMaxSizeError' - code: 'UND_ERR_RES_EXCEEDED_MAX_SIZE' - } - - export class RequestRetryError extends UndiciError { - constructor ( - message: string, - statusCode: number, - headers?: IncomingHttpHeaders | string[] | null, - body?: null | Record | string - ) - name: 'RequestRetryError' - code: 'UND_ERR_REQ_RETRY' - statusCode: number - data: { - count: number; - } - - headers: Record - } - - export class SecureProxyConnectionError extends UndiciError { - constructor ( - cause?: Error, - message?: string, - options?: Record - ) - name: 'SecureProxyConnectionError' - code: 'UND_ERR_PRX_TLS' - } - - class MaxOriginsReachedError extends UndiciError { - name: 'MaxOriginsReachedError' - code: 'UND_ERR_MAX_ORIGINS_REACHED' - } -} diff --git a/build_vtk_bundle/node_modules/undici-types/eventsource.d.ts b/build_vtk_bundle/node_modules/undici-types/eventsource.d.ts deleted file mode 100644 index 081ca09a..00000000 --- a/build_vtk_bundle/node_modules/undici-types/eventsource.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { MessageEvent, ErrorEvent } from './websocket' -import Dispatcher from './dispatcher' - -import { - EventListenerOptions, - AddEventListenerOptions, - EventListenerOrEventListenerObject -} from './patch' - -interface EventSourceEventMap { - error: ErrorEvent - message: MessageEvent - open: Event -} - -interface EventSource extends EventTarget { - close(): void - readonly CLOSED: 2 - readonly CONNECTING: 0 - readonly OPEN: 1 - onerror: ((this: EventSource, ev: ErrorEvent) => any) | null - onmessage: ((this: EventSource, ev: MessageEvent) => any) | null - onopen: ((this: EventSource, ev: Event) => any) | null - readonly readyState: 0 | 1 | 2 - readonly url: string - readonly withCredentials: boolean - - addEventListener( - type: K, - listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, - options?: boolean | AddEventListenerOptions - ): void - addEventListener( - type: string, - listener: EventListenerOrEventListenerObject, - options?: boolean | AddEventListenerOptions - ): void - removeEventListener( - type: K, - listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, - options?: boolean | EventListenerOptions - ): void - removeEventListener( - type: string, - listener: EventListenerOrEventListenerObject, - options?: boolean | EventListenerOptions - ): void -} - -export declare const EventSource: { - prototype: EventSource - new (url: string | URL, init?: EventSourceInit): EventSource - readonly CLOSED: 2 - readonly CONNECTING: 0 - readonly OPEN: 1 -} - -interface EventSourceInit { - withCredentials?: boolean - // @deprecated use `node.dispatcher` instead - dispatcher?: Dispatcher - node?: { - dispatcher?: Dispatcher - reconnectionTime?: number - } -} diff --git a/build_vtk_bundle/node_modules/undici-types/fetch.d.ts b/build_vtk_bundle/node_modules/undici-types/fetch.d.ts deleted file mode 100644 index 2cf50290..00000000 --- a/build_vtk_bundle/node_modules/undici-types/fetch.d.ts +++ /dev/null @@ -1,211 +0,0 @@ -// based on https://github.com/Ethan-Arrowood/undici-fetch/blob/249269714db874351589d2d364a0645d5160ae71/index.d.ts (MIT license) -// and https://github.com/node-fetch/node-fetch/blob/914ce6be5ec67a8bab63d68510aabf07cb818b6d/index.d.ts (MIT license) -/// - -import { Blob } from 'buffer' -import { URL, URLSearchParams } from 'url' -import { ReadableStream } from 'stream/web' -import { FormData } from './formdata' -import { HeaderRecord } from './header' -import Dispatcher from './dispatcher' - -export type RequestInfo = string | URL | Request - -export declare function fetch ( - input: RequestInfo, - init?: RequestInit -): Promise - -export type BodyInit = - | ArrayBuffer - | AsyncIterable - | Blob - | FormData - | Iterable - | NodeJS.ArrayBufferView - | URLSearchParams - | null - | string - -export class BodyMixin { - readonly body: ReadableStream | null - readonly bodyUsed: boolean - - readonly arrayBuffer: () => Promise - readonly blob: () => Promise - readonly bytes: () => Promise - /** - * @deprecated This method is not recommended for parsing multipart/form-data bodies in server environments. - * It is recommended to use a library such as [@fastify/busboy](https://www.npmjs.com/package/@fastify/busboy) as follows: - * - * @example - * ```js - * import { Busboy } from '@fastify/busboy' - * import { Readable } from 'node:stream' - * - * const response = await fetch('...') - * const busboy = new Busboy({ headers: { 'content-type': response.headers.get('content-type') } }) - * - * // handle events emitted from `busboy` - * - * Readable.fromWeb(response.body).pipe(busboy) - * ``` - */ - readonly formData: () => Promise - readonly json: () => Promise - readonly text: () => Promise -} - -export interface SpecIterator { - next(...args: [] | [TNext]): IteratorResult; -} - -export interface SpecIterableIterator extends SpecIterator { - [Symbol.iterator](): SpecIterableIterator; -} - -export interface SpecIterable { - [Symbol.iterator](): SpecIterator; -} - -export type HeadersInit = [string, string][] | HeaderRecord | Headers - -export declare class Headers implements SpecIterable<[string, string]> { - constructor (init?: HeadersInit) - readonly append: (name: string, value: string) => void - readonly delete: (name: string) => void - readonly get: (name: string) => string | null - readonly has: (name: string) => boolean - readonly set: (name: string, value: string) => void - readonly getSetCookie: () => string[] - readonly forEach: ( - callbackfn: (value: string, key: string, iterable: Headers) => void, - thisArg?: unknown - ) => void - - readonly keys: () => SpecIterableIterator - readonly values: () => SpecIterableIterator - readonly entries: () => SpecIterableIterator<[string, string]> - readonly [Symbol.iterator]: () => SpecIterableIterator<[string, string]> -} - -export type RequestCache = - | 'default' - | 'force-cache' - | 'no-cache' - | 'no-store' - | 'only-if-cached' - | 'reload' - -export type RequestCredentials = 'omit' | 'include' | 'same-origin' - -type RequestDestination = - | '' - | 'audio' - | 'audioworklet' - | 'document' - | 'embed' - | 'font' - | 'image' - | 'manifest' - | 'object' - | 'paintworklet' - | 'report' - | 'script' - | 'sharedworker' - | 'style' - | 'track' - | 'video' - | 'worker' - | 'xslt' - -export interface RequestInit { - body?: BodyInit | null - cache?: RequestCache - credentials?: RequestCredentials - dispatcher?: Dispatcher - duplex?: RequestDuplex - headers?: HeadersInit - integrity?: string - keepalive?: boolean - method?: string - mode?: RequestMode - redirect?: RequestRedirect - referrer?: string - referrerPolicy?: ReferrerPolicy - signal?: AbortSignal | null - window?: null -} - -export type ReferrerPolicy = - | '' - | 'no-referrer' - | 'no-referrer-when-downgrade' - | 'origin' - | 'origin-when-cross-origin' - | 'same-origin' - | 'strict-origin' - | 'strict-origin-when-cross-origin' - | 'unsafe-url' - -export type RequestMode = 'cors' | 'navigate' | 'no-cors' | 'same-origin' - -export type RequestRedirect = 'error' | 'follow' | 'manual' - -export type RequestDuplex = 'half' - -export declare class Request extends BodyMixin { - constructor (input: RequestInfo, init?: RequestInit) - - readonly cache: RequestCache - readonly credentials: RequestCredentials - readonly destination: RequestDestination - readonly headers: Headers - readonly integrity: string - readonly method: string - readonly mode: RequestMode - readonly redirect: RequestRedirect - readonly referrer: string - readonly referrerPolicy: ReferrerPolicy - readonly url: string - - readonly keepalive: boolean - readonly signal: AbortSignal - readonly duplex: RequestDuplex - - readonly clone: () => Request -} - -export interface ResponseInit { - readonly status?: number - readonly statusText?: string - readonly headers?: HeadersInit -} - -export type ResponseType = - | 'basic' - | 'cors' - | 'default' - | 'error' - | 'opaque' - | 'opaqueredirect' - -export type ResponseRedirectStatus = 301 | 302 | 303 | 307 | 308 - -export declare class Response extends BodyMixin { - constructor (body?: BodyInit, init?: ResponseInit) - - readonly headers: Headers - readonly ok: boolean - readonly status: number - readonly statusText: string - readonly type: ResponseType - readonly url: string - readonly redirected: boolean - - readonly clone: () => Response - - static error (): Response - static json (data: any, init?: ResponseInit): Response - static redirect (url: string | URL, status: ResponseRedirectStatus): Response -} diff --git a/build_vtk_bundle/node_modules/undici-types/formdata.d.ts b/build_vtk_bundle/node_modules/undici-types/formdata.d.ts deleted file mode 100644 index 030f5485..00000000 --- a/build_vtk_bundle/node_modules/undici-types/formdata.d.ts +++ /dev/null @@ -1,108 +0,0 @@ -// Based on https://github.com/octet-stream/form-data/blob/2d0f0dc371517444ce1f22cdde13f51995d0953a/lib/FormData.ts (MIT) -/// - -import { File } from 'buffer' -import { SpecIterableIterator } from './fetch' - -/** - * A `string` or `File` that represents a single value from a set of `FormData` key-value pairs. - */ -declare type FormDataEntryValue = string | File - -/** - * Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using fetch(). - */ -export declare class FormData { - /** - * Appends a new value onto an existing key inside a FormData object, - * or adds the key if it does not already exist. - * - * The difference between `set()` and `append()` is that if the specified key already exists, `set()` will overwrite all existing values with the new one, whereas `append()` will append the new value onto the end of the existing set of values. - * - * @param name The name of the field whose data is contained in `value`. - * @param value The field's value. This can be [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) - or [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File). If none of these are specified the value is converted to a string. - * @param fileName The filename reported to the server, when a Blob or File is passed as the second parameter. The default filename for Blob objects is "blob". The default filename for File objects is the file's filename. - */ - append (name: string, value: unknown, fileName?: string): void - - /** - * Set a new value for an existing key inside FormData, - * or add the new field if it does not already exist. - * - * @param name The name of the field whose data is contained in `value`. - * @param value The field's value. This can be [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) - or [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File). If none of these are specified the value is converted to a string. - * @param fileName The filename reported to the server, when a Blob or File is passed as the second parameter. The default filename for Blob objects is "blob". The default filename for File objects is the file's filename. - * - */ - set (name: string, value: unknown, fileName?: string): void - - /** - * Returns the first value associated with a given key from within a `FormData` object. - * If you expect multiple values and want all of them, use the `getAll()` method instead. - * - * @param {string} name A name of the value you want to retrieve. - * - * @returns A `FormDataEntryValue` containing the value. If the key doesn't exist, the method returns null. - */ - get (name: string): FormDataEntryValue | null - - /** - * Returns all the values associated with a given key from within a `FormData` object. - * - * @param {string} name A name of the value you want to retrieve. - * - * @returns An array of `FormDataEntryValue` whose key matches the value passed in the `name` parameter. If the key doesn't exist, the method returns an empty list. - */ - getAll (name: string): FormDataEntryValue[] - - /** - * Returns a boolean stating whether a `FormData` object contains a certain key. - * - * @param name A string representing the name of the key you want to test for. - * - * @return A boolean value. - */ - has (name: string): boolean - - /** - * Deletes a key and its value(s) from a `FormData` object. - * - * @param name The name of the key you want to delete. - */ - delete (name: string): void - - /** - * Executes given callback function for each field of the FormData instance - */ - forEach: ( - callbackfn: (value: FormDataEntryValue, key: string, iterable: FormData) => void, - thisArg?: unknown - ) => void - - /** - * Returns an [`iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) allowing to go through all keys contained in this `FormData` object. - * Each key is a `string`. - */ - keys: () => SpecIterableIterator - - /** - * Returns an [`iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) allowing to go through all values contained in this object `FormData` object. - * Each value is a [`FormDataValue`](https://developer.mozilla.org/en-US/docs/Web/API/FormDataEntryValue). - */ - values: () => SpecIterableIterator - - /** - * Returns an [`iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) allowing to go through the `FormData` key/value pairs. - * The key of each pair is a string; the value is a [`FormDataValue`](https://developer.mozilla.org/en-US/docs/Web/API/FormDataEntryValue). - */ - entries: () => SpecIterableIterator<[string, FormDataEntryValue]> - - /** - * An alias for FormData#entries() - */ - [Symbol.iterator]: () => SpecIterableIterator<[string, FormDataEntryValue]> - - readonly [Symbol.toStringTag]: string -} diff --git a/build_vtk_bundle/node_modules/undici-types/global-dispatcher.d.ts b/build_vtk_bundle/node_modules/undici-types/global-dispatcher.d.ts deleted file mode 100644 index 2760e136..00000000 --- a/build_vtk_bundle/node_modules/undici-types/global-dispatcher.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import Dispatcher from './dispatcher' - -declare function setGlobalDispatcher (dispatcher: DispatcherImplementation): void -declare function getGlobalDispatcher (): Dispatcher - -export { - getGlobalDispatcher, - setGlobalDispatcher -} diff --git a/build_vtk_bundle/node_modules/undici-types/global-origin.d.ts b/build_vtk_bundle/node_modules/undici-types/global-origin.d.ts deleted file mode 100644 index 265769b7..00000000 --- a/build_vtk_bundle/node_modules/undici-types/global-origin.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -declare function setGlobalOrigin (origin: string | URL | undefined): void -declare function getGlobalOrigin (): URL | undefined - -export { - setGlobalOrigin, - getGlobalOrigin -} diff --git a/build_vtk_bundle/node_modules/undici-types/h2c-client.d.ts b/build_vtk_bundle/node_modules/undici-types/h2c-client.d.ts deleted file mode 100644 index e7a6808d..00000000 --- a/build_vtk_bundle/node_modules/undici-types/h2c-client.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { URL } from 'url' -import Dispatcher from './dispatcher' -import buildConnector from './connector' - -type H2ClientOptions = Omit - -/** - * A basic H2C client, mapped on top a single TCP connection. Pipelining is disabled by default. - */ -export class H2CClient extends Dispatcher { - constructor (url: string | URL, options?: H2CClient.Options) - /** Property to get and set the pipelining factor. */ - pipelining: number - /** `true` after `client.close()` has been called. */ - closed: boolean - /** `true` after `client.destroyed()` has been called or `client.close()` has been called and the client shutdown has completed. */ - destroyed: boolean - - // Override dispatcher APIs. - override connect ( - options: H2ClientOptions - ): Promise - override connect ( - options: H2ClientOptions, - callback: (err: Error | null, data: Dispatcher.ConnectData) => void - ): void -} - -export declare namespace H2CClient { - export interface Options { - /** The maximum length of request headers in bytes. Default: Node.js' `--max-http-header-size` or `16384` (16KiB). */ - maxHeaderSize?: number; - /** The amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers (Node 14 and above only). Default: `300e3` milliseconds (300s). */ - headersTimeout?: number; - /** TODO */ - connectTimeout?: number; - /** The timeout after which a request will time out, in milliseconds. Monitors time between receiving body data. Use `0` to disable it entirely. Default: `300e3` milliseconds (300s). */ - bodyTimeout?: number; - /** the timeout, in milliseconds, after which a socket without active requests will time out. Monitors time between activity on a connected socket. This value may be overridden by *keep-alive* hints from the server. Default: `4e3` milliseconds (4s). */ - keepAliveTimeout?: number; - /** the maximum allowed `idleTimeout`, in milliseconds, when overridden by *keep-alive* hints from the server. Default: `600e3` milliseconds (10min). */ - keepAliveMaxTimeout?: number; - /** A number of milliseconds subtracted from server *keep-alive* hints when overriding `idleTimeout` to account for timing inaccuracies caused by e.g. transport latency. Default: `1e3` milliseconds (1s). */ - keepAliveTimeoutThreshold?: number; - /** TODO */ - socketPath?: string; - /** The amount of concurrent requests to be sent over the single TCP/TLS connection according to [RFC7230](https://tools.ietf.org/html/rfc7230#section-6.3.2). Default: `1`. */ - pipelining?: number; - /** If `true`, an error is thrown when the request content-length header doesn't match the length of the request body. Default: `true`. */ - strictContentLength?: boolean; - /** TODO */ - maxCachedSessions?: number; - /** TODO */ - connect?: Omit, 'allowH2'> | buildConnector.connector; - /** TODO */ - maxRequestsPerClient?: number; - /** TODO */ - localAddress?: string; - /** Max response body size in bytes, -1 is disabled */ - maxResponseSize?: number; - /** Enables a family autodetection algorithm that loosely implements section 5 of RFC 8305. */ - autoSelectFamily?: boolean; - /** The amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the `autoSelectFamily` option. */ - autoSelectFamilyAttemptTimeout?: number; - /** - * @description Dictates the maximum number of concurrent streams for a single H2 session. It can be overridden by a SETTINGS remote frame. - * @default 100 - */ - maxConcurrentStreams?: number - } -} - -export default H2CClient diff --git a/build_vtk_bundle/node_modules/undici-types/handlers.d.ts b/build_vtk_bundle/node_modules/undici-types/handlers.d.ts deleted file mode 100644 index 8007dbf8..00000000 --- a/build_vtk_bundle/node_modules/undici-types/handlers.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import Dispatcher from './dispatcher' - -export declare class RedirectHandler implements Dispatcher.DispatchHandler { - constructor ( - dispatch: Dispatcher.Dispatch, - maxRedirections: number, - opts: Dispatcher.DispatchOptions, - handler: Dispatcher.DispatchHandler, - redirectionLimitReached: boolean - ) -} - -export declare class DecoratorHandler implements Dispatcher.DispatchHandler { - constructor (handler: Dispatcher.DispatchHandler) -} diff --git a/build_vtk_bundle/node_modules/undici-types/header.d.ts b/build_vtk_bundle/node_modules/undici-types/header.d.ts deleted file mode 100644 index efd7b1dd..00000000 --- a/build_vtk_bundle/node_modules/undici-types/header.d.ts +++ /dev/null @@ -1,160 +0,0 @@ -import { Autocomplete } from './utility' - -/** - * The header type declaration of `undici`. - */ -export type IncomingHttpHeaders = Record - -type HeaderNames = Autocomplete< - | 'Accept' - | 'Accept-CH' - | 'Accept-Charset' - | 'Accept-Encoding' - | 'Accept-Language' - | 'Accept-Patch' - | 'Accept-Post' - | 'Accept-Ranges' - | 'Access-Control-Allow-Credentials' - | 'Access-Control-Allow-Headers' - | 'Access-Control-Allow-Methods' - | 'Access-Control-Allow-Origin' - | 'Access-Control-Expose-Headers' - | 'Access-Control-Max-Age' - | 'Access-Control-Request-Headers' - | 'Access-Control-Request-Method' - | 'Age' - | 'Allow' - | 'Alt-Svc' - | 'Alt-Used' - | 'Authorization' - | 'Cache-Control' - | 'Clear-Site-Data' - | 'Connection' - | 'Content-Disposition' - | 'Content-Encoding' - | 'Content-Language' - | 'Content-Length' - | 'Content-Location' - | 'Content-Range' - | 'Content-Security-Policy' - | 'Content-Security-Policy-Report-Only' - | 'Content-Type' - | 'Cookie' - | 'Cross-Origin-Embedder-Policy' - | 'Cross-Origin-Opener-Policy' - | 'Cross-Origin-Resource-Policy' - | 'Date' - | 'Device-Memory' - | 'ETag' - | 'Expect' - | 'Expect-CT' - | 'Expires' - | 'Forwarded' - | 'From' - | 'Host' - | 'If-Match' - | 'If-Modified-Since' - | 'If-None-Match' - | 'If-Range' - | 'If-Unmodified-Since' - | 'Keep-Alive' - | 'Last-Modified' - | 'Link' - | 'Location' - | 'Max-Forwards' - | 'Origin' - | 'Permissions-Policy' - | 'Priority' - | 'Proxy-Authenticate' - | 'Proxy-Authorization' - | 'Range' - | 'Referer' - | 'Referrer-Policy' - | 'Retry-After' - | 'Sec-Fetch-Dest' - | 'Sec-Fetch-Mode' - | 'Sec-Fetch-Site' - | 'Sec-Fetch-User' - | 'Sec-Purpose' - | 'Sec-WebSocket-Accept' - | 'Server' - | 'Server-Timing' - | 'Service-Worker-Navigation-Preload' - | 'Set-Cookie' - | 'SourceMap' - | 'Strict-Transport-Security' - | 'TE' - | 'Timing-Allow-Origin' - | 'Trailer' - | 'Transfer-Encoding' - | 'Upgrade' - | 'Upgrade-Insecure-Requests' - | 'User-Agent' - | 'Vary' - | 'Via' - | 'WWW-Authenticate' - | 'X-Content-Type-Options' - | 'X-Frame-Options' -> - -type IANARegisteredMimeType = Autocomplete< - | 'audio/aac' - | 'video/x-msvideo' - | 'image/avif' - | 'video/av1' - | 'application/octet-stream' - | 'image/bmp' - | 'text/css' - | 'text/csv' - | 'application/vnd.ms-fontobject' - | 'application/epub+zip' - | 'image/gif' - | 'application/gzip' - | 'text/html' - | 'image/x-icon' - | 'text/calendar' - | 'image/jpeg' - | 'text/javascript' - | 'application/json' - | 'application/ld+json' - | 'audio/x-midi' - | 'audio/mpeg' - | 'video/mp4' - | 'video/mpeg' - | 'audio/ogg' - | 'video/ogg' - | 'application/ogg' - | 'audio/opus' - | 'font/otf' - | 'application/pdf' - | 'image/png' - | 'application/rtf' - | 'image/svg+xml' - | 'image/tiff' - | 'video/mp2t' - | 'font/ttf' - | 'text/plain' - | 'application/wasm' - | 'video/webm' - | 'audio/webm' - | 'image/webp' - | 'font/woff' - | 'font/woff2' - | 'application/xhtml+xml' - | 'application/xml' - | 'application/zip' - | 'video/3gpp' - | 'video/3gpp2' - | 'model/gltf+json' - | 'model/gltf-binary' -> - -type KnownHeaderValues = { - 'content-type': IANARegisteredMimeType -} - -export type HeaderRecord = { - [K in HeaderNames | Lowercase]?: Lowercase extends keyof KnownHeaderValues - ? KnownHeaderValues[Lowercase] - : string -} diff --git a/build_vtk_bundle/node_modules/undici-types/index.d.ts b/build_vtk_bundle/node_modules/undici-types/index.d.ts deleted file mode 100644 index be0bc289..00000000 --- a/build_vtk_bundle/node_modules/undici-types/index.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -import Dispatcher from './dispatcher' -import { setGlobalDispatcher, getGlobalDispatcher } from './global-dispatcher' -import { setGlobalOrigin, getGlobalOrigin } from './global-origin' -import Pool from './pool' -import { RedirectHandler, DecoratorHandler } from './handlers' - -import BalancedPool from './balanced-pool' -import Client from './client' -import H2CClient from './h2c-client' -import buildConnector from './connector' -import errors from './errors' -import Agent from './agent' -import MockClient from './mock-client' -import MockPool from './mock-pool' -import MockAgent from './mock-agent' -import { SnapshotAgent } from './snapshot-agent' -import { MockCallHistory, MockCallHistoryLog } from './mock-call-history' -import mockErrors from './mock-errors' -import ProxyAgent from './proxy-agent' -import EnvHttpProxyAgent from './env-http-proxy-agent' -import RetryHandler from './retry-handler' -import RetryAgent from './retry-agent' -import { request, pipeline, stream, connect, upgrade } from './api' -import interceptors from './interceptors' - -export * from './util' -export * from './cookies' -export * from './eventsource' -export * from './fetch' -export * from './formdata' -export * from './diagnostics-channel' -export * from './websocket' -export * from './content-type' -export * from './cache' -export { Interceptable } from './mock-interceptor' - -declare function globalThisInstall (): void - -export { Dispatcher, BalancedPool, Pool, Client, buildConnector, errors, Agent, request, stream, pipeline, connect, upgrade, setGlobalDispatcher, getGlobalDispatcher, setGlobalOrigin, getGlobalOrigin, interceptors, MockClient, MockPool, MockAgent, SnapshotAgent, MockCallHistory, MockCallHistoryLog, mockErrors, ProxyAgent, EnvHttpProxyAgent, RedirectHandler, DecoratorHandler, RetryHandler, RetryAgent, H2CClient, globalThisInstall as install } -export default Undici - -declare namespace Undici { - const Dispatcher: typeof import('./dispatcher').default - const Pool: typeof import('./pool').default - const RedirectHandler: typeof import ('./handlers').RedirectHandler - const DecoratorHandler: typeof import ('./handlers').DecoratorHandler - const RetryHandler: typeof import ('./retry-handler').default - const BalancedPool: typeof import('./balanced-pool').default - const Client: typeof import('./client').default - const H2CClient: typeof import('./h2c-client').default - const buildConnector: typeof import('./connector').default - const errors: typeof import('./errors').default - const Agent: typeof import('./agent').default - const setGlobalDispatcher: typeof import('./global-dispatcher').setGlobalDispatcher - const getGlobalDispatcher: typeof import('./global-dispatcher').getGlobalDispatcher - const request: typeof import('./api').request - const stream: typeof import('./api').stream - const pipeline: typeof import('./api').pipeline - const connect: typeof import('./api').connect - const upgrade: typeof import('./api').upgrade - const MockClient: typeof import('./mock-client').default - const MockPool: typeof import('./mock-pool').default - const MockAgent: typeof import('./mock-agent').default - const SnapshotAgent: typeof import('./snapshot-agent').SnapshotAgent - const MockCallHistory: typeof import('./mock-call-history').MockCallHistory - const MockCallHistoryLog: typeof import('./mock-call-history').MockCallHistoryLog - const mockErrors: typeof import('./mock-errors').default - const fetch: typeof import('./fetch').fetch - const Headers: typeof import('./fetch').Headers - const Response: typeof import('./fetch').Response - const Request: typeof import('./fetch').Request - const FormData: typeof import('./formdata').FormData - const caches: typeof import('./cache').caches - const interceptors: typeof import('./interceptors').default - const cacheStores: { - MemoryCacheStore: typeof import('./cache-interceptor').default.MemoryCacheStore, - SqliteCacheStore: typeof import('./cache-interceptor').default.SqliteCacheStore - } - const install: typeof globalThisInstall -} diff --git a/build_vtk_bundle/node_modules/undici-types/interceptors.d.ts b/build_vtk_bundle/node_modules/undici-types/interceptors.d.ts deleted file mode 100644 index 74389db2..00000000 --- a/build_vtk_bundle/node_modules/undici-types/interceptors.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import CacheHandler from './cache-interceptor' -import Dispatcher from './dispatcher' -import RetryHandler from './retry-handler' -import { LookupOptions } from 'node:dns' - -export default Interceptors - -declare namespace Interceptors { - export type DumpInterceptorOpts = { maxSize?: number } - export type RetryInterceptorOpts = RetryHandler.RetryOptions - export type RedirectInterceptorOpts = { maxRedirections?: number } - export type DecompressInterceptorOpts = { - skipErrorResponses?: boolean - skipStatusCodes?: number[] - } - - export type ResponseErrorInterceptorOpts = { throwOnError: boolean } - export type CacheInterceptorOpts = CacheHandler.CacheOptions - - // DNS interceptor - export type DNSInterceptorRecord = { address: string, ttl: number, family: 4 | 6 } - export type DNSInterceptorOriginRecords = { 4: { ips: DNSInterceptorRecord[] } | null, 6: { ips: DNSInterceptorRecord[] } | null } - export type DNSInterceptorOpts = { - maxTTL?: number - maxItems?: number - lookup?: (hostname: string, options: LookupOptions, callback: (err: NodeJS.ErrnoException | null, addresses: DNSInterceptorRecord[]) => void) => void - pick?: (origin: URL, records: DNSInterceptorOriginRecords, affinity: 4 | 6) => DNSInterceptorRecord - dualStack?: boolean - affinity?: 4 | 6 - } - - export function dump (opts?: DumpInterceptorOpts): Dispatcher.DispatcherComposeInterceptor - export function retry (opts?: RetryInterceptorOpts): Dispatcher.DispatcherComposeInterceptor - export function redirect (opts?: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor - export function decompress (opts?: DecompressInterceptorOpts): Dispatcher.DispatcherComposeInterceptor - export function responseError (opts?: ResponseErrorInterceptorOpts): Dispatcher.DispatcherComposeInterceptor - export function dns (opts?: DNSInterceptorOpts): Dispatcher.DispatcherComposeInterceptor - export function cache (opts?: CacheInterceptorOpts): Dispatcher.DispatcherComposeInterceptor -} diff --git a/build_vtk_bundle/node_modules/undici-types/mock-agent.d.ts b/build_vtk_bundle/node_modules/undici-types/mock-agent.d.ts deleted file mode 100644 index 330926be..00000000 --- a/build_vtk_bundle/node_modules/undici-types/mock-agent.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -import Agent from './agent' -import Dispatcher from './dispatcher' -import { Interceptable, MockInterceptor } from './mock-interceptor' -import MockDispatch = MockInterceptor.MockDispatch -import { MockCallHistory } from './mock-call-history' - -export default MockAgent - -interface PendingInterceptor extends MockDispatch { - origin: string; -} - -/** A mocked Agent class that implements the Agent API. It allows one to intercept HTTP requests made through undici and return mocked responses instead. */ -declare class MockAgent extends Dispatcher { - constructor (options?: TMockAgentOptions) - /** Creates and retrieves mock Dispatcher instances which can then be used to intercept HTTP requests. If the number of connections on the mock agent is set to 1, a MockClient instance is returned. Otherwise a MockPool instance is returned. */ - get(origin: string): TInterceptable - get(origin: RegExp): TInterceptable - get(origin: ((origin: string) => boolean)): TInterceptable - /** Dispatches a mocked request. */ - dispatch (options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean - /** Closes the mock agent and waits for registered mock pools and clients to also close before resolving. */ - close (): Promise - /** Disables mocking in MockAgent. */ - deactivate (): void - /** Enables mocking in a MockAgent instance. When instantiated, a MockAgent is automatically activated. Therefore, this method is only effective after `MockAgent.deactivate` has been called. */ - activate (): void - /** Define host matchers so only matching requests that aren't intercepted by the mock dispatchers will be attempted. */ - enableNetConnect (): void - enableNetConnect (host: string): void - enableNetConnect (host: RegExp): void - enableNetConnect (host: ((host: string) => boolean)): void - /** Causes all requests to throw when requests are not matched in a MockAgent intercept. */ - disableNetConnect (): void - /** get call history. returns the MockAgent call history or undefined if the option is not enabled. */ - getCallHistory (): MockCallHistory | undefined - /** clear every call history. Any MockCallHistoryLog will be deleted on the MockCallHistory instance */ - clearCallHistory (): void - /** Enable call history. Any subsequence calls will then be registered. */ - enableCallHistory (): this - /** Disable call history. Any subsequence calls will then not be registered. */ - disableCallHistory (): this - pendingInterceptors (): PendingInterceptor[] - assertNoPendingInterceptors (options?: { - pendingInterceptorsFormatter?: PendingInterceptorsFormatter; - }): void -} - -interface PendingInterceptorsFormatter { - format(pendingInterceptors: readonly PendingInterceptor[]): string; -} - -declare namespace MockAgent { - /** MockAgent options. */ - export interface Options extends Agent.Options { - /** A custom agent to be encapsulated by the MockAgent. */ - agent?: Dispatcher; - - /** Ignore trailing slashes in the path */ - ignoreTrailingSlash?: boolean; - - /** Accept URLs with search parameters using non standard syntaxes. default false */ - acceptNonStandardSearchParameters?: boolean; - - /** Enable call history. you can either call MockAgent.enableCallHistory(). default false */ - enableCallHistory?: boolean - } -} diff --git a/build_vtk_bundle/node_modules/undici-types/mock-call-history.d.ts b/build_vtk_bundle/node_modules/undici-types/mock-call-history.d.ts deleted file mode 100644 index df07fa0d..00000000 --- a/build_vtk_bundle/node_modules/undici-types/mock-call-history.d.ts +++ /dev/null @@ -1,111 +0,0 @@ -import Dispatcher from './dispatcher' - -declare namespace MockCallHistoryLog { - /** request's configuration properties */ - export type MockCallHistoryLogProperties = 'protocol' | 'host' | 'port' | 'origin' | 'path' | 'hash' | 'fullUrl' | 'method' | 'searchParams' | 'body' | 'headers' -} - -/** a log reflecting request configuration */ -declare class MockCallHistoryLog { - constructor (requestInit: Dispatcher.DispatchOptions) - /** protocol used. ie. 'https:' or 'http:' etc... */ - protocol: string - /** request's host. */ - host: string - /** request's port. */ - port: string - /** request's origin. ie. https://localhost:3000. */ - origin: string - /** path. never contains searchParams. */ - path: string - /** request's hash. */ - hash: string - /** the full url requested. */ - fullUrl: string - /** request's method. */ - method: string - /** search params. */ - searchParams: Record - /** request's body */ - body: string | null | undefined - /** request's headers */ - headers: Record | null | undefined - - /** returns an Map of property / value pair */ - toMap (): Map | null | undefined> - - /** returns a string computed with all key value pair */ - toString (): string -} - -declare namespace MockCallHistory { - export type FilterCallsOperator = 'AND' | 'OR' - - /** modify the filtering behavior */ - export interface FilterCallsOptions { - /** the operator to apply when filtering. 'OR' will adds any MockCallHistoryLog matching any criteria given. 'AND' will adds only MockCallHistoryLog matching every criteria given. (default 'OR') */ - operator?: FilterCallsOperator | Lowercase - } - /** a function to be executed for filtering MockCallHistoryLog */ - export type FilterCallsFunctionCriteria = (log: MockCallHistoryLog) => boolean - - /** parameter to filter MockCallHistoryLog */ - export type FilterCallsParameter = string | RegExp | undefined | null - - /** an object to execute multiple filtering at once */ - export interface FilterCallsObjectCriteria extends Record { - /** filter by request protocol. ie https: */ - protocol?: FilterCallsParameter; - /** filter by request host. */ - host?: FilterCallsParameter; - /** filter by request port. */ - port?: FilterCallsParameter; - /** filter by request origin. */ - origin?: FilterCallsParameter; - /** filter by request path. */ - path?: FilterCallsParameter; - /** filter by request hash. */ - hash?: FilterCallsParameter; - /** filter by request fullUrl. */ - fullUrl?: FilterCallsParameter; - /** filter by request method. */ - method?: FilterCallsParameter; - } -} - -/** a call history to track requests configuration */ -declare class MockCallHistory { - constructor (name: string) - /** returns an array of MockCallHistoryLog. */ - calls (): Array - /** returns the first MockCallHistoryLog */ - firstCall (): MockCallHistoryLog | undefined - /** returns the last MockCallHistoryLog. */ - lastCall (): MockCallHistoryLog | undefined - /** returns the nth MockCallHistoryLog. */ - nthCall (position: number): MockCallHistoryLog | undefined - /** return all MockCallHistoryLog matching any of criteria given. if an object is used with multiple properties, you can change the operator to apply during filtering on options */ - filterCalls (criteria: MockCallHistory.FilterCallsFunctionCriteria | MockCallHistory.FilterCallsObjectCriteria | RegExp, options?: MockCallHistory.FilterCallsOptions): Array - /** return all MockCallHistoryLog matching the given protocol. if a string is given, it is matched with includes */ - filterCallsByProtocol (protocol: MockCallHistory.FilterCallsParameter): Array - /** return all MockCallHistoryLog matching the given host. if a string is given, it is matched with includes */ - filterCallsByHost (host: MockCallHistory.FilterCallsParameter): Array - /** return all MockCallHistoryLog matching the given port. if a string is given, it is matched with includes */ - filterCallsByPort (port: MockCallHistory.FilterCallsParameter): Array - /** return all MockCallHistoryLog matching the given origin. if a string is given, it is matched with includes */ - filterCallsByOrigin (origin: MockCallHistory.FilterCallsParameter): Array - /** return all MockCallHistoryLog matching the given path. if a string is given, it is matched with includes */ - filterCallsByPath (path: MockCallHistory.FilterCallsParameter): Array - /** return all MockCallHistoryLog matching the given hash. if a string is given, it is matched with includes */ - filterCallsByHash (hash: MockCallHistory.FilterCallsParameter): Array - /** return all MockCallHistoryLog matching the given fullUrl. if a string is given, it is matched with includes */ - filterCallsByFullUrl (fullUrl: MockCallHistory.FilterCallsParameter): Array - /** return all MockCallHistoryLog matching the given method. if a string is given, it is matched with includes */ - filterCallsByMethod (method: MockCallHistory.FilterCallsParameter): Array - /** clear all MockCallHistoryLog on this MockCallHistory. */ - clear (): void - /** use it with for..of loop or spread operator */ - [Symbol.iterator]: () => Generator -} - -export { MockCallHistoryLog, MockCallHistory } diff --git a/build_vtk_bundle/node_modules/undici-types/mock-client.d.ts b/build_vtk_bundle/node_modules/undici-types/mock-client.d.ts deleted file mode 100644 index 702e8246..00000000 --- a/build_vtk_bundle/node_modules/undici-types/mock-client.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import Client from './client' -import Dispatcher from './dispatcher' -import MockAgent from './mock-agent' -import { MockInterceptor, Interceptable } from './mock-interceptor' - -export default MockClient - -/** MockClient extends the Client API and allows one to mock requests. */ -declare class MockClient extends Client implements Interceptable { - constructor (origin: string, options: MockClient.Options) - /** Intercepts any matching requests that use the same origin as this mock client. */ - intercept (options: MockInterceptor.Options): MockInterceptor - /** Dispatches a mocked request. */ - dispatch (options: Dispatcher.DispatchOptions, handlers: Dispatcher.DispatchHandler): boolean - /** Closes the mock client and gracefully waits for enqueued requests to complete. */ - close (): Promise - /** Clean up all the prepared mocks. */ - cleanMocks (): void -} - -declare namespace MockClient { - /** MockClient options. */ - export interface Options extends Client.Options { - /** The agent to associate this MockClient with. */ - agent: MockAgent; - } -} diff --git a/build_vtk_bundle/node_modules/undici-types/mock-errors.d.ts b/build_vtk_bundle/node_modules/undici-types/mock-errors.d.ts deleted file mode 100644 index eefeecd6..00000000 --- a/build_vtk_bundle/node_modules/undici-types/mock-errors.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import Errors from './errors' - -export default MockErrors - -declare namespace MockErrors { - /** The request does not match any registered mock dispatches. */ - export class MockNotMatchedError extends Errors.UndiciError { - constructor (message?: string) - name: 'MockNotMatchedError' - code: 'UND_MOCK_ERR_MOCK_NOT_MATCHED' - } -} diff --git a/build_vtk_bundle/node_modules/undici-types/mock-interceptor.d.ts b/build_vtk_bundle/node_modules/undici-types/mock-interceptor.d.ts deleted file mode 100644 index a48d715a..00000000 --- a/build_vtk_bundle/node_modules/undici-types/mock-interceptor.d.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { IncomingHttpHeaders } from './header' -import Dispatcher from './dispatcher' -import { BodyInit, Headers } from './fetch' - -/** The scope associated with a mock dispatch. */ -declare class MockScope { - constructor (mockDispatch: MockInterceptor.MockDispatch) - /** Delay a reply by a set amount of time in ms. */ - delay (waitInMs: number): MockScope - /** Persist the defined mock data for the associated reply. It will return the defined mock data indefinitely. */ - persist (): MockScope - /** Define a reply for a set amount of matching requests. */ - times (repeatTimes: number): MockScope -} - -/** The interceptor for a Mock. */ -declare class MockInterceptor { - constructor (options: MockInterceptor.Options, mockDispatches: MockInterceptor.MockDispatch[]) - /** Mock an undici request with the defined reply. */ - reply(replyOptionsCallback: MockInterceptor.MockReplyOptionsCallback): MockScope - reply( - statusCode: number, - data?: TData | Buffer | string | MockInterceptor.MockResponseDataHandler, - responseOptions?: MockInterceptor.MockResponseOptions - ): MockScope - /** Mock an undici request by throwing the defined reply error. */ - replyWithError(error: TError): MockScope - /** Set default reply headers on the interceptor for subsequent mocked replies. */ - defaultReplyHeaders (headers: IncomingHttpHeaders): MockInterceptor - /** Set default reply trailers on the interceptor for subsequent mocked replies. */ - defaultReplyTrailers (trailers: Record): MockInterceptor - /** Set automatically calculated content-length header on subsequent mocked replies. */ - replyContentLength (): MockInterceptor -} - -declare namespace MockInterceptor { - /** MockInterceptor options. */ - export interface Options { - /** Path to intercept on. */ - path: string | RegExp | ((path: string) => boolean); - /** Method to intercept on. Defaults to GET. */ - method?: string | RegExp | ((method: string) => boolean); - /** Body to intercept on. */ - body?: string | RegExp | ((body: string) => boolean); - /** Headers to intercept on. */ - headers?: Record boolean)> | ((headers: Record) => boolean); - /** Query params to intercept on */ - query?: Record; - } - export interface MockDispatch extends Options { - times: number | null; - persist: boolean; - consumed: boolean; - data: MockDispatchData; - } - export interface MockDispatchData extends MockResponseOptions { - error: TError | null; - statusCode?: number; - data?: TData | string; - } - export interface MockResponseOptions { - headers?: IncomingHttpHeaders; - trailers?: Record; - } - - export interface MockResponseCallbackOptions { - path: string; - method: string; - headers?: Headers | Record; - origin?: string; - body?: BodyInit | Dispatcher.DispatchOptions['body'] | null; - } - - export type MockResponseDataHandler = ( - opts: MockResponseCallbackOptions - ) => TData | Buffer | string - - export type MockReplyOptionsCallback = ( - opts: MockResponseCallbackOptions - ) => { statusCode: number, data?: TData | Buffer | string, responseOptions?: MockResponseOptions } -} - -interface Interceptable extends Dispatcher { - /** Intercepts any matching requests that use the same origin as this mock client. */ - intercept(options: MockInterceptor.Options): MockInterceptor; - /** Clean up all the prepared mocks. */ - cleanMocks (): void -} - -export { - Interceptable, - MockInterceptor, - MockScope -} diff --git a/build_vtk_bundle/node_modules/undici-types/mock-pool.d.ts b/build_vtk_bundle/node_modules/undici-types/mock-pool.d.ts deleted file mode 100644 index f35f357b..00000000 --- a/build_vtk_bundle/node_modules/undici-types/mock-pool.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import Pool from './pool' -import MockAgent from './mock-agent' -import { Interceptable, MockInterceptor } from './mock-interceptor' -import Dispatcher from './dispatcher' - -export default MockPool - -/** MockPool extends the Pool API and allows one to mock requests. */ -declare class MockPool extends Pool implements Interceptable { - constructor (origin: string, options: MockPool.Options) - /** Intercepts any matching requests that use the same origin as this mock pool. */ - intercept (options: MockInterceptor.Options): MockInterceptor - /** Dispatches a mocked request. */ - dispatch (options: Dispatcher.DispatchOptions, handlers: Dispatcher.DispatchHandler): boolean - /** Closes the mock pool and gracefully waits for enqueued requests to complete. */ - close (): Promise - /** Clean up all the prepared mocks. */ - cleanMocks (): void -} - -declare namespace MockPool { - /** MockPool options. */ - export interface Options extends Pool.Options { - /** The agent to associate this MockPool with. */ - agent: MockAgent; - } -} diff --git a/build_vtk_bundle/node_modules/undici-types/package.json b/build_vtk_bundle/node_modules/undici-types/package.json deleted file mode 100644 index a5e7d9de..00000000 --- a/build_vtk_bundle/node_modules/undici-types/package.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "name": "undici-types", - "version": "7.16.0", - "description": "A stand-alone types package for Undici", - "homepage": "https://undici.nodejs.org", - "bugs": { - "url": "https://github.com/nodejs/undici/issues" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/nodejs/undici.git" - }, - "license": "MIT", - "types": "index.d.ts", - "files": [ - "*.d.ts" - ], - "contributors": [ - { - "name": "Daniele Belardi", - "url": "https://github.com/dnlup", - "author": true - }, - { - "name": "Ethan Arrowood", - "url": "https://github.com/ethan-arrowood", - "author": true - }, - { - "name": "Matteo Collina", - "url": "https://github.com/mcollina", - "author": true - }, - { - "name": "Matthew Aitken", - "url": "https://github.com/KhafraDev", - "author": true - }, - { - "name": "Robert Nagy", - "url": "https://github.com/ronag", - "author": true - }, - { - "name": "Szymon Marczak", - "url": "https://github.com/szmarczak", - "author": true - }, - { - "name": "Tomas Della Vedova", - "url": "https://github.com/delvedor", - "author": true - } - ] -} \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/undici-types/patch.d.ts b/build_vtk_bundle/node_modules/undici-types/patch.d.ts deleted file mode 100644 index 8f7acbb0..00000000 --- a/build_vtk_bundle/node_modules/undici-types/patch.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/// - -// See https://github.com/nodejs/undici/issues/1740 - -export interface EventInit { - bubbles?: boolean - cancelable?: boolean - composed?: boolean -} - -export interface EventListenerOptions { - capture?: boolean -} - -export interface AddEventListenerOptions extends EventListenerOptions { - once?: boolean - passive?: boolean - signal?: AbortSignal -} - -export type EventListenerOrEventListenerObject = EventListener | EventListenerObject - -export interface EventListenerObject { - handleEvent (object: Event): void -} - -export interface EventListener { - (evt: Event): void -} diff --git a/build_vtk_bundle/node_modules/undici-types/pool-stats.d.ts b/build_vtk_bundle/node_modules/undici-types/pool-stats.d.ts deleted file mode 100644 index f76a5f61..00000000 --- a/build_vtk_bundle/node_modules/undici-types/pool-stats.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import Pool from './pool' - -export default PoolStats - -declare class PoolStats { - constructor (pool: Pool) - /** Number of open socket connections in this pool. */ - connected: number - /** Number of open socket connections in this pool that do not have an active request. */ - free: number - /** Number of pending requests across all clients in this pool. */ - pending: number - /** Number of queued requests across all clients in this pool. */ - queued: number - /** Number of currently active requests across all clients in this pool. */ - running: number - /** Number of active, pending, or queued requests across all clients in this pool. */ - size: number -} diff --git a/build_vtk_bundle/node_modules/undici-types/pool.d.ts b/build_vtk_bundle/node_modules/undici-types/pool.d.ts deleted file mode 100644 index 5198476e..00000000 --- a/build_vtk_bundle/node_modules/undici-types/pool.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import Client from './client' -import TPoolStats from './pool-stats' -import { URL } from 'url' -import Dispatcher from './dispatcher' - -export default Pool - -type PoolConnectOptions = Omit - -declare class Pool extends Dispatcher { - constructor (url: string | URL, options?: Pool.Options) - /** `true` after `pool.close()` has been called. */ - closed: boolean - /** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */ - destroyed: boolean - /** Aggregate stats for a Pool. */ - readonly stats: TPoolStats - - // Override dispatcher APIs. - override connect ( - options: PoolConnectOptions - ): Promise - override connect ( - options: PoolConnectOptions, - callback: (err: Error | null, data: Dispatcher.ConnectData) => void - ): void -} - -declare namespace Pool { - export type PoolStats = TPoolStats - export interface Options extends Client.Options { - /** Default: `(origin, opts) => new Client(origin, opts)`. */ - factory?(origin: URL, opts: object): Dispatcher; - /** The max number of clients to create. `null` if no limit. Default `null`. */ - connections?: number | null; - /** The amount of time before a client is removed from the pool and closed. `null` if no time limit. Default `null` */ - clientTtl?: number | null; - - interceptors?: { Pool?: readonly Dispatcher.DispatchInterceptor[] } & Client.Options['interceptors'] - } -} diff --git a/build_vtk_bundle/node_modules/undici-types/proxy-agent.d.ts b/build_vtk_bundle/node_modules/undici-types/proxy-agent.d.ts deleted file mode 100644 index 41555422..00000000 --- a/build_vtk_bundle/node_modules/undici-types/proxy-agent.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import Agent from './agent' -import buildConnector from './connector' -import Dispatcher from './dispatcher' -import { IncomingHttpHeaders } from './header' - -export default ProxyAgent - -declare class ProxyAgent extends Dispatcher { - constructor (options: ProxyAgent.Options | string) - - dispatch (options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean - close (): Promise -} - -declare namespace ProxyAgent { - export interface Options extends Agent.Options { - uri: string; - /** - * @deprecated use opts.token - */ - auth?: string; - token?: string; - headers?: IncomingHttpHeaders; - requestTls?: buildConnector.BuildOptions; - proxyTls?: buildConnector.BuildOptions; - clientFactory?(origin: URL, opts: object): Dispatcher; - proxyTunnel?: boolean; - } -} diff --git a/build_vtk_bundle/node_modules/undici-types/readable.d.ts b/build_vtk_bundle/node_modules/undici-types/readable.d.ts deleted file mode 100644 index e4f314b4..00000000 --- a/build_vtk_bundle/node_modules/undici-types/readable.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { Readable } from 'stream' -import { Blob } from 'buffer' - -export default BodyReadable - -declare class BodyReadable extends Readable { - constructor (opts: { - resume: (this: Readable, size: number) => void | null; - abort: () => void | null; - contentType?: string; - contentLength?: number; - highWaterMark?: number; - }) - - /** Consumes and returns the body as a string - * https://fetch.spec.whatwg.org/#dom-body-text - */ - text (): Promise - - /** Consumes and returns the body as a JavaScript Object - * https://fetch.spec.whatwg.org/#dom-body-json - */ - json (): Promise - - /** Consumes and returns the body as a Blob - * https://fetch.spec.whatwg.org/#dom-body-blob - */ - blob (): Promise - - /** Consumes and returns the body as an Uint8Array - * https://fetch.spec.whatwg.org/#dom-body-bytes - */ - bytes (): Promise - - /** Consumes and returns the body as an ArrayBuffer - * https://fetch.spec.whatwg.org/#dom-body-arraybuffer - */ - arrayBuffer (): Promise - - /** Not implemented - * - * https://fetch.spec.whatwg.org/#dom-body-formdata - */ - formData (): Promise - - /** Returns true if the body is not null and the body has been consumed - * - * Otherwise, returns false - * - * https://fetch.spec.whatwg.org/#dom-body-bodyused - */ - readonly bodyUsed: boolean - - /** - * If body is null, it should return null as the body - * - * If body is not null, should return the body as a ReadableStream - * - * https://fetch.spec.whatwg.org/#dom-body-body - */ - readonly body: never | undefined - - /** Dumps the response body by reading `limit` number of bytes. - * @param opts.limit Number of bytes to read (optional) - Default: 131072 - * @param opts.signal AbortSignal to cancel the operation (optional) - */ - dump (opts?: { limit: number; signal?: AbortSignal }): Promise -} diff --git a/build_vtk_bundle/node_modules/undici-types/retry-agent.d.ts b/build_vtk_bundle/node_modules/undici-types/retry-agent.d.ts deleted file mode 100644 index 82268c37..00000000 --- a/build_vtk_bundle/node_modules/undici-types/retry-agent.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import Dispatcher from './dispatcher' -import RetryHandler from './retry-handler' - -export default RetryAgent - -declare class RetryAgent extends Dispatcher { - constructor (dispatcher: Dispatcher, options?: RetryHandler.RetryOptions) -} diff --git a/build_vtk_bundle/node_modules/undici-types/retry-handler.d.ts b/build_vtk_bundle/node_modules/undici-types/retry-handler.d.ts deleted file mode 100644 index 3bc484b2..00000000 --- a/build_vtk_bundle/node_modules/undici-types/retry-handler.d.ts +++ /dev/null @@ -1,125 +0,0 @@ -import Dispatcher from './dispatcher' - -export default RetryHandler - -declare class RetryHandler implements Dispatcher.DispatchHandler { - constructor ( - options: Dispatcher.DispatchOptions & { - retryOptions?: RetryHandler.RetryOptions; - }, - retryHandlers: RetryHandler.RetryHandlers - ) -} - -declare namespace RetryHandler { - export type RetryState = { counter: number; } - - export type RetryContext = { - state: RetryState; - opts: Dispatcher.DispatchOptions & { - retryOptions?: RetryHandler.RetryOptions; - }; - } - - export type OnRetryCallback = (result?: Error | null) => void - - export type RetryCallback = ( - err: Error, - context: { - state: RetryState; - opts: Dispatcher.DispatchOptions & { - retryOptions?: RetryHandler.RetryOptions; - }; - }, - callback: OnRetryCallback - ) => void - - export interface RetryOptions { - /** - * If true, the retry handler will throw an error if the request fails, - * this will prevent the folling handlers from being called, and will destroy the socket. - * - * @type {boolean} - * @memberof RetryOptions - * @default true - */ - throwOnError?: boolean; - /** - * Callback to be invoked on every retry iteration. - * It receives the error, current state of the retry object and the options object - * passed when instantiating the retry handler. - * - * @type {RetryCallback} - * @memberof RetryOptions - */ - retry?: RetryCallback; - /** - * Maximum number of retries to allow. - * - * @type {number} - * @memberof RetryOptions - * @default 5 - */ - maxRetries?: number; - /** - * Max number of milliseconds allow between retries - * - * @type {number} - * @memberof RetryOptions - * @default 30000 - */ - maxTimeout?: number; - /** - * Initial number of milliseconds to wait before retrying for the first time. - * - * @type {number} - * @memberof RetryOptions - * @default 500 - */ - minTimeout?: number; - /** - * Factior to multiply the timeout factor between retries. - * - * @type {number} - * @memberof RetryOptions - * @default 2 - */ - timeoutFactor?: number; - /** - * It enables to automatically infer timeout between retries based on the `Retry-After` header. - * - * @type {boolean} - * @memberof RetryOptions - * @default true - */ - retryAfter?: boolean; - /** - * HTTP methods to retry. - * - * @type {Dispatcher.HttpMethod[]} - * @memberof RetryOptions - * @default ['GET', 'HEAD', 'OPTIONS', 'PUT', 'DELETE', 'TRACE'], - */ - methods?: Dispatcher.HttpMethod[]; - /** - * Error codes to be retried. e.g. `ECONNRESET`, `ENOTFOUND`, `ETIMEDOUT`, `ECONNREFUSED`, etc. - * - * @type {string[]} - * @default ['ECONNRESET','ECONNREFUSED','ENOTFOUND','ENETDOWN','ENETUNREACH','EHOSTDOWN','EHOSTUNREACH','EPIPE'] - */ - errorCodes?: string[]; - /** - * HTTP status codes to be retried. - * - * @type {number[]} - * @memberof RetryOptions - * @default [500, 502, 503, 504, 429], - */ - statusCodes?: number[]; - } - - export interface RetryHandlers { - dispatch: Dispatcher['dispatch']; - handler: Dispatcher.DispatchHandler; - } -} diff --git a/build_vtk_bundle/node_modules/undici-types/snapshot-agent.d.ts b/build_vtk_bundle/node_modules/undici-types/snapshot-agent.d.ts deleted file mode 100644 index f1d1ccdb..00000000 --- a/build_vtk_bundle/node_modules/undici-types/snapshot-agent.d.ts +++ /dev/null @@ -1,109 +0,0 @@ -import MockAgent from './mock-agent' - -declare class SnapshotRecorder { - constructor (options?: SnapshotRecorder.Options) - - record (requestOpts: any, response: any): Promise - findSnapshot (requestOpts: any): SnapshotRecorder.Snapshot | undefined - loadSnapshots (filePath?: string): Promise - saveSnapshots (filePath?: string): Promise - clear (): void - getSnapshots (): SnapshotRecorder.Snapshot[] - size (): number - resetCallCounts (): void - deleteSnapshot (requestOpts: any): boolean - getSnapshotInfo (requestOpts: any): SnapshotRecorder.SnapshotInfo | null - replaceSnapshots (snapshotData: SnapshotRecorder.SnapshotData[]): void - destroy (): void -} - -declare namespace SnapshotRecorder { - type SnapshotRecorderMode = 'record' | 'playback' | 'update' - - export interface Options { - snapshotPath?: string - mode?: SnapshotRecorderMode - maxSnapshots?: number - autoFlush?: boolean - flushInterval?: number - matchHeaders?: string[] - ignoreHeaders?: string[] - excludeHeaders?: string[] - matchBody?: boolean - matchQuery?: boolean - caseSensitive?: boolean - shouldRecord?: (requestOpts: any) => boolean - shouldPlayback?: (requestOpts: any) => boolean - excludeUrls?: (string | RegExp)[] - } - - export interface Snapshot { - request: { - method: string - url: string - headers: Record - body?: string - } - responses: { - statusCode: number - headers: Record - body: string - trailers: Record - }[] - callCount: number - timestamp: string - } - - export interface SnapshotInfo { - hash: string - request: { - method: string - url: string - headers: Record - body?: string - } - responseCount: number - callCount: number - timestamp: string - } - - export interface SnapshotData { - hash: string - snapshot: Snapshot - } -} - -declare class SnapshotAgent extends MockAgent { - constructor (options?: SnapshotAgent.Options) - - saveSnapshots (filePath?: string): Promise - loadSnapshots (filePath?: string): Promise - getRecorder (): SnapshotRecorder - getMode (): SnapshotRecorder.SnapshotRecorderMode - clearSnapshots (): void - resetCallCounts (): void - deleteSnapshot (requestOpts: any): boolean - getSnapshotInfo (requestOpts: any): SnapshotRecorder.SnapshotInfo | null - replaceSnapshots (snapshotData: SnapshotRecorder.SnapshotData[]): void -} - -declare namespace SnapshotAgent { - export interface Options extends MockAgent.Options { - mode?: SnapshotRecorder.SnapshotRecorderMode - snapshotPath?: string - maxSnapshots?: number - autoFlush?: boolean - flushInterval?: number - matchHeaders?: string[] - ignoreHeaders?: string[] - excludeHeaders?: string[] - matchBody?: boolean - matchQuery?: boolean - caseSensitive?: boolean - shouldRecord?: (requestOpts: any) => boolean - shouldPlayback?: (requestOpts: any) => boolean - excludeUrls?: (string | RegExp)[] - } -} - -export { SnapshotAgent, SnapshotRecorder } diff --git a/build_vtk_bundle/node_modules/undici-types/util.d.ts b/build_vtk_bundle/node_modules/undici-types/util.d.ts deleted file mode 100644 index 8fc50cc4..00000000 --- a/build_vtk_bundle/node_modules/undici-types/util.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export namespace util { - /** - * Retrieves a header name and returns its lowercase value. - * @param value Header name - */ - export function headerNameToString (value: string | Buffer): string - - /** - * Receives a header object and returns the parsed value. - * @param headers Header object - * @param obj Object to specify a proxy object. Used to assign parsed values. - * @returns If `obj` is specified, it is equivalent to `obj`. - */ - export function parseHeaders ( - headers: (Buffer | string | (Buffer | string)[])[], - obj?: Record - ): Record -} diff --git a/build_vtk_bundle/node_modules/undici-types/utility.d.ts b/build_vtk_bundle/node_modules/undici-types/utility.d.ts deleted file mode 100644 index bfb3ca77..00000000 --- a/build_vtk_bundle/node_modules/undici-types/utility.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -type AutocompletePrimitiveBaseType = - T extends string ? string : - T extends number ? number : - T extends boolean ? boolean : - never - -export type Autocomplete = T | (AutocompletePrimitiveBaseType & Record) diff --git a/build_vtk_bundle/node_modules/undici-types/webidl.d.ts b/build_vtk_bundle/node_modules/undici-types/webidl.d.ts deleted file mode 100644 index d2a8eb9c..00000000 --- a/build_vtk_bundle/node_modules/undici-types/webidl.d.ts +++ /dev/null @@ -1,341 +0,0 @@ -// These types are not exported, and are only used internally -import * as undici from './index' - -/** - * Take in an unknown value and return one that is of type T - */ -type Converter = (object: unknown) => T - -type SequenceConverter = (object: unknown, iterable?: IterableIterator) => T[] - -type RecordConverter = (object: unknown) => Record - -interface WebidlErrors { - /** - * @description Instantiate an error - */ - exception (opts: { header: string, message: string }): TypeError - /** - * @description Instantiate an error when conversion from one type to another has failed - */ - conversionFailed (opts: { - prefix: string - argument: string - types: string[] - }): TypeError - /** - * @description Throw an error when an invalid argument is provided - */ - invalidArgument (opts: { - prefix: string - value: string - type: string - }): TypeError -} - -interface WebIDLTypes { - UNDEFINED: 1, - BOOLEAN: 2, - STRING: 3, - SYMBOL: 4, - NUMBER: 5, - BIGINT: 6, - NULL: 7 - OBJECT: 8 -} - -interface WebidlUtil { - /** - * @see https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values - */ - Type (object: unknown): WebIDLTypes[keyof WebIDLTypes] - - TypeValueToString (o: unknown): - | 'Undefined' - | 'Boolean' - | 'String' - | 'Symbol' - | 'Number' - | 'BigInt' - | 'Null' - | 'Object' - - Types: WebIDLTypes - - /** - * @see https://webidl.spec.whatwg.org/#abstract-opdef-converttoint - */ - ConvertToInt ( - V: unknown, - bitLength: number, - signedness: 'signed' | 'unsigned', - flags?: number - ): number - - /** - * @see https://webidl.spec.whatwg.org/#abstract-opdef-integerpart - */ - IntegerPart (N: number): number - - /** - * Stringifies {@param V} - */ - Stringify (V: any): string - - MakeTypeAssertion (I: I): (arg: any) => arg is I - - /** - * Mark a value as uncloneable for Node.js. - * This is only effective in some newer Node.js versions. - */ - markAsUncloneable (V: any): void - - IsResizableArrayBuffer (V: ArrayBufferLike): boolean - - HasFlag (flag: number, attributes: number): boolean -} - -interface WebidlConverters { - /** - * @see https://webidl.spec.whatwg.org/#es-DOMString - */ - DOMString (V: unknown, prefix: string, argument: string, flags?: number): string - - /** - * @see https://webidl.spec.whatwg.org/#es-ByteString - */ - ByteString (V: unknown, prefix: string, argument: string): string - - /** - * @see https://webidl.spec.whatwg.org/#es-USVString - */ - USVString (V: unknown): string - - /** - * @see https://webidl.spec.whatwg.org/#es-boolean - */ - boolean (V: unknown): boolean - - /** - * @see https://webidl.spec.whatwg.org/#es-any - */ - any (V: Value): Value - - /** - * @see https://webidl.spec.whatwg.org/#es-long-long - */ - ['long long'] (V: unknown): number - - /** - * @see https://webidl.spec.whatwg.org/#es-unsigned-long-long - */ - ['unsigned long long'] (V: unknown): number - - /** - * @see https://webidl.spec.whatwg.org/#es-unsigned-long - */ - ['unsigned long'] (V: unknown): number - - /** - * @see https://webidl.spec.whatwg.org/#es-unsigned-short - */ - ['unsigned short'] (V: unknown, flags?: number): number - - /** - * @see https://webidl.spec.whatwg.org/#idl-ArrayBuffer - */ - ArrayBuffer ( - V: unknown, - prefix: string, - argument: string, - options?: { allowResizable: boolean } - ): ArrayBuffer - - /** - * @see https://webidl.spec.whatwg.org/#idl-SharedArrayBuffer - */ - SharedArrayBuffer ( - V: unknown, - prefix: string, - argument: string, - options?: { allowResizable: boolean } - ): SharedArrayBuffer - - /** - * @see https://webidl.spec.whatwg.org/#es-buffer-source-types - */ - TypedArray ( - V: unknown, - T: new () => NodeJS.TypedArray, - prefix: string, - argument: string, - flags?: number - ): NodeJS.TypedArray - - /** - * @see https://webidl.spec.whatwg.org/#es-buffer-source-types - */ - DataView ( - V: unknown, - prefix: string, - argument: string, - flags?: number - ): DataView - - /** - * @see https://webidl.spec.whatwg.org/#es-buffer-source-types - */ - ArrayBufferView ( - V: unknown, - prefix: string, - argument: string, - flags?: number - ): NodeJS.ArrayBufferView - - /** - * @see https://webidl.spec.whatwg.org/#BufferSource - */ - BufferSource ( - V: unknown, - prefix: string, - argument: string, - flags?: number - ): ArrayBuffer | NodeJS.ArrayBufferView - - /** - * @see https://webidl.spec.whatwg.org/#AllowSharedBufferSource - */ - AllowSharedBufferSource ( - V: unknown, - prefix: string, - argument: string, - flags?: number - ): ArrayBuffer | SharedArrayBuffer | NodeJS.ArrayBufferView - - ['sequence']: SequenceConverter - - ['sequence>']: SequenceConverter - - ['record']: RecordConverter - - /** - * @see https://fetch.spec.whatwg.org/#requestinfo - */ - RequestInfo (V: unknown): undici.Request | string - - /** - * @see https://fetch.spec.whatwg.org/#requestinit - */ - RequestInit (V: unknown): undici.RequestInit - - /** - * @see https://html.spec.whatwg.org/multipage/webappapis.html#eventhandlernonnull - */ - EventHandlerNonNull (V: unknown): Function | null - - WebSocketStreamWrite (V: unknown): ArrayBuffer | NodeJS.TypedArray | string - - [Key: string]: (...args: any[]) => unknown -} - -type WebidlIsFunction = (arg: any) => arg is T - -interface WebidlIs { - Request: WebidlIsFunction - Response: WebidlIsFunction - ReadableStream: WebidlIsFunction - Blob: WebidlIsFunction - URLSearchParams: WebidlIsFunction - File: WebidlIsFunction - FormData: WebidlIsFunction - URL: WebidlIsFunction - WebSocketError: WebidlIsFunction - AbortSignal: WebidlIsFunction - MessagePort: WebidlIsFunction - USVString: WebidlIsFunction - /** - * @see https://webidl.spec.whatwg.org/#BufferSource - */ - BufferSource: WebidlIsFunction -} - -export interface Webidl { - errors: WebidlErrors - util: WebidlUtil - converters: WebidlConverters - is: WebidlIs - attributes: WebIDLExtendedAttributes - - /** - * @description Performs a brand-check on {@param V} to ensure it is a - * {@param cls} object. - */ - brandCheck unknown>(V: unknown, cls: Interface): asserts V is Interface - - brandCheckMultiple unknown)[]> (list: Interfaces): (V: any) => asserts V is Interfaces[number] - - /** - * @see https://webidl.spec.whatwg.org/#es-sequence - * @description Convert a value, V, to a WebIDL sequence type. - */ - sequenceConverter (C: Converter): SequenceConverter - - illegalConstructor (): never - - /** - * @see https://webidl.spec.whatwg.org/#es-to-record - * @description Convert a value, V, to a WebIDL record type. - */ - recordConverter ( - keyConverter: Converter, - valueConverter: Converter - ): RecordConverter - - /** - * Similar to {@link Webidl.brandCheck} but allows skipping the check if third party - * interfaces are allowed. - */ - interfaceConverter (typeCheck: WebidlIsFunction, name: string): ( - V: unknown, - prefix: string, - argument: string - ) => asserts V is Interface - - // TODO(@KhafraDev): a type could likely be implemented that can infer the return type - // from the converters given? - /** - * Converts a value, V, to a WebIDL dictionary types. Allows limiting which keys are - * allowed, values allowed, optional and required keys. Auto converts the value to - * a type given a converter. - */ - dictionaryConverter (converters: { - key: string, - defaultValue?: () => unknown, - required?: boolean, - converter: (...args: unknown[]) => unknown, - allowedValues?: unknown[] - }[]): (V: unknown) => Record - - /** - * @see https://webidl.spec.whatwg.org/#idl-nullable-type - * @description allows a type, V, to be null - */ - nullableConverter ( - converter: Converter - ): (V: unknown) => ReturnType | null - - argumentLengthCheck (args: { length: number }, min: number, context: string): void -} - -interface WebIDLExtendedAttributes { - /** https://webidl.spec.whatwg.org/#Clamp */ - Clamp: number - /** https://webidl.spec.whatwg.org/#EnforceRange */ - EnforceRange: number - /** https://webidl.spec.whatwg.org/#AllowShared */ - AllowShared: number - /** https://webidl.spec.whatwg.org/#AllowResizable */ - AllowResizable: number - /** https://webidl.spec.whatwg.org/#LegacyNullToEmptyString */ - LegacyNullToEmptyString: number -} diff --git a/build_vtk_bundle/node_modules/undici-types/websocket.d.ts b/build_vtk_bundle/node_modules/undici-types/websocket.d.ts deleted file mode 100644 index a8477c1c..00000000 --- a/build_vtk_bundle/node_modules/undici-types/websocket.d.ts +++ /dev/null @@ -1,186 +0,0 @@ -/// - -import type { Blob } from 'buffer' -import type { ReadableStream, WritableStream } from 'stream/web' -import type { MessagePort } from 'worker_threads' -import { - EventInit, - EventListenerOptions, - AddEventListenerOptions, - EventListenerOrEventListenerObject -} from './patch' -import Dispatcher from './dispatcher' -import { HeadersInit } from './fetch' - -export type BinaryType = 'blob' | 'arraybuffer' - -interface WebSocketEventMap { - close: CloseEvent - error: ErrorEvent - message: MessageEvent - open: Event -} - -interface WebSocket extends EventTarget { - binaryType: BinaryType - - readonly bufferedAmount: number - readonly extensions: string - - onclose: ((this: WebSocket, ev: WebSocketEventMap['close']) => any) | null - onerror: ((this: WebSocket, ev: WebSocketEventMap['error']) => any) | null - onmessage: ((this: WebSocket, ev: WebSocketEventMap['message']) => any) | null - onopen: ((this: WebSocket, ev: WebSocketEventMap['open']) => any) | null - - readonly protocol: string - readonly readyState: number - readonly url: string - - close(code?: number, reason?: string): void - send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void - - readonly CLOSED: number - readonly CLOSING: number - readonly CONNECTING: number - readonly OPEN: number - - addEventListener( - type: K, - listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, - options?: boolean | AddEventListenerOptions - ): void - addEventListener( - type: string, - listener: EventListenerOrEventListenerObject, - options?: boolean | AddEventListenerOptions - ): void - removeEventListener( - type: K, - listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, - options?: boolean | EventListenerOptions - ): void - removeEventListener( - type: string, - listener: EventListenerOrEventListenerObject, - options?: boolean | EventListenerOptions - ): void -} - -export declare const WebSocket: { - prototype: WebSocket - new (url: string | URL, protocols?: string | string[] | WebSocketInit): WebSocket - readonly CLOSED: number - readonly CLOSING: number - readonly CONNECTING: number - readonly OPEN: number -} - -interface CloseEventInit extends EventInit { - code?: number - reason?: string - wasClean?: boolean -} - -interface CloseEvent extends Event { - readonly code: number - readonly reason: string - readonly wasClean: boolean -} - -export declare const CloseEvent: { - prototype: CloseEvent - new (type: string, eventInitDict?: CloseEventInit): CloseEvent -} - -interface MessageEventInit extends EventInit { - data?: T - lastEventId?: string - origin?: string - ports?: (typeof MessagePort)[] - source?: typeof MessagePort | null -} - -interface MessageEvent extends Event { - readonly data: T - readonly lastEventId: string - readonly origin: string - readonly ports: ReadonlyArray - readonly source: typeof MessagePort | null - initMessageEvent( - type: string, - bubbles?: boolean, - cancelable?: boolean, - data?: any, - origin?: string, - lastEventId?: string, - source?: typeof MessagePort | null, - ports?: (typeof MessagePort)[] - ): void; -} - -export declare const MessageEvent: { - prototype: MessageEvent - new(type: string, eventInitDict?: MessageEventInit): MessageEvent -} - -interface ErrorEventInit extends EventInit { - message?: string - filename?: string - lineno?: number - colno?: number - error?: any -} - -interface ErrorEvent extends Event { - readonly message: string - readonly filename: string - readonly lineno: number - readonly colno: number - readonly error: Error -} - -export declare const ErrorEvent: { - prototype: ErrorEvent - new (type: string, eventInitDict?: ErrorEventInit): ErrorEvent -} - -interface WebSocketInit { - protocols?: string | string[], - dispatcher?: Dispatcher, - headers?: HeadersInit -} - -interface WebSocketStreamOptions { - protocols?: string | string[] - signal?: AbortSignal -} - -interface WebSocketCloseInfo { - closeCode: number - reason: string -} - -interface WebSocketStream { - closed: Promise - opened: Promise<{ - extensions: string - protocol: string - readable: ReadableStream - writable: WritableStream - }> - url: string -} - -export declare const WebSocketStream: { - prototype: WebSocketStream - new (url: string | URL, options?: WebSocketStreamOptions): WebSocketStream -} - -interface WebSocketError extends Event, WebSocketCloseInfo {} - -export declare const WebSocketError: { - prototype: WebSocketError - new (type: string, init?: WebSocketCloseInfo): WebSocketError -} - -export declare const ping: (ws: WebSocket, body?: Buffer) => void diff --git a/build_vtk_bundle/node_modules/unicode-canonical-property-names-ecmascript/LICENSE-MIT.txt b/build_vtk_bundle/node_modules/unicode-canonical-property-names-ecmascript/LICENSE-MIT.txt deleted file mode 100644 index a41e0a7e..00000000 --- a/build_vtk_bundle/node_modules/unicode-canonical-property-names-ecmascript/LICENSE-MIT.txt +++ /dev/null @@ -1,20 +0,0 @@ -Copyright Mathias Bynens - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/unicode-canonical-property-names-ecmascript/README.md b/build_vtk_bundle/node_modules/unicode-canonical-property-names-ecmascript/README.md deleted file mode 100644 index 62ff5ba1..00000000 --- a/build_vtk_bundle/node_modules/unicode-canonical-property-names-ecmascript/README.md +++ /dev/null @@ -1,58 +0,0 @@ -# unicode-canonical-property-names-ecmascript [![unicode-canonical-property-names-ecmascript on npm](https://img.shields.io/npm/v/unicode-canonical-property-names-ecmascript)](https://www.npmjs.com/package/unicode-canonical-property-names-ecmascript) - -_unicode-canonical-property-names-ecmascript_ exports the set of canonical Unicode property names that are supported in [ECMAScript RegExp property escapes](https://github.com/tc39/proposal-regexp-unicode-property-escapes). - -## Installation - -To use _unicode-canonical-property-names-ecmascript_, install it as a dependency via [npm](https://www.npmjs.com/): - -```bash -$ npm install unicode-canonical-property-names-ecmascript -``` - -Then, `require` it: - -```js -const properties = require('unicode-canonical-property-names-ecmascript'); -``` - -## Example - -```js -properties.has('ID_Start'); -// → true -properties.has('IDS'); -// → false -``` - -## For maintainers - -### How to publish a new release - -1. On the `main` branch, bump the version number in `package.json`: - - ```sh - npm version patch -m 'Release v%s' - ``` - - Instead of `patch`, use `minor` or `major` [as needed](https://semver.org/). - - Note that this produces a Git commit + tag. - -1. Push the release commit and tag: - - ```sh - git push && git push --tags - ``` - - Our CI then automatically publishes the new release to npm. - -## Author - -| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | -|---| -| [Mathias Bynens](https://mathiasbynens.be/) | - -## License - -_unicode-canonical-property-names-ecmascript_ is available under the [MIT](https://mths.be/mit) license. diff --git a/build_vtk_bundle/node_modules/unicode-canonical-property-names-ecmascript/index.js b/build_vtk_bundle/node_modules/unicode-canonical-property-names-ecmascript/index.js deleted file mode 100755 index e54193d2..00000000 --- a/build_vtk_bundle/node_modules/unicode-canonical-property-names-ecmascript/index.js +++ /dev/null @@ -1,60 +0,0 @@ -module.exports = new Set([ - // Non-binary properties: - 'General_Category', - 'Script', - 'Script_Extensions', - // Binary properties: - 'Alphabetic', - 'Any', - 'ASCII', - 'ASCII_Hex_Digit', - 'Assigned', - 'Bidi_Control', - 'Bidi_Mirrored', - 'Case_Ignorable', - 'Cased', - 'Changes_When_Casefolded', - 'Changes_When_Casemapped', - 'Changes_When_Lowercased', - 'Changes_When_NFKC_Casefolded', - 'Changes_When_Titlecased', - 'Changes_When_Uppercased', - 'Dash', - 'Default_Ignorable_Code_Point', - 'Deprecated', - 'Diacritic', - 'Emoji', - 'Emoji_Component', - 'Emoji_Modifier', - 'Emoji_Modifier_Base', - 'Emoji_Presentation', - 'Extended_Pictographic', - 'Extender', - 'Grapheme_Base', - 'Grapheme_Extend', - 'Hex_Digit', - 'ID_Continue', - 'ID_Start', - 'Ideographic', - 'IDS_Binary_Operator', - 'IDS_Trinary_Operator', - 'Join_Control', - 'Logical_Order_Exception', - 'Lowercase', - 'Math', - 'Noncharacter_Code_Point', - 'Pattern_Syntax', - 'Pattern_White_Space', - 'Quotation_Mark', - 'Radical', - 'Regional_Indicator', - 'Sentence_Terminal', - 'Soft_Dotted', - 'Terminal_Punctuation', - 'Unified_Ideograph', - 'Uppercase', - 'Variation_Selector', - 'White_Space', - 'XID_Continue', - 'XID_Start' -]); diff --git a/build_vtk_bundle/node_modules/unicode-canonical-property-names-ecmascript/package.json b/build_vtk_bundle/node_modules/unicode-canonical-property-names-ecmascript/package.json deleted file mode 100644 index 2115889e..00000000 --- a/build_vtk_bundle/node_modules/unicode-canonical-property-names-ecmascript/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "unicode-canonical-property-names-ecmascript", - "version": "2.0.1", - "description": "The set of canonical Unicode property names supported in ECMAScript RegExp property escapes.", - "homepage": "https://github.com/mathiasbynens/unicode-canonical-property-names-ecmascript", - "main": "index.js", - "engines": { - "node": ">=4" - }, - "files": [ - "LICENSE-MIT.txt", - "index.js" - ], - "keywords": [ - "unicode", - "unicode properties" - ], - "license": "MIT", - "author": { - "name": "Mathias Bynens", - "url": "https://mathiasbynens.be/" - }, - "repository": { - "type": "git", - "url": "https://github.com/mathiasbynens/unicode-canonical-property-names-ecmascript.git" - }, - "bugs": "https://github.com/mathiasbynens/unicode-canonical-property-names-ecmascript/issues", - "devDependencies": { - "ava": "*" - }, - "scripts": { - "test": "ava tests/tests.js" - } -} diff --git a/build_vtk_bundle/node_modules/unicode-match-property-ecmascript/LICENSE-MIT.txt b/build_vtk_bundle/node_modules/unicode-match-property-ecmascript/LICENSE-MIT.txt deleted file mode 100644 index a41e0a7e..00000000 --- a/build_vtk_bundle/node_modules/unicode-match-property-ecmascript/LICENSE-MIT.txt +++ /dev/null @@ -1,20 +0,0 @@ -Copyright Mathias Bynens - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/unicode-match-property-ecmascript/README.md b/build_vtk_bundle/node_modules/unicode-match-property-ecmascript/README.md deleted file mode 100644 index 4b1c2b8d..00000000 --- a/build_vtk_bundle/node_modules/unicode-match-property-ecmascript/README.md +++ /dev/null @@ -1,69 +0,0 @@ -# unicode-match-property-ecmascript [![Build status](https://travis-ci.org/mathiasbynens/unicode-match-property-ecmascript.svg?branch=main)](https://travis-ci.org/mathiasbynens/unicode-match-property-ecmascript) [![unicode-match-property-ecmascript on npm](https://img.shields.io/npm/v/unicode-match-property-ecmascript)](https://www.npmjs.com/package/unicode-match-property-ecmascript) - -_unicode-match-property-ecmascript_ matches a given Unicode property or [property alias](https://github.com/mathiasbynens/unicode-property-aliases-ecmascript) to its canonical property name without applying [loose matching](https://github.com/mathiasbynens/unicode-loose-match) per the algorithm used for [RegExp Unicode property escapes in ECMAScript](https://github.com/tc39/proposal-regexp-unicode-property-escapes). Consider it a strict alternative to loose matching. - -## Installation - -To use _unicode-match-property-ecmascript_ programmatically, install it as a dependency via [npm](https://www.npmjs.com/): - -```bash -$ npm install unicode-match-property-ecmascript -``` - -Then, `require` it: - -```js -const matchProperty = require('unicode-match-property-ecmascript'); -``` - -## API - -This module exports a single function named `matchProperty`. - -### `matchProperty(value)` - -This function takes a string `value` and attempts to match it to a canonical Unicode property name. If there’s a match, it returns the canonical property name. Otherwise, it throws an exception. - -```js -// Find the canonical property name: -matchProperty('sc') -// → 'Script' - -matchProperty('Script') -// → 'Script' - -matchProperty('script') // Note: incorrect casing. -// → throws -``` - -## For maintainers - -### How to publish a new release - -1. On the `main` branch, bump the version number in `package.json`: - - ```sh - npm version patch -m 'Release v%s' - ``` - - Instead of `patch`, use `minor` or `major` [as needed](https://semver.org/). - - Note that this produces a Git commit + tag. - -1. Push the release commit and tag: - - ```sh - git push && git push --tags - ``` - - Our CI then automatically publishes the new release to npm. - -## Author - -| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | -|---| -| [Mathias Bynens](https://mathiasbynens.be/) | - -## License - -_unicode-match-property-ecmascript_ is available under the [MIT](https://mths.be/mit) license. diff --git a/build_vtk_bundle/node_modules/unicode-match-property-ecmascript/index.js b/build_vtk_bundle/node_modules/unicode-match-property-ecmascript/index.js deleted file mode 100755 index 65205934..00000000 --- a/build_vtk_bundle/node_modules/unicode-match-property-ecmascript/index.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -const canonicalProperties = require('unicode-canonical-property-names-ecmascript'); -const propertyAliases = require('unicode-property-aliases-ecmascript'); - -const matchProperty = function(property) { - if (canonicalProperties.has(property)) { - return property; - } - if (propertyAliases.has(property)) { - return propertyAliases.get(property); - } - throw new Error(`Unknown property: ${ property }`); -}; - -module.exports = matchProperty; diff --git a/build_vtk_bundle/node_modules/unicode-match-property-ecmascript/package.json b/build_vtk_bundle/node_modules/unicode-match-property-ecmascript/package.json deleted file mode 100644 index fc23d8d0..00000000 --- a/build_vtk_bundle/node_modules/unicode-match-property-ecmascript/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "unicode-match-property-ecmascript", - "version": "2.0.0", - "description": "Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.", - "homepage": "https://github.com/mathiasbynens/unicode-match-property-ecmascript", - "main": "index.js", - "engines": { - "node": ">=4" - }, - "files": [ - "LICENSE-MIT.txt", - "index.js" - ], - "keywords": [ - "unicode", - "unicode properties", - "unicode property aliases" - ], - "license": "MIT", - "author": { - "name": "Mathias Bynens", - "url": "https://mathiasbynens.be/" - }, - "repository": { - "type": "git", - "url": "https://github.com/mathiasbynens/unicode-match-property-ecmascript.git" - }, - "bugs": "https://github.com/mathiasbynens/unicode-match-property-ecmascript/issues", - "dependencies": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - }, - "devDependencies": { - "ava": "*" - }, - "scripts": { - "test": "ava ./tests/*" - } -} diff --git a/build_vtk_bundle/node_modules/unicode-match-property-value-ecmascript/LICENSE-MIT.txt b/build_vtk_bundle/node_modules/unicode-match-property-value-ecmascript/LICENSE-MIT.txt deleted file mode 100644 index a41e0a7e..00000000 --- a/build_vtk_bundle/node_modules/unicode-match-property-value-ecmascript/LICENSE-MIT.txt +++ /dev/null @@ -1,20 +0,0 @@ -Copyright Mathias Bynens - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/unicode-match-property-value-ecmascript/README.md b/build_vtk_bundle/node_modules/unicode-match-property-value-ecmascript/README.md deleted file mode 100644 index 7850ef42..00000000 --- a/build_vtk_bundle/node_modules/unicode-match-property-value-ecmascript/README.md +++ /dev/null @@ -1,72 +0,0 @@ -# unicode-match-property-value-ecmascript [![unicode-match-property-value-ecmascript on npm](https://img.shields.io/npm/v/unicode-match-property-value-ecmascript)](https://www.npmjs.com/package/unicode-match-property-value-ecmascript) - -_unicode-match-property-value-ecmascript_ matches a given Unicode property value or [property value alias](https://github.com/mathiasbynens/unicode-property-value-aliases) to its canonical property value without applying [loose matching](https://github.com/mathiasbynens/unicode-loose-match), per the algorithm used for [RegExp Unicode property escapes in ECMAScript](https://github.com/tc39/proposal-regexp-unicode-property-escapes). Consider it a strict alternative to loose matching. - -## Installation - -To use _unicode-match-property-value-ecmascript_ programmatically, install it as a dependency via [npm](https://www.npmjs.com/): - -```bash -$ npm install unicode-match-property-value-ecmascript -``` - -Then, `require` it: - -```js -const matchPropertyValue = require('unicode-match-property-value-ecmascript'); -``` - -## API - -This module exports a single function named `matchPropertyValue`. - -### `matchPropertyValue(property, value)` - -This function takes a string `property` that is a canonical/unaliased Unicode property name, and a string `value`. It attemps to match `value` to a canonical Unicode property value for the given property. If there’s a match, it returns the canonical property value. Otherwise, it throws an exception. - -```js -// Find the canonical property value: -matchPropertyValue('Script_Extensions', 'Aghb') -// → 'Caucasian_Albanian' - -matchPropertyValue('Script_Extensions', 'Caucasian_Albanian') -// → 'Caucasian_Albanian' - -matchPropertyValue('script_extensions', 'Caucasian_Albanian') // Note: incorrect casing. -// → throws - -matchPropertyValue('Script_Extensions', 'caucasian_albanian') // Note: incorrect casing. -// → throws -``` - -## For maintainers - -### How to publish a new release - -1. On the `main` branch, bump the version number in `package.json`: - - ```sh - npm version patch -m 'Release v%s' - ``` - - Instead of `patch`, use `minor` or `major` [as needed](https://semver.org/). - - Note that this produces a Git commit + tag. - -1. Push the release commit and tag: - - ```sh - git push && git push --tags - ``` - - Our CI then automatically publishes the new release to npm. - -## Author - -| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | -|---| -| [Mathias Bynens](https://mathiasbynens.be/) | - -## License - -_unicode-match-property-value-ecmascript_ is available under the [MIT](https://mths.be/mit) license. diff --git a/build_vtk_bundle/node_modules/unicode-match-property-value-ecmascript/data/mappings.js b/build_vtk_bundle/node_modules/unicode-match-property-value-ecmascript/data/mappings.js deleted file mode 100644 index 73cd7222..00000000 --- a/build_vtk_bundle/node_modules/unicode-match-property-value-ecmascript/data/mappings.js +++ /dev/null @@ -1,780 +0,0 @@ -module.exports = new Map([ - ['General_Category', new Map([ - ['C', 'Other'], - ['Cc', 'Control'], - ['cntrl', 'Control'], - ['Cf', 'Format'], - ['Cn', 'Unassigned'], - ['Co', 'Private_Use'], - ['Cs', 'Surrogate'], - ['L', 'Letter'], - ['LC', 'Cased_Letter'], - ['Ll', 'Lowercase_Letter'], - ['Lm', 'Modifier_Letter'], - ['Lo', 'Other_Letter'], - ['Lt', 'Titlecase_Letter'], - ['Lu', 'Uppercase_Letter'], - ['M', 'Mark'], - ['Combining_Mark', 'Mark'], - ['Mc', 'Spacing_Mark'], - ['Me', 'Enclosing_Mark'], - ['Mn', 'Nonspacing_Mark'], - ['N', 'Number'], - ['Nd', 'Decimal_Number'], - ['digit', 'Decimal_Number'], - ['Nl', 'Letter_Number'], - ['No', 'Other_Number'], - ['P', 'Punctuation'], - ['punct', 'Punctuation'], - ['Pc', 'Connector_Punctuation'], - ['Pd', 'Dash_Punctuation'], - ['Pe', 'Close_Punctuation'], - ['Pf', 'Final_Punctuation'], - ['Pi', 'Initial_Punctuation'], - ['Po', 'Other_Punctuation'], - ['Ps', 'Open_Punctuation'], - ['S', 'Symbol'], - ['Sc', 'Currency_Symbol'], - ['Sk', 'Modifier_Symbol'], - ['Sm', 'Math_Symbol'], - ['So', 'Other_Symbol'], - ['Z', 'Separator'], - ['Zl', 'Line_Separator'], - ['Zp', 'Paragraph_Separator'], - ['Zs', 'Space_Separator'], - ['Other', 'Other'], - ['Control', 'Control'], - ['Format', 'Format'], - ['Unassigned', 'Unassigned'], - ['Private_Use', 'Private_Use'], - ['Surrogate', 'Surrogate'], - ['Letter', 'Letter'], - ['Cased_Letter', 'Cased_Letter'], - ['Lowercase_Letter', 'Lowercase_Letter'], - ['Modifier_Letter', 'Modifier_Letter'], - ['Other_Letter', 'Other_Letter'], - ['Titlecase_Letter', 'Titlecase_Letter'], - ['Uppercase_Letter', 'Uppercase_Letter'], - ['Mark', 'Mark'], - ['Spacing_Mark', 'Spacing_Mark'], - ['Enclosing_Mark', 'Enclosing_Mark'], - ['Nonspacing_Mark', 'Nonspacing_Mark'], - ['Number', 'Number'], - ['Decimal_Number', 'Decimal_Number'], - ['Letter_Number', 'Letter_Number'], - ['Other_Number', 'Other_Number'], - ['Punctuation', 'Punctuation'], - ['Connector_Punctuation', 'Connector_Punctuation'], - ['Dash_Punctuation', 'Dash_Punctuation'], - ['Close_Punctuation', 'Close_Punctuation'], - ['Final_Punctuation', 'Final_Punctuation'], - ['Initial_Punctuation', 'Initial_Punctuation'], - ['Other_Punctuation', 'Other_Punctuation'], - ['Open_Punctuation', 'Open_Punctuation'], - ['Symbol', 'Symbol'], - ['Currency_Symbol', 'Currency_Symbol'], - ['Modifier_Symbol', 'Modifier_Symbol'], - ['Math_Symbol', 'Math_Symbol'], - ['Other_Symbol', 'Other_Symbol'], - ['Separator', 'Separator'], - ['Line_Separator', 'Line_Separator'], - ['Paragraph_Separator', 'Paragraph_Separator'], - ['Space_Separator', 'Space_Separator'] - ])], - ['Script', new Map([ - ['Adlm', 'Adlam'], - ['Aghb', 'Caucasian_Albanian'], - ['Ahom', 'Ahom'], - ['Arab', 'Arabic'], - ['Armi', 'Imperial_Aramaic'], - ['Armn', 'Armenian'], - ['Avst', 'Avestan'], - ['Bali', 'Balinese'], - ['Bamu', 'Bamum'], - ['Bass', 'Bassa_Vah'], - ['Batk', 'Batak'], - ['Beng', 'Bengali'], - ['Berf', 'Beria_Erfe'], - ['Bhks', 'Bhaiksuki'], - ['Bopo', 'Bopomofo'], - ['Brah', 'Brahmi'], - ['Brai', 'Braille'], - ['Bugi', 'Buginese'], - ['Buhd', 'Buhid'], - ['Cakm', 'Chakma'], - ['Cans', 'Canadian_Aboriginal'], - ['Cari', 'Carian'], - ['Cham', 'Cham'], - ['Cher', 'Cherokee'], - ['Chrs', 'Chorasmian'], - ['Copt', 'Coptic'], - ['Qaac', 'Coptic'], - ['Cpmn', 'Cypro_Minoan'], - ['Cprt', 'Cypriot'], - ['Cyrl', 'Cyrillic'], - ['Deva', 'Devanagari'], - ['Diak', 'Dives_Akuru'], - ['Dogr', 'Dogra'], - ['Dsrt', 'Deseret'], - ['Dupl', 'Duployan'], - ['Egyp', 'Egyptian_Hieroglyphs'], - ['Elba', 'Elbasan'], - ['Elym', 'Elymaic'], - ['Ethi', 'Ethiopic'], - ['Gara', 'Garay'], - ['Geor', 'Georgian'], - ['Glag', 'Glagolitic'], - ['Gong', 'Gunjala_Gondi'], - ['Gonm', 'Masaram_Gondi'], - ['Goth', 'Gothic'], - ['Gran', 'Grantha'], - ['Grek', 'Greek'], - ['Gujr', 'Gujarati'], - ['Gukh', 'Gurung_Khema'], - ['Guru', 'Gurmukhi'], - ['Hang', 'Hangul'], - ['Hani', 'Han'], - ['Hano', 'Hanunoo'], - ['Hatr', 'Hatran'], - ['Hebr', 'Hebrew'], - ['Hira', 'Hiragana'], - ['Hluw', 'Anatolian_Hieroglyphs'], - ['Hmng', 'Pahawh_Hmong'], - ['Hmnp', 'Nyiakeng_Puachue_Hmong'], - ['Hrkt', 'Katakana_Or_Hiragana'], - ['Hung', 'Old_Hungarian'], - ['Ital', 'Old_Italic'], - ['Java', 'Javanese'], - ['Kali', 'Kayah_Li'], - ['Kana', 'Katakana'], - ['Kawi', 'Kawi'], - ['Khar', 'Kharoshthi'], - ['Khmr', 'Khmer'], - ['Khoj', 'Khojki'], - ['Kits', 'Khitan_Small_Script'], - ['Knda', 'Kannada'], - ['Krai', 'Kirat_Rai'], - ['Kthi', 'Kaithi'], - ['Lana', 'Tai_Tham'], - ['Laoo', 'Lao'], - ['Latn', 'Latin'], - ['Lepc', 'Lepcha'], - ['Limb', 'Limbu'], - ['Lina', 'Linear_A'], - ['Linb', 'Linear_B'], - ['Lisu', 'Lisu'], - ['Lyci', 'Lycian'], - ['Lydi', 'Lydian'], - ['Mahj', 'Mahajani'], - ['Maka', 'Makasar'], - ['Mand', 'Mandaic'], - ['Mani', 'Manichaean'], - ['Marc', 'Marchen'], - ['Medf', 'Medefaidrin'], - ['Mend', 'Mende_Kikakui'], - ['Merc', 'Meroitic_Cursive'], - ['Mero', 'Meroitic_Hieroglyphs'], - ['Mlym', 'Malayalam'], - ['Modi', 'Modi'], - ['Mong', 'Mongolian'], - ['Mroo', 'Mro'], - ['Mtei', 'Meetei_Mayek'], - ['Mult', 'Multani'], - ['Mymr', 'Myanmar'], - ['Nagm', 'Nag_Mundari'], - ['Nand', 'Nandinagari'], - ['Narb', 'Old_North_Arabian'], - ['Nbat', 'Nabataean'], - ['Newa', 'Newa'], - ['Nkoo', 'Nko'], - ['Nshu', 'Nushu'], - ['Ogam', 'Ogham'], - ['Olck', 'Ol_Chiki'], - ['Onao', 'Ol_Onal'], - ['Orkh', 'Old_Turkic'], - ['Orya', 'Oriya'], - ['Osge', 'Osage'], - ['Osma', 'Osmanya'], - ['Ougr', 'Old_Uyghur'], - ['Palm', 'Palmyrene'], - ['Pauc', 'Pau_Cin_Hau'], - ['Perm', 'Old_Permic'], - ['Phag', 'Phags_Pa'], - ['Phli', 'Inscriptional_Pahlavi'], - ['Phlp', 'Psalter_Pahlavi'], - ['Phnx', 'Phoenician'], - ['Plrd', 'Miao'], - ['Prti', 'Inscriptional_Parthian'], - ['Rjng', 'Rejang'], - ['Rohg', 'Hanifi_Rohingya'], - ['Runr', 'Runic'], - ['Samr', 'Samaritan'], - ['Sarb', 'Old_South_Arabian'], - ['Saur', 'Saurashtra'], - ['Sgnw', 'SignWriting'], - ['Shaw', 'Shavian'], - ['Shrd', 'Sharada'], - ['Sidd', 'Siddham'], - ['Sidt', 'Sidetic'], - ['Sind', 'Khudawadi'], - ['Sinh', 'Sinhala'], - ['Sogd', 'Sogdian'], - ['Sogo', 'Old_Sogdian'], - ['Sora', 'Sora_Sompeng'], - ['Soyo', 'Soyombo'], - ['Sund', 'Sundanese'], - ['Sunu', 'Sunuwar'], - ['Sylo', 'Syloti_Nagri'], - ['Syrc', 'Syriac'], - ['Tagb', 'Tagbanwa'], - ['Takr', 'Takri'], - ['Tale', 'Tai_Le'], - ['Talu', 'New_Tai_Lue'], - ['Taml', 'Tamil'], - ['Tang', 'Tangut'], - ['Tavt', 'Tai_Viet'], - ['Tayo', 'Tai_Yo'], - ['Telu', 'Telugu'], - ['Tfng', 'Tifinagh'], - ['Tglg', 'Tagalog'], - ['Thaa', 'Thaana'], - ['Thai', 'Thai'], - ['Tibt', 'Tibetan'], - ['Tirh', 'Tirhuta'], - ['Tnsa', 'Tangsa'], - ['Todr', 'Todhri'], - ['Tols', 'Tolong_Siki'], - ['Toto', 'Toto'], - ['Tutg', 'Tulu_Tigalari'], - ['Ugar', 'Ugaritic'], - ['Vaii', 'Vai'], - ['Vith', 'Vithkuqi'], - ['Wara', 'Warang_Citi'], - ['Wcho', 'Wancho'], - ['Xpeo', 'Old_Persian'], - ['Xsux', 'Cuneiform'], - ['Yezi', 'Yezidi'], - ['Yiii', 'Yi'], - ['Zanb', 'Zanabazar_Square'], - ['Zinh', 'Inherited'], - ['Qaai', 'Inherited'], - ['Zyyy', 'Common'], - ['Zzzz', 'Unknown'], - ['Adlam', 'Adlam'], - ['Caucasian_Albanian', 'Caucasian_Albanian'], - ['Arabic', 'Arabic'], - ['Imperial_Aramaic', 'Imperial_Aramaic'], - ['Armenian', 'Armenian'], - ['Avestan', 'Avestan'], - ['Balinese', 'Balinese'], - ['Bamum', 'Bamum'], - ['Bassa_Vah', 'Bassa_Vah'], - ['Batak', 'Batak'], - ['Bengali', 'Bengali'], - ['Beria_Erfe', 'Beria_Erfe'], - ['Bhaiksuki', 'Bhaiksuki'], - ['Bopomofo', 'Bopomofo'], - ['Brahmi', 'Brahmi'], - ['Braille', 'Braille'], - ['Buginese', 'Buginese'], - ['Buhid', 'Buhid'], - ['Chakma', 'Chakma'], - ['Canadian_Aboriginal', 'Canadian_Aboriginal'], - ['Carian', 'Carian'], - ['Cherokee', 'Cherokee'], - ['Chorasmian', 'Chorasmian'], - ['Coptic', 'Coptic'], - ['Cypro_Minoan', 'Cypro_Minoan'], - ['Cypriot', 'Cypriot'], - ['Cyrillic', 'Cyrillic'], - ['Devanagari', 'Devanagari'], - ['Dives_Akuru', 'Dives_Akuru'], - ['Dogra', 'Dogra'], - ['Deseret', 'Deseret'], - ['Duployan', 'Duployan'], - ['Egyptian_Hieroglyphs', 'Egyptian_Hieroglyphs'], - ['Elbasan', 'Elbasan'], - ['Elymaic', 'Elymaic'], - ['Ethiopic', 'Ethiopic'], - ['Garay', 'Garay'], - ['Georgian', 'Georgian'], - ['Glagolitic', 'Glagolitic'], - ['Gunjala_Gondi', 'Gunjala_Gondi'], - ['Masaram_Gondi', 'Masaram_Gondi'], - ['Gothic', 'Gothic'], - ['Grantha', 'Grantha'], - ['Greek', 'Greek'], - ['Gujarati', 'Gujarati'], - ['Gurung_Khema', 'Gurung_Khema'], - ['Gurmukhi', 'Gurmukhi'], - ['Hangul', 'Hangul'], - ['Han', 'Han'], - ['Hanunoo', 'Hanunoo'], - ['Hatran', 'Hatran'], - ['Hebrew', 'Hebrew'], - ['Hiragana', 'Hiragana'], - ['Anatolian_Hieroglyphs', 'Anatolian_Hieroglyphs'], - ['Pahawh_Hmong', 'Pahawh_Hmong'], - ['Nyiakeng_Puachue_Hmong', 'Nyiakeng_Puachue_Hmong'], - ['Katakana_Or_Hiragana', 'Katakana_Or_Hiragana'], - ['Old_Hungarian', 'Old_Hungarian'], - ['Old_Italic', 'Old_Italic'], - ['Javanese', 'Javanese'], - ['Kayah_Li', 'Kayah_Li'], - ['Katakana', 'Katakana'], - ['Kharoshthi', 'Kharoshthi'], - ['Khmer', 'Khmer'], - ['Khojki', 'Khojki'], - ['Khitan_Small_Script', 'Khitan_Small_Script'], - ['Kannada', 'Kannada'], - ['Kirat_Rai', 'Kirat_Rai'], - ['Kaithi', 'Kaithi'], - ['Tai_Tham', 'Tai_Tham'], - ['Lao', 'Lao'], - ['Latin', 'Latin'], - ['Lepcha', 'Lepcha'], - ['Limbu', 'Limbu'], - ['Linear_A', 'Linear_A'], - ['Linear_B', 'Linear_B'], - ['Lycian', 'Lycian'], - ['Lydian', 'Lydian'], - ['Mahajani', 'Mahajani'], - ['Makasar', 'Makasar'], - ['Mandaic', 'Mandaic'], - ['Manichaean', 'Manichaean'], - ['Marchen', 'Marchen'], - ['Medefaidrin', 'Medefaidrin'], - ['Mende_Kikakui', 'Mende_Kikakui'], - ['Meroitic_Cursive', 'Meroitic_Cursive'], - ['Meroitic_Hieroglyphs', 'Meroitic_Hieroglyphs'], - ['Malayalam', 'Malayalam'], - ['Mongolian', 'Mongolian'], - ['Mro', 'Mro'], - ['Meetei_Mayek', 'Meetei_Mayek'], - ['Multani', 'Multani'], - ['Myanmar', 'Myanmar'], - ['Nag_Mundari', 'Nag_Mundari'], - ['Nandinagari', 'Nandinagari'], - ['Old_North_Arabian', 'Old_North_Arabian'], - ['Nabataean', 'Nabataean'], - ['Nko', 'Nko'], - ['Nushu', 'Nushu'], - ['Ogham', 'Ogham'], - ['Ol_Chiki', 'Ol_Chiki'], - ['Ol_Onal', 'Ol_Onal'], - ['Old_Turkic', 'Old_Turkic'], - ['Oriya', 'Oriya'], - ['Osage', 'Osage'], - ['Osmanya', 'Osmanya'], - ['Old_Uyghur', 'Old_Uyghur'], - ['Palmyrene', 'Palmyrene'], - ['Pau_Cin_Hau', 'Pau_Cin_Hau'], - ['Old_Permic', 'Old_Permic'], - ['Phags_Pa', 'Phags_Pa'], - ['Inscriptional_Pahlavi', 'Inscriptional_Pahlavi'], - ['Psalter_Pahlavi', 'Psalter_Pahlavi'], - ['Phoenician', 'Phoenician'], - ['Miao', 'Miao'], - ['Inscriptional_Parthian', 'Inscriptional_Parthian'], - ['Rejang', 'Rejang'], - ['Hanifi_Rohingya', 'Hanifi_Rohingya'], - ['Runic', 'Runic'], - ['Samaritan', 'Samaritan'], - ['Old_South_Arabian', 'Old_South_Arabian'], - ['Saurashtra', 'Saurashtra'], - ['SignWriting', 'SignWriting'], - ['Shavian', 'Shavian'], - ['Sharada', 'Sharada'], - ['Siddham', 'Siddham'], - ['Sidetic', 'Sidetic'], - ['Khudawadi', 'Khudawadi'], - ['Sinhala', 'Sinhala'], - ['Sogdian', 'Sogdian'], - ['Old_Sogdian', 'Old_Sogdian'], - ['Sora_Sompeng', 'Sora_Sompeng'], - ['Soyombo', 'Soyombo'], - ['Sundanese', 'Sundanese'], - ['Sunuwar', 'Sunuwar'], - ['Syloti_Nagri', 'Syloti_Nagri'], - ['Syriac', 'Syriac'], - ['Tagbanwa', 'Tagbanwa'], - ['Takri', 'Takri'], - ['Tai_Le', 'Tai_Le'], - ['New_Tai_Lue', 'New_Tai_Lue'], - ['Tamil', 'Tamil'], - ['Tangut', 'Tangut'], - ['Tai_Viet', 'Tai_Viet'], - ['Tai_Yo', 'Tai_Yo'], - ['Telugu', 'Telugu'], - ['Tifinagh', 'Tifinagh'], - ['Tagalog', 'Tagalog'], - ['Thaana', 'Thaana'], - ['Tibetan', 'Tibetan'], - ['Tirhuta', 'Tirhuta'], - ['Tangsa', 'Tangsa'], - ['Todhri', 'Todhri'], - ['Tolong_Siki', 'Tolong_Siki'], - ['Tulu_Tigalari', 'Tulu_Tigalari'], - ['Ugaritic', 'Ugaritic'], - ['Vai', 'Vai'], - ['Vithkuqi', 'Vithkuqi'], - ['Warang_Citi', 'Warang_Citi'], - ['Wancho', 'Wancho'], - ['Old_Persian', 'Old_Persian'], - ['Cuneiform', 'Cuneiform'], - ['Yezidi', 'Yezidi'], - ['Yi', 'Yi'], - ['Zanabazar_Square', 'Zanabazar_Square'], - ['Inherited', 'Inherited'], - ['Common', 'Common'], - ['Unknown', 'Unknown'] - ])], - ['Script_Extensions', new Map([ - ['Adlm', 'Adlam'], - ['Aghb', 'Caucasian_Albanian'], - ['Ahom', 'Ahom'], - ['Arab', 'Arabic'], - ['Armi', 'Imperial_Aramaic'], - ['Armn', 'Armenian'], - ['Avst', 'Avestan'], - ['Bali', 'Balinese'], - ['Bamu', 'Bamum'], - ['Bass', 'Bassa_Vah'], - ['Batk', 'Batak'], - ['Beng', 'Bengali'], - ['Berf', 'Beria_Erfe'], - ['Bhks', 'Bhaiksuki'], - ['Bopo', 'Bopomofo'], - ['Brah', 'Brahmi'], - ['Brai', 'Braille'], - ['Bugi', 'Buginese'], - ['Buhd', 'Buhid'], - ['Cakm', 'Chakma'], - ['Cans', 'Canadian_Aboriginal'], - ['Cari', 'Carian'], - ['Cham', 'Cham'], - ['Cher', 'Cherokee'], - ['Chrs', 'Chorasmian'], - ['Copt', 'Coptic'], - ['Qaac', 'Coptic'], - ['Cpmn', 'Cypro_Minoan'], - ['Cprt', 'Cypriot'], - ['Cyrl', 'Cyrillic'], - ['Deva', 'Devanagari'], - ['Diak', 'Dives_Akuru'], - ['Dogr', 'Dogra'], - ['Dsrt', 'Deseret'], - ['Dupl', 'Duployan'], - ['Egyp', 'Egyptian_Hieroglyphs'], - ['Elba', 'Elbasan'], - ['Elym', 'Elymaic'], - ['Ethi', 'Ethiopic'], - ['Gara', 'Garay'], - ['Geor', 'Georgian'], - ['Glag', 'Glagolitic'], - ['Gong', 'Gunjala_Gondi'], - ['Gonm', 'Masaram_Gondi'], - ['Goth', 'Gothic'], - ['Gran', 'Grantha'], - ['Grek', 'Greek'], - ['Gujr', 'Gujarati'], - ['Gukh', 'Gurung_Khema'], - ['Guru', 'Gurmukhi'], - ['Hang', 'Hangul'], - ['Hani', 'Han'], - ['Hano', 'Hanunoo'], - ['Hatr', 'Hatran'], - ['Hebr', 'Hebrew'], - ['Hira', 'Hiragana'], - ['Hluw', 'Anatolian_Hieroglyphs'], - ['Hmng', 'Pahawh_Hmong'], - ['Hmnp', 'Nyiakeng_Puachue_Hmong'], - ['Hrkt', 'Katakana_Or_Hiragana'], - ['Hung', 'Old_Hungarian'], - ['Ital', 'Old_Italic'], - ['Java', 'Javanese'], - ['Kali', 'Kayah_Li'], - ['Kana', 'Katakana'], - ['Kawi', 'Kawi'], - ['Khar', 'Kharoshthi'], - ['Khmr', 'Khmer'], - ['Khoj', 'Khojki'], - ['Kits', 'Khitan_Small_Script'], - ['Knda', 'Kannada'], - ['Krai', 'Kirat_Rai'], - ['Kthi', 'Kaithi'], - ['Lana', 'Tai_Tham'], - ['Laoo', 'Lao'], - ['Latn', 'Latin'], - ['Lepc', 'Lepcha'], - ['Limb', 'Limbu'], - ['Lina', 'Linear_A'], - ['Linb', 'Linear_B'], - ['Lisu', 'Lisu'], - ['Lyci', 'Lycian'], - ['Lydi', 'Lydian'], - ['Mahj', 'Mahajani'], - ['Maka', 'Makasar'], - ['Mand', 'Mandaic'], - ['Mani', 'Manichaean'], - ['Marc', 'Marchen'], - ['Medf', 'Medefaidrin'], - ['Mend', 'Mende_Kikakui'], - ['Merc', 'Meroitic_Cursive'], - ['Mero', 'Meroitic_Hieroglyphs'], - ['Mlym', 'Malayalam'], - ['Modi', 'Modi'], - ['Mong', 'Mongolian'], - ['Mroo', 'Mro'], - ['Mtei', 'Meetei_Mayek'], - ['Mult', 'Multani'], - ['Mymr', 'Myanmar'], - ['Nagm', 'Nag_Mundari'], - ['Nand', 'Nandinagari'], - ['Narb', 'Old_North_Arabian'], - ['Nbat', 'Nabataean'], - ['Newa', 'Newa'], - ['Nkoo', 'Nko'], - ['Nshu', 'Nushu'], - ['Ogam', 'Ogham'], - ['Olck', 'Ol_Chiki'], - ['Onao', 'Ol_Onal'], - ['Orkh', 'Old_Turkic'], - ['Orya', 'Oriya'], - ['Osge', 'Osage'], - ['Osma', 'Osmanya'], - ['Ougr', 'Old_Uyghur'], - ['Palm', 'Palmyrene'], - ['Pauc', 'Pau_Cin_Hau'], - ['Perm', 'Old_Permic'], - ['Phag', 'Phags_Pa'], - ['Phli', 'Inscriptional_Pahlavi'], - ['Phlp', 'Psalter_Pahlavi'], - ['Phnx', 'Phoenician'], - ['Plrd', 'Miao'], - ['Prti', 'Inscriptional_Parthian'], - ['Rjng', 'Rejang'], - ['Rohg', 'Hanifi_Rohingya'], - ['Runr', 'Runic'], - ['Samr', 'Samaritan'], - ['Sarb', 'Old_South_Arabian'], - ['Saur', 'Saurashtra'], - ['Sgnw', 'SignWriting'], - ['Shaw', 'Shavian'], - ['Shrd', 'Sharada'], - ['Sidd', 'Siddham'], - ['Sidt', 'Sidetic'], - ['Sind', 'Khudawadi'], - ['Sinh', 'Sinhala'], - ['Sogd', 'Sogdian'], - ['Sogo', 'Old_Sogdian'], - ['Sora', 'Sora_Sompeng'], - ['Soyo', 'Soyombo'], - ['Sund', 'Sundanese'], - ['Sunu', 'Sunuwar'], - ['Sylo', 'Syloti_Nagri'], - ['Syrc', 'Syriac'], - ['Tagb', 'Tagbanwa'], - ['Takr', 'Takri'], - ['Tale', 'Tai_Le'], - ['Talu', 'New_Tai_Lue'], - ['Taml', 'Tamil'], - ['Tang', 'Tangut'], - ['Tavt', 'Tai_Viet'], - ['Tayo', 'Tai_Yo'], - ['Telu', 'Telugu'], - ['Tfng', 'Tifinagh'], - ['Tglg', 'Tagalog'], - ['Thaa', 'Thaana'], - ['Thai', 'Thai'], - ['Tibt', 'Tibetan'], - ['Tirh', 'Tirhuta'], - ['Tnsa', 'Tangsa'], - ['Todr', 'Todhri'], - ['Tols', 'Tolong_Siki'], - ['Toto', 'Toto'], - ['Tutg', 'Tulu_Tigalari'], - ['Ugar', 'Ugaritic'], - ['Vaii', 'Vai'], - ['Vith', 'Vithkuqi'], - ['Wara', 'Warang_Citi'], - ['Wcho', 'Wancho'], - ['Xpeo', 'Old_Persian'], - ['Xsux', 'Cuneiform'], - ['Yezi', 'Yezidi'], - ['Yiii', 'Yi'], - ['Zanb', 'Zanabazar_Square'], - ['Zinh', 'Inherited'], - ['Qaai', 'Inherited'], - ['Zyyy', 'Common'], - ['Zzzz', 'Unknown'], - ['Adlam', 'Adlam'], - ['Caucasian_Albanian', 'Caucasian_Albanian'], - ['Arabic', 'Arabic'], - ['Imperial_Aramaic', 'Imperial_Aramaic'], - ['Armenian', 'Armenian'], - ['Avestan', 'Avestan'], - ['Balinese', 'Balinese'], - ['Bamum', 'Bamum'], - ['Bassa_Vah', 'Bassa_Vah'], - ['Batak', 'Batak'], - ['Bengali', 'Bengali'], - ['Beria_Erfe', 'Beria_Erfe'], - ['Bhaiksuki', 'Bhaiksuki'], - ['Bopomofo', 'Bopomofo'], - ['Brahmi', 'Brahmi'], - ['Braille', 'Braille'], - ['Buginese', 'Buginese'], - ['Buhid', 'Buhid'], - ['Chakma', 'Chakma'], - ['Canadian_Aboriginal', 'Canadian_Aboriginal'], - ['Carian', 'Carian'], - ['Cherokee', 'Cherokee'], - ['Chorasmian', 'Chorasmian'], - ['Coptic', 'Coptic'], - ['Cypro_Minoan', 'Cypro_Minoan'], - ['Cypriot', 'Cypriot'], - ['Cyrillic', 'Cyrillic'], - ['Devanagari', 'Devanagari'], - ['Dives_Akuru', 'Dives_Akuru'], - ['Dogra', 'Dogra'], - ['Deseret', 'Deseret'], - ['Duployan', 'Duployan'], - ['Egyptian_Hieroglyphs', 'Egyptian_Hieroglyphs'], - ['Elbasan', 'Elbasan'], - ['Elymaic', 'Elymaic'], - ['Ethiopic', 'Ethiopic'], - ['Garay', 'Garay'], - ['Georgian', 'Georgian'], - ['Glagolitic', 'Glagolitic'], - ['Gunjala_Gondi', 'Gunjala_Gondi'], - ['Masaram_Gondi', 'Masaram_Gondi'], - ['Gothic', 'Gothic'], - ['Grantha', 'Grantha'], - ['Greek', 'Greek'], - ['Gujarati', 'Gujarati'], - ['Gurung_Khema', 'Gurung_Khema'], - ['Gurmukhi', 'Gurmukhi'], - ['Hangul', 'Hangul'], - ['Han', 'Han'], - ['Hanunoo', 'Hanunoo'], - ['Hatran', 'Hatran'], - ['Hebrew', 'Hebrew'], - ['Hiragana', 'Hiragana'], - ['Anatolian_Hieroglyphs', 'Anatolian_Hieroglyphs'], - ['Pahawh_Hmong', 'Pahawh_Hmong'], - ['Nyiakeng_Puachue_Hmong', 'Nyiakeng_Puachue_Hmong'], - ['Katakana_Or_Hiragana', 'Katakana_Or_Hiragana'], - ['Old_Hungarian', 'Old_Hungarian'], - ['Old_Italic', 'Old_Italic'], - ['Javanese', 'Javanese'], - ['Kayah_Li', 'Kayah_Li'], - ['Katakana', 'Katakana'], - ['Kharoshthi', 'Kharoshthi'], - ['Khmer', 'Khmer'], - ['Khojki', 'Khojki'], - ['Khitan_Small_Script', 'Khitan_Small_Script'], - ['Kannada', 'Kannada'], - ['Kirat_Rai', 'Kirat_Rai'], - ['Kaithi', 'Kaithi'], - ['Tai_Tham', 'Tai_Tham'], - ['Lao', 'Lao'], - ['Latin', 'Latin'], - ['Lepcha', 'Lepcha'], - ['Limbu', 'Limbu'], - ['Linear_A', 'Linear_A'], - ['Linear_B', 'Linear_B'], - ['Lycian', 'Lycian'], - ['Lydian', 'Lydian'], - ['Mahajani', 'Mahajani'], - ['Makasar', 'Makasar'], - ['Mandaic', 'Mandaic'], - ['Manichaean', 'Manichaean'], - ['Marchen', 'Marchen'], - ['Medefaidrin', 'Medefaidrin'], - ['Mende_Kikakui', 'Mende_Kikakui'], - ['Meroitic_Cursive', 'Meroitic_Cursive'], - ['Meroitic_Hieroglyphs', 'Meroitic_Hieroglyphs'], - ['Malayalam', 'Malayalam'], - ['Mongolian', 'Mongolian'], - ['Mro', 'Mro'], - ['Meetei_Mayek', 'Meetei_Mayek'], - ['Multani', 'Multani'], - ['Myanmar', 'Myanmar'], - ['Nag_Mundari', 'Nag_Mundari'], - ['Nandinagari', 'Nandinagari'], - ['Old_North_Arabian', 'Old_North_Arabian'], - ['Nabataean', 'Nabataean'], - ['Nko', 'Nko'], - ['Nushu', 'Nushu'], - ['Ogham', 'Ogham'], - ['Ol_Chiki', 'Ol_Chiki'], - ['Ol_Onal', 'Ol_Onal'], - ['Old_Turkic', 'Old_Turkic'], - ['Oriya', 'Oriya'], - ['Osage', 'Osage'], - ['Osmanya', 'Osmanya'], - ['Old_Uyghur', 'Old_Uyghur'], - ['Palmyrene', 'Palmyrene'], - ['Pau_Cin_Hau', 'Pau_Cin_Hau'], - ['Old_Permic', 'Old_Permic'], - ['Phags_Pa', 'Phags_Pa'], - ['Inscriptional_Pahlavi', 'Inscriptional_Pahlavi'], - ['Psalter_Pahlavi', 'Psalter_Pahlavi'], - ['Phoenician', 'Phoenician'], - ['Miao', 'Miao'], - ['Inscriptional_Parthian', 'Inscriptional_Parthian'], - ['Rejang', 'Rejang'], - ['Hanifi_Rohingya', 'Hanifi_Rohingya'], - ['Runic', 'Runic'], - ['Samaritan', 'Samaritan'], - ['Old_South_Arabian', 'Old_South_Arabian'], - ['Saurashtra', 'Saurashtra'], - ['SignWriting', 'SignWriting'], - ['Shavian', 'Shavian'], - ['Sharada', 'Sharada'], - ['Siddham', 'Siddham'], - ['Sidetic', 'Sidetic'], - ['Khudawadi', 'Khudawadi'], - ['Sinhala', 'Sinhala'], - ['Sogdian', 'Sogdian'], - ['Old_Sogdian', 'Old_Sogdian'], - ['Sora_Sompeng', 'Sora_Sompeng'], - ['Soyombo', 'Soyombo'], - ['Sundanese', 'Sundanese'], - ['Sunuwar', 'Sunuwar'], - ['Syloti_Nagri', 'Syloti_Nagri'], - ['Syriac', 'Syriac'], - ['Tagbanwa', 'Tagbanwa'], - ['Takri', 'Takri'], - ['Tai_Le', 'Tai_Le'], - ['New_Tai_Lue', 'New_Tai_Lue'], - ['Tamil', 'Tamil'], - ['Tangut', 'Tangut'], - ['Tai_Viet', 'Tai_Viet'], - ['Tai_Yo', 'Tai_Yo'], - ['Telugu', 'Telugu'], - ['Tifinagh', 'Tifinagh'], - ['Tagalog', 'Tagalog'], - ['Thaana', 'Thaana'], - ['Tibetan', 'Tibetan'], - ['Tirhuta', 'Tirhuta'], - ['Tangsa', 'Tangsa'], - ['Todhri', 'Todhri'], - ['Tolong_Siki', 'Tolong_Siki'], - ['Tulu_Tigalari', 'Tulu_Tigalari'], - ['Ugaritic', 'Ugaritic'], - ['Vai', 'Vai'], - ['Vithkuqi', 'Vithkuqi'], - ['Warang_Citi', 'Warang_Citi'], - ['Wancho', 'Wancho'], - ['Old_Persian', 'Old_Persian'], - ['Cuneiform', 'Cuneiform'], - ['Yezidi', 'Yezidi'], - ['Yi', 'Yi'], - ['Zanabazar_Square', 'Zanabazar_Square'], - ['Inherited', 'Inherited'], - ['Common', 'Common'], - ['Unknown', 'Unknown'] - ])] -]); diff --git a/build_vtk_bundle/node_modules/unicode-match-property-value-ecmascript/index.js b/build_vtk_bundle/node_modules/unicode-match-property-value-ecmascript/index.js deleted file mode 100755 index ca8b991d..00000000 --- a/build_vtk_bundle/node_modules/unicode-match-property-value-ecmascript/index.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; - -const propertyToValueAliases = require('./data/mappings.js'); - -const matchPropertyValue = function(property, value) { - const aliasToValue = propertyToValueAliases.get(property); - if (!aliasToValue) { - throw new Error(`Unknown property \`${ property }\`.`); - } - const canonicalValue = aliasToValue.get(value); - if (canonicalValue) { - return canonicalValue; - } - throw new Error( - `Unknown value \`${ value }\` for property \`${ property }\`.` - ); -}; - -module.exports = matchPropertyValue; diff --git a/build_vtk_bundle/node_modules/unicode-match-property-value-ecmascript/package.json b/build_vtk_bundle/node_modules/unicode-match-property-value-ecmascript/package.json deleted file mode 100644 index 1e56b289..00000000 --- a/build_vtk_bundle/node_modules/unicode-match-property-value-ecmascript/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "unicode-match-property-value-ecmascript", - "version": "2.2.1", - "description": "Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.", - "homepage": "https://github.com/mathiasbynens/unicode-match-property-value-ecmascript", - "main": "index.js", - "engines": { - "node": ">=4" - }, - "files": [ - "LICENSE-MIT.txt", - "data/mappings.js", - "index.js" - ], - "keywords": [ - "unicode", - "unicode property values", - "unicode property value aliases" - ], - "license": "MIT", - "author": { - "name": "Mathias Bynens", - "url": "https://mathiasbynens.be/" - }, - "repository": { - "type": "git", - "url": "https://github.com/mathiasbynens/unicode-match-property-value-ecmascript.git" - }, - "bugs": "https://github.com/mathiasbynens/unicode-match-property-value-ecmascript/issues", - "devDependencies": { - "ava": "*", - "jsesc": "^3.1.0", - "unicode-property-value-aliases-ecmascript": "^2.2.1" - }, - "scripts": { - "build": "node scripts/build.js", - "test": "ava tests/tests.js" - } -} diff --git a/build_vtk_bundle/node_modules/unicode-property-aliases-ecmascript/LICENSE-MIT.txt b/build_vtk_bundle/node_modules/unicode-property-aliases-ecmascript/LICENSE-MIT.txt deleted file mode 100644 index a41e0a7e..00000000 --- a/build_vtk_bundle/node_modules/unicode-property-aliases-ecmascript/LICENSE-MIT.txt +++ /dev/null @@ -1,20 +0,0 @@ -Copyright Mathias Bynens - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/unicode-property-aliases-ecmascript/README.md b/build_vtk_bundle/node_modules/unicode-property-aliases-ecmascript/README.md deleted file mode 100644 index 31c00349..00000000 --- a/build_vtk_bundle/node_modules/unicode-property-aliases-ecmascript/README.md +++ /dev/null @@ -1,60 +0,0 @@ -# unicode-property-aliases-ecmascript [![unicode-property-aliases-ecmascript on npm](https://img.shields.io/npm/v/unicode-property-aliases-ecmascript)](https://www.npmjs.com/package/unicode-property-aliases-ecmascript) - -_unicode-property-aliases-ecmascript_ offers Unicode property alias mappings in an easy-to-consume JavaScript format. It only contains the Unicode property names that are supported in [ECMAScript RegExp property escapes](https://github.com/tc39/proposal-regexp-unicode-property-escapes). - -It’s based on Unicode’s `PropertyAliases.txt`. - -## Installation - -To use _unicode-property-aliases-ecmascript_ programmatically, install it as a dependency via [npm](https://www.npmjs.com/): - -```bash -$ npm install unicode-property-aliases-ecmascript -``` - -Then, `require` it: - -```js -const propertyAliases = require('unicode-property-aliases-ecmascript'); -``` - -## Usage - -This module exports a `Map` object. The most common usage is to convert a property alias to its canonical form: - -```js -propertyAliases.get('scx'); -// → 'Script_Extensions' -``` - -## For maintainers - -### How to publish a new release - -1. On the `main` branch, bump the version number in `package.json`: - - ```sh - npm version patch -m 'Release v%s' - ``` - - Instead of `patch`, use `minor` or `major` [as needed](https://semver.org/). - - Note that this produces a Git commit + tag. - -1. Push the release commit and tag: - - ```sh - git push && git push --tags - ``` - - Our CI then automatically publishes the new release to npm. - -## Author - -| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias 'Follow @mathias on Twitter') | -| ------------------------------------------------------------------------------------------------------------------------------------------------- | -| [Mathias Bynens](https://mathiasbynens.be/) | - -## License - -_unicode-property-aliases-ecmascript_ is available under the [MIT](https://mths.be/mit) license. diff --git a/build_vtk_bundle/node_modules/unicode-property-aliases-ecmascript/index.js b/build_vtk_bundle/node_modules/unicode-property-aliases-ecmascript/index.js deleted file mode 100755 index 96932853..00000000 --- a/build_vtk_bundle/node_modules/unicode-property-aliases-ecmascript/index.js +++ /dev/null @@ -1,57 +0,0 @@ -// Generated using `npm run build`. Do not edit! -module.exports = new Map([ - ['scx', 'Script_Extensions'], - ['sc', 'Script'], - ['gc', 'General_Category'], - ['AHex', 'ASCII_Hex_Digit'], - ['Alpha', 'Alphabetic'], - ['Bidi_C', 'Bidi_Control'], - ['Bidi_M', 'Bidi_Mirrored'], - ['Cased', 'Cased'], - ['CI', 'Case_Ignorable'], - ['CWCF', 'Changes_When_Casefolded'], - ['CWCM', 'Changes_When_Casemapped'], - ['CWKCF', 'Changes_When_NFKC_Casefolded'], - ['CWL', 'Changes_When_Lowercased'], - ['CWT', 'Changes_When_Titlecased'], - ['CWU', 'Changes_When_Uppercased'], - ['Dash', 'Dash'], - ['Dep', 'Deprecated'], - ['DI', 'Default_Ignorable_Code_Point'], - ['Dia', 'Diacritic'], - ['EBase', 'Emoji_Modifier_Base'], - ['EComp', 'Emoji_Component'], - ['EMod', 'Emoji_Modifier'], - ['Emoji', 'Emoji'], - ['EPres', 'Emoji_Presentation'], - ['Ext', 'Extender'], - ['ExtPict', 'Extended_Pictographic'], - ['Gr_Base', 'Grapheme_Base'], - ['Gr_Ext', 'Grapheme_Extend'], - ['Hex', 'Hex_Digit'], - ['IDC', 'ID_Continue'], - ['Ideo', 'Ideographic'], - ['IDS', 'ID_Start'], - ['IDSB', 'IDS_Binary_Operator'], - ['IDST', 'IDS_Trinary_Operator'], - ['Join_C', 'Join_Control'], - ['LOE', 'Logical_Order_Exception'], - ['Lower', 'Lowercase'], - ['Math', 'Math'], - ['NChar', 'Noncharacter_Code_Point'], - ['Pat_Syn', 'Pattern_Syntax'], - ['Pat_WS', 'Pattern_White_Space'], - ['QMark', 'Quotation_Mark'], - ['Radical', 'Radical'], - ['RI', 'Regional_Indicator'], - ['SD', 'Soft_Dotted'], - ['STerm', 'Sentence_Terminal'], - ['Term', 'Terminal_Punctuation'], - ['UIdeo', 'Unified_Ideograph'], - ['Upper', 'Uppercase'], - ['VS', 'Variation_Selector'], - ['WSpace', 'White_Space'], - ['space', 'White_Space'], - ['XIDC', 'XID_Continue'], - ['XIDS', 'XID_Start'] -]); diff --git a/build_vtk_bundle/node_modules/unicode-property-aliases-ecmascript/package.json b/build_vtk_bundle/node_modules/unicode-property-aliases-ecmascript/package.json deleted file mode 100644 index 89793d12..00000000 --- a/build_vtk_bundle/node_modules/unicode-property-aliases-ecmascript/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "unicode-property-aliases-ecmascript", - "version": "2.2.0", - "description": "Unicode property alias mappings in JavaScript format for property names that are supported in ECMAScript RegExp property escapes.", - "homepage": "https://github.com/mathiasbynens/unicode-property-aliases-ecmascript", - "main": "index.js", - "engines": { - "node": ">=4" - }, - "files": [ - "LICENSE-MIT.txt", - "index.js" - ], - "keywords": [ - "unicode", - "unicode-data", - "alias", - "aliases", - "property alias" - ], - "license": "MIT", - "author": { - "name": "Mathias Bynens", - "url": "https://mathiasbynens.be/" - }, - "repository": { - "type": "git", - "url": "https://github.com/mathiasbynens/unicode-property-aliases-ecmascript.git" - }, - "bugs": "https://github.com/mathiasbynens/unicode-property-aliases-ecmascript/issues", - "devDependencies": { - "jsesc": "^3.0.2", - "unicode-canonical-property-names-ecmascript": "^2.0.0" - }, - "scripts": { - "download": "curl -L https://unicode.org/Public/17.0.0/ucd/PropertyAliases.txt > data/PropertyAliases.txt", - "build": "node scripts/build.js", - "test": "node --test tests/tests.js" - } -} diff --git a/build_vtk_bundle/node_modules/update-browserslist-db/LICENSE b/build_vtk_bundle/node_modules/update-browserslist-db/LICENSE deleted file mode 100644 index 377ae1be..00000000 --- a/build_vtk_bundle/node_modules/update-browserslist-db/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright 2022 Andrey Sitnik and other contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/update-browserslist-db/README.md b/build_vtk_bundle/node_modules/update-browserslist-db/README.md deleted file mode 100644 index 686f13c4..00000000 --- a/build_vtk_bundle/node_modules/update-browserslist-db/README.md +++ /dev/null @@ -1,26 +0,0 @@ -# Update Browserslist DB - -Browserslist logo by Anton Popov - -CLI tool to update `caniuse-lite` with browsers DB -from [Browserslist](https://github.com/browserslist/browserslist/) config. - -Some queries like `last 2 versions` or `>1%` depend on actual data -from `caniuse-lite`. - -```sh -npx update-browserslist-db@latest -``` -Or if using `pnpm`: -```sh -pnpm exec update-browserslist-db latest -``` - - - Sponsored by Evil Martians - - -## Docs -Read full docs **[here](https://github.com/browserslist/update-db#readme)**. diff --git a/build_vtk_bundle/node_modules/update-browserslist-db/check-npm-version.js b/build_vtk_bundle/node_modules/update-browserslist-db/check-npm-version.js deleted file mode 100644 index b06811a5..00000000 --- a/build_vtk_bundle/node_modules/update-browserslist-db/check-npm-version.js +++ /dev/null @@ -1,17 +0,0 @@ -let { execSync } = require('child_process') -let pico = require('picocolors') - -try { - let version = parseInt(execSync('npm -v')) - if (version <= 6) { - process.stderr.write( - pico.red( - 'Update npm or call ' + - pico.yellow('npx browserslist@latest --update-db') + - '\n' - ) - ) - process.exit(1) - } - // eslint-disable-next-line no-unused-vars -} catch (e) {} diff --git a/build_vtk_bundle/node_modules/update-browserslist-db/cli.js b/build_vtk_bundle/node_modules/update-browserslist-db/cli.js deleted file mode 100755 index 1388e94d..00000000 --- a/build_vtk_bundle/node_modules/update-browserslist-db/cli.js +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env node - -let { readFileSync } = require('fs') -let { join } = require('path') - -require('./check-npm-version') -let updateDb = require('./') - -const ROOT = __dirname - -function getPackage() { - return JSON.parse(readFileSync(join(ROOT, 'package.json'))) -} - -let args = process.argv.slice(2) - -let USAGE = 'Usage:\n npx update-browserslist-db\n' - -function isArg(arg) { - return args.some(i => i === arg) -} - -function error(msg) { - process.stderr.write('update-browserslist-db: ' + msg + '\n') - process.exit(1) -} - -if (isArg('--help') || isArg('-h')) { - process.stdout.write(getPackage().description + '.\n\n' + USAGE + '\n') -} else if (isArg('--version') || isArg('-v')) { - process.stdout.write('browserslist-lint ' + getPackage().version + '\n') -} else { - try { - updateDb() - } catch (e) { - if (e.name === 'BrowserslistUpdateError') { - error(e.message) - } else { - throw e - } - } -} diff --git a/build_vtk_bundle/node_modules/update-browserslist-db/index.d.ts b/build_vtk_bundle/node_modules/update-browserslist-db/index.d.ts deleted file mode 100644 index 7ae5acd3..00000000 --- a/build_vtk_bundle/node_modules/update-browserslist-db/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Run update and print output to terminal. - */ -declare function updateDb(print?: (str: string) => void): void - -export = updateDb diff --git a/build_vtk_bundle/node_modules/update-browserslist-db/index.js b/build_vtk_bundle/node_modules/update-browserslist-db/index.js deleted file mode 100644 index f7121fa7..00000000 --- a/build_vtk_bundle/node_modules/update-browserslist-db/index.js +++ /dev/null @@ -1,341 +0,0 @@ -let { execSync } = require('child_process') -let escalade = require('escalade/sync') -let { existsSync, readFileSync, writeFileSync } = require('fs') -let { join } = require('path') -let pico = require('picocolors') - -const { detectEOL, detectIndent } = require('./utils') - -function BrowserslistUpdateError(message) { - this.name = 'BrowserslistUpdateError' - this.message = message - this.browserslist = true - if (Error.captureStackTrace) { - Error.captureStackTrace(this, BrowserslistUpdateError) - } -} - -BrowserslistUpdateError.prototype = Error.prototype - -// Check if HADOOP_HOME is set to determine if this is running in a Hadoop environment -const IsHadoopExists = !!process.env.HADOOP_HOME -const yarnCommand = IsHadoopExists ? 'yarnpkg' : 'yarn' - -/* c8 ignore next 3 */ -function defaultPrint(str) { - process.stdout.write(str) -} - -function detectLockfile() { - let packageDir = escalade('.', (dir, names) => { - return names.indexOf('package.json') !== -1 ? dir : '' - }) - - if (!packageDir) { - throw new BrowserslistUpdateError( - 'Cannot find package.json. ' + - 'Is this the right directory to run `npx update-browserslist-db` in?' - ) - } - - let lockfileNpm = join(packageDir, 'package-lock.json') - let lockfileShrinkwrap = join(packageDir, 'npm-shrinkwrap.json') - let lockfileYarn = join(packageDir, 'yarn.lock') - let lockfilePnpm = join(packageDir, 'pnpm-lock.yaml') - let lockfileBun = join(packageDir, 'bun.lock') - let lockfileBunBinary = join(packageDir, 'bun.lockb') - - if (existsSync(lockfilePnpm)) { - return { file: lockfilePnpm, mode: 'pnpm' } - } else if (existsSync(lockfileBun) || existsSync(lockfileBunBinary)) { - return { file: lockfileBun, mode: 'bun' } - } else if (existsSync(lockfileNpm)) { - return { file: lockfileNpm, mode: 'npm' } - } else if (existsSync(lockfileYarn)) { - let lock = { file: lockfileYarn, mode: 'yarn' } - lock.content = readFileSync(lock.file).toString() - lock.version = /# yarn lockfile v1/.test(lock.content) ? 1 : 2 - return lock - } else if (existsSync(lockfileShrinkwrap)) { - return { file: lockfileShrinkwrap, mode: 'npm' } - } - throw new BrowserslistUpdateError( - 'No lockfile found. Run "npm install", "yarn install" or "pnpm install"' - ) -} - -function getLatestInfo(lock) { - if (lock.mode === 'yarn') { - if (lock.version === 1) { - return JSON.parse( - execSync(yarnCommand + ' info caniuse-lite --json').toString() - ).data - } else { - return JSON.parse( - execSync(yarnCommand + ' npm info caniuse-lite --json').toString() - ) - } - } - if (lock.mode === 'pnpm') { - return JSON.parse(execSync('pnpm info caniuse-lite --json').toString()) - } - if (lock.mode === 'bun') { - // TO-DO: No 'bun info' yet. Created issue: https://github.com/oven-sh/bun/issues/12280 - return JSON.parse(execSync(' npm info caniuse-lite --json').toString()) - } - - return JSON.parse(execSync('npm show caniuse-lite --json').toString()) -} - -function getBrowsers() { - let browserslist = require('browserslist') - return browserslist().reduce((result, entry) => { - if (!result[entry[0]]) { - result[entry[0]] = [] - } - result[entry[0]].push(entry[1]) - return result - }, {}) -} - -function diffBrowsers(old, current) { - let browsers = Object.keys(old).concat( - Object.keys(current).filter(browser => old[browser] === undefined) - ) - return browsers - .map(browser => { - let oldVersions = old[browser] || [] - let currentVersions = current[browser] || [] - let common = oldVersions.filter(v => currentVersions.includes(v)) - let added = currentVersions.filter(v => !common.includes(v)) - let removed = oldVersions.filter(v => !common.includes(v)) - return removed - .map(v => pico.red('- ' + browser + ' ' + v)) - .concat(added.map(v => pico.green('+ ' + browser + ' ' + v))) - }) - .reduce((result, array) => result.concat(array), []) - .join('\n') -} - -function updateNpmLockfile(lock, latest) { - let metadata = { latest, versions: [] } - let content = deletePackage(JSON.parse(lock.content), metadata) - metadata.content = JSON.stringify(content, null, detectIndent(lock.content)) - return metadata -} - -function deletePackage(node, metadata) { - if (node.dependencies) { - if (node.dependencies['caniuse-lite']) { - let version = node.dependencies['caniuse-lite'].version - metadata.versions[version] = true - delete node.dependencies['caniuse-lite'] - } - for (let i in node.dependencies) { - node.dependencies[i] = deletePackage(node.dependencies[i], metadata) - } - } - if (node.packages) { - for (let path in node.packages) { - if (path.endsWith('/caniuse-lite')) { - metadata.versions[node.packages[path].version] = true - delete node.packages[path] - } - } - } - return node -} - -let yarnVersionRe = /version "(.*?)"/ - -function updateYarnLockfile(lock, latest) { - let blocks = lock.content.split(/(\n{2,})/).map(block => { - return block.split('\n') - }) - let versions = {} - blocks.forEach(lines => { - if (lines[0].indexOf('caniuse-lite@') !== -1) { - let match = yarnVersionRe.exec(lines[1]) - versions[match[1]] = true - if (match[1] !== latest.version) { - lines[1] = lines[1].replace( - /version "[^"]+"/, - 'version "' + latest.version + '"' - ) - lines[2] = lines[2].replace( - /resolved "[^"]+"/, - 'resolved "' + latest.dist.tarball + '"' - ) - if (lines.length === 4) { - lines[3] = latest.dist.integrity - ? lines[3].replace( - /integrity .+/, - 'integrity ' + latest.dist.integrity - ) - : '' - } - } - } - }) - let content = blocks.map(lines => lines.join('\n')).join('') - return { content, versions } -} - -function updateLockfile(lock, latest) { - if (!lock.content) lock.content = readFileSync(lock.file).toString() - - let updatedLockFile - if (lock.mode === 'yarn') { - updatedLockFile = updateYarnLockfile(lock, latest) - } else { - updatedLockFile = updateNpmLockfile(lock, latest) - } - updatedLockFile.content = updatedLockFile.content.replace( - /\n/g, - detectEOL(lock.content) - ) - return updatedLockFile -} - -function updatePackageManually(print, lock, latest) { - let lockfileData = updateLockfile(lock, latest) - let caniuseVersions = Object.keys(lockfileData.versions).sort() - if (caniuseVersions.length === 1 && caniuseVersions[0] === latest.version) { - print( - 'Installed version: ' + - pico.bold(pico.green(caniuseVersions[0])) + - '\n' + - pico.bold(pico.green('caniuse-lite is up to date')) + - '\n' - ) - return - } - - if (caniuseVersions.length === 0) { - caniuseVersions[0] = 'none' - } - print( - 'Installed version' + - (caniuseVersions.length === 1 ? ': ' : 's: ') + - pico.bold(pico.red(caniuseVersions.join(', '))) + - '\n' + - 'Removing old caniuse-lite from lock file\n' - ) - writeFileSync(lock.file, lockfileData.content) - - let install = - lock.mode === 'yarn' ? yarnCommand + ' add -W' : lock.mode + ' install' - print( - 'Installing new caniuse-lite version\n' + - pico.yellow('$ ' + install + ' caniuse-lite') + - '\n' - ) - try { - execSync(install + ' caniuse-lite') - } catch (e) /* c8 ignore start */ { - print( - pico.red( - '\n' + - e.stack + - '\n\n' + - 'Problem with `' + - install + - ' caniuse-lite` call. ' + - 'Run it manually.\n' - ) - ) - process.exit(1) - } /* c8 ignore end */ - - let del = - lock.mode === 'yarn' ? yarnCommand + ' remove -W' : lock.mode + ' uninstall' - print( - 'Cleaning package.json dependencies from caniuse-lite\n' + - pico.yellow('$ ' + del + ' caniuse-lite') + - '\n' - ) - execSync(del + ' caniuse-lite') -} - -function updateWith(print, cmd) { - print('Updating caniuse-lite version\n' + pico.yellow('$ ' + cmd) + '\n') - try { - execSync(cmd) - } catch (e) /* c8 ignore start */ { - print(pico.red(e.stdout.toString())) - print( - pico.red( - '\n' + - e.stack + - '\n\n' + - 'Problem with `' + - cmd + - '` call. ' + - 'Run it manually.\n' - ) - ) - process.exit(1) - } /* c8 ignore end */ -} - -module.exports = function updateDB(print = defaultPrint) { - let lock = detectLockfile() - let latest = getLatestInfo(lock) - - let listError - let oldList - try { - oldList = getBrowsers() - } catch (e) { - listError = e - } - - print('Latest version: ' + pico.bold(pico.green(latest.version)) + '\n') - - if (lock.mode === 'yarn' && lock.version !== 1) { - updateWith(print, yarnCommand + ' up -R caniuse-lite') - } else if (lock.mode === 'pnpm') { - updateWith(print, 'pnpm up --no-save caniuse-lite') - } else if (lock.mode === 'bun') { - updateWith(print, 'bun update caniuse-lite') - } else { - updatePackageManually(print, lock, latest) - } - - print('caniuse-lite has been successfully updated\n') - - let newList - if (!listError) { - try { - newList = getBrowsers() - } catch (e) /* c8 ignore start */ { - listError = e - } /* c8 ignore end */ - } - - if (listError) { - if (listError.message.includes("Cannot find module 'browserslist'")) { - print( - pico.gray( - 'Install `browserslist` to your direct dependencies ' + - 'to see target browser changes\n' - ) - ) - } else { - print( - pico.gray( - 'Problem with browser list retrieval.\n' + - 'Target browser changes won’t be shown.\n' - ) - ) - } - } else { - let changes = diffBrowsers(oldList, newList) - if (changes) { - print('\nTarget browser changes:\n') - print(changes + '\n') - } else { - print('\n' + pico.green('No target browser changes') + '\n') - } - } -} diff --git a/build_vtk_bundle/node_modules/update-browserslist-db/package.json b/build_vtk_bundle/node_modules/update-browserslist-db/package.json deleted file mode 100644 index 6945585f..00000000 --- a/build_vtk_bundle/node_modules/update-browserslist-db/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "update-browserslist-db", - "version": "1.1.4", - "description": "CLI tool to update caniuse-lite to refresh target browsers from Browserslist config", - "keywords": [ - "caniuse", - "browsers", - "target" - ], - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "author": "Andrey Sitnik ", - "license": "MIT", - "repository": "browserslist/update-db", - "types": "./index.d.ts", - "exports": { - ".": "./index.js", - "./package.json": "./package.json" - }, - "dependencies": { - "escalade": "^3.2.0", - "picocolors": "^1.1.1" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - }, - "bin": "cli.js" -} diff --git a/build_vtk_bundle/node_modules/update-browserslist-db/utils.js b/build_vtk_bundle/node_modules/update-browserslist-db/utils.js deleted file mode 100644 index c63b278c..00000000 --- a/build_vtk_bundle/node_modules/update-browserslist-db/utils.js +++ /dev/null @@ -1,25 +0,0 @@ -const { EOL } = require('os') - -const getFirstRegexpMatchOrDefault = (text, regexp, defaultValue) => { - regexp.lastIndex = 0 // https://stackoverflow.com/a/11477448/4536543 - let match = regexp.exec(text) - if (match !== null) { - return match[1] - } else { - return defaultValue - } -} - -const DEFAULT_INDENT = ' ' -const INDENT_REGEXP = /^([ \t]+)[^\s]/m - -module.exports.detectIndent = text => - getFirstRegexpMatchOrDefault(text, INDENT_REGEXP, DEFAULT_INDENT) -module.exports.DEFAULT_INDENT = DEFAULT_INDENT - -const DEFAULT_EOL = EOL -const EOL_REGEXP = /(\r\n|\n|\r)/g - -module.exports.detectEOL = text => - getFirstRegexpMatchOrDefault(text, EOL_REGEXP, DEFAULT_EOL) -module.exports.DEFAULT_EOL = DEFAULT_EOL diff --git a/build_vtk_bundle/node_modules/uri-js/LICENSE b/build_vtk_bundle/node_modules/uri-js/LICENSE deleted file mode 100755 index 9338bde8..00000000 --- a/build_vtk_bundle/node_modules/uri-js/LICENSE +++ /dev/null @@ -1,11 +0,0 @@ -Copyright 2011 Gary Court. All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY GARY COURT "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of Gary Court. diff --git a/build_vtk_bundle/node_modules/uri-js/README.md b/build_vtk_bundle/node_modules/uri-js/README.md deleted file mode 100755 index 43e648bb..00000000 --- a/build_vtk_bundle/node_modules/uri-js/README.md +++ /dev/null @@ -1,203 +0,0 @@ -# URI.js - -URI.js is an [RFC 3986](http://www.ietf.org/rfc/rfc3986.txt) compliant, scheme extendable URI parsing/validating/resolving library for all JavaScript environments (browsers, Node.js, etc). -It is also compliant with the IRI ([RFC 3987](http://www.ietf.org/rfc/rfc3987.txt)), IDNA ([RFC 5890](http://www.ietf.org/rfc/rfc5890.txt)), IPv6 Address ([RFC 5952](http://www.ietf.org/rfc/rfc5952.txt)), IPv6 Zone Identifier ([RFC 6874](http://www.ietf.org/rfc/rfc6874.txt)) specifications. - -URI.js has an extensive test suite, and works in all (Node.js, web) environments. It weighs in at 6.4kb (gzipped, 17kb deflated). - -## API - -### Parsing - - URI.parse("uri://user:pass@example.com:123/one/two.three?q1=a1&q2=a2#body"); - //returns: - //{ - // scheme : "uri", - // userinfo : "user:pass", - // host : "example.com", - // port : 123, - // path : "/one/two.three", - // query : "q1=a1&q2=a2", - // fragment : "body" - //} - -### Serializing - - URI.serialize({scheme : "http", host : "example.com", fragment : "footer"}) === "http://example.com/#footer" - -### Resolving - - URI.resolve("uri://a/b/c/d?q", "../../g") === "uri://a/g" - -### Normalizing - - URI.normalize("HTTP://ABC.com:80/%7Esmith/home.html") === "http://abc.com/~smith/home.html" - -### Comparison - - URI.equal("example://a/b/c/%7Bfoo%7D", "eXAMPLE://a/./b/../b/%63/%7bfoo%7d") === true - -### IP Support - - //IPv4 normalization - URI.normalize("//192.068.001.000") === "//192.68.1.0" - - //IPv6 normalization - URI.normalize("//[2001:0:0DB8::0:0001]") === "//[2001:0:db8::1]" - - //IPv6 zone identifier support - URI.parse("//[2001:db8::7%25en1]"); - //returns: - //{ - // host : "2001:db8::7%en1" - //} - -### IRI Support - - //convert IRI to URI - URI.serialize(URI.parse("http://examplé.org/rosé")) === "http://xn--exampl-gva.org/ros%C3%A9" - //convert URI to IRI - URI.serialize(URI.parse("http://xn--exampl-gva.org/ros%C3%A9"), {iri:true}) === "http://examplé.org/rosé" - -### Options - -All of the above functions can accept an additional options argument that is an object that can contain one or more of the following properties: - -* `scheme` (string) - - Indicates the scheme that the URI should be treated as, overriding the URI's normal scheme parsing behavior. - -* `reference` (string) - - If set to `"suffix"`, it indicates that the URI is in the suffix format, and the validator will use the option's `scheme` property to determine the URI's scheme. - -* `tolerant` (boolean, false) - - If set to `true`, the parser will relax URI resolving rules. - -* `absolutePath` (boolean, false) - - If set to `true`, the serializer will not resolve a relative `path` component. - -* `iri` (boolean, false) - - If set to `true`, the serializer will unescape non-ASCII characters as per [RFC 3987](http://www.ietf.org/rfc/rfc3987.txt). - -* `unicodeSupport` (boolean, false) - - If set to `true`, the parser will unescape non-ASCII characters in the parsed output as per [RFC 3987](http://www.ietf.org/rfc/rfc3987.txt). - -* `domainHost` (boolean, false) - - If set to `true`, the library will treat the `host` component as a domain name, and convert IDNs (International Domain Names) as per [RFC 5891](http://www.ietf.org/rfc/rfc5891.txt). - -## Scheme Extendable - -URI.js supports inserting custom [scheme](http://en.wikipedia.org/wiki/URI_scheme) dependent processing rules. Currently, URI.js has built in support for the following schemes: - -* http \[[RFC 2616](http://www.ietf.org/rfc/rfc2616.txt)\] -* https \[[RFC 2818](http://www.ietf.org/rfc/rfc2818.txt)\] -* ws \[[RFC 6455](http://www.ietf.org/rfc/rfc6455.txt)\] -* wss \[[RFC 6455](http://www.ietf.org/rfc/rfc6455.txt)\] -* mailto \[[RFC 6068](http://www.ietf.org/rfc/rfc6068.txt)\] -* urn \[[RFC 2141](http://www.ietf.org/rfc/rfc2141.txt)\] -* urn:uuid \[[RFC 4122](http://www.ietf.org/rfc/rfc4122.txt)\] - -### HTTP/HTTPS Support - - URI.equal("HTTP://ABC.COM:80", "http://abc.com/") === true - URI.equal("https://abc.com", "HTTPS://ABC.COM:443/") === true - -### WS/WSS Support - - URI.parse("wss://example.com/foo?bar=baz"); - //returns: - //{ - // scheme : "wss", - // host: "example.com", - // resourceName: "/foo?bar=baz", - // secure: true, - //} - - URI.equal("WS://ABC.COM:80/chat#one", "ws://abc.com/chat") === true - -### Mailto Support - - URI.parse("mailto:alpha@example.com,bravo@example.com?subject=SUBSCRIBE&body=Sign%20me%20up!"); - //returns: - //{ - // scheme : "mailto", - // to : ["alpha@example.com", "bravo@example.com"], - // subject : "SUBSCRIBE", - // body : "Sign me up!" - //} - - URI.serialize({ - scheme : "mailto", - to : ["alpha@example.com"], - subject : "REMOVE", - body : "Please remove me", - headers : { - cc : "charlie@example.com" - } - }) === "mailto:alpha@example.com?cc=charlie@example.com&subject=REMOVE&body=Please%20remove%20me" - -### URN Support - - URI.parse("urn:example:foo"); - //returns: - //{ - // scheme : "urn", - // nid : "example", - // nss : "foo", - //} - -#### URN UUID Support - - URI.parse("urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6"); - //returns: - //{ - // scheme : "urn", - // nid : "uuid", - // uuid : "f81d4fae-7dec-11d0-a765-00a0c91e6bf6", - //} - -## Usage - -To load in a browser, use the following tag: - - - -To load in a CommonJS/Module environment, first install with npm/yarn by running on the command line: - - npm install uri-js - # OR - yarn add uri-js - -Then, in your code, load it using: - - const URI = require("uri-js"); - -If you are writing your code in ES6+ (ESNEXT) or TypeScript, you would load it using: - - import * as URI from "uri-js"; - -Or you can load just what you need using named exports: - - import { parse, serialize, resolve, resolveComponents, normalize, equal, removeDotSegments, pctEncChar, pctDecChars, escapeComponent, unescapeComponent } from "uri-js"; - -## Breaking changes - -### Breaking changes from 3.x - -URN parsing has been completely changed to better align with the specification. Scheme is now always `urn`, but has two new properties: `nid` which contains the Namspace Identifier, and `nss` which contains the Namespace Specific String. The `nss` property will be removed by higher order scheme handlers, such as the UUID URN scheme handler. - -The UUID of a URN can now be found in the `uuid` property. - -### Breaking changes from 2.x - -URI validation has been removed as it was slow, exposed a vulnerabilty, and was generally not useful. - -### Breaking changes from 1.x - -The `errors` array on parsed components is now an `error` string. diff --git a/build_vtk_bundle/node_modules/uri-js/package.json b/build_vtk_bundle/node_modules/uri-js/package.json deleted file mode 100755 index de95d91a..00000000 --- a/build_vtk_bundle/node_modules/uri-js/package.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "name": "uri-js", - "version": "4.4.1", - "description": "An RFC 3986/3987 compliant, scheme extendable URI/IRI parsing/validating/resolving library for JavaScript.", - "main": "dist/es5/uri.all.js", - "types": "dist/es5/uri.all.d.ts", - "directories": { - "test": "tests" - }, - "files": [ - "dist", - "package.json", - "yarn.lock", - "README.md", - "CHANGELOG", - "LICENSE" - ], - "scripts": { - "build:esnext": "tsc", - "build:es5": "rollup -c && cp dist/esnext/uri.d.ts dist/es5/uri.all.d.ts && npm run build:es5:fix-sourcemap", - "build:es5:fix-sourcemap": "sorcery -i dist/es5/uri.all.js", - "build:es5:min": "uglifyjs dist/es5/uri.all.js --support-ie8 --output dist/es5/uri.all.min.js --in-source-map dist/es5/uri.all.js.map --source-map uri.all.min.js.map --comments --compress --mangle --pure-funcs merge subexp && mv uri.all.min.js.map dist/es5/ && cp dist/es5/uri.all.d.ts dist/es5/uri.all.min.d.ts", - "build": "npm run build:esnext && npm run build:es5 && npm run build:es5:min", - "clean": "rm -rf dist", - "test": "mocha -u mocha-qunit-ui dist/es5/uri.all.js tests/tests.js" - }, - "repository": { - "type": "git", - "url": "http://github.com/garycourt/uri-js" - }, - "keywords": [ - "URI", - "IRI", - "IDN", - "URN", - "UUID", - "HTTP", - "HTTPS", - "WS", - "WSS", - "MAILTO", - "RFC3986", - "RFC3987", - "RFC5891", - "RFC2616", - "RFC2818", - "RFC2141", - "RFC4122", - "RFC4291", - "RFC5952", - "RFC6068", - "RFC6455", - "RFC6874" - ], - "author": "Gary Court ", - "license": "BSD-2-Clause", - "bugs": { - "url": "https://github.com/garycourt/uri-js/issues" - }, - "homepage": "https://github.com/garycourt/uri-js", - "devDependencies": { - "babel-cli": "^6.26.0", - "babel-plugin-external-helpers": "^6.22.0", - "babel-preset-latest": "^6.24.1", - "mocha": "^8.2.1", - "mocha-qunit-ui": "^0.1.3", - "rollup": "^0.41.6", - "rollup-plugin-babel": "^2.7.1", - "rollup-plugin-node-resolve": "^2.0.0", - "sorcery": "^0.10.0", - "typescript": "^2.8.1", - "uglify-js": "^2.8.14" - }, - "dependencies": { - "punycode": "^2.1.0" - } -} diff --git a/build_vtk_bundle/node_modules/uri-js/yarn.lock b/build_vtk_bundle/node_modules/uri-js/yarn.lock deleted file mode 100755 index 3c42ded1..00000000 --- a/build_vtk_bundle/node_modules/uri-js/yarn.lock +++ /dev/null @@ -1,2558 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@ungap/promise-all-settled@1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz#aa58042711d6e3275dd37dc597e5d31e8c290a44" - integrity sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q== - -align-text@^0.1.1, align-text@^0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" - dependencies: - kind-of "^3.0.2" - longest "^1.0.1" - repeat-string "^1.5.2" - -ansi-colors@4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348" - integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA== - -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - integrity sha1-w7M6te42DYbg5ijwRorn7yfWVN8= - -ansi-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" - integrity sha1-7QMXwyIGT3lGbAKWa922Bas32Zg= - -ansi-regex@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997" - integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== - -ansi-styles@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" - integrity sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4= - -ansi-styles@^3.2.0: - version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" - integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== - dependencies: - color-convert "^1.9.0" - -ansi-styles@^4.1.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - -anymatch@^1.3.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a" - integrity sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA== - dependencies: - micromatch "^2.1.5" - normalize-path "^2.0.0" - -anymatch@~3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.1.tgz#c55ecf02185e2469259399310c173ce31233b142" - integrity sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg== - dependencies: - normalize-path "^3.0.0" - picomatch "^2.0.4" - -argparse@^1.0.7: - version "1.0.10" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" - integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== - dependencies: - sprintf-js "~1.0.2" - -arr-diff@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" - integrity sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8= - dependencies: - arr-flatten "^1.0.1" - -arr-diff@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" - integrity sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA= - -arr-flatten@^1.0.1, arr-flatten@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== - -arr-union@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" - integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= - -array-unique@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" - integrity sha1-odl8yvy8JiXMcPrc6zalDFiwGlM= - -array-unique@^0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" - integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= - -assign-symbols@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" - integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c= - -async-each@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.3.tgz#b727dbf87d7651602f06f4d4ac387f47d91b0cbf" - integrity sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ== - -atob@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" - integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== - -babel-cli@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-cli/-/babel-cli-6.26.0.tgz#502ab54874d7db88ad00b887a06383ce03d002f1" - integrity sha1-UCq1SHTX24itALiHoGODzgPQAvE= - dependencies: - babel-core "^6.26.0" - babel-polyfill "^6.26.0" - babel-register "^6.26.0" - babel-runtime "^6.26.0" - commander "^2.11.0" - convert-source-map "^1.5.0" - fs-readdir-recursive "^1.0.0" - glob "^7.1.2" - lodash "^4.17.4" - output-file-sync "^1.1.2" - path-is-absolute "^1.0.1" - slash "^1.0.0" - source-map "^0.5.6" - v8flags "^2.1.1" - optionalDependencies: - chokidar "^1.6.1" - -babel-code-frame@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" - integrity sha1-Y/1D99weO7fONZR9uP42mj9Yx0s= - dependencies: - chalk "^1.1.3" - esutils "^2.0.2" - js-tokens "^3.0.2" - -babel-core@6: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.0.tgz#af32f78b31a6fcef119c87b0fd8d9753f03a0bb8" - dependencies: - babel-code-frame "^6.26.0" - babel-generator "^6.26.0" - babel-helpers "^6.24.1" - babel-messages "^6.23.0" - babel-register "^6.26.0" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - convert-source-map "^1.5.0" - debug "^2.6.8" - json5 "^0.5.1" - lodash "^4.17.4" - minimatch "^3.0.4" - path-is-absolute "^1.0.1" - private "^0.1.7" - slash "^1.0.0" - source-map "^0.5.6" - -babel-core@^6.26.0: - version "6.26.3" - resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.3.tgz#b2e2f09e342d0f0c88e2f02e067794125e75c207" - integrity sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA== - dependencies: - babel-code-frame "^6.26.0" - babel-generator "^6.26.0" - babel-helpers "^6.24.1" - babel-messages "^6.23.0" - babel-register "^6.26.0" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - convert-source-map "^1.5.1" - debug "^2.6.9" - json5 "^0.5.1" - lodash "^4.17.4" - minimatch "^3.0.4" - path-is-absolute "^1.0.1" - private "^0.1.8" - slash "^1.0.0" - source-map "^0.5.7" - -babel-generator@^6.26.0: - version "6.26.1" - resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90" - integrity sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA== - dependencies: - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - detect-indent "^4.0.0" - jsesc "^1.3.0" - lodash "^4.17.4" - source-map "^0.5.7" - trim-right "^1.0.1" - -babel-helper-builder-binary-assignment-operator-visitor@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664" - dependencies: - babel-helper-explode-assignable-expression "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-call-delegate@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-define-map@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz#a5f56dab41a25f97ecb498c7ebaca9819f95be5f" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-explode-assignable-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz#f25b82cf7dc10433c55f70592d5746400ac22caa" - dependencies: - babel-runtime "^6.22.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-function-name@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" - dependencies: - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-get-function-arity@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-hoist-variables@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz#1ecb27689c9d25513eadbc9914a73f5408be7a76" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-optimise-call-expression@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-helper-regex@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz#325c59f902f82f24b74faceed0363954f6495e72" - dependencies: - babel-runtime "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-helper-remap-async-to-generator@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz#5ec581827ad723fecdd381f1c928390676e4551b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helper-replace-supers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" - dependencies: - babel-helper-optimise-call-expression "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-helpers@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" - integrity sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI= - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-messages@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" - integrity sha1-8830cDhYA1sqKVHG7F7fbGLyYw4= - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-check-es2015-constants@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-external-helpers@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-external-helpers/-/babel-plugin-external-helpers-6.22.0.tgz#2285f48b02bd5dede85175caf8c62e86adccefa1" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-syntax-async-functions@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95" - -babel-plugin-syntax-exponentiation-operator@^6.8.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de" - -babel-plugin-syntax-trailing-function-commas@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3" - -babel-plugin-transform-async-to-generator@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761" - dependencies: - babel-helper-remap-async-to-generator "^6.24.1" - babel-plugin-syntax-async-functions "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-arrow-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-block-scoping@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f" - dependencies: - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - lodash "^4.17.4" - -babel-plugin-transform-es2015-classes@^6.24.1, babel-plugin-transform-es2015-classes@^6.9.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" - dependencies: - babel-helper-define-map "^6.24.1" - babel-helper-function-name "^6.24.1" - babel-helper-optimise-call-expression "^6.24.1" - babel-helper-replace-supers "^6.24.1" - babel-messages "^6.23.0" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-computed-properties@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" - dependencies: - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-destructuring@^6.22.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-duplicate-keys@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-for-of@^6.22.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-function-name@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-modules-amd@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154" - dependencies: - babel-plugin-transform-es2015-modules-commonjs "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-commonjs@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz#0d8394029b7dc6abe1a97ef181e00758dd2e5d8a" - dependencies: - babel-plugin-transform-strict-mode "^6.24.1" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-types "^6.26.0" - -babel-plugin-transform-es2015-modules-systemjs@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23" - dependencies: - babel-helper-hoist-variables "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-modules-umd@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468" - dependencies: - babel-plugin-transform-es2015-modules-amd "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - -babel-plugin-transform-es2015-object-super@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" - dependencies: - babel-helper-replace-supers "^6.24.1" - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-parameters@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" - dependencies: - babel-helper-call-delegate "^6.24.1" - babel-helper-get-function-arity "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-shorthand-properties@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-spread@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-sticky-regex@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-plugin-transform-es2015-template-literals@^6.22.0: - version "6.22.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-typeof-symbol@^6.22.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-unicode-regex@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9" - dependencies: - babel-helper-regex "^6.24.1" - babel-runtime "^6.22.0" - regexpu-core "^2.0.0" - -babel-plugin-transform-exponentiation-operator@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e" - dependencies: - babel-helper-builder-binary-assignment-operator-visitor "^6.24.1" - babel-plugin-syntax-exponentiation-operator "^6.8.0" - babel-runtime "^6.22.0" - -babel-plugin-transform-regenerator@^6.24.1: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f" - dependencies: - regenerator-transform "^0.10.0" - -babel-plugin-transform-strict-mode@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-polyfill@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153" - integrity sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM= - dependencies: - babel-runtime "^6.26.0" - core-js "^2.5.0" - regenerator-runtime "^0.10.5" - -babel-preset-es2015@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz#d44050d6bc2c9feea702aaf38d727a0210538939" - dependencies: - babel-plugin-check-es2015-constants "^6.22.0" - babel-plugin-transform-es2015-arrow-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" - babel-plugin-transform-es2015-block-scoping "^6.24.1" - babel-plugin-transform-es2015-classes "^6.24.1" - babel-plugin-transform-es2015-computed-properties "^6.24.1" - babel-plugin-transform-es2015-destructuring "^6.22.0" - babel-plugin-transform-es2015-duplicate-keys "^6.24.1" - babel-plugin-transform-es2015-for-of "^6.22.0" - babel-plugin-transform-es2015-function-name "^6.24.1" - babel-plugin-transform-es2015-literals "^6.22.0" - babel-plugin-transform-es2015-modules-amd "^6.24.1" - babel-plugin-transform-es2015-modules-commonjs "^6.24.1" - babel-plugin-transform-es2015-modules-systemjs "^6.24.1" - babel-plugin-transform-es2015-modules-umd "^6.24.1" - babel-plugin-transform-es2015-object-super "^6.24.1" - babel-plugin-transform-es2015-parameters "^6.24.1" - babel-plugin-transform-es2015-shorthand-properties "^6.24.1" - babel-plugin-transform-es2015-spread "^6.22.0" - babel-plugin-transform-es2015-sticky-regex "^6.24.1" - babel-plugin-transform-es2015-template-literals "^6.22.0" - babel-plugin-transform-es2015-typeof-symbol "^6.22.0" - babel-plugin-transform-es2015-unicode-regex "^6.24.1" - babel-plugin-transform-regenerator "^6.24.1" - -babel-preset-es2016@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-es2016/-/babel-preset-es2016-6.24.1.tgz#f900bf93e2ebc0d276df9b8ab59724ebfd959f8b" - dependencies: - babel-plugin-transform-exponentiation-operator "^6.24.1" - -babel-preset-es2017@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-es2017/-/babel-preset-es2017-6.24.1.tgz#597beadfb9f7f208bcfd8a12e9b2b29b8b2f14d1" - dependencies: - babel-plugin-syntax-trailing-function-commas "^6.22.0" - babel-plugin-transform-async-to-generator "^6.24.1" - -babel-preset-latest@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-preset-latest/-/babel-preset-latest-6.24.1.tgz#677de069154a7485c2d25c577c02f624b85b85e8" - dependencies: - babel-preset-es2015 "^6.24.1" - babel-preset-es2016 "^6.24.1" - babel-preset-es2017 "^6.24.1" - -babel-register@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071" - integrity sha1-btAhFz4vy0htestFxgCahW9kcHE= - dependencies: - babel-core "^6.26.0" - babel-runtime "^6.26.0" - core-js "^2.5.0" - home-or-tmp "^2.0.0" - lodash "^4.17.4" - mkdirp "^0.5.1" - source-map-support "^0.4.15" - -babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" - integrity sha1-llxwWGaOgrVde/4E/yM3vItWR/4= - dependencies: - core-js "^2.4.0" - regenerator-runtime "^0.11.0" - -babel-template@^6.24.1, babel-template@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" - integrity sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI= - dependencies: - babel-runtime "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - lodash "^4.17.4" - -babel-traverse@^6.24.1, babel-traverse@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" - dependencies: - babel-code-frame "^6.26.0" - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - debug "^2.6.8" - globals "^9.18.0" - invariant "^2.2.2" - lodash "^4.17.4" - -babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" - dependencies: - babel-runtime "^6.26.0" - esutils "^2.0.2" - lodash "^4.17.4" - to-fast-properties "^1.0.3" - -babylon@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" - integrity sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ== - -balanced-match@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" - integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= - -base@^0.11.1: - version "0.11.2" - resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" - integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== - dependencies: - cache-base "^1.0.1" - class-utils "^0.3.5" - component-emitter "^1.2.1" - define-property "^1.0.0" - isobject "^3.0.1" - mixin-deep "^1.2.0" - pascalcase "^0.1.1" - -binary-extensions@^1.0.0: - version "1.13.1" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.13.1.tgz#598afe54755b2868a5330d2aff9d4ebb53209b65" - integrity sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw== - -binary-extensions@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.1.0.tgz#30fa40c9e7fe07dbc895678cd287024dea241dd9" - integrity sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ== - -bindings@^1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df" - integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ== - dependencies: - file-uri-to-path "1.0.0" - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -braces@^1.8.2: - version "1.8.5" - resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" - integrity sha1-uneWLhLf+WnWt2cR6RS3N4V79qc= - dependencies: - expand-range "^1.8.1" - preserve "^0.2.0" - repeat-element "^1.1.2" - -braces@^2.3.1: - version "2.3.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" - integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== - dependencies: - arr-flatten "^1.1.0" - array-unique "^0.3.2" - extend-shallow "^2.0.1" - fill-range "^4.0.0" - isobject "^3.0.1" - repeat-element "^1.1.2" - snapdragon "^0.8.1" - snapdragon-node "^2.0.1" - split-string "^3.0.2" - to-regex "^3.0.1" - -braces@~3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" - integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== - dependencies: - fill-range "^7.0.1" - -browser-resolve@^1.11.0: - version "1.11.2" - resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.2.tgz#8ff09b0a2c421718a1051c260b32e48f442938ce" - dependencies: - resolve "1.1.7" - -browser-stdout@1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60" - integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== - -buffer-crc32@^0.2.5: - version "0.2.13" - resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242" - -builtin-modules@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" - -cache-base@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" - integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== - dependencies: - collection-visit "^1.0.0" - component-emitter "^1.2.1" - get-value "^2.0.6" - has-value "^1.0.0" - isobject "^3.0.1" - set-value "^2.0.0" - to-object-path "^0.3.0" - union-value "^1.0.0" - unset-value "^1.0.0" - -camelcase@^1.0.2: - version "1.2.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" - -camelcase@^5.0.0: - version "5.3.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" - integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== - -camelcase@^6.0.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.2.0.tgz#924af881c9d525ac9d87f40d964e5cea982a1809" - integrity sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg== - -center-align@^0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" - dependencies: - align-text "^0.1.3" - lazy-cache "^1.0.3" - -chalk@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" - integrity sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg= - dependencies: - ansi-styles "^2.2.1" - escape-string-regexp "^1.0.2" - has-ansi "^2.0.0" - strip-ansi "^3.0.0" - supports-color "^2.0.0" - -chalk@^4.0.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" - integrity sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -chokidar@3.4.3: - version "3.4.3" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.4.3.tgz#c1df38231448e45ca4ac588e6c79573ba6a57d5b" - integrity sha512-DtM3g7juCXQxFVSNPNByEC2+NImtBuxQQvWlHunpJIS5Ocr0lG306cC7FCi7cEA0fzmybPUIl4txBIobk1gGOQ== - dependencies: - anymatch "~3.1.1" - braces "~3.0.2" - glob-parent "~5.1.0" - is-binary-path "~2.1.0" - is-glob "~4.0.1" - normalize-path "~3.0.0" - readdirp "~3.5.0" - optionalDependencies: - fsevents "~2.1.2" - -chokidar@^1.6.1: - version "1.7.0" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468" - integrity sha1-eY5ol3gVHIB2tLNg5e3SjNortGg= - dependencies: - anymatch "^1.3.0" - async-each "^1.0.0" - glob-parent "^2.0.0" - inherits "^2.0.1" - is-binary-path "^1.0.0" - is-glob "^2.0.0" - path-is-absolute "^1.0.0" - readdirp "^2.0.0" - optionalDependencies: - fsevents "^1.0.0" - -class-utils@^0.3.5: - version "0.3.6" - resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" - integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== - dependencies: - arr-union "^3.1.0" - define-property "^0.2.5" - isobject "^3.0.0" - static-extend "^0.1.1" - -cliui@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" - dependencies: - center-align "^0.1.1" - right-align "^0.1.1" - wordwrap "0.0.2" - -cliui@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5" - integrity sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA== - dependencies: - string-width "^3.1.0" - strip-ansi "^5.2.0" - wrap-ansi "^5.1.0" - -collection-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" - integrity sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA= - dependencies: - map-visit "^1.0.0" - object-visit "^1.0.0" - -color-convert@^1.9.0: - version "1.9.3" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" - integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== - dependencies: - color-name "1.1.3" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -commander@^2.11.0: - version "2.20.3" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" - integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== - -component-emitter@^1.2.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" - integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg== - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= - -convert-source-map@^1.5.0, convert-source-map@^1.5.1: - version "1.7.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442" - integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA== - dependencies: - safe-buffer "~5.1.1" - -copy-descriptor@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" - integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= - -core-js@^2.4.0, core-js@^2.5.0: - version "2.6.12" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec" - integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ== - -core-util-is@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= - -debug@4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.2.0.tgz#7f150f93920e94c58f5574c2fd01a3110effe7f1" - integrity sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg== - dependencies: - ms "2.1.2" - -debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - -decamelize@^1.0.0, decamelize@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - -decamelize@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837" - integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ== - -decode-uri-component@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" - integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= - -define-property@^0.2.5: - version "0.2.5" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" - integrity sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY= - dependencies: - is-descriptor "^0.1.0" - -define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" - integrity sha1-dp66rz9KY6rTr56NMEybvnm/sOY= - dependencies: - is-descriptor "^1.0.0" - -define-property@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" - integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== - dependencies: - is-descriptor "^1.0.2" - isobject "^3.0.1" - -detect-indent@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" - integrity sha1-920GQ1LN9Docts5hnE7jqUdd4gg= - dependencies: - repeating "^2.0.0" - -diff@4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" - integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== - -emoji-regex@^7.0.1: - version "7.0.3" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" - integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== - -es6-promise@^3.1.2: - version "3.3.1" - resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-3.3.1.tgz#a08cdde84ccdbf34d027a1451bc91d4bcd28a613" - -escape-string-regexp@4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - -escape-string-regexp@^1.0.2: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= - -esprima@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" - integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== - -estree-walker@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.2.1.tgz#bdafe8095383d8414d5dc2ecf4c9173b6db9412e" - -esutils@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" - integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== - -expand-brackets@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" - integrity sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s= - dependencies: - is-posix-bracket "^0.1.0" - -expand-brackets@^2.1.4: - version "2.1.4" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" - integrity sha1-t3c14xXOMPa27/D4OwQVGiJEliI= - dependencies: - debug "^2.3.3" - define-property "^0.2.5" - extend-shallow "^2.0.1" - posix-character-classes "^0.1.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -expand-range@^1.8.1: - version "1.8.2" - resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" - integrity sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc= - dependencies: - fill-range "^2.1.0" - -extend-shallow@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" - integrity sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8= - dependencies: - is-extendable "^0.1.0" - -extend-shallow@^3.0.0, extend-shallow@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" - integrity sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg= - dependencies: - assign-symbols "^1.0.0" - is-extendable "^1.0.1" - -extglob@^0.3.1: - version "0.3.2" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" - integrity sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE= - dependencies: - is-extglob "^1.0.0" - -extglob@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" - integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== - dependencies: - array-unique "^0.3.2" - define-property "^1.0.0" - expand-brackets "^2.1.4" - extend-shallow "^2.0.1" - fragment-cache "^0.2.1" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -file-uri-to-path@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd" - integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw== - -filename-regex@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" - integrity sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY= - -fill-range@^2.1.0: - version "2.2.4" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.4.tgz#eb1e773abb056dcd8df2bfdf6af59b8b3a936565" - integrity sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q== - dependencies: - is-number "^2.1.0" - isobject "^2.0.0" - randomatic "^3.0.0" - repeat-element "^1.1.2" - repeat-string "^1.5.2" - -fill-range@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" - integrity sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc= - dependencies: - extend-shallow "^2.0.1" - is-number "^3.0.0" - repeat-string "^1.6.1" - to-regex-range "^2.1.0" - -fill-range@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" - integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== - dependencies: - to-regex-range "^5.0.1" - -find-up@5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - -find-up@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" - integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== - dependencies: - locate-path "^3.0.0" - -flat@^5.0.2: - version "5.0.2" - resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" - integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== - -for-in@^1.0.1, for-in@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA= - -for-own@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" - integrity sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4= - dependencies: - for-in "^1.0.1" - -fragment-cache@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" - integrity sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk= - dependencies: - map-cache "^0.2.2" - -fs-readdir-recursive@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz#e32fc030a2ccee44a6b5371308da54be0b397d27" - integrity sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA== - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= - -fsevents@^1.0.0: - version "1.2.13" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.13.tgz#f325cb0455592428bcf11b383370ef70e3bfcc38" - integrity sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw== - dependencies: - bindings "^1.5.0" - nan "^2.12.1" - -fsevents@~2.1.2: - version "2.1.3" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.3.tgz#fb738703ae8d2f9fe900c33836ddebee8b97f23e" - integrity sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ== - -get-caller-file@^2.0.1: - version "2.0.5" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - -get-value@^2.0.3, get-value@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" - integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg= - -glob-base@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" - integrity sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q= - dependencies: - glob-parent "^2.0.0" - is-glob "^2.0.0" - -glob-parent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" - integrity sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg= - dependencies: - is-glob "^2.0.0" - -glob-parent@~5.1.0: - version "5.1.1" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.1.tgz#b6c1ef417c4e5663ea498f1c45afac6916bbc229" - integrity sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ== - dependencies: - is-glob "^4.0.1" - -glob@7.1.6, glob@^7.1.2, glob@^7.1.3: - version "7.1.6" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" - integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -globals@^9.18.0: - version "9.18.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" - integrity sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ== - -graceful-fs@^4.1.11, graceful-fs@^4.1.4: - version "4.2.4" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb" - integrity sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw== - -graceful-fs@^4.1.3: - version "4.2.3" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.3.tgz#4a12ff1b60376ef09862c2093edd908328be8423" - -growl@1.10.5: - version "1.10.5" - resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e" - integrity sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA== - -has-ansi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" - integrity sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE= - dependencies: - ansi-regex "^2.0.0" - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -has-value@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" - integrity sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8= - dependencies: - get-value "^2.0.3" - has-values "^0.1.4" - isobject "^2.0.0" - -has-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" - integrity sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc= - dependencies: - get-value "^2.0.6" - has-values "^1.0.0" - isobject "^3.0.0" - -has-values@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" - integrity sha1-bWHeldkd/Km5oCCJrThL/49it3E= - -has-values@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" - integrity sha1-lbC2P+whRmGab+V/51Yo1aOe/k8= - dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" - -he@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" - integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== - -home-or-tmp@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" - integrity sha1-42w/LSyufXRqhX440Y1fMqeILbg= - dependencies: - os-homedir "^1.0.0" - os-tmpdir "^1.0.1" - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2, inherits@^2.0.1, inherits@~2.0.3: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -invariant@^2.2.2: - version "2.2.4" - resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" - integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== - dependencies: - loose-envify "^1.0.0" - -is-accessor-descriptor@^0.1.6: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" - integrity sha1-qeEss66Nh2cn7u84Q/igiXtcmNY= - dependencies: - kind-of "^3.0.2" - -is-accessor-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" - integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== - dependencies: - kind-of "^6.0.0" - -is-binary-path@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" - integrity sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg= - dependencies: - binary-extensions "^1.0.0" - -is-binary-path@~2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" - integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== - dependencies: - binary-extensions "^2.0.0" - -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== - -is-data-descriptor@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" - integrity sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y= - dependencies: - kind-of "^3.0.2" - -is-data-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" - integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== - dependencies: - kind-of "^6.0.0" - -is-descriptor@^0.1.0: - version "0.1.6" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" - integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== - dependencies: - is-accessor-descriptor "^0.1.6" - is-data-descriptor "^0.1.4" - kind-of "^5.0.0" - -is-descriptor@^1.0.0, is-descriptor@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" - integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== - dependencies: - is-accessor-descriptor "^1.0.0" - is-data-descriptor "^1.0.0" - kind-of "^6.0.2" - -is-dotfile@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" - integrity sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE= - -is-equal-shallow@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" - integrity sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ= - dependencies: - is-primitive "^2.0.0" - -is-extendable@^0.1.0, is-extendable@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - integrity sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik= - -is-extendable@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" - integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== - dependencies: - is-plain-object "^2.0.4" - -is-extglob@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" - integrity sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA= - -is-extglob@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" - integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= - -is-finite@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.1.0.tgz#904135c77fb42c0641d6aa1bcdbc4daa8da082f3" - integrity sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w== - -is-fullwidth-code-point@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" - integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= - -is-glob@^2.0.0, is-glob@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" - integrity sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM= - dependencies: - is-extglob "^1.0.0" - -is-glob@^4.0.1, is-glob@~4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" - integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg== - dependencies: - is-extglob "^2.1.1" - -is-number@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" - integrity sha1-Afy7s5NGOlSPL0ZszhbezknbkI8= - dependencies: - kind-of "^3.0.2" - -is-number@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" - integrity sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU= - dependencies: - kind-of "^3.0.2" - -is-number@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" - integrity sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ== - -is-number@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" - integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== - -is-plain-obj@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" - integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== - -is-plain-object@^2.0.3, is-plain-object@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" - integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== - dependencies: - isobject "^3.0.1" - -is-posix-bracket@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" - integrity sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q= - -is-primitive@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" - integrity sha1-IHurkWOEmcB7Kt8kCkGochADRXU= - -is-windows@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" - integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== - -isarray@1.0.0, isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= - -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - integrity sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk= - dependencies: - isarray "1.0.0" - -isobject@^3.0.0, isobject@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" - integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= - -"js-tokens@^3.0.0 || ^4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" - integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== - -js-tokens@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" - integrity sha1-mGbfOVECEw449/mWvOtlRDIJwls= - -js-yaml@3.14.0: - version "3.14.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.0.tgz#a7a34170f26a21bb162424d8adacb4113a69e482" - integrity sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A== - dependencies: - argparse "^1.0.7" - esprima "^4.0.0" - -jsesc@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" - integrity sha1-RsP+yMGJKxKwgz25vHYiF226s0s= - -jsesc@~0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" - -json5@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" - integrity sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE= - -kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - integrity sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ= - dependencies: - is-buffer "^1.1.5" - -kind-of@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" - integrity sha1-IIE989cSkosgc3hpGkUGb65y3Vc= - dependencies: - is-buffer "^1.1.5" - -kind-of@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" - integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== - -kind-of@^6.0.0, kind-of@^6.0.2: - version "6.0.3" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" - integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== - -lazy-cache@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" - -locate-path@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" - integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== - dependencies: - p-locate "^3.0.0" - path-exists "^3.0.0" - -locate-path@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" - integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== - dependencies: - p-locate "^5.0.0" - -lodash@^4.17.4: - version "4.17.20" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52" - integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA== - -log-symbols@4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.0.0.tgz#69b3cc46d20f448eccdb75ea1fa733d9e821c920" - integrity sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA== - dependencies: - chalk "^4.0.0" - -longest@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" - -loose-envify@^1.0.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" - integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== - dependencies: - js-tokens "^3.0.0 || ^4.0.0" - -map-cache@^0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" - integrity sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8= - -map-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" - integrity sha1-7Nyo8TFE5mDxtb1B8S80edmN+48= - dependencies: - object-visit "^1.0.0" - -math-random@^1.0.1: - version "1.0.4" - resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.4.tgz#5dd6943c938548267016d4e34f057583080c514c" - integrity sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A== - -micromatch@^2.1.5: - version "2.3.11" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" - integrity sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU= - dependencies: - arr-diff "^2.0.0" - array-unique "^0.2.1" - braces "^1.8.2" - expand-brackets "^0.1.4" - extglob "^0.3.1" - filename-regex "^2.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.1" - kind-of "^3.0.2" - normalize-path "^2.0.1" - object.omit "^2.0.0" - parse-glob "^3.0.4" - regex-cache "^0.4.2" - -micromatch@^3.1.10: - version "3.1.10" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" - integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - braces "^2.3.1" - define-property "^2.0.2" - extend-shallow "^3.0.2" - extglob "^2.0.4" - fragment-cache "^0.2.1" - kind-of "^6.0.2" - nanomatch "^1.2.9" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.2" - -minimatch@3.0.4, minimatch@^3.0.2, minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - dependencies: - brace-expansion "^1.1.7" - -minimist@^1.2.0, minimist@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" - integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== - -mixin-deep@^1.2.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" - integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA== - dependencies: - for-in "^1.0.2" - is-extendable "^1.0.1" - -mkdirp@^0.5.1: - version "0.5.5" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def" - integrity sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ== - dependencies: - minimist "^1.2.5" - -mocha-qunit-ui@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/mocha-qunit-ui/-/mocha-qunit-ui-0.1.3.tgz#e3e1ff1dac33222b10cef681efd7f82664141ea9" - -mocha@^8.2.1: - version "8.2.1" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-8.2.1.tgz#f2fa68817ed0e53343d989df65ccd358bc3a4b39" - integrity sha512-cuLBVfyFfFqbNR0uUKbDGXKGk+UDFe6aR4os78XIrMQpZl/nv7JYHcvP5MFIAb374b2zFXsdgEGwmzMtP0Xg8w== - dependencies: - "@ungap/promise-all-settled" "1.1.2" - ansi-colors "4.1.1" - browser-stdout "1.3.1" - chokidar "3.4.3" - debug "4.2.0" - diff "4.0.2" - escape-string-regexp "4.0.0" - find-up "5.0.0" - glob "7.1.6" - growl "1.10.5" - he "1.2.0" - js-yaml "3.14.0" - log-symbols "4.0.0" - minimatch "3.0.4" - ms "2.1.2" - nanoid "3.1.12" - serialize-javascript "5.0.1" - strip-json-comments "3.1.1" - supports-color "7.2.0" - which "2.0.2" - wide-align "1.1.3" - workerpool "6.0.2" - yargs "13.3.2" - yargs-parser "13.1.2" - yargs-unparser "2.0.0" - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= - -ms@2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== - -nan@^2.12.1: - version "2.14.2" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.2.tgz#f5376400695168f4cc694ac9393d0c9585eeea19" - integrity sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ== - -nanoid@3.1.12: - version "3.1.12" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.12.tgz#6f7736c62e8d39421601e4a0c77623a97ea69654" - integrity sha512-1qstj9z5+x491jfiC4Nelk+f8XBad7LN20PmyWINJEMRSf3wcAjAWysw1qaA8z6NSKe2sjq1hRSDpBH5paCb6A== - -nanomatch@^1.2.9: - version "1.2.13" - resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" - integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - define-property "^2.0.2" - extend-shallow "^3.0.2" - fragment-cache "^0.2.1" - is-windows "^1.0.2" - kind-of "^6.0.2" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -normalize-path@^2.0.0, normalize-path@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" - integrity sha1-GrKLVW4Zg2Oowab35vogE3/mrtk= - dependencies: - remove-trailing-separator "^1.0.1" - -normalize-path@^3.0.0, normalize-path@~3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" - integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== - -object-assign@^4.1.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= - -object-copy@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" - integrity sha1-fn2Fi3gb18mRpBupde04EnVOmYw= - dependencies: - copy-descriptor "^0.1.0" - define-property "^0.2.5" - kind-of "^3.0.3" - -object-visit@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" - integrity sha1-95xEk68MU3e1n+OdOV5BBC3QRbs= - dependencies: - isobject "^3.0.0" - -object.omit@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" - integrity sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo= - dependencies: - for-own "^0.1.4" - is-extendable "^0.1.1" - -object.pick@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" - integrity sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c= - dependencies: - isobject "^3.0.1" - -once@^1.3.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= - dependencies: - wrappy "1" - -os-homedir@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" - integrity sha1-/7xJiDNuDoM94MFox+8VISGqf7M= - -os-tmpdir@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" - integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= - -output-file-sync@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/output-file-sync/-/output-file-sync-1.1.2.tgz#d0a33eefe61a205facb90092e826598d5245ce76" - integrity sha1-0KM+7+YaIF+suQCS6CZZjVJFznY= - dependencies: - graceful-fs "^4.1.4" - mkdirp "^0.5.1" - object-assign "^4.1.0" - -p-limit@^2.0.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" - integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== - dependencies: - p-try "^2.0.0" - -p-limit@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== - dependencies: - yocto-queue "^0.1.0" - -p-locate@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" - integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== - dependencies: - p-limit "^2.0.0" - -p-locate@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" - integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== - dependencies: - p-limit "^3.0.2" - -p-try@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" - integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== - -parse-glob@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" - integrity sha1-ssN2z7EfNVE7rdFz7wu246OIORw= - dependencies: - glob-base "^0.3.0" - is-dotfile "^1.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.0" - -pascalcase@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" - integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ= - -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= - -path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - -path-is-absolute@^1.0.0, path-is-absolute@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= - -path-parse@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1" - -picomatch@^2.0.4, picomatch@^2.2.1: - version "2.2.2" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad" - integrity sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg== - -posix-character-classes@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" - integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= - -preserve@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" - integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks= - -private@^0.1.6, private@^0.1.7, private@^0.1.8: - version "0.1.8" - resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" - -process-nextick-args@~2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" - integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== - -punycode@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.0.tgz#5f863edc89b96db09074bad7947bf09056ca4e7d" - -randomatic@^3.0.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.1.1.tgz#b776efc59375984e36c537b2f51a1f0aff0da1ed" - integrity sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw== - dependencies: - is-number "^4.0.0" - kind-of "^6.0.0" - math-random "^1.0.1" - -randombytes@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" - integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== - dependencies: - safe-buffer "^5.1.0" - -readable-stream@^2.0.2: - version "2.3.7" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" - integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.1.1" - util-deprecate "~1.0.1" - -readdirp@^2.0.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.2.1.tgz#0e87622a3325aa33e892285caf8b4e846529a525" - integrity sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ== - dependencies: - graceful-fs "^4.1.11" - micromatch "^3.1.10" - readable-stream "^2.0.2" - -readdirp@~3.5.0: - version "3.5.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.5.0.tgz#9ba74c019b15d365278d2e91bb8c48d7b4d42c9e" - integrity sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ== - dependencies: - picomatch "^2.2.1" - -regenerate@^1.2.1: - version "1.3.3" - resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.3.3.tgz#0c336d3980553d755c39b586ae3b20aa49c82b7f" - -regenerator-runtime@^0.10.5: - version "0.10.5" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658" - integrity sha1-M2w+/BIgrc7dosn6tntaeVWjNlg= - -regenerator-runtime@^0.11.0: - version "0.11.1" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" - integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg== - -regenerator-transform@^0.10.0: - version "0.10.1" - resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd" - dependencies: - babel-runtime "^6.18.0" - babel-types "^6.19.0" - private "^0.1.6" - -regex-cache@^0.4.2: - version "0.4.4" - resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" - integrity sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ== - dependencies: - is-equal-shallow "^0.1.3" - -regex-not@^1.0.0, regex-not@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" - integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== - dependencies: - extend-shallow "^3.0.2" - safe-regex "^1.1.0" - -regexpu-core@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240" - dependencies: - regenerate "^1.2.1" - regjsgen "^0.2.0" - regjsparser "^0.1.4" - -regjsgen@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" - -regjsparser@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" - dependencies: - jsesc "~0.5.0" - -remove-trailing-separator@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" - integrity sha1-wkvOKig62tW8P1jg1IJJuSN52O8= - -repeat-element@^1.1.2: - version "1.1.3" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce" - integrity sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g== - -repeat-string@^1.5.2, repeat-string@^1.6.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= - -repeating@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" - integrity sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo= - dependencies: - is-finite "^1.0.0" - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= - -require-main-filename@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" - integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== - -resolve-url@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" - integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= - -resolve@1.1.7: - version "1.1.7" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" - -resolve@^1.1.6: - version "1.6.0" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.6.0.tgz#0fbd21278b27b4004481c395349e7aba60a9ff5c" - dependencies: - path-parse "^1.0.5" - -ret@~0.1.10: - version "0.1.15" - resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" - integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== - -right-align@^0.1.1: - version "0.1.3" - resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" - dependencies: - align-text "^0.1.1" - -rimraf@^2.5.2: - version "2.7.1" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" - dependencies: - glob "^7.1.3" - -rollup-plugin-babel@^2.7.1: - version "2.7.1" - resolved "https://registry.yarnpkg.com/rollup-plugin-babel/-/rollup-plugin-babel-2.7.1.tgz#16528197b0f938a1536f44683c7a93d573182f57" - dependencies: - babel-core "6" - babel-plugin-transform-es2015-classes "^6.9.0" - object-assign "^4.1.0" - rollup-pluginutils "^1.5.0" - -rollup-plugin-node-resolve@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-2.1.1.tgz#cbb783b0d15b02794d58915350b2f0d902b8ddc8" - dependencies: - browser-resolve "^1.11.0" - builtin-modules "^1.1.0" - resolve "^1.1.6" - -rollup-pluginutils@^1.5.0: - version "1.5.2" - resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-1.5.2.tgz#1e156e778f94b7255bfa1b3d0178be8f5c552408" - dependencies: - estree-walker "^0.2.1" - minimatch "^3.0.2" - -rollup@^0.41.6: - version "0.41.6" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.41.6.tgz#e0d05497877a398c104d816d2733a718a7a94e2a" - dependencies: - source-map-support "^0.4.0" - -safe-buffer@^5.1.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" - integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== - -safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - -safe-regex@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" - integrity sha1-QKNmnzsHfR6UPURinhV91IAjvy4= - dependencies: - ret "~0.1.10" - -sander@^0.5.0: - version "0.5.1" - resolved "https://registry.yarnpkg.com/sander/-/sander-0.5.1.tgz#741e245e231f07cafb6fdf0f133adfa216a502ad" - dependencies: - es6-promise "^3.1.2" - graceful-fs "^4.1.3" - mkdirp "^0.5.1" - rimraf "^2.5.2" - -serialize-javascript@5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-5.0.1.tgz#7886ec848049a462467a97d3d918ebb2aaf934f4" - integrity sha512-SaaNal9imEO737H2c05Og0/8LUXG7EnsZyMa8MzkmuHoELfT6txuj0cMqRj6zfPKnmQ1yasR4PCJc8x+M4JSPA== - dependencies: - randombytes "^2.1.0" - -set-blocking@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - -set-value@^2.0.0, set-value@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" - integrity sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw== - dependencies: - extend-shallow "^2.0.1" - is-extendable "^0.1.1" - is-plain-object "^2.0.3" - split-string "^3.0.1" - -slash@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" - integrity sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU= - -snapdragon-node@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" - integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== - dependencies: - define-property "^1.0.0" - isobject "^3.0.0" - snapdragon-util "^3.0.1" - -snapdragon-util@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" - integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== - dependencies: - kind-of "^3.2.0" - -snapdragon@^0.8.1: - version "0.8.2" - resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" - integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== - dependencies: - base "^0.11.1" - debug "^2.2.0" - define-property "^0.2.5" - extend-shallow "^2.0.1" - map-cache "^0.2.2" - source-map "^0.5.6" - source-map-resolve "^0.5.0" - use "^3.1.0" - -sorcery@^0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/sorcery/-/sorcery-0.10.0.tgz#8ae90ad7d7cb05fc59f1ab0c637845d5c15a52b7" - dependencies: - buffer-crc32 "^0.2.5" - minimist "^1.2.0" - sander "^0.5.0" - sourcemap-codec "^1.3.0" - -source-map-resolve@^0.5.0: - version "0.5.3" - resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" - integrity sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw== - dependencies: - atob "^2.1.2" - decode-uri-component "^0.2.0" - resolve-url "^0.2.1" - source-map-url "^0.4.0" - urix "^0.1.0" - -source-map-support@^0.4.0, source-map-support@^0.4.15: - version "0.4.18" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" - dependencies: - source-map "^0.5.6" - -source-map-url@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" - integrity sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM= - -source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.1: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= - -sourcemap-codec@^1.3.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.1.tgz#c8fd92d91889e902a07aee392bdd2c5863958ba2" - -split-string@^3.0.1, split-string@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" - integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== - dependencies: - extend-shallow "^3.0.0" - -sprintf-js@~1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" - integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= - -static-extend@^0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" - integrity sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY= - dependencies: - define-property "^0.2.5" - object-copy "^0.1.0" - -"string-width@^1.0.2 || 2": - version "2.1.1" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" - integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== - dependencies: - is-fullwidth-code-point "^2.0.0" - strip-ansi "^4.0.0" - -string-width@^3.0.0, string-width@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961" - integrity sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== - dependencies: - emoji-regex "^7.0.1" - is-fullwidth-code-point "^2.0.0" - strip-ansi "^5.1.0" - -string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" - integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== - dependencies: - safe-buffer "~5.1.0" - -strip-ansi@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" - integrity sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8= - dependencies: - ansi-regex "^2.0.0" - -strip-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" - integrity sha1-qEeQIusaw2iocTibY1JixQXuNo8= - dependencies: - ansi-regex "^3.0.0" - -strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" - integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== - dependencies: - ansi-regex "^4.1.0" - -strip-json-comments@3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" - integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== - -supports-color@7.2.0, supports-color@^7.1.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" - integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== - dependencies: - has-flag "^4.0.0" - -supports-color@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" - integrity sha1-U10EXOa2Nj+kARcIRimZXp3zJMc= - -to-fast-properties@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" - integrity sha1-uDVx+k2MJbguIxsG46MFXeTKGkc= - -to-object-path@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" - integrity sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68= - dependencies: - kind-of "^3.0.2" - -to-regex-range@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" - integrity sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg= - dependencies: - is-number "^3.0.0" - repeat-string "^1.6.1" - -to-regex-range@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" - integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== - dependencies: - is-number "^7.0.0" - -to-regex@^3.0.1, to-regex@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" - integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== - dependencies: - define-property "^2.0.2" - extend-shallow "^3.0.2" - regex-not "^1.0.2" - safe-regex "^1.1.0" - -trim-right@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" - integrity sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM= - -typescript@^2.8.1: - version "2.8.1" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.8.1.tgz#6160e4f8f195d5ba81d4876f9c0cc1fbc0820624" - -uglify-js@^2.8.14: - version "2.8.29" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" - dependencies: - source-map "~0.5.1" - yargs "~3.10.0" - optionalDependencies: - uglify-to-browserify "~1.0.0" - -uglify-to-browserify@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" - -union-value@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" - integrity sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg== - dependencies: - arr-union "^3.1.0" - get-value "^2.0.6" - is-extendable "^0.1.1" - set-value "^2.0.1" - -unset-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" - integrity sha1-g3aHP30jNRef+x5vw6jtDfyKtVk= - dependencies: - has-value "^0.3.1" - isobject "^3.0.0" - -urix@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" - integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= - -use@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" - integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== - -user-home@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/user-home/-/user-home-1.1.1.tgz#2b5be23a32b63a7c9deb8d0f28d485724a3df190" - integrity sha1-K1viOjK2Onyd640PKNSFcko98ZA= - -util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= - -v8flags@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-2.1.1.tgz#aab1a1fa30d45f88dd321148875ac02c0b55e5b4" - integrity sha1-qrGh+jDUX4jdMhFIh1rALAtV5bQ= - dependencies: - user-home "^1.1.1" - -which-module@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" - integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= - -which@2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" - integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - dependencies: - isexe "^2.0.0" - -wide-align@1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" - integrity sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA== - dependencies: - string-width "^1.0.2 || 2" - -window-size@0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" - -wordwrap@0.0.2: - version "0.0.2" - resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" - -workerpool@6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.0.2.tgz#e241b43d8d033f1beb52c7851069456039d1d438" - integrity sha512-DSNyvOpFKrNusaaUwk+ej6cBj1bmhLcBfj80elGk+ZIo5JSkq+unB1dLKEOcNfJDZgjGICfhQ0Q5TbP0PvF4+Q== - -wrap-ansi@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz#1fd1f67235d5b6d0fee781056001bfb694c03b09" - integrity sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q== - dependencies: - ansi-styles "^3.2.0" - string-width "^3.0.0" - strip-ansi "^5.0.0" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= - -y18n@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.1.tgz#8db2b83c31c5d75099bb890b23f3094891e247d4" - integrity sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ== - -yargs-parser@13.1.2, yargs-parser@^13.1.2: - version "13.1.2" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.2.tgz#130f09702ebaeef2650d54ce6e3e5706f7a4fb38" - integrity sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg== - dependencies: - camelcase "^5.0.0" - decamelize "^1.2.0" - -yargs-unparser@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/yargs-unparser/-/yargs-unparser-2.0.0.tgz#f131f9226911ae5d9ad38c432fe809366c2325eb" - integrity sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA== - dependencies: - camelcase "^6.0.0" - decamelize "^4.0.0" - flat "^5.0.2" - is-plain-obj "^2.1.0" - -yargs@13.3.2: - version "13.3.2" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.2.tgz#ad7ffefec1aa59565ac915f82dccb38a9c31a2dd" - integrity sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw== - dependencies: - cliui "^5.0.0" - find-up "^3.0.0" - get-caller-file "^2.0.1" - require-directory "^2.1.1" - require-main-filename "^2.0.0" - set-blocking "^2.0.0" - string-width "^3.0.0" - which-module "^2.0.0" - y18n "^4.0.0" - yargs-parser "^13.1.2" - -yargs@~3.10.0: - version "3.10.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" - dependencies: - camelcase "^1.0.2" - cliui "^2.1.0" - decamelize "^1.0.0" - window-size "0.1.0" - -yocto-queue@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" - integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== diff --git a/build_vtk_bundle/node_modules/utif/LICENSE b/build_vtk_bundle/node_modules/utif/LICENSE deleted file mode 100644 index 491e2390..00000000 --- a/build_vtk_bundle/node_modules/utif/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Photopea - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/utif/README.md b/build_vtk_bundle/node_modules/utif/README.md deleted file mode 100644 index 00fc7a04..00000000 --- a/build_vtk_bundle/node_modules/utif/README.md +++ /dev/null @@ -1,79 +0,0 @@ -# UTIF.js -A small, fast and advanced TIFF / EXIF (+ DNG, CR2, NEF and other TIFF-ish files) decoder and encoder. It is the main TIFF library for [Photopea image editor](https://www.photopea.com). Try to open your TIFF file with Photopea to see, if UTIF.js can parse it. - -* Supports Black & White, Grayscale, RGB and Paletted images -* Supports Fax 3 and Fax 4 (CCITT), JPEG, LZW, PackBits and other compressions (1,3,4,5,6,7,8,32773,32809) -* E.g. [this 8 MPix image](//www.photopea.com/api/img/G4.TIF) with Fax 4 compression is just 56 kB ( [Open in Photopea](https://www.photopea.com?p=%7B%22files%22:%5B%22//www.photopea.com/api/img/G4.TIF%22%5D%7D) ) - -For RAW files, UTIF.js only decodes raw sensor data (and JPG previews, if there are any). It does not convert the raw data into a displayable image (RGBA). Such conversion is complex and out of scope of this library. - -## Installation - -Download and include the `UTIF.js` file in your code. If you're in NodeJS or otherwise using NPM, run: - -```sh -npm install utif -``` - -#### `UTIF.decode(buffer)` -* `buffer`: ArrayBuffer containing TIFF or EXIF data -* returns an array of "IFDs" (image file directories). Each IFD is an object, keys are "tXYZ" (XYZ is a TIFF tag number), values are values of these tags. You can get the the dimension (and other properties, "metadata") of the image without decompressing pixel data. - -#### `UTIF.decodeImage(buffer, ifd)` -* `buffer`: ArrayBuffer containing TIFF or EXIF data -* `ifd`: the element of the output of UTIF.decode() -* If there is an image inside the IFD, it is decoded and three new properties are added to the IFD: -* * `width`: the width of the image -* * `height`: the height of the image -* * `data`: decompressed pixel data of the image - -TIFF files may have various number of channels and various color depth. The interpretation of `data` depends on many tags (see the [TIFF 6 specification](http://www.npes.org/pdf/TIFF-v6.pdf)). The following function converts any TIFF image into a 8-bit RGBA image. - -#### `UTIF.toRGBA8(ifd)` -* `ifd`: image file directory (element of "ifds" returned by UTIF.decode(), processed by UTIF.decodeImage()) -* returns Uint8Array of the image in RGBA format, 8 bits per channel (ready to use in context2d.putImageData() etc.) - -### Example - -```javascript -function imgLoaded(e) { - var ifds = UTIF.decode(e.target.response); - UTIF.decodeImage(e.target.response, ifds[0]) - var rgba = UTIF.toRGBA8(ifds[0]); // Uint8Array with RGBA pixels - console.log(ifds[0].width, ifds[0].height, ifds[0]); -} - -var xhr = new XMLHttpRequest(); -xhr.open("GET", "my_image.tif"); -xhr.responseType = "arraybuffer"; -xhr.onload = imgLoaded; xhr.send(); -``` -## Use TIFF images in HTML - -If you are not a programmer, you can use TIFF images directly inside the `` element of HTML. Then, it is enough to call `UTIF.replaceIMG()` once at some point. - -#### `UTIF.replaceIMG()` -```html - -... - ... -``` -And UTIF.js will do the rest. Internally, the "src" attribute of the image will be replaced with a new URI of the image (base64-encoded PNG). Note, that you can also insert DNG, CR2, NEF and other raw images into HTML this way. - -## Encoding TIFF images - -You should not save images into TIFF format in the 21st century. Save them as PNG instead (e.g. using [UPNG.js](https://github.com/photopea/UPNG.js)). If you still want to use TIFF format for some reason, here it is. - -#### `UTIF.encodeImage(rgba, w, h, metadata)` -* `rgba`: ArrayBuffer containing RGBA pixel data -* `w`: image width -* `h`: image height -* `metadata` [optional]: IFD object (see below) -* returns ArrayBuffer of the binary TIFF file. No compression right now. - -#### `UTIF.encode(ifds)` -* `ifds`: array of IFDs (image file directories). An IFD is a JS object with properties "tXYZ" (where XYZ are TIFF tags) -* returns ArrayBuffer of binary data. You can use it to encode EXIF data. - -## Dependencies -TIFF format sometimes uses Inflate algorithm for compression (but it is quite rare). Right now, UTIF.js calls [Pako.js](https://github.com/nodeca/pako) for the Inflate method. diff --git a/build_vtk_bundle/node_modules/utif/UTIF.js b/build_vtk_bundle/node_modules/utif/UTIF.js deleted file mode 100644 index 781ef1f3..00000000 --- a/build_vtk_bundle/node_modules/utif/UTIF.js +++ /dev/null @@ -1,1160 +0,0 @@ - - - - -;(function(){ -var UTIF = {}; - -// Make available for import by `require()` -if (typeof module == "object") {module.exports = UTIF;} -else {self.UTIF = UTIF;} - -var pako; -if (typeof require == "function") {pako = require("pako");} -else {pako = self.pako;} - -function log() { if (typeof process=="undefined" || process.env.NODE_ENV=="development") console.log.apply(console, arguments); } - -(function(UTIF, pako){ - -// Following lines add a JPEG decoder to UTIF.JpegDecoder -(function(){var V="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"===typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},D=function(){function g(g){this.message="JPEG error: "+g}g.prototype=Error();g.prototype.name="JpegError";return g.constructor=g}(),P=function(){function g(g,D){this.message=g;this.g=D}g.prototype=Error();g.prototype.name="DNLMarkerError";return g.constructor=g}();(function(){function g(){this.M= -null;this.B=-1}function W(a,d){for(var f=0,e=[],b,B,k=16;0>x&1;z=a[d++];if(255=== -z){var c=a[d++];if(c){if(220===c&&g){d+=2;var b=a[d++]<<8|a[d++];if(0>>7}function q(a){for(;;){a=a[n()];if("number"===typeof a)return a;if("object"!==("undefined"===typeof a?"undefined":V(a)))throw new D("invalid huffman sequence");}}function h(a){for(var c=0;0= -1<d;){var h=q(a.o),k=h&15;h>>=4;if(0===k){if(15>h)break;d+=16}else d+=h,a.a[b+J[d]]=c(k),d++}}function w(a,d){var b=q(a.D);b=0===b?0:c(b)<>=4;if(0===f){if(15>e){A=h(e)+(1<a.a[f]? --1:1;switch(E){case 0:e=q(a.o);f=e&15;e>>=4;if(0===f)15>e?(A=h(e)+(1<=y)throw new D("marker was not found"); -if(65488<=y&&65495>=y)d+=2;else break}(y=N(a,d))&&y.f&&((0,_util.warn)("decodeScan - unexpected Scan data, current marker is: "+y.f),d=y.offset);return d-v}function Y(a,d){for(var f=d.c,e=d.l,b=new Int16Array(64),B=0;Bh;h+=8){var c=q[l+h];var C=q[l+h+1];var w=q[l+h+2];var p=q[l+h+3];var m=q[l+h+4];var t=q[l+h+5];var g=q[l+h+6];var u=q[l+h+7];c*=n[h];if(0===(C| -w|p|m|t|g|u))c=5793*c+512>>10,r[h]=c,r[h+1]=c,r[h+2]=c,r[h+3]=c,r[h+4]=c,r[h+5]=c,r[h+6]=c,r[h+7]=c;else{C*=n[h+1];w*=n[h+2];p*=n[h+3];m*=n[h+4];t*=n[h+5];g*=n[h+6];u*=n[h+7];var v=5793*c+128>>8;var z=5793*m+128>>8;var x=w;var A=g;m=2896*(C-u)+128>>8;u=2896*(C+u)+128>>8;p<<=4;t<<=4;v=v+z+1>>1;z=v-z;c=3784*x+1567*A+128>>8;x=1567*x-3784*A+128>>8;A=c;m=m+t+1>>1;t=m-t;u=u+p+1>>1;p=u-p;v=v+A+1>>1;A=v-A;z=z+x+1>>1;x=z-x;c=2276*m+3406*u+2048>>12;m=3406*m-2276*u+2048>>12;u=c;c=799*p+4017*t+2048>>12;p=4017* -p-799*t+2048>>12;t=c;r[h]=v+u;r[h+7]=v-u;r[h+1]=z+t;r[h+6]=z-t;r[h+2]=x+p;r[h+5]=x-p;r[h+3]=A+m;r[h+4]=A-m}}for(n=0;8>n;++n)c=r[n],C=r[n+8],w=r[n+16],p=r[n+24],m=r[n+32],t=r[n+40],g=r[n+48],u=r[n+56],0===(C|w|p|m|t|g|u)?(c=5793*c+8192>>14,c=-2040>c?0:2024<=c?255:c+2056>>4,q[l+n]=c,q[l+n+8]=c,q[l+n+16]=c,q[l+n+24]=c,q[l+n+32]=c,q[l+n+40]=c,q[l+n+48]=c,q[l+n+56]=c):(v=5793*c+2048>>12,z=5793*m+2048>>12,x=w,A=g,m=2896*(C-u)+2048>>12,u=2896*(C+u)+2048>>12,v=(v+z+1>>1)+4112,z=v-z,c=3784*x+1567*A+2048>> -12,x=1567*x-3784*A+2048>>12,A=c,m=m+t+1>>1,t=m-t,u=u+p+1>>1,p=u-p,v=v+A+1>>1,A=v-A,z=z+x+1>>1,x=z-x,c=2276*m+3406*u+2048>>12,m=3406*m-2276*u+2048>>12,u=c,c=799*p+4017*t+2048>>12,p=4017*p-799*t+2048>>12,t=c,c=v+u,u=v-u,C=z+t,g=z-t,w=x+p,t=x-p,p=A+m,m=A-m,c=16>c?0:4080<=c?255:c>>4,C=16>C?0:4080<=C?255:C>>4,w=16>w?0:4080<=w?255:w>>4,p=16>p?0:4080<=p?255:p>>4,m=16>m?0:4080<=m?255:m>>4,t=16>t?0:4080<=t?255:t>>4,g=16>g?0:4080<=g?255:g>>4,u=16>u?0:4080<=u?255:u>>4,q[l+n]=c,q[l+n+8]=C,q[l+n+16]=w,q[l+n+24]= -p,q[l+n+32]=m,q[l+n+40]=t,q[l+n+48]=g,q[l+n+56]=u)}return d.a}function N(a,d){var f=2=e)return null;var b=a[d]<<8|a[d+1];if(65472<=b&&65534>=b)return{f:null,F:b,offset:d};for(var B=a[f]<<8|a[f+1];!(65472<=B&&65534>=B);){if(++f>=e)return null;B=a[f]<<8|a[f+1]}return{f:b.toString(16),F:B,offset:f}}var J=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56, -57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]);g.prototype={parse:function(a){function d(){var d=a[k]<<8|a[k+1];k+=2;return d}function f(){var b=d();b=k+b-2;var c=N(a,b,k);c&&c.f&&((0,_util.warn)("readDataBlock - incorrect length, current marker is: "+c.f),b=c.offset);b=a.subarray(k,b);k+=b.length;return b}function e(a){for(var b=Math.ceil(a.v/8/a.s),c=Math.ceil(a.g/8/a.u),d=0;d>4)for(c=0;64>c;c++)g=J[c],p[g]=a[k++];else if(1===w>>4)for(c=0;64>c;c++)g=J[c],p[g]=d();else throw new D("DQT - invalid table spec");b[w&15]=p}break;case 65472:case 65473:case 65474:if(m)throw new D("Only single frame JPEGs supported");d();var m={};m.X=65473===h;m.S=65474===h;m.precision=a[k++];h=d();m.g= -B||h;m.v=d();m.b=[];m.C={};c=a[k++];for(h=p=w=0;h>4;var H=a[k+1]&15;wc;c++,k++)t+=p[c]=a[k];H=new Uint8Array(t);for(c=0;c>4?q:n)[w&15]=W(p,H)}break;case 65501:d();var u=d();break;case 65498:c=1===++r&&!B;d();w=a[k++];g=[];for(h=0;h>4];v.o=n[p&15];g.push(v)}h=a[k++];w=a[k++];p=a[k++];try{var z=X(a,k,m,g,u,h,w,p>>4,p&15,c);k+=z}catch(x){if(x instanceof P)return(0,_util.warn)('Attempting to re-parse JPEG image using "scanLines" parameter found in DNL marker (0xFFDC) segment.'),this.parse(a,{N:x.g});throw x;}break;case 65500:k+=4;break;case 65535:255!==a[k]&&k--;break;default:if(255===a[k-3]&&192<=a[k-2]&&254>=a[k-2])k-=3;else if((c=N(a,k-2))&&c.f)(0,_util.warn)("JpegImage.parse - unexpected data, current marker is: "+ -c.f),k=c.offset;else throw new D("unknown marker "+h.toString(16));}h=d()}this.width=m.v;this.height=m.g;this.A=l;this.b=[];for(h=0;h>8)+e[f+1];return r},w:function(){return this.A?!!this.A.W:3===this.i?0===this.B?!1:!0:1===this.B?!0:!1},I:function(a){for(var d,f,e,b=0,g=a.length;b probably not an image - img.isLE = id=="II"; - img.width = img["t256"][0]; //delete img["t256"]; - img.height = img["t257"][0]; //delete img["t257"]; - - var cmpr = img["t259"] ? img["t259"][0] : 1; //delete img["t259"]; - var fo = img["t266"] ? img["t266"][0] : 1; //delete img["t266"]; - if(img["t284"] && img["t284"][0]==2) log("PlanarConfiguration 2 should not be used!"); - - var bipp; // bits per pixel - if(img["t258"]) bipp = Math.min(32,img["t258"][0])*img["t258"].length; - else bipp = (img["t277"]?img["t277"][0]:1); - // Some .NEF files have t258==14, even though they use 16 bits per pixel - if(cmpr==1 && img["t279"]!=null && img["t278"] && img["t262"][0]==32803) { - bipp = Math.round((img["t279"][0]*8)/(img.width*img["t278"][0])); - } - var bipl = Math.ceil(img.width*bipp/8)*8; - var soff = img["t273"]; if(soff==null) soff = img["t324"]; - var bcnt = img["t279"]; if(cmpr==1 && soff.length==1) bcnt = [img.height*(bipl>>>3)]; if(bcnt==null) bcnt = img["t325"]; - var bytes = new Uint8Array(img.height*(bipl>>>3)), bilen = 0; - - if(img["t322"]!=null) // tiled - { - var tw = img["t322"][0], th = img["t323"][0]; - var tx = Math.floor((img.width + tw - 1) / tw); - var ty = Math.floor((img.height + th - 1) / th); - var tbuff = new Uint8Array(Math.ceil(tw*th*bipp/8)|0); - for(var y=0; y>>3, h = (img["t278"] ? img["t278"][0] : img.height), bpl = Math.ceil(bps*noc*img.width/8); - - // convert to Little Endian /* - if(bps==16 && !img.isLE && img["t33422"]==null) // not DNG - for(var y=0; y>>8)&255; - } - else if(noc==3) for(var j= 3; j>> (tab[i] >>> 8); - for(var c=0; c>>4); tgt[toff+i+1]=(b0<<4)|(b2>>>4); tgt[toff+i+2]=(b2<<4)|(b1>>>4); } - return; - } - - var pix = new Uint16Array(16); - var row, col, val, max, min, imax, imin, sh, bit, i, dp; - - var data = new Uint8Array(raw_width+1); - for (row=0; row < height; row++) { - //fread (data, 1, raw_width, ifp); - for(var j=0; j>> 11); - imax = 0x0f & (val >>> 22); - imin = 0x0f & (val >>> 26); - for (sh=0; sh < 4 && 0x80 << sh <= max-min; sh++); - for (bit=30, i=0; i < 16; i++) - if (i == imax) pix[i] = max; - else if (i == imin) pix[i] = min; - else { - pix[i] = ((bin.readUshort(data, dp+(bit >> 3)) >>> (bit & 7) & 0x7f) << sh) + min; - if (pix[i] > 0x7ff) pix[i] = 0x7ff; - bit += 7; - } - for (i=0; i < 16; i++, col+=2) { - //RAW(row,col) = curve[pix[i] << 1] >> 2; - var clr = pix[i]<<1; //clr = 0xffff; - UTIF.decode._putsF(tgt, (row*raw_width+col)*tiff_bps, clr<<(16-tiff_bps)); - } - col -= col & 1 ? 1:31; - } - } -} - -UTIF.decode._decodeNikon = function(img,imgs, data, off, src_length, tgt, toff) -{ - var nikon_tree = [ - [ 0, 0,1,5,1,1,1,1,1,1,2,0,0,0,0,0,0, /* 12-bit lossy */ - 5,4,3,6,2,7,1,0,8,9,11,10,12 ], - [ 0, 0,1,5,1,1,1,1,1,1,2,0,0,0,0,0,0, /* 12-bit lossy after split */ - 0x39,0x5a,0x38,0x27,0x16,5,4,3,2,1,0,11,12,12 ], - [ 0, 0,1,4,2,3,1,2,0,0,0,0,0,0,0,0,0, /* 12-bit lossless */ - 5,4,6,3,7,2,8,1,9,0,10,11,12 ], - [ 0, 0,1,4,3,1,1,1,1,1,2,0,0,0,0,0,0, /* 14-bit lossy */ - 5,6,4,7,8,3,9,2,1,0,10,11,12,13,14 ], - [ 0, 0,1,5,1,1,1,1,1,1,1,2,0,0,0,0,0, /* 14-bit lossy after split */ - 8,0x5c,0x4b,0x3a,0x29,7,6,5,4,3,2,1,0,13,14 ], - [ 0, 0,1,4,2,2,3,1,2,0,0,0,0,0,0,0,0, /* 14-bit lossless */ - 7,6,8,5,9,4,10,3,11,12,2,0,1,13,14 ] ]; - - var raw_width = img["t256"][0], height=img["t257"][0], tiff_bps=img["t258"][0]; - - var tree = 0, split = 0; - var make_decoder = UTIF.decode._make_decoder; - var getbithuff = UTIF.decode._getbithuff; - - var mn = imgs[0].exifIFD.makerNote, md = mn["t150"]?mn["t150"]:mn["t140"], mdo=0; //console.log(mn,md); - //console.log(md[0].toString(16), md[1].toString(16), tiff_bps); - var ver0 = md[mdo++], ver1 = md[mdo++]; - if (ver0 == 0x49 || ver1 == 0x58) mdo+=2110; - if (ver0 == 0x46) tree = 2; - if (tiff_bps == 14) tree += 3; - - var vpred = [[0,0],[0,0]], bin=(img.isLE ? UTIF._binLE : UTIF._binBE); - for(var i=0; i<2; i++) for(var j=0; j<2; j++) { vpred[i][j] = bin.readShort(md,mdo); mdo+=2; } // not sure here ... [i][j] or [j][i] - //console.log(vpred); - - - var max = 1 << tiff_bps & 0x7fff, step=0; - var csize = bin.readShort(md,mdo); mdo+=2; - if (csize > 1) step = Math.floor(max / (csize-1)); - if (ver0 == 0x44 && ver1 == 0x20 && step > 0) split = bin.readShort(md,562); - - - var i; - var row, col; - var len, shl, diff; - var min_v = 0; - var hpred = [0,0]; - var huff = make_decoder(nikon_tree[tree]); - - //var g_input_offset=0, bitbuf=0, vbits=0, reset=0; - var prm = [off,0,0,0]; - //console.log(split); split = 170; - - for (min_v=row=0; row < height; row++) { - if (split && row == split) { - //free (huff); - huff = make_decoder (nikon_tree[tree+1]); - //max_v += (min_v = 16) << 1; - } - for (col=0; col < raw_width; col++) { - i = getbithuff(data,prm,huff[0],huff); - len = i & 15; - shl = i >>> 4; - diff = (((getbithuff(data,prm,len-shl,0) << 1) + 1) << shl) >>> 1; - if ((diff & (1 << (len-1))) == 0) - diff -= (1 << len) - (shl==0?1:0); - if (col < 2) hpred[col] = vpred[row & 1][col] += diff; - else hpred[col & 1] += diff; - - var clr = Math.min(Math.max(hpred[col & 1],0),(1<>>3); dt[o]|=val>>>16; dt[o+1]|=val>>>8; dt[o+2]|=val; } - - -UTIF.decode._getbithuff = function(data,prm,nbits, huff) { - var zero_after_ff = 0; - var get_byte = UTIF.decode._get_byte; - var c; - - var off=prm[0], bitbuf=prm[1], vbits=prm[2], reset=prm[3]; - - //if (nbits > 25) return 0; - //if (nbits < 0) return bitbuf = vbits = reset = 0; - if (nbits == 0 || vbits < 0) return 0; - while (!reset && vbits < nbits && (c = data[off++]) != -1 && - !(reset = zero_after_ff && c == 0xff && data[off++])) { - //console.log("byte read into c"); - bitbuf = (bitbuf << 8) + c; - vbits += 8; - } - c = (bitbuf << (32-vbits)) >>> (32-nbits); - if (huff) { - vbits -= huff[c+1] >>> 8; //console.log(c, huff[c]>>8); - c = huff[c+1]&255; - } else - vbits -= nbits; - if (vbits < 0) throw "e"; - - prm[0]=off; prm[1]=bitbuf; prm[2]=vbits; prm[3]=reset; - - return c; -} - -UTIF.decode._make_decoder = function(source) { - var max, len, h, i, j; - var huff = []; - - for (max=16; max!=0 && !source[max]; max--); - var si=17; - - huff[0] = max; - for (h=len=1; len <= max; len++) - for (i=0; i < source[len]; i++, ++si) - for (j=0; j < 1 << (max-len); j++) - if (h <= 1 << max) - huff[h++] = (len << 8) | source[si]; - return huff; -} - -UTIF.decode._decodeNewJPEG = function(img, data, off, len, tgt, toff) -{ - var tables = img["t347"], tlen = tables ? tables.length : 0, buff = new Uint8Array(tlen + len); - - if (tables) { - var SOI = 216, EOI = 217, boff = 0; - for (var i=0; i<(tlen-1); i++) - { - // Skip EOI marker from JPEGTables - if (tables[i]==255 && tables[i+1]==EOI) break; - buff[boff++] = tables[i]; - } - - // Skip SOI marker from data - var byte1 = data[off], byte2 = data[off + 1]; - if (byte1!=255 || byte2!=SOI) - { - buff[boff++] = byte1; - buff[boff++] = byte2; - } - for (var i=2; i>>8); } - else for(var i=0; i>>8); tgt[toff+(i<<1)+1] = (out[i]&255); } - } - else if(bps==14 || bps==12) { // 4 * 14 == 56 == 7 * 8 - var rst = 16-bps; - for(var i=0; i 1); - } - - if(!isTiled) - { - if(data[off]==255 && data[off+1]==SOI) return { jpegOffset: off }; - if(jpgIchgFmt!=null) - { - if(data[off+jifoff]==255 && data[off+jifoff+1]==SOI) joff = off+jifoff; - else log("JPEGInterchangeFormat does not point to SOI"); - - if(jpgIchgFmtLen==null) log("JPEGInterchangeFormatLength field is missing"); - else if(jifoff >= soff || (jifoff+jiflen) <= soff) log("JPEGInterchangeFormatLength field value is invalid"); - - if(joff != null) return { jpegOffset: joff }; - } - } - - if(ycbcrss!=null) { ssx = ycbcrss[0]; ssy = ycbcrss[1]; } - - if(jpgIchgFmt!=null) - if(jpgIchgFmtLen!=null) - if(jiflen >= 2 && (jifoff+jiflen) <= soff) - { - if(data[off+jifoff+jiflen-2]==255 && data[off+jifoff+jiflen-1]==SOI) tables = new Uint8Array(jiflen-2); - else tables = new Uint8Array(jiflen); - - for(i=0; i offset to first strip or tile"); - - if(tables == null) - { - var ooff = 0, out = []; - out[ooff++] = 255; out[ooff++] = SOI; - - var qtables = img["t519"]; - if(qtables==null) throw new Error("JPEGQTables tag is missing"); - for(i=0; i>> 8); out[ooff++] = nc & 255; - out[ooff++] = (i | (k << 4)); - for(j=0; j<16; j++) out[ooff++] = data[off+htables[i]+j]; - for(j=0; j>> 8) & 255; out[ooff++] = img.height & 255; - out[ooff++] = (img.width >>> 8) & 255; out[ooff++] = img.width & 255; - out[ooff++] = spp; - if(spp==1) { out[ooff++] = 1; out[ooff++] = 17; out[ooff++] = 0; } - else for(i=0; i<3; i++) - { - out[ooff++] = i + 1; - out[ooff++] = (i != 0) ? 17 : (((ssx & 15) << 4) | (ssy & 15)); - out[ooff++] = i; - } - - if(jpgresint!=null && jpgresint[0]!=0) - { - out[ooff++] = 255; out[ooff++] = DRI; out[ooff++] = 0; out[ooff++] = 4; - out[ooff++] = (jpgresint[0] >>> 8) & 255; - out[ooff++] = jpgresint[0] & 255; - } - - tables = new Uint8Array(out); - } - - var sofpos = -1; - i = 0; - while(i < (tables.length - 1)) { - if(tables[i]==255 && tables[i+1]==SOF0) { sofpos = i; break; } - i++; - } - - if(sofpos == -1) - { - var tmptab = new Uint8Array(tables.length + 10 + 3*spp); - tmptab.set(tables); - var tmpoff = tables.length; - sofpos = tables.length; - tables = tmptab; - - tables[tmpoff++] = 255; tables[tmpoff++] = SOF0; - tables[tmpoff++] = 0; tables[tmpoff++] = 8 + 3*spp; tables[tmpoff++] = 8; - tables[tmpoff++] = (img.height >>> 8) & 255; tables[tmpoff++] = img.height & 255; - tables[tmpoff++] = (img.width >>> 8) & 255; tables[tmpoff++] = img.width & 255; - tables[tmpoff++] = spp; - if(spp==1) { tables[tmpoff++] = 1; tables[tmpoff++] = 17; tables[tmpoff++] = 0; } - else for(i=0; i<3; i++) - { - tables[tmpoff++] = i + 1; - tables[tmpoff++] = (i != 0) ? 17 : (((ssx & 15) << 4) | (ssy & 15)); - tables[tmpoff++] = i; - } - } - - if(data[soff]==255 && data[soff+1]==SOS) - { - var soslen = (data[soff+2]<<8) | data[soff+3]; - sosMarker = new Uint8Array(soslen+2); - sosMarker[0] = data[soff]; sosMarker[1] = data[soff+1]; sosMarker[2] = data[soff+2]; sosMarker[3] = data[soff+3]; - for(i=0; i<(soslen-2); i++) sosMarker[i+4] = data[soff+i+4]; - } - else - { - sosMarker = new Uint8Array(2 + 6 + 2*spp); - var sosoff = 0; - sosMarker[sosoff++] = 255; sosMarker[sosoff++] = SOS; - sosMarker[sosoff++] = 0; sosMarker[sosoff++] = 6 + 2*spp; sosMarker[sosoff++] = spp; - if(spp==1) { sosMarker[sosoff++] = 1; sosMarker[sosoff++] = 0; } - else for(i=0; i<3; i++) - { - sosMarker[sosoff++] = i+1; sosMarker[sosoff++] = (i << 4) | i; - } - sosMarker[sosoff++] = 0; sosMarker[sosoff++] = 63; sosMarker[sosoff++] = 0; - } - - return { jpegOffset: off, tables: tables, sosMarker: sosMarker, sofPosition: sofpos }; -} - -UTIF.decode._decodeOldJPEG = function(img, data, off, len, tgt, toff) -{ - var i, dlen, tlen, buff, buffoff; - var jpegData = UTIF.decode._decodeOldJPEGInit(img, data, off, len); - - if(jpegData.jpegOffset!=null) - { - dlen = off+len-jpegData.jpegOffset; - buff = new Uint8Array(dlen); - for(i=0; i>> 8) & 255; buff[jpegData.sofPosition+6] = img.height & 255; - buff[jpegData.sofPosition+7] = (img.width >>> 8) & 255; buff[jpegData.sofPosition+8] = img.width & 255; - - if(data[off]!=255 || data[off+1]!=SOS) - { - buff.set(jpegData.sosMarker, buffoff); - buffoff += sosMarker.length; - } - for(i=0; i=0 && n<128) for(var i=0; i< n+1; i++) { ta[toff]=sa[off]; toff++; off++; } - if(n>=-127 && n<0) { for(var i=0; i<-n+1; i++) { ta[toff]=sa[off]; toff++; } off++; } - } -} - -UTIF.decode._decodeThunder = function(data, off, len, tgt, toff) -{ - var d2 = [ 0, 1, 0, -1 ], d3 = [ 0, 1, 2, 3, 0, -3, -2, -1 ]; - var lim = off+len, qoff = toff*2, px = 0; - while(off>>6), n = (b&63); off++; - if(msk==3) { px=(n&15); tgt[qoff>>>1] |= (px<<(4*(1-qoff&1))); qoff++; } - if(msk==0) for(var i=0; i>>1] |= (px<<(4*(1-qoff&1))); qoff++; } - if(msk==2) for(var i=0; i<2; i++) { var d=(n>>>(3*(1-i)))&7; if(d!=4) { px+=d3[d]; tgt[qoff>>>1] |= (px<<(4*(1-qoff&1))); qoff++; } } - if(msk==1) for(var i=0; i<3; i++) { var d=(n>>>(2*(2-i)))&3; if(d!=2) { px+=d2[d]; tgt[qoff>>>1] |= (px<<(4*(1-qoff&1))); qoff++; } } - } -} - -UTIF.decode._dmap = { "1":0,"011":1,"000011":2,"0000011":3, "010":-1,"000010":-2,"0000010":-3 }; -UTIF.decode._lens = ( function() -{ - var addKeys = function(lens, arr, i0, inc) { for(var i=0; i>>3)>>3]>>>(7-(boff&7)))&1; - if(fo==2) bit = (data[boff>>>3]>>>( (boff&7)))&1; - boff++; wrd+=bit; - if(mode=="H") - { - if(U._lens[clr][wrd]!=null) - { - var dl=U._lens[clr][wrd]; wrd=""; len+=dl; - if(dl<64) { U._addNtimes(line,len,clr); a0+=len; clr=1-clr; len=0; toRead--; if(toRead==0) mode=""; } - } - } - else - { - if(wrd=="0001") { wrd=""; U._addNtimes(line,b2-a0,clr); a0=b2; } - if(wrd=="001" ) { wrd=""; mode="H"; toRead=2; } - if(U._dmap[wrd]!=null) { a1 = b1+U._dmap[wrd]; U._addNtimes(line, a1-a0, clr); a0=a1; wrd=""; clr=1-clr; } - } - if(line.length==w && mode=="") - { - U._writeBits(line, tgt, toff*8+y*bipl); - clr=0; y++; a0=0; - pline=U._makeDiff(line); line=[]; - } - //if(wrd.length>150) { log(wrd); break; throw "e"; } - } -} - -UTIF.decode._findDiff = function(line, x, clr) { for(var i=0; i=x && line[i+1]==clr) return line[i]; } - -UTIF.decode._makeDiff = function(line) -{ - var out = []; if(line[0]==1) out.push(0,1); - for(var i=1; i>>3)>>3]>>>(7-(boff&7)))&1; - if(fo==2) bit = (data[boff>>>3]>>>( (boff&7)))&1; - boff++; wrd+=bit; - - if(is1D) - { - if(U._lens[clr][wrd]!=null) - { - var dl=U._lens[clr][wrd]; wrd=""; len+=dl; - if(dl<64) { U._addNtimes(line,len,clr); clr=1-clr; len=0; } - } - } - else - { - if(mode=="H") - { - if(U._lens[clr][wrd]!=null) - { - var dl=U._lens[clr][wrd]; wrd=""; len+=dl; - if(dl<64) { U._addNtimes(line,len,clr); a0+=len; clr=1-clr; len=0; toRead--; if(toRead==0) mode=""; } - } - } - else - { - if(wrd=="0001") { wrd=""; U._addNtimes(line,b2-a0,clr); a0=b2; } - if(wrd=="001" ) { wrd=""; mode="H"; toRead=2; } - if(U._dmap[wrd]!=null) { a1 = b1+U._dmap[wrd]; U._addNtimes(line, a1-a0, clr); a0=a1; wrd=""; clr=1-clr; } - } - } - if(wrd.endsWith("000000000001")) // needed for some files - { - if(y>=0) U._writeBits(line, tgt, toff*8+y*bipl); - if(fo==1) is1D = ((data[boff>>>3]>>>(7-(boff&7)))&1)==1; - if(fo==2) is1D = ((data[boff>>>3]>>>( (boff&7)))&1)==1; - boff++; - if(U._decodeG3.allow2D==null) U._decodeG3.allow2D=is1D; - if(!U._decodeG3.allow2D) { is1D = true; boff--; } - //log("EOL",y, "next 1D:", is1D); - wrd=""; clr=0; y++; a0=0; - pline=U._makeDiff(line); line=[]; - } - } - if(line.length==w) U._writeBits(line, tgt, toff*8+y*bipl); -} - -UTIF.decode._addNtimes = function(arr, n, val) { for(var i=0; i>>3] |= (bits[i]<<(7-((boff+i)&7))); -} - -UTIF.decode._decodeLZW = function(data, off, tgt, toff) -{ - if(UTIF.decode._lzwTab==null) - { - var tb=new Uint32Array(0xffff), tn=new Uint16Array(0xffff), chr=new Uint8Array(2e6); - for(var i=0; i<256; i++) { chr[i<<2]=i; tb[i]=i<<2; tn[i]=1; } - UTIF.decode._lzwTab = [tb,tn,chr]; - } - var copy = UTIF.decode._copyData; - var tab = UTIF.decode._lzwTab[0], tln=UTIF.decode._lzwTab[1], chr=UTIF.decode._lzwTab[2], totl = 258, chrl = 258<<2; - var bits = 9, boff = off<<3; // offset in bits - - var ClearCode = 256, EoiCode = 257; - var v = 0, Code = 0, OldCode = 0; - while(true) - { - v = (data[boff>>>3]<<16) | (data[(boff+8)>>>3]<<8) | data[(boff+16)>>>3]; - Code = ( v>>(24-(boff&7)-bits) ) & ((1<>>3]<<16) | (data[(boff+8)>>>3]<<8) | data[(boff+16)>>>3]; - Code = ( v>>(24-(boff&7)-bits) ) & ((1<=totl) { tab[totl] = chrl; chr[tab[totl]] = cd[0]; tln[totl]=1; chrl=(chrl+1+3)&~0x03; totl++; } - else - { - tab[totl] = chrl; - var nit = tab[OldCode], nil = tln[OldCode]; - copy(chr,nit,chr,chrl,nil); - chr[chrl+nil]=chr[cd]; nil++; - tln[totl]=nil; totl++; - - chrl=(chrl+nil+3)&~0x03; - } - if(totl+1==(1<=totl) { tab[totl] = chrl; tln[totl]=0; totl++; } - else - { - tab[totl] = chrl; - var nit = tab[OldCode], nil = tln[OldCode]; - copy(chr,nit,chr,chrl,nil); - chr[chrl+nil]=chr[chrl]; nil++; - tln[totl]=nil; totl++; - - copy(chr,chrl,tgt,toff,nil); toff += nil; - chrl=(chrl+nil+3)&~0x03; - } - if(totl+1==(1<>>----------------"); - for(var i=0; i4) { bin.writeUint(data, offset, eoff); toff=eoff; } - - if(type==2) { bin.writeASCII(data, toff, val); } - if(type==3) { for(var i=0; i4) { dlen += (dlen&1); eoff += dlen; } - offset += 4; - } - return [offset, eoff]; -} - -UTIF.toRGBA8 = function(out) -{ - var w = out.width, h = out.height, area = w*h, qarea = area*4, data = out.data; - var img = new Uint8Array(area*4); - //console.log(out); - // 0: WhiteIsZero, 1: BlackIsZero, 2: RGB, 3: Palette color, 4: Transparency mask, 5: CMYK - var intp = (out["t262"] ? out["t262"][0]: 2), bps = (out["t258"]?Math.min(32,out["t258"][0]):1); - //log("interpretation: ", intp, "bps", bps, out); - if(false) {} - else if(intp==0) - { - var bpl = Math.ceil(bps*w/8); - for(var y=0; y>3)])>>(7- (i&7)))& 1; img[qi]=img[qi+1]=img[qi+2]=( 1-px)*255; img[qi+3]=255; } - if(bps== 4) for(var i=0; i>1)])>>(4-4*(i&1)))&15; img[qi]=img[qi+1]=img[qi+2]=(15-px)* 17; img[qi+3]=255; } - if(bps== 8) for(var i=0; i>3)])>>(7- (i&7)))&1; img[qi]=img[qi+1]=img[qi+2]=(px)*255; img[qi+3]=255; } - if(bps== 2) for(var i=0; i>2)])>>(6-2*(i&3)))&3; img[qi]=img[qi+1]=img[qi+2]=(px)* 85; img[qi+3]=255; } - if(bps== 8) for(var i=0; i>8); img[qi+1]=(map[256+mi]>>8); img[qi+2]=(map[512+mi]>>8); img[qi+3]=255; } - } - else if(intp==5) - { - var smpls = out["t258"]?out["t258"].length : 4; - var gotAlpha = smpls>4 ? 1 : 0; - for(var i=0; ima) { ma=ar; page=img; } - } - UTIF.decodeImage(buff, page, ifds); - var rgba = UTIF.toRGBA8(page), w=page.width, h=page.height; - var ind = UTIF._xhrs.indexOf(e.target), img = UTIF._imgs[ind]; - UTIF._xhrs.splice(ind,1); UTIF._imgs.splice(ind,1); - var cnv = document.createElement("canvas"); cnv.width=w; cnv.height=h; - var ctx = cnv.getContext("2d"), imgd = ctx.createImageData(w,h); - for(var i=0; i> 8)&255; buff[p+1] = n&255; }, - writeUint : function(buff, p, n) { buff[p] = (n>>24)&255; buff[p+1] = (n>>16)&255; buff[p+2] = (n>>8)&255; buff[p+3] = (n>>0)&255; }, - writeASCII : function(buff, p, s) { for(var i = 0; i < s.length; i++) buff[p+i] = s.charCodeAt(i); }, - writeDouble: function(buff, p, n) - { - UTIF._binBE.fl64[0] = n; - for (var i = 0; i < 8; i++) buff[p + i] = UTIF._binBE.ui8[7 - i]; - } -} -UTIF._binBE.ui8 = new Uint8Array (8); -UTIF._binBE.i16 = new Int16Array (UTIF._binBE.ui8.buffer); -UTIF._binBE.i32 = new Int32Array (UTIF._binBE.ui8.buffer); -UTIF._binBE.ui32 = new Uint32Array (UTIF._binBE.ui8.buffer); -UTIF._binBE.fl32 = new Float32Array(UTIF._binBE.ui8.buffer); -UTIF._binBE.fl64 = new Float64Array(UTIF._binBE.ui8.buffer); - -UTIF._binLE = -{ - nextZero : UTIF._binBE.nextZero, - readUshort : function(buff, p) { return (buff[p+1]<< 8) | buff[p]; }, - readShort : function(buff, p) { var a=UTIF._binBE.ui8; a[0]=buff[p+0]; a[1]=buff[p+1]; return UTIF._binBE. i16[0]; }, - readInt : function(buff, p) { var a=UTIF._binBE.ui8; a[0]=buff[p+0]; a[1]=buff[p+1]; a[2]=buff[p+2]; a[3]=buff[p+3]; return UTIF._binBE. i32[0]; }, - readUint : function(buff, p) { var a=UTIF._binBE.ui8; a[0]=buff[p+0]; a[1]=buff[p+1]; a[2]=buff[p+2]; a[3]=buff[p+3]; return UTIF._binBE.ui32[0]; }, - readASCII : UTIF._binBE.readASCII, - readFloat : function(buff, p) { var a=UTIF._binBE.ui8; for(var i=0;i<4;i++) a[i]=buff[p+ i]; return UTIF._binBE.fl32[0]; }, - readDouble : function(buff, p) { var a=UTIF._binBE.ui8; for(var i=0;i<8;i++) a[i]=buff[p+ i]; return UTIF._binBE.fl64[0]; } -} -UTIF._copyTile = function(tb, tw, th, b, w, h, xoff, yoff) -{ - //log("copyTile", tw, th, w, h, xoff, yoff); - var xlim = Math.min(tw, w-xoff); - var ylim = Math.min(th, h-yoff); - for(var y=0; y>>8); -this._=8}return this.G>>>--this._&1},Z:function(Z){var X=this._,s=this.G,E=Math.min(X,Z);Z-=E;X-=E;var Y=s>>>X&(1<0){s=this.w[this.N];this.N+=1+(s+1>>>8);E=Math.min(8,Z);Z-=E;X=8-E;Y<<=E;Y|=s>>>X&(1<>>8);B=8}Y=$>>>--B&1;s=Z[s+Y];E=Z[s+2];if(E!=-1){X._=B;X.G=$;X.N=e;return E}}return-1};function l(Z){this.z=new t(Z); -this.D(this.z)}l.prototype={$:function(Z,X){this.Q=Z.i();this.F=Z.l();this.o=Z.l();var s=this.O=Z.i(); -this.L=[];for(var E=0;E0)Z-=this.e()},p:function(Z,X){var s=Z.i(); -if(!this.U){this.U=[]}for(var E=0;E>>4]}this.g=Z.i(); -Z.t(Z.N+X-(2+s*2))},D:function(Z){var X=!1,s=Z.l();if(s!==l.q)return;do{var s=Z.l(),E=Z.l()-2;switch(s){case l.m:this.$(Z,E); -break;case l.K:this.W(E);break;case l.V:this.p(Z,E);X=!0;break;default:Z.t(Z.N+E);break}}while(!X)},I:function(Z,X){var s=i.B(X,Z); -if(s==16)return-32768;var E=Z.Z(s);if((E&1<>>1);Z[K]=q+B(s,W[p])}}I+=X}}};l.m=65475; -l.K=65476;l.q=65496;l.V=65498;function J(Z){var X=new l(Z),s=X.Q>8?Uint16Array:Uint8Array,E=new s(X.o*X.F*X.O),Y=X.o*X.O; -X.B(E,Y);return E}return J}()) - - - - -})(UTIF, pako); -})(); \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/utif/package.json b/build_vtk_bundle/node_modules/utif/package.json deleted file mode 100644 index 4f948b76..00000000 --- a/build_vtk_bundle/node_modules/utif/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "utif", - "description": "Fast and advanced TIFF decoder", - "version": "3.1.0", - "homepage": "https://github.com/photopea/UTIF.js", - "author": "photopea (https://github.com/photopea)", - "contributors": [ - "Scimonster (https://github.com/Scimonster)" - ], - "license": "MIT", - "repository": "github:photopea/UTIF.js", - "bugs": { - "url": "https://github.com/photopea/UTIF.js/issues" - }, - "main": "UTIF", - "keywords": [ - "tiff", - "image", - "conversion" - ], - "dependencies": { - "pako": "^1.0.5" - } -} diff --git a/build_vtk_bundle/node_modules/util-deprecate/History.md b/build_vtk_bundle/node_modules/util-deprecate/History.md deleted file mode 100644 index acc86753..00000000 --- a/build_vtk_bundle/node_modules/util-deprecate/History.md +++ /dev/null @@ -1,16 +0,0 @@ - -1.0.2 / 2015-10-07 -================== - - * use try/catch when checking `localStorage` (#3, @kumavis) - -1.0.1 / 2014-11-25 -================== - - * browser: use `console.warn()` for deprecation calls - * browser: more jsdocs - -1.0.0 / 2014-04-30 -================== - - * initial commit diff --git a/build_vtk_bundle/node_modules/util-deprecate/LICENSE b/build_vtk_bundle/node_modules/util-deprecate/LICENSE deleted file mode 100644 index 6a60e8c2..00000000 --- a/build_vtk_bundle/node_modules/util-deprecate/LICENSE +++ /dev/null @@ -1,24 +0,0 @@ -(The MIT License) - -Copyright (c) 2014 Nathan Rajlich - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/util-deprecate/README.md b/build_vtk_bundle/node_modules/util-deprecate/README.md deleted file mode 100644 index 75622fa7..00000000 --- a/build_vtk_bundle/node_modules/util-deprecate/README.md +++ /dev/null @@ -1,53 +0,0 @@ -util-deprecate -============== -### The Node.js `util.deprecate()` function with browser support - -In Node.js, this module simply re-exports the `util.deprecate()` function. - -In the web browser (i.e. via browserify), a browser-specific implementation -of the `util.deprecate()` function is used. - - -## API - -A `deprecate()` function is the only thing exposed by this module. - -``` javascript -// setup: -exports.foo = deprecate(foo, 'foo() is deprecated, use bar() instead'); - - -// users see: -foo(); -// foo() is deprecated, use bar() instead -foo(); -foo(); -``` - - -## License - -(The MIT License) - -Copyright (c) 2014 Nathan Rajlich - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/util-deprecate/browser.js b/build_vtk_bundle/node_modules/util-deprecate/browser.js deleted file mode 100644 index 549ae2f0..00000000 --- a/build_vtk_bundle/node_modules/util-deprecate/browser.js +++ /dev/null @@ -1,67 +0,0 @@ - -/** - * Module exports. - */ - -module.exports = deprecate; - -/** - * Mark that a method should not be used. - * Returns a modified function which warns once by default. - * - * If `localStorage.noDeprecation = true` is set, then it is a no-op. - * - * If `localStorage.throwDeprecation = true` is set, then deprecated functions - * will throw an Error when invoked. - * - * If `localStorage.traceDeprecation = true` is set, then deprecated functions - * will invoke `console.trace()` instead of `console.error()`. - * - * @param {Function} fn - the function to deprecate - * @param {String} msg - the string to print to the console when `fn` is invoked - * @returns {Function} a new "deprecated" version of `fn` - * @api public - */ - -function deprecate (fn, msg) { - if (config('noDeprecation')) { - return fn; - } - - var warned = false; - function deprecated() { - if (!warned) { - if (config('throwDeprecation')) { - throw new Error(msg); - } else if (config('traceDeprecation')) { - console.trace(msg); - } else { - console.warn(msg); - } - warned = true; - } - return fn.apply(this, arguments); - } - - return deprecated; -} - -/** - * Checks `localStorage` for boolean values for the given `name`. - * - * @param {String} name - * @returns {Boolean} - * @api private - */ - -function config (name) { - // accessing global.localStorage can trigger a DOMException in sandboxed iframes - try { - if (!global.localStorage) return false; - } catch (_) { - return false; - } - var val = global.localStorage[name]; - if (null == val) return false; - return String(val).toLowerCase() === 'true'; -} diff --git a/build_vtk_bundle/node_modules/util-deprecate/node.js b/build_vtk_bundle/node_modules/util-deprecate/node.js deleted file mode 100644 index 5e6fcff5..00000000 --- a/build_vtk_bundle/node_modules/util-deprecate/node.js +++ /dev/null @@ -1,6 +0,0 @@ - -/** - * For Node.js, simply re-export the core `util.deprecate` function. - */ - -module.exports = require('util').deprecate; diff --git a/build_vtk_bundle/node_modules/util-deprecate/package.json b/build_vtk_bundle/node_modules/util-deprecate/package.json deleted file mode 100644 index 2e79f89a..00000000 --- a/build_vtk_bundle/node_modules/util-deprecate/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "util-deprecate", - "version": "1.0.2", - "description": "The Node.js `util.deprecate()` function with browser support", - "main": "node.js", - "browser": "browser.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "repository": { - "type": "git", - "url": "git://github.com/TooTallNate/util-deprecate.git" - }, - "keywords": [ - "util", - "deprecate", - "browserify", - "browser", - "node" - ], - "author": "Nathan Rajlich (http://n8.io/)", - "license": "MIT", - "bugs": { - "url": "https://github.com/TooTallNate/util-deprecate/issues" - }, - "homepage": "https://github.com/TooTallNate/util-deprecate" -} diff --git a/build_vtk_bundle/node_modules/watchpack/LICENSE b/build_vtk_bundle/node_modules/watchpack/LICENSE deleted file mode 100644 index 8c11fc72..00000000 --- a/build_vtk_bundle/node_modules/watchpack/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright JS Foundation and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/watchpack/README.md b/build_vtk_bundle/node_modules/watchpack/README.md deleted file mode 100644 index 67c69d86..00000000 --- a/build_vtk_bundle/node_modules/watchpack/README.md +++ /dev/null @@ -1,133 +0,0 @@ -# watchpack - -Wrapper library for directory and file watching. - -[![Test](https://github.com/webpack/watchpack/actions/workflows/test.yml/badge.svg)](https://github.com/webpack/watchpack/actions/workflows/test.yml) -[![Codecov](https://codecov.io/gh/webpack/watchpack/graph/badge.svg?token=8xk2OrrxWm)](https://codecov.io/gh/webpack/watchpack) -[![Downloads](https://img.shields.io/npm/dm/watchpack.svg)](https://www.npmjs.com/package/watchpack) - -## Concept - -watchpack high level API doesn't map directly to watchers. Instead a three level architecture ensures that for each directory only a single watcher exists. - -- The high level API requests `DirectoryWatchers` from a `WatcherManager`, which ensures that only a single `DirectoryWatcher` per directory is created. -- A user-faced `Watcher` can be obtained from a `DirectoryWatcher` and provides a filtered view on the `DirectoryWatcher`. -- Reference-counting is used on the `DirectoryWatcher` and `Watcher` to decide when to close them. -- The real watchers are created by the `DirectoryWatcher`. -- Files are never watched directly. This should keep the watcher count low. -- Watching can be started in the past. This way watching can start after file reading. -- Symlinks are not followed, instead the symlink is watched. - -## API - -```javascript -var Watchpack = require("watchpack"); - -var wp = new Watchpack({ - // options: - aggregateTimeout: 1000, - // fire "aggregated" event when after a change for 1000ms no additional change occurred - // aggregated defaults to undefined, which doesn't fire an "aggregated" event - - poll: true, - // poll: true - use polling with the default interval - // poll: 10000 - use polling with an interval of 10s - // poll defaults to undefined, which prefer native watching methods - // Note: enable polling when watching on a network path - // When WATCHPACK_POLLING environment variable is set it will override this option - - followSymlinks: true, - // true: follows symlinks and watches symlinks and real files - // (This makes sense when symlinks has not been resolved yet, comes with a performance hit) - // false (default): watches only specified item they may be real files or symlinks - // (This makes sense when symlinks has already been resolved) - - ignored: "**/.git" - // ignored: "string" - a glob pattern for files or folders that should not be watched - // ignored: ["string", "string"] - multiple glob patterns that should be ignored - // ignored: /regexp/ - a regular expression for files or folders that should not be watched - // ignored: (entry) => boolean - an arbitrary function which must return truthy to ignore an entry - // For all cases expect the arbitrary function the path will have path separator normalized to '/'. - // All subdirectories are ignored too -}); - -// Watchpack.prototype.watch({ -// files: Iterable, -// directories: Iterable, -// missing: Iterable, -// startTime?: number -// }) -wp.watch({ - files: listOfFiles, - directories: listOfDirectories, - missing: listOfNotExistingItems, - startTime: Date.now() - 10000 -}); -// starts watching these files and directories -// calling this again will override the files and directories -// files: can be files or directories, for files: content and existence changes are tracked -// for directories: only existence and timestamp changes are tracked -// directories: only directories, directory content (and content of children, ...) and -// existence changes are tracked. -// assumed to exist, when directory is not found without further information a remove event is emitted -// missing: can be files or directories, -// only existence changes are tracked -// expected to not exist, no remove event is emitted when not found initially -// files and directories are assumed to exist, when they are not found without further information a remove event is emitted -// missing is assumed to not exist and no remove event is emitted - -wp.on("change", function(filePath, mtime, explanation) { - // filePath: the changed file - // mtime: last modified time for the changed file - // explanation: textual information how this change was detected -}); - -wp.on("remove", function(filePath, explanation) { - // filePath: the removed file or directory - // explanation: textual information how this change was detected -}); - -wp.on("aggregated", function(changes, removals) { - // changes: a Set of all changed files - // removals: a Set of all removed files - // watchpack gives up ownership on these Sets. -}); - -// Watchpack.prototype.pause() -wp.pause(); -// stops emitting events, but keeps watchers open -// next "watch" call can reuse the watchers -// The watcher will keep aggregating events -// which can be received with getAggregated() - -// Watchpack.prototype.close() -wp.close(); -// stops emitting events and closes all watchers - -// Watchpack.prototype.getAggregated(): { changes: Set, removals: Set } -const { changes, removals } = wp.getAggregated(); -// returns the current aggregated info and removes that from the watcher -// The next aggregated event won't include that info and will only emitted -// when futher changes happen -// Can also be used when paused. - -// Watchpack.prototype.collectTimeInfoEntries(fileInfoEntries: Map, directoryInfoEntries: Map) -wp.collectTimeInfoEntries(fileInfoEntries, directoryInfoEntries); -// collects time info objects for all known files and directories -// this include info from files not directly watched -// key: absolute path, value: object with { safeTime, timestamp } -// safeTime: a point in time at which it is safe to say all changes happened before that -// timestamp: only for files, the mtime timestamp of the file - -// Watchpack.prototype.getTimeInfoEntries() -var fileTimes = wp.getTimeInfoEntries(); -// returns a Map with all known time info objects for files and directories -// similar to collectTimeInfoEntries but returns a single map with all entries - -// (deprecated) -// Watchpack.prototype.getTimes() -var fileTimes = wp.getTimes(); -// returns an object with all known change times for files -// this include timestamps from files not directly watched -// key: absolute path, value: timestamp as number -``` diff --git a/build_vtk_bundle/node_modules/watchpack/package.json b/build_vtk_bundle/node_modules/watchpack/package.json deleted file mode 100644 index aa179826..00000000 --- a/build_vtk_bundle/node_modules/watchpack/package.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "name": "watchpack", - "version": "2.4.4", - "description": "", - "main": "./lib/watchpack.js", - "directories": { - "test": "test" - }, - "files": [ - "lib/" - ], - "scripts": { - "pretty-files": "prettier \"lib/**.*\" \"test/**/*.js\" --write", - "lint": "eslint lib", - "test:only": "mocha", - "test:coverage": "istanbul cover node_modules/mocha/bin/_mocha", - "pretest": "yarn lint", - "test": "mocha" - }, - "repository": { - "type": "git", - "url": "https://github.com/webpack/watchpack.git" - }, - "author": "Tobias Koppers @sokra", - "license": "MIT", - "bugs": { - "url": "https://github.com/webpack/watchpack/issues" - }, - "homepage": "https://github.com/webpack/watchpack", - "devDependencies": { - "coveralls": "^3.0.0", - "eslint": "^5.11.1", - "eslint-config-prettier": "^4.3.0", - "eslint-plugin-prettier": "^3.1.0", - "istanbul": "^0.4.3", - "mocha": "^5.0.1", - "prettier": "^1.11.0", - "rimraf": "^2.6.2", - "should": "^8.3.1", - "write-file-atomic": "^3.0.1" - }, - "dependencies": { - "glob-to-regexp": "^0.4.1", - "graceful-fs": "^4.1.2" - }, - "engines": { - "node": ">=10.13.0" - } -} diff --git a/build_vtk_bundle/node_modules/webpack-cli/LICENSE b/build_vtk_bundle/node_modules/webpack-cli/LICENSE deleted file mode 100644 index 3d5fa732..00000000 --- a/build_vtk_bundle/node_modules/webpack-cli/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright JS Foundation and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/build_vtk_bundle/node_modules/webpack-cli/README.md b/build_vtk_bundle/node_modules/webpack-cli/README.md deleted file mode 100644 index 430d7f08..00000000 --- a/build_vtk_bundle/node_modules/webpack-cli/README.md +++ /dev/null @@ -1,145 +0,0 @@ - - -# webpack CLI - -The official CLI of webpack - -## About - -webpack CLI provides a flexible set of commands for developers to increase speed when setting up a custom webpack project. As of webpack v4, webpack is not expecting a configuration file, but often developers want to create a more custom webpack configuration based on their use-cases and needs. webpack CLI addresses these needs by providing a set of tools to improve the setup of custom webpack configuration. - -## How to install - -When you have followed the [Getting Started](https://webpack.js.org/guides/getting-started/) guide of webpack then webpack CLI is already installed! - -Otherwise - -```bash -npm install --save-dev webpack-cli -``` - -or - -```bash -yarn add webpack-cli --dev -``` - -## Supported arguments and commands - -### Usage - -All interactions with webpack-cli are of the form - -```bash -npx webpack-cli [command] [options] -``` - -If no command is specified then `bundle` command is used by default - -### Help Usage - -To display basic commands and arguments - - -```bash -npx webpack-cli --help -``` - -To display all supported commands and arguments - - -```bash -npx webpack-cli --help=verbose -``` - -or - -```bash -npx webpack-cli --help verbose -``` - -### Available Commands - -``` - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server. - version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. -``` - -### Available Options - -``` -Options: - -c, --config Provide path to a webpack configuration file e.g. ./webpack.config.js. - --config-name Name of the configuration to use. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret for loading the config file. - --env Environment passed to the configuration when it is a function. - --node-env Sets process.env.NODE_ENV to the specified value. - --define-process-env-node-env Sets process.env.NODE_ENV to the specified value. (Currently an alias for `--node-env`) - --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. - --progress [value] Print compilation progress during build. - -j, --json [value] Prints result as JSON or store it in a file. - --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. -``` - -Checkout [`OPTIONS.md`](https://github.com/webpack/webpack-cli/blob/master/OPTIONS.md) to see list of all available options. - -## Exit codes and their meanings - -| Exit Code | Description | -| --------- | -------------------------------------------------- | -| `0` | Success | -| `1` | Errors from webpack | -| `2` | Configuration/options problem or an internal error | - -## CLI Environment Variables - -| Environment Variable | Description | -| ----------------------------------- | ------------------------------------------------------------------- | -| `WEBPACK_CLI_SKIP_IMPORT_LOCAL` | when `true` it will skip using the local instance of `webpack-cli`. | -| `WEBPACK_CLI_FORCE_LOAD_ESM_CONFIG` | when `true` it will force load the ESM config. | -| `WEBPACK_PACKAGE` | Use a custom webpack version in CLI. | -| `WEBPACK_DEV_SERVER_PACKAGE` | Use a custom webpack-dev-server version in CLI. | -| `WEBPACK_CLI_HELP_WIDTH` | Use custom width for help output. | - -## Configuration Environment Variables - -You can use the following environment variables inside your webpack configuration: - -| Environment Variable | Description | -| -------------------- | -------------------------------------------- | -| `WEBPACK_SERVE` | `true` if `serve\|s` is being used. | -| `WEBPACK_BUILD` | `true` if `build\|bundle\|b` is being used. | -| `WEBPACK_WATCH` | `true` if `--watch\|watch\|w` is being used. | - -Checkout [webpack.js.org](https://webpack.js.org/api/cli/) for more detailed documentation of `webpack-cli`. diff --git a/build_vtk_bundle/node_modules/webpack-cli/bin/cli.js b/build_vtk_bundle/node_modules/webpack-cli/bin/cli.js deleted file mode 100755 index 5305a836..00000000 --- a/build_vtk_bundle/node_modules/webpack-cli/bin/cli.js +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env node - -"use strict"; - -const importLocal = require("import-local"); -const runCLI = require("../lib/bootstrap"); - -if (!process.env.WEBPACK_CLI_SKIP_IMPORT_LOCAL) { - // Prefer the local installation of `webpack-cli` - if (importLocal(__filename)) { - return; - } -} - -process.title = "webpack"; - -runCLI(process.argv); diff --git a/build_vtk_bundle/node_modules/webpack-cli/node_modules/commander/LICENSE b/build_vtk_bundle/node_modules/webpack-cli/node_modules/commander/LICENSE deleted file mode 100644 index 10f997ab..00000000 --- a/build_vtk_bundle/node_modules/webpack-cli/node_modules/commander/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -(The MIT License) - -Copyright (c) 2011 TJ Holowaychuk - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/webpack-cli/node_modules/commander/Readme.md b/build_vtk_bundle/node_modules/webpack-cli/node_modules/commander/Readme.md deleted file mode 100644 index 095e2aef..00000000 --- a/build_vtk_bundle/node_modules/webpack-cli/node_modules/commander/Readme.md +++ /dev/null @@ -1,1134 +0,0 @@ -# Commander.js - -[![Build Status](https://github.com/tj/commander.js/workflows/build/badge.svg)](https://github.com/tj/commander.js/actions?query=workflow%3A%22build%22) -[![NPM Version](http://img.shields.io/npm/v/commander.svg?style=flat)](https://www.npmjs.org/package/commander) -[![NPM Downloads](https://img.shields.io/npm/dm/commander.svg?style=flat)](https://npmcharts.com/compare/commander?minimal=true) -[![Install Size](https://packagephobia.now.sh/badge?p=commander)](https://packagephobia.now.sh/result?p=commander) - -The complete solution for [node.js](http://nodejs.org) command-line interfaces. - -Read this in other languages: English | [简体中文](./Readme_zh-CN.md) - -- [Commander.js](#commanderjs) - - [Installation](#installation) - - [Quick Start](#quick-start) - - [Declaring _program_ variable](#declaring-program-variable) - - [Options](#options) - - [Common option types, boolean and value](#common-option-types-boolean-and-value) - - [Default option value](#default-option-value) - - [Other option types, negatable boolean and boolean|value](#other-option-types-negatable-boolean-and-booleanvalue) - - [Required option](#required-option) - - [Variadic option](#variadic-option) - - [Version option](#version-option) - - [More configuration](#more-configuration) - - [Custom option processing](#custom-option-processing) - - [Commands](#commands) - - [Command-arguments](#command-arguments) - - [More configuration](#more-configuration-1) - - [Custom argument processing](#custom-argument-processing) - - [Action handler](#action-handler) - - [Stand-alone executable (sub)commands](#stand-alone-executable-subcommands) - - [Life cycle hooks](#life-cycle-hooks) - - [Automated help](#automated-help) - - [Custom help](#custom-help) - - [Display help after errors](#display-help-after-errors) - - [Display help from code](#display-help-from-code) - - [.name](#name) - - [.usage](#usage) - - [.description and .summary](#description-and-summary) - - [.helpOption(flags, description)](#helpoptionflags-description) - - [.addHelpCommand()](#addhelpcommand) - - [More configuration](#more-configuration-2) - - [Custom event listeners](#custom-event-listeners) - - [Bits and pieces](#bits-and-pieces) - - [.parse() and .parseAsync()](#parse-and-parseasync) - - [Parsing Configuration](#parsing-configuration) - - [Legacy options as properties](#legacy-options-as-properties) - - [TypeScript](#typescript) - - [createCommand()](#createcommand) - - [Node options such as `--harmony`](#node-options-such-as---harmony) - - [Debugging stand-alone executable subcommands](#debugging-stand-alone-executable-subcommands) - - [Display error](#display-error) - - [Override exit and output handling](#override-exit-and-output-handling) - - [Additional documentation](#additional-documentation) - - [Support](#support) - - [Commander for enterprise](#commander-for-enterprise) - -For information about terms used in this document see: [terminology](./docs/terminology.md) - -## Installation - -```sh -npm install commander -``` - -## Quick Start - -You write code to describe your command line interface. -Commander looks after parsing the arguments into options and command-arguments, -displays usage errors for problems, and implements a help system. - -Commander is strict and displays an error for unrecognised options. -The two most used option types are a boolean option, and an option which takes its value from the following argument. - -Example file: [split.js](./examples/split.js) - -```js -const { program } = require('commander'); - -program - .option('--first') - .option('-s, --separator '); - -program.parse(); - -const options = program.opts(); -const limit = options.first ? 1 : undefined; -console.log(program.args[0].split(options.separator, limit)); -``` - -```console -$ node split.js -s / --fits a/b/c -error: unknown option '--fits' -(Did you mean --first?) -$ node split.js -s / --first a/b/c -[ 'a' ] -``` - -Here is a more complete program using a subcommand and with descriptions for the help. In a multi-command program, you have an action handler for each command (or stand-alone executables for the commands). - -Example file: [string-util.js](./examples/string-util.js) - -```js -const { Command } = require('commander'); -const program = new Command(); - -program - .name('string-util') - .description('CLI to some JavaScript string utilities') - .version('0.8.0'); - -program.command('split') - .description('Split a string into substrings and display as an array') - .argument('', 'string to split') - .option('--first', 'display just the first substring') - .option('-s, --separator ', 'separator character', ',') - .action((str, options) => { - const limit = options.first ? 1 : undefined; - console.log(str.split(options.separator, limit)); - }); - -program.parse(); -``` - -```console -$ node string-util.js help split -Usage: string-util split [options] - -Split a string into substrings and display as an array. - -Arguments: - string string to split - -Options: - --first display just the first substring - -s, --separator separator character (default: ",") - -h, --help display help for command - -$ node string-util.js split --separator=/ a/b/c -[ 'a', 'b', 'c' ] -``` - -More samples can be found in the [examples](https://github.com/tj/commander.js/tree/master/examples) directory. - -## Declaring _program_ variable - -Commander exports a global object which is convenient for quick programs. -This is used in the examples in this README for brevity. - -```js -// CommonJS (.cjs) -const { program } = require('commander'); -``` - -For larger programs which may use commander in multiple ways, including unit testing, it is better to create a local Command object to use. - -```js -// CommonJS (.cjs) -const { Command } = require('commander'); -const program = new Command(); -``` - -```js -// ECMAScript (.mjs) -import { Command } from 'commander'; -const program = new Command(); -``` - -```ts -// TypeScript (.ts) -import { Command } from 'commander'; -const program = new Command(); -``` - -## Options - -Options are defined with the `.option()` method, also serving as documentation for the options. Each option can have a short flag (single character) and a long name, separated by a comma or space or vertical bar ('|'). - -The parsed options can be accessed by calling `.opts()` on a `Command` object, and are passed to the action handler. - -Multi-word options such as "--template-engine" are camel-cased, becoming `program.opts().templateEngine` etc. - -An option and its option-argument can be separated by a space, or combined into the same argument. The option-argument can follow the short option directly or follow an `=` for a long option. - -```sh -serve -p 80 -serve -p80 -serve --port 80 -serve --port=80 -``` - -You can use `--` to indicate the end of the options, and any remaining arguments will be used without being interpreted. - -By default options on the command line are not positional, and can be specified before or after other arguments. - -There are additional related routines for when `.opts()` is not enough: - -- `.optsWithGlobals()` returns merged local and global option values -- `.getOptionValue()` and `.setOptionValue()` work with a single option value -- `.getOptionValueSource()` and `.setOptionValueWithSource()` include where the option value came from - -### Common option types, boolean and value - -The two most used option types are a boolean option, and an option which takes its value -from the following argument (declared with angle brackets like `--expect `). Both are `undefined` unless specified on command line. - -Example file: [options-common.js](./examples/options-common.js) - -```js -program - .option('-d, --debug', 'output extra debugging') - .option('-s, --small', 'small pizza size') - .option('-p, --pizza-type ', 'flavour of pizza'); - -program.parse(process.argv); - -const options = program.opts(); -if (options.debug) console.log(options); -console.log('pizza details:'); -if (options.small) console.log('- small pizza size'); -if (options.pizzaType) console.log(`- ${options.pizzaType}`); -``` - -```console -$ pizza-options -p -error: option '-p, --pizza-type ' argument missing -$ pizza-options -d -s -p vegetarian -{ debug: true, small: true, pizzaType: 'vegetarian' } -pizza details: -- small pizza size -- vegetarian -$ pizza-options --pizza-type=cheese -pizza details: -- cheese -``` - -Multiple boolean short options may be combined together following the dash, and may be followed by a single short option taking a value. -For example `-d -s -p cheese` may be written as `-ds -p cheese` or even `-dsp cheese`. - -Options with an expected option-argument are greedy and will consume the following argument whatever the value. -So `--id -xyz` reads `-xyz` as the option-argument. - -`program.parse(arguments)` processes the arguments, leaving any args not consumed by the program options in the `program.args` array. The parameter is optional and defaults to `process.argv`. - -### Default option value - -You can specify a default value for an option. - -Example file: [options-defaults.js](./examples/options-defaults.js) - -```js -program - .option('-c, --cheese ', 'add the specified type of cheese', 'blue'); - -program.parse(); - -console.log(`cheese: ${program.opts().cheese}`); -``` - -```console -$ pizza-options -cheese: blue -$ pizza-options --cheese stilton -cheese: stilton -``` - -### Other option types, negatable boolean and boolean|value - -You can define a boolean option long name with a leading `no-` to set the option value to false when used. -Defined alone this also makes the option true by default. - -If you define `--foo` first, adding `--no-foo` does not change the default value from what it would -otherwise be. - -Example file: [options-negatable.js](./examples/options-negatable.js) - -```js -program - .option('--no-sauce', 'Remove sauce') - .option('--cheese ', 'cheese flavour', 'mozzarella') - .option('--no-cheese', 'plain with no cheese') - .parse(); - -const options = program.opts(); -const sauceStr = options.sauce ? 'sauce' : 'no sauce'; -const cheeseStr = (options.cheese === false) ? 'no cheese' : `${options.cheese} cheese`; -console.log(`You ordered a pizza with ${sauceStr} and ${cheeseStr}`); -``` - -```console -$ pizza-options -You ordered a pizza with sauce and mozzarella cheese -$ pizza-options --sauce -error: unknown option '--sauce' -$ pizza-options --cheese=blue -You ordered a pizza with sauce and blue cheese -$ pizza-options --no-sauce --no-cheese -You ordered a pizza with no sauce and no cheese -``` - -You can specify an option which may be used as a boolean option but may optionally take an option-argument -(declared with square brackets like `--optional [value]`). - -Example file: [options-boolean-or-value.js](./examples/options-boolean-or-value.js) - -```js -program - .option('-c, --cheese [type]', 'Add cheese with optional type'); - -program.parse(process.argv); - -const options = program.opts(); -if (options.cheese === undefined) console.log('no cheese'); -else if (options.cheese === true) console.log('add cheese'); -else console.log(`add cheese type ${options.cheese}`); -``` - -```console -$ pizza-options -no cheese -$ pizza-options --cheese -add cheese -$ pizza-options --cheese mozzarella -add cheese type mozzarella -``` - -Options with an optional option-argument are not greedy and will ignore arguments starting with a dash. -So `id` behaves as a boolean option for `--id -5`, but you can use a combined form if needed like `--id=-5`. - -For information about possible ambiguous cases, see [options taking varying arguments](./docs/options-taking-varying-arguments.md). - -### Required option - -You may specify a required (mandatory) option using `.requiredOption()`. The option must have a value after parsing, usually specified on the command line, or perhaps from a default value (say from environment). The method is otherwise the same as `.option()` in format, taking flags and description, and optional default value or custom processing. - -Example file: [options-required.js](./examples/options-required.js) - -```js -program - .requiredOption('-c, --cheese ', 'pizza must have cheese'); - -program.parse(); -``` - -```console -$ pizza -error: required option '-c, --cheese ' not specified -``` - -### Variadic option - -You may make an option variadic by appending `...` to the value placeholder when declaring the option. On the command line you -can then specify multiple option-arguments, and the parsed option value will be an array. The extra arguments -are read until the first argument starting with a dash. The special argument `--` stops option processing entirely. If a value -is specified in the same argument as the option then no further values are read. - -Example file: [options-variadic.js](./examples/options-variadic.js) - -```js -program - .option('-n, --number ', 'specify numbers') - .option('-l, --letter [letters...]', 'specify letters'); - -program.parse(); - -console.log('Options: ', program.opts()); -console.log('Remaining arguments: ', program.args); -``` - -```console -$ collect -n 1 2 3 --letter a b c -Options: { number: [ '1', '2', '3' ], letter: [ 'a', 'b', 'c' ] } -Remaining arguments: [] -$ collect --letter=A -n80 operand -Options: { number: [ '80' ], letter: [ 'A' ] } -Remaining arguments: [ 'operand' ] -$ collect --letter -n 1 -n 2 3 -- operand -Options: { number: [ '1', '2', '3' ], letter: true } -Remaining arguments: [ 'operand' ] -``` - -For information about possible ambiguous cases, see [options taking varying arguments](./docs/options-taking-varying-arguments.md). - -### Version option - -The optional `version` method adds handling for displaying the command version. The default option flags are `-V` and `--version`, and when present the command prints the version number and exits. - -```js -program.version('0.0.1'); -``` - -```console -$ ./examples/pizza -V -0.0.1 -``` - -You may change the flags and description by passing additional parameters to the `version` method, using -the same syntax for flags as the `option` method. - -```js -program.version('0.0.1', '-v, --vers', 'output the current version'); -``` - -### More configuration - -You can add most options using the `.option()` method, but there are some additional features available -by constructing an `Option` explicitly for less common cases. - -Example files: [options-extra.js](./examples/options-extra.js), [options-env.js](./examples/options-env.js), [options-conflicts.js](./examples/options-conflicts.js), [options-implies.js](./examples/options-implies.js) - -```js -program - .addOption(new Option('-s, --secret').hideHelp()) - .addOption(new Option('-t, --timeout ', 'timeout in seconds').default(60, 'one minute')) - .addOption(new Option('-d, --drink ', 'drink size').choices(['small', 'medium', 'large'])) - .addOption(new Option('-p, --port ', 'port number').env('PORT')) - .addOption(new Option('--donate [amount]', 'optional donation in dollars').preset('20').argParser(parseFloat)) - .addOption(new Option('--disable-server', 'disables the server').conflicts('port')) - .addOption(new Option('--free-drink', 'small drink included free ').implies({ drink: 'small' })); -``` - -```console -$ extra --help -Usage: help [options] - -Options: - -t, --timeout timeout in seconds (default: one minute) - -d, --drink drink cup size (choices: "small", "medium", "large") - -p, --port port number (env: PORT) - --donate [amount] optional donation in dollars (preset: "20") - --disable-server disables the server - --free-drink small drink included free - -h, --help display help for command - -$ extra --drink huge -error: option '-d, --drink ' argument 'huge' is invalid. Allowed choices are small, medium, large. - -$ PORT=80 extra --donate --free-drink -Options: { timeout: 60, donate: 20, port: '80', freeDrink: true, drink: 'small' } - -$ extra --disable-server --port 8000 -error: option '--disable-server' cannot be used with option '-p, --port ' -``` - -Specify a required (mandatory) option using the `Option` method `.makeOptionMandatory()`. This matches the `Command` method [.requiredOption()](#required-option). - -### Custom option processing - -You may specify a function to do custom processing of option-arguments. The callback function receives two parameters, -the user specified option-argument and the previous value for the option. It returns the new value for the option. - -This allows you to coerce the option-argument to the desired type, or accumulate values, or do entirely custom processing. - -You can optionally specify the default/starting value for the option after the function parameter. - -Example file: [options-custom-processing.js](./examples/options-custom-processing.js) - -```js -function myParseInt(value, dummyPrevious) { - // parseInt takes a string and a radix - const parsedValue = parseInt(value, 10); - if (isNaN(parsedValue)) { - throw new commander.InvalidArgumentError('Not a number.'); - } - return parsedValue; -} - -function increaseVerbosity(dummyValue, previous) { - return previous + 1; -} - -function collect(value, previous) { - return previous.concat([value]); -} - -function commaSeparatedList(value, dummyPrevious) { - return value.split(','); -} - -program - .option('-f, --float ', 'float argument', parseFloat) - .option('-i, --integer ', 'integer argument', myParseInt) - .option('-v, --verbose', 'verbosity that can be increased', increaseVerbosity, 0) - .option('-c, --collect ', 'repeatable value', collect, []) - .option('-l, --list ', 'comma separated list', commaSeparatedList) -; - -program.parse(); - -const options = program.opts(); -if (options.float !== undefined) console.log(`float: ${options.float}`); -if (options.integer !== undefined) console.log(`integer: ${options.integer}`); -if (options.verbose > 0) console.log(`verbosity: ${options.verbose}`); -if (options.collect.length > 0) console.log(options.collect); -if (options.list !== undefined) console.log(options.list); -``` - -```console -$ custom -f 1e2 -float: 100 -$ custom --integer 2 -integer: 2 -$ custom -v -v -v -verbose: 3 -$ custom -c a -c b -c c -[ 'a', 'b', 'c' ] -$ custom --list x,y,z -[ 'x', 'y', 'z' ] -``` - -## Commands - -You can specify (sub)commands using `.command()` or `.addCommand()`. There are two ways these can be implemented: using an action handler attached to the command, or as a stand-alone executable file (described in more detail later). The subcommands may be nested ([example](./examples/nestedCommands.js)). - -In the first parameter to `.command()` you specify the command name. You may append the command-arguments after the command name, or specify them separately using `.argument()`. The arguments may be `` or `[optional]`, and the last argument may also be `variadic...`. - -You can use `.addCommand()` to add an already configured subcommand to the program. - -For example: - -```js -// Command implemented using action handler (description is supplied separately to `.command`) -// Returns new command for configuring. -program - .command('clone [destination]') - .description('clone a repository into a newly created directory') - .action((source, destination) => { - console.log('clone command called'); - }); - -// Command implemented using stand-alone executable file, indicated by adding description as second parameter to `.command`. -// Returns `this` for adding more commands. -program - .command('start ', 'start named service') - .command('stop [service]', 'stop named service, or all if no name supplied'); - -// Command prepared separately. -// Returns `this` for adding more commands. -program - .addCommand(build.makeBuildCommand()); -``` - -Configuration options can be passed with the call to `.command()` and `.addCommand()`. Specifying `hidden: true` will -remove the command from the generated help output. Specifying `isDefault: true` will run the subcommand if no other -subcommand is specified ([example](./examples/defaultCommand.js)). - -You can add alternative names for a command with `.alias()`. ([example](./examples/alias.js)) - -For safety, `.addCommand()` does not automatically copy the inherited settings from the parent command. There is a helper routine `.copyInheritedSettings()` for copying the settings when they are wanted. - -### Command-arguments - -For subcommands, you can specify the argument syntax in the call to `.command()` (as shown above). This -is the only method usable for subcommands implemented using a stand-alone executable, but for other subcommands -you can instead use the following method. - -To configure a command, you can use `.argument()` to specify each expected command-argument. -You supply the argument name and an optional description. The argument may be `` or `[optional]`. -You can specify a default value for an optional command-argument. - -Example file: [argument.js](./examples/argument.js) - -```js -program - .version('0.1.0') - .argument('', 'user to login') - .argument('[password]', 'password for user, if required', 'no password given') - .action((username, password) => { - console.log('username:', username); - console.log('password:', password); - }); -``` - - The last argument of a command can be variadic, and only the last argument. To make an argument variadic you - append `...` to the argument name. A variadic argument is passed to the action handler as an array. For example: - -```js -program - .version('0.1.0') - .command('rmdir') - .argument('') - .action(function (dirs) { - dirs.forEach((dir) => { - console.log('rmdir %s', dir); - }); - }); -``` - -There is a convenience method to add multiple arguments at once, but without descriptions: - -```js -program - .arguments(' '); -``` - -#### More configuration - -There are some additional features available by constructing an `Argument` explicitly for less common cases. - -Example file: [arguments-extra.js](./examples/arguments-extra.js) - -```js -program - .addArgument(new commander.Argument('', 'drink cup size').choices(['small', 'medium', 'large'])) - .addArgument(new commander.Argument('[timeout]', 'timeout in seconds').default(60, 'one minute')) -``` - -#### Custom argument processing - -You may specify a function to do custom processing of command-arguments (like for option-arguments). -The callback function receives two parameters, the user specified command-argument and the previous value for the argument. -It returns the new value for the argument. - -The processed argument values are passed to the action handler, and saved as `.processedArgs`. - -You can optionally specify the default/starting value for the argument after the function parameter. - -Example file: [arguments-custom-processing.js](./examples/arguments-custom-processing.js) - -```js -program - .command('add') - .argument('', 'integer argument', myParseInt) - .argument('[second]', 'integer argument', myParseInt, 1000) - .action((first, second) => { - console.log(`${first} + ${second} = ${first + second}`); - }) -; -``` - -### Action handler - -The action handler gets passed a parameter for each command-argument you declared, and two additional parameters -which are the parsed options and the command object itself. - -Example file: [thank.js](./examples/thank.js) - -```js -program - .argument('') - .option('-t, --title ', 'title to use before name') - .option('-d, --debug', 'display some debugging') - .action((name, options, command) => { - if (options.debug) { - console.error('Called %s with options %o', command.name(), options); - } - const title = options.title ? `${options.title} ` : ''; - console.log(`Thank-you ${title}${name}`); - }); -``` - -If you prefer, you can work with the command directly and skip declaring the parameters for the action handler. The `this` keyword is set to the running command and can be used from a function expression (but not from an arrow function). - -Example file: [action-this.js](./examples/action-this.js) - -```js -program - .command('serve') - .argument(' -``` - -This bundle can be used with different module systems; it creates global `Ajv` if no module system is found. - -The browser bundle is available on [cdnjs](https://cdnjs.com/libraries/ajv). - -Ajv is tested with these browsers: - -[![Sauce Test Status](https://saucelabs.com/browser-matrix/epoberezkin.svg)](https://saucelabs.com/u/epoberezkin) - -__Please note__: some frameworks, e.g. Dojo, may redefine global require in such way that is not compatible with CommonJS module format. In such case Ajv bundle has to be loaded before the framework and then you can use global Ajv (see issue [#234](https://github.com/ajv-validator/ajv/issues/234)). - - -### Ajv and Content Security Policies (CSP) - -If you're using Ajv to compile a schema (the typical use) in a browser document that is loaded with a Content Security Policy (CSP), that policy will require a `script-src` directive that includes the value `'unsafe-eval'`. -:warning: NOTE, however, that `unsafe-eval` is NOT recommended in a secure CSP[[1]](https://developer.chrome.com/extensions/contentSecurityPolicy#relaxing-eval), as it has the potential to open the document to cross-site scripting (XSS) attacks. - -In order to make use of Ajv without easing your CSP, you can [pre-compile a schema using the CLI](https://github.com/ajv-validator/ajv-cli#compile-schemas). This will transpile the schema JSON into a JavaScript file that exports a `validate` function that works simlarly to a schema compiled at runtime. - -Note that pre-compilation of schemas is performed using [ajv-pack](https://github.com/ajv-validator/ajv-pack) and there are [some limitations to the schema features it can compile](https://github.com/ajv-validator/ajv-pack#limitations). A successfully pre-compiled schema is equivalent to the same schema compiled at runtime. - - -## Command line interface - -CLI is available as a separate npm package [ajv-cli](https://github.com/ajv-validator/ajv-cli). It supports: - -- compiling JSON Schemas to test their validity -- BETA: generating standalone module exporting a validation function to be used without Ajv (using [ajv-pack](https://github.com/ajv-validator/ajv-pack)) -- migrate schemas to draft-07 (using [json-schema-migrate](https://github.com/epoberezkin/json-schema-migrate)) -- validating data file(s) against JSON Schema -- testing expected validity of data against JSON Schema -- referenced schemas -- custom meta-schemas -- files in JSON, JSON5, YAML, and JavaScript format -- all Ajv options -- reporting changes in data after validation in [JSON-patch](https://tools.ietf.org/html/rfc6902) format - - -## Validation keywords - -Ajv supports all validation keywords from draft-07 of JSON Schema standard: - -- [type](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#type) -- [for numbers](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#keywords-for-numbers) - maximum, minimum, exclusiveMaximum, exclusiveMinimum, multipleOf -- [for strings](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#keywords-for-strings) - maxLength, minLength, pattern, format -- [for arrays](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#keywords-for-arrays) - maxItems, minItems, uniqueItems, items, additionalItems, [contains](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#contains) -- [for objects](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#keywords-for-objects) - maxProperties, minProperties, required, properties, patternProperties, additionalProperties, dependencies, [propertyNames](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#propertynames) -- [for all types](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#keywords-for-all-types) - enum, [const](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#const) -- [compound keywords](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#compound-keywords) - not, oneOf, anyOf, allOf, [if/then/else](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#ifthenelse) - -With [ajv-keywords](https://github.com/ajv-validator/ajv-keywords) package Ajv also supports validation keywords from [JSON Schema extension proposals](https://github.com/json-schema/json-schema/wiki/v5-Proposals) for JSON Schema standard: - -- [patternRequired](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#patternrequired-proposed) - like `required` but with patterns that some property should match. -- [formatMaximum, formatMinimum, formatExclusiveMaximum, formatExclusiveMinimum](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md#formatmaximum--formatminimum-and-exclusiveformatmaximum--exclusiveformatminimum-proposed) - setting limits for date, time, etc. - -See [JSON Schema validation keywords](https://github.com/ajv-validator/ajv/blob/master/KEYWORDS.md) for more details. - - -## Annotation keywords - -JSON Schema specification defines several annotation keywords that describe schema itself but do not perform any validation. - -- `title` and `description`: information about the data represented by that schema -- `$comment` (NEW in draft-07): information for developers. With option `$comment` Ajv logs or passes the comment string to the user-supplied function. See [Options](#options). -- `default`: a default value of the data instance, see [Assigning defaults](#assigning-defaults). -- `examples` (NEW in draft-06): an array of data instances. Ajv does not check the validity of these instances against the schema. -- `readOnly` and `writeOnly` (NEW in draft-07): marks data-instance as read-only or write-only in relation to the source of the data (database, api, etc.). -- `contentEncoding`: [RFC 2045](https://tools.ietf.org/html/rfc2045#section-6.1 ), e.g., "base64". -- `contentMediaType`: [RFC 2046](https://tools.ietf.org/html/rfc2046), e.g., "image/png". - -__Please note__: Ajv does not implement validation of the keywords `examples`, `contentEncoding` and `contentMediaType` but it reserves them. If you want to create a plugin that implements some of them, it should remove these keywords from the instance. - - -## Formats - -Ajv implements formats defined by JSON Schema specification and several other formats. It is recommended NOT to use "format" keyword implementations with untrusted data, as they use potentially unsafe regular expressions - see [ReDoS attack](#redos-attack). - -__Please note__: if you need to use "format" keyword to validate untrusted data, you MUST assess their suitability and safety for your validation scenarios. - -The following formats are implemented for string validation with "format" keyword: - -- _date_: full-date according to [RFC3339](http://tools.ietf.org/html/rfc3339#section-5.6). -- _time_: time with optional time-zone. -- _date-time_: date-time from the same source (time-zone is mandatory). `date`, `time` and `date-time` validate ranges in `full` mode and only regexp in `fast` mode (see [options](#options)). -- _uri_: full URI. -- _uri-reference_: URI reference, including full and relative URIs. -- _uri-template_: URI template according to [RFC6570](https://tools.ietf.org/html/rfc6570) -- _url_ (deprecated): [URL record](https://url.spec.whatwg.org/#concept-url). -- _email_: email address. -- _hostname_: host name according to [RFC1034](http://tools.ietf.org/html/rfc1034#section-3.5). -- _ipv4_: IP address v4. -- _ipv6_: IP address v6. -- _regex_: tests whether a string is a valid regular expression by passing it to RegExp constructor. -- _uuid_: Universally Unique IDentifier according to [RFC4122](http://tools.ietf.org/html/rfc4122). -- _json-pointer_: JSON-pointer according to [RFC6901](https://tools.ietf.org/html/rfc6901). -- _relative-json-pointer_: relative JSON-pointer according to [this draft](http://tools.ietf.org/html/draft-luff-relative-json-pointer-00). - -__Please note__: JSON Schema draft-07 also defines formats `iri`, `iri-reference`, `idn-hostname` and `idn-email` for URLs, hostnames and emails with international characters. Ajv does not implement these formats. If you create Ajv plugin that implements them please make a PR to mention this plugin here. - -There are two modes of format validation: `fast` and `full`. This mode affects formats `date`, `time`, `date-time`, `uri`, `uri-reference`, and `email`. See [Options](#options) for details. - -You can add additional formats and replace any of the formats above using [addFormat](#api-addformat) method. - -The option `unknownFormats` allows changing the default behaviour when an unknown format is encountered. In this case Ajv can either fail schema compilation (default) or ignore it (default in versions before 5.0.0). You also can allow specific format(s) that will be ignored. See [Options](#options) for details. - -You can find regular expressions used for format validation and the sources that were used in [formats.js](https://github.com/ajv-validator/ajv/blob/master/lib/compile/formats.js). - - -## Combining schemas with $ref - -You can structure your validation logic across multiple schema files and have schemas reference each other using `$ref` keyword. - -Example: - -```javascript -var schema = { - "$id": "http://example.com/schemas/schema.json", - "type": "object", - "properties": { - "foo": { "$ref": "defs.json#/definitions/int" }, - "bar": { "$ref": "defs.json#/definitions/str" } - } -}; - -var defsSchema = { - "$id": "http://example.com/schemas/defs.json", - "definitions": { - "int": { "type": "integer" }, - "str": { "type": "string" } - } -}; -``` - -Now to compile your schema you can either pass all schemas to Ajv instance: - -```javascript -var ajv = new Ajv({schemas: [schema, defsSchema]}); -var validate = ajv.getSchema('http://example.com/schemas/schema.json'); -``` - -or use `addSchema` method: - -```javascript -var ajv = new Ajv; -var validate = ajv.addSchema(defsSchema) - .compile(schema); -``` - -See [Options](#options) and [addSchema](#api) method. - -__Please note__: -- `$ref` is resolved as the uri-reference using schema $id as the base URI (see the example). -- References can be recursive (and mutually recursive) to implement the schemas for different data structures (such as linked lists, trees, graphs, etc.). -- You don't have to host your schema files at the URIs that you use as schema $id. These URIs are only used to identify the schemas, and according to JSON Schema specification validators should not expect to be able to download the schemas from these URIs. -- The actual location of the schema file in the file system is not used. -- You can pass the identifier of the schema as the second parameter of `addSchema` method or as a property name in `schemas` option. This identifier can be used instead of (or in addition to) schema $id. -- You cannot have the same $id (or the schema identifier) used for more than one schema - the exception will be thrown. -- You can implement dynamic resolution of the referenced schemas using `compileAsync` method. In this way you can store schemas in any system (files, web, database, etc.) and reference them without explicitly adding to Ajv instance. See [Asynchronous schema compilation](#asynchronous-schema-compilation). - - -## $data reference - -With `$data` option you can use values from the validated data as the values for the schema keywords. See [proposal](https://github.com/json-schema-org/json-schema-spec/issues/51) for more information about how it works. - -`$data` reference is supported in the keywords: const, enum, format, maximum/minimum, exclusiveMaximum / exclusiveMinimum, maxLength / minLength, maxItems / minItems, maxProperties / minProperties, formatMaximum / formatMinimum, formatExclusiveMaximum / formatExclusiveMinimum, multipleOf, pattern, required, uniqueItems. - -The value of "$data" should be a [JSON-pointer](https://tools.ietf.org/html/rfc6901) to the data (the root is always the top level data object, even if the $data reference is inside a referenced subschema) or a [relative JSON-pointer](http://tools.ietf.org/html/draft-luff-relative-json-pointer-00) (it is relative to the current point in data; if the $data reference is inside a referenced subschema it cannot point to the data outside of the root level for this subschema). - -Examples. - -This schema requires that the value in property `smaller` is less or equal than the value in the property larger: - -```javascript -var ajv = new Ajv({$data: true}); - -var schema = { - "properties": { - "smaller": { - "type": "number", - "maximum": { "$data": "1/larger" } - }, - "larger": { "type": "number" } - } -}; - -var validData = { - smaller: 5, - larger: 7 -}; - -ajv.validate(schema, validData); // true -``` - -This schema requires that the properties have the same format as their field names: - -```javascript -var schema = { - "additionalProperties": { - "type": "string", - "format": { "$data": "0#" } - } -}; - -var validData = { - 'date-time': '1963-06-19T08:30:06.283185Z', - email: 'joe.bloggs@example.com' -} -``` - -`$data` reference is resolved safely - it won't throw even if some property is undefined. If `$data` resolves to `undefined` the validation succeeds (with the exclusion of `const` keyword). If `$data` resolves to incorrect type (e.g. not "number" for maximum keyword) the validation fails. - - -## $merge and $patch keywords - -With the package [ajv-merge-patch](https://github.com/ajv-validator/ajv-merge-patch) you can use the keywords `$merge` and `$patch` that allow extending JSON Schemas with patches using formats [JSON Merge Patch (RFC 7396)](https://tools.ietf.org/html/rfc7396) and [JSON Patch (RFC 6902)](https://tools.ietf.org/html/rfc6902). - -To add keywords `$merge` and `$patch` to Ajv instance use this code: - -```javascript -require('ajv-merge-patch')(ajv); -``` - -Examples. - -Using `$merge`: - -```json -{ - "$merge": { - "source": { - "type": "object", - "properties": { "p": { "type": "string" } }, - "additionalProperties": false - }, - "with": { - "properties": { "q": { "type": "number" } } - } - } -} -``` - -Using `$patch`: - -```json -{ - "$patch": { - "source": { - "type": "object", - "properties": { "p": { "type": "string" } }, - "additionalProperties": false - }, - "with": [ - { "op": "add", "path": "/properties/q", "value": { "type": "number" } } - ] - } -} -``` - -The schemas above are equivalent to this schema: - -```json -{ - "type": "object", - "properties": { - "p": { "type": "string" }, - "q": { "type": "number" } - }, - "additionalProperties": false -} -``` - -The properties `source` and `with` in the keywords `$merge` and `$patch` can use absolute or relative `$ref` to point to other schemas previously added to the Ajv instance or to the fragments of the current schema. - -See the package [ajv-merge-patch](https://github.com/ajv-validator/ajv-merge-patch) for more information. - - -## Defining custom keywords - -The advantages of using custom keywords are: - -- allow creating validation scenarios that cannot be expressed using JSON Schema -- simplify your schemas -- help bringing a bigger part of the validation logic to your schemas -- make your schemas more expressive, less verbose and closer to your application domain -- implement custom data processors that modify your data (`modifying` option MUST be used in keyword definition) and/or create side effects while the data is being validated - -If a keyword is used only for side-effects and its validation result is pre-defined, use option `valid: true/false` in keyword definition to simplify both generated code (no error handling in case of `valid: true`) and your keyword functions (no need to return any validation result). - -The concerns you have to be aware of when extending JSON Schema standard with custom keywords are the portability and understanding of your schemas. You will have to support these custom keywords on other platforms and to properly document these keywords so that everybody can understand them in your schemas. - -You can define custom keywords with [addKeyword](#api-addkeyword) method. Keywords are defined on the `ajv` instance level - new instances will not have previously defined keywords. - -Ajv allows defining keywords with: -- validation function -- compilation function -- macro function -- inline compilation function that should return code (as string) that will be inlined in the currently compiled schema. - -Example. `range` and `exclusiveRange` keywords using compiled schema: - -```javascript -ajv.addKeyword('range', { - type: 'number', - compile: function (sch, parentSchema) { - var min = sch[0]; - var max = sch[1]; - - return parentSchema.exclusiveRange === true - ? function (data) { return data > min && data < max; } - : function (data) { return data >= min && data <= max; } - } -}); - -var schema = { "range": [2, 4], "exclusiveRange": true }; -var validate = ajv.compile(schema); -console.log(validate(2.01)); // true -console.log(validate(3.99)); // true -console.log(validate(2)); // false -console.log(validate(4)); // false -``` - -Several custom keywords (typeof, instanceof, range and propertyNames) are defined in [ajv-keywords](https://github.com/ajv-validator/ajv-keywords) package - they can be used for your schemas and as a starting point for your own custom keywords. - -See [Defining custom keywords](https://github.com/ajv-validator/ajv/blob/master/CUSTOM.md) for more details. - - -## Asynchronous schema compilation - -During asynchronous compilation remote references are loaded using supplied function. See `compileAsync` [method](#api-compileAsync) and `loadSchema` [option](#options). - -Example: - -```javascript -var ajv = new Ajv({ loadSchema: loadSchema }); - -ajv.compileAsync(schema).then(function (validate) { - var valid = validate(data); - // ... -}); - -function loadSchema(uri) { - return request.json(uri).then(function (res) { - if (res.statusCode >= 400) - throw new Error('Loading error: ' + res.statusCode); - return res.body; - }); -} -``` - -__Please note__: [Option](#options) `missingRefs` should NOT be set to `"ignore"` or `"fail"` for asynchronous compilation to work. - - -## Asynchronous validation - -Example in Node.js REPL: https://tonicdev.com/esp/ajv-asynchronous-validation - -You can define custom formats and keywords that perform validation asynchronously by accessing database or some other service. You should add `async: true` in the keyword or format definition (see [addFormat](#api-addformat), [addKeyword](#api-addkeyword) and [Defining custom keywords](#defining-custom-keywords)). - -If your schema uses asynchronous formats/keywords or refers to some schema that contains them it should have `"$async": true` keyword so that Ajv can compile it correctly. If asynchronous format/keyword or reference to asynchronous schema is used in the schema without `$async` keyword Ajv will throw an exception during schema compilation. - -__Please note__: all asynchronous subschemas that are referenced from the current or other schemas should have `"$async": true` keyword as well, otherwise the schema compilation will fail. - -Validation function for an asynchronous custom format/keyword should return a promise that resolves with `true` or `false` (or rejects with `new Ajv.ValidationError(errors)` if you want to return custom errors from the keyword function). - -Ajv compiles asynchronous schemas to [es7 async functions](http://tc39.github.io/ecmascript-asyncawait/) that can optionally be transpiled with [nodent](https://github.com/MatAtBread/nodent). Async functions are supported in Node.js 7+ and all modern browsers. You can also supply any other transpiler as a function via `processCode` option. See [Options](#options). - -The compiled validation function has `$async: true` property (if the schema is asynchronous), so you can differentiate these functions if you are using both synchronous and asynchronous schemas. - -Validation result will be a promise that resolves with validated data or rejects with an exception `Ajv.ValidationError` that contains the array of validation errors in `errors` property. - - -Example: - -```javascript -var ajv = new Ajv; -// require('ajv-async')(ajv); - -ajv.addKeyword('idExists', { - async: true, - type: 'number', - validate: checkIdExists -}); - - -function checkIdExists(schema, data) { - return knex(schema.table) - .select('id') - .where('id', data) - .then(function (rows) { - return !!rows.length; // true if record is found - }); -} - -var schema = { - "$async": true, - "properties": { - "userId": { - "type": "integer", - "idExists": { "table": "users" } - }, - "postId": { - "type": "integer", - "idExists": { "table": "posts" } - } - } -}; - -var validate = ajv.compile(schema); - -validate({ userId: 1, postId: 19 }) -.then(function (data) { - console.log('Data is valid', data); // { userId: 1, postId: 19 } -}) -.catch(function (err) { - if (!(err instanceof Ajv.ValidationError)) throw err; - // data is invalid - console.log('Validation errors:', err.errors); -}); -``` - -### Using transpilers with asynchronous validation functions. - -[ajv-async](https://github.com/ajv-validator/ajv-async) uses [nodent](https://github.com/MatAtBread/nodent) to transpile async functions. To use another transpiler you should separately install it (or load its bundle in the browser). - - -#### Using nodent - -```javascript -var ajv = new Ajv; -require('ajv-async')(ajv); -// in the browser if you want to load ajv-async bundle separately you can: -// window.ajvAsync(ajv); -var validate = ajv.compile(schema); // transpiled es7 async function -validate(data).then(successFunc).catch(errorFunc); -``` - - -#### Using other transpilers - -```javascript -var ajv = new Ajv({ processCode: transpileFunc }); -var validate = ajv.compile(schema); // transpiled es7 async function -validate(data).then(successFunc).catch(errorFunc); -``` - -See [Options](#options). - - -## Security considerations - -JSON Schema, if properly used, can replace data sanitisation. It doesn't replace other API security considerations. It also introduces additional security aspects to consider. - - -##### Security contact - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerabilities via GitHub issues. - - -##### Untrusted schemas - -Ajv treats JSON schemas as trusted as your application code. This security model is based on the most common use case, when the schemas are static and bundled together with the application. - -If your schemas are received from untrusted sources (or generated from untrusted data) there are several scenarios you need to prevent: -- compiling schemas can cause stack overflow (if they are too deep) -- compiling schemas can be slow (e.g. [#557](https://github.com/ajv-validator/ajv/issues/557)) -- validating certain data can be slow - -It is difficult to predict all the scenarios, but at the very least it may help to limit the size of untrusted schemas (e.g. limit JSON string length) and also the maximum schema object depth (that can be high for relatively small JSON strings). You also may want to mitigate slow regular expressions in `pattern` and `patternProperties` keywords. - -Regardless the measures you take, using untrusted schemas increases security risks. - - -##### Circular references in JavaScript objects - -Ajv does not support schemas and validated data that have circular references in objects. See [issue #802](https://github.com/ajv-validator/ajv/issues/802). - -An attempt to compile such schemas or validate such data would cause stack overflow (or will not complete in case of asynchronous validation). Depending on the parser you use, untrusted data can lead to circular references. - - -##### Security risks of trusted schemas - -Some keywords in JSON Schemas can lead to very slow validation for certain data. These keywords include (but may be not limited to): - -- `pattern` and `format` for large strings - in some cases using `maxLength` can help mitigate it, but certain regular expressions can lead to exponential validation time even with relatively short strings (see [ReDoS attack](#redos-attack)). -- `patternProperties` for large property names - use `propertyNames` to mitigate, but some regular expressions can have exponential evaluation time as well. -- `uniqueItems` for large non-scalar arrays - use `maxItems` to mitigate - -__Please note__: The suggestions above to prevent slow validation would only work if you do NOT use `allErrors: true` in production code (using it would continue validation after validation errors). - -You can validate your JSON schemas against [this meta-schema](https://github.com/ajv-validator/ajv/blob/master/lib/refs/json-schema-secure.json) to check that these recommendations are followed: - -```javascript -const isSchemaSecure = ajv.compile(require('ajv/lib/refs/json-schema-secure.json')); - -const schema1 = {format: 'email'}; -isSchemaSecure(schema1); // false - -const schema2 = {format: 'email', maxLength: MAX_LENGTH}; -isSchemaSecure(schema2); // true -``` - -__Please note__: following all these recommendation is not a guarantee that validation of untrusted data is safe - it can still lead to some undesirable results. - - -##### Content Security Policies (CSP) -See [Ajv and Content Security Policies (CSP)](#ajv-and-content-security-policies-csp) - - -## ReDoS attack - -Certain regular expressions can lead to the exponential evaluation time even with relatively short strings. - -Please assess the regular expressions you use in the schemas on their vulnerability to this attack - see [safe-regex](https://github.com/substack/safe-regex), for example. - -__Please note__: some formats that Ajv implements use [regular expressions](https://github.com/ajv-validator/ajv/blob/master/lib/compile/formats.js) that can be vulnerable to ReDoS attack, so if you use Ajv to validate data from untrusted sources __it is strongly recommended__ to consider the following: - -- making assessment of "format" implementations in Ajv. -- using `format: 'fast'` option that simplifies some of the regular expressions (although it does not guarantee that they are safe). -- replacing format implementations provided by Ajv with your own implementations of "format" keyword that either uses different regular expressions or another approach to format validation. Please see [addFormat](#api-addformat) method. -- disabling format validation by ignoring "format" keyword with option `format: false` - -Whatever mitigation you choose, please assume all formats provided by Ajv as potentially unsafe and make your own assessment of their suitability for your validation scenarios. - - -## Filtering data - -With [option `removeAdditional`](#options) (added by [andyscott](https://github.com/andyscott)) you can filter data during the validation. - -This option modifies original data. - -Example: - -```javascript -var ajv = new Ajv({ removeAdditional: true }); -var schema = { - "additionalProperties": false, - "properties": { - "foo": { "type": "number" }, - "bar": { - "additionalProperties": { "type": "number" }, - "properties": { - "baz": { "type": "string" } - } - } - } -} - -var data = { - "foo": 0, - "additional1": 1, // will be removed; `additionalProperties` == false - "bar": { - "baz": "abc", - "additional2": 2 // will NOT be removed; `additionalProperties` != false - }, -} - -var validate = ajv.compile(schema); - -console.log(validate(data)); // true -console.log(data); // { "foo": 0, "bar": { "baz": "abc", "additional2": 2 } -``` - -If `removeAdditional` option in the example above were `"all"` then both `additional1` and `additional2` properties would have been removed. - -If the option were `"failing"` then property `additional1` would have been removed regardless of its value and property `additional2` would have been removed only if its value were failing the schema in the inner `additionalProperties` (so in the example above it would have stayed because it passes the schema, but any non-number would have been removed). - -__Please note__: If you use `removeAdditional` option with `additionalProperties` keyword inside `anyOf`/`oneOf` keywords your validation can fail with this schema, for example: - -```json -{ - "type": "object", - "oneOf": [ - { - "properties": { - "foo": { "type": "string" } - }, - "required": [ "foo" ], - "additionalProperties": false - }, - { - "properties": { - "bar": { "type": "integer" } - }, - "required": [ "bar" ], - "additionalProperties": false - } - ] -} -``` - -The intention of the schema above is to allow objects with either the string property "foo" or the integer property "bar", but not with both and not with any other properties. - -With the option `removeAdditional: true` the validation will pass for the object `{ "foo": "abc"}` but will fail for the object `{"bar": 1}`. It happens because while the first subschema in `oneOf` is validated, the property `bar` is removed because it is an additional property according to the standard (because it is not included in `properties` keyword in the same schema). - -While this behaviour is unexpected (issues [#129](https://github.com/ajv-validator/ajv/issues/129), [#134](https://github.com/ajv-validator/ajv/issues/134)), it is correct. To have the expected behaviour (both objects are allowed and additional properties are removed) the schema has to be refactored in this way: - -```json -{ - "type": "object", - "properties": { - "foo": { "type": "string" }, - "bar": { "type": "integer" } - }, - "additionalProperties": false, - "oneOf": [ - { "required": [ "foo" ] }, - { "required": [ "bar" ] } - ] -} -``` - -The schema above is also more efficient - it will compile into a faster function. - - -## Assigning defaults - -With [option `useDefaults`](#options) Ajv will assign values from `default` keyword in the schemas of `properties` and `items` (when it is the array of schemas) to the missing properties and items. - -With the option value `"empty"` properties and items equal to `null` or `""` (empty string) will be considered missing and assigned defaults. - -This option modifies original data. - -__Please note__: the default value is inserted in the generated validation code as a literal, so the value inserted in the data will be the deep clone of the default in the schema. - - -Example 1 (`default` in `properties`): - -```javascript -var ajv = new Ajv({ useDefaults: true }); -var schema = { - "type": "object", - "properties": { - "foo": { "type": "number" }, - "bar": { "type": "string", "default": "baz" } - }, - "required": [ "foo", "bar" ] -}; - -var data = { "foo": 1 }; - -var validate = ajv.compile(schema); - -console.log(validate(data)); // true -console.log(data); // { "foo": 1, "bar": "baz" } -``` - -Example 2 (`default` in `items`): - -```javascript -var schema = { - "type": "array", - "items": [ - { "type": "number" }, - { "type": "string", "default": "foo" } - ] -} - -var data = [ 1 ]; - -var validate = ajv.compile(schema); - -console.log(validate(data)); // true -console.log(data); // [ 1, "foo" ] -``` - -`default` keywords in other cases are ignored: - -- not in `properties` or `items` subschemas -- in schemas inside `anyOf`, `oneOf` and `not` (see [#42](https://github.com/ajv-validator/ajv/issues/42)) -- in `if` subschema of `switch` keyword -- in schemas generated by custom macro keywords - -The [`strictDefaults` option](#options) customizes Ajv's behavior for the defaults that Ajv ignores (`true` raises an error, and `"log"` outputs a warning). - - -## Coercing data types - -When you are validating user inputs all your data properties are usually strings. The option `coerceTypes` allows you to have your data types coerced to the types specified in your schema `type` keywords, both to pass the validation and to use the correctly typed data afterwards. - -This option modifies original data. - -__Please note__: if you pass a scalar value to the validating function its type will be coerced and it will pass the validation, but the value of the variable you pass won't be updated because scalars are passed by value. - - -Example 1: - -```javascript -var ajv = new Ajv({ coerceTypes: true }); -var schema = { - "type": "object", - "properties": { - "foo": { "type": "number" }, - "bar": { "type": "boolean" } - }, - "required": [ "foo", "bar" ] -}; - -var data = { "foo": "1", "bar": "false" }; - -var validate = ajv.compile(schema); - -console.log(validate(data)); // true -console.log(data); // { "foo": 1, "bar": false } -``` - -Example 2 (array coercions): - -```javascript -var ajv = new Ajv({ coerceTypes: 'array' }); -var schema = { - "properties": { - "foo": { "type": "array", "items": { "type": "number" } }, - "bar": { "type": "boolean" } - } -}; - -var data = { "foo": "1", "bar": ["false"] }; - -var validate = ajv.compile(schema); - -console.log(validate(data)); // true -console.log(data); // { "foo": [1], "bar": false } -``` - -The coercion rules, as you can see from the example, are different from JavaScript both to validate user input as expected and to have the coercion reversible (to correctly validate cases where different types are defined in subschemas of "anyOf" and other compound keywords). - -See [Coercion rules](https://github.com/ajv-validator/ajv/blob/master/COERCION.md) for details. - - -## API - -##### new Ajv(Object options) -> Object - -Create Ajv instance. - - -##### .compile(Object schema) -> Function<Object data> - -Generate validating function and cache the compiled schema for future use. - -Validating function returns a boolean value. This function has properties `errors` and `schema`. Errors encountered during the last validation are assigned to `errors` property (it is assigned `null` if there was no errors). `schema` property contains the reference to the original schema. - -The schema passed to this method will be validated against meta-schema unless `validateSchema` option is false. If schema is invalid, an error will be thrown. See [options](#options). - - -##### .compileAsync(Object schema [, Boolean meta] [, Function callback]) -> Promise - -Asynchronous version of `compile` method that loads missing remote schemas using asynchronous function in `options.loadSchema`. This function returns a Promise that resolves to a validation function. An optional callback passed to `compileAsync` will be called with 2 parameters: error (or null) and validating function. The returned promise will reject (and the callback will be called with an error) when: - -- missing schema can't be loaded (`loadSchema` returns a Promise that rejects). -- a schema containing a missing reference is loaded, but the reference cannot be resolved. -- schema (or some loaded/referenced schema) is invalid. - -The function compiles schema and loads the first missing schema (or meta-schema) until all missing schemas are loaded. - -You can asynchronously compile meta-schema by passing `true` as the second parameter. - -See example in [Asynchronous compilation](#asynchronous-schema-compilation). - - -##### .validate(Object schema|String key|String ref, data) -> Boolean - -Validate data using passed schema (it will be compiled and cached). - -Instead of the schema you can use the key that was previously passed to `addSchema`, the schema id if it was present in the schema or any previously resolved reference. - -Validation errors will be available in the `errors` property of Ajv instance (`null` if there were no errors). - -__Please note__: every time this method is called the errors are overwritten so you need to copy them to another variable if you want to use them later. - -If the schema is asynchronous (has `$async` keyword on the top level) this method returns a Promise. See [Asynchronous validation](#asynchronous-validation). - - -##### .addSchema(Array<Object>|Object schema [, String key]) -> Ajv - -Add schema(s) to validator instance. This method does not compile schemas (but it still validates them). Because of that dependencies can be added in any order and circular dependencies are supported. It also prevents unnecessary compilation of schemas that are containers for other schemas but not used as a whole. - -Array of schemas can be passed (schemas should have ids), the second parameter will be ignored. - -Key can be passed that can be used to reference the schema and will be used as the schema id if there is no id inside the schema. If the key is not passed, the schema id will be used as the key. - - -Once the schema is added, it (and all the references inside it) can be referenced in other schemas and used to validate data. - -Although `addSchema` does not compile schemas, explicit compilation is not required - the schema will be compiled when it is used first time. - -By default the schema is validated against meta-schema before it is added, and if the schema does not pass validation the exception is thrown. This behaviour is controlled by `validateSchema` option. - -__Please note__: Ajv uses the [method chaining syntax](https://en.wikipedia.org/wiki/Method_chaining) for all methods with the prefix `add*` and `remove*`. -This allows you to do nice things like the following. - -```javascript -var validate = new Ajv().addSchema(schema).addFormat(name, regex).getSchema(uri); -``` - -##### .addMetaSchema(Array<Object>|Object schema [, String key]) -> Ajv - -Adds meta schema(s) that can be used to validate other schemas. That function should be used instead of `addSchema` because there may be instance options that would compile a meta schema incorrectly (at the moment it is `removeAdditional` option). - -There is no need to explicitly add draft-07 meta schema (http://json-schema.org/draft-07/schema) - it is added by default, unless option `meta` is set to `false`. You only need to use it if you have a changed meta-schema that you want to use to validate your schemas. See `validateSchema`. - - -##### .validateSchema(Object schema) -> Boolean - -Validates schema. This method should be used to validate schemas rather than `validate` due to the inconsistency of `uri` format in JSON Schema standard. - -By default this method is called automatically when the schema is added, so you rarely need to use it directly. - -If schema doesn't have `$schema` property, it is validated against draft 6 meta-schema (option `meta` should not be false). - -If schema has `$schema` property, then the schema with this id (that should be previously added) is used to validate passed schema. - -Errors will be available at `ajv.errors`. - - -##### .getSchema(String key) -> Function<Object data> - -Retrieve compiled schema previously added with `addSchema` by the key passed to `addSchema` or by its full reference (id). The returned validating function has `schema` property with the reference to the original schema. - - -##### .removeSchema([Object schema|String key|String ref|RegExp pattern]) -> Ajv - -Remove added/cached schema. Even if schema is referenced by other schemas it can be safely removed as dependent schemas have local references. - -Schema can be removed using: -- key passed to `addSchema` -- it's full reference (id) -- RegExp that should match schema id or key (meta-schemas won't be removed) -- actual schema object that will be stable-stringified to remove schema from cache - -If no parameter is passed all schemas but meta-schemas will be removed and the cache will be cleared. - - -##### .addFormat(String name, String|RegExp|Function|Object format) -> Ajv - -Add custom format to validate strings or numbers. It can also be used to replace pre-defined formats for Ajv instance. - -Strings are converted to RegExp. - -Function should return validation result as `true` or `false`. - -If object is passed it should have properties `validate`, `compare` and `async`: - -- _validate_: a string, RegExp or a function as described above. -- _compare_: an optional comparison function that accepts two strings and compares them according to the format meaning. This function is used with keywords `formatMaximum`/`formatMinimum` (defined in [ajv-keywords](https://github.com/ajv-validator/ajv-keywords) package). It should return `1` if the first value is bigger than the second value, `-1` if it is smaller and `0` if it is equal. -- _async_: an optional `true` value if `validate` is an asynchronous function; in this case it should return a promise that resolves with a value `true` or `false`. -- _type_: an optional type of data that the format applies to. It can be `"string"` (default) or `"number"` (see https://github.com/ajv-validator/ajv/issues/291#issuecomment-259923858). If the type of data is different, the validation will pass. - -Custom formats can be also added via `formats` option. - - -##### .addKeyword(String keyword, Object definition) -> Ajv - -Add custom validation keyword to Ajv instance. - -Keyword should be different from all standard JSON Schema keywords and different from previously defined keywords. There is no way to redefine keywords or to remove keyword definition from the instance. - -Keyword must start with a letter, `_` or `$`, and may continue with letters, numbers, `_`, `$`, or `-`. -It is recommended to use an application-specific prefix for keywords to avoid current and future name collisions. - -Example Keywords: -- `"xyz-example"`: valid, and uses prefix for the xyz project to avoid name collisions. -- `"example"`: valid, but not recommended as it could collide with future versions of JSON Schema etc. -- `"3-example"`: invalid as numbers are not allowed to be the first character in a keyword - -Keyword definition is an object with the following properties: - -- _type_: optional string or array of strings with data type(s) that the keyword applies to. If not present, the keyword will apply to all types. -- _validate_: validating function -- _compile_: compiling function -- _macro_: macro function -- _inline_: compiling function that returns code (as string) -- _schema_: an optional `false` value used with "validate" keyword to not pass schema -- _metaSchema_: an optional meta-schema for keyword schema -- _dependencies_: an optional list of properties that must be present in the parent schema - it will be checked during schema compilation -- _modifying_: `true` MUST be passed if keyword modifies data -- _statements_: `true` can be passed in case inline keyword generates statements (as opposed to expression) -- _valid_: pass `true`/`false` to pre-define validation result, the result returned from validation function will be ignored. This option cannot be used with macro keywords. -- _$data_: an optional `true` value to support [$data reference](#data-reference) as the value of custom keyword. The reference will be resolved at validation time. If the keyword has meta-schema it would be extended to allow $data and it will be used to validate the resolved value. Supporting $data reference requires that keyword has validating function (as the only option or in addition to compile, macro or inline function). -- _async_: an optional `true` value if the validation function is asynchronous (whether it is compiled or passed in _validate_ property); in this case it should return a promise that resolves with a value `true` or `false`. This option is ignored in case of "macro" and "inline" keywords. -- _errors_: an optional boolean or string `"full"` indicating whether keyword returns errors. If this property is not set Ajv will determine if the errors were set in case of failed validation. - -_compile_, _macro_ and _inline_ are mutually exclusive, only one should be used at a time. _validate_ can be used separately or in addition to them to support $data reference. - -__Please note__: If the keyword is validating data type that is different from the type(s) in its definition, the validation function will not be called (and expanded macro will not be used), so there is no need to check for data type inside validation function or inside schema returned by macro function (unless you want to enforce a specific type and for some reason do not want to use a separate `type` keyword for that). In the same way as standard keywords work, if the keyword does not apply to the data type being validated, the validation of this keyword will succeed. - -See [Defining custom keywords](#defining-custom-keywords) for more details. - - -##### .getKeyword(String keyword) -> Object|Boolean - -Returns custom keyword definition, `true` for pre-defined keywords and `false` if the keyword is unknown. - - -##### .removeKeyword(String keyword) -> Ajv - -Removes custom or pre-defined keyword so you can redefine them. - -While this method can be used to extend pre-defined keywords, it can also be used to completely change their meaning - it may lead to unexpected results. - -__Please note__: schemas compiled before the keyword is removed will continue to work without changes. To recompile schemas use `removeSchema` method and compile them again. - - -##### .errorsText([Array<Object> errors [, Object options]]) -> String - -Returns the text with all errors in a String. - -Options can have properties `separator` (string used to separate errors, ", " by default) and `dataVar` (the variable name that dataPaths are prefixed with, "data" by default). - - -## Options - -Defaults: - -```javascript -{ - // validation and reporting options: - $data: false, - allErrors: false, - verbose: false, - $comment: false, // NEW in Ajv version 6.0 - jsonPointers: false, - uniqueItems: true, - unicode: true, - nullable: false, - format: 'fast', - formats: {}, - unknownFormats: true, - schemas: {}, - logger: undefined, - // referenced schema options: - schemaId: '$id', - missingRefs: true, - extendRefs: 'ignore', // recommended 'fail' - loadSchema: undefined, // function(uri: string): Promise {} - // options to modify validated data: - removeAdditional: false, - useDefaults: false, - coerceTypes: false, - // strict mode options - strictDefaults: false, - strictKeywords: false, - strictNumbers: false, - // asynchronous validation options: - transpile: undefined, // requires ajv-async package - // advanced options: - meta: true, - validateSchema: true, - addUsedSchema: true, - inlineRefs: true, - passContext: false, - loopRequired: Infinity, - ownProperties: false, - multipleOfPrecision: false, - errorDataPath: 'object', // deprecated - messages: true, - sourceCode: false, - processCode: undefined, // function (str: string, schema: object): string {} - cache: new Cache, - serialize: undefined -} -``` - -##### Validation and reporting options - -- _$data_: support [$data references](#data-reference). Draft 6 meta-schema that is added by default will be extended to allow them. If you want to use another meta-schema you need to use $dataMetaSchema method to add support for $data reference. See [API](#api). -- _allErrors_: check all rules collecting all errors. Default is to return after the first error. -- _verbose_: include the reference to the part of the schema (`schema` and `parentSchema`) and validated data in errors (false by default). -- _$comment_ (NEW in Ajv version 6.0): log or pass the value of `$comment` keyword to a function. Option values: - - `false` (default): ignore $comment keyword. - - `true`: log the keyword value to console. - - function: pass the keyword value, its schema path and root schema to the specified function -- _jsonPointers_: set `dataPath` property of errors using [JSON Pointers](https://tools.ietf.org/html/rfc6901) instead of JavaScript property access notation. -- _uniqueItems_: validate `uniqueItems` keyword (true by default). -- _unicode_: calculate correct length of strings with unicode pairs (true by default). Pass `false` to use `.length` of strings that is faster, but gives "incorrect" lengths of strings with unicode pairs - each unicode pair is counted as two characters. -- _nullable_: support keyword "nullable" from [Open API 3 specification](https://swagger.io/docs/specification/data-models/data-types/). -- _format_: formats validation mode. Option values: - - `"fast"` (default) - simplified and fast validation (see [Formats](#formats) for details of which formats are available and affected by this option). - - `"full"` - more restrictive and slow validation. E.g., 25:00:00 and 2015/14/33 will be invalid time and date in 'full' mode but it will be valid in 'fast' mode. - - `false` - ignore all format keywords. -- _formats_: an object with custom formats. Keys and values will be passed to `addFormat` method. -- _keywords_: an object with custom keywords. Keys and values will be passed to `addKeyword` method. -- _unknownFormats_: handling of unknown formats. Option values: - - `true` (default) - if an unknown format is encountered the exception is thrown during schema compilation. If `format` keyword value is [$data reference](#data-reference) and it is unknown the validation will fail. - - `[String]` - an array of unknown format names that will be ignored. This option can be used to allow usage of third party schemas with format(s) for which you don't have definitions, but still fail if another unknown format is used. If `format` keyword value is [$data reference](#data-reference) and it is not in this array the validation will fail. - - `"ignore"` - to log warning during schema compilation and always pass validation (the default behaviour in versions before 5.0.0). This option is not recommended, as it allows to mistype format name and it won't be validated without any error message. This behaviour is required by JSON Schema specification. -- _schemas_: an array or object of schemas that will be added to the instance. In case you pass the array the schemas must have IDs in them. When the object is passed the method `addSchema(value, key)` will be called for each schema in this object. -- _logger_: sets the logging method. Default is the global `console` object that should have methods `log`, `warn` and `error`. See [Error logging](#error-logging). Option values: - - custom logger - it should have methods `log`, `warn` and `error`. If any of these methods is missing an exception will be thrown. - - `false` - logging is disabled. - - -##### Referenced schema options - -- _schemaId_: this option defines which keywords are used as schema URI. Option value: - - `"$id"` (default) - only use `$id` keyword as schema URI (as specified in JSON Schema draft-06/07), ignore `id` keyword (if it is present a warning will be logged). - - `"id"` - only use `id` keyword as schema URI (as specified in JSON Schema draft-04), ignore `$id` keyword (if it is present a warning will be logged). - - `"auto"` - use both `$id` and `id` keywords as schema URI. If both are present (in the same schema object) and different the exception will be thrown during schema compilation. -- _missingRefs_: handling of missing referenced schemas. Option values: - - `true` (default) - if the reference cannot be resolved during compilation the exception is thrown. The thrown error has properties `missingRef` (with hash fragment) and `missingSchema` (without it). Both properties are resolved relative to the current base id (usually schema id, unless it was substituted). - - `"ignore"` - to log error during compilation and always pass validation. - - `"fail"` - to log error and successfully compile schema but fail validation if this rule is checked. -- _extendRefs_: validation of other keywords when `$ref` is present in the schema. Option values: - - `"ignore"` (default) - when `$ref` is used other keywords are ignored (as per [JSON Reference](https://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03#section-3) standard). A warning will be logged during the schema compilation. - - `"fail"` (recommended) - if other validation keywords are used together with `$ref` the exception will be thrown when the schema is compiled. This option is recommended to make sure schema has no keywords that are ignored, which can be confusing. - - `true` - validate all keywords in the schemas with `$ref` (the default behaviour in versions before 5.0.0). -- _loadSchema_: asynchronous function that will be used to load remote schemas when `compileAsync` [method](#api-compileAsync) is used and some reference is missing (option `missingRefs` should NOT be 'fail' or 'ignore'). This function should accept remote schema uri as a parameter and return a Promise that resolves to a schema. See example in [Asynchronous compilation](#asynchronous-schema-compilation). - - -##### Options to modify validated data - -- _removeAdditional_: remove additional properties - see example in [Filtering data](#filtering-data). This option is not used if schema is added with `addMetaSchema` method. Option values: - - `false` (default) - not to remove additional properties - - `"all"` - all additional properties are removed, regardless of `additionalProperties` keyword in schema (and no validation is made for them). - - `true` - only additional properties with `additionalProperties` keyword equal to `false` are removed. - - `"failing"` - additional properties that fail schema validation will be removed (where `additionalProperties` keyword is `false` or schema). -- _useDefaults_: replace missing or undefined properties and items with the values from corresponding `default` keywords. Default behaviour is to ignore `default` keywords. This option is not used if schema is added with `addMetaSchema` method. See examples in [Assigning defaults](#assigning-defaults). Option values: - - `false` (default) - do not use defaults - - `true` - insert defaults by value (object literal is used). - - `"empty"` - in addition to missing or undefined, use defaults for properties and items that are equal to `null` or `""` (an empty string). - - `"shared"` (deprecated) - insert defaults by reference. If the default is an object, it will be shared by all instances of validated data. If you modify the inserted default in the validated data, it will be modified in the schema as well. -- _coerceTypes_: change data type of data to match `type` keyword. See the example in [Coercing data types](#coercing-data-types) and [coercion rules](https://github.com/ajv-validator/ajv/blob/master/COERCION.md). Option values: - - `false` (default) - no type coercion. - - `true` - coerce scalar data types. - - `"array"` - in addition to coercions between scalar types, coerce scalar data to an array with one element and vice versa (as required by the schema). - - -##### Strict mode options - -- _strictDefaults_: report ignored `default` keywords in schemas. Option values: - - `false` (default) - ignored defaults are not reported - - `true` - if an ignored default is present, throw an error - - `"log"` - if an ignored default is present, log warning -- _strictKeywords_: report unknown keywords in schemas. Option values: - - `false` (default) - unknown keywords are not reported - - `true` - if an unknown keyword is present, throw an error - - `"log"` - if an unknown keyword is present, log warning -- _strictNumbers_: validate numbers strictly, failing validation for NaN and Infinity. Option values: - - `false` (default) - NaN or Infinity will pass validation for numeric types - - `true` - NaN or Infinity will not pass validation for numeric types - -##### Asynchronous validation options - -- _transpile_: Requires [ajv-async](https://github.com/ajv-validator/ajv-async) package. It determines whether Ajv transpiles compiled asynchronous validation function. Option values: - - `undefined` (default) - transpile with [nodent](https://github.com/MatAtBread/nodent) if async functions are not supported. - - `true` - always transpile with nodent. - - `false` - do not transpile; if async functions are not supported an exception will be thrown. - - -##### Advanced options - -- _meta_: add [meta-schema](http://json-schema.org/documentation.html) so it can be used by other schemas (true by default). If an object is passed, it will be used as the default meta-schema for schemas that have no `$schema` keyword. This default meta-schema MUST have `$schema` keyword. -- _validateSchema_: validate added/compiled schemas against meta-schema (true by default). `$schema` property in the schema can be http://json-schema.org/draft-07/schema or absent (draft-07 meta-schema will be used) or can be a reference to the schema previously added with `addMetaSchema` method. Option values: - - `true` (default) - if the validation fails, throw the exception. - - `"log"` - if the validation fails, log error. - - `false` - skip schema validation. -- _addUsedSchema_: by default methods `compile` and `validate` add schemas to the instance if they have `$id` (or `id`) property that doesn't start with "#". If `$id` is present and it is not unique the exception will be thrown. Set this option to `false` to skip adding schemas to the instance and the `$id` uniqueness check when these methods are used. This option does not affect `addSchema` method. -- _inlineRefs_: Affects compilation of referenced schemas. Option values: - - `true` (default) - the referenced schemas that don't have refs in them are inlined, regardless of their size - that substantially improves performance at the cost of the bigger size of compiled schema functions. - - `false` - to not inline referenced schemas (they will be compiled as separate functions). - - integer number - to limit the maximum number of keywords of the schema that will be inlined. -- _passContext_: pass validation context to custom keyword functions. If this option is `true` and you pass some context to the compiled validation function with `validate.call(context, data)`, the `context` will be available as `this` in your custom keywords. By default `this` is Ajv instance. -- _loopRequired_: by default `required` keyword is compiled into a single expression (or a sequence of statements in `allErrors` mode). In case of a very large number of properties in this keyword it may result in a very big validation function. Pass integer to set the number of properties above which `required` keyword will be validated in a loop - smaller validation function size but also worse performance. -- _ownProperties_: by default Ajv iterates over all enumerable object properties; when this option is `true` only own enumerable object properties (i.e. found directly on the object rather than on its prototype) are iterated. Contributed by @mbroadst. -- _multipleOfPrecision_: by default `multipleOf` keyword is validated by comparing the result of division with parseInt() of that result. It works for dividers that are bigger than 1. For small dividers such as 0.01 the result of the division is usually not integer (even when it should be integer, see issue [#84](https://github.com/ajv-validator/ajv/issues/84)). If you need to use fractional dividers set this option to some positive integer N to have `multipleOf` validated using this formula: `Math.abs(Math.round(division) - division) < 1e-N` (it is slower but allows for float arithmetics deviations). -- _errorDataPath_ (deprecated): set `dataPath` to point to 'object' (default) or to 'property' when validating keywords `required`, `additionalProperties` and `dependencies`. -- _messages_: Include human-readable messages in errors. `true` by default. `false` can be passed when custom messages are used (e.g. with [ajv-i18n](https://github.com/ajv-validator/ajv-i18n)). -- _sourceCode_: add `sourceCode` property to validating function (for debugging; this code can be different from the result of toString call). -- _processCode_: an optional function to process generated code before it is passed to Function constructor. It can be used to either beautify (the validating function is generated without line-breaks) or to transpile code. Starting from version 5.0.0 this option replaced options: - - `beautify` that formatted the generated function using [js-beautify](https://github.com/beautify-web/js-beautify). If you want to beautify the generated code pass a function calling `require('js-beautify').js_beautify` as `processCode: code => js_beautify(code)`. - - `transpile` that transpiled asynchronous validation function. You can still use `transpile` option with [ajv-async](https://github.com/ajv-validator/ajv-async) package. See [Asynchronous validation](#asynchronous-validation) for more information. -- _cache_: an optional instance of cache to store compiled schemas using stable-stringified schema as a key. For example, set-associative cache [sacjs](https://github.com/epoberezkin/sacjs) can be used. If not passed then a simple hash is used which is good enough for the common use case (a limited number of statically defined schemas). Cache should have methods `put(key, value)`, `get(key)`, `del(key)` and `clear()`. -- _serialize_: an optional function to serialize schema to cache key. Pass `false` to use schema itself as a key (e.g., if WeakMap used as a cache). By default [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used. - - -## Validation errors - -In case of validation failure, Ajv assigns the array of errors to `errors` property of validation function (or to `errors` property of Ajv instance when `validate` or `validateSchema` methods were called). In case of [asynchronous validation](#asynchronous-validation), the returned promise is rejected with exception `Ajv.ValidationError` that has `errors` property. - - -### Error objects - -Each error is an object with the following properties: - -- _keyword_: validation keyword. -- _dataPath_: the path to the part of the data that was validated. By default `dataPath` uses JavaScript property access notation (e.g., `".prop[1].subProp"`). When the option `jsonPointers` is true (see [Options](#options)) `dataPath` will be set using JSON pointer standard (e.g., `"/prop/1/subProp"`). -- _schemaPath_: the path (JSON-pointer as a URI fragment) to the schema of the keyword that failed validation. -- _params_: the object with the additional information about error that can be used to create custom error messages (e.g., using [ajv-i18n](https://github.com/ajv-validator/ajv-i18n) package). See below for parameters set by all keywords. -- _message_: the standard error message (can be excluded with option `messages` set to false). -- _schema_: the schema of the keyword (added with `verbose` option). -- _parentSchema_: the schema containing the keyword (added with `verbose` option) -- _data_: the data validated by the keyword (added with `verbose` option). - -__Please note__: `propertyNames` keyword schema validation errors have an additional property `propertyName`, `dataPath` points to the object. After schema validation for each property name, if it is invalid an additional error is added with the property `keyword` equal to `"propertyNames"`. - - -### Error parameters - -Properties of `params` object in errors depend on the keyword that failed validation. - -- `maxItems`, `minItems`, `maxLength`, `minLength`, `maxProperties`, `minProperties` - property `limit` (number, the schema of the keyword). -- `additionalItems` - property `limit` (the maximum number of allowed items in case when `items` keyword is an array of schemas and `additionalItems` is false). -- `additionalProperties` - property `additionalProperty` (the property not used in `properties` and `patternProperties` keywords). -- `dependencies` - properties: - - `property` (dependent property), - - `missingProperty` (required missing dependency - only the first one is reported currently) - - `deps` (required dependencies, comma separated list as a string), - - `depsCount` (the number of required dependencies). -- `format` - property `format` (the schema of the keyword). -- `maximum`, `minimum` - properties: - - `limit` (number, the schema of the keyword), - - `exclusive` (boolean, the schema of `exclusiveMaximum` or `exclusiveMinimum`), - - `comparison` (string, comparison operation to compare the data to the limit, with the data on the left and the limit on the right; can be "<", "<=", ">", ">=") -- `multipleOf` - property `multipleOf` (the schema of the keyword) -- `pattern` - property `pattern` (the schema of the keyword) -- `required` - property `missingProperty` (required property that is missing). -- `propertyNames` - property `propertyName` (an invalid property name). -- `patternRequired` (in ajv-keywords) - property `missingPattern` (required pattern that did not match any property). -- `type` - property `type` (required type(s), a string, can be a comma-separated list) -- `uniqueItems` - properties `i` and `j` (indices of duplicate items). -- `const` - property `allowedValue` pointing to the value (the schema of the keyword). -- `enum` - property `allowedValues` pointing to the array of values (the schema of the keyword). -- `$ref` - property `ref` with the referenced schema URI. -- `oneOf` - property `passingSchemas` (array of indices of passing schemas, null if no schema passes). -- custom keywords (in case keyword definition doesn't create errors) - property `keyword` (the keyword name). - - -### Error logging - -Using the `logger` option when initiallizing Ajv will allow you to define custom logging. Here you can build upon the exisiting logging. The use of other logging packages is supported as long as the package or its associated wrapper exposes the required methods. If any of the required methods are missing an exception will be thrown. -- **Required Methods**: `log`, `warn`, `error` - -```javascript -var otherLogger = new OtherLogger(); -var ajv = new Ajv({ - logger: { - log: console.log.bind(console), - warn: function warn() { - otherLogger.logWarn.apply(otherLogger, arguments); - }, - error: function error() { - otherLogger.logError.apply(otherLogger, arguments); - console.error.apply(console, arguments); - } - } -}); -``` - - -## Plugins - -Ajv can be extended with plugins that add custom keywords, formats or functions to process generated code. When such plugin is published as npm package it is recommended that it follows these conventions: - -- it exports a function -- this function accepts ajv instance as the first parameter and returns the same instance to allow chaining -- this function can accept an optional configuration as the second parameter - -If you have published a useful plugin please submit a PR to add it to the next section. - - -## Related packages - -- [ajv-async](https://github.com/ajv-validator/ajv-async) - plugin to configure async validation mode -- [ajv-bsontype](https://github.com/BoLaMN/ajv-bsontype) - plugin to validate mongodb's bsonType formats -- [ajv-cli](https://github.com/jessedc/ajv-cli) - command line interface -- [ajv-errors](https://github.com/ajv-validator/ajv-errors) - plugin for custom error messages -- [ajv-i18n](https://github.com/ajv-validator/ajv-i18n) - internationalised error messages -- [ajv-istanbul](https://github.com/ajv-validator/ajv-istanbul) - plugin to instrument generated validation code to measure test coverage of your schemas -- [ajv-keywords](https://github.com/ajv-validator/ajv-keywords) - plugin with custom validation keywords (select, typeof, etc.) -- [ajv-merge-patch](https://github.com/ajv-validator/ajv-merge-patch) - plugin with keywords $merge and $patch -- [ajv-pack](https://github.com/ajv-validator/ajv-pack) - produces a compact module exporting validation functions -- [ajv-formats-draft2019](https://github.com/luzlab/ajv-formats-draft2019) - format validators for draft2019 that aren't already included in ajv (ie. `idn-hostname`, `idn-email`, `iri`, `iri-reference` and `duration`). - -## Some packages using Ajv - -- [webpack](https://github.com/webpack/webpack) - a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser -- [jsonscript-js](https://github.com/JSONScript/jsonscript-js) - the interpreter for [JSONScript](http://www.jsonscript.org) - scripted processing of existing endpoints and services -- [osprey-method-handler](https://github.com/mulesoft-labs/osprey-method-handler) - Express middleware for validating requests and responses based on a RAML method object, used in [osprey](https://github.com/mulesoft/osprey) - validating API proxy generated from a RAML definition -- [har-validator](https://github.com/ahmadnassri/har-validator) - HTTP Archive (HAR) validator -- [jsoneditor](https://github.com/josdejong/jsoneditor) - a web-based tool to view, edit, format, and validate JSON http://jsoneditoronline.org -- [JSON Schema Lint](https://github.com/nickcmaynard/jsonschemalint) - a web tool to validate JSON/YAML document against a single JSON Schema http://jsonschemalint.com -- [objection](https://github.com/vincit/objection.js) - SQL-friendly ORM for Node.js -- [table](https://github.com/gajus/table) - formats data into a string table -- [ripple-lib](https://github.com/ripple/ripple-lib) - a JavaScript API for interacting with [Ripple](https://ripple.com) in Node.js and the browser -- [restbase](https://github.com/wikimedia/restbase) - distributed storage with REST API & dispatcher for backend services built to provide a low-latency & high-throughput API for Wikipedia / Wikimedia content -- [hippie-swagger](https://github.com/CacheControl/hippie-swagger) - [Hippie](https://github.com/vesln/hippie) wrapper that provides end to end API testing with swagger validation -- [react-form-controlled](https://github.com/seeden/react-form-controlled) - React controlled form components with validation -- [rabbitmq-schema](https://github.com/tjmehta/rabbitmq-schema) - a schema definition module for RabbitMQ graphs and messages -- [@query/schema](https://www.npmjs.com/package/@query/schema) - stream filtering with a URI-safe query syntax parsing to JSON Schema -- [chai-ajv-json-schema](https://github.com/peon374/chai-ajv-json-schema) - chai plugin to us JSON Schema with expect in mocha tests -- [grunt-jsonschema-ajv](https://github.com/SignpostMarv/grunt-jsonschema-ajv) - Grunt plugin for validating files against JSON Schema -- [extract-text-webpack-plugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) - extract text from bundle into a file -- [electron-builder](https://github.com/electron-userland/electron-builder) - a solution to package and build a ready for distribution Electron app -- [addons-linter](https://github.com/mozilla/addons-linter) - Mozilla Add-ons Linter -- [gh-pages-generator](https://github.com/epoberezkin/gh-pages-generator) - multi-page site generator converting markdown files to GitHub pages -- [ESLint](https://github.com/eslint/eslint) - the pluggable linting utility for JavaScript and JSX - - -## Tests - -``` -npm install -git submodule update --init -npm test -``` - -## Contributing - -All validation functions are generated using doT templates in [dot](https://github.com/ajv-validator/ajv/tree/master/lib/dot) folder. Templates are precompiled so doT is not a run-time dependency. - -`npm run build` - compiles templates to [dotjs](https://github.com/ajv-validator/ajv/tree/master/lib/dotjs) folder. - -`npm run watch` - automatically compiles templates when files in dot folder change - -Please see [Contributing guidelines](https://github.com/ajv-validator/ajv/blob/master/CONTRIBUTING.md) - - -## Changes history - -See https://github.com/ajv-validator/ajv/releases - -__Please note__: [Changes in version 7.0.0-beta](https://github.com/ajv-validator/ajv/releases/tag/v7.0.0-beta.0) - -[Version 6.0.0](https://github.com/ajv-validator/ajv/releases/tag/v6.0.0). - -## Code of conduct - -Please review and follow the [Code of conduct](https://github.com/ajv-validator/ajv/blob/master/CODE_OF_CONDUCT.md). - -Please report any unacceptable behaviour to ajv.validator@gmail.com - it will be reviewed by the project team. - - -## Open-source software support - -Ajv is a part of [Tidelift subscription](https://tidelift.com/subscription/pkg/npm-ajv?utm_source=npm-ajv&utm_medium=referral&utm_campaign=readme) - it provides a centralised support to open-source software users, in addition to the support provided by software maintainers. - - -## License - -[MIT](https://github.com/ajv-validator/ajv/blob/master/LICENSE) diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/ajv/package.json b/build_vtk_bundle/node_modules/worker-loader/node_modules/ajv/package.json deleted file mode 100644 index 559a933c..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/ajv/package.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "name": "ajv", - "version": "6.12.6", - "description": "Another JSON Schema Validator", - "main": "lib/ajv.js", - "typings": "lib/ajv.d.ts", - "files": [ - "lib/", - "dist/", - "scripts/", - "LICENSE", - ".tonic_example.js" - ], - "scripts": { - "eslint": "eslint lib/{compile/,}*.js spec/{**/,}*.js scripts --ignore-pattern spec/JSON-Schema-Test-Suite", - "jshint": "jshint lib/{compile/,}*.js", - "lint": "npm run jshint && npm run eslint", - "test-spec": "mocha spec/{**/,}*.spec.js -R spec", - "test-fast": "AJV_FAST_TEST=true npm run test-spec", - "test-debug": "npm run test-spec -- --inspect-brk", - "test-cov": "nyc npm run test-spec", - "test-ts": "tsc --target ES5 --noImplicitAny --noEmit spec/typescript/index.ts", - "bundle": "del-cli dist && node ./scripts/bundle.js . Ajv pure_getters", - "bundle-beautify": "node ./scripts/bundle.js js-beautify", - "build": "del-cli lib/dotjs/*.js \"!lib/dotjs/index.js\" && node scripts/compile-dots.js", - "test-karma": "karma start", - "test-browser": "del-cli .browser && npm run bundle && scripts/prepare-tests && npm run test-karma", - "test-all": "npm run test-cov && if-node-version 10 npm run test-browser", - "test": "npm run lint && npm run build && npm run test-all", - "prepublish": "npm run build && npm run bundle", - "watch": "watch \"npm run build\" ./lib/dot" - }, - "nyc": { - "exclude": [ - "**/spec/**", - "node_modules" - ], - "reporter": [ - "lcov", - "text-summary" - ] - }, - "repository": { - "type": "git", - "url": "https://github.com/ajv-validator/ajv.git" - }, - "keywords": [ - "JSON", - "schema", - "validator", - "validation", - "jsonschema", - "json-schema", - "json-schema-validator", - "json-schema-validation" - ], - "author": "Evgeny Poberezkin", - "license": "MIT", - "bugs": { - "url": "https://github.com/ajv-validator/ajv/issues" - }, - "homepage": "https://github.com/ajv-validator/ajv", - "tonicExampleFilename": ".tonic_example.js", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "devDependencies": { - "ajv-async": "^1.0.0", - "bluebird": "^3.5.3", - "brfs": "^2.0.0", - "browserify": "^16.2.0", - "chai": "^4.0.1", - "coveralls": "^3.0.1", - "del-cli": "^3.0.0", - "dot": "^1.0.3", - "eslint": "^7.3.1", - "gh-pages-generator": "^0.2.3", - "glob": "^7.0.0", - "if-node-version": "^1.0.0", - "js-beautify": "^1.7.3", - "jshint": "^2.10.2", - "json-schema-test": "^2.0.0", - "karma": "^5.0.0", - "karma-chrome-launcher": "^3.0.0", - "karma-mocha": "^2.0.0", - "karma-sauce-launcher": "^4.1.3", - "mocha": "^8.0.1", - "nyc": "^15.0.0", - "pre-commit": "^1.1.1", - "require-globify": "^1.3.0", - "typescript": "^3.9.5", - "uglify-js": "^3.6.9", - "watch": "^1.0.0" - }, - "collective": { - "type": "opencollective", - "url": "https://opencollective.com/ajv" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } -} diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/ajv/scripts/.eslintrc.yml b/build_vtk_bundle/node_modules/worker-loader/node_modules/ajv/scripts/.eslintrc.yml deleted file mode 100644 index 493d7d31..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/ajv/scripts/.eslintrc.yml +++ /dev/null @@ -1,3 +0,0 @@ -rules: - no-console: 0 - no-empty: [2, allowEmptyCatch: true] diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/ajv/scripts/bundle.js b/build_vtk_bundle/node_modules/worker-loader/node_modules/ajv/scripts/bundle.js deleted file mode 100644 index e381a762..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/ajv/scripts/bundle.js +++ /dev/null @@ -1,61 +0,0 @@ -'use strict'; - -var fs = require('fs') - , path = require('path') - , browserify = require('browserify') - , uglify = require('uglify-js'); - -var pkg = process.argv[2] - , standalone = process.argv[3] - , compress = process.argv[4]; - -var packageDir = path.join(__dirname, '..'); -if (pkg != '.') packageDir = path.join(packageDir, 'node_modules', pkg); - -var json = require(path.join(packageDir, 'package.json')); - -var distDir = path.join(__dirname, '..', 'dist'); -if (!fs.existsSync(distDir)) fs.mkdirSync(distDir); - -var bOpts = {}; -if (standalone) bOpts.standalone = standalone; - -browserify(bOpts) -.require(path.join(packageDir, json.main), {expose: json.name}) -.bundle(function (err, buf) { - if (err) { - console.error('browserify error:', err); - process.exit(1); - } - - var outputFile = path.join(distDir, json.name); - var uglifyOpts = { - warnings: true, - compress: {}, - output: { - preamble: '/* ' + json.name + ' ' + json.version + ': ' + json.description + ' */' - } - }; - if (compress) { - var compressOpts = compress.split(','); - for (var i=0, il = compressOpts.length; i ../ajv-dist/bower.json - cd ../ajv-dist - - if [[ `git status --porcelain` ]]; then - echo "Changes detected. Updating master branch..." - git add -A - git commit -m "updated by travis build #$TRAVIS_BUILD_NUMBER" - git push --quiet origin master > /dev/null 2>&1 - fi - - echo "Publishing tag..." - - git tag $TRAVIS_TAG - git push --tags > /dev/null 2>&1 - - echo "Done" -fi diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/ajv/scripts/travis-gh-pages b/build_vtk_bundle/node_modules/worker-loader/node_modules/ajv/scripts/travis-gh-pages deleted file mode 100644 index b3d4f3d0..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/ajv/scripts/travis-gh-pages +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env bash - -set -e - -if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" && $TRAVIS_JOB_NUMBER =~ ".3" ]]; then - git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qE '\.md$|^LICENSE$|travis-gh-pages$' && { - rm -rf ../gh-pages - git clone -b gh-pages --single-branch https://${GITHUB_TOKEN}@github.com/ajv-validator/ajv.git ../gh-pages - mkdir -p ../gh-pages/_source - cp *.md ../gh-pages/_source - cp LICENSE ../gh-pages/_source - currentDir=$(pwd) - cd ../gh-pages - $currentDir/node_modules/.bin/gh-pages-generator - # remove logo from README - sed -i -E "s/]+ajv_logo[^>]+>//" index.md - git config user.email "$GIT_USER_EMAIL" - git config user.name "$GIT_USER_NAME" - git add . - git commit -am "updated by travis build #$TRAVIS_BUILD_NUMBER" - git push --quiet origin gh-pages > /dev/null 2>&1 - } -fi diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/json-schema-traverse/.eslintrc.yml b/build_vtk_bundle/node_modules/worker-loader/node_modules/json-schema-traverse/.eslintrc.yml deleted file mode 100644 index ab1762da..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/json-schema-traverse/.eslintrc.yml +++ /dev/null @@ -1,27 +0,0 @@ -extends: eslint:recommended -env: - node: true - browser: true -rules: - block-scoped-var: 2 - complexity: [2, 13] - curly: [2, multi-or-nest, consistent] - dot-location: [2, property] - dot-notation: 2 - indent: [2, 2, SwitchCase: 1] - linebreak-style: [2, unix] - new-cap: 2 - no-console: [2, allow: [warn, error]] - no-else-return: 2 - no-eq-null: 2 - no-fallthrough: 2 - no-invalid-this: 2 - no-return-assign: 2 - no-shadow: 1 - no-trailing-spaces: 2 - no-use-before-define: [2, nofunc] - quotes: [2, single, avoid-escape] - semi: [2, always] - strict: [2, global] - valid-jsdoc: [2, requireReturn: false] - no-control-regex: 0 diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/json-schema-traverse/.travis.yml b/build_vtk_bundle/node_modules/worker-loader/node_modules/json-schema-traverse/.travis.yml deleted file mode 100644 index 7ddce74b..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/json-schema-traverse/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js -node_js: - - "4" - - "6" - - "7" - - "8" -after_script: - - coveralls < coverage/lcov.info diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/json-schema-traverse/LICENSE b/build_vtk_bundle/node_modules/worker-loader/node_modules/json-schema-traverse/LICENSE deleted file mode 100644 index 7f154356..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/json-schema-traverse/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Evgeny Poberezkin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/json-schema-traverse/README.md b/build_vtk_bundle/node_modules/worker-loader/node_modules/json-schema-traverse/README.md deleted file mode 100644 index d5ccaf45..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/json-schema-traverse/README.md +++ /dev/null @@ -1,83 +0,0 @@ -# json-schema-traverse -Traverse JSON Schema passing each schema object to callback - -[![Build Status](https://travis-ci.org/epoberezkin/json-schema-traverse.svg?branch=master)](https://travis-ci.org/epoberezkin/json-schema-traverse) -[![npm version](https://badge.fury.io/js/json-schema-traverse.svg)](https://www.npmjs.com/package/json-schema-traverse) -[![Coverage Status](https://coveralls.io/repos/github/epoberezkin/json-schema-traverse/badge.svg?branch=master)](https://coveralls.io/github/epoberezkin/json-schema-traverse?branch=master) - - -## Install - -``` -npm install json-schema-traverse -``` - - -## Usage - -```javascript -const traverse = require('json-schema-traverse'); -const schema = { - properties: { - foo: {type: 'string'}, - bar: {type: 'integer'} - } -}; - -traverse(schema, {cb}); -// cb is called 3 times with: -// 1. root schema -// 2. {type: 'string'} -// 3. {type: 'integer'} - -// Or: - -traverse(schema, {cb: {pre, post}}); -// pre is called 3 times with: -// 1. root schema -// 2. {type: 'string'} -// 3. {type: 'integer'} -// -// post is called 3 times with: -// 1. {type: 'string'} -// 2. {type: 'integer'} -// 3. root schema - -``` - -Callback function `cb` is called for each schema object (not including draft-06 boolean schemas), including the root schema, in pre-order traversal. Schema references ($ref) are not resolved, they are passed as is. Alternatively, you can pass a `{pre, post}` object as `cb`, and then `pre` will be called before traversing child elements, and `post` will be called after all child elements have been traversed. - -Callback is passed these parameters: - -- _schema_: the current schema object -- _JSON pointer_: from the root schema to the current schema object -- _root schema_: the schema passed to `traverse` object -- _parent JSON pointer_: from the root schema to the parent schema object (see below) -- _parent keyword_: the keyword inside which this schema appears (e.g. `properties`, `anyOf`, etc.) -- _parent schema_: not necessarily parent object/array; in the example above the parent schema for `{type: 'string'}` is the root schema -- _index/property_: index or property name in the array/object containing multiple schemas; in the example above for `{type: 'string'}` the property name is `'foo'` - - -## Traverse objects in all unknown keywords - -```javascript -const traverse = require('json-schema-traverse'); -const schema = { - mySchema: { - minimum: 1, - maximum: 2 - } -}; - -traverse(schema, {allKeys: true, cb}); -// cb is called 2 times with: -// 1. root schema -// 2. mySchema -``` - -Without option `allKeys: true` callback will be called only with root schema. - - -## License - -[MIT](https://github.com/epoberezkin/json-schema-traverse/blob/master/LICENSE) diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/json-schema-traverse/index.js b/build_vtk_bundle/node_modules/worker-loader/node_modules/json-schema-traverse/index.js deleted file mode 100644 index d4a18dfc..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/json-schema-traverse/index.js +++ /dev/null @@ -1,89 +0,0 @@ -'use strict'; - -var traverse = module.exports = function (schema, opts, cb) { - // Legacy support for v0.3.1 and earlier. - if (typeof opts == 'function') { - cb = opts; - opts = {}; - } - - cb = opts.cb || cb; - var pre = (typeof cb == 'function') ? cb : cb.pre || function() {}; - var post = cb.post || function() {}; - - _traverse(opts, pre, post, schema, '', schema); -}; - - -traverse.keywords = { - additionalItems: true, - items: true, - contains: true, - additionalProperties: true, - propertyNames: true, - not: true -}; - -traverse.arrayKeywords = { - items: true, - allOf: true, - anyOf: true, - oneOf: true -}; - -traverse.propsKeywords = { - definitions: true, - properties: true, - patternProperties: true, - dependencies: true -}; - -traverse.skipKeywords = { - default: true, - enum: true, - const: true, - required: true, - maximum: true, - minimum: true, - exclusiveMaximum: true, - exclusiveMinimum: true, - multipleOf: true, - maxLength: true, - minLength: true, - pattern: true, - format: true, - maxItems: true, - minItems: true, - uniqueItems: true, - maxProperties: true, - minProperties: true -}; - - -function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) { - if (schema && typeof schema == 'object' && !Array.isArray(schema)) { - pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex); - for (var key in schema) { - var sch = schema[key]; - if (Array.isArray(sch)) { - if (key in traverse.arrayKeywords) { - for (var i=0; i Error -? -> {} -?flag -> { flag: true } -?+flag -> { flag: true } -?-flag -> { flag: false } -?xyz=test -> { xyz: "test" } -?xyz=1 -> { xyz: "1" } // numbers are NOT parsed -?xyz[]=a -> { xyz: ["a"] } -?flag1&flag2 -> { flag1: true, flag2: true } -?+flag1,-flag2 -> { flag1: true, flag2: false } -?xyz[]=a,xyz[]=b -> { xyz: ["a", "b"] } -?a%2C%26b=c%2C%26d -> { "a,&b": "c,&d" } -?{data:{a:1},isJSON5:true} -> { data: { a: 1 }, isJSON5: true } -``` - -### `stringifyRequest` - -Turns a request into a string that can be used inside `require()` or `import` while avoiding absolute paths. -Use it instead of `JSON.stringify(...)` if you're generating code inside a loader. - -**Why is this necessary?** Since webpack calculates the hash before module paths are translated into module ids, we must avoid absolute paths to ensure -consistent hashes across different compilations. - -This function: - -- resolves absolute requests into relative requests if the request and the module are on the same hard drive -- replaces `\` with `/` if the request and the module are on the same hard drive -- won't change the path at all if the request and the module are on different hard drives -- applies `JSON.stringify` to the result - -```javascript -loaderUtils.stringifyRequest(this, "./test.js"); -// "\"./test.js\"" - -loaderUtils.stringifyRequest(this, ".\\test.js"); -// "\"./test.js\"" - -loaderUtils.stringifyRequest(this, "test"); -// "\"test\"" - -loaderUtils.stringifyRequest(this, "test/lib/index.js"); -// "\"test/lib/index.js\"" - -loaderUtils.stringifyRequest(this, "otherLoader?andConfig!test?someConfig"); -// "\"otherLoader?andConfig!test?someConfig\"" - -loaderUtils.stringifyRequest(this, require.resolve("test")); -// "\"../node_modules/some-loader/lib/test.js\"" - -loaderUtils.stringifyRequest(this, "C:\\module\\test.js"); -// "\"../../test.js\"" (on Windows, in case the module and the request are on the same drive) - -loaderUtils.stringifyRequest(this, "C:\\module\\test.js"); -// "\"C:\\module\\test.js\"" (on Windows, in case the module and the request are on different drives) - -loaderUtils.stringifyRequest(this, "\\\\network-drive\\test.js"); -// "\"\\\\network-drive\\\\test.js\"" (on Windows, in case the module and the request are on different drives) -``` - -### `urlToRequest` - -Converts some resource URL to a webpack module request. - -> i Before call `urlToRequest` you need call `isUrlRequest` to ensure it is requestable url - -```javascript -const url = "path/to/module.js"; - -if (loaderUtils.isUrlRequest(url)) { - // Logic for requestable url - const request = loaderUtils.urlToRequest(url); -} else { - // Logic for not requestable url -} -``` - -Simple example: - -```javascript -const url = "path/to/module.js"; -const request = loaderUtils.urlToRequest(url); // "./path/to/module.js" -``` - -#### Module URLs - -Any URL containing a `~` will be interpreted as a module request. Anything after the `~` will be considered the request path. - -```javascript -const url = "~path/to/module.js"; -const request = loaderUtils.urlToRequest(url); // "path/to/module.js" -``` - -#### Root-relative URLs - -URLs that are root-relative (start with `/`) can be resolved relative to some arbitrary path by using the `root` parameter: - -```javascript -const url = "/path/to/module.js"; -const root = "./root"; -const request = loaderUtils.urlToRequest(url, root); // "./root/path/to/module.js" -``` - -To convert a root-relative URL into a module URL, specify a `root` value that starts with `~`: - -```javascript -const url = "/path/to/module.js"; -const root = "~"; -const request = loaderUtils.urlToRequest(url, root); // "path/to/module.js" -``` - -### `interpolateName` - -Interpolates a filename template using multiple placeholders and/or a regular expression. -The template and regular expression are set as query params called `name` and `regExp` on the current loader's context. - -```javascript -const interpolatedName = loaderUtils.interpolateName(loaderContext, name, options); -``` - -The following tokens are replaced in the `name` parameter: - -* `[ext]` the extension of the resource -* `[name]` the basename of the resource -* `[path]` the path of the resource relative to the `context` query parameter or option. -* `[folder]` the folder the resource is in -* `[query]` the queryof the resource, i.e. `?foo=bar` -* `[emoji]` a random emoji representation of `options.content` -* `[emoji:]` same as above, but with a customizable number of emojis -* `[contenthash]` the hash of `options.content` (Buffer) (by default it's the hex digest of the md4 hash) -* `[:contenthash::]` optionally one can configure - * other `hashType`s, i. e. `sha1`, `md4`, `md5`, `sha256`, `sha512` - * other `digestType`s, i. e. `hex`, `base26`, `base32`, `base36`, `base49`, `base52`, `base58`, `base62`, `base64` - * and `length` the length in chars -* `[hash]` the hash of `options.content` (Buffer) (by default it's the hex digest of the md4 hash) -* `[:hash::]` optionally one can configure - * other `hashType`s, i. e. `sha1`, `md4`, `md5`, `sha256`, `sha512` - * other `digestType`s, i. e. `hex`, `base26`, `base32`, `base36`, `base49`, `base52`, `base58`, `base62`, `base64` - * and `length` the length in chars -* `[N]` the N-th match obtained from matching the current file name against `options.regExp` - -In loader context `[hash]` and `[contenthash]` are the same, but we recommend using `[contenthash]` for avoid misleading. - -Examples - -``` javascript -// loaderContext.resourcePath = "/absolute/path/to/app/js/javascript.js" -loaderUtils.interpolateName(loaderContext, "js/[hash].script.[ext]", { content: ... }); -// => js/9473fdd0d880a43c21b7778d34872157.script.js - -// loaderContext.resourcePath = "/absolute/path/to/app/js/javascript.js" -// loaderContext.resourceQuery = "?foo=bar" -loaderUtils.interpolateName(loaderContext, "js/[hash].script.[ext][query]", { content: ... }); -// => js/9473fdd0d880a43c21b7778d34872157.script.js?foo=bar - -// loaderContext.resourcePath = "/absolute/path/to/app/js/javascript.js" -loaderUtils.interpolateName(loaderContext, "js/[contenthash].script.[ext]", { content: ... }); -// => js/9473fdd0d880a43c21b7778d34872157.script.js - -// loaderContext.resourcePath = "/absolute/path/to/app/page.html" -loaderUtils.interpolateName(loaderContext, "html-[hash:6].html", { content: ... }); -// => html-9473fd.html - -// loaderContext.resourcePath = "/absolute/path/to/app/flash.txt" -loaderUtils.interpolateName(loaderContext, "[hash]", { content: ... }); -// => c31e9820c001c9c4a86bce33ce43b679 - -// loaderContext.resourcePath = "/absolute/path/to/app/img/image.gif" -loaderUtils.interpolateName(loaderContext, "[emoji]", { content: ... }); -// => 👍 - -// loaderContext.resourcePath = "/absolute/path/to/app/img/image.gif" -loaderUtils.interpolateName(loaderContext, "[emoji:4]", { content: ... }); -// => 🙍🏢📤🐝 - -// loaderContext.resourcePath = "/absolute/path/to/app/img/image.png" -loaderUtils.interpolateName(loaderContext, "[sha512:hash:base64:7].[ext]", { content: ... }); -// => 2BKDTjl.png -// use sha512 hash instead of md4 and with only 7 chars of base64 - -// loaderContext.resourcePath = "/absolute/path/to/app/img/myself.png" -// loaderContext.query.name = -loaderUtils.interpolateName(loaderContext, "picture.png"); -// => picture.png - -// loaderContext.resourcePath = "/absolute/path/to/app/dir/file.png" -loaderUtils.interpolateName(loaderContext, "[path][name].[ext]?[hash]", { content: ... }); -// => /app/dir/file.png?9473fdd0d880a43c21b7778d34872157 - -// loaderContext.resourcePath = "/absolute/path/to/app/js/page-home.js" -loaderUtils.interpolateName(loaderContext, "script-[1].[ext]", { regExp: "page-(.*)\\.js", content: ... }); -// => script-home.js - -// loaderContext.resourcePath = "/absolute/path/to/app/js/javascript.js" -// loaderContext.resourceQuery = "?foo=bar" -loaderUtils.interpolateName( - loaderContext, - (resourcePath, resourceQuery) => { - // resourcePath - `/app/js/javascript.js` - // resourceQuery - `?foo=bar` - - return "js/[hash].script.[ext]"; - }, - { content: ... } -); -// => js/9473fdd0d880a43c21b7778d34872157.script.js -``` - -### `getHashDigest` - -``` javascript -const digestString = loaderUtils.getHashDigest(buffer, hashType, digestType, maxLength); -``` - -* `buffer` the content that should be hashed -* `hashType` one of `sha1`, `md4`, `md5`, `sha256`, `sha512` or any other node.js supported hash type -* `digestType` one of `hex`, `base26`, `base32`, `base36`, `base49`, `base52`, `base58`, `base62`, `base64` -* `maxLength` the maximum length in chars - -## License - -MIT (http://www.opensource.org/licenses/mit-license.php) diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/loader-utils/package.json b/build_vtk_bundle/node_modules/worker-loader/node_modules/loader-utils/package.json deleted file mode 100644 index b2c7b482..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/loader-utils/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "loader-utils", - "version": "2.0.4", - "author": "Tobias Koppers @sokra", - "description": "utils for webpack loaders", - "dependencies": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - }, - "scripts": { - "lint": "eslint lib test", - "pretest": "yarn lint", - "test": "jest", - "test:ci": "jest --coverage", - "release": "yarn test && standard-version" - }, - "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/webpack/loader-utils.git" - }, - "engines": { - "node": ">=8.9.0" - }, - "devDependencies": { - "coveralls": "^3.0.9", - "eslint": "^6.8.0", - "eslint-plugin-node": "^11.0.0", - "eslint-plugin-prettier": "^3.1.2", - "jest": "^25.1.0", - "prettier": "^1.19.1", - "standard-version": "^7.1.0" - }, - "main": "lib/index.js", - "files": [ - "lib" - ] -} diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/CHANGELOG.md b/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/CHANGELOG.md deleted file mode 100644 index 38963a34..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/CHANGELOG.md +++ /dev/null @@ -1,340 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. - -## [3.3.0](https://github.com/webpack/schema-utils/compare/v3.2.0...v3.3.0) (2023-06-14) - - -### Features - -* added API to disable and enable validation ([#183](https://github.com/webpack/schema-utils/issues/183)) ([d4d334f](https://github.com/webpack/schema-utils/commit/d4d334f0ba22eb6b6564b1119e8f3ea439e1f2bb)) - - -### Bug Fixes - -* **perf:** cache compiled schema ([#182](https://github.com/webpack/schema-utils/issues/182)) ([02aa068](https://github.com/webpack/schema-utils/commit/02aa068df80d99cc576a5ed385f947eb5204c5db)) - -## [3.2.0](https://github.com/webpack/schema-utils/compare/v3.1.2...v3.2.0) (2023-06-07) - - -### Features - -* implement `undefinedAsNull` keyword for `enum` type ([#176](https://github.com/webpack/schema-utils/issues/176)) ([95826eb](https://github.com/webpack/schema-utils/commit/95826eb9e14bc4b10ab95f962ac2bdca447880a3)) - -### [3.1.2](https://github.com/webpack/schema-utils/compare/v3.1.1...v3.1.2) (2023-04-15) - - -### Bug Fixes - -* **perf:** reduced initial start time ([#170](https://github.com/webpack/schema-utils/issues/170)) ([8d052e6](https://github.com/webpack/schema-utils/commit/8d052e6764dc9247e7d5b7b1ae8f87ca5047b2b0)) - -### [3.1.1](https://github.com/webpack/schema-utils/compare/v3.1.0...v3.1.1) (2021-07-19) - - -### Bug Fixes - -* update error message for `integer` ([#136](https://github.com/webpack/schema-utils/issues/136)) ([2daa97e](https://github.com/webpack/schema-utils/commit/2daa97eae87e6790b92711746a6a527b859ac13b)) - -## [3.1.0](https://github.com/webpack/schema-utils/compare/v3.0.0...v3.1.0) (2021-06-30) - - -### Features - -* added the `link` property in validation error ([589aa59](https://github.com/webpack/schema-utils/commit/589aa5993424a8bc45ec22b67dff55be92c456a9)) - - -### Bug Fixes - -* non-empty validation error message ([#116](https://github.com/webpack/schema-utils/issues/116)) ([c51abef](https://github.com/webpack/schema-utils/commit/c51abefa4d4d62e1346b3a105182d36675595077)) - -## [3.0.0](https://github.com/webpack/schema-utils/compare/v2.7.1...v3.0.0) (2020-10-05) - - -### ⚠ BREAKING CHANGES - -* minimum supported `Node.js` version is `10.13.0`, -* the packages exports was changed, please use `const { validate } = require('schema-utils');` -* the `ValidateError` export was removed in favor the `ValidationError` export, please use `const { ValidationError } = require('schema-utils');` - -### [2.7.1](https://github.com/webpack/schema-utils/compare/v2.7.0...v2.7.1) (2020-08-31) - - -### Bug Fixes - -* remove esModuleInterop from tsconfig ([#110](https://github.com/webpack/schema-utils/issues/110)) ([#111](https://github.com/webpack/schema-utils/issues/111)) ([2f40154](https://github.com/webpack/schema-utils/commit/2f40154b91e45b393258ae9dd8f10cc3b8590b7d)) - -## [2.7.0](https://github.com/webpack/schema-utils/compare/v2.6.6...v2.7.0) (2020-05-29) - - -### Features - -* improve hints ([a36e535](https://github.com/webpack/schema-utils/commit/a36e535faca1b01e27c3bfa3c8bee9227c3f836c)) -* smart not case ([#101](https://github.com/webpack/schema-utils/issues/101)) ([698d8b0](https://github.com/webpack/schema-utils/commit/698d8b05462d86aadb217e25a45c7b953a79a52e)) - - -### Bug Fixes - -* move @types/json-schema from devDependencies to dependencies ([#97](https://github.com/webpack/schema-utils/issues/97)) ([#98](https://github.com/webpack/schema-utils/issues/98)) ([945e67d](https://github.com/webpack/schema-utils/commit/945e67db5e19baf7ec7df72813b0739dd56f950d)) - -### [2.6.6](https://github.com/webpack/schema-utils/compare/v2.6.5...v2.6.6) (2020-04-17) - - -### Bug Fixes - -* improve perf - -### [2.6.5](https://github.com/webpack/schema-utils/compare/v2.6.4...v2.6.5) (2020-03-11) - - -### Bug Fixes - -* correct dots at end of sentence ([7284beb](https://github.com/webpack/schema-utils/commit/7284bebe00cd570f1bef2c15951a07b9794038e6)) - -### [2.6.4](https://github.com/webpack/schema-utils/compare/v2.6.3...v2.6.4) (2020-01-17) - - -### Bug Fixes - -* change `initialised` to `initialized` ([#87](https://github.com/webpack/schema-utils/issues/87)) ([70f12d3](https://github.com/webpack/schema-utils/commit/70f12d33a8eaa27249bc9c1a27f886724cf91ea7)) - -### [2.6.3](https://github.com/webpack/schema-utils/compare/v2.6.2...v2.6.3) (2020-01-17) - - -### Bug Fixes - -* prefer the `baseDataPath` option from arguments ([#86](https://github.com/webpack/schema-utils/issues/86)) ([e236859](https://github.com/webpack/schema-utils/commit/e236859e85b28e35e1294f86fc1ff596a5031cea)) - -### [2.6.2](https://github.com/webpack/schema-utils/compare/v2.6.1...v2.6.2) (2020-01-14) - - -### Bug Fixes - -* better handle Windows absolute paths ([#85](https://github.com/webpack/schema-utils/issues/85)) ([1fa2930](https://github.com/webpack/schema-utils/commit/1fa2930a161e907b9fc53a7233d605910afdb883)) - -### [2.6.1](https://github.com/webpack/schema-utils/compare/v2.6.0...v2.6.1) (2019-11-28) - - -### Bug Fixes - -* typescript declarations ([#84](https://github.com/webpack/schema-utils/issues/84)) ([89d55a9](https://github.com/webpack/schema-utils/commit/89d55a9a8edfa6a8ac8b112f226bb3154e260319)) - -## [2.6.0](https://github.com/webpack/schema-utils/compare/v2.5.0...v2.6.0) (2019-11-27) - - -### Features - -* support configuration via title ([#81](https://github.com/webpack/schema-utils/issues/81)) ([afddc10](https://github.com/webpack/schema-utils/commit/afddc109f6891cd37a9f1835d50862d119a072bf)) - - -### Bug Fixes - -* typescript definitions ([#70](https://github.com/webpack/schema-utils/issues/70)) ([f38158d](https://github.com/webpack/schema-utils/commit/f38158d6d040e2c701622778ae8122fb26a4f990)) - -## [2.5.0](https://github.com/webpack/schema-utils/compare/v2.4.1...v2.5.0) (2019-10-15) - - -### Bug Fixes - -* rework format for maxLength, minLength ([#67](https://github.com/webpack/schema-utils/issues/67)) ([0d12259](https://github.com/webpack/schema-utils/commit/0d12259)) -* support all cases with one number in range ([#64](https://github.com/webpack/schema-utils/issues/64)) ([7fc8069](https://github.com/webpack/schema-utils/commit/7fc8069)) -* typescript definition and export naming ([#69](https://github.com/webpack/schema-utils/issues/69)) ([a435b79](https://github.com/webpack/schema-utils/commit/a435b79)) - - -### Features - -* "smart" numbers range ([62fb107](https://github.com/webpack/schema-utils/commit/62fb107)) - -### [2.4.1](https://github.com/webpack/schema-utils/compare/v2.4.0...v2.4.1) (2019-09-27) - - -### Bug Fixes - -* publish definitions ([#58](https://github.com/webpack/schema-utils/issues/58)) ([1885faa](https://github.com/webpack/schema-utils/commit/1885faa)) - -## [2.4.0](https://github.com/webpack/schema-utils/compare/v2.3.0...v2.4.0) (2019-09-26) - - -### Features - -* better errors when the `type` keyword doesn't exist ([0988be2](https://github.com/webpack/schema-utils/commit/0988be2)) -* support $data reference ([#56](https://github.com/webpack/schema-utils/issues/56)) ([d2f11d6](https://github.com/webpack/schema-utils/commit/d2f11d6)) -* types definitions ([#52](https://github.com/webpack/schema-utils/issues/52)) ([facb431](https://github.com/webpack/schema-utils/commit/facb431)) - -## [2.3.0](https://github.com/webpack/schema-utils/compare/v2.2.0...v2.3.0) (2019-09-26) - - -### Features - -* support `not` keyword ([#53](https://github.com/webpack/schema-utils/issues/53)) ([765f458](https://github.com/webpack/schema-utils/commit/765f458)) - -## [2.2.0](https://github.com/webpack/schema-utils/compare/v2.1.0...v2.2.0) (2019-09-02) - - -### Features - -* better error output for `oneOf` and `anyOf` ([#48](https://github.com/webpack/schema-utils/issues/48)) ([#50](https://github.com/webpack/schema-utils/issues/50)) ([332242f](https://github.com/webpack/schema-utils/commit/332242f)) - -## [2.1.0](https://github.com/webpack-contrib/schema-utils/compare/v2.0.1...v2.1.0) (2019-08-07) - - -### Bug Fixes - -* throw error on sparse arrays ([#47](https://github.com/webpack-contrib/schema-utils/issues/47)) ([b85ac38](https://github.com/webpack-contrib/schema-utils/commit/b85ac38)) - - -### Features - -* export `ValidateError` ([#46](https://github.com/webpack-contrib/schema-utils/issues/46)) ([ff781d7](https://github.com/webpack-contrib/schema-utils/commit/ff781d7)) - - - -### [2.0.1](https://github.com/webpack-contrib/schema-utils/compare/v2.0.0...v2.0.1) (2019-07-18) - - -### Bug Fixes - -* error message for empty object ([#44](https://github.com/webpack-contrib/schema-utils/issues/44)) ([0b4b4a2](https://github.com/webpack-contrib/schema-utils/commit/0b4b4a2)) - - - -### [2.0.0](https://github.com/webpack-contrib/schema-utils/compare/v1.0.0...v2.0.0) (2019-07-17) - - -### BREAKING CHANGES - -* drop support for Node.js < 8.9.0 -* drop support `errorMessage`, please use `description` for links. -* api was changed, please look documentation. -* error messages was fully rewritten. - - - -# [1.0.0](https://github.com/webpack-contrib/schema-utils/compare/v0.4.7...v1.0.0) (2018-08-07) - - -### Features - -* **src:** add support for custom error messages ([#33](https://github.com/webpack-contrib/schema-utils/issues/33)) ([1cbe4ef](https://github.com/webpack-contrib/schema-utils/commit/1cbe4ef)) - - - - -## [0.4.7](https://github.com/webpack-contrib/schema-utils/compare/v0.4.6...v0.4.7) (2018-08-07) - - -### Bug Fixes - -* **src:** `node >= v4.0.0` support ([#32](https://github.com/webpack-contrib/schema-utils/issues/32)) ([cb13dd4](https://github.com/webpack-contrib/schema-utils/commit/cb13dd4)) - - - - -## [0.4.6](https://github.com/webpack-contrib/schema-utils/compare/v0.4.5...v0.4.6) (2018-08-06) - - -### Bug Fixes - -* **package:** remove lockfile ([#28](https://github.com/webpack-contrib/schema-utils/issues/28)) ([69f1a81](https://github.com/webpack-contrib/schema-utils/commit/69f1a81)) -* **package:** remove unnecessary `webpack` dependency ([#26](https://github.com/webpack-contrib/schema-utils/issues/26)) ([532eaa5](https://github.com/webpack-contrib/schema-utils/commit/532eaa5)) - - - - -## [0.4.5](https://github.com/webpack-contrib/schema-utils/compare/v0.4.4...v0.4.5) (2018-02-13) - - -### Bug Fixes - -* **CHANGELOG:** update broken links ([4483b9f](https://github.com/webpack-contrib/schema-utils/commit/4483b9f)) -* **package:** update broken links ([f2494ba](https://github.com/webpack-contrib/schema-utils/commit/f2494ba)) - - - - -## [0.4.4](https://github.com/webpack-contrib/schema-utils/compare/v0.4.3...v0.4.4) (2018-02-13) - - -### Bug Fixes - -* **package:** update `dependencies` ([#22](https://github.com/webpack-contrib/schema-utils/issues/22)) ([3aecac6](https://github.com/webpack-contrib/schema-utils/commit/3aecac6)) - - - - -## [0.4.3](https://github.com/webpack-contrib/schema-utils/compare/v0.4.2...v0.4.3) (2017-12-14) - - -### Bug Fixes - -* **validateOptions:** throw `err` instead of `process.exit(1)` ([#17](https://github.com/webpack-contrib/schema-utils/issues/17)) ([c595eda](https://github.com/webpack-contrib/schema-utils/commit/c595eda)) -* **ValidationError:** never return `this` in the ctor ([#16](https://github.com/webpack-contrib/schema-utils/issues/16)) ([c723791](https://github.com/webpack-contrib/schema-utils/commit/c723791)) - - - - -## [0.4.2](https://github.com/webpack-contrib/schema-utils/compare/v0.4.1...v0.4.2) (2017-11-09) - - -### Bug Fixes - -* **validateOptions:** catch `ValidationError` and handle it internally ([#15](https://github.com/webpack-contrib/schema-utils/issues/15)) ([9c5ef5e](https://github.com/webpack-contrib/schema-utils/commit/9c5ef5e)) - - - - -## [0.4.1](https://github.com/webpack-contrib/schema-utils/compare/v0.4.0...v0.4.1) (2017-11-03) - - -### Bug Fixes - -* **ValidationError:** use `Error.captureStackTrace` for `err.stack` handling ([#14](https://github.com/webpack-contrib/schema-utils/issues/14)) ([a6fb974](https://github.com/webpack-contrib/schema-utils/commit/a6fb974)) - - - - -# [0.4.0](https://github.com/webpack-contrib/schema-utils/compare/v0.3.0...v0.4.0) (2017-10-28) - - -### Features - -* add support for `typeof`, `instanceof` (`{Function\|RegExp}`) ([#10](https://github.com/webpack-contrib/schema-utils/issues/10)) ([9f01816](https://github.com/webpack-contrib/schema-utils/commit/9f01816)) - - - - -# [0.3.0](https://github.com/webpack-contrib/schema-utils/compare/v0.2.1...v0.3.0) (2017-04-29) - - -### Features - -* add ValidationError ([#8](https://github.com/webpack-contrib/schema-utils/issues/8)) ([d48f0fb](https://github.com/webpack-contrib/schema-utils/commit/d48f0fb)) - - - - -## [0.2.1](https://github.com/webpack-contrib/schema-utils/compare/v0.2.0...v0.2.1) (2017-03-13) - - -### Bug Fixes - -* Include .babelrc to `files` ([28f0363](https://github.com/webpack-contrib/schema-utils/commit/28f0363)) -* Include source to `files` ([43b0f2f](https://github.com/webpack-contrib/schema-utils/commit/43b0f2f)) - - - - -# [0.2.0](https://github.com/webpack-contrib/schema-utils/compare/v0.1.0...v0.2.0) (2017-03-12) - - -# 0.1.0 (2017-03-07) - - -### Features - -* **validations:** add validateOptions module ([ae9b47b](https://github.com/webpack-contrib/schema-utils/commit/ae9b47b)) - - - -# Change Log - -All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/LICENSE b/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/LICENSE deleted file mode 100644 index 8c11fc72..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright JS Foundation and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/README.md b/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/README.md deleted file mode 100644 index b56ab020..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/README.md +++ /dev/null @@ -1,290 +0,0 @@ - - -[![npm][npm]][npm-url] -[![node][node]][node-url] -[![deps][deps]][deps-url] -[![tests][tests]][tests-url] -[![coverage][cover]][cover-url] -[![chat][chat]][chat-url] -[![size][size]][size-url] - -# schema-utils - -Package for validate options in loaders and plugins. - -## Getting Started - -To begin, you'll need to install `schema-utils`: - -```console -npm install schema-utils -``` - -## API - -**schema.json** - -```json -{ - "type": "object", - "properties": { - "option": { - "type": "boolean" - } - }, - "additionalProperties": false -} -``` - -```js -import schema from "./path/to/schema.json"; -import { validate } from "schema-utils"; - -const options = { option: true }; -const configuration = { name: "Loader Name/Plugin Name/Name" }; - -validate(schema, options, configuration); -``` - -### `schema` - -Type: `String` - -JSON schema. - -Simple example of schema: - -```json -{ - "type": "object", - "properties": { - "name": { - "description": "This is description of option.", - "type": "string" - } - }, - "additionalProperties": false -} -``` - -### `options` - -Type: `Object` - -Object with options. - -```js -import schema from "./path/to/schema.json"; -import { validate } from "schema-utils"; - -const options = { foo: "bar" }; - -validate(schema, { name: 123 }, { name: "MyPlugin" }); -``` - -### `configuration` - -Allow to configure validator. - -There is an alternative method to configure the `name` and`baseDataPath` options via the `title` property in the schema. -For example: - -```json -{ - "title": "My Loader options", - "type": "object", - "properties": { - "name": { - "description": "This is description of option.", - "type": "string" - } - }, - "additionalProperties": false -} -``` - -The last word used for the `baseDataPath` option, other words used for the `name` option. -Based on the example above the `name` option equals `My Loader`, the `baseDataPath` option equals `options`. - -#### `name` - -Type: `Object` -Default: `"Object"` - -Allow to setup name in validation errors. - -```js -import schema from "./path/to/schema.json"; -import { validate } from "schema-utils"; - -const options = { foo: "bar" }; - -validate(schema, options, { name: "MyPlugin" }); -``` - -```shell -Invalid configuration object. MyPlugin has been initialised using a configuration object that does not match the API schema. - - configuration.optionName should be a integer. -``` - -#### `baseDataPath` - -Type: `String` -Default: `"configuration"` - -Allow to setup base data path in validation errors. - -```js -import schema from "./path/to/schema.json"; -import { validate } from "schema-utils"; - -const options = { foo: "bar" }; - -validate(schema, options, { name: "MyPlugin", baseDataPath: "options" }); -``` - -```shell -Invalid options object. MyPlugin has been initialised using an options object that does not match the API schema. - - options.optionName should be a integer. -``` - -#### `postFormatter` - -Type: `Function` -Default: `undefined` - -Allow to reformat errors. - -```js -import schema from "./path/to/schema.json"; -import { validate } from "schema-utils"; - -const options = { foo: "bar" }; - -validate(schema, options, { - name: "MyPlugin", - postFormatter: (formattedError, error) => { - if (error.keyword === "type") { - return `${formattedError}\nAdditional Information.`; - } - - return formattedError; - }, -}); -``` - -```shell -Invalid options object. MyPlugin has been initialized using an options object that does not match the API schema. - - options.optionName should be a integer. - Additional Information. -``` - -## Examples - -**schema.json** - -```json -{ - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "test": { - "anyOf": [ - { "type": "array" }, - { "type": "string" }, - { "instanceof": "RegExp" } - ] - }, - "transform": { - "instanceof": "Function" - }, - "sourceMap": { - "type": "boolean" - } - }, - "additionalProperties": false -} -``` - -### `Loader` - -```js -import { getOptions } from "loader-utils"; -import { validate } from "schema-utils"; - -import schema from "path/to/schema.json"; - -function loader(src, map) { - const options = getOptions(this); - - validate(schema, options, { - name: "Loader Name", - baseDataPath: "options", - }); - - // Code... -} - -export default loader; -``` - -### `Plugin` - -```js -import { validate } from "schema-utils"; - -import schema from "path/to/schema.json"; - -class Plugin { - constructor(options) { - validate(schema, options, { - name: "Plugin Name", - baseDataPath: "options", - }); - - this.options = options; - } - - apply(compiler) { - // Code... - } -} - -export default Plugin; -``` - -## Contributing - -Please take a moment to read our contributing guidelines if you haven't yet done so. - -[CONTRIBUTING](./.github/CONTRIBUTING.md) - -## License - -[MIT](./LICENSE) - -[npm]: https://img.shields.io/npm/v/schema-utils.svg -[npm-url]: https://npmjs.com/package/schema-utils -[node]: https://img.shields.io/node/v/schema-utils.svg -[node-url]: https://nodejs.org -[deps]: https://david-dm.org/webpack/schema-utils.svg -[deps-url]: https://david-dm.org/webpack/schema-utils -[tests]: https://github.com/webpack/schema-utils/workflows/schema-utils/badge.svg -[tests-url]: https://github.com/webpack/schema-utils/actions -[cover]: https://codecov.io/gh/webpack/schema-utils/branch/master/graph/badge.svg -[cover-url]: https://codecov.io/gh/webpack/schema-utils -[chat]: https://badges.gitter.im/webpack/webpack.svg -[chat-url]: https://gitter.im/webpack/webpack -[size]: https://packagephobia.com/badge?p=schema-utils -[size-url]: https://packagephobia.com/result?p=schema-utils diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/ValidationError.d.ts b/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/ValidationError.d.ts deleted file mode 100644 index 55a8a9a1..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/ValidationError.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -export default ValidationError; -export type JSONSchema6 = import("json-schema").JSONSchema6; -export type JSONSchema7 = import("json-schema").JSONSchema7; -export type Schema = import("./validate").Schema; -export type ValidationErrorConfiguration = - import("./validate").ValidationErrorConfiguration; -export type PostFormatter = import("./validate").PostFormatter; -export type SchemaUtilErrorObject = import("./validate").SchemaUtilErrorObject; -declare class ValidationError extends Error { - /** - * @param {Array} errors - * @param {Schema} schema - * @param {ValidationErrorConfiguration} configuration - */ - constructor( - errors: Array, - schema: Schema, - configuration?: ValidationErrorConfiguration - ); - /** @type {Array} */ - errors: Array; - /** @type {Schema} */ - schema: Schema; - /** @type {string} */ - headerName: string; - /** @type {string} */ - baseDataPath: string; - /** @type {PostFormatter | null} */ - postFormatter: PostFormatter | null; - /** - * @param {string} path - * @returns {Schema} - */ - getSchemaPart(path: string): Schema; - /** - * @param {Schema} schema - * @param {boolean} logic - * @param {Array} prevSchemas - * @returns {string} - */ - formatSchema( - schema: Schema, - logic?: boolean, - prevSchemas?: Array - ): string; - /** - * @param {Schema=} schemaPart - * @param {(boolean | Array)=} additionalPath - * @param {boolean=} needDot - * @param {boolean=} logic - * @returns {string} - */ - getSchemaPartText( - schemaPart?: Schema | undefined, - additionalPath?: (boolean | Array) | undefined, - needDot?: boolean | undefined, - logic?: boolean | undefined - ): string; - /** - * @param {Schema=} schemaPart - * @returns {string} - */ - getSchemaPartDescription(schemaPart?: Schema | undefined): string; - /** - * @param {SchemaUtilErrorObject} error - * @returns {string} - */ - formatValidationError(error: SchemaUtilErrorObject): string; - /** - * @param {Array} errors - * @returns {string} - */ - formatValidationErrors(errors: Array): string; -} diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/index.d.ts b/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/index.d.ts deleted file mode 100644 index def01ba8..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { validate } from "./validate"; -import { ValidationError } from "./validate"; -import { enableValidation } from "./validate"; -import { disableValidation } from "./validate"; -import { needValidate } from "./validate"; -export { - validate, - ValidationError, - enableValidation, - disableValidation, - needValidate, -}; diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/keywords/absolutePath.d.ts b/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/keywords/absolutePath.d.ts deleted file mode 100644 index 0d16689b..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/keywords/absolutePath.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export default addAbsolutePathKeyword; -export type Ajv = import("ajv").Ajv; -export type ValidateFunction = import("ajv").ValidateFunction; -export type SchemaUtilErrorObject = import("../validate").SchemaUtilErrorObject; -/** - * - * @param {Ajv} ajv - * @returns {Ajv} - */ -declare function addAbsolutePathKeyword(ajv: Ajv): Ajv; diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/keywords/undefinedAsNull.d.ts b/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/keywords/undefinedAsNull.d.ts deleted file mode 100644 index 35096520..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/keywords/undefinedAsNull.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export default addUndefinedAsNullKeyword; -export type Ajv = import("ajv").Ajv; -/** - * - * @param {Ajv} ajv - * @returns {Ajv} - */ -declare function addUndefinedAsNullKeyword(ajv: Ajv): Ajv; diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/util/Range.d.ts b/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/util/Range.d.ts deleted file mode 100644 index 2ba97fc1..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/util/Range.d.ts +++ /dev/null @@ -1,79 +0,0 @@ -export = Range; -/** - * @typedef {[number, boolean]} RangeValue - */ -/** - * @callback RangeValueCallback - * @param {RangeValue} rangeValue - * @returns {boolean} - */ -declare class Range { - /** - * @param {"left" | "right"} side - * @param {boolean} exclusive - * @returns {">" | ">=" | "<" | "<="} - */ - static getOperator( - side: "left" | "right", - exclusive: boolean - ): ">" | ">=" | "<" | "<="; - /** - * @param {number} value - * @param {boolean} logic is not logic applied - * @param {boolean} exclusive is range exclusive - * @returns {string} - */ - static formatRight(value: number, logic: boolean, exclusive: boolean): string; - /** - * @param {number} value - * @param {boolean} logic is not logic applied - * @param {boolean} exclusive is range exclusive - * @returns {string} - */ - static formatLeft(value: number, logic: boolean, exclusive: boolean): string; - /** - * @param {number} start left side value - * @param {number} end right side value - * @param {boolean} startExclusive is range exclusive from left side - * @param {boolean} endExclusive is range exclusive from right side - * @param {boolean} logic is not logic applied - * @returns {string} - */ - static formatRange( - start: number, - end: number, - startExclusive: boolean, - endExclusive: boolean, - logic: boolean - ): string; - /** - * @param {Array} values - * @param {boolean} logic is not logic applied - * @return {RangeValue} computed value and it's exclusive flag - */ - static getRangeValue(values: Array, logic: boolean): RangeValue; - /** @type {Array} */ - _left: Array; - /** @type {Array} */ - _right: Array; - /** - * @param {number} value - * @param {boolean=} exclusive - */ - left(value: number, exclusive?: boolean | undefined): void; - /** - * @param {number} value - * @param {boolean=} exclusive - */ - right(value: number, exclusive?: boolean | undefined): void; - /** - * @param {boolean} logic is not logic applied - * @return {string} "smart" range string representation - */ - format(logic?: boolean): string; -} -declare namespace Range { - export { RangeValue, RangeValueCallback }; -} -type RangeValue = [number, boolean]; -type RangeValueCallback = (rangeValue: RangeValue) => boolean; diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/util/hints.d.ts b/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/util/hints.d.ts deleted file mode 100644 index e43e32a2..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/util/hints.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function stringHints(schema: Schema, logic: boolean): string[]; -export function numberHints(schema: Schema, logic: boolean): string[]; -export type Schema = import("../validate").Schema; diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/validate.d.ts b/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/validate.d.ts deleted file mode 100644 index 7f1c87f3..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/declarations/validate.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -export type JSONSchema4 = import("json-schema").JSONSchema4; -export type JSONSchema6 = import("json-schema").JSONSchema6; -export type JSONSchema7 = import("json-schema").JSONSchema7; -export type ErrorObject = import("ajv").ErrorObject; -export type ValidateFunction = import("ajv").ValidateFunction; -export type Extend = { - formatMinimum?: number | undefined; - formatMaximum?: number | undefined; - formatExclusiveMinimum?: boolean | undefined; - formatExclusiveMaximum?: boolean | undefined; - link?: string | undefined; - undefinedAsNull?: boolean | undefined; -}; -export type Schema = (JSONSchema4 | JSONSchema6 | JSONSchema7) & Extend; -export type SchemaUtilErrorObject = ErrorObject & { - children?: Array; -}; -export type PostFormatter = ( - formattedError: string, - error: SchemaUtilErrorObject -) => string; -export type ValidationErrorConfiguration = { - name?: string | undefined; - baseDataPath?: string | undefined; - postFormatter?: PostFormatter | undefined; -}; -/** - * @param {Schema} schema - * @param {Array | object} options - * @param {ValidationErrorConfiguration=} configuration - * @returns {void} - */ -export function validate( - schema: Schema, - options: Array | object, - configuration?: ValidationErrorConfiguration | undefined -): void; -export function enableValidation(): void; -export function disableValidation(): void; -export function needValidate(): boolean; -import ValidationError from "./ValidationError"; -export { ValidationError }; diff --git a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/package.json b/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/package.json deleted file mode 100644 index 47943eff..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/node_modules/schema-utils/package.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "name": "schema-utils", - "version": "3.3.0", - "description": "webpack Validation Utils", - "license": "MIT", - "repository": "webpack/schema-utils", - "author": "webpack Contrib (https://github.com/webpack-contrib)", - "homepage": "https://github.com/webpack/schema-utils", - "bugs": "https://github.com/webpack/schema-utils/issues", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "main": "dist/index.js", - "types": "declarations/index.d.ts", - "engines": { - "node": ">= 10.13.0" - }, - "scripts": { - "start": "npm run build -- -w", - "clean": "del-cli dist declarations", - "prebuild": "npm run clean", - "build:types": "tsc --declaration --emitDeclarationOnly --outDir declarations && prettier \"declarations/**/*.ts\" --write", - "build:code": "cross-env NODE_ENV=production babel src -d dist --copy-files", - "build": "npm-run-all -p \"build:**\"", - "commitlint": "commitlint --from=master", - "security": "npm audit --production", - "fmt:check": "prettier \"{**/*,*}.{js,json,md,yml,css,ts}\" --list-different", - "lint:js": "eslint --cache .", - "lint:types": "tsc --pretty --noEmit", - "lint": "npm-run-all lint:js lint:types fmt:check", - "fmt": "npm run fmt:check -- --write", - "fix:js": "npm run lint:js -- --fix", - "fix": "npm-run-all fix:js fmt", - "test:only": "cross-env NODE_ENV=test jest", - "test:watch": "npm run test:only -- --watch", - "test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage", - "pretest": "npm run lint", - "test": "npm run test:coverage", - "prepare": "npm run build && husky install", - "release": "standard-version" - }, - "files": [ - "dist", - "declarations" - ], - "dependencies": { - "@types/json-schema": "^7.0.8", - "ajv": "^6.12.5", - "ajv-keywords": "^3.5.2" - }, - "devDependencies": { - "@babel/cli": "^7.14.3", - "@babel/core": "^7.14.6", - "@babel/preset-env": "^7.14.7", - "@commitlint/cli": "^12.1.4", - "@commitlint/config-conventional": "^12.1.4", - "@webpack-contrib/eslint-config-webpack": "^3.0.0", - "babel-jest": "^27.0.6", - "cross-env": "^7.0.3", - "del": "^6.0.0", - "del-cli": "^3.0.1", - "eslint": "^7.31.0", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-import": "^2.23.4", - "husky": "^6.0.0", - "jest": "^27.0.6", - "lint-staged": "^11.0.1", - "npm-run-all": "^4.1.5", - "prettier": "^2.3.2", - "standard-version": "^9.3.1", - "typescript": "^4.3.5", - "webpack": "^5.45.1" - }, - "keywords": [ - "webpack" - ] -} diff --git a/build_vtk_bundle/node_modules/worker-loader/package.json b/build_vtk_bundle/node_modules/worker-loader/package.json deleted file mode 100644 index 339298e4..00000000 --- a/build_vtk_bundle/node_modules/worker-loader/package.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "name": "worker-loader", - "version": "3.0.8", - "description": "worker loader module for webpack", - "license": "MIT", - "repository": "webpack-contrib/worker-loader", - "author": "Tobias Koppers @sokra", - "homepage": "https://github.com/webpack-contrib/worker-loader", - "bugs": "https://github.com/webpack-contrib/worker-loader/issues", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - }, - "main": "dist/cjs.js", - "engines": { - "node": ">= 10.13.0" - }, - "scripts": { - "start": "npm run build -- -w", - "clean": "del-cli dist", - "prebuild": "npm run clean", - "build": "cross-env NODE_ENV=production babel src -d dist --copy-files", - "commitlint": "commitlint --from=master", - "security": "npm audit", - "lint:prettier": "prettier --list-different .", - "lint:js": "eslint --cache .", - "lint": "npm-run-all -l -p \"lint:**\"", - "test:only": "cross-env NODE_ENV=test jest", - "test:watch": "npm run test:only -- --watch", - "test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage", - "pretest": "npm run lint", - "test": "npm run test:coverage", - "prepare": "npm run build", - "release": "standard-version" - }, - "files": [ - "dist" - ], - "peerDependencies": { - "webpack": "^4.0.0 || ^5.0.0" - }, - "dependencies": { - "loader-utils": "^2.0.0", - "schema-utils": "^3.0.0" - }, - "devDependencies": { - "@babel/cli": "^7.12.13", - "@babel/core": "^7.12.13", - "@babel/preset-env": "^7.12.13", - "@commitlint/cli": "^11.0.0", - "@commitlint/config-conventional": "^11.0.0", - "@webpack-contrib/eslint-config-webpack": "^3.0.0", - "babel-jest": "^26.6.3", - "cross-env": "^7.0.3", - "del": "^6.0.0", - "del-cli": "^3.0.1", - "eslint": "^7.19.0", - "eslint-config-prettier": "^7.2.0", - "eslint-plugin-import": "^2.22.1", - "express": "^4.17.1", - "get-port": "^5.1.1", - "html-webpack-plugin": "^4.5.0", - "husky": "^4.3.0", - "jest": "^26.6.3", - "lint-staged": "^10.5.4", - "memfs": "^3.2.0", - "nanoid": "^3.1.20", - "npm-run-all": "^4.1.5", - "prettier": "^2.2.1", - "puppeteer": "^7.0.4", - "standard-version": "^9.1.0", - "webpack": "^5.21.2" - }, - "keywords": [ - "webpack" - ], - "jest": { - "testEnvironment": "node" - } -} diff --git a/build_vtk_bundle/node_modules/wrappy/LICENSE b/build_vtk_bundle/node_modules/wrappy/LICENSE deleted file mode 100644 index 19129e31..00000000 --- a/build_vtk_bundle/node_modules/wrappy/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/build_vtk_bundle/node_modules/wrappy/README.md b/build_vtk_bundle/node_modules/wrappy/README.md deleted file mode 100644 index 98eab252..00000000 --- a/build_vtk_bundle/node_modules/wrappy/README.md +++ /dev/null @@ -1,36 +0,0 @@ -# wrappy - -Callback wrapping utility - -## USAGE - -```javascript -var wrappy = require("wrappy") - -// var wrapper = wrappy(wrapperFunction) - -// make sure a cb is called only once -// See also: http://npm.im/once for this specific use case -var once = wrappy(function (cb) { - var called = false - return function () { - if (called) return - called = true - return cb.apply(this, arguments) - } -}) - -function printBoo () { - console.log('boo') -} -// has some rando property -printBoo.iAmBooPrinter = true - -var onlyPrintOnce = once(printBoo) - -onlyPrintOnce() // prints 'boo' -onlyPrintOnce() // does nothing - -// random property is retained! -assert.equal(onlyPrintOnce.iAmBooPrinter, true) -``` diff --git a/build_vtk_bundle/node_modules/wrappy/package.json b/build_vtk_bundle/node_modules/wrappy/package.json deleted file mode 100644 index 13075204..00000000 --- a/build_vtk_bundle/node_modules/wrappy/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "wrappy", - "version": "1.0.2", - "description": "Callback wrapping utility", - "main": "wrappy.js", - "files": [ - "wrappy.js" - ], - "directories": { - "test": "test" - }, - "dependencies": {}, - "devDependencies": { - "tap": "^2.3.1" - }, - "scripts": { - "test": "tap --coverage test/*.js" - }, - "repository": { - "type": "git", - "url": "https://github.com/npm/wrappy" - }, - "author": "Isaac Z. Schlueter (http://blog.izs.me/)", - "license": "ISC", - "bugs": { - "url": "https://github.com/npm/wrappy/issues" - }, - "homepage": "https://github.com/npm/wrappy" -} diff --git a/build_vtk_bundle/node_modules/wrappy/wrappy.js b/build_vtk_bundle/node_modules/wrappy/wrappy.js deleted file mode 100644 index bb7e7d6f..00000000 --- a/build_vtk_bundle/node_modules/wrappy/wrappy.js +++ /dev/null @@ -1,33 +0,0 @@ -// Returns a wrapper function that returns a wrapped callback -// The wrapper function should do some stuff, and return a -// presumably different callback function. -// This makes sure that own properties are retained, so that -// decorations and such are not lost along the way. -module.exports = wrappy -function wrappy (fn, cb) { - if (fn && cb) return wrappy(fn)(cb) - - if (typeof fn !== 'function') - throw new TypeError('need wrapper function') - - Object.keys(fn).forEach(function (k) { - wrapper[k] = fn[k] - }) - - return wrapper - - function wrapper() { - var args = new Array(arguments.length) - for (var i = 0; i < args.length; i++) { - args[i] = arguments[i] - } - var ret = fn.apply(this, args) - var cb = args[args.length-1] - if (typeof ret === 'function' && ret !== cb) { - Object.keys(cb).forEach(function (k) { - ret[k] = cb[k] - }) - } - return ret - } -} diff --git a/build_vtk_bundle/node_modules/wslink/CHANGELOG.md b/build_vtk_bundle/node_modules/wslink/CHANGELOG.md deleted file mode 100644 index 87c9f54c..00000000 --- a/build_vtk_bundle/node_modules/wslink/CHANGELOG.md +++ /dev/null @@ -1,551 +0,0 @@ -# [2.5.0](https://github.com/kitware/wslink/compare/v2.4.0...v2.5.0) (2025-10-20) - - -### Features - -* **symlinks:** add option to enable symlinks for static web serving ([d865d49](https://github.com/kitware/wslink/commit/d865d49272a970b82fbaee604168aafde553da5b)) - -# [2.4.0](https://github.com/kitware/wslink/compare/v2.3.4...v2.4.0) (2025-08-18) - - -### Features - -* **launcher:** allow to retry launcher request ([0b9b173](https://github.com/kitware/wslink/commit/0b9b173a044ed305dda111e0cac3821242d5f9b4)) - -## [2.3.4](https://github.com/kitware/wslink/compare/v2.3.3...v2.3.4) (2025-05-20) - - -### Bug Fixes - -* **http-headers:** override settings on reload only if env available ([721eb54](https://github.com/kitware/wslink/commit/721eb5492bcca40e7ba77638c81d36667f151d86)) - -## [2.3.3](https://github.com/kitware/wslink/compare/v2.3.2...v2.3.3) (2025-03-23) - - -### Bug Fixes - -* **HEART_BEAT:** properly reload env when overriden ([c5b7f3a](https://github.com/kitware/wslink/commit/c5b7f3a3ec5b89dbbd987b1887f3a552e511de13)) - -## [2.3.2](https://github.com/kitware/wslink/compare/v2.3.1...v2.3.2) (2025-02-21) - - -### Bug Fixes - -* **emitter:** add EventEmitter tests and a way to specify allowed events ([b079e2e](https://github.com/kitware/wslink/commit/b079e2e1eeb1bbed35220d537ab64426946cbde7)) - -## [2.3.1](https://github.com/kitware/wslink/compare/v2.3.0...v2.3.1) (2025-02-21) - - -### Bug Fixes - -* **typing:** remove typing messing up ParaView apps ([158bbda](https://github.com/kitware/wslink/commit/158bbda82977a3311f0a6580dda94dc3def85653)) - -# [2.3.0](https://github.com/kitware/wslink/compare/v2.2.2...v2.3.0) (2025-02-20) - - -### Features - -* **protocol:** log internal events through an object that can be subscribed to ([89175ba](https://github.com/kitware/wslink/commit/89175baee9f1956ab007368e577fff1d2709e30e)) - -## [2.2.2](https://github.com/kitware/wslink/compare/v2.2.1...v2.2.2) (2025-01-07) - - -### Bug Fixes - -* **aiohttp:** use AppKey for state ([3a313f9](https://github.com/kitware/wslink/commit/3a313f9418498a6f9de66f45ecb7ca691ace45e5)) - -## [2.2.1](https://github.com/kitware/wslink/compare/v2.2.0...v2.2.1) (2024-09-16) - - -### Bug Fixes - -* **NetworkMonitor:** add async completion() method ([62e4c68](https://github.com/kitware/wslink/commit/62e4c6812d111f3a50cbaeb9a7a4a988822efef5)) - -# [2.2.0](https://github.com/kitware/wslink/compare/v2.1.3...v2.2.0) (2024-09-16) - - -### Features - -* **NetworkMonitor:** add support for network completion monitoring ([3202aad](https://github.com/kitware/wslink/commit/3202aad42f71f2be156830412d77786f695684e9)) - -## [2.1.3](https://github.com/kitware/wslink/compare/v2.1.2...v2.1.3) (2024-09-09) - - -### Bug Fixes - -* **generic:** proper api call ([c443c74](https://github.com/kitware/wslink/commit/c443c7490efcb0b030b303025946088af72c4476)) - -## [2.1.2](https://github.com/kitware/wslink/compare/v2.1.1...v2.1.2) (2024-08-07) - - -### Bug Fixes - -* **js:** sessionManagerURL use baseURI ([bb4c34c](https://github.com/kitware/wslink/commit/bb4c34ce64f5056f1dc1b442edc2f79410983ac1)) - -## [2.1.1](https://github.com/kitware/wslink/compare/v2.1.0...v2.1.1) (2024-06-20) - - -### Bug Fixes - -* add missing __future__ annotations for type hints ([472950f](https://github.com/kitware/wslink/commit/472950f98cee2175a507e664ef993eec471469fc)) - -# [2.1.0](https://github.com/kitware/wslink/compare/v2.0.5...v2.1.0) (2024-06-19) - - -### Features - -* **http:** add WSLINK_HTTP_HEADERS for HTTP header addon ([7d16203](https://github.com/kitware/wslink/commit/7d16203788c29ff234b693689e85491dc94c86e1)) - -## [2.0.5](https://github.com/kitware/wslink/compare/v2.0.4...v2.0.5) (2024-06-06) - - -### Bug Fixes - -* **py:** add msg overhead in size limit ([5481a72](https://github.com/kitware/wslink/commit/5481a72148ff03bb11ed658952ab4c64f69950fe)) - -## [2.0.4](https://github.com/kitware/wslink/compare/v2.0.3...v2.0.4) (2024-05-24) - - -### Bug Fixes - -* **header:** add default headers for shared_array_buffer ([0f9f22c](https://github.com/kitware/wslink/commit/0f9f22c2e9fb9db199d483bc6ad5fe7e26db8084)) - -## [2.0.3](https://github.com/kitware/wslink/compare/v2.0.2...v2.0.3) (2024-05-20) - - -### Bug Fixes - -* **unchunker:** initial allowed message size to env var ([#158](https://github.com/kitware/wslink/issues/158)) ([488d637](https://github.com/kitware/wslink/commit/488d637eb9df2649444c5223c61669e142096a2b)) - -## [2.0.2](https://github.com/kitware/wslink/compare/v2.0.1...v2.0.2) (2024-04-18) - - -### Bug Fixes - -* **jupyter:** properly handle generic ws for jupyter ([3bb84de](https://github.com/kitware/wslink/commit/3bb84dea56818f074628412fcc6c8063eaf87c01)) - -## [2.0.1](https://github.com/kitware/wslink/compare/v2.0.0...v2.0.1) (2024-04-16) - - -### Bug Fixes - -* **cli:** remove shorthand args ([880951a](https://github.com/kitware/wslink/commit/880951a8bd3e5d4d8c2a916f602f71c10c61e84e)) - -# [2.0.0](https://github.com/kitware/wslink/compare/v1.12.4...v2.0.0) (2024-04-10) - - -### Bug Fixes - -* **python:** make msgpack/chunking compatible down to python 3.7 ([897ece7](https://github.com/kitware/wslink/commit/897ece73de93ddf4d0333d84ad778bf5e445ead7)) - - -### Features - -* **chunking:** implement chunking of client/server messages ([a77a680](https://github.com/kitware/wslink/commit/a77a680326ae491eee023d01d990cdf3e5808f10)) -* **msgpack:** use msgpack to serialize/deserialize messages ([4968ac1](https://github.com/kitware/wslink/commit/4968ac1cfab9aeaf1fcd0525319214f81ddd8973)) - - -### BREAKING CHANGES - -* **chunking:** each message has a header and is possibly chunked -* **msgpack:** replace json serialization with msgpack - -## [1.12.4](https://github.com/kitware/wslink/compare/v1.12.3...v1.12.4) (2023-10-25) - - -### Bug Fixes - -* **logging:** implement scoped logging ([#152](https://github.com/kitware/wslink/issues/152)) ([07094c3](https://github.com/kitware/wslink/commit/07094c3d6ee502a5e35a1f9aa0c0e88fac377f9c)), closes [#151](https://github.com/kitware/wslink/issues/151) - -## [1.12.3](https://github.com/kitware/wslink/compare/v1.12.2...v1.12.3) (2023-10-05) - - -### Bug Fixes - -* **backend:** properly handle async run state for generic ([247b046](https://github.com/kitware/wslink/commit/247b0460f96c7277fb597b8dced80d81c65cba0a)) - -## [1.12.2](https://github.com/kitware/wslink/compare/v1.12.1...v1.12.2) (2023-09-27) - - -### Bug Fixes - -* **ci:** semantic-release automation ([5967efc](https://github.com/kitware/wslink/commit/5967efc2811dcfa662dd51e4388c973c0403f4d5)) - -# [1.12.0](https://github.com/kitware/wslink/compare/v1.11.4...v1.12.0) (2023-09-27) - - -### Features - -* **jupyter:** Add jupyter backend ([db1bb39](https://github.com/kitware/wslink/commit/db1bb3943093b1f420bf30f4d887893b556fccc9)) - -## [1.11.4](https://github.com/kitware/wslink/compare/v1.11.3...v1.11.4) (2023-09-06) - - -### Bug Fixes - -* **protocol:** const definition and usage ([0c34a25](https://github.com/kitware/wslink/commit/0c34a25456611cebf80be801b58c993bdee3b3f5)) - -## [1.11.3](https://github.com/kitware/wslink/compare/v1.11.2...v1.11.3) (2023-09-05) - - -### Bug Fixes - -* **pub_manager:** handle old global publish manager ([d842b88](https://github.com/kitware/wslink/commit/d842b88d841f9c560bc534a5647f3ffcdcd1c070)), closes [#146](https://github.com/kitware/wslink/issues/146) - -## [1.11.2](https://github.com/kitware/wslink/compare/v1.11.1...v1.11.2) (2023-08-30) - - -### Bug Fixes - -* **publish_manager:** separation at server level for broadcast ([ffd269d](https://github.com/kitware/wslink/commit/ffd269d152abec57b8590f3c7e52172eb9841c91)) - -## [1.11.1](https://github.com/kitware/wslink/compare/v1.11.0...v1.11.1) (2023-06-30) - - -### Bug Fixes - -* **aiohttp:** use app var instead of inheritance ([a0c7e64](https://github.com/kitware/wslink/commit/a0c7e64c6d18dd7e781ee59fae530fd29e130b00)) -* **js:** Allow JS to use custom WebSocket implementation ([f7fad26](https://github.com/kitware/wslink/commit/f7fad26c58f3808c28cca0f20a3e90d8253c391c)) - -# [1.11.0](https://github.com/kitware/wslink/compare/v1.10.2...v1.11.0) (2023-06-09) - - -### Features - -* **backend:** Add generic backend ([d1b2b1b](https://github.com/kitware/wslink/commit/d1b2b1baa62f46215aed426fa1d90d3799cc3398)) -* **backend:** Add tornado using the generic backend ([ee15e86](https://github.com/kitware/wslink/commit/ee15e86303b1e83d1c2bcb7a7b7e140012b9a22a)) -* Rework code to simplify backends ([114c422](https://github.com/kitware/wslink/commit/114c4224b99cb67bacb44d43206fdc588fe22ce6)) - -## [1.10.2](https://github.com/kitware/wslink/compare/v1.10.1...v1.10.2) (2023-05-19) - - -### Bug Fixes - -* **SmartConnect:** Allow delete to call exit later ([eeb7637](https://github.com/kitware/wslink/commit/eeb76372e55e6f0b1a9717c679400407997f303a)) - -## [1.10.1](https://github.com/kitware/wslink/compare/v1.10.0...v1.10.1) (2023-02-15) - - -### Bug Fixes - -* **gracefulexit:** handle server exit for exec_mode=main ([9e06313](https://github.com/kitware/wslink/commit/9e063134b8e171116b374e80fa1ddcd790ca5109)) -* **json5:** Bump version ([4d2e972](https://github.com/kitware/wslink/commit/4d2e9725199d3504897b2419880b07bdc606048c)) - -# [1.10.0](https://github.com/kitware/wslink/compare/v1.9.3...v1.10.0) (2022-12-20) - - -### Features - -* **launcher:** Make GET/DELETE endpoint optionals ([2dc2916](https://github.com/kitware/wslink/commit/2dc291639fc8fc709c9969df6f1872a19a9b51a0)) - -## [1.9.3](https://github.com/kitware/wslink/compare/v1.9.2...v1.9.3) (2022-12-19) - - -### Bug Fixes - -* **launcher:** get/delete now works ([c95a23d](https://github.com/kitware/wslink/commit/c95a23d87d0360d68e1a58c3dbe63757e9268818)) - -## [1.9.2](https://github.com/kitware/wslink/compare/v1.9.1...v1.9.2) (2022-12-08) - - -### Bug Fixes - -* **sessionManagerURL:** Make it path relative aware like default sessionURL ([7c351a3](https://github.com/kitware/wslink/commit/7c351a3d7a1b0b3ecd658ea99150ccee68a688ad)) - -## [1.9.1](https://github.com/kitware/wslink/compare/v1.9.0...v1.9.1) (2022-11-01) - - -### Bug Fixes - -* **clientSession:** Make reverse connection subscriptable ([bb672ca](https://github.com/kitware/wslink/commit/bb672ca1ac5be92b015cb4479d4ac1409558de5c)) -* **subscriptable:** fix typo ([13b60c5](https://github.com/kitware/wslink/commit/13b60c55f5e182232c8b1ced92db35ed52c92933)) - -# [1.9.0](https://github.com/kitware/wslink/compare/v1.8.4...v1.9.0) (2022-10-20) - - -### Features - -* **skip_last_active_client:** Better network handling for collaboration ([e4844e6](https://github.com/kitware/wslink/commit/e4844e6c395eb4de8b4223397108127ce24bfa25)) - -## [1.8.4](https://github.com/kitware/wslink/compare/v1.8.3...v1.8.4) (2022-10-13) - - -### Bug Fixes - -* **ws_server:** handle client disconnection even in case of error ([0fa664e](https://github.com/kitware/wslink/commit/0fa664e9b04599c92337e1b9547fb8534fb90eca)), closes [#118](https://github.com/kitware/wslink/issues/118) - -## [1.8.3](https://github.com/kitware/wslink/compare/v1.8.2...v1.8.3) (2022-10-13) - - -### Bug Fixes - -* **security:** publish messages only to authenticated clients ([c630baa](https://github.com/kitware/wslink/commit/c630baae5a4b5daea74cbb63d3ab6edfb41b8c55)) - -## [1.8.2](https://github.com/kitware/wslink/compare/v1.8.1...v1.8.2) (2022-08-24) - - -### Bug Fixes - -* **ssl:** forgot to import ssl from .ssl_context ([d1f5f71](https://github.com/kitware/wslink/commit/d1f5f71d3aa2c2bb060e72ec5d96dbf4f8fc9c19)) - -## [1.8.1](https://github.com/kitware/wslink/compare/v1.8.0...v1.8.1) (2022-08-24) - - -### Bug Fixes - -* **ssl:** make import optional for ParaView ([be11056](https://github.com/kitware/wslink/commit/be1105641524f44127b97179924e57a29530cce6)) - -# [1.8.0](https://github.com/kitware/wslink/compare/v1.7.0...v1.8.0) (2022-08-24) - - -### Features - -* **SSL:** support ssl context ([00eed08](https://github.com/kitware/wslink/commit/00eed083ae6ac9679d48ba3193c727cd692a74e3)) - -# [1.7.0](https://github.com/kitware/wslink/compare/v1.6.6...v1.7.0) (2022-08-11) - - -### Features - -* **reverse-connection:** Add support for ClientWS and Relay service ([f62fef3](https://github.com/kitware/wslink/commit/f62fef31f310bbe28ee231184f4a3f78bb482b74)) - -## [1.6.6](https://github.com/kitware/wslink/compare/v1.6.5...v1.6.6) (2022-07-05) - - -### Bug Fixes - -* **aiohttp:** Avoid newer, breaking versions ([de16350](https://github.com/kitware/wslink/commit/de1635053ca966c3732be4a86c860efe7608f28f)) - -## [1.6.5](https://github.com/kitware/wslink/compare/v1.6.4...v1.6.5) (2022-06-03) - - -### Bug Fixes - -* **js:** Properly handle protocol mapping ([d02d41d](https://github.com/kitware/wslink/commit/d02d41de6755492115a8cb41fadd54662a696b60)) - -## [1.6.4](https://github.com/kitware/wslink/compare/v1.6.3...v1.6.4) (2022-05-05) - - -### Bug Fixes - -* **ws_server:** Pass server at initialization ([758afe3](https://github.com/kitware/wslink/commit/758afe3a0b216fb706c9eed8af61e9b1a3135517)) - -## [1.6.3](https://github.com/kitware/wslink/compare/v1.6.2...v1.6.3) (2022-05-04) - - -### Bug Fixes - -* **startup-msg:** Allow user to override startup message ([eda7a11](https://github.com/kitware/wslink/commit/eda7a11856ca719cbe54ec12c7aa10f3fa0fc25a)) - -## [1.6.2](https://github.com/kitware/wslink/compare/v1.6.1...v1.6.2) (2022-05-04) - - -### Bug Fixes - -* **ws:** ensure valid ws before write ([3ba4e60](https://github.com/kitware/wslink/commit/3ba4e601e6fdcc04a5929df3e46e9ec3b26ded89)) - -## [1.6.1](https://github.com/kitware/wslink/compare/v1.6.0...v1.6.1) (2022-04-28) - - -### Bug Fixes - -* **auth,log:** strip secret from logged messages ([dec6080](https://github.com/kitware/wslink/commit/dec60800d55aa90e8a38d7f2a6af08023e6497d4)) - -# [1.6.0](https://github.com/kitware/wslink/compare/v1.5.3...v1.6.0) (2022-04-26) - - -### Features - -* **timeout:** allow server without shutdown timeout ([3200728](https://github.com/kitware/wslink/commit/3200728c535c25bd30c031c0936a2c984fe3a7f8)) - -## [1.5.3](https://github.com/kitware/wslink/compare/v1.5.2...v1.5.3) (2022-04-14) - - -### Bug Fixes - -* **security:** Allow to defer token validation to external method ([06bec0d](https://github.com/kitware/wslink/commit/06bec0d5d4b98da90310dc5eca6fc1add09e33e4)) - -## [1.5.2](https://github.com/kitware/wslink/compare/v1.5.1...v1.5.2) (2022-04-08) - - -### Bug Fixes - -* **py3.6:** use get_event_loop instead of get_running_loop ([1b2343c](https://github.com/kitware/wslink/commit/1b2343c9a3ff514e79e93a45796cc2db914f129d)) - -## [1.5.1](https://github.com/kitware/wslink/compare/v1.5.0...v1.5.1) (2022-04-04) - - -### Bug Fixes - -* **license:** include LICENSE file in wheel ([615b8d6](https://github.com/kitware/wslink/commit/615b8d6cd216388693867f58129230c84eaea782)) - -# [1.5.0](https://github.com/kitware/wslink/compare/v1.4.3...v1.5.0) (2022-04-01) - - -### Features - -* **exec_mode:** add exec_mode to start_webserver ([011d387](https://github.com/kitware/wslink/commit/011d387165c4859958f3f99b33227723dcf34944)) - -## [1.4.3](https://github.com/kitware/wslink/compare/v1.4.2...v1.4.3) (2022-03-04) - - -### Bug Fixes - -* **queryString:** Keep queryString for index.html redicrect ([478ea09](https://github.com/kitware/wslink/commit/478ea096078c04b065210a55c941731be97343c7)) - -## [1.4.2](https://github.com/kitware/wslink/compare/v1.4.1...v1.4.2) (2022-03-04) - - -### Bug Fixes - -* **relativePath:** add support for relative sessionURL and index.html ([4a53100](https://github.com/kitware/wslink/commit/4a5310095f1ffa23f45bbbccfe2f10a13a5e3e69)) - -## [1.4.1](https://github.com/kitware/wslink/compare/v1.4.0...v1.4.1) (2022-02-09) - - -### Bug Fixes - -* **rpc:** better handling awaitable rpc ([e7eef8a](https://github.com/kitware/wslink/commit/e7eef8a11010682a44a1c0b845a2fe8ea4048623)) - -# [1.4.0](https://github.com/kitware/wslink/compare/v1.3.3...v1.4.0) (2022-02-08) - - -### Features - -* **heartbeat:** Control heartbeat with WSLINK_HEART_BEAT env ([2348bcb](https://github.com/kitware/wslink/commit/2348bcbcb66d0a59932c4aabcaa5227893871dcf)) - -## [1.3.3](https://github.com/kitware/wslink/compare/v1.3.2...v1.3.3) (2022-01-24) - - -### Bug Fixes - -* **ts:** update the type definitions for subscribe ([e300fda](https://github.com/kitware/wslink/commit/e300fda999dd67569228f372e08949a5da08b390)) - -## [1.3.2](https://github.com/kitware/wslink/compare/v1.3.1...v1.3.2) (2022-01-24) - - -### Bug Fixes - -* **js:** Add more type annotations ([5870064](https://github.com/kitware/wslink/commit/58700644712c4ed87144cf33ac086015b34bc4af)) - -## [1.3.1](https://github.com/kitware/wslink/compare/v1.3.0...v1.3.1) (2022-01-03) - - -### Bug Fixes - -* **python:** use print for the startup message, not log.critical ([bee2f52](https://github.com/kitware/wslink/commit/bee2f520f010a6d2010a8039cd0b734489f10379)) - -# [1.3.0](https://github.com/kitware/wslink/compare/v1.2.1...v1.3.0) (2021-12-16) - - -### Features - -* **connection:** forward request+client_id to life cycle methods ([6c82264](https://github.com/kitware/wslink/commit/6c82264261344d245e3874a30bc65dfd7bb0fa6e)) - -## [1.2.1](https://github.com/kitware/wslink/compare/v1.2.0...v1.2.1) (2021-12-12) - - -### Bug Fixes - -* **aiohttp:** register 30s heartbeat on ws ([2f0cc9a](https://github.com/kitware/wslink/commit/2f0cc9a212bfa5a538f5c34f62146e56fcf6fea8)) - -# [1.2.0](https://github.com/kitware/wslink/compare/v1.1.1...v1.2.0) (2021-12-06) - - -### Features - -* **port=0:** Add infrastructure to handle dynamically assigned port ([eca3e23](https://github.com/kitware/wslink/commit/eca3e238d86c18fd28d99869fe4bd93138727ec0)) - -## [1.1.1](https://github.com/kitware/wslink/compare/v1.1.0...v1.1.1) (2021-11-19) - - -### Bug Fixes - -* **attachments:** Better scheduleing for free ([289f3df](https://github.com/kitware/wslink/commit/289f3dfaf186ffc72a1e3fd4eeae538c81254792)) - -# [1.1.0](https://github.com/kitware/wslink/compare/v1.0.7...v1.1.0) (2021-10-15) - - -### Features - -* **aiohttp:** Control max wslink msg with env var ([a30c5b2](https://github.com/kitware/wslink/commit/a30c5b2df908047a99ceed9d7fb89538ba251a94)) - -## [1.0.7](https://github.com/kitware/wslink/compare/v1.0.6...v1.0.7) (2021-08-25) - - -### Bug Fixes - -* **cli:** Revert default host arg to localhost ([a39d8cf](https://github.com/kitware/wslink/commit/a39d8cf936d414c5aad21ed7bf590f791bfdb9ea)) -* **static:** fix routes order definition for static content ([60457ab](https://github.com/kitware/wslink/commit/60457ab41bef4f0e6d1be94a605da0f6ea33b1a6)) - -## [1.0.6](https://github.com/kitware/wslink/compare/v1.0.5...v1.0.6) (2021-08-20) - - -### Bug Fixes - -* **cli:** Update default --host arg to 0.0.0.0 ([ddbdda9](https://github.com/kitware/wslink/commit/ddbdda9af0b0cf05cfb4e660633d9c77d20f9e01)) - -## [1.0.5](https://github.com/kitware/wslink/compare/v1.0.4...v1.0.5) (2021-08-13) - - -### Bug Fixes - -* **python:** prevent raise condition when sending attachements ([667e68e](https://github.com/kitware/wslink/commit/667e68e947d4e6b6ef253cfc06891fd703e0c592)) - -## [1.0.4](https://github.com/kitware/wslink/compare/v1.0.3...v1.0.4) (2021-08-10) - - -### Bug Fixes - -* **JavaScript:** SmartConnector default decorator ([2973c8f](https://github.com/kitware/wslink/commit/2973c8f0038f6a5f4106820fae833aeea24ed281)) - -## [1.0.3](https://github.com/kitware/wslink/compare/v1.0.2...v1.0.3) (2021-08-10) - - -### Bug Fixes - -* **javascript:** smartConnect will apply a default config decorator ([11ce5a6](https://github.com/kitware/wslink/commit/11ce5a66372bd338080a8527b2e8c8268ac8187b)) -* **publish:** Only send publish msgs to each client once ([65ab38d](https://github.com/kitware/wslink/commit/65ab38dde2851dd8a590c4a0ccc967ba86f64bb1)) - -## [1.0.2](https://github.com/kitware/wslink/compare/v1.0.1...v1.0.2) (2021-08-10) - - -### Bug Fixes - -* **http:** Automatically server index.html ([e43dde4](https://github.com/kitware/wslink/commit/e43dde43af797ed73f92d1b6a1b6adbd2078ea49)) -* **scheduling:** Support scheduling tasks before server starts ([17c6750](https://github.com/kitware/wslink/commit/17c6750cc98424ae6e28067b08a34fbb428f19c1)) - -## [1.0.1](https://github.com/kitware/wslink/compare/v1.0.0...v1.0.1) (2021-08-10) - - -### Bug Fixes - -* **js:** Small code cleanup ([58e025e](https://github.com/kitware/wslink/commit/58e025efd4f4f3f6deca3c8b88a6046d601fe183)) -* **Python:** Better isolate backends implementations ([457b181](https://github.com/kitware/wslink/commit/457b181840804831272c5820ce77dfccf16c3d6e)) - -# [1.0.0](https://github.com/kitware/wslink/compare/v0.1.10...v1.0.0) (2021-08-09) - - -### Bug Fixes - -* **dependencies:** Move json5 from devDependencies to dependencies ([bcb2919](https://github.com/kitware/wslink/commit/bcb2919a54074acd1c1f5bca11210a38381dcfce)) -* **dependencies:** update webpack for security updates. ([27d6744](https://github.com/kitware/wslink/commit/27d674431546f106db8d5a4c67beb79c479acefa)) -* **deps:** Replace twisted/autobahn with asyncio/aiohttp ([2e804bb](https://github.com/kitware/wslink/commit/2e804bbde98c75f03a6268067ffd322c954644c2)) -* **ProcessLauncher:** Allow user to provide custom http headers ([e831509](https://github.com/kitware/wslink/commit/e831509c7766c5315be1b3baf7c1ecf37c900d4f)) -* **publish:** use manager to allow publish to all connected clients ([83b94ab](https://github.com/kitware/wslink/commit/83b94ab715c332f5a589d8649fa8bd80e879fcab)) -* **python:** Automatic version handling ([964db33](https://github.com/kitware/wslink/commit/964db33dd806dafae2e7b7fd59e22aff521d1bb8)) -* **python:** Fix exit methods ([a1627d0](https://github.com/kitware/wslink/commit/a1627d0d9b5784ba52efa1e915a2e7d283bd55fa)) -* **SmartConnect:** Provide optional config decorator method ([9b6302f](https://github.com/kitware/wslink/commit/9b6302f68a1257cb834c1b4ab792a57853605edf)) -* **twisted:** Update to 19.2.1 which is the same as PV ([b732f97](https://github.com/kitware/wslink/commit/b732f97dec10774d51342bbbeb5696ae37d6aa08)) -* **version:** Update version to 0.1.12 ([71f8cce](https://github.com/kitware/wslink/commit/71f8cced0648b0729dcc9247fa31342016e86cbe)) -* **version:** Update version to 0.1.13 ([6cc5441](https://github.com/kitware/wslink/commit/6cc544151079587228760eb8ccdf2ad5a7745c0e)) -* **websocket:** allow publish before connect, as a no-op ([10bef95](https://github.com/kitware/wslink/commit/10bef955b826ff7bf678f19dfe02972f83844ba9)) - - -### BREAKING CHANGES - -* **deps:** remove Py2 support and switch to aiohttp server - -Re-implement the back-end using the websocket server implementation -from aiohttp, while leaving open the possibility of swapping out other -backends down the road. diff --git a/build_vtk_bundle/node_modules/wslink/LICENSE b/build_vtk_bundle/node_modules/wslink/LICENSE deleted file mode 100644 index 06e093eb..00000000 --- a/build_vtk_bundle/node_modules/wslink/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2017, Kitware Inc. -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, -this list of conditions and the following disclaimer in the documentation and/or -other materials provided with the distribution. - -3. Neither the name of the copyright holder nor the names of its contributors -may be used to endorse or promote products derived from this software without -specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/build_vtk_bundle/node_modules/wslink/README.md b/build_vtk_bundle/node_modules/wslink/README.md deleted file mode 100644 index 589dfcf5..00000000 --- a/build_vtk_bundle/node_modules/wslink/README.md +++ /dev/null @@ -1,33 +0,0 @@ -# wslink - -Wslink allows easy, bi-directional communication between a python server and a -javascript client over a [websocket]. The client can make RPC calls to the -server, and the server can publish messages to topics that the client can -subscribe to. The server can include binary attachments in these messages, -which are communicated as a binary websocket message, avoiding the overhead of -encoding and decoding. - -## RPC and publish/subscribe - -The initial users of wslink driving its development are [VTK] and [ParaViewWeb]. -ParaViewWeb and vtkWeb require: -* RPC - a remote procedure call that can be fired by the client and return - sometime later with a response from the server, possibly an error. - -* Publish/subscribe - client can subscribe to a topic provided by the server, - possibly with a filter on the parts of interest. When the topic has updated - results, the server publishes them to the client, without further action on - the client's part. - -## Get the whole story - -This package is just the client side of wslink. See the [github repo] for -the full story - and to contribute or report issues! - -## License -Free to use in open-source and commercial projects, under the BSD-3-Clause license. - -[github repo]: https://github.com/kitware/wslink -[ParaViewWeb]: https://www.paraview.org/web/ -[VTK]: http://www.vtk.org/ -[websocket]: https://developer.mozilla.org/en-US/docs/Web/API/WebSocket diff --git a/build_vtk_bundle/node_modules/wslink/package.json b/build_vtk_bundle/node_modules/wslink/package.json deleted file mode 100644 index d100e76c..00000000 --- a/build_vtk_bundle/node_modules/wslink/package.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "name": "wslink", - "version": "2.5.0", - "description": "Rpc and pub/sub between Python and JavaScript over WebSockets", - "repository": { - "type": "git", - "url": "https://github.com/kitware/wslink.git" - }, - "bugs": { - "url": "https://github.com/kitware/wslink/issues" - }, - "homepage": "https://github.com/kitware/wslink#readme", - "main": "dist/wslink.js", - "scripts": { - "prettier": "prettier --config ./prettier.config.js --write \"src/**/*.js\" \"test/**/*.js\"", - "test": "npm run build:test && python ../tests/simple/server/simple.py --content ../tests/simple/www --debug", - "build": "webpack", - "build:test": "webpack --config webpack-test-simple.config.js", - "build:release": "webpack --mode production", - "doc": "kw-doc -c ../documentation/config.js", - "doc:www": "kw-doc -c ../documentation/config.js -s", - "doc:publish": "kw-doc -c ../documentation/config.js -p", - "commit": "git cz", - "semantic-release": "semantic-release" - }, - "author": "Kitware", - "license": "BSD-3-Clause", - "devDependencies": { - "@babel/core": "7.20.12", - "@babel/preset-env": "7.20.2", - "@semantic-release/changelog": "6.0.3", - "@semantic-release/git": "10.0.1", - "@semantic-release/github": "^9.2.1", - "babel-loader": "8.2.2", - "commitizen": "^4.2.4", - "expose-loader": "3.0.0", - "html-webpack-plugin": "5.3.2", - "kw-doc": "3.1.2", - "prettier": "2.8.4", - "semantic-release": "22.0.5", - "semantic-release-pypi": "2.5.2", - "webpack": "^5.75.0", - "webpack-cli": "4.7.2" - }, - "config": { - "commitizen": { - "path": "cz-conventional-changelog" - } - }, - "dependencies": { - "@msgpack/msgpack": "^2.8.0" - }, - "release": { - "plugins": [ - "@semantic-release/commit-analyzer", - "@semantic-release/release-notes-generator", - "@semantic-release/npm", - [ - "semantic-release-pypi", - { - "setupPy": "../python/setup.py", - "distDir": "../dist" - } - ], - [ - "@semantic-release/changelog", - { - "changelogFile": "CHANGELOG.md" - } - ], - [ - "@semantic-release/git", - { - "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}", - "assets": [ - "CHANGELOG.md" - ] - } - ], - "@semantic-release/github" - ] - }, - "publishConfig": { - "access": "public" - } -} diff --git a/build_vtk_bundle/node_modules/wslink/prettier.config.js b/build_vtk_bundle/node_modules/wslink/prettier.config.js deleted file mode 100644 index f12ed4a0..00000000 --- a/build_vtk_bundle/node_modules/wslink/prettier.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - printWidth: 80, - singleQuote: true, - trailingComma: 'es5', - arrowParens: 'always', -}; diff --git a/build_vtk_bundle/node_modules/wslink/src/CompositeClosureHelper/index.js b/build_vtk_bundle/node_modules/wslink/src/CompositeClosureHelper/index.js deleted file mode 100644 index 46da8e22..00000000 --- a/build_vtk_bundle/node_modules/wslink/src/CompositeClosureHelper/index.js +++ /dev/null @@ -1,166 +0,0 @@ -// ---------------------------------------------------------------------------- -// capitalize provided string -// ---------------------------------------------------------------------------- - -export function capitalize(str) { - return str.charAt(0).toUpperCase() + str.slice(1); -} - -// ---------------------------------------------------------------------------- -// Add isA function and register your class name -// ---------------------------------------------------------------------------- - -function isA(publicAPI, model = {}, name = null) { - if (!model.isA) { - model.isA = []; - } - - if (name) { - model.isA.push(name); - } - - if (!publicAPI.isA) { - publicAPI.isA = (className) => model.isA.indexOf(className) !== -1; - } -} - -// ---------------------------------------------------------------------------- -// Basic setter -// ---------------------------------------------------------------------------- - -function set(publicAPI, model = {}, names = []) { - names.forEach((name) => { - publicAPI[`set${capitalize(name)}`] = (value) => { - model[name] = value; - }; - }); -} - -// ---------------------------------------------------------------------------- -// Basic getter -// ---------------------------------------------------------------------------- - -function get(publicAPI, model = {}, names = []) { - names.forEach((name) => { - publicAPI[`get${capitalize(name)}`] = () => model[name]; - }); -} - -// ---------------------------------------------------------------------------- -// Add destroy function -// ---------------------------------------------------------------------------- - -function destroy(publicAPI, model = {}) { - const previousDestroy = publicAPI.destroy; - - if (!model.subscriptions) { - model.subscriptions = []; - } - - publicAPI.destroy = () => { - if (previousDestroy) { - previousDestroy(); - } - while (model.subscriptions && model.subscriptions.length) { - model.subscriptions.pop().unsubscribe(); - } - Object.keys(model).forEach((field) => { - delete model[field]; - }); - - // Flag the instance beeing deleted - model.deleted = true; - }; -} - -// ---------------------------------------------------------------------------- -// Event handling: onXXX(callback), fireXXX(args...) -// ---------------------------------------------------------------------------- - -function event(publicAPI, model, eventName, asynchrounous = true) { - const callbacks = []; - const previousDestroy = publicAPI.destroy; - - function off(index) { - callbacks[index] = null; - } - - function on(index) { - function unsubscribe() { - off(index); - } - return Object.freeze({ unsubscribe }); - } - - publicAPI[`fire${capitalize(eventName)}`] = (...args) => { - if (model.deleted) { - console.log('instance deleted - can not call any method'); - return; - } - - function processCallbacks() { - callbacks.forEach((callback) => { - if (callback) { - try { - callback.apply(publicAPI, args); - } catch (errObj) { - console.log('Error event:', eventName, errObj); - } - } - }); - } - - if (asynchrounous) { - setTimeout(processCallbacks, 0); - } else { - processCallbacks(); - } - }; - - publicAPI[`on${capitalize(eventName)}`] = (callback) => { - if (model.deleted) { - console.log('instance deleted - can not call any method'); - return null; - } - - const index = callbacks.length; - callbacks.push(callback); - return on(index); - }; - - publicAPI.destroy = () => { - previousDestroy(); - callbacks.forEach((el, index) => off(index)); - }; -} - -// ---------------------------------------------------------------------------- -// Chain function calls -// ---------------------------------------------------------------------------- - -function chain(...fn) { - return (...args) => fn.filter((i) => !!i).forEach((i) => i(...args)); -} - -// ---------------------------------------------------------------------------- -// newInstance -// ---------------------------------------------------------------------------- - -function newInstance(extend) { - return (initialValues = {}) => { - const model = {}; - const publicAPI = {}; - extend(publicAPI, model, initialValues); - return Object.freeze(publicAPI); - }; -} - -export default { - chain, - destroy, - event, - get, - isA, - newInstance, - set, -}; diff --git a/build_vtk_bundle/node_modules/wslink/src/ProcessLauncher/api.md b/build_vtk_bundle/node_modules/wslink/src/ProcessLauncher/api.md deleted file mode 100644 index b581de70..00000000 --- a/build_vtk_bundle/node_modules/wslink/src/ProcessLauncher/api.md +++ /dev/null @@ -1,84 +0,0 @@ -# ProcessLauncher - -The ProcessLauncher can be used to start remote python servers, or other -remote processes. -The ProcessLauncher is used in ParaViewWeb to start a new remote -server instance to perform interactive 3D post-processing using either -a VTK or a ParaView backend. - -```javascript -import ProcessLauncher from 'wslink/src/ProcessLauncher'; - -processLauncher = ProcessLauncher.newInstance({ endPoint: '/paraview' }); - -// Optionally you can provide a launcherRetry: [1000, 2000, 3000, 5000] -// with the set of time to wait in ms before another retry. -// Retries will only occured on a 503 response from the server. -``` - -## ProcessLauncher.newInstance({ endPoint, launcherRetry: [] }) - -Create a process launcher that will make requests to a remote -server using the provided endpoint url. - -## start(config) - -Submit a request for a new remote process. - -The config object gets posted via a POST request to the endpoint provided -at creation time. - -The current ParaViewWeb server-side **Launcher** expects at least -the following object. - -```js -{ - application: 'NameOfTheProcess', -} -``` - -But additional key/value pairs can be added depending on the needs of the targeted process. - -Once the remote process becomes ready a notification is sent. - -## fetchConnection(sessionId) - -Trigger a request for getting the full connection information -based on an existing sessionId. - -## stop(connection) - -Trigger a request to terminate a remote process using the connection -object that was provided at start time. - -## listConnections() - -Return the list of already established connections. (From that instance) - -## onProcessReady(callback) : subscription - -Register a callback for when a remote process becomes available after a start() request. - -The callback function will then receive a json object describing how to connect to that remote process. - -```js -{ - sessionURL: 'ws://myServer/proxy?sessionId=asdfwefasdfwerfqerfse', - maybe: 'something else too' -} -``` -## onProcessStopped(callback) : subscription - -Register a callback for when a stop request is performed. - -## onFetch(callback) : subscription - -Register a callback for when a fetchConnection request is performed. - -## onError(callback) : subscription - -Register a callback for when an error occured regardless of the request. - -## destroy() - -Free memory and detatch any listeners. diff --git a/build_vtk_bundle/node_modules/wslink/src/ProcessLauncher/index.js b/build_vtk_bundle/node_modules/wslink/src/ProcessLauncher/index.js deleted file mode 100644 index 07cc5fe9..00000000 --- a/build_vtk_bundle/node_modules/wslink/src/ProcessLauncher/index.js +++ /dev/null @@ -1,125 +0,0 @@ -/* global XMLHttpRequest */ -import CompositeClosureHelper from '../CompositeClosureHelper'; - -const connections = []; - -function ProcessLauncher(publicAPI, model) { - publicAPI.start = (config) => { - const xhr = new XMLHttpRequest(); - const url = model.endPoint; - if (!model._retry) { - model._retry = config.launcherRetry || []; - } - - xhr.open('POST', url, true); - - if (config.headers) { - model._headers = config.headers; - delete config.headers; - } - if (model._headers) { - Object.entries(model._headers).forEach(([key, value]) => - xhr.setRequestHeader(key, value) - ); - } - - xhr.responseType = 'json'; - const supportsJson = 'response' in xhr && xhr.responseType === 'json'; - - xhr.onload = (e) => { - const response = supportsJson ? xhr.response : JSON.parse(xhr.response); - if (xhr.status === 200 && response && !response.error) { - // Add connection to our global list - connections.push(response); - publicAPI.fireProcessReady(response); - return; - } else if (xhr.status === 503 && model._retry.length > 0) { - const timeout = model._retry.shift(); - setTimeout(publicAPI.start, timeout, config); - } else { - publicAPI.fireError(xhr); - } - }; - - xhr.onerror = (e) => { - publicAPI.fireError(xhr); - }; - - xhr.send(JSON.stringify(config)); - }; - - publicAPI.fetchConnection = (sessionId) => { - var xhr = new XMLHttpRequest(), - url = [model.endPoint, sessionId].join('/'); - - xhr.open('GET', url, true); - xhr.responseType = 'json'; - const supportsJson = 'response' in xhr && xhr.responseType === 'json'; - - xhr.onload = (e) => { - if (this.status === 200) { - publicAPI.fireFetch( - supportsJson ? xhr.response : JSON.parse(xhr.response) - ); - return; - } - publicAPI.fireError(xhr); - }; - - xhr.onerror = (e) => { - publicAPI.fireError(xhr); - }; - - xhr.send(); - }; - - publicAPI.stop = (connection) => { - var xhr = new XMLHttpRequest(), - url = [model.endPoint, connection.id].join('/'); - - xhr.open('DELETE', url, true); - xhr.responseType = 'json'; - const supportsJson = 'response' in xhr && xhr.responseType === 'json'; - - xhr.onload = (e) => { - if (this.status === 200) { - const response = supportsJson ? xhr.response : JSON.parse(xhr.response); - // Remove connection from the list - // FIXME / TODO - publicAPI.fireProcessStopped(response); - return; - } - publicAPI.fireError(xhr); - }; - xhr.onerror = (e) => { - publicAPI.fireError(xhr); - }; - xhr.send(); - }; - - publicAPI.listConnections = () => { - return connections; - }; -} - -const DEFAULT_VALUES = { - endPoint: null, -}; - -export function extend(publicAPI, model, initialValues = {}) { - Object.assign(model, DEFAULT_VALUES, initialValues); - - CompositeClosureHelper.destroy(publicAPI, model); - CompositeClosureHelper.event(publicAPI, model, 'ProcessReady'); - CompositeClosureHelper.event(publicAPI, model, 'ProcessStopped'); - CompositeClosureHelper.event(publicAPI, model, 'Fetch'); - CompositeClosureHelper.event(publicAPI, model, 'Error'); - CompositeClosureHelper.isA(publicAPI, model, 'ProcessLauncher'); - - ProcessLauncher(publicAPI, model); -} - -// ---------------------------------------------------------------------------- -export const newInstance = CompositeClosureHelper.newInstance(extend); - -export default { newInstance, extend }; diff --git a/build_vtk_bundle/node_modules/wslink/src/SmartConnect/api.md b/build_vtk_bundle/node_modules/wslink/src/SmartConnect/api.md deleted file mode 100644 index ba18da6e..00000000 --- a/build_vtk_bundle/node_modules/wslink/src/SmartConnect/api.md +++ /dev/null @@ -1,42 +0,0 @@ -# SmartConnect - -SmartConnect will try to launch a new remote process -based on the configuration and if that fails or if -a sessionURL is already provided in the configuration -it will establish a direct WebSocket connection using -Autobahn. - -## SmartConnect.newInstance({ config }) - -Create an instance that will use the provided configuration to -connect itself to a server either by requesting a new remote -process or by trying to directly connecting to it as a fallback. - -## connect() - -Trigger the connection request. - -## onConnectionReady(callback) : subscription - -Register callback for when the connection became ready. - -## onConnectionClose(callback) : subscription - -Register callback for when the connection close. Callback takes -two arguments, the connection object and a websocket event. -If the server closes the connection after sending a close frame -(https://datatracker.ietf.org/doc/html/rfc6455#section-5.5.1), the event -will have the shape {code: number, reason: string}. - -## onConnectionError(callback) : subscription - -Register callback for when the connection request failed. -Callback takes two arguments, the connection object and a websocket event. - -## getSession() : session - -Return the session associated with the connection. - -## destroy() - -Free resources and remove any listener. diff --git a/build_vtk_bundle/node_modules/wslink/src/SmartConnect/index.d.ts b/build_vtk_bundle/node_modules/wslink/src/SmartConnect/index.d.ts deleted file mode 100644 index 48859fa1..00000000 --- a/build_vtk_bundle/node_modules/wslink/src/SmartConnect/index.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -import WebsocketConnection, {WebsocketSession} from '../WebsocketConnection'; - -export declare const DEFAULT_SESSION_MANAGER_URL: string; - -export interface ISmartConnectConfig { - // URL to connect to. E.g., "ws://localhost:1234". - sessionURL?: string; - // Endpoint of the launcher that is responsible to start the server process. - // Defaults to SESSION_MANAGER_URL. - sessionManagerURL?: string; - // The secret token to be sent during handshake and validated by the server. - secret?: string; - retry?: number; -} - -// A function that rewrites the configuration. It is called on connect. -type ConfigDecorator = (config: ISmartConnectConfig) => ISmartConnectConfig; - -export interface ISmartConnectInitialValues { - config: ISmartConnectConfig; - configDecorator?: ConfigDecorator; -} - -export type Event = any; - -export interface WebsocketCloseEvent { - // This object reports the values of the close frame. Cf. RFC6455 section - // 5.5.1. If the connection closes w/o a close frame, the following fields are unset. - code?: number // RFC6455, section 7.4. - reason?: string; -} - -export interface SmartConnect { - // Starts connecting to the server. - connect(): void; - getSession(): WebsocketSession; - // Called when the connection is established - onConnectionReady(cb: (c: WebsocketConnection) => void): void; - // Called when the connection cannot be established. - onConnectionError(cb: (c: WebsocketConnection, err: Event) => void): void; - // Called when the connection is closed. - onConnectionClose(cb: (c: WebsocketConnection, event: WebsocketCloseEvent) => void): void; - // Close the connection and destroy this object. - destroy(): void; - // Return the config passed to newInstance. - getConfig(): ISmartConnectConfig; - getConfigDecorator(): ConfigDecorator | null; - setConfigDecorator(c: ConfigDecorator): void; -} - -/** - * Creates a new SmartConnect object with the given configuration. - */ -export function newInstance(config: ISmartConnectInitialValues): SmartConnect; - -/** - * Decorates a given object (publicAPI+model) with SmartConnect characteristics. - */ -export function extend(publicAPI: object, model: object, initialValues?: ISmartConnectInitialValues): void; - -export declare const SmartConnect: { - newInstance: typeof newInstance; - extend: typeof extend; -} - -export default SmartConnect; diff --git a/build_vtk_bundle/node_modules/wslink/src/SmartConnect/index.js b/build_vtk_bundle/node_modules/wslink/src/SmartConnect/index.js deleted file mode 100644 index 95f47e04..00000000 --- a/build_vtk_bundle/node_modules/wslink/src/SmartConnect/index.js +++ /dev/null @@ -1,179 +0,0 @@ -/* global window */ -import CompositeClosureHelper from '../CompositeClosureHelper'; - -import ProcessLauncher from '../ProcessLauncher'; -import WebsocketConnection from '../WebsocketConnection'; - -function DEFAULT_CONFIG_DECORATOR(config) { - if (config.sessionURL) { - config.sessionURL = config.sessionURL.replaceAll( - 'USE_HOSTNAME', - window.location.hostname - ); - config.sessionURL = config.sessionURL.replaceAll( - 'USE_HOST', - window.location.host - ); - } - return config; -} - -function extractPathName(addOn, pathName = window.location.pathname) { - if (pathName.endsWith('.html') || pathName.endsWith('.htm')) { - const tokens = pathName.split('/'); - tokens.pop(); - pathName = tokens.join('/'); - } - while (pathName.length > 0 && pathName[pathName.length - 1] === '/') { - pathName = pathName.substring(0, pathName.length - 1); - } - if (pathName.length === 0) { - return addOn; - } - return `${pathName}${addOn}`; -} - -export const DEFAULT_SESSION_MANAGER_URL = `${document.baseURI}paraview/`; - -export const DEFAULT_SESSION_URL = `${ - window.location.protocol === 'https:' ? 'wss:' : 'ws:' -}//${window.location.hostname}:${window.location.port}${extractPathName( - '/ws' -)}`; - -function wsConnect(publicAPI, model) { - const wsConnection = WebsocketConnection.newInstance({ - urls: model.config.sessionURL, - secret: model.config.secret, - retry: model.config.retry, - wsProxy: model.config.iframe || model.config.wsProxy, - }); - model.subscriptions.push( - wsConnection.onConnectionReady(publicAPI.readyForwarder) - ); - model.subscriptions.push( - wsConnection.onConnectionError(publicAPI.errorForwarder) - ); - model.subscriptions.push( - wsConnection.onConnectionClose(publicAPI.closeForwarder) - ); - - // Add to the garbage collector - model.gc.push(wsConnection); - - return wsConnection.connect(); -} - -function smartConnect(publicAPI, model) { - let session = null; - model.gc = []; - - // Event forwarders - publicAPI.readyForwarder = (data) => { - session = data.getSession(); - publicAPI.fireConnectionReady(data); - }; - publicAPI.errorForwarder = (data, err) => { - publicAPI.fireConnectionError(data, err); - }; - publicAPI.closeForwarder = (data, err) => { - publicAPI.fireConnectionClose(data, err); - }; - - publicAPI.connect = () => { - if (model.configDecorator) { - model.config = model.configDecorator(model.config); - } - model.config = DEFAULT_CONFIG_DECORATOR(model.config); - - if (model.config.sessionURL) { - // We have a direct connection URL - session = wsConnect(publicAPI, model); - } else if (model.config.wsProxy) { - // Provide fake url if missing since we rely on a proxy - model.config.sessionURL = model.config.sessionURL || "wss://proxy/"; - session = wsConnect(publicAPI, model); - } else { - // We need to use the Launcher - const launcher = ProcessLauncher.newInstance({ - endPoint: model.config.sessionManagerURL || DEFAULT_SESSION_MANAGER_URL, - }); - - model.subscriptions.push( - launcher.onProcessReady((data) => { - if (model.configDecorator) { - model.config = model.configDecorator( - Object.assign({}, model.config, data) - ); - } else { - model.config = Object.assign({}, model.config, data); - } - model.config = DEFAULT_CONFIG_DECORATOR(model.config); - - session = wsConnect(publicAPI, model); - }) - ); - model.subscriptions.push( - launcher.onError((data) => { - if (data && data.response && data.response.error) { - publicAPI.errorForwarder(data, data.response.error); - } else { - // Try to use standard connection URL - model.config.sessionURL = DEFAULT_SESSION_URL; - model.config = DEFAULT_CONFIG_DECORATOR(model.config); - session = wsConnect(publicAPI, model); - } - }) - ); - - launcher.start(model.config); - - // Add to the garbage collector - model.gc.push(launcher); - } - }; - - publicAPI.getSession = () => { - return session; - }; - - function cleanUp(timeout) { - if (session) { - if (timeout > 0) { - session.call('application.exit.later', [timeout]); - } - session.close(); - } - session = null; - - while (model.gc.length) { - model.gc.pop().destroy(); - } - } - - publicAPI.destroy = CompositeClosureHelper.chain(cleanUp, publicAPI.destroy); -} - -const DEFAULT_VALUES = { - config: {}, - // configDecorator: null, -}; - -export function extend(publicAPI, model, initialValues = {}) { - Object.assign(model, DEFAULT_VALUES, initialValues); - - CompositeClosureHelper.destroy(publicAPI, model); - CompositeClosureHelper.event(publicAPI, model, 'ConnectionReady'); - CompositeClosureHelper.event(publicAPI, model, 'ConnectionClose'); - CompositeClosureHelper.event(publicAPI, model, 'ConnectionError'); - CompositeClosureHelper.isA(publicAPI, model, 'SmartConnect'); - CompositeClosureHelper.get(publicAPI, model, ['config', 'configDecorator']); - CompositeClosureHelper.set(publicAPI, model, ['configDecorator']); - - smartConnect(publicAPI, model); -} - -// ---------------------------------------------------------------------------- -export const newInstance = CompositeClosureHelper.newInstance(extend); - -export default { newInstance, extend }; diff --git a/build_vtk_bundle/node_modules/wslink/src/WebsocketConnection/api.md b/build_vtk_bundle/node_modules/wslink/src/WebsocketConnection/api.md deleted file mode 100644 index 88ea1af1..00000000 --- a/build_vtk_bundle/node_modules/wslink/src/WebsocketConnection/api.md +++ /dev/null @@ -1,34 +0,0 @@ -# WebsocketConnection - -## WebsocketConnection.newInstance({ urls }) - -Create an instance of a websocket connection. The urls should -be a single url (string). - -Usually with a ProcessLauncher we will set the **urls** to **connection.sessionURL**. - -The input can optionally include a string to autheticate the -connection during the handshake: `{ urls, secret:"wslink-secret" }` - -## connect() - -Trigger the actual connection request with the server. - -## onConnectionReady(callback) : subscription - -Register callback for when the connection became ready. - -## onConnectionClose(callback) : subscription - -Register callback for when the connection close. - -## getSession() : object - -Return null if the connection is not yet established or the session -for making RPC calls. - -## destroy(timeout=10) - -Close the connection and ask the server to automaticaly shutdown after the given timeout while removing any listener. - -If the provided timeout is negative, we will close the connection without asking the server to shutdown. diff --git a/build_vtk_bundle/node_modules/wslink/src/WebsocketConnection/chunking.js b/build_vtk_bundle/node_modules/wslink/src/WebsocketConnection/chunking.js deleted file mode 100644 index 41fdb029..00000000 --- a/build_vtk_bundle/node_modules/wslink/src/WebsocketConnection/chunking.js +++ /dev/null @@ -1,211 +0,0 @@ -// Project not setup for typescript, manually compiling this file to chunker.js -// npx tsc chunking.ts --target esnext -const UINT32_LENGTH = 4; -const ID_LOCATION = 0; -const ID_LENGTH = UINT32_LENGTH; -const MESSAGE_OFFSET_LOCATION = ID_LOCATION + ID_LENGTH; -const MESSAGE_OFFSET_LENGTH = UINT32_LENGTH; -const MESSAGE_SIZE_LOCATION = MESSAGE_OFFSET_LOCATION + MESSAGE_OFFSET_LENGTH; -const MESSAGE_SIZE_LENGTH = UINT32_LENGTH; -const HEADER_LENGTH = ID_LENGTH + MESSAGE_OFFSET_LENGTH + MESSAGE_SIZE_LENGTH; -function encodeHeader(id, offset, size) { - const buffer = new ArrayBuffer(HEADER_LENGTH); - const header = new Uint8Array(buffer); - const view = new DataView(buffer); - view.setUint32(ID_LOCATION, id, true); - view.setUint32(MESSAGE_OFFSET_LOCATION, offset, true); - view.setUint32(MESSAGE_SIZE_LOCATION, size, true); - return header; -} -function decodeHeader(header) { - const view = new DataView(header.buffer); - const id = view.getUint32(ID_LOCATION, true); - const offset = view.getUint32(MESSAGE_OFFSET_LOCATION, true); - const size = view.getUint32(MESSAGE_SIZE_LOCATION, true); - return { id, offset, size }; -} -function* generateChunks(message, maxSize) { - const totalSize = message.byteLength; - let maxContentSize; - if (maxSize === 0) { - maxContentSize = totalSize; - } else { - maxContentSize = Math.max(maxSize - HEADER_LENGTH, 1); - } - const id = new Uint32Array(1); - crypto.getRandomValues(id); - let offset = 0; - while (offset < totalSize) { - const contentSize = Math.min(maxContentSize, totalSize - offset); - const chunk = new Uint8Array(new ArrayBuffer(HEADER_LENGTH + contentSize)); - const header = encodeHeader(id[0], offset, totalSize); - chunk.set(new Uint8Array(header.buffer), 0); - chunk.set(message.subarray(offset, offset + contentSize), HEADER_LENGTH); - yield chunk; - offset += contentSize; - } - return; -} -/* - This un-chunker is vulnerable to DOS. - If it receives a message with a header claiming a large incoming message - it will allocate the memory blindly even without actually receiving the content - Chunks for a given message can come in any order - Chunks across messages can be interleaved. -*/ -class UnChunker { - pendingMessages; - constructor() { - this.pendingMessages = {}; - } - releasePendingMessages() { - this.pendingMessages = {}; - } - async processChunk(chunk, decoderFactory) { - const headerBlob = chunk.slice(0, HEADER_LENGTH); - const contentBlob = chunk.slice(HEADER_LENGTH); - const header = new Uint8Array(await headerBlob.arrayBuffer()); - const { id, offset, size: totalSize } = decodeHeader(header); - let pendingMessage = this.pendingMessages[id]; - if (!pendingMessage) { - pendingMessage = { - receivedSize: 0, - content: new Uint8Array(totalSize), - decoder: decoderFactory(), - }; - this.pendingMessages[id] = pendingMessage; - } - // This should never happen, but still check it - if (totalSize !== pendingMessage.content.byteLength) { - delete this.pendingMessages[id]; - throw new Error( - `Total size in chunk header for message ${id} does not match total size declared by previous chunk.` - ); - } - const chunkContent = new Uint8Array(await contentBlob.arrayBuffer()); - const content = pendingMessage.content; - content.set(chunkContent, offset); - pendingMessage.receivedSize += chunkContent.byteLength; - if (pendingMessage.receivedSize >= totalSize) { - delete this.pendingMessages[id]; - try { - return pendingMessage['decoder'].decode(content); - } catch (e) { - console.error('Malformed message: ', content.slice(0, 100)); - // debugger; - } - } - return undefined; - } -} -// Makes sure messages are processed in order of arrival, -export class SequentialTaskQueue { - taskId; - pendingTaskId; - tasks; - constructor() { - this.taskId = 0; - this.pendingTaskId = -1; - this.tasks = {}; - } - enqueue(fn, ...args) { - return new Promise((resolve, reject) => { - const taskId = this.taskId++; - this.tasks[taskId] = { fn, args, resolve, reject }; - this._maybeExecuteNext(); - }); - } - _maybeExecuteNext() { - let pendingTask = this.tasks[this.pendingTaskId]; - if (pendingTask) { - return; - } - const nextPendingTaskId = this.pendingTaskId + 1; - pendingTask = this.tasks[nextPendingTaskId]; - if (!pendingTask) { - return; - } - this.pendingTaskId = nextPendingTaskId; - const { fn, args, resolve, reject } = pendingTask; - fn(...args) - .then((result) => { - resolve(result); - delete this.tasks[nextPendingTaskId]; - this._maybeExecuteNext(); - }) - .catch((err) => { - reject(err); - delete this.tasks[nextPendingTaskId]; - this._maybeExecuteNext(); - }); - } -} -/* - This un-chunker is more memory efficient - (each chunk is passed immediately to msgpack) - and it will only allocate memory when it receives content. - Chunks for a given message are expected to come sequentially - Chunks across messages can be interleaved. -*/ -class StreamUnChunker { - pendingMessages; - constructor() { - this.pendingMessages = {}; - } - processChunk = async (chunk, decoderFactory) => { - const headerBlob = chunk.slice(0, HEADER_LENGTH); - const header = new Uint8Array(await headerBlob.arrayBuffer()); - const { id, offset, size: totalSize } = decodeHeader(header); - const contentBlob = chunk.slice(HEADER_LENGTH); - let pendingMessage = this.pendingMessages[id]; - if (!pendingMessage) { - pendingMessage = { - receivedSize: 0, - totalSize: totalSize, - decoder: decoderFactory(), - }; - this.pendingMessages[id] = pendingMessage; - } - // This should never happen, but still check it - if (totalSize !== pendingMessage.totalSize) { - delete this.pendingMessages[id]; - throw new Error( - `Total size in chunk header for message ${id} does not match total size declared by previous chunk.` - ); - } - // This should never happen, but still check it - if (offset !== pendingMessage.receivedSize) { - delete this.pendingMessages[id]; - throw new Error(`Received an unexpected chunk for message ${id}. - Expected offset = ${pendingMessage.receivedSize}, - Received offset = ${offset}.`); - } - let result; - try { - result = await pendingMessage.decoder.decodeAsync(contentBlob.stream()); - } catch (e) { - if (e instanceof RangeError) { - // More data is needed, it should come in the next chunk - result = undefined; - } - } - pendingMessage.receivedSize += contentBlob.size; - /* - In principle feeding a stream to the unpacker could yield multiple outputs - for example unpacker.feed(b'0123') would yield b'0', b'1', ect - or concatenated packed payloads would yield two or more unpacked objects - but in our use case we expect a full message to be mapped to a single object - */ - if (result && pendingMessage.receivedSize < totalSize) { - delete this.pendingMessages[id]; - throw new Error(`Received a parsable payload shorter than expected for message ${id}. - Expected size = ${totalSize}, - Received size = ${pendingMessage.receivedSize}.`); - } - if (pendingMessage.receivedSize >= totalSize) { - delete this.pendingMessages[id]; - } - return result; - }; -} -export { UnChunker, StreamUnChunker, generateChunks }; diff --git a/build_vtk_bundle/node_modules/wslink/src/WebsocketConnection/chunking.ts b/build_vtk_bundle/node_modules/wslink/src/WebsocketConnection/chunking.ts deleted file mode 100644 index 42d6b9eb..00000000 --- a/build_vtk_bundle/node_modules/wslink/src/WebsocketConnection/chunking.ts +++ /dev/null @@ -1,296 +0,0 @@ -// Project not setup for typescript, manually compiling this file to chunker.js -// npx tsc chunking.ts --target esnext - -const UINT32_LENGTH = 4; -const ID_LOCATION = 0; -const ID_LENGTH = UINT32_LENGTH; -const MESSAGE_OFFSET_LOCATION = ID_LOCATION + ID_LENGTH; -const MESSAGE_OFFSET_LENGTH = UINT32_LENGTH; -const MESSAGE_SIZE_LOCATION = MESSAGE_OFFSET_LOCATION + MESSAGE_OFFSET_LENGTH; -const MESSAGE_SIZE_LENGTH = UINT32_LENGTH; - -const HEADER_LENGTH = ID_LENGTH + MESSAGE_OFFSET_LENGTH + MESSAGE_SIZE_LENGTH; - -function encodeHeader(id: number, offset: number, size: number): Uint8Array { - const buffer = new ArrayBuffer(HEADER_LENGTH); - const header = new Uint8Array(buffer); - const view = new DataView(buffer); - view.setUint32(ID_LOCATION, id, true); - view.setUint32(MESSAGE_OFFSET_LOCATION, offset, true); - view.setUint32(MESSAGE_SIZE_LOCATION, size, true); - - return header; -} - -function decodeHeader(header: Uint8Array) { - const view = new DataView(header.buffer); - const id = view.getUint32(ID_LOCATION, true); - const offset = view.getUint32(MESSAGE_OFFSET_LOCATION, true); - const size = view.getUint32(MESSAGE_SIZE_LOCATION, true); - - return { id, offset, size }; -} - -function* generateChunks(message: Uint8Array, maxSize: number) { - const totalSize = message.byteLength; - let maxContentSize: number; - - if (maxSize === 0) { - maxContentSize = totalSize; - } else { - maxContentSize = Math.max(maxSize - HEADER_LENGTH, 1); - } - - const id = new Uint32Array(1); - crypto.getRandomValues(id); - - let offset = 0; - - while (offset < totalSize) { - const contentSize = Math.min(maxContentSize, totalSize - offset); - const chunk = new Uint8Array(new ArrayBuffer(HEADER_LENGTH + contentSize)); - const header = encodeHeader(id[0], offset, totalSize); - chunk.set(new Uint8Array(header.buffer), 0); - chunk.set(message.subarray(offset, offset + contentSize), HEADER_LENGTH); - - yield chunk; - - offset += contentSize; - } - - return; -} - -type PendingMessage = { - receivedSize: number; - content: Uint8Array; - decoder: any; -}; - -/* - This un-chunker is vulnerable to DOS. - If it receives a message with a header claiming a large incoming message - it will allocate the memory blindly even without actually receiving the content - Chunks for a given message can come in any order - Chunks across messages can be interleaved. -*/ -class UnChunker { - private pendingMessages: { [key: number]: PendingMessage }; - - constructor() { - this.pendingMessages = {}; - } - - releasePendingMessages() { - this.pendingMessages = {}; - } - - async processChunk( - chunk: Blob, - decoderFactory: () => any - ): Promise { - const headerBlob = chunk.slice(0, HEADER_LENGTH); - const contentBlob = chunk.slice(HEADER_LENGTH); - - const header = new Uint8Array(await headerBlob.arrayBuffer()); - const { id, offset, size: totalSize } = decodeHeader(header); - - let pendingMessage = this.pendingMessages[id]; - - if (!pendingMessage) { - pendingMessage = { - receivedSize: 0, - content: new Uint8Array(totalSize), - decoder: decoderFactory(), - }; - - this.pendingMessages[id] = pendingMessage; - } - - // This should never happen, but still check it - if (totalSize !== pendingMessage.content.byteLength) { - delete this.pendingMessages[id]; - throw new Error( - `Total size in chunk header for message ${id} does not match total size declared by previous chunk.` - ); - } - - const chunkContent = new Uint8Array(await contentBlob.arrayBuffer()); - const content = pendingMessage.content; - content.set(chunkContent, offset); - pendingMessage.receivedSize += chunkContent.byteLength; - - if (pendingMessage.receivedSize >= totalSize) { - delete this.pendingMessages[id]; - - try { - return pendingMessage['decoder'].decode(content); - } catch (e) { - console.error('Malformed message: ', content.slice(0, 100)); - // debugger; - } - } - - return undefined; - } -} - -type StreamPendingMessage = { - receivedSize: number; - totalSize: number; - decoder: any; -}; - -// Makes sure messages are processed in order of arrival, -export class SequentialTaskQueue { - taskId: number; - pendingTaskId: number; - tasks: { - [id: number]: { - fn: (...args: any) => Promise; - args: any[]; - resolve: (value: any) => void; - reject: (err: any) => void; - }; - }; - - constructor() { - this.taskId = 0; - this.pendingTaskId = -1; - this.tasks = {}; - } - - enqueue(fn: (...args: any) => Promise, ...args: any[]) { - return new Promise((resolve, reject) => { - const taskId = this.taskId++; - this.tasks[taskId] = { fn, args, resolve, reject }; - this._maybeExecuteNext(); - }); - } - - _maybeExecuteNext() { - let pendingTask = this.tasks[this.pendingTaskId]; - - if (pendingTask) { - return; - } - - const nextPendingTaskId = this.pendingTaskId + 1; - - pendingTask = this.tasks[nextPendingTaskId]; - - if (!pendingTask) { - return; - } - - this.pendingTaskId = nextPendingTaskId; - - const { fn, args, resolve, reject } = pendingTask; - - fn(...args) - .then((result) => { - resolve(result); - delete this.tasks[nextPendingTaskId]; - this._maybeExecuteNext(); - }) - .catch((err) => { - reject(err); - delete this.tasks[nextPendingTaskId]; - this._maybeExecuteNext(); - }); - } -} - -/* - This un-chunker is more memory efficient - (each chunk is passed immediately to msgpack) - and it will only allocate memory when it receives content. - Chunks for a given message are expected to come sequentially - Chunks across messages can be interleaved. -*/ -class StreamUnChunker { - private pendingMessages: { [key: number]: StreamPendingMessage }; - - constructor() { - this.pendingMessages = {}; - } - - processChunk = async ( - chunk: Blob, - decoderFactory: () => any - ): Promise => { - const headerBlob = chunk.slice(0, HEADER_LENGTH); - - const header = new Uint8Array(await headerBlob.arrayBuffer()); - const { id, offset, size: totalSize } = decodeHeader(header); - - const contentBlob = chunk.slice(HEADER_LENGTH); - - let pendingMessage = this.pendingMessages[id]; - - if (!pendingMessage) { - pendingMessage = { - receivedSize: 0, - totalSize: totalSize, - decoder: decoderFactory(), - }; - - this.pendingMessages[id] = pendingMessage; - } - - // This should never happen, but still check it - if (totalSize !== pendingMessage.totalSize) { - delete this.pendingMessages[id]; - throw new Error( - `Total size in chunk header for message ${id} does not match total size declared by previous chunk.` - ); - } - - // This should never happen, but still check it - if (offset !== pendingMessage.receivedSize) { - delete this.pendingMessages[id]; - throw new Error( - `Received an unexpected chunk for message ${id}. - Expected offset = ${pendingMessage.receivedSize}, - Received offset = ${offset}.` - ); - } - - let result: unknown; - try { - result = await pendingMessage.decoder.decodeAsync( - contentBlob.stream() as any - ); - } catch (e) { - if (e instanceof RangeError) { - // More data is needed, it should come in the next chunk - result = undefined; - } - } - - pendingMessage.receivedSize += contentBlob.size; - - /* - In principle feeding a stream to the unpacker could yield multiple outputs - for example unpacker.feed(b'0123') would yield b'0', b'1', ect - or concatenated packed payloads would yield two or more unpacked objects - but in our use case we expect a full message to be mapped to a single object - */ - if (result && pendingMessage.receivedSize < totalSize) { - delete this.pendingMessages[id]; - throw new Error( - `Received a parsable payload shorter than expected for message ${id}. - Expected size = ${totalSize}, - Received size = ${pendingMessage.receivedSize}.` - ); - } - - if (pendingMessage.receivedSize >= totalSize) { - delete this.pendingMessages[id]; - } - - return result; - }; -} - -export { UnChunker, StreamUnChunker, generateChunks }; diff --git a/build_vtk_bundle/node_modules/wslink/src/WebsocketConnection/index.d.ts b/build_vtk_bundle/node_modules/wslink/src/WebsocketConnection/index.d.ts deleted file mode 100644 index ab007b3c..00000000 --- a/build_vtk_bundle/node_modules/wslink/src/WebsocketConnection/index.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -export interface SubscriberInfo { - topic: string - callback: (args: any[]) => Promise; -} - -// Provides a generic RPC stub built on top of websocket. -export interface WebsocketSession { - // Issue a single-shot RPC. - call(methodName: string, args?: any[], kwargs?: Record): Promise; - // Subscribe to one-way messages from the server. - subscribe(topic: string, callback: (args: any[]) => Promise): { - // A promise to be resolved once subscription succeeds. - promise: Promise; - // Cancels the subscription. - unsubscribe: () => Promise; - } - // Cancels the subscription. - unsubscribe(info: SubscriberInfo): Promise; - close(): Promise; - - /** - * @param payload The binary data to send - * @returns The id assigned to the binary attachment - */ - addAttachment(payload: Blob): string -} - -export interface IWebsocketConnectionInitialValues { - secret?: string; - connection?: any; - session?: any; - retry?: boolean; -} - -// Represents a single established websocket connection. -export interface WebsocketConnection { - getSession(): WebsocketSession; - getUrl(): string | null; - destroy(): void; -} - -/** - * Creates a new SmartConnect object with the given configuration. - */ -export function newInstance(initialValues: IWebsocketConnectionInitialValues): WebsocketConnection; - -/** - * Decorates a given object (publicAPI+model) with WebsocketConnection characteristics. - */ -export function extend(publicAPI: object, model: object, initialValues?: IWebsocketConnectionInitialValues): void; - -export declare const WebsocketConnection: { - newInstance: typeof newInstance; - extend: typeof extend; -} - -export default WebsocketConnection; diff --git a/build_vtk_bundle/node_modules/wslink/src/WebsocketConnection/index.js b/build_vtk_bundle/node_modules/wslink/src/WebsocketConnection/index.js deleted file mode 100644 index a7796c38..00000000 --- a/build_vtk_bundle/node_modules/wslink/src/WebsocketConnection/index.js +++ /dev/null @@ -1,155 +0,0 @@ -// Helper borrowed from paraviewweb/src/Common/Core -import CompositeClosureHelper from '../CompositeClosureHelper'; -import Session from './session'; - -const DEFAULT_SECRET = 'wslink-secret'; - -function getTransportObject(url) { - var idx = url.indexOf(':'), - protocol = url.substring(0, idx); - if (protocol === 'ws' || protocol === 'wss') { - return { - type: 'websocket', - url, - }; - } - - throw new Error( - `Unknown protocol (${protocol}) for url (${url}). Unable to create transport object.` - ); -} - -function WebsocketConnection(publicAPI, model) { - // TODO Should we try to reconnect on error? - - publicAPI.connect = () => { - // without a URL we can't do anything. - if (!model.urls) return null; - // concat allows a single url or a list. - var uriList = [].concat(model.urls), - transports = []; - - for (let i = 0; i < uriList.length; i += 1) { - const url = uriList[i]; - try { - const transport = getTransportObject(url); - transports.push(transport); - } catch (transportCreateError) { - console.error(transportCreateError); - publicAPI.fireConnectionError(publicAPI, transportCreateError); - return null; - } - } - - if (model.connection) { - if (model.connection.url !== transports[0].url) { - model.connection.close(); - } else if ( - model.connection.readyState === 0 || - model.connection.readyState === 1 - ) { - // already connected. - return model.session; - } - } - try { - if (model.wsProxy) { - model.connection = WSLINK.createWebSocket(transports[0].url); - } else { - model.connection = new WebSocket(transports[0].url); - } - } catch (err) { - // If the server isn't running, we still don't enter here on Chrome - - // console shows a net::ERR_CONNECTION_REFUSED error inside WebSocket - console.error(err); - publicAPI.fireConnectionError(publicAPI, err); - return null; - } - - model.connection.binaryType = 'blob'; - if (!model.secret) model.secret = DEFAULT_SECRET; - model.session = Session.newInstance({ - ws: model.connection, - secret: model.secret, - }); - - model.connection.onopen = (event) => { - if (model.session) { - // sends handshake message - wait for reply before issuing ready() - model.session.onconnect(event).then( - () => { - publicAPI.fireConnectionReady(publicAPI); - }, - (err) => { - console.error('Connection error', err); - publicAPI.fireConnectionError(publicAPI, err); - } - ); - } - }; - - model.connection.onclose = (event) => { - publicAPI.fireConnectionClose(publicAPI, event); - model.connection = null; - // return !model.retry; // true => Stop retry - }; - model.connection.onerror = (event) => { - publicAPI.fireConnectionError(publicAPI, event); - }; - // handle messages in the session. - model.connection.onmessage = (event) => { - model.session.onmessage(event); - }; - return model.session; - }; - - publicAPI.getSession = () => model.session; - - publicAPI.getUrl = () => - model.connection ? model.connection.url : undefined; - - function cleanUp(timeout = 10) { - if ( - model.connection && - model.connection.readyState === 1 && - model.session && - timeout > 0 - ) { - model.session.call('application.exit.later', [timeout]); - } - if (model.connection) { - model.connection.close(); - } - model.connection = null; - } - - publicAPI.destroy = CompositeClosureHelper.chain(cleanUp, publicAPI.destroy); -} - -const DEFAULT_VALUES = { - secret: DEFAULT_SECRET, - connection: null, - session: null, - retry: false, - wsProxy: false, // Use WSLINK.WebSocket if true else native WebSocket -}; - -export function extend(publicAPI, model, initialValues = {}) { - Object.assign(model, DEFAULT_VALUES, initialValues); - - CompositeClosureHelper.destroy(publicAPI, model); - CompositeClosureHelper.event(publicAPI, model, 'ConnectionReady'); - CompositeClosureHelper.event(publicAPI, model, 'ConnectionClose'); - CompositeClosureHelper.event(publicAPI, model, 'ConnectionError'); - CompositeClosureHelper.isA(publicAPI, model, 'WebsocketConnection'); - - WebsocketConnection(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -export const newInstance = CompositeClosureHelper.newInstance(extend); - -// ---------------------------------------------------------------------------- - -export default { newInstance, extend }; diff --git a/build_vtk_bundle/node_modules/wslink/src/WebsocketConnection/session.js b/build_vtk_bundle/node_modules/wslink/src/WebsocketConnection/session.js deleted file mode 100644 index 4517103c..00000000 --- a/build_vtk_bundle/node_modules/wslink/src/WebsocketConnection/session.js +++ /dev/null @@ -1,284 +0,0 @@ -// Helper borrowed from paraviewweb/src/Common/Core -import CompositeClosureHelper from '../CompositeClosureHelper'; -import { UnChunker, generateChunks } from './chunking'; -import { Encoder, Decoder } from '@msgpack/msgpack'; - -function defer() { - const deferred = {}; - - deferred.promise = new Promise(function (resolve, reject) { - deferred.resolve = resolve; - deferred.reject = reject; - }); - - return deferred; -} - -function Session(publicAPI, model) { - const CLIENT_ERROR = -32099; - let msgCount = 0; - const inFlightRpc = {}; - // matches 'rpc:client3:21' - // client may be dot-separated and include '_' - // number is message count - unique. - // matches 'publish:dot.separated.topic:42' - const regexRPC = /^(rpc|publish|system):(\w+(?:\.\w+)*):(?:\d+)$/; - const subscriptions = {}; - let clientID = null; - let MAX_MSG_SIZE = 512 * 1024; - const unchunker = new UnChunker(); - - // -------------------------------------------------------------------------- - // Private helpers - // -------------------------------------------------------------------------- - - function onCompleteMessage(payload) { - if (!payload) return; - if (!payload.id) return; - if (payload.error) { - const deferred = inFlightRpc[payload.id]; - if (deferred) { - deferred.reject(payload.error); - } else { - console.error('Server error:', payload.error); - } - } else { - const match = regexRPC.exec(payload.id); - if (match) { - const type = match[1]; - if (type === 'rpc') { - const deferred = inFlightRpc[payload.id]; - if (!deferred) { - console.log( - 'session message id without matching call, dropped', - payload - ); - return; - } - deferred.resolve(payload.result); - } else if (type == 'publish') { - console.assert( - inFlightRpc[payload.id] === undefined, - 'publish message received matching in-flight rpc call' - ); - // regex extracts the topic for us. - const topic = match[2]; - if (!subscriptions[topic]) { - return; - } - // for each callback, provide the message data. Wrap in an array, for back-compatibility with WAMP - subscriptions[topic].forEach((callback) => - callback([payload.result]) - ); - } else if (type == 'system') { - // console.log('DBG system:', payload.id, payload.result); - const deferred = inFlightRpc[payload.id]; - if (payload.id === 'system:c0:0') { - clientID = payload.result.clientID; - MAX_MSG_SIZE = payload.result.maxMsgSize || MAX_MSG_SIZE; - if (deferred) deferred.resolve(clientID); - } else { - console.error('Unknown system message', payload.id); - if (deferred) - deferred.reject({ - code: CLIENT_ERROR, - message: `Unknown system message ${payload.id}`, - }); - } - } else { - console.error('Unknown rpc id format', payload.id); - } - } - } - delete inFlightRpc[payload.id]; - } - - // -------------------------------------------------------------------------- - // Public API - // -------------------------------------------------------------------------- - - publicAPI.onconnect = (event) => { - // send hello message - const deferred = defer(); - const id = 'system:c0:0'; - inFlightRpc[id] = deferred; - - const wrapper = { - wslink: '1.0', - id, - method: 'wslink.hello', - args: [{ secret: model.secret }], - kwargs: {}, - }; - - const encoder = new CustomEncoder(); - const packedWrapper = encoder.encode(wrapper); - - for (let chunk of generateChunks(packedWrapper, MAX_MSG_SIZE)) { - model.ws.send(chunk, { binary: true }); - } - - return deferred.promise; - }; - - // -------------------------------------------------------------------------- - - publicAPI.call = (method, args = [], kwargs = {}) => { - // create a promise that we will use to notify the caller of the result. - const deferred = defer(); - // readyState OPEN === 1 - if (model.ws && clientID && model.ws.readyState === 1) { - const id = `rpc:${clientID}:${msgCount++}`; - inFlightRpc[id] = deferred; - - const wrapper = { wslink: '1.0', id, method, args, kwargs }; - - const encoder = new CustomEncoder(); - const packedWrapper = encoder.encode(wrapper); - - for (let chunk of generateChunks(packedWrapper, MAX_MSG_SIZE)) { - model.ws.send(chunk, { binary: true }); - } - } else { - deferred.reject({ - code: CLIENT_ERROR, - message: `RPC call ${method} unsuccessful: connection not open`, - }); - } - return deferred.promise; - }; - - // -------------------------------------------------------------------------- - - publicAPI.subscribe = (topic, callback) => { - const deferred = defer(); - if (model.ws && clientID) { - // we needs to track subscriptions, to trigger callback when publish is received. - if (!subscriptions[topic]) subscriptions[topic] = []; - subscriptions[topic].push(callback); - // we can notify the server, but we don't need to, if the server always sends messages unconditionally. - // model.ws.send(JSON.stringify({ wslink: '1.0', id: `subscribe:${msgCount++}`, method, args: [] })); - deferred.resolve({ topic, callback }); - } else { - deferred.reject({ - code: CLIENT_ERROR, - message: `Subscribe call ${topic} unsuccessful: connection not open`, - }); - } - return { - topic, - callback, - promise: deferred.promise, - unsubscribe: () => publicAPI.unsubscribe({ topic, callback }), - }; - }; - - // -------------------------------------------------------------------------- - - publicAPI.unsubscribe = (info) => { - const deferred = defer(); - const { topic, callback } = info; - if (!subscriptions[topic]) { - deferred.reject({ - code: CLIENT_ERROR, - message: `Unsubscribe call ${topic} unsuccessful: not subscribed`, - }); - return deferred.promise; - } - const index = subscriptions[topic].indexOf(callback); - if (index !== -1) { - subscriptions[topic].splice(index, 1); - deferred.resolve(); - } else { - deferred.reject({ - code: CLIENT_ERROR, - message: `Unsubscribe call ${topic} unsuccessful: callback not found`, - }); - } - return deferred.promise; - }; - - // -------------------------------------------------------------------------- - - publicAPI.close = () => { - const deferred = defer(); - // some transports might be able to close the session without closing the connection. Not true for websocket... - model.ws.close(); - unchunker.releasePendingMessages(); - deferred.resolve(); - return deferred.promise; - }; - - // -------------------------------------------------------------------------- - - function createDecoder() { - return new Decoder(); - } - - publicAPI.onmessage = async (event) => { - const message = await unchunker.processChunk(event.data, createDecoder); - - if (message) { - onCompleteMessage(message); - } - }; - - // -------------------------------------------------------------------------- - - publicAPI.addAttachment = (payload) => { - // Deprecated method, keeping it to avoid breaking compatibility - // Now that we use msgpack to pack/unpack messages, - // We can have binary data directly in the object itself, - // without needing to transfer it separately from the rest. - // - // If an ArrayBuffer is passed, ensure it gets wrapped in - // a DataView (which is what the encoder expects). - if (payload instanceof ArrayBuffer) { - return new DataView(payload); - } - - return payload; - }; -} - -const DEFAULT_VALUES = { - secret: 'wslink-secret', - ws: null, -}; - -export function extend(publicAPI, model, initialValues = {}) { - Object.assign(model, DEFAULT_VALUES, initialValues); - - CompositeClosureHelper.destroy(publicAPI, model); - CompositeClosureHelper.isA(publicAPI, model, 'Session'); - - Session(publicAPI, model); -} - -// ---------------------------------------------------------------------------- - -export const newInstance = CompositeClosureHelper.newInstance(extend); - -// ---------------------------------------------------------------------------- - -export default { newInstance, extend }; - -class CustomEncoder extends Encoder { - // Unfortunately @msgpack/msgpack only supports - // views of an ArrayBuffer (DataView, Uint8Array,..), - // but not an ArrayBuffer itself. - // They suggest using custom type extensions to support it, - // but that would yield a different packed payload - // (1 byte larger, but most importantly it would require - // dealing with the custom type when unpacking on the server). - // Since this type is too trivial to be treated differently, - // and since I don't want to rely on the users always wrapping - // their ArrayBuffers in a view, I'm subclassing the encoder. - encodeObject(object, depth) { - if (object instanceof ArrayBuffer) { - object = new DataView(object); - } - - return super.encodeObject.call(this, object, depth); - } -} diff --git a/build_vtk_bundle/node_modules/wslink/src/index.js b/build_vtk_bundle/node_modules/wslink/src/index.js deleted file mode 100644 index e01717d6..00000000 --- a/build_vtk_bundle/node_modules/wslink/src/index.js +++ /dev/null @@ -1,11 +0,0 @@ -import CompositeClosureHelper from './CompositeClosureHelper'; -import ProcessLauncher from './ProcessLauncher'; -import SmartConnect from './SmartConnect'; -import WebsocketConnection from './WebsocketConnection'; - -export { - CompositeClosureHelper, - ProcessLauncher, - SmartConnect, - WebsocketConnection, -}; diff --git a/build_vtk_bundle/node_modules/wslink/test/simple.js b/build_vtk_bundle/node_modules/wslink/test/simple.js deleted file mode 100644 index 6f6f8916..00000000 --- a/build_vtk_bundle/node_modules/wslink/test/simple.js +++ /dev/null @@ -1,185 +0,0 @@ -/* global document */ -import WebsocketConnection from '../src/WebsocketConnection'; -import SmartConnect from '../src/SmartConnect'; - -// this template allows us to use HtmlWebpackPlugin -// in webpack to generate our index.html -// expose-loader makes our 'export' functions part of the 'app' global -const htmlContent = ` - -
- - - - - - - - - -
- -
- -`; - -const rootContainer = document.querySelector('body'); -const controlContainer = document.createElement('div'); -rootContainer.appendChild(controlContainer); -controlContainer.innerHTML = htmlContent; - -const inputElement = document.querySelector('.input'); -const logOutput = document.querySelector('.output'); -let ws = null; -let subscription = false; -let session = null; - -function log(msg) { - console.log(msg); - logOutput.innerHTML += msg; - logOutput.innerHTML += '\n'; -} -function logerr(err) { - console.error(err); - logOutput.innerHTML += `error: ${err.code}, "${err.message}", ${err.data}`; - logOutput.innerHTML += '\n'; -} - -export function sendInput(type) { - if (!session) return; - const data = JSON.parse('[' + inputElement.value + ']'); - session.call(`myprotocol.${type}`, [data]).then( - (result) => log('result ' + result), - (err) => logerr(err) - ); -} -export function sendImage(type) { - if (!session) return; - session.call(`myprotocol.${type}`, []).then( - (result) => { - log('result ' + result); - handleMessage(result); - }, - (err) => logerr(err) - ); -} -function handleMessage(inData) { - let data = Array.isArray(inData) ? inData[0] : inData; - let blob = data.blob || data; - if (blob instanceof Blob) { - const canvas = document.querySelector('.imageCanvas'); - const ctx = canvas.getContext('2d'); - - const img = new Image(); - const reader = new FileReader(); - reader.onload = function (e) { - img.onload = () => ctx.drawImage(img, 0, 0); - img.src = e.target.result; - }; - reader.readAsDataURL(blob); - } else { - log('result ' + blob); - } -} - -export function testNesting() { - if (!session) return; - session.call('myprotocol.nested.image', []).then( - (data) => { - if (data['image']) handleMessage(data['image']); - const onload = (e) => { - const arr = new Uint8Array(e.target.result); - if (arr.length === 4) { - arr.forEach((d, i) => { - if (d !== i + 1) console.error('mismatch4', d, i); - }); - } else if (arr.length === 6) { - arr.forEach((d, i) => { - if (d !== i + 5) console.error('mismatch4', d, i); - }); - } else { - console.error('Size mismatch', arr.length); - } - }; - data.bytesList.forEach((bl) => { - const reader = new FileReader(); - reader.onload = onload; - reader.readAsArrayBuffer(bl); - }); - - console.log('Nesting:', data); - }, - (err) => logerr(err) - ); -} - -export function sendMistake() { - if (!session) return; - session - .call('myprotocol.mistake.TYPO', ['ignored']) - .then(handleMessage, (err) => logerr(err)); -} - -export function sendServerQuit() { - if (!session) return; - session.call('application.exit.later', [5]).then( - (result) => log('result ' + result), - (err) => logerr(err) - ); -} - -export function toggleStream() { - if (!subscription) { - subscription = session.subscribe('image', handleMessage); - session.call('myprotocol.stream', ['image']).then( - (result) => log('result ' + result), - (err) => logerr(err) - ); - } else { - session.call('myprotocol.stop', ['image']).then( - (result) => log('result ' + result), - (err) => logerr(err) - ); - // session.unsubscribe(subscription); - subscription.unsubscribe(); - subscription = null; - } -} - -export function wsclose() { - if (!session) return; - session.close(); - // it's fine to destroy the WebsocketConnection, but you won't get the WS close message. - // if (ws) ws.destroy(); - // ws = null; -} - -export function connect(direct = false) { - ws = null; - if (direct) { - ws = WebsocketConnection.newInstance({ urls: 'ws://localhost:8080/ws' }); - } else { - const config = { application: 'simple' }; - ws = SmartConnect.newInstance({ config }); - } - ws.onConnectionReady(() => { - log('WS open'); - if (!session) { - session = ws.getSession(); - } - const canvas = document.querySelector('.imageCanvas'); - const ctx = canvas.getContext('2d'); - ctx.clearRect(0, 0, 300, 300); - }); - - ws.onConnectionClose(() => { - log('WS close'); - }); - - ws.onConnectionError((event) => { - log('WS error'); - console.error(event); - }); - - session = ws.connect(); -} diff --git a/build_vtk_bundle/node_modules/wslink/webpack-test-simple.config.js b/build_vtk_bundle/node_modules/wslink/webpack-test-simple.config.js deleted file mode 100644 index da176a5a..00000000 --- a/build_vtk_bundle/node_modules/wslink/webpack-test-simple.config.js +++ /dev/null @@ -1,36 +0,0 @@ -var path = require('path'); -var HtmlWebpackPlugin = require('html-webpack-plugin'); -const entry = path.join(__dirname, './test/simple.js'); - -module.exports = { - context: path.resolve(__dirname), - entry, - output: { - filename: 'test.js', - path: path.resolve(__dirname, '../tests/simple/www'), - }, - mode: 'development', - devtool: 'inline-source-map', - devServer: { - contentBase: path.resolve(__dirname, '../tests/simple/www'), - }, - module: { - rules: [ - { test: entry, loader: 'expose-loader', options: { exposes: ['app']} }, - { - test: /\.js$/, - use: [ - { - loader: 'babel-loader', - options: { - presets: ['@babel/preset-env'], - }, - }, - ], - }, - ] - }, - plugins: [ - new HtmlWebpackPlugin(), - ] -}; diff --git a/build_vtk_bundle/node_modules/wslink/webpack.config.js b/build_vtk_bundle/node_modules/wslink/webpack.config.js deleted file mode 100644 index 2d8efed1..00000000 --- a/build_vtk_bundle/node_modules/wslink/webpack.config.js +++ /dev/null @@ -1,29 +0,0 @@ -var path = require('path'); - -module.exports = { - context: path.resolve(__dirname), - entry: ['./src/index.js'], - output: { - filename: 'wslink.js', - path: path.resolve(__dirname, 'dist'), - library: "wslink", - libraryTarget: "umd" - }, - mode: 'development', - devtool: 'source-map', - module: { - rules: [ - { - test: /\.js$/, - use: [ - { - loader: 'babel-loader', - options: { - presets: ['@babel/preset-env'], - }, - }, - ], - }, - ] - }, -}; diff --git a/build_vtk_bundle/node_modules/xmlbuilder2/LICENSE b/build_vtk_bundle/node_modules/xmlbuilder2/LICENSE deleted file mode 100644 index 79495d57..00000000 --- a/build_vtk_bundle/node_modules/xmlbuilder2/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2019 Ozgur Ozcitak - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build_vtk_bundle/node_modules/xmlbuilder2/README.md b/build_vtk_bundle/node_modules/xmlbuilder2/README.md deleted file mode 100644 index b68ae3f5..00000000 --- a/build_vtk_bundle/node_modules/xmlbuilder2/README.md +++ /dev/null @@ -1,182 +0,0 @@ -# xmlbuilder2 - -An XML builder for [node.js](https://nodejs.org/). - -[![License](https://badgen.net/github/license/oozcitak/xmlbuilder2)](http://opensource.org/licenses/MIT) -[![NPM Version](https://badgen.net/npm/v/xmlbuilder2)](https://www.npmjs.com/package/xmlbuilder2) -[![NPM Downloads](https://badgen.net/npm/dm/xmlbuilder2)](https://www.npmjs.com/package/xmlbuilder2) -[![jsDelivr](https://badgen.net/jsdelivr/hits/npm/xmlbuilder2)](https://www.jsdelivr.com/package/npm/xmlbuilder2) - -[![Node.js CI](https://github.com/oozcitak/xmlbuilder2/workflows/build/badge.svg)](https://github.com/oozcitak/xmlbuilder2/actions) -[![Code Coverage](https://codecov.io/gh/oozcitak/xmlbuilder2/branch/master/graph/badge.svg)](https://codecov.io/gh/oozcitak/xmlbuilder2) -[![Dev Dependency Status](https://badgen.net/david/dep/oozcitak/xmlbuilder2)](https://david-dm.org/oozcitak/xmlbuilder2) - -### Installation: - -``` sh -npm install xmlbuilder2 -``` - -### Usage: - -`xmlbuilder2` is a wrapper around DOM nodes which adds chainable functions to make it easier to create and work with XML documents. For example the following XML document: - -``` xml - - - - foobar - - - -``` - -can be created with the following function chain: - -``` js -const { create } = require('xmlbuilder2'); - -const root = create({ version: '1.0' }) - .ele('root', { att: 'val' }) - .ele('foo') - .ele('bar').txt('foobar').up() - .up() - .ele('baz').up() - .up(); - -// convert the XML tree to string -const xml = root.end({ prettyPrint: true }); -console.log(xml); -``` - -___ - -The same XML document can be created by converting a JS object into XML nodes: - -``` js -const { create } = require('xmlbuilder2'); - -const obj = { - root: { - '@att': 'val', - foo: { - bar: 'foobar' - }, - baz: {} - } -}; - -const doc = create(obj); -const xml = doc.end({ prettyPrint: true }); -console.log(xml); -``` -___ - -`xmlbuilder2` can also parse and serialize XML documents from different formats: -```js -const { create } = require('xmlbuilder2'); - -const xmlStr = 'foobar'; -const doc = create(xmlStr); - -// append a 'baz' element to the root node of the document -doc.root().ele('baz'); - -const xml = doc.end({ prettyPrint: true }); -console.log(xml); -``` -which would output the same document string at the top of this page. - -Or you could return a JS object by changing the `format` argument to `'object'`: -```js -const obj = doc.end({ format: 'object' }); -console.log(obj); -``` -```js -{ - root: { - '@att': 'val', - foo: { - bar: 'foobar' - }, - baz: {} - } -} -``` - -___ - -You can convert between formats in one go with the `convert` function: - -```js -const { convert } = require('xmlbuilder2'); - -const xmlStr = 'foobar'; -const obj = convert(xmlStr, { format: "object" }); - -console.log(obj); -``` -```js -{ - root: { - '@att': 'val', - foo: { - bar: 'foobar' - } - } -} -``` - -___ - -If you need to do some processing: - -``` js -const { create } = require('xmlbuilder2'); - -const root = create().ele('squares'); -root.com('f(x) = x^2'); -for(let i = 1; i <= 5; i++) -{ - const item = root.ele('data'); - item.att('x', i); - item.att('y', i * i); -} - -const xml = root.end({ prettyPrint: true }); -console.log(xml); -``` - -This will result in: - -``` xml - - - - - - - - - -``` - -### Usage in the browser: - -You can build the minified production bundle (`lib/xmlbuilder2.min.js`) after cloning the repository and issuing `npx webpack` in your terminal. The bundle is also in the npm package, so you can also use a public npm CDN like [jsDelivr](https://www.jsdelivr.com/) or [unpkg](https://unpkg.com/): - -```html - - - - -``` - -### Documentation: - -See: https://oozcitak.github.io/xmlbuilder2/ - -### Donations: -Please consider becoming a backer or sponsor to help support development. - -[Donate Button](https://opencollective.com/xmlbuilder2) diff --git a/build_vtk_bundle/node_modules/xmlbuilder2/package.json b/build_vtk_bundle/node_modules/xmlbuilder2/package.json deleted file mode 100644 index 7c6596de..00000000 --- a/build_vtk_bundle/node_modules/xmlbuilder2/package.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "name": "xmlbuilder2", - "version": "3.0.2", - "keywords": [ - "xml", - "xmlbuilder" - ], - "homepage": "http://github.com/oozcitak/xmlbuilder2", - "description": "An XML builder for node.js", - "author": "Ozgur Ozcitak ", - "contributors": [], - "license": "MIT", - "repository": { - "type": "git", - "url": "git://github.com/oozcitak/xmlbuilder2.git" - }, - "bugs": { - "url": "http://github.com/oozcitak/xmlbuilder2/issues" - }, - "main": "./lib/index", - "browser": "./lib/xmlbuilder2.min.js", - "engines": { - "node": ">=12.0" - }, - "files": [ - "lib/**/*" - ], - "types": "./lib/index.d.ts", - "dependencies": { - "@oozcitak/dom": "1.15.10", - "@oozcitak/infra": "1.0.8", - "@oozcitak/util": "8.3.8", - "@types/node": "*", - "js-yaml": "3.14.0" - }, - "devDependencies": { - "@babel/preset-env": "*", - "@babel/runtime-corejs3": "7.10.3", - "@types/benchmark": "*", - "@types/dedent": "*", - "@types/jest": "*", - "@types/js-yaml": "3.11.1", - "babel-loader": "*", - "benchmark": "*", - "chalk": "*", - "core-js": "3.6.5", - "dedent": "*", - "es6-proxy-polyfill": "*", - "glob": "*", - "harmony-reflect": "*", - "jest": "*", - "libxmljs2": "*", - "ts-jest": "*", - "ts-loader": "*", - "ts-node": "*", - "typescript": "*", - "webpack": "*", - "webpack-cli": "*", - "xmlbuilder": "*", - "xpath": "*" - }, - "jest": { - "transform": { - "^.+\\.tsx?$": "ts-jest" - }, - "testRegex": "/test/.*\\.test\\.tsx?$", - "testEnvironment": "node", - "collectCoverageFrom": [ - "src/**/*.{ts,tsx}" - ] - }, - "scripts": { - "prepare": "tsc && webpack", - "pretest": "rm -rf ./lib && tsc --version && tsc && webpack", - "test": "jest --coverage", - "perf": "npm run pretest && ts-node ./perf/perf.ts", - "perf-cb": "npm run pretest && ts-node ./perf/perf-cb.ts", - "prof-serialize": "npm run pretest && rm -f isolate-*-v8.log && node --prof ./perf/prof-serialize.js && find . -name isolate-*-v8.log -exec mv {} isolate-v8.log ; && node --prof-process isolate-v8.log > isolate-serialize.log && rm isolate-v8.log", - "postpublish": "git push --all && git push --tags", - "servedocs": "(cd docs && bundle exec jekyll serve)" - } -} diff --git a/build_vtk_bundle/node_modules/yallist/LICENSE b/build_vtk_bundle/node_modules/yallist/LICENSE deleted file mode 100644 index 19129e31..00000000 --- a/build_vtk_bundle/node_modules/yallist/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/build_vtk_bundle/node_modules/yallist/README.md b/build_vtk_bundle/node_modules/yallist/README.md deleted file mode 100644 index f5861018..00000000 --- a/build_vtk_bundle/node_modules/yallist/README.md +++ /dev/null @@ -1,204 +0,0 @@ -# yallist - -Yet Another Linked List - -There are many doubly-linked list implementations like it, but this -one is mine. - -For when an array would be too big, and a Map can't be iterated in -reverse order. - - -[![Build Status](https://travis-ci.org/isaacs/yallist.svg?branch=master)](https://travis-ci.org/isaacs/yallist) [![Coverage Status](https://coveralls.io/repos/isaacs/yallist/badge.svg?service=github)](https://coveralls.io/github/isaacs/yallist) - -## basic usage - -```javascript -var yallist = require('yallist') -var myList = yallist.create([1, 2, 3]) -myList.push('foo') -myList.unshift('bar') -// of course pop() and shift() are there, too -console.log(myList.toArray()) // ['bar', 1, 2, 3, 'foo'] -myList.forEach(function (k) { - // walk the list head to tail -}) -myList.forEachReverse(function (k, index, list) { - // walk the list tail to head -}) -var myDoubledList = myList.map(function (k) { - return k + k -}) -// now myDoubledList contains ['barbar', 2, 4, 6, 'foofoo'] -// mapReverse is also a thing -var myDoubledListReverse = myList.mapReverse(function (k) { - return k + k -}) // ['foofoo', 6, 4, 2, 'barbar'] - -var reduced = myList.reduce(function (set, entry) { - set += entry - return set -}, 'start') -console.log(reduced) // 'startfoo123bar' -``` - -## api - -The whole API is considered "public". - -Functions with the same name as an Array method work more or less the -same way. - -There's reverse versions of most things because that's the point. - -### Yallist - -Default export, the class that holds and manages a list. - -Call it with either a forEach-able (like an array) or a set of -arguments, to initialize the list. - -The Array-ish methods all act like you'd expect. No magic length, -though, so if you change that it won't automatically prune or add -empty spots. - -### Yallist.create(..) - -Alias for Yallist function. Some people like factories. - -#### yallist.head - -The first node in the list - -#### yallist.tail - -The last node in the list - -#### yallist.length - -The number of nodes in the list. (Change this at your peril. It is -not magic like Array length.) - -#### yallist.toArray() - -Convert the list to an array. - -#### yallist.forEach(fn, [thisp]) - -Call a function on each item in the list. - -#### yallist.forEachReverse(fn, [thisp]) - -Call a function on each item in the list, in reverse order. - -#### yallist.get(n) - -Get the data at position `n` in the list. If you use this a lot, -probably better off just using an Array. - -#### yallist.getReverse(n) - -Get the data at position `n`, counting from the tail. - -#### yallist.map(fn, thisp) - -Create a new Yallist with the result of calling the function on each -item. - -#### yallist.mapReverse(fn, thisp) - -Same as `map`, but in reverse. - -#### yallist.pop() - -Get the data from the list tail, and remove the tail from the list. - -#### yallist.push(item, ...) - -Insert one or more items to the tail of the list. - -#### yallist.reduce(fn, initialValue) - -Like Array.reduce. - -#### yallist.reduceReverse - -Like Array.reduce, but in reverse. - -#### yallist.reverse - -Reverse the list in place. - -#### yallist.shift() - -Get the data from the list head, and remove the head from the list. - -#### yallist.slice([from], [to]) - -Just like Array.slice, but returns a new Yallist. - -#### yallist.sliceReverse([from], [to]) - -Just like yallist.slice, but the result is returned in reverse. - -#### yallist.toArray() - -Create an array representation of the list. - -#### yallist.toArrayReverse() - -Create a reversed array representation of the list. - -#### yallist.unshift(item, ...) - -Insert one or more items to the head of the list. - -#### yallist.unshiftNode(node) - -Move a Node object to the front of the list. (That is, pull it out of -wherever it lives, and make it the new head.) - -If the node belongs to a different list, then that list will remove it -first. - -#### yallist.pushNode(node) - -Move a Node object to the end of the list. (That is, pull it out of -wherever it lives, and make it the new tail.) - -If the node belongs to a list already, then that list will remove it -first. - -#### yallist.removeNode(node) - -Remove a node from the list, preserving referential integrity of head -and tail and other nodes. - -Will throw an error if you try to have a list remove a node that -doesn't belong to it. - -### Yallist.Node - -The class that holds the data and is actually the list. - -Call with `var n = new Node(value, previousNode, nextNode)` - -Note that if you do direct operations on Nodes themselves, it's very -easy to get into weird states where the list is broken. Be careful :) - -#### node.next - -The next node in the list. - -#### node.prev - -The previous node in the list. - -#### node.value - -The data the node contains. - -#### node.list - -The list to which this node belongs. (Null if it does not belong to -any list.) diff --git a/build_vtk_bundle/node_modules/yallist/iterator.js b/build_vtk_bundle/node_modules/yallist/iterator.js deleted file mode 100644 index d41c97a1..00000000 --- a/build_vtk_bundle/node_modules/yallist/iterator.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict' -module.exports = function (Yallist) { - Yallist.prototype[Symbol.iterator] = function* () { - for (let walker = this.head; walker; walker = walker.next) { - yield walker.value - } - } -} diff --git a/build_vtk_bundle/node_modules/yallist/package.json b/build_vtk_bundle/node_modules/yallist/package.json deleted file mode 100644 index 27128099..00000000 --- a/build_vtk_bundle/node_modules/yallist/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "yallist", - "version": "3.1.1", - "description": "Yet Another Linked List", - "main": "yallist.js", - "directories": { - "test": "test" - }, - "files": [ - "yallist.js", - "iterator.js" - ], - "dependencies": {}, - "devDependencies": { - "tap": "^12.1.0" - }, - "scripts": { - "test": "tap test/*.js --100", - "preversion": "npm test", - "postversion": "npm publish", - "postpublish": "git push origin --all; git push origin --tags" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/isaacs/yallist.git" - }, - "author": "Isaac Z. Schlueter (http://blog.izs.me/)", - "license": "ISC" -} diff --git a/build_vtk_bundle/node_modules/yallist/yallist.js b/build_vtk_bundle/node_modules/yallist/yallist.js deleted file mode 100644 index ed4e7303..00000000 --- a/build_vtk_bundle/node_modules/yallist/yallist.js +++ /dev/null @@ -1,426 +0,0 @@ -'use strict' -module.exports = Yallist - -Yallist.Node = Node -Yallist.create = Yallist - -function Yallist (list) { - var self = this - if (!(self instanceof Yallist)) { - self = new Yallist() - } - - self.tail = null - self.head = null - self.length = 0 - - if (list && typeof list.forEach === 'function') { - list.forEach(function (item) { - self.push(item) - }) - } else if (arguments.length > 0) { - for (var i = 0, l = arguments.length; i < l; i++) { - self.push(arguments[i]) - } - } - - return self -} - -Yallist.prototype.removeNode = function (node) { - if (node.list !== this) { - throw new Error('removing node which does not belong to this list') - } - - var next = node.next - var prev = node.prev - - if (next) { - next.prev = prev - } - - if (prev) { - prev.next = next - } - - if (node === this.head) { - this.head = next - } - if (node === this.tail) { - this.tail = prev - } - - node.list.length-- - node.next = null - node.prev = null - node.list = null - - return next -} - -Yallist.prototype.unshiftNode = function (node) { - if (node === this.head) { - return - } - - if (node.list) { - node.list.removeNode(node) - } - - var head = this.head - node.list = this - node.next = head - if (head) { - head.prev = node - } - - this.head = node - if (!this.tail) { - this.tail = node - } - this.length++ -} - -Yallist.prototype.pushNode = function (node) { - if (node === this.tail) { - return - } - - if (node.list) { - node.list.removeNode(node) - } - - var tail = this.tail - node.list = this - node.prev = tail - if (tail) { - tail.next = node - } - - this.tail = node - if (!this.head) { - this.head = node - } - this.length++ -} - -Yallist.prototype.push = function () { - for (var i = 0, l = arguments.length; i < l; i++) { - push(this, arguments[i]) - } - return this.length -} - -Yallist.prototype.unshift = function () { - for (var i = 0, l = arguments.length; i < l; i++) { - unshift(this, arguments[i]) - } - return this.length -} - -Yallist.prototype.pop = function () { - if (!this.tail) { - return undefined - } - - var res = this.tail.value - this.tail = this.tail.prev - if (this.tail) { - this.tail.next = null - } else { - this.head = null - } - this.length-- - return res -} - -Yallist.prototype.shift = function () { - if (!this.head) { - return undefined - } - - var res = this.head.value - this.head = this.head.next - if (this.head) { - this.head.prev = null - } else { - this.tail = null - } - this.length-- - return res -} - -Yallist.prototype.forEach = function (fn, thisp) { - thisp = thisp || this - for (var walker = this.head, i = 0; walker !== null; i++) { - fn.call(thisp, walker.value, i, this) - walker = walker.next - } -} - -Yallist.prototype.forEachReverse = function (fn, thisp) { - thisp = thisp || this - for (var walker = this.tail, i = this.length - 1; walker !== null; i--) { - fn.call(thisp, walker.value, i, this) - walker = walker.prev - } -} - -Yallist.prototype.get = function (n) { - for (var i = 0, walker = this.head; walker !== null && i < n; i++) { - // abort out of the list early if we hit a cycle - walker = walker.next - } - if (i === n && walker !== null) { - return walker.value - } -} - -Yallist.prototype.getReverse = function (n) { - for (var i = 0, walker = this.tail; walker !== null && i < n; i++) { - // abort out of the list early if we hit a cycle - walker = walker.prev - } - if (i === n && walker !== null) { - return walker.value - } -} - -Yallist.prototype.map = function (fn, thisp) { - thisp = thisp || this - var res = new Yallist() - for (var walker = this.head; walker !== null;) { - res.push(fn.call(thisp, walker.value, this)) - walker = walker.next - } - return res -} - -Yallist.prototype.mapReverse = function (fn, thisp) { - thisp = thisp || this - var res = new Yallist() - for (var walker = this.tail; walker !== null;) { - res.push(fn.call(thisp, walker.value, this)) - walker = walker.prev - } - return res -} - -Yallist.prototype.reduce = function (fn, initial) { - var acc - var walker = this.head - if (arguments.length > 1) { - acc = initial - } else if (this.head) { - walker = this.head.next - acc = this.head.value - } else { - throw new TypeError('Reduce of empty list with no initial value') - } - - for (var i = 0; walker !== null; i++) { - acc = fn(acc, walker.value, i) - walker = walker.next - } - - return acc -} - -Yallist.prototype.reduceReverse = function (fn, initial) { - var acc - var walker = this.tail - if (arguments.length > 1) { - acc = initial - } else if (this.tail) { - walker = this.tail.prev - acc = this.tail.value - } else { - throw new TypeError('Reduce of empty list with no initial value') - } - - for (var i = this.length - 1; walker !== null; i--) { - acc = fn(acc, walker.value, i) - walker = walker.prev - } - - return acc -} - -Yallist.prototype.toArray = function () { - var arr = new Array(this.length) - for (var i = 0, walker = this.head; walker !== null; i++) { - arr[i] = walker.value - walker = walker.next - } - return arr -} - -Yallist.prototype.toArrayReverse = function () { - var arr = new Array(this.length) - for (var i = 0, walker = this.tail; walker !== null; i++) { - arr[i] = walker.value - walker = walker.prev - } - return arr -} - -Yallist.prototype.slice = function (from, to) { - to = to || this.length - if (to < 0) { - to += this.length - } - from = from || 0 - if (from < 0) { - from += this.length - } - var ret = new Yallist() - if (to < from || to < 0) { - return ret - } - if (from < 0) { - from = 0 - } - if (to > this.length) { - to = this.length - } - for (var i = 0, walker = this.head; walker !== null && i < from; i++) { - walker = walker.next - } - for (; walker !== null && i < to; i++, walker = walker.next) { - ret.push(walker.value) - } - return ret -} - -Yallist.prototype.sliceReverse = function (from, to) { - to = to || this.length - if (to < 0) { - to += this.length - } - from = from || 0 - if (from < 0) { - from += this.length - } - var ret = new Yallist() - if (to < from || to < 0) { - return ret - } - if (from < 0) { - from = 0 - } - if (to > this.length) { - to = this.length - } - for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) { - walker = walker.prev - } - for (; walker !== null && i > from; i--, walker = walker.prev) { - ret.push(walker.value) - } - return ret -} - -Yallist.prototype.splice = function (start, deleteCount /*, ...nodes */) { - if (start > this.length) { - start = this.length - 1 - } - if (start < 0) { - start = this.length + start; - } - - for (var i = 0, walker = this.head; walker !== null && i < start; i++) { - walker = walker.next - } - - var ret = [] - for (var i = 0; walker && i < deleteCount; i++) { - ret.push(walker.value) - walker = this.removeNode(walker) - } - if (walker === null) { - walker = this.tail - } - - if (walker !== this.head && walker !== this.tail) { - walker = walker.prev - } - - for (var i = 2; i < arguments.length; i++) { - walker = insert(this, walker, arguments[i]) - } - return ret; -} - -Yallist.prototype.reverse = function () { - var head = this.head - var tail = this.tail - for (var walker = head; walker !== null; walker = walker.prev) { - var p = walker.prev - walker.prev = walker.next - walker.next = p - } - this.head = tail - this.tail = head - return this -} - -function insert (self, node, value) { - var inserted = node === self.head ? - new Node(value, null, node, self) : - new Node(value, node, node.next, self) - - if (inserted.next === null) { - self.tail = inserted - } - if (inserted.prev === null) { - self.head = inserted - } - - self.length++ - - return inserted -} - -function push (self, item) { - self.tail = new Node(item, self.tail, null, self) - if (!self.head) { - self.head = self.tail - } - self.length++ -} - -function unshift (self, item) { - self.head = new Node(item, null, self.head, self) - if (!self.tail) { - self.tail = self.head - } - self.length++ -} - -function Node (value, prev, next, list) { - if (!(this instanceof Node)) { - return new Node(value, prev, next, list) - } - - this.list = list - this.value = value - - if (prev) { - prev.next = this - this.prev = prev - } else { - this.prev = null - } - - if (next) { - next.prev = this - this.next = next - } else { - this.next = null - } -} - -try { - // add if support for Symbol.iterator is present - require('./iterator.js')(Yallist) -} catch (er) {} diff --git a/build_vtk_bundle/node_modules/yocto-queue/index.d.ts b/build_vtk_bundle/node_modules/yocto-queue/index.d.ts deleted file mode 100644 index 9541986b..00000000 --- a/build_vtk_bundle/node_modules/yocto-queue/index.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -declare class Queue implements Iterable { - /** - The size of the queue. - */ - readonly size: number; - - /** - Tiny queue data structure. - - The instance is an [`Iterable`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols), which means you can iterate over the queue front to back with a “for…of” loop, or use spreading to convert the queue to an array. Don't do this unless you really need to though, since it's slow. - - @example - ``` - import Queue = require('yocto-queue'); - - const queue = new Queue(); - - queue.enqueue('🦄'); - queue.enqueue('🌈'); - - console.log(queue.size); - //=> 2 - - console.log(...queue); - //=> '🦄 🌈' - - console.log(queue.dequeue()); - //=> '🦄' - - console.log(queue.dequeue()); - //=> '🌈' - ``` - */ - constructor(); - - [Symbol.iterator](): IterableIterator; - - /** - Add a value to the queue. - */ - enqueue(value: ValueType): void; - - /** - Remove the next value in the queue. - - @returns The removed value or `undefined` if the queue is empty. - */ - dequeue(): ValueType | undefined; - - /** - Clear the queue. - */ - clear(): void; -} - -export = Queue; diff --git a/build_vtk_bundle/node_modules/yocto-queue/index.js b/build_vtk_bundle/node_modules/yocto-queue/index.js deleted file mode 100644 index 2f3e6dcd..00000000 --- a/build_vtk_bundle/node_modules/yocto-queue/index.js +++ /dev/null @@ -1,68 +0,0 @@ -class Node { - /// value; - /// next; - - constructor(value) { - this.value = value; - - // TODO: Remove this when targeting Node.js 12. - this.next = undefined; - } -} - -class Queue { - // TODO: Use private class fields when targeting Node.js 12. - // #_head; - // #_tail; - // #_size; - - constructor() { - this.clear(); - } - - enqueue(value) { - const node = new Node(value); - - if (this._head) { - this._tail.next = node; - this._tail = node; - } else { - this._head = node; - this._tail = node; - } - - this._size++; - } - - dequeue() { - const current = this._head; - if (!current) { - return; - } - - this._head = this._head.next; - this._size--; - return current.value; - } - - clear() { - this._head = undefined; - this._tail = undefined; - this._size = 0; - } - - get size() { - return this._size; - } - - * [Symbol.iterator]() { - let current = this._head; - - while (current) { - yield current.value; - current = current.next; - } - } -} - -module.exports = Queue; diff --git a/build_vtk_bundle/node_modules/yocto-queue/license b/build_vtk_bundle/node_modules/yocto-queue/license deleted file mode 100644 index fa7ceba3..00000000 --- a/build_vtk_bundle/node_modules/yocto-queue/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build_vtk_bundle/node_modules/yocto-queue/package.json b/build_vtk_bundle/node_modules/yocto-queue/package.json deleted file mode 100644 index 71a91017..00000000 --- a/build_vtk_bundle/node_modules/yocto-queue/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "yocto-queue", - "version": "0.1.0", - "description": "Tiny queue data structure", - "license": "MIT", - "repository": "sindresorhus/yocto-queue", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "queue", - "data", - "structure", - "algorithm", - "queues", - "queuing", - "list", - "array", - "linkedlist", - "fifo", - "enqueue", - "dequeue", - "data-structure" - ], - "devDependencies": { - "ava": "^2.4.0", - "tsd": "^0.13.1", - "xo": "^0.35.0" - } -} diff --git a/build_vtk_bundle/node_modules/yocto-queue/readme.md b/build_vtk_bundle/node_modules/yocto-queue/readme.md deleted file mode 100644 index c72fefc4..00000000 --- a/build_vtk_bundle/node_modules/yocto-queue/readme.md +++ /dev/null @@ -1,64 +0,0 @@ -# yocto-queue [![](https://badgen.net/bundlephobia/minzip/yocto-queue)](https://bundlephobia.com/result?p=yocto-queue) - -> Tiny queue data structure - -You should use this package instead of an array if you do a lot of `Array#push()` and `Array#shift()` on large arrays, since `Array#shift()` has [linear time complexity](https://medium.com/@ariel.salem1989/an-easy-to-use-guide-to-big-o-time-complexity-5dcf4be8a444#:~:text=O(N)%E2%80%94Linear%20Time) *O(n)* while `Queue#dequeue()` has [constant time complexity](https://medium.com/@ariel.salem1989/an-easy-to-use-guide-to-big-o-time-complexity-5dcf4be8a444#:~:text=O(1)%20%E2%80%94%20Constant%20Time) *O(1)*. That makes a huge difference for large arrays. - -> A [queue](https://en.wikipedia.org/wiki/Queue_(abstract_data_type)) is an ordered list of elements where an element is inserted at the end of the queue and is removed from the front of the queue. A queue works based on the first-in, first-out ([FIFO](https://en.wikipedia.org/wiki/FIFO_(computing_and_electronics))) principle. - -## Install - -``` -$ npm install yocto-queue -``` - -## Usage - -```js -const Queue = require('yocto-queue'); - -const queue = new Queue(); - -queue.enqueue('🦄'); -queue.enqueue('🌈'); - -console.log(queue.size); -//=> 2 - -console.log(...queue); -//=> '🦄 🌈' - -console.log(queue.dequeue()); -//=> '🦄' - -console.log(queue.dequeue()); -//=> '🌈' -``` - -## API - -### `queue = new Queue()` - -The instance is an [`Iterable`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols), which means you can iterate over the queue front to back with a “for…of” loop, or use spreading to convert the queue to an array. Don't do this unless you really need to though, since it's slow. - -#### `.enqueue(value)` - -Add a value to the queue. - -#### `.dequeue()` - -Remove the next value in the queue. - -Returns the removed value or `undefined` if the queue is empty. - -#### `.clear()` - -Clear the queue. - -#### `.size` - -The size of the queue. - -## Related - -- [quick-lru](https://github.com/sindresorhus/quick-lru) - Simple “Least Recently Used” (LRU) cache diff --git a/nodes/texture_remeshing/depth_normals_to_mesh.py b/nodes/texture_remeshing/depth_normals_to_mesh.py index d7a53c69..009f24aa 100644 --- a/nodes/texture_remeshing/depth_normals_to_mesh.py +++ b/nodes/texture_remeshing/depth_normals_to_mesh.py @@ -28,7 +28,6 @@ class DepthNormalsToMeshNode: def INPUT_TYPES(cls): return { "required": { - "depth": ("MASK",), "normal_map": ("IMAGE",), "resolution": ("INT", { "default": 512, @@ -46,6 +45,8 @@ class DepthNormalsToMeshNode: }), }, "optional": { + "depth": ("MASK",), + "depth_image": ("IMAGE",), "method": ([ "poisson", "ball_pivoting", @@ -87,7 +88,8 @@ class DepthNormalsToMeshNode: FUNCTION = "depth_normals_to_mesh" CATEGORY = "geompack/texture_remeshing" - def depth_normals_to_mesh(self, depth, normal_map, resolution, depth_scale, + def depth_normals_to_mesh(self, normal_map, resolution, depth_scale, + depth=None, depth_image=None, method="poisson", poisson_depth=8, poisson_scale=1.1, skip_background="true", background_threshold=0.01, invert_depth="false"): @@ -95,10 +97,11 @@ class DepthNormalsToMeshNode: Convert depth map and normal map to smooth 3D mesh. Args: - depth: Depth map as MASK tensor (B, H, W) normal_map: Normal map as IMAGE tensor (B, H, W, C) with Nx in R, Ny in G resolution: Target resolution for point cloud depth_scale: Scale factor for depth values + depth: Depth map as MASK tensor (B, H, W) - optional + depth_image: Depth map as IMAGE tensor (B, H, W, C) - optional, takes priority method: Reconstruction method ("poisson" or "ball_pivoting") poisson_depth: Octree depth for Poisson reconstruction poisson_scale: Scale factor for Poisson bounding box @@ -115,18 +118,38 @@ class DepthNormalsToMeshNode: except ImportError: raise RuntimeError("torch and PIL required. Install with: pip install torch Pillow") + # Validate that at least one depth input is provided + if depth is None and depth_image is None: + raise ValueError("Either 'depth' (MASK) or 'depth_image' (IMAGE) must be provided") + print(f"[DepthNormalsToMesh] Converting depth + normals to mesh") print(f"[DepthNormalsToMesh] Method: {method}, Resolution: {resolution}") - # Extract depth map from tensor - if isinstance(depth, torch.Tensor): - depth_arr = depth[0].cpu().numpy() - else: - depth_arr = np.array(depth) + # Extract depth map - prefer depth_image if provided + if depth_image is not None: + print(f"[DepthNormalsToMesh] Using depth_image input (averaging RGB channels)") + if isinstance(depth_image, torch.Tensor): + depth_img_arr = depth_image[0].cpu().numpy() + else: + depth_img_arr = np.array(depth_image) - # Ensure 2D - if len(depth_arr.shape) > 2: - depth_arr = depth_arr[:, :, 0] if depth_arr.shape[2] == 1 else depth_arr + # Average RGB channels to create grayscale depth + if len(depth_img_arr.shape) == 3 and depth_img_arr.shape[2] >= 3: + depth_arr = np.mean(depth_img_arr[:, :, :3], axis=2) + elif len(depth_img_arr.shape) == 3 and depth_img_arr.shape[2] == 1: + depth_arr = depth_img_arr[:, :, 0] + else: + depth_arr = depth_img_arr + else: + print(f"[DepthNormalsToMesh] Using depth mask input") + if isinstance(depth, torch.Tensor): + depth_arr = depth[0].cpu().numpy() + else: + depth_arr = np.array(depth) + + # Ensure 2D + if len(depth_arr.shape) > 2: + depth_arr = depth_arr[:, :, 0] if depth_arr.shape[2] == 1 else np.mean(depth_arr, axis=2) # Normalize to [0, 1] depth_min, depth_max = depth_arr.min(), depth_arr.max() diff --git a/nodes/texture_remeshing/texture_to_geometry.py b/nodes/texture_remeshing/texture_to_geometry.py index 2e292766..bbd9db04 100644 --- a/nodes/texture_remeshing/texture_to_geometry.py +++ b/nodes/texture_remeshing/texture_to_geometry.py @@ -26,7 +26,6 @@ class TextureToGeometryNode: def INPUT_TYPES(cls): return { "required": { - "mask": ("MASK",), "height_scale": ("FLOAT", { "default": 1.0, "min": 0.01, @@ -36,6 +35,8 @@ class TextureToGeometryNode: }), }, "optional": { + "mask": ("MASK",), + "depth_image": ("IMAGE",), "backend": ([ "grid", "poisson_pymeshlab", @@ -70,7 +71,8 @@ class TextureToGeometryNode: FUNCTION = "texture_to_geometry" CATEGORY = "geompack/texture_remeshing" - def texture_to_geometry(self, mask, height_scale, + def texture_to_geometry(self, height_scale, + mask=None, depth_image=None, backend="grid", poisson_depth=8, invert_height="false", smooth_normals="true", skip_black="false", black_threshold=0.01): @@ -80,6 +82,7 @@ class TextureToGeometryNode: Args: mask: Input MASK tensor (B, H, W) from ComfyUI height_scale: Scale factor for height displacement + depth_image: Optional IMAGE tensor (B, H, W, C) - if provided, averages RGB to grayscale backend: Reconstruction backend (grid, poisson_pymeshlab, poisson_open3d, delaunay_2d) poisson_depth: Octree depth for Poisson reconstruction invert_height: Invert the mask (0=high, 1=low) @@ -95,17 +98,38 @@ class TextureToGeometryNode: except ImportError: raise RuntimeError("torch required. Install with: pip install torch") - print(f"[TextureToGeometry] Converting mask to geometry using backend: {backend}") + # Validate that at least one input is provided + if mask is None and depth_image is None: + raise ValueError("Either 'mask' or 'depth_image' must be provided") - # Extract mask from ComfyUI tensor format (B, H, W) - if isinstance(mask, torch.Tensor): - heightmap = mask[0].cpu().numpy() + print(f"[TextureToGeometry] Converting to geometry using backend: {backend}") + + # Use depth_image if provided, otherwise use mask + if depth_image is not None: + print(f"[TextureToGeometry] Using depth_image input (averaging RGB channels)") + if isinstance(depth_image, torch.Tensor): + img_arr = depth_image[0].cpu().numpy() + else: + img_arr = np.array(depth_image) + + # Average RGB channels to create grayscale + if len(img_arr.shape) == 3 and img_arr.shape[2] >= 3: + heightmap = np.mean(img_arr[:, :, :3], axis=2) + elif len(img_arr.shape) == 3 and img_arr.shape[2] == 1: + heightmap = img_arr[:, :, 0] + else: + heightmap = img_arr else: - heightmap = np.array(mask) + print(f"[TextureToGeometry] Using mask input") + # Extract mask from ComfyUI tensor format (B, H, W) + if isinstance(mask, torch.Tensor): + heightmap = mask[0].cpu().numpy() + else: + heightmap = np.array(mask) - # Ensure 2D array (masks are single-channel) - if len(heightmap.shape) > 2: - heightmap = heightmap[:, :, 0] if heightmap.shape[2] == 1 else heightmap + # Ensure 2D array (masks are single-channel) + if len(heightmap.shape) > 2: + heightmap = heightmap[:, :, 0] if heightmap.shape[2] == 1 else np.mean(heightmap, axis=2) # Use native resolution height, width = heightmap.shape diff --git a/nodes/visualization/preview_mesh_dual.py b/nodes/visualization/preview_mesh_dual.py index c8b7b3df..8acda85c 100644 --- a/nodes/visualization/preview_mesh_dual.py +++ b/nodes/visualization/preview_mesh_dual.py @@ -81,7 +81,7 @@ class PreviewMeshDualNode: "mesh_2": ("TRIMESH",), }, "optional": { - "layout": (["side_by_side", "overlay"], {"default": "side_by_side"}), + "layout": (["side_by_side", "overlay", "slider"], {"default": "side_by_side"}), "mode": (["fields", "texture"], {"default": "fields"}), "opacity_1": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.1}), "opacity_2": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.1}), @@ -137,7 +137,7 @@ class PreviewMeshDualNode: # Generate unique ID for this preview preview_id = uuid.uuid4().hex[:8] - if layout == "side_by_side": + if layout == "side_by_side" or layout == "slider": # Export meshes separately based on mode if mode == "texture": # Texture mode: export as GLB diff --git a/web/js/mesh_preview_dual.js b/web/js/mesh_preview_dual.js index d2243dbc..b5e1b18d 100644 --- a/web/js/mesh_preview_dual.js +++ b/web/js/mesh_preview_dual.js @@ -133,11 +133,20 @@ app.registerExtension({ const mode = message.mode?.[0] || "fields"; console.log(`[GeomPack Dual] onExecuted: layout=${layout}, mode=${mode}`); - // Determine which viewer to use based on mode - const viewerType = mode === "texture" ? "texture" : "fields"; - const viewerUrl = viewerType === "texture" - ? "/extensions/ComfyUI-GeometryPack/viewer_dual_textured.html" - : "/extensions/ComfyUI-GeometryPack/viewer_dual.html"; + // Determine which viewer to use based on mode and layout + let viewerType; + let viewerUrl; + + if (layout === 'slider') { + viewerType = "slider"; + viewerUrl = "/extensions/ComfyUI-GeometryPack/viewer_dual_slider.html"; + } else if (mode === "texture") { + viewerType = "texture"; + viewerUrl = "/extensions/ComfyUI-GeometryPack/viewer_dual_textured.html"; + } else { + viewerType = "fields"; + viewerUrl = "/extensions/ComfyUI-GeometryPack/viewer_dual.html"; + } let infoHTML = ''; let postMessageData = { @@ -146,7 +155,7 @@ app.registerExtension({ timestamp: Date.now() }; - if (layout === 'side_by_side') { + if (layout === 'side_by_side' || layout === 'slider') { // Side-by-side mode if (!message?.mesh_1_file || !message?.mesh_2_file) { return; diff --git a/web/viewer_dual_slider.html b/web/viewer_dual_slider.html new file mode 100644 index 00000000..9d6ce6e9 --- /dev/null +++ b/web/viewer_dual_slider.html @@ -0,0 +1,709 @@ + + + + + GeomPack VTK.js Dual Mesh Slider Viewer + + + +
+ +
+ +
+ + +
+
+
+
Mesh 1
+
Mesh 2
+
+ +
Ready to load meshes
+
+ +
+ + + + + + + + + + + + + + + +
+ + + + + +